@wandelbots/wandelbots-js-react-components 1.35.0 → 1.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/components/jogging/JoggingOptions.d.ts.map +1 -1
  2. package/dist/components/jogging/PoseCartesianValues.d.ts +1 -1
  3. package/dist/components/jogging/PoseCartesianValues.d.ts.map +1 -1
  4. package/dist/components/robots/DHRobot.d.ts.map +1 -1
  5. package/dist/components/robots/GenericRobot.d.ts +13 -2
  6. package/dist/components/robots/GenericRobot.d.ts.map +1 -1
  7. package/dist/components/robots/Robot.d.ts.map +1 -1
  8. package/dist/components/robots/RobotAnimator.d.ts +3 -5
  9. package/dist/components/robots/RobotAnimator.d.ts.map +1 -1
  10. package/dist/components/robots/SupportedRobot.d.ts +4 -4
  11. package/dist/components/robots/SupportedRobot.d.ts.map +1 -1
  12. package/dist/components/robots/ghostStyle.d.ts +4 -0
  13. package/dist/components/robots/ghostStyle.d.ts.map +1 -0
  14. package/dist/components/robots/robotModelLogic.d.ts +25 -0
  15. package/dist/components/robots/robotModelLogic.d.ts.map +1 -0
  16. package/dist/index.cjs +30 -30
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.ts +1 -0
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +3464 -3398
  21. package/dist/index.js.map +1 -1
  22. package/package.json +49 -34
  23. package/src/components/jogging/JoggingOptions.tsx +1 -0
  24. package/src/components/jogging/PoseCartesianValues.tsx +2 -4
  25. package/src/components/robots/DHRobot.tsx +2 -10
  26. package/src/components/robots/GenericRobot.tsx +30 -9
  27. package/src/components/robots/Robot.tsx +2 -1
  28. package/src/components/robots/RobotAnimator.tsx +6 -13
  29. package/src/components/robots/SupportedRobot.tsx +35 -111
  30. package/src/components/robots/ghostStyle.ts +70 -0
  31. package/src/components/robots/robotModelLogic.ts +90 -0
  32. package/src/index.ts +1 -0
  33. package/dist/components/robots/types.d.ts +0 -19
  34. package/dist/components/robots/types.d.ts.map +0 -1
  35. package/dist/components/utils/robotTreeQuery.d.ts +0 -6
  36. package/dist/components/utils/robotTreeQuery.d.ts.map +0 -1
  37. package/src/components/robots/types.ts +0 -21
  38. package/src/components/utils/robotTreeQuery.ts +0 -27
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var wc=Object.create;var zi=Object.defineProperty;var Tc=Object.getOwnPropertyDescriptor;var Oc=Object.getOwnPropertyNames;var Ec=Object.getPrototypeOf,Cc=Object.prototype.hasOwnProperty;var Rc=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Oc(t))!Cc.call(e,o)&&o!==r&&zi(e,o,{get:()=>t[o],enumerable:!(n=Tc(t,o))||n.enumerable});return e};var Co=(e,t,r)=>(r=e!=null?wc(Ec(e)):{},Rc(t||!e||!e.__esModule?zi(r,"default",{value:e,enumerable:!0}):r,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react"),ct=require("@react-three/drei"),xt=require("three"),_c=require("three-stdlib"),Pc=require("@react-three/fiber"),k=require("@mui/material"),$e=require("mobx-react-lite"),Kt=require("react-i18next"),$c=require("i18next-browser-languagedetector"),ut=require("mobx"),p=require("prop-types"),kc=require("@emotion/styled"),dr=require("@emotion/react"),Lt=require("@wandelbots/wandelbots-js"),Wn=require("lodash-es"),Jo=require("@react-spring/three"),jc=require("react-error-boundary");function Ea(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const N=Ea(H),Re=Ea(xt);function Tt(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var Ho={exports:{}},jr={};/**
1
+ "use strict";var wc=Object.create;var Ji=Object.defineProperty;var Tc=Object.getOwnPropertyDescriptor;var Oc=Object.getOwnPropertyNames;var Ec=Object.getPrototypeOf,Cc=Object.prototype.hasOwnProperty;var Rc=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Oc(t))!Cc.call(e,o)&&o!==r&&Ji(e,o,{get:()=>t[o],enumerable:!(n=Tc(t,o))||n.enumerable});return e};var Ro=(e,t,r)=>(r=e!=null?wc(Ec(e)):{},Rc(t||!e||!e.__esModule?Ji(r,"default",{value:e,enumerable:!0}):r,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("react"),ft=require("@react-three/drei"),$e=require("three"),_c=require("three-stdlib"),Pc=require("@react-three/fiber"),$=require("@mui/material"),ke=require("mobx-react-lite"),Yt=require("react-i18next"),$c=require("i18next-browser-languagedetector"),dt=require("mobx"),p=require("prop-types"),kc=require("@emotion/styled"),pr=require("@emotion/react"),Lt=require("@wandelbots/wandelbots-js"),Gn=require("lodash-es"),Ho=require("@react-spring/three"),jc=require("react-error-boundary");function Ea(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const N=Ea(W),ut=Ea($e);function Ot(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var Wo={exports:{}},Ar={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Ji;function Ac(){if(Ji)return jr;Ji=1;var e=H,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(a,l,c){var u,d={},f=null,v=null;c!==void 0&&(f=""+c),l.key!==void 0&&(f=""+l.key),l.ref!==void 0&&(v=l.ref);for(u in l)n.call(l,u)&&!i.hasOwnProperty(u)&&(d[u]=l[u]);if(a&&a.defaultProps)for(u in l=a.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:a,key:f,ref:v,props:d,_owner:o.current}}return jr.Fragment=r,jr.jsx=s,jr.jsxs=s,jr}var Ar={};/**
9
+ */var Hi;function Ac(){if(Hi)return Ar;Hi=1;var e=W,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(a,l,c){var u,d={},f=null,v=null;c!==void 0&&(f=""+c),l.key!==void 0&&(f=""+l.key),l.ref!==void 0&&(v=l.ref);for(u in l)n.call(l,u)&&!i.hasOwnProperty(u)&&(d[u]=l[u]);if(a&&a.defaultProps)for(u in l=a.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:a,key:f,ref:v,props:d,_owner:o.current}}return Ar.Fragment=r,Ar.jsx=s,Ar.jsxs=s,Ar}var Ir={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,30 +14,30 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Hi;function Lc(){return Hi||(Hi=1,process.env.NODE_ENV!=="production"&&function(){var e=H,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),m=Symbol.iterator,y="@@iterator";function h(g){if(g===null||typeof g!="object")return null;var C=m&&g[m]||g[y];return typeof C=="function"?C:null}var S=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function T(g){{for(var C=arguments.length,A=new Array(C>1?C-1:0),I=1;I<C;I++)A[I-1]=arguments[I];_("error",g,A)}}function _(g,C,A){{var I=S.ReactDebugCurrentFrame,V=I.getStackAddendum();V!==""&&(C+="%s",A=A.concat([V]));var ne=A.map(function(J){return String(J)});ne.unshift("Warning: "+C),Function.prototype.apply.call(console[g],console,ne)}}var O=!1,w=!1,E=!1,R=!1,U=!1,Q;Q=Symbol.for("react.module.reference");function F(g){return!!(typeof g=="string"||typeof g=="function"||g===n||g===i||U||g===o||g===c||g===u||R||g===v||O||w||E||typeof g=="object"&&g!==null&&(g.$$typeof===f||g.$$typeof===d||g.$$typeof===s||g.$$typeof===a||g.$$typeof===l||g.$$typeof===Q||g.getModuleId!==void 0))}function M(g,C,A){var I=g.displayName;if(I)return I;var V=C.displayName||C.name||"";return V!==""?A+"("+V+")":A}function W(g){return g.displayName||"Context"}function G(g){if(g==null)return null;if(typeof g.tag=="number"&&T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof g=="function")return g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case a:var C=g;return W(C)+".Consumer";case s:var A=g;return W(A._context)+".Provider";case l:return M(g,g.render,"ForwardRef");case d:var I=g.displayName||null;return I!==null?I:G(g.type)||"Memo";case f:{var V=g,ne=V._payload,J=V._init;try{return G(J(ne))}catch{return null}}}return null}var X=Object.assign,Y=0,xe,le,ee,Te,ke,tt,yt;function He(){}He.__reactDisabledLog=!0;function Se(){{if(Y===0){xe=console.log,le=console.info,ee=console.warn,Te=console.error,ke=console.group,tt=console.groupCollapsed,yt=console.groupEnd;var g={configurable:!0,enumerable:!0,value:He,writable:!0};Object.defineProperties(console,{info:g,log:g,warn:g,error:g,group:g,groupCollapsed:g,groupEnd:g})}Y++}}function Rt(){{if(Y--,Y===0){var g={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:X({},g,{value:xe}),info:X({},g,{value:le}),warn:X({},g,{value:ee}),error:X({},g,{value:Te}),group:X({},g,{value:ke}),groupCollapsed:X({},g,{value:tt}),groupEnd:X({},g,{value:yt})})}Y<0&&T("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var st=S.ReactCurrentDispatcher,We;function Fe(g,C,A){{if(We===void 0)try{throw Error()}catch(V){var I=V.stack.trim().match(/\n( *(at )?)/);We=I&&I[1]||""}return`
18
- `+We+g}}var at=!1,lt;{var Mt=typeof WeakMap=="function"?WeakMap:Map;lt=new Mt}function bt(g,C){if(!g||at)return"";{var A=lt.get(g);if(A!==void 0)return A}var I;at=!0;var V=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ne;ne=st.current,st.current=null,Se();try{if(C){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(Ie){I=Ie}Reflect.construct(g,[],J)}else{try{J.call()}catch(Ie){I=Ie}g.call(J.prototype)}}else{try{throw Error()}catch(Ie){I=Ie}g()}}catch(Ie){if(Ie&&I&&typeof Ie.stack=="string"){for(var B=Ie.stack.split(`
19
- `),Pe=I.stack.split(`
20
- `),ge=B.length-1,ye=Pe.length-1;ge>=1&&ye>=0&&B[ge]!==Pe[ye];)ye--;for(;ge>=1&&ye>=0;ge--,ye--)if(B[ge]!==Pe[ye]){if(ge!==1||ye!==1)do if(ge--,ye--,ye<0||B[ge]!==Pe[ye]){var qe=`
21
- `+B[ge].replace(" at new "," at ");return g.displayName&&qe.includes("<anonymous>")&&(qe=qe.replace("<anonymous>",g.displayName)),typeof g=="function"&&lt.set(g,qe),qe}while(ge>=1&&ye>=0);break}}}finally{at=!1,st.current=ne,Rt(),Error.prepareStackTrace=V}var nr=g?g.displayName||g.name:"",Bt=nr?Fe(nr):"";return typeof g=="function"&&lt.set(g,Bt),Bt}function Ve(g,C,A){return bt(g,!1)}function j(g){var C=g.prototype;return!!(C&&C.isReactComponent)}function te(g,C,A){if(g==null)return"";if(typeof g=="function")return bt(g,j(g));if(typeof g=="string")return Fe(g);switch(g){case c:return Fe("Suspense");case u:return Fe("SuspenseList")}if(typeof g=="object")switch(g.$$typeof){case l:return Ve(g.render);case d:return te(g.type,C,A);case f:{var I=g,V=I._payload,ne=I._init;try{return te(ne(V),C,A)}catch{}}}return""}var fe=Object.prototype.hasOwnProperty,je={},Ae=S.ReactDebugCurrentFrame;function _t(g){if(g){var C=g._owner,A=te(g.type,g._source,C?C.type:null);Ae.setExtraStackFrame(A)}else Ae.setExtraStackFrame(null)}function we(g,C,A,I,V){{var ne=Function.call.bind(fe);for(var J in g)if(ne(g,J)){var B=void 0;try{if(typeof g[J]!="function"){var Pe=Error((I||"React class")+": "+A+" type `"+J+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof g[J]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Pe.name="Invariant Violation",Pe}B=g[J](C,J,I,A,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ge){B=ge}B&&!(B instanceof Error)&&(_t(V),T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",I||"React class",A,J,typeof B),_t(null)),B instanceof Error&&!(B.message in je)&&(je[B.message]=!0,_t(V),T("Failed %s type: %s",A,B.message),_t(null))}}}var Pt=Array.isArray;function Dt(g){return Pt(g)}function Or(g){{var C=typeof Symbol=="function"&&Symbol.toStringTag,A=C&&g[Symbol.toStringTag]||g.constructor.name||"Object";return A}}function Er(g){try{return Cr(g),!1}catch{return!0}}function Cr(g){return""+g}function Qt(g){if(Er(g))return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Or(g)),Cr(g)}var rt=S.ReactCurrentOwner,$={key:!0,ref:!0,__self:!0,__source:!0},L,D,q;q={};function Z(g){if(fe.call(g,"ref")){var C=Object.getOwnPropertyDescriptor(g,"ref").get;if(C&&C.isReactWarning)return!1}return g.ref!==void 0}function K(g){if(fe.call(g,"key")){var C=Object.getOwnPropertyDescriptor(g,"key").get;if(C&&C.isReactWarning)return!1}return g.key!==void 0}function Be(g,C){if(typeof g.ref=="string"&&rt.current&&C&&rt.current.stateNode!==C){var A=G(rt.current.type);q[A]||(T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',G(rt.current.type),g.ref),q[A]=!0)}}function Ge(g,C){{var A=function(){L||(L=!0,T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",C))};A.isReactWarning=!0,Object.defineProperty(g,"key",{get:A,configurable:!0})}}function re(g,C){{var A=function(){D||(D=!0,T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",C))};A.isReactWarning=!0,Object.defineProperty(g,"ref",{get:A,configurable:!0})}}var Le=function(g,C,A,I,V,ne,J){var B={$$typeof:t,type:g,key:C,ref:A,props:J,_owner:ne};return B._store={},Object.defineProperty(B._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(B,"_self",{configurable:!1,enumerable:!1,writable:!1,value:I}),Object.defineProperty(B,"_source",{configurable:!1,enumerable:!1,writable:!1,value:V}),Object.freeze&&(Object.freeze(B.props),Object.freeze(B)),B};function $t(g,C,A,I,V){{var ne,J={},B=null,Pe=null;A!==void 0&&(Qt(A),B=""+A),K(C)&&(Qt(C.key),B=""+C.key),Z(C)&&(Pe=C.ref,Be(C,V));for(ne in C)fe.call(C,ne)&&!$.hasOwnProperty(ne)&&(J[ne]=C[ne]);if(g&&g.defaultProps){var ge=g.defaultProps;for(ne in ge)J[ne]===void 0&&(J[ne]=ge[ne])}if(B||Pe){var ye=typeof g=="function"?g.displayName||g.name||"Unknown":g;B&&Ge(J,ye),Pe&&re(J,ye)}return Le(g,B,Pe,V,I,rt.current,J)}}var er=S.ReactCurrentOwner,Rr=S.ReactDebugCurrentFrame;function vt(g){if(g){var C=g._owner,A=te(g.type,g._source,C?C.type:null);Rr.setExtraStackFrame(A)}else Rr.setExtraStackFrame(null)}var Ft;Ft=!1;function Vt(g){return typeof g=="object"&&g!==null&&g.$$typeof===t}function _r(){{if(er.current){var g=G(er.current.type);if(g)return`
17
+ */var Wi;function Ic(){return Wi||(Wi=1,process.env.NODE_ENV!=="production"&&function(){var e=W,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),y=Symbol.iterator,m="@@iterator";function h(g){if(g===null||typeof g!="object")return null;var E=y&&g[y]||g[m];return typeof E=="function"?E:null}var S=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function T(g){{for(var E=arguments.length,A=new Array(E>1?E-1:0),L=1;L<E;L++)A[L-1]=arguments[L];k("error",g,A)}}function k(g,E,A){{var L=S.ReactDebugCurrentFrame,F=L.getStackAddendum();F!==""&&(E+="%s",A=A.concat([F]));var ne=A.map(function(H){return String(H)});ne.unshift("Warning: "+E),Function.prototype.apply.call(console[g],console,ne)}}var O=!1,w=!1,C=!1,R=!1,z=!1,se;se=Symbol.for("react.module.reference");function V(g){return!!(typeof g=="string"||typeof g=="function"||g===n||g===i||z||g===o||g===c||g===u||R||g===v||O||w||C||typeof g=="object"&&g!==null&&(g.$$typeof===f||g.$$typeof===d||g.$$typeof===s||g.$$typeof===a||g.$$typeof===l||g.$$typeof===se||g.getModuleId!==void 0))}function M(g,E,A){var L=g.displayName;if(L)return L;var F=E.displayName||E.name||"";return F!==""?A+"("+F+")":A}function G(g){return g.displayName||"Context"}function q(g){if(g==null)return null;if(typeof g.tag=="number"&&T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof g=="function")return g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case a:var E=g;return G(E)+".Consumer";case s:var A=g;return G(A._context)+".Provider";case l:return M(g,g.render,"ForwardRef");case d:var L=g.displayName||null;return L!==null?L:q(g.type)||"Memo";case f:{var F=g,ne=F._payload,H=F._init;try{return q(H(ne))}catch{return null}}}return null}var Z=Object.assign,X=0,Se,ce,ee,Oe,je,nt,vt;function Ge(){}Ge.__reactDisabledLog=!0;function we(){{if(X===0){Se=console.log,ce=console.info,ee=console.warn,Oe=console.error,je=console.group,nt=console.groupCollapsed,vt=console.groupEnd;var g={configurable:!0,enumerable:!0,value:Ge,writable:!0};Object.defineProperties(console,{info:g,log:g,warn:g,error:g,group:g,groupCollapsed:g,groupEnd:g})}X++}}function _t(){{if(X--,X===0){var g={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Z({},g,{value:Se}),info:Z({},g,{value:ce}),warn:Z({},g,{value:ee}),error:Z({},g,{value:Oe}),group:Z({},g,{value:je}),groupCollapsed:Z({},g,{value:nt}),groupEnd:Z({},g,{value:vt})})}X<0&&T("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var at=S.ReactCurrentDispatcher,qe;function Be(g,E,A){{if(qe===void 0)try{throw Error()}catch(F){var L=F.stack.trim().match(/\n( *(at )?)/);qe=L&&L[1]||""}return`
18
+ `+qe+g}}var lt=!1,ct;{var Dt=typeof WeakMap=="function"?WeakMap:Map;ct=new Dt}function xt(g,E){if(!g||lt)return"";{var A=ct.get(g);if(A!==void 0)return A}var L;lt=!0;var F=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ne;ne=at.current,at.current=null,we();try{if(E){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(Ne){L=Ne}Reflect.construct(g,[],H)}else{try{H.call()}catch(Ne){L=Ne}g.call(H.prototype)}}else{try{throw Error()}catch(Ne){L=Ne}g()}}catch(Ne){if(Ne&&L&&typeof Ne.stack=="string"){for(var B=Ne.stack.split(`
19
+ `),Pe=L.stack.split(`
20
+ `),he=B.length-1,be=Pe.length-1;he>=1&&be>=0&&B[he]!==Pe[be];)be--;for(;he>=1&&be>=0;he--,be--)if(B[he]!==Pe[be]){if(he!==1||be!==1)do if(he--,be--,be<0||B[he]!==Pe[be]){var Ye=`
21
+ `+B[he].replace(" at new "," at ");return g.displayName&&Ye.includes("<anonymous>")&&(Ye=Ye.replace("<anonymous>",g.displayName)),typeof g=="function"&&ct.set(g,Ye),Ye}while(he>=1&&be>=0);break}}}finally{lt=!1,at.current=ne,_t(),Error.prepareStackTrace=F}var or=g?g.displayName||g.name:"",Ut=or?Be(or):"";return typeof g=="function"&&ct.set(g,Ut),Ut}function Ue(g,E,A){return xt(g,!1)}function j(g){var E=g.prototype;return!!(E&&E.isReactComponent)}function te(g,E,A){if(g==null)return"";if(typeof g=="function")return xt(g,j(g));if(typeof g=="string")return Be(g);switch(g){case c:return Be("Suspense");case u:return Be("SuspenseList")}if(typeof g=="object")switch(g.$$typeof){case l:return Ue(g.render);case d:return te(g.type,E,A);case f:{var L=g,F=L._payload,ne=L._init;try{return te(ne(F),E,A)}catch{}}}return""}var de=Object.prototype.hasOwnProperty,Ae={},Ie=S.ReactDebugCurrentFrame;function Pt(g){if(g){var E=g._owner,A=te(g.type,g._source,E?E.type:null);Ie.setExtraStackFrame(A)}else Ie.setExtraStackFrame(null)}function Te(g,E,A,L,F){{var ne=Function.call.bind(de);for(var H in g)if(ne(g,H)){var B=void 0;try{if(typeof g[H]!="function"){var Pe=Error((L||"React class")+": "+A+" type `"+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof g[H]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Pe.name="Invariant Violation",Pe}B=g[H](E,H,L,A,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(he){B=he}B&&!(B instanceof Error)&&(Pt(F),T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",L||"React class",A,H,typeof B),Pt(null)),B instanceof Error&&!(B.message in Ae)&&(Ae[B.message]=!0,Pt(F),T("Failed %s type: %s",A,B.message),Pt(null))}}}var $t=Array.isArray;function Ft(g){return $t(g)}function Er(g){{var E=typeof Symbol=="function"&&Symbol.toStringTag,A=E&&g[Symbol.toStringTag]||g.constructor.name||"Object";return A}}function Cr(g){try{return Rr(g),!1}catch{return!0}}function Rr(g){return""+g}function er(g){if(Cr(g))return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Er(g)),Rr(g)}var ot=S.ReactCurrentOwner,P={key:!0,ref:!0,__self:!0,__source:!0},I,D,K;K={};function Q(g){if(de.call(g,"ref")){var E=Object.getOwnPropertyDescriptor(g,"ref").get;if(E&&E.isReactWarning)return!1}return g.ref!==void 0}function Y(g){if(de.call(g,"key")){var E=Object.getOwnPropertyDescriptor(g,"key").get;if(E&&E.isReactWarning)return!1}return g.key!==void 0}function ze(g,E){if(typeof g.ref=="string"&&ot.current&&E&&ot.current.stateNode!==E){var A=q(ot.current.type);K[A]||(T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',q(ot.current.type),g.ref),K[A]=!0)}}function Ke(g,E){{var A=function(){I||(I=!0,T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",E))};A.isReactWarning=!0,Object.defineProperty(g,"key",{get:A,configurable:!0})}}function re(g,E){{var A=function(){D||(D=!0,T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",E))};A.isReactWarning=!0,Object.defineProperty(g,"ref",{get:A,configurable:!0})}}var Le=function(g,E,A,L,F,ne,H){var B={$$typeof:t,type:g,key:E,ref:A,props:H,_owner:ne};return B._store={},Object.defineProperty(B._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(B,"_self",{configurable:!1,enumerable:!1,writable:!1,value:L}),Object.defineProperty(B,"_source",{configurable:!1,enumerable:!1,writable:!1,value:F}),Object.freeze&&(Object.freeze(B.props),Object.freeze(B)),B};function kt(g,E,A,L,F){{var ne,H={},B=null,Pe=null;A!==void 0&&(er(A),B=""+A),Y(E)&&(er(E.key),B=""+E.key),Q(E)&&(Pe=E.ref,ze(E,F));for(ne in E)de.call(E,ne)&&!P.hasOwnProperty(ne)&&(H[ne]=E[ne]);if(g&&g.defaultProps){var he=g.defaultProps;for(ne in he)H[ne]===void 0&&(H[ne]=he[ne])}if(B||Pe){var be=typeof g=="function"?g.displayName||g.name||"Unknown":g;B&&Ke(H,be),Pe&&re(H,be)}return Le(g,B,Pe,F,L,ot.current,H)}}var tr=S.ReactCurrentOwner,_r=S.ReactDebugCurrentFrame;function St(g){if(g){var E=g._owner,A=te(g.type,g._source,E?E.type:null);_r.setExtraStackFrame(A)}else _r.setExtraStackFrame(null)}var Vt;Vt=!1;function Bt(g){return typeof g=="object"&&g!==null&&g.$$typeof===t}function Pr(){{if(tr.current){var g=q(tr.current.type);if(g)return`
22
22
 
23
- Check the render method of \``+g+"`."}return""}}function Pr(g){return""}var ln={};function $r(g){{var C=_r();if(!C){var A=typeof g=="string"?g:g.displayName||g.name;A&&(C=`
23
+ Check the render method of \``+g+"`."}return""}}function $r(g){return""}var cn={};function kr(g){{var E=Pr();if(!E){var A=typeof g=="string"?g:g.displayName||g.name;A&&(E=`
24
24
 
25
- Check the top-level render call using <`+A+">.")}return C}}function tr(g,C){{if(!g._store||g._store.validated||g.key!=null)return;g._store.validated=!0;var A=$r(C);if(ln[A])return;ln[A]=!0;var I="";g&&g._owner&&g._owner!==er.current&&(I=" It was passed a child from "+G(g._owner.type)+"."),vt(g),T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',A,I),vt(null)}}function rr(g,C){{if(typeof g!="object")return;if(Dt(g))for(var A=0;A<g.length;A++){var I=g[A];Vt(I)&&tr(I,C)}else if(Vt(g))g._store&&(g._store.validated=!0);else if(g){var V=h(g);if(typeof V=="function"&&V!==g.entries)for(var ne=V.call(g),J;!(J=ne.next()).done;)Vt(J.value)&&tr(J.value,C)}}}function xo(g){{var C=g.type;if(C==null||typeof C=="string")return;var A;if(typeof C=="function")A=C.propTypes;else if(typeof C=="object"&&(C.$$typeof===l||C.$$typeof===d))A=C.propTypes;else return;if(A){var I=G(C);we(A,g.props,"prop",I,g)}else if(C.PropTypes!==void 0&&!Ft){Ft=!0;var V=G(C);T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",V||"Unknown")}typeof C.getDefaultProps=="function"&&!C.getDefaultProps.isReactClassApproved&&T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function So(g){{for(var C=Object.keys(g.props),A=0;A<C.length;A++){var I=C[A];if(I!=="children"&&I!=="key"){vt(g),T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",I),vt(null);break}}g.ref!==null&&(vt(g),T("Invalid attribute `ref` supplied to `React.Fragment`."),vt(null))}}var cn={};function un(g,C,A,I,V,ne){{var J=F(g);if(!J){var B="";(g===void 0||typeof g=="object"&&g!==null&&Object.keys(g).length===0)&&(B+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Pe=Pr();Pe?B+=Pe:B+=_r();var ge;g===null?ge="null":Dt(g)?ge="array":g!==void 0&&g.$$typeof===t?(ge="<"+(G(g.type)||"Unknown")+" />",B=" Did you accidentally export a JSX literal instead of a component?"):ge=typeof g,T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ge,B)}var ye=$t(g,C,A,V,ne);if(ye==null)return ye;if(J){var qe=C.children;if(qe!==void 0)if(I)if(Dt(qe)){for(var nr=0;nr<qe.length;nr++)rr(qe[nr],g);Object.freeze&&Object.freeze(qe)}else T("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 rr(qe,g)}if(fe.call(C,"key")){var Bt=G(g),Ie=Object.keys(C).filter(function(Sc){return Sc!=="key"}),Eo=Ie.length>0?"{key: someKey, "+Ie.join(": ..., ")+": ...}":"{key: someKey}";if(!cn[Bt+Eo]){var xc=Ie.length>0?"{"+Ie.join(": ..., ")+": ...}":"{}";T(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+A+">.")}return E}}function rr(g,E){{if(!g._store||g._store.validated||g.key!=null)return;g._store.validated=!0;var A=kr(E);if(cn[A])return;cn[A]=!0;var L="";g&&g._owner&&g._owner!==tr.current&&(L=" It was passed a child from "+q(g._owner.type)+"."),St(g),T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',A,L),St(null)}}function nr(g,E){{if(typeof g!="object")return;if(Ft(g))for(var A=0;A<g.length;A++){var L=g[A];Bt(L)&&rr(L,E)}else if(Bt(g))g._store&&(g._store.validated=!0);else if(g){var F=h(g);if(typeof F=="function"&&F!==g.entries)for(var ne=F.call(g),H;!(H=ne.next()).done;)Bt(H.value)&&rr(H.value,E)}}}function So(g){{var E=g.type;if(E==null||typeof E=="string")return;var A;if(typeof E=="function")A=E.propTypes;else if(typeof E=="object"&&(E.$$typeof===l||E.$$typeof===d))A=E.propTypes;else return;if(A){var L=q(E);Te(A,g.props,"prop",L,g)}else if(E.PropTypes!==void 0&&!Vt){Vt=!0;var F=q(E);T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",F||"Unknown")}typeof E.getDefaultProps=="function"&&!E.getDefaultProps.isReactClassApproved&&T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function wo(g){{for(var E=Object.keys(g.props),A=0;A<E.length;A++){var L=E[A];if(L!=="children"&&L!=="key"){St(g),T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",L),St(null);break}}g.ref!==null&&(St(g),T("Invalid attribute `ref` supplied to `React.Fragment`."),St(null))}}var un={};function fn(g,E,A,L,F,ne){{var H=V(g);if(!H){var B="";(g===void 0||typeof g=="object"&&g!==null&&Object.keys(g).length===0)&&(B+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Pe=$r();Pe?B+=Pe:B+=Pr();var he;g===null?he="null":Ft(g)?he="array":g!==void 0&&g.$$typeof===t?(he="<"+(q(g.type)||"Unknown")+" />",B=" Did you accidentally export a JSX literal instead of a component?"):he=typeof g,T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",he,B)}var be=kt(g,E,A,F,ne);if(be==null)return be;if(H){var Ye=E.children;if(Ye!==void 0)if(L)if(Ft(Ye)){for(var or=0;or<Ye.length;or++)nr(Ye[or],g);Object.freeze&&Object.freeze(Ye)}else T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else nr(Ye,g)}if(de.call(E,"key")){var Ut=q(g),Ne=Object.keys(E).filter(function(Sc){return Sc!=="key"}),Co=Ne.length>0?"{key: someKey, "+Ne.join(": ..., ")+": ...}":"{key: someKey}";if(!un[Ut+Co]){var xc=Ne.length>0?"{"+Ne.join(": ..., ")+": ...}":"{}";T(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,Eo,Bt,xc,Bt),cn[Bt+Eo]=!0}}return g===n?So(ye):xo(ye),ye}}function wo(g,C,A){return un(g,C,A,!0)}function To(g,C,A){return un(g,C,A,!1)}var kr=To,Oo=wo;Ar.Fragment=n,Ar.jsx=kr,Ar.jsxs=Oo}()),Ar}process.env.NODE_ENV==="production"?Ho.exports=Ac():Ho.exports=Lc();var b=Ho.exports;function Ic(){return b.jsx(ct.Environment,{children:b.jsx(Nc,{})})}function Nc({positions:e=[2,0,2,0,2,0,2,0]}){return b.jsxs(b.Fragment,{children:[b.jsx(ct.Lightformer,{intensity:5,"rotation-x":Math.PI/2,position:[0,5,-9],scale:[10,10,1]}),b.jsx("group",{rotation:[0,.5,0],children:b.jsx("group",{children:e.map((t,r)=>b.jsx(ct.Lightformer,{form:"circle",intensity:5,rotation:[Math.PI/2,0,0],position:[t,4,r*4],scale:[3,1,1]},r))})}),b.jsx(ct.Lightformer,{intensity:40,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[20,.1,1]}),b.jsx(ct.Lightformer,{intensity:20,"rotation-y":-Math.PI,position:[-5,-2,-1],scale:[20,.1,1]}),b.jsx(ct.Lightformer,{"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[20,.5,1],intensity:5}),b.jsx(ct.Lightformer,{"rotation-y":-Math.PI/2,position:[10,1,0],scale:[20,1,1],intensity:10}),b.jsx(ct.Lightformer,{form:"ring",color:"white",intensity:5,scale:10,position:[-15,4,-18],target:[0,0,0]})]})}function Mc(e){if(e.length<3)return console.log("Not enough vertices to define a plane"),{isCoplanar:!1};const t=new Re.Vector3(e[0].x,e[0].y,e[0].z),r=new Re.Vector3(e[1].x,e[1].y,e[1].z),n=new Re.Vector3(e[2].x,e[2].y,e[2].z),o=new Re.Vector3().subVectors(r,t),i=new Re.Vector3().subVectors(n,t),s=new Re.Vector3().crossVectors(o,i).normalize();for(let a=3;a<e.length;a++){const l=new Re.Vector3(e[a].x,e[a].y,e[a].z),c=new Re.Vector3().subVectors(l,t),u=s.dot(c);if(Math.abs(u)>1e-6)return console.log("Vertices are not on the same plane"),{isCoplanar:!1}}return{isCoplanar:!0,normal:s}}function Dc({safetyZones:e,...t}){return b.jsx("group",{...t,children:e.map((r,n)=>{let o=[];return r.geometry&&(r.geometry.compound?o=r.geometry.compound.child_geometries:r.geometry.convex_hull&&(o=[r.geometry])),o.map((i,s)=>{if(!i.convex_hull)return null;const a=i.convex_hull.vertices.map(u=>new Re.Vector3(u.x/1e3,u.y/1e3,u.z/1e3)),l=Mc(a);if(l.isCoplanar&&l.normal){const d=new Re.Vector3().addVectors(a[0],l.normal.multiplyScalar(1e-4));a.push(d)}let c;try{c=new _c.ConvexGeometry(a)}catch(u){return console.log("Error creating ConvexGeometry:",u),null}return b.jsx(b.Fragment,{children:b.jsx("mesh",{geometry:c,children:b.jsx("meshStandardMaterial",{attach:"material",color:"#009f4d",opacity:.2,depthTest:!1,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-s},n)},`${n}-${s}`)})})})})}function zr(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const Fc=Object.freeze(Object.defineProperty({__proto__:null,default:zr},Symbol.toStringTag,{value:"Module"}));var Vc=!1;function Bc(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Uc(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var zc=function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!Vc:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Uc(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Bc(o);try{i.insertRule(n,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Ce="-ms-",jn="-moz-",oe="-webkit-",Ca="comm",hi="rule",mi="decl",Jc="@import",Ra="@keyframes",Hc="@layer",Wc=Math.abs,Gn=String.fromCharCode,Gc=Object.assign;function qc(e,t){return Oe(e,0)^45?(((t<<2^Oe(e,0))<<2^Oe(e,1))<<2^Oe(e,2))<<2^Oe(e,3):0}function _a(e){return e.trim()}function Kc(e,t){return(e=t.exec(e))?e[0]:e}function ie(e,t,r){return e.replace(t,r)}function Wo(e,t){return e.indexOf(t)}function Oe(e,t){return e.charCodeAt(t)|0}function Jr(e,t,r){return e.slice(t,r)}function ft(e){return e.length}function yi(e){return e.length}function fn(e,t){return t.push(e),e}function Yc(e,t){return e.map(t).join("")}var qn=1,yr=1,Pa=0,Me=0,be=0,br="";function Kn(e,t,r,n,o,i,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:qn,column:yr,length:s,return:""}}function Lr(e,t){return Gc(Kn("",null,null,"",null,null,0),e,{length:-e.length},t)}function Xc(){return be}function Zc(){return be=Me>0?Oe(br,--Me):0,yr--,be===10&&(yr=1,qn--),be}function ze(){return be=Me<Pa?Oe(br,Me++):0,yr++,be===10&&(yr=1,qn++),be}function pt(){return Oe(br,Me)}function wn(){return Me}function Xr(e,t){return Jr(br,e,t)}function Hr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $a(e){return qn=yr=1,Pa=ft(br=e),Me=0,[]}function ka(e){return br="",e}function Tn(e){return _a(Xr(Me-1,Go(e===91?e+2:e===40?e+1:e)))}function Qc(e){for(;(be=pt())&&be<33;)ze();return Hr(e)>2||Hr(be)>3?"":" "}function eu(e,t){for(;--t&&ze()&&!(be<48||be>102||be>57&&be<65||be>70&&be<97););return Xr(e,wn()+(t<6&&pt()==32&&ze()==32))}function Go(e){for(;ze();)switch(be){case e:return Me;case 34:case 39:e!==34&&e!==39&&Go(be);break;case 40:e===41&&Go(e);break;case 92:ze();break}return Me}function tu(e,t){for(;ze()&&e+be!==57;)if(e+be===84&&pt()===47)break;return"/*"+Xr(t,Me-1)+"*"+Gn(e===47?e:ze())}function ru(e){for(;!Hr(pt());)ze();return Xr(e,Me)}function nu(e){return ka(On("",null,null,null,[""],e=$a(e),0,[0],e))}function On(e,t,r,n,o,i,s,a,l){for(var c=0,u=0,d=s,f=0,v=0,m=0,y=1,h=1,S=1,T=0,_="",O=o,w=i,E=n,R=_;h;)switch(m=T,T=ze()){case 40:if(m!=108&&Oe(R,d-1)==58){Wo(R+=ie(Tn(T),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:R+=Tn(T);break;case 9:case 10:case 13:case 32:R+=Qc(m);break;case 92:R+=eu(wn()-1,7);continue;case 47:switch(pt()){case 42:case 47:fn(ou(tu(ze(),wn()),t,r),l);break;default:R+="/"}break;case 123*y:a[c++]=ft(R)*S;case 125*y:case 59:case 0:switch(T){case 0:case 125:h=0;case 59+u:S==-1&&(R=ie(R,/\f/g,"")),v>0&&ft(R)-d&&fn(v>32?Gi(R+";",n,r,d-1):Gi(ie(R," ","")+";",n,r,d-2),l);break;case 59:R+=";";default:if(fn(E=Wi(R,t,r,c,u,o,a,_,O=[],w=[],d),i),T===123)if(u===0)On(R,t,E,E,O,i,d,a,w);else switch(f===99&&Oe(R,3)===110?100:f){case 100:case 108:case 109:case 115:On(e,E,E,n&&fn(Wi(e,E,E,0,0,o,a,_,o,O=[],d),w),o,w,d,a,n?O:w);break;default:On(R,E,E,E,[""],w,0,a,w)}}c=u=v=0,y=S=1,_=R="",d=s;break;case 58:d=1+ft(R),v=m;default:if(y<1){if(T==123)--y;else if(T==125&&y++==0&&Zc()==125)continue}switch(R+=Gn(T),T*y){case 38:S=u>0?1:(R+="\f",-1);break;case 44:a[c++]=(ft(R)-1)*S,S=1;break;case 64:pt()===45&&(R+=Tn(ze())),f=pt(),u=d=ft(_=R+=ru(wn())),T++;break;case 45:m===45&&ft(R)==2&&(y=0)}}return i}function Wi(e,t,r,n,o,i,s,a,l,c,u){for(var d=o-1,f=o===0?i:[""],v=yi(f),m=0,y=0,h=0;m<n;++m)for(var S=0,T=Jr(e,d+1,d=Wc(y=s[m])),_=e;S<v;++S)(_=_a(y>0?f[S]+" "+T:ie(T,/&\f/g,f[S])))&&(l[h++]=_);return Kn(e,t,r,o===0?hi:a,l,c,u)}function ou(e,t,r){return Kn(e,t,r,Ca,Gn(Xc()),Jr(e,2,-2),0)}function Gi(e,t,r,n){return Kn(e,t,r,mi,Jr(e,0,n),Jr(e,n+1,-1),n)}function pr(e,t){for(var r="",n=yi(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function iu(e,t,r,n){switch(e.type){case Hc:if(e.children.length)break;case Jc:case mi:return e.return=e.return||e.value;case Ca:return"";case Ra:return e.return=e.value+"{"+pr(e.children,n)+"}";case hi:e.value=e.props.join(",")}return ft(r=pr(e.children,n))?e.return=e.value+"{"+r+"}":""}function su(e){var t=yi(e);return function(r,n,o,i){for(var s="",a=0;a<t;a++)s+=e[a](r,n,o,i)||"";return s}}function au(e){return function(t){t.root||(t=t.return)&&e(t)}}var lu=function(t,r,n){for(var o=0,i=0;o=i,i=pt(),o===38&&i===12&&(r[n]=1),!Hr(i);)ze();return Xr(t,Me)},cu=function(t,r){var n=-1,o=44;do switch(Hr(o)){case 0:o===38&&pt()===12&&(r[n]=1),t[n]+=lu(Me-1,r,n);break;case 2:t[n]+=Tn(o);break;case 4:if(o===44){t[++n]=pt()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Gn(o)}while(o=ze());return t},uu=function(t,r){return ka(cu($a(t),r))},qi=new WeakMap,fu=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!qi.get(n))&&!o){qi.set(t,!0);for(var i=[],s=uu(r,i),a=n.props,l=0,c=0;l<s.length;l++)for(var u=0;u<a.length;u++,c++)t.props[c]=i[l]?s[l].replace(/&\f/g,a[u]):a[u]+" "+s[l]}}},du=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function ja(e,t){switch(qc(e,t)){case 5103:return oe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return oe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return oe+e+jn+e+Ce+e+e;case 6828:case 4268:return oe+e+Ce+e+e;case 6165:return oe+e+Ce+"flex-"+e+e;case 5187:return oe+e+ie(e,/(\w+).+(:[^]+)/,oe+"box-$1$2"+Ce+"flex-$1$2")+e;case 5443:return oe+e+Ce+"flex-item-"+ie(e,/flex-|-self/,"")+e;case 4675:return oe+e+Ce+"flex-line-pack"+ie(e,/align-content|flex-|-self/,"")+e;case 5548:return oe+e+Ce+ie(e,"shrink","negative")+e;case 5292:return oe+e+Ce+ie(e,"basis","preferred-size")+e;case 6060:return oe+"box-"+ie(e,"-grow","")+oe+e+Ce+ie(e,"grow","positive")+e;case 4554:return oe+ie(e,/([^-])(transform)/g,"$1"+oe+"$2")+e;case 6187:return ie(ie(ie(e,/(zoom-|grab)/,oe+"$1"),/(image-set)/,oe+"$1"),e,"")+e;case 5495:case 3959:return ie(e,/(image-set\([^]*)/,oe+"$1$`$1");case 4968:return ie(ie(e,/(.+:)(flex-)?(.*)/,oe+"box-pack:$3"+Ce+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+oe+e+e;case 4095:case 3583:case 4068:case 2532:return ie(e,/(.+)-inline(.+)/,oe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ft(e)-1-t>6)switch(Oe(e,t+1)){case 109:if(Oe(e,t+4)!==45)break;case 102:return ie(e,/(.+:)(.+)-([^]+)/,"$1"+oe+"$2-$3$1"+jn+(Oe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Wo(e,"stretch")?ja(ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Oe(e,t+1)!==115)break;case 6444:switch(Oe(e,ft(e)-3-(~Wo(e,"!important")&&10))){case 107:return ie(e,":",":"+oe)+e;case 101:return ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+oe+(Oe(e,14)===45?"inline-":"")+"box$3$1"+oe+"$2$3$1"+Ce+"$2box$3")+e}break;case 5936:switch(Oe(e,t+11)){case 114:return oe+e+Ce+ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return oe+e+Ce+ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return oe+e+Ce+ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return oe+e+Ce+e+e}return e}var pu=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case mi:t.return=ja(t.value,t.length);break;case Ra:return pr([Lr(t,{value:ie(t.value,"@","@"+oe)})],o);case hi:if(t.length)return Yc(t.props,function(i){switch(Kc(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pr([Lr(t,{props:[ie(i,/:(read-\w+)/,":"+jn+"$1")]})],o);case"::placeholder":return pr([Lr(t,{props:[ie(i,/:(plac\w+)/,":"+oe+"input-$1")]}),Lr(t,{props:[ie(i,/:(plac\w+)/,":"+jn+"$1")]}),Lr(t,{props:[ie(i,/:(plac\w+)/,Ce+"input-$1")]})],o)}return""})}},gu=[pu],hu=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(y){var h=y.getAttribute("data-emotion");h.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||gu,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var h=y.getAttribute("data-emotion").split(" "),S=1;S<h.length;S++)i[h[S]]=!0;a.push(y)});var l,c=[fu,du];{var u,d=[iu,au(function(y){u.insert(y)})],f=su(c.concat(o,d)),v=function(h){return pr(nu(h),f)};l=function(h,S,T,_){u=T,v(h?h+"{"+S.styles+"}":S.styles),_&&(m.inserted[S.name]=!0)}}var m={key:r,sheet:new zc({key:r,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return m.sheet.hydrate(a),m};let qo;typeof document=="object"&&(qo=hu({key:"css",prepend:!0}));function Aa(e){const{injectFirst:t,children:r}=e;return t&&qo?b.jsx(dr.CacheProvider,{value:qo,children:r}):r}process.env.NODE_ENV!=="production"&&(Aa.propTypes={children:p.node,injectFirst:p.bool});function mu(e){return e==null||Object.keys(e).length===0}function La(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(mu(o)?r:o):t;return b.jsx(dr.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(La.propTypes={defaultTheme:p.object,styles:p.oneOfType([p.array,p.string,p.object,p.func])});/**
30
+ <%s key={someKey} {...props} />`,Co,Ut,xc,Ut),un[Ut+Co]=!0}}return g===n?wo(be):So(be),be}}function To(g,E,A){return fn(g,E,A,!0)}function Oo(g,E,A){return fn(g,E,A,!1)}var jr=Oo,Eo=To;Ir.Fragment=n,Ir.jsx=jr,Ir.jsxs=Eo}()),Ir}process.env.NODE_ENV==="production"?Wo.exports=Ac():Wo.exports=Ic();var b=Wo.exports;function Lc(){return b.jsx(ft.Environment,{children:b.jsx(Nc,{})})}function Nc({positions:e=[2,0,2,0,2,0,2,0]}){return b.jsxs(b.Fragment,{children:[b.jsx(ft.Lightformer,{intensity:5,"rotation-x":Math.PI/2,position:[0,5,-9],scale:[10,10,1]}),b.jsx("group",{rotation:[0,.5,0],children:b.jsx("group",{children:e.map((t,r)=>b.jsx(ft.Lightformer,{form:"circle",intensity:5,rotation:[Math.PI/2,0,0],position:[t,4,r*4],scale:[3,1,1]},r))})}),b.jsx(ft.Lightformer,{intensity:40,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[20,.1,1]}),b.jsx(ft.Lightformer,{intensity:20,"rotation-y":-Math.PI,position:[-5,-2,-1],scale:[20,.1,1]}),b.jsx(ft.Lightformer,{"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[20,.5,1],intensity:5}),b.jsx(ft.Lightformer,{"rotation-y":-Math.PI/2,position:[10,1,0],scale:[20,1,1],intensity:10}),b.jsx(ft.Lightformer,{form:"ring",color:"white",intensity:5,scale:10,position:[-15,4,-18],target:[0,0,0]})]})}function Mc(e){if(e.length<3)return console.log("Not enough vertices to define a plane"),{isCoplanar:!1};const t=new ut.Vector3(e[0].x,e[0].y,e[0].z),r=new ut.Vector3(e[1].x,e[1].y,e[1].z),n=new ut.Vector3(e[2].x,e[2].y,e[2].z),o=new ut.Vector3().subVectors(r,t),i=new ut.Vector3().subVectors(n,t),s=new ut.Vector3().crossVectors(o,i).normalize();for(let a=3;a<e.length;a++){const l=new ut.Vector3(e[a].x,e[a].y,e[a].z),c=new ut.Vector3().subVectors(l,t),u=s.dot(c);if(Math.abs(u)>1e-6)return console.log("Vertices are not on the same plane"),{isCoplanar:!1}}return{isCoplanar:!0,normal:s}}function Dc({safetyZones:e,...t}){return b.jsx("group",{...t,children:e.map((r,n)=>{let o=[];return r.geometry&&(r.geometry.compound?o=r.geometry.compound.child_geometries:r.geometry.convex_hull&&(o=[r.geometry])),o.map((i,s)=>{if(!i.convex_hull)return null;const a=i.convex_hull.vertices.map(u=>new ut.Vector3(u.x/1e3,u.y/1e3,u.z/1e3)),l=Mc(a);if(l.isCoplanar&&l.normal){const d=new ut.Vector3().addVectors(a[0],l.normal.multiplyScalar(1e-4));a.push(d)}let c;try{c=new _c.ConvexGeometry(a)}catch(u){return console.log("Error creating ConvexGeometry:",u),null}return b.jsx(b.Fragment,{children:b.jsx("mesh",{geometry:c,children:b.jsx("meshStandardMaterial",{attach:"material",color:"#009f4d",opacity:.2,depthTest:!1,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-s},n)},`${n}-${s}`)})})})})}function Jr(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const Fc=Object.freeze(Object.defineProperty({__proto__:null,default:Jr},Symbol.toStringTag,{value:"Module"}));var Vc=!1;function Bc(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Uc(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var zc=function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!Vc:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Uc(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Bc(o);try{i.insertRule(n,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Re="-ms-",An="-moz-",oe="-webkit-",Ca="comm",mi="rule",yi="decl",Jc="@import",Ra="@keyframes",Hc="@layer",Wc=Math.abs,qn=String.fromCharCode,Gc=Object.assign;function qc(e,t){return Ee(e,0)^45?(((t<<2^Ee(e,0))<<2^Ee(e,1))<<2^Ee(e,2))<<2^Ee(e,3):0}function _a(e){return e.trim()}function Kc(e,t){return(e=t.exec(e))?e[0]:e}function ie(e,t,r){return e.replace(t,r)}function Go(e,t){return e.indexOf(t)}function Ee(e,t){return e.charCodeAt(t)|0}function Hr(e,t,r){return e.slice(t,r)}function pt(e){return e.length}function bi(e){return e.length}function dn(e,t){return t.push(e),e}function Yc(e,t){return e.map(t).join("")}var Kn=1,br=1,Pa=0,Fe=0,ve=0,vr="";function Yn(e,t,r,n,o,i,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Kn,column:br,length:s,return:""}}function Lr(e,t){return Gc(Yn("",null,null,"",null,null,0),e,{length:-e.length},t)}function Xc(){return ve}function Zc(){return ve=Fe>0?Ee(vr,--Fe):0,br--,ve===10&&(br=1,Kn--),ve}function He(){return ve=Fe<Pa?Ee(vr,Fe++):0,br++,ve===10&&(br=1,Kn++),ve}function ht(){return Ee(vr,Fe)}function Tn(){return Fe}function Zr(e,t){return Hr(vr,e,t)}function Wr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $a(e){return Kn=br=1,Pa=pt(vr=e),Fe=0,[]}function ka(e){return vr="",e}function On(e){return _a(Zr(Fe-1,qo(e===91?e+2:e===40?e+1:e)))}function Qc(e){for(;(ve=ht())&&ve<33;)He();return Wr(e)>2||Wr(ve)>3?"":" "}function eu(e,t){for(;--t&&He()&&!(ve<48||ve>102||ve>57&&ve<65||ve>70&&ve<97););return Zr(e,Tn()+(t<6&&ht()==32&&He()==32))}function qo(e){for(;He();)switch(ve){case e:return Fe;case 34:case 39:e!==34&&e!==39&&qo(ve);break;case 40:e===41&&qo(e);break;case 92:He();break}return Fe}function tu(e,t){for(;He()&&e+ve!==57;)if(e+ve===84&&ht()===47)break;return"/*"+Zr(t,Fe-1)+"*"+qn(e===47?e:He())}function ru(e){for(;!Wr(ht());)He();return Zr(e,Fe)}function nu(e){return ka(En("",null,null,null,[""],e=$a(e),0,[0],e))}function En(e,t,r,n,o,i,s,a,l){for(var c=0,u=0,d=s,f=0,v=0,y=0,m=1,h=1,S=1,T=0,k="",O=o,w=i,C=n,R=k;h;)switch(y=T,T=He()){case 40:if(y!=108&&Ee(R,d-1)==58){Go(R+=ie(On(T),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:R+=On(T);break;case 9:case 10:case 13:case 32:R+=Qc(y);break;case 92:R+=eu(Tn()-1,7);continue;case 47:switch(ht()){case 42:case 47:dn(ou(tu(He(),Tn()),t,r),l);break;default:R+="/"}break;case 123*m:a[c++]=pt(R)*S;case 125*m:case 59:case 0:switch(T){case 0:case 125:h=0;case 59+u:S==-1&&(R=ie(R,/\f/g,"")),v>0&&pt(R)-d&&dn(v>32?qi(R+";",n,r,d-1):qi(ie(R," ","")+";",n,r,d-2),l);break;case 59:R+=";";default:if(dn(C=Gi(R,t,r,c,u,o,a,k,O=[],w=[],d),i),T===123)if(u===0)En(R,t,C,C,O,i,d,a,w);else switch(f===99&&Ee(R,3)===110?100:f){case 100:case 108:case 109:case 115:En(e,C,C,n&&dn(Gi(e,C,C,0,0,o,a,k,o,O=[],d),w),o,w,d,a,n?O:w);break;default:En(R,C,C,C,[""],w,0,a,w)}}c=u=v=0,m=S=1,k=R="",d=s;break;case 58:d=1+pt(R),v=y;default:if(m<1){if(T==123)--m;else if(T==125&&m++==0&&Zc()==125)continue}switch(R+=qn(T),T*m){case 38:S=u>0?1:(R+="\f",-1);break;case 44:a[c++]=(pt(R)-1)*S,S=1;break;case 64:ht()===45&&(R+=On(He())),f=ht(),u=d=pt(k=R+=ru(Tn())),T++;break;case 45:y===45&&pt(R)==2&&(m=0)}}return i}function Gi(e,t,r,n,o,i,s,a,l,c,u){for(var d=o-1,f=o===0?i:[""],v=bi(f),y=0,m=0,h=0;y<n;++y)for(var S=0,T=Hr(e,d+1,d=Wc(m=s[y])),k=e;S<v;++S)(k=_a(m>0?f[S]+" "+T:ie(T,/&\f/g,f[S])))&&(l[h++]=k);return Yn(e,t,r,o===0?mi:a,l,c,u)}function ou(e,t,r){return Yn(e,t,r,Ca,qn(Xc()),Hr(e,2,-2),0)}function qi(e,t,r,n){return Yn(e,t,r,yi,Hr(e,0,n),Hr(e,n+1,-1),n)}function gr(e,t){for(var r="",n=bi(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function iu(e,t,r,n){switch(e.type){case Hc:if(e.children.length)break;case Jc:case yi:return e.return=e.return||e.value;case Ca:return"";case Ra:return e.return=e.value+"{"+gr(e.children,n)+"}";case mi:e.value=e.props.join(",")}return pt(r=gr(e.children,n))?e.return=e.value+"{"+r+"}":""}function su(e){var t=bi(e);return function(r,n,o,i){for(var s="",a=0;a<t;a++)s+=e[a](r,n,o,i)||"";return s}}function au(e){return function(t){t.root||(t=t.return)&&e(t)}}var lu=function(t,r,n){for(var o=0,i=0;o=i,i=ht(),o===38&&i===12&&(r[n]=1),!Wr(i);)He();return Zr(t,Fe)},cu=function(t,r){var n=-1,o=44;do switch(Wr(o)){case 0:o===38&&ht()===12&&(r[n]=1),t[n]+=lu(Fe-1,r,n);break;case 2:t[n]+=On(o);break;case 4:if(o===44){t[++n]=ht()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=qn(o)}while(o=He());return t},uu=function(t,r){return ka(cu($a(t),r))},Ki=new WeakMap,fu=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Ki.get(n))&&!o){Ki.set(t,!0);for(var i=[],s=uu(r,i),a=n.props,l=0,c=0;l<s.length;l++)for(var u=0;u<a.length;u++,c++)t.props[c]=i[l]?s[l].replace(/&\f/g,a[u]):a[u]+" "+s[l]}}},du=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function ja(e,t){switch(qc(e,t)){case 5103:return oe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return oe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return oe+e+An+e+Re+e+e;case 6828:case 4268:return oe+e+Re+e+e;case 6165:return oe+e+Re+"flex-"+e+e;case 5187:return oe+e+ie(e,/(\w+).+(:[^]+)/,oe+"box-$1$2"+Re+"flex-$1$2")+e;case 5443:return oe+e+Re+"flex-item-"+ie(e,/flex-|-self/,"")+e;case 4675:return oe+e+Re+"flex-line-pack"+ie(e,/align-content|flex-|-self/,"")+e;case 5548:return oe+e+Re+ie(e,"shrink","negative")+e;case 5292:return oe+e+Re+ie(e,"basis","preferred-size")+e;case 6060:return oe+"box-"+ie(e,"-grow","")+oe+e+Re+ie(e,"grow","positive")+e;case 4554:return oe+ie(e,/([^-])(transform)/g,"$1"+oe+"$2")+e;case 6187:return ie(ie(ie(e,/(zoom-|grab)/,oe+"$1"),/(image-set)/,oe+"$1"),e,"")+e;case 5495:case 3959:return ie(e,/(image-set\([^]*)/,oe+"$1$`$1");case 4968:return ie(ie(e,/(.+:)(flex-)?(.*)/,oe+"box-pack:$3"+Re+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+oe+e+e;case 4095:case 3583:case 4068:case 2532:return ie(e,/(.+)-inline(.+)/,oe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(pt(e)-1-t>6)switch(Ee(e,t+1)){case 109:if(Ee(e,t+4)!==45)break;case 102:return ie(e,/(.+:)(.+)-([^]+)/,"$1"+oe+"$2-$3$1"+An+(Ee(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Go(e,"stretch")?ja(ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ee(e,t+1)!==115)break;case 6444:switch(Ee(e,pt(e)-3-(~Go(e,"!important")&&10))){case 107:return ie(e,":",":"+oe)+e;case 101:return ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+oe+(Ee(e,14)===45?"inline-":"")+"box$3$1"+oe+"$2$3$1"+Re+"$2box$3")+e}break;case 5936:switch(Ee(e,t+11)){case 114:return oe+e+Re+ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return oe+e+Re+ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return oe+e+Re+ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return oe+e+Re+e+e}return e}var pu=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case yi:t.return=ja(t.value,t.length);break;case Ra:return gr([Lr(t,{value:ie(t.value,"@","@"+oe)})],o);case mi:if(t.length)return Yc(t.props,function(i){switch(Kc(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return gr([Lr(t,{props:[ie(i,/:(read-\w+)/,":"+An+"$1")]})],o);case"::placeholder":return gr([Lr(t,{props:[ie(i,/:(plac\w+)/,":"+oe+"input-$1")]}),Lr(t,{props:[ie(i,/:(plac\w+)/,":"+An+"$1")]}),Lr(t,{props:[ie(i,/:(plac\w+)/,Re+"input-$1")]})],o)}return""})}},gu=[pu],hu=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){var h=m.getAttribute("data-emotion");h.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||gu,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var h=m.getAttribute("data-emotion").split(" "),S=1;S<h.length;S++)i[h[S]]=!0;a.push(m)});var l,c=[fu,du];{var u,d=[iu,au(function(m){u.insert(m)})],f=su(c.concat(o,d)),v=function(h){return gr(nu(h),f)};l=function(h,S,T,k){u=T,v(h?h+"{"+S.styles+"}":S.styles),k&&(y.inserted[S.name]=!0)}}var y={key:r,sheet:new zc({key:r,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return y.sheet.hydrate(a),y};let Ko;typeof document=="object"&&(Ko=hu({key:"css",prepend:!0}));function Aa(e){const{injectFirst:t,children:r}=e;return t&&Ko?b.jsx(pr.CacheProvider,{value:Ko,children:r}):r}process.env.NODE_ENV!=="production"&&(Aa.propTypes={children:p.node,injectFirst:p.bool});function mu(e){return e==null||Object.keys(e).length===0}function Ia(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(mu(o)?r:o):t;return b.jsx(pr.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(Ia.propTypes={defaultTheme:p.object,styles:p.oneOfType([p.array,p.string,p.object,p.func])});/**
31
31
  * @mui/styled-engine v5.16.6
32
32
  *
33
33
  * @license MIT
34
34
  * This source code is licensed under the MIT license found in the
35
35
  * LICENSE file in the root directory of this source tree.
36
- */function Ia(e,t){const r=kc(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
37
- `)):n.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}const Na=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},yu=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:La,StyledEngineProvider:Aa,ThemeContext:dr.ThemeContext,css:dr.css,default:Ia,internal_processStyles:Na,keyframes:dr.keyframes},Symbol.toStringTag,{value:"Module"}));function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},P.apply(null,arguments)}function De(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function St(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ma(e){if(!St(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Ma(e[r])}),t}function Ze(e,t,r={clone:!0}){const n=r.clone?P({},e):e;return St(e)&&St(t)&&Object.keys(t).forEach(o=>{St(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&St(e[o])?n[o]=Ze(e[o],t[o],r):r.clone?n[o]=St(t[o])?Ma(t[o]):t[o]:n[o]=t[o]}),n}const bu=Object.freeze(Object.defineProperty({__proto__:null,default:Ze,isPlainObject:St},Symbol.toStringTag,{value:"Module"})),vu=["values","unit","step"],xu=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>P({},r,{[n.key]:n.val}),{})};function Da(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=De(e,vu),i=xu(t),s=Object.keys(i);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-n/100}${r})`}function c(f,v){const m=s.indexOf(v);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r}) and (max-width:${(m!==-1&&typeof t[s[m]]=="number"?t[s[m]]:v)-n/100}${r})`}function u(f){return s.indexOf(f)+1<s.length?c(f,s[s.indexOf(f)+1]):a(f)}function d(f){const v=s.indexOf(f);return v===0?a(s[1]):v===s.length-1?l(s[v]):c(f,s[s.indexOf(f)+1]).replace("@media","@media not all and")}return P({keys:s,values:i,up:a,down:l,between:c,only:u,not:d,unit:r},o)}const Su={borderRadius:4},Nt=process.env.NODE_ENV!=="production"?p.oneOfType([p.number,p.string,p.object,p.array]):{};function Fr(e,t){return t?Ze(e,t,{clone:!1}):e}const bi={xs:0,sm:600,md:900,lg:1200,xl:1536},Ki={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${bi[e]}px)`};function ot(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||Ki;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=r(t[l]),s),{})}if(typeof t=="object"){const i=n.breakpoints||Ki;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||bi).indexOf(a)!==-1){const l=i.up(a);s[l]=r(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return r(t)}function Fa(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const i=e.up(o);return n[i]={},n},{}))||{}}function Va(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function wu(e,...t){const r=Fa(e),n=[r,...t].reduce((o,i)=>Ze(o,i),{});return Va(Object.keys(r),n)}function Tu(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,i)=>{i<e.length&&(r[o]=!0)}):n.forEach(o=>{e[o]!=null&&(r[o]=!0)}),r}function Ro({values:e,breakpoints:t,base:r}){const n=r||Tu(e,t),o=Object.keys(n);if(o.length===0)return e;let i;return o.reduce((s,a,l)=>(Array.isArray(e)?(s[a]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(s[a]=e[a]!=null?e[a]:e[i],i=a):s[a]=e,s),{})}function Ee(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":zr(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Ou=Object.freeze(Object.defineProperty({__proto__:null,default:Ee},Symbol.toStringTag,{value:"Module"}));function Yn(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function An(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Yn(e,r)||n,t&&(o=t(o,n,e)),o}function he(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,c=Yn(l,n)||{};return ot(s,a,d=>{let f=An(c,o,d);return d===f&&typeof d=="string"&&(f=An(c,o,`${t}${d==="default"?"":Ee(d)}`,d)),r===!1?f:{[r]:f}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Nt}:{},i.filterProps=[t],i}function Eu(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Cu={m:"margin",p:"padding"},Ru={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Yi={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},_u=Eu(e=>{if(e.length>2)if(Yi[e])e=Yi[e];else return[e];const[t,r]=e.split(""),n=Cu[t],o=Ru[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),Xn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Zn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Pu=[...Xn,...Zn];function Zr(e,t,r,n){var o;const i=(o=Yn(e,t,!1))!=null?o:r;return typeof i=="number"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${s}.`),i*s):Array.isArray(i)?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>i.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${s} > ${i.length-1}, you need to add the missing values.`].join(`
36
+ */function La(e,t){const r=kc(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
37
+ `)):n.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}const Na=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},yu=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Ia,StyledEngineProvider:Aa,ThemeContext:pr.ThemeContext,css:pr.css,default:La,internal_processStyles:Na,keyframes:pr.keyframes},Symbol.toStringTag,{value:"Module"}));function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_.apply(null,arguments)}function Ve(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function wt(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ma(e){if(!wt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Ma(e[r])}),t}function et(e,t,r={clone:!0}){const n=r.clone?_({},e):e;return wt(e)&&wt(t)&&Object.keys(t).forEach(o=>{wt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&wt(e[o])?n[o]=et(e[o],t[o],r):r.clone?n[o]=wt(t[o])?Ma(t[o]):t[o]:n[o]=t[o]}),n}const bu=Object.freeze(Object.defineProperty({__proto__:null,default:et,isPlainObject:wt},Symbol.toStringTag,{value:"Module"})),vu=["values","unit","step"],xu=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>_({},r,{[n.key]:n.val}),{})};function Da(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Ve(e,vu),i=xu(t),s=Object.keys(i);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-n/100}${r})`}function c(f,v){const y=s.indexOf(v);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r}) and (max-width:${(y!==-1&&typeof t[s[y]]=="number"?t[s[y]]:v)-n/100}${r})`}function u(f){return s.indexOf(f)+1<s.length?c(f,s[s.indexOf(f)+1]):a(f)}function d(f){const v=s.indexOf(f);return v===0?a(s[1]):v===s.length-1?l(s[v]):c(f,s[s.indexOf(f)+1]).replace("@media","@media not all and")}return _({keys:s,values:i,up:a,down:l,between:c,only:u,not:d,unit:r},o)}const Su={borderRadius:4},Mt=process.env.NODE_ENV!=="production"?p.oneOfType([p.number,p.string,p.object,p.array]):{};function Vr(e,t){return t?et(e,t,{clone:!1}):e}const vi={xs:0,sm:600,md:900,lg:1200,xl:1536},Yi={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${vi[e]}px)`};function it(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||Yi;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=r(t[l]),s),{})}if(typeof t=="object"){const i=n.breakpoints||Yi;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||vi).indexOf(a)!==-1){const l=i.up(a);s[l]=r(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return r(t)}function Fa(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const i=e.up(o);return n[i]={},n},{}))||{}}function Va(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function wu(e,...t){const r=Fa(e),n=[r,...t].reduce((o,i)=>et(o,i),{});return Va(Object.keys(r),n)}function Tu(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,i)=>{i<e.length&&(r[o]=!0)}):n.forEach(o=>{e[o]!=null&&(r[o]=!0)}),r}function _o({values:e,breakpoints:t,base:r}){const n=r||Tu(e,t),o=Object.keys(n);if(o.length===0)return e;let i;return o.reduce((s,a,l)=>(Array.isArray(e)?(s[a]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(s[a]=e[a]!=null?e[a]:e[i],i=a):s[a]=e,s),{})}function Ce(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Jr(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Ou=Object.freeze(Object.defineProperty({__proto__:null,default:Ce},Symbol.toStringTag,{value:"Module"}));function Xn(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function In(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Xn(e,r)||n,t&&(o=t(o,n,e)),o}function me(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,c=Xn(l,n)||{};return it(s,a,d=>{let f=In(c,o,d);return d===f&&typeof d=="string"&&(f=In(c,o,`${t}${d==="default"?"":Ce(d)}`,d)),r===!1?f:{[r]:f}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Mt}:{},i.filterProps=[t],i}function Eu(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Cu={m:"margin",p:"padding"},Ru={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Xi={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},_u=Eu(e=>{if(e.length>2)if(Xi[e])e=Xi[e];else return[e];const[t,r]=e.split(""),n=Cu[t],o=Ru[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),Zn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Qn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Pu=[...Zn,...Qn];function Qr(e,t,r,n){var o;const i=(o=Xn(e,t,!1))!=null?o:r;return typeof i=="number"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${s}.`),i*s):Array.isArray(i)?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>i.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${s} > ${i.length-1}, you need to add the missing values.`].join(`
38
38
  `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
39
39
  `))),i[s]):typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(`
40
- `)),()=>{})}function vi(e){return Zr(e,"spacing",8,"spacing")}function Jt(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function $u(e,t){return r=>e.reduce((n,o)=>(n[o]=Jt(t,r),n),{})}function ku(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=_u(r),i=$u(o,n),s=e[r];return ot(e,s,i)}function Ba(e,t){const r=vi(e.theme);return Object.keys(e).map(n=>ku(e,t,n,r)).reduce(Fr,{})}function de(e){return Ba(e,Xn)}de.propTypes=process.env.NODE_ENV!=="production"?Xn.reduce((e,t)=>(e[t]=Nt,e),{}):{};de.filterProps=Xn;function pe(e){return Ba(e,Zn)}pe.propTypes=process.env.NODE_ENV!=="production"?Zn.reduce((e,t)=>(e[t]=Nt,e),{}):{};pe.filterProps=Zn;process.env.NODE_ENV!=="production"&&Pu.reduce((e,t)=>(e[t]=Nt,e),{});function ju(e=8){if(e.mui)return e;const t=vi({spacing:e}),r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" "));return r.mui=!0,r}function Qn(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?Fr(o,t[i](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Ye(e){return typeof e!="number"?e:`${e}px solid`}function et(e,t){return he({prop:e,themeKey:"borders",transform:t})}const Au=et("border",Ye),Lu=et("borderTop",Ye),Iu=et("borderRight",Ye),Nu=et("borderBottom",Ye),Mu=et("borderLeft",Ye),Du=et("borderColor"),Fu=et("borderTopColor"),Vu=et("borderRightColor"),Bu=et("borderBottomColor"),Uu=et("borderLeftColor"),zu=et("outline",Ye),Ju=et("outlineColor"),eo=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Zr(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Jt(t,n)});return ot(e,e.borderRadius,r)}return null};eo.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Nt}:{};eo.filterProps=["borderRadius"];Qn(Au,Lu,Iu,Nu,Mu,Du,Fu,Vu,Bu,Uu,eo,zu,Ju);const to=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Zr(e.theme,"spacing",8,"gap"),r=n=>({gap:Jt(t,n)});return ot(e,e.gap,r)}return null};to.propTypes=process.env.NODE_ENV!=="production"?{gap:Nt}:{};to.filterProps=["gap"];const ro=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Zr(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Jt(t,n)});return ot(e,e.columnGap,r)}return null};ro.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Nt}:{};ro.filterProps=["columnGap"];const no=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Zr(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Jt(t,n)});return ot(e,e.rowGap,r)}return null};no.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Nt}:{};no.filterProps=["rowGap"];const Hu=he({prop:"gridColumn"}),Wu=he({prop:"gridRow"}),Gu=he({prop:"gridAutoFlow"}),qu=he({prop:"gridAutoColumns"}),Ku=he({prop:"gridAutoRows"}),Yu=he({prop:"gridTemplateColumns"}),Xu=he({prop:"gridTemplateRows"}),Zu=he({prop:"gridTemplateAreas"}),Qu=he({prop:"gridArea"});Qn(to,ro,no,Hu,Wu,Gu,qu,Ku,Yu,Xu,Zu,Qu);function gr(e,t){return t==="grey"?t:e}const ef=he({prop:"color",themeKey:"palette",transform:gr}),tf=he({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gr}),rf=he({prop:"backgroundColor",themeKey:"palette",transform:gr});Qn(ef,tf,rf);function Ue(e){return e<=1&&e!==0?`${e*100}%`:e}const nf=he({prop:"width",transform:Ue}),xi=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const i=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||bi[r];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Ue(r)}};return ot(e,e.maxWidth,t)}return null};xi.filterProps=["maxWidth"];const of=he({prop:"minWidth",transform:Ue}),sf=he({prop:"height",transform:Ue}),af=he({prop:"maxHeight",transform:Ue}),lf=he({prop:"minHeight",transform:Ue});he({prop:"size",cssProperty:"width",transform:Ue});he({prop:"size",cssProperty:"height",transform:Ue});const cf=he({prop:"boxSizing"});Qn(nf,xi,of,sf,af,lf,cf);const Qr={border:{themeKey:"borders",transform:Ye},borderTop:{themeKey:"borders",transform:Ye},borderRight:{themeKey:"borders",transform:Ye},borderBottom:{themeKey:"borders",transform:Ye},borderLeft:{themeKey:"borders",transform:Ye},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ye},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:eo},color:{themeKey:"palette",transform:gr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:gr},backgroundColor:{themeKey:"palette",transform:gr},p:{style:pe},pt:{style:pe},pr:{style:pe},pb:{style:pe},pl:{style:pe},px:{style:pe},py:{style:pe},padding:{style:pe},paddingTop:{style:pe},paddingRight:{style:pe},paddingBottom:{style:pe},paddingLeft:{style:pe},paddingX:{style:pe},paddingY:{style:pe},paddingInline:{style:pe},paddingInlineStart:{style:pe},paddingInlineEnd:{style:pe},paddingBlock:{style:pe},paddingBlockStart:{style:pe},paddingBlockEnd:{style:pe},m:{style:de},mt:{style:de},mr:{style:de},mb:{style:de},ml:{style:de},mx:{style:de},my:{style:de},margin:{style:de},marginTop:{style:de},marginRight:{style:de},marginBottom:{style:de},marginLeft:{style:de},marginX:{style:de},marginY:{style:de},marginInline:{style:de},marginInlineStart:{style:de},marginInlineEnd:{style:de},marginBlock:{style:de},marginBlockStart:{style:de},marginBlockEnd:{style:de},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:to},rowGap:{style:no},columnGap:{style:ro},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ue},maxWidth:{style:xi},minWidth:{transform:Ue},height:{transform:Ue},maxHeight:{transform:Ue},minHeight:{transform:Ue},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function uf(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function ff(e,t){return typeof e=="function"?e(t):e}function Ua(){function e(r,n,o,i){const s={[r]:n,theme:o},a=i[r];if(!a)return{[r]:n};const{cssProperty:l=r,themeKey:c,transform:u,style:d}=a;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const f=Yn(o,c)||{};return d?d(s):ot(s,n,m=>{let y=An(f,u,m);return m===y&&typeof m=="string"&&(y=An(f,u,`${r}${m==="default"?"":Ee(m)}`,m)),l===!1?y:{[l]:y}})}function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const s=(n=i.unstable_sxConfig)!=null?n:Qr;function a(l){let c=l;if(typeof l=="function")c=l(i);else if(typeof l!="object")return l;if(!c)return null;const u=Fa(i.breakpoints),d=Object.keys(u);let f=u;return Object.keys(c).forEach(v=>{const m=ff(c[v],i);if(m!=null)if(typeof m=="object")if(s[v])f=Fr(f,e(v,m,i,s));else{const y=ot({theme:i},m,h=>({[v]:h}));uf(y,m)?f[v]=t({sx:m,theme:i}):f=Fr(f,y)}else f=Fr(f,e(v,m,i,s))}),Va(d,f)}return Array.isArray(o)?o.map(a):a(o)}return t}const en=Ua();en.filterProps=["sx"];function za(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const df=["breakpoints","palette","spacing","shape"];function tn(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,s=De(e,df),a=Da(r),l=ju(o);let c=Ze({breakpoints:a,direction:"ltr",components:{},palette:P({mode:"light"},n),spacing:l,shape:P({},Su,i)},s);return c.applyStyles=za,c=t.reduce((u,d)=>Ze(u,d),c),c.unstable_sxConfig=P({},Qr,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(d){return en({sx:d,theme:this})},c}const pf=Object.freeze(Object.defineProperty({__proto__:null,default:tn,private_createBreakpoints:Da,unstable_applyStyles:za},Symbol.toStringTag,{value:"Module"}));function gf(e){return Object.keys(e).length===0}function hf(e=null){const t=N.useContext(dr.ThemeContext);return!t||gf(t)?e:t}const mf=tn();function yf(e=mf){return hf(e)}const bf=["sx"],vf=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Qr;return Object.keys(e).forEach(i=>{o[i]?n.systemProps[i]=e[i]:n.otherProps[i]=e[i]}),n};function Ja(e){const{sx:t}=e,r=De(e,bf),{systemProps:n,otherProps:o}=vf(r);let i;return Array.isArray(t)?i=[n,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return St(a)?P({},n,a):n}:i=P({},n,t),P({},o,{sx:i})}const xf=Object.freeze(Object.defineProperty({__proto__:null,default:en,extendSxProp:Ja,unstable_createStyleFunctionSx:Ua,unstable_defaultSxConfig:Qr},Symbol.toStringTag,{value:"Module"})),Xi=e=>e,Sf=()=>{let e=Xi;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Xi}}},Ha=Sf();function Wa(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Wa(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function gt(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Wa(e))&&(n&&(n+=" "),n+=t);return n}const wf={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function rn(e,t,r="Mui"){const n=wf[t];return n?`${r}-${n}`:`${Ha.generate(e)}-${t}`}function Ga(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=rn(e,o,r)}),n}var Ko={exports:{}},se={};/**
40
+ `)),()=>{})}function xi(e){return Qr(e,"spacing",8,"spacing")}function Ht(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function $u(e,t){return r=>e.reduce((n,o)=>(n[o]=Ht(t,r),n),{})}function ku(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=_u(r),i=$u(o,n),s=e[r];return it(e,s,i)}function Ba(e,t){const r=xi(e.theme);return Object.keys(e).map(n=>ku(e,t,n,r)).reduce(Vr,{})}function pe(e){return Ba(e,Zn)}pe.propTypes=process.env.NODE_ENV!=="production"?Zn.reduce((e,t)=>(e[t]=Mt,e),{}):{};pe.filterProps=Zn;function ge(e){return Ba(e,Qn)}ge.propTypes=process.env.NODE_ENV!=="production"?Qn.reduce((e,t)=>(e[t]=Mt,e),{}):{};ge.filterProps=Qn;process.env.NODE_ENV!=="production"&&Pu.reduce((e,t)=>(e[t]=Mt,e),{});function ju(e=8){if(e.mui)return e;const t=xi({spacing:e}),r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" "));return r.mui=!0,r}function eo(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?Vr(o,t[i](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Ze(e){return typeof e!="number"?e:`${e}px solid`}function rt(e,t){return me({prop:e,themeKey:"borders",transform:t})}const Au=rt("border",Ze),Iu=rt("borderTop",Ze),Lu=rt("borderRight",Ze),Nu=rt("borderBottom",Ze),Mu=rt("borderLeft",Ze),Du=rt("borderColor"),Fu=rt("borderTopColor"),Vu=rt("borderRightColor"),Bu=rt("borderBottomColor"),Uu=rt("borderLeftColor"),zu=rt("outline",Ze),Ju=rt("outlineColor"),to=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Qr(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Ht(t,n)});return it(e,e.borderRadius,r)}return null};to.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Mt}:{};to.filterProps=["borderRadius"];eo(Au,Iu,Lu,Nu,Mu,Du,Fu,Vu,Bu,Uu,to,zu,Ju);const ro=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Qr(e.theme,"spacing",8,"gap"),r=n=>({gap:Ht(t,n)});return it(e,e.gap,r)}return null};ro.propTypes=process.env.NODE_ENV!=="production"?{gap:Mt}:{};ro.filterProps=["gap"];const no=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Qr(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Ht(t,n)});return it(e,e.columnGap,r)}return null};no.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Mt}:{};no.filterProps=["columnGap"];const oo=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Qr(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Ht(t,n)});return it(e,e.rowGap,r)}return null};oo.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Mt}:{};oo.filterProps=["rowGap"];const Hu=me({prop:"gridColumn"}),Wu=me({prop:"gridRow"}),Gu=me({prop:"gridAutoFlow"}),qu=me({prop:"gridAutoColumns"}),Ku=me({prop:"gridAutoRows"}),Yu=me({prop:"gridTemplateColumns"}),Xu=me({prop:"gridTemplateRows"}),Zu=me({prop:"gridTemplateAreas"}),Qu=me({prop:"gridArea"});eo(ro,no,oo,Hu,Wu,Gu,qu,Ku,Yu,Xu,Zu,Qu);function hr(e,t){return t==="grey"?t:e}const ef=me({prop:"color",themeKey:"palette",transform:hr}),tf=me({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:hr}),rf=me({prop:"backgroundColor",themeKey:"palette",transform:hr});eo(ef,tf,rf);function Je(e){return e<=1&&e!==0?`${e*100}%`:e}const nf=me({prop:"width",transform:Je}),Si=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const i=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||vi[r];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Je(r)}};return it(e,e.maxWidth,t)}return null};Si.filterProps=["maxWidth"];const of=me({prop:"minWidth",transform:Je}),sf=me({prop:"height",transform:Je}),af=me({prop:"maxHeight",transform:Je}),lf=me({prop:"minHeight",transform:Je});me({prop:"size",cssProperty:"width",transform:Je});me({prop:"size",cssProperty:"height",transform:Je});const cf=me({prop:"boxSizing"});eo(nf,Si,of,sf,af,lf,cf);const en={border:{themeKey:"borders",transform:Ze},borderTop:{themeKey:"borders",transform:Ze},borderRight:{themeKey:"borders",transform:Ze},borderBottom:{themeKey:"borders",transform:Ze},borderLeft:{themeKey:"borders",transform:Ze},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ze},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:to},color:{themeKey:"palette",transform:hr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:hr},backgroundColor:{themeKey:"palette",transform:hr},p:{style:ge},pt:{style:ge},pr:{style:ge},pb:{style:ge},pl:{style:ge},px:{style:ge},py:{style:ge},padding:{style:ge},paddingTop:{style:ge},paddingRight:{style:ge},paddingBottom:{style:ge},paddingLeft:{style:ge},paddingX:{style:ge},paddingY:{style:ge},paddingInline:{style:ge},paddingInlineStart:{style:ge},paddingInlineEnd:{style:ge},paddingBlock:{style:ge},paddingBlockStart:{style:ge},paddingBlockEnd:{style:ge},m:{style:pe},mt:{style:pe},mr:{style:pe},mb:{style:pe},ml:{style:pe},mx:{style:pe},my:{style:pe},margin:{style:pe},marginTop:{style:pe},marginRight:{style:pe},marginBottom:{style:pe},marginLeft:{style:pe},marginX:{style:pe},marginY:{style:pe},marginInline:{style:pe},marginInlineStart:{style:pe},marginInlineEnd:{style:pe},marginBlock:{style:pe},marginBlockStart:{style:pe},marginBlockEnd:{style:pe},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ro},rowGap:{style:oo},columnGap:{style:no},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Je},maxWidth:{style:Si},minWidth:{transform:Je},height:{transform:Je},maxHeight:{transform:Je},minHeight:{transform:Je},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function uf(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function ff(e,t){return typeof e=="function"?e(t):e}function Ua(){function e(r,n,o,i){const s={[r]:n,theme:o},a=i[r];if(!a)return{[r]:n};const{cssProperty:l=r,themeKey:c,transform:u,style:d}=a;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const f=Xn(o,c)||{};return d?d(s):it(s,n,y=>{let m=In(f,u,y);return y===m&&typeof y=="string"&&(m=In(f,u,`${r}${y==="default"?"":Ce(y)}`,y)),l===!1?m:{[l]:m}})}function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const s=(n=i.unstable_sxConfig)!=null?n:en;function a(l){let c=l;if(typeof l=="function")c=l(i);else if(typeof l!="object")return l;if(!c)return null;const u=Fa(i.breakpoints),d=Object.keys(u);let f=u;return Object.keys(c).forEach(v=>{const y=ff(c[v],i);if(y!=null)if(typeof y=="object")if(s[v])f=Vr(f,e(v,y,i,s));else{const m=it({theme:i},y,h=>({[v]:h}));uf(m,y)?f[v]=t({sx:y,theme:i}):f=Vr(f,m)}else f=Vr(f,e(v,y,i,s))}),Va(d,f)}return Array.isArray(o)?o.map(a):a(o)}return t}const tn=Ua();tn.filterProps=["sx"];function za(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const df=["breakpoints","palette","spacing","shape"];function rn(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,s=Ve(e,df),a=Da(r),l=ju(o);let c=et({breakpoints:a,direction:"ltr",components:{},palette:_({mode:"light"},n),spacing:l,shape:_({},Su,i)},s);return c.applyStyles=za,c=t.reduce((u,d)=>et(u,d),c),c.unstable_sxConfig=_({},en,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(d){return tn({sx:d,theme:this})},c}const pf=Object.freeze(Object.defineProperty({__proto__:null,default:rn,private_createBreakpoints:Da,unstable_applyStyles:za},Symbol.toStringTag,{value:"Module"}));function gf(e){return Object.keys(e).length===0}function hf(e=null){const t=N.useContext(pr.ThemeContext);return!t||gf(t)?e:t}const mf=rn();function yf(e=mf){return hf(e)}const bf=["sx"],vf=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:en;return Object.keys(e).forEach(i=>{o[i]?n.systemProps[i]=e[i]:n.otherProps[i]=e[i]}),n};function Ja(e){const{sx:t}=e,r=Ve(e,bf),{systemProps:n,otherProps:o}=vf(r);let i;return Array.isArray(t)?i=[n,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return wt(a)?_({},n,a):n}:i=_({},n,t),_({},o,{sx:i})}const xf=Object.freeze(Object.defineProperty({__proto__:null,default:tn,extendSxProp:Ja,unstable_createStyleFunctionSx:Ua,unstable_defaultSxConfig:en},Symbol.toStringTag,{value:"Module"})),Zi=e=>e,Sf=()=>{let e=Zi;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Zi}}},Ha=Sf();function Wa(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Wa(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function mt(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Wa(e))&&(n&&(n+=" "),n+=t);return n}const wf={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function nn(e,t,r="Mui"){const n=wf[t];return n?`${r}-${n}`:`${Ha.generate(e)}-${t}`}function Ga(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=nn(e,o,r)}),n}var Yo={exports:{}},ae={};/**
41
41
  * @license React
42
42
  * react-is.production.min.js
43
43
  *
@@ -45,7 +45,7 @@ React keys must be passed directly to JSX without using spread:
45
45
  *
46
46
  * This source code is licensed under the MIT license found in the
47
47
  * LICENSE file in the root directory of this source tree.
48
- */var Zi;function Tf(){if(Zi)return se;Zi=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function y(h){if(typeof h=="object"&&h!==null){var S=h.$$typeof;switch(S){case e:switch(h=h.type,h){case r:case o:case n:case c:case u:return h;default:switch(h=h&&h.$$typeof,h){case a:case s:case l:case f:case d:case i:return h;default:return S}}case t:return S}}}return se.ContextConsumer=s,se.ContextProvider=i,se.Element=e,se.ForwardRef=l,se.Fragment=r,se.Lazy=f,se.Memo=d,se.Portal=t,se.Profiler=o,se.StrictMode=n,se.Suspense=c,se.SuspenseList=u,se.isAsyncMode=function(){return!1},se.isConcurrentMode=function(){return!1},se.isContextConsumer=function(h){return y(h)===s},se.isContextProvider=function(h){return y(h)===i},se.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},se.isForwardRef=function(h){return y(h)===l},se.isFragment=function(h){return y(h)===r},se.isLazy=function(h){return y(h)===f},se.isMemo=function(h){return y(h)===d},se.isPortal=function(h){return y(h)===t},se.isProfiler=function(h){return y(h)===o},se.isStrictMode=function(h){return y(h)===n},se.isSuspense=function(h){return y(h)===c},se.isSuspenseList=function(h){return y(h)===u},se.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===r||h===o||h===n||h===c||h===u||h===v||typeof h=="object"&&h!==null&&(h.$$typeof===f||h.$$typeof===d||h.$$typeof===i||h.$$typeof===s||h.$$typeof===l||h.$$typeof===m||h.getModuleId!==void 0)},se.typeOf=y,se}var ae={};/**
48
+ */var Qi;function Tf(){if(Qi)return ae;Qi=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function m(h){if(typeof h=="object"&&h!==null){var S=h.$$typeof;switch(S){case e:switch(h=h.type,h){case r:case o:case n:case c:case u:return h;default:switch(h=h&&h.$$typeof,h){case a:case s:case l:case f:case d:case i:return h;default:return S}}case t:return S}}}return ae.ContextConsumer=s,ae.ContextProvider=i,ae.Element=e,ae.ForwardRef=l,ae.Fragment=r,ae.Lazy=f,ae.Memo=d,ae.Portal=t,ae.Profiler=o,ae.StrictMode=n,ae.Suspense=c,ae.SuspenseList=u,ae.isAsyncMode=function(){return!1},ae.isConcurrentMode=function(){return!1},ae.isContextConsumer=function(h){return m(h)===s},ae.isContextProvider=function(h){return m(h)===i},ae.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},ae.isForwardRef=function(h){return m(h)===l},ae.isFragment=function(h){return m(h)===r},ae.isLazy=function(h){return m(h)===f},ae.isMemo=function(h){return m(h)===d},ae.isPortal=function(h){return m(h)===t},ae.isProfiler=function(h){return m(h)===o},ae.isStrictMode=function(h){return m(h)===n},ae.isSuspense=function(h){return m(h)===c},ae.isSuspenseList=function(h){return m(h)===u},ae.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===r||h===o||h===n||h===c||h===u||h===v||typeof h=="object"&&h!==null&&(h.$$typeof===f||h.$$typeof===d||h.$$typeof===i||h.$$typeof===s||h.$$typeof===l||h.$$typeof===y||h.getModuleId!==void 0)},ae.typeOf=m,ae}var le={};/**
49
49
  * @license React
50
50
  * react-is.development.js
51
51
  *
@@ -53,14 +53,14 @@ React keys must be passed directly to JSX without using spread:
53
53
  *
54
54
  * This source code is licensed under the MIT license found in the
55
55
  * LICENSE file in the root directory of this source tree.
56
- */var Qi;function Of(){return Qi||(Qi=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),m=!1,y=!1,h=!1,S=!1,T=!1,_;_=Symbol.for("react.module.reference");function O(j){return!!(typeof j=="string"||typeof j=="function"||j===r||j===o||T||j===n||j===c||j===u||S||j===v||m||y||h||typeof j=="object"&&j!==null&&(j.$$typeof===f||j.$$typeof===d||j.$$typeof===i||j.$$typeof===s||j.$$typeof===l||j.$$typeof===_||j.getModuleId!==void 0))}function w(j){if(typeof j=="object"&&j!==null){var te=j.$$typeof;switch(te){case e:var fe=j.type;switch(fe){case r:case o:case n:case c:case u:return fe;default:var je=fe&&fe.$$typeof;switch(je){case a:case s:case l:case f:case d:case i:return je;default:return te}}case t:return te}}}var E=s,R=i,U=e,Q=l,F=r,M=f,W=d,G=t,X=o,Y=n,xe=c,le=u,ee=!1,Te=!1;function ke(j){return ee||(ee=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function tt(j){return Te||(Te=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function yt(j){return w(j)===s}function He(j){return w(j)===i}function Se(j){return typeof j=="object"&&j!==null&&j.$$typeof===e}function Rt(j){return w(j)===l}function st(j){return w(j)===r}function We(j){return w(j)===f}function Fe(j){return w(j)===d}function at(j){return w(j)===t}function lt(j){return w(j)===o}function Mt(j){return w(j)===n}function bt(j){return w(j)===c}function Ve(j){return w(j)===u}ae.ContextConsumer=E,ae.ContextProvider=R,ae.Element=U,ae.ForwardRef=Q,ae.Fragment=F,ae.Lazy=M,ae.Memo=W,ae.Portal=G,ae.Profiler=X,ae.StrictMode=Y,ae.Suspense=xe,ae.SuspenseList=le,ae.isAsyncMode=ke,ae.isConcurrentMode=tt,ae.isContextConsumer=yt,ae.isContextProvider=He,ae.isElement=Se,ae.isForwardRef=Rt,ae.isFragment=st,ae.isLazy=We,ae.isMemo=Fe,ae.isPortal=at,ae.isProfiler=lt,ae.isStrictMode=Mt,ae.isSuspense=bt,ae.isSuspenseList=Ve,ae.isValidElementType=O,ae.typeOf=w}()),ae}process.env.NODE_ENV==="production"?Ko.exports=Tf():Ko.exports=Of();var es=Ko.exports;const Ef=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function qa(e){const t=`${e}`.match(Ef);return t&&t[1]||""}function Ka(e,t=""){return e.displayName||e.name||qa(e)||t}function ts(e,t,r){const n=Ka(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Ya(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Ka(e,"Component");if(typeof e=="object")switch(e.$$typeof){case es.ForwardRef:return ts(e,e.render,"ForwardRef");case es.Memo:return ts(e,e.type,"memo");default:return}}}const Cf=Object.freeze(Object.defineProperty({__proto__:null,default:Ya,getFunctionName:qa},Symbol.toStringTag,{value:"Module"})),Rf=["ownerState"],_f=["variants"],Pf=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function $f(e){return Object.keys(e).length===0}function kf(e){return typeof e=="string"&&e.charCodeAt(0)>96}function _o(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const jf=tn(),rs=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function dn({defaultTheme:e,theme:t,themeId:r}){return $f(t)?e:t[r]||t}function Af(e){return e?(t,r)=>r[e]:null}function En(e,t){let{ownerState:r}=t,n=De(t,Rf);const o=typeof e=="function"?e(P({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(i=>En(i,P({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=De(o,_f);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props(P({ownerState:r},n,r)):Object.keys(l.props).forEach(u=>{(r==null?void 0:r[u])!==l.props[u]&&n[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style(P({ownerState:r},n,r)):l.style))}),a}return o}function Lf(e={}){const{themeId:t,defaultTheme:r=jf,rootShouldForwardProp:n=_o,slotShouldForwardProp:o=_o}=e,i=s=>en(P({},s,{theme:dn(P({},s,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{Na(s,w=>w.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:f=Af(rs(c))}=a,v=De(a,Pf),m=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,y=d||!1;let h;process.env.NODE_ENV!=="production"&&l&&(h=`${l}-${rs(c||"Root")}`);let S=_o;c==="Root"||c==="root"?S=n:c?S=o:kf(s)&&(S=void 0);const T=Ia(s,P({shouldForwardProp:S,label:h},v)),_=w=>typeof w=="function"&&w.__emotion_real!==w||St(w)?E=>En(w,P({},E,{theme:dn({theme:E.theme,defaultTheme:r,themeId:t})})):w,O=(w,...E)=>{let R=_(w);const U=E?E.map(_):[];l&&f&&U.push(M=>{const W=dn(P({},M,{defaultTheme:r,themeId:t}));if(!W.components||!W.components[l]||!W.components[l].styleOverrides)return null;const G=W.components[l].styleOverrides,X={};return Object.entries(G).forEach(([Y,xe])=>{X[Y]=En(xe,P({},M,{theme:W}))}),f(M,X)}),l&&!m&&U.push(M=>{var W;const G=dn(P({},M,{defaultTheme:r,themeId:t})),X=G==null||(W=G.components)==null||(W=W[l])==null?void 0:W.variants;return En({variants:X},P({},M,{theme:G}))}),y||U.push(i);const Q=U.length-E.length;if(Array.isArray(w)&&Q>0){const M=new Array(Q).fill("");R=[...w,...M],R.raw=[...w.raw,...M]}const F=T(R,...U);if(process.env.NODE_ENV!=="production"){let M;l&&(M=`${l}${Ee(c||"")}`),M===void 0&&(M=`Styled(${Ya(s)})`),F.displayName=M}return s.muiName&&(F.muiName=s.muiName),F};return T.withConfig&&(O.withConfig=T.withConfig),O}}const If=Lf();function Ln(e,t){const r=P({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=P({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},!i||!Object.keys(i)?r[n]=o:!o||!Object.keys(o)?r[n]=i:(r[n]=P({},i),Object.keys(o).forEach(s=>{r[n][s]=Ln(o[s],i[s])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Nf(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Ln(t.components[r].defaultProps,n)}function Mf({props:e,name:t,defaultTheme:r,themeId:n}){let o=yf(r);return n&&(o=o[n]||o),Nf({theme:o,name:t,props:e})}const Si=typeof window<"u"?N.useLayoutEffect:N.useEffect;function fr(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const Df=Object.freeze(Object.defineProperty({__proto__:null,default:fr},Symbol.toStringTag,{value:"Module"}));function ns(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function Ff(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function Vf(e,t=166){let r;function n(...o){const i=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(i,t)}return n.clear=()=>{clearTimeout(r)},n}function Bf(e,t){return process.env.NODE_ENV==="production"?()=>null:(r,n,o,i,s)=>{const a=o||"<<anonymous>>",l=s||n;return typeof r[n]<"u"?new Error(`The ${i} \`${l}\` of \`${a}\` is deprecated. ${t}`):null}}function Uf(e,t){var r,n;return N.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function hr(e){return e&&e.ownerDocument||document}function zf(e){return hr(e).defaultView||window}function Jf(e,t){if(process.env.NODE_ENV==="production")return()=>null;const r=t?P({},t.propTypes):null;return o=>(i,s,a,l,c,...u)=>{const d=c||s,f=r==null?void 0:r[d];if(f){const v=f(i,s,a,l,c,...u);if(v)return v}return typeof i[s]<"u"&&!i[o]?new Error(`The prop \`${d}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}function Xa(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let os=0;function Hf(e){const[t,r]=N.useState(e),n=e||t;return N.useEffect(()=>{t==null&&(os+=1,r(`mui-${os}`))},[t]),n}const is=N.useId;function Wf(e){if(is!==void 0){const t=is();return e??t}return Hf(e)}function Gf(e,t,r,n,o){if(process.env.NODE_ENV==="production")return null;const i=o||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function Za({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=N.useRef(e!==void 0),[i,s]=N.useState(t),a=o?e:i;if(process.env.NODE_ENV!=="production"){N.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${n} state of ${r} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
56
+ */var es;function Of(){return es||(es=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),y=!1,m=!1,h=!1,S=!1,T=!1,k;k=Symbol.for("react.module.reference");function O(j){return!!(typeof j=="string"||typeof j=="function"||j===r||j===o||T||j===n||j===c||j===u||S||j===v||y||m||h||typeof j=="object"&&j!==null&&(j.$$typeof===f||j.$$typeof===d||j.$$typeof===i||j.$$typeof===s||j.$$typeof===l||j.$$typeof===k||j.getModuleId!==void 0))}function w(j){if(typeof j=="object"&&j!==null){var te=j.$$typeof;switch(te){case e:var de=j.type;switch(de){case r:case o:case n:case c:case u:return de;default:var Ae=de&&de.$$typeof;switch(Ae){case a:case s:case l:case f:case d:case i:return Ae;default:return te}}case t:return te}}}var C=s,R=i,z=e,se=l,V=r,M=f,G=d,q=t,Z=o,X=n,Se=c,ce=u,ee=!1,Oe=!1;function je(j){return ee||(ee=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function nt(j){return Oe||(Oe=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function vt(j){return w(j)===s}function Ge(j){return w(j)===i}function we(j){return typeof j=="object"&&j!==null&&j.$$typeof===e}function _t(j){return w(j)===l}function at(j){return w(j)===r}function qe(j){return w(j)===f}function Be(j){return w(j)===d}function lt(j){return w(j)===t}function ct(j){return w(j)===o}function Dt(j){return w(j)===n}function xt(j){return w(j)===c}function Ue(j){return w(j)===u}le.ContextConsumer=C,le.ContextProvider=R,le.Element=z,le.ForwardRef=se,le.Fragment=V,le.Lazy=M,le.Memo=G,le.Portal=q,le.Profiler=Z,le.StrictMode=X,le.Suspense=Se,le.SuspenseList=ce,le.isAsyncMode=je,le.isConcurrentMode=nt,le.isContextConsumer=vt,le.isContextProvider=Ge,le.isElement=we,le.isForwardRef=_t,le.isFragment=at,le.isLazy=qe,le.isMemo=Be,le.isPortal=lt,le.isProfiler=ct,le.isStrictMode=Dt,le.isSuspense=xt,le.isSuspenseList=Ue,le.isValidElementType=O,le.typeOf=w}()),le}process.env.NODE_ENV==="production"?Yo.exports=Tf():Yo.exports=Of();var ts=Yo.exports;const Ef=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function qa(e){const t=`${e}`.match(Ef);return t&&t[1]||""}function Ka(e,t=""){return e.displayName||e.name||qa(e)||t}function rs(e,t,r){const n=Ka(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Ya(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Ka(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ts.ForwardRef:return rs(e,e.render,"ForwardRef");case ts.Memo:return rs(e,e.type,"memo");default:return}}}const Cf=Object.freeze(Object.defineProperty({__proto__:null,default:Ya,getFunctionName:qa},Symbol.toStringTag,{value:"Module"})),Rf=["ownerState"],_f=["variants"],Pf=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function $f(e){return Object.keys(e).length===0}function kf(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Po(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const jf=rn(),ns=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function pn({defaultTheme:e,theme:t,themeId:r}){return $f(t)?e:t[r]||t}function Af(e){return e?(t,r)=>r[e]:null}function Cn(e,t){let{ownerState:r}=t,n=Ve(t,Rf);const o=typeof e=="function"?e(_({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(i=>Cn(i,_({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=Ve(o,_f);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props(_({ownerState:r},n,r)):Object.keys(l.props).forEach(u=>{(r==null?void 0:r[u])!==l.props[u]&&n[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style(_({ownerState:r},n,r)):l.style))}),a}return o}function If(e={}){const{themeId:t,defaultTheme:r=jf,rootShouldForwardProp:n=Po,slotShouldForwardProp:o=Po}=e,i=s=>tn(_({},s,{theme:pn(_({},s,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{Na(s,w=>w.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:f=Af(ns(c))}=a,v=Ve(a,Pf),y=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,m=d||!1;let h;process.env.NODE_ENV!=="production"&&l&&(h=`${l}-${ns(c||"Root")}`);let S=Po;c==="Root"||c==="root"?S=n:c?S=o:kf(s)&&(S=void 0);const T=La(s,_({shouldForwardProp:S,label:h},v)),k=w=>typeof w=="function"&&w.__emotion_real!==w||wt(w)?C=>Cn(w,_({},C,{theme:pn({theme:C.theme,defaultTheme:r,themeId:t})})):w,O=(w,...C)=>{let R=k(w);const z=C?C.map(k):[];l&&f&&z.push(M=>{const G=pn(_({},M,{defaultTheme:r,themeId:t}));if(!G.components||!G.components[l]||!G.components[l].styleOverrides)return null;const q=G.components[l].styleOverrides,Z={};return Object.entries(q).forEach(([X,Se])=>{Z[X]=Cn(Se,_({},M,{theme:G}))}),f(M,Z)}),l&&!y&&z.push(M=>{var G;const q=pn(_({},M,{defaultTheme:r,themeId:t})),Z=q==null||(G=q.components)==null||(G=G[l])==null?void 0:G.variants;return Cn({variants:Z},_({},M,{theme:q}))}),m||z.push(i);const se=z.length-C.length;if(Array.isArray(w)&&se>0){const M=new Array(se).fill("");R=[...w,...M],R.raw=[...w.raw,...M]}const V=T(R,...z);if(process.env.NODE_ENV!=="production"){let M;l&&(M=`${l}${Ce(c||"")}`),M===void 0&&(M=`Styled(${Ya(s)})`),V.displayName=M}return s.muiName&&(V.muiName=s.muiName),V};return T.withConfig&&(O.withConfig=T.withConfig),O}}const Lf=If();function Ln(e,t){const r=_({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=_({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},!i||!Object.keys(i)?r[n]=o:!o||!Object.keys(o)?r[n]=i:(r[n]=_({},i),Object.keys(o).forEach(s=>{r[n][s]=Ln(o[s],i[s])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Nf(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Ln(t.components[r].defaultProps,n)}function Mf({props:e,name:t,defaultTheme:r,themeId:n}){let o=yf(r);return n&&(o=o[n]||o),Nf({theme:o,name:t,props:e})}const wi=typeof window<"u"?N.useLayoutEffect:N.useEffect;function dr(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const Df=Object.freeze(Object.defineProperty({__proto__:null,default:dr},Symbol.toStringTag,{value:"Module"}));function os(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function Ff(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function Vf(e,t=166){let r;function n(...o){const i=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(i,t)}return n.clear=()=>{clearTimeout(r)},n}function Bf(e,t){return process.env.NODE_ENV==="production"?()=>null:(r,n,o,i,s)=>{const a=o||"<<anonymous>>",l=s||n;return typeof r[n]<"u"?new Error(`The ${i} \`${l}\` of \`${a}\` is deprecated. ${t}`):null}}function Uf(e,t){var r,n;return N.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function mr(e){return e&&e.ownerDocument||document}function zf(e){return mr(e).defaultView||window}function Jf(e,t){if(process.env.NODE_ENV==="production")return()=>null;const r=t?_({},t.propTypes):null;return o=>(i,s,a,l,c,...u)=>{const d=c||s,f=r==null?void 0:r[d];if(f){const v=f(i,s,a,l,c,...u);if(v)return v}return typeof i[s]<"u"&&!i[o]?new Error(`The prop \`${d}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}function Xa(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let is=0;function Hf(e){const[t,r]=N.useState(e),n=e||t;return N.useEffect(()=>{t==null&&(is+=1,r(`mui-${is}`))},[t]),n}const ss=N.useId;function Wf(e){if(ss!==void 0){const t=ss();return e??t}return Hf(e)}function Gf(e,t,r,n,o){if(process.env.NODE_ENV==="production")return null;const i=o||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function Za({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=N.useRef(e!==void 0),[i,s]=N.useState(t),a=o?e:i;if(process.env.NODE_ENV!=="production"){N.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${n} state of ${r} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
57
57
  `))},[n,r,e]);const{current:c}=N.useRef(t);N.useEffect(()=>{!o&&!Object.is(c,t)&&console.error([`MUI: A component is changing the default ${n} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
58
- `))},[JSON.stringify(t)])}const l=N.useCallback(c=>{o||s(c)},[]);return[a,l]}function Cn(e){const t=N.useRef(e);return Si(()=>{t.current=e}),N.useRef((...r)=>(0,t.current)(...r)).current}function In(...e){return N.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Xa(r,t)})},e)}class wi{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new wi}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}let oo=!0,Yo=!1;const qf=new wi,Kf={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Yf(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Kf[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Xf(e){e.metaKey||e.altKey||e.ctrlKey||(oo=!0)}function Po(){oo=!1}function Zf(){this.visibilityState==="hidden"&&Yo&&(oo=!0)}function Qf(e){e.addEventListener("keydown",Xf,!0),e.addEventListener("mousedown",Po,!0),e.addEventListener("pointerdown",Po,!0),e.addEventListener("touchstart",Po,!0),e.addEventListener("visibilitychange",Zf,!0)}function ed(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return oo||Yf(t)}function Qa(){const e=N.useCallback(o=>{o!=null&&Qf(o.ownerDocument)},[]),t=N.useRef(!1);function r(){return t.current?(Yo=!0,qf.start(100,()=>{Yo=!1}),t.current=!1,!0):!1}function n(o){return ed(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}const td={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Ti(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),r&&r[s]&&i.push(r[s])}return i},[]).join(" ")}),n}function Vr(e){return typeof e=="string"}function rd(e,t,r){return e===void 0||Vr(e)?t:P({},t,{ownerState:P({},t.ownerState,r)})}function Rn(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function ss(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function nd(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const v=gt(r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),m=P({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),y=P({},r,o,n);return v.length>0&&(y.className=v),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:void 0}}const s=Rn(P({},o,n)),a=ss(n),l=ss(o),c=t(s),u=gt(c==null?void 0:c.className,r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),d=P({},c==null?void 0:c.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),f=P({},c,r,l,a);return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}function od(e,t,r){return typeof e=="function"?e(t,r):e}const id=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function kt(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=De(e,id),a=i?{}:od(n,o),{props:l,internalRef:c}=nd(P({},s,{externalSlotProps:a})),u=In(c,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return rd(r,P({},l,{ref:u}),o)}const sd=N.createContext();process.env.NODE_ENV!=="production"&&(p.node,p.bool);const ad=()=>{const e=N.useContext(sd);return e??!1},ld=N.createContext(void 0);process.env.NODE_ENV!=="production"&&(p.node,p.object);function cd(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Ln(o.defaultProps,n):!o.styleOverrides&&!o.variants?Ln(o,n):n}function ud({props:e,name:t}){const r=N.useContext(ld);return cd({props:e,name:t,theme:{components:r}})}const fd=["component","direction","spacing","divider","children","className","useFlexGap"],dd=tn(),pd=If("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function gd(e){return Mf({props:e,name:"MuiStack",defaultTheme:dd})}function hd(e,t){const r=N.Children.toArray(e).filter(Boolean);return r.reduce((n,o,i)=>(n.push(o),i<r.length-1&&n.push(N.cloneElement(t,{key:`separator-${i}`})),n),[])}const md=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],yd=({ownerState:e,theme:t})=>{let r=P({display:"flex",flexDirection:"column"},ot({theme:t},Ro({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=vi(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),i=Ro({values:e.direction,base:o}),s=Ro({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,u)=>{if(!i[l]){const f=c>0?i[u[c-1]]:"column";i[l]=f}}),r=Ze(r,ot({theme:t},s,(l,c)=>e.useFlexGap?{gap:Jt(n,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${md(c?i[c]:e.direction)}`]:Jt(n,l)}}))}return r=wu(t.breakpoints,r),r};function bd(e={}){const{createStyledComponent:t=pd,useThemeProps:r=gd,componentName:n="MuiStack"}=e,o=()=>Ti({root:["root"]},l=>rn(n,l),{}),i=t(yd),s=N.forwardRef(function(l,c){const u=r(l),d=Ja(u),{component:f="div",direction:v="column",spacing:m=0,divider:y,children:h,className:S,useFlexGap:T=!1}=d,_=De(d,fd),O={direction:v,spacing:m,useFlexGap:T},w=o();return b.jsx(i,P({as:f,ownerState:O,ref:c,className:gt(w.root,S)},_,{children:y?hd(h,y):h}))});return process.env.NODE_ENV!=="production"&&(s.propTypes={children:p.node,direction:p.oneOfType([p.oneOf(["column-reverse","column","row-reverse","row"]),p.arrayOf(p.oneOf(["column-reverse","column","row-reverse","row"])),p.object]),divider:p.node,spacing:p.oneOfType([p.arrayOf(p.oneOfType([p.number,p.string])),p.number,p.object,p.string]),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])}),s}var nn={},el={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(el);var io=el.exports,$o={exports:{}},as;function vd(){return as||(as=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var i in o)({}).hasOwnProperty.call(o,i)&&(r[i]=o[i])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}($o)),$o.exports}var ko={exports:{}},ls;function xd(){return ls||(ls=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var i in r)if({}.hasOwnProperty.call(r,i)){if(n.includes(i))continue;o[i]=r[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ko)),ko.exports}const Sd=Tt(yu),wd=Tt(bu),Td=Tt(Ou),Od=Tt(Cf),Ed=Tt(pf),Cd=Tt(xf);var vr=io;Object.defineProperty(nn,"__esModule",{value:!0});var Rd=nn.default=Bd;nn.shouldForwardProp=_n;nn.systemDefaultTheme=void 0;var Ke=vr(vd()),Xo=vr(xd()),cs=Nd(Sd),_d=wd,Pd=vr(Td),$d=vr(Od),kd=vr(Ed),jd=vr(Cd);const Ad=["ownerState"],Ld=["variants"],Id=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function tl(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(tl=function(n){return n?r:t})(e)}function Nd(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=tl(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}function Md(e){return Object.keys(e).length===0}function Dd(e){return typeof e=="string"&&e.charCodeAt(0)>96}function _n(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Fd=nn.systemDefaultTheme=(0,kd.default)(),us=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function pn({defaultTheme:e,theme:t,themeId:r}){return Md(t)?e:t[r]||t}function Vd(e){return e?(t,r)=>r[e]:null}function Pn(e,t){let{ownerState:r}=t,n=(0,Xo.default)(t,Ad);const o=typeof e=="function"?e((0,Ke.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(i=>Pn(i,(0,Ke.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=(0,Xo.default)(o,Ld);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props((0,Ke.default)({ownerState:r},n,r)):Object.keys(l.props).forEach(u=>{(r==null?void 0:r[u])!==l.props[u]&&n[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,Ke.default)({ownerState:r},n,r)):l.style))}),a}return o}function Bd(e={}){const{themeId:t,defaultTheme:r=Fd,rootShouldForwardProp:n=_n,slotShouldForwardProp:o=_n}=e,i=s=>(0,jd.default)((0,Ke.default)({},s,{theme:pn((0,Ke.default)({},s,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{(0,cs.internal_processStyles)(s,w=>w.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:f=Vd(us(c))}=a,v=(0,Xo.default)(a,Id),m=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,y=d||!1;let h;process.env.NODE_ENV!=="production"&&l&&(h=`${l}-${us(c||"Root")}`);let S=_n;c==="Root"||c==="root"?S=n:c?S=o:Dd(s)&&(S=void 0);const T=(0,cs.default)(s,(0,Ke.default)({shouldForwardProp:S,label:h},v)),_=w=>typeof w=="function"&&w.__emotion_real!==w||(0,_d.isPlainObject)(w)?E=>Pn(w,(0,Ke.default)({},E,{theme:pn({theme:E.theme,defaultTheme:r,themeId:t})})):w,O=(w,...E)=>{let R=_(w);const U=E?E.map(_):[];l&&f&&U.push(M=>{const W=pn((0,Ke.default)({},M,{defaultTheme:r,themeId:t}));if(!W.components||!W.components[l]||!W.components[l].styleOverrides)return null;const G=W.components[l].styleOverrides,X={};return Object.entries(G).forEach(([Y,xe])=>{X[Y]=Pn(xe,(0,Ke.default)({},M,{theme:W}))}),f(M,X)}),l&&!m&&U.push(M=>{var W;const G=pn((0,Ke.default)({},M,{defaultTheme:r,themeId:t})),X=G==null||(W=G.components)==null||(W=W[l])==null?void 0:W.variants;return Pn({variants:X},(0,Ke.default)({},M,{theme:G}))}),y||U.push(i);const Q=U.length-E.length;if(Array.isArray(w)&&Q>0){const M=new Array(Q).fill("");R=[...w,...M],R.raw=[...w.raw,...M]}const F=T(R,...U);if(process.env.NODE_ENV!=="production"){let M;l&&(M=`${l}${(0,Pd.default)(c||"")}`),M===void 0&&(M=`Styled(${(0,$d.default)(s)})`),F.displayName=M}return s.muiName&&(F.muiName=s.muiName),F};return T.withConfig&&(O.withConfig=T.withConfig),O}}function Ud(e,t){return P({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var me={};const zd=Tt(Fc),Jd=Tt(Df);var rl=io;Object.defineProperty(me,"__esModule",{value:!0});var fs=me.alpha=sl;me.blend=ep;me.colorChannel=void 0;var Zo=me.darken=Ei;me.decomposeColor=Qe;me.emphasize=al;var ds=me.getContrastRatio=Kd;me.getLuminance=Nn;me.hexToRgb=nl;me.hslToRgb=il;var Qo=me.lighten=Ci;me.private_safeAlpha=Yd;me.private_safeColorChannel=void 0;me.private_safeDarken=Xd;me.private_safeEmphasize=Qd;me.private_safeLighten=Zd;me.recomposeColor=xr;me.rgbToHex=qd;var ps=rl(zd),Hd=rl(Jd);function Oi(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),(0,Hd.default)(e,t,r)}function nl(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Wd(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Qe(e){if(e.type)return e;if(e.charAt(0)==="#")return Qe(nl(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
59
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,ps.default)(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
60
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,ps.default)(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}const ol=e=>{const t=Qe(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};me.colorChannel=ol;const Gd=(e,t)=>{try{return ol(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};me.private_safeColorChannel=Gd;function xr(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function qd(e){if(e.indexOf("#")===0)return e;const{values:t}=Qe(e);return`#${t.map((r,n)=>Wd(n===3?Math.round(255*r):r)).join("")}`}function il(e){e=Qe(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),s=(c,u=(c+r/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),xr({type:a,values:l})}function Nn(e){e=Qe(e);let t=e.type==="hsl"||e.type==="hsla"?Qe(il(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Kd(e,t){const r=Nn(e),n=Nn(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function sl(e,t){return e=Qe(e),t=Oi(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,xr(e)}function Yd(e,t,r){try{return sl(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ei(e,t){if(e=Qe(e),t=Oi(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return xr(e)}function Xd(e,t,r){try{return Ei(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ci(e,t){if(e=Qe(e),t=Oi(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return xr(e)}function Zd(e,t,r){try{return Ci(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function al(e,t=.15){return Nn(e)>.5?Ei(e,t):Ci(e,t)}function Qd(e,t,r){try{return al(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function ep(e,t,r,n=1){const o=(l,c)=>Math.round((l**(1/n)*(1-r)+c**(1/n)*r)**n),i=Qe(e),s=Qe(t),a=[o(i.values[0],s.values[0]),o(i.values[1],s.values[1]),o(i.values[2],s.values[2])];return xr({type:"rgb",values:a})}const Wr={black:"#000",white:"#fff"},tp={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},or={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},ir={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Ir={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},sr={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},ar={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},lr={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},rp=["mode","contrastThreshold","tonalOffset"],gs={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Wr.white,default:Wr.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},jo={text:{primary:Wr.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Wr.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function hs(e,t,r,n){const o=n.light||n,i=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Qo(e.main,o):t==="dark"&&(e.dark=Zo(e.main,i)))}function np(e="light"){return e==="dark"?{main:sr[200],light:sr[50],dark:sr[400]}:{main:sr[700],light:sr[400],dark:sr[800]}}function op(e="light"){return e==="dark"?{main:or[200],light:or[50],dark:or[400]}:{main:or[500],light:or[300],dark:or[700]}}function ip(e="light"){return e==="dark"?{main:ir[500],light:ir[300],dark:ir[700]}:{main:ir[700],light:ir[400],dark:ir[800]}}function sp(e="light"){return e==="dark"?{main:ar[400],light:ar[300],dark:ar[700]}:{main:ar[700],light:ar[500],dark:ar[900]}}function ap(e="light"){return e==="dark"?{main:lr[400],light:lr[300],dark:lr[700]}:{main:lr[800],light:lr[500],dark:lr[900]}}function lp(e="light"){return e==="dark"?{main:Ir[400],light:Ir[300],dark:Ir[700]}:{main:"#ed6c02",light:Ir[500],dark:Ir[900]}}function cp(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=De(e,rp),i=e.primary||np(t),s=e.secondary||op(t),a=e.error||ip(t),l=e.info||sp(t),c=e.success||ap(t),u=e.warning||lp(t);function d(y){const h=ds(y,jo.text.primary)>=r?jo.text.primary:gs.text.primary;if(process.env.NODE_ENV!=="production"){const S=ds(y,h);S<3&&console.error([`MUI: The contrast ratio of ${S}:1 for ${h} on ${y}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
61
- `))}return h}const f=({color:y,name:h,mainShade:S=500,lightShade:T=300,darkShade:_=700})=>{if(y=P({},y),!y.main&&y[S]&&(y.main=y[S]),!y.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${h?` (${h})`:""} provided to augmentColor(color) is invalid.
62
- The color object needs to have a \`main\` property or a \`${S}\` property.`:zr(11,h?` (${h})`:"",S));if(typeof y.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${h?` (${h})`:""} provided to augmentColor(color) is invalid.
63
- \`color.main\` should be a string, but \`${JSON.stringify(y.main)}\` was provided instead.
58
+ `))},[JSON.stringify(t)])}const l=N.useCallback(c=>{o||s(c)},[]);return[a,l]}function Rn(e){const t=N.useRef(e);return wi(()=>{t.current=e}),N.useRef((...r)=>(0,t.current)(...r)).current}function Nn(...e){return N.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Xa(r,t)})},e)}class Ti{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ti}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}let io=!0,Xo=!1;const qf=new Ti,Kf={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Yf(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Kf[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Xf(e){e.metaKey||e.altKey||e.ctrlKey||(io=!0)}function $o(){io=!1}function Zf(){this.visibilityState==="hidden"&&Xo&&(io=!0)}function Qf(e){e.addEventListener("keydown",Xf,!0),e.addEventListener("mousedown",$o,!0),e.addEventListener("pointerdown",$o,!0),e.addEventListener("touchstart",$o,!0),e.addEventListener("visibilitychange",Zf,!0)}function ed(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return io||Yf(t)}function Qa(){const e=N.useCallback(o=>{o!=null&&Qf(o.ownerDocument)},[]),t=N.useRef(!1);function r(){return t.current?(Xo=!0,qf.start(100,()=>{Xo=!1}),t.current=!1,!0):!1}function n(o){return ed(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}const td={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Oi(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),r&&r[s]&&i.push(r[s])}return i},[]).join(" ")}),n}function Br(e){return typeof e=="string"}function rd(e,t,r){return e===void 0||Br(e)?t:_({},t,{ownerState:_({},t.ownerState,r)})}function _n(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function as(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function nd(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const v=mt(r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),y=_({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),m=_({},r,o,n);return v.length>0&&(m.className=v),Object.keys(y).length>0&&(m.style=y),{props:m,internalRef:void 0}}const s=_n(_({},o,n)),a=as(n),l=as(o),c=t(s),u=mt(c==null?void 0:c.className,r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),d=_({},c==null?void 0:c.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),f=_({},c,r,l,a);return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}function od(e,t,r){return typeof e=="function"?e(t,r):e}const id=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function jt(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=Ve(e,id),a=i?{}:od(n,o),{props:l,internalRef:c}=nd(_({},s,{externalSlotProps:a})),u=Nn(c,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return rd(r,_({},l,{ref:u}),o)}const sd=N.createContext();process.env.NODE_ENV!=="production"&&(p.node,p.bool);const ad=()=>{const e=N.useContext(sd);return e??!1},ld=N.createContext(void 0);process.env.NODE_ENV!=="production"&&(p.node,p.object);function cd(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Ln(o.defaultProps,n):!o.styleOverrides&&!o.variants?Ln(o,n):n}function ud({props:e,name:t}){const r=N.useContext(ld);return cd({props:e,name:t,theme:{components:r}})}const fd=["component","direction","spacing","divider","children","className","useFlexGap"],dd=rn(),pd=Lf("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function gd(e){return Mf({props:e,name:"MuiStack",defaultTheme:dd})}function hd(e,t){const r=N.Children.toArray(e).filter(Boolean);return r.reduce((n,o,i)=>(n.push(o),i<r.length-1&&n.push(N.cloneElement(t,{key:`separator-${i}`})),n),[])}const md=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],yd=({ownerState:e,theme:t})=>{let r=_({display:"flex",flexDirection:"column"},it({theme:t},_o({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=xi(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),i=_o({values:e.direction,base:o}),s=_o({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,u)=>{if(!i[l]){const f=c>0?i[u[c-1]]:"column";i[l]=f}}),r=et(r,it({theme:t},s,(l,c)=>e.useFlexGap?{gap:Ht(n,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${md(c?i[c]:e.direction)}`]:Ht(n,l)}}))}return r=wu(t.breakpoints,r),r};function bd(e={}){const{createStyledComponent:t=pd,useThemeProps:r=gd,componentName:n="MuiStack"}=e,o=()=>Oi({root:["root"]},l=>nn(n,l),{}),i=t(yd),s=N.forwardRef(function(l,c){const u=r(l),d=Ja(u),{component:f="div",direction:v="column",spacing:y=0,divider:m,children:h,className:S,useFlexGap:T=!1}=d,k=Ve(d,fd),O={direction:v,spacing:y,useFlexGap:T},w=o();return b.jsx(i,_({as:f,ownerState:O,ref:c,className:mt(w.root,S)},k,{children:m?hd(h,m):h}))});return process.env.NODE_ENV!=="production"&&(s.propTypes={children:p.node,direction:p.oneOfType([p.oneOf(["column-reverse","column","row-reverse","row"]),p.arrayOf(p.oneOf(["column-reverse","column","row-reverse","row"])),p.object]),divider:p.node,spacing:p.oneOfType([p.arrayOf(p.oneOfType([p.number,p.string])),p.number,p.object,p.string]),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])}),s}var on={},el={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(el);var so=el.exports,ko={exports:{}},ls;function vd(){return ls||(ls=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var i in o)({}).hasOwnProperty.call(o,i)&&(r[i]=o[i])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ko)),ko.exports}var jo={exports:{}},cs;function xd(){return cs||(cs=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var i in r)if({}.hasOwnProperty.call(r,i)){if(n.includes(i))continue;o[i]=r[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(jo)),jo.exports}const Sd=Ot(yu),wd=Ot(bu),Td=Ot(Ou),Od=Ot(Cf),Ed=Ot(pf),Cd=Ot(xf);var xr=so;Object.defineProperty(on,"__esModule",{value:!0});var Rd=on.default=Bd;on.shouldForwardProp=Pn;on.systemDefaultTheme=void 0;var Xe=xr(vd()),Zo=xr(xd()),us=Nd(Sd),_d=wd,Pd=xr(Td),$d=xr(Od),kd=xr(Ed),jd=xr(Cd);const Ad=["ownerState"],Id=["variants"],Ld=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function tl(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(tl=function(n){return n?r:t})(e)}function Nd(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=tl(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}function Md(e){return Object.keys(e).length===0}function Dd(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Pn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Fd=on.systemDefaultTheme=(0,kd.default)(),fs=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function gn({defaultTheme:e,theme:t,themeId:r}){return Md(t)?e:t[r]||t}function Vd(e){return e?(t,r)=>r[e]:null}function $n(e,t){let{ownerState:r}=t,n=(0,Zo.default)(t,Ad);const o=typeof e=="function"?e((0,Xe.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(i=>$n(i,(0,Xe.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=(0,Zo.default)(o,Id);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props((0,Xe.default)({ownerState:r},n,r)):Object.keys(l.props).forEach(u=>{(r==null?void 0:r[u])!==l.props[u]&&n[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,Xe.default)({ownerState:r},n,r)):l.style))}),a}return o}function Bd(e={}){const{themeId:t,defaultTheme:r=Fd,rootShouldForwardProp:n=Pn,slotShouldForwardProp:o=Pn}=e,i=s=>(0,jd.default)((0,Xe.default)({},s,{theme:gn((0,Xe.default)({},s,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{(0,us.internal_processStyles)(s,w=>w.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:f=Vd(fs(c))}=a,v=(0,Zo.default)(a,Ld),y=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,m=d||!1;let h;process.env.NODE_ENV!=="production"&&l&&(h=`${l}-${fs(c||"Root")}`);let S=Pn;c==="Root"||c==="root"?S=n:c?S=o:Dd(s)&&(S=void 0);const T=(0,us.default)(s,(0,Xe.default)({shouldForwardProp:S,label:h},v)),k=w=>typeof w=="function"&&w.__emotion_real!==w||(0,_d.isPlainObject)(w)?C=>$n(w,(0,Xe.default)({},C,{theme:gn({theme:C.theme,defaultTheme:r,themeId:t})})):w,O=(w,...C)=>{let R=k(w);const z=C?C.map(k):[];l&&f&&z.push(M=>{const G=gn((0,Xe.default)({},M,{defaultTheme:r,themeId:t}));if(!G.components||!G.components[l]||!G.components[l].styleOverrides)return null;const q=G.components[l].styleOverrides,Z={};return Object.entries(q).forEach(([X,Se])=>{Z[X]=$n(Se,(0,Xe.default)({},M,{theme:G}))}),f(M,Z)}),l&&!y&&z.push(M=>{var G;const q=gn((0,Xe.default)({},M,{defaultTheme:r,themeId:t})),Z=q==null||(G=q.components)==null||(G=G[l])==null?void 0:G.variants;return $n({variants:Z},(0,Xe.default)({},M,{theme:q}))}),m||z.push(i);const se=z.length-C.length;if(Array.isArray(w)&&se>0){const M=new Array(se).fill("");R=[...w,...M],R.raw=[...w.raw,...M]}const V=T(R,...z);if(process.env.NODE_ENV!=="production"){let M;l&&(M=`${l}${(0,Pd.default)(c||"")}`),M===void 0&&(M=`Styled(${(0,$d.default)(s)})`),V.displayName=M}return s.muiName&&(V.muiName=s.muiName),V};return T.withConfig&&(O.withConfig=T.withConfig),O}}function Ud(e,t){return _({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ye={};const zd=Ot(Fc),Jd=Ot(Df);var rl=so;Object.defineProperty(ye,"__esModule",{value:!0});var ds=ye.alpha=sl;ye.blend=ep;ye.colorChannel=void 0;var Qo=ye.darken=Ci;ye.decomposeColor=tt;ye.emphasize=al;var ps=ye.getContrastRatio=Kd;ye.getLuminance=Mn;ye.hexToRgb=nl;ye.hslToRgb=il;var ei=ye.lighten=Ri;ye.private_safeAlpha=Yd;ye.private_safeColorChannel=void 0;ye.private_safeDarken=Xd;ye.private_safeEmphasize=Qd;ye.private_safeLighten=Zd;ye.recomposeColor=Sr;ye.rgbToHex=qd;var gs=rl(zd),Hd=rl(Jd);function Ei(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),(0,Hd.default)(e,t,r)}function nl(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Wd(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function tt(e){if(e.type)return e;if(e.charAt(0)==="#")return tt(nl(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
59
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,gs.default)(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
60
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,gs.default)(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}const ol=e=>{const t=tt(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};ye.colorChannel=ol;const Gd=(e,t)=>{try{return ol(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};ye.private_safeColorChannel=Gd;function Sr(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function qd(e){if(e.indexOf("#")===0)return e;const{values:t}=tt(e);return`#${t.map((r,n)=>Wd(n===3?Math.round(255*r):r)).join("")}`}function il(e){e=tt(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),s=(c,u=(c+r/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),Sr({type:a,values:l})}function Mn(e){e=tt(e);let t=e.type==="hsl"||e.type==="hsla"?tt(il(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Kd(e,t){const r=Mn(e),n=Mn(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function sl(e,t){return e=tt(e),t=Ei(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Sr(e)}function Yd(e,t,r){try{return sl(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ci(e,t){if(e=tt(e),t=Ei(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Sr(e)}function Xd(e,t,r){try{return Ci(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ri(e,t){if(e=tt(e),t=Ei(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Sr(e)}function Zd(e,t,r){try{return Ri(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function al(e,t=.15){return Mn(e)>.5?Ci(e,t):Ri(e,t)}function Qd(e,t,r){try{return al(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function ep(e,t,r,n=1){const o=(l,c)=>Math.round((l**(1/n)*(1-r)+c**(1/n)*r)**n),i=tt(e),s=tt(t),a=[o(i.values[0],s.values[0]),o(i.values[1],s.values[1]),o(i.values[2],s.values[2])];return Sr({type:"rgb",values:a})}const Gr={black:"#000",white:"#fff"},tp={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ir={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},sr={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Nr={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},ar={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},lr={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},cr={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},rp=["mode","contrastThreshold","tonalOffset"],hs={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Gr.white,default:Gr.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Ao={text:{primary:Gr.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Gr.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function ms(e,t,r,n){const o=n.light||n,i=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=ei(e.main,o):t==="dark"&&(e.dark=Qo(e.main,i)))}function np(e="light"){return e==="dark"?{main:ar[200],light:ar[50],dark:ar[400]}:{main:ar[700],light:ar[400],dark:ar[800]}}function op(e="light"){return e==="dark"?{main:ir[200],light:ir[50],dark:ir[400]}:{main:ir[500],light:ir[300],dark:ir[700]}}function ip(e="light"){return e==="dark"?{main:sr[500],light:sr[300],dark:sr[700]}:{main:sr[700],light:sr[400],dark:sr[800]}}function sp(e="light"){return e==="dark"?{main:lr[400],light:lr[300],dark:lr[700]}:{main:lr[700],light:lr[500],dark:lr[900]}}function ap(e="light"){return e==="dark"?{main:cr[400],light:cr[300],dark:cr[700]}:{main:cr[800],light:cr[500],dark:cr[900]}}function lp(e="light"){return e==="dark"?{main:Nr[400],light:Nr[300],dark:Nr[700]}:{main:"#ed6c02",light:Nr[500],dark:Nr[900]}}function cp(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Ve(e,rp),i=e.primary||np(t),s=e.secondary||op(t),a=e.error||ip(t),l=e.info||sp(t),c=e.success||ap(t),u=e.warning||lp(t);function d(m){const h=ps(m,Ao.text.primary)>=r?Ao.text.primary:hs.text.primary;if(process.env.NODE_ENV!=="production"){const S=ps(m,h);S<3&&console.error([`MUI: The contrast ratio of ${S}:1 for ${h} on ${m}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
61
+ `))}return h}const f=({color:m,name:h,mainShade:S=500,lightShade:T=300,darkShade:k=700})=>{if(m=_({},m),!m.main&&m[S]&&(m.main=m[S]),!m.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${h?` (${h})`:""} provided to augmentColor(color) is invalid.
62
+ The color object needs to have a \`main\` property or a \`${S}\` property.`:Jr(11,h?` (${h})`:"",S));if(typeof m.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${h?` (${h})`:""} provided to augmentColor(color) is invalid.
63
+ \`color.main\` should be a string, but \`${JSON.stringify(m.main)}\` was provided instead.
64
64
 
65
65
  Did you intend to use one of the following approaches?
66
66
 
@@ -72,13 +72,13 @@ const theme1 = createTheme({ palette: {
72
72
 
73
73
  const theme2 = createTheme({ palette: {
74
74
  primary: { main: green[500] },
75
- } });`:zr(12,h?` (${h})`:"",JSON.stringify(y.main)));return hs(y,"light",T,n),hs(y,"dark",_,n),y.contrastText||(y.contrastText=d(y.main)),y},v={dark:jo,light:gs};return process.env.NODE_ENV!=="production"&&(v[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Ze(P({common:P({},Wr),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:tp,contrastThreshold:r,getContrastText:d,augmentColor:f,tonalOffset:n},v[t]),o)}const up=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function fp(e){return Math.round(e*1e5)/1e5}const ms={textTransform:"uppercase"},ys='"Roboto", "Helvetica", "Arial", sans-serif';function dp(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=ys,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=r,f=De(r,up);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const v=o/14,m=d||(S=>`${S/c*v}rem`),y=(S,T,_,O,w)=>P({fontFamily:n,fontWeight:S,fontSize:m(T),lineHeight:_},n===ys?{letterSpacing:`${fp(O/T)}em`}:{},w,u),h={h1:y(i,96,1.167,-1.5),h2:y(i,60,1.2,-.5),h3:y(s,48,1.167,0),h4:y(s,34,1.235,.25),h5:y(s,24,1.334,0),h6:y(a,20,1.6,.15),subtitle1:y(s,16,1.75,.15),subtitle2:y(a,14,1.57,.1),body1:y(s,16,1.5,.15),body2:y(s,14,1.43,.15),button:y(a,14,1.75,.4,ms),caption:y(s,12,1.66,.4),overline:y(s,12,2.66,1,ms),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ze(P({htmlFontSize:c,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},h),f,{clone:!1})}const pp=.2,gp=.14,hp=.12;function ue(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${pp})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${gp})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${hp})`].join(",")}const mp=["none",ue(0,2,1,-1,0,1,1,0,0,1,3,0),ue(0,3,1,-2,0,2,2,0,0,1,5,0),ue(0,3,3,-2,0,3,4,0,0,1,8,0),ue(0,2,4,-1,0,4,5,0,0,1,10,0),ue(0,3,5,-1,0,5,8,0,0,1,14,0),ue(0,3,5,-1,0,6,10,0,0,1,18,0),ue(0,4,5,-2,0,7,10,1,0,2,16,1),ue(0,5,5,-3,0,8,10,1,0,3,14,2),ue(0,5,6,-3,0,9,12,1,0,3,16,2),ue(0,6,6,-3,0,10,14,1,0,4,18,3),ue(0,6,7,-4,0,11,15,1,0,4,20,3),ue(0,7,8,-4,0,12,17,2,0,5,22,4),ue(0,7,8,-4,0,13,19,2,0,5,24,4),ue(0,7,9,-4,0,14,21,2,0,5,26,4),ue(0,8,9,-5,0,15,22,2,0,6,28,5),ue(0,8,10,-5,0,16,24,2,0,6,30,5),ue(0,8,11,-5,0,17,26,2,0,6,32,5),ue(0,9,11,-5,0,18,28,2,0,7,34,6),ue(0,9,12,-6,0,19,29,2,0,7,36,6),ue(0,10,13,-6,0,20,31,3,0,8,38,7),ue(0,10,13,-6,0,21,33,3,0,8,40,7),ue(0,10,14,-6,0,22,35,3,0,8,42,7),ue(0,11,14,-7,0,23,36,3,0,9,44,8),ue(0,11,15,-7,0,24,38,3,0,9,46,8)],yp=["duration","easing","delay"],bp={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},vp={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function bs(e){return`${Math.round(e)}ms`}function xp(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Sp(e){const t=P({},bp,e.easing),r=P({},vp,e.duration);return P({getAutoHeightDuration:xp,create:(o=["all"],i={})=>{const{duration:s=r.standard,easing:a=t.easeInOut,delay:l=0}=i,c=De(i,yp);if(process.env.NODE_ENV!=="production"){const u=f=>typeof f=="string",d=f=>!isNaN(parseFloat(f));!u(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!d(s)&&!u(s)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`),u(a)||console.error('MUI: Argument "easing" must be a string.'),!d(l)&&!u(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
76
- `)),Object.keys(c).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(c).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof s=="string"?s:bs(s)} ${a} ${typeof l=="string"?l:bs(l)}`).join(",")}},e,{easing:t,duration:r})}const wp={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Tp=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ll(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,s=De(e,Tp);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":zr(18));const a=cp(n),l=tn(e);let c=Ze(l,{mixins:Ud(l.breakpoints,r),palette:a,shadows:mp.slice(),typography:dp(a,i),transitions:Sp(o),zIndex:P({},wp)});if(c=Ze(c,s),c=t.reduce((u,d)=>Ze(u,d),c),process.env.NODE_ENV!=="production"){const u=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],d=(f,v)=>{let m;for(m in f){const y=f[m];if(u.indexOf(m)!==-1&&Object.keys(y).length>0){if(process.env.NODE_ENV!=="production"){const h=rn("",m);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${m}\` internal state.`,"You can not override it like this: ",JSON.stringify(f,null,2),"",`Instead, you need to use the '&.${h}' syntax:`,JSON.stringify({root:{[`&.${h}`]:y}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
77
- `))}f[m]={}}}};Object.keys(c.components).forEach(f=>{const v=c.components[f].styleOverrides;v&&f.indexOf("Mui")===0&&d(v,f)})}return c.unstable_sxConfig=P({},Qr,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(d){return en({sx:d,theme:this})},c}const Op=ll(),Ep="$$material";function Ri(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Cp=e=>Ri(e)&&e!=="classes",Ot=Rd({themeId:Ep,defaultTheme:Op,rootShouldForwardProp:Cp});process.env.NODE_ENV!=="production"&&(p.node,p.object.isRequired);function _i(e){return ud(e)}const mr=bd({createStyledComponent:Ot("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>_i({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(mr.propTypes={children:p.node,component:p.elementType,direction:p.oneOfType([p.oneOf(["column-reverse","column","row-reverse","row"]),p.arrayOf(p.oneOf(["column-reverse","column","row-reverse","row"])),p.object]),divider:p.node,spacing:p.oneOfType([p.arrayOf(p.oneOfType([p.number,p.string])),p.number,p.object,p.string]),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),useFlexGap:p.bool});const Rp={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Mn{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,r)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||Rp,this.options=r,this.debug=r.debug}log(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}warn(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}error(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"error","")}deprecate(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,n,o){return o&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new Mn(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Mn(this.logger,t)}}var dt=new Mn;class so{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const o=this.observers[n].get(r)||0;this.observers[n].set(r,o+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}emit(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(s=>{let[a,l]=s;for(let c=0;c<l;c++)a(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[a,l]=s;for(let c=0;c<l;c++)a.apply(a,[t,...n])})}}const Nr=()=>{let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r},vs=e=>e==null?"":""+e,_p=(e,t,r)=>{e.forEach(n=>{t[n]&&(r[n]=t[n])})},Pp=/###/g,xs=e=>e&&e.indexOf("###")>-1?e.replace(Pp,"."):e,Ss=e=>!e||typeof e=="string",Br=(e,t,r)=>{const n=typeof t!="string"?t:t.split(".");let o=0;for(;o<n.length-1;){if(Ss(e))return{};const i=xs(n[o]);!e[i]&&r&&(e[i]=new r),Object.prototype.hasOwnProperty.call(e,i)?e=e[i]:e={},++o}return Ss(e)?{}:{obj:e,k:xs(n[o])}},ws=(e,t,r)=>{const{obj:n,k:o}=Br(e,t,Object);if(n!==void 0||t.length===1){n[o]=r;return}let i=t[t.length-1],s=t.slice(0,t.length-1),a=Br(e,s,Object);for(;a.obj===void 0&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),a=Br(e,s,Object),a&&a.obj&&typeof a.obj[`${a.k}.${i}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=r},$p=(e,t,r,n)=>{const{obj:o,k:i}=Br(e,t,Object);o[i]=o[i]||[],o[i].push(r)},Dn=(e,t)=>{const{obj:r,k:n}=Br(e,t);if(r)return r[n]},kp=(e,t,r)=>{const n=Dn(e,r);return n!==void 0?n:Dn(t,r)},cl=(e,t,r)=>{for(const n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?r&&(e[n]=t[n]):cl(e[n],t[n],r):e[n]=t[n]);return e},cr=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var jp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Ap=e=>typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>jp[t]):e;class Lp{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const r=this.regExpMap.get(t);if(r!==void 0)return r;const n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}}const Ip=[" ",",","?","!",";"],Np=new Lp(20),Mp=(e,t,r)=>{t=t||"",r=r||"";const n=Ip.filter(s=>t.indexOf(s)<0&&r.indexOf(s)<0);if(n.length===0)return!0;const o=Np.getRegExp(`(${n.map(s=>s==="?"?"\\?":s).join("|")})`);let i=!o.test(e);if(!i){const s=e.indexOf(r);s>0&&!o.test(e.substring(0,s))&&(i=!0)}return i},ei=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const n=t.split(r);let o=e;for(let i=0;i<n.length;){if(!o||typeof o!="object")return;let s,a="";for(let l=i;l<n.length;++l)if(l!==i&&(a+=r),a+=n[l],s=o[a],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&l<n.length-1)continue;i+=l-i+1;break}o=s}return o},Fn=e=>e&&e.indexOf("_")>0?e.replace("_","-"):e;class Ts extends so{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,s=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;t.indexOf(".")>-1?a=t.split("."):(a=[t,r],n&&(Array.isArray(n)?a.push(...n):typeof n=="string"&&i?a.push(...n.split(i)):a.push(n)));const l=Dn(this.data,a);return!l&&!r&&!n&&t.indexOf(".")>-1&&(t=a[0],r=a[1],n=a.slice(2).join(".")),l||!s||typeof n!="string"?l:ei(this.data&&this.data[t]&&this.data[t][r],n,i)}addResource(t,r,n,o){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=[t,r];n&&(a=a.concat(s?n.split(s):n)),t.indexOf(".")>-1&&(a=t.split("."),o=r,r=a[1]),this.addNamespaces(r),ws(this.data,a,o),i.silent||this.emit("added",t,r,n,o)}addResources(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in n)(typeof n[i]=="string"||Array.isArray(n[i]))&&this.addResource(t,r,i,n[i],{silent:!0});o.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,o,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},a=[t,r];t.indexOf(".")>-1&&(a=t.split("."),o=n,n=r,r=a[1]),this.addNamespaces(r);let l=Dn(this.data,a)||{};s.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?cl(l,n,i):l={...l,...n},ws(this.data,a,l),s.silent||this.emit("added",t,r,n)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,r)}:this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(o=>r[o]&&Object.keys(r[o]).length>0)}toJSON(){return this.data}}var ul={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,o){return e.forEach(i=>{this.processors[i]&&(t=this.processors[i].process(t,r,n,o))}),t}};const Os={};class Vn extends so{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),_p(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=dt.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const n=this.resolve(t,r);return n&&n.res!==void 0}extractFromKey(t,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let i=r.ns||this.options.defaultNS||[];const s=n&&t.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!Mp(t,n,o);if(s&&!a){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:i};const c=t.split(n);(n!==o||n===o&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),t=c.join(o)}return typeof i=="string"&&(i=[i]),{key:t,namespaces:i}}translate(t,r,n){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:s,namespaces:a}=this.extractFromKey(t[t.length-1],r),l=a[a.length-1],c=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(u){const O=r.nsSeparator||this.options.nsSeparator;return o?{res:`${l}${O}${s}`,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:`${l}${O}${s}`}return o?{res:s,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:s}const d=this.resolve(t,r);let f=d&&d.res;const v=d&&d.usedKey||s,m=d&&d.exactUsedKey||s,y=Object.prototype.toString.apply(f),h=["[object Number]","[object Function]","[object RegExp]"],S=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,T=!this.i18nFormat||this.i18nFormat.handleAsObject;if(T&&f&&(typeof f!="string"&&typeof f!="boolean"&&typeof f!="number")&&h.indexOf(y)<0&&!(typeof S=="string"&&Array.isArray(f))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const O=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,f,{...r,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return o?(d.res=O,d.usedParams=this.getUsedParamsDetails(r),d):O}if(i){const O=Array.isArray(f),w=O?[]:{},E=O?m:v;for(const R in f)if(Object.prototype.hasOwnProperty.call(f,R)){const U=`${E}${i}${R}`;w[R]=this.translate(U,{...r,joinArrays:!1,ns:a}),w[R]===U&&(w[R]=f[R])}f=w}}else if(T&&typeof S=="string"&&Array.isArray(f))f=f.join(S),f&&(f=this.extendTranslation(f,t,r,n));else{let O=!1,w=!1;const E=r.count!==void 0&&typeof r.count!="string",R=Vn.hasDefaultValue(r),U=E?this.pluralResolver.getSuffix(c,r.count,r):"",Q=r.ordinal&&E?this.pluralResolver.getSuffix(c,r.count,{ordinal:!1}):"",F=E&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),M=F&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${U}`]||r[`defaultValue${Q}`]||r.defaultValue;!this.isValidLookup(f)&&R&&(O=!0,f=M),this.isValidLookup(f)||(w=!0,f=s);const G=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&w?void 0:f,X=R&&M!==f&&this.options.updateMissing;if(w||O||X){if(this.logger.log(X?"updateKey":"missingKey",c,l,s,X?M:f),i){const ee=this.resolve(s,{...r,keySeparator:!1});ee&&ee.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Y=[];const xe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&xe&&xe[0])for(let ee=0;ee<xe.length;ee++)Y.push(xe[ee]);else this.options.saveMissingTo==="all"?Y=this.languageUtils.toResolveHierarchy(r.lng||this.language):Y.push(r.lng||this.language);const le=(ee,Te,ke)=>{const tt=R&&ke!==f?ke:G;this.options.missingKeyHandler?this.options.missingKeyHandler(ee,l,Te,tt,X,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(ee,l,Te,tt,X,r),this.emit("missingKey",ee,l,Te,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&E?Y.forEach(ee=>{const Te=this.pluralResolver.getSuffixes(ee,r);F&&r[`defaultValue${this.options.pluralSeparator}zero`]&&Te.indexOf(`${this.options.pluralSeparator}zero`)<0&&Te.push(`${this.options.pluralSeparator}zero`),Te.forEach(ke=>{le([ee],s+ke,r[`defaultValue${ke}`]||M)})}):le(Y,s,M))}f=this.extendTranslation(f,t,r,d,n),w&&f===s&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${s}`),(w||O)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,O?f:void 0):f=this.options.parseMissingKeyHandler(f))}return o?(d.res=f,d.usedParams=this.getUsedParamsDetails(r),d):f}extendTranslation(t,r,n,o,i){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const c=typeof t=="string"&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(c){const f=t.match(this.interpolator.nestingRegexp);u=f&&f.length}let d=n.replace&&typeof n.replace!="string"?n.replace:n;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,n.lng||this.language||o.usedLng,n),c){const f=t.match(this.interpolator.nestingRegexp),v=f&&f.length;u<v&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(n.lng=this.language||o.usedLng),n.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var f=arguments.length,v=new Array(f),m=0;m<f;m++)v[m]=arguments[m];return i&&i[0]===v[0]&&!n.context?(s.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${r[0]}`),null):s.translate(...v,r)},n)),n.interpolation&&this.interpolator.reset()}const a=n.postProcess||this.options.postProcess,l=typeof a=="string"?[a]:a;return t!=null&&l&&l.length&&n.applyPostProcessor!==!1&&(t=ul.handle(l,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,o,i,s,a;return typeof t=="string"&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(n))return;const c=this.extractFromKey(l,r),u=c.key;o=u;let d=c.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const f=r.count!==void 0&&typeof r.count!="string",v=f&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),m=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",y=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);d.forEach(h=>{this.isValidLookup(n)||(a=h,!Os[`${y[0]}-${h}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(Os[`${y[0]}-${h}`]=!0,this.logger.warn(`key "${o}" for languages "${y.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),y.forEach(S=>{if(this.isValidLookup(n))return;s=S;const T=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(T,u,S,h,r);else{let O;f&&(O=this.pluralResolver.getSuffix(S,r.count,r));const w=`${this.options.pluralSeparator}zero`,E=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(T.push(u+O),r.ordinal&&O.indexOf(E)===0&&T.push(u+O.replace(E,this.options.pluralSeparator)),v&&T.push(u+w)),m){const R=`${u}${this.options.contextSeparator}${r.context}`;T.push(R),f&&(T.push(R+O),r.ordinal&&O.indexOf(E)===0&&T.push(R+O.replace(E,this.options.pluralSeparator)),v&&T.push(R+w))}}let _;for(;_=T.pop();)this.isValidLookup(n)||(i=_,n=this.getResource(S,h,_,r))}))})}),{res:n,usedKey:o,exactUsedKey:i,usedLng:s,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,r,n,o):this.resourceStore.getResource(t,r,n,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&typeof t.replace!="string";let o=n?t.replace:t;if(n&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!n){o={...o};for(const i of r)delete o[i]}return o}static hasDefaultValue(t){const r="defaultValue";for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&t[n]!==void 0)return!0;return!1}}const Ao=e=>e.charAt(0).toUpperCase()+e.slice(1);class Es{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=dt.create("languageUtils")}getScriptPartFromCode(t){if(t=Fn(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=Fn(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const r=["hans","hant","latn","cyrl","cans","mong","arab"];let n=t.split("-");return this.options.lowerCaseLng?n=n.map(o=>o.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Ao(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Ao(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=Ao(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(n=>{if(r)return;const o=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(o))&&(r=o)}),!r&&this.options.supportedLngs&&t.forEach(n=>{if(r)return;const o=this.getLanguagePartFromCode(n);if(this.isSupportedCode(o))return r=o;r=this.options.supportedLngs.find(i=>{if(i===o)return i;if(!(i.indexOf("-")<0&&o.indexOf("-")<0)&&(i.indexOf("-")>0&&o.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===o||i.indexOf(o)===0&&o.length>1))return i})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),typeof t=="string"&&(t=[t]),Array.isArray(t))return t;if(!r)return t.default||[];let n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}toResolveHierarchy(t,r){const n=this.getFallbackCodes(r||this.options.fallbackLng||[],t),o=[],i=s=>{s&&(this.isSupportedCode(s)?o.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):typeof t=="string"&&i(this.formatLanguageCode(t)),n.forEach(s=>{o.indexOf(s)<0&&i(this.formatLanguageCode(s))}),o}}let Dp=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Fp={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const Vp=["v1","v2","v3"],Bp=["v4"],Cs={zero:0,one:1,two:2,few:3,many:4,other:5},Up=()=>{const e={};return Dp.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:Fp[t.fc]}})}),e};class zp{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=dt.create("pluralResolver"),(!this.options.compatibilityJSON||Bp.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Up()}addRule(t,r){this.rules[t]=r}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Fn(t==="dev"?"en":t),{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,n).map(o=>`${r}${o}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((o,i)=>Cs[o]-Cs[i]).map(o=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o}`):n.numbers.map(o=>this.getSuffix(t,o,r)):[]}getSuffix(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,n);return o?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o.select(r)}`:this.getSuffixRetroCompatible(o,r):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,r){const n=t.noAbs?t.plurals(r):t.plurals(Math.abs(r));let o=t.numbers[n];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const i=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!Vp.includes(this.options.compatibilityJSON)}}const Rs=function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=kp(e,t,r);return!i&&o&&typeof r=="string"&&(i=ei(e,r,n),i===void 0&&(i=ei(t,r,n))),i},Lo=e=>e.replace(/\$/g,"$$$$");class Jp{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=dt.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:o,prefix:i,prefixEscaped:s,suffix:a,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:d,nestingPrefix:f,nestingPrefixEscaped:v,nestingSuffix:m,nestingSuffixEscaped:y,nestingOptionsSeparator:h,maxReplaces:S,alwaysFormat:T}=t.interpolation;this.escape=r!==void 0?r:Ap,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=i?cr(i):s||"{{",this.suffix=a?cr(a):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=f?cr(f):v||cr("$t("),this.nestingSuffix=m?cr(m):y||cr(")"),this.nestingOptionsSeparator=h||",",this.maxReplaces=S||1e3,this.alwaysFormat=T!==void 0?T:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,n)=>r&&r.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,r,n,o){let i,s,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=v=>{if(v.indexOf(this.formatSeparator)<0){const S=Rs(r,l,v,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(S,void 0,n,{...o,...r,interpolationkey:v}):S}const m=v.split(this.formatSeparator),y=m.shift().trim(),h=m.join(this.formatSeparator).trim();return this.format(Rs(r,l,y,this.options.keySeparator,this.options.ignoreJSONStructure),h,n,{...o,...r,interpolationkey:y})};this.resetRegExp();const u=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,d=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:v=>Lo(v)},{regex:this.regexp,safeValue:v=>this.escapeValue?Lo(this.escape(v)):Lo(v)}].forEach(v=>{for(a=0;i=v.regex.exec(t);){const m=i[1].trim();if(s=c(m),s===void 0)if(typeof u=="function"){const h=u(t,i,o);s=typeof h=="string"?h:""}else if(o&&Object.prototype.hasOwnProperty.call(o,m))s="";else if(d){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${t}`),s="";else typeof s!="string"&&!this.useRawValueToEscape&&(s=vs(s));const y=v.safeValue(s);if(t=t.replace(i[0],y),d?(v.regex.lastIndex+=s.length,v.regex.lastIndex-=i[0].length):v.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,i,s;const a=(l,c)=>{const u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;const d=l.split(new RegExp(`${u}[ ]*{`));let f=`{${d[1]}`;l=d[0],f=this.interpolate(f,s);const v=f.match(/'/g),m=f.match(/"/g);(v&&v.length%2===0&&!m||m.length%2!==0)&&(f=f.replace(/'/g,'"'));try{s=JSON.parse(f),c&&(s={...c,...s})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,y),`${l}${u}${f}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l};for(;o=this.nestingRegexp.exec(t);){let l=[];s={...n},s=s.replace&&typeof s.replace!="string"?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let c=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const u=o[1].split(this.formatSeparator).map(d=>d.trim());o[1]=u.shift(),l=u,c=!0}if(i=r(a.call(this,o[1].trim(),s),s),i&&o[0]===t&&typeof i!="string")return i;typeof i!="string"&&(i=vs(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),i=""),c&&(i=l.reduce((u,d)=>this.format(u,d,n.lng,{...n,interpolationkey:o[1].trim()}),i.trim())),t=t.replace(o[0],i),this.regexp.lastIndex=0}return t}}const Hp=e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const o=n[1].substring(0,n[1].length-1);t==="currency"&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach(s=>{if(s){const[a,...l]=s.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=a.trim();r[u]||(r[u]=c),c==="false"&&(r[u]=!1),c==="true"&&(r[u]=!0),isNaN(c)||(r[u]=parseInt(c,10))}})}return{formatName:t,formatOptions:r}},ur=e=>{const t={};return(r,n,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={formatParams:{[o.interpolationkey]:o.formatParams[o.interpolationkey]},interpolationKey:o.interpolationkey});const s=n+JSON.stringify(i);let a=t[s];return a||(a=e(Fn(n),o),t[s]=a),a(r)}};class Wp{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=dt.create("formatter"),this.options=t,this.formats={number:ur((r,n)=>{const o=new Intl.NumberFormat(r,{...n});return i=>o.format(i)}),currency:ur((r,n)=>{const o=new Intl.NumberFormat(r,{...n,style:"currency"});return i=>o.format(i)}),datetime:ur((r,n)=>{const o=new Intl.DateTimeFormat(r,{...n});return i=>o.format(i)}),relativetime:ur((r,n)=>{const o=new Intl.RelativeTimeFormat(r,{...n});return i=>o.format(i,n.range||"day")}),list:ur((r,n)=>{const o=new Intl.ListFormat(r,{...n});return i=>o.format(i)})},this.init(t)}init(t){const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=ur(r)}format(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=r.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(a=>a.indexOf(")")>-1)){const a=i.findIndex(l=>l.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,a)].join(this.formatSeparator)}return i.reduce((a,l)=>{const{formatName:c,formatOptions:u}=Hp(l);if(this.formats[c]){let d=a;try{const f=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},v=f.locale||f.lng||o.locale||o.lng||n;d=this.formats[c](a,v,{...u,...o,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${c}`);return a},t)}}const Gp=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class qp extends so{constructor(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=o,this.logger=dt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,o.backend,o)}queueLoad(t,r,n,o){const i={},s={},a={},l={};return t.forEach(c=>{let u=!0;r.forEach(d=>{const f=`${c}|${d}`;!n.reload&&this.store.hasResourceBundle(c,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?s[f]===void 0&&(s[f]=!0):(this.state[f]=1,u=!1,s[f]===void 0&&(s[f]=!0),i[f]===void 0&&(i[f]=!0),l[d]===void 0&&(l[d]=!0)))}),u||(a[c]=!0)}),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(t,r,n){const o=t.split("|"),i=o[0],s=o[1];r&&this.emit("failedLoading",i,s,r),n&&this.store.addResourceBundle(i,s,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2;const a={};this.queue.forEach(l=>{$p(l.loaded,[i],s),Gp(l,t),r&&l.errors.push(r),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{a[c]||(a[c]={});const u=l.loaded[c];u.length&&u.forEach(d=>{a[c][d]===void 0&&(a[c][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:n,tried:o,wait:i,callback:s});return}this.readingCalls++;const a=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(c&&u&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,n,o+1,i*2,s)},i);return}s(c,u)},l=this.backend[n].bind(this.backend);if(l.length===2){try{const c=l(t,r);c&&typeof c.then=="function"?c.then(u=>a(null,u)).catch(a):a(null,c)}catch(c){a(c)}return}return l(t,r,a)}prepareLoading(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof r=="string"&&(r=[r]);const i=this.queueLoad(t,r,n,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(s=>{this.loadOne(s)})}load(t,r,n){this.prepareLoading(t,r,{},n)}reload(t,r,n){this.prepareLoading(t,r,{reload:!0},n)}loadOne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=t.split("|"),o=n[0],i=n[1];this.read(o,i,"read",void 0,void 0,(s,a)=>{s&&this.logger.warn(`${r}loading namespace ${i} for language ${o} failed`,s),!s&&a&&this.logger.log(`${r}loaded namespace ${i} for language ${o}`,a),this.loaded(t,s,a)})}saveMissing(t,r,n,o,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend&&this.backend.create){const l={...s,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let u;c.length===5?u=c(t,r,n,o,l):u=c(t,r,n,o),u&&typeof u.then=="function"?u.then(d=>a(null,d)).catch(a):a(null,u)}catch(u){a(u)}else c(t,r,n,o,a,l)}!t||!t[0]||this.store.addResource(t[0],r,n,o)}}}const _s=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const r=e[3]||e[2];Object.keys(r).forEach(n=>{t[n]=r[n]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Ps=e=>(typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),gn=()=>{},Kp=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class Gr extends so{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Ps(t),this.services={},this.logger=dt,this.modules={external:[]},Kp(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(){var t=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(n=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(typeof r.ns=="string"?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const o=_s();this.options={...o,...this.options,...Ps(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);const i=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?dt.init(i(this.modules.logger),this.options):dt.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=Wp);const d=new Es(this.options);this.store=new Ts(this.options.resources,this.options);const f=this.services;f.logger=dt,f.resourceStore=this.store,f.languageUtils=d,f.pluralResolver=new zp(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(f.formatter=i(u),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new Jp(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new qp(i(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(v){for(var m=arguments.length,y=new Array(m>1?m-1:0),h=1;h<m;h++)y[h-1]=arguments[h];t.emit(v,...y)}),this.modules.languageDetector&&(f.languageDetector=i(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=i(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new Vn(this.services,this.options),this.translator.on("*",function(v){for(var m=arguments.length,y=new Array(m>1?m-1:0),h=1;h<m;h++)y[h-1]=arguments[h];t.emit(v,...y)}),this.modules.external.forEach(v=>{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,n||(n=gn),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=function(){return t.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return t.store[u](...arguments),t}});const l=Nr(),c=()=>{const u=(d,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(f),n(d,f)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gn;const o=typeof t=="string"?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const i=[],s=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(c=>{c!=="cimode"&&i.indexOf(c)<0&&i.push(c)})};o?s(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload&&this.options.preload.forEach(a=>s(a)),this.services.backendConnector.load(i,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(a)})}else n(null)}reloadResources(t,r,n){const o=Nr();return t||(t=this.languages),r||(r=this.options.ns),n||(n=gn),this.services.backendConnector.reload(t,r,i=>{o.resolve(),n(i)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&ul.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let r=0;r<this.languages.length;r++){const n=this.languages[r];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(t,r){var n=this;this.isLanguageChangingTo=t;const o=Nr();this.emit("languageChanging",t);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},s=(l,c)=>{c?(i(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,o.resolve(function(){return n.t(...arguments)}),r&&r(l,function(){return n.t(...arguments)})},a=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const c=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||i(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,u=>{s(u,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),o}getFixedT(t,r,n){var o=this;const i=function(s,a){let l;if(typeof a!="object"){for(var c=arguments.length,u=new Array(c>2?c-2:0),d=2;d<c;d++)u[d-2]=arguments[d];l=o.options.overloadTranslationOptionHandler([s,a].concat(u))}else l={...a};l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||n||i.keyPrefix);const f=o.options.keySeparator||".";let v;return l.keyPrefix&&Array.isArray(s)?v=s.map(m=>`${l.keyPrefix}${f}${m}`):v=l.keyPrefix?`${l.keyPrefix}${f}${s}`:s,o.t(v,l)};return typeof t=="string"?i.lng=t:i.lngs=t,i.ns=r,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const s=(a,l)=>{const c=this.services.backendConnector.state[`${a}|${l}`];return c===-1||c===2};if(r.precheck){const a=r.precheck(this,s);if(a!==void 0)return a}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(n,t)&&(!o||s(i,t)))}loadNamespaces(t,r){const n=Nr();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{n.resolve(),r&&r(o)}),n):(r&&r(),Promise.resolve())}loadLanguages(t,r){const n=Nr();typeof t=="string"&&(t=[t]);const o=this.options.preload||[],i=t.filter(s=>o.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return i.length?(this.options.preload=o.concat(i),this.loadResources(s=>{n.resolve(),r&&r(s)}),n):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services&&this.services.languageUtils||new Es(_s());return r.indexOf(n.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new Gr(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gn;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},i=new Gr(o);return(t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new Ts(this.store.data,o),i.services.resourceStore=i.store),i.translator=new Vn(i.services,o),i.translator.on("*",function(a){for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];i.emit(a,...c)}),i.init(o,r),i.translator.options=o,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const _e=Gr.createInstance();_e.createInstance=Gr.createInstance;_e.createInstance;_e.dir;_e.init;_e.loadResources;_e.reloadResources;_e.use;_e.changeLanguage;_e.getFixedT;_e.t;_e.exists;_e.setDefaultNamespace;_e.hasLoadedNamespace;_e.loadNamespaces;_e.loadLanguages;const Yp={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Geschwindigkeit","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}}mm","Jogging.Cartesian.MotionType.lb":"Bewegungstyp","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Gelenkwerte","Jogging.Increment.Continuous.dd":"Fortlaufend","Jogging.Cartesian.Orientation.lb":"Orientierung","Jogging.Activate.bt":"Jogging aktivieren","Jogging.Activating.lb":"Jogging wird aktiviert","Jogging.JointLimitsReached.lb":"Joint-Limit für Joint {{jointNumbers}} erreicht","Jogging.Orientation.coordsys":"Base","Jogging.Orientation.tool":"Tool"},Xp={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Velocity","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}}mm","Jogging.Cartesian.MotionType.lb":"Motion type","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Joint values","Jogging.Increment.Continuous.dd":"Continuous","Jogging.Cartesian.Orientation.lb":"Orientation","Jogging.Activate.bt":"Activate jogging","Jogging.Activating.lb":"Activating jogging","Jogging.JointLimitsReached.lb":"Joint limit reached for joint {{jointNumbers}}","Jogging.Orientation.coordsys":"Base","Jogging.Orientation.tool":"Tool"},fl=_e.createInstance();fl.use($c).init({supportedLngs:["en","de"],resources:{en:{translations:Xp},de:{translations:Yp}},ns:["translations"],defaultNS:"translations",detection:{order:["navigator","htmlTag"]}});function on(e){return r=>b.jsx(Zp,{children:b.jsx(e,{...r})})}const Zp=({children:e})=>b.jsx(Kt.I18nextProvider,{i18n:fl,children:e}),Qp=({title:e,titleId:t,...r},n)=>N.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("g",{id:"JogMinus"},N.createElement("path",{id:"Minus",d:"M0 13V8H21V13H0Z",fill:"white"}))),eg=H.forwardRef(Qp),tg=({title:e,titleId:t,...r},n)=>N.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("g",{id:"JogPlus"},N.createElement("g",{id:"Plus"},N.createElement("path",{d:"M0 13V8H8V13H0Z",fill:"white"}),N.createElement("path",{d:"M8 0L13 2.18557e-07L13 21H8L8 0Z",fill:"white"}),N.createElement("path",{d:"M13 13V8H21V13H13Z",fill:"white"})))),rg=H.forwardRef(tg);function ao(e){H.useEffect(e,[])}function dl(e){ao(()=>ut.autorun(e))}function Pi(e,t,r){ao(()=>ut.reaction(e,t,r))}function Sr(e){return ao(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}const ti=on($e.observer(({colors:e,label:t,getDisplayedValue:r,startJogging:n,stopJogging:o,disabled:i,activeJoggingDirection:s,...a})=>{var _,O,w,E,R,U,Q;Sr(()=>{const F=r(),M=f.current;M&&(M.textContent=F)});const l=k.useTheme(),[c,u]=H.useState(null);H.useEffect(()=>{i&&T()},[i]);const d=s||c,f=H.useRef(null);e||(e={color:"#fff",backgroundColor:"#000",borderColor:"#000",buttonBackgroundColor:{disabled:"#000",default:"#000",hovered:"#000",pressed:"#000"}});const v=d?(_=e.buttonBackgroundColor)==null?void 0:_.pressed:e.borderColor,m={width:"55px",color:e.color,path:{fill:e.color},alignContent:"center",fontSize:"37px",svg:{pointerEvents:"none"}},y={...m,backgroundColor:(O=e.buttonBackgroundColor)==null?void 0:O.default,":hover":{backgroundColor:(w=e.buttonBackgroundColor)==null?void 0:w.hovered},":active":{backgroundColor:(E=e.buttonBackgroundColor)==null?void 0:E.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor}},":disabled":{backgroundColor:(R=e.buttonBackgroundColor)==null?void 0:R.disabled,"svg path":{fill:l.palette.action.disabled}}},h={...m,backgroundColor:(U=e.buttonBackgroundColor)==null?void 0:U.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor},":disabled":{backgroundColor:(Q=e.buttonBackgroundColor)==null?void 0:Q.pressed,"svg path":{fill:l.palette.action.disabled}}};function S(F,M){i||F.button===0&&(u(M),n(M))}function T(){u(null),o()}return b.jsxs(mr,{height:"64px",direction:"row",justifyContent:"center",...a,children:[b.jsx(k.IconButton,{disabled:i,disableRipple:!0,onPointerDown:F=>S(F,"-"),onPointerUp:T,onPointerOut:T,size:"large",sx:{...d==="-"?h:y,borderRadius:"16px 0px 0px 16px",borderLeft:`2px solid ${v??"#fff"}`,borderBottom:`2px solid ${v??"#fff"}`,borderTop:`2px solid ${v??"#fff"}`},children:b.jsx(eg,{})}),b.jsxs(mr,{spacing:"6px",sx:{width:"150px",backgroundColor:e.backgroundColor,alignItems:"center",justifyContent:"center",opacity:"0.9",borderBottom:`2px solid ${v??"#fff"}`,borderTop:`2px solid ${v??"#fff"}`},children:[b.jsx(mr,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none",color:e.color,".MuiTypography-root":{fontWeight:700,...i?{color:l.palette.action.disabled}:{}},...i?{"svg path":{fill:l.palette.action.disabled}}:{}},children:t}),b.jsx(k.Typography,{height:"22px",sx:{fontSize:"15px",color:i?l.palette.action.disabled:e.color,fontWeight:700},ref:f,children:r()})]}),b.jsx(k.IconButton,{disableRipple:!0,disabled:i,onPointerDown:F=>S(F,"+"),onPointerUp:T,onPointerOut:T,size:"large",sx:{...d==="+"?h:y,borderRadius:"0px 16px 16px 0px",borderRight:`2px solid ${v??"#fff"}`,borderBottom:`2px solid ${v??"#fff"}`,borderTop:`2px solid ${v??"#fff"}`},children:b.jsx(rg,{})})]})}));var $i={},Io={};function ng(e){return rn("MuiSvgIcon",e)}Ga("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const og=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ig=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Ee(t)}`,`fontSize${Ee(r)}`]};return Ti(o,ng,n)},sg=Ot("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Ee(r.color)}`],t[`fontSize${Ee(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,s,a,l,c,u,d,f,v,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(s=i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem",medium:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(d=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?d:{action:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.disabled,inherit:void 0}[t.color]}}),Bn=N.forwardRef(function(t,r){const n=_i({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24"}=n,v=De(n,og),m=N.isValidElement(o)&&o.type==="svg",y=P({},n,{color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:m}),h={};u||(h.viewBox=f);const S=ig(y);return b.jsxs(sg,P({as:a,className:gt(S.root,i),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r},h,v,m&&o.props,{ownerState:y,children:[m?o.props.children:o,d?b.jsx("title",{children:d}):null]}))});process.env.NODE_ENV!=="production"&&(Bn.propTypes={children:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),p.string]),component:p.elementType,fontSize:p.oneOfType([p.oneOf(["inherit","large","medium","small"]),p.string]),htmlColor:p.string,inheritViewBox:p.bool,shapeRendering:p.string,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),titleAccess:p.string,viewBox:p.string});Bn.muiName="SvgIcon";function ag(e,t){function r(n,o){return b.jsx(Bn,P({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Bn.muiName,N.memo(N.forwardRef(r))}const lg={configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
78
- `)),Ha.configure(e)}},cg=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Ee,createChainedFunction:Ff,createSvgIcon:ag,debounce:Vf,deprecatedPropType:Bf,isMuiElement:Uf,ownerDocument:hr,ownerWindow:zf,requirePropFactory:Jf,setRef:Xa,unstable_ClassNameGenerator:lg,unstable_useEnhancedEffect:Si,unstable_useId:Wf,unsupportedProp:Gf,useControlled:Za,useEventCallback:Cn,useForkRef:In,useIsFocusVisible:Qa},Symbol.toStringTag,{value:"Module"})),ug=Tt(cg);var $s;function pl(){return $s||($s=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=ug}(Io)),Io}var fg=io;Object.defineProperty($i,"__esModule",{value:!0});var gl=$i.default=void 0,dg=fg(pl()),pg=b;gl=$i.default=(0,dg.default)((0,pg.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");var ki={},gg=io;Object.defineProperty(ki,"__esModule",{value:!0});var hl=ki.default=void 0,hg=gg(pl()),mg=b;hl=ki.default=(0,hg.default)((0,mg.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function Ht(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ml=typeof global=="object"&&global&&global.Object===Object&&global,yg=typeof self=="object"&&self&&self.Object===Object&&self,mt=ml||yg||Function("return this")(),No=function(){return mt.Date.now()},bg=/\s/;function vg(e){for(var t=e.length;t--&&bg.test(e.charAt(t)););return t}var xg=/^\s+/;function Sg(e){return e&&e.slice(0,vg(e)+1).replace(xg,"")}var It=mt.Symbol,yl=Object.prototype,wg=yl.hasOwnProperty,Tg=yl.toString,Mr=It?It.toStringTag:void 0;function Og(e){var t=wg.call(e,Mr),r=e[Mr];try{e[Mr]=void 0;var n=!0}catch{}var o=Tg.call(e);return n&&(t?e[Mr]=r:delete e[Mr]),o}var Eg=Object.prototype,Cg=Eg.toString;function Rg(e){return Cg.call(e)}var _g="[object Null]",Pg="[object Undefined]",ks=It?It.toStringTag:void 0;function Yt(e){return e==null?e===void 0?Pg:_g:ks&&ks in Object(e)?Og(e):Rg(e)}function Wt(e){return e!=null&&typeof e=="object"}var $g="[object Symbol]";function lo(e){return typeof e=="symbol"||Wt(e)&&Yt(e)==$g}var js=NaN,kg=/^[-+]0x[0-9a-f]+$/i,jg=/^0b[01]+$/i,Ag=/^0o[0-7]+$/i,Lg=parseInt;function As(e){if(typeof e=="number")return e;if(lo(e))return js;if(Ht(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ht(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Sg(e);var r=jg.test(e);return r||Ag.test(e)?Lg(e.slice(2),r?2:8):kg.test(e)?js:+e}var Ig="Expected a function",Ng=Math.max,Mg=Math.min;function Dg(e,t,r){var n,o,i,s,a,l,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(Ig);t=As(t)||0,Ht(r)&&(u=!!r.leading,d="maxWait"in r,i=d?Ng(As(r.maxWait)||0,t):i,f="trailing"in r?!!r.trailing:f);function v(E){var R=n,U=o;return n=o=void 0,c=E,s=e.apply(U,R),s}function m(E){return c=E,a=setTimeout(S,t),u?v(E):s}function y(E){var R=E-l,U=E-c,Q=t-R;return d?Mg(Q,i-U):Q}function h(E){var R=E-l,U=E-c;return l===void 0||R>=t||R<0||d&&U>=i}function S(){var E=No();if(h(E))return T(E);a=setTimeout(S,y(E))}function T(E){return a=void 0,f&&n?v(E):(n=o=void 0,s)}function _(){a!==void 0&&clearTimeout(a),c=0,n=l=o=a=void 0}function O(){return a===void 0?s:T(No())}function w(){var E=No(),R=h(E);if(n=arguments,o=this,l=E,R){if(a===void 0)return m(l);if(d)return clearTimeout(a),a=setTimeout(S,t),v(l)}return a===void 0&&(a=setTimeout(S,t)),s}return w.cancel=_,w.flush=O,w}var Fg="Expected a function";function Vg(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(Fg);return Ht(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Dg(e,t,{leading:n,maxWait:t,trailing:o})}const bl=on($e.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:n,getValueDegs:o,disabled:i,...s})=>{var _,O,w,E,R,U,Q;const{t:a}=Kt.useTranslation(),[l,c]=H.useState(),u=k.useTheme(),d={background:(_=u.palette.backgroundPaperElevation)==null?void 0:_[4],color:(O=u.palette.backgroundPaperElevation)==null?void 0:O[11]},f=$e.useLocalObservable(()=>({activeJoggingDir:null,startJogging(F){this.activeJoggingDir=F,e(F)},stopJogging(){this.activeJoggingDir=null,t()}})),v=Vg(()=>{c(o())},50);Sr(v);function m(F){F.button===0&&f.startJogging("-")}function y(F){F.button===0&&f.startJogging("+")}function h(F){f.stopJogging()}function S(F){F.target===F.currentTarget&&f.stopJogging()}function T(F,M=1){if(F===void 0||isNaN(F))return"";const W=a("General.degree.variable",{amount:F.toFixed(M)});return F>0&&M===0?`+${W}`:W}return b.jsxs(mr,{height:"64px",width:"100%",maxWidth:"260px",direction:"row",...s,sx:{"& .MuiIconButton-root":{width:"52px",color:u.palette.text.primary,alignContent:"center",backgroundColor:(w=u.palette.backgroundPaperElevation)==null?void 0:w[11],"& svg":{width:"42px",height:"42px"},"&.Mui-disabled":{backgroundColor:(E=u.palette.backgroundPaperElevation)==null?void 0:E[11],color:u.palette.action.disabled,opacity:1},"&:hover":{backgroundColor:(R=u.palette.backgroundPaperElevation)==null?void 0:R[9]},"&:active":{...d}}},children:[b.jsx(k.IconButton,{onPointerDown:m,onPointerUp:h,onPointerOut:S,disabled:i,disableRipple:!0,sx:{borderRadius:"16px 0px 0px 16px",...f.activeJoggingDir==="-"?d:{}},children:b.jsx(gl,{})}),b.jsxs(mr,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{borderStyle:"solid",borderLeftWidth:0,borderRightWidth:0,border:"none",backgroundColor:(U=u.palette.backgroundPaperElevation)==null?void 0:U[11],paddingLeft:"20px",paddingRight:"20px",zIndex:1},children:[b.jsx(k.Typography,{sx:{fontSize:"15px",fontWeight:700,position:"relative",top:"5px",color:i?u.palette.action.disabled:u.palette.text.primary},children:T(l)}),b.jsx(k.Slider,{disabled:!0,"aria-label":"Joint position",min:r,max:n,value:l||0,track:!1,sx:{"& .MuiSlider-mark":{display:"none"},"& .MuiSlider-thumb":{width:"5px",height:"12px",borderRadius:"2px",color:i?u.palette.action.disabled:u.palette.text.primary},"& .MuiSlider-markLabel":{top:"20px",fontSize:"12px",color:i?u.palette.action.disabled:u.palette.text.secondary},"& .MuiSlider-rail":{backgroundColor:(Q=u.palette.backgroundPaperElevation)==null?void 0:Q[5],opacity:1}},marks:r!==void 0&&n!==void 0&&[{value:r,label:T(r,0)},{value:n,label:T(n,0)}]})]}),b.jsx(k.IconButton,{onPointerDown:y,onPointerUp:h,onPointerOut:S,disabled:i,disableRipple:!0,sx:{borderRadius:"0px 16px 16px 0px",...f.activeJoggingDir==="+"?d:{}},children:b.jsx(hl,{})})]})}));function vl(e,t){return function(){return e.apply(t,arguments)}}const{toString:Bg}=Object.prototype,{getPrototypeOf:ji}=Object,co=(e=>t=>{const r=Bg.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),it=e=>(e=e.toLowerCase(),t=>co(t)===e),uo=e=>t=>typeof t===e,{isArray:wr}=Array,qr=uo("undefined");function Ug(e){return e!==null&&!qr(e)&&e.constructor!==null&&!qr(e.constructor)&&Je(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const xl=it("ArrayBuffer");function zg(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&xl(e.buffer),t}const Jg=uo("string"),Je=uo("function"),Sl=uo("number"),fo=e=>e!==null&&typeof e=="object",Hg=e=>e===!0||e===!1,$n=e=>{if(co(e)!=="object")return!1;const t=ji(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Wg=it("Date"),Gg=it("File"),qg=it("Blob"),Kg=it("FileList"),Yg=e=>fo(e)&&Je(e.pipe),Xg=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Je(e.append)&&((t=co(e))==="formdata"||t==="object"&&Je(e.toString)&&e.toString()==="[object FormData]"))},Zg=it("URLSearchParams"),[Qg,eh,th,rh]=["ReadableStream","Request","Response","Headers"].map(it),nh=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function sn(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),wr(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let a;for(n=0;n<s;n++)a=i[n],t.call(null,e[a],a,e)}}function wl(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const Ut=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Tl=e=>!qr(e)&&e!==Ut;function ri(){const{caseless:e}=Tl(this)&&this||{},t={},r=(n,o)=>{const i=e&&wl(t,o)||o;$n(t[i])&&$n(n)?t[i]=ri(t[i],n):$n(n)?t[i]=ri({},n):wr(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&sn(arguments[n],r);return t}const oh=(e,t,r,{allOwnKeys:n}={})=>(sn(t,(o,i)=>{r&&Je(o)?e[i]=vl(o,r):e[i]=o},{allOwnKeys:n}),e),ih=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),sh=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},ah=(e,t,r,n)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&ji(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},lh=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},ch=e=>{if(!e)return null;if(wr(e))return e;let t=e.length;if(!Sl(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},uh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ji(Uint8Array)),fh=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},dh=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},ph=it("HTMLFormElement"),gh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Ls=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),hh=it("RegExp"),Ol=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};sn(r,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(n[i]=s||o)}),Object.defineProperties(e,n)},mh=e=>{Ol(e,(t,r)=>{if(Je(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Je(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},yh=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return wr(e)?n(e):n(String(e).split(t)),r},bh=()=>{},vh=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Mo="abcdefghijklmnopqrstuvwxyz",Is="0123456789",El={DIGIT:Is,ALPHA:Mo,ALPHA_DIGIT:Mo+Mo.toUpperCase()+Is},xh=(e=16,t=El.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Sh(e){return!!(e&&Je(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const wh=e=>{const t=new Array(10),r=(n,o)=>{if(fo(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=wr(n)?[]:{};return sn(n,(s,a)=>{const l=r(s,o+1);!qr(l)&&(i[a]=l)}),t[o]=void 0,i}}return n};return r(e,0)},Th=it("AsyncFunction"),Oh=e=>e&&(fo(e)||Je(e))&&Je(e.then)&&Je(e.catch),Cl=((e,t)=>e?setImmediate:t?((r,n)=>(Ut.addEventListener("message",({source:o,data:i})=>{o===Ut&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),Ut.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Je(Ut.postMessage)),Eh=typeof queueMicrotask<"u"?queueMicrotask.bind(Ut):typeof process<"u"&&process.nextTick||Cl,x={isArray:wr,isArrayBuffer:xl,isBuffer:Ug,isFormData:Xg,isArrayBufferView:zg,isString:Jg,isNumber:Sl,isBoolean:Hg,isObject:fo,isPlainObject:$n,isReadableStream:Qg,isRequest:eh,isResponse:th,isHeaders:rh,isUndefined:qr,isDate:Wg,isFile:Gg,isBlob:qg,isRegExp:hh,isFunction:Je,isStream:Yg,isURLSearchParams:Zg,isTypedArray:uh,isFileList:Kg,forEach:sn,merge:ri,extend:oh,trim:nh,stripBOM:ih,inherits:sh,toFlatObject:ah,kindOf:co,kindOfTest:it,endsWith:lh,toArray:ch,forEachEntry:fh,matchAll:dh,isHTMLForm:ph,hasOwnProperty:Ls,hasOwnProp:Ls,reduceDescriptors:Ol,freezeMethods:mh,toObjectSet:yh,toCamelCase:gh,noop:bh,toFiniteNumber:vh,findKey:wl,global:Ut,isContextDefined:Tl,ALPHABET:El,generateString:xh,isSpecCompliantForm:Sh,toJSONObject:wh,isAsyncFn:Th,isThenable:Oh,setImmediate:Cl,asap:Eh};function z(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}x.inherits(z,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:x.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Rl=z.prototype,_l={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{_l[e]={value:e}});Object.defineProperties(z,_l);Object.defineProperty(Rl,"isAxiosError",{value:!0});z.from=(e,t,r,n,o,i)=>{const s=Object.create(Rl);return x.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),z.call(s,e.message,t,r,n,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const Ch=null;function ni(e){return x.isPlainObject(e)||x.isArray(e)}function Pl(e){return x.endsWith(e,"[]")?e.slice(0,-2):e}function Ns(e,t,r){return e?e.concat(t).map(function(o,i){return o=Pl(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function Rh(e){return x.isArray(e)&&!e.some(ni)}const _h=x.toFlatObject(x,{},null,function(t){return/^is[A-Z]/.test(t)});function po(e,t,r){if(!x.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=x.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,h){return!x.isUndefined(h[y])});const n=r.metaTokens,o=r.visitor||u,i=r.dots,s=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&x.isSpecCompliantForm(t);if(!x.isFunction(o))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(x.isDate(m))return m.toISOString();if(!l&&x.isBlob(m))throw new z("Blob is not supported. Use a Buffer instead.");return x.isArrayBuffer(m)||x.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,y,h){let S=m;if(m&&!h&&typeof m=="object"){if(x.endsWith(y,"{}"))y=n?y:y.slice(0,-2),m=JSON.stringify(m);else if(x.isArray(m)&&Rh(m)||(x.isFileList(m)||x.endsWith(y,"[]"))&&(S=x.toArray(m)))return y=Pl(y),S.forEach(function(_,O){!(x.isUndefined(_)||_===null)&&t.append(s===!0?Ns([y],O,i):s===null?y:y+"[]",c(_))}),!1}return ni(m)?!0:(t.append(Ns(h,y,i),c(m)),!1)}const d=[],f=Object.assign(_h,{defaultVisitor:u,convertValue:c,isVisitable:ni});function v(m,y){if(!x.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(m),x.forEach(m,function(S,T){(!(x.isUndefined(S)||S===null)&&o.call(t,S,x.isString(T)?T.trim():T,y,f))===!0&&v(S,y?y.concat(T):[T])}),d.pop()}}if(!x.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Ms(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Ai(e,t){this._pairs=[],e&&po(e,this,t)}const $l=Ai.prototype;$l.append=function(t,r){this._pairs.push([t,r])};$l.toString=function(t){const r=t?function(n){return t.call(this,n,Ms)}:Ms;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Ph(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function kl(e,t,r){if(!t)return e;const n=r&&r.encode||Ph,o=r&&r.serialize;let i;if(o?i=o(t,r):i=x.isURLSearchParams(t)?t.toString():new Ai(t,r).toString(n),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Ds{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){x.forEach(this.handlers,function(n){n!==null&&t(n)})}}const jl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$h=typeof URLSearchParams<"u"?URLSearchParams:Ai,kh=typeof FormData<"u"?FormData:null,jh=typeof Blob<"u"?Blob:null,Ah={isBrowser:!0,classes:{URLSearchParams:$h,FormData:kh,Blob:jh},protocols:["http","https","file","blob","url","data"]},Li=typeof window<"u"&&typeof document<"u",Lh=(e=>Li&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Ih=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Nh=Li&&window.location.href||"http://localhost",Mh=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Li,hasStandardBrowserEnv:Lh,hasStandardBrowserWebWorkerEnv:Ih,origin:Nh},Symbol.toStringTag,{value:"Module"})),nt={...Mh,...Ah};function Dh(e,t){return po(e,new nt.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return nt.isNode&&x.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Fh(e){return x.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Vh(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function Al(e){function t(r,n,o,i){let s=r[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),l=i>=r.length;return s=!s&&x.isArray(o)?o.length:s,l?(x.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!a):((!o[s]||!x.isObject(o[s]))&&(o[s]=[]),t(r,n,o[s],i)&&x.isArray(o[s])&&(o[s]=Vh(o[s])),!a)}if(x.isFormData(e)&&x.isFunction(e.entries)){const r={};return x.forEachEntry(e,(n,o)=>{t(Fh(n),o,r,0)}),r}return null}function Bh(e,t,r){if(x.isString(e))try{return(t||JSON.parse)(e),x.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const an={transitional:jl,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=x.isObject(t);if(i&&x.isHTMLForm(t)&&(t=new FormData(t)),x.isFormData(t))return o?JSON.stringify(Al(t)):t;if(x.isArrayBuffer(t)||x.isBuffer(t)||x.isStream(t)||x.isFile(t)||x.isBlob(t)||x.isReadableStream(t))return t;if(x.isArrayBufferView(t))return t.buffer;if(x.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Dh(t,this.formSerializer).toString();if((a=x.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return po(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),Bh(t)):t}],transformResponse:[function(t){const r=this.transitional||an.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(x.isResponse(t)||x.isReadableStream(t))return t;if(t&&x.isString(t)&&(n&&!this.responseType||o)){const s=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?z.from(a,z.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nt.classes.FormData,Blob:nt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};x.forEach(["delete","get","head","post","put","patch"],e=>{an.headers[e]={}});const Uh=x.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),zh=e=>{const t={};let r,n,o;return e&&e.split(`
79
- `).forEach(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim(),!(!r||t[r]&&Uh[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Fs=Symbol("internals");function Dr(e){return e&&String(e).trim().toLowerCase()}function kn(e){return e===!1||e==null?e:x.isArray(e)?e.map(kn):String(e)}function Jh(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Hh=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Do(e,t,r,n,o){if(x.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!x.isString(t)){if(x.isString(n))return t.indexOf(n)!==-1;if(x.isRegExp(n))return n.test(t)}}function Wh(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Gh(e,t){const r=x.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,s){return this[n].call(this,t,o,i,s)},configurable:!0})})}let Ne=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(a,l,c){const u=Dr(l);if(!u)throw new Error("header name must be a non-empty string");const d=x.findKey(o,u);(!d||o[d]===void 0||c===!0||c===void 0&&o[d]!==!1)&&(o[d||l]=kn(a))}const s=(a,l)=>x.forEach(a,(c,u)=>i(c,u,l));if(x.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(x.isString(t)&&(t=t.trim())&&!Hh(t))s(zh(t),r);else if(x.isHeaders(t))for(const[a,l]of t.entries())i(l,a,n);else t!=null&&i(r,t,n);return this}get(t,r){if(t=Dr(t),t){const n=x.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return Jh(o);if(x.isFunction(r))return r.call(this,o,n);if(x.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Dr(t),t){const n=x.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Do(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(s){if(s=Dr(s),s){const a=x.findKey(n,s);a&&(!r||Do(n,n[a],a,r))&&(delete n[a],o=!0)}}return x.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||Do(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return x.forEach(this,(o,i)=>{const s=x.findKey(n,i);if(s){r[s]=kn(o),delete r[i];return}const a=t?Wh(i):String(i).trim();a!==i&&delete r[i],r[a]=kn(o),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return x.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&x.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
80
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Fs]=this[Fs]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Dr(s);n[a]||(Gh(o,s),n[a]=!0)}return x.isArray(t)?t.forEach(i):i(t),this}};Ne.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);x.reduceDescriptors(Ne.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});x.freezeMethods(Ne);function Fo(e,t){const r=this||an,n=t||r,o=Ne.from(n.headers);let i=n.data;return x.forEach(e,function(a){i=a.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ll(e){return!!(e&&e.__CANCEL__)}function Tr(e,t,r){z.call(this,e??"canceled",z.ERR_CANCELED,t,r),this.name="CanceledError"}x.inherits(Tr,z,{__CANCEL__:!0});function Il(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new z("Request failed with status code "+r.status,[z.ERR_BAD_REQUEST,z.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function qh(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Kh(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=n[i];s||(s=c),r[o]=l,n[o]=c;let d=i,f=0;for(;d!==o;)f+=r[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-s<t)return;const v=u&&c-u;return v?Math.round(f*1e3/v):void 0}}function Yh(e,t){let r=0,n=1e3/t,o,i;const s=(c,u=Date.now())=>{r=u,o=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-r;d>=n?s(c,u):(o=c,i||(i=setTimeout(()=>{i=null,s(o)},n-d)))},()=>o&&s(o)]}const Un=(e,t,r=3)=>{let n=0;const o=Kh(50,250);return Yh(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,l=s-n,c=o(l),u=s<=a;n=s;const d={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&u?(a-s)/c:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},r)},Vs=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Bs=e=>(...t)=>x.asap(()=>e(...t)),Xh=nt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(i){let s=i;return t&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(s){const a=x.isString(s)?o(s):s;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}(),Zh=nt.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const s=[e+"="+encodeURIComponent(t)];x.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),x.isString(n)&&s.push("path="+n),x.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Qh(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function em(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Nl(e,t){return e&&!Qh(t)?em(e,t):t}const Us=e=>e instanceof Ne?{...e}:e;function Gt(e,t){t=t||{};const r={};function n(c,u,d){return x.isPlainObject(c)&&x.isPlainObject(u)?x.merge.call({caseless:d},c,u):x.isPlainObject(u)?x.merge({},u):x.isArray(u)?u.slice():u}function o(c,u,d){if(x.isUndefined(u)){if(!x.isUndefined(c))return n(void 0,c,d)}else return n(c,u,d)}function i(c,u){if(!x.isUndefined(u))return n(void 0,u)}function s(c,u){if(x.isUndefined(u)){if(!x.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function a(c,u,d){if(d in t)return n(c,u);if(d in e)return n(void 0,c)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,u)=>o(Us(c),Us(u),!0)};return x.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||o,f=d(e[u],t[u],u);x.isUndefined(f)&&d!==a||(r[u]=f)}),r}const Ml=e=>{const t=Gt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;t.headers=s=Ne.from(s),t.url=kl(Nl(t.baseURL,t.url),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(x.isFormData(r)){if(nt.hasStandardBrowserEnv||nt.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...u].join("; "))}}if(nt.hasStandardBrowserEnv&&(n&&x.isFunction(n)&&(n=n(t)),n||n!==!1&&Xh(t.url))){const c=o&&i&&Zh.read(i);c&&s.set(o,c)}return t},tm=typeof XMLHttpRequest<"u",rm=tm&&function(e){return new Promise(function(r,n){const o=Ml(e);let i=o.data;const s=Ne.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=o,u,d,f,v,m;function y(){v&&v(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let h=new XMLHttpRequest;h.open(o.method.toUpperCase(),o.url,!0),h.timeout=o.timeout;function S(){if(!h)return;const _=Ne.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),w={data:!a||a==="text"||a==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:_,config:e,request:h};Il(function(R){r(R),y()},function(R){n(R),y()},w),h=null}"onloadend"in h?h.onloadend=S:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(S)},h.onabort=function(){h&&(n(new z("Request aborted",z.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new z("Network Error",z.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let O=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const w=o.transitional||jl;o.timeoutErrorMessage&&(O=o.timeoutErrorMessage),n(new z(O,w.clarifyTimeoutError?z.ETIMEDOUT:z.ECONNABORTED,e,h)),h=null},i===void 0&&s.setContentType(null),"setRequestHeader"in h&&x.forEach(s.toJSON(),function(O,w){h.setRequestHeader(w,O)}),x.isUndefined(o.withCredentials)||(h.withCredentials=!!o.withCredentials),a&&a!=="json"&&(h.responseType=o.responseType),c&&([f,m]=Un(c,!0),h.addEventListener("progress",f)),l&&h.upload&&([d,v]=Un(l),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",v)),(o.cancelToken||o.signal)&&(u=_=>{h&&(n(!_||_.type?new Tr(null,e,h):_),h.abort(),h=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const T=qh(o.url);if(T&&nt.protocols.indexOf(T)===-1){n(new z("Unsupported protocol "+T+":",z.ERR_BAD_REQUEST,e));return}h.send(i||null)})},nm=(e,t)=>{let r=new AbortController,n;const o=function(l){if(!n){n=!0,s();const c=l instanceof Error?l:this.reason;r.abort(c instanceof z?c:new Tr(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{o(new z(`timeout ${t} of ms exceeded`,z.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",o):l.unsubscribe(o))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",o));const{signal:a}=r;return a.unsubscribe=s,[a,()=>{i&&clearTimeout(i),i=null}]},om=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},im=async function*(e,t,r){for await(const n of e)yield*om(ArrayBuffer.isView(n)?n:await r(String(n)),t)},zs=(e,t,r,n,o)=>{const i=im(e,t,o);let s=0,a,l=c=>{a||(a=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await i.next();if(u){l(),c.close();return}let f=d.byteLength;if(r){let v=s+=f;r(v)}c.enqueue(new Uint8Array(d))}catch(u){throw l(u),u}},cancel(c){return l(c),i.return()}},{highWaterMark:2})},go=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Dl=go&&typeof ReadableStream=="function",oi=go&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Fl=(e,...t)=>{try{return!!e(...t)}catch{return!1}},sm=Dl&&Fl(()=>{let e=!1;const t=new Request(nt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Js=64*1024,ii=Dl&&Fl(()=>x.isReadableStream(new Response("").body)),zn={stream:ii&&(e=>e.body)};go&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!zn[t]&&(zn[t]=x.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new z(`Response type '${t}' is not supported`,z.ERR_NOT_SUPPORT,n)})})})(new Response);const am=async e=>{if(e==null)return 0;if(x.isBlob(e))return e.size;if(x.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(x.isArrayBufferView(e)||x.isArrayBuffer(e))return e.byteLength;if(x.isURLSearchParams(e)&&(e=e+""),x.isString(e))return(await oi(e)).byteLength},lm=async(e,t)=>{const r=x.toFiniteNumber(e.getContentLength());return r??am(t)},cm=go&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=Ml(e);c=c?(c+"").toLowerCase():"text";let[v,m]=o||i||s?nm([o,i],s):[],y,h;const S=()=>{!y&&setTimeout(()=>{v&&v.unsubscribe()}),y=!0};let T;try{if(l&&sm&&r!=="get"&&r!=="head"&&(T=await lm(u,n))!==0){let E=new Request(t,{method:"POST",body:n,duplex:"half"}),R;if(x.isFormData(n)&&(R=E.headers.get("content-type"))&&u.setContentType(R),E.body){const[U,Q]=Vs(T,Un(Bs(l)));n=zs(E.body,Js,U,Q,oi)}}x.isString(d)||(d=d?"include":"omit"),h=new Request(t,{...f,signal:v,method:r.toUpperCase(),headers:u.normalize().toJSON(),body:n,duplex:"half",credentials:d});let _=await fetch(h);const O=ii&&(c==="stream"||c==="response");if(ii&&(a||O)){const E={};["status","statusText","headers"].forEach(F=>{E[F]=_[F]});const R=x.toFiniteNumber(_.headers.get("content-length")),[U,Q]=a&&Vs(R,Un(Bs(a),!0))||[];_=new Response(zs(_.body,Js,U,()=>{Q&&Q(),O&&S()},oi),E)}c=c||"text";let w=await zn[x.findKey(zn,c)||"text"](_,e);return!O&&S(),m&&m(),await new Promise((E,R)=>{Il(E,R,{data:w,headers:Ne.from(_.headers),status:_.status,statusText:_.statusText,config:e,request:h})})}catch(_){throw S(),_&&_.name==="TypeError"&&/fetch/i.test(_.message)?Object.assign(new z("Network Error",z.ERR_NETWORK,e,h),{cause:_.cause||_}):z.from(_,_&&_.code,e,h)}}),si={http:Ch,xhr:rm,fetch:cm};x.forEach(si,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Hs=e=>`- ${e}`,um=e=>x.isFunction(e)||e===null||e===!1,Vl={getAdapter:e=>{e=x.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){r=e[i];let s;if(n=r,!um(r)&&(n=si[(s=String(r)).toLowerCase()],n===void 0))throw new z(`Unknown adapter '${s}'`);if(n)break;o[s||"#"+i]=n}if(!n){const i=Object.entries(o).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since :
81
- `+i.map(Hs).join(`
82
- `):" "+Hs(i[0]):"as no adapter specified";throw new z("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:si};function Vo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Tr(null,e)}function Ws(e){return Vo(e),e.headers=Ne.from(e.headers),e.data=Fo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Vl.getAdapter(e.adapter||an.adapter)(e).then(function(n){return Vo(e),n.data=Fo.call(e,e.transformResponse,n),n.headers=Ne.from(n.headers),n},function(n){return Ll(n)||(Vo(e),n&&n.response&&(n.response.data=Fo.call(e,e.transformResponse,n.response),n.response.headers=Ne.from(n.response.headers))),Promise.reject(n)})}const Bl="1.7.4",Ii={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ii[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Gs={};Ii.transitional=function(t,r,n){function o(i,s){return"[Axios v"+Bl+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,a)=>{if(t===!1)throw new z(o(s," has been removed"+(r?" in "+r:"")),z.ERR_DEPRECATED);return r&&!Gs[s]&&(Gs[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,s,a):!0}};function fm(e,t,r){if(typeof e!="object")throw new z("options must be an object",z.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new z("option "+i+" must be "+l,z.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new z("Unknown option "+i,z.ERR_BAD_OPTION)}}const ai={assertOptions:fm,validators:Ii},jt=ai.validators;let zt=class{constructor(t){this.defaults=t,this.interceptors={request:new Ds,response:new Ds}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
83
- `+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Gt(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&ai.assertOptions(n,{silentJSONParsing:jt.transitional(jt.boolean),forcedJSONParsing:jt.transitional(jt.boolean),clarifyTimeoutError:jt.transitional(jt.boolean)},!1),o!=null&&(x.isFunction(o)?r.paramsSerializer={serialize:o}:ai.assertOptions(o,{encode:jt.function,serialize:jt.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&x.merge(i.common,i[r.method]);i&&x.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),r.headers=Ne.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(r)===!1||(l=l&&y.synchronous,a.unshift(y.fulfilled,y.rejected))});const c=[];this.interceptors.response.forEach(function(y){c.push(y.fulfilled,y.rejected)});let u,d=0,f;if(!l){const m=[Ws.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,c),f=m.length,u=Promise.resolve(r);d<f;)u=u.then(m[d++],m[d++]);return u}f=a.length;let v=r;for(d=0;d<f;){const m=a[d++],y=a[d++];try{v=m(v)}catch(h){y.call(this,h);break}}try{u=Ws.call(this,v)}catch(m){return Promise.reject(m)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=Gt(this.defaults,t);const r=Nl(t.baseURL,t.url);return kl(r,t.params,t.paramsSerializer)}};x.forEach(["delete","get","head","options"],function(t){zt.prototype[t]=function(r,n){return this.request(Gt(n||{},{method:t,url:r,data:(n||{}).data}))}});x.forEach(["post","put","patch"],function(t){function r(n){return function(i,s,a){return this.request(Gt(a||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}zt.prototype[t]=r(),zt.prototype[t+"Form"]=r(!0)});let dm=class Ul{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{n.subscribe(a),i=a}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},t(function(i,s,a){n.reason||(n.reason=new Tr(i,s,a),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new Ul(function(o){t=o}),cancel:t}}};function pm(e){return function(r){return e.apply(null,r)}}function gm(e){return x.isObject(e)&&e.isAxiosError===!0}const li={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(li).forEach(([e,t])=>{li[t]=e});function zl(e){const t=new zt(e),r=vl(zt.prototype.request,t);return x.extend(r,zt.prototype,t,{allOwnKeys:!0}),x.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return zl(Gt(e,o))},r}const ve=zl(an);ve.Axios=zt;ve.CanceledError=Tr;ve.CancelToken=dm;ve.isCancel=Ll;ve.VERSION=Bl;ve.toFormData=po;ve.AxiosError=z;ve.Cancel=ve.CanceledError;ve.all=function(t){return Promise.all(t)};ve.spread=pm;ve.isAxiosError=gm;ve.mergeConfig=Gt;ve.AxiosHeaders=Ne;ve.formToJSON=e=>Al(x.isHTMLForm(e)?new FormData(e):e);ve.getAdapter=Vl.getAdapter;ve.HttpStatusCode=li;ve.default=ve;const{Axios:V1,AxiosError:qs,CanceledError:B1,isCancel:U1,CancelToken:z1,VERSION:J1,all:H1,Cancel:W1,isAxiosError:G1,spread:q1,toFormData:K1,AxiosHeaders:Y1,HttpStatusCode:X1,formToJSON:Z1,getAdapter:Q1,mergeConfig:ev}=ve;function hm(e){try{return JSON.stringify(e)}catch{return}}function mm(e){var t,r,n,o;return e instanceof qs&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof qs&&e.response?`${(t=e.response)==null?void 0:t.status} ${(r=e.response)==null?void 0:r.statusText} from ${(n=e.response)==null?void 0:n.config.url}: ${JSON.stringify((o=e.response)==null?void 0:o.data)}`:e instanceof Error?e.message:`Unexpected error: ${hm(e)||e}`}const ho=e=>{const t=e.softTimeout||3e3,[r,n]=H.useState(!1),o=k.useTheme();return H.useEffect(()=>{const i=setTimeout(()=>{n(!0)},t);return()=>clearTimeout(i)}),b.jsx(k.Stack,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",sx:{color:o.palette.text.primary},children:e.error?b.jsx(Jl,{loadingMessage:e.message,error:e.error}):b.jsxs(b.Fragment,{children:[b.jsx(k.CircularProgress,{sx:{marginBottom:"24px"}}),!!e.message&&b.jsx("div",{children:e.message}),b.jsx(k.Stack,{sx:{visibility:r?"visible":"hidden",marginTop:"1rem",color:o.palette.text.secondary},children:"This is taking longer than expected..."})]})})},Jl=e=>{const t=mm(e.error),r=e.error instanceof Error?e.error.stack:null,n=k.useTheme();return b.jsxs(k.Stack,{sx:{maxHeight:"100%",maxWidth:"min(100%, 800px)",padding:2,overflow:"auto",color:n.palette.error.main,"& pre":{whiteSpace:"pre-wrap",wordBreak:"break-word",paddingBottom:"3rem"}},children:[(e.loadingMessage?`Error while ${Wn.lowerFirst(k.capitalize(e.loadingMessage))} - `:"")+t,b.jsx("br",{}),r&&b.jsx("pre",{children:r})]})},ym=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),bm=H.forwardRef(ym),vm=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),xm=H.forwardRef(vm),Sm=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:19,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M9.522 14.811A.899.899 0 1 0 8.25 13.54L6.19 15.601V3.16L8.25 5.221A.9.9 0 0 0 9.522 3.95L5.926.354a.9.9 0 0 0-1.272 0L1.058 3.95a.9.9 0 1 0 1.271 1.271L4.391 3.16v12.442L2.329 13.54a.899.899 0 1 0-1.271 1.271l3.596 3.597a.9.9 0 0 0 1.272 0z",clipRule:"evenodd"})),wm=H.forwardRef(Sm),Tm=({title:e,titleId:t,...r},n)=>N.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{d:"M8 16C5.76667 16 3.875 15.225 2.325 13.675C0.775 12.125 0 10.2333 0 8C0 5.76667 0.775 3.875 2.325 2.325C3.875 0.775 5.76667 0 8 0C9.15 0 10.25 0.2375 11.3 0.7125C12.35 1.1875 13.25 1.86667 14 2.75V0H16V7H9V5H13.2C12.6667 4.06667 11.9375 3.33333 11.0125 2.8C10.0875 2.26667 9.08333 2 8 2C6.33333 2 4.91667 2.58333 3.75 3.75C2.58333 4.91667 2 6.33333 2 8C2 9.66667 2.58333 11.0833 3.75 12.25C4.91667 13.4167 6.33333 14 8 14C9.28333 14 10.4417 13.6333 11.475 12.9C11.0583 14.1 12.5083 12.1667 11.475 12.9L12.9 14.325C11.4667 15.4417 9.83333 16 8 16Z",fill:"white"})),Om=H.forwardRef(Tm),Ks=e=>b.jsx(k.Stack,{position:"absolute",left:0,top:0,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",sx:{backgroundColor:"rgba(0, 0, 0, 0.6)",backdropFilter:"blur(2px)",zIndex:100,...e.sx||{}},...Wn.omit(e,"sx")}),Hl=$e.observer(({store:e,children:t})=>{const{t:r}=Kt.useTranslation(),n=k.useTheme();function o(){var i,s;if(e.activationState==="inactive"&&!e.activationError)return b.jsx(Ks,{sx:{borderRadius:"6px",backgroundColor:`color-mix(in srgb, ${(i=n.palette.backgroundPaperElevation)==null?void 0:i[5]}, transparent)`},children:b.jsx(k.Button,{color:"primary",variant:"contained",onClick:()=>e.activate({manual:!0}),disabled:e.isLocked,children:r("Jogging.Activate.bt")})});if(e.activationState==="loading"||e.activationError)return b.jsx(Ks,{sx:{backgroundColor:`color-mix(in srgb, ${(s=n.palette.backgroundPaperElevation)==null?void 0:s[5]}, transparent)`},children:b.jsx(ho,{message:r("Jogging.Activating.lb"),error:e.activationError})})}return b.jsxs(k.Stack,{sx:{position:"relative",padding:"6px"},children:[o(),t]})});function Em(){this.__data__=[],this.size=0}function Wl(e,t){return e===t||e!==e&&t!==t}function mo(e,t){for(var r=e.length;r--;)if(Wl(e[r][0],t))return r;return-1}var Cm=Array.prototype,Rm=Cm.splice;function _m(e){var t=this.__data__,r=mo(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Rm.call(t,r,1),--this.size,!0}function Pm(e){var t=this.__data__,r=mo(t,e);return r<0?void 0:t[r][1]}function $m(e){return mo(this.__data__,e)>-1}function km(e,t){var r=this.__data__,n=mo(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Et(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Et.prototype.clear=Em;Et.prototype.delete=_m;Et.prototype.get=Pm;Et.prototype.has=$m;Et.prototype.set=km;function jm(){this.__data__=new Et,this.size=0}function Am(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Lm(e){return this.__data__.get(e)}function Im(e){return this.__data__.has(e)}var Nm="[object AsyncFunction]",Mm="[object Function]",Dm="[object GeneratorFunction]",Fm="[object Proxy]";function Gl(e){if(!Ht(e))return!1;var t=Yt(e);return t==Mm||t==Dm||t==Nm||t==Fm}var Bo=mt["__core-js_shared__"],Ys=function(){var e=/[^.]+$/.exec(Bo&&Bo.keys&&Bo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Vm(e){return!!Ys&&Ys in e}var Bm=Function.prototype,Um=Bm.toString;function Xt(e){if(e!=null){try{return Um.call(e)}catch{}try{return e+""}catch{}}return""}var zm=/[\\^$.*+?()[\]{}|]/g,Jm=/^\[object .+?Constructor\]$/,Hm=Function.prototype,Wm=Object.prototype,Gm=Hm.toString,qm=Wm.hasOwnProperty,Km=RegExp("^"+Gm.call(qm).replace(zm,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ym(e){if(!Ht(e)||Vm(e))return!1;var t=Gl(e)?Km:Jm;return t.test(Xt(e))}function Xm(e,t){return e==null?void 0:e[t]}function Zt(e,t){var r=Xm(e,t);return Ym(r)?r:void 0}var Kr=Zt(mt,"Map"),Yr=Zt(Object,"create");function Zm(){this.__data__=Yr?Yr(null):{},this.size=0}function Qm(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ey="__lodash_hash_undefined__",ty=Object.prototype,ry=ty.hasOwnProperty;function ny(e){var t=this.__data__;if(Yr){var r=t[e];return r===ey?void 0:r}return ry.call(t,e)?t[e]:void 0}var oy=Object.prototype,iy=oy.hasOwnProperty;function sy(e){var t=this.__data__;return Yr?t[e]!==void 0:iy.call(t,e)}var ay="__lodash_hash_undefined__";function ly(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Yr&&t===void 0?ay:t,this}function qt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}qt.prototype.clear=Zm;qt.prototype.delete=Qm;qt.prototype.get=ny;qt.prototype.has=sy;qt.prototype.set=ly;function cy(){this.size=0,this.__data__={hash:new qt,map:new(Kr||Et),string:new qt}}function uy(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function yo(e,t){var r=e.__data__;return uy(t)?r[typeof t=="string"?"string":"hash"]:r.map}function fy(e){var t=yo(this,e).delete(e);return this.size-=t?1:0,t}function dy(e){return yo(this,e).get(e)}function py(e){return yo(this,e).has(e)}function gy(e,t){var r=yo(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Ct(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ct.prototype.clear=cy;Ct.prototype.delete=fy;Ct.prototype.get=dy;Ct.prototype.has=py;Ct.prototype.set=gy;var hy=200;function my(e,t){var r=this.__data__;if(r instanceof Et){var n=r.__data__;if(!Kr||n.length<hy-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ct(n)}return r.set(e,t),this.size=r.size,this}function wt(e){var t=this.__data__=new Et(e);this.size=t.size}wt.prototype.clear=jm;wt.prototype.delete=Am;wt.prototype.get=Lm;wt.prototype.has=Im;wt.prototype.set=my;var yy="__lodash_hash_undefined__";function by(e){return this.__data__.set(e,yy),this}function vy(e){return this.__data__.has(e)}function Jn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ct;++t<r;)this.add(e[t])}Jn.prototype.add=Jn.prototype.push=by;Jn.prototype.has=vy;function xy(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function Sy(e,t){return e.has(t)}var wy=1,Ty=2;function ql(e,t,r,n,o,i){var s=r&wy,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,v=r&Ty?new Jn:void 0;for(i.set(e,t),i.set(t,e);++d<a;){var m=e[d],y=t[d];if(n)var h=s?n(y,m,d,t,e,i):n(m,y,d,e,t,i);if(h!==void 0){if(h)continue;f=!1;break}if(v){if(!xy(t,function(S,T){if(!Sy(v,T)&&(m===S||o(m,S,r,n,i)))return v.push(T)})){f=!1;break}}else if(!(m===y||o(m,y,r,n,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var Xs=mt.Uint8Array;function Oy(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function Ey(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Cy=1,Ry=2,_y="[object Boolean]",Py="[object Date]",$y="[object Error]",ky="[object Map]",jy="[object Number]",Ay="[object RegExp]",Ly="[object Set]",Iy="[object String]",Ny="[object Symbol]",My="[object ArrayBuffer]",Dy="[object DataView]",Zs=It?It.prototype:void 0,Uo=Zs?Zs.valueOf:void 0;function Fy(e,t,r,n,o,i,s){switch(r){case Dy:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case My:return!(e.byteLength!=t.byteLength||!i(new Xs(e),new Xs(t)));case _y:case Py:case jy:return Wl(+e,+t);case $y:return e.name==t.name&&e.message==t.message;case Ay:case Iy:return e==t+"";case ky:var a=Oy;case Ly:var l=n&Cy;if(a||(a=Ey),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;n|=Ry,s.set(e,t);var u=ql(a(e),a(t),n,o,i,s);return s.delete(e),u;case Ny:if(Uo)return Uo.call(e)==Uo.call(t)}return!1}function Vy(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var ht=Array.isArray;function By(e,t,r){var n=t(e);return ht(e)?n:Vy(n,r(e))}function Uy(e,t){for(var r=-1,n=e==null?0:e.length,o=0,i=[];++r<n;){var s=e[r];t(s,r,e)&&(i[o++]=s)}return i}function zy(){return[]}var Jy=Object.prototype,Hy=Jy.propertyIsEnumerable,Qs=Object.getOwnPropertySymbols,Wy=Qs?function(e){return e==null?[]:(e=Object(e),Uy(Qs(e),function(t){return Hy.call(e,t)}))}:zy;function Gy(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var qy="[object Arguments]";function ea(e){return Wt(e)&&Yt(e)==qy}var Kl=Object.prototype,Ky=Kl.hasOwnProperty,Yy=Kl.propertyIsEnumerable,Yl=ea(function(){return arguments}())?ea:function(e){return Wt(e)&&Ky.call(e,"callee")&&!Yy.call(e,"callee")};function Xy(){return!1}var Xl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ta=Xl&&typeof module=="object"&&module&&!module.nodeType&&module,Zy=ta&&ta.exports===Xl,ra=Zy?mt.Buffer:void 0,Qy=ra?ra.isBuffer:void 0,ci=Qy||Xy,eb=9007199254740991,tb=/^(?:0|[1-9]\d*)$/;function Zl(e,t){var r=typeof e;return t=t??eb,!!t&&(r=="number"||r!="symbol"&&tb.test(e))&&e>-1&&e%1==0&&e<t}var rb=9007199254740991;function Ni(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=rb}var nb="[object Arguments]",ob="[object Array]",ib="[object Boolean]",sb="[object Date]",ab="[object Error]",lb="[object Function]",cb="[object Map]",ub="[object Number]",fb="[object Object]",db="[object RegExp]",pb="[object Set]",gb="[object String]",hb="[object WeakMap]",mb="[object ArrayBuffer]",yb="[object DataView]",bb="[object Float32Array]",vb="[object Float64Array]",xb="[object Int8Array]",Sb="[object Int16Array]",wb="[object Int32Array]",Tb="[object Uint8Array]",Ob="[object Uint8ClampedArray]",Eb="[object Uint16Array]",Cb="[object Uint32Array]",ce={};ce[bb]=ce[vb]=ce[xb]=ce[Sb]=ce[wb]=ce[Tb]=ce[Ob]=ce[Eb]=ce[Cb]=!0;ce[nb]=ce[ob]=ce[mb]=ce[ib]=ce[yb]=ce[sb]=ce[ab]=ce[lb]=ce[cb]=ce[ub]=ce[fb]=ce[db]=ce[pb]=ce[gb]=ce[hb]=!1;function Rb(e){return Wt(e)&&Ni(e.length)&&!!ce[Yt(e)]}function _b(e){return function(t){return e(t)}}var Ql=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ur=Ql&&typeof module=="object"&&module&&!module.nodeType&&module,Pb=Ur&&Ur.exports===Ql,zo=Pb&&ml.process,na=function(){try{var e=Ur&&Ur.require&&Ur.require("util").types;return e||zo&&zo.binding&&zo.binding("util")}catch{}}(),oa=na&&na.isTypedArray,ec=oa?_b(oa):Rb,$b=Object.prototype,kb=$b.hasOwnProperty;function jb(e,t){var r=ht(e),n=!r&&Yl(e),o=!r&&!n&&ci(e),i=!r&&!n&&!o&&ec(e),s=r||n||o||i,a=s?Gy(e.length,String):[],l=a.length;for(var c in e)kb.call(e,c)&&!(s&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Zl(c,l)))&&a.push(c);return a}var Ab=Object.prototype;function Lb(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Ab;return e===r}function Ib(e,t){return function(r){return e(t(r))}}var Nb=Ib(Object.keys,Object),Mb=Object.prototype,Db=Mb.hasOwnProperty;function Fb(e){if(!Lb(e))return Nb(e);var t=[];for(var r in Object(e))Db.call(e,r)&&r!="constructor"&&t.push(r);return t}function tc(e){return e!=null&&Ni(e.length)&&!Gl(e)}function Mi(e){return tc(e)?jb(e):Fb(e)}function ia(e){return By(e,Mi,Wy)}var Vb=1,Bb=Object.prototype,Ub=Bb.hasOwnProperty;function zb(e,t,r,n,o,i){var s=r&Vb,a=ia(e),l=a.length,c=ia(t),u=c.length;if(l!=u&&!s)return!1;for(var d=l;d--;){var f=a[d];if(!(s?f in t:Ub.call(t,f)))return!1}var v=i.get(e),m=i.get(t);if(v&&m)return v==t&&m==e;var y=!0;i.set(e,t),i.set(t,e);for(var h=s;++d<l;){f=a[d];var S=e[f],T=t[f];if(n)var _=s?n(T,S,f,t,e,i):n(S,T,f,e,t,i);if(!(_===void 0?S===T||o(S,T,r,n,i):_)){y=!1;break}h||(h=f=="constructor")}if(y&&!h){var O=e.constructor,w=t.constructor;O!=w&&"constructor"in e&&"constructor"in t&&!(typeof O=="function"&&O instanceof O&&typeof w=="function"&&w instanceof w)&&(y=!1)}return i.delete(e),i.delete(t),y}var ui=Zt(mt,"DataView"),fi=Zt(mt,"Promise"),di=Zt(mt,"Set"),pi=Zt(mt,"WeakMap"),sa="[object Map]",Jb="[object Object]",aa="[object Promise]",la="[object Set]",ca="[object WeakMap]",ua="[object DataView]",Hb=Xt(ui),Wb=Xt(Kr),Gb=Xt(fi),qb=Xt(di),Kb=Xt(pi),At=Yt;(ui&&At(new ui(new ArrayBuffer(1)))!=ua||Kr&&At(new Kr)!=sa||fi&&At(fi.resolve())!=aa||di&&At(new di)!=la||pi&&At(new pi)!=ca)&&(At=function(e){var t=Yt(e),r=t==Jb?e.constructor:void 0,n=r?Xt(r):"";if(n)switch(n){case Hb:return ua;case Wb:return sa;case Gb:return aa;case qb:return la;case Kb:return ca}return t});var Yb=1,fa="[object Arguments]",da="[object Array]",hn="[object Object]",Xb=Object.prototype,pa=Xb.hasOwnProperty;function Zb(e,t,r,n,o,i){var s=ht(e),a=ht(t),l=s?da:At(e),c=a?da:At(t);l=l==fa?hn:l,c=c==fa?hn:c;var u=l==hn,d=c==hn,f=l==c;if(f&&ci(e)){if(!ci(t))return!1;s=!0,u=!1}if(f&&!u)return i||(i=new wt),s||ec(e)?ql(e,t,r,n,o,i):Fy(e,t,l,r,n,o,i);if(!(r&Yb)){var v=u&&pa.call(e,"__wrapped__"),m=d&&pa.call(t,"__wrapped__");if(v||m){var y=v?e.value():e,h=m?t.value():t;return i||(i=new wt),o(y,h,r,n,i)}}return f?(i||(i=new wt),zb(e,t,r,n,o,i)):!1}function bo(e,t,r,n,o){return e===t?!0:e==null||t==null||!Wt(e)&&!Wt(t)?e!==e&&t!==t:Zb(e,t,r,n,bo,o)}function Qb(e,t){return bo(e,t)}const rc=({store:e})=>{const{t}=Kt.useTranslation(),[r,n]=H.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached),o=H.useRef(r);Sr(()=>{const s=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;Qb(o.current,s)||(o.current=s,n(s))});const i=[];for(const[s,a]of r.entries())a&&i.push(s);return i.length===0?null:b.jsx(k.Typography,{color:"error",sx:{margin:"0.5rem 1rem",textAlign:"center",visibility:i.length?"visible":"collapse"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:i.map(s=>s+1).join(", ")})})},e0=k.styled(k.FormControl)(({theme:e})=>({"&.MuiFormControl-root":{".MuiSelect-select":{paddingTop:"20px",paddingLeft:"12px"},label:{pointerEvents:"none",fontSize:"16px"},".MuiInputLabel-root":{"&.Mui-focused":{color:e.palette.text.primary}}}}));function mn({labelValue:e,...t}){return b.jsxs(e0,{fullWidth:!0,variant:"filled",children:[b.jsx(k.InputLabel,{id:t.labelId,children:e}),b.jsx(k.Select,{...t})]})}var ga=function(){try{var e=Zt(Object,"defineProperty");return e({},"",{}),e}catch{}}();function t0(e,t,r){t=="__proto__"&&ga?ga(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function r0(e,t,r,n){for(var o=-1,i=e==null?0:e.length;++o<i;){var s=e[o];t(n,s,r(s),e)}return n}function n0(e){return function(t,r,n){for(var o=-1,i=Object(t),s=n(t),a=s.length;a--;){var l=s[++o];if(r(i[l],l,i)===!1)break}return t}}var o0=n0();function i0(e,t){return e&&o0(e,t,Mi)}function s0(e,t){return function(r,n){if(r==null)return r;if(!tc(r))return e(r,n);for(var o=r.length,i=-1,s=Object(r);++i<o&&n(s[i],i,s)!==!1;);return r}}var a0=s0(i0);function l0(e,t,r,n){return a0(e,function(o,i,s){t(n,o,r(o),s)}),n}var c0=1,u0=2;function f0(e,t,r,n){var o=r.length,i=o;if(e==null)return!i;for(e=Object(e);o--;){var s=r[o];if(s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){s=r[o];var a=s[0],l=e[a],c=s[1];if(s[2]){if(l===void 0&&!(a in e))return!1}else{var u=new wt,d;if(!(d===void 0?bo(c,l,c0|u0,n,u):d))return!1}}return!0}function nc(e){return e===e&&!Ht(e)}function d0(e){for(var t=Mi(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,nc(o)]}return t}function oc(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function p0(e){var t=d0(e);return t.length==1&&t[0][2]?oc(t[0][0],t[0][1]):function(r){return r===e||f0(r,e,t)}}var g0=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,h0=/^\w*$/;function Di(e,t){if(ht(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||lo(e)?!0:h0.test(e)||!g0.test(e)||t!=null&&e in Object(t)}var m0="Expected a function";function Fi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(m0);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(Fi.Cache||Ct),r}Fi.Cache=Ct;var y0=500;function b0(e){var t=Fi(e,function(n){return r.size===y0&&r.clear(),n}),r=t.cache;return t}var v0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,x0=/\\(\\)?/g,S0=b0(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(v0,function(r,n,o,i){t.push(o?i.replace(x0,"$1"):n||r)}),t});function w0(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var T0=1/0,ha=It?It.prototype:void 0,ma=ha?ha.toString:void 0;function ic(e){if(typeof e=="string")return e;if(ht(e))return w0(e,ic)+"";if(lo(e))return ma?ma.call(e):"";var t=e+"";return t=="0"&&1/e==-T0?"-0":t}function sc(e){return e==null?"":ic(e)}function ac(e,t){return ht(e)?e:Di(e,t)?[e]:S0(sc(e))}var O0=1/0;function vo(e){if(typeof e=="string"||lo(e))return e;var t=e+"";return t=="0"&&1/e==-O0?"-0":t}function lc(e,t){t=ac(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[vo(t[r++])];return r&&r==n?e:void 0}function E0(e,t,r){var n=e==null?void 0:lc(e,t);return n===void 0?r:n}function C0(e,t){return e!=null&&t in Object(e)}function R0(e,t,r){t=ac(t,e);for(var n=-1,o=t.length,i=!1;++n<o;){var s=vo(t[n]);if(!(i=e!=null&&r(e,s)))break;e=e[s]}return i||++n!=o?i:(o=e==null?0:e.length,!!o&&Ni(o)&&Zl(s,o)&&(ht(e)||Yl(e)))}function _0(e,t){return e!=null&&R0(e,t,C0)}var P0=1,$0=2;function k0(e,t){return Di(e)&&nc(t)?oc(vo(e),t):function(r){var n=E0(r,e);return n===void 0&&n===t?_0(r,e):bo(t,n,P0|$0)}}function j0(e){return e}function A0(e){return function(t){return t==null?void 0:t[e]}}function L0(e){return function(t){return lc(t,e)}}function I0(e){return Di(e)?A0(vo(e)):L0(e)}function N0(e){return typeof e=="function"?e:e==null?j0:typeof e=="object"?ht(e)?k0(e[0],e[1]):p0(e):I0(e)}function M0(e,t){return function(r,n){var o=ht(r)?r0:l0,i={};return o(r,e,N0(n),i)}}var yn=M0(function(e,t,r){t0(e,r,t)}),D0=0;function F0(e){var t=++D0;return sc(e)+t}const gi=[{id:"0.1",mm:.1,degrees:.05},{id:"1",mm:1,degrees:.5},{id:"5",mm:5,degrees:2.5},{id:"10",mm:10,degrees:5}],V0=[{id:"continuous"},...gi],B0=["coordsys","tool"];class Vi{constructor(t,r,n,o){var i,s;this.jogger=t,this.motionGroupSpec=r,this.coordSystems=n,this.tcps=o,this.selectedTabId="cartesian",this.manualActivationRequired=!0,this.activationState="inactive",this.activationError=null,this.activationCounter=0,this.locks=new Set,this.selectedCoordSystemId="world",this.selectedTcpId="",this.selectedOrientation="coordsys",this.selectedIncrementId="continuous",this.selectedCartesianMotionType="translate",this.incrementJogInProgress=null,this.translationVelocityMmPerSec=10,this.rotationVelocityDegPerSec=1,this.minTranslationVelocityMmPerSec=5,this.maxTranslationVelocityMmPerSec=250,this.minRotationVelocityDegPerSec=1,this.maxRotationVelocityDegPerSec=60,this.disposers=[];for(const a of n)if(a.coordinate_system===""){a.coordinate_system="world";break}this.selectedCoordSystemId=((i=n[0])==null?void 0:i.coordinate_system)||"world",this.selectedTcpId=((s=o[0])==null?void 0:s.id)||"",ut.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(ut.autorun(()=>this.saveToLocalStorage())),window.joggingStore=this}static async loadFor(t){const{nova:r}=t,[n,{coordinatesystems:o},{tcps:i}]=await Promise.all([r.api.motionGroupInfos.getMotionGroupSpecification(t.motionGroupId),r.api.coordinateSystems.listCoordinateSystems("ROTATION_VECTOR"),r.api.motionGroupInfos.listTcps(t.motionGroupId,"ROTATION_VECTOR")]);return new Vi(t,n,o||[],i||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}get coordSystemCountByName(){return Wn.countBy(this.coordSystems,t=>t.name)}async deactivate(t={}){if(this.activationState==="inactive")return;const r=this.jogger.activeWebsocket;this.activationState="inactive",this.jogger.setJoggingMode("increment"),r&&await r.closed();try{await this.jogger.nova.api.motionGroupJogging.stopJogging(this.jogger.motionGroupId)}catch(n){console.error(n)}t.requireManualReactivation&&ut.runInAction(()=>{this.manualActivationRequired=!0})}async activate(t={}){if(!(this.manualActivationRequired&&!t.manual)){ut.runInAction(()=>{this.activationState="loading",this.activationError=null});try{await this.jogger.nova.api.controller.setDefaultMode(this.jogger.motionStream.controllerId,"MODE_CONTROL")}catch(r){console.error(r)}if(this.currentTab.id==="cartesian"){const r={tcpId:this.selectedTcpId,coordSystemId:this.activeCoordSystemId};this.activeDiscreteIncrement?this.jogger.setJoggingMode("increment",r):this.jogger.setJoggingMode("cartesian",r)}else this.jogger.setJoggingMode("joint");if(this.jogger.activeWebsocket)try{this.jogger.stop(),await this.jogger.activeWebsocket.nextMessage()}catch(r){ut.runInAction(()=>{this.activationState="inactive",this.activationError=r});return}ut.runInAction(()=>{this.activationState="active",t.manual&&(this.manualActivationRequired=!1)})}}loadFromLocalStorage(){const t=Lt.tryParseJson(localStorage.getItem("joggingToolStore"));t&&(this.tabsById[t.selectedTabId]&&(this.selectedTabId=t.selectedTabId),this.coordSystemsById[t.selectedCoordSystemId]&&(this.selectedCoordSystemId=t.selectedCoordSystemId),this.tcpsById[t.selectedTcpId]&&(this.selectedTcpId=t.selectedTcpId),this.incrementOptionsById[t.selectedIncrementId]&&(this.selectedIncrementId=t.selectedIncrementId),["translate","rotate"].includes(t.selectedCartesianMotionType)&&(this.selectedCartesianMotionType=t.selectedCartesianMotionType),["coordsys","tool"].includes(t.selectedOrientation)&&(this.selectedOrientation=t.selectedOrientation))}saveToLocalStorage(){localStorage.setItem("joggingToolStore",JSON.stringify(this.localStorageSave))}get isLocked(){return this.locks.size>0}get localStorageSave(){return{selectedTabId:this.selectedTabId,selectedCoordSystemId:this.selectedCoordSystemId,selectedTcpId:this.selectedTcpId,selectedOrientation:this.selectedOrientation,selectedIncrementId:this.selectedIncrementId,selectedCartesianMotionType:this.selectedCartesianMotionType}}get tabs(){return[{id:"cartesian",label:"Cartesian"},{id:"joint",label:"Joint"}]}get incrementOptions(){return V0}get discreteIncrementOptions(){return gi}get incrementOptionsById(){return yn(this.incrementOptions,t=>t.id)}get tabsById(){return yn(this.tabs,t=>t.id)}get currentTab(){return this.tabsById[this.selectedTabId]||this.tabs[0]}get tabIndex(){return this.tabs.indexOf(this.currentTab)}get coordSystemsById(){return yn(this.coordSystems,t=>t.coordinate_system)}get selectedCoordSystem(){return this.coordSystemsById[this.selectedCoordSystemId]}get activeCoordSystemId(){return this.selectedOrientation==="tool"?"tool":this.selectedCoordSystemId}get tcpsById(){return yn(this.tcps,t=>t.id)}get activeDiscreteIncrement(){return this.selectedOrientation==="tool"?void 0:gi.find(t=>t.id===this.selectedIncrementId)}get rotationVelocityRadsPerSec(){return this.rotationVelocityDegPerSec*Math.PI/180}get velocityInCurrentUnits(){return this.currentMotionType==="translate"?this.translationVelocityMmPerSec:this.rotationVelocityDegPerSec}get minVelocityInCurrentUnits(){return this.currentMotionType==="translate"?this.minTranslationVelocityMmPerSec:this.minRotationVelocityDegPerSec}get maxVelocityInCurrentUnits(){return this.currentMotionType==="translate"?this.maxTranslationVelocityMmPerSec:this.maxRotationVelocityDegPerSec}get currentMotionType(){return this.selectedTabId==="cartesian"&&this.selectedCartesianMotionType==="translate"?"translate":"rotate"}onTabChange(t,r){const n=this.tabs[r]||this.tabs[0];this.selectedTabId=n.id}setSelectedCoordSystemId(t){this.selectedCoordSystemId=t}setSelectedTcpId(t){this.selectedTcpId=t}setSelectedOrientation(t){this.selectedOrientation=t}setSelectedIncrementId(t){this.selectedIncrementId=t}setCurrentIncrementJog(t){this.incrementJogInProgress=t}setVelocityFromSlider(t){this.currentMotionType==="translate"?this.translationVelocityMmPerSec=t:this.rotationVelocityDegPerSec=t}setSelectedCartesianMotionType(t){this.selectedCartesianMotionType=t}async withMotionLock(t){const r=F0();this.locks.add(r);try{return await t()}finally{this.locks.delete(r)}}}const U0=$e.observer(({store:e})=>{var n;const{t}=Kt.useTranslation();function r(o){switch(o){case"coordsys":return t("Jogging.Orientation.coordsys");case"tool":return t("Jogging.Orientation.tool");default:return o}}return b.jsxs(k.Box,{sx:{display:"grid",gap:"16px",gridTemplateColumns:"1fr 1fr",gridTemplateRows:"min-height min-height","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[b.jsx(mn,{labelId:"jogging-coord-select",labelValue:"Coordinate Sys.",value:e.selectedCoordSystemId,size:"small",variant:"filled",displayEmpty:!0,onChange:o=>{e.setSelectedCoordSystemId(o.target.value)},disabled:e.isLocked,children:e.coordSystems.map(o=>b.jsx(k.MenuItem,{value:o.coordinate_system,children:o.name&&e.coordSystemCountByName[o.name]>1?`${o.name} / ${o.coordinate_system}`:o.name||o.coordinate_system},o.coordinate_system))}),b.jsx(mn,{labelId:"jogging-tcp-select",labelValue:"TCP",value:e.selectedTcpId,size:"small",variant:"filled",onChange:o=>{e.setSelectedTcpId(o.target.value)},disabled:e.isLocked,children:e.tcps.map(o=>b.jsx(k.MenuItem,{value:o.id,children:o.id},o.id))}),b.jsx(mn,{labelValue:t("Jogging.Cartesian.Orientation.lb"),id:"orientation-select",labelId:"orientation-select",value:e.selectedOrientation,onChange:o=>{e.setSelectedOrientation(o.target.value)},disabled:e.isLocked,children:B0.map(o=>b.jsx(k.MenuItem,{value:o,children:r(o)},o))}),b.jsxs(mn,{labelValue:"Increment",labelId:"jogging-increment-select",size:"small",variant:"filled",value:((n=e.activeDiscreteIncrement)==null?void 0:n.id)||"continuous",onChange:o=>{e.setSelectedIncrementId(o.target.value)},disabled:e.isLocked,children:[b.jsx(k.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.selectedOrientation==="tool"?null:e.discreteIncrementOptions.map(o=>b.jsx(k.MenuItem,{value:o.id,children:e.currentMotionType==="translate"?`${o.mm}mm`:`${o.degrees}°`},o.id))]})]})}),z0=k.styled(k.ToggleButtonGroup)(({theme:e})=>{var t;return{"&.MuiToggleButtonGroup-root":{background:(t=e.palette.backgroundPaperElevation)==null?void 0:t[8],borderRadius:"8px",padding:"4px",gap:"4px",button:{border:"none",borderRadius:"4px",flex:"1 1 0px",minWidth:0,"&.MuiToggleButtonGroup-firstButton":{borderRadius:"8px 4px 4px 8px"},"&.MuiToggleButtonGroup-lastButton":{borderRadius:"4px 8px 8px 4px"}}}}});function J0(e,t,r=(n,o)=>n===o){return e.length===t.length&&e.every((n,o)=>r(n,t[o]))}const H0=2;function cc(e,t){return e-t}function ya(e,t){var r;const{index:n}=(r=e.reduce((o,i,s)=>{const a=Math.abs(t-i);return o===null||a<o.distance||a===o.distance?{distance:a,index:s}:o},null))!=null?r:{};return n}function bn(e,t){if(t.current!==void 0&&e.changedTouches){const r=e;for(let n=0;n<r.changedTouches.length;n+=1){const o=r.changedTouches[n];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Hn(e,t,r){return(e-t)*100/(r-t)}function W0(e,t,r){return(r-t)*e+t}function G0(e){if(Math.abs(e)<1){const r=e.toExponential().split("e-"),n=r[0].split(".")[1];return(n?n.length:0)+parseInt(r[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function q0(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(G0(t)))}function ba({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(cc)}function vn({sliderRef:e,activeIndex:t,setActive:r}){var n,o;const i=hr(e.current);if(!((n=e.current)!=null&&n.contains(i.activeElement))||Number(i==null||(o=i.activeElement)==null?void 0:o.getAttribute("data-index"))!==t){var s;(s=e.current)==null||s.querySelector(`[type="range"][data-index="${t}"]`).focus()}r&&r(t)}function xn(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?J0(e,t):!1}const K0={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Y0=e=>e;let Sn;function va(){return Sn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Sn=CSS.supports("touch-action","none"):Sn=!0),Sn}function X0(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:i=!1,marks:s=!1,max:a=100,min:l=0,name:c,onChange:u,onChangeCommitted:d,orientation:f="horizontal",rootRef:v,scale:m=Y0,step:y=1,shiftStep:h=10,tabIndex:S,value:T}=e,_=N.useRef(),[O,w]=N.useState(-1),[E,R]=N.useState(-1),[U,Q]=N.useState(!1),F=N.useRef(0),[M,W]=Za({controlled:T,default:r??l,name:"Slider"}),G=u&&(($,L,D)=>{const q=$.nativeEvent||$,Z=new q.constructor(q.type,q);Object.defineProperty(Z,"target",{writable:!0,value:{value:L,name:c}}),u(Z,L,D)}),X=Array.isArray(M);let Y=X?M.slice().sort(cc):[M];Y=Y.map($=>$==null?l:fr($,l,a));const xe=s===!0&&y!==null?[...Array(Math.floor((a-l)/y)+1)].map(($,L)=>({value:l+y*L})):s||[],le=xe.map($=>$.value),{isFocusVisibleRef:ee,onBlur:Te,onFocus:ke,ref:tt}=Qa(),[yt,He]=N.useState(-1),Se=N.useRef(),Rt=In(tt,Se),st=In(v,Rt),We=$=>L=>{var D;const q=Number(L.currentTarget.getAttribute("data-index"));ke(L),ee.current===!0&&He(q),R(q),$==null||(D=$.onFocus)==null||D.call($,L)},Fe=$=>L=>{var D;Te(L),ee.current===!1&&He(-1),R(-1),$==null||(D=$.onBlur)==null||D.call($,L)},at=($,L)=>{const D=Number($.currentTarget.getAttribute("data-index")),q=Y[D],Z=le.indexOf(q);let K=L;if(xe&&y==null){const Be=le[le.length-1];K>Be?K=Be:K<le[0]?K=le[0]:K=K<q?le[Z-1]:le[Z+1]}if(K=fr(K,l,a),X){o&&(K=fr(K,Y[D-1]||-1/0,Y[D+1]||1/0));const Be=K;K=ba({values:Y,newValue:K,index:D});let Ge=D;o||(Ge=K.indexOf(Be)),vn({sliderRef:Se,activeIndex:Ge})}W(K),He(D),G&&!xn(K,M)&&G($,K,D),d&&d($,K)},lt=$=>L=>{var D;if(y!==null){const q=Number(L.currentTarget.getAttribute("data-index")),Z=Y[q];let K=null;(L.key==="ArrowLeft"||L.key==="ArrowDown")&&L.shiftKey||L.key==="PageDown"?K=Math.max(Z-h,l):((L.key==="ArrowRight"||L.key==="ArrowUp")&&L.shiftKey||L.key==="PageUp")&&(K=Math.min(Z+h,a)),K!==null&&(at(L,K),L.preventDefault())}$==null||(D=$.onKeyDown)==null||D.call($,L)};Si(()=>{if(n&&Se.current.contains(document.activeElement)){var $;($=document.activeElement)==null||$.blur()}},[n]),n&&O!==-1&&w(-1),n&&yt!==-1&&He(-1);const Mt=$=>L=>{var D;(D=$.onChange)==null||D.call($,L),at(L,L.target.valueAsNumber)},bt=N.useRef();let Ve=f;i&&f==="horizontal"&&(Ve+="-reverse");const j=({finger:$,move:L=!1})=>{const{current:D}=Se,{width:q,height:Z,bottom:K,left:Be}=D.getBoundingClientRect();let Ge;Ve.indexOf("vertical")===0?Ge=(K-$.y)/Z:Ge=($.x-Be)/q,Ve.indexOf("-reverse")!==-1&&(Ge=1-Ge);let re;if(re=W0(Ge,l,a),y)re=q0(re,y,l);else{const $t=ya(le,re);re=le[$t]}re=fr(re,l,a);let Le=0;if(X){L?Le=bt.current:Le=ya(Y,re),o&&(re=fr(re,Y[Le-1]||-1/0,Y[Le+1]||1/0));const $t=re;re=ba({values:Y,newValue:re,index:Le}),o&&L||(Le=re.indexOf($t),bt.current=Le)}return{newValue:re,activeIndex:Le}},te=Cn($=>{const L=bn($,_);if(!L)return;if(F.current+=1,$.type==="mousemove"&&$.buttons===0){fe($);return}const{newValue:D,activeIndex:q}=j({finger:L,move:!0});vn({sliderRef:Se,activeIndex:q,setActive:w}),W(D),!U&&F.current>H0&&Q(!0),G&&!xn(D,M)&&G($,D,q)}),fe=Cn($=>{const L=bn($,_);if(Q(!1),!L)return;const{newValue:D}=j({finger:L,move:!0});w(-1),$.type==="touchend"&&R(-1),d&&d($,D),_.current=void 0,Ae()}),je=Cn($=>{if(n)return;va()||$.preventDefault();const L=$.changedTouches[0];L!=null&&(_.current=L.identifier);const D=bn($,_);if(D!==!1){const{newValue:Z,activeIndex:K}=j({finger:D});vn({sliderRef:Se,activeIndex:K,setActive:w}),W(Z),G&&!xn(Z,M)&&G($,Z,K)}F.current=0;const q=hr(Se.current);q.addEventListener("touchmove",te,{passive:!0}),q.addEventListener("touchend",fe,{passive:!0})}),Ae=N.useCallback(()=>{const $=hr(Se.current);$.removeEventListener("mousemove",te),$.removeEventListener("mouseup",fe),$.removeEventListener("touchmove",te),$.removeEventListener("touchend",fe)},[fe,te]);N.useEffect(()=>{const{current:$}=Se;return $.addEventListener("touchstart",je,{passive:va()}),()=>{$.removeEventListener("touchstart",je),Ae()}},[Ae,je]),N.useEffect(()=>{n&&Ae()},[n,Ae]);const _t=$=>L=>{var D;if((D=$.onMouseDown)==null||D.call($,L),n||L.defaultPrevented||L.button!==0)return;L.preventDefault();const q=bn(L,_);if(q!==!1){const{newValue:K,activeIndex:Be}=j({finger:q});vn({sliderRef:Se,activeIndex:Be,setActive:w}),W(K),G&&!xn(K,M)&&G(L,K,Be)}F.current=0;const Z=hr(Se.current);Z.addEventListener("mousemove",te,{passive:!0}),Z.addEventListener("mouseup",fe)},we=Hn(X?Y[0]:l,l,a),Pt=Hn(Y[Y.length-1],l,a)-we,Dt=($={})=>{const L=Rn($),D={onMouseDown:_t(L||{})},q=P({},L,D);return P({},$,{ref:st},q)},Or=$=>L=>{var D;(D=$.onMouseOver)==null||D.call($,L);const q=Number(L.currentTarget.getAttribute("data-index"));R(q)},Er=$=>L=>{var D;(D=$.onMouseLeave)==null||D.call($,L),R(-1)};return{active:O,axis:Ve,axisProps:K0,dragging:U,focusedThumbIndex:yt,getHiddenInputProps:($={})=>{var L;const D=Rn($),q={onChange:Mt(D||{}),onFocus:We(D||{}),onBlur:Fe(D||{}),onKeyDown:lt(D||{})},Z=P({},D,q);return P({tabIndex:S,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":m(a),"aria-valuemin":m(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(L=e.step)!=null?L:void 0,disabled:n},$,Z,{style:P({},td,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Dt,getThumbProps:($={})=>{const L=Rn($),D={onMouseOver:Or(L||{}),onMouseLeave:Er(L||{})};return P({},$,L,D)},marks:xe,open:E,range:X,rootRef:st,trackLeap:Pt,trackOffset:we,values:Y,getThumbStyle:$=>({pointerEvents:O!==-1&&O!==$?"none":void 0})}}const Z0=e=>!e||!Vr(e);function Q0(e){return rn("MuiSlider",e)}const Xe=Ga("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),e1=e=>{const{open:t}=e;return{offset:gt(t&&Xe.valueLabelOpen),circle:Xe.valueLabelCircle,label:Xe.valueLabelLabel}};function uc(e){const{children:t,className:r,value:n}=e,o=e1(e);return t?N.cloneElement(t,{className:gt(t.props.className)},b.jsxs(N.Fragment,{children:[t.props.children,b.jsx("span",{className:gt(o.offset,r),"aria-hidden":!0,children:b.jsx("span",{className:o.circle,children:b.jsx("span",{className:o.label,children:n})})})]})):null}process.env.NODE_ENV!=="production"&&(uc.propTypes={children:p.element.isRequired,className:p.string,value:p.node});const t1=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function xa(e){return e}const r1=Ot("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Ee(r.color)}`],r.size!=="medium"&&t[`size${Ee(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Xe.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Xe.dragging}`]:{[`& .${Xe.thumb}, & .${Xe.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),n1=Ot("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),o1=Ot("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r,track:"inverted"},style:P({},e.vars?{backgroundColor:e.vars.palette.Slider[`${r}Track`],borderColor:e.vars.palette.Slider[`${r}Track`]}:P({backgroundColor:Qo(e.palette[r].main,.62),borderColor:Qo(e.palette[r].main,.62)},e.applyStyles("dark",{backgroundColor:Zo(e.palette[r].main,.5)}),e.applyStyles("dark",{borderColor:Zo(e.palette[r].main,.5)})))}))]}}),i1=Ot("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${Ee(r.color)}`],r.size!=="medium"&&t[`thumbSize${Ee(r.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Xe.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{[`&:hover, &.${Xe.focusVisible}`]:P({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${fs(e.palette[r].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${Xe.active}`]:P({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${fs(e.palette[r].main,.16)}`})}}))]}}),s1=Ot(uc,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>P({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Xe.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Xe.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),a1=Ot("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Ri(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),l1=Ot("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Ri(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>P({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),c1=e=>{const{disabled:t,dragging:r,marked:n,orientation:o,track:i,classes:s,color:a,size:l}=e,c={root:["root",t&&"disabled",r&&"dragging",n&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",a&&`color${Ee(a)}`,l&&`size${Ee(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${Ee(l)}`,a&&`thumbColor${Ee(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Ti(c,Q0,s)},u1=({children:e})=>e,fc=N.forwardRef(function(t,r){var n,o,i,s,a,l,c,u,d,f,v,m,y,h,S,T,_,O,w,E,R,U,Q,F;const M=_i({props:t,name:"MuiSlider"}),W=ad(),{"aria-label":G,"aria-valuetext":X,"aria-labelledby":Y,component:xe="span",components:le={},componentsProps:ee={},color:Te="primary",classes:ke,className:tt,disableSwap:yt=!1,disabled:He=!1,getAriaLabel:Se,getAriaValueText:Rt,marks:st=!1,max:We=100,min:Fe=0,orientation:at="horizontal",shiftStep:lt=10,size:Mt="medium",step:bt=1,scale:Ve=xa,slotProps:j,slots:te,track:fe="normal",valueLabelDisplay:je="off",valueLabelFormat:Ae=xa}=M,_t=De(M,t1),we=P({},M,{isRtl:W,max:We,min:Fe,classes:ke,disabled:He,disableSwap:yt,orientation:at,marks:st,color:Te,size:Mt,step:bt,shiftStep:lt,scale:Ve,track:fe,valueLabelDisplay:je,valueLabelFormat:Ae}),{axisProps:Pt,getRootProps:Dt,getHiddenInputProps:Or,getThumbProps:Er,open:Cr,active:Qt,axis:rt,focusedThumbIndex:$,range:L,dragging:D,marks:q,values:Z,trackOffset:K,trackLeap:Be,getThumbStyle:Ge}=X0(P({},we,{rootRef:r}));we.marked=q.length>0&&q.some(I=>I.label),we.dragging=D,we.focusedThumbIndex=$;const re=c1(we),Le=(n=(o=te==null?void 0:te.root)!=null?o:le.Root)!=null?n:r1,$t=(i=(s=te==null?void 0:te.rail)!=null?s:le.Rail)!=null?i:n1,er=(a=(l=te==null?void 0:te.track)!=null?l:le.Track)!=null?a:o1,Rr=(c=(u=te==null?void 0:te.thumb)!=null?u:le.Thumb)!=null?c:i1,vt=(d=(f=te==null?void 0:te.valueLabel)!=null?f:le.ValueLabel)!=null?d:s1,Ft=(v=(m=te==null?void 0:te.mark)!=null?m:le.Mark)!=null?v:a1,Vt=(y=(h=te==null?void 0:te.markLabel)!=null?h:le.MarkLabel)!=null?y:l1,_r=(S=(T=te==null?void 0:te.input)!=null?T:le.Input)!=null?S:"input",Pr=(_=j==null?void 0:j.root)!=null?_:ee.root,ln=(O=j==null?void 0:j.rail)!=null?O:ee.rail,$r=(w=j==null?void 0:j.track)!=null?w:ee.track,tr=(E=j==null?void 0:j.thumb)!=null?E:ee.thumb,rr=(R=j==null?void 0:j.valueLabel)!=null?R:ee.valueLabel,xo=(U=j==null?void 0:j.mark)!=null?U:ee.mark,So=(Q=j==null?void 0:j.markLabel)!=null?Q:ee.markLabel,cn=(F=j==null?void 0:j.input)!=null?F:ee.input,un=kt({elementType:Le,getSlotProps:Dt,externalSlotProps:Pr,externalForwardedProps:_t,additionalProps:P({},Z0(Le)&&{as:xe}),ownerState:P({},we,Pr==null?void 0:Pr.ownerState),className:[re.root,tt]}),wo=kt({elementType:$t,externalSlotProps:ln,ownerState:we,className:re.rail}),To=kt({elementType:er,externalSlotProps:$r,additionalProps:{style:P({},Pt[rt].offset(K),Pt[rt].leap(Be))},ownerState:P({},we,$r==null?void 0:$r.ownerState),className:re.track}),kr=kt({elementType:Rr,getSlotProps:Er,externalSlotProps:tr,ownerState:P({},we,tr==null?void 0:tr.ownerState),className:re.thumb}),Oo=kt({elementType:vt,externalSlotProps:rr,ownerState:P({},we,rr==null?void 0:rr.ownerState),className:re.valueLabel}),g=kt({elementType:Ft,externalSlotProps:xo,ownerState:we,className:re.mark}),C=kt({elementType:Vt,externalSlotProps:So,ownerState:we,className:re.markLabel}),A=kt({elementType:_r,getSlotProps:Or,externalSlotProps:cn,ownerState:we});return b.jsxs(Le,P({},un,{children:[b.jsx($t,P({},wo)),b.jsx(er,P({},To)),q.filter(I=>I.value>=Fe&&I.value<=We).map((I,V)=>{const ne=Hn(I.value,Fe,We),J=Pt[rt].offset(ne);let B;return fe===!1?B=Z.indexOf(I.value)!==-1:B=fe==="normal"&&(L?I.value>=Z[0]&&I.value<=Z[Z.length-1]:I.value<=Z[0])||fe==="inverted"&&(L?I.value<=Z[0]||I.value>=Z[Z.length-1]:I.value>=Z[0]),b.jsxs(N.Fragment,{children:[b.jsx(Ft,P({"data-index":V},g,!Vr(Ft)&&{markActive:B},{style:P({},J,g.style),className:gt(g.className,B&&re.markActive)})),I.label!=null?b.jsx(Vt,P({"aria-hidden":!0,"data-index":V},C,!Vr(Vt)&&{markLabelActive:B},{style:P({},J,C.style),className:gt(re.markLabel,C.className,B&&re.markLabelActive),children:I.label})):null]},V)}),Z.map((I,V)=>{const ne=Hn(I,Fe,We),J=Pt[rt].offset(ne),B=je==="off"?u1:vt;return b.jsx(B,P({},!Vr(B)&&{valueLabelFormat:Ae,valueLabelDisplay:je,value:typeof Ae=="function"?Ae(Ve(I),V):Ae,index:V,open:Cr===V||Qt===V||je==="on",disabled:He},Oo,{children:b.jsx(Rr,P({"data-index":V},kr,{className:gt(re.thumb,kr.className,Qt===V&&re.active,$===V&&re.focusVisible),style:P({},J,Ge(V),kr.style),children:b.jsx(_r,P({"data-index":V,"aria-label":Se?Se(V):G,"aria-valuenow":Ve(I),"aria-labelledby":Y,"aria-valuetext":Rt?Rt(Ve(I),V):X,value:Z[V]},A))}))}),V)})]}))});process.env.NODE_ENV!=="production"&&(fc.propTypes={"aria-label":ns(p.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":p.string,"aria-valuetext":ns(p.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["primary","secondary","error","info","success","warning"]),p.string]),components:p.shape({Input:p.elementType,Mark:p.elementType,MarkLabel:p.elementType,Rail:p.elementType,Root:p.elementType,Thumb:p.elementType,Track:p.elementType,ValueLabel:p.elementType}),componentsProps:p.shape({input:p.oneOfType([p.func,p.object]),mark:p.oneOfType([p.func,p.object]),markLabel:p.oneOfType([p.func,p.object]),rail:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),thumb:p.oneOfType([p.func,p.object]),track:p.oneOfType([p.func,p.object]),valueLabel:p.oneOfType([p.func,p.shape({children:p.element,className:p.string,open:p.bool,style:p.object,value:p.number,valueLabelDisplay:p.oneOf(["auto","off","on"])})])}),defaultValue:p.oneOfType([p.arrayOf(p.number),p.number]),disabled:p.bool,disableSwap:p.bool,getAriaLabel:p.func,getAriaValueText:p.func,marks:p.oneOfType([p.arrayOf(p.shape({label:p.node,value:p.number.isRequired})),p.bool]),max:p.number,min:p.number,name:p.string,onChange:p.func,onChangeCommitted:p.func,orientation:p.oneOf(["horizontal","vertical"]),scale:p.func,shiftStep:p.number,size:p.oneOfType([p.oneOf(["small","medium"]),p.string]),slotProps:p.shape({input:p.oneOfType([p.func,p.object]),mark:p.oneOfType([p.func,p.object]),markLabel:p.oneOfType([p.func,p.object]),rail:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),thumb:p.oneOfType([p.func,p.object]),track:p.oneOfType([p.func,p.object]),valueLabel:p.oneOfType([p.func,p.shape({children:p.element,className:p.string,open:p.bool,style:p.object,value:p.number,valueLabelDisplay:p.oneOf(["auto","off","on"])})])}),slots:p.shape({input:p.elementType,mark:p.elementType,markLabel:p.elementType,rail:p.elementType,root:p.elementType,thumb:p.elementType,track:p.elementType,valueLabel:p.elementType}),step:p.number,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),tabIndex:p.number,track:p.oneOf(["inverted","normal",!1]),value:p.oneOfType([p.arrayOf(p.number),p.number]),valueLabelDisplay:p.oneOf(["auto","off","on"]),valueLabelFormat:p.oneOfType([p.func,p.string])});var f1="[object Number]";function d1(e){return typeof e=="number"||Wt(e)&&Yt(e)==f1}const dc=$e.observer(e=>{k.useTheme();function t(r,n){n===e.velocity||!d1(n)||e.onVelocityChange(n)}return b.jsxs(k.Stack,{direction:"row",gap:2,children:[b.jsx(fc,{value:e.velocity,color:"secondary",onChange:t,min:e.min,max:e.max,"aria-labelledby":"input-slider",disabled:e.disabled,sx:{"& .MuiSlider-valueLabelOpen":{zIndex:100,backgroundColor:"transparent",top:"0px"}}}),e.renderValue?e.renderValue(e.velocity):b.jsx(Bi,{value:e.velocity.toString()})]})});function Bi({value:e,sx:t}){var n;const r=k.useTheme();return b.jsx(k.Stack,{direction:"row",justifyContent:"center",gap:"5px",sx:{padding:"6px 12px",background:(n=r.palette.backgroundPaperElevation)==null?void 0:n[8],borderRadius:"10px",minWidth:"111px",...t},children:b.jsx(k.Typography,{component:"span",sx:{textAlign:"right",fontSize:"14px",opacity:.8,lineHeight:1,color:r.palette.text.primary,whiteSpace:"nowrap"},children:e})})}const pc=$e.observer(({store:e})=>{const{t}=Kt.useTranslation(),r=$e.useLocalObservable(()=>({get valueLabelFormat(){return e.currentMotionType==="translate"?n=>`v = ${t("Jogging.Cartesian.Translation.velocityMmPerSec.lb",{amount:n})}`:n=>`v = ${t("Jogging.Cartesian.Rotation.velocityDegPerSec.lb",{amount:n})}`}}));return b.jsx(dc,{velocity:e.velocityInCurrentUnits,min:e.minVelocityInCurrentUnits,max:e.maxVelocityInCurrentUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,renderValue:n=>b.jsx(Bi,{value:r.valueLabelFormat(n),sx:{minWidth:e.currentMotionType==="translate"?"111px":"90px"}})})}),p1=$e.observer(({store:e,children:t})=>{var d,f,v,m,y,h,S,T,_;const{t:r}=Kt.useTranslation(),n=k.useTheme();function o(O,w){(w==="translate"||w==="rotate")&&e.setSelectedCartesianMotionType(w)}Pi(()=>[e.selectedCoordSystemId,e.selectedTcpId],()=>{e.jogger.motionStream.motionStateSocket.changeUrl(e.jogger.nova.makeWebsocketURL(`/motion-groups/${e.jogger.motionGroupId}/state-stream?tcp=${e.selectedTcpId}&response_coordinate_system=${e.selectedCoordSystemId}`))},{fireImmediately:!0});async function i(O,w){const E=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose,R=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;E&&await e.withMotionLock(async()=>{try{e.setCurrentIncrementJog({axis:O.axis,direction:O.direction}),await e.jogger.runIncrementalCartesianMotion({currentTcpPose:E,currentJoints:R,coordSystemId:e.activeCoordSystemId,velocityInRelevantUnits:e.velocityInCurrentUnits,axis:O.axis,direction:O.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:w.mm}:{type:"rotate",distanceRads:Lt.degreesToRadians(w.degrees)}})}finally{e.setCurrentIncrementJog(null)}})}async function s(O){if(!e.isLocked){if(e.activeDiscreteIncrement)return i(O,e.activeDiscreteIncrement);O.motionType==="translate"?await e.jogger.startTCPTranslation({axis:O.axis,direction:O.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:O.axis,direction:O.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function a(){e.isLocked||e.activeDiscreteIncrement||await e.jogger.stop()}const l=[{id:"x",colors:(v=(f=(d=n.componentsExt)==null?void 0:d.JoggingCartesian)==null?void 0:f.Axis)==null?void 0:v.X,icon:b.jsx(bm,{})},{id:"y",colors:(h=(y=(m=n.componentsExt)==null?void 0:m.JoggingCartesian)==null?void 0:y.Axis)==null?void 0:h.Y,icon:b.jsx(xm,{})},{id:"z",colors:(_=(T=(S=n.componentsExt)==null?void 0:S.JoggingCartesian)==null?void 0:T.Axis)==null?void 0:_.Z,icon:b.jsx(wm,{})}];function c(O){return r("General.mm.variable",{amount:O.toFixed(1)})}function u(O){return r("General.degree.variable",{amount:Lt.radiansToDegrees(O).toFixed(1)})}return b.jsxs(k.Stack,{flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[b.jsxs(k.Stack,{gap:2,children:[b.jsx(U0,{store:e}),b.jsx(pc,{store:e}),b.jsx(k.Divider,{})]}),b.jsxs(k.Stack,{marginLeft:"auto",marginRight:"auto",gap:"24px",justifyContent:"center",sx:{flexGrow:"1"},children:[b.jsxs(z0,{value:e.selectedCartesianMotionType,onChange:o,exclusive:!0,"aria-label":r("Jogging.Cartesian.MotionType.lb"),sx:{justifyContent:"center"},children:[b.jsx(k.ToggleButton,{value:"translate",children:r("Jogging.Cartesian.Translation.bt")}),b.jsx(k.ToggleButton,{value:"rotate",children:r("Jogging.Cartesian.Rotation.bt")})]}),b.jsx(Hl,{store:e,children:b.jsxs(k.Stack,{alignItems:"center",gap:"24px",sx:{flexGrow:1},children:[e.selectedCartesianMotionType==="translate"&&l.map(O=>{var w;return b.jsx(ti,{colors:O.colors,disabled:e.isLocked,activeJoggingDirection:((w=e.incrementJogInProgress)==null?void 0:w.axis)===O.id?e.incrementJogInProgress.direction:void 0,label:b.jsxs(b.Fragment,{children:[O.icon,b.jsx(k.Typography,{sx:{fontSize:"24px",color:n.palette.text.primary},children:O.id.toUpperCase()})]}),getDisplayedValue:()=>{var E;return c(((E=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:E.position[O.id])||0)},startJogging:E=>s({axis:O.id,motionType:"translate",direction:E}),stopJogging:a},O.id)}),e.selectedCartesianMotionType==="rotate"&&l.map(O=>{var w;return b.jsx(ti,{colors:O.colors,disabled:e.isLocked,activeJoggingDirection:((w=e.incrementJogInProgress)==null?void 0:w.axis)===O.id?e.incrementJogInProgress.direction:void 0,label:b.jsxs(b.Fragment,{children:[b.jsx(Om,{}),b.jsx(k.Typography,{sx:{fontSize:"24px",color:n.palette.text.primary},children:O.id.toUpperCase()})]}),getDisplayedValue:()=>{var E,R;return u(((R=(E=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:E.orientation)==null?void 0:R[O.id])||0)},startJogging:E=>s({axis:O.id,motionType:"rotate",direction:E}),stopJogging:a},O.id)})]})})]}),b.jsx(rc,{store:e}),t&&b.jsx(k.Divider,{}),t]})}),g1=$e.observer(({store:e,children:t})=>{async function r(o){await e.jogger.startJointRotation({joint:o.joint,direction:o.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function n(){await e.jogger.stop()}return b.jsxs(k.Stack,{flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[b.jsx(pc,{store:e}),b.jsx(k.Divider,{}),b.jsx(k.Stack,{justifyContent:"center",alignItems:"stretch",sx:{flexGrow:"1"},id:"JointControls",children:b.jsx(Hl,{store:e,children:b.jsx(k.Stack,{alignItems:"center",gap:"24px",sx:{flexGrow:1},children:e.jogger.motionStream.joints.map(o=>{var l;const i=(l=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:l[o.index],s=(i==null?void 0:i.lower_limit)!==void 0?Lt.radiansToDegrees(i.lower_limit):void 0,a=(i==null?void 0:i.upper_limit)!==void 0?Lt.radiansToDegrees(i.upper_limit):void 0;return b.jsx(bl,{disabled:e.isLocked,lowerLimitDegs:s,upperLimitDegs:a,getValueDegs:()=>{const c=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[o.index];return c!==void 0?Lt.radiansToDegrees(c):void 0},startJogging:c=>r({joint:o.index,direction:c}),stopJogging:n},`joint-${o.index}`)})})})}),b.jsx(rc,{store:e}),t&&b.jsx(k.Divider,{}),t]})}),h1=on($e.observer(e=>{const t=Wn.isString(e.nova)?new Lt.NovaClient({instanceUrl:e.nova}):e.nova,r=$e.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function n(){ut.runInAction(()=>{r.loadingError=null,r.joggingStore=null});try{const o=await t.connectJogger(e.motionGroupId),i=await Vi.loadFor(o);ut.runInAction(()=>{r.joggingStore=i}),e.onSetup&&e.onSetup(i)}catch(o){r.loadingError=o}}return H.useEffect(()=>(n(),()=>{var o;(o=r.joggingStore)==null||o.dispose()}),[e.nova,e.motionGroupId]),H.useEffect(()=>{const o=r.joggingStore;o&&(e.locked?o.locks.add("external"):o.locks.delete("external"))},[e.locked]),b.jsx(k.Stack,{sx:{maxWidth:"460px",minWidth:"320px",position:"relative",...e.sx},children:r.joggingStore?b.jsx(m1,{store:r.joggingStore,children:e.children}):b.jsx(ho,{message:"Loading jogging",error:r.loadingError})})})),m1=$e.observer(({store:e,children:t})=>{H.useEffect(()=>{function n(){e.deactivate()}function o(){e.activate()}return window.addEventListener("blur",n),window.addEventListener("focus",o),()=>{window.removeEventListener("blur",n),window.removeEventListener("focus",o)}}),Pi(()=>[e.currentTab.id,e.selectedTcpId,e.activeCoordSystemId,e.activeDiscreteIncrement],()=>{e.activationState!=="inactive"&&e.activate()});function r(){if(e.currentTab.id==="cartesian")return b.jsx(b.Fragment,{children:b.jsx(p1,{store:e,children:t})});if(e.currentTab.id==="joint")return b.jsx(b.Fragment,{children:b.jsx(g1,{store:e,children:t})})}return b.jsxs(k.Stack,{flexGrow:1,sx:{overflow:"hidden"},children:[b.jsx(k.Tabs,{value:e.tabIndex,onChange:e.onTabChange,variant:"fullWidth",children:e.tabs.map(n=>b.jsx(k.Tab,{label:n.label,id:`jogging-tab-${n.id}`,"aria-controls":`jogging-tab-${n.id}`},n.id))}),b.jsx(k.Stack,{flexGrow:1,position:"relative",sx:{overflowY:"auto",overflowX:"hidden"},children:r()})]})}),gc=H.forwardRef(({label:e,value:t},r)=>{var a;const n=k.useTheme(),[o,i]=H.useState(!1);async function s(){if(!r||!("current"in r))return console.warn("No copy target found"),!1;try{return await navigator.clipboard.writeText(t),console.log("Copied!"),i(!0),!0}catch(l){console.error(l);const c=window.getSelection(),u=document.createRange();u.selectNodeContents(r.current),c.removeAllRanges(),c.addRange(u)}return!1}return H.useEffect(()=>{if(!o)return;const l=setTimeout(()=>i(!1),3e3);return()=>{l&&clearTimeout(l)}},[o]),b.jsx(k.Tooltip,{open:o,title:"Copied!",children:b.jsx(k.Stack,{justifyContent:"center",sx:{height:"100%",boxSizing:"border-box",padding:"6px 12px",background:(a=n.palette.backgroundPaperElevation)==null?void 0:a[8],borderRadius:"10px",minWidth:"0",cursor:"pointer"},onClick:()=>s(),children:b.jsx(k.Typography,{ref:r,align:"center",sx:{pointerEvents:"none",fontSize:"12px",color:n.palette.text.primary,whiteSpace:"nowrap",minWidth:0,textOverflow:"ellipsis",width:"100%",overflow:"hidden"},children:t})})})}),y1=$e.observer(({motionStream:e})=>{const t=H.useRef(null);function r(){const n=e.rapidlyChangingMotionState.tcp_pose;return n?Lt.poseToWandelscriptString(n):""}return Sr(()=>{if(!t.current)return;const n=r();t.current.textContent!==n&&(t.current.textContent=n)}),b.jsx(k.Stack,{alignItems:"left",spacing:2,sx:{flexGrow:1,minWidth:0,overflow:"hidden"},children:b.jsx(gc,{value:r(),ref:t})})}),b1=$e.observer(({motionStream:e})=>{const t=H.useRef(null);function r(){const{joints:n}=e.rapidlyChangingMotionState.state.joint_position;return`[${n.map(o=>parseFloat(o.toFixed(4))).join(", ")}]`}return Sr(()=>{if(!t.current)return;const n=r();t.current.textContent!==n&&(t.current.textContent=n)}),b.jsx(k.Stack,{alignItems:"left",spacing:2,sx:{flexGrow:1,minWidth:0,overflow:"hidden"},children:b.jsx(gc,{value:r(),ref:t})})});function v1(){const e=window.location.href;return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function x1({baseUrl:e=v1(),...t}){return b.jsxs(k.Dialog,{"aria-labelledby":"no-motion-group-modal-title",open:!0,fullWidth:!0,sx:{"& .MuiModal-backdrop":{backdropFilter:"blur(10px)"},"& .MuiDialog-paper":{"::before":{content:'""',height:"8px",width:"100%",background:"linear-gradient(90deg, #FF0E65 0%, #47D3FF 100%)"},background:"#101629"}},children:[b.jsx(k.DialogTitle,{id:"no-motion-group-modal-title",children:"No motion group found"}),b.jsxs(k.DialogContent,{sx:{marginTop:"3rem",marginBottom:"1.5rem",textAlign:"center"},children:[b.jsx(k.Typography,{color:"#fff",children:"Found no devices to connect to."}),b.jsx(k.Typography,{color:"#fff",children:"Please ensure a motion group has been created."})]}),b.jsx(k.DialogActions,{children:b.jsxs(k.Stack,{width:"100%",maxWidth:"300px",margin:"auto",marginBottom:"2rem",children:[b.jsx(k.Button,{href:`${e}/settings`,variant:"contained",sx:{borderRadius:"8px",width:"100%"},children:"Go to settings app"}),b.jsx(k.Button,{href:`${e}`,variant:"text",sx:{marginTop:"1rem",color:"#fff",textDecoration:"underline",fontSize:"0.75rem"},children:"Back to Homescreen"})]})})]})}const S1=Array(6).fill(2*Math.PI),Sa="0.0.0-semantically-released",w1="(^joint_[0-9]+$)|(_J[0-9]+$)";function hc(e){return e.children.length===0?[e]:[e,...e.children.flatMap(t=>hc(t))]}function T1(e,t){return new RegExp(t??w1).test(e)}function mc(e,t){return hc(e).filter(r=>T1(r.name,t))}function yc({rapidlyChangingMotionState:e,dhParameters:t,jointCollector:r,onRotationChanged:n,children:o}){Jo.Globals.assign({frameLoop:"always"});const i=H.useRef([]),s=H.useRef([]),{invalidate:a}=Pc.useThree();function l(v){v&&(s.current=r?r(v):mc(v),u(),a())}function c(v){i.current=v,f.start(Object.assign({},i.current))}function u(){const v=s.current.map((m,y)=>d[y].get());if(n)n(s.current,v);else for(const[m,y]of s.current.entries()){const h=t[m],S=h.theta||0,T=h.reverse_rotation_direction?-1:1;y.rotation.y=T*v[m]+S}}dl(()=>{const v=e.state.joint_position.joints.filter(m=>m!==void 0);requestAnimationFrame(()=>c(v))});const[d,f]=Jo.useSpring(()=>({...Object.assign({},e.state.joint_position.joints),onChange:()=>{u(),a()},onResolve:()=>{u()}}));return b.jsx("group",{ref:l,children:o})}const wa="line",Ta="mesh";function Oa({rapidlyChangingMotionState:e,dhParameters:t,...r}){const n=new xt.Matrix4;function o(l,c){const u=new xt.Vector3,d=new xt.Quaternion,f=new xt.Vector3;n.decompose(u,d,f);const v=u.clone(),m=new xt.Matrix4().makeRotationY(l.theta+c*(l.reverse_rotation_direction?-1:1)).multiply(new xt.Matrix4().makeTranslation(0,l.d/1e3,0)).multiply(new xt.Matrix4().makeTranslation(l.a/1e3,0,0)).multiply(new xt.Matrix4().makeRotationX(l.alpha));return n.multiply(m),n.decompose(u,d,f),{a:v,b:u}}function i(l,c,u,d){if(!t)return;const f=t[l];if(!f)return;const{a:v,b:m}=o(f,d);c.geometry.setPositions([v.toArray(),m.toArray()].flat()),u.position.set(m.x,m.y,m.z)}function s(l,c){n.identity(),l.forEach((u,d)=>{i(d,u.getObjectByName(wa),u.getObjectByName(Ta),c[d])})}function a(l){return mc(l,"^group_[0-9]+$")}return b.jsx(b.Fragment,{children:b.jsx(yc,{rapidlyChangingMotionState:e,dhParameters:t,jointCollector:a,onRotationChanged:s,children:b.jsxs("group",{...r,name:"Scene",children:[b.jsxs("mesh",{children:[b.jsx("sphereGeometry",{args:[.01,32,32]}),b.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]}),t.map((l,c)=>{const{a:u,b:d}=o(l,e.state.joint_position.joints[c]??0);return b.jsxs("group",{name:`group_${c}`,children:[b.jsx(ct.Line,{name:wa,points:[u,d],color:"white",lineWidth:5}),b.jsxs("mesh",{name:Ta,position:d,children:[b.jsx("sphereGeometry",{args:[.01,32,32]}),b.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+c)]},"group_"+c)})]})})})}const O1=console.warn;function E1(){return H.useEffect(()=>{console.warn=e=>{e!=="Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"&&O1(e)}},[]),b.jsx(b.Fragment,{})}function C1(e){return e.type==="Mesh"}function R1(e){return e.name.endsWith("_FLG")}function _1({modelURL:e,flangeRef:t,...r}){const n=ct.useGLTF(e),o=i=>C1(i)?b.jsx("mesh",{name:i.name,geometry:i.geometry,material:i.material,position:i.position,rotation:i.rotation},i.uuid):b.jsx(Jo.animated.group,{name:i.name,position:i.position,rotation:i.rotation,ref:R1(i)?t:void 0,children:i.children.map(o)},i.uuid);return b.jsx("group",{...r,dispose:null,children:o(n.scene)})}function Ui(e){let t=Sa;return Sa.startsWith("0.")&&(t=""),`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components${t?`@${t}`:""}/public/models/${e}.glb`}const bc=on(({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:r,getModel:n=Ui,isGhost:o=!1,flangeRef:i,...s})=>{const a=H.useRef(),l=H.useCallback(d=>{d&&(a.current=d,o&&c())},[o]),c=()=>{!a.current||a.current.userData.isGhost||(a.current.traverse(d=>{if(d instanceof Re.Mesh){d.material instanceof Re.Material&&(d.material.colorWrite=!0);const f=d.clone(),v=d.clone();f.material=new Re.MeshStandardMaterial({depthTest:!0,depthWrite:!0,colorWrite:!1,polygonOffset:!0,polygonOffsetFactor:1}),f.userData.isGhost=!0,v.material=new Re.MeshStandardMaterial({color:"#D91433",opacity:.3,depthTest:!0,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-1}),v.userData.isGhost=!0,d.parent&&(d.parent.add(f),d.parent.add(v))}}),a.current.userData.isGhost=!0)},u=()=>{if(!a.current||!a.current.userData.isGhost)return;const d=[];a.current.traverse(f=>{var v;f instanceof Re.Mesh&&((v=f.userData)!=null&&v.isGhost?d.push(f):f.material instanceof Re.Material&&(f.material.colorWrite=!0))}),d.forEach(f=>{f.parent&&f.parent.remove(f)}),a.current.userData.isGhost=!0};return H.useEffect(()=>{o?c():u()},[o]),b.jsxs(jc.ErrorBoundary,{fallback:b.jsx(Oa,{rapidlyChangingMotionState:e,dhParameters:r,...s}),children:[b.jsx(H.Suspense,{fallback:b.jsx(Oa,{rapidlyChangingMotionState:e,dhParameters:r,...s}),children:b.jsx("group",{ref:l,children:b.jsx(yc,{rapidlyChangingMotionState:e,dhParameters:r,children:b.jsx(_1,{modelURL:n(t),flangeRef:i,...s})})})}),b.jsx(E1,{})]})});function P1({connectedMotionGroup:e,getModel:t=Ui,isGhost:r=!1,flangeRef:n,...o}){return e.dhParameters?b.jsx(bc,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,isGhost:r,flangeRef:n,...o}):null}const $1=k.styled(k.Fab,{shouldForwardProp:e=>e!=="selected"})(({theme:e})=>{var t,r,n;return{borderRadius:"20px","&:hover":{background:(t=e.palette.backgroundPaperElevation)==null?void 0:t[7]},variants:[{props:({selected:o})=>!o,style:{background:(r=e.palette.backgroundPaperElevation)==null?void 0:r[0],color:e.palette.action.disabled,"> img":{opacity:.4}}},{props:({selected:o})=>o,style:{background:(n=e.palette.backgroundPaperElevation)==null?void 0:n[11],border:`1px solid ${e.palette.divider}`,color:e.palette.primary.contrastText}}]}}),k1=H.forwardRef((e,t)=>b.jsx($1,{ref:t,selected:e.selected,...e,color:"secondary",variant:"circular"})),j1={$schema:"https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",name:"wandelscript",patterns:[{include:"#keywords"},{include:"#strings"},{include:"#comments"},{include:"#functions"}],repository:{keywords:{patterns:[{name:"keyword.control.flow.wandelscript",match:"\\b(move|via|to|interrupt|def|False|True|for|if|else|elif|while|return|switch|activate|deactivate|print)\\b"}]},strings:{name:"string.quoted.double.wandelscript",begin:'"',end:'"',patterns:[{name:"constant.character.escape.wandelscript",match:"\\\\."}]},comments:{patterns:[{begin:"#",beginCaptures:{0:{name:"punctuation.definition.comment.wandelscript"}},end:"$",name:"comment.line.number-sign.wandelscript"}]},functions:{patterns:[{match:"[a-zA-Z_-]+\\(",name:"entity.name.function.wandelscript"}]}},scopeName:"source.wandelscript"},A1=H.lazy(()=>import("@monaco-editor/react")),L1=on(e=>{const t=k.useTheme(),r=H.useRef(null),[n,o]=H.useState("dark-plus"),i=t.palette.mode==="dark"?"dark-plus":"light-plus";async function s(a){const[{createHighlighter:l},{shikiToMonaco:c}]=await Promise.all([import("shiki"),import("@shikijs/monaco")]);a.languages.register({id:"wandelscript"}),a.languages.setLanguageConfiguration("wandelscript",{comments:{lineComment:"#"},brackets:[["(",")"],["[","]"]],autoClosingPairs:[{open:"[",close:"]"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"}]}),r.current||(r.current=await l({langs:[j1],themes:["dark-plus","light-plus"]})),c(r.current,a),a.editor.defineTheme(i,{base:t.palette.mode==="dark"?"vs-dark":"vs",inherit:!0,rules:[],colors:t.palette.mode==="dark"?{"editor.background":"#262F42","editorLineNumber.foreground":"#797979","editorLineNumber.activeForeground":"#e9e9e9","editor.lineHighlightBorder":"#494949"}:{}}),e.monacoSetup&&e.monacoSetup(a),o(i)}return b.jsx(H.Suspense,{fallback:b.jsx(ho,{}),children:b.jsx(A1,{value:e.code,onMount:(a,l)=>{s(l)},onChange:e.onChange,defaultLanguage:"wandelscript",theme:n,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}})})});function vc(){var t,r,n,o,i,s;const e=k.createTheme({palette:{mode:"dark",text:{primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.38)"},primary:{main:"rgba(142, 86, 252, 1)",dark:"rgba(136, 58, 255, 1)",light:"rgba(157, 131, 246, 1)",contrastText:"rgba(255, 255, 255, 0.87)"},secondary:{main:"rgba(255, 255, 255, 1)",dark:"rgba(255, 255, 255, 0.06)",contrastText:"rgba(255, 255, 255, 0.87)"},tertiary:{main:"rgba(100, 255, 218, 1)",dark:"rgba(38, 166, 154, 1)",light:"rgba(167, 255, 235, 1)",contrastText:"rgba(0, 0, 0, 1)"},error:{main:"rgba(239, 83, 80, 1)",dark:"rgba(229, 57, 53, 1)",light:"rgba(239, 154, 154, 1)",contrastText:"rgba(255, 255, 255, 1)"},warning:{main:"rgba(255, 171, 64, 1)",dark:"rgba(255, 145, 0, 1)",light:"rgba(255, 209, 128, 1)",contrastText:"rgba(0, 0, 0, 0.87)"},success:{main:"rgba(38, 166, 154, 1)",dark:"rgba(0, 121, 107, 1)",light:"rgba(128, 203, 196, 1)",contrastText:"rgba(255, 255, 255, 0.87)"},background:{default:"rgba(2, 6, 23, 1)",paper:"rgba(17, 19, 31, 1)"},action:{active:"rgba(255, 255, 255, 0.56)",hover:"rgba(255, 255, 255, 0.08)",selected:"rgba(255, 255, 255, 0.16)",disabledBackground:"rgba(255, 255, 255, 0.12)",focus:"rgba(255, 255, 255, 0.12)",disabled:"rgba(255, 255, 255, 0.38)"},common:{white:"rgba(255, 255, 255, 1)",black:"rgba(0, 0, 0, 1)"},divider:"rgba(255, 255, 255, 0.12)",backgroundPaperElevation:{0:"rgba(17,19,31,1.0)",1:"rgba(20,22,35,1.0)",2:"rgba(23,25,39,1.0)",3:"rgba(26,28,43,1.0)",4:"rgba(29,31,47,1.0)",5:"rgba(32,34,51,1.0)",6:"rgba(35,37,55,1.0)",7:"rgba(38,40,59,1.0)",8:"rgba(41,43,63,1.0)",9:"rgba(44,46,67,1.0)",10:"rgba(47,49,71,1.0)",11:"rgba(50,52,75,1.0)",12:"rgba(53,55,79,1.0)",13:"rgba(56,58,83,1.0)",14:"rgba(59,61,87,1.0)",15:"rgba(62,64,91,1.0)",16:"rgba(57,63,87,1.0)"}},paletteExt:{primary:{hover:"rgba(142, 86, 252, 0.08)",selected:"rgba(142, 86, 252, 0.16)",focus:"rgba(142, 86, 252, 0.12)",focusVisible:"rgba(142, 86, 252, 0.3)",outlineBorder:"rgba(142, 86, 252, 0.5)"},secondary:{tonal:"rgba(255,255,255,0.1)"}}});return{...e,components:{MuiButton:{styleOverrides:{root:{textTransform:"none",borderRadius:"10px"}},variants:[{props:{color:"secondary",variant:"contained"},style:{border:`1px solid ${e.palette.divider}`,background:(n=(r=(t=e.paletteExt)==null?void 0:t.secondary)==null?void 0:r.tonal)==null?void 0:n.toString()}},{props:{color:"secondary",variant:"outlined"},style:{border:`1px solid ${e.palette.divider}`}}]},MuiTab:{styleOverrides:{root:{textTransform:"none",color:e.palette.text.secondary,"&.Mui-selected":{color:e.palette.text.primary}}}},MuiTabs:{styleOverrides:{root:{background:(o=e.palette.backgroundPaperElevation)==null?void 0:o[1]}}},MuiToggleButtonGroup:{styleOverrides:{root:{".MuiToggleButtonGroup-firstButton":{borderRadius:"10px 0 0 10px"},".MuiToggleButtonGroup-lastButton":{borderRadius:"0 10px 10px 0"}}}},MuiToggleButton:{styleOverrides:{root:{textTransform:"none",padding:"6px 16px"}}},MuiSelect:{variants:[{props:{variant:"filled"},style:{borderRadius:"10px","::before, ::after":{visibility:"collapse"},".MuiInputBase-input":{padding:"6px 16px",borderRadius:"10px"}}}]},MuiFab:{styleOverrides:{root:{background:(s=(i=e.paletteExt)==null?void 0:i.secondary)==null?void 0:s.tonal}},variants:[{props:{color:"primary"},style:{background:e.palette.primary.main}}]}},componentsExt:{JoggingCartesian:{Axis:{X:{backgroundColor:"rgba(215, 66, 56, 1)",borderColor:"rgba(215, 66, 56, 1)",buttonBackgroundColor:{default:"rgba(241, 77, 66, 1)",pressed:"rgba(138, 41, 35, 1)",hovered:"rgba(241, 77, 66, 1)",disabled:"rgba(241, 77, 66, 1)"},color:"rgba(255, 198, 198, 1)"},Y:{backgroundColor:"rgba(20, 151, 108, 1)",borderColor:"rgba(20, 151, 108, 1)",buttonBackgroundColor:{default:"rgba(28, 188, 135, 1)",pressed:"rgba(11, 89, 63, 1)",disabled:"rgba(28, 188, 135, 1)",hovered:"rgba(28, 188, 135, 1)"},color:"rgba(215, 255, 242, 1)"},Z:{backgroundColor:"rgba(1, 87, 155, 1)",borderColor:"rgba(1, 87, 155, 1)",buttonBackgroundColor:{default:"rgba(2, 136, 209, 1)",pressed:"rgba(2, 64, 114, 1)",disabled:"rgba(2, 136, 209, 1)",hovered:"rgba(2, 136, 209, 1)"},color:"rgba(210, 239, 255, 1)"}}}}}}function I1(){const e=vc();return e.palette.mode="light",e}function N1(e){var n,o,i,s;let t=!0;((n=e.palette)==null?void 0:n.mode)==="light"?t=!1:((o=e.palette)==null?void 0:o.mode)!=="dark"&&(t=!(typeof window<"u"&&((s=(i=window.matchMedia)==null?void 0:i.call(window,"(prefers-color-scheme: light)"))==null?void 0:s.matches)));const r=t?vc():I1();return ll(r,e)}exports.JoggingCartesianAxisControl=ti;exports.JoggingJointRotationControl=bl;exports.JoggingPanel=h1;exports.LoadingCover=ho;exports.LoadingErrorMessage=Jl;exports.NoMotionGroupModal=x1;exports.PoseCartesianValues=y1;exports.PoseJointValues=b1;exports.PresetEnvironment=Ic;exports.Robot=P1;exports.SafetyZonesRenderer=Dc;exports.SelectableFab=k1;exports.SupportedRobot=bc;exports.VelocitySlider=dc;exports.VelocitySliderLabel=Bi;exports.WandelscriptEditor=L1;exports.createNovaMuiTheme=N1;exports.defaultAxisConfig=S1;exports.defaultGetModel=Ui;exports.useAnimationFrame=Sr;exports.useAutorun=dl;exports.useMounted=ao;exports.useReaction=Pi;
75
+ } });`:Jr(12,h?` (${h})`:"",JSON.stringify(m.main)));return ms(m,"light",T,n),ms(m,"dark",k,n),m.contrastText||(m.contrastText=d(m.main)),m},v={dark:Ao,light:hs};return process.env.NODE_ENV!=="production"&&(v[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),et(_({common:_({},Gr),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:tp,contrastThreshold:r,getContrastText:d,augmentColor:f,tonalOffset:n},v[t]),o)}const up=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function fp(e){return Math.round(e*1e5)/1e5}const ys={textTransform:"uppercase"},bs='"Roboto", "Helvetica", "Arial", sans-serif';function dp(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=bs,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=r,f=Ve(r,up);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const v=o/14,y=d||(S=>`${S/c*v}rem`),m=(S,T,k,O,w)=>_({fontFamily:n,fontWeight:S,fontSize:y(T),lineHeight:k},n===bs?{letterSpacing:`${fp(O/T)}em`}:{},w,u),h={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(s,48,1.167,0),h4:m(s,34,1.235,.25),h5:m(s,24,1.334,0),h6:m(a,20,1.6,.15),subtitle1:m(s,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(s,16,1.5,.15),body2:m(s,14,1.43,.15),button:m(a,14,1.75,.4,ys),caption:m(s,12,1.66,.4),overline:m(s,12,2.66,1,ys),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return et(_({htmlFontSize:c,pxToRem:y,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},h),f,{clone:!1})}const pp=.2,gp=.14,hp=.12;function fe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${pp})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${gp})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${hp})`].join(",")}const mp=["none",fe(0,2,1,-1,0,1,1,0,0,1,3,0),fe(0,3,1,-2,0,2,2,0,0,1,5,0),fe(0,3,3,-2,0,3,4,0,0,1,8,0),fe(0,2,4,-1,0,4,5,0,0,1,10,0),fe(0,3,5,-1,0,5,8,0,0,1,14,0),fe(0,3,5,-1,0,6,10,0,0,1,18,0),fe(0,4,5,-2,0,7,10,1,0,2,16,1),fe(0,5,5,-3,0,8,10,1,0,3,14,2),fe(0,5,6,-3,0,9,12,1,0,3,16,2),fe(0,6,6,-3,0,10,14,1,0,4,18,3),fe(0,6,7,-4,0,11,15,1,0,4,20,3),fe(0,7,8,-4,0,12,17,2,0,5,22,4),fe(0,7,8,-4,0,13,19,2,0,5,24,4),fe(0,7,9,-4,0,14,21,2,0,5,26,4),fe(0,8,9,-5,0,15,22,2,0,6,28,5),fe(0,8,10,-5,0,16,24,2,0,6,30,5),fe(0,8,11,-5,0,17,26,2,0,6,32,5),fe(0,9,11,-5,0,18,28,2,0,7,34,6),fe(0,9,12,-6,0,19,29,2,0,7,36,6),fe(0,10,13,-6,0,20,31,3,0,8,38,7),fe(0,10,13,-6,0,21,33,3,0,8,40,7),fe(0,10,14,-6,0,22,35,3,0,8,42,7),fe(0,11,14,-7,0,23,36,3,0,9,44,8),fe(0,11,15,-7,0,24,38,3,0,9,46,8)],yp=["duration","easing","delay"],bp={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},vp={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function vs(e){return`${Math.round(e)}ms`}function xp(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Sp(e){const t=_({},bp,e.easing),r=_({},vp,e.duration);return _({getAutoHeightDuration:xp,create:(o=["all"],i={})=>{const{duration:s=r.standard,easing:a=t.easeInOut,delay:l=0}=i,c=Ve(i,yp);if(process.env.NODE_ENV!=="production"){const u=f=>typeof f=="string",d=f=>!isNaN(parseFloat(f));!u(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!d(s)&&!u(s)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`),u(a)||console.error('MUI: Argument "easing" must be a string.'),!d(l)&&!u(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
76
+ `)),Object.keys(c).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(c).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof s=="string"?s:vs(s)} ${a} ${typeof l=="string"?l:vs(l)}`).join(",")}},e,{easing:t,duration:r})}const wp={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Tp=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ll(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,s=Ve(e,Tp);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Jr(18));const a=cp(n),l=rn(e);let c=et(l,{mixins:Ud(l.breakpoints,r),palette:a,shadows:mp.slice(),typography:dp(a,i),transitions:Sp(o),zIndex:_({},wp)});if(c=et(c,s),c=t.reduce((u,d)=>et(u,d),c),process.env.NODE_ENV!=="production"){const u=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],d=(f,v)=>{let y;for(y in f){const m=f[y];if(u.indexOf(y)!==-1&&Object.keys(m).length>0){if(process.env.NODE_ENV!=="production"){const h=nn("",y);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${y}\` internal state.`,"You can not override it like this: ",JSON.stringify(f,null,2),"",`Instead, you need to use the '&.${h}' syntax:`,JSON.stringify({root:{[`&.${h}`]:m}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
77
+ `))}f[y]={}}}};Object.keys(c.components).forEach(f=>{const v=c.components[f].styleOverrides;v&&f.indexOf("Mui")===0&&d(v,f)})}return c.unstable_sxConfig=_({},en,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(d){return tn({sx:d,theme:this})},c}const Op=ll(),Ep="$$material";function _i(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Cp=e=>_i(e)&&e!=="classes",Et=Rd({themeId:Ep,defaultTheme:Op,rootShouldForwardProp:Cp});process.env.NODE_ENV!=="production"&&(p.node,p.object.isRequired);function Pi(e){return ud(e)}const yr=bd({createStyledComponent:Et("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Pi({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(yr.propTypes={children:p.node,component:p.elementType,direction:p.oneOfType([p.oneOf(["column-reverse","column","row-reverse","row"]),p.arrayOf(p.oneOf(["column-reverse","column","row-reverse","row"])),p.object]),divider:p.node,spacing:p.oneOfType([p.arrayOf(p.oneOfType([p.number,p.string])),p.number,p.object,p.string]),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),useFlexGap:p.bool});const U=e=>typeof e=="string",Mr=()=>{let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r},xs=e=>e==null?"":""+e,Rp=(e,t,r)=>{e.forEach(n=>{t[n]&&(r[n]=t[n])})},_p=/###/g,Ss=e=>e&&e.indexOf("###")>-1?e.replace(_p,"."):e,ws=e=>!e||U(e),Ur=(e,t,r)=>{const n=U(t)?t.split("."):t;let o=0;for(;o<n.length-1;){if(ws(e))return{};const i=Ss(n[o]);!e[i]&&r&&(e[i]=new r),Object.prototype.hasOwnProperty.call(e,i)?e=e[i]:e={},++o}return ws(e)?{}:{obj:e,k:Ss(n[o])}},Ts=(e,t,r)=>{const{obj:n,k:o}=Ur(e,t,Object);if(n!==void 0||t.length===1){n[o]=r;return}let i=t[t.length-1],s=t.slice(0,t.length-1),a=Ur(e,s,Object);for(;a.obj===void 0&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),a=Ur(e,s,Object),a&&a.obj&&typeof a.obj[`${a.k}.${i}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=r},Pp=(e,t,r,n)=>{const{obj:o,k:i}=Ur(e,t,Object);o[i]=o[i]||[],o[i].push(r)},Dn=(e,t)=>{const{obj:r,k:n}=Ur(e,t);if(r)return r[n]},$p=(e,t,r)=>{const n=Dn(e,r);return n!==void 0?n:Dn(t,r)},cl=(e,t,r)=>{for(const n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?U(e[n])||e[n]instanceof String||U(t[n])||t[n]instanceof String?r&&(e[n]=t[n]):cl(e[n],t[n],r):e[n]=t[n]);return e},ur=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var kp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const jp=e=>U(e)?e.replace(/[&<>"'\/]/g,t=>kp[t]):e;class Ap{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const r=this.regExpMap.get(t);if(r!==void 0)return r;const n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}}const Ip=[" ",",","?","!",";"],Lp=new Ap(20),Np=(e,t,r)=>{t=t||"",r=r||"";const n=Ip.filter(s=>t.indexOf(s)<0&&r.indexOf(s)<0);if(n.length===0)return!0;const o=Lp.getRegExp(`(${n.map(s=>s==="?"?"\\?":s).join("|")})`);let i=!o.test(e);if(!i){const s=e.indexOf(r);s>0&&!o.test(e.substring(0,s))&&(i=!0)}return i},ti=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const n=t.split(r);let o=e;for(let i=0;i<n.length;){if(!o||typeof o!="object")return;let s,a="";for(let l=i;l<n.length;++l)if(l!==i&&(a+=r),a+=n[l],s=o[a],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&l<n.length-1)continue;i+=l-i+1;break}o=s}return o},Fn=e=>e&&e.replace("_","-"),Mp={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Vn{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,r)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||Mp,this.options=r,this.debug=r.debug}log(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}warn(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}error(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"error","")}deprecate(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,n,o){return o&&!this.debug?null:(U(t[0])&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new Vn(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Vn(this.logger,t)}}var gt=new Vn;class ao{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const o=this.observers[n].get(r)||0;this.observers[n].set(r,o+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}emit(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(s=>{let[a,l]=s;for(let c=0;c<l;c++)a(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[a,l]=s;for(let c=0;c<l;c++)a.apply(a,[t,...n])})}}class Os extends ao{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,s=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;t.indexOf(".")>-1?a=t.split("."):(a=[t,r],n&&(Array.isArray(n)?a.push(...n):U(n)&&i?a.push(...n.split(i)):a.push(n)));const l=Dn(this.data,a);return!l&&!r&&!n&&t.indexOf(".")>-1&&(t=a[0],r=a[1],n=a.slice(2).join(".")),l||!s||!U(n)?l:ti(this.data&&this.data[t]&&this.data[t][r],n,i)}addResource(t,r,n,o){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=[t,r];n&&(a=a.concat(s?n.split(s):n)),t.indexOf(".")>-1&&(a=t.split("."),o=r,r=a[1]),this.addNamespaces(r),Ts(this.data,a,o),i.silent||this.emit("added",t,r,n,o)}addResources(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in n)(U(n[i])||Array.isArray(n[i]))&&this.addResource(t,r,i,n[i],{silent:!0});o.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,o,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},a=[t,r];t.indexOf(".")>-1&&(a=t.split("."),o=n,n=r,r=a[1]),this.addNamespaces(r);let l=Dn(this.data,a)||{};s.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?cl(l,n,i):l={...l,...n},Ts(this.data,a,l),s.silent||this.emit("added",t,r,n)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,r)}:this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(o=>r[o]&&Object.keys(r[o]).length>0)}toJSON(){return this.data}}var ul={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,o){return e.forEach(i=>{this.processors[i]&&(t=this.processors[i].process(t,r,n,o))}),t}};const Es={};class Bn extends ao{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Rp(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=gt.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const n=this.resolve(t,r);return n&&n.res!==void 0}extractFromKey(t,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let i=r.ns||this.options.defaultNS||[];const s=n&&t.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!Np(t,n,o);if(s&&!a){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:i};const c=t.split(n);(n!==o||n===o&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),t=c.join(o)}return U(i)&&(i=[i]),{key:t,namespaces:i}}translate(t,r,n){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:s,namespaces:a}=this.extractFromKey(t[t.length-1],r),l=a[a.length-1],c=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(u){const O=r.nsSeparator||this.options.nsSeparator;return o?{res:`${l}${O}${s}`,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:`${l}${O}${s}`}return o?{res:s,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:s}const d=this.resolve(t,r);let f=d&&d.res;const v=d&&d.usedKey||s,y=d&&d.exactUsedKey||s,m=Object.prototype.toString.apply(f),h=["[object Number]","[object Function]","[object RegExp]"],S=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,T=!this.i18nFormat||this.i18nFormat.handleAsObject,k=!U(f)&&typeof f!="boolean"&&typeof f!="number";if(T&&f&&k&&h.indexOf(m)<0&&!(U(S)&&Array.isArray(f))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const O=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,f,{...r,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return o?(d.res=O,d.usedParams=this.getUsedParamsDetails(r),d):O}if(i){const O=Array.isArray(f),w=O?[]:{},C=O?y:v;for(const R in f)if(Object.prototype.hasOwnProperty.call(f,R)){const z=`${C}${i}${R}`;w[R]=this.translate(z,{...r,joinArrays:!1,ns:a}),w[R]===z&&(w[R]=f[R])}f=w}}else if(T&&U(S)&&Array.isArray(f))f=f.join(S),f&&(f=this.extendTranslation(f,t,r,n));else{let O=!1,w=!1;const C=r.count!==void 0&&!U(r.count),R=Bn.hasDefaultValue(r),z=C?this.pluralResolver.getSuffix(c,r.count,r):"",se=r.ordinal&&C?this.pluralResolver.getSuffix(c,r.count,{ordinal:!1}):"",V=C&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),M=V&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${z}`]||r[`defaultValue${se}`]||r.defaultValue;!this.isValidLookup(f)&&R&&(O=!0,f=M),this.isValidLookup(f)||(w=!0,f=s);const q=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&w?void 0:f,Z=R&&M!==f&&this.options.updateMissing;if(w||O||Z){if(this.logger.log(Z?"updateKey":"missingKey",c,l,s,Z?M:f),i){const ee=this.resolve(s,{...r,keySeparator:!1});ee&&ee.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let X=[];const Se=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Se&&Se[0])for(let ee=0;ee<Se.length;ee++)X.push(Se[ee]);else this.options.saveMissingTo==="all"?X=this.languageUtils.toResolveHierarchy(r.lng||this.language):X.push(r.lng||this.language);const ce=(ee,Oe,je)=>{const nt=R&&je!==f?je:q;this.options.missingKeyHandler?this.options.missingKeyHandler(ee,l,Oe,nt,Z,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(ee,l,Oe,nt,Z,r),this.emit("missingKey",ee,l,Oe,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?X.forEach(ee=>{const Oe=this.pluralResolver.getSuffixes(ee,r);V&&r[`defaultValue${this.options.pluralSeparator}zero`]&&Oe.indexOf(`${this.options.pluralSeparator}zero`)<0&&Oe.push(`${this.options.pluralSeparator}zero`),Oe.forEach(je=>{ce([ee],s+je,r[`defaultValue${je}`]||M)})}):ce(X,s,M))}f=this.extendTranslation(f,t,r,d,n),w&&f===s&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${s}`),(w||O)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,O?f:void 0):f=this.options.parseMissingKeyHandler(f))}return o?(d.res=f,d.usedParams=this.getUsedParamsDetails(r),d):f}extendTranslation(t,r,n,o,i){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const c=U(t)&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(c){const f=t.match(this.interpolator.nestingRegexp);u=f&&f.length}let d=n.replace&&!U(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,n.lng||this.language||o.usedLng,n),c){const f=t.match(this.interpolator.nestingRegexp),v=f&&f.length;u<v&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(n.lng=this.language||o.usedLng),n.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var f=arguments.length,v=new Array(f),y=0;y<f;y++)v[y]=arguments[y];return i&&i[0]===v[0]&&!n.context?(s.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${r[0]}`),null):s.translate(...v,r)},n)),n.interpolation&&this.interpolator.reset()}const a=n.postProcess||this.options.postProcess,l=U(a)?[a]:a;return t!=null&&l&&l.length&&n.applyPostProcessor!==!1&&(t=ul.handle(l,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,o,i,s,a;return U(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(n))return;const c=this.extractFromKey(l,r),u=c.key;o=u;let d=c.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const f=r.count!==void 0&&!U(r.count),v=f&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),y=r.context!==void 0&&(U(r.context)||typeof r.context=="number")&&r.context!=="",m=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);d.forEach(h=>{this.isValidLookup(n)||(a=h,!Es[`${m[0]}-${h}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(Es[`${m[0]}-${h}`]=!0,this.logger.warn(`key "${o}" for languages "${m.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),m.forEach(S=>{if(this.isValidLookup(n))return;s=S;const T=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(T,u,S,h,r);else{let O;f&&(O=this.pluralResolver.getSuffix(S,r.count,r));const w=`${this.options.pluralSeparator}zero`,C=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(T.push(u+O),r.ordinal&&O.indexOf(C)===0&&T.push(u+O.replace(C,this.options.pluralSeparator)),v&&T.push(u+w)),y){const R=`${u}${this.options.contextSeparator}${r.context}`;T.push(R),f&&(T.push(R+O),r.ordinal&&O.indexOf(C)===0&&T.push(R+O.replace(C,this.options.pluralSeparator)),v&&T.push(R+w))}}let k;for(;k=T.pop();)this.isValidLookup(n)||(i=k,n=this.getResource(S,h,k,r))}))})}),{res:n,usedKey:o,exactUsedKey:i,usedLng:s,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,r,n,o):this.resourceStore.getResource(t,r,n,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&!U(t.replace);let o=n?t.replace:t;if(n&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!n){o={...o};for(const i of r)delete o[i]}return o}static hasDefaultValue(t){const r="defaultValue";for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&t[n]!==void 0)return!0;return!1}}const Io=e=>e.charAt(0).toUpperCase()+e.slice(1);class Cs{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=gt.create("languageUtils")}getScriptPartFromCode(t){if(t=Fn(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=Fn(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(U(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let o=Intl.getCanonicalLocales(t)[0];if(o&&this.options.lowerCaseLng&&(o=o.toLowerCase()),o)return o}catch{}const r=["hans","hant","latn","cyrl","cans","mong","arab"];let n=t.split("-");return this.options.lowerCaseLng?n=n.map(o=>o.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Io(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Io(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=Io(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(n=>{if(r)return;const o=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(o))&&(r=o)}),!r&&this.options.supportedLngs&&t.forEach(n=>{if(r)return;const o=this.getLanguagePartFromCode(n);if(this.isSupportedCode(o))return r=o;r=this.options.supportedLngs.find(i=>{if(i===o)return i;if(!(i.indexOf("-")<0&&o.indexOf("-")<0)&&(i.indexOf("-")>0&&o.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===o||i.indexOf(o)===0&&o.length>1))return i})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),U(t)&&(t=[t]),Array.isArray(t))return t;if(!r)return t.default||[];let n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}toResolveHierarchy(t,r){const n=this.getFallbackCodes(r||this.options.fallbackLng||[],t),o=[],i=s=>{s&&(this.isSupportedCode(s)?o.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return U(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):U(t)&&i(this.formatLanguageCode(t)),n.forEach(s=>{o.indexOf(s)<0&&i(this.formatLanguageCode(s))}),o}}let Dp=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Fp={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const Vp=["v1","v2","v3"],Bp=["v4"],Rs={zero:0,one:1,two:2,few:3,many:4,other:5},Up=()=>{const e={};return Dp.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:Fp[t.fc]}})}),e};class zp{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=gt.create("pluralResolver"),(!this.options.compatibilityJSON||Bp.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Up(),this.pluralRulesCache={}}addRule(t,r){this.rules[t]=r}clearCache(){this.pluralRulesCache={}}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{const n=Fn(t==="dev"?"en":t),o=r.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:o});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];const s=new Intl.PluralRules(n,{type:o});return this.pluralRulesCache[i]=s,s}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,n).map(o=>`${r}${o}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((o,i)=>Rs[o]-Rs[i]).map(o=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o}`):n.numbers.map(o=>this.getSuffix(t,o,r)):[]}getSuffix(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,n);return o?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o.select(r)}`:this.getSuffixRetroCompatible(o,r):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,r){const n=t.noAbs?t.plurals(r):t.plurals(Math.abs(r));let o=t.numbers[n];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const i=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!Vp.includes(this.options.compatibilityJSON)}}const _s=function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=$p(e,t,r);return!i&&o&&U(r)&&(i=ti(e,r,n),i===void 0&&(i=ti(t,r,n))),i},Lo=e=>e.replace(/\$/g,"$$$$");class Jp{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=gt.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:o,prefix:i,prefixEscaped:s,suffix:a,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:d,nestingPrefix:f,nestingPrefixEscaped:v,nestingSuffix:y,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:S,alwaysFormat:T}=t.interpolation;this.escape=r!==void 0?r:jp,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=i?ur(i):s||"{{",this.suffix=a?ur(a):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=f?ur(f):v||ur("$t("),this.nestingSuffix=y?ur(y):m||ur(")"),this.nestingOptionsSeparator=h||",",this.maxReplaces=S||1e3,this.alwaysFormat=T!==void 0?T:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,n)=>r&&r.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,r,n,o){let i,s,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=v=>{if(v.indexOf(this.formatSeparator)<0){const S=_s(r,l,v,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(S,void 0,n,{...o,...r,interpolationkey:v}):S}const y=v.split(this.formatSeparator),m=y.shift().trim(),h=y.join(this.formatSeparator).trim();return this.format(_s(r,l,m,this.options.keySeparator,this.options.ignoreJSONStructure),h,n,{...o,...r,interpolationkey:m})};this.resetRegExp();const u=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,d=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:v=>Lo(v)},{regex:this.regexp,safeValue:v=>this.escapeValue?Lo(this.escape(v)):Lo(v)}].forEach(v=>{for(a=0;i=v.regex.exec(t);){const y=i[1].trim();if(s=c(y),s===void 0)if(typeof u=="function"){const h=u(t,i,o);s=U(h)?h:""}else if(o&&Object.prototype.hasOwnProperty.call(o,y))s="";else if(d){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),s="";else!U(s)&&!this.useRawValueToEscape&&(s=xs(s));const m=v.safeValue(s);if(t=t.replace(i[0],m),d?(v.regex.lastIndex+=s.length,v.regex.lastIndex-=i[0].length):v.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,i,s;const a=(l,c)=>{const u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;const d=l.split(new RegExp(`${u}[ ]*{`));let f=`{${d[1]}`;l=d[0],f=this.interpolate(f,s);const v=f.match(/'/g),y=f.match(/"/g);(v&&v.length%2===0&&!y||y.length%2!==0)&&(f=f.replace(/'/g,'"'));try{s=JSON.parse(f),c&&(s={...c,...s})}catch(m){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,m),`${l}${u}${f}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l};for(;o=this.nestingRegexp.exec(t);){let l=[];s={...n},s=s.replace&&!U(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let c=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const u=o[1].split(this.formatSeparator).map(d=>d.trim());o[1]=u.shift(),l=u,c=!0}if(i=r(a.call(this,o[1].trim(),s),s),i&&o[0]===t&&!U(i))return i;U(i)||(i=xs(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),i=""),c&&(i=l.reduce((u,d)=>this.format(u,d,n.lng,{...n,interpolationkey:o[1].trim()}),i.trim())),t=t.replace(o[0],i),this.regexp.lastIndex=0}return t}}const Hp=e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const o=n[1].substring(0,n[1].length-1);t==="currency"&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach(s=>{if(s){const[a,...l]=s.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=a.trim();r[u]||(r[u]=c),c==="false"&&(r[u]=!1),c==="true"&&(r[u]=!0),isNaN(c)||(r[u]=parseInt(c,10))}})}return{formatName:t,formatOptions:r}},fr=e=>{const t={};return(r,n,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const s=n+JSON.stringify(i);let a=t[s];return a||(a=e(Fn(n),o),t[s]=a),a(r)}};class Wp{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=gt.create("formatter"),this.options=t,this.formats={number:fr((r,n)=>{const o=new Intl.NumberFormat(r,{...n});return i=>o.format(i)}),currency:fr((r,n)=>{const o=new Intl.NumberFormat(r,{...n,style:"currency"});return i=>o.format(i)}),datetime:fr((r,n)=>{const o=new Intl.DateTimeFormat(r,{...n});return i=>o.format(i)}),relativetime:fr((r,n)=>{const o=new Intl.RelativeTimeFormat(r,{...n});return i=>o.format(i,n.range||"day")}),list:fr((r,n)=>{const o=new Intl.ListFormat(r,{...n});return i=>o.format(i)})},this.init(t)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=r.interpolation.formatSeparator||","}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=fr(r)}format(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=r.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(a=>a.indexOf(")")>-1)){const a=i.findIndex(l=>l.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,a)].join(this.formatSeparator)}return i.reduce((a,l)=>{const{formatName:c,formatOptions:u}=Hp(l);if(this.formats[c]){let d=a;try{const f=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},v=f.locale||f.lng||o.locale||o.lng||n;d=this.formats[c](a,v,{...u,...o,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${c}`);return a},t)}}const Gp=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class qp extends ao{constructor(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=o,this.logger=gt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,o.backend,o)}queueLoad(t,r,n,o){const i={},s={},a={},l={};return t.forEach(c=>{let u=!0;r.forEach(d=>{const f=`${c}|${d}`;!n.reload&&this.store.hasResourceBundle(c,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?s[f]===void 0&&(s[f]=!0):(this.state[f]=1,u=!1,s[f]===void 0&&(s[f]=!0),i[f]===void 0&&(i[f]=!0),l[d]===void 0&&(l[d]=!0)))}),u||(a[c]=!0)}),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(t,r,n){const o=t.split("|"),i=o[0],s=o[1];r&&this.emit("failedLoading",i,s,r),!r&&n&&this.store.addResourceBundle(i,s,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2,r&&n&&(this.state[t]=0);const a={};this.queue.forEach(l=>{Pp(l.loaded,[i],s),Gp(l,t),r&&l.errors.push(r),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{a[c]||(a[c]={});const u=l.loaded[c];u.length&&u.forEach(d=>{a[c][d]===void 0&&(a[c][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:n,tried:o,wait:i,callback:s});return}this.readingCalls++;const a=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(c&&u&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,n,o+1,i*2,s)},i);return}s(c,u)},l=this.backend[n].bind(this.backend);if(l.length===2){try{const c=l(t,r);c&&typeof c.then=="function"?c.then(u=>a(null,u)).catch(a):a(null,c)}catch(c){a(c)}return}return l(t,r,a)}prepareLoading(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();U(t)&&(t=this.languageUtils.toResolveHierarchy(t)),U(r)&&(r=[r]);const i=this.queueLoad(t,r,n,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(s=>{this.loadOne(s)})}load(t,r,n){this.prepareLoading(t,r,{},n)}reload(t,r,n){this.prepareLoading(t,r,{reload:!0},n)}loadOne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=t.split("|"),o=n[0],i=n[1];this.read(o,i,"read",void 0,void 0,(s,a)=>{s&&this.logger.warn(`${r}loading namespace ${i} for language ${o} failed`,s),!s&&a&&this.logger.log(`${r}loaded namespace ${i} for language ${o}`,a),this.loaded(t,s,a)})}saveMissing(t,r,n,o,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend&&this.backend.create){const l={...s,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let u;c.length===5?u=c(t,r,n,o,l):u=c(t,r,n,o),u&&typeof u.then=="function"?u.then(d=>a(null,d)).catch(a):a(null,u)}catch(u){a(u)}else c(t,r,n,o,a,l)}!t||!t[0]||this.store.addResource(t[0],r,n,o)}}}const Ps=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),U(e[1])&&(t.defaultValue=e[1]),U(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const r=e[3]||e[2];Object.keys(r).forEach(n=>{t[n]=r[n]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),$s=e=>(U(e.ns)&&(e.ns=[e.ns]),U(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),U(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),hn=()=>{},Kp=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class qr extends ao{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=$s(t),this.services={},this.logger=gt,this.modules={external:[]},Kp(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(){var t=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(n=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(U(r.ns)?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const o=Ps();this.options={...o,...this.options,...$s(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);const i=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?gt.init(i(this.modules.logger),this.options):gt.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=Wp);const d=new Cs(this.options);this.store=new Os(this.options.resources,this.options);const f=this.services;f.logger=gt,f.resourceStore=this.store,f.languageUtils=d,f.pluralResolver=new zp(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(f.formatter=i(u),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new Jp(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new qp(i(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(v){for(var y=arguments.length,m=new Array(y>1?y-1:0),h=1;h<y;h++)m[h-1]=arguments[h];t.emit(v,...m)}),this.modules.languageDetector&&(f.languageDetector=i(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=i(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new Bn(this.services,this.options),this.translator.on("*",function(v){for(var y=arguments.length,m=new Array(y>1?y-1:0),h=1;h<y;h++)m[h-1]=arguments[h];t.emit(v,...m)}),this.modules.external.forEach(v=>{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,n||(n=hn),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=function(){return t.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return t.store[u](...arguments),t}});const l=Mr(),c=()=>{const u=(d,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(f),n(d,f)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:hn;const o=U(t)?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const i=[],s=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(c=>{c!=="cimode"&&i.indexOf(c)<0&&i.push(c)})};o?s(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload&&this.options.preload.forEach(a=>s(a)),this.services.backendConnector.load(i,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(a)})}else n(null)}reloadResources(t,r,n){const o=Mr();return typeof t=="function"&&(n=t,t=void 0),typeof r=="function"&&(n=r,r=void 0),t||(t=this.languages),r||(r=this.options.ns),n||(n=hn),this.services.backendConnector.reload(t,r,i=>{o.resolve(),n(i)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&ul.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let r=0;r<this.languages.length;r++){const n=this.languages[r];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(t,r){var n=this;this.isLanguageChangingTo=t;const o=Mr();this.emit("languageChanging",t);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},s=(l,c)=>{c?(i(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,o.resolve(function(){return n.t(...arguments)}),r&&r(l,function(){return n.t(...arguments)})},a=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const c=U(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||i(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,u=>{s(u,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),o}getFixedT(t,r,n){var o=this;const i=function(s,a){let l;if(typeof a!="object"){for(var c=arguments.length,u=new Array(c>2?c-2:0),d=2;d<c;d++)u[d-2]=arguments[d];l=o.options.overloadTranslationOptionHandler([s,a].concat(u))}else l={...a};l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||n||i.keyPrefix);const f=o.options.keySeparator||".";let v;return l.keyPrefix&&Array.isArray(s)?v=s.map(y=>`${l.keyPrefix}${f}${y}`):v=l.keyPrefix?`${l.keyPrefix}${f}${s}`:s,o.t(v,l)};return U(t)?i.lng=t:i.lngs=t,i.ns=r,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const s=(a,l)=>{const c=this.services.backendConnector.state[`${a}|${l}`];return c===-1||c===0||c===2};if(r.precheck){const a=r.precheck(this,s);if(a!==void 0)return a}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(n,t)&&(!o||s(i,t)))}loadNamespaces(t,r){const n=Mr();return this.options.ns?(U(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{n.resolve(),r&&r(o)}),n):(r&&r(),Promise.resolve())}loadLanguages(t,r){const n=Mr();U(t)&&(t=[t]);const o=this.options.preload||[],i=t.filter(s=>o.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return i.length?(this.options.preload=o.concat(i),this.loadResources(s=>{n.resolve(),r&&r(s)}),n):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services&&this.services.languageUtils||new Cs(Ps());return r.indexOf(n.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new qr(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:hn;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},i=new qr(o);return(t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new Os(this.store.data,o),i.services.resourceStore=i.store),i.translator=new Bn(i.services,o),i.translator.on("*",function(a){for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];i.emit(a,...c)}),i.init(o,r),i.translator.options=o,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const _e=qr.createInstance();_e.createInstance=qr.createInstance;_e.createInstance;_e.dir;_e.init;_e.loadResources;_e.reloadResources;_e.use;_e.changeLanguage;_e.getFixedT;_e.t;_e.exists;_e.setDefaultNamespace;_e.hasLoadedNamespace;_e.loadNamespaces;_e.loadLanguages;const Yp={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Geschwindigkeit","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}}mm","Jogging.Cartesian.MotionType.lb":"Bewegungstyp","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Gelenkwerte","Jogging.Increment.Continuous.dd":"Fortlaufend","Jogging.Cartesian.Orientation.lb":"Orientierung","Jogging.Activate.bt":"Jogging aktivieren","Jogging.Activating.lb":"Jogging wird aktiviert","Jogging.JointLimitsReached.lb":"Joint-Limit für Joint {{jointNumbers}} erreicht","Jogging.Orientation.coordsys":"Base","Jogging.Orientation.tool":"Tool"},Xp={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Velocity","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}}mm","Jogging.Cartesian.MotionType.lb":"Motion type","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Joint values","Jogging.Increment.Continuous.dd":"Continuous","Jogging.Cartesian.Orientation.lb":"Orientation","Jogging.Activate.bt":"Activate jogging","Jogging.Activating.lb":"Activating jogging","Jogging.JointLimitsReached.lb":"Joint limit reached for joint {{jointNumbers}}","Jogging.Orientation.coordsys":"Base","Jogging.Orientation.tool":"Tool"},fl=_e.createInstance();fl.use($c).init({supportedLngs:["en","de"],resources:{en:{translations:Xp},de:{translations:Yp}},ns:["translations"],defaultNS:"translations",detection:{order:["navigator","htmlTag"]}});function sn(e){return r=>b.jsx(Zp,{children:b.jsx(e,{...r})})}const Zp=({children:e})=>b.jsx(Yt.I18nextProvider,{i18n:fl,children:e}),Qp=({title:e,titleId:t,...r},n)=>N.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("g",{id:"JogMinus"},N.createElement("path",{id:"Minus",d:"M0 13V8H21V13H0Z",fill:"white"}))),eg=W.forwardRef(Qp),tg=({title:e,titleId:t,...r},n)=>N.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("g",{id:"JogPlus"},N.createElement("g",{id:"Plus"},N.createElement("path",{d:"M0 13V8H8V13H0Z",fill:"white"}),N.createElement("path",{d:"M8 0L13 2.18557e-07L13 21H8L8 0Z",fill:"white"}),N.createElement("path",{d:"M13 13V8H21V13H13Z",fill:"white"})))),rg=W.forwardRef(tg);function lo(e){W.useEffect(e,[])}function dl(e){lo(()=>dt.autorun(e))}function $i(e,t,r){lo(()=>dt.reaction(e,t,r))}function wr(e){return lo(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}const ri=sn(ke.observer(({colors:e,label:t,getDisplayedValue:r,startJogging:n,stopJogging:o,disabled:i,activeJoggingDirection:s,...a})=>{var k,O,w,C,R,z,se;wr(()=>{const V=r(),M=f.current;M&&(M.textContent=V)});const l=$.useTheme(),[c,u]=W.useState(null);W.useEffect(()=>{i&&T()},[i]);const d=s||c,f=W.useRef(null);e||(e={color:"#fff",backgroundColor:"#000",borderColor:"#000",buttonBackgroundColor:{disabled:"#000",default:"#000",hovered:"#000",pressed:"#000"}});const v=d?(k=e.buttonBackgroundColor)==null?void 0:k.pressed:e.borderColor,y={width:"55px",color:e.color,path:{fill:e.color},alignContent:"center",fontSize:"37px",svg:{pointerEvents:"none"}},m={...y,backgroundColor:(O=e.buttonBackgroundColor)==null?void 0:O.default,":hover":{backgroundColor:(w=e.buttonBackgroundColor)==null?void 0:w.hovered},":active":{backgroundColor:(C=e.buttonBackgroundColor)==null?void 0:C.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor}},":disabled":{backgroundColor:(R=e.buttonBackgroundColor)==null?void 0:R.disabled,"svg path":{fill:l.palette.action.disabled}}},h={...y,backgroundColor:(z=e.buttonBackgroundColor)==null?void 0:z.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor},":disabled":{backgroundColor:(se=e.buttonBackgroundColor)==null?void 0:se.pressed,"svg path":{fill:l.palette.action.disabled}}};function S(V,M){i||V.button===0&&(u(M),n(M))}function T(){u(null),o()}return b.jsxs(yr,{height:"64px",direction:"row",justifyContent:"center",...a,children:[b.jsx($.IconButton,{disabled:i,disableRipple:!0,onPointerDown:V=>S(V,"-"),onPointerUp:T,onPointerOut:T,size:"large",sx:{...d==="-"?h:m,borderRadius:"16px 0px 0px 16px",borderLeft:`2px solid ${v??"#fff"}`,borderBottom:`2px solid ${v??"#fff"}`,borderTop:`2px solid ${v??"#fff"}`},children:b.jsx(eg,{})}),b.jsxs(yr,{spacing:"6px",sx:{width:"150px",backgroundColor:e.backgroundColor,alignItems:"center",justifyContent:"center",opacity:"0.9",borderBottom:`2px solid ${v??"#fff"}`,borderTop:`2px solid ${v??"#fff"}`},children:[b.jsx(yr,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none",color:e.color,".MuiTypography-root":{fontWeight:700,...i?{color:l.palette.action.disabled}:{}},...i?{"svg path":{fill:l.palette.action.disabled}}:{}},children:t}),b.jsx($.Typography,{height:"22px",sx:{fontSize:"15px",color:i?l.palette.action.disabled:e.color,fontWeight:700},ref:f,children:r()})]}),b.jsx($.IconButton,{disableRipple:!0,disabled:i,onPointerDown:V=>S(V,"+"),onPointerUp:T,onPointerOut:T,size:"large",sx:{...d==="+"?h:m,borderRadius:"0px 16px 16px 0px",borderRight:`2px solid ${v??"#fff"}`,borderBottom:`2px solid ${v??"#fff"}`,borderTop:`2px solid ${v??"#fff"}`},children:b.jsx(rg,{})})]})}));var ki={},No={};function ng(e){return nn("MuiSvgIcon",e)}Ga("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const og=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ig=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Ce(t)}`,`fontSize${Ce(r)}`]};return Oi(o,ng,n)},sg=Et("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Ce(r.color)}`],t[`fontSize${Ce(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,s,a,l,c,u,d,f,v,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(s=i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem",medium:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(d=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?d:{action:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),Un=N.forwardRef(function(t,r){const n=Pi({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24"}=n,v=Ve(n,og),y=N.isValidElement(o)&&o.type==="svg",m=_({},n,{color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:y}),h={};u||(h.viewBox=f);const S=ig(m);return b.jsxs(sg,_({as:a,className:mt(S.root,i),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r},h,v,y&&o.props,{ownerState:m,children:[y?o.props.children:o,d?b.jsx("title",{children:d}):null]}))});process.env.NODE_ENV!=="production"&&(Un.propTypes={children:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),p.string]),component:p.elementType,fontSize:p.oneOfType([p.oneOf(["inherit","large","medium","small"]),p.string]),htmlColor:p.string,inheritViewBox:p.bool,shapeRendering:p.string,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),titleAccess:p.string,viewBox:p.string});Un.muiName="SvgIcon";function ag(e,t){function r(n,o){return b.jsx(Un,_({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Un.muiName,N.memo(N.forwardRef(r))}const lg={configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
78
+ `)),Ha.configure(e)}},cg=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Ce,createChainedFunction:Ff,createSvgIcon:ag,debounce:Vf,deprecatedPropType:Bf,isMuiElement:Uf,ownerDocument:mr,ownerWindow:zf,requirePropFactory:Jf,setRef:Xa,unstable_ClassNameGenerator:lg,unstable_useEnhancedEffect:wi,unstable_useId:Wf,unsupportedProp:Gf,useControlled:Za,useEventCallback:Rn,useForkRef:Nn,useIsFocusVisible:Qa},Symbol.toStringTag,{value:"Module"})),ug=Ot(cg);var ks;function pl(){return ks||(ks=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=ug}(No)),No}var fg=so;Object.defineProperty(ki,"__esModule",{value:!0});var gl=ki.default=void 0,dg=fg(pl()),pg=b;gl=ki.default=(0,dg.default)((0,pg.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");var ji={},gg=so;Object.defineProperty(ji,"__esModule",{value:!0});var hl=ji.default=void 0,hg=gg(pl()),mg=b;hl=ji.default=(0,hg.default)((0,mg.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function Wt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ml=typeof global=="object"&&global&&global.Object===Object&&global,yg=typeof self=="object"&&self&&self.Object===Object&&self,bt=ml||yg||Function("return this")(),Mo=function(){return bt.Date.now()},bg=/\s/;function vg(e){for(var t=e.length;t--&&bg.test(e.charAt(t)););return t}var xg=/^\s+/;function Sg(e){return e&&e.slice(0,vg(e)+1).replace(xg,"")}var Nt=bt.Symbol,yl=Object.prototype,wg=yl.hasOwnProperty,Tg=yl.toString,Dr=Nt?Nt.toStringTag:void 0;function Og(e){var t=wg.call(e,Dr),r=e[Dr];try{e[Dr]=void 0;var n=!0}catch{}var o=Tg.call(e);return n&&(t?e[Dr]=r:delete e[Dr]),o}var Eg=Object.prototype,Cg=Eg.toString;function Rg(e){return Cg.call(e)}var _g="[object Null]",Pg="[object Undefined]",js=Nt?Nt.toStringTag:void 0;function Xt(e){return e==null?e===void 0?Pg:_g:js&&js in Object(e)?Og(e):Rg(e)}function Gt(e){return e!=null&&typeof e=="object"}var $g="[object Symbol]";function co(e){return typeof e=="symbol"||Gt(e)&&Xt(e)==$g}var As=NaN,kg=/^[-+]0x[0-9a-f]+$/i,jg=/^0b[01]+$/i,Ag=/^0o[0-7]+$/i,Ig=parseInt;function Is(e){if(typeof e=="number")return e;if(co(e))return As;if(Wt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Wt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Sg(e);var r=jg.test(e);return r||Ag.test(e)?Ig(e.slice(2),r?2:8):kg.test(e)?As:+e}var Lg="Expected a function",Ng=Math.max,Mg=Math.min;function Dg(e,t,r){var n,o,i,s,a,l,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(Lg);t=Is(t)||0,Wt(r)&&(u=!!r.leading,d="maxWait"in r,i=d?Ng(Is(r.maxWait)||0,t):i,f="trailing"in r?!!r.trailing:f);function v(C){var R=n,z=o;return n=o=void 0,c=C,s=e.apply(z,R),s}function y(C){return c=C,a=setTimeout(S,t),u?v(C):s}function m(C){var R=C-l,z=C-c,se=t-R;return d?Mg(se,i-z):se}function h(C){var R=C-l,z=C-c;return l===void 0||R>=t||R<0||d&&z>=i}function S(){var C=Mo();if(h(C))return T(C);a=setTimeout(S,m(C))}function T(C){return a=void 0,f&&n?v(C):(n=o=void 0,s)}function k(){a!==void 0&&clearTimeout(a),c=0,n=l=o=a=void 0}function O(){return a===void 0?s:T(Mo())}function w(){var C=Mo(),R=h(C);if(n=arguments,o=this,l=C,R){if(a===void 0)return y(l);if(d)return clearTimeout(a),a=setTimeout(S,t),v(l)}return a===void 0&&(a=setTimeout(S,t)),s}return w.cancel=k,w.flush=O,w}var Fg="Expected a function";function Vg(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(Fg);return Wt(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Dg(e,t,{leading:n,maxWait:t,trailing:o})}const bl=sn(ke.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:n,getValueDegs:o,disabled:i,...s})=>{var k,O,w,C,R,z,se;const{t:a}=Yt.useTranslation(),[l,c]=W.useState(),u=$.useTheme(),d={background:(k=u.palette.backgroundPaperElevation)==null?void 0:k[4],color:(O=u.palette.backgroundPaperElevation)==null?void 0:O[11]},f=ke.useLocalObservable(()=>({activeJoggingDir:null,startJogging(V){this.activeJoggingDir=V,e(V)},stopJogging(){this.activeJoggingDir=null,t()}})),v=Vg(()=>{c(o())},50);wr(v);function y(V){V.button===0&&f.startJogging("-")}function m(V){V.button===0&&f.startJogging("+")}function h(V){f.stopJogging()}function S(V){V.target===V.currentTarget&&f.stopJogging()}function T(V,M=1){if(V===void 0||isNaN(V))return"";const G=a("General.degree.variable",{amount:V.toFixed(M)});return V>0&&M===0?`+${G}`:G}return b.jsxs(yr,{height:"64px",width:"100%",maxWidth:"260px",direction:"row",...s,sx:{"& .MuiIconButton-root":{width:"52px",color:u.palette.text.primary,alignContent:"center",backgroundColor:(w=u.palette.backgroundPaperElevation)==null?void 0:w[11],"& svg":{width:"42px",height:"42px"},"&.Mui-disabled":{backgroundColor:(C=u.palette.backgroundPaperElevation)==null?void 0:C[11],color:u.palette.action.disabled,opacity:1},"&:hover":{backgroundColor:(R=u.palette.backgroundPaperElevation)==null?void 0:R[9]},"&:active":{...d}}},children:[b.jsx($.IconButton,{onPointerDown:y,onPointerUp:h,onPointerOut:S,disabled:i,disableRipple:!0,sx:{borderRadius:"16px 0px 0px 16px",...f.activeJoggingDir==="-"?d:{}},children:b.jsx(gl,{})}),b.jsxs(yr,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{borderStyle:"solid",borderLeftWidth:0,borderRightWidth:0,border:"none",backgroundColor:(z=u.palette.backgroundPaperElevation)==null?void 0:z[11],paddingLeft:"20px",paddingRight:"20px",zIndex:1},children:[b.jsx($.Typography,{sx:{fontSize:"15px",fontWeight:700,position:"relative",top:"5px",color:i?u.palette.action.disabled:u.palette.text.primary},children:T(l)}),b.jsx($.Slider,{disabled:!0,"aria-label":"Joint position",min:r,max:n,value:l||0,track:!1,sx:{"& .MuiSlider-mark":{display:"none"},"& .MuiSlider-thumb":{width:"5px",height:"12px",borderRadius:"2px",color:i?u.palette.action.disabled:u.palette.text.primary},"& .MuiSlider-markLabel":{top:"20px",fontSize:"12px",color:i?u.palette.action.disabled:u.palette.text.secondary},"& .MuiSlider-rail":{backgroundColor:(se=u.palette.backgroundPaperElevation)==null?void 0:se[5],opacity:1}},marks:r!==void 0&&n!==void 0&&[{value:r,label:T(r,0)},{value:n,label:T(n,0)}]})]}),b.jsx($.IconButton,{onPointerDown:m,onPointerUp:h,onPointerOut:S,disabled:i,disableRipple:!0,sx:{borderRadius:"0px 16px 16px 0px",...f.activeJoggingDir==="+"?d:{}},children:b.jsx(hl,{})})]})}));function vl(e,t){return function(){return e.apply(t,arguments)}}const{toString:Bg}=Object.prototype,{getPrototypeOf:Ai}=Object,uo=(e=>t=>{const r=Bg.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),st=e=>(e=e.toLowerCase(),t=>uo(t)===e),fo=e=>t=>typeof t===e,{isArray:Tr}=Array,Kr=fo("undefined");function Ug(e){return e!==null&&!Kr(e)&&e.constructor!==null&&!Kr(e.constructor)&&We(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const xl=st("ArrayBuffer");function zg(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&xl(e.buffer),t}const Jg=fo("string"),We=fo("function"),Sl=fo("number"),po=e=>e!==null&&typeof e=="object",Hg=e=>e===!0||e===!1,kn=e=>{if(uo(e)!=="object")return!1;const t=Ai(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Wg=st("Date"),Gg=st("File"),qg=st("Blob"),Kg=st("FileList"),Yg=e=>po(e)&&We(e.pipe),Xg=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||We(e.append)&&((t=uo(e))==="formdata"||t==="object"&&We(e.toString)&&e.toString()==="[object FormData]"))},Zg=st("URLSearchParams"),[Qg,eh,th,rh]=["ReadableStream","Request","Response","Headers"].map(st),nh=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function an(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Tr(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let a;for(n=0;n<s;n++)a=i[n],t.call(null,e[a],a,e)}}function wl(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const zt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Tl=e=>!Kr(e)&&e!==zt;function ni(){const{caseless:e}=Tl(this)&&this||{},t={},r=(n,o)=>{const i=e&&wl(t,o)||o;kn(t[i])&&kn(n)?t[i]=ni(t[i],n):kn(n)?t[i]=ni({},n):Tr(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&an(arguments[n],r);return t}const oh=(e,t,r,{allOwnKeys:n}={})=>(an(t,(o,i)=>{r&&We(o)?e[i]=vl(o,r):e[i]=o},{allOwnKeys:n}),e),ih=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),sh=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},ah=(e,t,r,n)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&Ai(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},lh=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},ch=e=>{if(!e)return null;if(Tr(e))return e;let t=e.length;if(!Sl(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},uh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ai(Uint8Array)),fh=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},dh=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},ph=st("HTMLFormElement"),gh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Ls=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),hh=st("RegExp"),Ol=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};an(r,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(n[i]=s||o)}),Object.defineProperties(e,n)},mh=e=>{Ol(e,(t,r)=>{if(We(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(We(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},yh=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return Tr(e)?n(e):n(String(e).split(t)),r},bh=()=>{},vh=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Do="abcdefghijklmnopqrstuvwxyz",Ns="0123456789",El={DIGIT:Ns,ALPHA:Do,ALPHA_DIGIT:Do+Do.toUpperCase()+Ns},xh=(e=16,t=El.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Sh(e){return!!(e&&We(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const wh=e=>{const t=new Array(10),r=(n,o)=>{if(po(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=Tr(n)?[]:{};return an(n,(s,a)=>{const l=r(s,o+1);!Kr(l)&&(i[a]=l)}),t[o]=void 0,i}}return n};return r(e,0)},Th=st("AsyncFunction"),Oh=e=>e&&(po(e)||We(e))&&We(e.then)&&We(e.catch),Cl=((e,t)=>e?setImmediate:t?((r,n)=>(zt.addEventListener("message",({source:o,data:i})=>{o===zt&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),zt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",We(zt.postMessage)),Eh=typeof queueMicrotask<"u"?queueMicrotask.bind(zt):typeof process<"u"&&process.nextTick||Cl,x={isArray:Tr,isArrayBuffer:xl,isBuffer:Ug,isFormData:Xg,isArrayBufferView:zg,isString:Jg,isNumber:Sl,isBoolean:Hg,isObject:po,isPlainObject:kn,isReadableStream:Qg,isRequest:eh,isResponse:th,isHeaders:rh,isUndefined:Kr,isDate:Wg,isFile:Gg,isBlob:qg,isRegExp:hh,isFunction:We,isStream:Yg,isURLSearchParams:Zg,isTypedArray:uh,isFileList:Kg,forEach:an,merge:ni,extend:oh,trim:nh,stripBOM:ih,inherits:sh,toFlatObject:ah,kindOf:uo,kindOfTest:st,endsWith:lh,toArray:ch,forEachEntry:fh,matchAll:dh,isHTMLForm:ph,hasOwnProperty:Ls,hasOwnProp:Ls,reduceDescriptors:Ol,freezeMethods:mh,toObjectSet:yh,toCamelCase:gh,noop:bh,toFiniteNumber:vh,findKey:wl,global:zt,isContextDefined:Tl,ALPHABET:El,generateString:xh,isSpecCompliantForm:Sh,toJSONObject:wh,isAsyncFn:Th,isThenable:Oh,setImmediate:Cl,asap:Eh};function J(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}x.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:x.toJSONObject(this.config),code:this.code,status:this.status}}});const Rl=J.prototype,_l={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{_l[e]={value:e}});Object.defineProperties(J,_l);Object.defineProperty(Rl,"isAxiosError",{value:!0});J.from=(e,t,r,n,o,i)=>{const s=Object.create(Rl);return x.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),J.call(s,e.message,t,r,n,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const Ch=null;function oi(e){return x.isPlainObject(e)||x.isArray(e)}function Pl(e){return x.endsWith(e,"[]")?e.slice(0,-2):e}function Ms(e,t,r){return e?e.concat(t).map(function(o,i){return o=Pl(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function Rh(e){return x.isArray(e)&&!e.some(oi)}const _h=x.toFlatObject(x,{},null,function(t){return/^is[A-Z]/.test(t)});function go(e,t,r){if(!x.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=x.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,h){return!x.isUndefined(h[m])});const n=r.metaTokens,o=r.visitor||u,i=r.dots,s=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&x.isSpecCompliantForm(t);if(!x.isFunction(o))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(x.isDate(y))return y.toISOString();if(!l&&x.isBlob(y))throw new J("Blob is not supported. Use a Buffer instead.");return x.isArrayBuffer(y)||x.isTypedArray(y)?l&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function u(y,m,h){let S=y;if(y&&!h&&typeof y=="object"){if(x.endsWith(m,"{}"))m=n?m:m.slice(0,-2),y=JSON.stringify(y);else if(x.isArray(y)&&Rh(y)||(x.isFileList(y)||x.endsWith(m,"[]"))&&(S=x.toArray(y)))return m=Pl(m),S.forEach(function(k,O){!(x.isUndefined(k)||k===null)&&t.append(s===!0?Ms([m],O,i):s===null?m:m+"[]",c(k))}),!1}return oi(y)?!0:(t.append(Ms(h,m,i),c(y)),!1)}const d=[],f=Object.assign(_h,{defaultVisitor:u,convertValue:c,isVisitable:oi});function v(y,m){if(!x.isUndefined(y)){if(d.indexOf(y)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(y),x.forEach(y,function(S,T){(!(x.isUndefined(S)||S===null)&&o.call(t,S,x.isString(T)?T.trim():T,m,f))===!0&&v(S,m?m.concat(T):[T])}),d.pop()}}if(!x.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Ds(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Ii(e,t){this._pairs=[],e&&go(e,this,t)}const $l=Ii.prototype;$l.append=function(t,r){this._pairs.push([t,r])};$l.toString=function(t){const r=t?function(n){return t.call(this,n,Ds)}:Ds;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Ph(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function kl(e,t,r){if(!t)return e;const n=r&&r.encode||Ph,o=r&&r.serialize;let i;if(o?i=o(t,r):i=x.isURLSearchParams(t)?t.toString():new Ii(t,r).toString(n),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Fs{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){x.forEach(this.handlers,function(n){n!==null&&t(n)})}}const jl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$h=typeof URLSearchParams<"u"?URLSearchParams:Ii,kh=typeof FormData<"u"?FormData:null,jh=typeof Blob<"u"?Blob:null,Ah={isBrowser:!0,classes:{URLSearchParams:$h,FormData:kh,Blob:jh},protocols:["http","https","file","blob","url","data"]},Li=typeof window<"u"&&typeof document<"u",ii=typeof navigator=="object"&&navigator||void 0,Ih=Li&&(!ii||["ReactNative","NativeScript","NS"].indexOf(ii.product)<0),Lh=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Nh=Li&&window.location.href||"http://localhost",Mh=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Li,hasStandardBrowserEnv:Ih,hasStandardBrowserWebWorkerEnv:Lh,navigator:ii,origin:Nh},Symbol.toStringTag,{value:"Module"})),Me={...Mh,...Ah};function Dh(e,t){return go(e,new Me.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return Me.isNode&&x.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Fh(e){return x.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Vh(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function Al(e){function t(r,n,o,i){let s=r[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),l=i>=r.length;return s=!s&&x.isArray(o)?o.length:s,l?(x.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!a):((!o[s]||!x.isObject(o[s]))&&(o[s]=[]),t(r,n,o[s],i)&&x.isArray(o[s])&&(o[s]=Vh(o[s])),!a)}if(x.isFormData(e)&&x.isFunction(e.entries)){const r={};return x.forEachEntry(e,(n,o)=>{t(Fh(n),o,r,0)}),r}return null}function Bh(e,t,r){if(x.isString(e))try{return(t||JSON.parse)(e),x.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const ln={transitional:jl,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=x.isObject(t);if(i&&x.isHTMLForm(t)&&(t=new FormData(t)),x.isFormData(t))return o?JSON.stringify(Al(t)):t;if(x.isArrayBuffer(t)||x.isBuffer(t)||x.isStream(t)||x.isFile(t)||x.isBlob(t)||x.isReadableStream(t))return t;if(x.isArrayBufferView(t))return t.buffer;if(x.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Dh(t,this.formSerializer).toString();if((a=x.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return go(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),Bh(t)):t}],transformResponse:[function(t){const r=this.transitional||ln.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(x.isResponse(t)||x.isReadableStream(t))return t;if(t&&x.isString(t)&&(n&&!this.responseType||o)){const s=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?J.from(a,J.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Me.classes.FormData,Blob:Me.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};x.forEach(["delete","get","head","post","put","patch"],e=>{ln.headers[e]={}});const Uh=x.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),zh=e=>{const t={};let r,n,o;return e&&e.split(`
79
+ `).forEach(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim(),!(!r||t[r]&&Uh[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Vs=Symbol("internals");function Fr(e){return e&&String(e).trim().toLowerCase()}function jn(e){return e===!1||e==null?e:x.isArray(e)?e.map(jn):String(e)}function Jh(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Hh=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Fo(e,t,r,n,o){if(x.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!x.isString(t)){if(x.isString(n))return t.indexOf(n)!==-1;if(x.isRegExp(n))return n.test(t)}}function Wh(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Gh(e,t){const r=x.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,s){return this[n].call(this,t,o,i,s)},configurable:!0})})}let De=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(a,l,c){const u=Fr(l);if(!u)throw new Error("header name must be a non-empty string");const d=x.findKey(o,u);(!d||o[d]===void 0||c===!0||c===void 0&&o[d]!==!1)&&(o[d||l]=jn(a))}const s=(a,l)=>x.forEach(a,(c,u)=>i(c,u,l));if(x.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(x.isString(t)&&(t=t.trim())&&!Hh(t))s(zh(t),r);else if(x.isHeaders(t))for(const[a,l]of t.entries())i(l,a,n);else t!=null&&i(r,t,n);return this}get(t,r){if(t=Fr(t),t){const n=x.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return Jh(o);if(x.isFunction(r))return r.call(this,o,n);if(x.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Fr(t),t){const n=x.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Fo(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(s){if(s=Fr(s),s){const a=x.findKey(n,s);a&&(!r||Fo(n,n[a],a,r))&&(delete n[a],o=!0)}}return x.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||Fo(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return x.forEach(this,(o,i)=>{const s=x.findKey(n,i);if(s){r[s]=jn(o),delete r[i];return}const a=t?Wh(i):String(i).trim();a!==i&&delete r[i],r[a]=jn(o),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return x.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&x.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
80
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Vs]=this[Vs]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Fr(s);n[a]||(Gh(o,s),n[a]=!0)}return x.isArray(t)?t.forEach(i):i(t),this}};De.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);x.reduceDescriptors(De.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});x.freezeMethods(De);function Vo(e,t){const r=this||ln,n=t||r,o=De.from(n.headers);let i=n.data;return x.forEach(e,function(a){i=a.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Il(e){return!!(e&&e.__CANCEL__)}function Or(e,t,r){J.call(this,e??"canceled",J.ERR_CANCELED,t,r),this.name="CanceledError"}x.inherits(Or,J,{__CANCEL__:!0});function Ll(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new J("Request failed with status code "+r.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function qh(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Kh(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=n[i];s||(s=c),r[o]=l,n[o]=c;let d=i,f=0;for(;d!==o;)f+=r[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-s<t)return;const v=u&&c-u;return v?Math.round(f*1e3/v):void 0}}function Yh(e,t){let r=0,n=1e3/t,o,i;const s=(c,u=Date.now())=>{r=u,o=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-r;d>=n?s(c,u):(o=c,i||(i=setTimeout(()=>{i=null,s(o)},n-d)))},()=>o&&s(o)]}const zn=(e,t,r=3)=>{let n=0;const o=Kh(50,250);return Yh(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,l=s-n,c=o(l),u=s<=a;n=s;const d={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&u?(a-s)/c:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},r)},Bs=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Us=e=>(...t)=>x.asap(()=>e(...t)),Xh=Me.hasStandardBrowserEnv?function(){const t=Me.navigator&&/(msie|trident)/i.test(Me.navigator.userAgent),r=document.createElement("a");let n;function o(i){let s=i;return t&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(s){const a=x.isString(s)?o(s):s;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}(),Zh=Me.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const s=[e+"="+encodeURIComponent(t)];x.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),x.isString(n)&&s.push("path="+n),x.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Qh(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function em(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Nl(e,t){return e&&!Qh(t)?em(e,t):t}const zs=e=>e instanceof De?{...e}:e;function qt(e,t){t=t||{};const r={};function n(c,u,d){return x.isPlainObject(c)&&x.isPlainObject(u)?x.merge.call({caseless:d},c,u):x.isPlainObject(u)?x.merge({},u):x.isArray(u)?u.slice():u}function o(c,u,d){if(x.isUndefined(u)){if(!x.isUndefined(c))return n(void 0,c,d)}else return n(c,u,d)}function i(c,u){if(!x.isUndefined(u))return n(void 0,u)}function s(c,u){if(x.isUndefined(u)){if(!x.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function a(c,u,d){if(d in t)return n(c,u);if(d in e)return n(void 0,c)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,u)=>o(zs(c),zs(u),!0)};return x.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||o,f=d(e[u],t[u],u);x.isUndefined(f)&&d!==a||(r[u]=f)}),r}const Ml=e=>{const t=qt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;t.headers=s=De.from(s),t.url=kl(Nl(t.baseURL,t.url),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(x.isFormData(r)){if(Me.hasStandardBrowserEnv||Me.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Me.hasStandardBrowserEnv&&(n&&x.isFunction(n)&&(n=n(t)),n||n!==!1&&Xh(t.url))){const c=o&&i&&Zh.read(i);c&&s.set(o,c)}return t},tm=typeof XMLHttpRequest<"u",rm=tm&&function(e){return new Promise(function(r,n){const o=Ml(e);let i=o.data;const s=De.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=o,u,d,f,v,y;function m(){v&&v(),y&&y(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let h=new XMLHttpRequest;h.open(o.method.toUpperCase(),o.url,!0),h.timeout=o.timeout;function S(){if(!h)return;const k=De.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),w={data:!a||a==="text"||a==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:k,config:e,request:h};Ll(function(R){r(R),m()},function(R){n(R),m()},w),h=null}"onloadend"in h?h.onloadend=S:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(S)},h.onabort=function(){h&&(n(new J("Request aborted",J.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new J("Network Error",J.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let O=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const w=o.transitional||jl;o.timeoutErrorMessage&&(O=o.timeoutErrorMessage),n(new J(O,w.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,h)),h=null},i===void 0&&s.setContentType(null),"setRequestHeader"in h&&x.forEach(s.toJSON(),function(O,w){h.setRequestHeader(w,O)}),x.isUndefined(o.withCredentials)||(h.withCredentials=!!o.withCredentials),a&&a!=="json"&&(h.responseType=o.responseType),c&&([f,y]=zn(c,!0),h.addEventListener("progress",f)),l&&h.upload&&([d,v]=zn(l),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",v)),(o.cancelToken||o.signal)&&(u=k=>{h&&(n(!k||k.type?new Or(null,e,h):k),h.abort(),h=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const T=qh(o.url);if(T&&Me.protocols.indexOf(T)===-1){n(new J("Unsupported protocol "+T+":",J.ERR_BAD_REQUEST,e));return}h.send(i||null)})},nm=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const i=function(c){if(!o){o=!0,a();const u=c instanceof Error?c:this.reason;n.abort(u instanceof J?u:new Or(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,i(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=n;return l.unsubscribe=()=>x.asap(a),l}},om=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},im=async function*(e,t){for await(const r of sm(e))yield*om(r,t)},sm=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Js=(e,t,r,n)=>{const o=im(e,t);let i=0,s,a=l=>{s||(s=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await o.next();if(c){a(),l.close();return}let d=u.byteLength;if(r){let f=i+=d;r(f)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),o.return()}},{highWaterMark:2})},ho=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Dl=ho&&typeof ReadableStream=="function",am=ho&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Fl=(e,...t)=>{try{return!!e(...t)}catch{return!1}},lm=Dl&&Fl(()=>{let e=!1;const t=new Request(Me.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Hs=64*1024,si=Dl&&Fl(()=>x.isReadableStream(new Response("").body)),Jn={stream:si&&(e=>e.body)};ho&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Jn[t]&&(Jn[t]=x.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new J(`Response type '${t}' is not supported`,J.ERR_NOT_SUPPORT,n)})})})(new Response);const cm=async e=>{if(e==null)return 0;if(x.isBlob(e))return e.size;if(x.isSpecCompliantForm(e))return(await new Request(Me.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(x.isArrayBufferView(e)||x.isArrayBuffer(e))return e.byteLength;if(x.isURLSearchParams(e)&&(e=e+""),x.isString(e))return(await am(e)).byteLength},um=async(e,t)=>{const r=x.toFiniteNumber(e.getContentLength());return r??cm(t)},fm=ho&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=Ml(e);c=c?(c+"").toLowerCase():"text";let v=nm([o,i&&i.toAbortSignal()],s),y;const m=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let h;try{if(l&&lm&&r!=="get"&&r!=="head"&&(h=await um(u,n))!==0){let w=new Request(t,{method:"POST",body:n,duplex:"half"}),C;if(x.isFormData(n)&&(C=w.headers.get("content-type"))&&u.setContentType(C),w.body){const[R,z]=Bs(h,zn(Us(l)));n=Js(w.body,Hs,R,z)}}x.isString(d)||(d=d?"include":"omit");const S="credentials"in Request.prototype;y=new Request(t,{...f,signal:v,method:r.toUpperCase(),headers:u.normalize().toJSON(),body:n,duplex:"half",credentials:S?d:void 0});let T=await fetch(y);const k=si&&(c==="stream"||c==="response");if(si&&(a||k&&m)){const w={};["status","statusText","headers"].forEach(se=>{w[se]=T[se]});const C=x.toFiniteNumber(T.headers.get("content-length")),[R,z]=a&&Bs(C,zn(Us(a),!0))||[];T=new Response(Js(T.body,Hs,R,()=>{z&&z(),m&&m()}),w)}c=c||"text";let O=await Jn[x.findKey(Jn,c)||"text"](T,e);return!k&&m&&m(),await new Promise((w,C)=>{Ll(w,C,{data:O,headers:De.from(T.headers),status:T.status,statusText:T.statusText,config:e,request:y})})}catch(S){throw m&&m(),S&&S.name==="TypeError"&&/fetch/i.test(S.message)?Object.assign(new J("Network Error",J.ERR_NETWORK,e,y),{cause:S.cause||S}):J.from(S,S&&S.code,e,y)}}),ai={http:Ch,xhr:rm,fetch:fm};x.forEach(ai,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ws=e=>`- ${e}`,dm=e=>x.isFunction(e)||e===null||e===!1,Vl={getAdapter:e=>{e=x.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){r=e[i];let s;if(n=r,!dm(r)&&(n=ai[(s=String(r)).toLowerCase()],n===void 0))throw new J(`Unknown adapter '${s}'`);if(n)break;o[s||"#"+i]=n}if(!n){const i=Object.entries(o).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since :
81
+ `+i.map(Ws).join(`
82
+ `):" "+Ws(i[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:ai};function Bo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Or(null,e)}function Gs(e){return Bo(e),e.headers=De.from(e.headers),e.data=Vo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Vl.getAdapter(e.adapter||ln.adapter)(e).then(function(n){return Bo(e),n.data=Vo.call(e,e.transformResponse,n),n.headers=De.from(n.headers),n},function(n){return Il(n)||(Bo(e),n&&n.response&&(n.response.data=Vo.call(e,e.transformResponse,n.response),n.response.headers=De.from(n.response.headers))),Promise.reject(n)})}const Bl="1.7.7",Ni={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ni[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const qs={};Ni.transitional=function(t,r,n){function o(i,s){return"[Axios v"+Bl+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,a)=>{if(t===!1)throw new J(o(s," has been removed"+(r?" in "+r:"")),J.ERR_DEPRECATED);return r&&!qs[s]&&(qs[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,s,a):!0}};function pm(e,t,r){if(typeof e!="object")throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new J("option "+i+" must be "+l,J.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new J("Unknown option "+i,J.ERR_BAD_OPTION)}}const li={assertOptions:pm,validators:Ni},At=li.validators;let Jt=class{constructor(t){this.defaults=t,this.interceptors={request:new Fs,response:new Fs}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
83
+ `+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=qt(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&li.assertOptions(n,{silentJSONParsing:At.transitional(At.boolean),forcedJSONParsing:At.transitional(At.boolean),clarifyTimeoutError:At.transitional(At.boolean)},!1),o!=null&&(x.isFunction(o)?r.paramsSerializer={serialize:o}:li.assertOptions(o,{encode:At.function,serialize:At.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&x.merge(i.common,i[r.method]);i&&x.forEach(["delete","get","head","post","put","patch","common"],y=>{delete i[y]}),r.headers=De.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(r)===!1||(l=l&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,d=0,f;if(!l){const y=[Gs.bind(this),void 0];for(y.unshift.apply(y,a),y.push.apply(y,c),f=y.length,u=Promise.resolve(r);d<f;)u=u.then(y[d++],y[d++]);return u}f=a.length;let v=r;for(d=0;d<f;){const y=a[d++],m=a[d++];try{v=y(v)}catch(h){m.call(this,h);break}}try{u=Gs.call(this,v)}catch(y){return Promise.reject(y)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=qt(this.defaults,t);const r=Nl(t.baseURL,t.url);return kl(r,t.params,t.paramsSerializer)}};x.forEach(["delete","get","head","options"],function(t){Jt.prototype[t]=function(r,n){return this.request(qt(n||{},{method:t,url:r,data:(n||{}).data}))}});x.forEach(["post","put","patch"],function(t){function r(n){return function(i,s,a){return this.request(qt(a||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Jt.prototype[t]=r(),Jt.prototype[t+"Form"]=r(!0)});let gm=class Ul{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{n.subscribe(a),i=a}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},t(function(i,s,a){n.reason||(n.reason=new Or(i,s,a),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Ul(function(o){t=o}),cancel:t}}};function hm(e){return function(r){return e.apply(null,r)}}function mm(e){return x.isObject(e)&&e.isAxiosError===!0}const ci={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ci).forEach(([e,t])=>{ci[t]=e});function zl(e){const t=new Jt(e),r=vl(Jt.prototype.request,t);return x.extend(r,Jt.prototype,t,{allOwnKeys:!0}),x.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return zl(qt(e,o))},r}const xe=zl(ln);xe.Axios=Jt;xe.CanceledError=Or;xe.CancelToken=gm;xe.isCancel=Il;xe.VERSION=Bl;xe.toFormData=go;xe.AxiosError=J;xe.Cancel=xe.CanceledError;xe.all=function(t){return Promise.all(t)};xe.spread=hm;xe.isAxiosError=mm;xe.mergeConfig=qt;xe.AxiosHeaders=De;xe.formToJSON=e=>Al(x.isHTMLForm(e)?new FormData(e):e);xe.getAdapter=Vl.getAdapter;xe.HttpStatusCode=ci;xe.default=xe;const{Axios:J1,AxiosError:Ks,CanceledError:H1,isCancel:W1,CancelToken:G1,VERSION:q1,all:K1,Cancel:Y1,isAxiosError:X1,spread:Z1,toFormData:Q1,AxiosHeaders:ev,HttpStatusCode:tv,formToJSON:rv,getAdapter:nv,mergeConfig:ov}=xe;function ym(e){try{return JSON.stringify(e)}catch{return}}function bm(e){var t,r,n,o;return e instanceof Ks&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof Ks&&e.response?`${(t=e.response)==null?void 0:t.status} ${(r=e.response)==null?void 0:r.statusText} from ${(n=e.response)==null?void 0:n.config.url}: ${JSON.stringify((o=e.response)==null?void 0:o.data)}`:e instanceof Error?e.message:`Unexpected error: ${ym(e)||e}`}const mo=e=>{const t=e.softTimeout||3e3,[r,n]=W.useState(!1),o=$.useTheme();return W.useEffect(()=>{const i=setTimeout(()=>{n(!0)},t);return()=>clearTimeout(i)}),b.jsx($.Stack,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",sx:{color:o.palette.text.primary},children:e.error?b.jsx(Jl,{loadingMessage:e.message,error:e.error}):b.jsxs(b.Fragment,{children:[b.jsx($.CircularProgress,{sx:{marginBottom:"24px"}}),!!e.message&&b.jsx("div",{children:e.message}),b.jsx($.Stack,{sx:{visibility:r?"visible":"hidden",marginTop:"1rem",color:o.palette.text.secondary},children:"This is taking longer than expected..."})]})})},Jl=e=>{const t=bm(e.error),r=e.error instanceof Error?e.error.stack:null,n=$.useTheme();return b.jsxs($.Stack,{sx:{maxHeight:"100%",maxWidth:"min(100%, 800px)",padding:2,overflow:"auto",color:n.palette.error.main,"& pre":{whiteSpace:"pre-wrap",wordBreak:"break-word",paddingBottom:"3rem"}},children:[(e.loadingMessage?`Error while ${Gn.lowerFirst($.capitalize(e.loadingMessage))} - `:"")+t,b.jsx("br",{}),r&&b.jsx("pre",{children:r})]})},vm=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),xm=W.forwardRef(vm),Sm=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),wm=W.forwardRef(Sm),Tm=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:19,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M9.522 14.811A.899.899 0 1 0 8.25 13.54L6.19 15.601V3.16L8.25 5.221A.9.9 0 0 0 9.522 3.95L5.926.354a.9.9 0 0 0-1.272 0L1.058 3.95a.9.9 0 1 0 1.271 1.271L4.391 3.16v12.442L2.329 13.54a.899.899 0 1 0-1.271 1.271l3.596 3.597a.9.9 0 0 0 1.272 0z",clipRule:"evenodd"})),Om=W.forwardRef(Tm),Em=({title:e,titleId:t,...r},n)=>N.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{d:"M8 16C5.76667 16 3.875 15.225 2.325 13.675C0.775 12.125 0 10.2333 0 8C0 5.76667 0.775 3.875 2.325 2.325C3.875 0.775 5.76667 0 8 0C9.15 0 10.25 0.2375 11.3 0.7125C12.35 1.1875 13.25 1.86667 14 2.75V0H16V7H9V5H13.2C12.6667 4.06667 11.9375 3.33333 11.0125 2.8C10.0875 2.26667 9.08333 2 8 2C6.33333 2 4.91667 2.58333 3.75 3.75C2.58333 4.91667 2 6.33333 2 8C2 9.66667 2.58333 11.0833 3.75 12.25C4.91667 13.4167 6.33333 14 8 14C9.28333 14 10.4417 13.6333 11.475 12.9C11.0583 14.1 12.5083 12.1667 11.475 12.9L12.9 14.325C11.4667 15.4417 9.83333 16 8 16Z",fill:"white"})),Cm=W.forwardRef(Em),Ys=e=>b.jsx($.Stack,{position:"absolute",left:0,top:0,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",sx:{backgroundColor:"rgba(0, 0, 0, 0.6)",backdropFilter:"blur(2px)",zIndex:100,...e.sx||{}},...Gn.omit(e,"sx")}),Hl=ke.observer(({store:e,children:t})=>{const{t:r}=Yt.useTranslation(),n=$.useTheme();function o(){var i,s;if(e.activationState==="inactive"&&!e.activationError)return b.jsx(Ys,{sx:{borderRadius:"6px",backgroundColor:`color-mix(in srgb, ${(i=n.palette.backgroundPaperElevation)==null?void 0:i[5]}, transparent)`},children:b.jsx($.Button,{color:"primary",variant:"contained",onClick:()=>e.activate({manual:!0}),disabled:e.isLocked,children:r("Jogging.Activate.bt")})});if(e.activationState==="loading"||e.activationError)return b.jsx(Ys,{sx:{backgroundColor:`color-mix(in srgb, ${(s=n.palette.backgroundPaperElevation)==null?void 0:s[5]}, transparent)`},children:b.jsx(mo,{message:r("Jogging.Activating.lb"),error:e.activationError})})}return b.jsxs($.Stack,{sx:{position:"relative",padding:"6px"},children:[o(),t]})});function Rm(){this.__data__=[],this.size=0}function Wl(e,t){return e===t||e!==e&&t!==t}function yo(e,t){for(var r=e.length;r--;)if(Wl(e[r][0],t))return r;return-1}var _m=Array.prototype,Pm=_m.splice;function $m(e){var t=this.__data__,r=yo(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Pm.call(t,r,1),--this.size,!0}function km(e){var t=this.__data__,r=yo(t,e);return r<0?void 0:t[r][1]}function jm(e){return yo(this.__data__,e)>-1}function Am(e,t){var r=this.__data__,n=yo(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Ct(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ct.prototype.clear=Rm;Ct.prototype.delete=$m;Ct.prototype.get=km;Ct.prototype.has=jm;Ct.prototype.set=Am;function Im(){this.__data__=new Ct,this.size=0}function Lm(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Nm(e){return this.__data__.get(e)}function Mm(e){return this.__data__.has(e)}var Dm="[object AsyncFunction]",Fm="[object Function]",Vm="[object GeneratorFunction]",Bm="[object Proxy]";function Gl(e){if(!Wt(e))return!1;var t=Xt(e);return t==Fm||t==Vm||t==Dm||t==Bm}var Uo=bt["__core-js_shared__"],Xs=function(){var e=/[^.]+$/.exec(Uo&&Uo.keys&&Uo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Um(e){return!!Xs&&Xs in e}var zm=Function.prototype,Jm=zm.toString;function Zt(e){if(e!=null){try{return Jm.call(e)}catch{}try{return e+""}catch{}}return""}var Hm=/[\\^$.*+?()[\]{}|]/g,Wm=/^\[object .+?Constructor\]$/,Gm=Function.prototype,qm=Object.prototype,Km=Gm.toString,Ym=qm.hasOwnProperty,Xm=RegExp("^"+Km.call(Ym).replace(Hm,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Zm(e){if(!Wt(e)||Um(e))return!1;var t=Gl(e)?Xm:Wm;return t.test(Zt(e))}function Qm(e,t){return e==null?void 0:e[t]}function Qt(e,t){var r=Qm(e,t);return Zm(r)?r:void 0}var Yr=Qt(bt,"Map"),Xr=Qt(Object,"create");function ey(){this.__data__=Xr?Xr(null):{},this.size=0}function ty(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ry="__lodash_hash_undefined__",ny=Object.prototype,oy=ny.hasOwnProperty;function iy(e){var t=this.__data__;if(Xr){var r=t[e];return r===ry?void 0:r}return oy.call(t,e)?t[e]:void 0}var sy=Object.prototype,ay=sy.hasOwnProperty;function ly(e){var t=this.__data__;return Xr?t[e]!==void 0:ay.call(t,e)}var cy="__lodash_hash_undefined__";function uy(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Xr&&t===void 0?cy:t,this}function Kt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Kt.prototype.clear=ey;Kt.prototype.delete=ty;Kt.prototype.get=iy;Kt.prototype.has=ly;Kt.prototype.set=uy;function fy(){this.size=0,this.__data__={hash:new Kt,map:new(Yr||Ct),string:new Kt}}function dy(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function bo(e,t){var r=e.__data__;return dy(t)?r[typeof t=="string"?"string":"hash"]:r.map}function py(e){var t=bo(this,e).delete(e);return this.size-=t?1:0,t}function gy(e){return bo(this,e).get(e)}function hy(e){return bo(this,e).has(e)}function my(e,t){var r=bo(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Rt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Rt.prototype.clear=fy;Rt.prototype.delete=py;Rt.prototype.get=gy;Rt.prototype.has=hy;Rt.prototype.set=my;var yy=200;function by(e,t){var r=this.__data__;if(r instanceof Ct){var n=r.__data__;if(!Yr||n.length<yy-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Rt(n)}return r.set(e,t),this.size=r.size,this}function Tt(e){var t=this.__data__=new Ct(e);this.size=t.size}Tt.prototype.clear=Im;Tt.prototype.delete=Lm;Tt.prototype.get=Nm;Tt.prototype.has=Mm;Tt.prototype.set=by;var vy="__lodash_hash_undefined__";function xy(e){return this.__data__.set(e,vy),this}function Sy(e){return this.__data__.has(e)}function Hn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Rt;++t<r;)this.add(e[t])}Hn.prototype.add=Hn.prototype.push=xy;Hn.prototype.has=Sy;function wy(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function Ty(e,t){return e.has(t)}var Oy=1,Ey=2;function ql(e,t,r,n,o,i){var s=r&Oy,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,v=r&Ey?new Hn:void 0;for(i.set(e,t),i.set(t,e);++d<a;){var y=e[d],m=t[d];if(n)var h=s?n(m,y,d,t,e,i):n(y,m,d,e,t,i);if(h!==void 0){if(h)continue;f=!1;break}if(v){if(!wy(t,function(S,T){if(!Ty(v,T)&&(y===S||o(y,S,r,n,i)))return v.push(T)})){f=!1;break}}else if(!(y===m||o(y,m,r,n,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var Zs=bt.Uint8Array;function Cy(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function Ry(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var _y=1,Py=2,$y="[object Boolean]",ky="[object Date]",jy="[object Error]",Ay="[object Map]",Iy="[object Number]",Ly="[object RegExp]",Ny="[object Set]",My="[object String]",Dy="[object Symbol]",Fy="[object ArrayBuffer]",Vy="[object DataView]",Qs=Nt?Nt.prototype:void 0,zo=Qs?Qs.valueOf:void 0;function By(e,t,r,n,o,i,s){switch(r){case Vy:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Fy:return!(e.byteLength!=t.byteLength||!i(new Zs(e),new Zs(t)));case $y:case ky:case Iy:return Wl(+e,+t);case jy:return e.name==t.name&&e.message==t.message;case Ly:case My:return e==t+"";case Ay:var a=Cy;case Ny:var l=n&_y;if(a||(a=Ry),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;n|=Py,s.set(e,t);var u=ql(a(e),a(t),n,o,i,s);return s.delete(e),u;case Dy:if(zo)return zo.call(e)==zo.call(t)}return!1}function Uy(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var yt=Array.isArray;function zy(e,t,r){var n=t(e);return yt(e)?n:Uy(n,r(e))}function Jy(e,t){for(var r=-1,n=e==null?0:e.length,o=0,i=[];++r<n;){var s=e[r];t(s,r,e)&&(i[o++]=s)}return i}function Hy(){return[]}var Wy=Object.prototype,Gy=Wy.propertyIsEnumerable,ea=Object.getOwnPropertySymbols,qy=ea?function(e){return e==null?[]:(e=Object(e),Jy(ea(e),function(t){return Gy.call(e,t)}))}:Hy;function Ky(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Yy="[object Arguments]";function ta(e){return Gt(e)&&Xt(e)==Yy}var Kl=Object.prototype,Xy=Kl.hasOwnProperty,Zy=Kl.propertyIsEnumerable,Yl=ta(function(){return arguments}())?ta:function(e){return Gt(e)&&Xy.call(e,"callee")&&!Zy.call(e,"callee")};function Qy(){return!1}var Xl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ra=Xl&&typeof module=="object"&&module&&!module.nodeType&&module,eb=ra&&ra.exports===Xl,na=eb?bt.Buffer:void 0,tb=na?na.isBuffer:void 0,ui=tb||Qy,rb=9007199254740991,nb=/^(?:0|[1-9]\d*)$/;function Zl(e,t){var r=typeof e;return t=t??rb,!!t&&(r=="number"||r!="symbol"&&nb.test(e))&&e>-1&&e%1==0&&e<t}var ob=9007199254740991;function Mi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ob}var ib="[object Arguments]",sb="[object Array]",ab="[object Boolean]",lb="[object Date]",cb="[object Error]",ub="[object Function]",fb="[object Map]",db="[object Number]",pb="[object Object]",gb="[object RegExp]",hb="[object Set]",mb="[object String]",yb="[object WeakMap]",bb="[object ArrayBuffer]",vb="[object DataView]",xb="[object Float32Array]",Sb="[object Float64Array]",wb="[object Int8Array]",Tb="[object Int16Array]",Ob="[object Int32Array]",Eb="[object Uint8Array]",Cb="[object Uint8ClampedArray]",Rb="[object Uint16Array]",_b="[object Uint32Array]",ue={};ue[xb]=ue[Sb]=ue[wb]=ue[Tb]=ue[Ob]=ue[Eb]=ue[Cb]=ue[Rb]=ue[_b]=!0;ue[ib]=ue[sb]=ue[bb]=ue[ab]=ue[vb]=ue[lb]=ue[cb]=ue[ub]=ue[fb]=ue[db]=ue[pb]=ue[gb]=ue[hb]=ue[mb]=ue[yb]=!1;function Pb(e){return Gt(e)&&Mi(e.length)&&!!ue[Xt(e)]}function $b(e){return function(t){return e(t)}}var Ql=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zr=Ql&&typeof module=="object"&&module&&!module.nodeType&&module,kb=zr&&zr.exports===Ql,Jo=kb&&ml.process,oa=function(){try{var e=zr&&zr.require&&zr.require("util").types;return e||Jo&&Jo.binding&&Jo.binding("util")}catch{}}(),ia=oa&&oa.isTypedArray,ec=ia?$b(ia):Pb,jb=Object.prototype,Ab=jb.hasOwnProperty;function Ib(e,t){var r=yt(e),n=!r&&Yl(e),o=!r&&!n&&ui(e),i=!r&&!n&&!o&&ec(e),s=r||n||o||i,a=s?Ky(e.length,String):[],l=a.length;for(var c in e)Ab.call(e,c)&&!(s&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Zl(c,l)))&&a.push(c);return a}var Lb=Object.prototype;function Nb(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Lb;return e===r}function Mb(e,t){return function(r){return e(t(r))}}var Db=Mb(Object.keys,Object),Fb=Object.prototype,Vb=Fb.hasOwnProperty;function Bb(e){if(!Nb(e))return Db(e);var t=[];for(var r in Object(e))Vb.call(e,r)&&r!="constructor"&&t.push(r);return t}function tc(e){return e!=null&&Mi(e.length)&&!Gl(e)}function Di(e){return tc(e)?Ib(e):Bb(e)}function sa(e){return zy(e,Di,qy)}var Ub=1,zb=Object.prototype,Jb=zb.hasOwnProperty;function Hb(e,t,r,n,o,i){var s=r&Ub,a=sa(e),l=a.length,c=sa(t),u=c.length;if(l!=u&&!s)return!1;for(var d=l;d--;){var f=a[d];if(!(s?f in t:Jb.call(t,f)))return!1}var v=i.get(e),y=i.get(t);if(v&&y)return v==t&&y==e;var m=!0;i.set(e,t),i.set(t,e);for(var h=s;++d<l;){f=a[d];var S=e[f],T=t[f];if(n)var k=s?n(T,S,f,t,e,i):n(S,T,f,e,t,i);if(!(k===void 0?S===T||o(S,T,r,n,i):k)){m=!1;break}h||(h=f=="constructor")}if(m&&!h){var O=e.constructor,w=t.constructor;O!=w&&"constructor"in e&&"constructor"in t&&!(typeof O=="function"&&O instanceof O&&typeof w=="function"&&w instanceof w)&&(m=!1)}return i.delete(e),i.delete(t),m}var fi=Qt(bt,"DataView"),di=Qt(bt,"Promise"),pi=Qt(bt,"Set"),gi=Qt(bt,"WeakMap"),aa="[object Map]",Wb="[object Object]",la="[object Promise]",ca="[object Set]",ua="[object WeakMap]",fa="[object DataView]",Gb=Zt(fi),qb=Zt(Yr),Kb=Zt(di),Yb=Zt(pi),Xb=Zt(gi),It=Xt;(fi&&It(new fi(new ArrayBuffer(1)))!=fa||Yr&&It(new Yr)!=aa||di&&It(di.resolve())!=la||pi&&It(new pi)!=ca||gi&&It(new gi)!=ua)&&(It=function(e){var t=Xt(e),r=t==Wb?e.constructor:void 0,n=r?Zt(r):"";if(n)switch(n){case Gb:return fa;case qb:return aa;case Kb:return la;case Yb:return ca;case Xb:return ua}return t});var Zb=1,da="[object Arguments]",pa="[object Array]",mn="[object Object]",Qb=Object.prototype,ga=Qb.hasOwnProperty;function e0(e,t,r,n,o,i){var s=yt(e),a=yt(t),l=s?pa:It(e),c=a?pa:It(t);l=l==da?mn:l,c=c==da?mn:c;var u=l==mn,d=c==mn,f=l==c;if(f&&ui(e)){if(!ui(t))return!1;s=!0,u=!1}if(f&&!u)return i||(i=new Tt),s||ec(e)?ql(e,t,r,n,o,i):By(e,t,l,r,n,o,i);if(!(r&Zb)){var v=u&&ga.call(e,"__wrapped__"),y=d&&ga.call(t,"__wrapped__");if(v||y){var m=v?e.value():e,h=y?t.value():t;return i||(i=new Tt),o(m,h,r,n,i)}}return f?(i||(i=new Tt),Hb(e,t,r,n,o,i)):!1}function vo(e,t,r,n,o){return e===t?!0:e==null||t==null||!Gt(e)&&!Gt(t)?e!==e&&t!==t:e0(e,t,r,n,vo,o)}function t0(e,t){return vo(e,t)}const rc=({store:e})=>{const{t}=Yt.useTranslation(),[r,n]=W.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached),o=W.useRef(r);wr(()=>{const s=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;t0(o.current,s)||(o.current=s,n(s))});const i=[];for(const[s,a]of r.entries())a&&i.push(s);return i.length===0?null:b.jsx($.Typography,{color:"error",sx:{margin:"0.5rem 1rem",textAlign:"center",visibility:i.length?"visible":"collapse"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:i.map(s=>s+1).join(", ")})})},r0=$.styled($.FormControl)(({theme:e})=>({"&.MuiFormControl-root":{".MuiSelect-select":{paddingTop:"20px",paddingLeft:"12px"},label:{pointerEvents:"none",fontSize:"16px"},".MuiInputLabel-root":{"&.Mui-focused":{color:e.palette.text.primary}}}}));function yn({labelValue:e,...t}){return b.jsxs(r0,{fullWidth:!0,variant:"filled",children:[b.jsx($.InputLabel,{id:t.labelId,children:e}),b.jsx($.Select,{...t})]})}var ha=function(){try{var e=Qt(Object,"defineProperty");return e({},"",{}),e}catch{}}();function n0(e,t,r){t=="__proto__"&&ha?ha(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function o0(e,t,r,n){for(var o=-1,i=e==null?0:e.length;++o<i;){var s=e[o];t(n,s,r(s),e)}return n}function i0(e){return function(t,r,n){for(var o=-1,i=Object(t),s=n(t),a=s.length;a--;){var l=s[++o];if(r(i[l],l,i)===!1)break}return t}}var s0=i0();function a0(e,t){return e&&s0(e,t,Di)}function l0(e,t){return function(r,n){if(r==null)return r;if(!tc(r))return e(r,n);for(var o=r.length,i=-1,s=Object(r);++i<o&&n(s[i],i,s)!==!1;);return r}}var c0=l0(a0);function u0(e,t,r,n){return c0(e,function(o,i,s){t(n,o,r(o),s)}),n}var f0=1,d0=2;function p0(e,t,r,n){var o=r.length,i=o;if(e==null)return!i;for(e=Object(e);o--;){var s=r[o];if(s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){s=r[o];var a=s[0],l=e[a],c=s[1];if(s[2]){if(l===void 0&&!(a in e))return!1}else{var u=new Tt,d;if(!(d===void 0?vo(c,l,f0|d0,n,u):d))return!1}}return!0}function nc(e){return e===e&&!Wt(e)}function g0(e){for(var t=Di(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,nc(o)]}return t}function oc(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function h0(e){var t=g0(e);return t.length==1&&t[0][2]?oc(t[0][0],t[0][1]):function(r){return r===e||p0(r,e,t)}}var m0=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,y0=/^\w*$/;function Fi(e,t){if(yt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||co(e)?!0:y0.test(e)||!m0.test(e)||t!=null&&e in Object(t)}var b0="Expected a function";function Vi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(b0);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(Vi.Cache||Rt),r}Vi.Cache=Rt;var v0=500;function x0(e){var t=Vi(e,function(n){return r.size===v0&&r.clear(),n}),r=t.cache;return t}var S0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,w0=/\\(\\)?/g,T0=x0(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(S0,function(r,n,o,i){t.push(o?i.replace(w0,"$1"):n||r)}),t});function O0(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var E0=1/0,ma=Nt?Nt.prototype:void 0,ya=ma?ma.toString:void 0;function ic(e){if(typeof e=="string")return e;if(yt(e))return O0(e,ic)+"";if(co(e))return ya?ya.call(e):"";var t=e+"";return t=="0"&&1/e==-E0?"-0":t}function sc(e){return e==null?"":ic(e)}function ac(e,t){return yt(e)?e:Fi(e,t)?[e]:T0(sc(e))}var C0=1/0;function xo(e){if(typeof e=="string"||co(e))return e;var t=e+"";return t=="0"&&1/e==-C0?"-0":t}function lc(e,t){t=ac(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[xo(t[r++])];return r&&r==n?e:void 0}function R0(e,t,r){var n=e==null?void 0:lc(e,t);return n===void 0?r:n}function _0(e,t){return e!=null&&t in Object(e)}function P0(e,t,r){t=ac(t,e);for(var n=-1,o=t.length,i=!1;++n<o;){var s=xo(t[n]);if(!(i=e!=null&&r(e,s)))break;e=e[s]}return i||++n!=o?i:(o=e==null?0:e.length,!!o&&Mi(o)&&Zl(s,o)&&(yt(e)||Yl(e)))}function $0(e,t){return e!=null&&P0(e,t,_0)}var k0=1,j0=2;function A0(e,t){return Fi(e)&&nc(t)?oc(xo(e),t):function(r){var n=R0(r,e);return n===void 0&&n===t?$0(r,e):vo(t,n,k0|j0)}}function I0(e){return e}function L0(e){return function(t){return t==null?void 0:t[e]}}function N0(e){return function(t){return lc(t,e)}}function M0(e){return Fi(e)?L0(xo(e)):N0(e)}function D0(e){return typeof e=="function"?e:e==null?I0:typeof e=="object"?yt(e)?A0(e[0],e[1]):h0(e):M0(e)}function F0(e,t){return function(r,n){var o=yt(r)?o0:u0,i={};return o(r,e,D0(n),i)}}var bn=F0(function(e,t,r){n0(e,r,t)}),V0=0;function B0(e){var t=++V0;return sc(e)+t}const hi=[{id:"0.1",mm:.1,degrees:.05},{id:"1",mm:1,degrees:.5},{id:"5",mm:5,degrees:2.5},{id:"10",mm:10,degrees:5}],U0=[{id:"continuous"},...hi],z0=["coordsys","tool"];class Bi{constructor(t,r,n,o){var i,s;this.jogger=t,this.motionGroupSpec=r,this.coordSystems=n,this.tcps=o,this.selectedTabId="cartesian",this.manualActivationRequired=!0,this.activationState="inactive",this.activationError=null,this.activationCounter=0,this.locks=new Set,this.selectedCoordSystemId="world",this.selectedTcpId="",this.selectedOrientation="coordsys",this.selectedIncrementId="continuous",this.selectedCartesianMotionType="translate",this.incrementJogInProgress=null,this.translationVelocityMmPerSec=10,this.rotationVelocityDegPerSec=1,this.minTranslationVelocityMmPerSec=5,this.maxTranslationVelocityMmPerSec=250,this.minRotationVelocityDegPerSec=1,this.maxRotationVelocityDegPerSec=60,this.disposers=[];for(const a of n)if(a.coordinate_system===""){a.coordinate_system="world";break}this.selectedCoordSystemId=((i=n[0])==null?void 0:i.coordinate_system)||"world",this.selectedTcpId=((s=o[0])==null?void 0:s.id)||"",dt.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(dt.autorun(()=>this.saveToLocalStorage())),window.joggingStore=this}static async loadFor(t){const{nova:r}=t,[n,{coordinatesystems:o},{tcps:i}]=await Promise.all([r.api.motionGroupInfos.getMotionGroupSpecification(t.motionGroupId),r.api.coordinateSystems.listCoordinateSystems("ROTATION_VECTOR"),r.api.motionGroupInfos.listTcps(t.motionGroupId,"ROTATION_VECTOR")]);return new Bi(t,n,o||[],i||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}get coordSystemCountByName(){return Gn.countBy(this.coordSystems,t=>t.name)}async deactivate(t={}){if(this.activationState==="inactive")return;const r=this.jogger.activeWebsocket;this.activationState="inactive",this.jogger.setJoggingMode("increment"),r&&await r.closed();try{await this.jogger.nova.api.motionGroupJogging.stopJogging(this.jogger.motionGroupId)}catch(n){console.error(n)}t.requireManualReactivation&&dt.runInAction(()=>{this.manualActivationRequired=!0})}async activate(t={}){if(!(this.manualActivationRequired&&!t.manual)){dt.runInAction(()=>{this.activationState="loading",this.activationError=null});try{await this.jogger.nova.api.controller.setDefaultMode(this.jogger.motionStream.controllerId,"MODE_CONTROL")}catch(r){console.error(r)}if(this.currentTab.id==="cartesian"){const r={tcpId:this.selectedTcpId,coordSystemId:this.activeCoordSystemId};this.activeDiscreteIncrement?this.jogger.setJoggingMode("increment",r):this.jogger.setJoggingMode("cartesian",r)}else this.jogger.setJoggingMode("joint");if(this.jogger.activeWebsocket)try{this.jogger.stop(),await this.jogger.activeWebsocket.nextMessage()}catch(r){dt.runInAction(()=>{this.activationState="inactive",this.activationError=r});return}dt.runInAction(()=>{this.activationState="active",t.manual&&(this.manualActivationRequired=!1)})}}loadFromLocalStorage(){const t=Lt.tryParseJson(localStorage.getItem("joggingToolStore"));t&&(this.tabsById[t.selectedTabId]&&(this.selectedTabId=t.selectedTabId),this.coordSystemsById[t.selectedCoordSystemId]&&(this.selectedCoordSystemId=t.selectedCoordSystemId),this.tcpsById[t.selectedTcpId]&&(this.selectedTcpId=t.selectedTcpId),this.incrementOptionsById[t.selectedIncrementId]&&(this.selectedIncrementId=t.selectedIncrementId),["translate","rotate"].includes(t.selectedCartesianMotionType)&&(this.selectedCartesianMotionType=t.selectedCartesianMotionType),["coordsys","tool"].includes(t.selectedOrientation)&&(this.selectedOrientation=t.selectedOrientation))}saveToLocalStorage(){localStorage.setItem("joggingToolStore",JSON.stringify(this.localStorageSave))}get isLocked(){return this.locks.size>0}get localStorageSave(){return{selectedTabId:this.selectedTabId,selectedCoordSystemId:this.selectedCoordSystemId,selectedTcpId:this.selectedTcpId,selectedOrientation:this.selectedOrientation,selectedIncrementId:this.selectedIncrementId,selectedCartesianMotionType:this.selectedCartesianMotionType}}get tabs(){return[{id:"cartesian",label:"Cartesian"},{id:"joint",label:"Joint"}]}get incrementOptions(){return U0}get discreteIncrementOptions(){return hi}get incrementOptionsById(){return bn(this.incrementOptions,t=>t.id)}get tabsById(){return bn(this.tabs,t=>t.id)}get currentTab(){return this.tabsById[this.selectedTabId]||this.tabs[0]}get tabIndex(){return this.tabs.indexOf(this.currentTab)}get coordSystemsById(){return bn(this.coordSystems,t=>t.coordinate_system)}get selectedCoordSystem(){return this.coordSystemsById[this.selectedCoordSystemId]}get activeCoordSystemId(){return this.selectedOrientation==="tool"?"tool":this.selectedCoordSystemId}get tcpsById(){return bn(this.tcps,t=>t.id)}get activeDiscreteIncrement(){return this.selectedOrientation==="tool"?void 0:hi.find(t=>t.id===this.selectedIncrementId)}get rotationVelocityRadsPerSec(){return this.rotationVelocityDegPerSec*Math.PI/180}get velocityInCurrentUnits(){return this.currentMotionType==="translate"?this.translationVelocityMmPerSec:this.rotationVelocityDegPerSec}get minVelocityInCurrentUnits(){return this.currentMotionType==="translate"?this.minTranslationVelocityMmPerSec:this.minRotationVelocityDegPerSec}get maxVelocityInCurrentUnits(){return this.currentMotionType==="translate"?this.maxTranslationVelocityMmPerSec:this.maxRotationVelocityDegPerSec}get currentMotionType(){return this.selectedTabId==="cartesian"&&this.selectedCartesianMotionType==="translate"?"translate":"rotate"}onTabChange(t,r){const n=this.tabs[r]||this.tabs[0];this.selectedTabId=n.id}setSelectedCoordSystemId(t){this.selectedCoordSystemId=t}setSelectedTcpId(t){this.selectedTcpId=t}setSelectedOrientation(t){this.selectedOrientation=t}setSelectedIncrementId(t){this.selectedIncrementId=t}setCurrentIncrementJog(t){this.incrementJogInProgress=t}setVelocityFromSlider(t){this.currentMotionType==="translate"?this.translationVelocityMmPerSec=t:this.rotationVelocityDegPerSec=t}setSelectedCartesianMotionType(t){this.selectedCartesianMotionType=t}async withMotionLock(t){const r=B0();this.locks.add(r);try{return await t()}finally{this.locks.delete(r)}}}const J0=ke.observer(({store:e})=>{var n;const{t}=Yt.useTranslation();function r(o){switch(o){case"coordsys":return t("Jogging.Orientation.coordsys");case"tool":return t("Jogging.Orientation.tool");default:return o}}return b.jsxs($.Box,{component:"div",sx:{display:"grid",gap:"16px",gridTemplateColumns:"1fr 1fr",gridTemplateRows:"min-height min-height","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[b.jsx(yn,{labelId:"jogging-coord-select",labelValue:"Coordinate Sys.",value:e.selectedCoordSystemId,size:"small",variant:"filled",displayEmpty:!0,onChange:o=>{e.setSelectedCoordSystemId(o.target.value)},disabled:e.isLocked,children:e.coordSystems.map(o=>b.jsx($.MenuItem,{value:o.coordinate_system,children:o.name&&e.coordSystemCountByName[o.name]>1?`${o.name} / ${o.coordinate_system}`:o.name||o.coordinate_system},o.coordinate_system))}),b.jsx(yn,{labelId:"jogging-tcp-select",labelValue:"TCP",value:e.selectedTcpId,size:"small",variant:"filled",onChange:o=>{e.setSelectedTcpId(o.target.value)},disabled:e.isLocked,children:e.tcps.map(o=>b.jsx($.MenuItem,{value:o.id,children:o.id},o.id))}),b.jsx(yn,{labelValue:t("Jogging.Cartesian.Orientation.lb"),id:"orientation-select",labelId:"orientation-select",value:e.selectedOrientation,onChange:o=>{e.setSelectedOrientation(o.target.value)},disabled:e.isLocked,children:z0.map(o=>b.jsx($.MenuItem,{value:o,children:r(o)},o))}),b.jsxs(yn,{labelValue:"Increment",labelId:"jogging-increment-select",size:"small",variant:"filled",value:((n=e.activeDiscreteIncrement)==null?void 0:n.id)||"continuous",onChange:o=>{e.setSelectedIncrementId(o.target.value)},disabled:e.isLocked,children:[b.jsx($.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.selectedOrientation==="tool"?null:e.discreteIncrementOptions.map(o=>b.jsx($.MenuItem,{value:o.id,children:e.currentMotionType==="translate"?`${o.mm}mm`:`${o.degrees}°`},o.id))]})]})}),H0=$.styled($.ToggleButtonGroup)(({theme:e})=>{var t;return{"&.MuiToggleButtonGroup-root":{background:(t=e.palette.backgroundPaperElevation)==null?void 0:t[8],borderRadius:"8px",padding:"4px",gap:"4px",button:{border:"none",borderRadius:"4px",flex:"1 1 0px",minWidth:0,"&.MuiToggleButtonGroup-firstButton":{borderRadius:"8px 4px 4px 8px"},"&.MuiToggleButtonGroup-lastButton":{borderRadius:"4px 8px 8px 4px"}}}}});function W0(e,t,r=(n,o)=>n===o){return e.length===t.length&&e.every((n,o)=>r(n,t[o]))}const G0=2;function cc(e,t){return e-t}function ba(e,t){var r;const{index:n}=(r=e.reduce((o,i,s)=>{const a=Math.abs(t-i);return o===null||a<o.distance||a===o.distance?{distance:a,index:s}:o},null))!=null?r:{};return n}function vn(e,t){if(t.current!==void 0&&e.changedTouches){const r=e;for(let n=0;n<r.changedTouches.length;n+=1){const o=r.changedTouches[n];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Wn(e,t,r){return(e-t)*100/(r-t)}function q0(e,t,r){return(r-t)*e+t}function K0(e){if(Math.abs(e)<1){const r=e.toExponential().split("e-"),n=r[0].split(".")[1];return(n?n.length:0)+parseInt(r[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function Y0(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(K0(t)))}function va({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(cc)}function xn({sliderRef:e,activeIndex:t,setActive:r}){var n,o;const i=mr(e.current);if(!((n=e.current)!=null&&n.contains(i.activeElement))||Number(i==null||(o=i.activeElement)==null?void 0:o.getAttribute("data-index"))!==t){var s;(s=e.current)==null||s.querySelector(`[type="range"][data-index="${t}"]`).focus()}r&&r(t)}function Sn(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?W0(e,t):!1}const X0={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Z0=e=>e;let wn;function xa(){return wn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?wn=CSS.supports("touch-action","none"):wn=!0),wn}function Q0(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:i=!1,marks:s=!1,max:a=100,min:l=0,name:c,onChange:u,onChangeCommitted:d,orientation:f="horizontal",rootRef:v,scale:y=Z0,step:m=1,shiftStep:h=10,tabIndex:S,value:T}=e,k=N.useRef(),[O,w]=N.useState(-1),[C,R]=N.useState(-1),[z,se]=N.useState(!1),V=N.useRef(0),[M,G]=Za({controlled:T,default:r??l,name:"Slider"}),q=u&&((P,I,D)=>{const K=P.nativeEvent||P,Q=new K.constructor(K.type,K);Object.defineProperty(Q,"target",{writable:!0,value:{value:I,name:c}}),u(Q,I,D)}),Z=Array.isArray(M);let X=Z?M.slice().sort(cc):[M];X=X.map(P=>P==null?l:dr(P,l,a));const Se=s===!0&&m!==null?[...Array(Math.floor((a-l)/m)+1)].map((P,I)=>({value:l+m*I})):s||[],ce=Se.map(P=>P.value),{isFocusVisibleRef:ee,onBlur:Oe,onFocus:je,ref:nt}=Qa(),[vt,Ge]=N.useState(-1),we=N.useRef(),_t=Nn(nt,we),at=Nn(v,_t),qe=P=>I=>{var D;const K=Number(I.currentTarget.getAttribute("data-index"));je(I),ee.current===!0&&Ge(K),R(K),P==null||(D=P.onFocus)==null||D.call(P,I)},Be=P=>I=>{var D;Oe(I),ee.current===!1&&Ge(-1),R(-1),P==null||(D=P.onBlur)==null||D.call(P,I)},lt=(P,I)=>{const D=Number(P.currentTarget.getAttribute("data-index")),K=X[D],Q=ce.indexOf(K);let Y=I;if(Se&&m==null){const ze=ce[ce.length-1];Y>ze?Y=ze:Y<ce[0]?Y=ce[0]:Y=Y<K?ce[Q-1]:ce[Q+1]}if(Y=dr(Y,l,a),Z){o&&(Y=dr(Y,X[D-1]||-1/0,X[D+1]||1/0));const ze=Y;Y=va({values:X,newValue:Y,index:D});let Ke=D;o||(Ke=Y.indexOf(ze)),xn({sliderRef:we,activeIndex:Ke})}G(Y),Ge(D),q&&!Sn(Y,M)&&q(P,Y,D),d&&d(P,Y)},ct=P=>I=>{var D;if(m!==null){const K=Number(I.currentTarget.getAttribute("data-index")),Q=X[K];let Y=null;(I.key==="ArrowLeft"||I.key==="ArrowDown")&&I.shiftKey||I.key==="PageDown"?Y=Math.max(Q-h,l):((I.key==="ArrowRight"||I.key==="ArrowUp")&&I.shiftKey||I.key==="PageUp")&&(Y=Math.min(Q+h,a)),Y!==null&&(lt(I,Y),I.preventDefault())}P==null||(D=P.onKeyDown)==null||D.call(P,I)};wi(()=>{if(n&&we.current.contains(document.activeElement)){var P;(P=document.activeElement)==null||P.blur()}},[n]),n&&O!==-1&&w(-1),n&&vt!==-1&&Ge(-1);const Dt=P=>I=>{var D;(D=P.onChange)==null||D.call(P,I),lt(I,I.target.valueAsNumber)},xt=N.useRef();let Ue=f;i&&f==="horizontal"&&(Ue+="-reverse");const j=({finger:P,move:I=!1})=>{const{current:D}=we,{width:K,height:Q,bottom:Y,left:ze}=D.getBoundingClientRect();let Ke;Ue.indexOf("vertical")===0?Ke=(Y-P.y)/Q:Ke=(P.x-ze)/K,Ue.indexOf("-reverse")!==-1&&(Ke=1-Ke);let re;if(re=q0(Ke,l,a),m)re=Y0(re,m,l);else{const kt=ba(ce,re);re=ce[kt]}re=dr(re,l,a);let Le=0;if(Z){I?Le=xt.current:Le=ba(X,re),o&&(re=dr(re,X[Le-1]||-1/0,X[Le+1]||1/0));const kt=re;re=va({values:X,newValue:re,index:Le}),o&&I||(Le=re.indexOf(kt),xt.current=Le)}return{newValue:re,activeIndex:Le}},te=Rn(P=>{const I=vn(P,k);if(!I)return;if(V.current+=1,P.type==="mousemove"&&P.buttons===0){de(P);return}const{newValue:D,activeIndex:K}=j({finger:I,move:!0});xn({sliderRef:we,activeIndex:K,setActive:w}),G(D),!z&&V.current>G0&&se(!0),q&&!Sn(D,M)&&q(P,D,K)}),de=Rn(P=>{const I=vn(P,k);if(se(!1),!I)return;const{newValue:D}=j({finger:I,move:!0});w(-1),P.type==="touchend"&&R(-1),d&&d(P,D),k.current=void 0,Ie()}),Ae=Rn(P=>{if(n)return;xa()||P.preventDefault();const I=P.changedTouches[0];I!=null&&(k.current=I.identifier);const D=vn(P,k);if(D!==!1){const{newValue:Q,activeIndex:Y}=j({finger:D});xn({sliderRef:we,activeIndex:Y,setActive:w}),G(Q),q&&!Sn(Q,M)&&q(P,Q,Y)}V.current=0;const K=mr(we.current);K.addEventListener("touchmove",te,{passive:!0}),K.addEventListener("touchend",de,{passive:!0})}),Ie=N.useCallback(()=>{const P=mr(we.current);P.removeEventListener("mousemove",te),P.removeEventListener("mouseup",de),P.removeEventListener("touchmove",te),P.removeEventListener("touchend",de)},[de,te]);N.useEffect(()=>{const{current:P}=we;return P.addEventListener("touchstart",Ae,{passive:xa()}),()=>{P.removeEventListener("touchstart",Ae),Ie()}},[Ie,Ae]),N.useEffect(()=>{n&&Ie()},[n,Ie]);const Pt=P=>I=>{var D;if((D=P.onMouseDown)==null||D.call(P,I),n||I.defaultPrevented||I.button!==0)return;I.preventDefault();const K=vn(I,k);if(K!==!1){const{newValue:Y,activeIndex:ze}=j({finger:K});xn({sliderRef:we,activeIndex:ze,setActive:w}),G(Y),q&&!Sn(Y,M)&&q(I,Y,ze)}V.current=0;const Q=mr(we.current);Q.addEventListener("mousemove",te,{passive:!0}),Q.addEventListener("mouseup",de)},Te=Wn(Z?X[0]:l,l,a),$t=Wn(X[X.length-1],l,a)-Te,Ft=(P={})=>{const I=_n(P),D={onMouseDown:Pt(I||{})},K=_({},I,D);return _({},P,{ref:at},K)},Er=P=>I=>{var D;(D=P.onMouseOver)==null||D.call(P,I);const K=Number(I.currentTarget.getAttribute("data-index"));R(K)},Cr=P=>I=>{var D;(D=P.onMouseLeave)==null||D.call(P,I),R(-1)};return{active:O,axis:Ue,axisProps:X0,dragging:z,focusedThumbIndex:vt,getHiddenInputProps:(P={})=>{var I;const D=_n(P),K={onChange:Dt(D||{}),onFocus:qe(D||{}),onBlur:Be(D||{}),onKeyDown:ct(D||{})},Q=_({},D,K);return _({tabIndex:S,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":y(a),"aria-valuemin":y(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(I=e.step)!=null?I:void 0,disabled:n},P,Q,{style:_({},td,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Ft,getThumbProps:(P={})=>{const I=_n(P),D={onMouseOver:Er(I||{}),onMouseLeave:Cr(I||{})};return _({},P,I,D)},marks:Se,open:C,range:Z,rootRef:at,trackLeap:$t,trackOffset:Te,values:X,getThumbStyle:P=>({pointerEvents:O!==-1&&O!==P?"none":void 0})}}const e1=e=>!e||!Br(e);function t1(e){return nn("MuiSlider",e)}const Qe=Ga("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),r1=e=>{const{open:t}=e;return{offset:mt(t&&Qe.valueLabelOpen),circle:Qe.valueLabelCircle,label:Qe.valueLabelLabel}};function uc(e){const{children:t,className:r,value:n}=e,o=r1(e);return t?N.cloneElement(t,{className:mt(t.props.className)},b.jsxs(N.Fragment,{children:[t.props.children,b.jsx("span",{className:mt(o.offset,r),"aria-hidden":!0,children:b.jsx("span",{className:o.circle,children:b.jsx("span",{className:o.label,children:n})})})]})):null}process.env.NODE_ENV!=="production"&&(uc.propTypes={children:p.element.isRequired,className:p.string,value:p.node});const n1=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Sa(e){return e}const o1=Et("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Ce(r.color)}`],r.size!=="medium"&&t[`size${Ce(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Qe.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Qe.dragging}`]:{[`& .${Qe.thumb}, & .${Qe.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),i1=Et("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),s1=Et("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r,track:"inverted"},style:_({},e.vars?{backgroundColor:e.vars.palette.Slider[`${r}Track`],borderColor:e.vars.palette.Slider[`${r}Track`]}:_({backgroundColor:ei(e.palette[r].main,.62),borderColor:ei(e.palette[r].main,.62)},e.applyStyles("dark",{backgroundColor:Qo(e.palette[r].main,.5)}),e.applyStyles("dark",{borderColor:Qo(e.palette[r].main,.5)})))}))]}}),a1=Et("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${Ce(r.color)}`],r.size!=="medium"&&t[`thumbSize${Ce(r.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Qe.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{[`&:hover, &.${Qe.focusVisible}`]:_({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${ds(e.palette[r].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${Qe.active}`]:_({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${ds(e.palette[r].main,.16)}`})}}))]}}),l1=Et(uc,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>_({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Qe.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Qe.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),c1=Et("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>_i(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),u1=Et("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>_i(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>_({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),f1=e=>{const{disabled:t,dragging:r,marked:n,orientation:o,track:i,classes:s,color:a,size:l}=e,c={root:["root",t&&"disabled",r&&"dragging",n&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",a&&`color${Ce(a)}`,l&&`size${Ce(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${Ce(l)}`,a&&`thumbColor${Ce(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Oi(c,t1,s)},d1=({children:e})=>e,fc=N.forwardRef(function(t,r){var n,o,i,s,a,l,c,u,d,f,v,y,m,h,S,T,k,O,w,C,R,z,se,V;const M=Pi({props:t,name:"MuiSlider"}),G=ad(),{"aria-label":q,"aria-valuetext":Z,"aria-labelledby":X,component:Se="span",components:ce={},componentsProps:ee={},color:Oe="primary",classes:je,className:nt,disableSwap:vt=!1,disabled:Ge=!1,getAriaLabel:we,getAriaValueText:_t,marks:at=!1,max:qe=100,min:Be=0,orientation:lt="horizontal",shiftStep:ct=10,size:Dt="medium",step:xt=1,scale:Ue=Sa,slotProps:j,slots:te,track:de="normal",valueLabelDisplay:Ae="off",valueLabelFormat:Ie=Sa}=M,Pt=Ve(M,n1),Te=_({},M,{isRtl:G,max:qe,min:Be,classes:je,disabled:Ge,disableSwap:vt,orientation:lt,marks:at,color:Oe,size:Dt,step:xt,shiftStep:ct,scale:Ue,track:de,valueLabelDisplay:Ae,valueLabelFormat:Ie}),{axisProps:$t,getRootProps:Ft,getHiddenInputProps:Er,getThumbProps:Cr,open:Rr,active:er,axis:ot,focusedThumbIndex:P,range:I,dragging:D,marks:K,values:Q,trackOffset:Y,trackLeap:ze,getThumbStyle:Ke}=Q0(_({},Te,{rootRef:r}));Te.marked=K.length>0&&K.some(L=>L.label),Te.dragging=D,Te.focusedThumbIndex=P;const re=f1(Te),Le=(n=(o=te==null?void 0:te.root)!=null?o:ce.Root)!=null?n:o1,kt=(i=(s=te==null?void 0:te.rail)!=null?s:ce.Rail)!=null?i:i1,tr=(a=(l=te==null?void 0:te.track)!=null?l:ce.Track)!=null?a:s1,_r=(c=(u=te==null?void 0:te.thumb)!=null?u:ce.Thumb)!=null?c:a1,St=(d=(f=te==null?void 0:te.valueLabel)!=null?f:ce.ValueLabel)!=null?d:l1,Vt=(v=(y=te==null?void 0:te.mark)!=null?y:ce.Mark)!=null?v:c1,Bt=(m=(h=te==null?void 0:te.markLabel)!=null?h:ce.MarkLabel)!=null?m:u1,Pr=(S=(T=te==null?void 0:te.input)!=null?T:ce.Input)!=null?S:"input",$r=(k=j==null?void 0:j.root)!=null?k:ee.root,cn=(O=j==null?void 0:j.rail)!=null?O:ee.rail,kr=(w=j==null?void 0:j.track)!=null?w:ee.track,rr=(C=j==null?void 0:j.thumb)!=null?C:ee.thumb,nr=(R=j==null?void 0:j.valueLabel)!=null?R:ee.valueLabel,So=(z=j==null?void 0:j.mark)!=null?z:ee.mark,wo=(se=j==null?void 0:j.markLabel)!=null?se:ee.markLabel,un=(V=j==null?void 0:j.input)!=null?V:ee.input,fn=jt({elementType:Le,getSlotProps:Ft,externalSlotProps:$r,externalForwardedProps:Pt,additionalProps:_({},e1(Le)&&{as:Se}),ownerState:_({},Te,$r==null?void 0:$r.ownerState),className:[re.root,nt]}),To=jt({elementType:kt,externalSlotProps:cn,ownerState:Te,className:re.rail}),Oo=jt({elementType:tr,externalSlotProps:kr,additionalProps:{style:_({},$t[ot].offset(Y),$t[ot].leap(ze))},ownerState:_({},Te,kr==null?void 0:kr.ownerState),className:re.track}),jr=jt({elementType:_r,getSlotProps:Cr,externalSlotProps:rr,ownerState:_({},Te,rr==null?void 0:rr.ownerState),className:re.thumb}),Eo=jt({elementType:St,externalSlotProps:nr,ownerState:_({},Te,nr==null?void 0:nr.ownerState),className:re.valueLabel}),g=jt({elementType:Vt,externalSlotProps:So,ownerState:Te,className:re.mark}),E=jt({elementType:Bt,externalSlotProps:wo,ownerState:Te,className:re.markLabel}),A=jt({elementType:Pr,getSlotProps:Er,externalSlotProps:un,ownerState:Te});return b.jsxs(Le,_({},fn,{children:[b.jsx(kt,_({},To)),b.jsx(tr,_({},Oo)),K.filter(L=>L.value>=Be&&L.value<=qe).map((L,F)=>{const ne=Wn(L.value,Be,qe),H=$t[ot].offset(ne);let B;return de===!1?B=Q.indexOf(L.value)!==-1:B=de==="normal"&&(I?L.value>=Q[0]&&L.value<=Q[Q.length-1]:L.value<=Q[0])||de==="inverted"&&(I?L.value<=Q[0]||L.value>=Q[Q.length-1]:L.value>=Q[0]),b.jsxs(N.Fragment,{children:[b.jsx(Vt,_({"data-index":F},g,!Br(Vt)&&{markActive:B},{style:_({},H,g.style),className:mt(g.className,B&&re.markActive)})),L.label!=null?b.jsx(Bt,_({"aria-hidden":!0,"data-index":F},E,!Br(Bt)&&{markLabelActive:B},{style:_({},H,E.style),className:mt(re.markLabel,E.className,B&&re.markLabelActive),children:L.label})):null]},F)}),Q.map((L,F)=>{const ne=Wn(L,Be,qe),H=$t[ot].offset(ne),B=Ae==="off"?d1:St;return b.jsx(B,_({},!Br(B)&&{valueLabelFormat:Ie,valueLabelDisplay:Ae,value:typeof Ie=="function"?Ie(Ue(L),F):Ie,index:F,open:Rr===F||er===F||Ae==="on",disabled:Ge},Eo,{children:b.jsx(_r,_({"data-index":F},jr,{className:mt(re.thumb,jr.className,er===F&&re.active,P===F&&re.focusVisible),style:_({},H,Ke(F),jr.style),children:b.jsx(Pr,_({"data-index":F,"aria-label":we?we(F):q,"aria-valuenow":Ue(L),"aria-labelledby":X,"aria-valuetext":_t?_t(Ue(L),F):Z,value:Q[F]},A))}))}),F)})]}))});process.env.NODE_ENV!=="production"&&(fc.propTypes={"aria-label":os(p.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":p.string,"aria-valuetext":os(p.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["primary","secondary","error","info","success","warning"]),p.string]),components:p.shape({Input:p.elementType,Mark:p.elementType,MarkLabel:p.elementType,Rail:p.elementType,Root:p.elementType,Thumb:p.elementType,Track:p.elementType,ValueLabel:p.elementType}),componentsProps:p.shape({input:p.oneOfType([p.func,p.object]),mark:p.oneOfType([p.func,p.object]),markLabel:p.oneOfType([p.func,p.object]),rail:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),thumb:p.oneOfType([p.func,p.object]),track:p.oneOfType([p.func,p.object]),valueLabel:p.oneOfType([p.func,p.shape({children:p.element,className:p.string,open:p.bool,style:p.object,value:p.number,valueLabelDisplay:p.oneOf(["auto","off","on"])})])}),defaultValue:p.oneOfType([p.arrayOf(p.number),p.number]),disabled:p.bool,disableSwap:p.bool,getAriaLabel:p.func,getAriaValueText:p.func,marks:p.oneOfType([p.arrayOf(p.shape({label:p.node,value:p.number.isRequired})),p.bool]),max:p.number,min:p.number,name:p.string,onChange:p.func,onChangeCommitted:p.func,orientation:p.oneOf(["horizontal","vertical"]),scale:p.func,shiftStep:p.number,size:p.oneOfType([p.oneOf(["small","medium"]),p.string]),slotProps:p.shape({input:p.oneOfType([p.func,p.object]),mark:p.oneOfType([p.func,p.object]),markLabel:p.oneOfType([p.func,p.object]),rail:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),thumb:p.oneOfType([p.func,p.object]),track:p.oneOfType([p.func,p.object]),valueLabel:p.oneOfType([p.func,p.shape({children:p.element,className:p.string,open:p.bool,style:p.object,value:p.number,valueLabelDisplay:p.oneOf(["auto","off","on"])})])}),slots:p.shape({input:p.elementType,mark:p.elementType,markLabel:p.elementType,rail:p.elementType,root:p.elementType,thumb:p.elementType,track:p.elementType,valueLabel:p.elementType}),step:p.number,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),tabIndex:p.number,track:p.oneOf(["inverted","normal",!1]),value:p.oneOfType([p.arrayOf(p.number),p.number]),valueLabelDisplay:p.oneOf(["auto","off","on"]),valueLabelFormat:p.oneOfType([p.func,p.string])});var p1="[object Number]";function g1(e){return typeof e=="number"||Gt(e)&&Xt(e)==p1}const dc=ke.observer(e=>{$.useTheme();function t(r,n){n===e.velocity||!g1(n)||e.onVelocityChange(n)}return b.jsxs($.Stack,{direction:"row",gap:2,children:[b.jsx(fc,{value:e.velocity,color:"secondary",onChange:t,min:e.min,max:e.max,"aria-labelledby":"input-slider",disabled:e.disabled,sx:{"& .MuiSlider-valueLabelOpen":{zIndex:100,backgroundColor:"transparent",top:"0px"}}}),e.renderValue?e.renderValue(e.velocity):b.jsx(Ui,{value:e.velocity.toString()})]})});function Ui({value:e,sx:t}){var n;const r=$.useTheme();return b.jsx($.Stack,{direction:"row",justifyContent:"center",gap:"5px",sx:{padding:"6px 12px",background:(n=r.palette.backgroundPaperElevation)==null?void 0:n[8],borderRadius:"10px",minWidth:"111px",...t},children:b.jsx($.Typography,{component:"span",sx:{textAlign:"right",fontSize:"14px",opacity:.8,lineHeight:1,color:r.palette.text.primary,whiteSpace:"nowrap"},children:e})})}const pc=ke.observer(({store:e})=>{const{t}=Yt.useTranslation(),r=ke.useLocalObservable(()=>({get valueLabelFormat(){return e.currentMotionType==="translate"?n=>`v = ${t("Jogging.Cartesian.Translation.velocityMmPerSec.lb",{amount:n})}`:n=>`v = ${t("Jogging.Cartesian.Rotation.velocityDegPerSec.lb",{amount:n})}`}}));return b.jsx(dc,{velocity:e.velocityInCurrentUnits,min:e.minVelocityInCurrentUnits,max:e.maxVelocityInCurrentUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,renderValue:n=>b.jsx(Ui,{value:r.valueLabelFormat(n),sx:{minWidth:e.currentMotionType==="translate"?"111px":"90px"}})})}),h1=ke.observer(({store:e,children:t})=>{var d,f,v,y,m,h,S,T,k;const{t:r}=Yt.useTranslation(),n=$.useTheme();function o(O,w){(w==="translate"||w==="rotate")&&e.setSelectedCartesianMotionType(w)}$i(()=>[e.selectedCoordSystemId,e.selectedTcpId],()=>{e.jogger.motionStream.motionStateSocket.changeUrl(e.jogger.nova.makeWebsocketURL(`/motion-groups/${e.jogger.motionGroupId}/state-stream?tcp=${e.selectedTcpId}&response_coordinate_system=${e.selectedCoordSystemId}`))},{fireImmediately:!0});async function i(O,w){const C=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose,R=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;C&&await e.withMotionLock(async()=>{try{e.setCurrentIncrementJog({axis:O.axis,direction:O.direction}),await e.jogger.runIncrementalCartesianMotion({currentTcpPose:C,currentJoints:R,coordSystemId:e.activeCoordSystemId,velocityInRelevantUnits:e.velocityInCurrentUnits,axis:O.axis,direction:O.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:w.mm}:{type:"rotate",distanceRads:Lt.degreesToRadians(w.degrees)}})}finally{e.setCurrentIncrementJog(null)}})}async function s(O){if(!e.isLocked){if(e.activeDiscreteIncrement)return i(O,e.activeDiscreteIncrement);O.motionType==="translate"?await e.jogger.startTCPTranslation({axis:O.axis,direction:O.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:O.axis,direction:O.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function a(){e.isLocked||e.activeDiscreteIncrement||await e.jogger.stop()}const l=[{id:"x",colors:(v=(f=(d=n.componentsExt)==null?void 0:d.JoggingCartesian)==null?void 0:f.Axis)==null?void 0:v.X,icon:b.jsx(xm,{})},{id:"y",colors:(h=(m=(y=n.componentsExt)==null?void 0:y.JoggingCartesian)==null?void 0:m.Axis)==null?void 0:h.Y,icon:b.jsx(wm,{})},{id:"z",colors:(k=(T=(S=n.componentsExt)==null?void 0:S.JoggingCartesian)==null?void 0:T.Axis)==null?void 0:k.Z,icon:b.jsx(Om,{})}];function c(O){return r("General.mm.variable",{amount:O.toFixed(1)})}function u(O){return r("General.degree.variable",{amount:Lt.radiansToDegrees(O).toFixed(1)})}return b.jsxs($.Stack,{flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[b.jsxs($.Stack,{gap:2,children:[b.jsx(J0,{store:e}),b.jsx(pc,{store:e}),b.jsx($.Divider,{})]}),b.jsxs($.Stack,{marginLeft:"auto",marginRight:"auto",gap:"24px",justifyContent:"center",sx:{flexGrow:"1"},children:[b.jsxs(H0,{value:e.selectedCartesianMotionType,onChange:o,exclusive:!0,"aria-label":r("Jogging.Cartesian.MotionType.lb"),sx:{justifyContent:"center"},children:[b.jsx($.ToggleButton,{value:"translate",children:r("Jogging.Cartesian.Translation.bt")}),b.jsx($.ToggleButton,{value:"rotate",children:r("Jogging.Cartesian.Rotation.bt")})]}),b.jsx(Hl,{store:e,children:b.jsxs($.Stack,{alignItems:"center",gap:"24px",sx:{flexGrow:1},children:[e.selectedCartesianMotionType==="translate"&&l.map(O=>{var w;return b.jsx(ri,{colors:O.colors,disabled:e.isLocked,activeJoggingDirection:((w=e.incrementJogInProgress)==null?void 0:w.axis)===O.id?e.incrementJogInProgress.direction:void 0,label:b.jsxs(b.Fragment,{children:[O.icon,b.jsx($.Typography,{sx:{fontSize:"24px",color:n.palette.text.primary},children:O.id.toUpperCase()})]}),getDisplayedValue:()=>{var C;return c(((C=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:C.position[O.id])||0)},startJogging:C=>s({axis:O.id,motionType:"translate",direction:C}),stopJogging:a},O.id)}),e.selectedCartesianMotionType==="rotate"&&l.map(O=>{var w;return b.jsx(ri,{colors:O.colors,disabled:e.isLocked,activeJoggingDirection:((w=e.incrementJogInProgress)==null?void 0:w.axis)===O.id?e.incrementJogInProgress.direction:void 0,label:b.jsxs(b.Fragment,{children:[b.jsx(Cm,{}),b.jsx($.Typography,{sx:{fontSize:"24px",color:n.palette.text.primary},children:O.id.toUpperCase()})]}),getDisplayedValue:()=>{var C,R;return u(((R=(C=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:C.orientation)==null?void 0:R[O.id])||0)},startJogging:C=>s({axis:O.id,motionType:"rotate",direction:C}),stopJogging:a},O.id)})]})})]}),b.jsx(rc,{store:e}),t&&b.jsx($.Divider,{}),t]})}),m1=ke.observer(({store:e,children:t})=>{async function r(o){await e.jogger.startJointRotation({joint:o.joint,direction:o.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function n(){await e.jogger.stop()}return b.jsxs($.Stack,{flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[b.jsx(pc,{store:e}),b.jsx($.Divider,{}),b.jsx($.Stack,{justifyContent:"center",alignItems:"stretch",sx:{flexGrow:"1"},id:"JointControls",children:b.jsx(Hl,{store:e,children:b.jsx($.Stack,{alignItems:"center",gap:"24px",sx:{flexGrow:1},children:e.jogger.motionStream.joints.map(o=>{var l;const i=(l=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:l[o.index],s=(i==null?void 0:i.lower_limit)!==void 0?Lt.radiansToDegrees(i.lower_limit):void 0,a=(i==null?void 0:i.upper_limit)!==void 0?Lt.radiansToDegrees(i.upper_limit):void 0;return b.jsx(bl,{disabled:e.isLocked,lowerLimitDegs:s,upperLimitDegs:a,getValueDegs:()=>{const c=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[o.index];return c!==void 0?Lt.radiansToDegrees(c):void 0},startJogging:c=>r({joint:o.index,direction:c}),stopJogging:n},`joint-${o.index}`)})})})}),b.jsx(rc,{store:e}),t&&b.jsx($.Divider,{}),t]})}),y1=sn(ke.observer(e=>{const t=Gn.isString(e.nova)?new Lt.NovaClient({instanceUrl:e.nova}):e.nova,r=ke.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function n(){dt.runInAction(()=>{r.loadingError=null,r.joggingStore=null});try{const o=await t.connectJogger(e.motionGroupId),i=await Bi.loadFor(o);dt.runInAction(()=>{r.joggingStore=i}),e.onSetup&&e.onSetup(i)}catch(o){r.loadingError=o}}return W.useEffect(()=>(n(),()=>{var o;(o=r.joggingStore)==null||o.dispose()}),[e.nova,e.motionGroupId]),W.useEffect(()=>{const o=r.joggingStore;o&&(e.locked?o.locks.add("external"):o.locks.delete("external"))},[e.locked]),b.jsx($.Stack,{sx:{maxWidth:"460px",minWidth:"320px",position:"relative",...e.sx},children:r.joggingStore?b.jsx(b1,{store:r.joggingStore,children:e.children}):b.jsx(mo,{message:"Loading jogging",error:r.loadingError})})})),b1=ke.observer(({store:e,children:t})=>{W.useEffect(()=>{function n(){e.deactivate()}function o(){e.activate()}return window.addEventListener("blur",n),window.addEventListener("focus",o),()=>{window.removeEventListener("blur",n),window.removeEventListener("focus",o)}}),$i(()=>[e.currentTab.id,e.selectedTcpId,e.activeCoordSystemId,e.activeDiscreteIncrement],()=>{e.activationState!=="inactive"&&e.activate()});function r(){if(e.currentTab.id==="cartesian")return b.jsx(b.Fragment,{children:b.jsx(h1,{store:e,children:t})});if(e.currentTab.id==="joint")return b.jsx(b.Fragment,{children:b.jsx(m1,{store:e,children:t})})}return b.jsxs($.Stack,{flexGrow:1,sx:{overflow:"hidden"},children:[b.jsx($.Tabs,{value:e.tabIndex,onChange:e.onTabChange,variant:"fullWidth",children:e.tabs.map(n=>b.jsx($.Tab,{label:n.label,id:`jogging-tab-${n.id}`,"aria-controls":`jogging-tab-${n.id}`},n.id))}),b.jsx($.Stack,{flexGrow:1,position:"relative",sx:{overflowY:"auto",overflowX:"hidden"},children:r()})]})}),gc=W.forwardRef(({label:e,value:t},r)=>{var a;const n=$.useTheme(),[o,i]=W.useState(!1);async function s(){if(!r||!("current"in r))return console.warn("No copy target found"),!1;try{return await navigator.clipboard.writeText(t),console.log("Copied!"),i(!0),!0}catch(l){console.error(l);const c=window.getSelection(),u=document.createRange();u.selectNodeContents(r.current),c.removeAllRanges(),c.addRange(u)}return!1}return W.useEffect(()=>{if(!o)return;const l=setTimeout(()=>i(!1),3e3);return()=>{l&&clearTimeout(l)}},[o]),b.jsx($.Tooltip,{open:o,title:"Copied!",children:b.jsx($.Stack,{justifyContent:"center",sx:{height:"100%",boxSizing:"border-box",padding:"6px 12px",background:(a=n.palette.backgroundPaperElevation)==null?void 0:a[8],borderRadius:"10px",minWidth:"0",cursor:"pointer"},onClick:()=>s(),children:b.jsx($.Typography,{ref:r,align:"center",sx:{pointerEvents:"none",fontSize:"12px",color:n.palette.text.primary,whiteSpace:"nowrap",minWidth:0,textOverflow:"ellipsis",width:"100%",overflow:"hidden"},children:t})})})}),v1=ke.observer(({motionStream:e})=>{const t=W.useRef(null);function r(){const n=e.rapidlyChangingMotionState.tcp_pose;return n?Lt.poseToWandelscriptString(n):""}return wr(()=>{if(!t.current)return;const n=r();t.current.textContent!==n&&(t.current.textContent=n)}),b.jsx($.Stack,{alignItems:"left",spacing:2,sx:{flexGrow:1,minWidth:0,overflow:"hidden"},children:b.jsx(gc,{value:r(),ref:t})})}),x1=ke.observer(({motionStream:e})=>{const t=W.useRef(null);function r(){const{joints:n}=e.rapidlyChangingMotionState.state.joint_position;return`[${n.map(o=>parseFloat(o.toFixed(4))).join(", ")}]`}return wr(()=>{if(!t.current)return;const n=r();t.current.textContent!==n&&(t.current.textContent=n)}),b.jsx($.Stack,{alignItems:"left",spacing:2,sx:{flexGrow:1,minWidth:0,overflow:"hidden"},children:b.jsx(gc,{value:r(),ref:t})})});function S1(){const e=window.location.href;return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function w1({baseUrl:e=S1(),...t}){return b.jsxs($.Dialog,{"aria-labelledby":"no-motion-group-modal-title",open:!0,fullWidth:!0,sx:{"& .MuiModal-backdrop":{backdropFilter:"blur(10px)"},"& .MuiDialog-paper":{"::before":{content:'""',height:"8px",width:"100%",background:"linear-gradient(90deg, #FF0E65 0%, #47D3FF 100%)"},background:"#101629"}},children:[b.jsx($.DialogTitle,{id:"no-motion-group-modal-title",children:"No motion group found"}),b.jsxs($.DialogContent,{sx:{marginTop:"3rem",marginBottom:"1.5rem",textAlign:"center"},children:[b.jsx($.Typography,{color:"#fff",children:"Found no devices to connect to."}),b.jsx($.Typography,{color:"#fff",children:"Please ensure a motion group has been created."})]}),b.jsx($.DialogActions,{children:b.jsxs($.Stack,{width:"100%",maxWidth:"300px",margin:"auto",marginBottom:"2rem",children:[b.jsx($.Button,{href:`${e}/settings`,variant:"contained",sx:{borderRadius:"8px",width:"100%"},children:"Go to settings app"}),b.jsx($.Button,{href:`${e}`,variant:"text",sx:{marginTop:"1rem",color:"#fff",textDecoration:"underline",fontSize:"0.75rem"},children:"Back to Homescreen"})]})})]})}const T1=Array(6).fill(2*Math.PI),wa="0.0.0-semantically-released";function zi(e){let t=wa;return wa.startsWith("0.")&&(t=""),`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components${t?`@${t}`:""}/public/models/${e}.glb`}function O1(e){function t(r){return r.children.length===0?[r]:[r,...r.children.flatMap(n=>t(n))]}return t(e).filter(r=>mc(r))}function hc(e){return e.name.endsWith("_FLG")}function mc(e){return/_J[0-9]+$/.test(e.name)}function E1(e,t){let r;const n=[];function o(s){return s.length===6}function i(s){if(hc(s)){if(r)throw Error(`Found multiple flange groups in robot model ${t}; first ${r.name} then ${s.name}. Only one _FLG group is allowed.`);r=s}mc(s)&&n.push(s),s.children.map(i)}if(i(e.scene),!o(n))throw Error(`Expected to find 6 joint groups in robot model ${t} with names _J01, _J02 etc, found ${n.length}. Only 6-joint robot models are currently supported.`);if(!r)throw Error(`No flange group found in robot model ${t}. Flange must be identified with a name ending in _FLG.`);return{gltf:e}}function yc({rapidlyChangingMotionState:e,dhParameters:t,onRotationChanged:r,children:n}){Ho.Globals.assign({frameLoop:"always"});const o=W.useRef([]),i=W.useRef([]),{invalidate:s}=Pc.useThree();function a(f){f&&(i.current=O1(f),c(),s())}function l(f){o.current=f,d.start(Object.assign({},o.current))}function c(){const f=i.current.map((v,y)=>u[y].get());if(r)r(i.current,f);else for(const[v,y]of i.current.entries()){const m=t[v],h=m.theta||0,S=m.reverse_rotation_direction?-1:1;y.rotation.y=S*f[v]+h}}dl(()=>{const f=e.state.joint_position.joints.filter(v=>v!==void 0);requestAnimationFrame(()=>l(f))});const[u,d]=Ho.useSpring(()=>({...Object.assign({},e.state.joint_position.joints),onChange:()=>{c(),s()},onResolve:()=>{c()}}));return b.jsx("group",{ref:a,children:n})}const Ta="line",Oa="mesh";function C1({rapidlyChangingMotionState:e,dhParameters:t,...r}){const n=new $e.Matrix4;function o(a,l){const c=new $e.Vector3,u=new $e.Quaternion,d=new $e.Vector3;n.decompose(c,u,d);const f=c.clone(),v=new $e.Matrix4().makeRotationY(a.theta+l*(a.reverse_rotation_direction?-1:1)).multiply(new $e.Matrix4().makeTranslation(0,a.d/1e3,0)).multiply(new $e.Matrix4().makeTranslation(a.a/1e3,0,0)).multiply(new $e.Matrix4().makeRotationX(a.alpha));return n.multiply(v),n.decompose(c,u,d),{a:f,b:c}}function i(a,l,c,u){if(!t)return;const d=t[a];if(!d)return;const{a:f,b:v}=o(d,u);l.geometry.setPositions([f.toArray(),v.toArray()].flat()),c.position.set(v.x,v.y,v.z)}function s(a,l){n.identity(),a.forEach((c,u)=>{i(u,c.getObjectByName(Ta),c.getObjectByName(Oa),l[u])})}return b.jsx(b.Fragment,{children:b.jsx(yc,{rapidlyChangingMotionState:e,dhParameters:t,onRotationChanged:s,children:b.jsxs("group",{...r,name:"Scene",children:[b.jsxs("mesh",{children:[b.jsx("sphereGeometry",{args:[.01,32,32]}),b.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]}),t.map((a,l)=>{const{a:c,b:u}=o(a,e.state.joint_position.joints[l]??0),d=`dhrobot_J0${l}`;return b.jsxs("group",{name:d,children:[b.jsx(ft.Line,{name:Ta,points:[c,u],color:"white",lineWidth:5}),b.jsxs("mesh",{name:Oa,position:u,children:[b.jsx("sphereGeometry",{args:[.01,32,32]}),b.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+l)]},d)})]})})})}const R1=console.warn;function _1(){return W.useEffect(()=>{console.warn=e=>{e!=="Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"&&R1(e)}},[]),b.jsx(b.Fragment,{})}function P1(e){return e.type==="Mesh"}function $1({modelURL:e,flangeRef:t,postModelRender:r,...n}){const{gltf:o}=E1(ft.useGLTF(e),e.split("/").pop()||e),i=W.useCallback(a=>{a&&r&&r()},[e]);function s(a){return P1(a)?b.jsx("mesh",{name:a.name,geometry:a.geometry,material:a.material,position:a.position,rotation:a.rotation},a.uuid):b.jsx(Ho.animated.group,{name:a.name,position:a.position,rotation:a.rotation,ref:hc(a)?t:void 0,children:a.children.map(s)},a.uuid)}return b.jsx("group",{...n,dispose:null,ref:i,children:s(o.scene)})}const k1=e=>{e.userData.isGhost||(e.traverse(t=>{if(t instanceof $e.Mesh){t.material instanceof $e.Material&&(t.material.colorWrite=!0);const r=t.clone(),n=t.clone();r.material=new $e.MeshStandardMaterial({depthTest:!0,depthWrite:!0,colorWrite:!1,polygonOffset:!0,polygonOffsetFactor:1}),r.userData.isGhost=!0,n.material=new $e.MeshStandardMaterial({color:"#D91433",opacity:.3,depthTest:!0,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-1}),n.userData.isGhost=!0,t.parent&&(t.parent.add(r),t.parent.add(n))}}),e.userData.isGhost=!0)},j1=e=>{if(!e.userData.isGhost)return;const t=[];e.traverse(r=>{var n;r instanceof $e.Mesh&&((n=r.userData)!=null&&n.isGhost?t.push(r):r.material instanceof $e.Material&&(r.material.colorWrite=!0))}),t.forEach(r=>{r.parent&&r.parent.remove(r)}),e.userData.isGhost=!0},bc=sn(({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:r,getModel:n=zi,isGhost:o=!1,flangeRef:i,postModelRender:s,...a})=>{const[l,c]=W.useState(null),u=W.useCallback(f=>{c(f)},[]);W.useEffect(()=>{l&&(o?k1(l):j1(l))},[l,o]);const d=b.jsx(C1,{rapidlyChangingMotionState:e,dhParameters:r,...a});return b.jsxs(jc.ErrorBoundary,{fallback:d,onError:f=>{if(f.message.includes("404: Not Found"))console.error(f);else throw f},children:[b.jsx(W.Suspense,{fallback:d,children:b.jsx("group",{ref:u,children:b.jsx(yc,{rapidlyChangingMotionState:e,dhParameters:r,children:b.jsx($1,{modelURL:n(t),postModelRender:s,flangeRef:i,...a})})})}),b.jsx(_1,{})]})});function A1({connectedMotionGroup:e,getModel:t=zi,isGhost:r=!1,flangeRef:n,...o}){return e.dhParameters?b.jsx(bc,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,isGhost:r,flangeRef:n,...o}):null}const I1=$.styled($.Fab,{shouldForwardProp:e=>e!=="selected"})(({theme:e})=>{var t,r,n;return{borderRadius:"20px","&:hover":{background:(t=e.palette.backgroundPaperElevation)==null?void 0:t[7]},variants:[{props:({selected:o})=>!o,style:{background:(r=e.palette.backgroundPaperElevation)==null?void 0:r[0],color:e.palette.action.disabled,"> img":{opacity:.4}}},{props:({selected:o})=>o,style:{background:(n=e.palette.backgroundPaperElevation)==null?void 0:n[11],border:`1px solid ${e.palette.divider}`,color:e.palette.primary.contrastText}}]}}),L1=W.forwardRef((e,t)=>b.jsx(I1,{ref:t,selected:e.selected,...e,color:"secondary",variant:"circular"})),N1={$schema:"https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",name:"wandelscript",patterns:[{include:"#keywords"},{include:"#strings"},{include:"#comments"},{include:"#functions"}],repository:{keywords:{patterns:[{name:"keyword.control.flow.wandelscript",match:"\\b(move|via|to|interrupt|def|False|True|for|if|else|elif|while|return|switch|activate|deactivate|print)\\b"}]},strings:{name:"string.quoted.double.wandelscript",begin:'"',end:'"',patterns:[{name:"constant.character.escape.wandelscript",match:"\\\\."}]},comments:{patterns:[{begin:"#",beginCaptures:{0:{name:"punctuation.definition.comment.wandelscript"}},end:"$",name:"comment.line.number-sign.wandelscript"}]},functions:{patterns:[{match:"[a-zA-Z_-]+\\(",name:"entity.name.function.wandelscript"}]}},scopeName:"source.wandelscript"},M1=W.lazy(()=>import("@monaco-editor/react")),D1=sn(e=>{const t=$.useTheme(),r=W.useRef(null),[n,o]=W.useState("dark-plus"),i=t.palette.mode==="dark"?"dark-plus":"light-plus";async function s(a){const[{createHighlighter:l},{shikiToMonaco:c}]=await Promise.all([import("shiki"),import("@shikijs/monaco")]);a.languages.register({id:"wandelscript"}),a.languages.setLanguageConfiguration("wandelscript",{comments:{lineComment:"#"},brackets:[["(",")"],["[","]"]],autoClosingPairs:[{open:"[",close:"]"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"}]}),r.current||(r.current=await l({langs:[N1],themes:["dark-plus","light-plus"]})),c(r.current,a),a.editor.defineTheme(i,{base:t.palette.mode==="dark"?"vs-dark":"vs",inherit:!0,rules:[],colors:t.palette.mode==="dark"?{"editor.background":"#262F42","editorLineNumber.foreground":"#797979","editorLineNumber.activeForeground":"#e9e9e9","editor.lineHighlightBorder":"#494949"}:{}}),e.monacoSetup&&e.monacoSetup(a),o(i)}return b.jsx(W.Suspense,{fallback:b.jsx(mo,{}),children:b.jsx(M1,{value:e.code,onMount:(a,l)=>{s(l)},onChange:e.onChange,defaultLanguage:"wandelscript",theme:n,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}})})});function vc(){var t,r,n,o,i,s;const e=$.createTheme({palette:{mode:"dark",text:{primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.38)"},primary:{main:"rgba(142, 86, 252, 1)",dark:"rgba(136, 58, 255, 1)",light:"rgba(157, 131, 246, 1)",contrastText:"rgba(255, 255, 255, 0.87)"},secondary:{main:"rgba(255, 255, 255, 1)",dark:"rgba(255, 255, 255, 0.06)",contrastText:"rgba(255, 255, 255, 0.87)"},tertiary:{main:"rgba(100, 255, 218, 1)",dark:"rgba(38, 166, 154, 1)",light:"rgba(167, 255, 235, 1)",contrastText:"rgba(0, 0, 0, 1)"},error:{main:"rgba(239, 83, 80, 1)",dark:"rgba(229, 57, 53, 1)",light:"rgba(239, 154, 154, 1)",contrastText:"rgba(255, 255, 255, 1)"},warning:{main:"rgba(255, 171, 64, 1)",dark:"rgba(255, 145, 0, 1)",light:"rgba(255, 209, 128, 1)",contrastText:"rgba(0, 0, 0, 0.87)"},success:{main:"rgba(38, 166, 154, 1)",dark:"rgba(0, 121, 107, 1)",light:"rgba(128, 203, 196, 1)",contrastText:"rgba(255, 255, 255, 0.87)"},background:{default:"rgba(2, 6, 23, 1)",paper:"rgba(17, 19, 31, 1)"},action:{active:"rgba(255, 255, 255, 0.56)",hover:"rgba(255, 255, 255, 0.08)",selected:"rgba(255, 255, 255, 0.16)",disabledBackground:"rgba(255, 255, 255, 0.12)",focus:"rgba(255, 255, 255, 0.12)",disabled:"rgba(255, 255, 255, 0.38)"},common:{white:"rgba(255, 255, 255, 1)",black:"rgba(0, 0, 0, 1)"},divider:"rgba(255, 255, 255, 0.12)",backgroundPaperElevation:{0:"rgba(17,19,31,1.0)",1:"rgba(20,22,35,1.0)",2:"rgba(23,25,39,1.0)",3:"rgba(26,28,43,1.0)",4:"rgba(29,31,47,1.0)",5:"rgba(32,34,51,1.0)",6:"rgba(35,37,55,1.0)",7:"rgba(38,40,59,1.0)",8:"rgba(41,43,63,1.0)",9:"rgba(44,46,67,1.0)",10:"rgba(47,49,71,1.0)",11:"rgba(50,52,75,1.0)",12:"rgba(53,55,79,1.0)",13:"rgba(56,58,83,1.0)",14:"rgba(59,61,87,1.0)",15:"rgba(62,64,91,1.0)",16:"rgba(57,63,87,1.0)"}},paletteExt:{primary:{hover:"rgba(142, 86, 252, 0.08)",selected:"rgba(142, 86, 252, 0.16)",focus:"rgba(142, 86, 252, 0.12)",focusVisible:"rgba(142, 86, 252, 0.3)",outlineBorder:"rgba(142, 86, 252, 0.5)"},secondary:{tonal:"rgba(255,255,255,0.1)"}}});return{...e,components:{MuiButton:{styleOverrides:{root:{textTransform:"none",borderRadius:"10px"}},variants:[{props:{color:"secondary",variant:"contained"},style:{border:`1px solid ${e.palette.divider}`,background:(n=(r=(t=e.paletteExt)==null?void 0:t.secondary)==null?void 0:r.tonal)==null?void 0:n.toString()}},{props:{color:"secondary",variant:"outlined"},style:{border:`1px solid ${e.palette.divider}`}}]},MuiTab:{styleOverrides:{root:{textTransform:"none",color:e.palette.text.secondary,"&.Mui-selected":{color:e.palette.text.primary}}}},MuiTabs:{styleOverrides:{root:{background:(o=e.palette.backgroundPaperElevation)==null?void 0:o[1]}}},MuiToggleButtonGroup:{styleOverrides:{root:{".MuiToggleButtonGroup-firstButton":{borderRadius:"10px 0 0 10px"},".MuiToggleButtonGroup-lastButton":{borderRadius:"0 10px 10px 0"}}}},MuiToggleButton:{styleOverrides:{root:{textTransform:"none",padding:"6px 16px"}}},MuiSelect:{variants:[{props:{variant:"filled"},style:{borderRadius:"10px","::before, ::after":{visibility:"collapse"},".MuiInputBase-input":{padding:"6px 16px",borderRadius:"10px"}}}]},MuiFab:{styleOverrides:{root:{background:(s=(i=e.paletteExt)==null?void 0:i.secondary)==null?void 0:s.tonal}},variants:[{props:{color:"primary"},style:{background:e.palette.primary.main}}]}},componentsExt:{JoggingCartesian:{Axis:{X:{backgroundColor:"rgba(215, 66, 56, 1)",borderColor:"rgba(215, 66, 56, 1)",buttonBackgroundColor:{default:"rgba(241, 77, 66, 1)",pressed:"rgba(138, 41, 35, 1)",hovered:"rgba(241, 77, 66, 1)",disabled:"rgba(241, 77, 66, 1)"},color:"rgba(255, 198, 198, 1)"},Y:{backgroundColor:"rgba(20, 151, 108, 1)",borderColor:"rgba(20, 151, 108, 1)",buttonBackgroundColor:{default:"rgba(28, 188, 135, 1)",pressed:"rgba(11, 89, 63, 1)",disabled:"rgba(28, 188, 135, 1)",hovered:"rgba(28, 188, 135, 1)"},color:"rgba(215, 255, 242, 1)"},Z:{backgroundColor:"rgba(1, 87, 155, 1)",borderColor:"rgba(1, 87, 155, 1)",buttonBackgroundColor:{default:"rgba(2, 136, 209, 1)",pressed:"rgba(2, 64, 114, 1)",disabled:"rgba(2, 136, 209, 1)",hovered:"rgba(2, 136, 209, 1)"},color:"rgba(210, 239, 255, 1)"}}}}}}function F1(){const e=vc();return e.palette.mode="light",e}function V1(e){var n,o,i,s;let t=!0;((n=e.palette)==null?void 0:n.mode)==="light"?t=!1:((o=e.palette)==null?void 0:o.mode)!=="dark"&&(t=!(typeof window<"u"&&((s=(i=window.matchMedia)==null?void 0:i.call(window,"(prefers-color-scheme: light)"))==null?void 0:s.matches)));const r=t?vc():F1();return ll(r,e)}exports.JoggingCartesianAxisControl=ri;exports.JoggingJointRotationControl=bl;exports.JoggingPanel=y1;exports.LoadingCover=mo;exports.LoadingErrorMessage=Jl;exports.NoMotionGroupModal=w1;exports.PoseCartesianValues=v1;exports.PoseJointValues=x1;exports.PresetEnvironment=Lc;exports.Robot=A1;exports.SafetyZonesRenderer=Dc;exports.SelectableFab=L1;exports.SupportedRobot=bc;exports.VelocitySlider=dc;exports.VelocitySliderLabel=Ui;exports.WandelscriptEditor=D1;exports.createNovaMuiTheme=V1;exports.defaultAxisConfig=T1;exports.defaultGetModel=zi;exports.useAnimationFrame=wr;exports.useAutorun=dl;exports.useMounted=lo;exports.useReaction=$i;
84
84
  //# sourceMappingURL=index.cjs.map