@camstack/addon-pipeline 1.2.253 → 1.2.255

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 (33) hide show
  1. package/dist/audio-analyzer/index.js +2 -2
  2. package/dist/audio-analyzer/index.mjs +2 -2
  3. package/dist/{default-detection-model-C3QhNmlf.js → default-detection-model-CCFY8YLF.js} +1 -1
  4. package/dist/{default-detection-model-CaOyxW54.mjs → default-detection-model-DRTO2E6G.mjs} +1 -1
  5. package/dist/detection-pipeline/index.js +4 -4
  6. package/dist/detection-pipeline/index.mjs +4 -4
  7. package/dist/{dist-UDv0mi6-.mjs → dist-BS-l_k7M.mjs} +243 -26
  8. package/dist/{dist-G5Uib9Bn.js → dist-CqqhxcYH.js} +243 -26
  9. package/dist/motion-wasm/index.js +1 -1
  10. package/dist/motion-wasm/index.mjs +1 -1
  11. package/dist/{node-5P6235Qa.mjs → node-DjvGLcbe.mjs} +1 -1
  12. package/dist/{node-ByNljnzV.js → node-bdHZWpo1.js} +1 -1
  13. package/dist/pipeline-runner/index.js +4 -4
  14. package/dist/pipeline-runner/index.mjs +4 -4
  15. package/dist/{process-memory-DBzJCO-_.mjs → process-memory-CrDzHWbQ.mjs} +1 -1
  16. package/dist/{process-memory-3HWRtZgr.js → process-memory-hQeELS5T.js} +1 -1
  17. package/dist/recorder/index.js +3 -3
  18. package/dist/recorder/index.mjs +3 -3
  19. package/dist/{restream-intent-MeJhGCK9.mjs → restream-intent-D2VT97-U.mjs} +3 -3
  20. package/dist/{restream-intent-C4adO0P8.js → restream-intent-VVJiUAkh.js} +3 -3
  21. package/dist/{segment-demux-js-CUFnkl3n.mjs → segment-demux-js-BnYubI9B.mjs} +1 -1
  22. package/dist/{segment-demux-js-CtQrIvn7.js → segment-demux-js-CaDmuf08.js} +1 -1
  23. package/dist/stream-broker/_stub.js +2 -2
  24. package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-Bg9efO4H.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-qftSJVIp.mjs} +3 -3
  25. package/dist/stream-broker/{_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-k114uFcJ.mjs → _virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CPFjd94C.mjs} +1 -1
  26. package/dist/stream-broker/{_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-BHtcf-Mo.mjs → _virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-D8WW_JG-.mjs} +1 -1
  27. package/dist/stream-broker/demux-worker-child.js +1 -1
  28. package/dist/stream-broker/demux-worker-child.mjs +1 -1
  29. package/dist/stream-broker/{hostInit-DYYAMbPi.mjs → hostInit-BbuA-Tci.mjs} +3 -3
  30. package/dist/stream-broker/index.js +162 -158
  31. package/dist/stream-broker/index.mjs +162 -158
  32. package/dist/stream-broker/remoteEntry.js +1 -1
  33. package/package.json +1 -1
@@ -5360,7 +5360,7 @@ var ZodIssueCode = {
5360
5360
  var ZodFirstPartyTypeKind;
5361
5361
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5362
5362
  //#endregion
5363
- //#region ../types/dist/sleep-BDR76Ykr.mjs
5363
+ //#region ../types/dist/sleep-B1y0Fo1U.mjs
5364
5364
  /**
5365
5365
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5366
5366
  * window to float samples (D455).
@@ -7577,7 +7577,7 @@ function sleep(ms) {
7577
7577
  return new Promise((resolve) => setTimeout(resolve, Math.max(0, ms)));
7578
7578
  }
7579
7579
  //#endregion
7580
- //#region ../types/dist/canonical-hash-Ch5bSjFG.mjs
7580
+ //#region ../types/dist/canonical-hash-DBkl8q6V.mjs
7581
7581
  var AUDIO_ENCODER_BY_CODEC = {
7582
7582
  opus: "libopus",
7583
7583
  aac: "aac",
@@ -7642,8 +7642,41 @@ function buildInputArgs(input, decodeHwAccel) {
7642
7642
  args.push("-i", input.url);
7643
7643
  return args;
7644
7644
  }
7645
+ /**
7646
+ * Derive the output `-map` selectors. The three cases, in the order they are
7647
+ * decided:
7648
+ *
7649
+ * 1. **A filter graph** — the picture is the graph's declared video pad, and
7650
+ * the audio is its audio pad when it has one, otherwise input 0's mic. A
7651
+ * graph's output is not addressable any other way.
7652
+ * 2. **N inputs, no graph** — map input 0 EXPLICITLY. ffmpeg's own selection
7653
+ * picks the "best" stream across ALL inputs, so the egress would silently
7654
+ * become whichever camera happens to have the largest frame.
7655
+ * 3. **One input, no graph** — no `-map`. Anything else would change the argv
7656
+ * of every call site that exists today for no gain.
7657
+ */
7658
+ function resolveStreamMaps(selection) {
7659
+ const graph = selection.filterGraph;
7660
+ if (graph) return {
7661
+ video: `[${graph.videoOutLabel}]`,
7662
+ audio: graph.audioOutLabel ? `[${graph.audioOutLabel}]` : "0:a:0?"
7663
+ };
7664
+ if (selection.extraInputs?.length) return {
7665
+ video: "0:v:0",
7666
+ audio: "0:a:0?"
7667
+ };
7668
+ return {
7669
+ video: null,
7670
+ audio: null
7671
+ };
7672
+ }
7645
7673
  /** The `-vf` filter args, or `[]` when a consumer `-vf` already claims the slot. */
7646
- function buildVideoFilterArgs(scale, outputArgs) {
7674
+ function buildVideoFilterArgs(scale, outputArgs, filterGraph) {
7675
+ if (filterGraph) {
7676
+ if (scale) throw new Error("FfmpegInvocation: video.scale cannot be combined with a filter graph — scale inside the graph instead (the -vf would feed an output the graph already feeds)");
7677
+ if (outputArgs.some((a) => a === "-vf")) throw new Error("FfmpegInvocation: outputArgs carries a -vf while a filter graph feeds the same output — fold the filter into the graph");
7678
+ return [];
7679
+ }
7647
7680
  if (!scale) return [];
7648
7681
  if (outputArgs.some((a) => a === "-vf")) return [];
7649
7682
  if (scale.mode === "exact") return ["-vf", `scale=${scale.width}:${scale.height}`];
@@ -7667,14 +7700,17 @@ function buildRateControlArgs(video) {
7667
7700
  ];
7668
7701
  }
7669
7702
  /** The whole video block (`-vf` … `-c:v` … knobs), after `-i`. */
7670
- function buildVideoArgs(video, outputArgs) {
7671
- if (video.kind === "copy") return [
7672
- "-c:v",
7673
- "copy",
7674
- ...video.bitstreamFilter ? ["-bsf:v", video.bitstreamFilter] : []
7675
- ];
7703
+ function buildVideoArgs(video, outputArgs, filterGraph) {
7704
+ if (video.kind === "copy") {
7705
+ if (filterGraph) throw new Error("FfmpegInvocation: a filter graph produces a NEW picture, so video.kind must be `encode`");
7706
+ return [
7707
+ "-c:v",
7708
+ "copy",
7709
+ ...video.bitstreamFilter ? ["-bsf:v", video.bitstreamFilter] : []
7710
+ ];
7711
+ }
7676
7712
  const args = [
7677
- ...buildVideoFilterArgs(video.scale, outputArgs),
7713
+ ...buildVideoFilterArgs(video.scale, outputArgs, filterGraph),
7678
7714
  "-c:v",
7679
7715
  video.encoder
7680
7716
  ];
@@ -7829,20 +7865,39 @@ function buildAudioSidecarArgs(sidecar) {
7829
7865
  * [<input.extraArgs>] │
7830
7866
  * [-fflags <flag>…] │
7831
7867
  * [-rtsp_transport tcp] │
7832
- * -i <url> ─┘
7833
- * <video block> <threads> <audio block> ─┐ OUTPUT options.
7868
+ * -i <url> ─┘ …repeated per extraInput
7869
+ * [-filter_complex <graph>] ─ global, after the LAST -i
7870
+ * [-map <video>] <video block> <threads> ─┐ OUTPUT options.
7871
+ * [-map <audio>] <audio block> │
7834
7872
  * <consumer outputArgs verbatim> │
7835
7873
  * <sink> ─┘ terminal
7874
+ *
7875
+ * The `-map`s are DERIVED (see {@link resolveStreamMaps}), never constants:
7876
+ * one input with no graph emits none at all, which is why the argv of every
7877
+ * call site that predates the N-input extension is unchanged to the byte.
7878
+ *
7879
+ * {@link FfmpegInvocation.audioSidecar} is the one map that stays literal
7880
+ * (`0:a:0?`): the sidecar is defined as the SOURCE's microphone on its own RTP
7881
+ * output, not as whatever the main output happens to carry.
7836
7882
  */
7837
7883
  function buildFfmpegArgs(inv) {
7838
- const head = [...logBannerArgs(inv.logLevel), ...buildInputArgs(inv.input, inv.decodeHwAccel)];
7884
+ const graph = inv.filterGraph ?? null;
7885
+ const head = [
7886
+ ...logBannerArgs(inv.logLevel),
7887
+ ...buildInputArgs(inv.input, inv.decodeHwAccel),
7888
+ ...(inv.extraInputs ?? []).flatMap((extra) => buildInputArgs(extra, inv.decodeHwAccel)),
7889
+ ...graph ? ["-filter_complex", graph.graph] : []
7890
+ ];
7839
7891
  const threadArgs = inv.threadCount > 0 ? ["-threads", String(inv.threadCount)] : [];
7892
+ const maps = resolveStreamMaps(inv);
7893
+ const videoMapArgs = maps.video ? ["-map", maps.video] : [];
7894
+ const audioMapArgs = maps.audio ? ["-map", maps.audio] : [];
7840
7895
  if (inv.sink.kind === "rtp-outputs") {
7841
7896
  const videoLeg = inv.sink.video ? [
7842
7897
  "-an",
7843
7898
  "-map",
7844
- "0:v:0",
7845
- ...buildVideoArgs(inv.video, inv.outputArgs),
7899
+ maps.video ?? "0:v:0",
7900
+ ...buildVideoArgs(inv.video, inv.outputArgs, graph),
7846
7901
  ...threadArgs,
7847
7902
  ...inv.outputArgs,
7848
7903
  ...buildRtpOutputArgs(inv.sink.video)
@@ -7850,7 +7905,7 @@ function buildFfmpegArgs(inv) {
7850
7905
  const audioLeg = inv.sink.audio ? [
7851
7906
  "-vn",
7852
7907
  "-map",
7853
- "0:a:0?",
7908
+ maps.audio ?? "0:a:0?",
7854
7909
  ...buildAudioArgs(inv.audio),
7855
7910
  ...buildRtpOutputArgs(inv.sink.audio)
7856
7911
  ] : [];
@@ -7860,15 +7915,17 @@ function buildFfmpegArgs(inv) {
7860
7915
  ...audioLeg
7861
7916
  ];
7862
7917
  }
7918
+ const mutedAudio = isElementaryVideoSink(inv.sink) || inv.audio.kind === "none";
7863
7919
  const audioArgs = isElementaryVideoSink(inv.sink) ? ["-an"] : buildAudioArgs(inv.audio);
7864
- const sinkArgs = buildStdoutOrRtspSinkArgs(inv.sink);
7865
7920
  return [
7866
7921
  ...head,
7867
- ...buildVideoArgs(inv.video, inv.outputArgs),
7922
+ ...videoMapArgs,
7923
+ ...buildVideoArgs(inv.video, inv.outputArgs, graph),
7868
7924
  ...threadArgs,
7925
+ ...mutedAudio ? [] : audioMapArgs,
7869
7926
  ...audioArgs,
7870
7927
  ...inv.outputArgs,
7871
- ...sinkArgs,
7928
+ ...buildStdoutOrRtspSinkArgs(inv.sink),
7872
7929
  ...inv.audioSidecar ? buildAudioSidecarArgs(inv.audioSidecar) : []
7873
7930
  ];
7874
7931
  }
@@ -13864,7 +13921,7 @@ var streamBrokerCapability = {
13864
13921
  * - the signal is ENABLED for this camera (the operator's per-camera
13865
13922
  * choice — a camera may declare a signal the operator does not want
13866
13923
  * waking anything), and
13867
- * - a consumer is actually attached and waiting on the prestream. Waking
13924
+ * - a consumer is actually attached and waiting on the sentry. Waking
13868
13925
  * a camera nobody is watching is the one thing a battery camera must
13869
13926
  * never do, and a signal arriving with no consumer is exactly that.
13870
13927
  *
@@ -31972,14 +32029,81 @@ DeviceType.Camera, method(object({ deviceId: number() }), PrivacyMaskOptionsSche
31972
32029
  kind: "mutation",
31973
32030
  auth: "admin"
31974
32031
  });
32032
+ /**
32033
+ * What a preset id DOES on this camera.
32034
+ *
32035
+ * On several PTZ firmwares the preset namespace is shared: low ids are stored
32036
+ * positions, a reserved band triggers camera FUNCTIONS. The dispensa camera
32037
+ * (Hikvision) returns its own reserved band in the preset list, named by the
32038
+ * firmware:
32039
+ *
32040
+ * 34 Back to origin · 39 Day mode · 40 Night mode · 46 Day/Night Auto Mode
32041
+ * 92 Set manual limits · 93 Save manual limits · 94 Remote reboot
32042
+ * 95 Call OSD menu
32043
+ *
32044
+ * We used to hand all of these to the UI as ordinary presets. Saving over one
32045
+ * is what produced `PUT /ISAPI/PTZCtrl/channels/1/presets/34 -> HTTP 500`: the
32046
+ * camera refusing to let "Back to origin" be overwritten, surfaced to the
32047
+ * operator as a transport failure.
32048
+ *
32049
+ * A function preset stays fully usable as a DESTINATION -- `goToPreset('34')`
32050
+ * is the single most useful thing that camera can do. Only `savePreset` and
32051
+ * `deletePreset` are gated.
32052
+ */
32053
+ var PtzPresetFunctionSchema = _enum([
32054
+ "home",
32055
+ "day-mode",
32056
+ "night-mode",
32057
+ "day-night-auto",
32058
+ "set-limits",
32059
+ "save-limits",
32060
+ "reboot",
32061
+ "osd-menu"
32062
+ ]);
31975
32063
  var PtzPresetSchema = object({
31976
32064
  id: string(),
31977
- name: string()
32065
+ name: string(),
32066
+ /**
32067
+ * The firmware function this id performs, when the provider KNOWS the id is
32068
+ * reserved. `null` = an ordinary stored position, OR a reserved id this
32069
+ * provider does not recognise -- the two are told apart by `writable`.
32070
+ */
32071
+ fn: PtzPresetFunctionSchema.nullable(),
32072
+ /**
32073
+ * Whether `savePreset` / `deletePreset` may target this id. A provider sets
32074
+ * it false only for a band it KNOWS is reserved; where the firmware is not
32075
+ * documented it stays true and a refusal comes from the camera, named.
32076
+ */
32077
+ writable: boolean()
31978
32078
  });
32079
+ /**
32080
+ * Where the head is pointing -- per axis, and `null` when the driver cannot
32081
+ * read it.
32082
+ *
32083
+ * It used to be three REQUIRED numbers, which left a provider that cannot read
32084
+ * position no way to say so. All four said `0`:
32085
+ *
32086
+ * reolink `return { pan: 0, tilt: 0, zoom: 0 }` "until a position-query
32087
+ * path lands upstream"
32088
+ * hikvision stub, "firmware-dependent and frequently absent"
32089
+ * amcrest stub, "no generic absolute-position read for this model family"
32090
+ * onvif throws
32091
+ *
32092
+ * So every consumer asking where a camera points was told "perfectly centred"
32093
+ * by four cameras that had never looked. That is D393 -- a measurement that
32094
+ * FAILED is `null`, never `0`, and the type says so all the way to the
32095
+ * decision -- the same shape as the unreadable `statfs` folded into "0 bytes of
32096
+ * headroom", which evacuated a healthy disk.
32097
+ *
32098
+ * D393 also says to check for a narrower structural TWIN of the result type.
32099
+ * There is one: `PtzStatusSchema` extends this, so the lie had already
32100
+ * propagated into `getStatus`, which is the surface `getPosition`'s own comment
32101
+ * tells callers to migrate to.
32102
+ */
31979
32103
  var PtzPositionSchema = object({
31980
- pan: number(),
31981
- tilt: number(),
31982
- zoom: number()
32104
+ pan: number().nullable(),
32105
+ tilt: number().nullable(),
32106
+ zoom: number().nullable()
31983
32107
  });
31984
32108
  var PtzMoveCommandSchema = object({
31985
32109
  pan: number().optional(),
@@ -31998,7 +32122,72 @@ var PtzOptionsSchema = object({
31998
32122
  maxPresets: number().optional(),
31999
32123
  /** Whether the camera exposes a controllable autofocus toggle
32000
32124
  * (boolean `hasX` per the getOptions availability convention). */
32001
- hasAutofocus: boolean()
32125
+ hasAutofocus: boolean(),
32126
+ /**
32127
+ * How many distinct speeds this camera's NATIVE scale offers.
32128
+ *
32129
+ * The cap's `speed` is normalized 0..1 and each provider maps it down --
32130
+ * Baichuan 1..63, Dahua 1..8, ISAPI's percentage -100..100. The normalized
32131
+ * value hides how coarse that really is: asking an amcrest for `0.37` is
32132
+ * meaningless, because it has eight steps and three of them round to the
32133
+ * same one. A loop that tunes its own gain has to know the granularity of
32134
+ * the knob it is turning.
32135
+ *
32136
+ * `null` = the driver does not know, or the scale is continuous (ONVIF takes
32137
+ * a float). Never a made-up number.
32138
+ */
32139
+ speedSteps: number().int().positive().nullable(),
32140
+ /**
32141
+ * How long ONE `move` pulse runs on this driver, ms.
32142
+ *
32143
+ * `move` is a self-terminating burst everywhere, but every provider hardcoded
32144
+ * its own duration in private -- 200 reolink, 350 amcrest, 500 hikvision,
32145
+ * 1000 onvif -- so no caller could read it. It is the DENOMINATOR of "how far
32146
+ * did the head travel per pulse": without it a measured displacement has no
32147
+ * gain to be divided into.
32148
+ *
32149
+ * `null` = the driver cannot say.
32150
+ */
32151
+ moveImpulseMs: number().int().positive().nullable()
32152
+ });
32153
+ /**
32154
+ * Which preset `goHome` goes to, and WHO decided.
32155
+ *
32156
+ * `goHome` used to be three vendor "conventions" written in three comments --
32157
+ * Reolink preset 0, Hikvision preset '1', Dahua preset 1 -- and on this fleet
32158
+ * not one of the three cameras honours its own:
32159
+ *
32160
+ * 592 Videocamera camera Daniel (reolink) preset 0 holds "stanza"
32161
+ * 1438 Videocamera dispensa (hikvision) preset 1 holds "Credenza"
32162
+ * 3836 Videocamera studio (amcrest) preset 1 holds "Preset1"
32163
+ *
32164
+ * So `goHome` meant "go wherever the operator happened to save in slot 0 or 1",
32165
+ * and two of the three swallowed the failure in a bare `catch`. For autotrack
32166
+ * this is the HOTTEST path -- it runs every time a subject is released -- so it
32167
+ * needs an answer that is true per camera and audible when it is missing.
32168
+ *
32169
+ * `source` is what makes it honest:
32170
+ * - `operator` -- picked in the UI, stored by the provider.
32171
+ * - `firmware` -- the camera itself named a preset `fn: 'home'` (Hikvision's
32172
+ * "Back to origin"), adopted as the default with nothing to configure.
32173
+ * - `native` -- the driver homes WITHOUT a preset at all. ONVIF does:
32174
+ * `goHome` is `ptzAbsoluteMove({x:0, y:0, zoom:0})`. `presetId` is null and
32175
+ * that is not a failure -- there is nothing to pick, and the UI must offer
32176
+ * no picker.
32177
+ * - `none` -- nothing is configured and the camera names nothing.
32178
+ * `goHome` REFUSES rather than moving the head somewhere arbitrary.
32179
+ *
32180
+ * `source === 'none'` is the refusal condition, NOT `presetId === null`: the
32181
+ * native case has no preset and homes perfectly well.
32182
+ */
32183
+ var PtzHomePresetSchema = object({
32184
+ presetId: string().nullable(),
32185
+ source: _enum([
32186
+ "operator",
32187
+ "firmware",
32188
+ "native",
32189
+ "none"
32190
+ ])
32002
32191
  });
32003
32192
  DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(PtzMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(PtzPresetSchema)), method(object({
32004
32193
  deviceId: number(),
@@ -32016,7 +32205,13 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
32016
32205
  }), _void(), {
32017
32206
  kind: "mutation",
32018
32207
  auth: "admin"
32019
- }), method(object({ deviceId: number() }), PtzOptionsSchema), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), PtzPositionSchema), method(object({
32208
+ }), method(object({ deviceId: number() }), PtzOptionsSchema), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), PtzHomePresetSchema), method(object({
32209
+ deviceId: number(),
32210
+ presetId: string().nullable()
32211
+ }), _void(), {
32212
+ kind: "mutation",
32213
+ auth: "admin"
32214
+ }), method(object({ deviceId: number() }), PtzPositionSchema), method(object({
32020
32215
  deviceId: number(),
32021
32216
  enabled: boolean()
32022
32217
  }), _void(), { kind: "mutation" });
@@ -39445,6 +39640,12 @@ Object.freeze({
39445
39640
  addonId: null,
39446
39641
  access: "delete"
39447
39642
  },
39643
+ "ptz.getHomePreset": {
39644
+ capName: "ptz",
39645
+ capScope: "device",
39646
+ addonId: null,
39647
+ access: "view"
39648
+ },
39448
39649
  "ptz.getOptions": {
39449
39650
  capName: "ptz",
39450
39651
  capScope: "device",
@@ -39493,6 +39694,12 @@ Object.freeze({
39493
39694
  addonId: null,
39494
39695
  access: "create"
39495
39696
  },
39697
+ "ptz.setHomePreset": {
39698
+ capName: "ptz",
39699
+ capScope: "device",
39700
+ addonId: null,
39701
+ access: "create"
39702
+ },
39496
39703
  "ptz.stop": {
39497
39704
  capName: "ptz",
39498
39705
  capScope: "device",
@@ -42666,6 +42873,11 @@ Object.freeze({
42666
42873
  form: "single",
42667
42874
  optional: false
42668
42875
  }],
42876
+ "ptz.getHomePreset": [{
42877
+ name: "deviceId",
42878
+ form: "single",
42879
+ optional: false
42880
+ }],
42669
42881
  "ptz.getOptions": [{
42670
42882
  name: "deviceId",
42671
42883
  form: "single",
@@ -42706,6 +42918,11 @@ Object.freeze({
42706
42918
  form: "single",
42707
42919
  optional: false
42708
42920
  }],
42921
+ "ptz.setHomePreset": [{
42922
+ name: "deviceId",
42923
+ form: "single",
42924
+ optional: false
42925
+ }],
42709
42926
  "ptz.stop": [{
42710
42927
  name: "deviceId",
42711
42928
  form: "single",
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_dist = require("../dist-G5Uib9Bn.js");
5
+ const require_dist = require("../dist-CqqhxcYH.js");
6
6
  const require_lazy_sharp = require("../lazy-sharp-BuwKlQLR.js");
7
7
  let node_fs = require("node:fs");
8
8
  let node_path = require("node:path");
@@ -1,4 +1,4 @@
1
- import { $t as hydrateSchema, Wt as BaseAddon, X as evaluateZoneRules, ft as motionDetectionCapability, qt as DeviceType } from "../dist-UDv0mi6-.mjs";
1
+ import { $t as hydrateSchema, Wt as BaseAddon, X as evaluateZoneRules, ft as motionDetectionCapability, qt as DeviceType } from "../dist-BS-l_k7M.mjs";
2
2
  import { t as getSharp } from "../lazy-sharp-DXsqwpph.mjs";
3
3
  import { readFileSync } from "node:fs";
4
4
  import { join } from "node:path";
@@ -1,4 +1,4 @@
1
- import { Bt as buildFfmpegArgs, Ht as isSoftwareDecode, Lt as errMsg, zt as Fmp4BoxSplitter } from "./dist-UDv0mi6-.mjs";
1
+ import { Bt as buildFfmpegArgs, Ht as isSoftwareDecode, Lt as errMsg, zt as Fmp4BoxSplitter } from "./dist-BS-l_k7M.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import { realpathSync } from "node:fs";
4
4
  import path from "node:path";
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require("./chunk-emK7D4bc.js");
2
- const require_dist = require("./dist-G5Uib9Bn.js");
2
+ const require_dist = require("./dist-CqqhxcYH.js");
3
3
  let node_crypto = require("node:crypto");
4
4
  let node_fs = require("node:fs");
5
5
  node_fs = require_chunk.__toESM(node_fs, 1);
@@ -3,13 +3,13 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  const require_chunk = require("../chunk-emK7D4bc.js");
6
- const require_dist = require("../dist-G5Uib9Bn.js");
7
- const require_node = require("../node-ByNljnzV.js");
8
- const require_default_detection_model = require("../default-detection-model-C3QhNmlf.js");
6
+ const require_dist = require("../dist-CqqhxcYH.js");
7
+ const require_node = require("../node-bdHZWpo1.js");
8
+ const require_default_detection_model = require("../default-detection-model-CCFY8YLF.js");
9
9
  const require_worker_protocol = require("../worker-protocol-B2MfQLlu.js");
10
10
  const require_hub_hostname = require("../hub-hostname-DAJXlOgV.js");
11
11
  const require_lazy_sharp = require("../lazy-sharp-BuwKlQLR.js");
12
- const require_restream_intent = require("../restream-intent-C4adO0P8.js");
12
+ const require_restream_intent = require("../restream-intent-VVJiUAkh.js");
13
13
  const require_remote_restream = require("../remote-restream-CO36Sr30.js");
14
14
  let node_os = require("node:os");
15
15
  node_os = require_chunk.__toESM(node_os);
@@ -1,10 +1,10 @@
1
- import { $ as failureContributionCapability, Lt as errMsg, S as NativeLeaseSettingsSchema, U as deriveDetailCropRect, Wt as BaseAddon, Xt as customAction, Yt as createEvent, Zt as defineCustomActions, _ as FailureCounters, _t as pickDetailCropConvention, b as MOTION_CLOSE_AFTER_MS, bn as EventCategory, bt as pipelineRunnerCapability, cn as _enum, fn as lazy, hn as object, it as loadContributionCapability, ln as array, m as DEVICE_BACKEND_TO_FORMAT, mn as number, p as DEFAULT_NATIVE_LEASE_SETTINGS, pn as literal, rn as nodePin, u as DEFAULT_DETAIL_CROP_CONVENTION, un as boolean, vn as string, vt as pickNativeLeaseOverride, x as NativeLeaseAdmissionSchema } from "../dist-UDv0mi6-.mjs";
2
- import { i as NO_COST_CLAIM, t as ChildCostRegistry } from "../node-5P6235Qa.mjs";
3
- import { a as localFrameRegistry, d as getStepDefinition, i as rootObjectGate, o as resolveFrameViewGeometry, r as macroGateVerdict } from "../default-detection-model-CaOyxW54.mjs";
1
+ import { $ as failureContributionCapability, Lt as errMsg, S as NativeLeaseSettingsSchema, U as deriveDetailCropRect, Wt as BaseAddon, Xt as customAction, Yt as createEvent, Zt as defineCustomActions, _ as FailureCounters, _t as pickDetailCropConvention, b as MOTION_CLOSE_AFTER_MS, bn as EventCategory, bt as pipelineRunnerCapability, cn as _enum, fn as lazy, hn as object, it as loadContributionCapability, ln as array, m as DEVICE_BACKEND_TO_FORMAT, mn as number, p as DEFAULT_NATIVE_LEASE_SETTINGS, pn as literal, rn as nodePin, u as DEFAULT_DETAIL_CROP_CONVENTION, un as boolean, vn as string, vt as pickNativeLeaseOverride, x as NativeLeaseAdmissionSchema } from "../dist-BS-l_k7M.mjs";
2
+ import { i as NO_COST_CLAIM, t as ChildCostRegistry } from "../node-DjvGLcbe.mjs";
3
+ import { a as localFrameRegistry, d as getStepDefinition, i as rootObjectGate, o as resolveFrameViewGeometry, r as macroGateVerdict } from "../default-detection-model-DRTO2E6G.mjs";
4
4
  import { t as isWorkerReply } from "../worker-protocol-C_W-P_g-.mjs";
5
5
  import { t as resolveHubHostname } from "../hub-hostname-cCknRYKj.mjs";
6
6
  import { t as getSharp } from "../lazy-sharp-DXsqwpph.mjs";
7
- import { a as preRollRequestOf, o as withDetectionIntent, t as DETECTION_PRE_ROLL_REQUEST_MS } from "../restream-intent-MeJhGCK9.mjs";
7
+ import { a as preRollRequestOf, o as withDetectionIntent, t as DETECTION_PRE_ROLL_REQUEST_MS } from "../restream-intent-D2VT97-U.mjs";
8
8
  import { n as profileForStreamId, t as isRemoteRestream } from "../remote-restream-BeHi78PZ.mjs";
9
9
  import * as os from "node:os";
10
10
  import { fork } from "node:child_process";
@@ -1,4 +1,4 @@
1
- import { mt as parseProcStatus } from "./dist-UDv0mi6-.mjs";
1
+ import { mt as parseProcStatus } from "./dist-BS-l_k7M.mjs";
2
2
  import * as fs from "node:fs";
3
3
  import { execFile } from "node:child_process";
4
4
  //#region src/shared/node-topology-platform.ts
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require("./chunk-emK7D4bc.js");
2
- const require_dist = require("./dist-G5Uib9Bn.js");
2
+ const require_dist = require("./dist-CqqhxcYH.js");
3
3
  let node_fs = require("node:fs");
4
4
  node_fs = require_chunk.__toESM(node_fs);
5
5
  let node_child_process = require("node:child_process");
@@ -3,10 +3,10 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  const require_chunk = require("../chunk-emK7D4bc.js");
6
- const require_dist = require("../dist-G5Uib9Bn.js");
7
- const require_node = require("../node-ByNljnzV.js");
6
+ const require_dist = require("../dist-CqqhxcYH.js");
7
+ const require_node = require("../node-bdHZWpo1.js");
8
8
  const require_hub_hostname = require("../hub-hostname-DAJXlOgV.js");
9
- const require_restream_intent = require("../restream-intent-C4adO0P8.js");
9
+ const require_restream_intent = require("../restream-intent-VVJiUAkh.js");
10
10
  const require_retire_root_keys = require("../retire-root-keys-Csb8z2f3.js");
11
11
  let node_crypto = require("node:crypto");
12
12
  let node_fs = require("node:fs");
@@ -1,7 +1,7 @@
1
- import { $t as hydrateSchema, C as OpsLogEntrySchema, Ct as recordingExportCapability, D as RECORDING_EXPORT_MAX_READ_BYTES, Dt as resolveLocationMode, H as deriveBatteryPresence, I as batteryCapability, Kt as DeviceFeature, Lt as errMsg, Mt as storageOccupancyCapability, O as RecordingConfigSchema, Pt as stripRetiredBandPreBufferSec, Q as evictionPolicyOfLocation, St as recordingCapability, W as deriveRecordingMode, Wt as BaseAddon, Xt as customAction, Y as evaluateSensorEdge, Z as evictionPolicyForMode, Zt as defineCustomActions, _n as record, bn as EventCategory, cn as _enum, ct as mayReadLocation, d as DEFAULT_EVENTS_BAND_BUFFER_SEC, dt as modeMayWrite, et as gbToBytes, g as ExportRecordSchema, gn as preprocess, hn as object, i as BatteryStatusSchema, it as loadContributionCapability, jt as storageEvictableCapability, k as RecordingSignalStatusSchema, kt as resolveRecordingProfiles, ln as array, lt as mayWriteToLocation, mn as number, on as selectAssignedProfileSlots, qt as DeviceType, rn as nodePin, rt as isFirstLevelMacroClass, sn as sleep$1, un as boolean, ut as migrateLegacyDeviceSignalConfig, vn as string, wt as recordingSignalCapability } from "../dist-UDv0mi6-.mjs";
2
- import { a as physicalRootOf, i as NO_COST_CLAIM, t as ChildCostRegistry } from "../node-5P6235Qa.mjs";
1
+ import { $t as hydrateSchema, C as OpsLogEntrySchema, Ct as recordingExportCapability, D as RECORDING_EXPORT_MAX_READ_BYTES, Dt as resolveLocationMode, H as deriveBatteryPresence, I as batteryCapability, Kt as DeviceFeature, Lt as errMsg, Mt as storageOccupancyCapability, O as RecordingConfigSchema, Pt as stripRetiredBandPreBufferSec, Q as evictionPolicyOfLocation, St as recordingCapability, W as deriveRecordingMode, Wt as BaseAddon, Xt as customAction, Y as evaluateSensorEdge, Z as evictionPolicyForMode, Zt as defineCustomActions, _n as record, bn as EventCategory, cn as _enum, ct as mayReadLocation, d as DEFAULT_EVENTS_BAND_BUFFER_SEC, dt as modeMayWrite, et as gbToBytes, g as ExportRecordSchema, gn as preprocess, hn as object, i as BatteryStatusSchema, it as loadContributionCapability, jt as storageEvictableCapability, k as RecordingSignalStatusSchema, kt as resolveRecordingProfiles, ln as array, lt as mayWriteToLocation, mn as number, on as selectAssignedProfileSlots, qt as DeviceType, rn as nodePin, rt as isFirstLevelMacroClass, sn as sleep$1, un as boolean, ut as migrateLegacyDeviceSignalConfig, vn as string, wt as recordingSignalCapability } from "../dist-BS-l_k7M.mjs";
2
+ import { a as physicalRootOf, i as NO_COST_CLAIM, t as ChildCostRegistry } from "../node-DjvGLcbe.mjs";
3
3
  import { t as resolveHubHostname } from "../hub-hostname-cCknRYKj.mjs";
4
- import { c as PREBUFFER_MAX_MS, r as RECORDING_PRE_ROLL_REQUEST_MS, s as withRecordingIntent } from "../restream-intent-MeJhGCK9.mjs";
4
+ import { c as PREBUFFER_MAX_MS, r as RECORDING_PRE_ROLL_REQUEST_MS, s as withRecordingIntent } from "../restream-intent-D2VT97-U.mjs";
5
5
  import { n as RowMapStore, t as retireRootKeys } from "../retire-root-keys-DZvlso2l.mjs";
6
6
  import { randomUUID } from "node:crypto";
7
7
  import { createReadStream, promises, realpathSync } from "node:fs";
@@ -176,10 +176,10 @@ function parseRestreamPath(streamPath) {
176
176
  intent,
177
177
  preRollRequestMs: requestMs
178
178
  });
179
- if (rest.endsWith("/prestream")) return {
180
- lookupPath: rest.slice(0, -10),
179
+ if (rest.endsWith("/sentry")) return {
180
+ lookupPath: rest.slice(0, -7),
181
181
  muted: true,
182
- declaration: declare("prestream")
182
+ declaration: declare("sentry")
183
183
  };
184
184
  if (rest.endsWith("/recording")) return {
185
185
  lookupPath: rest.slice(0, -10),
@@ -176,10 +176,10 @@ function parseRestreamPath(streamPath) {
176
176
  intent,
177
177
  preRollRequestMs: requestMs
178
178
  });
179
- if (rest.endsWith("/prestream")) return {
180
- lookupPath: rest.slice(0, -10),
179
+ if (rest.endsWith("/sentry")) return {
180
+ lookupPath: rest.slice(0, -7),
181
181
  muted: true,
182
- declaration: declare("prestream")
182
+ declaration: declare("sentry")
183
183
  };
184
184
  if (rest.endsWith("/recording")) return {
185
185
  lookupPath: rest.slice(0, -10),
@@ -1,5 +1,5 @@
1
1
  import { r as __toESM, t as __commonJSMin } from "./chunk-DnnnRqeS.mjs";
2
- import { Lt as errMsg } from "./dist-UDv0mi6-.mjs";
2
+ import { Lt as errMsg } from "./dist-BS-l_k7M.mjs";
3
3
  import { spawn } from "node:child_process";
4
4
  //#region ../../node_modules/mp4box/dist/mp4box.all.js
5
5
  var require_mp4box_all = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require("./chunk-emK7D4bc.js");
2
- const require_dist = require("./dist-G5Uib9Bn.js");
2
+ const require_dist = require("./dist-CqqhxcYH.js");
3
3
  let node_child_process = require("node:child_process");
4
4
  //#region ../../node_modules/mp4box/dist/mp4box.all.js
5
5
  var require_mp4box_all = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
@@ -1,7 +1,7 @@
1
- import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "./_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-BHtcf-Mo.mjs";
1
+ import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "./_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-D8WW_JG-.mjs";
2
2
  import { a as p, i as m, n as h, o as g, r as _, t as v } from "./_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare__react__loadShare__.js-C9j-2lBe.mjs";
3
3
  import { n as y, r as b, t as x } from "./_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-XO0-Pyu6.mjs";
4
- import { t as S } from "./_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-k114uFcJ.mjs";
4
+ import { t as S } from "./_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CPFjd94C.mjs";
5
5
  import { n as C, t as w } from "./_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-BO7TIbJV.mjs";
6
6
  //#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js
7
7
  var T = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), E = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), D = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), O = (e) => {
@@ -3,7 +3,7 @@ import "./dist-CYZr2fwk.mjs";
3
3
  var e = {
4
4
  "@camstack/sdk": {
5
5
  name: "@camstack/sdk",
6
- version: "1.2.112",
6
+ version: "1.2.114",
7
7
  scope: ["default"],
8
8
  loaded: !1,
9
9
  from: "addon_stream_broker_widgets",
@@ -18,7 +18,7 @@ var e = {
18
18
  },
19
19
  "@camstack/types": {
20
20
  name: "@camstack/types",
21
- version: "1.2.206",
21
+ version: "1.2.208",
22
22
  scope: ["default"],
23
23
  loaded: !1,
24
24
  from: "addon_stream_broker_widgets",
@@ -33,7 +33,7 @@ var e = {
33
33
  },
34
34
  "@camstack/ui-library": {
35
35
  name: "@camstack/ui-library",
36
- version: "1.2.171",
36
+ version: "1.2.173",
37
37
  scope: ["default"],
38
38
  loaded: !1,
39
39
  from: "addon_stream_broker_widgets",