@camstack/addon-benchmark 1.2.150 → 1.2.151

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.
Files changed (45) hide show
  1. package/dist/MaskShapeCanvas-IMozTYd-.mjs +13806 -0
  2. package/dist/MotionZonesSettings-ZyajfPtv.mjs +310 -0
  3. package/dist/{PrivacyMaskSettings-Bw2433zS.mjs → PrivacyMaskSettings-Cg8NOBlj.mjs} +9 -9
  4. package/dist/{SceneMonitorEditor-CEq7UYYx.mjs → SceneMonitorEditor-DWlUo1ZM.mjs} +269 -269
  5. package/dist/_stub.js +13287 -25722
  6. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-BMIcawh_.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-Ca2co8UF.mjs} +3 -3
  7. package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BE5yZLei.mjs +26 -0
  8. package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-wTD-CVC7.mjs +25 -0
  9. package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_trpc_mf_1_client__loadShare__.js-BxuRwc3x.mjs +25 -0
  10. package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_trpc_mf_1_react_mf_2_query__loadShare__.js-CQ0VjvSn.mjs +26 -0
  11. package/dist/{_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react__loadShare__.js-GeuxDuzQ.mjs → _virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react__loadShare__.js-DQXGYpip.mjs} +1 -1
  12. package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-Dh0XkFx5.mjs +26 -0
  13. package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_2_dom__loadShare__.js-NtWzzhEn.mjs +25 -0
  14. package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_2_dom_mf_1_client__loadShare__.js-CFJOcZEH.mjs +25 -0
  15. package/dist/addon-benchmark.css +1 -1
  16. package/dist/{hostInit-BG79Vuom.mjs → hostInit-gynkOlvE.mjs} +2 -2
  17. package/dist/index.js +1474 -1860
  18. package/dist/index.js.map +1 -1
  19. package/dist/index.mjs +1477 -1842
  20. package/dist/index.mjs.map +1 -1
  21. package/dist/player-overlays-CbKnZXwO.mjs +44 -0
  22. package/dist/remoteEntry.js +1 -1
  23. package/dist/{responsive-DU_Gek6C.mjs → responsive-CGsBDbD0.mjs} +10 -14
  24. package/dist/{scene-monitor-copy-DwF-5VWK.mjs → scene-monitor-copy-T3Kfl9jG.mjs} +26 -29
  25. package/dist/{square-e4QuB7SC.mjs → square-Cj8CvK_2.mjs} +1 -1
  26. package/dist/{trash-2-CYiIi9m7.mjs → trash-2-nQzUhmWL.mjs} +1 -1
  27. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-C4HwP7ml.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-CrQL4i7s.mjs} +390 -399
  28. package/package.json +4 -5
  29. package/assets/fixtures/camera-sim-1080p.h264 +0 -0
  30. package/assets/fixtures/camera-sim-1440p-h265.hevc +0 -0
  31. package/assets/fixtures/camera-sim-360p.h264 +0 -0
  32. package/dist/MaskShapeCanvas-BDvrLf-K.mjs +0 -686
  33. package/dist/MotionZonesSettings-Ca7gw3LT.mjs +0 -292
  34. package/dist/ReactKonva-DXzDAU1q.mjs +0 -5416
  35. package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DDbAl4wY.mjs +0 -26
  36. package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-lv97RBhq.mjs +0 -89
  37. package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_trpc_mf_1_client__loadShare__.js-DtWmo0vJ.mjs +0 -58
  38. package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_trpc_mf_1_react_mf_2_query__loadShare__.js-Bh7FS7ML.mjs +0 -62
  39. package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-SOU_VnTj.mjs +0 -34
  40. package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_2_dom__loadShare__.js-DQaf3kYb.mjs +0 -45
  41. package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_2_dom_mf_1_client__loadShare__.js-DUzuN6aS.mjs +0 -34
  42. package/dist/grid-2x2-BJ3lFTm4.mjs +0 -21
  43. package/dist/hls-R1zGmDT3.mjs +0 -18476
  44. package/dist/lib-CVGFTwe0.mjs +0 -7770
  45. package/dist/player-overlays-BrlDlS6o.mjs +0 -69
@@ -0,0 +1,44 @@
1
+ import { h as e, l as t, u as n, y as r } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react__loadShare__.js-DQXGYpip.mjs";
2
+ import { o as i, s as a } from "./responsive-CGsBDbD0.mjs";
3
+ import { n as o, r as s, t as c } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-Dh0XkFx5.mjs";
4
+ var l = a("chevron-down", [["path", {
5
+ d: "m6 9 6 6 6-6",
6
+ key: "qrunsl"
7
+ }]]), u = a("chevron-right", [["path", {
8
+ d: "m9 18 6-6-6-6",
9
+ key: "mthhwq"
10
+ }]]);
11
+ //#endregion
12
+ //#region ../ui-library/src/composites/widget-panel.tsx
13
+ r();
14
+ function d({ title: t, icon: n, headerRight: r, collapsible: i = !1, defaultOpen: a = !0, bodyClassName: d = "p-3", children: f }) {
15
+ let [p, m] = e(a), h = !i || p, g = /* @__PURE__ */ s(c, { children: [/* @__PURE__ */ s("span", {
16
+ className: "flex items-center gap-2 text-xs font-semibold uppercase tracking-wider text-foreground",
17
+ children: [n, t]
18
+ }), i ? o(p ? l : u, { className: "h-3.5 w-3.5 text-foreground-subtle" }) : r] }), _ = `px-4 py-2 flex items-center justify-between ${h ? "border-b border-border" : ""}`;
19
+ return /* @__PURE__ */ s("div", {
20
+ className: "rounded-lg border border-border bg-surface overflow-hidden",
21
+ children: [i ? /* @__PURE__ */ o("button", {
22
+ type: "button",
23
+ onClick: () => m((e) => !e),
24
+ className: `w-full text-left ${_}`,
25
+ children: g
26
+ }) : /* @__PURE__ */ o("div", {
27
+ className: _,
28
+ children: g
29
+ }), h ? /* @__PURE__ */ o("div", {
30
+ className: d,
31
+ children: f
32
+ }) : null]
33
+ });
34
+ }
35
+ r(), i("camstack:player-overlays-state", null);
36
+ var f = i("camstack:player-overlays-actions", null);
37
+ function p(e) {
38
+ let r = t(f);
39
+ n(() => {
40
+ if (!(!r || !e)) return r.setLayer(e), () => r.removeLayer(e.id);
41
+ }, [r, e]);
42
+ }
43
+ //#endregion
44
+ export { l as i, d as n, u as r, p as t };
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-C4HwP7ml.mjs";
1
+ import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-CrQL4i7s.mjs";
2
2
  export { t as get, e as init };
@@ -1,6 +1,6 @@
1
- import { _ as e, c as t, g as n, l as r, n as i, p as a, r as o, t as s, u as c, x as l } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react__loadShare__.js-GeuxDuzQ.mjs";
2
- import "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-SOU_VnTj.mjs";
3
- import { o as u } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DDbAl4wY.mjs";
1
+ import { c as e, g as t, h as n, l as r, n as i, p as a, r as o, t as s, u as c, y as l } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react__loadShare__.js-DQXGYpip.mjs";
2
+ import "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-Dh0XkFx5.mjs";
3
+ import { r as u } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BE5yZLei.mjs";
4
4
  //#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js
5
5
  l();
6
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) => {
@@ -97,16 +97,12 @@ function C(e, t) {
97
97
  }, [e, t]), a(() => r ? u(e, r) : null, [e, r]);
98
98
  }
99
99
  function w(n) {
100
- let r = t((e) => n ? n.subscribe(() => e()) : () => void 0, [n]), i = t(() => n?.value, [n]);
101
- return e(r, i, i);
102
- }
103
- function T(e, t, n) {
104
- let r = C(e, t);
105
- return w(r ? n(r.state) : void 0);
100
+ let r = e((e) => n ? n.subscribe(() => e()) : () => void 0, [n]), i = e(() => n?.value, [n]);
101
+ return t(r, i, i);
106
102
  }
107
103
  //#endregion
108
104
  //#region ../ui-library/src/lib/cap-error.ts
109
- function E(e) {
105
+ function T(e) {
110
106
  if (typeof e != "object" || !e) return null;
111
107
  let t = Reflect.get(e, "data");
112
108
  if (typeof t == "object" && t) {
@@ -115,12 +111,12 @@ function E(e) {
115
111
  }
116
112
  return null;
117
113
  }
118
- function D(e) {
119
- let t = E(e);
114
+ function E(e) {
115
+ let t = T(e);
120
116
  return t === null ? (e instanceof Error ? e.message : String(e)).includes("provider not available") : t === "no-provider" || t === "node-offline";
121
117
  }
122
118
  //#endregion
123
119
  //#region ../ui-library/src/lib/responsive.ts
124
- var O = "text-[10px] text-foreground-subtle";
120
+ var D = "text-[10px] text-foreground-subtle";
125
121
  //#endregion
126
- export { w as a, v as c, T as i, D as n, x as o, C as r, y as s, O as t };
122
+ export { x as a, w as i, E as n, y as o, C as r, v as s, D as t };
@@ -1,5 +1,5 @@
1
- import { c as e, g as t, p as n, x as r } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react__loadShare__.js-GeuxDuzQ.mjs";
2
- import { c as i } from "./responsive-DU_Gek6C.mjs";
1
+ import { c as e, h as t, p as n, y as r } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react__loadShare__.js-DQXGYpip.mjs";
2
+ import { s as i } from "./responsive-CGsBDbD0.mjs";
3
3
  var a = i("camera", [["path", {
4
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
5
  key: "18u6gg"
@@ -85,13 +85,10 @@ function g(e) {
85
85
  let t = p(), n = e.replace(/^\/+/, "");
86
86
  return t !== "/" && (e === m() || e.startsWith(t)) ? e : `${t}${n}`;
87
87
  }
88
- function _() {
89
- return `${typeof window < "u" ? window.location.origin : ""}${m()}`;
90
- }
91
88
  //#endregion
92
89
  //#region ../ui-library/src/hooks/use-device-snapshot.ts
93
- var v = "/addon/snapshot/media";
94
- function y(r, i = {}) {
90
+ var _ = "/addon/snapshot/media";
91
+ function v(r, i = {}) {
95
92
  let { width: a, baseUrl: o } = i, [s, c] = t(0);
96
93
  return {
97
94
  src: n(() => {
@@ -99,7 +96,7 @@ function y(r, i = {}) {
99
96
  let e = o === void 0 ? m() : o.replace(/\/+$/, ""), t = new URLSearchParams();
100
97
  a !== void 0 && Number.isInteger(a) && a > 0 && t.set("w", String(a)), s > 0 && (t.set("force", "1"), t.set("r", String(s)));
101
98
  let n = t.toString();
102
- return `${e}${v}/${String(r)}.jpg${n.length > 0 ? `?${n}` : ""}`;
99
+ return `${e}${_}/${String(r)}.jpg${n.length > 0 ? `?${n}` : ""}`;
103
100
  }, [
104
101
  r,
105
102
  a,
@@ -114,46 +111,46 @@ function y(r, i = {}) {
114
111
  }
115
112
  //#endregion
116
113
  //#region ../ui-library/src/composites/cap-settings/scene-monitor-copy.ts
117
- var b = ["day", "ir"], x = {
114
+ var y = ["day", "ir"], b = {
118
115
  day: "Daylight",
119
116
  ir: "Night (IR)",
120
117
  night: "Night",
121
118
  dawn: "Dawn",
122
119
  dusk: "Dusk"
123
120
  };
124
- function S(e) {
125
- return x[e] ?? e;
121
+ function x(e) {
122
+ return b[e] ?? e;
126
123
  }
127
- function C(e) {
128
- let t = new Set(e.coveredConditions), n = b.map((e) => `${S(e)} ${t.has(e) ? "✓" : "✗"}`), r = [...t].filter((e) => !b.some((t) => t === e));
129
- for (let e of r) n.push(`${S(e)} ✓`);
130
- let i = b.filter((e) => !t.has(e));
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));
131
128
  if (i.length === 0) return n.join(" · ");
132
129
  if (t.size === 0) return `${n.join(" · ")} — nothing captured yet, so this scene is not watching.`;
133
- let a = i.map((e) => S(e).toLowerCase()).join(" and ");
130
+ let a = i.map((e) => x(e).toLowerCase()).join(" and ");
134
131
  return e.onUncoveredCondition === "judge-anyway" ? `${n.join(" · ")} — ${a} judged against the references you do have.` : `${n.join(" · ")} — optional; checks in ${a} are skipped.`;
135
132
  }
136
- function w(e) {
133
+ function C(e) {
137
134
  if (e.suspendedCondition === null) return null;
138
- let t = S(e.suspendedCondition).toLowerCase();
135
+ let t = x(e.suspendedCondition).toLowerCase();
139
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.`;
140
137
  }
141
- var T = {
138
+ var w = {
142
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.",
143
140
  "view-shifted": "can’t tell — the camera view has moved since the reference was captured. Re-capture it.",
144
141
  "no-vision-profile": "can’t tell — the vision model is unreachable, so the change is on hold.",
145
142
  "encoder-model-changed": "can’t tell — the embedding model changed, so the stored references are unreadable. Re-capture them.",
146
143
  "no-snapshot": "can’t tell — this camera did not return a frame."
147
144
  };
148
- function E(e, t) {
145
+ function T(e, t) {
149
146
  if (e.states.length === 0) return "Not armed yet — capture the initial state to start watching.";
150
- if (e.verdict === "unknown") return e.unavailable === null ? "can’t tell right now." : T[e.unavailable];
151
- let n = e.verdict === "diverged" ? e.divergedAt : e.armedAt, r = n === null ? "" : ` for ${A(Math.max(0, t - n))}`;
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))}`;
152
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.`;
153
- let i = w(e);
150
+ let i = C(e);
154
151
  return i === null ? e.verdict === "diverged" ? `CHANGED${r}` : `Normal${r}` : i;
155
152
  }
156
- function D(e) {
153
+ function E(e) {
157
154
  return e.states.length === 0 ? {
158
155
  text: "Not armed",
159
156
  tone: "unknown"
@@ -174,11 +171,11 @@ function D(e) {
174
171
  tone: "unknown"
175
172
  };
176
173
  }
177
- var O = .4;
178
- function k(e) {
179
- return e.width * e.height > O;
174
+ var D = .4;
175
+ function O(e) {
176
+ return e.width * e.height > D;
180
177
  }
181
- function A(e) {
178
+ function k(e) {
182
179
  let t = Math.floor(e / 1e3);
183
180
  if (t < 60) return `${t}s`;
184
181
  let n = Math.floor(t / 60);
@@ -187,4 +184,4 @@ function A(e) {
187
184
  return r < 48 ? `${r}h` : `${Math.floor(r / 24)}d`;
188
185
  }
189
186
  //#endregion
190
- export { E as a, _ as c, o as d, a as f, k as i, g as l, D as n, S as o, C as r, y as s, b as t, s as u };
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 };
@@ -1,4 +1,4 @@
1
- import { c as e } from "./responsive-DU_Gek6C.mjs";
1
+ import { s as e } from "./responsive-CGsBDbD0.mjs";
2
2
  var t = e("eye-off", [
3
3
  ["path", {
4
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",
@@ -1,4 +1,4 @@
1
- import { c as e } from "./responsive-DU_Gek6C.mjs";
1
+ import { s as e } from "./responsive-CGsBDbD0.mjs";
2
2
  var t = e("trash-2", [
3
3
  ["path", {
4
4
  d: "M10 11v6",