@wandelbots/wandelbots-js-react-components 2.27.1-pr.feature-add-cycle-timer.368.c18c8bd → 2.27.1-pr.feature-add-cycle-timer.368.5bd2083

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.
@@ -1 +1 @@
1
- {"version":3,"file":"CycleTimer.d.ts","sourceRoot":"","sources":["../../src/components/CycleTimer.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,eAAe;IAC9B,kFAAkF;IAClF,eAAe,EAAE,CAAC,aAAa,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,IAAI,KAAK,IAAI,CAAA;IAC1E,oEAAoE;IACpE,UAAU,CAAC,EAAE,MAAM,IAAI,CAAA;IACvB,uEAAuE;IACvE,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,kCAAkC;IAClC,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,CAAA;IAC7B,qFAAqF;IACrF,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,UAAU,8EAShB,eAAe;;CAiPrB,CAAA"}
1
+ {"version":3,"file":"CycleTimer.d.ts","sourceRoot":"","sources":["../../src/components/CycleTimer.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,eAAe;IAC9B,kFAAkF;IAClF,eAAe,EAAE,CAAC,aAAa,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,IAAI,KAAK,IAAI,CAAA;IAC1E,oEAAoE;IACpE,UAAU,CAAC,EAAE,MAAM,IAAI,CAAA;IACvB,uEAAuE;IACvE,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,kCAAkC;IAClC,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,CAAA;IAC7B,qFAAqF;IACrF,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,UAAU,8EAShB,eAAe;;CAgPrB,CAAA"}
package/dist/index.cjs CHANGED
@@ -133,7 +133,7 @@ Avoid returning a new reference inside your input selector, e.g.
133
133
  `));return e.svgRef}function Yw(){const e=cm();return F.useCallback(t=>`${e}-gradient-${t}`,[e])}function Qw(){const e=cm();return F.useCallback(t=>`${e}-gradient-${t}-object-bound`,[e])}var Ji,Bd;function Xw(){if(Bd)return Ji;Bd=1;var e=4,t=.001,r=1e-7,n=10,a=11,s=1/(a-1),o=typeof Float32Array=="function";function i(f,g){return 1-3*g+3*f}function l(f,g){return 3*g-6*f}function c(f){return 3*f}function u(f,g,S){return((i(g,S)*f+l(g,S))*f+c(g))*f}function d(f,g,S){return 3*i(g,S)*f*f+2*l(g,S)*f+c(g)}function h(f,g,S,T,O){var C,E,R=0;do E=g+(S-g)/2,C=u(E,T,O)-f,C>0?S=E:g=E;while(Math.abs(C)>r&&++R<n);return E}function p(f,g,S,T){for(var O=0;O<e;++O){var C=d(g,S,T);if(C===0)return g;var E=u(g,S,T)-f;g-=E/C}return g}function m(f){return f}return Ji=function(g,S,T,O){if(!(0<=g&&g<=1&&0<=T&&T<=1))throw new Error("bezier x values must be in [0, 1] range");if(g===S&&T===O)return m;for(var C=o?new Float32Array(a):new Array(a),E=0;E<a;++E)C[E]=u(E*s,g,T);function R(P){for(var _=0,B=1,b=a-1;B!==b&&C[B]<=P;++B)_+=s;--B;var A=(P-C[B])/(C[B+1]-C[B]),z=_+A*s,I=d(z,g,T);return I>=t?p(P,z,g,T):I===0?z:h(P,_,_+s,g,T)}return function(_){return _===0?0:_===1?1:u(R(_),S,O)}},Ji}var Zw=Xw();const eC=fy(Zw),tC=300,rC=eC(.66,0,.34,1);var Hn=0,Va=0,ma=0,um=1e3,po,Ea,fo=0,Gr=0,ri=0,Ha=typeof performance=="object"&&performance.now?performance:Date,dm=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Dc(){return Gr||(dm(nC),Gr=Ha.now()+ri)}function nC(){Gr=0}function mo(){this._call=this._time=this._next=null}mo.prototype=hm.prototype={constructor:mo,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Dc():+r)+(t==null?0:+t),!this._next&&Ea!==this&&(Ea?Ea._next=this:po=this,Ea=this),this._call=e,this._time=r,_l()},stop:function(){this._call&&(this._call=null,this._time=1/0,_l())}};function hm(e,t,r){var n=new mo;return n.restart(e,t,r),n}function El(){Dc(),++Hn;for(var e=po,t;e;)(t=Gr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Hn}function zd(){Gr=(fo=Ha.now())+ri,Hn=Va=0;try{El()}finally{Hn=0,sC(),Gr=0}}function aC(){var e=Ha.now(),t=e-fo;t>um&&(ri-=t,fo=e)}function sC(){for(var e,t=po,r,n=1/0;t;)t._call?(n>t._time&&(n=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:po=r);Ea=e,_l(n)}function _l(e){if(!Hn){Va&&(Va=clearTimeout(Va));var t=e-Gr;t>24?(e<1/0&&(Va=setTimeout(zd,e-Ha.now()-ri)),ma&&(ma=clearInterval(ma))):(ma||(fo=Ha.now(),ma=setInterval(aC,um)),Hn=1,dm(zd))}}function oC(e,t,r){var n=new mo;return t=t==null?0:+t,n.restart(a=>{n.stop(),e(a+t)},t,r),n}class iC{constructor(t,r,n){this.duration=void 0,this.elapsed=0,this.easingFn=void 0,this.timer=null,this.onTickCallback=void 0,this.duration=t,this.easingFn=r,this.onTickCallback=n,this.resume()}get running(){return this.timer!==null}timerCallback(t){this.elapsed=Math.min(t,this.duration);const r=this.duration===0?1:this.elapsed/this.duration,n=this.easingFn(r);this.onTickCallback(n),this.elapsed>=this.duration&&this.stop()}resume(){if(this.running||this.elapsed>=this.duration)return this;const t=Dc()-this.elapsed;return this.timer=hm(r=>this.timerCallback(r),0,t),El(),this}stop(){return this.running?(this.timer&&(this.timer.stop(),this.timer=null),this):this}finish(){return this.stop(),oC(()=>this.timerCallback(this.duration)),El(),this}}function lC(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let a=0;a<r.length;a+=1){const s=r[a];if(!Object.prototype.hasOwnProperty.call(t,s)||!Object.is(e[s],t[s]))return!1}return!0}function cC(e,{createInterpolator:t,applyProps:r,skip:n,initialProps:a=e}){const s=F.useRef(a),o=F.useRef(null),i=F.useRef(null),l=F.useRef(e);or(()=>{l.current=e},[e]),or(()=>{var d;n&&((d=o.current)==null||d.finish(),o.current=null,i.current=null,s.current=e)},[e,n]);const c=F.useCallback(d=>{const h=s.current,p=t(h,e);o.current=new iC(tC,rC,m=>{const f=p(m);s.current=f,r(d,f)})},[r,t,e]);return F.useCallback(d=>{var p,m,f,g;if(d===null){(p=o.current)==null||p.stop();return}const h=i.current;if(h===d){if(lC(l.current,e)){(m=o.current)==null||m.resume();return}(f=o.current)==null||f.stop()}h&&((g=o.current)==null||g.stop()),i.current=d,(o.current||!n)&&c(d)},[c,e,n])}function uC(e,{createInterpolator:t,transformProps:r,applyProps:n,skip:a,initialProps:s=e,ref:o}){const i=r??(u=>u),l=cC(e,{initialProps:s,createInterpolator:t,applyProps:(u,d)=>n(u,i(d)),skip:a});return K({},r(a?e:s),{ref:Qp(l,o)})}function Gd(e){const{isReversed:t,gradientId:r,size:n,direction:a,scale:s,colorMap:o}=e;return n<=0?null:x.jsx("linearGradient",{id:r,x1:"0",x2:"0",y1:"0",y2:"0",[`${a}${t?1:2}`]:`${n}px`,gradientUnits:"userSpaceOnUse",children:o.thresholds.map((i,l)=>{const c=s(i);if(c===void 0)return null;const u=t?1-c/n:c/n;return Number.isNaN(u)?null:x.jsxs(F.Fragment,{children:[x.jsx("stop",{offset:u,stopColor:o.colors[l],stopOpacity:1}),x.jsx("stop",{offset:u,stopColor:o.colors[l+1],stopOpacity:1})]},i.toString()+l)})})}const dC=10;function Hd(e){const{gradientUnits:t,isReversed:r,gradientId:n,size:a,direction:s,scale:o,colorScale:i,colorMap:l}=e,c=[l.min??0,l.max??100],u=c.map(o).filter(m=>m!==void 0);if(u.length!==2)return null;const d=typeof c[0]=="number"?Dt(c[0],c[1]):Oc(c[0],c[1]),h=Math.round((Math.max(...u)-Math.min(...u))/dC),p=`${c[0]}-${c[1]}-`;return x.jsx("linearGradient",{id:n,x1:"0",x2:"0",y1:"0",y2:"0",[`${s}${r?1:2}`]:t==="objectBoundingBox"?1:`${a}px`,gradientUnits:t??"userSpaceOnUse",children:Array.from({length:h+1},(m,f)=>{const g=d(f/h);if(g===void 0)return null;const S=o(g);if(S===void 0)return null;const T=r?1-S/a:S/a,O=i(g);return O===null?null:x.jsx("stop",{offset:T,stopColor:O,stopOpacity:1},p+f)})})}const hC=10,pC=e=>e?{x1:"1",x2:"0",y1:"0",y2:"0"}:{x1:"0",x2:"1",y1:"0",y2:"0"};function Wi(e){const{isReversed:t,gradientId:r,colorScale:n,colorMap:a}=e,s=[a.min??0,a.max??100],o=typeof s[0]=="number"?Dt(s[0],s[1]):Oc(s[0],s[1]),i=hC,l=`${s[0]}-${s[1]}-`;return x.jsx("linearGradient",K({id:r},pC(t),{gradientUnits:"objectBoundingBox",children:Array.from({length:i+1},(c,u)=>{const d=u/i,h=o(d);if(h===void 0)return null;const p=n(h);return p===null?null:x.jsx("stop",{offset:d,stopColor:p,stopOpacity:1},l+u)})}))}function fC(){const{top:e,height:t,bottom:r,left:n,width:a,right:s}=lm(),o=e+t+r,i=n+a+s,l=Yw(),c=Qw(),{xAxis:u,xAxisIds:d}=qw(),{yAxis:h,yAxisIds:p}=Jw(),{zAxis:m,zAxisIds:f}=Ww(),g=p.filter(O=>h[O].colorMap!==void 0),S=d.filter(O=>u[O].colorMap!==void 0),T=f.filter(O=>m[O].colorMap!==void 0);return g.length===0&&S.length===0&&T.length===0?null:x.jsxs("defs",{children:[g.map(O=>{const C=l(O),E=c(O),{colorMap:R,scale:P,colorScale:_,reverse:B}=h[O];return(R==null?void 0:R.type)==="piecewise"?x.jsx(Gd,{isReversed:!B,scale:P,colorMap:R,size:o,gradientId:C,direction:"y"},C):(R==null?void 0:R.type)==="continuous"?x.jsxs(F.Fragment,{children:[x.jsx(Hd,{isReversed:!B,scale:P,colorScale:_,colorMap:R,size:o,gradientId:C,direction:"y"}),x.jsx(Wi,{isReversed:B,colorScale:_,colorMap:R,gradientId:E})]},C):null}),S.map(O=>{const C=l(O),E=c(O),{colorMap:R,scale:P,reverse:_,colorScale:B}=u[O];return(R==null?void 0:R.type)==="piecewise"?x.jsx(Gd,{isReversed:_,scale:P,colorMap:R,size:i,gradientId:C,direction:"x"},C):(R==null?void 0:R.type)==="continuous"?x.jsxs(F.Fragment,{children:[x.jsx(Hd,{isReversed:_,scale:P,colorScale:B,colorMap:R,size:i,gradientId:C,direction:"x"}),x.jsx(Wi,{isReversed:_,colorScale:B,colorMap:R,gradientId:E})]},C):null}),T.map(O=>{const C=c(O),{colorMap:E,colorScale:R}=m[O];return(E==null?void 0:E.type)==="continuous"?x.jsx(Wi,{colorScale:R,colorMap:E,gradientId:C},C):null})]})}const mC=["children","className","title","desc"],gC=Pt("svg",{name:"MuiChartsSurface",slot:"Root"})(({ownerState:e})=>({width:e.width??"100%",height:e.height??"100%",display:"flex",position:"relative",flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden",touchAction:"pan-y",userSelect:"none"})),Nc=F.forwardRef(function(t,r){const n=Zr(),{width:a,height:s}=bt(n,tx),{width:o,height:i}=bt(n,ex),l=Kw(),c=Qp(l,r),u=av({props:t,name:"MuiChartsSurface"}),{children:d,className:h,title:p,desc:m}=u,f=Cr(u,mC),g=s>0&&a>0;return x.jsxs(gC,K({ownerState:{width:o,height:i},viewBox:`0 0 ${a} ${s}`,className:h},f,{ref:c,children:[p&&x.jsx("title",{children:p}),m&&x.jsx("desc",{children:m}),x.jsx(fC,{}),g&&d]}))});process.env.NODE_ENV!=="production"&&(Nc.displayName="ChartsSurface");process.env.NODE_ENV!=="production"&&(Nc.propTypes={children:y.node,className:y.string,desc:y.string,sx:y.oneOfType([y.arrayOf(y.oneOfType([y.func,y.object,y.bool])),y.func,y.object]),title:y.string});function ga(e,t){if(typeof e=="number")return e;if(e==="100%")return t;if(e.endsWith("%")){const r=Number.parseFloat(e.slice(0,e.length-1));if(!Number.isNaN(r))return r*t/100}if(e.endsWith("px")){const r=Number.parseFloat(e.slice(0,e.length-2));if(!Number.isNaN(r))return r}throw new Error(`MUI X Charts: Received an unknown value "${e}". It should be a number, or a string with a percentage value.`)}function Ki(e){const t=Vl(e);return[Math.sin(t),-Math.cos(t)]}function yC(e,t){const r=[[0,0],Ki(e),Ki(t)],n=Math.min(e,t),a=Math.max(e,t),s=Math.floor(n/90)*90;for(let u=1;u<=4;u+=1){const d=s+u*90;d<a&&r.push(Ki(d))}const o=Math.min(...r.map(([u])=>u)),i=Math.max(...r.map(([u])=>u)),l=Math.min(...r.map(([,u])=>u)),c=Math.max(...r.map(([,u])=>u));return{cx:-o/(i-o),cy:-l/(c-l),minX:o,maxX:i,minY:l,maxY:c}}function bC(e,t,r,n,{minX:a,maxX:s,minY:o,maxY:i}){return Math.min(...[{ratio:Math.abs(a),space:e},{ratio:Math.abs(s),space:r-e},{ratio:Math.abs(o),space:t},{ratio:Math.abs(i),space:n-t}].map(({ratio:l,space:c})=>l<1e-5?1/0:c/l))}const Fc=F.createContext({value:null,valueMin:0,valueMax:0,startAngle:0,endAngle:0,innerRadius:0,outerRadius:0,cornerRadius:0,cx:0,cy:0,maxRadius:0,valueAngle:null});process.env.NODE_ENV!=="production"&&(Fc.displayName="GaugeContext");function vC(e){const{value:t=null,valueMin:r=0,valueMax:n=100,startAngle:a=0,endAngle:s=360,outerRadius:o,innerRadius:i,cornerRadius:l,cx:c,cy:u,children:d}=e,{left:h,top:p,width:m,height:f}=lm(),g=yC(a,s),S=c?ga(c,m):g.cx*m,T=u?ga(u,f):g.cy*f;let O=h+S,C=p+T;const E=bC(S,T,m,f,g);if(c===void 0){const b=E*(g.maxX-g.minX);O=h+(m-b)/2+g.cx*b}if(u===void 0){const b=E*(g.maxY-g.minY);C=p+(f-b)/2+g.cy*b}const R=ga(o??E,E),P=ga(i??"80%",E),_=ga(l??0,R-P),B=F.useMemo(()=>{const b=Vl(a),A=Vl(s);return{value:t,valueMin:r,valueMax:n,startAngle:b,endAngle:A,outerRadius:R,innerRadius:P,cornerRadius:_,cx:O,cy:C,maxRadius:E,valueAngle:t===null?null:b+(A-b)*(t-r)/(n-r)}},[t,r,n,a,s,R,P,_,O,C,E]);return x.jsx(Fc.Provider,{value:B,children:d})}function Bc(){return F.useContext(Fc)}const xC=["width","height","margin","title","desc","value","valueMin","valueMax","startAngle","endAngle","outerRadius","innerRadius","cornerRadius","cx","cy","children"],SC=Pt("g")(({theme:e})=>({"& text":{fill:(e.vars||e).palette.text.primary}})),zc=F.forwardRef(function(t,r){const{width:n,height:a,margin:s,title:o,desc:i,value:l,valueMin:c=0,valueMax:u=100,startAngle:d,endAngle:h,outerRadius:p,innerRadius:m,cornerRadius:f,cx:g,cy:S,children:T}=t,O=Cr(t,xC);return x.jsx(Hw,{pluginParams:{width:n,height:a,margin:af(s,{left:10,right:10,top:10,bottom:10})},plugins:[],children:x.jsx(vC,{value:l,valueMin:c,valueMax:u,startAngle:d,endAngle:h,outerRadius:p,innerRadius:m,cornerRadius:f,cx:g,cy:S,children:x.jsx(Nc,K({title:o,desc:i,role:"meter","aria-valuenow":l===null?void 0:l,"aria-valuemin":c,"aria-valuemax":u},O,{ref:r,children:x.jsx(SC,{"aria-hidden":"true",children:T})}))})})});process.env.NODE_ENV!=="production"&&(zc.displayName="GaugeContainer");process.env.NODE_ENV!=="production"&&(zc.propTypes={children:y.node,className:y.string,cornerRadius:y.oneOfType([y.number,y.string]),cx:y.oneOfType([y.number,y.string]),cy:y.oneOfType([y.number,y.string]),desc:y.string,endAngle:y.number,height:y.number,id:y.string,innerRadius:y.oneOfType([y.number,y.string]),margin:y.oneOfType([y.number,y.shape({bottom:y.number,left:y.number,right:y.number,top:y.number})]),outerRadius:y.oneOfType([y.number,y.string]),skipAnimation:y.bool,startAngle:y.number,sx:y.oneOfType([y.arrayOf(y.oneOfType([y.func,y.object,y.bool])),y.func,y.object]),title:y.string,value:y.number,valueMax:y.number,valueMin:y.number,width:y.number});function OC(e){const t=Zr(),r=bt(t,Ev);return e||r}function wC(e,t){const r=Dt(e.startAngle,t.startAngle),n=Dt(e.endAngle,t.endAngle),a=Dt(e.innerRadius,t.innerRadius),s=Dt(e.outerRadius,t.outerRadius),o=Dt(e.cornerRadius,t.cornerRadius);return i=>({startAngle:r(i),endAngle:n(i),innerRadius:a(i),outerRadius:s(i),cornerRadius:o(i)})}function CC(e){return uC({startAngle:e.startAngle,endAngle:e.endAngle,innerRadius:e.innerRadius,outerRadius:e.outerRadius,cornerRadius:e.cornerRadius},{createInterpolator:wC,transformProps:t=>({d:em().cornerRadius(t.cornerRadius)({innerRadius:t.innerRadius,outerRadius:t.outerRadius,startAngle:t.startAngle,endAngle:t.endAngle})}),applyProps(t,r){t.setAttribute("d",r.d)},initialProps:{startAngle:e.startAngle,endAngle:e.startAngle,innerRadius:e.innerRadius,outerRadius:e.outerRadius,cornerRadius:e.cornerRadius},skip:e.skipAnimation,ref:e.ref})}const PC=["cx","cy","startAngle","endAngle","cornerRadius","innerRadius","outerRadius","skipAnimation"],RC=Pt("path",{name:"MuiGauge",slot:"ReferenceArc"})(({theme:e})=>({fill:(e.vars||e).palette.primary.main}));function pm(e){const{value:t,valueMin:r,valueMax:n,startAngle:a,endAngle:s,outerRadius:o,innerRadius:i,cornerRadius:l,cx:c,cy:u}=Bc();if(t===null)return null;const d=a+(t-r)/(n-r)*(s-a);return x.jsx(fm,K({},e,{cx:c,cy:u,startAngle:a,endAngle:d,cornerRadius:l,innerRadius:i,outerRadius:o}))}process.env.NODE_ENV!=="production"&&(pm.propTypes={skipAnimation:y.bool});function fm(e){let{cx:t,cy:r,startAngle:n,endAngle:a,cornerRadius:s,innerRadius:o,outerRadius:i,skipAnimation:l}=e,c=Cr(e,PC);const u=OC(l),d=CC({startAngle:n,endAngle:a,cornerRadius:s,innerRadius:o,outerRadius:i,skipAnimation:u});return x.jsx(RC,K({},d,{transform:`translate(${t}, ${r})`},c))}process.env.NODE_ENV!=="production"&&(fm.propTypes={cornerRadius:y.number.isRequired,cx:y.number.isRequired,cy:y.number.isRequired,endAngle:y.number.isRequired,innerRadius:y.number.isRequired,outerRadius:y.number.isRequired,skipAnimation:y.bool,startAngle:y.number.isRequired});const TC=Pt("path",{name:"MuiGauge",slot:"ReferenceArc"})(({theme:e})=>({fill:(e.vars||e).palette.divider}));function AC(e){const{startAngle:t,endAngle:r,outerRadius:n,innerRadius:a,cornerRadius:s,cx:o,cy:i}=Bc();return x.jsx(TC,K({transform:`translate(${o}, ${i})`,d:em().cornerRadius(s)({startAngle:t,endAngle:r,innerRadius:a,outerRadius:n})},e))}const qd=e=>e,VC=()=>{let e=qd;return{configure(t){e=t},generate(t){return e(t)},reset(){e=qd}}},EC=VC(),_C={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 mm(e,t,r="Mui"){const n=_C[t];return n?`${r}-${n}`:`${EC.generate(e)}-${t}`}function IC(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=mm(e,a,r)}),n}function MC(e){return mm("MuiGauge",e)}IC("MuiGauge",["root","valueArc","referenceArc","valueText"]);function $C(){return typeof window>"u"}const Cs=new Map,jC=2e3,kC={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},LC=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],Jd="mui_measurement_span";function gm(e,t){return LC.indexOf(e)>=0&&t===+t?`${t}px`:t}function ym(e){return e.split("").reduce((n,a)=>a===a.toUpperCase()?[...n,"-",a.toLowerCase()]:[...n,a],[]).join("")}const UC=e=>Object.keys(e).sort().reduce((t,r)=>`${t}${ym(r)}:${gm(r,e[r])};`,"");let Yi;const DC=(e,t={})=>{if(e==null||$C())return{width:0,height:0};const r=`${e}`,n=UC(t),a=`${r}-${n}`,s=Cs.get(a);if(s)return s;try{let o=document.getElementById(Jd);o===null&&(o=document.createElement("span"),o.setAttribute("id",Jd),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));const i=K({},kC,t);Object.keys(i).map(u=>(o.style[ym(u)]=gm(u,i[u]),u)),o.textContent=r;const l=o.getBoundingClientRect(),c={width:l.width,height:l.height};return Cs.set(a,c),Cs.size+1>jC&&Cs.clear(),process.env.NODE_ENV==="test"?o.textContent="":(Yi&&clearTimeout(Yi),Yi=setTimeout(()=>{o.textContent=""},0)),c}catch{return{width:0,height:0}}};function NC({style:e,needsComputation:t,text:r}){return r.split(`
134
134
  `).map(n=>K({text:n},t?DC(n,e):{width:0,height:0}))}function FC(){const[e,t]=F.useState(typeof window<"u"||process.env.NODE_ENV==="test");return F.useEffect(()=>{t(!0)},[]),e}const BC=["x","y","style","text","ownerState"],zC=["angle","textAnchor","dominantBaseline"];function bm(e){const{x:t,y:r,style:n,text:a}=e,s=Cr(e,BC),o=n??{},{angle:i,textAnchor:l,dominantBaseline:c}=o,u=Cr(o,zC),d=FC(),h=F.useMemo(()=>NC({style:u,needsComputation:d&&a.includes(`
135
135
  `),text:a}),[u,a,d]);let p;switch(c){case"hanging":case"text-before-edge":p=0;break;case"central":p=(h.length-1)/2*-h[0].height;break;default:p=(h.length-1)*-h[0].height;break}return x.jsx("text",K({},s,{transform:i?`rotate(${i}, ${t}, ${r})`:void 0,x:t,y:r,textAnchor:l,dominantBaseline:c,style:u,children:h.map((m,f)=>x.jsx("tspan",{x:t,dy:`${f===0?p:h[0].height}px`,dominantBaseline:c,children:m.text},f))}))}process.env.NODE_ENV!=="production"&&(bm.propTypes={lineHeight:y.number,needsComputation:y.bool,ownerState:y.any,style:y.object,text:y.string.isRequired});const GC=["text","className"];function HC({value:e}){return e===null?null:e.toLocaleString()}function vm(e){const{text:t=HC,className:r}=e,n=Cr(e,GC),{value:a,valueMin:s,valueMax:o,cx:i,cy:l}=Bc(),c=typeof t=="function"?t({value:a,valueMin:s,valueMax:o}):t;return c===null?null:x.jsx("g",{className:r,children:x.jsx(bm,K({x:i,y:l,text:c,style:{textAnchor:"middle",dominantBaseline:"central"}},n))})}process.env.NODE_ENV!=="production"&&(vm.propTypes={lineHeight:y.number,needsComputation:y.bool,ownerState:y.any,style:y.object,text:y.oneOfType([y.func,y.string])});const qC=["text","children","classes","className","skipAnimation"],JC=e=>{const{classes:t}=e;return wy({root:["root"],valueArc:["valueArc"],referenceArc:["referenceArc"],valueText:["valueText"]},MC,t)},go=F.forwardRef(function(t,r){const{text:n,children:a,className:s,skipAnimation:o}=t,i=Cr(t,qC),l=JC(t);return x.jsxs(zc,K({},i,{className:Nt(l.root,s),ref:r,children:[x.jsx(AC,{className:l.referenceArc}),x.jsx(pm,{className:l.valueArc,skipAnimation:o}),x.jsx(vm,{className:l.valueText,text:n}),a]}))});process.env.NODE_ENV!=="production"&&(go.displayName="Gauge");process.env.NODE_ENV!=="production"&&(go.propTypes={children:y.node,classes:y.object,className:y.string,cornerRadius:y.oneOfType([y.number,y.string]),cx:y.oneOfType([y.number,y.string]),cy:y.oneOfType([y.number,y.string]),desc:y.string,endAngle:y.number,height:y.number,id:y.string,innerRadius:y.oneOfType([y.number,y.string]),margin:y.oneOfType([y.number,y.shape({bottom:y.number,left:y.number,right:y.number,top:y.number})]),outerRadius:y.oneOfType([y.number,y.string]),skipAnimation:y.bool,startAngle:y.number,sx:y.oneOfType([y.arrayOf(y.oneOfType([y.func,y.object,y.bool])),y.func,y.object]),text:y.oneOfType([y.func,y.string]),title:y.string,value:y.number,valueMax:y.number,valueMin:y.number,width:y.number});const pe=e=>typeof e=="string",ya=()=>{let e,t;const r=new Promise((n,a)=>{e=n,t=a});return r.resolve=e,r.reject=t,r},Wd=e=>e==null?"":""+e,WC=(e,t,r)=>{e.forEach(n=>{t[n]&&(r[n]=t[n])})},KC=/###/g,Kd=e=>e&&e.indexOf("###")>-1?e.replace(KC,"."):e,Yd=e=>!e||pe(e),Ma=(e,t,r)=>{const n=pe(t)?t.split("."):t;let a=0;for(;a<n.length-1;){if(Yd(e))return{};const s=Kd(n[a]);!e[s]&&r&&(e[s]=new r),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={},++a}return Yd(e)?{}:{obj:e,k:Kd(n[a])}},Qd=(e,t,r)=>{const{obj:n,k:a}=Ma(e,t,Object);if(n!==void 0||t.length===1){n[a]=r;return}let s=t[t.length-1],o=t.slice(0,t.length-1),i=Ma(e,o,Object);for(;i.obj===void 0&&o.length;)s=`${o[o.length-1]}.${s}`,o=o.slice(0,o.length-1),i=Ma(e,o,Object),i!=null&&i.obj&&typeof i.obj[`${i.k}.${s}`]<"u"&&(i.obj=void 0);i.obj[`${i.k}.${s}`]=r},YC=(e,t,r,n)=>{const{obj:a,k:s}=Ma(e,t,Object);a[s]=a[s]||[],a[s].push(r)},yo=(e,t)=>{const{obj:r,k:n}=Ma(e,t);if(r&&Object.prototype.hasOwnProperty.call(r,n))return r[n]},QC=(e,t,r)=>{const n=yo(e,r);return n!==void 0?n:yo(t,r)},xm=(e,t,r)=>{for(const n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?pe(e[n])||e[n]instanceof String||pe(t[n])||t[n]instanceof String?r&&(e[n]=t[n]):xm(e[n],t[n],r):e[n]=t[n]);return e},xn=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var XC={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const ZC=e=>pe(e)?e.replace(/[&<>"'\/]/g,t=>XC[t]):e;class eP{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const r=this.regExpMap.get(t);if(r!==void 0)return r;const n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}}const tP=[" ",",","?","!",";"],rP=new eP(20),nP=(e,t,r)=>{t=t||"",r=r||"";const n=tP.filter(o=>t.indexOf(o)<0&&r.indexOf(o)<0);if(n.length===0)return!0;const a=rP.getRegExp(`(${n.map(o=>o==="?"?"\\?":o).join("|")})`);let s=!a.test(e);if(!s){const o=e.indexOf(r);o>0&&!a.test(e.substring(0,o))&&(s=!0)}return s},Il=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const n=t.split(r);let a=e;for(let s=0;s<n.length;){if(!a||typeof a!="object")return;let o,i="";for(let l=s;l<n.length;++l)if(l!==s&&(i+=r),i+=n[l],o=a[i],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&l<n.length-1)continue;s+=l-s+1;break}a=o}return a},bo=e=>e==null?void 0:e.replace("_","-"),aP={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var r,n;(n=(r=console==null?void 0:console[e])==null?void 0:r.apply)==null||n.call(r,console,t)}};class vo{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,r)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||aP,this.options=r,this.debug=r.debug}log(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}warn(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}error(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"error","")}deprecate(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,n,a){return a&&!this.debug?null:(pe(t[0])&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new vo(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new vo(this.logger,t)}}var Yt=new vo;class ni{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const a=this.observers[n].get(r)||0;this.observers[n].set(r,a+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}emit(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(o=>{let[i,l]=o;for(let c=0;c<l;c++)i(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(o=>{let[i,l]=o;for(let c=0;c<l;c++)i.apply(i,[t,...n])})}}class Xd extends ni{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,n){var c,u;let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,o=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let i;t.indexOf(".")>-1?i=t.split("."):(i=[t,r],n&&(Array.isArray(n)?i.push(...n):pe(n)&&s?i.push(...n.split(s)):i.push(n)));const l=yo(this.data,i);return!l&&!r&&!n&&t.indexOf(".")>-1&&(t=i[0],r=i[1],n=i.slice(2).join(".")),l||!o||!pe(n)?l:Il((u=(c=this.data)==null?void 0:c[t])==null?void 0:u[r],n,s)}addResource(t,r,n,a){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let i=[t,r];n&&(i=i.concat(o?n.split(o):n)),t.indexOf(".")>-1&&(i=t.split("."),a=r,r=i[1]),this.addNamespaces(r),Qd(this.data,i,a),s.silent||this.emit("added",t,r,n,a)}addResources(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in n)(pe(n[s])||Array.isArray(n[s]))&&this.addResource(t,r,s,n[s],{silent:!0});a.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,a,s){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},i=[t,r];t.indexOf(".")>-1&&(i=t.split("."),a=n,n=r,r=i[1]),this.addNamespaces(r);let l=yo(this.data,i)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),a?xm(l,n,s):l={...l,...n},Qd(this.data,i,l),o.silent||this.emit("added",t,r,n)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(a=>r[a]&&Object.keys(r[a]).length>0)}toJSON(){return this.data}}var Sm={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,a){return e.forEach(s=>{var o;t=((o=this.processors[s])==null?void 0:o.process(t,r,n,a))??t}),t}};const Zd={},eh=e=>!pe(e)&&typeof e!="boolean"&&typeof e!="number";class xo extends ni{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),WC(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Yt.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const n=this.resolve(t,r);return(n==null?void 0:n.res)!==void 0}extractFromKey(t,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let s=r.ns||this.options.defaultNS||[];const o=n&&t.indexOf(n)>-1,i=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!nP(t,n,a);if(o&&!i){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:pe(s)?[s]:s};const c=t.split(n);(n!==a||n===a&&this.options.ns.indexOf(c[0])>-1)&&(s=c.shift()),t=c.join(a)}return{key:t,namespaces:pe(s)?[s]:s}}translate(t,r,n){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const a=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,s=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:o,namespaces:i}=this.extractFromKey(t[t.length-1],r),l=i[i.length-1],c=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((c==null?void 0:c.toLowerCase())==="cimode"){if(u){const A=r.nsSeparator||this.options.nsSeparator;return a?{res:`${l}${A}${o}`,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:`${l}${A}${o}`}return a?{res:o,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:o}const d=this.resolve(t,r);let h=d==null?void 0:d.res;const p=(d==null?void 0:d.usedKey)||o,m=(d==null?void 0:d.exactUsedKey)||o,f=["[object Number]","[object Function]","[object RegExp]"],g=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,S=!this.i18nFormat||this.i18nFormat.handleAsObject,T=r.count!==void 0&&!pe(r.count),O=xo.hasDefaultValue(r),C=T?this.pluralResolver.getSuffix(c,r.count,r):"",E=r.ordinal&&T?this.pluralResolver.getSuffix(c,r.count,{ordinal:!1}):"",R=T&&!r.ordinal&&r.count===0,P=R&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${C}`]||r[`defaultValue${E}`]||r.defaultValue;let _=h;S&&!h&&O&&(_=P);const B=eh(_),b=Object.prototype.toString.apply(_);if(S&&_&&B&&f.indexOf(b)<0&&!(pe(g)&&Array.isArray(_))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const A=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,_,{...r,ns:i}):`key '${o} (${this.language})' returned an object instead of string.`;return a?(d.res=A,d.usedParams=this.getUsedParamsDetails(r),d):A}if(s){const A=Array.isArray(_),z=A?[]:{},I=A?m:p;for(const G in _)if(Object.prototype.hasOwnProperty.call(_,G)){const re=`${I}${s}${G}`;O&&!h?z[G]=this.translate(re,{...r,defaultValue:eh(P)?P[G]:void 0,joinArrays:!1,ns:i}):z[G]=this.translate(re,{...r,joinArrays:!1,ns:i}),z[G]===re&&(z[G]=_[G])}h=z}}else if(S&&pe(g)&&Array.isArray(h))h=h.join(g),h&&(h=this.extendTranslation(h,t,r,n));else{let A=!1,z=!1;!this.isValidLookup(h)&&O&&(A=!0,h=P),this.isValidLookup(h)||(z=!0,h=o);const G=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&z?void 0:h,re=O&&P!==h&&this.options.updateMissing;if(z||A||re){if(this.logger.log(re?"updateKey":"missingKey",c,l,o,re?P:h),s){const ae=this.resolve(o,{...r,keySeparator:!1});ae&&ae.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let te=[];const oe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&oe&&oe[0])for(let ae=0;ae<oe.length;ae++)te.push(oe[ae]);else this.options.saveMissingTo==="all"?te=this.languageUtils.toResolveHierarchy(r.lng||this.language):te.push(r.lng||this.language);const Z=(ae,ge,ue)=>{var ct;const De=O&&ue!==h?ue:G;this.options.missingKeyHandler?this.options.missingKeyHandler(ae,l,ge,De,re,r):(ct=this.backendConnector)!=null&&ct.saveMissing&&this.backendConnector.saveMissing(ae,l,ge,De,re,r),this.emit("missingKey",ae,l,ge,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&T?te.forEach(ae=>{const ge=this.pluralResolver.getSuffixes(ae,r);R&&r[`defaultValue${this.options.pluralSeparator}zero`]&&ge.indexOf(`${this.options.pluralSeparator}zero`)<0&&ge.push(`${this.options.pluralSeparator}zero`),ge.forEach(ue=>{Z([ae],o+ue,r[`defaultValue${ue}`]||P)})}):Z(te,o,P))}h=this.extendTranslation(h,t,r,d,n),z&&h===o&&this.options.appendNamespaceToMissingKey&&(h=`${l}:${o}`),(z||A)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,A?h:void 0))}return a?(d.res=h,d.usedParams=this.getUsedParamsDetails(r),d):h}extendTranslation(t,r,n,a,s){var c,u;var o=this;if((c=this.i18nFormat)!=null&&c.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const d=pe(t)&&(((u=n==null?void 0:n.interpolation)==null?void 0:u.skipOnVariables)!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let h;if(d){const m=t.match(this.interpolator.nestingRegexp);h=m&&m.length}let p=n.replace&&!pe(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),t=this.interpolator.interpolate(t,p,n.lng||this.language||a.usedLng,n),d){const m=t.match(this.interpolator.nestingRegexp),f=m&&m.length;h<f&&(n.nest=!1)}!n.lng&&a&&a.res&&(n.lng=this.language||a.usedLng),n.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var m=arguments.length,f=new Array(m),g=0;g<m;g++)f[g]=arguments[g];return(s==null?void 0:s[0])===f[0]&&!n.context?(o.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${r[0]}`),null):o.translate(...f,r)},n)),n.interpolation&&this.interpolator.reset()}const i=n.postProcess||this.options.postProcess,l=pe(i)?[i]:i;return t!=null&&(l!=null&&l.length)&&n.applyPostProcessor!==!1&&(t=Sm.handle(l,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,a,s,o,i;return pe(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(n))return;const c=this.extractFromKey(l,r),u=c.key;a=u;let d=c.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const h=r.count!==void 0&&!pe(r.count),p=h&&!r.ordinal&&r.count===0,m=r.context!==void 0&&(pe(r.context)||typeof r.context=="number")&&r.context!=="",f=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);d.forEach(g=>{var S,T;this.isValidLookup(n)||(i=g,!Zd[`${f[0]}-${g}`]&&((S=this.utils)!=null&&S.hasLoadedNamespace)&&!((T=this.utils)!=null&&T.hasLoadedNamespace(i))&&(Zd[`${f[0]}-${g}`]=!0,this.logger.warn(`key "${a}" for languages "${f.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(O=>{var R;if(this.isValidLookup(n))return;o=O;const C=[u];if((R=this.i18nFormat)!=null&&R.addLookupKeys)this.i18nFormat.addLookupKeys(C,u,O,g,r);else{let P;h&&(P=this.pluralResolver.getSuffix(O,r.count,r));const _=`${this.options.pluralSeparator}zero`,B=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(C.push(u+P),r.ordinal&&P.indexOf(B)===0&&C.push(u+P.replace(B,this.options.pluralSeparator)),p&&C.push(u+_)),m){const b=`${u}${this.options.contextSeparator}${r.context}`;C.push(b),h&&(C.push(b+P),r.ordinal&&P.indexOf(B)===0&&C.push(b+P.replace(B,this.options.pluralSeparator)),p&&C.push(b+_))}}let E;for(;E=C.pop();)this.isValidLookup(n)||(s=E,n=this.getResource(O,g,E,r))}))})}),{res:n,usedKey:a,exactUsedKey:s,usedLng:o,usedNS:i}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,n){var s;let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(s=this.i18nFormat)!=null&&s.getResource?this.i18nFormat.getResource(t,r,n,a):this.resourceStore.getResource(t,r,n,a)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&!pe(t.replace);let a=n?t.replace:t;if(n&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!n){a={...a};for(const s of r)delete a[s]}return a}static hasDefaultValue(t){const r="defaultValue";for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&t[n]!==void 0)return!0;return!1}}class th{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Yt.create("languageUtils")}getScriptPartFromCode(t){if(t=bo(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=bo(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(pe(t)&&t.indexOf("-")>-1){let r;try{r=Intl.getCanonicalLocales(t)[0]}catch{}return r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(n=>{if(r)return;const a=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(a))&&(r=a)}),!r&&this.options.supportedLngs&&t.forEach(n=>{if(r)return;const a=this.getLanguagePartFromCode(n);if(this.isSupportedCode(a))return r=a;r=this.options.supportedLngs.find(s=>{if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&(s.indexOf("-")>0&&a.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===a||s.indexOf(a)===0&&a.length>1))return s})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),pe(t)&&(t=[t]),Array.isArray(t))return t;if(!r)return t.default||[];let n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}toResolveHierarchy(t,r){const n=this.getFallbackCodes(r||this.options.fallbackLng||[],t),a=[],s=o=>{o&&(this.isSupportedCode(o)?a.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return pe(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):pe(t)&&s(this.formatLanguageCode(t)),n.forEach(o=>{a.indexOf(o)<0&&s(this.formatLanguageCode(o))}),a}}const rh={zero:0,one:1,two:2,few:3,many:4,other:5},nh={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class sP{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=Yt.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,r){this.rules[t]=r}clearCache(){this.pluralRulesCache={}}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=bo(t==="dev"?"en":t),a=r.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:n,type:a});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let o;try{o=new Intl.PluralRules(n,{type:a})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),nh;if(!t.match(/-|_/))return nh;const l=this.languageUtils.getLanguagePartFromCode(t);o=this.getRule(l,r)}return this.pluralRulesCache[s]=o,o}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(t,r);return n||(n=this.getRule("dev",r)),(n==null?void 0:n.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,n).map(a=>`${r}${a}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(t,r);return n||(n=this.getRule("dev",r)),n?n.resolvedOptions().pluralCategories.sort((a,s)=>rh[a]-rh[s]).map(a=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(t,n);return a?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a.select(r)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",r,n))}}const ah=function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=QC(e,t,r);return!s&&a&&pe(r)&&(s=Il(e,r,n),s===void 0&&(s=Il(t,r,n))),s},Qi=e=>e.replace(/\$/g,"$$$$");class oP{constructor(){var r;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Yt.create("interpolator"),this.options=t,this.format=((r=t==null?void 0:t.interpolation)==null?void 0:r.format)||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:a,prefix:s,prefixEscaped:o,suffix:i,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:d,nestingPrefix:h,nestingPrefixEscaped:p,nestingSuffix:m,nestingSuffixEscaped:f,nestingOptionsSeparator:g,maxReplaces:S,alwaysFormat:T}=t.interpolation;this.escape=r!==void 0?r:ZC,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=s?xn(s):o||"{{",this.suffix=i?xn(i):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=h?xn(h):p||xn("$t("),this.nestingSuffix=m?xn(m):f||xn(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=S||1e3,this.alwaysFormat=T!==void 0?T:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,n)=>(r==null?void 0:r.source)===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,r,n,a){var p;let s,o,i;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=m=>{if(m.indexOf(this.formatSeparator)<0){const T=ah(r,l,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(T,void 0,n,{...a,...r,interpolationkey:m}):T}const f=m.split(this.formatSeparator),g=f.shift().trim(),S=f.join(this.formatSeparator).trim();return this.format(ah(r,l,g,this.options.keySeparator,this.options.ignoreJSONStructure),S,n,{...a,...r,interpolationkey:g})};this.resetRegExp();const u=(a==null?void 0:a.missingInterpolationHandler)||this.options.missingInterpolationHandler,d=((p=a==null?void 0:a.interpolation)==null?void 0:p.skipOnVariables)!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>Qi(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?Qi(this.escape(m)):Qi(m)}].forEach(m=>{for(i=0;s=m.regex.exec(t);){const f=s[1].trim();if(o=c(f),o===void 0)if(typeof u=="function"){const S=u(t,s,a);o=pe(S)?S:""}else if(a&&Object.prototype.hasOwnProperty.call(a,f))o="";else if(d){o=s[0];continue}else this.logger.warn(`missed to pass in variable ${f} for interpolating ${t}`),o="";else!pe(o)&&!this.useRawValueToEscape&&(o=Wd(o));const g=m.safeValue(o);if(t=t.replace(s[0],g),d?(m.regex.lastIndex+=o.length,m.regex.lastIndex-=s[0].length):m.regex.lastIndex=0,i++,i>=this.maxReplaces)break}}),t}nest(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,o;const i=(l,c)=>{const u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;const d=l.split(new RegExp(`${u}[ ]*{`));let h=`{${d[1]}`;l=d[0],h=this.interpolate(h,o);const p=h.match(/'/g),m=h.match(/"/g);(((p==null?void 0:p.length)??0)%2===0&&!m||m.length%2!==0)&&(h=h.replace(/'/g,'"'));try{o=JSON.parse(h),c&&(o={...c,...o})}catch(f){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,f),`${l}${u}${h}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,l};for(;a=this.nestingRegexp.exec(t);){let l=[];o={...n},o=o.replace&&!pe(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let c=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const u=a[1].split(this.formatSeparator).map(d=>d.trim());a[1]=u.shift(),l=u,c=!0}if(s=r(i.call(this,a[1].trim(),o),o),s&&a[0]===t&&!pe(s))return s;pe(s)||(s=Wd(s)),s||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),s=""),c&&(s=l.reduce((u,d)=>this.format(u,d,n.lng,{...n,interpolationkey:a[1].trim()}),s.trim())),t=t.replace(a[0],s),this.regexp.lastIndex=0}return t}}const iP=e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const a=n[1].substring(0,n[1].length-1);t==="currency"&&a.indexOf(":")<0?r.currency||(r.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?r.range||(r.range=a.trim()):a.split(";").forEach(o=>{if(o){const[i,...l]=o.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=i.trim();r[u]||(r[u]=c),c==="false"&&(r[u]=!1),c==="true"&&(r[u]=!0),isNaN(c)||(r[u]=parseInt(c,10))}})}return{formatName:t,formatOptions:r}},Sn=e=>{const t={};return(r,n,a)=>{let s=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(s={...s,[a.interpolationkey]:void 0});const o=n+JSON.stringify(s);let i=t[o];return i||(i=e(bo(n),a),t[o]=i),i(r)}};class lP{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Yt.create("formatter"),this.options=t,this.formats={number:Sn((r,n)=>{const a=new Intl.NumberFormat(r,{...n});return s=>a.format(s)}),currency:Sn((r,n)=>{const a=new Intl.NumberFormat(r,{...n,style:"currency"});return s=>a.format(s)}),datetime:Sn((r,n)=>{const a=new Intl.DateTimeFormat(r,{...n});return s=>a.format(s)}),relativetime:Sn((r,n)=>{const a=new Intl.RelativeTimeFormat(r,{...n});return s=>a.format(s,n.range||"day")}),list:Sn((r,n)=>{const a=new Intl.ListFormat(r,{...n});return s=>a.format(s)})},this.init(t)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=r.interpolation.formatSeparator||","}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=Sn(r)}format(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=r.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(i=>i.indexOf(")")>-1)){const i=s.findIndex(l=>l.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,i)].join(this.formatSeparator)}return s.reduce((i,l)=>{var d;const{formatName:c,formatOptions:u}=iP(l);if(this.formats[c]){let h=i;try{const p=((d=a==null?void 0:a.formatParams)==null?void 0:d[a.interpolationkey])||{},m=p.locale||p.lng||a.locale||a.lng||n;h=this.formats[c](i,m,{...u,...a,...p})}catch(p){this.logger.warn(p)}return h}else this.logger.warn(`there was no format function for ${c}`);return i},t)}}const cP=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class uP extends ni{constructor(t,r,n){var s,o;let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=a,this.logger=Yt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],(o=(s=this.backend)==null?void 0:s.init)==null||o.call(s,n,a.backend,a)}queueLoad(t,r,n,a){const s={},o={},i={},l={};return t.forEach(c=>{let u=!0;r.forEach(d=>{const h=`${c}|${d}`;!n.reload&&this.store.hasResourceBundle(c,d)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?o[h]===void 0&&(o[h]=!0):(this.state[h]=1,u=!1,o[h]===void 0&&(o[h]=!0),s[h]===void 0&&(s[h]=!0),l[d]===void 0&&(l[d]=!0)))}),u||(i[c]=!0)}),(Object.keys(s).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(s),pending:Object.keys(o),toLoadLanguages:Object.keys(i),toLoadNamespaces:Object.keys(l)}}loaded(t,r,n){const a=t.split("|"),s=a[0],o=a[1];r&&this.emit("failedLoading",s,o,r),!r&&n&&this.store.addResourceBundle(s,o,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2,r&&n&&(this.state[t]=0);const i={};this.queue.forEach(l=>{YC(l.loaded,[s],o),cP(l,t),r&&l.errors.push(r),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{i[c]||(i[c]={});const u=l.loaded[c];u.length&&u.forEach(d=>{i[c][d]===void 0&&(i[c][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",i),this.queue=this.queue.filter(l=>!l.done)}read(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:n,tried:a,wait:s,callback:o});return}this.readingCalls++;const i=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(c&&u&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,n,a+1,s*2,o)},s);return}o(c,u)},l=this.backend[n].bind(this.backend);if(l.length===2){try{const c=l(t,r);c&&typeof c.then=="function"?c.then(u=>i(null,u)).catch(i):i(null,c)}catch(c){i(c)}return}return l(t,r,i)}prepareLoading(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();pe(t)&&(t=this.languageUtils.toResolveHierarchy(t)),pe(r)&&(r=[r]);const s=this.queueLoad(t,r,n,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(o=>{this.loadOne(o)})}load(t,r,n){this.prepareLoading(t,r,{},n)}reload(t,r,n){this.prepareLoading(t,r,{reload:!0},n)}loadOne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=t.split("|"),a=n[0],s=n[1];this.read(a,s,"read",void 0,void 0,(o,i)=>{o&&this.logger.warn(`${r}loading namespace ${s} for language ${a} failed`,o),!o&&i&&this.logger.log(`${r}loaded namespace ${s} for language ${a}`,i),this.loaded(t,o,i)})}saveMissing(t,r,n,a,s){var l,c,u,d,h;let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},i=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((c=(l=this.services)==null?void 0:l.utils)!=null&&c.hasLoadedNamespace&&!((d=(u=this.services)==null?void 0:u.utils)!=null&&d.hasLoadedNamespace(r))){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if((h=this.backend)!=null&&h.create){const p={...o,isUpdate:s},m=this.backend.create.bind(this.backend);if(m.length<6)try{let f;m.length===5?f=m(t,r,n,a,p):f=m(t,r,n,a),f&&typeof f.then=="function"?f.then(g=>i(null,g)).catch(i):i(null,f)}catch(f){i(f)}else m(t,r,n,a,i,p)}!t||!t[0]||this.store.addResource(t[0],r,n,a)}}}const sh=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),pe(e[1])&&(t.defaultValue=e[1]),pe(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const r=e[3]||e[2];Object.keys(r).forEach(n=>{t[n]=r[n]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),oh=e=>{var t,r;return pe(e.ns)&&(e.ns=[e.ns]),pe(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),pe(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((r=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:r.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},Ps=()=>{},dP=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class qa extends ni{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=oh(t),this.services={},this.logger=Yt,this.modules={external:[]},dP(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(){var t=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(n=r,r={}),r.defaultNS==null&&r.ns&&(pe(r.ns)?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const a=sh();this.options={...a,...this.options,...oh(r)},this.options.interpolation={...a.interpolation,...this.options.interpolation},r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);const s=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?Yt.init(s(this.modules.logger),this.options):Yt.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=lP;const d=new th(this.options);this.store=new Xd(this.options.resources,this.options);const h=this.services;h.logger=Yt,h.resourceStore=this.store,h.languageUtils=d,h.pluralResolver=new sP(d,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(h.formatter=s(u),h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new oP(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new uP(s(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(p){for(var m=arguments.length,f=new Array(m>1?m-1:0),g=1;g<m;g++)f[g-1]=arguments[g];t.emit(p,...f)}),this.modules.languageDetector&&(h.languageDetector=s(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=s(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new xo(this.services,this.options),this.translator.on("*",function(p){for(var m=arguments.length,f=new Array(m>1?m-1:0),g=1;g<m;g++)f[g-1]=arguments[g];t.emit(p,...f)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Ps),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=function(){return t.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return t.store[u](...arguments),t}});const l=ya(),c=()=>{const u=(d,h)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(h),n(d,h)};if(this.languages&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initAsync?c():setTimeout(c,0),l}loadResources(t){var s,o;let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ps;const a=pe(t)?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if((a==null?void 0:a.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const i=[],l=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(d=>{d!=="cimode"&&i.indexOf(d)<0&&i.push(d)})};a?l(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>l(u)),(o=(s=this.options.preload)==null?void 0:s.forEach)==null||o.call(s,c=>l(c)),this.services.backendConnector.load(i,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(c)})}else n(null)}reloadResources(t,r,n){const a=ya();return typeof t=="function"&&(n=t,t=void 0),typeof r=="function"&&(n=r,r=void 0),t||(t=this.languages),r||(r=this.options.ns),n||(n=Ps),this.services.backendConnector.reload(t,r,s=>{a.resolve(),n(s)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&Sm.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let r=0;r<this.languages.length;r++){const n=this.languages[r];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(t,r){var n=this;this.isLanguageChangingTo=t;const a=ya();this.emit("languageChanging",t);const s=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},o=(l,c)=>{c?(s(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,a.resolve(function(){return n.t(...arguments)}),r&&r(l,function(){return n.t(...arguments)})},i=l=>{var u,d;!t&&!l&&this.services.languageDetector&&(l=[]);const c=pe(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||s(c),this.translator.language||this.translator.changeLanguage(c),(d=(u=this.services.languageDetector)==null?void 0:u.cacheUserLanguage)==null||d.call(u,c)),this.loadResources(c,h=>{o(h,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?i(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(t),a}getFixedT(t,r,n){var a=this;const s=function(o,i){let l;if(typeof i!="object"){for(var c=arguments.length,u=new Array(c>2?c-2:0),d=2;d<c;d++)u[d-2]=arguments[d];l=a.options.overloadTranslationOptionHandler([o,i].concat(u))}else l={...i};l.lng=l.lng||s.lng,l.lngs=l.lngs||s.lngs,l.ns=l.ns||s.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||n||s.keyPrefix);const h=a.options.keySeparator||".";let p;return l.keyPrefix&&Array.isArray(o)?p=o.map(m=>`${l.keyPrefix}${h}${m}`):p=l.keyPrefix?`${l.keyPrefix}${h}${o}`:o,a.t(p,l)};return pe(t)?s.lng=t:s.lngs=t,s.ns=r,s.keyPrefix=n,s}t(){var a;for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(a=this.translator)==null?void 0:a.translate(...r)}exists(){var a;for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(a=this.translator)==null?void 0:a.exists(...r)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const o=(i,l)=>{const c=this.services.backendConnector.state[`${i}|${l}`];return c===-1||c===0||c===2};if(r.precheck){const i=r.precheck(this,o);if(i!==void 0)return i}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(n,t)&&(!a||o(s,t)))}loadNamespaces(t,r){const n=ya();return this.options.ns?(pe(t)&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{n.resolve(),r&&r(a)}),n):(r&&r(),Promise.resolve())}loadLanguages(t,r){const n=ya();pe(t)&&(t=[t]);const a=this.options.preload||[],s=t.filter(o=>a.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return s.length?(this.options.preload=a.concat(s),this.loadResources(o=>{n.resolve(),r&&r(o)}),n):(r&&r(),Promise.resolve())}dir(t){var a,s;if(t||(t=this.resolvedLanguage||(((a=this.languages)==null?void 0:a.length)>0?this.languages[0]:this.language)),!t)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=((s=this.services)==null?void 0:s.languageUtils)||new th(sh());return r.indexOf(n.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new qa(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ps;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},s=new qa(a);if((t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(i=>{s[i]=this[i]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},n){const i=Object.keys(this.store.data).reduce((l,c)=>(l[c]={...this.store.data[c]},Object.keys(l[c]).reduce((u,d)=>(u[d]={...l[c][d]},u),{})),{});s.store=new Xd(i,a),s.services.resourceStore=s.store}return s.translator=new xo(s.services,a),s.translator.on("*",function(i){for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];s.emit(i,...c)}),s.init(a,r),s.translator.options=a,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const lt=qa.createInstance();lt.createInstance=qa.createInstance;lt.createInstance;lt.dir;lt.init;lt.loadResources;lt.reloadResources;lt.use;lt.changeLanguage;lt.getFixedT;lt.t;lt.exists;lt.setDefaultNamespace;lt.hasLoadedNamespace;lt.loadNamespaces;lt.loadLanguages;const hP={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Geschwindigkeit","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}} mm","Jogging.Cartesian.MotionType.lb":"Bewegungstyp","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Gelenkwerte","Jogging.Increment.Continuous.dd":"Fortlaufend","Jogging.Cartesian.Orientation.lb":"Orientierung","Jogging.JointLimitsReached.lb":"Gelenkgrenzen für Gelenk {{jointNumbers}} erreicht","Jogging.Orientation.coordsys":"Roboterbasis","Jogging.Orientation.tool":"Werkzeug","SafetyBar.ActivationToggle.Activate.bt":"Aktivieren","SafetyBar.ActivationToggle.Activated.bt":"Aktiviert","SafetyBar.ActivationToggle.Activating.bt":"Wird aktiviert…","SafetyBar.ActivationToggle.Deactivating.bt":"Wird deaktiviert…","SafetyBar.ControllerType.Physical.lb":"Physisch","SafetyBar.ControllerType.Virtual.lb":"Virtuell","SafetyBar.MotionGroup.Physical.Explanation.lb":"<code>{{motionGroupId}}</code> ist ein physische Robotersteuerung. Für die Bewegung dieses Roboters sind <strong>Sicherheitsmaßnahmen</strong> aktiv.","SafetyBar.MotionGroup.Virtual.Explanation.lb":"<1>{{motionGroupId}}</1> ist eine virtuelle Robotersteuerung ohne physisches Gegenstück. Der Roboter kann ohne Sicherheitsmaßnahmen bewegt werden.","SafetyBar.OperationMode.Auto.Explanation.lb":"Automatischer Betriebsmodus der Robotersteuerung aktiv. Automatisierte Bewegung ohne manuelle Bestätigung freigegeben.","SafetyBar.OperationMode.Automatic.ti":"Automatisch","SafetyBar.OperationMode.Error.Explanation.lb":"Fehler beim Abrufen des Betriebsmodus. Originalhandbediengerät des Roboters verwenden, um Fehler zu lösen.","SafetyBar.OperationMode.Error.lb":"Fehler","SafetyBar.OperationMode.Manual.Explanation.lb":`Die Robotersteuerung befindet sich im manuellen Betriebsmodus.
136
- Bei einem physischen Roboter bedeutet dies im Allgemeinen, dass ein Freigabeschalter gedrückt werden muss, damit sich der Roboter erfolgreich bewegen kann.`,"SafetyBar.OperationMode.Manual.lb":"Manuell","SafetyBar.OperationMode.ti":"Betriebsmodus","SafetyBar.SafetyState.Error.Explanation.lb":"Die Robotersteuerung ist in einen unerwarteten Sicherheitszustand eingetreten.","SafetyBar.SafetyState.Error.lb":"Fehler","SafetyBar.SafetyState.Estop.lb":"NOT-AUS","SafetyBar.SafetyState.ManualActionRequired.Explanation.lb":"Die Robotersteuerung ist in einen Sicherheitszustand eingetreten, der manuelle Maßnahmen zur Behebung erfordert.","SafetyBar.SafetyState.ManualActionRequired.lb":"Aktion erforderlich","SafetyBar.SafetyState.Normal.Explanation.lb":"Die Robotersteuerung befindet sich in einem sicheren Zustand. Roboterbewegungen sind möglich.","SafetyBar.SafetyState.Normal.lb":"Sicher","SafetyBar.SafetyState.Stop.Explanation.lb":"Die Robotersteuerung ist in einen Stoppzustand übergegangen. Bis der Stoppzustand aufgelöst ist, ist keine Bewegung mehr möglich.","SafetyBar.SafetyState.Stop.lb":"Stopp","SafetyBar.SafetyState.ti":"Sicherheitszustand","SafetyBar.StopState.Estop.Explanation.lb":"NOT-AUS aktiviert. NOT-AUS freischalten, um Roboter zu bewegen.","Jogging.Increment.hlb":"Schrittgröße","Jogging.CoordinateSystem.hlb":"Koordinatensystem","Jogging.Cartesian.bt":"Kartesisch","Jogging.Joints.bt":"Gelenke","Jogging.Velocity.bt":"Geschwindigkeit","CycleTimer.RemainingTime.lb":"Verbleibende Zeit","CycleTimer.Of.lb":"von","CycleTimer.Min.lb":"min."},pP={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Velocity","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}} mm","Jogging.Cartesian.MotionType.lb":"Motion type","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Joint values","Jogging.Increment.Continuous.dd":"Continuous","Jogging.Cartesian.Orientation.lb":"Orientation","Jogging.Activating.lb":"Activating jogging","Jogging.JointLimitsReached.lb":"Joint limit reached for joint {{jointNumbers}}","Jogging.Orientation.coordsys":"Robot base","Jogging.Orientation.tool":"Tool","SafetyBar.ActivationToggle.Activate.bt":"Activate","SafetyBar.ActivationToggle.Activated.bt":"Activated","SafetyBar.ActivationToggle.Activating.bt":"Activating","SafetyBar.ActivationToggle.Deactivating.bt":"Deactivating","SafetyBar.ControllerType.Physical.lb":"Physical","SafetyBar.ControllerType.Virtual.lb":"Virtual","SafetyBar.MotionGroup.Physical.Explanation.lb":"<code>{{motionGroupId}}</code> is a physical robot controller. <strong>Safety precautions</strong> are active for the movement of this robot.","SafetyBar.MotionGroup.Virtual.Explanation.lb":"<1>{{motionGroupId}}</1> is a virtual robot controller with no physical counterpart. It can be freely manipulated without safety precautions.","SafetyBar.OperationMode.Auto.Explanation.lb":"Automatic operation mode active. Automated movement without manual confirmation enabled.","SafetyBar.OperationMode.Automatic.ti":"Automatic","SafetyBar.OperationMode.Error.Explanation.lb":"Failed to get operation mode. Use the original control panel to resolve the error.","SafetyBar.OperationMode.Error.lb":"Error","SafetyBar.OperationMode.Manual.Explanation.lb":"The robot controller is in manual operation mode. On a physical robot, this generally indicates that an enabling switch must be held for the robot to move successfully.","SafetyBar.OperationMode.Manual.lb":"Manual","SafetyBar.OperationMode.ti":"Operation mode","SafetyBar.SafetyState.Error.Explanation.lb":"The robot controller has entered an unexpected safety state.","SafetyBar.SafetyState.Error.lb":"Error","SafetyBar.SafetyState.Estop.lb":"E-Stop","SafetyBar.SafetyState.ManualActionRequired.Explanation.lb":"The robot controller has entered a safety state requiring manual action to resolve.","SafetyBar.SafetyState.ManualActionRequired.lb":"Action required","SafetyBar.SafetyState.Normal.Explanation.lb":"The robot controller is in a safe state. Robot movement is enabled.","SafetyBar.SafetyState.Normal.lb":"Safe","SafetyBar.SafetyState.Stop.Explanation.lb":"The robot controller has entered a stop state. Movement is no longer possible until the stop state is resolved.","SafetyBar.SafetyState.Stop.lb":"Stop","SafetyBar.SafetyState.ti":"Safety state","SafetyBar.StopState.Estop.Explanation.lb":"An emergency stop of the robot controller has been triggered. Movement of the robot is no longer possible until the estop is released.","Jogging.Increment.hlb":"Increment","Jogging.CoordinateSystem.hlb":"Coordinate system","Jogging.Cartesian.bt":"Cartesian","Jogging.Joints.bt":"Joints","Jogging.Velocity.bt":"Velocity","CycleTimer.RemainingTime.lb":"remaining time","CycleTimer.Of.lb":"of","CycleTimer.Min.lb":"min."},Gc=lt.createInstance();Gc.use(uy).init({supportedLngs:["en","de"],resources:{en:{translations:pP},de:{translations:hP}},ns:["translations"],defaultNS:"translations",detection:{order:["navigator","htmlTag"]}});function en(e){return r=>x.jsx(fP,{children:x.jsx(e,{...r})})}const fP=({children:e})=>x.jsx(ze.I18nextProvider,{i18n:Gc,children:e}),mP=en(Je.observer(({onCycleComplete:e,onCycleEnd:t,autoStart:r=!0,variant:n="default",compact:a=!1,className:s})=>{var T;const o=W.useTheme(),{t:i}=ze.useTranslation(),[l,c]=se.useState(0),[u,d]=se.useState(0),[h,p]=se.useState(!1),m=se.useRef(null),f=se.useCallback(O=>{console.log(`Starting new cycle with ${O} seconds`),d(O),c(O),r?(console.log("Auto-start enabled, starting timer"),p(!0)):console.log("Auto-start disabled, timer set but not started")},[r]);se.useEffect(()=>{let O=!0;const C=setTimeout(()=>{O&&e(f)},0);return()=>{O=!1,clearTimeout(C)}},[e,f]),se.useEffect(()=>(h&&l>0?m.current=setInterval(()=>{c(O=>O<=1?(p(!1),t&&setTimeout(()=>t(),0),console.log("Cycle completed! Timer reached zero."),0):O-1)},1e3):m.current&&(clearInterval(m.current),m.current=null),()=>{m.current&&clearInterval(m.current)}),[h,l,t]);const g=O=>{const C=Math.floor(O/60),E=O%60;return`${C}:${E.toString().padStart(2,"0")}`},S=u>0?(u-l)/u*100:0;return n==="small"?x.jsxs(W.Box,{className:s,sx:{display:"flex",alignItems:"center",gap:.125},children:[x.jsx(W.Box,{sx:{position:"relative",width:40,height:40,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",overflow:"visible"},children:x.jsx(go,{width:40,height:40,value:S,valueMin:0,valueMax:100,innerRadius:"70%",outerRadius:"95%",sx:{"& .MuiGauge-valueArc":{fill:o.palette.success.main},"& .MuiGauge-referenceArc":{fill:o.palette.success.main,opacity:.3},"& .MuiGauge-valueText":{display:"none"},"& .MuiGauge-text":{display:"none"},"& text":{display:"none"}}})}),x.jsx(W.Typography,{variant:"body2",sx:{color:o.palette.text.primary,fontSize:"14px"},children:a?g(l):`${g(l)} / ${g(u)} ${i("CycleTimer.Min.lb")}`})]}):x.jsxs(W.Box,{className:s,sx:{position:"relative",width:264,height:264,display:"flex",alignItems:"center",justifyContent:"center"},children:[x.jsx(go,{width:264,height:264,value:S,valueMin:0,valueMax:100,innerRadius:"71%",outerRadius:"90%",sx:{"& .MuiGauge-valueArc":{fill:o.palette.success.main},"& .MuiGauge-referenceArc":{fill:"white",stroke:"transparent"}}}),x.jsxs(W.Box,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:187,height:187,borderRadius:"50%",backgroundColor:(T=o.palette.backgroundPaperElevation)==null?void 0:T[8],display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",gap:1},children:[x.jsx(W.Typography,{variant:"body2",sx:{fontSize:"12px",color:o.palette.text.secondary,marginBottom:.5},children:i("CycleTimer.RemainingTime.lb")}),x.jsx(W.Typography,{variant:"h1",sx:{fontSize:"48px",fontWeight:500,color:o.palette.text.primary,lineHeight:1,marginBottom:.5},children:g(l)}),x.jsxs(W.Typography,{variant:"body2",sx:{fontSize:"12px",color:o.palette.text.secondary},children:[i("CycleTimer.Of.lb")," ",g(u)," ",i("CycleTimer.Min.lb")]})]})]})}));process.env.NODE_ENV!=="production"&&(y.node,y.object.isRequired);function Hc(e){return hb(e)}const jn=Pb({createStyledComponent:Pt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Hc({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(jn.propTypes={children:y.node,component:y.elementType,direction:y.oneOfType([y.oneOf(["column-reverse","column","row-reverse","row"]),y.arrayOf(y.oneOf(["column-reverse","column","row-reverse","row"])),y.object]),divider:y.node,spacing:y.oneOfType([y.arrayOf(y.oneOfType([y.number,y.string])),y.number,y.object,y.string]),sx:y.oneOfType([y.arrayOf(y.oneOfType([y.func,y.object,y.bool])),y.func,y.object]),useFlexGap:y.bool});const gP=({title:e,titleId:t,...r},n)=>F.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("g",{id:"JogMinus"},F.createElement("path",{id:"Minus",d:"M0 13V8H21V13H0Z",fill:"white"}))),yP=se.forwardRef(gP),bP=({title:e,titleId:t,...r},n)=>F.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("g",{id:"JogPlus"},F.createElement("g",{id:"Plus"},F.createElement("path",{d:"M0 13V8H8V13H0Z",fill:"white"}),F.createElement("path",{d:"M8 0L13 2.18557e-07L13 21H8L8 0Z",fill:"white"}),F.createElement("path",{d:"M13 13V8H21V13H13Z",fill:"white"})))),vP=se.forwardRef(bP);function ai(e){se.useEffect(e,[])}function Om(e){ai(()=>Xe.autorun(e))}function wm(e,t,r){ai(()=>Xe.reaction(e,t,r))}function Yn(e){return ai(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}const Ml=en(Je.observer(({colors:e,label:t,getDisplayedValue:r,startJogging:n,stopJogging:a,disabled:s,activeJoggingDirection:o,...i})=>{var O,C,E,R,P,_,B;Yn(()=>{const b=r(),A=h.current;A&&(A.textContent=b)});const l=W.useTheme(),[c,u]=se.useState(null);se.useEffect(()=>{s&&T()},[s]);const d=o||c,h=se.useRef(null);e||(e={color:"#fff",backgroundColor:"#000",borderColor:"#000",buttonBackgroundColor:{disabled:"#000",default:"#000",hovered:"#000",pressed:"#000"},labelColor:"#000"});const p=d?(O=e.buttonBackgroundColor)==null?void 0:O.pressed:e.borderColor,m={width:"55px",color:e.color,path:{fill:e.color},alignContent:"center",fontSize:"37px",svg:{pointerEvents:"none"}},f={...m,backgroundColor:(C=e.buttonBackgroundColor)==null?void 0:C.default,":hover":{backgroundColor:(E=e.buttonBackgroundColor)==null?void 0:E.hovered},":active":{backgroundColor:(R=e.buttonBackgroundColor)==null?void 0:R.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor}},":disabled":{backgroundColor:(P=e.buttonBackgroundColor)==null?void 0:P.disabled,"svg path":{fill:l.palette.action.disabled}}},g={...m,backgroundColor:(_=e.buttonBackgroundColor)==null?void 0:_.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor},":disabled":{backgroundColor:(B=e.buttonBackgroundColor)==null?void 0:B.pressed,"svg path":{fill:l.palette.action.disabled}}};function S(b,A){s||b.button===0&&(u(A),n(A))}function T(){u(null),a()}return x.jsxs(jn,{height:"64px",direction:"row",justifyContent:"center",...i,children:[x.jsx(W.IconButton,{disabled:s,disableRipple:!0,onPointerDown:b=>S(b,"-"),onPointerUp:T,onPointerOut:T,size:"large",sx:{...d==="-"?g:f,borderRadius:"16px 0px 0px 16px",borderLeft:`2px solid ${p??"#fff"}`,borderBottom:`2px solid ${p??"#fff"}`,borderTop:`2px solid ${p??"#fff"}`},children:x.jsx(yP,{})}),x.jsxs(jn,{spacing:"6px",sx:{width:"150px",backgroundColor:e.backgroundColor,alignItems:"center",justifyContent:"center",opacity:"0.9",borderBottom:`2px solid ${p??"#fff"}`,borderTop:`2px solid ${p??"#fff"}`},children:[x.jsx(jn,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none",color:e.color,".MuiTypography-root":{fontWeight:700,...s?{color:l.palette.action.disabled}:{}},...s?{"svg path":{fill:l.palette.action.disabled}}:{}},children:t}),x.jsx(W.Typography,{height:"22px",sx:{fontSize:"15px",color:s?l.palette.action.disabled:e.color,fontWeight:700},ref:h,children:r()})]}),x.jsx(W.IconButton,{disableRipple:!0,disabled:s,onPointerDown:b=>S(b,"+"),onPointerUp:T,onPointerOut:T,size:"large",sx:{...d==="+"?g:f,borderRadius:"0px 16px 16px 0px",borderRight:`2px solid ${p??"#fff"}`,borderBottom:`2px solid ${p??"#fff"}`,borderTop:`2px solid ${p??"#fff"}`},children:x.jsx(vP,{})})]})})),tn=pb;function xP(e){return ts("MuiSvgIcon",e)}$p("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const SP=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${dt(t)}`,`fontSize${dt(r)}`]};return ac(a,xP,n)},OP=Pt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${dt(r.color)}`],t[`fontSize${dt(r.fontSize)}`]]}})(tn(({theme:e})=>{var t,r,n,a,s,o,i,l,c,u,d,h,p,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(a=(t=e.transitions)==null?void 0:t.create)==null?void 0:a.call(t,"fill",{duration:(n=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:f=>!f.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((o=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:o.call(s,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:l.call(i,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,f])=>f&&f.main).map(([f])=>{var g,S;return{props:{color:f},style:{color:(S=(g=(e.vars??e).palette)==null?void 0:g[f])==null?void 0:S.main}}}),{props:{color:"action"},style:{color:(h=(d=(e.vars??e).palette)==null?void 0:d.action)==null?void 0:h.active}},{props:{color:"disabled"},style:{color:(m=(p=(e.vars??e).palette)==null?void 0:p.action)==null?void 0:m.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),So=F.forwardRef(function(t,r){const n=Hc({props:t,name:"MuiSvgIcon"}),{children:a,className:s,color:o="inherit",component:i="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:h="0 0 24 24",...p}=n,m=F.isValidElement(a)&&a.type==="svg",f={...n,color:o,component:i,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:m},g={};u||(g.viewBox=h);const S=SP(f);return x.jsxs(OP,{as:i,className:Nt(S.root,s),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r,...g,...p,...m&&a.props,ownerState:f,children:[m?a.props.children:a,d?x.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(So.propTypes={children:y.node,classes:y.object,className:y.string,color:y.oneOfType([y.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),y.string]),component:y.elementType,fontSize:y.oneOfType([y.oneOf(["inherit","large","medium","small"]),y.string]),htmlColor:y.string,inheritViewBox:y.bool,shapeRendering:y.string,sx:y.oneOfType([y.arrayOf(y.oneOfType([y.func,y.object,y.bool])),y.func,y.object]),titleAccess:y.string,viewBox:y.string});So.muiName="SvgIcon";function si(e,t){function r(n,a){return x.jsx(So,{"data-testid":`${t}Icon`,ref:a,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=So.muiName,F.memo(F.forwardRef(r))}const wP=si(x.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),CP=si(x.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function Hr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Cm=typeof global=="object"&&global&&global.Object===Object&&global,PP=typeof self=="object"&&self&&self.Object===Object&&self,Zt=Cm||PP||Function("return this")(),Xi=function(){return Zt.Date.now()},RP=/\s/;function TP(e){for(var t=e.length;t--&&RP.test(e.charAt(t)););return t}var AP=/^\s+/;function VP(e){return e&&e.slice(0,TP(e)+1).replace(AP,"")}var Tr=Zt.Symbol,Pm=Object.prototype,EP=Pm.hasOwnProperty,_P=Pm.toString,ba=Tr?Tr.toStringTag:void 0;function IP(e){var t=EP.call(e,ba),r=e[ba];try{e[ba]=void 0;var n=!0}catch{}var a=_P.call(e);return n&&(t?e[ba]=r:delete e[ba]),a}var MP=Object.prototype,$P=MP.toString;function jP(e){return $P.call(e)}var kP="[object Null]",LP="[object Undefined]",ih=Tr?Tr.toStringTag:void 0;function rn(e){return e==null?e===void 0?LP:kP:ih&&ih in Object(e)?IP(e):jP(e)}function qr(e){return e!=null&&typeof e=="object"}var UP="[object Symbol]";function oi(e){return typeof e=="symbol"||qr(e)&&rn(e)==UP}var lh=NaN,DP=/^[-+]0x[0-9a-f]+$/i,NP=/^0b[01]+$/i,FP=/^0o[0-7]+$/i,BP=parseInt;function ch(e){if(typeof e=="number")return e;if(oi(e))return lh;if(Hr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Hr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=VP(e);var r=NP.test(e);return r||FP.test(e)?BP(e.slice(2),r?2:8):DP.test(e)?lh:+e}var zP="Expected a function",GP=Math.max,HP=Math.min;function qP(e,t,r){var n,a,s,o,i,l,c=0,u=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(zP);t=ch(t)||0,Hr(r)&&(u=!!r.leading,d="maxWait"in r,s=d?GP(ch(r.maxWait)||0,t):s,h="trailing"in r?!!r.trailing:h);function p(R){var P=n,_=a;return n=a=void 0,c=R,o=e.apply(_,P),o}function m(R){return c=R,i=setTimeout(S,t),u?p(R):o}function f(R){var P=R-l,_=R-c,B=t-P;return d?HP(B,s-_):B}function g(R){var P=R-l,_=R-c;return l===void 0||P>=t||P<0||d&&_>=s}function S(){var R=Xi();if(g(R))return T(R);i=setTimeout(S,f(R))}function T(R){return i=void 0,h&&n?p(R):(n=a=void 0,o)}function O(){i!==void 0&&clearTimeout(i),c=0,n=l=a=i=void 0}function C(){return i===void 0?o:T(Xi())}function E(){var R=Xi(),P=g(R);if(n=arguments,a=this,l=R,P){if(i===void 0)return m(l);if(d)return clearTimeout(i),i=setTimeout(S,t),p(l)}return i===void 0&&(i=setTimeout(S,t)),o}return E.cancel=O,E.flush=C,E}var JP="Expected a function";function WP(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(JP);return Hr(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),qP(e,t,{leading:n,maxWait:t,trailing:a})}const Rm=en(Je.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:n,getValueDegs:a,disabled:s,...o})=>{var O,C,E,R,P,_,B,b,A,z,I,G,re,te,oe;const{t:i}=ze.useTranslation(),[l,c]=se.useState(),u=W.useTheme(),d={background:(O=u.palette.backgroundPaperElevation)==null?void 0:O[4],color:(C=u.palette.backgroundPaperElevation)==null?void 0:C[11]},h=Je.useLocalObservable(()=>({activeJoggingDir:null,startJogging(Z){this.activeJoggingDir=Z,e(Z)},stopJogging(){this.activeJoggingDir=null,t()}})),p=WP(()=>{c(a())},50);Yn(p);function m(Z){Z.button===0&&h.startJogging("-")}function f(Z){Z.button===0&&h.startJogging("+")}function g(Z){h.stopJogging()}function S(Z){h.stopJogging()}function T(Z,ae=1){if(Z===void 0||isNaN(Z))return"";const ge=i("General.degree.variable",{amount:Z.toFixed(ae)});return Z>0&&ae===0?`+${ge}`:ge}return x.jsxs(jn,{height:"64px",width:"100%",maxWidth:"260px",direction:"row",...o,sx:{"& .MuiIconButton-root":{width:"52px",color:u.palette.text.primary,alignContent:"center",backgroundColor:(E=u.palette.backgroundPaperElevation)==null?void 0:E[11],"& svg":{width:"42px",height:"42px"},"&.Mui-disabled":{backgroundColor:(R=u.palette.backgroundPaperElevation)==null?void 0:R[11],color:u.palette.action.disabled,opacity:1},"&:hover":{backgroundColor:(P=u.palette.backgroundPaperElevation)==null?void 0:P[9]},"&:active":{...d}}},children:[x.jsx(W.IconButton,{onPointerDown:m,onPointerUp:g,onPointerOut:S,disabled:s,disableRipple:!0,sx:{borderRadius:"16px 0px 0px 16px",...h.activeJoggingDir==="-"?d:{}},children:x.jsx(wP,{sx:{pointerEvents:"none",color:(A=(b=(B=(_=u.componentsExt)==null?void 0:_.JoggingPanel)==null?void 0:B.JoggingJoint)==null?void 0:b.Joint)==null?void 0:A.arrowColor}})}),x.jsxs(jn,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{borderStyle:"solid",borderLeftWidth:0,borderRightWidth:0,border:"none",backgroundColor:(z=u.palette.backgroundPaperElevation)==null?void 0:z[11],paddingLeft:"20px",paddingRight:"20px",zIndex:1},children:[x.jsx(W.Typography,{sx:{fontSize:"15px",fontWeight:700,position:"relative",top:"5px",color:s?u.palette.action.disabled:u.palette.text.primary},children:T(l)}),x.jsx(W.Slider,{disabled:!0,"aria-label":"Joint position",min:r,max:n,value:l||0,track:!1,sx:{"& .MuiSlider-mark":{display:"none"},"& .MuiSlider-thumb":{width:"5px",height:"12px",borderRadius:"2px",color:s?u.palette.action.disabled:u.palette.text.primary},"& .MuiSlider-markLabel":{top:"20px",fontSize:"12px",color:s?u.palette.action.disabled:u.palette.text.secondary},"& .MuiSlider-rail":{backgroundColor:(I=u.palette.backgroundPaperElevation)==null?void 0:I[5],opacity:1}},marks:r!==void 0&&n!==void 0&&[{value:r,label:T(r,0)},{value:n,label:T(n,0)}]})]}),x.jsx(W.IconButton,{onPointerDown:f,onPointerUp:g,onPointerOut:S,disabled:s,disableRipple:!0,sx:{borderRadius:"0px 16px 16px 0px",...h.activeJoggingDir==="+"?d:{}},children:x.jsx(CP,{sx:{pointerEvents:"none",color:(oe=(te=(re=(G=u.componentsExt)==null?void 0:G.JoggingPanel)==null?void 0:re.JoggingJoint)==null?void 0:te.Joint)==null?void 0:oe.arrowColor}})})]})})),KP=si(x.jsx("path",{d:"M10 9h4V6h3l-5-5-5 5h3zm-1 1H6V7l-5 5 5 5v-3h3zm14 2-5-5v3h-3v4h3v3zm-9 3h-4v3H7l5 5 5-5h-3z"}),"OpenWith"),YP=si(x.jsx("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92"}),"Share");function QP(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Tm=QP;function XP(){this.__data__=[],this.size=0}var ZP=XP;function eR(e,t){return e===t||e!==e&&t!==t}var Am=eR;function tR(e,t){for(var r=e.length;r--;)if(Am(e[r][0],t))return r;return-1}var ii=tR,rR=Array.prototype,nR=rR.splice;function aR(e){var t=this.__data__,r=ii(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():nR.call(t,r,1),--this.size,!0}var sR=aR;function oR(e){var t=this.__data__,r=ii(t,e);return r<0?void 0:t[r][1]}var iR=oR;function lR(e){return ii(this.__data__,e)>-1}var cR=lR;function uR(e,t){var r=this.__data__,n=ii(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var dR=uR;function Qn(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])}}Qn.prototype.clear=ZP;Qn.prototype.delete=sR;Qn.prototype.get=iR;Qn.prototype.has=cR;Qn.prototype.set=dR;var li=Qn;function hR(){this.__data__=new li,this.size=0}var pR=hR;function fR(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var mR=fR;function gR(e){return this.__data__.get(e)}var yR=gR;function bR(e){return this.__data__.has(e)}var vR=bR,xR=typeof global=="object"&&global&&global.Object===Object&&global,Vm=xR,SR=typeof self=="object"&&self&&self.Object===Object&&self,OR=Vm||SR||Function("return this")(),hr=OR,wR=hr.Symbol,qn=wR,Em=Object.prototype,CR=Em.hasOwnProperty,PR=Em.toString,va=qn?qn.toStringTag:void 0;function RR(e){var t=CR.call(e,va),r=e[va];try{e[va]=void 0;var n=!0}catch{}var a=PR.call(e);return n&&(t?e[va]=r:delete e[va]),a}var TR=RR,AR=Object.prototype,VR=AR.toString;function ER(e){return VR.call(e)}var _R=ER,IR="[object Null]",MR="[object Undefined]",uh=qn?qn.toStringTag:void 0;function $R(e){return e==null?e===void 0?MR:IR:uh&&uh in Object(e)?TR(e):_R(e)}var ls=$R,jR="[object AsyncFunction]",kR="[object Function]",LR="[object GeneratorFunction]",UR="[object Proxy]";function DR(e){if(!Tm(e))return!1;var t=ls(e);return t==kR||t==LR||t==jR||t==UR}var _m=DR,NR=hr["__core-js_shared__"],Zi=NR,dh=function(){var e=/[^.]+$/.exec(Zi&&Zi.keys&&Zi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function FR(e){return!!dh&&dh in e}var BR=FR,zR=Function.prototype,GR=zR.toString;function HR(e){if(e!=null){try{return GR.call(e)}catch{}try{return e+""}catch{}}return""}var nn=HR,qR=/[\\^$.*+?()[\]{}|]/g,JR=/^\[object .+?Constructor\]$/,WR=Function.prototype,KR=Object.prototype,YR=WR.toString,QR=KR.hasOwnProperty,XR=RegExp("^"+YR.call(QR).replace(qR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ZR(e){if(!Tm(e)||BR(e))return!1;var t=_m(e)?XR:JR;return t.test(nn(e))}var eT=ZR;function tT(e,t){return e==null?void 0:e[t]}var rT=tT;function nT(e,t){var r=rT(e,t);return eT(r)?r:void 0}var Xn=nT,aT=Xn(hr,"Map"),Ja=aT,sT=Xn(Object,"create"),Wa=sT;function oT(){this.__data__=Wa?Wa(null):{},this.size=0}var iT=oT;function lT(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var cT=lT,uT="__lodash_hash_undefined__",dT=Object.prototype,hT=dT.hasOwnProperty;function pT(e){var t=this.__data__;if(Wa){var r=t[e];return r===uT?void 0:r}return hT.call(t,e)?t[e]:void 0}var fT=pT,mT=Object.prototype,gT=mT.hasOwnProperty;function yT(e){var t=this.__data__;return Wa?t[e]!==void 0:gT.call(t,e)}var bT=yT,vT="__lodash_hash_undefined__";function xT(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Wa&&t===void 0?vT:t,this}var ST=xT;function Zn(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])}}Zn.prototype.clear=iT;Zn.prototype.delete=cT;Zn.prototype.get=fT;Zn.prototype.has=bT;Zn.prototype.set=ST;var hh=Zn;function OT(){this.size=0,this.__data__={hash:new hh,map:new(Ja||li),string:new hh}}var wT=OT;function CT(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var PT=CT;function RT(e,t){var r=e.__data__;return PT(t)?r[typeof t=="string"?"string":"hash"]:r.map}var ci=RT;function TT(e){var t=ci(this,e).delete(e);return this.size-=t?1:0,t}var AT=TT;function VT(e){return ci(this,e).get(e)}var ET=VT;function _T(e){return ci(this,e).has(e)}var IT=_T;function MT(e,t){var r=ci(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var $T=MT;function ea(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])}}ea.prototype.clear=wT;ea.prototype.delete=AT;ea.prototype.get=ET;ea.prototype.has=IT;ea.prototype.set=$T;var Im=ea,jT=200;function kT(e,t){var r=this.__data__;if(r instanceof li){var n=r.__data__;if(!Ja||n.length<jT-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Im(n)}return r.set(e,t),this.size=r.size,this}var LT=kT;function ta(e){var t=this.__data__=new li(e);this.size=t.size}ta.prototype.clear=pR;ta.prototype.delete=mR;ta.prototype.get=yR;ta.prototype.has=vR;ta.prototype.set=LT;var el=ta,UT="__lodash_hash_undefined__";function DT(e){return this.__data__.set(e,UT),this}var NT=DT;function FT(e){return this.__data__.has(e)}var BT=FT;function Oo(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Im;++t<r;)this.add(e[t])}Oo.prototype.add=Oo.prototype.push=NT;Oo.prototype.has=BT;var zT=Oo;function GT(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var HT=GT;function qT(e,t){return e.has(t)}var JT=qT,WT=1,KT=2;function YT(e,t,r,n,a,s){var o=r&WT,i=e.length,l=t.length;if(i!=l&&!(o&&l>i))return!1;var c=s.get(e),u=s.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,p=r&KT?new zT:void 0;for(s.set(e,t),s.set(t,e);++d<i;){var m=e[d],f=t[d];if(n)var g=o?n(f,m,d,t,e,s):n(m,f,d,e,t,s);if(g!==void 0){if(g)continue;h=!1;break}if(p){if(!HT(t,function(S,T){if(!JT(p,T)&&(m===S||a(m,S,r,n,s)))return p.push(T)})){h=!1;break}}else if(!(m===f||a(m,f,r,n,s))){h=!1;break}}return s.delete(e),s.delete(t),h}var Mm=YT,QT=hr.Uint8Array,ph=QT;function XT(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}var ZT=XT;function eA(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var tA=eA,rA=1,nA=2,aA="[object Boolean]",sA="[object Date]",oA="[object Error]",iA="[object Map]",lA="[object Number]",cA="[object RegExp]",uA="[object Set]",dA="[object String]",hA="[object Symbol]",pA="[object ArrayBuffer]",fA="[object DataView]",fh=qn?qn.prototype:void 0,tl=fh?fh.valueOf:void 0;function mA(e,t,r,n,a,s,o){switch(r){case fA:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case pA:return!(e.byteLength!=t.byteLength||!s(new ph(e),new ph(t)));case aA:case sA:case lA:return Am(+e,+t);case oA:return e.name==t.name&&e.message==t.message;case cA:case dA:return e==t+"";case iA:var i=ZT;case uA:var l=n&rA;if(i||(i=tA),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;n|=nA,o.set(e,t);var u=Mm(i(e),i(t),n,a,s,o);return o.delete(e),u;case hA:if(tl)return tl.call(e)==tl.call(t)}return!1}var gA=mA;function yA(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var bA=yA,vA=Array.isArray,wo=vA;function xA(e,t,r){var n=t(e);return wo(e)?n:bA(n,r(e))}var SA=xA;function OA(e,t){for(var r=-1,n=e==null?0:e.length,a=0,s=[];++r<n;){var o=e[r];t(o,r,e)&&(s[a++]=o)}return s}var wA=OA;function CA(){return[]}var PA=CA,RA=Object.prototype,TA=RA.propertyIsEnumerable,mh=Object.getOwnPropertySymbols,AA=mh?function(e){return e==null?[]:(e=Object(e),wA(mh(e),function(t){return TA.call(e,t)}))}:PA,VA=AA;function EA(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var _A=EA;function IA(e){return e!=null&&typeof e=="object"}var Ka=IA,MA="[object Arguments]";function $A(e){return Ka(e)&&ls(e)==MA}var gh=$A,$m=Object.prototype,jA=$m.hasOwnProperty,kA=$m.propertyIsEnumerable,LA=gh(function(){return arguments}())?gh:function(e){return Ka(e)&&jA.call(e,"callee")&&!kA.call(e,"callee")},UA=LA;function DA(){return!1}var NA=DA,jm=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yh=jm&&typeof module=="object"&&module&&!module.nodeType&&module,FA=yh&&yh.exports===jm,bh=FA?hr.Buffer:void 0,BA=bh?bh.isBuffer:void 0,zA=BA||NA,$l=zA,GA=9007199254740991,HA=/^(?:0|[1-9]\d*)$/;function qA(e,t){var r=typeof e;return t=t??GA,!!t&&(r=="number"||r!="symbol"&&HA.test(e))&&e>-1&&e%1==0&&e<t}var JA=qA,WA=9007199254740991;function KA(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=WA}var km=KA,YA="[object Arguments]",QA="[object Array]",XA="[object Boolean]",ZA="[object Date]",eV="[object Error]",tV="[object Function]",rV="[object Map]",nV="[object Number]",aV="[object Object]",sV="[object RegExp]",oV="[object Set]",iV="[object String]",lV="[object WeakMap]",cV="[object ArrayBuffer]",uV="[object DataView]",dV="[object Float32Array]",hV="[object Float64Array]",pV="[object Int8Array]",fV="[object Int16Array]",mV="[object Int32Array]",gV="[object Uint8Array]",yV="[object Uint8ClampedArray]",bV="[object Uint16Array]",vV="[object Uint32Array]",Ie={};Ie[dV]=Ie[hV]=Ie[pV]=Ie[fV]=Ie[mV]=Ie[gV]=Ie[yV]=Ie[bV]=Ie[vV]=!0;Ie[YA]=Ie[QA]=Ie[cV]=Ie[XA]=Ie[uV]=Ie[ZA]=Ie[eV]=Ie[tV]=Ie[rV]=Ie[nV]=Ie[aV]=Ie[sV]=Ie[oV]=Ie[iV]=Ie[lV]=!1;function xV(e){return Ka(e)&&km(e.length)&&!!Ie[ls(e)]}var SV=xV;function OV(e){return function(t){return e(t)}}var wV=OV,Lm=typeof exports=="object"&&exports&&!exports.nodeType&&exports,$a=Lm&&typeof module=="object"&&module&&!module.nodeType&&module,CV=$a&&$a.exports===Lm,rl=CV&&Vm.process,PV=function(){try{var e=$a&&$a.require&&$a.require("util").types;return e||rl&&rl.binding&&rl.binding("util")}catch{}}(),vh=PV,xh=vh&&vh.isTypedArray,RV=xh?wV(xh):SV,Um=RV,TV=Object.prototype,AV=TV.hasOwnProperty;function VV(e,t){var r=wo(e),n=!r&&UA(e),a=!r&&!n&&$l(e),s=!r&&!n&&!a&&Um(e),o=r||n||a||s,i=o?_A(e.length,String):[],l=i.length;for(var c in e)(t||AV.call(e,c))&&!(o&&(c=="length"||a&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||JA(c,l)))&&i.push(c);return i}var EV=VV,_V=Object.prototype;function IV(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||_V;return e===r}var MV=IV;function $V(e,t){return function(r){return e(t(r))}}var jV=$V,kV=jV(Object.keys,Object),LV=kV,UV=Object.prototype,DV=UV.hasOwnProperty;function NV(e){if(!MV(e))return LV(e);var t=[];for(var r in Object(e))DV.call(e,r)&&r!="constructor"&&t.push(r);return t}var FV=NV;function BV(e){return e!=null&&km(e.length)&&!_m(e)}var zV=BV;function GV(e){return zV(e)?EV(e):FV(e)}var HV=GV;function qV(e){return SA(e,HV,VA)}var Sh=qV,JV=1,WV=Object.prototype,KV=WV.hasOwnProperty;function YV(e,t,r,n,a,s){var o=r&JV,i=Sh(e),l=i.length,c=Sh(t),u=c.length;if(l!=u&&!o)return!1;for(var d=l;d--;){var h=i[d];if(!(o?h in t:KV.call(t,h)))return!1}var p=s.get(e),m=s.get(t);if(p&&m)return p==t&&m==e;var f=!0;s.set(e,t),s.set(t,e);for(var g=o;++d<l;){h=i[d];var S=e[h],T=t[h];if(n)var O=o?n(T,S,h,t,e,s):n(S,T,h,e,t,s);if(!(O===void 0?S===T||a(S,T,r,n,s):O)){f=!1;break}g||(g=h=="constructor")}if(f&&!g){var C=e.constructor,E=t.constructor;C!=E&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof E=="function"&&E instanceof E)&&(f=!1)}return s.delete(e),s.delete(t),f}var QV=YV,XV=Xn(hr,"DataView"),jl=XV,ZV=Xn(hr,"Promise"),kl=ZV,eE=Xn(hr,"Set"),Ll=eE,tE=Xn(hr,"WeakMap"),Ul=tE,Oh="[object Map]",rE="[object Object]",wh="[object Promise]",Ch="[object Set]",Ph="[object WeakMap]",Rh="[object DataView]",nE=nn(jl),aE=nn(Ja),sE=nn(kl),oE=nn(Ll),iE=nn(Ul),kr=ls;(jl&&kr(new jl(new ArrayBuffer(1)))!=Rh||Ja&&kr(new Ja)!=Oh||kl&&kr(kl.resolve())!=wh||Ll&&kr(new Ll)!=Ch||Ul&&kr(new Ul)!=Ph)&&(kr=function(e){var t=ls(e),r=t==rE?e.constructor:void 0,n=r?nn(r):"";if(n)switch(n){case nE:return Rh;case aE:return Oh;case sE:return wh;case oE:return Ch;case iE:return Ph}return t});var Th=kr,lE=1,Ah="[object Arguments]",Vh="[object Array]",Rs="[object Object]",cE=Object.prototype,Eh=cE.hasOwnProperty;function uE(e,t,r,n,a,s){var o=wo(e),i=wo(t),l=o?Vh:Th(e),c=i?Vh:Th(t);l=l==Ah?Rs:l,c=c==Ah?Rs:c;var u=l==Rs,d=c==Rs,h=l==c;if(h&&$l(e)){if(!$l(t))return!1;o=!0,u=!1}if(h&&!u)return s||(s=new el),o||Um(e)?Mm(e,t,r,n,a,s):gA(e,t,l,r,n,a,s);if(!(r&lE)){var p=u&&Eh.call(e,"__wrapped__"),m=d&&Eh.call(t,"__wrapped__");if(p||m){var f=p?e.value():e,g=m?t.value():t;return s||(s=new el),a(f,g,r,n,s)}}return h?(s||(s=new el),QV(e,t,r,n,a,s)):!1}var dE=uE;function Dm(e,t,r,n,a){return e===t?!0:e==null||t==null||!Ka(e)&&!Ka(t)?e!==e&&t!==t:dE(e,t,r,n,Dm,a)}var hE=Dm;function pE(e,t){return hE(e,t)}var fE=pE;/*! *****************************************************************************
136
+ Bei einem physischen Roboter bedeutet dies im Allgemeinen, dass ein Freigabeschalter gedrückt werden muss, damit sich der Roboter erfolgreich bewegen kann.`,"SafetyBar.OperationMode.Manual.lb":"Manuell","SafetyBar.OperationMode.ti":"Betriebsmodus","SafetyBar.SafetyState.Error.Explanation.lb":"Die Robotersteuerung ist in einen unerwarteten Sicherheitszustand eingetreten.","SafetyBar.SafetyState.Error.lb":"Fehler","SafetyBar.SafetyState.Estop.lb":"NOT-AUS","SafetyBar.SafetyState.ManualActionRequired.Explanation.lb":"Die Robotersteuerung ist in einen Sicherheitszustand eingetreten, der manuelle Maßnahmen zur Behebung erfordert.","SafetyBar.SafetyState.ManualActionRequired.lb":"Aktion erforderlich","SafetyBar.SafetyState.Normal.Explanation.lb":"Die Robotersteuerung befindet sich in einem sicheren Zustand. Roboterbewegungen sind möglich.","SafetyBar.SafetyState.Normal.lb":"Sicher","SafetyBar.SafetyState.Stop.Explanation.lb":"Die Robotersteuerung ist in einen Stoppzustand übergegangen. Bis der Stoppzustand aufgelöst ist, ist keine Bewegung mehr möglich.","SafetyBar.SafetyState.Stop.lb":"Stopp","SafetyBar.SafetyState.ti":"Sicherheitszustand","SafetyBar.StopState.Estop.Explanation.lb":"NOT-AUS aktiviert. NOT-AUS freischalten, um Roboter zu bewegen.","Jogging.Increment.hlb":"Schrittgröße","Jogging.CoordinateSystem.hlb":"Koordinatensystem","Jogging.Cartesian.bt":"Kartesisch","Jogging.Joints.bt":"Gelenke","Jogging.Velocity.bt":"Geschwindigkeit","CycleTimer.RemainingTime.lb":"Verbleibende Zeit","CycleTimer.OfTime.lb":"von {{time}} min."},pP={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Velocity","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}} mm","Jogging.Cartesian.MotionType.lb":"Motion type","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Joint values","Jogging.Increment.Continuous.dd":"Continuous","Jogging.Cartesian.Orientation.lb":"Orientation","Jogging.Activating.lb":"Activating jogging","Jogging.JointLimitsReached.lb":"Joint limit reached for joint {{jointNumbers}}","Jogging.Orientation.coordsys":"Robot base","Jogging.Orientation.tool":"Tool","SafetyBar.ActivationToggle.Activate.bt":"Activate","SafetyBar.ActivationToggle.Activated.bt":"Activated","SafetyBar.ActivationToggle.Activating.bt":"Activating","SafetyBar.ActivationToggle.Deactivating.bt":"Deactivating","SafetyBar.ControllerType.Physical.lb":"Physical","SafetyBar.ControllerType.Virtual.lb":"Virtual","SafetyBar.MotionGroup.Physical.Explanation.lb":"<code>{{motionGroupId}}</code> is a physical robot controller. <strong>Safety precautions</strong> are active for the movement of this robot.","SafetyBar.MotionGroup.Virtual.Explanation.lb":"<1>{{motionGroupId}}</1> is a virtual robot controller with no physical counterpart. It can be freely manipulated without safety precautions.","SafetyBar.OperationMode.Auto.Explanation.lb":"Automatic operation mode active. Automated movement without manual confirmation enabled.","SafetyBar.OperationMode.Automatic.ti":"Automatic","SafetyBar.OperationMode.Error.Explanation.lb":"Failed to get operation mode. Use the original control panel to resolve the error.","SafetyBar.OperationMode.Error.lb":"Error","SafetyBar.OperationMode.Manual.Explanation.lb":"The robot controller is in manual operation mode. On a physical robot, this generally indicates that an enabling switch must be held for the robot to move successfully.","SafetyBar.OperationMode.Manual.lb":"Manual","SafetyBar.OperationMode.ti":"Operation mode","SafetyBar.SafetyState.Error.Explanation.lb":"The robot controller has entered an unexpected safety state.","SafetyBar.SafetyState.Error.lb":"Error","SafetyBar.SafetyState.Estop.lb":"E-Stop","SafetyBar.SafetyState.ManualActionRequired.Explanation.lb":"The robot controller has entered a safety state requiring manual action to resolve.","SafetyBar.SafetyState.ManualActionRequired.lb":"Action required","SafetyBar.SafetyState.Normal.Explanation.lb":"The robot controller is in a safe state. Robot movement is enabled.","SafetyBar.SafetyState.Normal.lb":"Safe","SafetyBar.SafetyState.Stop.Explanation.lb":"The robot controller has entered a stop state. Movement is no longer possible until the stop state is resolved.","SafetyBar.SafetyState.Stop.lb":"Stop","SafetyBar.SafetyState.ti":"Safety state","SafetyBar.StopState.Estop.Explanation.lb":"An emergency stop of the robot controller has been triggered. Movement of the robot is no longer possible until the estop is released.","Jogging.Increment.hlb":"Increment","Jogging.CoordinateSystem.hlb":"Coordinate system","Jogging.Cartesian.bt":"Cartesian","Jogging.Joints.bt":"Joints","Jogging.Velocity.bt":"Velocity","CycleTimer.RemainingTime.lb":"Time remaining","CycleTimer.OfTime.lb":"of {{time}} min."},Gc=lt.createInstance();Gc.use(uy).init({supportedLngs:["en","de"],resources:{en:{translations:pP},de:{translations:hP}},ns:["translations"],defaultNS:"translations",detection:{order:["navigator","htmlTag"]}});function en(e){return r=>x.jsx(fP,{children:x.jsx(e,{...r})})}const fP=({children:e})=>x.jsx(ze.I18nextProvider,{i18n:Gc,children:e}),mP=en(Je.observer(({onCycleComplete:e,onCycleEnd:t,autoStart:r=!0,variant:n="default",compact:a=!1,className:s})=>{var T;const o=W.useTheme(),{t:i}=ze.useTranslation(),[l,c]=se.useState(0),[u,d]=se.useState(0),[h,p]=se.useState(!1),m=se.useRef(null),f=se.useCallback(O=>{console.log(`Starting new cycle with ${O} seconds`),d(O),c(O),r?(console.log("Auto-start enabled, starting timer"),p(!0)):console.log("Auto-start disabled, timer set but not started")},[r]);se.useEffect(()=>{let O=!0;const C=setTimeout(()=>{O&&e(f)},0);return()=>{O=!1,clearTimeout(C)}},[e,f]),se.useEffect(()=>(h&&l>0?m.current=setInterval(()=>{c(O=>O<=1?(p(!1),t&&setTimeout(()=>t(),0),console.log("Cycle completed! Timer reached zero."),0):O-1)},1e3):m.current&&(clearInterval(m.current),m.current=null),()=>{m.current&&clearInterval(m.current)}),[h,l,t]);const g=O=>{const C=Math.floor(O/60),E=O%60;return`${C}:${E.toString().padStart(2,"0")}`},S=u>0?(u-l)/u*100:0;return n==="small"?x.jsxs(W.Box,{className:s,sx:{display:"flex",alignItems:"center",gap:.125},children:[x.jsx(W.Box,{sx:{position:"relative",width:40,height:40,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",overflow:"visible"},children:x.jsx(go,{width:40,height:40,value:S,valueMin:0,valueMax:100,innerRadius:"70%",outerRadius:"95%",sx:{"& .MuiGauge-valueArc":{fill:o.palette.success.main},"& .MuiGauge-referenceArc":{fill:o.palette.success.main,opacity:.3},"& .MuiGauge-valueText":{display:"none"},"& .MuiGauge-text":{display:"none"},"& text":{display:"none"}}})}),x.jsx(W.Typography,{variant:"body2",sx:{color:o.palette.text.primary,fontSize:"14px"},children:a?g(l):`${g(l)} / ${i("CycleTimer.OfTime.lb",{time:g(u)})}`})]}):x.jsxs(W.Box,{className:s,sx:{position:"relative",width:264,height:264,display:"flex",alignItems:"center",justifyContent:"center"},children:[x.jsx(go,{width:264,height:264,value:S,valueMin:0,valueMax:100,innerRadius:"71%",outerRadius:"90%",sx:{"& .MuiGauge-valueArc":{fill:o.palette.success.main},"& .MuiGauge-referenceArc":{fill:"white",stroke:"transparent"}}}),x.jsxs(W.Box,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:187,height:187,borderRadius:"50%",backgroundColor:(T=o.palette.backgroundPaperElevation)==null?void 0:T[8],display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",gap:1},children:[x.jsx(W.Typography,{variant:"body2",sx:{fontSize:"12px",color:o.palette.text.secondary,marginBottom:.5},children:i("CycleTimer.RemainingTime.lb")}),x.jsx(W.Typography,{variant:"h1",sx:{fontSize:"48px",fontWeight:500,color:o.palette.text.primary,lineHeight:1,marginBottom:.5},children:g(l)}),x.jsx(W.Typography,{variant:"body2",sx:{fontSize:"12px",color:o.palette.text.secondary},children:i("CycleTimer.OfTime.lb",{time:g(u)})})]})]})}));process.env.NODE_ENV!=="production"&&(y.node,y.object.isRequired);function Hc(e){return hb(e)}const jn=Pb({createStyledComponent:Pt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Hc({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(jn.propTypes={children:y.node,component:y.elementType,direction:y.oneOfType([y.oneOf(["column-reverse","column","row-reverse","row"]),y.arrayOf(y.oneOf(["column-reverse","column","row-reverse","row"])),y.object]),divider:y.node,spacing:y.oneOfType([y.arrayOf(y.oneOfType([y.number,y.string])),y.number,y.object,y.string]),sx:y.oneOfType([y.arrayOf(y.oneOfType([y.func,y.object,y.bool])),y.func,y.object]),useFlexGap:y.bool});const gP=({title:e,titleId:t,...r},n)=>F.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("g",{id:"JogMinus"},F.createElement("path",{id:"Minus",d:"M0 13V8H21V13H0Z",fill:"white"}))),yP=se.forwardRef(gP),bP=({title:e,titleId:t,...r},n)=>F.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("g",{id:"JogPlus"},F.createElement("g",{id:"Plus"},F.createElement("path",{d:"M0 13V8H8V13H0Z",fill:"white"}),F.createElement("path",{d:"M8 0L13 2.18557e-07L13 21H8L8 0Z",fill:"white"}),F.createElement("path",{d:"M13 13V8H21V13H13Z",fill:"white"})))),vP=se.forwardRef(bP);function ai(e){se.useEffect(e,[])}function Om(e){ai(()=>Xe.autorun(e))}function wm(e,t,r){ai(()=>Xe.reaction(e,t,r))}function Yn(e){return ai(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}const Ml=en(Je.observer(({colors:e,label:t,getDisplayedValue:r,startJogging:n,stopJogging:a,disabled:s,activeJoggingDirection:o,...i})=>{var O,C,E,R,P,_,B;Yn(()=>{const b=r(),A=h.current;A&&(A.textContent=b)});const l=W.useTheme(),[c,u]=se.useState(null);se.useEffect(()=>{s&&T()},[s]);const d=o||c,h=se.useRef(null);e||(e={color:"#fff",backgroundColor:"#000",borderColor:"#000",buttonBackgroundColor:{disabled:"#000",default:"#000",hovered:"#000",pressed:"#000"},labelColor:"#000"});const p=d?(O=e.buttonBackgroundColor)==null?void 0:O.pressed:e.borderColor,m={width:"55px",color:e.color,path:{fill:e.color},alignContent:"center",fontSize:"37px",svg:{pointerEvents:"none"}},f={...m,backgroundColor:(C=e.buttonBackgroundColor)==null?void 0:C.default,":hover":{backgroundColor:(E=e.buttonBackgroundColor)==null?void 0:E.hovered},":active":{backgroundColor:(R=e.buttonBackgroundColor)==null?void 0:R.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor}},":disabled":{backgroundColor:(P=e.buttonBackgroundColor)==null?void 0:P.disabled,"svg path":{fill:l.palette.action.disabled}}},g={...m,backgroundColor:(_=e.buttonBackgroundColor)==null?void 0:_.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor},":disabled":{backgroundColor:(B=e.buttonBackgroundColor)==null?void 0:B.pressed,"svg path":{fill:l.palette.action.disabled}}};function S(b,A){s||b.button===0&&(u(A),n(A))}function T(){u(null),a()}return x.jsxs(jn,{height:"64px",direction:"row",justifyContent:"center",...i,children:[x.jsx(W.IconButton,{disabled:s,disableRipple:!0,onPointerDown:b=>S(b,"-"),onPointerUp:T,onPointerOut:T,size:"large",sx:{...d==="-"?g:f,borderRadius:"16px 0px 0px 16px",borderLeft:`2px solid ${p??"#fff"}`,borderBottom:`2px solid ${p??"#fff"}`,borderTop:`2px solid ${p??"#fff"}`},children:x.jsx(yP,{})}),x.jsxs(jn,{spacing:"6px",sx:{width:"150px",backgroundColor:e.backgroundColor,alignItems:"center",justifyContent:"center",opacity:"0.9",borderBottom:`2px solid ${p??"#fff"}`,borderTop:`2px solid ${p??"#fff"}`},children:[x.jsx(jn,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none",color:e.color,".MuiTypography-root":{fontWeight:700,...s?{color:l.palette.action.disabled}:{}},...s?{"svg path":{fill:l.palette.action.disabled}}:{}},children:t}),x.jsx(W.Typography,{height:"22px",sx:{fontSize:"15px",color:s?l.palette.action.disabled:e.color,fontWeight:700},ref:h,children:r()})]}),x.jsx(W.IconButton,{disableRipple:!0,disabled:s,onPointerDown:b=>S(b,"+"),onPointerUp:T,onPointerOut:T,size:"large",sx:{...d==="+"?g:f,borderRadius:"0px 16px 16px 0px",borderRight:`2px solid ${p??"#fff"}`,borderBottom:`2px solid ${p??"#fff"}`,borderTop:`2px solid ${p??"#fff"}`},children:x.jsx(vP,{})})]})})),tn=pb;function xP(e){return ts("MuiSvgIcon",e)}$p("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const SP=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${dt(t)}`,`fontSize${dt(r)}`]};return ac(a,xP,n)},OP=Pt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${dt(r.color)}`],t[`fontSize${dt(r.fontSize)}`]]}})(tn(({theme:e})=>{var t,r,n,a,s,o,i,l,c,u,d,h,p,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(a=(t=e.transitions)==null?void 0:t.create)==null?void 0:a.call(t,"fill",{duration:(n=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:f=>!f.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((o=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:o.call(s,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:l.call(i,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,f])=>f&&f.main).map(([f])=>{var g,S;return{props:{color:f},style:{color:(S=(g=(e.vars??e).palette)==null?void 0:g[f])==null?void 0:S.main}}}),{props:{color:"action"},style:{color:(h=(d=(e.vars??e).palette)==null?void 0:d.action)==null?void 0:h.active}},{props:{color:"disabled"},style:{color:(m=(p=(e.vars??e).palette)==null?void 0:p.action)==null?void 0:m.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),So=F.forwardRef(function(t,r){const n=Hc({props:t,name:"MuiSvgIcon"}),{children:a,className:s,color:o="inherit",component:i="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:h="0 0 24 24",...p}=n,m=F.isValidElement(a)&&a.type==="svg",f={...n,color:o,component:i,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:m},g={};u||(g.viewBox=h);const S=SP(f);return x.jsxs(OP,{as:i,className:Nt(S.root,s),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r,...g,...p,...m&&a.props,ownerState:f,children:[m?a.props.children:a,d?x.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(So.propTypes={children:y.node,classes:y.object,className:y.string,color:y.oneOfType([y.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),y.string]),component:y.elementType,fontSize:y.oneOfType([y.oneOf(["inherit","large","medium","small"]),y.string]),htmlColor:y.string,inheritViewBox:y.bool,shapeRendering:y.string,sx:y.oneOfType([y.arrayOf(y.oneOfType([y.func,y.object,y.bool])),y.func,y.object]),titleAccess:y.string,viewBox:y.string});So.muiName="SvgIcon";function si(e,t){function r(n,a){return x.jsx(So,{"data-testid":`${t}Icon`,ref:a,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=So.muiName,F.memo(F.forwardRef(r))}const wP=si(x.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),CP=si(x.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function Hr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Cm=typeof global=="object"&&global&&global.Object===Object&&global,PP=typeof self=="object"&&self&&self.Object===Object&&self,Zt=Cm||PP||Function("return this")(),Xi=function(){return Zt.Date.now()},RP=/\s/;function TP(e){for(var t=e.length;t--&&RP.test(e.charAt(t)););return t}var AP=/^\s+/;function VP(e){return e&&e.slice(0,TP(e)+1).replace(AP,"")}var Tr=Zt.Symbol,Pm=Object.prototype,EP=Pm.hasOwnProperty,_P=Pm.toString,ba=Tr?Tr.toStringTag:void 0;function IP(e){var t=EP.call(e,ba),r=e[ba];try{e[ba]=void 0;var n=!0}catch{}var a=_P.call(e);return n&&(t?e[ba]=r:delete e[ba]),a}var MP=Object.prototype,$P=MP.toString;function jP(e){return $P.call(e)}var kP="[object Null]",LP="[object Undefined]",ih=Tr?Tr.toStringTag:void 0;function rn(e){return e==null?e===void 0?LP:kP:ih&&ih in Object(e)?IP(e):jP(e)}function qr(e){return e!=null&&typeof e=="object"}var UP="[object Symbol]";function oi(e){return typeof e=="symbol"||qr(e)&&rn(e)==UP}var lh=NaN,DP=/^[-+]0x[0-9a-f]+$/i,NP=/^0b[01]+$/i,FP=/^0o[0-7]+$/i,BP=parseInt;function ch(e){if(typeof e=="number")return e;if(oi(e))return lh;if(Hr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Hr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=VP(e);var r=NP.test(e);return r||FP.test(e)?BP(e.slice(2),r?2:8):DP.test(e)?lh:+e}var zP="Expected a function",GP=Math.max,HP=Math.min;function qP(e,t,r){var n,a,s,o,i,l,c=0,u=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(zP);t=ch(t)||0,Hr(r)&&(u=!!r.leading,d="maxWait"in r,s=d?GP(ch(r.maxWait)||0,t):s,h="trailing"in r?!!r.trailing:h);function p(R){var P=n,_=a;return n=a=void 0,c=R,o=e.apply(_,P),o}function m(R){return c=R,i=setTimeout(S,t),u?p(R):o}function f(R){var P=R-l,_=R-c,B=t-P;return d?HP(B,s-_):B}function g(R){var P=R-l,_=R-c;return l===void 0||P>=t||P<0||d&&_>=s}function S(){var R=Xi();if(g(R))return T(R);i=setTimeout(S,f(R))}function T(R){return i=void 0,h&&n?p(R):(n=a=void 0,o)}function O(){i!==void 0&&clearTimeout(i),c=0,n=l=a=i=void 0}function C(){return i===void 0?o:T(Xi())}function E(){var R=Xi(),P=g(R);if(n=arguments,a=this,l=R,P){if(i===void 0)return m(l);if(d)return clearTimeout(i),i=setTimeout(S,t),p(l)}return i===void 0&&(i=setTimeout(S,t)),o}return E.cancel=O,E.flush=C,E}var JP="Expected a function";function WP(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(JP);return Hr(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),qP(e,t,{leading:n,maxWait:t,trailing:a})}const Rm=en(Je.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:n,getValueDegs:a,disabled:s,...o})=>{var O,C,E,R,P,_,B,b,A,z,I,G,re,te,oe;const{t:i}=ze.useTranslation(),[l,c]=se.useState(),u=W.useTheme(),d={background:(O=u.palette.backgroundPaperElevation)==null?void 0:O[4],color:(C=u.palette.backgroundPaperElevation)==null?void 0:C[11]},h=Je.useLocalObservable(()=>({activeJoggingDir:null,startJogging(Z){this.activeJoggingDir=Z,e(Z)},stopJogging(){this.activeJoggingDir=null,t()}})),p=WP(()=>{c(a())},50);Yn(p);function m(Z){Z.button===0&&h.startJogging("-")}function f(Z){Z.button===0&&h.startJogging("+")}function g(Z){h.stopJogging()}function S(Z){h.stopJogging()}function T(Z,ae=1){if(Z===void 0||isNaN(Z))return"";const ge=i("General.degree.variable",{amount:Z.toFixed(ae)});return Z>0&&ae===0?`+${ge}`:ge}return x.jsxs(jn,{height:"64px",width:"100%",maxWidth:"260px",direction:"row",...o,sx:{"& .MuiIconButton-root":{width:"52px",color:u.palette.text.primary,alignContent:"center",backgroundColor:(E=u.palette.backgroundPaperElevation)==null?void 0:E[11],"& svg":{width:"42px",height:"42px"},"&.Mui-disabled":{backgroundColor:(R=u.palette.backgroundPaperElevation)==null?void 0:R[11],color:u.palette.action.disabled,opacity:1},"&:hover":{backgroundColor:(P=u.palette.backgroundPaperElevation)==null?void 0:P[9]},"&:active":{...d}}},children:[x.jsx(W.IconButton,{onPointerDown:m,onPointerUp:g,onPointerOut:S,disabled:s,disableRipple:!0,sx:{borderRadius:"16px 0px 0px 16px",...h.activeJoggingDir==="-"?d:{}},children:x.jsx(wP,{sx:{pointerEvents:"none",color:(A=(b=(B=(_=u.componentsExt)==null?void 0:_.JoggingPanel)==null?void 0:B.JoggingJoint)==null?void 0:b.Joint)==null?void 0:A.arrowColor}})}),x.jsxs(jn,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{borderStyle:"solid",borderLeftWidth:0,borderRightWidth:0,border:"none",backgroundColor:(z=u.palette.backgroundPaperElevation)==null?void 0:z[11],paddingLeft:"20px",paddingRight:"20px",zIndex:1},children:[x.jsx(W.Typography,{sx:{fontSize:"15px",fontWeight:700,position:"relative",top:"5px",color:s?u.palette.action.disabled:u.palette.text.primary},children:T(l)}),x.jsx(W.Slider,{disabled:!0,"aria-label":"Joint position",min:r,max:n,value:l||0,track:!1,sx:{"& .MuiSlider-mark":{display:"none"},"& .MuiSlider-thumb":{width:"5px",height:"12px",borderRadius:"2px",color:s?u.palette.action.disabled:u.palette.text.primary},"& .MuiSlider-markLabel":{top:"20px",fontSize:"12px",color:s?u.palette.action.disabled:u.palette.text.secondary},"& .MuiSlider-rail":{backgroundColor:(I=u.palette.backgroundPaperElevation)==null?void 0:I[5],opacity:1}},marks:r!==void 0&&n!==void 0&&[{value:r,label:T(r,0)},{value:n,label:T(n,0)}]})]}),x.jsx(W.IconButton,{onPointerDown:f,onPointerUp:g,onPointerOut:S,disabled:s,disableRipple:!0,sx:{borderRadius:"0px 16px 16px 0px",...h.activeJoggingDir==="+"?d:{}},children:x.jsx(CP,{sx:{pointerEvents:"none",color:(oe=(te=(re=(G=u.componentsExt)==null?void 0:G.JoggingPanel)==null?void 0:re.JoggingJoint)==null?void 0:te.Joint)==null?void 0:oe.arrowColor}})})]})})),KP=si(x.jsx("path",{d:"M10 9h4V6h3l-5-5-5 5h3zm-1 1H6V7l-5 5 5 5v-3h3zm14 2-5-5v3h-3v4h3v3zm-9 3h-4v3H7l5 5 5-5h-3z"}),"OpenWith"),YP=si(x.jsx("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92"}),"Share");function QP(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Tm=QP;function XP(){this.__data__=[],this.size=0}var ZP=XP;function eR(e,t){return e===t||e!==e&&t!==t}var Am=eR;function tR(e,t){for(var r=e.length;r--;)if(Am(e[r][0],t))return r;return-1}var ii=tR,rR=Array.prototype,nR=rR.splice;function aR(e){var t=this.__data__,r=ii(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():nR.call(t,r,1),--this.size,!0}var sR=aR;function oR(e){var t=this.__data__,r=ii(t,e);return r<0?void 0:t[r][1]}var iR=oR;function lR(e){return ii(this.__data__,e)>-1}var cR=lR;function uR(e,t){var r=this.__data__,n=ii(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var dR=uR;function Qn(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])}}Qn.prototype.clear=ZP;Qn.prototype.delete=sR;Qn.prototype.get=iR;Qn.prototype.has=cR;Qn.prototype.set=dR;var li=Qn;function hR(){this.__data__=new li,this.size=0}var pR=hR;function fR(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var mR=fR;function gR(e){return this.__data__.get(e)}var yR=gR;function bR(e){return this.__data__.has(e)}var vR=bR,xR=typeof global=="object"&&global&&global.Object===Object&&global,Vm=xR,SR=typeof self=="object"&&self&&self.Object===Object&&self,OR=Vm||SR||Function("return this")(),hr=OR,wR=hr.Symbol,qn=wR,Em=Object.prototype,CR=Em.hasOwnProperty,PR=Em.toString,va=qn?qn.toStringTag:void 0;function RR(e){var t=CR.call(e,va),r=e[va];try{e[va]=void 0;var n=!0}catch{}var a=PR.call(e);return n&&(t?e[va]=r:delete e[va]),a}var TR=RR,AR=Object.prototype,VR=AR.toString;function ER(e){return VR.call(e)}var _R=ER,IR="[object Null]",MR="[object Undefined]",uh=qn?qn.toStringTag:void 0;function $R(e){return e==null?e===void 0?MR:IR:uh&&uh in Object(e)?TR(e):_R(e)}var ls=$R,jR="[object AsyncFunction]",kR="[object Function]",LR="[object GeneratorFunction]",UR="[object Proxy]";function DR(e){if(!Tm(e))return!1;var t=ls(e);return t==kR||t==LR||t==jR||t==UR}var _m=DR,NR=hr["__core-js_shared__"],Zi=NR,dh=function(){var e=/[^.]+$/.exec(Zi&&Zi.keys&&Zi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function FR(e){return!!dh&&dh in e}var BR=FR,zR=Function.prototype,GR=zR.toString;function HR(e){if(e!=null){try{return GR.call(e)}catch{}try{return e+""}catch{}}return""}var nn=HR,qR=/[\\^$.*+?()[\]{}|]/g,JR=/^\[object .+?Constructor\]$/,WR=Function.prototype,KR=Object.prototype,YR=WR.toString,QR=KR.hasOwnProperty,XR=RegExp("^"+YR.call(QR).replace(qR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ZR(e){if(!Tm(e)||BR(e))return!1;var t=_m(e)?XR:JR;return t.test(nn(e))}var eT=ZR;function tT(e,t){return e==null?void 0:e[t]}var rT=tT;function nT(e,t){var r=rT(e,t);return eT(r)?r:void 0}var Xn=nT,aT=Xn(hr,"Map"),Ja=aT,sT=Xn(Object,"create"),Wa=sT;function oT(){this.__data__=Wa?Wa(null):{},this.size=0}var iT=oT;function lT(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var cT=lT,uT="__lodash_hash_undefined__",dT=Object.prototype,hT=dT.hasOwnProperty;function pT(e){var t=this.__data__;if(Wa){var r=t[e];return r===uT?void 0:r}return hT.call(t,e)?t[e]:void 0}var fT=pT,mT=Object.prototype,gT=mT.hasOwnProperty;function yT(e){var t=this.__data__;return Wa?t[e]!==void 0:gT.call(t,e)}var bT=yT,vT="__lodash_hash_undefined__";function xT(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Wa&&t===void 0?vT:t,this}var ST=xT;function Zn(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])}}Zn.prototype.clear=iT;Zn.prototype.delete=cT;Zn.prototype.get=fT;Zn.prototype.has=bT;Zn.prototype.set=ST;var hh=Zn;function OT(){this.size=0,this.__data__={hash:new hh,map:new(Ja||li),string:new hh}}var wT=OT;function CT(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var PT=CT;function RT(e,t){var r=e.__data__;return PT(t)?r[typeof t=="string"?"string":"hash"]:r.map}var ci=RT;function TT(e){var t=ci(this,e).delete(e);return this.size-=t?1:0,t}var AT=TT;function VT(e){return ci(this,e).get(e)}var ET=VT;function _T(e){return ci(this,e).has(e)}var IT=_T;function MT(e,t){var r=ci(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var $T=MT;function ea(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])}}ea.prototype.clear=wT;ea.prototype.delete=AT;ea.prototype.get=ET;ea.prototype.has=IT;ea.prototype.set=$T;var Im=ea,jT=200;function kT(e,t){var r=this.__data__;if(r instanceof li){var n=r.__data__;if(!Ja||n.length<jT-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Im(n)}return r.set(e,t),this.size=r.size,this}var LT=kT;function ta(e){var t=this.__data__=new li(e);this.size=t.size}ta.prototype.clear=pR;ta.prototype.delete=mR;ta.prototype.get=yR;ta.prototype.has=vR;ta.prototype.set=LT;var el=ta,UT="__lodash_hash_undefined__";function DT(e){return this.__data__.set(e,UT),this}var NT=DT;function FT(e){return this.__data__.has(e)}var BT=FT;function Oo(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Im;++t<r;)this.add(e[t])}Oo.prototype.add=Oo.prototype.push=NT;Oo.prototype.has=BT;var zT=Oo;function GT(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var HT=GT;function qT(e,t){return e.has(t)}var JT=qT,WT=1,KT=2;function YT(e,t,r,n,a,s){var o=r&WT,i=e.length,l=t.length;if(i!=l&&!(o&&l>i))return!1;var c=s.get(e),u=s.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,p=r&KT?new zT:void 0;for(s.set(e,t),s.set(t,e);++d<i;){var m=e[d],f=t[d];if(n)var g=o?n(f,m,d,t,e,s):n(m,f,d,e,t,s);if(g!==void 0){if(g)continue;h=!1;break}if(p){if(!HT(t,function(S,T){if(!JT(p,T)&&(m===S||a(m,S,r,n,s)))return p.push(T)})){h=!1;break}}else if(!(m===f||a(m,f,r,n,s))){h=!1;break}}return s.delete(e),s.delete(t),h}var Mm=YT,QT=hr.Uint8Array,ph=QT;function XT(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}var ZT=XT;function eA(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var tA=eA,rA=1,nA=2,aA="[object Boolean]",sA="[object Date]",oA="[object Error]",iA="[object Map]",lA="[object Number]",cA="[object RegExp]",uA="[object Set]",dA="[object String]",hA="[object Symbol]",pA="[object ArrayBuffer]",fA="[object DataView]",fh=qn?qn.prototype:void 0,tl=fh?fh.valueOf:void 0;function mA(e,t,r,n,a,s,o){switch(r){case fA:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case pA:return!(e.byteLength!=t.byteLength||!s(new ph(e),new ph(t)));case aA:case sA:case lA:return Am(+e,+t);case oA:return e.name==t.name&&e.message==t.message;case cA:case dA:return e==t+"";case iA:var i=ZT;case uA:var l=n&rA;if(i||(i=tA),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;n|=nA,o.set(e,t);var u=Mm(i(e),i(t),n,a,s,o);return o.delete(e),u;case hA:if(tl)return tl.call(e)==tl.call(t)}return!1}var gA=mA;function yA(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var bA=yA,vA=Array.isArray,wo=vA;function xA(e,t,r){var n=t(e);return wo(e)?n:bA(n,r(e))}var SA=xA;function OA(e,t){for(var r=-1,n=e==null?0:e.length,a=0,s=[];++r<n;){var o=e[r];t(o,r,e)&&(s[a++]=o)}return s}var wA=OA;function CA(){return[]}var PA=CA,RA=Object.prototype,TA=RA.propertyIsEnumerable,mh=Object.getOwnPropertySymbols,AA=mh?function(e){return e==null?[]:(e=Object(e),wA(mh(e),function(t){return TA.call(e,t)}))}:PA,VA=AA;function EA(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var _A=EA;function IA(e){return e!=null&&typeof e=="object"}var Ka=IA,MA="[object Arguments]";function $A(e){return Ka(e)&&ls(e)==MA}var gh=$A,$m=Object.prototype,jA=$m.hasOwnProperty,kA=$m.propertyIsEnumerable,LA=gh(function(){return arguments}())?gh:function(e){return Ka(e)&&jA.call(e,"callee")&&!kA.call(e,"callee")},UA=LA;function DA(){return!1}var NA=DA,jm=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yh=jm&&typeof module=="object"&&module&&!module.nodeType&&module,FA=yh&&yh.exports===jm,bh=FA?hr.Buffer:void 0,BA=bh?bh.isBuffer:void 0,zA=BA||NA,$l=zA,GA=9007199254740991,HA=/^(?:0|[1-9]\d*)$/;function qA(e,t){var r=typeof e;return t=t??GA,!!t&&(r=="number"||r!="symbol"&&HA.test(e))&&e>-1&&e%1==0&&e<t}var JA=qA,WA=9007199254740991;function KA(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=WA}var km=KA,YA="[object Arguments]",QA="[object Array]",XA="[object Boolean]",ZA="[object Date]",eV="[object Error]",tV="[object Function]",rV="[object Map]",nV="[object Number]",aV="[object Object]",sV="[object RegExp]",oV="[object Set]",iV="[object String]",lV="[object WeakMap]",cV="[object ArrayBuffer]",uV="[object DataView]",dV="[object Float32Array]",hV="[object Float64Array]",pV="[object Int8Array]",fV="[object Int16Array]",mV="[object Int32Array]",gV="[object Uint8Array]",yV="[object Uint8ClampedArray]",bV="[object Uint16Array]",vV="[object Uint32Array]",Ie={};Ie[dV]=Ie[hV]=Ie[pV]=Ie[fV]=Ie[mV]=Ie[gV]=Ie[yV]=Ie[bV]=Ie[vV]=!0;Ie[YA]=Ie[QA]=Ie[cV]=Ie[XA]=Ie[uV]=Ie[ZA]=Ie[eV]=Ie[tV]=Ie[rV]=Ie[nV]=Ie[aV]=Ie[sV]=Ie[oV]=Ie[iV]=Ie[lV]=!1;function xV(e){return Ka(e)&&km(e.length)&&!!Ie[ls(e)]}var SV=xV;function OV(e){return function(t){return e(t)}}var wV=OV,Lm=typeof exports=="object"&&exports&&!exports.nodeType&&exports,$a=Lm&&typeof module=="object"&&module&&!module.nodeType&&module,CV=$a&&$a.exports===Lm,rl=CV&&Vm.process,PV=function(){try{var e=$a&&$a.require&&$a.require("util").types;return e||rl&&rl.binding&&rl.binding("util")}catch{}}(),vh=PV,xh=vh&&vh.isTypedArray,RV=xh?wV(xh):SV,Um=RV,TV=Object.prototype,AV=TV.hasOwnProperty;function VV(e,t){var r=wo(e),n=!r&&UA(e),a=!r&&!n&&$l(e),s=!r&&!n&&!a&&Um(e),o=r||n||a||s,i=o?_A(e.length,String):[],l=i.length;for(var c in e)(t||AV.call(e,c))&&!(o&&(c=="length"||a&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||JA(c,l)))&&i.push(c);return i}var EV=VV,_V=Object.prototype;function IV(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||_V;return e===r}var MV=IV;function $V(e,t){return function(r){return e(t(r))}}var jV=$V,kV=jV(Object.keys,Object),LV=kV,UV=Object.prototype,DV=UV.hasOwnProperty;function NV(e){if(!MV(e))return LV(e);var t=[];for(var r in Object(e))DV.call(e,r)&&r!="constructor"&&t.push(r);return t}var FV=NV;function BV(e){return e!=null&&km(e.length)&&!_m(e)}var zV=BV;function GV(e){return zV(e)?EV(e):FV(e)}var HV=GV;function qV(e){return SA(e,HV,VA)}var Sh=qV,JV=1,WV=Object.prototype,KV=WV.hasOwnProperty;function YV(e,t,r,n,a,s){var o=r&JV,i=Sh(e),l=i.length,c=Sh(t),u=c.length;if(l!=u&&!o)return!1;for(var d=l;d--;){var h=i[d];if(!(o?h in t:KV.call(t,h)))return!1}var p=s.get(e),m=s.get(t);if(p&&m)return p==t&&m==e;var f=!0;s.set(e,t),s.set(t,e);for(var g=o;++d<l;){h=i[d];var S=e[h],T=t[h];if(n)var O=o?n(T,S,h,t,e,s):n(S,T,h,e,t,s);if(!(O===void 0?S===T||a(S,T,r,n,s):O)){f=!1;break}g||(g=h=="constructor")}if(f&&!g){var C=e.constructor,E=t.constructor;C!=E&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof E=="function"&&E instanceof E)&&(f=!1)}return s.delete(e),s.delete(t),f}var QV=YV,XV=Xn(hr,"DataView"),jl=XV,ZV=Xn(hr,"Promise"),kl=ZV,eE=Xn(hr,"Set"),Ll=eE,tE=Xn(hr,"WeakMap"),Ul=tE,Oh="[object Map]",rE="[object Object]",wh="[object Promise]",Ch="[object Set]",Ph="[object WeakMap]",Rh="[object DataView]",nE=nn(jl),aE=nn(Ja),sE=nn(kl),oE=nn(Ll),iE=nn(Ul),kr=ls;(jl&&kr(new jl(new ArrayBuffer(1)))!=Rh||Ja&&kr(new Ja)!=Oh||kl&&kr(kl.resolve())!=wh||Ll&&kr(new Ll)!=Ch||Ul&&kr(new Ul)!=Ph)&&(kr=function(e){var t=ls(e),r=t==rE?e.constructor:void 0,n=r?nn(r):"";if(n)switch(n){case nE:return Rh;case aE:return Oh;case sE:return wh;case oE:return Ch;case iE:return Ph}return t});var Th=kr,lE=1,Ah="[object Arguments]",Vh="[object Array]",Rs="[object Object]",cE=Object.prototype,Eh=cE.hasOwnProperty;function uE(e,t,r,n,a,s){var o=wo(e),i=wo(t),l=o?Vh:Th(e),c=i?Vh:Th(t);l=l==Ah?Rs:l,c=c==Ah?Rs:c;var u=l==Rs,d=c==Rs,h=l==c;if(h&&$l(e)){if(!$l(t))return!1;o=!0,u=!1}if(h&&!u)return s||(s=new el),o||Um(e)?Mm(e,t,r,n,a,s):gA(e,t,l,r,n,a,s);if(!(r&lE)){var p=u&&Eh.call(e,"__wrapped__"),m=d&&Eh.call(t,"__wrapped__");if(p||m){var f=p?e.value():e,g=m?t.value():t;return s||(s=new el),a(f,g,r,n,s)}}return h?(s||(s=new el),QV(e,t,r,n,a,s)):!1}var dE=uE;function Dm(e,t,r,n,a){return e===t?!0:e==null||t==null||!Ka(e)&&!Ka(t)?e!==e&&t!==t:dE(e,t,r,n,Dm,a)}var hE=Dm;function pE(e,t){return hE(e,t)}var fE=pE;/*! *****************************************************************************
137
137
  Copyright (c) Microsoft Corporation. All rights reserved.
138
138
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
139
139
  this file except in compliance with the License. You may obtain a copy of the