@camstack/addon-training 0.0.0-stage → 0.1.1
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/assets/training/icon.svg +5 -0
- package/assets/training-modal/icon.svg +4 -0
- package/dist/MaskShapeCanvas-BokARvOj.mjs +13806 -0
- package/dist/MotionZonesSettings-aj085Nrn.mjs +310 -0
- package/dist/PrivacyMaskSettings-BwYjIkQR.mjs +377 -0
- package/dist/SceneMonitorEditor-BBfow3Lm.mjs +831 -0
- package/dist/_stub.js +17613 -0
- package/dist/_virtual_mf-localSharedImportMap___mfe_internal__addon_training_page-CspLU0I2.mjs +156 -0
- package/dist/_virtual_mf___mfe_internal__addon_training_page__loadShare___mf_0_camstack_mf_1_sdk__loadShare__.js-ZeT4eUYy.mjs +25 -0
- package/dist/_virtual_mf___mfe_internal__addon_training_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BkKuzhOJ.mjs +26 -0
- package/dist/_virtual_mf___mfe_internal__addon_training_page__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-CaB1jnkt.mjs +25 -0
- package/dist/_virtual_mf___mfe_internal__addon_training_page__loadShare___mf_0_trpc_mf_1_client__loadShare__.js-B3rryujf.mjs +25 -0
- package/dist/_virtual_mf___mfe_internal__addon_training_page__loadShare___mf_0_trpc_mf_1_react_mf_2_query__loadShare__.js-nL4MGFRP.mjs +26 -0
- package/dist/_virtual_mf___mfe_internal__addon_training_page__loadShare__react__loadShare__.js-BT_wL8s3.mjs +70 -0
- package/dist/_virtual_mf___mfe_internal__addon_training_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-DDBEvLdo.mjs +26 -0
- package/dist/_virtual_mf___mfe_internal__addon_training_page__loadShare__react_mf_2_dom__loadShare__.js-i_pnGDxd.mjs +25 -0
- package/dist/_virtual_mf___mfe_internal__addon_training_page__loadShare__react_mf_2_dom_mf_1_client__loadShare__.js-gTIQrhKs.mjs +25 -0
- package/dist/addon-training.css +3 -0
- package/dist/dist-BnT7Wsvm.mjs +52556 -0
- package/dist/dist-WGwGDX6_.js +52708 -0
- package/dist/hostInit-Dl0wFDad.mjs +129 -0
- package/dist/index.js +205 -0
- package/dist/index.mjs +201 -0
- package/dist/orchestrator/training.addon.js +1712 -0
- package/dist/orchestrator/training.addon.mjs +1710 -0
- package/dist/player-overlays-wE5IcDiI.mjs +44 -0
- package/dist/providers/modal/training-modal.addon.js +88499 -0
- package/dist/providers/modal/training-modal.addon.mjs +88527 -0
- package/dist/remoteEntry.js +2 -0
- package/dist/remoteEntry.ssr.js +33 -0
- package/dist/responsive-D17kMsm1.mjs +122 -0
- package/dist/rolldown-runtime-HEgqtunE.mjs +20 -0
- package/dist/scene-monitor-copy-LjlvhSRM.mjs +187 -0
- package/dist/square-JGDHhLlY.mjs +45 -0
- package/dist/trash-2-zeFnLJvf.mjs +25 -0
- package/dist/virtualExposes-0m8NqEDE.mjs +27 -0
- package/dist/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-iFB6fGI7.mjs +2857 -0
- package/dist/virtual_mf-exposes-ssr___mfe_internal__addon_training_page__remoteEntry_js-BbeHzLhl.mjs +10 -0
- package/package.json +116 -4
- package/README.md +0 -3
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { init as e } from "@module-federation/runtime";
|
|
2
|
+
//#region virtual:mf-REMOTE_ENTRY_SSR_ID:__mfe_internal__addon_training_page__remoteEntry_js
|
|
3
|
+
var t;
|
|
4
|
+
async function n() {
|
|
5
|
+
return t ??= import("./virtual_mf-exposes-ssr___mfe_internal__addon_training_page__remoteEntry_js-BbeHzLhl.mjs").then((e) => e.default ?? e), t;
|
|
6
|
+
}
|
|
7
|
+
async function r(t = {}, n = []) {
|
|
8
|
+
let r = e({
|
|
9
|
+
name: "addon_training_page",
|
|
10
|
+
remotes: [],
|
|
11
|
+
shared: {}
|
|
12
|
+
}), i = { from: "addon_training_page" };
|
|
13
|
+
if (!(n.indexOf(i) >= 0)) {
|
|
14
|
+
n.push(i), r.initShareScopeMap("default", t);
|
|
15
|
+
try {
|
|
16
|
+
await Promise.all(await r.initializeSharing("default", {
|
|
17
|
+
strategy: "version-first",
|
|
18
|
+
from: "build",
|
|
19
|
+
initScope: n
|
|
20
|
+
}));
|
|
21
|
+
} catch (e) {
|
|
22
|
+
console.error("[Module Federation SSR]", e);
|
|
23
|
+
}
|
|
24
|
+
return r;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
async function i(e) {
|
|
28
|
+
let t = await n();
|
|
29
|
+
if (!(e in t)) throw Error(`[Module Federation] Module ${e} does not exist in container.`);
|
|
30
|
+
return t[e]().then((e) => () => e);
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
export { i as get, r as init };
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { _ as e, b as t, c as n, g as r, l as i, m as a, n as o, r as s, t as c, u as l } from "./_virtual_mf___mfe_internal__addon_training_page__loadShare__react__loadShare__.js-BT_wL8s3.mjs";
|
|
2
|
+
import { i as u } from "./_virtual_mf___mfe_internal__addon_training_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BkKuzhOJ.mjs";
|
|
3
|
+
import "./_virtual_mf___mfe_internal__addon_training_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-DDBEvLdo.mjs";
|
|
4
|
+
//#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js
|
|
5
|
+
t();
|
|
6
|
+
var d = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), f = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), p = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), m = (e) => {
|
|
7
|
+
let t = p(e);
|
|
8
|
+
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
9
|
+
}, h = {
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
+
width: 24,
|
|
12
|
+
height: 24,
|
|
13
|
+
viewBox: "0 0 24 24",
|
|
14
|
+
fill: "none",
|
|
15
|
+
stroke: "currentColor",
|
|
16
|
+
strokeWidth: 2,
|
|
17
|
+
strokeLinecap: "round",
|
|
18
|
+
strokeLinejoin: "round"
|
|
19
|
+
}, g = (e) => {
|
|
20
|
+
for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
|
|
21
|
+
return !1;
|
|
22
|
+
}, _ = s(({ color: e = "currentColor", size: t = 24, strokeWidth: n = 2, absoluteStrokeWidth: r, className: i = "", children: a, iconNode: s, ...c }, l) => o("svg", {
|
|
23
|
+
ref: l,
|
|
24
|
+
...h,
|
|
25
|
+
width: t,
|
|
26
|
+
height: t,
|
|
27
|
+
stroke: e,
|
|
28
|
+
strokeWidth: r ? Number(n) * 24 / Number(t) : n,
|
|
29
|
+
className: d("lucide", i),
|
|
30
|
+
...!a && !g(c) && { "aria-hidden": "true" },
|
|
31
|
+
...c
|
|
32
|
+
}, [...s.map(([e, t]) => o(e, t)), ...Array.isArray(a) ? a : [a]]));
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region ../../node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
35
|
+
t();
|
|
36
|
+
var v = (e, t) => {
|
|
37
|
+
let n = s(({ className: n, ...r }, i) => o(_, {
|
|
38
|
+
ref: i,
|
|
39
|
+
iconNode: t,
|
|
40
|
+
className: d(`lucide-${f(m(e))}`, `lucide-${e}`, n),
|
|
41
|
+
...r
|
|
42
|
+
}));
|
|
43
|
+
return n.displayName = m(e), n;
|
|
44
|
+
};
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region ../ui-library/src/lib/shared-context.ts
|
|
47
|
+
t();
|
|
48
|
+
function y(e, t) {
|
|
49
|
+
if (typeof globalThis > "u") return c(t);
|
|
50
|
+
let n = globalThis.__camstackSharedContexts, r = n ?? /* @__PURE__ */ new Map();
|
|
51
|
+
n || (globalThis.__camstackSharedContexts = r);
|
|
52
|
+
let i = r.get(e);
|
|
53
|
+
if (i) return i;
|
|
54
|
+
let a = c(t);
|
|
55
|
+
return r.set(e, a), a;
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region ../ui-library/src/contexts/system-context.tsx
|
|
59
|
+
t();
|
|
60
|
+
var b = y("camstack:system", null);
|
|
61
|
+
function x() {
|
|
62
|
+
let e = i(b);
|
|
63
|
+
if (!e) throw Error("useSystem(): no <SystemProvider> in tree");
|
|
64
|
+
return e;
|
|
65
|
+
}
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region ../ui-library/src/hooks/use-device-proxy.ts
|
|
68
|
+
t();
|
|
69
|
+
var S = "capability.binding-changed";
|
|
70
|
+
function C(e, t) {
|
|
71
|
+
let [n, i] = r(null);
|
|
72
|
+
return l(() => {
|
|
73
|
+
if (t === null) {
|
|
74
|
+
i(null);
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
let n = !1, r = async () => {
|
|
78
|
+
try {
|
|
79
|
+
let r = await e.deviceManager.getBindings.query({ deviceId: t });
|
|
80
|
+
n || i(r);
|
|
81
|
+
} catch {
|
|
82
|
+
n || i((e) => e);
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
r();
|
|
86
|
+
let a = e.live?.onEvent.subscribe({ category: S }, { onData: (e) => {
|
|
87
|
+
let n = e.data?.source;
|
|
88
|
+
if (!n) {
|
|
89
|
+
r();
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
n.type === "device" && n.id === t && r();
|
|
93
|
+
} });
|
|
94
|
+
return () => {
|
|
95
|
+
n = !0, a?.unsubscribe();
|
|
96
|
+
};
|
|
97
|
+
}, [e, t]), a(() => n ? u(e, n) : null, [e, n]);
|
|
98
|
+
}
|
|
99
|
+
function w(t) {
|
|
100
|
+
let r = n((e) => t ? t.subscribe(() => e()) : () => void 0, [t]), i = n(() => t?.value, [t]);
|
|
101
|
+
return e(r, i, i);
|
|
102
|
+
}
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region ../ui-library/src/lib/cap-error.ts
|
|
105
|
+
function T(e) {
|
|
106
|
+
if (typeof e != "object" || !e) return null;
|
|
107
|
+
let t = Reflect.get(e, "data");
|
|
108
|
+
if (typeof t == "object" && t) {
|
|
109
|
+
let e = Reflect.get(t, "capRouteReason");
|
|
110
|
+
if (typeof e == "string") return e;
|
|
111
|
+
}
|
|
112
|
+
return null;
|
|
113
|
+
}
|
|
114
|
+
function E(e) {
|
|
115
|
+
let t = T(e);
|
|
116
|
+
return t === null ? (e instanceof Error ? e.message : String(e)).includes("provider not available") : t === "no-provider" || t === "node-offline";
|
|
117
|
+
}
|
|
118
|
+
//#endregion
|
|
119
|
+
//#region ../ui-library/src/lib/responsive.ts
|
|
120
|
+
var D = "text-[10px] text-foreground-subtle";
|
|
121
|
+
//#endregion
|
|
122
|
+
export { x as a, w as i, E as n, y as o, C as r, v as s, D as t };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (e && (t = e(e = 0)), t), s = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), c = (e, n) => {
|
|
3
|
+
let r = {};
|
|
4
|
+
for (var i in e) t(r, i, {
|
|
5
|
+
get: e[i],
|
|
6
|
+
enumerable: !0
|
|
7
|
+
});
|
|
8
|
+
return n || t(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
9
|
+
}, l = (e, i, o, s) => {
|
|
10
|
+
if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
|
|
11
|
+
get: ((e) => i[e]).bind(null, d),
|
|
12
|
+
enumerable: !(s = n(i, d)) || s.enumerable
|
|
13
|
+
});
|
|
14
|
+
return e;
|
|
15
|
+
}, u = (n, r, a) => (a = n == null ? {} : e(i(n)), l(r || !n || !n.__esModule ? t(a, "default", {
|
|
16
|
+
value: n,
|
|
17
|
+
enumerable: !0
|
|
18
|
+
}) : a, n)), d = (e) => a.call(e, "module.exports") ? e["module.exports"] : l(t({}, "__esModule", { value: !0 }), e);
|
|
19
|
+
//#endregion
|
|
20
|
+
export { u as a, d as i, o as n, c as r, s as t };
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { b as e, c as t, g as n, m as r } from "./_virtual_mf___mfe_internal__addon_training_page__loadShare__react__loadShare__.js-BT_wL8s3.mjs";
|
|
2
|
+
import { s as i } from "./responsive-D17kMsm1.mjs";
|
|
3
|
+
var a = i("camera", [["path", {
|
|
4
|
+
d: "M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",
|
|
5
|
+
key: "18u6gg"
|
|
6
|
+
}], ["circle", {
|
|
7
|
+
cx: "12",
|
|
8
|
+
cy: "13",
|
|
9
|
+
r: "3",
|
|
10
|
+
key: "1vg3eu"
|
|
11
|
+
}]]), o = i("image-off", [
|
|
12
|
+
["line", {
|
|
13
|
+
x1: "2",
|
|
14
|
+
x2: "22",
|
|
15
|
+
y1: "2",
|
|
16
|
+
y2: "22",
|
|
17
|
+
key: "a6p6uj"
|
|
18
|
+
}],
|
|
19
|
+
["path", {
|
|
20
|
+
d: "M10.41 10.41a2 2 0 1 1-2.83-2.83",
|
|
21
|
+
key: "1bzlo9"
|
|
22
|
+
}],
|
|
23
|
+
["line", {
|
|
24
|
+
x1: "13.5",
|
|
25
|
+
x2: "6",
|
|
26
|
+
y1: "13.5",
|
|
27
|
+
y2: "21",
|
|
28
|
+
key: "1q0aeu"
|
|
29
|
+
}],
|
|
30
|
+
["line", {
|
|
31
|
+
x1: "18",
|
|
32
|
+
x2: "21",
|
|
33
|
+
y1: "12",
|
|
34
|
+
y2: "15",
|
|
35
|
+
key: "5mozeu"
|
|
36
|
+
}],
|
|
37
|
+
["path", {
|
|
38
|
+
d: "M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59",
|
|
39
|
+
key: "mmje98"
|
|
40
|
+
}],
|
|
41
|
+
["path", {
|
|
42
|
+
d: "M21 15V5a2 2 0 0 0-2-2H9",
|
|
43
|
+
key: "43el77"
|
|
44
|
+
}]
|
|
45
|
+
]), s = i("rotate-ccw", [["path", {
|
|
46
|
+
d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",
|
|
47
|
+
key: "1357e3"
|
|
48
|
+
}], ["path", {
|
|
49
|
+
d: "M3 3v5h5",
|
|
50
|
+
key: "1xhq8a"
|
|
51
|
+
}]]);
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region ../ui-library/src/lib/hub-mount.ts
|
|
54
|
+
e();
|
|
55
|
+
var c = "camstack-mount", l = /^\/(?:[A-Za-z0-9_\-.]+\/)*$/, u = null;
|
|
56
|
+
function d(e) {
|
|
57
|
+
if (e == null || e === "") return null;
|
|
58
|
+
let t = e.endsWith("/") ? e : `${e}/`;
|
|
59
|
+
return !l.test(t) || t.includes("/../") || t.includes("/./") ? null : t;
|
|
60
|
+
}
|
|
61
|
+
function f() {
|
|
62
|
+
if (typeof document > "u") return "/";
|
|
63
|
+
let e = d(document.querySelector(`meta[name="${c}"]`)?.getAttribute("content"));
|
|
64
|
+
if (e !== null) return e;
|
|
65
|
+
if (document.querySelector("base[href]") !== null) try {
|
|
66
|
+
let e = new URL(document.baseURI);
|
|
67
|
+
if (e.origin === window.location.origin) {
|
|
68
|
+
let t = d(e.pathname);
|
|
69
|
+
if (t !== null) return t;
|
|
70
|
+
}
|
|
71
|
+
} catch {}
|
|
72
|
+
return "/";
|
|
73
|
+
}
|
|
74
|
+
function p() {
|
|
75
|
+
return u === null && (u = f()), u;
|
|
76
|
+
}
|
|
77
|
+
function m() {
|
|
78
|
+
return p().replace(/\/$/, "");
|
|
79
|
+
}
|
|
80
|
+
function h(e) {
|
|
81
|
+
return /^[a-z][a-z0-9+.-]*:/i.test(e) || e.startsWith("//");
|
|
82
|
+
}
|
|
83
|
+
function g(e) {
|
|
84
|
+
if (h(e)) return e;
|
|
85
|
+
let t = p(), n = e.replace(/^\/+/, "");
|
|
86
|
+
return t !== "/" && (e === m() || e.startsWith(t)) ? e : `${t}${n}`;
|
|
87
|
+
}
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region ../ui-library/src/hooks/use-device-snapshot.ts
|
|
90
|
+
var _ = "/addon/snapshot/media";
|
|
91
|
+
function v(e, i = {}) {
|
|
92
|
+
let { width: a, baseUrl: o } = i, [s, c] = n(0);
|
|
93
|
+
return {
|
|
94
|
+
src: r(() => {
|
|
95
|
+
if (e === null || e <= 0) return null;
|
|
96
|
+
let t = o === void 0 ? m() : o.replace(/\/+$/, ""), n = new URLSearchParams();
|
|
97
|
+
a !== void 0 && Number.isInteger(a) && a > 0 && n.set("w", String(a)), s > 0 && (n.set("force", "1"), n.set("r", String(s)));
|
|
98
|
+
let r = n.toString();
|
|
99
|
+
return `${t}${_}/${String(e)}.jpg${r.length > 0 ? `?${r}` : ""}`;
|
|
100
|
+
}, [
|
|
101
|
+
e,
|
|
102
|
+
a,
|
|
103
|
+
o,
|
|
104
|
+
s
|
|
105
|
+
]),
|
|
106
|
+
loading: !1,
|
|
107
|
+
refresh: t(() => {
|
|
108
|
+
c((e) => e + 1);
|
|
109
|
+
}, [])
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
//#endregion
|
|
113
|
+
//#region ../ui-library/src/composites/cap-settings/scene-monitor-copy.ts
|
|
114
|
+
var y = ["day", "ir"], b = {
|
|
115
|
+
day: "Daylight",
|
|
116
|
+
ir: "Night (IR)",
|
|
117
|
+
night: "Night",
|
|
118
|
+
dawn: "Dawn",
|
|
119
|
+
dusk: "Dusk"
|
|
120
|
+
};
|
|
121
|
+
function x(e) {
|
|
122
|
+
return b[e] ?? e;
|
|
123
|
+
}
|
|
124
|
+
function S(e) {
|
|
125
|
+
let t = new Set(e.coveredConditions), n = y.map((e) => `${x(e)} ${t.has(e) ? "✓" : "✗"}`), r = [...t].filter((e) => !y.some((t) => t === e));
|
|
126
|
+
for (let e of r) n.push(`${x(e)} ✓`);
|
|
127
|
+
let i = y.filter((e) => !t.has(e));
|
|
128
|
+
if (i.length === 0) return n.join(" · ");
|
|
129
|
+
if (t.size === 0) return `${n.join(" · ")} — nothing captured yet, so this scene is not watching.`;
|
|
130
|
+
let a = i.map((e) => x(e).toLowerCase()).join(" and ");
|
|
131
|
+
return e.onUncoveredCondition === "judge-anyway" ? `${n.join(" · ")} — ${a} judged against the references you do have.` : `${n.join(" · ")} — optional; checks in ${a} are skipped.`;
|
|
132
|
+
}
|
|
133
|
+
function C(e) {
|
|
134
|
+
if (e.suspendedCondition === null) return null;
|
|
135
|
+
let t = x(e.suspendedCondition).toLowerCase();
|
|
136
|
+
return `Paused — nothing was captured in ${t}, so checks are on hold until the light changes back. Capture ${t} if you want it watched around the clock.`;
|
|
137
|
+
}
|
|
138
|
+
var w = {
|
|
139
|
+
"no-reference-for-condition": "can’t tell — nothing has been captured for this scene yet. Press “Capture daylight” to photograph what normal looks like.",
|
|
140
|
+
"view-shifted": "can’t tell — the camera view has moved since the reference was captured. Re-capture it.",
|
|
141
|
+
"no-vision-profile": "can’t tell — the vision model is unreachable, so the change is on hold.",
|
|
142
|
+
"encoder-model-changed": "can’t tell — the embedding model changed, so the stored references are unreadable. Re-capture them.",
|
|
143
|
+
"no-snapshot": "can’t tell — this camera did not return a frame."
|
|
144
|
+
};
|
|
145
|
+
function T(e, t) {
|
|
146
|
+
if (e.states.length === 0) return "Not armed yet — capture the initial state to start watching.";
|
|
147
|
+
if (e.verdict === "unknown") return e.unavailable === null ? "can’t tell right now." : w[e.unavailable];
|
|
148
|
+
let n = e.verdict === "diverged" ? e.divergedAt : e.armedAt, r = n === null ? "" : ` for ${k(Math.max(0, t - n))}`;
|
|
149
|
+
if (e.latched) return e.verdict === "diverged" ? `CHANGED${r} — press Reset when you have dealt with it.` : `Back to normal, but still flagged as changed${r}. Press Reset to clear it.`;
|
|
150
|
+
let i = C(e);
|
|
151
|
+
return i === null ? e.verdict === "diverged" ? `CHANGED${r}` : `Normal${r}` : i;
|
|
152
|
+
}
|
|
153
|
+
function E(e) {
|
|
154
|
+
return e.states.length === 0 ? {
|
|
155
|
+
text: "Not armed",
|
|
156
|
+
tone: "unknown"
|
|
157
|
+
} : e.latched ? {
|
|
158
|
+
text: "Changed",
|
|
159
|
+
tone: "alarm"
|
|
160
|
+
} : e.suspendedCondition === null ? e.verdict === "unknown" ? {
|
|
161
|
+
text: "Can’t tell",
|
|
162
|
+
tone: "unknown"
|
|
163
|
+
} : e.verdict === "diverged" ? {
|
|
164
|
+
text: "Changed",
|
|
165
|
+
tone: "alarm"
|
|
166
|
+
} : {
|
|
167
|
+
text: "Normal",
|
|
168
|
+
tone: "ok"
|
|
169
|
+
} : {
|
|
170
|
+
text: "Paused",
|
|
171
|
+
tone: "unknown"
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
var D = .4;
|
|
175
|
+
function O(e) {
|
|
176
|
+
return e.width * e.height > D;
|
|
177
|
+
}
|
|
178
|
+
function k(e) {
|
|
179
|
+
let t = Math.floor(e / 1e3);
|
|
180
|
+
if (t < 60) return `${t}s`;
|
|
181
|
+
let n = Math.floor(t / 60);
|
|
182
|
+
if (n < 60) return `${n}m`;
|
|
183
|
+
let r = Math.floor(n / 60);
|
|
184
|
+
return r < 48 ? `${r}h` : `${Math.floor(r / 24)}d`;
|
|
185
|
+
}
|
|
186
|
+
//#endregion
|
|
187
|
+
export { T as a, g as c, a as d, O as i, s as l, E as n, x as o, S as r, v as s, y as t, o as u };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { s as e } from "./responsive-D17kMsm1.mjs";
|
|
2
|
+
var t = e("eye-off", [
|
|
3
|
+
["path", {
|
|
4
|
+
d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",
|
|
5
|
+
key: "ct8e1f"
|
|
6
|
+
}],
|
|
7
|
+
["path", {
|
|
8
|
+
d: "M14.084 14.158a3 3 0 0 1-4.242-4.242",
|
|
9
|
+
key: "151rxh"
|
|
10
|
+
}],
|
|
11
|
+
["path", {
|
|
12
|
+
d: "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",
|
|
13
|
+
key: "13bj9a"
|
|
14
|
+
}],
|
|
15
|
+
["path", {
|
|
16
|
+
d: "m2 2 20 20",
|
|
17
|
+
key: "1ooewy"
|
|
18
|
+
}]
|
|
19
|
+
]), n = e("mic", [
|
|
20
|
+
["path", {
|
|
21
|
+
d: "M12 19v3",
|
|
22
|
+
key: "npa21l"
|
|
23
|
+
}],
|
|
24
|
+
["path", {
|
|
25
|
+
d: "M19 10v2a7 7 0 0 1-14 0v-2",
|
|
26
|
+
key: "1vc78b"
|
|
27
|
+
}],
|
|
28
|
+
["rect", {
|
|
29
|
+
x: "9",
|
|
30
|
+
y: "2",
|
|
31
|
+
width: "6",
|
|
32
|
+
height: "13",
|
|
33
|
+
rx: "3",
|
|
34
|
+
key: "s6n7sd"
|
|
35
|
+
}]
|
|
36
|
+
]), r = e("square", [["rect", {
|
|
37
|
+
width: "18",
|
|
38
|
+
height: "18",
|
|
39
|
+
x: "3",
|
|
40
|
+
y: "3",
|
|
41
|
+
rx: "2",
|
|
42
|
+
key: "afitv7"
|
|
43
|
+
}]]);
|
|
44
|
+
//#endregion
|
|
45
|
+
export { n, t as r, r as t };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { s as e } from "./responsive-D17kMsm1.mjs";
|
|
2
|
+
var t = e("trash-2", [
|
|
3
|
+
["path", {
|
|
4
|
+
d: "M10 11v6",
|
|
5
|
+
key: "nco0om"
|
|
6
|
+
}],
|
|
7
|
+
["path", {
|
|
8
|
+
d: "M14 11v6",
|
|
9
|
+
key: "outv1u"
|
|
10
|
+
}],
|
|
11
|
+
["path", {
|
|
12
|
+
d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",
|
|
13
|
+
key: "miytrc"
|
|
14
|
+
}],
|
|
15
|
+
["path", {
|
|
16
|
+
d: "M3 6h18",
|
|
17
|
+
key: "d0wm0j"
|
|
18
|
+
}],
|
|
19
|
+
["path", {
|
|
20
|
+
d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",
|
|
21
|
+
key: "e791ji"
|
|
22
|
+
}]
|
|
23
|
+
]);
|
|
24
|
+
//#endregion
|
|
25
|
+
export { t };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//#region virtual:mf-exposes:__mfe_internal__addon_training_page__remoteEntry_js
|
|
2
|
+
var e = {}, t = /* @__PURE__ */ new Set(), n = Promise.resolve();
|
|
3
|
+
async function r(e) {
|
|
4
|
+
let t = n.then(e, e);
|
|
5
|
+
return n = t.then(() => void 0, () => void 0), t;
|
|
6
|
+
}
|
|
7
|
+
async function i(n) {
|
|
8
|
+
if (typeof document > "u") return;
|
|
9
|
+
let r = e[n] || [];
|
|
10
|
+
await Promise.all(r.map((e) => {
|
|
11
|
+
let n = new URL(e, import.meta.url).href;
|
|
12
|
+
return t.has(n) || (t.add(n), document.querySelector(`link[rel="stylesheet"][data-mf-href="${n}"]`)) ? Promise.resolve() : new Promise((e, t) => {
|
|
13
|
+
let r = document.createElement("link");
|
|
14
|
+
r.rel = "stylesheet", r.href = n, r.setAttribute("data-mf-href", n), r.onload = () => e(), r.onerror = () => t(/* @__PURE__ */ Error(`[Module Federation] Failed to load CSS asset: ${n}`)), document.head.appendChild(r);
|
|
15
|
+
});
|
|
16
|
+
}));
|
|
17
|
+
}
|
|
18
|
+
var a = { "./page": async () => {
|
|
19
|
+
await i("./page");
|
|
20
|
+
let e = await r(() => import("./_stub.js")), t = {};
|
|
21
|
+
return Object.assign(t, e), Object.defineProperty(t, "__esModule", {
|
|
22
|
+
value: !0,
|
|
23
|
+
enumerable: !1
|
|
24
|
+
}), t;
|
|
25
|
+
} };
|
|
26
|
+
//#endregion
|
|
27
|
+
export { a as default };
|