@kvaser/canking-api 7.1.0-beta.231

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (554) hide show
  1. package/EULA.pdf +0 -0
  2. package/README.md +87 -0
  3. package/REDISTRIBUTABLES.txt +5 -0
  4. package/dist/ElectronAPIFake.js +1 -0
  5. package/dist/ElectronAPIFake.mjs +266 -0
  6. package/dist/controls/CanChannelSelectControl.d.ts +35 -0
  7. package/dist/controls/CanIdentifierControl.d.ts +176 -0
  8. package/dist/controls/CanKingDataProvider.d.ts +116 -0
  9. package/dist/controls/CheckboxControl.d.ts +30 -0
  10. package/dist/controls/ContextMenu.d.ts +44 -0
  11. package/dist/controls/DropdownButton.d.ts +73 -0
  12. package/dist/controls/DropdownPanel.d.ts +41 -0
  13. package/dist/controls/FillBox.d.ts +8 -0
  14. package/dist/controls/FormControlRow.d.ts +30 -0
  15. package/dist/controls/InlineEditor.d.ts +26 -0
  16. package/dist/controls/LocalizedStrings.d.ts +21 -0
  17. package/dist/controls/NumberRangeControl.d.ts +80 -0
  18. package/dist/controls/OneLineButton.d.ts +9 -0
  19. package/dist/controls/RadioControl.d.ts +25 -0
  20. package/dist/controls/RadioGroupControl.d.ts +31 -0
  21. package/dist/controls/SectionControl.d.ts +40 -0
  22. package/dist/controls/SelectControl.d.ts +55 -0
  23. package/dist/controls/SizedBox.d.ts +11 -0
  24. package/dist/controls/TableControl.d.ts +61 -0
  25. package/dist/controls/TabsPanel.d.ts +5 -0
  26. package/dist/controls/TextControl.d.ts +56 -0
  27. package/dist/controls/ToolbarControl.d.ts +143 -0
  28. package/dist/controls/ValidateableTextControl.d.ts +82 -0
  29. package/dist/controls/index.d.ts +103 -0
  30. package/dist/controls.js +1 -0
  31. package/dist/controls.mjs +1714 -0
  32. package/dist/grpc/index.d.ts +7 -0
  33. package/dist/grpc.js +1 -0
  34. package/dist/grpc.mjs +917 -0
  35. package/dist/hooks/index.d.ts +112 -0
  36. package/dist/hooks.js +1 -0
  37. package/dist/hooks.mjs +28 -0
  38. package/dist/icons/index.d.ts +121 -0
  39. package/dist/icons.js +1 -0
  40. package/dist/icons.mjs +1237 -0
  41. package/dist/index.d.ts +6 -0
  42. package/dist/index.js +1 -0
  43. package/dist/index.mjs +596 -0
  44. package/dist/ipc/index.d.ts +160 -0
  45. package/dist/ipc.js +1 -0
  46. package/dist/ipc.mjs +123 -0
  47. package/dist/measurement_settings.js +1 -0
  48. package/dist/measurement_settings.mjs +4132 -0
  49. package/dist/models/DataBuffer.d.ts +100 -0
  50. package/dist/models/ElectronAPIFake.d.ts +13 -0
  51. package/dist/models/Point.d.ts +30 -0
  52. package/dist/models/index.d.ts +95 -0
  53. package/dist/models.js +1 -0
  54. package/dist/models.mjs +448 -0
  55. package/dist/protos/app_params.d.ts +208 -0
  56. package/dist/protos/app_service.d.ts +354 -0
  57. package/dist/protos/common_params.d.ts +33 -0
  58. package/dist/protos/device_params.d.ts +271 -0
  59. package/dist/protos/device_service.d.ts +154 -0
  60. package/dist/protos/frame_params.d.ts +189 -0
  61. package/dist/protos/google/protobuf/empty.d.ts +35 -0
  62. package/dist/protos/measurement_params.d.ts +308 -0
  63. package/dist/protos/measurement_service.d.ts +1333 -0
  64. package/dist/protos/measurement_settings.d.ts +453 -0
  65. package/dist/protos/signal_params.d.ts +72 -0
  66. package/dist/protos/status_params.d.ts +118 -0
  67. package/dist/status_params.js +1 -0
  68. package/dist/status_params.mjs +5045 -0
  69. package/doc/.nojekyll +1 -0
  70. package/doc/assets/highlight.css +120 -0
  71. package/doc/assets/icons.js +18 -0
  72. package/doc/assets/icons.svg +1 -0
  73. package/doc/assets/main.js +60 -0
  74. package/doc/assets/material-style.css +247 -0
  75. package/doc/assets/navigation.js +1 -0
  76. package/doc/assets/search.js +1 -0
  77. package/doc/assets/style.css +1493 -0
  78. package/doc/classes/controls.LocalizedStrings.html +177 -0
  79. package/doc/classes/models.DataBuffer.html +205 -0
  80. package/doc/classes/models.DataBufferView.html +193 -0
  81. package/doc/classes/models.Point.html +187 -0
  82. package/doc/enums/models.AccessMode.html +188 -0
  83. package/doc/enums/models.AppEvent.html +179 -0
  84. package/doc/enums/models.CanChannelCap.html +217 -0
  85. package/doc/enums/models.CanFrameFlag.html +200 -0
  86. package/doc/enums/models.CanMode.html +180 -0
  87. package/doc/enums/models.DecimalChar.html +178 -0
  88. package/doc/enums/models.DeviceEvent.html +179 -0
  89. package/doc/enums/models.FileConflictAction.html +180 -0
  90. package/doc/enums/models.LinFrameFlag.html +185 -0
  91. package/doc/enums/models.LogFileFormat.html +221 -0
  92. package/doc/enums/models.LogLevel.html +195 -0
  93. package/doc/enums/models.LogReplayState.html +179 -0
  94. package/doc/enums/models.MeasurementEvent.html +185 -0
  95. package/doc/enums/models.MessageLoggerState.html +180 -0
  96. package/doc/enums/models.Protocols.html +182 -0
  97. package/doc/enums/models.Separator.html +178 -0
  98. package/doc/enums/models.SignalEncoding.html +178 -0
  99. package/doc/enums/models.SignalType.html +185 -0
  100. package/doc/enums/models.SignalValueTriggerOperator.html +186 -0
  101. package/doc/enums/models.StatusLevel.html +180 -0
  102. package/doc/enums/models.TimeReference.html +178 -0
  103. package/doc/enums/models.TriggerOperator.html +179 -0
  104. package/doc/functions/controls.CanChannelSelectControl.html +177 -0
  105. package/doc/functions/controls.CanIdentifierControl.html +177 -0
  106. package/doc/functions/controls.CanIdentifierFrameControl.html +177 -0
  107. package/doc/functions/controls.CanIdentifierGeneratorControl.html +177 -0
  108. package/doc/functions/controls.CanIdentifierGeneratorSettingsControl.html +178 -0
  109. package/doc/functions/controls.CanKingDataProvider.html +182 -0
  110. package/doc/functions/controls.CheckboxControl.html +177 -0
  111. package/doc/functions/controls.ContextMenu.html +177 -0
  112. package/doc/functions/controls.DropdownButton.html +177 -0
  113. package/doc/functions/controls.DropdownButtonTextItems.html +177 -0
  114. package/doc/functions/controls.DropdownPanel.html +177 -0
  115. package/doc/functions/controls.FillBox.html +206 -0
  116. package/doc/functions/controls.FormControlRow.html +177 -0
  117. package/doc/functions/controls.InlineEditor.html +177 -0
  118. package/doc/functions/controls.NumberRangeControl.html +177 -0
  119. package/doc/functions/controls.OneLineButton.html +205 -0
  120. package/doc/functions/controls.RadioControl.html +177 -0
  121. package/doc/functions/controls.RadioGroupControl.html +177 -0
  122. package/doc/functions/controls.SectionControl.html +177 -0
  123. package/doc/functions/controls.SelectControl.html +177 -0
  124. package/doc/functions/controls.SizedBox.html +206 -0
  125. package/doc/functions/controls.TableControl.html +177 -0
  126. package/doc/functions/controls.TabsPanel.html +205 -0
  127. package/doc/functions/controls.TextControl.html +177 -0
  128. package/doc/functions/controls.ToolbarControl.html +177 -0
  129. package/doc/functions/controls.ValidateableTextControl.html +177 -0
  130. package/doc/functions/hooks.useDevices.html +176 -0
  131. package/doc/functions/hooks.useIsOnline.html +176 -0
  132. package/doc/functions/hooks.useLanguage.html +176 -0
  133. package/doc/functions/hooks.useLocalizedStrings.html +176 -0
  134. package/doc/functions/hooks.useLogMessages.html +176 -0
  135. package/doc/functions/hooks.useMaxDataBytes.html +175 -0
  136. package/doc/functions/hooks.useMeasurementSetup.html +176 -0
  137. package/doc/functions/hooks.useMeasurementStatus.html +176 -0
  138. package/doc/functions/hooks.useMessageLogFileFormats.html +175 -0
  139. package/doc/functions/hooks.useNewMeasurementData.html +178 -0
  140. package/doc/functions/hooks.useNodeStatus.html +176 -0
  141. package/doc/functions/hooks.useNumericRadix.html +176 -0
  142. package/doc/functions/hooks.useOnlineStatus.html +176 -0
  143. package/doc/functions/hooks.useOverallStatusLevel.html +176 -0
  144. package/doc/functions/hooks.useProjectData.html +178 -0
  145. package/doc/functions/hooks.useRecentProjectFiles.html +175 -0
  146. package/doc/functions/hooks.useRunningPeriodicTransmissions.html +176 -0
  147. package/doc/functions/hooks.useSessionData.html +178 -0
  148. package/doc/functions/hooks.useUserSettings.html +176 -0
  149. package/doc/functions/hooks.useWorkspacePaneWithId.html +175 -0
  150. package/doc/functions/icons.AddIcon.html +175 -0
  151. package/doc/functions/icons.ArrowDownIcon.html +175 -0
  152. package/doc/functions/icons.ArrowLeftIcon.html +175 -0
  153. package/doc/functions/icons.ArrowRightIcon.html +175 -0
  154. package/doc/functions/icons.ArrowUpIcon.html +175 -0
  155. package/doc/functions/icons.BusIsOffIcon.html +175 -0
  156. package/doc/functions/icons.BusIsOnIcon.html +175 -0
  157. package/doc/functions/icons.CloseIcon.html +175 -0
  158. package/doc/functions/icons.CopyIcon.html +175 -0
  159. package/doc/functions/icons.DarkModeIcon.html +175 -0
  160. package/doc/functions/icons.DeleteIcon.html +175 -0
  161. package/doc/functions/icons.DisableIcon.html +175 -0
  162. package/doc/functions/icons.EditIcon.html +175 -0
  163. package/doc/functions/icons.FilterIcon.html +175 -0
  164. package/doc/functions/icons.FixedPositionIcon.html +175 -0
  165. package/doc/functions/icons.LeaveFullScreenIcon.html +175 -0
  166. package/doc/functions/icons.LightModeIcon.html +175 -0
  167. package/doc/functions/icons.LineArrowDownIcon.html +175 -0
  168. package/doc/functions/icons.LineArrowUpIcon.html +175 -0
  169. package/doc/functions/icons.MaximizeWindowIcon.html +175 -0
  170. package/doc/functions/icons.MeasurementSetupIcon.html +175 -0
  171. package/doc/functions/icons.MoreHorizIcon.html +175 -0
  172. package/doc/functions/icons.MoreVertIcon.html +175 -0
  173. package/doc/functions/icons.NewIcon.html +175 -0
  174. package/doc/functions/icons.OpenExternallyIcon.html +175 -0
  175. package/doc/functions/icons.OpenIcon.html +175 -0
  176. package/doc/functions/icons.PauseIcon.html +175 -0
  177. package/doc/functions/icons.PlayIcon.html +175 -0
  178. package/doc/functions/icons.PlaySolidIcon.html +175 -0
  179. package/doc/functions/icons.SaveIcon.html +175 -0
  180. package/doc/functions/icons.SelectAllIcon.html +175 -0
  181. package/doc/functions/icons.ServiceIconActive.html +175 -0
  182. package/doc/functions/icons.ServiceIconInactive.html +175 -0
  183. package/doc/functions/icons.SettingsIcon.html +175 -0
  184. package/doc/functions/icons.StopIcon.html +175 -0
  185. package/doc/functions/icons.StopSolidIcon.html +175 -0
  186. package/doc/functions/icons.ToolsPanelHiddenIcon.html +175 -0
  187. package/doc/functions/icons.ToolsPanelVisibleIcon.html +175 -0
  188. package/doc/functions/icons.UnmaximizeWindowIcon.html +175 -0
  189. package/doc/functions/icons.WorkspacesIcon.html +175 -0
  190. package/doc/functions/ipc.addDataProcessor.html +178 -0
  191. package/doc/functions/ipc.addSource.html +176 -0
  192. package/doc/functions/ipc.addTarget.html +176 -0
  193. package/doc/functions/ipc.connectNodes.html +177 -0
  194. package/doc/functions/ipc.deleteDataProcessor.html +176 -0
  195. package/doc/functions/ipc.deleteSource.html +176 -0
  196. package/doc/functions/ipc.deleteTarget.html +176 -0
  197. package/doc/functions/ipc.disableNode.html +176 -0
  198. package/doc/functions/ipc.disconnectNodes.html +177 -0
  199. package/doc/functions/ipc.enableNode.html +176 -0
  200. package/doc/functions/ipc.getFrameDefinitions.html +178 -0
  201. package/doc/functions/ipc.getLogger.html +177 -0
  202. package/doc/functions/ipc.getMessageLogFileFormats.html +176 -0
  203. package/doc/functions/ipc.sendCanMessage.html +179 -0
  204. package/doc/functions/ipc.sendMessage.html +177 -0
  205. package/doc/functions/ipc.showMessageBox.html +177 -0
  206. package/doc/functions/ipc.showQuestionBox.html +183 -0
  207. package/doc/functions/ipc.startLogReplay.html +176 -0
  208. package/doc/functions/ipc.startMeasurement.html +175 -0
  209. package/doc/functions/ipc.startPeriodicTransmission.html +177 -0
  210. package/doc/functions/ipc.stopLogReplay.html +176 -0
  211. package/doc/functions/ipc.stopMeasurement.html +175 -0
  212. package/doc/functions/ipc.stopPeriodicTransmission.html +176 -0
  213. package/doc/functions/ipc.updateDataProcessor.html +176 -0
  214. package/doc/functions/ipc.updateSource.html +176 -0
  215. package/doc/functions/ipc.updateTarget.html +176 -0
  216. package/doc/functions/models.accessModeFromJSON.html +174 -0
  217. package/doc/functions/models.accessModeToJSON.html +174 -0
  218. package/doc/functions/models.appEventFromJSON.html +174 -0
  219. package/doc/functions/models.appEventToJSON.html +174 -0
  220. package/doc/functions/models.canChannelCapFromJSON.html +174 -0
  221. package/doc/functions/models.canChannelCapToJSON.html +174 -0
  222. package/doc/functions/models.canFrameFlagFromJSON.html +174 -0
  223. package/doc/functions/models.canFrameFlagToJSON.html +174 -0
  224. package/doc/functions/models.canModeFromJSON.html +174 -0
  225. package/doc/functions/models.canModeToJSON.html +174 -0
  226. package/doc/functions/models.createElectronApiFake.html +177 -0
  227. package/doc/functions/models.decimalCharFromJSON.html +174 -0
  228. package/doc/functions/models.decimalCharToJSON.html +174 -0
  229. package/doc/functions/models.decimalToFixed.html +174 -0
  230. package/doc/functions/models.decimalToHex.html +174 -0
  231. package/doc/functions/models.deviceEventFromJSON.html +174 -0
  232. package/doc/functions/models.deviceEventToJSON.html +174 -0
  233. package/doc/functions/models.fileConflictActionFromJSON.html +174 -0
  234. package/doc/functions/models.fileConflictActionToJSON.html +174 -0
  235. package/doc/functions/models.linFrameFlagFromJSON.html +174 -0
  236. package/doc/functions/models.linFrameFlagToJSON.html +174 -0
  237. package/doc/functions/models.logFileFormatFromJSON.html +174 -0
  238. package/doc/functions/models.logFileFormatToJSON.html +174 -0
  239. package/doc/functions/models.logLevelFromJSON.html +174 -0
  240. package/doc/functions/models.logLevelToJSON.html +174 -0
  241. package/doc/functions/models.logReplayStateFromJSON.html +174 -0
  242. package/doc/functions/models.logReplayStateToJSON.html +174 -0
  243. package/doc/functions/models.longToNumber.html +174 -0
  244. package/doc/functions/models.measurementEventFromJSON.html +174 -0
  245. package/doc/functions/models.measurementEventToJSON.html +174 -0
  246. package/doc/functions/models.messageLoggerStateFromJSON.html +174 -0
  247. package/doc/functions/models.messageLoggerStateToJSON.html +174 -0
  248. package/doc/functions/models.protocolsFromJSON.html +174 -0
  249. package/doc/functions/models.protocolsToJSON.html +174 -0
  250. package/doc/functions/models.separatorFromJSON.html +174 -0
  251. package/doc/functions/models.separatorToJSON.html +174 -0
  252. package/doc/functions/models.signalEncodingFromJSON.html +174 -0
  253. package/doc/functions/models.signalEncodingToJSON.html +174 -0
  254. package/doc/functions/models.signalTypeFromJSON.html +174 -0
  255. package/doc/functions/models.signalTypeToJSON.html +174 -0
  256. package/doc/functions/models.signalValueTriggerOperatorFromJSON.html +174 -0
  257. package/doc/functions/models.signalValueTriggerOperatorToJSON.html +174 -0
  258. package/doc/functions/models.statusLevelFromJSON.html +174 -0
  259. package/doc/functions/models.statusLevelToJSON.html +174 -0
  260. package/doc/functions/models.timeReferenceFromJSON.html +174 -0
  261. package/doc/functions/models.timeReferenceToJSON.html +174 -0
  262. package/doc/functions/models.triggerOperatorFromJSON.html +174 -0
  263. package/doc/functions/models.triggerOperatorToJSON.html +174 -0
  264. package/doc/hierarchy.html +174 -0
  265. package/doc/index.html +244 -0
  266. package/doc/interfaces/controls.ButtonGroupProps.html +183 -0
  267. package/doc/interfaces/controls.ButtonProps.html +195 -0
  268. package/doc/interfaces/controls.CanChannelSelectControlProps.html +194 -0
  269. package/doc/interfaces/controls.CanIdentifierControlProps.html +195 -0
  270. package/doc/interfaces/controls.CanIdentifierFrameControlProps.html +190 -0
  271. package/doc/interfaces/controls.CanIdentifierGeneratorControlProps.html +208 -0
  272. package/doc/interfaces/controls.CanIdentifierGeneratorSettingsControlProps.html +194 -0
  273. package/doc/interfaces/controls.CheckboxControlProps.html +190 -0
  274. package/doc/interfaces/controls.ContextMenuProps.html +182 -0
  275. package/doc/interfaces/controls.DropdownButtonChildrenProps.html +177 -0
  276. package/doc/interfaces/controls.DropdownButtonProps.html +193 -0
  277. package/doc/interfaces/controls.DropdownButtonTextItemsProps.html +183 -0
  278. package/doc/interfaces/controls.DropdownPanelProps.html +193 -0
  279. package/doc/interfaces/controls.FormControlRowProps.html +181 -0
  280. package/doc/interfaces/controls.ILocalizedStrings.html +176 -0
  281. package/doc/interfaces/controls.InlineEditorProps.html +186 -0
  282. package/doc/interfaces/controls.LabelProps.html +179 -0
  283. package/doc/interfaces/controls.NumberRangeControlProps.html +225 -0
  284. package/doc/interfaces/controls.RadioControlProps.html +187 -0
  285. package/doc/interfaces/controls.RadioGroupControlProps.html +182 -0
  286. package/doc/interfaces/controls.SectionControlProps.html +190 -0
  287. package/doc/interfaces/controls.SelectControlProps.html +205 -0
  288. package/doc/interfaces/controls.TableColumn.html +185 -0
  289. package/doc/interfaces/controls.TableControlProps.html +197 -0
  290. package/doc/interfaces/controls.TextControlProps.html +214 -0
  291. package/doc/interfaces/controls.ToggleButtonGroupProps.html +190 -0
  292. package/doc/interfaces/controls.ToggleButtonProps.html +187 -0
  293. package/doc/interfaces/controls.ToolbarControlProps.html +191 -0
  294. package/doc/interfaces/controls.ValidateableTextControlProps.html +233 -0
  295. package/doc/interfaces/controls.toolbarItem.html +185 -0
  296. package/doc/interfaces/ipc.ILogger.html +181 -0
  297. package/doc/interfaces/models.AboutInformation.html +181 -0
  298. package/doc/interfaces/models.ActivateLicenseRequest.html +181 -0
  299. package/doc/interfaces/models.AddAllConnectedCanChannelsRequest.html +177 -0
  300. package/doc/interfaces/models.AddAllConnectedLinChannelsRequest.html +177 -0
  301. package/doc/interfaces/models.AddOrUpdateDataProcessorRequest.html +185 -0
  302. package/doc/interfaces/models.AddOrUpdateSourceRequest.html +181 -0
  303. package/doc/interfaces/models.AddOrUpdateTargetRequest.html +181 -0
  304. package/doc/interfaces/models.ApiPreferences.html +183 -0
  305. package/doc/interfaces/models.AppEventArgs.html +179 -0
  306. package/doc/interfaces/models.BaseNodeProperties.html +181 -0
  307. package/doc/interfaces/models.BusStatus.html +190 -0
  308. package/doc/interfaces/models.CanBusParamLimits.html +180 -0
  309. package/doc/interfaces/models.CanBusParams.html +197 -0
  310. package/doc/interfaces/models.CanBusSpeed.html +187 -0
  311. package/doc/interfaces/models.CanBusSpeedInfo.html +193 -0
  312. package/doc/interfaces/models.CanChannelCapacity.html +180 -0
  313. package/doc/interfaces/models.CanChannelConfiguration.html +185 -0
  314. package/doc/interfaces/models.CanFDBusSpeedCombination.html +177 -0
  315. package/doc/interfaces/models.CanFDBusSpeedInfo.html +191 -0
  316. package/doc/interfaces/models.CanFrameFlags.html +177 -0
  317. package/doc/interfaces/models.CanMessageFilterSettings.html +178 -0
  318. package/doc/interfaces/models.Channel.html +180 -0
  319. package/doc/interfaces/models.ChannelSettings.html +193 -0
  320. package/doc/interfaces/models.ClearLinMessageRequest.html +180 -0
  321. package/doc/interfaces/models.ConnectNodesRequest.html +178 -0
  322. package/doc/interfaces/models.DataProcessingStatus.html +179 -0
  323. package/doc/interfaces/models.DataProcessorNodeProperties.html +181 -0
  324. package/doc/interfaces/models.DatabasesSettings.html +176 -0
  325. package/doc/interfaces/models.Device.html +182 -0
  326. package/doc/interfaces/models.DeviceEventArgs.html +177 -0
  327. package/doc/interfaces/models.Devices.html +175 -0
  328. package/doc/interfaces/models.DisconnectNodesRequest.html +178 -0
  329. package/doc/interfaces/models.Empty.html +182 -0
  330. package/doc/interfaces/models.ErrorStatus.html +177 -0
  331. package/doc/interfaces/models.Frame.html +203 -0
  332. package/doc/interfaces/models.FrameDefinition.html +185 -0
  333. package/doc/interfaces/models.FrameDefinitions.html +175 -0
  334. package/doc/interfaces/models.FramePropertyValue.html +177 -0
  335. package/doc/interfaces/models.FrameReceivedTrigger.html +179 -0
  336. package/doc/interfaces/models.Frame_PropertiesEntry.html +176 -0
  337. package/doc/interfaces/models.Frames.html +175 -0
  338. package/doc/interfaces/models.GetCanChannelBusSpeedsRequest.html +177 -0
  339. package/doc/interfaces/models.GetCanChannelBusSpeedsResponse.html +179 -0
  340. package/doc/interfaces/models.GetCanFdBusSpeedsRequest.html +179 -0
  341. package/doc/interfaces/models.GetCanFdBusSpeedsResponse.html +177 -0
  342. package/doc/interfaces/models.GetChannelsFromLogFileRequest.html +178 -0
  343. package/doc/interfaces/models.GetChannelsFromLogFileResponse.html +177 -0
  344. package/doc/interfaces/models.GetClassicCanBusSpeedsRequest.html +178 -0
  345. package/doc/interfaces/models.GetClassicCanBusSpeedsResponse.html +177 -0
  346. package/doc/interfaces/models.GetDataProcessorResponse.html +176 -0
  347. package/doc/interfaces/models.GetDevicesRequest.html +177 -0
  348. package/doc/interfaces/models.GetDevicesResponse.html +176 -0
  349. package/doc/interfaces/models.GetFrameDefinitionsFromDatabaseFilesRequest.html +178 -0
  350. package/doc/interfaces/models.GetLicensesResponse.html +177 -0
  351. package/doc/interfaces/models.GetLogFileFormatsRequest.html +180 -0
  352. package/doc/interfaces/models.GetLogFileFormatsResponse.html +183 -0
  353. package/doc/interfaces/models.GetLogLevelResponse.html +177 -0
  354. package/doc/interfaces/models.GetScheduleTablesFromDatabaseFilesRequest.html +178 -0
  355. package/doc/interfaces/models.GetScheduleTablesFromDatabaseFilesResponse.html +177 -0
  356. package/doc/interfaces/models.GetServiceExtensionInfoRequest.html +181 -0
  357. package/doc/interfaces/models.GetServiceExtensionInfoResponse.html +187 -0
  358. package/doc/interfaces/models.GetSignalDataFromMessageDataRequest.html +180 -0
  359. package/doc/interfaces/models.GetSignalDataFromMessageDataResponse.html +177 -0
  360. package/doc/interfaces/models.GetSourceResponse.html +176 -0
  361. package/doc/interfaces/models.GetTargetResponse.html +176 -0
  362. package/doc/interfaces/models.ILogFileFormat.html +179 -0
  363. package/doc/interfaces/models.IProject.html +179 -0
  364. package/doc/interfaces/models.IUserSettings.html +187 -0
  365. package/doc/interfaces/models.IWorkspaceComponentPaneData.html +177 -0
  366. package/doc/interfaces/models.IWorkspaceContainerPaneData.html +178 -0
  367. package/doc/interfaces/models.IWorkspaceData.html +178 -0
  368. package/doc/interfaces/models.IWorkspacePaneData.html +178 -0
  369. package/doc/interfaces/models.IdentifierRequest.html +178 -0
  370. package/doc/interfaces/models.IdentifiersRequest.html +178 -0
  371. package/doc/interfaces/models.InstallServiceExtensionRequest.html +181 -0
  372. package/doc/interfaces/models.InterpreterSettings.html +177 -0
  373. package/doc/interfaces/models.J1939InterpreterSettings.html +175 -0
  374. package/doc/interfaces/models.LicenseInformation.html +191 -0
  375. package/doc/interfaces/models.Licenses.html +177 -0
  376. package/doc/interfaces/models.LinChannelConfiguration.html +185 -0
  377. package/doc/interfaces/models.LinFrameFlags.html +177 -0
  378. package/doc/interfaces/models.LogMessage.html +185 -0
  379. package/doc/interfaces/models.LogMessages.html +177 -0
  380. package/doc/interfaces/models.LogReplaySettings.html +199 -0
  381. package/doc/interfaces/models.LogReplaySettings_ChannelIdentifiersEntry.html +176 -0
  382. package/doc/interfaces/models.LogReplayStatus.html +176 -0
  383. package/doc/interfaces/models.MeasurementEventArgs.html +179 -0
  384. package/doc/interfaces/models.MeasurementSetup.html +179 -0
  385. package/doc/interfaces/models.MessageLoggerSettings.html +213 -0
  386. package/doc/interfaces/models.MessageLoggerStatus.html +176 -0
  387. package/doc/interfaces/models.NodeStatus.html +191 -0
  388. package/doc/interfaces/models.NodeStatuses.html +176 -0
  389. package/doc/interfaces/models.OnlineStatus.html +176 -0
  390. package/doc/interfaces/models.PeriodicTransmissionSettings.html +209 -0
  391. package/doc/interfaces/models.RequestLinMessageRequest.html +180 -0
  392. package/doc/interfaces/models.ScheduleTable.html +181 -0
  393. package/doc/interfaces/models.ScheduleTableEntry.html +179 -0
  394. package/doc/interfaces/models.SendLinWakeupFrameRequest.html +182 -0
  395. package/doc/interfaces/models.SendMessageRequest.html +178 -0
  396. package/doc/interfaces/models.ServiceExtensionSettings.html +177 -0
  397. package/doc/interfaces/models.SetLogLevelRequest.html +179 -0
  398. package/doc/interfaces/models.SetMeasurementSetupRequest.html +177 -0
  399. package/doc/interfaces/models.SetSignalDataToMessageDataRequest.html +182 -0
  400. package/doc/interfaces/models.SetSignalDataToMessageDataResponse.html +180 -0
  401. package/doc/interfaces/models.SignalDefinition.html +188 -0
  402. package/doc/interfaces/models.SignalDefinition_EnumValuesEntry.html +176 -0
  403. package/doc/interfaces/models.SignalDefinitions.html +175 -0
  404. package/doc/interfaces/models.SignalValue.html +180 -0
  405. package/doc/interfaces/models.SignalValueTrigger.html +189 -0
  406. package/doc/interfaces/models.SourceNodeProperties.html +180 -0
  407. package/doc/interfaces/models.StartPeriodicTransmissionRequest.html +178 -0
  408. package/doc/interfaces/models.StartPeriodicTransmissionResponse.html +176 -0
  409. package/doc/interfaces/models.TargetNodeProperties.html +178 -0
  410. package/doc/interfaces/models.TriggerSettings.html +181 -0
  411. package/doc/interfaces/models.UninstallServiceExtensionRequest.html +179 -0
  412. package/doc/interfaces/models.UpdateLinMessageRequest.html +181 -0
  413. package/doc/interfaces/models.WriteFrame.html +183 -0
  414. package/doc/modules/controls.html +242 -0
  415. package/doc/modules/hooks.html +201 -0
  416. package/doc/modules/icons.html +216 -0
  417. package/doc/modules/ipc.html +202 -0
  418. package/doc/modules/models.html +478 -0
  419. package/doc/modules.html +179 -0
  420. package/doc/types/controls.ContextMenuOption.html +179 -0
  421. package/doc/types/controls.SelectOption.html +177 -0
  422. package/doc/types/controls.StringsMap.html +175 -0
  423. package/doc/types/controls.canIdentifierType.html +175 -0
  424. package/doc/types/models.IReadOnlyDataBuffer.html +174 -0
  425. package/doc/types/models.themes.html +174 -0
  426. package/doc/variables/models.AboutInformation-1.html +174 -0
  427. package/doc/variables/models.ActivateLicenseRequest-1.html +174 -0
  428. package/doc/variables/models.AddAllConnectedCanChannelsRequest-1.html +174 -0
  429. package/doc/variables/models.AddAllConnectedLinChannelsRequest-1.html +174 -0
  430. package/doc/variables/models.AddOrUpdateDataProcessorRequest-1.html +174 -0
  431. package/doc/variables/models.AddOrUpdateSourceRequest-1.html +174 -0
  432. package/doc/variables/models.AddOrUpdateTargetRequest-1.html +174 -0
  433. package/doc/variables/models.ApiPreferences-1.html +174 -0
  434. package/doc/variables/models.AppEventArgs-1.html +174 -0
  435. package/doc/variables/models.BaseNodeProperties-1.html +174 -0
  436. package/doc/variables/models.BusStatus-1.html +174 -0
  437. package/doc/variables/models.CanBusParamLimits-1.html +174 -0
  438. package/doc/variables/models.CanBusParams-1.html +174 -0
  439. package/doc/variables/models.CanBusSpeed-1.html +174 -0
  440. package/doc/variables/models.CanBusSpeedInfo-1.html +174 -0
  441. package/doc/variables/models.CanChannelCapacity-1.html +174 -0
  442. package/doc/variables/models.CanChannelConfiguration-1.html +174 -0
  443. package/doc/variables/models.CanFDBusSpeedCombination-1.html +174 -0
  444. package/doc/variables/models.CanFDBusSpeedInfo-1.html +174 -0
  445. package/doc/variables/models.CanFrameFlags-1.html +174 -0
  446. package/doc/variables/models.CanMessageFilterSettings-1.html +174 -0
  447. package/doc/variables/models.Channel-1.html +174 -0
  448. package/doc/variables/models.ChannelSettings-1.html +174 -0
  449. package/doc/variables/models.ClearLinMessageRequest-1.html +174 -0
  450. package/doc/variables/models.ConnectNodesRequest-1.html +174 -0
  451. package/doc/variables/models.DataProcessingStatus-1.html +174 -0
  452. package/doc/variables/models.DataProcessorNodeProperties-1.html +174 -0
  453. package/doc/variables/models.DatabasesSettings-1.html +174 -0
  454. package/doc/variables/models.Device-1.html +174 -0
  455. package/doc/variables/models.DeviceEventArgs-1.html +174 -0
  456. package/doc/variables/models.Devices-1.html +174 -0
  457. package/doc/variables/models.DisconnectNodesRequest-1.html +174 -0
  458. package/doc/variables/models.Empty-1.html +174 -0
  459. package/doc/variables/models.ErrorStatus-1.html +174 -0
  460. package/doc/variables/models.Frame-1.html +174 -0
  461. package/doc/variables/models.FrameDefinition-1.html +174 -0
  462. package/doc/variables/models.FrameDefinitions-1.html +174 -0
  463. package/doc/variables/models.FramePropertyValue-1.html +174 -0
  464. package/doc/variables/models.FrameReceivedTrigger-1.html +174 -0
  465. package/doc/variables/models.Frame_PropertiesEntry-1.html +174 -0
  466. package/doc/variables/models.Frames-1.html +174 -0
  467. package/doc/variables/models.GetCanChannelBusSpeedsRequest-1.html +174 -0
  468. package/doc/variables/models.GetCanChannelBusSpeedsResponse-1.html +174 -0
  469. package/doc/variables/models.GetCanFdBusSpeedsRequest-1.html +174 -0
  470. package/doc/variables/models.GetCanFdBusSpeedsResponse-1.html +174 -0
  471. package/doc/variables/models.GetChannelsFromLogFileRequest-1.html +174 -0
  472. package/doc/variables/models.GetChannelsFromLogFileResponse-1.html +174 -0
  473. package/doc/variables/models.GetClassicCanBusSpeedsRequest-1.html +174 -0
  474. package/doc/variables/models.GetClassicCanBusSpeedsResponse-1.html +174 -0
  475. package/doc/variables/models.GetDataProcessorResponse-1.html +174 -0
  476. package/doc/variables/models.GetDevicesRequest-1.html +174 -0
  477. package/doc/variables/models.GetDevicesResponse-1.html +174 -0
  478. package/doc/variables/models.GetFrameDefinitionsFromDatabaseFilesRequest-1.html +174 -0
  479. package/doc/variables/models.GetLicensesResponse-1.html +174 -0
  480. package/doc/variables/models.GetLogFileFormatsRequest-1.html +174 -0
  481. package/doc/variables/models.GetLogFileFormatsResponse-1.html +174 -0
  482. package/doc/variables/models.GetLogLevelResponse-1.html +174 -0
  483. package/doc/variables/models.GetScheduleTablesFromDatabaseFilesRequest-1.html +174 -0
  484. package/doc/variables/models.GetScheduleTablesFromDatabaseFilesResponse-1.html +174 -0
  485. package/doc/variables/models.GetServiceExtensionInfoRequest-1.html +174 -0
  486. package/doc/variables/models.GetServiceExtensionInfoResponse-1.html +174 -0
  487. package/doc/variables/models.GetSignalDataFromMessageDataRequest-1.html +174 -0
  488. package/doc/variables/models.GetSignalDataFromMessageDataResponse-1.html +174 -0
  489. package/doc/variables/models.GetSourceResponse-1.html +174 -0
  490. package/doc/variables/models.GetTargetResponse-1.html +174 -0
  491. package/doc/variables/models.IdentifierRequest-1.html +174 -0
  492. package/doc/variables/models.IdentifiersRequest-1.html +174 -0
  493. package/doc/variables/models.InstallServiceExtensionRequest-1.html +174 -0
  494. package/doc/variables/models.InterpreterSettings-1.html +174 -0
  495. package/doc/variables/models.J1939InterpreterSettings-1.html +174 -0
  496. package/doc/variables/models.LicenseInformation-1.html +174 -0
  497. package/doc/variables/models.Licenses-1.html +174 -0
  498. package/doc/variables/models.LinChannelConfiguration-1.html +174 -0
  499. package/doc/variables/models.LinFrameFlags-1.html +174 -0
  500. package/doc/variables/models.LogMessage-1.html +174 -0
  501. package/doc/variables/models.LogMessages-1.html +174 -0
  502. package/doc/variables/models.LogReplaySettings-1.html +174 -0
  503. package/doc/variables/models.LogReplaySettings_ChannelIdentifiersEntry-1.html +174 -0
  504. package/doc/variables/models.LogReplayStatus-1.html +174 -0
  505. package/doc/variables/models.MeasurementEventArgs-1.html +174 -0
  506. package/doc/variables/models.MeasurementSetup-1.html +174 -0
  507. package/doc/variables/models.MessageLoggerSettings-1.html +174 -0
  508. package/doc/variables/models.MessageLoggerStatus-1.html +174 -0
  509. package/doc/variables/models.NodeStatus-1.html +174 -0
  510. package/doc/variables/models.NodeStatuses-1.html +174 -0
  511. package/doc/variables/models.OnlineStatus-1.html +174 -0
  512. package/doc/variables/models.PeriodicTransmissionSettings-1.html +174 -0
  513. package/doc/variables/models.RequestLinMessageRequest-1.html +174 -0
  514. package/doc/variables/models.ScheduleTable-1.html +174 -0
  515. package/doc/variables/models.ScheduleTableEntry-1.html +174 -0
  516. package/doc/variables/models.SendLinWakeupFrameRequest-1.html +174 -0
  517. package/doc/variables/models.SendMessageRequest-1.html +174 -0
  518. package/doc/variables/models.ServiceExtensionSettings-1.html +174 -0
  519. package/doc/variables/models.SetLogLevelRequest-1.html +174 -0
  520. package/doc/variables/models.SetMeasurementSetupRequest-1.html +174 -0
  521. package/doc/variables/models.SetSignalDataToMessageDataRequest-1.html +174 -0
  522. package/doc/variables/models.SetSignalDataToMessageDataResponse-1.html +174 -0
  523. package/doc/variables/models.SignalDefinition-1.html +174 -0
  524. package/doc/variables/models.SignalDefinition_EnumValuesEntry-1.html +174 -0
  525. package/doc/variables/models.SignalDefinitions-1.html +174 -0
  526. package/doc/variables/models.SignalValue-1.html +174 -0
  527. package/doc/variables/models.SignalValueTrigger-1.html +174 -0
  528. package/doc/variables/models.SourceNodeProperties-1.html +174 -0
  529. package/doc/variables/models.StartPeriodicTransmissionRequest-1.html +174 -0
  530. package/doc/variables/models.StartPeriodicTransmissionResponse-1.html +174 -0
  531. package/doc/variables/models.TargetNodeProperties-1.html +174 -0
  532. package/doc/variables/models.TriggerSettings-1.html +174 -0
  533. package/doc/variables/models.UninstallServiceExtensionRequest-1.html +174 -0
  534. package/doc/variables/models.UpdateLinMessageRequest-1.html +174 -0
  535. package/doc/variables/models.WriteFrame-1.html +174 -0
  536. package/doc/variables/models.defaultUserSettings.html +175 -0
  537. package/package.json +129 -0
  538. package/scripts/createCanKingExtension.js +403 -0
  539. package/scripts/index.js +39 -0
  540. package/scripts/template/_.eslintrc.cjs +38 -0
  541. package/scripts/template/_.gitignore +24 -0
  542. package/scripts/template/_.npmrc +2 -0
  543. package/scripts/template/_.prettierrc +8 -0
  544. package/scripts/template/_.vscode/_launch.json +28 -0
  545. package/scripts/template/_index.html +15 -0
  546. package/scripts/template/_tsconfig.app.json +27 -0
  547. package/scripts/template/_tsconfig.json +11 -0
  548. package/scripts/template/_tsconfig.node.json +13 -0
  549. package/scripts/template/_vite.config.ts +7 -0
  550. package/scripts/template/src/App.tsx +12 -0
  551. package/scripts/template/src/WorkspaceView/index.tsx +47 -0
  552. package/scripts/template/src/main.css +9 -0
  553. package/scripts/template/src/main.tsx +19 -0
  554. package/scripts/template/src/vite-env.d.ts +1 -0
@@ -0,0 +1,160 @@
1
+ import { CanFrameFlag, DataProcessorNodeProperties, FrameDefinition, PeriodicTransmissionSettings, SourceNodeProperties, TargetNodeProperties, ILogFileFormat, WriteFrame } from '../models';
2
+ /**
3
+ * A logger that can be used for logging messages to CanKing's log window and log file.
4
+ */
5
+ export interface ILogger {
6
+ trace(message: string): void;
7
+ debug(message: string): void;
8
+ info(message: string): void;
9
+ warn(message: string): void;
10
+ error(message: unknown, error?: unknown): void;
11
+ critical(message: string): void;
12
+ }
13
+ /**
14
+ * Creates a new logger that can be used for logging messages to CanKing's log window and log file.
15
+ * @param categoryName - The category name used by the returned logger, typically the extension name.
16
+ * @returns A new logger.
17
+ */
18
+ export declare const getLogger: (categoryName: string) => ILogger;
19
+ /**
20
+ * Displays a message box with an OK button for the user.
21
+ * @param message - The message to display.
22
+ * @param title - The dialog title.
23
+ */
24
+ export declare const showMessageBox: (message: string, title: string) => Promise<void>;
25
+ /**
26
+ * Displays a question box for the user.
27
+ * @param message - The message/question to display.
28
+ * @param title - The dialog title.
29
+ * @param buttons - Captions of the buttons that should be present, defaults to ['Yes', 'No'].
30
+ * @param defaultId - Index of the button in the buttons array which will be selected by default when the message box opens.
31
+ * @param cancelId - The index of the button to be used to cancel the dialog, via the `Esc` key. By default this is assigned
32
+ * to the first button with "cancel" or "no" as the label. If no such labeled buttons exist and this option
33
+ * is not set, `0` will be used as the return value.
34
+ * @returns The index of the button that was clicked.
35
+ */
36
+ export declare const showQuestionBox: (message: string, title: string, buttons?: string[], defaultId?: number, cancelId?: number) => Promise<number>;
37
+ /**
38
+ * Starts a measurement.
39
+ */
40
+ export declare const startMeasurement: () => Promise<void>;
41
+ /**
42
+ * Stops any running measurement.
43
+ */
44
+ export declare const stopMeasurement: () => Promise<void>;
45
+ /**
46
+ * Adds a new source node to the current measurement setup.
47
+ * @param sourceNode - The new source node.
48
+ */
49
+ export declare const addSource: (sourceNode: SourceNodeProperties) => Promise<void>;
50
+ /**
51
+ * Updates a source node in the current measurement setup.
52
+ * @param sourceNode - The updated source node.
53
+ */
54
+ export declare const updateSource: (sourceNode: SourceNodeProperties) => Promise<void>;
55
+ /**
56
+ * Deletes a source node from the current measurement setup.
57
+ * @param sourceId - Identifier of the source node to delete.
58
+ */
59
+ export declare const deleteSource: (sourceId: string) => Promise<void>;
60
+ /**
61
+ * Adds a new data processor node to the current measurement setup.
62
+ * @param dataProcessorNode - The new data processor node.
63
+ * @param previousNode - Identifier of the pervious node in the measurement setup.
64
+ * @param nextNode - Identifier of the next node in the measurement setup.
65
+ */
66
+ export declare const addDataProcessor: (dataProcessorNode: DataProcessorNodeProperties, previousNode?: string, nextNode?: string) => Promise<void>;
67
+ /**
68
+ * Updates a data processor node in the current measurement setup.
69
+ * @param dataProcessorNode - The updated data processor node.
70
+ */
71
+ export declare const updateDataProcessor: (dataProcessorNode: DataProcessorNodeProperties) => Promise<void>;
72
+ /**
73
+ * Deletes a data processor node from the current measurement setup.
74
+ * @param dataProcessorId - Identifier of the data processor node to delete.
75
+ */
76
+ export declare const deleteDataProcessor: (dataProcessorId: string) => Promise<void>;
77
+ /**
78
+ * Adds a new target node to the current measurement setup.
79
+ * @param targetNode - The new target node.
80
+ */
81
+ export declare const addTarget: (targetNode: TargetNodeProperties) => Promise<void>;
82
+ /**
83
+ * Updates a target node in the current measurement setup.
84
+ * @param targetNode - The updated target node.
85
+ */
86
+ export declare const updateTarget: (targetNode: TargetNodeProperties) => Promise<void>;
87
+ /**
88
+ * Deletes a target node from the current measurement setup.
89
+ * @param targetId - Identifier of the target node to delete.
90
+ */
91
+ export declare const deleteTarget: (targetId: string) => Promise<void>;
92
+ /**
93
+ * Adds a connection between the specified start node and the specified end node.
94
+ * @param startId - Identifier of the new connection's start node.
95
+ * @param endId - Identifier of the new connection's end node.
96
+ */
97
+ export declare const connectNodes: (startId: string, endId: string) => Promise<void>;
98
+ /**
99
+ * Removes a connection between the specified start node and the specified end node.
100
+ * @param startId - Identifier of the connection's start node.
101
+ * @param endId - Identifier of the connection's end node.
102
+ */
103
+ export declare const disconnectNodes: (startId: string, endId: string) => Promise<void>;
104
+ /**
105
+ * Enables the specified node.
106
+ * @param id - Identifier of the node to be enabled.
107
+ */
108
+ export declare const enableNode: (id: string) => Promise<void>;
109
+ /**
110
+ * Disables the specified node.
111
+ * @param id - Identifier of the node to be disabled.
112
+ */
113
+ export declare const disableNode: (id: string) => Promise<void>;
114
+ /**
115
+ * Sends out a frame on the specified out channel.
116
+ * @param channelId - Identifier of the out channel to be used when sending out the message.
117
+ * @param frame - Definition of the frame to be sent out.
118
+ */
119
+ export declare const sendMessage: (channelId: string, frame: WriteFrame) => Promise<void>;
120
+ /**
121
+ * Sends out a CAN message on the specified out channel.
122
+ * @param channelId - Identifier of the out channel to be used when sending out the message, must be a CAN channel.
123
+ * @param canId - The CAN identifier.
124
+ * @param data - The message data.
125
+ * @param flags - Any extra {@link CanFrameFlag} values to control how the message is sent out.
126
+ */
127
+ export declare const sendCanMessage: (channelId: string, canId: number, data: number[], ...flags: CanFrameFlag[]) => Promise<void>;
128
+ /**
129
+ * Starts a new periodic transmission.
130
+ * @param settings - The periodic transmission settings.
131
+ * @returns A promise that resolves with the identifier of the new periodic transmission.
132
+ */
133
+ export declare const startPeriodicTransmission: (settings: PeriodicTransmissionSettings) => Promise<string>;
134
+ /**
135
+ * Stops a running periodic transmission.
136
+ * @param periodicTransmissionId - Identifier of the periodic transmission to be stopped.
137
+ */
138
+ export declare const stopPeriodicTransmission: (periodicTransmissionId: string) => Promise<void>;
139
+ /**
140
+ * Starts a new log replay.
141
+ * @param logReplayId - Identifier of the log replay to be started.
142
+ */
143
+ export declare const startLogReplay: (logReplayId: string) => Promise<void>;
144
+ /**
145
+ * Stops running a log replay.
146
+ * @param logReplayId - Identifier of the log replay to be stopped.
147
+ */
148
+ export declare const stopLogReplay: (logReplayId: string) => Promise<void>;
149
+ /**
150
+ * Gets all available message log file formats.
151
+ * @returns A promise that resolves with a collection of all available message log file formats.
152
+ */
153
+ export declare const getMessageLogFileFormats: () => Promise<ILogFileFormat[]>;
154
+ /**
155
+ * Gets all available frame definitions.
156
+ * @param nodeIdentifier - An optional node identifier. If specified then all frame definitions available for the
157
+ * specified node will be returned; otherwise all available frame definitions will be returned.
158
+ * @returns A promise that resolves with a collection of all available frame definitions.
159
+ */
160
+ export declare const getFrameDefinitions: (nodeIdentifier?: string) => Promise<FrameDefinition[]>;
package/dist/ipc.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";var p=Object.defineProperty;var g=(e,a,t)=>a in e?p(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t;var c=(e,a,t)=>g(e,typeof a!="symbol"?a+"":a,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("long");const m=require("./ElectronAPIFake.js"),y=require("./measurement_settings.js"),s=window.electron??m.electronApiFake,i=e=>e&&e.message!==void 0,r=(e,a,t)=>{s.ipcRenderer.invoke("app-add-log-message",{time:Date.now(),logLevel:e,categoryName:a,message:t})};class l{constructor(a){c(this,"categoryName");this.categoryName=a}trace(a){r(0,this.categoryName,a)}debug(a){r(1,this.categoryName,a)}info(a){r(2,this.categoryName,a)}warn(a){r(3,this.categoryName,a)}error(a,t){typeof a=="string"?r(4,this.categoryName,a):i(a)&&r(4,this.categoryName,a.message),i(t)&&r(4,this.categoryName,t.message)}critical(a){r(5,this.categoryName,a)}}const u=e=>new l(e),w=async(e,a)=>{await s.ipcRenderer.invoke("app-show-message-box",e,a)},R=async(e,a,t,n,o)=>await s.ipcRenderer.invoke("app-show-question-box",e,a,t,n,o),k=async()=>{await s.ipcRenderer.invoke("rpc-start-measurement")},v=async()=>{await s.ipcRenderer.invoke("rpc-stop-measurement")},f=async e=>{await s.ipcRenderer.invoke("rpc-add-source",e)},N=async e=>{await s.ipcRenderer.invoke("rpc-update-source",e)},h=async e=>{await s.ipcRenderer.invoke("rpc-delete-source",e)},M=async(e,a,t)=>{await s.ipcRenderer.invoke("rpc-add-data-processor",e,a,t)},P=async e=>{await s.ipcRenderer.invoke("rpc-update-data-processor",e)},T=async e=>{await s.ipcRenderer.invoke("rpc-delete-data-processor",e)},b=async e=>{await s.ipcRenderer.invoke("rpc-add-target",e)},D=async e=>{await s.ipcRenderer.invoke("rpc-update-target",e)},F=async e=>{await s.ipcRenderer.invoke("rpc-delete-target",e)},L=async(e,a)=>{await s.ipcRenderer.invoke("rpc-connect-nodes",e,a)},S=async(e,a)=>{await s.ipcRenderer.invoke("rpc-disconnect-nodes",e,a)},x=async e=>{await s.ipcRenderer.invoke("rpc-enable-node",e)},q=async e=>{await s.ipcRenderer.invoke("rpc-disable-node",e)},d=async(e,a)=>{await s.ipcRenderer.invoke("rpc-send-message",e,a)},B=async(e,a,t,...n)=>{const o=y.WriteFrame.fromPartial({id:a,data:t,canFrameFlags:{flags:n}});await d(e,o)},I=async e=>await s.ipcRenderer.invoke("rpc-start-periodic-transmission",e),A=async e=>{await s.ipcRenderer.invoke("rpc-stop-periodic-transmission",e)},C=async e=>{await s.ipcRenderer.invoke("rpc-start-log-replay",e)},E=async e=>{await s.ipcRenderer.invoke("rpc-stop-log-replay",e)},Q=async()=>await s.ipcRenderer.invoke("rpc-get-message-log-file-formats"),j=async e=>await s.ipcRenderer.invoke("rpc-get-frame-definitions",e);exports.addDataProcessor=M;exports.addSource=f;exports.addTarget=b;exports.connectNodes=L;exports.deleteDataProcessor=T;exports.deleteSource=h;exports.deleteTarget=F;exports.disableNode=q;exports.disconnectNodes=S;exports.enableNode=x;exports.getFrameDefinitions=j;exports.getLogger=u;exports.getMessageLogFileFormats=Q;exports.sendCanMessage=B;exports.sendMessage=d;exports.showMessageBox=w;exports.showQuestionBox=R;exports.startLogReplay=C;exports.startMeasurement=k;exports.startPeriodicTransmission=I;exports.stopLogReplay=E;exports.stopMeasurement=v;exports.stopPeriodicTransmission=A;exports.updateDataProcessor=P;exports.updateSource=N;exports.updateTarget=D;
package/dist/ipc.mjs ADDED
@@ -0,0 +1,123 @@
1
+ var p = Object.defineProperty;
2
+ var d = (e, a, r) => a in e ? p(e, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[a] = r;
3
+ var c = (e, a, r) => d(e, typeof a != "symbol" ? a + "" : a, r);
4
+ import "long";
5
+ import { e as g } from "./ElectronAPIFake.mjs";
6
+ import { W as m } from "./measurement_settings.mjs";
7
+ const n = window.electron ?? g, i = (e) => e && e.message !== void 0, s = (e, a, r) => {
8
+ n.ipcRenderer.invoke("app-add-log-message", {
9
+ time: Date.now(),
10
+ logLevel: e,
11
+ categoryName: a,
12
+ message: r
13
+ });
14
+ };
15
+ class y {
16
+ constructor(a) {
17
+ c(this, "categoryName");
18
+ this.categoryName = a;
19
+ }
20
+ trace(a) {
21
+ s(0, this.categoryName, a);
22
+ }
23
+ debug(a) {
24
+ s(1, this.categoryName, a);
25
+ }
26
+ info(a) {
27
+ s(2, this.categoryName, a);
28
+ }
29
+ warn(a) {
30
+ s(3, this.categoryName, a);
31
+ }
32
+ error(a, r) {
33
+ typeof a == "string" ? s(4, this.categoryName, a) : i(a) && s(4, this.categoryName, a.message), i(r) && s(4, this.categoryName, r.message);
34
+ }
35
+ critical(a) {
36
+ s(5, this.categoryName, a);
37
+ }
38
+ }
39
+ const f = (e) => new y(e), N = async (e, a) => {
40
+ await n.ipcRenderer.invoke("app-show-message-box", e, a);
41
+ }, h = async (e, a, r, t, o) => await n.ipcRenderer.invoke(
42
+ "app-show-question-box",
43
+ e,
44
+ a,
45
+ r,
46
+ t,
47
+ o
48
+ ), b = async () => {
49
+ await n.ipcRenderer.invoke("rpc-start-measurement");
50
+ }, D = async () => {
51
+ await n.ipcRenderer.invoke("rpc-stop-measurement");
52
+ }, F = async (e) => {
53
+ await n.ipcRenderer.invoke("rpc-add-source", e);
54
+ }, T = async (e) => {
55
+ await n.ipcRenderer.invoke("rpc-update-source", e);
56
+ }, M = async (e) => {
57
+ await n.ipcRenderer.invoke("rpc-delete-source", e);
58
+ }, P = async (e, a, r) => {
59
+ await n.ipcRenderer.invoke("rpc-add-data-processor", e, a, r);
60
+ }, x = async (e) => {
61
+ await n.ipcRenderer.invoke("rpc-update-data-processor", e);
62
+ }, L = async (e) => {
63
+ await n.ipcRenderer.invoke("rpc-delete-data-processor", e);
64
+ }, I = async (e) => {
65
+ await n.ipcRenderer.invoke("rpc-add-target", e);
66
+ }, S = async (e) => {
67
+ await n.ipcRenderer.invoke("rpc-update-target", e);
68
+ }, B = async (e) => {
69
+ await n.ipcRenderer.invoke("rpc-delete-target", e);
70
+ }, W = async (e, a) => {
71
+ await n.ipcRenderer.invoke("rpc-connect-nodes", e, a);
72
+ }, q = async (e, a) => {
73
+ await n.ipcRenderer.invoke("rpc-disconnect-nodes", e, a);
74
+ }, A = async (e) => {
75
+ await n.ipcRenderer.invoke("rpc-enable-node", e);
76
+ }, C = async (e) => {
77
+ await n.ipcRenderer.invoke("rpc-disable-node", e);
78
+ }, w = async (e, a) => {
79
+ await n.ipcRenderer.invoke("rpc-send-message", e, a);
80
+ }, E = async (e, a, r, ...t) => {
81
+ const o = m.fromPartial({
82
+ id: a,
83
+ data: r,
84
+ canFrameFlags: {
85
+ flags: t
86
+ }
87
+ });
88
+ await w(e, o);
89
+ }, Q = async (e) => await n.ipcRenderer.invoke("rpc-start-periodic-transmission", e), j = async (e) => {
90
+ await n.ipcRenderer.invoke("rpc-stop-periodic-transmission", e);
91
+ }, z = async (e) => {
92
+ await n.ipcRenderer.invoke("rpc-start-log-replay", e);
93
+ }, G = async (e) => {
94
+ await n.ipcRenderer.invoke("rpc-stop-log-replay", e);
95
+ }, H = async () => await n.ipcRenderer.invoke("rpc-get-message-log-file-formats"), J = async (e) => await n.ipcRenderer.invoke("rpc-get-frame-definitions", e);
96
+ export {
97
+ P as addDataProcessor,
98
+ F as addSource,
99
+ I as addTarget,
100
+ W as connectNodes,
101
+ L as deleteDataProcessor,
102
+ M as deleteSource,
103
+ B as deleteTarget,
104
+ C as disableNode,
105
+ q as disconnectNodes,
106
+ A as enableNode,
107
+ J as getFrameDefinitions,
108
+ f as getLogger,
109
+ H as getMessageLogFileFormats,
110
+ E as sendCanMessage,
111
+ w as sendMessage,
112
+ N as showMessageBox,
113
+ h as showQuestionBox,
114
+ z as startLogReplay,
115
+ b as startMeasurement,
116
+ Q as startPeriodicTransmission,
117
+ G as stopLogReplay,
118
+ D as stopMeasurement,
119
+ j as stopPeriodicTransmission,
120
+ x as updateDataProcessor,
121
+ T as updateSource,
122
+ S as updateTarget
123
+ };
@@ -0,0 +1 @@
1
+ "use strict";function Dn(){let e=0,n=0;for(let a=0;a<28;a+=7){let r=this.buf[this.pos++];if(e|=(r&127)<<a,!(r&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 r=this.buf[this.pos++];if(n|=(r&127)<<a,!(r&128))return this.assertBounds(),[e,n]}throw new Error("invalid varint")}function q(e,n,i){for(let t=0;t<28;t=t+7){const u=e>>>t,f=!(!(u>>>7)&&n==0),E=(f?u|128:u)&255;if(i.push(E),!f)return}const a=e>>>28&15|(n&7)<<4,r=!!(n>>3);if(i.push((r?a|128:a)&255),!!r){for(let t=3;t<31;t=t+7){const u=n>>>t,f=!!(u>>>7),E=(f?u|128:u)&255;if(i.push(E),!f)return}i.push(n>>>31&1)}}const X=4294967296;function ee(e){const n=e[0]==="-";n&&(e=e.slice(1));const i=1e6;let a=0,r=0;function t(u,f){const E=Number(e.slice(u,f));r*=i,a=a*i+E,a>=X&&(r=r+(a/X|0),a=a%X)}return t(-24,-18),t(-18,-12),t(-12,-6),t(-6),n?He(a,r):j(a,r)}function bn(e,n){let i=j(e,n);const a=i.hi&2147483648;a&&(i=He(i.lo,i.hi));const r=we(i.lo,i.hi);return a?"-"+r:r}function we(e,n){if({lo:e,hi:n}=yn(e,n),n<=2097151)return String(X*n+e);const i=e&16777215,a=(e>>>24|n<<8)&16777215,r=n>>16&65535;let t=i+a*6777216+r*6710656,u=a+r*8147497,f=r*2;const E=1e7;return t>=E&&(u+=Math.floor(t/E),t%=E),u>=E&&(f+=Math.floor(u/E),u%=E),f.toString()+ne(u)+ne(t)}function yn(e,n){return{lo:e>>>0,hi:n>>>0}}function j(e,n){return{lo:e|0,hi:n|0}}function He(e,n){return n=~n,e?e=~e+1:n+=1,j(e,n)}const ne=e=>{const n=String(e);return"0000000".slice(n.length)+n};function ie(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 Vn(){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 T=Un();function Un(){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"),r=BigInt("0"),t=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(u){const f=typeof u=="bigint"?u:BigInt(u);if(f>a||f<i)throw new Error(`invalid int64: ${u}`);return f},uParse(u){const f=typeof u=="bigint"?u:BigInt(u);if(f>t||f<r)throw new Error(`invalid uint64: ${u}`);return f},enc(u){return e.setBigInt64(0,this.parse(u),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},uEnc(u){return e.setBigInt64(0,this.uParse(u),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},dec(u,f){return e.setInt32(0,u,!0),e.setInt32(4,f,!0),e.getBigInt64(0,!0)},uDec(u,f){return e.setInt32(0,u,!0),e.setInt32(4,f,!0),e.getBigUint64(0,!0)}}}return{zero:"0",supported:!1,parse(i){return typeof i!="string"&&(i=i.toString()),te(i),i},uParse(i){return typeof i!="string"&&(i=i.toString()),re(i),i},enc(i){return typeof i!="string"&&(i=i.toString()),te(i),ee(i)},uEnc(i){return typeof i!="string"&&(i=i.toString()),re(i),ee(i)},dec(i,a){return bn(i,a)},uDec(i,a){return we(i,a)}}}function te(e){if(!/^-?[0-9]+$/.test(e))throw new Error("invalid int64: "+e)}function re(e){if(!/^[0-9]+$/.test(e))throw new Error("invalid uint64: "+e)}const K=Symbol.for("@bufbuild/protobuf/text-encoding");function Xe(){if(globalThis[K]==null){const e=new globalThis.TextEncoder,n=new globalThis.TextDecoder;globalThis[K]={encodeUtf8(i){return e.encode(i)},decodeUtf8(i){return n.decode(i)},checkUtf8(i){try{return encodeURIComponent(i),!0}catch{return!1}}}}return globalThis[K]}var M;(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"})(M||(M={}));const Jn=34028234663852886e22,Bn=-34028234663852886e22,xn=4294967295,wn=2147483647,Hn=-2147483648;class d{constructor(n=Xe().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 r=0;r<this.chunks.length;r++)n+=this.chunks[r].length;let i=new Uint8Array(n),a=0;for(let r=0;r<this.chunks.length;r++)i.set(this.chunks[r],a),a+=this.chunks[r].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(ae(n);n>127;)this.buf.push(n&127|128),n=n>>>7;return this.buf.push(n),this}int32(n){return Y(n),ie(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){Xn(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){ae(n);let i=new Uint8Array(4);return new DataView(i.buffer).setUint32(0,n,!0),this.raw(i)}sfixed32(n){Y(n);let i=new Uint8Array(4);return new DataView(i.buffer).setInt32(0,n,!0),this.raw(i)}sint32(n){return Y(n),n=(n<<1^n>>31)>>>0,ie(n,this.buf),this}sfixed64(n){let i=new Uint8Array(8),a=new DataView(i.buffer),r=T.enc(n);return a.setInt32(0,r.lo,!0),a.setInt32(4,r.hi,!0),this.raw(i)}fixed64(n){let i=new Uint8Array(8),a=new DataView(i.buffer),r=T.uEnc(n);return a.setInt32(0,r.lo,!0),a.setInt32(4,r.hi,!0),this.raw(i)}int64(n){let i=T.enc(n);return q(i.lo,i.hi,this.buf),this}sint64(n){let i=T.enc(n),a=i.hi>>31,r=i.lo<<1^a,t=(i.hi<<1|i.lo>>>31)^a;return q(r,t,this.buf),this}uint64(n){let i=T.uEnc(n);return q(i.lo,i.hi,this.buf),this}}class s{constructor(n,i=Xe().decodeUtf8){this.decodeUtf8=i,this.varint64=Dn,this.uint32=Vn,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 M.Varint:for(;this.buf[this.pos++]&128;);break;case M.Bit64:this.pos+=4;case M.Bit32:this.pos+=4;break;case M.LengthDelimited:let r=this.uint32();this.pos+=r;break;case M.StartGroup:for(;;){const[t,u]=this.tag();if(u===M.EndGroup){if(i!==void 0&&t!==i)throw new Error("invalid end group tag");break}this.skip(u,t)}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 T.dec(...this.varint64())}uint64(){return T.uDec(...this.varint64())}sint64(){let[n,i]=this.varint64(),a=-(n&1);return n=(n>>>1|(i&1)<<31)^a,i=i>>>1^a,T.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 T.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return T.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 Y(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>wn||e<Hn)throw new Error("invalid int32: "+e)}function ae(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>xn||e<0)throw new Error("invalid uint32: "+e)}function Xn(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>Jn||e<Bn))throw new Error("invalid float32: "+e)}var Qe=(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))(Qe||{});function Ze(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 ze(e){switch(e){case 0:return"SIGNAL_ENCODING_INTEL";case 1:return"SIGNAL_ENCODING_MOTOROLA";case-1:default:return"UNRECOGNIZED"}}var qe=(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))(qe||{});function Ke(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 Ye(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 oe(){return{name:"",qualifiedName:"",comment:"",encoding:0,dataType:0,startbit:0,length:0,unit:"",factor:0,offset:0,minValue:0,maxValue:0,enumValues:{}}}const O={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])=>{Q.encode({key:i,value:a},n.uint32(106).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 r=oe();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;r.name=i.string();continue}case 2:{if(t!==18)break;r.qualifiedName=i.string();continue}case 3:{if(t!==26)break;r.comment=i.string();continue}case 4:{if(t!==32)break;r.encoding=i.int32();continue}case 5:{if(t!==40)break;r.dataType=i.int32();continue}case 6:{if(t!==48)break;r.startbit=i.int32();continue}case 7:{if(t!==56)break;r.length=i.int32();continue}case 8:{if(t!==66)break;r.unit=i.string();continue}case 9:{if(t!==73)break;r.factor=i.double();continue}case 10:{if(t!==81)break;r.offset=i.double();continue}case 11:{if(t!==89)break;r.minValue=i.double();continue}case 12:{if(t!==97)break;r.maxValue=i.double();continue}case 13:{if(t!==106)break;const u=Q.decode(i,i.uint32());u.value!==void 0&&(r.enumValues[u.key]=u.value);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{name:N(e.name)?globalThis.String(e.name):"",qualifiedName:N(e.qualifiedName)?globalThis.String(e.qualifiedName):"",comment:N(e.comment)?globalThis.String(e.comment):"",encoding:N(e.encoding)?Ze(e.encoding):0,dataType:N(e.dataType)?Ke(e.dataType):0,startbit:N(e.startbit)?globalThis.Number(e.startbit):0,length:N(e.length)?globalThis.Number(e.length):0,unit:N(e.unit)?globalThis.String(e.unit):"",factor:N(e.factor)?globalThis.Number(e.factor):0,offset:N(e.offset)?globalThis.Number(e.offset):0,minValue:N(e.minValue)?globalThis.Number(e.minValue):0,maxValue:N(e.maxValue)?globalThis.Number(e.maxValue):0,enumValues:Qn(e.enumValues)?Object.entries(e.enumValues).reduce((n,[i,a])=>(n[i]=Number(a),n),{}):{}}},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=ze(e.encoding)),e.dataType!==0&&(n.dataType=Ye(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,r])=>{n.enumValues[a]=Math.round(r)}))}return n},create(e){return O.fromPartial(e??{})},fromPartial(e){const n=oe();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,r])=>(r!==void 0&&(i[a]=globalThis.Number(r)),i),{}),n}};function se(){return{key:"",value:0}}const Q={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 r=se();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;r.key=i.string();continue}case 2:{if(t!==16)break;r.value=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{key:N(e.key)?globalThis.String(e.key):"",value:N(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 Q.fromPartial(e??{})},fromPartial(e){const n=se();return n.key=e.key??"",n.value=e.value??0,n}};function ue(){return{items:[]}}const We={encode(e,n=new d){for(const i of e.items)O.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 r=ue();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;r.items.push(O.decode(i,i.uint32()));continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{items:globalThis.Array.isArray(e==null?void 0:e.items)?e.items.map(n=>O.fromJSON(n)):[]}},toJSON(e){var i;const n={};return(i=e.items)!=null&&i.length&&(n.items=e.items.map(a=>O.toJSON(a))),n},create(e){return We.fromPartial(e??{})},fromPartial(e){var i;const n=ue();return n.items=((i=e.items)==null?void 0:i.map(a=>O.fromPartial(a)))||[],n}};function Qn(e){return typeof e=="object"&&e!==null}function N(e){return e!=null}var $e=(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))($e||{});function je(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 en(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 nn=(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))(nn||{});function tn(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 rn(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 de(){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 r=de();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t===8){r.flags.push(i.int32());continue}if(t===10){const u=i.uint32()+i.pos;for(;i.pos<u;)r.flags.push(i.int32());continue}break}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{flags:globalThis.Array.isArray(e==null?void 0:e.flags)?e.flags.map(n=>je(n)):[]}},toJSON(e){var i;const n={};return(i=e.flags)!=null&&i.length&&(n.flags=e.flags.map(a=>en(a))),n},create(e){return c.fromPartial(e??{})},fromPartial(e){var i;const n=de();return n.flags=((i=e.flags)==null?void 0:i.map(a=>a))||[],n}};function le(){return{flags:[]}}const R={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 r=le();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t===8){r.flags.push(i.int32());continue}if(t===10){const u=i.uint32()+i.pos;for(;i.pos<u;)r.flags.push(i.int32());continue}break}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{flags:globalThis.Array.isArray(e==null?void 0:e.flags)?e.flags.map(n=>tn(n)):[]}},toJSON(e){var i;const n={};return(i=e.flags)!=null&&i.length&&(n.flags=e.flags.map(a=>rn(a))),n},create(e){return R.fromPartial(e??{})},fromPartial(e){var i;const n=le();return n.flags=((i=e.flags)==null?void 0:i.map(a=>a))||[],n}};function fe(){return{stringValue:void 0,doubleValue:void 0}}const F={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 r=fe();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;r.stringValue=i.string();continue}case 2:{if(t!==17)break;r.doubleValue=i.double();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{stringValue:l(e.stringValue)?globalThis.String(e.stringValue):void 0,doubleValue:l(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 F.fromPartial(e??{})},fromPartial(e){const n=fe();return n.stringValue=e.stringValue??void 0,n.doubleValue=e.doubleValue??void 0,n}};function ce(){return{name:"",qualifiedName:"",unit:"",stringValue:void 0,doubleValue:void 0}}const h={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 r=ce();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;r.name=i.string();continue}case 2:{if(t!==18)break;r.qualifiedName=i.string();continue}case 3:{if(t!==26)break;r.unit=i.string();continue}case 4:{if(t!==34)break;r.stringValue=i.string();continue}case 5:{if(t!==41)break;r.doubleValue=i.double();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{name:l(e.name)?globalThis.String(e.name):"",qualifiedName:l(e.qualifiedName)?globalThis.String(e.qualifiedName):"",unit:l(e.unit)?globalThis.String(e.unit):"",stringValue:l(e.stringValue)?globalThis.String(e.stringValue):void 0,doubleValue:l(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 h.fromPartial(e??{})},fromPartial(e){const n=ce();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 _e(){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 m={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])=>{Z.encode({key:i,value:a},n.uint32(90).fork()).join()});for(const i of e.signalValues)h.encode(i,n.uint32(98).fork()).join();return e.canFrameFlags!==void 0&&c.encode(e.canFrameFlags,n.uint32(106).fork()).join(),e.linFrameFlags!==void 0&&R.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 r=_e();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;r.sourceId=i.string();continue}case 2:{if(t!==18)break;r.sourceName=i.string();continue}case 3:{if(t!==26)break;r.streamId=i.string();continue}case 4:{if(t!==32)break;r.id=i.int32();continue}case 5:{if(t!==42)break;r.messageName=i.string();continue}case 6:{if(t===48){r.data.push(i.uint32());continue}if(t===50){const u=i.uint32()+i.pos;for(;i.pos<u;)r.data.push(i.uint32());continue}break}case 7:{if(t!==57)break;r.time=i.double();continue}case 8:{if(t!==64)break;r.tx=i.bool();continue}case 9:{if(t!==72)break;r.dlc=i.int32();continue}case 10:{if(t!==80)break;r.hashCode=i.int32();continue}case 11:{if(t!==90)break;const u=Z.decode(i,i.uint32());u.value!==void 0&&(r.properties[u.key]=u.value);continue}case 12:{if(t!==98)break;r.signalValues.push(h.decode(i,i.uint32()));continue}case 13:{if(t!==106)break;r.canFrameFlags=c.decode(i,i.uint32());continue}case 14:{if(t!==114)break;r.linFrameFlags=R.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{sourceId:l(e.sourceId)?globalThis.String(e.sourceId):"",sourceName:l(e.sourceName)?globalThis.String(e.sourceName):"",streamId:l(e.streamId)?globalThis.String(e.streamId):"",id:l(e.id)?globalThis.Number(e.id):0,messageName:l(e.messageName)?globalThis.String(e.messageName):"",data:globalThis.Array.isArray(e==null?void 0:e.data)?e.data.map(n=>globalThis.Number(n)):[],time:l(e.time)?globalThis.Number(e.time):0,tx:l(e.tx)?globalThis.Boolean(e.tx):!1,dlc:l(e.dlc)?globalThis.Number(e.dlc):0,hashCode:l(e.hashCode)?globalThis.Number(e.hashCode):0,properties:Zn(e.properties)?Object.entries(e.properties).reduce((n,[i,a])=>(n[i]=F.fromJSON(a),n),{}):{},signalValues:globalThis.Array.isArray(e==null?void 0:e.signalValues)?e.signalValues.map(n=>h.fromJSON(n)):[],canFrameFlags:l(e.canFrameFlags)?c.fromJSON(e.canFrameFlags):void 0,linFrameFlags:l(e.linFrameFlags)?R.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(r=>Math.round(r))),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 r=Object.entries(e.properties);r.length>0&&(n.properties={},r.forEach(([t,u])=>{n.properties[t]=F.toJSON(u)}))}return(a=e.signalValues)!=null&&a.length&&(n.signalValues=e.signalValues.map(r=>h.toJSON(r))),e.canFrameFlags!==void 0&&(n.canFrameFlags=c.toJSON(e.canFrameFlags)),e.linFrameFlags!==void 0&&(n.linFrameFlags=R.toJSON(e.linFrameFlags)),n},create(e){return m.fromPartial(e??{})},fromPartial(e){var i,a;const n=_e();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(r=>r))||[],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((r,[t,u])=>(u!==void 0&&(r[t]=F.fromPartial(u)),r),{}),n.signalValues=((a=e.signalValues)==null?void 0:a.map(r=>h.fromPartial(r)))||[],n.canFrameFlags=e.canFrameFlags!==void 0&&e.canFrameFlags!==null?c.fromPartial(e.canFrameFlags):void 0,n.linFrameFlags=e.linFrameFlags!==void 0&&e.linFrameFlags!==null?R.fromPartial(e.linFrameFlags):void 0,n}};function Ne(){return{key:"",value:void 0}}const Z={encode(e,n=new d){return e.key!==""&&n.uint32(10).string(e.key),e.value!==void 0&&F.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 r=Ne();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;r.key=i.string();continue}case 2:{if(t!==18)break;r.value=F.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{key:l(e.key)?globalThis.String(e.key):"",value:l(e.value)?F.fromJSON(e.value):void 0}},toJSON(e){const n={};return e.key!==""&&(n.key=e.key),e.value!==void 0&&(n.value=F.toJSON(e.value)),n},create(e){return Z.fromPartial(e??{})},fromPartial(e){const n=Ne();return n.key=e.key??"",n.value=e.value!==void 0&&e.value!==null?F.fromPartial(e.value):void 0,n}};function Ee(){return{items:[]}}const an={encode(e,n=new d){for(const i of e.items)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 r=Ee();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;r.items.push(m.decode(i,i.uint32()));continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{items:globalThis.Array.isArray(e==null?void 0:e.items)?e.items.map(n=>m.fromJSON(n)):[]}},toJSON(e){var i;const n={};return(i=e.items)!=null&&i.length&&(n.items=e.items.map(a=>m.toJSON(a))),n},create(e){return an.fromPartial(e??{})},fromPartial(e){var i;const n=Ee();return n.items=((i=e.items)==null?void 0:i.map(a=>m.fromPartial(a)))||[],n}};function Ae(){return{id:0,data:[],canFrameFlags:void 0,linFrameFlags:void 0}}const g={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&&c.encode(e.canFrameFlags,n.uint32(26).fork()).join(),e.linFrameFlags!==void 0&&R.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 r=Ae();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;r.id=i.int32();continue}case 2:{if(t===16){r.data.push(i.uint32());continue}if(t===18){const u=i.uint32()+i.pos;for(;i.pos<u;)r.data.push(i.uint32());continue}break}case 3:{if(t!==26)break;r.canFrameFlags=c.decode(i,i.uint32());continue}case 4:{if(t!==34)break;r.linFrameFlags=R.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{id:l(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:l(e.canFrameFlags)?c.fromJSON(e.canFrameFlags):void 0,linFrameFlags:l(e.linFrameFlags)?R.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=c.toJSON(e.canFrameFlags)),e.linFrameFlags!==void 0&&(n.linFrameFlags=R.toJSON(e.linFrameFlags)),n},create(e){return g.fromPartial(e??{})},fromPartial(e){var i;const n=Ae();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?c.fromPartial(e.canFrameFlags):void 0,n.linFrameFlags=e.linFrameFlags!==void 0&&e.linFrameFlags!==null?R.fromPartial(e.linFrameFlags):void 0,n}};function Se(){return{id:0,messageName:"",messageQualifiedName:"",signals:[],canFrameFlags:void 0}}const L={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);for(const i of e.signals)O.encode(i,n.uint32(34).fork()).join();return e.canFrameFlags!==void 0&&c.encode(e.canFrameFlags,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 r=Se();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;r.id=i.int32();continue}case 2:{if(t!==18)break;r.messageName=i.string();continue}case 3:{if(t!==26)break;r.messageQualifiedName=i.string();continue}case 4:{if(t!==34)break;r.signals.push(O.decode(i,i.uint32()));continue}case 5:{if(t!==42)break;r.canFrameFlags=c.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{id:l(e.id)?globalThis.Number(e.id):0,messageName:l(e.messageName)?globalThis.String(e.messageName):"",messageQualifiedName:l(e.messageQualifiedName)?globalThis.String(e.messageQualifiedName):"",signals:globalThis.Array.isArray(e==null?void 0:e.signals)?e.signals.map(n=>O.fromJSON(n)):[],canFrameFlags:l(e.canFrameFlags)?c.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),(i=e.signals)!=null&&i.length&&(n.signals=e.signals.map(a=>O.toJSON(a))),e.canFrameFlags!==void 0&&(n.canFrameFlags=c.toJSON(e.canFrameFlags)),n},create(e){return L.fromPartial(e??{})},fromPartial(e){var i;const n=Se();return n.id=e.id??0,n.messageName=e.messageName??"",n.messageQualifiedName=e.messageQualifiedName??"",n.signals=((i=e.signals)==null?void 0:i.map(a=>O.fromPartial(a)))||[],n.canFrameFlags=e.canFrameFlags!==void 0&&e.canFrameFlags!==null?c.fromPartial(e.canFrameFlags):void 0,n}};function Oe(){return{items:[]}}const on={encode(e,n=new d){for(const i of e.items)L.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 r=Oe();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;r.items.push(L.decode(i,i.uint32()));continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{items:globalThis.Array.isArray(e==null?void 0:e.items)?e.items.map(n=>L.fromJSON(n)):[]}},toJSON(e){var i;const n={};return(i=e.items)!=null&&i.length&&(n.items=e.items.map(a=>L.toJSON(a))),n},create(e){return on.fromPartial(e??{})},fromPartial(e){var i;const n=Oe();return n.items=((i=e.items)==null?void 0:i.map(a=>L.fromPartial(a)))||[],n}};function Re(){return{messageQualifiedName:"",delay:0}}const C={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 r=Re();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;r.messageQualifiedName=i.string();continue}case 2:{if(t!==17)break;r.delay=i.double();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{messageQualifiedName:l(e.messageQualifiedName)?globalThis.String(e.messageQualifiedName):"",delay:l(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 C.fromPartial(e??{})},fromPartial(e){const n=Re();return n.messageQualifiedName=e.messageQualifiedName??"",n.delay=e.delay??0,n}};function Ie(){return{name:"",qualifiedName:"",entries:[]}}const sn={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)C.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 r=Ie();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;r.name=i.string();continue}case 2:{if(t!==18)break;r.qualifiedName=i.string();continue}case 3:{if(t!==26)break;r.entries.push(C.decode(i,i.uint32()));continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{name:l(e.name)?globalThis.String(e.name):"",qualifiedName:l(e.qualifiedName)?globalThis.String(e.qualifiedName):"",entries:globalThis.Array.isArray(e==null?void 0:e.entries)?e.entries.map(n=>C.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=>C.toJSON(a))),n},create(e){return sn.fromPartial(e??{})},fromPartial(e){var i;const n=Ie();return n.name=e.name??"",n.qualifiedName=e.qualifiedName??"",n.entries=((i=e.entries)==null?void 0:i.map(a=>C.fromPartial(a)))||[],n}};function Zn(e){return typeof e=="object"&&e!==null}function l(e){return e!=null}var un=(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))(un||{});function dn(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 ln(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 fn=(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))(fn||{});function cn(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 _n(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 Nn=(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))(Nn||{});function En(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 An(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 Sn=(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))(Sn||{});function W(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 $(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 On=(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=103]="LOG_FILE_FORMAT_J1587",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))(On||{});function Rn(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 103:case"LOG_FILE_FORMAT_J1587":return 103;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 In(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 103:return"LOG_FILE_FORMAT_J1587";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 Tn=(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))(Tn||{});function Fn(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 Mn(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 hn=(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))(hn||{});function mn(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 gn(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 Ln=(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))(Ln||{});function Cn(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 Gn(e){switch(e){case 0:return"SEPARATOR_UNSPECIFIED";case 1:return"SEPARATOR_COMMA";case 2:return"SEPARATOR_SEMICOLON";case-1:default:return"UNRECOGNIZED"}}var pn=(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))(pn||{});function vn(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 kn(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 Te(){return{bitRate:0,timeSegment1:0,timeSegment2:0,syncJumpWidth:0,numberOfSamplePoints:0,prescaler:0}}const A={encode(e,n=new d){return e.bitRate!==0&&n.uint32(8).int32(e.bitRate),e.timeSegment1!==0&&n.uint32(16).int32(e.timeSegment1),e.timeSegment2!==0&&n.uint32(24).int32(e.timeSegment2),e.syncJumpWidth!==0&&n.uint32(32).int32(e.syncJumpWidth),e.numberOfSamplePoints!==0&&n.uint32(40).int32(e.numberOfSamplePoints),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 r=Te();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;r.bitRate=i.int32();continue}case 2:{if(t!==16)break;r.timeSegment1=i.int32();continue}case 3:{if(t!==24)break;r.timeSegment2=i.int32();continue}case 4:{if(t!==32)break;r.syncJumpWidth=i.int32();continue}case 5:{if(t!==40)break;r.numberOfSamplePoints=i.int32();continue}case 6:{if(t!==48)break;r.prescaler=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{bitRate:o(e.bitRate)?globalThis.Number(e.bitRate):0,timeSegment1:o(e.timeSegment1)?globalThis.Number(e.timeSegment1):0,timeSegment2:o(e.timeSegment2)?globalThis.Number(e.timeSegment2):0,syncJumpWidth:o(e.syncJumpWidth)?globalThis.Number(e.syncJumpWidth):0,numberOfSamplePoints:o(e.numberOfSamplePoints)?globalThis.Number(e.numberOfSamplePoints):0,prescaler:o(e.prescaler)?globalThis.Number(e.prescaler):0}},toJSON(e){const n={};return e.bitRate!==0&&(n.bitRate=Math.round(e.bitRate)),e.timeSegment1!==0&&(n.timeSegment1=Math.round(e.timeSegment1)),e.timeSegment2!==0&&(n.timeSegment2=Math.round(e.timeSegment2)),e.syncJumpWidth!==0&&(n.syncJumpWidth=Math.round(e.syncJumpWidth)),e.numberOfSamplePoints!==0&&(n.numberOfSamplePoints=Math.round(e.numberOfSamplePoints)),e.prescaler!==0&&(n.prescaler=Math.round(e.prescaler)),n},create(e){return A.fromPartial(e??{})},fromPartial(e){const n=Te();return n.bitRate=e.bitRate??0,n.timeSegment1=e.timeSegment1??0,n.timeSegment2=e.timeSegment2??0,n.syncJumpWidth=e.syncJumpWidth??0,n.numberOfSamplePoints=e.numberOfSamplePoints??0,n.prescaler=e.prescaler??0,n}};function Fe(){return{canMode:0,accessMode:0,silentMode:!1,busSpeed:void 0,busSpeedDataPhase:void 0}}const G={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.busSpeed!==void 0&&A.encode(e.busSpeed,n.uint32(34).fork()).join(),e.busSpeedDataPhase!==void 0&&A.encode(e.busSpeedDataPhase,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 r=Fe();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;r.canMode=i.int32();continue}case 2:{if(t!==16)break;r.accessMode=i.int32();continue}case 3:{if(t!==24)break;r.silentMode=i.bool();continue}case 4:{if(t!==34)break;r.busSpeed=A.decode(i,i.uint32());continue}case 5:{if(t!==42)break;r.busSpeedDataPhase=A.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{canMode:o(e.canMode)?dn(e.canMode):0,accessMode:o(e.accessMode)?cn(e.accessMode):0,silentMode:o(e.silentMode)?globalThis.Boolean(e.silentMode):!1,busSpeed:o(e.busSpeed)?A.fromJSON(e.busSpeed):void 0,busSpeedDataPhase:o(e.busSpeedDataPhase)?A.fromJSON(e.busSpeedDataPhase):void 0}},toJSON(e){const n={};return e.canMode!==0&&(n.canMode=ln(e.canMode)),e.accessMode!==0&&(n.accessMode=_n(e.accessMode)),e.silentMode!==!1&&(n.silentMode=e.silentMode),e.busSpeed!==void 0&&(n.busSpeed=A.toJSON(e.busSpeed)),e.busSpeedDataPhase!==void 0&&(n.busSpeedDataPhase=A.toJSON(e.busSpeedDataPhase)),n},create(e){return G.fromPartial(e??{})},fromPartial(e){const n=Fe();return n.canMode=e.canMode??0,n.accessMode=e.accessMode??0,n.silentMode=e.silentMode??!1,n.busSpeed=e.busSpeed!==void 0&&e.busSpeed!==null?A.fromPartial(e.busSpeed):void 0,n.busSpeedDataPhase=e.busSpeedDataPhase!==void 0&&e.busSpeedDataPhase!==null?A.fromPartial(e.busSpeedDataPhase):void 0,n}};function Me(){return{bitRate:0,protocolVersion:"",masterMode:!1,databaseFile:void 0,scheduleTable:void 0}}const p={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),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const r=Me();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;r.bitRate=i.int32();continue}case 2:{if(t!==18)break;r.protocolVersion=i.string();continue}case 3:{if(t!==24)break;r.masterMode=i.bool();continue}case 4:{if(t!==34)break;r.databaseFile=i.string();continue}case 5:{if(t!==42)break;r.scheduleTable=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{bitRate:o(e.bitRate)?globalThis.Number(e.bitRate):0,protocolVersion:o(e.protocolVersion)?globalThis.String(e.protocolVersion):"",masterMode:o(e.masterMode)?globalThis.Boolean(e.masterMode):!1,databaseFile:o(e.databaseFile)?globalThis.String(e.databaseFile):void 0,scheduleTable:o(e.scheduleTable)?globalThis.String(e.scheduleTable):void 0}},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),n},create(e){return p.fromPartial(e??{})},fromPartial(e){const n=Me();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}};function he(){return{channelNumber:0,lockedToSerialNumber:!1,deviceProductCode:"",deviceSerialNumber:"",channelNumberOnDevice:0,deviceCardType:0,deviceCardNumber:0,canConfiguration:void 0,linConfiguration:void 0}}const v={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&&G.encode(e.canConfiguration,n.uint32(66).fork()).join(),e.linConfiguration!==void 0&&p.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 r=he();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;r.channelNumber=i.int32();continue}case 2:{if(t!==16)break;r.lockedToSerialNumber=i.bool();continue}case 3:{if(t!==26)break;r.deviceProductCode=i.string();continue}case 4:{if(t!==34)break;r.deviceSerialNumber=i.string();continue}case 5:{if(t!==40)break;r.channelNumberOnDevice=i.int32();continue}case 6:{if(t!==48)break;r.deviceCardType=i.int32();continue}case 7:{if(t!==56)break;r.deviceCardNumber=i.int32();continue}case 8:{if(t!==66)break;r.canConfiguration=G.decode(i,i.uint32());continue}case 9:{if(t!==74)break;r.linConfiguration=p.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{channelNumber:o(e.channelNumber)?globalThis.Number(e.channelNumber):0,lockedToSerialNumber:o(e.lockedToSerialNumber)?globalThis.Boolean(e.lockedToSerialNumber):!1,deviceProductCode:o(e.deviceProductCode)?globalThis.String(e.deviceProductCode):"",deviceSerialNumber:o(e.deviceSerialNumber)?globalThis.String(e.deviceSerialNumber):"",channelNumberOnDevice:o(e.channelNumberOnDevice)?globalThis.Number(e.channelNumberOnDevice):0,deviceCardType:o(e.deviceCardType)?globalThis.Number(e.deviceCardType):0,deviceCardNumber:o(e.deviceCardNumber)?globalThis.Number(e.deviceCardNumber):0,canConfiguration:o(e.canConfiguration)?G.fromJSON(e.canConfiguration):void 0,linConfiguration:o(e.linConfiguration)?p.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=G.toJSON(e.canConfiguration)),e.linConfiguration!==void 0&&(n.linConfiguration=p.toJSON(e.linConfiguration)),n},create(e){return v.fromPartial(e??{})},fromPartial(e){const n=he();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?G.fromPartial(e.canConfiguration):void 0,n.linConfiguration=e.linConfiguration!==void 0&&e.linConfiguration!==null?p.fromPartial(e.linConfiguration):void 0,n}};function me(){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 k={encode(e,n=new d){return Object.entries(e.channelIdentifiers).forEach(([i,a])=>{z.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 r=me();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;const u=z.decode(i,i.uint32());u.value!==void 0&&(r.channelIdentifiers[u.key]=u.value);continue}case 2:{if(t!==18)break;r.logFile=i.string();continue}case 3:{if(t!==24)break;r.iterations=i.int32();continue}case 4:{if(t!==32)break;r.sampleRateMs=i.int32();continue}case 5:{if(t!==40)break;r.transceiverMode=i.int32();continue}case 6:{if(t!==48)break;r.includeErrorFrames=i.bool();continue}case 7:{if(t!==56)break;r.sendFirstMessageMode=i.int32();continue}case 8:{if(t!==64)break;r.timeOffsetMs=i.int32();continue}case 9:{if(t!==73)break;r.timeFactor=i.double();continue}case 10:{if(t!==81)break;r.lowerVariance=i.double();continue}case 11:{if(t!==89)break;r.higherVariance=i.double();continue}case 12:{if(t!==96)break;r.increaseSpeed=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{channelIdentifiers:zn(e.channelIdentifiers)?Object.entries(e.channelIdentifiers).reduce((n,[i,a])=>(n[i]=String(a),n),{}):{},logFile:o(e.logFile)?globalThis.String(e.logFile):"",iterations:o(e.iterations)?globalThis.Number(e.iterations):0,sampleRateMs:o(e.sampleRateMs)?globalThis.Number(e.sampleRateMs):0,transceiverMode:o(e.transceiverMode)?globalThis.Number(e.transceiverMode):0,includeErrorFrames:o(e.includeErrorFrames)?globalThis.Boolean(e.includeErrorFrames):!1,sendFirstMessageMode:o(e.sendFirstMessageMode)?globalThis.Number(e.sendFirstMessageMode):0,timeOffsetMs:o(e.timeOffsetMs)?globalThis.Number(e.timeOffsetMs):void 0,timeFactor:o(e.timeFactor)?globalThis.Number(e.timeFactor):void 0,lowerVariance:o(e.lowerVariance)?globalThis.Number(e.lowerVariance):void 0,higherVariance:o(e.higherVariance)?globalThis.Number(e.higherVariance):void 0,increaseSpeed:o(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,r])=>{n.channelIdentifiers[a]=r}))}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 k.fromPartial(e??{})},fromPartial(e){const n=me();return n.channelIdentifiers=Object.entries(e.channelIdentifiers??{}).reduce((i,[a,r])=>(r!==void 0&&(i[a]=globalThis.String(r)),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 ge(){return{key:"",value:""}}const z={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 r=ge();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;r.key=i.string();continue}case 2:{if(t!==18)break;r.value=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{key:o(e.key)?globalThis.String(e.key):"",value:o(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 z.fromPartial(e??{})},fromPartial(e){const n=ge();return n.key=e.key??"",n.value=e.value??"",n}};function Le(){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 P={encode(e,n=new d){return e.channelIdentifier!==""&&n.uint32(10).string(e.channelIdentifier),e.frame!==void 0&&g.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 r=Le();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;r.channelIdentifier=i.string();continue}case 2:{if(t!==18)break;r.frame=g.decode(i,i.uint32());continue}case 3:{if(t!==24)break;r.randomInterval=i.bool();continue}case 4:{if(t!==33)break;r.constantIntervalMs=i.double();continue}case 5:{if(t!==40)break;r.randomIntervalMinMs=i.int32();continue}case 6:{if(t!==48)break;r.randomIntervalMaxMs=i.int32();continue}case 7:{if(t!==56)break;r.numberOfMessages=i.int32();continue}case 8:{if(t!==64)break;r.randomDataLength=i.bool();continue}case 9:{if(t!==72)break;r.randomMessageData=i.bool();continue}case 10:{if(t!==80)break;r.randomIdentifier=i.bool();continue}case 11:{if(t!==88)break;r.scanIdentifier=i.bool();continue}case 12:{if(t!==96)break;r.identifierMin=i.int32();continue}case 13:{if(t!==104)break;r.identifierMax=i.int32();continue}case 14:{if(t!==112)break;r.randomBurstSize=i.bool();continue}case 15:{if(t!==120)break;r.constantBurstSize=i.int32();continue}case 16:{if(t!==128)break;r.randomBurstSizeMin=i.int32();continue}case 17:{if(t!==136)break;r.randomBurstSizeMax=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{channelIdentifier:o(e.channelIdentifier)?globalThis.String(e.channelIdentifier):"",frame:o(e.frame)?g.fromJSON(e.frame):void 0,randomInterval:o(e.randomInterval)?globalThis.Boolean(e.randomInterval):!1,constantIntervalMs:o(e.constantIntervalMs)?globalThis.Number(e.constantIntervalMs):0,randomIntervalMinMs:o(e.randomIntervalMinMs)?globalThis.Number(e.randomIntervalMinMs):0,randomIntervalMaxMs:o(e.randomIntervalMaxMs)?globalThis.Number(e.randomIntervalMaxMs):0,numberOfMessages:o(e.numberOfMessages)?globalThis.Number(e.numberOfMessages):0,randomDataLength:o(e.randomDataLength)?globalThis.Boolean(e.randomDataLength):!1,randomMessageData:o(e.randomMessageData)?globalThis.Boolean(e.randomMessageData):!1,randomIdentifier:o(e.randomIdentifier)?globalThis.Boolean(e.randomIdentifier):!1,scanIdentifier:o(e.scanIdentifier)?globalThis.Boolean(e.scanIdentifier):!1,identifierMin:o(e.identifierMin)?globalThis.Number(e.identifierMin):0,identifierMax:o(e.identifierMax)?globalThis.Number(e.identifierMax):0,randomBurstSize:o(e.randomBurstSize)?globalThis.Boolean(e.randomBurstSize):!1,constantBurstSize:o(e.constantBurstSize)?globalThis.Number(e.constantBurstSize):0,randomBurstSizeMin:o(e.randomBurstSizeMin)?globalThis.Number(e.randomBurstSizeMin):0,randomBurstSizeMax:o(e.randomBurstSizeMax)?globalThis.Number(e.randomBurstSizeMax):0}},toJSON(e){const n={};return e.channelIdentifier!==""&&(n.channelIdentifier=e.channelIdentifier),e.frame!==void 0&&(n.frame=g.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 P.fromPartial(e??{})},fromPartial(e){const n=Le();return n.channelIdentifier=e.channelIdentifier??"",n.frame=e.frame!==void 0&&e.frame!==null?g.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 Ce(){return{stdCanIds:"",extCanIds:"",filterType:""}}const I={encode(e,n=new d){return e.stdCanIds!==""&&n.uint32(10).string(e.stdCanIds),e.extCanIds!==""&&n.uint32(18).string(e.extCanIds),e.filterType!==""&&n.uint32(26).string(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 r=Ce();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;r.stdCanIds=i.string();continue}case 2:{if(t!==18)break;r.extCanIds=i.string();continue}case 3:{if(t!==26)break;r.filterType=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{stdCanIds:o(e.stdCanIds)?globalThis.String(e.stdCanIds):"",extCanIds:o(e.extCanIds)?globalThis.String(e.extCanIds):"",filterType:o(e.filterType)?globalThis.String(e.filterType):""}},toJSON(e){const n={};return e.stdCanIds!==""&&(n.stdCanIds=e.stdCanIds),e.extCanIds!==""&&(n.extCanIds=e.extCanIds),e.filterType!==""&&(n.filterType=e.filterType),n},create(e){return I.fromPartial(e??{})},fromPartial(e){const n=Ce();return n.stdCanIds=e.stdCanIds??"",n.extCanIds=e.extCanIds??"",n.filterType=e.filterType??"",n}};function Ge(){return{databaseFiles:[]}}const D={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 r=Ge();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;r.databaseFiles.push(i.string());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},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 D.fromPartial(e??{})},fromPartial(e){var i;const n=Ge();return n.databaseFiles=((i=e.databaseFiles)==null?void 0:i.map(a=>a))||[],n}};function pe(){return{j1939Settings:void 0}}const b={encode(e,n=new d){return e.j1939Settings!==void 0&&y.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 r=pe();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;r.j1939Settings=y.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{j1939Settings:o(e.j1939Settings)?y.fromJSON(e.j1939Settings):void 0}},toJSON(e){const n={};return e.j1939Settings!==void 0&&(n.j1939Settings=y.toJSON(e.j1939Settings)),n},create(e){return b.fromPartial(e??{})},fromPartial(e){const n=pe();return n.j1939Settings=e.j1939Settings!==void 0&&e.j1939Settings!==null?y.fromPartial(e.j1939Settings):void 0,n}};function ve(){return{}}const y={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 r=ve();for(;i.pos<a;){const t=i.uint32();if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{}},toJSON(e){return{}},create(e){return y.fromPartial(e??{})},fromPartial(e){return ve()}};function ke(){return{extensionName:"",configuration:void 0}}const V={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 r=ke();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;r.extensionName=i.string();continue}case 2:{if(t!==18)break;r.configuration=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{extensionName:o(e.extensionName)?globalThis.String(e.extensionName):"",configuration:o(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 V.fromPartial(e??{})},fromPartial(e){const n=ke();return n.extensionName=e.extensionName??"",n.configuration=e.configuration??void 0,n}};function Pe(){return{frameId:"",frameIdType:""}}const U={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 r=Pe();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;r.frameId=i.string();continue}case 2:{if(t!==18)break;r.frameIdType=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{frameId:o(e.frameId)?globalThis.String(e.frameId):"",frameIdType:o(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 U.fromPartial(e??{})},fromPartial(e){const n=Pe();return n.frameId=e.frameId??"",n.frameIdType=e.frameIdType??"",n}};function De(){return{frameId:"",signalQualifiedName:"",signalValue:0,signalMinValue:0,signalMaxValue:0,operator:0,frameIdType:""}}const J={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 r=De();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;r.frameId=i.string();continue}case 2:{if(t!==18)break;r.signalQualifiedName=i.string();continue}case 3:{if(t!==25)break;r.signalValue=i.double();continue}case 4:{if(t!==33)break;r.signalMinValue=i.double();continue}case 5:{if(t!==41)break;r.signalMaxValue=i.double();continue}case 6:{if(t!==48)break;r.operator=i.int32();continue}case 7:{if(t!==58)break;r.frameIdType=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{frameId:o(e.frameId)?globalThis.String(e.frameId):"",signalQualifiedName:o(e.signalQualifiedName)?globalThis.String(e.signalQualifiedName):"",signalValue:o(e.signalValue)?globalThis.Number(e.signalValue):0,signalMinValue:o(e.signalMinValue)?globalThis.Number(e.signalMinValue):0,signalMaxValue:o(e.signalMaxValue)?globalThis.Number(e.signalMaxValue):0,operator:o(e.operator)?En(e.operator):0,frameIdType:o(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=An(e.operator)),e.frameIdType!==""&&(n.frameIdType=e.frameIdType),n},create(e){return J.fromPartial(e??{})},fromPartial(e){const n=De();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 be(){return{timeoutTrigger:void 0,frameReceivedTrigger:void 0,signalValueTrigger:void 0}}const S={encode(e,n=new d){return e.timeoutTrigger!==void 0&&n.uint32(17).double(e.timeoutTrigger),e.frameReceivedTrigger!==void 0&&U.encode(e.frameReceivedTrigger,n.uint32(26).fork()).join(),e.signalValueTrigger!==void 0&&J.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 r=be();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 2:{if(t!==17)break;r.timeoutTrigger=i.double();continue}case 3:{if(t!==26)break;r.frameReceivedTrigger=U.decode(i,i.uint32());continue}case 4:{if(t!==34)break;r.signalValueTrigger=J.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{timeoutTrigger:o(e.timeoutTrigger)?globalThis.Number(e.timeoutTrigger):void 0,frameReceivedTrigger:o(e.frameReceivedTrigger)?U.fromJSON(e.frameReceivedTrigger):void 0,signalValueTrigger:o(e.signalValueTrigger)?J.fromJSON(e.signalValueTrigger):void 0}},toJSON(e){const n={};return e.timeoutTrigger!==void 0&&(n.timeoutTrigger=e.timeoutTrigger),e.frameReceivedTrigger!==void 0&&(n.frameReceivedTrigger=U.toJSON(e.frameReceivedTrigger)),e.signalValueTrigger!==void 0&&(n.signalValueTrigger=J.toJSON(e.signalValueTrigger)),n},create(e){return S.fromPartial(e??{})},fromPartial(e){const n=be();return n.timeoutTrigger=e.timeoutTrigger??void 0,n.frameReceivedTrigger=e.frameReceivedTrigger!==void 0&&e.frameReceivedTrigger!==null?U.fromPartial(e.frameReceivedTrigger):void 0,n.signalValueTrigger=e.signalValueTrigger!==void 0&&e.signalValueTrigger!==null?J.fromPartial(e.signalValueTrigger):void 0,n}};function ye(){return{fileName:"",fileFormat:0,fileConflictAction:0,canMessageFilter:void 0,startTriggerSettings:[],startTriggersOperator:0,stopTriggerSettings:[],stopTriggersOperator:0,autoRestartAfterStop:!1,writeFileHeader:void 0,dataInHex:void 0,idInHex:void 0,decimalSeparator:void 0,colSeparator:void 0,dataBytesLimit:void 0,numberOfTimeDecimals:void 0,timeReference:void 0,calendarTime:void 0,utcTime:void 0}}const B={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&&I.encode(e.canMessageFilter,n.uint32(34).fork()).join();for(const i of e.startTriggerSettings)S.encode(i,n.uint32(42).fork()).join();e.startTriggersOperator!==0&&n.uint32(48).int32(e.startTriggersOperator);for(const i of e.stopTriggerSettings)S.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.dataInHex!==void 0&&n.uint32(88).bool(e.dataInHex),e.idInHex!==void 0&&n.uint32(96).bool(e.idInHex),e.decimalSeparator!==void 0&&n.uint32(104).int32(e.decimalSeparator),e.colSeparator!==void 0&&n.uint32(112).int32(e.colSeparator),e.dataBytesLimit!==void 0&&n.uint32(120).int32(e.dataBytesLimit),e.numberOfTimeDecimals!==void 0&&n.uint32(128).int32(e.numberOfTimeDecimals),e.timeReference!==void 0&&n.uint32(136).int32(e.timeReference),e.calendarTime!==void 0&&n.uint32(144).bool(e.calendarTime),e.utcTime!==void 0&&n.uint32(152).bool(e.utcTime),n},decode(e,n){const i=e instanceof s?e:new s(e);let a=n===void 0?i.len:i.pos+n;const r=ye();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;r.fileName=i.string();continue}case 2:{if(t!==16)break;r.fileFormat=i.int32();continue}case 3:{if(t!==24)break;r.fileConflictAction=i.int32();continue}case 4:{if(t!==34)break;r.canMessageFilter=I.decode(i,i.uint32());continue}case 5:{if(t!==42)break;r.startTriggerSettings.push(S.decode(i,i.uint32()));continue}case 6:{if(t!==48)break;r.startTriggersOperator=i.int32();continue}case 7:{if(t!==58)break;r.stopTriggerSettings.push(S.decode(i,i.uint32()));continue}case 8:{if(t!==64)break;r.stopTriggersOperator=i.int32();continue}case 9:{if(t!==72)break;r.autoRestartAfterStop=i.bool();continue}case 10:{if(t!==80)break;r.writeFileHeader=i.bool();continue}case 11:{if(t!==88)break;r.dataInHex=i.bool();continue}case 12:{if(t!==96)break;r.idInHex=i.bool();continue}case 13:{if(t!==104)break;r.decimalSeparator=i.int32();continue}case 14:{if(t!==112)break;r.colSeparator=i.int32();continue}case 15:{if(t!==120)break;r.dataBytesLimit=i.int32();continue}case 16:{if(t!==128)break;r.numberOfTimeDecimals=i.int32();continue}case 17:{if(t!==136)break;r.timeReference=i.int32();continue}case 18:{if(t!==144)break;r.calendarTime=i.bool();continue}case 19:{if(t!==152)break;r.utcTime=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{fileName:o(e.fileName)?globalThis.String(e.fileName):"",fileFormat:o(e.fileFormat)?Rn(e.fileFormat):0,fileConflictAction:o(e.fileConflictAction)?Fn(e.fileConflictAction):0,canMessageFilter:o(e.canMessageFilter)?I.fromJSON(e.canMessageFilter):void 0,startTriggerSettings:globalThis.Array.isArray(e==null?void 0:e.startTriggerSettings)?e.startTriggerSettings.map(n=>S.fromJSON(n)):[],startTriggersOperator:o(e.startTriggersOperator)?W(e.startTriggersOperator):0,stopTriggerSettings:globalThis.Array.isArray(e==null?void 0:e.stopTriggerSettings)?e.stopTriggerSettings.map(n=>S.fromJSON(n)):[],stopTriggersOperator:o(e.stopTriggersOperator)?W(e.stopTriggersOperator):0,autoRestartAfterStop:o(e.autoRestartAfterStop)?globalThis.Boolean(e.autoRestartAfterStop):!1,writeFileHeader:o(e.writeFileHeader)?globalThis.Boolean(e.writeFileHeader):void 0,dataInHex:o(e.dataInHex)?globalThis.Boolean(e.dataInHex):void 0,idInHex:o(e.idInHex)?globalThis.Boolean(e.idInHex):void 0,decimalSeparator:o(e.decimalSeparator)?mn(e.decimalSeparator):void 0,colSeparator:o(e.colSeparator)?Cn(e.colSeparator):void 0,dataBytesLimit:o(e.dataBytesLimit)?globalThis.Number(e.dataBytesLimit):void 0,numberOfTimeDecimals:o(e.numberOfTimeDecimals)?globalThis.Number(e.numberOfTimeDecimals):void 0,timeReference:o(e.timeReference)?vn(e.timeReference):void 0,calendarTime:o(e.calendarTime)?globalThis.Boolean(e.calendarTime):void 0,utcTime:o(e.utcTime)?globalThis.Boolean(e.utcTime):void 0}},toJSON(e){var i,a;const n={};return e.fileName!==""&&(n.fileName=e.fileName),e.fileFormat!==0&&(n.fileFormat=In(e.fileFormat)),e.fileConflictAction!==0&&(n.fileConflictAction=Mn(e.fileConflictAction)),e.canMessageFilter!==void 0&&(n.canMessageFilter=I.toJSON(e.canMessageFilter)),(i=e.startTriggerSettings)!=null&&i.length&&(n.startTriggerSettings=e.startTriggerSettings.map(r=>S.toJSON(r))),e.startTriggersOperator!==0&&(n.startTriggersOperator=$(e.startTriggersOperator)),(a=e.stopTriggerSettings)!=null&&a.length&&(n.stopTriggerSettings=e.stopTriggerSettings.map(r=>S.toJSON(r))),e.stopTriggersOperator!==0&&(n.stopTriggersOperator=$(e.stopTriggersOperator)),e.autoRestartAfterStop!==!1&&(n.autoRestartAfterStop=e.autoRestartAfterStop),e.writeFileHeader!==void 0&&(n.writeFileHeader=e.writeFileHeader),e.dataInHex!==void 0&&(n.dataInHex=e.dataInHex),e.idInHex!==void 0&&(n.idInHex=e.idInHex),e.decimalSeparator!==void 0&&(n.decimalSeparator=gn(e.decimalSeparator)),e.colSeparator!==void 0&&(n.colSeparator=Gn(e.colSeparator)),e.dataBytesLimit!==void 0&&(n.dataBytesLimit=Math.round(e.dataBytesLimit)),e.numberOfTimeDecimals!==void 0&&(n.numberOfTimeDecimals=Math.round(e.numberOfTimeDecimals)),e.timeReference!==void 0&&(n.timeReference=kn(e.timeReference)),e.calendarTime!==void 0&&(n.calendarTime=e.calendarTime),e.utcTime!==void 0&&(n.utcTime=e.utcTime),n},create(e){return B.fromPartial(e??{})},fromPartial(e){var i,a;const n=ye();return n.fileName=e.fileName??"",n.fileFormat=e.fileFormat??0,n.fileConflictAction=e.fileConflictAction??0,n.canMessageFilter=e.canMessageFilter!==void 0&&e.canMessageFilter!==null?I.fromPartial(e.canMessageFilter):void 0,n.startTriggerSettings=((i=e.startTriggerSettings)==null?void 0:i.map(r=>S.fromPartial(r)))||[],n.startTriggersOperator=e.startTriggersOperator??0,n.stopTriggerSettings=((a=e.stopTriggerSettings)==null?void 0:a.map(r=>S.fromPartial(r)))||[],n.stopTriggersOperator=e.stopTriggersOperator??0,n.autoRestartAfterStop=e.autoRestartAfterStop??!1,n.writeFileHeader=e.writeFileHeader??void 0,n.dataInHex=e.dataInHex??void 0,n.idInHex=e.idInHex??void 0,n.decimalSeparator=e.decimalSeparator??void 0,n.colSeparator=e.colSeparator??void 0,n.dataBytesLimit=e.dataBytesLimit??void 0,n.numberOfTimeDecimals=e.numberOfTimeDecimals??void 0,n.timeReference=e.timeReference??void 0,n.calendarTime=e.calendarTime??void 0,n.utcTime=e.utcTime??void 0,n}};function Ve(){return{identifier:"",name:"",description:[],readOnlyProperties:!1,readOnlyConnections:!1,disabled:!1}}const _={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 r=Ve();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;r.identifier=i.string();continue}case 2:{if(t!==18)break;r.name=i.string();continue}case 3:{if(t!==26)break;r.description.push(i.string());continue}case 4:{if(t!==32)break;r.readOnlyProperties=i.bool();continue}case 5:{if(t!==40)break;r.readOnlyConnections=i.bool();continue}case 6:{if(t!==48)break;r.disabled=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{identifier:o(e.identifier)?globalThis.String(e.identifier):"",name:o(e.name)?globalThis.String(e.name):"",description:globalThis.Array.isArray(e==null?void 0:e.description)?e.description.map(n=>globalThis.String(n)):[],readOnlyProperties:o(e.readOnlyProperties)?globalThis.Boolean(e.readOnlyProperties):!1,readOnlyConnections:o(e.readOnlyConnections)?globalThis.Boolean(e.readOnlyConnections):!1,disabled:o(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 _.fromPartial(e??{})},fromPartial(e){var i;const n=Ve();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 Ue(){return{baseNode:void 0,isDataGenerator:!1,channelSettings:void 0,logReplaySettings:void 0,trafficGeneratorSettings:void 0}}const x={encode(e,n=new d){return e.baseNode!==void 0&&_.encode(e.baseNode,n.uint32(10).fork()).join(),e.isDataGenerator!==!1&&n.uint32(16).bool(e.isDataGenerator),e.channelSettings!==void 0&&v.encode(e.channelSettings,n.uint32(26).fork()).join(),e.logReplaySettings!==void 0&&k.encode(e.logReplaySettings,n.uint32(34).fork()).join(),e.trafficGeneratorSettings!==void 0&&P.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 r=Ue();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;r.baseNode=_.decode(i,i.uint32());continue}case 2:{if(t!==16)break;r.isDataGenerator=i.bool();continue}case 3:{if(t!==26)break;r.channelSettings=v.decode(i,i.uint32());continue}case 4:{if(t!==34)break;r.logReplaySettings=k.decode(i,i.uint32());continue}case 5:{if(t!==42)break;r.trafficGeneratorSettings=P.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{baseNode:o(e.baseNode)?_.fromJSON(e.baseNode):void 0,isDataGenerator:o(e.isDataGenerator)?globalThis.Boolean(e.isDataGenerator):!1,channelSettings:o(e.channelSettings)?v.fromJSON(e.channelSettings):void 0,logReplaySettings:o(e.logReplaySettings)?k.fromJSON(e.logReplaySettings):void 0,trafficGeneratorSettings:o(e.trafficGeneratorSettings)?P.fromJSON(e.trafficGeneratorSettings):void 0}},toJSON(e){const n={};return e.baseNode!==void 0&&(n.baseNode=_.toJSON(e.baseNode)),e.isDataGenerator!==!1&&(n.isDataGenerator=e.isDataGenerator),e.channelSettings!==void 0&&(n.channelSettings=v.toJSON(e.channelSettings)),e.logReplaySettings!==void 0&&(n.logReplaySettings=k.toJSON(e.logReplaySettings)),e.trafficGeneratorSettings!==void 0&&(n.trafficGeneratorSettings=P.toJSON(e.trafficGeneratorSettings)),n},create(e){return x.fromPartial(e??{})},fromPartial(e){const n=Ue();return n.baseNode=e.baseNode!==void 0&&e.baseNode!==null?_.fromPartial(e.baseNode):void 0,n.isDataGenerator=e.isDataGenerator??!1,n.channelSettings=e.channelSettings!==void 0&&e.channelSettings!==null?v.fromPartial(e.channelSettings):void 0,n.logReplaySettings=e.logReplaySettings!==void 0&&e.logReplaySettings!==null?k.fromPartial(e.logReplaySettings):void 0,n.trafficGeneratorSettings=e.trafficGeneratorSettings!==void 0&&e.trafficGeneratorSettings!==null?P.fromPartial(e.trafficGeneratorSettings):void 0,n}};function Je(){return{baseNode:void 0,connectedNodes:[],canMessageFilterSettings:void 0,databasesSettings:void 0,interpreterSettings:void 0,extensionSettings:void 0}}const w={encode(e,n=new d){e.baseNode!==void 0&&_.encode(e.baseNode,n.uint32(10).fork()).join();for(const i of e.connectedNodes)n.uint32(18).string(i);return e.canMessageFilterSettings!==void 0&&I.encode(e.canMessageFilterSettings,n.uint32(26).fork()).join(),e.databasesSettings!==void 0&&D.encode(e.databasesSettings,n.uint32(34).fork()).join(),e.interpreterSettings!==void 0&&b.encode(e.interpreterSettings,n.uint32(42).fork()).join(),e.extensionSettings!==void 0&&V.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 r=Je();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;r.baseNode=_.decode(i,i.uint32());continue}case 2:{if(t!==18)break;r.connectedNodes.push(i.string());continue}case 3:{if(t!==26)break;r.canMessageFilterSettings=I.decode(i,i.uint32());continue}case 4:{if(t!==34)break;r.databasesSettings=D.decode(i,i.uint32());continue}case 5:{if(t!==42)break;r.interpreterSettings=b.decode(i,i.uint32());continue}case 6:{if(t!==50)break;r.extensionSettings=V.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{baseNode:o(e.baseNode)?_.fromJSON(e.baseNode):void 0,connectedNodes:globalThis.Array.isArray(e==null?void 0:e.connectedNodes)?e.connectedNodes.map(n=>globalThis.String(n)):[],canMessageFilterSettings:o(e.canMessageFilterSettings)?I.fromJSON(e.canMessageFilterSettings):void 0,databasesSettings:o(e.databasesSettings)?D.fromJSON(e.databasesSettings):void 0,interpreterSettings:o(e.interpreterSettings)?b.fromJSON(e.interpreterSettings):void 0,extensionSettings:o(e.extensionSettings)?V.fromJSON(e.extensionSettings):void 0}},toJSON(e){var i;const n={};return e.baseNode!==void 0&&(n.baseNode=_.toJSON(e.baseNode)),(i=e.connectedNodes)!=null&&i.length&&(n.connectedNodes=e.connectedNodes),e.canMessageFilterSettings!==void 0&&(n.canMessageFilterSettings=I.toJSON(e.canMessageFilterSettings)),e.databasesSettings!==void 0&&(n.databasesSettings=D.toJSON(e.databasesSettings)),e.interpreterSettings!==void 0&&(n.interpreterSettings=b.toJSON(e.interpreterSettings)),e.extensionSettings!==void 0&&(n.extensionSettings=V.toJSON(e.extensionSettings)),n},create(e){return w.fromPartial(e??{})},fromPartial(e){var i;const n=Je();return n.baseNode=e.baseNode!==void 0&&e.baseNode!==null?_.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?I.fromPartial(e.canMessageFilterSettings):void 0,n.databasesSettings=e.databasesSettings!==void 0&&e.databasesSettings!==null?D.fromPartial(e.databasesSettings):void 0,n.interpreterSettings=e.interpreterSettings!==void 0&&e.interpreterSettings!==null?b.fromPartial(e.interpreterSettings):void 0,n.extensionSettings=e.extensionSettings!==void 0&&e.extensionSettings!==null?V.fromPartial(e.extensionSettings):void 0,n}};function Be(){return{baseNode:void 0,connectedNodes:[],messageLoggerSettings:void 0}}const H={encode(e,n=new d){e.baseNode!==void 0&&_.encode(e.baseNode,n.uint32(10).fork()).join();for(const i of e.connectedNodes)n.uint32(18).string(i);return e.messageLoggerSettings!==void 0&&B.encode(e.messageLoggerSettings,n.uint32(26).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 r=Be();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;r.baseNode=_.decode(i,i.uint32());continue}case 2:{if(t!==18)break;r.connectedNodes.push(i.string());continue}case 3:{if(t!==26)break;r.messageLoggerSettings=B.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{baseNode:o(e.baseNode)?_.fromJSON(e.baseNode):void 0,connectedNodes:globalThis.Array.isArray(e==null?void 0:e.connectedNodes)?e.connectedNodes.map(n=>globalThis.String(n)):[],messageLoggerSettings:o(e.messageLoggerSettings)?B.fromJSON(e.messageLoggerSettings):void 0}},toJSON(e){var i;const n={};return e.baseNode!==void 0&&(n.baseNode=_.toJSON(e.baseNode)),(i=e.connectedNodes)!=null&&i.length&&(n.connectedNodes=e.connectedNodes),e.messageLoggerSettings!==void 0&&(n.messageLoggerSettings=B.toJSON(e.messageLoggerSettings)),n},create(e){return H.fromPartial(e??{})},fromPartial(e){var i;const n=Be();return n.baseNode=e.baseNode!==void 0&&e.baseNode!==null?_.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?B.fromPartial(e.messageLoggerSettings):void 0,n}};function xe(){return{sources:[],dataProcessors:[],targets:[],language:""}}const Pn={encode(e,n=new d){for(const i of e.sources)x.encode(i,n.uint32(10).fork()).join();for(const i of e.dataProcessors)w.encode(i,n.uint32(18).fork()).join();for(const i of e.targets)H.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 r=xe();for(;i.pos<a;){const t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;r.sources.push(x.decode(i,i.uint32()));continue}case 2:{if(t!==18)break;r.dataProcessors.push(w.decode(i,i.uint32()));continue}case 3:{if(t!==26)break;r.targets.push(H.decode(i,i.uint32()));continue}case 4:{if(t!==34)break;r.language=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return r},fromJSON(e){return{sources:globalThis.Array.isArray(e==null?void 0:e.sources)?e.sources.map(n=>x.fromJSON(n)):[],dataProcessors:globalThis.Array.isArray(e==null?void 0:e.dataProcessors)?e.dataProcessors.map(n=>w.fromJSON(n)):[],targets:globalThis.Array.isArray(e==null?void 0:e.targets)?e.targets.map(n=>H.fromJSON(n)):[],language:o(e.language)?globalThis.String(e.language):""}},toJSON(e){var i,a,r;const n={};return(i=e.sources)!=null&&i.length&&(n.sources=e.sources.map(t=>x.toJSON(t))),(a=e.dataProcessors)!=null&&a.length&&(n.dataProcessors=e.dataProcessors.map(t=>w.toJSON(t))),(r=e.targets)!=null&&r.length&&(n.targets=e.targets.map(t=>H.toJSON(t))),e.language!==""&&(n.language=e.language),n},create(e){return Pn.fromPartial(e??{})},fromPartial(e){var i,a,r;const n=xe();return n.sources=((i=e.sources)==null?void 0:i.map(t=>x.fromPartial(t)))||[],n.dataProcessors=((a=e.dataProcessors)==null?void 0:a.map(t=>w.fromPartial(t)))||[],n.targets=((r=e.targets)==null?void 0:r.map(t=>H.fromPartial(t)))||[],n.language=e.language??"",n}};function zn(e){return typeof e=="object"&&e!==null}function o(e){return e!=null}exports.AccessMode=fn;exports.BaseNodeProperties=_;exports.BinaryReader=s;exports.BinaryWriter=d;exports.CanBusSpeed=A;exports.CanChannelConfiguration=G;exports.CanFrameFlag=$e;exports.CanFrameFlags=c;exports.CanMessageFilterSettings=I;exports.CanMode=un;exports.ChannelSettings=v;exports.DataProcessorNodeProperties=w;exports.DatabasesSettings=D;exports.DecimalChar=hn;exports.FileConflictAction=Tn;exports.Frame=m;exports.FrameDefinition=L;exports.FrameDefinitions=on;exports.FramePropertyValue=F;exports.FrameReceivedTrigger=U;exports.Frame_PropertiesEntry=Z;exports.Frames=an;exports.InterpreterSettings=b;exports.J1939InterpreterSettings=y;exports.LinChannelConfiguration=p;exports.LinFrameFlag=nn;exports.LinFrameFlags=R;exports.LogFileFormat=On;exports.LogReplaySettings=k;exports.LogReplaySettings_ChannelIdentifiersEntry=z;exports.MeasurementSetup=Pn;exports.MessageLoggerSettings=B;exports.PeriodicTransmissionSettings=P;exports.ScheduleTable=sn;exports.ScheduleTableEntry=C;exports.Separator=Ln;exports.ServiceExtensionSettings=V;exports.SignalDefinition=O;exports.SignalDefinition_EnumValuesEntry=Q;exports.SignalDefinitions=We;exports.SignalEncoding=Qe;exports.SignalType=qe;exports.SignalValue=h;exports.SignalValueTrigger=J;exports.SignalValueTriggerOperator=Nn;exports.SourceNodeProperties=x;exports.TargetNodeProperties=H;exports.TimeReference=pn;exports.TriggerOperator=Sn;exports.TriggerSettings=S;exports.WriteFrame=g;exports.accessModeFromJSON=cn;exports.accessModeToJSON=_n;exports.canFrameFlagFromJSON=je;exports.canFrameFlagToJSON=en;exports.canModeFromJSON=dn;exports.canModeToJSON=ln;exports.decimalCharFromJSON=mn;exports.decimalCharToJSON=gn;exports.fileConflictActionFromJSON=Fn;exports.fileConflictActionToJSON=Mn;exports.linFrameFlagFromJSON=tn;exports.linFrameFlagToJSON=rn;exports.logFileFormatFromJSON=Rn;exports.logFileFormatToJSON=In;exports.separatorFromJSON=Cn;exports.separatorToJSON=Gn;exports.signalEncodingFromJSON=Ze;exports.signalEncodingToJSON=ze;exports.signalTypeFromJSON=Ke;exports.signalTypeToJSON=Ye;exports.signalValueTriggerOperatorFromJSON=En;exports.signalValueTriggerOperatorToJSON=An;exports.timeReferenceFromJSON=vn;exports.timeReferenceToJSON=kn;exports.triggerOperatorFromJSON=W;exports.triggerOperatorToJSON=$;