@wandelbots/wandelbots-js-react-components 1.24.5 → 1.24.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +14 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +251 -251
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/robots/SupportedRobot.tsx +3 -3
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as $ from "react";
|
|
2
2
|
import Ii, { useEffect as zt, useRef as Tt, useState as ea, forwardRef as qt, useCallback as zu, Suspense as Ti, lazy as Gu } from "react";
|
|
3
3
|
import { Environment as Ku, Lightformer as Ut, useGLTF as ce, Line as Wu } from "@react-three/drei";
|
|
4
|
-
import * as
|
|
4
|
+
import * as Ce from "three";
|
|
5
5
|
import { Matrix4 as Tr, Vector3 as Yo, Quaternion as Hu } from "three";
|
|
6
6
|
import { ConvexGeometry as Xu } from "three-stdlib";
|
|
7
7
|
import { useThree as qu } from "@react-three/fiber";
|
|
@@ -14,8 +14,8 @@ import { autorun as Li, reaction as fc, makeAutoObservable as gc, runInAction as
|
|
|
14
14
|
import f from "prop-types";
|
|
15
15
|
import pc from "@emotion/styled";
|
|
16
16
|
import { CacheProvider as yc, Global as _c, ThemeContext as $i, css as vc, keyframes as bc } from "@emotion/react";
|
|
17
|
-
import { poseToWandelscriptString as xc, radiansToDegrees as
|
|
18
|
-
import { lowerFirst as Rc, omit as Ac, countBy as
|
|
17
|
+
import { poseToWandelscriptString as xc, radiansToDegrees as Pn, degreesToRadians as Sc, tryParseJson as wc, NovaClient as jc } from "@wandelbots/wandelbots-js";
|
|
18
|
+
import { lowerFirst as Rc, omit as Ac, countBy as Pc, isString as Cc } from "lodash-es";
|
|
19
19
|
import { animated as b, Globals as Mc, useSpring as Oc } from "@react-spring/three";
|
|
20
20
|
import { ErrorBoundary as kc } from "react-error-boundary";
|
|
21
21
|
function St(e) {
|
|
@@ -86,10 +86,10 @@ function Tc() {
|
|
|
86
86
|
{
|
|
87
87
|
for (var R = arguments.length, T = new Array(R > 1 ? R - 1 : 0), L = 1; L < R; L++)
|
|
88
88
|
T[L - 1] = arguments[L];
|
|
89
|
-
|
|
89
|
+
C("error", g, T);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function C(g, R, T) {
|
|
93
93
|
{
|
|
94
94
|
var L = S.ReactDebugCurrentFrame, D = L.getStackAddendum();
|
|
95
95
|
D !== "" && (R += "%s", T = T.concat([D]));
|
|
@@ -99,10 +99,10 @@ function Tc() {
|
|
|
99
99
|
ee.unshift("Warning: " + R), Function.prototype.apply.call(console[g], console, ee);
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
var A = !1, w = !1,
|
|
102
|
+
var A = !1, w = !1, P = !1, M = !1, z = !1, se;
|
|
103
103
|
se = Symbol.for("react.module.reference");
|
|
104
104
|
function le(g) {
|
|
105
|
-
return !!(typeof g == "string" || typeof g == "function" || g === r || g === s || z || g === a || g === c || g === d || M || g === v || A || w ||
|
|
105
|
+
return !!(typeof g == "string" || typeof g == "function" || g === r || g === s || z || g === a || g === c || g === d || M || g === v || A || w || P || typeof g == "object" && g !== null && (g.$$typeof === m || g.$$typeof === h || g.$$typeof === i || g.$$typeof === l || g.$$typeof === u || // This needs to include all possible module reference object
|
|
106
106
|
// types supported by any Flight configuration anywhere since
|
|
107
107
|
// we don't know which Flight build this will end up being used
|
|
108
108
|
// with.
|
|
@@ -352,7 +352,7 @@ function Tc() {
|
|
|
352
352
|
return "";
|
|
353
353
|
}
|
|
354
354
|
var me = Object.prototype.hasOwnProperty, Ie = {}, Te = S.ReactDebugCurrentFrame;
|
|
355
|
-
function
|
|
355
|
+
function Pt(g) {
|
|
356
356
|
if (g) {
|
|
357
357
|
var R = g._owner, T = Z(g.type, g._source, R ? R.type : null);
|
|
358
358
|
Te.setExtraStackFrame(T);
|
|
@@ -374,13 +374,13 @@ function Tc() {
|
|
|
374
374
|
} catch (ge) {
|
|
375
375
|
B = ge;
|
|
376
376
|
}
|
|
377
|
-
B && !(B instanceof Error) && (
|
|
377
|
+
B && !(B instanceof Error) && (Pt(D), j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", L || "React class", T, J, typeof B), Pt(null)), B instanceof Error && !(B.message in Ie) && (Ie[B.message] = !0, Pt(D), j("Failed %s type: %s", T, B.message), Pt(null));
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
|
-
var
|
|
381
|
+
var Ct = Array.isArray;
|
|
382
382
|
function Nt(g) {
|
|
383
|
-
return
|
|
383
|
+
return Ct(g);
|
|
384
384
|
}
|
|
385
385
|
function Rr(g) {
|
|
386
386
|
{
|
|
@@ -390,17 +390,17 @@ function Tc() {
|
|
|
390
390
|
}
|
|
391
391
|
function Ar(g) {
|
|
392
392
|
try {
|
|
393
|
-
return
|
|
393
|
+
return Pr(g), !1;
|
|
394
394
|
} catch {
|
|
395
395
|
return !0;
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function Pr(g) {
|
|
399
399
|
return "" + g;
|
|
400
400
|
}
|
|
401
401
|
function er(g) {
|
|
402
402
|
if (Ar(g))
|
|
403
|
-
return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Rr(g)),
|
|
403
|
+
return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Rr(g)), Pr(g);
|
|
404
404
|
}
|
|
405
405
|
var nt = S.ReactCurrentOwner, k = {
|
|
406
406
|
key: !0,
|
|
@@ -500,13 +500,13 @@ function Tc() {
|
|
|
500
500
|
return Ee(g, B, Oe, D, L, nt.current, J);
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
|
-
var tr = S.ReactCurrentOwner,
|
|
503
|
+
var tr = S.ReactCurrentOwner, Cr = S.ReactDebugCurrentFrame;
|
|
504
504
|
function vt(g) {
|
|
505
505
|
if (g) {
|
|
506
506
|
var R = g._owner, T = Z(g.type, g._source, R ? R.type : null);
|
|
507
|
-
|
|
507
|
+
Cr.setExtraStackFrame(T);
|
|
508
508
|
} else
|
|
509
|
-
|
|
509
|
+
Cr.setExtraStackFrame(null);
|
|
510
510
|
}
|
|
511
511
|
var Ft;
|
|
512
512
|
Ft = !1;
|
|
@@ -655,13 +655,13 @@ React keys must be passed directly to JSX without using spread:
|
|
|
655
655
|
return g === r ? Aa(_e) : Ra(_e), _e;
|
|
656
656
|
}
|
|
657
657
|
}
|
|
658
|
-
function
|
|
658
|
+
function Pa(g, R, T) {
|
|
659
659
|
return gn(g, R, T, !0);
|
|
660
660
|
}
|
|
661
|
-
function
|
|
661
|
+
function Ca(g, R, T) {
|
|
662
662
|
return gn(g, R, T, !1);
|
|
663
663
|
}
|
|
664
|
-
var Ir =
|
|
664
|
+
var Ir = Ca, Ma = Pa;
|
|
665
665
|
Lr.Fragment = r, Lr.jsx = Ir, Lr.jsxs = Ma;
|
|
666
666
|
}()), Lr;
|
|
667
667
|
}
|
|
@@ -744,9 +744,9 @@ function Ec({ positions: e = [2, 0, 2, 0, 2, 0, 2, 0] }) {
|
|
|
744
744
|
function Lc(e) {
|
|
745
745
|
if (e.length < 3)
|
|
746
746
|
return console.log("Not enough vertices to define a plane"), { isCoplanar: !1 };
|
|
747
|
-
const t = new
|
|
747
|
+
const t = new Ce.Vector3(e[0].x, e[0].y, e[0].z), n = new Ce.Vector3(e[1].x, e[1].y, e[1].z), r = new Ce.Vector3(e[2].x, e[2].y, e[2].z), a = new Ce.Vector3().subVectors(n, t), s = new Ce.Vector3().subVectors(r, t), i = new Ce.Vector3().crossVectors(a, s).normalize();
|
|
748
748
|
for (let l = 3; l < e.length; l++) {
|
|
749
|
-
const u = new
|
|
749
|
+
const u = new Ce.Vector3(e[l].x, e[l].y, e[l].z), c = new Ce.Vector3().subVectors(u, t), d = i.dot(c);
|
|
750
750
|
if (Math.abs(d) > 1e-6)
|
|
751
751
|
return console.log("Vertices are not on the same plane"), { isCoplanar: !1 };
|
|
752
752
|
}
|
|
@@ -761,10 +761,10 @@ function eb({
|
|
|
761
761
|
return n.geometry && (n.geometry.compound ? a = n.geometry.compound.child_geometries : n.geometry.convex_hull && (a = [n.geometry])), a.map((s, i) => {
|
|
762
762
|
if (!s.convex_hull) return null;
|
|
763
763
|
const l = s.convex_hull.vertices.map(
|
|
764
|
-
(d) => new
|
|
764
|
+
(d) => new Ce.Vector3(d.x / 1e3, d.y / 1e3, d.z / 1e3)
|
|
765
765
|
), u = Lc(l);
|
|
766
766
|
if (u.isCoplanar && u.normal) {
|
|
767
|
-
const h = new
|
|
767
|
+
const h = new Ce.Vector3().addVectors(
|
|
768
768
|
l[0],
|
|
769
769
|
u.normal.multiplyScalar(1e-4)
|
|
770
770
|
);
|
|
@@ -844,7 +844,7 @@ var Bc = /* @__PURE__ */ function() {
|
|
|
844
844
|
return (a = r.parentNode) == null ? void 0 : a.removeChild(r);
|
|
845
845
|
}), this.tags = [], this.ctr = 0;
|
|
846
846
|
}, e;
|
|
847
|
-
}(),
|
|
847
|
+
}(), Pe = "-ms-", Bn = "-moz-", te = "-webkit-", Ni = "comm", jo = "rule", Ro = "decl", Uc = "@import", Fi = "@keyframes", Jc = "@layer", Vc = Math.abs, ta = String.fromCharCode, zc = Object.assign;
|
|
848
848
|
function Gc(e, t) {
|
|
849
849
|
return Re(e, 0) ^ 45 ? (((t << 2 ^ Re(e, 0)) << 2 ^ Re(e, 1)) << 2 ^ Re(e, 2)) << 2 ^ Re(e, 3) : 0;
|
|
850
850
|
}
|
|
@@ -897,7 +897,7 @@ function Ve() {
|
|
|
897
897
|
function mt() {
|
|
898
898
|
return Re(br, Ne);
|
|
899
899
|
}
|
|
900
|
-
function
|
|
900
|
+
function Cn() {
|
|
901
901
|
return Ne;
|
|
902
902
|
}
|
|
903
903
|
function tn(e, t) {
|
|
@@ -952,7 +952,7 @@ function qc(e) {
|
|
|
952
952
|
function Yc(e, t) {
|
|
953
953
|
for (; --t && Ve() && !(ve < 48 || ve > 102 || ve > 57 && ve < 65 || ve > 70 && ve < 97); )
|
|
954
954
|
;
|
|
955
|
-
return tn(e,
|
|
955
|
+
return tn(e, Cn() + (t < 6 && mt() == 32 && Ve() == 32));
|
|
956
956
|
}
|
|
957
957
|
function Qa(e) {
|
|
958
958
|
for (; Ve(); )
|
|
@@ -987,7 +987,7 @@ function ed(e) {
|
|
|
987
987
|
return Ji(On("", null, null, null, [""], e = Ui(e), 0, [0], e));
|
|
988
988
|
}
|
|
989
989
|
function On(e, t, n, r, a, s, i, l, u) {
|
|
990
|
-
for (var c = 0, d = 0, h = i, m = 0, v = 0, _ = 0, y = 1, p = 1, S = 1, j = 0,
|
|
990
|
+
for (var c = 0, d = 0, h = i, m = 0, v = 0, _ = 0, y = 1, p = 1, S = 1, j = 0, C = "", A = a, w = s, P = r, M = C; p; )
|
|
991
991
|
switch (_ = j, j = Ve()) {
|
|
992
992
|
case 40:
|
|
993
993
|
if (_ != 108 && Re(M, h - 1) == 58) {
|
|
@@ -1006,13 +1006,13 @@ function On(e, t, n, r, a, s, i, l, u) {
|
|
|
1006
1006
|
M += qc(_);
|
|
1007
1007
|
break;
|
|
1008
1008
|
case 92:
|
|
1009
|
-
M += Yc(
|
|
1009
|
+
M += Yc(Cn() - 1, 7);
|
|
1010
1010
|
continue;
|
|
1011
1011
|
case 47:
|
|
1012
1012
|
switch (mt()) {
|
|
1013
1013
|
case 42:
|
|
1014
1014
|
case 47:
|
|
1015
|
-
yn(td(Zc(Ve(),
|
|
1015
|
+
yn(td(Zc(Ve(), Cn()), t, n), u);
|
|
1016
1016
|
break;
|
|
1017
1017
|
default:
|
|
1018
1018
|
M += "/";
|
|
@@ -1033,22 +1033,22 @@ function On(e, t, n, r, a, s, i, l, u) {
|
|
|
1033
1033
|
case 59:
|
|
1034
1034
|
M += ";";
|
|
1035
1035
|
default:
|
|
1036
|
-
if (yn(
|
|
1036
|
+
if (yn(P = es(M, t, n, c, d, a, l, C, A = [], w = [], h), s), j === 123)
|
|
1037
1037
|
if (d === 0)
|
|
1038
|
-
On(M, t,
|
|
1038
|
+
On(M, t, P, P, A, s, h, l, w);
|
|
1039
1039
|
else
|
|
1040
1040
|
switch (m === 99 && Re(M, 3) === 110 ? 100 : m) {
|
|
1041
1041
|
case 100:
|
|
1042
1042
|
case 108:
|
|
1043
1043
|
case 109:
|
|
1044
1044
|
case 115:
|
|
1045
|
-
On(e,
|
|
1045
|
+
On(e, P, P, r && yn(es(e, P, P, 0, 0, a, l, C, a, A = [], h), w), a, w, h, l, r ? A : w);
|
|
1046
1046
|
break;
|
|
1047
1047
|
default:
|
|
1048
|
-
On(M,
|
|
1048
|
+
On(M, P, P, P, [""], w, 0, l, w);
|
|
1049
1049
|
}
|
|
1050
1050
|
}
|
|
1051
|
-
c = d = v = 0, y = S = 1,
|
|
1051
|
+
c = d = v = 0, y = S = 1, C = M = "", h = i;
|
|
1052
1052
|
break;
|
|
1053
1053
|
case 58:
|
|
1054
1054
|
h = 1 + ct(M), v = _;
|
|
@@ -1067,7 +1067,7 @@ function On(e, t, n, r, a, s, i, l, u) {
|
|
|
1067
1067
|
l[c++] = (ct(M) - 1) * S, S = 1;
|
|
1068
1068
|
break;
|
|
1069
1069
|
case 64:
|
|
1070
|
-
mt() === 45 && (M += Mn(Ve())), m = mt(), d = h = ct(
|
|
1070
|
+
mt() === 45 && (M += Mn(Ve())), m = mt(), d = h = ct(C = M += Qc(Cn())), j++;
|
|
1071
1071
|
break;
|
|
1072
1072
|
case 45:
|
|
1073
1073
|
_ === 45 && ct(M) == 2 && (y = 0);
|
|
@@ -1077,8 +1077,8 @@ function On(e, t, n, r, a, s, i, l, u) {
|
|
|
1077
1077
|
}
|
|
1078
1078
|
function es(e, t, n, r, a, s, i, l, u, c, d) {
|
|
1079
1079
|
for (var h = a - 1, m = a === 0 ? s : [""], v = Ao(m), _ = 0, y = 0, p = 0; _ < r; ++_)
|
|
1080
|
-
for (var S = 0, j = Wr(e, h + 1, h = Vc(y = i[_])),
|
|
1081
|
-
(
|
|
1080
|
+
for (var S = 0, j = Wr(e, h + 1, h = Vc(y = i[_])), C = e; S < v; ++S)
|
|
1081
|
+
(C = Di(y > 0 ? m[S] + " " + j : re(j, /&\f/g, m[S]))) && (u[p++] = C);
|
|
1082
1082
|
return na(e, t, n, a === 0 ? jo : l, u, c, d);
|
|
1083
1083
|
}
|
|
1084
1084
|
function td(e, t, n) {
|
|
@@ -1203,24 +1203,24 @@ function Vi(e, t) {
|
|
|
1203
1203
|
case 4810:
|
|
1204
1204
|
case 6968:
|
|
1205
1205
|
case 2756:
|
|
1206
|
-
return te + e + Bn + e +
|
|
1206
|
+
return te + e + Bn + e + Pe + e + e;
|
|
1207
1207
|
case 6828:
|
|
1208
1208
|
case 4268:
|
|
1209
|
-
return te + e +
|
|
1209
|
+
return te + e + Pe + e + e;
|
|
1210
1210
|
case 6165:
|
|
1211
|
-
return te + e +
|
|
1211
|
+
return te + e + Pe + "flex-" + e + e;
|
|
1212
1212
|
case 5187:
|
|
1213
|
-
return te + e + re(e, /(\w+).+(:[^]+)/, te + "box-$1$2" +
|
|
1213
|
+
return te + e + re(e, /(\w+).+(:[^]+)/, te + "box-$1$2" + Pe + "flex-$1$2") + e;
|
|
1214
1214
|
case 5443:
|
|
1215
|
-
return te + e +
|
|
1215
|
+
return te + e + Pe + "flex-item-" + re(e, /flex-|-self/, "") + e;
|
|
1216
1216
|
case 4675:
|
|
1217
|
-
return te + e +
|
|
1217
|
+
return te + e + Pe + "flex-line-pack" + re(e, /align-content|flex-|-self/, "") + e;
|
|
1218
1218
|
case 5548:
|
|
1219
|
-
return te + e +
|
|
1219
|
+
return te + e + Pe + re(e, "shrink", "negative") + e;
|
|
1220
1220
|
case 5292:
|
|
1221
|
-
return te + e +
|
|
1221
|
+
return te + e + Pe + re(e, "basis", "preferred-size") + e;
|
|
1222
1222
|
case 6060:
|
|
1223
|
-
return te + "box-" + re(e, "-grow", "") + te + e +
|
|
1223
|
+
return te + "box-" + re(e, "-grow", "") + te + e + Pe + re(e, "grow", "positive") + e;
|
|
1224
1224
|
case 4554:
|
|
1225
1225
|
return te + re(e, /([^-])(transform)/g, "$1" + te + "$2") + e;
|
|
1226
1226
|
case 6187:
|
|
@@ -1229,7 +1229,7 @@ function Vi(e, t) {
|
|
|
1229
1229
|
case 3959:
|
|
1230
1230
|
return re(e, /(image-set\([^]*)/, te + "$1$`$1");
|
|
1231
1231
|
case 4968:
|
|
1232
|
-
return re(re(e, /(.+:)(flex-)?(.*)/, te + "box-pack:$3" +
|
|
1232
|
+
return re(re(e, /(.+:)(flex-)?(.*)/, te + "box-pack:$3" + Pe + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + te + e + e;
|
|
1233
1233
|
case 4095:
|
|
1234
1234
|
case 3583:
|
|
1235
1235
|
case 4068:
|
|
@@ -1263,19 +1263,19 @@ function Vi(e, t) {
|
|
|
1263
1263
|
case 107:
|
|
1264
1264
|
return re(e, ":", ":" + te) + e;
|
|
1265
1265
|
case 101:
|
|
1266
|
-
return re(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + te + (Re(e, 14) === 45 ? "inline-" : "") + "box$3$1" + te + "$2$3$1" +
|
|
1266
|
+
return re(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + te + (Re(e, 14) === 45 ? "inline-" : "") + "box$3$1" + te + "$2$3$1" + Pe + "$2box$3") + e;
|
|
1267
1267
|
}
|
|
1268
1268
|
break;
|
|
1269
1269
|
case 5936:
|
|
1270
1270
|
switch (Re(e, t + 11)) {
|
|
1271
1271
|
case 114:
|
|
1272
|
-
return te + e +
|
|
1272
|
+
return te + e + Pe + re(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
1273
1273
|
case 108:
|
|
1274
|
-
return te + e +
|
|
1274
|
+
return te + e + Pe + re(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
1275
1275
|
case 45:
|
|
1276
|
-
return te + e +
|
|
1276
|
+
return te + e + Pe + re(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
1277
1277
|
}
|
|
1278
|
-
return te + e +
|
|
1278
|
+
return te + e + Pe + e + e;
|
|
1279
1279
|
}
|
|
1280
1280
|
return e;
|
|
1281
1281
|
}
|
|
@@ -1302,7 +1302,7 @@ var cd = function(t, n, r, a) {
|
|
|
1302
1302
|
}), $r(t, {
|
|
1303
1303
|
props: [re(s, /:(plac\w+)/, ":" + Bn + "$1")]
|
|
1304
1304
|
}), $r(t, {
|
|
1305
|
-
props: [re(s, /:(plac\w+)/,
|
|
1305
|
+
props: [re(s, /:(plac\w+)/, Pe + "input-$1")]
|
|
1306
1306
|
})], a);
|
|
1307
1307
|
}
|
|
1308
1308
|
return "";
|
|
@@ -1335,8 +1335,8 @@ var cd = function(t, n, r, a) {
|
|
|
1335
1335
|
})], m = nd(c.concat(a, h)), v = function(p) {
|
|
1336
1336
|
return fr(ed(p), m);
|
|
1337
1337
|
};
|
|
1338
|
-
u = function(p, S, j,
|
|
1339
|
-
d = j, v(p ? p + "{" + S.styles + "}" : S.styles),
|
|
1338
|
+
u = function(p, S, j, C) {
|
|
1339
|
+
d = j, v(p ? p + "{" + S.styles + "}" : S.styles), C && (_.inserted[S.name] = !0);
|
|
1340
1340
|
};
|
|
1341
1341
|
}
|
|
1342
1342
|
var _ = {
|
|
@@ -1536,7 +1536,7 @@ function Jr(e, t) {
|
|
|
1536
1536
|
// No need to clone deep, it's way faster.
|
|
1537
1537
|
}) : e;
|
|
1538
1538
|
}
|
|
1539
|
-
const
|
|
1539
|
+
const Po = {
|
|
1540
1540
|
xs: 0,
|
|
1541
1541
|
// phone
|
|
1542
1542
|
sm: 600,
|
|
@@ -1551,7 +1551,7 @@ const Co = {
|
|
|
1551
1551
|
// Sorted ASC by size. That's important.
|
|
1552
1552
|
// It can't be configured as it's used statically for propTypes.
|
|
1553
1553
|
keys: ["xs", "sm", "md", "lg", "xl"],
|
|
1554
|
-
up: (e) => `@media (min-width:${
|
|
1554
|
+
up: (e) => `@media (min-width:${Po[e]}px)`
|
|
1555
1555
|
};
|
|
1556
1556
|
function ot(e, t, n) {
|
|
1557
1557
|
const r = e.theme || {};
|
|
@@ -1562,7 +1562,7 @@ function ot(e, t, n) {
|
|
|
1562
1562
|
if (typeof t == "object") {
|
|
1563
1563
|
const s = r.breakpoints || ns;
|
|
1564
1564
|
return Object.keys(t).reduce((i, l) => {
|
|
1565
|
-
if (Object.keys(s.values ||
|
|
1565
|
+
if (Object.keys(s.values || Po).indexOf(l) !== -1) {
|
|
1566
1566
|
const u = s.up(l);
|
|
1567
1567
|
i[u] = n(t[l], l);
|
|
1568
1568
|
} else {
|
|
@@ -1693,7 +1693,7 @@ function rn(e, t, n, r) {
|
|
|
1693
1693
|
`)), () => {
|
|
1694
1694
|
});
|
|
1695
1695
|
}
|
|
1696
|
-
function
|
|
1696
|
+
function Co(e) {
|
|
1697
1697
|
return rn(e, "spacing", 8, "spacing");
|
|
1698
1698
|
}
|
|
1699
1699
|
function Gt(e, t) {
|
|
@@ -1702,18 +1702,18 @@ function Gt(e, t) {
|
|
|
1702
1702
|
const n = Math.abs(t), r = e(n);
|
|
1703
1703
|
return t >= 0 ? r : typeof r == "number" ? -r : `-${r}`;
|
|
1704
1704
|
}
|
|
1705
|
-
function
|
|
1705
|
+
function Pd(e, t) {
|
|
1706
1706
|
return (n) => e.reduce((r, a) => (r[a] = Gt(t, n), r), {});
|
|
1707
1707
|
}
|
|
1708
|
-
function
|
|
1708
|
+
function Cd(e, t, n, r) {
|
|
1709
1709
|
if (t.indexOf(n) === -1)
|
|
1710
1710
|
return null;
|
|
1711
|
-
const a = Rd(n), s =
|
|
1711
|
+
const a = Rd(n), s = Pd(a, r), i = e[n];
|
|
1712
1712
|
return ot(e, i, s);
|
|
1713
1713
|
}
|
|
1714
1714
|
function Zi(e, t) {
|
|
1715
|
-
const n =
|
|
1716
|
-
return Object.keys(e).map((r) =>
|
|
1715
|
+
const n = Co(e.theme);
|
|
1716
|
+
return Object.keys(e).map((r) => Cd(e, t, r, n)).reduce(Jr, {});
|
|
1717
1717
|
}
|
|
1718
1718
|
function he(e) {
|
|
1719
1719
|
return Zi(e, oa);
|
|
@@ -1729,7 +1729,7 @@ process.env.NODE_ENV !== "production" && Ad.reduce((e, t) => (e[t] = Lt, e), {})
|
|
|
1729
1729
|
function Md(e = 8) {
|
|
1730
1730
|
if (e.mui)
|
|
1731
1731
|
return e;
|
|
1732
|
-
const t =
|
|
1732
|
+
const t = Co({
|
|
1733
1733
|
spacing: e
|
|
1734
1734
|
}), n = (...r) => (process.env.NODE_ENV !== "production" && (r.length <= 4 || console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)), (r.length === 0 ? [1] : r).map((s) => {
|
|
1735
1735
|
const i = t(s);
|
|
@@ -1854,7 +1854,7 @@ const em = pe({
|
|
|
1854
1854
|
if (e.maxWidth !== void 0 && e.maxWidth !== null) {
|
|
1855
1855
|
const t = (n) => {
|
|
1856
1856
|
var r, a;
|
|
1857
|
-
const s = ((r = e.theme) == null || (r = r.breakpoints) == null || (r = r.values) == null ? void 0 : r[n]) ||
|
|
1857
|
+
const s = ((r = e.theme) == null || (r = r.breakpoints) == null || (r = r.values) == null ? void 0 : r[n]) || Po[n];
|
|
1858
1858
|
return s ? ((a = e.theme) == null || (a = a.breakpoints) == null ? void 0 : a.unit) !== "px" ? {
|
|
1859
1859
|
maxWidth: `${s}${e.theme.breakpoints.unit}`
|
|
1860
1860
|
} : {
|
|
@@ -2485,14 +2485,14 @@ var ae = {};
|
|
|
2485
2485
|
var is;
|
|
2486
2486
|
function bm() {
|
|
2487
2487
|
return is || (is = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2488
|
-
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), i = Symbol.for("react.context"), l = Symbol.for("react.server_context"), u = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), _ = !1, y = !1, p = !1, S = !1, j = !1,
|
|
2489
|
-
|
|
2488
|
+
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), i = Symbol.for("react.context"), l = Symbol.for("react.server_context"), u = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), _ = !1, y = !1, p = !1, S = !1, j = !1, C;
|
|
2489
|
+
C = Symbol.for("react.module.reference");
|
|
2490
2490
|
function A(I) {
|
|
2491
2491
|
return !!(typeof I == "string" || typeof I == "function" || I === n || I === a || j || I === r || I === c || I === d || S || I === v || _ || y || p || typeof I == "object" && I !== null && (I.$$typeof === m || I.$$typeof === h || I.$$typeof === s || I.$$typeof === i || I.$$typeof === u || // This needs to include all possible module reference object
|
|
2492
2492
|
// types supported by any Flight configuration anywhere since
|
|
2493
2493
|
// we don't know which Flight build this will end up being used
|
|
2494
2494
|
// with.
|
|
2495
|
-
I.$$typeof ===
|
|
2495
|
+
I.$$typeof === C || I.getModuleId !== void 0));
|
|
2496
2496
|
}
|
|
2497
2497
|
function w(I) {
|
|
2498
2498
|
if (typeof I == "object" && I !== null) {
|
|
@@ -2526,7 +2526,7 @@ function bm() {
|
|
|
2526
2526
|
}
|
|
2527
2527
|
}
|
|
2528
2528
|
}
|
|
2529
|
-
var
|
|
2529
|
+
var P = i, M = s, z = e, se = u, le = n, F = m, H = h, V = t, X = a, W = r, xe = c, ie = d, Y = !1, je = !1;
|
|
2530
2530
|
function ke(I) {
|
|
2531
2531
|
return Y || (Y = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
2532
2532
|
}
|
|
@@ -2569,7 +2569,7 @@ function bm() {
|
|
|
2569
2569
|
function Be(I) {
|
|
2570
2570
|
return w(I) === d;
|
|
2571
2571
|
}
|
|
2572
|
-
ae.ContextConsumer =
|
|
2572
|
+
ae.ContextConsumer = P, ae.ContextProvider = M, ae.Element = z, ae.ForwardRef = se, ae.Fragment = le, ae.Lazy = F, ae.Memo = H, ae.Portal = V, ae.Profiler = X, ae.StrictMode = W, ae.Suspense = xe, ae.SuspenseList = ie, ae.isAsyncMode = ke, ae.isConcurrentMode = rt, ae.isContextConsumer = yt, ae.isContextProvider = Ge, ae.isElement = Se, ae.isForwardRef = At, ae.isFragment = it, ae.isLazy = Ke, ae.isMemo = De, ae.isPortal = lt, ae.isProfiler = ut, ae.isStrictMode = $t, ae.isSuspense = _t, ae.isSuspenseList = Be, ae.isValidElementType = A, ae.typeOf = w;
|
|
2573
2573
|
}()), ae;
|
|
2574
2574
|
}
|
|
2575
2575
|
process.env.NODE_ENV === "production" ? to.exports = vm() : to.exports = bm();
|
|
@@ -2611,7 +2611,7 @@ const Sm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2611
2611
|
function Am(e) {
|
|
2612
2612
|
return Object.keys(e).length === 0;
|
|
2613
2613
|
}
|
|
2614
|
-
function
|
|
2614
|
+
function Pm(e) {
|
|
2615
2615
|
return typeof e == "string" && // 96 is one less than the char code
|
|
2616
2616
|
// for "a" so this is checking that
|
|
2617
2617
|
// it's a lowercase character
|
|
@@ -2620,7 +2620,7 @@ function Cm(e) {
|
|
|
2620
2620
|
function Ta(e) {
|
|
2621
2621
|
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
2622
2622
|
}
|
|
2623
|
-
const
|
|
2623
|
+
const Cm = on(), cs = (e) => e && e.charAt(0).toLowerCase() + e.slice(1);
|
|
2624
2624
|
function _n({
|
|
2625
2625
|
defaultTheme: e,
|
|
2626
2626
|
theme: t,
|
|
@@ -2663,7 +2663,7 @@ function kn(e, t) {
|
|
|
2663
2663
|
function Om(e = {}) {
|
|
2664
2664
|
const {
|
|
2665
2665
|
themeId: t,
|
|
2666
|
-
defaultTheme: n =
|
|
2666
|
+
defaultTheme: n = Cm,
|
|
2667
2667
|
rootShouldForwardProp: r = Ta,
|
|
2668
2668
|
slotShouldForwardProp: a = Ta
|
|
2669
2669
|
} = e, s = (i) => an(O({}, i, {
|
|
@@ -2673,7 +2673,7 @@ function Om(e = {}) {
|
|
|
2673
2673
|
}))
|
|
2674
2674
|
}));
|
|
2675
2675
|
return s.__mui_systemSx = !0, (i, l = {}) => {
|
|
2676
|
-
Wi(i, (w) => w.filter((
|
|
2676
|
+
Wi(i, (w) => w.filter((P) => !(P != null && P.__mui_systemSx)));
|
|
2677
2677
|
const {
|
|
2678
2678
|
name: u,
|
|
2679
2679
|
slot: c,
|
|
@@ -2690,19 +2690,19 @@ function Om(e = {}) {
|
|
|
2690
2690
|
let p;
|
|
2691
2691
|
process.env.NODE_ENV !== "production" && u && (p = `${u}-${cs(c || "Root")}`);
|
|
2692
2692
|
let S = Ta;
|
|
2693
|
-
c === "Root" || c === "root" ? S = r : c ? S = a :
|
|
2693
|
+
c === "Root" || c === "root" ? S = r : c ? S = a : Pm(i) && (S = void 0);
|
|
2694
2694
|
const j = Ki(i, O({
|
|
2695
2695
|
shouldForwardProp: S,
|
|
2696
2696
|
label: p
|
|
2697
|
-
}, v)),
|
|
2697
|
+
}, v)), C = (w) => typeof w == "function" && w.__emotion_real !== w || bt(w) ? (P) => kn(w, O({}, P, {
|
|
2698
2698
|
theme: _n({
|
|
2699
|
-
theme:
|
|
2699
|
+
theme: P.theme,
|
|
2700
2700
|
defaultTheme: n,
|
|
2701
2701
|
themeId: t
|
|
2702
2702
|
})
|
|
2703
|
-
})) : w, A = (w, ...
|
|
2704
|
-
let M =
|
|
2705
|
-
const z =
|
|
2703
|
+
})) : w, A = (w, ...P) => {
|
|
2704
|
+
let M = C(w);
|
|
2705
|
+
const z = P ? P.map(C) : [];
|
|
2706
2706
|
u && m && z.push((F) => {
|
|
2707
2707
|
const H = _n(O({}, F, {
|
|
2708
2708
|
defaultTheme: n,
|
|
@@ -2728,7 +2728,7 @@ function Om(e = {}) {
|
|
|
2728
2728
|
theme: V
|
|
2729
2729
|
}));
|
|
2730
2730
|
}), y || z.push(s);
|
|
2731
|
-
const se = z.length -
|
|
2731
|
+
const se = z.length - P.length;
|
|
2732
2732
|
if (Array.isArray(w) && se > 0) {
|
|
2733
2733
|
const F = new Array(se).fill("");
|
|
2734
2734
|
M = [...w, ...F], M.raw = [...w.raw, ...F];
|
|
@@ -3156,7 +3156,7 @@ const mh = (e) => ({
|
|
|
3156
3156
|
flexDirection: r
|
|
3157
3157
|
})));
|
|
3158
3158
|
if (e.spacing) {
|
|
3159
|
-
const r =
|
|
3159
|
+
const r = Co(t), a = Object.keys(t.breakpoints.values).reduce((u, c) => ((typeof e.spacing == "object" && e.spacing[c] != null || typeof e.direction == "object" && e.direction[c] != null) && (u[c] = !0), u), {}), s = Ia({
|
|
3160
3160
|
values: e.direction,
|
|
3161
3161
|
base: a
|
|
3162
3162
|
}), i = Ia({
|
|
@@ -3202,7 +3202,7 @@ function fh(e = {}) {
|
|
|
3202
3202
|
children: p,
|
|
3203
3203
|
className: S,
|
|
3204
3204
|
useFlexGap: j = !1
|
|
3205
|
-
} = h,
|
|
3205
|
+
} = h, C = Fe(h, ih), A = {
|
|
3206
3206
|
direction: v,
|
|
3207
3207
|
spacing: _,
|
|
3208
3208
|
useFlexGap: j
|
|
@@ -3212,7 +3212,7 @@ function fh(e = {}) {
|
|
|
3212
3212
|
ownerState: A,
|
|
3213
3213
|
ref: c,
|
|
3214
3214
|
className: ht(w.root, S)
|
|
3215
|
-
},
|
|
3215
|
+
}, C, {
|
|
3216
3216
|
children: y ? dh(p, y) : p
|
|
3217
3217
|
}));
|
|
3218
3218
|
});
|
|
@@ -3271,7 +3271,7 @@ Object.defineProperty(ln, "__esModule", {
|
|
|
3271
3271
|
var wh = ln.default = Nh;
|
|
3272
3272
|
ln.shouldForwardProp = En;
|
|
3273
3273
|
ln.systemDefaultTheme = void 0;
|
|
3274
|
-
var Xe = xr(gh()), no = xr(ph()), ys = Ih(yh), jh = _h, Rh = xr(vh), Ah = xr(bh),
|
|
3274
|
+
var Xe = xr(gh()), no = xr(ph()), ys = Ih(yh), jh = _h, Rh = xr(vh), Ah = xr(bh), Ph = xr(xh), Ch = xr(Sh);
|
|
3275
3275
|
const Mh = ["ownerState"], Oh = ["variants"], kh = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
|
|
3276
3276
|
function ml(e) {
|
|
3277
3277
|
if (typeof WeakMap != "function") return null;
|
|
@@ -3304,7 +3304,7 @@ function Eh(e) {
|
|
|
3304
3304
|
function En(e) {
|
|
3305
3305
|
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
3306
3306
|
}
|
|
3307
|
-
const Lh = ln.systemDefaultTheme = (0,
|
|
3307
|
+
const Lh = ln.systemDefaultTheme = (0, Ph.default)(), _s = (e) => e && e.charAt(0).toLowerCase() + e.slice(1);
|
|
3308
3308
|
function vn({
|
|
3309
3309
|
defaultTheme: e,
|
|
3310
3310
|
theme: t,
|
|
@@ -3350,14 +3350,14 @@ function Nh(e = {}) {
|
|
|
3350
3350
|
defaultTheme: n = Lh,
|
|
3351
3351
|
rootShouldForwardProp: r = En,
|
|
3352
3352
|
slotShouldForwardProp: a = En
|
|
3353
|
-
} = e, s = (i) => (0,
|
|
3353
|
+
} = e, s = (i) => (0, Ch.default)((0, Xe.default)({}, i, {
|
|
3354
3354
|
theme: vn((0, Xe.default)({}, i, {
|
|
3355
3355
|
defaultTheme: n,
|
|
3356
3356
|
themeId: t
|
|
3357
3357
|
}))
|
|
3358
3358
|
}));
|
|
3359
3359
|
return s.__mui_systemSx = !0, (i, l = {}) => {
|
|
3360
|
-
(0, ys.internal_processStyles)(i, (w) => w.filter((
|
|
3360
|
+
(0, ys.internal_processStyles)(i, (w) => w.filter((P) => !(P != null && P.__mui_systemSx)));
|
|
3361
3361
|
const {
|
|
3362
3362
|
name: u,
|
|
3363
3363
|
slot: c,
|
|
@@ -3378,15 +3378,15 @@ function Nh(e = {}) {
|
|
|
3378
3378
|
const j = (0, ys.default)(i, (0, Xe.default)({
|
|
3379
3379
|
shouldForwardProp: S,
|
|
3380
3380
|
label: p
|
|
3381
|
-
}, v)),
|
|
3381
|
+
}, v)), C = (w) => typeof w == "function" && w.__emotion_real !== w || (0, jh.isPlainObject)(w) ? (P) => Ln(w, (0, Xe.default)({}, P, {
|
|
3382
3382
|
theme: vn({
|
|
3383
|
-
theme:
|
|
3383
|
+
theme: P.theme,
|
|
3384
3384
|
defaultTheme: n,
|
|
3385
3385
|
themeId: t
|
|
3386
3386
|
})
|
|
3387
|
-
})) : w, A = (w, ...
|
|
3388
|
-
let M =
|
|
3389
|
-
const z =
|
|
3387
|
+
})) : w, A = (w, ...P) => {
|
|
3388
|
+
let M = C(w);
|
|
3389
|
+
const z = P ? P.map(C) : [];
|
|
3390
3390
|
u && m && z.push((F) => {
|
|
3391
3391
|
const H = vn((0, Xe.default)({}, F, {
|
|
3392
3392
|
defaultTheme: n,
|
|
@@ -3412,7 +3412,7 @@ function Nh(e = {}) {
|
|
|
3412
3412
|
theme: V
|
|
3413
3413
|
}));
|
|
3414
3414
|
}), y || z.push(s);
|
|
3415
|
-
const se = z.length -
|
|
3415
|
+
const se = z.length - P.length;
|
|
3416
3416
|
if (Array.isArray(w) && se > 0) {
|
|
3417
3417
|
const F = new Array(se).fill("");
|
|
3418
3418
|
M = [...w, ...F], M.raw = [...w.raw, ...F];
|
|
@@ -3876,7 +3876,7 @@ function of(e) {
|
|
|
3876
3876
|
name: p,
|
|
3877
3877
|
mainShade: S = 500,
|
|
3878
3878
|
lightShade: j = 300,
|
|
3879
|
-
darkShade:
|
|
3879
|
+
darkShade: C = 700
|
|
3880
3880
|
}) => {
|
|
3881
3881
|
if (y = O({}, y), !y.main && y[S] && (y.main = y[S]), !y.hasOwnProperty("main"))
|
|
3882
3882
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${p ? ` (${p})` : ""} provided to augmentColor(color) is invalid.
|
|
@@ -3896,7 +3896,7 @@ const theme1 = createTheme({ palette: {
|
|
|
3896
3896
|
const theme2 = createTheme({ palette: {
|
|
3897
3897
|
primary: { main: green[500] },
|
|
3898
3898
|
} });` : Kr(12, p ? ` (${p})` : "", JSON.stringify(y.main)));
|
|
3899
|
-
return ws(y, "light", j, r), ws(y, "dark",
|
|
3899
|
+
return ws(y, "light", j, r), ws(y, "dark", C, r), y.contrastText || (y.contrastText = h(y.main)), y;
|
|
3900
3900
|
}, v = {
|
|
3901
3901
|
dark: Na,
|
|
3902
3902
|
light: Ss
|
|
@@ -3980,12 +3980,12 @@ function uf(e, t) {
|
|
|
3980
3980
|
pxToRem: h
|
|
3981
3981
|
} = n, m = Fe(n, sf);
|
|
3982
3982
|
process.env.NODE_ENV !== "production" && (typeof a != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof c != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
|
|
3983
|
-
const v = a / 14, _ = h || ((S) => `${S / c * v}rem`), y = (S, j,
|
|
3983
|
+
const v = a / 14, _ = h || ((S) => `${S / c * v}rem`), y = (S, j, C, A, w) => O({
|
|
3984
3984
|
fontFamily: r,
|
|
3985
3985
|
fontWeight: S,
|
|
3986
3986
|
fontSize: _(j),
|
|
3987
3987
|
// Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
|
|
3988
|
-
lineHeight:
|
|
3988
|
+
lineHeight: C
|
|
3989
3989
|
}, r === Rs ? {
|
|
3990
3990
|
letterSpacing: `${lf(A / j)}em`
|
|
3991
3991
|
} : {}, w, d), p = {
|
|
@@ -4309,21 +4309,21 @@ const Fr = () => {
|
|
|
4309
4309
|
e = r, t = a;
|
|
4310
4310
|
});
|
|
4311
4311
|
return n.resolve = e, n.reject = t, n;
|
|
4312
|
-
},
|
|
4312
|
+
}, Ps = (e) => e == null ? "" : "" + e, Af = (e, t, n) => {
|
|
4313
4313
|
e.forEach((r) => {
|
|
4314
4314
|
t[r] && (n[r] = t[r]);
|
|
4315
4315
|
});
|
|
4316
|
-
},
|
|
4316
|
+
}, Pf = /###/g, Cs = (e) => e && e.indexOf("###") > -1 ? e.replace(Pf, ".") : e, Ms = (e) => !e || typeof e == "string", zr = (e, t, n) => {
|
|
4317
4317
|
const r = typeof t != "string" ? t : t.split(".");
|
|
4318
4318
|
let a = 0;
|
|
4319
4319
|
for (; a < r.length - 1; ) {
|
|
4320
4320
|
if (Ms(e)) return {};
|
|
4321
|
-
const s =
|
|
4321
|
+
const s = Cs(r[a]);
|
|
4322
4322
|
!e[s] && n && (e[s] = new n()), Object.prototype.hasOwnProperty.call(e, s) ? e = e[s] : e = {}, ++a;
|
|
4323
4323
|
}
|
|
4324
4324
|
return Ms(e) ? {} : {
|
|
4325
4325
|
obj: e,
|
|
4326
|
-
k:
|
|
4326
|
+
k: Cs(r[a])
|
|
4327
4327
|
};
|
|
4328
4328
|
}, Os = (e, t, n) => {
|
|
4329
4329
|
const {
|
|
@@ -4338,7 +4338,7 @@ const Fr = () => {
|
|
|
4338
4338
|
for (; l.obj === void 0 && i.length; )
|
|
4339
4339
|
s = `${i[i.length - 1]}.${s}`, i = i.slice(0, i.length - 1), l = zr(e, i, Object), l && l.obj && typeof l.obj[`${l.k}.${s}`] < "u" && (l.obj = void 0);
|
|
4340
4340
|
l.obj[`${l.k}.${s}`] = n;
|
|
4341
|
-
},
|
|
4341
|
+
}, Cf = (e, t, n, r) => {
|
|
4342
4342
|
const {
|
|
4343
4343
|
obj: a,
|
|
4344
4344
|
k: s
|
|
@@ -4580,10 +4580,10 @@ class Hn extends fa {
|
|
|
4580
4580
|
return a ? (h.res = A, h.usedParams = this.getUsedParamsDetails(n), h) : A;
|
|
4581
4581
|
}
|
|
4582
4582
|
if (s) {
|
|
4583
|
-
const A = Array.isArray(m), w = A ? [] : {},
|
|
4583
|
+
const A = Array.isArray(m), w = A ? [] : {}, P = A ? _ : v;
|
|
4584
4584
|
for (const M in m)
|
|
4585
4585
|
if (Object.prototype.hasOwnProperty.call(m, M)) {
|
|
4586
|
-
const z = `${
|
|
4586
|
+
const z = `${P}${s}${M}`;
|
|
4587
4587
|
w[M] = this.translate(z, {
|
|
4588
4588
|
...n,
|
|
4589
4589
|
joinArrays: !1,
|
|
@@ -4596,9 +4596,9 @@ class Hn extends fa {
|
|
|
4596
4596
|
m = m.join(S), m && (m = this.extendTranslation(m, t, n, r));
|
|
4597
4597
|
else {
|
|
4598
4598
|
let A = !1, w = !1;
|
|
4599
|
-
const
|
|
4599
|
+
const P = n.count !== void 0 && typeof n.count != "string", M = Hn.hasDefaultValue(n), z = P ? this.pluralResolver.getSuffix(c, n.count, n) : "", se = n.ordinal && P ? this.pluralResolver.getSuffix(c, n.count, {
|
|
4600
4600
|
ordinal: !1
|
|
4601
|
-
}) : "", le =
|
|
4601
|
+
}) : "", le = P && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), F = le && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${z}`] || n[`defaultValue${se}`] || n.defaultValue;
|
|
4602
4602
|
!this.isValidLookup(m) && M && (A = !0, m = F), this.isValidLookup(m) || (w = !0, m = i);
|
|
4603
4603
|
const V = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && w ? void 0 : m, X = M && F !== m && this.options.updateMissing;
|
|
4604
4604
|
if (w || A || X) {
|
|
@@ -4619,7 +4619,7 @@ class Hn extends fa {
|
|
|
4619
4619
|
const rt = M && ke !== m ? ke : V;
|
|
4620
4620
|
this.options.missingKeyHandler ? this.options.missingKeyHandler(Y, u, je, rt, X, n) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(Y, u, je, rt, X, n), this.emit("missingKey", Y, u, je, m);
|
|
4621
4621
|
};
|
|
4622
|
-
this.options.saveMissing && (this.options.saveMissingPlurals &&
|
|
4622
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && P ? W.forEach((Y) => {
|
|
4623
4623
|
const je = this.pluralResolver.getSuffixes(Y, n);
|
|
4624
4624
|
le && n[`defaultValue${this.options.pluralSeparator}zero`] && je.indexOf(`${this.options.pluralSeparator}zero`) < 0 && je.push(`${this.options.pluralSeparator}zero`), je.forEach((ke) => {
|
|
4625
4625
|
ie([Y], i + ke, n[`defaultValue${ke}`] || F);
|
|
@@ -4695,15 +4695,15 @@ class Hn extends fa {
|
|
|
4695
4695
|
else {
|
|
4696
4696
|
let A;
|
|
4697
4697
|
m && (A = this.pluralResolver.getSuffix(S, n.count, n));
|
|
4698
|
-
const w = `${this.options.pluralSeparator}zero`,
|
|
4699
|
-
if (m && (j.push(d + A), n.ordinal && A.indexOf(
|
|
4698
|
+
const w = `${this.options.pluralSeparator}zero`, P = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
4699
|
+
if (m && (j.push(d + A), n.ordinal && A.indexOf(P) === 0 && j.push(d + A.replace(P, this.options.pluralSeparator)), v && j.push(d + w)), _) {
|
|
4700
4700
|
const M = `${d}${this.options.contextSeparator}${n.context}`;
|
|
4701
|
-
j.push(M), m && (j.push(M + A), n.ordinal && A.indexOf(
|
|
4701
|
+
j.push(M), m && (j.push(M + A), n.ordinal && A.indexOf(P) === 0 && j.push(M + A.replace(P, this.options.pluralSeparator)), v && j.push(M + w));
|
|
4702
4702
|
}
|
|
4703
4703
|
}
|
|
4704
|
-
let
|
|
4705
|
-
for (;
|
|
4706
|
-
this.isValidLookup(r) || (s =
|
|
4704
|
+
let C;
|
|
4705
|
+
for (; C = j.pop(); )
|
|
4706
|
+
this.isValidLookup(r) || (s = C, r = this.getResource(S, p, C, n));
|
|
4707
4707
|
}));
|
|
4708
4708
|
});
|
|
4709
4709
|
}), {
|
|
@@ -5071,7 +5071,7 @@ class Jf {
|
|
|
5071
5071
|
continue;
|
|
5072
5072
|
} else
|
|
5073
5073
|
this.logger.warn(`missed to pass in variable ${_} for interpolating ${t}`), i = "";
|
|
5074
|
-
else typeof i != "string" && !this.useRawValueToEscape && (i =
|
|
5074
|
+
else typeof i != "string" && !this.useRawValueToEscape && (i = Ps(i));
|
|
5075
5075
|
const y = v.safeValue(i);
|
|
5076
5076
|
if (t = t.replace(s[0], y), h ? (v.regex.lastIndex += i.length, v.regex.lastIndex -= s[0].length) : v.regex.lastIndex = 0, l++, l >= this.maxReplaces)
|
|
5077
5077
|
break;
|
|
@@ -5109,7 +5109,7 @@ class Jf {
|
|
|
5109
5109
|
a[1] = d.shift(), u = d, c = !0;
|
|
5110
5110
|
}
|
|
5111
5111
|
if (s = n(l.call(this, a[1].trim(), i), i), s && a[0] === t && typeof s != "string") return s;
|
|
5112
|
-
typeof s != "string" && (s =
|
|
5112
|
+
typeof s != "string" && (s = Ps(s)), s || (this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`), s = ""), c && (s = u.reduce((d, h) => this.format(d, h, r.lng, {
|
|
5113
5113
|
...r,
|
|
5114
5114
|
interpolationkey: a[1].trim()
|
|
5115
5115
|
}), s.trim())), t = t.replace(a[0], s), this.regexp.lastIndex = 0;
|
|
@@ -5266,7 +5266,7 @@ class Kf extends fa {
|
|
|
5266
5266
|
}), this.state[t] = n ? -1 : 2;
|
|
5267
5267
|
const l = {};
|
|
5268
5268
|
this.queue.forEach((u) => {
|
|
5269
|
-
|
|
5269
|
+
Cf(u.loaded, [s], i), Gf(u, t), n && u.errors.push(n), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((c) => {
|
|
5270
5270
|
l[c] || (l[c] = {});
|
|
5271
5271
|
const d = u.loaded[c];
|
|
5272
5272
|
d.length && d.forEach((h) => {
|
|
@@ -6126,7 +6126,7 @@ var g0 = /^\s+/;
|
|
|
6126
6126
|
function p0(e) {
|
|
6127
6127
|
return e && e.slice(0, f0(e) + 1).replace(g0, "");
|
|
6128
6128
|
}
|
|
6129
|
-
var Et = pt.Symbol,
|
|
6129
|
+
var Et = pt.Symbol, Pl = Object.prototype, y0 = Pl.hasOwnProperty, _0 = Pl.toString, Dr = Et ? Et.toStringTag : void 0;
|
|
6130
6130
|
function v0(e) {
|
|
6131
6131
|
var t = y0.call(e, Dr), n = e[Dr];
|
|
6132
6132
|
try {
|
|
@@ -6152,7 +6152,7 @@ var R0 = "[object Symbol]";
|
|
|
6152
6152
|
function ga(e) {
|
|
6153
6153
|
return typeof e == "symbol" || Wt(e) && Yt(e) == R0;
|
|
6154
6154
|
}
|
|
6155
|
-
var Us = NaN, A0 = /^[-+]0x[0-9a-f]+$/i,
|
|
6155
|
+
var Us = NaN, A0 = /^[-+]0x[0-9a-f]+$/i, P0 = /^0b[01]+$/i, C0 = /^0o[0-7]+$/i, M0 = parseInt;
|
|
6156
6156
|
function Js(e) {
|
|
6157
6157
|
if (typeof e == "number")
|
|
6158
6158
|
return e;
|
|
@@ -6165,8 +6165,8 @@ function Js(e) {
|
|
|
6165
6165
|
if (typeof e != "string")
|
|
6166
6166
|
return e === 0 ? e : +e;
|
|
6167
6167
|
e = p0(e);
|
|
6168
|
-
var n =
|
|
6169
|
-
return n ||
|
|
6168
|
+
var n = P0.test(e);
|
|
6169
|
+
return n || C0.test(e) ? M0(e.slice(2), n ? 2 : 8) : A0.test(e) ? Us : +e;
|
|
6170
6170
|
}
|
|
6171
6171
|
var O0 = "Expected a function", k0 = Math.max, I0 = Math.min;
|
|
6172
6172
|
function T0(e, t, n) {
|
|
@@ -6174,39 +6174,39 @@ function T0(e, t, n) {
|
|
|
6174
6174
|
if (typeof e != "function")
|
|
6175
6175
|
throw new TypeError(O0);
|
|
6176
6176
|
t = Js(t) || 0, Kt(n) && (d = !!n.leading, h = "maxWait" in n, s = h ? k0(Js(n.maxWait) || 0, t) : s, m = "trailing" in n ? !!n.trailing : m);
|
|
6177
|
-
function v(
|
|
6177
|
+
function v(P) {
|
|
6178
6178
|
var M = r, z = a;
|
|
6179
|
-
return r = a = void 0, c =
|
|
6179
|
+
return r = a = void 0, c = P, i = e.apply(z, M), i;
|
|
6180
6180
|
}
|
|
6181
|
-
function _(
|
|
6182
|
-
return c =
|
|
6181
|
+
function _(P) {
|
|
6182
|
+
return c = P, l = setTimeout(S, t), d ? v(P) : i;
|
|
6183
6183
|
}
|
|
6184
|
-
function y(
|
|
6185
|
-
var M =
|
|
6184
|
+
function y(P) {
|
|
6185
|
+
var M = P - u, z = P - c, se = t - M;
|
|
6186
6186
|
return h ? I0(se, s - z) : se;
|
|
6187
6187
|
}
|
|
6188
|
-
function p(
|
|
6189
|
-
var M =
|
|
6188
|
+
function p(P) {
|
|
6189
|
+
var M = P - u, z = P - c;
|
|
6190
6190
|
return u === void 0 || M >= t || M < 0 || h && z >= s;
|
|
6191
6191
|
}
|
|
6192
6192
|
function S() {
|
|
6193
|
-
var
|
|
6194
|
-
if (p(
|
|
6195
|
-
return j(
|
|
6196
|
-
l = setTimeout(S, y(
|
|
6193
|
+
var P = Ua();
|
|
6194
|
+
if (p(P))
|
|
6195
|
+
return j(P);
|
|
6196
|
+
l = setTimeout(S, y(P));
|
|
6197
6197
|
}
|
|
6198
|
-
function j(
|
|
6199
|
-
return l = void 0, m && r ? v(
|
|
6198
|
+
function j(P) {
|
|
6199
|
+
return l = void 0, m && r ? v(P) : (r = a = void 0, i);
|
|
6200
6200
|
}
|
|
6201
|
-
function
|
|
6201
|
+
function C() {
|
|
6202
6202
|
l !== void 0 && clearTimeout(l), c = 0, r = u = a = l = void 0;
|
|
6203
6203
|
}
|
|
6204
6204
|
function A() {
|
|
6205
6205
|
return l === void 0 ? i : j(Ua());
|
|
6206
6206
|
}
|
|
6207
6207
|
function w() {
|
|
6208
|
-
var
|
|
6209
|
-
if (r = arguments, a = this, u =
|
|
6208
|
+
var P = Ua(), M = p(P);
|
|
6209
|
+
if (r = arguments, a = this, u = P, M) {
|
|
6210
6210
|
if (l === void 0)
|
|
6211
6211
|
return _(u);
|
|
6212
6212
|
if (h)
|
|
@@ -6214,7 +6214,7 @@ function T0(e, t, n) {
|
|
|
6214
6214
|
}
|
|
6215
6215
|
return l === void 0 && (l = setTimeout(S, t)), i;
|
|
6216
6216
|
}
|
|
6217
|
-
return w.cancel =
|
|
6217
|
+
return w.cancel = C, w.flush = A, w;
|
|
6218
6218
|
}
|
|
6219
6219
|
var E0 = "Expected a function";
|
|
6220
6220
|
function L0(e, t, n) {
|
|
@@ -6264,10 +6264,10 @@ const $0 = un(
|
|
|
6264
6264
|
}
|
|
6265
6265
|
function p(S, j = 1) {
|
|
6266
6266
|
if (S === void 0 || isNaN(S)) return "";
|
|
6267
|
-
const
|
|
6267
|
+
const C = l("General.degree.variable", {
|
|
6268
6268
|
amount: S.toFixed(j)
|
|
6269
6269
|
});
|
|
6270
|
-
return S > 0 && j === 0 ? `+${
|
|
6270
|
+
return S > 0 && j === 0 ? `+${C}` : C;
|
|
6271
6271
|
}
|
|
6272
6272
|
return /* @__PURE__ */ o.jsxs(
|
|
6273
6273
|
yr,
|
|
@@ -6402,7 +6402,7 @@ const $0 = un(
|
|
|
6402
6402
|
}
|
|
6403
6403
|
)
|
|
6404
6404
|
);
|
|
6405
|
-
function
|
|
6405
|
+
function Cl(e, t) {
|
|
6406
6406
|
return function() {
|
|
6407
6407
|
return e.apply(t, arguments);
|
|
6408
6408
|
};
|
|
@@ -6463,7 +6463,7 @@ function io() {
|
|
|
6463
6463
|
return t;
|
|
6464
6464
|
}
|
|
6465
6465
|
const eg = (e, t, n, { allOwnKeys: r } = {}) => (dn(t, (a, s) => {
|
|
6466
|
-
n && ze(a) ? e[s] =
|
|
6466
|
+
n && ze(a) ? e[s] = Cl(a, n) : e[s] = a;
|
|
6467
6467
|
}, { allOwnKeys: r }), e), tg = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), rg = (e, t, n, r) => {
|
|
6468
6468
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
6469
6469
|
value: t.prototype
|
|
@@ -6731,11 +6731,11 @@ function va(e, t, n) {
|
|
|
6731
6731
|
if (x.endsWith(y, "{}"))
|
|
6732
6732
|
y = r ? y : y.slice(0, -2), _ = JSON.stringify(_);
|
|
6733
6733
|
else if (x.isArray(_) && wg(_) || (x.isFileList(_) || x.endsWith(y, "[]")) && (S = x.toArray(_)))
|
|
6734
|
-
return y = Fl(y), S.forEach(function(
|
|
6735
|
-
!(x.isUndefined(
|
|
6734
|
+
return y = Fl(y), S.forEach(function(C, A) {
|
|
6735
|
+
!(x.isUndefined(C) || C === null) && t.append(
|
|
6736
6736
|
// eslint-disable-next-line no-nested-ternary
|
|
6737
6737
|
i === !0 ? Gs([y], A, s) : i === null ? y : y + "[]",
|
|
6738
|
-
c(
|
|
6738
|
+
c(C)
|
|
6739
6739
|
);
|
|
6740
6740
|
}), !1;
|
|
6741
6741
|
}
|
|
@@ -6866,12 +6866,12 @@ const Ul = {
|
|
|
6866
6866
|
silentJSONParsing: !0,
|
|
6867
6867
|
forcedJSONParsing: !0,
|
|
6868
6868
|
clarifyTimeoutError: !1
|
|
6869
|
-
}, Ag = typeof URLSearchParams < "u" ? URLSearchParams : Jo,
|
|
6869
|
+
}, Ag = typeof URLSearchParams < "u" ? URLSearchParams : Jo, Pg = typeof FormData < "u" ? FormData : null, Cg = typeof Blob < "u" ? Blob : null, Mg = {
|
|
6870
6870
|
isBrowser: !0,
|
|
6871
6871
|
classes: {
|
|
6872
6872
|
URLSearchParams: Ag,
|
|
6873
|
-
FormData:
|
|
6874
|
-
Blob:
|
|
6873
|
+
FormData: Pg,
|
|
6874
|
+
Blob: Cg
|
|
6875
6875
|
},
|
|
6876
6876
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
6877
6877
|
}, Vo = typeof window < "u" && typeof document < "u", Og = ((e) => Vo && ["ReactNative", "NativeScript", "NS"].indexOf(e) < 0)(typeof navigator < "u" && navigator.product), kg = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
@@ -7442,13 +7442,13 @@ const Kl = (e) => {
|
|
|
7442
7442
|
function S() {
|
|
7443
7443
|
if (!p)
|
|
7444
7444
|
return;
|
|
7445
|
-
const
|
|
7445
|
+
const C = $e.from(
|
|
7446
7446
|
"getAllResponseHeaders" in p && p.getAllResponseHeaders()
|
|
7447
7447
|
), w = {
|
|
7448
7448
|
data: !l || l === "text" || l === "json" ? p.responseText : p.response,
|
|
7449
7449
|
status: p.status,
|
|
7450
7450
|
statusText: p.statusText,
|
|
7451
|
-
headers:
|
|
7451
|
+
headers: C,
|
|
7452
7452
|
config: e,
|
|
7453
7453
|
request: p
|
|
7454
7454
|
};
|
|
@@ -7475,8 +7475,8 @@ const Kl = (e) => {
|
|
|
7475
7475
|
)), p = null;
|
|
7476
7476
|
}, s === void 0 && i.setContentType(null), "setRequestHeader" in p && x.forEach(i.toJSON(), function(A, w) {
|
|
7477
7477
|
p.setRequestHeader(w, A);
|
|
7478
|
-
}), x.isUndefined(a.withCredentials) || (p.withCredentials = !!a.withCredentials), l && l !== "json" && (p.responseType = a.responseType), c && ([m, _] = qn(c, !0), p.addEventListener("progress", m)), u && p.upload && ([h, v] = qn(u), p.upload.addEventListener("progress", h), p.upload.addEventListener("loadend", v)), (a.cancelToken || a.signal) && (d = (
|
|
7479
|
-
p && (r(!
|
|
7478
|
+
}), x.isUndefined(a.withCredentials) || (p.withCredentials = !!a.withCredentials), l && l !== "json" && (p.responseType = a.responseType), c && ([m, _] = qn(c, !0), p.addEventListener("progress", m)), u && p.upload && ([h, v] = qn(u), p.upload.addEventListener("progress", h), p.upload.addEventListener("loadend", v)), (a.cancelToken || a.signal) && (d = (C) => {
|
|
7479
|
+
p && (r(!C || C.type ? new jr(null, e, p) : C), p.abort(), p = null);
|
|
7480
7480
|
}, a.cancelToken && a.cancelToken.subscribe(d), a.signal && (a.signal.aborted ? d() : a.signal.addEventListener("abort", d)));
|
|
7481
7481
|
const j = zg(a.url);
|
|
7482
7482
|
if (j && at.protocols.indexOf(j) === -1) {
|
|
@@ -7613,17 +7613,17 @@ const np = async (e) => {
|
|
|
7613
7613
|
let j;
|
|
7614
7614
|
try {
|
|
7615
7615
|
if (u && rp && n !== "get" && n !== "head" && (j = await ap(d, r)) !== 0) {
|
|
7616
|
-
let
|
|
7616
|
+
let P = new Request(t, {
|
|
7617
7617
|
method: "POST",
|
|
7618
7618
|
body: r,
|
|
7619
7619
|
duplex: "half"
|
|
7620
7620
|
}), M;
|
|
7621
|
-
if (x.isFormData(r) && (M =
|
|
7621
|
+
if (x.isFormData(r) && (M = P.headers.get("content-type")) && d.setContentType(M), P.body) {
|
|
7622
7622
|
const [z, se] = Xs(
|
|
7623
7623
|
j,
|
|
7624
7624
|
qn(qs(u))
|
|
7625
7625
|
);
|
|
7626
|
-
r = Zs(
|
|
7626
|
+
r = Zs(P.body, Qs, z, se, uo);
|
|
7627
7627
|
}
|
|
7628
7628
|
}
|
|
7629
7629
|
x.isString(h) || (h = h ? "include" : "omit"), p = new Request(t, {
|
|
@@ -7635,43 +7635,43 @@ const np = async (e) => {
|
|
|
7635
7635
|
duplex: "half",
|
|
7636
7636
|
credentials: h
|
|
7637
7637
|
});
|
|
7638
|
-
let
|
|
7638
|
+
let C = await fetch(p);
|
|
7639
7639
|
const A = co && (c === "stream" || c === "response");
|
|
7640
7640
|
if (co && (l || A)) {
|
|
7641
|
-
const
|
|
7641
|
+
const P = {};
|
|
7642
7642
|
["status", "statusText", "headers"].forEach((le) => {
|
|
7643
|
-
|
|
7643
|
+
P[le] = C[le];
|
|
7644
7644
|
});
|
|
7645
|
-
const M = x.toFiniteNumber(
|
|
7645
|
+
const M = x.toFiniteNumber(C.headers.get("content-length")), [z, se] = l && Xs(
|
|
7646
7646
|
M,
|
|
7647
7647
|
qn(qs(l), !0)
|
|
7648
7648
|
) || [];
|
|
7649
|
-
|
|
7650
|
-
Zs(
|
|
7649
|
+
C = new Response(
|
|
7650
|
+
Zs(C.body, Qs, z, () => {
|
|
7651
7651
|
se && se(), A && S();
|
|
7652
7652
|
}, uo),
|
|
7653
|
-
|
|
7653
|
+
P
|
|
7654
7654
|
);
|
|
7655
7655
|
}
|
|
7656
7656
|
c = c || "text";
|
|
7657
|
-
let w = await Yn[x.findKey(Yn, c) || "text"](
|
|
7658
|
-
return !A && S(), _ && _(), await new Promise((
|
|
7659
|
-
zl(
|
|
7657
|
+
let w = await Yn[x.findKey(Yn, c) || "text"](C, e);
|
|
7658
|
+
return !A && S(), _ && _(), await new Promise((P, M) => {
|
|
7659
|
+
zl(P, M, {
|
|
7660
7660
|
data: w,
|
|
7661
|
-
headers: $e.from(
|
|
7662
|
-
status:
|
|
7663
|
-
statusText:
|
|
7661
|
+
headers: $e.from(C.headers),
|
|
7662
|
+
status: C.status,
|
|
7663
|
+
statusText: C.statusText,
|
|
7664
7664
|
config: e,
|
|
7665
7665
|
request: p
|
|
7666
7666
|
});
|
|
7667
7667
|
});
|
|
7668
|
-
} catch (
|
|
7669
|
-
throw S(),
|
|
7668
|
+
} catch (C) {
|
|
7669
|
+
throw S(), C && C.name === "TypeError" && /fetch/i.test(C.message) ? Object.assign(
|
|
7670
7670
|
new U("Network Error", U.ERR_NETWORK, e, p),
|
|
7671
7671
|
{
|
|
7672
|
-
cause:
|
|
7672
|
+
cause: C.cause || C
|
|
7673
7673
|
}
|
|
7674
|
-
) : U.from(
|
|
7674
|
+
) : U.from(C, C && C.code, e, p);
|
|
7675
7675
|
}
|
|
7676
7676
|
}), mo = {
|
|
7677
7677
|
http: Sg,
|
|
@@ -8051,7 +8051,7 @@ Object.entries(fo).forEach(([e, t]) => {
|
|
|
8051
8051
|
fo[t] = e;
|
|
8052
8052
|
});
|
|
8053
8053
|
function Zl(e) {
|
|
8054
|
-
const t = new Vt(e), n =
|
|
8054
|
+
const t = new Vt(e), n = Cl(Vt.prototype.request, t);
|
|
8055
8055
|
return x.extend(n, Vt.prototype, t, { allOwnKeys: !0 }), x.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(a) {
|
|
8056
8056
|
return Zl(Ht(e, a));
|
|
8057
8057
|
}, n;
|
|
@@ -8321,11 +8321,11 @@ function Ap(e) {
|
|
|
8321
8321
|
var r = t.length - 1;
|
|
8322
8322
|
return n == r ? t.pop() : Rp.call(t, n, 1), --this.size, !0;
|
|
8323
8323
|
}
|
|
8324
|
-
function
|
|
8324
|
+
function Pp(e) {
|
|
8325
8325
|
var t = this.__data__, n = xa(t, e);
|
|
8326
8326
|
return n < 0 ? void 0 : t[n][1];
|
|
8327
8327
|
}
|
|
8328
|
-
function
|
|
8328
|
+
function Cp(e) {
|
|
8329
8329
|
return xa(this.__data__, e) > -1;
|
|
8330
8330
|
}
|
|
8331
8331
|
function Mp(e, t) {
|
|
@@ -8341,8 +8341,8 @@ function jt(e) {
|
|
|
8341
8341
|
}
|
|
8342
8342
|
jt.prototype.clear = wp;
|
|
8343
8343
|
jt.prototype.delete = Ap;
|
|
8344
|
-
jt.prototype.get =
|
|
8345
|
-
jt.prototype.has =
|
|
8344
|
+
jt.prototype.get = Pp;
|
|
8345
|
+
jt.prototype.has = Cp;
|
|
8346
8346
|
jt.prototype.set = Mp;
|
|
8347
8347
|
function Op() {
|
|
8348
8348
|
this.__data__ = new jt(), this.size = 0;
|
|
@@ -8571,7 +8571,7 @@ function wy(e) {
|
|
|
8571
8571
|
n[++t] = r;
|
|
8572
8572
|
}), n;
|
|
8573
8573
|
}
|
|
8574
|
-
var jy = 1, Ry = 2, Ay = "[object Boolean]",
|
|
8574
|
+
var jy = 1, Ry = 2, Ay = "[object Boolean]", Py = "[object Date]", Cy = "[object Error]", My = "[object Map]", Oy = "[object Number]", ky = "[object RegExp]", Iy = "[object Set]", Ty = "[object String]", Ey = "[object Symbol]", Ly = "[object ArrayBuffer]", $y = "[object DataView]", ii = Et ? Et.prototype : void 0, Wa = ii ? ii.valueOf : void 0;
|
|
8575
8575
|
function Ny(e, t, n, r, a, s, i) {
|
|
8576
8576
|
switch (n) {
|
|
8577
8577
|
case $y:
|
|
@@ -8581,10 +8581,10 @@ function Ny(e, t, n, r, a, s, i) {
|
|
|
8581
8581
|
case Ly:
|
|
8582
8582
|
return !(e.byteLength != t.byteLength || !s(new si(e), new si(t)));
|
|
8583
8583
|
case Ay:
|
|
8584
|
-
case
|
|
8584
|
+
case Py:
|
|
8585
8585
|
case Oy:
|
|
8586
8586
|
return tu(+e, +t);
|
|
8587
|
-
case
|
|
8587
|
+
case Cy:
|
|
8588
8588
|
return e.name == t.name && e.message == t.message;
|
|
8589
8589
|
case ky:
|
|
8590
8590
|
case Ty:
|
|
@@ -8669,13 +8669,13 @@ function A1(e) {
|
|
|
8669
8669
|
return e(t);
|
|
8670
8670
|
};
|
|
8671
8671
|
}
|
|
8672
|
-
var lu = typeof exports == "object" && exports && !exports.nodeType && exports, Gr = lu && typeof module == "object" && module && !module.nodeType && module,
|
|
8672
|
+
var lu = typeof exports == "object" && exports && !exports.nodeType && exports, Gr = lu && typeof module == "object" && module && !module.nodeType && module, P1 = Gr && Gr.exports === lu, Ha = P1 && Al.process, mi = function() {
|
|
8673
8673
|
try {
|
|
8674
8674
|
var e = Gr && Gr.require && Gr.require("util").types;
|
|
8675
8675
|
return e || Ha && Ha.binding && Ha.binding("util");
|
|
8676
8676
|
} catch {
|
|
8677
8677
|
}
|
|
8678
|
-
}(), hi = mi && mi.isTypedArray, uu = hi ? A1(hi) : R1,
|
|
8678
|
+
}(), hi = mi && mi.isTypedArray, uu = hi ? A1(hi) : R1, C1 = Object.prototype, M1 = C1.hasOwnProperty;
|
|
8679
8679
|
function O1(e, t) {
|
|
8680
8680
|
var n = gt(e), r = !n && ou(e), a = !n && !r && go(e), s = !n && !r && !a && uu(e), i = n || r || a || s, l = i ? Gy(e.length, String) : [], u = l.length;
|
|
8681
8681
|
for (var c in e)
|
|
@@ -8733,8 +8733,8 @@ function U1(e, t, n, r, a, s) {
|
|
|
8733
8733
|
m = l[h];
|
|
8734
8734
|
var S = e[m], j = t[m];
|
|
8735
8735
|
if (r)
|
|
8736
|
-
var
|
|
8737
|
-
if (!(
|
|
8736
|
+
var C = i ? r(j, S, m, t, e, s) : r(S, j, m, e, t, s);
|
|
8737
|
+
if (!(C === void 0 ? S === j || a(S, j, n, r, s) : C)) {
|
|
8738
8738
|
y = !1;
|
|
8739
8739
|
break;
|
|
8740
8740
|
}
|
|
@@ -9075,7 +9075,7 @@ function c_(e) {
|
|
|
9075
9075
|
shiftStep: p = 10,
|
|
9076
9076
|
tabIndex: S,
|
|
9077
9077
|
value: j
|
|
9078
|
-
} = e,
|
|
9078
|
+
} = e, C = $.useRef(), [A, w] = $.useState(-1), [P, M] = $.useState(-1), [z, se] = $.useState(!1), le = $.useRef(0), [F, H] = ul({
|
|
9079
9079
|
controlled: j,
|
|
9080
9080
|
default: n ?? u,
|
|
9081
9081
|
name: "Slider"
|
|
@@ -9185,7 +9185,7 @@ function c_(e) {
|
|
|
9185
9185
|
activeIndex: Ee
|
|
9186
9186
|
};
|
|
9187
9187
|
}, Z = In((k) => {
|
|
9188
|
-
const E = Sn(k,
|
|
9188
|
+
const E = Sn(k, C);
|
|
9189
9189
|
if (!E)
|
|
9190
9190
|
return;
|
|
9191
9191
|
if (le.current += 1, k.type === "mousemove" && k.buttons === 0) {
|
|
@@ -9205,7 +9205,7 @@ function c_(e) {
|
|
|
9205
9205
|
setActive: w
|
|
9206
9206
|
}), H(N), !z && le.current > a_ && se(!0), V && !jn(N, F) && V(k, N, G);
|
|
9207
9207
|
}), me = In((k) => {
|
|
9208
|
-
const E = Sn(k,
|
|
9208
|
+
const E = Sn(k, C);
|
|
9209
9209
|
if (se(!1), !E)
|
|
9210
9210
|
return;
|
|
9211
9211
|
const {
|
|
@@ -9214,14 +9214,14 @@ function c_(e) {
|
|
|
9214
9214
|
finger: E,
|
|
9215
9215
|
move: !0
|
|
9216
9216
|
});
|
|
9217
|
-
w(-1), k.type === "touchend" && M(-1), h && h(k, N),
|
|
9217
|
+
w(-1), k.type === "touchend" && M(-1), h && h(k, N), C.current = void 0, Te();
|
|
9218
9218
|
}), Ie = In((k) => {
|
|
9219
9219
|
if (r)
|
|
9220
9220
|
return;
|
|
9221
9221
|
Ri() || k.preventDefault();
|
|
9222
9222
|
const E = k.changedTouches[0];
|
|
9223
|
-
E != null && (
|
|
9224
|
-
const N = Sn(k,
|
|
9223
|
+
E != null && (C.current = E.identifier);
|
|
9224
|
+
const N = Sn(k, C);
|
|
9225
9225
|
if (N !== !1) {
|
|
9226
9226
|
const {
|
|
9227
9227
|
newValue: q,
|
|
@@ -9258,12 +9258,12 @@ function c_(e) {
|
|
|
9258
9258
|
}, [Te, Ie]), $.useEffect(() => {
|
|
9259
9259
|
r && Te();
|
|
9260
9260
|
}, [r, Te]);
|
|
9261
|
-
const
|
|
9261
|
+
const Pt = (k) => (E) => {
|
|
9262
9262
|
var N;
|
|
9263
9263
|
if ((N = k.onMouseDown) == null || N.call(k, E), r || E.defaultPrevented || E.button !== 0)
|
|
9264
9264
|
return;
|
|
9265
9265
|
E.preventDefault();
|
|
9266
|
-
const G = Sn(E,
|
|
9266
|
+
const G = Sn(E, C);
|
|
9267
9267
|
if (G !== !1) {
|
|
9268
9268
|
const {
|
|
9269
9269
|
newValue: K,
|
|
@@ -9282,9 +9282,9 @@ function c_(e) {
|
|
|
9282
9282
|
q.addEventListener("mousemove", Z, {
|
|
9283
9283
|
passive: !0
|
|
9284
9284
|
}), q.addEventListener("mouseup", me);
|
|
9285
|
-
}, we = Qn(X ? W[0] : u, u, l),
|
|
9285
|
+
}, we = Qn(X ? W[0] : u, u, l), Ct = Qn(W[W.length - 1], u, l) - we, Nt = (k = {}) => {
|
|
9286
9286
|
const E = Tn(k), N = {
|
|
9287
|
-
onMouseDown:
|
|
9287
|
+
onMouseDown: Pt(E || {})
|
|
9288
9288
|
}, G = O({}, E, N);
|
|
9289
9289
|
return O({}, k, {
|
|
9290
9290
|
ref: it
|
|
@@ -9342,10 +9342,10 @@ function c_(e) {
|
|
|
9342
9342
|
return O({}, k, E, N);
|
|
9343
9343
|
},
|
|
9344
9344
|
marks: xe,
|
|
9345
|
-
open:
|
|
9345
|
+
open: P,
|
|
9346
9346
|
range: X,
|
|
9347
9347
|
rootRef: it,
|
|
9348
|
-
trackLeap:
|
|
9348
|
+
trackLeap: Ct,
|
|
9349
9349
|
trackOffset: we,
|
|
9350
9350
|
values: W,
|
|
9351
9351
|
getThumbStyle: (k) => ({
|
|
@@ -9912,7 +9912,7 @@ const g_ = wt("span", {
|
|
|
9912
9912
|
}, w_ = ({
|
|
9913
9913
|
children: e
|
|
9914
9914
|
}) => e, fu = /* @__PURE__ */ $.forwardRef(function(t, n) {
|
|
9915
|
-
var r, a, s, i, l, u, c, d, h, m, v, _, y, p, S, j,
|
|
9915
|
+
var r, a, s, i, l, u, c, d, h, m, v, _, y, p, S, j, C, A, w, P, M, z, se, le;
|
|
9916
9916
|
const F = No({
|
|
9917
9917
|
props: t,
|
|
9918
9918
|
name: "MuiSlider"
|
|
@@ -9944,7 +9944,7 @@ const g_ = wt("span", {
|
|
|
9944
9944
|
track: me = "normal",
|
|
9945
9945
|
valueLabelDisplay: Ie = "off",
|
|
9946
9946
|
valueLabelFormat: Te = Ai
|
|
9947
|
-
} = F,
|
|
9947
|
+
} = F, Pt = Fe(F, f_), we = O({}, F, {
|
|
9948
9948
|
isRtl: H,
|
|
9949
9949
|
max: Ke,
|
|
9950
9950
|
min: De,
|
|
@@ -9962,11 +9962,11 @@ const g_ = wt("span", {
|
|
|
9962
9962
|
valueLabelDisplay: Ie,
|
|
9963
9963
|
valueLabelFormat: Te
|
|
9964
9964
|
}), {
|
|
9965
|
-
axisProps:
|
|
9965
|
+
axisProps: Ct,
|
|
9966
9966
|
getRootProps: Nt,
|
|
9967
9967
|
getHiddenInputProps: Rr,
|
|
9968
9968
|
getThumbProps: Ar,
|
|
9969
|
-
open:
|
|
9969
|
+
open: Pr,
|
|
9970
9970
|
active: er,
|
|
9971
9971
|
axis: nt,
|
|
9972
9972
|
focusedThumbIndex: k,
|
|
@@ -9981,31 +9981,31 @@ const g_ = wt("span", {
|
|
|
9981
9981
|
rootRef: n
|
|
9982
9982
|
}));
|
|
9983
9983
|
we.marked = G.length > 0 && G.some((L) => L.label), we.dragging = N, we.focusedThumbIndex = k;
|
|
9984
|
-
const Q = S_(we), Ee = (r = (a = Z == null ? void 0 : Z.root) != null ? a : ie.Root) != null ? r : g_, Mt = (s = (i = Z == null ? void 0 : Z.rail) != null ? i : ie.Rail) != null ? s : p_, tr = (l = (u = Z == null ? void 0 : Z.track) != null ? u : ie.Track) != null ? l : y_,
|
|
9984
|
+
const Q = S_(we), Ee = (r = (a = Z == null ? void 0 : Z.root) != null ? a : ie.Root) != null ? r : g_, Mt = (s = (i = Z == null ? void 0 : Z.rail) != null ? i : ie.Rail) != null ? s : p_, tr = (l = (u = Z == null ? void 0 : Z.track) != null ? u : ie.Track) != null ? l : y_, Cr = (c = (d = Z == null ? void 0 : Z.thumb) != null ? d : ie.Thumb) != null ? c : __, vt = (h = (m = Z == null ? void 0 : Z.valueLabel) != null ? m : ie.ValueLabel) != null ? h : v_, Ft = (v = (_ = Z == null ? void 0 : Z.mark) != null ? _ : ie.Mark) != null ? v : b_, Dt = (y = (p = Z == null ? void 0 : Z.markLabel) != null ? p : ie.MarkLabel) != null ? y : x_, Mr = (S = (j = Z == null ? void 0 : Z.input) != null ? j : ie.Input) != null ? S : "input", Or = (C = I == null ? void 0 : I.root) != null ? C : Y.root, hn = (A = I == null ? void 0 : I.rail) != null ? A : Y.rail, kr = (w = I == null ? void 0 : I.track) != null ? w : Y.track, rr = (P = I == null ? void 0 : I.thumb) != null ? P : Y.thumb, nr = (M = I == null ? void 0 : I.valueLabel) != null ? M : Y.valueLabel, Ra = (z = I == null ? void 0 : I.mark) != null ? z : Y.mark, Aa = (se = I == null ? void 0 : I.markLabel) != null ? se : Y.markLabel, fn = (le = I == null ? void 0 : I.input) != null ? le : Y.input, gn = Ot({
|
|
9985
9985
|
elementType: Ee,
|
|
9986
9986
|
getSlotProps: Nt,
|
|
9987
9987
|
externalSlotProps: Or,
|
|
9988
|
-
externalForwardedProps:
|
|
9988
|
+
externalForwardedProps: Pt,
|
|
9989
9989
|
additionalProps: O({}, d_(Ee) && {
|
|
9990
9990
|
as: xe
|
|
9991
9991
|
}),
|
|
9992
9992
|
ownerState: O({}, we, Or == null ? void 0 : Or.ownerState),
|
|
9993
9993
|
className: [Q.root, rt]
|
|
9994
|
-
}),
|
|
9994
|
+
}), Pa = Ot({
|
|
9995
9995
|
elementType: Mt,
|
|
9996
9996
|
externalSlotProps: hn,
|
|
9997
9997
|
ownerState: we,
|
|
9998
9998
|
className: Q.rail
|
|
9999
|
-
}),
|
|
9999
|
+
}), Ca = Ot({
|
|
10000
10000
|
elementType: tr,
|
|
10001
10001
|
externalSlotProps: kr,
|
|
10002
10002
|
additionalProps: {
|
|
10003
|
-
style: O({},
|
|
10003
|
+
style: O({}, Ct[nt].offset(K), Ct[nt].leap(Ue))
|
|
10004
10004
|
},
|
|
10005
10005
|
ownerState: O({}, we, kr == null ? void 0 : kr.ownerState),
|
|
10006
10006
|
className: Q.track
|
|
10007
10007
|
}), Ir = Ot({
|
|
10008
|
-
elementType:
|
|
10008
|
+
elementType: Cr,
|
|
10009
10009
|
getSlotProps: Ar,
|
|
10010
10010
|
externalSlotProps: rr,
|
|
10011
10011
|
ownerState: O({}, we, rr == null ? void 0 : rr.ownerState),
|
|
@@ -10032,8 +10032,8 @@ const g_ = wt("span", {
|
|
|
10032
10032
|
ownerState: we
|
|
10033
10033
|
});
|
|
10034
10034
|
return /* @__PURE__ */ o.jsxs(Ee, O({}, gn, {
|
|
10035
|
-
children: [/* @__PURE__ */ o.jsx(Mt, O({},
|
|
10036
|
-
const ee = Qn(L.value, De, Ke), J =
|
|
10035
|
+
children: [/* @__PURE__ */ o.jsx(Mt, O({}, Pa)), /* @__PURE__ */ o.jsx(tr, O({}, Ca)), G.filter((L) => L.value >= De && L.value <= Ke).map((L, D) => {
|
|
10036
|
+
const ee = Qn(L.value, De, Ke), J = Ct[nt].offset(ee);
|
|
10037
10037
|
let B;
|
|
10038
10038
|
return me === !1 ? B = q.indexOf(L.value) !== -1 : B = me === "normal" && (E ? L.value >= q[0] && L.value <= q[q.length - 1] : L.value <= q[0]) || me === "inverted" && (E ? L.value <= q[0] || L.value >= q[q.length - 1] : L.value >= q[0]), /* @__PURE__ */ o.jsxs($.Fragment, {
|
|
10039
10039
|
children: [/* @__PURE__ */ o.jsx(Ft, O({
|
|
@@ -10055,7 +10055,7 @@ const g_ = wt("span", {
|
|
|
10055
10055
|
})) : null]
|
|
10056
10056
|
}, D);
|
|
10057
10057
|
}), q.map((L, D) => {
|
|
10058
|
-
const ee = Qn(L, De, Ke), J =
|
|
10058
|
+
const ee = Qn(L, De, Ke), J = Ct[nt].offset(ee), B = Ie === "off" ? w_ : vt;
|
|
10059
10059
|
return (
|
|
10060
10060
|
/* TODO v6: Change component structure. It will help in avoiding the complicated React.cloneElement API added in SliderValueLabel component. Should be: Thumb -> Input, ValueLabel. Follow Joy UI's Slider structure. */
|
|
10061
10061
|
/* @__PURE__ */ o.jsx(B, O({}, !Vr(B) && {
|
|
@@ -10063,10 +10063,10 @@ const g_ = wt("span", {
|
|
|
10063
10063
|
valueLabelDisplay: Ie,
|
|
10064
10064
|
value: typeof Te == "function" ? Te(Be(L), D) : Te,
|
|
10065
10065
|
index: D,
|
|
10066
|
-
open:
|
|
10066
|
+
open: Pr === D || er === D || Ie === "on",
|
|
10067
10067
|
disabled: Ge
|
|
10068
10068
|
}, Ma, {
|
|
10069
|
-
children: /* @__PURE__ */ o.jsx(
|
|
10069
|
+
children: /* @__PURE__ */ o.jsx(Cr, O({
|
|
10070
10070
|
"data-index": D
|
|
10071
10071
|
}, Ir, {
|
|
10072
10072
|
className: ht(Q.thumb, Ir.className, er === D && Q.active, k === D && Q.focusVisible),
|
|
@@ -10421,12 +10421,12 @@ const A_ = et((e) => {
|
|
|
10421
10421
|
}
|
|
10422
10422
|
);
|
|
10423
10423
|
}
|
|
10424
|
-
),
|
|
10424
|
+
), P_ = et(
|
|
10425
10425
|
({
|
|
10426
10426
|
store: e,
|
|
10427
10427
|
children: t
|
|
10428
10428
|
}) => {
|
|
10429
|
-
var h, m, v, _, y, p, S, j,
|
|
10429
|
+
var h, m, v, _, y, p, S, j, C;
|
|
10430
10430
|
const { t: n } = vr(), r = en();
|
|
10431
10431
|
function a(A, w) {
|
|
10432
10432
|
(w === "translate" || w === "rotate") && e.setSelectedCartesianMotionType(w);
|
|
@@ -10443,10 +10443,10 @@ const A_ = et((e) => {
|
|
|
10443
10443
|
{ fireImmediately: !0 }
|
|
10444
10444
|
);
|
|
10445
10445
|
async function s(A, w) {
|
|
10446
|
-
const
|
|
10447
|
-
|
|
10446
|
+
const P = e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose, M = e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;
|
|
10447
|
+
P && await e.withMotionLock(async () => {
|
|
10448
10448
|
await e.jogger.runIncrementalCartesianMotion({
|
|
10449
|
-
currentTcpPose:
|
|
10449
|
+
currentTcpPose: P,
|
|
10450
10450
|
currentJoints: M,
|
|
10451
10451
|
coordSystemId: e.activeCoordSystemId,
|
|
10452
10452
|
velocityInRelevantUnits: e.velocityInCurrentUnits,
|
|
@@ -10493,7 +10493,7 @@ const A_ = et((e) => {
|
|
|
10493
10493
|
},
|
|
10494
10494
|
{
|
|
10495
10495
|
id: "z",
|
|
10496
|
-
colors: (
|
|
10496
|
+
colors: (C = (j = (S = r.componentsExt) == null ? void 0 : S.JoggingCartesian) == null ? void 0 : j.Axis) == null ? void 0 : C.Z,
|
|
10497
10497
|
icon: /* @__PURE__ */ o.jsx(vp, {})
|
|
10498
10498
|
}
|
|
10499
10499
|
];
|
|
@@ -10502,7 +10502,7 @@ const A_ = et((e) => {
|
|
|
10502
10502
|
}
|
|
10503
10503
|
function d(A) {
|
|
10504
10504
|
return n("General.degree.variable", {
|
|
10505
|
-
amount:
|
|
10505
|
+
amount: Pn(A).toFixed(1)
|
|
10506
10506
|
});
|
|
10507
10507
|
}
|
|
10508
10508
|
return /* @__PURE__ */ o.jsxs(oe, { flexGrow: 1, gap: 4, children: [
|
|
@@ -10599,9 +10599,9 @@ const A_ = et((e) => {
|
|
|
10599
10599
|
)
|
|
10600
10600
|
] }),
|
|
10601
10601
|
getDisplayedValue: () => {
|
|
10602
|
-
var w,
|
|
10602
|
+
var w, P;
|
|
10603
10603
|
return d(
|
|
10604
|
-
((
|
|
10604
|
+
((P = (w = e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose) == null ? void 0 : w.orientation) == null ? void 0 : P[A.id]) || 0
|
|
10605
10605
|
);
|
|
10606
10606
|
},
|
|
10607
10607
|
startJogging: (w) => i({
|
|
@@ -10623,7 +10623,7 @@ const A_ = et((e) => {
|
|
|
10623
10623
|
] })
|
|
10624
10624
|
] });
|
|
10625
10625
|
}
|
|
10626
|
-
),
|
|
10626
|
+
), C_ = et(
|
|
10627
10627
|
({ store: e }) => {
|
|
10628
10628
|
const t = Tt(null);
|
|
10629
10629
|
function n() {
|
|
@@ -10668,10 +10668,10 @@ const A_ = et((e) => {
|
|
|
10668
10668
|
await e.jogger.stop();
|
|
10669
10669
|
}
|
|
10670
10670
|
return /* @__PURE__ */ o.jsxs(oe, { flexGrow: 1, justifyContent: "space-between", children: [
|
|
10671
|
-
/* @__PURE__ */ o.jsx(
|
|
10671
|
+
/* @__PURE__ */ o.jsx(C_, { store: e }),
|
|
10672
10672
|
/* @__PURE__ */ o.jsx(Ql, { store: e, children: /* @__PURE__ */ o.jsx(oe, { gap: "0.8rem", children: e.jogger.motionStream.joints.map((a) => {
|
|
10673
10673
|
var u;
|
|
10674
|
-
const s = (u = e.motionGroupSpec.mechanical_joint_limits) == null ? void 0 : u[a.index], i = (s == null ? void 0 : s.lower_limit) !== void 0 ?
|
|
10674
|
+
const s = (u = e.motionGroupSpec.mechanical_joint_limits) == null ? void 0 : u[a.index], i = (s == null ? void 0 : s.lower_limit) !== void 0 ? Pn(s.lower_limit) : void 0, l = (s == null ? void 0 : s.upper_limit) !== void 0 ? Pn(s.upper_limit) : void 0;
|
|
10675
10675
|
return /* @__PURE__ */ o.jsxs(
|
|
10676
10676
|
oe,
|
|
10677
10677
|
{
|
|
@@ -10697,7 +10697,7 @@ const A_ = et((e) => {
|
|
|
10697
10697
|
upperLimitDegs: l,
|
|
10698
10698
|
getValueDegs: () => {
|
|
10699
10699
|
const c = e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[a.index];
|
|
10700
|
-
return c !== void 0 ?
|
|
10700
|
+
return c !== void 0 ? Pn(c) : void 0;
|
|
10701
10701
|
},
|
|
10702
10702
|
startJogging: (c) => n({
|
|
10703
10703
|
joint: a.index,
|
|
@@ -10726,7 +10726,7 @@ const A_ = et((e) => {
|
|
|
10726
10726
|
] });
|
|
10727
10727
|
}
|
|
10728
10728
|
);
|
|
10729
|
-
var
|
|
10729
|
+
var Pi = function() {
|
|
10730
10730
|
try {
|
|
10731
10731
|
var e = Qt(Object, "defineProperty");
|
|
10732
10732
|
return e({}, "", {}), e;
|
|
@@ -10734,7 +10734,7 @@ var Ci = function() {
|
|
|
10734
10734
|
}
|
|
10735
10735
|
}();
|
|
10736
10736
|
function O_(e, t, n) {
|
|
10737
|
-
t == "__proto__" &&
|
|
10737
|
+
t == "__proto__" && Pi ? Pi(e, t, {
|
|
10738
10738
|
configurable: !0,
|
|
10739
10739
|
enumerable: !0,
|
|
10740
10740
|
value: n,
|
|
@@ -10863,7 +10863,7 @@ function Y_(e, t) {
|
|
|
10863
10863
|
a[n] = t(e[n], n, e);
|
|
10864
10864
|
return a;
|
|
10865
10865
|
}
|
|
10866
|
-
var Z_ = 1 / 0,
|
|
10866
|
+
var Z_ = 1 / 0, Ci = Et ? Et.prototype : void 0, Mi = Ci ? Ci.toString : void 0;
|
|
10867
10867
|
function _u(e) {
|
|
10868
10868
|
if (typeof e == "string")
|
|
10869
10869
|
return e;
|
|
@@ -11002,7 +11002,7 @@ class qo {
|
|
|
11002
11002
|
this.jogger.dispose();
|
|
11003
11003
|
}
|
|
11004
11004
|
get coordSystemCountByName() {
|
|
11005
|
-
return
|
|
11005
|
+
return Pc(this.coordSystems, (t) => t.name);
|
|
11006
11006
|
}
|
|
11007
11007
|
async deactivate(t = {}) {
|
|
11008
11008
|
if (this.activationState === "inactive") return;
|
|
@@ -11186,7 +11186,7 @@ class qo {
|
|
|
11186
11186
|
}
|
|
11187
11187
|
const _b = un(
|
|
11188
11188
|
et((e) => {
|
|
11189
|
-
const t =
|
|
11189
|
+
const t = Cc(e.nova) ? new jc({ instanceUrl: e.nova }) : e.nova, n = wo(() => ({
|
|
11190
11190
|
joggingStore: null,
|
|
11191
11191
|
loadingError: null
|
|
11192
11192
|
}));
|
|
@@ -11251,7 +11251,7 @@ const _b = un(
|
|
|
11251
11251
|
);
|
|
11252
11252
|
function n() {
|
|
11253
11253
|
if (e.currentTab.id === "cartesian")
|
|
11254
|
-
return /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsx(
|
|
11254
|
+
return /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsx(P_, { store: e, children: t }) });
|
|
11255
11255
|
if (e.currentTab.id === "joint")
|
|
11256
11256
|
return /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsx(M_, { store: e, children: t }) });
|
|
11257
11257
|
}
|
|
@@ -12667,10 +12667,10 @@ function Au({ modelURL: e, ...t }) {
|
|
|
12667
12667
|
] })
|
|
12668
12668
|
] }) }) });
|
|
12669
12669
|
}
|
|
12670
|
-
|
|
12670
|
+
Pu.config = {
|
|
12671
12671
|
rotationOffsets: [0, Math.PI / 2, 0, 0, 0, 0]
|
|
12672
12672
|
};
|
|
12673
|
-
function
|
|
12673
|
+
function Pu({ modelURL: e, ...t }) {
|
|
12674
12674
|
const n = ce(e), r = n.nodes, a = n.materials;
|
|
12675
12675
|
return /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsx("group", { ...t, dispose: null, children: /* @__PURE__ */ o.jsxs("group", { name: "Scene", position: [0, -0.37, 0], children: [
|
|
12676
12676
|
/* @__PURE__ */ o.jsxs("group", { name: "CRX25iA_L00", children: [
|
|
@@ -12867,10 +12867,10 @@ function Cu({ modelURL: e, ...t }) {
|
|
|
12867
12867
|
] })
|
|
12868
12868
|
] }) }) });
|
|
12869
12869
|
}
|
|
12870
|
-
|
|
12870
|
+
Cu.config = {
|
|
12871
12871
|
rotationOffsets: [0, Math.PI / 2, 0, 0, 0, 0]
|
|
12872
12872
|
};
|
|
12873
|
-
function
|
|
12873
|
+
function Cu({ modelURL: e, ...t }) {
|
|
12874
12874
|
const n = ce(e), r = n.nodes, a = n.materials;
|
|
12875
12875
|
return /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsx("group", { ...t, dispose: null, children: /* @__PURE__ */ o.jsxs("group", { name: "Scene", children: [
|
|
12876
12876
|
/* @__PURE__ */ o.jsxs(b.group, { name: "CRX10iA_J00", children: [
|
|
@@ -17475,12 +17475,12 @@ const Av = "(^joint_[0-9]+$)|(_J[0-9]+$)";
|
|
|
17475
17475
|
function Nu(e) {
|
|
17476
17476
|
return e.children.length === 0 ? [e] : [e, ...e.children.flatMap((t) => Nu(t))];
|
|
17477
17477
|
}
|
|
17478
|
-
function
|
|
17478
|
+
function Pv(e, t) {
|
|
17479
17479
|
return new RegExp(t ?? Av).test(e);
|
|
17480
17480
|
}
|
|
17481
17481
|
function Fu(e, t) {
|
|
17482
17482
|
return Nu(e).filter(
|
|
17483
|
-
(n) =>
|
|
17483
|
+
(n) => Pv(n.name, t)
|
|
17484
17484
|
);
|
|
17485
17485
|
}
|
|
17486
17486
|
function Du({
|
|
@@ -17602,11 +17602,11 @@ function Xa({
|
|
|
17602
17602
|
}
|
|
17603
17603
|
) });
|
|
17604
17604
|
}
|
|
17605
|
-
const
|
|
17605
|
+
const Cv = console.warn;
|
|
17606
17606
|
function Mv() {
|
|
17607
17607
|
return zt(() => {
|
|
17608
17608
|
console.warn = (e) => {
|
|
17609
|
-
e !== "Cannot call the manual advancement of rafz whilst frameLoop is not set as demand" &&
|
|
17609
|
+
e !== "Cannot call the manual advancement of rafz whilst frameLoop is not set as demand" && Cv(e);
|
|
17610
17610
|
};
|
|
17611
17611
|
}, []), /* @__PURE__ */ o.jsx(o.Fragment, {});
|
|
17612
17612
|
}
|
|
@@ -17630,16 +17630,16 @@ const Ov = un(
|
|
|
17630
17630
|
[a]
|
|
17631
17631
|
), c = () => {
|
|
17632
17632
|
!l.current || l.current.userData.isGhost || (l.current.traverse((h) => {
|
|
17633
|
-
if (h instanceof
|
|
17634
|
-
h.material instanceof
|
|
17633
|
+
if (h instanceof Ce.Mesh) {
|
|
17634
|
+
h.material instanceof Ce.Material && (h.material.colorWrite = !0);
|
|
17635
17635
|
const m = h.clone(), v = h.clone();
|
|
17636
|
-
m.material = new
|
|
17636
|
+
m.material = new Ce.MeshStandardMaterial({
|
|
17637
17637
|
depthTest: !0,
|
|
17638
17638
|
depthWrite: !0,
|
|
17639
17639
|
colorWrite: !1,
|
|
17640
17640
|
polygonOffset: !0,
|
|
17641
17641
|
polygonOffsetFactor: 1
|
|
17642
|
-
}), m.userData.isGhost = !0, v.material = new
|
|
17642
|
+
}), m.userData.isGhost = !0, v.material = new Ce.MeshStandardMaterial({
|
|
17643
17643
|
color: "#D91433",
|
|
17644
17644
|
opacity: 0.3,
|
|
17645
17645
|
depthTest: !0,
|
|
@@ -17655,7 +17655,7 @@ const Ov = un(
|
|
|
17655
17655
|
const h = [];
|
|
17656
17656
|
l.current.traverse((m) => {
|
|
17657
17657
|
var v;
|
|
17658
|
-
m instanceof
|
|
17658
|
+
m instanceof Ce.Mesh && ((v = m.userData) != null && v.isGhost ? h.push(m) : m.material instanceof Ce.Material && (m.material.colorWrite = !0));
|
|
17659
17659
|
}), h.forEach((m) => {
|
|
17660
17660
|
m.parent && m.parent.remove(m);
|
|
17661
17661
|
}), l.current.userData.isGhost = !0;
|
|
@@ -17663,19 +17663,19 @@ const Ov = un(
|
|
|
17663
17663
|
switch (zt(() => {
|
|
17664
17664
|
a ? c() : d();
|
|
17665
17665
|
}, [a]), t) {
|
|
17666
|
-
case "
|
|
17666
|
+
case "UniversalRobots_UR3":
|
|
17667
17667
|
i = Sv;
|
|
17668
17668
|
break;
|
|
17669
17669
|
case "UniversalRobots_UR3e":
|
|
17670
17670
|
i = wv;
|
|
17671
17671
|
break;
|
|
17672
|
-
case "
|
|
17672
|
+
case "UniversalRobots_UR5":
|
|
17673
17673
|
i = jv;
|
|
17674
17674
|
break;
|
|
17675
17675
|
case "UniversalRobots_UR5e":
|
|
17676
17676
|
i = Rv;
|
|
17677
17677
|
break;
|
|
17678
|
-
case "
|
|
17678
|
+
case "UniversalRobots_UR10":
|
|
17679
17679
|
i = bv;
|
|
17680
17680
|
break;
|
|
17681
17681
|
case "UniversalRobots_UR10e":
|
|
@@ -17709,10 +17709,10 @@ const Ov = un(
|
|
|
17709
17709
|
i = Au;
|
|
17710
17710
|
break;
|
|
17711
17711
|
case "FANUC_CRX25iA":
|
|
17712
|
-
i =
|
|
17712
|
+
i = Pu;
|
|
17713
17713
|
break;
|
|
17714
17714
|
case "FANUC_CRX25iAL":
|
|
17715
|
-
i =
|
|
17715
|
+
i = Cu;
|
|
17716
17716
|
break;
|
|
17717
17717
|
case "FANUC_LR_MATE_200ID":
|
|
17718
17718
|
i = _v;
|