@kvaser/canking-api 7.2.0 → 7.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/measurement_settings.js +1 -1
- package/dist/measurement_settings.mjs +18 -18
- package/dist/protos/frame_params.d.ts +1 -1
- package/dist/protos/signal_params.d.ts +3 -3
- package/doc/classes/controls.LocalizedStrings.html +2 -2
- package/doc/classes/models.DataBuffer.html +2 -2
- package/doc/classes/models.DataBufferView.html +2 -2
- package/doc/classes/models.Point.html +2 -2
- package/doc/enums/models.AccessMode.html +2 -2
- package/doc/enums/models.AppEvent.html +2 -2
- package/doc/enums/models.CanChannelCap.html +2 -2
- package/doc/enums/models.CanFrameFlag.html +2 -2
- package/doc/enums/models.CanMessageFilterType.html +2 -2
- package/doc/enums/models.CanMode.html +2 -2
- package/doc/enums/models.DecimalChar.html +2 -2
- package/doc/enums/models.DeviceEvent.html +2 -2
- package/doc/enums/models.FileConflictAction.html +2 -2
- package/doc/enums/models.FileType.html +2 -2
- package/doc/enums/models.LinFrameFlag.html +2 -2
- package/doc/enums/models.LogFileFormat.html +2 -2
- package/doc/enums/models.LogLevel.html +2 -2
- package/doc/enums/models.LogReplayState.html +2 -2
- package/doc/enums/models.LoggerState.html +2 -2
- package/doc/enums/models.MeasurementEvent.html +2 -2
- package/doc/enums/models.Protocols.html +2 -2
- package/doc/enums/models.Separator.html +2 -2
- package/doc/enums/models.SignalEncoding.html +2 -2
- package/doc/enums/models.SignalType.html +2 -2
- package/doc/enums/models.SignalValueTriggerOperator.html +2 -2
- package/doc/enums/models.StatusLevel.html +2 -2
- package/doc/enums/models.TimeReference.html +2 -2
- package/doc/enums/models.TriggerOperator.html +2 -2
- package/doc/functions/controls.CanChannelSelectControl.html +2 -2
- package/doc/functions/controls.CanIdentifierControl.html +2 -2
- package/doc/functions/controls.CanIdentifierFrameControl.html +2 -2
- package/doc/functions/controls.CanIdentifierGeneratorControl.html +2 -2
- package/doc/functions/controls.CanIdentifierGeneratorSettingsControl.html +2 -2
- package/doc/functions/controls.CanKingDataProvider.html +2 -2
- package/doc/functions/controls.CheckboxControl.html +2 -2
- package/doc/functions/controls.ColumnItemControl.html +2 -2
- package/doc/functions/controls.ContextMenu.html +2 -2
- package/doc/functions/controls.DropdownButton.html +2 -2
- package/doc/functions/controls.DropdownButtonTextItems.html +2 -2
- package/doc/functions/controls.DropdownPanel.html +2 -2
- package/doc/functions/controls.FillBox.html +2 -2
- package/doc/functions/controls.FormControlRow.html +2 -2
- package/doc/functions/controls.InlineEditor.html +2 -2
- package/doc/functions/controls.LinChannelSelectControl.html +2 -2
- package/doc/functions/controls.LinIdentifierControl.html +2 -2
- package/doc/functions/controls.LinIdentifierFrameControl.html +2 -2
- package/doc/functions/controls.LinIdentifierGeneratorControl.html +2 -2
- package/doc/functions/controls.LinIdentifierGeneratorSettingsControl.html +2 -2
- package/doc/functions/controls.NumberRangeControl.html +2 -2
- package/doc/functions/controls.OneLineButton.html +2 -2
- package/doc/functions/controls.RadioControl.html +2 -2
- package/doc/functions/controls.RadioGroupControl.html +2 -2
- package/doc/functions/controls.SectionControl.html +2 -2
- package/doc/functions/controls.SelectControl.html +2 -2
- package/doc/functions/controls.SelectMessageDialog.html +2 -2
- package/doc/functions/controls.SelectSignalControl.html +1 -1
- package/doc/functions/controls.SelectSignalDialog.html +2 -2
- package/doc/functions/controls.SizedBox.html +2 -2
- package/doc/functions/controls.TableControl.html +2 -2
- package/doc/functions/controls.TabsPanel.html +2 -2
- package/doc/functions/controls.TextControl.html +2 -2
- package/doc/functions/controls.ToolbarControl.html +2 -2
- package/doc/functions/controls.ValidateableTextControl.html +2 -2
- package/doc/functions/controls.useColumnItem.html +2 -2
- package/doc/functions/controls.useColumnItems.html +2 -2
- package/doc/functions/controls.useMessageDatabases.html +2 -2
- package/doc/functions/hooks.useDevices.html +2 -2
- package/doc/functions/hooks.useIsOnline.html +2 -2
- package/doc/functions/hooks.useLanguage.html +2 -2
- package/doc/functions/hooks.useLocalizedStrings.html +2 -2
- package/doc/functions/hooks.useLogMessages.html +2 -2
- package/doc/functions/hooks.useMaxDataBytes.html +2 -2
- package/doc/functions/hooks.useMeasurementSetup.html +2 -2
- package/doc/functions/hooks.useMeasurementStatus.html +2 -2
- package/doc/functions/hooks.useMessageLogFileFormats.html +2 -2
- package/doc/functions/hooks.useNewMeasurementData.html +2 -2
- package/doc/functions/hooks.useNodeStatus.html +2 -2
- package/doc/functions/hooks.useNumericRadix.html +2 -2
- package/doc/functions/hooks.useOnlineStatus.html +2 -2
- package/doc/functions/hooks.useOverallStatusLevel.html +2 -2
- package/doc/functions/hooks.useProjectData.html +2 -2
- package/doc/functions/hooks.useRecentProjectFiles.html +2 -2
- package/doc/functions/hooks.useRunningPeriodicTransmissions.html +2 -2
- package/doc/functions/hooks.useSessionData.html +2 -2
- package/doc/functions/hooks.useSignalLogFileFormats.html +2 -2
- package/doc/functions/hooks.useUserSettings.html +2 -2
- package/doc/functions/hooks.useWorkspacePaneWithId.html +2 -2
- package/doc/functions/icons.AddIcon.html +2 -2
- package/doc/functions/icons.ArrowDownIcon.html +2 -2
- package/doc/functions/icons.ArrowLeftIcon.html +2 -2
- package/doc/functions/icons.ArrowRightIcon.html +2 -2
- package/doc/functions/icons.ArrowUpIcon.html +2 -2
- package/doc/functions/icons.BusIsOffIcon.html +2 -2
- package/doc/functions/icons.BusIsOnIcon.html +2 -2
- package/doc/functions/icons.CloseIcon.html +2 -2
- package/doc/functions/icons.ColumnSettingsIcon.html +2 -2
- package/doc/functions/icons.CopyIcon.html +2 -2
- package/doc/functions/icons.DarkModeIcon.html +2 -2
- package/doc/functions/icons.DeleteIcon.html +2 -2
- package/doc/functions/icons.DisableIcon.html +2 -2
- package/doc/functions/icons.EditIcon.html +2 -2
- package/doc/functions/icons.EnableIcon.html +2 -2
- package/doc/functions/icons.FilterIcon.html +2 -2
- package/doc/functions/icons.FixedPositionIcon.html +2 -2
- package/doc/functions/icons.LeaveFullScreenIcon.html +2 -2
- package/doc/functions/icons.LightModeIcon.html +2 -2
- package/doc/functions/icons.LineArrowDownIcon.html +2 -2
- package/doc/functions/icons.LineArrowUpIcon.html +2 -2
- package/doc/functions/icons.MaximizeWindowIcon.html +2 -2
- package/doc/functions/icons.MeasurementSetupIcon.html +2 -2
- package/doc/functions/icons.MoreHorizIcon.html +2 -2
- package/doc/functions/icons.MoreVertIcon.html +2 -2
- package/doc/functions/icons.NewIcon.html +2 -2
- package/doc/functions/icons.OpenExternallyIcon.html +2 -2
- package/doc/functions/icons.OpenIcon.html +2 -2
- package/doc/functions/icons.PauseIcon.html +2 -2
- package/doc/functions/icons.PlayIcon.html +2 -2
- package/doc/functions/icons.PlaySolidIcon.html +2 -2
- package/doc/functions/icons.SaveIcon.html +2 -2
- package/doc/functions/icons.SelectAllIcon.html +2 -2
- package/doc/functions/icons.ServiceIconActive.html +2 -2
- package/doc/functions/icons.ServiceIconInactive.html +2 -2
- package/doc/functions/icons.SettingsIcon.html +2 -2
- package/doc/functions/icons.StopIcon.html +2 -2
- package/doc/functions/icons.StopSolidIcon.html +2 -2
- package/doc/functions/icons.ToolsPanelHiddenIcon.html +2 -2
- package/doc/functions/icons.ToolsPanelVisibleIcon.html +2 -2
- package/doc/functions/icons.UnmaximizeWindowIcon.html +2 -2
- package/doc/functions/icons.WorkspacesIcon.html +2 -2
- package/doc/functions/ipc.addDataProcessor.html +2 -2
- package/doc/functions/ipc.addSource.html +2 -2
- package/doc/functions/ipc.addTarget.html +2 -2
- package/doc/functions/ipc.clearLinMessage.html +2 -2
- package/doc/functions/ipc.connectNodes.html +2 -2
- package/doc/functions/ipc.deleteDataProcessor.html +2 -2
- package/doc/functions/ipc.deleteSource.html +2 -2
- package/doc/functions/ipc.deleteTarget.html +2 -2
- package/doc/functions/ipc.disableNode.html +2 -2
- package/doc/functions/ipc.disconnectNodes.html +2 -2
- package/doc/functions/ipc.enableNode.html +2 -2
- package/doc/functions/ipc.getFrameDefinitions.html +2 -2
- package/doc/functions/ipc.getLogger.html +2 -2
- package/doc/functions/ipc.getMessageLogFileFormats.html +2 -2
- package/doc/functions/ipc.getSignalLogFileFormats.html +2 -2
- package/doc/functions/ipc.requestLinMessage.html +2 -2
- package/doc/functions/ipc.sendCanMessage.html +2 -2
- package/doc/functions/ipc.sendMessage.html +2 -2
- package/doc/functions/ipc.showMessageBox.html +2 -2
- package/doc/functions/ipc.showQuestionBox.html +2 -2
- package/doc/functions/ipc.startLogReplay.html +2 -2
- package/doc/functions/ipc.startMeasurement.html +2 -2
- package/doc/functions/ipc.startPeriodicTransmission.html +2 -2
- package/doc/functions/ipc.stopLogReplay.html +2 -2
- package/doc/functions/ipc.stopMeasurement.html +2 -2
- package/doc/functions/ipc.stopPeriodicTransmission.html +2 -2
- package/doc/functions/ipc.updateDataProcessor.html +2 -2
- package/doc/functions/ipc.updateLinMessage.html +2 -2
- package/doc/functions/ipc.updatePeriodicTransmission.html +2 -2
- package/doc/functions/ipc.updateSource.html +2 -2
- package/doc/functions/ipc.updateTarget.html +2 -2
- package/doc/functions/models.accessModeFromJSON.html +1 -1
- package/doc/functions/models.accessModeToJSON.html +1 -1
- package/doc/functions/models.appEventFromJSON.html +1 -1
- package/doc/functions/models.appEventToJSON.html +1 -1
- package/doc/functions/models.canChannelCapFromJSON.html +1 -1
- package/doc/functions/models.canChannelCapToJSON.html +1 -1
- package/doc/functions/models.canFrameFlagFromJSON.html +1 -1
- package/doc/functions/models.canFrameFlagToJSON.html +1 -1
- package/doc/functions/models.canMessageFilterTypeFromJSON.html +1 -1
- package/doc/functions/models.canMessageFilterTypeToJSON.html +1 -1
- package/doc/functions/models.canModeFromJSON.html +1 -1
- package/doc/functions/models.canModeToJSON.html +1 -1
- package/doc/functions/models.createElectronApiFake.html +2 -2
- package/doc/functions/models.decimalCharFromJSON.html +1 -1
- package/doc/functions/models.decimalCharToJSON.html +1 -1
- package/doc/functions/models.decimalToFixed.html +1 -1
- package/doc/functions/models.decimalToHex.html +1 -1
- package/doc/functions/models.deviceEventFromJSON.html +1 -1
- package/doc/functions/models.deviceEventToJSON.html +1 -1
- package/doc/functions/models.fileConflictActionFromJSON.html +1 -1
- package/doc/functions/models.fileConflictActionToJSON.html +1 -1
- package/doc/functions/models.fileTypeFromJSON.html +1 -1
- package/doc/functions/models.fileTypeToJSON.html +1 -1
- package/doc/functions/models.linFrameFlagFromJSON.html +1 -1
- package/doc/functions/models.linFrameFlagToJSON.html +1 -1
- package/doc/functions/models.logFileFormatFromJSON.html +1 -1
- package/doc/functions/models.logFileFormatToJSON.html +1 -1
- package/doc/functions/models.logLevelFromJSON.html +1 -1
- package/doc/functions/models.logLevelToJSON.html +1 -1
- package/doc/functions/models.logReplayStateFromJSON.html +1 -1
- package/doc/functions/models.logReplayStateToJSON.html +1 -1
- package/doc/functions/models.loggerStateFromJSON.html +1 -1
- package/doc/functions/models.loggerStateToJSON.html +1 -1
- package/doc/functions/models.longToNumber.html +1 -1
- package/doc/functions/models.measurementEventFromJSON.html +1 -1
- package/doc/functions/models.measurementEventToJSON.html +1 -1
- package/doc/functions/models.protocolsFromJSON.html +1 -1
- package/doc/functions/models.protocolsToJSON.html +1 -1
- package/doc/functions/models.separatorFromJSON.html +1 -1
- package/doc/functions/models.separatorToJSON.html +1 -1
- package/doc/functions/models.signalEncodingFromJSON.html +1 -1
- package/doc/functions/models.signalEncodingToJSON.html +1 -1
- package/doc/functions/models.signalTypeFromJSON.html +1 -1
- package/doc/functions/models.signalTypeToJSON.html +1 -1
- package/doc/functions/models.signalValueTriggerOperatorFromJSON.html +1 -1
- package/doc/functions/models.signalValueTriggerOperatorToJSON.html +1 -1
- package/doc/functions/models.statusLevelFromJSON.html +1 -1
- package/doc/functions/models.statusLevelToJSON.html +1 -1
- package/doc/functions/models.timeReferenceFromJSON.html +1 -1
- package/doc/functions/models.timeReferenceToJSON.html +1 -1
- package/doc/functions/models.triggerOperatorFromJSON.html +1 -1
- package/doc/functions/models.triggerOperatorToJSON.html +1 -1
- package/doc/hierarchy.html +1 -1
- package/doc/index.html +2 -2
- package/doc/interfaces/controls.ButtonGroupProps.html +2 -2
- package/doc/interfaces/controls.ButtonProps.html +2 -2
- package/doc/interfaces/controls.CanChannelSelectControlProps.html +2 -2
- package/doc/interfaces/controls.CanIdentifierControlProps.html +2 -2
- package/doc/interfaces/controls.CanIdentifierFrameControlProps.html +2 -2
- package/doc/interfaces/controls.CanIdentifierGeneratorControlProps.html +2 -2
- package/doc/interfaces/controls.CanIdentifierGeneratorSettingsControlProps.html +2 -2
- package/doc/interfaces/controls.CheckboxControlProps.html +2 -2
- package/doc/interfaces/controls.ColumnItem.html +2 -2
- package/doc/interfaces/controls.ColumnItemControlProps.html +2 -2
- package/doc/interfaces/controls.ContextMenuProps.html +2 -2
- package/doc/interfaces/controls.DropdownButtonChildrenProps.html +2 -2
- package/doc/interfaces/controls.DropdownButtonProps.html +2 -2
- package/doc/interfaces/controls.DropdownButtonTextItemsProps.html +2 -2
- package/doc/interfaces/controls.DropdownPanelProps.html +2 -2
- package/doc/interfaces/controls.FormControlRowProps.html +2 -2
- package/doc/interfaces/controls.ILocalizedStrings.html +2 -2
- package/doc/interfaces/controls.IMessageDatabase.html +2 -2
- package/doc/interfaces/controls.InlineEditorProps.html +2 -2
- package/doc/interfaces/controls.LabelProps.html +2 -2
- package/doc/interfaces/controls.LinChannelSelectControlProps.html +2 -2
- package/doc/interfaces/controls.LinIdentifierControlProps.html +2 -2
- package/doc/interfaces/controls.LinIdentifierFrameControlProps.html +2 -2
- package/doc/interfaces/controls.LinIdentifierGeneratorControlProps.html +2 -2
- package/doc/interfaces/controls.LinIdentifierGeneratorSettingsControlProps.html +2 -2
- package/doc/interfaces/controls.NumberRangeControlProps.html +2 -2
- package/doc/interfaces/controls.RadioControlProps.html +2 -2
- package/doc/interfaces/controls.RadioGroupControlProps.html +2 -2
- package/doc/interfaces/controls.SectionControlProps.html +2 -2
- package/doc/interfaces/controls.SelectControlProps.html +2 -2
- package/doc/interfaces/controls.SelectMessageDialogProps.html +2 -2
- package/doc/interfaces/controls.SelectSignalDialogProps.html +2 -2
- package/doc/interfaces/controls.TableColumn.html +2 -2
- package/doc/interfaces/controls.TableControlProps.html +2 -2
- package/doc/interfaces/controls.TextControlProps.html +2 -2
- package/doc/interfaces/controls.ToggleButtonGroupProps.html +2 -2
- package/doc/interfaces/controls.ToggleButtonProps.html +2 -2
- package/doc/interfaces/controls.ToolbarControlProps.html +2 -2
- package/doc/interfaces/controls.ValidateableTextControlProps.html +2 -2
- package/doc/interfaces/controls.toolbarItem.html +2 -2
- package/doc/interfaces/ipc.ILogger.html +2 -2
- package/doc/interfaces/models.AboutInformation.html +2 -2
- package/doc/interfaces/models.ActivateLicenseRequest.html +2 -2
- package/doc/interfaces/models.AddAllConnectedCanChannelsRequest.html +2 -2
- package/doc/interfaces/models.AddAllConnectedLinChannelsRequest.html +2 -2
- package/doc/interfaces/models.AddOrUpdateDataProcessorRequest.html +2 -2
- package/doc/interfaces/models.AddOrUpdateSourceRequest.html +2 -2
- package/doc/interfaces/models.AddOrUpdateTargetRequest.html +2 -2
- package/doc/interfaces/models.ApiPreferences.html +2 -2
- package/doc/interfaces/models.AppEventArgs.html +2 -2
- package/doc/interfaces/models.BaseNodeProperties.html +2 -2
- package/doc/interfaces/models.BusStatus.html +2 -2
- package/doc/interfaces/models.CanBusParamLimits.html +2 -2
- package/doc/interfaces/models.CanBusParams.html +2 -2
- package/doc/interfaces/models.CanBusSpeedInfo.html +2 -2
- package/doc/interfaces/models.CanChannelCapacity.html +2 -2
- package/doc/interfaces/models.CanChannelConfiguration.html +2 -2
- package/doc/interfaces/models.CanFDBusSpeedCombination.html +2 -2
- package/doc/interfaces/models.CanFDBusSpeedInfo.html +2 -2
- package/doc/interfaces/models.CanFrameFlags.html +2 -2
- package/doc/interfaces/models.CanMessageFilterSettings.html +2 -2
- package/doc/interfaces/models.Channel.html +2 -2
- package/doc/interfaces/models.ChannelSettings.html +2 -2
- package/doc/interfaces/models.ClearLinMessageRequest.html +2 -2
- package/doc/interfaces/models.ConnectNodesRequest.html +2 -2
- package/doc/interfaces/models.DataProcessingStatus.html +2 -2
- package/doc/interfaces/models.DataProcessorNodeProperties.html +2 -2
- package/doc/interfaces/models.DatabaseFiles.html +2 -2
- package/doc/interfaces/models.DatabasesSettings.html +2 -2
- package/doc/interfaces/models.Device.html +2 -2
- package/doc/interfaces/models.DeviceEventArgs.html +2 -2
- package/doc/interfaces/models.Devices.html +2 -2
- package/doc/interfaces/models.DisconnectNodesRequest.html +2 -2
- package/doc/interfaces/models.Empty.html +2 -2
- package/doc/interfaces/models.ErrorStatus.html +2 -2
- package/doc/interfaces/models.Frame.html +2 -2
- package/doc/interfaces/models.FrameDefinition.html +2 -2
- package/doc/interfaces/models.FrameDefinitions.html +2 -2
- package/doc/interfaces/models.FramePropertyValue.html +2 -2
- package/doc/interfaces/models.FrameReceivedTrigger.html +2 -2
- package/doc/interfaces/models.Frame_PropertiesEntry.html +2 -2
- package/doc/interfaces/models.Frames.html +2 -2
- package/doc/interfaces/models.GetCanChannelBusSpeedsRequest.html +2 -2
- package/doc/interfaces/models.GetCanChannelBusSpeedsResponse.html +2 -2
- package/doc/interfaces/models.GetCanFdBusSpeedsRequest.html +2 -2
- package/doc/interfaces/models.GetCanFdBusSpeedsResponse.html +2 -2
- package/doc/interfaces/models.GetChannelsFromLogFileRequest.html +2 -2
- package/doc/interfaces/models.GetChannelsFromLogFileResponse.html +2 -2
- package/doc/interfaces/models.GetClassicCanBusSpeedsRequest.html +2 -2
- package/doc/interfaces/models.GetClassicCanBusSpeedsResponse.html +2 -2
- package/doc/interfaces/models.GetDataProcessorResponse.html +2 -2
- package/doc/interfaces/models.GetDevicesRequest.html +2 -2
- package/doc/interfaces/models.GetDevicesResponse.html +2 -2
- package/doc/interfaces/models.GetFrameDefinitionsFromDatabaseFilesRequest.html +2 -2
- package/doc/interfaces/models.GetLicensesResponse.html +2 -2
- package/doc/interfaces/models.GetLogFileFormatsRequest.html +2 -2
- package/doc/interfaces/models.GetLogFileFormatsResponse.html +2 -2
- package/doc/interfaces/models.GetLogLevelResponse.html +2 -2
- package/doc/interfaces/models.GetScheduleTablesFromDatabaseFilesRequest.html +2 -2
- package/doc/interfaces/models.GetScheduleTablesFromDatabaseFilesResponse.html +2 -2
- package/doc/interfaces/models.GetServiceExtensionInfoRequest.html +2 -2
- package/doc/interfaces/models.GetServiceExtensionInfoResponse.html +2 -2
- package/doc/interfaces/models.GetSignalDataFromMessageDataRequest.html +2 -2
- package/doc/interfaces/models.GetSignalDataFromMessageDataResponse.html +2 -2
- package/doc/interfaces/models.GetSourceResponse.html +2 -2
- package/doc/interfaces/models.GetTargetResponse.html +2 -2
- package/doc/interfaces/models.ILogFileFormat.html +2 -2
- package/doc/interfaces/models.IProject.html +2 -2
- package/doc/interfaces/models.IUserSettings.html +2 -2
- package/doc/interfaces/models.IWorkspaceComponentPaneData.html +2 -2
- package/doc/interfaces/models.IWorkspaceContainerPaneData.html +2 -2
- package/doc/interfaces/models.IWorkspaceData.html +2 -2
- package/doc/interfaces/models.IWorkspacePaneData.html +2 -2
- package/doc/interfaces/models.IdentifierRequest.html +2 -2
- package/doc/interfaces/models.IdentifiersRequest.html +2 -2
- package/doc/interfaces/models.InstallServiceExtensionRequest.html +2 -2
- package/doc/interfaces/models.InterpreterSettings.html +2 -2
- package/doc/interfaces/models.J1939InterpreterSettings.html +2 -2
- package/doc/interfaces/models.LicenseInformation.html +2 -2
- package/doc/interfaces/models.Licenses.html +2 -2
- package/doc/interfaces/models.LinChannelConfiguration.html +2 -2
- package/doc/interfaces/models.LinFrameFlags.html +2 -2
- package/doc/interfaces/models.LogMessage.html +2 -2
- package/doc/interfaces/models.LogMessages.html +2 -2
- package/doc/interfaces/models.LogReplaySettings.html +2 -2
- package/doc/interfaces/models.LogReplaySettings_ChannelIdentifiersEntry.html +2 -2
- package/doc/interfaces/models.LogReplayStatus.html +2 -2
- package/doc/interfaces/models.LoggerStatus.html +2 -2
- package/doc/interfaces/models.MeasurementEventArgs.html +2 -2
- package/doc/interfaces/models.MeasurementSetup.html +2 -2
- package/doc/interfaces/models.MessageLoggerSettings.html +2 -2
- package/doc/interfaces/models.NodeStatus.html +2 -2
- package/doc/interfaces/models.NodeStatuses.html +2 -2
- package/doc/interfaces/models.OnlineStatus.html +2 -2
- package/doc/interfaces/models.PeriodicTransmissionSettings.html +2 -2
- package/doc/interfaces/models.RequestLinMessageRequest.html +2 -2
- package/doc/interfaces/models.ScheduleTable.html +2 -2
- package/doc/interfaces/models.ScheduleTableEntry.html +2 -2
- package/doc/interfaces/models.SendLinWakeupFrameRequest.html +2 -2
- package/doc/interfaces/models.SendMessageRequest.html +2 -2
- package/doc/interfaces/models.ServiceExtensionSettings.html +2 -2
- package/doc/interfaces/models.SetLogLevelRequest.html +2 -2
- package/doc/interfaces/models.SetMeasurementSetupRequest.html +2 -2
- package/doc/interfaces/models.SetSignalDataToMessageDataRequest.html +2 -2
- package/doc/interfaces/models.SetSignalDataToMessageDataResponse.html +2 -2
- package/doc/interfaces/models.SignalDefinition.html +3 -3
- package/doc/interfaces/models.SignalDefinition_EnumValuesEntry.html +2 -2
- package/doc/interfaces/models.SignalDefinitions.html +2 -2
- package/doc/interfaces/models.SignalFilterSettings.html +2 -2
- package/doc/interfaces/models.SignalLoggerSettings.html +2 -2
- package/doc/interfaces/models.SignalValue.html +3 -3
- package/doc/interfaces/models.SignalValueTrigger.html +2 -2
- package/doc/interfaces/models.SourceNodeProperties.html +2 -2
- package/doc/interfaces/models.StartPeriodicTransmissionRequest.html +2 -2
- package/doc/interfaces/models.StartPeriodicTransmissionResponse.html +2 -2
- package/doc/interfaces/models.TargetNodeProperties.html +2 -2
- package/doc/interfaces/models.TriggerSettings.html +2 -2
- package/doc/interfaces/models.UninstallServiceExtensionRequest.html +2 -2
- package/doc/interfaces/models.UpdateLinMessageRequest.html +2 -2
- package/doc/interfaces/models.UpdatePeriodicTransmissionRequest.html +2 -2
- package/doc/interfaces/models.WriteFrame.html +2 -2
- package/doc/modules/controls.html +2 -2
- package/doc/modules/hooks.html +2 -2
- package/doc/modules/icons.html +2 -2
- package/doc/modules/ipc.html +2 -2
- package/doc/modules/models.html +2 -2
- package/doc/modules.html +1 -1
- package/doc/types/controls.ContextMenuOption.html +2 -2
- package/doc/types/controls.SelectOption.html +2 -2
- package/doc/types/controls.StringsMap.html +2 -2
- package/doc/types/controls.canIdentifierGeneratorType.html +2 -2
- package/doc/types/controls.canIdentifierType.html +2 -2
- package/doc/types/controls.linIdentifierGeneratorType.html +2 -2
- package/doc/types/models.IReadOnlyDataBuffer.html +1 -1
- package/doc/types/models.themes.html +1 -1
- package/doc/variables/models.AboutInformation-1.html +1 -1
- package/doc/variables/models.ActivateLicenseRequest-1.html +1 -1
- package/doc/variables/models.AddAllConnectedCanChannelsRequest-1.html +1 -1
- package/doc/variables/models.AddAllConnectedLinChannelsRequest-1.html +1 -1
- package/doc/variables/models.AddOrUpdateDataProcessorRequest-1.html +1 -1
- package/doc/variables/models.AddOrUpdateSourceRequest-1.html +1 -1
- package/doc/variables/models.AddOrUpdateTargetRequest-1.html +1 -1
- package/doc/variables/models.ApiPreferences-1.html +1 -1
- package/doc/variables/models.AppEventArgs-1.html +1 -1
- package/doc/variables/models.BaseNodeProperties-1.html +1 -1
- package/doc/variables/models.BusStatus-1.html +1 -1
- package/doc/variables/models.CanBusParamLimits-1.html +1 -1
- package/doc/variables/models.CanBusParams-1.html +1 -1
- package/doc/variables/models.CanBusSpeedInfo-1.html +1 -1
- package/doc/variables/models.CanChannelCapacity-1.html +1 -1
- package/doc/variables/models.CanChannelConfiguration-1.html +1 -1
- package/doc/variables/models.CanFDBusSpeedCombination-1.html +1 -1
- package/doc/variables/models.CanFDBusSpeedInfo-1.html +1 -1
- package/doc/variables/models.CanFrameFlags-1.html +1 -1
- package/doc/variables/models.CanMessageFilterSettings-1.html +1 -1
- package/doc/variables/models.Channel-1.html +1 -1
- package/doc/variables/models.ChannelSettings-1.html +1 -1
- package/doc/variables/models.ClearLinMessageRequest-1.html +1 -1
- package/doc/variables/models.ConnectNodesRequest-1.html +1 -1
- package/doc/variables/models.DataProcessingStatus-1.html +1 -1
- package/doc/variables/models.DataProcessorNodeProperties-1.html +1 -1
- package/doc/variables/models.DatabaseFiles-1.html +1 -1
- package/doc/variables/models.DatabasesSettings-1.html +1 -1
- package/doc/variables/models.Device-1.html +1 -1
- package/doc/variables/models.DeviceEventArgs-1.html +1 -1
- package/doc/variables/models.Devices-1.html +1 -1
- package/doc/variables/models.DisconnectNodesRequest-1.html +1 -1
- package/doc/variables/models.Empty-1.html +1 -1
- package/doc/variables/models.ErrorStatus-1.html +1 -1
- package/doc/variables/models.Frame-1.html +1 -1
- package/doc/variables/models.FrameDefinition-1.html +1 -1
- package/doc/variables/models.FrameDefinitions-1.html +1 -1
- package/doc/variables/models.FramePropertyValue-1.html +1 -1
- package/doc/variables/models.FrameReceivedTrigger-1.html +1 -1
- package/doc/variables/models.Frame_PropertiesEntry-1.html +1 -1
- package/doc/variables/models.Frames-1.html +1 -1
- package/doc/variables/models.GetCanChannelBusSpeedsRequest-1.html +1 -1
- package/doc/variables/models.GetCanChannelBusSpeedsResponse-1.html +1 -1
- package/doc/variables/models.GetCanFdBusSpeedsRequest-1.html +1 -1
- package/doc/variables/models.GetCanFdBusSpeedsResponse-1.html +1 -1
- package/doc/variables/models.GetChannelsFromLogFileRequest-1.html +1 -1
- package/doc/variables/models.GetChannelsFromLogFileResponse-1.html +1 -1
- package/doc/variables/models.GetClassicCanBusSpeedsRequest-1.html +1 -1
- package/doc/variables/models.GetClassicCanBusSpeedsResponse-1.html +1 -1
- package/doc/variables/models.GetDataProcessorResponse-1.html +1 -1
- package/doc/variables/models.GetDevicesRequest-1.html +1 -1
- package/doc/variables/models.GetDevicesResponse-1.html +1 -1
- package/doc/variables/models.GetFrameDefinitionsFromDatabaseFilesRequest-1.html +1 -1
- package/doc/variables/models.GetLicensesResponse-1.html +1 -1
- package/doc/variables/models.GetLogFileFormatsRequest-1.html +1 -1
- package/doc/variables/models.GetLogFileFormatsResponse-1.html +1 -1
- package/doc/variables/models.GetLogLevelResponse-1.html +1 -1
- package/doc/variables/models.GetScheduleTablesFromDatabaseFilesRequest-1.html +1 -1
- package/doc/variables/models.GetScheduleTablesFromDatabaseFilesResponse-1.html +1 -1
- package/doc/variables/models.GetServiceExtensionInfoRequest-1.html +1 -1
- package/doc/variables/models.GetServiceExtensionInfoResponse-1.html +1 -1
- package/doc/variables/models.GetSignalDataFromMessageDataRequest-1.html +1 -1
- package/doc/variables/models.GetSignalDataFromMessageDataResponse-1.html +1 -1
- package/doc/variables/models.GetSourceResponse-1.html +1 -1
- package/doc/variables/models.GetTargetResponse-1.html +1 -1
- package/doc/variables/models.IdentifierRequest-1.html +1 -1
- package/doc/variables/models.IdentifiersRequest-1.html +1 -1
- package/doc/variables/models.InstallServiceExtensionRequest-1.html +1 -1
- package/doc/variables/models.InterpreterSettings-1.html +1 -1
- package/doc/variables/models.J1939InterpreterSettings-1.html +1 -1
- package/doc/variables/models.LicenseInformation-1.html +1 -1
- package/doc/variables/models.Licenses-1.html +1 -1
- package/doc/variables/models.LinChannelConfiguration-1.html +1 -1
- package/doc/variables/models.LinFrameFlags-1.html +1 -1
- package/doc/variables/models.LogMessage-1.html +1 -1
- package/doc/variables/models.LogMessages-1.html +1 -1
- package/doc/variables/models.LogReplaySettings-1.html +1 -1
- package/doc/variables/models.LogReplaySettings_ChannelIdentifiersEntry-1.html +1 -1
- package/doc/variables/models.LogReplayStatus-1.html +1 -1
- package/doc/variables/models.LoggerStatus-1.html +1 -1
- package/doc/variables/models.MeasurementEventArgs-1.html +1 -1
- package/doc/variables/models.MeasurementSetup-1.html +1 -1
- package/doc/variables/models.MessageLoggerSettings-1.html +1 -1
- package/doc/variables/models.NodeStatus-1.html +1 -1
- package/doc/variables/models.NodeStatuses-1.html +1 -1
- package/doc/variables/models.OnlineStatus-1.html +1 -1
- package/doc/variables/models.PeriodicTransmissionSettings-1.html +1 -1
- package/doc/variables/models.RequestLinMessageRequest-1.html +1 -1
- package/doc/variables/models.ScheduleTable-1.html +1 -1
- package/doc/variables/models.ScheduleTableEntry-1.html +1 -1
- package/doc/variables/models.SendLinWakeupFrameRequest-1.html +1 -1
- package/doc/variables/models.SendMessageRequest-1.html +1 -1
- package/doc/variables/models.ServiceExtensionSettings-1.html +1 -1
- package/doc/variables/models.SetLogLevelRequest-1.html +1 -1
- package/doc/variables/models.SetMeasurementSetupRequest-1.html +1 -1
- package/doc/variables/models.SetSignalDataToMessageDataRequest-1.html +1 -1
- package/doc/variables/models.SetSignalDataToMessageDataResponse-1.html +1 -1
- package/doc/variables/models.SignalDefinition-1.html +1 -1
- package/doc/variables/models.SignalDefinition_EnumValuesEntry-1.html +1 -1
- package/doc/variables/models.SignalDefinitions-1.html +1 -1
- package/doc/variables/models.SignalFilterSettings-1.html +1 -1
- package/doc/variables/models.SignalLoggerSettings-1.html +1 -1
- package/doc/variables/models.SignalValue-1.html +1 -1
- package/doc/variables/models.SignalValueTrigger-1.html +1 -1
- package/doc/variables/models.SourceNodeProperties-1.html +1 -1
- package/doc/variables/models.StartPeriodicTransmissionRequest-1.html +1 -1
- package/doc/variables/models.StartPeriodicTransmissionResponse-1.html +1 -1
- package/doc/variables/models.TargetNodeProperties-1.html +1 -1
- package/doc/variables/models.TriggerSettings-1.html +1 -1
- package/doc/variables/models.UninstallServiceExtensionRequest-1.html +1 -1
- package/doc/variables/models.UpdateLinMessageRequest-1.html +1 -1
- package/doc/variables/models.UpdatePeriodicTransmissionRequest-1.html +1 -1
- package/doc/variables/models.WriteFrame-1.html +1 -1
- package/doc/variables/models.defaultUserSettings.html +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function yi(){let e=0,n=0;for(let a=0;a<28;a+=7){let t=this.buf[this.pos++];if(e|=(t&127)<<a,!(t&128))return this.assertBounds(),[e,n]}let i=this.buf[this.pos++];if(e|=(i&15)<<28,n=(i&112)>>4,!(i&128))return this.assertBounds(),[e,n];for(let a=3;a<=31;a+=7){let t=this.buf[this.pos++];if(n|=(t&127)<<a,!(t&128))return this.assertBounds(),[e,n]}throw new Error("invalid varint")}function de(e,n,i){for(let r=0;r<28;r=r+7){const o=e>>>r,N=!(!(o>>>7)&&n==0),O=(N?o|128:o)&255;if(i.push(O),!N)return}const a=e>>>28&15|(n&7)<<4,t=!!(n>>3);if(i.push((t?a|128:a)&255),!!t){for(let r=3;r<31;r=r+7){const o=n>>>r,N=!!(o>>>7),O=(N?o|128:o)&255;if(i.push(O),!N)return}i.push(n>>>31&1)}}const ae=4294967296;function Ce(e){const n=e[0]==="-";n&&(e=e.slice(1));const i=1e6;let a=0,t=0;function r(o,N){const O=Number(e.slice(o,N));t*=i,a=a*i+O,a>=ae&&(t=t+(a/ae|0),a=a%ae)}return r(-24,-18),r(-18,-12),r(-12,-6),r(-6),n?yn(a,t):ce(a,t)}function vi(e,n){let i=ce(e,n);const a=i.hi&2147483648;a&&(i=yn(i.lo,i.hi));const t=Bn(i.lo,i.hi);return a?"-"+t:t}function Bn(e,n){if({lo:e,hi:n}=Vi(e,n),n<=2097151)return String(ae*n+e);const i=e&16777215,a=(e>>>24|n<<8)&16777215,t=n>>16&65535;let r=i+a*6777216+t*6710656,o=a+t*8147497,N=t*2;const O=1e7;return r>=O&&(o+=Math.floor(r/O),r%=O),o>=O&&(N+=Math.floor(o/O),o%=O),N.toString()+Fe(o)+Fe(r)}function Vi(e,n){return{lo:e>>>0,hi:n>>>0}}function ce(e,n){return{lo:e|0,hi:n|0}}function yn(e,n){return n=~n,e?e=~e+1:n+=1,ce(e,n)}const Fe=e=>{const n=String(e);return"0000000".slice(n.length)+n};function Me(e,n){if(e>=0){for(;e>127;)n.push(e&127|128),e=e>>>7;n.push(e)}else{for(let i=0;i<9;i++)n.push(e&127|128),e=e>>7;n.push(1)}}function Ui(){let e=this.buf[this.pos++],n=e&127;if(!(e&128))return this.assertBounds(),n;if(e=this.buf[this.pos++],n|=(e&127)<<7,!(e&128))return this.assertBounds(),n;if(e=this.buf[this.pos++],n|=(e&127)<<14,!(e&128))return this.assertBounds(),n;if(e=this.buf[this.pos++],n|=(e&127)<<21,!(e&128))return this.assertBounds(),n;e=this.buf[this.pos++],n|=(e&15)<<28;for(let i=5;e&128&&i<10;i++)e=this.buf[this.pos++];if(e&128)throw new Error("invalid varint");return this.assertBounds(),n>>>0}const M=Ji();function Ji(){const e=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof e.getBigInt64=="function"&&typeof e.getBigUint64=="function"&&typeof e.setBigInt64=="function"&&typeof e.setBigUint64=="function"&&(typeof process!="object"||typeof process.env!="object"||process.env.BUF_BIGINT_DISABLE!=="1")){const i=BigInt("-9223372036854775808"),a=BigInt("9223372036854775807"),t=BigInt("0"),r=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(o){const N=typeof o=="bigint"?o:BigInt(o);if(N>a||N<i)throw new Error(`invalid int64: ${o}`);return N},uParse(o){const N=typeof o=="bigint"?o:BigInt(o);if(N>r||N<t)throw new Error(`invalid uint64: ${o}`);return N},enc(o){return e.setBigInt64(0,this.parse(o),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},uEnc(o){return e.setBigInt64(0,this.uParse(o),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},dec(o,N){return e.setInt32(0,o,!0),e.setInt32(4,N,!0),e.getBigInt64(0,!0)},uDec(o,N){return e.setInt32(0,o,!0),e.setInt32(4,N,!0),e.getBigUint64(0,!0)}}}return{zero:"0",supported:!1,parse(i){return typeof i!="string"&&(i=i.toString()),Le(i),i},uParse(i){return typeof i!="string"&&(i=i.toString()),Pe(i),i},enc(i){return typeof i!="string"&&(i=i.toString()),Le(i),Ce(i)},uEnc(i){return typeof i!="string"&&(i=i.toString()),Pe(i),Ce(i)},dec(i,a){return vi(i,a)},uDec(i,a){return Bn(i,a)}}}function Le(e){if(!/^-?[0-9]+$/.test(e))throw new Error("invalid int64: "+e)}function Pe(e){if(!/^[0-9]+$/.test(e))throw new Error("invalid uint64: "+e)}const fe=Symbol.for("@bufbuild/protobuf/text-encoding");function vn(){if(globalThis[fe]==null){const e=new globalThis.TextEncoder,n=new globalThis.TextDecoder;globalThis[fe]={encodeUtf8(i){return e.encode(i)},decodeUtf8(i){return n.decode(i)},checkUtf8(i){try{return encodeURIComponent(i),!0}catch{return!1}}}}return globalThis[fe]}var P;(function(e){e[e.Varint=0]="Varint",e[e.Bit64=1]="Bit64",e[e.LengthDelimited=2]="LengthDelimited",e[e.StartGroup=3]="StartGroup",e[e.EndGroup=4]="EndGroup",e[e.Bit32=5]="Bit32"})(P||(P={}));const xi=34028234663852886e22,wi=-34028234663852886e22,Hi=4294967295,zi=2147483647,Qi=-2147483648;class d{constructor(n=vn().encodeUtf8){this.encodeUtf8=n,this.stack=[],this.chunks=[],this.buf=[]}finish(){this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]);let n=0;for(let t=0;t<this.chunks.length;t++)n+=this.chunks[t].length;let i=new Uint8Array(n),a=0;for(let t=0;t<this.chunks.length;t++)i.set(this.chunks[t],a),a+=this.chunks[t].length;return this.chunks=[],i}fork(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this}join(){let n=this.finish(),i=this.stack.pop();if(!i)throw new Error("invalid state, fork stack empty");return this.chunks=i.chunks,this.buf=i.buf,this.uint32(n.byteLength),this.raw(n)}tag(n,i){return this.uint32((n<<3|i)>>>0)}raw(n){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(n),this}uint32(n){for(ge(n);n>127;)this.buf.push(n&127|128),n=n>>>7;return this.buf.push(n),this}int32(n){return le(n),Me(n,this.buf),this}bool(n){return this.buf.push(n?1:0),this}bytes(n){return this.uint32(n.byteLength),this.raw(n)}string(n){let i=this.encodeUtf8(n);return this.uint32(i.byteLength),this.raw(i)}float(n){Xi(n);let i=new Uint8Array(4);return new DataView(i.buffer).setFloat32(0,n,!0),this.raw(i)}double(n){let i=new Uint8Array(8);return new DataView(i.buffer).setFloat64(0,n,!0),this.raw(i)}fixed32(n){ge(n);let i=new Uint8Array(4);return new DataView(i.buffer).setUint32(0,n,!0),this.raw(i)}sfixed32(n){le(n);let i=new Uint8Array(4);return new DataView(i.buffer).setInt32(0,n,!0),this.raw(i)}sint32(n){return le(n),n=(n<<1^n>>31)>>>0,Me(n,this.buf),this}sfixed64(n){let i=new Uint8Array(8),a=new DataView(i.buffer),t=M.enc(n);return a.setInt32(0,t.lo,!0),a.setInt32(4,t.hi,!0),this.raw(i)}fixed64(n){let i=new Uint8Array(8),a=new DataView(i.buffer),t=M.uEnc(n);return a.setInt32(0,t.lo,!0),a.setInt32(4,t.hi,!0),this.raw(i)}int64(n){let i=M.enc(n);return de(i.lo,i.hi,this.buf),this}sint64(n){let i=M.enc(n),a=i.hi>>31,t=i.lo<<1^a,r=(i.hi<<1|i.lo>>>31)^a;return de(t,r,this.buf),this}uint64(n){let i=M.uEnc(n);return de(i.lo,i.hi,this.buf),this}}class s{constructor(n,i=vn().decodeUtf8){this.decodeUtf8=i,this.varint64=yi,this.uint32=Ui,this.buf=n,this.len=n.length,this.pos=0,this.view=new DataView(n.buffer,n.byteOffset,n.byteLength)}tag(){let n=this.uint32(),i=n>>>3,a=n&7;if(i<=0||a<0||a>5)throw new Error("illegal tag: field no "+i+" wire type "+a);return[i,a]}skip(n,i){let a=this.pos;switch(n){case P.Varint:for(;this.buf[this.pos++]&128;);break;case P.Bit64:this.pos+=4;case P.Bit32:this.pos+=4;break;case P.LengthDelimited:let t=this.uint32();this.pos+=t;break;case P.StartGroup:for(;;){const[r,o]=this.tag();if(o===P.EndGroup){if(i!==void 0&&r!==i)throw new Error("invalid end group tag");break}this.skip(o,r)}break;default:throw new Error("cant skip wire type "+n)}return this.assertBounds(),this.buf.subarray(a,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let n=this.uint32();return n>>>1^-(n&1)}int64(){return M.dec(...this.varint64())}uint64(){return M.uDec(...this.varint64())}sint64(){let[n,i]=this.varint64(),a=-(n&1);return n=(n>>>1|(i&1)<<31)^a,i=i>>>1^a,M.dec(n,i)}bool(){let[n,i]=this.varint64();return n!==0||i!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return M.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return M.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let n=this.uint32(),i=this.pos;return this.pos+=n,this.assertBounds(),this.buf.subarray(i,i+n)}string(){return this.decodeUtf8(this.bytes())}}function le(e){if(typeof e=="string")e=Number(e);else if(typeof e!="number")throw new Error("invalid int32: "+typeof e);if(!Number.isInteger(e)||e>zi||e<Qi)throw new Error("invalid int32: "+e)}function ge(e){if(typeof e=="string")e=Number(e);else if(typeof e!="number")throw new Error("invalid uint32: "+typeof e);if(!Number.isInteger(e)||e>Hi||e<0)throw new Error("invalid uint32: "+e)}function Xi(e){if(typeof e=="string"){const n=e;if(e=Number(e),isNaN(e)&&n!=="NaN")throw new Error("invalid float32: "+n)}else if(typeof e!="number")throw new Error("invalid float32: "+typeof e);if(Number.isFinite(e)&&(e>xi||e<wi))throw new Error("invalid float32: "+e)}function be(){return{version:"",language:"",useHexNumericBase:!1,username:""}}const E={encode(e,n=new d){return e.version!==""&&n.uint32(10).string(e.version),e.language!==""&&n.uint32(18).string(e.language),e.useHexNumericBase!==!1&&n.uint32(24).bool(e.useHexNumericBase),e.username!==""&&n.uint32(34).string(e.username),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=be();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.version=i.string();continue}case 2:{if(r!==18)break;t.language=i.string();continue}case 3:{if(r!==24)break;t.useHexNumericBase=i.bool();continue}case 4:{if(r!==34)break;t.username=i.string();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{version:te(e.version)?globalThis.String(e.version):"",language:te(e.language)?globalThis.String(e.language):"",useHexNumericBase:te(e.useHexNumericBase)?globalThis.Boolean(e.useHexNumericBase):!1,username:te(e.username)?globalThis.String(e.username):""}},toJSON(e){const n={};return e.version!==""&&(n.version=e.version),e.language!==""&&(n.language=e.language),e.useHexNumericBase!==!1&&(n.useHexNumericBase=e.useHexNumericBase),e.username!==""&&(n.username=e.username),n},create(e){return E.fromPartial(e??{})},fromPartial(e){const n=be();return n.version=e.version??"",n.language=e.language??"",n.useHexNumericBase=e.useHexNumericBase??!1,n.username=e.username??"",n}};function te(e){return e!=null}var Vn=(e=>(e[e.CAN_CHANNEL_CAP_UNSPECIFIED=0]="CAN_CHANNEL_CAP_UNSPECIFIED",e[e.CAN_CHANNEL_CAP_EXTENDED_CAN=1]="CAN_CHANNEL_CAP_EXTENDED_CAN",e[e.CAN_CHANNEL_CAP_BUS_STATISTICS=2]="CAN_CHANNEL_CAP_BUS_STATISTICS",e[e.CAN_CHANNEL_CAP_ERROR_COUNTERS=3]="CAN_CHANNEL_CAP_ERROR_COUNTERS",e[e.CAN_CHANNEL_CAP_GENERATE_ERROR=4]="CAN_CHANNEL_CAP_GENERATE_ERROR",e[e.CAN_CHANNEL_CAP_GENERATE_OVERLOAD=5]="CAN_CHANNEL_CAP_GENERATE_OVERLOAD",e[e.CAN_CHANNEL_CAP_TXREQUEST=6]="CAN_CHANNEL_CAP_TXREQUEST",e[e.CAN_CHANNEL_CAP_TXACKNOWLEDGE=7]="CAN_CHANNEL_CAP_TXACKNOWLEDGE",e[e.CAN_CHANNEL_CAP_VIRTUAL=8]="CAN_CHANNEL_CAP_VIRTUAL",e[e.CAN_CHANNEL_CAP_SIMULATED=9]="CAN_CHANNEL_CAP_SIMULATED",e[e.CAN_CHANNEL_CAP_CAN_FD=10]="CAN_CHANNEL_CAP_CAN_FD",e[e.CAN_CHANNEL_CAP_CAN_FD_NONISO=11]="CAN_CHANNEL_CAP_CAN_FD_NONISO",e[e.CAN_CHANNEL_CAP_SILENT_MODE=12]="CAN_CHANNEL_CAP_SILENT_MODE",e[e.CAN_CHANNEL_CAP_SINGLE_SHOT=13]="CAN_CHANNEL_CAP_SINGLE_SHOT",e[e.CAN_CHANNEL_CAP_LOGGER=14]="CAN_CHANNEL_CAP_LOGGER",e[e.CAN_CHANNEL_CAP_REMOTE_ACCESS=15]="CAN_CHANNEL_CAP_REMOTE_ACCESS",e[e.CAN_CHANNEL_CAP_SCRIPT=16]="CAN_CHANNEL_CAP_SCRIPT",e[e.CAN_CHANNEL_CAP_LIN_HYBRID=17]="CAN_CHANNEL_CAP_LIN_HYBRID",e[e.CAN_CHANNEL_CAP_IO_API=18]="CAN_CHANNEL_CAP_IO_API",e[e.CAN_CHANNEL_CAP_CANTEGRITY=19]="CAN_CHANNEL_CAP_CANTEGRITY",e[e.CAN_CHANNEL_CAP_EX_BUSPARAMS_TQ=20]="CAN_CHANNEL_CAP_EX_BUSPARAMS_TQ",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Vn||{});function Un(e){switch(e){case 0:case"CAN_CHANNEL_CAP_UNSPECIFIED":return 0;case 1:case"CAN_CHANNEL_CAP_EXTENDED_CAN":return 1;case 2:case"CAN_CHANNEL_CAP_BUS_STATISTICS":return 2;case 3:case"CAN_CHANNEL_CAP_ERROR_COUNTERS":return 3;case 4:case"CAN_CHANNEL_CAP_GENERATE_ERROR":return 4;case 5:case"CAN_CHANNEL_CAP_GENERATE_OVERLOAD":return 5;case 6:case"CAN_CHANNEL_CAP_TXREQUEST":return 6;case 7:case"CAN_CHANNEL_CAP_TXACKNOWLEDGE":return 7;case 8:case"CAN_CHANNEL_CAP_VIRTUAL":return 8;case 9:case"CAN_CHANNEL_CAP_SIMULATED":return 9;case 10:case"CAN_CHANNEL_CAP_CAN_FD":return 10;case 11:case"CAN_CHANNEL_CAP_CAN_FD_NONISO":return 11;case 12:case"CAN_CHANNEL_CAP_SILENT_MODE":return 12;case 13:case"CAN_CHANNEL_CAP_SINGLE_SHOT":return 13;case 14:case"CAN_CHANNEL_CAP_LOGGER":return 14;case 15:case"CAN_CHANNEL_CAP_REMOTE_ACCESS":return 15;case 16:case"CAN_CHANNEL_CAP_SCRIPT":return 16;case 17:case"CAN_CHANNEL_CAP_LIN_HYBRID":return 17;case 18:case"CAN_CHANNEL_CAP_IO_API":return 18;case 19:case"CAN_CHANNEL_CAP_CANTEGRITY":return 19;case 20:case"CAN_CHANNEL_CAP_EX_BUSPARAMS_TQ":return 20;case-1:case"UNRECOGNIZED":default:return-1}}function Jn(e){switch(e){case 0:return"CAN_CHANNEL_CAP_UNSPECIFIED";case 1:return"CAN_CHANNEL_CAP_EXTENDED_CAN";case 2:return"CAN_CHANNEL_CAP_BUS_STATISTICS";case 3:return"CAN_CHANNEL_CAP_ERROR_COUNTERS";case 4:return"CAN_CHANNEL_CAP_GENERATE_ERROR";case 5:return"CAN_CHANNEL_CAP_GENERATE_OVERLOAD";case 6:return"CAN_CHANNEL_CAP_TXREQUEST";case 7:return"CAN_CHANNEL_CAP_TXACKNOWLEDGE";case 8:return"CAN_CHANNEL_CAP_VIRTUAL";case 9:return"CAN_CHANNEL_CAP_SIMULATED";case 10:return"CAN_CHANNEL_CAP_CAN_FD";case 11:return"CAN_CHANNEL_CAP_CAN_FD_NONISO";case 12:return"CAN_CHANNEL_CAP_SILENT_MODE";case 13:return"CAN_CHANNEL_CAP_SINGLE_SHOT";case 14:return"CAN_CHANNEL_CAP_LOGGER";case 15:return"CAN_CHANNEL_CAP_REMOTE_ACCESS";case 16:return"CAN_CHANNEL_CAP_SCRIPT";case 17:return"CAN_CHANNEL_CAP_LIN_HYBRID";case 18:return"CAN_CHANNEL_CAP_IO_API";case 19:return"CAN_CHANNEL_CAP_CANTEGRITY";case 20:return"CAN_CHANNEL_CAP_EX_BUSPARAMS_TQ";case-1:default:return"UNRECOGNIZED"}}var xn=(e=>(e[e.PROTOCOLS_UNSPECIFIED=0]="PROTOCOLS_UNSPECIFIED",e[e.PROTOCOLS_CAN=1]="PROTOCOLS_CAN",e[e.PROTOCOLS_LIN=2]="PROTOCOLS_LIN",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(xn||{});function Ne(e){switch(e){case 0:case"PROTOCOLS_UNSPECIFIED":return 0;case 1:case"PROTOCOLS_CAN":return 1;case 2:case"PROTOCOLS_LIN":return 2;case-1:case"UNRECOGNIZED":default:return-1}}function _e(e){switch(e){case 0:return"PROTOCOLS_UNSPECIFIED";case 1:return"PROTOCOLS_CAN";case 2:return"PROTOCOLS_LIN";case-1:default:return"UNRECOGNIZED"}}var wn=(e=>(e[e.DEVICE_EVENT_UNSPECIFIED=0]="DEVICE_EVENT_UNSPECIFIED",e[e.DEVICE_EVENT_DEVICES_CHANGED=1]="DEVICE_EVENT_DEVICES_CHANGED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(wn||{});function Hn(e){switch(e){case 0:case"DEVICE_EVENT_UNSPECIFIED":return 0;case 1:case"DEVICE_EVENT_DEVICES_CHANGED":return 1;case-1:case"UNRECOGNIZED":default:return-1}}function zn(e){switch(e){case 0:return"DEVICE_EVENT_UNSPECIFIED";case 1:return"DEVICE_EVENT_DEVICES_CHANGED";case-1:default:return"UNRECOGNIZED"}}function Ge(){return{tq:0,phase1:0,phase2:0,sjw:0,prop:0,prescaler:0}}const l={encode(e,n=new d){return e.tq!==0&&n.uint32(8).int32(e.tq),e.phase1!==0&&n.uint32(16).int32(e.phase1),e.phase2!==0&&n.uint32(24).int32(e.phase2),e.sjw!==0&&n.uint32(32).int32(e.sjw),e.prop!==0&&n.uint32(40).int32(e.prop),e.prescaler!==0&&n.uint32(48).int32(e.prescaler),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Ge();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.tq=i.int32();continue}case 2:{if(r!==16)break;t.phase1=i.int32();continue}case 3:{if(r!==24)break;t.phase2=i.int32();continue}case 4:{if(r!==32)break;t.sjw=i.int32();continue}case 5:{if(r!==40)break;t.prop=i.int32();continue}case 6:{if(r!==48)break;t.prescaler=i.int32();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{tq:f(e.tq)?globalThis.Number(e.tq):0,phase1:f(e.phase1)?globalThis.Number(e.phase1):0,phase2:f(e.phase2)?globalThis.Number(e.phase2):0,sjw:f(e.sjw)?globalThis.Number(e.sjw):0,prop:f(e.prop)?globalThis.Number(e.prop):0,prescaler:f(e.prescaler)?globalThis.Number(e.prescaler):0}},toJSON(e){const n={};return e.tq!==0&&(n.tq=Math.round(e.tq)),e.phase1!==0&&(n.phase1=Math.round(e.phase1)),e.phase2!==0&&(n.phase2=Math.round(e.phase2)),e.sjw!==0&&(n.sjw=Math.round(e.sjw)),e.prop!==0&&(n.prop=Math.round(e.prop)),e.prescaler!==0&&(n.prescaler=Math.round(e.prescaler)),n},create(e){return l.fromPartial(e??{})},fromPartial(e){const n=Ge();return n.tq=e.tq??0,n.phase1=e.phase1??0,n.phase2=e.phase2??0,n.sjw=e.sjw??0,n.prop=e.prop??0,n.prescaler=e.prescaler??0,n}};function De(){return{arbitrationMin:void 0,arbitrationMax:void 0,dataMin:void 0,dataMax:void 0,isValid:!1}}const g={encode(e,n=new d){return e.arbitrationMin!==void 0&&l.encode(e.arbitrationMin,n.uint32(10).fork()).join(),e.arbitrationMax!==void 0&&l.encode(e.arbitrationMax,n.uint32(18).fork()).join(),e.dataMin!==void 0&&l.encode(e.dataMin,n.uint32(26).fork()).join(),e.dataMax!==void 0&&l.encode(e.dataMax,n.uint32(34).fork()).join(),e.isValid!==!1&&n.uint32(40).bool(e.isValid),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=De();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.arbitrationMin=l.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.arbitrationMax=l.decode(i,i.uint32());continue}case 3:{if(r!==26)break;t.dataMin=l.decode(i,i.uint32());continue}case 4:{if(r!==34)break;t.dataMax=l.decode(i,i.uint32());continue}case 5:{if(r!==40)break;t.isValid=i.bool();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{arbitrationMin:f(e.arbitrationMin)?l.fromJSON(e.arbitrationMin):void 0,arbitrationMax:f(e.arbitrationMax)?l.fromJSON(e.arbitrationMax):void 0,dataMin:f(e.dataMin)?l.fromJSON(e.dataMin):void 0,dataMax:f(e.dataMax)?l.fromJSON(e.dataMax):void 0,isValid:f(e.isValid)?globalThis.Boolean(e.isValid):!1}},toJSON(e){const n={};return e.arbitrationMin!==void 0&&(n.arbitrationMin=l.toJSON(e.arbitrationMin)),e.arbitrationMax!==void 0&&(n.arbitrationMax=l.toJSON(e.arbitrationMax)),e.dataMin!==void 0&&(n.dataMin=l.toJSON(e.dataMin)),e.dataMax!==void 0&&(n.dataMax=l.toJSON(e.dataMax)),e.isValid!==!1&&(n.isValid=e.isValid),n},create(e){return g.fromPartial(e??{})},fromPartial(e){const n=De();return n.arbitrationMin=e.arbitrationMin!==void 0&&e.arbitrationMin!==null?l.fromPartial(e.arbitrationMin):void 0,n.arbitrationMax=e.arbitrationMax!==void 0&&e.arbitrationMax!==null?l.fromPartial(e.arbitrationMax):void 0,n.dataMin=e.dataMin!==void 0&&e.dataMin!==null?l.fromPartial(e.dataMin):void 0,n.dataMax=e.dataMax!==void 0&&e.dataMax!==null?l.fromPartial(e.dataMax):void 0,n.isValid=e.isValid??!1,n}};function ke(){return{bitRate:0,actualBitRate:0,bitRateError:0,samplePoint:0,description:"",busParams:void 0}}const m={encode(e,n=new d){return e.bitRate!==0&&n.uint32(8).int32(e.bitRate),e.actualBitRate!==0&&n.uint32(16).int32(e.actualBitRate),e.bitRateError!==0&&n.uint32(25).double(e.bitRateError),e.samplePoint!==0&&n.uint32(33).double(e.samplePoint),e.description!==""&&n.uint32(42).string(e.description),e.busParams!==void 0&&l.encode(e.busParams,n.uint32(50).fork()).join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=ke();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.bitRate=i.int32();continue}case 2:{if(r!==16)break;t.actualBitRate=i.int32();continue}case 3:{if(r!==25)break;t.bitRateError=i.double();continue}case 4:{if(r!==33)break;t.samplePoint=i.double();continue}case 5:{if(r!==42)break;t.description=i.string();continue}case 6:{if(r!==50)break;t.busParams=l.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{bitRate:f(e.bitRate)?globalThis.Number(e.bitRate):0,actualBitRate:f(e.actualBitRate)?globalThis.Number(e.actualBitRate):0,bitRateError:f(e.bitRateError)?globalThis.Number(e.bitRateError):0,samplePoint:f(e.samplePoint)?globalThis.Number(e.samplePoint):0,description:f(e.description)?globalThis.String(e.description):"",busParams:f(e.busParams)?l.fromJSON(e.busParams):void 0}},toJSON(e){const n={};return e.bitRate!==0&&(n.bitRate=Math.round(e.bitRate)),e.actualBitRate!==0&&(n.actualBitRate=Math.round(e.actualBitRate)),e.bitRateError!==0&&(n.bitRateError=e.bitRateError),e.samplePoint!==0&&(n.samplePoint=e.samplePoint),e.description!==""&&(n.description=e.description),e.busParams!==void 0&&(n.busParams=l.toJSON(e.busParams)),n},create(e){return m.fromPartial(e??{})},fromPartial(e){const n=ke();return n.bitRate=e.bitRate??0,n.actualBitRate=e.actualBitRate??0,n.bitRateError=e.bitRateError??0,n.samplePoint=e.samplePoint??0,n.description=e.description??"",n.busParams=e.busParams!==void 0&&e.busParams!==null?l.fromPartial(e.busParams):void 0,n}};function Be(){return{bitRate:0,samplePoint:0,description:"",busParams:void 0}}const T={encode(e,n=new d){return e.bitRate!==0&&n.uint32(8).int32(e.bitRate),e.samplePoint!==0&&n.uint32(17).double(e.samplePoint),e.description!==""&&n.uint32(26).string(e.description),e.busParams!==void 0&&l.encode(e.busParams,n.uint32(34).fork()).join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Be();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.bitRate=i.int32();continue}case 2:{if(r!==17)break;t.samplePoint=i.double();continue}case 3:{if(r!==26)break;t.description=i.string();continue}case 4:{if(r!==34)break;t.busParams=l.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{bitRate:f(e.bitRate)?globalThis.Number(e.bitRate):0,samplePoint:f(e.samplePoint)?globalThis.Number(e.samplePoint):0,description:f(e.description)?globalThis.String(e.description):"",busParams:f(e.busParams)?l.fromJSON(e.busParams):void 0}},toJSON(e){const n={};return e.bitRate!==0&&(n.bitRate=Math.round(e.bitRate)),e.samplePoint!==0&&(n.samplePoint=e.samplePoint),e.description!==""&&(n.description=e.description),e.busParams!==void 0&&(n.busParams=l.toJSON(e.busParams)),n},create(e){return T.fromPartial(e??{})},fromPartial(e){const n=Be();return n.bitRate=e.bitRate??0,n.samplePoint=e.samplePoint??0,n.description=e.description??"",n.busParams=e.busParams!==void 0&&e.busParams!==null?l.fromPartial(e.busParams):void 0,n}};function ye(){return{arbitrationBusSpeed:void 0,dataBusSpeeds:[]}}const h={encode(e,n=new d){e.arbitrationBusSpeed!==void 0&&T.encode(e.arbitrationBusSpeed,n.uint32(10).fork()).join();for(const i of e.dataBusSpeeds)T.encode(i,n.uint32(18).fork()).join();return n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=ye();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.arbitrationBusSpeed=T.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.dataBusSpeeds.push(T.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{arbitrationBusSpeed:f(e.arbitrationBusSpeed)?T.fromJSON(e.arbitrationBusSpeed):void 0,dataBusSpeeds:globalThis.Array.isArray(e==null?void 0:e.dataBusSpeeds)?e.dataBusSpeeds.map(n=>T.fromJSON(n)):[]}},toJSON(e){var i;const n={};return e.arbitrationBusSpeed!==void 0&&(n.arbitrationBusSpeed=T.toJSON(e.arbitrationBusSpeed)),(i=e.dataBusSpeeds)!=null&&i.length&&(n.dataBusSpeeds=e.dataBusSpeeds.map(a=>T.toJSON(a))),n},create(e){return h.fromPartial(e??{})},fromPartial(e){var i;const n=ye();return n.arbitrationBusSpeed=e.arbitrationBusSpeed!==void 0&&e.arbitrationBusSpeed!==null?T.fromPartial(e.arbitrationBusSpeed):void 0,n.dataBusSpeeds=((i=e.dataBusSpeeds)==null?void 0:i.map(a=>T.fromPartial(a)))||[],n}};function ve(){return{busParamLimits:void 0,channelCaps:[],maxBitRate:0,clockFrequency:0}}const b={encode(e,n=new d){e.busParamLimits!==void 0&&g.encode(e.busParamLimits,n.uint32(10).fork()).join(),n.uint32(18).fork();for(const i of e.channelCaps)n.int32(i);return n.join(),e.maxBitRate!==0&&n.uint32(24).int32(e.maxBitRate),e.clockFrequency!==0&&n.uint32(33).double(e.clockFrequency),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=ve();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.busParamLimits=g.decode(i,i.uint32());continue}case 2:{if(r===16){t.channelCaps.push(i.int32());continue}if(r===18){const o=i.uint32()+i.pos;for(;i.pos<o;)t.channelCaps.push(i.int32());continue}break}case 3:{if(r!==24)break;t.maxBitRate=i.int32();continue}case 4:{if(r!==33)break;t.clockFrequency=i.double();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{busParamLimits:f(e.busParamLimits)?g.fromJSON(e.busParamLimits):void 0,channelCaps:globalThis.Array.isArray(e==null?void 0:e.channelCaps)?e.channelCaps.map(n=>Un(n)):[],maxBitRate:f(e.maxBitRate)?globalThis.Number(e.maxBitRate):0,clockFrequency:f(e.clockFrequency)?globalThis.Number(e.clockFrequency):0}},toJSON(e){var i;const n={};return e.busParamLimits!==void 0&&(n.busParamLimits=g.toJSON(e.busParamLimits)),(i=e.channelCaps)!=null&&i.length&&(n.channelCaps=e.channelCaps.map(a=>Jn(a))),e.maxBitRate!==0&&(n.maxBitRate=Math.round(e.maxBitRate)),e.clockFrequency!==0&&(n.clockFrequency=e.clockFrequency),n},create(e){return b.fromPartial(e??{})},fromPartial(e){var i;const n=ve();return n.busParamLimits=e.busParamLimits!==void 0&&e.busParamLimits!==null?g.fromPartial(e.busParamLimits):void 0,n.channelCaps=((i=e.channelCaps)==null?void 0:i.map(a=>a))||[],n.maxBitRate=e.maxBitRate??0,n.clockFrequency=e.clockFrequency??0,n}};function Ve(){return{channelNumber:0,channelNumberOnDevice:0,name:"",protocols:[],canChannelCapacity:void 0}}const G={encode(e,n=new d){e.channelNumber!==0&&n.uint32(8).int32(e.channelNumber),e.channelNumberOnDevice!==0&&n.uint32(16).int32(e.channelNumberOnDevice),e.name!==""&&n.uint32(26).string(e.name),n.uint32(34).fork();for(const i of e.protocols)n.int32(i);return n.join(),e.canChannelCapacity!==void 0&&b.encode(e.canChannelCapacity,n.uint32(42).fork()).join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Ve();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.channelNumber=i.int32();continue}case 2:{if(r!==16)break;t.channelNumberOnDevice=i.int32();continue}case 3:{if(r!==26)break;t.name=i.string();continue}case 4:{if(r===32){t.protocols.push(i.int32());continue}if(r===34){const o=i.uint32()+i.pos;for(;i.pos<o;)t.protocols.push(i.int32());continue}break}case 5:{if(r!==42)break;t.canChannelCapacity=b.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{channelNumber:f(e.channelNumber)?globalThis.Number(e.channelNumber):0,channelNumberOnDevice:f(e.channelNumberOnDevice)?globalThis.Number(e.channelNumberOnDevice):0,name:f(e.name)?globalThis.String(e.name):"",protocols:globalThis.Array.isArray(e==null?void 0:e.protocols)?e.protocols.map(n=>Ne(n)):[],canChannelCapacity:f(e.canChannelCapacity)?b.fromJSON(e.canChannelCapacity):void 0}},toJSON(e){var i;const n={};return e.channelNumber!==0&&(n.channelNumber=Math.round(e.channelNumber)),e.channelNumberOnDevice!==0&&(n.channelNumberOnDevice=Math.round(e.channelNumberOnDevice)),e.name!==""&&(n.name=e.name),(i=e.protocols)!=null&&i.length&&(n.protocols=e.protocols.map(a=>_e(a))),e.canChannelCapacity!==void 0&&(n.canChannelCapacity=b.toJSON(e.canChannelCapacity)),n},create(e){return G.fromPartial(e??{})},fromPartial(e){var i;const n=Ve();return n.channelNumber=e.channelNumber??0,n.channelNumberOnDevice=e.channelNumberOnDevice??0,n.name=e.name??"",n.protocols=((i=e.protocols)==null?void 0:i.map(a=>a))||[],n.canChannelCapacity=e.canChannelCapacity!==void 0&&e.canChannelCapacity!==null?b.fromPartial(e.canChannelCapacity):void 0,n}};function Ue(){return{cardType:0,cardNumber:0,productCode:"",serialNumber:"",name:"",protocols:[],channels:[]}}const p={encode(e,n=new d){e.cardType!==0&&n.uint32(8).int32(e.cardType),e.cardNumber!==0&&n.uint32(16).int32(e.cardNumber),e.productCode!==""&&n.uint32(26).string(e.productCode),e.serialNumber!==""&&n.uint32(34).string(e.serialNumber),e.name!==""&&n.uint32(42).string(e.name),n.uint32(50).fork();for(const i of e.protocols)n.int32(i);n.join();for(const i of e.channels)G.encode(i,n.uint32(58).fork()).join();return n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Ue();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.cardType=i.int32();continue}case 2:{if(r!==16)break;t.cardNumber=i.int32();continue}case 3:{if(r!==26)break;t.productCode=i.string();continue}case 4:{if(r!==34)break;t.serialNumber=i.string();continue}case 5:{if(r!==42)break;t.name=i.string();continue}case 6:{if(r===48){t.protocols.push(i.int32());continue}if(r===50){const o=i.uint32()+i.pos;for(;i.pos<o;)t.protocols.push(i.int32());continue}break}case 7:{if(r!==58)break;t.channels.push(G.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{cardType:f(e.cardType)?globalThis.Number(e.cardType):0,cardNumber:f(e.cardNumber)?globalThis.Number(e.cardNumber):0,productCode:f(e.productCode)?globalThis.String(e.productCode):"",serialNumber:f(e.serialNumber)?globalThis.String(e.serialNumber):"",name:f(e.name)?globalThis.String(e.name):"",protocols:globalThis.Array.isArray(e==null?void 0:e.protocols)?e.protocols.map(n=>Ne(n)):[],channels:globalThis.Array.isArray(e==null?void 0:e.channels)?e.channels.map(n=>G.fromJSON(n)):[]}},toJSON(e){var i,a;const n={};return e.cardType!==0&&(n.cardType=Math.round(e.cardType)),e.cardNumber!==0&&(n.cardNumber=Math.round(e.cardNumber)),e.productCode!==""&&(n.productCode=e.productCode),e.serialNumber!==""&&(n.serialNumber=e.serialNumber),e.name!==""&&(n.name=e.name),(i=e.protocols)!=null&&i.length&&(n.protocols=e.protocols.map(t=>_e(t))),(a=e.channels)!=null&&a.length&&(n.channels=e.channels.map(t=>G.toJSON(t))),n},create(e){return p.fromPartial(e??{})},fromPartial(e){var i,a;const n=Ue();return n.cardType=e.cardType??0,n.cardNumber=e.cardNumber??0,n.productCode=e.productCode??"",n.serialNumber=e.serialNumber??"",n.name=e.name??"",n.protocols=((i=e.protocols)==null?void 0:i.map(t=>t))||[],n.channels=((a=e.channels)==null?void 0:a.map(t=>G.fromPartial(t)))||[],n}};function Je(){return{items:[]}}const D={encode(e,n=new d){for(const i of e.items)p.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Je();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.items.push(p.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{items:globalThis.Array.isArray(e==null?void 0:e.items)?e.items.map(n=>p.fromJSON(n)):[]}},toJSON(e){var i;const n={};return(i=e.items)!=null&&i.length&&(n.items=e.items.map(a=>p.toJSON(a))),n},create(e){return D.fromPartial(e??{})},fromPartial(e){var i;const n=Je();return n.items=((i=e.items)==null?void 0:i.map(a=>p.fromPartial(a)))||[],n}};function xe(){return{preferences:void 0,includeVirtual:!1}}const Qn={encode(e,n=new d){return e.preferences!==void 0&&E.encode(e.preferences,n.uint32(10).fork()).join(),e.includeVirtual!==!1&&n.uint32(16).bool(e.includeVirtual),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=xe();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=E.decode(i,i.uint32());continue}case 2:{if(r!==16)break;t.includeVirtual=i.bool();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?E.fromJSON(e.preferences):void 0,includeVirtual:f(e.includeVirtual)?globalThis.Boolean(e.includeVirtual):!1}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=E.toJSON(e.preferences)),e.includeVirtual!==!1&&(n.includeVirtual=e.includeVirtual),n},create(e){return Qn.fromPartial(e??{})},fromPartial(e){const n=xe();return n.preferences=e.preferences!==void 0&&e.preferences!==null?E.fromPartial(e.preferences):void 0,n.includeVirtual=e.includeVirtual??!1,n}};function we(){return{devices:[]}}const Xn={encode(e,n=new d){for(const i of e.devices)p.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=we();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.devices.push(p.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{devices:globalThis.Array.isArray(e==null?void 0:e.devices)?e.devices.map(n=>p.fromJSON(n)):[]}},toJSON(e){var i;const n={};return(i=e.devices)!=null&&i.length&&(n.devices=e.devices.map(a=>p.toJSON(a))),n},create(e){return Xn.fromPartial(e??{})},fromPartial(e){var i;const n=we();return n.devices=((i=e.devices)==null?void 0:i.map(a=>p.fromPartial(a)))||[],n}};function He(){return{preferences:void 0,channelNumber:0,bitRate:void 0,bitRateArbitrationPhase:void 0,bitRateDataPhase:void 0}}const qn={encode(e,n=new d){return e.preferences!==void 0&&E.encode(e.preferences,n.uint32(10).fork()).join(),e.channelNumber!==0&&n.uint32(16).int32(e.channelNumber),e.bitRate!==void 0&&n.uint32(24).int32(e.bitRate),e.bitRateArbitrationPhase!==void 0&&n.uint32(32).int32(e.bitRateArbitrationPhase),e.bitRateDataPhase!==void 0&&n.uint32(40).int32(e.bitRateDataPhase),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=He();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=E.decode(i,i.uint32());continue}case 2:{if(r!==16)break;t.channelNumber=i.int32();continue}case 3:{if(r!==24)break;t.bitRate=i.int32();continue}case 4:{if(r!==32)break;t.bitRateArbitrationPhase=i.int32();continue}case 5:{if(r!==40)break;t.bitRateDataPhase=i.int32();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?E.fromJSON(e.preferences):void 0,channelNumber:f(e.channelNumber)?globalThis.Number(e.channelNumber):0,bitRate:f(e.bitRate)?globalThis.Number(e.bitRate):void 0,bitRateArbitrationPhase:f(e.bitRateArbitrationPhase)?globalThis.Number(e.bitRateArbitrationPhase):void 0,bitRateDataPhase:f(e.bitRateDataPhase)?globalThis.Number(e.bitRateDataPhase):void 0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=E.toJSON(e.preferences)),e.channelNumber!==0&&(n.channelNumber=Math.round(e.channelNumber)),e.bitRate!==void 0&&(n.bitRate=Math.round(e.bitRate)),e.bitRateArbitrationPhase!==void 0&&(n.bitRateArbitrationPhase=Math.round(e.bitRateArbitrationPhase)),e.bitRateDataPhase!==void 0&&(n.bitRateDataPhase=Math.round(e.bitRateDataPhase)),n},create(e){return qn.fromPartial(e??{})},fromPartial(e){const n=He();return n.preferences=e.preferences!==void 0&&e.preferences!==null?E.fromPartial(e.preferences):void 0,n.channelNumber=e.channelNumber??0,n.bitRate=e.bitRate??void 0,n.bitRateArbitrationPhase=e.bitRateArbitrationPhase??void 0,n.bitRateDataPhase=e.bitRateDataPhase??void 0,n}};function ze(){return{availableBusSpeeds:[],availableBusSpeedsFd:[]}}const Zn={encode(e,n=new d){for(const i of e.availableBusSpeeds)m.encode(i,n.uint32(10).fork()).join();for(const i of e.availableBusSpeedsFd)h.encode(i,n.uint32(18).fork()).join();return n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=ze();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.availableBusSpeeds.push(m.decode(i,i.uint32()));continue}case 2:{if(r!==18)break;t.availableBusSpeedsFd.push(h.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{availableBusSpeeds:globalThis.Array.isArray(e==null?void 0:e.availableBusSpeeds)?e.availableBusSpeeds.map(n=>m.fromJSON(n)):[],availableBusSpeedsFd:globalThis.Array.isArray(e==null?void 0:e.availableBusSpeedsFd)?e.availableBusSpeedsFd.map(n=>h.fromJSON(n)):[]}},toJSON(e){var i,a;const n={};return(i=e.availableBusSpeeds)!=null&&i.length&&(n.availableBusSpeeds=e.availableBusSpeeds.map(t=>m.toJSON(t))),(a=e.availableBusSpeedsFd)!=null&&a.length&&(n.availableBusSpeedsFd=e.availableBusSpeedsFd.map(t=>h.toJSON(t))),n},create(e){return Zn.fromPartial(e??{})},fromPartial(e){var i,a;const n=ze();return n.availableBusSpeeds=((i=e.availableBusSpeeds)==null?void 0:i.map(t=>m.fromPartial(t)))||[],n.availableBusSpeedsFd=((a=e.availableBusSpeedsFd)==null?void 0:a.map(t=>h.fromPartial(t)))||[],n}};function Qe(){return{preferences:void 0,channelNumber:0,bitRates:[]}}const Yn={encode(e,n=new d){e.preferences!==void 0&&E.encode(e.preferences,n.uint32(10).fork()).join(),e.channelNumber!==0&&n.uint32(16).int32(e.channelNumber),n.uint32(26).fork();for(const i of e.bitRates)n.int32(i);return n.join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Qe();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=E.decode(i,i.uint32());continue}case 2:{if(r!==16)break;t.channelNumber=i.int32();continue}case 3:{if(r===24){t.bitRates.push(i.int32());continue}if(r===26){const o=i.uint32()+i.pos;for(;i.pos<o;)t.bitRates.push(i.int32());continue}break}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?E.fromJSON(e.preferences):void 0,channelNumber:f(e.channelNumber)?globalThis.Number(e.channelNumber):0,bitRates:globalThis.Array.isArray(e==null?void 0:e.bitRates)?e.bitRates.map(n=>globalThis.Number(n)):[]}},toJSON(e){var i;const n={};return e.preferences!==void 0&&(n.preferences=E.toJSON(e.preferences)),e.channelNumber!==0&&(n.channelNumber=Math.round(e.channelNumber)),(i=e.bitRates)!=null&&i.length&&(n.bitRates=e.bitRates.map(a=>Math.round(a))),n},create(e){return Yn.fromPartial(e??{})},fromPartial(e){var i;const n=Qe();return n.preferences=e.preferences!==void 0&&e.preferences!==null?E.fromPartial(e.preferences):void 0,n.channelNumber=e.channelNumber??0,n.bitRates=((i=e.bitRates)==null?void 0:i.map(a=>a))||[],n}};function Xe(){return{availableBusSpeeds:[]}}const Kn={encode(e,n=new d){for(const i of e.availableBusSpeeds)m.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Xe();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.availableBusSpeeds.push(m.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{availableBusSpeeds:globalThis.Array.isArray(e==null?void 0:e.availableBusSpeeds)?e.availableBusSpeeds.map(n=>m.fromJSON(n)):[]}},toJSON(e){var i;const n={};return(i=e.availableBusSpeeds)!=null&&i.length&&(n.availableBusSpeeds=e.availableBusSpeeds.map(a=>m.toJSON(a))),n},create(e){return Kn.fromPartial(e??{})},fromPartial(e){var i;const n=Xe();return n.availableBusSpeeds=((i=e.availableBusSpeeds)==null?void 0:i.map(a=>m.fromPartial(a)))||[],n}};function qe(){return{preferences:void 0,channelNumber:0,bitRatesArbitrationPhase:[],bitRatesDataPhase:[]}}const Wn={encode(e,n=new d){e.preferences!==void 0&&E.encode(e.preferences,n.uint32(10).fork()).join(),e.channelNumber!==0&&n.uint32(16).int32(e.channelNumber),n.uint32(26).fork();for(const i of e.bitRatesArbitrationPhase)n.int32(i);n.join(),n.uint32(34).fork();for(const i of e.bitRatesDataPhase)n.int32(i);return n.join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=qe();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=E.decode(i,i.uint32());continue}case 2:{if(r!==16)break;t.channelNumber=i.int32();continue}case 3:{if(r===24){t.bitRatesArbitrationPhase.push(i.int32());continue}if(r===26){const o=i.uint32()+i.pos;for(;i.pos<o;)t.bitRatesArbitrationPhase.push(i.int32());continue}break}case 4:{if(r===32){t.bitRatesDataPhase.push(i.int32());continue}if(r===34){const o=i.uint32()+i.pos;for(;i.pos<o;)t.bitRatesDataPhase.push(i.int32());continue}break}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?E.fromJSON(e.preferences):void 0,channelNumber:f(e.channelNumber)?globalThis.Number(e.channelNumber):0,bitRatesArbitrationPhase:globalThis.Array.isArray(e==null?void 0:e.bitRatesArbitrationPhase)?e.bitRatesArbitrationPhase.map(n=>globalThis.Number(n)):[],bitRatesDataPhase:globalThis.Array.isArray(e==null?void 0:e.bitRatesDataPhase)?e.bitRatesDataPhase.map(n=>globalThis.Number(n)):[]}},toJSON(e){var i,a;const n={};return e.preferences!==void 0&&(n.preferences=E.toJSON(e.preferences)),e.channelNumber!==0&&(n.channelNumber=Math.round(e.channelNumber)),(i=e.bitRatesArbitrationPhase)!=null&&i.length&&(n.bitRatesArbitrationPhase=e.bitRatesArbitrationPhase.map(t=>Math.round(t))),(a=e.bitRatesDataPhase)!=null&&a.length&&(n.bitRatesDataPhase=e.bitRatesDataPhase.map(t=>Math.round(t))),n},create(e){return Wn.fromPartial(e??{})},fromPartial(e){var i,a;const n=qe();return n.preferences=e.preferences!==void 0&&e.preferences!==null?E.fromPartial(e.preferences):void 0,n.channelNumber=e.channelNumber??0,n.bitRatesArbitrationPhase=((i=e.bitRatesArbitrationPhase)==null?void 0:i.map(t=>t))||[],n.bitRatesDataPhase=((a=e.bitRatesDataPhase)==null?void 0:a.map(t=>t))||[],n}};function Ze(){return{availableBusSpeedsFd:[]}}const $n={encode(e,n=new d){for(const i of e.availableBusSpeedsFd)h.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Ze();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.availableBusSpeedsFd.push(h.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{availableBusSpeedsFd:globalThis.Array.isArray(e==null?void 0:e.availableBusSpeedsFd)?e.availableBusSpeedsFd.map(n=>h.fromJSON(n)):[]}},toJSON(e){var i;const n={};return(i=e.availableBusSpeedsFd)!=null&&i.length&&(n.availableBusSpeedsFd=e.availableBusSpeedsFd.map(a=>h.toJSON(a))),n},create(e){return $n.fromPartial(e??{})},fromPartial(e){var i;const n=Ze();return n.availableBusSpeedsFd=((i=e.availableBusSpeedsFd)==null?void 0:i.map(a=>h.fromPartial(a)))||[],n}};function Ye(){return{eventType:0,devices:void 0}}const jn={encode(e,n=new d){return e.eventType!==0&&n.uint32(8).int32(e.eventType),e.devices!==void 0&&D.encode(e.devices,n.uint32(18).fork()).join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Ye();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.eventType=i.int32();continue}case 2:{if(r!==18)break;t.devices=D.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{eventType:f(e.eventType)?Hn(e.eventType):0,devices:f(e.devices)?D.fromJSON(e.devices):void 0}},toJSON(e){const n={};return e.eventType!==0&&(n.eventType=zn(e.eventType)),e.devices!==void 0&&(n.devices=D.toJSON(e.devices)),n},create(e){return jn.fromPartial(e??{})},fromPartial(e){const n=Ye();return n.eventType=e.eventType??0,n.devices=e.devices!==void 0&&e.devices!==null?D.fromPartial(e.devices):void 0,n}};function f(e){return e!=null}var ei=(e=>(e[e.SIGNAL_ENCODING_INTEL=0]="SIGNAL_ENCODING_INTEL",e[e.SIGNAL_ENCODING_MOTOROLA=1]="SIGNAL_ENCODING_MOTOROLA",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(ei||{});function ni(e){switch(e){case 0:case"SIGNAL_ENCODING_INTEL":return 0;case 1:case"SIGNAL_ENCODING_MOTOROLA":return 1;case-1:case"UNRECOGNIZED":default:return-1}}function ii(e){switch(e){case 0:return"SIGNAL_ENCODING_INTEL";case 1:return"SIGNAL_ENCODING_MOTOROLA";case-1:default:return"UNRECOGNIZED"}}var ri=(e=>(e[e.SIGNAL_TYPE_INVALID=0]="SIGNAL_TYPE_INVALID",e[e.SIGNAL_TYPE_SIGNED=1]="SIGNAL_TYPE_SIGNED",e[e.SIGNAL_TYPE_UNSIGNED=2]="SIGNAL_TYPE_UNSIGNED",e[e.SIGNAL_TYPE_FLOAT=3]="SIGNAL_TYPE_FLOAT",e[e.SIGNAL_TYPE_DOUBLE=4]="SIGNAL_TYPE_DOUBLE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(ri||{});function ti(e){switch(e){case 0:case"SIGNAL_TYPE_INVALID":return 0;case 1:case"SIGNAL_TYPE_SIGNED":return 1;case 2:case"SIGNAL_TYPE_UNSIGNED":return 2;case 3:case"SIGNAL_TYPE_FLOAT":return 3;case 4:case"SIGNAL_TYPE_DOUBLE":return 4;case-1:case"UNRECOGNIZED":default:return-1}}function ai(e){switch(e){case 0:return"SIGNAL_TYPE_INVALID";case 1:return"SIGNAL_TYPE_SIGNED";case 2:return"SIGNAL_TYPE_UNSIGNED";case 3:return"SIGNAL_TYPE_FLOAT";case 4:return"SIGNAL_TYPE_DOUBLE";case-1:default:return"UNRECOGNIZED"}}function Ke(){return{name:"",qualifiedName:"",comment:"",encoding:0,dataType:0,startbit:0,length:0,unit:"",factor:0,offset:0,minValue:0,maxValue:0,enumValues:{},isMultiplexer:!1,isMultiplexed:!1,multiplexValue:void 0}}const I={encode(e,n=new d){return e.name!==""&&n.uint32(10).string(e.name),e.qualifiedName!==""&&n.uint32(18).string(e.qualifiedName),e.comment!==""&&n.uint32(26).string(e.comment),e.encoding!==0&&n.uint32(32).int32(e.encoding),e.dataType!==0&&n.uint32(40).int32(e.dataType),e.startbit!==0&&n.uint32(48).int32(e.startbit),e.length!==0&&n.uint32(56).int32(e.length),e.unit!==""&&n.uint32(66).string(e.unit),e.factor!==0&&n.uint32(73).double(e.factor),e.offset!==0&&n.uint32(81).double(e.offset),e.minValue!==0&&n.uint32(89).double(e.minValue),e.maxValue!==0&&n.uint32(97).double(e.maxValue),Object.entries(e.enumValues).forEach(([i,a])=>{ue.encode({key:i,value:a},n.uint32(106).fork()).join()}),e.isMultiplexer!==!1&&n.uint32(112).bool(e.isMultiplexer),e.isMultiplexed!==!1&&n.uint32(120).bool(e.isMultiplexed),e.multiplexValue!==void 0&&n.uint32(128).int32(e.multiplexValue),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Ke();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.name=i.string();continue}case 2:{if(r!==18)break;t.qualifiedName=i.string();continue}case 3:{if(r!==26)break;t.comment=i.string();continue}case 4:{if(r!==32)break;t.encoding=i.int32();continue}case 5:{if(r!==40)break;t.dataType=i.int32();continue}case 6:{if(r!==48)break;t.startbit=i.int32();continue}case 7:{if(r!==56)break;t.length=i.int32();continue}case 8:{if(r!==66)break;t.unit=i.string();continue}case 9:{if(r!==73)break;t.factor=i.double();continue}case 10:{if(r!==81)break;t.offset=i.double();continue}case 11:{if(r!==89)break;t.minValue=i.double();continue}case 12:{if(r!==97)break;t.maxValue=i.double();continue}case 13:{if(r!==106)break;const o=ue.decode(i,i.uint32());o.value!==void 0&&(t.enumValues[o.key]=o.value);continue}case 14:{if(r!==112)break;t.isMultiplexer=i.bool();continue}case 15:{if(r!==120)break;t.isMultiplexed=i.bool();continue}case 16:{if(r!==128)break;t.multiplexValue=i.int32();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{name:A(e.name)?globalThis.String(e.name):"",qualifiedName:A(e.qualifiedName)?globalThis.String(e.qualifiedName):"",comment:A(e.comment)?globalThis.String(e.comment):"",encoding:A(e.encoding)?ni(e.encoding):0,dataType:A(e.dataType)?ti(e.dataType):0,startbit:A(e.startbit)?globalThis.Number(e.startbit):0,length:A(e.length)?globalThis.Number(e.length):0,unit:A(e.unit)?globalThis.String(e.unit):"",factor:A(e.factor)?globalThis.Number(e.factor):0,offset:A(e.offset)?globalThis.Number(e.offset):0,minValue:A(e.minValue)?globalThis.Number(e.minValue):0,maxValue:A(e.maxValue)?globalThis.Number(e.maxValue):0,enumValues:qi(e.enumValues)?Object.entries(e.enumValues).reduce((n,[i,a])=>(n[i]=Number(a),n),{}):{},isMultiplexer:A(e.isMultiplexer)?globalThis.Boolean(e.isMultiplexer):!1,isMultiplexed:A(e.isMultiplexed)?globalThis.Boolean(e.isMultiplexed):!1,multiplexValue:A(e.multiplexValue)?globalThis.Number(e.multiplexValue):void 0}},toJSON(e){const n={};if(e.name!==""&&(n.name=e.name),e.qualifiedName!==""&&(n.qualifiedName=e.qualifiedName),e.comment!==""&&(n.comment=e.comment),e.encoding!==0&&(n.encoding=ii(e.encoding)),e.dataType!==0&&(n.dataType=ai(e.dataType)),e.startbit!==0&&(n.startbit=Math.round(e.startbit)),e.length!==0&&(n.length=Math.round(e.length)),e.unit!==""&&(n.unit=e.unit),e.factor!==0&&(n.factor=e.factor),e.offset!==0&&(n.offset=e.offset),e.minValue!==0&&(n.minValue=e.minValue),e.maxValue!==0&&(n.maxValue=e.maxValue),e.enumValues){const i=Object.entries(e.enumValues);i.length>0&&(n.enumValues={},i.forEach(([a,t])=>{n.enumValues[a]=Math.round(t)}))}return e.isMultiplexer!==!1&&(n.isMultiplexer=e.isMultiplexer),e.isMultiplexed!==!1&&(n.isMultiplexed=e.isMultiplexed),e.multiplexValue!==void 0&&(n.multiplexValue=Math.round(e.multiplexValue)),n},create(e){return I.fromPartial(e??{})},fromPartial(e){const n=Ke();return n.name=e.name??"",n.qualifiedName=e.qualifiedName??"",n.comment=e.comment??"",n.encoding=e.encoding??0,n.dataType=e.dataType??0,n.startbit=e.startbit??0,n.length=e.length??0,n.unit=e.unit??"",n.factor=e.factor??0,n.offset=e.offset??0,n.minValue=e.minValue??0,n.maxValue=e.maxValue??0,n.enumValues=Object.entries(e.enumValues??{}).reduce((i,[a,t])=>(t!==void 0&&(i[a]=globalThis.Number(t)),i),{}),n.isMultiplexer=e.isMultiplexer??!1,n.isMultiplexed=e.isMultiplexed??!1,n.multiplexValue=e.multiplexValue??void 0,n}};function We(){return{key:"",value:0}}const ue={encode(e,n=new d){return e.key!==""&&n.uint32(10).string(e.key),e.value!==0&&n.uint32(16).int32(e.value),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=We();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.key=i.string();continue}case 2:{if(r!==16)break;t.value=i.int32();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{key:A(e.key)?globalThis.String(e.key):"",value:A(e.value)?globalThis.Number(e.value):0}},toJSON(e){const n={};return e.key!==""&&(n.key=e.key),e.value!==0&&(n.value=Math.round(e.value)),n},create(e){return ue.fromPartial(e??{})},fromPartial(e){const n=We();return n.key=e.key??"",n.value=e.value??0,n}};function $e(){return{items:[]}}const ui={encode(e,n=new d){for(const i of e.items)I.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=$e();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.items.push(I.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{items:globalThis.Array.isArray(e==null?void 0:e.items)?e.items.map(n=>I.fromJSON(n)):[]}},toJSON(e){var i;const n={};return(i=e.items)!=null&&i.length&&(n.items=e.items.map(a=>I.toJSON(a))),n},create(e){return ui.fromPartial(e??{})},fromPartial(e){var i;const n=$e();return n.items=((i=e.items)==null?void 0:i.map(a=>I.fromPartial(a)))||[],n}};function qi(e){return typeof e=="object"&&e!==null}function A(e){return e!=null}var si=(e=>(e[e.CAN_FRAME_FLAG_UNSPECIFIED=0]="CAN_FRAME_FLAG_UNSPECIFIED",e[e.CAN_FRAME_FLAG_RTR=1]="CAN_FRAME_FLAG_RTR",e[e.CAN_FRAME_FLAG_STD=2]="CAN_FRAME_FLAG_STD",e[e.CAN_FRAME_FLAG_EXT=4]="CAN_FRAME_FLAG_EXT",e[e.CAN_FRAME_FLAG_WAKEUP=8]="CAN_FRAME_FLAG_WAKEUP",e[e.CAN_FRAME_FLAG_NERR=16]="CAN_FRAME_FLAG_NERR",e[e.CAN_FRAME_FLAG_ERROR_FRAME=32]="CAN_FRAME_FLAG_ERROR_FRAME",e[e.CAN_FRAME_FLAG_TXACK=64]="CAN_FRAME_FLAG_TXACK",e[e.CAN_FRAME_FLAG_TXRQ=128]="CAN_FRAME_FLAG_TXRQ",e[e.CAN_FRAME_FLAG_DELAY_MSG=256]="CAN_FRAME_FLAG_DELAY_MSG",e[e.CAN_FRAME_FLAG_LOCAL_TXACK=268435456]="CAN_FRAME_FLAG_LOCAL_TXACK",e[e.CAN_FRAME_FLAG_SINGLE_SHOT=16777216]="CAN_FRAME_FLAG_SINGLE_SHOT",e[e.CAN_FRAME_FLAG_TXNACK=33554432]="CAN_FRAME_FLAG_TXNACK",e[e.CAN_FRAME_FLAG_ABL=67108864]="CAN_FRAME_FLAG_ABL",e[e.CAN_FRAME_FLAG_FD_FDF=65536]="CAN_FRAME_FLAG_FD_FDF",e[e.CAN_FRAME_FLAG_FD_BRS=131072]="CAN_FRAME_FLAG_FD_BRS",e[e.CAN_FRAME_FLAG_FD_ESI=262144]="CAN_FRAME_FLAG_FD_ESI",e[e.CAN_FRAME_FLAG_ERR_HW_OVERRUN=512]="CAN_FRAME_FLAG_ERR_HW_OVERRUN",e[e.CAN_FRAME_FLAG_ERR_SW_OVERRUN=1024]="CAN_FRAME_FLAG_ERR_SW_OVERRUN",e[e.CAN_FRAME_FLAG_ERR_STUFF=2048]="CAN_FRAME_FLAG_ERR_STUFF",e[e.CAN_FRAME_FLAG_ERR_FORM=4096]="CAN_FRAME_FLAG_ERR_FORM",e[e.CAN_FRAME_FLAG_ERR_CRC=8192]="CAN_FRAME_FLAG_ERR_CRC",e[e.CAN_FRAME_FLAG_ERR_BIT0=16384]="CAN_FRAME_FLAG_ERR_BIT0",e[e.CAN_FRAME_FLAG_ERR_BIT1=32768]="CAN_FRAME_FLAG_ERR_BIT1",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(si||{});function oi(e){switch(e){case 0:case"CAN_FRAME_FLAG_UNSPECIFIED":return 0;case 1:case"CAN_FRAME_FLAG_RTR":return 1;case 2:case"CAN_FRAME_FLAG_STD":return 2;case 4:case"CAN_FRAME_FLAG_EXT":return 4;case 8:case"CAN_FRAME_FLAG_WAKEUP":return 8;case 16:case"CAN_FRAME_FLAG_NERR":return 16;case 32:case"CAN_FRAME_FLAG_ERROR_FRAME":return 32;case 64:case"CAN_FRAME_FLAG_TXACK":return 64;case 128:case"CAN_FRAME_FLAG_TXRQ":return 128;case 256:case"CAN_FRAME_FLAG_DELAY_MSG":return 256;case 268435456:case"CAN_FRAME_FLAG_LOCAL_TXACK":return 268435456;case 16777216:case"CAN_FRAME_FLAG_SINGLE_SHOT":return 16777216;case 33554432:case"CAN_FRAME_FLAG_TXNACK":return 33554432;case 67108864:case"CAN_FRAME_FLAG_ABL":return 67108864;case 65536:case"CAN_FRAME_FLAG_FD_FDF":return 65536;case 131072:case"CAN_FRAME_FLAG_FD_BRS":return 131072;case 262144:case"CAN_FRAME_FLAG_FD_ESI":return 262144;case 512:case"CAN_FRAME_FLAG_ERR_HW_OVERRUN":return 512;case 1024:case"CAN_FRAME_FLAG_ERR_SW_OVERRUN":return 1024;case 2048:case"CAN_FRAME_FLAG_ERR_STUFF":return 2048;case 4096:case"CAN_FRAME_FLAG_ERR_FORM":return 4096;case 8192:case"CAN_FRAME_FLAG_ERR_CRC":return 8192;case 16384:case"CAN_FRAME_FLAG_ERR_BIT0":return 16384;case 32768:case"CAN_FRAME_FLAG_ERR_BIT1":return 32768;case-1:case"UNRECOGNIZED":default:return-1}}function di(e){switch(e){case 0:return"CAN_FRAME_FLAG_UNSPECIFIED";case 1:return"CAN_FRAME_FLAG_RTR";case 2:return"CAN_FRAME_FLAG_STD";case 4:return"CAN_FRAME_FLAG_EXT";case 8:return"CAN_FRAME_FLAG_WAKEUP";case 16:return"CAN_FRAME_FLAG_NERR";case 32:return"CAN_FRAME_FLAG_ERROR_FRAME";case 64:return"CAN_FRAME_FLAG_TXACK";case 128:return"CAN_FRAME_FLAG_TXRQ";case 256:return"CAN_FRAME_FLAG_DELAY_MSG";case 268435456:return"CAN_FRAME_FLAG_LOCAL_TXACK";case 16777216:return"CAN_FRAME_FLAG_SINGLE_SHOT";case 33554432:return"CAN_FRAME_FLAG_TXNACK";case 67108864:return"CAN_FRAME_FLAG_ABL";case 65536:return"CAN_FRAME_FLAG_FD_FDF";case 131072:return"CAN_FRAME_FLAG_FD_BRS";case 262144:return"CAN_FRAME_FLAG_FD_ESI";case 512:return"CAN_FRAME_FLAG_ERR_HW_OVERRUN";case 1024:return"CAN_FRAME_FLAG_ERR_SW_OVERRUN";case 2048:return"CAN_FRAME_FLAG_ERR_STUFF";case 4096:return"CAN_FRAME_FLAG_ERR_FORM";case 8192:return"CAN_FRAME_FLAG_ERR_CRC";case 16384:return"CAN_FRAME_FLAG_ERR_BIT0";case 32768:return"CAN_FRAME_FLAG_ERR_BIT1";case-1:default:return"UNRECOGNIZED"}}var fi=(e=>(e[e.LIN_FRAME_FLAG_UNSPECIFIED=0]="LIN_FRAME_FLAG_UNSPECIFIED",e[e.LIN_FRAME_FLAG_TX=1]="LIN_FRAME_FLAG_TX",e[e.LIN_FRAME_FLAG_RX=2]="LIN_FRAME_FLAG_RX",e[e.LIN_FRAME_FLAG_WAKEUP_FRAME=4]="LIN_FRAME_FLAG_WAKEUP_FRAME",e[e.LIN_FRAME_FLAG_NODATA=8]="LIN_FRAME_FLAG_NODATA",e[e.LIN_FRAME_FLAG_CSUM_ERROR=16]="LIN_FRAME_FLAG_CSUM_ERROR",e[e.LIN_FRAME_FLAG_PARITY_ERROR=32]="LIN_FRAME_FLAG_PARITY_ERROR",e[e.LIN_FRAME_FLAG_SYNCH_ERROR=64]="LIN_FRAME_FLAG_SYNCH_ERROR",e[e.LIN_FRAME_FLAG_BIT_ERROR=128]="LIN_FRAME_FLAG_BIT_ERROR",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(fi||{});function li(e){switch(e){case 0:case"LIN_FRAME_FLAG_UNSPECIFIED":return 0;case 1:case"LIN_FRAME_FLAG_TX":return 1;case 2:case"LIN_FRAME_FLAG_RX":return 2;case 4:case"LIN_FRAME_FLAG_WAKEUP_FRAME":return 4;case 8:case"LIN_FRAME_FLAG_NODATA":return 8;case 16:case"LIN_FRAME_FLAG_CSUM_ERROR":return 16;case 32:case"LIN_FRAME_FLAG_PARITY_ERROR":return 32;case 64:case"LIN_FRAME_FLAG_SYNCH_ERROR":return 64;case 128:case"LIN_FRAME_FLAG_BIT_ERROR":return 128;case-1:case"UNRECOGNIZED":default:return-1}}function ci(e){switch(e){case 0:return"LIN_FRAME_FLAG_UNSPECIFIED";case 1:return"LIN_FRAME_FLAG_TX";case 2:return"LIN_FRAME_FLAG_RX";case 4:return"LIN_FRAME_FLAG_WAKEUP_FRAME";case 8:return"LIN_FRAME_FLAG_NODATA";case 16:return"LIN_FRAME_FLAG_CSUM_ERROR";case 32:return"LIN_FRAME_FLAG_PARITY_ERROR";case 64:return"LIN_FRAME_FLAG_SYNCH_ERROR";case 128:return"LIN_FRAME_FLAG_BIT_ERROR";case-1:default:return"UNRECOGNIZED"}}function je(){return{flags:[]}}const S={encode(e,n=new d){n.uint32(10).fork();for(const i of e.flags)n.int32(i);return n.join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=je();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r===8){t.flags.push(i.int32());continue}if(r===10){const o=i.uint32()+i.pos;for(;i.pos<o;)t.flags.push(i.int32());continue}break}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{flags:globalThis.Array.isArray(e==null?void 0:e.flags)?e.flags.map(n=>oi(n)):[]}},toJSON(e){var i;const n={};return(i=e.flags)!=null&&i.length&&(n.flags=e.flags.map(a=>di(a))),n},create(e){return S.fromPartial(e??{})},fromPartial(e){var i;const n=je();return n.flags=((i=e.flags)==null?void 0:i.map(a=>a))||[],n}};function en(){return{flags:[]}}const C={encode(e,n=new d){n.uint32(10).fork();for(const i of e.flags)n.int32(i);return n.join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=en();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r===8){t.flags.push(i.int32());continue}if(r===10){const o=i.uint32()+i.pos;for(;i.pos<o;)t.flags.push(i.int32());continue}break}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{flags:globalThis.Array.isArray(e==null?void 0:e.flags)?e.flags.map(n=>li(n)):[]}},toJSON(e){var i;const n={};return(i=e.flags)!=null&&i.length&&(n.flags=e.flags.map(a=>ci(a))),n},create(e){return C.fromPartial(e??{})},fromPartial(e){var i;const n=en();return n.flags=((i=e.flags)==null?void 0:i.map(a=>a))||[],n}};function nn(){return{stringValue:void 0,doubleValue:void 0}}const L={encode(e,n=new d){return e.stringValue!==void 0&&n.uint32(10).string(e.stringValue),e.doubleValue!==void 0&&n.uint32(17).double(e.doubleValue),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=nn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.stringValue=i.string();continue}case 2:{if(r!==17)break;t.doubleValue=i.double();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{stringValue:c(e.stringValue)?globalThis.String(e.stringValue):void 0,doubleValue:c(e.doubleValue)?globalThis.Number(e.doubleValue):void 0}},toJSON(e){const n={};return e.stringValue!==void 0&&(n.stringValue=e.stringValue),e.doubleValue!==void 0&&(n.doubleValue=e.doubleValue),n},create(e){return L.fromPartial(e??{})},fromPartial(e){const n=nn();return n.stringValue=e.stringValue??void 0,n.doubleValue=e.doubleValue??void 0,n}};function rn(){return{name:"",qualifiedName:"",unit:"",stringValue:void 0,doubleValue:void 0}}const k={encode(e,n=new d){return e.name!==""&&n.uint32(10).string(e.name),e.qualifiedName!==""&&n.uint32(18).string(e.qualifiedName),e.unit!==""&&n.uint32(26).string(e.unit),e.stringValue!==void 0&&n.uint32(34).string(e.stringValue),e.doubleValue!==void 0&&n.uint32(41).double(e.doubleValue),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=rn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.name=i.string();continue}case 2:{if(r!==18)break;t.qualifiedName=i.string();continue}case 3:{if(r!==26)break;t.unit=i.string();continue}case 4:{if(r!==34)break;t.stringValue=i.string();continue}case 5:{if(r!==41)break;t.doubleValue=i.double();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{name:c(e.name)?globalThis.String(e.name):"",qualifiedName:c(e.qualifiedName)?globalThis.String(e.qualifiedName):"",unit:c(e.unit)?globalThis.String(e.unit):"",stringValue:c(e.stringValue)?globalThis.String(e.stringValue):void 0,doubleValue:c(e.doubleValue)?globalThis.Number(e.doubleValue):void 0}},toJSON(e){const n={};return e.name!==""&&(n.name=e.name),e.qualifiedName!==""&&(n.qualifiedName=e.qualifiedName),e.unit!==""&&(n.unit=e.unit),e.stringValue!==void 0&&(n.stringValue=e.stringValue),e.doubleValue!==void 0&&(n.doubleValue=e.doubleValue),n},create(e){return k.fromPartial(e??{})},fromPartial(e){const n=rn();return n.name=e.name??"",n.qualifiedName=e.qualifiedName??"",n.unit=e.unit??"",n.stringValue=e.stringValue??void 0,n.doubleValue=e.doubleValue??void 0,n}};function tn(){return{sourceId:"",sourceName:"",streamId:"",id:0,messageName:"",data:[],time:0,tx:!1,dlc:0,hashCode:0,properties:{},signalValues:[],canFrameFlags:void 0,linFrameFlags:void 0}}const B={encode(e,n=new d){e.sourceId!==""&&n.uint32(10).string(e.sourceId),e.sourceName!==""&&n.uint32(18).string(e.sourceName),e.streamId!==""&&n.uint32(26).string(e.streamId),e.id!==0&&n.uint32(32).int32(e.id),e.messageName!==""&&n.uint32(42).string(e.messageName),n.uint32(50).fork();for(const i of e.data)n.uint32(i);n.join(),e.time!==0&&n.uint32(57).double(e.time),e.tx!==!1&&n.uint32(64).bool(e.tx),e.dlc!==0&&n.uint32(72).int32(e.dlc),e.hashCode!==0&&n.uint32(80).int32(e.hashCode),Object.entries(e.properties).forEach(([i,a])=>{se.encode({key:i,value:a},n.uint32(90).fork()).join()});for(const i of e.signalValues)k.encode(i,n.uint32(98).fork()).join();return e.canFrameFlags!==void 0&&S.encode(e.canFrameFlags,n.uint32(106).fork()).join(),e.linFrameFlags!==void 0&&C.encode(e.linFrameFlags,n.uint32(114).fork()).join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=tn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.sourceId=i.string();continue}case 2:{if(r!==18)break;t.sourceName=i.string();continue}case 3:{if(r!==26)break;t.streamId=i.string();continue}case 4:{if(r!==32)break;t.id=i.int32();continue}case 5:{if(r!==42)break;t.messageName=i.string();continue}case 6:{if(r===48){t.data.push(i.uint32());continue}if(r===50){const o=i.uint32()+i.pos;for(;i.pos<o;)t.data.push(i.uint32());continue}break}case 7:{if(r!==57)break;t.time=i.double();continue}case 8:{if(r!==64)break;t.tx=i.bool();continue}case 9:{if(r!==72)break;t.dlc=i.int32();continue}case 10:{if(r!==80)break;t.hashCode=i.int32();continue}case 11:{if(r!==90)break;const o=se.decode(i,i.uint32());o.value!==void 0&&(t.properties[o.key]=o.value);continue}case 12:{if(r!==98)break;t.signalValues.push(k.decode(i,i.uint32()));continue}case 13:{if(r!==106)break;t.canFrameFlags=S.decode(i,i.uint32());continue}case 14:{if(r!==114)break;t.linFrameFlags=C.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{sourceId:c(e.sourceId)?globalThis.String(e.sourceId):"",sourceName:c(e.sourceName)?globalThis.String(e.sourceName):"",streamId:c(e.streamId)?globalThis.String(e.streamId):"",id:c(e.id)?globalThis.Number(e.id):0,messageName:c(e.messageName)?globalThis.String(e.messageName):"",data:globalThis.Array.isArray(e==null?void 0:e.data)?e.data.map(n=>globalThis.Number(n)):[],time:c(e.time)?globalThis.Number(e.time):0,tx:c(e.tx)?globalThis.Boolean(e.tx):!1,dlc:c(e.dlc)?globalThis.Number(e.dlc):0,hashCode:c(e.hashCode)?globalThis.Number(e.hashCode):0,properties:Zi(e.properties)?Object.entries(e.properties).reduce((n,[i,a])=>(n[i]=L.fromJSON(a),n),{}):{},signalValues:globalThis.Array.isArray(e==null?void 0:e.signalValues)?e.signalValues.map(n=>k.fromJSON(n)):[],canFrameFlags:c(e.canFrameFlags)?S.fromJSON(e.canFrameFlags):void 0,linFrameFlags:c(e.linFrameFlags)?C.fromJSON(e.linFrameFlags):void 0}},toJSON(e){var i,a;const n={};if(e.sourceId!==""&&(n.sourceId=e.sourceId),e.sourceName!==""&&(n.sourceName=e.sourceName),e.streamId!==""&&(n.streamId=e.streamId),e.id!==0&&(n.id=Math.round(e.id)),e.messageName!==""&&(n.messageName=e.messageName),(i=e.data)!=null&&i.length&&(n.data=e.data.map(t=>Math.round(t))),e.time!==0&&(n.time=e.time),e.tx!==!1&&(n.tx=e.tx),e.dlc!==0&&(n.dlc=Math.round(e.dlc)),e.hashCode!==0&&(n.hashCode=Math.round(e.hashCode)),e.properties){const t=Object.entries(e.properties);t.length>0&&(n.properties={},t.forEach(([r,o])=>{n.properties[r]=L.toJSON(o)}))}return(a=e.signalValues)!=null&&a.length&&(n.signalValues=e.signalValues.map(t=>k.toJSON(t))),e.canFrameFlags!==void 0&&(n.canFrameFlags=S.toJSON(e.canFrameFlags)),e.linFrameFlags!==void 0&&(n.linFrameFlags=C.toJSON(e.linFrameFlags)),n},create(e){return B.fromPartial(e??{})},fromPartial(e){var i,a;const n=tn();return n.sourceId=e.sourceId??"",n.sourceName=e.sourceName??"",n.streamId=e.streamId??"",n.id=e.id??0,n.messageName=e.messageName??"",n.data=((i=e.data)==null?void 0:i.map(t=>t))||[],n.time=e.time??0,n.tx=e.tx??!1,n.dlc=e.dlc??0,n.hashCode=e.hashCode??0,n.properties=Object.entries(e.properties??{}).reduce((t,[r,o])=>(o!==void 0&&(t[r]=L.fromPartial(o)),t),{}),n.signalValues=((a=e.signalValues)==null?void 0:a.map(t=>k.fromPartial(t)))||[],n.canFrameFlags=e.canFrameFlags!==void 0&&e.canFrameFlags!==null?S.fromPartial(e.canFrameFlags):void 0,n.linFrameFlags=e.linFrameFlags!==void 0&&e.linFrameFlags!==null?C.fromPartial(e.linFrameFlags):void 0,n}};function an(){return{key:"",value:void 0}}const se={encode(e,n=new d){return e.key!==""&&n.uint32(10).string(e.key),e.value!==void 0&&L.encode(e.value,n.uint32(18).fork()).join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=an();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.key=i.string();continue}case 2:{if(r!==18)break;t.value=L.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{key:c(e.key)?globalThis.String(e.key):"",value:c(e.value)?L.fromJSON(e.value):void 0}},toJSON(e){const n={};return e.key!==""&&(n.key=e.key),e.value!==void 0&&(n.value=L.toJSON(e.value)),n},create(e){return se.fromPartial(e??{})},fromPartial(e){const n=an();return n.key=e.key??"",n.value=e.value!==void 0&&e.value!==null?L.fromPartial(e.value):void 0,n}};function un(){return{items:[]}}const Ni={encode(e,n=new d){for(const i of e.items)B.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=un();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.items.push(B.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{items:globalThis.Array.isArray(e==null?void 0:e.items)?e.items.map(n=>B.fromJSON(n)):[]}},toJSON(e){var i;const n={};return(i=e.items)!=null&&i.length&&(n.items=e.items.map(a=>B.toJSON(a))),n},create(e){return Ni.fromPartial(e??{})},fromPartial(e){var i;const n=un();return n.items=((i=e.items)==null?void 0:i.map(a=>B.fromPartial(a)))||[],n}};function sn(){return{id:0,data:[],canFrameFlags:void 0,linFrameFlags:void 0}}const y={encode(e,n=new d){e.id!==0&&n.uint32(8).int32(e.id),n.uint32(18).fork();for(const i of e.data)n.uint32(i);return n.join(),e.canFrameFlags!==void 0&&S.encode(e.canFrameFlags,n.uint32(26).fork()).join(),e.linFrameFlags!==void 0&&C.encode(e.linFrameFlags,n.uint32(34).fork()).join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=sn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.id=i.int32();continue}case 2:{if(r===16){t.data.push(i.uint32());continue}if(r===18){const o=i.uint32()+i.pos;for(;i.pos<o;)t.data.push(i.uint32());continue}break}case 3:{if(r!==26)break;t.canFrameFlags=S.decode(i,i.uint32());continue}case 4:{if(r!==34)break;t.linFrameFlags=C.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{id:c(e.id)?globalThis.Number(e.id):0,data:globalThis.Array.isArray(e==null?void 0:e.data)?e.data.map(n=>globalThis.Number(n)):[],canFrameFlags:c(e.canFrameFlags)?S.fromJSON(e.canFrameFlags):void 0,linFrameFlags:c(e.linFrameFlags)?C.fromJSON(e.linFrameFlags):void 0}},toJSON(e){var i;const n={};return e.id!==0&&(n.id=Math.round(e.id)),(i=e.data)!=null&&i.length&&(n.data=e.data.map(a=>Math.round(a))),e.canFrameFlags!==void 0&&(n.canFrameFlags=S.toJSON(e.canFrameFlags)),e.linFrameFlags!==void 0&&(n.linFrameFlags=C.toJSON(e.linFrameFlags)),n},create(e){return y.fromPartial(e??{})},fromPartial(e){var i;const n=sn();return n.id=e.id??0,n.data=((i=e.data)==null?void 0:i.map(a=>a))||[],n.canFrameFlags=e.canFrameFlags!==void 0&&e.canFrameFlags!==null?S.fromPartial(e.canFrameFlags):void 0,n.linFrameFlags=e.linFrameFlags!==void 0&&e.linFrameFlags!==null?C.fromPartial(e.linFrameFlags):void 0,n}};function on(){return{id:0,messageName:"",messageQualifiedName:"",dataLength:0,signals:[],canFrameFlags:void 0}}const v={encode(e,n=new d){e.id!==0&&n.uint32(8).int32(e.id),e.messageName!==""&&n.uint32(18).string(e.messageName),e.messageQualifiedName!==""&&n.uint32(26).string(e.messageQualifiedName),e.dataLength!==0&&n.uint32(32).int32(e.dataLength);for(const i of e.signals)I.encode(i,n.uint32(42).fork()).join();return e.canFrameFlags!==void 0&&S.encode(e.canFrameFlags,n.uint32(50).fork()).join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=on();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.id=i.int32();continue}case 2:{if(r!==18)break;t.messageName=i.string();continue}case 3:{if(r!==26)break;t.messageQualifiedName=i.string();continue}case 4:{if(r!==32)break;t.dataLength=i.int32();continue}case 5:{if(r!==42)break;t.signals.push(I.decode(i,i.uint32()));continue}case 6:{if(r!==50)break;t.canFrameFlags=S.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{id:c(e.id)?globalThis.Number(e.id):0,messageName:c(e.messageName)?globalThis.String(e.messageName):"",messageQualifiedName:c(e.messageQualifiedName)?globalThis.String(e.messageQualifiedName):"",dataLength:c(e.dataLength)?globalThis.Number(e.dataLength):0,signals:globalThis.Array.isArray(e==null?void 0:e.signals)?e.signals.map(n=>I.fromJSON(n)):[],canFrameFlags:c(e.canFrameFlags)?S.fromJSON(e.canFrameFlags):void 0}},toJSON(e){var i;const n={};return e.id!==0&&(n.id=Math.round(e.id)),e.messageName!==""&&(n.messageName=e.messageName),e.messageQualifiedName!==""&&(n.messageQualifiedName=e.messageQualifiedName),e.dataLength!==0&&(n.dataLength=Math.round(e.dataLength)),(i=e.signals)!=null&&i.length&&(n.signals=e.signals.map(a=>I.toJSON(a))),e.canFrameFlags!==void 0&&(n.canFrameFlags=S.toJSON(e.canFrameFlags)),n},create(e){return v.fromPartial(e??{})},fromPartial(e){var i;const n=on();return n.id=e.id??0,n.messageName=e.messageName??"",n.messageQualifiedName=e.messageQualifiedName??"",n.dataLength=e.dataLength??0,n.signals=((i=e.signals)==null?void 0:i.map(a=>I.fromPartial(a)))||[],n.canFrameFlags=e.canFrameFlags!==void 0&&e.canFrameFlags!==null?S.fromPartial(e.canFrameFlags):void 0,n}};function dn(){return{items:[]}}const _i={encode(e,n=new d){for(const i of e.items)v.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=dn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.items.push(v.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{items:globalThis.Array.isArray(e==null?void 0:e.items)?e.items.map(n=>v.fromJSON(n)):[]}},toJSON(e){var i;const n={};return(i=e.items)!=null&&i.length&&(n.items=e.items.map(a=>v.toJSON(a))),n},create(e){return _i.fromPartial(e??{})},fromPartial(e){var i;const n=dn();return n.items=((i=e.items)==null?void 0:i.map(a=>v.fromPartial(a)))||[],n}};function fn(){return{dbcFiles:[],ldfFiles:[]}}const Ei={encode(e,n=new d){for(const i of e.dbcFiles)n.uint32(10).string(i);for(const i of e.ldfFiles)n.uint32(18).string(i);return n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=fn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.dbcFiles.push(i.string());continue}case 2:{if(r!==18)break;t.ldfFiles.push(i.string());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{dbcFiles:globalThis.Array.isArray(e==null?void 0:e.dbcFiles)?e.dbcFiles.map(n=>globalThis.String(n)):[],ldfFiles:globalThis.Array.isArray(e==null?void 0:e.ldfFiles)?e.ldfFiles.map(n=>globalThis.String(n)):[]}},toJSON(e){var i,a;const n={};return(i=e.dbcFiles)!=null&&i.length&&(n.dbcFiles=e.dbcFiles),(a=e.ldfFiles)!=null&&a.length&&(n.ldfFiles=e.ldfFiles),n},create(e){return Ei.fromPartial(e??{})},fromPartial(e){var i,a;const n=fn();return n.dbcFiles=((i=e.dbcFiles)==null?void 0:i.map(t=>t))||[],n.ldfFiles=((a=e.ldfFiles)==null?void 0:a.map(t=>t))||[],n}};function ln(){return{messageQualifiedName:"",delay:0}}const V={encode(e,n=new d){return e.messageQualifiedName!==""&&n.uint32(10).string(e.messageQualifiedName),e.delay!==0&&n.uint32(17).double(e.delay),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=ln();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.messageQualifiedName=i.string();continue}case 2:{if(r!==17)break;t.delay=i.double();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{messageQualifiedName:c(e.messageQualifiedName)?globalThis.String(e.messageQualifiedName):"",delay:c(e.delay)?globalThis.Number(e.delay):0}},toJSON(e){const n={};return e.messageQualifiedName!==""&&(n.messageQualifiedName=e.messageQualifiedName),e.delay!==0&&(n.delay=e.delay),n},create(e){return V.fromPartial(e??{})},fromPartial(e){const n=ln();return n.messageQualifiedName=e.messageQualifiedName??"",n.delay=e.delay??0,n}};function cn(){return{name:"",qualifiedName:"",entries:[]}}const Ai={encode(e,n=new d){e.name!==""&&n.uint32(10).string(e.name),e.qualifiedName!==""&&n.uint32(18).string(e.qualifiedName);for(const i of e.entries)V.encode(i,n.uint32(26).fork()).join();return n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=cn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.name=i.string();continue}case 2:{if(r!==18)break;t.qualifiedName=i.string();continue}case 3:{if(r!==26)break;t.entries.push(V.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{name:c(e.name)?globalThis.String(e.name):"",qualifiedName:c(e.qualifiedName)?globalThis.String(e.qualifiedName):"",entries:globalThis.Array.isArray(e==null?void 0:e.entries)?e.entries.map(n=>V.fromJSON(n)):[]}},toJSON(e){var i;const n={};return e.name!==""&&(n.name=e.name),e.qualifiedName!==""&&(n.qualifiedName=e.qualifiedName),(i=e.entries)!=null&&i.length&&(n.entries=e.entries.map(a=>V.toJSON(a))),n},create(e){return Ai.fromPartial(e??{})},fromPartial(e){var i;const n=cn();return n.name=e.name??"",n.qualifiedName=e.qualifiedName??"",n.entries=((i=e.entries)==null?void 0:i.map(a=>V.fromPartial(a)))||[],n}};function Zi(e){return typeof e=="object"&&e!==null}function c(e){return e!=null}var Si=(e=>(e[e.CAN_MODE_UNSPECIFIED=0]="CAN_MODE_UNSPECIFIED",e[e.CAN_MODE_CAN=1]="CAN_MODE_CAN",e[e.CAN_MODE_CAN_FD=2]="CAN_MODE_CAN_FD",e[e.CAN_MODE_CAN_FD_NONISO=3]="CAN_MODE_CAN_FD_NONISO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Si||{});function Ri(e){switch(e){case 0:case"CAN_MODE_UNSPECIFIED":return 0;case 1:case"CAN_MODE_CAN":return 1;case 2:case"CAN_MODE_CAN_FD":return 2;case 3:case"CAN_MODE_CAN_FD_NONISO":return 3;case-1:case"UNRECOGNIZED":default:return-1}}function Oi(e){switch(e){case 0:return"CAN_MODE_UNSPECIFIED";case 1:return"CAN_MODE_CAN";case 2:return"CAN_MODE_CAN_FD";case 3:return"CAN_MODE_CAN_FD_NONISO";case-1:default:return"UNRECOGNIZED"}}var Ti=(e=>(e[e.ACCESS_MODE_UNSPECIFIED=0]="ACCESS_MODE_UNSPECIFIED",e[e.ACCESS_MODE_INIT_ACCESS=1]="ACCESS_MODE_INIT_ACCESS",e[e.ACCESS_MODE_NO_INIT_ACCESS=2]="ACCESS_MODE_NO_INIT_ACCESS",e[e.ACCESS_MODE_EXCLUSIVE_ACCESS=3]="ACCESS_MODE_EXCLUSIVE_ACCESS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Ti||{});function mi(e){switch(e){case 0:case"ACCESS_MODE_UNSPECIFIED":return 0;case 1:case"ACCESS_MODE_INIT_ACCESS":return 1;case 2:case"ACCESS_MODE_NO_INIT_ACCESS":return 2;case 3:case"ACCESS_MODE_EXCLUSIVE_ACCESS":return 3;case-1:case"UNRECOGNIZED":default:return-1}}function hi(e){switch(e){case 0:return"ACCESS_MODE_UNSPECIFIED";case 1:return"ACCESS_MODE_INIT_ACCESS";case 2:return"ACCESS_MODE_NO_INIT_ACCESS";case 3:return"ACCESS_MODE_EXCLUSIVE_ACCESS";case-1:default:return"UNRECOGNIZED"}}var pi=(e=>(e[e.CAN_MESSAGE_FILTER_TYPE_UNSPECIFIED=0]="CAN_MESSAGE_FILTER_TYPE_UNSPECIFIED",e[e.CAN_MESSAGE_FILTER_TYPE_PASS=1]="CAN_MESSAGE_FILTER_TYPE_PASS",e[e.CAN_MESSAGE_FILTER_TYPE_BLOCK=2]="CAN_MESSAGE_FILTER_TYPE_BLOCK",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(pi||{});function Ii(e){switch(e){case 0:case"CAN_MESSAGE_FILTER_TYPE_UNSPECIFIED":return 0;case 1:case"CAN_MESSAGE_FILTER_TYPE_PASS":return 1;case 2:case"CAN_MESSAGE_FILTER_TYPE_BLOCK":return 2;case-1:case"UNRECOGNIZED":default:return-1}}function Ci(e){switch(e){case 0:return"CAN_MESSAGE_FILTER_TYPE_UNSPECIFIED";case 1:return"CAN_MESSAGE_FILTER_TYPE_PASS";case 2:return"CAN_MESSAGE_FILTER_TYPE_BLOCK";case-1:default:return"UNRECOGNIZED"}}var Fi=(e=>(e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_UNSPECIFIED=0]="SIGNAL_VALUE_TRIGGER_OPERATOR_UNSPECIFIED",e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_EQUAL_TO=1]="SIGNAL_VALUE_TRIGGER_OPERATOR_EQUAL_TO",e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_NOT_EQUAL_TO=2]="SIGNAL_VALUE_TRIGGER_OPERATOR_NOT_EQUAL_TO",e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_LESS_THAN=3]="SIGNAL_VALUE_TRIGGER_OPERATOR_LESS_THAN",e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_LESS_THAN_OR_EQUAL=4]="SIGNAL_VALUE_TRIGGER_OPERATOR_LESS_THAN_OR_EQUAL",e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_GREATER_THAN_OR_EQUAL=5]="SIGNAL_VALUE_TRIGGER_OPERATOR_GREATER_THAN_OR_EQUAL",e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_GREATER_THAN=6]="SIGNAL_VALUE_TRIGGER_OPERATOR_GREATER_THAN",e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_CHANGE_TO=7]="SIGNAL_VALUE_TRIGGER_OPERATOR_CHANGE_TO",e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_CHANGE_FROM=8]="SIGNAL_VALUE_TRIGGER_OPERATOR_CHANGE_FROM",e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_ON_CHANGE=9]="SIGNAL_VALUE_TRIGGER_OPERATOR_ON_CHANGE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Fi||{});function Mi(e){switch(e){case 0:case"SIGNAL_VALUE_TRIGGER_OPERATOR_UNSPECIFIED":return 0;case 1:case"SIGNAL_VALUE_TRIGGER_OPERATOR_EQUAL_TO":return 1;case 2:case"SIGNAL_VALUE_TRIGGER_OPERATOR_NOT_EQUAL_TO":return 2;case 3:case"SIGNAL_VALUE_TRIGGER_OPERATOR_LESS_THAN":return 3;case 4:case"SIGNAL_VALUE_TRIGGER_OPERATOR_LESS_THAN_OR_EQUAL":return 4;case 5:case"SIGNAL_VALUE_TRIGGER_OPERATOR_GREATER_THAN_OR_EQUAL":return 5;case 6:case"SIGNAL_VALUE_TRIGGER_OPERATOR_GREATER_THAN":return 6;case 7:case"SIGNAL_VALUE_TRIGGER_OPERATOR_CHANGE_TO":return 7;case 8:case"SIGNAL_VALUE_TRIGGER_OPERATOR_CHANGE_FROM":return 8;case 9:case"SIGNAL_VALUE_TRIGGER_OPERATOR_ON_CHANGE":return 9;case-1:case"UNRECOGNIZED":default:return-1}}function Li(e){switch(e){case 0:return"SIGNAL_VALUE_TRIGGER_OPERATOR_UNSPECIFIED";case 1:return"SIGNAL_VALUE_TRIGGER_OPERATOR_EQUAL_TO";case 2:return"SIGNAL_VALUE_TRIGGER_OPERATOR_NOT_EQUAL_TO";case 3:return"SIGNAL_VALUE_TRIGGER_OPERATOR_LESS_THAN";case 4:return"SIGNAL_VALUE_TRIGGER_OPERATOR_LESS_THAN_OR_EQUAL";case 5:return"SIGNAL_VALUE_TRIGGER_OPERATOR_GREATER_THAN_OR_EQUAL";case 6:return"SIGNAL_VALUE_TRIGGER_OPERATOR_GREATER_THAN";case 7:return"SIGNAL_VALUE_TRIGGER_OPERATOR_CHANGE_TO";case 8:return"SIGNAL_VALUE_TRIGGER_OPERATOR_CHANGE_FROM";case 9:return"SIGNAL_VALUE_TRIGGER_OPERATOR_ON_CHANGE";case-1:default:return"UNRECOGNIZED"}}var Pi=(e=>(e[e.TRIGGER_OPERATOR_UNSPECIFIED=0]="TRIGGER_OPERATOR_UNSPECIFIED",e[e.TRIGGER_OPERATOR_AND=1]="TRIGGER_OPERATOR_AND",e[e.TRIGGER_OPERATOR_OR=2]="TRIGGER_OPERATOR_OR",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Pi||{});function ie(e){switch(e){case 0:case"TRIGGER_OPERATOR_UNSPECIFIED":return 0;case 1:case"TRIGGER_OPERATOR_AND":return 1;case 2:case"TRIGGER_OPERATOR_OR":return 2;case-1:case"UNRECOGNIZED":default:return-1}}function re(e){switch(e){case 0:return"TRIGGER_OPERATOR_UNSPECIFIED";case 1:return"TRIGGER_OPERATOR_AND";case 2:return"TRIGGER_OPERATOR_OR";case-1:default:return"UNRECOGNIZED"}}var gi=(e=>(e[e.LOG_FILE_FORMAT_UNSPECIFIED=0]="LOG_FILE_FORMAT_UNSPECIFIED",e[e.LOG_FILE_FORMAT_KME24=1]="LOG_FILE_FORMAT_KME24",e[e.LOG_FILE_FORMAT_KME25=2]="LOG_FILE_FORMAT_KME25",e[e.LOG_FILE_FORMAT_VECTOR_ASC=3]="LOG_FILE_FORMAT_VECTOR_ASC",e[e.LOG_FILE_FORMAT_CSV=4]="LOG_FILE_FORMAT_CSV",e[e.LOG_FILE_FORMAT_PLAIN_ASC=5]="LOG_FILE_FORMAT_PLAIN_ASC",e[e.LOG_FILE_FORMAT_MEMO_LOG=6]="LOG_FILE_FORMAT_MEMO_LOG",e[e.LOG_FILE_FORMAT_KME40=7]="LOG_FILE_FORMAT_KME40",e[e.LOG_FILE_FORMAT_VECTOR_BLF=8]="LOG_FILE_FORMAT_VECTOR_BLF",e[e.LOG_FILE_FORMAT_KME50=9]="LOG_FILE_FORMAT_KME50",e[e.LOG_FILE_FORMAT_CSV_SIGNAL=100]="LOG_FILE_FORMAT_CSV_SIGNAL",e[e.LOG_FILE_FORMAT_MDF=101]="LOG_FILE_FORMAT_MDF",e[e.LOG_FILE_FORMAT_MATLAB=102]="LOG_FILE_FORMAT_MATLAB",e[e.LOG_FILE_FORMAT_J1587_ALT=104]="LOG_FILE_FORMAT_J1587_ALT",e[e.LOG_FILE_FORMAT_FAMOS=105]="LOG_FILE_FORMAT_FAMOS",e[e.LOG_FILE_FORMAT_MDF_SIGNAL=106]="LOG_FILE_FORMAT_MDF_SIGNAL",e[e.LOG_FILE_FORMAT_MDF_4X=107]="LOG_FILE_FORMAT_MDF_4X",e[e.LOG_FILE_FORMAT_MDF_4X_SIGNAL=108]="LOG_FILE_FORMAT_MDF_4X_SIGNAL",e[e.LOG_FILE_FORMAT_VECTOR_BLF_FD=109]="LOG_FILE_FORMAT_VECTOR_BLF_FD",e[e.LOG_FILE_FORMAT_XCP=200]="LOG_FILE_FORMAT_XCP",e[e.LOG_FILE_FORMAT_FAMOS_XCP=201]="LOG_FILE_FORMAT_FAMOS_XCP",e[e.LOG_FILE_FORMAT_DEBUG=1e3]="LOG_FILE_FORMAT_DEBUG",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(gi||{});function Ee(e){switch(e){case 0:case"LOG_FILE_FORMAT_UNSPECIFIED":return 0;case 1:case"LOG_FILE_FORMAT_KME24":return 1;case 2:case"LOG_FILE_FORMAT_KME25":return 2;case 3:case"LOG_FILE_FORMAT_VECTOR_ASC":return 3;case 4:case"LOG_FILE_FORMAT_CSV":return 4;case 5:case"LOG_FILE_FORMAT_PLAIN_ASC":return 5;case 6:case"LOG_FILE_FORMAT_MEMO_LOG":return 6;case 7:case"LOG_FILE_FORMAT_KME40":return 7;case 8:case"LOG_FILE_FORMAT_VECTOR_BLF":return 8;case 9:case"LOG_FILE_FORMAT_KME50":return 9;case 100:case"LOG_FILE_FORMAT_CSV_SIGNAL":return 100;case 101:case"LOG_FILE_FORMAT_MDF":return 101;case 102:case"LOG_FILE_FORMAT_MATLAB":return 102;case 104:case"LOG_FILE_FORMAT_J1587_ALT":return 104;case 105:case"LOG_FILE_FORMAT_FAMOS":return 105;case 106:case"LOG_FILE_FORMAT_MDF_SIGNAL":return 106;case 107:case"LOG_FILE_FORMAT_MDF_4X":return 107;case 108:case"LOG_FILE_FORMAT_MDF_4X_SIGNAL":return 108;case 109:case"LOG_FILE_FORMAT_VECTOR_BLF_FD":return 109;case 200:case"LOG_FILE_FORMAT_XCP":return 200;case 201:case"LOG_FILE_FORMAT_FAMOS_XCP":return 201;case 1e3:case"LOG_FILE_FORMAT_DEBUG":return 1e3;case-1:case"UNRECOGNIZED":default:return-1}}function Ae(e){switch(e){case 0:return"LOG_FILE_FORMAT_UNSPECIFIED";case 1:return"LOG_FILE_FORMAT_KME24";case 2:return"LOG_FILE_FORMAT_KME25";case 3:return"LOG_FILE_FORMAT_VECTOR_ASC";case 4:return"LOG_FILE_FORMAT_CSV";case 5:return"LOG_FILE_FORMAT_PLAIN_ASC";case 6:return"LOG_FILE_FORMAT_MEMO_LOG";case 7:return"LOG_FILE_FORMAT_KME40";case 8:return"LOG_FILE_FORMAT_VECTOR_BLF";case 9:return"LOG_FILE_FORMAT_KME50";case 100:return"LOG_FILE_FORMAT_CSV_SIGNAL";case 101:return"LOG_FILE_FORMAT_MDF";case 102:return"LOG_FILE_FORMAT_MATLAB";case 104:return"LOG_FILE_FORMAT_J1587_ALT";case 105:return"LOG_FILE_FORMAT_FAMOS";case 106:return"LOG_FILE_FORMAT_MDF_SIGNAL";case 107:return"LOG_FILE_FORMAT_MDF_4X";case 108:return"LOG_FILE_FORMAT_MDF_4X_SIGNAL";case 109:return"LOG_FILE_FORMAT_VECTOR_BLF_FD";case 200:return"LOG_FILE_FORMAT_XCP";case 201:return"LOG_FILE_FORMAT_FAMOS_XCP";case 1e3:return"LOG_FILE_FORMAT_DEBUG";case-1:default:return"UNRECOGNIZED"}}var bi=(e=>(e[e.FILE_CONFLICT_ACTION_UNSPECIFIED=0]="FILE_CONFLICT_ACTION_UNSPECIFIED",e[e.FILE_CONFLICT_ACTION_OVERWRITE=1]="FILE_CONFLICT_ACTION_OVERWRITE",e[e.FILE_CONFLICT_ACTION_APPEND_INDEX=2]="FILE_CONFLICT_ACTION_APPEND_INDEX",e[e.FILE_CONFLICT_ACTION_APPEND_TIMESTAMP=3]="FILE_CONFLICT_ACTION_APPEND_TIMESTAMP",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(bi||{});function Se(e){switch(e){case 0:case"FILE_CONFLICT_ACTION_UNSPECIFIED":return 0;case 1:case"FILE_CONFLICT_ACTION_OVERWRITE":return 1;case 2:case"FILE_CONFLICT_ACTION_APPEND_INDEX":return 2;case 3:case"FILE_CONFLICT_ACTION_APPEND_TIMESTAMP":return 3;case-1:case"UNRECOGNIZED":default:return-1}}function Re(e){switch(e){case 0:return"FILE_CONFLICT_ACTION_UNSPECIFIED";case 1:return"FILE_CONFLICT_ACTION_OVERWRITE";case 2:return"FILE_CONFLICT_ACTION_APPEND_INDEX";case 3:return"FILE_CONFLICT_ACTION_APPEND_TIMESTAMP";case-1:default:return"UNRECOGNIZED"}}var Gi=(e=>(e[e.DECIMAL_CHAR_UNSPECIFIED=0]="DECIMAL_CHAR_UNSPECIFIED",e[e.DECIMAL_CHAR_DEC_DOT=1]="DECIMAL_CHAR_DEC_DOT",e[e.DECIMAL_CHAR_DEC_COMMA=2]="DECIMAL_CHAR_DEC_COMMA",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Gi||{});function Oe(e){switch(e){case 0:case"DECIMAL_CHAR_UNSPECIFIED":return 0;case 1:case"DECIMAL_CHAR_DEC_DOT":return 1;case 2:case"DECIMAL_CHAR_DEC_COMMA":return 2;case-1:case"UNRECOGNIZED":default:return-1}}function Te(e){switch(e){case 0:return"DECIMAL_CHAR_UNSPECIFIED";case 1:return"DECIMAL_CHAR_DEC_DOT";case 2:return"DECIMAL_CHAR_DEC_COMMA";case-1:default:return"UNRECOGNIZED"}}var Di=(e=>(e[e.SEPARATOR_UNSPECIFIED=0]="SEPARATOR_UNSPECIFIED",e[e.SEPARATOR_COMMA=1]="SEPARATOR_COMMA",e[e.SEPARATOR_SEMICOLON=2]="SEPARATOR_SEMICOLON",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Di||{});function me(e){switch(e){case 0:case"SEPARATOR_UNSPECIFIED":return 0;case 1:case"SEPARATOR_COMMA":return 1;case 2:case"SEPARATOR_SEMICOLON":return 2;case-1:case"UNRECOGNIZED":default:return-1}}function he(e){switch(e){case 0:return"SEPARATOR_UNSPECIFIED";case 1:return"SEPARATOR_COMMA";case 2:return"SEPARATOR_SEMICOLON";case-1:default:return"UNRECOGNIZED"}}var ki=(e=>(e[e.TIME_REFERENCE_UNSPECIFIED=0]="TIME_REFERENCE_UNSPECIFIED",e[e.TIME_REFERENCE_FIRST_TRIGGER=1]="TIME_REFERENCE_FIRST_TRIGGER",e[e.TIME_REFERENCE_START_OF_MEASUREMENT=2]="TIME_REFERENCE_START_OF_MEASUREMENT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(ki||{});function pe(e){switch(e){case 0:case"TIME_REFERENCE_UNSPECIFIED":return 0;case 1:case"TIME_REFERENCE_FIRST_TRIGGER":return 1;case 2:case"TIME_REFERENCE_START_OF_MEASUREMENT":return 2;case-1:case"UNRECOGNIZED":default:return-1}}function Ie(e){switch(e){case 0:return"TIME_REFERENCE_UNSPECIFIED";case 1:return"TIME_REFERENCE_FIRST_TRIGGER";case 2:return"TIME_REFERENCE_START_OF_MEASUREMENT";case-1:default:return"UNRECOGNIZED"}}function Nn(){return{canMode:0,accessMode:0,silentMode:!1,busParamsBitRate:0,busParams:void 0,busParamsDataPhaseBitRate:void 0,busParamsDataPhase:void 0}}const U={encode(e,n=new d){return e.canMode!==0&&n.uint32(8).int32(e.canMode),e.accessMode!==0&&n.uint32(16).int32(e.accessMode),e.silentMode!==!1&&n.uint32(24).bool(e.silentMode),e.busParamsBitRate!==0&&n.uint32(32).int32(e.busParamsBitRate),e.busParams!==void 0&&l.encode(e.busParams,n.uint32(42).fork()).join(),e.busParamsDataPhaseBitRate!==void 0&&n.uint32(48).int32(e.busParamsDataPhaseBitRate),e.busParamsDataPhase!==void 0&&l.encode(e.busParamsDataPhase,n.uint32(58).fork()).join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Nn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.canMode=i.int32();continue}case 2:{if(r!==16)break;t.accessMode=i.int32();continue}case 3:{if(r!==24)break;t.silentMode=i.bool();continue}case 4:{if(r!==32)break;t.busParamsBitRate=i.int32();continue}case 5:{if(r!==42)break;t.busParams=l.decode(i,i.uint32());continue}case 6:{if(r!==48)break;t.busParamsDataPhaseBitRate=i.int32();continue}case 7:{if(r!==58)break;t.busParamsDataPhase=l.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{canMode:u(e.canMode)?Ri(e.canMode):0,accessMode:u(e.accessMode)?mi(e.accessMode):0,silentMode:u(e.silentMode)?globalThis.Boolean(e.silentMode):!1,busParamsBitRate:u(e.busParamsBitRate)?globalThis.Number(e.busParamsBitRate):0,busParams:u(e.busParams)?l.fromJSON(e.busParams):void 0,busParamsDataPhaseBitRate:u(e.busParamsDataPhaseBitRate)?globalThis.Number(e.busParamsDataPhaseBitRate):void 0,busParamsDataPhase:u(e.busParamsDataPhase)?l.fromJSON(e.busParamsDataPhase):void 0}},toJSON(e){const n={};return e.canMode!==0&&(n.canMode=Oi(e.canMode)),e.accessMode!==0&&(n.accessMode=hi(e.accessMode)),e.silentMode!==!1&&(n.silentMode=e.silentMode),e.busParamsBitRate!==0&&(n.busParamsBitRate=Math.round(e.busParamsBitRate)),e.busParams!==void 0&&(n.busParams=l.toJSON(e.busParams)),e.busParamsDataPhaseBitRate!==void 0&&(n.busParamsDataPhaseBitRate=Math.round(e.busParamsDataPhaseBitRate)),e.busParamsDataPhase!==void 0&&(n.busParamsDataPhase=l.toJSON(e.busParamsDataPhase)),n},create(e){return U.fromPartial(e??{})},fromPartial(e){const n=Nn();return n.canMode=e.canMode??0,n.accessMode=e.accessMode??0,n.silentMode=e.silentMode??!1,n.busParamsBitRate=e.busParamsBitRate??0,n.busParams=e.busParams!==void 0&&e.busParams!==null?l.fromPartial(e.busParams):void 0,n.busParamsDataPhaseBitRate=e.busParamsDataPhaseBitRate??void 0,n.busParamsDataPhase=e.busParamsDataPhase!==void 0&&e.busParamsDataPhase!==null?l.fromPartial(e.busParamsDataPhase):void 0,n}};function _n(){return{bitRate:0,protocolVersion:"",masterMode:!1,databaseFile:void 0,scheduleTable:void 0,saveMessageInfo:!1}}const J={encode(e,n=new d){return e.bitRate!==0&&n.uint32(8).int32(e.bitRate),e.protocolVersion!==""&&n.uint32(18).string(e.protocolVersion),e.masterMode!==!1&&n.uint32(24).bool(e.masterMode),e.databaseFile!==void 0&&n.uint32(34).string(e.databaseFile),e.scheduleTable!==void 0&&n.uint32(42).string(e.scheduleTable),e.saveMessageInfo!==!1&&n.uint32(48).bool(e.saveMessageInfo),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=_n();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.bitRate=i.int32();continue}case 2:{if(r!==18)break;t.protocolVersion=i.string();continue}case 3:{if(r!==24)break;t.masterMode=i.bool();continue}case 4:{if(r!==34)break;t.databaseFile=i.string();continue}case 5:{if(r!==42)break;t.scheduleTable=i.string();continue}case 6:{if(r!==48)break;t.saveMessageInfo=i.bool();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{bitRate:u(e.bitRate)?globalThis.Number(e.bitRate):0,protocolVersion:u(e.protocolVersion)?globalThis.String(e.protocolVersion):"",masterMode:u(e.masterMode)?globalThis.Boolean(e.masterMode):!1,databaseFile:u(e.databaseFile)?globalThis.String(e.databaseFile):void 0,scheduleTable:u(e.scheduleTable)?globalThis.String(e.scheduleTable):void 0,saveMessageInfo:u(e.saveMessageInfo)?globalThis.Boolean(e.saveMessageInfo):!1}},toJSON(e){const n={};return e.bitRate!==0&&(n.bitRate=Math.round(e.bitRate)),e.protocolVersion!==""&&(n.protocolVersion=e.protocolVersion),e.masterMode!==!1&&(n.masterMode=e.masterMode),e.databaseFile!==void 0&&(n.databaseFile=e.databaseFile),e.scheduleTable!==void 0&&(n.scheduleTable=e.scheduleTable),e.saveMessageInfo!==!1&&(n.saveMessageInfo=e.saveMessageInfo),n},create(e){return J.fromPartial(e??{})},fromPartial(e){const n=_n();return n.bitRate=e.bitRate??0,n.protocolVersion=e.protocolVersion??"",n.masterMode=e.masterMode??!1,n.databaseFile=e.databaseFile??void 0,n.scheduleTable=e.scheduleTable??void 0,n.saveMessageInfo=e.saveMessageInfo??!1,n}};function En(){return{channelNumber:0,lockedToSerialNumber:!1,deviceProductCode:"",deviceSerialNumber:"",channelNumberOnDevice:0,deviceCardType:0,deviceCardNumber:0,canConfiguration:void 0,linConfiguration:void 0}}const x={encode(e,n=new d){return e.channelNumber!==0&&n.uint32(8).int32(e.channelNumber),e.lockedToSerialNumber!==!1&&n.uint32(16).bool(e.lockedToSerialNumber),e.deviceProductCode!==""&&n.uint32(26).string(e.deviceProductCode),e.deviceSerialNumber!==""&&n.uint32(34).string(e.deviceSerialNumber),e.channelNumberOnDevice!==0&&n.uint32(40).int32(e.channelNumberOnDevice),e.deviceCardType!==0&&n.uint32(48).int32(e.deviceCardType),e.deviceCardNumber!==0&&n.uint32(56).int32(e.deviceCardNumber),e.canConfiguration!==void 0&&U.encode(e.canConfiguration,n.uint32(66).fork()).join(),e.linConfiguration!==void 0&&J.encode(e.linConfiguration,n.uint32(74).fork()).join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=En();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.channelNumber=i.int32();continue}case 2:{if(r!==16)break;t.lockedToSerialNumber=i.bool();continue}case 3:{if(r!==26)break;t.deviceProductCode=i.string();continue}case 4:{if(r!==34)break;t.deviceSerialNumber=i.string();continue}case 5:{if(r!==40)break;t.channelNumberOnDevice=i.int32();continue}case 6:{if(r!==48)break;t.deviceCardType=i.int32();continue}case 7:{if(r!==56)break;t.deviceCardNumber=i.int32();continue}case 8:{if(r!==66)break;t.canConfiguration=U.decode(i,i.uint32());continue}case 9:{if(r!==74)break;t.linConfiguration=J.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{channelNumber:u(e.channelNumber)?globalThis.Number(e.channelNumber):0,lockedToSerialNumber:u(e.lockedToSerialNumber)?globalThis.Boolean(e.lockedToSerialNumber):!1,deviceProductCode:u(e.deviceProductCode)?globalThis.String(e.deviceProductCode):"",deviceSerialNumber:u(e.deviceSerialNumber)?globalThis.String(e.deviceSerialNumber):"",channelNumberOnDevice:u(e.channelNumberOnDevice)?globalThis.Number(e.channelNumberOnDevice):0,deviceCardType:u(e.deviceCardType)?globalThis.Number(e.deviceCardType):0,deviceCardNumber:u(e.deviceCardNumber)?globalThis.Number(e.deviceCardNumber):0,canConfiguration:u(e.canConfiguration)?U.fromJSON(e.canConfiguration):void 0,linConfiguration:u(e.linConfiguration)?J.fromJSON(e.linConfiguration):void 0}},toJSON(e){const n={};return e.channelNumber!==0&&(n.channelNumber=Math.round(e.channelNumber)),e.lockedToSerialNumber!==!1&&(n.lockedToSerialNumber=e.lockedToSerialNumber),e.deviceProductCode!==""&&(n.deviceProductCode=e.deviceProductCode),e.deviceSerialNumber!==""&&(n.deviceSerialNumber=e.deviceSerialNumber),e.channelNumberOnDevice!==0&&(n.channelNumberOnDevice=Math.round(e.channelNumberOnDevice)),e.deviceCardType!==0&&(n.deviceCardType=Math.round(e.deviceCardType)),e.deviceCardNumber!==0&&(n.deviceCardNumber=Math.round(e.deviceCardNumber)),e.canConfiguration!==void 0&&(n.canConfiguration=U.toJSON(e.canConfiguration)),e.linConfiguration!==void 0&&(n.linConfiguration=J.toJSON(e.linConfiguration)),n},create(e){return x.fromPartial(e??{})},fromPartial(e){const n=En();return n.channelNumber=e.channelNumber??0,n.lockedToSerialNumber=e.lockedToSerialNumber??!1,n.deviceProductCode=e.deviceProductCode??"",n.deviceSerialNumber=e.deviceSerialNumber??"",n.channelNumberOnDevice=e.channelNumberOnDevice??0,n.deviceCardType=e.deviceCardType??0,n.deviceCardNumber=e.deviceCardNumber??0,n.canConfiguration=e.canConfiguration!==void 0&&e.canConfiguration!==null?U.fromPartial(e.canConfiguration):void 0,n.linConfiguration=e.linConfiguration!==void 0&&e.linConfiguration!==null?J.fromPartial(e.linConfiguration):void 0,n}};function An(){return{channelIdentifiers:{},logFile:"",iterations:0,sampleRateMs:0,transceiverMode:0,includeErrorFrames:!1,sendFirstMessageMode:0,timeOffsetMs:void 0,timeFactor:void 0,lowerVariance:void 0,higherVariance:void 0,increaseSpeed:void 0}}const w={encode(e,n=new d){return Object.entries(e.channelIdentifiers).forEach(([i,a])=>{oe.encode({key:i,value:a},n.uint32(10).fork()).join()}),e.logFile!==""&&n.uint32(18).string(e.logFile),e.iterations!==0&&n.uint32(24).int32(e.iterations),e.sampleRateMs!==0&&n.uint32(32).int32(e.sampleRateMs),e.transceiverMode!==0&&n.uint32(40).int32(e.transceiverMode),e.includeErrorFrames!==!1&&n.uint32(48).bool(e.includeErrorFrames),e.sendFirstMessageMode!==0&&n.uint32(56).int32(e.sendFirstMessageMode),e.timeOffsetMs!==void 0&&n.uint32(64).int32(e.timeOffsetMs),e.timeFactor!==void 0&&n.uint32(73).double(e.timeFactor),e.lowerVariance!==void 0&&n.uint32(81).double(e.lowerVariance),e.higherVariance!==void 0&&n.uint32(89).double(e.higherVariance),e.increaseSpeed!==void 0&&n.uint32(96).bool(e.increaseSpeed),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=An();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;const o=oe.decode(i,i.uint32());o.value!==void 0&&(t.channelIdentifiers[o.key]=o.value);continue}case 2:{if(r!==18)break;t.logFile=i.string();continue}case 3:{if(r!==24)break;t.iterations=i.int32();continue}case 4:{if(r!==32)break;t.sampleRateMs=i.int32();continue}case 5:{if(r!==40)break;t.transceiverMode=i.int32();continue}case 6:{if(r!==48)break;t.includeErrorFrames=i.bool();continue}case 7:{if(r!==56)break;t.sendFirstMessageMode=i.int32();continue}case 8:{if(r!==64)break;t.timeOffsetMs=i.int32();continue}case 9:{if(r!==73)break;t.timeFactor=i.double();continue}case 10:{if(r!==81)break;t.lowerVariance=i.double();continue}case 11:{if(r!==89)break;t.higherVariance=i.double();continue}case 12:{if(r!==96)break;t.increaseSpeed=i.bool();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{channelIdentifiers:Yi(e.channelIdentifiers)?Object.entries(e.channelIdentifiers).reduce((n,[i,a])=>(n[i]=String(a),n),{}):{},logFile:u(e.logFile)?globalThis.String(e.logFile):"",iterations:u(e.iterations)?globalThis.Number(e.iterations):0,sampleRateMs:u(e.sampleRateMs)?globalThis.Number(e.sampleRateMs):0,transceiverMode:u(e.transceiverMode)?globalThis.Number(e.transceiverMode):0,includeErrorFrames:u(e.includeErrorFrames)?globalThis.Boolean(e.includeErrorFrames):!1,sendFirstMessageMode:u(e.sendFirstMessageMode)?globalThis.Number(e.sendFirstMessageMode):0,timeOffsetMs:u(e.timeOffsetMs)?globalThis.Number(e.timeOffsetMs):void 0,timeFactor:u(e.timeFactor)?globalThis.Number(e.timeFactor):void 0,lowerVariance:u(e.lowerVariance)?globalThis.Number(e.lowerVariance):void 0,higherVariance:u(e.higherVariance)?globalThis.Number(e.higherVariance):void 0,increaseSpeed:u(e.increaseSpeed)?globalThis.Boolean(e.increaseSpeed):void 0}},toJSON(e){const n={};if(e.channelIdentifiers){const i=Object.entries(e.channelIdentifiers);i.length>0&&(n.channelIdentifiers={},i.forEach(([a,t])=>{n.channelIdentifiers[a]=t}))}return e.logFile!==""&&(n.logFile=e.logFile),e.iterations!==0&&(n.iterations=Math.round(e.iterations)),e.sampleRateMs!==0&&(n.sampleRateMs=Math.round(e.sampleRateMs)),e.transceiverMode!==0&&(n.transceiverMode=Math.round(e.transceiverMode)),e.includeErrorFrames!==!1&&(n.includeErrorFrames=e.includeErrorFrames),e.sendFirstMessageMode!==0&&(n.sendFirstMessageMode=Math.round(e.sendFirstMessageMode)),e.timeOffsetMs!==void 0&&(n.timeOffsetMs=Math.round(e.timeOffsetMs)),e.timeFactor!==void 0&&(n.timeFactor=e.timeFactor),e.lowerVariance!==void 0&&(n.lowerVariance=e.lowerVariance),e.higherVariance!==void 0&&(n.higherVariance=e.higherVariance),e.increaseSpeed!==void 0&&(n.increaseSpeed=e.increaseSpeed),n},create(e){return w.fromPartial(e??{})},fromPartial(e){const n=An();return n.channelIdentifiers=Object.entries(e.channelIdentifiers??{}).reduce((i,[a,t])=>(t!==void 0&&(i[a]=globalThis.String(t)),i),{}),n.logFile=e.logFile??"",n.iterations=e.iterations??0,n.sampleRateMs=e.sampleRateMs??0,n.transceiverMode=e.transceiverMode??0,n.includeErrorFrames=e.includeErrorFrames??!1,n.sendFirstMessageMode=e.sendFirstMessageMode??0,n.timeOffsetMs=e.timeOffsetMs??void 0,n.timeFactor=e.timeFactor??void 0,n.lowerVariance=e.lowerVariance??void 0,n.higherVariance=e.higherVariance??void 0,n.increaseSpeed=e.increaseSpeed??void 0,n}};function Sn(){return{key:"",value:""}}const oe={encode(e,n=new d){return e.key!==""&&n.uint32(10).string(e.key),e.value!==""&&n.uint32(18).string(e.value),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Sn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.key=i.string();continue}case 2:{if(r!==18)break;t.value=i.string();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{key:u(e.key)?globalThis.String(e.key):"",value:u(e.value)?globalThis.String(e.value):""}},toJSON(e){const n={};return e.key!==""&&(n.key=e.key),e.value!==""&&(n.value=e.value),n},create(e){return oe.fromPartial(e??{})},fromPartial(e){const n=Sn();return n.key=e.key??"",n.value=e.value??"",n}};function Rn(){return{channelIdentifier:"",frame:void 0,randomInterval:!1,constantIntervalMs:0,randomIntervalMinMs:0,randomIntervalMaxMs:0,numberOfMessages:0,randomDataLength:!1,randomMessageData:!1,randomIdentifier:!1,scanIdentifier:!1,identifierMin:0,identifierMax:0,randomBurstSize:!1,constantBurstSize:0,randomBurstSizeMin:0,randomBurstSizeMax:0}}const H={encode(e,n=new d){return e.channelIdentifier!==""&&n.uint32(10).string(e.channelIdentifier),e.frame!==void 0&&y.encode(e.frame,n.uint32(18).fork()).join(),e.randomInterval!==!1&&n.uint32(24).bool(e.randomInterval),e.constantIntervalMs!==0&&n.uint32(33).double(e.constantIntervalMs),e.randomIntervalMinMs!==0&&n.uint32(40).int32(e.randomIntervalMinMs),e.randomIntervalMaxMs!==0&&n.uint32(48).int32(e.randomIntervalMaxMs),e.numberOfMessages!==0&&n.uint32(56).int32(e.numberOfMessages),e.randomDataLength!==!1&&n.uint32(64).bool(e.randomDataLength),e.randomMessageData!==!1&&n.uint32(72).bool(e.randomMessageData),e.randomIdentifier!==!1&&n.uint32(80).bool(e.randomIdentifier),e.scanIdentifier!==!1&&n.uint32(88).bool(e.scanIdentifier),e.identifierMin!==0&&n.uint32(96).int32(e.identifierMin),e.identifierMax!==0&&n.uint32(104).int32(e.identifierMax),e.randomBurstSize!==!1&&n.uint32(112).bool(e.randomBurstSize),e.constantBurstSize!==0&&n.uint32(120).int32(e.constantBurstSize),e.randomBurstSizeMin!==0&&n.uint32(128).int32(e.randomBurstSizeMin),e.randomBurstSizeMax!==0&&n.uint32(136).int32(e.randomBurstSizeMax),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Rn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.channelIdentifier=i.string();continue}case 2:{if(r!==18)break;t.frame=y.decode(i,i.uint32());continue}case 3:{if(r!==24)break;t.randomInterval=i.bool();continue}case 4:{if(r!==33)break;t.constantIntervalMs=i.double();continue}case 5:{if(r!==40)break;t.randomIntervalMinMs=i.int32();continue}case 6:{if(r!==48)break;t.randomIntervalMaxMs=i.int32();continue}case 7:{if(r!==56)break;t.numberOfMessages=i.int32();continue}case 8:{if(r!==64)break;t.randomDataLength=i.bool();continue}case 9:{if(r!==72)break;t.randomMessageData=i.bool();continue}case 10:{if(r!==80)break;t.randomIdentifier=i.bool();continue}case 11:{if(r!==88)break;t.scanIdentifier=i.bool();continue}case 12:{if(r!==96)break;t.identifierMin=i.int32();continue}case 13:{if(r!==104)break;t.identifierMax=i.int32();continue}case 14:{if(r!==112)break;t.randomBurstSize=i.bool();continue}case 15:{if(r!==120)break;t.constantBurstSize=i.int32();continue}case 16:{if(r!==128)break;t.randomBurstSizeMin=i.int32();continue}case 17:{if(r!==136)break;t.randomBurstSizeMax=i.int32();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{channelIdentifier:u(e.channelIdentifier)?globalThis.String(e.channelIdentifier):"",frame:u(e.frame)?y.fromJSON(e.frame):void 0,randomInterval:u(e.randomInterval)?globalThis.Boolean(e.randomInterval):!1,constantIntervalMs:u(e.constantIntervalMs)?globalThis.Number(e.constantIntervalMs):0,randomIntervalMinMs:u(e.randomIntervalMinMs)?globalThis.Number(e.randomIntervalMinMs):0,randomIntervalMaxMs:u(e.randomIntervalMaxMs)?globalThis.Number(e.randomIntervalMaxMs):0,numberOfMessages:u(e.numberOfMessages)?globalThis.Number(e.numberOfMessages):0,randomDataLength:u(e.randomDataLength)?globalThis.Boolean(e.randomDataLength):!1,randomMessageData:u(e.randomMessageData)?globalThis.Boolean(e.randomMessageData):!1,randomIdentifier:u(e.randomIdentifier)?globalThis.Boolean(e.randomIdentifier):!1,scanIdentifier:u(e.scanIdentifier)?globalThis.Boolean(e.scanIdentifier):!1,identifierMin:u(e.identifierMin)?globalThis.Number(e.identifierMin):0,identifierMax:u(e.identifierMax)?globalThis.Number(e.identifierMax):0,randomBurstSize:u(e.randomBurstSize)?globalThis.Boolean(e.randomBurstSize):!1,constantBurstSize:u(e.constantBurstSize)?globalThis.Number(e.constantBurstSize):0,randomBurstSizeMin:u(e.randomBurstSizeMin)?globalThis.Number(e.randomBurstSizeMin):0,randomBurstSizeMax:u(e.randomBurstSizeMax)?globalThis.Number(e.randomBurstSizeMax):0}},toJSON(e){const n={};return e.channelIdentifier!==""&&(n.channelIdentifier=e.channelIdentifier),e.frame!==void 0&&(n.frame=y.toJSON(e.frame)),e.randomInterval!==!1&&(n.randomInterval=e.randomInterval),e.constantIntervalMs!==0&&(n.constantIntervalMs=e.constantIntervalMs),e.randomIntervalMinMs!==0&&(n.randomIntervalMinMs=Math.round(e.randomIntervalMinMs)),e.randomIntervalMaxMs!==0&&(n.randomIntervalMaxMs=Math.round(e.randomIntervalMaxMs)),e.numberOfMessages!==0&&(n.numberOfMessages=Math.round(e.numberOfMessages)),e.randomDataLength!==!1&&(n.randomDataLength=e.randomDataLength),e.randomMessageData!==!1&&(n.randomMessageData=e.randomMessageData),e.randomIdentifier!==!1&&(n.randomIdentifier=e.randomIdentifier),e.scanIdentifier!==!1&&(n.scanIdentifier=e.scanIdentifier),e.identifierMin!==0&&(n.identifierMin=Math.round(e.identifierMin)),e.identifierMax!==0&&(n.identifierMax=Math.round(e.identifierMax)),e.randomBurstSize!==!1&&(n.randomBurstSize=e.randomBurstSize),e.constantBurstSize!==0&&(n.constantBurstSize=Math.round(e.constantBurstSize)),e.randomBurstSizeMin!==0&&(n.randomBurstSizeMin=Math.round(e.randomBurstSizeMin)),e.randomBurstSizeMax!==0&&(n.randomBurstSizeMax=Math.round(e.randomBurstSizeMax)),n},create(e){return H.fromPartial(e??{})},fromPartial(e){const n=Rn();return n.channelIdentifier=e.channelIdentifier??"",n.frame=e.frame!==void 0&&e.frame!==null?y.fromPartial(e.frame):void 0,n.randomInterval=e.randomInterval??!1,n.constantIntervalMs=e.constantIntervalMs??0,n.randomIntervalMinMs=e.randomIntervalMinMs??0,n.randomIntervalMaxMs=e.randomIntervalMaxMs??0,n.numberOfMessages=e.numberOfMessages??0,n.randomDataLength=e.randomDataLength??!1,n.randomMessageData=e.randomMessageData??!1,n.randomIdentifier=e.randomIdentifier??!1,n.scanIdentifier=e.scanIdentifier??!1,n.identifierMin=e.identifierMin??0,n.identifierMax=e.identifierMax??0,n.randomBurstSize=e.randomBurstSize??!1,n.constantBurstSize=e.constantBurstSize??0,n.randomBurstSizeMin=e.randomBurstSizeMin??0,n.randomBurstSizeMax=e.randomBurstSizeMax??0,n}};function On(){return{stdCanIds:"",extCanIds:"",filterType:0}}const F={encode(e,n=new d){return e.stdCanIds!==""&&n.uint32(10).string(e.stdCanIds),e.extCanIds!==""&&n.uint32(18).string(e.extCanIds),e.filterType!==0&&n.uint32(24).int32(e.filterType),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=On();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.stdCanIds=i.string();continue}case 2:{if(r!==18)break;t.extCanIds=i.string();continue}case 3:{if(r!==24)break;t.filterType=i.int32();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{stdCanIds:u(e.stdCanIds)?globalThis.String(e.stdCanIds):"",extCanIds:u(e.extCanIds)?globalThis.String(e.extCanIds):"",filterType:u(e.filterType)?Ii(e.filterType):0}},toJSON(e){const n={};return e.stdCanIds!==""&&(n.stdCanIds=e.stdCanIds),e.extCanIds!==""&&(n.extCanIds=e.extCanIds),e.filterType!==0&&(n.filterType=Ci(e.filterType)),n},create(e){return F.fromPartial(e??{})},fromPartial(e){const n=On();return n.stdCanIds=e.stdCanIds??"",n.extCanIds=e.extCanIds??"",n.filterType=e.filterType??0,n}};function Tn(){return{selectedSignals:[]}}const z={encode(e,n=new d){for(const i of e.selectedSignals)n.uint32(10).string(i);return n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Tn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.selectedSignals.push(i.string());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{selectedSignals:globalThis.Array.isArray(e==null?void 0:e.selectedSignals)?e.selectedSignals.map(n=>globalThis.String(n)):[]}},toJSON(e){var i;const n={};return(i=e.selectedSignals)!=null&&i.length&&(n.selectedSignals=e.selectedSignals),n},create(e){return z.fromPartial(e??{})},fromPartial(e){var i;const n=Tn();return n.selectedSignals=((i=e.selectedSignals)==null?void 0:i.map(a=>a))||[],n}};function mn(){return{databaseFiles:[]}}const Q={encode(e,n=new d){for(const i of e.databaseFiles)n.uint32(10).string(i);return n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=mn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.databaseFiles.push(i.string());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{databaseFiles:globalThis.Array.isArray(e==null?void 0:e.databaseFiles)?e.databaseFiles.map(n=>globalThis.String(n)):[]}},toJSON(e){var i;const n={};return(i=e.databaseFiles)!=null&&i.length&&(n.databaseFiles=e.databaseFiles),n},create(e){return Q.fromPartial(e??{})},fromPartial(e){var i;const n=mn();return n.databaseFiles=((i=e.databaseFiles)==null?void 0:i.map(a=>a))||[],n}};function hn(){return{j1939Settings:void 0}}const X={encode(e,n=new d){return e.j1939Settings!==void 0&&q.encode(e.j1939Settings,n.uint32(10).fork()).join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=hn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.j1939Settings=q.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{j1939Settings:u(e.j1939Settings)?q.fromJSON(e.j1939Settings):void 0}},toJSON(e){const n={};return e.j1939Settings!==void 0&&(n.j1939Settings=q.toJSON(e.j1939Settings)),n},create(e){return X.fromPartial(e??{})},fromPartial(e){const n=hn();return n.j1939Settings=e.j1939Settings!==void 0&&e.j1939Settings!==null?q.fromPartial(e.j1939Settings):void 0,n}};function pn(){return{}}const q={encode(e,n=new d){return n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=pn();for(;i.pos<a;){const r=i.uint32();if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{}},toJSON(e){return{}},create(e){return q.fromPartial(e??{})},fromPartial(e){return pn()}};function In(){return{extensionName:"",configuration:void 0}}const Z={encode(e,n=new d){return e.extensionName!==""&&n.uint32(10).string(e.extensionName),e.configuration!==void 0&&n.uint32(18).string(e.configuration),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=In();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.extensionName=i.string();continue}case 2:{if(r!==18)break;t.configuration=i.string();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{extensionName:u(e.extensionName)?globalThis.String(e.extensionName):"",configuration:u(e.configuration)?globalThis.String(e.configuration):void 0}},toJSON(e){const n={};return e.extensionName!==""&&(n.extensionName=e.extensionName),e.configuration!==void 0&&(n.configuration=e.configuration),n},create(e){return Z.fromPartial(e??{})},fromPartial(e){const n=In();return n.extensionName=e.extensionName??"",n.configuration=e.configuration??void 0,n}};function Cn(){return{frameId:"",frameIdType:""}}const Y={encode(e,n=new d){return e.frameId!==""&&n.uint32(10).string(e.frameId),e.frameIdType!==""&&n.uint32(18).string(e.frameIdType),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Cn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.frameId=i.string();continue}case 2:{if(r!==18)break;t.frameIdType=i.string();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{frameId:u(e.frameId)?globalThis.String(e.frameId):"",frameIdType:u(e.frameIdType)?globalThis.String(e.frameIdType):""}},toJSON(e){const n={};return e.frameId!==""&&(n.frameId=e.frameId),e.frameIdType!==""&&(n.frameIdType=e.frameIdType),n},create(e){return Y.fromPartial(e??{})},fromPartial(e){const n=Cn();return n.frameId=e.frameId??"",n.frameIdType=e.frameIdType??"",n}};function Fn(){return{frameId:"",signalQualifiedName:"",signalValue:0,signalMinValue:0,signalMaxValue:0,operator:0,frameIdType:""}}const K={encode(e,n=new d){return e.frameId!==""&&n.uint32(10).string(e.frameId),e.signalQualifiedName!==""&&n.uint32(18).string(e.signalQualifiedName),e.signalValue!==0&&n.uint32(25).double(e.signalValue),e.signalMinValue!==0&&n.uint32(33).double(e.signalMinValue),e.signalMaxValue!==0&&n.uint32(41).double(e.signalMaxValue),e.operator!==0&&n.uint32(48).int32(e.operator),e.frameIdType!==""&&n.uint32(58).string(e.frameIdType),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Fn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.frameId=i.string();continue}case 2:{if(r!==18)break;t.signalQualifiedName=i.string();continue}case 3:{if(r!==25)break;t.signalValue=i.double();continue}case 4:{if(r!==33)break;t.signalMinValue=i.double();continue}case 5:{if(r!==41)break;t.signalMaxValue=i.double();continue}case 6:{if(r!==48)break;t.operator=i.int32();continue}case 7:{if(r!==58)break;t.frameIdType=i.string();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{frameId:u(e.frameId)?globalThis.String(e.frameId):"",signalQualifiedName:u(e.signalQualifiedName)?globalThis.String(e.signalQualifiedName):"",signalValue:u(e.signalValue)?globalThis.Number(e.signalValue):0,signalMinValue:u(e.signalMinValue)?globalThis.Number(e.signalMinValue):0,signalMaxValue:u(e.signalMaxValue)?globalThis.Number(e.signalMaxValue):0,operator:u(e.operator)?Mi(e.operator):0,frameIdType:u(e.frameIdType)?globalThis.String(e.frameIdType):""}},toJSON(e){const n={};return e.frameId!==""&&(n.frameId=e.frameId),e.signalQualifiedName!==""&&(n.signalQualifiedName=e.signalQualifiedName),e.signalValue!==0&&(n.signalValue=e.signalValue),e.signalMinValue!==0&&(n.signalMinValue=e.signalMinValue),e.signalMaxValue!==0&&(n.signalMaxValue=e.signalMaxValue),e.operator!==0&&(n.operator=Li(e.operator)),e.frameIdType!==""&&(n.frameIdType=e.frameIdType),n},create(e){return K.fromPartial(e??{})},fromPartial(e){const n=Fn();return n.frameId=e.frameId??"",n.signalQualifiedName=e.signalQualifiedName??"",n.signalValue=e.signalValue??0,n.signalMinValue=e.signalMinValue??0,n.signalMaxValue=e.signalMaxValue??0,n.operator=e.operator??0,n.frameIdType=e.frameIdType??"",n}};function Mn(){return{timeoutTrigger:void 0,frameReceivedTrigger:void 0,signalValueTrigger:void 0}}const _={encode(e,n=new d){return e.timeoutTrigger!==void 0&&n.uint32(17).double(e.timeoutTrigger),e.frameReceivedTrigger!==void 0&&Y.encode(e.frameReceivedTrigger,n.uint32(26).fork()).join(),e.signalValueTrigger!==void 0&&K.encode(e.signalValueTrigger,n.uint32(34).fork()).join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Mn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 2:{if(r!==17)break;t.timeoutTrigger=i.double();continue}case 3:{if(r!==26)break;t.frameReceivedTrigger=Y.decode(i,i.uint32());continue}case 4:{if(r!==34)break;t.signalValueTrigger=K.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{timeoutTrigger:u(e.timeoutTrigger)?globalThis.Number(e.timeoutTrigger):void 0,frameReceivedTrigger:u(e.frameReceivedTrigger)?Y.fromJSON(e.frameReceivedTrigger):void 0,signalValueTrigger:u(e.signalValueTrigger)?K.fromJSON(e.signalValueTrigger):void 0}},toJSON(e){const n={};return e.timeoutTrigger!==void 0&&(n.timeoutTrigger=e.timeoutTrigger),e.frameReceivedTrigger!==void 0&&(n.frameReceivedTrigger=Y.toJSON(e.frameReceivedTrigger)),e.signalValueTrigger!==void 0&&(n.signalValueTrigger=K.toJSON(e.signalValueTrigger)),n},create(e){return _.fromPartial(e??{})},fromPartial(e){const n=Mn();return n.timeoutTrigger=e.timeoutTrigger??void 0,n.frameReceivedTrigger=e.frameReceivedTrigger!==void 0&&e.frameReceivedTrigger!==null?Y.fromPartial(e.frameReceivedTrigger):void 0,n.signalValueTrigger=e.signalValueTrigger!==void 0&&e.signalValueTrigger!==null?K.fromPartial(e.signalValueTrigger):void 0,n}};function Ln(){return{fileName:"",fileFormat:0,fileConflictAction:0,canMessageFilter:void 0,startTriggerSettings:[],startTriggersOperator:0,stopTriggerSettings:[],stopTriggersOperator:0,autoRestartAfterStop:!1,writeFileHeader:void 0,writeDataInHex:void 0,writeIdInHex:void 0,decimalSeparator:void 0,colSeparator:void 0,dataBytesConverterLimit:void 0,sizeLimit:void 0,timeLimit:void 0,numberOfTimeDecimals:void 0,timeReference:void 0,useCalendarTime:void 0,useUtcTime:void 0}}const W={encode(e,n=new d){e.fileName!==""&&n.uint32(10).string(e.fileName),e.fileFormat!==0&&n.uint32(16).int32(e.fileFormat),e.fileConflictAction!==0&&n.uint32(24).int32(e.fileConflictAction),e.canMessageFilter!==void 0&&F.encode(e.canMessageFilter,n.uint32(34).fork()).join();for(const i of e.startTriggerSettings)_.encode(i,n.uint32(42).fork()).join();e.startTriggersOperator!==0&&n.uint32(48).int32(e.startTriggersOperator);for(const i of e.stopTriggerSettings)_.encode(i,n.uint32(58).fork()).join();return e.stopTriggersOperator!==0&&n.uint32(64).int32(e.stopTriggersOperator),e.autoRestartAfterStop!==!1&&n.uint32(72).bool(e.autoRestartAfterStop),e.writeFileHeader!==void 0&&n.uint32(80).bool(e.writeFileHeader),e.writeDataInHex!==void 0&&n.uint32(88).bool(e.writeDataInHex),e.writeIdInHex!==void 0&&n.uint32(96).bool(e.writeIdInHex),e.decimalSeparator!==void 0&&n.uint32(104).int32(e.decimalSeparator),e.colSeparator!==void 0&&n.uint32(112).int32(e.colSeparator),e.dataBytesConverterLimit!==void 0&&n.uint32(120).int32(e.dataBytesConverterLimit),e.sizeLimit!==void 0&&n.uint32(128).int32(e.sizeLimit),e.timeLimit!==void 0&&n.uint32(136).int32(e.timeLimit),e.numberOfTimeDecimals!==void 0&&n.uint32(144).int32(e.numberOfTimeDecimals),e.timeReference!==void 0&&n.uint32(152).int32(e.timeReference),e.useCalendarTime!==void 0&&n.uint32(160).bool(e.useCalendarTime),e.useUtcTime!==void 0&&n.uint32(168).bool(e.useUtcTime),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Ln();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.fileName=i.string();continue}case 2:{if(r!==16)break;t.fileFormat=i.int32();continue}case 3:{if(r!==24)break;t.fileConflictAction=i.int32();continue}case 4:{if(r!==34)break;t.canMessageFilter=F.decode(i,i.uint32());continue}case 5:{if(r!==42)break;t.startTriggerSettings.push(_.decode(i,i.uint32()));continue}case 6:{if(r!==48)break;t.startTriggersOperator=i.int32();continue}case 7:{if(r!==58)break;t.stopTriggerSettings.push(_.decode(i,i.uint32()));continue}case 8:{if(r!==64)break;t.stopTriggersOperator=i.int32();continue}case 9:{if(r!==72)break;t.autoRestartAfterStop=i.bool();continue}case 10:{if(r!==80)break;t.writeFileHeader=i.bool();continue}case 11:{if(r!==88)break;t.writeDataInHex=i.bool();continue}case 12:{if(r!==96)break;t.writeIdInHex=i.bool();continue}case 13:{if(r!==104)break;t.decimalSeparator=i.int32();continue}case 14:{if(r!==112)break;t.colSeparator=i.int32();continue}case 15:{if(r!==120)break;t.dataBytesConverterLimit=i.int32();continue}case 16:{if(r!==128)break;t.sizeLimit=i.int32();continue}case 17:{if(r!==136)break;t.timeLimit=i.int32();continue}case 18:{if(r!==144)break;t.numberOfTimeDecimals=i.int32();continue}case 19:{if(r!==152)break;t.timeReference=i.int32();continue}case 20:{if(r!==160)break;t.useCalendarTime=i.bool();continue}case 21:{if(r!==168)break;t.useUtcTime=i.bool();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{fileName:u(e.fileName)?globalThis.String(e.fileName):"",fileFormat:u(e.fileFormat)?Ee(e.fileFormat):0,fileConflictAction:u(e.fileConflictAction)?Se(e.fileConflictAction):0,canMessageFilter:u(e.canMessageFilter)?F.fromJSON(e.canMessageFilter):void 0,startTriggerSettings:globalThis.Array.isArray(e==null?void 0:e.startTriggerSettings)?e.startTriggerSettings.map(n=>_.fromJSON(n)):[],startTriggersOperator:u(e.startTriggersOperator)?ie(e.startTriggersOperator):0,stopTriggerSettings:globalThis.Array.isArray(e==null?void 0:e.stopTriggerSettings)?e.stopTriggerSettings.map(n=>_.fromJSON(n)):[],stopTriggersOperator:u(e.stopTriggersOperator)?ie(e.stopTriggersOperator):0,autoRestartAfterStop:u(e.autoRestartAfterStop)?globalThis.Boolean(e.autoRestartAfterStop):!1,writeFileHeader:u(e.writeFileHeader)?globalThis.Boolean(e.writeFileHeader):void 0,writeDataInHex:u(e.writeDataInHex)?globalThis.Boolean(e.writeDataInHex):void 0,writeIdInHex:u(e.writeIdInHex)?globalThis.Boolean(e.writeIdInHex):void 0,decimalSeparator:u(e.decimalSeparator)?Oe(e.decimalSeparator):void 0,colSeparator:u(e.colSeparator)?me(e.colSeparator):void 0,dataBytesConverterLimit:u(e.dataBytesConverterLimit)?globalThis.Number(e.dataBytesConverterLimit):void 0,sizeLimit:u(e.sizeLimit)?globalThis.Number(e.sizeLimit):void 0,timeLimit:u(e.timeLimit)?globalThis.Number(e.timeLimit):void 0,numberOfTimeDecimals:u(e.numberOfTimeDecimals)?globalThis.Number(e.numberOfTimeDecimals):void 0,timeReference:u(e.timeReference)?pe(e.timeReference):void 0,useCalendarTime:u(e.useCalendarTime)?globalThis.Boolean(e.useCalendarTime):void 0,useUtcTime:u(e.useUtcTime)?globalThis.Boolean(e.useUtcTime):void 0}},toJSON(e){var i,a;const n={};return e.fileName!==""&&(n.fileName=e.fileName),e.fileFormat!==0&&(n.fileFormat=Ae(e.fileFormat)),e.fileConflictAction!==0&&(n.fileConflictAction=Re(e.fileConflictAction)),e.canMessageFilter!==void 0&&(n.canMessageFilter=F.toJSON(e.canMessageFilter)),(i=e.startTriggerSettings)!=null&&i.length&&(n.startTriggerSettings=e.startTriggerSettings.map(t=>_.toJSON(t))),e.startTriggersOperator!==0&&(n.startTriggersOperator=re(e.startTriggersOperator)),(a=e.stopTriggerSettings)!=null&&a.length&&(n.stopTriggerSettings=e.stopTriggerSettings.map(t=>_.toJSON(t))),e.stopTriggersOperator!==0&&(n.stopTriggersOperator=re(e.stopTriggersOperator)),e.autoRestartAfterStop!==!1&&(n.autoRestartAfterStop=e.autoRestartAfterStop),e.writeFileHeader!==void 0&&(n.writeFileHeader=e.writeFileHeader),e.writeDataInHex!==void 0&&(n.writeDataInHex=e.writeDataInHex),e.writeIdInHex!==void 0&&(n.writeIdInHex=e.writeIdInHex),e.decimalSeparator!==void 0&&(n.decimalSeparator=Te(e.decimalSeparator)),e.colSeparator!==void 0&&(n.colSeparator=he(e.colSeparator)),e.dataBytesConverterLimit!==void 0&&(n.dataBytesConverterLimit=Math.round(e.dataBytesConverterLimit)),e.sizeLimit!==void 0&&(n.sizeLimit=Math.round(e.sizeLimit)),e.timeLimit!==void 0&&(n.timeLimit=Math.round(e.timeLimit)),e.numberOfTimeDecimals!==void 0&&(n.numberOfTimeDecimals=Math.round(e.numberOfTimeDecimals)),e.timeReference!==void 0&&(n.timeReference=Ie(e.timeReference)),e.useCalendarTime!==void 0&&(n.useCalendarTime=e.useCalendarTime),e.useUtcTime!==void 0&&(n.useUtcTime=e.useUtcTime),n},create(e){return W.fromPartial(e??{})},fromPartial(e){var i,a;const n=Ln();return n.fileName=e.fileName??"",n.fileFormat=e.fileFormat??0,n.fileConflictAction=e.fileConflictAction??0,n.canMessageFilter=e.canMessageFilter!==void 0&&e.canMessageFilter!==null?F.fromPartial(e.canMessageFilter):void 0,n.startTriggerSettings=((i=e.startTriggerSettings)==null?void 0:i.map(t=>_.fromPartial(t)))||[],n.startTriggersOperator=e.startTriggersOperator??0,n.stopTriggerSettings=((a=e.stopTriggerSettings)==null?void 0:a.map(t=>_.fromPartial(t)))||[],n.stopTriggersOperator=e.stopTriggersOperator??0,n.autoRestartAfterStop=e.autoRestartAfterStop??!1,n.writeFileHeader=e.writeFileHeader??void 0,n.writeDataInHex=e.writeDataInHex??void 0,n.writeIdInHex=e.writeIdInHex??void 0,n.decimalSeparator=e.decimalSeparator??void 0,n.colSeparator=e.colSeparator??void 0,n.dataBytesConverterLimit=e.dataBytesConverterLimit??void 0,n.sizeLimit=e.sizeLimit??void 0,n.timeLimit=e.timeLimit??void 0,n.numberOfTimeDecimals=e.numberOfTimeDecimals??void 0,n.timeReference=e.timeReference??void 0,n.useCalendarTime=e.useCalendarTime??void 0,n.useUtcTime=e.useUtcTime??void 0,n}};function Pn(){return{fileName:"",fileFormat:0,fileConflictAction:0,signalFilter:void 0,startTriggerSettings:[],startTriggersOperator:0,stopTriggerSettings:[],stopTriggersOperator:0,autoRestartAfterStop:!1,writeFileHeader:void 0,writeDataInHex:void 0,writeIdInHex:void 0,decimalSeparator:void 0,colSeparator:void 0,dataBytesConverterLimit:void 0,sizeLimit:void 0,numberOfDataDecimals:void 0,timeLimit:void 0,numberOfTimeDecimals:void 0,timeReference:void 0,useCalendarTime:void 0,useUtcTime:void 0,useEnumValues:void 0,writeFullyQualifiedNames:void 0,writeCounter:void 0,writeUnitsOnOwnRow:void 0,writeOnlySignals:void 0}}const $={encode(e,n=new d){e.fileName!==""&&n.uint32(10).string(e.fileName),e.fileFormat!==0&&n.uint32(16).int32(e.fileFormat),e.fileConflictAction!==0&&n.uint32(24).int32(e.fileConflictAction),e.signalFilter!==void 0&&z.encode(e.signalFilter,n.uint32(34).fork()).join();for(const i of e.startTriggerSettings)_.encode(i,n.uint32(42).fork()).join();e.startTriggersOperator!==0&&n.uint32(48).int32(e.startTriggersOperator);for(const i of e.stopTriggerSettings)_.encode(i,n.uint32(58).fork()).join();return e.stopTriggersOperator!==0&&n.uint32(64).int32(e.stopTriggersOperator),e.autoRestartAfterStop!==!1&&n.uint32(72).bool(e.autoRestartAfterStop),e.writeFileHeader!==void 0&&n.uint32(80).bool(e.writeFileHeader),e.writeDataInHex!==void 0&&n.uint32(88).bool(e.writeDataInHex),e.writeIdInHex!==void 0&&n.uint32(96).bool(e.writeIdInHex),e.decimalSeparator!==void 0&&n.uint32(104).int32(e.decimalSeparator),e.colSeparator!==void 0&&n.uint32(112).int32(e.colSeparator),e.dataBytesConverterLimit!==void 0&&n.uint32(120).int32(e.dataBytesConverterLimit),e.sizeLimit!==void 0&&n.uint32(128).int32(e.sizeLimit),e.numberOfDataDecimals!==void 0&&n.uint32(136).int32(e.numberOfDataDecimals),e.timeLimit!==void 0&&n.uint32(144).int32(e.timeLimit),e.numberOfTimeDecimals!==void 0&&n.uint32(152).int32(e.numberOfTimeDecimals),e.timeReference!==void 0&&n.uint32(160).int32(e.timeReference),e.useCalendarTime!==void 0&&n.uint32(168).bool(e.useCalendarTime),e.useUtcTime!==void 0&&n.uint32(176).bool(e.useUtcTime),e.useEnumValues!==void 0&&n.uint32(184).bool(e.useEnumValues),e.writeFullyQualifiedNames!==void 0&&n.uint32(192).bool(e.writeFullyQualifiedNames),e.writeCounter!==void 0&&n.uint32(200).bool(e.writeCounter),e.writeUnitsOnOwnRow!==void 0&&n.uint32(208).bool(e.writeUnitsOnOwnRow),e.writeOnlySignals!==void 0&&n.uint32(216).bool(e.writeOnlySignals),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Pn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.fileName=i.string();continue}case 2:{if(r!==16)break;t.fileFormat=i.int32();continue}case 3:{if(r!==24)break;t.fileConflictAction=i.int32();continue}case 4:{if(r!==34)break;t.signalFilter=z.decode(i,i.uint32());continue}case 5:{if(r!==42)break;t.startTriggerSettings.push(_.decode(i,i.uint32()));continue}case 6:{if(r!==48)break;t.startTriggersOperator=i.int32();continue}case 7:{if(r!==58)break;t.stopTriggerSettings.push(_.decode(i,i.uint32()));continue}case 8:{if(r!==64)break;t.stopTriggersOperator=i.int32();continue}case 9:{if(r!==72)break;t.autoRestartAfterStop=i.bool();continue}case 10:{if(r!==80)break;t.writeFileHeader=i.bool();continue}case 11:{if(r!==88)break;t.writeDataInHex=i.bool();continue}case 12:{if(r!==96)break;t.writeIdInHex=i.bool();continue}case 13:{if(r!==104)break;t.decimalSeparator=i.int32();continue}case 14:{if(r!==112)break;t.colSeparator=i.int32();continue}case 15:{if(r!==120)break;t.dataBytesConverterLimit=i.int32();continue}case 16:{if(r!==128)break;t.sizeLimit=i.int32();continue}case 17:{if(r!==136)break;t.numberOfDataDecimals=i.int32();continue}case 18:{if(r!==144)break;t.timeLimit=i.int32();continue}case 19:{if(r!==152)break;t.numberOfTimeDecimals=i.int32();continue}case 20:{if(r!==160)break;t.timeReference=i.int32();continue}case 21:{if(r!==168)break;t.useCalendarTime=i.bool();continue}case 22:{if(r!==176)break;t.useUtcTime=i.bool();continue}case 23:{if(r!==184)break;t.useEnumValues=i.bool();continue}case 24:{if(r!==192)break;t.writeFullyQualifiedNames=i.bool();continue}case 25:{if(r!==200)break;t.writeCounter=i.bool();continue}case 26:{if(r!==208)break;t.writeUnitsOnOwnRow=i.bool();continue}case 27:{if(r!==216)break;t.writeOnlySignals=i.bool();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{fileName:u(e.fileName)?globalThis.String(e.fileName):"",fileFormat:u(e.fileFormat)?Ee(e.fileFormat):0,fileConflictAction:u(e.fileConflictAction)?Se(e.fileConflictAction):0,signalFilter:u(e.signalFilter)?z.fromJSON(e.signalFilter):void 0,startTriggerSettings:globalThis.Array.isArray(e==null?void 0:e.startTriggerSettings)?e.startTriggerSettings.map(n=>_.fromJSON(n)):[],startTriggersOperator:u(e.startTriggersOperator)?ie(e.startTriggersOperator):0,stopTriggerSettings:globalThis.Array.isArray(e==null?void 0:e.stopTriggerSettings)?e.stopTriggerSettings.map(n=>_.fromJSON(n)):[],stopTriggersOperator:u(e.stopTriggersOperator)?ie(e.stopTriggersOperator):0,autoRestartAfterStop:u(e.autoRestartAfterStop)?globalThis.Boolean(e.autoRestartAfterStop):!1,writeFileHeader:u(e.writeFileHeader)?globalThis.Boolean(e.writeFileHeader):void 0,writeDataInHex:u(e.writeDataInHex)?globalThis.Boolean(e.writeDataInHex):void 0,writeIdInHex:u(e.writeIdInHex)?globalThis.Boolean(e.writeIdInHex):void 0,decimalSeparator:u(e.decimalSeparator)?Oe(e.decimalSeparator):void 0,colSeparator:u(e.colSeparator)?me(e.colSeparator):void 0,dataBytesConverterLimit:u(e.dataBytesConverterLimit)?globalThis.Number(e.dataBytesConverterLimit):void 0,sizeLimit:u(e.sizeLimit)?globalThis.Number(e.sizeLimit):void 0,numberOfDataDecimals:u(e.numberOfDataDecimals)?globalThis.Number(e.numberOfDataDecimals):void 0,timeLimit:u(e.timeLimit)?globalThis.Number(e.timeLimit):void 0,numberOfTimeDecimals:u(e.numberOfTimeDecimals)?globalThis.Number(e.numberOfTimeDecimals):void 0,timeReference:u(e.timeReference)?pe(e.timeReference):void 0,useCalendarTime:u(e.useCalendarTime)?globalThis.Boolean(e.useCalendarTime):void 0,useUtcTime:u(e.useUtcTime)?globalThis.Boolean(e.useUtcTime):void 0,useEnumValues:u(e.useEnumValues)?globalThis.Boolean(e.useEnumValues):void 0,writeFullyQualifiedNames:u(e.writeFullyQualifiedNames)?globalThis.Boolean(e.writeFullyQualifiedNames):void 0,writeCounter:u(e.writeCounter)?globalThis.Boolean(e.writeCounter):void 0,writeUnitsOnOwnRow:u(e.writeUnitsOnOwnRow)?globalThis.Boolean(e.writeUnitsOnOwnRow):void 0,writeOnlySignals:u(e.writeOnlySignals)?globalThis.Boolean(e.writeOnlySignals):void 0}},toJSON(e){var i,a;const n={};return e.fileName!==""&&(n.fileName=e.fileName),e.fileFormat!==0&&(n.fileFormat=Ae(e.fileFormat)),e.fileConflictAction!==0&&(n.fileConflictAction=Re(e.fileConflictAction)),e.signalFilter!==void 0&&(n.signalFilter=z.toJSON(e.signalFilter)),(i=e.startTriggerSettings)!=null&&i.length&&(n.startTriggerSettings=e.startTriggerSettings.map(t=>_.toJSON(t))),e.startTriggersOperator!==0&&(n.startTriggersOperator=re(e.startTriggersOperator)),(a=e.stopTriggerSettings)!=null&&a.length&&(n.stopTriggerSettings=e.stopTriggerSettings.map(t=>_.toJSON(t))),e.stopTriggersOperator!==0&&(n.stopTriggersOperator=re(e.stopTriggersOperator)),e.autoRestartAfterStop!==!1&&(n.autoRestartAfterStop=e.autoRestartAfterStop),e.writeFileHeader!==void 0&&(n.writeFileHeader=e.writeFileHeader),e.writeDataInHex!==void 0&&(n.writeDataInHex=e.writeDataInHex),e.writeIdInHex!==void 0&&(n.writeIdInHex=e.writeIdInHex),e.decimalSeparator!==void 0&&(n.decimalSeparator=Te(e.decimalSeparator)),e.colSeparator!==void 0&&(n.colSeparator=he(e.colSeparator)),e.dataBytesConverterLimit!==void 0&&(n.dataBytesConverterLimit=Math.round(e.dataBytesConverterLimit)),e.sizeLimit!==void 0&&(n.sizeLimit=Math.round(e.sizeLimit)),e.numberOfDataDecimals!==void 0&&(n.numberOfDataDecimals=Math.round(e.numberOfDataDecimals)),e.timeLimit!==void 0&&(n.timeLimit=Math.round(e.timeLimit)),e.numberOfTimeDecimals!==void 0&&(n.numberOfTimeDecimals=Math.round(e.numberOfTimeDecimals)),e.timeReference!==void 0&&(n.timeReference=Ie(e.timeReference)),e.useCalendarTime!==void 0&&(n.useCalendarTime=e.useCalendarTime),e.useUtcTime!==void 0&&(n.useUtcTime=e.useUtcTime),e.useEnumValues!==void 0&&(n.useEnumValues=e.useEnumValues),e.writeFullyQualifiedNames!==void 0&&(n.writeFullyQualifiedNames=e.writeFullyQualifiedNames),e.writeCounter!==void 0&&(n.writeCounter=e.writeCounter),e.writeUnitsOnOwnRow!==void 0&&(n.writeUnitsOnOwnRow=e.writeUnitsOnOwnRow),e.writeOnlySignals!==void 0&&(n.writeOnlySignals=e.writeOnlySignals),n},create(e){return $.fromPartial(e??{})},fromPartial(e){var i,a;const n=Pn();return n.fileName=e.fileName??"",n.fileFormat=e.fileFormat??0,n.fileConflictAction=e.fileConflictAction??0,n.signalFilter=e.signalFilter!==void 0&&e.signalFilter!==null?z.fromPartial(e.signalFilter):void 0,n.startTriggerSettings=((i=e.startTriggerSettings)==null?void 0:i.map(t=>_.fromPartial(t)))||[],n.startTriggersOperator=e.startTriggersOperator??0,n.stopTriggerSettings=((a=e.stopTriggerSettings)==null?void 0:a.map(t=>_.fromPartial(t)))||[],n.stopTriggersOperator=e.stopTriggersOperator??0,n.autoRestartAfterStop=e.autoRestartAfterStop??!1,n.writeFileHeader=e.writeFileHeader??void 0,n.writeDataInHex=e.writeDataInHex??void 0,n.writeIdInHex=e.writeIdInHex??void 0,n.decimalSeparator=e.decimalSeparator??void 0,n.colSeparator=e.colSeparator??void 0,n.dataBytesConverterLimit=e.dataBytesConverterLimit??void 0,n.sizeLimit=e.sizeLimit??void 0,n.numberOfDataDecimals=e.numberOfDataDecimals??void 0,n.timeLimit=e.timeLimit??void 0,n.numberOfTimeDecimals=e.numberOfTimeDecimals??void 0,n.timeReference=e.timeReference??void 0,n.useCalendarTime=e.useCalendarTime??void 0,n.useUtcTime=e.useUtcTime??void 0,n.useEnumValues=e.useEnumValues??void 0,n.writeFullyQualifiedNames=e.writeFullyQualifiedNames??void 0,n.writeCounter=e.writeCounter??void 0,n.writeUnitsOnOwnRow=e.writeUnitsOnOwnRow??void 0,n.writeOnlySignals=e.writeOnlySignals??void 0,n}};function gn(){return{identifier:"",name:"",description:[],readOnlyProperties:!1,readOnlyConnections:!1,disabled:!1}}const R={encode(e,n=new d){e.identifier!==""&&n.uint32(10).string(e.identifier),e.name!==""&&n.uint32(18).string(e.name);for(const i of e.description)n.uint32(26).string(i);return e.readOnlyProperties!==!1&&n.uint32(32).bool(e.readOnlyProperties),e.readOnlyConnections!==!1&&n.uint32(40).bool(e.readOnlyConnections),e.disabled!==!1&&n.uint32(48).bool(e.disabled),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=gn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.identifier=i.string();continue}case 2:{if(r!==18)break;t.name=i.string();continue}case 3:{if(r!==26)break;t.description.push(i.string());continue}case 4:{if(r!==32)break;t.readOnlyProperties=i.bool();continue}case 5:{if(r!==40)break;t.readOnlyConnections=i.bool();continue}case 6:{if(r!==48)break;t.disabled=i.bool();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{identifier:u(e.identifier)?globalThis.String(e.identifier):"",name:u(e.name)?globalThis.String(e.name):"",description:globalThis.Array.isArray(e==null?void 0:e.description)?e.description.map(n=>globalThis.String(n)):[],readOnlyProperties:u(e.readOnlyProperties)?globalThis.Boolean(e.readOnlyProperties):!1,readOnlyConnections:u(e.readOnlyConnections)?globalThis.Boolean(e.readOnlyConnections):!1,disabled:u(e.disabled)?globalThis.Boolean(e.disabled):!1}},toJSON(e){var i;const n={};return e.identifier!==""&&(n.identifier=e.identifier),e.name!==""&&(n.name=e.name),(i=e.description)!=null&&i.length&&(n.description=e.description),e.readOnlyProperties!==!1&&(n.readOnlyProperties=e.readOnlyProperties),e.readOnlyConnections!==!1&&(n.readOnlyConnections=e.readOnlyConnections),e.disabled!==!1&&(n.disabled=e.disabled),n},create(e){return R.fromPartial(e??{})},fromPartial(e){var i;const n=gn();return n.identifier=e.identifier??"",n.name=e.name??"",n.description=((i=e.description)==null?void 0:i.map(a=>a))||[],n.readOnlyProperties=e.readOnlyProperties??!1,n.readOnlyConnections=e.readOnlyConnections??!1,n.disabled=e.disabled??!1,n}};function bn(){return{baseNode:void 0,isDataGenerator:!1,channelSettings:void 0,logReplaySettings:void 0,trafficGeneratorSettings:void 0}}const j={encode(e,n=new d){return e.baseNode!==void 0&&R.encode(e.baseNode,n.uint32(10).fork()).join(),e.isDataGenerator!==!1&&n.uint32(16).bool(e.isDataGenerator),e.channelSettings!==void 0&&x.encode(e.channelSettings,n.uint32(26).fork()).join(),e.logReplaySettings!==void 0&&w.encode(e.logReplaySettings,n.uint32(34).fork()).join(),e.trafficGeneratorSettings!==void 0&&H.encode(e.trafficGeneratorSettings,n.uint32(42).fork()).join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=bn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.baseNode=R.decode(i,i.uint32());continue}case 2:{if(r!==16)break;t.isDataGenerator=i.bool();continue}case 3:{if(r!==26)break;t.channelSettings=x.decode(i,i.uint32());continue}case 4:{if(r!==34)break;t.logReplaySettings=w.decode(i,i.uint32());continue}case 5:{if(r!==42)break;t.trafficGeneratorSettings=H.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{baseNode:u(e.baseNode)?R.fromJSON(e.baseNode):void 0,isDataGenerator:u(e.isDataGenerator)?globalThis.Boolean(e.isDataGenerator):!1,channelSettings:u(e.channelSettings)?x.fromJSON(e.channelSettings):void 0,logReplaySettings:u(e.logReplaySettings)?w.fromJSON(e.logReplaySettings):void 0,trafficGeneratorSettings:u(e.trafficGeneratorSettings)?H.fromJSON(e.trafficGeneratorSettings):void 0}},toJSON(e){const n={};return e.baseNode!==void 0&&(n.baseNode=R.toJSON(e.baseNode)),e.isDataGenerator!==!1&&(n.isDataGenerator=e.isDataGenerator),e.channelSettings!==void 0&&(n.channelSettings=x.toJSON(e.channelSettings)),e.logReplaySettings!==void 0&&(n.logReplaySettings=w.toJSON(e.logReplaySettings)),e.trafficGeneratorSettings!==void 0&&(n.trafficGeneratorSettings=H.toJSON(e.trafficGeneratorSettings)),n},create(e){return j.fromPartial(e??{})},fromPartial(e){const n=bn();return n.baseNode=e.baseNode!==void 0&&e.baseNode!==null?R.fromPartial(e.baseNode):void 0,n.isDataGenerator=e.isDataGenerator??!1,n.channelSettings=e.channelSettings!==void 0&&e.channelSettings!==null?x.fromPartial(e.channelSettings):void 0,n.logReplaySettings=e.logReplaySettings!==void 0&&e.logReplaySettings!==null?w.fromPartial(e.logReplaySettings):void 0,n.trafficGeneratorSettings=e.trafficGeneratorSettings!==void 0&&e.trafficGeneratorSettings!==null?H.fromPartial(e.trafficGeneratorSettings):void 0,n}};function Gn(){return{baseNode:void 0,connectedNodes:[],canMessageFilterSettings:void 0,databasesSettings:void 0,interpreterSettings:void 0,extensionSettings:void 0}}const ee={encode(e,n=new d){e.baseNode!==void 0&&R.encode(e.baseNode,n.uint32(10).fork()).join();for(const i of e.connectedNodes)n.uint32(18).string(i);return e.canMessageFilterSettings!==void 0&&F.encode(e.canMessageFilterSettings,n.uint32(26).fork()).join(),e.databasesSettings!==void 0&&Q.encode(e.databasesSettings,n.uint32(34).fork()).join(),e.interpreterSettings!==void 0&&X.encode(e.interpreterSettings,n.uint32(42).fork()).join(),e.extensionSettings!==void 0&&Z.encode(e.extensionSettings,n.uint32(50).fork()).join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Gn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.baseNode=R.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.connectedNodes.push(i.string());continue}case 3:{if(r!==26)break;t.canMessageFilterSettings=F.decode(i,i.uint32());continue}case 4:{if(r!==34)break;t.databasesSettings=Q.decode(i,i.uint32());continue}case 5:{if(r!==42)break;t.interpreterSettings=X.decode(i,i.uint32());continue}case 6:{if(r!==50)break;t.extensionSettings=Z.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{baseNode:u(e.baseNode)?R.fromJSON(e.baseNode):void 0,connectedNodes:globalThis.Array.isArray(e==null?void 0:e.connectedNodes)?e.connectedNodes.map(n=>globalThis.String(n)):[],canMessageFilterSettings:u(e.canMessageFilterSettings)?F.fromJSON(e.canMessageFilterSettings):void 0,databasesSettings:u(e.databasesSettings)?Q.fromJSON(e.databasesSettings):void 0,interpreterSettings:u(e.interpreterSettings)?X.fromJSON(e.interpreterSettings):void 0,extensionSettings:u(e.extensionSettings)?Z.fromJSON(e.extensionSettings):void 0}},toJSON(e){var i;const n={};return e.baseNode!==void 0&&(n.baseNode=R.toJSON(e.baseNode)),(i=e.connectedNodes)!=null&&i.length&&(n.connectedNodes=e.connectedNodes),e.canMessageFilterSettings!==void 0&&(n.canMessageFilterSettings=F.toJSON(e.canMessageFilterSettings)),e.databasesSettings!==void 0&&(n.databasesSettings=Q.toJSON(e.databasesSettings)),e.interpreterSettings!==void 0&&(n.interpreterSettings=X.toJSON(e.interpreterSettings)),e.extensionSettings!==void 0&&(n.extensionSettings=Z.toJSON(e.extensionSettings)),n},create(e){return ee.fromPartial(e??{})},fromPartial(e){var i;const n=Gn();return n.baseNode=e.baseNode!==void 0&&e.baseNode!==null?R.fromPartial(e.baseNode):void 0,n.connectedNodes=((i=e.connectedNodes)==null?void 0:i.map(a=>a))||[],n.canMessageFilterSettings=e.canMessageFilterSettings!==void 0&&e.canMessageFilterSettings!==null?F.fromPartial(e.canMessageFilterSettings):void 0,n.databasesSettings=e.databasesSettings!==void 0&&e.databasesSettings!==null?Q.fromPartial(e.databasesSettings):void 0,n.interpreterSettings=e.interpreterSettings!==void 0&&e.interpreterSettings!==null?X.fromPartial(e.interpreterSettings):void 0,n.extensionSettings=e.extensionSettings!==void 0&&e.extensionSettings!==null?Z.fromPartial(e.extensionSettings):void 0,n}};function Dn(){return{baseNode:void 0,connectedNodes:[],messageLoggerSettings:void 0,signalLoggerSettings:void 0}}const ne={encode(e,n=new d){e.baseNode!==void 0&&R.encode(e.baseNode,n.uint32(10).fork()).join();for(const i of e.connectedNodes)n.uint32(18).string(i);return e.messageLoggerSettings!==void 0&&W.encode(e.messageLoggerSettings,n.uint32(26).fork()).join(),e.signalLoggerSettings!==void 0&&$.encode(e.signalLoggerSettings,n.uint32(34).fork()).join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Dn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.baseNode=R.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.connectedNodes.push(i.string());continue}case 3:{if(r!==26)break;t.messageLoggerSettings=W.decode(i,i.uint32());continue}case 4:{if(r!==34)break;t.signalLoggerSettings=$.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{baseNode:u(e.baseNode)?R.fromJSON(e.baseNode):void 0,connectedNodes:globalThis.Array.isArray(e==null?void 0:e.connectedNodes)?e.connectedNodes.map(n=>globalThis.String(n)):[],messageLoggerSettings:u(e.messageLoggerSettings)?W.fromJSON(e.messageLoggerSettings):void 0,signalLoggerSettings:u(e.signalLoggerSettings)?$.fromJSON(e.signalLoggerSettings):void 0}},toJSON(e){var i;const n={};return e.baseNode!==void 0&&(n.baseNode=R.toJSON(e.baseNode)),(i=e.connectedNodes)!=null&&i.length&&(n.connectedNodes=e.connectedNodes),e.messageLoggerSettings!==void 0&&(n.messageLoggerSettings=W.toJSON(e.messageLoggerSettings)),e.signalLoggerSettings!==void 0&&(n.signalLoggerSettings=$.toJSON(e.signalLoggerSettings)),n},create(e){return ne.fromPartial(e??{})},fromPartial(e){var i;const n=Dn();return n.baseNode=e.baseNode!==void 0&&e.baseNode!==null?R.fromPartial(e.baseNode):void 0,n.connectedNodes=((i=e.connectedNodes)==null?void 0:i.map(a=>a))||[],n.messageLoggerSettings=e.messageLoggerSettings!==void 0&&e.messageLoggerSettings!==null?W.fromPartial(e.messageLoggerSettings):void 0,n.signalLoggerSettings=e.signalLoggerSettings!==void 0&&e.signalLoggerSettings!==null?$.fromPartial(e.signalLoggerSettings):void 0,n}};function kn(){return{sources:[],dataProcessors:[],targets:[],language:""}}const Bi={encode(e,n=new d){for(const i of e.sources)j.encode(i,n.uint32(10).fork()).join();for(const i of e.dataProcessors)ee.encode(i,n.uint32(18).fork()).join();for(const i of e.targets)ne.encode(i,n.uint32(26).fork()).join();return e.language!==""&&n.uint32(34).string(e.language),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=kn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.sources.push(j.decode(i,i.uint32()));continue}case 2:{if(r!==18)break;t.dataProcessors.push(ee.decode(i,i.uint32()));continue}case 3:{if(r!==26)break;t.targets.push(ne.decode(i,i.uint32()));continue}case 4:{if(r!==34)break;t.language=i.string();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{sources:globalThis.Array.isArray(e==null?void 0:e.sources)?e.sources.map(n=>j.fromJSON(n)):[],dataProcessors:globalThis.Array.isArray(e==null?void 0:e.dataProcessors)?e.dataProcessors.map(n=>ee.fromJSON(n)):[],targets:globalThis.Array.isArray(e==null?void 0:e.targets)?e.targets.map(n=>ne.fromJSON(n)):[],language:u(e.language)?globalThis.String(e.language):""}},toJSON(e){var i,a,t;const n={};return(i=e.sources)!=null&&i.length&&(n.sources=e.sources.map(r=>j.toJSON(r))),(a=e.dataProcessors)!=null&&a.length&&(n.dataProcessors=e.dataProcessors.map(r=>ee.toJSON(r))),(t=e.targets)!=null&&t.length&&(n.targets=e.targets.map(r=>ne.toJSON(r))),e.language!==""&&(n.language=e.language),n},create(e){return Bi.fromPartial(e??{})},fromPartial(e){var i,a,t;const n=kn();return n.sources=((i=e.sources)==null?void 0:i.map(r=>j.fromPartial(r)))||[],n.dataProcessors=((a=e.dataProcessors)==null?void 0:a.map(r=>ee.fromPartial(r)))||[],n.targets=((t=e.targets)==null?void 0:t.map(r=>ne.fromPartial(r)))||[],n.language=e.language??"",n}};function Yi(e){return typeof e=="object"&&e!==null}function u(e){return e!=null}exports.AccessMode=Ti;exports.ApiPreferences=E;exports.BaseNodeProperties=R;exports.BinaryReader=s;exports.BinaryWriter=d;exports.CanBusParamLimits=g;exports.CanBusParams=l;exports.CanBusSpeedInfo=m;exports.CanChannelCap=Vn;exports.CanChannelCapacity=b;exports.CanChannelConfiguration=U;exports.CanFDBusSpeedCombination=h;exports.CanFDBusSpeedInfo=T;exports.CanFrameFlag=si;exports.CanFrameFlags=S;exports.CanMessageFilterSettings=F;exports.CanMessageFilterType=pi;exports.CanMode=Si;exports.Channel=G;exports.ChannelSettings=x;exports.DataProcessorNodeProperties=ee;exports.DatabaseFiles=Ei;exports.DatabasesSettings=Q;exports.DecimalChar=Gi;exports.Device=p;exports.DeviceEvent=wn;exports.DeviceEventArgs=jn;exports.Devices=D;exports.FileConflictAction=bi;exports.Frame=B;exports.FrameDefinition=v;exports.FrameDefinitions=_i;exports.FramePropertyValue=L;exports.FrameReceivedTrigger=Y;exports.Frame_PropertiesEntry=se;exports.Frames=Ni;exports.GetCanChannelBusSpeedsRequest=qn;exports.GetCanChannelBusSpeedsResponse=Zn;exports.GetCanFdBusSpeedsRequest=Wn;exports.GetCanFdBusSpeedsResponse=$n;exports.GetClassicCanBusSpeedsRequest=Yn;exports.GetClassicCanBusSpeedsResponse=Kn;exports.GetDevicesRequest=Qn;exports.GetDevicesResponse=Xn;exports.InterpreterSettings=X;exports.J1939InterpreterSettings=q;exports.LinChannelConfiguration=J;exports.LinFrameFlag=fi;exports.LinFrameFlags=C;exports.LogFileFormat=gi;exports.LogReplaySettings=w;exports.LogReplaySettings_ChannelIdentifiersEntry=oe;exports.MeasurementSetup=Bi;exports.MessageLoggerSettings=W;exports.PeriodicTransmissionSettings=H;exports.Protocols=xn;exports.ScheduleTable=Ai;exports.ScheduleTableEntry=V;exports.Separator=Di;exports.ServiceExtensionSettings=Z;exports.SignalDefinition=I;exports.SignalDefinition_EnumValuesEntry=ue;exports.SignalDefinitions=ui;exports.SignalEncoding=ei;exports.SignalFilterSettings=z;exports.SignalLoggerSettings=$;exports.SignalType=ri;exports.SignalValue=k;exports.SignalValueTrigger=K;exports.SignalValueTriggerOperator=Fi;exports.SourceNodeProperties=j;exports.TargetNodeProperties=ne;exports.TimeReference=ki;exports.TriggerOperator=Pi;exports.TriggerSettings=_;exports.WriteFrame=y;exports.accessModeFromJSON=mi;exports.accessModeToJSON=hi;exports.canChannelCapFromJSON=Un;exports.canChannelCapToJSON=Jn;exports.canFrameFlagFromJSON=oi;exports.canFrameFlagToJSON=di;exports.canMessageFilterTypeFromJSON=Ii;exports.canMessageFilterTypeToJSON=Ci;exports.canModeFromJSON=Ri;exports.canModeToJSON=Oi;exports.decimalCharFromJSON=Oe;exports.decimalCharToJSON=Te;exports.deviceEventFromJSON=Hn;exports.deviceEventToJSON=zn;exports.fileConflictActionFromJSON=Se;exports.fileConflictActionToJSON=Re;exports.linFrameFlagFromJSON=li;exports.linFrameFlagToJSON=ci;exports.logFileFormatFromJSON=Ee;exports.logFileFormatToJSON=Ae;exports.protocolsFromJSON=Ne;exports.protocolsToJSON=_e;exports.separatorFromJSON=me;exports.separatorToJSON=he;exports.signalEncodingFromJSON=ni;exports.signalEncodingToJSON=ii;exports.signalTypeFromJSON=ti;exports.signalTypeToJSON=ai;exports.signalValueTriggerOperatorFromJSON=Mi;exports.signalValueTriggerOperatorToJSON=Li;exports.timeReferenceFromJSON=pe;exports.timeReferenceToJSON=Ie;exports.triggerOperatorFromJSON=ie;exports.triggerOperatorToJSON=re;
|
|
1
|
+
"use strict";function yi(){let e=0,n=0;for(let a=0;a<28;a+=7){let t=this.buf[this.pos++];if(e|=(t&127)<<a,!(t&128))return this.assertBounds(),[e,n]}let i=this.buf[this.pos++];if(e|=(i&15)<<28,n=(i&112)>>4,!(i&128))return this.assertBounds(),[e,n];for(let a=3;a<=31;a+=7){let t=this.buf[this.pos++];if(n|=(t&127)<<a,!(t&128))return this.assertBounds(),[e,n]}throw new Error("invalid varint")}function de(e,n,i){for(let r=0;r<28;r=r+7){const o=e>>>r,N=!(!(o>>>7)&&n==0),O=(N?o|128:o)&255;if(i.push(O),!N)return}const a=e>>>28&15|(n&7)<<4,t=!!(n>>3);if(i.push((t?a|128:a)&255),!!t){for(let r=3;r<31;r=r+7){const o=n>>>r,N=!!(o>>>7),O=(N?o|128:o)&255;if(i.push(O),!N)return}i.push(n>>>31&1)}}const ae=4294967296;function Ce(e){const n=e[0]==="-";n&&(e=e.slice(1));const i=1e6;let a=0,t=0;function r(o,N){const O=Number(e.slice(o,N));t*=i,a=a*i+O,a>=ae&&(t=t+(a/ae|0),a=a%ae)}return r(-24,-18),r(-18,-12),r(-12,-6),r(-6),n?yn(a,t):ce(a,t)}function vi(e,n){let i=ce(e,n);const a=i.hi&2147483648;a&&(i=yn(i.lo,i.hi));const t=Bn(i.lo,i.hi);return a?"-"+t:t}function Bn(e,n){if({lo:e,hi:n}=Vi(e,n),n<=2097151)return String(ae*n+e);const i=e&16777215,a=(e>>>24|n<<8)&16777215,t=n>>16&65535;let r=i+a*6777216+t*6710656,o=a+t*8147497,N=t*2;const O=1e7;return r>=O&&(o+=Math.floor(r/O),r%=O),o>=O&&(N+=Math.floor(o/O),o%=O),N.toString()+Fe(o)+Fe(r)}function Vi(e,n){return{lo:e>>>0,hi:n>>>0}}function ce(e,n){return{lo:e|0,hi:n|0}}function yn(e,n){return n=~n,e?e=~e+1:n+=1,ce(e,n)}const Fe=e=>{const n=String(e);return"0000000".slice(n.length)+n};function Me(e,n){if(e>=0){for(;e>127;)n.push(e&127|128),e=e>>>7;n.push(e)}else{for(let i=0;i<9;i++)n.push(e&127|128),e=e>>7;n.push(1)}}function Ui(){let e=this.buf[this.pos++],n=e&127;if(!(e&128))return this.assertBounds(),n;if(e=this.buf[this.pos++],n|=(e&127)<<7,!(e&128))return this.assertBounds(),n;if(e=this.buf[this.pos++],n|=(e&127)<<14,!(e&128))return this.assertBounds(),n;if(e=this.buf[this.pos++],n|=(e&127)<<21,!(e&128))return this.assertBounds(),n;e=this.buf[this.pos++],n|=(e&15)<<28;for(let i=5;e&128&&i<10;i++)e=this.buf[this.pos++];if(e&128)throw new Error("invalid varint");return this.assertBounds(),n>>>0}const M=Ji();function Ji(){const e=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof e.getBigInt64=="function"&&typeof e.getBigUint64=="function"&&typeof e.setBigInt64=="function"&&typeof e.setBigUint64=="function"&&(typeof process!="object"||typeof process.env!="object"||process.env.BUF_BIGINT_DISABLE!=="1")){const i=BigInt("-9223372036854775808"),a=BigInt("9223372036854775807"),t=BigInt("0"),r=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(o){const N=typeof o=="bigint"?o:BigInt(o);if(N>a||N<i)throw new Error(`invalid int64: ${o}`);return N},uParse(o){const N=typeof o=="bigint"?o:BigInt(o);if(N>r||N<t)throw new Error(`invalid uint64: ${o}`);return N},enc(o){return e.setBigInt64(0,this.parse(o),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},uEnc(o){return e.setBigInt64(0,this.uParse(o),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},dec(o,N){return e.setInt32(0,o,!0),e.setInt32(4,N,!0),e.getBigInt64(0,!0)},uDec(o,N){return e.setInt32(0,o,!0),e.setInt32(4,N,!0),e.getBigUint64(0,!0)}}}return{zero:"0",supported:!1,parse(i){return typeof i!="string"&&(i=i.toString()),Le(i),i},uParse(i){return typeof i!="string"&&(i=i.toString()),Pe(i),i},enc(i){return typeof i!="string"&&(i=i.toString()),Le(i),Ce(i)},uEnc(i){return typeof i!="string"&&(i=i.toString()),Pe(i),Ce(i)},dec(i,a){return vi(i,a)},uDec(i,a){return Bn(i,a)}}}function Le(e){if(!/^-?[0-9]+$/.test(e))throw new Error("invalid int64: "+e)}function Pe(e){if(!/^[0-9]+$/.test(e))throw new Error("invalid uint64: "+e)}const fe=Symbol.for("@bufbuild/protobuf/text-encoding");function vn(){if(globalThis[fe]==null){const e=new globalThis.TextEncoder,n=new globalThis.TextDecoder;globalThis[fe]={encodeUtf8(i){return e.encode(i)},decodeUtf8(i){return n.decode(i)},checkUtf8(i){try{return encodeURIComponent(i),!0}catch{return!1}}}}return globalThis[fe]}var P;(function(e){e[e.Varint=0]="Varint",e[e.Bit64=1]="Bit64",e[e.LengthDelimited=2]="LengthDelimited",e[e.StartGroup=3]="StartGroup",e[e.EndGroup=4]="EndGroup",e[e.Bit32=5]="Bit32"})(P||(P={}));const xi=34028234663852886e22,wi=-34028234663852886e22,Hi=4294967295,zi=2147483647,Qi=-2147483648;class d{constructor(n=vn().encodeUtf8){this.encodeUtf8=n,this.stack=[],this.chunks=[],this.buf=[]}finish(){this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]);let n=0;for(let t=0;t<this.chunks.length;t++)n+=this.chunks[t].length;let i=new Uint8Array(n),a=0;for(let t=0;t<this.chunks.length;t++)i.set(this.chunks[t],a),a+=this.chunks[t].length;return this.chunks=[],i}fork(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this}join(){let n=this.finish(),i=this.stack.pop();if(!i)throw new Error("invalid state, fork stack empty");return this.chunks=i.chunks,this.buf=i.buf,this.uint32(n.byteLength),this.raw(n)}tag(n,i){return this.uint32((n<<3|i)>>>0)}raw(n){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(n),this}uint32(n){for(ge(n);n>127;)this.buf.push(n&127|128),n=n>>>7;return this.buf.push(n),this}int32(n){return le(n),Me(n,this.buf),this}bool(n){return this.buf.push(n?1:0),this}bytes(n){return this.uint32(n.byteLength),this.raw(n)}string(n){let i=this.encodeUtf8(n);return this.uint32(i.byteLength),this.raw(i)}float(n){Xi(n);let i=new Uint8Array(4);return new DataView(i.buffer).setFloat32(0,n,!0),this.raw(i)}double(n){let i=new Uint8Array(8);return new DataView(i.buffer).setFloat64(0,n,!0),this.raw(i)}fixed32(n){ge(n);let i=new Uint8Array(4);return new DataView(i.buffer).setUint32(0,n,!0),this.raw(i)}sfixed32(n){le(n);let i=new Uint8Array(4);return new DataView(i.buffer).setInt32(0,n,!0),this.raw(i)}sint32(n){return le(n),n=(n<<1^n>>31)>>>0,Me(n,this.buf),this}sfixed64(n){let i=new Uint8Array(8),a=new DataView(i.buffer),t=M.enc(n);return a.setInt32(0,t.lo,!0),a.setInt32(4,t.hi,!0),this.raw(i)}fixed64(n){let i=new Uint8Array(8),a=new DataView(i.buffer),t=M.uEnc(n);return a.setInt32(0,t.lo,!0),a.setInt32(4,t.hi,!0),this.raw(i)}int64(n){let i=M.enc(n);return de(i.lo,i.hi,this.buf),this}sint64(n){let i=M.enc(n),a=i.hi>>31,t=i.lo<<1^a,r=(i.hi<<1|i.lo>>>31)^a;return de(t,r,this.buf),this}uint64(n){let i=M.uEnc(n);return de(i.lo,i.hi,this.buf),this}}class s{constructor(n,i=vn().decodeUtf8){this.decodeUtf8=i,this.varint64=yi,this.uint32=Ui,this.buf=n,this.len=n.length,this.pos=0,this.view=new DataView(n.buffer,n.byteOffset,n.byteLength)}tag(){let n=this.uint32(),i=n>>>3,a=n&7;if(i<=0||a<0||a>5)throw new Error("illegal tag: field no "+i+" wire type "+a);return[i,a]}skip(n,i){let a=this.pos;switch(n){case P.Varint:for(;this.buf[this.pos++]&128;);break;case P.Bit64:this.pos+=4;case P.Bit32:this.pos+=4;break;case P.LengthDelimited:let t=this.uint32();this.pos+=t;break;case P.StartGroup:for(;;){const[r,o]=this.tag();if(o===P.EndGroup){if(i!==void 0&&r!==i)throw new Error("invalid end group tag");break}this.skip(o,r)}break;default:throw new Error("cant skip wire type "+n)}return this.assertBounds(),this.buf.subarray(a,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let n=this.uint32();return n>>>1^-(n&1)}int64(){return M.dec(...this.varint64())}uint64(){return M.uDec(...this.varint64())}sint64(){let[n,i]=this.varint64(),a=-(n&1);return n=(n>>>1|(i&1)<<31)^a,i=i>>>1^a,M.dec(n,i)}bool(){let[n,i]=this.varint64();return n!==0||i!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return M.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return M.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let n=this.uint32(),i=this.pos;return this.pos+=n,this.assertBounds(),this.buf.subarray(i,i+n)}string(){return this.decodeUtf8(this.bytes())}}function le(e){if(typeof e=="string")e=Number(e);else if(typeof e!="number")throw new Error("invalid int32: "+typeof e);if(!Number.isInteger(e)||e>zi||e<Qi)throw new Error("invalid int32: "+e)}function ge(e){if(typeof e=="string")e=Number(e);else if(typeof e!="number")throw new Error("invalid uint32: "+typeof e);if(!Number.isInteger(e)||e>Hi||e<0)throw new Error("invalid uint32: "+e)}function Xi(e){if(typeof e=="string"){const n=e;if(e=Number(e),isNaN(e)&&n!=="NaN")throw new Error("invalid float32: "+n)}else if(typeof e!="number")throw new Error("invalid float32: "+typeof e);if(Number.isFinite(e)&&(e>xi||e<wi))throw new Error("invalid float32: "+e)}function be(){return{version:"",language:"",useHexNumericBase:!1,username:""}}const E={encode(e,n=new d){return e.version!==""&&n.uint32(10).string(e.version),e.language!==""&&n.uint32(18).string(e.language),e.useHexNumericBase!==!1&&n.uint32(24).bool(e.useHexNumericBase),e.username!==""&&n.uint32(34).string(e.username),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=be();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.version=i.string();continue}case 2:{if(r!==18)break;t.language=i.string();continue}case 3:{if(r!==24)break;t.useHexNumericBase=i.bool();continue}case 4:{if(r!==34)break;t.username=i.string();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{version:te(e.version)?globalThis.String(e.version):"",language:te(e.language)?globalThis.String(e.language):"",useHexNumericBase:te(e.useHexNumericBase)?globalThis.Boolean(e.useHexNumericBase):!1,username:te(e.username)?globalThis.String(e.username):""}},toJSON(e){const n={};return e.version!==""&&(n.version=e.version),e.language!==""&&(n.language=e.language),e.useHexNumericBase!==!1&&(n.useHexNumericBase=e.useHexNumericBase),e.username!==""&&(n.username=e.username),n},create(e){return E.fromPartial(e??{})},fromPartial(e){const n=be();return n.version=e.version??"",n.language=e.language??"",n.useHexNumericBase=e.useHexNumericBase??!1,n.username=e.username??"",n}};function te(e){return e!=null}var Vn=(e=>(e[e.CAN_CHANNEL_CAP_UNSPECIFIED=0]="CAN_CHANNEL_CAP_UNSPECIFIED",e[e.CAN_CHANNEL_CAP_EXTENDED_CAN=1]="CAN_CHANNEL_CAP_EXTENDED_CAN",e[e.CAN_CHANNEL_CAP_BUS_STATISTICS=2]="CAN_CHANNEL_CAP_BUS_STATISTICS",e[e.CAN_CHANNEL_CAP_ERROR_COUNTERS=3]="CAN_CHANNEL_CAP_ERROR_COUNTERS",e[e.CAN_CHANNEL_CAP_GENERATE_ERROR=4]="CAN_CHANNEL_CAP_GENERATE_ERROR",e[e.CAN_CHANNEL_CAP_GENERATE_OVERLOAD=5]="CAN_CHANNEL_CAP_GENERATE_OVERLOAD",e[e.CAN_CHANNEL_CAP_TXREQUEST=6]="CAN_CHANNEL_CAP_TXREQUEST",e[e.CAN_CHANNEL_CAP_TXACKNOWLEDGE=7]="CAN_CHANNEL_CAP_TXACKNOWLEDGE",e[e.CAN_CHANNEL_CAP_VIRTUAL=8]="CAN_CHANNEL_CAP_VIRTUAL",e[e.CAN_CHANNEL_CAP_SIMULATED=9]="CAN_CHANNEL_CAP_SIMULATED",e[e.CAN_CHANNEL_CAP_CAN_FD=10]="CAN_CHANNEL_CAP_CAN_FD",e[e.CAN_CHANNEL_CAP_CAN_FD_NONISO=11]="CAN_CHANNEL_CAP_CAN_FD_NONISO",e[e.CAN_CHANNEL_CAP_SILENT_MODE=12]="CAN_CHANNEL_CAP_SILENT_MODE",e[e.CAN_CHANNEL_CAP_SINGLE_SHOT=13]="CAN_CHANNEL_CAP_SINGLE_SHOT",e[e.CAN_CHANNEL_CAP_LOGGER=14]="CAN_CHANNEL_CAP_LOGGER",e[e.CAN_CHANNEL_CAP_REMOTE_ACCESS=15]="CAN_CHANNEL_CAP_REMOTE_ACCESS",e[e.CAN_CHANNEL_CAP_SCRIPT=16]="CAN_CHANNEL_CAP_SCRIPT",e[e.CAN_CHANNEL_CAP_LIN_HYBRID=17]="CAN_CHANNEL_CAP_LIN_HYBRID",e[e.CAN_CHANNEL_CAP_IO_API=18]="CAN_CHANNEL_CAP_IO_API",e[e.CAN_CHANNEL_CAP_CANTEGRITY=19]="CAN_CHANNEL_CAP_CANTEGRITY",e[e.CAN_CHANNEL_CAP_EX_BUSPARAMS_TQ=20]="CAN_CHANNEL_CAP_EX_BUSPARAMS_TQ",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Vn||{});function Un(e){switch(e){case 0:case"CAN_CHANNEL_CAP_UNSPECIFIED":return 0;case 1:case"CAN_CHANNEL_CAP_EXTENDED_CAN":return 1;case 2:case"CAN_CHANNEL_CAP_BUS_STATISTICS":return 2;case 3:case"CAN_CHANNEL_CAP_ERROR_COUNTERS":return 3;case 4:case"CAN_CHANNEL_CAP_GENERATE_ERROR":return 4;case 5:case"CAN_CHANNEL_CAP_GENERATE_OVERLOAD":return 5;case 6:case"CAN_CHANNEL_CAP_TXREQUEST":return 6;case 7:case"CAN_CHANNEL_CAP_TXACKNOWLEDGE":return 7;case 8:case"CAN_CHANNEL_CAP_VIRTUAL":return 8;case 9:case"CAN_CHANNEL_CAP_SIMULATED":return 9;case 10:case"CAN_CHANNEL_CAP_CAN_FD":return 10;case 11:case"CAN_CHANNEL_CAP_CAN_FD_NONISO":return 11;case 12:case"CAN_CHANNEL_CAP_SILENT_MODE":return 12;case 13:case"CAN_CHANNEL_CAP_SINGLE_SHOT":return 13;case 14:case"CAN_CHANNEL_CAP_LOGGER":return 14;case 15:case"CAN_CHANNEL_CAP_REMOTE_ACCESS":return 15;case 16:case"CAN_CHANNEL_CAP_SCRIPT":return 16;case 17:case"CAN_CHANNEL_CAP_LIN_HYBRID":return 17;case 18:case"CAN_CHANNEL_CAP_IO_API":return 18;case 19:case"CAN_CHANNEL_CAP_CANTEGRITY":return 19;case 20:case"CAN_CHANNEL_CAP_EX_BUSPARAMS_TQ":return 20;case-1:case"UNRECOGNIZED":default:return-1}}function Jn(e){switch(e){case 0:return"CAN_CHANNEL_CAP_UNSPECIFIED";case 1:return"CAN_CHANNEL_CAP_EXTENDED_CAN";case 2:return"CAN_CHANNEL_CAP_BUS_STATISTICS";case 3:return"CAN_CHANNEL_CAP_ERROR_COUNTERS";case 4:return"CAN_CHANNEL_CAP_GENERATE_ERROR";case 5:return"CAN_CHANNEL_CAP_GENERATE_OVERLOAD";case 6:return"CAN_CHANNEL_CAP_TXREQUEST";case 7:return"CAN_CHANNEL_CAP_TXACKNOWLEDGE";case 8:return"CAN_CHANNEL_CAP_VIRTUAL";case 9:return"CAN_CHANNEL_CAP_SIMULATED";case 10:return"CAN_CHANNEL_CAP_CAN_FD";case 11:return"CAN_CHANNEL_CAP_CAN_FD_NONISO";case 12:return"CAN_CHANNEL_CAP_SILENT_MODE";case 13:return"CAN_CHANNEL_CAP_SINGLE_SHOT";case 14:return"CAN_CHANNEL_CAP_LOGGER";case 15:return"CAN_CHANNEL_CAP_REMOTE_ACCESS";case 16:return"CAN_CHANNEL_CAP_SCRIPT";case 17:return"CAN_CHANNEL_CAP_LIN_HYBRID";case 18:return"CAN_CHANNEL_CAP_IO_API";case 19:return"CAN_CHANNEL_CAP_CANTEGRITY";case 20:return"CAN_CHANNEL_CAP_EX_BUSPARAMS_TQ";case-1:default:return"UNRECOGNIZED"}}var xn=(e=>(e[e.PROTOCOLS_UNSPECIFIED=0]="PROTOCOLS_UNSPECIFIED",e[e.PROTOCOLS_CAN=1]="PROTOCOLS_CAN",e[e.PROTOCOLS_LIN=2]="PROTOCOLS_LIN",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(xn||{});function Ne(e){switch(e){case 0:case"PROTOCOLS_UNSPECIFIED":return 0;case 1:case"PROTOCOLS_CAN":return 1;case 2:case"PROTOCOLS_LIN":return 2;case-1:case"UNRECOGNIZED":default:return-1}}function _e(e){switch(e){case 0:return"PROTOCOLS_UNSPECIFIED";case 1:return"PROTOCOLS_CAN";case 2:return"PROTOCOLS_LIN";case-1:default:return"UNRECOGNIZED"}}var wn=(e=>(e[e.DEVICE_EVENT_UNSPECIFIED=0]="DEVICE_EVENT_UNSPECIFIED",e[e.DEVICE_EVENT_DEVICES_CHANGED=1]="DEVICE_EVENT_DEVICES_CHANGED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(wn||{});function Hn(e){switch(e){case 0:case"DEVICE_EVENT_UNSPECIFIED":return 0;case 1:case"DEVICE_EVENT_DEVICES_CHANGED":return 1;case-1:case"UNRECOGNIZED":default:return-1}}function zn(e){switch(e){case 0:return"DEVICE_EVENT_UNSPECIFIED";case 1:return"DEVICE_EVENT_DEVICES_CHANGED";case-1:default:return"UNRECOGNIZED"}}function Ge(){return{tq:0,phase1:0,phase2:0,sjw:0,prop:0,prescaler:0}}const l={encode(e,n=new d){return e.tq!==0&&n.uint32(8).int32(e.tq),e.phase1!==0&&n.uint32(16).int32(e.phase1),e.phase2!==0&&n.uint32(24).int32(e.phase2),e.sjw!==0&&n.uint32(32).int32(e.sjw),e.prop!==0&&n.uint32(40).int32(e.prop),e.prescaler!==0&&n.uint32(48).int32(e.prescaler),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Ge();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.tq=i.int32();continue}case 2:{if(r!==16)break;t.phase1=i.int32();continue}case 3:{if(r!==24)break;t.phase2=i.int32();continue}case 4:{if(r!==32)break;t.sjw=i.int32();continue}case 5:{if(r!==40)break;t.prop=i.int32();continue}case 6:{if(r!==48)break;t.prescaler=i.int32();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{tq:f(e.tq)?globalThis.Number(e.tq):0,phase1:f(e.phase1)?globalThis.Number(e.phase1):0,phase2:f(e.phase2)?globalThis.Number(e.phase2):0,sjw:f(e.sjw)?globalThis.Number(e.sjw):0,prop:f(e.prop)?globalThis.Number(e.prop):0,prescaler:f(e.prescaler)?globalThis.Number(e.prescaler):0}},toJSON(e){const n={};return e.tq!==0&&(n.tq=Math.round(e.tq)),e.phase1!==0&&(n.phase1=Math.round(e.phase1)),e.phase2!==0&&(n.phase2=Math.round(e.phase2)),e.sjw!==0&&(n.sjw=Math.round(e.sjw)),e.prop!==0&&(n.prop=Math.round(e.prop)),e.prescaler!==0&&(n.prescaler=Math.round(e.prescaler)),n},create(e){return l.fromPartial(e??{})},fromPartial(e){const n=Ge();return n.tq=e.tq??0,n.phase1=e.phase1??0,n.phase2=e.phase2??0,n.sjw=e.sjw??0,n.prop=e.prop??0,n.prescaler=e.prescaler??0,n}};function De(){return{arbitrationMin:void 0,arbitrationMax:void 0,dataMin:void 0,dataMax:void 0,isValid:!1}}const g={encode(e,n=new d){return e.arbitrationMin!==void 0&&l.encode(e.arbitrationMin,n.uint32(10).fork()).join(),e.arbitrationMax!==void 0&&l.encode(e.arbitrationMax,n.uint32(18).fork()).join(),e.dataMin!==void 0&&l.encode(e.dataMin,n.uint32(26).fork()).join(),e.dataMax!==void 0&&l.encode(e.dataMax,n.uint32(34).fork()).join(),e.isValid!==!1&&n.uint32(40).bool(e.isValid),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=De();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.arbitrationMin=l.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.arbitrationMax=l.decode(i,i.uint32());continue}case 3:{if(r!==26)break;t.dataMin=l.decode(i,i.uint32());continue}case 4:{if(r!==34)break;t.dataMax=l.decode(i,i.uint32());continue}case 5:{if(r!==40)break;t.isValid=i.bool();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{arbitrationMin:f(e.arbitrationMin)?l.fromJSON(e.arbitrationMin):void 0,arbitrationMax:f(e.arbitrationMax)?l.fromJSON(e.arbitrationMax):void 0,dataMin:f(e.dataMin)?l.fromJSON(e.dataMin):void 0,dataMax:f(e.dataMax)?l.fromJSON(e.dataMax):void 0,isValid:f(e.isValid)?globalThis.Boolean(e.isValid):!1}},toJSON(e){const n={};return e.arbitrationMin!==void 0&&(n.arbitrationMin=l.toJSON(e.arbitrationMin)),e.arbitrationMax!==void 0&&(n.arbitrationMax=l.toJSON(e.arbitrationMax)),e.dataMin!==void 0&&(n.dataMin=l.toJSON(e.dataMin)),e.dataMax!==void 0&&(n.dataMax=l.toJSON(e.dataMax)),e.isValid!==!1&&(n.isValid=e.isValid),n},create(e){return g.fromPartial(e??{})},fromPartial(e){const n=De();return n.arbitrationMin=e.arbitrationMin!==void 0&&e.arbitrationMin!==null?l.fromPartial(e.arbitrationMin):void 0,n.arbitrationMax=e.arbitrationMax!==void 0&&e.arbitrationMax!==null?l.fromPartial(e.arbitrationMax):void 0,n.dataMin=e.dataMin!==void 0&&e.dataMin!==null?l.fromPartial(e.dataMin):void 0,n.dataMax=e.dataMax!==void 0&&e.dataMax!==null?l.fromPartial(e.dataMax):void 0,n.isValid=e.isValid??!1,n}};function ke(){return{bitRate:0,actualBitRate:0,bitRateError:0,samplePoint:0,description:"",busParams:void 0}}const m={encode(e,n=new d){return e.bitRate!==0&&n.uint32(8).int32(e.bitRate),e.actualBitRate!==0&&n.uint32(16).int32(e.actualBitRate),e.bitRateError!==0&&n.uint32(25).double(e.bitRateError),e.samplePoint!==0&&n.uint32(33).double(e.samplePoint),e.description!==""&&n.uint32(42).string(e.description),e.busParams!==void 0&&l.encode(e.busParams,n.uint32(50).fork()).join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=ke();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.bitRate=i.int32();continue}case 2:{if(r!==16)break;t.actualBitRate=i.int32();continue}case 3:{if(r!==25)break;t.bitRateError=i.double();continue}case 4:{if(r!==33)break;t.samplePoint=i.double();continue}case 5:{if(r!==42)break;t.description=i.string();continue}case 6:{if(r!==50)break;t.busParams=l.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{bitRate:f(e.bitRate)?globalThis.Number(e.bitRate):0,actualBitRate:f(e.actualBitRate)?globalThis.Number(e.actualBitRate):0,bitRateError:f(e.bitRateError)?globalThis.Number(e.bitRateError):0,samplePoint:f(e.samplePoint)?globalThis.Number(e.samplePoint):0,description:f(e.description)?globalThis.String(e.description):"",busParams:f(e.busParams)?l.fromJSON(e.busParams):void 0}},toJSON(e){const n={};return e.bitRate!==0&&(n.bitRate=Math.round(e.bitRate)),e.actualBitRate!==0&&(n.actualBitRate=Math.round(e.actualBitRate)),e.bitRateError!==0&&(n.bitRateError=e.bitRateError),e.samplePoint!==0&&(n.samplePoint=e.samplePoint),e.description!==""&&(n.description=e.description),e.busParams!==void 0&&(n.busParams=l.toJSON(e.busParams)),n},create(e){return m.fromPartial(e??{})},fromPartial(e){const n=ke();return n.bitRate=e.bitRate??0,n.actualBitRate=e.actualBitRate??0,n.bitRateError=e.bitRateError??0,n.samplePoint=e.samplePoint??0,n.description=e.description??"",n.busParams=e.busParams!==void 0&&e.busParams!==null?l.fromPartial(e.busParams):void 0,n}};function Be(){return{bitRate:0,samplePoint:0,description:"",busParams:void 0}}const T={encode(e,n=new d){return e.bitRate!==0&&n.uint32(8).int32(e.bitRate),e.samplePoint!==0&&n.uint32(17).double(e.samplePoint),e.description!==""&&n.uint32(26).string(e.description),e.busParams!==void 0&&l.encode(e.busParams,n.uint32(34).fork()).join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Be();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.bitRate=i.int32();continue}case 2:{if(r!==17)break;t.samplePoint=i.double();continue}case 3:{if(r!==26)break;t.description=i.string();continue}case 4:{if(r!==34)break;t.busParams=l.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{bitRate:f(e.bitRate)?globalThis.Number(e.bitRate):0,samplePoint:f(e.samplePoint)?globalThis.Number(e.samplePoint):0,description:f(e.description)?globalThis.String(e.description):"",busParams:f(e.busParams)?l.fromJSON(e.busParams):void 0}},toJSON(e){const n={};return e.bitRate!==0&&(n.bitRate=Math.round(e.bitRate)),e.samplePoint!==0&&(n.samplePoint=e.samplePoint),e.description!==""&&(n.description=e.description),e.busParams!==void 0&&(n.busParams=l.toJSON(e.busParams)),n},create(e){return T.fromPartial(e??{})},fromPartial(e){const n=Be();return n.bitRate=e.bitRate??0,n.samplePoint=e.samplePoint??0,n.description=e.description??"",n.busParams=e.busParams!==void 0&&e.busParams!==null?l.fromPartial(e.busParams):void 0,n}};function ye(){return{arbitrationBusSpeed:void 0,dataBusSpeeds:[]}}const h={encode(e,n=new d){e.arbitrationBusSpeed!==void 0&&T.encode(e.arbitrationBusSpeed,n.uint32(10).fork()).join();for(const i of e.dataBusSpeeds)T.encode(i,n.uint32(18).fork()).join();return n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=ye();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.arbitrationBusSpeed=T.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.dataBusSpeeds.push(T.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{arbitrationBusSpeed:f(e.arbitrationBusSpeed)?T.fromJSON(e.arbitrationBusSpeed):void 0,dataBusSpeeds:globalThis.Array.isArray(e==null?void 0:e.dataBusSpeeds)?e.dataBusSpeeds.map(n=>T.fromJSON(n)):[]}},toJSON(e){var i;const n={};return e.arbitrationBusSpeed!==void 0&&(n.arbitrationBusSpeed=T.toJSON(e.arbitrationBusSpeed)),(i=e.dataBusSpeeds)!=null&&i.length&&(n.dataBusSpeeds=e.dataBusSpeeds.map(a=>T.toJSON(a))),n},create(e){return h.fromPartial(e??{})},fromPartial(e){var i;const n=ye();return n.arbitrationBusSpeed=e.arbitrationBusSpeed!==void 0&&e.arbitrationBusSpeed!==null?T.fromPartial(e.arbitrationBusSpeed):void 0,n.dataBusSpeeds=((i=e.dataBusSpeeds)==null?void 0:i.map(a=>T.fromPartial(a)))||[],n}};function ve(){return{busParamLimits:void 0,channelCaps:[],maxBitRate:0,clockFrequency:0}}const b={encode(e,n=new d){e.busParamLimits!==void 0&&g.encode(e.busParamLimits,n.uint32(10).fork()).join(),n.uint32(18).fork();for(const i of e.channelCaps)n.int32(i);return n.join(),e.maxBitRate!==0&&n.uint32(24).int32(e.maxBitRate),e.clockFrequency!==0&&n.uint32(33).double(e.clockFrequency),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=ve();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.busParamLimits=g.decode(i,i.uint32());continue}case 2:{if(r===16){t.channelCaps.push(i.int32());continue}if(r===18){const o=i.uint32()+i.pos;for(;i.pos<o;)t.channelCaps.push(i.int32());continue}break}case 3:{if(r!==24)break;t.maxBitRate=i.int32();continue}case 4:{if(r!==33)break;t.clockFrequency=i.double();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{busParamLimits:f(e.busParamLimits)?g.fromJSON(e.busParamLimits):void 0,channelCaps:globalThis.Array.isArray(e==null?void 0:e.channelCaps)?e.channelCaps.map(n=>Un(n)):[],maxBitRate:f(e.maxBitRate)?globalThis.Number(e.maxBitRate):0,clockFrequency:f(e.clockFrequency)?globalThis.Number(e.clockFrequency):0}},toJSON(e){var i;const n={};return e.busParamLimits!==void 0&&(n.busParamLimits=g.toJSON(e.busParamLimits)),(i=e.channelCaps)!=null&&i.length&&(n.channelCaps=e.channelCaps.map(a=>Jn(a))),e.maxBitRate!==0&&(n.maxBitRate=Math.round(e.maxBitRate)),e.clockFrequency!==0&&(n.clockFrequency=e.clockFrequency),n},create(e){return b.fromPartial(e??{})},fromPartial(e){var i;const n=ve();return n.busParamLimits=e.busParamLimits!==void 0&&e.busParamLimits!==null?g.fromPartial(e.busParamLimits):void 0,n.channelCaps=((i=e.channelCaps)==null?void 0:i.map(a=>a))||[],n.maxBitRate=e.maxBitRate??0,n.clockFrequency=e.clockFrequency??0,n}};function Ve(){return{channelNumber:0,channelNumberOnDevice:0,name:"",protocols:[],canChannelCapacity:void 0}}const G={encode(e,n=new d){e.channelNumber!==0&&n.uint32(8).int32(e.channelNumber),e.channelNumberOnDevice!==0&&n.uint32(16).int32(e.channelNumberOnDevice),e.name!==""&&n.uint32(26).string(e.name),n.uint32(34).fork();for(const i of e.protocols)n.int32(i);return n.join(),e.canChannelCapacity!==void 0&&b.encode(e.canChannelCapacity,n.uint32(42).fork()).join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Ve();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.channelNumber=i.int32();continue}case 2:{if(r!==16)break;t.channelNumberOnDevice=i.int32();continue}case 3:{if(r!==26)break;t.name=i.string();continue}case 4:{if(r===32){t.protocols.push(i.int32());continue}if(r===34){const o=i.uint32()+i.pos;for(;i.pos<o;)t.protocols.push(i.int32());continue}break}case 5:{if(r!==42)break;t.canChannelCapacity=b.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{channelNumber:f(e.channelNumber)?globalThis.Number(e.channelNumber):0,channelNumberOnDevice:f(e.channelNumberOnDevice)?globalThis.Number(e.channelNumberOnDevice):0,name:f(e.name)?globalThis.String(e.name):"",protocols:globalThis.Array.isArray(e==null?void 0:e.protocols)?e.protocols.map(n=>Ne(n)):[],canChannelCapacity:f(e.canChannelCapacity)?b.fromJSON(e.canChannelCapacity):void 0}},toJSON(e){var i;const n={};return e.channelNumber!==0&&(n.channelNumber=Math.round(e.channelNumber)),e.channelNumberOnDevice!==0&&(n.channelNumberOnDevice=Math.round(e.channelNumberOnDevice)),e.name!==""&&(n.name=e.name),(i=e.protocols)!=null&&i.length&&(n.protocols=e.protocols.map(a=>_e(a))),e.canChannelCapacity!==void 0&&(n.canChannelCapacity=b.toJSON(e.canChannelCapacity)),n},create(e){return G.fromPartial(e??{})},fromPartial(e){var i;const n=Ve();return n.channelNumber=e.channelNumber??0,n.channelNumberOnDevice=e.channelNumberOnDevice??0,n.name=e.name??"",n.protocols=((i=e.protocols)==null?void 0:i.map(a=>a))||[],n.canChannelCapacity=e.canChannelCapacity!==void 0&&e.canChannelCapacity!==null?b.fromPartial(e.canChannelCapacity):void 0,n}};function Ue(){return{cardType:0,cardNumber:0,productCode:"",serialNumber:"",name:"",protocols:[],channels:[]}}const p={encode(e,n=new d){e.cardType!==0&&n.uint32(8).int32(e.cardType),e.cardNumber!==0&&n.uint32(16).int32(e.cardNumber),e.productCode!==""&&n.uint32(26).string(e.productCode),e.serialNumber!==""&&n.uint32(34).string(e.serialNumber),e.name!==""&&n.uint32(42).string(e.name),n.uint32(50).fork();for(const i of e.protocols)n.int32(i);n.join();for(const i of e.channels)G.encode(i,n.uint32(58).fork()).join();return n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Ue();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.cardType=i.int32();continue}case 2:{if(r!==16)break;t.cardNumber=i.int32();continue}case 3:{if(r!==26)break;t.productCode=i.string();continue}case 4:{if(r!==34)break;t.serialNumber=i.string();continue}case 5:{if(r!==42)break;t.name=i.string();continue}case 6:{if(r===48){t.protocols.push(i.int32());continue}if(r===50){const o=i.uint32()+i.pos;for(;i.pos<o;)t.protocols.push(i.int32());continue}break}case 7:{if(r!==58)break;t.channels.push(G.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{cardType:f(e.cardType)?globalThis.Number(e.cardType):0,cardNumber:f(e.cardNumber)?globalThis.Number(e.cardNumber):0,productCode:f(e.productCode)?globalThis.String(e.productCode):"",serialNumber:f(e.serialNumber)?globalThis.String(e.serialNumber):"",name:f(e.name)?globalThis.String(e.name):"",protocols:globalThis.Array.isArray(e==null?void 0:e.protocols)?e.protocols.map(n=>Ne(n)):[],channels:globalThis.Array.isArray(e==null?void 0:e.channels)?e.channels.map(n=>G.fromJSON(n)):[]}},toJSON(e){var i,a;const n={};return e.cardType!==0&&(n.cardType=Math.round(e.cardType)),e.cardNumber!==0&&(n.cardNumber=Math.round(e.cardNumber)),e.productCode!==""&&(n.productCode=e.productCode),e.serialNumber!==""&&(n.serialNumber=e.serialNumber),e.name!==""&&(n.name=e.name),(i=e.protocols)!=null&&i.length&&(n.protocols=e.protocols.map(t=>_e(t))),(a=e.channels)!=null&&a.length&&(n.channels=e.channels.map(t=>G.toJSON(t))),n},create(e){return p.fromPartial(e??{})},fromPartial(e){var i,a;const n=Ue();return n.cardType=e.cardType??0,n.cardNumber=e.cardNumber??0,n.productCode=e.productCode??"",n.serialNumber=e.serialNumber??"",n.name=e.name??"",n.protocols=((i=e.protocols)==null?void 0:i.map(t=>t))||[],n.channels=((a=e.channels)==null?void 0:a.map(t=>G.fromPartial(t)))||[],n}};function Je(){return{items:[]}}const D={encode(e,n=new d){for(const i of e.items)p.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Je();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.items.push(p.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{items:globalThis.Array.isArray(e==null?void 0:e.items)?e.items.map(n=>p.fromJSON(n)):[]}},toJSON(e){var i;const n={};return(i=e.items)!=null&&i.length&&(n.items=e.items.map(a=>p.toJSON(a))),n},create(e){return D.fromPartial(e??{})},fromPartial(e){var i;const n=Je();return n.items=((i=e.items)==null?void 0:i.map(a=>p.fromPartial(a)))||[],n}};function xe(){return{preferences:void 0,includeVirtual:!1}}const Qn={encode(e,n=new d){return e.preferences!==void 0&&E.encode(e.preferences,n.uint32(10).fork()).join(),e.includeVirtual!==!1&&n.uint32(16).bool(e.includeVirtual),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=xe();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=E.decode(i,i.uint32());continue}case 2:{if(r!==16)break;t.includeVirtual=i.bool();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?E.fromJSON(e.preferences):void 0,includeVirtual:f(e.includeVirtual)?globalThis.Boolean(e.includeVirtual):!1}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=E.toJSON(e.preferences)),e.includeVirtual!==!1&&(n.includeVirtual=e.includeVirtual),n},create(e){return Qn.fromPartial(e??{})},fromPartial(e){const n=xe();return n.preferences=e.preferences!==void 0&&e.preferences!==null?E.fromPartial(e.preferences):void 0,n.includeVirtual=e.includeVirtual??!1,n}};function we(){return{devices:[]}}const Xn={encode(e,n=new d){for(const i of e.devices)p.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=we();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.devices.push(p.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{devices:globalThis.Array.isArray(e==null?void 0:e.devices)?e.devices.map(n=>p.fromJSON(n)):[]}},toJSON(e){var i;const n={};return(i=e.devices)!=null&&i.length&&(n.devices=e.devices.map(a=>p.toJSON(a))),n},create(e){return Xn.fromPartial(e??{})},fromPartial(e){var i;const n=we();return n.devices=((i=e.devices)==null?void 0:i.map(a=>p.fromPartial(a)))||[],n}};function He(){return{preferences:void 0,channelNumber:0,bitRate:void 0,bitRateArbitrationPhase:void 0,bitRateDataPhase:void 0}}const qn={encode(e,n=new d){return e.preferences!==void 0&&E.encode(e.preferences,n.uint32(10).fork()).join(),e.channelNumber!==0&&n.uint32(16).int32(e.channelNumber),e.bitRate!==void 0&&n.uint32(24).int32(e.bitRate),e.bitRateArbitrationPhase!==void 0&&n.uint32(32).int32(e.bitRateArbitrationPhase),e.bitRateDataPhase!==void 0&&n.uint32(40).int32(e.bitRateDataPhase),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=He();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=E.decode(i,i.uint32());continue}case 2:{if(r!==16)break;t.channelNumber=i.int32();continue}case 3:{if(r!==24)break;t.bitRate=i.int32();continue}case 4:{if(r!==32)break;t.bitRateArbitrationPhase=i.int32();continue}case 5:{if(r!==40)break;t.bitRateDataPhase=i.int32();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?E.fromJSON(e.preferences):void 0,channelNumber:f(e.channelNumber)?globalThis.Number(e.channelNumber):0,bitRate:f(e.bitRate)?globalThis.Number(e.bitRate):void 0,bitRateArbitrationPhase:f(e.bitRateArbitrationPhase)?globalThis.Number(e.bitRateArbitrationPhase):void 0,bitRateDataPhase:f(e.bitRateDataPhase)?globalThis.Number(e.bitRateDataPhase):void 0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=E.toJSON(e.preferences)),e.channelNumber!==0&&(n.channelNumber=Math.round(e.channelNumber)),e.bitRate!==void 0&&(n.bitRate=Math.round(e.bitRate)),e.bitRateArbitrationPhase!==void 0&&(n.bitRateArbitrationPhase=Math.round(e.bitRateArbitrationPhase)),e.bitRateDataPhase!==void 0&&(n.bitRateDataPhase=Math.round(e.bitRateDataPhase)),n},create(e){return qn.fromPartial(e??{})},fromPartial(e){const n=He();return n.preferences=e.preferences!==void 0&&e.preferences!==null?E.fromPartial(e.preferences):void 0,n.channelNumber=e.channelNumber??0,n.bitRate=e.bitRate??void 0,n.bitRateArbitrationPhase=e.bitRateArbitrationPhase??void 0,n.bitRateDataPhase=e.bitRateDataPhase??void 0,n}};function ze(){return{availableBusSpeeds:[],availableBusSpeedsFd:[]}}const Zn={encode(e,n=new d){for(const i of e.availableBusSpeeds)m.encode(i,n.uint32(10).fork()).join();for(const i of e.availableBusSpeedsFd)h.encode(i,n.uint32(18).fork()).join();return n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=ze();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.availableBusSpeeds.push(m.decode(i,i.uint32()));continue}case 2:{if(r!==18)break;t.availableBusSpeedsFd.push(h.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{availableBusSpeeds:globalThis.Array.isArray(e==null?void 0:e.availableBusSpeeds)?e.availableBusSpeeds.map(n=>m.fromJSON(n)):[],availableBusSpeedsFd:globalThis.Array.isArray(e==null?void 0:e.availableBusSpeedsFd)?e.availableBusSpeedsFd.map(n=>h.fromJSON(n)):[]}},toJSON(e){var i,a;const n={};return(i=e.availableBusSpeeds)!=null&&i.length&&(n.availableBusSpeeds=e.availableBusSpeeds.map(t=>m.toJSON(t))),(a=e.availableBusSpeedsFd)!=null&&a.length&&(n.availableBusSpeedsFd=e.availableBusSpeedsFd.map(t=>h.toJSON(t))),n},create(e){return Zn.fromPartial(e??{})},fromPartial(e){var i,a;const n=ze();return n.availableBusSpeeds=((i=e.availableBusSpeeds)==null?void 0:i.map(t=>m.fromPartial(t)))||[],n.availableBusSpeedsFd=((a=e.availableBusSpeedsFd)==null?void 0:a.map(t=>h.fromPartial(t)))||[],n}};function Qe(){return{preferences:void 0,channelNumber:0,bitRates:[]}}const Yn={encode(e,n=new d){e.preferences!==void 0&&E.encode(e.preferences,n.uint32(10).fork()).join(),e.channelNumber!==0&&n.uint32(16).int32(e.channelNumber),n.uint32(26).fork();for(const i of e.bitRates)n.int32(i);return n.join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Qe();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=E.decode(i,i.uint32());continue}case 2:{if(r!==16)break;t.channelNumber=i.int32();continue}case 3:{if(r===24){t.bitRates.push(i.int32());continue}if(r===26){const o=i.uint32()+i.pos;for(;i.pos<o;)t.bitRates.push(i.int32());continue}break}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?E.fromJSON(e.preferences):void 0,channelNumber:f(e.channelNumber)?globalThis.Number(e.channelNumber):0,bitRates:globalThis.Array.isArray(e==null?void 0:e.bitRates)?e.bitRates.map(n=>globalThis.Number(n)):[]}},toJSON(e){var i;const n={};return e.preferences!==void 0&&(n.preferences=E.toJSON(e.preferences)),e.channelNumber!==0&&(n.channelNumber=Math.round(e.channelNumber)),(i=e.bitRates)!=null&&i.length&&(n.bitRates=e.bitRates.map(a=>Math.round(a))),n},create(e){return Yn.fromPartial(e??{})},fromPartial(e){var i;const n=Qe();return n.preferences=e.preferences!==void 0&&e.preferences!==null?E.fromPartial(e.preferences):void 0,n.channelNumber=e.channelNumber??0,n.bitRates=((i=e.bitRates)==null?void 0:i.map(a=>a))||[],n}};function Xe(){return{availableBusSpeeds:[]}}const Kn={encode(e,n=new d){for(const i of e.availableBusSpeeds)m.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Xe();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.availableBusSpeeds.push(m.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{availableBusSpeeds:globalThis.Array.isArray(e==null?void 0:e.availableBusSpeeds)?e.availableBusSpeeds.map(n=>m.fromJSON(n)):[]}},toJSON(e){var i;const n={};return(i=e.availableBusSpeeds)!=null&&i.length&&(n.availableBusSpeeds=e.availableBusSpeeds.map(a=>m.toJSON(a))),n},create(e){return Kn.fromPartial(e??{})},fromPartial(e){var i;const n=Xe();return n.availableBusSpeeds=((i=e.availableBusSpeeds)==null?void 0:i.map(a=>m.fromPartial(a)))||[],n}};function qe(){return{preferences:void 0,channelNumber:0,bitRatesArbitrationPhase:[],bitRatesDataPhase:[]}}const Wn={encode(e,n=new d){e.preferences!==void 0&&E.encode(e.preferences,n.uint32(10).fork()).join(),e.channelNumber!==0&&n.uint32(16).int32(e.channelNumber),n.uint32(26).fork();for(const i of e.bitRatesArbitrationPhase)n.int32(i);n.join(),n.uint32(34).fork();for(const i of e.bitRatesDataPhase)n.int32(i);return n.join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=qe();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=E.decode(i,i.uint32());continue}case 2:{if(r!==16)break;t.channelNumber=i.int32();continue}case 3:{if(r===24){t.bitRatesArbitrationPhase.push(i.int32());continue}if(r===26){const o=i.uint32()+i.pos;for(;i.pos<o;)t.bitRatesArbitrationPhase.push(i.int32());continue}break}case 4:{if(r===32){t.bitRatesDataPhase.push(i.int32());continue}if(r===34){const o=i.uint32()+i.pos;for(;i.pos<o;)t.bitRatesDataPhase.push(i.int32());continue}break}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?E.fromJSON(e.preferences):void 0,channelNumber:f(e.channelNumber)?globalThis.Number(e.channelNumber):0,bitRatesArbitrationPhase:globalThis.Array.isArray(e==null?void 0:e.bitRatesArbitrationPhase)?e.bitRatesArbitrationPhase.map(n=>globalThis.Number(n)):[],bitRatesDataPhase:globalThis.Array.isArray(e==null?void 0:e.bitRatesDataPhase)?e.bitRatesDataPhase.map(n=>globalThis.Number(n)):[]}},toJSON(e){var i,a;const n={};return e.preferences!==void 0&&(n.preferences=E.toJSON(e.preferences)),e.channelNumber!==0&&(n.channelNumber=Math.round(e.channelNumber)),(i=e.bitRatesArbitrationPhase)!=null&&i.length&&(n.bitRatesArbitrationPhase=e.bitRatesArbitrationPhase.map(t=>Math.round(t))),(a=e.bitRatesDataPhase)!=null&&a.length&&(n.bitRatesDataPhase=e.bitRatesDataPhase.map(t=>Math.round(t))),n},create(e){return Wn.fromPartial(e??{})},fromPartial(e){var i,a;const n=qe();return n.preferences=e.preferences!==void 0&&e.preferences!==null?E.fromPartial(e.preferences):void 0,n.channelNumber=e.channelNumber??0,n.bitRatesArbitrationPhase=((i=e.bitRatesArbitrationPhase)==null?void 0:i.map(t=>t))||[],n.bitRatesDataPhase=((a=e.bitRatesDataPhase)==null?void 0:a.map(t=>t))||[],n}};function Ze(){return{availableBusSpeedsFd:[]}}const $n={encode(e,n=new d){for(const i of e.availableBusSpeedsFd)h.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Ze();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.availableBusSpeedsFd.push(h.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{availableBusSpeedsFd:globalThis.Array.isArray(e==null?void 0:e.availableBusSpeedsFd)?e.availableBusSpeedsFd.map(n=>h.fromJSON(n)):[]}},toJSON(e){var i;const n={};return(i=e.availableBusSpeedsFd)!=null&&i.length&&(n.availableBusSpeedsFd=e.availableBusSpeedsFd.map(a=>h.toJSON(a))),n},create(e){return $n.fromPartial(e??{})},fromPartial(e){var i;const n=Ze();return n.availableBusSpeedsFd=((i=e.availableBusSpeedsFd)==null?void 0:i.map(a=>h.fromPartial(a)))||[],n}};function Ye(){return{eventType:0,devices:void 0}}const jn={encode(e,n=new d){return e.eventType!==0&&n.uint32(8).int32(e.eventType),e.devices!==void 0&&D.encode(e.devices,n.uint32(18).fork()).join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Ye();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.eventType=i.int32();continue}case 2:{if(r!==18)break;t.devices=D.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{eventType:f(e.eventType)?Hn(e.eventType):0,devices:f(e.devices)?D.fromJSON(e.devices):void 0}},toJSON(e){const n={};return e.eventType!==0&&(n.eventType=zn(e.eventType)),e.devices!==void 0&&(n.devices=D.toJSON(e.devices)),n},create(e){return jn.fromPartial(e??{})},fromPartial(e){const n=Ye();return n.eventType=e.eventType??0,n.devices=e.devices!==void 0&&e.devices!==null?D.fromPartial(e.devices):void 0,n}};function f(e){return e!=null}var ei=(e=>(e[e.SIGNAL_ENCODING_INTEL=0]="SIGNAL_ENCODING_INTEL",e[e.SIGNAL_ENCODING_MOTOROLA=1]="SIGNAL_ENCODING_MOTOROLA",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(ei||{});function ni(e){switch(e){case 0:case"SIGNAL_ENCODING_INTEL":return 0;case 1:case"SIGNAL_ENCODING_MOTOROLA":return 1;case-1:case"UNRECOGNIZED":default:return-1}}function ii(e){switch(e){case 0:return"SIGNAL_ENCODING_INTEL";case 1:return"SIGNAL_ENCODING_MOTOROLA";case-1:default:return"UNRECOGNIZED"}}var ri=(e=>(e[e.SIGNAL_TYPE_INVALID=0]="SIGNAL_TYPE_INVALID",e[e.SIGNAL_TYPE_SIGNED=1]="SIGNAL_TYPE_SIGNED",e[e.SIGNAL_TYPE_UNSIGNED=2]="SIGNAL_TYPE_UNSIGNED",e[e.SIGNAL_TYPE_FLOAT=3]="SIGNAL_TYPE_FLOAT",e[e.SIGNAL_TYPE_DOUBLE=4]="SIGNAL_TYPE_DOUBLE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(ri||{});function ti(e){switch(e){case 0:case"SIGNAL_TYPE_INVALID":return 0;case 1:case"SIGNAL_TYPE_SIGNED":return 1;case 2:case"SIGNAL_TYPE_UNSIGNED":return 2;case 3:case"SIGNAL_TYPE_FLOAT":return 3;case 4:case"SIGNAL_TYPE_DOUBLE":return 4;case-1:case"UNRECOGNIZED":default:return-1}}function ai(e){switch(e){case 0:return"SIGNAL_TYPE_INVALID";case 1:return"SIGNAL_TYPE_SIGNED";case 2:return"SIGNAL_TYPE_UNSIGNED";case 3:return"SIGNAL_TYPE_FLOAT";case 4:return"SIGNAL_TYPE_DOUBLE";case-1:default:return"UNRECOGNIZED"}}function Ke(){return{name:"",qualifiedName:"",comment:"",encoding:0,dataType:0,startbit:0,length:0,unit:"",factor:0,offset:0,minValue:0,maxValue:0,enumValues:{},isMultiplexer:!1,isMultiplexed:!1,multiplexValue:void 0}}const I={encode(e,n=new d){return e.name!==""&&n.uint32(10).string(e.name),e.qualifiedName!==""&&n.uint32(18).string(e.qualifiedName),e.comment!==""&&n.uint32(26).string(e.comment),e.encoding!==0&&n.uint32(32).int32(e.encoding),e.dataType!==0&&n.uint32(40).int32(e.dataType),e.startbit!==0&&n.uint32(48).int32(e.startbit),e.length!==0&&n.uint32(56).int32(e.length),e.unit!==""&&n.uint32(66).string(e.unit),e.factor!==0&&n.uint32(73).double(e.factor),e.offset!==0&&n.uint32(81).double(e.offset),e.minValue!==0&&n.uint32(89).double(e.minValue),e.maxValue!==0&&n.uint32(97).double(e.maxValue),Object.entries(e.enumValues).forEach(([i,a])=>{ue.encode({key:i,value:a},n.uint32(106).fork()).join()}),e.isMultiplexer!==!1&&n.uint32(112).bool(e.isMultiplexer),e.isMultiplexed!==!1&&n.uint32(120).bool(e.isMultiplexed),e.multiplexValue!==void 0&&n.uint32(128).int32(e.multiplexValue),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Ke();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.name=i.string();continue}case 2:{if(r!==18)break;t.qualifiedName=i.string();continue}case 3:{if(r!==26)break;t.comment=i.string();continue}case 4:{if(r!==32)break;t.encoding=i.int32();continue}case 5:{if(r!==40)break;t.dataType=i.int32();continue}case 6:{if(r!==48)break;t.startbit=i.int32();continue}case 7:{if(r!==56)break;t.length=i.int32();continue}case 8:{if(r!==66)break;t.unit=i.string();continue}case 9:{if(r!==73)break;t.factor=i.double();continue}case 10:{if(r!==81)break;t.offset=i.double();continue}case 11:{if(r!==89)break;t.minValue=i.double();continue}case 12:{if(r!==97)break;t.maxValue=i.double();continue}case 13:{if(r!==106)break;const o=ue.decode(i,i.uint32());o.value!==void 0&&(t.enumValues[o.key]=o.value);continue}case 14:{if(r!==112)break;t.isMultiplexer=i.bool();continue}case 15:{if(r!==120)break;t.isMultiplexed=i.bool();continue}case 16:{if(r!==128)break;t.multiplexValue=i.int32();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{name:A(e.name)?globalThis.String(e.name):"",qualifiedName:A(e.qualifiedName)?globalThis.String(e.qualifiedName):"",comment:A(e.comment)?globalThis.String(e.comment):"",encoding:A(e.encoding)?ni(e.encoding):0,dataType:A(e.dataType)?ti(e.dataType):0,startbit:A(e.startbit)?globalThis.Number(e.startbit):0,length:A(e.length)?globalThis.Number(e.length):0,unit:A(e.unit)?globalThis.String(e.unit):"",factor:A(e.factor)?globalThis.Number(e.factor):0,offset:A(e.offset)?globalThis.Number(e.offset):0,minValue:A(e.minValue)?globalThis.Number(e.minValue):0,maxValue:A(e.maxValue)?globalThis.Number(e.maxValue):0,enumValues:qi(e.enumValues)?Object.entries(e.enumValues).reduce((n,[i,a])=>(n[globalThis.Number(i)]=String(a),n),{}):{},isMultiplexer:A(e.isMultiplexer)?globalThis.Boolean(e.isMultiplexer):!1,isMultiplexed:A(e.isMultiplexed)?globalThis.Boolean(e.isMultiplexed):!1,multiplexValue:A(e.multiplexValue)?globalThis.Number(e.multiplexValue):void 0}},toJSON(e){const n={};if(e.name!==""&&(n.name=e.name),e.qualifiedName!==""&&(n.qualifiedName=e.qualifiedName),e.comment!==""&&(n.comment=e.comment),e.encoding!==0&&(n.encoding=ii(e.encoding)),e.dataType!==0&&(n.dataType=ai(e.dataType)),e.startbit!==0&&(n.startbit=Math.round(e.startbit)),e.length!==0&&(n.length=Math.round(e.length)),e.unit!==""&&(n.unit=e.unit),e.factor!==0&&(n.factor=e.factor),e.offset!==0&&(n.offset=e.offset),e.minValue!==0&&(n.minValue=e.minValue),e.maxValue!==0&&(n.maxValue=e.maxValue),e.enumValues){const i=Object.entries(e.enumValues);i.length>0&&(n.enumValues={},i.forEach(([a,t])=>{n.enumValues[a]=t}))}return e.isMultiplexer!==!1&&(n.isMultiplexer=e.isMultiplexer),e.isMultiplexed!==!1&&(n.isMultiplexed=e.isMultiplexed),e.multiplexValue!==void 0&&(n.multiplexValue=Math.round(e.multiplexValue)),n},create(e){return I.fromPartial(e??{})},fromPartial(e){const n=Ke();return n.name=e.name??"",n.qualifiedName=e.qualifiedName??"",n.comment=e.comment??"",n.encoding=e.encoding??0,n.dataType=e.dataType??0,n.startbit=e.startbit??0,n.length=e.length??0,n.unit=e.unit??"",n.factor=e.factor??0,n.offset=e.offset??0,n.minValue=e.minValue??0,n.maxValue=e.maxValue??0,n.enumValues=Object.entries(e.enumValues??{}).reduce((i,[a,t])=>(t!==void 0&&(i[globalThis.Number(a)]=globalThis.String(t)),i),{}),n.isMultiplexer=e.isMultiplexer??!1,n.isMultiplexed=e.isMultiplexed??!1,n.multiplexValue=e.multiplexValue??void 0,n}};function We(){return{key:0,value:""}}const ue={encode(e,n=new d){return e.key!==0&&n.uint32(8).int32(e.key),e.value!==""&&n.uint32(18).string(e.value),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=We();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.key=i.int32();continue}case 2:{if(r!==18)break;t.value=i.string();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{key:A(e.key)?globalThis.Number(e.key):0,value:A(e.value)?globalThis.String(e.value):""}},toJSON(e){const n={};return e.key!==0&&(n.key=Math.round(e.key)),e.value!==""&&(n.value=e.value),n},create(e){return ue.fromPartial(e??{})},fromPartial(e){const n=We();return n.key=e.key??0,n.value=e.value??"",n}};function $e(){return{items:[]}}const ui={encode(e,n=new d){for(const i of e.items)I.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=$e();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.items.push(I.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{items:globalThis.Array.isArray(e==null?void 0:e.items)?e.items.map(n=>I.fromJSON(n)):[]}},toJSON(e){var i;const n={};return(i=e.items)!=null&&i.length&&(n.items=e.items.map(a=>I.toJSON(a))),n},create(e){return ui.fromPartial(e??{})},fromPartial(e){var i;const n=$e();return n.items=((i=e.items)==null?void 0:i.map(a=>I.fromPartial(a)))||[],n}};function qi(e){return typeof e=="object"&&e!==null}function A(e){return e!=null}var si=(e=>(e[e.CAN_FRAME_FLAG_UNSPECIFIED=0]="CAN_FRAME_FLAG_UNSPECIFIED",e[e.CAN_FRAME_FLAG_RTR=1]="CAN_FRAME_FLAG_RTR",e[e.CAN_FRAME_FLAG_STD=2]="CAN_FRAME_FLAG_STD",e[e.CAN_FRAME_FLAG_EXT=4]="CAN_FRAME_FLAG_EXT",e[e.CAN_FRAME_FLAG_WAKEUP=8]="CAN_FRAME_FLAG_WAKEUP",e[e.CAN_FRAME_FLAG_NERR=16]="CAN_FRAME_FLAG_NERR",e[e.CAN_FRAME_FLAG_ERROR_FRAME=32]="CAN_FRAME_FLAG_ERROR_FRAME",e[e.CAN_FRAME_FLAG_TXACK=64]="CAN_FRAME_FLAG_TXACK",e[e.CAN_FRAME_FLAG_TXRQ=128]="CAN_FRAME_FLAG_TXRQ",e[e.CAN_FRAME_FLAG_DELAY_MSG=256]="CAN_FRAME_FLAG_DELAY_MSG",e[e.CAN_FRAME_FLAG_LOCAL_TXACK=268435456]="CAN_FRAME_FLAG_LOCAL_TXACK",e[e.CAN_FRAME_FLAG_SINGLE_SHOT=16777216]="CAN_FRAME_FLAG_SINGLE_SHOT",e[e.CAN_FRAME_FLAG_TXNACK=33554432]="CAN_FRAME_FLAG_TXNACK",e[e.CAN_FRAME_FLAG_ABL=67108864]="CAN_FRAME_FLAG_ABL",e[e.CAN_FRAME_FLAG_FD_FDF=65536]="CAN_FRAME_FLAG_FD_FDF",e[e.CAN_FRAME_FLAG_FD_BRS=131072]="CAN_FRAME_FLAG_FD_BRS",e[e.CAN_FRAME_FLAG_FD_ESI=262144]="CAN_FRAME_FLAG_FD_ESI",e[e.CAN_FRAME_FLAG_ERR_HW_OVERRUN=512]="CAN_FRAME_FLAG_ERR_HW_OVERRUN",e[e.CAN_FRAME_FLAG_ERR_SW_OVERRUN=1024]="CAN_FRAME_FLAG_ERR_SW_OVERRUN",e[e.CAN_FRAME_FLAG_ERR_STUFF=2048]="CAN_FRAME_FLAG_ERR_STUFF",e[e.CAN_FRAME_FLAG_ERR_FORM=4096]="CAN_FRAME_FLAG_ERR_FORM",e[e.CAN_FRAME_FLAG_ERR_CRC=8192]="CAN_FRAME_FLAG_ERR_CRC",e[e.CAN_FRAME_FLAG_ERR_BIT0=16384]="CAN_FRAME_FLAG_ERR_BIT0",e[e.CAN_FRAME_FLAG_ERR_BIT1=32768]="CAN_FRAME_FLAG_ERR_BIT1",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(si||{});function oi(e){switch(e){case 0:case"CAN_FRAME_FLAG_UNSPECIFIED":return 0;case 1:case"CAN_FRAME_FLAG_RTR":return 1;case 2:case"CAN_FRAME_FLAG_STD":return 2;case 4:case"CAN_FRAME_FLAG_EXT":return 4;case 8:case"CAN_FRAME_FLAG_WAKEUP":return 8;case 16:case"CAN_FRAME_FLAG_NERR":return 16;case 32:case"CAN_FRAME_FLAG_ERROR_FRAME":return 32;case 64:case"CAN_FRAME_FLAG_TXACK":return 64;case 128:case"CAN_FRAME_FLAG_TXRQ":return 128;case 256:case"CAN_FRAME_FLAG_DELAY_MSG":return 256;case 268435456:case"CAN_FRAME_FLAG_LOCAL_TXACK":return 268435456;case 16777216:case"CAN_FRAME_FLAG_SINGLE_SHOT":return 16777216;case 33554432:case"CAN_FRAME_FLAG_TXNACK":return 33554432;case 67108864:case"CAN_FRAME_FLAG_ABL":return 67108864;case 65536:case"CAN_FRAME_FLAG_FD_FDF":return 65536;case 131072:case"CAN_FRAME_FLAG_FD_BRS":return 131072;case 262144:case"CAN_FRAME_FLAG_FD_ESI":return 262144;case 512:case"CAN_FRAME_FLAG_ERR_HW_OVERRUN":return 512;case 1024:case"CAN_FRAME_FLAG_ERR_SW_OVERRUN":return 1024;case 2048:case"CAN_FRAME_FLAG_ERR_STUFF":return 2048;case 4096:case"CAN_FRAME_FLAG_ERR_FORM":return 4096;case 8192:case"CAN_FRAME_FLAG_ERR_CRC":return 8192;case 16384:case"CAN_FRAME_FLAG_ERR_BIT0":return 16384;case 32768:case"CAN_FRAME_FLAG_ERR_BIT1":return 32768;case-1:case"UNRECOGNIZED":default:return-1}}function di(e){switch(e){case 0:return"CAN_FRAME_FLAG_UNSPECIFIED";case 1:return"CAN_FRAME_FLAG_RTR";case 2:return"CAN_FRAME_FLAG_STD";case 4:return"CAN_FRAME_FLAG_EXT";case 8:return"CAN_FRAME_FLAG_WAKEUP";case 16:return"CAN_FRAME_FLAG_NERR";case 32:return"CAN_FRAME_FLAG_ERROR_FRAME";case 64:return"CAN_FRAME_FLAG_TXACK";case 128:return"CAN_FRAME_FLAG_TXRQ";case 256:return"CAN_FRAME_FLAG_DELAY_MSG";case 268435456:return"CAN_FRAME_FLAG_LOCAL_TXACK";case 16777216:return"CAN_FRAME_FLAG_SINGLE_SHOT";case 33554432:return"CAN_FRAME_FLAG_TXNACK";case 67108864:return"CAN_FRAME_FLAG_ABL";case 65536:return"CAN_FRAME_FLAG_FD_FDF";case 131072:return"CAN_FRAME_FLAG_FD_BRS";case 262144:return"CAN_FRAME_FLAG_FD_ESI";case 512:return"CAN_FRAME_FLAG_ERR_HW_OVERRUN";case 1024:return"CAN_FRAME_FLAG_ERR_SW_OVERRUN";case 2048:return"CAN_FRAME_FLAG_ERR_STUFF";case 4096:return"CAN_FRAME_FLAG_ERR_FORM";case 8192:return"CAN_FRAME_FLAG_ERR_CRC";case 16384:return"CAN_FRAME_FLAG_ERR_BIT0";case 32768:return"CAN_FRAME_FLAG_ERR_BIT1";case-1:default:return"UNRECOGNIZED"}}var fi=(e=>(e[e.LIN_FRAME_FLAG_UNSPECIFIED=0]="LIN_FRAME_FLAG_UNSPECIFIED",e[e.LIN_FRAME_FLAG_TX=1]="LIN_FRAME_FLAG_TX",e[e.LIN_FRAME_FLAG_RX=2]="LIN_FRAME_FLAG_RX",e[e.LIN_FRAME_FLAG_WAKEUP_FRAME=4]="LIN_FRAME_FLAG_WAKEUP_FRAME",e[e.LIN_FRAME_FLAG_NODATA=8]="LIN_FRAME_FLAG_NODATA",e[e.LIN_FRAME_FLAG_CSUM_ERROR=16]="LIN_FRAME_FLAG_CSUM_ERROR",e[e.LIN_FRAME_FLAG_PARITY_ERROR=32]="LIN_FRAME_FLAG_PARITY_ERROR",e[e.LIN_FRAME_FLAG_SYNCH_ERROR=64]="LIN_FRAME_FLAG_SYNCH_ERROR",e[e.LIN_FRAME_FLAG_BIT_ERROR=128]="LIN_FRAME_FLAG_BIT_ERROR",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(fi||{});function li(e){switch(e){case 0:case"LIN_FRAME_FLAG_UNSPECIFIED":return 0;case 1:case"LIN_FRAME_FLAG_TX":return 1;case 2:case"LIN_FRAME_FLAG_RX":return 2;case 4:case"LIN_FRAME_FLAG_WAKEUP_FRAME":return 4;case 8:case"LIN_FRAME_FLAG_NODATA":return 8;case 16:case"LIN_FRAME_FLAG_CSUM_ERROR":return 16;case 32:case"LIN_FRAME_FLAG_PARITY_ERROR":return 32;case 64:case"LIN_FRAME_FLAG_SYNCH_ERROR":return 64;case 128:case"LIN_FRAME_FLAG_BIT_ERROR":return 128;case-1:case"UNRECOGNIZED":default:return-1}}function ci(e){switch(e){case 0:return"LIN_FRAME_FLAG_UNSPECIFIED";case 1:return"LIN_FRAME_FLAG_TX";case 2:return"LIN_FRAME_FLAG_RX";case 4:return"LIN_FRAME_FLAG_WAKEUP_FRAME";case 8:return"LIN_FRAME_FLAG_NODATA";case 16:return"LIN_FRAME_FLAG_CSUM_ERROR";case 32:return"LIN_FRAME_FLAG_PARITY_ERROR";case 64:return"LIN_FRAME_FLAG_SYNCH_ERROR";case 128:return"LIN_FRAME_FLAG_BIT_ERROR";case-1:default:return"UNRECOGNIZED"}}function je(){return{flags:[]}}const S={encode(e,n=new d){n.uint32(10).fork();for(const i of e.flags)n.int32(i);return n.join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=je();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r===8){t.flags.push(i.int32());continue}if(r===10){const o=i.uint32()+i.pos;for(;i.pos<o;)t.flags.push(i.int32());continue}break}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{flags:globalThis.Array.isArray(e==null?void 0:e.flags)?e.flags.map(n=>oi(n)):[]}},toJSON(e){var i;const n={};return(i=e.flags)!=null&&i.length&&(n.flags=e.flags.map(a=>di(a))),n},create(e){return S.fromPartial(e??{})},fromPartial(e){var i;const n=je();return n.flags=((i=e.flags)==null?void 0:i.map(a=>a))||[],n}};function en(){return{flags:[]}}const C={encode(e,n=new d){n.uint32(10).fork();for(const i of e.flags)n.int32(i);return n.join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=en();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r===8){t.flags.push(i.int32());continue}if(r===10){const o=i.uint32()+i.pos;for(;i.pos<o;)t.flags.push(i.int32());continue}break}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{flags:globalThis.Array.isArray(e==null?void 0:e.flags)?e.flags.map(n=>li(n)):[]}},toJSON(e){var i;const n={};return(i=e.flags)!=null&&i.length&&(n.flags=e.flags.map(a=>ci(a))),n},create(e){return C.fromPartial(e??{})},fromPartial(e){var i;const n=en();return n.flags=((i=e.flags)==null?void 0:i.map(a=>a))||[],n}};function nn(){return{stringValue:void 0,doubleValue:void 0}}const L={encode(e,n=new d){return e.stringValue!==void 0&&n.uint32(10).string(e.stringValue),e.doubleValue!==void 0&&n.uint32(17).double(e.doubleValue),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=nn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.stringValue=i.string();continue}case 2:{if(r!==17)break;t.doubleValue=i.double();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{stringValue:c(e.stringValue)?globalThis.String(e.stringValue):void 0,doubleValue:c(e.doubleValue)?globalThis.Number(e.doubleValue):void 0}},toJSON(e){const n={};return e.stringValue!==void 0&&(n.stringValue=e.stringValue),e.doubleValue!==void 0&&(n.doubleValue=e.doubleValue),n},create(e){return L.fromPartial(e??{})},fromPartial(e){const n=nn();return n.stringValue=e.stringValue??void 0,n.doubleValue=e.doubleValue??void 0,n}};function rn(){return{name:"",qualifiedName:"",unit:"",stringValue:void 0,doubleValue:0}}const k={encode(e,n=new d){return e.name!==""&&n.uint32(10).string(e.name),e.qualifiedName!==""&&n.uint32(18).string(e.qualifiedName),e.unit!==""&&n.uint32(26).string(e.unit),e.stringValue!==void 0&&n.uint32(34).string(e.stringValue),e.doubleValue!==0&&n.uint32(41).double(e.doubleValue),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=rn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.name=i.string();continue}case 2:{if(r!==18)break;t.qualifiedName=i.string();continue}case 3:{if(r!==26)break;t.unit=i.string();continue}case 4:{if(r!==34)break;t.stringValue=i.string();continue}case 5:{if(r!==41)break;t.doubleValue=i.double();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{name:c(e.name)?globalThis.String(e.name):"",qualifiedName:c(e.qualifiedName)?globalThis.String(e.qualifiedName):"",unit:c(e.unit)?globalThis.String(e.unit):"",stringValue:c(e.stringValue)?globalThis.String(e.stringValue):void 0,doubleValue:c(e.doubleValue)?globalThis.Number(e.doubleValue):0}},toJSON(e){const n={};return e.name!==""&&(n.name=e.name),e.qualifiedName!==""&&(n.qualifiedName=e.qualifiedName),e.unit!==""&&(n.unit=e.unit),e.stringValue!==void 0&&(n.stringValue=e.stringValue),e.doubleValue!==0&&(n.doubleValue=e.doubleValue),n},create(e){return k.fromPartial(e??{})},fromPartial(e){const n=rn();return n.name=e.name??"",n.qualifiedName=e.qualifiedName??"",n.unit=e.unit??"",n.stringValue=e.stringValue??void 0,n.doubleValue=e.doubleValue??0,n}};function tn(){return{sourceId:"",sourceName:"",streamId:"",id:0,messageName:"",data:[],time:0,tx:!1,dlc:0,hashCode:0,properties:{},signalValues:[],canFrameFlags:void 0,linFrameFlags:void 0}}const B={encode(e,n=new d){e.sourceId!==""&&n.uint32(10).string(e.sourceId),e.sourceName!==""&&n.uint32(18).string(e.sourceName),e.streamId!==""&&n.uint32(26).string(e.streamId),e.id!==0&&n.uint32(32).int32(e.id),e.messageName!==""&&n.uint32(42).string(e.messageName),n.uint32(50).fork();for(const i of e.data)n.uint32(i);n.join(),e.time!==0&&n.uint32(57).double(e.time),e.tx!==!1&&n.uint32(64).bool(e.tx),e.dlc!==0&&n.uint32(72).int32(e.dlc),e.hashCode!==0&&n.uint32(80).int32(e.hashCode),Object.entries(e.properties).forEach(([i,a])=>{se.encode({key:i,value:a},n.uint32(90).fork()).join()});for(const i of e.signalValues)k.encode(i,n.uint32(98).fork()).join();return e.canFrameFlags!==void 0&&S.encode(e.canFrameFlags,n.uint32(106).fork()).join(),e.linFrameFlags!==void 0&&C.encode(e.linFrameFlags,n.uint32(114).fork()).join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=tn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.sourceId=i.string();continue}case 2:{if(r!==18)break;t.sourceName=i.string();continue}case 3:{if(r!==26)break;t.streamId=i.string();continue}case 4:{if(r!==32)break;t.id=i.int32();continue}case 5:{if(r!==42)break;t.messageName=i.string();continue}case 6:{if(r===48){t.data.push(i.uint32());continue}if(r===50){const o=i.uint32()+i.pos;for(;i.pos<o;)t.data.push(i.uint32());continue}break}case 7:{if(r!==57)break;t.time=i.double();continue}case 8:{if(r!==64)break;t.tx=i.bool();continue}case 9:{if(r!==72)break;t.dlc=i.int32();continue}case 10:{if(r!==80)break;t.hashCode=i.int32();continue}case 11:{if(r!==90)break;const o=se.decode(i,i.uint32());o.value!==void 0&&(t.properties[o.key]=o.value);continue}case 12:{if(r!==98)break;t.signalValues.push(k.decode(i,i.uint32()));continue}case 13:{if(r!==106)break;t.canFrameFlags=S.decode(i,i.uint32());continue}case 14:{if(r!==114)break;t.linFrameFlags=C.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{sourceId:c(e.sourceId)?globalThis.String(e.sourceId):"",sourceName:c(e.sourceName)?globalThis.String(e.sourceName):"",streamId:c(e.streamId)?globalThis.String(e.streamId):"",id:c(e.id)?globalThis.Number(e.id):0,messageName:c(e.messageName)?globalThis.String(e.messageName):"",data:globalThis.Array.isArray(e==null?void 0:e.data)?e.data.map(n=>globalThis.Number(n)):[],time:c(e.time)?globalThis.Number(e.time):0,tx:c(e.tx)?globalThis.Boolean(e.tx):!1,dlc:c(e.dlc)?globalThis.Number(e.dlc):0,hashCode:c(e.hashCode)?globalThis.Number(e.hashCode):0,properties:Zi(e.properties)?Object.entries(e.properties).reduce((n,[i,a])=>(n[i]=L.fromJSON(a),n),{}):{},signalValues:globalThis.Array.isArray(e==null?void 0:e.signalValues)?e.signalValues.map(n=>k.fromJSON(n)):[],canFrameFlags:c(e.canFrameFlags)?S.fromJSON(e.canFrameFlags):void 0,linFrameFlags:c(e.linFrameFlags)?C.fromJSON(e.linFrameFlags):void 0}},toJSON(e){var i,a;const n={};if(e.sourceId!==""&&(n.sourceId=e.sourceId),e.sourceName!==""&&(n.sourceName=e.sourceName),e.streamId!==""&&(n.streamId=e.streamId),e.id!==0&&(n.id=Math.round(e.id)),e.messageName!==""&&(n.messageName=e.messageName),(i=e.data)!=null&&i.length&&(n.data=e.data.map(t=>Math.round(t))),e.time!==0&&(n.time=e.time),e.tx!==!1&&(n.tx=e.tx),e.dlc!==0&&(n.dlc=Math.round(e.dlc)),e.hashCode!==0&&(n.hashCode=Math.round(e.hashCode)),e.properties){const t=Object.entries(e.properties);t.length>0&&(n.properties={},t.forEach(([r,o])=>{n.properties[r]=L.toJSON(o)}))}return(a=e.signalValues)!=null&&a.length&&(n.signalValues=e.signalValues.map(t=>k.toJSON(t))),e.canFrameFlags!==void 0&&(n.canFrameFlags=S.toJSON(e.canFrameFlags)),e.linFrameFlags!==void 0&&(n.linFrameFlags=C.toJSON(e.linFrameFlags)),n},create(e){return B.fromPartial(e??{})},fromPartial(e){var i,a;const n=tn();return n.sourceId=e.sourceId??"",n.sourceName=e.sourceName??"",n.streamId=e.streamId??"",n.id=e.id??0,n.messageName=e.messageName??"",n.data=((i=e.data)==null?void 0:i.map(t=>t))||[],n.time=e.time??0,n.tx=e.tx??!1,n.dlc=e.dlc??0,n.hashCode=e.hashCode??0,n.properties=Object.entries(e.properties??{}).reduce((t,[r,o])=>(o!==void 0&&(t[r]=L.fromPartial(o)),t),{}),n.signalValues=((a=e.signalValues)==null?void 0:a.map(t=>k.fromPartial(t)))||[],n.canFrameFlags=e.canFrameFlags!==void 0&&e.canFrameFlags!==null?S.fromPartial(e.canFrameFlags):void 0,n.linFrameFlags=e.linFrameFlags!==void 0&&e.linFrameFlags!==null?C.fromPartial(e.linFrameFlags):void 0,n}};function an(){return{key:"",value:void 0}}const se={encode(e,n=new d){return e.key!==""&&n.uint32(10).string(e.key),e.value!==void 0&&L.encode(e.value,n.uint32(18).fork()).join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=an();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.key=i.string();continue}case 2:{if(r!==18)break;t.value=L.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{key:c(e.key)?globalThis.String(e.key):"",value:c(e.value)?L.fromJSON(e.value):void 0}},toJSON(e){const n={};return e.key!==""&&(n.key=e.key),e.value!==void 0&&(n.value=L.toJSON(e.value)),n},create(e){return se.fromPartial(e??{})},fromPartial(e){const n=an();return n.key=e.key??"",n.value=e.value!==void 0&&e.value!==null?L.fromPartial(e.value):void 0,n}};function un(){return{items:[]}}const Ni={encode(e,n=new d){for(const i of e.items)B.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=un();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.items.push(B.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{items:globalThis.Array.isArray(e==null?void 0:e.items)?e.items.map(n=>B.fromJSON(n)):[]}},toJSON(e){var i;const n={};return(i=e.items)!=null&&i.length&&(n.items=e.items.map(a=>B.toJSON(a))),n},create(e){return Ni.fromPartial(e??{})},fromPartial(e){var i;const n=un();return n.items=((i=e.items)==null?void 0:i.map(a=>B.fromPartial(a)))||[],n}};function sn(){return{id:0,data:[],canFrameFlags:void 0,linFrameFlags:void 0}}const y={encode(e,n=new d){e.id!==0&&n.uint32(8).int32(e.id),n.uint32(18).fork();for(const i of e.data)n.uint32(i);return n.join(),e.canFrameFlags!==void 0&&S.encode(e.canFrameFlags,n.uint32(26).fork()).join(),e.linFrameFlags!==void 0&&C.encode(e.linFrameFlags,n.uint32(34).fork()).join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=sn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.id=i.int32();continue}case 2:{if(r===16){t.data.push(i.uint32());continue}if(r===18){const o=i.uint32()+i.pos;for(;i.pos<o;)t.data.push(i.uint32());continue}break}case 3:{if(r!==26)break;t.canFrameFlags=S.decode(i,i.uint32());continue}case 4:{if(r!==34)break;t.linFrameFlags=C.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{id:c(e.id)?globalThis.Number(e.id):0,data:globalThis.Array.isArray(e==null?void 0:e.data)?e.data.map(n=>globalThis.Number(n)):[],canFrameFlags:c(e.canFrameFlags)?S.fromJSON(e.canFrameFlags):void 0,linFrameFlags:c(e.linFrameFlags)?C.fromJSON(e.linFrameFlags):void 0}},toJSON(e){var i;const n={};return e.id!==0&&(n.id=Math.round(e.id)),(i=e.data)!=null&&i.length&&(n.data=e.data.map(a=>Math.round(a))),e.canFrameFlags!==void 0&&(n.canFrameFlags=S.toJSON(e.canFrameFlags)),e.linFrameFlags!==void 0&&(n.linFrameFlags=C.toJSON(e.linFrameFlags)),n},create(e){return y.fromPartial(e??{})},fromPartial(e){var i;const n=sn();return n.id=e.id??0,n.data=((i=e.data)==null?void 0:i.map(a=>a))||[],n.canFrameFlags=e.canFrameFlags!==void 0&&e.canFrameFlags!==null?S.fromPartial(e.canFrameFlags):void 0,n.linFrameFlags=e.linFrameFlags!==void 0&&e.linFrameFlags!==null?C.fromPartial(e.linFrameFlags):void 0,n}};function on(){return{id:0,messageName:"",messageQualifiedName:"",dataLength:0,signals:[],canFrameFlags:void 0}}const v={encode(e,n=new d){e.id!==0&&n.uint32(8).int32(e.id),e.messageName!==""&&n.uint32(18).string(e.messageName),e.messageQualifiedName!==""&&n.uint32(26).string(e.messageQualifiedName),e.dataLength!==0&&n.uint32(32).int32(e.dataLength);for(const i of e.signals)I.encode(i,n.uint32(42).fork()).join();return e.canFrameFlags!==void 0&&S.encode(e.canFrameFlags,n.uint32(50).fork()).join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=on();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.id=i.int32();continue}case 2:{if(r!==18)break;t.messageName=i.string();continue}case 3:{if(r!==26)break;t.messageQualifiedName=i.string();continue}case 4:{if(r!==32)break;t.dataLength=i.int32();continue}case 5:{if(r!==42)break;t.signals.push(I.decode(i,i.uint32()));continue}case 6:{if(r!==50)break;t.canFrameFlags=S.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{id:c(e.id)?globalThis.Number(e.id):0,messageName:c(e.messageName)?globalThis.String(e.messageName):"",messageQualifiedName:c(e.messageQualifiedName)?globalThis.String(e.messageQualifiedName):"",dataLength:c(e.dataLength)?globalThis.Number(e.dataLength):0,signals:globalThis.Array.isArray(e==null?void 0:e.signals)?e.signals.map(n=>I.fromJSON(n)):[],canFrameFlags:c(e.canFrameFlags)?S.fromJSON(e.canFrameFlags):void 0}},toJSON(e){var i;const n={};return e.id!==0&&(n.id=Math.round(e.id)),e.messageName!==""&&(n.messageName=e.messageName),e.messageQualifiedName!==""&&(n.messageQualifiedName=e.messageQualifiedName),e.dataLength!==0&&(n.dataLength=Math.round(e.dataLength)),(i=e.signals)!=null&&i.length&&(n.signals=e.signals.map(a=>I.toJSON(a))),e.canFrameFlags!==void 0&&(n.canFrameFlags=S.toJSON(e.canFrameFlags)),n},create(e){return v.fromPartial(e??{})},fromPartial(e){var i;const n=on();return n.id=e.id??0,n.messageName=e.messageName??"",n.messageQualifiedName=e.messageQualifiedName??"",n.dataLength=e.dataLength??0,n.signals=((i=e.signals)==null?void 0:i.map(a=>I.fromPartial(a)))||[],n.canFrameFlags=e.canFrameFlags!==void 0&&e.canFrameFlags!==null?S.fromPartial(e.canFrameFlags):void 0,n}};function dn(){return{items:[]}}const _i={encode(e,n=new d){for(const i of e.items)v.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=dn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.items.push(v.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{items:globalThis.Array.isArray(e==null?void 0:e.items)?e.items.map(n=>v.fromJSON(n)):[]}},toJSON(e){var i;const n={};return(i=e.items)!=null&&i.length&&(n.items=e.items.map(a=>v.toJSON(a))),n},create(e){return _i.fromPartial(e??{})},fromPartial(e){var i;const n=dn();return n.items=((i=e.items)==null?void 0:i.map(a=>v.fromPartial(a)))||[],n}};function fn(){return{dbcFiles:[],ldfFiles:[]}}const Ei={encode(e,n=new d){for(const i of e.dbcFiles)n.uint32(10).string(i);for(const i of e.ldfFiles)n.uint32(18).string(i);return n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=fn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.dbcFiles.push(i.string());continue}case 2:{if(r!==18)break;t.ldfFiles.push(i.string());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{dbcFiles:globalThis.Array.isArray(e==null?void 0:e.dbcFiles)?e.dbcFiles.map(n=>globalThis.String(n)):[],ldfFiles:globalThis.Array.isArray(e==null?void 0:e.ldfFiles)?e.ldfFiles.map(n=>globalThis.String(n)):[]}},toJSON(e){var i,a;const n={};return(i=e.dbcFiles)!=null&&i.length&&(n.dbcFiles=e.dbcFiles),(a=e.ldfFiles)!=null&&a.length&&(n.ldfFiles=e.ldfFiles),n},create(e){return Ei.fromPartial(e??{})},fromPartial(e){var i,a;const n=fn();return n.dbcFiles=((i=e.dbcFiles)==null?void 0:i.map(t=>t))||[],n.ldfFiles=((a=e.ldfFiles)==null?void 0:a.map(t=>t))||[],n}};function ln(){return{messageQualifiedName:"",delay:0}}const V={encode(e,n=new d){return e.messageQualifiedName!==""&&n.uint32(10).string(e.messageQualifiedName),e.delay!==0&&n.uint32(17).double(e.delay),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=ln();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.messageQualifiedName=i.string();continue}case 2:{if(r!==17)break;t.delay=i.double();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{messageQualifiedName:c(e.messageQualifiedName)?globalThis.String(e.messageQualifiedName):"",delay:c(e.delay)?globalThis.Number(e.delay):0}},toJSON(e){const n={};return e.messageQualifiedName!==""&&(n.messageQualifiedName=e.messageQualifiedName),e.delay!==0&&(n.delay=e.delay),n},create(e){return V.fromPartial(e??{})},fromPartial(e){const n=ln();return n.messageQualifiedName=e.messageQualifiedName??"",n.delay=e.delay??0,n}};function cn(){return{name:"",qualifiedName:"",entries:[]}}const Ai={encode(e,n=new d){e.name!==""&&n.uint32(10).string(e.name),e.qualifiedName!==""&&n.uint32(18).string(e.qualifiedName);for(const i of e.entries)V.encode(i,n.uint32(26).fork()).join();return n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=cn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.name=i.string();continue}case 2:{if(r!==18)break;t.qualifiedName=i.string();continue}case 3:{if(r!==26)break;t.entries.push(V.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{name:c(e.name)?globalThis.String(e.name):"",qualifiedName:c(e.qualifiedName)?globalThis.String(e.qualifiedName):"",entries:globalThis.Array.isArray(e==null?void 0:e.entries)?e.entries.map(n=>V.fromJSON(n)):[]}},toJSON(e){var i;const n={};return e.name!==""&&(n.name=e.name),e.qualifiedName!==""&&(n.qualifiedName=e.qualifiedName),(i=e.entries)!=null&&i.length&&(n.entries=e.entries.map(a=>V.toJSON(a))),n},create(e){return Ai.fromPartial(e??{})},fromPartial(e){var i;const n=cn();return n.name=e.name??"",n.qualifiedName=e.qualifiedName??"",n.entries=((i=e.entries)==null?void 0:i.map(a=>V.fromPartial(a)))||[],n}};function Zi(e){return typeof e=="object"&&e!==null}function c(e){return e!=null}var Si=(e=>(e[e.CAN_MODE_UNSPECIFIED=0]="CAN_MODE_UNSPECIFIED",e[e.CAN_MODE_CAN=1]="CAN_MODE_CAN",e[e.CAN_MODE_CAN_FD=2]="CAN_MODE_CAN_FD",e[e.CAN_MODE_CAN_FD_NONISO=3]="CAN_MODE_CAN_FD_NONISO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Si||{});function Ri(e){switch(e){case 0:case"CAN_MODE_UNSPECIFIED":return 0;case 1:case"CAN_MODE_CAN":return 1;case 2:case"CAN_MODE_CAN_FD":return 2;case 3:case"CAN_MODE_CAN_FD_NONISO":return 3;case-1:case"UNRECOGNIZED":default:return-1}}function Oi(e){switch(e){case 0:return"CAN_MODE_UNSPECIFIED";case 1:return"CAN_MODE_CAN";case 2:return"CAN_MODE_CAN_FD";case 3:return"CAN_MODE_CAN_FD_NONISO";case-1:default:return"UNRECOGNIZED"}}var Ti=(e=>(e[e.ACCESS_MODE_UNSPECIFIED=0]="ACCESS_MODE_UNSPECIFIED",e[e.ACCESS_MODE_INIT_ACCESS=1]="ACCESS_MODE_INIT_ACCESS",e[e.ACCESS_MODE_NO_INIT_ACCESS=2]="ACCESS_MODE_NO_INIT_ACCESS",e[e.ACCESS_MODE_EXCLUSIVE_ACCESS=3]="ACCESS_MODE_EXCLUSIVE_ACCESS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Ti||{});function mi(e){switch(e){case 0:case"ACCESS_MODE_UNSPECIFIED":return 0;case 1:case"ACCESS_MODE_INIT_ACCESS":return 1;case 2:case"ACCESS_MODE_NO_INIT_ACCESS":return 2;case 3:case"ACCESS_MODE_EXCLUSIVE_ACCESS":return 3;case-1:case"UNRECOGNIZED":default:return-1}}function hi(e){switch(e){case 0:return"ACCESS_MODE_UNSPECIFIED";case 1:return"ACCESS_MODE_INIT_ACCESS";case 2:return"ACCESS_MODE_NO_INIT_ACCESS";case 3:return"ACCESS_MODE_EXCLUSIVE_ACCESS";case-1:default:return"UNRECOGNIZED"}}var pi=(e=>(e[e.CAN_MESSAGE_FILTER_TYPE_UNSPECIFIED=0]="CAN_MESSAGE_FILTER_TYPE_UNSPECIFIED",e[e.CAN_MESSAGE_FILTER_TYPE_PASS=1]="CAN_MESSAGE_FILTER_TYPE_PASS",e[e.CAN_MESSAGE_FILTER_TYPE_BLOCK=2]="CAN_MESSAGE_FILTER_TYPE_BLOCK",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(pi||{});function Ii(e){switch(e){case 0:case"CAN_MESSAGE_FILTER_TYPE_UNSPECIFIED":return 0;case 1:case"CAN_MESSAGE_FILTER_TYPE_PASS":return 1;case 2:case"CAN_MESSAGE_FILTER_TYPE_BLOCK":return 2;case-1:case"UNRECOGNIZED":default:return-1}}function Ci(e){switch(e){case 0:return"CAN_MESSAGE_FILTER_TYPE_UNSPECIFIED";case 1:return"CAN_MESSAGE_FILTER_TYPE_PASS";case 2:return"CAN_MESSAGE_FILTER_TYPE_BLOCK";case-1:default:return"UNRECOGNIZED"}}var Fi=(e=>(e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_UNSPECIFIED=0]="SIGNAL_VALUE_TRIGGER_OPERATOR_UNSPECIFIED",e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_EQUAL_TO=1]="SIGNAL_VALUE_TRIGGER_OPERATOR_EQUAL_TO",e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_NOT_EQUAL_TO=2]="SIGNAL_VALUE_TRIGGER_OPERATOR_NOT_EQUAL_TO",e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_LESS_THAN=3]="SIGNAL_VALUE_TRIGGER_OPERATOR_LESS_THAN",e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_LESS_THAN_OR_EQUAL=4]="SIGNAL_VALUE_TRIGGER_OPERATOR_LESS_THAN_OR_EQUAL",e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_GREATER_THAN_OR_EQUAL=5]="SIGNAL_VALUE_TRIGGER_OPERATOR_GREATER_THAN_OR_EQUAL",e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_GREATER_THAN=6]="SIGNAL_VALUE_TRIGGER_OPERATOR_GREATER_THAN",e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_CHANGE_TO=7]="SIGNAL_VALUE_TRIGGER_OPERATOR_CHANGE_TO",e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_CHANGE_FROM=8]="SIGNAL_VALUE_TRIGGER_OPERATOR_CHANGE_FROM",e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_ON_CHANGE=9]="SIGNAL_VALUE_TRIGGER_OPERATOR_ON_CHANGE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Fi||{});function Mi(e){switch(e){case 0:case"SIGNAL_VALUE_TRIGGER_OPERATOR_UNSPECIFIED":return 0;case 1:case"SIGNAL_VALUE_TRIGGER_OPERATOR_EQUAL_TO":return 1;case 2:case"SIGNAL_VALUE_TRIGGER_OPERATOR_NOT_EQUAL_TO":return 2;case 3:case"SIGNAL_VALUE_TRIGGER_OPERATOR_LESS_THAN":return 3;case 4:case"SIGNAL_VALUE_TRIGGER_OPERATOR_LESS_THAN_OR_EQUAL":return 4;case 5:case"SIGNAL_VALUE_TRIGGER_OPERATOR_GREATER_THAN_OR_EQUAL":return 5;case 6:case"SIGNAL_VALUE_TRIGGER_OPERATOR_GREATER_THAN":return 6;case 7:case"SIGNAL_VALUE_TRIGGER_OPERATOR_CHANGE_TO":return 7;case 8:case"SIGNAL_VALUE_TRIGGER_OPERATOR_CHANGE_FROM":return 8;case 9:case"SIGNAL_VALUE_TRIGGER_OPERATOR_ON_CHANGE":return 9;case-1:case"UNRECOGNIZED":default:return-1}}function Li(e){switch(e){case 0:return"SIGNAL_VALUE_TRIGGER_OPERATOR_UNSPECIFIED";case 1:return"SIGNAL_VALUE_TRIGGER_OPERATOR_EQUAL_TO";case 2:return"SIGNAL_VALUE_TRIGGER_OPERATOR_NOT_EQUAL_TO";case 3:return"SIGNAL_VALUE_TRIGGER_OPERATOR_LESS_THAN";case 4:return"SIGNAL_VALUE_TRIGGER_OPERATOR_LESS_THAN_OR_EQUAL";case 5:return"SIGNAL_VALUE_TRIGGER_OPERATOR_GREATER_THAN_OR_EQUAL";case 6:return"SIGNAL_VALUE_TRIGGER_OPERATOR_GREATER_THAN";case 7:return"SIGNAL_VALUE_TRIGGER_OPERATOR_CHANGE_TO";case 8:return"SIGNAL_VALUE_TRIGGER_OPERATOR_CHANGE_FROM";case 9:return"SIGNAL_VALUE_TRIGGER_OPERATOR_ON_CHANGE";case-1:default:return"UNRECOGNIZED"}}var Pi=(e=>(e[e.TRIGGER_OPERATOR_UNSPECIFIED=0]="TRIGGER_OPERATOR_UNSPECIFIED",e[e.TRIGGER_OPERATOR_AND=1]="TRIGGER_OPERATOR_AND",e[e.TRIGGER_OPERATOR_OR=2]="TRIGGER_OPERATOR_OR",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Pi||{});function ie(e){switch(e){case 0:case"TRIGGER_OPERATOR_UNSPECIFIED":return 0;case 1:case"TRIGGER_OPERATOR_AND":return 1;case 2:case"TRIGGER_OPERATOR_OR":return 2;case-1:case"UNRECOGNIZED":default:return-1}}function re(e){switch(e){case 0:return"TRIGGER_OPERATOR_UNSPECIFIED";case 1:return"TRIGGER_OPERATOR_AND";case 2:return"TRIGGER_OPERATOR_OR";case-1:default:return"UNRECOGNIZED"}}var gi=(e=>(e[e.LOG_FILE_FORMAT_UNSPECIFIED=0]="LOG_FILE_FORMAT_UNSPECIFIED",e[e.LOG_FILE_FORMAT_KME24=1]="LOG_FILE_FORMAT_KME24",e[e.LOG_FILE_FORMAT_KME25=2]="LOG_FILE_FORMAT_KME25",e[e.LOG_FILE_FORMAT_VECTOR_ASC=3]="LOG_FILE_FORMAT_VECTOR_ASC",e[e.LOG_FILE_FORMAT_CSV=4]="LOG_FILE_FORMAT_CSV",e[e.LOG_FILE_FORMAT_PLAIN_ASC=5]="LOG_FILE_FORMAT_PLAIN_ASC",e[e.LOG_FILE_FORMAT_MEMO_LOG=6]="LOG_FILE_FORMAT_MEMO_LOG",e[e.LOG_FILE_FORMAT_KME40=7]="LOG_FILE_FORMAT_KME40",e[e.LOG_FILE_FORMAT_VECTOR_BLF=8]="LOG_FILE_FORMAT_VECTOR_BLF",e[e.LOG_FILE_FORMAT_KME50=9]="LOG_FILE_FORMAT_KME50",e[e.LOG_FILE_FORMAT_CSV_SIGNAL=100]="LOG_FILE_FORMAT_CSV_SIGNAL",e[e.LOG_FILE_FORMAT_MDF=101]="LOG_FILE_FORMAT_MDF",e[e.LOG_FILE_FORMAT_MATLAB=102]="LOG_FILE_FORMAT_MATLAB",e[e.LOG_FILE_FORMAT_J1587_ALT=104]="LOG_FILE_FORMAT_J1587_ALT",e[e.LOG_FILE_FORMAT_FAMOS=105]="LOG_FILE_FORMAT_FAMOS",e[e.LOG_FILE_FORMAT_MDF_SIGNAL=106]="LOG_FILE_FORMAT_MDF_SIGNAL",e[e.LOG_FILE_FORMAT_MDF_4X=107]="LOG_FILE_FORMAT_MDF_4X",e[e.LOG_FILE_FORMAT_MDF_4X_SIGNAL=108]="LOG_FILE_FORMAT_MDF_4X_SIGNAL",e[e.LOG_FILE_FORMAT_VECTOR_BLF_FD=109]="LOG_FILE_FORMAT_VECTOR_BLF_FD",e[e.LOG_FILE_FORMAT_XCP=200]="LOG_FILE_FORMAT_XCP",e[e.LOG_FILE_FORMAT_FAMOS_XCP=201]="LOG_FILE_FORMAT_FAMOS_XCP",e[e.LOG_FILE_FORMAT_DEBUG=1e3]="LOG_FILE_FORMAT_DEBUG",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(gi||{});function Ee(e){switch(e){case 0:case"LOG_FILE_FORMAT_UNSPECIFIED":return 0;case 1:case"LOG_FILE_FORMAT_KME24":return 1;case 2:case"LOG_FILE_FORMAT_KME25":return 2;case 3:case"LOG_FILE_FORMAT_VECTOR_ASC":return 3;case 4:case"LOG_FILE_FORMAT_CSV":return 4;case 5:case"LOG_FILE_FORMAT_PLAIN_ASC":return 5;case 6:case"LOG_FILE_FORMAT_MEMO_LOG":return 6;case 7:case"LOG_FILE_FORMAT_KME40":return 7;case 8:case"LOG_FILE_FORMAT_VECTOR_BLF":return 8;case 9:case"LOG_FILE_FORMAT_KME50":return 9;case 100:case"LOG_FILE_FORMAT_CSV_SIGNAL":return 100;case 101:case"LOG_FILE_FORMAT_MDF":return 101;case 102:case"LOG_FILE_FORMAT_MATLAB":return 102;case 104:case"LOG_FILE_FORMAT_J1587_ALT":return 104;case 105:case"LOG_FILE_FORMAT_FAMOS":return 105;case 106:case"LOG_FILE_FORMAT_MDF_SIGNAL":return 106;case 107:case"LOG_FILE_FORMAT_MDF_4X":return 107;case 108:case"LOG_FILE_FORMAT_MDF_4X_SIGNAL":return 108;case 109:case"LOG_FILE_FORMAT_VECTOR_BLF_FD":return 109;case 200:case"LOG_FILE_FORMAT_XCP":return 200;case 201:case"LOG_FILE_FORMAT_FAMOS_XCP":return 201;case 1e3:case"LOG_FILE_FORMAT_DEBUG":return 1e3;case-1:case"UNRECOGNIZED":default:return-1}}function Ae(e){switch(e){case 0:return"LOG_FILE_FORMAT_UNSPECIFIED";case 1:return"LOG_FILE_FORMAT_KME24";case 2:return"LOG_FILE_FORMAT_KME25";case 3:return"LOG_FILE_FORMAT_VECTOR_ASC";case 4:return"LOG_FILE_FORMAT_CSV";case 5:return"LOG_FILE_FORMAT_PLAIN_ASC";case 6:return"LOG_FILE_FORMAT_MEMO_LOG";case 7:return"LOG_FILE_FORMAT_KME40";case 8:return"LOG_FILE_FORMAT_VECTOR_BLF";case 9:return"LOG_FILE_FORMAT_KME50";case 100:return"LOG_FILE_FORMAT_CSV_SIGNAL";case 101:return"LOG_FILE_FORMAT_MDF";case 102:return"LOG_FILE_FORMAT_MATLAB";case 104:return"LOG_FILE_FORMAT_J1587_ALT";case 105:return"LOG_FILE_FORMAT_FAMOS";case 106:return"LOG_FILE_FORMAT_MDF_SIGNAL";case 107:return"LOG_FILE_FORMAT_MDF_4X";case 108:return"LOG_FILE_FORMAT_MDF_4X_SIGNAL";case 109:return"LOG_FILE_FORMAT_VECTOR_BLF_FD";case 200:return"LOG_FILE_FORMAT_XCP";case 201:return"LOG_FILE_FORMAT_FAMOS_XCP";case 1e3:return"LOG_FILE_FORMAT_DEBUG";case-1:default:return"UNRECOGNIZED"}}var bi=(e=>(e[e.FILE_CONFLICT_ACTION_UNSPECIFIED=0]="FILE_CONFLICT_ACTION_UNSPECIFIED",e[e.FILE_CONFLICT_ACTION_OVERWRITE=1]="FILE_CONFLICT_ACTION_OVERWRITE",e[e.FILE_CONFLICT_ACTION_APPEND_INDEX=2]="FILE_CONFLICT_ACTION_APPEND_INDEX",e[e.FILE_CONFLICT_ACTION_APPEND_TIMESTAMP=3]="FILE_CONFLICT_ACTION_APPEND_TIMESTAMP",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(bi||{});function Se(e){switch(e){case 0:case"FILE_CONFLICT_ACTION_UNSPECIFIED":return 0;case 1:case"FILE_CONFLICT_ACTION_OVERWRITE":return 1;case 2:case"FILE_CONFLICT_ACTION_APPEND_INDEX":return 2;case 3:case"FILE_CONFLICT_ACTION_APPEND_TIMESTAMP":return 3;case-1:case"UNRECOGNIZED":default:return-1}}function Re(e){switch(e){case 0:return"FILE_CONFLICT_ACTION_UNSPECIFIED";case 1:return"FILE_CONFLICT_ACTION_OVERWRITE";case 2:return"FILE_CONFLICT_ACTION_APPEND_INDEX";case 3:return"FILE_CONFLICT_ACTION_APPEND_TIMESTAMP";case-1:default:return"UNRECOGNIZED"}}var Gi=(e=>(e[e.DECIMAL_CHAR_UNSPECIFIED=0]="DECIMAL_CHAR_UNSPECIFIED",e[e.DECIMAL_CHAR_DEC_DOT=1]="DECIMAL_CHAR_DEC_DOT",e[e.DECIMAL_CHAR_DEC_COMMA=2]="DECIMAL_CHAR_DEC_COMMA",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Gi||{});function Oe(e){switch(e){case 0:case"DECIMAL_CHAR_UNSPECIFIED":return 0;case 1:case"DECIMAL_CHAR_DEC_DOT":return 1;case 2:case"DECIMAL_CHAR_DEC_COMMA":return 2;case-1:case"UNRECOGNIZED":default:return-1}}function Te(e){switch(e){case 0:return"DECIMAL_CHAR_UNSPECIFIED";case 1:return"DECIMAL_CHAR_DEC_DOT";case 2:return"DECIMAL_CHAR_DEC_COMMA";case-1:default:return"UNRECOGNIZED"}}var Di=(e=>(e[e.SEPARATOR_UNSPECIFIED=0]="SEPARATOR_UNSPECIFIED",e[e.SEPARATOR_COMMA=1]="SEPARATOR_COMMA",e[e.SEPARATOR_SEMICOLON=2]="SEPARATOR_SEMICOLON",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Di||{});function me(e){switch(e){case 0:case"SEPARATOR_UNSPECIFIED":return 0;case 1:case"SEPARATOR_COMMA":return 1;case 2:case"SEPARATOR_SEMICOLON":return 2;case-1:case"UNRECOGNIZED":default:return-1}}function he(e){switch(e){case 0:return"SEPARATOR_UNSPECIFIED";case 1:return"SEPARATOR_COMMA";case 2:return"SEPARATOR_SEMICOLON";case-1:default:return"UNRECOGNIZED"}}var ki=(e=>(e[e.TIME_REFERENCE_UNSPECIFIED=0]="TIME_REFERENCE_UNSPECIFIED",e[e.TIME_REFERENCE_FIRST_TRIGGER=1]="TIME_REFERENCE_FIRST_TRIGGER",e[e.TIME_REFERENCE_START_OF_MEASUREMENT=2]="TIME_REFERENCE_START_OF_MEASUREMENT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(ki||{});function pe(e){switch(e){case 0:case"TIME_REFERENCE_UNSPECIFIED":return 0;case 1:case"TIME_REFERENCE_FIRST_TRIGGER":return 1;case 2:case"TIME_REFERENCE_START_OF_MEASUREMENT":return 2;case-1:case"UNRECOGNIZED":default:return-1}}function Ie(e){switch(e){case 0:return"TIME_REFERENCE_UNSPECIFIED";case 1:return"TIME_REFERENCE_FIRST_TRIGGER";case 2:return"TIME_REFERENCE_START_OF_MEASUREMENT";case-1:default:return"UNRECOGNIZED"}}function Nn(){return{canMode:0,accessMode:0,silentMode:!1,busParamsBitRate:0,busParams:void 0,busParamsDataPhaseBitRate:void 0,busParamsDataPhase:void 0}}const U={encode(e,n=new d){return e.canMode!==0&&n.uint32(8).int32(e.canMode),e.accessMode!==0&&n.uint32(16).int32(e.accessMode),e.silentMode!==!1&&n.uint32(24).bool(e.silentMode),e.busParamsBitRate!==0&&n.uint32(32).int32(e.busParamsBitRate),e.busParams!==void 0&&l.encode(e.busParams,n.uint32(42).fork()).join(),e.busParamsDataPhaseBitRate!==void 0&&n.uint32(48).int32(e.busParamsDataPhaseBitRate),e.busParamsDataPhase!==void 0&&l.encode(e.busParamsDataPhase,n.uint32(58).fork()).join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Nn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.canMode=i.int32();continue}case 2:{if(r!==16)break;t.accessMode=i.int32();continue}case 3:{if(r!==24)break;t.silentMode=i.bool();continue}case 4:{if(r!==32)break;t.busParamsBitRate=i.int32();continue}case 5:{if(r!==42)break;t.busParams=l.decode(i,i.uint32());continue}case 6:{if(r!==48)break;t.busParamsDataPhaseBitRate=i.int32();continue}case 7:{if(r!==58)break;t.busParamsDataPhase=l.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{canMode:u(e.canMode)?Ri(e.canMode):0,accessMode:u(e.accessMode)?mi(e.accessMode):0,silentMode:u(e.silentMode)?globalThis.Boolean(e.silentMode):!1,busParamsBitRate:u(e.busParamsBitRate)?globalThis.Number(e.busParamsBitRate):0,busParams:u(e.busParams)?l.fromJSON(e.busParams):void 0,busParamsDataPhaseBitRate:u(e.busParamsDataPhaseBitRate)?globalThis.Number(e.busParamsDataPhaseBitRate):void 0,busParamsDataPhase:u(e.busParamsDataPhase)?l.fromJSON(e.busParamsDataPhase):void 0}},toJSON(e){const n={};return e.canMode!==0&&(n.canMode=Oi(e.canMode)),e.accessMode!==0&&(n.accessMode=hi(e.accessMode)),e.silentMode!==!1&&(n.silentMode=e.silentMode),e.busParamsBitRate!==0&&(n.busParamsBitRate=Math.round(e.busParamsBitRate)),e.busParams!==void 0&&(n.busParams=l.toJSON(e.busParams)),e.busParamsDataPhaseBitRate!==void 0&&(n.busParamsDataPhaseBitRate=Math.round(e.busParamsDataPhaseBitRate)),e.busParamsDataPhase!==void 0&&(n.busParamsDataPhase=l.toJSON(e.busParamsDataPhase)),n},create(e){return U.fromPartial(e??{})},fromPartial(e){const n=Nn();return n.canMode=e.canMode??0,n.accessMode=e.accessMode??0,n.silentMode=e.silentMode??!1,n.busParamsBitRate=e.busParamsBitRate??0,n.busParams=e.busParams!==void 0&&e.busParams!==null?l.fromPartial(e.busParams):void 0,n.busParamsDataPhaseBitRate=e.busParamsDataPhaseBitRate??void 0,n.busParamsDataPhase=e.busParamsDataPhase!==void 0&&e.busParamsDataPhase!==null?l.fromPartial(e.busParamsDataPhase):void 0,n}};function _n(){return{bitRate:0,protocolVersion:"",masterMode:!1,databaseFile:void 0,scheduleTable:void 0,saveMessageInfo:!1}}const J={encode(e,n=new d){return e.bitRate!==0&&n.uint32(8).int32(e.bitRate),e.protocolVersion!==""&&n.uint32(18).string(e.protocolVersion),e.masterMode!==!1&&n.uint32(24).bool(e.masterMode),e.databaseFile!==void 0&&n.uint32(34).string(e.databaseFile),e.scheduleTable!==void 0&&n.uint32(42).string(e.scheduleTable),e.saveMessageInfo!==!1&&n.uint32(48).bool(e.saveMessageInfo),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=_n();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.bitRate=i.int32();continue}case 2:{if(r!==18)break;t.protocolVersion=i.string();continue}case 3:{if(r!==24)break;t.masterMode=i.bool();continue}case 4:{if(r!==34)break;t.databaseFile=i.string();continue}case 5:{if(r!==42)break;t.scheduleTable=i.string();continue}case 6:{if(r!==48)break;t.saveMessageInfo=i.bool();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{bitRate:u(e.bitRate)?globalThis.Number(e.bitRate):0,protocolVersion:u(e.protocolVersion)?globalThis.String(e.protocolVersion):"",masterMode:u(e.masterMode)?globalThis.Boolean(e.masterMode):!1,databaseFile:u(e.databaseFile)?globalThis.String(e.databaseFile):void 0,scheduleTable:u(e.scheduleTable)?globalThis.String(e.scheduleTable):void 0,saveMessageInfo:u(e.saveMessageInfo)?globalThis.Boolean(e.saveMessageInfo):!1}},toJSON(e){const n={};return e.bitRate!==0&&(n.bitRate=Math.round(e.bitRate)),e.protocolVersion!==""&&(n.protocolVersion=e.protocolVersion),e.masterMode!==!1&&(n.masterMode=e.masterMode),e.databaseFile!==void 0&&(n.databaseFile=e.databaseFile),e.scheduleTable!==void 0&&(n.scheduleTable=e.scheduleTable),e.saveMessageInfo!==!1&&(n.saveMessageInfo=e.saveMessageInfo),n},create(e){return J.fromPartial(e??{})},fromPartial(e){const n=_n();return n.bitRate=e.bitRate??0,n.protocolVersion=e.protocolVersion??"",n.masterMode=e.masterMode??!1,n.databaseFile=e.databaseFile??void 0,n.scheduleTable=e.scheduleTable??void 0,n.saveMessageInfo=e.saveMessageInfo??!1,n}};function En(){return{channelNumber:0,lockedToSerialNumber:!1,deviceProductCode:"",deviceSerialNumber:"",channelNumberOnDevice:0,deviceCardType:0,deviceCardNumber:0,canConfiguration:void 0,linConfiguration:void 0}}const x={encode(e,n=new d){return e.channelNumber!==0&&n.uint32(8).int32(e.channelNumber),e.lockedToSerialNumber!==!1&&n.uint32(16).bool(e.lockedToSerialNumber),e.deviceProductCode!==""&&n.uint32(26).string(e.deviceProductCode),e.deviceSerialNumber!==""&&n.uint32(34).string(e.deviceSerialNumber),e.channelNumberOnDevice!==0&&n.uint32(40).int32(e.channelNumberOnDevice),e.deviceCardType!==0&&n.uint32(48).int32(e.deviceCardType),e.deviceCardNumber!==0&&n.uint32(56).int32(e.deviceCardNumber),e.canConfiguration!==void 0&&U.encode(e.canConfiguration,n.uint32(66).fork()).join(),e.linConfiguration!==void 0&&J.encode(e.linConfiguration,n.uint32(74).fork()).join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=En();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.channelNumber=i.int32();continue}case 2:{if(r!==16)break;t.lockedToSerialNumber=i.bool();continue}case 3:{if(r!==26)break;t.deviceProductCode=i.string();continue}case 4:{if(r!==34)break;t.deviceSerialNumber=i.string();continue}case 5:{if(r!==40)break;t.channelNumberOnDevice=i.int32();continue}case 6:{if(r!==48)break;t.deviceCardType=i.int32();continue}case 7:{if(r!==56)break;t.deviceCardNumber=i.int32();continue}case 8:{if(r!==66)break;t.canConfiguration=U.decode(i,i.uint32());continue}case 9:{if(r!==74)break;t.linConfiguration=J.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{channelNumber:u(e.channelNumber)?globalThis.Number(e.channelNumber):0,lockedToSerialNumber:u(e.lockedToSerialNumber)?globalThis.Boolean(e.lockedToSerialNumber):!1,deviceProductCode:u(e.deviceProductCode)?globalThis.String(e.deviceProductCode):"",deviceSerialNumber:u(e.deviceSerialNumber)?globalThis.String(e.deviceSerialNumber):"",channelNumberOnDevice:u(e.channelNumberOnDevice)?globalThis.Number(e.channelNumberOnDevice):0,deviceCardType:u(e.deviceCardType)?globalThis.Number(e.deviceCardType):0,deviceCardNumber:u(e.deviceCardNumber)?globalThis.Number(e.deviceCardNumber):0,canConfiguration:u(e.canConfiguration)?U.fromJSON(e.canConfiguration):void 0,linConfiguration:u(e.linConfiguration)?J.fromJSON(e.linConfiguration):void 0}},toJSON(e){const n={};return e.channelNumber!==0&&(n.channelNumber=Math.round(e.channelNumber)),e.lockedToSerialNumber!==!1&&(n.lockedToSerialNumber=e.lockedToSerialNumber),e.deviceProductCode!==""&&(n.deviceProductCode=e.deviceProductCode),e.deviceSerialNumber!==""&&(n.deviceSerialNumber=e.deviceSerialNumber),e.channelNumberOnDevice!==0&&(n.channelNumberOnDevice=Math.round(e.channelNumberOnDevice)),e.deviceCardType!==0&&(n.deviceCardType=Math.round(e.deviceCardType)),e.deviceCardNumber!==0&&(n.deviceCardNumber=Math.round(e.deviceCardNumber)),e.canConfiguration!==void 0&&(n.canConfiguration=U.toJSON(e.canConfiguration)),e.linConfiguration!==void 0&&(n.linConfiguration=J.toJSON(e.linConfiguration)),n},create(e){return x.fromPartial(e??{})},fromPartial(e){const n=En();return n.channelNumber=e.channelNumber??0,n.lockedToSerialNumber=e.lockedToSerialNumber??!1,n.deviceProductCode=e.deviceProductCode??"",n.deviceSerialNumber=e.deviceSerialNumber??"",n.channelNumberOnDevice=e.channelNumberOnDevice??0,n.deviceCardType=e.deviceCardType??0,n.deviceCardNumber=e.deviceCardNumber??0,n.canConfiguration=e.canConfiguration!==void 0&&e.canConfiguration!==null?U.fromPartial(e.canConfiguration):void 0,n.linConfiguration=e.linConfiguration!==void 0&&e.linConfiguration!==null?J.fromPartial(e.linConfiguration):void 0,n}};function An(){return{channelIdentifiers:{},logFile:"",iterations:0,sampleRateMs:0,transceiverMode:0,includeErrorFrames:!1,sendFirstMessageMode:0,timeOffsetMs:void 0,timeFactor:void 0,lowerVariance:void 0,higherVariance:void 0,increaseSpeed:void 0}}const w={encode(e,n=new d){return Object.entries(e.channelIdentifiers).forEach(([i,a])=>{oe.encode({key:i,value:a},n.uint32(10).fork()).join()}),e.logFile!==""&&n.uint32(18).string(e.logFile),e.iterations!==0&&n.uint32(24).int32(e.iterations),e.sampleRateMs!==0&&n.uint32(32).int32(e.sampleRateMs),e.transceiverMode!==0&&n.uint32(40).int32(e.transceiverMode),e.includeErrorFrames!==!1&&n.uint32(48).bool(e.includeErrorFrames),e.sendFirstMessageMode!==0&&n.uint32(56).int32(e.sendFirstMessageMode),e.timeOffsetMs!==void 0&&n.uint32(64).int32(e.timeOffsetMs),e.timeFactor!==void 0&&n.uint32(73).double(e.timeFactor),e.lowerVariance!==void 0&&n.uint32(81).double(e.lowerVariance),e.higherVariance!==void 0&&n.uint32(89).double(e.higherVariance),e.increaseSpeed!==void 0&&n.uint32(96).bool(e.increaseSpeed),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=An();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;const o=oe.decode(i,i.uint32());o.value!==void 0&&(t.channelIdentifiers[o.key]=o.value);continue}case 2:{if(r!==18)break;t.logFile=i.string();continue}case 3:{if(r!==24)break;t.iterations=i.int32();continue}case 4:{if(r!==32)break;t.sampleRateMs=i.int32();continue}case 5:{if(r!==40)break;t.transceiverMode=i.int32();continue}case 6:{if(r!==48)break;t.includeErrorFrames=i.bool();continue}case 7:{if(r!==56)break;t.sendFirstMessageMode=i.int32();continue}case 8:{if(r!==64)break;t.timeOffsetMs=i.int32();continue}case 9:{if(r!==73)break;t.timeFactor=i.double();continue}case 10:{if(r!==81)break;t.lowerVariance=i.double();continue}case 11:{if(r!==89)break;t.higherVariance=i.double();continue}case 12:{if(r!==96)break;t.increaseSpeed=i.bool();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{channelIdentifiers:Yi(e.channelIdentifiers)?Object.entries(e.channelIdentifiers).reduce((n,[i,a])=>(n[i]=String(a),n),{}):{},logFile:u(e.logFile)?globalThis.String(e.logFile):"",iterations:u(e.iterations)?globalThis.Number(e.iterations):0,sampleRateMs:u(e.sampleRateMs)?globalThis.Number(e.sampleRateMs):0,transceiverMode:u(e.transceiverMode)?globalThis.Number(e.transceiverMode):0,includeErrorFrames:u(e.includeErrorFrames)?globalThis.Boolean(e.includeErrorFrames):!1,sendFirstMessageMode:u(e.sendFirstMessageMode)?globalThis.Number(e.sendFirstMessageMode):0,timeOffsetMs:u(e.timeOffsetMs)?globalThis.Number(e.timeOffsetMs):void 0,timeFactor:u(e.timeFactor)?globalThis.Number(e.timeFactor):void 0,lowerVariance:u(e.lowerVariance)?globalThis.Number(e.lowerVariance):void 0,higherVariance:u(e.higherVariance)?globalThis.Number(e.higherVariance):void 0,increaseSpeed:u(e.increaseSpeed)?globalThis.Boolean(e.increaseSpeed):void 0}},toJSON(e){const n={};if(e.channelIdentifiers){const i=Object.entries(e.channelIdentifiers);i.length>0&&(n.channelIdentifiers={},i.forEach(([a,t])=>{n.channelIdentifiers[a]=t}))}return e.logFile!==""&&(n.logFile=e.logFile),e.iterations!==0&&(n.iterations=Math.round(e.iterations)),e.sampleRateMs!==0&&(n.sampleRateMs=Math.round(e.sampleRateMs)),e.transceiverMode!==0&&(n.transceiverMode=Math.round(e.transceiverMode)),e.includeErrorFrames!==!1&&(n.includeErrorFrames=e.includeErrorFrames),e.sendFirstMessageMode!==0&&(n.sendFirstMessageMode=Math.round(e.sendFirstMessageMode)),e.timeOffsetMs!==void 0&&(n.timeOffsetMs=Math.round(e.timeOffsetMs)),e.timeFactor!==void 0&&(n.timeFactor=e.timeFactor),e.lowerVariance!==void 0&&(n.lowerVariance=e.lowerVariance),e.higherVariance!==void 0&&(n.higherVariance=e.higherVariance),e.increaseSpeed!==void 0&&(n.increaseSpeed=e.increaseSpeed),n},create(e){return w.fromPartial(e??{})},fromPartial(e){const n=An();return n.channelIdentifiers=Object.entries(e.channelIdentifiers??{}).reduce((i,[a,t])=>(t!==void 0&&(i[a]=globalThis.String(t)),i),{}),n.logFile=e.logFile??"",n.iterations=e.iterations??0,n.sampleRateMs=e.sampleRateMs??0,n.transceiverMode=e.transceiverMode??0,n.includeErrorFrames=e.includeErrorFrames??!1,n.sendFirstMessageMode=e.sendFirstMessageMode??0,n.timeOffsetMs=e.timeOffsetMs??void 0,n.timeFactor=e.timeFactor??void 0,n.lowerVariance=e.lowerVariance??void 0,n.higherVariance=e.higherVariance??void 0,n.increaseSpeed=e.increaseSpeed??void 0,n}};function Sn(){return{key:"",value:""}}const oe={encode(e,n=new d){return e.key!==""&&n.uint32(10).string(e.key),e.value!==""&&n.uint32(18).string(e.value),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Sn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.key=i.string();continue}case 2:{if(r!==18)break;t.value=i.string();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{key:u(e.key)?globalThis.String(e.key):"",value:u(e.value)?globalThis.String(e.value):""}},toJSON(e){const n={};return e.key!==""&&(n.key=e.key),e.value!==""&&(n.value=e.value),n},create(e){return oe.fromPartial(e??{})},fromPartial(e){const n=Sn();return n.key=e.key??"",n.value=e.value??"",n}};function Rn(){return{channelIdentifier:"",frame:void 0,randomInterval:!1,constantIntervalMs:0,randomIntervalMinMs:0,randomIntervalMaxMs:0,numberOfMessages:0,randomDataLength:!1,randomMessageData:!1,randomIdentifier:!1,scanIdentifier:!1,identifierMin:0,identifierMax:0,randomBurstSize:!1,constantBurstSize:0,randomBurstSizeMin:0,randomBurstSizeMax:0}}const H={encode(e,n=new d){return e.channelIdentifier!==""&&n.uint32(10).string(e.channelIdentifier),e.frame!==void 0&&y.encode(e.frame,n.uint32(18).fork()).join(),e.randomInterval!==!1&&n.uint32(24).bool(e.randomInterval),e.constantIntervalMs!==0&&n.uint32(33).double(e.constantIntervalMs),e.randomIntervalMinMs!==0&&n.uint32(40).int32(e.randomIntervalMinMs),e.randomIntervalMaxMs!==0&&n.uint32(48).int32(e.randomIntervalMaxMs),e.numberOfMessages!==0&&n.uint32(56).int32(e.numberOfMessages),e.randomDataLength!==!1&&n.uint32(64).bool(e.randomDataLength),e.randomMessageData!==!1&&n.uint32(72).bool(e.randomMessageData),e.randomIdentifier!==!1&&n.uint32(80).bool(e.randomIdentifier),e.scanIdentifier!==!1&&n.uint32(88).bool(e.scanIdentifier),e.identifierMin!==0&&n.uint32(96).int32(e.identifierMin),e.identifierMax!==0&&n.uint32(104).int32(e.identifierMax),e.randomBurstSize!==!1&&n.uint32(112).bool(e.randomBurstSize),e.constantBurstSize!==0&&n.uint32(120).int32(e.constantBurstSize),e.randomBurstSizeMin!==0&&n.uint32(128).int32(e.randomBurstSizeMin),e.randomBurstSizeMax!==0&&n.uint32(136).int32(e.randomBurstSizeMax),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Rn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.channelIdentifier=i.string();continue}case 2:{if(r!==18)break;t.frame=y.decode(i,i.uint32());continue}case 3:{if(r!==24)break;t.randomInterval=i.bool();continue}case 4:{if(r!==33)break;t.constantIntervalMs=i.double();continue}case 5:{if(r!==40)break;t.randomIntervalMinMs=i.int32();continue}case 6:{if(r!==48)break;t.randomIntervalMaxMs=i.int32();continue}case 7:{if(r!==56)break;t.numberOfMessages=i.int32();continue}case 8:{if(r!==64)break;t.randomDataLength=i.bool();continue}case 9:{if(r!==72)break;t.randomMessageData=i.bool();continue}case 10:{if(r!==80)break;t.randomIdentifier=i.bool();continue}case 11:{if(r!==88)break;t.scanIdentifier=i.bool();continue}case 12:{if(r!==96)break;t.identifierMin=i.int32();continue}case 13:{if(r!==104)break;t.identifierMax=i.int32();continue}case 14:{if(r!==112)break;t.randomBurstSize=i.bool();continue}case 15:{if(r!==120)break;t.constantBurstSize=i.int32();continue}case 16:{if(r!==128)break;t.randomBurstSizeMin=i.int32();continue}case 17:{if(r!==136)break;t.randomBurstSizeMax=i.int32();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{channelIdentifier:u(e.channelIdentifier)?globalThis.String(e.channelIdentifier):"",frame:u(e.frame)?y.fromJSON(e.frame):void 0,randomInterval:u(e.randomInterval)?globalThis.Boolean(e.randomInterval):!1,constantIntervalMs:u(e.constantIntervalMs)?globalThis.Number(e.constantIntervalMs):0,randomIntervalMinMs:u(e.randomIntervalMinMs)?globalThis.Number(e.randomIntervalMinMs):0,randomIntervalMaxMs:u(e.randomIntervalMaxMs)?globalThis.Number(e.randomIntervalMaxMs):0,numberOfMessages:u(e.numberOfMessages)?globalThis.Number(e.numberOfMessages):0,randomDataLength:u(e.randomDataLength)?globalThis.Boolean(e.randomDataLength):!1,randomMessageData:u(e.randomMessageData)?globalThis.Boolean(e.randomMessageData):!1,randomIdentifier:u(e.randomIdentifier)?globalThis.Boolean(e.randomIdentifier):!1,scanIdentifier:u(e.scanIdentifier)?globalThis.Boolean(e.scanIdentifier):!1,identifierMin:u(e.identifierMin)?globalThis.Number(e.identifierMin):0,identifierMax:u(e.identifierMax)?globalThis.Number(e.identifierMax):0,randomBurstSize:u(e.randomBurstSize)?globalThis.Boolean(e.randomBurstSize):!1,constantBurstSize:u(e.constantBurstSize)?globalThis.Number(e.constantBurstSize):0,randomBurstSizeMin:u(e.randomBurstSizeMin)?globalThis.Number(e.randomBurstSizeMin):0,randomBurstSizeMax:u(e.randomBurstSizeMax)?globalThis.Number(e.randomBurstSizeMax):0}},toJSON(e){const n={};return e.channelIdentifier!==""&&(n.channelIdentifier=e.channelIdentifier),e.frame!==void 0&&(n.frame=y.toJSON(e.frame)),e.randomInterval!==!1&&(n.randomInterval=e.randomInterval),e.constantIntervalMs!==0&&(n.constantIntervalMs=e.constantIntervalMs),e.randomIntervalMinMs!==0&&(n.randomIntervalMinMs=Math.round(e.randomIntervalMinMs)),e.randomIntervalMaxMs!==0&&(n.randomIntervalMaxMs=Math.round(e.randomIntervalMaxMs)),e.numberOfMessages!==0&&(n.numberOfMessages=Math.round(e.numberOfMessages)),e.randomDataLength!==!1&&(n.randomDataLength=e.randomDataLength),e.randomMessageData!==!1&&(n.randomMessageData=e.randomMessageData),e.randomIdentifier!==!1&&(n.randomIdentifier=e.randomIdentifier),e.scanIdentifier!==!1&&(n.scanIdentifier=e.scanIdentifier),e.identifierMin!==0&&(n.identifierMin=Math.round(e.identifierMin)),e.identifierMax!==0&&(n.identifierMax=Math.round(e.identifierMax)),e.randomBurstSize!==!1&&(n.randomBurstSize=e.randomBurstSize),e.constantBurstSize!==0&&(n.constantBurstSize=Math.round(e.constantBurstSize)),e.randomBurstSizeMin!==0&&(n.randomBurstSizeMin=Math.round(e.randomBurstSizeMin)),e.randomBurstSizeMax!==0&&(n.randomBurstSizeMax=Math.round(e.randomBurstSizeMax)),n},create(e){return H.fromPartial(e??{})},fromPartial(e){const n=Rn();return n.channelIdentifier=e.channelIdentifier??"",n.frame=e.frame!==void 0&&e.frame!==null?y.fromPartial(e.frame):void 0,n.randomInterval=e.randomInterval??!1,n.constantIntervalMs=e.constantIntervalMs??0,n.randomIntervalMinMs=e.randomIntervalMinMs??0,n.randomIntervalMaxMs=e.randomIntervalMaxMs??0,n.numberOfMessages=e.numberOfMessages??0,n.randomDataLength=e.randomDataLength??!1,n.randomMessageData=e.randomMessageData??!1,n.randomIdentifier=e.randomIdentifier??!1,n.scanIdentifier=e.scanIdentifier??!1,n.identifierMin=e.identifierMin??0,n.identifierMax=e.identifierMax??0,n.randomBurstSize=e.randomBurstSize??!1,n.constantBurstSize=e.constantBurstSize??0,n.randomBurstSizeMin=e.randomBurstSizeMin??0,n.randomBurstSizeMax=e.randomBurstSizeMax??0,n}};function On(){return{stdCanIds:"",extCanIds:"",filterType:0}}const F={encode(e,n=new d){return e.stdCanIds!==""&&n.uint32(10).string(e.stdCanIds),e.extCanIds!==""&&n.uint32(18).string(e.extCanIds),e.filterType!==0&&n.uint32(24).int32(e.filterType),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=On();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.stdCanIds=i.string();continue}case 2:{if(r!==18)break;t.extCanIds=i.string();continue}case 3:{if(r!==24)break;t.filterType=i.int32();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{stdCanIds:u(e.stdCanIds)?globalThis.String(e.stdCanIds):"",extCanIds:u(e.extCanIds)?globalThis.String(e.extCanIds):"",filterType:u(e.filterType)?Ii(e.filterType):0}},toJSON(e){const n={};return e.stdCanIds!==""&&(n.stdCanIds=e.stdCanIds),e.extCanIds!==""&&(n.extCanIds=e.extCanIds),e.filterType!==0&&(n.filterType=Ci(e.filterType)),n},create(e){return F.fromPartial(e??{})},fromPartial(e){const n=On();return n.stdCanIds=e.stdCanIds??"",n.extCanIds=e.extCanIds??"",n.filterType=e.filterType??0,n}};function Tn(){return{selectedSignals:[]}}const z={encode(e,n=new d){for(const i of e.selectedSignals)n.uint32(10).string(i);return n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Tn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.selectedSignals.push(i.string());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{selectedSignals:globalThis.Array.isArray(e==null?void 0:e.selectedSignals)?e.selectedSignals.map(n=>globalThis.String(n)):[]}},toJSON(e){var i;const n={};return(i=e.selectedSignals)!=null&&i.length&&(n.selectedSignals=e.selectedSignals),n},create(e){return z.fromPartial(e??{})},fromPartial(e){var i;const n=Tn();return n.selectedSignals=((i=e.selectedSignals)==null?void 0:i.map(a=>a))||[],n}};function mn(){return{databaseFiles:[]}}const Q={encode(e,n=new d){for(const i of e.databaseFiles)n.uint32(10).string(i);return n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=mn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.databaseFiles.push(i.string());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{databaseFiles:globalThis.Array.isArray(e==null?void 0:e.databaseFiles)?e.databaseFiles.map(n=>globalThis.String(n)):[]}},toJSON(e){var i;const n={};return(i=e.databaseFiles)!=null&&i.length&&(n.databaseFiles=e.databaseFiles),n},create(e){return Q.fromPartial(e??{})},fromPartial(e){var i;const n=mn();return n.databaseFiles=((i=e.databaseFiles)==null?void 0:i.map(a=>a))||[],n}};function hn(){return{j1939Settings:void 0}}const X={encode(e,n=new d){return e.j1939Settings!==void 0&&q.encode(e.j1939Settings,n.uint32(10).fork()).join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=hn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.j1939Settings=q.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{j1939Settings:u(e.j1939Settings)?q.fromJSON(e.j1939Settings):void 0}},toJSON(e){const n={};return e.j1939Settings!==void 0&&(n.j1939Settings=q.toJSON(e.j1939Settings)),n},create(e){return X.fromPartial(e??{})},fromPartial(e){const n=hn();return n.j1939Settings=e.j1939Settings!==void 0&&e.j1939Settings!==null?q.fromPartial(e.j1939Settings):void 0,n}};function pn(){return{}}const q={encode(e,n=new d){return n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=pn();for(;i.pos<a;){const r=i.uint32();if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{}},toJSON(e){return{}},create(e){return q.fromPartial(e??{})},fromPartial(e){return pn()}};function In(){return{extensionName:"",configuration:void 0}}const Z={encode(e,n=new d){return e.extensionName!==""&&n.uint32(10).string(e.extensionName),e.configuration!==void 0&&n.uint32(18).string(e.configuration),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=In();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.extensionName=i.string();continue}case 2:{if(r!==18)break;t.configuration=i.string();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{extensionName:u(e.extensionName)?globalThis.String(e.extensionName):"",configuration:u(e.configuration)?globalThis.String(e.configuration):void 0}},toJSON(e){const n={};return e.extensionName!==""&&(n.extensionName=e.extensionName),e.configuration!==void 0&&(n.configuration=e.configuration),n},create(e){return Z.fromPartial(e??{})},fromPartial(e){const n=In();return n.extensionName=e.extensionName??"",n.configuration=e.configuration??void 0,n}};function Cn(){return{frameId:"",frameIdType:""}}const Y={encode(e,n=new d){return e.frameId!==""&&n.uint32(10).string(e.frameId),e.frameIdType!==""&&n.uint32(18).string(e.frameIdType),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Cn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.frameId=i.string();continue}case 2:{if(r!==18)break;t.frameIdType=i.string();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{frameId:u(e.frameId)?globalThis.String(e.frameId):"",frameIdType:u(e.frameIdType)?globalThis.String(e.frameIdType):""}},toJSON(e){const n={};return e.frameId!==""&&(n.frameId=e.frameId),e.frameIdType!==""&&(n.frameIdType=e.frameIdType),n},create(e){return Y.fromPartial(e??{})},fromPartial(e){const n=Cn();return n.frameId=e.frameId??"",n.frameIdType=e.frameIdType??"",n}};function Fn(){return{frameId:"",signalQualifiedName:"",signalValue:0,signalMinValue:0,signalMaxValue:0,operator:0,frameIdType:""}}const K={encode(e,n=new d){return e.frameId!==""&&n.uint32(10).string(e.frameId),e.signalQualifiedName!==""&&n.uint32(18).string(e.signalQualifiedName),e.signalValue!==0&&n.uint32(25).double(e.signalValue),e.signalMinValue!==0&&n.uint32(33).double(e.signalMinValue),e.signalMaxValue!==0&&n.uint32(41).double(e.signalMaxValue),e.operator!==0&&n.uint32(48).int32(e.operator),e.frameIdType!==""&&n.uint32(58).string(e.frameIdType),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Fn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.frameId=i.string();continue}case 2:{if(r!==18)break;t.signalQualifiedName=i.string();continue}case 3:{if(r!==25)break;t.signalValue=i.double();continue}case 4:{if(r!==33)break;t.signalMinValue=i.double();continue}case 5:{if(r!==41)break;t.signalMaxValue=i.double();continue}case 6:{if(r!==48)break;t.operator=i.int32();continue}case 7:{if(r!==58)break;t.frameIdType=i.string();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{frameId:u(e.frameId)?globalThis.String(e.frameId):"",signalQualifiedName:u(e.signalQualifiedName)?globalThis.String(e.signalQualifiedName):"",signalValue:u(e.signalValue)?globalThis.Number(e.signalValue):0,signalMinValue:u(e.signalMinValue)?globalThis.Number(e.signalMinValue):0,signalMaxValue:u(e.signalMaxValue)?globalThis.Number(e.signalMaxValue):0,operator:u(e.operator)?Mi(e.operator):0,frameIdType:u(e.frameIdType)?globalThis.String(e.frameIdType):""}},toJSON(e){const n={};return e.frameId!==""&&(n.frameId=e.frameId),e.signalQualifiedName!==""&&(n.signalQualifiedName=e.signalQualifiedName),e.signalValue!==0&&(n.signalValue=e.signalValue),e.signalMinValue!==0&&(n.signalMinValue=e.signalMinValue),e.signalMaxValue!==0&&(n.signalMaxValue=e.signalMaxValue),e.operator!==0&&(n.operator=Li(e.operator)),e.frameIdType!==""&&(n.frameIdType=e.frameIdType),n},create(e){return K.fromPartial(e??{})},fromPartial(e){const n=Fn();return n.frameId=e.frameId??"",n.signalQualifiedName=e.signalQualifiedName??"",n.signalValue=e.signalValue??0,n.signalMinValue=e.signalMinValue??0,n.signalMaxValue=e.signalMaxValue??0,n.operator=e.operator??0,n.frameIdType=e.frameIdType??"",n}};function Mn(){return{timeoutTrigger:void 0,frameReceivedTrigger:void 0,signalValueTrigger:void 0}}const _={encode(e,n=new d){return e.timeoutTrigger!==void 0&&n.uint32(17).double(e.timeoutTrigger),e.frameReceivedTrigger!==void 0&&Y.encode(e.frameReceivedTrigger,n.uint32(26).fork()).join(),e.signalValueTrigger!==void 0&&K.encode(e.signalValueTrigger,n.uint32(34).fork()).join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Mn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 2:{if(r!==17)break;t.timeoutTrigger=i.double();continue}case 3:{if(r!==26)break;t.frameReceivedTrigger=Y.decode(i,i.uint32());continue}case 4:{if(r!==34)break;t.signalValueTrigger=K.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{timeoutTrigger:u(e.timeoutTrigger)?globalThis.Number(e.timeoutTrigger):void 0,frameReceivedTrigger:u(e.frameReceivedTrigger)?Y.fromJSON(e.frameReceivedTrigger):void 0,signalValueTrigger:u(e.signalValueTrigger)?K.fromJSON(e.signalValueTrigger):void 0}},toJSON(e){const n={};return e.timeoutTrigger!==void 0&&(n.timeoutTrigger=e.timeoutTrigger),e.frameReceivedTrigger!==void 0&&(n.frameReceivedTrigger=Y.toJSON(e.frameReceivedTrigger)),e.signalValueTrigger!==void 0&&(n.signalValueTrigger=K.toJSON(e.signalValueTrigger)),n},create(e){return _.fromPartial(e??{})},fromPartial(e){const n=Mn();return n.timeoutTrigger=e.timeoutTrigger??void 0,n.frameReceivedTrigger=e.frameReceivedTrigger!==void 0&&e.frameReceivedTrigger!==null?Y.fromPartial(e.frameReceivedTrigger):void 0,n.signalValueTrigger=e.signalValueTrigger!==void 0&&e.signalValueTrigger!==null?K.fromPartial(e.signalValueTrigger):void 0,n}};function Ln(){return{fileName:"",fileFormat:0,fileConflictAction:0,canMessageFilter:void 0,startTriggerSettings:[],startTriggersOperator:0,stopTriggerSettings:[],stopTriggersOperator:0,autoRestartAfterStop:!1,writeFileHeader:void 0,writeDataInHex:void 0,writeIdInHex:void 0,decimalSeparator:void 0,colSeparator:void 0,dataBytesConverterLimit:void 0,sizeLimit:void 0,timeLimit:void 0,numberOfTimeDecimals:void 0,timeReference:void 0,useCalendarTime:void 0,useUtcTime:void 0}}const W={encode(e,n=new d){e.fileName!==""&&n.uint32(10).string(e.fileName),e.fileFormat!==0&&n.uint32(16).int32(e.fileFormat),e.fileConflictAction!==0&&n.uint32(24).int32(e.fileConflictAction),e.canMessageFilter!==void 0&&F.encode(e.canMessageFilter,n.uint32(34).fork()).join();for(const i of e.startTriggerSettings)_.encode(i,n.uint32(42).fork()).join();e.startTriggersOperator!==0&&n.uint32(48).int32(e.startTriggersOperator);for(const i of e.stopTriggerSettings)_.encode(i,n.uint32(58).fork()).join();return e.stopTriggersOperator!==0&&n.uint32(64).int32(e.stopTriggersOperator),e.autoRestartAfterStop!==!1&&n.uint32(72).bool(e.autoRestartAfterStop),e.writeFileHeader!==void 0&&n.uint32(80).bool(e.writeFileHeader),e.writeDataInHex!==void 0&&n.uint32(88).bool(e.writeDataInHex),e.writeIdInHex!==void 0&&n.uint32(96).bool(e.writeIdInHex),e.decimalSeparator!==void 0&&n.uint32(104).int32(e.decimalSeparator),e.colSeparator!==void 0&&n.uint32(112).int32(e.colSeparator),e.dataBytesConverterLimit!==void 0&&n.uint32(120).int32(e.dataBytesConverterLimit),e.sizeLimit!==void 0&&n.uint32(128).int32(e.sizeLimit),e.timeLimit!==void 0&&n.uint32(136).int32(e.timeLimit),e.numberOfTimeDecimals!==void 0&&n.uint32(144).int32(e.numberOfTimeDecimals),e.timeReference!==void 0&&n.uint32(152).int32(e.timeReference),e.useCalendarTime!==void 0&&n.uint32(160).bool(e.useCalendarTime),e.useUtcTime!==void 0&&n.uint32(168).bool(e.useUtcTime),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Ln();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.fileName=i.string();continue}case 2:{if(r!==16)break;t.fileFormat=i.int32();continue}case 3:{if(r!==24)break;t.fileConflictAction=i.int32();continue}case 4:{if(r!==34)break;t.canMessageFilter=F.decode(i,i.uint32());continue}case 5:{if(r!==42)break;t.startTriggerSettings.push(_.decode(i,i.uint32()));continue}case 6:{if(r!==48)break;t.startTriggersOperator=i.int32();continue}case 7:{if(r!==58)break;t.stopTriggerSettings.push(_.decode(i,i.uint32()));continue}case 8:{if(r!==64)break;t.stopTriggersOperator=i.int32();continue}case 9:{if(r!==72)break;t.autoRestartAfterStop=i.bool();continue}case 10:{if(r!==80)break;t.writeFileHeader=i.bool();continue}case 11:{if(r!==88)break;t.writeDataInHex=i.bool();continue}case 12:{if(r!==96)break;t.writeIdInHex=i.bool();continue}case 13:{if(r!==104)break;t.decimalSeparator=i.int32();continue}case 14:{if(r!==112)break;t.colSeparator=i.int32();continue}case 15:{if(r!==120)break;t.dataBytesConverterLimit=i.int32();continue}case 16:{if(r!==128)break;t.sizeLimit=i.int32();continue}case 17:{if(r!==136)break;t.timeLimit=i.int32();continue}case 18:{if(r!==144)break;t.numberOfTimeDecimals=i.int32();continue}case 19:{if(r!==152)break;t.timeReference=i.int32();continue}case 20:{if(r!==160)break;t.useCalendarTime=i.bool();continue}case 21:{if(r!==168)break;t.useUtcTime=i.bool();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{fileName:u(e.fileName)?globalThis.String(e.fileName):"",fileFormat:u(e.fileFormat)?Ee(e.fileFormat):0,fileConflictAction:u(e.fileConflictAction)?Se(e.fileConflictAction):0,canMessageFilter:u(e.canMessageFilter)?F.fromJSON(e.canMessageFilter):void 0,startTriggerSettings:globalThis.Array.isArray(e==null?void 0:e.startTriggerSettings)?e.startTriggerSettings.map(n=>_.fromJSON(n)):[],startTriggersOperator:u(e.startTriggersOperator)?ie(e.startTriggersOperator):0,stopTriggerSettings:globalThis.Array.isArray(e==null?void 0:e.stopTriggerSettings)?e.stopTriggerSettings.map(n=>_.fromJSON(n)):[],stopTriggersOperator:u(e.stopTriggersOperator)?ie(e.stopTriggersOperator):0,autoRestartAfterStop:u(e.autoRestartAfterStop)?globalThis.Boolean(e.autoRestartAfterStop):!1,writeFileHeader:u(e.writeFileHeader)?globalThis.Boolean(e.writeFileHeader):void 0,writeDataInHex:u(e.writeDataInHex)?globalThis.Boolean(e.writeDataInHex):void 0,writeIdInHex:u(e.writeIdInHex)?globalThis.Boolean(e.writeIdInHex):void 0,decimalSeparator:u(e.decimalSeparator)?Oe(e.decimalSeparator):void 0,colSeparator:u(e.colSeparator)?me(e.colSeparator):void 0,dataBytesConverterLimit:u(e.dataBytesConverterLimit)?globalThis.Number(e.dataBytesConverterLimit):void 0,sizeLimit:u(e.sizeLimit)?globalThis.Number(e.sizeLimit):void 0,timeLimit:u(e.timeLimit)?globalThis.Number(e.timeLimit):void 0,numberOfTimeDecimals:u(e.numberOfTimeDecimals)?globalThis.Number(e.numberOfTimeDecimals):void 0,timeReference:u(e.timeReference)?pe(e.timeReference):void 0,useCalendarTime:u(e.useCalendarTime)?globalThis.Boolean(e.useCalendarTime):void 0,useUtcTime:u(e.useUtcTime)?globalThis.Boolean(e.useUtcTime):void 0}},toJSON(e){var i,a;const n={};return e.fileName!==""&&(n.fileName=e.fileName),e.fileFormat!==0&&(n.fileFormat=Ae(e.fileFormat)),e.fileConflictAction!==0&&(n.fileConflictAction=Re(e.fileConflictAction)),e.canMessageFilter!==void 0&&(n.canMessageFilter=F.toJSON(e.canMessageFilter)),(i=e.startTriggerSettings)!=null&&i.length&&(n.startTriggerSettings=e.startTriggerSettings.map(t=>_.toJSON(t))),e.startTriggersOperator!==0&&(n.startTriggersOperator=re(e.startTriggersOperator)),(a=e.stopTriggerSettings)!=null&&a.length&&(n.stopTriggerSettings=e.stopTriggerSettings.map(t=>_.toJSON(t))),e.stopTriggersOperator!==0&&(n.stopTriggersOperator=re(e.stopTriggersOperator)),e.autoRestartAfterStop!==!1&&(n.autoRestartAfterStop=e.autoRestartAfterStop),e.writeFileHeader!==void 0&&(n.writeFileHeader=e.writeFileHeader),e.writeDataInHex!==void 0&&(n.writeDataInHex=e.writeDataInHex),e.writeIdInHex!==void 0&&(n.writeIdInHex=e.writeIdInHex),e.decimalSeparator!==void 0&&(n.decimalSeparator=Te(e.decimalSeparator)),e.colSeparator!==void 0&&(n.colSeparator=he(e.colSeparator)),e.dataBytesConverterLimit!==void 0&&(n.dataBytesConverterLimit=Math.round(e.dataBytesConverterLimit)),e.sizeLimit!==void 0&&(n.sizeLimit=Math.round(e.sizeLimit)),e.timeLimit!==void 0&&(n.timeLimit=Math.round(e.timeLimit)),e.numberOfTimeDecimals!==void 0&&(n.numberOfTimeDecimals=Math.round(e.numberOfTimeDecimals)),e.timeReference!==void 0&&(n.timeReference=Ie(e.timeReference)),e.useCalendarTime!==void 0&&(n.useCalendarTime=e.useCalendarTime),e.useUtcTime!==void 0&&(n.useUtcTime=e.useUtcTime),n},create(e){return W.fromPartial(e??{})},fromPartial(e){var i,a;const n=Ln();return n.fileName=e.fileName??"",n.fileFormat=e.fileFormat??0,n.fileConflictAction=e.fileConflictAction??0,n.canMessageFilter=e.canMessageFilter!==void 0&&e.canMessageFilter!==null?F.fromPartial(e.canMessageFilter):void 0,n.startTriggerSettings=((i=e.startTriggerSettings)==null?void 0:i.map(t=>_.fromPartial(t)))||[],n.startTriggersOperator=e.startTriggersOperator??0,n.stopTriggerSettings=((a=e.stopTriggerSettings)==null?void 0:a.map(t=>_.fromPartial(t)))||[],n.stopTriggersOperator=e.stopTriggersOperator??0,n.autoRestartAfterStop=e.autoRestartAfterStop??!1,n.writeFileHeader=e.writeFileHeader??void 0,n.writeDataInHex=e.writeDataInHex??void 0,n.writeIdInHex=e.writeIdInHex??void 0,n.decimalSeparator=e.decimalSeparator??void 0,n.colSeparator=e.colSeparator??void 0,n.dataBytesConverterLimit=e.dataBytesConverterLimit??void 0,n.sizeLimit=e.sizeLimit??void 0,n.timeLimit=e.timeLimit??void 0,n.numberOfTimeDecimals=e.numberOfTimeDecimals??void 0,n.timeReference=e.timeReference??void 0,n.useCalendarTime=e.useCalendarTime??void 0,n.useUtcTime=e.useUtcTime??void 0,n}};function Pn(){return{fileName:"",fileFormat:0,fileConflictAction:0,signalFilter:void 0,startTriggerSettings:[],startTriggersOperator:0,stopTriggerSettings:[],stopTriggersOperator:0,autoRestartAfterStop:!1,writeFileHeader:void 0,writeDataInHex:void 0,writeIdInHex:void 0,decimalSeparator:void 0,colSeparator:void 0,dataBytesConverterLimit:void 0,sizeLimit:void 0,numberOfDataDecimals:void 0,timeLimit:void 0,numberOfTimeDecimals:void 0,timeReference:void 0,useCalendarTime:void 0,useUtcTime:void 0,useEnumValues:void 0,writeFullyQualifiedNames:void 0,writeCounter:void 0,writeUnitsOnOwnRow:void 0,writeOnlySignals:void 0}}const $={encode(e,n=new d){e.fileName!==""&&n.uint32(10).string(e.fileName),e.fileFormat!==0&&n.uint32(16).int32(e.fileFormat),e.fileConflictAction!==0&&n.uint32(24).int32(e.fileConflictAction),e.signalFilter!==void 0&&z.encode(e.signalFilter,n.uint32(34).fork()).join();for(const i of e.startTriggerSettings)_.encode(i,n.uint32(42).fork()).join();e.startTriggersOperator!==0&&n.uint32(48).int32(e.startTriggersOperator);for(const i of e.stopTriggerSettings)_.encode(i,n.uint32(58).fork()).join();return e.stopTriggersOperator!==0&&n.uint32(64).int32(e.stopTriggersOperator),e.autoRestartAfterStop!==!1&&n.uint32(72).bool(e.autoRestartAfterStop),e.writeFileHeader!==void 0&&n.uint32(80).bool(e.writeFileHeader),e.writeDataInHex!==void 0&&n.uint32(88).bool(e.writeDataInHex),e.writeIdInHex!==void 0&&n.uint32(96).bool(e.writeIdInHex),e.decimalSeparator!==void 0&&n.uint32(104).int32(e.decimalSeparator),e.colSeparator!==void 0&&n.uint32(112).int32(e.colSeparator),e.dataBytesConverterLimit!==void 0&&n.uint32(120).int32(e.dataBytesConverterLimit),e.sizeLimit!==void 0&&n.uint32(128).int32(e.sizeLimit),e.numberOfDataDecimals!==void 0&&n.uint32(136).int32(e.numberOfDataDecimals),e.timeLimit!==void 0&&n.uint32(144).int32(e.timeLimit),e.numberOfTimeDecimals!==void 0&&n.uint32(152).int32(e.numberOfTimeDecimals),e.timeReference!==void 0&&n.uint32(160).int32(e.timeReference),e.useCalendarTime!==void 0&&n.uint32(168).bool(e.useCalendarTime),e.useUtcTime!==void 0&&n.uint32(176).bool(e.useUtcTime),e.useEnumValues!==void 0&&n.uint32(184).bool(e.useEnumValues),e.writeFullyQualifiedNames!==void 0&&n.uint32(192).bool(e.writeFullyQualifiedNames),e.writeCounter!==void 0&&n.uint32(200).bool(e.writeCounter),e.writeUnitsOnOwnRow!==void 0&&n.uint32(208).bool(e.writeUnitsOnOwnRow),e.writeOnlySignals!==void 0&&n.uint32(216).bool(e.writeOnlySignals),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Pn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.fileName=i.string();continue}case 2:{if(r!==16)break;t.fileFormat=i.int32();continue}case 3:{if(r!==24)break;t.fileConflictAction=i.int32();continue}case 4:{if(r!==34)break;t.signalFilter=z.decode(i,i.uint32());continue}case 5:{if(r!==42)break;t.startTriggerSettings.push(_.decode(i,i.uint32()));continue}case 6:{if(r!==48)break;t.startTriggersOperator=i.int32();continue}case 7:{if(r!==58)break;t.stopTriggerSettings.push(_.decode(i,i.uint32()));continue}case 8:{if(r!==64)break;t.stopTriggersOperator=i.int32();continue}case 9:{if(r!==72)break;t.autoRestartAfterStop=i.bool();continue}case 10:{if(r!==80)break;t.writeFileHeader=i.bool();continue}case 11:{if(r!==88)break;t.writeDataInHex=i.bool();continue}case 12:{if(r!==96)break;t.writeIdInHex=i.bool();continue}case 13:{if(r!==104)break;t.decimalSeparator=i.int32();continue}case 14:{if(r!==112)break;t.colSeparator=i.int32();continue}case 15:{if(r!==120)break;t.dataBytesConverterLimit=i.int32();continue}case 16:{if(r!==128)break;t.sizeLimit=i.int32();continue}case 17:{if(r!==136)break;t.numberOfDataDecimals=i.int32();continue}case 18:{if(r!==144)break;t.timeLimit=i.int32();continue}case 19:{if(r!==152)break;t.numberOfTimeDecimals=i.int32();continue}case 20:{if(r!==160)break;t.timeReference=i.int32();continue}case 21:{if(r!==168)break;t.useCalendarTime=i.bool();continue}case 22:{if(r!==176)break;t.useUtcTime=i.bool();continue}case 23:{if(r!==184)break;t.useEnumValues=i.bool();continue}case 24:{if(r!==192)break;t.writeFullyQualifiedNames=i.bool();continue}case 25:{if(r!==200)break;t.writeCounter=i.bool();continue}case 26:{if(r!==208)break;t.writeUnitsOnOwnRow=i.bool();continue}case 27:{if(r!==216)break;t.writeOnlySignals=i.bool();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{fileName:u(e.fileName)?globalThis.String(e.fileName):"",fileFormat:u(e.fileFormat)?Ee(e.fileFormat):0,fileConflictAction:u(e.fileConflictAction)?Se(e.fileConflictAction):0,signalFilter:u(e.signalFilter)?z.fromJSON(e.signalFilter):void 0,startTriggerSettings:globalThis.Array.isArray(e==null?void 0:e.startTriggerSettings)?e.startTriggerSettings.map(n=>_.fromJSON(n)):[],startTriggersOperator:u(e.startTriggersOperator)?ie(e.startTriggersOperator):0,stopTriggerSettings:globalThis.Array.isArray(e==null?void 0:e.stopTriggerSettings)?e.stopTriggerSettings.map(n=>_.fromJSON(n)):[],stopTriggersOperator:u(e.stopTriggersOperator)?ie(e.stopTriggersOperator):0,autoRestartAfterStop:u(e.autoRestartAfterStop)?globalThis.Boolean(e.autoRestartAfterStop):!1,writeFileHeader:u(e.writeFileHeader)?globalThis.Boolean(e.writeFileHeader):void 0,writeDataInHex:u(e.writeDataInHex)?globalThis.Boolean(e.writeDataInHex):void 0,writeIdInHex:u(e.writeIdInHex)?globalThis.Boolean(e.writeIdInHex):void 0,decimalSeparator:u(e.decimalSeparator)?Oe(e.decimalSeparator):void 0,colSeparator:u(e.colSeparator)?me(e.colSeparator):void 0,dataBytesConverterLimit:u(e.dataBytesConverterLimit)?globalThis.Number(e.dataBytesConverterLimit):void 0,sizeLimit:u(e.sizeLimit)?globalThis.Number(e.sizeLimit):void 0,numberOfDataDecimals:u(e.numberOfDataDecimals)?globalThis.Number(e.numberOfDataDecimals):void 0,timeLimit:u(e.timeLimit)?globalThis.Number(e.timeLimit):void 0,numberOfTimeDecimals:u(e.numberOfTimeDecimals)?globalThis.Number(e.numberOfTimeDecimals):void 0,timeReference:u(e.timeReference)?pe(e.timeReference):void 0,useCalendarTime:u(e.useCalendarTime)?globalThis.Boolean(e.useCalendarTime):void 0,useUtcTime:u(e.useUtcTime)?globalThis.Boolean(e.useUtcTime):void 0,useEnumValues:u(e.useEnumValues)?globalThis.Boolean(e.useEnumValues):void 0,writeFullyQualifiedNames:u(e.writeFullyQualifiedNames)?globalThis.Boolean(e.writeFullyQualifiedNames):void 0,writeCounter:u(e.writeCounter)?globalThis.Boolean(e.writeCounter):void 0,writeUnitsOnOwnRow:u(e.writeUnitsOnOwnRow)?globalThis.Boolean(e.writeUnitsOnOwnRow):void 0,writeOnlySignals:u(e.writeOnlySignals)?globalThis.Boolean(e.writeOnlySignals):void 0}},toJSON(e){var i,a;const n={};return e.fileName!==""&&(n.fileName=e.fileName),e.fileFormat!==0&&(n.fileFormat=Ae(e.fileFormat)),e.fileConflictAction!==0&&(n.fileConflictAction=Re(e.fileConflictAction)),e.signalFilter!==void 0&&(n.signalFilter=z.toJSON(e.signalFilter)),(i=e.startTriggerSettings)!=null&&i.length&&(n.startTriggerSettings=e.startTriggerSettings.map(t=>_.toJSON(t))),e.startTriggersOperator!==0&&(n.startTriggersOperator=re(e.startTriggersOperator)),(a=e.stopTriggerSettings)!=null&&a.length&&(n.stopTriggerSettings=e.stopTriggerSettings.map(t=>_.toJSON(t))),e.stopTriggersOperator!==0&&(n.stopTriggersOperator=re(e.stopTriggersOperator)),e.autoRestartAfterStop!==!1&&(n.autoRestartAfterStop=e.autoRestartAfterStop),e.writeFileHeader!==void 0&&(n.writeFileHeader=e.writeFileHeader),e.writeDataInHex!==void 0&&(n.writeDataInHex=e.writeDataInHex),e.writeIdInHex!==void 0&&(n.writeIdInHex=e.writeIdInHex),e.decimalSeparator!==void 0&&(n.decimalSeparator=Te(e.decimalSeparator)),e.colSeparator!==void 0&&(n.colSeparator=he(e.colSeparator)),e.dataBytesConverterLimit!==void 0&&(n.dataBytesConverterLimit=Math.round(e.dataBytesConverterLimit)),e.sizeLimit!==void 0&&(n.sizeLimit=Math.round(e.sizeLimit)),e.numberOfDataDecimals!==void 0&&(n.numberOfDataDecimals=Math.round(e.numberOfDataDecimals)),e.timeLimit!==void 0&&(n.timeLimit=Math.round(e.timeLimit)),e.numberOfTimeDecimals!==void 0&&(n.numberOfTimeDecimals=Math.round(e.numberOfTimeDecimals)),e.timeReference!==void 0&&(n.timeReference=Ie(e.timeReference)),e.useCalendarTime!==void 0&&(n.useCalendarTime=e.useCalendarTime),e.useUtcTime!==void 0&&(n.useUtcTime=e.useUtcTime),e.useEnumValues!==void 0&&(n.useEnumValues=e.useEnumValues),e.writeFullyQualifiedNames!==void 0&&(n.writeFullyQualifiedNames=e.writeFullyQualifiedNames),e.writeCounter!==void 0&&(n.writeCounter=e.writeCounter),e.writeUnitsOnOwnRow!==void 0&&(n.writeUnitsOnOwnRow=e.writeUnitsOnOwnRow),e.writeOnlySignals!==void 0&&(n.writeOnlySignals=e.writeOnlySignals),n},create(e){return $.fromPartial(e??{})},fromPartial(e){var i,a;const n=Pn();return n.fileName=e.fileName??"",n.fileFormat=e.fileFormat??0,n.fileConflictAction=e.fileConflictAction??0,n.signalFilter=e.signalFilter!==void 0&&e.signalFilter!==null?z.fromPartial(e.signalFilter):void 0,n.startTriggerSettings=((i=e.startTriggerSettings)==null?void 0:i.map(t=>_.fromPartial(t)))||[],n.startTriggersOperator=e.startTriggersOperator??0,n.stopTriggerSettings=((a=e.stopTriggerSettings)==null?void 0:a.map(t=>_.fromPartial(t)))||[],n.stopTriggersOperator=e.stopTriggersOperator??0,n.autoRestartAfterStop=e.autoRestartAfterStop??!1,n.writeFileHeader=e.writeFileHeader??void 0,n.writeDataInHex=e.writeDataInHex??void 0,n.writeIdInHex=e.writeIdInHex??void 0,n.decimalSeparator=e.decimalSeparator??void 0,n.colSeparator=e.colSeparator??void 0,n.dataBytesConverterLimit=e.dataBytesConverterLimit??void 0,n.sizeLimit=e.sizeLimit??void 0,n.numberOfDataDecimals=e.numberOfDataDecimals??void 0,n.timeLimit=e.timeLimit??void 0,n.numberOfTimeDecimals=e.numberOfTimeDecimals??void 0,n.timeReference=e.timeReference??void 0,n.useCalendarTime=e.useCalendarTime??void 0,n.useUtcTime=e.useUtcTime??void 0,n.useEnumValues=e.useEnumValues??void 0,n.writeFullyQualifiedNames=e.writeFullyQualifiedNames??void 0,n.writeCounter=e.writeCounter??void 0,n.writeUnitsOnOwnRow=e.writeUnitsOnOwnRow??void 0,n.writeOnlySignals=e.writeOnlySignals??void 0,n}};function gn(){return{identifier:"",name:"",description:[],readOnlyProperties:!1,readOnlyConnections:!1,disabled:!1}}const R={encode(e,n=new d){e.identifier!==""&&n.uint32(10).string(e.identifier),e.name!==""&&n.uint32(18).string(e.name);for(const i of e.description)n.uint32(26).string(i);return e.readOnlyProperties!==!1&&n.uint32(32).bool(e.readOnlyProperties),e.readOnlyConnections!==!1&&n.uint32(40).bool(e.readOnlyConnections),e.disabled!==!1&&n.uint32(48).bool(e.disabled),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=gn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.identifier=i.string();continue}case 2:{if(r!==18)break;t.name=i.string();continue}case 3:{if(r!==26)break;t.description.push(i.string());continue}case 4:{if(r!==32)break;t.readOnlyProperties=i.bool();continue}case 5:{if(r!==40)break;t.readOnlyConnections=i.bool();continue}case 6:{if(r!==48)break;t.disabled=i.bool();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{identifier:u(e.identifier)?globalThis.String(e.identifier):"",name:u(e.name)?globalThis.String(e.name):"",description:globalThis.Array.isArray(e==null?void 0:e.description)?e.description.map(n=>globalThis.String(n)):[],readOnlyProperties:u(e.readOnlyProperties)?globalThis.Boolean(e.readOnlyProperties):!1,readOnlyConnections:u(e.readOnlyConnections)?globalThis.Boolean(e.readOnlyConnections):!1,disabled:u(e.disabled)?globalThis.Boolean(e.disabled):!1}},toJSON(e){var i;const n={};return e.identifier!==""&&(n.identifier=e.identifier),e.name!==""&&(n.name=e.name),(i=e.description)!=null&&i.length&&(n.description=e.description),e.readOnlyProperties!==!1&&(n.readOnlyProperties=e.readOnlyProperties),e.readOnlyConnections!==!1&&(n.readOnlyConnections=e.readOnlyConnections),e.disabled!==!1&&(n.disabled=e.disabled),n},create(e){return R.fromPartial(e??{})},fromPartial(e){var i;const n=gn();return n.identifier=e.identifier??"",n.name=e.name??"",n.description=((i=e.description)==null?void 0:i.map(a=>a))||[],n.readOnlyProperties=e.readOnlyProperties??!1,n.readOnlyConnections=e.readOnlyConnections??!1,n.disabled=e.disabled??!1,n}};function bn(){return{baseNode:void 0,isDataGenerator:!1,channelSettings:void 0,logReplaySettings:void 0,trafficGeneratorSettings:void 0}}const j={encode(e,n=new d){return e.baseNode!==void 0&&R.encode(e.baseNode,n.uint32(10).fork()).join(),e.isDataGenerator!==!1&&n.uint32(16).bool(e.isDataGenerator),e.channelSettings!==void 0&&x.encode(e.channelSettings,n.uint32(26).fork()).join(),e.logReplaySettings!==void 0&&w.encode(e.logReplaySettings,n.uint32(34).fork()).join(),e.trafficGeneratorSettings!==void 0&&H.encode(e.trafficGeneratorSettings,n.uint32(42).fork()).join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=bn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.baseNode=R.decode(i,i.uint32());continue}case 2:{if(r!==16)break;t.isDataGenerator=i.bool();continue}case 3:{if(r!==26)break;t.channelSettings=x.decode(i,i.uint32());continue}case 4:{if(r!==34)break;t.logReplaySettings=w.decode(i,i.uint32());continue}case 5:{if(r!==42)break;t.trafficGeneratorSettings=H.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{baseNode:u(e.baseNode)?R.fromJSON(e.baseNode):void 0,isDataGenerator:u(e.isDataGenerator)?globalThis.Boolean(e.isDataGenerator):!1,channelSettings:u(e.channelSettings)?x.fromJSON(e.channelSettings):void 0,logReplaySettings:u(e.logReplaySettings)?w.fromJSON(e.logReplaySettings):void 0,trafficGeneratorSettings:u(e.trafficGeneratorSettings)?H.fromJSON(e.trafficGeneratorSettings):void 0}},toJSON(e){const n={};return e.baseNode!==void 0&&(n.baseNode=R.toJSON(e.baseNode)),e.isDataGenerator!==!1&&(n.isDataGenerator=e.isDataGenerator),e.channelSettings!==void 0&&(n.channelSettings=x.toJSON(e.channelSettings)),e.logReplaySettings!==void 0&&(n.logReplaySettings=w.toJSON(e.logReplaySettings)),e.trafficGeneratorSettings!==void 0&&(n.trafficGeneratorSettings=H.toJSON(e.trafficGeneratorSettings)),n},create(e){return j.fromPartial(e??{})},fromPartial(e){const n=bn();return n.baseNode=e.baseNode!==void 0&&e.baseNode!==null?R.fromPartial(e.baseNode):void 0,n.isDataGenerator=e.isDataGenerator??!1,n.channelSettings=e.channelSettings!==void 0&&e.channelSettings!==null?x.fromPartial(e.channelSettings):void 0,n.logReplaySettings=e.logReplaySettings!==void 0&&e.logReplaySettings!==null?w.fromPartial(e.logReplaySettings):void 0,n.trafficGeneratorSettings=e.trafficGeneratorSettings!==void 0&&e.trafficGeneratorSettings!==null?H.fromPartial(e.trafficGeneratorSettings):void 0,n}};function Gn(){return{baseNode:void 0,connectedNodes:[],canMessageFilterSettings:void 0,databasesSettings:void 0,interpreterSettings:void 0,extensionSettings:void 0}}const ee={encode(e,n=new d){e.baseNode!==void 0&&R.encode(e.baseNode,n.uint32(10).fork()).join();for(const i of e.connectedNodes)n.uint32(18).string(i);return e.canMessageFilterSettings!==void 0&&F.encode(e.canMessageFilterSettings,n.uint32(26).fork()).join(),e.databasesSettings!==void 0&&Q.encode(e.databasesSettings,n.uint32(34).fork()).join(),e.interpreterSettings!==void 0&&X.encode(e.interpreterSettings,n.uint32(42).fork()).join(),e.extensionSettings!==void 0&&Z.encode(e.extensionSettings,n.uint32(50).fork()).join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Gn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.baseNode=R.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.connectedNodes.push(i.string());continue}case 3:{if(r!==26)break;t.canMessageFilterSettings=F.decode(i,i.uint32());continue}case 4:{if(r!==34)break;t.databasesSettings=Q.decode(i,i.uint32());continue}case 5:{if(r!==42)break;t.interpreterSettings=X.decode(i,i.uint32());continue}case 6:{if(r!==50)break;t.extensionSettings=Z.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{baseNode:u(e.baseNode)?R.fromJSON(e.baseNode):void 0,connectedNodes:globalThis.Array.isArray(e==null?void 0:e.connectedNodes)?e.connectedNodes.map(n=>globalThis.String(n)):[],canMessageFilterSettings:u(e.canMessageFilterSettings)?F.fromJSON(e.canMessageFilterSettings):void 0,databasesSettings:u(e.databasesSettings)?Q.fromJSON(e.databasesSettings):void 0,interpreterSettings:u(e.interpreterSettings)?X.fromJSON(e.interpreterSettings):void 0,extensionSettings:u(e.extensionSettings)?Z.fromJSON(e.extensionSettings):void 0}},toJSON(e){var i;const n={};return e.baseNode!==void 0&&(n.baseNode=R.toJSON(e.baseNode)),(i=e.connectedNodes)!=null&&i.length&&(n.connectedNodes=e.connectedNodes),e.canMessageFilterSettings!==void 0&&(n.canMessageFilterSettings=F.toJSON(e.canMessageFilterSettings)),e.databasesSettings!==void 0&&(n.databasesSettings=Q.toJSON(e.databasesSettings)),e.interpreterSettings!==void 0&&(n.interpreterSettings=X.toJSON(e.interpreterSettings)),e.extensionSettings!==void 0&&(n.extensionSettings=Z.toJSON(e.extensionSettings)),n},create(e){return ee.fromPartial(e??{})},fromPartial(e){var i;const n=Gn();return n.baseNode=e.baseNode!==void 0&&e.baseNode!==null?R.fromPartial(e.baseNode):void 0,n.connectedNodes=((i=e.connectedNodes)==null?void 0:i.map(a=>a))||[],n.canMessageFilterSettings=e.canMessageFilterSettings!==void 0&&e.canMessageFilterSettings!==null?F.fromPartial(e.canMessageFilterSettings):void 0,n.databasesSettings=e.databasesSettings!==void 0&&e.databasesSettings!==null?Q.fromPartial(e.databasesSettings):void 0,n.interpreterSettings=e.interpreterSettings!==void 0&&e.interpreterSettings!==null?X.fromPartial(e.interpreterSettings):void 0,n.extensionSettings=e.extensionSettings!==void 0&&e.extensionSettings!==null?Z.fromPartial(e.extensionSettings):void 0,n}};function Dn(){return{baseNode:void 0,connectedNodes:[],messageLoggerSettings:void 0,signalLoggerSettings:void 0}}const ne={encode(e,n=new d){e.baseNode!==void 0&&R.encode(e.baseNode,n.uint32(10).fork()).join();for(const i of e.connectedNodes)n.uint32(18).string(i);return e.messageLoggerSettings!==void 0&&W.encode(e.messageLoggerSettings,n.uint32(26).fork()).join(),e.signalLoggerSettings!==void 0&&$.encode(e.signalLoggerSettings,n.uint32(34).fork()).join(),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=Dn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.baseNode=R.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.connectedNodes.push(i.string());continue}case 3:{if(r!==26)break;t.messageLoggerSettings=W.decode(i,i.uint32());continue}case 4:{if(r!==34)break;t.signalLoggerSettings=$.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{baseNode:u(e.baseNode)?R.fromJSON(e.baseNode):void 0,connectedNodes:globalThis.Array.isArray(e==null?void 0:e.connectedNodes)?e.connectedNodes.map(n=>globalThis.String(n)):[],messageLoggerSettings:u(e.messageLoggerSettings)?W.fromJSON(e.messageLoggerSettings):void 0,signalLoggerSettings:u(e.signalLoggerSettings)?$.fromJSON(e.signalLoggerSettings):void 0}},toJSON(e){var i;const n={};return e.baseNode!==void 0&&(n.baseNode=R.toJSON(e.baseNode)),(i=e.connectedNodes)!=null&&i.length&&(n.connectedNodes=e.connectedNodes),e.messageLoggerSettings!==void 0&&(n.messageLoggerSettings=W.toJSON(e.messageLoggerSettings)),e.signalLoggerSettings!==void 0&&(n.signalLoggerSettings=$.toJSON(e.signalLoggerSettings)),n},create(e){return ne.fromPartial(e??{})},fromPartial(e){var i;const n=Dn();return n.baseNode=e.baseNode!==void 0&&e.baseNode!==null?R.fromPartial(e.baseNode):void 0,n.connectedNodes=((i=e.connectedNodes)==null?void 0:i.map(a=>a))||[],n.messageLoggerSettings=e.messageLoggerSettings!==void 0&&e.messageLoggerSettings!==null?W.fromPartial(e.messageLoggerSettings):void 0,n.signalLoggerSettings=e.signalLoggerSettings!==void 0&&e.signalLoggerSettings!==null?$.fromPartial(e.signalLoggerSettings):void 0,n}};function kn(){return{sources:[],dataProcessors:[],targets:[],language:""}}const Bi={encode(e,n=new d){for(const i of e.sources)j.encode(i,n.uint32(10).fork()).join();for(const i of e.dataProcessors)ee.encode(i,n.uint32(18).fork()).join();for(const i of e.targets)ne.encode(i,n.uint32(26).fork()).join();return e.language!==""&&n.uint32(34).string(e.language),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const t=kn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.sources.push(j.decode(i,i.uint32()));continue}case 2:{if(r!==18)break;t.dataProcessors.push(ee.decode(i,i.uint32()));continue}case 3:{if(r!==26)break;t.targets.push(ne.decode(i,i.uint32()));continue}case 4:{if(r!==34)break;t.language=i.string();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{sources:globalThis.Array.isArray(e==null?void 0:e.sources)?e.sources.map(n=>j.fromJSON(n)):[],dataProcessors:globalThis.Array.isArray(e==null?void 0:e.dataProcessors)?e.dataProcessors.map(n=>ee.fromJSON(n)):[],targets:globalThis.Array.isArray(e==null?void 0:e.targets)?e.targets.map(n=>ne.fromJSON(n)):[],language:u(e.language)?globalThis.String(e.language):""}},toJSON(e){var i,a,t;const n={};return(i=e.sources)!=null&&i.length&&(n.sources=e.sources.map(r=>j.toJSON(r))),(a=e.dataProcessors)!=null&&a.length&&(n.dataProcessors=e.dataProcessors.map(r=>ee.toJSON(r))),(t=e.targets)!=null&&t.length&&(n.targets=e.targets.map(r=>ne.toJSON(r))),e.language!==""&&(n.language=e.language),n},create(e){return Bi.fromPartial(e??{})},fromPartial(e){var i,a,t;const n=kn();return n.sources=((i=e.sources)==null?void 0:i.map(r=>j.fromPartial(r)))||[],n.dataProcessors=((a=e.dataProcessors)==null?void 0:a.map(r=>ee.fromPartial(r)))||[],n.targets=((t=e.targets)==null?void 0:t.map(r=>ne.fromPartial(r)))||[],n.language=e.language??"",n}};function Yi(e){return typeof e=="object"&&e!==null}function u(e){return e!=null}exports.AccessMode=Ti;exports.ApiPreferences=E;exports.BaseNodeProperties=R;exports.BinaryReader=s;exports.BinaryWriter=d;exports.CanBusParamLimits=g;exports.CanBusParams=l;exports.CanBusSpeedInfo=m;exports.CanChannelCap=Vn;exports.CanChannelCapacity=b;exports.CanChannelConfiguration=U;exports.CanFDBusSpeedCombination=h;exports.CanFDBusSpeedInfo=T;exports.CanFrameFlag=si;exports.CanFrameFlags=S;exports.CanMessageFilterSettings=F;exports.CanMessageFilterType=pi;exports.CanMode=Si;exports.Channel=G;exports.ChannelSettings=x;exports.DataProcessorNodeProperties=ee;exports.DatabaseFiles=Ei;exports.DatabasesSettings=Q;exports.DecimalChar=Gi;exports.Device=p;exports.DeviceEvent=wn;exports.DeviceEventArgs=jn;exports.Devices=D;exports.FileConflictAction=bi;exports.Frame=B;exports.FrameDefinition=v;exports.FrameDefinitions=_i;exports.FramePropertyValue=L;exports.FrameReceivedTrigger=Y;exports.Frame_PropertiesEntry=se;exports.Frames=Ni;exports.GetCanChannelBusSpeedsRequest=qn;exports.GetCanChannelBusSpeedsResponse=Zn;exports.GetCanFdBusSpeedsRequest=Wn;exports.GetCanFdBusSpeedsResponse=$n;exports.GetClassicCanBusSpeedsRequest=Yn;exports.GetClassicCanBusSpeedsResponse=Kn;exports.GetDevicesRequest=Qn;exports.GetDevicesResponse=Xn;exports.InterpreterSettings=X;exports.J1939InterpreterSettings=q;exports.LinChannelConfiguration=J;exports.LinFrameFlag=fi;exports.LinFrameFlags=C;exports.LogFileFormat=gi;exports.LogReplaySettings=w;exports.LogReplaySettings_ChannelIdentifiersEntry=oe;exports.MeasurementSetup=Bi;exports.MessageLoggerSettings=W;exports.PeriodicTransmissionSettings=H;exports.Protocols=xn;exports.ScheduleTable=Ai;exports.ScheduleTableEntry=V;exports.Separator=Di;exports.ServiceExtensionSettings=Z;exports.SignalDefinition=I;exports.SignalDefinition_EnumValuesEntry=ue;exports.SignalDefinitions=ui;exports.SignalEncoding=ei;exports.SignalFilterSettings=z;exports.SignalLoggerSettings=$;exports.SignalType=ri;exports.SignalValue=k;exports.SignalValueTrigger=K;exports.SignalValueTriggerOperator=Fi;exports.SourceNodeProperties=j;exports.TargetNodeProperties=ne;exports.TimeReference=ki;exports.TriggerOperator=Pi;exports.TriggerSettings=_;exports.WriteFrame=y;exports.accessModeFromJSON=mi;exports.accessModeToJSON=hi;exports.canChannelCapFromJSON=Un;exports.canChannelCapToJSON=Jn;exports.canFrameFlagFromJSON=oi;exports.canFrameFlagToJSON=di;exports.canMessageFilterTypeFromJSON=Ii;exports.canMessageFilterTypeToJSON=Ci;exports.canModeFromJSON=Ri;exports.canModeToJSON=Oi;exports.decimalCharFromJSON=Oe;exports.decimalCharToJSON=Te;exports.deviceEventFromJSON=Hn;exports.deviceEventToJSON=zn;exports.fileConflictActionFromJSON=Se;exports.fileConflictActionToJSON=Re;exports.linFrameFlagFromJSON=li;exports.linFrameFlagToJSON=ci;exports.logFileFormatFromJSON=Ee;exports.logFileFormatToJSON=Ae;exports.protocolsFromJSON=Ne;exports.protocolsToJSON=_e;exports.separatorFromJSON=me;exports.separatorToJSON=he;exports.signalEncodingFromJSON=ni;exports.signalEncodingToJSON=ii;exports.signalTypeFromJSON=ti;exports.signalTypeToJSON=ai;exports.signalValueTriggerOperatorFromJSON=Mi;exports.signalValueTriggerOperatorToJSON=Li;exports.timeReferenceFromJSON=pe;exports.timeReferenceToJSON=Ie;exports.triggerOperatorFromJSON=ie;exports.triggerOperatorToJSON=re;
|