@wandelbots/wandelbots-js-react-components 2.26.0-pr.feature-update-to-react-19.361.fd043dc → 2.26.0-pr.feature-update-to-react-19.361.08e5c02
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/robots/RobotAnimator.d.ts.map +1 -1
- package/dist/index.cjs +23 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +704 -709
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/robots/RobotAnimator.tsx +37 -36
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ var Dc = Object.defineProperty;
|
|
|
2
2
|
var Gc = (e, t, r) => t in e ? Dc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var Ir = (e, t, r) => Gc(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
4
|
import * as B from "react";
|
|
5
|
-
import Gl, { forwardRef as Re, useEffect as
|
|
5
|
+
import Gl, { forwardRef as Re, useEffect as Tt, useState as Ht, useRef as yt, useCallback as Jl, Suspense as ql, lazy as Jc } from "react";
|
|
6
6
|
import { Environment as qc, Lightformer as kt, Line as Hl, useGLTF as Hc } from "@react-three/drei";
|
|
7
7
|
import { useThree as Wc } from "@react-three/fiber";
|
|
8
8
|
import * as xe from "three";
|
|
@@ -69,12 +69,12 @@ function Md() {
|
|
|
69
69
|
function e($) {
|
|
70
70
|
if ($ == null) return null;
|
|
71
71
|
if (typeof $ == "function")
|
|
72
|
-
return $.$$typeof ===
|
|
72
|
+
return $.$$typeof === y ? null : $.displayName || $.name || null;
|
|
73
73
|
if (typeof $ == "string") return $;
|
|
74
74
|
switch ($) {
|
|
75
75
|
case h:
|
|
76
76
|
return "Fragment";
|
|
77
|
-
case
|
|
77
|
+
case I:
|
|
78
78
|
return "Profiler";
|
|
79
79
|
case x:
|
|
80
80
|
return "StrictMode";
|
|
@@ -91,9 +91,9 @@ function Md() {
|
|
|
91
91
|
), $.$$typeof) {
|
|
92
92
|
case g:
|
|
93
93
|
return "Portal";
|
|
94
|
-
case F:
|
|
95
|
-
return ($.displayName || "Context") + ".Provider";
|
|
96
94
|
case N:
|
|
95
|
+
return ($.displayName || "Context") + ".Provider";
|
|
96
|
+
case F:
|
|
97
97
|
return ($._context.displayName || "Context") + ".Consumer";
|
|
98
98
|
case z:
|
|
99
99
|
var Q = $.render;
|
|
@@ -172,9 +172,9 @@ function Md() {
|
|
|
172
172
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
173
173
|
)), $ = this.props.ref, $ !== void 0 ? $ : null;
|
|
174
174
|
}
|
|
175
|
-
function c($, Q, oe, we, He, Ee, $t,
|
|
175
|
+
function c($, Q, oe, we, He, Ee, $t, wt) {
|
|
176
176
|
return oe = Ee.ref, $ = {
|
|
177
|
-
$$typeof:
|
|
177
|
+
$$typeof: f,
|
|
178
178
|
type: $,
|
|
179
179
|
key: Q,
|
|
180
180
|
props: Ee,
|
|
@@ -201,10 +201,10 @@ function Md() {
|
|
|
201
201
|
configurable: !1,
|
|
202
202
|
enumerable: !1,
|
|
203
203
|
writable: !0,
|
|
204
|
-
value:
|
|
204
|
+
value: wt
|
|
205
205
|
}), Object.freeze && (Object.freeze($.props), Object.freeze($)), $;
|
|
206
206
|
}
|
|
207
|
-
function d($, Q, oe, we, He, Ee, $t,
|
|
207
|
+
function d($, Q, oe, we, He, Ee, $t, wt) {
|
|
208
208
|
var me = Q.children;
|
|
209
209
|
if (me !== void 0)
|
|
210
210
|
if (we)
|
|
@@ -251,13 +251,13 @@ React keys must be passed directly to JSX without using spread:
|
|
|
251
251
|
o(),
|
|
252
252
|
oe,
|
|
253
253
|
$t,
|
|
254
|
-
|
|
254
|
+
wt
|
|
255
255
|
);
|
|
256
256
|
}
|
|
257
257
|
function p($) {
|
|
258
|
-
typeof $ == "object" && $ !== null && $.$$typeof ===
|
|
258
|
+
typeof $ == "object" && $ !== null && $.$$typeof === f && $._store && ($._store.validated = 1);
|
|
259
259
|
}
|
|
260
|
-
var u = Gl,
|
|
260
|
+
var u = Gl, f = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), F = Symbol.for("react.consumer"), N = Symbol.for("react.context"), z = Symbol.for("react.forward_ref"), D = Symbol.for("react.suspense"), H = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), U = Symbol.for("react.lazy"), k = Symbol.for("react.activity"), y = Symbol.for("react.client.reference"), M = u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, L = Object.prototype.hasOwnProperty, J = Array.isArray, q = console.createTask ? console.createTask : function() {
|
|
261
261
|
return null;
|
|
262
262
|
};
|
|
263
263
|
u = {
|
|
@@ -539,10 +539,10 @@ var Fd = /[A-Z]|^ms/g, Nd = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Ql = function(t) {
|
|
|
539
539
|
case "animationName":
|
|
540
540
|
if (typeof r == "string")
|
|
541
541
|
return r.replace(Nd, function(a, o, n) {
|
|
542
|
-
return
|
|
542
|
+
return _t = {
|
|
543
543
|
name: o,
|
|
544
544
|
styles: n,
|
|
545
|
-
next:
|
|
545
|
+
next: _t
|
|
546
546
|
}, o;
|
|
547
547
|
});
|
|
548
548
|
}
|
|
@@ -560,20 +560,20 @@ function Wa(e, t, r) {
|
|
|
560
560
|
case "object": {
|
|
561
561
|
var o = r;
|
|
562
562
|
if (o.anim === 1)
|
|
563
|
-
return
|
|
563
|
+
return _t = {
|
|
564
564
|
name: o.name,
|
|
565
565
|
styles: o.styles,
|
|
566
|
-
next:
|
|
566
|
+
next: _t
|
|
567
567
|
}, o.name;
|
|
568
568
|
var n = r;
|
|
569
569
|
if (n.styles !== void 0) {
|
|
570
570
|
var s = n.next;
|
|
571
571
|
if (s !== void 0)
|
|
572
572
|
for (; s !== void 0; )
|
|
573
|
-
|
|
573
|
+
_t = {
|
|
574
574
|
name: s.name,
|
|
575
575
|
styles: s.styles,
|
|
576
|
-
next:
|
|
576
|
+
next: _t
|
|
577
577
|
}, s = s.next;
|
|
578
578
|
var l = n.styles + ";";
|
|
579
579
|
return l;
|
|
@@ -613,12 +613,12 @@ function zd(e, t, r) {
|
|
|
613
613
|
}
|
|
614
614
|
return a;
|
|
615
615
|
}
|
|
616
|
-
var ns = /label:\s*([^\s;{]+)\s*(;|$)/g,
|
|
616
|
+
var ns = /label:\s*([^\s;{]+)\s*(;|$)/g, _t;
|
|
617
617
|
function Dd(e, t, r) {
|
|
618
618
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
619
619
|
return e[0];
|
|
620
620
|
var a = !0, o = "";
|
|
621
|
-
|
|
621
|
+
_t = void 0;
|
|
622
622
|
var n = e[0];
|
|
623
623
|
if (n == null || n.raw === void 0)
|
|
624
624
|
a = !1, o += Wa(r, t, n);
|
|
@@ -638,7 +638,7 @@ function Dd(e, t, r) {
|
|
|
638
638
|
return {
|
|
639
639
|
name: p,
|
|
640
640
|
styles: o,
|
|
641
|
-
next:
|
|
641
|
+
next: _t
|
|
642
642
|
};
|
|
643
643
|
}
|
|
644
644
|
/**
|
|
@@ -677,7 +677,7 @@ var is;
|
|
|
677
677
|
function qd() {
|
|
678
678
|
if (is) return ne;
|
|
679
679
|
is = 1;
|
|
680
|
-
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), n = Symbol.for("react.consumer"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), i = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), u = Symbol.for("react.view_transition"),
|
|
680
|
+
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), n = Symbol.for("react.consumer"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), i = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), u = Symbol.for("react.view_transition"), f = Symbol.for("react.client.reference");
|
|
681
681
|
function g(h) {
|
|
682
682
|
if (typeof h == "object" && h !== null) {
|
|
683
683
|
var x = h.$$typeof;
|
|
@@ -734,7 +734,7 @@ function qd() {
|
|
|
734
734
|
}, ne.isSuspenseList = function(h) {
|
|
735
735
|
return g(h) === c;
|
|
736
736
|
}, ne.isValidElementType = function(h) {
|
|
737
|
-
return typeof h == "string" || typeof h == "function" || h === r || h === o || h === a || h === i || h === c || typeof h == "object" && h !== null && (h.$$typeof === p || h.$$typeof === d || h.$$typeof === s || h.$$typeof === n || h.$$typeof === l || h.$$typeof ===
|
|
737
|
+
return typeof h == "string" || typeof h == "function" || h === r || h === o || h === a || h === i || h === c || typeof h == "object" && h !== null && (h.$$typeof === p || h.$$typeof === d || h.$$typeof === s || h.$$typeof === n || h.$$typeof === l || h.$$typeof === f || h.getModuleId !== void 0);
|
|
738
738
|
}, ne.typeOf = g, ne;
|
|
739
739
|
}
|
|
740
740
|
var se = {};
|
|
@@ -761,7 +761,7 @@ function Hd() {
|
|
|
761
761
|
case o:
|
|
762
762
|
case c:
|
|
763
763
|
case d:
|
|
764
|
-
case
|
|
764
|
+
case f:
|
|
765
765
|
return h;
|
|
766
766
|
default:
|
|
767
767
|
switch (h = h && h.$$typeof, h) {
|
|
@@ -781,7 +781,7 @@ function Hd() {
|
|
|
781
781
|
}
|
|
782
782
|
}
|
|
783
783
|
}
|
|
784
|
-
var t = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), s = Symbol.for("react.consumer"), l = Symbol.for("react.context"), i = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), u = Symbol.for("react.lazy"),
|
|
784
|
+
var t = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), s = Symbol.for("react.consumer"), l = Symbol.for("react.context"), i = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), u = Symbol.for("react.lazy"), f = Symbol.for("react.view_transition"), g = Symbol.for("react.client.reference");
|
|
785
785
|
se.ContextConsumer = s, se.ContextProvider = l, se.Element = t, se.ForwardRef = i, se.Fragment = a, se.Lazy = u, se.Memo = p, se.Portal = r, se.Profiler = n, se.StrictMode = o, se.Suspense = c, se.SuspenseList = d, se.isContextConsumer = function(h) {
|
|
786
786
|
return e(h) === s;
|
|
787
787
|
}, se.isContextProvider = function(h) {
|
|
@@ -877,16 +877,16 @@ function Kd(e) {
|
|
|
877
877
|
function i(u) {
|
|
878
878
|
return `@media (max-width:${(typeof t[u] == "number" ? t[u] : u) - a / 100}${r})`;
|
|
879
879
|
}
|
|
880
|
-
function c(u,
|
|
881
|
-
const g = s.indexOf(
|
|
882
|
-
return `@media (min-width:${typeof t[u] == "number" ? t[u] : u}${r}) and (max-width:${(g !== -1 && typeof t[s[g]] == "number" ? t[s[g]] :
|
|
880
|
+
function c(u, f) {
|
|
881
|
+
const g = s.indexOf(f);
|
|
882
|
+
return `@media (min-width:${typeof t[u] == "number" ? t[u] : u}${r}) and (max-width:${(g !== -1 && typeof t[s[g]] == "number" ? t[s[g]] : f) - a / 100}${r})`;
|
|
883
883
|
}
|
|
884
884
|
function d(u) {
|
|
885
885
|
return s.indexOf(u) + 1 < s.length ? c(u, s[s.indexOf(u) + 1]) : l(u);
|
|
886
886
|
}
|
|
887
887
|
function p(u) {
|
|
888
|
-
const
|
|
889
|
-
return
|
|
888
|
+
const f = s.indexOf(u);
|
|
889
|
+
return f === 0 ? l(s[1]) : f === s.length - 1 ? i(s[f]) : c(u, s[s.indexOf(u) + 1]).replace("@media", "@media not all and");
|
|
890
890
|
}
|
|
891
891
|
return {
|
|
892
892
|
keys: s,
|
|
@@ -1664,24 +1664,24 @@ function Gp() {
|
|
|
1664
1664
|
const c = Yl(o.breakpoints), d = Object.keys(c);
|
|
1665
1665
|
let p = c;
|
|
1666
1666
|
return Object.keys(i).forEach((u) => {
|
|
1667
|
-
const
|
|
1668
|
-
if (
|
|
1669
|
-
if (typeof
|
|
1667
|
+
const f = Dp(i[u], o);
|
|
1668
|
+
if (f != null)
|
|
1669
|
+
if (typeof f == "object")
|
|
1670
1670
|
if (n[u])
|
|
1671
|
-
p = Wr(p, e(u,
|
|
1671
|
+
p = Wr(p, e(u, f, o, n));
|
|
1672
1672
|
else {
|
|
1673
1673
|
const g = et({
|
|
1674
1674
|
theme: o
|
|
1675
|
-
},
|
|
1675
|
+
}, f, (h) => ({
|
|
1676
1676
|
[u]: h
|
|
1677
1677
|
}));
|
|
1678
|
-
zp(g,
|
|
1679
|
-
sx:
|
|
1678
|
+
zp(g, f) ? p[u] = t({
|
|
1679
|
+
sx: f,
|
|
1680
1680
|
theme: o
|
|
1681
1681
|
}) : p = Wr(p, g);
|
|
1682
1682
|
}
|
|
1683
1683
|
else
|
|
1684
|
-
p = Wr(p, e(u,
|
|
1684
|
+
p = Wr(p, e(u, f, o, n));
|
|
1685
1685
|
}), Yd(o, Xl(d, p));
|
|
1686
1686
|
}
|
|
1687
1687
|
return Array.isArray(a) ? a.map(s) : s(a);
|
|
@@ -1803,7 +1803,7 @@ function ti(e) {
|
|
|
1803
1803
|
} else for (r in e) e[r] && (a && (a += " "), a += r);
|
|
1804
1804
|
return a;
|
|
1805
1805
|
}
|
|
1806
|
-
function
|
|
1806
|
+
function gt() {
|
|
1807
1807
|
for (var e, t, r = 0, a = "", o = arguments.length; r < o; r++) (e = arguments[r]) && (t = ti(e)) && (a && (a += " "), a += t);
|
|
1808
1808
|
return a;
|
|
1809
1809
|
}
|
|
@@ -1940,20 +1940,20 @@ function si(e = {}) {
|
|
|
1940
1940
|
skipSx: u,
|
|
1941
1941
|
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
1942
1942
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
1943
|
-
overridesResolver:
|
|
1943
|
+
overridesResolver: f = au(li(d)),
|
|
1944
1944
|
...g
|
|
1945
1945
|
} = i, h = p !== void 0 ? p : (
|
|
1946
1946
|
// TODO v6: remove `Root` in the next major release
|
|
1947
1947
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
1948
1948
|
d && d !== "Root" && d !== "root" || !1
|
|
1949
1949
|
), x = u || !1;
|
|
1950
|
-
let
|
|
1951
|
-
d === "Root" || d === "root" ?
|
|
1952
|
-
const
|
|
1953
|
-
shouldForwardProp:
|
|
1950
|
+
let I = No;
|
|
1951
|
+
d === "Root" || d === "root" ? I = a : d ? I = o : iu(l) && (I = void 0);
|
|
1952
|
+
const F = Gd(l, {
|
|
1953
|
+
shouldForwardProp: I,
|
|
1954
1954
|
label: su(c, d),
|
|
1955
1955
|
...g
|
|
1956
|
-
}),
|
|
1956
|
+
}), N = (D) => {
|
|
1957
1957
|
if (D.__emotion_real === D)
|
|
1958
1958
|
return D;
|
|
1959
1959
|
if (typeof D == "function")
|
|
@@ -1968,8 +1968,8 @@ function si(e = {}) {
|
|
|
1968
1968
|
}
|
|
1969
1969
|
return D;
|
|
1970
1970
|
}, z = (...D) => {
|
|
1971
|
-
const H = [], j = D.map(
|
|
1972
|
-
if (H.push(n), c &&
|
|
1971
|
+
const H = [], j = D.map(N), U = [];
|
|
1972
|
+
if (H.push(n), c && f && U.push(function(L) {
|
|
1973
1973
|
var Z, ve;
|
|
1974
1974
|
const q = (ve = (Z = L.theme.components) == null ? void 0 : Z[c]) == null ? void 0 : ve.styleOverrides;
|
|
1975
1975
|
if (!q)
|
|
@@ -1977,7 +1977,7 @@ function si(e = {}) {
|
|
|
1977
1977
|
const re = {};
|
|
1978
1978
|
for (const K in q)
|
|
1979
1979
|
re[K] = La(L, q[K]);
|
|
1980
|
-
return
|
|
1980
|
+
return f(L, re);
|
|
1981
1981
|
}), c && !h && U.push(function(L) {
|
|
1982
1982
|
var re, Z;
|
|
1983
1983
|
const J = L.theme, q = (Z = (re = J == null ? void 0 : J.components) == null ? void 0 : re[c]) == null ? void 0 : Z.variants;
|
|
@@ -1987,10 +1987,10 @@ function si(e = {}) {
|
|
|
1987
1987
|
let q;
|
|
1988
1988
|
q = [...L, ...M, ...J], q.raw = [...L, ...M.raw, ...J], H.unshift(q);
|
|
1989
1989
|
}
|
|
1990
|
-
const k = [...H, ...j, ...U],
|
|
1991
|
-
return l.muiName && (
|
|
1990
|
+
const k = [...H, ...j, ...U], y = F(...k);
|
|
1991
|
+
return l.muiName && (y.muiName = l.muiName), process.env.NODE_ENV !== "production" && (y.displayName = nu(c, d, l)), y;
|
|
1992
1992
|
};
|
|
1993
|
-
return
|
|
1993
|
+
return F.withConfig && (z.withConfig = F.withConfig), z;
|
|
1994
1994
|
};
|
|
1995
1995
|
}
|
|
1996
1996
|
function nu(e, t, r) {
|
|
@@ -2296,67 +2296,67 @@ function Cu(e, t = {}) {
|
|
|
2296
2296
|
varsWithDefaults: p
|
|
2297
2297
|
} = zo(i, t);
|
|
2298
2298
|
let u = p;
|
|
2299
|
-
const
|
|
2299
|
+
const f = {}, {
|
|
2300
2300
|
[l]: g,
|
|
2301
2301
|
...h
|
|
2302
2302
|
} = n;
|
|
2303
|
-
if (Object.entries(h || {}).forEach(([
|
|
2303
|
+
if (Object.entries(h || {}).forEach(([N, z]) => {
|
|
2304
2304
|
const {
|
|
2305
2305
|
vars: D,
|
|
2306
2306
|
css: H,
|
|
2307
2307
|
varsWithDefaults: j
|
|
2308
2308
|
} = zo(z, t);
|
|
2309
|
-
u = Be(u, j),
|
|
2309
|
+
u = Be(u, j), f[N] = {
|
|
2310
2310
|
css: H,
|
|
2311
2311
|
vars: D
|
|
2312
2312
|
};
|
|
2313
2313
|
}), g) {
|
|
2314
2314
|
const {
|
|
2315
|
-
css:
|
|
2315
|
+
css: N,
|
|
2316
2316
|
vars: z,
|
|
2317
2317
|
varsWithDefaults: D
|
|
2318
2318
|
} = zo(g, t);
|
|
2319
|
-
u = Be(u, D),
|
|
2320
|
-
css:
|
|
2319
|
+
u = Be(u, D), f[l] = {
|
|
2320
|
+
css: N,
|
|
2321
2321
|
vars: z
|
|
2322
2322
|
};
|
|
2323
2323
|
}
|
|
2324
|
-
function x(
|
|
2324
|
+
function x(N, z) {
|
|
2325
2325
|
var H, j;
|
|
2326
2326
|
let D = o;
|
|
2327
|
-
if (o === "class" && (D = ".%s"), o === "data" && (D = "[data-%s]"), o != null && o.startsWith("data-") && !o.includes("%s") && (D = `[${o}="%s"]`),
|
|
2327
|
+
if (o === "class" && (D = ".%s"), o === "data" && (D = "[data-%s]"), o != null && o.startsWith("data-") && !o.includes("%s") && (D = `[${o}="%s"]`), N) {
|
|
2328
2328
|
if (D === "media")
|
|
2329
|
-
return e.defaultColorScheme ===
|
|
2330
|
-
[`@media (prefers-color-scheme: ${((j = (H = n[
|
|
2329
|
+
return e.defaultColorScheme === N ? ":root" : {
|
|
2330
|
+
[`@media (prefers-color-scheme: ${((j = (H = n[N]) == null ? void 0 : H.palette) == null ? void 0 : j.mode) || N})`]: {
|
|
2331
2331
|
":root": z
|
|
2332
2332
|
}
|
|
2333
2333
|
};
|
|
2334
2334
|
if (D)
|
|
2335
|
-
return e.defaultColorScheme ===
|
|
2335
|
+
return e.defaultColorScheme === N ? `:root, ${D.replace("%s", String(N))}` : D.replace("%s", String(N));
|
|
2336
2336
|
}
|
|
2337
2337
|
return ":root";
|
|
2338
2338
|
}
|
|
2339
2339
|
return {
|
|
2340
2340
|
vars: u,
|
|
2341
2341
|
generateThemeVars: () => {
|
|
2342
|
-
let
|
|
2342
|
+
let N = {
|
|
2343
2343
|
...c
|
|
2344
2344
|
};
|
|
2345
|
-
return Object.entries(
|
|
2345
|
+
return Object.entries(f).forEach(([, {
|
|
2346
2346
|
vars: z
|
|
2347
2347
|
}]) => {
|
|
2348
|
-
|
|
2349
|
-
}),
|
|
2348
|
+
N = Be(N, z);
|
|
2349
|
+
}), N;
|
|
2350
2350
|
},
|
|
2351
2351
|
generateStyleSheets: () => {
|
|
2352
2352
|
var U, k;
|
|
2353
|
-
const
|
|
2354
|
-
function D(
|
|
2355
|
-
Object.keys(M).length &&
|
|
2356
|
-
[
|
|
2353
|
+
const N = [], z = e.defaultColorScheme || "light";
|
|
2354
|
+
function D(y, M) {
|
|
2355
|
+
Object.keys(M).length && N.push(typeof y == "string" ? {
|
|
2356
|
+
[y]: {
|
|
2357
2357
|
...M
|
|
2358
2358
|
}
|
|
2359
|
-
} :
|
|
2359
|
+
} : y);
|
|
2360
2360
|
}
|
|
2361
2361
|
D(r(void 0, {
|
|
2362
2362
|
...d
|
|
@@ -2364,34 +2364,34 @@ function Cu(e, t = {}) {
|
|
|
2364
2364
|
const {
|
|
2365
2365
|
[z]: H,
|
|
2366
2366
|
...j
|
|
2367
|
-
} =
|
|
2367
|
+
} = f;
|
|
2368
2368
|
if (H) {
|
|
2369
2369
|
const {
|
|
2370
|
-
css:
|
|
2370
|
+
css: y
|
|
2371
2371
|
} = H, M = (k = (U = n[z]) == null ? void 0 : U.palette) == null ? void 0 : k.mode, L = !a && M ? {
|
|
2372
2372
|
colorScheme: M,
|
|
2373
|
-
...
|
|
2373
|
+
...y
|
|
2374
2374
|
} : {
|
|
2375
|
-
...
|
|
2375
|
+
...y
|
|
2376
2376
|
};
|
|
2377
2377
|
D(r(z, {
|
|
2378
2378
|
...L
|
|
2379
2379
|
}), L);
|
|
2380
2380
|
}
|
|
2381
|
-
return Object.entries(j).forEach(([
|
|
2381
|
+
return Object.entries(j).forEach(([y, {
|
|
2382
2382
|
css: M
|
|
2383
2383
|
}]) => {
|
|
2384
2384
|
var q, re;
|
|
2385
|
-
const L = (re = (q = n[
|
|
2385
|
+
const L = (re = (q = n[y]) == null ? void 0 : q.palette) == null ? void 0 : re.mode, J = !a && L ? {
|
|
2386
2386
|
colorScheme: L,
|
|
2387
2387
|
...M
|
|
2388
2388
|
} : {
|
|
2389
2389
|
...M
|
|
2390
2390
|
};
|
|
2391
|
-
D(r(
|
|
2391
|
+
D(r(y, {
|
|
2392
2392
|
...J
|
|
2393
2393
|
}), J);
|
|
2394
|
-
}),
|
|
2394
|
+
}), N;
|
|
2395
2395
|
}
|
|
2396
2396
|
};
|
|
2397
2397
|
}
|
|
@@ -2492,24 +2492,24 @@ function Eu(e = {}) {
|
|
|
2492
2492
|
}, (i) => ia(a, i), {}), n = t(Iu), s = /* @__PURE__ */ B.forwardRef(function(i, c) {
|
|
2493
2493
|
const d = r(i), p = Yp(d), {
|
|
2494
2494
|
component: u = "div",
|
|
2495
|
-
direction:
|
|
2495
|
+
direction: f = "column",
|
|
2496
2496
|
spacing: g = 0,
|
|
2497
2497
|
divider: h,
|
|
2498
2498
|
children: x,
|
|
2499
|
-
className:
|
|
2500
|
-
useFlexGap:
|
|
2501
|
-
...
|
|
2499
|
+
className: I,
|
|
2500
|
+
useFlexGap: F = !1,
|
|
2501
|
+
...N
|
|
2502
2502
|
} = p, z = {
|
|
2503
|
-
direction:
|
|
2503
|
+
direction: f,
|
|
2504
2504
|
spacing: g,
|
|
2505
|
-
useFlexGap:
|
|
2505
|
+
useFlexGap: F
|
|
2506
2506
|
}, D = o();
|
|
2507
2507
|
return /* @__PURE__ */ b.jsx(n, {
|
|
2508
2508
|
as: u,
|
|
2509
2509
|
ownerState: z,
|
|
2510
2510
|
ref: c,
|
|
2511
|
-
className:
|
|
2512
|
-
...
|
|
2511
|
+
className: gt(D.root, I),
|
|
2512
|
+
...N,
|
|
2513
2513
|
children: h ? Au(x, h) : x
|
|
2514
2514
|
});
|
|
2515
2515
|
});
|
|
@@ -2729,8 +2729,8 @@ function Bn(e) {
|
|
|
2729
2729
|
function p(h) {
|
|
2730
2730
|
const x = fs(h, bs.text.primary) >= r ? bs.text.primary : ju.text.primary;
|
|
2731
2731
|
if (process.env.NODE_ENV !== "production") {
|
|
2732
|
-
const
|
|
2733
|
-
|
|
2732
|
+
const I = fs(h, x);
|
|
2733
|
+
I < 3 && console.error([`MUI: The contrast ratio of ${I}:1 for ${x} on ${h}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
2734
2734
|
`));
|
|
2735
2735
|
}
|
|
2736
2736
|
return x;
|
|
@@ -2738,15 +2738,15 @@ function Bn(e) {
|
|
|
2738
2738
|
const u = ({
|
|
2739
2739
|
color: h,
|
|
2740
2740
|
name: x,
|
|
2741
|
-
mainShade:
|
|
2742
|
-
lightShade:
|
|
2743
|
-
darkShade:
|
|
2741
|
+
mainShade: I = 500,
|
|
2742
|
+
lightShade: F = 300,
|
|
2743
|
+
darkShade: N = 700
|
|
2744
2744
|
}) => {
|
|
2745
2745
|
if (h = {
|
|
2746
2746
|
...h
|
|
2747
|
-
}, !h.main && h[
|
|
2747
|
+
}, !h.main && h[I] && (h.main = h[I]), !h.hasOwnProperty("main"))
|
|
2748
2748
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${x ? ` (${x})` : ""} provided to augmentColor(color) is invalid.
|
|
2749
|
-
The color object needs to have a \`main\` property or a \`${
|
|
2749
|
+
The color object needs to have a \`main\` property or a \`${I}\` property.` : It(11, x ? ` (${x})` : "", I));
|
|
2750
2750
|
if (typeof h.main != "string")
|
|
2751
2751
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${x ? ` (${x})` : ""} provided to augmentColor(color) is invalid.
|
|
2752
2752
|
\`color.main\` should be a string, but \`${JSON.stringify(h.main)}\` was provided instead.
|
|
@@ -2762,10 +2762,10 @@ const theme1 = createTheme({ palette: {
|
|
|
2762
2762
|
const theme2 = createTheme({ palette: {
|
|
2763
2763
|
primary: { main: green[500] },
|
|
2764
2764
|
} });` : It(12, x ? ` (${x})` : "", JSON.stringify(h.main)));
|
|
2765
|
-
return Ss(h, "light",
|
|
2765
|
+
return Ss(h, "light", F, a), Ss(h, "dark", N, a), h.contrastText || (h.contrastText = p(h.main)), h;
|
|
2766
2766
|
};
|
|
2767
|
-
let
|
|
2768
|
-
return t === "light" ?
|
|
2767
|
+
let f;
|
|
2768
|
+
return t === "light" ? f = di() : t === "dark" && (f = pi()), process.env.NODE_ENV !== "production" && (f || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), Be({
|
|
2769
2769
|
// A collection of common colors.
|
|
2770
2770
|
common: {
|
|
2771
2771
|
...Zr
|
|
@@ -2820,7 +2820,7 @@ const theme2 = createTheme({ palette: {
|
|
|
2820
2820
|
// E.g., shift from Red 500 to Red 300 or Red 700.
|
|
2821
2821
|
tonalOffset: a,
|
|
2822
2822
|
// The light and dark mode object.
|
|
2823
|
-
...
|
|
2823
|
+
...f
|
|
2824
2824
|
}, o);
|
|
2825
2825
|
}
|
|
2826
2826
|
function Nu(e) {
|
|
@@ -2871,16 +2871,16 @@ function Gu(e, t) {
|
|
|
2871
2871
|
...p
|
|
2872
2872
|
} = typeof t == "function" ? t(e) : t;
|
|
2873
2873
|
process.env.NODE_ENV !== "production" && (typeof a != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof i != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
|
|
2874
|
-
const u = a / 14,
|
|
2874
|
+
const u = a / 14, f = d || ((x) => `${x / i * u}rem`), g = (x, I, F, N, z) => ({
|
|
2875
2875
|
fontFamily: r,
|
|
2876
2876
|
fontWeight: x,
|
|
2877
|
-
fontSize:
|
|
2877
|
+
fontSize: f(I),
|
|
2878
2878
|
// Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
|
|
2879
|
-
lineHeight:
|
|
2879
|
+
lineHeight: F,
|
|
2880
2880
|
// The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
|
|
2881
2881
|
// across font-families can cause issues with the kerning.
|
|
2882
2882
|
...r === xs ? {
|
|
2883
|
-
letterSpacing: `${Du(
|
|
2883
|
+
letterSpacing: `${Du(N / I)}em`
|
|
2884
2884
|
} : {},
|
|
2885
2885
|
...z,
|
|
2886
2886
|
...c
|
|
@@ -2909,7 +2909,7 @@ function Gu(e, t) {
|
|
|
2909
2909
|
};
|
|
2910
2910
|
return Be({
|
|
2911
2911
|
htmlFontSize: i,
|
|
2912
|
-
pxToRem:
|
|
2912
|
+
pxToRem: f,
|
|
2913
2913
|
fontFamily: r,
|
|
2914
2914
|
fontSize: a,
|
|
2915
2915
|
fontWeightLight: o,
|
|
@@ -3049,22 +3049,22 @@ function pn(e = {}, ...t) {
|
|
|
3049
3049
|
...Zu
|
|
3050
3050
|
}
|
|
3051
3051
|
});
|
|
3052
|
-
if (u = Be(u, c), u = t.reduce((
|
|
3053
|
-
const
|
|
3054
|
-
let
|
|
3055
|
-
for (
|
|
3056
|
-
const
|
|
3057
|
-
if (
|
|
3052
|
+
if (u = Be(u, c), u = t.reduce((f, g) => Be(f, g), u), process.env.NODE_ENV !== "production") {
|
|
3053
|
+
const f = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], g = (h, x) => {
|
|
3054
|
+
let I;
|
|
3055
|
+
for (I in h) {
|
|
3056
|
+
const F = h[I];
|
|
3057
|
+
if (f.includes(I) && Object.keys(F).length > 0) {
|
|
3058
3058
|
if (process.env.NODE_ENV !== "production") {
|
|
3059
|
-
const
|
|
3060
|
-
console.error([`MUI: The \`${x}\` component increases the CSS specificity of the \`${
|
|
3059
|
+
const N = ia("", I);
|
|
3060
|
+
console.error([`MUI: The \`${x}\` component increases the CSS specificity of the \`${I}\` internal state.`, "You can not override it like this: ", JSON.stringify(h, null, 2), "", `Instead, you need to use the '&.${N}' syntax:`, JSON.stringify({
|
|
3061
3061
|
root: {
|
|
3062
|
-
[`&.${
|
|
3062
|
+
[`&.${N}`]: F
|
|
3063
3063
|
}
|
|
3064
3064
|
}, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
|
|
3065
3065
|
`));
|
|
3066
3066
|
}
|
|
3067
|
-
h[
|
|
3067
|
+
h[I] = {};
|
|
3068
3068
|
}
|
|
3069
3069
|
}
|
|
3070
3070
|
};
|
|
@@ -3238,52 +3238,52 @@ function dh(e = {}, ...t) {
|
|
|
3238
3238
|
rootSelector: i = ":root",
|
|
3239
3239
|
...c
|
|
3240
3240
|
} = e, d = Object.keys(r)[0], p = a || (r.light && d !== "light" ? "light" : d), u = ch(n), {
|
|
3241
|
-
[p]:
|
|
3241
|
+
[p]: f,
|
|
3242
3242
|
light: g,
|
|
3243
3243
|
dark: h,
|
|
3244
3244
|
...x
|
|
3245
|
-
} = r,
|
|
3245
|
+
} = r, I = {
|
|
3246
3246
|
...x
|
|
3247
3247
|
};
|
|
3248
|
-
let
|
|
3249
|
-
if ((p === "dark" && !("dark" in r) || p === "light" && !("light" in r)) && (
|
|
3248
|
+
let F = f;
|
|
3249
|
+
if ((p === "dark" && !("dark" in r) || p === "light" && !("light" in r)) && (F = !0), !F)
|
|
3250
3250
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${p}\` option is either missing or invalid.` : It(21, p));
|
|
3251
|
-
const
|
|
3252
|
-
g && !
|
|
3251
|
+
const N = Do(I, F, c, p);
|
|
3252
|
+
g && !I.light && Do(I, g, void 0, "light"), h && !I.dark && Do(I, h, void 0, "dark");
|
|
3253
3253
|
let z = {
|
|
3254
3254
|
defaultColorScheme: p,
|
|
3255
|
-
...
|
|
3255
|
+
...N,
|
|
3256
3256
|
cssVarPrefix: n,
|
|
3257
3257
|
colorSchemeSelector: l,
|
|
3258
3258
|
rootSelector: i,
|
|
3259
3259
|
getCssVar: u,
|
|
3260
|
-
colorSchemes:
|
|
3260
|
+
colorSchemes: I,
|
|
3261
3261
|
font: {
|
|
3262
|
-
...Nu(
|
|
3263
|
-
...
|
|
3262
|
+
...Nu(N.typography),
|
|
3263
|
+
...N.font
|
|
3264
3264
|
},
|
|
3265
3265
|
spacing: ih(c.spacing)
|
|
3266
3266
|
};
|
|
3267
3267
|
Object.keys(z.colorSchemes).forEach((k) => {
|
|
3268
|
-
const
|
|
3268
|
+
const y = z.colorSchemes[k].palette, M = (L) => {
|
|
3269
3269
|
const J = L.split("-"), q = J[1], re = J[2];
|
|
3270
|
-
return u(L,
|
|
3270
|
+
return u(L, y[q][re]);
|
|
3271
3271
|
};
|
|
3272
|
-
if (
|
|
3273
|
-
E(
|
|
3274
|
-
const L = wa(
|
|
3275
|
-
E(
|
|
3272
|
+
if (y.mode === "light" && (E(y.common, "background", "#fff"), E(y.common, "onBackground", "#000")), y.mode === "dark" && (E(y.common, "background", "#000"), E(y.common, "onBackground", "#fff")), lh(y, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), y.mode === "light") {
|
|
3273
|
+
E(y.Alert, "errorColor", ie(y.error.light, 0.6)), E(y.Alert, "infoColor", ie(y.info.light, 0.6)), E(y.Alert, "successColor", ie(y.success.light, 0.6)), E(y.Alert, "warningColor", ie(y.warning.light, 0.6)), E(y.Alert, "errorFilledBg", M("palette-error-main")), E(y.Alert, "infoFilledBg", M("palette-info-main")), E(y.Alert, "successFilledBg", M("palette-success-main")), E(y.Alert, "warningFilledBg", M("palette-warning-main")), E(y.Alert, "errorFilledColor", at(() => y.getContrastText(y.error.main))), E(y.Alert, "infoFilledColor", at(() => y.getContrastText(y.info.main))), E(y.Alert, "successFilledColor", at(() => y.getContrastText(y.success.main))), E(y.Alert, "warningFilledColor", at(() => y.getContrastText(y.warning.main))), E(y.Alert, "errorStandardBg", ce(y.error.light, 0.9)), E(y.Alert, "infoStandardBg", ce(y.info.light, 0.9)), E(y.Alert, "successStandardBg", ce(y.success.light, 0.9)), E(y.Alert, "warningStandardBg", ce(y.warning.light, 0.9)), E(y.Alert, "errorIconColor", M("palette-error-main")), E(y.Alert, "infoIconColor", M("palette-info-main")), E(y.Alert, "successIconColor", M("palette-success-main")), E(y.Alert, "warningIconColor", M("palette-warning-main")), E(y.AppBar, "defaultBg", M("palette-grey-100")), E(y.Avatar, "defaultBg", M("palette-grey-400")), E(y.Button, "inheritContainedBg", M("palette-grey-300")), E(y.Button, "inheritContainedHoverBg", M("palette-grey-A100")), E(y.Chip, "defaultBorder", M("palette-grey-400")), E(y.Chip, "defaultAvatarColor", M("palette-grey-700")), E(y.Chip, "defaultIconColor", M("palette-grey-700")), E(y.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), E(y.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), E(y.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), E(y.LinearProgress, "primaryBg", ce(y.primary.main, 0.62)), E(y.LinearProgress, "secondaryBg", ce(y.secondary.main, 0.62)), E(y.LinearProgress, "errorBg", ce(y.error.main, 0.62)), E(y.LinearProgress, "infoBg", ce(y.info.main, 0.62)), E(y.LinearProgress, "successBg", ce(y.success.main, 0.62)), E(y.LinearProgress, "warningBg", ce(y.warning.main, 0.62)), E(y.Skeleton, "bg", `rgba(${M("palette-text-primaryChannel")} / 0.11)`), E(y.Slider, "primaryTrack", ce(y.primary.main, 0.62)), E(y.Slider, "secondaryTrack", ce(y.secondary.main, 0.62)), E(y.Slider, "errorTrack", ce(y.error.main, 0.62)), E(y.Slider, "infoTrack", ce(y.info.main, 0.62)), E(y.Slider, "successTrack", ce(y.success.main, 0.62)), E(y.Slider, "warningTrack", ce(y.warning.main, 0.62));
|
|
3274
|
+
const L = wa(y.background.default, 0.8);
|
|
3275
|
+
E(y.SnackbarContent, "bg", L), E(y.SnackbarContent, "color", at(() => y.getContrastText(L))), E(y.SpeedDialAction, "fabHoverBg", wa(y.background.paper, 0.15)), E(y.StepConnector, "border", M("palette-grey-400")), E(y.StepContent, "border", M("palette-grey-400")), E(y.Switch, "defaultColor", M("palette-common-white")), E(y.Switch, "defaultDisabledColor", M("palette-grey-100")), E(y.Switch, "primaryDisabledColor", ce(y.primary.main, 0.62)), E(y.Switch, "secondaryDisabledColor", ce(y.secondary.main, 0.62)), E(y.Switch, "errorDisabledColor", ce(y.error.main, 0.62)), E(y.Switch, "infoDisabledColor", ce(y.info.main, 0.62)), E(y.Switch, "successDisabledColor", ce(y.success.main, 0.62)), E(y.Switch, "warningDisabledColor", ce(y.warning.main, 0.62)), E(y.TableCell, "border", ce(Oa(y.divider, 1), 0.88)), E(y.Tooltip, "bg", Oa(y.grey[700], 0.92));
|
|
3276
3276
|
}
|
|
3277
|
-
if (
|
|
3278
|
-
E(
|
|
3279
|
-
const L = wa(
|
|
3280
|
-
E(
|
|
3277
|
+
if (y.mode === "dark") {
|
|
3278
|
+
E(y.Alert, "errorColor", ce(y.error.light, 0.6)), E(y.Alert, "infoColor", ce(y.info.light, 0.6)), E(y.Alert, "successColor", ce(y.success.light, 0.6)), E(y.Alert, "warningColor", ce(y.warning.light, 0.6)), E(y.Alert, "errorFilledBg", M("palette-error-dark")), E(y.Alert, "infoFilledBg", M("palette-info-dark")), E(y.Alert, "successFilledBg", M("palette-success-dark")), E(y.Alert, "warningFilledBg", M("palette-warning-dark")), E(y.Alert, "errorFilledColor", at(() => y.getContrastText(y.error.dark))), E(y.Alert, "infoFilledColor", at(() => y.getContrastText(y.info.dark))), E(y.Alert, "successFilledColor", at(() => y.getContrastText(y.success.dark))), E(y.Alert, "warningFilledColor", at(() => y.getContrastText(y.warning.dark))), E(y.Alert, "errorStandardBg", ie(y.error.light, 0.9)), E(y.Alert, "infoStandardBg", ie(y.info.light, 0.9)), E(y.Alert, "successStandardBg", ie(y.success.light, 0.9)), E(y.Alert, "warningStandardBg", ie(y.warning.light, 0.9)), E(y.Alert, "errorIconColor", M("palette-error-main")), E(y.Alert, "infoIconColor", M("palette-info-main")), E(y.Alert, "successIconColor", M("palette-success-main")), E(y.Alert, "warningIconColor", M("palette-warning-main")), E(y.AppBar, "defaultBg", M("palette-grey-900")), E(y.AppBar, "darkBg", M("palette-background-paper")), E(y.AppBar, "darkColor", M("palette-text-primary")), E(y.Avatar, "defaultBg", M("palette-grey-600")), E(y.Button, "inheritContainedBg", M("palette-grey-800")), E(y.Button, "inheritContainedHoverBg", M("palette-grey-700")), E(y.Chip, "defaultBorder", M("palette-grey-700")), E(y.Chip, "defaultAvatarColor", M("palette-grey-300")), E(y.Chip, "defaultIconColor", M("palette-grey-300")), E(y.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), E(y.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), E(y.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), E(y.LinearProgress, "primaryBg", ie(y.primary.main, 0.5)), E(y.LinearProgress, "secondaryBg", ie(y.secondary.main, 0.5)), E(y.LinearProgress, "errorBg", ie(y.error.main, 0.5)), E(y.LinearProgress, "infoBg", ie(y.info.main, 0.5)), E(y.LinearProgress, "successBg", ie(y.success.main, 0.5)), E(y.LinearProgress, "warningBg", ie(y.warning.main, 0.5)), E(y.Skeleton, "bg", `rgba(${M("palette-text-primaryChannel")} / 0.13)`), E(y.Slider, "primaryTrack", ie(y.primary.main, 0.5)), E(y.Slider, "secondaryTrack", ie(y.secondary.main, 0.5)), E(y.Slider, "errorTrack", ie(y.error.main, 0.5)), E(y.Slider, "infoTrack", ie(y.info.main, 0.5)), E(y.Slider, "successTrack", ie(y.success.main, 0.5)), E(y.Slider, "warningTrack", ie(y.warning.main, 0.5));
|
|
3279
|
+
const L = wa(y.background.default, 0.98);
|
|
3280
|
+
E(y.SnackbarContent, "bg", L), E(y.SnackbarContent, "color", at(() => y.getContrastText(L))), E(y.SpeedDialAction, "fabHoverBg", wa(y.background.paper, 0.15)), E(y.StepConnector, "border", M("palette-grey-600")), E(y.StepContent, "border", M("palette-grey-600")), E(y.Switch, "defaultColor", M("palette-grey-300")), E(y.Switch, "defaultDisabledColor", M("palette-grey-600")), E(y.Switch, "primaryDisabledColor", ie(y.primary.main, 0.55)), E(y.Switch, "secondaryDisabledColor", ie(y.secondary.main, 0.55)), E(y.Switch, "errorDisabledColor", ie(y.error.main, 0.55)), E(y.Switch, "infoDisabledColor", ie(y.info.main, 0.55)), E(y.Switch, "successDisabledColor", ie(y.success.main, 0.55)), E(y.Switch, "warningDisabledColor", ie(y.warning.main, 0.55)), E(y.TableCell, "border", ie(Oa(y.divider, 1), 0.68)), E(y.Tooltip, "bg", Oa(y.grey[700], 0.92));
|
|
3281
3281
|
}
|
|
3282
|
-
mt(
|
|
3283
|
-
const J =
|
|
3284
|
-
L !== "tonalOffset" && J && typeof J == "object" && (J.main && E(
|
|
3282
|
+
mt(y.background, "default"), mt(y.background, "paper"), mt(y.common, "background"), mt(y.common, "onBackground"), mt(y, "divider"), Object.keys(y).forEach((L) => {
|
|
3283
|
+
const J = y[L];
|
|
3284
|
+
L !== "tonalOffset" && J && typeof J == "object" && (J.main && E(y[L], "mainChannel", qr(Hr(J.main))), J.light && E(y[L], "lightChannel", qr(Hr(J.light))), J.dark && E(y[L], "darkChannel", qr(Hr(J.dark))), J.contrastText && E(y[L], "contrastTextChannel", qr(Hr(J.contrastText))), L === "text" && (mt(y[L], "primary"), mt(y[L], "secondary")), L === "action" && (J.active && mt(y[L], "active"), J.selected && mt(y[L], "selected")));
|
|
3285
3285
|
});
|
|
3286
|
-
}), z = t.reduce((k,
|
|
3286
|
+
}), z = t.reduce((k, y) => Be(k, y), z);
|
|
3287
3287
|
const D = {
|
|
3288
3288
|
prefix: n,
|
|
3289
3289
|
disableCssColorScheme: o,
|
|
@@ -3294,16 +3294,16 @@ function dh(e = {}, ...t) {
|
|
|
3294
3294
|
generateThemeVars: j,
|
|
3295
3295
|
generateStyleSheets: U
|
|
3296
3296
|
} = Cu(z, D);
|
|
3297
|
-
return z.vars = H, Object.entries(z.colorSchemes[z.defaultColorScheme]).forEach(([k,
|
|
3298
|
-
z[k] =
|
|
3297
|
+
return z.vars = H, Object.entries(z.colorSchemes[z.defaultColorScheme]).forEach(([k, y]) => {
|
|
3298
|
+
z[k] = y;
|
|
3299
3299
|
}), z.generateThemeVars = j, z.generateStyleSheets = U, z.generateSpacing = function() {
|
|
3300
3300
|
return ei(c.spacing, po(this));
|
|
3301
3301
|
}, z.getColorSchemeSelector = Vu(l), z.spacing = z.generateSpacing(), z.shouldSkipGeneratingVar = s, z.unstable_sxConfig = {
|
|
3302
3302
|
...la,
|
|
3303
3303
|
...c == null ? void 0 : c.unstable_sxConfig
|
|
3304
|
-
}, z.unstable_sx = function(
|
|
3304
|
+
}, z.unstable_sx = function(y) {
|
|
3305
3305
|
return Sr({
|
|
3306
|
-
sx:
|
|
3306
|
+
sx: y,
|
|
3307
3307
|
theme: this
|
|
3308
3308
|
});
|
|
3309
3309
|
}, z.toRuntimeSource = ui, z;
|
|
@@ -3366,7 +3366,7 @@ const ph = fi(), uh = "$$material";
|
|
|
3366
3366
|
function Ln(e) {
|
|
3367
3367
|
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
3368
3368
|
}
|
|
3369
|
-
const hh = (e) => Ln(e) && e !== "classes",
|
|
3369
|
+
const hh = (e) => Ln(e) && e !== "classes", St = si({
|
|
3370
3370
|
themeId: uh,
|
|
3371
3371
|
defaultTheme: ph,
|
|
3372
3372
|
rootShouldForwardProp: hh
|
|
@@ -3376,7 +3376,7 @@ function Fn(e) {
|
|
|
3376
3376
|
return Su(e);
|
|
3377
3377
|
}
|
|
3378
3378
|
const fr = Eu({
|
|
3379
|
-
createStyledComponent:
|
|
3379
|
+
createStyledComponent: St("div", {
|
|
3380
3380
|
name: "MuiStack",
|
|
3381
3381
|
slot: "Root"
|
|
3382
3382
|
}),
|
|
@@ -3555,7 +3555,7 @@ const yh = ({
|
|
|
3555
3555
|
...r
|
|
3556
3556
|
}, a) => /* @__PURE__ */ B.createElement("svg", { width: 21, height: 21, viewBox: "0 0 21 21", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: a, "aria-labelledby": t, ...r }, e ? /* @__PURE__ */ B.createElement("title", { id: t }, e) : null, /* @__PURE__ */ B.createElement("g", { id: "JogPlus" }, /* @__PURE__ */ B.createElement("g", { id: "Plus" }, /* @__PURE__ */ B.createElement("path", { d: "M0 13V8H8V13H0Z", fill: "white" }), /* @__PURE__ */ B.createElement("path", { d: "M8 0L13 2.18557e-07L13 21H8L8 0Z", fill: "white" }), /* @__PURE__ */ B.createElement("path", { d: "M13 13V8H21V13H13Z", fill: "white" })))), vh = Re(Sh);
|
|
3557
3557
|
function Nn(e) {
|
|
3558
|
-
|
|
3558
|
+
Tt(e, []);
|
|
3559
3559
|
}
|
|
3560
3560
|
function xh(e) {
|
|
3561
3561
|
Nn(() => Wl(e));
|
|
@@ -3586,16 +3586,16 @@ const Cs = xr(
|
|
|
3586
3586
|
activeJoggingDirection: s,
|
|
3587
3587
|
...l
|
|
3588
3588
|
}) => {
|
|
3589
|
-
var
|
|
3589
|
+
var N, z, D, H, j, U, k;
|
|
3590
3590
|
ca(() => {
|
|
3591
|
-
const
|
|
3592
|
-
M && (M.textContent =
|
|
3591
|
+
const y = r(), M = u.current;
|
|
3592
|
+
M && (M.textContent = y);
|
|
3593
3593
|
});
|
|
3594
3594
|
const i = qe(), [c, d] = Ht(null);
|
|
3595
|
-
|
|
3596
|
-
n &&
|
|
3595
|
+
Tt(() => {
|
|
3596
|
+
n && F();
|
|
3597
3597
|
}, [n]);
|
|
3598
|
-
const p = s || c, u =
|
|
3598
|
+
const p = s || c, u = yt(null);
|
|
3599
3599
|
e || (e = {
|
|
3600
3600
|
color: "#fff",
|
|
3601
3601
|
backgroundColor: "#000",
|
|
@@ -3608,7 +3608,7 @@ const Cs = xr(
|
|
|
3608
3608
|
},
|
|
3609
3609
|
labelColor: "#000"
|
|
3610
3610
|
});
|
|
3611
|
-
const
|
|
3611
|
+
const f = p ? (N = e.buttonBackgroundColor) == null ? void 0 : N.pressed : e.borderColor, g = {
|
|
3612
3612
|
width: "55px",
|
|
3613
3613
|
color: e.color,
|
|
3614
3614
|
path: { fill: e.color },
|
|
@@ -3642,10 +3642,10 @@ const Cs = xr(
|
|
|
3642
3642
|
"svg path": { fill: i.palette.action.disabled }
|
|
3643
3643
|
}
|
|
3644
3644
|
};
|
|
3645
|
-
function
|
|
3646
|
-
n ||
|
|
3645
|
+
function I(y, M) {
|
|
3646
|
+
n || y.button === 0 && (d(M), a(M));
|
|
3647
3647
|
}
|
|
3648
|
-
function
|
|
3648
|
+
function F() {
|
|
3649
3649
|
d(null), o();
|
|
3650
3650
|
}
|
|
3651
3651
|
return /* @__PURE__ */ b.jsxs(fr, { height: "64px", direction: "row", justifyContent: "center", ...l, children: [
|
|
@@ -3654,16 +3654,16 @@ const Cs = xr(
|
|
|
3654
3654
|
{
|
|
3655
3655
|
disabled: n,
|
|
3656
3656
|
disableRipple: !0,
|
|
3657
|
-
onPointerDown: (
|
|
3658
|
-
onPointerUp:
|
|
3659
|
-
onPointerOut:
|
|
3657
|
+
onPointerDown: (y) => I(y, "-"),
|
|
3658
|
+
onPointerUp: F,
|
|
3659
|
+
onPointerOut: F,
|
|
3660
3660
|
size: "large",
|
|
3661
3661
|
sx: {
|
|
3662
3662
|
...p === "-" ? x : h,
|
|
3663
3663
|
borderRadius: "16px 0px 0px 16px",
|
|
3664
|
-
borderLeft: `2px solid ${
|
|
3665
|
-
borderBottom: `2px solid ${
|
|
3666
|
-
borderTop: `2px solid ${
|
|
3664
|
+
borderLeft: `2px solid ${f ?? "#fff"}`,
|
|
3665
|
+
borderBottom: `2px solid ${f ?? "#fff"}`,
|
|
3666
|
+
borderTop: `2px solid ${f ?? "#fff"}`
|
|
3667
3667
|
},
|
|
3668
3668
|
children: /* @__PURE__ */ b.jsx(bh, {})
|
|
3669
3669
|
}
|
|
@@ -3678,8 +3678,8 @@ const Cs = xr(
|
|
|
3678
3678
|
alignItems: "center",
|
|
3679
3679
|
justifyContent: "center",
|
|
3680
3680
|
opacity: "0.9",
|
|
3681
|
-
borderBottom: `2px solid ${
|
|
3682
|
-
borderTop: `2px solid ${
|
|
3681
|
+
borderBottom: `2px solid ${f ?? "#fff"}`,
|
|
3682
|
+
borderTop: `2px solid ${f ?? "#fff"}`
|
|
3683
3683
|
},
|
|
3684
3684
|
children: [
|
|
3685
3685
|
/* @__PURE__ */ b.jsx(
|
|
@@ -3723,16 +3723,16 @@ const Cs = xr(
|
|
|
3723
3723
|
{
|
|
3724
3724
|
disableRipple: !0,
|
|
3725
3725
|
disabled: n,
|
|
3726
|
-
onPointerDown: (
|
|
3727
|
-
onPointerUp:
|
|
3728
|
-
onPointerOut:
|
|
3726
|
+
onPointerDown: (y) => I(y, "+"),
|
|
3727
|
+
onPointerUp: F,
|
|
3728
|
+
onPointerOut: F,
|
|
3729
3729
|
size: "large",
|
|
3730
3730
|
sx: {
|
|
3731
3731
|
...p === "+" ? x : h,
|
|
3732
3732
|
borderRadius: "0px 16px 16px 0px",
|
|
3733
|
-
borderRight: `2px solid ${
|
|
3734
|
-
borderBottom: `2px solid ${
|
|
3735
|
-
borderTop: `2px solid ${
|
|
3733
|
+
borderRight: `2px solid ${f ?? "#fff"}`,
|
|
3734
|
+
borderBottom: `2px solid ${f ?? "#fff"}`,
|
|
3735
|
+
borderTop: `2px solid ${f ?? "#fff"}`
|
|
3736
3736
|
},
|
|
3737
3737
|
children: /* @__PURE__ */ b.jsx(vh, {})
|
|
3738
3738
|
}
|
|
@@ -3754,7 +3754,7 @@ const Ch = (e) => {
|
|
|
3754
3754
|
root: ["root", t !== "inherit" && `color${ke(t)}`, `fontSize${ke(r)}`]
|
|
3755
3755
|
};
|
|
3756
3756
|
return kn(o, wh, a);
|
|
3757
|
-
}, Vh =
|
|
3757
|
+
}, Vh = St("svg", {
|
|
3758
3758
|
name: "MuiSvgIcon",
|
|
3759
3759
|
slot: "Root",
|
|
3760
3760
|
overridesResolver: (e, t) => {
|
|
@@ -3766,7 +3766,7 @@ const Ch = (e) => {
|
|
|
3766
3766
|
})(Wt(({
|
|
3767
3767
|
theme: e
|
|
3768
3768
|
}) => {
|
|
3769
|
-
var t, r, a, o, n, s, l, i, c, d, p, u,
|
|
3769
|
+
var t, r, a, o, n, s, l, i, c, d, p, u, f, g;
|
|
3770
3770
|
return {
|
|
3771
3771
|
userSelect: "none",
|
|
3772
3772
|
width: "1em",
|
|
@@ -3819,13 +3819,13 @@ const Ch = (e) => {
|
|
|
3819
3819
|
},
|
|
3820
3820
|
// TODO v5 deprecate color prop, v6 remove for sx
|
|
3821
3821
|
...Object.entries((e.vars ?? e).palette).filter(([, h]) => h && h.main).map(([h]) => {
|
|
3822
|
-
var x,
|
|
3822
|
+
var x, I;
|
|
3823
3823
|
return {
|
|
3824
3824
|
props: {
|
|
3825
3825
|
color: h
|
|
3826
3826
|
},
|
|
3827
3827
|
style: {
|
|
3828
|
-
color: (
|
|
3828
|
+
color: (I = (x = (e.vars ?? e).palette) == null ? void 0 : x[h]) == null ? void 0 : I.main
|
|
3829
3829
|
}
|
|
3830
3830
|
};
|
|
3831
3831
|
}),
|
|
@@ -3842,7 +3842,7 @@ const Ch = (e) => {
|
|
|
3842
3842
|
color: "disabled"
|
|
3843
3843
|
},
|
|
3844
3844
|
style: {
|
|
3845
|
-
color: (g = (
|
|
3845
|
+
color: (g = (f = (e.vars ?? e).palette) == null ? void 0 : f.action) == null ? void 0 : g.disabled
|
|
3846
3846
|
}
|
|
3847
3847
|
},
|
|
3848
3848
|
{
|
|
@@ -3869,7 +3869,7 @@ const Ch = (e) => {
|
|
|
3869
3869
|
inheritViewBox: d = !1,
|
|
3870
3870
|
titleAccess: p,
|
|
3871
3871
|
viewBox: u = "0 0 24 24",
|
|
3872
|
-
...
|
|
3872
|
+
...f
|
|
3873
3873
|
} = a, g = /* @__PURE__ */ B.isValidElement(o) && o.type === "svg", h = {
|
|
3874
3874
|
...a,
|
|
3875
3875
|
color: s,
|
|
@@ -3881,17 +3881,17 @@ const Ch = (e) => {
|
|
|
3881
3881
|
hasSvgAsChild: g
|
|
3882
3882
|
}, x = {};
|
|
3883
3883
|
d || (x.viewBox = u);
|
|
3884
|
-
const
|
|
3884
|
+
const I = Ch(h);
|
|
3885
3885
|
return /* @__PURE__ */ b.jsxs(Vh, {
|
|
3886
3886
|
as: l,
|
|
3887
|
-
className:
|
|
3887
|
+
className: gt(I.root, n),
|
|
3888
3888
|
focusable: "false",
|
|
3889
3889
|
color: c,
|
|
3890
3890
|
"aria-hidden": p ? void 0 : !0,
|
|
3891
3891
|
role: p ? "img" : void 0,
|
|
3892
3892
|
ref: r,
|
|
3893
3893
|
...x,
|
|
3894
|
-
...
|
|
3894
|
+
...f,
|
|
3895
3895
|
...g && o.props,
|
|
3896
3896
|
ownerState: h,
|
|
3897
3897
|
children: [g ? o.props.children : o, p ? /* @__PURE__ */ b.jsx("title", {
|
|
@@ -4114,12 +4114,12 @@ function Kh(e, t, r) {
|
|
|
4114
4114
|
if (typeof e != "function")
|
|
4115
4115
|
throw new TypeError(Hh);
|
|
4116
4116
|
t = Rs(t) || 0, Dt(r) && (d = !!r.leading, p = "maxWait" in r, n = p ? Wh(Rs(r.maxWait) || 0, t) : n, u = "trailing" in r ? !!r.trailing : u);
|
|
4117
|
-
function
|
|
4117
|
+
function f(H) {
|
|
4118
4118
|
var j = a, U = o;
|
|
4119
4119
|
return a = o = void 0, c = H, s = e.apply(U, j), s;
|
|
4120
4120
|
}
|
|
4121
4121
|
function g(H) {
|
|
4122
|
-
return c = H, l = setTimeout(
|
|
4122
|
+
return c = H, l = setTimeout(I, t), d ? f(H) : s;
|
|
4123
4123
|
}
|
|
4124
4124
|
function h(H) {
|
|
4125
4125
|
var j = H - i, U = H - c, k = t - j;
|
|
@@ -4129,20 +4129,20 @@ function Kh(e, t, r) {
|
|
|
4129
4129
|
var j = H - i, U = H - c;
|
|
4130
4130
|
return i === void 0 || j >= t || j < 0 || p && U >= n;
|
|
4131
4131
|
}
|
|
4132
|
-
function
|
|
4132
|
+
function I() {
|
|
4133
4133
|
var H = Jo();
|
|
4134
4134
|
if (x(H))
|
|
4135
|
-
return
|
|
4136
|
-
l = setTimeout(
|
|
4135
|
+
return F(H);
|
|
4136
|
+
l = setTimeout(I, h(H));
|
|
4137
4137
|
}
|
|
4138
|
-
function
|
|
4139
|
-
return l = void 0, u && a ?
|
|
4138
|
+
function F(H) {
|
|
4139
|
+
return l = void 0, u && a ? f(H) : (a = o = void 0, s);
|
|
4140
4140
|
}
|
|
4141
|
-
function
|
|
4141
|
+
function N() {
|
|
4142
4142
|
l !== void 0 && clearTimeout(l), c = 0, a = i = o = l = void 0;
|
|
4143
4143
|
}
|
|
4144
4144
|
function z() {
|
|
4145
|
-
return l === void 0 ? s :
|
|
4145
|
+
return l === void 0 ? s : F(Jo());
|
|
4146
4146
|
}
|
|
4147
4147
|
function D() {
|
|
4148
4148
|
var H = Jo(), j = x(H);
|
|
@@ -4150,11 +4150,11 @@ function Kh(e, t, r) {
|
|
|
4150
4150
|
if (l === void 0)
|
|
4151
4151
|
return g(i);
|
|
4152
4152
|
if (p)
|
|
4153
|
-
return clearTimeout(l), l = setTimeout(
|
|
4153
|
+
return clearTimeout(l), l = setTimeout(I, t), f(i);
|
|
4154
4154
|
}
|
|
4155
|
-
return l === void 0 && (l = setTimeout(
|
|
4155
|
+
return l === void 0 && (l = setTimeout(I, t)), s;
|
|
4156
4156
|
}
|
|
4157
|
-
return D.cancel =
|
|
4157
|
+
return D.cancel = N, D.flush = z, D;
|
|
4158
4158
|
}
|
|
4159
4159
|
var Yh = "Expected a function";
|
|
4160
4160
|
function Xh(e, t, r) {
|
|
@@ -4178,9 +4178,9 @@ const Zh = xr(
|
|
|
4178
4178
|
disabled: n,
|
|
4179
4179
|
...s
|
|
4180
4180
|
}) => {
|
|
4181
|
-
var
|
|
4181
|
+
var N, z, D, H, j, U, k, y, M, L, J, q, re, Z, ve;
|
|
4182
4182
|
const { t: l } = dt(), [i, c] = Ht(), d = qe(), p = {
|
|
4183
|
-
background: (
|
|
4183
|
+
background: (N = d.palette.backgroundPaperElevation) == null ? void 0 : N[4],
|
|
4184
4184
|
color: (z = d.palette.backgroundPaperElevation) == null ? void 0 : z[11]
|
|
4185
4185
|
}, u = no(() => ({
|
|
4186
4186
|
activeJoggingDir: null,
|
|
@@ -4190,10 +4190,10 @@ const Zh = xr(
|
|
|
4190
4190
|
stopJogging() {
|
|
4191
4191
|
this.activeJoggingDir = null, t();
|
|
4192
4192
|
}
|
|
4193
|
-
})),
|
|
4193
|
+
})), f = Xh(() => {
|
|
4194
4194
|
c(o());
|
|
4195
4195
|
}, 50);
|
|
4196
|
-
ca(
|
|
4196
|
+
ca(f);
|
|
4197
4197
|
function g(K) {
|
|
4198
4198
|
K.button === 0 && u.startJogging("-");
|
|
4199
4199
|
}
|
|
@@ -4203,10 +4203,10 @@ const Zh = xr(
|
|
|
4203
4203
|
function x(K) {
|
|
4204
4204
|
u.stopJogging();
|
|
4205
4205
|
}
|
|
4206
|
-
function
|
|
4206
|
+
function I(K) {
|
|
4207
4207
|
u.stopJogging();
|
|
4208
4208
|
}
|
|
4209
|
-
function
|
|
4209
|
+
function F(K, ge = 1) {
|
|
4210
4210
|
if (K === void 0 || isNaN(K)) return "";
|
|
4211
4211
|
const $ = l("General.degree.variable", {
|
|
4212
4212
|
amount: K.toFixed(ge)
|
|
@@ -4250,7 +4250,7 @@ const Zh = xr(
|
|
|
4250
4250
|
{
|
|
4251
4251
|
onPointerDown: g,
|
|
4252
4252
|
onPointerUp: x,
|
|
4253
|
-
onPointerOut:
|
|
4253
|
+
onPointerOut: I,
|
|
4254
4254
|
disabled: n,
|
|
4255
4255
|
disableRipple: !0,
|
|
4256
4256
|
sx: {
|
|
@@ -4262,7 +4262,7 @@ const Zh = xr(
|
|
|
4262
4262
|
{
|
|
4263
4263
|
sx: {
|
|
4264
4264
|
pointerEvents: "none",
|
|
4265
|
-
color: (M = (
|
|
4265
|
+
color: (M = (y = (k = (U = d.componentsExt) == null ? void 0 : U.JoggingPanel) == null ? void 0 : k.JoggingJoint) == null ? void 0 : y.Joint) == null ? void 0 : M.arrowColor
|
|
4266
4266
|
}
|
|
4267
4267
|
}
|
|
4268
4268
|
)
|
|
@@ -4295,7 +4295,7 @@ const Zh = xr(
|
|
|
4295
4295
|
top: "5px",
|
|
4296
4296
|
color: n ? d.palette.action.disabled : d.palette.text.primary
|
|
4297
4297
|
},
|
|
4298
|
-
children:
|
|
4298
|
+
children: F(i)
|
|
4299
4299
|
}
|
|
4300
4300
|
),
|
|
4301
4301
|
/* @__PURE__ */ b.jsx(
|
|
@@ -4330,11 +4330,11 @@ const Zh = xr(
|
|
|
4330
4330
|
marks: r !== void 0 && a !== void 0 && [
|
|
4331
4331
|
{
|
|
4332
4332
|
value: r,
|
|
4333
|
-
label:
|
|
4333
|
+
label: F(r, 0)
|
|
4334
4334
|
},
|
|
4335
4335
|
{
|
|
4336
4336
|
value: a,
|
|
4337
|
-
label:
|
|
4337
|
+
label: F(a, 0)
|
|
4338
4338
|
}
|
|
4339
4339
|
]
|
|
4340
4340
|
}
|
|
@@ -4347,7 +4347,7 @@ const Zh = xr(
|
|
|
4347
4347
|
{
|
|
4348
4348
|
onPointerDown: h,
|
|
4349
4349
|
onPointerUp: x,
|
|
4350
|
-
onPointerOut:
|
|
4350
|
+
onPointerOut: I,
|
|
4351
4351
|
disabled: n,
|
|
4352
4352
|
disableRipple: !0,
|
|
4353
4353
|
sx: {
|
|
@@ -4446,7 +4446,7 @@ var Om = xm;
|
|
|
4446
4446
|
function wm(e) {
|
|
4447
4447
|
return this.__data__.has(e);
|
|
4448
4448
|
}
|
|
4449
|
-
var Cm = wm, Vm = typeof global == "object" && global && global.Object === Object && global, Oi = Vm, Pm = typeof self == "object" && self && self.Object === Object && self, Rm = Oi || Pm || Function("return this")(),
|
|
4449
|
+
var Cm = wm, Vm = typeof global == "object" && global && global.Object === Object && global, Oi = Vm, Pm = typeof self == "object" && self && self.Object === Object && self, Rm = Oi || Pm || Function("return this")(), vt = Rm, _m = vt.Symbol, vr = _m, wi = Object.prototype, Am = wi.hasOwnProperty, Tm = wi.toString, Br = vr ? vr.toStringTag : void 0;
|
|
4450
4450
|
function Im(e) {
|
|
4451
4451
|
var t = Am.call(e, Br), r = e[Br];
|
|
4452
4452
|
try {
|
|
@@ -4472,7 +4472,7 @@ function Gm(e) {
|
|
|
4472
4472
|
var t = da(e);
|
|
4473
4473
|
return t == Nm || t == zm || t == Fm || t == Dm;
|
|
4474
4474
|
}
|
|
4475
|
-
var Ci = Gm, Jm =
|
|
4475
|
+
var Ci = Gm, Jm = vt["__core-js_shared__"], qo = Jm, As = function() {
|
|
4476
4476
|
var e = /[^.]+$/.exec(qo && qo.keys && qo.keys.IE_PROTO || "");
|
|
4477
4477
|
return e ? "Symbol(src)_1." + e : "";
|
|
4478
4478
|
}();
|
|
@@ -4511,7 +4511,7 @@ function cf(e, t) {
|
|
|
4511
4511
|
var r = lf(e, t);
|
|
4512
4512
|
return nf(r) ? r : void 0;
|
|
4513
4513
|
}
|
|
4514
|
-
var wr = cf, df = wr(
|
|
4514
|
+
var wr = cf, df = wr(vt, "Map"), ea = df, pf = wr(Object, "create"), ta = pf;
|
|
4515
4515
|
function uf() {
|
|
4516
4516
|
this.__data__ = ta ? ta(null) : {}, this.size = 0;
|
|
4517
4517
|
}
|
|
@@ -4657,7 +4657,7 @@ function ry(e, t, r, a, o, n) {
|
|
|
4657
4657
|
var c = n.get(e), d = n.get(t);
|
|
4658
4658
|
if (c && d)
|
|
4659
4659
|
return c == t && d == e;
|
|
4660
|
-
var p = -1, u = !0,
|
|
4660
|
+
var p = -1, u = !0, f = r & ty ? new Qf() : void 0;
|
|
4661
4661
|
for (n.set(e, t), n.set(t, e); ++p < l; ) {
|
|
4662
4662
|
var g = e[p], h = t[p];
|
|
4663
4663
|
if (a)
|
|
@@ -4668,10 +4668,10 @@ function ry(e, t, r, a, o, n) {
|
|
|
4668
4668
|
u = !1;
|
|
4669
4669
|
break;
|
|
4670
4670
|
}
|
|
4671
|
-
if (
|
|
4672
|
-
if (!Yf(t, function(
|
|
4673
|
-
if (!Zf(
|
|
4674
|
-
return
|
|
4671
|
+
if (f) {
|
|
4672
|
+
if (!Yf(t, function(I, F) {
|
|
4673
|
+
if (!Zf(f, F) && (g === I || o(g, I, r, a, n)))
|
|
4674
|
+
return f.push(F);
|
|
4675
4675
|
})) {
|
|
4676
4676
|
u = !1;
|
|
4677
4677
|
break;
|
|
@@ -4683,7 +4683,7 @@ function ry(e, t, r, a, o, n) {
|
|
|
4683
4683
|
}
|
|
4684
4684
|
return n.delete(e), n.delete(t), u;
|
|
4685
4685
|
}
|
|
4686
|
-
var Pi = ry, ay =
|
|
4686
|
+
var Pi = ry, ay = vt.Uint8Array, Is = ay;
|
|
4687
4687
|
function oy(e) {
|
|
4688
4688
|
var t = -1, r = Array(e.size);
|
|
4689
4689
|
return e.forEach(function(a, o) {
|
|
@@ -4782,7 +4782,7 @@ var js = Fy, Ri = Object.prototype, Ny = Ri.hasOwnProperty, zy = Ri.propertyIsEn
|
|
|
4782
4782
|
function Jy() {
|
|
4783
4783
|
return !1;
|
|
4784
4784
|
}
|
|
4785
|
-
var qy = Jy, _i = typeof exports == "object" && exports && !exports.nodeType && exports, $s = _i && typeof module == "object" && module && !module.nodeType && module, Hy = $s && $s.exports === _i, Us = Hy ?
|
|
4785
|
+
var qy = Jy, _i = typeof exports == "object" && exports && !exports.nodeType && exports, $s = _i && typeof module == "object" && module && !module.nodeType && module, Hy = $s && $s.exports === _i, Us = Hy ? vt.Buffer : void 0, Wy = Us ? Us.isBuffer : void 0, Qy = Wy || qy, un = Qy, Ky = 9007199254740991, Yy = /^(?:0|[1-9]\d*)$/;
|
|
4786
4786
|
function Xy(e, t) {
|
|
4787
4787
|
var r = typeof e;
|
|
4788
4788
|
return t = t ?? Ky, !!t && (r == "number" || r != "symbol" && Yy.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
@@ -4862,17 +4862,17 @@ function rb(e, t, r, a, o, n) {
|
|
|
4862
4862
|
if (!(s ? u in t : tb.call(t, u)))
|
|
4863
4863
|
return !1;
|
|
4864
4864
|
}
|
|
4865
|
-
var
|
|
4866
|
-
if (
|
|
4867
|
-
return
|
|
4865
|
+
var f = n.get(e), g = n.get(t);
|
|
4866
|
+
if (f && g)
|
|
4867
|
+
return f == t && g == e;
|
|
4868
4868
|
var h = !0;
|
|
4869
4869
|
n.set(e, t), n.set(t, e);
|
|
4870
4870
|
for (var x = s; ++p < i; ) {
|
|
4871
4871
|
u = l[p];
|
|
4872
|
-
var
|
|
4872
|
+
var I = e[u], F = t[u];
|
|
4873
4873
|
if (a)
|
|
4874
|
-
var
|
|
4875
|
-
if (!(
|
|
4874
|
+
var N = s ? a(F, I, u, t, e, n) : a(I, F, u, e, t, n);
|
|
4875
|
+
if (!(N === void 0 ? I === F || o(I, F, r, a, n) : N)) {
|
|
4876
4876
|
h = !1;
|
|
4877
4877
|
break;
|
|
4878
4878
|
}
|
|
@@ -4884,7 +4884,7 @@ function rb(e, t, r, a, o, n) {
|
|
|
4884
4884
|
}
|
|
4885
4885
|
return n.delete(e), n.delete(t), h;
|
|
4886
4886
|
}
|
|
4887
|
-
var ab = rb, ob = wr(
|
|
4887
|
+
var ab = rb, ob = wr(vt, "DataView"), hn = ob, nb = wr(vt, "Promise"), mn = nb, sb = wr(vt, "Set"), fn = sb, lb = wr(vt, "WeakMap"), yn = lb, Fs = "[object Map]", ib = "[object Object]", Ns = "[object Promise]", zs = "[object Set]", Ds = "[object WeakMap]", Gs = "[object DataView]", cb = Kt(hn), db = Kt(ea), pb = Kt(mn), ub = Kt(fn), hb = Kt(yn), Lt = da;
|
|
4888
4888
|
(hn && Lt(new hn(new ArrayBuffer(1))) != Gs || ea && Lt(new ea()) != Fs || mn && Lt(mn.resolve()) != Ns || fn && Lt(new fn()) != zs || yn && Lt(new yn()) != Ds) && (Lt = function(e) {
|
|
4889
4889
|
var t = da(e), r = t == ib ? e.constructor : void 0, a = r ? Kt(r) : "";
|
|
4890
4890
|
if (a)
|
|
@@ -4915,9 +4915,9 @@ function yb(e, t, r, a, o, n) {
|
|
|
4915
4915
|
if (u && !d)
|
|
4916
4916
|
return n || (n = new Ho()), s || Ii(e) ? Pi(e, t, r, a, o, n) : Oy(e, t, i, r, a, o, n);
|
|
4917
4917
|
if (!(r & mb)) {
|
|
4918
|
-
var
|
|
4919
|
-
if (
|
|
4920
|
-
var h =
|
|
4918
|
+
var f = d && Ws.call(e, "__wrapped__"), g = p && Ws.call(t, "__wrapped__");
|
|
4919
|
+
if (f || g) {
|
|
4920
|
+
var h = f ? e.value() : e, x = g ? t.value() : t;
|
|
4921
4921
|
return n || (n = new Ho()), o(h, x, r, a, n);
|
|
4922
4922
|
}
|
|
4923
4923
|
}
|
|
@@ -5438,7 +5438,7 @@ var Pb = function() {
|
|
|
5438
5438
|
return this.available ? window.localStorage.getItem(e) : null;
|
|
5439
5439
|
}
|
|
5440
5440
|
}, Ko = new $b();
|
|
5441
|
-
function
|
|
5441
|
+
function At(e) {
|
|
5442
5442
|
try {
|
|
5443
5443
|
return JSON.parse(e);
|
|
5444
5444
|
} catch {
|
|
@@ -5663,7 +5663,7 @@ const S0 = (e) => {
|
|
|
5663
5663
|
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
|
|
5664
5664
|
typeof setImmediate == "function",
|
|
5665
5665
|
Je(Ft.postMessage)
|
|
5666
|
-
), O0 = typeof queueMicrotask < "u" ? queueMicrotask.bind(Ft) : typeof process < "u" && process.nextTick || Ni,
|
|
5666
|
+
), O0 = typeof queueMicrotask < "u" ? queueMicrotask.bind(Ft) : typeof process < "u" && process.nextTick || Ni, T = {
|
|
5667
5667
|
isArray: Rr,
|
|
5668
5668
|
isArrayBuffer: Ui,
|
|
5669
5669
|
isBuffer: Fb,
|
|
@@ -5724,7 +5724,7 @@ const S0 = (e) => {
|
|
|
5724
5724
|
function te(e, t, r, a, o) {
|
|
5725
5725
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), r && (this.config = r), a && (this.request = a), o && (this.response = o, this.status = o.status ? o.status : null);
|
|
5726
5726
|
}
|
|
5727
|
-
|
|
5727
|
+
T.inherits(te, Error, {
|
|
5728
5728
|
toJSON: function() {
|
|
5729
5729
|
return {
|
|
5730
5730
|
// Standard
|
|
@@ -5739,7 +5739,7 @@ I.inherits(te, Error, {
|
|
|
5739
5739
|
columnNumber: this.columnNumber,
|
|
5740
5740
|
stack: this.stack,
|
|
5741
5741
|
// Axios
|
|
5742
|
-
config:
|
|
5742
|
+
config: T.toJSONObject(this.config),
|
|
5743
5743
|
code: this.code,
|
|
5744
5744
|
status: this.status
|
|
5745
5745
|
};
|
|
@@ -5767,16 +5767,16 @@ Object.defineProperties(te, Di);
|
|
|
5767
5767
|
Object.defineProperty(zi, "isAxiosError", { value: !0 });
|
|
5768
5768
|
te.from = (e, t, r, a, o, n) => {
|
|
5769
5769
|
const s = Object.create(zi);
|
|
5770
|
-
return
|
|
5770
|
+
return T.toFlatObject(e, s, function(i) {
|
|
5771
5771
|
return i !== Error.prototype;
|
|
5772
5772
|
}, (l) => l !== "isAxiosError"), te.call(s, e.message, t, r, a, o), s.cause = e, s.name = e.name, n && Object.assign(s, n), s;
|
|
5773
5773
|
};
|
|
5774
5774
|
const w0 = null;
|
|
5775
5775
|
function vn(e) {
|
|
5776
|
-
return
|
|
5776
|
+
return T.isPlainObject(e) || T.isArray(e);
|
|
5777
5777
|
}
|
|
5778
5778
|
function Gi(e) {
|
|
5779
|
-
return
|
|
5779
|
+
return T.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
5780
5780
|
}
|
|
5781
5781
|
function Xs(e, t, r) {
|
|
5782
5782
|
return e ? e.concat(t).map(function(o, n) {
|
|
@@ -5784,43 +5784,43 @@ function Xs(e, t, r) {
|
|
|
5784
5784
|
}).join(r ? "." : "") : t;
|
|
5785
5785
|
}
|
|
5786
5786
|
function C0(e) {
|
|
5787
|
-
return
|
|
5787
|
+
return T.isArray(e) && !e.some(vn);
|
|
5788
5788
|
}
|
|
5789
|
-
const V0 =
|
|
5789
|
+
const V0 = T.toFlatObject(T, {}, null, function(t) {
|
|
5790
5790
|
return /^is[A-Z]/.test(t);
|
|
5791
5791
|
});
|
|
5792
5792
|
function Ro(e, t, r) {
|
|
5793
|
-
if (!
|
|
5793
|
+
if (!T.isObject(e))
|
|
5794
5794
|
throw new TypeError("target must be an object");
|
|
5795
|
-
t = t || new FormData(), r =
|
|
5795
|
+
t = t || new FormData(), r = T.toFlatObject(r, {
|
|
5796
5796
|
metaTokens: !0,
|
|
5797
5797
|
dots: !1,
|
|
5798
5798
|
indexes: !1
|
|
5799
5799
|
}, !1, function(h, x) {
|
|
5800
|
-
return !
|
|
5800
|
+
return !T.isUndefined(x[h]);
|
|
5801
5801
|
});
|
|
5802
|
-
const a = r.metaTokens, o = r.visitor || d, n = r.dots, s = r.indexes, i = (r.Blob || typeof Blob < "u" && Blob) &&
|
|
5803
|
-
if (!
|
|
5802
|
+
const a = r.metaTokens, o = r.visitor || d, n = r.dots, s = r.indexes, i = (r.Blob || typeof Blob < "u" && Blob) && T.isSpecCompliantForm(t);
|
|
5803
|
+
if (!T.isFunction(o))
|
|
5804
5804
|
throw new TypeError("visitor must be a function");
|
|
5805
5805
|
function c(g) {
|
|
5806
5806
|
if (g === null) return "";
|
|
5807
|
-
if (
|
|
5807
|
+
if (T.isDate(g))
|
|
5808
5808
|
return g.toISOString();
|
|
5809
|
-
if (!i &&
|
|
5809
|
+
if (!i && T.isBlob(g))
|
|
5810
5810
|
throw new te("Blob is not supported. Use a Buffer instead.");
|
|
5811
|
-
return
|
|
5811
|
+
return T.isArrayBuffer(g) || T.isTypedArray(g) ? i && typeof Blob == "function" ? new Blob([g]) : Buffer.from(g) : g;
|
|
5812
5812
|
}
|
|
5813
5813
|
function d(g, h, x) {
|
|
5814
|
-
let
|
|
5814
|
+
let I = g;
|
|
5815
5815
|
if (g && !x && typeof g == "object") {
|
|
5816
|
-
if (
|
|
5816
|
+
if (T.endsWith(h, "{}"))
|
|
5817
5817
|
h = a ? h : h.slice(0, -2), g = JSON.stringify(g);
|
|
5818
|
-
else if (
|
|
5819
|
-
return h = Gi(h),
|
|
5820
|
-
!(
|
|
5818
|
+
else if (T.isArray(g) && C0(g) || (T.isFileList(g) || T.endsWith(h, "[]")) && (I = T.toArray(g)))
|
|
5819
|
+
return h = Gi(h), I.forEach(function(N, z) {
|
|
5820
|
+
!(T.isUndefined(N) || N === null) && t.append(
|
|
5821
5821
|
// eslint-disable-next-line no-nested-ternary
|
|
5822
5822
|
s === !0 ? Xs([h], z, n) : s === null ? h : h + "[]",
|
|
5823
|
-
c(
|
|
5823
|
+
c(N)
|
|
5824
5824
|
);
|
|
5825
5825
|
}), !1;
|
|
5826
5826
|
}
|
|
@@ -5831,24 +5831,24 @@ function Ro(e, t, r) {
|
|
|
5831
5831
|
convertValue: c,
|
|
5832
5832
|
isVisitable: vn
|
|
5833
5833
|
});
|
|
5834
|
-
function
|
|
5835
|
-
if (!
|
|
5834
|
+
function f(g, h) {
|
|
5835
|
+
if (!T.isUndefined(g)) {
|
|
5836
5836
|
if (p.indexOf(g) !== -1)
|
|
5837
5837
|
throw Error("Circular reference detected in " + h.join("."));
|
|
5838
|
-
p.push(g),
|
|
5839
|
-
(!(
|
|
5838
|
+
p.push(g), T.forEach(g, function(I, F) {
|
|
5839
|
+
(!(T.isUndefined(I) || I === null) && o.call(
|
|
5840
5840
|
t,
|
|
5841
|
-
|
|
5842
|
-
|
|
5841
|
+
I,
|
|
5842
|
+
T.isString(F) ? F.trim() : F,
|
|
5843
5843
|
h,
|
|
5844
5844
|
u
|
|
5845
|
-
)) === !0 &&
|
|
5845
|
+
)) === !0 && f(I, h ? h.concat(F) : [F]);
|
|
5846
5846
|
}), p.pop();
|
|
5847
5847
|
}
|
|
5848
5848
|
}
|
|
5849
|
-
if (!
|
|
5849
|
+
if (!T.isObject(e))
|
|
5850
5850
|
throw new TypeError("data must be an object");
|
|
5851
|
-
return
|
|
5851
|
+
return f(e), t;
|
|
5852
5852
|
}
|
|
5853
5853
|
function Zs(e) {
|
|
5854
5854
|
const t = {
|
|
@@ -5886,12 +5886,12 @@ function qi(e, t, r) {
|
|
|
5886
5886
|
if (!t)
|
|
5887
5887
|
return e;
|
|
5888
5888
|
const a = r && r.encode || P0;
|
|
5889
|
-
|
|
5889
|
+
T.isFunction(r) && (r = {
|
|
5890
5890
|
serialize: r
|
|
5891
5891
|
});
|
|
5892
5892
|
const o = r && r.serialize;
|
|
5893
5893
|
let n;
|
|
5894
|
-
if (o ? n = o(t, r) : n =
|
|
5894
|
+
if (o ? n = o(t, r) : n = T.isURLSearchParams(t) ? t.toString() : new Dn(t, r).toString(a), n) {
|
|
5895
5895
|
const s = e.indexOf("#");
|
|
5896
5896
|
s !== -1 && (e = e.slice(0, s)), e += (e.indexOf("?") === -1 ? "?" : "&") + n;
|
|
5897
5897
|
}
|
|
@@ -5946,7 +5946,7 @@ class el {
|
|
|
5946
5946
|
* @returns {void}
|
|
5947
5947
|
*/
|
|
5948
5948
|
forEach(t) {
|
|
5949
|
-
|
|
5949
|
+
T.forEach(this.handlers, function(a) {
|
|
5950
5950
|
a !== null && t(a);
|
|
5951
5951
|
});
|
|
5952
5952
|
}
|
|
@@ -5978,12 +5978,12 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", M0
|
|
|
5978
5978
|
function $0(e, t) {
|
|
5979
5979
|
return Ro(e, new Te.classes.URLSearchParams(), Object.assign({
|
|
5980
5980
|
visitor: function(r, a, o, n) {
|
|
5981
|
-
return Te.isNode &&
|
|
5981
|
+
return Te.isNode && T.isBuffer(r) ? (this.append(a, r.toString("base64")), !1) : n.defaultVisitor.apply(this, arguments);
|
|
5982
5982
|
}
|
|
5983
5983
|
}, t));
|
|
5984
5984
|
}
|
|
5985
5985
|
function U0(e) {
|
|
5986
|
-
return
|
|
5986
|
+
return T.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
5987
5987
|
}
|
|
5988
5988
|
function k0(e) {
|
|
5989
5989
|
const t = {}, r = Object.keys(e);
|
|
@@ -5999,20 +5999,20 @@ function Wi(e) {
|
|
|
5999
5999
|
let s = r[n++];
|
|
6000
6000
|
if (s === "__proto__") return !0;
|
|
6001
6001
|
const l = Number.isFinite(+s), i = n >= r.length;
|
|
6002
|
-
return s = !s &&
|
|
6002
|
+
return s = !s && T.isArray(o) ? o.length : s, i ? (T.hasOwnProp(o, s) ? o[s] = [o[s], a] : o[s] = a, !l) : ((!o[s] || !T.isObject(o[s])) && (o[s] = []), t(r, a, o[s], n) && T.isArray(o[s]) && (o[s] = k0(o[s])), !l);
|
|
6003
6003
|
}
|
|
6004
|
-
if (
|
|
6004
|
+
if (T.isFormData(e) && T.isFunction(e.entries)) {
|
|
6005
6005
|
const r = {};
|
|
6006
|
-
return
|
|
6006
|
+
return T.forEachEntry(e, (a, o) => {
|
|
6007
6007
|
t(U0(a), o, r, 0);
|
|
6008
6008
|
}), r;
|
|
6009
6009
|
}
|
|
6010
6010
|
return null;
|
|
6011
6011
|
}
|
|
6012
6012
|
function B0(e, t, r) {
|
|
6013
|
-
if (
|
|
6013
|
+
if (T.isString(e))
|
|
6014
6014
|
try {
|
|
6015
|
-
return (t || JSON.parse)(e),
|
|
6015
|
+
return (t || JSON.parse)(e), T.trim(e);
|
|
6016
6016
|
} catch (a) {
|
|
6017
6017
|
if (a.name !== "SyntaxError")
|
|
6018
6018
|
throw a;
|
|
@@ -6023,20 +6023,20 @@ const ua = {
|
|
|
6023
6023
|
transitional: Hi,
|
|
6024
6024
|
adapter: ["xhr", "http", "fetch"],
|
|
6025
6025
|
transformRequest: [function(t, r) {
|
|
6026
|
-
const a = r.getContentType() || "", o = a.indexOf("application/json") > -1, n =
|
|
6027
|
-
if (n &&
|
|
6026
|
+
const a = r.getContentType() || "", o = a.indexOf("application/json") > -1, n = T.isObject(t);
|
|
6027
|
+
if (n && T.isHTMLForm(t) && (t = new FormData(t)), T.isFormData(t))
|
|
6028
6028
|
return o ? JSON.stringify(Wi(t)) : t;
|
|
6029
|
-
if (
|
|
6029
|
+
if (T.isArrayBuffer(t) || T.isBuffer(t) || T.isStream(t) || T.isFile(t) || T.isBlob(t) || T.isReadableStream(t))
|
|
6030
6030
|
return t;
|
|
6031
|
-
if (
|
|
6031
|
+
if (T.isArrayBufferView(t))
|
|
6032
6032
|
return t.buffer;
|
|
6033
|
-
if (
|
|
6033
|
+
if (T.isURLSearchParams(t))
|
|
6034
6034
|
return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
6035
6035
|
let l;
|
|
6036
6036
|
if (n) {
|
|
6037
6037
|
if (a.indexOf("application/x-www-form-urlencoded") > -1)
|
|
6038
6038
|
return $0(t, this.formSerializer).toString();
|
|
6039
|
-
if ((l =
|
|
6039
|
+
if ((l = T.isFileList(t)) || a.indexOf("multipart/form-data") > -1) {
|
|
6040
6040
|
const i = this.env && this.env.FormData;
|
|
6041
6041
|
return Ro(
|
|
6042
6042
|
l ? { "files[]": t } : t,
|
|
@@ -6049,9 +6049,9 @@ const ua = {
|
|
|
6049
6049
|
}],
|
|
6050
6050
|
transformResponse: [function(t) {
|
|
6051
6051
|
const r = this.transitional || ua.transitional, a = r && r.forcedJSONParsing, o = this.responseType === "json";
|
|
6052
|
-
if (
|
|
6052
|
+
if (T.isResponse(t) || T.isReadableStream(t))
|
|
6053
6053
|
return t;
|
|
6054
|
-
if (t &&
|
|
6054
|
+
if (t && T.isString(t) && (a && !this.responseType || o)) {
|
|
6055
6055
|
const s = !(r && r.silentJSONParsing) && o;
|
|
6056
6056
|
try {
|
|
6057
6057
|
return JSON.parse(t);
|
|
@@ -6085,10 +6085,10 @@ const ua = {
|
|
|
6085
6085
|
}
|
|
6086
6086
|
}
|
|
6087
6087
|
};
|
|
6088
|
-
|
|
6088
|
+
T.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
6089
6089
|
ua.headers[e] = {};
|
|
6090
6090
|
});
|
|
6091
|
-
const L0 =
|
|
6091
|
+
const L0 = T.toObjectSet([
|
|
6092
6092
|
"age",
|
|
6093
6093
|
"authorization",
|
|
6094
6094
|
"content-length",
|
|
@@ -6118,7 +6118,7 @@ function Lr(e) {
|
|
|
6118
6118
|
return e && String(e).trim().toLowerCase();
|
|
6119
6119
|
}
|
|
6120
6120
|
function za(e) {
|
|
6121
|
-
return e === !1 || e == null ? e :
|
|
6121
|
+
return e === !1 || e == null ? e : T.isArray(e) ? e.map(za) : String(e);
|
|
6122
6122
|
}
|
|
6123
6123
|
function N0(e) {
|
|
6124
6124
|
const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -6129,12 +6129,12 @@ function N0(e) {
|
|
|
6129
6129
|
}
|
|
6130
6130
|
const z0 = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
6131
6131
|
function Xo(e, t, r, a, o) {
|
|
6132
|
-
if (
|
|
6132
|
+
if (T.isFunction(a))
|
|
6133
6133
|
return a.call(this, t, r);
|
|
6134
|
-
if (o && (t = r), !!
|
|
6135
|
-
if (
|
|
6134
|
+
if (o && (t = r), !!T.isString(t)) {
|
|
6135
|
+
if (T.isString(a))
|
|
6136
6136
|
return t.indexOf(a) !== -1;
|
|
6137
|
-
if (
|
|
6137
|
+
if (T.isRegExp(a))
|
|
6138
6138
|
return a.test(t);
|
|
6139
6139
|
}
|
|
6140
6140
|
}
|
|
@@ -6142,7 +6142,7 @@ function D0(e) {
|
|
|
6142
6142
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, a) => r.toUpperCase() + a);
|
|
6143
6143
|
}
|
|
6144
6144
|
function G0(e, t) {
|
|
6145
|
-
const r =
|
|
6145
|
+
const r = T.toCamelCase(" " + t);
|
|
6146
6146
|
["get", "set", "has"].forEach((a) => {
|
|
6147
6147
|
Object.defineProperty(e, a + r, {
|
|
6148
6148
|
value: function(o, n, s) {
|
|
@@ -6162,15 +6162,15 @@ let Ne = class {
|
|
|
6162
6162
|
const d = Lr(i);
|
|
6163
6163
|
if (!d)
|
|
6164
6164
|
throw new Error("header name must be a non-empty string");
|
|
6165
|
-
const p =
|
|
6165
|
+
const p = T.findKey(o, d);
|
|
6166
6166
|
(!p || o[p] === void 0 || c === !0 || c === void 0 && o[p] !== !1) && (o[p || i] = za(l));
|
|
6167
6167
|
}
|
|
6168
|
-
const s = (l, i) =>
|
|
6169
|
-
if (
|
|
6168
|
+
const s = (l, i) => T.forEach(l, (c, d) => n(c, d, i));
|
|
6169
|
+
if (T.isPlainObject(t) || t instanceof this.constructor)
|
|
6170
6170
|
s(t, r);
|
|
6171
|
-
else if (
|
|
6171
|
+
else if (T.isString(t) && (t = t.trim()) && !z0(t))
|
|
6172
6172
|
s(F0(t), r);
|
|
6173
|
-
else if (
|
|
6173
|
+
else if (T.isHeaders(t))
|
|
6174
6174
|
for (const [l, i] of t.entries())
|
|
6175
6175
|
n(i, l, a);
|
|
6176
6176
|
else
|
|
@@ -6179,16 +6179,16 @@ let Ne = class {
|
|
|
6179
6179
|
}
|
|
6180
6180
|
get(t, r) {
|
|
6181
6181
|
if (t = Lr(t), t) {
|
|
6182
|
-
const a =
|
|
6182
|
+
const a = T.findKey(this, t);
|
|
6183
6183
|
if (a) {
|
|
6184
6184
|
const o = this[a];
|
|
6185
6185
|
if (!r)
|
|
6186
6186
|
return o;
|
|
6187
6187
|
if (r === !0)
|
|
6188
6188
|
return N0(o);
|
|
6189
|
-
if (
|
|
6189
|
+
if (T.isFunction(r))
|
|
6190
6190
|
return r.call(this, o, a);
|
|
6191
|
-
if (
|
|
6191
|
+
if (T.isRegExp(r))
|
|
6192
6192
|
return r.exec(o);
|
|
6193
6193
|
throw new TypeError("parser must be boolean|regexp|function");
|
|
6194
6194
|
}
|
|
@@ -6196,7 +6196,7 @@ let Ne = class {
|
|
|
6196
6196
|
}
|
|
6197
6197
|
has(t, r) {
|
|
6198
6198
|
if (t = Lr(t), t) {
|
|
6199
|
-
const a =
|
|
6199
|
+
const a = T.findKey(this, t);
|
|
6200
6200
|
return !!(a && this[a] !== void 0 && (!r || Xo(this, this[a], a, r)));
|
|
6201
6201
|
}
|
|
6202
6202
|
return !1;
|
|
@@ -6206,11 +6206,11 @@ let Ne = class {
|
|
|
6206
6206
|
let o = !1;
|
|
6207
6207
|
function n(s) {
|
|
6208
6208
|
if (s = Lr(s), s) {
|
|
6209
|
-
const l =
|
|
6209
|
+
const l = T.findKey(a, s);
|
|
6210
6210
|
l && (!r || Xo(a, a[l], l, r)) && (delete a[l], o = !0);
|
|
6211
6211
|
}
|
|
6212
6212
|
}
|
|
6213
|
-
return
|
|
6213
|
+
return T.isArray(t) ? t.forEach(n) : n(t), o;
|
|
6214
6214
|
}
|
|
6215
6215
|
clear(t) {
|
|
6216
6216
|
const r = Object.keys(this);
|
|
@@ -6223,8 +6223,8 @@ let Ne = class {
|
|
|
6223
6223
|
}
|
|
6224
6224
|
normalize(t) {
|
|
6225
6225
|
const r = this, a = {};
|
|
6226
|
-
return
|
|
6227
|
-
const s =
|
|
6226
|
+
return T.forEach(this, (o, n) => {
|
|
6227
|
+
const s = T.findKey(a, n);
|
|
6228
6228
|
if (s) {
|
|
6229
6229
|
r[s] = za(o), delete r[n];
|
|
6230
6230
|
return;
|
|
@@ -6238,8 +6238,8 @@ let Ne = class {
|
|
|
6238
6238
|
}
|
|
6239
6239
|
toJSON(t) {
|
|
6240
6240
|
const r = /* @__PURE__ */ Object.create(null);
|
|
6241
|
-
return
|
|
6242
|
-
a != null && a !== !1 && (r[o] = t &&
|
|
6241
|
+
return T.forEach(this, (a, o) => {
|
|
6242
|
+
a != null && a !== !1 && (r[o] = t && T.isArray(a) ? a.join(", ") : a);
|
|
6243
6243
|
}), r;
|
|
6244
6244
|
}
|
|
6245
6245
|
[Symbol.iterator]() {
|
|
@@ -6267,11 +6267,11 @@ let Ne = class {
|
|
|
6267
6267
|
const l = Lr(s);
|
|
6268
6268
|
a[l] || (G0(o, s), a[l] = !0);
|
|
6269
6269
|
}
|
|
6270
|
-
return
|
|
6270
|
+
return T.isArray(t) ? t.forEach(n) : n(t), this;
|
|
6271
6271
|
}
|
|
6272
6272
|
};
|
|
6273
6273
|
Ne.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
6274
|
-
|
|
6274
|
+
T.reduceDescriptors(Ne.prototype, ({ value: e }, t) => {
|
|
6275
6275
|
let r = t[0].toUpperCase() + t.slice(1);
|
|
6276
6276
|
return {
|
|
6277
6277
|
get: () => e,
|
|
@@ -6280,11 +6280,11 @@ I.reduceDescriptors(Ne.prototype, ({ value: e }, t) => {
|
|
|
6280
6280
|
}
|
|
6281
6281
|
};
|
|
6282
6282
|
});
|
|
6283
|
-
|
|
6283
|
+
T.freezeMethods(Ne);
|
|
6284
6284
|
function Zo(e, t) {
|
|
6285
6285
|
const r = this || ua, a = t || r, o = Ne.from(a.headers);
|
|
6286
6286
|
let n = a.data;
|
|
6287
|
-
return
|
|
6287
|
+
return T.forEach(e, function(l) {
|
|
6288
6288
|
n = l.call(r, n, o.normalize(), t ? t.status : void 0);
|
|
6289
6289
|
}), o.normalize(), n;
|
|
6290
6290
|
}
|
|
@@ -6294,7 +6294,7 @@ function Qi(e) {
|
|
|
6294
6294
|
function _r(e, t, r) {
|
|
6295
6295
|
te.call(this, e ?? "canceled", te.ERR_CANCELED, t, r), this.name = "CanceledError";
|
|
6296
6296
|
}
|
|
6297
|
-
|
|
6297
|
+
T.inherits(_r, te, {
|
|
6298
6298
|
__CANCEL__: !0
|
|
6299
6299
|
});
|
|
6300
6300
|
function Ki(e, t, r) {
|
|
@@ -6323,8 +6323,8 @@ function q0(e, t) {
|
|
|
6323
6323
|
u += r[p++], p = p % e;
|
|
6324
6324
|
if (o = (o + 1) % e, o === n && (n = (n + 1) % e), c - s < t)
|
|
6325
6325
|
return;
|
|
6326
|
-
const
|
|
6327
|
-
return
|
|
6326
|
+
const f = d && c - d;
|
|
6327
|
+
return f ? Math.round(u * 1e3 / f) : void 0;
|
|
6328
6328
|
};
|
|
6329
6329
|
}
|
|
6330
6330
|
function H0(e, t) {
|
|
@@ -6365,7 +6365,7 @@ const to = (e, t, r = 3) => {
|
|
|
6365
6365
|
total: e,
|
|
6366
6366
|
loaded: a
|
|
6367
6367
|
}), t[1]];
|
|
6368
|
-
}, al = (e) => (...t) =>
|
|
6368
|
+
}, al = (e) => (...t) => T.asap(() => e(...t)), W0 = Te.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (r) => (r = new URL(r, Te.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(
|
|
6369
6369
|
new URL(Te.origin),
|
|
6370
6370
|
Te.navigator && /(msie|trident)/i.test(Te.navigator.userAgent)
|
|
6371
6371
|
) : () => !0, Q0 = Te.hasStandardBrowserEnv ? (
|
|
@@ -6373,7 +6373,7 @@ const to = (e, t, r = 3) => {
|
|
|
6373
6373
|
{
|
|
6374
6374
|
write(e, t, r, a, o, n) {
|
|
6375
6375
|
const s = [e + "=" + encodeURIComponent(t)];
|
|
6376
|
-
|
|
6376
|
+
T.isNumber(r) && s.push("expires=" + new Date(r).toGMTString()), T.isString(a) && s.push("path=" + a), T.isString(o) && s.push("domain=" + o), n === !0 && s.push("secure"), document.cookie = s.join("; ");
|
|
6377
6377
|
},
|
|
6378
6378
|
read(e) {
|
|
6379
6379
|
const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
|
|
@@ -6410,21 +6410,21 @@ function Jt(e, t) {
|
|
|
6410
6410
|
t = t || {};
|
|
6411
6411
|
const r = {};
|
|
6412
6412
|
function a(c, d, p, u) {
|
|
6413
|
-
return
|
|
6413
|
+
return T.isPlainObject(c) && T.isPlainObject(d) ? T.merge.call({ caseless: u }, c, d) : T.isPlainObject(d) ? T.merge({}, d) : T.isArray(d) ? d.slice() : d;
|
|
6414
6414
|
}
|
|
6415
6415
|
function o(c, d, p, u) {
|
|
6416
|
-
if (
|
|
6417
|
-
if (!
|
|
6416
|
+
if (T.isUndefined(d)) {
|
|
6417
|
+
if (!T.isUndefined(c))
|
|
6418
6418
|
return a(void 0, c, p, u);
|
|
6419
6419
|
} else return a(c, d, p, u);
|
|
6420
6420
|
}
|
|
6421
6421
|
function n(c, d) {
|
|
6422
|
-
if (!
|
|
6422
|
+
if (!T.isUndefined(d))
|
|
6423
6423
|
return a(void 0, d);
|
|
6424
6424
|
}
|
|
6425
6425
|
function s(c, d) {
|
|
6426
|
-
if (
|
|
6427
|
-
if (!
|
|
6426
|
+
if (T.isUndefined(d)) {
|
|
6427
|
+
if (!T.isUndefined(c))
|
|
6428
6428
|
return a(void 0, c);
|
|
6429
6429
|
} else return a(void 0, d);
|
|
6430
6430
|
}
|
|
@@ -6465,9 +6465,9 @@ function Jt(e, t) {
|
|
|
6465
6465
|
validateStatus: l,
|
|
6466
6466
|
headers: (c, d, p) => o(ol(c), ol(d), p, !0)
|
|
6467
6467
|
};
|
|
6468
|
-
return
|
|
6468
|
+
return T.forEach(Object.keys(Object.assign({}, e, t)), function(d) {
|
|
6469
6469
|
const p = i[d] || o, u = p(e[d], t[d], d);
|
|
6470
|
-
|
|
6470
|
+
T.isUndefined(u) && p !== l || (r[d] = u);
|
|
6471
6471
|
}), r;
|
|
6472
6472
|
}
|
|
6473
6473
|
const Xi = (e) => {
|
|
@@ -6478,7 +6478,7 @@ const Xi = (e) => {
|
|
|
6478
6478
|
"Basic " + btoa((l.username || "") + ":" + (l.password ? unescape(encodeURIComponent(l.password)) : ""))
|
|
6479
6479
|
);
|
|
6480
6480
|
let i;
|
|
6481
|
-
if (
|
|
6481
|
+
if (T.isFormData(r)) {
|
|
6482
6482
|
if (Te.hasStandardBrowserEnv || Te.hasStandardBrowserWebWorkerEnv)
|
|
6483
6483
|
s.setContentType(void 0);
|
|
6484
6484
|
else if ((i = s.getContentType()) !== !1) {
|
|
@@ -6486,7 +6486,7 @@ const Xi = (e) => {
|
|
|
6486
6486
|
s.setContentType([c || "multipart/form-data", ...d].join("; "));
|
|
6487
6487
|
}
|
|
6488
6488
|
}
|
|
6489
|
-
if (Te.hasStandardBrowserEnv && (a &&
|
|
6489
|
+
if (Te.hasStandardBrowserEnv && (a && T.isFunction(a) && (a = a(t)), a || a !== !1 && W0(t.url))) {
|
|
6490
6490
|
const c = o && n && Q0.read(n);
|
|
6491
6491
|
c && s.set(o, c);
|
|
6492
6492
|
}
|
|
@@ -6496,22 +6496,22 @@ const Xi = (e) => {
|
|
|
6496
6496
|
const o = Xi(e);
|
|
6497
6497
|
let n = o.data;
|
|
6498
6498
|
const s = Ne.from(o.headers).normalize();
|
|
6499
|
-
let { responseType: l, onUploadProgress: i, onDownloadProgress: c } = o, d, p, u,
|
|
6499
|
+
let { responseType: l, onUploadProgress: i, onDownloadProgress: c } = o, d, p, u, f, g;
|
|
6500
6500
|
function h() {
|
|
6501
|
-
|
|
6501
|
+
f && f(), g && g(), o.cancelToken && o.cancelToken.unsubscribe(d), o.signal && o.signal.removeEventListener("abort", d);
|
|
6502
6502
|
}
|
|
6503
6503
|
let x = new XMLHttpRequest();
|
|
6504
6504
|
x.open(o.method.toUpperCase(), o.url, !0), x.timeout = o.timeout;
|
|
6505
|
-
function
|
|
6505
|
+
function I() {
|
|
6506
6506
|
if (!x)
|
|
6507
6507
|
return;
|
|
6508
|
-
const
|
|
6508
|
+
const N = Ne.from(
|
|
6509
6509
|
"getAllResponseHeaders" in x && x.getAllResponseHeaders()
|
|
6510
6510
|
), D = {
|
|
6511
6511
|
data: !l || l === "text" || l === "json" ? x.responseText : x.response,
|
|
6512
6512
|
status: x.status,
|
|
6513
6513
|
statusText: x.statusText,
|
|
6514
|
-
headers:
|
|
6514
|
+
headers: N,
|
|
6515
6515
|
config: e,
|
|
6516
6516
|
request: x
|
|
6517
6517
|
};
|
|
@@ -6521,8 +6521,8 @@ const Xi = (e) => {
|
|
|
6521
6521
|
a(j), h();
|
|
6522
6522
|
}, D), x = null;
|
|
6523
6523
|
}
|
|
6524
|
-
"onloadend" in x ? x.onloadend =
|
|
6525
|
-
!x || x.readyState !== 4 || x.status === 0 && !(x.responseURL && x.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
6524
|
+
"onloadend" in x ? x.onloadend = I : x.onreadystatechange = function() {
|
|
6525
|
+
!x || x.readyState !== 4 || x.status === 0 && !(x.responseURL && x.responseURL.indexOf("file:") === 0) || setTimeout(I);
|
|
6526
6526
|
}, x.onabort = function() {
|
|
6527
6527
|
x && (a(new te("Request aborted", te.ECONNABORTED, e, x)), x = null);
|
|
6528
6528
|
}, x.onerror = function() {
|
|
@@ -6536,14 +6536,14 @@ const Xi = (e) => {
|
|
|
6536
6536
|
e,
|
|
6537
6537
|
x
|
|
6538
6538
|
)), x = null;
|
|
6539
|
-
}, n === void 0 && s.setContentType(null), "setRequestHeader" in x &&
|
|
6539
|
+
}, n === void 0 && s.setContentType(null), "setRequestHeader" in x && T.forEach(s.toJSON(), function(z, D) {
|
|
6540
6540
|
x.setRequestHeader(D, z);
|
|
6541
|
-
}),
|
|
6542
|
-
x && (a(!
|
|
6541
|
+
}), T.isUndefined(o.withCredentials) || (x.withCredentials = !!o.withCredentials), l && l !== "json" && (x.responseType = o.responseType), c && ([u, g] = to(c, !0), x.addEventListener("progress", u)), i && x.upload && ([p, f] = to(i), x.upload.addEventListener("progress", p), x.upload.addEventListener("loadend", f)), (o.cancelToken || o.signal) && (d = (N) => {
|
|
6542
|
+
x && (a(!N || N.type ? new _r(null, e, x) : N), x.abort(), x = null);
|
|
6543
6543
|
}, o.cancelToken && o.cancelToken.subscribe(d), o.signal && (o.signal.aborted ? d() : o.signal.addEventListener("abort", d)));
|
|
6544
|
-
const
|
|
6545
|
-
if (
|
|
6546
|
-
a(new te("Unsupported protocol " +
|
|
6544
|
+
const F = J0(o.url);
|
|
6545
|
+
if (F && Te.protocols.indexOf(F) === -1) {
|
|
6546
|
+
a(new te("Unsupported protocol " + F + ":", te.ERR_BAD_REQUEST, e));
|
|
6547
6547
|
return;
|
|
6548
6548
|
}
|
|
6549
6549
|
x.send(n || null);
|
|
@@ -6569,7 +6569,7 @@ const Xi = (e) => {
|
|
|
6569
6569
|
};
|
|
6570
6570
|
e.forEach((c) => c.addEventListener("abort", n));
|
|
6571
6571
|
const { signal: i } = a;
|
|
6572
|
-
return i.unsubscribe = () =>
|
|
6572
|
+
return i.unsubscribe = () => T.asap(l), i;
|
|
6573
6573
|
}
|
|
6574
6574
|
}, tS = function* (e, t) {
|
|
6575
6575
|
let r = e.byteLength;
|
|
@@ -6644,12 +6644,12 @@ const Xi = (e) => {
|
|
|
6644
6644
|
}
|
|
6645
6645
|
}).headers.has("Content-Type");
|
|
6646
6646
|
return e && !t;
|
|
6647
|
-
}), sl = 64 * 1024, On = Zi && ec(() =>
|
|
6647
|
+
}), sl = 64 * 1024, On = Zi && ec(() => T.isReadableStream(new Response("").body)), ro = {
|
|
6648
6648
|
stream: On && ((e) => e.body)
|
|
6649
6649
|
};
|
|
6650
6650
|
_o && ((e) => {
|
|
6651
6651
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
6652
|
-
!ro[t] && (ro[t] =
|
|
6652
|
+
!ro[t] && (ro[t] = T.isFunction(e[t]) ? (r) => r[t]() : (r, a) => {
|
|
6653
6653
|
throw new te(`Response type '${t}' is not supported`, te.ERR_NOT_SUPPORT, a);
|
|
6654
6654
|
});
|
|
6655
6655
|
});
|
|
@@ -6657,19 +6657,19 @@ _o && ((e) => {
|
|
|
6657
6657
|
const sS = async (e) => {
|
|
6658
6658
|
if (e == null)
|
|
6659
6659
|
return 0;
|
|
6660
|
-
if (
|
|
6660
|
+
if (T.isBlob(e))
|
|
6661
6661
|
return e.size;
|
|
6662
|
-
if (
|
|
6662
|
+
if (T.isSpecCompliantForm(e))
|
|
6663
6663
|
return (await new Request(Te.origin, {
|
|
6664
6664
|
method: "POST",
|
|
6665
6665
|
body: e
|
|
6666
6666
|
}).arrayBuffer()).byteLength;
|
|
6667
|
-
if (
|
|
6667
|
+
if (T.isArrayBufferView(e) || T.isArrayBuffer(e))
|
|
6668
6668
|
return e.byteLength;
|
|
6669
|
-
if (
|
|
6669
|
+
if (T.isURLSearchParams(e) && (e = e + ""), T.isString(e))
|
|
6670
6670
|
return (await oS(e)).byteLength;
|
|
6671
6671
|
}, lS = async (e, t) => {
|
|
6672
|
-
const r =
|
|
6672
|
+
const r = T.toFiniteNumber(e.getContentLength());
|
|
6673
6673
|
return r ?? sS(t);
|
|
6674
6674
|
}, iS = _o && (async (e) => {
|
|
6675
6675
|
let {
|
|
@@ -6687,9 +6687,9 @@ const sS = async (e) => {
|
|
|
6687
6687
|
fetchOptions: u
|
|
6688
6688
|
} = Xi(e);
|
|
6689
6689
|
c = c ? (c + "").toLowerCase() : "text";
|
|
6690
|
-
let
|
|
6691
|
-
const h =
|
|
6692
|
-
|
|
6690
|
+
let f = eS([o, n && n.toAbortSignal()], s), g;
|
|
6691
|
+
const h = f && f.unsubscribe && (() => {
|
|
6692
|
+
f.unsubscribe();
|
|
6693
6693
|
});
|
|
6694
6694
|
let x;
|
|
6695
6695
|
try {
|
|
@@ -6699,7 +6699,7 @@ const sS = async (e) => {
|
|
|
6699
6699
|
body: a,
|
|
6700
6700
|
duplex: "half"
|
|
6701
6701
|
}), H;
|
|
6702
|
-
if (
|
|
6702
|
+
if (T.isFormData(a) && (H = D.headers.get("content-type")) && d.setContentType(H), D.body) {
|
|
6703
6703
|
const [j, U] = rl(
|
|
6704
6704
|
x,
|
|
6705
6705
|
to(al(i))
|
|
@@ -6707,61 +6707,61 @@ const sS = async (e) => {
|
|
|
6707
6707
|
a = nl(D.body, sl, j, U);
|
|
6708
6708
|
}
|
|
6709
6709
|
}
|
|
6710
|
-
|
|
6711
|
-
const
|
|
6710
|
+
T.isString(p) || (p = p ? "include" : "omit");
|
|
6711
|
+
const I = "credentials" in Request.prototype;
|
|
6712
6712
|
g = new Request(t, {
|
|
6713
6713
|
...u,
|
|
6714
|
-
signal:
|
|
6714
|
+
signal: f,
|
|
6715
6715
|
method: r.toUpperCase(),
|
|
6716
6716
|
headers: d.normalize().toJSON(),
|
|
6717
6717
|
body: a,
|
|
6718
6718
|
duplex: "half",
|
|
6719
|
-
credentials:
|
|
6719
|
+
credentials: I ? p : void 0
|
|
6720
6720
|
});
|
|
6721
|
-
let
|
|
6722
|
-
const
|
|
6723
|
-
if (On && (l ||
|
|
6721
|
+
let F = await fetch(g);
|
|
6722
|
+
const N = On && (c === "stream" || c === "response");
|
|
6723
|
+
if (On && (l || N && h)) {
|
|
6724
6724
|
const D = {};
|
|
6725
6725
|
["status", "statusText", "headers"].forEach((k) => {
|
|
6726
|
-
D[k] =
|
|
6726
|
+
D[k] = F[k];
|
|
6727
6727
|
});
|
|
6728
|
-
const H =
|
|
6728
|
+
const H = T.toFiniteNumber(F.headers.get("content-length")), [j, U] = l && rl(
|
|
6729
6729
|
H,
|
|
6730
6730
|
to(al(l), !0)
|
|
6731
6731
|
) || [];
|
|
6732
|
-
|
|
6733
|
-
nl(
|
|
6732
|
+
F = new Response(
|
|
6733
|
+
nl(F.body, sl, j, () => {
|
|
6734
6734
|
U && U(), h && h();
|
|
6735
6735
|
}),
|
|
6736
6736
|
D
|
|
6737
6737
|
);
|
|
6738
6738
|
}
|
|
6739
6739
|
c = c || "text";
|
|
6740
|
-
let z = await ro[
|
|
6741
|
-
return !
|
|
6740
|
+
let z = await ro[T.findKey(ro, c) || "text"](F, e);
|
|
6741
|
+
return !N && h && h(), await new Promise((D, H) => {
|
|
6742
6742
|
Ki(D, H, {
|
|
6743
6743
|
data: z,
|
|
6744
|
-
headers: Ne.from(
|
|
6745
|
-
status:
|
|
6746
|
-
statusText:
|
|
6744
|
+
headers: Ne.from(F.headers),
|
|
6745
|
+
status: F.status,
|
|
6746
|
+
statusText: F.statusText,
|
|
6747
6747
|
config: e,
|
|
6748
6748
|
request: g
|
|
6749
6749
|
});
|
|
6750
6750
|
});
|
|
6751
|
-
} catch (
|
|
6752
|
-
throw h && h(),
|
|
6751
|
+
} catch (I) {
|
|
6752
|
+
throw h && h(), I && I.name === "TypeError" && /fetch/i.test(I.message) ? Object.assign(
|
|
6753
6753
|
new te("Network Error", te.ERR_NETWORK, e, g),
|
|
6754
6754
|
{
|
|
6755
|
-
cause:
|
|
6755
|
+
cause: I.cause || I
|
|
6756
6756
|
}
|
|
6757
|
-
) : te.from(
|
|
6757
|
+
) : te.from(I, I && I.code, e, g);
|
|
6758
6758
|
}
|
|
6759
6759
|
}), wn = {
|
|
6760
6760
|
http: w0,
|
|
6761
6761
|
xhr: Z0,
|
|
6762
6762
|
fetch: iS
|
|
6763
6763
|
};
|
|
6764
|
-
|
|
6764
|
+
T.forEach(wn, (e, t) => {
|
|
6765
6765
|
if (e) {
|
|
6766
6766
|
try {
|
|
6767
6767
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -6770,9 +6770,9 @@ I.forEach(wn, (e, t) => {
|
|
|
6770
6770
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
6771
6771
|
}
|
|
6772
6772
|
});
|
|
6773
|
-
const ll = (e) => `- ${e}`, cS = (e) =>
|
|
6773
|
+
const ll = (e) => `- ${e}`, cS = (e) => T.isFunction(e) || e === null || e === !1, tc = {
|
|
6774
6774
|
getAdapter: (e) => {
|
|
6775
|
-
e =
|
|
6775
|
+
e = T.isArray(e) ? e : [e];
|
|
6776
6776
|
const { length: t } = e;
|
|
6777
6777
|
let r, a;
|
|
6778
6778
|
const o = {};
|
|
@@ -6911,7 +6911,7 @@ let Nt = class {
|
|
|
6911
6911
|
silentJSONParsing: ot.transitional(ot.boolean),
|
|
6912
6912
|
forcedJSONParsing: ot.transitional(ot.boolean),
|
|
6913
6913
|
clarifyTimeoutError: ot.transitional(ot.boolean)
|
|
6914
|
-
}, !1), o != null && (
|
|
6914
|
+
}, !1), o != null && (T.isFunction(o) ? r.paramsSerializer = {
|
|
6915
6915
|
serialize: o
|
|
6916
6916
|
} : Da.assertOptions(o, {
|
|
6917
6917
|
encode: ot.function,
|
|
@@ -6920,11 +6920,11 @@ let Nt = class {
|
|
|
6920
6920
|
baseUrl: ot.spelling("baseURL"),
|
|
6921
6921
|
withXsrfToken: ot.spelling("withXSRFToken")
|
|
6922
6922
|
}, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
|
|
6923
|
-
let s = n &&
|
|
6923
|
+
let s = n && T.merge(
|
|
6924
6924
|
n.common,
|
|
6925
6925
|
n[r.method]
|
|
6926
6926
|
);
|
|
6927
|
-
n &&
|
|
6927
|
+
n && T.forEach(
|
|
6928
6928
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
6929
6929
|
(g) => {
|
|
6930
6930
|
delete n[g];
|
|
@@ -6947,18 +6947,18 @@ let Nt = class {
|
|
|
6947
6947
|
return d;
|
|
6948
6948
|
}
|
|
6949
6949
|
u = l.length;
|
|
6950
|
-
let
|
|
6950
|
+
let f = r;
|
|
6951
6951
|
for (p = 0; p < u; ) {
|
|
6952
6952
|
const g = l[p++], h = l[p++];
|
|
6953
6953
|
try {
|
|
6954
|
-
|
|
6954
|
+
f = g(f);
|
|
6955
6955
|
} catch (x) {
|
|
6956
6956
|
h.call(this, x);
|
|
6957
6957
|
break;
|
|
6958
6958
|
}
|
|
6959
6959
|
}
|
|
6960
6960
|
try {
|
|
6961
|
-
d = il.call(this,
|
|
6961
|
+
d = il.call(this, f);
|
|
6962
6962
|
} catch (g) {
|
|
6963
6963
|
return Promise.reject(g);
|
|
6964
6964
|
}
|
|
@@ -6972,7 +6972,7 @@ let Nt = class {
|
|
|
6972
6972
|
return qi(r, t.params, t.paramsSerializer);
|
|
6973
6973
|
}
|
|
6974
6974
|
};
|
|
6975
|
-
|
|
6975
|
+
T.forEach(["delete", "get", "head", "options"], function(t) {
|
|
6976
6976
|
Nt.prototype[t] = function(r, a) {
|
|
6977
6977
|
return this.request(Jt(a || {}, {
|
|
6978
6978
|
method: t,
|
|
@@ -6981,7 +6981,7 @@ I.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
6981
6981
|
}));
|
|
6982
6982
|
};
|
|
6983
6983
|
});
|
|
6984
|
-
|
|
6984
|
+
T.forEach(["post", "put", "patch"], function(t) {
|
|
6985
6985
|
function r(a) {
|
|
6986
6986
|
return function(n, s, l) {
|
|
6987
6987
|
return this.request(Jt(l || {}, {
|
|
@@ -7075,7 +7075,7 @@ function uS(e) {
|
|
|
7075
7075
|
};
|
|
7076
7076
|
}
|
|
7077
7077
|
function hS(e) {
|
|
7078
|
-
return
|
|
7078
|
+
return T.isObject(e) && e.isAxiosError === !0;
|
|
7079
7079
|
}
|
|
7080
7080
|
const Cn = {
|
|
7081
7081
|
Continue: 100,
|
|
@@ -7147,7 +7147,7 @@ Object.entries(Cn).forEach(([e, t]) => {
|
|
|
7147
7147
|
});
|
|
7148
7148
|
function oc(e) {
|
|
7149
7149
|
const t = new Nt(e), r = $i(Nt.prototype.request, t);
|
|
7150
|
-
return
|
|
7150
|
+
return T.extend(r, Nt.prototype, t, { allOwnKeys: !0 }), T.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(o) {
|
|
7151
7151
|
return oc(Jt(e, o));
|
|
7152
7152
|
}, r;
|
|
7153
7153
|
}
|
|
@@ -7167,7 +7167,7 @@ v.spread = uS;
|
|
|
7167
7167
|
v.isAxiosError = hS;
|
|
7168
7168
|
v.mergeConfig = Jt;
|
|
7169
7169
|
v.AxiosHeaders = Ne;
|
|
7170
|
-
v.formToJSON = (e) => Wi(
|
|
7170
|
+
v.formToJSON = (e) => Wi(T.isHTMLForm(e) ? new FormData(e) : e);
|
|
7171
7171
|
v.getAdapter = tc.getAdapter;
|
|
7172
7172
|
v.HttpStatusCode = Cn;
|
|
7173
7173
|
v.default = v;
|
|
@@ -7445,7 +7445,7 @@ const R = function(e, ...t) {
|
|
|
7445
7445
|
async updateApp(r, a, o, n, s) {
|
|
7446
7446
|
var d, p;
|
|
7447
7447
|
const l = await t.updateApp(r, a, o, n, s), i = (e == null ? void 0 : e.serverIndex) ?? 0, c = (p = (d = w["ApplicationApi.updateApp"]) == null ? void 0 : d[i]) == null ? void 0 : p.url;
|
|
7448
|
-
return (u,
|
|
7448
|
+
return (u, f) => A(l, v, O, e)(u, c || f);
|
|
7449
7449
|
}
|
|
7450
7450
|
};
|
|
7451
7451
|
};
|
|
@@ -8294,7 +8294,7 @@ const SS = function(e) {
|
|
|
8294
8294
|
async updateRobotController(r, a, o, n, s) {
|
|
8295
8295
|
var d, p;
|
|
8296
8296
|
const l = await t.updateRobotController(r, a, o, n, s), i = (e == null ? void 0 : e.serverIndex) ?? 0, c = (p = (d = w["ControllerApi.updateRobotController"]) == null ? void 0 : d[i]) == null ? void 0 : p.url;
|
|
8297
|
-
return (u,
|
|
8297
|
+
return (u, f) => A(l, v, O, e)(u, c || f);
|
|
8298
8298
|
}
|
|
8299
8299
|
};
|
|
8300
8300
|
};
|
|
@@ -8582,10 +8582,10 @@ const xS = function(e) {
|
|
|
8582
8582
|
const c = "/cells/{cell}/controllers/{controller}/ios/wait-for".replace("{cell}", encodeURIComponent(String(t))).replace("{controller}", encodeURIComponent(String(r))), d = new URL(c, C);
|
|
8583
8583
|
let p;
|
|
8584
8584
|
e && (p = e.baseOptions);
|
|
8585
|
-
const u = { method: "GET", ...p, ...i },
|
|
8586
|
-
V(u, e), await P(
|
|
8585
|
+
const u = { method: "GET", ...p, ...i }, f = {}, g = {};
|
|
8586
|
+
V(u, e), await P(f, e), a !== void 0 && (g.io = a), o !== void 0 && (g.comparison_type = o), n !== void 0 && (g.boolean_value = n), s !== void 0 && (g.integer_value = s), l !== void 0 && (g.floating_value = l), R(d, g);
|
|
8587
8587
|
let h = p && p.headers ? p.headers : {};
|
|
8588
|
-
return u.headers = { ...
|
|
8588
|
+
return u.headers = { ...f, ...h, ...i.headers }, {
|
|
8589
8589
|
url: _(d),
|
|
8590
8590
|
options: u
|
|
8591
8591
|
};
|
|
@@ -8664,8 +8664,8 @@ const xS = function(e) {
|
|
|
8664
8664
|
* @throws {RequiredError}
|
|
8665
8665
|
*/
|
|
8666
8666
|
async waitForIOEvent(r, a, o, n, s, l, i, c) {
|
|
8667
|
-
var
|
|
8668
|
-
const d = await t.waitForIOEvent(r, a, o, n, s, l, i, c), p = (e == null ? void 0 : e.serverIndex) ?? 0, u = (g = (
|
|
8667
|
+
var f, g;
|
|
8668
|
+
const d = await t.waitForIOEvent(r, a, o, n, s, l, i, c), p = (e == null ? void 0 : e.serverIndex) ?? 0, u = (g = (f = w["ControllerIOsApi.waitForIOEvent"]) == null ? void 0 : f[p]) == null ? void 0 : g.url;
|
|
8669
8669
|
return (h, x) => A(d, v, O, e)(h, u || x);
|
|
8670
8670
|
}
|
|
8671
8671
|
};
|
|
@@ -9809,7 +9809,7 @@ const IS = function(e) {
|
|
|
9809
9809
|
async createRecipe(r, a, o, n, s) {
|
|
9810
9810
|
var d, p;
|
|
9811
9811
|
const l = await t.createRecipe(r, a, o, n, s), i = (e == null ? void 0 : e.serverIndex) ?? 0, c = (p = (d = w["LibraryRecipeApi.createRecipe"]) == null ? void 0 : d[i]) == null ? void 0 : p.url;
|
|
9812
|
-
return (u,
|
|
9812
|
+
return (u, f) => A(l, v, O, e)(u, c || f);
|
|
9813
9813
|
},
|
|
9814
9814
|
/**
|
|
9815
9815
|
* # EXPERIMENTAL > **Note:** This endpoint is experimental and might experience functional changes in the future. Deletes a recipe. This action is irreversible.
|
|
@@ -10446,8 +10446,8 @@ const $S = function(e) {
|
|
|
10446
10446
|
const i = "/cells/{cell}/motions/{motion}/executebackward".replace("{cell}", encodeURIComponent(String(t))).replace("{motion}", encodeURIComponent(String(r))), c = new URL(i, C);
|
|
10447
10447
|
let d;
|
|
10448
10448
|
e && (d = e.baseOptions);
|
|
10449
|
-
const p = { method: "GET", ...d, ...l }, u = {},
|
|
10450
|
-
V(p, e), await P(u, e), a !== void 0 && (
|
|
10449
|
+
const p = { method: "GET", ...d, ...l }, u = {}, f = {};
|
|
10450
|
+
V(p, e), await P(u, e), a !== void 0 && (f.playback_speed_in_percent = a), o !== void 0 && (f.response_rate = o), n !== void 0 && (f.response_coordinate_system = n), s !== void 0 && (f.start_location_on_trajectory = s), R(c, f);
|
|
10451
10451
|
let g = d && d.headers ? d.headers : {};
|
|
10452
10452
|
return p.headers = { ...u, ...g, ...l.headers }, {
|
|
10453
10453
|
url: _(c),
|
|
@@ -10472,8 +10472,8 @@ const $S = function(e) {
|
|
|
10472
10472
|
const i = "/cells/{cell}/motions/{motion}/executeforward".replace("{cell}", encodeURIComponent(String(t))).replace("{motion}", encodeURIComponent(String(r))), c = new URL(i, C);
|
|
10473
10473
|
let d;
|
|
10474
10474
|
e && (d = e.baseOptions);
|
|
10475
|
-
const p = { method: "GET", ...d, ...l }, u = {},
|
|
10476
|
-
V(p, e), await P(u, e), a !== void 0 && (
|
|
10475
|
+
const p = { method: "GET", ...d, ...l }, u = {}, f = {};
|
|
10476
|
+
V(p, e), await P(u, e), a !== void 0 && (f.playback_speed_in_percent = a), o !== void 0 && (f.response_rate = o), n !== void 0 && (f.response_coordinate_system = n), s !== void 0 && (f.start_location_on_trajectory = s), R(c, f);
|
|
10477
10477
|
let g = d && d.headers ? d.headers : {};
|
|
10478
10478
|
return p.headers = { ...u, ...g, ...l.headers }, {
|
|
10479
10479
|
url: _(c),
|
|
@@ -10498,14 +10498,14 @@ const $S = function(e) {
|
|
|
10498
10498
|
*/
|
|
10499
10499
|
streamMoveToTrajectoryViaJointPTP: async (t, r, a, o, n, s, l, i, c, d, p = {}) => {
|
|
10500
10500
|
m("streamMoveToTrajectoryViaJointPTP", "cell", t), m("streamMoveToTrajectoryViaJointPTP", "motion", r), m("streamMoveToTrajectoryViaJointPTP", "locationOnTrajectory", a);
|
|
10501
|
-
const u = "/cells/{cell}/motions/{motion}/executetotrajectory".replace("{cell}", encodeURIComponent(String(t))).replace("{motion}", encodeURIComponent(String(r))),
|
|
10501
|
+
const u = "/cells/{cell}/motions/{motion}/executetotrajectory".replace("{cell}", encodeURIComponent(String(t))).replace("{motion}", encodeURIComponent(String(r))), f = new URL(u, C);
|
|
10502
10502
|
let g;
|
|
10503
10503
|
e && (g = e.baseOptions);
|
|
10504
|
-
const h = { method: "GET", ...g, ...p }, x = {},
|
|
10505
|
-
V(h, e), await P(x, e), a !== void 0 && (
|
|
10506
|
-
let
|
|
10507
|
-
return h.headers = { ...x, ...
|
|
10508
|
-
url: _(
|
|
10504
|
+
const h = { method: "GET", ...g, ...p }, x = {}, I = {};
|
|
10505
|
+
V(h, e), await P(x, e), a !== void 0 && (I.location_on_trajectory = a), o && (I["limit_override.joint_velocity_limits.joints"] = o), n && (I["limit_override.joint_acceleration_limits.joints"] = n), s !== void 0 && (I["limit_override.tcp_velocity_limit"] = s), l !== void 0 && (I["limit_override.tcp_acceleration_limit"] = l), i !== void 0 && (I["limit_override.tcp_orientation_velocity_limit"] = i), c !== void 0 && (I["limit_override.tcp_orientation_acceleration_limit"] = c), d !== void 0 && (I.responses_coordinate_system = d), R(f, I);
|
|
10506
|
+
let F = g && g.headers ? g.headers : {};
|
|
10507
|
+
return h.headers = { ...x, ...F, ...p.headers }, {
|
|
10508
|
+
url: _(f),
|
|
10509
10509
|
options: h
|
|
10510
10510
|
};
|
|
10511
10511
|
}
|
|
@@ -10564,7 +10564,7 @@ const $S = function(e) {
|
|
|
10564
10564
|
async getMotionTrajectory(r, a, o, n, s) {
|
|
10565
10565
|
var d, p;
|
|
10566
10566
|
const l = await t.getMotionTrajectory(r, a, o, n, s), i = (e == null ? void 0 : e.serverIndex) ?? 0, c = (p = (d = w["MotionApi.getMotionTrajectory"]) == null ? void 0 : d[i]) == null ? void 0 : p.url;
|
|
10567
|
-
return (u,
|
|
10567
|
+
return (u, f) => A(l, v, O, e)(u, c || f);
|
|
10568
10568
|
},
|
|
10569
10569
|
/**
|
|
10570
10570
|
* Get a single point at a certain location of a planned motion. To get the whole trajectory, use the [getMotionTrajectory](getMotionTrajectory) endpoint.
|
|
@@ -10579,7 +10579,7 @@ const $S = function(e) {
|
|
|
10579
10579
|
async getMotionTrajectorySample(r, a, o, n, s) {
|
|
10580
10580
|
var d, p;
|
|
10581
10581
|
const l = await t.getMotionTrajectorySample(r, a, o, n, s), i = (e == null ? void 0 : e.serverIndex) ?? 0, c = (p = (d = w["MotionApi.getMotionTrajectorySample"]) == null ? void 0 : d[i]) == null ? void 0 : p.url;
|
|
10582
|
-
return (u,
|
|
10582
|
+
return (u, f) => A(l, v, O, e)(u, c || f);
|
|
10583
10583
|
},
|
|
10584
10584
|
/**
|
|
10585
10585
|
* Get the joint data of a planned motion. The planned motion contains only the joint information, to persistently store and reload it later. The data will be sampled equidistantly with defined `sample_time` in milliseconds (ms). If not provided, the data is returned as it is stored on Wandelbots NOVA system. To request cartesian data for visualization purposes, use the [getMotionTrajectory](getMotionTrajectory) endpoint. To get a single point of the planned motion, use the [getMotionTrajectorySample](getMotionTrajectorySample) endpoint.
|
|
@@ -10713,8 +10713,8 @@ const $S = function(e) {
|
|
|
10713
10713
|
* @throws {RequiredError}
|
|
10714
10714
|
*/
|
|
10715
10715
|
async streamMoveBackward(r, a, o, n, s, l, i) {
|
|
10716
|
-
var u,
|
|
10717
|
-
const c = await t.streamMoveBackward(r, a, o, n, s, l, i), d = (e == null ? void 0 : e.serverIndex) ?? 0, p = (
|
|
10716
|
+
var u, f;
|
|
10717
|
+
const c = await t.streamMoveBackward(r, a, o, n, s, l, i), d = (e == null ? void 0 : e.serverIndex) ?? 0, p = (f = (u = w["MotionApi.streamMoveBackward"]) == null ? void 0 : u[d]) == null ? void 0 : f.url;
|
|
10718
10718
|
return (g, h) => A(c, v, O, e)(g, p || h);
|
|
10719
10719
|
},
|
|
10720
10720
|
/**
|
|
@@ -10731,8 +10731,8 @@ const $S = function(e) {
|
|
|
10731
10731
|
* @throws {RequiredError}
|
|
10732
10732
|
*/
|
|
10733
10733
|
async streamMoveForward(r, a, o, n, s, l, i) {
|
|
10734
|
-
var u,
|
|
10735
|
-
const c = await t.streamMoveForward(r, a, o, n, s, l, i), d = (e == null ? void 0 : e.serverIndex) ?? 0, p = (
|
|
10734
|
+
var u, f;
|
|
10735
|
+
const c = await t.streamMoveForward(r, a, o, n, s, l, i), d = (e == null ? void 0 : e.serverIndex) ?? 0, p = (f = (u = w["MotionApi.streamMoveForward"]) == null ? void 0 : u[d]) == null ? void 0 : f.url;
|
|
10736
10736
|
return (g, h) => A(c, v, O, e)(g, p || h);
|
|
10737
10737
|
},
|
|
10738
10738
|
/**
|
|
@@ -10752,9 +10752,9 @@ const $S = function(e) {
|
|
|
10752
10752
|
* @throws {RequiredError}
|
|
10753
10753
|
*/
|
|
10754
10754
|
async streamMoveToTrajectoryViaJointPTP(r, a, o, n, s, l, i, c, d, p, u) {
|
|
10755
|
-
var x,
|
|
10756
|
-
const
|
|
10757
|
-
return (
|
|
10755
|
+
var x, I;
|
|
10756
|
+
const f = await t.streamMoveToTrajectoryViaJointPTP(r, a, o, n, s, l, i, c, d, p, u), g = (e == null ? void 0 : e.serverIndex) ?? 0, h = (I = (x = w["MotionApi.streamMoveToTrajectoryViaJointPTP"]) == null ? void 0 : x[g]) == null ? void 0 : I.url;
|
|
10757
|
+
return (F, N) => A(f, v, O, e)(F, h || N);
|
|
10758
10758
|
}
|
|
10759
10759
|
};
|
|
10760
10760
|
};
|
|
@@ -11412,8 +11412,8 @@ const LS = function(e) {
|
|
|
11412
11412
|
e && (c = e.baseOptions);
|
|
11413
11413
|
const d = { method: "GET", ...c, ...s }, p = {}, u = {};
|
|
11414
11414
|
V(d, e), await P(p, e), a !== void 0 && (u.response_rate = a), o !== void 0 && (u.response_coordinate_system = o), n !== void 0 && (u.tcp = n), R(i, u);
|
|
11415
|
-
let
|
|
11416
|
-
return d.headers = { ...p, ...
|
|
11415
|
+
let f = c && c.headers ? c.headers : {};
|
|
11416
|
+
return d.headers = { ...p, ...f, ...s.headers }, {
|
|
11417
11417
|
url: _(i),
|
|
11418
11418
|
options: d
|
|
11419
11419
|
};
|
|
@@ -11462,7 +11462,7 @@ const LS = function(e) {
|
|
|
11462
11462
|
async getCurrentMotionGroupState(r, a, o, n, s) {
|
|
11463
11463
|
var d, p;
|
|
11464
11464
|
const l = await t.getCurrentMotionGroupState(r, a, o, n, s), i = (e == null ? void 0 : e.serverIndex) ?? 0, c = (p = (d = w["MotionGroupInfosApi.getCurrentMotionGroupState"]) == null ? void 0 : d[i]) == null ? void 0 : p.url;
|
|
11465
|
-
return (u,
|
|
11465
|
+
return (u, f) => A(l, v, O, e)(u, c || f);
|
|
11466
11466
|
},
|
|
11467
11467
|
/**
|
|
11468
11468
|
* Shows the options the motion group offers in regard to the information service. Some motion groups may not provide all information services, e.g. some manufacturers don\'t have a blending zone concept.
|
|
@@ -11571,7 +11571,7 @@ const LS = function(e) {
|
|
|
11571
11571
|
async streamMotionGroupState(r, a, o, n, s, l) {
|
|
11572
11572
|
var p, u;
|
|
11573
11573
|
const i = await t.streamMotionGroupState(r, a, o, n, s, l), c = (e == null ? void 0 : e.serverIndex) ?? 0, d = (u = (p = w["MotionGroupInfosApi.streamMotionGroupState"]) == null ? void 0 : p[c]) == null ? void 0 : u.url;
|
|
11574
|
-
return (
|
|
11574
|
+
return (f, g) => A(i, v, O, e)(f, d || g);
|
|
11575
11575
|
}
|
|
11576
11576
|
};
|
|
11577
11577
|
};
|
|
@@ -12284,7 +12284,7 @@ const JS = function(e) {
|
|
|
12284
12284
|
};
|
|
12285
12285
|
}
|
|
12286
12286
|
};
|
|
12287
|
-
},
|
|
12287
|
+
}, Ct = function(e) {
|
|
12288
12288
|
const t = JS(e);
|
|
12289
12289
|
return {
|
|
12290
12290
|
/**
|
|
@@ -12403,7 +12403,7 @@ class qS extends he {
|
|
|
12403
12403
|
* @memberof ProgramApi
|
|
12404
12404
|
*/
|
|
12405
12405
|
createProgramRunner(t, r, a) {
|
|
12406
|
-
return
|
|
12406
|
+
return Ct(this.configuration).createProgramRunner(t, r, a).then((o) => o(this.axios, this.basePath));
|
|
12407
12407
|
}
|
|
12408
12408
|
/**
|
|
12409
12409
|
* Execute a program in Wandelscript. The Wandelscript can also move multiple robots by using the \'do with\' syntax. The execute operation will be started from the current joint configuration of any addressed robot(s). Addressed robots have to be in control mode for the execute operation to succeed. A request to this endpoint will block this endpoint until the program has been executed, or until an error occurs. The executed movement is returned in case of a succesful execution. Otherwise an error (e.g. out of reach, singularity), is returned. The Wandelscript can either be submitted as is, using Content-type text/plain, or as content-type application/json with the Wandelscript under \"code\" alongside a set of values provided under \"initial_state\". * [WandelEngine & Wandelscript Documentation](/docs/docs/wandelscript)
|
|
@@ -12415,7 +12415,7 @@ class qS extends he {
|
|
|
12415
12415
|
* @memberof ProgramApi
|
|
12416
12416
|
*/
|
|
12417
12417
|
executeProgram(t, r, a) {
|
|
12418
|
-
return
|
|
12418
|
+
return Ct(this.configuration).executeProgram(t, r, a).then((o) => o(this.axios, this.basePath));
|
|
12419
12419
|
}
|
|
12420
12420
|
/**
|
|
12421
12421
|
* Returns information about a program currently executed. When a program is finished: Program response, result, collected Wandelscript logs, etc. When a program is running: Running status, current executed line, etc. ## Parameters - **runner_id**: The id of the program runner
|
|
@@ -12427,7 +12427,7 @@ class qS extends he {
|
|
|
12427
12427
|
* @memberof ProgramApi
|
|
12428
12428
|
*/
|
|
12429
12429
|
getProgramRunner(t, r, a) {
|
|
12430
|
-
return
|
|
12430
|
+
return Ct(this.configuration).getProgramRunner(t, r, a).then((o) => o(this.axios, this.basePath));
|
|
12431
12431
|
}
|
|
12432
12432
|
/**
|
|
12433
12433
|
* Get details about all existing program runners.
|
|
@@ -12438,7 +12438,7 @@ class qS extends he {
|
|
|
12438
12438
|
* @memberof ProgramApi
|
|
12439
12439
|
*/
|
|
12440
12440
|
listProgramRunners(t, r) {
|
|
12441
|
-
return
|
|
12441
|
+
return Ct(this.configuration).listProgramRunners(t, r).then((a) => a(this.axios, this.basePath));
|
|
12442
12442
|
}
|
|
12443
12443
|
/**
|
|
12444
12444
|
* Migrate a program ## Parameters See the **Schema** tab for information about the request body
|
|
@@ -12450,7 +12450,7 @@ class qS extends he {
|
|
|
12450
12450
|
* @memberof ProgramApi
|
|
12451
12451
|
*/
|
|
12452
12452
|
migrateProgram(t, r, a) {
|
|
12453
|
-
return
|
|
12453
|
+
return Ct(this.configuration).migrateProgram(t, r, a).then((o) => o(this.axios, this.basePath));
|
|
12454
12454
|
}
|
|
12455
12455
|
/**
|
|
12456
12456
|
* Plan a program based on the specified robot type. The plan operation can be used to check if a Wandelscript is executable, given the current joint configuration of the robot. If the Wandelscript is executable, the result contains the motion path. If the Wandelscript is not executable, e.g. points that are out of reach, or the joints encounter a singularity, the reason is returned. The plan operation can be used in other operating modes besides control mode. The Wandelscript can either be submitted as is, using Content-type text/plain, or as content-type application/json with the Wandelscript under \"code\" alongside a set of values provided under \"initial_state\". The plan operation can be used in other operating modes besides control mode. The Wandelscript can either be submitted as is, using Content-type text/plain, or as Content-type application/json with the Wandelscript under \"code\" alongside a set of values provided under \"initial_state\". * [WandelEngine & Wandelscript Documentation](/docs/docs/wandelscript)
|
|
@@ -12463,7 +12463,7 @@ class qS extends he {
|
|
|
12463
12463
|
* @memberof ProgramApi
|
|
12464
12464
|
*/
|
|
12465
12465
|
planProgram(t, r, a, o) {
|
|
12466
|
-
return
|
|
12466
|
+
return Ct(this.configuration).planProgram(t, r, a, o).then((n) => n(this.axios, this.basePath));
|
|
12467
12467
|
}
|
|
12468
12468
|
/**
|
|
12469
12469
|
* Stop all runners.
|
|
@@ -12474,7 +12474,7 @@ class qS extends he {
|
|
|
12474
12474
|
* @memberof ProgramApi
|
|
12475
12475
|
*/
|
|
12476
12476
|
stopAllProgramRunner(t, r) {
|
|
12477
|
-
return
|
|
12477
|
+
return Ct(this.configuration).stopAllProgramRunner(t, r).then((a) => a(this.axios, this.basePath));
|
|
12478
12478
|
}
|
|
12479
12479
|
/**
|
|
12480
12480
|
* Stop a specific program runner. If the indicated runner was not running, an error will be returned. ## Parameters - **runner_id**: The id of the program runner
|
|
@@ -12486,7 +12486,7 @@ class qS extends he {
|
|
|
12486
12486
|
* @memberof ProgramApi
|
|
12487
12487
|
*/
|
|
12488
12488
|
stopProgramRunner(t, r, a) {
|
|
12489
|
-
return
|
|
12489
|
+
return Ct(this.configuration).stopProgramRunner(t, r, a).then((o) => o(this.axios, this.basePath));
|
|
12490
12490
|
}
|
|
12491
12491
|
}
|
|
12492
12492
|
const HS = function(e) {
|
|
@@ -13714,8 +13714,8 @@ const ZS = function(e) {
|
|
|
13714
13714
|
e && (i = e.baseOptions);
|
|
13715
13715
|
const c = { method: "PUT", ...i, ...n }, d = {}, p = {}, u = new (e && e.formDataCtor || FormData)();
|
|
13716
13716
|
V(c, e), await P(d, e), o !== void 0 && u.append("AnyValue", new Blob([JSON.stringify(o)], { type: "application/json" })), d["Content-Type"] = "multipart/form-data", a != null && (d["X-Metadata"] = typeof a == "string" ? a : JSON.stringify(a)), R(l, p);
|
|
13717
|
-
let
|
|
13718
|
-
return c.headers = { ...d, ...
|
|
13717
|
+
let f = i && i.headers ? i.headers : {};
|
|
13718
|
+
return c.headers = { ...d, ...f, ...n.headers }, c.data = u, {
|
|
13719
13719
|
url: _(l),
|
|
13720
13720
|
options: c
|
|
13721
13721
|
};
|
|
@@ -13800,7 +13800,7 @@ const ZS = function(e) {
|
|
|
13800
13800
|
async storeObject(r, a, o, n, s) {
|
|
13801
13801
|
var d, p;
|
|
13802
13802
|
const l = await t.storeObject(r, a, o, n, s), i = (e == null ? void 0 : e.serverIndex) ?? 0, c = (p = (d = w["StoreObjectApi.storeObject"]) == null ? void 0 : d[i]) == null ? void 0 : p.url;
|
|
13803
|
-
return (u,
|
|
13803
|
+
return (u, f) => A(l, v, O, e)(u, c || f);
|
|
13804
13804
|
}
|
|
13805
13805
|
};
|
|
13806
13806
|
};
|
|
@@ -14219,8 +14219,8 @@ const a1 = function(e) {
|
|
|
14219
14219
|
const i = "/cells/{cell}/controllers/{controller}/teach-pendant/ios/{io}".replace("{cell}", encodeURIComponent(String(t))).replace("{controller}", encodeURIComponent(String(r))).replace("{io}", encodeURIComponent(String(a))), c = new URL(i, C);
|
|
14220
14220
|
let d;
|
|
14221
14221
|
e && (d = e.baseOptions);
|
|
14222
|
-
const p = { method: "PUT", ...d, ...l }, u = {},
|
|
14223
|
-
V(p, e), await P(u, e), o !== void 0 && (
|
|
14222
|
+
const p = { method: "PUT", ...d, ...l }, u = {}, f = {};
|
|
14223
|
+
V(p, e), await P(u, e), o !== void 0 && (f.bool = o), n !== void 0 && (f.integer = n), s !== void 0 && (f.double = s), R(c, f);
|
|
14224
14224
|
let g = d && d.headers ? d.headers : {};
|
|
14225
14225
|
return p.headers = { ...u, ...g, ...l.headers }, {
|
|
14226
14226
|
url: _(c),
|
|
@@ -14298,7 +14298,7 @@ const a1 = function(e) {
|
|
|
14298
14298
|
async setMotionGroupState(r, a, o, n, s) {
|
|
14299
14299
|
var d, p;
|
|
14300
14300
|
const l = await t.setMotionGroupState(r, a, o, n, s), i = (e == null ? void 0 : e.serverIndex) ?? 0, c = (p = (d = w["VirtualRobotApi.setMotionGroupState"]) == null ? void 0 : d[i]) == null ? void 0 : p.url;
|
|
14301
|
-
return (u,
|
|
14301
|
+
return (u, f) => A(l, v, O, e)(u, c || f);
|
|
14302
14302
|
},
|
|
14303
14303
|
/**
|
|
14304
14304
|
* Sets the value of a virtual controller I/O.
|
|
@@ -14313,8 +14313,8 @@ const a1 = function(e) {
|
|
|
14313
14313
|
* @throws {RequiredError}
|
|
14314
14314
|
*/
|
|
14315
14315
|
async setVirtualRobotIOValue(r, a, o, n, s, l, i) {
|
|
14316
|
-
var u,
|
|
14317
|
-
const c = await t.setVirtualRobotIOValue(r, a, o, n, s, l, i), d = (e == null ? void 0 : e.serverIndex) ?? 0, p = (
|
|
14316
|
+
var u, f;
|
|
14317
|
+
const c = await t.setVirtualRobotIOValue(r, a, o, n, s, l, i), d = (e == null ? void 0 : e.serverIndex) ?? 0, p = (f = (u = w["VirtualRobotApi.setVirtualRobotIOValue"]) == null ? void 0 : u[d]) == null ? void 0 : f.url;
|
|
14318
14318
|
return (g, h) => A(c, v, O, e)(g, p || h);
|
|
14319
14319
|
}
|
|
14320
14320
|
};
|
|
@@ -14515,7 +14515,7 @@ const n1 = function(e) {
|
|
|
14515
14515
|
async setMotionGroupBehavior(r, a, o, n, s) {
|
|
14516
14516
|
var d, p;
|
|
14517
14517
|
const l = await t.setMotionGroupBehavior(r, a, o, n, s), i = (e == null ? void 0 : e.serverIndex) ?? 0, c = (p = (d = w["VirtualRobotBehaviorApi.setMotionGroupBehavior"]) == null ? void 0 : d[i]) == null ? void 0 : p.url;
|
|
14518
|
-
return (u,
|
|
14518
|
+
return (u, f) => A(l, v, O, e)(u, c || f);
|
|
14519
14519
|
}
|
|
14520
14520
|
};
|
|
14521
14521
|
};
|
|
@@ -15032,7 +15032,7 @@ const c1 = function(e) {
|
|
|
15032
15032
|
};
|
|
15033
15033
|
}
|
|
15034
15034
|
};
|
|
15035
|
-
},
|
|
15035
|
+
}, Vt = function(e) {
|
|
15036
15036
|
const t = c1(e);
|
|
15037
15037
|
return {
|
|
15038
15038
|
/**
|
|
@@ -15062,7 +15062,7 @@ const c1 = function(e) {
|
|
|
15062
15062
|
async addVirtualRobotTcp(r, a, o, n, s) {
|
|
15063
15063
|
var d, p;
|
|
15064
15064
|
const l = await t.addVirtualRobotTcp(r, a, o, n, s), i = (e == null ? void 0 : e.serverIndex) ?? 0, c = (p = (d = w["VirtualRobotSetupApi.addVirtualRobotTcp"]) == null ? void 0 : d[i]) == null ? void 0 : p.url;
|
|
15065
|
-
return (u,
|
|
15065
|
+
return (u, f) => A(l, v, O, e)(u, c || f);
|
|
15066
15066
|
},
|
|
15067
15067
|
/**
|
|
15068
15068
|
* Deletes a coordinate system from the virtual controller. This will remove the coordinate system from the list of coordinate systems and remove all dependent coordinate systems which use the deleted coordinate system as reference.
|
|
@@ -15077,7 +15077,7 @@ const c1 = function(e) {
|
|
|
15077
15077
|
async deleteVirtualRobotCoordinateSystem(r, a, o, n, s) {
|
|
15078
15078
|
var d, p;
|
|
15079
15079
|
const l = await t.deleteVirtualRobotCoordinateSystem(r, a, o, n, s), i = (e == null ? void 0 : e.serverIndex) ?? 0, c = (p = (d = w["VirtualRobotSetupApi.deleteVirtualRobotCoordinateSystem"]) == null ? void 0 : d[i]) == null ? void 0 : p.url;
|
|
15080
|
-
return (u,
|
|
15080
|
+
return (u, f) => A(l, v, O, e)(u, c || f);
|
|
15081
15081
|
},
|
|
15082
15082
|
/**
|
|
15083
15083
|
* Removes the TCP from the motion group. An unknown TCP is a valid input.
|
|
@@ -15092,7 +15092,7 @@ const c1 = function(e) {
|
|
|
15092
15092
|
async deleteVirtualRobotTcp(r, a, o, n, s) {
|
|
15093
15093
|
var d, p;
|
|
15094
15094
|
const l = await t.deleteVirtualRobotTcp(r, a, o, n, s), i = (e == null ? void 0 : e.serverIndex) ?? 0, c = (p = (d = w["VirtualRobotSetupApi.deleteVirtualRobotTcp"]) == null ? void 0 : d[i]) == null ? void 0 : p.url;
|
|
15095
|
-
return (u,
|
|
15095
|
+
return (u, f) => A(l, v, O, e)(u, c || f);
|
|
15096
15096
|
},
|
|
15097
15097
|
/**
|
|
15098
15098
|
* Gets motion group mounting. The motion group is based on the origin of the returned coordinate system.
|
|
@@ -15148,7 +15148,7 @@ const c1 = function(e) {
|
|
|
15148
15148
|
async setVirtualRobotMounting(r, a, o, n, s) {
|
|
15149
15149
|
var d, p;
|
|
15150
15150
|
const l = await t.setVirtualRobotMounting(r, a, o, n, s), i = (e == null ? void 0 : e.serverIndex) ?? 0, c = (p = (d = w["VirtualRobotSetupApi.setVirtualRobotMounting"]) == null ? void 0 : d[i]) == null ? void 0 : p.url;
|
|
15151
|
-
return (u,
|
|
15151
|
+
return (u, f) => A(l, v, O, e)(u, c || f);
|
|
15152
15152
|
}
|
|
15153
15153
|
};
|
|
15154
15154
|
};
|
|
@@ -15164,7 +15164,7 @@ class d1 extends he {
|
|
|
15164
15164
|
* @memberof VirtualRobotSetupApi
|
|
15165
15165
|
*/
|
|
15166
15166
|
addVirtualRobotCoordinateSystem(t, r, a, o) {
|
|
15167
|
-
return
|
|
15167
|
+
return Vt(this.configuration).addVirtualRobotCoordinateSystem(t, r, a, o).then((n) => n(this.axios, this.basePath));
|
|
15168
15168
|
}
|
|
15169
15169
|
/**
|
|
15170
15170
|
* Adds a new TCP or updates an existing TCP in the motion group. The position and rotation values in the request body are defined within the flange’s coordinate system. > **NOTE** > > Ensure the TCP\'s position is within the robot\'s reach. Refer to the robot’s documentation or data sheet for details like joint limits or reach.
|
|
@@ -15178,7 +15178,7 @@ class d1 extends he {
|
|
|
15178
15178
|
* @memberof VirtualRobotSetupApi
|
|
15179
15179
|
*/
|
|
15180
15180
|
addVirtualRobotTcp(t, r, a, o, n) {
|
|
15181
|
-
return
|
|
15181
|
+
return Vt(this.configuration).addVirtualRobotTcp(t, r, a, o, n).then((s) => s(this.axios, this.basePath));
|
|
15182
15182
|
}
|
|
15183
15183
|
/**
|
|
15184
15184
|
* Deletes a coordinate system from the virtual controller. This will remove the coordinate system from the list of coordinate systems and remove all dependent coordinate systems which use the deleted coordinate system as reference.
|
|
@@ -15192,7 +15192,7 @@ class d1 extends he {
|
|
|
15192
15192
|
* @memberof VirtualRobotSetupApi
|
|
15193
15193
|
*/
|
|
15194
15194
|
deleteVirtualRobotCoordinateSystem(t, r, a, o, n) {
|
|
15195
|
-
return
|
|
15195
|
+
return Vt(this.configuration).deleteVirtualRobotCoordinateSystem(t, r, a, o, n).then((s) => s(this.axios, this.basePath));
|
|
15196
15196
|
}
|
|
15197
15197
|
/**
|
|
15198
15198
|
* Removes the TCP from the motion group. An unknown TCP is a valid input.
|
|
@@ -15206,7 +15206,7 @@ class d1 extends he {
|
|
|
15206
15206
|
* @memberof VirtualRobotSetupApi
|
|
15207
15207
|
*/
|
|
15208
15208
|
deleteVirtualRobotTcp(t, r, a, o, n) {
|
|
15209
|
-
return
|
|
15209
|
+
return Vt(this.configuration).deleteVirtualRobotTcp(t, r, a, o, n).then((s) => s(this.axios, this.basePath));
|
|
15210
15210
|
}
|
|
15211
15211
|
/**
|
|
15212
15212
|
* Gets motion group mounting. The motion group is based on the origin of the returned coordinate system.
|
|
@@ -15219,7 +15219,7 @@ class d1 extends he {
|
|
|
15219
15219
|
* @memberof VirtualRobotSetupApi
|
|
15220
15220
|
*/
|
|
15221
15221
|
getVirtualRobotMounting(t, r, a, o) {
|
|
15222
|
-
return
|
|
15222
|
+
return Vt(this.configuration).getVirtualRobotMounting(t, r, a, o).then((n) => n(this.axios, this.basePath));
|
|
15223
15223
|
}
|
|
15224
15224
|
/**
|
|
15225
15225
|
* Lists all coordinate systems on the robot controller.
|
|
@@ -15231,7 +15231,7 @@ class d1 extends he {
|
|
|
15231
15231
|
* @memberof VirtualRobotSetupApi
|
|
15232
15232
|
*/
|
|
15233
15233
|
listVirtualRobotCoordinateSystems(t, r, a) {
|
|
15234
|
-
return
|
|
15234
|
+
return Vt(this.configuration).listVirtualRobotCoordinateSystems(t, r, a).then((o) => o(this.axios, this.basePath));
|
|
15235
15235
|
}
|
|
15236
15236
|
/**
|
|
15237
15237
|
* Lists TCPs of the motion group. An empty TCP list is valid, for example for external axes.
|
|
@@ -15244,7 +15244,7 @@ class d1 extends he {
|
|
|
15244
15244
|
* @memberof VirtualRobotSetupApi
|
|
15245
15245
|
*/
|
|
15246
15246
|
listVirtualRobotTcps(t, r, a, o) {
|
|
15247
|
-
return
|
|
15247
|
+
return Vt(this.configuration).listVirtualRobotTcps(t, r, a, o).then((n) => n(this.axios, this.basePath));
|
|
15248
15248
|
}
|
|
15249
15249
|
/**
|
|
15250
15250
|
* Sets motion group mounting by specifying a coordinate system. The motion group will be based on the coordinate system\'s origin. The coordinate system defines a transformation offset. The transformation offset is defined by a unique identifier, a name for front end usage and an offset in another coordinate system referenced by the unique identifier of the reference coordinate system.
|
|
@@ -15258,7 +15258,7 @@ class d1 extends he {
|
|
|
15258
15258
|
* @memberof VirtualRobotSetupApi
|
|
15259
15259
|
*/
|
|
15260
15260
|
setVirtualRobotMounting(t, r, a, o, n) {
|
|
15261
|
-
return
|
|
15261
|
+
return Vt(this.configuration).setVirtualRobotMounting(t, r, a, o, n).then((s) => s(this.axios, this.basePath));
|
|
15262
15262
|
}
|
|
15263
15263
|
}
|
|
15264
15264
|
function ft(e, t, r) {
|
|
@@ -15291,24 +15291,24 @@ class p1 {
|
|
|
15291
15291
|
*/
|
|
15292
15292
|
static slerpFlat(t, r, a, o, n, s, l) {
|
|
15293
15293
|
let i = a[o + 0], c = a[o + 1], d = a[o + 2], p = a[o + 3];
|
|
15294
|
-
const u = n[s + 0],
|
|
15294
|
+
const u = n[s + 0], f = n[s + 1], g = n[s + 2], h = n[s + 3];
|
|
15295
15295
|
if (l === 0) {
|
|
15296
15296
|
t[r + 0] = i, t[r + 1] = c, t[r + 2] = d, t[r + 3] = p;
|
|
15297
15297
|
return;
|
|
15298
15298
|
}
|
|
15299
15299
|
if (l === 1) {
|
|
15300
|
-
t[r + 0] = u, t[r + 1] =
|
|
15300
|
+
t[r + 0] = u, t[r + 1] = f, t[r + 2] = g, t[r + 3] = h;
|
|
15301
15301
|
return;
|
|
15302
15302
|
}
|
|
15303
|
-
if (p !== h || i !== u || c !==
|
|
15303
|
+
if (p !== h || i !== u || c !== f || d !== g) {
|
|
15304
15304
|
let x = 1 - l;
|
|
15305
|
-
const
|
|
15306
|
-
if (
|
|
15307
|
-
const D = Math.sqrt(
|
|
15305
|
+
const I = i * u + c * f + d * g + p * h, F = I >= 0 ? 1 : -1, N = 1 - I * I;
|
|
15306
|
+
if (N > Number.EPSILON) {
|
|
15307
|
+
const D = Math.sqrt(N), H = Math.atan2(D, I * F);
|
|
15308
15308
|
x = Math.sin(x * H) / D, l = Math.sin(l * H) / D;
|
|
15309
15309
|
}
|
|
15310
|
-
const z = l *
|
|
15311
|
-
if (i = i * x + u * z, c = c * x +
|
|
15310
|
+
const z = l * F;
|
|
15311
|
+
if (i = i * x + u * z, c = c * x + f * z, d = d * x + g * z, p = p * x + h * z, x === 1 - l) {
|
|
15312
15312
|
const D = 1 / Math.sqrt(i * i + c * c + d * d + p * p);
|
|
15313
15313
|
i *= D, c *= D, d *= D, p *= D;
|
|
15314
15314
|
}
|
|
@@ -15329,8 +15329,8 @@ class p1 {
|
|
|
15329
15329
|
* @see {@link Quaternion#multiplyQuaternions}.
|
|
15330
15330
|
*/
|
|
15331
15331
|
static multiplyQuaternionsFlat(t, r, a, o, n, s) {
|
|
15332
|
-
const l = a[o], i = a[o + 1], c = a[o + 2], d = a[o + 3], p = n[s], u = n[s + 1],
|
|
15333
|
-
return t[r] = l * g + d * p + i *
|
|
15332
|
+
const l = a[o], i = a[o + 1], c = a[o + 2], d = a[o + 3], p = n[s], u = n[s + 1], f = n[s + 2], g = n[s + 3];
|
|
15333
|
+
return t[r] = l * g + d * p + i * f - c * u, t[r + 1] = i * g + d * u + c * p - l * f, t[r + 2] = c * g + d * f + l * u - i * p, t[r + 3] = d * g - l * p - i * u - c * f, t;
|
|
15334
15334
|
}
|
|
15335
15335
|
/**
|
|
15336
15336
|
* The x value of this quaternion.
|
|
@@ -15418,25 +15418,25 @@ class p1 {
|
|
|
15418
15418
|
* @return {Quaternion} A reference to this quaternion.
|
|
15419
15419
|
*/
|
|
15420
15420
|
setFromEuler(t, r = !0) {
|
|
15421
|
-
const a = t._x, o = t._y, n = t._z, s = t._order, l = Math.cos, i = Math.sin, c = l(a / 2), d = l(o / 2), p = l(n / 2), u = i(a / 2),
|
|
15421
|
+
const a = t._x, o = t._y, n = t._z, s = t._order, l = Math.cos, i = Math.sin, c = l(a / 2), d = l(o / 2), p = l(n / 2), u = i(a / 2), f = i(o / 2), g = i(n / 2);
|
|
15422
15422
|
switch (s) {
|
|
15423
15423
|
case "XYZ":
|
|
15424
|
-
this._x = u * d * p + c *
|
|
15424
|
+
this._x = u * d * p + c * f * g, this._y = c * f * p - u * d * g, this._z = c * d * g + u * f * p, this._w = c * d * p - u * f * g;
|
|
15425
15425
|
break;
|
|
15426
15426
|
case "YXZ":
|
|
15427
|
-
this._x = u * d * p + c *
|
|
15427
|
+
this._x = u * d * p + c * f * g, this._y = c * f * p - u * d * g, this._z = c * d * g - u * f * p, this._w = c * d * p + u * f * g;
|
|
15428
15428
|
break;
|
|
15429
15429
|
case "ZXY":
|
|
15430
|
-
this._x = u * d * p - c *
|
|
15430
|
+
this._x = u * d * p - c * f * g, this._y = c * f * p + u * d * g, this._z = c * d * g + u * f * p, this._w = c * d * p - u * f * g;
|
|
15431
15431
|
break;
|
|
15432
15432
|
case "ZYX":
|
|
15433
|
-
this._x = u * d * p - c *
|
|
15433
|
+
this._x = u * d * p - c * f * g, this._y = c * f * p + u * d * g, this._z = c * d * g - u * f * p, this._w = c * d * p + u * f * g;
|
|
15434
15434
|
break;
|
|
15435
15435
|
case "YZX":
|
|
15436
|
-
this._x = u * d * p + c *
|
|
15436
|
+
this._x = u * d * p + c * f * g, this._y = c * f * p + u * d * g, this._z = c * d * g - u * f * p, this._w = c * d * p - u * f * g;
|
|
15437
15437
|
break;
|
|
15438
15438
|
case "XZY":
|
|
15439
|
-
this._x = u * d * p - c *
|
|
15439
|
+
this._x = u * d * p - c * f * g, this._y = c * f * p - u * d * g, this._z = c * d * g + u * f * p, this._w = c * d * p + u * f * g;
|
|
15440
15440
|
break;
|
|
15441
15441
|
default:
|
|
15442
15442
|
console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: " + s);
|
|
@@ -15463,17 +15463,17 @@ class p1 {
|
|
|
15463
15463
|
setFromRotationMatrix(t) {
|
|
15464
15464
|
const r = t.elements, a = r[0], o = r[4], n = r[8], s = r[1], l = r[5], i = r[9], c = r[2], d = r[6], p = r[10], u = a + l + p;
|
|
15465
15465
|
if (u > 0) {
|
|
15466
|
-
const
|
|
15467
|
-
this._w = 0.25 /
|
|
15466
|
+
const f = 0.5 / Math.sqrt(u + 1);
|
|
15467
|
+
this._w = 0.25 / f, this._x = (d - i) * f, this._y = (n - c) * f, this._z = (s - o) * f;
|
|
15468
15468
|
} else if (a > l && a > p) {
|
|
15469
|
-
const
|
|
15470
|
-
this._w = (d - i) /
|
|
15469
|
+
const f = 2 * Math.sqrt(1 + a - l - p);
|
|
15470
|
+
this._w = (d - i) / f, this._x = 0.25 * f, this._y = (o + s) / f, this._z = (n + c) / f;
|
|
15471
15471
|
} else if (l > p) {
|
|
15472
|
-
const
|
|
15473
|
-
this._w = (n - c) /
|
|
15472
|
+
const f = 2 * Math.sqrt(1 + l - a - p);
|
|
15473
|
+
this._w = (n - c) / f, this._x = (o + s) / f, this._y = 0.25 * f, this._z = (i + d) / f;
|
|
15474
15474
|
} else {
|
|
15475
|
-
const
|
|
15476
|
-
this._w = (s - o) /
|
|
15475
|
+
const f = 2 * Math.sqrt(1 + p - a - l);
|
|
15476
|
+
this._w = (s - o) / f, this._x = (n + c) / f, this._y = (i + d) / f, this._z = 0.25 * f;
|
|
15477
15477
|
}
|
|
15478
15478
|
return this._onChangeCallback(), this;
|
|
15479
15479
|
}
|
|
@@ -15624,8 +15624,8 @@ class p1 {
|
|
|
15624
15624
|
return this._w = s, this._x = a, this._y = o, this._z = n, this;
|
|
15625
15625
|
const i = 1 - l * l;
|
|
15626
15626
|
if (i <= Number.EPSILON) {
|
|
15627
|
-
const
|
|
15628
|
-
return this._w =
|
|
15627
|
+
const f = 1 - r;
|
|
15628
|
+
return this._w = f * s + r * this._w, this._x = f * a + r * this._x, this._y = f * o + r * this._y, this._z = f * n + r * this._z, this.normalize(), this;
|
|
15629
15629
|
}
|
|
15630
15630
|
const c = Math.sqrt(i), d = Math.atan2(c, l), p = Math.sin((1 - r) * d) / c, u = Math.sin(r * d) / c;
|
|
15631
15631
|
return this._w = s * p + this._w * u, this._x = a * p + this._x * u, this._y = o * p + this._y * u, this._z = n * p + this._z * u, this._onChangeCallback(), this;
|
|
@@ -16526,7 +16526,7 @@ function h1() {
|
|
|
16526
16526
|
function* i(j) {
|
|
16527
16527
|
const U = [...j];
|
|
16528
16528
|
let k = 0;
|
|
16529
|
-
function
|
|
16529
|
+
function y() {
|
|
16530
16530
|
let M = "";
|
|
16531
16531
|
if (r.test(U[++k]))
|
|
16532
16532
|
for (M += U[k]; a.test(U[++k]); )
|
|
@@ -16554,10 +16554,10 @@ function h1() {
|
|
|
16554
16554
|
else if (M === "\\")
|
|
16555
16555
|
yield { type: "ESCAPED", index: k++, value: U[k++] };
|
|
16556
16556
|
else if (M === ":") {
|
|
16557
|
-
const J =
|
|
16557
|
+
const J = y();
|
|
16558
16558
|
yield { type: "PARAM", index: k, value: J };
|
|
16559
16559
|
} else if (M === "*") {
|
|
16560
|
-
const J =
|
|
16560
|
+
const J = y();
|
|
16561
16561
|
yield { type: "WILDCARD", index: k, value: J };
|
|
16562
16562
|
} else
|
|
16563
16563
|
yield { type: "CHAR", index: k, value: U[k++] };
|
|
@@ -16584,8 +16584,8 @@ function h1() {
|
|
|
16584
16584
|
const k = this.tryConsume(U);
|
|
16585
16585
|
if (k !== void 0)
|
|
16586
16586
|
return k;
|
|
16587
|
-
const { type:
|
|
16588
|
-
throw new TypeError(`Unexpected ${
|
|
16587
|
+
const { type: y, index: M } = this.peek();
|
|
16588
|
+
throw new TypeError(`Unexpected ${y} at ${M}, expected ${U}: ${o}`);
|
|
16589
16589
|
}
|
|
16590
16590
|
text() {
|
|
16591
16591
|
let U = "", k;
|
|
@@ -16601,13 +16601,13 @@ function h1() {
|
|
|
16601
16601
|
}
|
|
16602
16602
|
nt.TokenData = d;
|
|
16603
16603
|
function p(j, U = {}) {
|
|
16604
|
-
const { encodePath: k = t } = U,
|
|
16604
|
+
const { encodePath: k = t } = U, y = new c(i(j));
|
|
16605
16605
|
function M(J) {
|
|
16606
16606
|
const q = [];
|
|
16607
16607
|
for (; ; ) {
|
|
16608
|
-
const re =
|
|
16608
|
+
const re = y.text();
|
|
16609
16609
|
re && q.push({ type: "text", value: k(re) });
|
|
16610
|
-
const Z =
|
|
16610
|
+
const Z = y.tryConsume("PARAM");
|
|
16611
16611
|
if (Z) {
|
|
16612
16612
|
q.push({
|
|
16613
16613
|
type: "param",
|
|
@@ -16615,7 +16615,7 @@ function h1() {
|
|
|
16615
16615
|
});
|
|
16616
16616
|
continue;
|
|
16617
16617
|
}
|
|
16618
|
-
const ve =
|
|
16618
|
+
const ve = y.tryConsume("WILDCARD");
|
|
16619
16619
|
if (ve) {
|
|
16620
16620
|
q.push({
|
|
16621
16621
|
type: "wildcard",
|
|
@@ -16623,21 +16623,21 @@ function h1() {
|
|
|
16623
16623
|
});
|
|
16624
16624
|
continue;
|
|
16625
16625
|
}
|
|
16626
|
-
if (
|
|
16626
|
+
if (y.tryConsume("{")) {
|
|
16627
16627
|
q.push({
|
|
16628
16628
|
type: "group",
|
|
16629
16629
|
tokens: M("}")
|
|
16630
16630
|
});
|
|
16631
16631
|
continue;
|
|
16632
16632
|
}
|
|
16633
|
-
return
|
|
16633
|
+
return y.consume(J), q;
|
|
16634
16634
|
}
|
|
16635
16635
|
}
|
|
16636
16636
|
const L = M("END");
|
|
16637
16637
|
return new d(L);
|
|
16638
16638
|
}
|
|
16639
16639
|
function u(j, U = {}) {
|
|
16640
|
-
const { encode: k = encodeURIComponent, delimiter:
|
|
16640
|
+
const { encode: k = encodeURIComponent, delimiter: y = e } = U, M = j instanceof d ? j : p(j, U), L = f(M.tokens, y, k);
|
|
16641
16641
|
return function(q = {}) {
|
|
16642
16642
|
const [re, ...Z] = L(q);
|
|
16643
16643
|
if (Z.length)
|
|
@@ -16645,11 +16645,11 @@ function h1() {
|
|
|
16645
16645
|
return re;
|
|
16646
16646
|
};
|
|
16647
16647
|
}
|
|
16648
|
-
function
|
|
16649
|
-
const
|
|
16648
|
+
function f(j, U, k) {
|
|
16649
|
+
const y = j.map((M) => g(M, U, k));
|
|
16650
16650
|
return (M) => {
|
|
16651
16651
|
const L = [""];
|
|
16652
|
-
for (const J of
|
|
16652
|
+
for (const J of y) {
|
|
16653
16653
|
const [q, ...re] = J(M);
|
|
16654
16654
|
L[0] += q, L.push(...re);
|
|
16655
16655
|
}
|
|
@@ -16660,13 +16660,13 @@ function h1() {
|
|
|
16660
16660
|
if (j.type === "text")
|
|
16661
16661
|
return () => [j.value];
|
|
16662
16662
|
if (j.type === "group") {
|
|
16663
|
-
const M =
|
|
16663
|
+
const M = f(j.tokens, U, k);
|
|
16664
16664
|
return (L) => {
|
|
16665
16665
|
const [J, ...q] = M(L);
|
|
16666
16666
|
return q.length ? [""] : [J];
|
|
16667
16667
|
};
|
|
16668
16668
|
}
|
|
16669
|
-
const
|
|
16669
|
+
const y = k || t;
|
|
16670
16670
|
return j.type === "wildcard" && k !== !1 ? (M) => {
|
|
16671
16671
|
const L = M[j.name];
|
|
16672
16672
|
if (L == null)
|
|
@@ -16677,7 +16677,7 @@ function h1() {
|
|
|
16677
16677
|
L.map((J, q) => {
|
|
16678
16678
|
if (typeof J != "string")
|
|
16679
16679
|
throw new TypeError(`Expected "${j.name}/${q}" to be a string`);
|
|
16680
|
-
return
|
|
16680
|
+
return y(J);
|
|
16681
16681
|
}).join(U)
|
|
16682
16682
|
];
|
|
16683
16683
|
} : (M) => {
|
|
@@ -16686,11 +16686,11 @@ function h1() {
|
|
|
16686
16686
|
return ["", j.name];
|
|
16687
16687
|
if (typeof L != "string")
|
|
16688
16688
|
throw new TypeError(`Expected "${j.name}" to be a string`);
|
|
16689
|
-
return [
|
|
16689
|
+
return [y(L)];
|
|
16690
16690
|
};
|
|
16691
16691
|
}
|
|
16692
16692
|
function h(j, U = {}) {
|
|
16693
|
-
const { decode: k = decodeURIComponent, delimiter:
|
|
16693
|
+
const { decode: k = decodeURIComponent, delimiter: y = e } = U, { regexp: M, keys: L } = x(j, U), J = L.map((q) => k === !1 ? t : q.type === "param" ? k : (re) => re.split(y).map(k));
|
|
16694
16694
|
return function(re) {
|
|
16695
16695
|
const Z = M.exec(re);
|
|
16696
16696
|
if (!Z)
|
|
@@ -16706,54 +16706,54 @@ function h1() {
|
|
|
16706
16706
|
};
|
|
16707
16707
|
}
|
|
16708
16708
|
function x(j, U = {}) {
|
|
16709
|
-
const { delimiter: k = e, end:
|
|
16709
|
+
const { delimiter: k = e, end: y = !0, sensitive: M = !1, trailing: L = !0 } = U, J = [], q = [], re = M ? "" : "i", ve = (Array.isArray(j) ? j : [j]).map(($) => $ instanceof d ? $ : p($, U));
|
|
16710
16710
|
for (const { tokens: $ } of ve)
|
|
16711
|
-
for (const Q of
|
|
16712
|
-
const oe =
|
|
16711
|
+
for (const Q of I($, 0, [])) {
|
|
16712
|
+
const oe = F(Q, k, J);
|
|
16713
16713
|
q.push(oe);
|
|
16714
16714
|
}
|
|
16715
16715
|
let K = `^(?:${q.join("|")})`;
|
|
16716
|
-
return L && (K += `(?:${l(k)}$)?`), K +=
|
|
16716
|
+
return L && (K += `(?:${l(k)}$)?`), K += y ? "$" : `(?=${l(k)}|$)`, { regexp: new RegExp(K, re), keys: J };
|
|
16717
16717
|
}
|
|
16718
|
-
function*
|
|
16718
|
+
function* I(j, U, k) {
|
|
16719
16719
|
if (U === j.length)
|
|
16720
16720
|
return yield k;
|
|
16721
|
-
const
|
|
16722
|
-
if (
|
|
16721
|
+
const y = j[U];
|
|
16722
|
+
if (y.type === "group") {
|
|
16723
16723
|
const M = k.slice();
|
|
16724
|
-
for (const L of
|
|
16725
|
-
yield*
|
|
16724
|
+
for (const L of I(y.tokens, 0, M))
|
|
16725
|
+
yield* I(j, U + 1, L);
|
|
16726
16726
|
} else
|
|
16727
|
-
k.push(
|
|
16728
|
-
yield*
|
|
16727
|
+
k.push(y);
|
|
16728
|
+
yield* I(j, U + 1, k);
|
|
16729
16729
|
}
|
|
16730
|
-
function
|
|
16731
|
-
let
|
|
16730
|
+
function F(j, U, k) {
|
|
16731
|
+
let y = "", M = "", L = !0;
|
|
16732
16732
|
for (let J = 0; J < j.length; J++) {
|
|
16733
16733
|
const q = j[J];
|
|
16734
16734
|
if (q.type === "text") {
|
|
16735
|
-
|
|
16735
|
+
y += l(q.value), M += q.value, L || (L = q.value.includes(U));
|
|
16736
16736
|
continue;
|
|
16737
16737
|
}
|
|
16738
16738
|
if (q.type === "param" || q.type === "wildcard") {
|
|
16739
16739
|
if (!L && !M)
|
|
16740
16740
|
throw new TypeError(`Missing text after "${q.name}": ${o}`);
|
|
16741
|
-
q.type === "param" ?
|
|
16741
|
+
q.type === "param" ? y += `(${N(U, L ? "" : M)}+)` : y += "([\\s\\S]+)", k.push(q), M = "", L = !1;
|
|
16742
16742
|
continue;
|
|
16743
16743
|
}
|
|
16744
16744
|
}
|
|
16745
|
-
return
|
|
16745
|
+
return y;
|
|
16746
16746
|
}
|
|
16747
|
-
function
|
|
16747
|
+
function N(j, U) {
|
|
16748
16748
|
return U.length < 2 ? j.length < 2 ? `[^${l(j + U)}]` : `(?:(?!${l(j)})[^${l(U)}])` : j.length < 2 ? `(?:(?!${l(U)})[^${l(j)}])` : `(?:(?!${l(U)}|${l(j)})[\\s\\S])`;
|
|
16749
16749
|
}
|
|
16750
16750
|
function z(j) {
|
|
16751
|
-
return j.tokens.map(function U(k,
|
|
16751
|
+
return j.tokens.map(function U(k, y, M) {
|
|
16752
16752
|
if (k.type === "text")
|
|
16753
16753
|
return s(k.value);
|
|
16754
16754
|
if (k.type === "group")
|
|
16755
16755
|
return `{${k.tokens.map(U).join("")}}`;
|
|
16756
|
-
const J = D(k.name) && H(M[
|
|
16756
|
+
const J = D(k.name) && H(M[y + 1]) ? k.name : JSON.stringify(k.name);
|
|
16757
16757
|
if (k.type === "param")
|
|
16758
16758
|
return `:${J}`;
|
|
16759
16759
|
if (k.type === "wildcard")
|
|
@@ -16763,7 +16763,7 @@ function h1() {
|
|
|
16763
16763
|
}
|
|
16764
16764
|
function D(j) {
|
|
16765
16765
|
const [U, ...k] = j;
|
|
16766
|
-
return r.test(U) ? k.every((
|
|
16766
|
+
return r.test(U) ? k.every((y) => a.test(y)) : !1;
|
|
16767
16767
|
}
|
|
16768
16768
|
function H(j) {
|
|
16769
16769
|
return (j == null ? void 0 : j.type) !== "text" ? !0 : !a.test(j.value[0]);
|
|
@@ -16789,18 +16789,18 @@ function sc(e, t, r) {
|
|
|
16789
16789
|
}
|
|
16790
16790
|
var hl = 1e-4, f1 = class lc {
|
|
16791
16791
|
constructor(t, r, a, o, n, s, l, i, c, d, p, u) {
|
|
16792
|
-
this.nova = t, this.controller = r, this.motionGroup = a, this.initialMotionState = o, this.motionStateSocket = n, this.isVirtual = s, this.tcps = l, this.motionGroupSpecification = i, this.safetySetup = c, this.mounting = d, this.initialControllerState = p, this.controllerStateSocket = u, this.connectedJoggingCartesianSocket = null, this.connectedJoggingJointsSocket = null, this.joggingVelocity = 10, this.activationState = "inactive", this.rapidlyChangingMotionState = o, this.controllerState = p, u.addEventListener("message", (
|
|
16792
|
+
this.nova = t, this.controller = r, this.motionGroup = a, this.initialMotionState = o, this.motionStateSocket = n, this.isVirtual = s, this.tcps = l, this.motionGroupSpecification = i, this.safetySetup = c, this.mounting = d, this.initialControllerState = p, this.controllerStateSocket = u, this.connectedJoggingCartesianSocket = null, this.connectedJoggingJointsSocket = null, this.joggingVelocity = 10, this.activationState = "inactive", this.rapidlyChangingMotionState = o, this.controllerState = p, u.addEventListener("message", (f) => {
|
|
16793
16793
|
var g;
|
|
16794
|
-
const h = (g =
|
|
16794
|
+
const h = (g = At(f.data)) == null ? void 0 : g.result;
|
|
16795
16795
|
h && De(() => {
|
|
16796
16796
|
this.controllerState = h;
|
|
16797
16797
|
});
|
|
16798
|
-
}), n.addEventListener("message", (
|
|
16798
|
+
}), n.addEventListener("message", (f) => {
|
|
16799
16799
|
var g;
|
|
16800
|
-
const h = (g =
|
|
16800
|
+
const h = (g = At(f.data)) == null ? void 0 : g.result;
|
|
16801
16801
|
if (!h)
|
|
16802
16802
|
throw new Error(
|
|
16803
|
-
`Failed to get motion state for ${this.motionGroupId}: ${
|
|
16803
|
+
`Failed to get motion state for ${this.motionGroupId}: ${f.data}`
|
|
16804
16804
|
);
|
|
16805
16805
|
nc(
|
|
16806
16806
|
this.rapidlyChangingMotionState.state.joint_position.joints,
|
|
@@ -16829,7 +16829,7 @@ var hl = 1e-4, f1 = class lc {
|
|
|
16829
16829
|
);
|
|
16830
16830
|
const d = t.openReconnectingWebsocket(
|
|
16831
16831
|
`/motion-groups/${r}/state-stream`
|
|
16832
|
-
), p = yield d.firstMessage(), u = (o =
|
|
16832
|
+
), p = yield d.firstMessage(), u = (o = At(p.data)) == null ? void 0 : o.result;
|
|
16833
16833
|
if (!u)
|
|
16834
16834
|
throw new Error(
|
|
16835
16835
|
`Unable to parse initial motion state message ${p.data}`
|
|
@@ -16854,17 +16854,17 @@ var hl = 1e-4, f1 = class lc {
|
|
|
16854
16854
|
}
|
|
16855
16855
|
}), x = t.openReconnectingWebsocket(
|
|
16856
16856
|
`/controllers/${i.controller}/state-stream?response_rate=1000`
|
|
16857
|
-
),
|
|
16858
|
-
if (!
|
|
16857
|
+
), I = yield x.firstMessage(), F = (n = At(I.data)) == null ? void 0 : n.result;
|
|
16858
|
+
if (!F)
|
|
16859
16859
|
throw new Error(
|
|
16860
|
-
`Unable to parse initial controller state message ${
|
|
16860
|
+
`Unable to parse initial controller state message ${I.data}`
|
|
16861
16861
|
);
|
|
16862
16862
|
console.log(
|
|
16863
16863
|
`Connected controller state websocket to controller ${i.controller}. Initial state:
|
|
16864
16864
|
`,
|
|
16865
|
-
|
|
16865
|
+
F
|
|
16866
16866
|
);
|
|
16867
|
-
const { tcps:
|
|
16867
|
+
const { tcps: N } = yield t.api.motionGroupInfos.listTcps(r), z = yield t.api.motionGroupInfos.getMotionGroupSpecification(r), D = yield t.api.motionGroupInfos.getSafetySetup(r);
|
|
16868
16868
|
return new lc(
|
|
16869
16869
|
t,
|
|
16870
16870
|
i,
|
|
@@ -16872,11 +16872,11 @@ var hl = 1e-4, f1 = class lc {
|
|
|
16872
16872
|
u,
|
|
16873
16873
|
d,
|
|
16874
16874
|
g,
|
|
16875
|
-
|
|
16875
|
+
N,
|
|
16876
16876
|
z,
|
|
16877
16877
|
D,
|
|
16878
16878
|
h,
|
|
16879
|
-
|
|
16879
|
+
F,
|
|
16880
16880
|
x
|
|
16881
16881
|
);
|
|
16882
16882
|
});
|
|
@@ -17070,7 +17070,7 @@ var hl = 1e-4, f1 = class lc {
|
|
|
17070
17070
|
), this.cartesianWebsocket.addEventListener(
|
|
17071
17071
|
"message",
|
|
17072
17072
|
(a) => {
|
|
17073
|
-
const o =
|
|
17073
|
+
const o = At(a.data);
|
|
17074
17074
|
if (o && "error" in o)
|
|
17075
17075
|
if (this.opts.onError)
|
|
17076
17076
|
this.opts.onError(a.data);
|
|
@@ -17080,7 +17080,7 @@ var hl = 1e-4, f1 = class lc {
|
|
|
17080
17080
|
)), t === "joint" && !this.jointWebsocket && (this.jointWebsocket = this.nova.openReconnectingWebsocket(
|
|
17081
17081
|
"/motion-groups/move-joint"
|
|
17082
17082
|
), this.jointWebsocket.addEventListener("message", (a) => {
|
|
17083
|
-
const o =
|
|
17083
|
+
const o = At(a.data);
|
|
17084
17084
|
if (o && "error" in o)
|
|
17085
17085
|
if (this.opts.onError)
|
|
17086
17086
|
this.opts.onError(a.data);
|
|
@@ -17180,29 +17180,29 @@ var hl = 1e-4, f1 = class lc {
|
|
|
17180
17180
|
`Current TCP pose coordinate system ${r.coordinate_system} does not match target coordinate system ${o}`
|
|
17181
17181
|
);
|
|
17182
17182
|
if (i.type === "translate") {
|
|
17183
|
-
const
|
|
17184
|
-
|
|
17183
|
+
const f = Object.assign({}, r.position);
|
|
17184
|
+
f[s] += i.distanceMm * (l === "-" ? -1 : 1), d.push({
|
|
17185
17185
|
settings: {
|
|
17186
17186
|
limits_override: {
|
|
17187
17187
|
tcp_velocity_limit: n
|
|
17188
17188
|
}
|
|
17189
17189
|
},
|
|
17190
17190
|
line: {
|
|
17191
|
-
position:
|
|
17191
|
+
position: f,
|
|
17192
17192
|
orientation: r.orientation,
|
|
17193
17193
|
coordinate_system: o
|
|
17194
17194
|
}
|
|
17195
17195
|
});
|
|
17196
17196
|
} else if (i.type === "rotate") {
|
|
17197
|
-
const
|
|
17197
|
+
const f = new gr(
|
|
17198
17198
|
r.orientation.x,
|
|
17199
17199
|
r.orientation.y,
|
|
17200
17200
|
r.orientation.z
|
|
17201
|
-
), g =
|
|
17202
|
-
|
|
17203
|
-
const
|
|
17201
|
+
), g = f.length(), h = f.clone().normalize(), x = i.distanceRads * (l === "-" ? -1 : 1), I = new gr(0, 0, 0);
|
|
17202
|
+
I[s] = 1;
|
|
17203
|
+
const F = Math.cos(0.5 * x) * Math.cos(0.5 * g), N = Math.sin(0.5 * x) * Math.sin(0.5 * g), z = Math.sin(0.5 * x) * Math.cos(0.5 * g), D = Math.cos(0.5 * x) * Math.sin(0.5 * g), H = I.dot(
|
|
17204
17204
|
h
|
|
17205
|
-
), j =
|
|
17205
|
+
), j = I.clone().cross(h), U = 2 * Math.acos(F - N * H), k = U / Math.sin(0.5 * U), y = new gr().addScaledVector(j, N).addScaledVector(I, z).addScaledVector(h, D).multiplyScalar(k);
|
|
17206
17206
|
d.push({
|
|
17207
17207
|
settings: {
|
|
17208
17208
|
limits_override: {
|
|
@@ -17211,7 +17211,7 @@ var hl = 1e-4, f1 = class lc {
|
|
|
17211
17211
|
},
|
|
17212
17212
|
line: {
|
|
17213
17213
|
position: r.position,
|
|
17214
|
-
orientation:
|
|
17214
|
+
orientation: y,
|
|
17215
17215
|
coordinate_system: o
|
|
17216
17216
|
}
|
|
17217
17217
|
});
|
|
@@ -17311,7 +17311,7 @@ var b1 = class cc {
|
|
|
17311
17311
|
constructor(t, r, a, o, n) {
|
|
17312
17312
|
this.nova = t, this.controller = r, this.motionGroup = a, this.initialMotionState = o, this.motionStateSocket = n, this.rapidlyChangingMotionState = o, n.addEventListener("message", (s) => {
|
|
17313
17313
|
var l;
|
|
17314
|
-
const i = (l =
|
|
17314
|
+
const i = (l = At(s.data)) == null ? void 0 : l.result;
|
|
17315
17315
|
if (!i)
|
|
17316
17316
|
throw new Error(
|
|
17317
17317
|
`Failed to get motion state for ${this.motionGroupId}: ${s.data}`
|
|
@@ -17353,7 +17353,7 @@ var b1 = class cc {
|
|
|
17353
17353
|
`/motion-groups/${r}/state-stream`
|
|
17354
17354
|
), d = yield c.firstMessage();
|
|
17355
17355
|
console.log("got first message", d);
|
|
17356
|
-
const p = (a =
|
|
17356
|
+
const p = (a = At(d.data)) == null ? void 0 : a.result;
|
|
17357
17357
|
if (!p)
|
|
17358
17358
|
throw new Error(
|
|
17359
17359
|
`Unable to parse initial motion state message ${d.data}`
|
|
@@ -18822,7 +18822,7 @@ function V1(e) {
|
|
|
18822
18822
|
}
|
|
18823
18823
|
const dc = (e) => {
|
|
18824
18824
|
const t = e.softTimeout || 3e3, [r, a] = Ht(!1), o = qe();
|
|
18825
|
-
return
|
|
18825
|
+
return Tt(() => {
|
|
18826
18826
|
const n = setTimeout(() => {
|
|
18827
18827
|
a(!0);
|
|
18828
18828
|
}, t);
|
|
@@ -18930,20 +18930,20 @@ function N1(e, t) {
|
|
|
18930
18930
|
var r = this.__data__, a = To(r, e);
|
|
18931
18931
|
return a < 0 ? (++this.size, r.push([e, t])) : r[a][1] = t, this;
|
|
18932
18932
|
}
|
|
18933
|
-
function
|
|
18933
|
+
function xt(e) {
|
|
18934
18934
|
var t = -1, r = e == null ? 0 : e.length;
|
|
18935
18935
|
for (this.clear(); ++t < r; ) {
|
|
18936
18936
|
var a = e[t];
|
|
18937
18937
|
this.set(a[0], a[1]);
|
|
18938
18938
|
}
|
|
18939
18939
|
}
|
|
18940
|
-
|
|
18941
|
-
|
|
18942
|
-
|
|
18943
|
-
|
|
18944
|
-
|
|
18940
|
+
xt.prototype.clear = $1;
|
|
18941
|
+
xt.prototype.delete = B1;
|
|
18942
|
+
xt.prototype.get = L1;
|
|
18943
|
+
xt.prototype.has = F1;
|
|
18944
|
+
xt.prototype.set = N1;
|
|
18945
18945
|
function z1() {
|
|
18946
|
-
this.__data__ = new
|
|
18946
|
+
this.__data__ = new xt(), this.size = 0;
|
|
18947
18947
|
}
|
|
18948
18948
|
function D1(e) {
|
|
18949
18949
|
var t = this.__data__, r = t.delete(e);
|
|
@@ -19041,7 +19041,7 @@ qt.prototype.set = bv;
|
|
|
19041
19041
|
function Sv() {
|
|
19042
19042
|
this.size = 0, this.__data__ = {
|
|
19043
19043
|
hash: new qt(),
|
|
19044
|
-
map: new (oa ||
|
|
19044
|
+
map: new (oa || xt)(),
|
|
19045
19045
|
string: new qt()
|
|
19046
19046
|
};
|
|
19047
19047
|
}
|
|
@@ -19067,38 +19067,38 @@ function Cv(e, t) {
|
|
|
19067
19067
|
var r = Io(this, e), a = r.size;
|
|
19068
19068
|
return r.set(e, t), this.size += r.size == a ? 0 : 1, this;
|
|
19069
19069
|
}
|
|
19070
|
-
function
|
|
19070
|
+
function Ot(e) {
|
|
19071
19071
|
var t = -1, r = e == null ? 0 : e.length;
|
|
19072
19072
|
for (this.clear(); ++t < r; ) {
|
|
19073
19073
|
var a = e[t];
|
|
19074
19074
|
this.set(a[0], a[1]);
|
|
19075
19075
|
}
|
|
19076
19076
|
}
|
|
19077
|
-
|
|
19078
|
-
|
|
19079
|
-
|
|
19080
|
-
|
|
19081
|
-
|
|
19077
|
+
Ot.prototype.clear = Sv;
|
|
19078
|
+
Ot.prototype.delete = xv;
|
|
19079
|
+
Ot.prototype.get = Ov;
|
|
19080
|
+
Ot.prototype.has = wv;
|
|
19081
|
+
Ot.prototype.set = Cv;
|
|
19082
19082
|
var Vv = 200;
|
|
19083
19083
|
function Pv(e, t) {
|
|
19084
19084
|
var r = this.__data__;
|
|
19085
|
-
if (r instanceof
|
|
19085
|
+
if (r instanceof xt) {
|
|
19086
19086
|
var a = r.__data__;
|
|
19087
19087
|
if (!oa || a.length < Vv - 1)
|
|
19088
19088
|
return a.push([e, t]), this.size = ++r.size, this;
|
|
19089
|
-
r = this.__data__ = new
|
|
19089
|
+
r = this.__data__ = new Ot(a);
|
|
19090
19090
|
}
|
|
19091
19091
|
return r.set(e, t), this.size = r.size, this;
|
|
19092
19092
|
}
|
|
19093
|
-
function
|
|
19094
|
-
var t = this.__data__ = new
|
|
19093
|
+
function bt(e) {
|
|
19094
|
+
var t = this.__data__ = new xt(e);
|
|
19095
19095
|
this.size = t.size;
|
|
19096
19096
|
}
|
|
19097
|
-
|
|
19098
|
-
|
|
19099
|
-
|
|
19100
|
-
|
|
19101
|
-
|
|
19097
|
+
bt.prototype.clear = z1;
|
|
19098
|
+
bt.prototype.delete = D1;
|
|
19099
|
+
bt.prototype.get = G1;
|
|
19100
|
+
bt.prototype.has = J1;
|
|
19101
|
+
bt.prototype.set = Pv;
|
|
19102
19102
|
var Rv = "__lodash_hash_undefined__";
|
|
19103
19103
|
function _v(e) {
|
|
19104
19104
|
return this.__data__.set(e, Rv), this;
|
|
@@ -19108,7 +19108,7 @@ function Av(e) {
|
|
|
19108
19108
|
}
|
|
19109
19109
|
function ao(e) {
|
|
19110
19110
|
var t = -1, r = e == null ? 0 : e.length;
|
|
19111
|
-
for (this.__data__ = new
|
|
19111
|
+
for (this.__data__ = new Ot(); ++t < r; )
|
|
19112
19112
|
this.add(e[t]);
|
|
19113
19113
|
}
|
|
19114
19114
|
ao.prototype.add = ao.prototype.push = _v;
|
|
@@ -19130,7 +19130,7 @@ function hc(e, t, r, a, o, n) {
|
|
|
19130
19130
|
var c = n.get(e), d = n.get(t);
|
|
19131
19131
|
if (c && d)
|
|
19132
19132
|
return c == t && d == e;
|
|
19133
|
-
var p = -1, u = !0,
|
|
19133
|
+
var p = -1, u = !0, f = r & Mv ? new ao() : void 0;
|
|
19134
19134
|
for (n.set(e, t), n.set(t, e); ++p < l; ) {
|
|
19135
19135
|
var g = e[p], h = t[p];
|
|
19136
19136
|
if (a)
|
|
@@ -19141,10 +19141,10 @@ function hc(e, t, r, a, o, n) {
|
|
|
19141
19141
|
u = !1;
|
|
19142
19142
|
break;
|
|
19143
19143
|
}
|
|
19144
|
-
if (
|
|
19145
|
-
if (!Tv(t, function(
|
|
19146
|
-
if (!Iv(
|
|
19147
|
-
return
|
|
19144
|
+
if (f) {
|
|
19145
|
+
if (!Tv(t, function(I, F) {
|
|
19146
|
+
if (!Iv(f, F) && (g === I || o(g, I, r, a, n)))
|
|
19147
|
+
return f.push(F);
|
|
19148
19148
|
})) {
|
|
19149
19149
|
u = !1;
|
|
19150
19150
|
break;
|
|
@@ -19322,17 +19322,17 @@ function Zx(e, t, r, a, o, n) {
|
|
|
19322
19322
|
if (!(s ? u in t : Xx.call(t, u)))
|
|
19323
19323
|
return !1;
|
|
19324
19324
|
}
|
|
19325
|
-
var
|
|
19326
|
-
if (
|
|
19327
|
-
return
|
|
19325
|
+
var f = n.get(e), g = n.get(t);
|
|
19326
|
+
if (f && g)
|
|
19327
|
+
return f == t && g == e;
|
|
19328
19328
|
var h = !0;
|
|
19329
19329
|
n.set(e, t), n.set(t, e);
|
|
19330
19330
|
for (var x = s; ++p < i; ) {
|
|
19331
19331
|
u = l[p];
|
|
19332
|
-
var
|
|
19332
|
+
var I = e[u], F = t[u];
|
|
19333
19333
|
if (a)
|
|
19334
|
-
var
|
|
19335
|
-
if (!(
|
|
19334
|
+
var N = s ? a(F, I, u, t, e, n) : a(I, F, u, e, t, n);
|
|
19335
|
+
if (!(N === void 0 ? I === F || o(I, F, r, a, n) : N)) {
|
|
19336
19336
|
h = !1;
|
|
19337
19337
|
break;
|
|
19338
19338
|
}
|
|
@@ -19344,8 +19344,8 @@ function Zx(e, t, r, a, o, n) {
|
|
|
19344
19344
|
}
|
|
19345
19345
|
return n.delete(e), n.delete(t), h;
|
|
19346
19346
|
}
|
|
19347
|
-
var _n = Xt(pt, "DataView"), An = Xt(pt, "Promise"), Tn = Xt(pt, "Set"), In = Xt(pt, "WeakMap"), Vl = "[object Map]", eO = "[object Object]", Pl = "[object Promise]", Rl = "[object Set]", _l = "[object WeakMap]", Al = "[object DataView]", tO = Yt(_n), rO = Yt(oa), aO = Yt(An), oO = Yt(Tn), nO = Yt(In),
|
|
19348
|
-
(_n &&
|
|
19347
|
+
var _n = Xt(pt, "DataView"), An = Xt(pt, "Promise"), Tn = Xt(pt, "Set"), In = Xt(pt, "WeakMap"), Vl = "[object Map]", eO = "[object Object]", Pl = "[object Promise]", Rl = "[object Set]", _l = "[object WeakMap]", Al = "[object DataView]", tO = Yt(_n), rO = Yt(oa), aO = Yt(An), oO = Yt(Tn), nO = Yt(In), Rt = Qt;
|
|
19348
|
+
(_n && Rt(new _n(new ArrayBuffer(1))) != Al || oa && Rt(new oa()) != Vl || An && Rt(An.resolve()) != Pl || Tn && Rt(new Tn()) != Rl || In && Rt(new In()) != _l) && (Rt = function(e) {
|
|
19349
19349
|
var t = Qt(e), r = t == eO ? e.constructor : void 0, a = r ? Yt(r) : "";
|
|
19350
19350
|
if (a)
|
|
19351
19351
|
switch (a) {
|
|
@@ -19364,7 +19364,7 @@ var _n = Xt(pt, "DataView"), An = Xt(pt, "Promise"), Tn = Xt(pt, "Set"), In = Xt
|
|
|
19364
19364
|
});
|
|
19365
19365
|
var sO = 1, Tl = "[object Arguments]", Il = "[object Array]", Ia = "[object Object]", lO = Object.prototype, El = lO.hasOwnProperty;
|
|
19366
19366
|
function iO(e, t, r, a, o, n) {
|
|
19367
|
-
var s = ct(e), l = ct(t), i = s ? Il :
|
|
19367
|
+
var s = ct(e), l = ct(t), i = s ? Il : Rt(e), c = l ? Il : Rt(t);
|
|
19368
19368
|
i = i == Tl ? Ia : i, c = c == Tl ? Ia : c;
|
|
19369
19369
|
var d = i == Ia, p = c == Ia, u = i == c;
|
|
19370
19370
|
if (u && Rn(e)) {
|
|
@@ -19373,15 +19373,15 @@ function iO(e, t, r, a, o, n) {
|
|
|
19373
19373
|
s = !0, d = !1;
|
|
19374
19374
|
}
|
|
19375
19375
|
if (u && !d)
|
|
19376
|
-
return n || (n = new
|
|
19376
|
+
return n || (n = new bt()), s || Sc(e) ? hc(e, t, r, a, o, n) : Qv(e, t, i, r, a, o, n);
|
|
19377
19377
|
if (!(r & sO)) {
|
|
19378
|
-
var
|
|
19379
|
-
if (
|
|
19380
|
-
var h =
|
|
19381
|
-
return n || (n = new
|
|
19378
|
+
var f = d && El.call(e, "__wrapped__"), g = p && El.call(t, "__wrapped__");
|
|
19379
|
+
if (f || g) {
|
|
19380
|
+
var h = f ? e.value() : e, x = g ? t.value() : t;
|
|
19381
|
+
return n || (n = new bt()), o(h, x, r, a, n);
|
|
19382
19382
|
}
|
|
19383
19383
|
}
|
|
19384
|
-
return u ? (n || (n = new
|
|
19384
|
+
return u ? (n || (n = new bt()), Zx(e, t, r, a, o, n)) : !1;
|
|
19385
19385
|
}
|
|
19386
19386
|
function Eo(e, t, r, a, o) {
|
|
19387
19387
|
return e === t ? !0 : e == null || t == null || !Gt(e) && !Gt(t) ? e !== e && t !== t : iO(e, t, r, a, Eo, o);
|
|
@@ -19394,7 +19394,7 @@ const xc = ({
|
|
|
19394
19394
|
}) => {
|
|
19395
19395
|
const { t } = dt(), [r, a] = Ht(
|
|
19396
19396
|
e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached
|
|
19397
|
-
), o =
|
|
19397
|
+
), o = yt(r);
|
|
19398
19398
|
ca(() => {
|
|
19399
19399
|
const s = e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;
|
|
19400
19400
|
cO(o.current, s) || (o.current = s, a(s));
|
|
@@ -19513,7 +19513,7 @@ function xO(e, t, r, a) {
|
|
|
19513
19513
|
if (i === void 0 && !(l in e))
|
|
19514
19514
|
return !1;
|
|
19515
19515
|
} else {
|
|
19516
|
-
var d = new
|
|
19516
|
+
var d = new bt(), p;
|
|
19517
19517
|
if (!(p === void 0 ? Eo(c, i, SO | vO, a, d) : p))
|
|
19518
19518
|
return !1;
|
|
19519
19519
|
}
|
|
@@ -19559,9 +19559,9 @@ function Wn(e, t) {
|
|
|
19559
19559
|
var s = e.apply(this, a);
|
|
19560
19560
|
return r.cache = n.set(o, s) || n, s;
|
|
19561
19561
|
};
|
|
19562
|
-
return r.cache = new (Wn.Cache ||
|
|
19562
|
+
return r.cache = new (Wn.Cache || Ot)(), r;
|
|
19563
19563
|
}
|
|
19564
|
-
Wn.Cache =
|
|
19564
|
+
Wn.Cache = Ot;
|
|
19565
19565
|
var RO = 500;
|
|
19566
19566
|
function _O(e) {
|
|
19567
19567
|
var t = Wn(e, function(a) {
|
|
@@ -20038,7 +20038,7 @@ function ew(e) {
|
|
|
20038
20038
|
className: n
|
|
20039
20039
|
} = e;
|
|
20040
20040
|
if (!t) {
|
|
20041
|
-
const
|
|
20041
|
+
const f = gt(r == null ? void 0 : r.className, n, o == null ? void 0 : o.className, a == null ? void 0 : a.className), g = {
|
|
20042
20042
|
...r == null ? void 0 : r.style,
|
|
20043
20043
|
...o == null ? void 0 : o.style,
|
|
20044
20044
|
...a == null ? void 0 : a.style
|
|
@@ -20047,7 +20047,7 @@ function ew(e) {
|
|
|
20047
20047
|
...o,
|
|
20048
20048
|
...a
|
|
20049
20049
|
};
|
|
20050
|
-
return
|
|
20050
|
+
return f.length > 0 && (h.className = f), Object.keys(g).length > 0 && (h.style = g), {
|
|
20051
20051
|
props: h,
|
|
20052
20052
|
internalRef: void 0
|
|
20053
20053
|
};
|
|
@@ -20055,7 +20055,7 @@ function ew(e) {
|
|
|
20055
20055
|
const s = Ga({
|
|
20056
20056
|
...o,
|
|
20057
20057
|
...a
|
|
20058
|
-
}), l = kl(a), i = kl(o), c = t(s), d =
|
|
20058
|
+
}), l = kl(a), i = kl(o), c = t(s), d = gt(c == null ? void 0 : c.className, r == null ? void 0 : r.className, n, o == null ? void 0 : o.className, a == null ? void 0 : a.className), p = {
|
|
20059
20059
|
...c == null ? void 0 : c.style,
|
|
20060
20060
|
...r == null ? void 0 : r.style,
|
|
20061
20061
|
...o == null ? void 0 : o.style,
|
|
@@ -20074,7 +20074,7 @@ function ew(e) {
|
|
|
20074
20074
|
function tw(e, t, r) {
|
|
20075
20075
|
return typeof e == "function" ? e(t, r) : e;
|
|
20076
20076
|
}
|
|
20077
|
-
function
|
|
20077
|
+
function Pt(e) {
|
|
20078
20078
|
var p;
|
|
20079
20079
|
const {
|
|
20080
20080
|
elementType: t,
|
|
@@ -20236,14 +20236,14 @@ function dw(e) {
|
|
|
20236
20236
|
onChange: d,
|
|
20237
20237
|
onChangeCommitted: p,
|
|
20238
20238
|
orientation: u = "horizontal",
|
|
20239
|
-
rootRef:
|
|
20239
|
+
rootRef: f,
|
|
20240
20240
|
scale: g = cw,
|
|
20241
20241
|
step: h = 1,
|
|
20242
20242
|
shiftStep: x = 10,
|
|
20243
|
-
tabIndex:
|
|
20244
|
-
value:
|
|
20245
|
-
} = e,
|
|
20246
|
-
controlled:
|
|
20243
|
+
tabIndex: I,
|
|
20244
|
+
value: F
|
|
20245
|
+
} = e, N = B.useRef(void 0), [z, D] = B.useState(-1), [H, j] = B.useState(-1), [U, k] = B.useState(!1), y = B.useRef(0), M = B.useRef(null), [L, J] = Ph({
|
|
20246
|
+
controlled: F,
|
|
20247
20247
|
default: r ?? i,
|
|
20248
20248
|
name: "Slider"
|
|
20249
20249
|
}), q = d && ((G, W, Y) => {
|
|
@@ -20260,7 +20260,7 @@ function dw(e) {
|
|
|
20260
20260
|
Z = Z.map((G) => G == null ? i : ur(G, i, l));
|
|
20261
20261
|
const ve = s === !0 && h !== null ? [...Array(Math.floor((l - i) / h) + 1)].map((G, W) => ({
|
|
20262
20262
|
value: i + h * W
|
|
20263
|
-
})) : s || [], K = ve.map((G) => G.value), [ge, $] = B.useState(-1), Q = B.useRef(null), oe = gi(
|
|
20263
|
+
})) : s || [], K = ve.map((G) => G.value), [ge, $] = B.useState(-1), Q = B.useRef(null), oe = gi(f, Q), we = (G) => (W) => {
|
|
20264
20264
|
var ae;
|
|
20265
20265
|
const Y = Number(W.currentTarget.getAttribute("data-index"));
|
|
20266
20266
|
Bl(W.target) && $(Y), j(Y), (ae = G == null ? void 0 : G.onFocus) == null || ae.call(G, W);
|
|
@@ -20335,7 +20335,7 @@ function dw(e) {
|
|
|
20335
20335
|
var G;
|
|
20336
20336
|
a && Q.current.contains(document.activeElement) && ((G = document.activeElement) == null || G.blur());
|
|
20337
20337
|
}, [a]), a && z !== -1 && D(-1), a && ge !== -1 && $(-1);
|
|
20338
|
-
const
|
|
20338
|
+
const wt = (G) => (W) => {
|
|
20339
20339
|
var Y;
|
|
20340
20340
|
(Y = G.onChange) == null || Y.call(G, W), Ee(W, W.target.valueAsNumber);
|
|
20341
20341
|
}, me = B.useRef(void 0);
|
|
@@ -20378,10 +20378,10 @@ function dw(e) {
|
|
|
20378
20378
|
activeIndex: We
|
|
20379
20379
|
};
|
|
20380
20380
|
}, ut = Go((G) => {
|
|
20381
|
-
const W = ja(G,
|
|
20381
|
+
const W = ja(G, N);
|
|
20382
20382
|
if (!W)
|
|
20383
20383
|
return;
|
|
20384
|
-
if (
|
|
20384
|
+
if (y.current += 1, G.type === "mousemove" && G.buttons === 0) {
|
|
20385
20385
|
rt(G);
|
|
20386
20386
|
return;
|
|
20387
20387
|
}
|
|
@@ -20396,9 +20396,9 @@ function dw(e) {
|
|
|
20396
20396
|
sliderRef: Q,
|
|
20397
20397
|
activeIndex: ae,
|
|
20398
20398
|
setActive: D
|
|
20399
|
-
}), J(Y), !U &&
|
|
20399
|
+
}), J(Y), !U && y.current > ow && k(!0), q && !Ua(Y, L) && q(G, Y, ae);
|
|
20400
20400
|
}), rt = Go((G) => {
|
|
20401
|
-
const W = ja(G,
|
|
20401
|
+
const W = ja(G, N);
|
|
20402
20402
|
if (k(!1), !W)
|
|
20403
20403
|
return;
|
|
20404
20404
|
const {
|
|
@@ -20407,14 +20407,14 @@ function dw(e) {
|
|
|
20407
20407
|
finger: W,
|
|
20408
20408
|
move: !0
|
|
20409
20409
|
});
|
|
20410
|
-
D(-1), G.type === "touchend" && j(-1), p && p(G, M.current ?? Y),
|
|
20410
|
+
D(-1), G.type === "touchend" && j(-1), p && p(G, M.current ?? Y), N.current = void 0, Ut();
|
|
20411
20411
|
}), Me = Go((G) => {
|
|
20412
20412
|
if (a)
|
|
20413
20413
|
return;
|
|
20414
20414
|
Nl() || G.preventDefault();
|
|
20415
20415
|
const W = G.changedTouches[0];
|
|
20416
|
-
W != null && (
|
|
20417
|
-
const Y = ja(G,
|
|
20416
|
+
W != null && (N.current = W.identifier);
|
|
20417
|
+
const Y = ja(G, N);
|
|
20418
20418
|
if (Y !== !1) {
|
|
20419
20419
|
const {
|
|
20420
20420
|
newValue: le,
|
|
@@ -20428,7 +20428,7 @@ function dw(e) {
|
|
|
20428
20428
|
setActive: D
|
|
20429
20429
|
}), J(le), q && !Ua(le, L) && q(G, le, X);
|
|
20430
20430
|
}
|
|
20431
|
-
|
|
20431
|
+
y.current = 0;
|
|
20432
20432
|
const ae = Fa(Q.current);
|
|
20433
20433
|
ae.addEventListener("touchmove", ut, {
|
|
20434
20434
|
passive: !0
|
|
@@ -20456,7 +20456,7 @@ function dw(e) {
|
|
|
20456
20456
|
if ((le = G.onMouseDown) == null || le.call(G, W), a || W.defaultPrevented || W.button !== 0)
|
|
20457
20457
|
return;
|
|
20458
20458
|
W.preventDefault();
|
|
20459
|
-
const Y = ja(W,
|
|
20459
|
+
const Y = ja(W, N);
|
|
20460
20460
|
if (Y !== !1) {
|
|
20461
20461
|
const {
|
|
20462
20462
|
newValue: X,
|
|
@@ -20470,7 +20470,7 @@ function dw(e) {
|
|
|
20470
20470
|
setActive: D
|
|
20471
20471
|
}), J(X), q && !Ua(X, L) && q(W, X, Pe);
|
|
20472
20472
|
}
|
|
20473
|
-
|
|
20473
|
+
y.current = 0;
|
|
20474
20474
|
const ae = Fa(Q.current);
|
|
20475
20475
|
ae.addEventListener("mousemove", ut, {
|
|
20476
20476
|
passive: !0
|
|
@@ -20518,7 +20518,7 @@ function dw(e) {
|
|
|
20518
20518
|
focusedThumbIndex: ge,
|
|
20519
20519
|
getHiddenInputProps: (G = {}) => {
|
|
20520
20520
|
const W = Ga(G), Y = {
|
|
20521
|
-
onChange:
|
|
20521
|
+
onChange: wt(W || {}),
|
|
20522
20522
|
onFocus: we(W || {}),
|
|
20523
20523
|
onBlur: He(W || {}),
|
|
20524
20524
|
onKeyDown: $t(W || {})
|
|
@@ -20527,7 +20527,7 @@ function dw(e) {
|
|
|
20527
20527
|
...Y
|
|
20528
20528
|
};
|
|
20529
20529
|
return {
|
|
20530
|
-
tabIndex:
|
|
20530
|
+
tabIndex: I,
|
|
20531
20531
|
"aria-labelledby": t,
|
|
20532
20532
|
"aria-orientation": u,
|
|
20533
20533
|
"aria-valuemax": g(l),
|
|
@@ -20588,7 +20588,7 @@ const Ke = ri("MuiSlider", ["root", "active", "colorPrimary", "colorSecondary",
|
|
|
20588
20588
|
open: t
|
|
20589
20589
|
} = e;
|
|
20590
20590
|
return {
|
|
20591
|
-
offset:
|
|
20591
|
+
offset: gt(t && Ke.valueLabelOpen),
|
|
20592
20592
|
circle: Ke.valueLabelCircle,
|
|
20593
20593
|
label: Ke.valueLabelLabel
|
|
20594
20594
|
};
|
|
@@ -20603,7 +20603,7 @@ function Ac(e) {
|
|
|
20603
20603
|
className: t.props.className
|
|
20604
20604
|
}, /* @__PURE__ */ b.jsxs(B.Fragment, {
|
|
20605
20605
|
children: [t.props.children, /* @__PURE__ */ b.jsx("span", {
|
|
20606
|
-
className:
|
|
20606
|
+
className: gt(o.offset, r),
|
|
20607
20607
|
"aria-hidden": !0,
|
|
20608
20608
|
children: /* @__PURE__ */ b.jsx("span", {
|
|
20609
20609
|
className: o.circle,
|
|
@@ -20623,7 +20623,7 @@ process.env.NODE_ENV !== "production" && (Ac.propTypes = {
|
|
|
20623
20623
|
function zl(e) {
|
|
20624
20624
|
return e;
|
|
20625
20625
|
}
|
|
20626
|
-
const yw =
|
|
20626
|
+
const yw = St("span", {
|
|
20627
20627
|
name: "MuiSlider",
|
|
20628
20628
|
slot: "Root",
|
|
20629
20629
|
overridesResolver: (e, t) => {
|
|
@@ -20723,7 +20723,7 @@ const yw = bt("span", {
|
|
|
20723
20723
|
marginRight: 44
|
|
20724
20724
|
}
|
|
20725
20725
|
}]
|
|
20726
|
-
}))), gw =
|
|
20726
|
+
}))), gw = St("span", {
|
|
20727
20727
|
name: "MuiSlider",
|
|
20728
20728
|
slot: "Rail"
|
|
20729
20729
|
})({
|
|
@@ -20760,7 +20760,7 @@ const yw = bt("span", {
|
|
|
20760
20760
|
opacity: 1
|
|
20761
20761
|
}
|
|
20762
20762
|
}]
|
|
20763
|
-
}), bw =
|
|
20763
|
+
}), bw = St("span", {
|
|
20764
20764
|
name: "MuiSlider",
|
|
20765
20765
|
slot: "Track"
|
|
20766
20766
|
})(Wt(({
|
|
@@ -20827,7 +20827,7 @@ const yw = bt("span", {
|
|
|
20827
20827
|
}
|
|
20828
20828
|
}
|
|
20829
20829
|
}))]
|
|
20830
|
-
}))), Sw =
|
|
20830
|
+
}))), Sw = St("span", {
|
|
20831
20831
|
name: "MuiSlider",
|
|
20832
20832
|
slot: "Thumb",
|
|
20833
20833
|
overridesResolver: (e, t) => {
|
|
@@ -20927,7 +20927,7 @@ const yw = bt("span", {
|
|
|
20927
20927
|
}
|
|
20928
20928
|
}
|
|
20929
20929
|
}))]
|
|
20930
|
-
}))), Tc =
|
|
20930
|
+
}))), Tc = St(Ac, {
|
|
20931
20931
|
name: "MuiSlider",
|
|
20932
20932
|
slot: "ValueLabel"
|
|
20933
20933
|
})(Wt(({
|
|
@@ -21033,7 +21033,7 @@ process.env.NODE_ENV !== "production" && (Tc.propTypes = {
|
|
|
21033
21033
|
*/
|
|
21034
21034
|
value: S.node
|
|
21035
21035
|
});
|
|
21036
|
-
const vw =
|
|
21036
|
+
const vw = St("span", {
|
|
21037
21037
|
name: "MuiSlider",
|
|
21038
21038
|
slot: "Mark",
|
|
21039
21039
|
shouldForwardProp: (e) => Ln(e) && e !== "markActive",
|
|
@@ -21076,7 +21076,7 @@ const vw = bt("span", {
|
|
|
21076
21076
|
opacity: 0.8
|
|
21077
21077
|
}
|
|
21078
21078
|
}]
|
|
21079
|
-
}))), xw =
|
|
21079
|
+
}))), xw = St("span", {
|
|
21080
21080
|
name: "MuiSlider",
|
|
21081
21081
|
slot: "MarkLabel",
|
|
21082
21082
|
shouldForwardProp: (e) => Ln(e) && e !== "markLabelActive"
|
|
@@ -21158,20 +21158,20 @@ const vw = bt("span", {
|
|
|
21158
21158
|
componentsProps: d = {},
|
|
21159
21159
|
color: p = "primary",
|
|
21160
21160
|
classes: u,
|
|
21161
|
-
className:
|
|
21161
|
+
className: f,
|
|
21162
21162
|
disableSwap: g = !1,
|
|
21163
21163
|
disabled: h = !1,
|
|
21164
21164
|
getAriaLabel: x,
|
|
21165
|
-
getAriaValueText:
|
|
21166
|
-
marks:
|
|
21167
|
-
max:
|
|
21165
|
+
getAriaValueText: I,
|
|
21166
|
+
marks: F = !1,
|
|
21167
|
+
max: N = 100,
|
|
21168
21168
|
min: z = 0,
|
|
21169
21169
|
name: D,
|
|
21170
21170
|
onChange: H,
|
|
21171
21171
|
onChangeCommitted: j,
|
|
21172
21172
|
orientation: U = "horizontal",
|
|
21173
21173
|
shiftStep: k = 10,
|
|
21174
|
-
size:
|
|
21174
|
+
size: y = "medium",
|
|
21175
21175
|
step: M = 1,
|
|
21176
21176
|
scale: L = zl,
|
|
21177
21177
|
slotProps: J,
|
|
@@ -21185,15 +21185,15 @@ const vw = bt("span", {
|
|
|
21185
21185
|
} = a, Q = {
|
|
21186
21186
|
...a,
|
|
21187
21187
|
isRtl: o,
|
|
21188
|
-
max:
|
|
21188
|
+
max: N,
|
|
21189
21189
|
min: z,
|
|
21190
21190
|
classes: u,
|
|
21191
21191
|
disabled: h,
|
|
21192
21192
|
disableSwap: g,
|
|
21193
21193
|
orientation: U,
|
|
21194
|
-
marks:
|
|
21194
|
+
marks: F,
|
|
21195
21195
|
color: p,
|
|
21196
|
-
size:
|
|
21196
|
+
size: y,
|
|
21197
21197
|
step: M,
|
|
21198
21198
|
shiftStep: k,
|
|
21199
21199
|
scale: L,
|
|
@@ -21206,7 +21206,7 @@ const vw = bt("span", {
|
|
|
21206
21206
|
getHiddenInputProps: He,
|
|
21207
21207
|
getThumbProps: Ee,
|
|
21208
21208
|
open: $t,
|
|
21209
|
-
active:
|
|
21209
|
+
active: wt,
|
|
21210
21210
|
axis: me,
|
|
21211
21211
|
focusedThumbIndex: Le,
|
|
21212
21212
|
range: Xe,
|
|
@@ -21221,7 +21221,7 @@ const vw = bt("span", {
|
|
|
21221
21221
|
rootRef: r
|
|
21222
21222
|
});
|
|
21223
21223
|
Q.marked = rt.length > 0 && rt.some((Ce) => Ce.label), Q.dragging = ut, Q.focusedThumbIndex = Le;
|
|
21224
|
-
const je = Ow(Q), Ar = (q == null ? void 0 : q.root) ?? c.Root ?? yw, ma = (q == null ? void 0 : q.rail) ?? c.Rail ?? gw, fa = (q == null ? void 0 : q.track) ?? c.Track ?? bw, ya = (q == null ? void 0 : q.thumb) ?? c.Thumb ?? Sw, ga = (q == null ? void 0 : q.valueLabel) ?? c.ValueLabel ?? Tc, Zt = (q == null ? void 0 : q.mark) ?? c.Mark ?? vw, ba = (q == null ? void 0 : q.markLabel) ?? c.MarkLabel ?? xw, G = (q == null ? void 0 : q.input) ?? c.Input ?? "input", W = (J == null ? void 0 : J.root) ?? d.root, Y = (J == null ? void 0 : J.rail) ?? d.rail, ae = (J == null ? void 0 : J.track) ?? d.track, le = (J == null ? void 0 : J.thumb) ?? d.thumb, X = (J == null ? void 0 : J.valueLabel) ?? d.valueLabel, Pe = (J == null ? void 0 : J.mark) ?? d.mark, $e = (J == null ? void 0 : J.markLabel) ?? d.markLabel, Ve = (J == null ? void 0 : J.input) ?? d.input, We =
|
|
21224
|
+
const je = Ow(Q), Ar = (q == null ? void 0 : q.root) ?? c.Root ?? yw, ma = (q == null ? void 0 : q.rail) ?? c.Rail ?? gw, fa = (q == null ? void 0 : q.track) ?? c.Track ?? bw, ya = (q == null ? void 0 : q.thumb) ?? c.Thumb ?? Sw, ga = (q == null ? void 0 : q.valueLabel) ?? c.ValueLabel ?? Tc, Zt = (q == null ? void 0 : q.mark) ?? c.Mark ?? vw, ba = (q == null ? void 0 : q.markLabel) ?? c.MarkLabel ?? xw, G = (q == null ? void 0 : q.input) ?? c.Input ?? "input", W = (J == null ? void 0 : J.root) ?? d.root, Y = (J == null ? void 0 : J.rail) ?? d.rail, ae = (J == null ? void 0 : J.track) ?? d.track, le = (J == null ? void 0 : J.thumb) ?? d.thumb, X = (J == null ? void 0 : J.valueLabel) ?? d.valueLabel, Pe = (J == null ? void 0 : J.mark) ?? d.mark, $e = (J == null ? void 0 : J.markLabel) ?? d.markLabel, Ve = (J == null ? void 0 : J.input) ?? d.input, We = Pt({
|
|
21225
21225
|
elementType: Ar,
|
|
21226
21226
|
getSlotProps: we,
|
|
21227
21227
|
externalSlotProps: W,
|
|
@@ -21235,13 +21235,13 @@ const vw = bt("span", {
|
|
|
21235
21235
|
...Q,
|
|
21236
21236
|
...W == null ? void 0 : W.ownerState
|
|
21237
21237
|
},
|
|
21238
|
-
className: [je.root,
|
|
21239
|
-
}), Tr =
|
|
21238
|
+
className: [je.root, f]
|
|
21239
|
+
}), Tr = Pt({
|
|
21240
21240
|
elementType: ma,
|
|
21241
21241
|
externalSlotProps: Y,
|
|
21242
21242
|
ownerState: Q,
|
|
21243
21243
|
className: je.rail
|
|
21244
|
-
}), Fc =
|
|
21244
|
+
}), Fc = Pt({
|
|
21245
21245
|
elementType: fa,
|
|
21246
21246
|
externalSlotProps: ae,
|
|
21247
21247
|
additionalProps: {
|
|
@@ -21255,7 +21255,7 @@ const vw = bt("span", {
|
|
|
21255
21255
|
...ae == null ? void 0 : ae.ownerState
|
|
21256
21256
|
},
|
|
21257
21257
|
className: je.track
|
|
21258
|
-
}), $o =
|
|
21258
|
+
}), $o = Pt({
|
|
21259
21259
|
elementType: ya,
|
|
21260
21260
|
getSlotProps: Ee,
|
|
21261
21261
|
externalSlotProps: le,
|
|
@@ -21264,7 +21264,7 @@ const vw = bt("span", {
|
|
|
21264
21264
|
...le == null ? void 0 : le.ownerState
|
|
21265
21265
|
},
|
|
21266
21266
|
className: je.thumb
|
|
21267
|
-
}), Nc =
|
|
21267
|
+
}), Nc = Pt({
|
|
21268
21268
|
elementType: ga,
|
|
21269
21269
|
externalSlotProps: X,
|
|
21270
21270
|
ownerState: {
|
|
@@ -21272,17 +21272,17 @@ const vw = bt("span", {
|
|
|
21272
21272
|
...X == null ? void 0 : X.ownerState
|
|
21273
21273
|
},
|
|
21274
21274
|
className: je.valueLabel
|
|
21275
|
-
}), Uo =
|
|
21275
|
+
}), Uo = Pt({
|
|
21276
21276
|
elementType: Zt,
|
|
21277
21277
|
externalSlotProps: Pe,
|
|
21278
21278
|
ownerState: Q,
|
|
21279
21279
|
className: je.mark
|
|
21280
|
-
}), ko =
|
|
21280
|
+
}), ko = Pt({
|
|
21281
21281
|
elementType: ba,
|
|
21282
21282
|
externalSlotProps: $e,
|
|
21283
21283
|
ownerState: Q,
|
|
21284
21284
|
className: je.markLabel
|
|
21285
|
-
}), zc =
|
|
21285
|
+
}), zc = Pt({
|
|
21286
21286
|
elementType: G,
|
|
21287
21287
|
getSlotProps: He,
|
|
21288
21288
|
externalSlotProps: Ve,
|
|
@@ -21294,8 +21294,8 @@ const vw = bt("span", {
|
|
|
21294
21294
|
...Tr
|
|
21295
21295
|
}), /* @__PURE__ */ b.jsx(fa, {
|
|
21296
21296
|
...Fc
|
|
21297
|
-
}), rt.filter((Ce) => Ce.value >= z && Ce.value <=
|
|
21298
|
-
const Bo = oo(Ce.value, z,
|
|
21297
|
+
}), rt.filter((Ce) => Ce.value >= z && Ce.value <= N).map((Ce, _e) => {
|
|
21298
|
+
const Bo = oo(Ce.value, z, N), Sa = oe[me].offset(Bo);
|
|
21299
21299
|
let ht;
|
|
21300
21300
|
return Z === !1 ? ht = Me.includes(Ce.value) : ht = Z === "normal" && (Xe ? Ce.value >= Me[0] && Ce.value <= Me[Me.length - 1] : Ce.value <= Me[0]) || Z === "inverted" && (Xe ? Ce.value <= Me[0] || Ce.value >= Me[Me.length - 1] : Ce.value >= Me[0]), /* @__PURE__ */ b.jsxs(B.Fragment, {
|
|
21301
21301
|
children: [/* @__PURE__ */ b.jsx(Zt, {
|
|
@@ -21308,7 +21308,7 @@ const vw = bt("span", {
|
|
|
21308
21308
|
...Sa,
|
|
21309
21309
|
...Uo.style
|
|
21310
21310
|
},
|
|
21311
|
-
className:
|
|
21311
|
+
className: gt(Uo.className, ht && je.markActive)
|
|
21312
21312
|
}), Ce.label != null ? /* @__PURE__ */ b.jsx(ba, {
|
|
21313
21313
|
"aria-hidden": !0,
|
|
21314
21314
|
"data-index": _e,
|
|
@@ -21320,12 +21320,12 @@ const vw = bt("span", {
|
|
|
21320
21320
|
...Sa,
|
|
21321
21321
|
...ko.style
|
|
21322
21322
|
},
|
|
21323
|
-
className:
|
|
21323
|
+
className: gt(je.markLabel, ko.className, ht && je.markLabelActive),
|
|
21324
21324
|
children: Ce.label
|
|
21325
21325
|
}) : null]
|
|
21326
21326
|
}, _e);
|
|
21327
21327
|
}), Me.map((Ce, _e) => {
|
|
21328
|
-
const Bo = oo(Ce, z,
|
|
21328
|
+
const Bo = oo(Ce, z, N), Sa = oe[me].offset(Bo), ht = K === "off" ? ww : ga;
|
|
21329
21329
|
return (
|
|
21330
21330
|
/* 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. */
|
|
21331
21331
|
/* @__PURE__ */ b.jsx(ht, {
|
|
@@ -21334,14 +21334,14 @@ const vw = bt("span", {
|
|
|
21334
21334
|
valueLabelDisplay: K,
|
|
21335
21335
|
value: typeof ge == "function" ? ge(L(Ce), _e) : ge,
|
|
21336
21336
|
index: _e,
|
|
21337
|
-
open: $t === _e ||
|
|
21337
|
+
open: $t === _e || wt === _e || K === "on",
|
|
21338
21338
|
disabled: h
|
|
21339
21339
|
},
|
|
21340
21340
|
...Nc,
|
|
21341
21341
|
children: /* @__PURE__ */ b.jsx(ya, {
|
|
21342
21342
|
"data-index": _e,
|
|
21343
21343
|
...$o,
|
|
21344
|
-
className:
|
|
21344
|
+
className: gt(je.thumb, $o.className, wt === _e && je.active, Le === _e && je.focusVisible),
|
|
21345
21345
|
style: {
|
|
21346
21346
|
...Sa,
|
|
21347
21347
|
...ha(_e),
|
|
@@ -21352,7 +21352,7 @@ const vw = bt("span", {
|
|
|
21352
21352
|
"aria-label": x ? x(_e) : n,
|
|
21353
21353
|
"aria-valuenow": L(Ce),
|
|
21354
21354
|
"aria-labelledby": l,
|
|
21355
|
-
"aria-valuetext":
|
|
21355
|
+
"aria-valuetext": I ? I(L(Ce), _e) : s,
|
|
21356
21356
|
value: Me[_e],
|
|
21357
21357
|
...zc
|
|
21358
21358
|
})
|
|
@@ -21741,8 +21741,8 @@ const Mc = Ie(
|
|
|
21741
21741
|
children: t
|
|
21742
21742
|
}) => {
|
|
21743
21743
|
const { t: r } = dt(), a = qe();
|
|
21744
|
-
function o(u,
|
|
21745
|
-
(
|
|
21744
|
+
function o(u, f) {
|
|
21745
|
+
(f === "translate" || f === "rotate") && e.setSelectedCartesianMotionType(f);
|
|
21746
21746
|
}
|
|
21747
21747
|
Oh(
|
|
21748
21748
|
() => [e.selectedCoordSystemId, e.selectedTcpId],
|
|
@@ -21755,7 +21755,7 @@ const Mc = Ie(
|
|
|
21755
21755
|
},
|
|
21756
21756
|
{ fireImmediately: !0 }
|
|
21757
21757
|
);
|
|
21758
|
-
async function n(u,
|
|
21758
|
+
async function n(u, f) {
|
|
21759
21759
|
const g = await e.activate(), h = g.motionStream.rapidlyChangingMotionState.tcp_pose, x = g.motionStream.rapidlyChangingMotionState.state.joint_position;
|
|
21760
21760
|
h && await e.withMotionLock(async () => {
|
|
21761
21761
|
try {
|
|
@@ -21771,10 +21771,10 @@ const Mc = Ie(
|
|
|
21771
21771
|
direction: u.direction,
|
|
21772
21772
|
motion: e.selectedCartesianMotionType === "translate" ? {
|
|
21773
21773
|
type: "translate",
|
|
21774
|
-
distanceMm:
|
|
21774
|
+
distanceMm: f.mm
|
|
21775
21775
|
} : {
|
|
21776
21776
|
type: "rotate",
|
|
21777
|
-
distanceRads: Pd(
|
|
21777
|
+
distanceRads: Pd(f.degrees)
|
|
21778
21778
|
}
|
|
21779
21779
|
});
|
|
21780
21780
|
} finally {
|
|
@@ -21800,11 +21800,11 @@ const Mc = Ie(
|
|
|
21800
21800
|
async function l() {
|
|
21801
21801
|
e.isLocked || e.activeDiscreteIncrement || await e.deactivate();
|
|
21802
21802
|
}
|
|
21803
|
-
function i(u,
|
|
21804
|
-
var x,
|
|
21805
|
-
const h = (
|
|
21803
|
+
function i(u, f, g) {
|
|
21804
|
+
var x, I, F;
|
|
21805
|
+
const h = (F = (I = (x = g.componentsExt) == null ? void 0 : x.JoggingPanel) == null ? void 0 : I.JoggingCartesian) == null ? void 0 : F.Axis;
|
|
21806
21806
|
if (h)
|
|
21807
|
-
return
|
|
21807
|
+
return f === "translate" ? h[u] : h.CustomRotation ?? h[u];
|
|
21808
21808
|
}
|
|
21809
21809
|
const c = [
|
|
21810
21810
|
{
|
|
@@ -21868,13 +21868,13 @@ const Mc = Ie(
|
|
|
21868
21868
|
}
|
|
21869
21869
|
),
|
|
21870
21870
|
e.selectedCartesianMotionType === "translate" && c.map((u) => {
|
|
21871
|
-
var
|
|
21871
|
+
var f, g;
|
|
21872
21872
|
return /* @__PURE__ */ b.jsx(
|
|
21873
21873
|
Cs,
|
|
21874
21874
|
{
|
|
21875
21875
|
colors: u.colors,
|
|
21876
21876
|
disabled: e.isLocked,
|
|
21877
|
-
activeJoggingDirection: ((
|
|
21877
|
+
activeJoggingDirection: ((f = e.incrementJogInProgress) == null ? void 0 : f.axis) === u.id ? e.incrementJogInProgress.direction : void 0,
|
|
21878
21878
|
label: /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
21879
21879
|
u.icon,
|
|
21880
21880
|
/* @__PURE__ */ b.jsx(
|
|
@@ -21905,13 +21905,13 @@ const Mc = Ie(
|
|
|
21905
21905
|
);
|
|
21906
21906
|
}),
|
|
21907
21907
|
e.selectedCartesianMotionType === "rotate" && c.map((u) => {
|
|
21908
|
-
var
|
|
21908
|
+
var f, g;
|
|
21909
21909
|
return /* @__PURE__ */ b.jsx(
|
|
21910
21910
|
Cs,
|
|
21911
21911
|
{
|
|
21912
21912
|
colors: u.colors,
|
|
21913
21913
|
disabled: e.isLocked,
|
|
21914
|
-
activeJoggingDirection: ((
|
|
21914
|
+
activeJoggingDirection: ((f = e.incrementJogInProgress) == null ? void 0 : f.axis) === u.id ? e.incrementJogInProgress.direction : void 0,
|
|
21915
21915
|
label: /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
21916
21916
|
/* @__PURE__ */ b.jsx(j1, {}),
|
|
21917
21917
|
/* @__PURE__ */ b.jsx(
|
|
@@ -22045,10 +22045,10 @@ const Mc = Ie(
|
|
|
22045
22045
|
r.loadingError = o;
|
|
22046
22046
|
}
|
|
22047
22047
|
}
|
|
22048
|
-
return
|
|
22048
|
+
return Tt(() => (a(), e.store ? () => null : () => {
|
|
22049
22049
|
var o;
|
|
22050
22050
|
(o = r.joggingStore) == null || o.dispose();
|
|
22051
|
-
}), [e.store, e.nova, e.motionGroupId]),
|
|
22051
|
+
}), [e.store, e.nova, e.motionGroupId]), Tt(() => {
|
|
22052
22052
|
const o = r.joggingStore;
|
|
22053
22053
|
o && (e.locked ? o.lock("external") : o.unlock("external"));
|
|
22054
22054
|
}, [r.joggingStore, e.locked]), /* @__PURE__ */ b.jsx(
|
|
@@ -22136,7 +22136,7 @@ const Mc = Ie(
|
|
|
22136
22136
|
}
|
|
22137
22137
|
return !1;
|
|
22138
22138
|
}
|
|
22139
|
-
return
|
|
22139
|
+
return Tt(() => {
|
|
22140
22140
|
if (!o)
|
|
22141
22141
|
return;
|
|
22142
22142
|
const i = setTimeout(() => n(!1), 3e3);
|
|
@@ -22180,7 +22180,7 @@ const Mc = Ie(
|
|
|
22180
22180
|
}
|
|
22181
22181
|
), rV = Ie(
|
|
22182
22182
|
({ motionStream: e }) => {
|
|
22183
|
-
const t =
|
|
22183
|
+
const t = yt(null);
|
|
22184
22184
|
function r() {
|
|
22185
22185
|
const a = e.rapidlyChangingMotionState.tcp_pose;
|
|
22186
22186
|
return a ? Rd(a) : "";
|
|
@@ -22202,7 +22202,7 @@ const Mc = Ie(
|
|
|
22202
22202
|
}
|
|
22203
22203
|
), aV = Ie(
|
|
22204
22204
|
({ motionStream: e }) => {
|
|
22205
|
-
const t =
|
|
22205
|
+
const t = yt(null);
|
|
22206
22206
|
function r() {
|
|
22207
22207
|
const { joints: a } = e.rapidlyChangingMotionState.state.joint_position;
|
|
22208
22208
|
return `[${a.map((o) => parseFloat(o.toFixed(4))).join(", ")}]`;
|
|
@@ -22344,60 +22344,55 @@ function Bc({
|
|
|
22344
22344
|
children: a
|
|
22345
22345
|
}) {
|
|
22346
22346
|
_d.assign({ frameLoop: "always" });
|
|
22347
|
-
const o =
|
|
22348
|
-
|
|
22349
|
-
|
|
22350
|
-
|
|
22351
|
-
|
|
22352
|
-
|
|
22347
|
+
const o = yt([]), n = yt([]);
|
|
22348
|
+
yt(!1);
|
|
22349
|
+
const { invalidate: s } = Wc(), l = e.state.joint_position.joints.filter(
|
|
22350
|
+
(f) => f !== void 0
|
|
22351
|
+
), i = Object.fromEntries(
|
|
22352
|
+
l.map((f, g) => [g.toString(), f])
|
|
22353
|
+
), c = Ad({
|
|
22354
|
+
...i,
|
|
22355
|
+
onChange: () => {
|
|
22356
|
+
p(), s();
|
|
22357
|
+
},
|
|
22358
|
+
config: { tension: 120, friction: 20 }
|
|
22359
|
+
});
|
|
22360
|
+
xh(() => {
|
|
22361
|
+
const f = e.state.joint_position.joints.filter(
|
|
22362
|
+
(g) => g !== void 0
|
|
22363
|
+
);
|
|
22364
|
+
o.current = f;
|
|
22365
|
+
});
|
|
22366
|
+
function d(f) {
|
|
22367
|
+
f && (n.current = Iw(f), u() && (p(), s()));
|
|
22353
22368
|
}
|
|
22354
|
-
function
|
|
22355
|
-
if (!
|
|
22369
|
+
function p() {
|
|
22370
|
+
if (!u())
|
|
22356
22371
|
return;
|
|
22357
|
-
const
|
|
22358
|
-
|
|
22359
|
-
|
|
22360
|
-
|
|
22361
|
-
}
|
|
22362
|
-
);
|
|
22372
|
+
const f = n.current.map((g, h) => {
|
|
22373
|
+
const x = h.toString(), I = c[x];
|
|
22374
|
+
return I ? I.get() : 0;
|
|
22375
|
+
});
|
|
22363
22376
|
if (r) {
|
|
22364
|
-
const
|
|
22365
|
-
(
|
|
22377
|
+
const g = n.current.filter(
|
|
22378
|
+
(h) => h != null
|
|
22366
22379
|
);
|
|
22367
|
-
|
|
22380
|
+
g.length === n.current.length ? r(g, f) : console.warn(
|
|
22368
22381
|
"RobotAnimator: Some joints are invalid, skipping onRotationChanged callback"
|
|
22369
22382
|
);
|
|
22370
22383
|
} else
|
|
22371
|
-
for (const [
|
|
22372
|
-
if (!
|
|
22373
|
-
const
|
|
22374
|
-
|
|
22384
|
+
for (const [g, h] of n.current.entries()) {
|
|
22385
|
+
if (!h || !t[g]) continue;
|
|
22386
|
+
const x = t[g], I = x.theta || 0, F = x.reverse_rotation_direction ? -1 : 1;
|
|
22387
|
+
h.rotation.y = F * (f[g] || 0) + I;
|
|
22375
22388
|
}
|
|
22376
22389
|
}
|
|
22377
|
-
|
|
22378
|
-
const g = e.state.joint_position.joints.filter(
|
|
22379
|
-
(h) => h !== void 0
|
|
22380
|
-
);
|
|
22381
|
-
requestAnimationFrame(() => i(g));
|
|
22382
|
-
});
|
|
22383
|
-
const [d, p] = Ad(() => ({
|
|
22384
|
-
...Object.assign(
|
|
22385
|
-
{},
|
|
22386
|
-
e.state.joint_position.joints
|
|
22387
|
-
),
|
|
22388
|
-
onChange: () => {
|
|
22389
|
-
c(), s();
|
|
22390
|
-
},
|
|
22391
|
-
onResolve: () => {
|
|
22392
|
-
c();
|
|
22393
|
-
}
|
|
22394
|
-
})), u = d;
|
|
22395
|
-
function y() {
|
|
22390
|
+
function u() {
|
|
22396
22391
|
return n.current.length > 0 && n.current.every(
|
|
22397
|
-
(
|
|
22398
|
-
) &&
|
|
22392
|
+
(f) => f != null
|
|
22393
|
+
) && Object.keys(c).length > 0 && t.length === n.current.length && t.every((f) => f !== void 0);
|
|
22399
22394
|
}
|
|
22400
|
-
return /* @__PURE__ */ b.jsx("group", { ref:
|
|
22395
|
+
return /* @__PURE__ */ b.jsx("group", { ref: d, children: a });
|
|
22401
22396
|
}
|
|
22402
22397
|
const Mw = "line", jw = "mesh";
|
|
22403
22398
|
function $w({
|
|
@@ -22405,32 +22400,32 @@ function $w({
|
|
|
22405
22400
|
dhParameters: t,
|
|
22406
22401
|
...r
|
|
22407
22402
|
}) {
|
|
22408
|
-
const a = new Er(), o =
|
|
22403
|
+
const a = new Er(), o = yt([]), n = yt([]);
|
|
22409
22404
|
Gl.useEffect(() => {
|
|
22410
22405
|
o.current = new Array(t.length).fill(null), n.current = new Array(t.length).fill(null);
|
|
22411
22406
|
}, [t.length]);
|
|
22412
22407
|
function s(c, d) {
|
|
22413
|
-
const p = new qa(), u = new Qc(),
|
|
22414
|
-
a.decompose(p, u,
|
|
22408
|
+
const p = new qa(), u = new Qc(), f = new qa();
|
|
22409
|
+
a.decompose(p, u, f);
|
|
22415
22410
|
const g = p.clone(), h = new Er().makeRotationY(
|
|
22416
22411
|
c.theta + d * (c.reverse_rotation_direction ? -1 : 1)
|
|
22417
22412
|
).multiply(new Er().makeTranslation(0, c.d / 1e3, 0)).multiply(new Er().makeTranslation(c.a / 1e3, 0, 0)).multiply(new Er().makeRotationX(c.alpha));
|
|
22418
|
-
return a.multiply(h), a.decompose(p, u,
|
|
22413
|
+
return a.multiply(h), a.decompose(p, u, f), { a: g, b: p };
|
|
22419
22414
|
}
|
|
22420
22415
|
function l(c, d, p, u) {
|
|
22421
22416
|
if (!t)
|
|
22422
22417
|
return;
|
|
22423
|
-
const
|
|
22424
|
-
if (!
|
|
22418
|
+
const f = t[c];
|
|
22419
|
+
if (!f)
|
|
22425
22420
|
return;
|
|
22426
|
-
const { a: g, b: h } = s(
|
|
22421
|
+
const { a: g, b: h } = s(f, u);
|
|
22427
22422
|
d.geometry.setPositions([g.toArray(), h.toArray()].flat()), p.position.set(h.x, h.y, h.z);
|
|
22428
22423
|
}
|
|
22429
22424
|
function i(c, d) {
|
|
22430
22425
|
a.identity();
|
|
22431
22426
|
for (let p = 0; p < Math.min(c.length, d.length); p++) {
|
|
22432
|
-
const u = o.current[p],
|
|
22433
|
-
u &&
|
|
22427
|
+
const u = o.current[p], f = n.current[p];
|
|
22428
|
+
u && f && l(p, u, f, d[p]);
|
|
22434
22429
|
}
|
|
22435
22430
|
}
|
|
22436
22431
|
return /* @__PURE__ */ b.jsx(b.Fragment, { children: /* @__PURE__ */ b.jsx(
|
|
@@ -22448,8 +22443,8 @@ function $w({
|
|
|
22448
22443
|
const { a: p, b: u } = s(
|
|
22449
22444
|
c,
|
|
22450
22445
|
e.state.joint_position.joints[d] ?? 0
|
|
22451
|
-
),
|
|
22452
|
-
return /* @__PURE__ */ b.jsxs("group", { name:
|
|
22446
|
+
), f = `dhrobot_J0${d}`;
|
|
22447
|
+
return /* @__PURE__ */ b.jsxs("group", { name: f, children: [
|
|
22453
22448
|
/* @__PURE__ */ b.jsx(
|
|
22454
22449
|
Hl,
|
|
22455
22450
|
{
|
|
@@ -22477,7 +22472,7 @@ function $w({
|
|
|
22477
22472
|
},
|
|
22478
22473
|
"mesh_" + d
|
|
22479
22474
|
)
|
|
22480
|
-
] },
|
|
22475
|
+
] }, f);
|
|
22481
22476
|
})
|
|
22482
22477
|
] })
|
|
22483
22478
|
}
|
|
@@ -22485,7 +22480,7 @@ function $w({
|
|
|
22485
22480
|
}
|
|
22486
22481
|
const Uw = console.warn;
|
|
22487
22482
|
function kw() {
|
|
22488
|
-
return
|
|
22483
|
+
return Tt(() => {
|
|
22489
22484
|
console.warn = (e) => {
|
|
22490
22485
|
e !== "Cannot call the manual advancement of rafz whilst frameLoop is not set as demand" && Uw(e);
|
|
22491
22486
|
};
|
|
@@ -22581,7 +22576,7 @@ const Fw = (e, t) => {
|
|
|
22581
22576
|
const [i, c] = Ht(null), d = Jl((u) => {
|
|
22582
22577
|
c(u);
|
|
22583
22578
|
}, []);
|
|
22584
|
-
|
|
22579
|
+
Tt(() => {
|
|
22585
22580
|
i && (s ? Fw(i, s) : Nw(i));
|
|
22586
22581
|
}, [i, s]);
|
|
22587
22582
|
const p = /* @__PURE__ */ b.jsx(
|