@wandelbots/wandelbots-js-react-components 1.13.2 → 1.13.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/jogging/JoggingOptions.d.ts.map +1 -1
- package/dist/components/jogging/JoggingStore.d.ts +1 -1
- package/dist/components/jogging/JoggingStore.d.ts.map +1 -1
- package/dist/components/wandelscript-editor/WandelscriptEditor.d.ts.map +1 -1
- package/dist/index.cjs +11 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +758 -759
- package/dist/index.js.map +1 -1
- package/package.json +1 -2
- package/src/components/jogging/JoggingCartesianTab.tsx +4 -4
- package/src/components/jogging/JoggingOptions.tsx +10 -8
- package/src/components/jogging/JoggingPanel.tsx +3 -3
- package/src/components/jogging/JoggingStore.tsx +4 -4
- package/src/components/wandelscript-editor/WandelscriptEditor.tsx +2 -2
package/dist/index.cjs
CHANGED
|
@@ -32,17 +32,17 @@ React keys must be passed directly to JSX without using spread:
|
|
|
32
32
|
`)}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[is]=this[is]={accessors:{}}).accessors,o=this.prototype;function a(i){const l=Fr(i);n[l]||(ud(o,i),n[l]=!0)}return x.isArray(t)?t.forEach(a):a(t),this}};Fe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);x.reduceDescriptors(Fe.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});x.freezeMethods(Fe);function Mo(e,t){const r=this||rn,n=t||r,o=Fe.from(n.headers);let a=n.data;return x.forEach(e,function(l){a=l.call(r,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function Vi(e){return!!(e&&e.__CANCEL__)}function vr(e,t,r){J.call(this,e??"canceled",J.ERR_CANCELED,t,r),this.name="CanceledError"}x.inherits(vr,J,{__CANCEL__:!0});function Gi(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 dd(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function fd(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,a=0,i;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=n[a];i||(i=u),r[o]=c,n[o]=u;let h=a,f=0;for(;h!==o;)f+=r[h++],h=h%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),u-i<t)return;const b=d&&u-d;return b?Math.round(f*1e3/b):void 0}}function hd(e,t){let r=0,n=1e3/t,o,a;const i=(u,d=Date.now())=>{r=d,o=null,a&&(clearTimeout(a),a=null),e.apply(null,u)};return[(...u)=>{const d=Date.now(),h=d-r;h>=n?i(u,d):(o=u,a||(a=setTimeout(()=>{a=null,i(o)},n-h)))},()=>o&&i(o)]}const Fn=(e,t,r=3)=>{let n=0;const o=fd(50,250);return hd(a=>{const i=a.loaded,l=a.lengthComputable?a.total:void 0,c=i-n,u=o(c),d=i<=l;n=i;const h={loaded:i,total:l,progress:l?i/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&d?(l-i)/u:void 0,event:a,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(h)},r)},ls=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},cs=e=>(...t)=>x.asap(()=>e(...t)),md=st.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(a){let i=a;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(i){const l=x.isString(i)?o(i):i;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}(),pd=st.hasStandardBrowserEnv?{write(e,t,r,n,o,a){const i=[e+"="+encodeURIComponent(t)];x.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),x.isString(n)&&i.push("path="+n),x.isString(o)&&i.push("domain="+o),a===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function gd(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yd(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function zi(e,t){return e&&!gd(t)?yd(e,t):t}const us=e=>e instanceof Fe?{...e}:e;function Ht(e,t){t=t||{};const r={};function n(u,d,h){return x.isPlainObject(u)&&x.isPlainObject(d)?x.merge.call({caseless:h},u,d):x.isPlainObject(d)?x.merge({},d):x.isArray(d)?d.slice():d}function o(u,d,h){if(x.isUndefined(d)){if(!x.isUndefined(u))return n(void 0,u,h)}else return n(u,d,h)}function a(u,d){if(!x.isUndefined(d))return n(void 0,d)}function i(u,d){if(x.isUndefined(d)){if(!x.isUndefined(u))return n(void 0,u)}else return n(void 0,d)}function l(u,d,h){if(h in t)return n(u,d);if(h in e)return n(void 0,u)}const c={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(u,d)=>o(us(u),us(d),!0)};return x.forEach(Object.keys(Object.assign({},e,t)),function(d){const h=c[d]||o,f=h(e[d],t[d],d);x.isUndefined(f)&&h!==l||(r[d]=f)}),r}const Wi=e=>{const t=Ht({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:l}=t;t.headers=i=Fe.from(i),t.url=Ui(zi(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(x.isFormData(r)){if(st.hasStandardBrowserEnv||st.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[u,...d]=c?c.split(";").map(h=>h.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...d].join("; "))}}if(st.hasStandardBrowserEnv&&(n&&x.isFunction(n)&&(n=n(t)),n||n!==!1&&md(t.url))){const u=o&&a&&pd.read(a);u&&i.set(o,u)}return t},_d=typeof XMLHttpRequest<"u",bd=_d&&function(e){return new Promise(function(r,n){const o=Wi(e);let a=o.data;const i=Fe.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:u}=o,d,h,f,b,y;function _(){b&&b(),y&&y(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let g=new XMLHttpRequest;g.open(o.method.toUpperCase(),o.url,!0),g.timeout=o.timeout;function v(){if(!g)return;const C=Fe.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),j={data:!l||l==="text"||l==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:C,config:e,request:g};Gi(function(O){r(O),_()},function(O){n(O),_()},j),g=null}"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(v)},g.onabort=function(){g&&(n(new J("Request aborted",J.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new J("Network Error",J.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let k=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const j=o.transitional||Bi;o.timeoutErrorMessage&&(k=o.timeoutErrorMessage),n(new J(k,j.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,g)),g=null},a===void 0&&i.setContentType(null),"setRequestHeader"in g&&x.forEach(i.toJSON(),function(k,j){g.setRequestHeader(j,k)}),x.isUndefined(o.withCredentials)||(g.withCredentials=!!o.withCredentials),l&&l!=="json"&&(g.responseType=o.responseType),u&&([f,y]=Fn(u,!0),g.addEventListener("progress",f)),c&&g.upload&&([h,b]=Fn(c),g.upload.addEventListener("progress",h),g.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(d=C=>{g&&(n(!C||C.type?new vr(null,e,g):C),g.abort(),g=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const R=dd(o.url);if(R&&st.protocols.indexOf(R)===-1){n(new J("Unsupported protocol "+R+":",J.ERR_BAD_REQUEST,e));return}g.send(a||null)})},Sd=(e,t)=>{let r=new AbortController,n;const o=function(c){if(!n){n=!0,i();const u=c instanceof Error?c:this.reason;r.abort(u instanceof J?u:new vr(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{o(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",o):c.unsubscribe(o))}),e=null)};e.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=i,[l,()=>{a&&clearTimeout(a),a=null}]},xd=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},vd=async function*(e,t,r){for await(const n of e)yield*xd(ArrayBuffer.isView(n)?n:await r(String(n)),t)},ds=(e,t,r,n,o)=>{const a=vd(e,t,o);let i=0,l,c=u=>{l||(l=!0,n&&n(u))};return new ReadableStream({async pull(u){try{const{done:d,value:h}=await a.next();if(d){c(),u.close();return}let f=h.byteLength;if(r){let b=i+=f;r(b)}u.enqueue(new Uint8Array(h))}catch(d){throw c(d),d}},cancel(u){return c(u),a.return()}},{highWaterMark:2})},Qn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Hi=Qn&&typeof ReadableStream=="function",Xo=Qn&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ki=(e,...t)=>{try{return!!e(...t)}catch{return!1}},wd=Hi&&Ki(()=>{let e=!1;const t=new Request(st.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),fs=64*1024,qo=Hi&&Ki(()=>x.isReadableStream(new Response("").body)),Dn={stream:qo&&(e=>e.body)};Qn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Dn[t]&&(Dn[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 Rd=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 Xo(e)).byteLength},jd=async(e,t)=>{const r=x.toFiniteNumber(e.getContentLength());return r??Rd(t)},Cd=Qn&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:a,timeout:i,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:d,withCredentials:h="same-origin",fetchOptions:f}=Wi(e);u=u?(u+"").toLowerCase():"text";let[b,y]=o||a||i?Sd([o,a],i):[],_,g;const v=()=>{!_&&setTimeout(()=>{b&&b.unsubscribe()}),_=!0};let R;try{if(c&&wd&&r!=="get"&&r!=="head"&&(R=await jd(d,n))!==0){let P=new Request(t,{method:"POST",body:n,duplex:"half"}),O;if(x.isFormData(n)&&(O=P.headers.get("content-type"))&&d.setContentType(O),P.body){const[z,le]=ls(R,Fn(cs(c)));n=ds(P.body,fs,z,le,Xo)}}x.isString(h)||(h=h?"include":"omit"),g=new Request(t,{...f,signal:b,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",credentials:h});let C=await fetch(g);const k=qo&&(u==="stream"||u==="response");if(qo&&(l||k)){const P={};["status","statusText","headers"].forEach(ue=>{P[ue]=C[ue]});const O=x.toFiniteNumber(C.headers.get("content-length")),[z,le]=l&&ls(O,Fn(cs(l),!0))||[];C=new Response(ds(C.body,fs,z,()=>{le&&le(),k&&v()},Xo),P)}u=u||"text";let j=await Dn[x.findKey(Dn,u)||"text"](C,e);return!k&&v(),y&&y(),await new Promise((P,O)=>{Gi(P,O,{data:j,headers:Fe.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:g})})}catch(C){throw v(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new J("Network Error",J.ERR_NETWORK,e,g),{cause:C.cause||C}):J.from(C,C&&C.code,e,g)}}),Yo={http:Vu,xhr:bd,fetch:Cd};x.forEach(Yo,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const hs=e=>`- ${e}`,Ad=e=>x.isFunction(e)||e===null||e===!1,Xi={getAdapter:e=>{e=x.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let a=0;a<t;a++){r=e[a];let i;if(n=r,!Ad(r)&&(n=Yo[(i=String(r)).toLowerCase()],n===void 0))throw new J(`Unknown adapter '${i}'`);if(n)break;o[i||"#"+a]=n}if(!n){const a=Object.entries(o).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=t?a.length>1?`since :
|
|
33
33
|
`+a.map(hs).join(`
|
|
34
34
|
`):" "+hs(a[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:Yo};function Io(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new vr(null,e)}function ms(e){return Io(e),e.headers=Fe.from(e.headers),e.data=Mo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Xi.getAdapter(e.adapter||rn.adapter)(e).then(function(n){return Io(e),n.data=Mo.call(e,e.transformResponse,n),n.headers=Fe.from(n.headers),n},function(n){return Vi(n)||(Io(e),n&&n.response&&(n.response.data=Mo.call(e,e.transformResponse,n.response),n.response.headers=Fe.from(n.response.headers))),Promise.reject(n)})}const qi="1.7.4",ba={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ba[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ps={};ba.transitional=function(t,r,n){function o(a,i){return"[Axios v"+qi+"] Transitional option '"+a+"'"+i+(n?". "+n:"")}return(a,i,l)=>{if(t===!1)throw new J(o(i," has been removed"+(r?" in "+r:"")),J.ERR_DEPRECATED);return r&&!ps[i]&&(ps[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,i,l):!0}};function Pd(e,t,r){if(typeof e!="object")throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const a=n[o],i=t[a];if(i){const l=e[a],c=l===void 0||i(l,a,e);if(c!==!0)throw new J("option "+a+" must be "+c,J.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new J("Unknown option "+a,J.ERR_BAD_OPTION)}}const Zo={assertOptions:Pd,validators:ba},Et=Zo.validators;let Wt=class{constructor(t){this.defaults=t,this.interceptors={request:new ss,response:new ss}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
35
|
-
`+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ht(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&Zo.assertOptions(n,{silentJSONParsing:Et.transitional(Et.boolean),forcedJSONParsing:Et.transitional(Et.boolean),clarifyTimeoutError:Et.transitional(Et.boolean)},!1),o!=null&&(x.isFunction(o)?r.paramsSerializer={serialize:o}:Zo.assertOptions(o,{encode:Et.function,serialize:Et.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=a&&x.merge(a.common,a[r.method]);a&&x.forEach(["delete","get","head","post","put","patch","common"],y=>{delete a[y]}),r.headers=Fe.concat(i,a);const l=[];let c=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(r)===!1||(c=c&&_.synchronous,l.unshift(_.fulfilled,_.rejected))});const u=[];this.interceptors.response.forEach(function(_){u.push(_.fulfilled,_.rejected)});let d,h=0,f;if(!c){const y=[ms.bind(this),void 0];for(y.unshift.apply(y,l),y.push.apply(y,u),f=y.length,d=Promise.resolve(r);h<f;)d=d.then(y[h++],y[h++]);return d}f=l.length;let b=r;for(h=0;h<f;){const y=l[h++],_=l[h++];try{b=y(b)}catch(g){_.call(this,g);break}}try{d=ms.call(this,b)}catch(y){return Promise.reject(y)}for(h=0,f=u.length;h<f;)d=d.then(u[h++],u[h++]);return d}getUri(t){t=Ht(this.defaults,t);const r=zi(t.baseURL,t.url);return Ui(r,t.params,t.paramsSerializer)}};x.forEach(["delete","get","head","options"],function(t){Wt.prototype[t]=function(r,n){return this.request(Ht(n||{},{method:t,url:r,data:(n||{}).data}))}});x.forEach(["post","put","patch"],function(t){function r(n){return function(a,i,l){return this.request(Ht(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Wt.prototype[t]=r(),Wt.prototype[t+"Form"]=r(!0)});let Od=class Yi{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(o=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](o);n._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(l=>{n.subscribe(l),a=l}).then(o);return i.cancel=function(){n.unsubscribe(a)},i},t(function(a,i,l){n.reason||(n.reason=new vr(a,i,l),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new Yi(function(o){t=o}),cancel:t}}};function Td(e){return function(r){return e.apply(null,r)}}function Md(e){return x.isObject(e)&&e.isAxiosError===!0}const Qo={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(Qo).forEach(([e,t])=>{Qo[t]=e});function Zi(e){const t=new Wt(e),r=Pi(Wt.prototype.request,t);return x.extend(r,Wt.prototype,t,{allOwnKeys:!0}),x.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Zi(Ht(e,o))},r}const ve=Zi(rn);ve.Axios=Wt;ve.CanceledError=vr;ve.CancelToken=Od;ve.isCancel=Vi;ve.VERSION=qi;ve.toFormData=Zn;ve.AxiosError=J;ve.Cancel=ve.CanceledError;ve.all=function(t){return Promise.all(t)};ve.spread=Td;ve.isAxiosError=Md;ve.mergeConfig=Ht;ve.AxiosHeaders=Fe;ve.formToJSON=e=>Ji(x.isHTMLForm(e)?new FormData(e):e);ve.getAdapter=Xi.getAdapter;ve.HttpStatusCode=Qo;ve.default=ve;const{Axios:K_,AxiosError:gs,CanceledError:X_,isCancel:q_,CancelToken:Y_,VERSION:Z_,all:Q_,Cancel:eb,isAxiosError:tb,spread:rb,toFormData:nb,AxiosHeaders:ob,HttpStatusCode:ab,formToJSON:sb,getAdapter:ib,mergeConfig:lb}=ve;function Id(e){try{return JSON.stringify(e)}catch{return}}function Ed(e){var t,r,n,o;return e instanceof gs&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof gs&&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: ${Id(e)||e}`}const Qi=e=>{const t=e.softTimeout||3e3,[r,n]=q.useState(!1);return q.useEffect(()=>{const o=setTimeout(()=>{n(!0)},t);return()=>clearTimeout(o)}),s.jsx(L.Stack,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",children:e.error?s.jsx(Ld,{message:e.message,error:e.error}):s.jsxs(s.Fragment,{children:[s.jsx(L.CircularProgress,{sx:{marginBottom:"24px"}}),!!e.message&&s.jsx("div",{children:e.message}),s.jsx(L.Stack,{sx:{visibility:r?"visible":"hidden",marginTop:"1rem",color:"gray"},children:"This is taking longer than expected..."})]})})},Ld=e=>{const t=Ed(e.error),r=e.error instanceof Error?e.error.stack:null,n=L.useTheme();return s.jsxs(L.Stack,{sx:{maxHeight:"100%",maxWidth:"min(100%, 800px)",padding:2,overflow:"auto",color:n.palette.error.main,"& pre":{whiteSpace:"pre-wrap",wordBreak:"break-word",paddingBottom:"3rem"}},children:[`Error while: ${e.message} - ${t}`,s.jsx("br",{}),r&&s.jsx("pre",{children:r})]})},kd=en(e=>{const t=L.useTheme(),r=q.useRef(null),[n,o]=q.useState("dark-plus"),a=t.palette.mode==="dark"?"dark-plus":"light-plus",i=q.lazy(()=>import("@monaco-editor/react"));async function l(c){const[{createHighlighter:u},{shikiToMonaco:d}]=await Promise.all([import("shiki"),import("@shikijs/monaco")]);c.languages.register({id:"wandelscript"}),c.languages.setLanguageConfiguration("wandelscript",{comments:{lineComment:"#"},brackets:[["(",")"],["[","]"]],autoClosingPairs:[{open:"[",close:"]"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"}]}),r.current||(r.current=await u({langs:[Mc],themes:["dark-plus","light-plus"]})),d(r.current,c),c.editor.defineTheme(a,{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(c),o(a)}return s.jsx(q.Suspense,{fallback:s.jsx(Qi,{}),children:s.jsx(i,{value:e.code,onMount:(c,u)=>{l(u)},onChange:e.onChange,defaultLanguage:"wandelscript",theme:n,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}})})}),$d="(^joint_[0-9]+$)|(_J[0-9]+$)";function el(e){return e.children.length===0?[e]:[e,...e.children.flatMap(t=>el(t))]}function Nd(e,t){return new RegExp(t??$d).test(e)}function tl(e,t){return el(e).filter(r=>Nd(r.name,t))}function eo(e){q.useEffect(e,[])}function rl(e){eo(()=>br.autorun(e))}function nl(e,t,r){eo(()=>br.reaction(e,t,r))}function wr(e){return eo(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}function ge({rapidlyChangingMotionState:e,robotRootObjectName:t,onRotationChanged:r,jointCollector:n}){S.Globals.assign({frameLoop:"always"});const o=q.useRef([]),a=q.useRef([]),{scene:i,invalidate:l}=Rc.useThree();q.useEffect(()=>{const f=i.getObjectByName(t);f&&(a.current=n?n(f):tl(f),u(),l())},[]);function c(f){o.current=f,h.start(Object.assign({},o.current))}function u(){const f=a.current.map((b,y)=>d[y].get());r(a.current,f)}rl(()=>{const f=e.state.joint_position.joints.filter(b=>b!==void 0);requestAnimationFrame(()=>c(f))});const[d,h]=S.useSpring(()=>({...Object.assign({},e.state.joint_position.joints),onChange:()=>{u(),l()},onResolve:()=>{u()}}));return null}function Fd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR3",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3_J02",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3_J03",position:[-.244,0,0],children:[s.jsxs(S.animated.group,{name:"UR3_J04",position:[-.213,0,0],children:[s.jsxs(S.animated.group,{name:"UR3_J05",position:[0,.112,0],rotation:[Math.PI/2,0,0],children:[s.jsx("mesh",{name:"UR3_05",castShadow:!0,receiveShadow:!0,geometry:o.UR3_05.geometry,material:a.Standard}),s.jsxs(S.animated.group,{name:"UR3_J06",position:[0,.085,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR3_FLG",position:[0,.082,0]}),s.jsx("mesh",{name:"UR3_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L06.geometry,material:a.Standard})]})]}),s.jsx("mesh",{name:"UR3_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L04.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L03.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L02.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L01.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L00.geometry,material:a.Standard,rotation:[-Math.PI/2,0,0]})]})})})]})}function Dd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs(S.animated.group,{name:"UR3e",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J02",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J03",position:[-.244,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J04",position:[-.213,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J05",position:[0,.131,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J06",position:[0,.085,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR3e_FLG",position:[0,.092,0]}),s.jsx("mesh",{name:"UR3e_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L06.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L05",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L05.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L04.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L03.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L02.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L01.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L00.geometry,material:a.Standard,rotation:[-Math.PI/2,0,0]})]})})})]})}function Ud({modelURL:e,rapidlyChangingMotionState:t,...r}){const o=ie.useGLTF(e).nodes;function a(i,l){i.forEach((c,u)=>c.rotation.y=l[u])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:a}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR5",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J02",position:[0,.089,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J03",position:[-.425,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J04",position:[-.392,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J05",position:[0,.109,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J06",position:[0,.095,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR5_FLG",position:[0,.082,0]}),s.jsx("mesh",{name:"UR5_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L06.geometry,material:o.UR5_L06.material})]}),s.jsx("mesh",{name:"UR5_L05",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L05.geometry,material:o.UR5_L05.material})]}),s.jsx("mesh",{name:"UR5_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L04.geometry,material:o.UR5_L04.material})]}),s.jsx("mesh",{name:"UR5_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L03.geometry,material:o.UR5_L03.material})]}),s.jsx("mesh",{name:"UR5_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L02.geometry,material:o.UR5_L02.material})]}),s.jsx("mesh",{name:"UR5_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L01.geometry,material:o.UR5_L01.material})]}),s.jsx("mesh",{name:"UR5_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L00.geometry,material:o.UR5_L00.material,rotation:[-Math.PI/2,0,0]})]})})})]})}function Bd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR5e",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J02",position:[0,.162,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J03",position:[-.425,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J04",position:[-.392,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J05",position:[0,.133,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J06",position:[0,.1,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR5e_FLG",position:[0,.1,0]}),s.jsx("group",{name:"UR5e_L06",position:[0,.1,0],rotation:[0,0,-Math.PI],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000255",castShadow:!0,receiveShadow:!0,geometry:o["C-1000255"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000255_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000255_1"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L05",rotation:[-Math.PI/2,-Math.PI/3,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000253",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000253_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000253_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253_2"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000253_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253_3"].geometry,material:a.DarkGray})]})})]}),s.jsx("group",{name:"UR5e_L04",rotation:[0,-Math.PI/3,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000251",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000251_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000251_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251_2"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000251_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251_3"].geometry,material:a.DarkGray})]})})]}),s.jsx("group",{name:"UR5e_L03",children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000250",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000250_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_1"].geometry,material:a.DarkGray}),s.jsx("mesh",{name:"C-1000250_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_2"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000250_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_3"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000250_4",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_4"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L02",rotation:[0,-Math.PI/2,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000249",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000249_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000249_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_2"].geometry,material:a.DarkGray}),s.jsx("mesh",{name:"C-1000249_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_3"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000249_4",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_4"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L01",rotation:[Math.PI/2,0,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000248",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248"].geometry,material:a.DarkGray}),s.jsx("mesh",{name:"C-1000248_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000248_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248_2"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000248_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248_3"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L00",children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000257",castShadow:!0,receiveShadow:!0,geometry:o["C-1000257"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000257_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000257_1"].geometry,material:a.Metal})]})})]})})})]})}function Jd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR10",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J02",position:[0,.126,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J03",position:[-.612,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J04",position:[-.572,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J05",position:[0,.164,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J06",position:[0,.116,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR10_FLG",position:[0,.092,0]}),s.jsx("mesh",{name:"UR10_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L06.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L05",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L05.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L04.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L03.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L02.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L01.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L00.geometry,material:a.Standard,rotation:[-Math.PI/2,0,0]})]})})})]})}function Vd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR10e",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J02",position:[0,.181,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J03",position:[-.613,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J04",position:[-.572,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J05",position:[0,.174,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J06",position:[0,.12,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_FLG",position:[1.184,-.174,.061],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000493",geometry:o["C-1000493"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000493_1",geometry:o["C-1000493_1"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0})]}),s.jsx("group",{name:"UR10e_L07",position:[0,.117,0]})]}),s.jsxs("group",{name:"UR10e_L06",position:[1.184,.181,.174],rotation:[Math.PI,0,0],children:[s.jsx("mesh",{name:"C-1000492",geometry:o["C-1000492"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000492_1",geometry:o["C-1000492_1"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000492_2",geometry:o["C-1000492_2"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000492_3",geometry:o["C-1000492_3"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L05",position:[1.184,0,.181],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000491",geometry:o["C-1000491"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000491_1",geometry:o["C-1000491_1"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000491_2",geometry:o["C-1000491_2"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000491_3",geometry:o["C-1000491_3"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L04",position:[.613,0,.181],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000490",geometry:o["C-1000490"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000490_1",geometry:o["C-1000490_1"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000490_2",geometry:o["C-1000490_2"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000490_3",geometry:o["C-1000490_3"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs(S.animated.group,{name:"UR10e_L03",position:[0,0,.181],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000489",geometry:o["C-1000489"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_1",geometry:o["C-1000489_1"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_2",geometry:o["C-1000489_2"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_3",geometry:o["C-1000489_3"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_4",geometry:o["C-1000489_4"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L02",children:[s.jsx("mesh",{name:"C-1000488",geometry:o["C-1000488"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000488_1",geometry:o["C-1000488_1"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000488_2",geometry:o["C-1000488_2"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000488_3",geometry:o["C-1000488_3"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L01",rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000487",geometry:o["C-1000487"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000487_1",geometry:o["C-1000487_1"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0})]})]})})})]})}function ys({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"AR900",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR900_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR900_J02",position:[.04,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"AR900_J03",position:[.445,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(S.animated.group,{name:"AR900_J04",position:[.04,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR900_J05",position:[0,-.44,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR900_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR900_FLG",position:[0,-.08,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR900_L06",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L06.geometry,material:a["#BBA474.001"]})]}),s.jsx("mesh",{name:"AR900_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L05.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L04",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L04.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L03",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L03.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L02.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L01",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L01.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L00.geometry,material:a["#0056b9.001"],rotation:[-Math.PI/2,0,0]})]})})})]})}function Gd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((h,f)=>h.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"AR1440",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1440_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1440_J02",position:[.155,0,0],rotation:[Math.PI/2,0,Math.PI],children:[s.jsxs(S.animated.group,{name:"AR1440_J03",position:[.614,0,0],rotation:[Math.PI,0,0],children:[s.jsxs(S.animated.group,{name:"AR1440_J04",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1440_J05",position:[0,-.64,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1440_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR1440_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR1440_L06_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L06_CAD.geometry,material:a.metall})]}),s.jsx("mesh",{name:"AR1440_L05_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L05_CAD.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR1440_L04_CAD",children:[s.jsx("mesh",{name:"AR1440_L04_CAD001",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L04_CAD001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR1440_L04_CAD001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L04_CAD001_1.geometry,material:a.white})]})]}),s.jsxs("group",{name:"AR1440_L03_CAD",children:[s.jsx("mesh",{name:"AR1440_L03_CAD001",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L03_CAD001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR1440_L03_CAD001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L03_CAD001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR1440_L02_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L02_CAD.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR1440_L01_CAD",children:[s.jsx("mesh",{name:"AR1440_L01_CAD001",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L01_CAD001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR1440_L01_CAD001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L01_CAD001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR1440_L00_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L00_CAD.geometry,material:a.yaskawaBlueMetall,position:[0,0,.45],rotation:[-Math.PI/2,0,0]})]})})})]})}function zd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((h,f)=>h.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(S.animated.group,{name:"AR1730_J00",children:[s.jsxs(S.animated.group,{name:"AR1730_J01",position:[.15,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"AR1730_J02",position:[.76,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(S.animated.group,{name:"AR1730_J03",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1730_J04",position:[0,-.795,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1730_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR1730_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR1730_L06",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L06.geometry,material:a.Metal,rotation:[Math.PI/2,-Math.PI/2,0]})]}),s.jsx("mesh",{name:"AR1730_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L05.geometry,material:a.Blue,rotation:[Math.PI/2,0,Math.PI/2]})]}),s.jsxs("group",{name:"AR1730_L04",position:[0,-.302,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"_R_AXIS_SW0001002",castShadow:!0,receiveShadow:!0,geometry:o._R_AXIS_SW0001002.geometry,material:a.Blue}),s.jsx("mesh",{name:"_R_AXIS_SW0001002_1",castShadow:!0,receiveShadow:!0,geometry:o._R_AXIS_SW0001002_1.geometry,material:a.White})]})]}),s.jsxs("group",{name:"AR1730_L03",rotation:[Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"_U_AXIS_SW0001002",castShadow:!0,receiveShadow:!0,geometry:o._U_AXIS_SW0001002.geometry,material:a.Blue}),s.jsx("mesh",{name:"_U_AXIS_SW0001002_1",castShadow:!0,receiveShadow:!0,geometry:o._U_AXIS_SW0001002_1.geometry,material:a.Black})]})]}),s.jsx("mesh",{name:"AR1730_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L02.geometry,material:a.Blue,position:[0,-.157,0],rotation:[-Math.PI,-1.571,0]})]}),s.jsxs("group",{name:"AR1730_L01",position:[0,-.336,0],rotation:[Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"_S_AXIS_SW0001002",castShadow:!0,receiveShadow:!0,geometry:o._S_AXIS_SW0001002.geometry,material:a.Blue}),s.jsx("mesh",{name:"_S_AXIS_SW0001002_1",castShadow:!0,receiveShadow:!0,geometry:o._S_AXIS_SW0001002_1.geometry,material:a.Black})]})]}),s.jsx("mesh",{name:"AR1730_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L00.geometry,material:a.Blue,position:[0,-.505,0],rotation:[Math.PI/2,0,-Math.PI/2]})]})})]})}function Wd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((h,f)=>h.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"AR2010",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR2010_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR2010_J02",position:[.15,0,0],rotation:[Math.PI/2,0,Math.PI],children:[s.jsxs(S.animated.group,{name:"AR2010_J03",position:[.76,0,0],rotation:[Math.PI,0,0],children:[s.jsxs(S.animated.group,{name:"AR2010_J04",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR2010_J05",position:[0,-1.082,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR2010_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR2010_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsxs("group",{name:"AR2010_L06",children:[s.jsx("mesh",{name:"AR2010_06001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_06001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_06001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_06001_1.geometry,material:a.metall})]})]}),s.jsx("mesh",{name:"AR2010_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_L05.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR2010_L04",children:[s.jsx("mesh",{name:"AR2010_04001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_04001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_04001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_04001_1.geometry,material:a.white})]})]}),s.jsxs("group",{name:"AR2010_L03",children:[s.jsx("mesh",{name:"AR2010_03001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_03001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_03001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_03001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR2010_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_L02.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR2010_L01",children:[s.jsx("mesh",{name:"AR2010_01001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_01001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_01001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_01001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR2010_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_L00.geometry,material:a.yaskawaBlueMetall,rotation:[-Math.PI/2,0,0]})]})})})]})}function Hd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((h,f)=>h.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(S.animated.group,{name:"AR3120_J00",children:[s.jsxs(S.animated.group,{name:"AR3120_J01",position:[.145,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"AR3120_J02",position:[1.15,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(S.animated.group,{name:"AR3120_J03",position:[.25,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR3120_J04",position:[0,-1.812,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR3120_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR3120_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR3120_L06",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L06.geometry,material:a["Metal.001"],rotation:[Math.PI/2,-Math.PI/2,0]})]}),s.jsx("mesh",{name:"AR3120_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L05.geometry,material:a["Blue.001"],rotation:[Math.PI/2,0,Math.PI/2]})]}),s.jsxs("group",{name:"AR3120_L04",rotation:[Math.PI/2,-Math.PI/2,0],children:[s.jsx("mesh",{name:"R_AXIS_GP20HL001",castShadow:!0,receiveShadow:!0,geometry:o.R_AXIS_GP20HL001.geometry,material:a["Blue.001"]}),s.jsx("mesh",{name:"R_AXIS_GP20HL001_1",castShadow:!0,receiveShadow:!0,geometry:o.R_AXIS_GP20HL001_1.geometry,material:a["White.001"]})]})]}),s.jsxs("group",{name:"AR3120_L03",rotation:[Math.PI,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_3001",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_3001.geometry,material:a["Blue.001"]}),s.jsx("mesh",{name:"Mesh_3001_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_3001_1.geometry,material:a["Black.001"]})]})]}),s.jsx("mesh",{name:"AR3120_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L02.geometry,material:a["Blue.001"],position:[0,-.146,0],rotation:[Math.PI,0,0]})]}),s.jsxs("group",{name:"AR3120_L01",position:[0,-.228,0],rotation:[0,-1.571,0],children:[s.jsx("mesh",{name:"S_AXIS_GP20HL001",castShadow:!0,receiveShadow:!0,geometry:o.S_AXIS_GP20HL001.geometry,material:a["Blue.001"]}),s.jsx("mesh",{name:"S_AXIS_GP20HL001_1",castShadow:!0,receiveShadow:!0,geometry:o.S_AXIS_GP20HL001_1.geometry,material:a["Black.001"]})]})]}),s.jsx("mesh",{name:"AR3120_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L00.geometry,material:a["Blue.001"],position:[0,-.54,0]})]})})]})}function Kd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,1,1,1,1,1];function c(u,d){u.forEach((h,f)=>h.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs("group",{name:"link_0",children:[s.jsx("mesh",{name:"shape439",castShadow:!0,receiveShadow:!0,geometry:o.shape439.geometry,material:a.yaskawa_blue}),s.jsx("mesh",{name:"shape439_1",castShadow:!0,receiveShadow:!0,geometry:o.shape439_1.geometry,material:a.yaskawa_metalsilver}),s.jsx("mesh",{name:"shape439_2",castShadow:!0,receiveShadow:!0,geometry:o.shape439_2.geometry,material:a.yaskawa_black})]}),s.jsxs(S.animated.group,{name:"YASKAWA_GP50_J00",position:[0,-.54,0],children:[s.jsxs("group",{name:"link_1",position:[0,.54,0],children:[s.jsx("mesh",{name:"shape320",castShadow:!0,receiveShadow:!0,geometry:o.shape320.geometry,material:a.yaskawa_blue}),s.jsx("mesh",{name:"shape320_1",castShadow:!0,receiveShadow:!0,geometry:o.shape320_1.geometry,material:a.yaskawa_black}),s.jsx("mesh",{name:"shape320_2",castShadow:!0,receiveShadow:!0,geometry:o.shape320_2.geometry,material:a.yaskawa_metalsilver}),s.jsx("mesh",{name:"shape320_3",castShadow:!0,receiveShadow:!0,geometry:o.shape320_3.geometry,material:a.yaskawa_black}),s.jsx("mesh",{name:"shape320_4",castShadow:!0,receiveShadow:!0,geometry:o.shape320_4.geometry,material:a.yaskawa_white}),s.jsx("mesh",{name:"shape320_5",castShadow:!0,receiveShadow:!0,geometry:o.shape320_5.geometry,material:a.yaskawa_black})]}),s.jsxs(S.animated.group,{name:"YASKAWA_GP50_J01",position:[.145,.54,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs("group",{name:"link_2",position:[0,0,.145],rotation:[Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape440",castShadow:!0,receiveShadow:!0,geometry:o.shape440.geometry,material:a.yaskawa_blue}),s.jsx("mesh",{name:"shape440_1",castShadow:!0,receiveShadow:!0,geometry:o.shape440_1.geometry,material:a.yaskawa_white}),s.jsx("mesh",{name:"shape440_2",castShadow:!0,receiveShadow:!0,geometry:o.shape440_2.geometry,material:a.yaskawa_metalsilver}),s.jsx("mesh",{name:"shape440_3",castShadow:!0,receiveShadow:!0,geometry:o.shape440_3.geometry,material:a.yaskawa_black})]}),s.jsxs(S.animated.group,{name:"YASKAWA_GP50_J02",position:[.87,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs("group",{name:"link_3",position:[-.87,0,-.145],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape341",castShadow:!0,receiveShadow:!0,geometry:o.shape341.geometry,material:a.yaskawa_blue}),s.jsx("mesh",{name:"shape341_1",castShadow:!0,receiveShadow:!0,geometry:o.shape341_1.geometry,material:a.yaskawa_white}),s.jsx("mesh",{name:"shape341_2",castShadow:!0,receiveShadow:!0,geometry:o.shape341_2.geometry,material:a.yaskawa_black}),s.jsx("mesh",{name:"shape341_3",castShadow:!0,receiveShadow:!0,geometry:o.shape341_3.geometry,material:a.yaskawa_black}),s.jsx("mesh",{name:"shape341_4",castShadow:!0,receiveShadow:!0,geometry:o.shape341_4.geometry,material:a.yaskawa_metalsilver}),s.jsx("mesh",{name:"shape341_5",castShadow:!0,receiveShadow:!0,geometry:o.shape341_5.geometry,material:a.yaskawa_metalsilver})]}),s.jsxs(S.animated.group,{name:"YASKAWA_GP50_J03",position:[.21,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"link_4",castShadow:!0,receiveShadow:!0,geometry:o.link_4.geometry,material:a.yaskawa_blue,position:[-1.08,.145,0],rotation:[0,0,-Math.PI/2]}),s.jsxs(S.animated.group,{name:"YASKAWA_GP50_J04",position:[0,-1.025,0],rotation:[Math.PI/2,0,0],children:[s.jsx("mesh",{name:"link_5",castShadow:!0,receiveShadow:!0,geometry:o.link_5.geometry,material:a.yaskawa_blue,position:[-1.08,0,-1.17],rotation:[-Math.PI/2,0,-Math.PI/2]}),s.jsxs(S.animated.group,{name:"YASKAWA_GP50_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"link_6",castShadow:!0,receiveShadow:!0,geometry:o.link_6.geometry,material:a.yaskawa_metalsilver,position:[-1.08,1.17,0],rotation:[0,0,-Math.PI/2]}),s.jsx("group",{name:"YASKAWA_GP50_FLG",position:[0,-.175,0],rotation:[-Math.PI,0,0]})]})]})]})]})]})]})]})})]})}function Xd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(S.animated.group,{name:"CRX10iA_J00",children:[s.jsxs(S.animated.group,{name:"CRX10iA_J01",rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J02",position:[.54,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"CRX10iA_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"CRX10iA_L06",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L06.geometry,material:a.Fanuc_BlackMetal,position:[0,-.16,0],rotation:[0,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L05",position:[0,.15,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"J5CASING_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J5CASING_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001_1.geometry,material:a.Fanuc_Green})]})]}),s.jsxs("group",{name:"CRX10iA_L04",position:[0,-.54,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA.geometry,material:a.Fanuc_RedPlastic}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_1",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_1.geometry,material:a.Fanuc_BlackPlastic}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_2",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_2.geometry,material:a.Fanuc_WhitePlastic})]})]}),s.jsx("mesh",{name:"CRX10iA_L03",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L03.geometry,material:a.Fanuc_WhitePlastic,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsx("mesh",{name:"CRX10iA_L02",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L02.geometry,material:a.Fanuc_WhitePlastic,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L01",position:[0,-.117,0],children:[s.jsx("mesh",{name:"J2BASE_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001.geometry,material:a.Fanuc_Green}),s.jsx("mesh",{name:"J2BASE_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_1.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J2BASE_UNIT001_2",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_2.geometry,material:a.Fanuc_GreenLED})]})]}),s.jsx("mesh",{name:"CRX10iA_L00",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L00.geometry,material:a.Fanuc_BlackMetal,position:[0,-.245,0]})]})})]})}function qd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsx("mesh",{name:"link_0",castShadow:!0,receiveShadow:!0,geometry:o.link_0.geometry,material:a.fanuc_metal_black}),s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J00",position:[0,-.245,0],children:[s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J01",position:[0,.245,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J02",position:[.71,0,0],children:[s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[s.jsx(S.animated.group,{name:"FANUC_CRX20iAL_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"link_6",castShadow:!0,receiveShadow:!0,geometry:o.link_6.geometry,material:a.fanuc_metal_black,position:[-.71,.54,-.15],rotation:[0,0,-Math.PI/2]})]}),s.jsxs(S.animated.group,{name:"link_5",position:[-.71,0,-.54],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape053",castShadow:!0,receiveShadow:!0,geometry:o.shape053.geometry,material:a.fanuc_white}),s.jsx("mesh",{name:"shape053_1",castShadow:!0,receiveShadow:!0,geometry:o.shape053_1.geometry,material:a.fanuc_green})]})]}),s.jsxs(S.animated.group,{name:"link_4",position:[-.71,0,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape054",castShadow:!0,receiveShadow:!0,geometry:o.shape054.geometry,material:a.fanuc_white}),s.jsx("mesh",{name:"shape054_1",castShadow:!0,receiveShadow:!0,geometry:o.shape054_1.geometry,material:a.fanuc_red}),s.jsx("mesh",{name:"shape054_2",castShadow:!0,receiveShadow:!0,geometry:o.shape054_2.geometry,material:a.fanuc_metal_black})]})]}),s.jsxs(S.animated.group,{name:"link_3",position:[-.71,0,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape009",castShadow:!0,receiveShadow:!0,geometry:o.shape009.geometry,material:a.fanuc_green}),s.jsx("mesh",{name:"shape009_1",castShadow:!0,receiveShadow:!0,geometry:o.shape009_1.geometry,material:a.fanuc_white})]})]}),s.jsx("mesh",{name:"link_2",castShadow:!0,receiveShadow:!0,geometry:o.link_2.geometry,material:a.fanuc_white,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"link_1",position:[0,.245,0],children:[s.jsx("mesh",{name:"shape005",castShadow:!0,receiveShadow:!0,geometry:o.shape005.geometry,material:a.fanuc_white}),s.jsx("mesh",{name:"shape005_1",castShadow:!0,receiveShadow:!0,geometry:o.shape005_1.geometry,material:a.fanuc_green})]})]})]})})]})}function Yd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",position:[0,-.37,0],children:[s.jsxs("group",{name:"CRX25iA_L00",children:[s.jsx("mesh",{name:"J1BASE_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J1BASE_NetGen_Coarse.geometry,material:a.Fanuc_BlackMetal}),s.jsx("mesh",{name:"J1BASE_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J1BASE_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenPlastic})]}),s.jsxs(S.animated.group,{name:"CRX25iA_J00",children:[s.jsxs(S.animated.group,{name:"CRX25iA_J01",position:[0,.37,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"CRX25iA_J02",position:[.95,0,0],children:[s.jsxs(S.animated.group,{name:"CRX25iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX25iA_J04",position:[0,-.75,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX25iA_J05",position:[0,.185,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"CRX25iA_FLG",position:[0,-.18,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"CRX25iA_L06",castShadow:!0,receiveShadow:!0,geometry:o.CRX25iA_L06.geometry,material:a.Fanuc_BlackMetal,position:[0,-.18,0]})]}),s.jsxs("group",{name:"CRX25iA_L05",position:[0,.185,0],children:[s.jsx("mesh",{name:"J6CASING_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J6CASING_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J6CASING_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J6CASING_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenPlastic})]})]}),s.jsxs("group",{name:"CRX25iA_L04",position:[0,-.75,0],children:[s.jsx("mesh",{name:"J3ARM_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J3ARM_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J3ARM_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J3ARM_NetGen_Coarse_1.geometry,material:a.Fanuc_RedPlastic}),s.jsx("mesh",{name:"J3ARM_NetGen_Coarse_2",castShadow:!0,receiveShadow:!0,geometry:o.J3ARM_NetGen_Coarse_2.geometry,material:a.Fanuc_BlackPlastic})]})]}),s.jsxs("group",{name:"CRX25iA_L03",children:[s.jsx("mesh",{name:"J3CASING_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J3CASING_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenPlastic})]})]}),s.jsx("mesh",{name:"CRX25iA_L02",castShadow:!0,receiveShadow:!0,geometry:o.CRX25iA_L02.geometry,material:a.Fanuc_WhitePlastic})]}),s.jsxs("group",{name:"CRX25iA_L01",position:[0,.18,0],children:[s.jsx("mesh",{name:"J2BASE_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J2BASE_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenLED})]})]})]})})]})}function Zd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(S.animated.group,{name:"CRX10iA_J00",children:[s.jsxs(S.animated.group,{name:"CRX10iA_J01",position:[0,.245,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J02",position:[.71,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"CRX10iA_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"CRX10iA_L06",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L06.geometry,material:a["Fanuc_BlackMetal.001"],position:[0,-.16,0],rotation:[0,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L05",position:[0,.15,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"J5CASING_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"J5CASING_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001_1.geometry,material:a["Fanuc_Green.001"]})]})]}),s.jsxs("group",{name:"CRX10iA_L04",position:[0,-.54,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_L001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001_1",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_L001_1.geometry,material:a["Fanuc_RedPlastic.001"]}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001_2",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_L001_2.geometry,material:a["Fanuc_BlackPlastic.001"]})]})]}),s.jsxs("group",{name:"CRX10iA_L03",rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"J3CASING_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_UNIT001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"J3CASING_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_UNIT001_1.geometry,material:a["Fanuc_Green.001"]})]})]}),s.jsx("mesh",{name:"CRX10iA_L02",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L02.geometry,material:a["Fanuc_WhitePlastic.001"],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L01",position:[0,.128,0],children:[s.jsx("mesh",{name:"J2BASE_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"J2BASE_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_1.geometry,material:a["Fanuc_Green.001"]}),s.jsx("mesh",{name:"J2BASE_UNIT001_2",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_2.geometry,material:a["Fanuc_GreenLED.001"]})]})]}),s.jsx("mesh",{name:"CRX10iA_L00",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L00.geometry,material:a["Fanuc_BlackMetal.001"]})]})})]})}function Qd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,0,-Math.PI/2,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"kuka_kr210_2700",children:[s.jsxs(S.animated.group,{name:"joint_01",children:[s.jsxs(S.animated.group,{name:"joint_02",position:[.33,.645,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"joint_04",position:[.115,0,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_05",position:[0,-1.22,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_06",rotation:[Math.PI/2,0,0],children:[s.jsx("group",{name:"flange",position:[0,-.215,0],rotation:[-Math.PI,0,0]}),s.jsx("group",{name:"link_6",position:[0,-.17,0],rotation:[0,0,-Math.PI/2],children:s.jsx("mesh",{name:"visuals006",castShadow:!0,receiveShadow:!0,geometry:o.visuals006.geometry,material:a.material_Material_Metall_black})})]}),s.jsx("group",{name:"link_5",position:[0,.059,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals005",children:[s.jsx("mesh",{name:"visuals005_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals005_1.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals005_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals005_2.geometry,material:a.material_Material_kuka_orange})]})})]}),s.jsx("group",{name:"link_4",position:[0,-.869,0],rotation:[0,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals004",children:[s.jsx("mesh",{name:"visuals004_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals004_1.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals004_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals004_2.geometry,material:a.material_Material_kuka_orange})]})})]}),s.jsx("group",{name:"link_3",position:[0,-.105,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals003",children:[s.jsx("mesh",{name:"visuals003_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_1.geometry,material:a.material_Material_rubber}),s.jsx("mesh",{name:"visuals003_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_2.geometry,material:a.material_Material_aluminium}),s.jsx("mesh",{name:"visuals003_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_3.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals003_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_4.geometry,material:a.material_Material_kuka_black}),s.jsx("mesh",{name:"visuals003_5",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_5.geometry,material:a.material_Material_Rubber_black}),s.jsx("mesh",{name:"visuals003_6",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_6.geometry,material:a.material_Material_kuka_orange}),s.jsx("mesh",{name:"visuals003_7",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_7.geometry,material:a.material_Material_stainless_steel})]})})]}),s.jsx("group",{name:"link_2",position:[0,.009,0],rotation:[Math.PI/2,0,0],children:s.jsxs("group",{name:"visuals002",children:[s.jsx("mesh",{name:"visuals002_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_1.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals002_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_2.geometry,material:a.material_Material_Rubber_black}),s.jsx("mesh",{name:"visuals002_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_3.geometry,material:a.material_Material_kuka_orange})]})})]}),s.jsx("group",{name:"link_1",position:[0,.236,0],children:s.jsxs("group",{name:"visuals001",children:[s.jsx("mesh",{name:"visuals001_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_1.geometry,material:a.material_Material_kuka_black}),s.jsx("mesh",{name:"visuals001_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_2.geometry,material:a.material_Material_kuka_orange}),s.jsx("mesh",{name:"visuals001_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_3.geometry,material:a.material_Material_rubber}),s.jsx("mesh",{name:"visuals001_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_4.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals001_5",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_5.geometry,material:a.material_Material_aluminium}),s.jsx("mesh",{name:"visuals001_6",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_6.geometry,material:a.material_Material_rubber_black}),s.jsx("mesh",{name:"visuals001_7",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_7.geometry,material:a.material_Material_stainless_steel})]})})]}),s.jsx("group",{name:"link_0",children:s.jsxs("group",{name:"visuals",children:[s.jsx("mesh",{name:"visuals_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals_1.geometry,material:a.material_Material_kuka_black}),s.jsx("mesh",{name:"visuals_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals_2.geometry,material:a.material_Material_metal_black})]})})]})})})]})}function ef({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,0,-Math.PI/2,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"kuka_kr270_2700_ultra",children:[s.jsxs(S.animated.group,{name:"joint_01",children:[s.jsxs(S.animated.group,{name:"joint_02",position:[.35,.675,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"joint_04",position:[-.041,0,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_05",position:[0,-1.2,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_06",rotation:[Math.PI/2,0,0],children:[s.jsx("group",{name:"flange",position:[0,-.24,0],rotation:[-Math.PI,0,0]}),s.jsx("group",{name:"link_6",position:[0,-.213,0],rotation:[0,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals006",children:[s.jsx("mesh",{name:"visuals006_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals006_1.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals006_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals006_2.geometry,material:a.material_Material_Metall})]})})]}),s.jsx("group",{name:"link_5",position:[0,.044,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsx("mesh",{name:"visuals005",castShadow:!0,receiveShadow:!0,geometry:o.visuals005.geometry,material:a.material_Material_Farbe})})]}),s.jsx("group",{name:"link_4",position:[0,-.954,0],rotation:[0,0,-Math.PI/2],children:s.jsx("mesh",{name:"visuals004",castShadow:!0,receiveShadow:!0,geometry:o.visuals004.geometry,material:a.material_Material_Farbe})})]}),s.jsx("group",{name:"link_3",position:[0,-.178,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals003",children:[s.jsx("mesh",{name:"visuals003_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_1.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals003_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_2.geometry,material:a.material_Material_Farbe__2_}),s.jsx("mesh",{name:"visuals003_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_3.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals003_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_4.geometry,material:a.material_Material_Farbe})]})})]}),s.jsx("group",{name:"link_2",rotation:[Math.PI/2,0,0],children:s.jsxs("group",{name:"visuals002",children:[s.jsx("mesh",{name:"visuals002_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_1.geometry,material:a.material_Material_Farbe}),s.jsx("mesh",{name:"visuals002_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_2.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals002_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_3.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals002_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_4.geometry,material:a.material_Material_Farbe__2_})]})})]}),s.jsx("group",{name:"link_1",position:[0,.226,0],children:s.jsxs("group",{name:"visuals001",children:[s.jsx("mesh",{name:"visuals001_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_1.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals001_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_2.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals001_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_3.geometry,material:a.material_Material_Farbe__2_}),s.jsx("mesh",{name:"visuals001_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_4.geometry,material:a.material_Material_Farbe})]})})]}),s.jsxs("group",{name:"link_0-base",children:[s.jsx("group",{name:"joint_1"}),s.jsxs("group",{name:"visuals",children:[s.jsx("mesh",{name:"visuals_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals_1.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals_2.geometry,material:a.material_Material_Farbe__1_})]})]})]})})})]})}function tf({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"M10iD",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J02",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J03",position:[.64,0,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J04",position:[.195,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J05",position:[0,-.7,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"M10iD_FLG",position:[0,-.075,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"M10iD_L06",castShadow:!0,receiveShadow:!0,geometry:o.M10iD_L06.geometry,material:a.Fanuc_BlackMetal_AO,position:[-.835,.775,0],rotation:[0,0,-Math.PI/2]})]}),s.jsx("mesh",{name:"M10iD_L05",castShadow:!0,receiveShadow:!0,geometry:o.M10iD_L05.geometry,material:a.Fanuc_BlackMetal_AO,position:[-.835,0,-.775],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"M10iD_L04",position:[-.835,.075,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_654",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_654.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_654_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_654_1.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M10iD_L03",position:[-.64,0,-.075],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_378",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_378.geometry,material:a.Material_1_AO}),s.jsx("mesh",{name:"Mesh_378_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_378_1.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_378_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_378_2.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M10iD_L02",position:[0,0,-.075],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_358",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_358.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_358_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_358_1.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M10iD_L01",children:[s.jsx("mesh",{name:"Mesh_356",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_356.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_356_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_356_1.geometry,material:a.Material_1_AO}),s.jsx("mesh",{name:"Mesh_356_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_356_2.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsx("mesh",{name:"M10iD_L00",castShadow:!0,receiveShadow:!0,geometry:o.M10iD_L00.geometry,material:a.Fanuc_BlackMetal_AO,rotation:[-Math.PI/2,0,0]})]})})})]})}function _s({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"M10iD",rotation:[0,0,0],children:[s.jsxs(S.animated.group,{name:"M20iD25_J00",children:[s.jsxs(S.animated.group,{name:"M20iD25_J01",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"M20iD25_J02",position:[.84,0,0],children:[s.jsxs(S.animated.group,{name:"M20iD25_J03",position:[.215,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M20iD25_J04",position:[0,-.89,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M20iD25_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"M20iD25_FLG",position:[0,-.09,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"M20iD25_L06",castShadow:!0,receiveShadow:!0,geometry:o.M20iD25_L06.geometry,material:a.Fanuc_BlackMetal_AO,position:[0,-.09,0],rotation:[Math.PI/2,0,Math.PI]})]}),s.jsx("mesh",{name:"M20iD25_L05",castShadow:!0,receiveShadow:!0,geometry:o.M20iD25_L05.geometry,material:a.Fanuc_BlackMetal_AO,rotation:[Math.PI,Math.PI/2,0]})]}),s.jsxs("group",{name:"M20iD25_L04",position:[0,-.286,0],rotation:[-Math.PI/2,Math.PI/2,0],children:[s.jsx("mesh",{name:"Mesh_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_2.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_2_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_2_1.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M20iD25_L03",position:[0,.406,0],rotation:[Math.PI,Math.PI/2,0],children:[s.jsx("mesh",{name:"Mesh_15",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_15.geometry,material:a.Fanuc_BlackMetal_AO}),s.jsx("mesh",{name:"Mesh_15_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_15_1.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_15_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_15_2.geometry,material:a.Material_9_AO})]})]}),s.jsxs("group",{name:"M20iD25_L02",position:[0,.505,-.055],rotation:[-Math.PI,Math.PI/2,0],children:[s.jsx("mesh",{name:"Mesh_37",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_37.geometry,material:a.Fanuc_BlackMetal_AO}),s.jsx("mesh",{name:"Mesh_37_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_37_1.geometry,material:a.Fanuc_Yellow_Textured_AO})]})]}),s.jsxs("group",{name:"M20iD25_L01",rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"Mesh_45",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_45.geometry,material:a.Material_9_AO}),s.jsx("mesh",{name:"Mesh_45_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_45_1.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_45_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_45_2.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsx("mesh",{name:"M20iD25_L00",castShadow:!0,receiveShadow:!0,geometry:o.M20iD25_L00.geometry,material:a.Fanuc_BlackMetal_AO,position:[0,-.425,0],rotation:[-Math.PI/2,0,0]})]})})})]})}function rf({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"IRB1200_7_70_IRC5",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J02",position:[0,.399,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J03",position:[.35,0,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J04",position:[.042,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J05",position:[0,.351,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J06",rotation:[Math.PI/2,0,-Math.PI],children:[s.jsx("group",{name:"IRB1200_7_70_IRC5_FLG",position:[0,.082,0]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L06",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L06.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L05",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L05.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L04",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L04.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L03",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L03.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L02",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L02.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L01",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L01.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"],rotation:[Math.PI/2,0,0]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L00",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L00.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"],rotation:[-Math.PI/2,0,0]})]})})})]})}const bs="line",Ss="mesh";function Eo({rapidlyChangingMotionState:e,dhParameters:t,...r}){const n=new vt.Matrix4;function o(c,u){const d=new vt.Vector3,h=new vt.Quaternion,f=new vt.Vector3;n.decompose(d,h,f);const b=d.clone(),y=new vt.Matrix4().makeRotationY(c.theta+u*(c.reverse_rotation_direction?-1:1)).multiply(new vt.Matrix4().makeTranslation(0,c.d/1e3,0)).multiply(new vt.Matrix4().makeTranslation(c.a/1e3,0,0)).multiply(new vt.Matrix4().makeRotationX(c.alpha));return n.multiply(y),n.decompose(d,h,f),{a:b,b:d}}function a(c,u,d,h){if(!t)return;const f=t[c];if(!f)return;const{a:b,b:y}=o(f,h);u.geometry.setPositions([b.toArray(),y.toArray()].flat()),d.position.set(y.x,y.y,y.z)}function i(c,u){n.identity(),c.forEach((d,h)=>{a(h,d.getObjectByName(bs),d.getObjectByName(Ss),u[h])})}function l(c){return tl(c,"^group_[0-9]+$")}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:e,robotRootObjectName:"Scene",onRotationChanged:i,jointCollector:l}),s.jsxs("group",{...r,name:"Scene",children:[s.jsxs("mesh",{children:[s.jsx("sphereGeometry",{args:[.01,32,32]}),s.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]}),t.map((c,u)=>{const{a:d,b:h}=o(c,e.state.joint_position.joints[u]??0);return s.jsxs("group",{name:`group_${u}`,children:[s.jsx(ie.Line,{name:bs,points:[d,h],color:"white",lineWidth:5}),s.jsxs("mesh",{name:Ss,position:h,children:[s.jsx("sphereGeometry",{args:[.01,32,32]}),s.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+u)]},"group_"+u)})]})]})}const nf=console.warn;function of(){return q.useEffect(()=>{console.warn=e=>{e!=="Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"&&nf(e)}},[]),s.jsx(s.Fragment,{})}function Sa(e){return`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components/public/models/${e}.glb`}const ol=en(({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:r,getModel:n=Sa,isGhost:o=!1,...a})=>{let i;const l=q.useRef(new Ce.Group),c=q.useCallback(h=>{h!==null&&(l.current=h,console.log("robotRef.current",l.current),o&&l.current&&l.current.children.length>0&&u())},[o]),u=()=>{l.current&&!l.current.userData.ghostsCreated&&(l.current.traverse(h=>{if(h instanceof Ce.Mesh&&!h.userData.isGhost){h.material instanceof Ce.Material&&(h.material.colorWrite=!1);const f=h.clone(),b=h.clone();f.material=new Ce.MeshStandardMaterial({depthTest:!0,depthWrite:!0,colorWrite:!1,polygonOffset:!0,polygonOffsetFactor:1}),f.userData.isGhost=!0,b.material=new Ce.MeshStandardMaterial({color:"#D91433",opacity:.3,depthTest:!0,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-1}),b.userData.isGhost=!0,h.parent&&(h.parent.add(f),h.parent.add(b))}}),l.current.userData.ghostsCreated=!0)},d=()=>{if(l.current){const h=[];l.current.traverse(f=>{f instanceof Ce.Mesh&&f.material instanceof Ce.Material&&(f.material.colorWrite=!0),f instanceof Ce.Mesh&&f.userData!==void 0&&f.userData&&f.userData.isGhost!==void 0&&f.userData.isGhost&&h.push(f)}),h.forEach(f=>{f.parent&&f.parent.remove(f)}),l.current.userData.ghostsCreated=!1}};switch(q.useEffect(()=>{o?u():d()},[o]),t){case"UniversalRobots_UR3":i=Fd;break;case"UniversalRobots_UR3e":i=Dd;break;case"UniversalRobots_UR5":i=Ud;break;case"UniversalRobots_UR5e":i=Bd;break;case"UniversalRobots_UR10":i=Jd;break;case"UniversalRobots_UR10e":i=Vd;break;case"Yaskawa_AR900":i=ys;break;case"Yaskawa_GP7":i=ys;break;case"Yaskawa_AR1440":i=Gd;break;case"Yaskawa_AR1730":i=zd;break;case"Yaskawa_AR2010":i=Wd;break;case"Yaskawa_AR3120":i=Hd;break;case"Yaskawa_GP50":i=Kd;break;case"FANUC_CRX10iA":i=Xd;break;case"FANUC_CRX20iAL":i=qd;break;case"FANUC_CRX25iA":i=Yd;break;case"FANUC_CRX25iAL":i=Zd;break;case"FANUC_ARC_Mate_120iD":i=_s;break;case"FANUC_ARC_Mate_120iD35":i=_s;break;case"FANUC_ARC_Mate_100iD":i=tf;break;case"KUKA_KR210_R2700":i=Qd;break;case"KUKA_KR270_R2700":i=ef;break;case"ABB_1200_07_7":i=rf;break;default:console.warn(`Unknown robot type: ${t}`),i=Eo}return s.jsxs(jc.ErrorBoundary,{fallback:s.jsx(Eo,{rapidlyChangingMotionState:e,dhParameters:r,...a}),children:[s.jsx(q.Suspense,{fallback:s.jsx(Eo,{rapidlyChangingMotionState:e,dhParameters:r,...a}),children:s.jsx("group",{ref:c,children:s.jsx(i,{rapidlyChangingMotionState:e,modelURL:n(t),dhParameters:r,...a})})}),s.jsx(of,{})]})});function af({connectedMotionGroup:e,getModel:t=Sa,isGhost:r=!1,...n}){return e.dhParameters?s.jsx(ol,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,isGhost:r,...n}):null}function sf(){return s.jsx(ie.Environment,{children:s.jsx(lf,{})})}function lf({positions:e=[2,0,2,0,2,0,2,0]}){return s.jsxs(s.Fragment,{children:[s.jsx(ie.Lightformer,{intensity:5,"rotation-x":Math.PI/2,position:[0,5,-9],scale:[10,10,1]}),s.jsx("group",{rotation:[0,.5,0],children:s.jsx("group",{children:e.map((t,r)=>s.jsx(ie.Lightformer,{form:"circle",intensity:5,rotation:[Math.PI/2,0,0],position:[t,4,r*4],scale:[3,1,1]},r))})}),s.jsx(ie.Lightformer,{intensity:40,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[20,.1,1]}),s.jsx(ie.Lightformer,{intensity:20,"rotation-y":-Math.PI,position:[-5,-2,-1],scale:[20,.1,1]}),s.jsx(ie.Lightformer,{"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[20,.5,1],intensity:5}),s.jsx(ie.Lightformer,{"rotation-y":-Math.PI/2,position:[10,1,0],scale:[20,1,1],intensity:10}),s.jsx(ie.Lightformer,{form:"ring",color:"white",intensity:5,scale:10,position:[-15,4,-18],target:[0,0,0]})]})}function cf(e){if(e.length<3)return console.log("Not enough vertices to define a plane"),{isCoplanar:!1};const t=new Ce.Vector3(e[0].x,e[0].y,e[0].z),r=new Ce.Vector3(e[1].x,e[1].y,e[1].z),n=new Ce.Vector3(e[2].x,e[2].y,e[2].z),o=new Ce.Vector3().subVectors(r,t),a=new Ce.Vector3().subVectors(n,t),i=new Ce.Vector3().crossVectors(o,a).normalize();for(let l=3;l<e.length;l++){const c=new Ce.Vector3(e[l].x,e[l].y,e[l].z),u=new Ce.Vector3().subVectors(c,t),d=i.dot(u);if(Math.abs(d)>1e-6)return console.log("Vertices are not on the same plane"),{isCoplanar:!1}}return{isCoplanar:!0,normal:i}}function uf({safetyZones:e,...t}){return s.jsx("group",{...t,children:e.map((r,n)=>{let o=[];return r.geometry&&(r.geometry.compound?o=r.geometry.compound.child_geometries:r.geometry.convex_hull&&(o=[r.geometry])),o.map((a,i)=>{if(!a.convex_hull)return null;const l=a.convex_hull.vertices.map(d=>new Ce.Vector3(d.x/1e3,d.y/1e3,d.z/1e3)),c=cf(l);if(c.isCoplanar&&c.normal){const h=new Ce.Vector3().addVectors(l[0],c.normal.multiplyScalar(1e-4));l.push(h)}let u;try{u=new Cc.ConvexGeometry(l)}catch(d){return console.log("Error creating ConvexGeometry:",d),null}return s.jsx(s.Fragment,{children:s.jsx("mesh",{geometry:u,children:s.jsx("meshStandardMaterial",{attach:"material",color:"#009f4d",opacity:.2,depthTest:!1,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-i},n)},`${n}-${i}`)})})})})}function Kr(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 df=Object.freeze(Object.defineProperty({__proto__:null,default:Kr},Symbol.toStringTag,{value:"Module"}));var ff=!1;function hf(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 mf(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 pf=function(){function e(r){var n=this;this._insertTag=function(o){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,a),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!ff: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(mf(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=hf(o);try{a.insertRule(n,a.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Te="-ms-",Un="-moz-",ne="-webkit-",al="comm",xa="rule",va="decl",gf="@import",sl="@keyframes",yf="@layer",_f=Math.abs,to=String.fromCharCode,bf=Object.assign;function Sf(e,t){return Pe(e,0)^45?(((t<<2^Pe(e,0))<<2^Pe(e,1))<<2^Pe(e,2))<<2^Pe(e,3):0}function il(e){return e.trim()}function xf(e,t){return(e=t.exec(e))?e[0]:e}function oe(e,t,r){return e.replace(t,r)}function ea(e,t){return e.indexOf(t)}function Pe(e,t){return e.charCodeAt(t)|0}function Xr(e,t,r){return e.slice(t,r)}function ft(e){return e.length}function wa(e){return e.length}function pn(e,t){return t.push(e),e}function vf(e,t){return e.map(t).join("")}var ro=1,Sr=1,ll=0,De=0,xe=0,Rr="";function no(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:ro,column:Sr,length:i,return:""}}function Dr(e,t){return bf(no("",null,null,"",null,null,0),e,{length:-e.length},t)}function wf(){return xe}function Rf(){return xe=De>0?Pe(Rr,--De):0,Sr--,xe===10&&(Sr=1,ro--),xe}function We(){return xe=De<ll?Pe(Rr,De++):0,Sr++,xe===10&&(Sr=1,ro++),xe}function pt(){return Pe(Rr,De)}function Cn(){return De}function nn(e,t){return Xr(Rr,e,t)}function qr(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 cl(e){return ro=Sr=1,ll=ft(Rr=e),De=0,[]}function ul(e){return Rr="",e}function An(e){return il(nn(De-1,ta(e===91?e+2:e===40?e+1:e)))}function jf(e){for(;(xe=pt())&&xe<33;)We();return qr(e)>2||qr(xe)>3?"":" "}function Cf(e,t){for(;--t&&We()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return nn(e,Cn()+(t<6&&pt()==32&&We()==32))}function ta(e){for(;We();)switch(xe){case e:return De;case 34:case 39:e!==34&&e!==39&&ta(xe);break;case 40:e===41&&ta(e);break;case 92:We();break}return De}function Af(e,t){for(;We()&&e+xe!==57;)if(e+xe===84&&pt()===47)break;return"/*"+nn(t,De-1)+"*"+to(e===47?e:We())}function Pf(e){for(;!qr(pt());)We();return nn(e,De)}function Of(e){return ul(Pn("",null,null,null,[""],e=cl(e),0,[0],e))}function Pn(e,t,r,n,o,a,i,l,c){for(var u=0,d=0,h=i,f=0,b=0,y=0,_=1,g=1,v=1,R=0,C="",k=o,j=a,P=n,O=C;g;)switch(y=R,R=We()){case 40:if(y!=108&&Pe(O,h-1)==58){ea(O+=oe(An(R),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:O+=An(R);break;case 9:case 10:case 13:case 32:O+=jf(y);break;case 92:O+=Cf(Cn()-1,7);continue;case 47:switch(pt()){case 42:case 47:pn(Tf(Af(We(),Cn()),t,r),c);break;default:O+="/"}break;case 123*_:l[u++]=ft(O)*v;case 125*_:case 59:case 0:switch(R){case 0:case 125:g=0;case 59+d:v==-1&&(O=oe(O,/\f/g,"")),b>0&&ft(O)-h&&pn(b>32?vs(O+";",n,r,h-1):vs(oe(O," ","")+";",n,r,h-2),c);break;case 59:O+=";";default:if(pn(P=xs(O,t,r,u,d,o,l,C,k=[],j=[],h),a),R===123)if(d===0)Pn(O,t,P,P,k,a,h,l,j);else switch(f===99&&Pe(O,3)===110?100:f){case 100:case 108:case 109:case 115:Pn(e,P,P,n&&pn(xs(e,P,P,0,0,o,l,C,o,k=[],h),j),o,j,h,l,n?k:j);break;default:Pn(O,P,P,P,[""],j,0,l,j)}}u=d=b=0,_=v=1,C=O="",h=i;break;case 58:h=1+ft(O),b=y;default:if(_<1){if(R==123)--_;else if(R==125&&_++==0&&Rf()==125)continue}switch(O+=to(R),R*_){case 38:v=d>0?1:(O+="\f",-1);break;case 44:l[u++]=(ft(O)-1)*v,v=1;break;case 64:pt()===45&&(O+=An(We())),f=pt(),d=h=ft(C=O+=Pf(Cn())),R++;break;case 45:y===45&&ft(O)==2&&(_=0)}}return a}function xs(e,t,r,n,o,a,i,l,c,u,d){for(var h=o-1,f=o===0?a:[""],b=wa(f),y=0,_=0,g=0;y<n;++y)for(var v=0,R=Xr(e,h+1,h=_f(_=i[y])),C=e;v<b;++v)(C=il(_>0?f[v]+" "+R:oe(R,/&\f/g,f[v])))&&(c[g++]=C);return no(e,t,r,o===0?xa:l,c,u,d)}function Tf(e,t,r){return no(e,t,r,al,to(wf()),Xr(e,2,-2),0)}function vs(e,t,r,n){return no(e,t,r,va,Xr(e,0,n),Xr(e,n+1,-1),n)}function pr(e,t){for(var r="",n=wa(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Mf(e,t,r,n){switch(e.type){case yf:if(e.children.length)break;case gf:case va:return e.return=e.return||e.value;case al:return"";case sl:return e.return=e.value+"{"+pr(e.children,n)+"}";case xa:e.value=e.props.join(",")}return ft(r=pr(e.children,n))?e.return=e.value+"{"+r+"}":""}function If(e){var t=wa(e);return function(r,n,o,a){for(var i="",l=0;l<t;l++)i+=e[l](r,n,o,a)||"";return i}}function Ef(e){return function(t){t.root||(t=t.return)&&e(t)}}var Lf=function(t,r,n){for(var o=0,a=0;o=a,a=pt(),o===38&&a===12&&(r[n]=1),!qr(a);)We();return nn(t,De)},kf=function(t,r){var n=-1,o=44;do switch(qr(o)){case 0:o===38&&pt()===12&&(r[n]=1),t[n]+=Lf(De-1,r,n);break;case 2:t[n]+=An(o);break;case 4:if(o===44){t[++n]=pt()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=to(o)}while(o=We());return t},$f=function(t,r){return ul(kf(cl(t),r))},ws=new WeakMap,Nf=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&&!ws.get(n))&&!o){ws.set(t,!0);for(var a=[],i=$f(r,a),l=n.props,c=0,u=0;c<i.length;c++)for(var d=0;d<l.length;d++,u++)t.props[u]=a[c]?i[c].replace(/&\f/g,l[d]):l[d]+" "+i[c]}}},Ff=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function dl(e,t){switch(Sf(e,t)){case 5103:return ne+"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 ne+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ne+e+Un+e+Te+e+e;case 6828:case 4268:return ne+e+Te+e+e;case 6165:return ne+e+Te+"flex-"+e+e;case 5187:return ne+e+oe(e,/(\w+).+(:[^]+)/,ne+"box-$1$2"+Te+"flex-$1$2")+e;case 5443:return ne+e+Te+"flex-item-"+oe(e,/flex-|-self/,"")+e;case 4675:return ne+e+Te+"flex-line-pack"+oe(e,/align-content|flex-|-self/,"")+e;case 5548:return ne+e+Te+oe(e,"shrink","negative")+e;case 5292:return ne+e+Te+oe(e,"basis","preferred-size")+e;case 6060:return ne+"box-"+oe(e,"-grow","")+ne+e+Te+oe(e,"grow","positive")+e;case 4554:return ne+oe(e,/([^-])(transform)/g,"$1"+ne+"$2")+e;case 6187:return oe(oe(oe(e,/(zoom-|grab)/,ne+"$1"),/(image-set)/,ne+"$1"),e,"")+e;case 5495:case 3959:return oe(e,/(image-set\([^]*)/,ne+"$1$`$1");case 4968:return oe(oe(e,/(.+:)(flex-)?(.*)/,ne+"box-pack:$3"+Te+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ne+e+e;case 4095:case 3583:case 4068:case 2532:return oe(e,/(.+)-inline(.+)/,ne+"$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(Pe(e,t+1)){case 109:if(Pe(e,t+4)!==45)break;case 102:return oe(e,/(.+:)(.+)-([^]+)/,"$1"+ne+"$2-$3$1"+Un+(Pe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ea(e,"stretch")?dl(oe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Pe(e,t+1)!==115)break;case 6444:switch(Pe(e,ft(e)-3-(~ea(e,"!important")&&10))){case 107:return oe(e,":",":"+ne)+e;case 101:return oe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ne+(Pe(e,14)===45?"inline-":"")+"box$3$1"+ne+"$2$3$1"+Te+"$2box$3")+e}break;case 5936:switch(Pe(e,t+11)){case 114:return ne+e+Te+oe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ne+e+Te+oe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ne+e+Te+oe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ne+e+Te+e+e}return e}var Df=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case va:t.return=dl(t.value,t.length);break;case sl:return pr([Dr(t,{value:oe(t.value,"@","@"+ne)})],o);case xa:if(t.length)return vf(t.props,function(a){switch(xf(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pr([Dr(t,{props:[oe(a,/:(read-\w+)/,":"+Un+"$1")]})],o);case"::placeholder":return pr([Dr(t,{props:[oe(a,/:(plac\w+)/,":"+ne+"input-$1")]}),Dr(t,{props:[oe(a,/:(plac\w+)/,":"+Un+"$1")]}),Dr(t,{props:[oe(a,/:(plac\w+)/,Te+"input-$1")]})],o)}return""})}},Uf=[Df],Bf=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(_){var g=_.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var o=t.stylisPlugins||Uf,a={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(_){for(var g=_.getAttribute("data-emotion").split(" "),v=1;v<g.length;v++)a[g[v]]=!0;l.push(_)});var c,u=[Nf,Ff];{var d,h=[Mf,Ef(function(_){d.insert(_)})],f=If(u.concat(o,h)),b=function(g){return pr(Of(g),f)};c=function(g,v,R,C){d=R,b(g?g+"{"+v.styles+"}":v.styles),C&&(y.inserted[v.name]=!0)}}var y={key:r,sheet:new pf({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:c};return y.sheet.hydrate(l),y};let ra;typeof document=="object"&&(ra=Bf({key:"css",prepend:!0}));function fl(e){const{injectFirst:t,children:r}=e;return t&&ra?s.jsx(mr.CacheProvider,{value:ra,children:r}):r}process.env.NODE_ENV!=="production"&&(fl.propTypes={children:m.node,injectFirst:m.bool});function Jf(e){return e==null||Object.keys(e).length===0}function hl(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(Jf(o)?r:o):t;return s.jsx(mr.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(hl.propTypes={defaultTheme:m.object,styles:m.oneOfType([m.array,m.string,m.object,m.func])});/**
|
|
35
|
+
`+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ht(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&Zo.assertOptions(n,{silentJSONParsing:Et.transitional(Et.boolean),forcedJSONParsing:Et.transitional(Et.boolean),clarifyTimeoutError:Et.transitional(Et.boolean)},!1),o!=null&&(x.isFunction(o)?r.paramsSerializer={serialize:o}:Zo.assertOptions(o,{encode:Et.function,serialize:Et.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=a&&x.merge(a.common,a[r.method]);a&&x.forEach(["delete","get","head","post","put","patch","common"],y=>{delete a[y]}),r.headers=Fe.concat(i,a);const l=[];let c=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(r)===!1||(c=c&&_.synchronous,l.unshift(_.fulfilled,_.rejected))});const u=[];this.interceptors.response.forEach(function(_){u.push(_.fulfilled,_.rejected)});let d,h=0,f;if(!c){const y=[ms.bind(this),void 0];for(y.unshift.apply(y,l),y.push.apply(y,u),f=y.length,d=Promise.resolve(r);h<f;)d=d.then(y[h++],y[h++]);return d}f=l.length;let b=r;for(h=0;h<f;){const y=l[h++],_=l[h++];try{b=y(b)}catch(g){_.call(this,g);break}}try{d=ms.call(this,b)}catch(y){return Promise.reject(y)}for(h=0,f=u.length;h<f;)d=d.then(u[h++],u[h++]);return d}getUri(t){t=Ht(this.defaults,t);const r=zi(t.baseURL,t.url);return Ui(r,t.params,t.paramsSerializer)}};x.forEach(["delete","get","head","options"],function(t){Wt.prototype[t]=function(r,n){return this.request(Ht(n||{},{method:t,url:r,data:(n||{}).data}))}});x.forEach(["post","put","patch"],function(t){function r(n){return function(a,i,l){return this.request(Ht(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Wt.prototype[t]=r(),Wt.prototype[t+"Form"]=r(!0)});let Od=class Yi{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(o=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](o);n._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(l=>{n.subscribe(l),a=l}).then(o);return i.cancel=function(){n.unsubscribe(a)},i},t(function(a,i,l){n.reason||(n.reason=new vr(a,i,l),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new Yi(function(o){t=o}),cancel:t}}};function Td(e){return function(r){return e.apply(null,r)}}function Md(e){return x.isObject(e)&&e.isAxiosError===!0}const Qo={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(Qo).forEach(([e,t])=>{Qo[t]=e});function Zi(e){const t=new Wt(e),r=Pi(Wt.prototype.request,t);return x.extend(r,Wt.prototype,t,{allOwnKeys:!0}),x.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Zi(Ht(e,o))},r}const ve=Zi(rn);ve.Axios=Wt;ve.CanceledError=vr;ve.CancelToken=Od;ve.isCancel=Vi;ve.VERSION=qi;ve.toFormData=Zn;ve.AxiosError=J;ve.Cancel=ve.CanceledError;ve.all=function(t){return Promise.all(t)};ve.spread=Td;ve.isAxiosError=Md;ve.mergeConfig=Ht;ve.AxiosHeaders=Fe;ve.formToJSON=e=>Ji(x.isHTMLForm(e)?new FormData(e):e);ve.getAdapter=Xi.getAdapter;ve.HttpStatusCode=Qo;ve.default=ve;const{Axios:X_,AxiosError:gs,CanceledError:q_,isCancel:Y_,CancelToken:Z_,VERSION:Q_,all:eb,Cancel:tb,isAxiosError:rb,spread:nb,toFormData:ob,AxiosHeaders:ab,HttpStatusCode:sb,formToJSON:ib,getAdapter:lb,mergeConfig:cb}=ve;function Id(e){try{return JSON.stringify(e)}catch{return}}function Ed(e){var t,r,n,o;return e instanceof gs&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof gs&&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: ${Id(e)||e}`}const Qi=e=>{const t=e.softTimeout||3e3,[r,n]=q.useState(!1);return q.useEffect(()=>{const o=setTimeout(()=>{n(!0)},t);return()=>clearTimeout(o)}),s.jsx(L.Stack,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",children:e.error?s.jsx(Ld,{message:e.message,error:e.error}):s.jsxs(s.Fragment,{children:[s.jsx(L.CircularProgress,{sx:{marginBottom:"24px"}}),!!e.message&&s.jsx("div",{children:e.message}),s.jsx(L.Stack,{sx:{visibility:r?"visible":"hidden",marginTop:"1rem",color:"gray"},children:"This is taking longer than expected..."})]})})},Ld=e=>{const t=Ed(e.error),r=e.error instanceof Error?e.error.stack:null,n=L.useTheme();return s.jsxs(L.Stack,{sx:{maxHeight:"100%",maxWidth:"min(100%, 800px)",padding:2,overflow:"auto",color:n.palette.error.main,"& pre":{whiteSpace:"pre-wrap",wordBreak:"break-word",paddingBottom:"3rem"}},children:[`Error while: ${e.message} - ${t}`,s.jsx("br",{}),r&&s.jsx("pre",{children:r})]})},kd=q.lazy(()=>import("@monaco-editor/react")),$d=en(e=>{const t=L.useTheme(),r=q.useRef(null),[n,o]=q.useState("dark-plus"),a=t.palette.mode==="dark"?"dark-plus":"light-plus";async function i(l){const[{createHighlighter:c},{shikiToMonaco:u}]=await Promise.all([import("shiki"),import("@shikijs/monaco")]);l.languages.register({id:"wandelscript"}),l.languages.setLanguageConfiguration("wandelscript",{comments:{lineComment:"#"},brackets:[["(",")"],["[","]"]],autoClosingPairs:[{open:"[",close:"]"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"}]}),r.current||(r.current=await c({langs:[Mc],themes:["dark-plus","light-plus"]})),u(r.current,l),l.editor.defineTheme(a,{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(l),o(a)}return s.jsx(q.Suspense,{fallback:s.jsx(Qi,{}),children:s.jsx(kd,{value:e.code,onMount:(l,c)=>{i(c)},onChange:e.onChange,defaultLanguage:"wandelscript",theme:n,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}})})}),Nd="(^joint_[0-9]+$)|(_J[0-9]+$)";function el(e){return e.children.length===0?[e]:[e,...e.children.flatMap(t=>el(t))]}function Fd(e,t){return new RegExp(t??Nd).test(e)}function tl(e,t){return el(e).filter(r=>Fd(r.name,t))}function eo(e){q.useEffect(e,[])}function rl(e){eo(()=>br.autorun(e))}function nl(e,t,r){eo(()=>br.reaction(e,t,r))}function wr(e){return eo(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}function ge({rapidlyChangingMotionState:e,robotRootObjectName:t,onRotationChanged:r,jointCollector:n}){S.Globals.assign({frameLoop:"always"});const o=q.useRef([]),a=q.useRef([]),{scene:i,invalidate:l}=Rc.useThree();q.useEffect(()=>{const f=i.getObjectByName(t);f&&(a.current=n?n(f):tl(f),u(),l())},[]);function c(f){o.current=f,h.start(Object.assign({},o.current))}function u(){const f=a.current.map((b,y)=>d[y].get());r(a.current,f)}rl(()=>{const f=e.state.joint_position.joints.filter(b=>b!==void 0);requestAnimationFrame(()=>c(f))});const[d,h]=S.useSpring(()=>({...Object.assign({},e.state.joint_position.joints),onChange:()=>{u(),l()},onResolve:()=>{u()}}));return null}function Dd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR3",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3_J02",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3_J03",position:[-.244,0,0],children:[s.jsxs(S.animated.group,{name:"UR3_J04",position:[-.213,0,0],children:[s.jsxs(S.animated.group,{name:"UR3_J05",position:[0,.112,0],rotation:[Math.PI/2,0,0],children:[s.jsx("mesh",{name:"UR3_05",castShadow:!0,receiveShadow:!0,geometry:o.UR3_05.geometry,material:a.Standard}),s.jsxs(S.animated.group,{name:"UR3_J06",position:[0,.085,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR3_FLG",position:[0,.082,0]}),s.jsx("mesh",{name:"UR3_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L06.geometry,material:a.Standard})]})]}),s.jsx("mesh",{name:"UR3_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L04.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L03.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L02.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L01.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L00.geometry,material:a.Standard,rotation:[-Math.PI/2,0,0]})]})})})]})}function Ud({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs(S.animated.group,{name:"UR3e",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J02",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J03",position:[-.244,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J04",position:[-.213,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J05",position:[0,.131,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J06",position:[0,.085,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR3e_FLG",position:[0,.092,0]}),s.jsx("mesh",{name:"UR3e_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L06.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L05",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L05.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L04.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L03.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L02.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L01.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L00.geometry,material:a.Standard,rotation:[-Math.PI/2,0,0]})]})})})]})}function Bd({modelURL:e,rapidlyChangingMotionState:t,...r}){const o=ie.useGLTF(e).nodes;function a(i,l){i.forEach((c,u)=>c.rotation.y=l[u])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:a}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR5",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J02",position:[0,.089,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J03",position:[-.425,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J04",position:[-.392,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J05",position:[0,.109,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J06",position:[0,.095,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR5_FLG",position:[0,.082,0]}),s.jsx("mesh",{name:"UR5_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L06.geometry,material:o.UR5_L06.material})]}),s.jsx("mesh",{name:"UR5_L05",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L05.geometry,material:o.UR5_L05.material})]}),s.jsx("mesh",{name:"UR5_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L04.geometry,material:o.UR5_L04.material})]}),s.jsx("mesh",{name:"UR5_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L03.geometry,material:o.UR5_L03.material})]}),s.jsx("mesh",{name:"UR5_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L02.geometry,material:o.UR5_L02.material})]}),s.jsx("mesh",{name:"UR5_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L01.geometry,material:o.UR5_L01.material})]}),s.jsx("mesh",{name:"UR5_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L00.geometry,material:o.UR5_L00.material,rotation:[-Math.PI/2,0,0]})]})})})]})}function Jd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR5e",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J02",position:[0,.162,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J03",position:[-.425,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J04",position:[-.392,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J05",position:[0,.133,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J06",position:[0,.1,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR5e_FLG",position:[0,.1,0]}),s.jsx("group",{name:"UR5e_L06",position:[0,.1,0],rotation:[0,0,-Math.PI],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000255",castShadow:!0,receiveShadow:!0,geometry:o["C-1000255"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000255_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000255_1"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L05",rotation:[-Math.PI/2,-Math.PI/3,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000253",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000253_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000253_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253_2"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000253_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253_3"].geometry,material:a.DarkGray})]})})]}),s.jsx("group",{name:"UR5e_L04",rotation:[0,-Math.PI/3,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000251",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000251_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000251_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251_2"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000251_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251_3"].geometry,material:a.DarkGray})]})})]}),s.jsx("group",{name:"UR5e_L03",children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000250",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000250_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_1"].geometry,material:a.DarkGray}),s.jsx("mesh",{name:"C-1000250_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_2"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000250_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_3"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000250_4",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_4"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L02",rotation:[0,-Math.PI/2,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000249",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000249_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000249_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_2"].geometry,material:a.DarkGray}),s.jsx("mesh",{name:"C-1000249_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_3"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000249_4",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_4"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L01",rotation:[Math.PI/2,0,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000248",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248"].geometry,material:a.DarkGray}),s.jsx("mesh",{name:"C-1000248_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000248_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248_2"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000248_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248_3"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L00",children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000257",castShadow:!0,receiveShadow:!0,geometry:o["C-1000257"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000257_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000257_1"].geometry,material:a.Metal})]})})]})})})]})}function Vd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR10",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J02",position:[0,.126,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J03",position:[-.612,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J04",position:[-.572,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J05",position:[0,.164,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J06",position:[0,.116,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR10_FLG",position:[0,.092,0]}),s.jsx("mesh",{name:"UR10_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L06.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L05",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L05.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L04.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L03.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L02.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L01.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L00.geometry,material:a.Standard,rotation:[-Math.PI/2,0,0]})]})})})]})}function Gd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR10e",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J02",position:[0,.181,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J03",position:[-.613,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J04",position:[-.572,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J05",position:[0,.174,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J06",position:[0,.12,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_FLG",position:[1.184,-.174,.061],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000493",geometry:o["C-1000493"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000493_1",geometry:o["C-1000493_1"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0})]}),s.jsx("group",{name:"UR10e_L07",position:[0,.117,0]})]}),s.jsxs("group",{name:"UR10e_L06",position:[1.184,.181,.174],rotation:[Math.PI,0,0],children:[s.jsx("mesh",{name:"C-1000492",geometry:o["C-1000492"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000492_1",geometry:o["C-1000492_1"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000492_2",geometry:o["C-1000492_2"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000492_3",geometry:o["C-1000492_3"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L05",position:[1.184,0,.181],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000491",geometry:o["C-1000491"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000491_1",geometry:o["C-1000491_1"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000491_2",geometry:o["C-1000491_2"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000491_3",geometry:o["C-1000491_3"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L04",position:[.613,0,.181],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000490",geometry:o["C-1000490"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000490_1",geometry:o["C-1000490_1"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000490_2",geometry:o["C-1000490_2"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000490_3",geometry:o["C-1000490_3"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs(S.animated.group,{name:"UR10e_L03",position:[0,0,.181],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000489",geometry:o["C-1000489"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_1",geometry:o["C-1000489_1"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_2",geometry:o["C-1000489_2"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_3",geometry:o["C-1000489_3"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_4",geometry:o["C-1000489_4"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L02",children:[s.jsx("mesh",{name:"C-1000488",geometry:o["C-1000488"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000488_1",geometry:o["C-1000488_1"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000488_2",geometry:o["C-1000488_2"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000488_3",geometry:o["C-1000488_3"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L01",rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000487",geometry:o["C-1000487"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000487_1",geometry:o["C-1000487_1"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0})]})]})})})]})}function ys({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"AR900",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR900_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR900_J02",position:[.04,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"AR900_J03",position:[.445,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(S.animated.group,{name:"AR900_J04",position:[.04,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR900_J05",position:[0,-.44,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR900_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR900_FLG",position:[0,-.08,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR900_L06",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L06.geometry,material:a["#BBA474.001"]})]}),s.jsx("mesh",{name:"AR900_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L05.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L04",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L04.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L03",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L03.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L02.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L01",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L01.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L00.geometry,material:a["#0056b9.001"],rotation:[-Math.PI/2,0,0]})]})})})]})}function zd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((h,f)=>h.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"AR1440",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1440_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1440_J02",position:[.155,0,0],rotation:[Math.PI/2,0,Math.PI],children:[s.jsxs(S.animated.group,{name:"AR1440_J03",position:[.614,0,0],rotation:[Math.PI,0,0],children:[s.jsxs(S.animated.group,{name:"AR1440_J04",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1440_J05",position:[0,-.64,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1440_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR1440_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR1440_L06_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L06_CAD.geometry,material:a.metall})]}),s.jsx("mesh",{name:"AR1440_L05_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L05_CAD.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR1440_L04_CAD",children:[s.jsx("mesh",{name:"AR1440_L04_CAD001",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L04_CAD001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR1440_L04_CAD001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L04_CAD001_1.geometry,material:a.white})]})]}),s.jsxs("group",{name:"AR1440_L03_CAD",children:[s.jsx("mesh",{name:"AR1440_L03_CAD001",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L03_CAD001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR1440_L03_CAD001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L03_CAD001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR1440_L02_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L02_CAD.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR1440_L01_CAD",children:[s.jsx("mesh",{name:"AR1440_L01_CAD001",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L01_CAD001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR1440_L01_CAD001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L01_CAD001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR1440_L00_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L00_CAD.geometry,material:a.yaskawaBlueMetall,position:[0,0,.45],rotation:[-Math.PI/2,0,0]})]})})})]})}function Wd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((h,f)=>h.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(S.animated.group,{name:"AR1730_J00",children:[s.jsxs(S.animated.group,{name:"AR1730_J01",position:[.15,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"AR1730_J02",position:[.76,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(S.animated.group,{name:"AR1730_J03",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1730_J04",position:[0,-.795,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1730_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR1730_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR1730_L06",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L06.geometry,material:a.Metal,rotation:[Math.PI/2,-Math.PI/2,0]})]}),s.jsx("mesh",{name:"AR1730_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L05.geometry,material:a.Blue,rotation:[Math.PI/2,0,Math.PI/2]})]}),s.jsxs("group",{name:"AR1730_L04",position:[0,-.302,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"_R_AXIS_SW0001002",castShadow:!0,receiveShadow:!0,geometry:o._R_AXIS_SW0001002.geometry,material:a.Blue}),s.jsx("mesh",{name:"_R_AXIS_SW0001002_1",castShadow:!0,receiveShadow:!0,geometry:o._R_AXIS_SW0001002_1.geometry,material:a.White})]})]}),s.jsxs("group",{name:"AR1730_L03",rotation:[Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"_U_AXIS_SW0001002",castShadow:!0,receiveShadow:!0,geometry:o._U_AXIS_SW0001002.geometry,material:a.Blue}),s.jsx("mesh",{name:"_U_AXIS_SW0001002_1",castShadow:!0,receiveShadow:!0,geometry:o._U_AXIS_SW0001002_1.geometry,material:a.Black})]})]}),s.jsx("mesh",{name:"AR1730_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L02.geometry,material:a.Blue,position:[0,-.157,0],rotation:[-Math.PI,-1.571,0]})]}),s.jsxs("group",{name:"AR1730_L01",position:[0,-.336,0],rotation:[Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"_S_AXIS_SW0001002",castShadow:!0,receiveShadow:!0,geometry:o._S_AXIS_SW0001002.geometry,material:a.Blue}),s.jsx("mesh",{name:"_S_AXIS_SW0001002_1",castShadow:!0,receiveShadow:!0,geometry:o._S_AXIS_SW0001002_1.geometry,material:a.Black})]})]}),s.jsx("mesh",{name:"AR1730_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L00.geometry,material:a.Blue,position:[0,-.505,0],rotation:[Math.PI/2,0,-Math.PI/2]})]})})]})}function Hd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((h,f)=>h.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"AR2010",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR2010_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR2010_J02",position:[.15,0,0],rotation:[Math.PI/2,0,Math.PI],children:[s.jsxs(S.animated.group,{name:"AR2010_J03",position:[.76,0,0],rotation:[Math.PI,0,0],children:[s.jsxs(S.animated.group,{name:"AR2010_J04",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR2010_J05",position:[0,-1.082,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR2010_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR2010_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsxs("group",{name:"AR2010_L06",children:[s.jsx("mesh",{name:"AR2010_06001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_06001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_06001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_06001_1.geometry,material:a.metall})]})]}),s.jsx("mesh",{name:"AR2010_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_L05.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR2010_L04",children:[s.jsx("mesh",{name:"AR2010_04001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_04001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_04001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_04001_1.geometry,material:a.white})]})]}),s.jsxs("group",{name:"AR2010_L03",children:[s.jsx("mesh",{name:"AR2010_03001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_03001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_03001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_03001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR2010_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_L02.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR2010_L01",children:[s.jsx("mesh",{name:"AR2010_01001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_01001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_01001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_01001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR2010_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_L00.geometry,material:a.yaskawaBlueMetall,rotation:[-Math.PI/2,0,0]})]})})})]})}function Kd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((h,f)=>h.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(S.animated.group,{name:"AR3120_J00",children:[s.jsxs(S.animated.group,{name:"AR3120_J01",position:[.145,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"AR3120_J02",position:[1.15,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(S.animated.group,{name:"AR3120_J03",position:[.25,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR3120_J04",position:[0,-1.812,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR3120_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR3120_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR3120_L06",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L06.geometry,material:a["Metal.001"],rotation:[Math.PI/2,-Math.PI/2,0]})]}),s.jsx("mesh",{name:"AR3120_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L05.geometry,material:a["Blue.001"],rotation:[Math.PI/2,0,Math.PI/2]})]}),s.jsxs("group",{name:"AR3120_L04",rotation:[Math.PI/2,-Math.PI/2,0],children:[s.jsx("mesh",{name:"R_AXIS_GP20HL001",castShadow:!0,receiveShadow:!0,geometry:o.R_AXIS_GP20HL001.geometry,material:a["Blue.001"]}),s.jsx("mesh",{name:"R_AXIS_GP20HL001_1",castShadow:!0,receiveShadow:!0,geometry:o.R_AXIS_GP20HL001_1.geometry,material:a["White.001"]})]})]}),s.jsxs("group",{name:"AR3120_L03",rotation:[Math.PI,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_3001",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_3001.geometry,material:a["Blue.001"]}),s.jsx("mesh",{name:"Mesh_3001_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_3001_1.geometry,material:a["Black.001"]})]})]}),s.jsx("mesh",{name:"AR3120_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L02.geometry,material:a["Blue.001"],position:[0,-.146,0],rotation:[Math.PI,0,0]})]}),s.jsxs("group",{name:"AR3120_L01",position:[0,-.228,0],rotation:[0,-1.571,0],children:[s.jsx("mesh",{name:"S_AXIS_GP20HL001",castShadow:!0,receiveShadow:!0,geometry:o.S_AXIS_GP20HL001.geometry,material:a["Blue.001"]}),s.jsx("mesh",{name:"S_AXIS_GP20HL001_1",castShadow:!0,receiveShadow:!0,geometry:o.S_AXIS_GP20HL001_1.geometry,material:a["Black.001"]})]})]}),s.jsx("mesh",{name:"AR3120_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L00.geometry,material:a["Blue.001"],position:[0,-.54,0]})]})})]})}function Xd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,1,1,1,1,1];function c(u,d){u.forEach((h,f)=>h.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs("group",{name:"link_0",children:[s.jsx("mesh",{name:"shape439",castShadow:!0,receiveShadow:!0,geometry:o.shape439.geometry,material:a.yaskawa_blue}),s.jsx("mesh",{name:"shape439_1",castShadow:!0,receiveShadow:!0,geometry:o.shape439_1.geometry,material:a.yaskawa_metalsilver}),s.jsx("mesh",{name:"shape439_2",castShadow:!0,receiveShadow:!0,geometry:o.shape439_2.geometry,material:a.yaskawa_black})]}),s.jsxs(S.animated.group,{name:"YASKAWA_GP50_J00",position:[0,-.54,0],children:[s.jsxs("group",{name:"link_1",position:[0,.54,0],children:[s.jsx("mesh",{name:"shape320",castShadow:!0,receiveShadow:!0,geometry:o.shape320.geometry,material:a.yaskawa_blue}),s.jsx("mesh",{name:"shape320_1",castShadow:!0,receiveShadow:!0,geometry:o.shape320_1.geometry,material:a.yaskawa_black}),s.jsx("mesh",{name:"shape320_2",castShadow:!0,receiveShadow:!0,geometry:o.shape320_2.geometry,material:a.yaskawa_metalsilver}),s.jsx("mesh",{name:"shape320_3",castShadow:!0,receiveShadow:!0,geometry:o.shape320_3.geometry,material:a.yaskawa_black}),s.jsx("mesh",{name:"shape320_4",castShadow:!0,receiveShadow:!0,geometry:o.shape320_4.geometry,material:a.yaskawa_white}),s.jsx("mesh",{name:"shape320_5",castShadow:!0,receiveShadow:!0,geometry:o.shape320_5.geometry,material:a.yaskawa_black})]}),s.jsxs(S.animated.group,{name:"YASKAWA_GP50_J01",position:[.145,.54,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs("group",{name:"link_2",position:[0,0,.145],rotation:[Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape440",castShadow:!0,receiveShadow:!0,geometry:o.shape440.geometry,material:a.yaskawa_blue}),s.jsx("mesh",{name:"shape440_1",castShadow:!0,receiveShadow:!0,geometry:o.shape440_1.geometry,material:a.yaskawa_white}),s.jsx("mesh",{name:"shape440_2",castShadow:!0,receiveShadow:!0,geometry:o.shape440_2.geometry,material:a.yaskawa_metalsilver}),s.jsx("mesh",{name:"shape440_3",castShadow:!0,receiveShadow:!0,geometry:o.shape440_3.geometry,material:a.yaskawa_black})]}),s.jsxs(S.animated.group,{name:"YASKAWA_GP50_J02",position:[.87,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs("group",{name:"link_3",position:[-.87,0,-.145],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape341",castShadow:!0,receiveShadow:!0,geometry:o.shape341.geometry,material:a.yaskawa_blue}),s.jsx("mesh",{name:"shape341_1",castShadow:!0,receiveShadow:!0,geometry:o.shape341_1.geometry,material:a.yaskawa_white}),s.jsx("mesh",{name:"shape341_2",castShadow:!0,receiveShadow:!0,geometry:o.shape341_2.geometry,material:a.yaskawa_black}),s.jsx("mesh",{name:"shape341_3",castShadow:!0,receiveShadow:!0,geometry:o.shape341_3.geometry,material:a.yaskawa_black}),s.jsx("mesh",{name:"shape341_4",castShadow:!0,receiveShadow:!0,geometry:o.shape341_4.geometry,material:a.yaskawa_metalsilver}),s.jsx("mesh",{name:"shape341_5",castShadow:!0,receiveShadow:!0,geometry:o.shape341_5.geometry,material:a.yaskawa_metalsilver})]}),s.jsxs(S.animated.group,{name:"YASKAWA_GP50_J03",position:[.21,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"link_4",castShadow:!0,receiveShadow:!0,geometry:o.link_4.geometry,material:a.yaskawa_blue,position:[-1.08,.145,0],rotation:[0,0,-Math.PI/2]}),s.jsxs(S.animated.group,{name:"YASKAWA_GP50_J04",position:[0,-1.025,0],rotation:[Math.PI/2,0,0],children:[s.jsx("mesh",{name:"link_5",castShadow:!0,receiveShadow:!0,geometry:o.link_5.geometry,material:a.yaskawa_blue,position:[-1.08,0,-1.17],rotation:[-Math.PI/2,0,-Math.PI/2]}),s.jsxs(S.animated.group,{name:"YASKAWA_GP50_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"link_6",castShadow:!0,receiveShadow:!0,geometry:o.link_6.geometry,material:a.yaskawa_metalsilver,position:[-1.08,1.17,0],rotation:[0,0,-Math.PI/2]}),s.jsx("group",{name:"YASKAWA_GP50_FLG",position:[0,-.175,0],rotation:[-Math.PI,0,0]})]})]})]})]})]})]})]})})]})}function qd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(S.animated.group,{name:"CRX10iA_J00",children:[s.jsxs(S.animated.group,{name:"CRX10iA_J01",rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J02",position:[.54,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"CRX10iA_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"CRX10iA_L06",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L06.geometry,material:a.Fanuc_BlackMetal,position:[0,-.16,0],rotation:[0,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L05",position:[0,.15,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"J5CASING_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J5CASING_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001_1.geometry,material:a.Fanuc_Green})]})]}),s.jsxs("group",{name:"CRX10iA_L04",position:[0,-.54,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA.geometry,material:a.Fanuc_RedPlastic}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_1",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_1.geometry,material:a.Fanuc_BlackPlastic}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_2",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_2.geometry,material:a.Fanuc_WhitePlastic})]})]}),s.jsx("mesh",{name:"CRX10iA_L03",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L03.geometry,material:a.Fanuc_WhitePlastic,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsx("mesh",{name:"CRX10iA_L02",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L02.geometry,material:a.Fanuc_WhitePlastic,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L01",position:[0,-.117,0],children:[s.jsx("mesh",{name:"J2BASE_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001.geometry,material:a.Fanuc_Green}),s.jsx("mesh",{name:"J2BASE_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_1.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J2BASE_UNIT001_2",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_2.geometry,material:a.Fanuc_GreenLED})]})]}),s.jsx("mesh",{name:"CRX10iA_L00",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L00.geometry,material:a.Fanuc_BlackMetal,position:[0,-.245,0]})]})})]})}function Yd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsx("mesh",{name:"link_0",castShadow:!0,receiveShadow:!0,geometry:o.link_0.geometry,material:a.fanuc_metal_black}),s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J00",position:[0,-.245,0],children:[s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J01",position:[0,.245,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J02",position:[.71,0,0],children:[s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[s.jsx(S.animated.group,{name:"FANUC_CRX20iAL_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"link_6",castShadow:!0,receiveShadow:!0,geometry:o.link_6.geometry,material:a.fanuc_metal_black,position:[-.71,.54,-.15],rotation:[0,0,-Math.PI/2]})]}),s.jsxs(S.animated.group,{name:"link_5",position:[-.71,0,-.54],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape053",castShadow:!0,receiveShadow:!0,geometry:o.shape053.geometry,material:a.fanuc_white}),s.jsx("mesh",{name:"shape053_1",castShadow:!0,receiveShadow:!0,geometry:o.shape053_1.geometry,material:a.fanuc_green})]})]}),s.jsxs(S.animated.group,{name:"link_4",position:[-.71,0,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape054",castShadow:!0,receiveShadow:!0,geometry:o.shape054.geometry,material:a.fanuc_white}),s.jsx("mesh",{name:"shape054_1",castShadow:!0,receiveShadow:!0,geometry:o.shape054_1.geometry,material:a.fanuc_red}),s.jsx("mesh",{name:"shape054_2",castShadow:!0,receiveShadow:!0,geometry:o.shape054_2.geometry,material:a.fanuc_metal_black})]})]}),s.jsxs(S.animated.group,{name:"link_3",position:[-.71,0,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape009",castShadow:!0,receiveShadow:!0,geometry:o.shape009.geometry,material:a.fanuc_green}),s.jsx("mesh",{name:"shape009_1",castShadow:!0,receiveShadow:!0,geometry:o.shape009_1.geometry,material:a.fanuc_white})]})]}),s.jsx("mesh",{name:"link_2",castShadow:!0,receiveShadow:!0,geometry:o.link_2.geometry,material:a.fanuc_white,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"link_1",position:[0,.245,0],children:[s.jsx("mesh",{name:"shape005",castShadow:!0,receiveShadow:!0,geometry:o.shape005.geometry,material:a.fanuc_white}),s.jsx("mesh",{name:"shape005_1",castShadow:!0,receiveShadow:!0,geometry:o.shape005_1.geometry,material:a.fanuc_green})]})]})]})})]})}function Zd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",position:[0,-.37,0],children:[s.jsxs("group",{name:"CRX25iA_L00",children:[s.jsx("mesh",{name:"J1BASE_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J1BASE_NetGen_Coarse.geometry,material:a.Fanuc_BlackMetal}),s.jsx("mesh",{name:"J1BASE_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J1BASE_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenPlastic})]}),s.jsxs(S.animated.group,{name:"CRX25iA_J00",children:[s.jsxs(S.animated.group,{name:"CRX25iA_J01",position:[0,.37,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"CRX25iA_J02",position:[.95,0,0],children:[s.jsxs(S.animated.group,{name:"CRX25iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX25iA_J04",position:[0,-.75,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX25iA_J05",position:[0,.185,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"CRX25iA_FLG",position:[0,-.18,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"CRX25iA_L06",castShadow:!0,receiveShadow:!0,geometry:o.CRX25iA_L06.geometry,material:a.Fanuc_BlackMetal,position:[0,-.18,0]})]}),s.jsxs("group",{name:"CRX25iA_L05",position:[0,.185,0],children:[s.jsx("mesh",{name:"J6CASING_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J6CASING_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J6CASING_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J6CASING_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenPlastic})]})]}),s.jsxs("group",{name:"CRX25iA_L04",position:[0,-.75,0],children:[s.jsx("mesh",{name:"J3ARM_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J3ARM_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J3ARM_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J3ARM_NetGen_Coarse_1.geometry,material:a.Fanuc_RedPlastic}),s.jsx("mesh",{name:"J3ARM_NetGen_Coarse_2",castShadow:!0,receiveShadow:!0,geometry:o.J3ARM_NetGen_Coarse_2.geometry,material:a.Fanuc_BlackPlastic})]})]}),s.jsxs("group",{name:"CRX25iA_L03",children:[s.jsx("mesh",{name:"J3CASING_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J3CASING_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenPlastic})]})]}),s.jsx("mesh",{name:"CRX25iA_L02",castShadow:!0,receiveShadow:!0,geometry:o.CRX25iA_L02.geometry,material:a.Fanuc_WhitePlastic})]}),s.jsxs("group",{name:"CRX25iA_L01",position:[0,.18,0],children:[s.jsx("mesh",{name:"J2BASE_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J2BASE_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenLED})]})]})]})})]})}function Qd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(S.animated.group,{name:"CRX10iA_J00",children:[s.jsxs(S.animated.group,{name:"CRX10iA_J01",position:[0,.245,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J02",position:[.71,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"CRX10iA_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"CRX10iA_L06",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L06.geometry,material:a["Fanuc_BlackMetal.001"],position:[0,-.16,0],rotation:[0,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L05",position:[0,.15,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"J5CASING_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"J5CASING_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001_1.geometry,material:a["Fanuc_Green.001"]})]})]}),s.jsxs("group",{name:"CRX10iA_L04",position:[0,-.54,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_L001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001_1",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_L001_1.geometry,material:a["Fanuc_RedPlastic.001"]}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001_2",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_L001_2.geometry,material:a["Fanuc_BlackPlastic.001"]})]})]}),s.jsxs("group",{name:"CRX10iA_L03",rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"J3CASING_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_UNIT001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"J3CASING_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_UNIT001_1.geometry,material:a["Fanuc_Green.001"]})]})]}),s.jsx("mesh",{name:"CRX10iA_L02",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L02.geometry,material:a["Fanuc_WhitePlastic.001"],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L01",position:[0,.128,0],children:[s.jsx("mesh",{name:"J2BASE_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"J2BASE_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_1.geometry,material:a["Fanuc_Green.001"]}),s.jsx("mesh",{name:"J2BASE_UNIT001_2",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_2.geometry,material:a["Fanuc_GreenLED.001"]})]})]}),s.jsx("mesh",{name:"CRX10iA_L00",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L00.geometry,material:a["Fanuc_BlackMetal.001"]})]})})]})}function ef({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,0,-Math.PI/2,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"kuka_kr210_2700",children:[s.jsxs(S.animated.group,{name:"joint_01",children:[s.jsxs(S.animated.group,{name:"joint_02",position:[.33,.645,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"joint_04",position:[.115,0,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_05",position:[0,-1.22,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_06",rotation:[Math.PI/2,0,0],children:[s.jsx("group",{name:"flange",position:[0,-.215,0],rotation:[-Math.PI,0,0]}),s.jsx("group",{name:"link_6",position:[0,-.17,0],rotation:[0,0,-Math.PI/2],children:s.jsx("mesh",{name:"visuals006",castShadow:!0,receiveShadow:!0,geometry:o.visuals006.geometry,material:a.material_Material_Metall_black})})]}),s.jsx("group",{name:"link_5",position:[0,.059,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals005",children:[s.jsx("mesh",{name:"visuals005_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals005_1.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals005_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals005_2.geometry,material:a.material_Material_kuka_orange})]})})]}),s.jsx("group",{name:"link_4",position:[0,-.869,0],rotation:[0,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals004",children:[s.jsx("mesh",{name:"visuals004_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals004_1.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals004_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals004_2.geometry,material:a.material_Material_kuka_orange})]})})]}),s.jsx("group",{name:"link_3",position:[0,-.105,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals003",children:[s.jsx("mesh",{name:"visuals003_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_1.geometry,material:a.material_Material_rubber}),s.jsx("mesh",{name:"visuals003_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_2.geometry,material:a.material_Material_aluminium}),s.jsx("mesh",{name:"visuals003_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_3.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals003_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_4.geometry,material:a.material_Material_kuka_black}),s.jsx("mesh",{name:"visuals003_5",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_5.geometry,material:a.material_Material_Rubber_black}),s.jsx("mesh",{name:"visuals003_6",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_6.geometry,material:a.material_Material_kuka_orange}),s.jsx("mesh",{name:"visuals003_7",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_7.geometry,material:a.material_Material_stainless_steel})]})})]}),s.jsx("group",{name:"link_2",position:[0,.009,0],rotation:[Math.PI/2,0,0],children:s.jsxs("group",{name:"visuals002",children:[s.jsx("mesh",{name:"visuals002_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_1.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals002_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_2.geometry,material:a.material_Material_Rubber_black}),s.jsx("mesh",{name:"visuals002_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_3.geometry,material:a.material_Material_kuka_orange})]})})]}),s.jsx("group",{name:"link_1",position:[0,.236,0],children:s.jsxs("group",{name:"visuals001",children:[s.jsx("mesh",{name:"visuals001_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_1.geometry,material:a.material_Material_kuka_black}),s.jsx("mesh",{name:"visuals001_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_2.geometry,material:a.material_Material_kuka_orange}),s.jsx("mesh",{name:"visuals001_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_3.geometry,material:a.material_Material_rubber}),s.jsx("mesh",{name:"visuals001_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_4.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals001_5",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_5.geometry,material:a.material_Material_aluminium}),s.jsx("mesh",{name:"visuals001_6",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_6.geometry,material:a.material_Material_rubber_black}),s.jsx("mesh",{name:"visuals001_7",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_7.geometry,material:a.material_Material_stainless_steel})]})})]}),s.jsx("group",{name:"link_0",children:s.jsxs("group",{name:"visuals",children:[s.jsx("mesh",{name:"visuals_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals_1.geometry,material:a.material_Material_kuka_black}),s.jsx("mesh",{name:"visuals_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals_2.geometry,material:a.material_Material_metal_black})]})})]})})})]})}function tf({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,0,-Math.PI/2,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"kuka_kr270_2700_ultra",children:[s.jsxs(S.animated.group,{name:"joint_01",children:[s.jsxs(S.animated.group,{name:"joint_02",position:[.35,.675,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"joint_04",position:[-.041,0,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_05",position:[0,-1.2,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_06",rotation:[Math.PI/2,0,0],children:[s.jsx("group",{name:"flange",position:[0,-.24,0],rotation:[-Math.PI,0,0]}),s.jsx("group",{name:"link_6",position:[0,-.213,0],rotation:[0,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals006",children:[s.jsx("mesh",{name:"visuals006_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals006_1.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals006_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals006_2.geometry,material:a.material_Material_Metall})]})})]}),s.jsx("group",{name:"link_5",position:[0,.044,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsx("mesh",{name:"visuals005",castShadow:!0,receiveShadow:!0,geometry:o.visuals005.geometry,material:a.material_Material_Farbe})})]}),s.jsx("group",{name:"link_4",position:[0,-.954,0],rotation:[0,0,-Math.PI/2],children:s.jsx("mesh",{name:"visuals004",castShadow:!0,receiveShadow:!0,geometry:o.visuals004.geometry,material:a.material_Material_Farbe})})]}),s.jsx("group",{name:"link_3",position:[0,-.178,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals003",children:[s.jsx("mesh",{name:"visuals003_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_1.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals003_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_2.geometry,material:a.material_Material_Farbe__2_}),s.jsx("mesh",{name:"visuals003_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_3.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals003_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_4.geometry,material:a.material_Material_Farbe})]})})]}),s.jsx("group",{name:"link_2",rotation:[Math.PI/2,0,0],children:s.jsxs("group",{name:"visuals002",children:[s.jsx("mesh",{name:"visuals002_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_1.geometry,material:a.material_Material_Farbe}),s.jsx("mesh",{name:"visuals002_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_2.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals002_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_3.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals002_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_4.geometry,material:a.material_Material_Farbe__2_})]})})]}),s.jsx("group",{name:"link_1",position:[0,.226,0],children:s.jsxs("group",{name:"visuals001",children:[s.jsx("mesh",{name:"visuals001_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_1.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals001_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_2.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals001_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_3.geometry,material:a.material_Material_Farbe__2_}),s.jsx("mesh",{name:"visuals001_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_4.geometry,material:a.material_Material_Farbe})]})})]}),s.jsxs("group",{name:"link_0-base",children:[s.jsx("group",{name:"joint_1"}),s.jsxs("group",{name:"visuals",children:[s.jsx("mesh",{name:"visuals_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals_1.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals_2.geometry,material:a.material_Material_Farbe__1_})]})]})]})})})]})}function rf({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"M10iD",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J02",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J03",position:[.64,0,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J04",position:[.195,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J05",position:[0,-.7,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"M10iD_FLG",position:[0,-.075,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"M10iD_L06",castShadow:!0,receiveShadow:!0,geometry:o.M10iD_L06.geometry,material:a.Fanuc_BlackMetal_AO,position:[-.835,.775,0],rotation:[0,0,-Math.PI/2]})]}),s.jsx("mesh",{name:"M10iD_L05",castShadow:!0,receiveShadow:!0,geometry:o.M10iD_L05.geometry,material:a.Fanuc_BlackMetal_AO,position:[-.835,0,-.775],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"M10iD_L04",position:[-.835,.075,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_654",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_654.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_654_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_654_1.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M10iD_L03",position:[-.64,0,-.075],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_378",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_378.geometry,material:a.Material_1_AO}),s.jsx("mesh",{name:"Mesh_378_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_378_1.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_378_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_378_2.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M10iD_L02",position:[0,0,-.075],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_358",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_358.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_358_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_358_1.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M10iD_L01",children:[s.jsx("mesh",{name:"Mesh_356",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_356.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_356_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_356_1.geometry,material:a.Material_1_AO}),s.jsx("mesh",{name:"Mesh_356_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_356_2.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsx("mesh",{name:"M10iD_L00",castShadow:!0,receiveShadow:!0,geometry:o.M10iD_L00.geometry,material:a.Fanuc_BlackMetal_AO,rotation:[-Math.PI/2,0,0]})]})})})]})}function _s({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"M10iD",rotation:[0,0,0],children:[s.jsxs(S.animated.group,{name:"M20iD25_J00",children:[s.jsxs(S.animated.group,{name:"M20iD25_J01",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"M20iD25_J02",position:[.84,0,0],children:[s.jsxs(S.animated.group,{name:"M20iD25_J03",position:[.215,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M20iD25_J04",position:[0,-.89,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M20iD25_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"M20iD25_FLG",position:[0,-.09,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"M20iD25_L06",castShadow:!0,receiveShadow:!0,geometry:o.M20iD25_L06.geometry,material:a.Fanuc_BlackMetal_AO,position:[0,-.09,0],rotation:[Math.PI/2,0,Math.PI]})]}),s.jsx("mesh",{name:"M20iD25_L05",castShadow:!0,receiveShadow:!0,geometry:o.M20iD25_L05.geometry,material:a.Fanuc_BlackMetal_AO,rotation:[Math.PI,Math.PI/2,0]})]}),s.jsxs("group",{name:"M20iD25_L04",position:[0,-.286,0],rotation:[-Math.PI/2,Math.PI/2,0],children:[s.jsx("mesh",{name:"Mesh_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_2.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_2_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_2_1.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M20iD25_L03",position:[0,.406,0],rotation:[Math.PI,Math.PI/2,0],children:[s.jsx("mesh",{name:"Mesh_15",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_15.geometry,material:a.Fanuc_BlackMetal_AO}),s.jsx("mesh",{name:"Mesh_15_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_15_1.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_15_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_15_2.geometry,material:a.Material_9_AO})]})]}),s.jsxs("group",{name:"M20iD25_L02",position:[0,.505,-.055],rotation:[-Math.PI,Math.PI/2,0],children:[s.jsx("mesh",{name:"Mesh_37",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_37.geometry,material:a.Fanuc_BlackMetal_AO}),s.jsx("mesh",{name:"Mesh_37_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_37_1.geometry,material:a.Fanuc_Yellow_Textured_AO})]})]}),s.jsxs("group",{name:"M20iD25_L01",rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"Mesh_45",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_45.geometry,material:a.Material_9_AO}),s.jsx("mesh",{name:"Mesh_45_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_45_1.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_45_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_45_2.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsx("mesh",{name:"M20iD25_L00",castShadow:!0,receiveShadow:!0,geometry:o.M20iD25_L00.geometry,material:a.Fanuc_BlackMetal_AO,position:[0,-.425,0],rotation:[-Math.PI/2,0,0]})]})})})]})}function nf({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"IRB1200_7_70_IRC5",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J02",position:[0,.399,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J03",position:[.35,0,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J04",position:[.042,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J05",position:[0,.351,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J06",rotation:[Math.PI/2,0,-Math.PI],children:[s.jsx("group",{name:"IRB1200_7_70_IRC5_FLG",position:[0,.082,0]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L06",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L06.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L05",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L05.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L04",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L04.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L03",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L03.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L02",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L02.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L01",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L01.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"],rotation:[Math.PI/2,0,0]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L00",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L00.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"],rotation:[-Math.PI/2,0,0]})]})})})]})}const bs="line",Ss="mesh";function Eo({rapidlyChangingMotionState:e,dhParameters:t,...r}){const n=new vt.Matrix4;function o(c,u){const d=new vt.Vector3,h=new vt.Quaternion,f=new vt.Vector3;n.decompose(d,h,f);const b=d.clone(),y=new vt.Matrix4().makeRotationY(c.theta+u*(c.reverse_rotation_direction?-1:1)).multiply(new vt.Matrix4().makeTranslation(0,c.d/1e3,0)).multiply(new vt.Matrix4().makeTranslation(c.a/1e3,0,0)).multiply(new vt.Matrix4().makeRotationX(c.alpha));return n.multiply(y),n.decompose(d,h,f),{a:b,b:d}}function a(c,u,d,h){if(!t)return;const f=t[c];if(!f)return;const{a:b,b:y}=o(f,h);u.geometry.setPositions([b.toArray(),y.toArray()].flat()),d.position.set(y.x,y.y,y.z)}function i(c,u){n.identity(),c.forEach((d,h)=>{a(h,d.getObjectByName(bs),d.getObjectByName(Ss),u[h])})}function l(c){return tl(c,"^group_[0-9]+$")}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:e,robotRootObjectName:"Scene",onRotationChanged:i,jointCollector:l}),s.jsxs("group",{...r,name:"Scene",children:[s.jsxs("mesh",{children:[s.jsx("sphereGeometry",{args:[.01,32,32]}),s.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]}),t.map((c,u)=>{const{a:d,b:h}=o(c,e.state.joint_position.joints[u]??0);return s.jsxs("group",{name:`group_${u}`,children:[s.jsx(ie.Line,{name:bs,points:[d,h],color:"white",lineWidth:5}),s.jsxs("mesh",{name:Ss,position:h,children:[s.jsx("sphereGeometry",{args:[.01,32,32]}),s.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+u)]},"group_"+u)})]})]})}const of=console.warn;function af(){return q.useEffect(()=>{console.warn=e=>{e!=="Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"&&of(e)}},[]),s.jsx(s.Fragment,{})}function Sa(e){return`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components/public/models/${e}.glb`}const ol=en(({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:r,getModel:n=Sa,isGhost:o=!1,...a})=>{let i;const l=q.useRef(new Ce.Group),c=q.useCallback(h=>{h!==null&&(l.current=h,console.log("robotRef.current",l.current),o&&l.current&&l.current.children.length>0&&u())},[o]),u=()=>{l.current&&!l.current.userData.ghostsCreated&&(l.current.traverse(h=>{if(h instanceof Ce.Mesh&&!h.userData.isGhost){h.material instanceof Ce.Material&&(h.material.colorWrite=!1);const f=h.clone(),b=h.clone();f.material=new Ce.MeshStandardMaterial({depthTest:!0,depthWrite:!0,colorWrite:!1,polygonOffset:!0,polygonOffsetFactor:1}),f.userData.isGhost=!0,b.material=new Ce.MeshStandardMaterial({color:"#D91433",opacity:.3,depthTest:!0,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-1}),b.userData.isGhost=!0,h.parent&&(h.parent.add(f),h.parent.add(b))}}),l.current.userData.ghostsCreated=!0)},d=()=>{if(l.current){const h=[];l.current.traverse(f=>{f instanceof Ce.Mesh&&f.material instanceof Ce.Material&&(f.material.colorWrite=!0),f instanceof Ce.Mesh&&f.userData!==void 0&&f.userData&&f.userData.isGhost!==void 0&&f.userData.isGhost&&h.push(f)}),h.forEach(f=>{f.parent&&f.parent.remove(f)}),l.current.userData.ghostsCreated=!1}};switch(q.useEffect(()=>{o?u():d()},[o]),t){case"UniversalRobots_UR3":i=Dd;break;case"UniversalRobots_UR3e":i=Ud;break;case"UniversalRobots_UR5":i=Bd;break;case"UniversalRobots_UR5e":i=Jd;break;case"UniversalRobots_UR10":i=Vd;break;case"UniversalRobots_UR10e":i=Gd;break;case"Yaskawa_AR900":i=ys;break;case"Yaskawa_GP7":i=ys;break;case"Yaskawa_AR1440":i=zd;break;case"Yaskawa_AR1730":i=Wd;break;case"Yaskawa_AR2010":i=Hd;break;case"Yaskawa_AR3120":i=Kd;break;case"Yaskawa_GP50":i=Xd;break;case"FANUC_CRX10iA":i=qd;break;case"FANUC_CRX20iAL":i=Yd;break;case"FANUC_CRX25iA":i=Zd;break;case"FANUC_CRX25iAL":i=Qd;break;case"FANUC_ARC_Mate_120iD":i=_s;break;case"FANUC_ARC_Mate_120iD35":i=_s;break;case"FANUC_ARC_Mate_100iD":i=rf;break;case"KUKA_KR210_R2700":i=ef;break;case"KUKA_KR270_R2700":i=tf;break;case"ABB_1200_07_7":i=nf;break;default:console.warn(`Unknown robot type: ${t}`),i=Eo}return s.jsxs(jc.ErrorBoundary,{fallback:s.jsx(Eo,{rapidlyChangingMotionState:e,dhParameters:r,...a}),children:[s.jsx(q.Suspense,{fallback:s.jsx(Eo,{rapidlyChangingMotionState:e,dhParameters:r,...a}),children:s.jsx("group",{ref:c,children:s.jsx(i,{rapidlyChangingMotionState:e,modelURL:n(t),dhParameters:r,...a})})}),s.jsx(af,{})]})});function sf({connectedMotionGroup:e,getModel:t=Sa,isGhost:r=!1,...n}){return e.dhParameters?s.jsx(ol,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,isGhost:r,...n}):null}function lf(){return s.jsx(ie.Environment,{children:s.jsx(cf,{})})}function cf({positions:e=[2,0,2,0,2,0,2,0]}){return s.jsxs(s.Fragment,{children:[s.jsx(ie.Lightformer,{intensity:5,"rotation-x":Math.PI/2,position:[0,5,-9],scale:[10,10,1]}),s.jsx("group",{rotation:[0,.5,0],children:s.jsx("group",{children:e.map((t,r)=>s.jsx(ie.Lightformer,{form:"circle",intensity:5,rotation:[Math.PI/2,0,0],position:[t,4,r*4],scale:[3,1,1]},r))})}),s.jsx(ie.Lightformer,{intensity:40,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[20,.1,1]}),s.jsx(ie.Lightformer,{intensity:20,"rotation-y":-Math.PI,position:[-5,-2,-1],scale:[20,.1,1]}),s.jsx(ie.Lightformer,{"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[20,.5,1],intensity:5}),s.jsx(ie.Lightformer,{"rotation-y":-Math.PI/2,position:[10,1,0],scale:[20,1,1],intensity:10}),s.jsx(ie.Lightformer,{form:"ring",color:"white",intensity:5,scale:10,position:[-15,4,-18],target:[0,0,0]})]})}function uf(e){if(e.length<3)return console.log("Not enough vertices to define a plane"),{isCoplanar:!1};const t=new Ce.Vector3(e[0].x,e[0].y,e[0].z),r=new Ce.Vector3(e[1].x,e[1].y,e[1].z),n=new Ce.Vector3(e[2].x,e[2].y,e[2].z),o=new Ce.Vector3().subVectors(r,t),a=new Ce.Vector3().subVectors(n,t),i=new Ce.Vector3().crossVectors(o,a).normalize();for(let l=3;l<e.length;l++){const c=new Ce.Vector3(e[l].x,e[l].y,e[l].z),u=new Ce.Vector3().subVectors(c,t),d=i.dot(u);if(Math.abs(d)>1e-6)return console.log("Vertices are not on the same plane"),{isCoplanar:!1}}return{isCoplanar:!0,normal:i}}function df({safetyZones:e,...t}){return s.jsx("group",{...t,children:e.map((r,n)=>{let o=[];return r.geometry&&(r.geometry.compound?o=r.geometry.compound.child_geometries:r.geometry.convex_hull&&(o=[r.geometry])),o.map((a,i)=>{if(!a.convex_hull)return null;const l=a.convex_hull.vertices.map(d=>new Ce.Vector3(d.x/1e3,d.y/1e3,d.z/1e3)),c=uf(l);if(c.isCoplanar&&c.normal){const h=new Ce.Vector3().addVectors(l[0],c.normal.multiplyScalar(1e-4));l.push(h)}let u;try{u=new Cc.ConvexGeometry(l)}catch(d){return console.log("Error creating ConvexGeometry:",d),null}return s.jsx(s.Fragment,{children:s.jsx("mesh",{geometry:u,children:s.jsx("meshStandardMaterial",{attach:"material",color:"#009f4d",opacity:.2,depthTest:!1,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-i},n)},`${n}-${i}`)})})})})}function Kr(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 ff=Object.freeze(Object.defineProperty({__proto__:null,default:Kr},Symbol.toStringTag,{value:"Module"}));var hf=!1;function mf(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 pf(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 gf=function(){function e(r){var n=this;this._insertTag=function(o){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,a),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!hf: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(pf(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=mf(o);try{a.insertRule(n,a.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Te="-ms-",Un="-moz-",ne="-webkit-",al="comm",xa="rule",va="decl",yf="@import",sl="@keyframes",_f="@layer",bf=Math.abs,to=String.fromCharCode,Sf=Object.assign;function xf(e,t){return Pe(e,0)^45?(((t<<2^Pe(e,0))<<2^Pe(e,1))<<2^Pe(e,2))<<2^Pe(e,3):0}function il(e){return e.trim()}function vf(e,t){return(e=t.exec(e))?e[0]:e}function oe(e,t,r){return e.replace(t,r)}function ea(e,t){return e.indexOf(t)}function Pe(e,t){return e.charCodeAt(t)|0}function Xr(e,t,r){return e.slice(t,r)}function ft(e){return e.length}function wa(e){return e.length}function pn(e,t){return t.push(e),e}function wf(e,t){return e.map(t).join("")}var ro=1,Sr=1,ll=0,De=0,xe=0,Rr="";function no(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:ro,column:Sr,length:i,return:""}}function Dr(e,t){return Sf(no("",null,null,"",null,null,0),e,{length:-e.length},t)}function Rf(){return xe}function jf(){return xe=De>0?Pe(Rr,--De):0,Sr--,xe===10&&(Sr=1,ro--),xe}function We(){return xe=De<ll?Pe(Rr,De++):0,Sr++,xe===10&&(Sr=1,ro++),xe}function pt(){return Pe(Rr,De)}function Cn(){return De}function nn(e,t){return Xr(Rr,e,t)}function qr(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 cl(e){return ro=Sr=1,ll=ft(Rr=e),De=0,[]}function ul(e){return Rr="",e}function An(e){return il(nn(De-1,ta(e===91?e+2:e===40?e+1:e)))}function Cf(e){for(;(xe=pt())&&xe<33;)We();return qr(e)>2||qr(xe)>3?"":" "}function Af(e,t){for(;--t&&We()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return nn(e,Cn()+(t<6&&pt()==32&&We()==32))}function ta(e){for(;We();)switch(xe){case e:return De;case 34:case 39:e!==34&&e!==39&&ta(xe);break;case 40:e===41&&ta(e);break;case 92:We();break}return De}function Pf(e,t){for(;We()&&e+xe!==57;)if(e+xe===84&&pt()===47)break;return"/*"+nn(t,De-1)+"*"+to(e===47?e:We())}function Of(e){for(;!qr(pt());)We();return nn(e,De)}function Tf(e){return ul(Pn("",null,null,null,[""],e=cl(e),0,[0],e))}function Pn(e,t,r,n,o,a,i,l,c){for(var u=0,d=0,h=i,f=0,b=0,y=0,_=1,g=1,v=1,R=0,C="",k=o,j=a,P=n,O=C;g;)switch(y=R,R=We()){case 40:if(y!=108&&Pe(O,h-1)==58){ea(O+=oe(An(R),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:O+=An(R);break;case 9:case 10:case 13:case 32:O+=Cf(y);break;case 92:O+=Af(Cn()-1,7);continue;case 47:switch(pt()){case 42:case 47:pn(Mf(Pf(We(),Cn()),t,r),c);break;default:O+="/"}break;case 123*_:l[u++]=ft(O)*v;case 125*_:case 59:case 0:switch(R){case 0:case 125:g=0;case 59+d:v==-1&&(O=oe(O,/\f/g,"")),b>0&&ft(O)-h&&pn(b>32?vs(O+";",n,r,h-1):vs(oe(O," ","")+";",n,r,h-2),c);break;case 59:O+=";";default:if(pn(P=xs(O,t,r,u,d,o,l,C,k=[],j=[],h),a),R===123)if(d===0)Pn(O,t,P,P,k,a,h,l,j);else switch(f===99&&Pe(O,3)===110?100:f){case 100:case 108:case 109:case 115:Pn(e,P,P,n&&pn(xs(e,P,P,0,0,o,l,C,o,k=[],h),j),o,j,h,l,n?k:j);break;default:Pn(O,P,P,P,[""],j,0,l,j)}}u=d=b=0,_=v=1,C=O="",h=i;break;case 58:h=1+ft(O),b=y;default:if(_<1){if(R==123)--_;else if(R==125&&_++==0&&jf()==125)continue}switch(O+=to(R),R*_){case 38:v=d>0?1:(O+="\f",-1);break;case 44:l[u++]=(ft(O)-1)*v,v=1;break;case 64:pt()===45&&(O+=An(We())),f=pt(),d=h=ft(C=O+=Of(Cn())),R++;break;case 45:y===45&&ft(O)==2&&(_=0)}}return a}function xs(e,t,r,n,o,a,i,l,c,u,d){for(var h=o-1,f=o===0?a:[""],b=wa(f),y=0,_=0,g=0;y<n;++y)for(var v=0,R=Xr(e,h+1,h=bf(_=i[y])),C=e;v<b;++v)(C=il(_>0?f[v]+" "+R:oe(R,/&\f/g,f[v])))&&(c[g++]=C);return no(e,t,r,o===0?xa:l,c,u,d)}function Mf(e,t,r){return no(e,t,r,al,to(Rf()),Xr(e,2,-2),0)}function vs(e,t,r,n){return no(e,t,r,va,Xr(e,0,n),Xr(e,n+1,-1),n)}function pr(e,t){for(var r="",n=wa(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function If(e,t,r,n){switch(e.type){case _f:if(e.children.length)break;case yf:case va:return e.return=e.return||e.value;case al:return"";case sl:return e.return=e.value+"{"+pr(e.children,n)+"}";case xa:e.value=e.props.join(",")}return ft(r=pr(e.children,n))?e.return=e.value+"{"+r+"}":""}function Ef(e){var t=wa(e);return function(r,n,o,a){for(var i="",l=0;l<t;l++)i+=e[l](r,n,o,a)||"";return i}}function Lf(e){return function(t){t.root||(t=t.return)&&e(t)}}var kf=function(t,r,n){for(var o=0,a=0;o=a,a=pt(),o===38&&a===12&&(r[n]=1),!qr(a);)We();return nn(t,De)},$f=function(t,r){var n=-1,o=44;do switch(qr(o)){case 0:o===38&&pt()===12&&(r[n]=1),t[n]+=kf(De-1,r,n);break;case 2:t[n]+=An(o);break;case 4:if(o===44){t[++n]=pt()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=to(o)}while(o=We());return t},Nf=function(t,r){return ul($f(cl(t),r))},ws=new WeakMap,Ff=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&&!ws.get(n))&&!o){ws.set(t,!0);for(var a=[],i=Nf(r,a),l=n.props,c=0,u=0;c<i.length;c++)for(var d=0;d<l.length;d++,u++)t.props[u]=a[c]?i[c].replace(/&\f/g,l[d]):l[d]+" "+i[c]}}},Df=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function dl(e,t){switch(xf(e,t)){case 5103:return ne+"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 ne+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ne+e+Un+e+Te+e+e;case 6828:case 4268:return ne+e+Te+e+e;case 6165:return ne+e+Te+"flex-"+e+e;case 5187:return ne+e+oe(e,/(\w+).+(:[^]+)/,ne+"box-$1$2"+Te+"flex-$1$2")+e;case 5443:return ne+e+Te+"flex-item-"+oe(e,/flex-|-self/,"")+e;case 4675:return ne+e+Te+"flex-line-pack"+oe(e,/align-content|flex-|-self/,"")+e;case 5548:return ne+e+Te+oe(e,"shrink","negative")+e;case 5292:return ne+e+Te+oe(e,"basis","preferred-size")+e;case 6060:return ne+"box-"+oe(e,"-grow","")+ne+e+Te+oe(e,"grow","positive")+e;case 4554:return ne+oe(e,/([^-])(transform)/g,"$1"+ne+"$2")+e;case 6187:return oe(oe(oe(e,/(zoom-|grab)/,ne+"$1"),/(image-set)/,ne+"$1"),e,"")+e;case 5495:case 3959:return oe(e,/(image-set\([^]*)/,ne+"$1$`$1");case 4968:return oe(oe(e,/(.+:)(flex-)?(.*)/,ne+"box-pack:$3"+Te+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ne+e+e;case 4095:case 3583:case 4068:case 2532:return oe(e,/(.+)-inline(.+)/,ne+"$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(Pe(e,t+1)){case 109:if(Pe(e,t+4)!==45)break;case 102:return oe(e,/(.+:)(.+)-([^]+)/,"$1"+ne+"$2-$3$1"+Un+(Pe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ea(e,"stretch")?dl(oe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Pe(e,t+1)!==115)break;case 6444:switch(Pe(e,ft(e)-3-(~ea(e,"!important")&&10))){case 107:return oe(e,":",":"+ne)+e;case 101:return oe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ne+(Pe(e,14)===45?"inline-":"")+"box$3$1"+ne+"$2$3$1"+Te+"$2box$3")+e}break;case 5936:switch(Pe(e,t+11)){case 114:return ne+e+Te+oe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ne+e+Te+oe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ne+e+Te+oe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ne+e+Te+e+e}return e}var Uf=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case va:t.return=dl(t.value,t.length);break;case sl:return pr([Dr(t,{value:oe(t.value,"@","@"+ne)})],o);case xa:if(t.length)return wf(t.props,function(a){switch(vf(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pr([Dr(t,{props:[oe(a,/:(read-\w+)/,":"+Un+"$1")]})],o);case"::placeholder":return pr([Dr(t,{props:[oe(a,/:(plac\w+)/,":"+ne+"input-$1")]}),Dr(t,{props:[oe(a,/:(plac\w+)/,":"+Un+"$1")]}),Dr(t,{props:[oe(a,/:(plac\w+)/,Te+"input-$1")]})],o)}return""})}},Bf=[Uf],Jf=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(_){var g=_.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var o=t.stylisPlugins||Bf,a={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(_){for(var g=_.getAttribute("data-emotion").split(" "),v=1;v<g.length;v++)a[g[v]]=!0;l.push(_)});var c,u=[Ff,Df];{var d,h=[If,Lf(function(_){d.insert(_)})],f=Ef(u.concat(o,h)),b=function(g){return pr(Tf(g),f)};c=function(g,v,R,C){d=R,b(g?g+"{"+v.styles+"}":v.styles),C&&(y.inserted[v.name]=!0)}}var y={key:r,sheet:new gf({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:c};return y.sheet.hydrate(l),y};let ra;typeof document=="object"&&(ra=Jf({key:"css",prepend:!0}));function fl(e){const{injectFirst:t,children:r}=e;return t&&ra?s.jsx(mr.CacheProvider,{value:ra,children:r}):r}process.env.NODE_ENV!=="production"&&(fl.propTypes={children:m.node,injectFirst:m.bool});function Vf(e){return e==null||Object.keys(e).length===0}function hl(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(Vf(o)?r:o):t;return s.jsx(mr.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(hl.propTypes={defaultTheme:m.object,styles:m.oneOfType([m.array,m.string,m.object,m.func])});/**
|
|
36
36
|
* @mui/styled-engine v5.16.6
|
|
37
37
|
*
|
|
38
38
|
* @license MIT
|
|
39
39
|
* This source code is licensed under the MIT license found in the
|
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
|
41
41
|
*/function ml(e,t){const r=Ac(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(`
|
|
42
|
-
`)):n.some(a=>a===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}const pl=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},
|
|
42
|
+
`)):n.some(a=>a===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}const pl=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Gf=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:hl,StyledEngineProvider:fl,ThemeContext:mr.ThemeContext,css:mr.css,default:ml,internal_processStyles:pl,keyframes:mr.keyframes},Symbol.toStringTag,{value:"Module"}));function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},A.apply(null,arguments)}function Ue(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 gl(e){if(!wt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=gl(e[r])}),t}function tt(e,t,r={clone:!0}){const n=r.clone?A({},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]=tt(e[o],t[o],r):r.clone?n[o]=wt(t[o])?gl(t[o]):t[o]:n[o]=t[o]}),n}const zf=Object.freeze(Object.defineProperty({__proto__:null,default:tt,isPlainObject:wt},Symbol.toStringTag,{value:"Module"})),Wf=["values","unit","step"],Hf=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>A({},r,{[n.key]:n.val}),{})};function yl(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Ue(e,Wf),a=Hf(t),i=Object.keys(a);function l(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r})`}function c(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-n/100}${r})`}function u(f,b){const y=i.indexOf(b);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r}) and (max-width:${(y!==-1&&typeof t[i[y]]=="number"?t[i[y]]:b)-n/100}${r})`}function d(f){return i.indexOf(f)+1<i.length?u(f,i[i.indexOf(f)+1]):l(f)}function h(f){const b=i.indexOf(f);return b===0?l(i[1]):b===i.length-1?c(i[b]):u(f,i[i.indexOf(f)+1]).replace("@media","@media not all and")}return A({keys:i,values:a,up:l,down:c,between:u,only:d,not:h,unit:r},o)}const Kf={borderRadius:4},Dt=process.env.NODE_ENV!=="production"?m.oneOfType([m.number,m.string,m.object,m.array]):{};function Vr(e,t){return t?tt(e,t,{clone:!1}):e}const Ra={xs:0,sm:600,md:900,lg:1200,xl:1536},Rs={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ra[e]}px)`};function it(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||Rs;return t.reduce((i,l,c)=>(i[a.up(a.keys[c])]=r(t[c]),i),{})}if(typeof t=="object"){const a=n.breakpoints||Rs;return Object.keys(t).reduce((i,l)=>{if(Object.keys(a.values||Ra).indexOf(l)!==-1){const c=a.up(l);i[c]=r(t[l],l)}else{const c=l;i[c]=t[c]}return i},{})}return r(t)}function _l(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const a=e.up(o);return n[a]={},n},{}))||{}}function bl(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function Xf(e,...t){const r=_l(e),n=[r,...t].reduce((o,a)=>tt(o,a),{});return bl(Object.keys(r),n)}function qf(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,a)=>{a<e.length&&(r[o]=!0)}):n.forEach(o=>{e[o]!=null&&(r[o]=!0)}),r}function Lo({values:e,breakpoints:t,base:r}){const n=r||qf(e,t),o=Object.keys(n);if(o.length===0)return e;let a;return o.reduce((i,l,c)=>(Array.isArray(e)?(i[l]=e[c]!=null?e[c]:e[a],a=c):typeof e=="object"?(i[l]=e[l]!=null?e[l]:e[a],a=l):i[l]=e,i),{})}function Oe(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Kr(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Yf=Object.freeze(Object.defineProperty({__proto__:null,default:Oe},Symbol.toStringTag,{value:"Module"}));function oo(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Bn(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=oo(e,r)||n,t&&(o=t(o,n,e)),o}function _e(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=i=>{if(i[t]==null)return null;const l=i[t],c=i.theme,u=oo(c,n)||{};return it(i,l,h=>{let f=Bn(u,o,h);return h===f&&typeof h=="string"&&(f=Bn(u,o,`${t}${h==="default"?"":Oe(h)}`,h)),r===!1?f:{[r]:f}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:Dt}:{},a.filterProps=[t],a}function Zf(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Qf={m:"margin",p:"padding"},eh={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},js={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},th=Zf(e=>{if(e.length>2)if(js[e])e=js[e];else return[e];const[t,r]=e.split(""),n=Qf[t],o=eh[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),ao=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],so=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],rh=[...ao,...so];function on(e,t,r,n){var o;const a=(o=oo(e,t,!1))!=null?o:r;return typeof a=="number"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${i}.`),a*i):Array.isArray(a)?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>a.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(a)}.`,`${i} > ${a.length-1}, you need to add the missing values.`].join(`
|
|
43
43
|
`)):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(`
|
|
44
44
|
`))),a[i]):typeof a=="function"?a:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${a}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
45
|
-
`)),()=>{})}function ja(e){return on(e,"spacing",8,"spacing")}function Kt(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 rh(e,t){return r=>e.reduce((n,o)=>(n[o]=Kt(t,r),n),{})}function nh(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=eh(r),a=rh(o,n),i=e[r];return it(e,i,a)}function Sl(e,t){const r=ja(e.theme);return Object.keys(e).map(n=>nh(e,t,n,r)).reduce(Vr,{})}function me(e){return Sl(e,ao)}me.propTypes=process.env.NODE_ENV!=="production"?ao.reduce((e,t)=>(e[t]=Dt,e),{}):{};me.filterProps=ao;function pe(e){return Sl(e,so)}pe.propTypes=process.env.NODE_ENV!=="production"?so.reduce((e,t)=>(e[t]=Dt,e),{}):{};pe.filterProps=so;process.env.NODE_ENV!=="production"&&th.reduce((e,t)=>(e[t]=Dt,e),{});function oh(e=8){if(e.mui)return e;const t=ja({spacing:e}),r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" "));return r.mui=!0,r}function io(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?Vr(o,t[a](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Qe(e){return typeof e!="number"?e:`${e}px solid`}function nt(e,t){return _e({prop:e,themeKey:"borders",transform:t})}const ah=nt("border",Qe),sh=nt("borderTop",Qe),ih=nt("borderRight",Qe),lh=nt("borderBottom",Qe),ch=nt("borderLeft",Qe),uh=nt("borderColor"),dh=nt("borderTopColor"),fh=nt("borderRightColor"),hh=nt("borderBottomColor"),mh=nt("borderLeftColor"),ph=nt("outline",Qe),gh=nt("outlineColor"),lo=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=on(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Kt(t,n)});return it(e,e.borderRadius,r)}return null};lo.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Dt}:{};lo.filterProps=["borderRadius"];io(ah,sh,ih,lh,ch,uh,dh,fh,hh,mh,lo,ph,gh);const co=e=>{if(e.gap!==void 0&&e.gap!==null){const t=on(e.theme,"spacing",8,"gap"),r=n=>({gap:Kt(t,n)});return it(e,e.gap,r)}return null};co.propTypes=process.env.NODE_ENV!=="production"?{gap:Dt}:{};co.filterProps=["gap"];const uo=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=on(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Kt(t,n)});return it(e,e.columnGap,r)}return null};uo.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Dt}:{};uo.filterProps=["columnGap"];const fo=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=on(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Kt(t,n)});return it(e,e.rowGap,r)}return null};fo.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Dt}:{};fo.filterProps=["rowGap"];const yh=_e({prop:"gridColumn"}),_h=_e({prop:"gridRow"}),bh=_e({prop:"gridAutoFlow"}),Sh=_e({prop:"gridAutoColumns"}),xh=_e({prop:"gridAutoRows"}),vh=_e({prop:"gridTemplateColumns"}),wh=_e({prop:"gridTemplateRows"}),Rh=_e({prop:"gridTemplateAreas"}),jh=_e({prop:"gridArea"});io(co,uo,fo,yh,_h,bh,Sh,xh,vh,wh,Rh,jh);function gr(e,t){return t==="grey"?t:e}const Ch=_e({prop:"color",themeKey:"palette",transform:gr}),Ah=_e({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gr}),Ph=_e({prop:"backgroundColor",themeKey:"palette",transform:gr});io(Ch,Ah,Ph);function Ge(e){return e<=1&&e!==0?`${e*100}%`:e}const Oh=_e({prop:"width",transform:Ge}),Ca=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||Ra[r];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Ge(r)}};return it(e,e.maxWidth,t)}return null};Ca.filterProps=["maxWidth"];const Th=_e({prop:"minWidth",transform:Ge}),Mh=_e({prop:"height",transform:Ge}),Ih=_e({prop:"maxHeight",transform:Ge}),Eh=_e({prop:"minHeight",transform:Ge});_e({prop:"size",cssProperty:"width",transform:Ge});_e({prop:"size",cssProperty:"height",transform:Ge});const Lh=_e({prop:"boxSizing"});io(Oh,Ca,Th,Mh,Ih,Eh,Lh);const an={border:{themeKey:"borders",transform:Qe},borderTop:{themeKey:"borders",transform:Qe},borderRight:{themeKey:"borders",transform:Qe},borderBottom:{themeKey:"borders",transform:Qe},borderLeft:{themeKey:"borders",transform:Qe},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Qe},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:lo},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:me},mt:{style:me},mr:{style:me},mb:{style:me},ml:{style:me},mx:{style:me},my:{style:me},margin:{style:me},marginTop:{style:me},marginRight:{style:me},marginBottom:{style:me},marginLeft:{style:me},marginX:{style:me},marginY:{style:me},marginInline:{style:me},marginInlineStart:{style:me},marginInlineEnd:{style:me},marginBlock:{style:me},marginBlockStart:{style:me},marginBlockEnd:{style:me},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:co},rowGap:{style:fo},columnGap:{style:uo},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ge},maxWidth:{style:Ca},minWidth:{transform:Ge},height:{transform:Ge},maxHeight:{transform:Ge},minHeight:{transform:Ge},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function kh(...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 $h(e,t){return typeof e=="function"?e(t):e}function xl(){function e(r,n,o,a){const i={[r]:n,theme:o},l=a[r];if(!l)return{[r]:n};const{cssProperty:c=r,themeKey:u,transform:d,style:h}=l;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const f=oo(o,u)||{};return h?h(i):it(i,n,y=>{let _=Bn(f,d,y);return y===_&&typeof y=="string"&&(_=Bn(f,d,`${r}${y==="default"?"":Oe(y)}`,y)),c===!1?_:{[c]:_}})}function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=(n=a.unstable_sxConfig)!=null?n:an;function l(c){let u=c;if(typeof c=="function")u=c(a);else if(typeof c!="object")return c;if(!u)return null;const d=_l(a.breakpoints),h=Object.keys(d);let f=d;return Object.keys(u).forEach(b=>{const y=$h(u[b],a);if(y!=null)if(typeof y=="object")if(i[b])f=Vr(f,e(b,y,a,i));else{const _=it({theme:a},y,g=>({[b]:g}));kh(_,y)?f[b]=t({sx:y,theme:a}):f=Vr(f,_)}else f=Vr(f,e(b,y,a,i))}),bl(h,f)}return Array.isArray(o)?o.map(l):l(o)}return t}const sn=xl();sn.filterProps=["sx"];function vl(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 Nh=["breakpoints","palette","spacing","shape"];function ln(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=Ue(e,Nh),l=yl(r),c=oh(o);let u=tt({breakpoints:l,direction:"ltr",components:{},palette:A({mode:"light"},n),spacing:c,shape:A({},Hf,a)},i);return u.applyStyles=vl,u=t.reduce((d,h)=>tt(d,h),u),u.unstable_sxConfig=A({},an,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(h){return sn({sx:h,theme:this})},u}const Fh=Object.freeze(Object.defineProperty({__proto__:null,default:ln,private_createBreakpoints:yl,unstable_applyStyles:vl},Symbol.toStringTag,{value:"Module"}));function Dh(e){return Object.keys(e).length===0}function Uh(e=null){const t=N.useContext(mr.ThemeContext);return!t||Dh(t)?e:t}const Bh=ln();function Jh(e=Bh){return Uh(e)}const Vh=["sx"],Gh=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:an;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function wl(e){const{sx:t}=e,r=Ue(e,Vh),{systemProps:n,otherProps:o}=Gh(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const l=t(...i);return wt(l)?A({},n,l):n}:a=A({},n,t),A({},o,{sx:a})}const zh=Object.freeze(Object.defineProperty({__proto__:null,default:sn,extendSxProp:wl,unstable_createStyleFunctionSx:xl,unstable_defaultSxConfig:an},Symbol.toStringTag,{value:"Module"})),Cs=e=>e,Wh=()=>{let e=Cs;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Cs}}},Rl=Wh();function jl(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=jl(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=jl(e))&&(n&&(n+=" "),n+=t);return n}const Hh={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 cn(e,t,r="Mui"){const n=Hh[t];return n?`${r}-${n}`:`${Rl.generate(e)}-${t}`}function Cl(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=cn(e,o,r)}),n}var na={exports:{}},ae={};/**
|
|
45
|
+
`)),()=>{})}function ja(e){return on(e,"spacing",8,"spacing")}function Kt(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 nh(e,t){return r=>e.reduce((n,o)=>(n[o]=Kt(t,r),n),{})}function oh(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=th(r),a=nh(o,n),i=e[r];return it(e,i,a)}function Sl(e,t){const r=ja(e.theme);return Object.keys(e).map(n=>oh(e,t,n,r)).reduce(Vr,{})}function me(e){return Sl(e,ao)}me.propTypes=process.env.NODE_ENV!=="production"?ao.reduce((e,t)=>(e[t]=Dt,e),{}):{};me.filterProps=ao;function pe(e){return Sl(e,so)}pe.propTypes=process.env.NODE_ENV!=="production"?so.reduce((e,t)=>(e[t]=Dt,e),{}):{};pe.filterProps=so;process.env.NODE_ENV!=="production"&&rh.reduce((e,t)=>(e[t]=Dt,e),{});function ah(e=8){if(e.mui)return e;const t=ja({spacing:e}),r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" "));return r.mui=!0,r}function io(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?Vr(o,t[a](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Qe(e){return typeof e!="number"?e:`${e}px solid`}function nt(e,t){return _e({prop:e,themeKey:"borders",transform:t})}const sh=nt("border",Qe),ih=nt("borderTop",Qe),lh=nt("borderRight",Qe),ch=nt("borderBottom",Qe),uh=nt("borderLeft",Qe),dh=nt("borderColor"),fh=nt("borderTopColor"),hh=nt("borderRightColor"),mh=nt("borderBottomColor"),ph=nt("borderLeftColor"),gh=nt("outline",Qe),yh=nt("outlineColor"),lo=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=on(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Kt(t,n)});return it(e,e.borderRadius,r)}return null};lo.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Dt}:{};lo.filterProps=["borderRadius"];io(sh,ih,lh,ch,uh,dh,fh,hh,mh,ph,lo,gh,yh);const co=e=>{if(e.gap!==void 0&&e.gap!==null){const t=on(e.theme,"spacing",8,"gap"),r=n=>({gap:Kt(t,n)});return it(e,e.gap,r)}return null};co.propTypes=process.env.NODE_ENV!=="production"?{gap:Dt}:{};co.filterProps=["gap"];const uo=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=on(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Kt(t,n)});return it(e,e.columnGap,r)}return null};uo.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Dt}:{};uo.filterProps=["columnGap"];const fo=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=on(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Kt(t,n)});return it(e,e.rowGap,r)}return null};fo.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Dt}:{};fo.filterProps=["rowGap"];const _h=_e({prop:"gridColumn"}),bh=_e({prop:"gridRow"}),Sh=_e({prop:"gridAutoFlow"}),xh=_e({prop:"gridAutoColumns"}),vh=_e({prop:"gridAutoRows"}),wh=_e({prop:"gridTemplateColumns"}),Rh=_e({prop:"gridTemplateRows"}),jh=_e({prop:"gridTemplateAreas"}),Ch=_e({prop:"gridArea"});io(co,uo,fo,_h,bh,Sh,xh,vh,wh,Rh,jh,Ch);function gr(e,t){return t==="grey"?t:e}const Ah=_e({prop:"color",themeKey:"palette",transform:gr}),Ph=_e({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gr}),Oh=_e({prop:"backgroundColor",themeKey:"palette",transform:gr});io(Ah,Ph,Oh);function Ge(e){return e<=1&&e!==0?`${e*100}%`:e}const Th=_e({prop:"width",transform:Ge}),Ca=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||Ra[r];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Ge(r)}};return it(e,e.maxWidth,t)}return null};Ca.filterProps=["maxWidth"];const Mh=_e({prop:"minWidth",transform:Ge}),Ih=_e({prop:"height",transform:Ge}),Eh=_e({prop:"maxHeight",transform:Ge}),Lh=_e({prop:"minHeight",transform:Ge});_e({prop:"size",cssProperty:"width",transform:Ge});_e({prop:"size",cssProperty:"height",transform:Ge});const kh=_e({prop:"boxSizing"});io(Th,Ca,Mh,Ih,Eh,Lh,kh);const an={border:{themeKey:"borders",transform:Qe},borderTop:{themeKey:"borders",transform:Qe},borderRight:{themeKey:"borders",transform:Qe},borderBottom:{themeKey:"borders",transform:Qe},borderLeft:{themeKey:"borders",transform:Qe},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Qe},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:lo},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:me},mt:{style:me},mr:{style:me},mb:{style:me},ml:{style:me},mx:{style:me},my:{style:me},margin:{style:me},marginTop:{style:me},marginRight:{style:me},marginBottom:{style:me},marginLeft:{style:me},marginX:{style:me},marginY:{style:me},marginInline:{style:me},marginInlineStart:{style:me},marginInlineEnd:{style:me},marginBlock:{style:me},marginBlockStart:{style:me},marginBlockEnd:{style:me},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:co},rowGap:{style:fo},columnGap:{style:uo},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ge},maxWidth:{style:Ca},minWidth:{transform:Ge},height:{transform:Ge},maxHeight:{transform:Ge},minHeight:{transform:Ge},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function $h(...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 Nh(e,t){return typeof e=="function"?e(t):e}function xl(){function e(r,n,o,a){const i={[r]:n,theme:o},l=a[r];if(!l)return{[r]:n};const{cssProperty:c=r,themeKey:u,transform:d,style:h}=l;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const f=oo(o,u)||{};return h?h(i):it(i,n,y=>{let _=Bn(f,d,y);return y===_&&typeof y=="string"&&(_=Bn(f,d,`${r}${y==="default"?"":Oe(y)}`,y)),c===!1?_:{[c]:_}})}function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=(n=a.unstable_sxConfig)!=null?n:an;function l(c){let u=c;if(typeof c=="function")u=c(a);else if(typeof c!="object")return c;if(!u)return null;const d=_l(a.breakpoints),h=Object.keys(d);let f=d;return Object.keys(u).forEach(b=>{const y=Nh(u[b],a);if(y!=null)if(typeof y=="object")if(i[b])f=Vr(f,e(b,y,a,i));else{const _=it({theme:a},y,g=>({[b]:g}));$h(_,y)?f[b]=t({sx:y,theme:a}):f=Vr(f,_)}else f=Vr(f,e(b,y,a,i))}),bl(h,f)}return Array.isArray(o)?o.map(l):l(o)}return t}const sn=xl();sn.filterProps=["sx"];function vl(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 Fh=["breakpoints","palette","spacing","shape"];function ln(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=Ue(e,Fh),l=yl(r),c=ah(o);let u=tt({breakpoints:l,direction:"ltr",components:{},palette:A({mode:"light"},n),spacing:c,shape:A({},Kf,a)},i);return u.applyStyles=vl,u=t.reduce((d,h)=>tt(d,h),u),u.unstable_sxConfig=A({},an,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(h){return sn({sx:h,theme:this})},u}const Dh=Object.freeze(Object.defineProperty({__proto__:null,default:ln,private_createBreakpoints:yl,unstable_applyStyles:vl},Symbol.toStringTag,{value:"Module"}));function Uh(e){return Object.keys(e).length===0}function Bh(e=null){const t=N.useContext(mr.ThemeContext);return!t||Uh(t)?e:t}const Jh=ln();function Vh(e=Jh){return Bh(e)}const Gh=["sx"],zh=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:an;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function wl(e){const{sx:t}=e,r=Ue(e,Gh),{systemProps:n,otherProps:o}=zh(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const l=t(...i);return wt(l)?A({},n,l):n}:a=A({},n,t),A({},o,{sx:a})}const Wh=Object.freeze(Object.defineProperty({__proto__:null,default:sn,extendSxProp:wl,unstable_createStyleFunctionSx:xl,unstable_defaultSxConfig:an},Symbol.toStringTag,{value:"Module"})),Cs=e=>e,Hh=()=>{let e=Cs;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Cs}}},Rl=Hh();function jl(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=jl(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=jl(e))&&(n&&(n+=" "),n+=t);return n}const Kh={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 cn(e,t,r="Mui"){const n=Kh[t];return n?`${r}-${n}`:`${Rl.generate(e)}-${t}`}function Cl(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=cn(e,o,r)}),n}var na={exports:{}},ae={};/**
|
|
46
46
|
* @license React
|
|
47
47
|
* react-is.production.min.js
|
|
48
48
|
*
|
|
@@ -50,7 +50,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
50
50
|
*
|
|
51
51
|
* This source code is licensed under the MIT license found in the
|
|
52
52
|
* LICENSE file in the root directory of this source tree.
|
|
53
|
-
*/var As;function
|
|
53
|
+
*/var As;function Xh(){if(As)return ae;As=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function _(g){if(typeof g=="object"&&g!==null){var v=g.$$typeof;switch(v){case e:switch(g=g.type,g){case r:case o:case n:case u:case d:return g;default:switch(g=g&&g.$$typeof,g){case l:case i:case c:case f:case h:case a:return g;default:return v}}case t:return v}}}return ae.ContextConsumer=i,ae.ContextProvider=a,ae.Element=e,ae.ForwardRef=c,ae.Fragment=r,ae.Lazy=f,ae.Memo=h,ae.Portal=t,ae.Profiler=o,ae.StrictMode=n,ae.Suspense=u,ae.SuspenseList=d,ae.isAsyncMode=function(){return!1},ae.isConcurrentMode=function(){return!1},ae.isContextConsumer=function(g){return _(g)===i},ae.isContextProvider=function(g){return _(g)===a},ae.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},ae.isForwardRef=function(g){return _(g)===c},ae.isFragment=function(g){return _(g)===r},ae.isLazy=function(g){return _(g)===f},ae.isMemo=function(g){return _(g)===h},ae.isPortal=function(g){return _(g)===t},ae.isProfiler=function(g){return _(g)===o},ae.isStrictMode=function(g){return _(g)===n},ae.isSuspense=function(g){return _(g)===u},ae.isSuspenseList=function(g){return _(g)===d},ae.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===o||g===n||g===u||g===d||g===b||typeof g=="object"&&g!==null&&(g.$$typeof===f||g.$$typeof===h||g.$$typeof===a||g.$$typeof===i||g.$$typeof===c||g.$$typeof===y||g.getModuleId!==void 0)},ae.typeOf=_,ae}var se={};/**
|
|
54
54
|
* @license React
|
|
55
55
|
* react-is.development.js
|
|
56
56
|
*
|
|
@@ -58,11 +58,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
58
58
|
*
|
|
59
59
|
* This source code is licensed under the MIT license found in the
|
|
60
60
|
* LICENSE file in the root directory of this source tree.
|
|
61
|
-
*/var Ps;function
|
|
61
|
+
*/var Ps;function qh(){return Ps||(Ps=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y=!1,_=!1,g=!1,v=!1,R=!1,C;C=Symbol.for("react.module.reference");function k(M){return!!(typeof M=="string"||typeof M=="function"||M===r||M===o||R||M===n||M===u||M===d||v||M===b||y||_||g||typeof M=="object"&&M!==null&&(M.$$typeof===f||M.$$typeof===h||M.$$typeof===a||M.$$typeof===i||M.$$typeof===c||M.$$typeof===C||M.getModuleId!==void 0))}function j(M){if(typeof M=="object"&&M!==null){var ee=M.$$typeof;switch(ee){case e:var he=M.type;switch(he){case r:case o:case n:case u:case d:return he;default:var Le=he&&he.$$typeof;switch(Le){case l:case i:case c:case f:case h:case a:return Le;default:return ee}}case t:return ee}}}var P=i,O=a,z=e,le=c,ue=r,D=f,X=h,G=t,Y=o,K=n,we=u,ce=d,Q=!1,Ae=!1;function Ee(M){return Q||(Q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ot(M){return Ae||(Ae=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function bt(M){return j(M)===i}function Ke(M){return j(M)===a}function Re(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function Ot(M){return j(M)===c}function ct(M){return j(M)===r}function Xe(M){return j(M)===f}function Be(M){return j(M)===h}function ut(M){return j(M)===t}function dt(M){return j(M)===o}function Ut(M){return j(M)===n}function St(M){return j(M)===u}function Je(M){return j(M)===d}se.ContextConsumer=P,se.ContextProvider=O,se.Element=z,se.ForwardRef=le,se.Fragment=ue,se.Lazy=D,se.Memo=X,se.Portal=G,se.Profiler=Y,se.StrictMode=K,se.Suspense=we,se.SuspenseList=ce,se.isAsyncMode=Ee,se.isConcurrentMode=ot,se.isContextConsumer=bt,se.isContextProvider=Ke,se.isElement=Re,se.isForwardRef=Ot,se.isFragment=ct,se.isLazy=Xe,se.isMemo=Be,se.isPortal=ut,se.isProfiler=dt,se.isStrictMode=Ut,se.isSuspense=St,se.isSuspenseList=Je,se.isValidElementType=k,se.typeOf=j}()),se}process.env.NODE_ENV==="production"?na.exports=Xh():na.exports=qh();var Os=na.exports;const Yh=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Al(e){const t=`${e}`.match(Yh);return t&&t[1]||""}function Pl(e,t=""){return e.displayName||e.name||Al(e)||t}function Ts(e,t,r){const n=Pl(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Ol(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Pl(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Os.ForwardRef:return Ts(e,e.render,"ForwardRef");case Os.Memo:return Ts(e,e.type,"memo");default:return}}}const Zh=Object.freeze(Object.defineProperty({__proto__:null,default:Ol,getFunctionName:Al},Symbol.toStringTag,{value:"Module"})),Qh=["ownerState"],em=["variants"],tm=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function rm(e){return Object.keys(e).length===0}function nm(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ko(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const om=ln(),Ms=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function gn({defaultTheme:e,theme:t,themeId:r}){return rm(t)?e:t[r]||t}function am(e){return e?(t,r)=>r[e]:null}function On(e,t){let{ownerState:r}=t,n=Ue(t,Qh);const o=typeof e=="function"?e(A({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>On(a,A({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let l=Ue(o,em);return a.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props(A({ownerState:r},n,r)):Object.keys(c.props).forEach(d=>{(r==null?void 0:r[d])!==c.props[d]&&n[d]!==c.props[d]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style(A({ownerState:r},n,r)):c.style))}),l}return o}function sm(e={}){const{themeId:t,defaultTheme:r=om,rootShouldForwardProp:n=ko,slotShouldForwardProp:o=ko}=e,a=i=>sn(A({},i,{theme:gn(A({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,l={})=>{pl(i,j=>j.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:h,overridesResolver:f=am(Ms(u))}=l,b=Ue(l,tm),y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,_=h||!1;let g;process.env.NODE_ENV!=="production"&&c&&(g=`${c}-${Ms(u||"Root")}`);let v=ko;u==="Root"||u==="root"?v=n:u?v=o:nm(i)&&(v=void 0);const R=ml(i,A({shouldForwardProp:v,label:g},b)),C=j=>typeof j=="function"&&j.__emotion_real!==j||wt(j)?P=>On(j,A({},P,{theme:gn({theme:P.theme,defaultTheme:r,themeId:t})})):j,k=(j,...P)=>{let O=C(j);const z=P?P.map(C):[];c&&f&&z.push(D=>{const X=gn(A({},D,{defaultTheme:r,themeId:t}));if(!X.components||!X.components[c]||!X.components[c].styleOverrides)return null;const G=X.components[c].styleOverrides,Y={};return Object.entries(G).forEach(([K,we])=>{Y[K]=On(we,A({},D,{theme:X}))}),f(D,Y)}),c&&!y&&z.push(D=>{var X;const G=gn(A({},D,{defaultTheme:r,themeId:t})),Y=G==null||(X=G.components)==null||(X=X[c])==null?void 0:X.variants;return On({variants:Y},A({},D,{theme:G}))}),_||z.push(a);const le=z.length-P.length;if(Array.isArray(j)&&le>0){const D=new Array(le).fill("");O=[...j,...D],O.raw=[...j.raw,...D]}const ue=R(O,...z);if(process.env.NODE_ENV!=="production"){let D;c&&(D=`${c}${Oe(u||"")}`),D===void 0&&(D=`Styled(${Ol(i)})`),ue.displayName=D}return i.muiName&&(ue.muiName=i.muiName),ue};return R.withConfig&&(k.withConfig=R.withConfig),k}}const im=sm();function Jn(e,t){const r=A({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=A({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=o:!o||!Object.keys(o)?r[n]=a:(r[n]=A({},a),Object.keys(o).forEach(i=>{r[n][i]=Jn(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function lm(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Jn(t.components[r].defaultProps,n)}function cm({props:e,name:t,defaultTheme:r,themeId:n}){let o=Vh(r);return n&&(o=o[n]||o),lm({theme:o,name:t,props:e})}const Aa=typeof window<"u"?N.useLayoutEffect:N.useEffect;function hr(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const um=Object.freeze(Object.defineProperty({__proto__:null,default:hr},Symbol.toStringTag,{value:"Module"}));function Is(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function dm(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function fm(e,t=166){let r;function n(...o){const a=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function hm(e,t){return process.env.NODE_ENV==="production"?()=>null:(r,n,o,a,i)=>{const l=o||"<<anonymous>>",c=i||n;return typeof r[n]<"u"?new Error(`The ${a} \`${c}\` of \`${l}\` is deprecated. ${t}`):null}}function mm(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 yr(e){return e&&e.ownerDocument||document}function pm(e){return yr(e).defaultView||window}function gm(e,t){if(process.env.NODE_ENV==="production")return()=>null;const r=t?A({},t.propTypes):null;return o=>(a,i,l,c,u,...d)=>{const h=u||i,f=r==null?void 0:r[h];if(f){const b=f(a,i,l,c,u,...d);if(b)return b}return typeof a[i]<"u"&&!a[o]?new Error(`The prop \`${h}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}function Tl(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Es=0;function ym(e){const[t,r]=N.useState(e),n=e||t;return N.useEffect(()=>{t==null&&(Es+=1,r(`mui-${Es}`))},[t]),n}const Ls=N.useId;function _m(e){if(Ls!==void 0){const t=Ls();return e??t}return ym(e)}function bm(e,t,r,n,o){if(process.env.NODE_ENV==="production")return null;const a=o||t;return typeof e[t]<"u"?new Error(`The prop \`${a}\` is not supported. Please remove it.`):null}function Ml({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=N.useRef(e!==void 0),[a,i]=N.useState(t),l=o?e:a;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(`
|
|
62
62
|
`))},[n,r,e]);const{current:u}=N.useRef(t);N.useEffect(()=>{!o&&!Object.is(u,t)&&console.error([`MUI: A component is changing the default ${n} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
|
|
63
|
-
`))},[JSON.stringify(t)])}const c=N.useCallback(u=>{o||i(u)},[]);return[l,c]}function Tn(e){const t=N.useRef(e);return Aa(()=>{t.current=e}),N.useRef((...r)=>(0,t.current)(...r)).current}function Vn(...e){return N.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Tl(r,t)})},e)}class Pa{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Pa}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}let ho=!0,oa=!1;const bm=new Pa,Sm={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 xm(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Sm[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function vm(e){e.metaKey||e.altKey||e.ctrlKey||(ho=!0)}function $o(){ho=!1}function wm(){this.visibilityState==="hidden"&&oa&&(ho=!0)}function Rm(e){e.addEventListener("keydown",vm,!0),e.addEventListener("mousedown",$o,!0),e.addEventListener("pointerdown",$o,!0),e.addEventListener("touchstart",$o,!0),e.addEventListener("visibilitychange",wm,!0)}function jm(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return ho||xm(t)}function Il(){const e=N.useCallback(o=>{o!=null&&Rm(o.ownerDocument)},[]),t=N.useRef(!1);function r(){return t.current?(oa=!0,bm.start(100,()=>{oa=!1}),t.current=!1,!0):!1}function n(o){return jm(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}const Cm={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Oa(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((a,i)=>{if(i){const l=t(i);l!==""&&a.push(l),r&&r[i]&&a.push(r[i])}return a},[]).join(" ")}),n}function Gr(e){return typeof e=="string"}function Am(e,t,r){return e===void 0||Gr(e)?t:A({},t,{ownerState:A({},t.ownerState,r)})}function Mn(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 ks(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 Pm(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const b=gt(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),y=A({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),_=A({},r,o,n);return b.length>0&&(_.className=b),Object.keys(y).length>0&&(_.style=y),{props:_,internalRef:void 0}}const i=Mn(A({},o,n)),l=ks(n),c=ks(o),u=t(i),d=gt(u==null?void 0:u.className,r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),h=A({},u==null?void 0:u.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),f=A({},u,r,c,l);return d.length>0&&(f.className=d),Object.keys(h).length>0&&(f.style=h),{props:f,internalRef:u.ref}}function Om(e,t,r){return typeof e=="function"?e(t,r):e}const Tm=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Lt(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=Ue(e,Tm),l=a?{}:Om(n,o),{props:c,internalRef:u}=Pm(A({},i,{externalSlotProps:l})),d=Vn(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return Am(r,A({},c,{ref:d}),o)}const Mm=N.createContext();process.env.NODE_ENV!=="production"&&(m.node,m.bool);const Im=()=>{const e=N.useContext(Mm);return e??!1},Em=N.createContext(void 0);process.env.NODE_ENV!=="production"&&(m.node,m.object);function Lm(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?Jn(o.defaultProps,n):!o.styleOverrides&&!o.variants?Jn(o,n):n}function km({props:e,name:t}){const r=N.useContext(Em);return Lm({props:e,name:t,theme:{components:r}})}const $m=["component","direction","spacing","divider","children","className","useFlexGap"],Nm=ln(),Fm=sm("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Dm(e){return lm({props:e,name:"MuiStack",defaultTheme:Nm})}function Um(e,t){const r=N.Children.toArray(e).filter(Boolean);return r.reduce((n,o,a)=>(n.push(o),a<r.length-1&&n.push(N.cloneElement(t,{key:`separator-${a}`})),n),[])}const Bm=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Jm=({ownerState:e,theme:t})=>{let r=A({display:"flex",flexDirection:"column"},it({theme:t},Lo({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=ja(t),o=Object.keys(t.breakpoints.values).reduce((c,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(c[u]=!0),c),{}),a=Lo({values:e.direction,base:o}),i=Lo({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((c,u,d)=>{if(!a[c]){const f=u>0?a[d[u-1]]:"column";a[c]=f}}),r=tt(r,it({theme:t},i,(c,u)=>e.useFlexGap?{gap:Kt(n,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Bm(u?a[u]:e.direction)}`]:Kt(n,c)}}))}return r=Kf(t.breakpoints,r),r};function Vm(e={}){const{createStyledComponent:t=Fm,useThemeProps:r=Dm,componentName:n="MuiStack"}=e,o=()=>Oa({root:["root"]},c=>cn(n,c),{}),a=t(Jm),i=N.forwardRef(function(c,u){const d=r(c),h=wl(d),{component:f="div",direction:b="column",spacing:y=0,divider:_,children:g,className:v,useFlexGap:R=!1}=h,C=Ue(h,$m),k={direction:b,spacing:y,useFlexGap:R},j=o();return s.jsx(a,A({as:f,ownerState:k,ref:u,className:gt(j.root,v)},C,{children:_?Um(g,_):g}))});return process.env.NODE_ENV!=="production"&&(i.propTypes={children:m.node,direction:m.oneOfType([m.oneOf(["column-reverse","column","row-reverse","row"]),m.arrayOf(m.oneOf(["column-reverse","column","row-reverse","row"])),m.object]),divider:m.node,spacing:m.oneOfType([m.arrayOf(m.oneOfType([m.number,m.string])),m.number,m.object,m.string]),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object])}),i}var un={},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 mo=El.exports,No={exports:{}},$s;function Gm(){return $s||($s=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var a in o)({}).hasOwnProperty.call(o,a)&&(r[a]=o[a])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(No)),No.exports}var Fo={exports:{}},Ns;function zm(){return Ns||(Ns=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(n.includes(a))continue;o[a]=r[a]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Fo)),Fo.exports}const Wm=jt(Vf),Hm=jt(Gf),Km=jt(qf),Xm=jt(Yh),qm=jt(Fh),Ym=jt(zh);var jr=mo;Object.defineProperty(un,"__esModule",{value:!0});var Zm=un.default=f0;un.shouldForwardProp=In;un.systemDefaultTheme=void 0;var Ze=jr(Gm()),aa=jr(zm()),Fs=i0(Wm),Qm=Hm,e0=jr(Km),t0=jr(Xm),r0=jr(qm),n0=jr(Ym);const o0=["ownerState"],a0=["variants"],s0=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Ll(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Ll=function(n){return n?r:t})(e)}function i0(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Ll(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function l0(e){return Object.keys(e).length===0}function c0(e){return typeof e=="string"&&e.charCodeAt(0)>96}function In(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const u0=un.systemDefaultTheme=(0,r0.default)(),Ds=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function yn({defaultTheme:e,theme:t,themeId:r}){return l0(t)?e:t[r]||t}function d0(e){return e?(t,r)=>r[e]:null}function En(e,t){let{ownerState:r}=t,n=(0,aa.default)(t,o0);const o=typeof e=="function"?e((0,Ze.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>En(a,(0,Ze.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let l=(0,aa.default)(o,a0);return a.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props((0,Ze.default)({ownerState:r},n,r)):Object.keys(c.props).forEach(d=>{(r==null?void 0:r[d])!==c.props[d]&&n[d]!==c.props[d]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style((0,Ze.default)({ownerState:r},n,r)):c.style))}),l}return o}function f0(e={}){const{themeId:t,defaultTheme:r=u0,rootShouldForwardProp:n=In,slotShouldForwardProp:o=In}=e,a=i=>(0,n0.default)((0,Ze.default)({},i,{theme:yn((0,Ze.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,l={})=>{(0,Fs.internal_processStyles)(i,j=>j.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:h,overridesResolver:f=d0(Ds(u))}=l,b=(0,aa.default)(l,s0),y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,_=h||!1;let g;process.env.NODE_ENV!=="production"&&c&&(g=`${c}-${Ds(u||"Root")}`);let v=In;u==="Root"||u==="root"?v=n:u?v=o:c0(i)&&(v=void 0);const R=(0,Fs.default)(i,(0,Ze.default)({shouldForwardProp:v,label:g},b)),C=j=>typeof j=="function"&&j.__emotion_real!==j||(0,Qm.isPlainObject)(j)?P=>En(j,(0,Ze.default)({},P,{theme:yn({theme:P.theme,defaultTheme:r,themeId:t})})):j,k=(j,...P)=>{let O=C(j);const z=P?P.map(C):[];c&&f&&z.push(D=>{const X=yn((0,Ze.default)({},D,{defaultTheme:r,themeId:t}));if(!X.components||!X.components[c]||!X.components[c].styleOverrides)return null;const G=X.components[c].styleOverrides,Y={};return Object.entries(G).forEach(([K,we])=>{Y[K]=En(we,(0,Ze.default)({},D,{theme:X}))}),f(D,Y)}),c&&!y&&z.push(D=>{var X;const G=yn((0,Ze.default)({},D,{defaultTheme:r,themeId:t})),Y=G==null||(X=G.components)==null||(X=X[c])==null?void 0:X.variants;return En({variants:Y},(0,Ze.default)({},D,{theme:G}))}),_||z.push(a);const le=z.length-P.length;if(Array.isArray(j)&&le>0){const D=new Array(le).fill("");O=[...j,...D],O.raw=[...j.raw,...D]}const ue=R(O,...z);if(process.env.NODE_ENV!=="production"){let D;c&&(D=`${c}${(0,e0.default)(u||"")}`),D===void 0&&(D=`Styled(${(0,t0.default)(i)})`),ue.displayName=D}return i.muiName&&(ue.muiName=i.muiName),ue};return R.withConfig&&(k.withConfig=R.withConfig),k}}function h0(e,t){return A({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var be={};const m0=jt(df),p0=jt(cm);var kl=mo;Object.defineProperty(be,"__esModule",{value:!0});var Us=be.alpha=Dl;be.blend=j0;be.colorChannel=void 0;var sa=be.darken=Ma;be.decomposeColor=rt;be.emphasize=Ul;var Bs=be.getContrastRatio=S0;be.getLuminance=Gn;be.hexToRgb=$l;be.hslToRgb=Fl;var ia=be.lighten=Ia;be.private_safeAlpha=x0;be.private_safeColorChannel=void 0;be.private_safeDarken=v0;be.private_safeEmphasize=R0;be.private_safeLighten=w0;be.recomposeColor=Cr;be.rgbToHex=b0;var Js=kl(m0),g0=kl(p0);function Ta(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,g0.default)(e,t,r)}function $l(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 y0(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function rt(e){if(e.type)return e;if(e.charAt(0)==="#")return rt($l(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.
|
|
63
|
+
`))},[JSON.stringify(t)])}const c=N.useCallback(u=>{o||i(u)},[]);return[l,c]}function Tn(e){const t=N.useRef(e);return Aa(()=>{t.current=e}),N.useRef((...r)=>(0,t.current)(...r)).current}function Vn(...e){return N.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Tl(r,t)})},e)}class Pa{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Pa}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}let ho=!0,oa=!1;const Sm=new Pa,xm={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 vm(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&xm[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function wm(e){e.metaKey||e.altKey||e.ctrlKey||(ho=!0)}function $o(){ho=!1}function Rm(){this.visibilityState==="hidden"&&oa&&(ho=!0)}function jm(e){e.addEventListener("keydown",wm,!0),e.addEventListener("mousedown",$o,!0),e.addEventListener("pointerdown",$o,!0),e.addEventListener("touchstart",$o,!0),e.addEventListener("visibilitychange",Rm,!0)}function Cm(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return ho||vm(t)}function Il(){const e=N.useCallback(o=>{o!=null&&jm(o.ownerDocument)},[]),t=N.useRef(!1);function r(){return t.current?(oa=!0,Sm.start(100,()=>{oa=!1}),t.current=!1,!0):!1}function n(o){return Cm(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}const Am={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Oa(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((a,i)=>{if(i){const l=t(i);l!==""&&a.push(l),r&&r[i]&&a.push(r[i])}return a},[]).join(" ")}),n}function Gr(e){return typeof e=="string"}function Pm(e,t,r){return e===void 0||Gr(e)?t:A({},t,{ownerState:A({},t.ownerState,r)})}function Mn(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 ks(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 Om(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const b=gt(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),y=A({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),_=A({},r,o,n);return b.length>0&&(_.className=b),Object.keys(y).length>0&&(_.style=y),{props:_,internalRef:void 0}}const i=Mn(A({},o,n)),l=ks(n),c=ks(o),u=t(i),d=gt(u==null?void 0:u.className,r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),h=A({},u==null?void 0:u.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),f=A({},u,r,c,l);return d.length>0&&(f.className=d),Object.keys(h).length>0&&(f.style=h),{props:f,internalRef:u.ref}}function Tm(e,t,r){return typeof e=="function"?e(t,r):e}const Mm=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Lt(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=Ue(e,Mm),l=a?{}:Tm(n,o),{props:c,internalRef:u}=Om(A({},i,{externalSlotProps:l})),d=Vn(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return Pm(r,A({},c,{ref:d}),o)}const Im=N.createContext();process.env.NODE_ENV!=="production"&&(m.node,m.bool);const Em=()=>{const e=N.useContext(Im);return e??!1},Lm=N.createContext(void 0);process.env.NODE_ENV!=="production"&&(m.node,m.object);function km(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?Jn(o.defaultProps,n):!o.styleOverrides&&!o.variants?Jn(o,n):n}function $m({props:e,name:t}){const r=N.useContext(Lm);return km({props:e,name:t,theme:{components:r}})}const Nm=["component","direction","spacing","divider","children","className","useFlexGap"],Fm=ln(),Dm=im("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Um(e){return cm({props:e,name:"MuiStack",defaultTheme:Fm})}function Bm(e,t){const r=N.Children.toArray(e).filter(Boolean);return r.reduce((n,o,a)=>(n.push(o),a<r.length-1&&n.push(N.cloneElement(t,{key:`separator-${a}`})),n),[])}const Jm=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Vm=({ownerState:e,theme:t})=>{let r=A({display:"flex",flexDirection:"column"},it({theme:t},Lo({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=ja(t),o=Object.keys(t.breakpoints.values).reduce((c,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(c[u]=!0),c),{}),a=Lo({values:e.direction,base:o}),i=Lo({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((c,u,d)=>{if(!a[c]){const f=u>0?a[d[u-1]]:"column";a[c]=f}}),r=tt(r,it({theme:t},i,(c,u)=>e.useFlexGap?{gap:Kt(n,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Jm(u?a[u]:e.direction)}`]:Kt(n,c)}}))}return r=Xf(t.breakpoints,r),r};function Gm(e={}){const{createStyledComponent:t=Dm,useThemeProps:r=Um,componentName:n="MuiStack"}=e,o=()=>Oa({root:["root"]},c=>cn(n,c),{}),a=t(Vm),i=N.forwardRef(function(c,u){const d=r(c),h=wl(d),{component:f="div",direction:b="column",spacing:y=0,divider:_,children:g,className:v,useFlexGap:R=!1}=h,C=Ue(h,Nm),k={direction:b,spacing:y,useFlexGap:R},j=o();return s.jsx(a,A({as:f,ownerState:k,ref:u,className:gt(j.root,v)},C,{children:_?Bm(g,_):g}))});return process.env.NODE_ENV!=="production"&&(i.propTypes={children:m.node,direction:m.oneOfType([m.oneOf(["column-reverse","column","row-reverse","row"]),m.arrayOf(m.oneOf(["column-reverse","column","row-reverse","row"])),m.object]),divider:m.node,spacing:m.oneOfType([m.arrayOf(m.oneOfType([m.number,m.string])),m.number,m.object,m.string]),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object])}),i}var un={},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 mo=El.exports,No={exports:{}},$s;function zm(){return $s||($s=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var a in o)({}).hasOwnProperty.call(o,a)&&(r[a]=o[a])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(No)),No.exports}var Fo={exports:{}},Ns;function Wm(){return Ns||(Ns=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(n.includes(a))continue;o[a]=r[a]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Fo)),Fo.exports}const Hm=jt(Gf),Km=jt(zf),Xm=jt(Yf),qm=jt(Zh),Ym=jt(Dh),Zm=jt(Wh);var jr=mo;Object.defineProperty(un,"__esModule",{value:!0});var Qm=un.default=h0;un.shouldForwardProp=In;un.systemDefaultTheme=void 0;var Ze=jr(zm()),aa=jr(Wm()),Fs=l0(Hm),e0=Km,t0=jr(Xm),r0=jr(qm),n0=jr(Ym),o0=jr(Zm);const a0=["ownerState"],s0=["variants"],i0=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Ll(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Ll=function(n){return n?r:t})(e)}function l0(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Ll(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function c0(e){return Object.keys(e).length===0}function u0(e){return typeof e=="string"&&e.charCodeAt(0)>96}function In(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const d0=un.systemDefaultTheme=(0,n0.default)(),Ds=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function yn({defaultTheme:e,theme:t,themeId:r}){return c0(t)?e:t[r]||t}function f0(e){return e?(t,r)=>r[e]:null}function En(e,t){let{ownerState:r}=t,n=(0,aa.default)(t,a0);const o=typeof e=="function"?e((0,Ze.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>En(a,(0,Ze.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let l=(0,aa.default)(o,s0);return a.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props((0,Ze.default)({ownerState:r},n,r)):Object.keys(c.props).forEach(d=>{(r==null?void 0:r[d])!==c.props[d]&&n[d]!==c.props[d]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style((0,Ze.default)({ownerState:r},n,r)):c.style))}),l}return o}function h0(e={}){const{themeId:t,defaultTheme:r=d0,rootShouldForwardProp:n=In,slotShouldForwardProp:o=In}=e,a=i=>(0,o0.default)((0,Ze.default)({},i,{theme:yn((0,Ze.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,l={})=>{(0,Fs.internal_processStyles)(i,j=>j.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:h,overridesResolver:f=f0(Ds(u))}=l,b=(0,aa.default)(l,i0),y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,_=h||!1;let g;process.env.NODE_ENV!=="production"&&c&&(g=`${c}-${Ds(u||"Root")}`);let v=In;u==="Root"||u==="root"?v=n:u?v=o:u0(i)&&(v=void 0);const R=(0,Fs.default)(i,(0,Ze.default)({shouldForwardProp:v,label:g},b)),C=j=>typeof j=="function"&&j.__emotion_real!==j||(0,e0.isPlainObject)(j)?P=>En(j,(0,Ze.default)({},P,{theme:yn({theme:P.theme,defaultTheme:r,themeId:t})})):j,k=(j,...P)=>{let O=C(j);const z=P?P.map(C):[];c&&f&&z.push(D=>{const X=yn((0,Ze.default)({},D,{defaultTheme:r,themeId:t}));if(!X.components||!X.components[c]||!X.components[c].styleOverrides)return null;const G=X.components[c].styleOverrides,Y={};return Object.entries(G).forEach(([K,we])=>{Y[K]=En(we,(0,Ze.default)({},D,{theme:X}))}),f(D,Y)}),c&&!y&&z.push(D=>{var X;const G=yn((0,Ze.default)({},D,{defaultTheme:r,themeId:t})),Y=G==null||(X=G.components)==null||(X=X[c])==null?void 0:X.variants;return En({variants:Y},(0,Ze.default)({},D,{theme:G}))}),_||z.push(a);const le=z.length-P.length;if(Array.isArray(j)&&le>0){const D=new Array(le).fill("");O=[...j,...D],O.raw=[...j.raw,...D]}const ue=R(O,...z);if(process.env.NODE_ENV!=="production"){let D;c&&(D=`${c}${(0,t0.default)(u||"")}`),D===void 0&&(D=`Styled(${(0,r0.default)(i)})`),ue.displayName=D}return i.muiName&&(ue.muiName=i.muiName),ue};return R.withConfig&&(k.withConfig=R.withConfig),k}}function m0(e,t){return A({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var be={};const p0=jt(ff),g0=jt(um);var kl=mo;Object.defineProperty(be,"__esModule",{value:!0});var Us=be.alpha=Dl;be.blend=C0;be.colorChannel=void 0;var sa=be.darken=Ma;be.decomposeColor=rt;be.emphasize=Ul;var Bs=be.getContrastRatio=x0;be.getLuminance=Gn;be.hexToRgb=$l;be.hslToRgb=Fl;var ia=be.lighten=Ia;be.private_safeAlpha=v0;be.private_safeColorChannel=void 0;be.private_safeDarken=w0;be.private_safeEmphasize=j0;be.private_safeLighten=R0;be.recomposeColor=Cr;be.rgbToHex=S0;var Js=kl(p0),y0=kl(g0);function Ta(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,y0.default)(e,t,r)}function $l(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 _0(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function rt(e){if(e.type)return e;if(e.charAt(0)==="#")return rt($l(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.
|
|
64
64
|
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,Js.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.
|
|
65
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,Js.default)(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const Nl=e=>{const t=rt(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};be.colorChannel=Nl;const
|
|
65
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,Js.default)(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const Nl=e=>{const t=rt(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};be.colorChannel=Nl;const b0=(e,t)=>{try{return Nl(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};be.private_safeColorChannel=b0;function Cr(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function S0(e){if(e.indexOf("#")===0)return e;const{values:t}=rt(e);return`#${t.map((r,n)=>_0(n===3?Math.round(255*r):r)).join("")}`}function Fl(e){e=rt(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(u,d=(u+r/30)%12)=>o-a*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const c=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),Cr({type:l,values:c})}function Gn(e){e=rt(e);let t=e.type==="hsl"||e.type==="hsla"?rt(Fl(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 x0(e,t){const r=Gn(e),n=Gn(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Dl(e,t){return e=rt(e),t=Ta(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Cr(e)}function v0(e,t,r){try{return Dl(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ma(e,t){if(e=rt(e),t=Ta(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 Cr(e)}function w0(e,t,r){try{return Ma(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ia(e,t){if(e=rt(e),t=Ta(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 Cr(e)}function R0(e,t,r){try{return Ia(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ul(e,t=.15){return Gn(e)>.5?Ma(e,t):Ia(e,t)}function j0(e,t,r){try{return Ul(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function C0(e,t,r,n=1){const o=(c,u)=>Math.round((c**(1/n)*(1-r)+u**(1/n)*r)**n),a=rt(e),i=rt(t),l=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return Cr({type:"rgb",values:l})}const Yr={black:"#000",white:"#fff"},A0={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"},lr={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"},cr={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"},Ur={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"},ur={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"},dr={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"},fr={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"},P0=["mode","contrastThreshold","tonalOffset"],Vs={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:Yr.white,default:Yr.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}},Do={text:{primary:Yr.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:Yr.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 Gs(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=ia(e.main,o):t==="dark"&&(e.dark=sa(e.main,a)))}function O0(e="light"){return e==="dark"?{main:ur[200],light:ur[50],dark:ur[400]}:{main:ur[700],light:ur[400],dark:ur[800]}}function T0(e="light"){return e==="dark"?{main:lr[200],light:lr[50],dark:lr[400]}:{main:lr[500],light:lr[300],dark:lr[700]}}function M0(e="light"){return e==="dark"?{main:cr[500],light:cr[300],dark:cr[700]}:{main:cr[700],light:cr[400],dark:cr[800]}}function I0(e="light"){return e==="dark"?{main:dr[400],light:dr[300],dark:dr[700]}:{main:dr[700],light:dr[500],dark:dr[900]}}function E0(e="light"){return e==="dark"?{main:fr[400],light:fr[300],dark:fr[700]}:{main:fr[800],light:fr[500],dark:fr[900]}}function L0(e="light"){return e==="dark"?{main:Ur[400],light:Ur[300],dark:Ur[700]}:{main:"#ed6c02",light:Ur[500],dark:Ur[900]}}function k0(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Ue(e,P0),a=e.primary||O0(t),i=e.secondary||T0(t),l=e.error||M0(t),c=e.info||I0(t),u=e.success||E0(t),d=e.warning||L0(t);function h(_){const g=Bs(_,Do.text.primary)>=r?Do.text.primary:Vs.text.primary;if(process.env.NODE_ENV!=="production"){const v=Bs(_,g);v<3&&console.error([`MUI: The contrast ratio of ${v}:1 for ${g} on ${_}`,"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(`
|
|
66
66
|
`))}return g}const f=({color:_,name:g,mainShade:v=500,lightShade:R=300,darkShade:C=700})=>{if(_=A({},_),!_.main&&_[v]&&(_.main=_[v]),!_.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
|
|
67
67
|
The color object needs to have a \`main\` property or a \`${v}\` property.`:Kr(11,g?` (${g})`:"",v));if(typeof _.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
|
|
68
68
|
\`color.main\` should be a string, but \`${JSON.stringify(_.main)}\` was provided instead.
|
|
@@ -77,8 +77,8 @@ const theme1 = createTheme({ palette: {
|
|
|
77
77
|
|
|
78
78
|
const theme2 = createTheme({ palette: {
|
|
79
79
|
primary: { main: green[500] },
|
|
80
|
-
} });`:Kr(12,g?` (${g})`:"",JSON.stringify(_.main)));return Gs(_,"light",R,n),Gs(_,"dark",C,n),_.contrastText||(_.contrastText=h(_.main)),_},b={dark:Do,light:Vs};return process.env.NODE_ENV!=="production"&&(b[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),tt(A({common:A({},Yr),mode:t,primary:f({color:a,name:"primary"}),secondary:f({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:d,name:"warning"}),info:f({color:c,name:"info"}),success:f({color:u,name:"success"}),grey:
|
|
81
|
-
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof i=="string"?i:Hs(i)} ${l} ${typeof c=="string"?c:Hs(c)}`).join(",")}},e,{easing:t,duration:r})}const
|
|
82
|
-
`))}f[y]={}}}};Object.keys(u.components).forEach(f=>{const b=u.components[f].styleOverrides;b&&f.indexOf("Mui")===0&&h(b,f)})}return u.unstable_sxConfig=A({},an,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(h){return sn({sx:h,theme:this})},u}const
|
|
83
|
-
`)),Rl.configure(e)}},op=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Oe,createChainedFunction:um,createSvgIcon:rp,debounce:dm,deprecatedPropType:fm,isMuiElement:hm,ownerDocument:yr,ownerWindow:mm,requirePropFactory:pm,setRef:Tl,unstable_ClassNameGenerator:np,unstable_useEnhancedEffect:Aa,unstable_useId:ym,unsupportedProp:_m,useControlled:Ml,useEventCallback:Tn,useForkRef:Vn,useIsFocusVisible:Il},Symbol.toStringTag,{value:"Module"})),ap=jt(op);var Ks;function Bl(){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=ap}(Uo)),Uo}var sp=mo;Object.defineProperty(ka,"__esModule",{value:!0});var Jl=ka.default=void 0,ip=sp(Bl()),lp=s;Jl=ka.default=(0,ip.default)((0,lp.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");var $a={},cp=mo;Object.defineProperty($a,"__esModule",{value:!0});var Vl=$a.default=void 0,up=cp(Bl()),dp=s;Vl=$a.default=(0,up.default)((0,dp.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function Xt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Gl=typeof global=="object"&&global&&global.Object===Object&&global,fp=typeof self=="object"&&self&&self.Object===Object&&self,_t=Gl||fp||Function("return this")(),Bo=function(){return _t.Date.now()},hp=/\s/;function mp(e){for(var t=e.length;t--&&hp.test(e.charAt(t)););return t}var pp=/^\s+/;function gp(e){return e&&e.slice(0,mp(e)+1).replace(pp,"")}var Nt=_t.Symbol,zl=Object.prototype,yp=zl.hasOwnProperty,_p=zl.toString,Br=Nt?Nt.toStringTag:void 0;function bp(e){var t=yp.call(e,Br),r=e[Br];try{e[Br]=void 0;var n=!0}catch{}var o=_p.call(e);return n&&(t?e[Br]=r:delete e[Br]),o}var Sp=Object.prototype,xp=Sp.toString;function vp(e){return xp.call(e)}var wp="[object Null]",Rp="[object Undefined]",Xs=Nt?Nt.toStringTag:void 0;function Zt(e){return e==null?e===void 0?Rp:wp:Xs&&Xs in Object(e)?bp(e):vp(e)}function qt(e){return e!=null&&typeof e=="object"}var jp="[object Symbol]";function po(e){return typeof e=="symbol"||qt(e)&&Zt(e)==jp}var qs=NaN,Cp=/^[-+]0x[0-9a-f]+$/i,Ap=/^0b[01]+$/i,Pp=/^0o[0-7]+$/i,Op=parseInt;function Ys(e){if(typeof e=="number")return e;if(po(e))return qs;if(Xt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Xt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=gp(e);var r=Ap.test(e);return r||Pp.test(e)?Op(e.slice(2),r?2:8):Cp.test(e)?qs:+e}var Tp="Expected a function",Mp=Math.max,Ip=Math.min;function Ep(e,t,r){var n,o,a,i,l,c,u=0,d=!1,h=!1,f=!0;if(typeof e!="function")throw new TypeError(Tp);t=Ys(t)||0,Xt(r)&&(d=!!r.leading,h="maxWait"in r,a=h?Mp(Ys(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f);function b(P){var O=n,z=o;return n=o=void 0,u=P,i=e.apply(z,O),i}function y(P){return u=P,l=setTimeout(v,t),d?b(P):i}function _(P){var O=P-c,z=P-u,le=t-O;return h?Ip(le,a-z):le}function g(P){var O=P-c,z=P-u;return c===void 0||O>=t||O<0||h&&z>=a}function v(){var P=Bo();if(g(P))return R(P);l=setTimeout(v,_(P))}function R(P){return l=void 0,f&&n?b(P):(n=o=void 0,i)}function C(){l!==void 0&&clearTimeout(l),u=0,n=c=o=l=void 0}function k(){return l===void 0?i:R(Bo())}function j(){var P=Bo(),O=g(P);if(n=arguments,o=this,c=P,O){if(l===void 0)return y(c);if(h)return clearTimeout(l),l=setTimeout(v,t),b(c)}return l===void 0&&(l=setTimeout(v,t)),i}return j.cancel=C,j.flush=k,j}var Lp="Expected a function";function kp(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(Lp);return Xt(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Ep(e,t,{leading:n,maxWait:t,trailing:o})}const Wl=en(He.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:n,getValueDegs:o,disabled:a,...i})=>{const{t:l}=Ft.useTranslation(),[c,u]=q.useState(),d=He.useLocalObservable(()=>({activeJoggingDir:null,startJogging(v){this.activeJoggingDir=v,e(v)},stopJogging(){this.activeJoggingDir=null,t()}})),h=kp(()=>{u(o())},50);wr(h);function f(v){v.button===0&&d.startJogging("-")}function b(v){v.button===0&&d.startJogging("+")}function y(v){d.stopJogging()}function _(v){v.target===v.currentTarget&&d.stopJogging()}function g(v,R=1){if(v===void 0||isNaN(v))return"";const C=l("General.degree.variable",{amount:v.toFixed(R)});return v>0&&R===0?`+${C}`:C}return s.jsxs(_r,{height:"64px",width:"100%",maxWidth:"300px",direction:"row",...i,sx:{"& .MuiIconButton-root":{width:"52px",color:"white",alignContent:"center",backgroundColor:"#38445A","&:disabled":{opacity:.5,backgroundColor:"#38445A"},"& svg":{width:"42px",height:"42px"}}},children:[s.jsx(L.IconButton,{onPointerDown:f,onPointerUp:y,onPointerOut:_,disabled:a,sx:{borderRadius:"16px 0px 0px 16px",backgroundColor:d.activeJoggingDir==="-"?"#495975":void 0},children:s.jsx(Jl,{})}),s.jsxs(_r,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{borderStyle:"solid",borderLeftWidth:0,borderRightWidth:0,borderTopWidth:"4px",borderBottomWidth:"4px",backgroundColor:"#38445A",borderColor:"#38445A",paddingLeft:"20px",paddingRight:"20px",zIndex:1},children:[s.jsx(L.Typography,{sx:{fontSize:"15px",position:"relative",top:"5px",color:"white"},children:g(c)}),s.jsx(L.Slider,{disabled:!0,"aria-label":"Joint position",min:r,max:n,value:c||0,track:!1,sx:{"& .MuiSlider-mark":{display:"none"},"& .MuiSlider-thumb":{width:"5px",height:"10px",borderRadius:"2px"},"& .MuiSlider-markLabel":{top:"20px",fontSize:"12px",color:"white"},"& .MuiSlider-rail":{backgroundColor:"#1F283A",opacity:1}},marks:r!==void 0&&n!==void 0&&[{value:r,label:g(r,0)},{value:n,label:g(n,0)}]})]}),s.jsx(L.IconButton,{onPointerDown:b,onPointerUp:y,onPointerOut:_,disabled:a,sx:{borderRadius:"0px 16px 16px 0px",backgroundColor:d.activeJoggingDir==="+"?"#495975 !important":"#38445A"},children:s.jsx(Vl,{})})]})})),$p=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeWidth:1.5,d:"M18.5 12a6 6 0 1 0-6 6"}),N.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m16.5 11 2 2.5 2-2.5"})),Np=q.forwardRef($p),Fp=({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"})),Dp=q.forwardRef(Fp),Up=({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"})),Bp=q.forwardRef(Up),Jp=({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"})),Vp=q.forwardRef(Jp),Gp=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:21,height:21,fill:"none",viewBox:"0 0 23 22",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"currentColor",d:"m21.71 16.262-1.09.346.66 2.071-2.923-1.461V9.857l-6.285-3.143V2.893L13.38 4.21l.812-.806-2.674-2.69-2.706 2.687.805.812L10.93 2.91v3.803L4.643 9.857v7.36l-2.914 1.458.657-2.067-1.09-.346-1.225 3.88 3.826 1.144.346-1.09-1.836-.583 2.874-1.436 6.22 3.109 6.217-3.11 2.877 1.439-1.831.581.345 1.09 3.82-1.143zM11.5 12.646l-4.94-2.47 4.94-2.47 4.94 2.47zm.572.993 5.143-2.572v6.083l-5.143 2.572zm-6.286-2.572 5.143 2.572v6.083L5.786 17.15z"})),zp=q.forwardRef(Gp),Wp=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:15,height:17,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"currentColor",d:"M12.9 7.667c-.133-.534-.533-1-1-1.134L10.367 6l-.4 1.267L11.5 7.8c.067 0 .133.067.133.2l1.067 4.867a.32.32 0 0 1-.133.4l-2.267 1.8c-.267.2-.333.666-.133.933s.666.333.933.133l2.267-1.8c.533-.4.733-1.133.6-1.733zM12.5 0H1.833A1.65 1.65 0 0 0 .167 1.667v1.4c0 .866.733 1.6 1.666 1.6h10.734c.866 0 1.6-.734 1.6-1.667V1.667A1.65 1.65 0 0 0 12.5 0M1.633 12.8 2.7 8c0-.067.067-.133.133-.2l1.534-.533-.4-1.2-1.534.466c-.533.2-.933.6-1 1.134L.367 12.533c-.134.667.066 1.334.6 1.734l2.266 1.8c.267.266.734.2.934-.067s.2-.733-.134-.933l-2.266-1.8c-.134-.134-.2-.267-.134-.467"})),Hp=q.forwardRef(Wp),Kp=He.observer(({store:e})=>{const{t}=Ft.useTranslation();function r(n,o){(o==="coordsys"||o==="tool")&&e.setSelectedOrientation(o)}return s.jsxs(s.Fragment,{children:[s.jsxs(L.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"8px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[s.jsxs(L.Stack,{width:"50%",children:[s.jsx(L.InputLabel,{id:"jogging-coord-select",children:"Coordinate Sys."}),s.jsx(L.Select,{labelId:"jogging-coord-select",value:e.selectedCoordSystemId,displayEmpty:!0,onChange:n=>{e.setSelectedCoordSystemId(n.target.value)},disabled:e.isLocked,children:e.coordSystems.map(n=>s.jsx(L.MenuItem,{value:n.coordinate_system,children:n.name||n.coordinate_system},n.coordinate_system))})]}),s.jsxs(L.Stack,{width:"50%",children:[s.jsx(L.InputLabel,{id:"jogging-tcp-select",children:"TCP"}),s.jsx(L.Select,{labelId:"jogging-tcp-select",value:e.selectedTcpId,onChange:n=>{e.setSelectedTcpId(n.target.value)},disabled:e.isLocked,children:e.tcps.map(n=>s.jsx(L.MenuItem,{value:n.id,children:n.id},n.id))})]})]}),s.jsxs(L.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"8px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[s.jsxs(L.Stack,{width:"35%",children:[s.jsx(L.InputLabel,{id:"orientation-select",children:t("Jogging.Cartesian.Orientation.lb")}),s.jsxs(L.ToggleButtonGroup,{value:e.selectedOrientation,onChange:r,exclusive:!0,"aria-labelledby":"orientation-select",disabled:e.isLocked,children:[s.jsx(L.ToggleButton,{value:"coordsys",children:s.jsx(zp,{})}),s.jsx(L.ToggleButton,{value:"tool",children:s.jsx(Hp,{})})]})]}),s.jsxs(L.Stack,{width:"65%",children:[s.jsx(L.InputLabel,{id:"jogging-increment-select",children:"Increment"}),s.jsxs(L.Select,{labelId:"jogging-increment-select",value:e.selectedIncrementId,onChange:n=>{e.setSelectedIncrementId(n.target.value)},disabled:e.isLocked,children:[s.jsx(L.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.discreteIncrementOptions.map(n=>s.jsx(L.MenuItem,{value:n.id,children:e.currentMotionType==="translate"?`${n.mm}mm`:`${n.degrees}°`},n.id))]})]})]})]})});function Xp(e,t,r=(n,o)=>n===o){return e.length===t.length&&e.every((n,o)=>r(n,t[o]))}const qp=2;function Hl(e,t){return e-t}function Zs(e,t){var r;const{index:n}=(r=e.reduce((o,a,i)=>{const l=Math.abs(t-a);return o===null||l<o.distance||l===o.distance?{distance:l,index:i}:o},null))!=null?r:{};return n}function _n(e,t){if(t.current!==void 0&&e.changedTouches){const r=e;for(let n=0;n<r.changedTouches.length;n+=1){const o=r.changedTouches[n];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Wn(e,t,r){return(e-t)*100/(r-t)}function Yp(e,t,r){return(r-t)*e+t}function Zp(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 Qp(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(Zp(t)))}function Qs({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(Hl)}function bn({sliderRef:e,activeIndex:t,setActive:r}){var n,o;const a=yr(e.current);if(!((n=e.current)!=null&&n.contains(a.activeElement))||Number(a==null||(o=a.activeElement)==null?void 0:o.getAttribute("data-index"))!==t){var i;(i=e.current)==null||i.querySelector(`[type="range"][data-index="${t}"]`).focus()}r&&r(t)}function Sn(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?Xp(e,t):!1}const eg={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}%`})}},tg=e=>e;let xn;function ei(){return xn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?xn=CSS.supports("touch-action","none"):xn=!0),xn}function rg(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:l=100,min:c=0,name:u,onChange:d,onChangeCommitted:h,orientation:f="horizontal",rootRef:b,scale:y=tg,step:_=1,shiftStep:g=10,tabIndex:v,value:R}=e,C=N.useRef(),[k,j]=N.useState(-1),[P,O]=N.useState(-1),[z,le]=N.useState(!1),ue=N.useRef(0),[D,X]=Ml({controlled:R,default:r??c,name:"Slider"}),G=d&&((T,E,F)=>{const W=T.nativeEvent||T,Z=new W.constructor(W.type,W);Object.defineProperty(Z,"target",{writable:!0,value:{value:E,name:u}}),d(Z,E,F)}),Y=Array.isArray(D);let K=Y?D.slice().sort(Hl):[D];K=K.map(T=>T==null?c:hr(T,c,l));const we=i===!0&&_!==null?[...Array(Math.floor((l-c)/_)+1)].map((T,E)=>({value:c+_*E})):i||[],ce=we.map(T=>T.value),{isFocusVisibleRef:Q,onBlur:Ae,onFocus:Ee,ref:ot}=Il(),[bt,Ke]=N.useState(-1),Re=N.useRef(),Ot=Vn(ot,Re),ct=Vn(b,Ot),Xe=T=>E=>{var F;const W=Number(E.currentTarget.getAttribute("data-index"));Ee(E),Q.current===!0&&Ke(W),O(W),T==null||(F=T.onFocus)==null||F.call(T,E)},Be=T=>E=>{var F;Ae(E),Q.current===!1&&Ke(-1),O(-1),T==null||(F=T.onBlur)==null||F.call(T,E)},ut=(T,E)=>{const F=Number(T.currentTarget.getAttribute("data-index")),W=K[F],Z=ce.indexOf(W);let H=E;if(we&&_==null){const Ve=ce[ce.length-1];H>Ve?H=Ve:H<ce[0]?H=ce[0]:H=H<W?ce[Z-1]:ce[Z+1]}if(H=hr(H,c,l),Y){o&&(H=hr(H,K[F-1]||-1/0,K[F+1]||1/0));const Ve=H;H=Qs({values:K,newValue:H,index:F});let qe=F;o||(qe=H.indexOf(Ve)),bn({sliderRef:Re,activeIndex:qe})}X(H),Ke(F),G&&!Sn(H,D)&&G(T,H,F),h&&h(T,H)},dt=T=>E=>{var F;if(_!==null){const W=Number(E.currentTarget.getAttribute("data-index")),Z=K[W];let H=null;(E.key==="ArrowLeft"||E.key==="ArrowDown")&&E.shiftKey||E.key==="PageDown"?H=Math.max(Z-g,c):((E.key==="ArrowRight"||E.key==="ArrowUp")&&E.shiftKey||E.key==="PageUp")&&(H=Math.min(Z+g,l)),H!==null&&(ut(E,H),E.preventDefault())}T==null||(F=T.onKeyDown)==null||F.call(T,E)};Aa(()=>{if(n&&Re.current.contains(document.activeElement)){var T;(T=document.activeElement)==null||T.blur()}},[n]),n&&k!==-1&&j(-1),n&&bt!==-1&&Ke(-1);const Ut=T=>E=>{var F;(F=T.onChange)==null||F.call(T,E),ut(E,E.target.valueAsNumber)},St=N.useRef();let Je=f;a&&f==="horizontal"&&(Je+="-reverse");const M=({finger:T,move:E=!1})=>{const{current:F}=Re,{width:W,height:Z,bottom:H,left:Ve}=F.getBoundingClientRect();let qe;Je.indexOf("vertical")===0?qe=(H-T.y)/Z:qe=(T.x-Ve)/W,Je.indexOf("-reverse")!==-1&&(qe=1-qe);let te;if(te=Yp(qe,c,l),_)te=Qp(te,_,c);else{const It=Zs(ce,te);te=ce[It]}te=hr(te,c,l);let $e=0;if(Y){E?$e=St.current:$e=Zs(K,te),o&&(te=hr(te,K[$e-1]||-1/0,K[$e+1]||1/0));const It=te;te=Qs({values:K,newValue:te,index:$e}),o&&E||($e=te.indexOf(It),St.current=$e)}return{newValue:te,activeIndex:$e}},ee=Tn(T=>{const E=_n(T,C);if(!E)return;if(ue.current+=1,T.type==="mousemove"&&T.buttons===0){he(T);return}const{newValue:F,activeIndex:W}=M({finger:E,move:!0});bn({sliderRef:Re,activeIndex:W,setActive:j}),X(F),!z&&ue.current>qp&&le(!0),G&&!Sn(F,D)&&G(T,F,W)}),he=Tn(T=>{const E=_n(T,C);if(le(!1),!E)return;const{newValue:F}=M({finger:E,move:!0});j(-1),T.type==="touchend"&&O(-1),h&&h(T,F),C.current=void 0,ke()}),Le=Tn(T=>{if(n)return;ei()||T.preventDefault();const E=T.changedTouches[0];E!=null&&(C.current=E.identifier);const F=_n(T,C);if(F!==!1){const{newValue:Z,activeIndex:H}=M({finger:F});bn({sliderRef:Re,activeIndex:H,setActive:j}),X(Z),G&&!Sn(Z,D)&&G(T,Z,H)}ue.current=0;const W=yr(Re.current);W.addEventListener("touchmove",ee,{passive:!0}),W.addEventListener("touchend",he,{passive:!0})}),ke=N.useCallback(()=>{const T=yr(Re.current);T.removeEventListener("mousemove",ee),T.removeEventListener("mouseup",he),T.removeEventListener("touchmove",ee),T.removeEventListener("touchend",he)},[he,ee]);N.useEffect(()=>{const{current:T}=Re;return T.addEventListener("touchstart",Le,{passive:ei()}),()=>{T.removeEventListener("touchstart",Le),ke()}},[ke,Le]),N.useEffect(()=>{n&&ke()},[n,ke]);const Tt=T=>E=>{var F;if((F=T.onMouseDown)==null||F.call(T,E),n||E.defaultPrevented||E.button!==0)return;E.preventDefault();const W=_n(E,C);if(W!==!1){const{newValue:H,activeIndex:Ve}=M({finger:W});bn({sliderRef:Re,activeIndex:Ve,setActive:j}),X(H),G&&!Sn(H,D)&&G(E,H,Ve)}ue.current=0;const Z=yr(Re.current);Z.addEventListener("mousemove",ee,{passive:!0}),Z.addEventListener("mouseup",he)},je=Wn(Y?K[0]:c,c,l),Mt=Wn(K[K.length-1],c,l)-je,Bt=(T={})=>{const E=Mn(T),F={onMouseDown:Tt(E||{})},W=A({},E,F);return A({},T,{ref:ct},W)},Ar=T=>E=>{var F;(F=T.onMouseOver)==null||F.call(T,E);const W=Number(E.currentTarget.getAttribute("data-index"));O(W)},Pr=T=>E=>{var F;(F=T.onMouseLeave)==null||F.call(T,E),O(-1)};return{active:k,axis:Je,axisProps:eg,dragging:z,focusedThumbIndex:bt,getHiddenInputProps:(T={})=>{var E;const F=Mn(T),W={onChange:Ut(F||{}),onFocus:Xe(F||{}),onBlur:Be(F||{}),onKeyDown:dt(F||{})},Z=A({},F,W);return A({tabIndex:v,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":y(l),"aria-valuemin":y(c),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(E=e.step)!=null?E:void 0,disabled:n},T,Z,{style:A({},Cm,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Bt,getThumbProps:(T={})=>{const E=Mn(T),F={onMouseOver:Ar(E||{}),onMouseLeave:Pr(E||{})};return A({},T,E,F)},marks:we,open:P,range:Y,rootRef:ct,trackLeap:Mt,trackOffset:je,values:K,getThumbStyle:T=>({pointerEvents:k!==-1&&k!==T?"none":void 0})}}const ng=e=>!e||!Gr(e);function og(e){return cn("MuiSlider",e)}const et=Cl("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"]),ag=e=>{const{open:t}=e;return{offset:gt(t&&et.valueLabelOpen),circle:et.valueLabelCircle,label:et.valueLabelLabel}};function Kl(e){const{children:t,className:r,value:n}=e,o=ag(e);return t?N.cloneElement(t,{className:gt(t.props.className)},s.jsxs(N.Fragment,{children:[t.props.children,s.jsx("span",{className:gt(o.offset,r),"aria-hidden":!0,children:s.jsx("span",{className:o.circle,children:s.jsx("span",{className:o.label,children:n})})})]})):null}process.env.NODE_ENV!=="production"&&(Kl.propTypes={children:m.element.isRequired,className:m.string,value:m.node});const sg=["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 ti(e){return e}const ig=Ct("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Oe(r.color)}`],r.size!=="medium"&&t[`size${Oe(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${et.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${et.dragging}`]:{[`& .${et.thumb}, & .${et.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),lg=Ct("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),cg=Ct("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r,track:"inverted"},style:A({},e.vars?{backgroundColor:e.vars.palette.Slider[`${r}Track`],borderColor:e.vars.palette.Slider[`${r}Track`]}:A({backgroundColor:ia(e.palette[r].main,.62),borderColor:ia(e.palette[r].main,.62)},e.applyStyles("dark",{backgroundColor:sa(e.palette[r].main,.5)}),e.applyStyles("dark",{borderColor:sa(e.palette[r].main,.5)})))}))]}}),ug=Ct("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${Oe(r.color)}`],r.size!=="medium"&&t[`thumbSize${Oe(r.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${et.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{[`&:hover, &.${et.focusVisible}`]:A({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Us(e.palette[r].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${et.active}`]:A({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Us(e.palette[r].main,.16)}`})}}))]}}),dg=Ct(Kl,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>A({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${et.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${et.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),fg=Ct("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Ea(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}}]})),hg=Ct("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Ea(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>A({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),mg=e=>{const{disabled:t,dragging:r,marked:n,orientation:o,track:a,classes:i,color:l,size:c}=e,u={root:["root",t&&"disabled",r&&"dragging",n&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",l&&`color${Oe(l)}`,c&&`size${Oe(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${Oe(c)}`,l&&`thumbColor${Oe(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Oa(u,og,i)},pg=({children:e})=>e,Xl=N.forwardRef(function(t,r){var n,o,a,i,l,c,u,d,h,f,b,y,_,g,v,R,C,k,j,P,O,z,le,ue;const D=La({props:t,name:"MuiSlider"}),X=Im(),{"aria-label":G,"aria-valuetext":Y,"aria-labelledby":K,component:we="span",components:ce={},componentsProps:Q={},color:Ae="primary",classes:Ee,className:ot,disableSwap:bt=!1,disabled:Ke=!1,getAriaLabel:Re,getAriaValueText:Ot,marks:ct=!1,max:Xe=100,min:Be=0,orientation:ut="horizontal",shiftStep:dt=10,size:Ut="medium",step:St=1,scale:Je=ti,slotProps:M,slots:ee,track:he="normal",valueLabelDisplay:Le="off",valueLabelFormat:ke=ti}=D,Tt=Ue(D,sg),je=A({},D,{isRtl:X,max:Xe,min:Be,classes:Ee,disabled:Ke,disableSwap:bt,orientation:ut,marks:ct,color:Ae,size:Ut,step:St,shiftStep:dt,scale:Je,track:he,valueLabelDisplay:Le,valueLabelFormat:ke}),{axisProps:Mt,getRootProps:Bt,getHiddenInputProps:Ar,getThumbProps:Pr,open:Or,active:tr,axis:at,focusedThumbIndex:T,range:E,dragging:F,marks:W,values:Z,trackOffset:H,trackLeap:Ve,getThumbStyle:qe}=rg(A({},je,{rootRef:r}));je.marked=W.length>0&&W.some($=>$.label),je.dragging=F,je.focusedThumbIndex=T;const te=mg(je),$e=(n=(o=ee==null?void 0:ee.root)!=null?o:ce.Root)!=null?n:ig,It=(a=(i=ee==null?void 0:ee.rail)!=null?i:ce.Rail)!=null?a:lg,rr=(l=(c=ee==null?void 0:ee.track)!=null?c:ce.Track)!=null?l:cg,Tr=(u=(d=ee==null?void 0:ee.thumb)!=null?d:ce.Thumb)!=null?u:ug,xt=(h=(f=ee==null?void 0:ee.valueLabel)!=null?f:ce.ValueLabel)!=null?h:dg,Jt=(b=(y=ee==null?void 0:ee.mark)!=null?y:ce.Mark)!=null?b:fg,Vt=(_=(g=ee==null?void 0:ee.markLabel)!=null?g:ce.MarkLabel)!=null?_:hg,Mr=(v=(R=ee==null?void 0:ee.input)!=null?R:ce.Input)!=null?v:"input",Ir=(C=M==null?void 0:M.root)!=null?C:Q.root,dn=(k=M==null?void 0:M.rail)!=null?k:Q.rail,Er=(j=M==null?void 0:M.track)!=null?j:Q.track,nr=(P=M==null?void 0:M.thumb)!=null?P:Q.thumb,or=(O=M==null?void 0:M.valueLabel)!=null?O:Q.valueLabel,So=(z=M==null?void 0:M.mark)!=null?z:Q.mark,xo=(le=M==null?void 0:M.markLabel)!=null?le:Q.markLabel,fn=(ue=M==null?void 0:M.input)!=null?ue:Q.input,hn=Lt({elementType:$e,getSlotProps:Bt,externalSlotProps:Ir,externalForwardedProps:Tt,additionalProps:A({},ng($e)&&{as:we}),ownerState:A({},je,Ir==null?void 0:Ir.ownerState),className:[te.root,ot]}),vo=Lt({elementType:It,externalSlotProps:dn,ownerState:je,className:te.rail}),wo=Lt({elementType:rr,externalSlotProps:Er,additionalProps:{style:A({},Mt[at].offset(H),Mt[at].leap(Ve))},ownerState:A({},je,Er==null?void 0:Er.ownerState),className:te.track}),Lr=Lt({elementType:Tr,getSlotProps:Pr,externalSlotProps:nr,ownerState:A({},je,nr==null?void 0:nr.ownerState),className:te.thumb}),Ro=Lt({elementType:xt,externalSlotProps:or,ownerState:A({},je,or==null?void 0:or.ownerState),className:te.valueLabel}),p=Lt({elementType:Jt,externalSlotProps:So,ownerState:je,className:te.mark}),w=Lt({elementType:Vt,externalSlotProps:xo,ownerState:je,className:te.markLabel}),I=Lt({elementType:Mr,getSlotProps:Ar,externalSlotProps:fn,ownerState:je});return s.jsxs($e,A({},hn,{children:[s.jsx(It,A({},vo)),s.jsx(rr,A({},wo)),W.filter($=>$.value>=Be&&$.value<=Xe).map(($,U)=>{const re=Wn($.value,Be,Xe),V=Mt[at].offset(re);let B;return he===!1?B=Z.indexOf($.value)!==-1:B=he==="normal"&&(E?$.value>=Z[0]&&$.value<=Z[Z.length-1]:$.value<=Z[0])||he==="inverted"&&(E?$.value<=Z[0]||$.value>=Z[Z.length-1]:$.value>=Z[0]),s.jsxs(N.Fragment,{children:[s.jsx(Jt,A({"data-index":U},p,!Gr(Jt)&&{markActive:B},{style:A({},V,p.style),className:gt(p.className,B&&te.markActive)})),$.label!=null?s.jsx(Vt,A({"aria-hidden":!0,"data-index":U},w,!Gr(Vt)&&{markLabelActive:B},{style:A({},V,w.style),className:gt(te.markLabel,w.className,B&&te.markLabelActive),children:$.label})):null]},U)}),Z.map(($,U)=>{const re=Wn($,Be,Xe),V=Mt[at].offset(re),B=Le==="off"?pg:xt;return s.jsx(B,A({},!Gr(B)&&{valueLabelFormat:ke,valueLabelDisplay:Le,value:typeof ke=="function"?ke(Je($),U):ke,index:U,open:Or===U||tr===U||Le==="on",disabled:Ke},Ro,{children:s.jsx(Tr,A({"data-index":U},Lr,{className:gt(te.thumb,Lr.className,tr===U&&te.active,T===U&&te.focusVisible),style:A({},V,qe(U),Lr.style),children:s.jsx(Mr,A({"data-index":U,"aria-label":Re?Re(U):G,"aria-valuenow":Je($),"aria-labelledby":K,"aria-valuetext":Ot?Ot(Je($),U):Y,value:Z[U]},I))}))}),U)})]}))});process.env.NODE_ENV!=="production"&&(Xl.propTypes={"aria-label":Is(m.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":m.string,"aria-valuetext":Is(m.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:m.node,classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["primary","secondary","error","info","success","warning"]),m.string]),components:m.shape({Input:m.elementType,Mark:m.elementType,MarkLabel:m.elementType,Rail:m.elementType,Root:m.elementType,Thumb:m.elementType,Track:m.elementType,ValueLabel:m.elementType}),componentsProps:m.shape({input:m.oneOfType([m.func,m.object]),mark:m.oneOfType([m.func,m.object]),markLabel:m.oneOfType([m.func,m.object]),rail:m.oneOfType([m.func,m.object]),root:m.oneOfType([m.func,m.object]),thumb:m.oneOfType([m.func,m.object]),track:m.oneOfType([m.func,m.object]),valueLabel:m.oneOfType([m.func,m.shape({children:m.element,className:m.string,open:m.bool,style:m.object,value:m.number,valueLabelDisplay:m.oneOf(["auto","off","on"])})])}),defaultValue:m.oneOfType([m.arrayOf(m.number),m.number]),disabled:m.bool,disableSwap:m.bool,getAriaLabel:m.func,getAriaValueText:m.func,marks:m.oneOfType([m.arrayOf(m.shape({label:m.node,value:m.number.isRequired})),m.bool]),max:m.number,min:m.number,name:m.string,onChange:m.func,onChangeCommitted:m.func,orientation:m.oneOf(["horizontal","vertical"]),scale:m.func,shiftStep:m.number,size:m.oneOfType([m.oneOf(["small","medium"]),m.string]),slotProps:m.shape({input:m.oneOfType([m.func,m.object]),mark:m.oneOfType([m.func,m.object]),markLabel:m.oneOfType([m.func,m.object]),rail:m.oneOfType([m.func,m.object]),root:m.oneOfType([m.func,m.object]),thumb:m.oneOfType([m.func,m.object]),track:m.oneOfType([m.func,m.object]),valueLabel:m.oneOfType([m.func,m.shape({children:m.element,className:m.string,open:m.bool,style:m.object,value:m.number,valueLabelDisplay:m.oneOf(["auto","off","on"])})])}),slots:m.shape({input:m.elementType,mark:m.elementType,markLabel:m.elementType,rail:m.elementType,root:m.elementType,thumb:m.elementType,track:m.elementType,valueLabel:m.elementType}),step:m.number,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),tabIndex:m.number,track:m.oneOf(["inverted","normal",!1]),value:m.oneOfType([m.arrayOf(m.number),m.number]),valueLabelDisplay:m.oneOf(["auto","off","on"]),valueLabelFormat:m.oneOfType([m.func,m.string])});var gg="[object Number]";function yg(e){return typeof e=="number"||qt(e)&&Zt(e)==gg}const ql=He.observer(e=>{const t=L.useTheme(),r=e.valueLabelFormat||(o=>`${o}`);function n(o,a){a===e.velocity||!yg(a)||e.onVelocityChange(a)}return s.jsxs(s.Fragment,{children:[s.jsx(L.Typography,{sx:{textAlign:"center",fontSize:"14px",opacity:.8,color:t.palette.text.primary},children:r(e.velocity)}),s.jsx(Xl,{value:e.velocity,onChange:n,min:e.min,max:e.max,"aria-labelledby":"input-slider",disabled:e.disabled,sx:{"& .MuiSlider-valueLabelOpen":{zIndex:100,backgroundColor:"transparent",top:"0px"}}})]})}),Yl=He.observer(({store:e})=>{const{t}=Ft.useTranslation(),r=He.useLocalObservable(()=>({get valueLabelFormat(){return e.currentMotionType==="translate"?n=>`v=${t("Jogging.Cartesian.Translation.velocityMmPerSec.lb",{amount:n})}`:n=>`v=${t("Jogging.Cartesian.Rotation.velocityDegPerSec.lb",{amount:n})}`}}));return s.jsx(L.Stack,{sx:{margin:"0px 20px",marginTop:"24px",marginBottom:"24px"},children:s.jsx(L.Stack,{sx:{width:"380px",maxWidth:"90%",margin:"auto"},children:s.jsx(ql,{velocity:e.velocityInCurrentUnits,min:e.minVelocityInCurrentUnits,max:e.maxVelocityInCurrentUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,valueLabelFormat:r.valueLabelFormat})})})}),Zl=q.forwardRef(({label:e,value:t},r)=>s.jsxs(s.Fragment,{children:[e&&s.jsx(L.InputLabel,{children:e}),s.jsx(L.Chip,{ref:r,sx:{fontSize:"14px",opacity:.8,marginTop:"4px !important"},value:t})]})),_g=He.observer(({store:e})=>{const t=q.useRef(null);function r(){const n=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose;return n?$t.poseToWandelscriptString(n):""}return wr(()=>{t.current&&(t.current.textContent=r())}),s.jsx(L.Stack,{alignItems:"left",spacing:2,sx:{padding:"8px 16px",paddingTop:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:s.jsx(Zl,{label:"Pose",value:r(),ref:t})})});function bg(){this.__data__=[],this.size=0}function Ql(e,t){return e===t||e!==e&&t!==t}function go(e,t){for(var r=e.length;r--;)if(Ql(e[r][0],t))return r;return-1}var Sg=Array.prototype,xg=Sg.splice;function vg(e){var t=this.__data__,r=go(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():xg.call(t,r,1),--this.size,!0}function wg(e){var t=this.__data__,r=go(t,e);return r<0?void 0:t[r][1]}function Rg(e){return go(this.__data__,e)>-1}function jg(e,t){var r=this.__data__,n=go(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function At(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}At.prototype.clear=bg;At.prototype.delete=vg;At.prototype.get=wg;At.prototype.has=Rg;At.prototype.set=jg;function Cg(){this.__data__=new At,this.size=0}function Ag(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Pg(e){return this.__data__.get(e)}function Og(e){return this.__data__.has(e)}var Tg="[object AsyncFunction]",Mg="[object Function]",Ig="[object GeneratorFunction]",Eg="[object Proxy]";function ec(e){if(!Xt(e))return!1;var t=Zt(e);return t==Mg||t==Ig||t==Tg||t==Eg}var Jo=_t["__core-js_shared__"],ri=function(){var e=/[^.]+$/.exec(Jo&&Jo.keys&&Jo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Lg(e){return!!ri&&ri in e}var kg=Function.prototype,$g=kg.toString;function Qt(e){if(e!=null){try{return $g.call(e)}catch{}try{return e+""}catch{}}return""}var Ng=/[\\^$.*+?()[\]{}|]/g,Fg=/^\[object .+?Constructor\]$/,Dg=Function.prototype,Ug=Object.prototype,Bg=Dg.toString,Jg=Ug.hasOwnProperty,Vg=RegExp("^"+Bg.call(Jg).replace(Ng,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Gg(e){if(!Xt(e)||Lg(e))return!1;var t=ec(e)?Vg:Fg;return t.test(Qt(e))}function zg(e,t){return e==null?void 0:e[t]}function er(e,t){var r=zg(e,t);return Gg(r)?r:void 0}var Zr=er(_t,"Map"),Qr=er(Object,"create");function Wg(){this.__data__=Qr?Qr(null):{},this.size=0}function Hg(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Kg="__lodash_hash_undefined__",Xg=Object.prototype,qg=Xg.hasOwnProperty;function Yg(e){var t=this.__data__;if(Qr){var r=t[e];return r===Kg?void 0:r}return qg.call(t,e)?t[e]:void 0}var Zg=Object.prototype,Qg=Zg.hasOwnProperty;function ey(e){var t=this.__data__;return Qr?t[e]!==void 0:Qg.call(t,e)}var ty="__lodash_hash_undefined__";function ry(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Qr&&t===void 0?ty:t,this}function Yt(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])}}Yt.prototype.clear=Wg;Yt.prototype.delete=Hg;Yt.prototype.get=Yg;Yt.prototype.has=ey;Yt.prototype.set=ry;function ny(){this.size=0,this.__data__={hash:new Yt,map:new(Zr||At),string:new Yt}}function oy(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 oy(t)?r[typeof t=="string"?"string":"hash"]:r.map}function ay(e){var t=yo(this,e).delete(e);return this.size-=t?1:0,t}function sy(e){return yo(this,e).get(e)}function iy(e){return yo(this,e).has(e)}function ly(e,t){var r=yo(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Pt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Pt.prototype.clear=ny;Pt.prototype.delete=ay;Pt.prototype.get=sy;Pt.prototype.has=iy;Pt.prototype.set=ly;var cy=200;function uy(e,t){var r=this.__data__;if(r instanceof At){var n=r.__data__;if(!Zr||n.length<cy-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Pt(n)}return r.set(e,t),this.size=r.size,this}function Rt(e){var t=this.__data__=new At(e);this.size=t.size}Rt.prototype.clear=Cg;Rt.prototype.delete=Ag;Rt.prototype.get=Pg;Rt.prototype.has=Og;Rt.prototype.set=uy;var dy="__lodash_hash_undefined__";function fy(e){return this.__data__.set(e,dy),this}function hy(e){return this.__data__.has(e)}function Hn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Pt;++t<r;)this.add(e[t])}Hn.prototype.add=Hn.prototype.push=fy;Hn.prototype.has=hy;function my(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 py(e,t){return e.has(t)}var gy=1,yy=2;function tc(e,t,r,n,o,a){var i=r&gy,l=e.length,c=t.length;if(l!=c&&!(i&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var h=-1,f=!0,b=r&yy?new Hn:void 0;for(a.set(e,t),a.set(t,e);++h<l;){var y=e[h],_=t[h];if(n)var g=i?n(_,y,h,t,e,a):n(y,_,h,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(b){if(!my(t,function(v,R){if(!py(b,R)&&(y===v||o(y,v,r,n,a)))return b.push(R)})){f=!1;break}}else if(!(y===_||o(y,_,r,n,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var ni=_t.Uint8Array;function _y(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function by(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Sy=1,xy=2,vy="[object Boolean]",wy="[object Date]",Ry="[object Error]",jy="[object Map]",Cy="[object Number]",Ay="[object RegExp]",Py="[object Set]",Oy="[object String]",Ty="[object Symbol]",My="[object ArrayBuffer]",Iy="[object DataView]",oi=Nt?Nt.prototype:void 0,Vo=oi?oi.valueOf:void 0;function Ey(e,t,r,n,o,a,i){switch(r){case Iy:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case My:return!(e.byteLength!=t.byteLength||!a(new ni(e),new ni(t)));case vy:case wy:case Cy:return Ql(+e,+t);case Ry:return e.name==t.name&&e.message==t.message;case Ay:case Oy:return e==t+"";case jy:var l=_y;case Py:var c=n&Sy;if(l||(l=by),e.size!=t.size&&!c)return!1;var u=i.get(e);if(u)return u==t;n|=xy,i.set(e,t);var d=tc(l(e),l(t),n,o,a,i);return i.delete(e),d;case Ty:if(Vo)return Vo.call(e)==Vo.call(t)}return!1}function Ly(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 ky(e,t,r){var n=t(e);return yt(e)?n:Ly(n,r(e))}function $y(e,t){for(var r=-1,n=e==null?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}function Ny(){return[]}var Fy=Object.prototype,Dy=Fy.propertyIsEnumerable,ai=Object.getOwnPropertySymbols,Uy=ai?function(e){return e==null?[]:(e=Object(e),$y(ai(e),function(t){return Dy.call(e,t)}))}:Ny;function By(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Jy="[object Arguments]";function si(e){return qt(e)&&Zt(e)==Jy}var rc=Object.prototype,Vy=rc.hasOwnProperty,Gy=rc.propertyIsEnumerable,nc=si(function(){return arguments}())?si:function(e){return qt(e)&&Vy.call(e,"callee")&&!Gy.call(e,"callee")};function zy(){return!1}var oc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ii=oc&&typeof module=="object"&&module&&!module.nodeType&&module,Wy=ii&&ii.exports===oc,li=Wy?_t.Buffer:void 0,Hy=li?li.isBuffer:void 0,ua=Hy||zy,Ky=9007199254740991,Xy=/^(?:0|[1-9]\d*)$/;function ac(e,t){var r=typeof e;return t=t??Ky,!!t&&(r=="number"||r!="symbol"&&Xy.test(e))&&e>-1&&e%1==0&&e<t}var qy=9007199254740991;function Na(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=qy}var Yy="[object Arguments]",Zy="[object Array]",Qy="[object Boolean]",e1="[object Date]",t1="[object Error]",r1="[object Function]",n1="[object Map]",o1="[object Number]",a1="[object Object]",s1="[object RegExp]",i1="[object Set]",l1="[object String]",c1="[object WeakMap]",u1="[object ArrayBuffer]",d1="[object DataView]",f1="[object Float32Array]",h1="[object Float64Array]",m1="[object Int8Array]",p1="[object Int16Array]",g1="[object Int32Array]",y1="[object Uint8Array]",_1="[object Uint8ClampedArray]",b1="[object Uint16Array]",S1="[object Uint32Array]",de={};de[f1]=de[h1]=de[m1]=de[p1]=de[g1]=de[y1]=de[_1]=de[b1]=de[S1]=!0;de[Yy]=de[Zy]=de[u1]=de[Qy]=de[d1]=de[e1]=de[t1]=de[r1]=de[n1]=de[o1]=de[a1]=de[s1]=de[i1]=de[l1]=de[c1]=!1;function x1(e){return qt(e)&&Na(e.length)&&!!de[Zt(e)]}function v1(e){return function(t){return e(t)}}var sc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zr=sc&&typeof module=="object"&&module&&!module.nodeType&&module,w1=zr&&zr.exports===sc,Go=w1&&Gl.process,ci=function(){try{var e=zr&&zr.require&&zr.require("util").types;return e||Go&&Go.binding&&Go.binding("util")}catch{}}(),ui=ci&&ci.isTypedArray,ic=ui?v1(ui):x1,R1=Object.prototype,j1=R1.hasOwnProperty;function C1(e,t){var r=yt(e),n=!r&&nc(e),o=!r&&!n&&ua(e),a=!r&&!n&&!o&&ic(e),i=r||n||o||a,l=i?By(e.length,String):[],c=l.length;for(var u in e)j1.call(e,u)&&!(i&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||ac(u,c)))&&l.push(u);return l}var A1=Object.prototype;function P1(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||A1;return e===r}function O1(e,t){return function(r){return e(t(r))}}var T1=O1(Object.keys,Object),M1=Object.prototype,I1=M1.hasOwnProperty;function E1(e){if(!P1(e))return T1(e);var t=[];for(var r in Object(e))I1.call(e,r)&&r!="constructor"&&t.push(r);return t}function lc(e){return e!=null&&Na(e.length)&&!ec(e)}function Fa(e){return lc(e)?C1(e):E1(e)}function di(e){return ky(e,Fa,Uy)}var L1=1,k1=Object.prototype,$1=k1.hasOwnProperty;function N1(e,t,r,n,o,a){var i=r&L1,l=di(e),c=l.length,u=di(t),d=u.length;if(c!=d&&!i)return!1;for(var h=c;h--;){var f=l[h];if(!(i?f in t:$1.call(t,f)))return!1}var b=a.get(e),y=a.get(t);if(b&&y)return b==t&&y==e;var _=!0;a.set(e,t),a.set(t,e);for(var g=i;++h<c;){f=l[h];var v=e[f],R=t[f];if(n)var C=i?n(R,v,f,t,e,a):n(v,R,f,e,t,a);if(!(C===void 0?v===R||o(v,R,r,n,a):C)){_=!1;break}g||(g=f=="constructor")}if(_&&!g){var k=e.constructor,j=t.constructor;k!=j&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof j=="function"&&j instanceof j)&&(_=!1)}return a.delete(e),a.delete(t),_}var da=er(_t,"DataView"),fa=er(_t,"Promise"),ha=er(_t,"Set"),ma=er(_t,"WeakMap"),fi="[object Map]",F1="[object Object]",hi="[object Promise]",mi="[object Set]",pi="[object WeakMap]",gi="[object DataView]",D1=Qt(da),U1=Qt(Zr),B1=Qt(fa),J1=Qt(ha),V1=Qt(ma),kt=Zt;(da&&kt(new da(new ArrayBuffer(1)))!=gi||Zr&&kt(new Zr)!=fi||fa&&kt(fa.resolve())!=hi||ha&&kt(new ha)!=mi||ma&&kt(new ma)!=pi)&&(kt=function(e){var t=Zt(e),r=t==F1?e.constructor:void 0,n=r?Qt(r):"";if(n)switch(n){case D1:return gi;case U1:return fi;case B1:return hi;case J1:return mi;case V1:return pi}return t});var G1=1,yi="[object Arguments]",_i="[object Array]",vn="[object Object]",z1=Object.prototype,bi=z1.hasOwnProperty;function W1(e,t,r,n,o,a){var i=yt(e),l=yt(t),c=i?_i:kt(e),u=l?_i:kt(t);c=c==yi?vn:c,u=u==yi?vn:u;var d=c==vn,h=u==vn,f=c==u;if(f&&ua(e)){if(!ua(t))return!1;i=!0,d=!1}if(f&&!d)return a||(a=new Rt),i||ic(e)?tc(e,t,r,n,o,a):Ey(e,t,c,r,n,o,a);if(!(r&G1)){var b=d&&bi.call(e,"__wrapped__"),y=h&&bi.call(t,"__wrapped__");if(b||y){var _=b?e.value():e,g=y?t.value():t;return a||(a=new Rt),o(_,g,r,n,a)}}return f?(a||(a=new Rt),N1(e,t,r,n,o,a)):!1}function _o(e,t,r,n,o){return e===t?!0:e==null||t==null||!qt(e)&&!qt(t)?e!==e&&t!==t:W1(e,t,r,n,_o,o)}function H1(e,t){return _o(e,t)}const K1=({store:e})=>{const{t}=Ft.useTranslation(),[r,n]=q.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached);wr(()=>{const a=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;H1(r,a)||n(a)});const o=[];return r.forEach((a,i)=>{a&&o.push(i)}),o.length?s.jsx(L.Typography,{color:"error",sx:{padding:"1rem",textAlign:"center"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:o.map(a=>a+1).join(", ")})}):null},X1=He.observer(({store:e})=>{const{t}=Ft.useTranslation();function r(h,f){(f==="translate"||f==="rotate")&&e.setSelectedCartesianMotionType(f)}nl(()=>[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}),q.useEffect(()=>(e.jogger.setJoggingMode("increment"),window.addEventListener("blur",o),()=>{window.removeEventListener("blur",o)}),[]);async function n(){e.jogger.setJoggingMode(e.selectedDiscreteIncrement?"increment":"cartesian",{tcpId:e.selectedTcpId,coordSystemId:e.activeCoordSystemId})}async function o(){e.jogger.setJoggingMode("increment")}async function a(h,f){const b=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose,y=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;b&&await e.withMotionLock(async()=>{await e.jogger.runIncrementalCartesianMotion({currentTcpPose:b,currentJoints:y,coordSystemId:e.activeCoordSystemId,velocityInRelevantUnits:e.velocityInCurrentUnits,axis:h.axis,direction:h.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:f.mm}:{type:"rotate",distanceRads:$t.degreesToRadians(f.degrees)}})})}async function i(h){if(!e.isLocked){if(n(),e.selectedDiscreteIncrement)return a(h,e.selectedDiscreteIncrement);h.motionType==="translate"?await e.jogger.startTCPTranslation({axis:h.axis,direction:h.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:h.axis,direction:h.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function l(){e.isLocked||e.selectedDiscreteIncrement||await e.jogger.stop()}const c=[{id:"x",color:"#F14D42",icon:s.jsx(Dp,{})},{id:"y",color:"#42A705",icon:s.jsx(Bp,{})},{id:"z",color:"#0075FF",icon:s.jsx(Vp,{})}];function u(h){return t("General.mm.variable",{amount:h.toFixed(1)})}function d(h){return t("General.degree.variable",{amount:$t.radiansToDegrees(h).toFixed(1)})}return s.jsxs(L.Stack,{onMouseEnter:n,onMouseLeave:o,children:[s.jsx(_g,{store:e}),s.jsx(Kp,{store:e}),s.jsxs(L.Stack,{width:"80%",maxWidth:"296px",margin:"auto",marginTop:"16px",children:[s.jsxs(L.ToggleButtonGroup,{value:e.selectedCartesianMotionType,onChange:r,exclusive:!0,"aria-label":t("Jogging.Cartesian.MotionType.lb"),children:[s.jsx(L.ToggleButton,{value:"translate",children:t("Jogging.Cartesian.Translation.bt")}),s.jsx(L.ToggleButton,{value:"rotate",children:t("Jogging.Cartesian.Rotation.bt")})]}),e.selectedCartesianMotionType==="translate"&&c.map(h=>s.jsx(ca,{color:h.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[h.icon,s.jsx(L.Typography,{sx:{fontSize:"24px",color:"white"},children:h.id.toUpperCase()})]}),getDisplayedValue:()=>{var f;return u(((f=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:f.position[h.id])||0)},startJogging:f=>i({axis:h.id,motionType:"translate",direction:f}),stopJogging:l},h.id)),e.selectedCartesianMotionType==="rotate"&&c.map(h=>s.jsx(ca,{color:h.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[s.jsx(Np,{}),s.jsx(L.Typography,{sx:{fontSize:"24px",color:"white"},children:h.id.toUpperCase()})]}),getDisplayedValue:()=>{var f,b;return d(((b=(f=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:f.orientation)==null?void 0:b[h.id])||0)},startJogging:f=>i({axis:h.id,motionType:"rotate",direction:f}),stopJogging:l},h.id))]}),s.jsx(Yl,{store:e}),s.jsx(K1,{store:e})]})}),q1=He.observer(({store:e})=>{const t=q.useRef(null);Ft.useTranslation();function r(){const{joints:n}=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;return`{${n.map(o=>parseFloat(o.toFixed(4))).join(", ")}}`}return wr(()=>{t.current&&(t.current.textContent=r())}),s.jsx(L.Stack,{alignItems:"left",spacing:2,sx:{padding:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:s.jsx(Zl,{label:"Pose",value:r(),ref:t})})}),Y1=He.observer(({store:e})=>{q.useEffect(()=>(e.jogger.setJoggingMode("increment"),window.addEventListener("blur",r),()=>{window.removeEventListener("blur",r)}),[]);async function t(){e.jogger.setJoggingMode("joint")}async function r(){e.jogger.setJoggingMode("increment")}async function n(a){await e.jogger.startJointRotation({joint:a.joint,direction:a.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function o(){await e.jogger.stop()}return s.jsxs(L.Stack,{onMouseEnter:t,onMouseLeave:r,children:[s.jsx(q1,{store:e}),s.jsx(L.Stack,{children:e.jogger.motionStream.joints.map(a=>{var u;const i=(u=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:u[a.index],l=(i==null?void 0:i.lower_limit)!==void 0?$t.radiansToDegrees(i.lower_limit):void 0,c=(i==null?void 0:i.upper_limit)!==void 0?$t.radiansToDegrees(i.upper_limit):void 0;return s.jsxs(L.Stack,{direction:"row",alignItems:"center",gap:2,marginTop:"0.8rem",children:[s.jsx(L.Typography,{sx:{flexGrow:1,textAlign:"right"},children:`J${a.index+1}`}),s.jsx(Wl,{disabled:e.isLocked,lowerLimitDegs:l,upperLimitDegs:c,getValueDegs:()=>{const d=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[a.index];return d!==void 0?$t.radiansToDegrees(d):void 0},startJogging:d=>n({joint:a.index,direction:d}),stopJogging:o},a.index),s.jsx(L.Typography,{sx:{flexGrow:1}})]},`joint-${a.index}`)})}),s.jsx(Yl,{store:e})]})});var Si=function(){try{var e=er(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Z1(e,t,r){t=="__proto__"&&Si?Si(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Q1(e,t,r,n){for(var o=-1,a=e==null?0:e.length;++o<a;){var i=e[o];t(n,i,r(i),e)}return n}function e_(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),l=i.length;l--;){var c=i[++o];if(r(a[c],c,a)===!1)break}return t}}var t_=e_();function r_(e,t){return e&&t_(e,t,Fa)}function n_(e,t){return function(r,n){if(r==null)return r;if(!lc(r))return e(r,n);for(var o=r.length,a=-1,i=Object(r);++a<o&&n(i[a],a,i)!==!1;);return r}}var o_=n_(r_);function a_(e,t,r,n){return o_(e,function(o,a,i){t(n,o,r(o),i)}),n}var s_=1,i_=2;function l_(e,t,r,n){var o=r.length,a=o;if(e==null)return!a;for(e=Object(e);o--;){var i=r[o];if(i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++o<a;){i=r[o];var l=i[0],c=e[l],u=i[1];if(i[2]){if(c===void 0&&!(l in e))return!1}else{var d=new Rt,h;if(!(h===void 0?_o(u,c,s_|i_,n,d):h))return!1}}return!0}function cc(e){return e===e&&!Xt(e)}function c_(e){for(var t=Fa(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,cc(o)]}return t}function uc(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function u_(e){var t=c_(e);return t.length==1&&t[0][2]?uc(t[0][0],t[0][1]):function(r){return r===e||l_(r,e,t)}}var d_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,f_=/^\w*$/;function Da(e,t){if(yt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||po(e)?!0:f_.test(e)||!d_.test(e)||t!=null&&e in Object(t)}var h_="Expected a function";function Ua(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(h_);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(Ua.Cache||Pt),r}Ua.Cache=Pt;var m_=500;function p_(e){var t=Ua(e,function(n){return r.size===m_&&r.clear(),n}),r=t.cache;return t}var g_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,y_=/\\(\\)?/g,__=p_(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(g_,function(r,n,o,a){t.push(o?a.replace(y_,"$1"):n||r)}),t});function b_(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 S_=1/0,xi=Nt?Nt.prototype:void 0,vi=xi?xi.toString:void 0;function dc(e){if(typeof e=="string")return e;if(yt(e))return b_(e,dc)+"";if(po(e))return vi?vi.call(e):"";var t=e+"";return t=="0"&&1/e==-S_?"-0":t}function fc(e){return e==null?"":dc(e)}function hc(e,t){return yt(e)?e:Da(e,t)?[e]:__(fc(e))}var x_=1/0;function bo(e){if(typeof e=="string"||po(e))return e;var t=e+"";return t=="0"&&1/e==-x_?"-0":t}function mc(e,t){t=hc(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[bo(t[r++])];return r&&r==n?e:void 0}function v_(e,t,r){var n=e==null?void 0:mc(e,t);return n===void 0?r:n}function w_(e,t){return e!=null&&t in Object(e)}function R_(e,t,r){t=hc(t,e);for(var n=-1,o=t.length,a=!1;++n<o;){var i=bo(t[n]);if(!(a=e!=null&&r(e,i)))break;e=e[i]}return a||++n!=o?a:(o=e==null?0:e.length,!!o&&Na(o)&&ac(i,o)&&(yt(e)||nc(e)))}function j_(e,t){return e!=null&&R_(e,t,w_)}var C_=1,A_=2;function P_(e,t){return Da(e)&&cc(t)?uc(bo(e),t):function(r){var n=v_(r,e);return n===void 0&&n===t?j_(r,e):_o(t,n,C_|A_)}}function O_(e){return e}function T_(e){return function(t){return t==null?void 0:t[e]}}function M_(e){return function(t){return mc(t,e)}}function I_(e){return Da(e)?T_(bo(e)):M_(e)}function E_(e){return typeof e=="function"?e:e==null?O_:typeof e=="object"?yt(e)?P_(e[0],e[1]):u_(e):I_(e)}function L_(e,t){return function(r,n){var o=yt(r)?Q1:a_,a={};return o(r,e,E_(n),a)}}var wn=L_(function(e,t,r){Z1(e,r,t)}),k_=0;function $_(e){var t=++k_;return fc(e)+t}const pa=[{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}],N_=[{id:"continuous"},...pa];class Ba{constructor(t,r,n,o){var a,i;this.jogger=t,this.motionGroupSpec=r,this.coordSystems=n,this.tcps=o,this.selectedTabId="cartesian",this.locks=new Set,this.selectedCoordSystemId="world",this.selectedTcpId="",this.selectedOrientation="coordsys",this.selectedIncrementId="continuous",this.selectedCartesianMotionType="translate",this.incrementJoggingInProgress=!1,this.translationVelocityMmPerSec=10,this.rotationVelocityDegPerSec=1,this.minTranslationVelocityMmPerSec=5,this.maxTranslationVelocityMmPerSec=250,this.minRotationVelocityDegPerSec=1,this.maxRotationVelocityDegPerSec=60,this.disposers=[];for(const l of n)if(l.coordinate_system===""){l.coordinate_system="world";break}this.selectedCoordSystemId=((a=n[0])==null?void 0:a.coordinate_system)||"world",this.selectedTcpId=((i=o[0])==null?void 0:i.id)||"",br.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(br.autorun(()=>this.saveToLocalStorage())),window.joggingStore=this}static async loadFor(t){const{nova:r}=t,[n,{coordinatesystems:o},{tcps:a}]=await Promise.all([r.api.motionGroupInfos.getMotionGroupSpecification(t.motionGroupId),r.api.coordinateSystems.listCoordinateSystems("ROTATION_VECTOR"),r.api.motionGroupInfos.listTcps(t.motionGroupId,"ROTATION_VECTOR")]);return new Ba(t,n,o||[],a||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}loadFromLocalStorage(){const t=$t.tryParseJson(localStorage.getItem("joggingToolStore"));t&&(this.tabsById[t.selectedTabId]&&(this.selectedTabId=t.selectedTabId),this.coordSystemsById[t.selectedCoordSystemId]&&(this.selectedCoordSystemId=t.selectedCoordSystemId),this.tcpsById[t.selectedTcpId]&&(this.selectedTcpId=t.selectedTcpId),this.incrementOptionsById[t.selectedIncrementId]&&(this.selectedIncrementId=t.selectedIncrementId),["translate","rotate"].includes(t.selectedCartesianMotionType)&&(this.selectedCartesianMotionType=t.selectedCartesianMotionType),["coordsys","tool"].includes(t.selectedOrientation)&&(this.selectedOrientation=t.selectedOrientation))}saveToLocalStorage(){localStorage.setItem("joggingToolStore",JSON.stringify(this.localStorageSave))}get isLocked(){return this.locks.size>0}get localStorageSave(){return{selectedTabId:this.selectedTabId,selectedCoordSystemId:this.selectedCoordSystemId,selectedTcpId:this.selectedTcpId,selectedOrientation:this.selectedOrientation,selectedIncrementId:this.selectedIncrementId,selectedCartesianMotionType:this.selectedCartesianMotionType}}get tabs(){return[{id:"cartesian",label:"Cartesian"},{id:"joint",label:"Joint"}]}get incrementOptions(){return N_}get discreteIncrementOptions(){return pa}get incrementOptionsById(){return wn(this.incrementOptions,t=>t.id)}get tabsById(){return wn(this.tabs,t=>t.id)}get currentTab(){return this.tabsById[this.selectedTabId]||this.tabs[0]}get tabIndex(){return this.tabs.indexOf(this.currentTab)}get coordSystemsById(){return wn(this.coordSystems,t=>t.coordinate_system)}get selectedCoordSystem(){return this.coordSystemsById[this.selectedCoordSystemId]}get activeCoordSystemId(){return this.selectedOrientation==="tool"?"tool":this.selectedCoordSystemId}get tcpsById(){return wn(this.tcps,t=>t.id)}get selectedDiscreteIncrement(){return pa.find(t=>t.id===this.selectedIncrementId)}get rotationVelocityRadsPerSec(){return this.rotationVelocityDegPerSec*Math.PI/180}get velocityInCurrentUnits(){return this.currentMotionType==="translate"?this.translationVelocityMmPerSec:this.rotationVelocityDegPerSec}get minVelocityInCurrentUnits(){return this.currentMotionType==="translate"?this.minTranslationVelocityMmPerSec:this.minRotationVelocityDegPerSec}get maxVelocityInCurrentUnits(){return this.currentMotionType==="translate"?this.maxTranslationVelocityMmPerSec:this.maxRotationVelocityDegPerSec}get currentMotionType(){return this.selectedTabId==="cartesian"&&this.selectedCartesianMotionType==="translate"?"translate":"rotate"}onTabChange(t,r){const n=this.tabs[r]||this.tabs[0];this.selectedTabId=n.id}setSelectedCoordSystemId(t){this.selectedCoordSystemId=t}setSelectedTcpId(t){this.selectedTcpId=t}setSelectedOrientation(t){this.selectedOrientation=t}setSelectedIncrementId(t){this.selectedIncrementId=t}setIncrementJoggingInProgress(t){this.incrementJoggingInProgress=t}setVelocityFromSlider(t){this.currentMotionType==="translate"?this.translationVelocityMmPerSec=t:this.rotationVelocityDegPerSec=t}setSelectedCartesianMotionType(t){this.selectedCartesianMotionType=t}async withMotionLock(t){const r=$_();this.locks.add(r);try{return await t()}finally{this.locks.delete(r)}}}const F_=en(He.observer(e=>{var a,i,l,c;const t=Pc.isString(e.nova)?new $t.NovaClient({instanceUrl:e.nova}):e.nova,r=He.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function n(){br.runInAction(()=>{r.loadingError=null,r.joggingStore=null});try{const u=await t.connectJogger(e.motionGroupId),d=await Ba.loadFor(u);br.runInAction(()=>{r.joggingStore=d}),e.onSetup&&e.onSetup(d)}catch(u){r.loadingError=u}}if(q.useEffect(()=>(n(),()=>{var u;(u=r.joggingStore)==null||u.dispose()}),[e.nova]),q.useEffect(()=>{if(!r.joggingStore)return;const{currentTab:u,selectedTcpId:d,activeCoordSystemId:h,selectedDiscreteIncrement:f}=r.joggingStore;if(u.id!=="cartesian"&&u.id!=="joint")return;const b={tcpId:d,coordSystemId:h};f&&u.id==="cartesian"?r.joggingStore.jogger.setJoggingMode("increment",b):r.joggingStore.jogger.setJoggingMode(u.id,b)},[(a=r.joggingStore)==null?void 0:a.currentTab,(i=r.joggingStore)==null?void 0:i.selectedTcpId,(l=r.joggingStore)==null?void 0:l.activeCoordSystemId,(c=r.joggingStore)==null?void 0:c.selectedDiscreteIncrement]),!r.joggingStore||r.loadingError)return s.jsx(wi,{children:s.jsx(Qi,{message:"Loading jogging",error:r.loadingError})});const{joggingStore:o}=r;return s.jsx(wi,{children:s.jsxs(L.Stack,{flexGrow:1,children:[s.jsx(L.Tabs,{value:o.tabIndex,onChange:o.onTabChange,children:o.tabs.map(u=>s.jsx(L.Tab,{label:u.label,id:`jogging-tab-${u.id}`,"aria-controls":`jogging-tab-${u.id}`},u.id))}),s.jsxs(L.Stack,{flexGrow:1,children:[o.currentTab.id==="cartesian"&&s.jsx(X1,{store:o}),o.currentTab.id==="joint"&&s.jsx(Y1,{store:o}),e.children]})]})})}));function wi({children:e}){return s.jsx(L.Stack,{sx:{maxWidth:"460px",minWidth:"350px",overflowY:"auto",position:"relative",height:"100%"},children:s.jsx(L.Paper,{sx:{height:"100%"},children:e})})}function D_(){const e=window.location.href;return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function U_({baseUrl:e=D_(),...t}){return s.jsxs(L.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:[s.jsx(L.DialogTitle,{id:"no-motion-group-modal-title",children:"No motion group found"}),s.jsxs(L.DialogContent,{sx:{marginTop:"3rem",marginBottom:"1.5rem",textAlign:"center"},children:[s.jsx(L.Typography,{color:"#fff",children:"Found no devices to connect to."}),s.jsx(L.Typography,{color:"#fff",children:"Please ensure a motion group has been created."})]}),s.jsx(L.DialogActions,{children:s.jsxs(L.Stack,{width:"100%",maxWidth:"300px",margin:"auto",marginBottom:"2rem",children:[s.jsx(L.Button,{href:`${e}/settings`,variant:"contained",sx:{borderRadius:"8px",width:"100%"},children:"Go to settings app"}),s.jsx(L.Button,{href:`${e}`,variant:"text",sx:{marginTop:"1rem",color:"#fff",textDecoration:"underline",fontSize:"0.75rem"},children:"Back to Homescreen"})]})})]})}const B_=Array(6).fill(2*Math.PI),ht={white:"#FFFFFF",midnightblue:"#001337",lightbuttonblue:"#47D3FF",midnightgray:"#DDE0E4",midnightgray500:"#828B9B",skyblue500:"#06B8F1",skyblue600:"#0094CE",darkishblue:"#262F42",darkestblue:"#101629",grayishblue:"#505968",darkgrayishblue:"#363c4b",scaryred:"#FF0E65",tealGreen:"#1AC0B2",magenta:"#EA3785"},J_={mode:"dark",colors:{primary:ht.skyblue500,textDefault:ht.white,textSubtle:ht.midnightgray,background:{default:ht.darkishblue,panel:ht.darkestblue}}},V_={mode:"light",colors:{primary:ht.skyblue500,textDefault:ht.darkishblue,textSubtle:ht.midnightgray,background:{default:ht.skyblue500,panel:ht.white}}};function G_(e){var o,a,i,l;let t=!0;((o=e.palette)==null?void 0:o.mode)==="light"?t=!1:((a=e.palette)==null?void 0:a.mode)!=="dark"&&(t=!(typeof window<"u"&&((l=(i=window.matchMedia)==null?void 0:i.call(window,"(prefers-color-scheme: light)"))==null?void 0:l.matches)));const r=t?J_:V_,n=la({palette:{mode:r.mode,primary:{main:r.colors.primary},background:{default:r.colors.background.default,paper:r.colors.background.panel}},typography:{allVariants:{color:r.colors.textDefault}},components:{MuiSelect:{styleOverrides:{root:{backgroundColor:t?"#505968":void 0,borderRadius:"10px",color:"currentColor","& > div":{padding:"4px 16px"},"& fieldset":{border:t?"none":void 0}}}},MuiChip:{styleOverrides:{root:{backgroundColor:t?"#505968":void 0,borderRadius:"10px",color:"currentColor"}}},MuiToggleButtonGroup:{styleOverrides:{root:{"& > button":{borderRadius:"8px",textTransform:"none",paddingTop:"4px",paddingBottom:"4px",width:"100%",borderWidth:0,backgroundColor:t?"#3d4455":void 0,color:t?"rgba(255, 255, 255, 0.8)":void 0,"&.Mui-selected":t?{color:"white",backgroundColor:"#505968"}:void 0}}}},MuiTabs:{styleOverrides:{root:{backgroundColor:t?"#101629":void 0,minHeight:"42px"}}},MuiTab:{styleOverrides:{root:{minHeight:"42px",textTransform:"none","&.Mui-selected":t?{color:"white",backgroundColor:"#404554"}:void 0}}}},nova:r});return e?la(n,e):n}exports.JoggingCartesianAxisControl=ca;exports.JoggingJointRotationControl=Wl;exports.JoggingPanel=F_;exports.NoMotionGroupModal=U_;exports.PresetEnvironment=sf;exports.Robot=af;exports.SafetyZonesRenderer=uf;exports.SupportedRobot=ol;exports.VelocitySlider=ql;exports.WandelscriptEditor=kd;exports.createNovaMuiTheme=G_;exports.defaultAxisConfig=B_;exports.defaultGetModel=Sa;exports.useAnimationFrame=wr;exports.useAutorun=rl;exports.useMounted=eo;exports.useReaction=nl;
|
|
80
|
+
} });`:Kr(12,g?` (${g})`:"",JSON.stringify(_.main)));return Gs(_,"light",R,n),Gs(_,"dark",C,n),_.contrastText||(_.contrastText=h(_.main)),_},b={dark:Do,light:Vs};return process.env.NODE_ENV!=="production"&&(b[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),tt(A({common:A({},Yr),mode:t,primary:f({color:a,name:"primary"}),secondary:f({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:d,name:"warning"}),info:f({color:c,name:"info"}),success:f({color:u,name:"success"}),grey:A0,contrastThreshold:r,getContrastText:h,augmentColor:f,tonalOffset:n},b[t]),o)}const $0=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function N0(e){return Math.round(e*1e5)/1e5}const zs={textTransform:"uppercase"},Ws='"Roboto", "Helvetica", "Arial", sans-serif';function F0(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=Ws,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:h}=r,f=Ue(r,$0);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const b=o/14,y=h||(v=>`${v/u*b}rem`),_=(v,R,C,k,j)=>A({fontFamily:n,fontWeight:v,fontSize:y(R),lineHeight:C},n===Ws?{letterSpacing:`${N0(k/R)}em`}:{},j,d),g={h1:_(a,96,1.167,-1.5),h2:_(a,60,1.2,-.5),h3:_(i,48,1.167,0),h4:_(i,34,1.235,.25),h5:_(i,24,1.334,0),h6:_(l,20,1.6,.15),subtitle1:_(i,16,1.75,.15),subtitle2:_(l,14,1.57,.1),body1:_(i,16,1.5,.15),body2:_(i,14,1.43,.15),button:_(l,14,1.75,.4,zs),caption:_(i,12,1.66,.4),overline:_(i,12,2.66,1,zs),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return tt(A({htmlFontSize:u,pxToRem:y,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:c},g),f,{clone:!1})}const D0=.2,U0=.14,B0=.12;function fe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${D0})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${U0})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${B0})`].join(",")}const J0=["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)],V0=["duration","easing","delay"],G0={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)"},z0={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Hs(e){return`${Math.round(e)}ms`}function W0(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function H0(e){const t=A({},G0,e.easing),r=A({},z0,e.duration);return A({getAutoHeightDuration:W0,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:l=t.easeInOut,delay:c=0}=a,u=Ue(a,V0);if(process.env.NODE_ENV!=="production"){const d=f=>typeof f=="string",h=f=>!isNaN(parseFloat(f));!d(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!h(i)&&!d(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),d(l)||console.error('MUI: Argument "easing" must be a string.'),!h(c)&&!d(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
81
|
+
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof i=="string"?i:Hs(i)} ${l} ${typeof c=="string"?c:Hs(c)}`).join(",")}},e,{easing:t,duration:r})}const K0={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},X0=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function la(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=Ue(e,X0);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.":Kr(18));const l=k0(n),c=ln(e);let u=tt(c,{mixins:m0(c.breakpoints,r),palette:l,shadows:J0.slice(),typography:F0(l,a),transitions:H0(o),zIndex:A({},K0)});if(u=tt(u,i),u=t.reduce((d,h)=>tt(d,h),u),process.env.NODE_ENV!=="production"){const d=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],h=(f,b)=>{let y;for(y in f){const _=f[y];if(d.indexOf(y)!==-1&&Object.keys(_).length>0){if(process.env.NODE_ENV!=="production"){const g=cn("",y);console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${y}\` internal state.`,"You can not override it like this: ",JSON.stringify(f,null,2),"",`Instead, you need to use the '&.${g}' syntax:`,JSON.stringify({root:{[`&.${g}`]:_}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
82
|
+
`))}f[y]={}}}};Object.keys(u.components).forEach(f=>{const b=u.components[f].styleOverrides;b&&f.indexOf("Mui")===0&&h(b,f)})}return u.unstable_sxConfig=A({},an,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(h){return sn({sx:h,theme:this})},u}const q0=la(),Y0="$$material";function Ea(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Z0=e=>Ea(e)&&e!=="classes",Ct=Qm({themeId:Y0,defaultTheme:q0,rootShouldForwardProp:Z0});process.env.NODE_ENV!=="production"&&(m.node,m.object.isRequired);function La(e){return $m(e)}const _r=Gm({createStyledComponent:Ct("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>La({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(_r.propTypes={children:m.node,component:m.elementType,direction:m.oneOfType([m.oneOf(["column-reverse","column","row-reverse","row"]),m.arrayOf(m.oneOf(["column-reverse","column","row-reverse","row"])),m.object]),divider:m.node,spacing:m.oneOfType([m.arrayOf(m.oneOfType([m.number,m.string])),m.number,m.object,m.string]),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),useFlexGap:m.bool});const ca=en(He.observer(({color:e,label:t,getDisplayedValue:r,startJogging:n,stopJogging:o,disabled:a,...i})=>{wr(()=>{const d=r(),h=l.current;h&&(h.textContent=d)});const l=q.useRef(null);e=e||"#F14D42";function c(d){d.button===0&&n("-")}function u(d){d.button===0&&n("+")}return s.jsxs(_r,{height:"72px",direction:"row",...i,children:[s.jsx(L.Button,{onPointerDown:c,onPointerUp:o,onPointerOut:o,disabled:a,sx:{width:"105px",backgroundColor:e,color:"white",alignContent:"center",fontSize:"37px",borderRadius:"16px 0px 0px 16px",":hover":{color:"white",backgroundColor:e}},children:"-"}),s.jsxs(_r,{spacing:"6px",sx:{width:"184px",backgroundColor:e,alignItems:"center",justifyContent:"center",opacity:"0.9"},children:[s.jsx(_r,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none",color:"white"},children:t}),s.jsx(L.Typography,{height:"22px",sx:{fontSize:"15px",color:"white"},ref:l,children:r()})]}),s.jsx(L.Button,{onPointerDown:u,onPointerUp:o,onPointerOut:o,disabled:a,sx:{width:"105px",backgroundColor:e,color:"white",alignContent:"center",fontSize:"37px",borderRadius:"0px 16px 16px 0px",":hover":{color:"white",backgroundColor:e}},children:"+"})]})}));var ka={},Uo={};function Q0(e){return cn("MuiSvgIcon",e)}Cl("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ep=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],tp=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Oe(t)}`,`fontSize${Oe(r)}`]};return Oa(o,Q0,n)},rp=Ct("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Oe(r.color)}`],t[`fontSize${Oe(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,a,i,l,c,u,d,h,f,b,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem",large:((u=e.typography)==null||(d=u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:(h=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?h:{action:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),zn=N.forwardRef(function(t,r){const n=La({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:h,viewBox:f="0 0 24 24"}=n,b=Ue(n,ep),y=N.isValidElement(o)&&o.type==="svg",_=A({},n,{color:i,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:f,hasSvgAsChild:y}),g={};d||(g.viewBox=f);const v=tp(_);return s.jsxs(rp,A({as:l,className:gt(v.root,a),focusable:"false",color:u,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:r},g,b,y&&o.props,{ownerState:_,children:[y?o.props.children:o,h?s.jsx("title",{children:h}):null]}))});process.env.NODE_ENV!=="production"&&(zn.propTypes={children:m.node,classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),m.string]),component:m.elementType,fontSize:m.oneOfType([m.oneOf(["inherit","large","medium","small"]),m.string]),htmlColor:m.string,inheritViewBox:m.bool,shapeRendering:m.string,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),titleAccess:m.string,viewBox:m.string});zn.muiName="SvgIcon";function np(e,t){function r(n,o){return s.jsx(zn,A({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=zn.muiName,N.memo(N.forwardRef(r))}const op={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(`
|
|
83
|
+
`)),Rl.configure(e)}},ap=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Oe,createChainedFunction:dm,createSvgIcon:np,debounce:fm,deprecatedPropType:hm,isMuiElement:mm,ownerDocument:yr,ownerWindow:pm,requirePropFactory:gm,setRef:Tl,unstable_ClassNameGenerator:op,unstable_useEnhancedEffect:Aa,unstable_useId:_m,unsupportedProp:bm,useControlled:Ml,useEventCallback:Tn,useForkRef:Vn,useIsFocusVisible:Il},Symbol.toStringTag,{value:"Module"})),sp=jt(ap);var Ks;function Bl(){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=sp}(Uo)),Uo}var ip=mo;Object.defineProperty(ka,"__esModule",{value:!0});var Jl=ka.default=void 0,lp=ip(Bl()),cp=s;Jl=ka.default=(0,lp.default)((0,cp.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");var $a={},up=mo;Object.defineProperty($a,"__esModule",{value:!0});var Vl=$a.default=void 0,dp=up(Bl()),fp=s;Vl=$a.default=(0,dp.default)((0,fp.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function Xt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Gl=typeof global=="object"&&global&&global.Object===Object&&global,hp=typeof self=="object"&&self&&self.Object===Object&&self,_t=Gl||hp||Function("return this")(),Bo=function(){return _t.Date.now()},mp=/\s/;function pp(e){for(var t=e.length;t--&&mp.test(e.charAt(t)););return t}var gp=/^\s+/;function yp(e){return e&&e.slice(0,pp(e)+1).replace(gp,"")}var Nt=_t.Symbol,zl=Object.prototype,_p=zl.hasOwnProperty,bp=zl.toString,Br=Nt?Nt.toStringTag:void 0;function Sp(e){var t=_p.call(e,Br),r=e[Br];try{e[Br]=void 0;var n=!0}catch{}var o=bp.call(e);return n&&(t?e[Br]=r:delete e[Br]),o}var xp=Object.prototype,vp=xp.toString;function wp(e){return vp.call(e)}var Rp="[object Null]",jp="[object Undefined]",Xs=Nt?Nt.toStringTag:void 0;function Zt(e){return e==null?e===void 0?jp:Rp:Xs&&Xs in Object(e)?Sp(e):wp(e)}function qt(e){return e!=null&&typeof e=="object"}var Cp="[object Symbol]";function po(e){return typeof e=="symbol"||qt(e)&&Zt(e)==Cp}var qs=NaN,Ap=/^[-+]0x[0-9a-f]+$/i,Pp=/^0b[01]+$/i,Op=/^0o[0-7]+$/i,Tp=parseInt;function Ys(e){if(typeof e=="number")return e;if(po(e))return qs;if(Xt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Xt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=yp(e);var r=Pp.test(e);return r||Op.test(e)?Tp(e.slice(2),r?2:8):Ap.test(e)?qs:+e}var Mp="Expected a function",Ip=Math.max,Ep=Math.min;function Lp(e,t,r){var n,o,a,i,l,c,u=0,d=!1,h=!1,f=!0;if(typeof e!="function")throw new TypeError(Mp);t=Ys(t)||0,Xt(r)&&(d=!!r.leading,h="maxWait"in r,a=h?Ip(Ys(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f);function b(P){var O=n,z=o;return n=o=void 0,u=P,i=e.apply(z,O),i}function y(P){return u=P,l=setTimeout(v,t),d?b(P):i}function _(P){var O=P-c,z=P-u,le=t-O;return h?Ep(le,a-z):le}function g(P){var O=P-c,z=P-u;return c===void 0||O>=t||O<0||h&&z>=a}function v(){var P=Bo();if(g(P))return R(P);l=setTimeout(v,_(P))}function R(P){return l=void 0,f&&n?b(P):(n=o=void 0,i)}function C(){l!==void 0&&clearTimeout(l),u=0,n=c=o=l=void 0}function k(){return l===void 0?i:R(Bo())}function j(){var P=Bo(),O=g(P);if(n=arguments,o=this,c=P,O){if(l===void 0)return y(c);if(h)return clearTimeout(l),l=setTimeout(v,t),b(c)}return l===void 0&&(l=setTimeout(v,t)),i}return j.cancel=C,j.flush=k,j}var kp="Expected a function";function $p(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(kp);return Xt(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Lp(e,t,{leading:n,maxWait:t,trailing:o})}const Wl=en(He.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:n,getValueDegs:o,disabled:a,...i})=>{const{t:l}=Ft.useTranslation(),[c,u]=q.useState(),d=He.useLocalObservable(()=>({activeJoggingDir:null,startJogging(v){this.activeJoggingDir=v,e(v)},stopJogging(){this.activeJoggingDir=null,t()}})),h=$p(()=>{u(o())},50);wr(h);function f(v){v.button===0&&d.startJogging("-")}function b(v){v.button===0&&d.startJogging("+")}function y(v){d.stopJogging()}function _(v){v.target===v.currentTarget&&d.stopJogging()}function g(v,R=1){if(v===void 0||isNaN(v))return"";const C=l("General.degree.variable",{amount:v.toFixed(R)});return v>0&&R===0?`+${C}`:C}return s.jsxs(_r,{height:"64px",width:"100%",maxWidth:"300px",direction:"row",...i,sx:{"& .MuiIconButton-root":{width:"52px",color:"white",alignContent:"center",backgroundColor:"#38445A","&:disabled":{opacity:.5,backgroundColor:"#38445A"},"& svg":{width:"42px",height:"42px"}}},children:[s.jsx(L.IconButton,{onPointerDown:f,onPointerUp:y,onPointerOut:_,disabled:a,sx:{borderRadius:"16px 0px 0px 16px",backgroundColor:d.activeJoggingDir==="-"?"#495975":void 0},children:s.jsx(Jl,{})}),s.jsxs(_r,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{borderStyle:"solid",borderLeftWidth:0,borderRightWidth:0,borderTopWidth:"4px",borderBottomWidth:"4px",backgroundColor:"#38445A",borderColor:"#38445A",paddingLeft:"20px",paddingRight:"20px",zIndex:1},children:[s.jsx(L.Typography,{sx:{fontSize:"15px",position:"relative",top:"5px",color:"white"},children:g(c)}),s.jsx(L.Slider,{disabled:!0,"aria-label":"Joint position",min:r,max:n,value:c||0,track:!1,sx:{"& .MuiSlider-mark":{display:"none"},"& .MuiSlider-thumb":{width:"5px",height:"10px",borderRadius:"2px"},"& .MuiSlider-markLabel":{top:"20px",fontSize:"12px",color:"white"},"& .MuiSlider-rail":{backgroundColor:"#1F283A",opacity:1}},marks:r!==void 0&&n!==void 0&&[{value:r,label:g(r,0)},{value:n,label:g(n,0)}]})]}),s.jsx(L.IconButton,{onPointerDown:b,onPointerUp:y,onPointerOut:_,disabled:a,sx:{borderRadius:"0px 16px 16px 0px",backgroundColor:d.activeJoggingDir==="+"?"#495975 !important":"#38445A"},children:s.jsx(Vl,{})})]})})),Np=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeWidth:1.5,d:"M18.5 12a6 6 0 1 0-6 6"}),N.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m16.5 11 2 2.5 2-2.5"})),Fp=q.forwardRef(Np),Dp=({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"})),Up=q.forwardRef(Dp),Bp=({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"})),Jp=q.forwardRef(Bp),Vp=({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"})),Gp=q.forwardRef(Vp),zp=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:21,height:21,fill:"none",viewBox:"0 0 23 22",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"currentColor",d:"m21.71 16.262-1.09.346.66 2.071-2.923-1.461V9.857l-6.285-3.143V2.893L13.38 4.21l.812-.806-2.674-2.69-2.706 2.687.805.812L10.93 2.91v3.803L4.643 9.857v7.36l-2.914 1.458.657-2.067-1.09-.346-1.225 3.88 3.826 1.144.346-1.09-1.836-.583 2.874-1.436 6.22 3.109 6.217-3.11 2.877 1.439-1.831.581.345 1.09 3.82-1.143zM11.5 12.646l-4.94-2.47 4.94-2.47 4.94 2.47zm.572.993 5.143-2.572v6.083l-5.143 2.572zm-6.286-2.572 5.143 2.572v6.083L5.786 17.15z"})),Wp=q.forwardRef(zp),Hp=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:15,height:17,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"currentColor",d:"M12.9 7.667c-.133-.534-.533-1-1-1.134L10.367 6l-.4 1.267L11.5 7.8c.067 0 .133.067.133.2l1.067 4.867a.32.32 0 0 1-.133.4l-2.267 1.8c-.267.2-.333.666-.133.933s.666.333.933.133l2.267-1.8c.533-.4.733-1.133.6-1.733zM12.5 0H1.833A1.65 1.65 0 0 0 .167 1.667v1.4c0 .866.733 1.6 1.666 1.6h10.734c.866 0 1.6-.734 1.6-1.667V1.667A1.65 1.65 0 0 0 12.5 0M1.633 12.8 2.7 8c0-.067.067-.133.133-.2l1.534-.533-.4-1.2-1.534.466c-.533.2-.933.6-1 1.134L.367 12.533c-.134.667.066 1.334.6 1.734l2.266 1.8c.267.266.734.2.934-.067s.2-.733-.134-.933l-2.266-1.8c-.134-.134-.2-.267-.134-.467"})),Kp=q.forwardRef(Hp),Xp=He.observer(({store:e})=>{var n;const{t}=Ft.useTranslation();function r(o,a){(a==="coordsys"||a==="tool")&&e.setSelectedOrientation(a)}return s.jsxs(s.Fragment,{children:[s.jsxs(L.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"8px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[s.jsxs(L.Stack,{width:"50%",children:[s.jsx(L.InputLabel,{id:"jogging-coord-select",children:"Coordinate Sys."}),s.jsx(L.Select,{labelId:"jogging-coord-select",value:e.selectedCoordSystemId,displayEmpty:!0,onChange:o=>{e.setSelectedCoordSystemId(o.target.value)},disabled:e.isLocked,children:e.coordSystems.map(o=>s.jsx(L.MenuItem,{value:o.coordinate_system,children:o.name||o.coordinate_system},o.coordinate_system))})]}),s.jsxs(L.Stack,{width:"50%",children:[s.jsx(L.InputLabel,{id:"jogging-tcp-select",children:"TCP"}),s.jsx(L.Select,{labelId:"jogging-tcp-select",value:e.selectedTcpId,onChange:o=>{e.setSelectedTcpId(o.target.value)},disabled:e.isLocked,children:e.tcps.map(o=>s.jsx(L.MenuItem,{value:o.id,children:o.id},o.id))})]})]}),s.jsxs(L.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"8px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[s.jsxs(L.Stack,{width:"35%",children:[s.jsx(L.InputLabel,{id:"orientation-select",children:t("Jogging.Cartesian.Orientation.lb")}),s.jsxs(L.ToggleButtonGroup,{value:e.selectedOrientation,onChange:r,exclusive:!0,"aria-labelledby":"orientation-select",disabled:e.isLocked,children:[s.jsx(L.ToggleButton,{value:"coordsys",children:s.jsx(Wp,{})}),s.jsx(L.ToggleButton,{value:"tool",children:s.jsx(Kp,{})})]})]}),s.jsxs(L.Stack,{width:"65%",children:[s.jsx(L.InputLabel,{id:"jogging-increment-select",children:"Increment"}),s.jsxs(L.Select,{labelId:"jogging-increment-select",value:((n=e.activeDiscreteIncrement)==null?void 0:n.id)||"continuous",onChange:o=>{e.setSelectedIncrementId(o.target.value)},disabled:e.isLocked,children:[s.jsx(L.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.selectedOrientation==="tool"?null:e.discreteIncrementOptions.map(o=>s.jsx(L.MenuItem,{value:o.id,children:e.currentMotionType==="translate"?`${o.mm}mm`:`${o.degrees}°`},o.id))]})]})]})]})});function qp(e,t,r=(n,o)=>n===o){return e.length===t.length&&e.every((n,o)=>r(n,t[o]))}const Yp=2;function Hl(e,t){return e-t}function Zs(e,t){var r;const{index:n}=(r=e.reduce((o,a,i)=>{const l=Math.abs(t-a);return o===null||l<o.distance||l===o.distance?{distance:l,index:i}:o},null))!=null?r:{};return n}function _n(e,t){if(t.current!==void 0&&e.changedTouches){const r=e;for(let n=0;n<r.changedTouches.length;n+=1){const o=r.changedTouches[n];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Wn(e,t,r){return(e-t)*100/(r-t)}function Zp(e,t,r){return(r-t)*e+t}function Qp(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 eg(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(Qp(t)))}function Qs({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(Hl)}function bn({sliderRef:e,activeIndex:t,setActive:r}){var n,o;const a=yr(e.current);if(!((n=e.current)!=null&&n.contains(a.activeElement))||Number(a==null||(o=a.activeElement)==null?void 0:o.getAttribute("data-index"))!==t){var i;(i=e.current)==null||i.querySelector(`[type="range"][data-index="${t}"]`).focus()}r&&r(t)}function Sn(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?qp(e,t):!1}const tg={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}%`})}},rg=e=>e;let xn;function ei(){return xn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?xn=CSS.supports("touch-action","none"):xn=!0),xn}function ng(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:l=100,min:c=0,name:u,onChange:d,onChangeCommitted:h,orientation:f="horizontal",rootRef:b,scale:y=rg,step:_=1,shiftStep:g=10,tabIndex:v,value:R}=e,C=N.useRef(),[k,j]=N.useState(-1),[P,O]=N.useState(-1),[z,le]=N.useState(!1),ue=N.useRef(0),[D,X]=Ml({controlled:R,default:r??c,name:"Slider"}),G=d&&((T,E,F)=>{const W=T.nativeEvent||T,Z=new W.constructor(W.type,W);Object.defineProperty(Z,"target",{writable:!0,value:{value:E,name:u}}),d(Z,E,F)}),Y=Array.isArray(D);let K=Y?D.slice().sort(Hl):[D];K=K.map(T=>T==null?c:hr(T,c,l));const we=i===!0&&_!==null?[...Array(Math.floor((l-c)/_)+1)].map((T,E)=>({value:c+_*E})):i||[],ce=we.map(T=>T.value),{isFocusVisibleRef:Q,onBlur:Ae,onFocus:Ee,ref:ot}=Il(),[bt,Ke]=N.useState(-1),Re=N.useRef(),Ot=Vn(ot,Re),ct=Vn(b,Ot),Xe=T=>E=>{var F;const W=Number(E.currentTarget.getAttribute("data-index"));Ee(E),Q.current===!0&&Ke(W),O(W),T==null||(F=T.onFocus)==null||F.call(T,E)},Be=T=>E=>{var F;Ae(E),Q.current===!1&&Ke(-1),O(-1),T==null||(F=T.onBlur)==null||F.call(T,E)},ut=(T,E)=>{const F=Number(T.currentTarget.getAttribute("data-index")),W=K[F],Z=ce.indexOf(W);let H=E;if(we&&_==null){const Ve=ce[ce.length-1];H>Ve?H=Ve:H<ce[0]?H=ce[0]:H=H<W?ce[Z-1]:ce[Z+1]}if(H=hr(H,c,l),Y){o&&(H=hr(H,K[F-1]||-1/0,K[F+1]||1/0));const Ve=H;H=Qs({values:K,newValue:H,index:F});let qe=F;o||(qe=H.indexOf(Ve)),bn({sliderRef:Re,activeIndex:qe})}X(H),Ke(F),G&&!Sn(H,D)&&G(T,H,F),h&&h(T,H)},dt=T=>E=>{var F;if(_!==null){const W=Number(E.currentTarget.getAttribute("data-index")),Z=K[W];let H=null;(E.key==="ArrowLeft"||E.key==="ArrowDown")&&E.shiftKey||E.key==="PageDown"?H=Math.max(Z-g,c):((E.key==="ArrowRight"||E.key==="ArrowUp")&&E.shiftKey||E.key==="PageUp")&&(H=Math.min(Z+g,l)),H!==null&&(ut(E,H),E.preventDefault())}T==null||(F=T.onKeyDown)==null||F.call(T,E)};Aa(()=>{if(n&&Re.current.contains(document.activeElement)){var T;(T=document.activeElement)==null||T.blur()}},[n]),n&&k!==-1&&j(-1),n&&bt!==-1&&Ke(-1);const Ut=T=>E=>{var F;(F=T.onChange)==null||F.call(T,E),ut(E,E.target.valueAsNumber)},St=N.useRef();let Je=f;a&&f==="horizontal"&&(Je+="-reverse");const M=({finger:T,move:E=!1})=>{const{current:F}=Re,{width:W,height:Z,bottom:H,left:Ve}=F.getBoundingClientRect();let qe;Je.indexOf("vertical")===0?qe=(H-T.y)/Z:qe=(T.x-Ve)/W,Je.indexOf("-reverse")!==-1&&(qe=1-qe);let te;if(te=Zp(qe,c,l),_)te=eg(te,_,c);else{const It=Zs(ce,te);te=ce[It]}te=hr(te,c,l);let $e=0;if(Y){E?$e=St.current:$e=Zs(K,te),o&&(te=hr(te,K[$e-1]||-1/0,K[$e+1]||1/0));const It=te;te=Qs({values:K,newValue:te,index:$e}),o&&E||($e=te.indexOf(It),St.current=$e)}return{newValue:te,activeIndex:$e}},ee=Tn(T=>{const E=_n(T,C);if(!E)return;if(ue.current+=1,T.type==="mousemove"&&T.buttons===0){he(T);return}const{newValue:F,activeIndex:W}=M({finger:E,move:!0});bn({sliderRef:Re,activeIndex:W,setActive:j}),X(F),!z&&ue.current>Yp&&le(!0),G&&!Sn(F,D)&&G(T,F,W)}),he=Tn(T=>{const E=_n(T,C);if(le(!1),!E)return;const{newValue:F}=M({finger:E,move:!0});j(-1),T.type==="touchend"&&O(-1),h&&h(T,F),C.current=void 0,ke()}),Le=Tn(T=>{if(n)return;ei()||T.preventDefault();const E=T.changedTouches[0];E!=null&&(C.current=E.identifier);const F=_n(T,C);if(F!==!1){const{newValue:Z,activeIndex:H}=M({finger:F});bn({sliderRef:Re,activeIndex:H,setActive:j}),X(Z),G&&!Sn(Z,D)&&G(T,Z,H)}ue.current=0;const W=yr(Re.current);W.addEventListener("touchmove",ee,{passive:!0}),W.addEventListener("touchend",he,{passive:!0})}),ke=N.useCallback(()=>{const T=yr(Re.current);T.removeEventListener("mousemove",ee),T.removeEventListener("mouseup",he),T.removeEventListener("touchmove",ee),T.removeEventListener("touchend",he)},[he,ee]);N.useEffect(()=>{const{current:T}=Re;return T.addEventListener("touchstart",Le,{passive:ei()}),()=>{T.removeEventListener("touchstart",Le),ke()}},[ke,Le]),N.useEffect(()=>{n&&ke()},[n,ke]);const Tt=T=>E=>{var F;if((F=T.onMouseDown)==null||F.call(T,E),n||E.defaultPrevented||E.button!==0)return;E.preventDefault();const W=_n(E,C);if(W!==!1){const{newValue:H,activeIndex:Ve}=M({finger:W});bn({sliderRef:Re,activeIndex:Ve,setActive:j}),X(H),G&&!Sn(H,D)&&G(E,H,Ve)}ue.current=0;const Z=yr(Re.current);Z.addEventListener("mousemove",ee,{passive:!0}),Z.addEventListener("mouseup",he)},je=Wn(Y?K[0]:c,c,l),Mt=Wn(K[K.length-1],c,l)-je,Bt=(T={})=>{const E=Mn(T),F={onMouseDown:Tt(E||{})},W=A({},E,F);return A({},T,{ref:ct},W)},Ar=T=>E=>{var F;(F=T.onMouseOver)==null||F.call(T,E);const W=Number(E.currentTarget.getAttribute("data-index"));O(W)},Pr=T=>E=>{var F;(F=T.onMouseLeave)==null||F.call(T,E),O(-1)};return{active:k,axis:Je,axisProps:tg,dragging:z,focusedThumbIndex:bt,getHiddenInputProps:(T={})=>{var E;const F=Mn(T),W={onChange:Ut(F||{}),onFocus:Xe(F||{}),onBlur:Be(F||{}),onKeyDown:dt(F||{})},Z=A({},F,W);return A({tabIndex:v,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":y(l),"aria-valuemin":y(c),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(E=e.step)!=null?E:void 0,disabled:n},T,Z,{style:A({},Am,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Bt,getThumbProps:(T={})=>{const E=Mn(T),F={onMouseOver:Ar(E||{}),onMouseLeave:Pr(E||{})};return A({},T,E,F)},marks:we,open:P,range:Y,rootRef:ct,trackLeap:Mt,trackOffset:je,values:K,getThumbStyle:T=>({pointerEvents:k!==-1&&k!==T?"none":void 0})}}const og=e=>!e||!Gr(e);function ag(e){return cn("MuiSlider",e)}const et=Cl("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"]),sg=e=>{const{open:t}=e;return{offset:gt(t&&et.valueLabelOpen),circle:et.valueLabelCircle,label:et.valueLabelLabel}};function Kl(e){const{children:t,className:r,value:n}=e,o=sg(e);return t?N.cloneElement(t,{className:gt(t.props.className)},s.jsxs(N.Fragment,{children:[t.props.children,s.jsx("span",{className:gt(o.offset,r),"aria-hidden":!0,children:s.jsx("span",{className:o.circle,children:s.jsx("span",{className:o.label,children:n})})})]})):null}process.env.NODE_ENV!=="production"&&(Kl.propTypes={children:m.element.isRequired,className:m.string,value:m.node});const ig=["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 ti(e){return e}const lg=Ct("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Oe(r.color)}`],r.size!=="medium"&&t[`size${Oe(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${et.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${et.dragging}`]:{[`& .${et.thumb}, & .${et.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),cg=Ct("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),ug=Ct("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r,track:"inverted"},style:A({},e.vars?{backgroundColor:e.vars.palette.Slider[`${r}Track`],borderColor:e.vars.palette.Slider[`${r}Track`]}:A({backgroundColor:ia(e.palette[r].main,.62),borderColor:ia(e.palette[r].main,.62)},e.applyStyles("dark",{backgroundColor:sa(e.palette[r].main,.5)}),e.applyStyles("dark",{borderColor:sa(e.palette[r].main,.5)})))}))]}}),dg=Ct("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${Oe(r.color)}`],r.size!=="medium"&&t[`thumbSize${Oe(r.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${et.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{[`&:hover, &.${et.focusVisible}`]:A({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Us(e.palette[r].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${et.active}`]:A({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Us(e.palette[r].main,.16)}`})}}))]}}),fg=Ct(Kl,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>A({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${et.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${et.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),hg=Ct("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Ea(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}}]})),mg=Ct("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Ea(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>A({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),pg=e=>{const{disabled:t,dragging:r,marked:n,orientation:o,track:a,classes:i,color:l,size:c}=e,u={root:["root",t&&"disabled",r&&"dragging",n&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",l&&`color${Oe(l)}`,c&&`size${Oe(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${Oe(c)}`,l&&`thumbColor${Oe(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Oa(u,ag,i)},gg=({children:e})=>e,Xl=N.forwardRef(function(t,r){var n,o,a,i,l,c,u,d,h,f,b,y,_,g,v,R,C,k,j,P,O,z,le,ue;const D=La({props:t,name:"MuiSlider"}),X=Em(),{"aria-label":G,"aria-valuetext":Y,"aria-labelledby":K,component:we="span",components:ce={},componentsProps:Q={},color:Ae="primary",classes:Ee,className:ot,disableSwap:bt=!1,disabled:Ke=!1,getAriaLabel:Re,getAriaValueText:Ot,marks:ct=!1,max:Xe=100,min:Be=0,orientation:ut="horizontal",shiftStep:dt=10,size:Ut="medium",step:St=1,scale:Je=ti,slotProps:M,slots:ee,track:he="normal",valueLabelDisplay:Le="off",valueLabelFormat:ke=ti}=D,Tt=Ue(D,ig),je=A({},D,{isRtl:X,max:Xe,min:Be,classes:Ee,disabled:Ke,disableSwap:bt,orientation:ut,marks:ct,color:Ae,size:Ut,step:St,shiftStep:dt,scale:Je,track:he,valueLabelDisplay:Le,valueLabelFormat:ke}),{axisProps:Mt,getRootProps:Bt,getHiddenInputProps:Ar,getThumbProps:Pr,open:Or,active:tr,axis:at,focusedThumbIndex:T,range:E,dragging:F,marks:W,values:Z,trackOffset:H,trackLeap:Ve,getThumbStyle:qe}=ng(A({},je,{rootRef:r}));je.marked=W.length>0&&W.some($=>$.label),je.dragging=F,je.focusedThumbIndex=T;const te=pg(je),$e=(n=(o=ee==null?void 0:ee.root)!=null?o:ce.Root)!=null?n:lg,It=(a=(i=ee==null?void 0:ee.rail)!=null?i:ce.Rail)!=null?a:cg,rr=(l=(c=ee==null?void 0:ee.track)!=null?c:ce.Track)!=null?l:ug,Tr=(u=(d=ee==null?void 0:ee.thumb)!=null?d:ce.Thumb)!=null?u:dg,xt=(h=(f=ee==null?void 0:ee.valueLabel)!=null?f:ce.ValueLabel)!=null?h:fg,Jt=(b=(y=ee==null?void 0:ee.mark)!=null?y:ce.Mark)!=null?b:hg,Vt=(_=(g=ee==null?void 0:ee.markLabel)!=null?g:ce.MarkLabel)!=null?_:mg,Mr=(v=(R=ee==null?void 0:ee.input)!=null?R:ce.Input)!=null?v:"input",Ir=(C=M==null?void 0:M.root)!=null?C:Q.root,dn=(k=M==null?void 0:M.rail)!=null?k:Q.rail,Er=(j=M==null?void 0:M.track)!=null?j:Q.track,nr=(P=M==null?void 0:M.thumb)!=null?P:Q.thumb,or=(O=M==null?void 0:M.valueLabel)!=null?O:Q.valueLabel,So=(z=M==null?void 0:M.mark)!=null?z:Q.mark,xo=(le=M==null?void 0:M.markLabel)!=null?le:Q.markLabel,fn=(ue=M==null?void 0:M.input)!=null?ue:Q.input,hn=Lt({elementType:$e,getSlotProps:Bt,externalSlotProps:Ir,externalForwardedProps:Tt,additionalProps:A({},og($e)&&{as:we}),ownerState:A({},je,Ir==null?void 0:Ir.ownerState),className:[te.root,ot]}),vo=Lt({elementType:It,externalSlotProps:dn,ownerState:je,className:te.rail}),wo=Lt({elementType:rr,externalSlotProps:Er,additionalProps:{style:A({},Mt[at].offset(H),Mt[at].leap(Ve))},ownerState:A({},je,Er==null?void 0:Er.ownerState),className:te.track}),Lr=Lt({elementType:Tr,getSlotProps:Pr,externalSlotProps:nr,ownerState:A({},je,nr==null?void 0:nr.ownerState),className:te.thumb}),Ro=Lt({elementType:xt,externalSlotProps:or,ownerState:A({},je,or==null?void 0:or.ownerState),className:te.valueLabel}),p=Lt({elementType:Jt,externalSlotProps:So,ownerState:je,className:te.mark}),w=Lt({elementType:Vt,externalSlotProps:xo,ownerState:je,className:te.markLabel}),I=Lt({elementType:Mr,getSlotProps:Ar,externalSlotProps:fn,ownerState:je});return s.jsxs($e,A({},hn,{children:[s.jsx(It,A({},vo)),s.jsx(rr,A({},wo)),W.filter($=>$.value>=Be&&$.value<=Xe).map(($,U)=>{const re=Wn($.value,Be,Xe),V=Mt[at].offset(re);let B;return he===!1?B=Z.indexOf($.value)!==-1:B=he==="normal"&&(E?$.value>=Z[0]&&$.value<=Z[Z.length-1]:$.value<=Z[0])||he==="inverted"&&(E?$.value<=Z[0]||$.value>=Z[Z.length-1]:$.value>=Z[0]),s.jsxs(N.Fragment,{children:[s.jsx(Jt,A({"data-index":U},p,!Gr(Jt)&&{markActive:B},{style:A({},V,p.style),className:gt(p.className,B&&te.markActive)})),$.label!=null?s.jsx(Vt,A({"aria-hidden":!0,"data-index":U},w,!Gr(Vt)&&{markLabelActive:B},{style:A({},V,w.style),className:gt(te.markLabel,w.className,B&&te.markLabelActive),children:$.label})):null]},U)}),Z.map(($,U)=>{const re=Wn($,Be,Xe),V=Mt[at].offset(re),B=Le==="off"?gg:xt;return s.jsx(B,A({},!Gr(B)&&{valueLabelFormat:ke,valueLabelDisplay:Le,value:typeof ke=="function"?ke(Je($),U):ke,index:U,open:Or===U||tr===U||Le==="on",disabled:Ke},Ro,{children:s.jsx(Tr,A({"data-index":U},Lr,{className:gt(te.thumb,Lr.className,tr===U&&te.active,T===U&&te.focusVisible),style:A({},V,qe(U),Lr.style),children:s.jsx(Mr,A({"data-index":U,"aria-label":Re?Re(U):G,"aria-valuenow":Je($),"aria-labelledby":K,"aria-valuetext":Ot?Ot(Je($),U):Y,value:Z[U]},I))}))}),U)})]}))});process.env.NODE_ENV!=="production"&&(Xl.propTypes={"aria-label":Is(m.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":m.string,"aria-valuetext":Is(m.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:m.node,classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["primary","secondary","error","info","success","warning"]),m.string]),components:m.shape({Input:m.elementType,Mark:m.elementType,MarkLabel:m.elementType,Rail:m.elementType,Root:m.elementType,Thumb:m.elementType,Track:m.elementType,ValueLabel:m.elementType}),componentsProps:m.shape({input:m.oneOfType([m.func,m.object]),mark:m.oneOfType([m.func,m.object]),markLabel:m.oneOfType([m.func,m.object]),rail:m.oneOfType([m.func,m.object]),root:m.oneOfType([m.func,m.object]),thumb:m.oneOfType([m.func,m.object]),track:m.oneOfType([m.func,m.object]),valueLabel:m.oneOfType([m.func,m.shape({children:m.element,className:m.string,open:m.bool,style:m.object,value:m.number,valueLabelDisplay:m.oneOf(["auto","off","on"])})])}),defaultValue:m.oneOfType([m.arrayOf(m.number),m.number]),disabled:m.bool,disableSwap:m.bool,getAriaLabel:m.func,getAriaValueText:m.func,marks:m.oneOfType([m.arrayOf(m.shape({label:m.node,value:m.number.isRequired})),m.bool]),max:m.number,min:m.number,name:m.string,onChange:m.func,onChangeCommitted:m.func,orientation:m.oneOf(["horizontal","vertical"]),scale:m.func,shiftStep:m.number,size:m.oneOfType([m.oneOf(["small","medium"]),m.string]),slotProps:m.shape({input:m.oneOfType([m.func,m.object]),mark:m.oneOfType([m.func,m.object]),markLabel:m.oneOfType([m.func,m.object]),rail:m.oneOfType([m.func,m.object]),root:m.oneOfType([m.func,m.object]),thumb:m.oneOfType([m.func,m.object]),track:m.oneOfType([m.func,m.object]),valueLabel:m.oneOfType([m.func,m.shape({children:m.element,className:m.string,open:m.bool,style:m.object,value:m.number,valueLabelDisplay:m.oneOf(["auto","off","on"])})])}),slots:m.shape({input:m.elementType,mark:m.elementType,markLabel:m.elementType,rail:m.elementType,root:m.elementType,thumb:m.elementType,track:m.elementType,valueLabel:m.elementType}),step:m.number,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),tabIndex:m.number,track:m.oneOf(["inverted","normal",!1]),value:m.oneOfType([m.arrayOf(m.number),m.number]),valueLabelDisplay:m.oneOf(["auto","off","on"]),valueLabelFormat:m.oneOfType([m.func,m.string])});var yg="[object Number]";function _g(e){return typeof e=="number"||qt(e)&&Zt(e)==yg}const ql=He.observer(e=>{const t=L.useTheme(),r=e.valueLabelFormat||(o=>`${o}`);function n(o,a){a===e.velocity||!_g(a)||e.onVelocityChange(a)}return s.jsxs(s.Fragment,{children:[s.jsx(L.Typography,{sx:{textAlign:"center",fontSize:"14px",opacity:.8,color:t.palette.text.primary},children:r(e.velocity)}),s.jsx(Xl,{value:e.velocity,onChange:n,min:e.min,max:e.max,"aria-labelledby":"input-slider",disabled:e.disabled,sx:{"& .MuiSlider-valueLabelOpen":{zIndex:100,backgroundColor:"transparent",top:"0px"}}})]})}),Yl=He.observer(({store:e})=>{const{t}=Ft.useTranslation(),r=He.useLocalObservable(()=>({get valueLabelFormat(){return e.currentMotionType==="translate"?n=>`v=${t("Jogging.Cartesian.Translation.velocityMmPerSec.lb",{amount:n})}`:n=>`v=${t("Jogging.Cartesian.Rotation.velocityDegPerSec.lb",{amount:n})}`}}));return s.jsx(L.Stack,{sx:{margin:"0px 20px",marginTop:"24px",marginBottom:"24px"},children:s.jsx(L.Stack,{sx:{width:"380px",maxWidth:"90%",margin:"auto"},children:s.jsx(ql,{velocity:e.velocityInCurrentUnits,min:e.minVelocityInCurrentUnits,max:e.maxVelocityInCurrentUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,valueLabelFormat:r.valueLabelFormat})})})}),Zl=q.forwardRef(({label:e,value:t},r)=>s.jsxs(s.Fragment,{children:[e&&s.jsx(L.InputLabel,{children:e}),s.jsx(L.Chip,{ref:r,sx:{fontSize:"14px",opacity:.8,marginTop:"4px !important"},value:t})]})),bg=He.observer(({store:e})=>{const t=q.useRef(null);function r(){const n=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose;return n?$t.poseToWandelscriptString(n):""}return wr(()=>{t.current&&(t.current.textContent=r())}),s.jsx(L.Stack,{alignItems:"left",spacing:2,sx:{padding:"8px 16px",paddingTop:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:s.jsx(Zl,{label:"Pose",value:r(),ref:t})})});function Sg(){this.__data__=[],this.size=0}function Ql(e,t){return e===t||e!==e&&t!==t}function go(e,t){for(var r=e.length;r--;)if(Ql(e[r][0],t))return r;return-1}var xg=Array.prototype,vg=xg.splice;function wg(e){var t=this.__data__,r=go(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():vg.call(t,r,1),--this.size,!0}function Rg(e){var t=this.__data__,r=go(t,e);return r<0?void 0:t[r][1]}function jg(e){return go(this.__data__,e)>-1}function Cg(e,t){var r=this.__data__,n=go(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function At(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}At.prototype.clear=Sg;At.prototype.delete=wg;At.prototype.get=Rg;At.prototype.has=jg;At.prototype.set=Cg;function Ag(){this.__data__=new At,this.size=0}function Pg(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Og(e){return this.__data__.get(e)}function Tg(e){return this.__data__.has(e)}var Mg="[object AsyncFunction]",Ig="[object Function]",Eg="[object GeneratorFunction]",Lg="[object Proxy]";function ec(e){if(!Xt(e))return!1;var t=Zt(e);return t==Ig||t==Eg||t==Mg||t==Lg}var Jo=_t["__core-js_shared__"],ri=function(){var e=/[^.]+$/.exec(Jo&&Jo.keys&&Jo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function kg(e){return!!ri&&ri in e}var $g=Function.prototype,Ng=$g.toString;function Qt(e){if(e!=null){try{return Ng.call(e)}catch{}try{return e+""}catch{}}return""}var Fg=/[\\^$.*+?()[\]{}|]/g,Dg=/^\[object .+?Constructor\]$/,Ug=Function.prototype,Bg=Object.prototype,Jg=Ug.toString,Vg=Bg.hasOwnProperty,Gg=RegExp("^"+Jg.call(Vg).replace(Fg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function zg(e){if(!Xt(e)||kg(e))return!1;var t=ec(e)?Gg:Dg;return t.test(Qt(e))}function Wg(e,t){return e==null?void 0:e[t]}function er(e,t){var r=Wg(e,t);return zg(r)?r:void 0}var Zr=er(_t,"Map"),Qr=er(Object,"create");function Hg(){this.__data__=Qr?Qr(null):{},this.size=0}function Kg(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Xg="__lodash_hash_undefined__",qg=Object.prototype,Yg=qg.hasOwnProperty;function Zg(e){var t=this.__data__;if(Qr){var r=t[e];return r===Xg?void 0:r}return Yg.call(t,e)?t[e]:void 0}var Qg=Object.prototype,ey=Qg.hasOwnProperty;function ty(e){var t=this.__data__;return Qr?t[e]!==void 0:ey.call(t,e)}var ry="__lodash_hash_undefined__";function ny(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Qr&&t===void 0?ry:t,this}function Yt(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])}}Yt.prototype.clear=Hg;Yt.prototype.delete=Kg;Yt.prototype.get=Zg;Yt.prototype.has=ty;Yt.prototype.set=ny;function oy(){this.size=0,this.__data__={hash:new Yt,map:new(Zr||At),string:new Yt}}function ay(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 ay(t)?r[typeof t=="string"?"string":"hash"]:r.map}function sy(e){var t=yo(this,e).delete(e);return this.size-=t?1:0,t}function iy(e){return yo(this,e).get(e)}function ly(e){return yo(this,e).has(e)}function cy(e,t){var r=yo(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Pt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Pt.prototype.clear=oy;Pt.prototype.delete=sy;Pt.prototype.get=iy;Pt.prototype.has=ly;Pt.prototype.set=cy;var uy=200;function dy(e,t){var r=this.__data__;if(r instanceof At){var n=r.__data__;if(!Zr||n.length<uy-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Pt(n)}return r.set(e,t),this.size=r.size,this}function Rt(e){var t=this.__data__=new At(e);this.size=t.size}Rt.prototype.clear=Ag;Rt.prototype.delete=Pg;Rt.prototype.get=Og;Rt.prototype.has=Tg;Rt.prototype.set=dy;var fy="__lodash_hash_undefined__";function hy(e){return this.__data__.set(e,fy),this}function my(e){return this.__data__.has(e)}function Hn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Pt;++t<r;)this.add(e[t])}Hn.prototype.add=Hn.prototype.push=hy;Hn.prototype.has=my;function py(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 gy(e,t){return e.has(t)}var yy=1,_y=2;function tc(e,t,r,n,o,a){var i=r&yy,l=e.length,c=t.length;if(l!=c&&!(i&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var h=-1,f=!0,b=r&_y?new Hn:void 0;for(a.set(e,t),a.set(t,e);++h<l;){var y=e[h],_=t[h];if(n)var g=i?n(_,y,h,t,e,a):n(y,_,h,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(b){if(!py(t,function(v,R){if(!gy(b,R)&&(y===v||o(y,v,r,n,a)))return b.push(R)})){f=!1;break}}else if(!(y===_||o(y,_,r,n,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var ni=_t.Uint8Array;function by(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function Sy(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var xy=1,vy=2,wy="[object Boolean]",Ry="[object Date]",jy="[object Error]",Cy="[object Map]",Ay="[object Number]",Py="[object RegExp]",Oy="[object Set]",Ty="[object String]",My="[object Symbol]",Iy="[object ArrayBuffer]",Ey="[object DataView]",oi=Nt?Nt.prototype:void 0,Vo=oi?oi.valueOf:void 0;function Ly(e,t,r,n,o,a,i){switch(r){case Ey:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Iy:return!(e.byteLength!=t.byteLength||!a(new ni(e),new ni(t)));case wy:case Ry:case Ay:return Ql(+e,+t);case jy:return e.name==t.name&&e.message==t.message;case Py:case Ty:return e==t+"";case Cy:var l=by;case Oy:var c=n&xy;if(l||(l=Sy),e.size!=t.size&&!c)return!1;var u=i.get(e);if(u)return u==t;n|=vy,i.set(e,t);var d=tc(l(e),l(t),n,o,a,i);return i.delete(e),d;case My:if(Vo)return Vo.call(e)==Vo.call(t)}return!1}function ky(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 $y(e,t,r){var n=t(e);return yt(e)?n:ky(n,r(e))}function Ny(e,t){for(var r=-1,n=e==null?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}function Fy(){return[]}var Dy=Object.prototype,Uy=Dy.propertyIsEnumerable,ai=Object.getOwnPropertySymbols,By=ai?function(e){return e==null?[]:(e=Object(e),Ny(ai(e),function(t){return Uy.call(e,t)}))}:Fy;function Jy(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Vy="[object Arguments]";function si(e){return qt(e)&&Zt(e)==Vy}var rc=Object.prototype,Gy=rc.hasOwnProperty,zy=rc.propertyIsEnumerable,nc=si(function(){return arguments}())?si:function(e){return qt(e)&&Gy.call(e,"callee")&&!zy.call(e,"callee")};function Wy(){return!1}var oc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ii=oc&&typeof module=="object"&&module&&!module.nodeType&&module,Hy=ii&&ii.exports===oc,li=Hy?_t.Buffer:void 0,Ky=li?li.isBuffer:void 0,ua=Ky||Wy,Xy=9007199254740991,qy=/^(?:0|[1-9]\d*)$/;function ac(e,t){var r=typeof e;return t=t??Xy,!!t&&(r=="number"||r!="symbol"&&qy.test(e))&&e>-1&&e%1==0&&e<t}var Yy=9007199254740991;function Na(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Yy}var Zy="[object Arguments]",Qy="[object Array]",e1="[object Boolean]",t1="[object Date]",r1="[object Error]",n1="[object Function]",o1="[object Map]",a1="[object Number]",s1="[object Object]",i1="[object RegExp]",l1="[object Set]",c1="[object String]",u1="[object WeakMap]",d1="[object ArrayBuffer]",f1="[object DataView]",h1="[object Float32Array]",m1="[object Float64Array]",p1="[object Int8Array]",g1="[object Int16Array]",y1="[object Int32Array]",_1="[object Uint8Array]",b1="[object Uint8ClampedArray]",S1="[object Uint16Array]",x1="[object Uint32Array]",de={};de[h1]=de[m1]=de[p1]=de[g1]=de[y1]=de[_1]=de[b1]=de[S1]=de[x1]=!0;de[Zy]=de[Qy]=de[d1]=de[e1]=de[f1]=de[t1]=de[r1]=de[n1]=de[o1]=de[a1]=de[s1]=de[i1]=de[l1]=de[c1]=de[u1]=!1;function v1(e){return qt(e)&&Na(e.length)&&!!de[Zt(e)]}function w1(e){return function(t){return e(t)}}var sc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zr=sc&&typeof module=="object"&&module&&!module.nodeType&&module,R1=zr&&zr.exports===sc,Go=R1&&Gl.process,ci=function(){try{var e=zr&&zr.require&&zr.require("util").types;return e||Go&&Go.binding&&Go.binding("util")}catch{}}(),ui=ci&&ci.isTypedArray,ic=ui?w1(ui):v1,j1=Object.prototype,C1=j1.hasOwnProperty;function A1(e,t){var r=yt(e),n=!r&&nc(e),o=!r&&!n&&ua(e),a=!r&&!n&&!o&&ic(e),i=r||n||o||a,l=i?Jy(e.length,String):[],c=l.length;for(var u in e)C1.call(e,u)&&!(i&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||ac(u,c)))&&l.push(u);return l}var P1=Object.prototype;function O1(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||P1;return e===r}function T1(e,t){return function(r){return e(t(r))}}var M1=T1(Object.keys,Object),I1=Object.prototype,E1=I1.hasOwnProperty;function L1(e){if(!O1(e))return M1(e);var t=[];for(var r in Object(e))E1.call(e,r)&&r!="constructor"&&t.push(r);return t}function lc(e){return e!=null&&Na(e.length)&&!ec(e)}function Fa(e){return lc(e)?A1(e):L1(e)}function di(e){return $y(e,Fa,By)}var k1=1,$1=Object.prototype,N1=$1.hasOwnProperty;function F1(e,t,r,n,o,a){var i=r&k1,l=di(e),c=l.length,u=di(t),d=u.length;if(c!=d&&!i)return!1;for(var h=c;h--;){var f=l[h];if(!(i?f in t:N1.call(t,f)))return!1}var b=a.get(e),y=a.get(t);if(b&&y)return b==t&&y==e;var _=!0;a.set(e,t),a.set(t,e);for(var g=i;++h<c;){f=l[h];var v=e[f],R=t[f];if(n)var C=i?n(R,v,f,t,e,a):n(v,R,f,e,t,a);if(!(C===void 0?v===R||o(v,R,r,n,a):C)){_=!1;break}g||(g=f=="constructor")}if(_&&!g){var k=e.constructor,j=t.constructor;k!=j&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof j=="function"&&j instanceof j)&&(_=!1)}return a.delete(e),a.delete(t),_}var da=er(_t,"DataView"),fa=er(_t,"Promise"),ha=er(_t,"Set"),ma=er(_t,"WeakMap"),fi="[object Map]",D1="[object Object]",hi="[object Promise]",mi="[object Set]",pi="[object WeakMap]",gi="[object DataView]",U1=Qt(da),B1=Qt(Zr),J1=Qt(fa),V1=Qt(ha),G1=Qt(ma),kt=Zt;(da&&kt(new da(new ArrayBuffer(1)))!=gi||Zr&&kt(new Zr)!=fi||fa&&kt(fa.resolve())!=hi||ha&&kt(new ha)!=mi||ma&&kt(new ma)!=pi)&&(kt=function(e){var t=Zt(e),r=t==D1?e.constructor:void 0,n=r?Qt(r):"";if(n)switch(n){case U1:return gi;case B1:return fi;case J1:return hi;case V1:return mi;case G1:return pi}return t});var z1=1,yi="[object Arguments]",_i="[object Array]",vn="[object Object]",W1=Object.prototype,bi=W1.hasOwnProperty;function H1(e,t,r,n,o,a){var i=yt(e),l=yt(t),c=i?_i:kt(e),u=l?_i:kt(t);c=c==yi?vn:c,u=u==yi?vn:u;var d=c==vn,h=u==vn,f=c==u;if(f&&ua(e)){if(!ua(t))return!1;i=!0,d=!1}if(f&&!d)return a||(a=new Rt),i||ic(e)?tc(e,t,r,n,o,a):Ly(e,t,c,r,n,o,a);if(!(r&z1)){var b=d&&bi.call(e,"__wrapped__"),y=h&&bi.call(t,"__wrapped__");if(b||y){var _=b?e.value():e,g=y?t.value():t;return a||(a=new Rt),o(_,g,r,n,a)}}return f?(a||(a=new Rt),F1(e,t,r,n,o,a)):!1}function _o(e,t,r,n,o){return e===t?!0:e==null||t==null||!qt(e)&&!qt(t)?e!==e&&t!==t:H1(e,t,r,n,_o,o)}function K1(e,t){return _o(e,t)}const X1=({store:e})=>{const{t}=Ft.useTranslation(),[r,n]=q.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached);wr(()=>{const a=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;K1(r,a)||n(a)});const o=[];return r.forEach((a,i)=>{a&&o.push(i)}),o.length?s.jsx(L.Typography,{color:"error",sx:{padding:"1rem",textAlign:"center"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:o.map(a=>a+1).join(", ")})}):null},q1=He.observer(({store:e})=>{const{t}=Ft.useTranslation();function r(h,f){(f==="translate"||f==="rotate")&&e.setSelectedCartesianMotionType(f)}nl(()=>[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}),q.useEffect(()=>(e.jogger.setJoggingMode("increment"),window.addEventListener("blur",o),()=>{window.removeEventListener("blur",o)}),[]);async function n(){e.jogger.setJoggingMode(e.activeDiscreteIncrement?"increment":"cartesian",{tcpId:e.selectedTcpId,coordSystemId:e.activeCoordSystemId})}async function o(){e.jogger.setJoggingMode("increment")}async function a(h,f){const b=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose,y=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;b&&await e.withMotionLock(async()=>{await e.jogger.runIncrementalCartesianMotion({currentTcpPose:b,currentJoints:y,coordSystemId:e.activeCoordSystemId,velocityInRelevantUnits:e.velocityInCurrentUnits,axis:h.axis,direction:h.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:f.mm}:{type:"rotate",distanceRads:$t.degreesToRadians(f.degrees)}})})}async function i(h){if(!e.isLocked){if(n(),e.activeDiscreteIncrement)return a(h,e.activeDiscreteIncrement);h.motionType==="translate"?await e.jogger.startTCPTranslation({axis:h.axis,direction:h.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:h.axis,direction:h.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function l(){e.isLocked||e.activeDiscreteIncrement||await e.jogger.stop()}const c=[{id:"x",color:"#F14D42",icon:s.jsx(Up,{})},{id:"y",color:"#42A705",icon:s.jsx(Jp,{})},{id:"z",color:"#0075FF",icon:s.jsx(Gp,{})}];function u(h){return t("General.mm.variable",{amount:h.toFixed(1)})}function d(h){return t("General.degree.variable",{amount:$t.radiansToDegrees(h).toFixed(1)})}return s.jsxs(L.Stack,{onMouseEnter:n,onMouseLeave:o,children:[s.jsx(bg,{store:e}),s.jsx(Xp,{store:e}),s.jsxs(L.Stack,{width:"80%",maxWidth:"296px",margin:"auto",marginTop:"16px",children:[s.jsxs(L.ToggleButtonGroup,{value:e.selectedCartesianMotionType,onChange:r,exclusive:!0,"aria-label":t("Jogging.Cartesian.MotionType.lb"),children:[s.jsx(L.ToggleButton,{value:"translate",children:t("Jogging.Cartesian.Translation.bt")}),s.jsx(L.ToggleButton,{value:"rotate",children:t("Jogging.Cartesian.Rotation.bt")})]}),e.selectedCartesianMotionType==="translate"&&c.map(h=>s.jsx(ca,{color:h.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[h.icon,s.jsx(L.Typography,{sx:{fontSize:"24px",color:"white"},children:h.id.toUpperCase()})]}),getDisplayedValue:()=>{var f;return u(((f=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:f.position[h.id])||0)},startJogging:f=>i({axis:h.id,motionType:"translate",direction:f}),stopJogging:l},h.id)),e.selectedCartesianMotionType==="rotate"&&c.map(h=>s.jsx(ca,{color:h.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[s.jsx(Fp,{}),s.jsx(L.Typography,{sx:{fontSize:"24px",color:"white"},children:h.id.toUpperCase()})]}),getDisplayedValue:()=>{var f,b;return d(((b=(f=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:f.orientation)==null?void 0:b[h.id])||0)},startJogging:f=>i({axis:h.id,motionType:"rotate",direction:f}),stopJogging:l},h.id))]}),s.jsx(Yl,{store:e}),s.jsx(X1,{store:e})]})}),Y1=He.observer(({store:e})=>{const t=q.useRef(null);Ft.useTranslation();function r(){const{joints:n}=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;return`{${n.map(o=>parseFloat(o.toFixed(4))).join(", ")}}`}return wr(()=>{t.current&&(t.current.textContent=r())}),s.jsx(L.Stack,{alignItems:"left",spacing:2,sx:{padding:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:s.jsx(Zl,{label:"Pose",value:r(),ref:t})})}),Z1=He.observer(({store:e})=>{q.useEffect(()=>(e.jogger.setJoggingMode("increment"),window.addEventListener("blur",r),()=>{window.removeEventListener("blur",r)}),[]);async function t(){e.jogger.setJoggingMode("joint")}async function r(){e.jogger.setJoggingMode("increment")}async function n(a){await e.jogger.startJointRotation({joint:a.joint,direction:a.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function o(){await e.jogger.stop()}return s.jsxs(L.Stack,{onMouseEnter:t,onMouseLeave:r,children:[s.jsx(Y1,{store:e}),s.jsx(L.Stack,{children:e.jogger.motionStream.joints.map(a=>{var u;const i=(u=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:u[a.index],l=(i==null?void 0:i.lower_limit)!==void 0?$t.radiansToDegrees(i.lower_limit):void 0,c=(i==null?void 0:i.upper_limit)!==void 0?$t.radiansToDegrees(i.upper_limit):void 0;return s.jsxs(L.Stack,{direction:"row",alignItems:"center",gap:2,marginTop:"0.8rem",children:[s.jsx(L.Typography,{sx:{flexGrow:1,textAlign:"right"},children:`J${a.index+1}`}),s.jsx(Wl,{disabled:e.isLocked,lowerLimitDegs:l,upperLimitDegs:c,getValueDegs:()=>{const d=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[a.index];return d!==void 0?$t.radiansToDegrees(d):void 0},startJogging:d=>n({joint:a.index,direction:d}),stopJogging:o},a.index),s.jsx(L.Typography,{sx:{flexGrow:1}})]},`joint-${a.index}`)})}),s.jsx(Yl,{store:e})]})});var Si=function(){try{var e=er(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Q1(e,t,r){t=="__proto__"&&Si?Si(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function e_(e,t,r,n){for(var o=-1,a=e==null?0:e.length;++o<a;){var i=e[o];t(n,i,r(i),e)}return n}function t_(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),l=i.length;l--;){var c=i[++o];if(r(a[c],c,a)===!1)break}return t}}var r_=t_();function n_(e,t){return e&&r_(e,t,Fa)}function o_(e,t){return function(r,n){if(r==null)return r;if(!lc(r))return e(r,n);for(var o=r.length,a=-1,i=Object(r);++a<o&&n(i[a],a,i)!==!1;);return r}}var a_=o_(n_);function s_(e,t,r,n){return a_(e,function(o,a,i){t(n,o,r(o),i)}),n}var i_=1,l_=2;function c_(e,t,r,n){var o=r.length,a=o;if(e==null)return!a;for(e=Object(e);o--;){var i=r[o];if(i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++o<a;){i=r[o];var l=i[0],c=e[l],u=i[1];if(i[2]){if(c===void 0&&!(l in e))return!1}else{var d=new Rt,h;if(!(h===void 0?_o(u,c,i_|l_,n,d):h))return!1}}return!0}function cc(e){return e===e&&!Xt(e)}function u_(e){for(var t=Fa(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,cc(o)]}return t}function uc(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function d_(e){var t=u_(e);return t.length==1&&t[0][2]?uc(t[0][0],t[0][1]):function(r){return r===e||c_(r,e,t)}}var f_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,h_=/^\w*$/;function Da(e,t){if(yt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||po(e)?!0:h_.test(e)||!f_.test(e)||t!=null&&e in Object(t)}var m_="Expected a function";function Ua(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(m_);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(Ua.Cache||Pt),r}Ua.Cache=Pt;var p_=500;function g_(e){var t=Ua(e,function(n){return r.size===p_&&r.clear(),n}),r=t.cache;return t}var y_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,__=/\\(\\)?/g,b_=g_(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(y_,function(r,n,o,a){t.push(o?a.replace(__,"$1"):n||r)}),t});function S_(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 x_=1/0,xi=Nt?Nt.prototype:void 0,vi=xi?xi.toString:void 0;function dc(e){if(typeof e=="string")return e;if(yt(e))return S_(e,dc)+"";if(po(e))return vi?vi.call(e):"";var t=e+"";return t=="0"&&1/e==-x_?"-0":t}function fc(e){return e==null?"":dc(e)}function hc(e,t){return yt(e)?e:Da(e,t)?[e]:b_(fc(e))}var v_=1/0;function bo(e){if(typeof e=="string"||po(e))return e;var t=e+"";return t=="0"&&1/e==-v_?"-0":t}function mc(e,t){t=hc(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[bo(t[r++])];return r&&r==n?e:void 0}function w_(e,t,r){var n=e==null?void 0:mc(e,t);return n===void 0?r:n}function R_(e,t){return e!=null&&t in Object(e)}function j_(e,t,r){t=hc(t,e);for(var n=-1,o=t.length,a=!1;++n<o;){var i=bo(t[n]);if(!(a=e!=null&&r(e,i)))break;e=e[i]}return a||++n!=o?a:(o=e==null?0:e.length,!!o&&Na(o)&&ac(i,o)&&(yt(e)||nc(e)))}function C_(e,t){return e!=null&&j_(e,t,R_)}var A_=1,P_=2;function O_(e,t){return Da(e)&&cc(t)?uc(bo(e),t):function(r){var n=w_(r,e);return n===void 0&&n===t?C_(r,e):_o(t,n,A_|P_)}}function T_(e){return e}function M_(e){return function(t){return t==null?void 0:t[e]}}function I_(e){return function(t){return mc(t,e)}}function E_(e){return Da(e)?M_(bo(e)):I_(e)}function L_(e){return typeof e=="function"?e:e==null?T_:typeof e=="object"?yt(e)?O_(e[0],e[1]):d_(e):E_(e)}function k_(e,t){return function(r,n){var o=yt(r)?e_:s_,a={};return o(r,e,L_(n),a)}}var wn=k_(function(e,t,r){Q1(e,r,t)}),$_=0;function N_(e){var t=++$_;return fc(e)+t}const pa=[{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}],F_=[{id:"continuous"},...pa];class Ba{constructor(t,r,n,o){var a,i;this.jogger=t,this.motionGroupSpec=r,this.coordSystems=n,this.tcps=o,this.selectedTabId="cartesian",this.locks=new Set,this.selectedCoordSystemId="world",this.selectedTcpId="",this.selectedOrientation="coordsys",this.selectedIncrementId="continuous",this.selectedCartesianMotionType="translate",this.incrementJoggingInProgress=!1,this.translationVelocityMmPerSec=10,this.rotationVelocityDegPerSec=1,this.minTranslationVelocityMmPerSec=5,this.maxTranslationVelocityMmPerSec=250,this.minRotationVelocityDegPerSec=1,this.maxRotationVelocityDegPerSec=60,this.disposers=[];for(const l of n)if(l.coordinate_system===""){l.coordinate_system="world";break}this.selectedCoordSystemId=((a=n[0])==null?void 0:a.coordinate_system)||"world",this.selectedTcpId=((i=o[0])==null?void 0:i.id)||"",br.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(br.autorun(()=>this.saveToLocalStorage())),window.joggingStore=this}static async loadFor(t){const{nova:r}=t,[n,{coordinatesystems:o},{tcps:a}]=await Promise.all([r.api.motionGroupInfos.getMotionGroupSpecification(t.motionGroupId),r.api.coordinateSystems.listCoordinateSystems("ROTATION_VECTOR"),r.api.motionGroupInfos.listTcps(t.motionGroupId,"ROTATION_VECTOR")]);return new Ba(t,n,o||[],a||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}loadFromLocalStorage(){const t=$t.tryParseJson(localStorage.getItem("joggingToolStore"));t&&(this.tabsById[t.selectedTabId]&&(this.selectedTabId=t.selectedTabId),this.coordSystemsById[t.selectedCoordSystemId]&&(this.selectedCoordSystemId=t.selectedCoordSystemId),this.tcpsById[t.selectedTcpId]&&(this.selectedTcpId=t.selectedTcpId),this.incrementOptionsById[t.selectedIncrementId]&&(this.selectedIncrementId=t.selectedIncrementId),["translate","rotate"].includes(t.selectedCartesianMotionType)&&(this.selectedCartesianMotionType=t.selectedCartesianMotionType),["coordsys","tool"].includes(t.selectedOrientation)&&(this.selectedOrientation=t.selectedOrientation))}saveToLocalStorage(){localStorage.setItem("joggingToolStore",JSON.stringify(this.localStorageSave))}get isLocked(){return this.locks.size>0}get localStorageSave(){return{selectedTabId:this.selectedTabId,selectedCoordSystemId:this.selectedCoordSystemId,selectedTcpId:this.selectedTcpId,selectedOrientation:this.selectedOrientation,selectedIncrementId:this.selectedIncrementId,selectedCartesianMotionType:this.selectedCartesianMotionType}}get tabs(){return[{id:"cartesian",label:"Cartesian"},{id:"joint",label:"Joint"}]}get incrementOptions(){return F_}get discreteIncrementOptions(){return pa}get incrementOptionsById(){return wn(this.incrementOptions,t=>t.id)}get tabsById(){return wn(this.tabs,t=>t.id)}get currentTab(){return this.tabsById[this.selectedTabId]||this.tabs[0]}get tabIndex(){return this.tabs.indexOf(this.currentTab)}get coordSystemsById(){return wn(this.coordSystems,t=>t.coordinate_system)}get selectedCoordSystem(){return this.coordSystemsById[this.selectedCoordSystemId]}get activeCoordSystemId(){return this.selectedOrientation==="tool"?"tool":this.selectedCoordSystemId}get tcpsById(){return wn(this.tcps,t=>t.id)}get activeDiscreteIncrement(){return this.selectedOrientation==="tool"?void 0:pa.find(t=>t.id===this.selectedIncrementId)}get rotationVelocityRadsPerSec(){return this.rotationVelocityDegPerSec*Math.PI/180}get velocityInCurrentUnits(){return this.currentMotionType==="translate"?this.translationVelocityMmPerSec:this.rotationVelocityDegPerSec}get minVelocityInCurrentUnits(){return this.currentMotionType==="translate"?this.minTranslationVelocityMmPerSec:this.minRotationVelocityDegPerSec}get maxVelocityInCurrentUnits(){return this.currentMotionType==="translate"?this.maxTranslationVelocityMmPerSec:this.maxRotationVelocityDegPerSec}get currentMotionType(){return this.selectedTabId==="cartesian"&&this.selectedCartesianMotionType==="translate"?"translate":"rotate"}onTabChange(t,r){const n=this.tabs[r]||this.tabs[0];this.selectedTabId=n.id}setSelectedCoordSystemId(t){this.selectedCoordSystemId=t}setSelectedTcpId(t){this.selectedTcpId=t}setSelectedOrientation(t){this.selectedOrientation=t}setSelectedIncrementId(t){this.selectedIncrementId=t}setIncrementJoggingInProgress(t){this.incrementJoggingInProgress=t}setVelocityFromSlider(t){this.currentMotionType==="translate"?this.translationVelocityMmPerSec=t:this.rotationVelocityDegPerSec=t}setSelectedCartesianMotionType(t){this.selectedCartesianMotionType=t}async withMotionLock(t){const r=N_();this.locks.add(r);try{return await t()}finally{this.locks.delete(r)}}}const D_=en(He.observer(e=>{var a,i,l,c;const t=Pc.isString(e.nova)?new $t.NovaClient({instanceUrl:e.nova}):e.nova,r=He.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function n(){br.runInAction(()=>{r.loadingError=null,r.joggingStore=null});try{const u=await t.connectJogger(e.motionGroupId),d=await Ba.loadFor(u);br.runInAction(()=>{r.joggingStore=d}),e.onSetup&&e.onSetup(d)}catch(u){r.loadingError=u}}if(q.useEffect(()=>(n(),()=>{var u;(u=r.joggingStore)==null||u.dispose()}),[e.nova]),q.useEffect(()=>{if(!r.joggingStore)return;const{currentTab:u,selectedTcpId:d,activeCoordSystemId:h,activeDiscreteIncrement:f}=r.joggingStore;if(u.id!=="cartesian"&&u.id!=="joint")return;const b={tcpId:d,coordSystemId:h};f&&u.id==="cartesian"?r.joggingStore.jogger.setJoggingMode("increment",b):r.joggingStore.jogger.setJoggingMode(u.id,b)},[(a=r.joggingStore)==null?void 0:a.currentTab,(i=r.joggingStore)==null?void 0:i.selectedTcpId,(l=r.joggingStore)==null?void 0:l.activeCoordSystemId,(c=r.joggingStore)==null?void 0:c.activeDiscreteIncrement]),!r.joggingStore||r.loadingError)return s.jsx(wi,{children:s.jsx(Qi,{message:"Loading jogging",error:r.loadingError})});const{joggingStore:o}=r;return s.jsx(wi,{children:s.jsxs(L.Stack,{flexGrow:1,children:[s.jsx(L.Tabs,{value:o.tabIndex,onChange:o.onTabChange,children:o.tabs.map(u=>s.jsx(L.Tab,{label:u.label,id:`jogging-tab-${u.id}`,"aria-controls":`jogging-tab-${u.id}`},u.id))}),s.jsxs(L.Stack,{flexGrow:1,children:[o.currentTab.id==="cartesian"&&s.jsx(q1,{store:o}),o.currentTab.id==="joint"&&s.jsx(Z1,{store:o}),e.children]})]})})}));function wi({children:e}){return s.jsx(L.Stack,{sx:{maxWidth:"460px",minWidth:"350px",overflowY:"auto",position:"relative",height:"100%"},children:s.jsx(L.Paper,{sx:{height:"100%"},children:e})})}function U_(){const e=window.location.href;return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function B_({baseUrl:e=U_(),...t}){return s.jsxs(L.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:[s.jsx(L.DialogTitle,{id:"no-motion-group-modal-title",children:"No motion group found"}),s.jsxs(L.DialogContent,{sx:{marginTop:"3rem",marginBottom:"1.5rem",textAlign:"center"},children:[s.jsx(L.Typography,{color:"#fff",children:"Found no devices to connect to."}),s.jsx(L.Typography,{color:"#fff",children:"Please ensure a motion group has been created."})]}),s.jsx(L.DialogActions,{children:s.jsxs(L.Stack,{width:"100%",maxWidth:"300px",margin:"auto",marginBottom:"2rem",children:[s.jsx(L.Button,{href:`${e}/settings`,variant:"contained",sx:{borderRadius:"8px",width:"100%"},children:"Go to settings app"}),s.jsx(L.Button,{href:`${e}`,variant:"text",sx:{marginTop:"1rem",color:"#fff",textDecoration:"underline",fontSize:"0.75rem"},children:"Back to Homescreen"})]})})]})}const J_=Array(6).fill(2*Math.PI),ht={white:"#FFFFFF",midnightblue:"#001337",lightbuttonblue:"#47D3FF",midnightgray:"#DDE0E4",midnightgray500:"#828B9B",skyblue500:"#06B8F1",skyblue600:"#0094CE",darkishblue:"#262F42",darkestblue:"#101629",grayishblue:"#505968",darkgrayishblue:"#363c4b",scaryred:"#FF0E65",tealGreen:"#1AC0B2",magenta:"#EA3785"},V_={mode:"dark",colors:{primary:ht.skyblue500,textDefault:ht.white,textSubtle:ht.midnightgray,background:{default:ht.darkishblue,panel:ht.darkestblue}}},G_={mode:"light",colors:{primary:ht.skyblue500,textDefault:ht.darkishblue,textSubtle:ht.midnightgray,background:{default:ht.skyblue500,panel:ht.white}}};function z_(e){var o,a,i,l;let t=!0;((o=e.palette)==null?void 0:o.mode)==="light"?t=!1:((a=e.palette)==null?void 0:a.mode)!=="dark"&&(t=!(typeof window<"u"&&((l=(i=window.matchMedia)==null?void 0:i.call(window,"(prefers-color-scheme: light)"))==null?void 0:l.matches)));const r=t?V_:G_,n=la({palette:{mode:r.mode,primary:{main:r.colors.primary},background:{default:r.colors.background.default,paper:r.colors.background.panel}},typography:{allVariants:{color:r.colors.textDefault}},components:{MuiSelect:{styleOverrides:{root:{backgroundColor:t?"#505968":void 0,borderRadius:"10px",color:"currentColor","& > div":{padding:"4px 16px"},"& fieldset":{border:t?"none":void 0}}}},MuiChip:{styleOverrides:{root:{backgroundColor:t?"#505968":void 0,borderRadius:"10px",color:"currentColor"}}},MuiToggleButtonGroup:{styleOverrides:{root:{"& > button":{borderRadius:"8px",textTransform:"none",paddingTop:"4px",paddingBottom:"4px",width:"100%",borderWidth:0,backgroundColor:t?"#3d4455":void 0,color:t?"rgba(255, 255, 255, 0.8)":void 0,"&.Mui-selected":t?{color:"white",backgroundColor:"#505968"}:void 0}}}},MuiTabs:{styleOverrides:{root:{backgroundColor:t?"#101629":void 0,minHeight:"42px"}}},MuiTab:{styleOverrides:{root:{minHeight:"42px",textTransform:"none","&.Mui-selected":t?{color:"white",backgroundColor:"#404554"}:void 0}}}},nova:r});return e?la(n,e):n}exports.JoggingCartesianAxisControl=ca;exports.JoggingJointRotationControl=Wl;exports.JoggingPanel=D_;exports.NoMotionGroupModal=B_;exports.PresetEnvironment=lf;exports.Robot=sf;exports.SafetyZonesRenderer=df;exports.SupportedRobot=ol;exports.VelocitySlider=ql;exports.WandelscriptEditor=$d;exports.createNovaMuiTheme=z_;exports.defaultAxisConfig=J_;exports.defaultGetModel=Sa;exports.useAnimationFrame=wr;exports.useAutorun=rl;exports.useMounted=eo;exports.useReaction=nl;
|
|
84
84
|
//# sourceMappingURL=index.cjs.map
|