@camstack/addon-post-analysis 1.2.55 → 1.2.58
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/{dist-B1CMW3_t.js → dist-Ba_nAILh.js} +383 -5
- package/dist/{dist-D9Bm8RyD.mjs → dist-CI2VspUN.mjs} +368 -5
- package/dist/embedding-encoder/index.js +4 -3
- package/dist/embedding-encoder/index.mjs +16 -4
- package/dist/pipeline-analytics/_stub.js +1 -1
- package/dist/pipeline-analytics/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-BuCI6peK.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-CUxRQmzz.mjs} +3 -3
- package/dist/pipeline-analytics/_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DsSPqkLL.mjs +26 -0
- package/dist/pipeline-analytics/{hostInit-3GBLWJ6R.mjs → hostInit-C0KSa3KR.mjs} +3 -3
- package/dist/pipeline-analytics/index.js +265 -45
- package/dist/pipeline-analytics/index.mjs +266 -45
- package/dist/pipeline-analytics/remoteEntry.js +1 -1
- package/package.json +1 -1
- package/dist/node-Co0YpEFr.mjs +0 -148
- package/dist/node-cjH3qw1E.js +0 -151
- package/dist/pipeline-analytics/_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DcqnDg2z.mjs +0 -26
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region \0virtual:mf:__mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js
|
|
2
|
+
var e = "__mf_init__virtual:mf:__mfe_internal__addon_pipeline_analytics_widgets__mf_v__runtimeInit__mf_v__.js__", t = globalThis[e];
|
|
3
|
+
if (!t) {
|
|
4
|
+
let n, r, i = new Promise((e, t) => {
|
|
5
|
+
n = e, r = t;
|
|
6
|
+
});
|
|
7
|
+
t = globalThis[e] = {
|
|
8
|
+
initPromise: i,
|
|
9
|
+
initResolve: n,
|
|
10
|
+
initReject: r
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
var n = t.initPromise, r = "__mf_module_cache__";
|
|
14
|
+
globalThis[r] ||= {
|
|
15
|
+
share: {},
|
|
16
|
+
remote: {}
|
|
17
|
+
}, globalThis[r].share ||= {}, globalThis[r].remote ||= {};
|
|
18
|
+
var i = globalThis[r], a, o, s, c, l, u, d, f = (e) => {
|
|
19
|
+
e.AddonGlobalSettingsForm, e.AgentStepEditor, e.AlarmHeroCard, e.AlarmPanelInlineControl, e.AppShell, e.ArcKnob, e.AudioClassificationList, e.AudioLevelWaveform, e.AudioWaveform, e.AutomationHeroCard, e.AutomationInlineControl, e.AutotrackSection, e.BTN_COMPACT, e.BTN_COMPACT_DANGER, e.BTN_COMPACT_PRIMARY, e.BTN_COMPACT_WARNING, e.Badge, e.BatteryBadge, e.BottomSheet, e.Breadcrumb, e.BrightnessPanel, e.Button, e.ButtonControl, e.ButtonHeroCard, e.CARD_MODE_MIN_COLUMNS, e.CENTER, e.CHIP_ACTIVE, e.CHIP_BASE, e.CHIP_INACTIVE, e.CLASS_COLORS, e.COLUMN_BREAKPOINT_CLASS, e.COLUMN_PRIORITY, e.COMMIT_DEDUPE_TOLERANCE_MS, e.COMMIT_DEDUPE_WINDOW_MS, e.CONTROL_CAP_NAMES, e.CONTROL_FILLS, e.CameraStreamPlayer, e.Card, e.Checkbox, e.ChildSectionAccordion, e.ClimatePanel, e.CodeBlock, e.CollapsibleCard, e.ConfigFormBuilder, e.ConfigFormField, e.ConfigSchemaField, e.ConfirmActionButton, e.ConfirmDialogProvider, e.ConsumablesPanel, e.ContainerChildrenProvider, e.ContainerPrimaryHero, e.ControlColumn, e.ControlHeroCard, e.ControlInlineControl, e.ControlPanel, e.CopyButton, e.CoverHeroCard, e.CoverInlineControl, e.CoverPanel, e.CustomFieldRenderersProvider, e.DEFAULT_COLOR, e.DEVICE_COLUMNS, e.DEVICE_LIST_PAGE_SIZE_KEY, e.DEVICE_LIST_PAGE_SIZE_OPTIONS, e.DEVICE_ROLE_META, e.DEVICE_TYPE_CONTROL, e.DEVICE_TYPE_META, e.DISPLAY_ICON_REGISTRY, e.DataTable, e.DetectionCanvas, e.DetectionOverlay, e.DetectionResultTree, e.DevShell, e.DeviceActivityPanel, e.DeviceBatchToolbar, e.DeviceCard, e.DeviceContextProvider, e.DeviceExportPanel, e.DeviceGrid, e.DeviceItem, e.DeviceList, e.DeviceMultiSelectField, e.DeviceSelectField, e.DeviceStepMatrix, e.Dialog, e.DialogContent, e.DialogDescription, e.DialogFooter, e.DialogHeader, e.DialogTitle, e.DialogTrigger, e.DiscoveryPanel, e.DoorbellRecentPanel, e.Dropdown, e.DropdownContent, e.DropdownItem, e.DropdownTrigger, e.DummyHeroCard, e.DummyInline, e.EVENT_KIND_ICONS, e.EmptyState, e.ErrorBox, e.EventKindGlyph, e.EventStream, e.EyeOff, e.FILL, e.FanHeroCard, e.FanInlineControl, e.FanPanel, e.FilterBar, e.FloatingEventStream, e.FloatingLogStream, e.FloatingPanel, e.FormField, a = e.GRID_GAP, e.GRID_PAIRED, e.GRID_QUICK_STATS, e.GripTrack, e.GroupedModelSelector, e.HOST_WIDGETS, e.HlsVideo, e.HoverZoomImage, e.HumidifierHeroCard, e.HumidifierInlineControl, e.INPUT_COMPACT, e.IconAction, e.IconButton, e.ImageHeroCard, e.ImageInlineControl, e.ImageSelector, e.InferenceConfigSelector, e.Input, e.KebabMenu, e.KeyValueList, e.LIST_ROW, e.Label, e.LawnMowerHeroCard, e.LawnMowerInlineControl, e.LightHeroCard, e.LightInlineControl, e.LockHeroCard, e.LockInlineControl, e.LockPanel, e.LogStream, e.LoginForm, e.MODE_COLOR, e.MaskShapeCanvas, e.MediaPlayerHeroCard, e.MediaPlayerInlineControl, e.MediaPlayerPanel, e.MobileDrawer, e.ModelPicker, e.MotionZonesSettings, e.NodeMultiSelectField, e.NodePicker, e.NodeSelectField, e.OfflineBadge, e.PHASE_CONFIG, e.PRIORITY, e.PTZOverlay, e.PageHeader, e.PhaseIcon, e.PipelineBuilder, e.PipelineRuntimeSelector, e.PipelineStep, e.PipelineTreeMatrix, e.PlayerOverlaysProvider, e.Popover, e.PopoverContent, e.PopoverRowAction, e.PopoverTrigger, e.PrimaryChildPicker, e.PrivacyMaskSettings, e.ProviderBadge, e.PtzPanel, e.QrCode, e.RECONNECT_POLICY, e.RECORDED_PLAYBACK_MODES, e.RIGHT, e.ROLE_DESCRIPTOR, e.RadialGauge, e.RecordedPlaybackProvider, e.RecordingPanel, e.ResponseLog, e.SECTION_BODY, e.SECTION_CARD, e.SECTION_HEADER, e.SETTING_ROW, e.SETTING_ROW_LABEL, e.SETTING_ROW_STACK_BREAKPOINT, e.SETTING_ROW_VALUE, e.SETTING_ROW_VALUE_TEXT, e.SPLIT_PANEL_OUTER, e.SPLIT_PANEL_SIDE, o = e.STACK_GAP, e.STATE_COLOR, e.ScopePicker, e.ScriptHeroCard, e.ScriptInlineControl, e.ScrollArea, e.Select, e.SemanticBadge, e.SensorHeroCard, e.SensorInlineControl, e.SensorValueAtom, e.Separator, e.SettingRow, e.Sidebar, e.SidebarItem, e.Skeleton, e.SlideOverPanel, e.SlideToggle, e.SnapshotButton, e.Square, e.StatCard, e.StateValuesStream, e.StatusBadge, e.StepTimings, e.StepTreeMaster, e.Stepper, e.StreamBrokerSelector, e.StreamPanel, e.Switch, e.SwitchHeroCard, e.SwitchInlineControl, e.SwitchPanel, e.SystemProvider, e.TEXT_FIELD_LABEL, e.TEXT_HINT, e.TEXT_METRIC, e.TEXT_SECTION_LABEL, e.TEXT_VALUE, e.TIMEZONES, e.Tabs, e.TabsContent, e.TabsList, e.TabsTrigger, e.TapToggle, e.ThemeProvider, e.ThermostatHeroCard, e.ThermostatInlineControl, e.TimezoneSelector, e.Tooltip, e.TooltipContent, e.TooltipTrigger, e.Trash2, e.VacuumHeroCard, e.VacuumInlineControl, e.ValueReadout, e.ValveHeroCard, e.ValveInlineControl, e.VersionBadge, e.VodPlaybackProvider, e.WaterHeaterHeroCard, e.WaterHeaterInlineControl, e.WeatherHeroCard, e.WeatherInlineControl, e.WidgetMetricCard, e.WidgetPanel, e.WidgetRegistryProvider, s = e.WidgetSlot, e.ZoneEditingProvider, e.agentColumnKey, e.allDeviceTypeFilterOptions, e.buildStepTreeFromSchema, e.childEntityId, e.childListName, e.cn, e.columnsForContext, e.containerChildToRef, e.countableDevices, e.coverHighlight, e.createLucideIcon, e.createSharedContext, e.createTheme, e.cursorFractionFor, e.darkColors, e.defaultTheme, e.deriveDeviceKind, e.deviceMatchesFilter, e.deviceOptionLabel, e.deviceRoleMeta, e.deviceRoleMetaOf, e.deviceTypeMeta, e.deviceTypeMetaOf, e.devicesToOptions, e.ensureMfHostInit, e.eventKindLabel, e.filterDeviceOptions, e.findTimezone, e.formatControlDateTime, e.formatLastSeen, e.formatNumeric, e.fuzzyMatch, e.getClassColor, e.getPhaseVisual, e.groupAgentColumns, e.groupChildrenByLayout, e.hardwareLabel, e.humidifierTint, e.initialScrubState, e.isAbsentProvider, e.isAbsentProvider$1, e.isFieldVisible, e.lawnMowerActivityMeta, e.lightColors, e.loadRemoteBundle, e.makeScrubBridge, e.metadataEntries, e.metadataString, e.mirror, e.mountAddonPage, e.nextReconnectAction, e.nextSort, e.normalizeForSearch, e.overrideEntityIdFromLink, e.parseRecordedServerMessage, e.providerIcons, e.resolveContainerPrimary, e.resolveControlAlign, e.resolveDeviceControl, e.resolveDisplayIcon, e.resolveEffectiveDefaultModel, e.resolveEffectiveStepModel, e.resolveEventKindIcon, e.resolvePrimaryChild, e.resolveSensorDisplay, e.resolveStepDefaultModel, e.resolveTableLayout, e.scrubReducer, e.selectedDeviceOptions, e.serializeRecordedCommand, e.shouldCommit, e.shouldEmit, e.shouldUseSingleNode, e.sortRows, e.statusIcons, e.stepHasModelForFormat, e.stepModelOptions, e.stripParentNamePrefix, e.tankAlert, e.themeToCss, e.trpc, e.useAccessoriesGetStatus, e.useAccessoriesSetChildHidden, e.useAddonPagesListPages, e.useAddonSettingsGetDeviceSettings, e.useAddonSettingsGetGlobalSettings, e.useAddonSettingsUpdateDeviceSettings, e.useAddonSettingsUpdateGlobalSettings, e.useAddonWidgetsListWidgets, e.useAddonsApplyAutoUpdateToAll, e.useAddonsCancelJob, e.useAddonsCustom, e.useAddonsForceRefresh, e.useAddonsGetAddonAutoUpdate, e.useAddonsGetAutoUpdateSettings, e.useAddonsGetJob, e.useAddonsGetLastRestart, e.useAddonsGetLogs, e.useAddonsGetVersions, e.useAddonsInstallFromWorkspace, e.useAddonsInstallPackage, e.useAddonsIsWorkspaceAvailable, e.useAddonsList, e.useAddonsListCapabilityProviders, e.useAddonsListFrameworkPackages, e.useAddonsListJobs, e.useAddonsListPackages, e.useAddonsListUpdates, e.useAddonsListWorkspacePackages, e.useAddonsOnAddonLogs, e.useAddonsReloadPackages, e.useAddonsRestartAddon, e.useAddonsRestartServer, e.useAddonsRetryLoad, e.useAddonsRollbackPackage, e.useAddonsSearchAvailable, e.useAddonsSetAddonAutoUpdate, e.useAddonsSetAutoUpdateSettings, e.useAddonsSetCapabilityProviderEnabled, e.useAddonsStartJob, e.useAddonsUninstallPackage, e.useAddonsUpdatePackage, e.useAirQualitySensorGetStatus, e.useAlarmPanelArm, e.useAlarmPanelDisarm, e.useAlarmPanelGetStatus, e.useAlarmPanelTrigger, e.useAlertsDismiss, e.useAlertsEmit, e.useAlertsGetUnreadCount, e.useAlertsList, e.useAlertsMarkAllRead, e.useAlertsMarkRead, e.useAlertsUpdate, e.useAllWidgets, e.useAmbientLightSensorGetStatus, e.useAudioAnalysisApplyDeviceSettingsPatch, e.useAudioAnalysisGetDeviceLiveContribution, e.useAudioAnalysisGetDeviceSettingsContribution, e.useAudioAnalysisResolveDeviceSettings, e.useAudioAnalyzerAnalyseChunk, e.useAudioAnalyzerClassify, e.useAudioAnalyzerDispose, e.useAudioAnalyzerIsReady, e.useAudioAnalyzerReprobeAudioEngine, e.useAudioCodecCanHandle, e.useAudioCodecCloseSession, e.useAudioCodecCreateDecodeSession, e.useAudioCodecCreateEncodeSession, e.useAudioCodecFlushEncode, e.useAudioCodecListActiveSessions, e.useAudioCodecListSupportedCodecs, e.useAudioCodecPullEncoded, e.useAudioCodecPullPcm, e.useAudioCodecPushEncodedFrame, e.useAudioCodecPushPcm, e.useAudioMetricsGetCurrentSnapshot, e.useAudioMetricsGetHistory, e.useAutomationControlDisable, e.useAutomationControlEnable, e.useAutomationControlGetStatus, e.useAutomationControlTrigger, e.useBackupDelete, e.useBackupDeleteSchedule, e.useBackupGetEntries, e.useBackupList, e.useBackupListArchives, e.useBackupListDestinations, e.useBackupListLocations, e.useBackupListSchedules, e.useBackupPreviewSchedule, e.useBackupRestore, e.useBackupTrigger, e.useBackupUpsertDestinationPolicy, e.useBackupUpsertSchedule, e.useBatteryGetStatus, e.useBatteryWakeForStream, e.useBinaryGetStatus, e.useBrightnessGetStatus, e.useBrightnessSetBrightness, e.useBrokerAdd, e.useBrokerGet, e.useBrokerGetBrokerConfig, e.useBrokerGetSettings, e.useBrokerGetSettingsSchema, e.useBrokerGetState, e.useBrokerGetStatus, e.useBrokerList, e.useBrokerListProviders, e.useBrokerPublish, e.useBrokerRemove, e.useBrokerSetSettings, e.useBrokerSubscribe, e.useBrokerTestConnection, e.useBrokerTestSettings, e.useBrokerUnsubscribe, e.useButtonPress, e.useCameraCredentialsGetCredentials, e.useCameraCredentialsGetStatus, e.useCameraPipelineConfigApplyDeviceSettingsPatch, e.useCameraPipelineConfigGetDeviceLiveContribution, e.useCameraPipelineConfigGetDeviceSettingsContribution, e.useCameraStreamsGetBrokerStreams, e.useCameraStreamsGetCameraStreams, e.useCameraStreamsGetProfileRtspEntries, e.useCameraStreamsGetRtspEntries, e.useCameraStreamsPickStream, e.useCarbonMonoxideGetStatus, e.useClimateControlGetStatus, e.useClimateControlSetFanMode, e.useClimateControlSetMode, e.useClimateControlSetPreset, e.useClimateControlSetSwingHorizontal, e.useClimateControlSetSwingVertical, e.useClimateControlSetTarget, e.useClimateControlSetTargetHumidity, e.useClimateControlSetTargetRange, e.useClusterNodes, e.useColorGetStatus, e.useColorSetColor, e.useConfirm, e.useConnectionTestDescribeTest, e.useConnectionTestTestSettings, e.useConnectivityGetStatus, e.useConsumablesGetStatus, e.useConsumablesReset, e.useContactGetStatus, e.useContainerChildren, e.useControlGetStatus, e.useControlSetValue, e.useCoreBlocksCompile, e.useCoreBlocksCreate, e.useCoreBlocksDelete, e.useCoreBlocksGet, e.useCoreBlocksGetTypeDefs, e.useCoreBlocksList, e.useCoreBlocksRestart, e.useCoreBlocksSetEnabled, e.useCoreBlocksUpdate, e.useCoverClose, e.useCoverGetStatus, e.useCoverOpen, e.useCoverSetPosition, e.useCoverSetTiltPosition, e.useCoverStop, e.useCustomFieldRenderer, e.useDayNightGetOptions, e.useDayNightGetStatus, e.useDayNightSetSettings, e.useDebouncedString, e.useDecoderCreateSession, e.useDecoderDestroySession, e.useDecoderGetFrame, e.useDecoderGetInfo, e.useDecoderGetShmStats, e.useDecoderGetStats, e.useDecoderListActiveSessions, e.useDecoderOpenStream, e.useDecoderPullFrames, e.useDecoderPullHandles, e.useDecoderPushPacket, e.useDecoderReprobeHwaccel, e.useDecoderSupportsCodec, e.useDecoderUpdateConfig, e.useDetectionPipelineApplyDeviceSettingsPatch, e.useDetectionPipelineGetDeviceLiveContribution, e.useDetectionPipelineGetDeviceSettingsContribution, e.useDevShell, e.useDevice, e.useDeviceAdoptionAdopt, e.useDeviceAdoptionGetCandidate, e.useDeviceAdoptionGetStatus, e.useDeviceAdoptionListCandidateFilters, e.useDeviceAdoptionListCandidates, e.useDeviceAdoptionRefresh, e.useDeviceAdoptionRelease, e.useDeviceAdoptionResync, e.useDeviceAutotrack, e.useDeviceBattery, e.useDeviceCapSlice, e.useDeviceCapability, e.useDeviceDetections, e.useDeviceDiscoveryAdoptDevice, e.useDeviceDiscoveryGetStatus, e.useDeviceDiscoveryListDiscovered, e.useDeviceDiscoveryRefreshDiscovery, e.useDeviceDiscoveryReleaseDevice, e.useDeviceExportApplyDeviceSettingsPatch, e.useDeviceExportExposeDevice, e.useDeviceExportGetDeviceLiveContribution, e.useDeviceExportGetDeviceSettingsContribution, e.useDeviceExportGetStatus, e.useDeviceExportListExposedDevices, e.useDeviceExportListSupportedDeviceKinds, e.useDeviceExportUnexposeDevice, e.useDeviceId, e.useDeviceListPageSize, e.useDeviceManagerAddLocation, e.useDeviceManagerAdoptDevice, e.useDeviceManagerAdoptionAdopt, e.useDeviceManagerAdoptionCancelJob, e.useDeviceManagerAdoptionListCandidateFilters, e.useDeviceManagerAdoptionListCandidates, e.useDeviceManagerAdoptionListJobs, e.useDeviceManagerAdoptionRefresh, e.useDeviceManagerAdoptionRelease, e.useDeviceManagerAdoptionResync, e.useDeviceManagerAdoptionStartJob, e.useDeviceManagerAllocateDeviceId, e.useDeviceManagerApplyDeviceSettingsPatch, e.useDeviceManagerApplyInitialMeta, e.useDeviceManagerCreateDevice, e.useDeviceManagerDisable, e.useDeviceManagerDiscoverAllProviders, e.useDeviceManagerDiscoverDevices, e.useDeviceManagerDiscoverProvider, e.useDeviceManagerDiscoveryProviders, e.useDeviceManagerEnable, e.useDeviceManagerGetAllBindings, e.useDeviceManagerGetBindings, e.useDeviceManagerGetChildren, e.useDeviceManagerGetConfigSchema, e.useDeviceManagerGetCreationSchema, e.useDeviceManagerGetDevice, e.useDeviceManagerGetDeviceAggregate, e.useDeviceManagerGetDeviceLiveContribution, e.useDeviceManagerGetDeviceLiveInfoAggregate, e.useDeviceManagerGetDeviceSettingsAggregate, e.useDeviceManagerGetDeviceSettingsContribution, e.useDeviceManagerGetDeviceStatusAggregate, e.useDeviceManagerGetDeviceStatusAggregateBatch, e.useDeviceManagerGetLinkedDevices, e.useDeviceManagerGetRoleDisplayDefaults, e.useDeviceManagerGetSettingsSchema, e.useDeviceManagerGetStreamProfileMap, e.useDeviceManagerGetStreamSources, e.useDeviceManagerGetWireableFields, e.useDeviceManagerListAll, e.useDeviceManagerListBindableCapsForDeviceType, e.useDeviceManagerListLocations, e.useDeviceManagerListPersistedByAddon, e.useDeviceManagerListWrappersForCap, e.useDeviceManagerLoadConfig, e.useDeviceManagerLoadMeta, e.useDeviceManagerLoadRuntimeState, e.useDeviceManagerPersistConfig, e.useDeviceManagerProbeStreams, e.useDeviceManagerProviderCreationType, e.useDeviceManagerProviderDiscoveryParamsSchema, e.useDeviceManagerRegisterDevice, e.useDeviceManagerRemove, e.useDeviceManagerRemoveByIntegration, e.useDeviceManagerRemoveDevice, e.useDeviceManagerRemoveLocation, e.useDeviceManagerRunDeviceAction, e.useDeviceManagerSetChildLayout, e.useDeviceManagerSetDisabled, e.useDeviceManagerSetDisplay, e.useDeviceManagerSetIntegrationId, e.useDeviceManagerSetLinkDeviceId, e.useDeviceManagerSetLocation, e.useDeviceManagerSetMetadata, e.useDeviceManagerSetName, e.useDeviceManagerSetPrimaryChildEntityId, e.useDeviceManagerSetRole, e.useDeviceManagerSetRoleDisplayDefaults, e.useDeviceManagerSetStreamProfileMap, e.useDeviceManagerSetType, e.useDeviceManagerSetWrapperActive, e.useDeviceManagerTestCreationField, e.useDeviceManagerTestField, e.useDeviceManagerUpdateConfig, e.useDeviceManagerUpdateDeviceField, e.useDeviceManagerUpdateDeviceFieldsBatch, e.useDeviceOpsGetConfigEntries, e.useDeviceOpsGetRawState, e.useDeviceOpsGetSettingsSchema, e.useDeviceOpsGetStreamSources, e.useDeviceOpsRemoveDevice, e.useDeviceOpsRunAction, e.useDeviceOpsSetConfig, e.useDeviceProviderAdoptDiscoveredDevice, e.useDeviceProviderCreateDevice, e.useDeviceProviderDiscoverDevices, e.useDeviceProviderGetChildCreationSchema, e.useDeviceProviderGetDevices, e.useDeviceProviderGetDiscoveryParamsSchema, e.useDeviceProviderGetManualCreationType, e.useDeviceProviderGetStatus, e.useDeviceProviderStart, e.useDeviceProviderStop, e.useDeviceProviderSupportsDiscovery, e.useDeviceProviderSupportsManualCreation, e.useDeviceProviderTestCreationField, c = e.useDeviceProxy, e.useDeviceProxy$1, e.useDeviceSnapshot, e.useDeviceSnapshotImage, l = e.useDeviceState, e.useDeviceStateGetAllSnapshots, e.useDeviceStateGetCapSlice, e.useDeviceStateGetSnapshot, e.useDeviceStateSetCapSlice, u = e.useDeviceStateSlice, e.useDeviceStatusGetStatus, e.useDeviceWebrtc, e.useDevices, e.useDoorbellApplyDeviceSettingsPatch, e.useDoorbellEvents, e.useDoorbellGetDeviceLiveContribution, e.useDoorbellGetDeviceSettingsContribution, e.useDoorbellGetStatus, e.useEnumSensorGetStatus, e.useEventEmitterGetStatus, e.useEventInvalidation, e.useEventStreamLatest, e.useEventStreamMap, e.useEventsGetEventClipUrl, e.useEventsGetEventThumbnail, e.useEventsGetEvents, e.useFaceGalleryAssignFace, e.useFaceGalleryAssignFaces, e.useFaceGalleryCreateIdentity, e.useFaceGalleryDeleteFace, e.useFaceGalleryDeleteIdentity, e.useFaceGalleryGetFaceByTrack, e.useFaceGalleryGetFaceMedia, e.useFaceGalleryListIdentities, e.useFaceGalleryListIdentitySamples, e.useFaceGalleryListRecentFaces, e.useFaceGalleryRemoveSample, e.useFaceGalleryRenameIdentity, e.useFaceGallerySuggestFaceClusters, e.useFaceGalleryUnassignFace, e.useFaceGalleryUnassignFaces, e.useFanControlGetStatus, e.useFanControlSetDirection, e.useFanControlSetOscillating, e.useFanControlSetPercentage, e.useFanControlSetPreset, e.useFeatureProbeGetStatus, e.useFloodGetStatus, e.useGasGetStatus, e.useHumidifierGetStatus, e.useHumidifierSetMode, e.useHumidifierSetOn, e.useHumidifierSetTargetHumidity, e.useHumiditySensorGetStatus, e.useImageGetStatus, e.useImageSettingsGetOptions, e.useImageSettingsGetStatus, e.useImageSettingsSetSettings, e.useIntegrationsCreate, e.useIntegrationsDelete, e.useIntegrationsGet, e.useIntegrationsGetAvailableTypes, e.useIntegrationsGetByAddonId, e.useIntegrationsGetSettings, e.useIntegrationsList, e.useIntegrationsSetSettings, e.useIntegrationsTestConnection, e.useIntegrationsUpdate, e.useIntercomEndTalkSession, e.useIntercomGetStatus, e.useIntercomHandleAnswer, e.useIntercomPushTalkAudio, e.useIntercomStartSession, e.useIntercomStartTalkSession, e.useIntercomStopSession, e.useIsMidWidth, e.useIsMobile, e.useLawnMowerControlDock, e.useLawnMowerControlGetStatus, e.useLawnMowerControlPause, e.useLawnMowerControlStartMowing, e.useLiveBuffer, e.useLiveEvent, e.useLlmDeleteModel, e.useLlmDeleteProfile, e.useLlmGenerate, e.useLlmGenerateVision, e.useLlmGetDefaults, e.useLlmGetRuntimeStatus, e.useLlmGetUsage, e.useLlmInstallModel, e.useLlmListModelCatalog, e.useLlmListModels, e.useLlmListNodeModels, e.useLlmListProfileKinds, e.useLlmListProfiles, e.useLlmListRuntimeNodes, e.useLlmSetDefault, e.useLlmStartRuntime, e.useLlmStopRuntime, e.useLlmTestProfile, e.useLlmUpsertProfile, e.useLocalNetworkGetAllowedAddresses, e.useLocalNetworkGetConnectionEndpoints, e.useLocalNetworkGetNotificationEndpoint, e.useLocalNetworkGetPreferred, e.useLocalNetworkList, e.useLocalNetworkResetAllowlistToBestMatch, e.useLocalNetworkSetAllowedAddresses, e.useLocalNetworkSetNotificationEndpoint, e.useLockControlGetStatus, e.useLockControlLock, e.useLockControlOpen, e.useLockControlUnlock, e.useMediaPlayerGetStatus, e.useMediaPlayerNext, e.useMediaPlayerPause, e.useMediaPlayerPlay, e.useMediaPlayerPlayMedia, e.useMediaPlayerPrevious, e.useMediaPlayerSeek, e.useMediaPlayerSelectSource, e.useMediaPlayerSetMute, e.useMediaPlayerSetRepeat, e.useMediaPlayerSetShuffle, e.useMediaPlayerSetVolume, e.useMediaPlayerStop, e.useMeshNetworkGetStatus, e.useMeshNetworkJoin, e.useMeshNetworkLeave, e.useMeshNetworkListPeers, e.useMeshNetworkLogout, e.useMeshNetworkStartLogin, e.useMeshNetworkTestConnection, e.useMetricsProviderCollectSnapshot, e.useMetricsProviderDumpHeapSnapshot, e.useMetricsProviderGetAddonStats, e.useMetricsProviderGetCached, e.useMetricsProviderGetCpuTemperature, e.useMetricsProviderGetCurrent, e.useMetricsProviderGetDiskSpace, e.useMetricsProviderGetGpuInfo, e.useMetricsProviderGetProcessStats, e.useMetricsProviderKillProcess, e.useMetricsProviderListAddonInstances, e.useMetricsProviderListNodeProcesses, e.useMotionDetectionAnalyze, e.useMotionDetectionApplyDeviceSettingsPatch, e.useMotionDetectionGetDeviceLiveContribution, e.useMotionDetectionGetDeviceSettingsContribution, e.useMotionDetectionRemoveCamera, e.useMotionDetectionReset, e.useMotionGetStatus, e.useMotionIsDetected, e.useMotionTriggerGetStatus, e.useMotionTriggerSetMotionTrigger, e.useMotionZonesGetOptions, e.useMotionZonesGetStatus, e.useMotionZonesSetZone, e.useMqttBrokerAddBroker, e.useMqttBrokerGetBrokerConfig, e.useMqttBrokerGetStatus, e.useMqttBrokerListBrokers, e.useMqttBrokerRemoveBroker, e.useMqttBrokerStartEmbeddedBroker, e.useMqttBrokerStopEmbeddedBroker, e.useMqttBrokerTestConnection, e.useNativeObjectDetectionGetStatus, e.useNativeObjectDetectionSetEnabled, e.useNetworkAccessGetEndpoint, e.useNetworkAccessGetStatus, e.useNetworkAccessListEndpoints, e.useNetworkAccessStart, e.useNetworkAccessStop, e.useNetworkQualityGetAllStats, e.useNetworkQualityGetDeviceStats, e.useNetworkQualityReportClientStats, e.useNodesClusterAddonStatus, e.useNodesDeployAddon, e.useNodesExecuteQuery, e.useNodesGetCapUsageGraph, e.useNodesGetNodeAddons, e.useNodesRenameNode, e.useNodesRestartAddon, e.useNodesRestartNode, e.useNodesRestartProcess, e.useNodesSetProcessLogLevel, e.useNodesShutdownNode, e.useNodesTopology, e.useNodesUndeployAddon, e.useNotificationOutputDeleteTarget, e.useNotificationOutputDiscoverTargets, e.useNotificationOutputListTargetKinds, e.useNotificationOutputListTargets, e.useNotificationOutputSend, e.useNotificationOutputSetTargetEnabled, e.useNotificationOutputTestTarget, e.useNotificationOutputUpsertTarget, e.useNotificationRulesCancelSnooze, e.useNotificationRulesCreateRule, e.useNotificationRulesCreateSnooze, e.useNotificationRulesDeleteRule, e.useNotificationRulesGetAlarmConfig, e.useNotificationRulesGetConditionCatalog, e.useNotificationRulesGetHistory, e.useNotificationRulesGetRule, e.useNotificationRulesListDeviceMutes, e.useNotificationRulesListRules, e.useNotificationRulesListSnoozes, e.useNotificationRulesSetAlarmConfig, e.useNotificationRulesSetDeviceMuted, e.useNotificationRulesSetRuleEnabled, e.useNotificationRulesTestRule, e.useNotificationRulesUpdateRule, e.useNotifierCancel, e.useNotifierGetStatus, e.useNotifierSend, e.useNumericSensorGetStatus, e.useOptimisticSlice, e.useOptionalSystem, e.useOptionalWidgetRegistry, e.useOsdGetStatus, e.useOsdManagerClearSlotBinding, e.useOsdManagerGetConditionSupport, e.useOsdManagerGetDeviceOsd, e.useOsdManagerGetSourceCatalog, e.useOsdManagerPreviewSlot, e.useOsdManagerRenderDevice, e.useOsdManagerSetSlotBinding, e.useOsdSetOverlay, e.usePTZ, e.usePetFeederCallPet, e.usePetFeederCancelFeed, e.usePetFeederFeed, e.usePetFeederGetStatus, e.usePetFeederMarkFoodReplenished, e.usePetFeederPlaySound, e.usePetFeederResetDesiccant, e.usePetFeederSetChildLock, e.usePetFeederSetFeedSound, e.usePetFeederSetIndicatorLight, e.usePetFeederSetVolume, e.usePipelineAnalyticsApplyDeviceSettingsPatch, e.usePipelineAnalyticsCancelMediaRelocate, e.usePipelineAnalyticsClearTracks, e.usePipelineAnalyticsCompleteRetrainTrack, e.usePipelineAnalyticsDeleteDeviceEvents, e.usePipelineAnalyticsDeleteTracks, e.usePipelineAnalyticsDeselectRetrainFrame, e.usePipelineAnalyticsGetActiveTracks, e.usePipelineAnalyticsGetAudioEvents, e.usePipelineAnalyticsGetDeviceLiveContribution, e.usePipelineAnalyticsGetDeviceSettingsContribution, e.usePipelineAnalyticsGetEventDensity, e.usePipelineAnalyticsGetEventMedia, e.usePipelineAnalyticsGetEventStoreFootprint, e.usePipelineAnalyticsGetKeyEvents, e.usePipelineAnalyticsGetMediaRelocateStatus, e.usePipelineAnalyticsGetMotionEvents, e.usePipelineAnalyticsGetObjectEmbeddingRebuildStatus, e.usePipelineAnalyticsGetObjectEvents, e.usePipelineAnalyticsGetRetrainExportUrl, e.usePipelineAnalyticsGetRetrainFrameImage, e.usePipelineAnalyticsGetSensorEvents, e.usePipelineAnalyticsGetTrack, e.usePipelineAnalyticsGetTrackMedia, e.usePipelineAnalyticsGetTrainingExportSummary, e.usePipelineAnalyticsGetTrainingExportUrl, e.usePipelineAnalyticsListEventKinds, e.usePipelineAnalyticsListEventKindsBatch, e.usePipelineAnalyticsListOpsLog, e.usePipelineAnalyticsListRecentTracks, e.usePipelineAnalyticsListRetrainAnnotations, e.usePipelineAnalyticsListRetrainFrames, e.usePipelineAnalyticsListRetrainStaging, e.usePipelineAnalyticsListTrackMedia, e.usePipelineAnalyticsListTracks, e.usePipelineAnalyticsProposeRetrainAnnotations, e.usePipelineAnalyticsPruneEvents, e.usePipelineAnalyticsPruneEventsBefore, e.usePipelineAnalyticsPruneTracksBefore, e.usePipelineAnalyticsRebuildObjectEmbeddings, e.usePipelineAnalyticsRelocateMedia, e.usePipelineAnalyticsRestageRetrainTrack, e.usePipelineAnalyticsSaveRetrainAnnotations, e.usePipelineAnalyticsSearchObjectEvents, e.usePipelineAnalyticsSelectRetrainFrames, e.usePipelineAnalyticsSetTrackFlags, e.usePipelineAnalyticsWipeAllAnalytics, e.usePipelineAnalyticsWipeObjectEmbeddings, e.usePipelineExecutorCacheFrameInPool, e.usePipelineExecutorClearDeviceOverrides, e.usePipelineExecutorDeleteModel, e.usePipelineExecutorDeleteTemplate, e.usePipelineExecutorDownloadModel, e.usePipelineExecutorGetAddonModels, e.usePipelineExecutorGetAudioCapabilities, e.usePipelineExecutorGetAvailableEngines, e.usePipelineExecutorGetCapabilities, e.usePipelineExecutorGetDefaultSteps, e.usePipelineExecutorGetDetectionConfigSchema, e.usePipelineExecutorGetEffectiveTuning, e.usePipelineExecutorGetEngineProvisioning, e.usePipelineExecutorGetGlobalPipelineConfig, e.usePipelineExecutorGetGlobalSteps, e.usePipelineExecutorGetOrchestratorConfigSchema, e.usePipelineExecutorGetReferenceAudio, e.usePipelineExecutorGetReferenceAudioFiles, e.usePipelineExecutorGetReferenceImage, e.usePipelineExecutorGetSchema, e.usePipelineExecutorGetSelectedEngine, e.usePipelineExecutorGetVideoPipelineSteps, e.usePipelineExecutorInferCached, e.usePipelineExecutorKillEngine, e.usePipelineExecutorListLoadedEngines, e.usePipelineExecutorListReferenceImages, e.usePipelineExecutorListTemplates, e.usePipelineExecutorRunAudioTest, e.usePipelineExecutorRunPipeline, e.usePipelineExecutorRunPipelineBatch, e.usePipelineExecutorSaveTemplate, e.usePipelineExecutorSetVideoPipelineSteps, e.usePipelineExecutorSpinEngine, e.usePipelineExecutorUncacheFrame, e.usePipelineExecutorUpdateTemplate, e.usePipelineExecutorValidatePipeline, e.usePipelineOrchestratorApplyDeviceSettingsPatch, e.usePipelineOrchestratorAssignAudio, e.usePipelineOrchestratorAssignPipeline, e.usePipelineOrchestratorDeleteTemplate, e.usePipelineOrchestratorGetAgentLoad, e.usePipelineOrchestratorGetAgentSettings, e.usePipelineOrchestratorGetAudioAssignment, e.usePipelineOrchestratorGetAudioAssignments, e.usePipelineOrchestratorGetAudioNodeLoad, e.usePipelineOrchestratorGetCameraMetrics, e.usePipelineOrchestratorGetCameraSettings, e.usePipelineOrchestratorGetCameraStatus, e.usePipelineOrchestratorGetCameraStatuses, e.usePipelineOrchestratorGetCameraStepOverrides, e.usePipelineOrchestratorGetCameraSwitches, e.usePipelineOrchestratorGetCapabilityBindings, e.usePipelineOrchestratorGetDeviceLiveContribution, e.usePipelineOrchestratorGetDeviceSettingsContribution, e.usePipelineOrchestratorGetGlobalMetrics, e.usePipelineOrchestratorGetIngestOwner, e.usePipelineOrchestratorGetNodeInferenceDevices, e.usePipelineOrchestratorGetPipelineAssignment, e.usePipelineOrchestratorGetPipelineAssignments, e.usePipelineOrchestratorGetPipelineDevicePin, e.usePipelineOrchestratorListAgentSettings, e.usePipelineOrchestratorListTemplates, e.usePipelineOrchestratorRebalance, e.usePipelineOrchestratorRemoveAgentSettings, e.usePipelineOrchestratorResetNodePipelineDefaults, e.usePipelineOrchestratorResolvePipeline, e.usePipelineOrchestratorSaveTemplate, e.usePipelineOrchestratorSetAgentCapabilities, e.usePipelineOrchestratorSetAgentDetectWeight, e.usePipelineOrchestratorSetAgentInferenceDevices, e.usePipelineOrchestratorSetAgentMaxCameras, e.usePipelineOrchestratorSetAgentReachableHost, e.usePipelineOrchestratorSetCameraPipelineForAgent, e.usePipelineOrchestratorSetCameraStepOverride, e.usePipelineOrchestratorSetCameraStepToggle, e.usePipelineOrchestratorSetCameraSwitch, e.usePipelineOrchestratorSetCapabilityBinding, e.usePipelineOrchestratorSetPipelineDevicePin, e.usePipelineOrchestratorUnassignAudio, e.usePipelineOrchestratorUnassignPipeline, e.usePipelineOrchestratorUpdateTemplate, e.usePipelineRunnerAttachCamera, e.usePipelineRunnerDetachCamera, e.usePipelineRunnerGetAllCameraMetrics, e.usePipelineRunnerGetCameraMetrics, e.usePipelineRunnerGetLocalCameras, e.usePipelineRunnerGetLocalLoad, e.usePipelineRunnerGetLocalMetrics, e.usePipelineRunnerGetNativeCrop, e.usePipelineRunnerReportMotion, e.usePipelineRunnerRunDetailSubtree, e.usePipelineRunnerRunStatelessStep, e.usePlateGalleryAssignPlate, e.usePlateGalleryAssignPlates, e.usePlateGalleryCorrectPlateText, e.usePlateGalleryCreateVehicle, e.usePlateGalleryDeletePlate, e.usePlateGalleryDeleteVehicle, e.usePlateGalleryGetPlateByTrack, e.usePlateGalleryGetPlateMedia, e.usePlateGalleryListPlates, e.usePlateGalleryListVehicleSamples, e.usePlateGalleryListVehicles, e.usePlateGalleryRemoveVehicleSample, e.usePlateGalleryRenameVehicle, e.usePlateGallerySearchPlates, e.usePlateGallerySuggestPlateClusters, e.usePlateGalleryUnassignPlate, e.usePlateGalleryUnassignPlates, e.usePlayerOverlayLayer, e.usePlayerOverlayLayers, e.usePlayerToolbarButton, e.usePlayerToolbarButtons, e.usePowerMeterGetStatus, e.usePresenceGetStatus, e.usePressureSensorGetStatus, e.usePrivacyMaskGetOptions, e.usePrivacyMaskGetStatus, e.usePrivacyMaskSetAudioEnabled, e.usePrivacyMaskSetMask, e.usePtzAutotrackGetSettings, e.usePtzAutotrackGetStatus, e.usePtzAutotrackSetEnabled, e.usePtzAutotrackSetSettings, e.usePtzContinuousMove, e.usePtzDeletePreset, e.usePtzGetOptions, e.usePtzGetPosition, e.usePtzGetPresets, e.usePtzGetStatus, e.usePtzGoHome, e.usePtzGoToPreset, e.usePtzMove, e.usePtzSavePreset, e.usePtzSetAutofocus, e.usePtzStop, e.useRebootReboot, e.useRecordedPlayback, e.useRecordingApplyDeviceSettingsPatch, e.useRecordingCancelRelocate, e.useRecordingDeleteFootprint, e.useRecordingExportCancelExport, e.useRecordingExportCreateExport, e.useRecordingExportDeleteExport, e.useRecordingExportGetDownloadUrl, e.useRecordingExportGetExport, e.useRecordingExportListExports, e.useRecordingGetAvailability, e.useRecordingGetDaysWithRecordings, e.useRecordingGetDeviceConfig, e.useRecordingGetDeviceLiveContribution, e.useRecordingGetDeviceSettingsContribution, e.useRecordingGetPlaybackManifest, e.useRecordingGetRelocateStatus, e.useRecordingGetStatus, e.useRecordingGetStorageUsage, e.useRecordingListOpsLog, e.useRecordingLocateSegment, e.useRecordingPruneFootage, e.useRecordingReadGopBytes, e.useRecordingReadSegmentBytes, e.useRecordingRelocateFootage, e.useRecordingRenderClip, e.useRecordingRenderGif, e.useRecordingRescanStorage, e.useRecordingSetDeviceConfig, e.useRemoteComponent, e.useSceneMonitorCaptureReference, e.useSceneMonitorCreateScene, e.useSceneMonitorDeleteReference, e.useSceneMonitorDeleteScene, e.useSceneMonitorGetStatus, e.useSceneMonitorListScenes, e.useSceneMonitorRecheckNow, e.useSceneMonitorUpdateScene, e.useScriptRunnerGetStatus, e.useScriptRunnerRun, e.useScriptRunnerStop, e.useScrubController, e.useServerManagementApplyServerUpdate, e.useServerManagementCheckServerUpdate, e.useServerManagementGetServerPackageStatus, e.useServerManagementRestartServer, e.useServerManagementRollbackServerUpdate, e.useSettingsStoreCount, e.useSettingsStoreDeclareCollection, e.useSettingsStoreDelete, e.useSettingsStoreDeleteWhere, e.useSettingsStoreGet, e.useSettingsStoreHistogram, e.useSettingsStoreInsert, e.useSettingsStoreIsEmpty, e.useSettingsStoreQuery, e.useSettingsStoreSet, e.useSettingsStoreUpdate, e.useSettingsStoreUpdateWhere, e.useSmokeGetStatus, e.useSnapshotApplyDeviceSettingsPatch, e.useSnapshotGetDeviceLiveContribution, e.useSnapshotGetDeviceSettingsContribution, e.useSnapshotGetSnapshot, e.useSnapshotGetSnapshotLinks, e.useSnapshotGetSnapshotOverview, e.useSnapshotGetStatus, e.useSnapshotInvalidateCache, e.useStorageAbortUpload, e.useStorageBeginDownload, e.useStorageBeginUpload, e.useStorageDelete, e.useStorageDeleteLocation, e.useStorageEndDownload, e.useStorageExists, e.useStorageFinalizeUpload, e.useStorageGetAvailableSpace, e.useStorageGetDefaultLocation, e.useStorageList, e.useStorageListLocationDeclarations, e.useStorageListLocations, e.useStorageListProviders, e.useStorageRead, e.useStorageReadChunk, e.useStorageResolve, e.useStorageTestConfig, e.useStorageTestLocation, e.useStorageUpsertLocation, e.useStorageWrite, e.useStorageWriteChunk, e.useStreamBrokerAcquireEgressTranscode, e.useStreamBrokerApplyDeviceSettingsPatch, e.useStreamBrokerAssignProfile, e.useStreamBrokerFetchEventMedia, e.useStreamBrokerGetAllRtspEntries, e.useStreamBrokerGetBrokerStats, e.useStreamBrokerGetDeviceAudioMute, e.useStreamBrokerGetDeviceLiveContribution, e.useStreamBrokerGetDeviceSettingsContribution, e.useStreamBrokerGetPreBufferInfo, e.useStreamBrokerGetRtspEntry, e.useStreamBrokerGetRtspPort, e.useStreamBrokerGetStreamUrl, e.useStreamBrokerGetStreamWithCodec, e.useStreamBrokerIsRtspEnabled, e.useStreamBrokerKillClient, e.useStreamBrokerListAllCameraStreams, e.useStreamBrokerListAllProfileSlots, e.useStreamBrokerListClients, e.useStreamBrokerProbeStream, e.useStreamBrokerProduceEventMedia, e.useStreamBrokerPublishCameraStream, e.useStreamBrokerPullAudioChunks, e.useStreamBrokerPullFrameHandles, e.useStreamBrokerRegenerateRtspToken, e.useStreamBrokerReleaseEgressTranscode, e.useStreamBrokerReleaseStreamWithCodec, e.useStreamBrokerRenderPreBufferClip, e.useStreamBrokerRestartProfile, e.useStreamBrokerRetractCameraStream, e.useStreamBrokerSetDeviceAudioMute, e.useStreamBrokerSetPreBufferDuration, e.useStreamBrokerSetRtspEnabled, e.useStreamBrokerSubscribeAudioChunks, e.useStreamBrokerSubscribeFrames, e.useStreamBrokerUnassignProfile, e.useStreamBrokerUnsubscribeAudioChunks, e.useStreamBrokerUnsubscribeFrames, e.useStreamCatalogGetCatalog, e.useStreamParamsGetConfigSchema, e.useStreamParamsGetOptions, e.useStreamParamsGetStatus, e.useStreamParamsSetProfile, e.useSwitchGetStatus, e.useSwitchSetState, d = e.useSystem, e.useSystem$1, e.useSystemFeatureFlags, e.useSystemForceRetentionCleanup, e.useSystemGetRetentionConfig, e.useSystemHealth, e.useSystemInfo, e.useSystemMutation, e.useSystemNetworkAddresses, e.useSystemQuery, e.useSystemSetRetentionConfig, e.useTamperGetStatus, e.useTemperatureSensorGetStatus, e.useTerminalSessionClose, e.useTerminalSessionListProfiles, e.useTerminalSessionListSessions, e.useTerminalSessionOpenSession, e.useTerminalSessionResize, e.useThemeMode, e.useToastOnToast, e.useTurnProviderGetTurnServers, e.useUpdateGetStatus, e.useUpdateInstallUpdate, e.useUserManagementConfirmTotp, e.useUserManagementCreateApiKey, e.useUserManagementCreateScopedToken, e.useUserManagementCreateUser, e.useUserManagementDeleteUser, e.useUserManagementDisableTotp, e.useUserManagementGetTotpStatus, e.useUserManagementListApiKeys, e.useUserManagementListOauthSessions, e.useUserManagementListScopedTokens, e.useUserManagementListUsers, e.useUserManagementOauthExchangeCode, e.useUserManagementOauthIssueCode, e.useUserManagementOauthRefresh, e.useUserManagementOauthVerifyAccessToken, e.useUserManagementResetPassword, e.useUserManagementRevokeApiKey, e.useUserManagementRevokeOauthSession, e.useUserManagementRevokeScopedToken, e.useUserManagementSetUserScopes, e.useUserManagementSetupTotp, e.useUserManagementUpdateUser, e.useUserManagementValidateApiKey, e.useUserManagementValidateCredentials, e.useUserManagementValidateScopedToken, e.useUserManagementVerifyTotp, e.useVacuumControlGetStatus, e.useVacuumControlLocate, e.useVacuumControlPause, e.useVacuumControlReturnToBase, e.useVacuumControlSetFanSpeed, e.useVacuumControlStart, e.useVacuumControlStop, e.useValveClose, e.useValveGetStatus, e.useValveOpen, e.useValveSetPosition, e.useValveStop, e.useVibrationGetStatus, e.useVideoclipsGetClipPlayback, e.useVideoclipsListClips, e.useVodPlayback, e.useWaterHeaterGetStatus, e.useWaterHeaterSetAway, e.useWaterHeaterSetOperationMode, e.useWaterHeaterSetTargetTemp, e.useWeatherGetStatus, e.useWebrtcSessionAddIceCandidate, e.useWebrtcSessionCloseSession, e.useWebrtcSessionCreateSession, e.useWebrtcSessionGetIceCandidates, e.useWebrtcSessionGetSessionState, e.useWebrtcSessionHandleAnswer, e.useWebrtcSessionHandleOffer, e.useWebrtcSessionHasAdaptiveBitrate, e.useWebrtcSessionListStreams, e.useWidget, e.useWidgetMetadata, e.useWidgetRegistry, e.useZoneAnalyticsGetCameraHistory, e.useZoneAnalyticsGetCurrentSnapshot, e.useZoneAnalyticsGetUnzonedHistory, e.useZoneAnalyticsGetZoneHistory, e.useZoneEditing, e.useZoneRulesListRules, e.useZoneRulesSetRules, e.useZonesAddZone, e.useZonesListZones, e.useZonesRemoveZone, e.useZonesUpdateZone, e.vacuumStateMeta, e.validateScopes, e.valveStateMeta, e.waterHeaterPhase, e.waterHeaterTint, e.weatherConditionMeta, e.weatherTint, e.default;
|
|
20
|
+
}, p = i.share["default:@camstack/ui-library"];
|
|
21
|
+
p === void 0 ? n.then(() => {
|
|
22
|
+
if (p = i.share["default:@camstack/ui-library"], p === void 0) throw Error("[Module Federation] Shared module @camstack/ui-library was imported before federation bootstrap finished.");
|
|
23
|
+
f(p);
|
|
24
|
+
}) : f(p);
|
|
25
|
+
//#endregion
|
|
26
|
+
export { c as a, s as i, d as n, l as o, o as r, u as s, a as t };
|
|
@@ -36,7 +36,7 @@ async function r() {
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"@camstack/types": {
|
|
39
|
-
version: "1.2.
|
|
39
|
+
version: "1.2.55",
|
|
40
40
|
scope: "default",
|
|
41
41
|
shareConfig: {
|
|
42
42
|
singleton: !0,
|
|
@@ -45,7 +45,7 @@ async function r() {
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"@camstack/sdk": {
|
|
48
|
-
version: "1.2.
|
|
48
|
+
version: "1.2.11",
|
|
49
49
|
scope: "default",
|
|
50
50
|
shareConfig: {
|
|
51
51
|
singleton: !0,
|
|
@@ -81,7 +81,7 @@ async function r() {
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
"@camstack/ui-library": {
|
|
84
|
-
version: "1.2.
|
|
84
|
+
version: "1.2.38",
|
|
85
85
|
scope: "default",
|
|
86
86
|
shareConfig: {
|
|
87
87
|
singleton: !0,
|
|
@@ -2,11 +2,14 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_dist = require("../dist-
|
|
5
|
+
const require_dist = require("../dist-Ba_nAILh.js");
|
|
6
6
|
let node_fs = require("node:fs");
|
|
7
|
+
node_fs = require_dist.__toESM(node_fs, 1);
|
|
7
8
|
let node_path = require("node:path");
|
|
9
|
+
let node_path$1 = require_dist.__toESM(node_path, 1);
|
|
8
10
|
node_path = require_dist.__toESM(node_path);
|
|
9
11
|
let node_crypto = require("node:crypto");
|
|
12
|
+
require("node:child_process");
|
|
10
13
|
let sharp = require("sharp");
|
|
11
14
|
sharp = require_dist.__toESM(sharp);
|
|
12
15
|
//#region src/notification-center/action-token.ts
|
|
@@ -727,6 +730,227 @@ var NC_ALARM_DECLARATION = {
|
|
|
727
730
|
DeviceClass: NcAlarmPanelDevice
|
|
728
731
|
};
|
|
729
732
|
//#endregion
|
|
733
|
+
//#region ../types/dist/node.mjs
|
|
734
|
+
var node_exports = /* @__PURE__ */ require_dist.__exportAll({
|
|
735
|
+
FilesystemStorageProvider: () => FilesystemStorageProvider,
|
|
736
|
+
PYTHON_VERSION: () => PYTHON_VERSION,
|
|
737
|
+
signExpiringUrl: () => signExpiringUrl,
|
|
738
|
+
verifyExpiringUrl: () => verifyExpiringUrl
|
|
739
|
+
});
|
|
740
|
+
/**
|
|
741
|
+
* Download portable Python (headless) from bjia56/portable-python.
|
|
742
|
+
*
|
|
743
|
+
* Source: https://github.com/bjia56/portable-python
|
|
744
|
+
*
|
|
745
|
+
* Advantages over python-build-standalone:
|
|
746
|
+
* - macOS universal2 binary (arm64+x86_64 in one)
|
|
747
|
+
* - Lighter (~24-28MB headless zip)
|
|
748
|
+
* - glibc 2.17 minimum (better compat)
|
|
749
|
+
* - Headless variant excludes tkinter/UI (ideal for ML inference)
|
|
750
|
+
*
|
|
751
|
+
* The zip's top-level dir is platform-specific (e.g.
|
|
752
|
+
* `python-headless-3.12.12-darwin-universal2/`); after extraction
|
|
753
|
+
* we rename it to a stable `python/` so consumers can rely on
|
|
754
|
+
* `<dataDir>/deps/python/bin/python3`.
|
|
755
|
+
*/
|
|
756
|
+
var PYTHON_VERSION = "3.12.12";
|
|
757
|
+
`${PYTHON_VERSION}`;
|
|
758
|
+
var STORAGE_LOCATION_TYPES = [
|
|
759
|
+
"data",
|
|
760
|
+
"media",
|
|
761
|
+
"recordings",
|
|
762
|
+
"recordings-high",
|
|
763
|
+
"recordings-low",
|
|
764
|
+
"recordings-clips",
|
|
765
|
+
"event-images",
|
|
766
|
+
"models",
|
|
767
|
+
"addons-data",
|
|
768
|
+
"cache",
|
|
769
|
+
"logs",
|
|
770
|
+
"backups"
|
|
771
|
+
];
|
|
772
|
+
var DEFAULT_LOCATION_SUBDIRS = {
|
|
773
|
+
data: "db",
|
|
774
|
+
media: "media",
|
|
775
|
+
recordings: "recordings",
|
|
776
|
+
"recordings-high": "recordings-high",
|
|
777
|
+
"recordings-low": "recordings-low",
|
|
778
|
+
"recordings-clips": "recordings-clips",
|
|
779
|
+
"event-images": "event-images",
|
|
780
|
+
models: "models",
|
|
781
|
+
"addons-data": "addons-data",
|
|
782
|
+
cache: "/tmp/camstack-cache",
|
|
783
|
+
logs: "logs",
|
|
784
|
+
backups: "backups"
|
|
785
|
+
};
|
|
786
|
+
/**
|
|
787
|
+
* Filesystem storage provider — serves all location types from a local directory tree.
|
|
788
|
+
*
|
|
789
|
+
* Default layout:
|
|
790
|
+
* {rootPath}/recordings-high/
|
|
791
|
+
* {rootPath}/recordings-low/
|
|
792
|
+
* {rootPath}/recordings-clips/
|
|
793
|
+
* {rootPath}/event-images/
|
|
794
|
+
* {rootPath}/models/
|
|
795
|
+
* {rootPath}/addons-data/
|
|
796
|
+
* {rootPath}/logs/
|
|
797
|
+
* /tmp/camstack-cache/ (cache is always local)
|
|
798
|
+
*
|
|
799
|
+
* Individual location paths can be overridden.
|
|
800
|
+
*/
|
|
801
|
+
var FilesystemStorageProvider = class {
|
|
802
|
+
id = "local";
|
|
803
|
+
name = "Local Filesystem";
|
|
804
|
+
supportedLocations = [...STORAGE_LOCATION_TYPES];
|
|
805
|
+
rootPath;
|
|
806
|
+
locationPaths;
|
|
807
|
+
constructor(rootPath, overrides) {
|
|
808
|
+
this.rootPath = node_path$1.resolve(rootPath);
|
|
809
|
+
this.locationPaths = /* @__PURE__ */ new Map();
|
|
810
|
+
for (const loc of STORAGE_LOCATION_TYPES) {
|
|
811
|
+
const override = overrides?.[loc];
|
|
812
|
+
if (override) this.locationPaths.set(loc, node_path$1.resolve(override));
|
|
813
|
+
else {
|
|
814
|
+
const subdir = DEFAULT_LOCATION_SUBDIRS[loc] ?? loc;
|
|
815
|
+
this.locationPaths.set(loc, node_path$1.isAbsolute(subdir) ? subdir : node_path$1.join(this.rootPath, subdir));
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
for (const [loc, override] of Object.entries(overrides ?? {})) if (typeof override === "string" && !this.locationPaths.has(loc)) this.locationPaths.set(loc, node_path$1.resolve(override));
|
|
819
|
+
}
|
|
820
|
+
async resolve({ location, relativePath }) {
|
|
821
|
+
const base = this.locationPaths.get(location) ?? node_path$1.join(this.rootPath, location);
|
|
822
|
+
return node_path$1.join(base, relativePath);
|
|
823
|
+
}
|
|
824
|
+
async write({ location, relativePath, data }) {
|
|
825
|
+
const filePath = await this.resolve({
|
|
826
|
+
location,
|
|
827
|
+
relativePath
|
|
828
|
+
});
|
|
829
|
+
await node_fs.promises.mkdir(node_path$1.dirname(filePath), { recursive: true });
|
|
830
|
+
if (Buffer.isBuffer(data)) await node_fs.promises.writeFile(filePath, data);
|
|
831
|
+
else {
|
|
832
|
+
const writeStream = node_fs.createWriteStream(filePath);
|
|
833
|
+
await new Promise((resolve, reject) => {
|
|
834
|
+
data.pipe(writeStream);
|
|
835
|
+
writeStream.on("finish", resolve);
|
|
836
|
+
writeStream.on("error", reject);
|
|
837
|
+
});
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
async read({ location, relativePath }) {
|
|
841
|
+
return node_fs.promises.readFile(await this.resolve({
|
|
842
|
+
location,
|
|
843
|
+
relativePath
|
|
844
|
+
}));
|
|
845
|
+
}
|
|
846
|
+
async exists({ location, relativePath }) {
|
|
847
|
+
try {
|
|
848
|
+
await node_fs.promises.access(await this.resolve({
|
|
849
|
+
location,
|
|
850
|
+
relativePath
|
|
851
|
+
}));
|
|
852
|
+
return true;
|
|
853
|
+
} catch {
|
|
854
|
+
return false;
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
async list({ location, prefix }) {
|
|
858
|
+
const base = this.locationPaths.get(location);
|
|
859
|
+
if (!base) return [];
|
|
860
|
+
const dir = prefix ? node_path$1.join(base, prefix) : base;
|
|
861
|
+
try {
|
|
862
|
+
return (await node_fs.promises.readdir(dir, { withFileTypes: true })).map((e) => prefix ? `${prefix}/${e.name}` : e.name);
|
|
863
|
+
} catch {
|
|
864
|
+
return [];
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
async delete({ location, relativePath }) {
|
|
868
|
+
const filePath = await this.resolve({
|
|
869
|
+
location,
|
|
870
|
+
relativePath
|
|
871
|
+
});
|
|
872
|
+
await node_fs.promises.rm(filePath, { force: true });
|
|
873
|
+
}
|
|
874
|
+
async getAvailableSpace({ location }) {
|
|
875
|
+
const base = this.locationPaths.get(location);
|
|
876
|
+
if (!base) return null;
|
|
877
|
+
try {
|
|
878
|
+
let target = base;
|
|
879
|
+
while (!node_fs.existsSync(target)) {
|
|
880
|
+
const parent = node_path$1.dirname(target);
|
|
881
|
+
if (!parent || parent === target) return null;
|
|
882
|
+
target = parent;
|
|
883
|
+
}
|
|
884
|
+
const stats = await node_fs.promises.statfs(target);
|
|
885
|
+
return stats.bavail * stats.bsize;
|
|
886
|
+
} catch {
|
|
887
|
+
return null;
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
/** Get the resolved path for a location type (addon-declared ids fall back
|
|
891
|
+
* to `<rootPath>/<id>`). */
|
|
892
|
+
getLocationPath(location) {
|
|
893
|
+
return this.locationPaths.get(location) ?? node_path$1.join(this.rootPath, location);
|
|
894
|
+
}
|
|
895
|
+
/** Get the root path */
|
|
896
|
+
getRootPath() {
|
|
897
|
+
return this.rootPath;
|
|
898
|
+
}
|
|
899
|
+
};
|
|
900
|
+
/**
|
|
901
|
+
* The ONE derivation of "a signed, expiring URL".
|
|
902
|
+
*
|
|
903
|
+
* This repo mints unguessable, self-expiring links in three places now — the
|
|
904
|
+
* notification artifact plane, the Home Assistant media plane, and the snapshot
|
|
905
|
+
* link plane. The first two grew independently and are byte-identical logic
|
|
906
|
+
* (`hmac(secret, "<id>:<exp>")`, expiry checked before a constant-time compare),
|
|
907
|
+
* each restating the crypto locally because **addons never import each other**.
|
|
908
|
+
*
|
|
909
|
+
* That reason is real, and the conclusion drawn from it was wrong. Two copies of
|
|
910
|
+
* a signing scheme is how one of them quietly ends up with a different TTL, a
|
|
911
|
+
* different compare, or a missing expiry check, and nothing fails until a link
|
|
912
|
+
* that should have died keeps working. The fix is the same one D52 applies to
|
|
913
|
+
* crop geometry: one derivation, in a place every addon may depend on. A
|
|
914
|
+
* framework package is exactly that place — `@camstack/types/node`, off the root
|
|
915
|
+
* entry because `node:crypto` must never be traversed by a browser bundler.
|
|
916
|
+
*
|
|
917
|
+
* What this module deliberately does NOT decide: the TTL, the base URL, the
|
|
918
|
+
* shape of `id`, and the access level of the route. Those are per-plane policy
|
|
919
|
+
* and each caller states them where a reader can see them.
|
|
920
|
+
*/
|
|
921
|
+
/**
|
|
922
|
+
* The signature over `(id, expMs)`.
|
|
923
|
+
*
|
|
924
|
+
* `id` is whatever the plane uses to name the thing being served — an artifact
|
|
925
|
+
* id, a track id, a `<deviceId>:<width>` pair. It is joined with `:` so a caller
|
|
926
|
+
* must not put a `:` inside a field whose boundary matters; where a plane has
|
|
927
|
+
* more than one field, it composes them itself and owns that ambiguity.
|
|
928
|
+
*/
|
|
929
|
+
function signExpiringUrl(secret, id, expMs) {
|
|
930
|
+
return (0, node_crypto.createHmac)("sha256", secret).update(`${id}:${String(expMs)}`).digest("hex");
|
|
931
|
+
}
|
|
932
|
+
/**
|
|
933
|
+
* Verify a request's `(id, exp, sig)`.
|
|
934
|
+
*
|
|
935
|
+
* **Expiry is checked BEFORE the compare**, so an expired link is refused
|
|
936
|
+
* whether or not its signature is valid — a leaked URL stops working on its own
|
|
937
|
+
* and cannot be kept alive by holding a correct signature. The compare itself is
|
|
938
|
+
* constant-time so a public route cannot be probed for the signature byte by
|
|
939
|
+
* byte.
|
|
940
|
+
*/
|
|
941
|
+
function verifyExpiringUrl(input) {
|
|
942
|
+
const { secret, id, exp, sig, nowMs } = input;
|
|
943
|
+
if (exp === void 0 || sig === void 0) return false;
|
|
944
|
+
const expMs = typeof exp === "number" ? exp : Number(exp);
|
|
945
|
+
if (!Number.isFinite(expMs)) return false;
|
|
946
|
+
if (expMs <= nowMs) return false;
|
|
947
|
+
const expected = signExpiringUrl(secret, id, expMs);
|
|
948
|
+
const a = Buffer.from(expected, "utf8");
|
|
949
|
+
const b = Buffer.from(sig, "utf8");
|
|
950
|
+
if (a.length !== b.length) return false;
|
|
951
|
+
return (0, node_crypto.timingSafeEqual)(a, b);
|
|
952
|
+
}
|
|
953
|
+
//#endregion
|
|
730
954
|
//#region src/notification-center/artifact-url.ts
|
|
731
955
|
/**
|
|
732
956
|
* Signed, externally-reachable URLs for notification artifacts.
|
|
@@ -743,7 +967,10 @@ var NC_ALARM_DECLARATION = {
|
|
|
743
967
|
* recipient's phone) — it holds no session and no admin token. The route is
|
|
744
968
|
* therefore `access:'public'` and the authority is the signature: an
|
|
745
969
|
* unguessable HMAC over `(id, exp)` with a per-install secret, expiring on
|
|
746
|
-
* its own. Nothing else about the install is reachable through it.
|
|
970
|
+
* its own. Nothing else about the install is reachable through it. The HMAC
|
|
971
|
+
* is the shared one in `@camstack/types/node` — this module used to restate
|
|
972
|
+
* it, as did the Home Assistant media plane, and two copies of a signing
|
|
973
|
+
* scheme is how one of them quietly loses its expiry check.
|
|
747
974
|
* - **The base URL is CHOSEN, never assumed.** A notification carrying
|
|
748
975
|
* `http://127.0.0.1:...` is useless (the Alexa `hubUrl` bug, again). The
|
|
749
976
|
* ranked endpoint list the `local-network` cap already computes — public
|
|
@@ -760,9 +987,17 @@ var NC_ALARM_DECLARATION = {
|
|
|
760
987
|
function pickArtifactBaseUrl(endpoints) {
|
|
761
988
|
return endpoints.filter((e) => e.kind !== "loopback").toSorted((a, b) => a.priority - b.priority)[0]?.baseUrl ?? null;
|
|
762
989
|
}
|
|
763
|
-
/**
|
|
990
|
+
/**
|
|
991
|
+
* Sign `(id, exp)` — the exact string the verifier recomputes.
|
|
992
|
+
*
|
|
993
|
+
* Delegates to the one derivation in `@camstack/types/node`. This used to
|
|
994
|
+
* restate the HMAC locally, and so did the Home Assistant media plane, on the
|
|
995
|
+
* correct reasoning that addons never import each other — but two copies of a
|
|
996
|
+
* signing scheme is how one of them ends up with a different expiry check that
|
|
997
|
+
* nothing catches.
|
|
998
|
+
*/
|
|
764
999
|
function signArtifact(secret, id, expMs) {
|
|
765
|
-
return (
|
|
1000
|
+
return signExpiringUrl(secret, id, expMs);
|
|
766
1001
|
}
|
|
767
1002
|
/**
|
|
768
1003
|
* Build the fully-qualified, signed URL for an artifact.
|
|
@@ -779,12 +1014,7 @@ function buildArtifactUrl(input) {
|
|
|
779
1014
|
* the compare so an expired link is rejected even with a valid signature.
|
|
780
1015
|
*/
|
|
781
1016
|
function verifyArtifactSignature(input) {
|
|
782
|
-
|
|
783
|
-
const expected = signArtifact(input.secret, input.id, input.exp);
|
|
784
|
-
const a = Buffer.from(expected, "utf8");
|
|
785
|
-
const b = Buffer.from(input.sig, "utf8");
|
|
786
|
-
if (a.length !== b.length) return false;
|
|
787
|
-
return (0, node_crypto.timingSafeEqual)(a, b);
|
|
1017
|
+
return verifyExpiringUrl(input);
|
|
788
1018
|
}
|
|
789
1019
|
//#endregion
|
|
790
1020
|
//#region src/notification-center/artifact-plane.ts
|
|
@@ -12314,26 +12544,6 @@ function wideCentralSquareLayout(bbox, frame) {
|
|
|
12314
12544
|
frameOriginX
|
|
12315
12545
|
};
|
|
12316
12546
|
}
|
|
12317
|
-
//#endregion
|
|
12318
|
-
//#region src/shared/frame/subject-crop-variants.ts
|
|
12319
|
-
/**
|
|
12320
|
-
* Best-shot subject-crop variants (best-crop fast-load, 2026-07-21; 16:9
|
|
12321
|
-
* central-square reframe, 2026-07-22).
|
|
12322
|
-
*
|
|
12323
|
-
* ONE native fetch (the 16:9 central-square WINDOW — see
|
|
12324
|
-
* {@link wide-central-square-crop}) backs both persisted variants:
|
|
12325
|
-
* - `thumbnail` — the native uncapped 16:9 window JPEG (subject in the
|
|
12326
|
-
* central square, lateral scene context, never upscaled).
|
|
12327
|
-
* - `thumbnailSmall` — the SAME window downscaled to {@link WIDE_THUMBNAIL_SMALL_MAX_WIDTH}
|
|
12328
|
-
* long side (854×480), the reel / lists / grid fast-load
|
|
12329
|
-
* representative.
|
|
12330
|
-
*
|
|
12331
|
-
* The small variant is DERIVED from the already-composed native window — never a
|
|
12332
|
-
* second native round-trip and NEVER upscaled: if the window is already ≤ 854 on
|
|
12333
|
-
* its long side it is stored AS-IS (byte-identical). The window is composed from
|
|
12334
|
-
* the in-frame slab plus lateral letterbox padding for the (rare) part of the
|
|
12335
|
-
* 16:9 window that falls outside the frame at a horizontal edge.
|
|
12336
|
-
*/
|
|
12337
12547
|
/** Gaussian sigma for the blurred-scene letterbox fill. */
|
|
12338
12548
|
var LETTERBOX_BLUR_SIGMA = 25;
|
|
12339
12549
|
/** Brightness factor for the blurred fill — dimmed so the real slab reads as
|
|
@@ -12379,15 +12589,12 @@ async function composeWideCentralSquareThumbnail(slab, layout) {
|
|
|
12379
12589
|
}
|
|
12380
12590
|
/**
|
|
12381
12591
|
* Derive the `thumbnailSmall` JPEG from the composed native 16:9 window.
|
|
12382
|
-
* Downscales to at most {@link WIDE_THUMBNAIL_SMALL_MAX_WIDTH} (
|
|
12383
|
-
* side (aspect preserved →
|
|
12384
|
-
*
|
|
12592
|
+
* Downscales to at most {@link WIDE_THUMBNAIL_SMALL_MAX_WIDTH} (480) on the long
|
|
12593
|
+
* side (aspect preserved → 480×270) and re-encodes at representative quality.
|
|
12594
|
+
* `withoutEnlargement` preserves smaller sources.
|
|
12385
12595
|
*/
|
|
12386
12596
|
async function deriveThumbnailSmall(nativeWideJpeg) {
|
|
12387
|
-
|
|
12388
|
-
const longSide = Math.max(meta.width ?? 0, meta.height ?? 0);
|
|
12389
|
-
if (longSide > 0 && longSide <= 854) return nativeWideJpeg;
|
|
12390
|
-
return (0, sharp.default)(nativeWideJpeg).resize(854, null, { withoutEnlargement: true }).jpeg({ quality: 88 }).toBuffer();
|
|
12597
|
+
return (0, sharp.default)(nativeWideJpeg).resize(480, null, { withoutEnlargement: true }).jpeg({ quality: 75 }).toBuffer();
|
|
12391
12598
|
}
|
|
12392
12599
|
//#endregion
|
|
12393
12600
|
//#region src/shared/frame/keyframe-wide-thumbnail.ts
|
|
@@ -14641,6 +14848,7 @@ function createEventMediaHandler(deps) {
|
|
|
14641
14848
|
}
|
|
14642
14849
|
const variant = parseEventMediaVariant(query);
|
|
14643
14850
|
const preferKind = parseEventMediaKind(query);
|
|
14851
|
+
const resolveStartedAt = performance.now();
|
|
14644
14852
|
let media = null;
|
|
14645
14853
|
try {
|
|
14646
14854
|
media = await deps.getMedia(eventId, variant ?? void 0, preferKind ?? void 0);
|
|
@@ -14648,21 +14856,24 @@ function createEventMediaHandler(deps) {
|
|
|
14648
14856
|
const body = "Internal server error";
|
|
14649
14857
|
res.writeHead(500, {
|
|
14650
14858
|
"content-type": "text/plain",
|
|
14651
|
-
"content-length": String(Buffer.byteLength(body))
|
|
14859
|
+
"content-length": String(Buffer.byteLength(body)),
|
|
14860
|
+
"server-timing": `resolve;dur=${(performance.now() - resolveStartedAt).toFixed(1)}`
|
|
14652
14861
|
});
|
|
14653
14862
|
if (req.method !== "HEAD") res.end(body);
|
|
14654
14863
|
else res.end();
|
|
14655
14864
|
return;
|
|
14656
14865
|
}
|
|
14657
14866
|
if (media === null) {
|
|
14658
|
-
res.writeHead(404).end();
|
|
14867
|
+
res.writeHead(404, { "server-timing": `resolve;dur=${(performance.now() - resolveStartedAt).toFixed(1)}` }).end();
|
|
14659
14868
|
return;
|
|
14660
14869
|
}
|
|
14661
14870
|
const etag = "\"" + media.key + "\"";
|
|
14871
|
+
const serverTiming = `resolve;dur=${(performance.now() - resolveStartedAt).toFixed(1)}`;
|
|
14662
14872
|
if (req.headers["if-none-match"] === etag) {
|
|
14663
14873
|
res.writeHead(304, {
|
|
14664
14874
|
etag,
|
|
14665
|
-
"cache-control": CACHE_CONTROL
|
|
14875
|
+
"cache-control": CACHE_CONTROL,
|
|
14876
|
+
"server-timing": serverTiming
|
|
14666
14877
|
}).end();
|
|
14667
14878
|
return;
|
|
14668
14879
|
}
|
|
@@ -14670,7 +14881,8 @@ function createEventMediaHandler(deps) {
|
|
|
14670
14881
|
"content-type": "image/jpeg",
|
|
14671
14882
|
"cache-control": CACHE_CONTROL,
|
|
14672
14883
|
etag,
|
|
14673
|
-
"content-length": String(media.bytes.byteLength)
|
|
14884
|
+
"content-length": String(media.bytes.byteLength),
|
|
14885
|
+
"server-timing": serverTiming
|
|
14674
14886
|
});
|
|
14675
14887
|
if (req.method === "HEAD") res.end();
|
|
14676
14888
|
else res.end(Buffer.from(media.bytes));
|
|
@@ -27397,9 +27609,9 @@ var EventMediaDispatcher = class {
|
|
|
27397
27609
|
* the runner's retained native surface with NO `maxWidth` (uncapped TRUE
|
|
27398
27610
|
* native). It is composed into the full 16:9 window (lateral letterbox only for
|
|
27399
27611
|
* the part outside the frame) → the `thumbnail`. The `thumbnailSmall` is
|
|
27400
|
-
* DERIVED by downscaling that SAME window to the
|
|
27612
|
+
* DERIVED by downscaling that SAME window to the 480 long-side cap (480×270) —
|
|
27401
27613
|
* never a second `getNativeCropJpeg`, never upscaled ({@link deriveThumbnailSmall}
|
|
27402
|
-
*
|
|
27614
|
+
* never upscales a smaller window).
|
|
27403
27615
|
*
|
|
27404
27616
|
* Both variants share the SAME framing + central-square containment guarantee:
|
|
27405
27617
|
* wide consumers use the 16:9 image as-is (subject centered, no cut); square
|
|
@@ -30658,6 +30870,7 @@ var MOTION_EVENT_HEARTBEAT_MS = 5e3;
|
|
|
30658
30870
|
var CLEAN_MEDIA_KINDS = [
|
|
30659
30871
|
"crop",
|
|
30660
30872
|
"thumbnail",
|
|
30873
|
+
"thumbnailSmall",
|
|
30661
30874
|
"fullFrame",
|
|
30662
30875
|
"keyFrame",
|
|
30663
30876
|
"keyFrameSmall"
|
|
@@ -31509,7 +31722,7 @@ var PipelineAnalyticsAddon = class extends require_dist.BaseAddon {
|
|
|
31509
31722
|
let storage = this.ctx.kernel.storage;
|
|
31510
31723
|
const mediaRoot = process.env.CAMSTACK_MEDIA_ROOT?.trim();
|
|
31511
31724
|
if (mediaRoot) {
|
|
31512
|
-
const { FilesystemStorageProvider } = await Promise.resolve().then(() =>
|
|
31725
|
+
const { FilesystemStorageProvider } = await Promise.resolve().then(() => node_exports);
|
|
31513
31726
|
storage = new FilesystemStorageProvider(mediaRoot, { eventMedia: mediaRoot });
|
|
31514
31727
|
logger.info("pipeline-analytics: event media rooted at CAMSTACK_MEDIA_ROOT", { meta: { mediaRoot } });
|
|
31515
31728
|
}
|
|
@@ -35996,6 +36209,7 @@ var PipelineAnalyticsAddon = class extends require_dist.BaseAddon {
|
|
|
35996
36209
|
* failure the full blob is served (a thumb must never 500 / blank a tile).
|
|
35997
36210
|
*/
|
|
35998
36211
|
async applyThumbVariant(media, variant) {
|
|
36212
|
+
if (media.key.includes(":thumbnailSmall") && media.bytes.byteLength <= 64 * 1024) return media;
|
|
35999
36213
|
try {
|
|
36000
36214
|
return {
|
|
36001
36215
|
bytes: await makeSquareThumb(media.bytes, variant.size),
|
|
@@ -36014,7 +36228,13 @@ var PipelineAnalyticsAddon = class extends require_dist.BaseAddon {
|
|
|
36014
36228
|
const eventFiles = await (this.mediaStore?.listByOwner("event", id) ?? Promise.resolve([]));
|
|
36015
36229
|
if (preferKind !== void 0 && preferKind.length > 0) {
|
|
36016
36230
|
const trackFiles = await (this.mediaStore?.listByOwner("track", id) ?? Promise.resolve([]));
|
|
36017
|
-
const
|
|
36231
|
+
const ownerTrackId = trackFiles.length === 0 ? await (this.eventStore?.getTrackIdForEvent(id) ?? Promise.resolve(null)) : null;
|
|
36232
|
+
const owningTrackFiles = ownerTrackId === null ? [] : await (this.mediaStore?.listByOwner("track", ownerTrackId) ?? Promise.resolve([]));
|
|
36233
|
+
const chosen = resolveCropForcedMedia([
|
|
36234
|
+
...eventFiles,
|
|
36235
|
+
...trackFiles,
|
|
36236
|
+
...owningTrackFiles
|
|
36237
|
+
], (files) => pickCleanMedia(files, preferKind));
|
|
36018
36238
|
if (!chosen) return null;
|
|
36019
36239
|
return {
|
|
36020
36240
|
bytes: Buffer.from(chosen.base64, "base64"),
|