@dronedeploy/rocos-js-sdk 2.6.1 → 3.0.0-alpha.20
Sign up to get free protection for your applications and to get access to all the features.
- package/IRocosSDK.d.ts +3 -26
- package/IRocosSDK.js +1 -5
- package/README.md +18 -0
- package/RocosSDK.d.ts +6 -1
- package/RocosSDK.js +103 -95
- package/api/StreamRegister.d.ts +1 -1
- package/api/StreamRegister.js +23 -12
- package/api/atoms/StreamHeartbeat.js +3 -7
- package/api/streams/caller/CallerStream.d.ts +6 -6
- package/api/streams/caller/CallerStream.js +41 -49
- package/api/streams/caller/CallerStreamAbstract.d.ts +6 -11
- package/api/streams/caller/CallerStreamAbstract.js +55 -67
- package/api/streams/caller/CallerStreamNode.d.ts +6 -6
- package/api/streams/caller/CallerStreamNode.js +48 -61
- package/api/streams/command/CommandStream.d.ts +2 -4
- package/api/streams/command/CommandStream.js +28 -30
- package/api/streams/command/CommandStreamAbstract.d.ts +4 -8
- package/api/streams/command/CommandStreamAbstract.js +33 -42
- package/api/streams/command/CommandStreamNode.d.ts +2 -4
- package/api/streams/command/CommandStreamNode.js +16 -40
- package/api/streams/control/ControlStream.d.ts +4 -6
- package/api/streams/control/ControlStream.js +30 -36
- package/api/streams/control/ControlStreamAbstract.d.ts +6 -9
- package/api/streams/control/ControlStreamAbstract.js +57 -54
- package/api/streams/control/ControlStreamNode.d.ts +3 -5
- package/api/streams/control/ControlStreamNode.js +19 -44
- package/api/streams/fileAccessor/FileAccessorStream.d.ts +2 -4
- package/api/streams/fileAccessor/FileAccessorStream.js +42 -57
- package/api/streams/fileAccessor/FileAccessorStreamAbstract.d.ts +4 -9
- package/api/streams/fileAccessor/FileAccessorStreamAbstract.js +28 -48
- package/api/streams/fileAccessor/FileAccessorStreamNode.d.ts +1 -3
- package/api/streams/fileAccessor/FileAccessorStreamNode.js +23 -53
- package/api/streams/search/SearchStream.d.ts +2 -5
- package/api/streams/search/SearchStream.js +50 -74
- package/api/streams/search/SearchStreamAbstract.d.ts +4 -9
- package/api/streams/search/SearchStreamAbstract.js +33 -35
- package/api/streams/search/SearchStreamNode.d.ts +2 -5
- package/api/streams/search/SearchStreamNode.js +23 -48
- package/api/streams/telemetry/TelemetryStream.d.ts +4 -4
- package/api/streams/telemetry/TelemetryStream.js +49 -78
- package/api/streams/telemetry/TelemetryStreamAbstract.d.ts +8 -11
- package/api/streams/telemetry/TelemetryStreamAbstract.js +126 -145
- package/api/streams/telemetry/TelemetryStreamNode.d.ts +5 -5
- package/api/streams/telemetry/TelemetryStreamNode.js +44 -64
- package/api/streams/webRTCSignalling/WebRTCSignallingStream.d.ts +5 -10
- package/api/streams/webRTCSignalling/WebRTCSignallingStream.js +37 -20
- package/api/streams/webRTCSignalling/WebRTCSignallingStreamAbstract.d.ts +10 -13
- package/api/streams/webRTCSignalling/WebRTCSignallingStreamAbstract.js +37 -37
- package/constants/api.d.ts +14 -5
- package/constants/api.js +130 -126
- package/constants/auth.d.ts +2 -0
- package/constants/auth.js +2 -0
- package/constants/grpc.js +5 -8
- package/constants/identifier.js +6 -9
- package/constants/timezones.d.ts +1 -1
- package/constants/timezones.js +1 -4
- package/grpc/conker_pb.client.d.ts +78 -0
- package/grpc/conker_pb.client.js +55 -0
- package/grpc/conker_pb.d.ts +141 -0
- package/grpc/conker_pb.grpc-client.d.ts +81 -0
- package/grpc/conker_pb.grpc-client.js +58 -0
- package/grpc/conker_pb.js +104 -0
- package/grpc/filagree_pb.client.d.ts +68 -0
- package/grpc/filagree_pb.client.js +48 -0
- package/grpc/filagree_pb.d.ts +404 -0
- package/grpc/filagree_pb.grpc-client.d.ts +69 -0
- package/grpc/filagree_pb.grpc-client.js +51 -0
- package/grpc/filagree_pb.js +329 -0
- package/grpc/google/protobuf/descriptor_pb.d.ts +1798 -0
- package/grpc/google/protobuf/descriptor_pb.js +2378 -0
- package/grpc/google/protobuf/empty_pb.d.ts +23 -0
- package/grpc/google/protobuf/empty_pb.js +47 -0
- package/grpc/pigeon_pb.client.d.ts +96 -0
- package/grpc/pigeon_pb.client.js +72 -0
- package/grpc/pigeon_pb.d.ts +207 -0
- package/grpc/pigeon_pb.grpc-client.d.ts +98 -0
- package/grpc/pigeon_pb.grpc-client.js +68 -0
- package/grpc/pigeon_pb.js +144 -0
- package/grpc/rambo.uri.v1_pb.d.ts +73 -0
- package/grpc/rambo.uri.v1_pb.js +48 -0
- package/grpc/rambo.v1_pb.client.d.ts +66 -0
- package/grpc/rambo.v1_pb.client.js +48 -0
- package/grpc/rambo.v1_pb.d.ts +392 -0
- package/grpc/rambo.v1_pb.grpc-client.d.ts +56 -0
- package/grpc/rambo.v1_pb.grpc-client.js +44 -0
- package/grpc/rambo.v1_pb.js +272 -0
- package/grpc/serviette.uri.v1_pb.d.ts +89 -0
- package/grpc/serviette.uri.v1_pb.js +62 -0
- package/grpc/serviette.v1_pb.client.d.ts +225 -0
- package/grpc/serviette.v1_pb.client.js +174 -0
- package/grpc/serviette.v1_pb.d.ts +827 -0
- package/grpc/serviette.v1_pb.grpc-client.d.ts +215 -0
- package/grpc/serviette.v1_pb.grpc-client.js +162 -0
- package/grpc/serviette.v1_pb.js +553 -0
- package/grpc/slowlane_pb.client.d.ts +61 -0
- package/grpc/slowlane_pb.client.js +41 -0
- package/grpc/slowlane_pb.d.ts +303 -0
- package/grpc/slowlane_pb.grpc-client.d.ts +64 -0
- package/grpc/slowlane_pb.grpc-client.js +44 -0
- package/grpc/slowlane_pb.js +185 -0
- package/grpc/teletubby_pb.client.d.ts +145 -0
- package/grpc/teletubby_pb.client.js +104 -0
- package/grpc/teletubby_pb.d.ts +634 -0
- package/grpc/teletubby_pb.grpc-client.d.ts +152 -0
- package/grpc/teletubby_pb.grpc-client.js +100 -0
- package/grpc/teletubby_pb.js +1264 -0
- package/helpers/arrayRemove.js +2 -6
- package/helpers/arrayUnique.js +2 -6
- package/helpers/average.js +2 -7
- package/helpers/callerMessageHelpers.d.ts +14 -0
- package/helpers/callerMessageHelpers.js +86 -0
- package/helpers/cleanObject.js +17 -19
- package/helpers/cleanObject.spec.d.ts +1 -0
- package/helpers/cleanObject.spec.js +53 -0
- package/helpers/enviroment.js +4 -11
- package/helpers/flattenCallsignsLookup.d.ts +1 -1
- package/helpers/flattenCallsignsLookup.js +1 -5
- package/helpers/flattenObject.js +1 -5
- package/helpers/flattenObject.spec.d.ts +1 -0
- package/helpers/flattenObject.spec.js +29 -0
- package/helpers/flattenOneOf.d.ts +67 -0
- package/helpers/flattenOneOf.js +29 -0
- package/helpers/flattenOneOf.spec.d.ts +1 -0
- package/helpers/flattenOneOf.spec.js +157 -0
- package/helpers/formatServiceUrl.js +1 -5
- package/helpers/formatServiceUrl.spec.d.ts +1 -0
- package/helpers/formatServiceUrl.spec.js +16 -0
- package/helpers/generateUUID.js +3 -7
- package/helpers/getSubscriptionsDifference.d.ts +3 -3
- package/helpers/getSubscriptionsDifference.js +6 -10
- package/helpers/getURLSearchParams.d.ts +2 -0
- package/helpers/getURLSearchParams.js +9 -0
- package/helpers/getURLSearchParams.spec.d.ts +1 -0
- package/helpers/getURLSearchParams.spec.js +19 -0
- package/helpers/getUniqueConfigKey.js +1 -6
- package/helpers/getUniqueId.js +3 -7
- package/helpers/getUnixTimeMs.js +1 -5
- package/helpers/index.d.ts +3 -1
- package/helpers/index.js +5 -15
- package/helpers/nanosecondToMillisecond.d.ts +1 -1
- package/helpers/nanosecondToMillisecond.js +11 -6
- package/helpers/nanosecondToMillisecond.spec.d.ts +1 -0
- package/helpers/nanosecondToMillisecond.spec.js +20 -0
- package/helpers/randomString.js +1 -5
- package/helpers/standardDeviation.js +4 -8
- package/helpers/standardDeviation.spec.d.ts +1 -0
- package/helpers/standardDeviation.spec.js +11 -0
- package/helpers/stringToUint8Array.js +3 -7
- package/helpers/uint8ArrayToString.js +3 -8
- package/helpers/websandbox/connection.d.ts +67 -0
- package/helpers/websandbox/connection.js +133 -0
- package/helpers/websandbox/frame/frame.d.ts +12 -0
- package/helpers/websandbox/frame/frame.js +22 -0
- package/helpers/websandbox/frame/frame.source.d.ts +2 -0
- package/helpers/websandbox/frame/frame.source.js +5 -0
- package/helpers/websandbox/frame/index.d.ts +2 -0
- package/helpers/websandbox/frame/index.js +2 -0
- package/helpers/websandbox/frame/worker/index.d.ts +2 -0
- package/helpers/websandbox/frame/worker/index.js +2 -0
- package/helpers/websandbox/frame/worker/manager.d.ts +11 -0
- package/helpers/websandbox/frame/worker/manager.js +67 -0
- package/helpers/websandbox/frame/worker/manager.spec.d.ts +4 -0
- package/helpers/websandbox/frame/worker/manager.spec.js +127 -0
- package/helpers/websandbox/frame/worker/types.d.ts +11 -0
- package/helpers/websandbox/frame/worker/types.js +1 -0
- package/helpers/websandbox/frame/worker/worker.d.ts +1 -0
- package/helpers/websandbox/frame/worker/worker.js +74 -0
- package/helpers/websandbox/frame/worker/worker.source.d.ts +2 -0
- package/helpers/websandbox/frame/worker/worker.source.js +4 -0
- package/helpers/websandbox/index.d.ts +2 -0
- package/helpers/websandbox/index.js +2 -0
- package/helpers/websandbox/sandbox.d.ts +57 -0
- package/helpers/websandbox/sandbox.js +175 -0
- package/helpers/websandbox/types.d.ts +13 -0
- package/helpers/websandbox/types.js +1 -0
- package/index.js +7 -19
- package/logger/RocosLogger.js +18 -44
- package/models/CallsignStatus.d.ts +6 -0
- package/models/CallsignStatus.js +7 -0
- package/models/ExportDataQuery.js +1 -5
- package/models/ExternalProject.js +1 -5
- package/models/IBaseService.d.ts +1 -0
- package/models/IBaseService.js +1 -2
- package/models/IConfigGroup.js +1 -2
- package/models/IDebugLevel.d.ts +1 -1
- package/models/IDebugLevel.js +1 -2
- package/models/IExportDataQuery.js +1 -2
- package/models/IFunctionConfig.js +1 -2
- package/models/IInvitation.d.ts +1 -1
- package/models/IInvitation.js +1 -2
- package/models/IInvitationExists.js +1 -2
- package/models/IOperation.js +1 -2
- package/models/IPersonalAccessToken.js +1 -2
- package/models/IProject.js +1 -2
- package/models/IProjectApplication.js +1 -2
- package/models/IRobot.d.ts +1 -0
- package/models/IRobot.js +1 -2
- package/models/IRobotConfig.js +1 -2
- package/models/IRobotPlugin.js +1 -2
- package/models/IRobotSettings.d.ts +28 -0
- package/models/IRobotSettings.js +1 -0
- package/models/IRobotTemplate.js +1 -2
- package/models/IRocosSDKConfig.d.ts +3 -9
- package/models/IRocosSDKConfig.js +1 -2
- package/models/ISource.js +1 -2
- package/models/IStream.js +1 -2
- package/models/IStreamConfig.js +1 -2
- package/models/IStreamOptions.js +1 -2
- package/models/IStreamSource.js +1 -2
- package/models/ISubscriberStatus.js +1 -2
- package/models/ITelemetryStreamConfig.js +1 -2
- package/models/IToken.d.ts +7 -3
- package/models/IToken.js +1 -2
- package/models/IWidget.js +1 -2
- package/models/IWidgetLineGroup.js +1 -2
- package/models/ResponseLevelEnum.d.ts +4 -0
- package/models/ResponseLevelEnum.js +6 -5
- package/models/Robot.d.ts +1 -0
- package/models/Robot.js +1 -5
- package/models/RobotConfig.js +1 -5
- package/models/RobotPlugin.js +1 -5
- package/models/RobotTemplate.js +9 -14
- package/models/RocosError.d.ts +1 -0
- package/models/RocosError.js +3 -6
- package/models/ServiceEnum.d.ts +2 -1
- package/models/ServiceEnum.js +3 -5
- package/models/Stream.js +4 -8
- package/models/StreamOptions.js +1 -5
- package/models/StreamSource.js +3 -7
- package/models/SubscriberStatusEnum.js +2 -5
- package/models/Token.d.ts +36 -4
- package/models/Token.js +74 -11
- package/models/Token.spec.d.ts +1 -0
- package/models/Token.spec.js +108 -0
- package/models/Widget.js +4 -8
- package/models/WidgetLineGroup.js +1 -5
- package/models/asset-storage/AssetModelItem.d.ts +3 -0
- package/models/asset-storage/AssetModelItem.js +1 -2
- package/models/caller/IRocosCallerMessageChunk.d.ts +8 -2
- package/models/caller/IRocosCallerMessageChunk.js +1 -2
- package/models/caller/IRocosCallerMessageChunks.d.ts +2 -3
- package/models/caller/IRocosCallerMessageChunks.js +1 -2
- package/models/caller/IRocosCallerMessageHeartbeat.d.ts +3 -2
- package/models/caller/IRocosCallerMessageHeartbeat.js +1 -2
- package/models/caller/IRocosCallerMessageResponse.d.ts +3 -2
- package/models/caller/IRocosCallerMessageResponse.js +1 -2
- package/models/caller/IRocosCallerMessageResponseAck.d.ts +16 -2
- package/models/caller/IRocosCallerMessageResponseAck.js +13 -2
- package/models/caller/IRocosCallerMessageResponseResult.d.ts +15 -2
- package/models/caller/IRocosCallerMessageResponseResult.js +12 -2
- package/models/caller/IRocosCallerMessageResponseReturn.d.ts +8 -0
- package/models/caller/IRocosCallerMessageResponseReturn.js +1 -0
- package/models/caller/IRocosCallerMessageResponseUid.d.ts +10 -2
- package/models/caller/IRocosCallerMessageResponseUid.js +7 -2
- package/models/caller/IRocosCallerMessageResponses.d.ts +2 -3
- package/models/caller/IRocosCallerMessageResponses.js +1 -2
- package/models/caller/RocosCallerResultStatus.d.ts +11 -1
- package/models/caller/RocosCallerResultStatus.js +12 -5
- package/models/caller/RocosResponseLevel.d.ts +6 -0
- package/models/caller/RocosResponseLevel.js +7 -0
- package/models/caller/index.d.ts +11 -0
- package/models/caller/index.js +11 -0
- package/models/callsigns/CallsignsEnums.d.ts +3 -3
- package/models/callsigns/CallsignsEnums.js +11 -14
- package/models/callsigns/CallsignsLookup.js +10 -15
- package/models/callsigns/CallsignsQuery.js +1 -5
- package/models/callsigns/CallsignsQueryPredicate.js +1 -5
- package/models/command/IRocosCommandMessageHeartbeat.d.ts +1 -2
- package/models/command/IRocosCommandMessageHeartbeat.js +1 -2
- package/models/command/IRocosCommandMessageResponse.d.ts +55 -2
- package/models/command/IRocosCommandMessageResponse.js +29 -2
- package/models/command/RocosCommandResultStatus.d.ts +11 -1
- package/models/command/RocosCommandResultStatus.js +12 -5
- package/models/command/index.d.ts +4 -0
- package/models/command/index.js +4 -0
- package/models/file/FileEnums.d.ts +4 -4
- package/models/file/FileEnums.js +9 -12
- package/models/index.d.ts +6 -31
- package/models/index.js +76 -113
- package/models/integrations/Overlay.js +1 -2
- package/models/integrations/Plan.js +1 -2
- package/models/maps/Map.d.ts +2 -3
- package/models/maps/Map.js +1 -2
- package/models/maps/Panorama.d.ts +36 -0
- package/models/maps/Panorama.js +1 -0
- package/models/message/IRocosCallerMessage.js +1 -2
- package/models/message/IRocosChangeMessage.js +1 -2
- package/models/message/IRocosCommandMessage.js +1 -2
- package/models/message/IRocosControlMessage.js +1 -2
- package/models/message/IRocosOpResultMessage.d.ts +2 -2
- package/models/message/IRocosOpResultMessage.js +1 -2
- package/models/message/IRocosSearchMessage.js +1 -2
- package/models/message/IRocosSearchRowMessage.js +1 -2
- package/models/message/IRocosSearchStatusMessage.js +1 -2
- package/models/message/IRocosTelemetryMessage.d.ts +12 -7
- package/models/message/IRocosTelemetryMessage.js +1 -2
- package/models/message/IStreamStatusMessage.js +1 -2
- package/models/message/RocosCallerMessage.d.ts +2 -4
- package/models/message/RocosCallerMessage.js +24 -15
- package/models/message/RocosCommandMessage.d.ts +2 -3
- package/models/message/RocosCommandMessage.js +5 -8
- package/models/message/RocosControlMessage.d.ts +1 -1
- package/models/message/RocosControlMessage.js +6 -10
- package/models/message/RocosOpResultMessage.d.ts +3 -2
- package/models/message/RocosOpResultMessage.js +6 -10
- package/models/message/RocosSearchMessage.d.ts +1 -1
- package/models/message/RocosSearchMessage.js +5 -9
- package/models/message/RocosSearchRowMessage.d.ts +1 -1
- package/models/message/RocosSearchRowMessage.js +8 -12
- package/models/message/RocosTelemetryMessage.d.ts +9 -23
- package/models/message/RocosTelemetryMessage.js +51 -93
- package/models/message/index.d.ts +17 -0
- package/models/message/index.js +17 -0
- package/models/params/ICallerParams.d.ts +12 -1
- package/models/params/ICallerParams.js +1 -2
- package/models/params/ICommandParams.js +1 -2
- package/models/params/IControlParams.d.ts +1 -1
- package/models/params/IControlParams.js +1 -2
- package/models/params/IFileAccessorParams.js +1 -2
- package/models/params/ISearchParams.js +1 -2
- package/models/params/ITelemetryParams.d.ts +1 -1
- package/models/params/ITelemetryParams.js +1 -2
- package/models/params/IWebRTCSignallingParams.js +1 -2
- package/models/projects/ProjectUser.js +1 -2
- package/models/schedule/IScheduleAction.d.ts +1 -1
- package/models/schedule/IScheduleAction.js +2 -5
- package/models/schedule/IScheduleInfo.js +1 -2
- package/models/schedule/IScheduleJob.js +1 -2
- package/models/search/SearchQueryFilter.js +1 -5
- package/models/search/SearchStreamQuery.js +1 -5
- package/models/stream/IBaseStream.js +1 -2
- package/models/stream/ICallerStream.js +1 -2
- package/models/stream/ICommandStream.js +1 -2
- package/models/stream/IControlStream.js +1 -2
- package/models/stream/IFileAccessorStream.d.ts +1 -2
- package/models/stream/IFileAccessorStream.js +1 -2
- package/models/stream/ISearchStream.js +1 -2
- package/models/stream/ITelemetryStream.js +1 -2
- package/models/stream/IWebRTCSignallingStream.d.ts +51 -16
- package/models/stream/IWebRTCSignallingStream.js +1 -7
- package/models/types.d.ts +5 -5
- package/models/types.js +1 -2
- package/models/workflow/Workflow.d.ts +36 -0
- package/models/workflow/Workflow.js +1 -0
- package/node/RocosSDKNode.d.ts +6 -1
- package/node/RocosSDKNode.js +82 -80
- package/node/index.js +7 -19
- package/package.json +10 -11
- package/services/AssetStorageService.d.ts +23 -1
- package/services/AssetStorageService.js +53 -24
- package/services/AuthService.d.ts +59 -27
- package/services/AuthService.js +167 -86
- package/services/AuthService.spec.d.ts +1 -0
- package/services/AuthService.spec.js +163 -0
- package/services/BaseServiceAbstract.d.ts +11 -13
- package/services/BaseServiceAbstract.js +18 -24
- package/services/BaseStreamService.d.ts +18 -0
- package/services/BaseStreamService.js +47 -0
- package/services/CallerService.d.ts +37 -17
- package/services/CallerService.js +86 -65
- package/services/CallerService.spec.d.ts +1 -0
- package/services/CallerService.spec.js +227 -0
- package/services/CallerServiceNode.js +4 -8
- package/services/CommandService.d.ts +5 -17
- package/services/CommandService.js +19 -62
- package/services/CommandServiceNode.js +4 -8
- package/services/ConfigGroupService.js +17 -21
- package/services/ControlService.d.ts +5 -17
- package/services/ControlService.js +22 -65
- package/services/ControlServiceNode.js +4 -8
- package/services/DashboardService.js +20 -24
- package/services/EvaluatorService.d.ts +11 -0
- package/services/EvaluatorService.js +28 -0
- package/services/EventService.js +13 -17
- package/services/FileAccessorService.d.ts +4 -18
- package/services/FileAccessorService.js +14 -62
- package/services/FileAccessorServiceNode.js +4 -8
- package/services/FunctionService.js +17 -21
- package/services/IntegrationService.js +14 -19
- package/services/MapService.d.ts +71 -25
- package/services/MapService.js +113 -40
- package/services/PlatformTimeService.js +8 -12
- package/services/PlatformTimeService.spec.d.ts +1 -0
- package/services/PlatformTimeService.spec.js +180 -0
- package/services/ProfileService.js +36 -40
- package/services/ProjectService.js +23 -27
- package/services/RobotService.d.ts +2 -6
- package/services/RobotService.js +48 -55
- package/services/ScheduleService.js +10 -14
- package/services/SearchService.d.ts +4 -17
- package/services/SearchService.js +24 -59
- package/services/SearchServiceNode.js +4 -8
- package/services/SpotProvisioningService.d.ts +1 -1
- package/services/SpotProvisioningService.js +16 -16
- package/services/SpotProvisioningServiceNode.d.ts +1 -1
- package/services/SpotProvisioningServiceNode.js +16 -16
- package/services/StreamService.js +26 -30
- package/services/TelemetryService.d.ts +15 -17
- package/services/TelemetryService.js +103 -93
- package/services/TelemetryService.spec.d.ts +1 -0
- package/services/TelemetryService.spec.js +37 -0
- package/services/TelemetryServiceNode.js +4 -8
- package/services/TimeSyncerService.js +9 -13
- package/services/UserService.js +37 -41
- package/services/WebRTCSignallingService.d.ts +4 -4
- package/services/WebRTCSignallingService.js +24 -27
- package/services/WorkflowService.d.ts +25 -29
- package/services/WorkflowService.js +39 -75
- package/services/index.d.ts +1 -0
- package/services/index.js +27 -38
- package/store/RocosStore.js +9 -15
- package/demo/angular/.editorconfig +0 -16
- package/demo/angular/.eslintignore +0 -4
- package/demo/angular/.eslintrc.json +0 -50
- package/demo/angular/README.md +0 -36
- package/demo/angular/angular.json +0 -132
- package/demo/angular/karma.conf.js +0 -44
- package/demo/angular/package.json +0 -41
- package/demo/angular/src/app/app.component.css +0 -0
- package/demo/angular/src/app/app.component.html +0 -9
- package/demo/angular/src/app/app.component.ts +0 -10
- package/demo/angular/src/app/app.module.ts +0 -38
- package/demo/angular/src/app/components/assets/assets.component.css +0 -0
- package/demo/angular/src/app/components/assets/assets.component.html +0 -29
- package/demo/angular/src/app/components/assets/assets.component.ts +0 -107
- package/demo/angular/src/app/components/auth/auth.component.css +0 -0
- package/demo/angular/src/app/components/auth/auth.component.html +0 -27
- package/demo/angular/src/app/components/auth/auth.component.ts +0 -33
- package/demo/angular/src/app/components/caller/caller.component.css +0 -0
- package/demo/angular/src/app/components/caller/caller.component.html +0 -22
- package/demo/angular/src/app/components/caller/caller.component.ts +0 -61
- package/demo/angular/src/app/components/command/command.component.css +0 -0
- package/demo/angular/src/app/components/command/command.component.html +0 -22
- package/demo/angular/src/app/components/command/command.component.ts +0 -60
- package/demo/angular/src/app/components/integrations/integrations.component.ts +0 -43
- package/demo/angular/src/app/components/robots/robots.component.css +0 -0
- package/demo/angular/src/app/components/robots/robots.component.html +0 -13
- package/demo/angular/src/app/components/robots/robots.component.ts +0 -26
- package/demo/angular/src/app/components/sdk/sdk.component.css +0 -0
- package/demo/angular/src/app/components/sdk/sdk.component.html +0 -43
- package/demo/angular/src/app/components/sdk/sdk.component.ts +0 -50
- package/demo/angular/src/app/components/subscription/subscription.component.css +0 -0
- package/demo/angular/src/app/components/subscription/subscription.component.html +0 -6
- package/demo/angular/src/app/components/subscription/subscription.component.ts +0 -40
- package/demo/angular/src/app/components/telemetry/telemetry.component.css +0 -0
- package/demo/angular/src/app/components/telemetry/telemetry.component.html +0 -19
- package/demo/angular/src/app/components/telemetry/telemetry.component.ts +0 -61
- package/demo/angular/src/app/components/token/token.component.css +0 -0
- package/demo/angular/src/app/components/token/token.component.html +0 -10
- package/demo/angular/src/app/components/token/token.component.ts +0 -18
- package/demo/angular/src/app/components/video/p2pvideo/index.ts +0 -646
- package/demo/angular/src/app/components/video/video-source.ts +0 -315
- package/demo/angular/src/app/components/video/video.component.css +0 -6
- package/demo/angular/src/app/components/video/video.component.html +0 -54
- package/demo/angular/src/app/components/video/video.component.ts +0 -151
- package/demo/angular/src/app/services/sdk.service.ts +0 -193
- package/demo/angular/src/assets/.gitkeep +0 -0
- package/demo/angular/src/assets/HKGrotesk-Bold.otf +0 -0
- package/demo/angular/src/assets/HKGrotesk-Regular.otf +0 -0
- package/demo/angular/src/assets/logo.svg +0 -16
- package/demo/angular/src/environments/environment.prod.ts +0 -3
- package/demo/angular/src/environments/environment.ts +0 -16
- package/demo/angular/src/favicon.ico +0 -0
- package/demo/angular/src/index.html +0 -15
- package/demo/angular/src/main.ts +0 -7
- package/demo/angular/src/polyfills.ts +0 -53
- package/demo/angular/src/styles.css +0 -198
- package/demo/angular/tsconfig.app.json +0 -15
- package/demo/angular/tsconfig.json +0 -39
- package/demo/html/README.md +0 -8
- package/demo/html/assets/HKGrotesk-Bold.otf +0 -0
- package/demo/html/assets/HKGrotesk-Regular.otf +0 -0
- package/demo/html/assets/logo.svg +0 -16
- package/demo/html/favicon.ico +0 -0
- package/demo/html/index.html +0 -416
- package/demo/html/rocos-js-sdk.js +0 -3
- package/demo/html/rocos-js-sdk.js.LICENSE.txt +0 -8
- package/demo/html/rocos-js-sdk.js.map +0 -1
- package/demo/html/styles.css +0 -190
- package/demo/node/README.md +0 -17
- package/demo/node/index.js +0 -134
- package/demo/node/package.json +0 -8
- package/demo/react/.env +0 -1
- package/demo/react/.env.dist +0 -1
- package/demo/react/.eslintrc.json +0 -46
- package/demo/react/README.md +0 -65
- package/demo/react/package.json +0 -60
- package/demo/react/public/favicon.ico +0 -0
- package/demo/react/public/index.html +0 -43
- package/demo/react/public/logo192.png +0 -0
- package/demo/react/public/logo512.png +0 -0
- package/demo/react/public/manifest.json +0 -25
- package/demo/react/public/robots.txt +0 -3
- package/demo/react/src/App.css +0 -190
- package/demo/react/src/App.tsx +0 -31
- package/demo/react/src/actions/index.ts +0 -8
- package/demo/react/src/actions/sdkActions.ts +0 -62
- package/demo/react/src/assets/HKGrotesk-Bold.otf +0 -0
- package/demo/react/src/assets/HKGrotesk-Regular.otf +0 -0
- package/demo/react/src/assets/logo.svg +0 -16
- package/demo/react/src/components/AuthForm.tsx +0 -76
- package/demo/react/src/components/CallerBox.tsx +0 -53
- package/demo/react/src/components/CallerForm.tsx +0 -98
- package/demo/react/src/components/CommandBox.tsx +0 -47
- package/demo/react/src/components/CommandForm.tsx +0 -98
- package/demo/react/src/components/RobotsForm.tsx +0 -51
- package/demo/react/src/components/SubscriptionBox.tsx +0 -55
- package/demo/react/src/components/TelemetryForm.tsx +0 -98
- package/demo/react/src/components/TokenForm.tsx +0 -39
- package/demo/react/src/config.json +0 -14
- package/demo/react/src/controllers/RocosSDKController.ts +0 -48
- package/demo/react/src/helpers/deepEqual.ts +0 -27
- package/demo/react/src/hooks/useInput.ts +0 -29
- package/demo/react/src/index.css +0 -11
- package/demo/react/src/index.tsx +0 -26
- package/demo/react/src/react-app-env.d.ts +0 -1
- package/demo/react/src/reducers/sdkReducer.ts +0 -133
- package/demo/react/src/reportWebVitals.ts +0 -15
- package/demo/react/src/selectors/sdkSelector.ts +0 -11
- package/demo/react/src/setupTests.ts +0 -5
- package/demo/react/src/store.ts +0 -14
- package/demo/react/tsconfig.json +0 -26
- package/demo/sdk-sizer/dist/sdk-sizer/3rdpartylicenses.txt +0 -975
- package/demo/sdk-sizer/dist/sdk-sizer/favicon.ico +0 -0
- package/demo/sdk-sizer/dist/sdk-sizer/index.html +0 -12
- package/demo/sdk-sizer/dist/sdk-sizer/main.c9183649ce1856ef.js +0 -2
- package/demo/sdk-sizer/dist/sdk-sizer/main.c9183649ce1856ef.js.map +0 -1
- package/demo/sdk-sizer/dist/sdk-sizer/polyfills.701c8e5d007909aa.js +0 -2
- package/demo/sdk-sizer/dist/sdk-sizer/polyfills.701c8e5d007909aa.js.map +0 -1
- package/demo/sdk-sizer/dist/sdk-sizer/runtime.00e20e689f5284a8.js +0 -2
- package/demo/sdk-sizer/dist/sdk-sizer/runtime.00e20e689f5284a8.js.map +0 -1
- package/demo/sdk-sizer/dist/sdk-sizer/stats.json +0 -1
- package/demo/sdk-sizer/dist/sdk-sizer/styles.b45f7e627ac8cbce.css +0 -2
- package/demo/sdk-sizer/dist/sdk-sizer/styles.b45f7e627ac8cbce.css.map +0 -1
- package/grpc/file-accessor/filagree_grpc_pb.d.ts +0 -41
- package/grpc/file-accessor/filagree_grpc_pb.js +0 -121
- package/grpc/file-accessor/filagree_pb.d.ts +0 -339
- package/grpc/file-accessor/filagree_pb.js +0 -2261
- package/grpc/file-accessor/filagree_pb_service.d.ts +0 -115
- package/grpc/file-accessor/filagree_pb_service.js +0 -257
- package/grpc/rambo/rambo.v1_grpc_pb.d.ts +0 -39
- package/grpc/rambo/rambo.v1_grpc_pb.js +0 -73
- package/grpc/rambo/rambo.v1_pb.d.ts +0 -365
- package/grpc/rambo/rambo.v1_pb.js +0 -2469
- package/grpc/rambo/rambo.v1_pb_service.d.ts +0 -76
- package/grpc/rambo/rambo.v1_pb_service.js +0 -138
- package/grpc/rambo/uri.v1_grpc_pb.d.ts +0 -1
- package/grpc/rambo/uri.v1_grpc_pb.js +0 -1
- package/grpc/rambo/uri.v1_pb.d.ts +0 -80
- package/grpc/rambo/uri.v1_pb.js +0 -563
- package/grpc/rambo/uri.v1_pb_service.d.ts +0 -3
- package/grpc/rambo/uri.v1_pb_service.js +0 -3
- package/grpc/robot-control/conker_grpc_pb.d.ts +0 -46
- package/grpc/robot-control/conker_grpc_pb.js +0 -143
- package/grpc/robot-control/conker_pb.d.ts +0 -168
- package/grpc/robot-control/conker_pb.js +0 -1287
- package/grpc/robot-control/conker_pb_service.d.ts +0 -126
- package/grpc/robot-control/conker_pb_service.js +0 -301
- package/grpc/serviette/common.v1_grpc_pb.d.ts +0 -1
- package/grpc/serviette/common.v1_grpc_pb.js +0 -1
- package/grpc/serviette/common.v1_pb.d.ts +0 -8
- package/grpc/serviette/common.v1_pb.js +0 -45
- package/grpc/serviette/common.v1_pb_service.d.ts +0 -3
- package/grpc/serviette/common.v1_pb_service.js +0 -3
- package/grpc/serviette/serviette.v1_grpc_pb.d.ts +0 -137
- package/grpc/serviette/serviette.v1_grpc_pb.js +0 -331
- package/grpc/serviette/serviette.v1_pb.d.ts +0 -884
- package/grpc/serviette/serviette.v1_pb.js +0 -6363
- package/grpc/serviette/serviette.v1_pb_service.d.ts +0 -278
- package/grpc/serviette/serviette.v1_pb_service.js +0 -699
- package/grpc/serviette/uri.v1_grpc_pb.d.ts +0 -1
- package/grpc/serviette/uri.v1_grpc_pb.js +0 -1
- package/grpc/serviette/uri.v1_pb.d.ts +0 -102
- package/grpc/serviette/uri.v1_pb.js +0 -741
- package/grpc/serviette/uri.v1_pb_service.d.ts +0 -3
- package/grpc/serviette/uri.v1_pb_service.js +0 -3
- package/grpc/slowlane/slowlane_grpc_pb.d.ts +0 -38
- package/grpc/slowlane/slowlane_grpc_pb.js +0 -132
- package/grpc/slowlane/slowlane_pb.d.ts +0 -373
- package/grpc/slowlane/slowlane_pb.js +0 -2908
- package/grpc/slowlane/slowlane_pb_service.d.ts +0 -112
- package/grpc/slowlane/slowlane_pb_service.js +0 -189
- package/grpc/teletubby/teletubby_grpc_pb.d.ts +0 -73
- package/grpc/teletubby/teletubby_grpc_pb.js +0 -231
- package/grpc/teletubby/teletubby_pb.d.ts +0 -647
- package/grpc/teletubby/teletubby_pb.js +0 -4786
- package/grpc/teletubby/teletubby_pb_service.d.ts +0 -193
- package/grpc/teletubby/teletubby_pb_service.js +0 -436
- package/grpc/video/pigeon_grpc_pb.d.ts +0 -59
- package/grpc/video/pigeon_grpc_pb.js +0 -180
- package/grpc/video/pigeon_pb.d.ts +0 -237
- package/grpc/video/pigeon_pb.js +0 -1775
- package/grpc/video/pigeon_pb_service.d.ts +0 -152
- package/grpc/video/pigeon_pb_service.js +0 -292
- package/models/ISignupParams.d.ts +0 -8
- package/models/ISignupParams.js +0 -2
- package/utils/axisangle.d.ts +0 -18
- package/utils/axisangle.js +0 -48
- package/utils/eulerangles.d.ts +0 -22
- package/utils/eulerangles.js +0 -133
- package/utils/helperfunctions.d.ts +0 -5
- package/utils/helperfunctions.js +0 -50
- package/utils/localtransform.d.ts +0 -17
- package/utils/localtransform.js +0 -50
- package/utils/localtransformtree.d.ts +0 -17
- package/utils/localtransformtree.js +0 -88
- package/utils/misc.d.ts +0 -17
- package/utils/misc.js +0 -23
- package/utils/positionvector.d.ts +0 -13
- package/utils/positionvector.js +0 -79
- package/utils/quaternion.d.ts +0 -20
- package/utils/quaternion.js +0 -62
- package/utils/rotationmatrix.d.ts +0 -23
- package/utils/rotationmatrix.js +0 -262
- package/utils/transformationmatrix.d.ts +0 -12
- package/utils/transformationmatrix.js +0 -123
- package/utils/vector3.d.ts +0 -11
- package/utils/vector3.js +0 -61
@@ -1,3 +0,0 @@
|
|
1
|
-
/*! For license information please see rocos-js-sdk.js.LICENSE.txt */
|
2
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(this,(()=>(()=>{var __webpack_modules__={3037:function(e){var t,r;e.exports=(t={418:function(e,t){!function(e,t){for(var r in t)e[r]=t[r]}(t,function(e){var t={};function r(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.i=function(e){return e},r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(3),i=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={splitValues:!1});var r,i=this;this.headersMap={},e&&("undefined"!=typeof Headers&&e instanceof Headers?o.getHeaderKeys(e).forEach((function(r){o.getHeaderValues(e,r).forEach((function(e){t.splitValues?i.append(r,o.splitHeaderValue(e)):i.append(r,e)}))})):"object"==typeof(r=e)&&"object"==typeof r.headersMap&&"function"==typeof r.forEach?e.forEach((function(e,t){i.append(e,t)})):"undefined"!=typeof Map&&e instanceof Map?e.forEach((function(e,t){i.append(t,e)})):"string"==typeof e?this.appendFromString(e):"object"==typeof e&&Object.getOwnPropertyNames(e).forEach((function(t){var r=e[t];Array.isArray(r)?r.forEach((function(e){i.append(t,e)})):i.append(t,r)})))}return e.prototype.appendFromString=function(e){for(var t=e.split("\r\n"),r=0;r<t.length;r++){var o=t[r],i=o.indexOf(":");if(i>0){var n=o.substring(0,i).trim(),s=o.substring(i+1).trim();this.append(n,s)}}},e.prototype.delete=function(e,t){var r=o.normalizeName(e);if(void 0===t)delete this.headersMap[r];else{var i=this.headersMap[r];if(i){var n=i.indexOf(t);n>=0&&i.splice(n,1),0===i.length&&delete this.headersMap[r]}}},e.prototype.append=function(e,t){var r=this,i=o.normalizeName(e);Array.isArray(this.headersMap[i])||(this.headersMap[i]=[]),Array.isArray(t)?t.forEach((function(e){r.headersMap[i].push(o.normalizeValue(e))})):this.headersMap[i].push(o.normalizeValue(t))},e.prototype.set=function(e,t){var r=o.normalizeName(e);if(Array.isArray(t)){var i=[];t.forEach((function(e){i.push(o.normalizeValue(e))})),this.headersMap[r]=i}else this.headersMap[r]=[o.normalizeValue(t)]},e.prototype.has=function(e,t){var r=this.headersMap[o.normalizeName(e)];if(!Array.isArray(r))return!1;if(void 0!==t){var i=o.normalizeValue(t);return r.indexOf(i)>=0}return!0},e.prototype.get=function(e){var t=this.headersMap[o.normalizeName(e)];return void 0!==t?t.concat():[]},e.prototype.forEach=function(e){var t=this;Object.getOwnPropertyNames(this.headersMap).forEach((function(r){e(r,t.headersMap[r])}),this)},e.prototype.toHeaders=function(){if("undefined"!=typeof Headers){var e=new Headers;return this.forEach((function(t,r){r.forEach((function(r){e.append(t,r)}))})),e}throw new Error("Headers class is not defined")},e}();t.BrowserHeaders=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(0);t.BrowserHeaders=o.BrowserHeaders},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iterateHeaders=function(e,t){for(var r=e[Symbol.iterator](),o=r.next();!o.done;)t(o.value[0]),o=r.next()},t.iterateHeadersKeys=function(e,t){for(var r=e.keys(),o=r.next();!o.done;)t(o.value),o=r.next()}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(2);t.normalizeName=function(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()},t.normalizeValue=function(e){return"string"!=typeof e&&(e=String(e)),e},t.getHeaderValues=function(e,t){var r=e;if(r instanceof Headers&&r.getAll)return r.getAll(t);var o=r.get(t);return o&&"string"==typeof o?[o]:o},t.getHeaderKeys=function(e){var t=e,r={},i=[];return t.keys?o.iterateHeadersKeys(t,(function(e){r[e]||(r[e]=!0,i.push(e))})):t.forEach?t.forEach((function(e,t){r[t]||(r[t]=!0,i.push(t))})):o.iterateHeaders(t,(function(e){var t=e[0];r[t]||(r[t]=!0,i.push(t))})),i},t.splitHeaderValue=function(e){var t=[];return e.split(", ").forEach((function(e){e.split(",").forEach((function(e){t.push(e)}))})),t}}]))},617:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChunkParser=t.ChunkType=t.encodeASCII=t.decodeASCII=void 0;var o,i=r(65);function n(e){return 9===(t=e)||10===t||13===t||e>=32&&e<=126;var t}function s(e){for(var t=0;t!==e.length;++t)if(!n(e[t]))throw new Error("Metadata is not valid (printable) ASCII");return String.fromCharCode.apply(String,Array.prototype.slice.call(e))}function a(e){return 128==(128&e.getUint8(0))}function u(e){return e.getUint32(1,!1)}function l(e,t,r){return e.byteLength-t>=r}function p(e,t,r){if(e.slice)return e.slice(t,r);var o=e.length;void 0!==r&&(o=r);for(var i=new Uint8Array(o-t),n=0,s=t;s<o;s++)i[n++]=e[s];return i}t.decodeASCII=s,t.encodeASCII=function(e){for(var t=new Uint8Array(e.length),r=0;r!==e.length;++r){var o=e.charCodeAt(r);if(!n(o))throw new Error("Metadata contains invalid ASCII");t[r]=o}return t},function(e){e[e.MESSAGE=1]="MESSAGE",e[e.TRAILERS=2]="TRAILERS"}(o=t.ChunkType||(t.ChunkType={}));var c=function(){function e(){this.buffer=null,this.position=0}return e.prototype.parse=function(e,t){if(0===e.length&&t)return[];var r,n=[];if(null==this.buffer)this.buffer=e,this.position=0;else if(this.position===this.buffer.byteLength)this.buffer=e,this.position=0;else{var c=this.buffer.byteLength-this.position,g=new Uint8Array(c+e.byteLength),d=p(this.buffer,this.position);g.set(d,0);var f=new Uint8Array(e);g.set(f,c),this.buffer=g,this.position=0}for(;;){if(!l(this.buffer,this.position,5))return n;var h=p(this.buffer,this.position,this.position+5),b=new DataView(h.buffer,h.byteOffset,h.byteLength),y=u(b);if(!l(this.buffer,this.position,5+y))return n;var v=p(this.buffer,this.position+5,this.position+5+y);if(this.position+=5+y,a(b))return n.push({chunkType:o.TRAILERS,trailers:(r=v,new i.Metadata(s(r)))}),n;n.push({chunkType:o.MESSAGE,data:v})}},e}();t.ChunkParser=c},8:function(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.httpStatusToCode=t.Code=void 0,function(e){e[e.OK=0]="OK",e[e.Canceled=1]="Canceled",e[e.Unknown=2]="Unknown",e[e.InvalidArgument=3]="InvalidArgument",e[e.DeadlineExceeded=4]="DeadlineExceeded",e[e.NotFound=5]="NotFound",e[e.AlreadyExists=6]="AlreadyExists",e[e.PermissionDenied=7]="PermissionDenied",e[e.ResourceExhausted=8]="ResourceExhausted",e[e.FailedPrecondition=9]="FailedPrecondition",e[e.Aborted=10]="Aborted",e[e.OutOfRange=11]="OutOfRange",e[e.Unimplemented=12]="Unimplemented",e[e.Internal=13]="Internal",e[e.Unavailable=14]="Unavailable",e[e.DataLoss=15]="DataLoss",e[e.Unauthenticated=16]="Unauthenticated"}(r=t.Code||(t.Code={})),t.httpStatusToCode=function(e){switch(e){case 0:return r.Internal;case 200:return r.OK;case 400:return r.InvalidArgument;case 401:return r.Unauthenticated;case 403:return r.PermissionDenied;case 404:return r.NotFound;case 409:return r.Aborted;case 412:return r.FailedPrecondition;case 429:return r.ResourceExhausted;case 499:return r.Canceled;case 500:default:return r.Unknown;case 501:return r.Unimplemented;case 503:return r.Unavailable;case 504:return r.DeadlineExceeded}}},934:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.client=void 0;var o=r(65),i=r(617),n=r(8),s=r(346),a=r(57),u=r(882);t.client=function(e,t){return new l(e,t)};var l=function(){function e(e,t){this.started=!1,this.sentFirstMessage=!1,this.completed=!1,this.closed=!1,this.finishedSending=!1,this.onHeadersCallbacks=[],this.onMessageCallbacks=[],this.onEndCallbacks=[],this.parser=new i.ChunkParser,this.methodDefinition=e,this.props=t,this.createTransport()}return e.prototype.createTransport=function(){var e=this.props.host+"/"+this.methodDefinition.service.serviceName+"/"+this.methodDefinition.methodName,t={methodDefinition:this.methodDefinition,debug:this.props.debug||!1,url:e,onHeaders:this.onTransportHeaders.bind(this),onChunk:this.onTransportChunk.bind(this),onEnd:this.onTransportEnd.bind(this)};this.props.transport?this.transport=this.props.transport(t):this.transport=a.makeDefaultTransport(t)},e.prototype.onTransportHeaders=function(e,t){if(this.props.debug&&s.debug("onHeaders",e,t),this.closed)this.props.debug&&s.debug("grpc.onHeaders received after request was closed - ignoring");else if(0===t);else{this.responseHeaders=e,this.props.debug&&s.debug("onHeaders.responseHeaders",JSON.stringify(this.responseHeaders,null,2));var r=p(e);this.props.debug&&s.debug("onHeaders.gRPCStatus",r);var o=r&&r>=0?r:n.httpStatusToCode(t);this.props.debug&&s.debug("onHeaders.code",o);var i=e.get("grpc-message")||[];if(this.props.debug&&s.debug("onHeaders.gRPCMessage",i),this.rawOnHeaders(e),o!==n.Code.OK){var a=this.decodeGRPCStatus(i[0]);this.rawOnError(o,a,e)}}},e.prototype.onTransportChunk=function(e){var t=this;if(this.closed)this.props.debug&&s.debug("grpc.onChunk received after request was closed - ignoring");else{var r=[];try{r=this.parser.parse(e)}catch(e){return this.props.debug&&s.debug("onChunk.parsing error",e,e.message),void this.rawOnError(n.Code.Internal,"parsing error: "+e.message)}r.forEach((function(e){if(e.chunkType===i.ChunkType.MESSAGE){var r=t.methodDefinition.responseType.deserializeBinary(e.data);t.rawOnMessage(r)}else e.chunkType===i.ChunkType.TRAILERS&&(t.responseHeaders?(t.responseTrailers=new o.Metadata(e.trailers),t.props.debug&&s.debug("onChunk.trailers",t.responseTrailers)):(t.responseHeaders=new o.Metadata(e.trailers),t.rawOnHeaders(t.responseHeaders)))}))}},e.prototype.onTransportEnd=function(){if(this.props.debug&&s.debug("grpc.onEnd"),this.closed)this.props.debug&&s.debug("grpc.onEnd received after request was closed - ignoring");else if(void 0!==this.responseTrailers){var e=p(this.responseTrailers);if(null!==e){var t=this.responseTrailers.get("grpc-message"),r=this.decodeGRPCStatus(t[0]);this.rawOnEnd(e,r,this.responseTrailers)}else this.rawOnError(n.Code.Internal,"Response closed without grpc-status (Trailers provided)")}else{if(void 0===this.responseHeaders)return void this.rawOnError(n.Code.Unknown,"Response closed without headers");var o=p(this.responseHeaders),i=this.responseHeaders.get("grpc-message");if(this.props.debug&&s.debug("grpc.headers only response ",o,i),null===o)return void this.rawOnEnd(n.Code.Unknown,"Response closed without grpc-status (Headers only)",this.responseHeaders);var a=this.decodeGRPCStatus(i[0]);this.rawOnEnd(o,a,this.responseHeaders)}},e.prototype.decodeGRPCStatus=function(e){if(!e)return"";try{return decodeURIComponent(e)}catch(t){return e}},e.prototype.rawOnEnd=function(e,t,r){var o=this;this.props.debug&&s.debug("rawOnEnd",e,t,r),this.completed||(this.completed=!0,this.onEndCallbacks.forEach((function(i){if(!o.closed)try{i(e,t,r)}catch(e){setTimeout((function(){throw e}),0)}})))},e.prototype.rawOnHeaders=function(e){this.props.debug&&s.debug("rawOnHeaders",e),this.completed||this.onHeadersCallbacks.forEach((function(t){try{t(e)}catch(e){setTimeout((function(){throw e}),0)}}))},e.prototype.rawOnError=function(e,t,r){var i=this;void 0===r&&(r=new o.Metadata),this.props.debug&&s.debug("rawOnError",e,t),this.completed||(this.completed=!0,this.onEndCallbacks.forEach((function(o){if(!i.closed)try{o(e,t,r)}catch(e){setTimeout((function(){throw e}),0)}})))},e.prototype.rawOnMessage=function(e){var t=this;this.props.debug&&s.debug("rawOnMessage",e.toObject()),this.completed||this.closed||this.onMessageCallbacks.forEach((function(r){if(!t.closed)try{r(e)}catch(e){setTimeout((function(){throw e}),0)}}))},e.prototype.onHeaders=function(e){this.onHeadersCallbacks.push(e)},e.prototype.onMessage=function(e){this.onMessageCallbacks.push(e)},e.prototype.onEnd=function(e){this.onEndCallbacks.push(e)},e.prototype.start=function(e){if(this.started)throw new Error("Client already started - cannot .start()");this.started=!0;var t=new o.Metadata(e||{});t.set("content-type","application/grpc-web+proto"),t.set("x-grpc-web","1"),this.transport.start(t)},e.prototype.send=function(e){if(!this.started)throw new Error("Client not started - .start() must be called before .send()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .send()");if(!this.methodDefinition.requestStream&&this.sentFirstMessage)throw new Error("Message already sent for non-client-streaming method - cannot .send()");this.sentFirstMessage=!0;var t=u.frameRequest(e);this.transport.sendMessage(t)},e.prototype.finishSend=function(){if(!this.started)throw new Error("Client not started - .finishSend() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .finishSend()");this.finishedSending=!0,this.transport.finishSend()},e.prototype.close=function(){if(!this.started)throw new Error("Client not started - .start() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .close()");this.closed=!0,this.props.debug&&s.debug("request.abort aborting request"),this.transport.cancel()},e}();function p(e){var t=e.get("grpc-status")||[];if(t.length>0)try{var r=t[0];return parseInt(r,10)}catch(e){return null}return null}},346:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debug=void 0,t.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.debug?console.debug.apply(null,e):console.log.apply(null,e)}},607:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.grpc=void 0;var o,i=r(418),n=r(57),s=r(229),a=r(540),u=r(210),l=r(859),p=r(8),c=r(938),g=r(35),d=r(934);(o=t.grpc||(t.grpc={})).setDefaultTransport=n.setDefaultTransportFactory,o.CrossBrowserHttpTransport=l.CrossBrowserHttpTransport,o.FetchReadableStreamTransport=s.FetchReadableStreamTransport,o.XhrTransport=u.XhrTransport,o.WebsocketTransport=a.WebsocketTransport,o.Code=p.Code,o.Metadata=i.BrowserHeaders,o.client=function(e,t){return d.client(e,t)},o.invoke=c.invoke,o.unary=g.unary},938:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.invoke=void 0;var o=r(934);t.invoke=function(e,t){if(e.requestStream)throw new Error(".invoke cannot be used with client-streaming methods. Use .client instead.");var r=o.client(e,{host:t.host,transport:t.transport,debug:t.debug});return t.onHeaders&&r.onHeaders(t.onHeaders),t.onMessage&&r.onMessage(t.onMessage),t.onEnd&&r.onEnd(t.onEnd),r.start(t.metadata),r.send(t.request),r.finishSend(),{close:function(){r.close()}}}},65:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var o=r(418);Object.defineProperty(t,"Metadata",{enumerable:!0,get:function(){return o.BrowserHeaders}})},57:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeDefaultTransport=t.setDefaultTransportFactory=void 0;var o=r(859),i=function(e){return o.CrossBrowserHttpTransport({withCredentials:!1})(e)};t.setDefaultTransportFactory=function(e){i=e},t.makeDefaultTransport=function(e){return i(e)}},229:function(e,t,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.detectFetchSupport=t.FetchReadableStreamTransport=void 0;var i=r(65),n=r(346);t.FetchReadableStreamTransport=function(e){return function(t){return function(e,t){return e.debug&&n.debug("fetchRequest",e),new s(e,t)}(t,e)}};var s=function(){function e(e,t){this.cancelled=!1,this.controller=self.AbortController&&new AbortController,this.options=e,this.init=t}return e.prototype.pump=function(e,t){var r=this;if(this.reader=e,this.cancelled)return this.options.debug&&n.debug("Fetch.pump.cancel at first pump"),void this.reader.cancel().catch((function(e){r.options.debug&&n.debug("Fetch.pump.reader.cancel exception",e)}));this.reader.read().then((function(e){if(e.done)return r.options.onEnd(),t;r.options.onChunk(e.value),r.pump(r.reader,t)})).catch((function(e){r.cancelled?r.options.debug&&n.debug("Fetch.catch - request cancelled"):(r.cancelled=!0,r.options.debug&&n.debug("Fetch.catch",e.message),r.options.onEnd(e))}))},e.prototype.send=function(e){var t=this;fetch(this.options.url,o(o({},this.init),{headers:this.metadata.toHeaders(),method:"POST",body:e,signal:this.controller&&this.controller.signal})).then((function(e){if(t.options.debug&&n.debug("Fetch.response",e),t.options.onHeaders(new i.Metadata(e.headers),e.status),!e.body)return e;t.pump(e.body.getReader(),e)})).catch((function(e){t.cancelled?t.options.debug&&n.debug("Fetch.catch - request cancelled"):(t.cancelled=!0,t.options.debug&&n.debug("Fetch.catch",e.message),t.options.onEnd(e))}))},e.prototype.sendMessage=function(e){this.send(e)},e.prototype.finishSend=function(){},e.prototype.start=function(e){this.metadata=e},e.prototype.cancel=function(){var e=this;this.cancelled?this.options.debug&&n.debug("Fetch.cancel already cancelled"):(this.cancelled=!0,this.controller?(this.options.debug&&n.debug("Fetch.cancel.controller.abort"),this.controller.abort()):this.options.debug&&n.debug("Fetch.cancel.missing abort controller"),this.reader?(this.options.debug&&n.debug("Fetch.cancel.reader.cancel"),this.reader.cancel().catch((function(t){e.options.debug&&n.debug("Fetch.cancel.reader.cancel exception",t)}))):this.options.debug&&n.debug("Fetch.cancel before reader"))},e}();t.detectFetchSupport=function(){return"undefined"!=typeof Response&&Response.prototype.hasOwnProperty("body")&&"function"==typeof Headers}},859:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CrossBrowserHttpTransport=void 0;var o=r(229),i=r(210);t.CrossBrowserHttpTransport=function(e){if(o.detectFetchSupport()){var t={credentials:e.withCredentials?"include":"same-origin"};return o.FetchReadableStreamTransport(t)}return i.XhrTransport({withCredentials:e.withCredentials})}},210:function(e,t,r){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.stringToArrayBuffer=t.MozChunkedArrayBufferXHR=t.XHR=t.XhrTransport=void 0;var n=r(65),s=r(346),a=r(849);t.XhrTransport=function(e){return function(t){if(a.detectMozXHRSupport())return new l(t,e);if(a.detectXHROverrideMimeTypeSupport())return new u(t,e);throw new Error("This environment's XHR implementation cannot support binary transfer.")}};var u=function(){function e(e,t){this.options=e,this.init=t}return e.prototype.onProgressEvent=function(){this.options.debug&&s.debug("XHR.onProgressEvent.length: ",this.xhr.response.length);var e=this.xhr.response.substr(this.index);this.index=this.xhr.response.length;var t=c(e);this.options.onChunk(t)},e.prototype.onLoadEvent=function(){this.options.debug&&s.debug("XHR.onLoadEvent"),this.options.onEnd()},e.prototype.onStateChange=function(){this.options.debug&&s.debug("XHR.onStateChange",this.xhr.readyState),this.xhr.readyState===XMLHttpRequest.HEADERS_RECEIVED&&this.options.onHeaders(new n.Metadata(this.xhr.getAllResponseHeaders()),this.xhr.status)},e.prototype.sendMessage=function(e){this.xhr.send(e)},e.prototype.finishSend=function(){},e.prototype.start=function(e){var t=this;this.metadata=e;var r=new XMLHttpRequest;this.xhr=r,r.open("POST",this.options.url),this.configureXhr(),this.metadata.forEach((function(e,t){r.setRequestHeader(e,t.join(", "))})),r.withCredentials=Boolean(this.init.withCredentials),r.addEventListener("readystatechange",this.onStateChange.bind(this)),r.addEventListener("progress",this.onProgressEvent.bind(this)),r.addEventListener("loadend",this.onLoadEvent.bind(this)),r.addEventListener("error",(function(e){t.options.debug&&s.debug("XHR.error",e),t.options.onEnd(e.error)}))},e.prototype.configureXhr=function(){this.xhr.responseType="text",this.xhr.overrideMimeType("text/plain; charset=x-user-defined")},e.prototype.cancel=function(){this.options.debug&&s.debug("XHR.abort"),this.xhr.abort()},e}();t.XHR=u;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.configureXhr=function(){this.options.debug&&s.debug("MozXHR.configureXhr: setting responseType to 'moz-chunked-arraybuffer'"),this.xhr.responseType="moz-chunked-arraybuffer"},t.prototype.onProgressEvent=function(){var e=this.xhr.response;this.options.debug&&s.debug("MozXHR.onProgressEvent: ",new Uint8Array(e)),this.options.onChunk(new Uint8Array(e))},t}(u);function p(e,t){var r=e.charCodeAt(t);if(r>=55296&&r<=56319){var o=e.charCodeAt(t+1);o>=56320&&o<=57343&&(r=65536+(r-55296<<10)+(o-56320))}return r}function c(e){for(var t=new Uint8Array(e.length),r=0,o=0;o<e.length;o++){var i=String.prototype.codePointAt?e.codePointAt(o):p(e,o);t[r++]=255&i}return t}t.MozChunkedArrayBufferXHR=l,t.stringToArrayBuffer=c},849:function(e,t){"use strict";var r;function o(e){var t=function(){if(void 0!==r)return r;if(XMLHttpRequest){r=new XMLHttpRequest;try{r.open("GET","https://localhost")}catch(e){}}return r}();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}Object.defineProperty(t,"__esModule",{value:!0}),t.detectXHROverrideMimeTypeSupport=t.detectMozXHRSupport=t.xhrSupportsResponseType=void 0,t.xhrSupportsResponseType=o,t.detectMozXHRSupport=function(){return"undefined"!=typeof XMLHttpRequest&&o("moz-chunked-arraybuffer")},t.detectXHROverrideMimeTypeSupport=function(){return"undefined"!=typeof XMLHttpRequest&&XMLHttpRequest.prototype.hasOwnProperty("overrideMimeType")}},540:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebsocketTransport=void 0;var o,i=r(346),n=r(617);!function(e){e[e.FINISH_SEND=1]="FINISH_SEND"}(o||(o={}));var s=new Uint8Array([1]);t.WebsocketTransport=function(){return function(e){return function(e){e.debug&&i.debug("websocketRequest",e);var t,r=function(e){if("https://"===e.substr(0,8))return"wss://"+e.substr(8);if("http://"===e.substr(0,7))return"ws://"+e.substr(7);throw new Error("Websocket transport constructed with non-https:// or http:// host.")}(e.url),a=[];function u(e){if(e===o.FINISH_SEND)t.send(s);else{var r=e,i=new Int8Array(r.byteLength+1);i.set(new Uint8Array([0])),i.set(r,1),t.send(i)}}return{sendMessage:function(e){t&&t.readyState!==t.CONNECTING?u(e):a.push(e)},finishSend:function(){t&&t.readyState!==t.CONNECTING?u(o.FINISH_SEND):a.push(o.FINISH_SEND)},start:function(o){(t=new WebSocket(r,["grpc-websockets"])).binaryType="arraybuffer",t.onopen=function(){var r;e.debug&&i.debug("websocketRequest.onopen"),t.send((r="",o.forEach((function(e,t){r+=e+": "+t.join(", ")+"\r\n"})),n.encodeASCII(r))),a.forEach((function(e){u(e)}))},t.onclose=function(t){e.debug&&i.debug("websocketRequest.onclose",t),e.onEnd()},t.onerror=function(t){e.debug&&i.debug("websocketRequest.onerror",t)},t.onmessage=function(t){e.onChunk(new Uint8Array(t.data))}},cancel:function(){e.debug&&i.debug("websocket.abort"),t.close()}}}(e)}}},35:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unary=void 0;var o=r(65),i=r(934);t.unary=function(e,t){if(e.responseStream)throw new Error(".unary cannot be used with server-streaming methods. Use .invoke or .client instead.");if(e.requestStream)throw new Error(".unary cannot be used with client-streaming methods. Use .client instead.");var r=null,n=null,s=i.client(e,{host:t.host,transport:t.transport,debug:t.debug});return s.onHeaders((function(e){r=e})),s.onMessage((function(e){n=e})),s.onEnd((function(e,i,s){t.onEnd({status:e,statusMessage:i,headers:r||new o.Metadata,message:n,trailers:s})})),s.start(t.metadata),s.send(t.request),s.finishSend(),{close:function(){s.close()}}}},882:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.frameRequest=void 0,t.frameRequest=function(e){var t=e.serializeBinary(),r=new ArrayBuffer(t.byteLength+5);return new DataView(r,1,4).setUint32(0,t.length,!1),new Uint8Array(r,5).set(t),new Uint8Array(r)}}},r={},function e(o){if(r[o])return r[o].exports;var i=r[o]={exports:{}};return t[o].call(i.exports,i,i.exports,e),i.exports}(607))},9742:(e,t)=>{"use strict";t.byteLength=function(e){var t=u(e),r=t[0],o=t[1];return 3*(r+o)/4-o},t.toByteArray=function(e){var t,r,n=u(e),s=n[0],a=n[1],l=new i(function(e,t,r){return 3*(t+r)/4-r}(0,s,a)),p=0,c=a>0?s-4:s;for(r=0;r<c;r+=4)t=o[e.charCodeAt(r)]<<18|o[e.charCodeAt(r+1)]<<12|o[e.charCodeAt(r+2)]<<6|o[e.charCodeAt(r+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=255&t;return 2===a&&(t=o[e.charCodeAt(r)]<<2|o[e.charCodeAt(r+1)]>>4,l[p++]=255&t),1===a&&(t=o[e.charCodeAt(r)]<<10|o[e.charCodeAt(r+1)]<<4|o[e.charCodeAt(r+2)]>>2,l[p++]=t>>8&255,l[p++]=255&t),l},t.fromByteArray=function(e){for(var t,o=e.length,i=o%3,n=[],s=16383,a=0,u=o-i;a<u;a+=s)n.push(l(e,a,a+s>u?u:a+s));return 1===i?(t=e[o-1],n.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[o-2]<<8)+e[o-1],n.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),n.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=n.length;s<a;++s)r[s]=n[s],o[n.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,o){for(var i,n,s=[],a=t;a<o;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(r[(n=i)>>18&63]+r[n>>12&63]+r[n>>6&63]+r[63&n]);return s.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},8764:(e,t,r)=>{"use strict";const o=r(9742),i=r(645),n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50;const s=2147483647;function a(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|h(e,t);let o=a(r);const i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Y(e,Uint8Array)){const t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return g(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer))return d(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return d(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const o=e.valueOf&&e.valueOf();if(null!=o&&o!==e)return u.from(o,t,r);const i=function(e){if(u.isBuffer(e)){const t=0|f(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||Q(e.length)?a(0):g(e):"Buffer"===e.type&&Array.isArray(e.data)?g(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function p(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return p(e),a(e<0?0:0|f(e))}function g(e){const t=e.length<0?0:0|f(e.length),r=a(t);for(let o=0;o<t;o+=1)r[o]=255&e[o];return r}function d(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let o;return o=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(o,u.prototype),o}function f(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function h(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return $(e).length;default:if(i)return o?-1:V(e).length;t=(""+t).toLowerCase(),i=!0}}function b(e,t,r){let o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return C(this,t,r);case"utf8":case"utf-8":return T(this,t,r);case"ascii":return A(this,t,r);case"latin1":case"binary":return I(this,t,r);case"base64":return M(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function y(e,t,r){const o=e[t];e[t]=e[r],e[r]=o}function v(e,t,r,o,i){if(0===e.length)return-1;if("string"==typeof r?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Q(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=u.from(t,o)),u.isBuffer(t))return 0===t.length?-1:m(e,t,r,o,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,r,o,i){let n,s=1,a=e.length,u=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,r/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let o=-1;for(n=r;n<a;n++)if(l(e,n)===l(t,-1===o?0:n-o)){if(-1===o&&(o=n),n-o+1===u)return o*s}else-1!==o&&(n-=n-o),o=-1}else for(r+u>a&&(r=a-u),n=r;n>=0;n--){let r=!0;for(let o=0;o<u;o++)if(l(e,n+o)!==l(t,o)){r=!1;break}if(r)return n}return-1}function R(e,t,r,o){r=Number(r)||0;const i=e.length-r;o?(o=Number(o))>i&&(o=i):o=i;const n=t.length;let s;for(o>n/2&&(o=n/2),s=0;s<o;++s){const o=parseInt(t.substr(2*s,2),16);if(Q(o))return s;e[r+s]=o}return s}function S(e,t,r,o){return J(V(t,e.length-r),e,r,o)}function _(e,t,r,o){return J(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,o)}function O(e,t,r,o){return J($(t),e,r,o)}function E(e,t,r,o){return J(function(e,t){let r,o,i;const n=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)r=e.charCodeAt(s),o=r>>8,i=r%256,n.push(i),n.push(o);return n}(t,e.length-r),e,r,o)}function M(e,t,r){return 0===t&&r===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,r))}function T(e,t,r){r=Math.min(e.length,r);const o=[];let i=t;for(;i<r;){const t=e[i];let n=null,s=t>239?4:t>223?3:t>191?2:1;if(i+s<=r){let r,o,a,u;switch(s){case 1:t<128&&(n=t);break;case 2:r=e[i+1],128==(192&r)&&(u=(31&t)<<6|63&r,u>127&&(n=u));break;case 3:r=e[i+1],o=e[i+2],128==(192&r)&&128==(192&o)&&(u=(15&t)<<12|(63&r)<<6|63&o,u>2047&&(u<55296||u>57343)&&(n=u));break;case 4:r=e[i+1],o=e[i+2],a=e[i+3],128==(192&r)&&128==(192&o)&&128==(192&a)&&(u=(15&t)<<18|(63&r)<<12|(63&o)<<6|63&a,u>65535&&u<1114112&&(n=u))}}null===n?(n=65533,s=1):n>65535&&(n-=65536,o.push(n>>>10&1023|55296),n=56320|1023&n),o.push(n),i+=s}return function(e){const t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);let r="",o=0;for(;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=P));return r}(o)}t.kMaxLength=s,u.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),u.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,r){return function(e,t,r){return p(e),e<=0?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)}(e,t,r)},u.allocUnsafe=function(e){return c(e)},u.allocUnsafeSlow=function(e){return c(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(Y(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),Y(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,o=t.length;for(let i=0,n=Math.min(r,o);i<n;++i)if(e[i]!==t[i]){r=e[i],o=t[i];break}return r<o?-1:o<r?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const o=u.allocUnsafe(t);let i=0;for(r=0;r<e.length;++r){let t=e[r];if(Y(t,Uint8Array))i+t.length>o.length?(u.isBuffer(t)||(t=u.from(t)),t.copy(o,i)):Uint8Array.prototype.set.call(o,t,i);else{if(!u.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(o,i)}i+=t.length}return o},u.byteLength=h,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)y(this,t,t+1);return this},u.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},u.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},u.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?T(this,0,e):b.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){let e="";const r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},n&&(u.prototype[n]=u.prototype.inspect),u.prototype.compare=function(e,t,r,o,i){if(Y(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===o&&(o=0),void 0===i&&(i=this.length),t<0||r>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&t>=r)return 0;if(o>=i)return-1;if(t>=r)return 1;if(this===e)return 0;let n=(i>>>=0)-(o>>>=0),s=(r>>>=0)-(t>>>=0);const a=Math.min(n,s),l=this.slice(o,i),p=e.slice(t,r);for(let e=0;e<a;++e)if(l[e]!==p[e]){n=l[e],s=p[e];break}return n<s?-1:s<n?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return v(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return v(this,e,t,r,!1)},u.prototype.write=function(e,t,r,o){if(void 0===t)o="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)o=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===o&&(o="utf8")):(o=r,r=void 0)}const i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let n=!1;for(;;)switch(o){case"hex":return R(this,e,t,r);case"utf8":case"utf-8":return S(this,e,t,r);case"ascii":case"latin1":case"binary":return _(this,e,t,r);case"base64":return O(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,r);default:if(n)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),n=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const P=4096;function A(e,t,r){let o="";r=Math.min(e.length,r);for(let i=t;i<r;++i)o+=String.fromCharCode(127&e[i]);return o}function I(e,t,r){let o="";r=Math.min(e.length,r);for(let i=t;i<r;++i)o+=String.fromCharCode(e[i]);return o}function C(e,t,r){const o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);let i="";for(let o=t;o<r;++o)i+=K[e[o]];return i}function F(e,t,r){const o=e.slice(t,r);let i="";for(let e=0;e<o.length-1;e+=2)i+=String.fromCharCode(o[e]+256*o[e+1]);return i}function j(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function w(e,t,r,o,i,n){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<n)throw new RangeError('"value" argument is out of bounds');if(r+o>e.length)throw new RangeError("Index out of range")}function D(e,t,r,o,i){z(t,o,i,e,r,7);let n=Number(t&BigInt(4294967295));e[r++]=n,n>>=8,e[r++]=n,n>>=8,e[r++]=n,n>>=8,e[r++]=n;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,r}function B(e,t,r,o,i){z(t,o,i,e,r,7);let n=Number(t&BigInt(4294967295));e[r+7]=n,n>>=8,e[r+6]=n,n>>=8,e[r+5]=n,n>>=8,e[r+4]=n;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s>>=8,e[r+2]=s,s>>=8,e[r+1]=s,s>>=8,e[r]=s,r+8}function U(e,t,r,o,i,n){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function L(e,t,r,o,n){return t=+t,r>>>=0,n||U(e,0,r,4),i.write(e,t,r,o,23,4),r+4}function N(e,t,r,o,n){return t=+t,r>>>=0,n||U(e,0,r,8),i.write(e,t,r,o,52,8),r+8}u.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const o=this.subarray(e,t);return Object.setPrototypeOf(o,u.prototype),o},u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||j(e,t,this.length);let o=this[e],i=1,n=0;for(;++n<t&&(i*=256);)o+=this[e+n]*i;return o},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||j(e,t,this.length);let o=this[e+--t],i=1;for(;t>0&&(i*=256);)o+=this[e+--t]*i;return o},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readBigUInt64LE=X((function(e){G(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||q(e,this.length-8);const o=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(o)+(BigInt(i)<<BigInt(32))})),u.prototype.readBigUInt64BE=X((function(e){G(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||q(e,this.length-8);const o=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(o)<<BigInt(32))+BigInt(i)})),u.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||j(e,t,this.length);let o=this[e],i=1,n=0;for(;++n<t&&(i*=256);)o+=this[e+n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},u.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||j(e,t,this.length);let o=t,i=1,n=this[e+--o];for(;o>0&&(i*=256);)n+=this[e+--o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*t)),n},u.prototype.readInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||j(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){e>>>=0,t||j(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readBigInt64LE=X((function(e){G(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||q(e,this.length-8);const o=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(o)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),u.prototype.readBigInt64BE=X((function(e){G(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||q(e,this.length-8);const o=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(o)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)})),u.prototype.readFloatLE=function(e,t){return e>>>=0,t||j(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||j(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||j(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||j(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,r,o){e=+e,t>>>=0,r>>>=0,o||w(this,e,t,r,Math.pow(2,8*r)-1,0);let i=1,n=0;for(this[t]=255&e;++n<r&&(i*=256);)this[t+n]=e/i&255;return t+r},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,r,o){e=+e,t>>>=0,r>>>=0,o||w(this,e,t,r,Math.pow(2,8*r)-1,0);let i=r-1,n=1;for(this[t+i]=255&e;--i>=0&&(n*=256);)this[t+i]=e/n&255;return t+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigUInt64LE=X((function(e,t=0){return D(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=X((function(e,t=0){return B(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(e,t,r,o){if(e=+e,t>>>=0,!o){const o=Math.pow(2,8*r-1);w(this,e,t,r,o-1,-o)}let i=0,n=1,s=0;for(this[t]=255&e;++i<r&&(n*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/n>>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,o){if(e=+e,t>>>=0,!o){const o=Math.pow(2,8*r-1);w(this,e,t,r,o-1,-o)}let i=r-1,n=1,s=0;for(this[t+i]=255&e;--i>=0&&(n*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/n>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigInt64LE=X((function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=X((function(e,t=0){return B(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return N(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return N(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,o){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<r&&(o=r),o===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-r&&(o=e.length-t+r);const i=o-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,o):Uint8Array.prototype.set.call(e,this.subarray(r,o),t),i},u.prototype.fill=function(e,t,r,o){if("string"==typeof e){if("string"==typeof t?(o=t,t=0,r=this.length):"string"==typeof r&&(o=r,r=this.length),void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!u.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(1===e.length){const t=e.charCodeAt(0);("utf8"===o&&t<128||"latin1"===o)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{const n=u.isBuffer(e)?e:u.from(e,o),s=n.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=n[i%s]}return this};const k={};function W(e,t,r){k[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function x(e){let t="",r=e.length;const o="-"===e[0]?1:0;for(;r>=o+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function z(e,t,r,o,i,n){if(e>r||e<t){const o="bigint"==typeof t?"n":"";let i;throw i=n>3?0===t||t===BigInt(0)?`>= 0${o} and < 2${o} ** ${8*(n+1)}${o}`:`>= -(2${o} ** ${8*(n+1)-1}${o}) and < 2 ** ${8*(n+1)-1}${o}`:`>= ${t}${o} and <= ${r}${o}`,new k.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,r){G(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||q(t,e.length-(r+1))}(o,i,n)}function G(e,t){if("number"!=typeof e)throw new k.ERR_INVALID_ARG_TYPE(t,"number",e)}function q(e,t,r){if(Math.floor(e)!==e)throw G(e,r),new k.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new k.ERR_BUFFER_OUT_OF_BOUNDS;throw new k.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}W("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),W("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),W("ERR_OUT_OF_RANGE",(function(e,t,r){let o=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=x(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=x(i)),i+="n"),o+=` It must be ${t}. Received ${i}`,o}),RangeError);const H=/[^+/0-9A-Za-z-_]/g;function V(e,t){let r;t=t||1/0;const o=e.length;let i=null;const n=[];for(let s=0;s<o;++s){if(r=e.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&n.push(239,191,189);continue}if(s+1===o){(t-=3)>-1&&n.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&n.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&n.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;n.push(r)}else if(r<2048){if((t-=2)<0)break;n.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;n.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;n.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return n}function $(e){return o.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function J(e,t,r,o){let i;for(i=0;i<o&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Q(e){return e!=e}const K=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const o=16*r;for(let i=0;i<16;++i)t[o+i]=e[r]+e[i]}return t}();function X(e){return"undefined"==typeof BigInt?Z:e}function Z(){throw new Error("BigInt not supported")}},3019:function(__unused_webpack_module,exports,__webpack_require__){var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.findInternal=function(e,t,r){e instanceof String&&(e=String(e));for(var o=e.length,i=0;i<o;i++){var n=e[i];if(t.call(r,n,i,e))return{i,v:n}}return{i:-1,v:void 0}},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,r){e!=Array.prototype&&e!=Object.prototype&&(e[t]=r.value)},$jscomp.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:void 0!==__webpack_require__.g&&null!=__webpack_require__.g?__webpack_require__.g:e},$jscomp.global=$jscomp.getGlobal(this),$jscomp.polyfill=function(e,t,r,o){if(t){for(r=$jscomp.global,e=e.split("."),o=0;o<e.length-1;o++){var i=e[o];i in r||(r[i]={}),r=r[i]}(t=t(o=r[e=e[e.length-1]]))!=o&&null!=t&&$jscomp.defineProperty(r,e,{configurable:!0,writable:!0,value:t})}},$jscomp.polyfill("Array.prototype.findIndex",(function(e){return e||function(e,t){return $jscomp.findInternal(this,e,t).i}}),"es6","es3"),$jscomp.checkStringArgs=function(e,t,r){if(null==e)throw new TypeError("The 'this' value for String.prototype."+r+" must not be null or undefined");if(t instanceof RegExp)throw new TypeError("First argument to String.prototype."+r+" must not be a regular expression");return e+""},$jscomp.polyfill("String.prototype.endsWith",(function(e){return e||function(e,t){var r=$jscomp.checkStringArgs(this,e,"endsWith");e+="",void 0===t&&(t=r.length),t=Math.max(0,Math.min(0|t,r.length));for(var o=e.length;0<o&&0<t;)if(r[--t]!=e[--o])return!1;return 0>=o}}),"es6","es3"),$jscomp.polyfill("Array.prototype.find",(function(e){return e||function(e,t){return $jscomp.findInternal(this,e,t).v}}),"es6","es3"),$jscomp.polyfill("String.prototype.startsWith",(function(e){return e||function(e,t){var r=$jscomp.checkStringArgs(this,e,"startsWith");e+="";var o=r.length,i=e.length;t=Math.max(0,Math.min(0|t,r.length));for(var n=0;n<i&&t<o;)if(r[t++]!=e[n++])return!1;return n>=i}}),"es6","es3"),$jscomp.polyfill("String.prototype.repeat",(function(e){return e||function(e){var t=$jscomp.checkStringArgs(this,null,"repeat");if(0>e||1342177279<e)throw new RangeError("Invalid count value");e|=0;for(var r="";e;)1&e&&(r+=t),(e>>>=1)&&(t+=t);return r}}),"es6","es3");var COMPILED=!0,goog=goog||{};goog.global=this||self,goog.exportPath_=function(e,t,r){e=e.split("."),r=r||goog.global,e[0]in r||void 0===r.execScript||r.execScript("var "+e[0]);for(var o;e.length&&(o=e.shift());)e.length||void 0===t?r=r[o]&&r[o]!==Object.prototype[o]?r[o]:r[o]={}:r[o]=t},goog.define=function(e,t){if(!COMPILED){var r=goog.global.CLOSURE_UNCOMPILED_DEFINES,o=goog.global.CLOSURE_DEFINES;r&&void 0===r.nodeType&&Object.prototype.hasOwnProperty.call(r,e)?t=r[e]:o&&void 0===o.nodeType&&Object.prototype.hasOwnProperty.call(o,e)&&(t=o[e])}return t},goog.FEATURESET_YEAR=2012,goog.DEBUG=!0,goog.LOCALE="en",goog.TRUSTED_SITE=!0,goog.STRICT_MODE_COMPATIBLE=!1,goog.DISALLOW_TEST_ONLY_CODE=COMPILED&&!goog.DEBUG,goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1,goog.provide=function(e){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");if(!COMPILED&&goog.isProvided_(e))throw Error('Namespace "'+e+'" already declared.');goog.constructNamespace_(e)},goog.constructNamespace_=function(e,t){if(!COMPILED){delete goog.implicitNamespaces_[e];for(var r=e;(r=r.substring(0,r.lastIndexOf(".")))&&!goog.getObjectByName(r);)goog.implicitNamespaces_[r]=!0}goog.exportPath_(e,t)},goog.getScriptNonce=function(e){return e&&e!=goog.global?goog.getScriptNonce_(e.document):(null===goog.cspNonce_&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)},goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/,goog.cspNonce_=null,goog.getScriptNonce_=function(e){return(e=e.querySelector&&e.querySelector("script[nonce]"))&&(e=e.nonce||e.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(e)?e:""},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(e){if("string"!=typeof e||!e||-1==e.search(goog.VALID_MODULE_RE_))throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+e+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");if(goog.moduleLoaderState_.moduleName=e,!COMPILED){if(goog.isProvided_(e))throw Error('Namespace "'+e+'" already declared.');delete goog.implicitNamespaces_[e]}},goog.module.get=function(e){return goog.module.getInternal_(e)},goog.module.getInternal_=function(e){if(!COMPILED){if(e in goog.loadedModules_)return goog.loadedModules_[e].exports;if(!goog.implicitNamespaces_[e])return null!=(e=goog.getObjectByName(e))?e:null}return null},goog.ModuleType={ES6:"es6",GOOG:"goog"},goog.moduleLoaderState_=null,goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()},goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG},goog.isInEs6ModuleLoader_=function(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var e=goog.global.$jscomp;return!!e&&"function"==typeof e.getCurrentModulePath&&!!e.getCurrentModulePath()},goog.module.declareLegacyNamespace=function(){if(!COMPILED&&!goog.isInGoogModuleLoader_())throw Error("goog.module.declareLegacyNamespace must be called from within a goog.module");if(!COMPILED&&!goog.moduleLoaderState_.moduleName)throw Error("goog.module must be called prior to goog.module.declareLegacyNamespace.");goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.declareModuleId=function(e){if(!COMPILED){if(!goog.isInEs6ModuleLoader_())throw Error("goog.declareModuleId may only be called from within an ES6 module");if(goog.moduleLoaderState_&&goog.moduleLoaderState_.moduleName)throw Error("goog.declareModuleId may only be called once per module.");if(e in goog.loadedModules_)throw Error('Module with namespace "'+e+'" already exists.')}if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=e;else{var t=goog.global.$jscomp;if(!t||"function"!=typeof t.getCurrentModulePath)throw Error('Module with namespace "'+e+'" has been loaded incorrectly.');t=t.require(t.getCurrentModulePath()),goog.loadedModules_[e]={exports:t,type:goog.ModuleType.ES6,moduleId:e}}},goog.setTestOnly=function(e){if(goog.DISALLOW_TEST_ONLY_CODE)throw e=e||"",Error("Importing test-only code into non-debug environment"+(e?": "+e:"."))},goog.forwardDeclare=function(e){},COMPILED||(goog.isProvided_=function(e){return e in goog.loadedModules_||!goog.implicitNamespaces_[e]&&null!=goog.getObjectByName(e)},goog.implicitNamespaces_={"goog.module":!0}),goog.getObjectByName=function(e,t){e=e.split("."),t=t||goog.global;for(var r=0;r<e.length;r++)if(null==(t=t[e[r]]))return null;return t},goog.globalize=function(e,t){for(var r in t=t||goog.global,e)t[r]=e[r]},goog.addDependency=function(e,t,r,o){!COMPILED&&goog.DEPENDENCIES_ENABLED&&goog.debugLoader_.addDependency(e,t,r,o)},goog.ENABLE_DEBUG_LOADER=!0,goog.logToConsole_=function(e){goog.global.console&&goog.global.console.error(e)},goog.require=function(e){if(!COMPILED){if(goog.ENABLE_DEBUG_LOADER&&goog.debugLoader_.requested(e),goog.isProvided_(e)){if(goog.isInModuleLoader_())return goog.module.getInternal_(e)}else if(goog.ENABLE_DEBUG_LOADER){var t=goog.moduleLoaderState_;goog.moduleLoaderState_=null;try{goog.debugLoader_.load_(e)}finally{goog.moduleLoaderState_=t}}return null}},goog.requireType=function(e){return{}},goog.basePath="",goog.nullFunction=function(){},goog.abstractMethod=function(){throw Error("unimplemented abstract method")},goog.addSingletonGetter=function(e){e.instance_=void 0,e.getInstance=function(){return e.instance_?e.instance_:(goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=e),e.instance_=new e)}},goog.instantiatedSingletons_=[],goog.LOAD_MODULE_USING_EVAL=!0,goog.SEAL_MODULE_EXPORTS=goog.DEBUG,goog.loadedModules_={},goog.DEPENDENCIES_ENABLED=!COMPILED&&goog.ENABLE_DEBUG_LOADER,goog.TRANSPILE="detect",goog.ASSUME_ES_MODULES_TRANSPILED=!1,goog.TRANSPILE_TO_LANGUAGE="",goog.TRANSPILER="transpile.js",goog.hasBadLetScoping=null,goog.useSafari10Workaround=function(){if(null==goog.hasBadLetScoping){try{var a=!eval('"use strict";let x = 1; function f() { return typeof x; };f() == "number";')}catch(e){a=!1}goog.hasBadLetScoping=a}return goog.hasBadLetScoping},goog.workaroundSafari10EvalBug=function(e){return"(function(){"+e+"\n;})();\n"},goog.loadModule=function(e){var t=goog.moduleLoaderState_;try{if(goog.moduleLoaderState_={moduleName:"",declareLegacyNamespace:!1,type:goog.ModuleType.GOOG},goog.isFunction(e))var r=e.call(void 0,{});else{if("string"!=typeof e)throw Error("Invalid module definition");goog.useSafari10Workaround()&&(e=goog.workaroundSafari10EvalBug(e)),r=goog.loadModuleFromSource_.call(void 0,e)}var o=goog.moduleLoaderState_.moduleName;if("string"!=typeof o||!o)throw Error('Invalid module name "'+o+'"');goog.moduleLoaderState_.declareLegacyNamespace?goog.constructNamespace_(o,r):goog.SEAL_MODULE_EXPORTS&&Object.seal&&"object"==typeof r&&null!=r&&Object.seal(r),goog.loadedModules_[o]={exports:r,type:goog.ModuleType.GOOG,moduleId:goog.moduleLoaderState_.moduleName}}finally{goog.moduleLoaderState_=t}},goog.loadModuleFromSource_=function(a){return eval(a),{}},goog.normalizePath_=function(e){e=e.split("/");for(var t=0;t<e.length;)"."==e[t]?e.splice(t,1):t&&".."==e[t]&&e[t-1]&&".."!=e[t-1]?e.splice(--t,2):t++;return e.join("/")},goog.loadFileSync_=function(e){if(goog.global.CLOSURE_LOAD_FILE_SYNC)return goog.global.CLOSURE_LOAD_FILE_SYNC(e);try{var t=new goog.global.XMLHttpRequest;return t.open("get",e,!1),t.send(),0==t.status||200==t.status?t.responseText:null}catch(e){return null}},goog.transpile_=function(e,t,r){var o=goog.global.$jscomp;o||(goog.global.$jscomp=o={});var i=o.transpile;if(!i){var n=goog.basePath+goog.TRANSPILER,s=goog.loadFileSync_(n);if(s){if(function(){(0,eval)(s+"\n//# sourceURL="+n)}.call(goog.global),goog.global.$gwtExport&&goog.global.$gwtExport.$jscomp&&!goog.global.$gwtExport.$jscomp.transpile)throw Error('The transpiler did not properly export the "transpile" method. $gwtExport: '+JSON.stringify(goog.global.$gwtExport));goog.global.$jscomp.transpile=goog.global.$gwtExport.$jscomp.transpile,i=(o=goog.global.$jscomp).transpile}}return i||(i=o.transpile=function(e,t){return goog.logToConsole_(t+" requires transpilation but no transpiler was found."),e}),i(e,t,r)},goog.typeOf=function(e){var t=typeof e;if("object"==t){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return t;var r=Object.prototype.toString.call(e);if("[object Window]"==r)return"object";if("[object Array]"==r||"number"==typeof e.length&&void 0!==e.splice&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("splice"))return"array";if("[object Function]"==r||void 0!==e.call&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("call"))return"function"}else if("function"==t&&void 0===e.call)return"object";return t},goog.isArray=function(e){return"array"==goog.typeOf(e)},goog.isArrayLike=function(e){var t=goog.typeOf(e);return"array"==t||"object"==t&&"number"==typeof e.length},goog.isDateLike=function(e){return goog.isObject(e)&&"function"==typeof e.getFullYear},goog.isFunction=function(e){return"function"==goog.typeOf(e)},goog.isObject=function(e){var t=typeof e;return"object"==t&&null!=e||"function"==t},goog.getUid=function(e){return Object.prototype.hasOwnProperty.call(e,goog.UID_PROPERTY_)&&e[goog.UID_PROPERTY_]||(e[goog.UID_PROPERTY_]=++goog.uidCounter_)},goog.hasUid=function(e){return!!e[goog.UID_PROPERTY_]},goog.removeUid=function(e){null!==e&&"removeAttribute"in e&&e.removeAttribute(goog.UID_PROPERTY_);try{delete e[goog.UID_PROPERTY_]}catch(e){}},goog.UID_PROPERTY_="closure_uid_"+(1e9*Math.random()>>>0),goog.uidCounter_=0,goog.getHashCode=goog.getUid,goog.removeHashCode=goog.removeUid,goog.cloneObject=function(e){var t=goog.typeOf(e);if("object"==t||"array"==t){if("function"==typeof e.clone)return e.clone();for(var r in t="array"==t?[]:{},e)t[r]=goog.cloneObject(e[r]);return t}return e},goog.bindNative_=function(e,t,r){return e.call.apply(e.bind,arguments)},goog.bindJs_=function(e,t,r){if(!e)throw Error();if(2<arguments.length){var o=Array.prototype.slice.call(arguments,2);return function(){var r=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(r,o),e.apply(t,r)}}return function(){return e.apply(t,arguments)}},goog.bind=function(e,t,r){return Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?goog.bind=goog.bindNative_:goog.bind=goog.bindJs_,goog.bind.apply(null,arguments)},goog.partial=function(e,t){var r=Array.prototype.slice.call(arguments,1);return function(){var t=r.slice();return t.push.apply(t,arguments),e.apply(this,t)}},goog.mixin=function(e,t){for(var r in t)e[r]=t[r]},goog.now=goog.TRUSTED_SITE&&Date.now||function(){return+new Date},goog.globalEval=function(e){if(goog.global.execScript)goog.global.execScript(e,"JavaScript");else{if(!goog.global.eval)throw Error("goog.globalEval not available");if(null==goog.evalWorksForGlobals_){try{goog.global.eval("var _evalTest_ = 1;")}catch(e){}if(void 0!==goog.global._evalTest_){try{delete goog.global._evalTest_}catch(e){}goog.evalWorksForGlobals_=!0}else goog.evalWorksForGlobals_=!1}if(goog.evalWorksForGlobals_)goog.global.eval(e);else{var t=goog.global.document,r=t.createElement("script");r.type="text/javascript",r.defer=!1,r.appendChild(t.createTextNode(e)),t.head.appendChild(r),t.head.removeChild(r)}}},goog.evalWorksForGlobals_=null,goog.getCssName=function(e,t){if("."==String(e).charAt(0))throw Error('className passed in goog.getCssName must not start with ".". You passed: '+e);var r=function(e){return goog.cssNameMapping_[e]||e},o=function(e){e=e.split("-");for(var t=[],o=0;o<e.length;o++)t.push(r(e[o]));return t.join("-")};return o=goog.cssNameMapping_?"BY_WHOLE"==goog.cssNameMappingStyle_?r:o:function(e){return e},e=t?e+"-"+o(t):o(e),goog.global.CLOSURE_CSS_NAME_MAP_FN?goog.global.CLOSURE_CSS_NAME_MAP_FN(e):e},goog.setCssNameMapping=function(e,t){goog.cssNameMapping_=e,goog.cssNameMappingStyle_=t},!COMPILED&&goog.global.CLOSURE_CSS_NAME_MAPPING&&(goog.cssNameMapping_=goog.global.CLOSURE_CSS_NAME_MAPPING),goog.getMsg=function(e,t,r){return r&&r.html&&(e=e.replace(/</g,"<")),t&&(e=e.replace(/\{\$([^}]+)}/g,(function(e,r){return null!=t&&r in t?t[r]:e}))),e},goog.getMsgWithFallback=function(e,t){return e},goog.exportSymbol=function(e,t,r){goog.exportPath_(e,t,r)},goog.exportProperty=function(e,t,r){e[t]=r},goog.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.superClass_=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.base=function(e,r,o){for(var i=Array(arguments.length-2),n=2;n<arguments.length;n++)i[n-2]=arguments[n];return t.prototype[r].apply(e,i)}},goog.scope=function(e){if(goog.isInModuleLoader_())throw Error("goog.scope is not supported within a module.");e.call(goog.global)},COMPILED||(goog.global.COMPILED=COMPILED),goog.defineClass=function(e,t){var r=t.constructor,o=t.statics;return r&&r!=Object.prototype.constructor||(r=function(){throw Error("cannot instantiate an interface (no constructor defined).")}),r=goog.defineClass.createSealingConstructor_(r,e),e&&goog.inherits(r,e),delete t.constructor,delete t.statics,goog.defineClass.applyProperties_(r.prototype,t),null!=o&&(o instanceof Function?o(r):goog.defineClass.applyProperties_(r,o)),r},goog.defineClass.SEAL_CLASS_INSTANCES=goog.DEBUG,goog.defineClass.createSealingConstructor_=function(e,t){if(!goog.defineClass.SEAL_CLASS_INSTANCES)return e;var r=!goog.defineClass.isUnsealable_(t),o=function(){var t=e.apply(this,arguments)||this;return t[goog.UID_PROPERTY_]=t[goog.UID_PROPERTY_],this.constructor===o&&r&&Object.seal instanceof Function&&Object.seal(t),t};return o},goog.defineClass.isUnsealable_=function(e){return e&&e.prototype&&e.prototype[goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_]},goog.defineClass.OBJECT_PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog.defineClass.applyProperties_=function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);for(var o=0;o<goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length;o++)r=goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[o],Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},goog.tagUnsealableClass=function(e){!COMPILED&&goog.defineClass.SEAL_CLASS_INSTANCES&&(e.prototype[goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_]=!0)},goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_="goog_defineClass_legacy_unsealable",!COMPILED&&goog.DEPENDENCIES_ENABLED&&(goog.inHtmlDocument_=function(){var e=goog.global.document;return null!=e&&"write"in e},goog.isDocumentLoading_=function(){var e=goog.global.document;return e.attachEvent?"complete"!=e.readyState:"loading"==e.readyState},goog.findBasePath_=function(){if(null!=goog.global.CLOSURE_BASE_PATH&&"string"==typeof goog.global.CLOSURE_BASE_PATH)goog.basePath=goog.global.CLOSURE_BASE_PATH;else if(goog.inHtmlDocument_()){var e=goog.global.document,t=e.currentScript;for(t=(e=t?[t]:e.getElementsByTagName("SCRIPT")).length-1;0<=t;--t){var r=e[t].src,o=r.lastIndexOf("?");if(o=-1==o?r.length:o,"base.js"==r.substr(o-7,7)){goog.basePath=r.substr(0,o-7);break}}}},goog.findBasePath_(),goog.Transpiler=function(){this.requiresTranspilation_=null,this.transpilationTarget_=goog.TRANSPILE_TO_LANGUAGE},goog.Transpiler.prototype.createRequiresTranspilation_=function(){function a(t,r){e?d[t]=!0:r()?(c=t,d[t]=!1):e=d[t]=!0}function b(a){try{return!!eval(a)}catch(e){return!1}}var c="es3",d={es3:!1},e=!1,f=goog.global.navigator&&goog.global.navigator.userAgent?goog.global.navigator.userAgent:"";return a("es5",(function(){return b("[1,].length==1")})),a("es6",(function(){return!f.match(/Edge\/(\d+)(\.\d)*/i)&&b('(()=>{"use strict";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()')})),a("es7",(function(){return b("2 ** 2 == 4")})),a("es8",(function(){return b("async () => 1, true")})),a("es9",(function(){return b("({...rest} = {}), true")})),a("es_next",(function(){return!1})),{target:c,map:d}},goog.Transpiler.prototype.needsTranspile=function(e,t){if("always"==goog.TRANSPILE)return!0;if("never"==goog.TRANSPILE)return!1;if(!this.requiresTranspilation_){var r=this.createRequiresTranspilation_();this.requiresTranspilation_=r.map,this.transpilationTarget_=this.transpilationTarget_||r.target}if(e in this.requiresTranspilation_)return!!this.requiresTranspilation_[e]||!(!goog.inHtmlDocument_()||"es6"!=t||"noModule"in goog.global.document.createElement("script"));throw Error("Unknown language mode: "+e)},goog.Transpiler.prototype.transpile=function(e,t){return goog.transpile_(e,t,this.transpilationTarget_)},goog.transpiler_=new goog.Transpiler,goog.protectScriptTag_=function(e){return e.replace(/<\/(SCRIPT)/gi,"\\x3c/$1")},goog.DebugLoader_=function(){this.dependencies_={},this.idToPath_={},this.written_={},this.loadingDeps_=[],this.depsToLoad_=[],this.paused_=!1,this.factory_=new goog.DependencyFactory(goog.transpiler_),this.deferredCallbacks_={},this.deferredQueue_=[]},goog.DebugLoader_.prototype.bootstrap=function(e,t){function r(){o&&(goog.global.setTimeout(o,0),o=null)}var o=t;if(e.length){t=[];for(var i=0;i<e.length;i++){var n=this.getPathFromDeps_(e[i]);if(!n)throw Error("Unregonized namespace: "+e[i]);t.push(this.dependencies_[n])}n=goog.require;var s=0;for(i=0;i<e.length;i++)n(e[i]),t[i].onLoad((function(){++s==e.length&&r()}))}else r()},goog.DebugLoader_.prototype.loadClosureDeps=function(){this.depsToLoad_.push(this.factory_.createDependency(goog.normalizePath_(goog.basePath+"deps.js"),"deps.js",[],[],{},!1)),this.loadDeps_()},goog.DebugLoader_.prototype.requested=function(e,t){(e=this.getPathFromDeps_(e))&&(t||this.areDepsLoaded_(this.dependencies_[e].requires))&&(t=this.deferredCallbacks_[e])&&(delete this.deferredCallbacks_[e],t())},goog.DebugLoader_.prototype.setDependencyFactory=function(e){this.factory_=e},goog.DebugLoader_.prototype.load_=function(e){if(!this.getPathFromDeps_(e))throw e="goog.require could not find: "+e,goog.logToConsole_(e),Error(e);var t=this,r=[],o=function(e){var i=t.getPathFromDeps_(e);if(!i)throw Error("Bad dependency path or symbol: "+e);if(!t.written_[i]){for(t.written_[i]=!0,e=t.dependencies_[i],i=0;i<e.requires.length;i++)goog.isProvided_(e.requires[i])||o(e.requires[i]);r.push(e)}};o(e),e=!!this.depsToLoad_.length,this.depsToLoad_=this.depsToLoad_.concat(r),this.paused_||e||this.loadDeps_()},goog.DebugLoader_.prototype.loadDeps_=function(){for(var e=this,t=this.paused_;this.depsToLoad_.length&&!t;)!function(){var r=!1,o=e.depsToLoad_.shift(),i=!1;e.loading_(o);var n={pause:function(){if(r)throw Error("Cannot call pause after the call to load.");t=!0},resume:function(){r?e.resume_():t=!1},loaded:function(){if(i)throw Error("Double call to loaded.");i=!0,e.loaded_(o)},pending:function(){for(var t=[],r=0;r<e.loadingDeps_.length;r++)t.push(e.loadingDeps_[r]);return t},setModuleState:function(e){goog.moduleLoaderState_={type:e,moduleName:"",declareLegacyNamespace:!1}},registerEs6ModuleExports:function(e,t,r){r&&(goog.loadedModules_[r]={exports:t,type:goog.ModuleType.ES6,moduleId:r||""})},registerGoogModuleExports:function(e,t){goog.loadedModules_[e]={exports:t,type:goog.ModuleType.GOOG,moduleId:e}},clearModuleState:function(){goog.moduleLoaderState_=null},defer:function(t){if(r)throw Error("Cannot register with defer after the call to load.");e.defer_(o,t)},areDepsLoaded:function(){return e.areDepsLoaded_(o.requires)}};try{o.load(n)}finally{r=!0}}();t&&this.pause_()},goog.DebugLoader_.prototype.pause_=function(){this.paused_=!0},goog.DebugLoader_.prototype.resume_=function(){this.paused_&&(this.paused_=!1,this.loadDeps_())},goog.DebugLoader_.prototype.loading_=function(e){this.loadingDeps_.push(e)},goog.DebugLoader_.prototype.loaded_=function(e){for(var t=0;t<this.loadingDeps_.length;t++)if(this.loadingDeps_[t]==e){this.loadingDeps_.splice(t,1);break}for(t=0;t<this.deferredQueue_.length;t++)if(this.deferredQueue_[t]==e.path){this.deferredQueue_.splice(t,1);break}if(this.loadingDeps_.length==this.deferredQueue_.length&&!this.depsToLoad_.length)for(;this.deferredQueue_.length;)this.requested(this.deferredQueue_.shift(),!0);e.loaded()},goog.DebugLoader_.prototype.areDepsLoaded_=function(e){for(var t=0;t<e.length;t++){var r=this.getPathFromDeps_(e[t]);if(!r||!(r in this.deferredCallbacks_)&&!goog.isProvided_(e[t]))return!1}return!0},goog.DebugLoader_.prototype.getPathFromDeps_=function(e){return e in this.idToPath_?this.idToPath_[e]:e in this.dependencies_?e:null},goog.DebugLoader_.prototype.defer_=function(e,t){this.deferredCallbacks_[e.path]=t,this.deferredQueue_.push(e.path)},goog.LoadController=function(){},goog.LoadController.prototype.pause=function(){},goog.LoadController.prototype.resume=function(){},goog.LoadController.prototype.loaded=function(){},goog.LoadController.prototype.pending=function(){},goog.LoadController.prototype.registerEs6ModuleExports=function(e,t,r){},goog.LoadController.prototype.setModuleState=function(e){},goog.LoadController.prototype.clearModuleState=function(){},goog.LoadController.prototype.defer=function(e){},goog.LoadController.prototype.areDepsLoaded=function(){},goog.Dependency=function(e,t,r,o,i){this.path=e,this.relativePath=t,this.provides=r,this.requires=o,this.loadFlags=i,this.loaded_=!1,this.loadCallbacks_=[]},goog.Dependency.prototype.getPathName=function(){var e=this.path,t=e.indexOf("://");return 0<=t&&0<=(t=(e=e.substring(t+3)).indexOf("/"))&&(e=e.substring(t+1)),e},goog.Dependency.prototype.onLoad=function(e){this.loaded_?e():this.loadCallbacks_.push(e)},goog.Dependency.prototype.loaded=function(){this.loaded_=!0;var e=this.loadCallbacks_;this.loadCallbacks_=[];for(var t=0;t<e.length;t++)e[t]()},goog.Dependency.defer_=!1,goog.Dependency.callbackMap_={},goog.Dependency.registerCallback_=function(e){var t=Math.random().toString(32);return goog.Dependency.callbackMap_[t]=e,t},goog.Dependency.unregisterCallback_=function(e){delete goog.Dependency.callbackMap_[e]},goog.Dependency.callback_=function(e,t){if(!(e in goog.Dependency.callbackMap_))throw Error("Callback key "+e+" does not exist (was base.js loaded more than once?).");for(var r=goog.Dependency.callbackMap_[e],o=[],i=1;i<arguments.length;i++)o.push(arguments[i]);r.apply(void 0,o)},goog.Dependency.prototype.load=function(e){if(goog.global.CLOSURE_IMPORT_SCRIPT)goog.global.CLOSURE_IMPORT_SCRIPT(this.path)?e.loaded():e.pause();else if(goog.inHtmlDocument_()){var t=goog.global.document;if("complete"==t.readyState&&!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING){if(/\bdeps.js$/.test(this.path))return void e.loaded();throw Error('Cannot write "'+this.path+'" after document load')}if(!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING&&goog.isDocumentLoading_()){var r=goog.Dependency.registerCallback_((function(t){goog.DebugLoader_.IS_OLD_IE_&&"complete"!=t.readyState||(goog.Dependency.unregisterCallback_(r),e.loaded())})),o=!goog.DebugLoader_.IS_OLD_IE_&&goog.getScriptNonce()?' nonce="'+goog.getScriptNonce()+'"':"";o='<script src="'+this.path+'" '+(goog.DebugLoader_.IS_OLD_IE_?"onreadystatechange":"onload")+"=\"goog.Dependency.callback_('"+r+'\', this)" type="text/javascript" '+(goog.Dependency.defer_?"defer":"")+o+"><\/script>",t.write(goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createHTML(o):o)}else{var i=t.createElement("script");i.defer=goog.Dependency.defer_,i.async=!1,i.type="text/javascript",(o=goog.getScriptNonce())&&i.setAttribute("nonce",o),goog.DebugLoader_.IS_OLD_IE_?(e.pause(),i.onreadystatechange=function(){"loaded"!=i.readyState&&"complete"!=i.readyState||(e.loaded(),e.resume())}):i.onload=function(){i.onload=null,e.loaded()},i.src=goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createScriptURL(this.path):this.path,t.head.appendChild(i)}}else goog.logToConsole_("Cannot use default debug loader outside of HTML documents."),"deps.js"==this.relativePath?(goog.logToConsole_("Consider setting CLOSURE_IMPORT_SCRIPT before loading base.js, or setting CLOSURE_NO_DEPS to true."),e.loaded()):e.pause()},goog.Es6ModuleDependency=function(e,t,r,o,i){goog.Dependency.call(this,e,t,r,o,i)},goog.inherits(goog.Es6ModuleDependency,goog.Dependency),goog.Es6ModuleDependency.prototype.load=function(e){if(goog.global.CLOSURE_IMPORT_SCRIPT)goog.global.CLOSURE_IMPORT_SCRIPT(this.path)?e.loaded():e.pause();else if(goog.inHtmlDocument_()){var t=goog.global.document,r=this;if(goog.isDocumentLoading_()){var o=function(e,r){e=r?'<script type="module" crossorigin>'+r+"<\/script>":'<script type="module" crossorigin src="'+e+'"><\/script>',t.write(goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createHTML(e):e)};goog.Dependency.defer_=!0}else o=function(e,r){var o=t.createElement("script");o.defer=!0,o.async=!1,o.type="module",o.setAttribute("crossorigin",!0);var i=goog.getScriptNonce();i&&o.setAttribute("nonce",i),r?o.textContent=goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createScript(r):r:o.src=goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createScriptURL(e):e,t.head.appendChild(o)};var i=goog.Dependency.registerCallback_((function(){goog.Dependency.unregisterCallback_(i),e.setModuleState(goog.ModuleType.ES6)}));o(void 0,'goog.Dependency.callback_("'+i+'")'),o(this.path,void 0);var n=goog.Dependency.registerCallback_((function(t){goog.Dependency.unregisterCallback_(n),e.registerEs6ModuleExports(r.path,t,goog.moduleLoaderState_.moduleName)}));o(void 0,'import * as m from "'+this.path+'"; goog.Dependency.callback_("'+n+'", m)');var s=goog.Dependency.registerCallback_((function(){goog.Dependency.unregisterCallback_(s),e.clearModuleState(),e.loaded()}));o(void 0,'goog.Dependency.callback_("'+s+'")')}else goog.logToConsole_("Cannot use default debug loader outside of HTML documents."),e.pause()},goog.TransformedDependency=function(e,t,r,o,i){goog.Dependency.call(this,e,t,r,o,i),this.contents_=null,this.lazyFetch_=!goog.inHtmlDocument_()||!("noModule"in goog.global.document.createElement("script"))},goog.inherits(goog.TransformedDependency,goog.Dependency),goog.TransformedDependency.prototype.load=function(e){function t(){o.contents_=goog.loadFileSync_(o.path),o.contents_&&(o.contents_=o.transform(o.contents_),o.contents_&&(o.contents_+="\n//# sourceURL="+o.path))}function r(){if(o.lazyFetch_&&t(),o.contents_){i&&e.setModuleState(goog.ModuleType.ES6);try{var r=o.contents_;if(o.contents_=null,goog.globalEval(r),i)var n=goog.moduleLoaderState_.moduleName}finally{i&&e.clearModuleState()}i&&goog.global.$jscomp.require.ensure([o.getPathName()],(function(){e.registerEs6ModuleExports(o.path,goog.global.$jscomp.require(o.getPathName()),n)})),e.loaded()}}var o=this;if(goog.global.CLOSURE_IMPORT_SCRIPT)t(),this.contents_&&goog.global.CLOSURE_IMPORT_SCRIPT("",this.contents_)?(this.contents_=null,e.loaded()):e.pause();else{var i=this.loadFlags.module==goog.ModuleType.ES6;this.lazyFetch_||t();var n=1<e.pending().length,s=n&&goog.DebugLoader_.IS_OLD_IE_;if(n=goog.Dependency.defer_&&(n||goog.isDocumentLoading_()),s||n)e.defer((function(){r()}));else{var a=goog.global.document;if(s=goog.inHtmlDocument_()&&"ActiveXObject"in goog.global,i&&goog.inHtmlDocument_()&&goog.isDocumentLoading_()&&!s){goog.Dependency.defer_=!0,e.pause();var u=a.onreadystatechange;a.onreadystatechange=function(){"interactive"==a.readyState&&(a.onreadystatechange=u,r(),e.resume()),goog.isFunction(u)&&u.apply(void 0,arguments)}}else!goog.DebugLoader_.IS_OLD_IE_&&goog.inHtmlDocument_()&&goog.isDocumentLoading_()?function(){var e=goog.global.document,t=goog.Dependency.registerCallback_((function(){goog.Dependency.unregisterCallback_(t),r()})),o='<script type="text/javascript">'+goog.protectScriptTag_('goog.Dependency.callback_("'+t+'");')+"<\/script>";e.write(goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createHTML(o):o)}():r()}}},goog.TransformedDependency.prototype.transform=function(e){},goog.TranspiledDependency=function(e,t,r,o,i,n){goog.TransformedDependency.call(this,e,t,r,o,i),this.transpiler=n},goog.inherits(goog.TranspiledDependency,goog.TransformedDependency),goog.TranspiledDependency.prototype.transform=function(e){return this.transpiler.transpile(e,this.getPathName())},goog.PreTranspiledEs6ModuleDependency=function(e,t,r,o,i){goog.TransformedDependency.call(this,e,t,r,o,i)},goog.inherits(goog.PreTranspiledEs6ModuleDependency,goog.TransformedDependency),goog.PreTranspiledEs6ModuleDependency.prototype.transform=function(e){return e},goog.GoogModuleDependency=function(e,t,r,o,i,n,s){goog.TransformedDependency.call(this,e,t,r,o,i),this.needsTranspile_=n,this.transpiler_=s},goog.inherits(goog.GoogModuleDependency,goog.TransformedDependency),goog.GoogModuleDependency.prototype.transform=function(e){return this.needsTranspile_&&(e=this.transpiler_.transpile(e,this.getPathName())),goog.LOAD_MODULE_USING_EVAL&&void 0!==goog.global.JSON?"goog.loadModule("+goog.global.JSON.stringify(e+"\n//# sourceURL="+this.path+"\n")+");":'goog.loadModule(function(exports) {"use strict";'+e+"\n;return exports});\n//# sourceURL="+this.path+"\n"},goog.DebugLoader_.IS_OLD_IE_=!(goog.global.atob||!goog.global.document||!goog.global.document.all),goog.DebugLoader_.prototype.addDependency=function(e,t,r,o){t=t||[],e=e.replace(/\\/g,"/");var i=goog.normalizePath_(goog.basePath+e);for(o&&"boolean"!=typeof o||(o=o?{module:goog.ModuleType.GOOG}:{}),r=this.factory_.createDependency(i,e,t,r,o,goog.transpiler_.needsTranspile(o.lang||"es3",o.module)),this.dependencies_[i]=r,r=0;r<t.length;r++)this.idToPath_[t[r]]=i;this.idToPath_[e]=i},goog.DependencyFactory=function(e){this.transpiler=e},goog.DependencyFactory.prototype.createDependency=function(e,t,r,o,i,n){return i.module==goog.ModuleType.GOOG?new goog.GoogModuleDependency(e,t,r,o,i,n,this.transpiler):n?new goog.TranspiledDependency(e,t,r,o,i,this.transpiler):i.module==goog.ModuleType.ES6?"never"==goog.TRANSPILE&&goog.ASSUME_ES_MODULES_TRANSPILED?new goog.PreTranspiledEs6ModuleDependency(e,t,r,o,i):new goog.Es6ModuleDependency(e,t,r,o,i):new goog.Dependency(e,t,r,o,i)},goog.debugLoader_=new goog.DebugLoader_,goog.loadClosureDeps=function(){goog.debugLoader_.loadClosureDeps()},goog.setDependencyFactory=function(e){goog.debugLoader_.setDependencyFactory(e)},goog.global.CLOSURE_NO_DEPS||goog.debugLoader_.loadClosureDeps(),goog.bootstrap=function(e,t){goog.debugLoader_.bootstrap(e,t)}),goog.TRUSTED_TYPES_POLICY_NAME="",goog.identity_=function(e){return e},goog.createTrustedTypesPolicy=function(e){var t=null,r=goog.global.trustedTypes||goog.global.TrustedTypes;if(!r||!r.createPolicy)return t;try{t=r.createPolicy(e,{createHTML:goog.identity_,createScript:goog.identity_,createScriptURL:goog.identity_,createURL:goog.identity_})}catch(e){goog.logToConsole_(e.message)}return t},goog.TRUSTED_TYPES_POLICY_=goog.TRUSTED_TYPES_POLICY_NAME?goog.createTrustedTypesPolicy(goog.TRUSTED_TYPES_POLICY_NAME+"#base"):null,goog.object={},goog.object.is=function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},goog.object.forEach=function(e,t,r){for(var o in e)t.call(r,e[o],o,e)},goog.object.filter=function(e,t,r){var o,i={};for(o in e)t.call(r,e[o],o,e)&&(i[o]=e[o]);return i},goog.object.map=function(e,t,r){var o,i={};for(o in e)i[o]=t.call(r,e[o],o,e);return i},goog.object.some=function(e,t,r){for(var o in e)if(t.call(r,e[o],o,e))return!0;return!1},goog.object.every=function(e,t,r){for(var o in e)if(!t.call(r,e[o],o,e))return!1;return!0},goog.object.getCount=function(e){var t,r=0;for(t in e)r++;return r},goog.object.getAnyKey=function(e){for(var t in e)return t},goog.object.getAnyValue=function(e){for(var t in e)return e[t]},goog.object.contains=function(e,t){return goog.object.containsValue(e,t)},goog.object.getValues=function(e){var t,r=[],o=0;for(t in e)r[o++]=e[t];return r},goog.object.getKeys=function(e){var t,r=[],o=0;for(t in e)r[o++]=t;return r},goog.object.getValueByKeys=function(e,t){var r=goog.isArrayLike(t),o=r?t:arguments;for(r=r?0:1;r<o.length;r++){if(null==e)return;e=e[o[r]]}return e},goog.object.containsKey=function(e,t){return null!==e&&t in e},goog.object.containsValue=function(e,t){for(var r in e)if(e[r]==t)return!0;return!1},goog.object.findKey=function(e,t,r){for(var o in e)if(t.call(r,e[o],o,e))return o},goog.object.findValue=function(e,t,r){return(t=goog.object.findKey(e,t,r))&&e[t]},goog.object.isEmpty=function(e){for(var t in e)return!1;return!0},goog.object.clear=function(e){for(var t in e)delete e[t]},goog.object.remove=function(e,t){var r;return(r=t in e)&&delete e[t],r},goog.object.add=function(e,t,r){if(null!==e&&t in e)throw Error('The object already contains the key "'+t+'"');goog.object.set(e,t,r)},goog.object.get=function(e,t,r){return null!==e&&t in e?e[t]:r},goog.object.set=function(e,t,r){e[t]=r},goog.object.setIfUndefined=function(e,t,r){return t in e?e[t]:e[t]=r},goog.object.setWithReturnValueIfNotSet=function(e,t,r){return t in e?e[t]:(r=r(),e[t]=r)},goog.object.equals=function(e,t){for(var r in e)if(!(r in t)||e[r]!==t[r])return!1;for(var o in t)if(!(o in e))return!1;return!0},goog.object.clone=function(e){var t,r={};for(t in e)r[t]=e[t];return r},goog.object.unsafeClone=function(e){var t=goog.typeOf(e);if("object"==t||"array"==t){if(goog.isFunction(e.clone))return e.clone();for(var r in t="array"==t?[]:{},e)t[r]=goog.object.unsafeClone(e[r]);return t}return e},goog.object.transpose=function(e){var t,r={};for(t in e)r[e[t]]=t;return r},goog.object.PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog.object.extend=function(e,t){for(var r,o,i=1;i<arguments.length;i++){for(r in o=arguments[i])e[r]=o[r];for(var n=0;n<goog.object.PROTOTYPE_FIELDS_.length;n++)r=goog.object.PROTOTYPE_FIELDS_[n],Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}},goog.object.create=function(e){var t=arguments.length;if(1==t&&Array.isArray(arguments[0]))return goog.object.create.apply(null,arguments[0]);if(t%2)throw Error("Uneven number of arguments");for(var r={},o=0;o<t;o+=2)r[arguments[o]]=arguments[o+1];return r},goog.object.createSet=function(e){var t=arguments.length;if(1==t&&Array.isArray(arguments[0]))return goog.object.createSet.apply(null,arguments[0]);for(var r={},o=0;o<t;o++)r[arguments[o]]=!0;return r},goog.object.createImmutableView=function(e){var t=e;return Object.isFrozen&&!Object.isFrozen(e)&&(t=Object.create(e),Object.freeze(t)),t},goog.object.isImmutableView=function(e){return!!Object.isFrozen&&Object.isFrozen(e)},goog.object.getAllPropertyNames=function(e,t,r){if(!e)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return goog.object.getKeys(e);for(var o={};e&&(e!==Object.prototype||t)&&(e!==Function.prototype||r);){for(var i=Object.getOwnPropertyNames(e),n=0;n<i.length;n++)o[i[n]]=!0;e=Object.getPrototypeOf(e)}return goog.object.getKeys(o)},goog.object.getSuperClass=function(e){return(e=Object.getPrototypeOf(e.prototype))&&e.constructor};var jspb={asserts:{}};jspb.asserts.doAssertFailure=function(e,t,r,o){var i="Assertion failed";if(r){i+=": "+r;var n=o}else e&&(i+=": "+e,n=t);throw Error(""+i,n||[])},jspb.asserts.assert=function(e,t,r){for(var o=[],i=2;i<arguments.length;++i)o[i-2]=arguments[i];return e||jspb.asserts.doAssertFailure("",null,t,o),e},jspb.asserts.assertString=function(e,t,r){for(var o=[],i=2;i<arguments.length;++i)o[i-2]=arguments[i];return"string"!=typeof e&&jspb.asserts.doAssertFailure("Expected string but got %s: %s.",[goog.typeOf(e),e],t,o),e},jspb.asserts.assertArray=function(e,t,r){for(var o=[],i=2;i<arguments.length;++i)o[i-2]=arguments[i];return Array.isArray(e)||jspb.asserts.doAssertFailure("Expected array but got %s: %s.",[goog.typeOf(e),e],t,o),e},jspb.asserts.fail=function(e,t){for(var r=[],o=1;o<arguments.length;++o)r[o-1]=arguments[o];throw Error("Failure"+(e?": "+e:""),r)},jspb.asserts.assertInstanceof=function(e,t,r,o){for(var i=[],n=3;n<arguments.length;++n)i[n-3]=arguments[n];return e instanceof t||jspb.asserts.doAssertFailure("Expected instanceof %s but got %s.",[jspb.asserts.getType(t),jspb.asserts.getType(e)],r,i),e},jspb.asserts.getType=function(e){return e instanceof Function?e.displayName||e.name||"unknown type name":e instanceof Object?e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e):null===e?"null":typeof e},jspb.BinaryConstants={},jspb.ConstBinaryMessage=function(){},jspb.BinaryMessage=function(){},jspb.BinaryConstants.FieldType={INVALID:-1,DOUBLE:1,FLOAT:2,INT64:3,UINT64:4,INT32:5,FIXED64:6,FIXED32:7,BOOL:8,STRING:9,GROUP:10,MESSAGE:11,BYTES:12,UINT32:13,ENUM:14,SFIXED32:15,SFIXED64:16,SINT32:17,SINT64:18,FHASH64:30,VHASH64:31},jspb.BinaryConstants.WireType={INVALID:-1,VARINT:0,FIXED64:1,DELIMITED:2,START_GROUP:3,END_GROUP:4,FIXED32:5},jspb.BinaryConstants.FieldTypeToWireType=function(e){var t=jspb.BinaryConstants.FieldType,r=jspb.BinaryConstants.WireType;switch(e){case t.INT32:case t.INT64:case t.UINT32:case t.UINT64:case t.SINT32:case t.SINT64:case t.BOOL:case t.ENUM:case t.VHASH64:return r.VARINT;case t.DOUBLE:case t.FIXED64:case t.SFIXED64:case t.FHASH64:return r.FIXED64;case t.STRING:case t.MESSAGE:case t.BYTES:return r.DELIMITED;case t.FLOAT:case t.FIXED32:case t.SFIXED32:return r.FIXED32;default:return r.INVALID}},jspb.BinaryConstants.INVALID_FIELD_NUMBER=-1,jspb.BinaryConstants.FLOAT32_EPS=1401298464324817e-60,jspb.BinaryConstants.FLOAT32_MIN=11754943508222875e-54,jspb.BinaryConstants.FLOAT32_MAX=34028234663852886e22,jspb.BinaryConstants.FLOAT64_EPS=5e-324,jspb.BinaryConstants.FLOAT64_MIN=22250738585072014e-324,jspb.BinaryConstants.FLOAT64_MAX=17976931348623157e292,jspb.BinaryConstants.TWO_TO_20=1048576,jspb.BinaryConstants.TWO_TO_23=8388608,jspb.BinaryConstants.TWO_TO_31=2147483648,jspb.BinaryConstants.TWO_TO_32=4294967296,jspb.BinaryConstants.TWO_TO_52=4503599627370496,jspb.BinaryConstants.TWO_TO_63=0x8000000000000000,jspb.BinaryConstants.TWO_TO_64=0x10000000000000000,jspb.BinaryConstants.ZERO_HASH="\0\0\0\0\0\0\0\0",goog.debug={},goog.debug.Error=function(e){if(Error.captureStackTrace)Error.captureStackTrace(this,goog.debug.Error);else{var t=Error().stack;t&&(this.stack=t)}e&&(this.message=String(e)),this.reportErrorToServer=!0},goog.inherits(goog.debug.Error,Error),goog.debug.Error.prototype.name="CustomError",goog.dom={},goog.dom.NodeType={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12},goog.asserts={},goog.asserts.ENABLE_ASSERTS=goog.DEBUG,goog.asserts.AssertionError=function(e,t){goog.debug.Error.call(this,goog.asserts.subs_(e,t)),this.messagePattern=e},goog.inherits(goog.asserts.AssertionError,goog.debug.Error),goog.asserts.AssertionError.prototype.name="AssertionError",goog.asserts.DEFAULT_ERROR_HANDLER=function(e){throw e},goog.asserts.errorHandler_=goog.asserts.DEFAULT_ERROR_HANDLER,goog.asserts.subs_=function(e,t){for(var r="",o=(e=e.split("%s")).length-1,i=0;i<o;i++)r+=e[i]+(i<t.length?t[i]:"%s");return r+e[o]},goog.asserts.doAssertFailure_=function(e,t,r,o){var i="Assertion failed";if(r){i+=": "+r;var n=o}else e&&(i+=": "+e,n=t);e=new goog.asserts.AssertionError(""+i,n||[]),goog.asserts.errorHandler_(e)},goog.asserts.setErrorHandler=function(e){goog.asserts.ENABLE_ASSERTS&&(goog.asserts.errorHandler_=e)},goog.asserts.assert=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!e&&goog.asserts.doAssertFailure_("",null,t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertExists=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&null==e&&goog.asserts.doAssertFailure_("Expected to exist: %s.",[e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.fail=function(e,t){goog.asserts.ENABLE_ASSERTS&&goog.asserts.errorHandler_(new goog.asserts.AssertionError("Failure"+(e?": "+e:""),Array.prototype.slice.call(arguments,1)))},goog.asserts.assertNumber=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&"number"!=typeof e&&goog.asserts.doAssertFailure_("Expected number but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertString=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&"string"!=typeof e&&goog.asserts.doAssertFailure_("Expected string but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertFunction=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isFunction(e)&&goog.asserts.doAssertFailure_("Expected function but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertObject=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isObject(e)&&goog.asserts.doAssertFailure_("Expected object but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertArray=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!Array.isArray(e)&&goog.asserts.doAssertFailure_("Expected array but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertBoolean=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&"boolean"!=typeof e&&goog.asserts.doAssertFailure_("Expected boolean but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertElement=function(e,t,r){return!goog.asserts.ENABLE_ASSERTS||goog.isObject(e)&&e.nodeType==goog.dom.NodeType.ELEMENT||goog.asserts.doAssertFailure_("Expected Element but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertInstanceof=function(e,t,r,o){return!goog.asserts.ENABLE_ASSERTS||e instanceof t||goog.asserts.doAssertFailure_("Expected instanceof %s but got %s.",[goog.asserts.getType_(t),goog.asserts.getType_(e)],r,Array.prototype.slice.call(arguments,3)),e},goog.asserts.assertFinite=function(e,t,r){return!goog.asserts.ENABLE_ASSERTS||"number"==typeof e&&isFinite(e)||goog.asserts.doAssertFailure_("Expected %s to be a finite number but it is not.",[e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertObjectPrototypeIsIntact=function(){for(var e in Object.prototype)goog.asserts.fail(e+" should not be enumerable in Object.prototype.")},goog.asserts.getType_=function(e){return e instanceof Function?e.displayName||e.name||"unknown type name":e instanceof Object?e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e):null===e?"null":typeof e},goog.array={},goog.NATIVE_ARRAY_PROTOTYPES=goog.TRUSTED_SITE,goog.array.ASSUME_NATIVE_FUNCTIONS=2012<goog.FEATURESET_YEAR,goog.array.peek=function(e){return e[e.length-1]},goog.array.last=goog.array.peek,goog.array.indexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.indexOf)?function(e,t,r){return goog.asserts.assert(null!=e.length),Array.prototype.indexOf.call(e,t,r)}:function(e,t,r){if(r=null==r?0:0>r?Math.max(0,e.length+r):r,"string"==typeof e)return"string"!=typeof t||1!=t.length?-1:e.indexOf(t,r);for(;r<e.length;r++)if(r in e&&e[r]===t)return r;return-1},goog.array.lastIndexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.lastIndexOf)?function(e,t,r){return goog.asserts.assert(null!=e.length),Array.prototype.lastIndexOf.call(e,t,null==r?e.length-1:r)}:function(e,t,r){if(0>(r=null==r?e.length-1:r)&&(r=Math.max(0,e.length+r)),"string"==typeof e)return"string"!=typeof t||1!=t.length?-1:e.lastIndexOf(t,r);for(;0<=r;r--)if(r in e&&e[r]===t)return r;return-1},goog.array.forEach=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.forEach)?function(e,t,r){goog.asserts.assert(null!=e.length),Array.prototype.forEach.call(e,t,r)}:function(e,t,r){for(var o=e.length,i="string"==typeof e?e.split(""):e,n=0;n<o;n++)n in i&&t.call(r,i[n],n,e)},goog.array.forEachRight=function(e,t,r){var o=e.length,i="string"==typeof e?e.split(""):e;for(--o;0<=o;--o)o in i&&t.call(r,i[o],o,e)},goog.array.filter=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.filter)?function(e,t,r){return goog.asserts.assert(null!=e.length),Array.prototype.filter.call(e,t,r)}:function(e,t,r){for(var o=e.length,i=[],n=0,s="string"==typeof e?e.split(""):e,a=0;a<o;a++)if(a in s){var u=s[a];t.call(r,u,a,e)&&(i[n++]=u)}return i},goog.array.map=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.map)?function(e,t,r){return goog.asserts.assert(null!=e.length),Array.prototype.map.call(e,t,r)}:function(e,t,r){for(var o=e.length,i=Array(o),n="string"==typeof e?e.split(""):e,s=0;s<o;s++)s in n&&(i[s]=t.call(r,n[s],s,e));return i},goog.array.reduce=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduce)?function(e,t,r,o){return goog.asserts.assert(null!=e.length),o&&(t=goog.bind(t,o)),Array.prototype.reduce.call(e,t,r)}:function(e,t,r,o){var i=r;return goog.array.forEach(e,(function(r,n){i=t.call(o,i,r,n,e)})),i},goog.array.reduceRight=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduceRight)?function(e,t,r,o){return goog.asserts.assert(null!=e.length),goog.asserts.assert(null!=t),o&&(t=goog.bind(t,o)),Array.prototype.reduceRight.call(e,t,r)}:function(e,t,r,o){var i=r;return goog.array.forEachRight(e,(function(r,n){i=t.call(o,i,r,n,e)})),i},goog.array.some=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.some)?function(e,t,r){return goog.asserts.assert(null!=e.length),Array.prototype.some.call(e,t,r)}:function(e,t,r){for(var o=e.length,i="string"==typeof e?e.split(""):e,n=0;n<o;n++)if(n in i&&t.call(r,i[n],n,e))return!0;return!1},goog.array.every=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.every)?function(e,t,r){return goog.asserts.assert(null!=e.length),Array.prototype.every.call(e,t,r)}:function(e,t,r){for(var o=e.length,i="string"==typeof e?e.split(""):e,n=0;n<o;n++)if(n in i&&!t.call(r,i[n],n,e))return!1;return!0},goog.array.count=function(e,t,r){var o=0;return goog.array.forEach(e,(function(e,i,n){t.call(r,e,i,n)&&++o}),r),o},goog.array.find=function(e,t,r){return 0>(t=goog.array.findIndex(e,t,r))?null:"string"==typeof e?e.charAt(t):e[t]},goog.array.findIndex=function(e,t,r){for(var o=e.length,i="string"==typeof e?e.split(""):e,n=0;n<o;n++)if(n in i&&t.call(r,i[n],n,e))return n;return-1},goog.array.findRight=function(e,t,r){return 0>(t=goog.array.findIndexRight(e,t,r))?null:"string"==typeof e?e.charAt(t):e[t]},goog.array.findIndexRight=function(e,t,r){var o=e.length,i="string"==typeof e?e.split(""):e;for(--o;0<=o;o--)if(o in i&&t.call(r,i[o],o,e))return o;return-1},goog.array.contains=function(e,t){return 0<=goog.array.indexOf(e,t)},goog.array.isEmpty=function(e){return 0==e.length},goog.array.clear=function(e){if(!Array.isArray(e))for(var t=e.length-1;0<=t;t--)delete e[t];e.length=0},goog.array.insert=function(e,t){goog.array.contains(e,t)||e.push(t)},goog.array.insertAt=function(e,t,r){goog.array.splice(e,r,0,t)},goog.array.insertArrayAt=function(e,t,r){goog.partial(goog.array.splice,e,r,0).apply(null,t)},goog.array.insertBefore=function(e,t,r){var o;2==arguments.length||0>(o=goog.array.indexOf(e,r))?e.push(t):goog.array.insertAt(e,t,o)},goog.array.remove=function(e,t){var r;return(r=0<=(t=goog.array.indexOf(e,t)))&&goog.array.removeAt(e,t),r},goog.array.removeLast=function(e,t){return 0<=(t=goog.array.lastIndexOf(e,t))&&(goog.array.removeAt(e,t),!0)},goog.array.removeAt=function(e,t){return goog.asserts.assert(null!=e.length),1==Array.prototype.splice.call(e,t,1).length},goog.array.removeIf=function(e,t,r){return 0<=(t=goog.array.findIndex(e,t,r))&&(goog.array.removeAt(e,t),!0)},goog.array.removeAllIf=function(e,t,r){var o=0;return goog.array.forEachRight(e,(function(i,n){t.call(r,i,n,e)&&goog.array.removeAt(e,n)&&o++})),o},goog.array.concat=function(e){return Array.prototype.concat.apply([],arguments)},goog.array.join=function(e){return Array.prototype.concat.apply([],arguments)},goog.array.toArray=function(e){var t=e.length;if(0<t){for(var r=Array(t),o=0;o<t;o++)r[o]=e[o];return r}return[]},goog.array.clone=goog.array.toArray,goog.array.extend=function(e,t){for(var r=1;r<arguments.length;r++){var o=arguments[r];if(goog.isArrayLike(o)){var i=e.length||0,n=o.length||0;e.length=i+n;for(var s=0;s<n;s++)e[i+s]=o[s]}else e.push(o)}},goog.array.splice=function(e,t,r,o){return goog.asserts.assert(null!=e.length),Array.prototype.splice.apply(e,goog.array.slice(arguments,1))},goog.array.slice=function(e,t,r){return goog.asserts.assert(null!=e.length),2>=arguments.length?Array.prototype.slice.call(e,t):Array.prototype.slice.call(e,t,r)},goog.array.removeDuplicates=function(e,t,r){t=t||e;var o=function(e){return goog.isObject(e)?"o"+goog.getUid(e):(typeof e).charAt(0)+e};r=r||o,o={};for(var i=0,n=0;n<e.length;){var s=e[n++],a=r(s);Object.prototype.hasOwnProperty.call(o,a)||(o[a]=!0,t[i++]=s)}t.length=i},goog.array.binarySearch=function(e,t,r){return goog.array.binarySearch_(e,r||goog.array.defaultCompare,!1,t)},goog.array.binarySelect=function(e,t,r){return goog.array.binarySearch_(e,t,!0,void 0,r)},goog.array.binarySearch_=function(e,t,r,o,i){for(var n,s=0,a=e.length;s<a;){var u=s+(a-s>>>1),l=r?t.call(i,e[u],u,e):t(o,e[u]);0<l?s=u+1:(a=u,n=!l)}return n?s:-s-1},goog.array.sort=function(e,t){e.sort(t||goog.array.defaultCompare)},goog.array.stableSort=function(e,t){for(var r=Array(e.length),o=0;o<e.length;o++)r[o]={index:o,value:e[o]};var i=t||goog.array.defaultCompare;for(goog.array.sort(r,(function(e,t){return i(e.value,t.value)||e.index-t.index})),o=0;o<e.length;o++)e[o]=r[o].value},goog.array.sortByKey=function(e,t,r){var o=r||goog.array.defaultCompare;goog.array.sort(e,(function(e,r){return o(t(e),t(r))}))},goog.array.sortObjectsByKey=function(e,t,r){goog.array.sortByKey(e,(function(e){return e[t]}),r)},goog.array.isSorted=function(e,t,r){t=t||goog.array.defaultCompare;for(var o=1;o<e.length;o++){var i=t(e[o-1],e[o]);if(0<i||0==i&&r)return!1}return!0},goog.array.equals=function(e,t,r){if(!goog.isArrayLike(e)||!goog.isArrayLike(t)||e.length!=t.length)return!1;var o=e.length;r=r||goog.array.defaultCompareEquality;for(var i=0;i<o;i++)if(!r(e[i],t[i]))return!1;return!0},goog.array.compare3=function(e,t,r){r=r||goog.array.defaultCompare;for(var o=Math.min(e.length,t.length),i=0;i<o;i++){var n=r(e[i],t[i]);if(0!=n)return n}return goog.array.defaultCompare(e.length,t.length)},goog.array.defaultCompare=function(e,t){return e>t?1:e<t?-1:0},goog.array.inverseDefaultCompare=function(e,t){return-goog.array.defaultCompare(e,t)},goog.array.defaultCompareEquality=function(e,t){return e===t},goog.array.binaryInsert=function(e,t,r){return 0>(r=goog.array.binarySearch(e,t,r))&&(goog.array.insertAt(e,t,-(r+1)),!0)},goog.array.binaryRemove=function(e,t,r){return 0<=(t=goog.array.binarySearch(e,t,r))&&goog.array.removeAt(e,t)},goog.array.bucket=function(e,t,r){for(var o={},i=0;i<e.length;i++){var n=e[i],s=t.call(r,n,i,e);void 0!==s&&(o[s]||(o[s]=[])).push(n)}return o},goog.array.toObject=function(e,t,r){var o={};return goog.array.forEach(e,(function(i,n){o[t.call(r,i,n,e)]=i})),o},goog.array.range=function(e,t,r){var o=[],i=0,n=e;if(void 0!==t&&(i=e,n=t),0>(r=r||1)*(n-i))return[];if(0<r)for(e=i;e<n;e+=r)o.push(e);else for(e=i;e>n;e+=r)o.push(e);return o},goog.array.repeat=function(e,t){for(var r=[],o=0;o<t;o++)r[o]=e;return r},goog.array.flatten=function(e){for(var t=[],r=0;r<arguments.length;r++){var o=arguments[r];if(Array.isArray(o))for(var i=0;i<o.length;i+=8192){var n=goog.array.slice(o,i,i+8192);n=goog.array.flatten.apply(null,n);for(var s=0;s<n.length;s++)t.push(n[s])}else t.push(o)}return t},goog.array.rotate=function(e,t){return goog.asserts.assert(null!=e.length),e.length&&(0<(t%=e.length)?Array.prototype.unshift.apply(e,e.splice(-t,t)):0>t&&Array.prototype.push.apply(e,e.splice(0,-t))),e},goog.array.moveItem=function(e,t,r){goog.asserts.assert(0<=t&&t<e.length),goog.asserts.assert(0<=r&&r<e.length),t=Array.prototype.splice.call(e,t,1),Array.prototype.splice.call(e,r,0,t[0])},goog.array.zip=function(e){if(!arguments.length)return[];for(var t=[],r=arguments[0].length,o=1;o<arguments.length;o++)arguments[o].length<r&&(r=arguments[o].length);for(o=0;o<r;o++){for(var i=[],n=0;n<arguments.length;n++)i.push(arguments[n][o]);t.push(i)}return t},goog.array.shuffle=function(e,t){t=t||Math.random;for(var r=e.length-1;0<r;r--){var o=Math.floor(t()*(r+1)),i=e[r];e[r]=e[o],e[o]=i}},goog.array.copyByIndex=function(e,t){var r=[];return goog.array.forEach(t,(function(t){r.push(e[t])})),r},goog.array.concatMap=function(e,t,r){return goog.array.concat.apply([],goog.array.map(e,t,r))},goog.crypt={},goog.crypt.stringToByteArray=function(e){for(var t=[],r=0,o=0;o<e.length;o++){var i=e.charCodeAt(o);255<i&&(t[r++]=255&i,i>>=8),t[r++]=i}return t},goog.crypt.byteArrayToString=function(e){if(8192>=e.length)return String.fromCharCode.apply(null,e);for(var t="",r=0;r<e.length;r+=8192){var o=goog.array.slice(e,r,r+8192);t+=String.fromCharCode.apply(null,o)}return t},goog.crypt.byteArrayToHex=function(e,t){return goog.array.map(e,(function(e){return 1<(e=e.toString(16)).length?e:"0"+e})).join(t||"")},goog.crypt.hexToByteArray=function(e){goog.asserts.assert(0==e.length%2,"Key string length must be multiple of 2");for(var t=[],r=0;r<e.length;r+=2)t.push(parseInt(e.substring(r,r+2),16));return t},goog.crypt.stringToUtf8ByteArray=function(e){for(var t=[],r=0,o=0;o<e.length;o++){var i=e.charCodeAt(o);128>i?t[r++]=i:(2048>i?t[r++]=i>>6|192:(55296==(64512&i)&&o+1<e.length&&56320==(64512&e.charCodeAt(o+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++o)),t[r++]=i>>18|240,t[r++]=i>>12&63|128):t[r++]=i>>12|224,t[r++]=i>>6&63|128),t[r++]=63&i|128)}return t},goog.crypt.utf8ByteArrayToString=function(e){for(var t=[],r=0,o=0;r<e.length;){var i=e[r++];if(128>i)t[o++]=String.fromCharCode(i);else if(191<i&&224>i){var n=e[r++];t[o++]=String.fromCharCode((31&i)<<6|63&n)}else if(239<i&&365>i){n=e[r++];var s=e[r++];i=((7&i)<<18|(63&n)<<12|(63&s)<<6|63&e[r++])-65536,t[o++]=String.fromCharCode(55296+(i>>10)),t[o++]=String.fromCharCode(56320+(1023&i))}else n=e[r++],s=e[r++],t[o++]=String.fromCharCode((15&i)<<12|(63&n)<<6|63&s)}return t.join("")},goog.crypt.xorByteArray=function(e,t){goog.asserts.assert(e.length==t.length,"XOR array lengths must match");for(var r=[],o=0;o<e.length;o++)r.push(e[o]^t[o]);return r},goog.dom.asserts={},goog.dom.asserts.assertIsLocation=function(e){if(goog.asserts.ENABLE_ASSERTS){var t=goog.dom.asserts.getWindow_(e);t&&(!e||!(e instanceof t.Location)&&e instanceof t.Element)&&goog.asserts.fail("Argument is not a Location (or a non-Element mock); got: %s",goog.dom.asserts.debugStringForType_(e))}return e},goog.dom.asserts.assertIsElementType_=function(e,t){if(goog.asserts.ENABLE_ASSERTS){var r=goog.dom.asserts.getWindow_(e);r&&void 0!==r[t]&&(e&&(e instanceof r[t]||!(e instanceof r.Location||e instanceof r.Element))||goog.asserts.fail("Argument is not a %s (or a non-Element, non-Location mock); got: %s",t,goog.dom.asserts.debugStringForType_(e)))}return e},goog.dom.asserts.assertIsHTMLAnchorElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLAnchorElement")},goog.dom.asserts.assertIsHTMLButtonElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLButtonElement")},goog.dom.asserts.assertIsHTMLLinkElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLLinkElement")},goog.dom.asserts.assertIsHTMLImageElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLImageElement")},goog.dom.asserts.assertIsHTMLAudioElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLAudioElement")},goog.dom.asserts.assertIsHTMLVideoElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLVideoElement")},goog.dom.asserts.assertIsHTMLInputElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLInputElement")},goog.dom.asserts.assertIsHTMLTextAreaElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLTextAreaElement")},goog.dom.asserts.assertIsHTMLCanvasElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLCanvasElement")},goog.dom.asserts.assertIsHTMLEmbedElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLEmbedElement")},goog.dom.asserts.assertIsHTMLFormElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLFormElement")},goog.dom.asserts.assertIsHTMLFrameElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLFrameElement")},goog.dom.asserts.assertIsHTMLIFrameElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLIFrameElement")},goog.dom.asserts.assertIsHTMLObjectElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLObjectElement")},goog.dom.asserts.assertIsHTMLScriptElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLScriptElement")},goog.dom.asserts.debugStringForType_=function(e){if(!goog.isObject(e))return void 0===e?"undefined":null===e?"null":typeof e;try{return e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e)}catch(e){return"<object could not be stringified>"}},goog.dom.asserts.getWindow_=function(e){try{var t=e&&e.ownerDocument,r=t&&(t.defaultView||t.parentWindow);if((r=r||goog.global).Element&&r.Location)return r}catch(e){}return null},goog.functions={},goog.functions.constant=function(e){return function(){return e}},goog.functions.FALSE=function(){return!1},goog.functions.TRUE=function(){return!0},goog.functions.NULL=function(){return null},goog.functions.identity=function(e,t){return e},goog.functions.error=function(e){return function(){throw Error(e)}},goog.functions.fail=function(e){return function(){throw e}},goog.functions.lock=function(e,t){return t=t||0,function(){return e.apply(this,Array.prototype.slice.call(arguments,0,t))}},goog.functions.nth=function(e){return function(){return arguments[e]}},goog.functions.partialRight=function(e,t){var r=Array.prototype.slice.call(arguments,1);return function(){var t=Array.prototype.slice.call(arguments);return t.push.apply(t,r),e.apply(this,t)}},goog.functions.withReturnValue=function(e,t){return goog.functions.sequence(e,goog.functions.constant(t))},goog.functions.equalTo=function(e,t){return function(r){return t?e==r:e===r}},goog.functions.compose=function(e,t){var r=arguments,o=r.length;return function(){var e;o&&(e=r[o-1].apply(this,arguments));for(var t=o-2;0<=t;t--)e=r[t].call(this,e);return e}},goog.functions.sequence=function(e){var t=arguments,r=t.length;return function(){for(var e,o=0;o<r;o++)e=t[o].apply(this,arguments);return e}},goog.functions.and=function(e){var t=arguments,r=t.length;return function(){for(var e=0;e<r;e++)if(!t[e].apply(this,arguments))return!1;return!0}},goog.functions.or=function(e){var t=arguments,r=t.length;return function(){for(var e=0;e<r;e++)if(t[e].apply(this,arguments))return!0;return!1}},goog.functions.not=function(e){return function(){return!e.apply(this,arguments)}},goog.functions.create=function(e,t){var r=function(){};return r.prototype=e.prototype,r=new r,e.apply(r,Array.prototype.slice.call(arguments,1)),r},goog.functions.CACHE_RETURN_VALUE=!0,goog.functions.cacheReturnValue=function(e){var t,r=!1;return function(){return goog.functions.CACHE_RETURN_VALUE?(r||(t=e(),r=!0),t):e()}},goog.functions.once=function(e){var t=e;return function(){if(t){var e=t;t=null,e()}}},goog.functions.debounce=function(e,t,r){var o=0;return function(i){goog.global.clearTimeout(o);var n=arguments;o=goog.global.setTimeout((function(){e.apply(r,n)}),t)}},goog.functions.throttle=function(e,t,r){var o=0,i=!1,n=[],s=function(){o=0,i&&(i=!1,a())},a=function(){o=goog.global.setTimeout(s,t),e.apply(r,n)};return function(e){n=arguments,o?i=!0:a()}},goog.functions.rateLimit=function(e,t,r){var o=0,i=function(){o=0};return function(n){o||(o=goog.global.setTimeout(i,t),e.apply(r,arguments))}},goog.dom.HtmlElement=function(){},goog.dom.TagName=function(e){this.tagName_=e},goog.dom.TagName.prototype.toString=function(){return this.tagName_},goog.dom.TagName.A=new goog.dom.TagName("A"),goog.dom.TagName.ABBR=new goog.dom.TagName("ABBR"),goog.dom.TagName.ACRONYM=new goog.dom.TagName("ACRONYM"),goog.dom.TagName.ADDRESS=new goog.dom.TagName("ADDRESS"),goog.dom.TagName.APPLET=new goog.dom.TagName("APPLET"),goog.dom.TagName.AREA=new goog.dom.TagName("AREA"),goog.dom.TagName.ARTICLE=new goog.dom.TagName("ARTICLE"),goog.dom.TagName.ASIDE=new goog.dom.TagName("ASIDE"),goog.dom.TagName.AUDIO=new goog.dom.TagName("AUDIO"),goog.dom.TagName.B=new goog.dom.TagName("B"),goog.dom.TagName.BASE=new goog.dom.TagName("BASE"),goog.dom.TagName.BASEFONT=new goog.dom.TagName("BASEFONT"),goog.dom.TagName.BDI=new goog.dom.TagName("BDI"),goog.dom.TagName.BDO=new goog.dom.TagName("BDO"),goog.dom.TagName.BIG=new goog.dom.TagName("BIG"),goog.dom.TagName.BLOCKQUOTE=new goog.dom.TagName("BLOCKQUOTE"),goog.dom.TagName.BODY=new goog.dom.TagName("BODY"),goog.dom.TagName.BR=new goog.dom.TagName("BR"),goog.dom.TagName.BUTTON=new goog.dom.TagName("BUTTON"),goog.dom.TagName.CANVAS=new goog.dom.TagName("CANVAS"),goog.dom.TagName.CAPTION=new goog.dom.TagName("CAPTION"),goog.dom.TagName.CENTER=new goog.dom.TagName("CENTER"),goog.dom.TagName.CITE=new goog.dom.TagName("CITE"),goog.dom.TagName.CODE=new goog.dom.TagName("CODE"),goog.dom.TagName.COL=new goog.dom.TagName("COL"),goog.dom.TagName.COLGROUP=new goog.dom.TagName("COLGROUP"),goog.dom.TagName.COMMAND=new goog.dom.TagName("COMMAND"),goog.dom.TagName.DATA=new goog.dom.TagName("DATA"),goog.dom.TagName.DATALIST=new goog.dom.TagName("DATALIST"),goog.dom.TagName.DD=new goog.dom.TagName("DD"),goog.dom.TagName.DEL=new goog.dom.TagName("DEL"),goog.dom.TagName.DETAILS=new goog.dom.TagName("DETAILS"),goog.dom.TagName.DFN=new goog.dom.TagName("DFN"),goog.dom.TagName.DIALOG=new goog.dom.TagName("DIALOG"),goog.dom.TagName.DIR=new goog.dom.TagName("DIR"),goog.dom.TagName.DIV=new goog.dom.TagName("DIV"),goog.dom.TagName.DL=new goog.dom.TagName("DL"),goog.dom.TagName.DT=new goog.dom.TagName("DT"),goog.dom.TagName.EM=new goog.dom.TagName("EM"),goog.dom.TagName.EMBED=new goog.dom.TagName("EMBED"),goog.dom.TagName.FIELDSET=new goog.dom.TagName("FIELDSET"),goog.dom.TagName.FIGCAPTION=new goog.dom.TagName("FIGCAPTION"),goog.dom.TagName.FIGURE=new goog.dom.TagName("FIGURE"),goog.dom.TagName.FONT=new goog.dom.TagName("FONT"),goog.dom.TagName.FOOTER=new goog.dom.TagName("FOOTER"),goog.dom.TagName.FORM=new goog.dom.TagName("FORM"),goog.dom.TagName.FRAME=new goog.dom.TagName("FRAME"),goog.dom.TagName.FRAMESET=new goog.dom.TagName("FRAMESET"),goog.dom.TagName.H1=new goog.dom.TagName("H1"),goog.dom.TagName.H2=new goog.dom.TagName("H2"),goog.dom.TagName.H3=new goog.dom.TagName("H3"),goog.dom.TagName.H4=new goog.dom.TagName("H4"),goog.dom.TagName.H5=new goog.dom.TagName("H5"),goog.dom.TagName.H6=new goog.dom.TagName("H6"),goog.dom.TagName.HEAD=new goog.dom.TagName("HEAD"),goog.dom.TagName.HEADER=new goog.dom.TagName("HEADER"),goog.dom.TagName.HGROUP=new goog.dom.TagName("HGROUP"),goog.dom.TagName.HR=new goog.dom.TagName("HR"),goog.dom.TagName.HTML=new goog.dom.TagName("HTML"),goog.dom.TagName.I=new goog.dom.TagName("I"),goog.dom.TagName.IFRAME=new goog.dom.TagName("IFRAME"),goog.dom.TagName.IMG=new goog.dom.TagName("IMG"),goog.dom.TagName.INPUT=new goog.dom.TagName("INPUT"),goog.dom.TagName.INS=new goog.dom.TagName("INS"),goog.dom.TagName.ISINDEX=new goog.dom.TagName("ISINDEX"),goog.dom.TagName.KBD=new goog.dom.TagName("KBD"),goog.dom.TagName.KEYGEN=new goog.dom.TagName("KEYGEN"),goog.dom.TagName.LABEL=new goog.dom.TagName("LABEL"),goog.dom.TagName.LEGEND=new goog.dom.TagName("LEGEND"),goog.dom.TagName.LI=new goog.dom.TagName("LI"),goog.dom.TagName.LINK=new goog.dom.TagName("LINK"),goog.dom.TagName.MAIN=new goog.dom.TagName("MAIN"),goog.dom.TagName.MAP=new goog.dom.TagName("MAP"),goog.dom.TagName.MARK=new goog.dom.TagName("MARK"),goog.dom.TagName.MATH=new goog.dom.TagName("MATH"),goog.dom.TagName.MENU=new goog.dom.TagName("MENU"),goog.dom.TagName.MENUITEM=new goog.dom.TagName("MENUITEM"),goog.dom.TagName.META=new goog.dom.TagName("META"),goog.dom.TagName.METER=new goog.dom.TagName("METER"),goog.dom.TagName.NAV=new goog.dom.TagName("NAV"),goog.dom.TagName.NOFRAMES=new goog.dom.TagName("NOFRAMES"),goog.dom.TagName.NOSCRIPT=new goog.dom.TagName("NOSCRIPT"),goog.dom.TagName.OBJECT=new goog.dom.TagName("OBJECT"),goog.dom.TagName.OL=new goog.dom.TagName("OL"),goog.dom.TagName.OPTGROUP=new goog.dom.TagName("OPTGROUP"),goog.dom.TagName.OPTION=new goog.dom.TagName("OPTION"),goog.dom.TagName.OUTPUT=new goog.dom.TagName("OUTPUT"),goog.dom.TagName.P=new goog.dom.TagName("P"),goog.dom.TagName.PARAM=new goog.dom.TagName("PARAM"),goog.dom.TagName.PICTURE=new goog.dom.TagName("PICTURE"),goog.dom.TagName.PRE=new goog.dom.TagName("PRE"),goog.dom.TagName.PROGRESS=new goog.dom.TagName("PROGRESS"),goog.dom.TagName.Q=new goog.dom.TagName("Q"),goog.dom.TagName.RP=new goog.dom.TagName("RP"),goog.dom.TagName.RT=new goog.dom.TagName("RT"),goog.dom.TagName.RTC=new goog.dom.TagName("RTC"),goog.dom.TagName.RUBY=new goog.dom.TagName("RUBY"),goog.dom.TagName.S=new goog.dom.TagName("S"),goog.dom.TagName.SAMP=new goog.dom.TagName("SAMP"),goog.dom.TagName.SCRIPT=new goog.dom.TagName("SCRIPT"),goog.dom.TagName.SECTION=new goog.dom.TagName("SECTION"),goog.dom.TagName.SELECT=new goog.dom.TagName("SELECT"),goog.dom.TagName.SMALL=new goog.dom.TagName("SMALL"),goog.dom.TagName.SOURCE=new goog.dom.TagName("SOURCE"),goog.dom.TagName.SPAN=new goog.dom.TagName("SPAN"),goog.dom.TagName.STRIKE=new goog.dom.TagName("STRIKE"),goog.dom.TagName.STRONG=new goog.dom.TagName("STRONG"),goog.dom.TagName.STYLE=new goog.dom.TagName("STYLE"),goog.dom.TagName.SUB=new goog.dom.TagName("SUB"),goog.dom.TagName.SUMMARY=new goog.dom.TagName("SUMMARY"),goog.dom.TagName.SUP=new goog.dom.TagName("SUP"),goog.dom.TagName.SVG=new goog.dom.TagName("SVG"),goog.dom.TagName.TABLE=new goog.dom.TagName("TABLE"),goog.dom.TagName.TBODY=new goog.dom.TagName("TBODY"),goog.dom.TagName.TD=new goog.dom.TagName("TD"),goog.dom.TagName.TEMPLATE=new goog.dom.TagName("TEMPLATE"),goog.dom.TagName.TEXTAREA=new goog.dom.TagName("TEXTAREA"),goog.dom.TagName.TFOOT=new goog.dom.TagName("TFOOT"),goog.dom.TagName.TH=new goog.dom.TagName("TH"),goog.dom.TagName.THEAD=new goog.dom.TagName("THEAD"),goog.dom.TagName.TIME=new goog.dom.TagName("TIME"),goog.dom.TagName.TITLE=new goog.dom.TagName("TITLE"),goog.dom.TagName.TR=new goog.dom.TagName("TR"),goog.dom.TagName.TRACK=new goog.dom.TagName("TRACK"),goog.dom.TagName.TT=new goog.dom.TagName("TT"),goog.dom.TagName.U=new goog.dom.TagName("U"),goog.dom.TagName.UL=new goog.dom.TagName("UL"),goog.dom.TagName.VAR=new goog.dom.TagName("VAR"),goog.dom.TagName.VIDEO=new goog.dom.TagName("VIDEO"),goog.dom.TagName.WBR=new goog.dom.TagName("WBR"),goog.dom.tags={},goog.dom.tags.VOID_TAGS_={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},goog.dom.tags.isVoidTag=function(e){return!0===goog.dom.tags.VOID_TAGS_[e]},goog.html={},goog.html.trustedtypes={},goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY=goog.TRUSTED_TYPES_POLICY_NAME?goog.createTrustedTypesPolicy(goog.TRUSTED_TYPES_POLICY_NAME+"#html"):null,goog.string={},goog.string.TypedString=function(){},goog.string.Const=function(e,t){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=e===goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_&&t||"",this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=goog.string.Const.TYPE_MARKER_},goog.string.Const.prototype.implementsGoogStringTypedString=!0,goog.string.Const.prototype.getTypedStringValue=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_},goog.DEBUG&&(goog.string.Const.prototype.toString=function(){return"Const{"+this.stringConstValueWithSecurityContract__googStringSecurityPrivate_+"}"}),goog.string.Const.unwrap=function(e){return e instanceof goog.string.Const&&e.constructor===goog.string.Const&&e.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===goog.string.Const.TYPE_MARKER_?e.stringConstValueWithSecurityContract__googStringSecurityPrivate_:(goog.asserts.fail("expected object of type Const, got '"+e+"'"),"type_error:Const")},goog.string.Const.from=function(e){return new goog.string.Const(goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_,e)},goog.string.Const.TYPE_MARKER_={},goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_={},goog.string.Const.EMPTY=goog.string.Const.from(""),goog.html.SafeScript=function(){this.privateDoNotAccessOrElseSafeScriptWrappedValue_="",this.SAFE_SCRIPT_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeScript.prototype.implementsGoogStringTypedString=!0,goog.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeScript.fromConstant=function(e){return 0===(e=goog.string.Const.unwrap(e)).length?goog.html.SafeScript.EMPTY:goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeScript.fromConstantAndArgs=function(e,t){for(var r=[],o=1;o<arguments.length;o++)r.push(goog.html.SafeScript.stringify_(arguments[o]));return goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse("("+goog.string.Const.unwrap(e)+")("+r.join(", ")+");")},goog.html.SafeScript.fromJson=function(e){return goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(goog.html.SafeScript.stringify_(e))},goog.html.SafeScript.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeScriptWrappedValue_.toString()},goog.DEBUG&&(goog.html.SafeScript.prototype.toString=function(){return"SafeScript{"+this.privateDoNotAccessOrElseSafeScriptWrappedValue_+"}"}),goog.html.SafeScript.unwrap=function(e){return goog.html.SafeScript.unwrapTrustedScript(e).toString()},goog.html.SafeScript.unwrapTrustedScript=function(e){return e instanceof goog.html.SafeScript&&e.constructor===goog.html.SafeScript&&e.SAFE_SCRIPT_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseSafeScriptWrappedValue_:(goog.asserts.fail("expected object of type SafeScript, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeScript")},goog.html.SafeScript.stringify_=function(e){return JSON.stringify(e).replace(/</g,"\\x3c")},goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse=function(e){return(new goog.html.SafeScript).initSecurityPrivateDoNotAccessOrElse_(e)},goog.html.SafeScript.prototype.initSecurityPrivateDoNotAccessOrElse_=function(e){return this.privateDoNotAccessOrElseSafeScriptWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createScript(e):e,this},goog.html.SafeScript.EMPTY=goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(""),goog.fs={},goog.fs.url={},goog.fs.url.createObjectUrl=function(e){return goog.fs.url.getUrlObject_().createObjectURL(e)},goog.fs.url.revokeObjectUrl=function(e){goog.fs.url.getUrlObject_().revokeObjectURL(e)},goog.fs.url.UrlObject_=function(){},goog.fs.url.UrlObject_.prototype.createObjectURL=function(e){},goog.fs.url.UrlObject_.prototype.revokeObjectURL=function(e){},goog.fs.url.getUrlObject_=function(){var e=goog.fs.url.findUrlObject_();if(null!=e)return e;throw Error("This browser doesn't seem to support blob URLs")},goog.fs.url.findUrlObject_=function(){return void 0!==goog.global.URL&&void 0!==goog.global.URL.createObjectURL?goog.global.URL:void 0!==goog.global.webkitURL&&void 0!==goog.global.webkitURL.createObjectURL?goog.global.webkitURL:void 0!==goog.global.createObjectURL?goog.global:null},goog.fs.url.browserSupportsObjectUrls=function(){return null!=goog.fs.url.findUrlObject_()},goog.fs.blob={},goog.fs.blob.getBlob=function(e){var t=goog.global.BlobBuilder||goog.global.WebKitBlobBuilder;if(void 0!==t){t=new t;for(var r=0;r<arguments.length;r++)t.append(arguments[r]);return t.getBlob()}return goog.fs.blob.getBlobWithProperties(goog.array.toArray(arguments))},goog.fs.blob.getBlobWithProperties=function(e,t,r){var o=goog.global.BlobBuilder||goog.global.WebKitBlobBuilder;if(void 0!==o){o=new o;for(var i=0;i<e.length;i++)o.append(e[i],r);return o.getBlob(t)}if(void 0!==goog.global.Blob)return o={},t&&(o.type=t),r&&(o.endings=r),new Blob(e,o);throw Error("This browser doesn't seem to support creating Blobs")},goog.i18n={},goog.i18n.bidi={},goog.i18n.bidi.FORCE_RTL=!1,goog.i18n.bidi.IS_RTL=goog.i18n.bidi.FORCE_RTL||("ar"==goog.LOCALE.substring(0,2).toLowerCase()||"fa"==goog.LOCALE.substring(0,2).toLowerCase()||"he"==goog.LOCALE.substring(0,2).toLowerCase()||"iw"==goog.LOCALE.substring(0,2).toLowerCase()||"ps"==goog.LOCALE.substring(0,2).toLowerCase()||"sd"==goog.LOCALE.substring(0,2).toLowerCase()||"ug"==goog.LOCALE.substring(0,2).toLowerCase()||"ur"==goog.LOCALE.substring(0,2).toLowerCase()||"yi"==goog.LOCALE.substring(0,2).toLowerCase())&&(2==goog.LOCALE.length||"-"==goog.LOCALE.substring(2,3)||"_"==goog.LOCALE.substring(2,3))||3<=goog.LOCALE.length&&"ckb"==goog.LOCALE.substring(0,3).toLowerCase()&&(3==goog.LOCALE.length||"-"==goog.LOCALE.substring(3,4)||"_"==goog.LOCALE.substring(3,4))||7<=goog.LOCALE.length&&("-"==goog.LOCALE.substring(2,3)||"_"==goog.LOCALE.substring(2,3))&&("adlm"==goog.LOCALE.substring(3,7).toLowerCase()||"arab"==goog.LOCALE.substring(3,7).toLowerCase()||"hebr"==goog.LOCALE.substring(3,7).toLowerCase()||"nkoo"==goog.LOCALE.substring(3,7).toLowerCase()||"rohg"==goog.LOCALE.substring(3,7).toLowerCase()||"thaa"==goog.LOCALE.substring(3,7).toLowerCase())||8<=goog.LOCALE.length&&("-"==goog.LOCALE.substring(3,4)||"_"==goog.LOCALE.substring(3,4))&&("adlm"==goog.LOCALE.substring(4,8).toLowerCase()||"arab"==goog.LOCALE.substring(4,8).toLowerCase()||"hebr"==goog.LOCALE.substring(4,8).toLowerCase()||"nkoo"==goog.LOCALE.substring(4,8).toLowerCase()||"rohg"==goog.LOCALE.substring(4,8).toLowerCase()||"thaa"==goog.LOCALE.substring(4,8).toLowerCase()),goog.i18n.bidi.Format={LRE:"",RLE:"",PDF:"",LRM:"",RLM:""},goog.i18n.bidi.Dir={LTR:1,RTL:-1,NEUTRAL:0},goog.i18n.bidi.RIGHT="right",goog.i18n.bidi.LEFT="left",goog.i18n.bidi.I18N_RIGHT=goog.i18n.bidi.IS_RTL?goog.i18n.bidi.LEFT:goog.i18n.bidi.RIGHT,goog.i18n.bidi.I18N_LEFT=goog.i18n.bidi.IS_RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT,goog.i18n.bidi.toDir=function(e,t){return"number"==typeof e?0<e?goog.i18n.bidi.Dir.LTR:0>e?goog.i18n.bidi.Dir.RTL:t?null:goog.i18n.bidi.Dir.NEUTRAL:null==e?null:e?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR},goog.i18n.bidi.ltrChars_="A-Za-zÀ-ÖØ-öø-ʸ̀-ऀ-Ⰰ-\ud801\ud804-\ud839\ud83c-\udbff豈-︀--",goog.i18n.bidi.rtlChars_="֑-ۯۺ-ࣿ\ud802-\ud803\ud83a-\ud83bיִ-﷿ﹰ-ﻼ",goog.i18n.bidi.htmlSkipReg_=/<[^>]*>|&[^;]+;/g,goog.i18n.bidi.stripHtmlIfNeeded_=function(e,t){return t?e.replace(goog.i18n.bidi.htmlSkipReg_,""):e},goog.i18n.bidi.rtlCharReg_=new RegExp("["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.ltrCharReg_=new RegExp("["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.hasAnyRtl=function(e,t){return goog.i18n.bidi.rtlCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.hasRtlChar=goog.i18n.bidi.hasAnyRtl,goog.i18n.bidi.hasAnyLtr=function(e,t){return goog.i18n.bidi.ltrCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.ltrRe_=new RegExp("^["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.rtlRe_=new RegExp("^["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.isRtlChar=function(e){return goog.i18n.bidi.rtlRe_.test(e)},goog.i18n.bidi.isLtrChar=function(e){return goog.i18n.bidi.ltrRe_.test(e)},goog.i18n.bidi.isNeutralChar=function(e){return!goog.i18n.bidi.isLtrChar(e)&&!goog.i18n.bidi.isRtlChar(e)},goog.i18n.bidi.ltrDirCheckRe_=new RegExp("^[^"+goog.i18n.bidi.rtlChars_+"]*["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.rtlDirCheckRe_=new RegExp("^[^"+goog.i18n.bidi.ltrChars_+"]*["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.startsWithRtl=function(e,t){return goog.i18n.bidi.rtlDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isRtlText=goog.i18n.bidi.startsWithRtl,goog.i18n.bidi.startsWithLtr=function(e,t){return goog.i18n.bidi.ltrDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isLtrText=goog.i18n.bidi.startsWithLtr,goog.i18n.bidi.isRequiredLtrRe_=/^http:\/\/.*/,goog.i18n.bidi.isNeutralText=function(e,t){return e=goog.i18n.bidi.stripHtmlIfNeeded_(e,t),goog.i18n.bidi.isRequiredLtrRe_.test(e)||!goog.i18n.bidi.hasAnyLtr(e)&&!goog.i18n.bidi.hasAnyRtl(e)},goog.i18n.bidi.ltrExitDirCheckRe_=new RegExp("["+goog.i18n.bidi.ltrChars_+"][^"+goog.i18n.bidi.rtlChars_+"]*$"),goog.i18n.bidi.rtlExitDirCheckRe_=new RegExp("["+goog.i18n.bidi.rtlChars_+"][^"+goog.i18n.bidi.ltrChars_+"]*$"),goog.i18n.bidi.endsWithLtr=function(e,t){return goog.i18n.bidi.ltrExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isLtrExitText=goog.i18n.bidi.endsWithLtr,goog.i18n.bidi.endsWithRtl=function(e,t){return goog.i18n.bidi.rtlExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isRtlExitText=goog.i18n.bidi.endsWithRtl,goog.i18n.bidi.rtlLocalesRe_=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,goog.i18n.bidi.isRtlLanguage=function(e){return goog.i18n.bidi.rtlLocalesRe_.test(e)},goog.i18n.bidi.bracketGuardTextRe_=/(\(.*?\)+)|(\[.*?\]+)|(\{.*?\}+)|(<.*?>+)/g,goog.i18n.bidi.guardBracketInText=function(e,t){return t=(void 0===t?goog.i18n.bidi.hasAnyRtl(e):t)?goog.i18n.bidi.Format.RLM:goog.i18n.bidi.Format.LRM,e.replace(goog.i18n.bidi.bracketGuardTextRe_,t+"$&"+t)},goog.i18n.bidi.enforceRtlInHtml=function(e){return"<"==e.charAt(0)?e.replace(/<\w+/,"$& dir=rtl"):"\n<span dir=rtl>"+e+"</span>"},goog.i18n.bidi.enforceRtlInText=function(e){return goog.i18n.bidi.Format.RLE+e+goog.i18n.bidi.Format.PDF},goog.i18n.bidi.enforceLtrInHtml=function(e){return"<"==e.charAt(0)?e.replace(/<\w+/,"$& dir=ltr"):"\n<span dir=ltr>"+e+"</span>"},goog.i18n.bidi.enforceLtrInText=function(e){return goog.i18n.bidi.Format.LRE+e+goog.i18n.bidi.Format.PDF},goog.i18n.bidi.dimensionsRe_=/:\s*([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)/g,goog.i18n.bidi.leftRe_=/left/gi,goog.i18n.bidi.rightRe_=/right/gi,goog.i18n.bidi.tempRe_=/%%%%/g,goog.i18n.bidi.mirrorCSS=function(e){return e.replace(goog.i18n.bidi.dimensionsRe_,":$1 $4 $3 $2").replace(goog.i18n.bidi.leftRe_,"%%%%").replace(goog.i18n.bidi.rightRe_,goog.i18n.bidi.LEFT).replace(goog.i18n.bidi.tempRe_,goog.i18n.bidi.RIGHT)},goog.i18n.bidi.doubleQuoteSubstituteRe_=/([\u0591-\u05f2])"/g,goog.i18n.bidi.singleQuoteSubstituteRe_=/([\u0591-\u05f2])'/g,goog.i18n.bidi.normalizeHebrewQuote=function(e){return e.replace(goog.i18n.bidi.doubleQuoteSubstituteRe_,"$1״").replace(goog.i18n.bidi.singleQuoteSubstituteRe_,"$1׳")},goog.i18n.bidi.wordSeparatorRe_=/\s+/,goog.i18n.bidi.hasNumeralsRe_=/[\d\u06f0-\u06f9]/,goog.i18n.bidi.rtlDetectionThreshold_=.4,goog.i18n.bidi.estimateDirection=function(e,t){var r=0,o=0,i=!1;for(e=goog.i18n.bidi.stripHtmlIfNeeded_(e,t).split(goog.i18n.bidi.wordSeparatorRe_),t=0;t<e.length;t++){var n=e[t];goog.i18n.bidi.startsWithRtl(n)?(r++,o++):goog.i18n.bidi.isRequiredLtrRe_.test(n)?i=!0:goog.i18n.bidi.hasAnyLtr(n)?o++:goog.i18n.bidi.hasNumeralsRe_.test(n)&&(i=!0)}return 0==o?i?goog.i18n.bidi.Dir.LTR:goog.i18n.bidi.Dir.NEUTRAL:r/o>goog.i18n.bidi.rtlDetectionThreshold_?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR},goog.i18n.bidi.detectRtlDirectionality=function(e,t){return goog.i18n.bidi.estimateDirection(e,t)==goog.i18n.bidi.Dir.RTL},goog.i18n.bidi.setElementDirAndAlign=function(e,t){e&&(t=goog.i18n.bidi.toDir(t))&&(e.style.textAlign=t==goog.i18n.bidi.Dir.RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT,e.dir=t==goog.i18n.bidi.Dir.RTL?"rtl":"ltr")},goog.i18n.bidi.setElementDirByTextDirectionality=function(e,t){switch(goog.i18n.bidi.estimateDirection(t)){case goog.i18n.bidi.Dir.LTR:e.dir="ltr";break;case goog.i18n.bidi.Dir.RTL:e.dir="rtl";break;default:e.removeAttribute("dir")}},goog.i18n.bidi.DirectionalString=function(){},goog.html.TrustedResourceUrl=function(e,t){this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_=e===goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_&&t||"",this.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.TrustedResourceUrl.prototype.implementsGoogStringTypedString=!0,goog.html.TrustedResourceUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_.toString()},goog.html.TrustedResourceUrl.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.TrustedResourceUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR},goog.html.TrustedResourceUrl.prototype.cloneWithParams=function(e,t){var r=goog.html.TrustedResourceUrl.unwrap(this),o=(r=goog.html.TrustedResourceUrl.URL_PARAM_PARSER_.exec(r))[3]||"";return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(r[1]+goog.html.TrustedResourceUrl.stringifyParams_("?",r[2]||"",e)+goog.html.TrustedResourceUrl.stringifyParams_("#",o,t))},goog.DEBUG&&(goog.html.TrustedResourceUrl.prototype.toString=function(){return"TrustedResourceUrl{"+this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_+"}"}),goog.html.TrustedResourceUrl.unwrap=function(e){return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(e).toString()},goog.html.TrustedResourceUrl.unwrapTrustedScriptURL=function(e){return e instanceof goog.html.TrustedResourceUrl&&e.constructor===goog.html.TrustedResourceUrl&&e.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_:(goog.asserts.fail("expected object of type TrustedResourceUrl, got '"+e+"' of type "+goog.typeOf(e)),"type_error:TrustedResourceUrl")},goog.html.TrustedResourceUrl.format=function(e,t){var r=goog.string.Const.unwrap(e);if(!goog.html.TrustedResourceUrl.BASE_URL_.test(r))throw Error("Invalid TrustedResourceUrl format: "+r);return e=r.replace(goog.html.TrustedResourceUrl.FORMAT_MARKER_,(function(e,o){if(!Object.prototype.hasOwnProperty.call(t,o))throw Error('Found marker, "'+o+'", in format string, "'+r+'", but no valid label mapping found in args: '+JSON.stringify(t));return(e=t[o])instanceof goog.string.Const?goog.string.Const.unwrap(e):encodeURIComponent(String(e))})),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.TrustedResourceUrl.FORMAT_MARKER_=/%{(\w+)}/g,goog.html.TrustedResourceUrl.BASE_URL_=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,goog.html.TrustedResourceUrl.URL_PARAM_PARSER_=/^([^?#]*)(\?[^#]*)?(#[\s\S]*)?/,goog.html.TrustedResourceUrl.formatWithParams=function(e,t,r,o){return goog.html.TrustedResourceUrl.format(e,t).cloneWithParams(r,o)},goog.html.TrustedResourceUrl.fromConstant=function(e){return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(e))},goog.html.TrustedResourceUrl.fromConstants=function(e){for(var t="",r=0;r<e.length;r++)t+=goog.string.Const.unwrap(e[r]);return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(t)},goog.html.TrustedResourceUrl.fromSafeScript=function(e){return e=goog.fs.blob.getBlobWithProperties([goog.html.SafeScript.unwrap(e)],"text/javascript"),e=goog.fs.url.createObjectUrl(e),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse=function(e){return e=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createScriptURL(e):e,new goog.html.TrustedResourceUrl(goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_,e)},goog.html.TrustedResourceUrl.stringifyParams_=function(e,t,r){if(null==r)return t;if("string"==typeof r)return r?e+encodeURIComponent(r):"";for(var o in r){var i=r[o];i=Array.isArray(i)?i:[i];for(var n=0;n<i.length;n++){var s=i[n];null!=s&&(t||(t=e),t+=(t.length>e.length?"&":"")+encodeURIComponent(o)+"="+encodeURIComponent(String(s)))}}return t},goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_={},goog.string.internal={},goog.string.internal.startsWith=function(e,t){return 0==e.lastIndexOf(t,0)},goog.string.internal.endsWith=function(e,t){var r=e.length-t.length;return 0<=r&&e.indexOf(t,r)==r},goog.string.internal.caseInsensitiveStartsWith=function(e,t){return 0==goog.string.internal.caseInsensitiveCompare(t,e.substr(0,t.length))},goog.string.internal.caseInsensitiveEndsWith=function(e,t){return 0==goog.string.internal.caseInsensitiveCompare(t,e.substr(e.length-t.length,t.length))},goog.string.internal.caseInsensitiveEquals=function(e,t){return e.toLowerCase()==t.toLowerCase()},goog.string.internal.isEmptyOrWhitespace=function(e){return/^[\s\xa0]*$/.test(e)},goog.string.internal.trim=goog.TRUSTED_SITE&&String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},goog.string.internal.caseInsensitiveCompare=function(e,t){return(e=String(e).toLowerCase())<(t=String(t).toLowerCase())?-1:e==t?0:1},goog.string.internal.newLineToBr=function(e,t){return e.replace(/(\r\n|\r|\n)/g,t?"<br />":"<br>")},goog.string.internal.htmlEscape=function(e,t){if(t)e=e.replace(goog.string.internal.AMP_RE_,"&").replace(goog.string.internal.LT_RE_,"<").replace(goog.string.internal.GT_RE_,">").replace(goog.string.internal.QUOT_RE_,""").replace(goog.string.internal.SINGLE_QUOTE_RE_,"'").replace(goog.string.internal.NULL_RE_,"�");else{if(!goog.string.internal.ALL_RE_.test(e))return e;-1!=e.indexOf("&")&&(e=e.replace(goog.string.internal.AMP_RE_,"&")),-1!=e.indexOf("<")&&(e=e.replace(goog.string.internal.LT_RE_,"<")),-1!=e.indexOf(">")&&(e=e.replace(goog.string.internal.GT_RE_,">")),-1!=e.indexOf('"')&&(e=e.replace(goog.string.internal.QUOT_RE_,""")),-1!=e.indexOf("'")&&(e=e.replace(goog.string.internal.SINGLE_QUOTE_RE_,"'")),-1!=e.indexOf("\0")&&(e=e.replace(goog.string.internal.NULL_RE_,"�"))}return e},goog.string.internal.AMP_RE_=/&/g,goog.string.internal.LT_RE_=/</g,goog.string.internal.GT_RE_=/>/g,goog.string.internal.QUOT_RE_=/"/g,goog.string.internal.SINGLE_QUOTE_RE_=/'/g,goog.string.internal.NULL_RE_=/\x00/g,goog.string.internal.ALL_RE_=/[\x00&<>"']/,goog.string.internal.whitespaceEscape=function(e,t){return goog.string.internal.newLineToBr(e.replace(/ /g,"  "),t)},goog.string.internal.contains=function(e,t){return-1!=e.indexOf(t)},goog.string.internal.caseInsensitiveContains=function(e,t){return goog.string.internal.contains(e.toLowerCase(),t.toLowerCase())},goog.string.internal.compareVersions=function(e,t){var r=0;e=goog.string.internal.trim(String(e)).split("."),t=goog.string.internal.trim(String(t)).split(".");for(var o=Math.max(e.length,t.length),i=0;0==r&&i<o;i++){var n=e[i]||"",s=t[i]||"";do{if(n=/(\d*)(\D*)(.*)/.exec(n)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==n[0].length&&0==s[0].length)break;r=0==n[1].length?0:parseInt(n[1],10);var a=0==s[1].length?0:parseInt(s[1],10);r=goog.string.internal.compareElements_(r,a)||goog.string.internal.compareElements_(0==n[2].length,0==s[2].length)||goog.string.internal.compareElements_(n[2],s[2]),n=n[3],s=s[3]}while(0==r)}return r},goog.string.internal.compareElements_=function(e,t){return e<t?-1:e>t?1:0},goog.html.SafeUrl=function(e,t){this.privateDoNotAccessOrElseSafeUrlWrappedValue_=e===goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_&&t||"",this.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeUrl.INNOCUOUS_STRING="about:invalid#zClosurez",goog.html.SafeUrl.prototype.implementsGoogStringTypedString=!0,goog.html.SafeUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString()},goog.html.SafeUrl.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.SafeUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR},goog.DEBUG&&(goog.html.SafeUrl.prototype.toString=function(){return"SafeUrl{"+this.privateDoNotAccessOrElseSafeUrlWrappedValue_+"}"}),goog.html.SafeUrl.unwrap=function(e){return e instanceof goog.html.SafeUrl&&e.constructor===goog.html.SafeUrl&&e.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseSafeUrlWrappedValue_:(goog.asserts.fail("expected object of type SafeUrl, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeUrl")},goog.html.SafeUrl.fromConstant=function(e){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(e))},goog.html.SAFE_MIME_TYPE_PATTERN_=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i,goog.html.SafeUrl.isSafeMimeType=function(e){return goog.html.SAFE_MIME_TYPE_PATTERN_.test(e)},goog.html.SafeUrl.fromBlob=function(e){return e=goog.html.SafeUrl.isSafeMimeType(e.type)?goog.fs.url.createObjectUrl(e):goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.fromMediaSource=function(e){return goog.asserts.assert("MediaSource"in goog.global,"No support for MediaSource"),e=e instanceof MediaSource?goog.fs.url.createObjectUrl(e):goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.DATA_URL_PATTERN_=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,goog.html.SafeUrl.fromDataUrl=function(e){var t=(e=e.replace(/(%0A|%0D)/g,"")).match(goog.html.DATA_URL_PATTERN_);return t=t&&goog.html.SafeUrl.isSafeMimeType(t[1]),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t?e:goog.html.SafeUrl.INNOCUOUS_STRING)},goog.html.SafeUrl.fromTelUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"tel:")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SIP_URL_PATTERN_=/^sip[s]?:[+a-z0-9_.!$%&'*\/=^`{|}~-]+@([a-z0-9-]+\.)+[a-z0-9]{2,63}$/i,goog.html.SafeUrl.fromSipUrl=function(e){return goog.html.SIP_URL_PATTERN_.test(decodeURIComponent(e))||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.fromFacebookMessengerUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"fb-messenger://share")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.fromWhatsAppUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"whatsapp://send")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.fromSmsUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"sms:")&&goog.html.SafeUrl.isSmsUrlBodyValid_(e)||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.isSmsUrlBodyValid_=function(e){var t=e.indexOf("#");if(0<t&&(e=e.substring(0,t)),!(t=e.match(/[?&]body=/gi)))return!0;if(1<t.length)return!1;if(!(e=e.match(/[?&]body=([^&]*)/)[1]))return!0;try{decodeURIComponent(e)}catch(e){return!1}return/^(?:[a-z0-9\-_.~]|%[0-9a-f]{2})+$/i.test(e)},goog.html.SafeUrl.fromSshUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"ssh://")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.sanitizeChromeExtensionUrl=function(e,t){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^chrome-extension:\/\/([^\/]+)\//,e,t)},goog.html.SafeUrl.sanitizeFirefoxExtensionUrl=function(e,t){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^moz-extension:\/\/([^\/]+)\//,e,t)},goog.html.SafeUrl.sanitizeEdgeExtensionUrl=function(e,t){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^ms-browser-extension:\/\/([^\/]+)\//,e,t)},goog.html.SafeUrl.sanitizeExtensionUrl_=function(e,t,r){return(e=e.exec(t))?(e=e[1],-1==(r instanceof goog.string.Const?[goog.string.Const.unwrap(r)]:r.map((function(e){return goog.string.Const.unwrap(e)}))).indexOf(e)&&(t=goog.html.SafeUrl.INNOCUOUS_STRING)):t=goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)},goog.html.SafeUrl.fromTrustedResourceUrl=function(e){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.html.TrustedResourceUrl.unwrap(e))},goog.html.SAFE_URL_PATTERN_=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,goog.html.SafeUrl.SAFE_URL_PATTERN=goog.html.SAFE_URL_PATTERN_,goog.html.SafeUrl.sanitize=function(e){return e instanceof goog.html.SafeUrl?e:(e="object"==typeof e&&e.implementsGoogStringTypedString?e.getTypedStringValue():String(e),goog.html.SAFE_URL_PATTERN_.test(e)||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e))},goog.html.SafeUrl.sanitizeAssertUnchanged=function(e,t){return e instanceof goog.html.SafeUrl?e:(e="object"==typeof e&&e.implementsGoogStringTypedString?e.getTypedStringValue():String(e),t&&/^data:/i.test(e)&&(t=goog.html.SafeUrl.fromDataUrl(e)).getTypedStringValue()==e?t:(goog.asserts.assert(goog.html.SAFE_URL_PATTERN_.test(e),"%s does not match the safe URL pattern",e)||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)))},goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse=function(e){return new goog.html.SafeUrl(goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_,e)},goog.html.SafeUrl.ABOUT_BLANK=goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse("about:blank"),goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_={},goog.html.SafeStyle=function(){this.privateDoNotAccessOrElseSafeStyleWrappedValue_="",this.SAFE_STYLE_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeStyle.prototype.implementsGoogStringTypedString=!0,goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeStyle.fromConstant=function(e){return 0===(e=goog.string.Const.unwrap(e)).length?goog.html.SafeStyle.EMPTY:(goog.asserts.assert(goog.string.internal.endsWith(e,";"),"Last character of style string is not ';': "+e),goog.asserts.assert(goog.string.internal.contains(e,":"),"Style string must contain at least one ':', to specify a \"name: value\" pair: "+e),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(e))},goog.html.SafeStyle.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_},goog.DEBUG&&(goog.html.SafeStyle.prototype.toString=function(){return"SafeStyle{"+this.privateDoNotAccessOrElseSafeStyleWrappedValue_+"}"}),goog.html.SafeStyle.unwrap=function(e){return e instanceof goog.html.SafeStyle&&e.constructor===goog.html.SafeStyle&&e.SAFE_STYLE_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseSafeStyleWrappedValue_:(goog.asserts.fail("expected object of type SafeStyle, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeStyle")},goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse=function(e){return(new goog.html.SafeStyle).initSecurityPrivateDoNotAccessOrElse_(e)},goog.html.SafeStyle.prototype.initSecurityPrivateDoNotAccessOrElse_=function(e){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_=e,this},goog.html.SafeStyle.EMPTY=goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(""),goog.html.SafeStyle.INNOCUOUS_STRING="zClosurez",goog.html.SafeStyle.create=function(e){var t,r="";for(t in e){if(!/^[-_a-zA-Z0-9]+$/.test(t))throw Error("Name allows only [-_a-zA-Z0-9], got: "+t);var o=e[t];null!=o&&(r+=t+":"+(o=Array.isArray(o)?goog.array.map(o,goog.html.SafeStyle.sanitizePropertyValue_).join(" "):goog.html.SafeStyle.sanitizePropertyValue_(o))+";")}return r?goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(r):goog.html.SafeStyle.EMPTY},goog.html.SafeStyle.sanitizePropertyValue_=function(e){if(e instanceof goog.html.SafeUrl)return'url("'+goog.html.SafeUrl.unwrap(e).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(e=e instanceof goog.string.Const?goog.string.Const.unwrap(e):goog.html.SafeStyle.sanitizePropertyValueString_(String(e)),/[{;}]/.test(e))throw new goog.asserts.AssertionError("Value does not allow [{;}], got: %s.",[e]);return e},goog.html.SafeStyle.sanitizePropertyValueString_=function(e){var t=e.replace(goog.html.SafeStyle.FUNCTIONS_RE_,"$1").replace(goog.html.SafeStyle.FUNCTIONS_RE_,"$1").replace(goog.html.SafeStyle.URL_RE_,"url");return goog.html.SafeStyle.VALUE_RE_.test(t)?goog.html.SafeStyle.COMMENT_RE_.test(e)?(goog.asserts.fail("String value disallows comments, got: "+e),goog.html.SafeStyle.INNOCUOUS_STRING):goog.html.SafeStyle.hasBalancedQuotes_(e)?goog.html.SafeStyle.hasBalancedSquareBrackets_(e)?goog.html.SafeStyle.sanitizeUrl_(e):(goog.asserts.fail("String value requires balanced square brackets and one identifier per pair of brackets, got: "+e),goog.html.SafeStyle.INNOCUOUS_STRING):(goog.asserts.fail("String value requires balanced quotes, got: "+e),goog.html.SafeStyle.INNOCUOUS_STRING):(goog.asserts.fail("String value allows only "+goog.html.SafeStyle.VALUE_ALLOWED_CHARS_+" and simple functions, got: "+e),goog.html.SafeStyle.INNOCUOUS_STRING)},goog.html.SafeStyle.hasBalancedQuotes_=function(e){for(var t=!0,r=!0,o=0;o<e.length;o++){var i=e.charAt(o);"'"==i&&r?t=!t:'"'==i&&t&&(r=!r)}return t&&r},goog.html.SafeStyle.hasBalancedSquareBrackets_=function(e){for(var t=!0,r=/^[-_a-zA-Z0-9]$/,o=0;o<e.length;o++){var i=e.charAt(o);if("]"==i){if(t)return!1;t=!0}else if("["==i){if(!t)return!1;t=!1}else if(!t&&!r.test(i))return!1}return t},goog.html.SafeStyle.VALUE_ALLOWED_CHARS_="[-,.\"'%_!# a-zA-Z0-9\\[\\]]",goog.html.SafeStyle.VALUE_RE_=new RegExp("^"+goog.html.SafeStyle.VALUE_ALLOWED_CHARS_+"+$"),goog.html.SafeStyle.URL_RE_=/\b(url\([ \t\n]*)('[ -&(-\[\]-~]*'|"[ !#-\[\]-~]*"|[!#-&*-\[\]-~]*)([ \t\n]*\))/g,goog.html.SafeStyle.ALLOWED_FUNCTIONS_="calc cubic-bezier fit-content hsl hsla linear-gradient matrix minmax repeat rgb rgba (rotate|scale|translate)(X|Y|Z|3d)?".split(" "),goog.html.SafeStyle.FUNCTIONS_RE_=new RegExp("\\b("+goog.html.SafeStyle.ALLOWED_FUNCTIONS_.join("|")+")\\([-+*/0-9a-z.%\\[\\], ]+\\)","g"),goog.html.SafeStyle.COMMENT_RE_=/\/\*/,goog.html.SafeStyle.sanitizeUrl_=function(e){return e.replace(goog.html.SafeStyle.URL_RE_,(function(e,t,r,o){var i="";return r=r.replace(/^(['"])(.*)\1$/,(function(e,t,r){return i=t,r})),e=goog.html.SafeUrl.sanitize(r).getTypedStringValue(),t+i+e+i+o}))},goog.html.SafeStyle.concat=function(e){var t="",r=function(e){Array.isArray(e)?goog.array.forEach(e,r):t+=goog.html.SafeStyle.unwrap(e)};return goog.array.forEach(arguments,r),t?goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(t):goog.html.SafeStyle.EMPTY},goog.html.SafeStyleSheet=function(){this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_="",this.SAFE_STYLE_SHEET_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeStyleSheet.prototype.implementsGoogStringTypedString=!0,goog.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeStyleSheet.createRule=function(e,t){if(goog.string.internal.contains(e,"<"))throw Error("Selector does not allow '<', got: "+e);var r=e.replace(/('|")((?!\1)[^\r\n\f\\]|\\[\s\S])*\1/g,"");if(!/^[-_a-zA-Z0-9#.:* ,>+~[\]()=^$|]+$/.test(r))throw Error("Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=^$|] and strings, got: "+e);if(!goog.html.SafeStyleSheet.hasBalancedBrackets_(r))throw Error("() and [] in selector must be balanced, got: "+e);return t instanceof goog.html.SafeStyle||(t=goog.html.SafeStyle.create(t)),e=e+"{"+goog.html.SafeStyle.unwrap(t).replace(/</g,"\\3C ")+"}",goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeStyleSheet.hasBalancedBrackets_=function(e){for(var t={"(":")","[":"]"},r=[],o=0;o<e.length;o++){var i=e[o];if(t[i])r.push(t[i]);else if(goog.object.contains(t,i)&&r.pop()!=i)return!1}return 0==r.length},goog.html.SafeStyleSheet.concat=function(e){var t="",r=function(e){Array.isArray(e)?goog.array.forEach(e,r):t+=goog.html.SafeStyleSheet.unwrap(e)};return goog.array.forEach(arguments,r),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(t)},goog.html.SafeStyleSheet.fromConstant=function(e){return 0===(e=goog.string.Const.unwrap(e)).length?goog.html.SafeStyleSheet.EMPTY:(goog.asserts.assert(!goog.string.internal.contains(e,"<"),"Forbidden '<' character in style sheet string: "+e),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(e))},goog.html.SafeStyleSheet.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_},goog.DEBUG&&(goog.html.SafeStyleSheet.prototype.toString=function(){return"SafeStyleSheet{"+this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_+"}"}),goog.html.SafeStyleSheet.unwrap=function(e){return e instanceof goog.html.SafeStyleSheet&&e.constructor===goog.html.SafeStyleSheet&&e.SAFE_STYLE_SHEET_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_:(goog.asserts.fail("expected object of type SafeStyleSheet, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeStyleSheet")},goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse=function(e){return(new goog.html.SafeStyleSheet).initSecurityPrivateDoNotAccessOrElse_(e)},goog.html.SafeStyleSheet.prototype.initSecurityPrivateDoNotAccessOrElse_=function(e){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_=e,this},goog.html.SafeStyleSheet.EMPTY=goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(""),goog.labs={},goog.labs.userAgent={},goog.labs.userAgent.util={},goog.labs.userAgent.util.getNativeUserAgentString_=function(){var e=goog.labs.userAgent.util.getNavigator_();return e&&(e=e.userAgent)?e:""},goog.labs.userAgent.util.getNavigator_=function(){return goog.global.navigator},goog.labs.userAgent.util.userAgent_=goog.labs.userAgent.util.getNativeUserAgentString_(),goog.labs.userAgent.util.setUserAgent=function(e){goog.labs.userAgent.util.userAgent_=e||goog.labs.userAgent.util.getNativeUserAgentString_()},goog.labs.userAgent.util.getUserAgent=function(){return goog.labs.userAgent.util.userAgent_},goog.labs.userAgent.util.matchUserAgent=function(e){var t=goog.labs.userAgent.util.getUserAgent();return goog.string.internal.contains(t,e)},goog.labs.userAgent.util.matchUserAgentIgnoreCase=function(e){var t=goog.labs.userAgent.util.getUserAgent();return goog.string.internal.caseInsensitiveContains(t,e)},goog.labs.userAgent.util.extractVersionTuples=function(e){for(var t,r=/(\w[\w ]+)\/([^\s]+)\s*(?:\((.*?)\))?/g,o=[];t=r.exec(e);)o.push([t[1],t[2],t[3]||void 0]);return o},goog.labs.userAgent.browser={},goog.labs.userAgent.browser.matchOpera_=function(){return goog.labs.userAgent.util.matchUserAgent("Opera")},goog.labs.userAgent.browser.matchIE_=function(){return goog.labs.userAgent.util.matchUserAgent("Trident")||goog.labs.userAgent.util.matchUserAgent("MSIE")},goog.labs.userAgent.browser.matchEdgeHtml_=function(){return goog.labs.userAgent.util.matchUserAgent("Edge")},goog.labs.userAgent.browser.matchEdgeChromium_=function(){return goog.labs.userAgent.util.matchUserAgent("Edg/")},goog.labs.userAgent.browser.matchOperaChromium_=function(){return goog.labs.userAgent.util.matchUserAgent("OPR")},goog.labs.userAgent.browser.matchFirefox_=function(){return goog.labs.userAgent.util.matchUserAgent("Firefox")||goog.labs.userAgent.util.matchUserAgent("FxiOS")},goog.labs.userAgent.browser.matchSafari_=function(){return goog.labs.userAgent.util.matchUserAgent("Safari")&&!(goog.labs.userAgent.browser.matchChrome_()||goog.labs.userAgent.browser.matchCoast_()||goog.labs.userAgent.browser.matchOpera_()||goog.labs.userAgent.browser.matchEdgeHtml_()||goog.labs.userAgent.browser.matchEdgeChromium_()||goog.labs.userAgent.browser.matchOperaChromium_()||goog.labs.userAgent.browser.matchFirefox_()||goog.labs.userAgent.browser.isSilk()||goog.labs.userAgent.util.matchUserAgent("Android"))},goog.labs.userAgent.browser.matchCoast_=function(){return goog.labs.userAgent.util.matchUserAgent("Coast")},goog.labs.userAgent.browser.matchIosWebview_=function(){return(goog.labs.userAgent.util.matchUserAgent("iPad")||goog.labs.userAgent.util.matchUserAgent("iPhone"))&&!goog.labs.userAgent.browser.matchSafari_()&&!goog.labs.userAgent.browser.matchChrome_()&&!goog.labs.userAgent.browser.matchCoast_()&&!goog.labs.userAgent.browser.matchFirefox_()&&goog.labs.userAgent.util.matchUserAgent("AppleWebKit")},goog.labs.userAgent.browser.matchChrome_=function(){return(goog.labs.userAgent.util.matchUserAgent("Chrome")||goog.labs.userAgent.util.matchUserAgent("CriOS"))&&!goog.labs.userAgent.browser.matchEdgeHtml_()},goog.labs.userAgent.browser.matchAndroidBrowser_=function(){return goog.labs.userAgent.util.matchUserAgent("Android")&&!(goog.labs.userAgent.browser.isChrome()||goog.labs.userAgent.browser.isFirefox()||goog.labs.userAgent.browser.isOpera()||goog.labs.userAgent.browser.isSilk())},goog.labs.userAgent.browser.isOpera=goog.labs.userAgent.browser.matchOpera_,goog.labs.userAgent.browser.isIE=goog.labs.userAgent.browser.matchIE_,goog.labs.userAgent.browser.isEdge=goog.labs.userAgent.browser.matchEdgeHtml_,goog.labs.userAgent.browser.isEdgeChromium=goog.labs.userAgent.browser.matchEdgeChromium_,goog.labs.userAgent.browser.isOperaChromium=goog.labs.userAgent.browser.matchOperaChromium_,goog.labs.userAgent.browser.isFirefox=goog.labs.userAgent.browser.matchFirefox_,goog.labs.userAgent.browser.isSafari=goog.labs.userAgent.browser.matchSafari_,goog.labs.userAgent.browser.isCoast=goog.labs.userAgent.browser.matchCoast_,goog.labs.userAgent.browser.isIosWebview=goog.labs.userAgent.browser.matchIosWebview_,goog.labs.userAgent.browser.isChrome=goog.labs.userAgent.browser.matchChrome_,goog.labs.userAgent.browser.isAndroidBrowser=goog.labs.userAgent.browser.matchAndroidBrowser_,goog.labs.userAgent.browser.isSilk=function(){return goog.labs.userAgent.util.matchUserAgent("Silk")},goog.labs.userAgent.browser.getVersion=function(){function e(e){return e=goog.array.find(e,o),r[e]||""}var t=goog.labs.userAgent.util.getUserAgent();if(goog.labs.userAgent.browser.isIE())return goog.labs.userAgent.browser.getIEVersion_(t);t=goog.labs.userAgent.util.extractVersionTuples(t);var r={};goog.array.forEach(t,(function(e){r[e[0]]=e[1]}));var o=goog.partial(goog.object.containsKey,r);return goog.labs.userAgent.browser.isOpera()?e(["Version","Opera"]):goog.labs.userAgent.browser.isEdge()?e(["Edge"]):goog.labs.userAgent.browser.isEdgeChromium()?e(["Edg"]):goog.labs.userAgent.browser.isChrome()?e(["Chrome","CriOS","HeadlessChrome"]):(t=t[2])&&t[1]||""},goog.labs.userAgent.browser.isVersionOrHigher=function(e){return 0<=goog.string.internal.compareVersions(goog.labs.userAgent.browser.getVersion(),e)},goog.labs.userAgent.browser.getIEVersion_=function(e){var t=/rv: *([\d\.]*)/.exec(e);if(t&&t[1])return t[1];t="";var r=/MSIE +([\d\.]+)/.exec(e);if(r&&r[1])if(e=/Trident\/(\d.\d)/.exec(e),"7.0"==r[1])if(e&&e[1])switch(e[1]){case"4.0":t="8.0";break;case"5.0":t="9.0";break;case"6.0":t="10.0";break;case"7.0":t="11.0"}else t="7.0";else t=r[1];return t},goog.html.SafeHtml=function(){this.privateDoNotAccessOrElseSafeHtmlWrappedValue_="",this.SAFE_HTML_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_,this.dir_=null},goog.html.SafeHtml.ENABLE_ERROR_MESSAGES=goog.DEBUG,goog.html.SafeHtml.SUPPORT_STYLE_ATTRIBUTE=!0,goog.html.SafeHtml.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.SafeHtml.prototype.getDirection=function(){return this.dir_},goog.html.SafeHtml.prototype.implementsGoogStringTypedString=!0,goog.html.SafeHtml.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString()},goog.DEBUG&&(goog.html.SafeHtml.prototype.toString=function(){return"SafeHtml{"+this.privateDoNotAccessOrElseSafeHtmlWrappedValue_+"}"}),goog.html.SafeHtml.unwrap=function(e){return goog.html.SafeHtml.unwrapTrustedHTML(e).toString()},goog.html.SafeHtml.unwrapTrustedHTML=function(e){return e instanceof goog.html.SafeHtml&&e.constructor===goog.html.SafeHtml&&e.SAFE_HTML_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseSafeHtmlWrappedValue_:(goog.asserts.fail("expected object of type SafeHtml, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeHtml")},goog.html.SafeHtml.htmlEscape=function(e){if(e instanceof goog.html.SafeHtml)return e;var t="object"==typeof e,r=null;return t&&e.implementsGoogI18nBidiDirectionalString&&(r=e.getDirection()),e=t&&e.implementsGoogStringTypedString?e.getTypedStringValue():String(e),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.htmlEscape(e),r)},goog.html.SafeHtml.htmlEscapePreservingNewlines=function(e){return e instanceof goog.html.SafeHtml?e:(e=goog.html.SafeHtml.htmlEscape(e),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.newLineToBr(goog.html.SafeHtml.unwrap(e)),e.getDirection()))},goog.html.SafeHtml.htmlEscapePreservingNewlinesAndSpaces=function(e){return e instanceof goog.html.SafeHtml?e:(e=goog.html.SafeHtml.htmlEscape(e),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.whitespaceEscape(goog.html.SafeHtml.unwrap(e)),e.getDirection()))},goog.html.SafeHtml.from=goog.html.SafeHtml.htmlEscape,goog.html.SafeHtml.comment=function(e){return goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("\x3c!--"+goog.string.internal.htmlEscape(e)+"--\x3e",null)},goog.html.SafeHtml.VALID_NAMES_IN_TAG_=/^[a-zA-Z0-9-]+$/,goog.html.SafeHtml.URL_ATTRIBUTES_={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},goog.html.SafeHtml.create=function(e,t,r){return goog.html.SafeHtml.verifyTagName(String(e)),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse(String(e),t,r)},goog.html.SafeHtml.verifyTagName=function(e){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(e))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?"Invalid tag name <"+e+">.":"");if(e.toUpperCase()in goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_)throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?"Tag name <"+e+"> is not allowed for SafeHtml.":"")},goog.html.SafeHtml.createIframe=function(e,t,r,o){e&&goog.html.TrustedResourceUrl.unwrap(e);var i={};return i.src=e||null,i.srcdoc=t&&goog.html.SafeHtml.unwrap(t),e=goog.html.SafeHtml.combineAttributes(i,{sandbox:""},r),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",e,o)},goog.html.SafeHtml.createSandboxIframe=function(e,t,r,o){if(!goog.html.SafeHtml.canUseSandboxIframe())throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?"The browser does not support sandboxed iframes.":"");var i={};return i.src=e?goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(e)):null,i.srcdoc=t||null,i.sandbox="",e=goog.html.SafeHtml.combineAttributes(i,{},r),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",e,o)},goog.html.SafeHtml.canUseSandboxIframe=function(){return goog.global.HTMLIFrameElement&&"sandbox"in goog.global.HTMLIFrameElement.prototype},goog.html.SafeHtml.createScriptSrc=function(e,t){return goog.html.TrustedResourceUrl.unwrap(e),e=goog.html.SafeHtml.combineAttributes({src:e},{},t),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",e)},goog.html.SafeHtml.createScript=function(e,t){for(var r in t){var o=r.toLowerCase();if("language"==o||"src"==o||"text"==o||"type"==o)throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Cannot set "'+o+'" attribute':"")}for(r="",e=goog.array.concat(e),o=0;o<e.length;o++)r+=goog.html.SafeScript.unwrap(e[o]);return e=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(r,goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",t,e)},goog.html.SafeHtml.createStyle=function(e,t){t=goog.html.SafeHtml.combineAttributes({type:"text/css"},{},t);var r="";e=goog.array.concat(e);for(var o=0;o<e.length;o++)r+=goog.html.SafeStyleSheet.unwrap(e[o]);return e=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(r,goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("style",t,e)},goog.html.SafeHtml.createMetaRefresh=function(e,t){return e=goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(e)),(goog.labs.userAgent.browser.isIE()||goog.labs.userAgent.browser.isEdge())&&goog.string.internal.contains(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("meta",{"http-equiv":"refresh",content:(t||0)+"; url="+e})},goog.html.SafeHtml.getAttrNameAndValue_=function(e,t,r){if(r instanceof goog.string.Const)r=goog.string.Const.unwrap(r);else if("style"==t.toLowerCase()){if(!goog.html.SafeHtml.SUPPORT_STYLE_ATTRIBUTE)throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Attribute "style" not supported.':"");r=goog.html.SafeHtml.getStyleValue_(r)}else{if(/^on/i.test(t))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Attribute "'+t+'" requires goog.string.Const value, "'+r+'" given.':"");if(t.toLowerCase()in goog.html.SafeHtml.URL_ATTRIBUTES_)if(r instanceof goog.html.TrustedResourceUrl)r=goog.html.TrustedResourceUrl.unwrap(r);else if(r instanceof goog.html.SafeUrl)r=goog.html.SafeUrl.unwrap(r);else{if("string"!=typeof r)throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Attribute "'+t+'" on tag "'+e+'" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+r+'" given.':"");r=goog.html.SafeUrl.sanitize(r).getTypedStringValue()}}return r.implementsGoogStringTypedString&&(r=r.getTypedStringValue()),goog.asserts.assert("string"==typeof r||"number"==typeof r,"String or number value expected, got "+typeof r+" with value: "+r),t+'="'+goog.string.internal.htmlEscape(String(r))+'"'},goog.html.SafeHtml.getStyleValue_=function(e){if(!goog.isObject(e))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof e+" given: "+e:"");return e instanceof goog.html.SafeStyle||(e=goog.html.SafeStyle.create(e)),goog.html.SafeStyle.unwrap(e)},goog.html.SafeHtml.createWithDir=function(e,t,r,o){return(t=goog.html.SafeHtml.create(t,r,o)).dir_=e,t},goog.html.SafeHtml.join=function(e,t){var r=(e=goog.html.SafeHtml.htmlEscape(e)).getDirection(),o=[],i=function(e){Array.isArray(e)?goog.array.forEach(e,i):(e=goog.html.SafeHtml.htmlEscape(e),o.push(goog.html.SafeHtml.unwrap(e)),e=e.getDirection(),r==goog.i18n.bidi.Dir.NEUTRAL?r=e:e!=goog.i18n.bidi.Dir.NEUTRAL&&r!=e&&(r=null))};return goog.array.forEach(t,i),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(o.join(goog.html.SafeHtml.unwrap(e)),r)},goog.html.SafeHtml.concat=function(e){return goog.html.SafeHtml.join(goog.html.SafeHtml.EMPTY,Array.prototype.slice.call(arguments))},goog.html.SafeHtml.concatWithDir=function(e,t){var r=goog.html.SafeHtml.concat(goog.array.slice(arguments,1));return r.dir_=e,r},goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse=function(e,t){return(new goog.html.SafeHtml).initSecurityPrivateDoNotAccessOrElse_(e,t)},goog.html.SafeHtml.prototype.initSecurityPrivateDoNotAccessOrElse_=function(e,t){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createHTML(e):e,this.dir_=t,this},goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse=function(e,t,r){var o=null,i="<"+e+goog.html.SafeHtml.stringifyAttributes(e,t);return null==r?r=[]:Array.isArray(r)||(r=[r]),goog.dom.tags.isVoidTag(e.toLowerCase())?(goog.asserts.assert(!r.length,"Void tag <"+e+"> does not allow content."),i+=">"):(o=goog.html.SafeHtml.concat(r),i+=">"+goog.html.SafeHtml.unwrap(o)+"</"+e+">",o=o.getDirection()),(e=t&&t.dir)&&(o=/^(ltr|rtl|auto)$/i.test(e)?goog.i18n.bidi.Dir.NEUTRAL:null),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(i,o)},goog.html.SafeHtml.stringifyAttributes=function(e,t){var r="";if(t)for(var o in t){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(o))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Invalid attribute name "'+o+'".':"");var i=t[o];null!=i&&(r+=" "+goog.html.SafeHtml.getAttrNameAndValue_(e,o,i))}return r},goog.html.SafeHtml.combineAttributes=function(e,t,r){var o,i={};for(o in e)goog.asserts.assert(o.toLowerCase()==o,"Must be lower case"),i[o]=e[o];for(o in t)goog.asserts.assert(o.toLowerCase()==o,"Must be lower case"),i[o]=t[o];if(r)for(o in r){var n=o.toLowerCase();if(n in e)throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Cannot override "'+n+'" attribute, got "'+o+'" with value "'+r[o]+'"':"");n in t&&delete i[n],i[o]=r[o]}return i},goog.html.SafeHtml.DOCTYPE_HTML=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<!DOCTYPE html>",goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.EMPTY=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("",goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.BR=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<br>",goog.i18n.bidi.Dir.NEUTRAL),goog.html.uncheckedconversions={},goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract=function(e,t,r){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(t,r||null)},goog.html.uncheckedconversions.safeScriptFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.safeStyleFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.safeStyleSheetFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.trustedResourceUrlFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(t)},goog.dom.safe={},goog.dom.safe.InsertAdjacentHtmlPosition={AFTERBEGIN:"afterbegin",AFTEREND:"afterend",BEFOREBEGIN:"beforebegin",BEFOREEND:"beforeend"},goog.dom.safe.insertAdjacentHtml=function(e,t,r){e.insertAdjacentHTML(t,goog.html.SafeHtml.unwrapTrustedHTML(r))},goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_={MATH:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},goog.dom.safe.isInnerHtmlCleanupRecursive_=goog.functions.cacheReturnValue((function(){if(goog.DEBUG&&"undefined"==typeof document)return!1;var e=document.createElement("div"),t=document.createElement("div");return t.appendChild(document.createElement("div")),e.appendChild(t),!(goog.DEBUG&&!e.firstChild||(t=e.firstChild.firstChild,e.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(goog.html.SafeHtml.EMPTY),t.parentElement))})),goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse=function(e,t){if(goog.dom.safe.isInnerHtmlCleanupRecursive_())for(;e.lastChild;)e.removeChild(e.lastChild);e.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(t)},goog.dom.safe.setInnerHtml=function(e,t){if(goog.asserts.ENABLE_ASSERTS){var r=e.tagName.toUpperCase();if(goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_[r])throw Error("goog.dom.safe.setInnerHtml cannot be used to set content of "+e.tagName+".")}goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse(e,t)},goog.dom.safe.setOuterHtml=function(e,t){e.outerHTML=goog.html.SafeHtml.unwrapTrustedHTML(t)},goog.dom.safe.setFormElementAction=function(e,t){t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),goog.dom.asserts.assertIsHTMLFormElement(e).action=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setButtonFormAction=function(e,t){t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),goog.dom.asserts.assertIsHTMLButtonElement(e).formAction=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setInputFormAction=function(e,t){t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),goog.dom.asserts.assertIsHTMLInputElement(e).formAction=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setStyle=function(e,t){e.style.cssText=goog.html.SafeStyle.unwrap(t)},goog.dom.safe.documentWrite=function(e,t){e.write(goog.html.SafeHtml.unwrapTrustedHTML(t))},goog.dom.safe.setAnchorHref=function(e,t){goog.dom.asserts.assertIsHTMLAnchorElement(e),t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.href=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setImageSrc=function(e,t){if(goog.dom.asserts.assertIsHTMLImageElement(e),!(t instanceof goog.html.SafeUrl)){var r=/^data:image\//i.test(t);t=goog.html.SafeUrl.sanitizeAssertUnchanged(t,r)}e.src=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setAudioSrc=function(e,t){if(goog.dom.asserts.assertIsHTMLAudioElement(e),!(t instanceof goog.html.SafeUrl)){var r=/^data:audio\//i.test(t);t=goog.html.SafeUrl.sanitizeAssertUnchanged(t,r)}e.src=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setVideoSrc=function(e,t){if(goog.dom.asserts.assertIsHTMLVideoElement(e),!(t instanceof goog.html.SafeUrl)){var r=/^data:video\//i.test(t);t=goog.html.SafeUrl.sanitizeAssertUnchanged(t,r)}e.src=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setEmbedSrc=function(e,t){goog.dom.asserts.assertIsHTMLEmbedElement(e),e.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(t)},goog.dom.safe.setFrameSrc=function(e,t){goog.dom.asserts.assertIsHTMLFrameElement(e),e.src=goog.html.TrustedResourceUrl.unwrap(t)},goog.dom.safe.setIframeSrc=function(e,t){goog.dom.asserts.assertIsHTMLIFrameElement(e),e.src=goog.html.TrustedResourceUrl.unwrap(t)},goog.dom.safe.setIframeSrcdoc=function(e,t){goog.dom.asserts.assertIsHTMLIFrameElement(e),e.srcdoc=goog.html.SafeHtml.unwrapTrustedHTML(t)},goog.dom.safe.setLinkHrefAndRel=function(e,t,r){goog.dom.asserts.assertIsHTMLLinkElement(e),e.rel=r,goog.string.internal.caseInsensitiveContains(r,"stylesheet")?(goog.asserts.assert(t instanceof goog.html.TrustedResourceUrl,'URL must be TrustedResourceUrl because "rel" contains "stylesheet"'),e.href=goog.html.TrustedResourceUrl.unwrap(t)):e.href=t instanceof goog.html.TrustedResourceUrl?goog.html.TrustedResourceUrl.unwrap(t):t instanceof goog.html.SafeUrl?goog.html.SafeUrl.unwrap(t):goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitizeAssertUnchanged(t))},goog.dom.safe.setObjectData=function(e,t){goog.dom.asserts.assertIsHTMLObjectElement(e),e.data=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(t)},goog.dom.safe.setScriptSrc=function(e,t){goog.dom.asserts.assertIsHTMLScriptElement(e),e.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(t),(t=goog.getScriptNonce())&&e.setAttribute("nonce",t)},goog.dom.safe.setScriptContent=function(e,t){goog.dom.asserts.assertIsHTMLScriptElement(e),e.text=goog.html.SafeScript.unwrapTrustedScript(t),(t=goog.getScriptNonce())&&e.setAttribute("nonce",t)},goog.dom.safe.setLocationHref=function(e,t){goog.dom.asserts.assertIsLocation(e),t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.href=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.assignLocation=function(e,t){goog.dom.asserts.assertIsLocation(e),t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.assign(goog.html.SafeUrl.unwrap(t))},goog.dom.safe.replaceLocation=function(e,t){t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.replace(goog.html.SafeUrl.unwrap(t))},goog.dom.safe.openInWindow=function(e,t,r,o,i){return e=e instanceof goog.html.SafeUrl?e:goog.html.SafeUrl.sanitizeAssertUnchanged(e),t=t||goog.global,r=r instanceof goog.string.Const?goog.string.Const.unwrap(r):r||"",t.open(goog.html.SafeUrl.unwrap(e),r,o,i)},goog.dom.safe.parseFromStringHtml=function(e,t){return goog.dom.safe.parseFromString(e,t,"text/html")},goog.dom.safe.parseFromString=function(e,t,r){return e.parseFromString(goog.html.SafeHtml.unwrapTrustedHTML(t),r)},goog.dom.safe.createImageFromBlob=function(e){if(!/^image\/.*/g.test(e.type))throw Error("goog.dom.safe.createImageFromBlob only accepts MIME type image/.*.");var t=goog.global.URL.createObjectURL(e);return(e=new goog.global.Image).onload=function(){goog.global.URL.revokeObjectURL(t)},goog.dom.safe.setImageSrc(e,goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Image blob URL."),t)),e},goog.string.DETECT_DOUBLE_ESCAPING=!1,goog.string.FORCE_NON_DOM_HTML_UNESCAPING=!1,goog.string.Unicode={NBSP:" "},goog.string.startsWith=goog.string.internal.startsWith,goog.string.endsWith=goog.string.internal.endsWith,goog.string.caseInsensitiveStartsWith=goog.string.internal.caseInsensitiveStartsWith,goog.string.caseInsensitiveEndsWith=goog.string.internal.caseInsensitiveEndsWith,goog.string.caseInsensitiveEquals=goog.string.internal.caseInsensitiveEquals,goog.string.subs=function(e,t){for(var r=e.split("%s"),o="",i=Array.prototype.slice.call(arguments,1);i.length&&1<r.length;)o+=r.shift()+i.shift();return o+r.join("%s")},goog.string.collapseWhitespace=function(e){return e.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},goog.string.isEmptyOrWhitespace=goog.string.internal.isEmptyOrWhitespace,goog.string.isEmptyString=function(e){return 0==e.length},goog.string.isEmpty=goog.string.isEmptyOrWhitespace,goog.string.isEmptyOrWhitespaceSafe=function(e){return goog.string.isEmptyOrWhitespace(goog.string.makeSafe(e))},goog.string.isEmptySafe=goog.string.isEmptyOrWhitespaceSafe,goog.string.isBreakingWhitespace=function(e){return!/[^\t\n\r ]/.test(e)},goog.string.isAlpha=function(e){return!/[^a-zA-Z]/.test(e)},goog.string.isNumeric=function(e){return!/[^0-9]/.test(e)},goog.string.isAlphaNumeric=function(e){return!/[^a-zA-Z0-9]/.test(e)},goog.string.isSpace=function(e){return" "==e},goog.string.isUnicodeChar=function(e){return 1==e.length&&" "<=e&&"~">=e||""<=e&&"�">=e},goog.string.stripNewlines=function(e){return e.replace(/(\r\n|\r|\n)+/g," ")},goog.string.canonicalizeNewlines=function(e){return e.replace(/(\r\n|\r|\n)/g,"\n")},goog.string.normalizeWhitespace=function(e){return e.replace(/\xa0|\s/g," ")},goog.string.normalizeSpaces=function(e){return e.replace(/\xa0|[ \t]+/g," ")},goog.string.collapseBreakingSpaces=function(e){return e.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")},goog.string.trim=goog.string.internal.trim,goog.string.trimLeft=function(e){return e.replace(/^[\s\xa0]+/,"")},goog.string.trimRight=function(e){return e.replace(/[\s\xa0]+$/,"")},goog.string.caseInsensitiveCompare=goog.string.internal.caseInsensitiveCompare,goog.string.numberAwareCompare_=function(e,t,r){if(e==t)return 0;if(!e)return-1;if(!t)return 1;for(var o=e.toLowerCase().match(r),i=t.toLowerCase().match(r),n=Math.min(o.length,i.length),s=0;s<n;s++){r=o[s];var a=i[s];if(r!=a)return e=parseInt(r,10),!isNaN(e)&&(t=parseInt(a,10),!isNaN(t)&&e-t)?e-t:r<a?-1:1}return o.length!=i.length?o.length-i.length:e<t?-1:1},goog.string.intAwareCompare=function(e,t){return goog.string.numberAwareCompare_(e,t,/\d+|\D+/g)},goog.string.floatAwareCompare=function(e,t){return goog.string.numberAwareCompare_(e,t,/\d+|\.\d+|\D+/g)},goog.string.numerateCompare=goog.string.floatAwareCompare,goog.string.urlEncode=function(e){return encodeURIComponent(String(e))},goog.string.urlDecode=function(e){return decodeURIComponent(e.replace(/\+/g," "))},goog.string.newLineToBr=goog.string.internal.newLineToBr,goog.string.htmlEscape=function(e,t){return e=goog.string.internal.htmlEscape(e,t),goog.string.DETECT_DOUBLE_ESCAPING&&(e=e.replace(goog.string.E_RE_,"e")),e},goog.string.E_RE_=/e/g,goog.string.unescapeEntities=function(e){return goog.string.contains(e,"&")?!goog.string.FORCE_NON_DOM_HTML_UNESCAPING&&"document"in goog.global?goog.string.unescapeEntitiesUsingDom_(e):goog.string.unescapePureXmlEntities_(e):e},goog.string.unescapeEntitiesWithDocument=function(e,t){return goog.string.contains(e,"&")?goog.string.unescapeEntitiesUsingDom_(e,t):e},goog.string.unescapeEntitiesUsingDom_=function(e,t){var r={"&":"&","<":"<",">":">",""":'"'},o=t?t.createElement("div"):goog.global.document.createElement("div");return e.replace(goog.string.HTML_ENTITY_PATTERN_,(function(e,t){var i=r[e];return i||("#"==t.charAt(0)&&(t=Number("0"+t.substr(1)),isNaN(t)||(i=String.fromCharCode(t))),i||(goog.dom.safe.setInnerHtml(o,goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Single HTML entity."),e+" ")),i=o.firstChild.nodeValue.slice(0,-1)),r[e]=i)}))},goog.string.unescapePureXmlEntities_=function(e){return e.replace(/&([^;]+);/g,(function(e,t){switch(t){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';default:return"#"!=t.charAt(0)||(t=Number("0"+t.substr(1)),isNaN(t))?e:String.fromCharCode(t)}}))},goog.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g,goog.string.whitespaceEscape=function(e,t){return goog.string.newLineToBr(e.replace(/ /g,"  "),t)},goog.string.preserveSpaces=function(e){return e.replace(/(^|[\n ]) /g,"$1"+goog.string.Unicode.NBSP)},goog.string.stripQuotes=function(e,t){for(var r=t.length,o=0;o<r;o++){var i=1==r?t:t.charAt(o);if(e.charAt(0)==i&&e.charAt(e.length-1)==i)return e.substring(1,e.length-1)}return e},goog.string.truncate=function(e,t,r){return r&&(e=goog.string.unescapeEntities(e)),e.length>t&&(e=e.substring(0,t-3)+"..."),r&&(e=goog.string.htmlEscape(e)),e},goog.string.truncateMiddle=function(e,t,r,o){if(r&&(e=goog.string.unescapeEntities(e)),o&&e.length>t){o>t&&(o=t);var i=e.length-o;e=e.substring(0,t-o)+"..."+e.substring(i)}else e.length>t&&(o=Math.floor(t/2),i=e.length-o,e=e.substring(0,o+t%2)+"..."+e.substring(i));return r&&(e=goog.string.htmlEscape(e)),e},goog.string.specialEscapeChars_={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},goog.string.jsEscapeCache_={"'":"\\'"},goog.string.quote=function(e){e=String(e);for(var t=['"'],r=0;r<e.length;r++){var o=e.charAt(r),i=o.charCodeAt(0);t[r+1]=goog.string.specialEscapeChars_[o]||(31<i&&127>i?o:goog.string.escapeChar(o))}return t.push('"'),t.join("")},goog.string.escapeString=function(e){for(var t=[],r=0;r<e.length;r++)t[r]=goog.string.escapeChar(e.charAt(r));return t.join("")},goog.string.escapeChar=function(e){if(e in goog.string.jsEscapeCache_)return goog.string.jsEscapeCache_[e];if(e in goog.string.specialEscapeChars_)return goog.string.jsEscapeCache_[e]=goog.string.specialEscapeChars_[e];var t=e.charCodeAt(0);if(31<t&&127>t)var r=e;else 256>t?(r="\\x",(16>t||256<t)&&(r+="0")):(r="\\u",4096>t&&(r+="0")),r+=t.toString(16).toUpperCase();return goog.string.jsEscapeCache_[e]=r},goog.string.contains=goog.string.internal.contains,goog.string.caseInsensitiveContains=goog.string.internal.caseInsensitiveContains,goog.string.countOf=function(e,t){return e&&t?e.split(t).length-1:0},goog.string.removeAt=function(e,t,r){var o=e;return 0<=t&&t<e.length&&0<r&&(o=e.substr(0,t)+e.substr(t+r,e.length-t-r)),o},goog.string.remove=function(e,t){return e.replace(t,"")},goog.string.removeAll=function(e,t){return t=new RegExp(goog.string.regExpEscape(t),"g"),e.replace(t,"")},goog.string.replaceAll=function(e,t,r){return t=new RegExp(goog.string.regExpEscape(t),"g"),e.replace(t,r.replace(/\$/g,"$$$$"))},goog.string.regExpEscape=function(e){return String(e).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},goog.string.repeat=String.prototype.repeat?function(e,t){return e.repeat(t)}:function(e,t){return Array(t+1).join(e)},goog.string.padNumber=function(e,t,r){return-1==(r=(e=void 0!==r?e.toFixed(r):String(e)).indexOf("."))&&(r=e.length),goog.string.repeat("0",Math.max(0,t-r))+e},goog.string.makeSafe=function(e){return null==e?"":String(e)},goog.string.buildString=function(e){return Array.prototype.join.call(arguments,"")},goog.string.getRandomString=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^goog.now()).toString(36)},goog.string.compareVersions=goog.string.internal.compareVersions,goog.string.hashCode=function(e){for(var t=0,r=0;r<e.length;++r)t=31*t+e.charCodeAt(r)>>>0;return t},goog.string.uniqueStringCounter_=2147483648*Math.random()|0,goog.string.createUniqueString=function(){return"goog_"+goog.string.uniqueStringCounter_++},goog.string.toNumber=function(e){var t=Number(e);return 0==t&&goog.string.isEmptyOrWhitespace(e)?NaN:t},goog.string.isLowerCamelCase=function(e){return/^[a-z]+([A-Z][a-z]*)*$/.test(e)},goog.string.isUpperCamelCase=function(e){return/^([A-Z][a-z]*)+$/.test(e)},goog.string.toCamelCase=function(e){return String(e).replace(/\-([a-z])/g,(function(e,t){return t.toUpperCase()}))},goog.string.toSelectorCase=function(e){return String(e).replace(/([A-Z])/g,"-$1").toLowerCase()},goog.string.toTitleCase=function(e,t){return t="string"==typeof t?goog.string.regExpEscape(t):"\\s",e.replace(new RegExp("(^"+(t?"|["+t+"]+":"")+")([a-z])","g"),(function(e,t,r){return t+r.toUpperCase()}))},goog.string.capitalize=function(e){return String(e.charAt(0)).toUpperCase()+String(e.substr(1)).toLowerCase()},goog.string.parseInt=function(e){return isFinite(e)&&(e=String(e)),"string"==typeof e?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN},goog.string.splitLimit=function(e,t,r){e=e.split(t);for(var o=[];0<r&&e.length;)o.push(e.shift()),r--;return e.length&&o.push(e.join(t)),o},goog.string.lastComponent=function(e,t){if(!t)return e;"string"==typeof t&&(t=[t]);for(var r=-1,o=0;o<t.length;o++)if(""!=t[o]){var i=e.lastIndexOf(t[o]);i>r&&(r=i)}return-1==r?e:e.slice(r+1)},goog.string.editDistance=function(e,t){var r=[],o=[];if(e==t)return 0;if(!e.length||!t.length)return Math.max(e.length,t.length);for(var i=0;i<t.length+1;i++)r[i]=i;for(i=0;i<e.length;i++){o[0]=i+1;for(var n=0;n<t.length;n++)o[n+1]=Math.min(o[n]+1,r[n+1]+1,r[n]+Number(e[i]!=t[n]));for(n=0;n<r.length;n++)r[n]=o[n]}return o[t.length]},goog.labs.userAgent.engine={},goog.labs.userAgent.engine.isPresto=function(){return goog.labs.userAgent.util.matchUserAgent("Presto")},goog.labs.userAgent.engine.isTrident=function(){return goog.labs.userAgent.util.matchUserAgent("Trident")||goog.labs.userAgent.util.matchUserAgent("MSIE")},goog.labs.userAgent.engine.isEdge=function(){return goog.labs.userAgent.util.matchUserAgent("Edge")},goog.labs.userAgent.engine.isWebKit=function(){return goog.labs.userAgent.util.matchUserAgentIgnoreCase("WebKit")&&!goog.labs.userAgent.engine.isEdge()},goog.labs.userAgent.engine.isGecko=function(){return goog.labs.userAgent.util.matchUserAgent("Gecko")&&!goog.labs.userAgent.engine.isWebKit()&&!goog.labs.userAgent.engine.isTrident()&&!goog.labs.userAgent.engine.isEdge()},goog.labs.userAgent.engine.getVersion=function(){var e=goog.labs.userAgent.util.getUserAgent();if(e){e=goog.labs.userAgent.util.extractVersionTuples(e);var t,r=goog.labs.userAgent.engine.getEngineTuple_(e);if(r)return"Gecko"==r[0]?goog.labs.userAgent.engine.getVersionForKey_(e,"Firefox"):r[1];if((e=e[0])&&(t=e[2])&&(t=/Trident\/([^\s;]+)/.exec(t)))return t[1]}return""},goog.labs.userAgent.engine.getEngineTuple_=function(e){if(!goog.labs.userAgent.engine.isEdge())return e[1];for(var t=0;t<e.length;t++){var r=e[t];if("Edge"==r[0])return r}},goog.labs.userAgent.engine.isVersionOrHigher=function(e){return 0<=goog.string.compareVersions(goog.labs.userAgent.engine.getVersion(),e)},goog.labs.userAgent.engine.getVersionForKey_=function(e,t){return(e=goog.array.find(e,(function(e){return t==e[0]})))&&e[1]||""},goog.labs.userAgent.platform={},goog.labs.userAgent.platform.isAndroid=function(){return goog.labs.userAgent.util.matchUserAgent("Android")},goog.labs.userAgent.platform.isIpod=function(){return goog.labs.userAgent.util.matchUserAgent("iPod")},goog.labs.userAgent.platform.isIphone=function(){return goog.labs.userAgent.util.matchUserAgent("iPhone")&&!goog.labs.userAgent.util.matchUserAgent("iPod")&&!goog.labs.userAgent.util.matchUserAgent("iPad")},goog.labs.userAgent.platform.isIpad=function(){return goog.labs.userAgent.util.matchUserAgent("iPad")},goog.labs.userAgent.platform.isIos=function(){return goog.labs.userAgent.platform.isIphone()||goog.labs.userAgent.platform.isIpad()||goog.labs.userAgent.platform.isIpod()},goog.labs.userAgent.platform.isMacintosh=function(){return goog.labs.userAgent.util.matchUserAgent("Macintosh")},goog.labs.userAgent.platform.isLinux=function(){return goog.labs.userAgent.util.matchUserAgent("Linux")},goog.labs.userAgent.platform.isWindows=function(){return goog.labs.userAgent.util.matchUserAgent("Windows")},goog.labs.userAgent.platform.isChromeOS=function(){return goog.labs.userAgent.util.matchUserAgent("CrOS")},goog.labs.userAgent.platform.isChromecast=function(){return goog.labs.userAgent.util.matchUserAgent("CrKey")},goog.labs.userAgent.platform.isKaiOS=function(){return goog.labs.userAgent.util.matchUserAgentIgnoreCase("KaiOS")},goog.labs.userAgent.platform.getVersion=function(){var e=goog.labs.userAgent.util.getUserAgent(),t="";return goog.labs.userAgent.platform.isWindows()?t=(e=(t=/Windows (?:NT|Phone) ([0-9.]+)/).exec(e))?e[1]:"0.0":goog.labs.userAgent.platform.isIos()?t=(e=(t=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/).exec(e))&&e[1].replace(/_/g,"."):goog.labs.userAgent.platform.isMacintosh()?t=(e=(t=/Mac OS X ([0-9_.]+)/).exec(e))?e[1].replace(/_/g,"."):"10":goog.labs.userAgent.platform.isKaiOS()?t=(e=(t=/(?:KaiOS)\/(\S+)/i).exec(e))&&e[1]:goog.labs.userAgent.platform.isAndroid()?t=(e=(t=/Android\s+([^\);]+)(\)|;)/).exec(e))&&e[1]:goog.labs.userAgent.platform.isChromeOS()&&(t=(e=(t=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/).exec(e))&&e[1]),t||""},goog.labs.userAgent.platform.isVersionOrHigher=function(e){return 0<=goog.string.compareVersions(goog.labs.userAgent.platform.getVersion(),e)},goog.reflect={},goog.reflect.object=function(e,t){return t},goog.reflect.objectProperty=function(e,t){return e},goog.reflect.sinkValue=function(e){return goog.reflect.sinkValue[" "](e),e},goog.reflect.sinkValue[" "]=goog.nullFunction,goog.reflect.canAccessProperty=function(e,t){try{return goog.reflect.sinkValue(e[t]),!0}catch(e){}return!1},goog.reflect.cache=function(e,t,r,o){return o=o?o(t):t,Object.prototype.hasOwnProperty.call(e,o)?e[o]:e[o]=r(t)},goog.userAgent={},goog.userAgent.ASSUME_IE=!1,goog.userAgent.ASSUME_EDGE=!1,goog.userAgent.ASSUME_GECKO=!1,goog.userAgent.ASSUME_WEBKIT=!1,goog.userAgent.ASSUME_MOBILE_WEBKIT=!1,goog.userAgent.ASSUME_OPERA=!1,goog.userAgent.ASSUME_ANY_VERSION=!1,goog.userAgent.BROWSER_KNOWN_=goog.userAgent.ASSUME_IE||goog.userAgent.ASSUME_EDGE||goog.userAgent.ASSUME_GECKO||goog.userAgent.ASSUME_MOBILE_WEBKIT||goog.userAgent.ASSUME_WEBKIT||goog.userAgent.ASSUME_OPERA,goog.userAgent.getUserAgentString=function(){return goog.labs.userAgent.util.getUserAgent()},goog.userAgent.getNavigatorTyped=function(){return goog.global.navigator||null},goog.userAgent.getNavigator=function(){return goog.userAgent.getNavigatorTyped()},goog.userAgent.OPERA=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_OPERA:goog.labs.userAgent.browser.isOpera(),goog.userAgent.IE=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_IE:goog.labs.userAgent.browser.isIE(),goog.userAgent.EDGE=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_EDGE:goog.labs.userAgent.engine.isEdge(),goog.userAgent.EDGE_OR_IE=goog.userAgent.EDGE||goog.userAgent.IE,goog.userAgent.GECKO=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_GECKO:goog.labs.userAgent.engine.isGecko(),goog.userAgent.WEBKIT=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_WEBKIT||goog.userAgent.ASSUME_MOBILE_WEBKIT:goog.labs.userAgent.engine.isWebKit(),goog.userAgent.isMobile_=function(){return goog.userAgent.WEBKIT&&goog.labs.userAgent.util.matchUserAgent("Mobile")},goog.userAgent.MOBILE=goog.userAgent.ASSUME_MOBILE_WEBKIT||goog.userAgent.isMobile_(),goog.userAgent.SAFARI=goog.userAgent.WEBKIT,goog.userAgent.determinePlatform_=function(){var e=goog.userAgent.getNavigatorTyped();return e&&e.platform||""},goog.userAgent.PLATFORM=goog.userAgent.determinePlatform_(),goog.userAgent.ASSUME_MAC=!1,goog.userAgent.ASSUME_WINDOWS=!1,goog.userAgent.ASSUME_LINUX=!1,goog.userAgent.ASSUME_X11=!1,goog.userAgent.ASSUME_ANDROID=!1,goog.userAgent.ASSUME_IPHONE=!1,goog.userAgent.ASSUME_IPAD=!1,goog.userAgent.ASSUME_IPOD=!1,goog.userAgent.ASSUME_KAIOS=!1,goog.userAgent.PLATFORM_KNOWN_=goog.userAgent.ASSUME_MAC||goog.userAgent.ASSUME_WINDOWS||goog.userAgent.ASSUME_LINUX||goog.userAgent.ASSUME_X11||goog.userAgent.ASSUME_ANDROID||goog.userAgent.ASSUME_IPHONE||goog.userAgent.ASSUME_IPAD||goog.userAgent.ASSUME_IPOD,goog.userAgent.MAC=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_MAC:goog.labs.userAgent.platform.isMacintosh();goog.userAgent.WINDOWS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_WINDOWS:goog.labs.userAgent.platform.isWindows(),goog.userAgent.isLegacyLinux_=function(){return goog.labs.userAgent.platform.isLinux()||goog.labs.userAgent.platform.isChromeOS()},goog.userAgent.LINUX=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_LINUX:goog.userAgent.isLegacyLinux_(),goog.userAgent.isX11_=function(){var e=goog.userAgent.getNavigatorTyped();return!!e&&goog.string.contains(e.appVersion||"","X11")},goog.userAgent.X11=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_X11:goog.userAgent.isX11_(),goog.userAgent.ANDROID=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_ANDROID:goog.labs.userAgent.platform.isAndroid(),goog.userAgent.IPHONE=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPHONE:goog.labs.userAgent.platform.isIphone(),goog.userAgent.IPAD=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPAD:goog.labs.userAgent.platform.isIpad(),goog.userAgent.IPOD=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPOD:goog.labs.userAgent.platform.isIpod(),goog.userAgent.IOS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPHONE||goog.userAgent.ASSUME_IPAD||goog.userAgent.ASSUME_IPOD:goog.labs.userAgent.platform.isIos(),goog.userAgent.KAIOS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_KAIOS:goog.labs.userAgent.platform.isKaiOS(),goog.userAgent.determineVersion_=function(){var e="",t=goog.userAgent.getVersionRegexResult_();return t&&(e=t?t[1]:""),goog.userAgent.IE&&null!=(t=goog.userAgent.getDocumentMode_())&&t>parseFloat(e)?String(t):e},goog.userAgent.getVersionRegexResult_=function(){var e=goog.userAgent.getUserAgentString();return goog.userAgent.GECKO?/rv:([^\);]+)(\)|;)/.exec(e):goog.userAgent.EDGE?/Edge\/([\d\.]+)/.exec(e):goog.userAgent.IE?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e):goog.userAgent.WEBKIT?/WebKit\/(\S+)/.exec(e):goog.userAgent.OPERA?/(?:Version)[ \/]?(\S+)/.exec(e):void 0},goog.userAgent.getDocumentMode_=function(){var e=goog.global.document;return e?e.documentMode:void 0},goog.userAgent.VERSION=goog.userAgent.determineVersion_(),goog.userAgent.compare=function(e,t){return goog.string.compareVersions(e,t)},goog.userAgent.isVersionOrHigherCache_={},goog.userAgent.isVersionOrHigher=function(e){return goog.userAgent.ASSUME_ANY_VERSION||goog.reflect.cache(goog.userAgent.isVersionOrHigherCache_,e,(function(){return 0<=goog.string.compareVersions(goog.userAgent.VERSION,e)}))},goog.userAgent.isVersion=goog.userAgent.isVersionOrHigher,goog.userAgent.isDocumentModeOrHigher=function(e){return Number(goog.userAgent.DOCUMENT_MODE)>=e},goog.userAgent.isDocumentMode=goog.userAgent.isDocumentModeOrHigher,goog.userAgent.DOCUMENT_MODE=function(){if(goog.global.document&&goog.userAgent.IE)return goog.userAgent.getDocumentMode_()||parseInt(goog.userAgent.VERSION,10)||void 0}(),goog.userAgent.product={},goog.userAgent.product.ASSUME_FIREFOX=!1,goog.userAgent.product.ASSUME_IPHONE=!1,goog.userAgent.product.ASSUME_IPAD=!1,goog.userAgent.product.ASSUME_ANDROID=!1,goog.userAgent.product.ASSUME_CHROME=!1,goog.userAgent.product.ASSUME_SAFARI=!1,goog.userAgent.product.PRODUCT_KNOWN_=goog.userAgent.ASSUME_IE||goog.userAgent.ASSUME_EDGE||goog.userAgent.ASSUME_OPERA||goog.userAgent.product.ASSUME_FIREFOX||goog.userAgent.product.ASSUME_IPHONE||goog.userAgent.product.ASSUME_IPAD||goog.userAgent.product.ASSUME_ANDROID||goog.userAgent.product.ASSUME_CHROME||goog.userAgent.product.ASSUME_SAFARI,goog.userAgent.product.OPERA=goog.userAgent.OPERA,goog.userAgent.product.IE=goog.userAgent.IE,goog.userAgent.product.EDGE=goog.userAgent.EDGE,goog.userAgent.product.FIREFOX=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_FIREFOX:goog.labs.userAgent.browser.isFirefox(),goog.userAgent.product.isIphoneOrIpod_=function(){return goog.labs.userAgent.platform.isIphone()||goog.labs.userAgent.platform.isIpod()},goog.userAgent.product.IPHONE=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPHONE:goog.userAgent.product.isIphoneOrIpod_(),goog.userAgent.product.IPAD=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPAD:goog.labs.userAgent.platform.isIpad(),goog.userAgent.product.ANDROID=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_ANDROID:goog.labs.userAgent.browser.isAndroidBrowser(),goog.userAgent.product.CHROME=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_CHROME:goog.labs.userAgent.browser.isChrome(),goog.userAgent.product.isSafariDesktop_=function(){return goog.labs.userAgent.browser.isSafari()&&!goog.labs.userAgent.platform.isIos()},goog.userAgent.product.SAFARI=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_SAFARI:goog.userAgent.product.isSafariDesktop_(),goog.crypt.base64={},goog.crypt.base64.DEFAULT_ALPHABET_COMMON_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",goog.crypt.base64.ENCODED_VALS=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_+"+/=",goog.crypt.base64.ENCODED_VALS_WEBSAFE=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_+"-_.",goog.crypt.base64.Alphabet={DEFAULT:0,NO_PADDING:1,WEBSAFE:2,WEBSAFE_DOT_PADDING:3,WEBSAFE_NO_PADDING:4},goog.crypt.base64.paddingChars_="=.",goog.crypt.base64.isPadding_=function(e){return goog.string.contains(goog.crypt.base64.paddingChars_,e)},goog.crypt.base64.byteToCharMaps_={},goog.crypt.base64.charToByteMap_=null,goog.crypt.base64.ASSUME_NATIVE_SUPPORT_=goog.userAgent.GECKO||goog.userAgent.WEBKIT&&!goog.userAgent.product.SAFARI||goog.userAgent.OPERA,goog.crypt.base64.HAS_NATIVE_ENCODE_=goog.crypt.base64.ASSUME_NATIVE_SUPPORT_||"function"==typeof goog.global.btoa,goog.crypt.base64.HAS_NATIVE_DECODE_=goog.crypt.base64.ASSUME_NATIVE_SUPPORT_||!goog.userAgent.product.SAFARI&&!goog.userAgent.IE&&"function"==typeof goog.global.atob,goog.crypt.base64.encodeByteArray=function(e,t){goog.asserts.assert(goog.isArrayLike(e),"encodeByteArray takes an array as a parameter"),void 0===t&&(t=goog.crypt.base64.Alphabet.DEFAULT),goog.crypt.base64.init_(),t=goog.crypt.base64.byteToCharMaps_[t];for(var r=[],o=0;o<e.length;o+=3){var i=e[o],n=o+1<e.length,s=n?e[o+1]:0,a=o+2<e.length,u=a?e[o+2]:0,l=i>>2;i=(3&i)<<4|s>>4,s=(15&s)<<2|u>>6,u&=63,a||(u=64,n||(s=64)),r.push(t[l],t[i],t[s]||"",t[u]||"")}return r.join("")},goog.crypt.base64.encodeString=function(e,t){return goog.crypt.base64.HAS_NATIVE_ENCODE_&&!t?goog.global.btoa(e):goog.crypt.base64.encodeByteArray(goog.crypt.stringToByteArray(e),t)},goog.crypt.base64.decodeString=function(e,t){if(goog.crypt.base64.HAS_NATIVE_DECODE_&&!t)return goog.global.atob(e);var r="";return goog.crypt.base64.decodeStringInternal_(e,(function(e){r+=String.fromCharCode(e)})),r},goog.crypt.base64.decodeStringToByteArray=function(e,t){var r=[];return goog.crypt.base64.decodeStringInternal_(e,(function(e){r.push(e)})),r},goog.crypt.base64.decodeStringToUint8Array=function(e){goog.asserts.assert(!goog.userAgent.IE||goog.userAgent.isVersionOrHigher("10"),"Browser does not support typed arrays");var t=e.length,r=3*t/4;r%3?r=Math.floor(r):goog.crypt.base64.isPadding_(e[t-1])&&(r=goog.crypt.base64.isPadding_(e[t-2])?r-2:r-1);var o=new Uint8Array(r),i=0;return goog.crypt.base64.decodeStringInternal_(e,(function(e){o[i++]=e})),o.subarray(0,i)},goog.crypt.base64.decodeStringInternal_=function(e,t){function r(t){for(;o<e.length;){var r=e.charAt(o++),i=goog.crypt.base64.charToByteMap_[r];if(null!=i)return i;if(!goog.string.isEmptyOrWhitespace(r))throw Error("Unknown base64 encoding at char: "+r)}return t}goog.crypt.base64.init_();for(var o=0;;){var i=r(-1),n=r(0),s=r(64),a=r(64);if(64===a&&-1===i)break;t(i<<2|n>>4),64!=s&&(t(n<<4&240|s>>2),64!=a&&t(s<<6&192|a))}},goog.crypt.base64.init_=function(){if(!goog.crypt.base64.charToByteMap_){goog.crypt.base64.charToByteMap_={};for(var e=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_.split(""),t=["+/=","+/","-_=","-_.","-_"],r=0;5>r;r++){var o=e.concat(t[r].split(""));goog.crypt.base64.byteToCharMaps_[r]=o;for(var i=0;i<o.length;i++){var n=o[i],s=goog.crypt.base64.charToByteMap_[n];void 0===s?goog.crypt.base64.charToByteMap_[n]=i:goog.asserts.assert(s===i)}}}},jspb.utils={},jspb.utils.split64Low=0,jspb.utils.split64High=0,jspb.utils.splitUint64=function(e){var t=e>>>0;e=Math.floor((e-t)/jspb.BinaryConstants.TWO_TO_32)>>>0,jspb.utils.split64Low=t,jspb.utils.split64High=e},jspb.utils.splitInt64=function(e){var t=0>e,r=(e=Math.abs(e))>>>0;e=Math.floor((e-r)/jspb.BinaryConstants.TWO_TO_32),e>>>=0,t&&(e=~e>>>0,4294967295<(r=1+(~r>>>0))&&(r=0,4294967295<++e&&(e=0))),jspb.utils.split64Low=r,jspb.utils.split64High=e},jspb.utils.splitZigzag64=function(e){var t=0>e;e=2*Math.abs(e),jspb.utils.splitUint64(e),e=jspb.utils.split64Low;var r=jspb.utils.split64High;t&&(0==e?0==r?r=e=4294967295:(r--,e=4294967295):e--),jspb.utils.split64Low=e,jspb.utils.split64High=r},jspb.utils.splitFloat32=function(e){var t=0>e?1:0;if(0===(e=t?-e:e))0<1/e?(jspb.utils.split64High=0,jspb.utils.split64Low=0):(jspb.utils.split64High=0,jspb.utils.split64Low=2147483648);else if(isNaN(e))jspb.utils.split64High=0,jspb.utils.split64Low=2147483647;else if(e>jspb.BinaryConstants.FLOAT32_MAX)jspb.utils.split64High=0,jspb.utils.split64Low=(t<<31|2139095040)>>>0;else if(e<jspb.BinaryConstants.FLOAT32_MIN)e=Math.round(e/Math.pow(2,-149)),jspb.utils.split64High=0,jspb.utils.split64Low=(t<<31|e)>>>0;else{var r=Math.floor(Math.log(e)/Math.LN2);e*=Math.pow(2,-r),16777216<=(e=Math.round(e*jspb.BinaryConstants.TWO_TO_23))&&++r,jspb.utils.split64High=0,jspb.utils.split64Low=(t<<31|r+127<<23|8388607&e)>>>0}},jspb.utils.splitFloat64=function(e){var t=0>e?1:0;if(0===(e=t?-e:e))jspb.utils.split64High=0<1/e?0:2147483648,jspb.utils.split64Low=0;else if(isNaN(e))jspb.utils.split64High=2147483647,jspb.utils.split64Low=4294967295;else if(e>jspb.BinaryConstants.FLOAT64_MAX)jspb.utils.split64High=(t<<31|2146435072)>>>0,jspb.utils.split64Low=0;else if(e<jspb.BinaryConstants.FLOAT64_MIN){var r=e/Math.pow(2,-1074);e=r/jspb.BinaryConstants.TWO_TO_32,jspb.utils.split64High=(t<<31|e)>>>0,jspb.utils.split64Low=r>>>0}else{var o=0;if(2<=(r=e))for(;2<=r&&1023>o;)o++,r/=2;else for(;1>r&&-1022<o;)r*=2,o--;e=(r=e*Math.pow(2,-o))*jspb.BinaryConstants.TWO_TO_20&1048575,r=r*jspb.BinaryConstants.TWO_TO_52>>>0,jspb.utils.split64High=(t<<31|o+1023<<20|e)>>>0,jspb.utils.split64Low=r}},jspb.utils.splitHash64=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),o=e.charCodeAt(2),i=e.charCodeAt(3),n=e.charCodeAt(4),s=e.charCodeAt(5),a=e.charCodeAt(6);e=e.charCodeAt(7),jspb.utils.split64Low=t+(r<<8)+(o<<16)+(i<<24)>>>0,jspb.utils.split64High=n+(s<<8)+(a<<16)+(e<<24)>>>0},jspb.utils.joinUint64=function(e,t){return t*jspb.BinaryConstants.TWO_TO_32+(e>>>0)},jspb.utils.joinInt64=function(e,t){var r=2147483648&t;return r&&(t=~t>>>0,0==(e=1+~e>>>0)&&(t=t+1>>>0)),e=jspb.utils.joinUint64(e,t),r?-e:e},jspb.utils.toZigzag64=function(e,t,r){var o=t>>31;return r(e<<1^o,(t<<1|e>>>31)^o)},jspb.utils.joinZigzag64=function(e,t){return jspb.utils.fromZigzag64(e,t,jspb.utils.joinInt64)},jspb.utils.fromZigzag64=function(e,t,r){var o=-(1&e);return r((e>>>1|t<<31)^o,t>>>1^o)},jspb.utils.joinFloat32=function(e,t){t=2*(e>>31)+1;var r=e>>>23&255;return e&=8388607,255==r?e?NaN:1/0*t:0==r?t*Math.pow(2,-149)*e:t*Math.pow(2,r-150)*(e+Math.pow(2,23))},jspb.utils.joinFloat64=function(e,t){var r=2*(t>>31)+1,o=t>>>20&2047;return e=jspb.BinaryConstants.TWO_TO_32*(1048575&t)+e,2047==o?e?NaN:1/0*r:0==o?r*Math.pow(2,-1074)*e:r*Math.pow(2,o-1075)*(e+jspb.BinaryConstants.TWO_TO_52)},jspb.utils.joinHash64=function(e,t){return String.fromCharCode(e>>>0&255,e>>>8&255,e>>>16&255,e>>>24&255,t>>>0&255,t>>>8&255,t>>>16&255,t>>>24&255)},jspb.utils.DIGITS="0123456789abcdef".split(""),jspb.utils.ZERO_CHAR_CODE_=48,jspb.utils.A_CHAR_CODE_=97,jspb.utils.joinUnsignedDecimalString=function(e,t){function r(e,t){return e=e?String(e):"",t?"0000000".slice(e.length)+e:e}if(2097151>=t)return""+jspb.utils.joinUint64(e,t);var o=(e>>>24|t<<8)>>>0&16777215;return e=(16777215&e)+6777216*o+6710656*(t=t>>16&65535),o+=8147497*t,t*=2,1e7<=e&&(o+=Math.floor(e/1e7),e%=1e7),1e7<=o&&(t+=Math.floor(o/1e7),o%=1e7),r(t,0)+r(o,t)+r(e,1)},jspb.utils.joinSignedDecimalString=function(e,t){var r=2147483648&t;return r&&(t=~t+(0==(e=1+~e>>>0)?1:0)>>>0),e=jspb.utils.joinUnsignedDecimalString(e,t),r?"-"+e:e},jspb.utils.hash64ToDecimalString=function(e,t){jspb.utils.splitHash64(e),e=jspb.utils.split64Low;var r=jspb.utils.split64High;return t?jspb.utils.joinSignedDecimalString(e,r):jspb.utils.joinUnsignedDecimalString(e,r)},jspb.utils.hash64ArrayToDecimalStrings=function(e,t){for(var r=Array(e.length),o=0;o<e.length;o++)r[o]=jspb.utils.hash64ToDecimalString(e[o],t);return r},jspb.utils.decimalStringToHash64=function(e){function t(e,t){for(var r=0;8>r&&(1!==e||0<t);r++)t=e*o[r]+t,o[r]=255&t,t>>>=8}jspb.asserts.assert(0<e.length);var r=!1;"-"===e[0]&&(r=!0,e=e.slice(1));for(var o=[0,0,0,0,0,0,0,0],i=0;i<e.length;i++)t(10,e.charCodeAt(i)-jspb.utils.ZERO_CHAR_CODE_);return r&&(function(){for(var e=0;8>e;e++)o[e]=255&~o[e]}(),t(1,1)),goog.crypt.byteArrayToString(o)},jspb.utils.splitDecimalString=function(e){jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(e))},jspb.utils.toHexDigit_=function(e){return String.fromCharCode(10>e?jspb.utils.ZERO_CHAR_CODE_+e:jspb.utils.A_CHAR_CODE_-10+e)},jspb.utils.fromHexCharCode_=function(e){return e>=jspb.utils.A_CHAR_CODE_?e-jspb.utils.A_CHAR_CODE_+10:e-jspb.utils.ZERO_CHAR_CODE_},jspb.utils.hash64ToHexString=function(e){var t=Array(18);t[0]="0",t[1]="x";for(var r=0;8>r;r++){var o=e.charCodeAt(7-r);t[2*r+2]=jspb.utils.toHexDigit_(o>>4),t[2*r+3]=jspb.utils.toHexDigit_(15&o)}return t.join("")},jspb.utils.hexStringToHash64=function(e){e=e.toLowerCase(),jspb.asserts.assert(18==e.length),jspb.asserts.assert("0"==e[0]),jspb.asserts.assert("x"==e[1]);for(var t="",r=0;8>r;r++){var o=jspb.utils.fromHexCharCode_(e.charCodeAt(2*r+2)),i=jspb.utils.fromHexCharCode_(e.charCodeAt(2*r+3));t=String.fromCharCode(16*o+i)+t}return t},jspb.utils.hash64ToNumber=function(e,t){jspb.utils.splitHash64(e),e=jspb.utils.split64Low;var r=jspb.utils.split64High;return t?jspb.utils.joinInt64(e,r):jspb.utils.joinUint64(e,r)},jspb.utils.numberToHash64=function(e){return jspb.utils.splitInt64(e),jspb.utils.joinHash64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.utils.countVarints=function(e,t,r){for(var o=0,i=t;i<r;i++)o+=e[i]>>7;return r-t-o},jspb.utils.countVarintFields=function(e,t,r,o){var i=0;if(128>(o=8*o+jspb.BinaryConstants.WireType.VARINT))for(;t<r&&e[t++]==o;)for(i++;;){var n=e[t++];if(0==(128&n))break}else for(;t<r;){for(n=o;128<n;){if(e[t]!=(127&n|128))return i;t++,n>>=7}if(e[t++]!=n)break;for(i++;0!=(128&(n=e[t++])););}return i},jspb.utils.countFixedFields_=function(e,t,r,o,i){var n=0;if(128>o)for(;t<r&&e[t++]==o;)n++,t+=i;else for(;t<r;){for(var s=o;128<s;){if(e[t++]!=(127&s|128))return n;s>>=7}if(e[t++]!=s)break;n++,t+=i}return n},jspb.utils.countFixed32Fields=function(e,t,r,o){return jspb.utils.countFixedFields_(e,t,r,8*o+jspb.BinaryConstants.WireType.FIXED32,4)},jspb.utils.countFixed64Fields=function(e,t,r,o){return jspb.utils.countFixedFields_(e,t,r,8*o+jspb.BinaryConstants.WireType.FIXED64,8)},jspb.utils.countDelimitedFields=function(e,t,r,o){var i=0;for(o=8*o+jspb.BinaryConstants.WireType.DELIMITED;t<r;){for(var n=o;128<n;){if(e[t++]!=(127&n|128))return i;n>>=7}if(e[t++]!=n)break;i++;for(var s=0,a=1;s+=(127&(n=e[t++]))*a,a*=128,0!=(128&n););t+=s}return i},jspb.utils.debugBytesToTextFormat=function(e){var t='"';if(e){e=jspb.utils.byteSourceToUint8Array(e);for(var r=0;r<e.length;r++)t+="\\x",16>e[r]&&(t+="0"),t+=e[r].toString(16)}return t+'"'},jspb.utils.debugScalarToTextFormat=function(e){return"string"==typeof e?goog.string.quote(e):e.toString()},jspb.utils.stringToByteArray=function(e){for(var t=new Uint8Array(e.length),r=0;r<e.length;r++){var o=e.charCodeAt(r);if(255<o)throw Error("Conversion error: string contains codepoint outside of byte range");t[r]=o}return t},jspb.utils.byteSourceToUint8Array=function(e){return e.constructor===Uint8Array?e:e.constructor===ArrayBuffer||e.constructor===Array?new Uint8Array(e):e.constructor===String?goog.crypt.base64.decodeStringToUint8Array(e):e instanceof Uint8Array?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):(jspb.asserts.fail("Type not convertible to Uint8Array."),new Uint8Array(0))},jspb.BinaryDecoder=function(e,t,r){this.bytes_=null,this.cursor_=this.end_=this.start_=0,this.error_=!1,e&&this.setBlock(e,t,r)},jspb.BinaryDecoder.instanceCache_=[],jspb.BinaryDecoder.alloc=function(e,t,r){if(jspb.BinaryDecoder.instanceCache_.length){var o=jspb.BinaryDecoder.instanceCache_.pop();return e&&o.setBlock(e,t,r),o}return new jspb.BinaryDecoder(e,t,r)},jspb.BinaryDecoder.prototype.free=function(){this.clear(),100>jspb.BinaryDecoder.instanceCache_.length&&jspb.BinaryDecoder.instanceCache_.push(this)},jspb.BinaryDecoder.prototype.clone=function(){return jspb.BinaryDecoder.alloc(this.bytes_,this.start_,this.end_-this.start_)},jspb.BinaryDecoder.prototype.clear=function(){this.bytes_=null,this.cursor_=this.end_=this.start_=0,this.error_=!1},jspb.BinaryDecoder.prototype.getBuffer=function(){return this.bytes_},jspb.BinaryDecoder.prototype.setBlock=function(e,t,r){this.bytes_=jspb.utils.byteSourceToUint8Array(e),this.start_=void 0!==t?t:0,this.end_=void 0!==r?this.start_+r:this.bytes_.length,this.cursor_=this.start_},jspb.BinaryDecoder.prototype.getEnd=function(){return this.end_},jspb.BinaryDecoder.prototype.setEnd=function(e){this.end_=e},jspb.BinaryDecoder.prototype.reset=function(){this.cursor_=this.start_},jspb.BinaryDecoder.prototype.getCursor=function(){return this.cursor_},jspb.BinaryDecoder.prototype.setCursor=function(e){this.cursor_=e},jspb.BinaryDecoder.prototype.advance=function(e){this.cursor_+=e,jspb.asserts.assert(this.cursor_<=this.end_)},jspb.BinaryDecoder.prototype.atEnd=function(){return this.cursor_==this.end_},jspb.BinaryDecoder.prototype.pastEnd=function(){return this.cursor_>this.end_},jspb.BinaryDecoder.prototype.getError=function(){return this.error_||0>this.cursor_||this.cursor_>this.end_},jspb.BinaryDecoder.prototype.readSplitVarint64=function(e){for(var t=128,r=0,o=0,i=0;4>i&&128<=t;i++)r|=(127&(t=this.bytes_[this.cursor_++]))<<7*i;if(128<=t&&(r|=(127&(t=this.bytes_[this.cursor_++]))<<28,o|=(127&t)>>4),128<=t)for(i=0;5>i&&128<=t;i++)o|=(127&(t=this.bytes_[this.cursor_++]))<<7*i+3;if(128>t)return e(r>>>0,o>>>0);jspb.asserts.fail("Failed to read varint, encoding is invalid."),this.error_=!0},jspb.BinaryDecoder.prototype.readSplitZigzagVarint64=function(e){return this.readSplitVarint64((function(t,r){return jspb.utils.fromZigzag64(t,r,e)}))},jspb.BinaryDecoder.prototype.readSplitFixed64=function(e){var t=this.bytes_,r=this.cursor_;this.cursor_+=8;for(var o=0,i=0,n=r+7;n>=r;n--)o=o<<8|t[n],i=i<<8|t[n+4];return e(o,i)},jspb.BinaryDecoder.prototype.skipVarint=function(){for(;128&this.bytes_[this.cursor_];)this.cursor_++;this.cursor_++},jspb.BinaryDecoder.prototype.unskipVarint=function(e){for(;128<e;)this.cursor_--,e>>>=7;this.cursor_--},jspb.BinaryDecoder.prototype.readUnsignedVarint32=function(){var e=this.bytes_,t=e[this.cursor_+0],r=127&t;return 128>t?(this.cursor_+=1,jspb.asserts.assert(this.cursor_<=this.end_),r):(r|=(127&(t=e[this.cursor_+1]))<<7,128>t?(this.cursor_+=2,jspb.asserts.assert(this.cursor_<=this.end_),r):(r|=(127&(t=e[this.cursor_+2]))<<14,128>t?(this.cursor_+=3,jspb.asserts.assert(this.cursor_<=this.end_),r):(r|=(127&(t=e[this.cursor_+3]))<<21,128>t?(this.cursor_+=4,jspb.asserts.assert(this.cursor_<=this.end_),r):(r|=(15&(t=e[this.cursor_+4]))<<28,128>t?(this.cursor_+=5,jspb.asserts.assert(this.cursor_<=this.end_),r>>>0):(this.cursor_+=5,128<=e[this.cursor_++]&&128<=e[this.cursor_++]&&128<=e[this.cursor_++]&&128<=e[this.cursor_++]&&128<=e[this.cursor_++]&&jspb.asserts.assert(!1),jspb.asserts.assert(this.cursor_<=this.end_),r)))))},jspb.BinaryDecoder.prototype.readSignedVarint32=function(){return~~this.readUnsignedVarint32()},jspb.BinaryDecoder.prototype.readUnsignedVarint32String=function(){return this.readUnsignedVarint32().toString()},jspb.BinaryDecoder.prototype.readSignedVarint32String=function(){return this.readSignedVarint32().toString()},jspb.BinaryDecoder.prototype.readZigzagVarint32=function(){var e=this.readUnsignedVarint32();return e>>>1^-(1&e)},jspb.BinaryDecoder.prototype.readUnsignedVarint64=function(){return this.readSplitVarint64(jspb.utils.joinUint64)},jspb.BinaryDecoder.prototype.readUnsignedVarint64String=function(){return this.readSplitVarint64(jspb.utils.joinUnsignedDecimalString)},jspb.BinaryDecoder.prototype.readSignedVarint64=function(){return this.readSplitVarint64(jspb.utils.joinInt64)},jspb.BinaryDecoder.prototype.readSignedVarint64String=function(){return this.readSplitVarint64(jspb.utils.joinSignedDecimalString)},jspb.BinaryDecoder.prototype.readZigzagVarint64=function(){return this.readSplitVarint64(jspb.utils.joinZigzag64)},jspb.BinaryDecoder.prototype.readZigzagVarintHash64=function(){return this.readSplitZigzagVarint64(jspb.utils.joinHash64)},jspb.BinaryDecoder.prototype.readZigzagVarint64String=function(){return this.readSplitZigzagVarint64(jspb.utils.joinSignedDecimalString)},jspb.BinaryDecoder.prototype.readUint8=function(){var e=this.bytes_[this.cursor_+0];return this.cursor_+=1,jspb.asserts.assert(this.cursor_<=this.end_),e},jspb.BinaryDecoder.prototype.readUint16=function(){var e=this.bytes_[this.cursor_+0],t=this.bytes_[this.cursor_+1];return this.cursor_+=2,jspb.asserts.assert(this.cursor_<=this.end_),e<<0|t<<8},jspb.BinaryDecoder.prototype.readUint32=function(){var e=this.bytes_[this.cursor_+0],t=this.bytes_[this.cursor_+1],r=this.bytes_[this.cursor_+2],o=this.bytes_[this.cursor_+3];return this.cursor_+=4,jspb.asserts.assert(this.cursor_<=this.end_),(e<<0|t<<8|r<<16|o<<24)>>>0},jspb.BinaryDecoder.prototype.readUint64=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinUint64(e,t)},jspb.BinaryDecoder.prototype.readUint64String=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinUnsignedDecimalString(e,t)},jspb.BinaryDecoder.prototype.readInt8=function(){var e=this.bytes_[this.cursor_+0];return this.cursor_+=1,jspb.asserts.assert(this.cursor_<=this.end_),e<<24>>24},jspb.BinaryDecoder.prototype.readInt16=function(){var e=this.bytes_[this.cursor_+0],t=this.bytes_[this.cursor_+1];return this.cursor_+=2,jspb.asserts.assert(this.cursor_<=this.end_),(e<<0|t<<8)<<16>>16},jspb.BinaryDecoder.prototype.readInt32=function(){var e=this.bytes_[this.cursor_+0],t=this.bytes_[this.cursor_+1],r=this.bytes_[this.cursor_+2],o=this.bytes_[this.cursor_+3];return this.cursor_+=4,jspb.asserts.assert(this.cursor_<=this.end_),e<<0|t<<8|r<<16|o<<24},jspb.BinaryDecoder.prototype.readInt64=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinInt64(e,t)},jspb.BinaryDecoder.prototype.readInt64String=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinSignedDecimalString(e,t)},jspb.BinaryDecoder.prototype.readFloat=function(){var e=this.readUint32();return jspb.utils.joinFloat32(e,0)},jspb.BinaryDecoder.prototype.readDouble=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinFloat64(e,t)},jspb.BinaryDecoder.prototype.readBool=function(){return!!this.bytes_[this.cursor_++]},jspb.BinaryDecoder.prototype.readEnum=function(){return this.readSignedVarint32()},jspb.BinaryDecoder.prototype.readString=function(e){var t=this.bytes_,r=this.cursor_;e=r+e;for(var o=[],i="";r<e;){var n=t[r++];if(128>n)o.push(n);else{if(192>n)continue;if(224>n){var s=t[r++];o.push((31&n)<<6|63&s)}else if(240>n){s=t[r++];var a=t[r++];o.push((15&n)<<12|(63&s)<<6|63&a)}else 248>n&&(n=(7&n)<<18|(63&(s=t[r++]))<<12|(63&(a=t[r++]))<<6|63&t[r++],n-=65536,o.push(55296+(n>>10&1023),56320+(1023&n)))}8192<=o.length&&(i+=String.fromCharCode.apply(null,o),o.length=0)}return i+=goog.crypt.byteArrayToString(o),this.cursor_=r,i},jspb.BinaryDecoder.prototype.readStringWithLength=function(){var e=this.readUnsignedVarint32();return this.readString(e)},jspb.BinaryDecoder.prototype.readBytes=function(e){if(0>e||this.cursor_+e>this.bytes_.length)return this.error_=!0,jspb.asserts.fail("Invalid byte length!"),new Uint8Array(0);var t=this.bytes_.subarray(this.cursor_,this.cursor_+e);return this.cursor_+=e,jspb.asserts.assert(this.cursor_<=this.end_),t},jspb.BinaryDecoder.prototype.readVarintHash64=function(){return this.readSplitVarint64(jspb.utils.joinHash64)},jspb.BinaryDecoder.prototype.readFixedHash64=function(){var e=this.bytes_,t=this.cursor_,r=e[t+0],o=e[t+1],i=e[t+2],n=e[t+3],s=e[t+4],a=e[t+5],u=e[t+6];return e=e[t+7],this.cursor_+=8,String.fromCharCode(r,o,i,n,s,a,u,e)},jspb.BinaryReader=function(e,t,r){this.decoder_=jspb.BinaryDecoder.alloc(e,t,r),this.fieldCursor_=this.decoder_.getCursor(),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID,this.error_=!1,this.readCallbacks_=null},jspb.BinaryReader.instanceCache_=[],jspb.BinaryReader.alloc=function(e,t,r){if(jspb.BinaryReader.instanceCache_.length){var o=jspb.BinaryReader.instanceCache_.pop();return e&&o.decoder_.setBlock(e,t,r),o}return new jspb.BinaryReader(e,t,r)},jspb.BinaryReader.prototype.alloc=jspb.BinaryReader.alloc,jspb.BinaryReader.prototype.free=function(){this.decoder_.clear(),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID,this.error_=!1,this.readCallbacks_=null,100>jspb.BinaryReader.instanceCache_.length&&jspb.BinaryReader.instanceCache_.push(this)},jspb.BinaryReader.prototype.getFieldCursor=function(){return this.fieldCursor_},jspb.BinaryReader.prototype.getCursor=function(){return this.decoder_.getCursor()},jspb.BinaryReader.prototype.getBuffer=function(){return this.decoder_.getBuffer()},jspb.BinaryReader.prototype.getFieldNumber=function(){return this.nextField_},goog.exportProperty(jspb.BinaryReader.prototype,"getFieldNumber",jspb.BinaryReader.prototype.getFieldNumber),jspb.BinaryReader.prototype.getWireType=function(){return this.nextWireType_},jspb.BinaryReader.prototype.isDelimited=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED},goog.exportProperty(jspb.BinaryReader.prototype,"isDelimited",jspb.BinaryReader.prototype.isDelimited),jspb.BinaryReader.prototype.isEndGroup=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP},goog.exportProperty(jspb.BinaryReader.prototype,"isEndGroup",jspb.BinaryReader.prototype.isEndGroup),jspb.BinaryReader.prototype.getError=function(){return this.error_||this.decoder_.getError()},jspb.BinaryReader.prototype.setBlock=function(e,t,r){this.decoder_.setBlock(e,t,r),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID},jspb.BinaryReader.prototype.reset=function(){this.decoder_.reset(),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID},jspb.BinaryReader.prototype.advance=function(e){this.decoder_.advance(e)},jspb.BinaryReader.prototype.nextField=function(){if(this.decoder_.atEnd())return!1;if(this.getError())return jspb.asserts.fail("Decoder hit an error"),!1;this.fieldCursor_=this.decoder_.getCursor();var e=this.decoder_.readUnsignedVarint32(),t=e>>>3;return(e&=7)!=jspb.BinaryConstants.WireType.VARINT&&e!=jspb.BinaryConstants.WireType.FIXED32&&e!=jspb.BinaryConstants.WireType.FIXED64&&e!=jspb.BinaryConstants.WireType.DELIMITED&&e!=jspb.BinaryConstants.WireType.START_GROUP&&e!=jspb.BinaryConstants.WireType.END_GROUP?(jspb.asserts.fail("Invalid wire type: %s (at position %s)",e,this.fieldCursor_),this.error_=!0,!1):(this.nextField_=t,this.nextWireType_=e,!0)},goog.exportProperty(jspb.BinaryReader.prototype,"nextField",jspb.BinaryReader.prototype.nextField),jspb.BinaryReader.prototype.unskipHeader=function(){this.decoder_.unskipVarint(this.nextField_<<3|this.nextWireType_)},jspb.BinaryReader.prototype.skipMatchingFields=function(){var e=this.nextField_;for(this.unskipHeader();this.nextField()&&this.getFieldNumber()==e;)this.skipField();this.decoder_.atEnd()||this.unskipHeader()},jspb.BinaryReader.prototype.skipVarintField=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.VARINT?(jspb.asserts.fail("Invalid wire type for skipVarintField"),this.skipField()):this.decoder_.skipVarint()},jspb.BinaryReader.prototype.skipDelimitedField=function(){if(this.nextWireType_!=jspb.BinaryConstants.WireType.DELIMITED)jspb.asserts.fail("Invalid wire type for skipDelimitedField"),this.skipField();else{var e=this.decoder_.readUnsignedVarint32();this.decoder_.advance(e)}},jspb.BinaryReader.prototype.skipFixed32Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED32?(jspb.asserts.fail("Invalid wire type for skipFixed32Field"),this.skipField()):this.decoder_.advance(4)},jspb.BinaryReader.prototype.skipFixed64Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED64?(jspb.asserts.fail("Invalid wire type for skipFixed64Field"),this.skipField()):this.decoder_.advance(8)},jspb.BinaryReader.prototype.skipGroup=function(){for(var e=this.nextField_;;){if(!this.nextField()){jspb.asserts.fail("Unmatched start-group tag: stream EOF"),this.error_=!0;break}if(this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP){this.nextField_!=e&&(jspb.asserts.fail("Unmatched end-group tag"),this.error_=!0);break}this.skipField()}},jspb.BinaryReader.prototype.skipField=function(){switch(this.nextWireType_){case jspb.BinaryConstants.WireType.VARINT:this.skipVarintField();break;case jspb.BinaryConstants.WireType.FIXED64:this.skipFixed64Field();break;case jspb.BinaryConstants.WireType.DELIMITED:this.skipDelimitedField();break;case jspb.BinaryConstants.WireType.FIXED32:this.skipFixed32Field();break;case jspb.BinaryConstants.WireType.START_GROUP:this.skipGroup();break;default:jspb.asserts.fail("Invalid wire encoding for field.")}},jspb.BinaryReader.prototype.registerReadCallback=function(e,t){null===this.readCallbacks_&&(this.readCallbacks_={}),jspb.asserts.assert(!this.readCallbacks_[e]),this.readCallbacks_[e]=t},jspb.BinaryReader.prototype.runReadCallback=function(e){return jspb.asserts.assert(null!==this.readCallbacks_),e=this.readCallbacks_[e],jspb.asserts.assert(e),e(this)},jspb.BinaryReader.prototype.readAny=function(e){this.nextWireType_=jspb.BinaryConstants.FieldTypeToWireType(e);var t=jspb.BinaryConstants.FieldType;switch(e){case t.DOUBLE:return this.readDouble();case t.FLOAT:return this.readFloat();case t.INT64:return this.readInt64();case t.UINT64:return this.readUint64();case t.INT32:return this.readInt32();case t.FIXED64:return this.readFixed64();case t.FIXED32:return this.readFixed32();case t.BOOL:return this.readBool();case t.STRING:return this.readString();case t.GROUP:jspb.asserts.fail("Group field type not supported in readAny()");case t.MESSAGE:jspb.asserts.fail("Message field type not supported in readAny()");case t.BYTES:return this.readBytes();case t.UINT32:return this.readUint32();case t.ENUM:return this.readEnum();case t.SFIXED32:return this.readSfixed32();case t.SFIXED64:return this.readSfixed64();case t.SINT32:return this.readSint32();case t.SINT64:return this.readSint64();case t.FHASH64:return this.readFixedHash64();case t.VHASH64:return this.readVarintHash64();default:jspb.asserts.fail("Invalid field type in readAny()")}return 0},jspb.BinaryReader.prototype.readMessage=function(e,t){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var r=this.decoder_.getEnd(),o=this.decoder_.readUnsignedVarint32();o=this.decoder_.getCursor()+o,this.decoder_.setEnd(o),t(e,this),this.decoder_.setCursor(o),this.decoder_.setEnd(r)},goog.exportProperty(jspb.BinaryReader.prototype,"readMessage",jspb.BinaryReader.prototype.readMessage),jspb.BinaryReader.prototype.readGroup=function(e,t,r){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.START_GROUP),jspb.asserts.assert(this.nextField_==e),r(t,this),this.error_||this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP||(jspb.asserts.fail("Group submessage did not end with an END_GROUP tag"),this.error_=!0)},goog.exportProperty(jspb.BinaryReader.prototype,"readGroup",jspb.BinaryReader.prototype.readGroup),jspb.BinaryReader.prototype.getFieldDecoder=function(){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var e=this.decoder_.readUnsignedVarint32(),t=this.decoder_.getCursor(),r=t+e;return e=jspb.BinaryDecoder.alloc(this.decoder_.getBuffer(),t,e),this.decoder_.setCursor(r),e},jspb.BinaryReader.prototype.readInt32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readInt32",jspb.BinaryReader.prototype.readInt32),jspb.BinaryReader.prototype.readInt32String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32String()},jspb.BinaryReader.prototype.readInt64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readInt64",jspb.BinaryReader.prototype.readInt64),jspb.BinaryReader.prototype.readInt64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64String()},jspb.BinaryReader.prototype.readUint32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readUint32",jspb.BinaryReader.prototype.readUint32),jspb.BinaryReader.prototype.readUint32String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32String()},jspb.BinaryReader.prototype.readUint64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readUint64",jspb.BinaryReader.prototype.readUint64),jspb.BinaryReader.prototype.readUint64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64String()},jspb.BinaryReader.prototype.readSint32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readSint32",jspb.BinaryReader.prototype.readSint32),jspb.BinaryReader.prototype.readSint64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readSint64",jspb.BinaryReader.prototype.readSint64),jspb.BinaryReader.prototype.readSint64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64String()},jspb.BinaryReader.prototype.readFixed32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readUint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readFixed32",jspb.BinaryReader.prototype.readFixed32),jspb.BinaryReader.prototype.readFixed64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readFixed64",jspb.BinaryReader.prototype.readFixed64),jspb.BinaryReader.prototype.readFixed64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64String()},jspb.BinaryReader.prototype.readSfixed32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32()},goog.exportProperty(jspb.BinaryReader.prototype,"readSfixed32",jspb.BinaryReader.prototype.readSfixed32),jspb.BinaryReader.prototype.readSfixed32String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32().toString()},jspb.BinaryReader.prototype.readSfixed64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64()},goog.exportProperty(jspb.BinaryReader.prototype,"readSfixed64",jspb.BinaryReader.prototype.readSfixed64),jspb.BinaryReader.prototype.readSfixed64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64String()},jspb.BinaryReader.prototype.readFloat=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readFloat()},goog.exportProperty(jspb.BinaryReader.prototype,"readFloat",jspb.BinaryReader.prototype.readFloat),jspb.BinaryReader.prototype.readDouble=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readDouble()},goog.exportProperty(jspb.BinaryReader.prototype,"readDouble",jspb.BinaryReader.prototype.readDouble),jspb.BinaryReader.prototype.readBool=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),!!this.decoder_.readUnsignedVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readBool",jspb.BinaryReader.prototype.readBool),jspb.BinaryReader.prototype.readEnum=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readEnum",jspb.BinaryReader.prototype.readEnum),jspb.BinaryReader.prototype.readString=function(){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var e=this.decoder_.readUnsignedVarint32();return this.decoder_.readString(e)},goog.exportProperty(jspb.BinaryReader.prototype,"readString",jspb.BinaryReader.prototype.readString),jspb.BinaryReader.prototype.readBytes=function(){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var e=this.decoder_.readUnsignedVarint32();return this.decoder_.readBytes(e)},goog.exportProperty(jspb.BinaryReader.prototype,"readBytes",jspb.BinaryReader.prototype.readBytes),jspb.BinaryReader.prototype.readVarintHash64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readVarintHash64()},jspb.BinaryReader.prototype.readSintHash64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarintHash64()},jspb.BinaryReader.prototype.readSplitVarint64=function(e){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(e)},jspb.BinaryReader.prototype.readSplitZigzagVarint64=function(e){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64((function(t,r){return jspb.utils.fromZigzag64(t,r,e)}))},jspb.BinaryReader.prototype.readFixedHash64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readFixedHash64()},jspb.BinaryReader.prototype.readSplitFixed64=function(e){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readSplitFixed64(e)},jspb.BinaryReader.prototype.readPackedField_=function(e){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var t=this.decoder_.readUnsignedVarint32();t=this.decoder_.getCursor()+t;for(var r=[];this.decoder_.getCursor()<t;)r.push(e.call(this.decoder_));return r},jspb.BinaryReader.prototype.readPackedInt32=function(){return this.readPackedField_(this.decoder_.readSignedVarint32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedInt32",jspb.BinaryReader.prototype.readPackedInt32),jspb.BinaryReader.prototype.readPackedInt32String=function(){return this.readPackedField_(this.decoder_.readSignedVarint32String)},jspb.BinaryReader.prototype.readPackedInt64=function(){return this.readPackedField_(this.decoder_.readSignedVarint64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedInt64",jspb.BinaryReader.prototype.readPackedInt64),jspb.BinaryReader.prototype.readPackedInt64String=function(){return this.readPackedField_(this.decoder_.readSignedVarint64String)},jspb.BinaryReader.prototype.readPackedUint32=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedUint32",jspb.BinaryReader.prototype.readPackedUint32),jspb.BinaryReader.prototype.readPackedUint32String=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint32String)},jspb.BinaryReader.prototype.readPackedUint64=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedUint64",jspb.BinaryReader.prototype.readPackedUint64),jspb.BinaryReader.prototype.readPackedUint64String=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint64String)},jspb.BinaryReader.prototype.readPackedSint32=function(){return this.readPackedField_(this.decoder_.readZigzagVarint32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedSint32",jspb.BinaryReader.prototype.readPackedSint32),jspb.BinaryReader.prototype.readPackedSint64=function(){return this.readPackedField_(this.decoder_.readZigzagVarint64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedSint64",jspb.BinaryReader.prototype.readPackedSint64),jspb.BinaryReader.prototype.readPackedSint64String=function(){return this.readPackedField_(this.decoder_.readZigzagVarint64String)},jspb.BinaryReader.prototype.readPackedFixed32=function(){return this.readPackedField_(this.decoder_.readUint32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedFixed32",jspb.BinaryReader.prototype.readPackedFixed32),jspb.BinaryReader.prototype.readPackedFixed64=function(){return this.readPackedField_(this.decoder_.readUint64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedFixed64",jspb.BinaryReader.prototype.readPackedFixed64),jspb.BinaryReader.prototype.readPackedFixed64String=function(){return this.readPackedField_(this.decoder_.readUint64String)},jspb.BinaryReader.prototype.readPackedSfixed32=function(){return this.readPackedField_(this.decoder_.readInt32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedSfixed32",jspb.BinaryReader.prototype.readPackedSfixed32),jspb.BinaryReader.prototype.readPackedSfixed64=function(){return this.readPackedField_(this.decoder_.readInt64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedSfixed64",jspb.BinaryReader.prototype.readPackedSfixed64),jspb.BinaryReader.prototype.readPackedSfixed64String=function(){return this.readPackedField_(this.decoder_.readInt64String)},jspb.BinaryReader.prototype.readPackedFloat=function(){return this.readPackedField_(this.decoder_.readFloat)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedFloat",jspb.BinaryReader.prototype.readPackedFloat),jspb.BinaryReader.prototype.readPackedDouble=function(){return this.readPackedField_(this.decoder_.readDouble)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedDouble",jspb.BinaryReader.prototype.readPackedDouble),jspb.BinaryReader.prototype.readPackedBool=function(){return this.readPackedField_(this.decoder_.readBool)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedBool",jspb.BinaryReader.prototype.readPackedBool),jspb.BinaryReader.prototype.readPackedEnum=function(){return this.readPackedField_(this.decoder_.readEnum)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedEnum",jspb.BinaryReader.prototype.readPackedEnum),jspb.BinaryReader.prototype.readPackedVarintHash64=function(){return this.readPackedField_(this.decoder_.readVarintHash64)},jspb.BinaryReader.prototype.readPackedFixedHash64=function(){return this.readPackedField_(this.decoder_.readFixedHash64)},jspb.BinaryEncoder=function(){this.buffer_=[]},jspb.BinaryEncoder.prototype.length=function(){return this.buffer_.length},jspb.BinaryEncoder.prototype.end=function(){var e=this.buffer_;return this.buffer_=[],e},jspb.BinaryEncoder.prototype.writeSplitVarint64=function(e,t){for(jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(t==Math.floor(t)),jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),jspb.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32);0<t||127<e;)this.buffer_.push(127&e|128),e=(e>>>7|t<<25)>>>0,t>>>=7;this.buffer_.push(e)},jspb.BinaryEncoder.prototype.writeSplitFixed64=function(e,t){jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(t==Math.floor(t)),jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),jspb.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),this.writeUint32(e),this.writeUint32(t)},jspb.BinaryEncoder.prototype.writeUnsignedVarint32=function(e){for(jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32);127<e;)this.buffer_.push(127&e|128),e>>>=7;this.buffer_.push(e)},jspb.BinaryEncoder.prototype.writeSignedVarint32=function(e){if(jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),0<=e)this.writeUnsignedVarint32(e);else{for(var t=0;9>t;t++)this.buffer_.push(127&e|128),e>>=7;this.buffer_.push(1)}},jspb.BinaryEncoder.prototype.writeUnsignedVarint64=function(e){jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_64),jspb.utils.splitInt64(e),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeSignedVarint64=function(e){jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_63&&e<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitInt64(e),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeZigzagVarint32=function(e){jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeUnsignedVarint32((e<<1^e>>31)>>>0)},jspb.BinaryEncoder.prototype.writeZigzagVarint64=function(e){jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_63&&e<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitZigzag64(e),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeZigzagVarint64String=function(e){this.writeZigzagVarintHash64(jspb.utils.decimalStringToHash64(e))},jspb.BinaryEncoder.prototype.writeZigzagVarintHash64=function(e){var t=this;jspb.utils.splitHash64(e),jspb.utils.toZigzag64(jspb.utils.split64Low,jspb.utils.split64High,(function(e,r){t.writeSplitVarint64(e>>>0,r>>>0)}))},jspb.BinaryEncoder.prototype.writeUint8=function(e){jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(0<=e&&256>e),this.buffer_.push(e>>>0&255)},jspb.BinaryEncoder.prototype.writeUint16=function(e){jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(0<=e&&65536>e),this.buffer_.push(e>>>0&255),this.buffer_.push(e>>>8&255)},jspb.BinaryEncoder.prototype.writeUint32=function(e){jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),this.buffer_.push(e>>>0&255),this.buffer_.push(e>>>8&255),this.buffer_.push(e>>>16&255),this.buffer_.push(e>>>24&255)},jspb.BinaryEncoder.prototype.writeUint64=function(e){jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_64),jspb.utils.splitUint64(e),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeInt8=function(e){jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(-128<=e&&128>e),this.buffer_.push(e>>>0&255)},jspb.BinaryEncoder.prototype.writeInt16=function(e){jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(-32768<=e&&32768>e),this.buffer_.push(e>>>0&255),this.buffer_.push(e>>>8&255)},jspb.BinaryEncoder.prototype.writeInt32=function(e){jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.buffer_.push(e>>>0&255),this.buffer_.push(e>>>8&255),this.buffer_.push(e>>>16&255),this.buffer_.push(e>>>24&255)},jspb.BinaryEncoder.prototype.writeInt64=function(e){jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_63&&e<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitInt64(e),this.writeSplitFixed64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeInt64String=function(e){jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(+e>=-jspb.BinaryConstants.TWO_TO_63&&+e<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(e)),this.writeSplitFixed64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeFloat=function(e){jspb.asserts.assert(1/0===e||-1/0===e||isNaN(e)||e>=-jspb.BinaryConstants.FLOAT32_MAX&&e<=jspb.BinaryConstants.FLOAT32_MAX),jspb.utils.splitFloat32(e),this.writeUint32(jspb.utils.split64Low)},jspb.BinaryEncoder.prototype.writeDouble=function(e){jspb.asserts.assert(1/0===e||-1/0===e||isNaN(e)||e>=-jspb.BinaryConstants.FLOAT64_MAX&&e<=jspb.BinaryConstants.FLOAT64_MAX),jspb.utils.splitFloat64(e),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeBool=function(e){jspb.asserts.assert("boolean"==typeof e||"number"==typeof e),this.buffer_.push(e?1:0)},jspb.BinaryEncoder.prototype.writeEnum=function(e){jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32(e)},jspb.BinaryEncoder.prototype.writeBytes=function(e){this.buffer_.push.apply(this.buffer_,e)},jspb.BinaryEncoder.prototype.writeVarintHash64=function(e){jspb.utils.splitHash64(e),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeFixedHash64=function(e){jspb.utils.splitHash64(e),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeString=function(e){var t=this.buffer_.length;jspb.asserts.assertString(e);for(var r=0;r<e.length;r++){var o=e.charCodeAt(r);if(128>o)this.buffer_.push(o);else if(2048>o)this.buffer_.push(o>>6|192),this.buffer_.push(63&o|128);else if(65536>o)if(55296<=o&&56319>=o&&r+1<e.length){var i=e.charCodeAt(r+1);56320<=i&&57343>=i&&(o=1024*(o-55296)+i-56320+65536,this.buffer_.push(o>>18|240),this.buffer_.push(o>>12&63|128),this.buffer_.push(o>>6&63|128),this.buffer_.push(63&o|128),r++)}else this.buffer_.push(o>>12|224),this.buffer_.push(o>>6&63|128),this.buffer_.push(63&o|128)}return this.buffer_.length-t},jspb.arith={},jspb.arith.UInt64=function(e,t){this.lo=e,this.hi=t},jspb.arith.UInt64.prototype.cmp=function(e){return this.hi<e.hi||this.hi==e.hi&&this.lo<e.lo?-1:this.hi==e.hi&&this.lo==e.lo?0:1},jspb.arith.UInt64.prototype.rightShift=function(){return new jspb.arith.UInt64((this.lo>>>1|(1&this.hi)<<31)>>>0,this.hi>>>1>>>0)},jspb.arith.UInt64.prototype.leftShift=function(){return new jspb.arith.UInt64(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},jspb.arith.UInt64.prototype.msb=function(){return!!(2147483648&this.hi)},jspb.arith.UInt64.prototype.lsb=function(){return!!(1&this.lo)},jspb.arith.UInt64.prototype.zero=function(){return 0==this.lo&&0==this.hi},jspb.arith.UInt64.prototype.add=function(e){return new jspb.arith.UInt64((this.lo+e.lo&4294967295)>>>0>>>0,((this.hi+e.hi&4294967295)>>>0)+(4294967296<=this.lo+e.lo?1:0)>>>0)},jspb.arith.UInt64.prototype.sub=function(e){return new jspb.arith.UInt64((this.lo-e.lo&4294967295)>>>0>>>0,((this.hi-e.hi&4294967295)>>>0)-(0>this.lo-e.lo?1:0)>>>0)},jspb.arith.UInt64.mul32x32=function(e,t){var r=65535&e,o=65535&t,i=t>>>16;for(t=r*o+65536*(r*i&65535)+65536*((e>>>=16)*o&65535),r=e*i+(r*i>>>16)+(e*o>>>16);4294967296<=t;)t-=4294967296,r+=1;return new jspb.arith.UInt64(t>>>0,r>>>0)},jspb.arith.UInt64.prototype.mul=function(e){var t=jspb.arith.UInt64.mul32x32(this.lo,e);return(e=jspb.arith.UInt64.mul32x32(this.hi,e)).hi=e.lo,e.lo=0,t.add(e)},jspb.arith.UInt64.prototype.div=function(e){if(0==e)return[];var t=new jspb.arith.UInt64(0,0),r=new jspb.arith.UInt64(this.lo,this.hi);e=new jspb.arith.UInt64(e,0);for(var o=new jspb.arith.UInt64(1,0);!e.msb();)e=e.leftShift(),o=o.leftShift();for(;!o.zero();)0>=e.cmp(r)&&(t=t.add(o),r=r.sub(e)),e=e.rightShift(),o=o.rightShift();return[t,r]},jspb.arith.UInt64.prototype.toString=function(){for(var e="",t=this;!t.zero();){var r=(t=t.div(10))[0];e=t[1].lo+e,t=r}return""==e&&(e="0"),e},jspb.arith.UInt64.fromString=function(e){for(var t=new jspb.arith.UInt64(0,0),r=new jspb.arith.UInt64(0,0),o=0;o<e.length;o++){if("0">e[o]||"9"<e[o])return null;var i=parseInt(e[o],10);r.lo=i,t=t.mul(10).add(r)}return t},jspb.arith.UInt64.prototype.clone=function(){return new jspb.arith.UInt64(this.lo,this.hi)},jspb.arith.Int64=function(e,t){this.lo=e,this.hi=t},jspb.arith.Int64.prototype.add=function(e){return new jspb.arith.Int64((this.lo+e.lo&4294967295)>>>0>>>0,((this.hi+e.hi&4294967295)>>>0)+(4294967296<=this.lo+e.lo?1:0)>>>0)},jspb.arith.Int64.prototype.sub=function(e){return new jspb.arith.Int64((this.lo-e.lo&4294967295)>>>0>>>0,((this.hi-e.hi&4294967295)>>>0)-(0>this.lo-e.lo?1:0)>>>0)},jspb.arith.Int64.prototype.clone=function(){return new jspb.arith.Int64(this.lo,this.hi)},jspb.arith.Int64.prototype.toString=function(){var e=0!=(2147483648&this.hi),t=new jspb.arith.UInt64(this.lo,this.hi);return e&&(t=new jspb.arith.UInt64(0,0).sub(t)),(e?"-":"")+t.toString()},jspb.arith.Int64.fromString=function(e){var t=0<e.length&&"-"==e[0];return t&&(e=e.substring(1)),null===(e=jspb.arith.UInt64.fromString(e))?null:(t&&(e=new jspb.arith.UInt64(0,0).sub(e)),new jspb.arith.Int64(e.lo,e.hi))},jspb.BinaryWriter=function(){this.blocks_=[],this.totalLength_=0,this.encoder_=new jspb.BinaryEncoder,this.bookmarks_=[]},jspb.BinaryWriter.prototype.appendUint8Array_=function(e){var t=this.encoder_.end();this.blocks_.push(t),this.blocks_.push(e),this.totalLength_+=t.length+e.length},jspb.BinaryWriter.prototype.beginDelimited_=function(e){return this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),e=this.encoder_.end(),this.blocks_.push(e),this.totalLength_+=e.length,e.push(this.totalLength_),e},jspb.BinaryWriter.prototype.endDelimited_=function(e){var t=e.pop();for(t=this.totalLength_+this.encoder_.length()-t,jspb.asserts.assert(0<=t);127<t;)e.push(127&t|128),t>>>=7,this.totalLength_++;e.push(t),this.totalLength_++},jspb.BinaryWriter.prototype.writeSerializedMessage=function(e,t,r){this.appendUint8Array_(e.subarray(t,r))},jspb.BinaryWriter.prototype.maybeWriteSerializedMessage=function(e,t,r){null!=e&&null!=t&&null!=r&&this.writeSerializedMessage(e,t,r)},jspb.BinaryWriter.prototype.reset=function(){this.blocks_=[],this.encoder_.end(),this.totalLength_=0,this.bookmarks_=[]},jspb.BinaryWriter.prototype.getResultBuffer=function(){jspb.asserts.assert(0==this.bookmarks_.length);for(var e=new Uint8Array(this.totalLength_+this.encoder_.length()),t=this.blocks_,r=t.length,o=0,i=0;i<r;i++){var n=t[i];e.set(n,o),o+=n.length}return t=this.encoder_.end(),e.set(t,o),o+=t.length,jspb.asserts.assert(o==e.length),this.blocks_=[e],e},goog.exportProperty(jspb.BinaryWriter.prototype,"getResultBuffer",jspb.BinaryWriter.prototype.getResultBuffer),jspb.BinaryWriter.prototype.getResultBase64String=function(e){return goog.crypt.base64.encodeByteArray(this.getResultBuffer(),e)},jspb.BinaryWriter.prototype.beginSubMessage=function(e){this.bookmarks_.push(this.beginDelimited_(e))},jspb.BinaryWriter.prototype.endSubMessage=function(){jspb.asserts.assert(0<=this.bookmarks_.length),this.endDelimited_(this.bookmarks_.pop())},jspb.BinaryWriter.prototype.writeFieldHeader_=function(e,t){jspb.asserts.assert(1<=e&&e==Math.floor(e)),this.encoder_.writeUnsignedVarint32(8*e+t)},jspb.BinaryWriter.prototype.writeAny=function(e,t,r){var o=jspb.BinaryConstants.FieldType;switch(e){case o.DOUBLE:this.writeDouble(t,r);break;case o.FLOAT:this.writeFloat(t,r);break;case o.INT64:this.writeInt64(t,r);break;case o.UINT64:this.writeUint64(t,r);break;case o.INT32:this.writeInt32(t,r);break;case o.FIXED64:this.writeFixed64(t,r);break;case o.FIXED32:this.writeFixed32(t,r);break;case o.BOOL:this.writeBool(t,r);break;case o.STRING:this.writeString(t,r);break;case o.GROUP:jspb.asserts.fail("Group field type not supported in writeAny()");break;case o.MESSAGE:jspb.asserts.fail("Message field type not supported in writeAny()");break;case o.BYTES:this.writeBytes(t,r);break;case o.UINT32:this.writeUint32(t,r);break;case o.ENUM:this.writeEnum(t,r);break;case o.SFIXED32:this.writeSfixed32(t,r);break;case o.SFIXED64:this.writeSfixed64(t,r);break;case o.SINT32:this.writeSint32(t,r);break;case o.SINT64:this.writeSint64(t,r);break;case o.FHASH64:this.writeFixedHash64(t,r);break;case o.VHASH64:this.writeVarintHash64(t,r);break;default:jspb.asserts.fail("Invalid field type in writeAny()")}},jspb.BinaryWriter.prototype.writeUnsignedVarint32_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint32(t))},jspb.BinaryWriter.prototype.writeSignedVarint32_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(t))},jspb.BinaryWriter.prototype.writeUnsignedVarint64_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint64(t))},jspb.BinaryWriter.prototype.writeSignedVarint64_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint64(t))},jspb.BinaryWriter.prototype.writeZigzagVarint32_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint32(t))},jspb.BinaryWriter.prototype.writeZigzagVarint64_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64(t))},jspb.BinaryWriter.prototype.writeZigzagVarint64String_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64String(t))},jspb.BinaryWriter.prototype.writeZigzagVarintHash64_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarintHash64(t))},jspb.BinaryWriter.prototype.writeInt32=function(e,t){null!=t&&(jspb.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32_(e,t))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeInt32",jspb.BinaryWriter.prototype.writeInt32),jspb.BinaryWriter.prototype.writeInt32String=function(e,t){null!=t&&(t=parseInt(t,10),jspb.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32_(e,t))},jspb.BinaryWriter.prototype.writeInt64=function(e,t){null!=t&&(jspb.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_63&&t<jspb.BinaryConstants.TWO_TO_63),this.writeSignedVarint64_(e,t))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeInt64",jspb.BinaryWriter.prototype.writeInt64),jspb.BinaryWriter.prototype.writeInt64String=function(e,t){null!=t&&(t=jspb.arith.Int64.fromString(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(t.lo,t.hi))},jspb.BinaryWriter.prototype.writeUint32=function(e,t){null!=t&&(jspb.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),this.writeUnsignedVarint32_(e,t))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeUint32",jspb.BinaryWriter.prototype.writeUint32),jspb.BinaryWriter.prototype.writeUint32String=function(e,t){null!=t&&(t=parseInt(t,10),jspb.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),this.writeUnsignedVarint32_(e,t))},jspb.BinaryWriter.prototype.writeUint64=function(e,t){null!=t&&(jspb.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_64),this.writeUnsignedVarint64_(e,t))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeUint64",jspb.BinaryWriter.prototype.writeUint64),jspb.BinaryWriter.prototype.writeUint64String=function(e,t){null!=t&&(t=jspb.arith.UInt64.fromString(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(t.lo,t.hi))},jspb.BinaryWriter.prototype.writeSint32=function(e,t){null!=t&&(jspb.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeZigzagVarint32_(e,t))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeSint32",jspb.BinaryWriter.prototype.writeSint32),jspb.BinaryWriter.prototype.writeSint64=function(e,t){null!=t&&(jspb.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_63&&t<jspb.BinaryConstants.TWO_TO_63),this.writeZigzagVarint64_(e,t))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeSint64",jspb.BinaryWriter.prototype.writeSint64),jspb.BinaryWriter.prototype.writeSintHash64=function(e,t){null!=t&&this.writeZigzagVarintHash64_(e,t)},jspb.BinaryWriter.prototype.writeSint64String=function(e,t){null!=t&&this.writeZigzagVarint64String_(e,t)},jspb.BinaryWriter.prototype.writeFixed32=function(e,t){null!=t&&(jspb.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeUint32(t))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeFixed32",jspb.BinaryWriter.prototype.writeFixed32),jspb.BinaryWriter.prototype.writeFixed64=function(e,t){null!=t&&(jspb.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_64),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeUint64(t))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeFixed64",jspb.BinaryWriter.prototype.writeFixed64),jspb.BinaryWriter.prototype.writeFixed64String=function(e,t){null!=t&&(t=jspb.arith.UInt64.fromString(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(t.lo,t.hi))},jspb.BinaryWriter.prototype.writeSfixed32=function(e,t){null!=t&&(jspb.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeInt32(t))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeSfixed32",jspb.BinaryWriter.prototype.writeSfixed32),jspb.BinaryWriter.prototype.writeSfixed64=function(e,t){null!=t&&(jspb.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_63&&t<jspb.BinaryConstants.TWO_TO_63),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeInt64(t))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeSfixed64",jspb.BinaryWriter.prototype.writeSfixed64),jspb.BinaryWriter.prototype.writeSfixed64String=function(e,t){null!=t&&(t=jspb.arith.Int64.fromString(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(t.lo,t.hi))},jspb.BinaryWriter.prototype.writeFloat=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeFloat(t))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeFloat",jspb.BinaryWriter.prototype.writeFloat),jspb.BinaryWriter.prototype.writeDouble=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeDouble(t))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeDouble",jspb.BinaryWriter.prototype.writeDouble),jspb.BinaryWriter.prototype.writeBool=function(e,t){null!=t&&(jspb.asserts.assert("boolean"==typeof t||"number"==typeof t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeBool(t))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeBool",jspb.BinaryWriter.prototype.writeBool),jspb.BinaryWriter.prototype.writeEnum=function(e,t){null!=t&&(jspb.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(t))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeEnum",jspb.BinaryWriter.prototype.writeEnum),jspb.BinaryWriter.prototype.writeString=function(e,t){null!=t&&(e=this.beginDelimited_(e),this.encoder_.writeString(t),this.endDelimited_(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeString",jspb.BinaryWriter.prototype.writeString),jspb.BinaryWriter.prototype.writeBytes=function(e,t){null!=t&&(t=jspb.utils.byteSourceToUint8Array(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(t.length),this.appendUint8Array_(t))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeBytes",jspb.BinaryWriter.prototype.writeBytes),jspb.BinaryWriter.prototype.writeMessage=function(e,t,r){null!=t&&(e=this.beginDelimited_(e),r(t,this),this.endDelimited_(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeMessage",jspb.BinaryWriter.prototype.writeMessage),jspb.BinaryWriter.prototype.writeMessageSet=function(e,t,r){null!=t&&(this.writeFieldHeader_(1,jspb.BinaryConstants.WireType.START_GROUP),this.writeFieldHeader_(2,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(e),e=this.beginDelimited_(3),r(t,this),this.endDelimited_(e),this.writeFieldHeader_(1,jspb.BinaryConstants.WireType.END_GROUP))},jspb.BinaryWriter.prototype.writeGroup=function(e,t,r){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.START_GROUP),r(t,this),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.END_GROUP))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeGroup",jspb.BinaryWriter.prototype.writeGroup),jspb.BinaryWriter.prototype.writeFixedHash64=function(e,t){null!=t&&(jspb.asserts.assert(8==t.length),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeFixedHash64(t))},jspb.BinaryWriter.prototype.writeVarintHash64=function(e,t){null!=t&&(jspb.asserts.assert(8==t.length),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeVarintHash64(t))},jspb.BinaryWriter.prototype.writeSplitFixed64=function(e,t,r){this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(t,r)},jspb.BinaryWriter.prototype.writeSplitVarint64=function(e,t,r){this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(t,r)},jspb.BinaryWriter.prototype.writeSplitZigzagVarint64=function(e,t,r){this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT);var o=this.encoder_;jspb.utils.toZigzag64(t,r,(function(e,t){o.writeSplitVarint64(e>>>0,t>>>0)}))},jspb.BinaryWriter.prototype.writeRepeatedInt32=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeSignedVarint32_(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedInt32",jspb.BinaryWriter.prototype.writeRepeatedInt32),jspb.BinaryWriter.prototype.writeRepeatedInt32String=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeInt32String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedInt64=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeSignedVarint64_(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedInt64",jspb.BinaryWriter.prototype.writeRepeatedInt64),jspb.BinaryWriter.prototype.writeRepeatedSplitFixed64=function(e,t,r,o){if(null!=t)for(var i=0;i<t.length;i++)this.writeSplitFixed64(e,r(t[i]),o(t[i]))},jspb.BinaryWriter.prototype.writeRepeatedSplitVarint64=function(e,t,r,o){if(null!=t)for(var i=0;i<t.length;i++)this.writeSplitVarint64(e,r(t[i]),o(t[i]))},jspb.BinaryWriter.prototype.writeRepeatedSplitZigzagVarint64=function(e,t,r,o){if(null!=t)for(var i=0;i<t.length;i++)this.writeSplitZigzagVarint64(e,r(t[i]),o(t[i]))},jspb.BinaryWriter.prototype.writeRepeatedInt64String=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeInt64String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedUint32=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeUnsignedVarint32_(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedUint32",jspb.BinaryWriter.prototype.writeRepeatedUint32),jspb.BinaryWriter.prototype.writeRepeatedUint32String=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeUint32String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedUint64=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeUnsignedVarint64_(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedUint64",jspb.BinaryWriter.prototype.writeRepeatedUint64),jspb.BinaryWriter.prototype.writeRepeatedUint64String=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeUint64String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSint32=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeZigzagVarint32_(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedSint32",jspb.BinaryWriter.prototype.writeRepeatedSint32),jspb.BinaryWriter.prototype.writeRepeatedSint64=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeZigzagVarint64_(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedSint64",jspb.BinaryWriter.prototype.writeRepeatedSint64),jspb.BinaryWriter.prototype.writeRepeatedSint64String=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeZigzagVarint64String_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSintHash64=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeZigzagVarintHash64_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedFixed32=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeFixed32(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedFixed32",jspb.BinaryWriter.prototype.writeRepeatedFixed32),jspb.BinaryWriter.prototype.writeRepeatedFixed64=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeFixed64(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedFixed64",jspb.BinaryWriter.prototype.writeRepeatedFixed64),jspb.BinaryWriter.prototype.writeRepeatedFixed64String=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeFixed64String(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedFixed64String",jspb.BinaryWriter.prototype.writeRepeatedFixed64String),jspb.BinaryWriter.prototype.writeRepeatedSfixed32=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeSfixed32(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedSfixed32",jspb.BinaryWriter.prototype.writeRepeatedSfixed32),jspb.BinaryWriter.prototype.writeRepeatedSfixed64=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeSfixed64(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedSfixed64",jspb.BinaryWriter.prototype.writeRepeatedSfixed64),jspb.BinaryWriter.prototype.writeRepeatedSfixed64String=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeSfixed64String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedFloat=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeFloat(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedFloat",jspb.BinaryWriter.prototype.writeRepeatedFloat),jspb.BinaryWriter.prototype.writeRepeatedDouble=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeDouble(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedDouble",jspb.BinaryWriter.prototype.writeRepeatedDouble),jspb.BinaryWriter.prototype.writeRepeatedBool=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeBool(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedBool",jspb.BinaryWriter.prototype.writeRepeatedBool),jspb.BinaryWriter.prototype.writeRepeatedEnum=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeEnum(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedEnum",jspb.BinaryWriter.prototype.writeRepeatedEnum),jspb.BinaryWriter.prototype.writeRepeatedString=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeString(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedString",jspb.BinaryWriter.prototype.writeRepeatedString),jspb.BinaryWriter.prototype.writeRepeatedBytes=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeBytes(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedBytes",jspb.BinaryWriter.prototype.writeRepeatedBytes),jspb.BinaryWriter.prototype.writeRepeatedMessage=function(e,t,r){if(null!=t)for(var o=0;o<t.length;o++){var i=this.beginDelimited_(e);r(t[o],this),this.endDelimited_(i)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedMessage",jspb.BinaryWriter.prototype.writeRepeatedMessage),jspb.BinaryWriter.prototype.writeRepeatedGroup=function(e,t,r){if(null!=t)for(var o=0;o<t.length;o++)this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.START_GROUP),r(t[o],this),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.END_GROUP)},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedGroup",jspb.BinaryWriter.prototype.writeRepeatedGroup),jspb.BinaryWriter.prototype.writeRepeatedFixedHash64=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeFixedHash64(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedVarintHash64=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeVarintHash64(e,t[r])},jspb.BinaryWriter.prototype.writePackedInt32=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeSignedVarint32(t[r]);this.endDelimited_(e)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedInt32",jspb.BinaryWriter.prototype.writePackedInt32),jspb.BinaryWriter.prototype.writePackedInt32String=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeSignedVarint32(parseInt(t[r],10));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedInt64=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeSignedVarint64(t[r]);this.endDelimited_(e)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedInt64",jspb.BinaryWriter.prototype.writePackedInt64),jspb.BinaryWriter.prototype.writePackedSplitFixed64=function(e,t,r,o){if(null!=t){e=this.beginDelimited_(e);for(var i=0;i<t.length;i++)this.encoder_.writeSplitFixed64(r(t[i]),o(t[i]));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSplitVarint64=function(e,t,r,o){if(null!=t){e=this.beginDelimited_(e);for(var i=0;i<t.length;i++)this.encoder_.writeSplitVarint64(r(t[i]),o(t[i]));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSplitZigzagVarint64=function(e,t,r,o){if(null!=t){e=this.beginDelimited_(e);for(var i=this.encoder_,n=0;n<t.length;n++)jspb.utils.toZigzag64(r(t[n]),o(t[n]),(function(e,t){i.writeSplitVarint64(e>>>0,t>>>0)}));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedInt64String=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++){var o=jspb.arith.Int64.fromString(t[r]);this.encoder_.writeSplitVarint64(o.lo,o.hi)}this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedUint32=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeUnsignedVarint32(t[r]);this.endDelimited_(e)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedUint32",jspb.BinaryWriter.prototype.writePackedUint32),jspb.BinaryWriter.prototype.writePackedUint32String=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeUnsignedVarint32(parseInt(t[r],10));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedUint64=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeUnsignedVarint64(t[r]);this.endDelimited_(e)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedUint64",jspb.BinaryWriter.prototype.writePackedUint64),jspb.BinaryWriter.prototype.writePackedUint64String=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++){var o=jspb.arith.UInt64.fromString(t[r]);this.encoder_.writeSplitVarint64(o.lo,o.hi)}this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSint32=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeZigzagVarint32(t[r]);this.endDelimited_(e)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedSint32",jspb.BinaryWriter.prototype.writePackedSint32),jspb.BinaryWriter.prototype.writePackedSint64=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeZigzagVarint64(t[r]);this.endDelimited_(e)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedSint64",jspb.BinaryWriter.prototype.writePackedSint64),jspb.BinaryWriter.prototype.writePackedSint64String=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeZigzagVarintHash64(jspb.utils.decimalStringToHash64(t[r]));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSintHash64=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeZigzagVarintHash64(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedFixed32=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*t.length),e=0;e<t.length;e++)this.encoder_.writeUint32(t[e])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedFixed32",jspb.BinaryWriter.prototype.writePackedFixed32),jspb.BinaryWriter.prototype.writePackedFixed64=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeUint64(t[e])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedFixed64",jspb.BinaryWriter.prototype.writePackedFixed64),jspb.BinaryWriter.prototype.writePackedFixed64String=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++){var r=jspb.arith.UInt64.fromString(t[e]);this.encoder_.writeSplitFixed64(r.lo,r.hi)}},jspb.BinaryWriter.prototype.writePackedSfixed32=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*t.length),e=0;e<t.length;e++)this.encoder_.writeInt32(t[e])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedSfixed32",jspb.BinaryWriter.prototype.writePackedSfixed32),jspb.BinaryWriter.prototype.writePackedSfixed64=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeInt64(t[e])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedSfixed64",jspb.BinaryWriter.prototype.writePackedSfixed64),jspb.BinaryWriter.prototype.writePackedSfixed64String=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeInt64String(t[e])},jspb.BinaryWriter.prototype.writePackedFloat=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*t.length),e=0;e<t.length;e++)this.encoder_.writeFloat(t[e])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedFloat",jspb.BinaryWriter.prototype.writePackedFloat),jspb.BinaryWriter.prototype.writePackedDouble=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeDouble(t[e])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedDouble",jspb.BinaryWriter.prototype.writePackedDouble),jspb.BinaryWriter.prototype.writePackedBool=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(t.length),e=0;e<t.length;e++)this.encoder_.writeBool(t[e])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedBool",jspb.BinaryWriter.prototype.writePackedBool),jspb.BinaryWriter.prototype.writePackedEnum=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeEnum(t[r]);this.endDelimited_(e)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedEnum",jspb.BinaryWriter.prototype.writePackedEnum),jspb.BinaryWriter.prototype.writePackedFixedHash64=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeFixedHash64(t[e])},jspb.BinaryWriter.prototype.writePackedVarintHash64=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeVarintHash64(t[r]);this.endDelimited_(e)}},jspb.Map=function(e,t){this.arr_=e,this.valueCtor_=t,this.map_={},this.arrClean=!0,0<this.arr_.length&&this.loadFromArray_()},goog.exportSymbol("jspb.Map",jspb.Map),jspb.Map.prototype.loadFromArray_=function(){for(var e=0;e<this.arr_.length;e++){var t=this.arr_[e],r=t[0];this.map_[r.toString()]=new jspb.Map.Entry_(r,t[1])}this.arrClean=!0},jspb.Map.prototype.toArray=function(){if(this.arrClean){if(this.valueCtor_){var e,t=this.map_;for(e in t)if(Object.prototype.hasOwnProperty.call(t,e)){var r=t[e].valueWrapper;r&&r.toArray()}}}else{for(this.arr_.length=0,(t=this.stringKeys_()).sort(),e=0;e<t.length;e++){var o=this.map_[t[e]];(r=o.valueWrapper)&&r.toArray(),this.arr_.push([o.key,o.value])}this.arrClean=!0}return this.arr_},goog.exportProperty(jspb.Map.prototype,"toArray",jspb.Map.prototype.toArray),jspb.Map.prototype.toObject=function(e,t){for(var r=this.toArray(),o=[],i=0;i<r.length;i++){var n=this.map_[r[i][0].toString()];this.wrapEntry_(n);var s=n.valueWrapper;s?(jspb.asserts.assert(t),o.push([n.key,t(e,s)])):o.push([n.key,n.value])}return o},goog.exportProperty(jspb.Map.prototype,"toObject",jspb.Map.prototype.toObject),jspb.Map.fromObject=function(e,t,r){t=new jspb.Map([],t);for(var o=0;o<e.length;o++){var i=e[o][0],n=r(e[o][1]);t.set(i,n)}return t},goog.exportProperty(jspb.Map,"fromObject",jspb.Map.fromObject),jspb.Map.ArrayIteratorIterable_=function(e){this.idx_=0,this.arr_=e},jspb.Map.ArrayIteratorIterable_.prototype.next=function(){return this.idx_<this.arr_.length?{done:!1,value:this.arr_[this.idx_++]}:{done:!0,value:void 0}},"undefined"!=typeof Symbol&&(jspb.Map.ArrayIteratorIterable_.prototype[Symbol.iterator]=function(){return this}),jspb.Map.prototype.getLength=function(){return this.stringKeys_().length},goog.exportProperty(jspb.Map.prototype,"getLength",jspb.Map.prototype.getLength),jspb.Map.prototype.clear=function(){this.map_={},this.arrClean=!1},goog.exportProperty(jspb.Map.prototype,"clear",jspb.Map.prototype.clear),jspb.Map.prototype.del=function(e){e=e.toString();var t=this.map_.hasOwnProperty(e);return delete this.map_[e],this.arrClean=!1,t},goog.exportProperty(jspb.Map.prototype,"del",jspb.Map.prototype.del),jspb.Map.prototype.getEntryList=function(){var e=[],t=this.stringKeys_();t.sort();for(var r=0;r<t.length;r++){var o=this.map_[t[r]];e.push([o.key,o.value])}return e},goog.exportProperty(jspb.Map.prototype,"getEntryList",jspb.Map.prototype.getEntryList),jspb.Map.prototype.entries=function(){var e=[],t=this.stringKeys_();t.sort();for(var r=0;r<t.length;r++){var o=this.map_[t[r]];e.push([o.key,this.wrapEntry_(o)])}return new jspb.Map.ArrayIteratorIterable_(e)},goog.exportProperty(jspb.Map.prototype,"entries",jspb.Map.prototype.entries),jspb.Map.prototype.keys=function(){var e=[],t=this.stringKeys_();t.sort();for(var r=0;r<t.length;r++)e.push(this.map_[t[r]].key);return new jspb.Map.ArrayIteratorIterable_(e)},goog.exportProperty(jspb.Map.prototype,"keys",jspb.Map.prototype.keys),jspb.Map.prototype.values=function(){var e=[],t=this.stringKeys_();t.sort();for(var r=0;r<t.length;r++)e.push(this.wrapEntry_(this.map_[t[r]]));return new jspb.Map.ArrayIteratorIterable_(e)},goog.exportProperty(jspb.Map.prototype,"values",jspb.Map.prototype.values),jspb.Map.prototype.forEach=function(e,t){var r=this.stringKeys_();r.sort();for(var o=0;o<r.length;o++){var i=this.map_[r[o]];e.call(t,this.wrapEntry_(i),i.key,this)}},goog.exportProperty(jspb.Map.prototype,"forEach",jspb.Map.prototype.forEach),jspb.Map.prototype.set=function(e,t){var r=new jspb.Map.Entry_(e);return this.valueCtor_?(r.valueWrapper=t,r.value=t.toArray()):r.value=t,this.map_[e.toString()]=r,this.arrClean=!1,this},goog.exportProperty(jspb.Map.prototype,"set",jspb.Map.prototype.set),jspb.Map.prototype.wrapEntry_=function(e){return this.valueCtor_?(e.valueWrapper||(e.valueWrapper=new this.valueCtor_(e.value)),e.valueWrapper):e.value},jspb.Map.prototype.get=function(e){if(e=this.map_[e.toString()])return this.wrapEntry_(e)},goog.exportProperty(jspb.Map.prototype,"get",jspb.Map.prototype.get),jspb.Map.prototype.has=function(e){return e.toString()in this.map_},goog.exportProperty(jspb.Map.prototype,"has",jspb.Map.prototype.has),jspb.Map.prototype.serializeBinary=function(e,t,r,o,i){var n=this.stringKeys_();n.sort();for(var s=0;s<n.length;s++){var a=this.map_[n[s]];t.beginSubMessage(e),r.call(t,1,a.key),this.valueCtor_?o.call(t,2,this.wrapEntry_(a),i):o.call(t,2,a.value),t.endSubMessage()}},goog.exportProperty(jspb.Map.prototype,"serializeBinary",jspb.Map.prototype.serializeBinary),jspb.Map.deserializeBinary=function(e,t,r,o,i,n,s){for(;t.nextField()&&!t.isEndGroup();){var a=t.getFieldNumber();1==a?n=r.call(t):2==a&&(e.valueCtor_?(jspb.asserts.assert(i),s||(s=new e.valueCtor_),o.call(t,s,i)):s=o.call(t))}jspb.asserts.assert(null!=n),jspb.asserts.assert(null!=s),e.set(n,s)},goog.exportProperty(jspb.Map,"deserializeBinary",jspb.Map.deserializeBinary),jspb.Map.prototype.stringKeys_=function(){var e,t=this.map_,r=[];for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&r.push(e);return r},jspb.Map.Entry_=function(e,t){this.key=e,this.value=t,this.valueWrapper=void 0},jspb.ExtensionFieldInfo=function(e,t,r,o,i){this.fieldIndex=e,this.fieldName=t,this.ctor=r,this.toObjectFn=o,this.isRepeated=i},goog.exportSymbol("jspb.ExtensionFieldInfo",jspb.ExtensionFieldInfo),jspb.ExtensionFieldBinaryInfo=function(e,t,r,o,i,n){this.fieldInfo=e,this.binaryReaderFn=t,this.binaryWriterFn=r,this.binaryMessageSerializeFn=o,this.binaryMessageDeserializeFn=i,this.isPacked=n},goog.exportSymbol("jspb.ExtensionFieldBinaryInfo",jspb.ExtensionFieldBinaryInfo),jspb.ExtensionFieldInfo.prototype.isMessageType=function(){return!!this.ctor},goog.exportProperty(jspb.ExtensionFieldInfo.prototype,"isMessageType",jspb.ExtensionFieldInfo.prototype.isMessageType),jspb.Message=function(){},goog.exportSymbol("jspb.Message",jspb.Message),jspb.Message.GENERATE_TO_OBJECT=!0,goog.exportProperty(jspb.Message,"GENERATE_TO_OBJECT",jspb.Message.GENERATE_TO_OBJECT),jspb.Message.GENERATE_FROM_OBJECT=!goog.DISALLOW_TEST_ONLY_CODE,goog.exportProperty(jspb.Message,"GENERATE_FROM_OBJECT",jspb.Message.GENERATE_FROM_OBJECT),jspb.Message.GENERATE_TO_STRING=!0,jspb.Message.ASSUME_LOCAL_ARRAYS=!1,jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS=!0,jspb.Message.SUPPORTS_UINT8ARRAY_="function"==typeof Uint8Array,jspb.Message.prototype.getJsPbMessageId=function(){return this.messageId_},goog.exportProperty(jspb.Message.prototype,"getJsPbMessageId",jspb.Message.prototype.getJsPbMessageId),jspb.Message.getIndex_=function(e,t){return t+e.arrayIndexOffset_},jspb.Message.hiddenES6Property_=function(){},jspb.Message.getFieldNumber_=function(e,t){return t-e.arrayIndexOffset_},jspb.Message.initialize=function(e,t,r,o,i,n){if(e.wrappers_=null,t||(t=r?[r]:[]),e.messageId_=r?String(r):void 0,e.arrayIndexOffset_=0===r?-1:0,e.array=t,jspb.Message.initPivotAndExtensionObject_(e,o),e.convertedPrimitiveFields_={},jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS||(e.repeatedFields=i),i)for(t=0;t<i.length;t++)(r=i[t])<e.pivot_?(r=jspb.Message.getIndex_(e,r),e.array[r]=e.array[r]||jspb.Message.EMPTY_LIST_SENTINEL_):(jspb.Message.maybeInitEmptyExtensionObject_(e),e.extensionObject_[r]=e.extensionObject_[r]||jspb.Message.EMPTY_LIST_SENTINEL_);if(n&&n.length)for(t=0;t<n.length;t++)jspb.Message.computeOneofCase(e,n[t])},goog.exportProperty(jspb.Message,"initialize",jspb.Message.initialize),jspb.Message.EMPTY_LIST_SENTINEL_=goog.DEBUG&&Object.freeze?Object.freeze([]):[],jspb.Message.isArray_=function(e){return jspb.Message.ASSUME_LOCAL_ARRAYS?e instanceof Array:Array.isArray(e)},jspb.Message.isExtensionObject_=function(e){return!(null===e||"object"!=typeof e||jspb.Message.isArray_(e)||jspb.Message.SUPPORTS_UINT8ARRAY_&&e instanceof Uint8Array)},jspb.Message.initPivotAndExtensionObject_=function(e,t){var r=e.array.length,o=-1;if(r&&(o=r-1,r=e.array[o],jspb.Message.isExtensionObject_(r)))return e.pivot_=jspb.Message.getFieldNumber_(e,o),void(e.extensionObject_=r);-1<t?(e.pivot_=Math.max(t,jspb.Message.getFieldNumber_(e,o+1)),e.extensionObject_=null):e.pivot_=Number.MAX_VALUE},jspb.Message.maybeInitEmptyExtensionObject_=function(e){var t=jspb.Message.getIndex_(e,e.pivot_);e.array[t]||(e.extensionObject_=e.array[t]={})},jspb.Message.toObjectList=function(e,t,r){for(var o=[],i=0;i<e.length;i++)o[i]=t.call(e[i],r,e[i]);return o},goog.exportProperty(jspb.Message,"toObjectList",jspb.Message.toObjectList),jspb.Message.toObjectExtension=function(e,t,r,o,i){for(var n in r){var s=r[n],a=o.call(e,s);if(null!=a){for(var u in s.fieldName)if(s.fieldName.hasOwnProperty(u))break;t[u]=s.toObjectFn?s.isRepeated?jspb.Message.toObjectList(a,s.toObjectFn,i):s.toObjectFn(i,a):a}}},goog.exportProperty(jspb.Message,"toObjectExtension",jspb.Message.toObjectExtension),jspb.Message.serializeBinaryExtensions=function(e,t,r,o){for(var i in r){var n=r[i],s=n.fieldInfo;if(!n.binaryWriterFn)throw Error("Message extension present that was generated without binary serialization support");var a=o.call(e,s);if(null!=a)if(s.isMessageType()){if(!n.binaryMessageSerializeFn)throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");n.binaryWriterFn.call(t,s.fieldIndex,a,n.binaryMessageSerializeFn)}else n.binaryWriterFn.call(t,s.fieldIndex,a)}},goog.exportProperty(jspb.Message,"serializeBinaryExtensions",jspb.Message.serializeBinaryExtensions),jspb.Message.readBinaryExtension=function(e,t,r,o,i){var n=r[t.getFieldNumber()];if(n){if(r=n.fieldInfo,!n.binaryReaderFn)throw Error("Deserializing extension whose generated code does not support binary format");if(r.isMessageType()){var s=new r.ctor;n.binaryReaderFn.call(t,s,n.binaryMessageDeserializeFn)}else s=n.binaryReaderFn.call(t);r.isRepeated&&!n.isPacked?(t=o.call(e,r))?t.push(s):i.call(e,r,[s]):i.call(e,r,s)}else t.skipField()},goog.exportProperty(jspb.Message,"readBinaryExtension",jspb.Message.readBinaryExtension),jspb.Message.getField=function(e,t){if(t<e.pivot_){t=jspb.Message.getIndex_(e,t);var r=e.array[t];return r===jspb.Message.EMPTY_LIST_SENTINEL_?e.array[t]=[]:r}if(e.extensionObject_)return(r=e.extensionObject_[t])===jspb.Message.EMPTY_LIST_SENTINEL_?e.extensionObject_[t]=[]:r},goog.exportProperty(jspb.Message,"getField",jspb.Message.getField),jspb.Message.getRepeatedField=function(e,t){return jspb.Message.getField(e,t)},goog.exportProperty(jspb.Message,"getRepeatedField",jspb.Message.getRepeatedField),jspb.Message.getOptionalFloatingPointField=function(e,t){return null==(e=jspb.Message.getField(e,t))?e:+e},goog.exportProperty(jspb.Message,"getOptionalFloatingPointField",jspb.Message.getOptionalFloatingPointField),jspb.Message.getBooleanField=function(e,t){return null==(e=jspb.Message.getField(e,t))?e:!!e},goog.exportProperty(jspb.Message,"getBooleanField",jspb.Message.getBooleanField),jspb.Message.getRepeatedFloatingPointField=function(e,t){var r=jspb.Message.getRepeatedField(e,t);if(e.convertedPrimitiveFields_||(e.convertedPrimitiveFields_={}),!e.convertedPrimitiveFields_[t]){for(var o=0;o<r.length;o++)r[o]=+r[o];e.convertedPrimitiveFields_[t]=!0}return r},goog.exportProperty(jspb.Message,"getRepeatedFloatingPointField",jspb.Message.getRepeatedFloatingPointField),jspb.Message.getRepeatedBooleanField=function(e,t){var r=jspb.Message.getRepeatedField(e,t);if(e.convertedPrimitiveFields_||(e.convertedPrimitiveFields_={}),!e.convertedPrimitiveFields_[t]){for(var o=0;o<r.length;o++)r[o]=!!r[o];e.convertedPrimitiveFields_[t]=!0}return r},goog.exportProperty(jspb.Message,"getRepeatedBooleanField",jspb.Message.getRepeatedBooleanField),jspb.Message.bytesAsB64=function(e){return null==e||"string"==typeof e?e:jspb.Message.SUPPORTS_UINT8ARRAY_&&e instanceof Uint8Array?goog.crypt.base64.encodeByteArray(e):(jspb.asserts.fail("Cannot coerce to b64 string: "+goog.typeOf(e)),null)},goog.exportProperty(jspb.Message,"bytesAsB64",jspb.Message.bytesAsB64),jspb.Message.bytesAsU8=function(e){return null==e||e instanceof Uint8Array?e:"string"==typeof e?goog.crypt.base64.decodeStringToUint8Array(e):(jspb.asserts.fail("Cannot coerce to Uint8Array: "+goog.typeOf(e)),null)},goog.exportProperty(jspb.Message,"bytesAsU8",jspb.Message.bytesAsU8),jspb.Message.bytesListAsB64=function(e){return jspb.Message.assertConsistentTypes_(e),e.length&&"string"!=typeof e[0]?goog.array.map(e,jspb.Message.bytesAsB64):e},goog.exportProperty(jspb.Message,"bytesListAsB64",jspb.Message.bytesListAsB64),jspb.Message.bytesListAsU8=function(e){return jspb.Message.assertConsistentTypes_(e),!e.length||e[0]instanceof Uint8Array?e:goog.array.map(e,jspb.Message.bytesAsU8)},goog.exportProperty(jspb.Message,"bytesListAsU8",jspb.Message.bytesListAsU8),jspb.Message.assertConsistentTypes_=function(e){if(goog.DEBUG&&e&&1<e.length){var t=goog.typeOf(e[0]);goog.array.forEach(e,(function(e){goog.typeOf(e)!=t&&jspb.asserts.fail("Inconsistent type in JSPB repeated field array. Got "+goog.typeOf(e)+" expected "+t)}))}},jspb.Message.getFieldWithDefault=function(e,t,r){return null==(e=jspb.Message.getField(e,t))?r:e},goog.exportProperty(jspb.Message,"getFieldWithDefault",jspb.Message.getFieldWithDefault),jspb.Message.getBooleanFieldWithDefault=function(e,t,r){return null==(e=jspb.Message.getBooleanField(e,t))?r:e},goog.exportProperty(jspb.Message,"getBooleanFieldWithDefault",jspb.Message.getBooleanFieldWithDefault),jspb.Message.getFloatingPointFieldWithDefault=function(e,t,r){return null==(e=jspb.Message.getOptionalFloatingPointField(e,t))?r:e},goog.exportProperty(jspb.Message,"getFloatingPointFieldWithDefault",jspb.Message.getFloatingPointFieldWithDefault),jspb.Message.getFieldProto3=jspb.Message.getFieldWithDefault,goog.exportProperty(jspb.Message,"getFieldProto3",jspb.Message.getFieldProto3),jspb.Message.getMapField=function(e,t,r,o){if(e.wrappers_||(e.wrappers_={}),t in e.wrappers_)return e.wrappers_[t];var i=jspb.Message.getField(e,t);if(!i){if(r)return;i=[],jspb.Message.setField(e,t,i)}return e.wrappers_[t]=new jspb.Map(i,o)},goog.exportProperty(jspb.Message,"getMapField",jspb.Message.getMapField),jspb.Message.setField=function(e,t,r){return jspb.asserts.assertInstanceof(e,jspb.Message),t<e.pivot_?e.array[jspb.Message.getIndex_(e,t)]=r:(jspb.Message.maybeInitEmptyExtensionObject_(e),e.extensionObject_[t]=r),e},goog.exportProperty(jspb.Message,"setField",jspb.Message.setField),jspb.Message.setProto3IntField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,0)},goog.exportProperty(jspb.Message,"setProto3IntField",jspb.Message.setProto3IntField),jspb.Message.setProto3FloatField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,0)},goog.exportProperty(jspb.Message,"setProto3FloatField",jspb.Message.setProto3FloatField),jspb.Message.setProto3BooleanField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,!1)},goog.exportProperty(jspb.Message,"setProto3BooleanField",jspb.Message.setProto3BooleanField),jspb.Message.setProto3StringField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,"")},goog.exportProperty(jspb.Message,"setProto3StringField",jspb.Message.setProto3StringField),jspb.Message.setProto3BytesField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,"")},goog.exportProperty(jspb.Message,"setProto3BytesField",jspb.Message.setProto3BytesField),jspb.Message.setProto3EnumField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,0)},goog.exportProperty(jspb.Message,"setProto3EnumField",jspb.Message.setProto3EnumField),jspb.Message.setProto3StringIntField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,"0")},goog.exportProperty(jspb.Message,"setProto3StringIntField",jspb.Message.setProto3StringIntField),jspb.Message.setFieldIgnoringDefault_=function(e,t,r,o){return jspb.asserts.assertInstanceof(e,jspb.Message),r!==o?jspb.Message.setField(e,t,r):t<e.pivot_?e.array[jspb.Message.getIndex_(e,t)]=null:(jspb.Message.maybeInitEmptyExtensionObject_(e),delete e.extensionObject_[t]),e},jspb.Message.addToRepeatedField=function(e,t,r,o){return jspb.asserts.assertInstanceof(e,jspb.Message),t=jspb.Message.getRepeatedField(e,t),null!=o?t.splice(o,0,r):t.push(r),e},goog.exportProperty(jspb.Message,"addToRepeatedField",jspb.Message.addToRepeatedField),jspb.Message.setOneofField=function(e,t,r,o){return jspb.asserts.assertInstanceof(e,jspb.Message),(r=jspb.Message.computeOneofCase(e,r))&&r!==t&&void 0!==o&&(e.wrappers_&&r in e.wrappers_&&(e.wrappers_[r]=void 0),jspb.Message.setField(e,r,void 0)),jspb.Message.setField(e,t,o)},goog.exportProperty(jspb.Message,"setOneofField",jspb.Message.setOneofField),jspb.Message.computeOneofCase=function(e,t){for(var r,o,i=0;i<t.length;i++){var n=t[i],s=jspb.Message.getField(e,n);null!=s&&(r=n,o=s,jspb.Message.setField(e,n,void 0))}return r?(jspb.Message.setField(e,r,o),r):0},goog.exportProperty(jspb.Message,"computeOneofCase",jspb.Message.computeOneofCase),jspb.Message.getWrapperField=function(e,t,r,o){if(e.wrappers_||(e.wrappers_={}),!e.wrappers_[r]){var i=jspb.Message.getField(e,r);(o||i)&&(e.wrappers_[r]=new t(i))}return e.wrappers_[r]},goog.exportProperty(jspb.Message,"getWrapperField",jspb.Message.getWrapperField),jspb.Message.getRepeatedWrapperField=function(e,t,r){return jspb.Message.wrapRepeatedField_(e,t,r),(t=e.wrappers_[r])==jspb.Message.EMPTY_LIST_SENTINEL_&&(t=e.wrappers_[r]=[]),t},goog.exportProperty(jspb.Message,"getRepeatedWrapperField",jspb.Message.getRepeatedWrapperField),jspb.Message.wrapRepeatedField_=function(e,t,r){if(e.wrappers_||(e.wrappers_={}),!e.wrappers_[r]){for(var o=jspb.Message.getRepeatedField(e,r),i=[],n=0;n<o.length;n++)i[n]=new t(o[n]);e.wrappers_[r]=i}},jspb.Message.setWrapperField=function(e,t,r){jspb.asserts.assertInstanceof(e,jspb.Message),e.wrappers_||(e.wrappers_={});var o=r?r.toArray():r;return e.wrappers_[t]=r,jspb.Message.setField(e,t,o)},goog.exportProperty(jspb.Message,"setWrapperField",jspb.Message.setWrapperField),jspb.Message.setOneofWrapperField=function(e,t,r,o){jspb.asserts.assertInstanceof(e,jspb.Message),e.wrappers_||(e.wrappers_={});var i=o?o.toArray():o;return e.wrappers_[t]=o,jspb.Message.setOneofField(e,t,r,i)},goog.exportProperty(jspb.Message,"setOneofWrapperField",jspb.Message.setOneofWrapperField),jspb.Message.setRepeatedWrapperField=function(e,t,r){jspb.asserts.assertInstanceof(e,jspb.Message),e.wrappers_||(e.wrappers_={}),r=r||[];for(var o=[],i=0;i<r.length;i++)o[i]=r[i].toArray();return e.wrappers_[t]=r,jspb.Message.setField(e,t,o)},goog.exportProperty(jspb.Message,"setRepeatedWrapperField",jspb.Message.setRepeatedWrapperField),jspb.Message.addToRepeatedWrapperField=function(e,t,r,o,i){jspb.Message.wrapRepeatedField_(e,o,t);var n=e.wrappers_[t];return n||(n=e.wrappers_[t]=[]),r=r||new o,e=jspb.Message.getRepeatedField(e,t),null!=i?(n.splice(i,0,r),e.splice(i,0,r.toArray())):(n.push(r),e.push(r.toArray())),r},goog.exportProperty(jspb.Message,"addToRepeatedWrapperField",jspb.Message.addToRepeatedWrapperField),jspb.Message.toMap=function(e,t,r,o){for(var i={},n=0;n<e.length;n++)i[t.call(e[n])]=r?r.call(e[n],o,e[n]):e[n];return i},goog.exportProperty(jspb.Message,"toMap",jspb.Message.toMap),jspb.Message.prototype.syncMapFields_=function(){if(this.wrappers_)for(var e in this.wrappers_){var t=this.wrappers_[e];if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]&&t[r].toArray();else t&&t.toArray()}},jspb.Message.prototype.toArray=function(){return this.syncMapFields_(),this.array},goog.exportProperty(jspb.Message.prototype,"toArray",jspb.Message.prototype.toArray),jspb.Message.GENERATE_TO_STRING&&(jspb.Message.prototype.toString=function(){return this.syncMapFields_(),this.array.toString()}),jspb.Message.prototype.getExtension=function(e){if(this.extensionObject_){this.wrappers_||(this.wrappers_={});var t=e.fieldIndex;if(e.isRepeated){if(e.isMessageType())return this.wrappers_[t]||(this.wrappers_[t]=goog.array.map(this.extensionObject_[t]||[],(function(t){return new e.ctor(t)}))),this.wrappers_[t]}else if(e.isMessageType())return!this.wrappers_[t]&&this.extensionObject_[t]&&(this.wrappers_[t]=new e.ctor(this.extensionObject_[t])),this.wrappers_[t];return this.extensionObject_[t]}},goog.exportProperty(jspb.Message.prototype,"getExtension",jspb.Message.prototype.getExtension),jspb.Message.prototype.setExtension=function(e,t){this.wrappers_||(this.wrappers_={}),jspb.Message.maybeInitEmptyExtensionObject_(this);var r=e.fieldIndex;return e.isRepeated?(t=t||[],e.isMessageType()?(this.wrappers_[r]=t,this.extensionObject_[r]=goog.array.map(t,(function(e){return e.toArray()}))):this.extensionObject_[r]=t):e.isMessageType()?(this.wrappers_[r]=t,this.extensionObject_[r]=t?t.toArray():t):this.extensionObject_[r]=t,this},goog.exportProperty(jspb.Message.prototype,"setExtension",jspb.Message.prototype.setExtension),jspb.Message.difference=function(e,t){if(!(e instanceof t.constructor))throw Error("Messages have different types.");var r=e.toArray();t=t.toArray();var o=[],i=0,n=r.length>t.length?r.length:t.length;for(e.getJsPbMessageId()&&(o[0]=e.getJsPbMessageId(),i=1);i<n;i++)jspb.Message.compareFields(r[i],t[i])||(o[i]=t[i]);return new e.constructor(o)},goog.exportProperty(jspb.Message,"difference",jspb.Message.difference),jspb.Message.equals=function(e,t){return e==t||!(!e||!t)&&e instanceof t.constructor&&jspb.Message.compareFields(e.toArray(),t.toArray())},goog.exportProperty(jspb.Message,"equals",jspb.Message.equals),jspb.Message.compareExtensions=function(e,t){e=e||{},t=t||{};var r,o={};for(r in e)o[r]=0;for(r in t)o[r]=0;for(r in o)if(!jspb.Message.compareFields(e[r],t[r]))return!1;return!0},goog.exportProperty(jspb.Message,"compareExtensions",jspb.Message.compareExtensions),jspb.Message.compareFields=function(e,t){if(e==t)return!0;if(!goog.isObject(e)||!goog.isObject(t))return!!("number"==typeof e&&isNaN(e)||"number"==typeof t&&isNaN(t))&&String(e)==String(t);if(e.constructor!=t.constructor)return!1;if(jspb.Message.SUPPORTS_UINT8ARRAY_&&e.constructor===Uint8Array){if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!=t[r])return!1;return!0}if(e.constructor===Array){var o=void 0,i=void 0,n=Math.max(e.length,t.length);for(r=0;r<n;r++){var s=e[r],a=t[r];if(s&&s.constructor==Object&&(jspb.asserts.assert(void 0===o),jspb.asserts.assert(r===e.length-1),o=s,s=void 0),a&&a.constructor==Object&&(jspb.asserts.assert(void 0===i),jspb.asserts.assert(r===t.length-1),i=a,a=void 0),!jspb.Message.compareFields(s,a))return!1}return!o&&!i||(o=o||{},i=i||{},jspb.Message.compareExtensions(o,i))}if(e.constructor===Object)return jspb.Message.compareExtensions(e,t);throw Error("Invalid type in JSPB array")},goog.exportProperty(jspb.Message,"compareFields",jspb.Message.compareFields),jspb.Message.prototype.cloneMessage=function(){return jspb.Message.cloneMessage(this)},goog.exportProperty(jspb.Message.prototype,"cloneMessage",jspb.Message.prototype.cloneMessage),jspb.Message.prototype.clone=function(){return jspb.Message.cloneMessage(this)},goog.exportProperty(jspb.Message.prototype,"clone",jspb.Message.prototype.clone),jspb.Message.clone=function(e){return jspb.Message.cloneMessage(e)},goog.exportProperty(jspb.Message,"clone",jspb.Message.clone),jspb.Message.cloneMessage=function(e){return new e.constructor(jspb.Message.clone_(e.toArray()))},jspb.Message.copyInto=function(e,t){jspb.asserts.assertInstanceof(e,jspb.Message),jspb.asserts.assertInstanceof(t,jspb.Message),jspb.asserts.assert(e.constructor==t.constructor,"Copy source and target message should have the same type."),e=jspb.Message.clone(e);for(var r=t.toArray(),o=e.toArray(),i=r.length=0;i<o.length;i++)r[i]=o[i];t.wrappers_=e.wrappers_,t.extensionObject_=e.extensionObject_},goog.exportProperty(jspb.Message,"copyInto",jspb.Message.copyInto),jspb.Message.clone_=function(e){if(Array.isArray(e)){for(var t=Array(e.length),r=0;r<e.length;r++){var o=e[r];null!=o&&(t[r]="object"==typeof o?jspb.Message.clone_(jspb.asserts.assert(o)):o)}return t}if(jspb.Message.SUPPORTS_UINT8ARRAY_&&e instanceof Uint8Array)return new Uint8Array(e);for(r in t={},e)null!=(o=e[r])&&(t[r]="object"==typeof o?jspb.Message.clone_(jspb.asserts.assert(o)):o);return t},jspb.Message.registerMessageType=function(e,t){t.messageId=e},goog.exportProperty(jspb.Message,"registerMessageType",jspb.Message.registerMessageType),jspb.Message.messageSetExtensions={},jspb.Message.messageSetExtensionsBinary={},jspb.Export={},exports.Map=jspb.Map,exports.Message=jspb.Message,exports.BinaryReader=jspb.BinaryReader,exports.BinaryWriter=jspb.BinaryWriter,exports.ExtensionFieldInfo=jspb.ExtensionFieldInfo,exports.ExtensionFieldBinaryInfo=jspb.ExtensionFieldBinaryInfo,exports.exportSymbol=goog.exportSymbol,exports.inherits=goog.inherits,exports.object={extend:goog.object.extend},exports.typeOf=goog.typeOf},9392:(e,t,r)=>{var o=r(3019),i=o,n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof window&&window||void 0!==n&&n||"undefined"!=typeof self&&self||function(){return this}.call(null)||Function("return this")();i.exportSymbol("proto.google.protobuf.DescriptorProto",null,n),i.exportSymbol("proto.google.protobuf.DescriptorProto.ExtensionRange",null,n),i.exportSymbol("proto.google.protobuf.DescriptorProto.ReservedRange",null,n),i.exportSymbol("proto.google.protobuf.EnumDescriptorProto",null,n),i.exportSymbol("proto.google.protobuf.EnumDescriptorProto.EnumReservedRange",null,n),i.exportSymbol("proto.google.protobuf.EnumOptions",null,n),i.exportSymbol("proto.google.protobuf.EnumValueDescriptorProto",null,n),i.exportSymbol("proto.google.protobuf.EnumValueOptions",null,n),i.exportSymbol("proto.google.protobuf.ExtensionRangeOptions",null,n),i.exportSymbol("proto.google.protobuf.FieldDescriptorProto",null,n),i.exportSymbol("proto.google.protobuf.FieldDescriptorProto.Label",null,n),i.exportSymbol("proto.google.protobuf.FieldDescriptorProto.Type",null,n),i.exportSymbol("proto.google.protobuf.FieldOptions",null,n),i.exportSymbol("proto.google.protobuf.FieldOptions.CType",null,n),i.exportSymbol("proto.google.protobuf.FieldOptions.JSType",null,n),i.exportSymbol("proto.google.protobuf.FileDescriptorProto",null,n),i.exportSymbol("proto.google.protobuf.FileDescriptorSet",null,n),i.exportSymbol("proto.google.protobuf.FileOptions",null,n),i.exportSymbol("proto.google.protobuf.FileOptions.OptimizeMode",null,n),i.exportSymbol("proto.google.protobuf.GeneratedCodeInfo",null,n),i.exportSymbol("proto.google.protobuf.GeneratedCodeInfo.Annotation",null,n),i.exportSymbol("proto.google.protobuf.MessageOptions",null,n),i.exportSymbol("proto.google.protobuf.MethodDescriptorProto",null,n),i.exportSymbol("proto.google.protobuf.MethodOptions",null,n),i.exportSymbol("proto.google.protobuf.MethodOptions.IdempotencyLevel",null,n),i.exportSymbol("proto.google.protobuf.OneofDescriptorProto",null,n),i.exportSymbol("proto.google.protobuf.OneofOptions",null,n),i.exportSymbol("proto.google.protobuf.ServiceDescriptorProto",null,n),i.exportSymbol("proto.google.protobuf.ServiceOptions",null,n),i.exportSymbol("proto.google.protobuf.SourceCodeInfo",null,n),i.exportSymbol("proto.google.protobuf.SourceCodeInfo.Location",null,n),i.exportSymbol("proto.google.protobuf.UninterpretedOption",null,n),i.exportSymbol("proto.google.protobuf.UninterpretedOption.NamePart",null,n),proto.google.protobuf.FileDescriptorSet=function(e){o.Message.initialize(this,e,0,-1,proto.google.protobuf.FileDescriptorSet.repeatedFields_,null)},i.inherits(proto.google.protobuf.FileDescriptorSet,o.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.FileDescriptorSet.displayName="proto.google.protobuf.FileDescriptorSet"),proto.google.protobuf.FileDescriptorProto=function(e){o.Message.initialize(this,e,0,-1,proto.google.protobuf.FileDescriptorProto.repeatedFields_,null)},i.inherits(proto.google.protobuf.FileDescriptorProto,o.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.FileDescriptorProto.displayName="proto.google.protobuf.FileDescriptorProto"),proto.google.protobuf.DescriptorProto=function(e){o.Message.initialize(this,e,0,-1,proto.google.protobuf.DescriptorProto.repeatedFields_,null)},i.inherits(proto.google.protobuf.DescriptorProto,o.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.DescriptorProto.displayName="proto.google.protobuf.DescriptorProto"),proto.google.protobuf.DescriptorProto.ExtensionRange=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.google.protobuf.DescriptorProto.ExtensionRange,o.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.DescriptorProto.ExtensionRange.displayName="proto.google.protobuf.DescriptorProto.ExtensionRange"),proto.google.protobuf.DescriptorProto.ReservedRange=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.google.protobuf.DescriptorProto.ReservedRange,o.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.DescriptorProto.ReservedRange.displayName="proto.google.protobuf.DescriptorProto.ReservedRange"),proto.google.protobuf.ExtensionRangeOptions=function(e){o.Message.initialize(this,e,0,500,proto.google.protobuf.ExtensionRangeOptions.repeatedFields_,null)},i.inherits(proto.google.protobuf.ExtensionRangeOptions,o.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.ExtensionRangeOptions.displayName="proto.google.protobuf.ExtensionRangeOptions"),proto.google.protobuf.ExtensionRangeOptions.extensions={},proto.google.protobuf.ExtensionRangeOptions.extensionsBinary={},proto.google.protobuf.FieldDescriptorProto=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.google.protobuf.FieldDescriptorProto,o.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.FieldDescriptorProto.displayName="proto.google.protobuf.FieldDescriptorProto"),proto.google.protobuf.OneofDescriptorProto=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.google.protobuf.OneofDescriptorProto,o.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.OneofDescriptorProto.displayName="proto.google.protobuf.OneofDescriptorProto"),proto.google.protobuf.EnumDescriptorProto=function(e){o.Message.initialize(this,e,0,-1,proto.google.protobuf.EnumDescriptorProto.repeatedFields_,null)},i.inherits(proto.google.protobuf.EnumDescriptorProto,o.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.EnumDescriptorProto.displayName="proto.google.protobuf.EnumDescriptorProto"),proto.google.protobuf.EnumDescriptorProto.EnumReservedRange=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.google.protobuf.EnumDescriptorProto.EnumReservedRange,o.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.displayName="proto.google.protobuf.EnumDescriptorProto.EnumReservedRange"),proto.google.protobuf.EnumValueDescriptorProto=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.google.protobuf.EnumValueDescriptorProto,o.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.EnumValueDescriptorProto.displayName="proto.google.protobuf.EnumValueDescriptorProto"),proto.google.protobuf.ServiceDescriptorProto=function(e){o.Message.initialize(this,e,0,-1,proto.google.protobuf.ServiceDescriptorProto.repeatedFields_,null)},i.inherits(proto.google.protobuf.ServiceDescriptorProto,o.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.ServiceDescriptorProto.displayName="proto.google.protobuf.ServiceDescriptorProto"),proto.google.protobuf.MethodDescriptorProto=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.google.protobuf.MethodDescriptorProto,o.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.MethodDescriptorProto.displayName="proto.google.protobuf.MethodDescriptorProto"),proto.google.protobuf.FileOptions=function(e){o.Message.initialize(this,e,0,500,proto.google.protobuf.FileOptions.repeatedFields_,null)},i.inherits(proto.google.protobuf.FileOptions,o.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.FileOptions.displayName="proto.google.protobuf.FileOptions"),proto.google.protobuf.FileOptions.extensions={},proto.google.protobuf.FileOptions.extensionsBinary={},proto.google.protobuf.MessageOptions=function(e){o.Message.initialize(this,e,0,500,proto.google.protobuf.MessageOptions.repeatedFields_,null)},i.inherits(proto.google.protobuf.MessageOptions,o.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.MessageOptions.displayName="proto.google.protobuf.MessageOptions"),proto.google.protobuf.MessageOptions.extensions={},proto.google.protobuf.MessageOptions.extensionsBinary={},proto.google.protobuf.FieldOptions=function(e){o.Message.initialize(this,e,0,500,proto.google.protobuf.FieldOptions.repeatedFields_,null)},i.inherits(proto.google.protobuf.FieldOptions,o.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.FieldOptions.displayName="proto.google.protobuf.FieldOptions"),proto.google.protobuf.FieldOptions.extensions={},proto.google.protobuf.FieldOptions.extensionsBinary={},proto.google.protobuf.OneofOptions=function(e){o.Message.initialize(this,e,0,500,proto.google.protobuf.OneofOptions.repeatedFields_,null)},i.inherits(proto.google.protobuf.OneofOptions,o.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.OneofOptions.displayName="proto.google.protobuf.OneofOptions"),proto.google.protobuf.OneofOptions.extensions={},proto.google.protobuf.OneofOptions.extensionsBinary={},proto.google.protobuf.EnumOptions=function(e){o.Message.initialize(this,e,0,500,proto.google.protobuf.EnumOptions.repeatedFields_,null)},i.inherits(proto.google.protobuf.EnumOptions,o.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.EnumOptions.displayName="proto.google.protobuf.EnumOptions"),proto.google.protobuf.EnumOptions.extensions={},proto.google.protobuf.EnumOptions.extensionsBinary={},proto.google.protobuf.EnumValueOptions=function(e){o.Message.initialize(this,e,0,500,proto.google.protobuf.EnumValueOptions.repeatedFields_,null)},i.inherits(proto.google.protobuf.EnumValueOptions,o.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.EnumValueOptions.displayName="proto.google.protobuf.EnumValueOptions"),proto.google.protobuf.EnumValueOptions.extensions={},proto.google.protobuf.EnumValueOptions.extensionsBinary={},proto.google.protobuf.ServiceOptions=function(e){o.Message.initialize(this,e,0,500,proto.google.protobuf.ServiceOptions.repeatedFields_,null)},i.inherits(proto.google.protobuf.ServiceOptions,o.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.ServiceOptions.displayName="proto.google.protobuf.ServiceOptions"),proto.google.protobuf.ServiceOptions.extensions={},proto.google.protobuf.ServiceOptions.extensionsBinary={},proto.google.protobuf.MethodOptions=function(e){o.Message.initialize(this,e,0,500,proto.google.protobuf.MethodOptions.repeatedFields_,null)},i.inherits(proto.google.protobuf.MethodOptions,o.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.MethodOptions.displayName="proto.google.protobuf.MethodOptions"),proto.google.protobuf.MethodOptions.extensions={},proto.google.protobuf.MethodOptions.extensionsBinary={},proto.google.protobuf.UninterpretedOption=function(e){o.Message.initialize(this,e,0,-1,proto.google.protobuf.UninterpretedOption.repeatedFields_,null)},i.inherits(proto.google.protobuf.UninterpretedOption,o.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.UninterpretedOption.displayName="proto.google.protobuf.UninterpretedOption"),proto.google.protobuf.UninterpretedOption.NamePart=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.google.protobuf.UninterpretedOption.NamePart,o.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.UninterpretedOption.NamePart.displayName="proto.google.protobuf.UninterpretedOption.NamePart"),proto.google.protobuf.SourceCodeInfo=function(e){o.Message.initialize(this,e,0,-1,proto.google.protobuf.SourceCodeInfo.repeatedFields_,null)},i.inherits(proto.google.protobuf.SourceCodeInfo,o.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.SourceCodeInfo.displayName="proto.google.protobuf.SourceCodeInfo"),proto.google.protobuf.SourceCodeInfo.Location=function(e){o.Message.initialize(this,e,0,-1,proto.google.protobuf.SourceCodeInfo.Location.repeatedFields_,null)},i.inherits(proto.google.protobuf.SourceCodeInfo.Location,o.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.SourceCodeInfo.Location.displayName="proto.google.protobuf.SourceCodeInfo.Location"),proto.google.protobuf.GeneratedCodeInfo=function(e){o.Message.initialize(this,e,0,-1,proto.google.protobuf.GeneratedCodeInfo.repeatedFields_,null)},i.inherits(proto.google.protobuf.GeneratedCodeInfo,o.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.GeneratedCodeInfo.displayName="proto.google.protobuf.GeneratedCodeInfo"),proto.google.protobuf.GeneratedCodeInfo.Annotation=function(e){o.Message.initialize(this,e,0,-1,proto.google.protobuf.GeneratedCodeInfo.Annotation.repeatedFields_,null)},i.inherits(proto.google.protobuf.GeneratedCodeInfo.Annotation,o.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.GeneratedCodeInfo.Annotation.displayName="proto.google.protobuf.GeneratedCodeInfo.Annotation"),proto.google.protobuf.FileDescriptorSet.repeatedFields_=[1],o.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FileDescriptorSet.prototype.toObject=function(e){return proto.google.protobuf.FileDescriptorSet.toObject(e,this)},proto.google.protobuf.FileDescriptorSet.toObject=function(e,t){var r={fileList:o.Message.toObjectList(t.getFileList(),proto.google.protobuf.FileDescriptorProto.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.google.protobuf.FileDescriptorSet.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.google.protobuf.FileDescriptorSet;return proto.google.protobuf.FileDescriptorSet.deserializeBinaryFromReader(r,t)},proto.google.protobuf.FileDescriptorSet.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new proto.google.protobuf.FileDescriptorProto;t.readMessage(r,proto.google.protobuf.FileDescriptorProto.deserializeBinaryFromReader),e.addFile(r)}else t.skipField();return e},proto.google.protobuf.FileDescriptorSet.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.google.protobuf.FileDescriptorSet.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.FileDescriptorSet.serializeBinaryToWriter=function(e,t){var r;(r=e.getFileList()).length>0&&t.writeRepeatedMessage(1,r,proto.google.protobuf.FileDescriptorProto.serializeBinaryToWriter)},proto.google.protobuf.FileDescriptorSet.prototype.getFileList=function(){return o.Message.getRepeatedWrapperField(this,proto.google.protobuf.FileDescriptorProto,1)},proto.google.protobuf.FileDescriptorSet.prototype.setFileList=function(e){return o.Message.setRepeatedWrapperField(this,1,e)},proto.google.protobuf.FileDescriptorSet.prototype.addFile=function(e,t){return o.Message.addToRepeatedWrapperField(this,1,e,proto.google.protobuf.FileDescriptorProto,t)},proto.google.protobuf.FileDescriptorSet.prototype.clearFileList=function(){return this.setFileList([])},proto.google.protobuf.FileDescriptorProto.repeatedFields_=[3,10,11,4,5,6,7],o.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FileDescriptorProto.prototype.toObject=function(e){return proto.google.protobuf.FileDescriptorProto.toObject(e,this)},proto.google.protobuf.FileDescriptorProto.toObject=function(e,t){var r,i={name:null==(r=o.Message.getField(t,1))?void 0:r,pb_package:null==(r=o.Message.getField(t,2))?void 0:r,dependencyList:null==(r=o.Message.getRepeatedField(t,3))?void 0:r,publicDependencyList:null==(r=o.Message.getRepeatedField(t,10))?void 0:r,weakDependencyList:null==(r=o.Message.getRepeatedField(t,11))?void 0:r,messageTypeList:o.Message.toObjectList(t.getMessageTypeList(),proto.google.protobuf.DescriptorProto.toObject,e),enumTypeList:o.Message.toObjectList(t.getEnumTypeList(),proto.google.protobuf.EnumDescriptorProto.toObject,e),serviceList:o.Message.toObjectList(t.getServiceList(),proto.google.protobuf.ServiceDescriptorProto.toObject,e),extensionList:o.Message.toObjectList(t.getExtensionList(),proto.google.protobuf.FieldDescriptorProto.toObject,e),options:(r=t.getOptions())&&proto.google.protobuf.FileOptions.toObject(e,r),sourceCodeInfo:(r=t.getSourceCodeInfo())&&proto.google.protobuf.SourceCodeInfo.toObject(e,r),syntax:null==(r=o.Message.getField(t,12))?void 0:r};return e&&(i.$jspbMessageInstance=t),i}),proto.google.protobuf.FileDescriptorProto.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.google.protobuf.FileDescriptorProto;return proto.google.protobuf.FileDescriptorProto.deserializeBinaryFromReader(r,t)},proto.google.protobuf.FileDescriptorProto.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setName(r);break;case 2:r=t.readString(),e.setPackage(r);break;case 3:r=t.readString(),e.addDependency(r);break;case 10:for(var o=t.isDelimited()?t.readPackedInt32():[t.readInt32()],i=0;i<o.length;i++)e.addPublicDependency(o[i]);break;case 11:for(o=t.isDelimited()?t.readPackedInt32():[t.readInt32()],i=0;i<o.length;i++)e.addWeakDependency(o[i]);break;case 4:r=new proto.google.protobuf.DescriptorProto,t.readMessage(r,proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader),e.addMessageType(r);break;case 5:r=new proto.google.protobuf.EnumDescriptorProto,t.readMessage(r,proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader),e.addEnumType(r);break;case 6:r=new proto.google.protobuf.ServiceDescriptorProto,t.readMessage(r,proto.google.protobuf.ServiceDescriptorProto.deserializeBinaryFromReader),e.addService(r);break;case 7:r=new proto.google.protobuf.FieldDescriptorProto,t.readMessage(r,proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader),e.addExtension$(r);break;case 8:r=new proto.google.protobuf.FileOptions,t.readMessage(r,proto.google.protobuf.FileOptions.deserializeBinaryFromReader),e.setOptions(r);break;case 9:r=new proto.google.protobuf.SourceCodeInfo,t.readMessage(r,proto.google.protobuf.SourceCodeInfo.deserializeBinaryFromReader),e.setSourceCodeInfo(r);break;case 12:r=t.readString(),e.setSyntax(r);break;default:t.skipField()}return e},proto.google.protobuf.FileDescriptorProto.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.google.protobuf.FileDescriptorProto.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.FileDescriptorProto.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=o.Message.getField(e,1))&&t.writeString(1,r),null!=(r=o.Message.getField(e,2))&&t.writeString(2,r),(r=e.getDependencyList()).length>0&&t.writeRepeatedString(3,r),(r=e.getPublicDependencyList()).length>0&&t.writeRepeatedInt32(10,r),(r=e.getWeakDependencyList()).length>0&&t.writeRepeatedInt32(11,r),(r=e.getMessageTypeList()).length>0&&t.writeRepeatedMessage(4,r,proto.google.protobuf.DescriptorProto.serializeBinaryToWriter),(r=e.getEnumTypeList()).length>0&&t.writeRepeatedMessage(5,r,proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter),(r=e.getServiceList()).length>0&&t.writeRepeatedMessage(6,r,proto.google.protobuf.ServiceDescriptorProto.serializeBinaryToWriter),(r=e.getExtensionList()).length>0&&t.writeRepeatedMessage(7,r,proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter),null!=(r=e.getOptions())&&t.writeMessage(8,r,proto.google.protobuf.FileOptions.serializeBinaryToWriter),null!=(r=e.getSourceCodeInfo())&&t.writeMessage(9,r,proto.google.protobuf.SourceCodeInfo.serializeBinaryToWriter),null!=(r=o.Message.getField(e,12))&&t.writeString(12,r)},proto.google.protobuf.FileDescriptorProto.prototype.getName=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.FileDescriptorProto.prototype.setName=function(e){return o.Message.setField(this,1,e)},proto.google.protobuf.FileDescriptorProto.prototype.clearName=function(){return o.Message.setField(this,1,void 0)},proto.google.protobuf.FileDescriptorProto.prototype.hasName=function(){return null!=o.Message.getField(this,1)},proto.google.protobuf.FileDescriptorProto.prototype.getPackage=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.google.protobuf.FileDescriptorProto.prototype.setPackage=function(e){return o.Message.setField(this,2,e)},proto.google.protobuf.FileDescriptorProto.prototype.clearPackage=function(){return o.Message.setField(this,2,void 0)},proto.google.protobuf.FileDescriptorProto.prototype.hasPackage=function(){return null!=o.Message.getField(this,2)},proto.google.protobuf.FileDescriptorProto.prototype.getDependencyList=function(){return o.Message.getRepeatedField(this,3)},proto.google.protobuf.FileDescriptorProto.prototype.setDependencyList=function(e){return o.Message.setField(this,3,e||[])},proto.google.protobuf.FileDescriptorProto.prototype.addDependency=function(e,t){return o.Message.addToRepeatedField(this,3,e,t)},proto.google.protobuf.FileDescriptorProto.prototype.clearDependencyList=function(){return this.setDependencyList([])},proto.google.protobuf.FileDescriptorProto.prototype.getPublicDependencyList=function(){return o.Message.getRepeatedField(this,10)},proto.google.protobuf.FileDescriptorProto.prototype.setPublicDependencyList=function(e){return o.Message.setField(this,10,e||[])},proto.google.protobuf.FileDescriptorProto.prototype.addPublicDependency=function(e,t){return o.Message.addToRepeatedField(this,10,e,t)},proto.google.protobuf.FileDescriptorProto.prototype.clearPublicDependencyList=function(){return this.setPublicDependencyList([])},proto.google.protobuf.FileDescriptorProto.prototype.getWeakDependencyList=function(){return o.Message.getRepeatedField(this,11)},proto.google.protobuf.FileDescriptorProto.prototype.setWeakDependencyList=function(e){return o.Message.setField(this,11,e||[])},proto.google.protobuf.FileDescriptorProto.prototype.addWeakDependency=function(e,t){return o.Message.addToRepeatedField(this,11,e,t)},proto.google.protobuf.FileDescriptorProto.prototype.clearWeakDependencyList=function(){return this.setWeakDependencyList([])},proto.google.protobuf.FileDescriptorProto.prototype.getMessageTypeList=function(){return o.Message.getRepeatedWrapperField(this,proto.google.protobuf.DescriptorProto,4)},proto.google.protobuf.FileDescriptorProto.prototype.setMessageTypeList=function(e){return o.Message.setRepeatedWrapperField(this,4,e)},proto.google.protobuf.FileDescriptorProto.prototype.addMessageType=function(e,t){return o.Message.addToRepeatedWrapperField(this,4,e,proto.google.protobuf.DescriptorProto,t)},proto.google.protobuf.FileDescriptorProto.prototype.clearMessageTypeList=function(){return this.setMessageTypeList([])},proto.google.protobuf.FileDescriptorProto.prototype.getEnumTypeList=function(){return o.Message.getRepeatedWrapperField(this,proto.google.protobuf.EnumDescriptorProto,5)},proto.google.protobuf.FileDescriptorProto.prototype.setEnumTypeList=function(e){return o.Message.setRepeatedWrapperField(this,5,e)},proto.google.protobuf.FileDescriptorProto.prototype.addEnumType=function(e,t){return o.Message.addToRepeatedWrapperField(this,5,e,proto.google.protobuf.EnumDescriptorProto,t)},proto.google.protobuf.FileDescriptorProto.prototype.clearEnumTypeList=function(){return this.setEnumTypeList([])},proto.google.protobuf.FileDescriptorProto.prototype.getServiceList=function(){return o.Message.getRepeatedWrapperField(this,proto.google.protobuf.ServiceDescriptorProto,6)},proto.google.protobuf.FileDescriptorProto.prototype.setServiceList=function(e){return o.Message.setRepeatedWrapperField(this,6,e)},proto.google.protobuf.FileDescriptorProto.prototype.addService=function(e,t){return o.Message.addToRepeatedWrapperField(this,6,e,proto.google.protobuf.ServiceDescriptorProto,t)},proto.google.protobuf.FileDescriptorProto.prototype.clearServiceList=function(){return this.setServiceList([])},proto.google.protobuf.FileDescriptorProto.prototype.getExtensionList=function(){return o.Message.getRepeatedWrapperField(this,proto.google.protobuf.FieldDescriptorProto,7)},proto.google.protobuf.FileDescriptorProto.prototype.setExtensionList=function(e){return o.Message.setRepeatedWrapperField(this,7,e)},proto.google.protobuf.FileDescriptorProto.prototype.addExtension$=function(e,t){return o.Message.addToRepeatedWrapperField(this,7,e,proto.google.protobuf.FieldDescriptorProto,t)},proto.google.protobuf.FileDescriptorProto.prototype.clearExtensionList=function(){return this.setExtensionList([])},proto.google.protobuf.FileDescriptorProto.prototype.getOptions=function(){return o.Message.getWrapperField(this,proto.google.protobuf.FileOptions,8)},proto.google.protobuf.FileDescriptorProto.prototype.setOptions=function(e){return o.Message.setWrapperField(this,8,e)},proto.google.protobuf.FileDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)},proto.google.protobuf.FileDescriptorProto.prototype.hasOptions=function(){return null!=o.Message.getField(this,8)},proto.google.protobuf.FileDescriptorProto.prototype.getSourceCodeInfo=function(){return o.Message.getWrapperField(this,proto.google.protobuf.SourceCodeInfo,9)},proto.google.protobuf.FileDescriptorProto.prototype.setSourceCodeInfo=function(e){return o.Message.setWrapperField(this,9,e)},proto.google.protobuf.FileDescriptorProto.prototype.clearSourceCodeInfo=function(){return this.setSourceCodeInfo(void 0)},proto.google.protobuf.FileDescriptorProto.prototype.hasSourceCodeInfo=function(){return null!=o.Message.getField(this,9)},proto.google.protobuf.FileDescriptorProto.prototype.getSyntax=function(){return o.Message.getFieldWithDefault(this,12,"")},proto.google.protobuf.FileDescriptorProto.prototype.setSyntax=function(e){return o.Message.setField(this,12,e)},proto.google.protobuf.FileDescriptorProto.prototype.clearSyntax=function(){return o.Message.setField(this,12,void 0)},proto.google.protobuf.FileDescriptorProto.prototype.hasSyntax=function(){return null!=o.Message.getField(this,12)},proto.google.protobuf.DescriptorProto.repeatedFields_=[2,6,3,4,5,8,9,10],o.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.DescriptorProto.prototype.toObject=function(e){return proto.google.protobuf.DescriptorProto.toObject(e,this)},proto.google.protobuf.DescriptorProto.toObject=function(e,t){var r,i={name:null==(r=o.Message.getField(t,1))?void 0:r,fieldList:o.Message.toObjectList(t.getFieldList(),proto.google.protobuf.FieldDescriptorProto.toObject,e),extensionList:o.Message.toObjectList(t.getExtensionList(),proto.google.protobuf.FieldDescriptorProto.toObject,e),nestedTypeList:o.Message.toObjectList(t.getNestedTypeList(),proto.google.protobuf.DescriptorProto.toObject,e),enumTypeList:o.Message.toObjectList(t.getEnumTypeList(),proto.google.protobuf.EnumDescriptorProto.toObject,e),extensionRangeList:o.Message.toObjectList(t.getExtensionRangeList(),proto.google.protobuf.DescriptorProto.ExtensionRange.toObject,e),oneofDeclList:o.Message.toObjectList(t.getOneofDeclList(),proto.google.protobuf.OneofDescriptorProto.toObject,e),options:(r=t.getOptions())&&proto.google.protobuf.MessageOptions.toObject(e,r),reservedRangeList:o.Message.toObjectList(t.getReservedRangeList(),proto.google.protobuf.DescriptorProto.ReservedRange.toObject,e),reservedNameList:null==(r=o.Message.getRepeatedField(t,10))?void 0:r};return e&&(i.$jspbMessageInstance=t),i}),proto.google.protobuf.DescriptorProto.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.google.protobuf.DescriptorProto;return proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader(r,t)},proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setName(r);break;case 2:r=new proto.google.protobuf.FieldDescriptorProto,t.readMessage(r,proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader),e.addField(r);break;case 6:r=new proto.google.protobuf.FieldDescriptorProto,t.readMessage(r,proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader),e.addExtension$(r);break;case 3:r=new proto.google.protobuf.DescriptorProto,t.readMessage(r,proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader),e.addNestedType(r);break;case 4:r=new proto.google.protobuf.EnumDescriptorProto,t.readMessage(r,proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader),e.addEnumType(r);break;case 5:r=new proto.google.protobuf.DescriptorProto.ExtensionRange,t.readMessage(r,proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinaryFromReader),e.addExtensionRange(r);break;case 8:r=new proto.google.protobuf.OneofDescriptorProto,t.readMessage(r,proto.google.protobuf.OneofDescriptorProto.deserializeBinaryFromReader),e.addOneofDecl(r);break;case 7:r=new proto.google.protobuf.MessageOptions,t.readMessage(r,proto.google.protobuf.MessageOptions.deserializeBinaryFromReader),e.setOptions(r);break;case 9:r=new proto.google.protobuf.DescriptorProto.ReservedRange,t.readMessage(r,proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinaryFromReader),e.addReservedRange(r);break;case 10:r=t.readString(),e.addReservedName(r);break;default:t.skipField()}return e},proto.google.protobuf.DescriptorProto.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.google.protobuf.DescriptorProto.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.DescriptorProto.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=o.Message.getField(e,1))&&t.writeString(1,r),(r=e.getFieldList()).length>0&&t.writeRepeatedMessage(2,r,proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter),(r=e.getExtensionList()).length>0&&t.writeRepeatedMessage(6,r,proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter),(r=e.getNestedTypeList()).length>0&&t.writeRepeatedMessage(3,r,proto.google.protobuf.DescriptorProto.serializeBinaryToWriter),(r=e.getEnumTypeList()).length>0&&t.writeRepeatedMessage(4,r,proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter),(r=e.getExtensionRangeList()).length>0&&t.writeRepeatedMessage(5,r,proto.google.protobuf.DescriptorProto.ExtensionRange.serializeBinaryToWriter),(r=e.getOneofDeclList()).length>0&&t.writeRepeatedMessage(8,r,proto.google.protobuf.OneofDescriptorProto.serializeBinaryToWriter),null!=(r=e.getOptions())&&t.writeMessage(7,r,proto.google.protobuf.MessageOptions.serializeBinaryToWriter),(r=e.getReservedRangeList()).length>0&&t.writeRepeatedMessage(9,r,proto.google.protobuf.DescriptorProto.ReservedRange.serializeBinaryToWriter),(r=e.getReservedNameList()).length>0&&t.writeRepeatedString(10,r)},o.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.toObject=function(e){return proto.google.protobuf.DescriptorProto.ExtensionRange.toObject(e,this)},proto.google.protobuf.DescriptorProto.ExtensionRange.toObject=function(e,t){var r,i={start:null==(r=o.Message.getField(t,1))?void 0:r,end:null==(r=o.Message.getField(t,2))?void 0:r,options:(r=t.getOptions())&&proto.google.protobuf.ExtensionRangeOptions.toObject(e,r)};return e&&(i.$jspbMessageInstance=t),i}),proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.google.protobuf.DescriptorProto.ExtensionRange;return proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinaryFromReader(r,t)},proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setStart(r);break;case 2:r=t.readInt32(),e.setEnd(r);break;case 3:r=new proto.google.protobuf.ExtensionRangeOptions,t.readMessage(r,proto.google.protobuf.ExtensionRangeOptions.deserializeBinaryFromReader),e.setOptions(r);break;default:t.skipField()}return e},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.google.protobuf.DescriptorProto.ExtensionRange.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.DescriptorProto.ExtensionRange.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=o.Message.getField(e,1))&&t.writeInt32(1,r),null!=(r=o.Message.getField(e,2))&&t.writeInt32(2,r),null!=(r=e.getOptions())&&t.writeMessage(3,r,proto.google.protobuf.ExtensionRangeOptions.serializeBinaryToWriter)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.getStart=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.setStart=function(e){return o.Message.setField(this,1,e)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.clearStart=function(){return o.Message.setField(this,1,void 0)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.hasStart=function(){return null!=o.Message.getField(this,1)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.getEnd=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.setEnd=function(e){return o.Message.setField(this,2,e)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.clearEnd=function(){return o.Message.setField(this,2,void 0)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.hasEnd=function(){return null!=o.Message.getField(this,2)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.getOptions=function(){return o.Message.getWrapperField(this,proto.google.protobuf.ExtensionRangeOptions,3)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.setOptions=function(e){return o.Message.setWrapperField(this,3,e)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.clearOptions=function(){return this.setOptions(void 0)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.hasOptions=function(){return null!=o.Message.getField(this,3)},o.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.DescriptorProto.ReservedRange.prototype.toObject=function(e){return proto.google.protobuf.DescriptorProto.ReservedRange.toObject(e,this)},proto.google.protobuf.DescriptorProto.ReservedRange.toObject=function(e,t){var r,i={start:null==(r=o.Message.getField(t,1))?void 0:r,end:null==(r=o.Message.getField(t,2))?void 0:r};return e&&(i.$jspbMessageInstance=t),i}),proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.google.protobuf.DescriptorProto.ReservedRange;return proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinaryFromReader(r,t)},proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setStart(r);break;case 2:r=t.readInt32(),e.setEnd(r);break;default:t.skipField()}return e},proto.google.protobuf.DescriptorProto.ReservedRange.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.google.protobuf.DescriptorProto.ReservedRange.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.DescriptorProto.ReservedRange.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=o.Message.getField(e,1))&&t.writeInt32(1,r),null!=(r=o.Message.getField(e,2))&&t.writeInt32(2,r)},proto.google.protobuf.DescriptorProto.ReservedRange.prototype.getStart=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.DescriptorProto.ReservedRange.prototype.setStart=function(e){return o.Message.setField(this,1,e)},proto.google.protobuf.DescriptorProto.ReservedRange.prototype.clearStart=function(){return o.Message.setField(this,1,void 0)},proto.google.protobuf.DescriptorProto.ReservedRange.prototype.hasStart=function(){return null!=o.Message.getField(this,1)},proto.google.protobuf.DescriptorProto.ReservedRange.prototype.getEnd=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.google.protobuf.DescriptorProto.ReservedRange.prototype.setEnd=function(e){return o.Message.setField(this,2,e)},proto.google.protobuf.DescriptorProto.ReservedRange.prototype.clearEnd=function(){return o.Message.setField(this,2,void 0)},proto.google.protobuf.DescriptorProto.ReservedRange.prototype.hasEnd=function(){return null!=o.Message.getField(this,2)},proto.google.protobuf.DescriptorProto.prototype.getName=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.DescriptorProto.prototype.setName=function(e){return o.Message.setField(this,1,e)},proto.google.protobuf.DescriptorProto.prototype.clearName=function(){return o.Message.setField(this,1,void 0)},proto.google.protobuf.DescriptorProto.prototype.hasName=function(){return null!=o.Message.getField(this,1)},proto.google.protobuf.DescriptorProto.prototype.getFieldList=function(){return o.Message.getRepeatedWrapperField(this,proto.google.protobuf.FieldDescriptorProto,2)},proto.google.protobuf.DescriptorProto.prototype.setFieldList=function(e){return o.Message.setRepeatedWrapperField(this,2,e)},proto.google.protobuf.DescriptorProto.prototype.addField=function(e,t){return o.Message.addToRepeatedWrapperField(this,2,e,proto.google.protobuf.FieldDescriptorProto,t)},proto.google.protobuf.DescriptorProto.prototype.clearFieldList=function(){return this.setFieldList([])},proto.google.protobuf.DescriptorProto.prototype.getExtensionList=function(){return o.Message.getRepeatedWrapperField(this,proto.google.protobuf.FieldDescriptorProto,6)},proto.google.protobuf.DescriptorProto.prototype.setExtensionList=function(e){return o.Message.setRepeatedWrapperField(this,6,e)},proto.google.protobuf.DescriptorProto.prototype.addExtension$=function(e,t){return o.Message.addToRepeatedWrapperField(this,6,e,proto.google.protobuf.FieldDescriptorProto,t)},proto.google.protobuf.DescriptorProto.prototype.clearExtensionList=function(){return this.setExtensionList([])},proto.google.protobuf.DescriptorProto.prototype.getNestedTypeList=function(){return o.Message.getRepeatedWrapperField(this,proto.google.protobuf.DescriptorProto,3)},proto.google.protobuf.DescriptorProto.prototype.setNestedTypeList=function(e){return o.Message.setRepeatedWrapperField(this,3,e)},proto.google.protobuf.DescriptorProto.prototype.addNestedType=function(e,t){return o.Message.addToRepeatedWrapperField(this,3,e,proto.google.protobuf.DescriptorProto,t)},proto.google.protobuf.DescriptorProto.prototype.clearNestedTypeList=function(){return this.setNestedTypeList([])},proto.google.protobuf.DescriptorProto.prototype.getEnumTypeList=function(){return o.Message.getRepeatedWrapperField(this,proto.google.protobuf.EnumDescriptorProto,4)},proto.google.protobuf.DescriptorProto.prototype.setEnumTypeList=function(e){return o.Message.setRepeatedWrapperField(this,4,e)},proto.google.protobuf.DescriptorProto.prototype.addEnumType=function(e,t){return o.Message.addToRepeatedWrapperField(this,4,e,proto.google.protobuf.EnumDescriptorProto,t)},proto.google.protobuf.DescriptorProto.prototype.clearEnumTypeList=function(){return this.setEnumTypeList([])},proto.google.protobuf.DescriptorProto.prototype.getExtensionRangeList=function(){return o.Message.getRepeatedWrapperField(this,proto.google.protobuf.DescriptorProto.ExtensionRange,5)},proto.google.protobuf.DescriptorProto.prototype.setExtensionRangeList=function(e){return o.Message.setRepeatedWrapperField(this,5,e)},proto.google.protobuf.DescriptorProto.prototype.addExtensionRange=function(e,t){return o.Message.addToRepeatedWrapperField(this,5,e,proto.google.protobuf.DescriptorProto.ExtensionRange,t)},proto.google.protobuf.DescriptorProto.prototype.clearExtensionRangeList=function(){return this.setExtensionRangeList([])},proto.google.protobuf.DescriptorProto.prototype.getOneofDeclList=function(){return o.Message.getRepeatedWrapperField(this,proto.google.protobuf.OneofDescriptorProto,8)},proto.google.protobuf.DescriptorProto.prototype.setOneofDeclList=function(e){return o.Message.setRepeatedWrapperField(this,8,e)},proto.google.protobuf.DescriptorProto.prototype.addOneofDecl=function(e,t){return o.Message.addToRepeatedWrapperField(this,8,e,proto.google.protobuf.OneofDescriptorProto,t)},proto.google.protobuf.DescriptorProto.prototype.clearOneofDeclList=function(){return this.setOneofDeclList([])},proto.google.protobuf.DescriptorProto.prototype.getOptions=function(){return o.Message.getWrapperField(this,proto.google.protobuf.MessageOptions,7)},proto.google.protobuf.DescriptorProto.prototype.setOptions=function(e){return o.Message.setWrapperField(this,7,e)},proto.google.protobuf.DescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)},proto.google.protobuf.DescriptorProto.prototype.hasOptions=function(){return null!=o.Message.getField(this,7)},proto.google.protobuf.DescriptorProto.prototype.getReservedRangeList=function(){return o.Message.getRepeatedWrapperField(this,proto.google.protobuf.DescriptorProto.ReservedRange,9)},proto.google.protobuf.DescriptorProto.prototype.setReservedRangeList=function(e){return o.Message.setRepeatedWrapperField(this,9,e)},proto.google.protobuf.DescriptorProto.prototype.addReservedRange=function(e,t){return o.Message.addToRepeatedWrapperField(this,9,e,proto.google.protobuf.DescriptorProto.ReservedRange,t)},proto.google.protobuf.DescriptorProto.prototype.clearReservedRangeList=function(){return this.setReservedRangeList([])},proto.google.protobuf.DescriptorProto.prototype.getReservedNameList=function(){return o.Message.getRepeatedField(this,10)},proto.google.protobuf.DescriptorProto.prototype.setReservedNameList=function(e){return o.Message.setField(this,10,e||[])},proto.google.protobuf.DescriptorProto.prototype.addReservedName=function(e,t){return o.Message.addToRepeatedField(this,10,e,t)},proto.google.protobuf.DescriptorProto.prototype.clearReservedNameList=function(){return this.setReservedNameList([])},proto.google.protobuf.ExtensionRangeOptions.repeatedFields_=[999],o.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.ExtensionRangeOptions.prototype.toObject=function(e){return proto.google.protobuf.ExtensionRangeOptions.toObject(e,this)},proto.google.protobuf.ExtensionRangeOptions.toObject=function(e,t){var r={uninterpretedOptionList:o.Message.toObjectList(t.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,e)};return o.Message.toObjectExtension(t,r,proto.google.protobuf.ExtensionRangeOptions.extensions,proto.google.protobuf.ExtensionRangeOptions.prototype.getExtension,e),e&&(r.$jspbMessageInstance=t),r}),proto.google.protobuf.ExtensionRangeOptions.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.google.protobuf.ExtensionRangeOptions;return proto.google.protobuf.ExtensionRangeOptions.deserializeBinaryFromReader(r,t)},proto.google.protobuf.ExtensionRangeOptions.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(999===t.getFieldNumber()){var r=new proto.google.protobuf.UninterpretedOption;t.readMessage(r,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),e.addUninterpretedOption(r)}else o.Message.readBinaryExtension(e,t,proto.google.protobuf.ExtensionRangeOptions.extensionsBinary,proto.google.protobuf.ExtensionRangeOptions.prototype.getExtension,proto.google.protobuf.ExtensionRangeOptions.prototype.setExtension);return e},proto.google.protobuf.ExtensionRangeOptions.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.google.protobuf.ExtensionRangeOptions.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.ExtensionRangeOptions.serializeBinaryToWriter=function(e,t){var r;(r=e.getUninterpretedOptionList()).length>0&&t.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),o.Message.serializeBinaryExtensions(e,t,proto.google.protobuf.ExtensionRangeOptions.extensionsBinary,proto.google.protobuf.ExtensionRangeOptions.prototype.getExtension)},proto.google.protobuf.ExtensionRangeOptions.prototype.getUninterpretedOptionList=function(){return o.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)},proto.google.protobuf.ExtensionRangeOptions.prototype.setUninterpretedOptionList=function(e){return o.Message.setRepeatedWrapperField(this,999,e)},proto.google.protobuf.ExtensionRangeOptions.prototype.addUninterpretedOption=function(e,t){return o.Message.addToRepeatedWrapperField(this,999,e,proto.google.protobuf.UninterpretedOption,t)},proto.google.protobuf.ExtensionRangeOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])},o.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FieldDescriptorProto.prototype.toObject=function(e){return proto.google.protobuf.FieldDescriptorProto.toObject(e,this)},proto.google.protobuf.FieldDescriptorProto.toObject=function(e,t){var r,i={name:null==(r=o.Message.getField(t,1))?void 0:r,number:null==(r=o.Message.getField(t,3))?void 0:r,label:null==(r=o.Message.getField(t,4))?void 0:r,type:null==(r=o.Message.getField(t,5))?void 0:r,typeName:null==(r=o.Message.getField(t,6))?void 0:r,extendee:null==(r=o.Message.getField(t,2))?void 0:r,defaultValue:null==(r=o.Message.getField(t,7))?void 0:r,oneofIndex:null==(r=o.Message.getField(t,9))?void 0:r,jsonName:null==(r=o.Message.getField(t,10))?void 0:r,options:(r=t.getOptions())&&proto.google.protobuf.FieldOptions.toObject(e,r),proto3Optional:null==(r=o.Message.getBooleanField(t,17))?void 0:r};return e&&(i.$jspbMessageInstance=t),i}),proto.google.protobuf.FieldDescriptorProto.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.google.protobuf.FieldDescriptorProto;return proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader(r,t)},proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setName(r);break;case 3:r=t.readInt32(),e.setNumber(r);break;case 4:r=t.readEnum(),e.setLabel(r);break;case 5:r=t.readEnum(),e.setType(r);break;case 6:r=t.readString(),e.setTypeName(r);break;case 2:r=t.readString(),e.setExtendee(r);break;case 7:r=t.readString(),e.setDefaultValue(r);break;case 9:r=t.readInt32(),e.setOneofIndex(r);break;case 10:r=t.readString(),e.setJsonName(r);break;case 8:r=new proto.google.protobuf.FieldOptions,t.readMessage(r,proto.google.protobuf.FieldOptions.deserializeBinaryFromReader),e.setOptions(r);break;case 17:r=t.readBool(),e.setProto3Optional(r);break;default:t.skipField()}return e},proto.google.protobuf.FieldDescriptorProto.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=o.Message.getField(e,1))&&t.writeString(1,r),null!=(r=o.Message.getField(e,3))&&t.writeInt32(3,r),null!=(r=o.Message.getField(e,4))&&t.writeEnum(4,r),null!=(r=o.Message.getField(e,5))&&t.writeEnum(5,r),null!=(r=o.Message.getField(e,6))&&t.writeString(6,r),null!=(r=o.Message.getField(e,2))&&t.writeString(2,r),null!=(r=o.Message.getField(e,7))&&t.writeString(7,r),null!=(r=o.Message.getField(e,9))&&t.writeInt32(9,r),null!=(r=o.Message.getField(e,10))&&t.writeString(10,r),null!=(r=e.getOptions())&&t.writeMessage(8,r,proto.google.protobuf.FieldOptions.serializeBinaryToWriter),null!=(r=o.Message.getField(e,17))&&t.writeBool(17,r)},proto.google.protobuf.FieldDescriptorProto.Type={TYPE_DOUBLE:1,TYPE_FLOAT:2,TYPE_INT64:3,TYPE_UINT64:4,TYPE_INT32:5,TYPE_FIXED64:6,TYPE_FIXED32:7,TYPE_BOOL:8,TYPE_STRING:9,TYPE_GROUP:10,TYPE_MESSAGE:11,TYPE_BYTES:12,TYPE_UINT32:13,TYPE_ENUM:14,TYPE_SFIXED32:15,TYPE_SFIXED64:16,TYPE_SINT32:17,TYPE_SINT64:18},proto.google.protobuf.FieldDescriptorProto.Label={LABEL_OPTIONAL:1,LABEL_REQUIRED:2,LABEL_REPEATED:3},proto.google.protobuf.FieldDescriptorProto.prototype.getName=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.FieldDescriptorProto.prototype.setName=function(e){return o.Message.setField(this,1,e)},proto.google.protobuf.FieldDescriptorProto.prototype.clearName=function(){return o.Message.setField(this,1,void 0)},proto.google.protobuf.FieldDescriptorProto.prototype.hasName=function(){return null!=o.Message.getField(this,1)},proto.google.protobuf.FieldDescriptorProto.prototype.getNumber=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.google.protobuf.FieldDescriptorProto.prototype.setNumber=function(e){return o.Message.setField(this,3,e)},proto.google.protobuf.FieldDescriptorProto.prototype.clearNumber=function(){return o.Message.setField(this,3,void 0)},proto.google.protobuf.FieldDescriptorProto.prototype.hasNumber=function(){return null!=o.Message.getField(this,3)},proto.google.protobuf.FieldDescriptorProto.prototype.getLabel=function(){return o.Message.getFieldWithDefault(this,4,1)},proto.google.protobuf.FieldDescriptorProto.prototype.setLabel=function(e){return o.Message.setField(this,4,e)},proto.google.protobuf.FieldDescriptorProto.prototype.clearLabel=function(){return o.Message.setField(this,4,void 0)},proto.google.protobuf.FieldDescriptorProto.prototype.hasLabel=function(){return null!=o.Message.getField(this,4)},proto.google.protobuf.FieldDescriptorProto.prototype.getType=function(){return o.Message.getFieldWithDefault(this,5,1)},proto.google.protobuf.FieldDescriptorProto.prototype.setType=function(e){return o.Message.setField(this,5,e)},proto.google.protobuf.FieldDescriptorProto.prototype.clearType=function(){return o.Message.setField(this,5,void 0)},proto.google.protobuf.FieldDescriptorProto.prototype.hasType=function(){return null!=o.Message.getField(this,5)},proto.google.protobuf.FieldDescriptorProto.prototype.getTypeName=function(){return o.Message.getFieldWithDefault(this,6,"")},proto.google.protobuf.FieldDescriptorProto.prototype.setTypeName=function(e){return o.Message.setField(this,6,e)},proto.google.protobuf.FieldDescriptorProto.prototype.clearTypeName=function(){return o.Message.setField(this,6,void 0)},proto.google.protobuf.FieldDescriptorProto.prototype.hasTypeName=function(){return null!=o.Message.getField(this,6)},proto.google.protobuf.FieldDescriptorProto.prototype.getExtendee=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.google.protobuf.FieldDescriptorProto.prototype.setExtendee=function(e){return o.Message.setField(this,2,e)},proto.google.protobuf.FieldDescriptorProto.prototype.clearExtendee=function(){return o.Message.setField(this,2,void 0)},proto.google.protobuf.FieldDescriptorProto.prototype.hasExtendee=function(){return null!=o.Message.getField(this,2)},proto.google.protobuf.FieldDescriptorProto.prototype.getDefaultValue=function(){return o.Message.getFieldWithDefault(this,7,"")},proto.google.protobuf.FieldDescriptorProto.prototype.setDefaultValue=function(e){return o.Message.setField(this,7,e)},proto.google.protobuf.FieldDescriptorProto.prototype.clearDefaultValue=function(){return o.Message.setField(this,7,void 0)},proto.google.protobuf.FieldDescriptorProto.prototype.hasDefaultValue=function(){return null!=o.Message.getField(this,7)},proto.google.protobuf.FieldDescriptorProto.prototype.getOneofIndex=function(){return o.Message.getFieldWithDefault(this,9,0)},proto.google.protobuf.FieldDescriptorProto.prototype.setOneofIndex=function(e){return o.Message.setField(this,9,e)},proto.google.protobuf.FieldDescriptorProto.prototype.clearOneofIndex=function(){return o.Message.setField(this,9,void 0)},proto.google.protobuf.FieldDescriptorProto.prototype.hasOneofIndex=function(){return null!=o.Message.getField(this,9)},proto.google.protobuf.FieldDescriptorProto.prototype.getJsonName=function(){return o.Message.getFieldWithDefault(this,10,"")},proto.google.protobuf.FieldDescriptorProto.prototype.setJsonName=function(e){return o.Message.setField(this,10,e)},proto.google.protobuf.FieldDescriptorProto.prototype.clearJsonName=function(){return o.Message.setField(this,10,void 0)},proto.google.protobuf.FieldDescriptorProto.prototype.hasJsonName=function(){return null!=o.Message.getField(this,10)},proto.google.protobuf.FieldDescriptorProto.prototype.getOptions=function(){return o.Message.getWrapperField(this,proto.google.protobuf.FieldOptions,8)},proto.google.protobuf.FieldDescriptorProto.prototype.setOptions=function(e){return o.Message.setWrapperField(this,8,e)},proto.google.protobuf.FieldDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)},proto.google.protobuf.FieldDescriptorProto.prototype.hasOptions=function(){return null!=o.Message.getField(this,8)},proto.google.protobuf.FieldDescriptorProto.prototype.getProto3Optional=function(){return o.Message.getBooleanFieldWithDefault(this,17,!1)},proto.google.protobuf.FieldDescriptorProto.prototype.setProto3Optional=function(e){return o.Message.setField(this,17,e)},proto.google.protobuf.FieldDescriptorProto.prototype.clearProto3Optional=function(){return o.Message.setField(this,17,void 0)},proto.google.protobuf.FieldDescriptorProto.prototype.hasProto3Optional=function(){return null!=o.Message.getField(this,17)},o.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.OneofDescriptorProto.prototype.toObject=function(e){return proto.google.protobuf.OneofDescriptorProto.toObject(e,this)},proto.google.protobuf.OneofDescriptorProto.toObject=function(e,t){var r,i={name:null==(r=o.Message.getField(t,1))?void 0:r,options:(r=t.getOptions())&&proto.google.protobuf.OneofOptions.toObject(e,r)};return e&&(i.$jspbMessageInstance=t),i}),proto.google.protobuf.OneofDescriptorProto.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.google.protobuf.OneofDescriptorProto;return proto.google.protobuf.OneofDescriptorProto.deserializeBinaryFromReader(r,t)},proto.google.protobuf.OneofDescriptorProto.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setName(r);break;case 2:r=new proto.google.protobuf.OneofOptions,t.readMessage(r,proto.google.protobuf.OneofOptions.deserializeBinaryFromReader),e.setOptions(r);break;default:t.skipField()}return e},proto.google.protobuf.OneofDescriptorProto.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.google.protobuf.OneofDescriptorProto.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.OneofDescriptorProto.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=o.Message.getField(e,1))&&t.writeString(1,r),null!=(r=e.getOptions())&&t.writeMessage(2,r,proto.google.protobuf.OneofOptions.serializeBinaryToWriter)},proto.google.protobuf.OneofDescriptorProto.prototype.getName=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.OneofDescriptorProto.prototype.setName=function(e){return o.Message.setField(this,1,e)},proto.google.protobuf.OneofDescriptorProto.prototype.clearName=function(){return o.Message.setField(this,1,void 0)},proto.google.protobuf.OneofDescriptorProto.prototype.hasName=function(){return null!=o.Message.getField(this,1)},proto.google.protobuf.OneofDescriptorProto.prototype.getOptions=function(){return o.Message.getWrapperField(this,proto.google.protobuf.OneofOptions,2)},proto.google.protobuf.OneofDescriptorProto.prototype.setOptions=function(e){return o.Message.setWrapperField(this,2,e)},proto.google.protobuf.OneofDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)},proto.google.protobuf.OneofDescriptorProto.prototype.hasOptions=function(){return null!=o.Message.getField(this,2)},proto.google.protobuf.EnumDescriptorProto.repeatedFields_=[2,4,5],o.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.EnumDescriptorProto.prototype.toObject=function(e){return proto.google.protobuf.EnumDescriptorProto.toObject(e,this)},proto.google.protobuf.EnumDescriptorProto.toObject=function(e,t){var r,i={name:null==(r=o.Message.getField(t,1))?void 0:r,valueList:o.Message.toObjectList(t.getValueList(),proto.google.protobuf.EnumValueDescriptorProto.toObject,e),options:(r=t.getOptions())&&proto.google.protobuf.EnumOptions.toObject(e,r),reservedRangeList:o.Message.toObjectList(t.getReservedRangeList(),proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject,e),reservedNameList:null==(r=o.Message.getRepeatedField(t,5))?void 0:r};return e&&(i.$jspbMessageInstance=t),i}),proto.google.protobuf.EnumDescriptorProto.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.google.protobuf.EnumDescriptorProto;return proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader(r,t)},proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setName(r);break;case 2:r=new proto.google.protobuf.EnumValueDescriptorProto,t.readMessage(r,proto.google.protobuf.EnumValueDescriptorProto.deserializeBinaryFromReader),e.addValue(r);break;case 3:r=new proto.google.protobuf.EnumOptions,t.readMessage(r,proto.google.protobuf.EnumOptions.deserializeBinaryFromReader),e.setOptions(r);break;case 4:r=new proto.google.protobuf.EnumDescriptorProto.EnumReservedRange,t.readMessage(r,proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinaryFromReader),e.addReservedRange(r);break;case 5:r=t.readString(),e.addReservedName(r);break;default:t.skipField()}return e},proto.google.protobuf.EnumDescriptorProto.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=o.Message.getField(e,1))&&t.writeString(1,r),(r=e.getValueList()).length>0&&t.writeRepeatedMessage(2,r,proto.google.protobuf.EnumValueDescriptorProto.serializeBinaryToWriter),null!=(r=e.getOptions())&&t.writeMessage(3,r,proto.google.protobuf.EnumOptions.serializeBinaryToWriter),(r=e.getReservedRangeList()).length>0&&t.writeRepeatedMessage(4,r,proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.serializeBinaryToWriter),(r=e.getReservedNameList()).length>0&&t.writeRepeatedString(5,r)},o.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.toObject=function(e){return proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(e,this)},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject=function(e,t){var r,i={start:null==(r=o.Message.getField(t,1))?void 0:r,end:null==(r=o.Message.getField(t,2))?void 0:r};return e&&(i.$jspbMessageInstance=t),i}),proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.google.protobuf.EnumDescriptorProto.EnumReservedRange;return proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinaryFromReader(r,t)},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setStart(r);break;case 2:r=t.readInt32(),e.setEnd(r);break;default:t.skipField()}return e},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=o.Message.getField(e,1))&&t.writeInt32(1,r),null!=(r=o.Message.getField(e,2))&&t.writeInt32(2,r)},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.getStart=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.setStart=function(e){return o.Message.setField(this,1,e)},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.clearStart=function(){return o.Message.setField(this,1,void 0)},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.hasStart=function(){return null!=o.Message.getField(this,1)},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.getEnd=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.setEnd=function(e){return o.Message.setField(this,2,e)},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.clearEnd=function(){return o.Message.setField(this,2,void 0)},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.hasEnd=function(){return null!=o.Message.getField(this,2)},proto.google.protobuf.EnumDescriptorProto.prototype.getName=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.EnumDescriptorProto.prototype.setName=function(e){return o.Message.setField(this,1,e)},proto.google.protobuf.EnumDescriptorProto.prototype.clearName=function(){return o.Message.setField(this,1,void 0)},proto.google.protobuf.EnumDescriptorProto.prototype.hasName=function(){return null!=o.Message.getField(this,1)},proto.google.protobuf.EnumDescriptorProto.prototype.getValueList=function(){return o.Message.getRepeatedWrapperField(this,proto.google.protobuf.EnumValueDescriptorProto,2)},proto.google.protobuf.EnumDescriptorProto.prototype.setValueList=function(e){return o.Message.setRepeatedWrapperField(this,2,e)},proto.google.protobuf.EnumDescriptorProto.prototype.addValue=function(e,t){return o.Message.addToRepeatedWrapperField(this,2,e,proto.google.protobuf.EnumValueDescriptorProto,t)},proto.google.protobuf.EnumDescriptorProto.prototype.clearValueList=function(){return this.setValueList([])},proto.google.protobuf.EnumDescriptorProto.prototype.getOptions=function(){return o.Message.getWrapperField(this,proto.google.protobuf.EnumOptions,3)},proto.google.protobuf.EnumDescriptorProto.prototype.setOptions=function(e){return o.Message.setWrapperField(this,3,e)},proto.google.protobuf.EnumDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)},proto.google.protobuf.EnumDescriptorProto.prototype.hasOptions=function(){return null!=o.Message.getField(this,3)},proto.google.protobuf.EnumDescriptorProto.prototype.getReservedRangeList=function(){return o.Message.getRepeatedWrapperField(this,proto.google.protobuf.EnumDescriptorProto.EnumReservedRange,4)},proto.google.protobuf.EnumDescriptorProto.prototype.setReservedRangeList=function(e){return o.Message.setRepeatedWrapperField(this,4,e)},proto.google.protobuf.EnumDescriptorProto.prototype.addReservedRange=function(e,t){return o.Message.addToRepeatedWrapperField(this,4,e,proto.google.protobuf.EnumDescriptorProto.EnumReservedRange,t)},proto.google.protobuf.EnumDescriptorProto.prototype.clearReservedRangeList=function(){return this.setReservedRangeList([])},proto.google.protobuf.EnumDescriptorProto.prototype.getReservedNameList=function(){return o.Message.getRepeatedField(this,5)},proto.google.protobuf.EnumDescriptorProto.prototype.setReservedNameList=function(e){return o.Message.setField(this,5,e||[])},proto.google.protobuf.EnumDescriptorProto.prototype.addReservedName=function(e,t){return o.Message.addToRepeatedField(this,5,e,t)},proto.google.protobuf.EnumDescriptorProto.prototype.clearReservedNameList=function(){return this.setReservedNameList([])},o.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.EnumValueDescriptorProto.prototype.toObject=function(e){return proto.google.protobuf.EnumValueDescriptorProto.toObject(e,this)},proto.google.protobuf.EnumValueDescriptorProto.toObject=function(e,t){var r,i={name:null==(r=o.Message.getField(t,1))?void 0:r,number:null==(r=o.Message.getField(t,2))?void 0:r,options:(r=t.getOptions())&&proto.google.protobuf.EnumValueOptions.toObject(e,r)};return e&&(i.$jspbMessageInstance=t),i}),proto.google.protobuf.EnumValueDescriptorProto.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.google.protobuf.EnumValueDescriptorProto;return proto.google.protobuf.EnumValueDescriptorProto.deserializeBinaryFromReader(r,t)},proto.google.protobuf.EnumValueDescriptorProto.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setName(r);break;case 2:r=t.readInt32(),e.setNumber(r);break;case 3:r=new proto.google.protobuf.EnumValueOptions,t.readMessage(r,proto.google.protobuf.EnumValueOptions.deserializeBinaryFromReader),e.setOptions(r);break;default:t.skipField()}return e},proto.google.protobuf.EnumValueDescriptorProto.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.google.protobuf.EnumValueDescriptorProto.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.EnumValueDescriptorProto.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=o.Message.getField(e,1))&&t.writeString(1,r),null!=(r=o.Message.getField(e,2))&&t.writeInt32(2,r),null!=(r=e.getOptions())&&t.writeMessage(3,r,proto.google.protobuf.EnumValueOptions.serializeBinaryToWriter)},proto.google.protobuf.EnumValueDescriptorProto.prototype.getName=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.EnumValueDescriptorProto.prototype.setName=function(e){return o.Message.setField(this,1,e)},proto.google.protobuf.EnumValueDescriptorProto.prototype.clearName=function(){return o.Message.setField(this,1,void 0)},proto.google.protobuf.EnumValueDescriptorProto.prototype.hasName=function(){return null!=o.Message.getField(this,1)},proto.google.protobuf.EnumValueDescriptorProto.prototype.getNumber=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.google.protobuf.EnumValueDescriptorProto.prototype.setNumber=function(e){return o.Message.setField(this,2,e)},proto.google.protobuf.EnumValueDescriptorProto.prototype.clearNumber=function(){return o.Message.setField(this,2,void 0)},proto.google.protobuf.EnumValueDescriptorProto.prototype.hasNumber=function(){return null!=o.Message.getField(this,2)},proto.google.protobuf.EnumValueDescriptorProto.prototype.getOptions=function(){return o.Message.getWrapperField(this,proto.google.protobuf.EnumValueOptions,3)},proto.google.protobuf.EnumValueDescriptorProto.prototype.setOptions=function(e){return o.Message.setWrapperField(this,3,e)},proto.google.protobuf.EnumValueDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)},proto.google.protobuf.EnumValueDescriptorProto.prototype.hasOptions=function(){return null!=o.Message.getField(this,3)},proto.google.protobuf.ServiceDescriptorProto.repeatedFields_=[2],o.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.ServiceDescriptorProto.prototype.toObject=function(e){return proto.google.protobuf.ServiceDescriptorProto.toObject(e,this)},proto.google.protobuf.ServiceDescriptorProto.toObject=function(e,t){var r,i={name:null==(r=o.Message.getField(t,1))?void 0:r,methodList:o.Message.toObjectList(t.getMethodList(),proto.google.protobuf.MethodDescriptorProto.toObject,e),options:(r=t.getOptions())&&proto.google.protobuf.ServiceOptions.toObject(e,r)};return e&&(i.$jspbMessageInstance=t),i}),proto.google.protobuf.ServiceDescriptorProto.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.google.protobuf.ServiceDescriptorProto;return proto.google.protobuf.ServiceDescriptorProto.deserializeBinaryFromReader(r,t)},proto.google.protobuf.ServiceDescriptorProto.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setName(r);break;case 2:r=new proto.google.protobuf.MethodDescriptorProto,t.readMessage(r,proto.google.protobuf.MethodDescriptorProto.deserializeBinaryFromReader),e.addMethod(r);break;case 3:r=new proto.google.protobuf.ServiceOptions,t.readMessage(r,proto.google.protobuf.ServiceOptions.deserializeBinaryFromReader),e.setOptions(r);break;default:t.skipField()}return e},proto.google.protobuf.ServiceDescriptorProto.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.google.protobuf.ServiceDescriptorProto.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.ServiceDescriptorProto.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=o.Message.getField(e,1))&&t.writeString(1,r),(r=e.getMethodList()).length>0&&t.writeRepeatedMessage(2,r,proto.google.protobuf.MethodDescriptorProto.serializeBinaryToWriter),null!=(r=e.getOptions())&&t.writeMessage(3,r,proto.google.protobuf.ServiceOptions.serializeBinaryToWriter)},proto.google.protobuf.ServiceDescriptorProto.prototype.getName=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.ServiceDescriptorProto.prototype.setName=function(e){return o.Message.setField(this,1,e)},proto.google.protobuf.ServiceDescriptorProto.prototype.clearName=function(){return o.Message.setField(this,1,void 0)},proto.google.protobuf.ServiceDescriptorProto.prototype.hasName=function(){return null!=o.Message.getField(this,1)},proto.google.protobuf.ServiceDescriptorProto.prototype.getMethodList=function(){return o.Message.getRepeatedWrapperField(this,proto.google.protobuf.MethodDescriptorProto,2)},proto.google.protobuf.ServiceDescriptorProto.prototype.setMethodList=function(e){return o.Message.setRepeatedWrapperField(this,2,e)},proto.google.protobuf.ServiceDescriptorProto.prototype.addMethod=function(e,t){return o.Message.addToRepeatedWrapperField(this,2,e,proto.google.protobuf.MethodDescriptorProto,t)},proto.google.protobuf.ServiceDescriptorProto.prototype.clearMethodList=function(){return this.setMethodList([])},proto.google.protobuf.ServiceDescriptorProto.prototype.getOptions=function(){return o.Message.getWrapperField(this,proto.google.protobuf.ServiceOptions,3)},proto.google.protobuf.ServiceDescriptorProto.prototype.setOptions=function(e){return o.Message.setWrapperField(this,3,e)},proto.google.protobuf.ServiceDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)},proto.google.protobuf.ServiceDescriptorProto.prototype.hasOptions=function(){return null!=o.Message.getField(this,3)},o.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.MethodDescriptorProto.prototype.toObject=function(e){return proto.google.protobuf.MethodDescriptorProto.toObject(e,this)},proto.google.protobuf.MethodDescriptorProto.toObject=function(e,t){var r,i={name:null==(r=o.Message.getField(t,1))?void 0:r,inputType:null==(r=o.Message.getField(t,2))?void 0:r,outputType:null==(r=o.Message.getField(t,3))?void 0:r,options:(r=t.getOptions())&&proto.google.protobuf.MethodOptions.toObject(e,r),clientStreaming:o.Message.getBooleanFieldWithDefault(t,5,!1),serverStreaming:o.Message.getBooleanFieldWithDefault(t,6,!1)};return e&&(i.$jspbMessageInstance=t),i}),proto.google.protobuf.MethodDescriptorProto.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.google.protobuf.MethodDescriptorProto;return proto.google.protobuf.MethodDescriptorProto.deserializeBinaryFromReader(r,t)},proto.google.protobuf.MethodDescriptorProto.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setName(r);break;case 2:r=t.readString(),e.setInputType(r);break;case 3:r=t.readString(),e.setOutputType(r);break;case 4:r=new proto.google.protobuf.MethodOptions,t.readMessage(r,proto.google.protobuf.MethodOptions.deserializeBinaryFromReader),e.setOptions(r);break;case 5:r=t.readBool(),e.setClientStreaming(r);break;case 6:r=t.readBool(),e.setServerStreaming(r);break;default:t.skipField()}return e},proto.google.protobuf.MethodDescriptorProto.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.google.protobuf.MethodDescriptorProto.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.MethodDescriptorProto.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=o.Message.getField(e,1))&&t.writeString(1,r),null!=(r=o.Message.getField(e,2))&&t.writeString(2,r),null!=(r=o.Message.getField(e,3))&&t.writeString(3,r),null!=(r=e.getOptions())&&t.writeMessage(4,r,proto.google.protobuf.MethodOptions.serializeBinaryToWriter),null!=(r=o.Message.getField(e,5))&&t.writeBool(5,r),null!=(r=o.Message.getField(e,6))&&t.writeBool(6,r)},proto.google.protobuf.MethodDescriptorProto.prototype.getName=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.MethodDescriptorProto.prototype.setName=function(e){return o.Message.setField(this,1,e)},proto.google.protobuf.MethodDescriptorProto.prototype.clearName=function(){return o.Message.setField(this,1,void 0)},proto.google.protobuf.MethodDescriptorProto.prototype.hasName=function(){return null!=o.Message.getField(this,1)},proto.google.protobuf.MethodDescriptorProto.prototype.getInputType=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.google.protobuf.MethodDescriptorProto.prototype.setInputType=function(e){return o.Message.setField(this,2,e)},proto.google.protobuf.MethodDescriptorProto.prototype.clearInputType=function(){return o.Message.setField(this,2,void 0)},proto.google.protobuf.MethodDescriptorProto.prototype.hasInputType=function(){return null!=o.Message.getField(this,2)},proto.google.protobuf.MethodDescriptorProto.prototype.getOutputType=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.google.protobuf.MethodDescriptorProto.prototype.setOutputType=function(e){return o.Message.setField(this,3,e)},proto.google.protobuf.MethodDescriptorProto.prototype.clearOutputType=function(){return o.Message.setField(this,3,void 0)},proto.google.protobuf.MethodDescriptorProto.prototype.hasOutputType=function(){return null!=o.Message.getField(this,3)},proto.google.protobuf.MethodDescriptorProto.prototype.getOptions=function(){return o.Message.getWrapperField(this,proto.google.protobuf.MethodOptions,4)},proto.google.protobuf.MethodDescriptorProto.prototype.setOptions=function(e){return o.Message.setWrapperField(this,4,e)},proto.google.protobuf.MethodDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)},proto.google.protobuf.MethodDescriptorProto.prototype.hasOptions=function(){return null!=o.Message.getField(this,4)},proto.google.protobuf.MethodDescriptorProto.prototype.getClientStreaming=function(){return o.Message.getBooleanFieldWithDefault(this,5,!1)},proto.google.protobuf.MethodDescriptorProto.prototype.setClientStreaming=function(e){return o.Message.setField(this,5,e)},proto.google.protobuf.MethodDescriptorProto.prototype.clearClientStreaming=function(){return o.Message.setField(this,5,void 0)},proto.google.protobuf.MethodDescriptorProto.prototype.hasClientStreaming=function(){return null!=o.Message.getField(this,5)},proto.google.protobuf.MethodDescriptorProto.prototype.getServerStreaming=function(){return o.Message.getBooleanFieldWithDefault(this,6,!1)},proto.google.protobuf.MethodDescriptorProto.prototype.setServerStreaming=function(e){return o.Message.setField(this,6,e)},proto.google.protobuf.MethodDescriptorProto.prototype.clearServerStreaming=function(){return o.Message.setField(this,6,void 0)},proto.google.protobuf.MethodDescriptorProto.prototype.hasServerStreaming=function(){return null!=o.Message.getField(this,6)},proto.google.protobuf.FileOptions.repeatedFields_=[999],o.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FileOptions.prototype.toObject=function(e){return proto.google.protobuf.FileOptions.toObject(e,this)},proto.google.protobuf.FileOptions.toObject=function(e,t){var r,i={javaPackage:null==(r=o.Message.getField(t,1))?void 0:r,javaOuterClassname:null==(r=o.Message.getField(t,8))?void 0:r,javaMultipleFiles:o.Message.getBooleanFieldWithDefault(t,10,!1),javaGenerateEqualsAndHash:null==(r=o.Message.getBooleanField(t,20))?void 0:r,javaStringCheckUtf8:o.Message.getBooleanFieldWithDefault(t,27,!1),optimizeFor:o.Message.getFieldWithDefault(t,9,1),goPackage:null==(r=o.Message.getField(t,11))?void 0:r,ccGenericServices:o.Message.getBooleanFieldWithDefault(t,16,!1),javaGenericServices:o.Message.getBooleanFieldWithDefault(t,17,!1),pyGenericServices:o.Message.getBooleanFieldWithDefault(t,18,!1),phpGenericServices:o.Message.getBooleanFieldWithDefault(t,42,!1),deprecated:o.Message.getBooleanFieldWithDefault(t,23,!1),ccEnableArenas:o.Message.getBooleanFieldWithDefault(t,31,!0),objcClassPrefix:null==(r=o.Message.getField(t,36))?void 0:r,csharpNamespace:null==(r=o.Message.getField(t,37))?void 0:r,swiftPrefix:null==(r=o.Message.getField(t,39))?void 0:r,phpClassPrefix:null==(r=o.Message.getField(t,40))?void 0:r,phpNamespace:null==(r=o.Message.getField(t,41))?void 0:r,phpMetadataNamespace:null==(r=o.Message.getField(t,44))?void 0:r,rubyPackage:null==(r=o.Message.getField(t,45))?void 0:r,uninterpretedOptionList:o.Message.toObjectList(t.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,e)};return o.Message.toObjectExtension(t,i,proto.google.protobuf.FileOptions.extensions,proto.google.protobuf.FileOptions.prototype.getExtension,e),e&&(i.$jspbMessageInstance=t),i}),proto.google.protobuf.FileOptions.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.google.protobuf.FileOptions;return proto.google.protobuf.FileOptions.deserializeBinaryFromReader(r,t)},proto.google.protobuf.FileOptions.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setJavaPackage(r);break;case 8:r=t.readString(),e.setJavaOuterClassname(r);break;case 10:r=t.readBool(),e.setJavaMultipleFiles(r);break;case 20:r=t.readBool(),e.setJavaGenerateEqualsAndHash(r);break;case 27:r=t.readBool(),e.setJavaStringCheckUtf8(r);break;case 9:r=t.readEnum(),e.setOptimizeFor(r);break;case 11:r=t.readString(),e.setGoPackage(r);break;case 16:r=t.readBool(),e.setCcGenericServices(r);break;case 17:r=t.readBool(),e.setJavaGenericServices(r);break;case 18:r=t.readBool(),e.setPyGenericServices(r);break;case 42:r=t.readBool(),e.setPhpGenericServices(r);break;case 23:r=t.readBool(),e.setDeprecated(r);break;case 31:r=t.readBool(),e.setCcEnableArenas(r);break;case 36:r=t.readString(),e.setObjcClassPrefix(r);break;case 37:r=t.readString(),e.setCsharpNamespace(r);break;case 39:r=t.readString(),e.setSwiftPrefix(r);break;case 40:r=t.readString(),e.setPhpClassPrefix(r);break;case 41:r=t.readString(),e.setPhpNamespace(r);break;case 44:r=t.readString(),e.setPhpMetadataNamespace(r);break;case 45:r=t.readString(),e.setRubyPackage(r);break;case 999:r=new proto.google.protobuf.UninterpretedOption,t.readMessage(r,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),e.addUninterpretedOption(r);break;default:o.Message.readBinaryExtension(e,t,proto.google.protobuf.FileOptions.extensionsBinary,proto.google.protobuf.FileOptions.prototype.getExtension,proto.google.protobuf.FileOptions.prototype.setExtension)}return e},proto.google.protobuf.FileOptions.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.google.protobuf.FileOptions.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.FileOptions.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=o.Message.getField(e,1))&&t.writeString(1,r),null!=(r=o.Message.getField(e,8))&&t.writeString(8,r),null!=(r=o.Message.getField(e,10))&&t.writeBool(10,r),null!=(r=o.Message.getField(e,20))&&t.writeBool(20,r),null!=(r=o.Message.getField(e,27))&&t.writeBool(27,r),null!=(r=o.Message.getField(e,9))&&t.writeEnum(9,r),null!=(r=o.Message.getField(e,11))&&t.writeString(11,r),null!=(r=o.Message.getField(e,16))&&t.writeBool(16,r),null!=(r=o.Message.getField(e,17))&&t.writeBool(17,r),null!=(r=o.Message.getField(e,18))&&t.writeBool(18,r),null!=(r=o.Message.getField(e,42))&&t.writeBool(42,r),null!=(r=o.Message.getField(e,23))&&t.writeBool(23,r),null!=(r=o.Message.getField(e,31))&&t.writeBool(31,r),null!=(r=o.Message.getField(e,36))&&t.writeString(36,r),null!=(r=o.Message.getField(e,37))&&t.writeString(37,r),null!=(r=o.Message.getField(e,39))&&t.writeString(39,r),null!=(r=o.Message.getField(e,40))&&t.writeString(40,r),null!=(r=o.Message.getField(e,41))&&t.writeString(41,r),null!=(r=o.Message.getField(e,44))&&t.writeString(44,r),null!=(r=o.Message.getField(e,45))&&t.writeString(45,r),(r=e.getUninterpretedOptionList()).length>0&&t.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),o.Message.serializeBinaryExtensions(e,t,proto.google.protobuf.FileOptions.extensionsBinary,proto.google.protobuf.FileOptions.prototype.getExtension)},proto.google.protobuf.FileOptions.OptimizeMode={SPEED:1,CODE_SIZE:2,LITE_RUNTIME:3},proto.google.protobuf.FileOptions.prototype.getJavaPackage=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.FileOptions.prototype.setJavaPackage=function(e){return o.Message.setField(this,1,e)},proto.google.protobuf.FileOptions.prototype.clearJavaPackage=function(){return o.Message.setField(this,1,void 0)},proto.google.protobuf.FileOptions.prototype.hasJavaPackage=function(){return null!=o.Message.getField(this,1)},proto.google.protobuf.FileOptions.prototype.getJavaOuterClassname=function(){return o.Message.getFieldWithDefault(this,8,"")},proto.google.protobuf.FileOptions.prototype.setJavaOuterClassname=function(e){return o.Message.setField(this,8,e)},proto.google.protobuf.FileOptions.prototype.clearJavaOuterClassname=function(){return o.Message.setField(this,8,void 0)},proto.google.protobuf.FileOptions.prototype.hasJavaOuterClassname=function(){return null!=o.Message.getField(this,8)},proto.google.protobuf.FileOptions.prototype.getJavaMultipleFiles=function(){return o.Message.getBooleanFieldWithDefault(this,10,!1)},proto.google.protobuf.FileOptions.prototype.setJavaMultipleFiles=function(e){return o.Message.setField(this,10,e)},proto.google.protobuf.FileOptions.prototype.clearJavaMultipleFiles=function(){return o.Message.setField(this,10,void 0)},proto.google.protobuf.FileOptions.prototype.hasJavaMultipleFiles=function(){return null!=o.Message.getField(this,10)},proto.google.protobuf.FileOptions.prototype.getJavaGenerateEqualsAndHash=function(){return o.Message.getBooleanFieldWithDefault(this,20,!1)},proto.google.protobuf.FileOptions.prototype.setJavaGenerateEqualsAndHash=function(e){return o.Message.setField(this,20,e)},proto.google.protobuf.FileOptions.prototype.clearJavaGenerateEqualsAndHash=function(){return o.Message.setField(this,20,void 0)},proto.google.protobuf.FileOptions.prototype.hasJavaGenerateEqualsAndHash=function(){return null!=o.Message.getField(this,20)},proto.google.protobuf.FileOptions.prototype.getJavaStringCheckUtf8=function(){return o.Message.getBooleanFieldWithDefault(this,27,!1)},proto.google.protobuf.FileOptions.prototype.setJavaStringCheckUtf8=function(e){return o.Message.setField(this,27,e)},proto.google.protobuf.FileOptions.prototype.clearJavaStringCheckUtf8=function(){return o.Message.setField(this,27,void 0)},proto.google.protobuf.FileOptions.prototype.hasJavaStringCheckUtf8=function(){return null!=o.Message.getField(this,27)},proto.google.protobuf.FileOptions.prototype.getOptimizeFor=function(){return o.Message.getFieldWithDefault(this,9,1)},proto.google.protobuf.FileOptions.prototype.setOptimizeFor=function(e){return o.Message.setField(this,9,e)},proto.google.protobuf.FileOptions.prototype.clearOptimizeFor=function(){return o.Message.setField(this,9,void 0)},proto.google.protobuf.FileOptions.prototype.hasOptimizeFor=function(){return null!=o.Message.getField(this,9)},proto.google.protobuf.FileOptions.prototype.getGoPackage=function(){return o.Message.getFieldWithDefault(this,11,"")},proto.google.protobuf.FileOptions.prototype.setGoPackage=function(e){return o.Message.setField(this,11,e)},proto.google.protobuf.FileOptions.prototype.clearGoPackage=function(){return o.Message.setField(this,11,void 0)},proto.google.protobuf.FileOptions.prototype.hasGoPackage=function(){return null!=o.Message.getField(this,11)},proto.google.protobuf.FileOptions.prototype.getCcGenericServices=function(){return o.Message.getBooleanFieldWithDefault(this,16,!1)},proto.google.protobuf.FileOptions.prototype.setCcGenericServices=function(e){return o.Message.setField(this,16,e)},proto.google.protobuf.FileOptions.prototype.clearCcGenericServices=function(){return o.Message.setField(this,16,void 0)},proto.google.protobuf.FileOptions.prototype.hasCcGenericServices=function(){return null!=o.Message.getField(this,16)},proto.google.protobuf.FileOptions.prototype.getJavaGenericServices=function(){return o.Message.getBooleanFieldWithDefault(this,17,!1)},proto.google.protobuf.FileOptions.prototype.setJavaGenericServices=function(e){return o.Message.setField(this,17,e)},proto.google.protobuf.FileOptions.prototype.clearJavaGenericServices=function(){return o.Message.setField(this,17,void 0)},proto.google.protobuf.FileOptions.prototype.hasJavaGenericServices=function(){return null!=o.Message.getField(this,17)},proto.google.protobuf.FileOptions.prototype.getPyGenericServices=function(){return o.Message.getBooleanFieldWithDefault(this,18,!1)},proto.google.protobuf.FileOptions.prototype.setPyGenericServices=function(e){return o.Message.setField(this,18,e)},proto.google.protobuf.FileOptions.prototype.clearPyGenericServices=function(){return o.Message.setField(this,18,void 0)},proto.google.protobuf.FileOptions.prototype.hasPyGenericServices=function(){return null!=o.Message.getField(this,18)},proto.google.protobuf.FileOptions.prototype.getPhpGenericServices=function(){return o.Message.getBooleanFieldWithDefault(this,42,!1)},proto.google.protobuf.FileOptions.prototype.setPhpGenericServices=function(e){return o.Message.setField(this,42,e)},proto.google.protobuf.FileOptions.prototype.clearPhpGenericServices=function(){return o.Message.setField(this,42,void 0)},proto.google.protobuf.FileOptions.prototype.hasPhpGenericServices=function(){return null!=o.Message.getField(this,42)},proto.google.protobuf.FileOptions.prototype.getDeprecated=function(){return o.Message.getBooleanFieldWithDefault(this,23,!1)},proto.google.protobuf.FileOptions.prototype.setDeprecated=function(e){return o.Message.setField(this,23,e)},proto.google.protobuf.FileOptions.prototype.clearDeprecated=function(){return o.Message.setField(this,23,void 0)},proto.google.protobuf.FileOptions.prototype.hasDeprecated=function(){return null!=o.Message.getField(this,23)},proto.google.protobuf.FileOptions.prototype.getCcEnableArenas=function(){return o.Message.getBooleanFieldWithDefault(this,31,!0)},proto.google.protobuf.FileOptions.prototype.setCcEnableArenas=function(e){return o.Message.setField(this,31,e)},proto.google.protobuf.FileOptions.prototype.clearCcEnableArenas=function(){return o.Message.setField(this,31,void 0)},proto.google.protobuf.FileOptions.prototype.hasCcEnableArenas=function(){return null!=o.Message.getField(this,31)},proto.google.protobuf.FileOptions.prototype.getObjcClassPrefix=function(){return o.Message.getFieldWithDefault(this,36,"")},proto.google.protobuf.FileOptions.prototype.setObjcClassPrefix=function(e){return o.Message.setField(this,36,e)},proto.google.protobuf.FileOptions.prototype.clearObjcClassPrefix=function(){return o.Message.setField(this,36,void 0)},proto.google.protobuf.FileOptions.prototype.hasObjcClassPrefix=function(){return null!=o.Message.getField(this,36)},proto.google.protobuf.FileOptions.prototype.getCsharpNamespace=function(){return o.Message.getFieldWithDefault(this,37,"")},proto.google.protobuf.FileOptions.prototype.setCsharpNamespace=function(e){return o.Message.setField(this,37,e)},proto.google.protobuf.FileOptions.prototype.clearCsharpNamespace=function(){return o.Message.setField(this,37,void 0)},proto.google.protobuf.FileOptions.prototype.hasCsharpNamespace=function(){return null!=o.Message.getField(this,37)},proto.google.protobuf.FileOptions.prototype.getSwiftPrefix=function(){return o.Message.getFieldWithDefault(this,39,"")},proto.google.protobuf.FileOptions.prototype.setSwiftPrefix=function(e){return o.Message.setField(this,39,e)},proto.google.protobuf.FileOptions.prototype.clearSwiftPrefix=function(){return o.Message.setField(this,39,void 0)},proto.google.protobuf.FileOptions.prototype.hasSwiftPrefix=function(){return null!=o.Message.getField(this,39)},proto.google.protobuf.FileOptions.prototype.getPhpClassPrefix=function(){return o.Message.getFieldWithDefault(this,40,"")},proto.google.protobuf.FileOptions.prototype.setPhpClassPrefix=function(e){return o.Message.setField(this,40,e)},proto.google.protobuf.FileOptions.prototype.clearPhpClassPrefix=function(){return o.Message.setField(this,40,void 0)},proto.google.protobuf.FileOptions.prototype.hasPhpClassPrefix=function(){return null!=o.Message.getField(this,40)},proto.google.protobuf.FileOptions.prototype.getPhpNamespace=function(){return o.Message.getFieldWithDefault(this,41,"")},proto.google.protobuf.FileOptions.prototype.setPhpNamespace=function(e){return o.Message.setField(this,41,e)},proto.google.protobuf.FileOptions.prototype.clearPhpNamespace=function(){return o.Message.setField(this,41,void 0)},proto.google.protobuf.FileOptions.prototype.hasPhpNamespace=function(){return null!=o.Message.getField(this,41)},proto.google.protobuf.FileOptions.prototype.getPhpMetadataNamespace=function(){return o.Message.getFieldWithDefault(this,44,"")},proto.google.protobuf.FileOptions.prototype.setPhpMetadataNamespace=function(e){return o.Message.setField(this,44,e)},proto.google.protobuf.FileOptions.prototype.clearPhpMetadataNamespace=function(){return o.Message.setField(this,44,void 0)},proto.google.protobuf.FileOptions.prototype.hasPhpMetadataNamespace=function(){return null!=o.Message.getField(this,44)},proto.google.protobuf.FileOptions.prototype.getRubyPackage=function(){return o.Message.getFieldWithDefault(this,45,"")},proto.google.protobuf.FileOptions.prototype.setRubyPackage=function(e){return o.Message.setField(this,45,e)},proto.google.protobuf.FileOptions.prototype.clearRubyPackage=function(){return o.Message.setField(this,45,void 0)},proto.google.protobuf.FileOptions.prototype.hasRubyPackage=function(){return null!=o.Message.getField(this,45)},proto.google.protobuf.FileOptions.prototype.getUninterpretedOptionList=function(){return o.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)},proto.google.protobuf.FileOptions.prototype.setUninterpretedOptionList=function(e){return o.Message.setRepeatedWrapperField(this,999,e)},proto.google.protobuf.FileOptions.prototype.addUninterpretedOption=function(e,t){return o.Message.addToRepeatedWrapperField(this,999,e,proto.google.protobuf.UninterpretedOption,t)},proto.google.protobuf.FileOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])},proto.google.protobuf.MessageOptions.repeatedFields_=[999],o.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.MessageOptions.prototype.toObject=function(e){return proto.google.protobuf.MessageOptions.toObject(e,this)},proto.google.protobuf.MessageOptions.toObject=function(e,t){var r,i={messageSetWireFormat:o.Message.getBooleanFieldWithDefault(t,1,!1),noStandardDescriptorAccessor:o.Message.getBooleanFieldWithDefault(t,2,!1),deprecated:o.Message.getBooleanFieldWithDefault(t,3,!1),mapEntry:null==(r=o.Message.getBooleanField(t,7))?void 0:r,uninterpretedOptionList:o.Message.toObjectList(t.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,e)};return o.Message.toObjectExtension(t,i,proto.google.protobuf.MessageOptions.extensions,proto.google.protobuf.MessageOptions.prototype.getExtension,e),e&&(i.$jspbMessageInstance=t),i}),proto.google.protobuf.MessageOptions.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.google.protobuf.MessageOptions;return proto.google.protobuf.MessageOptions.deserializeBinaryFromReader(r,t)},proto.google.protobuf.MessageOptions.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBool();e.setMessageSetWireFormat(r);break;case 2:r=t.readBool(),e.setNoStandardDescriptorAccessor(r);break;case 3:r=t.readBool(),e.setDeprecated(r);break;case 7:r=t.readBool(),e.setMapEntry(r);break;case 999:r=new proto.google.protobuf.UninterpretedOption,t.readMessage(r,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),e.addUninterpretedOption(r);break;default:o.Message.readBinaryExtension(e,t,proto.google.protobuf.MessageOptions.extensionsBinary,proto.google.protobuf.MessageOptions.prototype.getExtension,proto.google.protobuf.MessageOptions.prototype.setExtension)}return e},proto.google.protobuf.MessageOptions.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.google.protobuf.MessageOptions.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.MessageOptions.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=o.Message.getField(e,1))&&t.writeBool(1,r),null!=(r=o.Message.getField(e,2))&&t.writeBool(2,r),null!=(r=o.Message.getField(e,3))&&t.writeBool(3,r),null!=(r=o.Message.getField(e,7))&&t.writeBool(7,r),(r=e.getUninterpretedOptionList()).length>0&&t.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),o.Message.serializeBinaryExtensions(e,t,proto.google.protobuf.MessageOptions.extensionsBinary,proto.google.protobuf.MessageOptions.prototype.getExtension)},proto.google.protobuf.MessageOptions.prototype.getMessageSetWireFormat=function(){return o.Message.getBooleanFieldWithDefault(this,1,!1)},proto.google.protobuf.MessageOptions.prototype.setMessageSetWireFormat=function(e){return o.Message.setField(this,1,e)},proto.google.protobuf.MessageOptions.prototype.clearMessageSetWireFormat=function(){return o.Message.setField(this,1,void 0)},proto.google.protobuf.MessageOptions.prototype.hasMessageSetWireFormat=function(){return null!=o.Message.getField(this,1)},proto.google.protobuf.MessageOptions.prototype.getNoStandardDescriptorAccessor=function(){return o.Message.getBooleanFieldWithDefault(this,2,!1)},proto.google.protobuf.MessageOptions.prototype.setNoStandardDescriptorAccessor=function(e){return o.Message.setField(this,2,e)},proto.google.protobuf.MessageOptions.prototype.clearNoStandardDescriptorAccessor=function(){return o.Message.setField(this,2,void 0)},proto.google.protobuf.MessageOptions.prototype.hasNoStandardDescriptorAccessor=function(){return null!=o.Message.getField(this,2)},proto.google.protobuf.MessageOptions.prototype.getDeprecated=function(){return o.Message.getBooleanFieldWithDefault(this,3,!1)},proto.google.protobuf.MessageOptions.prototype.setDeprecated=function(e){return o.Message.setField(this,3,e)},proto.google.protobuf.MessageOptions.prototype.clearDeprecated=function(){return o.Message.setField(this,3,void 0)},proto.google.protobuf.MessageOptions.prototype.hasDeprecated=function(){return null!=o.Message.getField(this,3)},proto.google.protobuf.MessageOptions.prototype.getMapEntry=function(){return o.Message.getBooleanFieldWithDefault(this,7,!1)},proto.google.protobuf.MessageOptions.prototype.setMapEntry=function(e){return o.Message.setField(this,7,e)},proto.google.protobuf.MessageOptions.prototype.clearMapEntry=function(){return o.Message.setField(this,7,void 0)},proto.google.protobuf.MessageOptions.prototype.hasMapEntry=function(){return null!=o.Message.getField(this,7)},proto.google.protobuf.MessageOptions.prototype.getUninterpretedOptionList=function(){return o.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)},proto.google.protobuf.MessageOptions.prototype.setUninterpretedOptionList=function(e){return o.Message.setRepeatedWrapperField(this,999,e)},proto.google.protobuf.MessageOptions.prototype.addUninterpretedOption=function(e,t){return o.Message.addToRepeatedWrapperField(this,999,e,proto.google.protobuf.UninterpretedOption,t)},proto.google.protobuf.MessageOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])},proto.google.protobuf.FieldOptions.repeatedFields_=[999],o.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FieldOptions.prototype.toObject=function(e){return proto.google.protobuf.FieldOptions.toObject(e,this)},proto.google.protobuf.FieldOptions.toObject=function(e,t){var r,i={ctype:o.Message.getFieldWithDefault(t,1,0),packed:null==(r=o.Message.getBooleanField(t,2))?void 0:r,jstype:o.Message.getFieldWithDefault(t,6,0),lazy:o.Message.getBooleanFieldWithDefault(t,5,!1),unverifiedLazy:o.Message.getBooleanFieldWithDefault(t,15,!1),deprecated:o.Message.getBooleanFieldWithDefault(t,3,!1),weak:o.Message.getBooleanFieldWithDefault(t,10,!1),uninterpretedOptionList:o.Message.toObjectList(t.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,e)};return o.Message.toObjectExtension(t,i,proto.google.protobuf.FieldOptions.extensions,proto.google.protobuf.FieldOptions.prototype.getExtension,e),e&&(i.$jspbMessageInstance=t),i}),proto.google.protobuf.FieldOptions.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.google.protobuf.FieldOptions;return proto.google.protobuf.FieldOptions.deserializeBinaryFromReader(r,t)},proto.google.protobuf.FieldOptions.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setCtype(r);break;case 2:r=t.readBool(),e.setPacked(r);break;case 6:r=t.readEnum(),e.setJstype(r);break;case 5:r=t.readBool(),e.setLazy(r);break;case 15:r=t.readBool(),e.setUnverifiedLazy(r);break;case 3:r=t.readBool(),e.setDeprecated(r);break;case 10:r=t.readBool(),e.setWeak(r);break;case 999:r=new proto.google.protobuf.UninterpretedOption,t.readMessage(r,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),e.addUninterpretedOption(r);break;default:o.Message.readBinaryExtension(e,t,proto.google.protobuf.FieldOptions.extensionsBinary,proto.google.protobuf.FieldOptions.prototype.getExtension,proto.google.protobuf.FieldOptions.prototype.setExtension)}return e},proto.google.protobuf.FieldOptions.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.google.protobuf.FieldOptions.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.FieldOptions.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=o.Message.getField(e,1))&&t.writeEnum(1,r),null!=(r=o.Message.getField(e,2))&&t.writeBool(2,r),null!=(r=o.Message.getField(e,6))&&t.writeEnum(6,r),null!=(r=o.Message.getField(e,5))&&t.writeBool(5,r),null!=(r=o.Message.getField(e,15))&&t.writeBool(15,r),null!=(r=o.Message.getField(e,3))&&t.writeBool(3,r),null!=(r=o.Message.getField(e,10))&&t.writeBool(10,r),(r=e.getUninterpretedOptionList()).length>0&&t.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),o.Message.serializeBinaryExtensions(e,t,proto.google.protobuf.FieldOptions.extensionsBinary,proto.google.protobuf.FieldOptions.prototype.getExtension)},proto.google.protobuf.FieldOptions.CType={STRING:0,CORD:1,STRING_PIECE:2},proto.google.protobuf.FieldOptions.JSType={JS_NORMAL:0,JS_STRING:1,JS_NUMBER:2},proto.google.protobuf.FieldOptions.prototype.getCtype=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.FieldOptions.prototype.setCtype=function(e){return o.Message.setField(this,1,e)},proto.google.protobuf.FieldOptions.prototype.clearCtype=function(){return o.Message.setField(this,1,void 0)},proto.google.protobuf.FieldOptions.prototype.hasCtype=function(){return null!=o.Message.getField(this,1)},proto.google.protobuf.FieldOptions.prototype.getPacked=function(){return o.Message.getBooleanFieldWithDefault(this,2,!1)},proto.google.protobuf.FieldOptions.prototype.setPacked=function(e){return o.Message.setField(this,2,e)},proto.google.protobuf.FieldOptions.prototype.clearPacked=function(){return o.Message.setField(this,2,void 0)},proto.google.protobuf.FieldOptions.prototype.hasPacked=function(){return null!=o.Message.getField(this,2)},proto.google.protobuf.FieldOptions.prototype.getJstype=function(){return o.Message.getFieldWithDefault(this,6,0)},proto.google.protobuf.FieldOptions.prototype.setJstype=function(e){return o.Message.setField(this,6,e)},proto.google.protobuf.FieldOptions.prototype.clearJstype=function(){return o.Message.setField(this,6,void 0)},proto.google.protobuf.FieldOptions.prototype.hasJstype=function(){return null!=o.Message.getField(this,6)},proto.google.protobuf.FieldOptions.prototype.getLazy=function(){return o.Message.getBooleanFieldWithDefault(this,5,!1)},proto.google.protobuf.FieldOptions.prototype.setLazy=function(e){return o.Message.setField(this,5,e)},proto.google.protobuf.FieldOptions.prototype.clearLazy=function(){return o.Message.setField(this,5,void 0)},proto.google.protobuf.FieldOptions.prototype.hasLazy=function(){return null!=o.Message.getField(this,5)},proto.google.protobuf.FieldOptions.prototype.getUnverifiedLazy=function(){return o.Message.getBooleanFieldWithDefault(this,15,!1)},proto.google.protobuf.FieldOptions.prototype.setUnverifiedLazy=function(e){return o.Message.setField(this,15,e)},proto.google.protobuf.FieldOptions.prototype.clearUnverifiedLazy=function(){return o.Message.setField(this,15,void 0)},proto.google.protobuf.FieldOptions.prototype.hasUnverifiedLazy=function(){return null!=o.Message.getField(this,15)},proto.google.protobuf.FieldOptions.prototype.getDeprecated=function(){return o.Message.getBooleanFieldWithDefault(this,3,!1)},proto.google.protobuf.FieldOptions.prototype.setDeprecated=function(e){return o.Message.setField(this,3,e)},proto.google.protobuf.FieldOptions.prototype.clearDeprecated=function(){return o.Message.setField(this,3,void 0)},proto.google.protobuf.FieldOptions.prototype.hasDeprecated=function(){return null!=o.Message.getField(this,3)},proto.google.protobuf.FieldOptions.prototype.getWeak=function(){return o.Message.getBooleanFieldWithDefault(this,10,!1)},proto.google.protobuf.FieldOptions.prototype.setWeak=function(e){return o.Message.setField(this,10,e)},proto.google.protobuf.FieldOptions.prototype.clearWeak=function(){return o.Message.setField(this,10,void 0)},proto.google.protobuf.FieldOptions.prototype.hasWeak=function(){return null!=o.Message.getField(this,10)},proto.google.protobuf.FieldOptions.prototype.getUninterpretedOptionList=function(){return o.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)},proto.google.protobuf.FieldOptions.prototype.setUninterpretedOptionList=function(e){return o.Message.setRepeatedWrapperField(this,999,e)},proto.google.protobuf.FieldOptions.prototype.addUninterpretedOption=function(e,t){return o.Message.addToRepeatedWrapperField(this,999,e,proto.google.protobuf.UninterpretedOption,t)},proto.google.protobuf.FieldOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])},proto.google.protobuf.OneofOptions.repeatedFields_=[999],o.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.OneofOptions.prototype.toObject=function(e){return proto.google.protobuf.OneofOptions.toObject(e,this)},proto.google.protobuf.OneofOptions.toObject=function(e,t){var r={uninterpretedOptionList:o.Message.toObjectList(t.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,e)};return o.Message.toObjectExtension(t,r,proto.google.protobuf.OneofOptions.extensions,proto.google.protobuf.OneofOptions.prototype.getExtension,e),e&&(r.$jspbMessageInstance=t),r}),proto.google.protobuf.OneofOptions.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.google.protobuf.OneofOptions;return proto.google.protobuf.OneofOptions.deserializeBinaryFromReader(r,t)},proto.google.protobuf.OneofOptions.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(999===t.getFieldNumber()){var r=new proto.google.protobuf.UninterpretedOption;t.readMessage(r,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),e.addUninterpretedOption(r)}else o.Message.readBinaryExtension(e,t,proto.google.protobuf.OneofOptions.extensionsBinary,proto.google.protobuf.OneofOptions.prototype.getExtension,proto.google.protobuf.OneofOptions.prototype.setExtension);return e},proto.google.protobuf.OneofOptions.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.google.protobuf.OneofOptions.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.OneofOptions.serializeBinaryToWriter=function(e,t){var r;(r=e.getUninterpretedOptionList()).length>0&&t.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),o.Message.serializeBinaryExtensions(e,t,proto.google.protobuf.OneofOptions.extensionsBinary,proto.google.protobuf.OneofOptions.prototype.getExtension)},proto.google.protobuf.OneofOptions.prototype.getUninterpretedOptionList=function(){return o.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)},proto.google.protobuf.OneofOptions.prototype.setUninterpretedOptionList=function(e){return o.Message.setRepeatedWrapperField(this,999,e)},proto.google.protobuf.OneofOptions.prototype.addUninterpretedOption=function(e,t){return o.Message.addToRepeatedWrapperField(this,999,e,proto.google.protobuf.UninterpretedOption,t)},proto.google.protobuf.OneofOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])},proto.google.protobuf.EnumOptions.repeatedFields_=[999],o.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.EnumOptions.prototype.toObject=function(e){return proto.google.protobuf.EnumOptions.toObject(e,this)},proto.google.protobuf.EnumOptions.toObject=function(e,t){var r,i={allowAlias:null==(r=o.Message.getBooleanField(t,2))?void 0:r,deprecated:o.Message.getBooleanFieldWithDefault(t,3,!1),uninterpretedOptionList:o.Message.toObjectList(t.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,e)};return o.Message.toObjectExtension(t,i,proto.google.protobuf.EnumOptions.extensions,proto.google.protobuf.EnumOptions.prototype.getExtension,e),e&&(i.$jspbMessageInstance=t),i}),proto.google.protobuf.EnumOptions.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.google.protobuf.EnumOptions;return proto.google.protobuf.EnumOptions.deserializeBinaryFromReader(r,t)},proto.google.protobuf.EnumOptions.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 2:var r=t.readBool();e.setAllowAlias(r);break;case 3:r=t.readBool(),e.setDeprecated(r);break;case 999:r=new proto.google.protobuf.UninterpretedOption,t.readMessage(r,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),e.addUninterpretedOption(r);break;default:o.Message.readBinaryExtension(e,t,proto.google.protobuf.EnumOptions.extensionsBinary,proto.google.protobuf.EnumOptions.prototype.getExtension,proto.google.protobuf.EnumOptions.prototype.setExtension)}return e},proto.google.protobuf.EnumOptions.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.google.protobuf.EnumOptions.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.EnumOptions.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=o.Message.getField(e,2))&&t.writeBool(2,r),null!=(r=o.Message.getField(e,3))&&t.writeBool(3,r),(r=e.getUninterpretedOptionList()).length>0&&t.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),o.Message.serializeBinaryExtensions(e,t,proto.google.protobuf.EnumOptions.extensionsBinary,proto.google.protobuf.EnumOptions.prototype.getExtension)},proto.google.protobuf.EnumOptions.prototype.getAllowAlias=function(){return o.Message.getBooleanFieldWithDefault(this,2,!1)},proto.google.protobuf.EnumOptions.prototype.setAllowAlias=function(e){return o.Message.setField(this,2,e)},proto.google.protobuf.EnumOptions.prototype.clearAllowAlias=function(){return o.Message.setField(this,2,void 0)},proto.google.protobuf.EnumOptions.prototype.hasAllowAlias=function(){return null!=o.Message.getField(this,2)},proto.google.protobuf.EnumOptions.prototype.getDeprecated=function(){return o.Message.getBooleanFieldWithDefault(this,3,!1)},proto.google.protobuf.EnumOptions.prototype.setDeprecated=function(e){return o.Message.setField(this,3,e)},proto.google.protobuf.EnumOptions.prototype.clearDeprecated=function(){return o.Message.setField(this,3,void 0)},proto.google.protobuf.EnumOptions.prototype.hasDeprecated=function(){return null!=o.Message.getField(this,3)},proto.google.protobuf.EnumOptions.prototype.getUninterpretedOptionList=function(){return o.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)},proto.google.protobuf.EnumOptions.prototype.setUninterpretedOptionList=function(e){return o.Message.setRepeatedWrapperField(this,999,e)},proto.google.protobuf.EnumOptions.prototype.addUninterpretedOption=function(e,t){return o.Message.addToRepeatedWrapperField(this,999,e,proto.google.protobuf.UninterpretedOption,t)},proto.google.protobuf.EnumOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])},proto.google.protobuf.EnumValueOptions.repeatedFields_=[999],o.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.EnumValueOptions.prototype.toObject=function(e){return proto.google.protobuf.EnumValueOptions.toObject(e,this)},proto.google.protobuf.EnumValueOptions.toObject=function(e,t){var r={deprecated:o.Message.getBooleanFieldWithDefault(t,1,!1),uninterpretedOptionList:o.Message.toObjectList(t.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,e)};return o.Message.toObjectExtension(t,r,proto.google.protobuf.EnumValueOptions.extensions,proto.google.protobuf.EnumValueOptions.prototype.getExtension,e),e&&(r.$jspbMessageInstance=t),r}),proto.google.protobuf.EnumValueOptions.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.google.protobuf.EnumValueOptions;return proto.google.protobuf.EnumValueOptions.deserializeBinaryFromReader(r,t)},proto.google.protobuf.EnumValueOptions.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBool();e.setDeprecated(r);break;case 999:r=new proto.google.protobuf.UninterpretedOption,t.readMessage(r,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),e.addUninterpretedOption(r);break;default:o.Message.readBinaryExtension(e,t,proto.google.protobuf.EnumValueOptions.extensionsBinary,proto.google.protobuf.EnumValueOptions.prototype.getExtension,proto.google.protobuf.EnumValueOptions.prototype.setExtension)}return e},proto.google.protobuf.EnumValueOptions.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.google.protobuf.EnumValueOptions.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.EnumValueOptions.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=o.Message.getField(e,1))&&t.writeBool(1,r),(r=e.getUninterpretedOptionList()).length>0&&t.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),o.Message.serializeBinaryExtensions(e,t,proto.google.protobuf.EnumValueOptions.extensionsBinary,proto.google.protobuf.EnumValueOptions.prototype.getExtension)},proto.google.protobuf.EnumValueOptions.prototype.getDeprecated=function(){return o.Message.getBooleanFieldWithDefault(this,1,!1)},proto.google.protobuf.EnumValueOptions.prototype.setDeprecated=function(e){return o.Message.setField(this,1,e)},proto.google.protobuf.EnumValueOptions.prototype.clearDeprecated=function(){return o.Message.setField(this,1,void 0)},proto.google.protobuf.EnumValueOptions.prototype.hasDeprecated=function(){return null!=o.Message.getField(this,1)},proto.google.protobuf.EnumValueOptions.prototype.getUninterpretedOptionList=function(){return o.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)},proto.google.protobuf.EnumValueOptions.prototype.setUninterpretedOptionList=function(e){return o.Message.setRepeatedWrapperField(this,999,e)},proto.google.protobuf.EnumValueOptions.prototype.addUninterpretedOption=function(e,t){return o.Message.addToRepeatedWrapperField(this,999,e,proto.google.protobuf.UninterpretedOption,t)},proto.google.protobuf.EnumValueOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])},proto.google.protobuf.ServiceOptions.repeatedFields_=[999],o.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.ServiceOptions.prototype.toObject=function(e){return proto.google.protobuf.ServiceOptions.toObject(e,this)},proto.google.protobuf.ServiceOptions.toObject=function(e,t){var r={deprecated:o.Message.getBooleanFieldWithDefault(t,33,!1),uninterpretedOptionList:o.Message.toObjectList(t.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,e)};return o.Message.toObjectExtension(t,r,proto.google.protobuf.ServiceOptions.extensions,proto.google.protobuf.ServiceOptions.prototype.getExtension,e),e&&(r.$jspbMessageInstance=t),r}),proto.google.protobuf.ServiceOptions.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.google.protobuf.ServiceOptions;return proto.google.protobuf.ServiceOptions.deserializeBinaryFromReader(r,t)},proto.google.protobuf.ServiceOptions.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 33:var r=t.readBool();e.setDeprecated(r);break;case 999:r=new proto.google.protobuf.UninterpretedOption,t.readMessage(r,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),e.addUninterpretedOption(r);break;default:o.Message.readBinaryExtension(e,t,proto.google.protobuf.ServiceOptions.extensionsBinary,proto.google.protobuf.ServiceOptions.prototype.getExtension,proto.google.protobuf.ServiceOptions.prototype.setExtension)}return e},proto.google.protobuf.ServiceOptions.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.google.protobuf.ServiceOptions.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.ServiceOptions.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=o.Message.getField(e,33))&&t.writeBool(33,r),(r=e.getUninterpretedOptionList()).length>0&&t.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),o.Message.serializeBinaryExtensions(e,t,proto.google.protobuf.ServiceOptions.extensionsBinary,proto.google.protobuf.ServiceOptions.prototype.getExtension)},proto.google.protobuf.ServiceOptions.prototype.getDeprecated=function(){return o.Message.getBooleanFieldWithDefault(this,33,!1)},proto.google.protobuf.ServiceOptions.prototype.setDeprecated=function(e){return o.Message.setField(this,33,e)},proto.google.protobuf.ServiceOptions.prototype.clearDeprecated=function(){return o.Message.setField(this,33,void 0)},proto.google.protobuf.ServiceOptions.prototype.hasDeprecated=function(){return null!=o.Message.getField(this,33)},proto.google.protobuf.ServiceOptions.prototype.getUninterpretedOptionList=function(){return o.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)},proto.google.protobuf.ServiceOptions.prototype.setUninterpretedOptionList=function(e){return o.Message.setRepeatedWrapperField(this,999,e)},proto.google.protobuf.ServiceOptions.prototype.addUninterpretedOption=function(e,t){return o.Message.addToRepeatedWrapperField(this,999,e,proto.google.protobuf.UninterpretedOption,t)},proto.google.protobuf.ServiceOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])},proto.google.protobuf.MethodOptions.repeatedFields_=[999],o.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.MethodOptions.prototype.toObject=function(e){return proto.google.protobuf.MethodOptions.toObject(e,this)},proto.google.protobuf.MethodOptions.toObject=function(e,t){var r={deprecated:o.Message.getBooleanFieldWithDefault(t,33,!1),idempotencyLevel:o.Message.getFieldWithDefault(t,34,0),uninterpretedOptionList:o.Message.toObjectList(t.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,e)};return o.Message.toObjectExtension(t,r,proto.google.protobuf.MethodOptions.extensions,proto.google.protobuf.MethodOptions.prototype.getExtension,e),e&&(r.$jspbMessageInstance=t),r}),proto.google.protobuf.MethodOptions.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.google.protobuf.MethodOptions;return proto.google.protobuf.MethodOptions.deserializeBinaryFromReader(r,t)},proto.google.protobuf.MethodOptions.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 33:var r=t.readBool();e.setDeprecated(r);break;case 34:r=t.readEnum(),e.setIdempotencyLevel(r);break;case 999:r=new proto.google.protobuf.UninterpretedOption,t.readMessage(r,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),e.addUninterpretedOption(r);break;default:o.Message.readBinaryExtension(e,t,proto.google.protobuf.MethodOptions.extensionsBinary,proto.google.protobuf.MethodOptions.prototype.getExtension,proto.google.protobuf.MethodOptions.prototype.setExtension)}return e},proto.google.protobuf.MethodOptions.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.google.protobuf.MethodOptions.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.MethodOptions.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=o.Message.getField(e,33))&&t.writeBool(33,r),null!=(r=o.Message.getField(e,34))&&t.writeEnum(34,r),(r=e.getUninterpretedOptionList()).length>0&&t.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),o.Message.serializeBinaryExtensions(e,t,proto.google.protobuf.MethodOptions.extensionsBinary,proto.google.protobuf.MethodOptions.prototype.getExtension)},proto.google.protobuf.MethodOptions.IdempotencyLevel={IDEMPOTENCY_UNKNOWN:0,NO_SIDE_EFFECTS:1,IDEMPOTENT:2},proto.google.protobuf.MethodOptions.prototype.getDeprecated=function(){return o.Message.getBooleanFieldWithDefault(this,33,!1)},proto.google.protobuf.MethodOptions.prototype.setDeprecated=function(e){return o.Message.setField(this,33,e)},proto.google.protobuf.MethodOptions.prototype.clearDeprecated=function(){return o.Message.setField(this,33,void 0)},proto.google.protobuf.MethodOptions.prototype.hasDeprecated=function(){return null!=o.Message.getField(this,33)},proto.google.protobuf.MethodOptions.prototype.getIdempotencyLevel=function(){return o.Message.getFieldWithDefault(this,34,0)},proto.google.protobuf.MethodOptions.prototype.setIdempotencyLevel=function(e){return o.Message.setField(this,34,e)},proto.google.protobuf.MethodOptions.prototype.clearIdempotencyLevel=function(){return o.Message.setField(this,34,void 0)},proto.google.protobuf.MethodOptions.prototype.hasIdempotencyLevel=function(){return null!=o.Message.getField(this,34)},proto.google.protobuf.MethodOptions.prototype.getUninterpretedOptionList=function(){return o.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)},proto.google.protobuf.MethodOptions.prototype.setUninterpretedOptionList=function(e){return o.Message.setRepeatedWrapperField(this,999,e)},proto.google.protobuf.MethodOptions.prototype.addUninterpretedOption=function(e,t){return o.Message.addToRepeatedWrapperField(this,999,e,proto.google.protobuf.UninterpretedOption,t)},proto.google.protobuf.MethodOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])},proto.google.protobuf.UninterpretedOption.repeatedFields_=[2],o.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.UninterpretedOption.prototype.toObject=function(e){return proto.google.protobuf.UninterpretedOption.toObject(e,this)},proto.google.protobuf.UninterpretedOption.toObject=function(e,t){var r,i={nameList:o.Message.toObjectList(t.getNameList(),proto.google.protobuf.UninterpretedOption.NamePart.toObject,e),identifierValue:null==(r=o.Message.getField(t,3))?void 0:r,positiveIntValue:null==(r=o.Message.getField(t,4))?void 0:r,negativeIntValue:null==(r=o.Message.getField(t,5))?void 0:r,doubleValue:null==(r=o.Message.getOptionalFloatingPointField(t,6))?void 0:r,stringValue:t.getStringValue_asB64(),aggregateValue:null==(r=o.Message.getField(t,8))?void 0:r};return e&&(i.$jspbMessageInstance=t),i}),proto.google.protobuf.UninterpretedOption.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.google.protobuf.UninterpretedOption;return proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader(r,t)},proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 2:var r=new proto.google.protobuf.UninterpretedOption.NamePart;t.readMessage(r,proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinaryFromReader),e.addName(r);break;case 3:r=t.readString(),e.setIdentifierValue(r);break;case 4:r=t.readUint64(),e.setPositiveIntValue(r);break;case 5:r=t.readInt64(),e.setNegativeIntValue(r);break;case 6:r=t.readDouble(),e.setDoubleValue(r);break;case 7:r=t.readBytes(),e.setStringValue(r);break;case 8:r=t.readString(),e.setAggregateValue(r);break;default:t.skipField()}return e},proto.google.protobuf.UninterpretedOption.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getNameList()).length>0&&t.writeRepeatedMessage(2,r,proto.google.protobuf.UninterpretedOption.NamePart.serializeBinaryToWriter),null!=(r=o.Message.getField(e,3))&&t.writeString(3,r),null!=(r=o.Message.getField(e,4))&&t.writeUint64(4,r),null!=(r=o.Message.getField(e,5))&&t.writeInt64(5,r),null!=(r=o.Message.getField(e,6))&&t.writeDouble(6,r),null!=(r=o.Message.getField(e,7))&&t.writeBytes(7,r),null!=(r=o.Message.getField(e,8))&&t.writeString(8,r)},o.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.UninterpretedOption.NamePart.prototype.toObject=function(e){return proto.google.protobuf.UninterpretedOption.NamePart.toObject(e,this)},proto.google.protobuf.UninterpretedOption.NamePart.toObject=function(e,t){var r,i={namePart:null==(r=o.Message.getField(t,1))?void 0:r,isExtension:null==(r=o.Message.getBooleanField(t,2))?void 0:r};return e&&(i.$jspbMessageInstance=t),i}),proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.google.protobuf.UninterpretedOption.NamePart;return proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinaryFromReader(r,t)},proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setNamePart(r);break;case 2:r=t.readBool(),e.setIsExtension(r);break;default:t.skipField()}return e},proto.google.protobuf.UninterpretedOption.NamePart.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.google.protobuf.UninterpretedOption.NamePart.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.UninterpretedOption.NamePart.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=o.Message.getField(e,1))&&t.writeString(1,r),null!=(r=o.Message.getField(e,2))&&t.writeBool(2,r)},proto.google.protobuf.UninterpretedOption.NamePart.prototype.getNamePart=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.UninterpretedOption.NamePart.prototype.setNamePart=function(e){return o.Message.setField(this,1,e)},proto.google.protobuf.UninterpretedOption.NamePart.prototype.clearNamePart=function(){return o.Message.setField(this,1,void 0)},proto.google.protobuf.UninterpretedOption.NamePart.prototype.hasNamePart=function(){return null!=o.Message.getField(this,1)},proto.google.protobuf.UninterpretedOption.NamePart.prototype.getIsExtension=function(){return o.Message.getBooleanFieldWithDefault(this,2,!1)},proto.google.protobuf.UninterpretedOption.NamePart.prototype.setIsExtension=function(e){return o.Message.setField(this,2,e)},proto.google.protobuf.UninterpretedOption.NamePart.prototype.clearIsExtension=function(){return o.Message.setField(this,2,void 0)},proto.google.protobuf.UninterpretedOption.NamePart.prototype.hasIsExtension=function(){return null!=o.Message.getField(this,2)},proto.google.protobuf.UninterpretedOption.prototype.getNameList=function(){return o.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption.NamePart,2)},proto.google.protobuf.UninterpretedOption.prototype.setNameList=function(e){return o.Message.setRepeatedWrapperField(this,2,e)},proto.google.protobuf.UninterpretedOption.prototype.addName=function(e,t){return o.Message.addToRepeatedWrapperField(this,2,e,proto.google.protobuf.UninterpretedOption.NamePart,t)},proto.google.protobuf.UninterpretedOption.prototype.clearNameList=function(){return this.setNameList([])},proto.google.protobuf.UninterpretedOption.prototype.getIdentifierValue=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.google.protobuf.UninterpretedOption.prototype.setIdentifierValue=function(e){return o.Message.setField(this,3,e)},proto.google.protobuf.UninterpretedOption.prototype.clearIdentifierValue=function(){return o.Message.setField(this,3,void 0)},proto.google.protobuf.UninterpretedOption.prototype.hasIdentifierValue=function(){return null!=o.Message.getField(this,3)},proto.google.protobuf.UninterpretedOption.prototype.getPositiveIntValue=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.google.protobuf.UninterpretedOption.prototype.setPositiveIntValue=function(e){return o.Message.setField(this,4,e)},proto.google.protobuf.UninterpretedOption.prototype.clearPositiveIntValue=function(){return o.Message.setField(this,4,void 0)},proto.google.protobuf.UninterpretedOption.prototype.hasPositiveIntValue=function(){return null!=o.Message.getField(this,4)},proto.google.protobuf.UninterpretedOption.prototype.getNegativeIntValue=function(){return o.Message.getFieldWithDefault(this,5,0)},proto.google.protobuf.UninterpretedOption.prototype.setNegativeIntValue=function(e){return o.Message.setField(this,5,e)},proto.google.protobuf.UninterpretedOption.prototype.clearNegativeIntValue=function(){return o.Message.setField(this,5,void 0)},proto.google.protobuf.UninterpretedOption.prototype.hasNegativeIntValue=function(){return null!=o.Message.getField(this,5)},proto.google.protobuf.UninterpretedOption.prototype.getDoubleValue=function(){return o.Message.getFloatingPointFieldWithDefault(this,6,0)},proto.google.protobuf.UninterpretedOption.prototype.setDoubleValue=function(e){return o.Message.setField(this,6,e)},proto.google.protobuf.UninterpretedOption.prototype.clearDoubleValue=function(){return o.Message.setField(this,6,void 0)},proto.google.protobuf.UninterpretedOption.prototype.hasDoubleValue=function(){return null!=o.Message.getField(this,6)},proto.google.protobuf.UninterpretedOption.prototype.getStringValue=function(){return o.Message.getFieldWithDefault(this,7,"")},proto.google.protobuf.UninterpretedOption.prototype.getStringValue_asB64=function(){return o.Message.bytesAsB64(this.getStringValue())},proto.google.protobuf.UninterpretedOption.prototype.getStringValue_asU8=function(){return o.Message.bytesAsU8(this.getStringValue())},proto.google.protobuf.UninterpretedOption.prototype.setStringValue=function(e){return o.Message.setField(this,7,e)},proto.google.protobuf.UninterpretedOption.prototype.clearStringValue=function(){return o.Message.setField(this,7,void 0)},proto.google.protobuf.UninterpretedOption.prototype.hasStringValue=function(){return null!=o.Message.getField(this,7)},proto.google.protobuf.UninterpretedOption.prototype.getAggregateValue=function(){return o.Message.getFieldWithDefault(this,8,"")},proto.google.protobuf.UninterpretedOption.prototype.setAggregateValue=function(e){return o.Message.setField(this,8,e)},proto.google.protobuf.UninterpretedOption.prototype.clearAggregateValue=function(){return o.Message.setField(this,8,void 0)},proto.google.protobuf.UninterpretedOption.prototype.hasAggregateValue=function(){return null!=o.Message.getField(this,8)},proto.google.protobuf.SourceCodeInfo.repeatedFields_=[1],o.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.SourceCodeInfo.prototype.toObject=function(e){return proto.google.protobuf.SourceCodeInfo.toObject(e,this)},proto.google.protobuf.SourceCodeInfo.toObject=function(e,t){var r={locationList:o.Message.toObjectList(t.getLocationList(),proto.google.protobuf.SourceCodeInfo.Location.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.google.protobuf.SourceCodeInfo.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.google.protobuf.SourceCodeInfo;return proto.google.protobuf.SourceCodeInfo.deserializeBinaryFromReader(r,t)},proto.google.protobuf.SourceCodeInfo.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new proto.google.protobuf.SourceCodeInfo.Location;t.readMessage(r,proto.google.protobuf.SourceCodeInfo.Location.deserializeBinaryFromReader),e.addLocation(r)}else t.skipField();return e},proto.google.protobuf.SourceCodeInfo.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.google.protobuf.SourceCodeInfo.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.SourceCodeInfo.serializeBinaryToWriter=function(e,t){var r;(r=e.getLocationList()).length>0&&t.writeRepeatedMessage(1,r,proto.google.protobuf.SourceCodeInfo.Location.serializeBinaryToWriter)},proto.google.protobuf.SourceCodeInfo.Location.repeatedFields_=[1,2,6],o.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.SourceCodeInfo.Location.prototype.toObject=function(e){return proto.google.protobuf.SourceCodeInfo.Location.toObject(e,this)},proto.google.protobuf.SourceCodeInfo.Location.toObject=function(e,t){var r,i={pathList:null==(r=o.Message.getRepeatedField(t,1))?void 0:r,spanList:null==(r=o.Message.getRepeatedField(t,2))?void 0:r,leadingComments:null==(r=o.Message.getField(t,3))?void 0:r,trailingComments:null==(r=o.Message.getField(t,4))?void 0:r,leadingDetachedCommentsList:null==(r=o.Message.getRepeatedField(t,6))?void 0:r};return e&&(i.$jspbMessageInstance=t),i}),proto.google.protobuf.SourceCodeInfo.Location.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.google.protobuf.SourceCodeInfo.Location;return proto.google.protobuf.SourceCodeInfo.Location.deserializeBinaryFromReader(r,t)},proto.google.protobuf.SourceCodeInfo.Location.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:for(var r=t.isDelimited()?t.readPackedInt32():[t.readInt32()],o=0;o<r.length;o++)e.addPath(r[o]);break;case 2:for(r=t.isDelimited()?t.readPackedInt32():[t.readInt32()],o=0;o<r.length;o++)e.addSpan(r[o]);break;case 3:var i=t.readString();e.setLeadingComments(i);break;case 4:i=t.readString(),e.setTrailingComments(i);break;case 6:i=t.readString(),e.addLeadingDetachedComments(i);break;default:t.skipField()}return e},proto.google.protobuf.SourceCodeInfo.Location.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.google.protobuf.SourceCodeInfo.Location.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.SourceCodeInfo.Location.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPathList()).length>0&&t.writePackedInt32(1,r),(r=e.getSpanList()).length>0&&t.writePackedInt32(2,r),null!=(r=o.Message.getField(e,3))&&t.writeString(3,r),null!=(r=o.Message.getField(e,4))&&t.writeString(4,r),(r=e.getLeadingDetachedCommentsList()).length>0&&t.writeRepeatedString(6,r)},proto.google.protobuf.SourceCodeInfo.Location.prototype.getPathList=function(){return o.Message.getRepeatedField(this,1)},proto.google.protobuf.SourceCodeInfo.Location.prototype.setPathList=function(e){return o.Message.setField(this,1,e||[])},proto.google.protobuf.SourceCodeInfo.Location.prototype.addPath=function(e,t){return o.Message.addToRepeatedField(this,1,e,t)},proto.google.protobuf.SourceCodeInfo.Location.prototype.clearPathList=function(){return this.setPathList([])},proto.google.protobuf.SourceCodeInfo.Location.prototype.getSpanList=function(){return o.Message.getRepeatedField(this,2)},proto.google.protobuf.SourceCodeInfo.Location.prototype.setSpanList=function(e){return o.Message.setField(this,2,e||[])},proto.google.protobuf.SourceCodeInfo.Location.prototype.addSpan=function(e,t){return o.Message.addToRepeatedField(this,2,e,t)},proto.google.protobuf.SourceCodeInfo.Location.prototype.clearSpanList=function(){return this.setSpanList([])},proto.google.protobuf.SourceCodeInfo.Location.prototype.getLeadingComments=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.google.protobuf.SourceCodeInfo.Location.prototype.setLeadingComments=function(e){return o.Message.setField(this,3,e)},proto.google.protobuf.SourceCodeInfo.Location.prototype.clearLeadingComments=function(){return o.Message.setField(this,3,void 0)},proto.google.protobuf.SourceCodeInfo.Location.prototype.hasLeadingComments=function(){return null!=o.Message.getField(this,3)},proto.google.protobuf.SourceCodeInfo.Location.prototype.getTrailingComments=function(){return o.Message.getFieldWithDefault(this,4,"")},proto.google.protobuf.SourceCodeInfo.Location.prototype.setTrailingComments=function(e){return o.Message.setField(this,4,e)},proto.google.protobuf.SourceCodeInfo.Location.prototype.clearTrailingComments=function(){return o.Message.setField(this,4,void 0)},proto.google.protobuf.SourceCodeInfo.Location.prototype.hasTrailingComments=function(){return null!=o.Message.getField(this,4)},proto.google.protobuf.SourceCodeInfo.Location.prototype.getLeadingDetachedCommentsList=function(){return o.Message.getRepeatedField(this,6)},proto.google.protobuf.SourceCodeInfo.Location.prototype.setLeadingDetachedCommentsList=function(e){return o.Message.setField(this,6,e||[])},proto.google.protobuf.SourceCodeInfo.Location.prototype.addLeadingDetachedComments=function(e,t){return o.Message.addToRepeatedField(this,6,e,t)},proto.google.protobuf.SourceCodeInfo.Location.prototype.clearLeadingDetachedCommentsList=function(){return this.setLeadingDetachedCommentsList([])},proto.google.protobuf.SourceCodeInfo.prototype.getLocationList=function(){return o.Message.getRepeatedWrapperField(this,proto.google.protobuf.SourceCodeInfo.Location,1)},proto.google.protobuf.SourceCodeInfo.prototype.setLocationList=function(e){return o.Message.setRepeatedWrapperField(this,1,e)},proto.google.protobuf.SourceCodeInfo.prototype.addLocation=function(e,t){return o.Message.addToRepeatedWrapperField(this,1,e,proto.google.protobuf.SourceCodeInfo.Location,t)},proto.google.protobuf.SourceCodeInfo.prototype.clearLocationList=function(){return this.setLocationList([])},proto.google.protobuf.GeneratedCodeInfo.repeatedFields_=[1],o.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.GeneratedCodeInfo.prototype.toObject=function(e){return proto.google.protobuf.GeneratedCodeInfo.toObject(e,this)},proto.google.protobuf.GeneratedCodeInfo.toObject=function(e,t){var r={annotationList:o.Message.toObjectList(t.getAnnotationList(),proto.google.protobuf.GeneratedCodeInfo.Annotation.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.google.protobuf.GeneratedCodeInfo.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.google.protobuf.GeneratedCodeInfo;return proto.google.protobuf.GeneratedCodeInfo.deserializeBinaryFromReader(r,t)},proto.google.protobuf.GeneratedCodeInfo.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new proto.google.protobuf.GeneratedCodeInfo.Annotation;t.readMessage(r,proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinaryFromReader),e.addAnnotation(r)}else t.skipField();return e},proto.google.protobuf.GeneratedCodeInfo.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.google.protobuf.GeneratedCodeInfo.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.GeneratedCodeInfo.serializeBinaryToWriter=function(e,t){var r;(r=e.getAnnotationList()).length>0&&t.writeRepeatedMessage(1,r,proto.google.protobuf.GeneratedCodeInfo.Annotation.serializeBinaryToWriter)},proto.google.protobuf.GeneratedCodeInfo.Annotation.repeatedFields_=[1],o.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.toObject=function(e){return proto.google.protobuf.GeneratedCodeInfo.Annotation.toObject(e,this)},proto.google.protobuf.GeneratedCodeInfo.Annotation.toObject=function(e,t){var r,i={pathList:null==(r=o.Message.getRepeatedField(t,1))?void 0:r,sourceFile:null==(r=o.Message.getField(t,2))?void 0:r,begin:null==(r=o.Message.getField(t,3))?void 0:r,end:null==(r=o.Message.getField(t,4))?void 0:r};return e&&(i.$jspbMessageInstance=t),i}),proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.google.protobuf.GeneratedCodeInfo.Annotation;return proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinaryFromReader(r,t)},proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:for(var r=t.isDelimited()?t.readPackedInt32():[t.readInt32()],o=0;o<r.length;o++)e.addPath(r[o]);break;case 2:var i=t.readString();e.setSourceFile(i);break;case 3:i=t.readInt32(),e.setBegin(i);break;case 4:i=t.readInt32(),e.setEnd(i);break;default:t.skipField()}return e},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.google.protobuf.GeneratedCodeInfo.Annotation.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.GeneratedCodeInfo.Annotation.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPathList()).length>0&&t.writePackedInt32(1,r),null!=(r=o.Message.getField(e,2))&&t.writeString(2,r),null!=(r=o.Message.getField(e,3))&&t.writeInt32(3,r),null!=(r=o.Message.getField(e,4))&&t.writeInt32(4,r)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getPathList=function(){return o.Message.getRepeatedField(this,1)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setPathList=function(e){return o.Message.setField(this,1,e||[])},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.addPath=function(e,t){return o.Message.addToRepeatedField(this,1,e,t)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearPathList=function(){return this.setPathList([])},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getSourceFile=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setSourceFile=function(e){return o.Message.setField(this,2,e)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearSourceFile=function(){return o.Message.setField(this,2,void 0)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.hasSourceFile=function(){return null!=o.Message.getField(this,2)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getBegin=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setBegin=function(e){return o.Message.setField(this,3,e)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearBegin=function(){return o.Message.setField(this,3,void 0)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.hasBegin=function(){return null!=o.Message.getField(this,3)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getEnd=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setEnd=function(e){return o.Message.setField(this,4,e)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearEnd=function(){return o.Message.setField(this,4,void 0)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.hasEnd=function(){return null!=o.Message.getField(this,4)},proto.google.protobuf.GeneratedCodeInfo.prototype.getAnnotationList=function(){return o.Message.getRepeatedWrapperField(this,proto.google.protobuf.GeneratedCodeInfo.Annotation,1)},proto.google.protobuf.GeneratedCodeInfo.prototype.setAnnotationList=function(e){return o.Message.setRepeatedWrapperField(this,1,e)},proto.google.protobuf.GeneratedCodeInfo.prototype.addAnnotation=function(e,t){return o.Message.addToRepeatedWrapperField(this,1,e,proto.google.protobuf.GeneratedCodeInfo.Annotation,t)},proto.google.protobuf.GeneratedCodeInfo.prototype.clearAnnotationList=function(){return this.setAnnotationList([])},i.object.extend(t,proto.google.protobuf)},6774:(e,t,r)=>{var o=r(3019),i=o,n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof window&&window||void 0!==n&&n||"undefined"!=typeof self&&self||function(){return this}.call(null)||Function("return this")();i.exportSymbol("proto.google.protobuf.Empty",null,n),proto.google.protobuf.Empty=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.google.protobuf.Empty,o.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.Empty.displayName="proto.google.protobuf.Empty"),o.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.Empty.prototype.toObject=function(e){return proto.google.protobuf.Empty.toObject(e,this)},proto.google.protobuf.Empty.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.google.protobuf.Empty.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.google.protobuf.Empty;return proto.google.protobuf.Empty.deserializeBinaryFromReader(r,t)},proto.google.protobuf.Empty.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},proto.google.protobuf.Empty.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.google.protobuf.Empty.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.Empty.serializeBinaryToWriter=function(e,t){},i.object.extend(t,proto.google.protobuf)},645:(e,t)=>{t.read=function(e,t,r,o,i){var n,s,a=8*i-o-1,u=(1<<a)-1,l=u>>1,p=-7,c=r?i-1:0,g=r?-1:1,d=e[t+c];for(c+=g,n=d&(1<<-p)-1,d>>=-p,p+=a;p>0;n=256*n+e[t+c],c+=g,p-=8);for(s=n&(1<<-p)-1,n>>=-p,p+=o;p>0;s=256*s+e[t+c],c+=g,p-=8);if(0===n)n=1-l;else{if(n===u)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,o),n-=l}return(d?-1:1)*s*Math.pow(2,n-o)},t.write=function(e,t,r,o,i,n){var s,a,u,l=8*n-i-1,p=(1<<l)-1,c=p>>1,g=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=o?0:n-1,f=o?1:-1,h=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=p):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+c>=1?g/u:g*Math.pow(2,1-c))*u>=2&&(s++,u/=2),s+c>=p?(a=0,s=p):s+c>=1?(a=(t*u-1)*Math.pow(2,i),s+=c):(a=t*Math.pow(2,c-1)*Math.pow(2,i),s=0));i>=8;e[r+d]=255&a,d+=f,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;e[r+d]=255&s,d+=f,s/=256,l-=8);e[r+d-f]|=128*h}},7987:function(e,t,r){var o,i;o=function(e){"use strict";var t,r,o={template:"[%t] %l:",levelFormatter:function(e){return e.toUpperCase()},nameFormatter:function(e){return e||"root"},timestampFormatter:function(e){return e.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/,"$1")},format:void 0},i={},n={reg:function(e){if(!e||!e.getLogger)throw new TypeError("Argument is not a root logger");t=e},apply:function(e,r){if(!e||!e.setLevel)throw new TypeError("Argument is not a logger");var n=e.methodFactory,s=e.name||"",a=i[s]||i[""]||o;return i[s]||(e.methodFactory=function(e,t,r){var o=n(e,t,r),a=i[r]||i[""],u=-1!==a.template.indexOf("%t"),l=-1!==a.template.indexOf("%l"),p=-1!==a.template.indexOf("%n");return function(){for(var t="",n=arguments.length,c=Array(n),g=0;g<n;g++)c[g]=arguments[g];if(s||!i[r]){var d=a.timestampFormatter(new Date),f=a.levelFormatter(e),h=a.nameFormatter(r);a.format?t+=a.format(f,h,d):(t+=a.template,u&&(t=t.replace(/%t/,d)),l&&(t=t.replace(/%l/,f)),p&&(t=t.replace(/%n/,h))),c.length&&"string"==typeof c[0]?c[0]=t+" "+c[0]:c.unshift(t)}o.apply(void 0,c)}}),(r=r||{}).template&&(r.format=void 0),i[s]=function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(t in arguments[r])Object.prototype.hasOwnProperty.call(arguments[r],t)&&(e[t]=arguments[r][t]);return e}({},a,r),e.setLevel(e.getLevel()),t||e.warn("It is necessary to call the function reg() of loglevel-plugin-prefix before calling apply. From the next release, it will throw an error. See more: https://github.com/kutuluk/loglevel-plugin-prefix/blob/master/README.md"),e}};return e&&(r=e.prefix,n.noConflict=function(){return e.prefix===n&&(e.prefix=r),n}),n},void 0===(i=o.call(t,r,t,e))||(e.exports=i)},2043:function(e,t,r){var o,i;!function(n,s){"use strict";o=function(){var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),o=["trace","debug","info","warn","error"];function i(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function n(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function s(o){return"debug"===o&&(o="log"),typeof console!==t&&("trace"===o&&r?n:void 0!==console[o]?i(console,o):void 0!==console.log?i(console,"log"):e)}function a(t,r){for(var i=0;i<o.length;i++){var n=o[i];this[n]=i<t?e:this.methodFactory(n,t,r)}this.log=this.debug}function u(e,r,o){return function(){typeof console!==t&&(a.call(this,r,o),this[e].apply(this,arguments))}}function l(e,t,r){return s(e)||u.apply(this,arguments)}function p(e,r,i){var n,s=this;r=null==r?"WARN":r;var u="loglevel";function p(){var e;if(typeof window!==t&&u){try{e=window.localStorage[u]}catch(e){}if(typeof e===t)try{var r=window.document.cookie,o=r.indexOf(encodeURIComponent(u)+"=");-1!==o&&(e=/^([^;]+)/.exec(r.slice(o))[1])}catch(e){}return void 0===s.levels[e]&&(e=void 0),e}}"string"==typeof e?u+=":"+e:"symbol"==typeof e&&(u=void 0),s.name=e,s.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},s.methodFactory=i||l,s.getLevel=function(){return n},s.setLevel=function(r,i){if("string"==typeof r&&void 0!==s.levels[r.toUpperCase()]&&(r=s.levels[r.toUpperCase()]),!("number"==typeof r&&r>=0&&r<=s.levels.SILENT))throw"log.setLevel() called with invalid level: "+r;if(n=r,!1!==i&&function(e){var r=(o[e]||"silent").toUpperCase();if(typeof window!==t&&u){try{return void(window.localStorage[u]=r)}catch(e){}try{window.document.cookie=encodeURIComponent(u)+"="+r+";"}catch(e){}}}(r),a.call(s,r,e),typeof console===t&&r<s.levels.SILENT)return"No console available for logging"},s.setDefaultLevel=function(e){r=e,p()||s.setLevel(e,!1)},s.resetLevel=function(){s.setLevel(r,!1),function(){if(typeof window!==t&&u){try{return void window.localStorage.removeItem(u)}catch(e){}try{window.document.cookie=encodeURIComponent(u)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}()},s.enableAll=function(e){s.setLevel(s.levels.TRACE,e)},s.disableAll=function(e){s.setLevel(s.levels.SILENT,e)};var c=p();null==c&&(c=r),s.setLevel(c,!1)}var c=new p,g={};c.getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=g[e];return t||(t=g[e]=new p(e,c.getLevel(),c.methodFactory)),t};var d=typeof window!==t?window.log:void 0;return c.noConflict=function(){return typeof window!==t&&window.log===c&&(window.log=d),c},c.getLoggers=function(){return g},c.default=c,c},void 0===(i=o.call(t,r,t,e))||(e.exports=i)}()},2872:function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.interval=t.iif=t.generate=t.fromEventPattern=t.fromEvent=t.from=t.forkJoin=t.empty=t.defer=t.connectable=t.concat=t.combineLatest=t.bindNodeCallback=t.bindCallback=t.UnsubscriptionError=t.TimeoutError=t.SequenceError=t.ObjectUnsubscribedError=t.NotFoundError=t.EmptyError=t.ArgumentOutOfRangeError=t.firstValueFrom=t.lastValueFrom=t.isObservable=t.identity=t.noop=t.pipe=t.NotificationKind=t.Notification=t.Subscriber=t.Subscription=t.Scheduler=t.VirtualAction=t.VirtualTimeScheduler=t.animationFrameScheduler=t.animationFrame=t.queueScheduler=t.queue=t.asyncScheduler=t.async=t.asapScheduler=t.asap=t.AsyncSubject=t.ReplaySubject=t.BehaviorSubject=t.Subject=t.animationFrames=t.observable=t.ConnectableObservable=t.Observable=void 0,t.filter=t.expand=t.exhaustMap=t.exhaustAll=t.exhaust=t.every=t.endWith=t.elementAt=t.distinctUntilKeyChanged=t.distinctUntilChanged=t.distinct=t.dematerialize=t.delayWhen=t.delay=t.defaultIfEmpty=t.debounceTime=t.debounce=t.count=t.connect=t.concatWith=t.concatMapTo=t.concatMap=t.concatAll=t.combineLatestWith=t.combineLatestAll=t.combineAll=t.catchError=t.bufferWhen=t.bufferToggle=t.bufferTime=t.bufferCount=t.buffer=t.auditTime=t.audit=t.config=t.NEVER=t.EMPTY=t.scheduled=t.zip=t.using=t.timer=t.throwError=t.range=t.race=t.partition=t.pairs=t.onErrorResumeNext=t.of=t.never=t.merge=void 0,t.switchMap=t.switchAll=t.subscribeOn=t.startWith=t.skipWhile=t.skipUntil=t.skipLast=t.skip=t.single=t.shareReplay=t.share=t.sequenceEqual=t.scan=t.sampleTime=t.sample=t.refCount=t.retryWhen=t.retry=t.repeatWhen=t.repeat=t.reduce=t.raceWith=t.publishReplay=t.publishLast=t.publishBehavior=t.publish=t.pluck=t.pairwise=t.onErrorResumeNextWith=t.observeOn=t.multicast=t.min=t.mergeWith=t.mergeScan=t.mergeMapTo=t.mergeMap=t.flatMap=t.mergeAll=t.max=t.materialize=t.mapTo=t.map=t.last=t.isEmpty=t.ignoreElements=t.groupBy=t.first=t.findIndex=t.find=t.finalize=void 0,t.zipWith=t.zipAll=t.withLatestFrom=t.windowWhen=t.windowToggle=t.windowTime=t.windowCount=t.window=t.toArray=t.timestamp=t.timeoutWith=t.timeout=t.timeInterval=t.throwIfEmpty=t.throttleTime=t.throttle=t.tap=t.takeWhile=t.takeUntil=t.takeLast=t.take=t.switchScan=t.switchMapTo=void 0;var n=r(2419);Object.defineProperty(t,"Observable",{enumerable:!0,get:function(){return n.Observable}});var s=r(9518);Object.defineProperty(t,"ConnectableObservable",{enumerable:!0,get:function(){return s.ConnectableObservable}});var a=r(2801);Object.defineProperty(t,"observable",{enumerable:!0,get:function(){return a.observable}});var u=r(9106);Object.defineProperty(t,"animationFrames",{enumerable:!0,get:function(){return u.animationFrames}});var l=r(3032);Object.defineProperty(t,"Subject",{enumerable:!0,get:function(){return l.Subject}});var p=r(5240);Object.defineProperty(t,"BehaviorSubject",{enumerable:!0,get:function(){return p.BehaviorSubject}});var c=r(3274);Object.defineProperty(t,"ReplaySubject",{enumerable:!0,get:function(){return c.ReplaySubject}});var g=r(280);Object.defineProperty(t,"AsyncSubject",{enumerable:!0,get:function(){return g.AsyncSubject}});var d=r(580);Object.defineProperty(t,"asap",{enumerable:!0,get:function(){return d.asap}}),Object.defineProperty(t,"asapScheduler",{enumerable:!0,get:function(){return d.asapScheduler}});var f=r(2445);Object.defineProperty(t,"async",{enumerable:!0,get:function(){return f.async}}),Object.defineProperty(t,"asyncScheduler",{enumerable:!0,get:function(){return f.asyncScheduler}});var h=r(8615);Object.defineProperty(t,"queue",{enumerable:!0,get:function(){return h.queue}}),Object.defineProperty(t,"queueScheduler",{enumerable:!0,get:function(){return h.queueScheduler}});var b=r(3660);Object.defineProperty(t,"animationFrame",{enumerable:!0,get:function(){return b.animationFrame}}),Object.defineProperty(t,"animationFrameScheduler",{enumerable:!0,get:function(){return b.animationFrameScheduler}});var y=r(4123);Object.defineProperty(t,"VirtualTimeScheduler",{enumerable:!0,get:function(){return y.VirtualTimeScheduler}}),Object.defineProperty(t,"VirtualAction",{enumerable:!0,get:function(){return y.VirtualAction}});var v=r(218);Object.defineProperty(t,"Scheduler",{enumerable:!0,get:function(){return v.Scheduler}});var m=r(3865);Object.defineProperty(t,"Subscription",{enumerable:!0,get:function(){return m.Subscription}});var R=r(5125);Object.defineProperty(t,"Subscriber",{enumerable:!0,get:function(){return R.Subscriber}});var S=r(3104);Object.defineProperty(t,"Notification",{enumerable:!0,get:function(){return S.Notification}}),Object.defineProperty(t,"NotificationKind",{enumerable:!0,get:function(){return S.NotificationKind}});var _=r(9985);Object.defineProperty(t,"pipe",{enumerable:!0,get:function(){return _.pipe}});var O=r(2576);Object.defineProperty(t,"noop",{enumerable:!0,get:function(){return O.noop}});var E=r(4781);Object.defineProperty(t,"identity",{enumerable:!0,get:function(){return E.identity}});var M=r(8386);Object.defineProperty(t,"isObservable",{enumerable:!0,get:function(){return M.isObservable}});var T=r(9309);Object.defineProperty(t,"lastValueFrom",{enumerable:!0,get:function(){return T.lastValueFrom}});var P=r(8182);Object.defineProperty(t,"firstValueFrom",{enumerable:!0,get:function(){return P.firstValueFrom}});var A=r(2351);Object.defineProperty(t,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return A.ArgumentOutOfRangeError}});var I=r(9474);Object.defineProperty(t,"EmptyError",{enumerable:!0,get:function(){return I.EmptyError}});var C=r(8598);Object.defineProperty(t,"NotFoundError",{enumerable:!0,get:function(){return C.NotFoundError}});var F=r(2642);Object.defineProperty(t,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return F.ObjectUnsubscribedError}});var j=r(6156);Object.defineProperty(t,"SequenceError",{enumerable:!0,get:function(){return j.SequenceError}});var w=r(4173);Object.defineProperty(t,"TimeoutError",{enumerable:!0,get:function(){return w.TimeoutError}});var D=r(4805);Object.defineProperty(t,"UnsubscriptionError",{enumerable:!0,get:function(){return D.UnsubscriptionError}});var B=r(3050);Object.defineProperty(t,"bindCallback",{enumerable:!0,get:function(){return B.bindCallback}});var U=r(8130);Object.defineProperty(t,"bindNodeCallback",{enumerable:!0,get:function(){return U.bindNodeCallback}});var L=r(9258);Object.defineProperty(t,"combineLatest",{enumerable:!0,get:function(){return L.combineLatest}});var N=r(2239);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return N.concat}});var k=r(2873);Object.defineProperty(t,"connectable",{enumerable:!0,get:function(){return k.connectable}});var W=r(7885);Object.defineProperty(t,"defer",{enumerable:!0,get:function(){return W.defer}});var x=r(6332);Object.defineProperty(t,"empty",{enumerable:!0,get:function(){return x.empty}});var z=r(7245);Object.defineProperty(t,"forkJoin",{enumerable:!0,get:function(){return z.forkJoin}});var G=r(5432);Object.defineProperty(t,"from",{enumerable:!0,get:function(){return G.from}});var q=r(3267);Object.defineProperty(t,"fromEvent",{enumerable:!0,get:function(){return q.fromEvent}});var H=r(470);Object.defineProperty(t,"fromEventPattern",{enumerable:!0,get:function(){return H.fromEventPattern}});var V=r(4303);Object.defineProperty(t,"generate",{enumerable:!0,get:function(){return V.generate}});var $=r(1757);Object.defineProperty(t,"iif",{enumerable:!0,get:function(){return $.iif}});var J=r(8990);Object.defineProperty(t,"interval",{enumerable:!0,get:function(){return J.interval}});var Y=r(1846);Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return Y.merge}});var Q=r(1339);Object.defineProperty(t,"never",{enumerable:!0,get:function(){return Q.never}});var K=r(5726);Object.defineProperty(t,"of",{enumerable:!0,get:function(){return K.of}});var X=r(724);Object.defineProperty(t,"onErrorResumeNext",{enumerable:!0,get:function(){return X.onErrorResumeNext}});var Z=r(4380);Object.defineProperty(t,"pairs",{enumerable:!0,get:function(){return Z.pairs}});var ee=r(7273);Object.defineProperty(t,"partition",{enumerable:!0,get:function(){return ee.partition}});var te=r(5182);Object.defineProperty(t,"race",{enumerable:!0,get:function(){return te.race}});var re=r(322);Object.defineProperty(t,"range",{enumerable:!0,get:function(){return re.range}});var oe=r(2098);Object.defineProperty(t,"throwError",{enumerable:!0,get:function(){return oe.throwError}});var ie=r(7513);Object.defineProperty(t,"timer",{enumerable:!0,get:function(){return ie.timer}});var ne=r(2962);Object.defineProperty(t,"using",{enumerable:!0,get:function(){return ne.using}});var se=r(7654);Object.defineProperty(t,"zip",{enumerable:!0,get:function(){return se.zip}});var ae=r(5207);Object.defineProperty(t,"scheduled",{enumerable:!0,get:function(){return ae.scheduled}});var ue=r(6332);Object.defineProperty(t,"EMPTY",{enumerable:!0,get:function(){return ue.EMPTY}});var le=r(1339);Object.defineProperty(t,"NEVER",{enumerable:!0,get:function(){return le.NEVER}}),i(r(8433),t);var pe=r(3280);Object.defineProperty(t,"config",{enumerable:!0,get:function(){return pe.config}});var ce=r(6474);Object.defineProperty(t,"audit",{enumerable:!0,get:function(){return ce.audit}});var ge=r(5382);Object.defineProperty(t,"auditTime",{enumerable:!0,get:function(){return ge.auditTime}});var de=r(9715);Object.defineProperty(t,"buffer",{enumerable:!0,get:function(){return de.buffer}});var fe=r(3814);Object.defineProperty(t,"bufferCount",{enumerable:!0,get:function(){return fe.bufferCount}});var he=r(7211);Object.defineProperty(t,"bufferTime",{enumerable:!0,get:function(){return he.bufferTime}});var be=r(4943);Object.defineProperty(t,"bufferToggle",{enumerable:!0,get:function(){return be.bufferToggle}});var ye=r(1240);Object.defineProperty(t,"bufferWhen",{enumerable:!0,get:function(){return ye.bufferWhen}});var ve=r(9548);Object.defineProperty(t,"catchError",{enumerable:!0,get:function(){return ve.catchError}});var me=r(2128);Object.defineProperty(t,"combineAll",{enumerable:!0,get:function(){return me.combineAll}});var Re=r(3240);Object.defineProperty(t,"combineLatestAll",{enumerable:!0,get:function(){return Re.combineLatestAll}});var Se=r(5024);Object.defineProperty(t,"combineLatestWith",{enumerable:!0,get:function(){return Se.combineLatestWith}});var _e=r(4413);Object.defineProperty(t,"concatAll",{enumerable:!0,get:function(){return _e.concatAll}});var Oe=r(7498);Object.defineProperty(t,"concatMap",{enumerable:!0,get:function(){return Oe.concatMap}});var Ee=r(6109);Object.defineProperty(t,"concatMapTo",{enumerable:!0,get:function(){return Ee.concatMapTo}});var Me=r(9664);Object.defineProperty(t,"concatWith",{enumerable:!0,get:function(){return Me.concatWith}});var Te=r(1995);Object.defineProperty(t,"connect",{enumerable:!0,get:function(){return Te.connect}});var Pe=r(993);Object.defineProperty(t,"count",{enumerable:!0,get:function(){return Pe.count}});var Ae=r(496);Object.defineProperty(t,"debounce",{enumerable:!0,get:function(){return Ae.debounce}});var Ie=r(1385);Object.defineProperty(t,"debounceTime",{enumerable:!0,get:function(){return Ie.debounceTime}});var Ce=r(1658);Object.defineProperty(t,"defaultIfEmpty",{enumerable:!0,get:function(){return Ce.defaultIfEmpty}});var Fe=r(5841);Object.defineProperty(t,"delay",{enumerable:!0,get:function(){return Fe.delay}});var je=r(8798);Object.defineProperty(t,"delayWhen",{enumerable:!0,get:function(){return je.delayWhen}});var we=r(1080);Object.defineProperty(t,"dematerialize",{enumerable:!0,get:function(){return we.dematerialize}});var De=r(3054);Object.defineProperty(t,"distinct",{enumerable:!0,get:function(){return De.distinct}});var Be=r(8737);Object.defineProperty(t,"distinctUntilChanged",{enumerable:!0,get:function(){return Be.distinctUntilChanged}});var Ue=r(7957);Object.defineProperty(t,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return Ue.distinctUntilKeyChanged}});var Le=r(8633);Object.defineProperty(t,"elementAt",{enumerable:!0,get:function(){return Le.elementAt}});var Ne=r(911);Object.defineProperty(t,"endWith",{enumerable:!0,get:function(){return Ne.endWith}});var ke=r(2096);Object.defineProperty(t,"every",{enumerable:!0,get:function(){return ke.every}});var We=r(67);Object.defineProperty(t,"exhaust",{enumerable:!0,get:function(){return We.exhaust}});var xe=r(5337);Object.defineProperty(t,"exhaustAll",{enumerable:!0,get:function(){return xe.exhaustAll}});var ze=r(5635);Object.defineProperty(t,"exhaustMap",{enumerable:!0,get:function(){return ze.exhaustMap}});var Ge=r(2874);Object.defineProperty(t,"expand",{enumerable:!0,get:function(){return Ge.expand}});var qe=r(9154);Object.defineProperty(t,"filter",{enumerable:!0,get:function(){return qe.filter}});var He=r(9283);Object.defineProperty(t,"finalize",{enumerable:!0,get:function(){return He.finalize}});var Ve=r(7119);Object.defineProperty(t,"find",{enumerable:!0,get:function(){return Ve.find}});var $e=r(4706);Object.defineProperty(t,"findIndex",{enumerable:!0,get:function(){return $e.findIndex}});var Je=r(9219);Object.defineProperty(t,"first",{enumerable:!0,get:function(){return Je.first}});var Ye=r(9749);Object.defineProperty(t,"groupBy",{enumerable:!0,get:function(){return Ye.groupBy}});var Qe=r(9438);Object.defineProperty(t,"ignoreElements",{enumerable:!0,get:function(){return Qe.ignoreElements}});var Ke=r(8515);Object.defineProperty(t,"isEmpty",{enumerable:!0,get:function(){return Ke.isEmpty}});var Xe=r(2435);Object.defineProperty(t,"last",{enumerable:!0,get:function(){return Xe.last}});var Ze=r(7291);Object.defineProperty(t,"map",{enumerable:!0,get:function(){return Ze.map}});var et=r(8313);Object.defineProperty(t,"mapTo",{enumerable:!0,get:function(){return et.mapTo}});var tt=r(3209);Object.defineProperty(t,"materialize",{enumerable:!0,get:function(){return tt.materialize}});var rt=r(2620);Object.defineProperty(t,"max",{enumerable:!0,get:function(){return rt.max}});var ot=r(3783);Object.defineProperty(t,"mergeAll",{enumerable:!0,get:function(){return ot.mergeAll}});var it=r(1788);Object.defineProperty(t,"flatMap",{enumerable:!0,get:function(){return it.flatMap}});var nt=r(9475);Object.defineProperty(t,"mergeMap",{enumerable:!0,get:function(){return nt.mergeMap}});var st=r(1211);Object.defineProperty(t,"mergeMapTo",{enumerable:!0,get:function(){return st.mergeMapTo}});var at=r(7267);Object.defineProperty(t,"mergeScan",{enumerable:!0,get:function(){return at.mergeScan}});var ut=r(9303);Object.defineProperty(t,"mergeWith",{enumerable:!0,get:function(){return ut.mergeWith}});var lt=r(9714);Object.defineProperty(t,"min",{enumerable:!0,get:function(){return lt.min}});var pt=r(3848);Object.defineProperty(t,"multicast",{enumerable:!0,get:function(){return pt.multicast}});var ct=r(1184);Object.defineProperty(t,"observeOn",{enumerable:!0,get:function(){return ct.observeOn}});var gt=r(7582);Object.defineProperty(t,"onErrorResumeNextWith",{enumerable:!0,get:function(){return gt.onErrorResumeNextWith}});var dt=r(2731);Object.defineProperty(t,"pairwise",{enumerable:!0,get:function(){return dt.pairwise}});var ft=r(4691);Object.defineProperty(t,"pluck",{enumerable:!0,get:function(){return ft.pluck}});var ht=r(4474);Object.defineProperty(t,"publish",{enumerable:!0,get:function(){return ht.publish}});var bt=r(52);Object.defineProperty(t,"publishBehavior",{enumerable:!0,get:function(){return bt.publishBehavior}});var yt=r(2110);Object.defineProperty(t,"publishLast",{enumerable:!0,get:function(){return yt.publishLast}});var vt=r(9864);Object.defineProperty(t,"publishReplay",{enumerable:!0,get:function(){return vt.publishReplay}});var mt=r(179);Object.defineProperty(t,"raceWith",{enumerable:!0,get:function(){return mt.raceWith}});var Rt=r(122);Object.defineProperty(t,"reduce",{enumerable:!0,get:function(){return Rt.reduce}});var St=r(5313);Object.defineProperty(t,"repeat",{enumerable:!0,get:function(){return St.repeat}});var _t=r(4068);Object.defineProperty(t,"repeatWhen",{enumerable:!0,get:function(){return _t.repeatWhen}});var Ot=r(64);Object.defineProperty(t,"retry",{enumerable:!0,get:function(){return Ot.retry}});var Et=r(1188);Object.defineProperty(t,"retryWhen",{enumerable:!0,get:function(){return Et.retryWhen}});var Mt=r(8739);Object.defineProperty(t,"refCount",{enumerable:!0,get:function(){return Mt.refCount}});var Tt=r(4193);Object.defineProperty(t,"sample",{enumerable:!0,get:function(){return Tt.sample}});var Pt=r(6170);Object.defineProperty(t,"sampleTime",{enumerable:!0,get:function(){return Pt.sampleTime}});var At=r(5876);Object.defineProperty(t,"scan",{enumerable:!0,get:function(){return At.scan}});var It=r(1791);Object.defineProperty(t,"sequenceEqual",{enumerable:!0,get:function(){return It.sequenceEqual}});var Ct=r(5137);Object.defineProperty(t,"share",{enumerable:!0,get:function(){return Ct.share}});var Ft=r(1348);Object.defineProperty(t,"shareReplay",{enumerable:!0,get:function(){return Ft.shareReplay}});var jt=r(8242);Object.defineProperty(t,"single",{enumerable:!0,get:function(){return jt.single}});var wt=r(3169);Object.defineProperty(t,"skip",{enumerable:!0,get:function(){return wt.skip}});var Dt=r(2454);Object.defineProperty(t,"skipLast",{enumerable:!0,get:function(){return Dt.skipLast}});var Bt=r(6931);Object.defineProperty(t,"skipUntil",{enumerable:!0,get:function(){return Bt.skipUntil}});var Ut=r(7913);Object.defineProperty(t,"skipWhile",{enumerable:!0,get:function(){return Ut.skipWhile}});var Lt=r(9234);Object.defineProperty(t,"startWith",{enumerable:!0,get:function(){return Lt.startWith}});var Nt=r(276);Object.defineProperty(t,"subscribeOn",{enumerable:!0,get:function(){return Nt.subscribeOn}});var kt=r(9253);Object.defineProperty(t,"switchAll",{enumerable:!0,get:function(){return kt.switchAll}});var Wt=r(8518);Object.defineProperty(t,"switchMap",{enumerable:!0,get:function(){return Wt.switchMap}});var xt=r(1173);Object.defineProperty(t,"switchMapTo",{enumerable:!0,get:function(){return xt.switchMapTo}});var zt=r(3855);Object.defineProperty(t,"switchScan",{enumerable:!0,get:function(){return zt.switchScan}});var Gt=r(4783);Object.defineProperty(t,"take",{enumerable:!0,get:function(){return Gt.take}});var qt=r(1980);Object.defineProperty(t,"takeLast",{enumerable:!0,get:function(){return qt.takeLast}});var Ht=r(9845);Object.defineProperty(t,"takeUntil",{enumerable:!0,get:function(){return Ht.takeUntil}});var Vt=r(6060);Object.defineProperty(t,"takeWhile",{enumerable:!0,get:function(){return Vt.takeWhile}});var $t=r(1138);Object.defineProperty(t,"tap",{enumerable:!0,get:function(){return $t.tap}});var Jt=r(7306);Object.defineProperty(t,"throttle",{enumerable:!0,get:function(){return Jt.throttle}});var Yt=r(8968);Object.defineProperty(t,"throttleTime",{enumerable:!0,get:function(){return Yt.throttleTime}});var Qt=r(1779);Object.defineProperty(t,"throwIfEmpty",{enumerable:!0,get:function(){return Qt.throwIfEmpty}});var Kt=r(8005);Object.defineProperty(t,"timeInterval",{enumerable:!0,get:function(){return Kt.timeInterval}});var Xt=r(4173);Object.defineProperty(t,"timeout",{enumerable:!0,get:function(){return Xt.timeout}});var Zt=r(7223);Object.defineProperty(t,"timeoutWith",{enumerable:!0,get:function(){return Zt.timeoutWith}});var er=r(8975);Object.defineProperty(t,"timestamp",{enumerable:!0,get:function(){return er.timestamp}});var tr=r(2);Object.defineProperty(t,"toArray",{enumerable:!0,get:function(){return tr.toArray}});var rr=r(2826);Object.defineProperty(t,"window",{enumerable:!0,get:function(){return rr.window}});var or=r(7526);Object.defineProperty(t,"windowCount",{enumerable:!0,get:function(){return or.windowCount}});var ir=r(8294);Object.defineProperty(t,"windowTime",{enumerable:!0,get:function(){return ir.windowTime}});var nr=r(1883);Object.defineProperty(t,"windowToggle",{enumerable:!0,get:function(){return nr.windowToggle}});var sr=r(1461);Object.defineProperty(t,"windowWhen",{enumerable:!0,get:function(){return sr.windowWhen}});var ar=r(3041);Object.defineProperty(t,"withLatestFrom",{enumerable:!0,get:function(){return ar.withLatestFrom}});var ur=r(8593);Object.defineProperty(t,"zipAll",{enumerable:!0,get:function(){return ur.zipAll}});var lr=r(8096);Object.defineProperty(t,"zipWith",{enumerable:!0,get:function(){return lr.zipWith}})},280:function(e,t,r){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncSubject=void 0;var n=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return i(t,e),t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,o=t._hasValue,i=t._value,n=t.thrownError,s=t.isStopped,a=t._isComplete;r?e.error(n):(s||a)&&(o&&e.next(i),e.complete())},t.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},t.prototype.complete=function(){var t=this,r=t._hasValue,o=t._value;t._isComplete||(this._isComplete=!0,r&&e.prototype.next.call(this,o),e.prototype.complete.call(this))},t}(r(3032).Subject);t.AsyncSubject=n},5240:function(e,t,r){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.BehaviorSubject=void 0;var n=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return i(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},t.prototype.getValue=function(){var e=this,t=e.hasError,r=e.thrownError,o=e._value;if(t)throw r;return this._throwIfClosed(),o},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(r(3032).Subject);t.BehaviorSubject=n},3104:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observeNotification=t.Notification=t.NotificationKind=void 0;var o,i=r(6332),n=r(5726),s=r(2098),a=r(3005);(o=t.NotificationKind||(t.NotificationKind={})).NEXT="N",o.ERROR="E",o.COMPLETE="C";var u=function(){function e(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}return e.prototype.observe=function(e){return l(this,e)},e.prototype.do=function(e,t,r){var o=this,i=o.kind,n=o.value,s=o.error;return"N"===i?null==e?void 0:e(n):"E"===i?null==t?void 0:t(s):null==r?void 0:r()},e.prototype.accept=function(e,t,r){var o;return a.isFunction(null===(o=e)||void 0===o?void 0:o.next)?this.observe(e):this.do(e,t,r)},e.prototype.toObservable=function(){var e=this,t=e.kind,r=e.value,o=e.error,a="N"===t?n.of(r):"E"===t?s.throwError((function(){return o})):"C"===t?i.EMPTY:0;if(!a)throw new TypeError("Unexpected notification kind "+t);return a},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function l(e,t){var r,o,i,n=e,s=n.kind,a=n.value,u=n.error;if("string"!=typeof s)throw new TypeError('Invalid notification, missing "kind"');"N"===s?null===(r=t.next)||void 0===r||r.call(t,a):"E"===s?null===(o=t.error)||void 0===o||o.call(t,u):null===(i=t.complete)||void 0===i||i.call(t)}t.Notification=u,t.observeNotification=l},7286:(e,t)=>{"use strict";function r(e,t,r){return{kind:e,value:t,error:r}}Object.defineProperty(t,"__esModule",{value:!0}),t.createNotification=t.nextNotification=t.errorNotification=t.COMPLETE_NOTIFICATION=void 0,t.COMPLETE_NOTIFICATION=r("C",void 0,void 0),t.errorNotification=function(e){return r("E",void 0,e)},t.nextNotification=function(e){return r("N",e,void 0)},t.createNotification=r},2419:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Observable=void 0;var o=r(5125),i=r(3865),n=r(2801),s=r(9985),a=r(3280),u=r(3005),l=r(6110),p=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n,s=this,a=(n=e)&&n instanceof o.Subscriber||function(e){return e&&u.isFunction(e.next)&&u.isFunction(e.error)&&u.isFunction(e.complete)}(n)&&i.isSubscription(n)?e:new o.SafeSubscriber(e,t,r);return l.errorContext((function(){var e=s,t=e.operator,r=e.source;a.add(t?t.call(a,r):r?s._subscribe(a):s._trySubscribe(a))})),a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=c(t))((function(t,i){var n=new o.SafeSubscriber({next:function(t){try{e(t)}catch(e){i(e),n.unsubscribe()}},error:i,complete:t});r.subscribe(n)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[n.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s.pipeFromArray(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=c(e))((function(e,r){var o;t.subscribe((function(e){return o=e}),(function(e){return r(e)}),(function(){return e(o)}))}))},e.create=function(t){return new e(t)},e}();function c(e){var t;return null!==(t=null!=e?e:a.config.Promise)&&void 0!==t?t:Promise}t.Observable=p},3274:function(e,t,r){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.ReplaySubject=void 0;var n=r(3032),s=r(7950),a=function(e){function t(t,r,o){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===o&&(o=s.dateTimestampProvider);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=r,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,r),i}return i(t,e),t.prototype.next=function(t){var r=this,o=r.isStopped,i=r._buffer,n=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;o||(i.push(t),!n&&i.push(s.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,o=this._buffer.slice(),i=0;i<o.length&&!e.closed;i+=r?1:2)e.next(o[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,r=e._timestampProvider,o=e._buffer,i=e._infiniteTimeWindow,n=(i?1:2)*t;if(t<1/0&&n<o.length&&o.splice(0,o.length-n),!i){for(var s=r.now(),a=0,u=1;u<o.length&&o[u]<=s;u+=2)a=u;a&&o.splice(0,a+1)}},t}(n.Subject);t.ReplaySubject=a},218:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Scheduler=void 0;var o=r(7950),i=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=o.dateTimestampProvider.now,e}();t.Scheduler=i},3032:function(e,t,r){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.AnonymousSubject=t.Subject=void 0;var s=r(2419),a=r(3865),u=r(2642),l=r(6967),p=r(6110),c=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype.lift=function(e){var t=new g(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new u.ObjectUnsubscribedError},t.prototype.next=function(e){var t=this;p.errorContext((function(){var r,o;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=n(t.currentObservers),s=i.next();!s.done;s=i.next())s.value.next(e)}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}}}))},t.prototype.error=function(e){var t=this;p.errorContext((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}}))},t.prototype.complete=function(){var e=this;p.errorContext((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,o=r.hasError,i=r.isStopped,n=r.observers;return o||i?a.EMPTY_SUBSCRIPTION:(this.currentObservers=null,n.push(e),new a.Subscription((function(){t.currentObservers=null,l.arrRemove(n,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,o=t.thrownError,i=t.isStopped;r?e.error(o):i&&e.complete()},t.prototype.asObservable=function(){var e=new s.Observable;return e.source=this,e},t.create=function(e,t){return new g(e,t)},t}(s.Observable);t.Subject=c;var g=function(e){function t(t,r){var o=e.call(this)||this;return o.destination=t,o.source=r,o}return i(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:a.EMPTY_SUBSCRIPTION},t}(c);t.AnonymousSubject=g},5125:function(e,t,r){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_OBSERVER=t.SafeSubscriber=t.Subscriber=void 0;var n=r(3005),s=r(3865),a=r(3280),u=r(7968),l=r(2576),p=r(7286),c=r(4590),g=r(6110),d=function(e){function r(r){var o=e.call(this)||this;return o.isStopped=!1,r?(o.destination=r,s.isSubscription(r)&&r.add(o)):o.destination=t.EMPTY_OBSERVER,o}return i(r,e),r.create=function(e,t,r){return new y(e,t,r)},r.prototype.next=function(e){this.isStopped?m(p.nextNotification(e),this):this._next(e)},r.prototype.error=function(e){this.isStopped?m(p.errorNotification(e),this):(this.isStopped=!0,this._error(e))},r.prototype.complete=function(){this.isStopped?m(p.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(e){this.destination.next(e)},r.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(s.Subscription);t.Subscriber=d;var f=Function.prototype.bind;function h(e,t){return f.call(e,t)}var b=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){v(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){v(e)}else v(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){v(e)}},e}(),y=function(e){function t(t,r,o){var i,s,u=e.call(this)||this;return n.isFunction(t)||!t?i={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=o?o:void 0}:u&&a.config.useDeprecatedNextContext?((s=Object.create(t)).unsubscribe=function(){return u.unsubscribe()},i={next:t.next&&h(t.next,s),error:t.error&&h(t.error,s),complete:t.complete&&h(t.complete,s)}):i=t,u.destination=new b(i),u}return i(t,e),t}(d);function v(e){a.config.useDeprecatedSynchronousErrorHandling?g.captureError(e):u.reportUnhandledError(e)}function m(e,t){var r=a.config.onStoppedNotification;r&&c.timeoutProvider.setTimeout((function(){return r(e,t)}))}t.SafeSubscriber=y,t.EMPTY_OBSERVER={closed:!0,next:l.noop,error:function(e){throw e},complete:l.noop}},3865:function(e,t,r){"use strict";var o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,i,n=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return s},n=this&&this.__spreadArray||function(e,t){for(var r=0,o=t.length,i=e.length;r<o;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.isSubscription=t.EMPTY_SUBSCRIPTION=t.Subscription=void 0;var s=r(3005),a=r(4805),u=r(6967),l=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,r,u,l;if(!this.closed){this.closed=!0;var c=this._parentage;if(c)if(this._parentage=null,Array.isArray(c))try{for(var g=o(c),d=g.next();!d.done;d=g.next())d.value.remove(this)}catch(t){e={error:t}}finally{try{d&&!d.done&&(t=g.return)&&t.call(g)}finally{if(e)throw e.error}}else c.remove(this);var f=this.initialTeardown;if(s.isFunction(f))try{f()}catch(e){l=e instanceof a.UnsubscriptionError?e.errors:[e]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var b=o(h),y=b.next();!y.done;y=b.next()){var v=y.value;try{p(v)}catch(e){l=null!=l?l:[],e instanceof a.UnsubscriptionError?l=n(n([],i(l)),i(e.errors)):l.push(e)}}}catch(e){r={error:e}}finally{try{y&&!y.done&&(u=b.return)&&u.call(b)}finally{if(r)throw r.error}}}if(l)throw new a.UnsubscriptionError(l)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)p(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&u.arrRemove(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&u.arrRemove(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}();function p(e){s.isFunction(e)?e():e.unsubscribe()}t.Subscription=l,t.EMPTY_SUBSCRIPTION=l.EMPTY,t.isSubscription=function(e){return e instanceof l||e&&"closed"in e&&s.isFunction(e.remove)&&s.isFunction(e.add)&&s.isFunction(e.unsubscribe)}},3280:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=void 0,t.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},8182:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.firstValueFrom=void 0;var o=r(9474),i=r(5125);t.firstValueFrom=function(e,t){var r="object"==typeof t;return new Promise((function(n,s){var a=new i.SafeSubscriber({next:function(e){n(e),a.unsubscribe()},error:s,complete:function(){r?n(t.defaultValue):s(new o.EmptyError)}});e.subscribe(a)}))}},9309:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lastValueFrom=void 0;var o=r(9474);t.lastValueFrom=function(e,t){var r="object"==typeof t;return new Promise((function(i,n){var s,a=!1;e.subscribe({next:function(e){s=e,a=!0},error:n,complete:function(){a?i(s):r?i(t.defaultValue):n(new o.EmptyError)}})}))}},9518:function(e,t,r){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectableObservable=void 0;var n=r(2419),s=r(3865),a=r(8739),u=r(4990),l=r(4935),p=function(e){function t(t,r){var o=e.call(this)||this;return o.source=t,o.subjectFactory=r,o._subject=null,o._refCount=0,o._connection=null,l.hasLift(t)&&(o.lift=t.lift),o}return i(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,null==e||e.unsubscribe()},t.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new s.Subscription;var r=this.getSubject();t.add(this.source.subscribe(u.createOperatorSubscriber(r,void 0,(function(){e._teardown(),r.complete()}),(function(t){e._teardown(),r.error(t)}),(function(){return e._teardown()})))),t.closed&&(this._connection=null,t=s.Subscription.EMPTY)}return t},t.prototype.refCount=function(){return a.refCount()(this)},t}(n.Observable);t.ConnectableObservable=p},3050:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bindCallback=void 0;var o=r(9592);t.bindCallback=function(e,t,r){return o.bindCallbackInternals(!1,e,t,r)}},9592:function(e,t,r){"use strict";var o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,i,n=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,o=t.length,i=e.length;r<o;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.bindCallbackInternals=void 0;var n=r(9016),s=r(2419),a=r(276),u=r(1914),l=r(1184),p=r(280);t.bindCallbackInternals=function e(t,r,c,g){if(c){if(!n.isScheduler(c))return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return e(t,r,g).apply(this,o).pipe(u.mapOneOrManyArgs(c))};g=c}return g?function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return e(t,r).apply(this,o).pipe(a.subscribeOn(g),l.observeOn(g))}:function(){for(var e=this,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];var u=new p.AsyncSubject,l=!0;return new s.Observable((function(s){var a=u.subscribe(s);if(l){l=!1;var p=!1,c=!1;r.apply(e,i(i([],o(n)),[function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(t){var o=e.shift();if(null!=o)return void u.error(o)}u.next(1<e.length?e:e[0]),c=!0,p&&u.complete()}])),c&&u.complete(),p=!0}return a}))}}},8130:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bindNodeCallback=void 0;var o=r(9592);t.bindNodeCallback=function(e,t,r){return o.bindCallbackInternals(!0,e,t,r)}},9258:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestInit=t.combineLatest=void 0;var o=r(2419),i=r(1203),n=r(5432),s=r(4781),a=r(1914),u=r(2433),l=r(641),p=r(4990),c=r(7738);function g(e,t,r){return void 0===r&&(r=s.identity),function(o){d(t,(function(){for(var i=e.length,s=new Array(i),a=i,u=i,l=function(i){d(t,(function(){var l=n.from(e[i],t),c=!1;l.subscribe(p.createOperatorSubscriber(o,(function(e){s[i]=e,c||(c=!0,u--),u||o.next(r(s.slice()))}),(function(){--a||o.complete()})))}),o)},c=0;c<i;c++)l(c)}),o)}}function d(e,t,r){e?c.executeSchedule(r,e,t):t()}t.combineLatest=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=u.popScheduler(e),p=u.popResultSelector(e),c=i.argsArgArrayOrObject(e),d=c.args,f=c.keys;if(0===d.length)return n.from([],r);var h=new o.Observable(g(d,r,f?function(e){return l.createObject(f,e)}:s.identity));return p?h.pipe(a.mapOneOrManyArgs(p)):h},t.combineLatestInit=g},2239:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concat=void 0;var o=r(4413),i=r(2433),n=r(5432);t.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.concatAll()(n.from(e,i.popScheduler(e)))}},2873:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connectable=void 0;var o=r(3032),i=r(2419),n=r(7885),s={connector:function(){return new o.Subject},resetOnDisconnect:!0};t.connectable=function(e,t){void 0===t&&(t=s);var r=null,o=t.connector,a=t.resetOnDisconnect,u=void 0===a||a,l=o(),p=new i.Observable((function(e){return l.subscribe(e)}));return p.connect=function(){return r&&!r.closed||(r=n.defer((function(){return e})).subscribe(l),u&&r.add((function(){return l=o()}))),r},p}},7885:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defer=void 0;var o=r(2419),i=r(7103);t.defer=function(e){return new o.Observable((function(t){i.innerFrom(e()).subscribe(t)}))}},9106:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.animationFrames=void 0;var o=r(2419),i=r(6813),n=r(505);function s(e){return new o.Observable((function(t){var r=e||i.performanceTimestampProvider,o=r.now(),s=0,a=function(){t.closed||(s=n.animationFrameProvider.requestAnimationFrame((function(i){s=0;var n=r.now();t.next({timestamp:e?n:i,elapsed:n-o}),a()})))};return a(),function(){s&&n.animationFrameProvider.cancelAnimationFrame(s)}}))}t.animationFrames=function(e){return e?s(e):a};var a=s()},6332:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.empty=t.EMPTY=void 0;var o=r(2419);t.EMPTY=new o.Observable((function(e){return e.complete()})),t.empty=function(e){return e?function(e){return new o.Observable((function(t){return e.schedule((function(){return t.complete()}))}))}(e):t.EMPTY}},7245:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forkJoin=void 0;var o=r(2419),i=r(1203),n=r(7103),s=r(2433),a=r(4990),u=r(1914),l=r(641);t.forkJoin=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=s.popResultSelector(e),p=i.argsArgArrayOrObject(e),c=p.args,g=p.keys,d=new o.Observable((function(e){var t=c.length;if(t)for(var r=new Array(t),o=t,i=t,s=function(t){var s=!1;n.innerFrom(c[t]).subscribe(a.createOperatorSubscriber(e,(function(e){s||(s=!0,i--),r[t]=e}),(function(){return o--}),void 0,(function(){o&&s||(i||e.next(g?l.createObject(g,r):r),e.complete())})))},u=0;u<t;u++)s(u);else e.complete()}));return r?d.pipe(u.mapOneOrManyArgs(r)):d}},5432:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.from=void 0;var o=r(5207),i=r(7103);t.from=function(e,t){return t?o.scheduled(e,t):i.innerFrom(e)}},3267:function(e,t,r){"use strict";var o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,i,n=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return s};Object.defineProperty(t,"__esModule",{value:!0}),t.fromEvent=void 0;var i=r(7103),n=r(2419),s=r(9475),a=r(3909),u=r(3005),l=r(1914),p=["addListener","removeListener"],c=["addEventListener","removeEventListener"],g=["on","off"];function d(e,t){return function(r){return function(o){return e[r](t,o)}}}t.fromEvent=function e(t,r,f,h){if(u.isFunction(f)&&(h=f,f=void 0),h)return e(t,r,f).pipe(l.mapOneOrManyArgs(h));var b=o(function(e){return u.isFunction(e.addEventListener)&&u.isFunction(e.removeEventListener)}(t)?c.map((function(e){return function(o){return t[e](r,o,f)}})):function(e){return u.isFunction(e.addListener)&&u.isFunction(e.removeListener)}(t)?p.map(d(t,r)):function(e){return u.isFunction(e.on)&&u.isFunction(e.off)}(t)?g.map(d(t,r)):[],2),y=b[0],v=b[1];if(!y&&a.isArrayLike(t))return s.mergeMap((function(t){return e(t,r,f)}))(i.innerFrom(t));if(!y)throw new TypeError("Invalid event target");return new n.Observable((function(e){var t=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.next(1<t.length?t:t[0])};return y(t),function(){return v(t)}}))}},470:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromEventPattern=void 0;var o=r(2419),i=r(3005),n=r(1914);t.fromEventPattern=function e(t,r,s){return s?e(t,r).pipe(n.mapOneOrManyArgs(s)):new o.Observable((function(e){var o=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.next(1===t.length?t[0]:t)},n=t(o);return i.isFunction(r)?function(){return r(o,n)}:void 0}))}},851:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromSubscribable=void 0;var o=r(2419);t.fromSubscribable=function(e){return new o.Observable((function(t){return e.subscribe(t)}))}},4303:function(e,t,r){"use strict";var o=this&&this.__generator||function(e,t){var r,o,i,n,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function a(n){return function(a){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,o&&(i=2&n[0]?o.return:n[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,n[1])).done)return i;switch(o=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return s.label++,{value:n[1],done:!1};case 5:s.label++,o=n[1],n=[0];continue;case 7:n=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){s=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){s.label=n[1];break}if(6===n[0]&&s.label<i[1]){s.label=i[1],i=n;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(n);break}i[2]&&s.ops.pop(),s.trys.pop();continue}n=t.call(e,s)}catch(e){n=[6,e],o=0}finally{r=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.generate=void 0;var i=r(4781),n=r(9016),s=r(7885),a=r(1297);t.generate=function(e,t,r,u,l){var p,c,g,d;function f(){var e;return o(this,(function(o){switch(o.label){case 0:e=d,o.label=1;case 1:return t&&!t(e)?[3,4]:[4,g(e)];case 2:o.sent(),o.label=3;case 3:return e=r(e),[3,1];case 4:return[2]}}))}return 1===arguments.length?(d=(p=e).initialState,t=p.condition,r=p.iterate,c=p.resultSelector,g=void 0===c?i.identity:c,l=p.scheduler):(d=e,!u||n.isScheduler(u)?(g=i.identity,l=u):g=u),s.defer(l?function(){return a.scheduleIterable(f(),l)}:f)}},1757:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iif=void 0;var o=r(7885);t.iif=function(e,t,r){return o.defer((function(){return e()?t:r}))}},7103:function(e,t,r){"use strict";var o=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))((function(i,n){function s(e){try{u(o.next(e))}catch(e){n(e)}}function a(e){try{u(o.throw(e))}catch(e){n(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((o=o.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,o,i,n,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function a(n){return function(a){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,o&&(i=2&n[0]?o.return:n[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,n[1])).done)return i;switch(o=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return s.label++,{value:n[1],done:!1};case 5:s.label++,o=n[1],n=[0];continue;case 7:n=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){s=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){s.label=n[1];break}if(6===n[0]&&s.label<i[1]){s.label=i[1],i=n;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(n);break}i[2]&&s.ops.pop(),s.trys.pop();continue}n=t.call(e,s)}catch(e){n=[6,e],o=0}finally{r=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}},n=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof s?s(e):e[Symbol.iterator](),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(r){t[r]=e[r]&&function(t){return new Promise((function(o,i){!function(e,t,r,o){Promise.resolve(o).then((function(t){e({value:t,done:r})}),t)}(o,i,(t=e[r](t)).done,t.value)}))}}},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.fromReadableStreamLike=t.fromAsyncIterable=t.fromIterable=t.fromPromise=t.fromArrayLike=t.fromInteropObservable=t.innerFrom=void 0;var a=r(3909),u=r(6018),l=r(2419),p=r(9500),c=r(9595),g=r(9906),d=r(2743),f=r(7823),h=r(3005),b=r(7968),y=r(2801);function v(e){return new l.Observable((function(t){var r=e[y.observable]();if(h.isFunction(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")}))}function m(e){return new l.Observable((function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()}))}function R(e){return new l.Observable((function(t){e.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,b.reportUnhandledError)}))}function S(e){return new l.Observable((function(t){var r,o;try{for(var i=s(e),n=i.next();!n.done;n=i.next()){var a=n.value;if(t.next(a),t.closed)return}}catch(e){r={error:e}}finally{try{n&&!n.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}t.complete()}))}function _(e){return new l.Observable((function(t){(function(e,t){var r,s,a,u;return o(this,void 0,void 0,(function(){var o,l;return i(this,(function(i){switch(i.label){case 0:i.trys.push([0,5,6,11]),r=n(e),i.label=1;case 1:return[4,r.next()];case 2:if((s=i.sent()).done)return[3,4];if(o=s.value,t.next(o),t.closed)return[2];i.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return l=i.sent(),a={error:l},[3,11];case 6:return i.trys.push([6,,9,10]),s&&!s.done&&(u=r.return)?[4,u.call(r)]:[3,8];case 7:i.sent(),i.label=8;case 8:return[3,10];case 9:if(a)throw a.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}}))}))})(e,t).catch((function(e){return t.error(e)}))}))}function O(e){return _(f.readableStreamLikeToAsyncGenerator(e))}t.innerFrom=function(e){if(e instanceof l.Observable)return e;if(null!=e){if(p.isInteropObservable(e))return v(e);if(a.isArrayLike(e))return m(e);if(u.isPromise(e))return R(e);if(c.isAsyncIterable(e))return _(e);if(d.isIterable(e))return S(e);if(f.isReadableStreamLike(e))return O(e)}throw g.createInvalidObservableTypeError(e)},t.fromInteropObservable=v,t.fromArrayLike=m,t.fromPromise=R,t.fromIterable=S,t.fromAsyncIterable=_,t.fromReadableStreamLike=O},8990:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.interval=void 0;var o=r(2445),i=r(7513);t.interval=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=o.asyncScheduler),e<0&&(e=0),i.timer(e,e,t)}},1846:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;var o=r(3783),i=r(7103),n=r(6332),s=r(2433),a=r(5432);t.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=s.popScheduler(e),u=s.popNumber(e,1/0),l=e;return l.length?1===l.length?i.innerFrom(l[0]):o.mergeAll(u)(a.from(l,r)):n.EMPTY}},1339:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.never=t.NEVER=void 0;var o=r(2419),i=r(2576);t.NEVER=new o.Observable(i.noop),t.never=function(){return t.NEVER}},5726:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.of=void 0;var o=r(2433),i=r(5432);t.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=o.popScheduler(e);return i.from(e,r)}},724:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onErrorResumeNext=void 0;var o=r(2419),i=r(5498),n=r(4990),s=r(2576),a=r(7103);t.onErrorResumeNext=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=i.argsOrArgArray(e);return new o.Observable((function(e){var t=0,o=function(){if(t<r.length){var i=void 0;try{i=a.innerFrom(r[t++])}catch(e){return void o()}var u=new n.OperatorSubscriber(e,void 0,s.noop,s.noop);i.subscribe(u),u.add(o)}else e.complete()};o()}))}},4380:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pairs=void 0;var o=r(5432);t.pairs=function(e,t){return o.from(Object.entries(e),t)}},7273:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.partition=void 0;var o=r(8634),i=r(9154),n=r(7103);t.partition=function(e,t,r){return[i.filter(t,r)(n.innerFrom(e)),i.filter(o.not(t,r))(n.innerFrom(e))]}},5182:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.raceInit=t.race=void 0;var o=r(2419),i=r(7103),n=r(5498),s=r(4990);function a(e){return function(t){for(var r=[],o=function(o){r.push(i.innerFrom(e[o]).subscribe(s.createOperatorSubscriber(t,(function(e){if(r){for(var i=0;i<r.length;i++)i!==o&&r[i].unsubscribe();r=null}t.next(e)}))))},n=0;r&&!t.closed&&n<e.length;n++)o(n)}}t.race=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===(e=n.argsOrArgArray(e)).length?i.innerFrom(e[0]):new o.Observable(a(e))},t.raceInit=a},322:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.range=void 0;var o=r(2419),i=r(6332);t.range=function(e,t,r){if(null==t&&(t=e,e=0),t<=0)return i.EMPTY;var n=t+e;return new o.Observable(r?function(t){var o=e;return r.schedule((function(){o<n?(t.next(o++),this.schedule()):t.complete()}))}:function(t){for(var r=e;r<n&&!t.closed;)t.next(r++);t.complete()})}},2098:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwError=void 0;var o=r(2419),i=r(3005);t.throwError=function(e,t){var r=i.isFunction(e)?e:function(){return e},n=function(e){return e.error(r())};return new o.Observable(t?function(e){return t.schedule(n,0,e)}:n)}},7513:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timer=void 0;var o=r(2419),i=r(2445),n=r(9016),s=r(1677);t.timer=function(e,t,r){void 0===e&&(e=0),void 0===r&&(r=i.async);var a=-1;return null!=t&&(n.isScheduler(t)?r=t:a=t),new o.Observable((function(t){var o=s.isValidDate(e)?+e-r.now():e;o<0&&(o=0);var i=0;return r.schedule((function(){t.closed||(t.next(i++),0<=a?this.schedule(void 0,a):t.complete())}),o)}))}},2962:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.using=void 0;var o=r(2419),i=r(7103),n=r(6332);t.using=function(e,t){return new o.Observable((function(r){var o=e(),s=t(o);return(s?i.innerFrom(s):n.EMPTY).subscribe(r),function(){o&&o.unsubscribe()}}))}},7654:function(e,t,r){"use strict";var o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,i,n=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,o=t.length,i=e.length;r<o;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.zip=void 0;var n=r(2419),s=r(7103),a=r(5498),u=r(6332),l=r(4990),p=r(2433);t.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=p.popResultSelector(e),c=a.argsOrArgArray(e);return c.length?new n.Observable((function(e){var t=c.map((function(){return[]})),n=c.map((function(){return!1}));e.add((function(){t=n=null}));for(var a=function(a){s.innerFrom(c[a]).subscribe(l.createOperatorSubscriber(e,(function(s){if(t[a].push(s),t.every((function(e){return e.length}))){var u=t.map((function(e){return e.shift()}));e.next(r?r.apply(void 0,i([],o(u))):u),t.some((function(e,t){return!e.length&&n[t]}))&&e.complete()}}),(function(){n[a]=!0,!t[a].length&&e.complete()})))},u=0;!e.closed&&u<c.length;u++)a(u);return function(){t=n=null}})):u.EMPTY}},4990:function(e,t,r){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.OperatorSubscriber=t.createOperatorSubscriber=void 0;var n=r(5125);t.createOperatorSubscriber=function(e,t,r,o,i){return new s(e,t,r,o,i)};var s=function(e){function t(t,r,o,i,n,s){var a=e.call(this,t)||this;return a.onFinalize=n,a.shouldUnsubscribe=s,a._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=o?function(){try{o()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return i(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(n.Subscriber);t.OperatorSubscriber=s},6474:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.audit=void 0;var o=r(4935),i=r(7103),n=r(4990);t.audit=function(e){return o.operate((function(t,r){var o=!1,s=null,a=null,u=!1,l=function(){if(null==a||a.unsubscribe(),a=null,o){o=!1;var e=s;s=null,r.next(e)}u&&r.complete()},p=function(){a=null,u&&r.complete()};t.subscribe(n.createOperatorSubscriber(r,(function(t){o=!0,s=t,a||i.innerFrom(e(t)).subscribe(a=n.createOperatorSubscriber(r,l,p))}),(function(){u=!0,(!o||!a||a.closed)&&r.complete()})))}))}},5382:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.auditTime=void 0;var o=r(2445),i=r(6474),n=r(7513);t.auditTime=function(e,t){return void 0===t&&(t=o.asyncScheduler),i.audit((function(){return n.timer(e,t)}))}},9715:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buffer=void 0;var o=r(4935),i=r(2576),n=r(4990),s=r(7103);t.buffer=function(e){return o.operate((function(t,r){var o=[];return t.subscribe(n.createOperatorSubscriber(r,(function(e){return o.push(e)}),(function(){r.next(o),r.complete()}))),s.innerFrom(e).subscribe(n.createOperatorSubscriber(r,(function(){var e=o;o=[],r.next(e)}),i.noop)),function(){o=null}}))}},3814:function(e,t,r){"use strict";var o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferCount=void 0;var i=r(4935),n=r(4990),s=r(6967);t.bufferCount=function(e,t){return void 0===t&&(t=null),t=null!=t?t:e,i.operate((function(r,i){var a=[],u=0;r.subscribe(n.createOperatorSubscriber(i,(function(r){var n,l,p,c,g=null;u++%t==0&&a.push([]);try{for(var d=o(a),f=d.next();!f.done;f=d.next())(y=f.value).push(r),e<=y.length&&(g=null!=g?g:[]).push(y)}catch(e){n={error:e}}finally{try{f&&!f.done&&(l=d.return)&&l.call(d)}finally{if(n)throw n.error}}if(g)try{for(var h=o(g),b=h.next();!b.done;b=h.next()){var y=b.value;s.arrRemove(a,y),i.next(y)}}catch(e){p={error:e}}finally{try{b&&!b.done&&(c=h.return)&&c.call(h)}finally{if(p)throw p.error}}}),(function(){var e,t;try{for(var r=o(a),n=r.next();!n.done;n=r.next()){var s=n.value;i.next(s)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}i.complete()}),void 0,(function(){a=null})))}))}},7211:function(e,t,r){"use strict";var o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferTime=void 0;var i=r(3865),n=r(4935),s=r(4990),a=r(6967),u=r(2445),l=r(2433),p=r(7738);t.bufferTime=function(e){for(var t,r,c=[],g=1;g<arguments.length;g++)c[g-1]=arguments[g];var d=null!==(t=l.popScheduler(c))&&void 0!==t?t:u.asyncScheduler,f=null!==(r=c[0])&&void 0!==r?r:null,h=c[1]||1/0;return n.operate((function(t,r){var n=[],u=!1,l=function(e){var t=e.buffer;e.subs.unsubscribe(),a.arrRemove(n,e),r.next(t),u&&c()},c=function(){if(n){var t=new i.Subscription;r.add(t);var o={buffer:[],subs:t};n.push(o),p.executeSchedule(t,d,(function(){return l(o)}),e)}};null!==f&&f>=0?p.executeSchedule(r,d,c,f,!0):u=!0,c();var g=s.createOperatorSubscriber(r,(function(e){var t,r,i=n.slice();try{for(var s=o(i),a=s.next();!a.done;a=s.next()){var u=a.value,p=u.buffer;p.push(e),h<=p.length&&l(u)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}}),(function(){for(;null==n?void 0:n.length;)r.next(n.shift().buffer);null==g||g.unsubscribe(),r.complete(),r.unsubscribe()}),void 0,(function(){return n=null}));t.subscribe(g)}))}},4943:function(e,t,r){"use strict";var o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferToggle=void 0;var i=r(3865),n=r(4935),s=r(7103),a=r(4990),u=r(2576),l=r(6967);t.bufferToggle=function(e,t){return n.operate((function(r,n){var p=[];s.innerFrom(e).subscribe(a.createOperatorSubscriber(n,(function(e){var r=[];p.push(r);var o=new i.Subscription;o.add(s.innerFrom(t(e)).subscribe(a.createOperatorSubscriber(n,(function(){l.arrRemove(p,r),n.next(r),o.unsubscribe()}),u.noop)))}),u.noop)),r.subscribe(a.createOperatorSubscriber(n,(function(e){var t,r;try{for(var i=o(p),n=i.next();!n.done;n=i.next())n.value.push(e)}catch(e){t={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}}),(function(){for(;p.length>0;)n.next(p.shift());n.complete()})))}))}},1240:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bufferWhen=void 0;var o=r(4935),i=r(2576),n=r(4990),s=r(7103);t.bufferWhen=function(e){return o.operate((function(t,r){var o=null,a=null,u=function(){null==a||a.unsubscribe();var t=o;o=[],t&&r.next(t),s.innerFrom(e()).subscribe(a=n.createOperatorSubscriber(r,u,i.noop))};u(),t.subscribe(n.createOperatorSubscriber(r,(function(e){return null==o?void 0:o.push(e)}),(function(){o&&r.next(o),r.complete()}),void 0,(function(){return o=a=null})))}))}},9548:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.catchError=void 0;var o=r(7103),i=r(4990),n=r(4935);t.catchError=function e(t){return n.operate((function(r,n){var s,a=null,u=!1;a=r.subscribe(i.createOperatorSubscriber(n,void 0,void 0,(function(i){s=o.innerFrom(t(i,e(t)(r))),a?(a.unsubscribe(),a=null,s.subscribe(n)):u=!0}))),u&&(a.unsubscribe(),a=null,s.subscribe(n))}))}},2128:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineAll=void 0;var o=r(3240);t.combineAll=o.combineLatestAll},6318:function(e,t,r){"use strict";var o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,i,n=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,o=t.length,i=e.length;r<o;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatest=void 0;var n=r(9258),s=r(4935),a=r(5498),u=r(1914),l=r(9985),p=r(2433);t.combineLatest=function e(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var c=p.popResultSelector(t);return c?l.pipe(e.apply(void 0,i([],o(t))),u.mapOneOrManyArgs(c)):s.operate((function(e,r){n.combineLatestInit(i([e],o(a.argsOrArgArray(t))))(r)}))}},3240:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestAll=void 0;var o=r(9258),i=r(2069);t.combineLatestAll=function(e){return i.joinAllInternals(o.combineLatest,e)}},5024:function(e,t,r){"use strict";var o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,i,n=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,o=t.length,i=e.length;r<o;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestWith=void 0;var n=r(6318);t.combineLatestWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.combineLatest.apply(void 0,i([],o(e)))}},4919:function(e,t,r){"use strict";var o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,i,n=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,o=t.length,i=e.length;r<o;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.concat=void 0;var n=r(4935),s=r(4413),a=r(2433),u=r(5432);t.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=a.popScheduler(e);return n.operate((function(t,n){s.concatAll()(u.from(i([t],o(e)),r)).subscribe(n)}))}},4413:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatAll=void 0;var o=r(3783);t.concatAll=function(){return o.mergeAll(1)}},7498:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatMap=void 0;var o=r(9475),i=r(3005);t.concatMap=function(e,t){return i.isFunction(t)?o.mergeMap(e,t,1):o.mergeMap(e,1)}},6109:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatMapTo=void 0;var o=r(7498),i=r(3005);t.concatMapTo=function(e,t){return i.isFunction(t)?o.concatMap((function(){return e}),t):o.concatMap((function(){return e}))}},9664:function(e,t,r){"use strict";var o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,i,n=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,o=t.length,i=e.length;r<o;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.concatWith=void 0;var n=r(4919);t.concatWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.concat.apply(void 0,i([],o(e)))}},1995:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connect=void 0;var o=r(3032),i=r(7103),n=r(4935),s=r(851),a={connector:function(){return new o.Subject}};t.connect=function(e,t){void 0===t&&(t=a);var r=t.connector;return n.operate((function(t,o){var n=r();i.innerFrom(e(s.fromSubscribable(n))).subscribe(o),o.add(t.subscribe(n))}))}},993:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.count=void 0;var o=r(122);t.count=function(e){return o.reduce((function(t,r,o){return!e||e(r,o)?t+1:t}),0)}},496:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=void 0;var o=r(4935),i=r(2576),n=r(4990),s=r(7103);t.debounce=function(e){return o.operate((function(t,r){var o=!1,a=null,u=null,l=function(){if(null==u||u.unsubscribe(),u=null,o){o=!1;var e=a;a=null,r.next(e)}};t.subscribe(n.createOperatorSubscriber(r,(function(t){null==u||u.unsubscribe(),o=!0,a=t,u=n.createOperatorSubscriber(r,l,i.noop),s.innerFrom(e(t)).subscribe(u)}),(function(){l(),r.complete()}),void 0,(function(){a=u=null})))}))}},1385:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounceTime=void 0;var o=r(2445),i=r(4935),n=r(4990);t.debounceTime=function(e,t){return void 0===t&&(t=o.asyncScheduler),i.operate((function(r,o){var i=null,s=null,a=null,u=function(){if(i){i.unsubscribe(),i=null;var e=s;s=null,o.next(e)}};function l(){var r=a+e,n=t.now();if(n<r)return i=this.schedule(void 0,r-n),void o.add(i);u()}r.subscribe(n.createOperatorSubscriber(o,(function(r){s=r,a=t.now(),i||(i=t.schedule(l,e),o.add(i))}),(function(){u(),o.complete()}),void 0,(function(){s=i=null})))}))}},1658:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultIfEmpty=void 0;var o=r(4935),i=r(4990);t.defaultIfEmpty=function(e){return o.operate((function(t,r){var o=!1;t.subscribe(i.createOperatorSubscriber(r,(function(e){o=!0,r.next(e)}),(function(){o||r.next(e),r.complete()})))}))}},5841:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0;var o=r(2445),i=r(8798),n=r(7513);t.delay=function(e,t){void 0===t&&(t=o.asyncScheduler);var r=n.timer(e,t);return i.delayWhen((function(){return r}))}},8798:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delayWhen=void 0;var o=r(2239),i=r(4783),n=r(9438),s=r(8313),a=r(9475),u=r(7103);t.delayWhen=function e(t,r){return r?function(s){return o.concat(r.pipe(i.take(1),n.ignoreElements()),s.pipe(e(t)))}:a.mergeMap((function(e,r){return u.innerFrom(t(e,r)).pipe(i.take(1),s.mapTo(e))}))}},1080:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dematerialize=void 0;var o=r(3104),i=r(4935),n=r(4990);t.dematerialize=function(){return i.operate((function(e,t){e.subscribe(n.createOperatorSubscriber(t,(function(e){return o.observeNotification(e,t)})))}))}},3054:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinct=void 0;var o=r(4935),i=r(4990),n=r(2576),s=r(7103);t.distinct=function(e,t){return o.operate((function(r,o){var a=new Set;r.subscribe(i.createOperatorSubscriber(o,(function(t){var r=e?e(t):t;a.has(r)||(a.add(r),o.next(t))}))),t&&s.innerFrom(t).subscribe(i.createOperatorSubscriber(o,(function(){return a.clear()}),n.noop))}))}},8737:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilChanged=void 0;var o=r(4781),i=r(4935),n=r(4990);function s(e,t){return e===t}t.distinctUntilChanged=function(e,t){return void 0===t&&(t=o.identity),e=null!=e?e:s,i.operate((function(r,o){var i,s=!0;r.subscribe(n.createOperatorSubscriber(o,(function(r){var n=t(r);!s&&e(i,n)||(s=!1,i=n,o.next(r))})))}))}},7957:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilKeyChanged=void 0;var o=r(8737);t.distinctUntilKeyChanged=function(e,t){return o.distinctUntilChanged((function(r,o){return t?t(r[e],o[e]):r[e]===o[e]}))}},8633:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.elementAt=void 0;var o=r(2351),i=r(9154),n=r(1779),s=r(1658),a=r(4783);t.elementAt=function(e,t){if(e<0)throw new o.ArgumentOutOfRangeError;var r=arguments.length>=2;return function(u){return u.pipe(i.filter((function(t,r){return r===e})),a.take(1),r?s.defaultIfEmpty(t):n.throwIfEmpty((function(){return new o.ArgumentOutOfRangeError})))}}},911:function(e,t,r){"use strict";var o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,i,n=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,o=t.length,i=e.length;r<o;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.endWith=void 0;var n=r(2239),s=r(5726);t.endWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return n.concat(t,s.of.apply(void 0,i([],o(e))))}}},2096:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.every=void 0;var o=r(4935),i=r(4990);t.every=function(e,t){return o.operate((function(r,o){var n=0;r.subscribe(i.createOperatorSubscriber(o,(function(i){e.call(t,i,n++,r)||(o.next(!1),o.complete())}),(function(){o.next(!0),o.complete()})))}))}},67:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaust=void 0;var o=r(5337);t.exhaust=o.exhaustAll},5337:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaustAll=void 0;var o=r(5635),i=r(4781);t.exhaustAll=function(){return o.exhaustMap(i.identity)}},5635:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaustMap=void 0;var o=r(7291),i=r(7103),n=r(4935),s=r(4990);t.exhaustMap=function e(t,r){return r?function(n){return n.pipe(e((function(e,n){return i.innerFrom(t(e,n)).pipe(o.map((function(t,o){return r(e,t,n,o)})))})))}:n.operate((function(e,r){var o=0,n=null,a=!1;e.subscribe(s.createOperatorSubscriber(r,(function(e){n||(n=s.createOperatorSubscriber(r,void 0,(function(){n=null,a&&r.complete()})),i.innerFrom(t(e,o++)).subscribe(n))}),(function(){a=!0,!n&&r.complete()})))}))}},2874:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expand=void 0;var o=r(4935),i=r(7788);t.expand=function(e,t,r){return void 0===t&&(t=1/0),t=(t||0)<1?1/0:t,o.operate((function(o,n){return i.mergeInternals(o,n,e,t,void 0,!0,r)}))}},9154:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filter=void 0;var o=r(4935),i=r(4990);t.filter=function(e,t){return o.operate((function(r,o){var n=0;r.subscribe(i.createOperatorSubscriber(o,(function(r){return e.call(t,r,n++)&&o.next(r)})))}))}},9283:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.finalize=void 0;var o=r(4935);t.finalize=function(e){return o.operate((function(t,r){try{t.subscribe(r)}finally{r.add(e)}}))}},7119:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFind=t.find=void 0;var o=r(4935),i=r(4990);function n(e,t,r){var o="index"===r;return function(r,n){var s=0;r.subscribe(i.createOperatorSubscriber(n,(function(i){var a=s++;e.call(t,i,a,r)&&(n.next(o?a:i),n.complete())}),(function(){n.next(o?-1:void 0),n.complete()})))}}t.find=function(e,t){return o.operate(n(e,t,"value"))},t.createFind=n},4706:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findIndex=void 0;var o=r(4935),i=r(7119);t.findIndex=function(e,t){return o.operate(i.createFind(e,t,"index"))}},9219:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.first=void 0;var o=r(9474),i=r(9154),n=r(4783),s=r(1658),a=r(1779),u=r(4781);t.first=function(e,t){var r=arguments.length>=2;return function(l){return l.pipe(e?i.filter((function(t,r){return e(t,r,l)})):u.identity,n.take(1),r?s.defaultIfEmpty(t):a.throwIfEmpty((function(){return new o.EmptyError})))}}},1788:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flatMap=void 0;var o=r(9475);t.flatMap=o.mergeMap},9749:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.groupBy=void 0;var o=r(2419),i=r(7103),n=r(3032),s=r(4935),a=r(4990);t.groupBy=function(e,t,r,u){return s.operate((function(s,l){var p;t&&"function"!=typeof t?(r=t.duration,p=t.element,u=t.connector):p=t;var c=new Map,g=function(e){c.forEach(e),e(l)},d=function(e){return g((function(t){return t.error(e)}))},f=0,h=!1,b=new a.OperatorSubscriber(l,(function(t){try{var s=e(t),g=c.get(s);if(!g){c.set(s,g=u?u():new n.Subject);var y=(m=s,R=g,(S=new o.Observable((function(e){f++;var t=R.subscribe(e);return function(){t.unsubscribe(),0==--f&&h&&b.unsubscribe()}}))).key=m,S);if(l.next(y),r){var v=a.createOperatorSubscriber(g,(function(){g.complete(),null==v||v.unsubscribe()}),void 0,void 0,(function(){return c.delete(s)}));b.add(i.innerFrom(r(y)).subscribe(v))}}g.next(p?p(t):t)}catch(e){d(e)}var m,R,S}),(function(){return g((function(e){return e.complete()}))}),d,(function(){return c.clear()}),(function(){return h=!0,0===f}));s.subscribe(b)}))}},9438:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ignoreElements=void 0;var o=r(4935),i=r(4990),n=r(2576);t.ignoreElements=function(){return o.operate((function(e,t){e.subscribe(i.createOperatorSubscriber(t,n.noop))}))}},8515:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=void 0;var o=r(4935),i=r(4990);t.isEmpty=function(){return o.operate((function(e,t){e.subscribe(i.createOperatorSubscriber(t,(function(){t.next(!1),t.complete()}),(function(){t.next(!0),t.complete()})))}))}},2069:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.joinAllInternals=void 0;var o=r(4781),i=r(1914),n=r(9985),s=r(9475),a=r(2);t.joinAllInternals=function(e,t){return n.pipe(a.toArray(),s.mergeMap((function(t){return e(t)})),t?i.mapOneOrManyArgs(t):o.identity)}},2435:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.last=void 0;var o=r(9474),i=r(9154),n=r(1980),s=r(1779),a=r(1658),u=r(4781);t.last=function(e,t){var r=arguments.length>=2;return function(l){return l.pipe(e?i.filter((function(t,r){return e(t,r,l)})):u.identity,n.takeLast(1),r?a.defaultIfEmpty(t):s.throwIfEmpty((function(){return new o.EmptyError})))}}},7291:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.map=void 0;var o=r(4935),i=r(4990);t.map=function(e,t){return o.operate((function(r,o){var n=0;r.subscribe(i.createOperatorSubscriber(o,(function(r){o.next(e.call(t,r,n++))})))}))}},8313:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapTo=void 0;var o=r(7291);t.mapTo=function(e){return o.map((function(){return e}))}},3209:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.materialize=void 0;var o=r(3104),i=r(4935),n=r(4990);t.materialize=function(){return i.operate((function(e,t){e.subscribe(n.createOperatorSubscriber(t,(function(e){t.next(o.Notification.createNext(e))}),(function(){t.next(o.Notification.createComplete()),t.complete()}),(function(e){t.next(o.Notification.createError(e)),t.complete()})))}))}},2620:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.max=void 0;var o=r(122),i=r(3005);t.max=function(e){return o.reduce(i.isFunction(e)?function(t,r){return e(t,r)>0?t:r}:function(e,t){return e>t?e:t})}},9821:function(e,t,r){"use strict";var o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,i,n=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,o=t.length,i=e.length;r<o;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;var n=r(4935),s=r(5498),a=r(3783),u=r(2433),l=r(5432);t.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=u.popScheduler(e),p=u.popNumber(e,1/0);return e=s.argsOrArgArray(e),n.operate((function(t,n){a.mergeAll(p)(l.from(i([t],o(e)),r)).subscribe(n)}))}},3783:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeAll=void 0;var o=r(9475),i=r(4781);t.mergeAll=function(e){return void 0===e&&(e=1/0),o.mergeMap(i.identity,e)}},7788:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeInternals=void 0;var o=r(7103),i=r(7738),n=r(4990);t.mergeInternals=function(e,t,r,s,a,u,l,p){var c=[],g=0,d=0,f=!1,h=function(){!f||c.length||g||t.complete()},b=function(e){return g<s?y(e):c.push(e)},y=function(e){u&&t.next(e),g++;var p=!1;o.innerFrom(r(e,d++)).subscribe(n.createOperatorSubscriber(t,(function(e){null==a||a(e),u?b(e):t.next(e)}),(function(){p=!0}),void 0,(function(){if(p)try{g--;for(var e=function(){var e=c.shift();l?i.executeSchedule(t,l,(function(){return y(e)})):y(e)};c.length&&g<s;)e();h()}catch(e){t.error(e)}})))};return e.subscribe(n.createOperatorSubscriber(t,b,(function(){f=!0,h()}))),function(){null==p||p()}}},9475:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMap=void 0;var o=r(7291),i=r(7103),n=r(4935),s=r(7788),a=r(3005);t.mergeMap=function e(t,r,u){return void 0===u&&(u=1/0),a.isFunction(r)?e((function(e,n){return o.map((function(t,o){return r(e,t,n,o)}))(i.innerFrom(t(e,n)))}),u):("number"==typeof r&&(u=r),n.operate((function(e,r){return s.mergeInternals(e,r,t,u)})))}},1211:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMapTo=void 0;var o=r(9475),i=r(3005);t.mergeMapTo=function(e,t,r){return void 0===r&&(r=1/0),i.isFunction(t)?o.mergeMap((function(){return e}),t,r):("number"==typeof t&&(r=t),o.mergeMap((function(){return e}),r))}},7267:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeScan=void 0;var o=r(4935),i=r(7788);t.mergeScan=function(e,t,r){return void 0===r&&(r=1/0),o.operate((function(o,n){var s=t;return i.mergeInternals(o,n,(function(t,r){return e(s,t,r)}),r,(function(e){s=e}),!1,void 0,(function(){return s=null}))}))}},9303:function(e,t,r){"use strict";var o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,i,n=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,o=t.length,i=e.length;r<o;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.mergeWith=void 0;var n=r(9821);t.mergeWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.merge.apply(void 0,i([],o(e)))}},9714:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.min=void 0;var o=r(122),i=r(3005);t.min=function(e){return o.reduce(i.isFunction(e)?function(t,r){return e(t,r)<0?t:r}:function(e,t){return e<t?e:t})}},3848:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multicast=void 0;var o=r(9518),i=r(3005),n=r(1995);t.multicast=function(e,t){var r=i.isFunction(e)?e:function(){return e};return i.isFunction(t)?n.connect(t,{connector:r}):function(e){return new o.ConnectableObservable(e,r)}}},1184:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observeOn=void 0;var o=r(7738),i=r(4935),n=r(4990);t.observeOn=function(e,t){return void 0===t&&(t=0),i.operate((function(r,i){r.subscribe(n.createOperatorSubscriber(i,(function(r){return o.executeSchedule(i,e,(function(){return i.next(r)}),t)}),(function(){return o.executeSchedule(i,e,(function(){return i.complete()}),t)}),(function(r){return o.executeSchedule(i,e,(function(){return i.error(r)}),t)})))}))}},7582:function(e,t,r){"use strict";var o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,i,n=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,o=t.length,i=e.length;r<o;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.onErrorResumeNext=t.onErrorResumeNextWith=void 0;var n=r(5498),s=r(724);function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=n.argsOrArgArray(e);return function(e){return s.onErrorResumeNext.apply(void 0,i([e],o(r)))}}t.onErrorResumeNextWith=a,t.onErrorResumeNext=a},2731:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pairwise=void 0;var o=r(4935),i=r(4990);t.pairwise=function(){return o.operate((function(e,t){var r,o=!1;e.subscribe(i.createOperatorSubscriber(t,(function(e){var i=r;r=e,o&&t.next([i,e]),o=!0})))}))}},5649:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.partition=void 0;var o=r(8634),i=r(9154);t.partition=function(e,t){return function(r){return[i.filter(e,t)(r),i.filter(o.not(e,t))(r)]}}},4691:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pluck=void 0;var o=r(7291);t.pluck=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e.length;if(0===r)throw new Error("list of properties cannot be empty.");return o.map((function(t){for(var o=t,i=0;i<r;i++){var n=null==o?void 0:o[e[i]];if(void 0===n)return;o=n}return o}))}},4474:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publish=void 0;var o=r(3032),i=r(3848),n=r(1995);t.publish=function(e){return e?function(t){return n.connect(e)(t)}:function(e){return i.multicast(new o.Subject)(e)}}},52:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishBehavior=void 0;var o=r(5240),i=r(9518);t.publishBehavior=function(e){return function(t){var r=new o.BehaviorSubject(e);return new i.ConnectableObservable(t,(function(){return r}))}}},2110:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishLast=void 0;var o=r(280),i=r(9518);t.publishLast=function(){return function(e){var t=new o.AsyncSubject;return new i.ConnectableObservable(e,(function(){return t}))}}},9864:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishReplay=void 0;var o=r(3274),i=r(3848),n=r(3005);t.publishReplay=function(e,t,r,s){r&&!n.isFunction(r)&&(s=r);var a=n.isFunction(r)?r:void 0;return function(r){return i.multicast(new o.ReplaySubject(e,t,s),a)(r)}}},9764:function(e,t,r){"use strict";var o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,i,n=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,o=t.length,i=e.length;r<o;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.race=void 0;var n=r(5498),s=r(179);t.race=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s.raceWith.apply(void 0,i([],o(n.argsOrArgArray(e))))}},179:function(e,t,r){"use strict";var o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,i,n=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,o=t.length,i=e.length;r<o;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.raceWith=void 0;var n=r(5182),s=r(4935),a=r(4781);t.raceWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length?s.operate((function(t,r){n.raceInit(i([t],o(e)))(r)})):a.identity}},122:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reduce=void 0;var o=r(8345),i=r(4935);t.reduce=function(e,t){return i.operate(o.scanInternals(e,t,arguments.length>=2,!1,!0))}},8739:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.refCount=void 0;var o=r(4935),i=r(4990);t.refCount=function(){return o.operate((function(e,t){var r=null;e._refCount++;var o=i.createOperatorSubscriber(t,void 0,void 0,void 0,(function(){if(!e||e._refCount<=0||0<--e._refCount)r=null;else{var o=e._connection,i=r;r=null,!o||i&&o!==i||o.unsubscribe(),t.unsubscribe()}}));e.subscribe(o),o.closed||(r=e.connect())}))}},5313:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.repeat=void 0;var o=r(6332),i=r(4935),n=r(4990),s=r(7103),a=r(7513);t.repeat=function(e){var t,r,u=1/0;return null!=e&&("object"==typeof e?(t=e.count,u=void 0===t?1/0:t,r=e.delay):u=e),u<=0?function(){return o.EMPTY}:i.operate((function(e,t){var o,i=0,l=function(){if(null==o||o.unsubscribe(),o=null,null!=r){var e="number"==typeof r?a.timer(r):s.innerFrom(r(i)),u=n.createOperatorSubscriber(t,(function(){u.unsubscribe(),p()}));e.subscribe(u)}else p()},p=function(){var r=!1;o=e.subscribe(n.createOperatorSubscriber(t,void 0,(function(){++i<u?o?l():r=!0:t.complete()}))),r&&l()};p()}))}},4068:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.repeatWhen=void 0;var o=r(7103),i=r(3032),n=r(4935),s=r(4990);t.repeatWhen=function(e){return n.operate((function(t,r){var n,a,u=!1,l=!1,p=!1,c=function(){return p&&l&&(r.complete(),!0)},g=function(){p=!1,n=t.subscribe(s.createOperatorSubscriber(r,void 0,(function(){p=!0,!c()&&(a||(a=new i.Subject,o.innerFrom(e(a)).subscribe(s.createOperatorSubscriber(r,(function(){n?g():u=!0}),(function(){l=!0,c()})))),a).next()}))),u&&(n.unsubscribe(),n=null,u=!1,g())};g()}))}},64:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.retry=void 0;var o=r(4935),i=r(4990),n=r(4781),s=r(7513),a=r(7103);t.retry=function(e){var t;void 0===e&&(e=1/0);var r=(t=e&&"object"==typeof e?e:{count:e}).count,u=void 0===r?1/0:r,l=t.delay,p=t.resetOnSuccess,c=void 0!==p&&p;return u<=0?n.identity:o.operate((function(e,t){var r,o=0,n=function(){var p=!1;r=e.subscribe(i.createOperatorSubscriber(t,(function(e){c&&(o=0),t.next(e)}),void 0,(function(e){if(o++<u){var c=function(){r?(r.unsubscribe(),r=null,n()):p=!0};if(null!=l){var g="number"==typeof l?s.timer(l):a.innerFrom(l(e,o)),d=i.createOperatorSubscriber(t,(function(){d.unsubscribe(),c()}),(function(){t.complete()}));g.subscribe(d)}else c()}else t.error(e)}))),p&&(r.unsubscribe(),r=null,n())};n()}))}},1188:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.retryWhen=void 0;var o=r(7103),i=r(3032),n=r(4935),s=r(4990);t.retryWhen=function(e){return n.operate((function(t,r){var n,a,u=!1,l=function(){n=t.subscribe(s.createOperatorSubscriber(r,void 0,void 0,(function(t){a||(a=new i.Subject,o.innerFrom(e(a)).subscribe(s.createOperatorSubscriber(r,(function(){return n?l():u=!0})))),a&&a.next(t)}))),u&&(n.unsubscribe(),n=null,u=!1,l())};l()}))}},4193:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sample=void 0;var o=r(7103),i=r(4935),n=r(2576),s=r(4990);t.sample=function(e){return i.operate((function(t,r){var i=!1,a=null;t.subscribe(s.createOperatorSubscriber(r,(function(e){i=!0,a=e}))),o.innerFrom(e).subscribe(s.createOperatorSubscriber(r,(function(){if(i){i=!1;var e=a;a=null,r.next(e)}}),n.noop))}))}},6170:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sampleTime=void 0;var o=r(2445),i=r(4193),n=r(8990);t.sampleTime=function(e,t){return void 0===t&&(t=o.asyncScheduler),i.sample(n.interval(e,t))}},5876:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scan=void 0;var o=r(4935),i=r(8345);t.scan=function(e,t){return o.operate(i.scanInternals(e,t,arguments.length>=2,!0))}},8345:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scanInternals=void 0;var o=r(4990);t.scanInternals=function(e,t,r,i,n){return function(s,a){var u=r,l=t,p=0;s.subscribe(o.createOperatorSubscriber(a,(function(t){var r=p++;l=u?e(l,t,r):(u=!0,t),i&&a.next(l)}),n&&function(){u&&a.next(l),a.complete()}))}}},1791:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sequenceEqual=void 0;var o=r(4935),i=r(4990),n=r(7103);t.sequenceEqual=function(e,t){return void 0===t&&(t=function(e,t){return e===t}),o.operate((function(r,o){var s={buffer:[],complete:!1},a={buffer:[],complete:!1},u=function(e){o.next(e),o.complete()},l=function(e,r){var n=i.createOperatorSubscriber(o,(function(o){var i=r.buffer,n=r.complete;0===i.length?n?u(!1):e.buffer.push(o):!t(o,i.shift())&&u(!1)}),(function(){e.complete=!0;var t=r.complete,o=r.buffer;t&&u(0===o.length),null==n||n.unsubscribe()}));return n};r.subscribe(l(s,a)),n.innerFrom(e).subscribe(l(a,s))}))}},5137:function(e,t,r){"use strict";var o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,i,n=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,o=t.length,i=e.length;r<o;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.share=void 0;var n=r(7103),s=r(3032),a=r(5125),u=r(4935);function l(e,t){for(var r=[],s=2;s<arguments.length;s++)r[s-2]=arguments[s];if(!0!==t){if(!1!==t){var u=new a.SafeSubscriber({next:function(){u.unsubscribe(),e()}});return n.innerFrom(t.apply(void 0,i([],o(r)))).subscribe(u)}}else e()}t.share=function(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new s.Subject}:t,o=e.resetOnError,i=void 0===o||o,p=e.resetOnComplete,c=void 0===p||p,g=e.resetOnRefCountZero,d=void 0===g||g;return function(e){var t,o,s,p=0,g=!1,f=!1,h=function(){null==o||o.unsubscribe(),o=void 0},b=function(){h(),t=s=void 0,g=f=!1},y=function(){var e=t;b(),null==e||e.unsubscribe()};return u.operate((function(e,u){p++,f||g||h();var v=s=null!=s?s:r();u.add((function(){0!=--p||f||g||(o=l(y,d))})),v.subscribe(u),!t&&p>0&&(t=new a.SafeSubscriber({next:function(e){return v.next(e)},error:function(e){f=!0,h(),o=l(b,i,e),v.error(e)},complete:function(){g=!0,h(),o=l(b,c),v.complete()}}),n.innerFrom(e).subscribe(t))}))(e)}}},1348:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shareReplay=void 0;var o=r(3274),i=r(5137);t.shareReplay=function(e,t,r){var n,s,a,u,l=!1;return e&&"object"==typeof e?(n=e.bufferSize,u=void 0===n?1/0:n,s=e.windowTime,t=void 0===s?1/0:s,l=void 0!==(a=e.refCount)&&a,r=e.scheduler):u=null!=e?e:1/0,i.share({connector:function(){return new o.ReplaySubject(u,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:l})}},8242:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.single=void 0;var o=r(9474),i=r(6156),n=r(8598),s=r(4935),a=r(4990);t.single=function(e){return s.operate((function(t,r){var s,u=!1,l=!1,p=0;t.subscribe(a.createOperatorSubscriber(r,(function(o){l=!0,e&&!e(o,p++,t)||(u&&r.error(new i.SequenceError("Too many matching values")),u=!0,s=o)}),(function(){u?(r.next(s),r.complete()):r.error(l?new n.NotFoundError("No matching values"):new o.EmptyError)})))}))}},3169:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skip=void 0;var o=r(9154);t.skip=function(e){return o.filter((function(t,r){return e<=r}))}},2454:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipLast=void 0;var o=r(4781),i=r(4935),n=r(4990);t.skipLast=function(e){return e<=0?o.identity:i.operate((function(t,r){var o=new Array(e),i=0;return t.subscribe(n.createOperatorSubscriber(r,(function(t){var n=i++;if(n<e)o[n]=t;else{var s=n%e,a=o[s];o[s]=t,r.next(a)}}))),function(){o=null}}))}},6931:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipUntil=void 0;var o=r(4935),i=r(4990),n=r(7103),s=r(2576);t.skipUntil=function(e){return o.operate((function(t,r){var o=!1,a=i.createOperatorSubscriber(r,(function(){null==a||a.unsubscribe(),o=!0}),s.noop);n.innerFrom(e).subscribe(a),t.subscribe(i.createOperatorSubscriber(r,(function(e){return o&&r.next(e)})))}))}},7913:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipWhile=void 0;var o=r(4935),i=r(4990);t.skipWhile=function(e){return o.operate((function(t,r){var o=!1,n=0;t.subscribe(i.createOperatorSubscriber(r,(function(t){return(o||(o=!e(t,n++)))&&r.next(t)})))}))}},9234:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.startWith=void 0;var o=r(2239),i=r(2433),n=r(4935);t.startWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=i.popScheduler(e);return n.operate((function(t,i){(r?o.concat(e,t,r):o.concat(e,t)).subscribe(i)}))}},276:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribeOn=void 0;var o=r(4935);t.subscribeOn=function(e,t){return void 0===t&&(t=0),o.operate((function(r,o){o.add(e.schedule((function(){return r.subscribe(o)}),t))}))}},9253:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchAll=void 0;var o=r(8518),i=r(4781);t.switchAll=function(){return o.switchMap(i.identity)}},8518:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchMap=void 0;var o=r(7103),i=r(4935),n=r(4990);t.switchMap=function(e,t){return i.operate((function(r,i){var s=null,a=0,u=!1,l=function(){return u&&!s&&i.complete()};r.subscribe(n.createOperatorSubscriber(i,(function(r){null==s||s.unsubscribe();var u=0,p=a++;o.innerFrom(e(r,p)).subscribe(s=n.createOperatorSubscriber(i,(function(e){return i.next(t?t(r,e,p,u++):e)}),(function(){s=null,l()})))}),(function(){u=!0,l()})))}))}},1173:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchMapTo=void 0;var o=r(8518),i=r(3005);t.switchMapTo=function(e,t){return i.isFunction(t)?o.switchMap((function(){return e}),t):o.switchMap((function(){return e}))}},3855:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchScan=void 0;var o=r(8518),i=r(4935);t.switchScan=function(e,t){return i.operate((function(r,i){var n=t;return o.switchMap((function(t,r){return e(n,t,r)}),(function(e,t){return n=t,t}))(r).subscribe(i),function(){n=null}}))}},4783:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.take=void 0;var o=r(6332),i=r(4935),n=r(4990);t.take=function(e){return e<=0?function(){return o.EMPTY}:i.operate((function(t,r){var o=0;t.subscribe(n.createOperatorSubscriber(r,(function(t){++o<=e&&(r.next(t),e<=o&&r.complete())})))}))}},1980:function(e,t,r){"use strict";var o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.takeLast=void 0;var i=r(6332),n=r(4935),s=r(4990);t.takeLast=function(e){return e<=0?function(){return i.EMPTY}:n.operate((function(t,r){var i=[];t.subscribe(s.createOperatorSubscriber(r,(function(t){i.push(t),e<i.length&&i.shift()}),(function(){var e,t;try{for(var n=o(i),s=n.next();!s.done;s=n.next()){var a=s.value;r.next(a)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}r.complete()}),void 0,(function(){i=null})))}))}},9845:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.takeUntil=void 0;var o=r(4935),i=r(4990),n=r(7103),s=r(2576);t.takeUntil=function(e){return o.operate((function(t,r){n.innerFrom(e).subscribe(i.createOperatorSubscriber(r,(function(){return r.complete()}),s.noop)),!r.closed&&t.subscribe(r)}))}},6060:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.takeWhile=void 0;var o=r(4935),i=r(4990);t.takeWhile=function(e,t){return void 0===t&&(t=!1),o.operate((function(r,o){var n=0;r.subscribe(i.createOperatorSubscriber(o,(function(r){var i=e(r,n++);(i||t)&&o.next(r),!i&&o.complete()})))}))}},1138:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tap=void 0;var o=r(3005),i=r(4935),n=r(4990),s=r(4781);t.tap=function(e,t,r){var a=o.isFunction(e)||t||r?{next:e,error:t,complete:r}:e;return a?i.operate((function(e,t){var r;null===(r=a.subscribe)||void 0===r||r.call(a);var o=!0;e.subscribe(n.createOperatorSubscriber(t,(function(e){var r;null===(r=a.next)||void 0===r||r.call(a,e),t.next(e)}),(function(){var e;o=!1,null===(e=a.complete)||void 0===e||e.call(a),t.complete()}),(function(e){var r;o=!1,null===(r=a.error)||void 0===r||r.call(a,e),t.error(e)}),(function(){var e,t;o&&(null===(e=a.unsubscribe)||void 0===e||e.call(a)),null===(t=a.finalize)||void 0===t||t.call(a)})))})):s.identity}},7306:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttle=void 0;var o=r(4935),i=r(4990),n=r(7103);t.throttle=function(e,t){return o.operate((function(r,o){var s=null!=t?t:{},a=s.leading,u=void 0===a||a,l=s.trailing,p=void 0!==l&&l,c=!1,g=null,d=null,f=!1,h=function(){null==d||d.unsubscribe(),d=null,p&&(v(),f&&o.complete())},b=function(){d=null,f&&o.complete()},y=function(t){return d=n.innerFrom(e(t)).subscribe(i.createOperatorSubscriber(o,h,b))},v=function(){if(c){c=!1;var e=g;g=null,o.next(e),!f&&y(e)}};r.subscribe(i.createOperatorSubscriber(o,(function(e){c=!0,g=e,(!d||d.closed)&&(u?v():y(e))}),(function(){f=!0,(!(p&&c&&d)||d.closed)&&o.complete()})))}))}},8968:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttleTime=void 0;var o=r(2445),i=r(7306),n=r(7513);t.throttleTime=function(e,t,r){void 0===t&&(t=o.asyncScheduler);var s=n.timer(e,t);return i.throttle((function(){return s}),r)}},1779:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwIfEmpty=void 0;var o=r(9474),i=r(4935),n=r(4990);function s(){return new o.EmptyError}t.throwIfEmpty=function(e){return void 0===e&&(e=s),i.operate((function(t,r){var o=!1;t.subscribe(n.createOperatorSubscriber(r,(function(e){o=!0,r.next(e)}),(function(){return o?r.complete():r.error(e())})))}))}},8005:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeInterval=t.timeInterval=void 0;var o=r(2445),i=r(4935),n=r(4990);t.timeInterval=function(e){return void 0===e&&(e=o.asyncScheduler),i.operate((function(t,r){var o=e.now();t.subscribe(n.createOperatorSubscriber(r,(function(t){var i=e.now(),n=i-o;o=i,r.next(new s(t,n))})))}))};var s=function(e,t){this.value=e,this.interval=t};t.TimeInterval=s},4173:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeout=t.TimeoutError=void 0;var o=r(2445),i=r(1677),n=r(4935),s=r(7103),a=r(7029),u=r(4990),l=r(7738);function p(e){throw new t.TimeoutError(e)}t.TimeoutError=a.createErrorClass((function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}})),t.timeout=function(e,t){var r=i.isValidDate(e)?{first:e}:"number"==typeof e?{each:e}:e,a=r.first,c=r.each,g=r.with,d=void 0===g?p:g,f=r.scheduler,h=void 0===f?null!=t?t:o.asyncScheduler:f,b=r.meta,y=void 0===b?null:b;if(null==a&&null==c)throw new TypeError("No timeout provided.");return n.operate((function(e,t){var r,o,i=null,n=0,p=function(e){o=l.executeSchedule(t,h,(function(){try{r.unsubscribe(),s.innerFrom(d({meta:y,lastValue:i,seen:n})).subscribe(t)}catch(e){t.error(e)}}),e)};r=e.subscribe(u.createOperatorSubscriber(t,(function(e){null==o||o.unsubscribe(),n++,t.next(i=e),c>0&&p(c)}),void 0,void 0,(function(){(null==o?void 0:o.closed)||null==o||o.unsubscribe(),i=null}))),!n&&p(null!=a?"number"==typeof a?a:+a-h.now():c)}))}},7223:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeoutWith=void 0;var o=r(2445),i=r(1677),n=r(4173);t.timeoutWith=function(e,t,r){var s,a,u;if(r=null!=r?r:o.async,i.isValidDate(e)?s=e:"number"==typeof e&&(a=e),!t)throw new TypeError("No observable provided to switch to");if(u=function(){return t},null==s&&null==a)throw new TypeError("No timeout provided.");return n.timeout({first:s,each:a,scheduler:r,with:u})}},8975:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timestamp=void 0;var o=r(7950),i=r(7291);t.timestamp=function(e){return void 0===e&&(e=o.dateTimestampProvider),i.map((function(t){return{value:t,timestamp:e.now()}}))}},2:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toArray=void 0;var o=r(122),i=r(4935),n=function(e,t){return e.push(t),e};t.toArray=function(){return i.operate((function(e,t){o.reduce(n,[])(e).subscribe(t)}))}},2826:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.window=void 0;var o=r(3032),i=r(4935),n=r(4990),s=r(2576),a=r(7103);t.window=function(e){return i.operate((function(t,r){var i=new o.Subject;r.next(i.asObservable());var u=function(e){i.error(e),r.error(e)};return t.subscribe(n.createOperatorSubscriber(r,(function(e){return null==i?void 0:i.next(e)}),(function(){i.complete(),r.complete()}),u)),a.innerFrom(e).subscribe(n.createOperatorSubscriber(r,(function(){i.complete(),r.next(i=new o.Subject)}),s.noop,u)),function(){null==i||i.unsubscribe(),i=null}}))}},7526:function(e,t,r){"use strict";var o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.windowCount=void 0;var i=r(3032),n=r(4935),s=r(4990);t.windowCount=function(e,t){void 0===t&&(t=0);var r=t>0?t:e;return n.operate((function(t,n){var a=[new i.Subject],u=0;n.next(a[0].asObservable()),t.subscribe(s.createOperatorSubscriber(n,(function(t){var s,l;try{for(var p=o(a),c=p.next();!c.done;c=p.next())c.value.next(t)}catch(e){s={error:e}}finally{try{c&&!c.done&&(l=p.return)&&l.call(p)}finally{if(s)throw s.error}}var g=u-e+1;if(g>=0&&g%r==0&&a.shift().complete(),++u%r==0){var d=new i.Subject;a.push(d),n.next(d.asObservable())}}),(function(){for(;a.length>0;)a.shift().complete();n.complete()}),(function(e){for(;a.length>0;)a.shift().error(e);n.error(e)}),(function(){a=null})))}))}},8294:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.windowTime=void 0;var o=r(3032),i=r(2445),n=r(3865),s=r(4935),a=r(4990),u=r(6967),l=r(2433),p=r(7738);t.windowTime=function(e){for(var t,r,c=[],g=1;g<arguments.length;g++)c[g-1]=arguments[g];var d=null!==(t=l.popScheduler(c))&&void 0!==t?t:i.asyncScheduler,f=null!==(r=c[0])&&void 0!==r?r:null,h=c[1]||1/0;return s.operate((function(t,r){var i=[],s=!1,l=function(e){var t=e.window,r=e.subs;t.complete(),r.unsubscribe(),u.arrRemove(i,e),s&&c()},c=function(){if(i){var t=new n.Subscription;r.add(t);var s=new o.Subject,a={window:s,subs:t,seen:0};i.push(a),r.next(s.asObservable()),p.executeSchedule(t,d,(function(){return l(a)}),e)}};null!==f&&f>=0?p.executeSchedule(r,d,c,f,!0):s=!0,c();var g=function(e){return i.slice().forEach(e)},b=function(e){g((function(t){var r=t.window;return e(r)})),e(r),r.unsubscribe()};return t.subscribe(a.createOperatorSubscriber(r,(function(e){g((function(t){t.window.next(e),h<=++t.seen&&l(t)}))}),(function(){return b((function(e){return e.complete()}))}),(function(e){return b((function(t){return t.error(e)}))}))),function(){i=null}}))}},1883:function(e,t,r){"use strict";var o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.windowToggle=void 0;var i=r(3032),n=r(3865),s=r(4935),a=r(7103),u=r(4990),l=r(2576),p=r(6967);t.windowToggle=function(e,t){return s.operate((function(r,s){var c=[],g=function(e){for(;0<c.length;)c.shift().error(e);s.error(e)};a.innerFrom(e).subscribe(u.createOperatorSubscriber(s,(function(e){var r=new i.Subject;c.push(r);var o,d=new n.Subscription;try{o=a.innerFrom(t(e))}catch(e){return void g(e)}s.next(r.asObservable()),d.add(o.subscribe(u.createOperatorSubscriber(s,(function(){p.arrRemove(c,r),r.complete(),d.unsubscribe()}),l.noop,g)))}),l.noop)),r.subscribe(u.createOperatorSubscriber(s,(function(e){var t,r,i=c.slice();try{for(var n=o(i),s=n.next();!s.done;s=n.next())s.value.next(e)}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}}),(function(){for(;0<c.length;)c.shift().complete();s.complete()}),g,(function(){for(;0<c.length;)c.shift().unsubscribe()})))}))}},1461:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.windowWhen=void 0;var o=r(3032),i=r(4935),n=r(4990),s=r(7103);t.windowWhen=function(e){return i.operate((function(t,r){var i,a,u=function(e){i.error(e),r.error(e)},l=function(){var t;null==a||a.unsubscribe(),null==i||i.complete(),i=new o.Subject,r.next(i.asObservable());try{t=s.innerFrom(e())}catch(e){return void u(e)}t.subscribe(a=n.createOperatorSubscriber(r,l,l,u))};l(),t.subscribe(n.createOperatorSubscriber(r,(function(e){return i.next(e)}),(function(){i.complete(),r.complete()}),u,(function(){null==a||a.unsubscribe(),i=null})))}))}},3041:function(e,t,r){"use strict";var o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,i,n=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,o=t.length,i=e.length;r<o;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.withLatestFrom=void 0;var n=r(4935),s=r(4990),a=r(7103),u=r(4781),l=r(2576),p=r(2433);t.withLatestFrom=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=p.popResultSelector(e);return n.operate((function(t,n){for(var p=e.length,c=new Array(p),g=e.map((function(){return!1})),d=!1,f=function(t){a.innerFrom(e[t]).subscribe(s.createOperatorSubscriber(n,(function(e){c[t]=e,d||g[t]||(g[t]=!0,(d=g.every(u.identity))&&(g=null))}),l.noop))},h=0;h<p;h++)f(h);t.subscribe(s.createOperatorSubscriber(n,(function(e){if(d){var t=i([e],o(c));n.next(r?r.apply(void 0,i([],o(t))):t)}})))}))}},4400:function(e,t,r){"use strict";var o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,i,n=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,o=t.length,i=e.length;r<o;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.zip=void 0;var n=r(7654),s=r(4935);t.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s.operate((function(t,r){n.zip.apply(void 0,i([t],o(e))).subscribe(r)}))}},8593:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zipAll=void 0;var o=r(7654),i=r(2069);t.zipAll=function(e){return i.joinAllInternals(o.zip,e)}},8096:function(e,t,r){"use strict";var o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,i,n=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,o=t.length,i=e.length;r<o;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.zipWith=void 0;var n=r(4400);t.zipWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.zip.apply(void 0,i([],o(e)))}},7631:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleArray=void 0;var o=r(2419);t.scheduleArray=function(e,t){return new o.Observable((function(r){var o=0;return t.schedule((function(){o===e.length?r.complete():(r.next(e[o++]),r.closed||this.schedule())}))}))}},8489:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleAsyncIterable=void 0;var o=r(2419),i=r(7738);t.scheduleAsyncIterable=function(e,t){if(!e)throw new Error("Iterable cannot be null");return new o.Observable((function(r){i.executeSchedule(r,t,(function(){var o=e[Symbol.asyncIterator]();i.executeSchedule(r,t,(function(){o.next().then((function(e){e.done?r.complete():r.next(e.value)}))}),0,!0)}))}))}},1297:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleIterable=void 0;var o=r(2419),i=r(3725),n=r(3005),s=r(7738);t.scheduleIterable=function(e,t){return new o.Observable((function(r){var o;return s.executeSchedule(r,t,(function(){o=e[i.iterator](),s.executeSchedule(r,t,(function(){var e,t,i;try{t=(e=o.next()).value,i=e.done}catch(e){return void r.error(e)}i?r.complete():r.next(t)}),0,!0)})),function(){return n.isFunction(null==o?void 0:o.return)&&o.return()}}))}},4001:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleObservable=void 0;var o=r(7103),i=r(1184),n=r(276);t.scheduleObservable=function(e,t){return o.innerFrom(e).pipe(n.subscribeOn(t),i.observeOn(t))}},5143:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.schedulePromise=void 0;var o=r(7103),i=r(1184),n=r(276);t.schedulePromise=function(e,t){return o.innerFrom(e).pipe(n.subscribeOn(t),i.observeOn(t))}},3676:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleReadableStreamLike=void 0;var o=r(8489),i=r(7823);t.scheduleReadableStreamLike=function(e,t){return o.scheduleAsyncIterable(i.readableStreamLikeToAsyncGenerator(e),t)}},5207:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduled=void 0;var o=r(4001),i=r(5143),n=r(7631),s=r(1297),a=r(8489),u=r(9500),l=r(6018),p=r(3909),c=r(2743),g=r(9595),d=r(9906),f=r(7823),h=r(3676);t.scheduled=function(e,t){if(null!=e){if(u.isInteropObservable(e))return o.scheduleObservable(e,t);if(p.isArrayLike(e))return n.scheduleArray(e,t);if(l.isPromise(e))return i.schedulePromise(e,t);if(g.isAsyncIterable(e))return a.scheduleAsyncIterable(e,t);if(c.isIterable(e))return s.scheduleIterable(e,t);if(f.isReadableStreamLike(e))return h.scheduleReadableStreamLike(e,t)}throw d.createInvalidObservableTypeError(e)}},1986:function(e,t,r){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.Action=void 0;var n=function(e){function t(t,r){return e.call(this)||this}return i(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(r(3865).Subscription);t.Action=n},7574:function(e,t,r){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AnimationFrameAction=void 0;var n=r(9702),s=r(505),a=function(e){function t(t,r){var o=e.call(this,t,r)||this;return o.scheduler=t,o.work=r,o}return i(t,e),t.prototype.requestAsyncId=function(t,r,o){return void 0===o&&(o=0),null!==o&&o>0?e.prototype.requestAsyncId.call(this,t,r,o):(t.actions.push(this),t._scheduled||(t._scheduled=s.animationFrameProvider.requestAnimationFrame((function(){return t.flush(void 0)}))))},t.prototype.recycleAsyncId=function(t,r,o){var i;if(void 0===o&&(o=0),null!=o?o>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,o);var n=t.actions;null!=r&&(null===(i=n[n.length-1])||void 0===i?void 0:i.id)!==r&&(s.animationFrameProvider.cancelAnimationFrame(r),t._scheduled=void 0)},t}(n.AsyncAction);t.AnimationFrameAction=a},2934:function(e,t,r){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AnimationFrameScheduler=void 0;var n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var r,o=this.actions;e=e||o.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=o[0])&&e.id===t&&o.shift());if(this._active=!1,r){for(;(e=o[0])&&e.id===t&&o.shift();)e.unsubscribe();throw r}},t}(r(3643).AsyncScheduler);t.AnimationFrameScheduler=n},2772:function(e,t,r){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsapAction=void 0;var n=r(9702),s=r(8908),a=function(e){function t(t,r){var o=e.call(this,t,r)||this;return o.scheduler=t,o.work=r,o}return i(t,e),t.prototype.requestAsyncId=function(t,r,o){return void 0===o&&(o=0),null!==o&&o>0?e.prototype.requestAsyncId.call(this,t,r,o):(t.actions.push(this),t._scheduled||(t._scheduled=s.immediateProvider.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,r,o){var i;if(void 0===o&&(o=0),null!=o?o>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,o);var n=t.actions;null!=r&&(null===(i=n[n.length-1])||void 0===i?void 0:i.id)!==r&&(s.immediateProvider.clearImmediate(r),t._scheduled===r&&(t._scheduled=void 0))},t}(n.AsyncAction);t.AsapAction=a},5523:function(e,t,r){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsapScheduler=void 0;var n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var r,o=this.actions;e=e||o.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=o[0])&&e.id===t&&o.shift());if(this._active=!1,r){for(;(e=o[0])&&e.id===t&&o.shift();)e.unsubscribe();throw r}},t}(r(3643).AsyncScheduler);t.AsapScheduler=n},9702:function(e,t,r){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncAction=void 0;var n=r(1986),s=r(8203),a=r(6967),u=function(e){function t(t,r){var o=e.call(this,t,r)||this;return o.scheduler=t,o.work=r,o.pending=!1,o}return i(t,e),t.prototype.schedule=function(e,t){var r;if(void 0===t&&(t=0),this.closed)return this;this.state=e;var o=this.id,i=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(i,o,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),s.intervalProvider.setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&s.intervalProvider.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r,o=!1;try{this.work(e)}catch(e){o=!0,r=e||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,o=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,a.arrRemove(o,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(n.Action);t.AsyncAction=u},3643:function(e,t,r){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncScheduler=void 0;var n=r(218),s=function(e){function t(t,r){void 0===r&&(r=n.Scheduler.now);var o=e.call(this,t,r)||this;return o.actions=[],o._active=!1,o}return i(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var r;this._active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}}},t}(n.Scheduler);t.AsyncScheduler=s},6201:function(e,t,r){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.QueueAction=void 0;var n=function(e){function t(t,r){var o=e.call(this,t,r)||this;return o.scheduler=t,o.work=r,o}return i(t,e),t.prototype.schedule=function(t,r){return void 0===r&&(r=0),r>0?e.prototype.schedule.call(this,t,r):(this.delay=r,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,r){return r>0||this.closed?e.prototype.execute.call(this,t,r):this._execute(t,r)},t.prototype.requestAsyncId=function(t,r,o){return void 0===o&&(o=0),null!=o&&o>0||null==o&&this.delay>0?e.prototype.requestAsyncId.call(this,t,r,o):(t.flush(this),0)},t}(r(9702).AsyncAction);t.QueueAction=n},5860:function(e,t,r){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.QueueScheduler=void 0;var n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(r(3643).AsyncScheduler);t.QueueScheduler=n},4123:function(e,t,r){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.VirtualAction=t.VirtualTimeScheduler=void 0;var n=r(9702),s=r(3865),a=function(e){function t(t,r){void 0===t&&(t=u),void 0===r&&(r=1/0);var o=e.call(this,t,(function(){return o.frame}))||this;return o.maxFrames=r,o.frame=0,o.index=-1,o}return i(t,e),t.prototype.flush=function(){for(var e,t,r=this.actions,o=this.maxFrames;(t=r[0])&&t.delay<=o&&(r.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=r.shift();)t.unsubscribe();throw e}},t.frameTimeFactor=10,t}(r(3643).AsyncScheduler);t.VirtualTimeScheduler=a;var u=function(e){function t(t,r,o){void 0===o&&(o=t.index+=1);var i=e.call(this,t,r)||this;return i.scheduler=t,i.work=r,i.index=o,i.active=!0,i.index=t.index=o,i}return i(t,e),t.prototype.schedule=function(r,o){if(void 0===o&&(o=0),Number.isFinite(o)){if(!this.id)return e.prototype.schedule.call(this,r,o);this.active=!1;var i=new t(this.scheduler,this.work);return this.add(i),i.schedule(r,o)}return s.Subscription.EMPTY},t.prototype.requestAsyncId=function(e,r,o){void 0===o&&(o=0),this.delay=e.frame+o;var i=e.actions;return i.push(this),i.sort(t.sortActions),1},t.prototype.recycleAsyncId=function(e,t,r){void 0===r&&(r=0)},t.prototype._execute=function(t,r){if(!0===this.active)return e.prototype._execute.call(this,t,r)},t.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},t}(n.AsyncAction);t.VirtualAction=u},3660:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.animationFrame=t.animationFrameScheduler=void 0;var o=r(7574),i=r(2934);t.animationFrameScheduler=new i.AnimationFrameScheduler(o.AnimationFrameAction),t.animationFrame=t.animationFrameScheduler},505:function(e,t,r){"use strict";var o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,i,n=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,o=t.length,i=e.length;r<o;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.animationFrameProvider=void 0;var n=r(3865);t.animationFrameProvider={schedule:function(e){var r=requestAnimationFrame,o=cancelAnimationFrame,i=t.animationFrameProvider.delegate;i&&(r=i.requestAnimationFrame,o=i.cancelAnimationFrame);var s=r((function(t){o=void 0,e(t)}));return new n.Subscription((function(){return null==o?void 0:o(s)}))},requestAnimationFrame:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=t.animationFrameProvider.delegate;return((null==n?void 0:n.requestAnimationFrame)||requestAnimationFrame).apply(void 0,i([],o(e)))},cancelAnimationFrame:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=t.animationFrameProvider.delegate;return((null==n?void 0:n.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,i([],o(e)))},delegate:void 0}},580:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.asap=t.asapScheduler=void 0;var o=r(2772),i=r(5523);t.asapScheduler=new i.AsapScheduler(o.AsapAction),t.asap=t.asapScheduler},2445:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.async=t.asyncScheduler=void 0;var o=r(9702),i=r(3643);t.asyncScheduler=new i.AsyncScheduler(o.AsyncAction),t.async=t.asyncScheduler},7950:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dateTimestampProvider=void 0,t.dateTimestampProvider={now:function(){return(t.dateTimestampProvider.delegate||Date).now()},delegate:void 0}},8908:function(e,t,r){"use strict";var o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,i,n=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,o=t.length,i=e.length;r<o;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.immediateProvider=void 0;var n=r(7629),s=n.Immediate.setImmediate,a=n.Immediate.clearImmediate;t.immediateProvider={setImmediate:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=t.immediateProvider.delegate;return((null==n?void 0:n.setImmediate)||s).apply(void 0,i([],o(e)))},clearImmediate:function(e){var r=t.immediateProvider.delegate;return((null==r?void 0:r.clearImmediate)||a)(e)},delegate:void 0}},8203:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,i,n=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return s},o=this&&this.__spreadArray||function(e,t){for(var r=0,o=t.length,i=e.length;r<o;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.intervalProvider=void 0,t.intervalProvider={setInterval:function(e,i){for(var n=[],s=2;s<arguments.length;s++)n[s-2]=arguments[s];var a=t.intervalProvider.delegate;return(null==a?void 0:a.setInterval)?a.setInterval.apply(a,o([e,i],r(n))):setInterval.apply(void 0,o([e,i],r(n)))},clearInterval:function(e){var r=t.intervalProvider.delegate;return((null==r?void 0:r.clearInterval)||clearInterval)(e)},delegate:void 0}},6813:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.performanceTimestampProvider=void 0,t.performanceTimestampProvider={now:function(){return(t.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}},8615:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.queue=t.queueScheduler=void 0;var o=r(6201),i=r(5860);t.queueScheduler=new i.QueueScheduler(o.QueueAction),t.queue=t.queueScheduler},4590:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,i,n=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return s},o=this&&this.__spreadArray||function(e,t){for(var r=0,o=t.length,i=e.length;r<o;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.timeoutProvider=void 0,t.timeoutProvider={setTimeout:function(e,i){for(var n=[],s=2;s<arguments.length;s++)n[s-2]=arguments[s];var a=t.timeoutProvider.delegate;return(null==a?void 0:a.setTimeout)?a.setTimeout.apply(a,o([e,i],r(n))):setTimeout.apply(void 0,o([e,i],r(n)))},clearTimeout:function(e){var r=t.timeoutProvider.delegate;return((null==r?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0}},3725:(e,t)=>{"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}Object.defineProperty(t,"__esModule",{value:!0}),t.iterator=t.getSymbolIterator=void 0,t.getSymbolIterator=r,t.iterator=r()},2801:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observable=void 0,t.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},8433:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2351:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentOutOfRangeError=void 0;var o=r(7029);t.ArgumentOutOfRangeError=o.createErrorClass((function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}}))},9474:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyError=void 0;var o=r(7029);t.EmptyError=o.createErrorClass((function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}}))},7629:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TestTools=t.Immediate=void 0;var r,o=1,i={};function n(e){return e in i&&(delete i[e],!0)}t.Immediate={setImmediate:function(e){var t=o++;return i[t]=!0,r||(r=Promise.resolve()),r.then((function(){return n(t)&&e()})),t},clearImmediate:function(e){n(e)}},t.TestTools={pending:function(){return Object.keys(i).length}}},8598:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotFoundError=void 0;var o=r(7029);t.NotFoundError=o.createErrorClass((function(e){return function(t){e(this),this.name="NotFoundError",this.message=t}}))},2642:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectUnsubscribedError=void 0;var o=r(7029);t.ObjectUnsubscribedError=o.createErrorClass((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}))},6156:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SequenceError=void 0;var o=r(7029);t.SequenceError=o.createErrorClass((function(e){return function(t){e(this),this.name="SequenceError",this.message=t}}))},4805:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnsubscriptionError=void 0;var o=r(7029);t.UnsubscriptionError=o.createErrorClass((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}))},2433:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.popNumber=t.popScheduler=t.popResultSelector=void 0;var o=r(3005),i=r(9016);function n(e){return e[e.length-1]}t.popResultSelector=function(e){return o.isFunction(n(e))?e.pop():void 0},t.popScheduler=function(e){return i.isScheduler(n(e))?e.pop():void 0},t.popNumber=function(e,t){return"number"==typeof n(e)?e.pop():t}},1203:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.argsArgArrayOrObject=void 0;var r=Array.isArray,o=Object.getPrototypeOf,i=Object.prototype,n=Object.keys;t.argsArgArrayOrObject=function(e){if(1===e.length){var t=e[0];if(r(t))return{args:t,keys:null};if((a=t)&&"object"==typeof a&&o(a)===i){var s=n(t);return{args:s.map((function(e){return t[e]})),keys:s}}}var a;return{args:e,keys:null}}},5498:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.argsOrArgArray=void 0;var r=Array.isArray;t.argsOrArgArray=function(e){return 1===e.length&&r(e[0])?e[0]:e}},6967:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrRemove=void 0,t.arrRemove=function(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}},7029:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createErrorClass=void 0,t.createErrorClass=function(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}},641:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createObject=void 0,t.createObject=function(e,t){return e.reduce((function(e,r,o){return e[r]=t[o],e}),{})}},6110:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.captureError=t.errorContext=void 0;var o=r(3280),i=null;t.errorContext=function(e){if(o.config.useDeprecatedSynchronousErrorHandling){var t=!i;if(t&&(i={errorThrown:!1,error:null}),e(),t){var r=i,n=r.errorThrown,s=r.error;if(i=null,n)throw s}}else e()},t.captureError=function(e){o.config.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=e)}},7738:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.executeSchedule=void 0,t.executeSchedule=function(e,t,r,o,i){void 0===o&&(o=0),void 0===i&&(i=!1);var n=t.schedule((function(){r(),i?e.add(this.schedule(null,o)):this.unsubscribe()}),o);if(e.add(n),!i)return n}},4781:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.identity=void 0,t.identity=function(e){return e}},3909:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArrayLike=void 0,t.isArrayLike=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},9595:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAsyncIterable=void 0;var o=r(3005);t.isAsyncIterable=function(e){return Symbol.asyncIterator&&o.isFunction(null==e?void 0:e[Symbol.asyncIterator])}},1677:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidDate=void 0,t.isValidDate=function(e){return e instanceof Date&&!isNaN(e)}},3005:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=void 0,t.isFunction=function(e){return"function"==typeof e}},9500:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInteropObservable=void 0;var o=r(2801),i=r(3005);t.isInteropObservable=function(e){return i.isFunction(e[o.observable])}},2743:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIterable=void 0;var o=r(3725),i=r(3005);t.isIterable=function(e){return i.isFunction(null==e?void 0:e[o.iterator])}},8386:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObservable=void 0;var o=r(2419),i=r(3005);t.isObservable=function(e){return!!e&&(e instanceof o.Observable||i.isFunction(e.lift)&&i.isFunction(e.subscribe))}},6018:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=void 0;var o=r(3005);t.isPromise=function(e){return o.isFunction(null==e?void 0:e.then)}},7823:function(e,t,r){"use strict";var o=this&&this.__generator||function(e,t){var r,o,i,n,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function a(n){return function(a){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,o&&(i=2&n[0]?o.return:n[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,n[1])).done)return i;switch(o=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return s.label++,{value:n[1],done:!1};case 5:s.label++,o=n[1],n=[0];continue;case 7:n=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){s=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){s.label=n[1];break}if(6===n[0]&&s.label<i[1]){s.label=i[1],i=n;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(n);break}i[2]&&s.ops.pop(),s.trys.pop();continue}n=t.call(e,s)}catch(e){n=[6,e],o=0}finally{r=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}},i=this&&this.__await||function(e){return this instanceof i?(this.v=e,this):new i(e)},n=this&&this.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,n=r.apply(e,t||[]),s=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(e){n[e]&&(o[e]=function(t){return new Promise((function(r,o){s.push([e,t,r,o])>1||u(e,t)}))})}function u(e,t){try{(r=n[e](t)).value instanceof i?Promise.resolve(r.value.v).then(l,p):c(s[0][2],r)}catch(e){c(s[0][3],e)}var r}function l(e){u("next",e)}function p(e){u("throw",e)}function c(e,t){e(t),s.shift(),s.length&&u(s[0][0],s[0][1])}};Object.defineProperty(t,"__esModule",{value:!0}),t.isReadableStreamLike=t.readableStreamLikeToAsyncGenerator=void 0;var s=r(3005);t.readableStreamLikeToAsyncGenerator=function(e){return n(this,arguments,(function(){var t,r,n;return o(this,(function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,i(t.read())];case 3:return r=o.sent(),n=r.value,r.done?[4,i(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,i(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))},t.isReadableStreamLike=function(e){return s.isFunction(null==e?void 0:e.getReader)}},9016:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isScheduler=void 0;var o=r(3005);t.isScheduler=function(e){return e&&o.isFunction(e.schedule)}},4935:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.operate=t.hasLift=void 0;var o=r(3005);function i(e){return o.isFunction(null==e?void 0:e.lift)}t.hasLift=i,t.operate=function(e){return function(t){if(i(t))return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}));throw new TypeError("Unable to lift unknown Observable type")}}},1914:function(e,t,r){"use strict";var o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,i,n=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,o=t.length,i=e.length;r<o;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.mapOneOrManyArgs=void 0;var n=r(7291),s=Array.isArray;t.mapOneOrManyArgs=function(e){return n.map((function(t){return function(e,t){return s(t)?e.apply(void 0,i([],o(t))):e(t)}(e,t)}))}},2576:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noop=void 0,t.noop=function(){}},8634:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.not=void 0,t.not=function(e,t){return function(r,o){return!e.call(t,r,o)}}},9985:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pipeFromArray=t.pipe=void 0;var o=r(4781);function i(e){return 0===e.length?o.identity:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}t.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i(e)},t.pipeFromArray=i},7968:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportUnhandledError=void 0;var o=r(3280),i=r(4590);t.reportUnhandledError=function(e){i.timeoutProvider.setTimeout((function(){var t=o.config.onUnhandledError;if(!t)throw e;t(e)}))}},9906:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createInvalidObservableTypeError=void 0,t.createInvalidObservableTypeError=function(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}},4857:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeAll=t.merge=t.max=t.materialize=t.mapTo=t.map=t.last=t.isEmpty=t.ignoreElements=t.groupBy=t.first=t.findIndex=t.find=t.finalize=t.filter=t.expand=t.exhaustMap=t.exhaustAll=t.exhaust=t.every=t.endWith=t.elementAt=t.distinctUntilKeyChanged=t.distinctUntilChanged=t.distinct=t.dematerialize=t.delayWhen=t.delay=t.defaultIfEmpty=t.debounceTime=t.debounce=t.count=t.connect=t.concatWith=t.concatMapTo=t.concatMap=t.concatAll=t.concat=t.combineLatestWith=t.combineLatest=t.combineLatestAll=t.combineAll=t.catchError=t.bufferWhen=t.bufferToggle=t.bufferTime=t.bufferCount=t.buffer=t.auditTime=t.audit=void 0,t.timeInterval=t.throwIfEmpty=t.throttleTime=t.throttle=t.tap=t.takeWhile=t.takeUntil=t.takeLast=t.take=t.switchScan=t.switchMapTo=t.switchMap=t.switchAll=t.subscribeOn=t.startWith=t.skipWhile=t.skipUntil=t.skipLast=t.skip=t.single=t.shareReplay=t.share=t.sequenceEqual=t.scan=t.sampleTime=t.sample=t.refCount=t.retryWhen=t.retry=t.repeatWhen=t.repeat=t.reduce=t.raceWith=t.race=t.publishReplay=t.publishLast=t.publishBehavior=t.publish=t.pluck=t.partition=t.pairwise=t.onErrorResumeNext=t.observeOn=t.multicast=t.min=t.mergeWith=t.mergeScan=t.mergeMapTo=t.mergeMap=t.flatMap=void 0,t.zipWith=t.zipAll=t.zip=t.withLatestFrom=t.windowWhen=t.windowToggle=t.windowTime=t.windowCount=t.window=t.toArray=t.timestamp=t.timeoutWith=t.timeout=void 0;var o=r(6474);Object.defineProperty(t,"audit",{enumerable:!0,get:function(){return o.audit}});var i=r(5382);Object.defineProperty(t,"auditTime",{enumerable:!0,get:function(){return i.auditTime}});var n=r(9715);Object.defineProperty(t,"buffer",{enumerable:!0,get:function(){return n.buffer}});var s=r(3814);Object.defineProperty(t,"bufferCount",{enumerable:!0,get:function(){return s.bufferCount}});var a=r(7211);Object.defineProperty(t,"bufferTime",{enumerable:!0,get:function(){return a.bufferTime}});var u=r(4943);Object.defineProperty(t,"bufferToggle",{enumerable:!0,get:function(){return u.bufferToggle}});var l=r(1240);Object.defineProperty(t,"bufferWhen",{enumerable:!0,get:function(){return l.bufferWhen}});var p=r(9548);Object.defineProperty(t,"catchError",{enumerable:!0,get:function(){return p.catchError}});var c=r(2128);Object.defineProperty(t,"combineAll",{enumerable:!0,get:function(){return c.combineAll}});var g=r(3240);Object.defineProperty(t,"combineLatestAll",{enumerable:!0,get:function(){return g.combineLatestAll}});var d=r(6318);Object.defineProperty(t,"combineLatest",{enumerable:!0,get:function(){return d.combineLatest}});var f=r(5024);Object.defineProperty(t,"combineLatestWith",{enumerable:!0,get:function(){return f.combineLatestWith}});var h=r(4919);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return h.concat}});var b=r(4413);Object.defineProperty(t,"concatAll",{enumerable:!0,get:function(){return b.concatAll}});var y=r(7498);Object.defineProperty(t,"concatMap",{enumerable:!0,get:function(){return y.concatMap}});var v=r(6109);Object.defineProperty(t,"concatMapTo",{enumerable:!0,get:function(){return v.concatMapTo}});var m=r(9664);Object.defineProperty(t,"concatWith",{enumerable:!0,get:function(){return m.concatWith}});var R=r(1995);Object.defineProperty(t,"connect",{enumerable:!0,get:function(){return R.connect}});var S=r(993);Object.defineProperty(t,"count",{enumerable:!0,get:function(){return S.count}});var _=r(496);Object.defineProperty(t,"debounce",{enumerable:!0,get:function(){return _.debounce}});var O=r(1385);Object.defineProperty(t,"debounceTime",{enumerable:!0,get:function(){return O.debounceTime}});var E=r(1658);Object.defineProperty(t,"defaultIfEmpty",{enumerable:!0,get:function(){return E.defaultIfEmpty}});var M=r(5841);Object.defineProperty(t,"delay",{enumerable:!0,get:function(){return M.delay}});var T=r(8798);Object.defineProperty(t,"delayWhen",{enumerable:!0,get:function(){return T.delayWhen}});var P=r(1080);Object.defineProperty(t,"dematerialize",{enumerable:!0,get:function(){return P.dematerialize}});var A=r(3054);Object.defineProperty(t,"distinct",{enumerable:!0,get:function(){return A.distinct}});var I=r(8737);Object.defineProperty(t,"distinctUntilChanged",{enumerable:!0,get:function(){return I.distinctUntilChanged}});var C=r(7957);Object.defineProperty(t,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return C.distinctUntilKeyChanged}});var F=r(8633);Object.defineProperty(t,"elementAt",{enumerable:!0,get:function(){return F.elementAt}});var j=r(911);Object.defineProperty(t,"endWith",{enumerable:!0,get:function(){return j.endWith}});var w=r(2096);Object.defineProperty(t,"every",{enumerable:!0,get:function(){return w.every}});var D=r(67);Object.defineProperty(t,"exhaust",{enumerable:!0,get:function(){return D.exhaust}});var B=r(5337);Object.defineProperty(t,"exhaustAll",{enumerable:!0,get:function(){return B.exhaustAll}});var U=r(5635);Object.defineProperty(t,"exhaustMap",{enumerable:!0,get:function(){return U.exhaustMap}});var L=r(2874);Object.defineProperty(t,"expand",{enumerable:!0,get:function(){return L.expand}});var N=r(9154);Object.defineProperty(t,"filter",{enumerable:!0,get:function(){return N.filter}});var k=r(9283);Object.defineProperty(t,"finalize",{enumerable:!0,get:function(){return k.finalize}});var W=r(7119);Object.defineProperty(t,"find",{enumerable:!0,get:function(){return W.find}});var x=r(4706);Object.defineProperty(t,"findIndex",{enumerable:!0,get:function(){return x.findIndex}});var z=r(9219);Object.defineProperty(t,"first",{enumerable:!0,get:function(){return z.first}});var G=r(9749);Object.defineProperty(t,"groupBy",{enumerable:!0,get:function(){return G.groupBy}});var q=r(9438);Object.defineProperty(t,"ignoreElements",{enumerable:!0,get:function(){return q.ignoreElements}});var H=r(8515);Object.defineProperty(t,"isEmpty",{enumerable:!0,get:function(){return H.isEmpty}});var V=r(2435);Object.defineProperty(t,"last",{enumerable:!0,get:function(){return V.last}});var $=r(7291);Object.defineProperty(t,"map",{enumerable:!0,get:function(){return $.map}});var J=r(8313);Object.defineProperty(t,"mapTo",{enumerable:!0,get:function(){return J.mapTo}});var Y=r(3209);Object.defineProperty(t,"materialize",{enumerable:!0,get:function(){return Y.materialize}});var Q=r(2620);Object.defineProperty(t,"max",{enumerable:!0,get:function(){return Q.max}});var K=r(9821);Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return K.merge}});var X=r(3783);Object.defineProperty(t,"mergeAll",{enumerable:!0,get:function(){return X.mergeAll}});var Z=r(1788);Object.defineProperty(t,"flatMap",{enumerable:!0,get:function(){return Z.flatMap}});var ee=r(9475);Object.defineProperty(t,"mergeMap",{enumerable:!0,get:function(){return ee.mergeMap}});var te=r(1211);Object.defineProperty(t,"mergeMapTo",{enumerable:!0,get:function(){return te.mergeMapTo}});var re=r(7267);Object.defineProperty(t,"mergeScan",{enumerable:!0,get:function(){return re.mergeScan}});var oe=r(9303);Object.defineProperty(t,"mergeWith",{enumerable:!0,get:function(){return oe.mergeWith}});var ie=r(9714);Object.defineProperty(t,"min",{enumerable:!0,get:function(){return ie.min}});var ne=r(3848);Object.defineProperty(t,"multicast",{enumerable:!0,get:function(){return ne.multicast}});var se=r(1184);Object.defineProperty(t,"observeOn",{enumerable:!0,get:function(){return se.observeOn}});var ae=r(7582);Object.defineProperty(t,"onErrorResumeNext",{enumerable:!0,get:function(){return ae.onErrorResumeNext}});var ue=r(2731);Object.defineProperty(t,"pairwise",{enumerable:!0,get:function(){return ue.pairwise}});var le=r(5649);Object.defineProperty(t,"partition",{enumerable:!0,get:function(){return le.partition}});var pe=r(4691);Object.defineProperty(t,"pluck",{enumerable:!0,get:function(){return pe.pluck}});var ce=r(4474);Object.defineProperty(t,"publish",{enumerable:!0,get:function(){return ce.publish}});var ge=r(52);Object.defineProperty(t,"publishBehavior",{enumerable:!0,get:function(){return ge.publishBehavior}});var de=r(2110);Object.defineProperty(t,"publishLast",{enumerable:!0,get:function(){return de.publishLast}});var fe=r(9864);Object.defineProperty(t,"publishReplay",{enumerable:!0,get:function(){return fe.publishReplay}});var he=r(9764);Object.defineProperty(t,"race",{enumerable:!0,get:function(){return he.race}});var be=r(179);Object.defineProperty(t,"raceWith",{enumerable:!0,get:function(){return be.raceWith}});var ye=r(122);Object.defineProperty(t,"reduce",{enumerable:!0,get:function(){return ye.reduce}});var ve=r(5313);Object.defineProperty(t,"repeat",{enumerable:!0,get:function(){return ve.repeat}});var me=r(4068);Object.defineProperty(t,"repeatWhen",{enumerable:!0,get:function(){return me.repeatWhen}});var Re=r(64);Object.defineProperty(t,"retry",{enumerable:!0,get:function(){return Re.retry}});var Se=r(1188);Object.defineProperty(t,"retryWhen",{enumerable:!0,get:function(){return Se.retryWhen}});var _e=r(8739);Object.defineProperty(t,"refCount",{enumerable:!0,get:function(){return _e.refCount}});var Oe=r(4193);Object.defineProperty(t,"sample",{enumerable:!0,get:function(){return Oe.sample}});var Ee=r(6170);Object.defineProperty(t,"sampleTime",{enumerable:!0,get:function(){return Ee.sampleTime}});var Me=r(5876);Object.defineProperty(t,"scan",{enumerable:!0,get:function(){return Me.scan}});var Te=r(1791);Object.defineProperty(t,"sequenceEqual",{enumerable:!0,get:function(){return Te.sequenceEqual}});var Pe=r(5137);Object.defineProperty(t,"share",{enumerable:!0,get:function(){return Pe.share}});var Ae=r(1348);Object.defineProperty(t,"shareReplay",{enumerable:!0,get:function(){return Ae.shareReplay}});var Ie=r(8242);Object.defineProperty(t,"single",{enumerable:!0,get:function(){return Ie.single}});var Ce=r(3169);Object.defineProperty(t,"skip",{enumerable:!0,get:function(){return Ce.skip}});var Fe=r(2454);Object.defineProperty(t,"skipLast",{enumerable:!0,get:function(){return Fe.skipLast}});var je=r(6931);Object.defineProperty(t,"skipUntil",{enumerable:!0,get:function(){return je.skipUntil}});var we=r(7913);Object.defineProperty(t,"skipWhile",{enumerable:!0,get:function(){return we.skipWhile}});var De=r(9234);Object.defineProperty(t,"startWith",{enumerable:!0,get:function(){return De.startWith}});var Be=r(276);Object.defineProperty(t,"subscribeOn",{enumerable:!0,get:function(){return Be.subscribeOn}});var Ue=r(9253);Object.defineProperty(t,"switchAll",{enumerable:!0,get:function(){return Ue.switchAll}});var Le=r(8518);Object.defineProperty(t,"switchMap",{enumerable:!0,get:function(){return Le.switchMap}});var Ne=r(1173);Object.defineProperty(t,"switchMapTo",{enumerable:!0,get:function(){return Ne.switchMapTo}});var ke=r(3855);Object.defineProperty(t,"switchScan",{enumerable:!0,get:function(){return ke.switchScan}});var We=r(4783);Object.defineProperty(t,"take",{enumerable:!0,get:function(){return We.take}});var xe=r(1980);Object.defineProperty(t,"takeLast",{enumerable:!0,get:function(){return xe.takeLast}});var ze=r(9845);Object.defineProperty(t,"takeUntil",{enumerable:!0,get:function(){return ze.takeUntil}});var Ge=r(6060);Object.defineProperty(t,"takeWhile",{enumerable:!0,get:function(){return Ge.takeWhile}});var qe=r(1138);Object.defineProperty(t,"tap",{enumerable:!0,get:function(){return qe.tap}});var He=r(7306);Object.defineProperty(t,"throttle",{enumerable:!0,get:function(){return He.throttle}});var Ve=r(8968);Object.defineProperty(t,"throttleTime",{enumerable:!0,get:function(){return Ve.throttleTime}});var $e=r(1779);Object.defineProperty(t,"throwIfEmpty",{enumerable:!0,get:function(){return $e.throwIfEmpty}});var Je=r(8005);Object.defineProperty(t,"timeInterval",{enumerable:!0,get:function(){return Je.timeInterval}});var Ye=r(4173);Object.defineProperty(t,"timeout",{enumerable:!0,get:function(){return Ye.timeout}});var Qe=r(7223);Object.defineProperty(t,"timeoutWith",{enumerable:!0,get:function(){return Qe.timeoutWith}});var Ke=r(8975);Object.defineProperty(t,"timestamp",{enumerable:!0,get:function(){return Ke.timestamp}});var Xe=r(2);Object.defineProperty(t,"toArray",{enumerable:!0,get:function(){return Xe.toArray}});var Ze=r(2826);Object.defineProperty(t,"window",{enumerable:!0,get:function(){return Ze.window}});var et=r(7526);Object.defineProperty(t,"windowCount",{enumerable:!0,get:function(){return et.windowCount}});var tt=r(8294);Object.defineProperty(t,"windowTime",{enumerable:!0,get:function(){return tt.windowTime}});var rt=r(1883);Object.defineProperty(t,"windowToggle",{enumerable:!0,get:function(){return rt.windowToggle}});var ot=r(1461);Object.defineProperty(t,"windowWhen",{enumerable:!0,get:function(){return ot.windowWhen}});var it=r(3041);Object.defineProperty(t,"withLatestFrom",{enumerable:!0,get:function(){return it.withLatestFrom}});var nt=r(4400);Object.defineProperty(t,"zip",{enumerable:!0,get:function(){return nt.zip}});var st=r(8593);Object.defineProperty(t,"zipAll",{enumerable:!0,get:function(){return st.zipAll}});var at=r(8096);Object.defineProperty(t,"zipWith",{enumerable:!0,get:function(){return at.zipWith}})},7768:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IRocosSDK=void 0,t.IRocosSDK=class{}},1587:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RocosSDK=void 0;const o=r(1999),i=r(7554),n=r(9),s=r(3918),a=r(7785);t.RocosSDK=class{constructor(e){this.services={},this.config=e,this.logger=n.RocosLogger.getInstance(`RocosSDK(${this.config.url})`),s.RocosStore.putSDKInstance(this.config,this)}getService(e){var t;if(!(null===(t=this.services)||void 0===t?void 0:t[e]))switch(this.logger.info(`Service ${e} does not exist, creating it now.`),e){case i.ServiceEnum.AUTH:this.services[e]=new o.AuthService(this.config);break;case i.ServiceEnum.TELEMETRY:this.services[e]=new o.TelemetryService(this.config);break;case i.ServiceEnum.ROBOT:this.services[e]=new o.RobotService(this.config);break;case i.ServiceEnum.EVENT:this.services[e]=new o.EventService(this.config);break;case i.ServiceEnum.PROJECT:this.services[e]=new o.ProjectService(this.config);break;case i.ServiceEnum.CALLER:this.services[e]=new o.CallerService(this.config);break;case i.ServiceEnum.COMMAND:this.services[e]=new o.CommandService(this.config);break;case i.ServiceEnum.CONTROL:this.services[e]=new o.ControlService(this.config);break;case i.ServiceEnum.SEARCH:this.services[e]=new o.SearchService(this.config);break;case i.ServiceEnum.CONFIG_GROUP:this.services[e]=new o.ConfigGroupService(this.config);break;case i.ServiceEnum.DASHBOARD:this.services[e]=new o.DashboardService(this.config);break;case i.ServiceEnum.FUNCTION:this.services[e]=new o.FunctionService(this.config);break;case i.ServiceEnum.STREAM:this.services[e]=new o.StreamService(this.config);break;case i.ServiceEnum.USER:this.services[e]=new o.UserService(this.config);break;case i.ServiceEnum.TIME_SYNCER:this.services[e]=new o.TimeSyncerService(this.config);break;case i.ServiceEnum.WORKFLOW:this.services[e]=new o.WorkflowService(this.config);break;case i.ServiceEnum.ASSET_STORAGE:this.services[e]=new o.AssetStorageService(this.config);break;case i.ServiceEnum.PROFILE:this.services[e]=new o.ProfileService(this.config);break;case i.ServiceEnum.WEBRTC_SIGNALLING:this.services[e]=new o.WebRTCSignallingService(this.config);break;case i.ServiceEnum.FILE_ACCESSOR:this.services[e]=new o.FileAccessorService(this.config);break;case i.ServiceEnum.SCHEDULE:this.services[e]=new o.ScheduleService(this.config);break;case i.ServiceEnum.SPOT_PROVISIONER:this.services[e]=new o.SpotProvisioningService(this.config);break;case i.ServiceEnum.INTEGRATION:this.services[e]=new o.IntegrationService(this.config);break;case i.ServiceEnum.MAP:this.services[e]=new o.MapService(this.config)}return this.logger.debug(`Found service ${e}.`),this.services[e]}getAuthService(){return this.getService(i.ServiceEnum.AUTH)}getRobotService(){return this.getService(i.ServiceEnum.ROBOT)}getEventService(){return this.getService(i.ServiceEnum.EVENT)}getProjectService(){return this.getService(i.ServiceEnum.PROJECT)}getTelemetryService(){return this.getService(i.ServiceEnum.TELEMETRY)}getCallerService(){return this.getService(i.ServiceEnum.CALLER)}getCommandService(){return this.getService(i.ServiceEnum.COMMAND)}getControlService(){return this.getService(i.ServiceEnum.CONTROL)}getSearchService(){return this.getService(i.ServiceEnum.SEARCH)}getConfigGroupService(){return this.getService(i.ServiceEnum.CONFIG_GROUP)}getDashboardService(){return this.getService(i.ServiceEnum.DASHBOARD)}getFunctionService(){return this.getService(i.ServiceEnum.FUNCTION)}getStreamService(){return this.getService(i.ServiceEnum.STREAM)}getUserService(){return this.getService(i.ServiceEnum.USER)}getTimeSyncerService(){return this.getService(i.ServiceEnum.TIME_SYNCER)}getWorkflowService(){return this.getService(i.ServiceEnum.WORKFLOW)}getAssetStorageService(){return this.getService(i.ServiceEnum.ASSET_STORAGE)}getProfileService(){return this.getService(i.ServiceEnum.PROFILE)}getWebRTCSignallingService(){return this.getService(i.ServiceEnum.WEBRTC_SIGNALLING)}getFileAccessorService(){return this.getService(i.ServiceEnum.FILE_ACCESSOR)}getSchedulerService(){return this.getService(i.ServiceEnum.SCHEDULE)}getSpotProvisionerService(){return this.getService(i.ServiceEnum.SPOT_PROVISIONER)}getIntegrationService(){return this.getService(i.ServiceEnum.INTEGRATION)}getMapService(){return this.getService(i.ServiceEnum.MAP)}get platformTimeOffset(){var e;return null===(e=o.PlatFormTimeService.getInstance(this.getTimeSyncerService()))||void 0===e?void 0:e.platformTimeOffset}get platformTime(){var e;return null===(e=o.PlatFormTimeService.getInstance(this.getTimeSyncerService()))||void 0===e?void 0:e.platformTime}async cleanup(){return this.services={},s.RocosStore.removeSDKInstance(this.config),a.StreamRegister.getInstance().removeAllStreams()}enableDebugMode(e){e?n.RocosLogger.enableAll():n.RocosLogger.disableAll()}setDebugLevel(e){n.RocosLogger.setLevel(e)}}},7785:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StreamRegister=void 0;const o=r(3585),i=r(9);class n{constructor(){this.teleStreams=new Map,this.logger=i.RocosLogger.getInstance("StreamRegister")}static getInstance(){return n.instance||(n.instance=new n),n.instance}static getIdentifier(e,t){return`${e}-${null!=t?t:""}`}async addStream(e){try{this.teleStreams.has(e.identifier)&&await this.removeStream(e),this.teleStreams.set(e.identifier,e)}catch(t){throw this.logger.error(`Failed to add stream to list. identifier: ${e.identifier}`,t),new o.RocosError(t,o.errorCodes.STREAM_LISTENER_ERROR)}}getStream(e){return this.teleStreams.get(e)}async removeStream(e){try{await e.stopStream(),this.teleStreams.delete(e.identifier)}catch(t){throw this.logger.error(`Failed to remove stream from list. identifier: ${e.identifier}`,t),new o.RocosError(t,o.errorCodes.STREAM_LISTENER_ERROR)}}async removeAllStreams(){try{for(const[,e]of this.teleStreams.entries())await this.removeStream(e)}catch(e){throw this.logger.error(`error removing stream, ${e}`),new o.RocosError(e,o.errorCodes.STREAM_LISTENER_ERROR)}return!0}}t.StreamRegister=n},3222:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StreamHeartbeat=void 0;const o=r(9);t.StreamHeartbeat=class{constructor(e){this.beats=0,this.healthLastSeenDate=new Date,this.healthMisses=0,this.healthTimeout=6e3,this.healthMaxTimeout=10,this.healthMaxMisses=5,this.identifier=e,this.logger=o.RocosLogger.getInstance(`StreamHeartbeat(${this.identifier})`)}setHealthTimeout(e){return this.healthTimeout=e,this}setHealthMaxTimeout(e){return this.healthMaxTimeout=e,this}setHealthMaxMisses(e){return this.healthMaxMisses=e,this}setHealthCheckStatusCallback(e){return this.healthCheckStatusCallback=e,this}setHealthCheckErrorCallback(e){return this.healthCheckErrorCallback=e,this}start(e,t){this.interval?this.logger.warn("Stream heartbeat already exists"):(this.callback=e,this.timeout=t,this.logger.info("Creating stream heartbeat"),this.interval=setInterval(this.callback,this.timeout))}stop(){try{this.logger.info("Removing stream heartbeat timer"),clearInterval(this.interval),this.interval=void 0}catch(e){this.logger.error(`Error killing stream heartbeat timer ${e}`)}}pump(){return this.healthInterval?(this.logger.debug(`Updating health check timer: ${this.healthLastSeenDate}, ${this.healthMisses}`),this.healthLastSeenDate=new Date,this.healthMisses=0):(this.logger.debug("Starting health check timer"),this.healthInterval=setInterval(this.checkHealth,this.healthTimeout),this.healthLastSeenDate=new Date,this.healthMisses=0),this.beats++}async checkHealth(){this.logger.debug("Checking health");let e=!0;const t=((new Date).getTime()-this.healthLastSeenDate.getTime())/1e3;t>this.healthMaxTimeout&&this.healthMaxMisses?(e=!1,this.healthMisses+=1,this.logger.warn(`Heartbeat is more than ${this.healthMaxTimeout} seconds, delay: ${t} seconds, misses: ${this.healthMisses}`),this.healthMisses===this.healthMaxMisses&&(this.stopHealthCheck(),this.logger.error(`Stopping Heartbeat as it is more than ${this.healthMaxTimeout} seconds, delay - ${t} seconds, misses: ${this.healthMisses}`),this.healthCheckErrorCallback&&await this.healthCheckErrorCallback())):t>this.healthMaxTimeout&&(e=!1,this.logger.warn(`Stopping Heartbeat as it is more than ${this.healthMaxTimeout} seconds, delay - ${t} seconds`),this.stopHealthCheck(),this.healthCheckErrorCallback&&await this.healthCheckErrorCallback()),this.healthCheckStatusCallback&&await this.healthCheckStatusCallback(e)}stopHealthCheck(){if(this.healthInterval)try{this.logger.info("Stopping timer"),clearInterval(this.healthInterval),this.healthInterval=void 0,this.logger.info("Removed timer")}catch(e){this.logger.error("error removing timer",e)}}}},5462:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CallerStream=void 0;const o=r(2872),i=r(9743),n=r(1442),s=r(5755),a=r(4298),u=r(9),l=r(2189),p=r(779);class c extends s.CallerStreamAbstract{constructor(e){super(e),this.logger=u.RocosLogger.getInstance(`CallerStream(${this.identifier})`);const t=e.insecure?"http":"https";this.client=new n.WebServiceCallerClient(`${t}://${this.url}`)}callStream(e,t){const r=this.getMetadata(t.projectId,t.callsign,t.subSystem);let n;return new o.Observable((o=>{let s="invoke";return e instanceof i.RequestCancellation?(n=this.client.cancelService(e,r),s="cancel"):n=this.client.callService(e,r),this.subscriberStatus=l.SubscriberStatusEnum.ALIVE,this.statusStream$.next(this.subscriberStatus),n.on("data",(e=>{const r=a.RocosCallerMessage.fromModel(e);o.next(r),this.logger.debug(`${s}Request - on(data)`,{message:r,projectId:t.projectId,callsign:t.callsign,component:t.component,topic:t.topic})})),n.on("end",(()=>{this.subscriberStatus=l.SubscriberStatusEnum.STOPPED,this.statusStream$.next(this.subscriberStatus),this.logger.debug(`${s}Request - on(end)`,{projectId:t.projectId,callsign:t.callsign,component:t.component,topic:t.topic}),o.complete()})),n.on("status",(e=>{this.logger.debug(`${s}Request - on(status)`,{status:e,projectId:t.projectId,callsign:t.callsign,component:t.component,topic:t.topic})})),()=>{this.logger.debug("unsubscribing callStream"),n.cancel()}}))}setPayload(e,t){e.setPayload(p.stringToUint8Array(t))}getMetadata(e,t,r){return{authorization:this.token,"r-p":e,"r-cs":t,"r-s":r||""}}}t.CallerStream=c},5755:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CallerStreamAbstract=void 0;const o=r(2872),i=r(9743),n=r(597),s=r(3360),a=r(3918),u=r(7785),l=r(2189),p=r(4857),c=r(1614);t.CallerStreamAbstract=class{constructor(e){this.subscriberStatus=l.SubscriberStatusEnum.STOPPED,this.scope=e.scope,this.identifier=u.StreamRegister.getIdentifier(s.IDENTIFIER_NAME_CALLER,this.scope),this.token=e.token,this.url=e.url,this.statusStream$=new o.BehaviorSubject(l.SubscriberStatusEnum.STOPPED),a.RocosStore.getChangeSubject().pipe(p.filter((e=>"token"===e.type&&e.url===this.url))).subscribe((e=>{this.token=e.data}))}setToken(e){this.token=e}stopStream(){}invokeRequest(e){this.logger.info("invokeRequest",e);const t=e.responseLevelNumber,r=this.createServiceRequest(e.uid,e.projectId,e.callsign,e.component,e.topic,t,e.payload,e.query);return this.callStream(r,e)}cancelRequest(e){this.logger.info("cancelRequest",e);const t=this.createCancellationRequest(e.uid);return this.callStream(t,e)}createCancellationRequest(e){const t=new i.RequestCancellation,r=new i.ServiceCallUID;return r.setHash(e),t.setUid(r),t}createServiceHeader(e,t){const r=new i.ServiceRequestHeader;return r.setCreated(Date.now()),r.setSource(e),r.setResponselevel(t),r}createServiceRequest(e,t,r,o,s,a,u,l){const p=this.createRocosUriPath(t,r,o,s,void 0),g=new n.RocosURI;if(g.setPath(p),g.setScheme(n.RocosURIScheme.GRPC),l){const e=g.getQueryMap();Object.keys(l).forEach((t=>{const r=new n.RocosURIQueryValues;l[t].forEach((e=>r.addValues(e))),e.set(t,r)}))}const d=new i.ServiceRequest,f=new i.ServiceCallUID;f.setVersion(i.UIDVersion.HEADER_HASH_RAND),e||(e=c.v4()),f.setHash(e);const h=this.createServiceHeader(g,a);return d.setUid(f),d.setHeader(h),this.setPayload(d,u),d}createRocosUriPath(e,t,r,o,i){const s=new n.RocosURIPath;return s.setProject(e),s.setCallsign(t),s.setComponent(r),s.setTopic(o),i&&s.setSubsystem(i),s}}},5341:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CommandStream=void 0;const o=r(8825),i=r(2872),n=r(2345),s=r(7940),a=r(9),u=r(2189);class l extends n.CommandStreamAbstract{constructor(e){super(e),this.logger=a.RocosLogger.getInstance(`CommandStream(${this.identifier})`);const t=e.insecure?"http":"https";this.client=new o.CommandClient(`${t}://${this.url}`)}callStream(e,t){const r=this.getMetadata(t.projectId,t.callsign);let o;return new i.Observable((i=>(o=this.client.callCommand(e,r),this.subscriberStatus=u.SubscriberStatusEnum.ALIVE,this.statusStream$.next(this.subscriberStatus),o.on("data",(e=>{const r=s.RocosCommandMessage.fromModel(e);i.next(r),this.logger.debug("invokeRequest - on(data)",{message:r,projectId:t.projectId,callsign:t.callsign,commandId:t.commandId})})),o.on("end",(()=>{this.subscriberStatus=u.SubscriberStatusEnum.STOPPED,this.statusStream$.next(this.subscriberStatus),this.logger.debug("invokeRequest - on(end)",{projectId:t.projectId,callsign:t.callsign,commandId:t.commandId}),i.complete()})),o.on("status",(e=>{this.logger.debug("invokeRequest - on(status)",{status:e,projectId:t.projectId,callsign:t.callsign,commandId:t.commandId})})),()=>{this.logger.debug("unsubscribing commandStream"),o.cancel()})))}getMetadata(e,t){return{authorization:this.token,"r-p":e,"r-cs":t}}}t.CommandStream=l},2345:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CommandStreamAbstract=void 0;const o=r(2872),i=r(2641),n=r(1363),s=r(3360),a=r(9009),u=r(3918),l=r(7785),p=r(2189),c=r(4857),g=r(6636),d=r(4711);t.CommandStreamAbstract=class{constructor(e){this.subscriberStatus=p.SubscriberStatusEnum.STOPPED,this.scope=e.scope,this.identifier=l.StreamRegister.getIdentifier(s.IDENTIFIER_NAME_COMMAND,this.scope),this.token=e.token,this.url=e.url,this.statusStream$=new o.BehaviorSubject(p.SubscriberStatusEnum.STOPPED),u.RocosStore.getChangeSubject().pipe(c.filter((e=>"token"===e.type&&e.url===this.url))).subscribe((e=>{this.token=e.data}))}setToken(e){this.token=e}stopStream(){}invokeRequest(e){void 0!==e.timeoutMs&&null!==e.timeoutMs||(e.timeoutMs=3e4),this.logger.info("invokeRequest",e);const t=this.createCommandRequest(e.projectId,e.callsign,e.commandId,e.parameters,e.timeoutMs,e.responseLevel);return this.callStream(t,e)}createCommandRequest(e,t,r,o,s=3e4,u=a.ResponseLevelEnum.ALL){const l=this.createRocosUriPath(e,t,r),p=new i.RocosUri;p.setPath(l),p.setScheme(i.RocosUriScheme.GRPC);const c=new n.CommandRequest;return c.setTxid(d.randomString()),c.setUri(p),c.setReslevel(u),o&&Object.keys(o).forEach((e=>{c.getParametersMap().set(e,o[e])})),c.setDeadlinems(g.getUnixTimeMs(s)),c}createRocosUriPath(e,t,r){const o=new i.RocosUriPath;return o.setProject(e),o.setCallsign(t),o.setTopic(r),o.setComponent("command-executor"),o}}},8581:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlStream=void 0;const o=r(2872),i=r(6041),n=r(632),s=r(8469),a=r(9),u=r(2189),l=r(3037),p=r(779);class c extends n.ControlStreamAbstract{constructor(e){super(e),this.logger=a.RocosLogger.getInstance(`ControlStream(${this.identifier})`);const t=e.insecure?"http":"https";this.client=new i.RobotControlClient(`${t}://${this.url}`)}controlRobotCall(e,t){const r=this.getMetadata(t.projectId,t.callsign);this.client.controlRobotCall(e,r,((e,t)=>null))}controlRobotCallWithAckStream(e,t){const r=this.getMetadata(t.projectId,t.callsign);let i;return new o.Observable((o=>(i=this.client.controlRobotCallWithAckStream(e,r),this.subscriberStatus=u.SubscriberStatusEnum.ALIVE,this.statusStream$.next(this.subscriberStatus),i.on("data",(e=>{const r=s.RocosControlMessage.fromMessage(e);o.next(r),this.logger.debug("controlRobotCallWithAckStream - on(data)",{message:r,projectId:t.projectId,callsign:t.callsign,destination:t.destination})})),i.on("end",(()=>{this.subscriberStatus=u.SubscriberStatusEnum.STOPPED,this.statusStream$.next(this.subscriberStatus),this.logger.debug("controlRobotCallWithAckStream - on(end)",{projectId:t.projectId,callsign:t.callsign,destination:t.destination}),o.complete()})),i.on("status",(e=>{this.logger.debug("controlRobotCallWithAckStream- on(status)",{status:e,projectId:t.projectId,callsign:t.callsign,destination:t.destination}),e.code!==l.grpc.Code.OK&&o.error({details:e.details,code:e.code})})),()=>{this.logger.debug("unsubscribing controlRobotCallWithAckStream"),i.cancel()})))}setPayload(e,t){e.setPayload(p.stringToUint8Array(t))}getMetadata(e,t){return{authorization:this.token,"r-p":e,"r-cs":t}}}t.ControlStream=c},632:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlStreamAbstract=void 0;const o=r(2872),i=r(2177),n=r(3360),s=r(3918),a=r(7785),u=r(2189),l=r(4857);t.ControlStreamAbstract=class{constructor(e){this.subscriberStatus=u.SubscriberStatusEnum.STOPPED,this.scope=e.scope,this.identifier=a.StreamRegister.getIdentifier(n.IDENTIFIER_NAME_CONTROL,this.scope),this.token=e.token,this.url=e.url,this.statusStream$=new o.BehaviorSubject(u.SubscriberStatusEnum.STOPPED),s.RocosStore.getChangeSubject().pipe(l.filter((e=>"token"===e.type&&e.url===this.url))).subscribe((e=>{this.token=e.data}))}setToken(e){this.token=e}stopStream(){}takeActionWithAck(e,t,r=15){return new o.Observable((o=>{if(e&&t)if("rosbridge-control"===e)if(t.projectId&&t.callsign){const e=setTimeout((()=>{o.error(new Error(`Timeout (${r} seconds).`)),o.complete(),clearTimeout(e)}),1e3*r);this.sendCommandWithAck(t).subscribe((t=>{const{message:r}=t;"final"===t.stage&&(t.success?(o.next(`${r}`),o.complete()):(o.error(new Error("Failed!")),o.complete())),clearTimeout(e)}),(e=>{o.error(e),o.complete()}))}else o.error(new Error("Cannot find the type or metadata.")),o.complete();else o.error(new Error(`Cannot handle this type: ${e}.`)),o.complete();else o.error(new Error("Cannot find the type or metadata.")),o.complete()}))}sendCommand(e){this.sendCommandToRobot(e)}sendCommandWithAck(e){const t=new i.ControlMessage;return this.setPayload(t,e.payload),t.setDestination(e.destination),this.setRequestMeta(t,e.meta),this.controlRobotCallWithAckStream(t,e)}sendCommandToRobot(e){const t=new i.ControlMessage;t.setDestination(e.destination),this.setPayload(t,e.payload),this.setRequestMeta(t,e.meta),this.controlRobotCall(t,e)}setRequestMeta(e,t){t&&Object.keys(t).forEach((r=>{void 0!==(null==t?void 0:t[r])&&e.getMetaMap().set(r,t[r])}))}}},1409:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileAccessorStream=void 0;const o=r(973),i=r(1769),n=r(5973),s=r(1014),a=r(9),u=r(1984),l=r(2189);class p extends n.FileAccessorStreamAbstract{constructor(e){super(e),this.logger=a.RocosLogger.getInstance(`FileAccessorStream(${this.identifier})`);const t=e.insecure?"http":"https";this.client=new i.FilagreeClient(`${t}://${this.url}`)}serverReqOpInternal(e){return new Promise(((t,r)=>{this.subscriberStatus=l.SubscriberStatusEnum.ALIVE,this.statusStream$.next(this.subscriberStatus),this.logger.debug("serverReqOp - request",{status:this.subscriberStatus,projectId:e.projectId,callsign:e.callsign});const i=new o.OpRequest;i.setOpcode(e.opCode),i.setPath(e.path),i.setTarget(e.target||s.OpRequestTarget.AGENT),e.args&&Object.keys(e.args).forEach((t=>{var r;(null===(r=null==e?void 0:e.args)||void 0===r?void 0:r[t])&&i.getArgsMap().set(t,e.args[t])}));const n=new o.OpRequests;n.setRequestsList([i]);const a=this.getMetadata(e.projectId,e.callsign);this.client.serverReqOp(n,a,((o,i)=>{o?r(o):i?t(u.RocosOpResultMessage.fromMessages(i)):r("Error in serverReqOp call"),this.subscriberStatus=l.SubscriberStatusEnum.STOPPED,this.statusStream$.next(this.subscriberStatus),this.logger.debug("serverReqOp - response",{status:this.subscriberStatus,projectId:e.projectId,callsign:e.callsign})}))}))}getMetadata(e,t){const r={authorization:this.token};return e&&(r["r-p"]=e),t&&(r["r-cs"]=t),r}}t.FileAccessorStream=p},5973:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileAccessorStreamAbstract=void 0;const o=r(1014),i=r(2872),n=r(3360),s=r(3918),a=r(7785),u=r(2189),l=r(4857);t.FileAccessorStreamAbstract=class{constructor(e){this.subscriberStatus=u.SubscriberStatusEnum.STOPPED,this.scope=e.scope,this.identifier=a.StreamRegister.getIdentifier(n.IDENTIFIER_NAME_FILE_ACCESSOR,this.scope),this.token=e.token,this.url=e.url,this.statusStream$=new i.BehaviorSubject(u.SubscriberStatusEnum.STOPPED),s.RocosStore.getChangeSubject().pipe(l.filter((e=>"token"===e.type&&e.url===this.url))).subscribe((e=>{this.token=e.data}))}setToken(e){this.token=e}stopStream(){}async serverReqOp(e){return this.serverReqOpInternal(e)}async listFolder(e){return this.serverReqOp(Object.assign(Object.assign({},e),{opCode:o.OpCode.INFO}))}async downloadFile(e){return this.serverReqOp(Object.assign(Object.assign({},e),{opCode:o.OpCode.READFILE}))}async getDownloadFileLinkByUsingBlob(e){const t=this.getPathForBlobSas(e.projectId,e.callsign,e.path),r=await this.serverReqOp(Object.assign(Object.assign({},e),{path:t,opCode:o.OpCode.READFILE,target:o.OpRequestTarget.SERVER}));if(r&&r.length>0){const[{data:t}]=r;if(t)return this.serverReqOp(Object.assign(Object.assign({},e),{opCode:o.OpCode.BLOBPUT,target:o.OpRequestTarget.AGENT,args:{url:t}}));throw new Error("Could not create SAS")}throw new Error("Could not create SAS")}async uploadFile(e,t){const r=this.getPathForBlobSas(e.projectId,e.callsign,e.path),i=await this.serverReqOp(Object.assign(Object.assign({},e),{path:r,opCode:o.OpCode.BLOBSAS,target:o.OpRequestTarget.SERVER}));if(i&&i.length>0)throw new Error("Could not create SAS");throw new Error("Could not create SAS")}getPathForBlobSas(e,t,r){return`/${t}${r}`}}},601:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SearchStream=void 0;const o=r(2587),i=r(2872),n=r(5248),s=r(9),a=r(6916),u=r(4355),l=r(2189);class p extends u.SearchStreamAbstract{constructor(e){super(e),this.logger=s.RocosLogger.getInstance(`SearchStream(${this.identifier})`);const t=e.insecure?"http":"https";this.client=new n.streamClient(`${t}://${this.url}`)}searchStreamInternal(e,t){const r=this.getMetadata(t.projectId);let o;return new i.Observable((i=>(o=this.client.searchStream(e,r),this.subscriberStatus=l.SubscriberStatusEnum.ALIVE,this.statusStream$.next(this.subscriberStatus),o.on("data",(e=>{const r=e.getDatasetList().map((e=>a.RocosSearchMessage.fromMessage(e)));i.next(r),this.logger.debug("searchStream - on(data)",{status:this.subscriberStatus,projectId:t.projectId,query:t.query})})),o.on("end",(()=>{this.subscriberStatus=l.SubscriberStatusEnum.STOPPED,this.statusStream$.next(this.subscriberStatus),this.logger.debug("searchStream - on(end)",{status:this.subscriberStatus,projectId:t.projectId,query:t.query}),i.complete()})),o.on("status",(e=>{this.logger.debug("searchStream - on(status)",{status:e,projectId:t.projectId,query:t.query})})),()=>{this.logger.debug("unsubscribing searchStream"),o.cancel()})))}queryDataInternal(e,t){const r=this.getMetadata(t.projectId);return new Promise(((t,o)=>{this.client.queryData(e,r,((e,r)=>{e?o(e):r?t(r.getResult()):o("Error with search query.")}))}))}healthCheckInternal(e){const t=new o.Empty,r=this.getMetadata(e.projectId);return new Promise(((e,o)=>{this.client.healthCheck(t,r,((t,r)=>{t?o(t):r?e(r.toObject()):o("Error with health check.")}))}))}deleteProjectDataInternal(e){const t=new o.DeleteProjectMessage;t.setProjectid(e.projectId);const r=this.getMetadata(e.projectId);return new Promise(((e,o)=>{this.client.deleteProjectData(t,r,((t,r)=>{t?o(t):r?e(r.toObject()):o("Error with health check.")}))}))}getMetadata(e){return{authorization:this.token,"r-p":e}}}t.SearchStream=p},4355:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SearchStreamAbstract=void 0;const o=r(2872),i=r(2587),n=r(3360),s=r(3918),a=r(7785),u=r(2189),l=r(4857);t.SearchStreamAbstract=class{constructor(e){this.subscriberStatus=u.SubscriberStatusEnum.STOPPED,this.scope=e.scope,this.identifier=a.StreamRegister.getIdentifier(n.IDENTIFIER_NAME_SEARCH,this.scope),this.token=e.token,this.url=e.url,this.statusStream$=new o.BehaviorSubject(u.SubscriberStatusEnum.STOPPED),s.RocosStore.getChangeSubject().pipe(l.filter((e=>"token"===e.type&&e.url===this.url))).subscribe((e=>{this.token=e.data}))}setToken(e){this.token=e}stopStream(){}searchStream(e){const t=this.convertToQueryMessage(e.query);return this.searchStreamInternal(t,e)}queryData(e){const t=new i.QueryDSLMessage;return t.setDslquery(e.query),t.setProjectid(e.projectId),this.queryDataInternal(t,e)}healthCheck(e){return this.healthCheckInternal(e)}deleteProjectData(e){return this.deleteProjectDataInternal(e)}convertToQueryMessage(e){const t=e.filters.map((e=>{const t=new i.Filter;return t.setIdsList(e.ids),t.setKeyword(e.keyword),t})),r=new i.QueryMessage;return r.setFiltersList(t),r.setGroupbyfieldsList(e.groupByFields),r.setPayloadidsList(e.payloadIds),r.setStartdate(`${e.startDate}`),r.setEnddate(`${e.endDate}`),r.setInterval(e.interval),r.setRefreshdelay(e.refreshDelay),r.setDisabledatehistogram(e.disableDateHistogram?1:0),e.dateField&&r.setDatefield(e.dateField),e.projectId&&r.setProjectid(e.projectId),r}}},4192:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TelemetryStream=void 0;const o=r(8685),i=r(5783),n=r(9),s=r(9510),a=r(2189),u=r(4120),l=r(3037);class p extends u.TelemetryStreamAbstract{constructor(e){super(e),this.logger=n.RocosLogger.getInstance(`TelemetryStreamWeb(${this.identifier})`);const t=e.insecure?"http":"https";this.client=new i.TelemetryGatewayClient(`${t}://${this.url}`)}stopInternal(){this.receiverCall&&(this.logger.info("Starting stop stream process"),this.receiverCall.cancel(),this.receiverCall=void 0,this.logger.info("Finished stop stream process"))}registerReceiver(){this.logger.info("registerReceiver"),this.receivedMessagesCount=0;const e=this.client.registerReceiver(new o.RegistrationMessage,this.getMetadata(this.projectId));return e.on("data",(e=>{this.onData(s.RocosTelemetryMessage.fromTelemetryMessage(e))})),e.on("status",(e=>{e.code!==l.grpc.Code.OK&&this.onError(e)})),e.on("end",(e=>{this.onEnd(e)})),this.receiverCall=e,this.listenMessagesAndRenew(),()=>{e.cancel()}}async onError(e){this.logger.error(`Telemetry Stream Error: ${e}, SubscriberId: ${this.subscriberId}`),this.subscriberStatus=a.SubscriberStatusEnum.ERROR,this.statusStream$.next(this.subscriberStatus)}onEnd(e){this.logger.debug("registerReceiver","end",e),(null==e?void 0:e.code)===l.grpc.Code.OK&&(this.stopInternal(),this.registerReceiver())}getMetadata(e){const t={authorization:this.token};return e&&(t["r-p"]=e),t}requestTelemetry(e){return this.logger.debug("Sending telemetry request"),new Promise(((t,r)=>{this.client.requestTelemetry(e,this.getMetadata(this.projectId),((e,o)=>(this.logger.debug("subscribeSources with callsigns callback",e,o),e?(this.logger.error("error requestTelemetry ",e),r(e)):t())))}))}requestTelemetryQuery(e){return this.logger.debug("Requesting telemetry with query"),new Promise(((t,r)=>{this.client.requestTelemetryQuery(e,this.getMetadata(this.projectId),((e,o)=>(this.logger.debug("subscribeSources with query callback",e,o),e?(this.logger.error("error requestTelemetryQuery ",e),r(e)):t())))}))}sendAcknowledgmentInternal(e,t,r){return this.logger.error("Error can not send Acknowledgment on grpc-web client",{uid:e,status:t,noRetry:r}),!1}sendHeartbeat(){}}t.TelemetryStream=p},4120:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TelemetryStreamAbstract=void 0;const o=r(2872),i=r(8838),n=r(8685),s=r(7795),a=r(8604),u=r(3360),l=r(3918),p=r(9510),c=r(3222),g=r(7723),d=r(7785),f=r(2189),h=r(4124),b=r(4857),y=r(4050);t.TelemetryStreamAbstract=class{constructor(e){this.timerIntervalInSec=1,this.subscriberStatus=f.SubscriberStatusEnum.STOPPED,this.retryTimes=0,this.receivedMessagesCount=0,this.sendHeartbeatTime=5e3,this.receivedDataStats={},this.subscriptions=new Map,this.identifier=d.StreamRegister.getIdentifier(u.IDENTIFIER_NAME_TELEMETRY,e.scope),this.projectId=e.projectId,this.callsignsLookup=e.callsignsLookup,this.token=e.token,this.scope=e.scope,this.url=e.url,this.sources=h.arrayUnique(e.sources),this.options=g.StreamOptions.fromModel(e.options),this.messageStream$=new o.Subject,this.statusStream$=new o.BehaviorSubject(f.SubscriberStatusEnum.STOPPED),this.heartbeat=new c.StreamHeartbeat(this.identifier),l.RocosStore.getChangeSubject().pipe(b.filter((e=>"token"===e.type&&e.url===this.url))).subscribe((e=>{this.token=e.data}))}setToken(e){this.token=e}init(){this.logger.info("Creating new stream instance"),this.registerReceiver()}stopStream(){var e;null===(e=this.heartbeat)||void 0===e||e.stop(),this.stopInternal(),this.messagesTimer&&clearInterval(this.messagesTimer),this.subscriberStatus=f.SubscriberStatusEnum.STOPPED,this.statusStream$.next(this.subscriberStatus)}addSubscription(e){if(this.logger.info("Adding subscriptions from stream",e.uniqueId),this.subscriptions.has(e.uniqueId)){const t=this.subscriptions.get(e.uniqueId);t.count++,this.subscriptions.set(e.uniqueId,t),this.logger.info("Stream subscriptions already exists, increasing count",e.uniqueId,t.count)}else{const t=this.getSubscriptions();this.subscriptions.set(e.uniqueId,Object.assign(Object.assign({},e),{count:1}));const r=this.getSubscriptions();this.callsignsLookup=new s.CallsignsLookup(Object.keys(r)),this.sources=h.arrayUnique(Object.values(r).reduce(((e,t)=>e.concat(t)),[]));const{toAdd:o}=y.getSubscriptionsDifference(t,r);o.callsigns.length&&o.sources.length&&(this.logger.debug("New subscriptions added, we need to refresh sources",{toAdd:o}),this.takeTelemetryAction("subscribe",new s.CallsignsLookup(o.callsigns),o.sources))}l.RocosStore.getChangeSubject().next({type:"telemetry-subscription",url:this.url,data:this.subscriptions})}async removeSubscription(e,t=!1){if(this.logger.info("Removing subscriptions from stream",e.uniqueId),!this.subscriptions.has(e.uniqueId))return;const r=this.subscriptions.get(e.uniqueId);if(r.count--,r.count)return;this.logger.info("Removing subscriptions from stream registry",e.uniqueId);const o=this.getSubscriptions();this.subscriptions.delete(e.uniqueId);const i=this.getSubscriptions();this.callsignsLookup=new s.CallsignsLookup(Object.keys(i)),this.sources=h.arrayUnique(Object.values(i).reduce(((e,t)=>e.concat(t)),[]));const{toRemove:n}=y.getSubscriptionsDifference(o,i);if(n.callsigns.length&&n.sources.length){this.logger.debug("Subscriptions removed, we need to refresh sources",{toRemove:n});try{await this.takeTelemetryAction("unsubscribe",new s.CallsignsLookup(n.callsigns),n.sources,t)}catch(e){this.logger.error(`Failed to unsubscribe: ${e}`)}}this.subscriptions.size||(this.logger.info("No subscriptions remaining closing stream",e.uniqueId),this.stopStream(),d.StreamRegister.getInstance().removeStream(this),this.logger.info("Stream closed"))}sendAcknowledgment(e,t,r){return this.sendAcknowledgmentInternal(e,t,r)}getSubscriptions(){const e={};return this.subscriptions.forEach((t=>{t.callsigns&&t.callsigns.forEach((r=>{e[r]?e[r]=h.arrayUnique([...e[r],...t.sources]):e[r]=h.arrayUnique([...t.sources])}))})),e}onData(e){this.receivedMessagesCount++;const{source:t}=e,{callsign:r}=e;let o=!0;const s=new Date;switch(this.lastMessageReceived=s,e.projectId=this.projectId,e.type="json",e.subId=this.scope,e.subscriberId=this.subscriberId,e.receivedAt=new Date,t){case i.GRPC_SOURCE_SUBSCRIBED:const t=p.RocosTelemetryMessage.getPayloadAsJSON(e),{subscriberId:r}=t;this.subscriberId&&r&&this.logger.warn(`Replacing old subscriberId (${this.subscriberId}) with a new one (${r})`),this.subscriberId=r,e.subscriberId=this.subscriberId,this.logger.info("onData",`subscriberId has been updated - ${r}`,{subscriberId:r}),this.takeTelemetryAction("subscribe"),this.heartbeat.start(this.sendHeartbeat,this.sendHeartbeatTime),o=!1;break;case i.GRPC_SOURCE_NOOP:o=!1;break;default:o=!0}t||(o=!1),o&&(this.lastRobotMessageReceived=s),e.payload=p.RocosTelemetryMessage.getPayloadByType(e),this.updateReceviedDataStatsWithMessage(e),this.isRegisteredMessage(r,t)&&this.messageStream$?(this.messageStream$.next(e),e.isackable&&this.options.autoAcknowledgmentEnabled&&this.sendAcknowledgment(e.uid,n.TelemetryAckStatus.OK,!1)):o&&(e.isackable&&this.sendAcknowledgment(e.uid,n.TelemetryAckStatus.REJECT,!0),this.logger.debug("onData","received unsubscribed message",{callsign:r,source:t,callsigns:this.callsignsLookup,sources:this.sources}))}async takeTelemetryAction(e,t,r,o){if(this.logger.debug("takeTelemetryAction",e),!this.subscriberId||!this.projectId)return this.logger.debug("takeTelemetryAction",e,`${e} without subscriberId or projectId - message will not send out`,{subscriberId:this.subscriberId,projectId:this.projectId}),Promise.resolve();const i=null!=r?r:this.sources,s=null!=t?t:this.callsignsLookup;if(this.callsignsLookup.lookupType===a.CallsignsLookupType.List){const t=new n.TelemetryRequest,r=[],a=new n.TelemetryAction;return a.setOperation(e),a.setCallsignsList(s.lookupValue),a.setSourcesList(i),"unsubscribe"===e&&o&&this.addTerminateToAction(a),r.push(a),t.setRequestedactionsList(r),t.setSubscriberid(this.subscriberId),this.logger.debug("takeTelemetryAction",e,"client.requestTelemetry",this.subscriberId),this.requestTelemetry(t)}if(s.lookupType===a.CallsignsLookupType.Query){const t=s.lookupValue,r=new n.TelemetryQueryRequest;r.setSubscriberid(this.subscriberId),r.setSourcesList(i),r.setOperation(e);const o=new n.Query;o.setOperation(t.operation);const a=[];return t.predicates.forEach((e=>{const t=new n.QueryOrPredicate,r=new n.Predicate;r.setAttribute(e.attribute),r.setOperation(e.operation),r.setValue(e.value),t.setPredicate(r),a.push(t)})),o.setQueryorpredicatesList(a),r.setCallsignquery(o),this.logger.debug("takeTelemetryAction",e,"client.requestTelemetry",this.subscriberId),this.requestTelemetryQuery(r)}return Promise.reject("Unsupported lookupType")}listenMessagesAndRenew(){const e=this.messagesTimer;this.checkerStartedAt=new Date,e&&clearInterval(e),this.messagesTimer=setInterval((()=>{var e;const t=new Date,r=this.lastMessageReceived,o=this.lastRobotMessageReceived,i=null!==(e=this.checkerStartedAt)&&void 0!==e?e:new Date,n=this.options.messageTimeoutInSec;let s=!1,a=!1;(r&&(t.getTime()-r.getTime())/1e3>n||!r&&i&&(t.getTime()-i.getTime())/1e3>n)&&(s=!0),o?(t.getTime()-o.getTime())/1e3>n?this.subscriberStatus=f.SubscriberStatusEnum.DEAD:this.subscriberStatus=f.SubscriberStatusEnum.ALIVE:(t.getTime()-i.getTime())/1e3>n?this.subscriberStatus=f.SubscriberStatusEnum.DEAD:this.retryTimes<=0?this.subscriberStatus=f.SubscriberStatusEnum.STOPPED:this.subscriberStatus=f.SubscriberStatusEnum.DEAD,this.options.autoResubscribeEnabled&&this.receivedMessagesCount>this.options.autoResubscribeMessageLimit&&(t.getTime()-i.getTime())/1e3>this.options.autoResubscribeMinimumTime&&(a=!0),s?(this.logger.debug("listenMessagesAndRenew",{shouldRetry:!0}),this.messageTimeoutTryAgain()):a&&(this.logger.debug("listenMessagesAndRenew",{shouldAutoResubscribe:!0}),this.autoResubscribe()),this.statusStream$.next(this.subscriberStatus),this.logger.debug("listenMessagesAndRenew","Message stats",this.receivedDataStats)}),1e3*this.timerIntervalInSec)}addTerminateToAction(e){const t=new n.UnsubscribeOperation,r=new n.UnsubscribeOption,o=new n.ReceiverGroupUnsubscribeOption;o.setTerminate(!0),r.setReceivergroupunsubscribeoption(o),t.addOptions(r),e.setUnsubscribeoperation(t)}messageTimeoutTryAgain(){this.retryTimes++,this.stopInternal(),this.lastMessageReceived=void 0,this.lastRobotMessageReceived=void 0,this.registerReceiver()}autoResubscribe(){this.retryTimes=0,this.stopInternal(),this.lastMessageReceived=void 0,this.lastRobotMessageReceived=void 0,this.registerReceiver()}isFoundCallsign(e){return this.callsignsLookup.lookupType!==a.CallsignsLookupType.List||-1!==this.callsignsLookup.lookupValue.indexOf(e)}isFoundSource(e){return-1!==this.sources.indexOf(e)}isRegisteredMessage(e,t){return this.isFoundCallsign(e)&&this.isFoundSource(t)}updateReceviedDataStatsWithMessage(e){const{source:t}=e,{callsign:r}=e,o=`${r}-${t}`;this.receivedDataStats||(this.receivedDataStats={});const i=this.receivedDataStats[o]?this.receivedDataStats[o]:0;this.receivedDataStats[o]=i+1}}},5141:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebRTCSignallingStream=void 0;const o=r(5384),i=r(9),n=r(249);class s extends n.WebRTCSignallingStreamAbstract{constructor(e){super(e),this.logger=i.RocosLogger.getInstance(`WebRTCSignallingStream(${this.identifier})`);const t=e.insecure?"http":"https";this.webRTCOperatorclient=new o.operatorClient(`${t}://${this.url}`)}connectOperatorStream(e,t){const r=this.getMetadata(e);return this.webRTCOperatorclient.connect(t,r)}getPeerDetails(e,t,r){const o=this.getMetadata(e);return this.webRTCOperatorclient.get(t,o,r)}offerPeerConnection(e,t,r){const o=this.getMetadata(e);return this.webRTCOperatorclient.offer(t,o,r)}addPeerIceCandidate(e,t,r){const o=this.getMetadata(e);return this.webRTCOperatorclient.addIceCandidate(t,o,r)}getMetadata(e){return{authorization:this.token,"r-p":e}}}t.WebRTCSignallingStream=s},249:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebRTCSignallingStreamAbstract=void 0;const o=r(1615),i=r(2872),n=r(3360),s=r(3918),a=r(7785),u=r(2189),l=r(4857);t.WebRTCSignallingStreamAbstract=class{constructor(e){this.subscriberStatus=u.SubscriberStatusEnum.STOPPED,this.scope=e.scope,this.identifier=a.StreamRegister.getIdentifier(n.IDENTIFIER_NAME_COMMAND,this.scope),this.token=e.token,this.url=e.url,this.statusStream$=new i.BehaviorSubject(u.SubscriberStatusEnum.STOPPED),s.RocosStore.getChangeSubject().pipe(l.filter((e=>"token"===e.type&&e.url===this.url))).subscribe((e=>{this.token=e.data}))}setToken(e){this.token=e}stopStream(){}connectOperator(e){const t=new o.OperatorConnectRequest;return t.setVideoid(e.videoId),t.setClientid(""),this.connectOperatorStream(e.projectId,t)}getDetails(e,t){const r=new o.GetDetailsRequest;return r.setVideoid(e.videoId),this.getPeerDetails(e.projectId,r,t)}offerConnection(e,t){const r=new o.OfferRequest;return r.setSdp(btoa(JSON.stringify(e.rtcSessionDescription))),r.setVideocommand(e.videoCommand),r.setVideoid(e.videoId),r.setClientid(e.clientId||""),r.setVideoformat(e.videoFormat||"H264"),this.offerPeerConnection(e.projectId,r,t)}addIceCandidate(e,t){const r=new o.AddIceCandidateRequest;return r.setVideoid(e.videoId),r.setCandidate(e.candidate),this.addPeerIceCandidate(e.projectId,r,t)}}},1112:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.API_PROJECT_ROBOT_TRIGGER_URL=t.API_PROJECT_ROBOT_BUTTON_URL=t.API_PROJECT_ROBOT_COMMAND2_URL=t.API_PROJECT_ROBOT_COMMAND_URL=t.API_PROJECT_ROBOT_AGENT_URL=t.API_PROJECT_ROBOT_SETTING_URL=t.API_PROJECT_ROBOT_EVENT_HISTORY_URL=t.API_PROJECT_ROBOT_EVENT_URL=t.API_PROJECT_ROBOT_REGISTER_URL=t.API_PROJECT_ROBOT_DEFINITION_URL=t.API_PROJECT_ROBOT_ATTRIBUTES_URL=t.API_PROJECT_ROBOT_ID_URL=t.API_PROJECT_ROBOT_URL=t.API_PROJECT_FLOW_ASSET_PATH_URL=t.API_PROJECT_ROBOT_ASSET_PATH_URL=t.API_PROJECT_ASSET_PROFILES_SYNC_DEFINITION_PATH_URL=t.API_PROJECT_ASSET_ROBOTS_SYNC_DEFINITION_PATH_URL=t.API_PROJECT_ASSET_PATH_URL=t.API_PROJECT_ASSET_URL=t.API_PROJECT_USERS_URL=t.API_PROJECT_ID_URL=t.API_PROJECT_URL=t.API_ACCOUNT_PROJECT_APPLICATION_ID_URL=t.API_ACCOUNT_PROJECT_APPLICATION_URL=t.API_ACCOUNT_PROJECT_USER_ID_URL=t.API_ACCOUNT_PROJECT_USER_URL=t.API_ACCOUNT_PROJECT_ID_URL=t.API_ACCOUNT_PROJECT_URL=t.API_SERVER_TIME_URL=t.API_ACCOUNT_INTEGRATION_TYPE_URL=t.API_ACCOUNT_INTEGRATION_URL=t.API_ACCOUNT_SETTINGS_URL=t.API_AUTH_USER_ACCOUNT_USER_ID_URL=t.API_AUTH_USER_ACCOUNT_USER_URL=t.API_ACCOUNT_ACTIVATE_URL=t.API_ACCOUNT_ID_URL=t.API_ACCOUNT_URL=t.API_USER_PAT_TOKEN_URL=t.API_USER_PAT_URL=t.API_USER_VERIFY_EMAIL_URL=t.API_USER_INVITATION_CHECK_URL=t.API_USER_INVITATION_ACCEPT_URL=t.API_USER_INVITATION_URL=t.API_USER_PASSWORD_FORGOT_URL=t.API_USER_PASSWORD_RESET_URL=t.API_USER_TOKEN_URL=t.API_USER_AUTH_URL=t.API_USER_URL=t.API_ADMIN_USER_INVITATION_URL=t.API_APPLICATION_AUTH_URL=void 0,t.API_PROJECT_WORKFLOW_ID_URL=t.API_PROJECT_ROBOT_DEPLOYED_WORKFLOW_URL=t.API_PROJECT_WORKFLOW_URL=t.API_PROJECT_CALLSIGN_WORKFLOW_URL=t.API_PROJECT_CALLSIGN_STREAM_URL=t.API_PROJECT_ROBOT_DASHBOARD_CUSTOM_WIDGET_URL=t.API_PROJECT_ROBOT_DASHBOARD_ID_URL=t.API_PROJECT_ROBOT_DASHBOARD_URL=t.API_PROJECT_STREAM_CALLSIGN_URL=t.API_PROJECT_STREAM_DATA_URL=t.API_PROJECT_STREAM_ID_URL=t.API_PROJECT_STREAM_URL=t.API_PROJECT_EXPORT_URL=t.API_PROJECT_FUNCTION_POD_URL=t.API_PROJECT_FUNCTION_RUN_URL=t.API_PROJECT_FUNCTION_ID_URL=t.API_PROJECT_FUNCTION_URL=t.API_PROJECT_GROUP_TYPE_OWNER_OVERRIDE_URL=t.API_PROJECT_GROUP_TYPE_OWNER_ID_URL=t.API_PROJECT_GROUP_TYPE_VERSION_URL=t.API_PROJECT_GROUP_TYPE_CONFIG_URL=t.API_PROJECT_GROUP_TYPE_PUBLISH_URL=t.API_PROJECT_GROUP_TYPE_ID_URL=t.API_PROJECT_GROUP_TYPE_URL=t.API_PROJECT_DEFINITION_GAMEPAD_URL=t.API_PROJECT_DEFINITION_TRIGGER_URL=t.API_PROJECT_DEFINITION_BUTTON_URL=t.API_PROJECT_DEFINITION_ACTION_URL=t.API_PROJECT_DEFINITION_EVENT_URL=t.API_PROJECT_DEFINITION_COMMAND2_URL=t.API_PROJECT_DEFINITION_COMMAND_URL=t.API_PROJECT_DEFINITION_AGENT_URL=t.API_PROJECT_DEFINITION_SETTING_URL=t.API_PROJECT_DEFINITION_BLOB_URL=t.API_PROJECT_DEFINITION_DASHBOARD_URL=t.API_PROJECT_DEFINITION_COPY_URL=t.API_PROJECT_DEFINITION_STREAM_URL=t.API_PROJECT_DEFINITION_ID_URL=t.API_PROJECT_DEFINITION_URL=t.API_PROJECT_VROBOT_DEPLOY_URL=t.API_PROJECT_VROBOT_DETAILS_URL=t.API_PROJECT_COLLECTION_DOCS_URL=t.API_PROJECT_COLLECTION_ID_URL=t.API_PROJECT_DASHBOARD_CUSTOM_WIDGET_URL=t.API_PROJECT_DASHBOARD_WIDGET_URL=t.API_PROJECT_DASHBOARD_ID_URL=t.API_PROJECT_DASHBOARD_URL=t.API_PROJECT_OPERATION_ID_URL=t.API_PROJECT_OPERATION_URL=t.API_PROJECT_ROBOT_GAMEPAD_URL=void 0,t.API_MAPS_COPY_URL=t.API_MAP_ID_URL=t.API_MAPS_MERGE_URL=t.API_MAPS_INIT_DB_URL=t.API_MAPS_URL=t.API_DD_INTEGRATION_ISSUES_URL=t.API_DD_INTEGRATION_OVERLAYS_URL=t.API_DD_INTEGRATION_PLAN_BY_ID_URL=t.API_DD_INTEGRATION_PLANS_URL=t.API_SPOTTY_URL=t.API_PROJECT_SCHEDULES_URL=t.API_SOURCE_ID_URL=t.API_SOURCE_URL=t.API_SOURCE_SCHEMA_URL=t.API_TEMPLATE_EXPORTER_URL=t.API_TEMPLATE_PROVISION_ID_URL=t.API_TEMPLATE_PROVISION_URL=t.API_TEMPLATE_DEPLOY_URL=t.API_PROJECT_PROFILE_DASHBOARD_CUSTOM_WIDGET_URL=t.API_PROJECT_PROFILE_DASHBOARD_ID_URL=t.API_PROJECT_PROFILE_DASHBOARD_URL=void 0,t.API_APPLICATION_AUTH_URL="https://{url}/applications/auth",t.API_ADMIN_USER_INVITATION_URL="https://{url}/admin/users/invitations",t.API_USER_URL="https://{url}/users",t.API_USER_AUTH_URL="https://{url}/users/auth",t.API_USER_TOKEN_URL="https://{url}/users/token",t.API_USER_PASSWORD_RESET_URL="https://{url}/users/forgotten-password-reset",t.API_USER_PASSWORD_FORGOT_URL="https://{url}/users/forgotten-password",t.API_USER_INVITATION_URL="https://{url}/users/invitations",t.API_USER_INVITATION_ACCEPT_URL="https://{url}/users/invitations/{invitationId}/accept",t.API_USER_INVITATION_CHECK_URL="https://{url}/users/invitations/{invitationId}/check",t.API_USER_VERIFY_EMAIL_URL="https://{url}/users/verification-email",t.API_USER_PAT_URL="https://{url}/users/pat",t.API_USER_PAT_TOKEN_URL="https://{url}/users/pat/{token}",t.API_ACCOUNT_URL="https://{url}/accounts",t.API_ACCOUNT_ID_URL="https://{url}/accounts/{accountId}",t.API_ACCOUNT_ACTIVATE_URL="https://{url}/accounts/{accountId}/activate",t.API_AUTH_USER_ACCOUNT_USER_URL="https://{url}/accounts/{accountId}/users",t.API_AUTH_USER_ACCOUNT_USER_ID_URL="https://{url}/accounts/{accountId}/users/{userId}",t.API_ACCOUNT_SETTINGS_URL="https://{url}/accounts/{accountId}/settings",t.API_ACCOUNT_INTEGRATION_URL="https://{url}/accounts/{accountId}/integrations/{integrationId}",t.API_ACCOUNT_INTEGRATION_TYPE_URL="https://{url}/accounts/{accountId}/integrations/{integrationId}/{integrationType}",t.API_SERVER_TIME_URL="https://{url}/time",t.API_ACCOUNT_PROJECT_URL="https://{url}/accounts/{accountId}/projects",t.API_ACCOUNT_PROJECT_ID_URL="https://{url}/accounts/{accountId}/projects/{projectId}",t.API_ACCOUNT_PROJECT_USER_URL="https://{url}/accounts/{accountId}/projects/{projectId}/users",t.API_ACCOUNT_PROJECT_USER_ID_URL="https://{url}/accounts/{accountId}/projects/{projectId}/users/{userId}",t.API_ACCOUNT_PROJECT_APPLICATION_URL="https://{url}/accounts/{accountId}/projects/{projectId}/applications",t.API_ACCOUNT_PROJECT_APPLICATION_ID_URL="https://{url}/accounts/{accountId}/projects/{projectId}/applications/{applicationId}",t.API_PROJECT_URL="https://{url}/projects",t.API_PROJECT_ID_URL="https://{url}/projects/{projectId}",t.API_PROJECT_USERS_URL="https://{url}/projects/{projectId}/users",t.API_PROJECT_ASSET_URL="https://{url}/projects/{projectId}/assets",t.API_PROJECT_ASSET_PATH_URL="https://{url}/projects/{projectId}/assets/{filePath}",t.API_PROJECT_ASSET_ROBOTS_SYNC_DEFINITION_PATH_URL="https://{url}/projects/{projectId}/robots/{callsign}/sync-definitions",t.API_PROJECT_ASSET_PROFILES_SYNC_DEFINITION_PATH_URL="https://{url}/projects/{projectId}/profiles/{profileId}/sync-definitions",t.API_PROJECT_ROBOT_ASSET_PATH_URL="https://{url}/projects/{projectId}/robots/{callsign}/assets",t.API_PROJECT_FLOW_ASSET_PATH_URL="https://{url}/projects/{projectId}/flows/{callsign}/assets",t.API_PROJECT_ROBOT_URL="https://{url}/projects/{projectId}/robots",t.API_PROJECT_ROBOT_ID_URL="https://{url}/projects/{projectId}/robots/{callsign}",t.API_PROJECT_ROBOT_ATTRIBUTES_URL="https://{url}/projects/{projectId}/robots/{callsign}/attributes",t.API_PROJECT_ROBOT_DEFINITION_URL="https://{url}/projects/{projectId}/robots/{callsign}/robot-definitions",t.API_PROJECT_ROBOT_REGISTER_URL="https://{url}/projects/{projectId}/robots/{callsign}/register",t.API_PROJECT_ROBOT_EVENT_URL="https://{url}/projects/{projectId}/robots/{callsign}/event-definitions",t.API_PROJECT_ROBOT_EVENT_HISTORY_URL="https://{url}/projects/{projectId}/robots/{callsign}/event-definitions/{eventDefinitionId}/history",t.API_PROJECT_ROBOT_SETTING_URL="https://{url}/projects/{projectId}/robots/{callsign}/settings",t.API_PROJECT_ROBOT_AGENT_URL="https://{url}/projects/{projectId}/robots/{callsign}/agent-settings",t.API_PROJECT_ROBOT_COMMAND_URL="https://{url}/projects/{projectId}/robots/{callsign}/commands",t.API_PROJECT_ROBOT_COMMAND2_URL="https://{url}/projects/{projectId}/robots/{callsign}/commands-v2",t.API_PROJECT_ROBOT_BUTTON_URL="https://{url}/projects/{projectId}/robots/{callsign}/buttons",t.API_PROJECT_ROBOT_TRIGGER_URL="https://{url}/projects/{projectId}/robots/{callsign}/triggers",t.API_PROJECT_ROBOT_GAMEPAD_URL="https://{url}/projects/{projectId}/robots/{callsign}/gamepads",t.API_PROJECT_OPERATION_URL="https://{url}/projects/{projectId}/operations",t.API_PROJECT_OPERATION_ID_URL="https://{url}/projects/{projectId}/operations/{operationId}",t.API_PROJECT_DASHBOARD_URL="https://{url}/projects/{projectId}/dashboards",t.API_PROJECT_DASHBOARD_ID_URL="https://{url}/projects/{projectId}/dashboards/{dashboardId}",t.API_PROJECT_DASHBOARD_WIDGET_URL="https://{url}/projects/{projectId}/dashboards/{dashboardId}/widgets",t.API_PROJECT_DASHBOARD_CUSTOM_WIDGET_URL="https://{url}/projects/{projectId}/dashboards/{dashboardId}/custom-widgets",t.API_PROJECT_COLLECTION_ID_URL="https://{url}/projects/{projectId}/doc-collections/{collectionId}",t.API_PROJECT_COLLECTION_DOCS_URL="https://{url}/projects/{projectId}/doc-collections/{collectionId}/docs",t.API_PROJECT_VROBOT_DETAILS_URL="https://{url}/projects/{projectId}/vrobots/{callsign}/details",t.API_PROJECT_VROBOT_DEPLOY_URL="https://{url}/projects/{projectId}/vrobots/{callsign}/deploy",t.API_PROJECT_DEFINITION_URL="https://{url}/projects/{projectId}/robot-definitions",t.API_PROJECT_DEFINITION_ID_URL="https://{url}/projects/{projectId}/robot-definitions/{definitionId}",t.API_PROJECT_DEFINITION_STREAM_URL="https://{url}/projects/{projectId}/robot-definitions/{definitionId}/streams",t.API_PROJECT_DEFINITION_COPY_URL="https://{url}/projects/{projectId}/robot-definitions/{definitionId}/copy",t.API_PROJECT_DEFINITION_DASHBOARD_URL="https://{url}/projects/{projectId}/robot-definitions/{definitionId}/dashboards",t.API_PROJECT_DEFINITION_BLOB_URL="https://{url}/projects/{projectId}/robot-definitions/{definitionId}/dashboard-blob",t.API_PROJECT_DEFINITION_SETTING_URL="https://{url}/projects/{projectId}/robot-definitions/{definitionId}/settings",t.API_PROJECT_DEFINITION_AGENT_URL="https://{url}/projects/{projectId}/robot-definitions/{definitionId}/agent-settings",t.API_PROJECT_DEFINITION_COMMAND_URL="https://{url}/projects/{projectId}/robot-definitions/{definitionId}/commands",t.API_PROJECT_DEFINITION_COMMAND2_URL="https://{url}/projects/{projectId}/robot-definitions/{definitionId}/commands-v2",t.API_PROJECT_DEFINITION_EVENT_URL="https://{url}/projects/{projectId}/robot-definitions/{definitionId}/event-definitions",t.API_PROJECT_DEFINITION_ACTION_URL="https://{url}/projects/{projectId}/robot-definitions/{definitionId}/command-actions",t.API_PROJECT_DEFINITION_BUTTON_URL="https://{url}/projects/{projectId}/robot-definitions/{definitionId}/buttons",t.API_PROJECT_DEFINITION_TRIGGER_URL="https://{url}/projects/{projectId}/robot-definitions/{definitionId}/triggers",t.API_PROJECT_DEFINITION_GAMEPAD_URL="https://{url}/projects/{projectId}/robot-definitions/{definitionId}/gamepads",t.API_PROJECT_GROUP_TYPE_URL="https://{url}/projects/{projectId}/config-groups/{type}",t.API_PROJECT_GROUP_TYPE_ID_URL="https://{url}/projects/{projectId}/config-groups/{type}/{configGroupId}",t.API_PROJECT_GROUP_TYPE_PUBLISH_URL="https://{url}/projects/{projectId}/config-groups/{type}/{configGroupId}/publish",t.API_PROJECT_GROUP_TYPE_CONFIG_URL="https://{url}/projects/{projectId}/config-groups/{type}/{configGroupId}/{configId}",t.API_PROJECT_GROUP_TYPE_VERSION_URL="https://{url}/projects/{projectId}/config-groups/{type}/{configGroupId}/{version}",t.API_PROJECT_GROUP_TYPE_OWNER_ID_URL="https://{url}/projects/{projectId}/config-groups/{type}/{configGroupId}/owner/{ownerId}",t.API_PROJECT_GROUP_TYPE_OWNER_OVERRIDE_URL="https://{url}/projects/{projectId}/config-groups/{type}/{configGroupId}/{ownerId}/override",t.API_PROJECT_FUNCTION_URL="https://{url}/projects/{projectId}/functions",t.API_PROJECT_FUNCTION_ID_URL="https://{url}/projects/{projectId}/functions/{functionId}",t.API_PROJECT_FUNCTION_RUN_URL="https://{url}/projects/{projectId}/functions/{functionId}/run",t.API_PROJECT_FUNCTION_POD_URL="https://{url}/projects/{projectId}/functions/{functionId}/pods",t.API_PROJECT_EXPORT_URL="https://{url}/projects/{projectId}/export-jobs",t.API_PROJECT_STREAM_URL="https://{url}/projects/{projectId}/streams",t.API_PROJECT_STREAM_ID_URL="https://{url}/projects/{projectId}/streams/{streamId}",t.API_PROJECT_STREAM_DATA_URL="https://{url}/projects/{projectId}/streams/{streamId}/data",t.API_PROJECT_STREAM_CALLSIGN_URL="https://{url}/projects/{projectId}/streams/{streamId}/callsigns",t.API_PROJECT_ROBOT_DASHBOARD_URL="https://{url}/projects/{projectId}/robots/{callsign}/dashboards",t.API_PROJECT_ROBOT_DASHBOARD_ID_URL="https://{url}/projects/{projectId}/robots/{callsign}/dashboards/{dashboardId}",t.API_PROJECT_ROBOT_DASHBOARD_CUSTOM_WIDGET_URL="https://{url}/projects/{projectId}/robots/{callsign}/dashboards/{dashboardId}/custom-widgets",t.API_PROJECT_CALLSIGN_STREAM_URL="https://{url}/projects/{projectId}/callsigns/{callsign}/streams",t.API_PROJECT_CALLSIGN_WORKFLOW_URL="https://{url}/projects/{projectId}/callsigns/{callsign}/workflows",t.API_PROJECT_WORKFLOW_URL="https://{url}/projects/{projectId}/workflows",t.API_PROJECT_ROBOT_DEPLOYED_WORKFLOW_URL="https://{url}/projects/{projectId}/robots/{callsign}/automate/flows/deployments",t.API_PROJECT_WORKFLOW_ID_URL="https://{url}/projects/{projectId}/workflows/{workflowId}",t.API_PROJECT_PROFILE_DASHBOARD_URL="https://{url}/projects/{projectId}/profiles/{profileId}/dashboards",t.API_PROJECT_PROFILE_DASHBOARD_ID_URL="https://{url}/projects/{projectId}/profiles/{profileId}/dashboards/{dashboardId}",t.API_PROJECT_PROFILE_DASHBOARD_CUSTOM_WIDGET_URL="https://{url}/projects/{projectId}/profiles/{profileId}/dashboards/{dashboardId}/custom-widgets",t.API_TEMPLATE_DEPLOY_URL="https://{url}/templates/vrobot-deployment",t.API_TEMPLATE_PROVISION_URL="https://{url}/templates/rocos-provisioning-templates",t.API_TEMPLATE_PROVISION_ID_URL="https://{url}/templates/rocos-provisioning-templates/exec/{templateId}",t.API_TEMPLATE_EXPORTER_URL="https://{url}/templates/project-stream-data-exporter",t.API_SOURCE_SCHEMA_URL="https://{url}/sourceschemas",t.API_SOURCE_URL="https://{url}/sources",t.API_SOURCE_ID_URL="https://{url}/sources/{sourceId}",t.API_PROJECT_SCHEDULES_URL="https://{url}/projects/{projectId}/robots/{callsign}/schedules",t.API_SPOTTY_URL="https://{url}/spotty",t.API_DD_INTEGRATION_PLANS_URL="https://{url}/projects/{projectId}/dd/plans",t.API_DD_INTEGRATION_PLAN_BY_ID_URL="https://{url}/projects/{projectId}/dd/plan/{planId}",t.API_DD_INTEGRATION_OVERLAYS_URL="https://{url}/projects/{projectId}/dd/overlays",t.API_DD_INTEGRATION_ISSUES_URL="https://{url}/projects/{projectId}/dd/issues",t.API_MAPS_URL="https://{url}/projects/{projectId}/maps",t.API_MAPS_INIT_DB_URL="https://{url}/projects/{projectId}/maps/init-db",t.API_MAPS_MERGE_URL="https://{url}/projects/{projectId}/maps/merge",t.API_MAP_ID_URL="https://{url}/projects/{projectId}/maps/{mapId}",t.API_MAPS_COPY_URL="https://{url}/projects/{projectId}/maps/{mapId}/copy"},8838:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GRPC_SOURCE_VIDEO=t.GRPC_SOURCE_HEARTBEAT=t.GRPC_SOURCE_NOOP=t.GRPC_SOURCE_SOURCES=t.GRPC_SOURCE_SUBSCRIBED=void 0,t.GRPC_SOURCE_SUBSCRIBED="/rocos/agent/telemetry/subscribed",t.GRPC_SOURCE_SOURCES="/rocos/agent/telemetry/sources",t.GRPC_SOURCE_NOOP="/rocos/agent/telemetry/noop",t.GRPC_SOURCE_HEARTBEAT="/rocos/agent/telemetry/heartbeat",t.GRPC_SOURCE_VIDEO="/video/camera"},3360:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDENTIFIER_NAME_FILE_ACCESSOR=t.IDENTIFIER_NAME_SEARCH=t.IDENTIFIER_NAME_CONTROL=t.IDENTIFIER_NAME_COMMAND=t.IDENTIFIER_NAME_CALLER=t.IDENTIFIER_NAME_TELEMETRY=void 0,t.IDENTIFIER_NAME_TELEMETRY="telemetry",t.IDENTIFIER_NAME_CALLER="caller",t.IDENTIFIER_NAME_COMMAND="command",t.IDENTIFIER_NAME_CONTROL="control",t.IDENTIFIER_NAME_SEARCH="search",t.IDENTIFIER_NAME_FILE_ACCESSOR="fileAccessor"},8326:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timezoneData=void 0,t.timezoneData=["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Fort_Nelson","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Inuvik","America/Iqaluit","America/Jamaica","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Velho","America/Puerto_Rico","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Chita","Asia/Choibalsan","Asia/Colombo","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kathmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qyzylorda","Asia/Riyadh","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faroe","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/Perth","Australia/Sydney","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Johnston","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Wake","Pacific/Wallis","UTC"]},8246:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayRemove=void 0,t.arrayRemove=(e,t)=>null==e?void 0:e.filter((e=>-1===t.indexOf(e)))},4124:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayUnique=void 0,t.arrayUnique=e=>null==e?void 0:e.filter(((e,t,r)=>r.indexOf(e)===t))},8163:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.average=void 0,t.average=e=>e.reduce(((e,t)=>e+t),0)/e.length},8112:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cleanObject=void 0,t.cleanObject=e=>Object.assign({},function e(t){return[...Object.entries(t)].reduce(((t,[r,o])=>("object"==typeof o?t[r]=e(o):"function"==typeof o?delete t[r]:t[r]=o,t)),Array.isArray(t)?[]:{})}(e))},9270:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenCallsignsLookup=void 0,t.flattenCallsignsLookup=e=>e.lookupValue?e.toID():e.sort()},6574:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatServiceUrl=void 0,t.formatServiceUrl=(e,t,r=!1)=>{let o=r?e.replace("https:","http:"):e;for(const e of Object.keys(t))o=o.replace(`{${e}}`,t[e]);return o}},7994:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateUUID=void 0;const o=r(1614);t.generateUUID=()=>o.v4()},4050:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSubscriptionsDifference=void 0;const o=r(8246);t.getSubscriptionsDifference=(e,t)=>{const r=Object.assign({},e),i=Object.assign({},t);return Object.keys(e).forEach((e=>{t[e]&&(r[e]=o.arrayRemove(r[e],t[e]),r[e].length||delete r[e])})),Object.keys(t).forEach((t=>{e[t]&&(i[t]=o.arrayRemove(i[t],e[t]),i[t].length||delete i[t])})),{toRemove:{callsigns:Object.keys(r),sources:Object.values(r).reduce(((e,t)=>e.concat(t)),[])},toAdd:{callsigns:Object.keys(i),sources:Object.values(i).reduce(((e,t)=>e.concat(t)),[])}}}},5791:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUniqueConfigKey=void 0,t.getUniqueConfigKey=e=>Object.keys(e).sort().map((t=>"token"!==t&&`${t}:${e[t]}`)).filter(Boolean).join()},761:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUniqueId=void 0;const o=r(9270);t.getUniqueId=(e,t,r,i)=>[e,...o.flattenCallsignsLookup(t),...r.sort(),i].join()},6636:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUnixTimeMs=void 0,t.getUnixTimeMs=(e,t=new Date)=>new Date(t.getTime()+e).getTime()},9489:function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(7994),t),i(r(8163),t),i(r(3233),t)},6452:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nanosecondToMillisecond=void 0,t.nanosecondToMillisecond=e=>e/1e6},4711:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomString=void 0,t.randomString=()=>Math.random().toString(16).substr(2)},3233:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.standardDeviation=void 0;const o=r(8163);t.standardDeviation=e=>{const t=o.average(e),r=e.map((e=>{const r=e-t;return r*r})),i=o.average(r);return Math.sqrt(i)}},779:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToUint8Array=void 0;const o=r(8764);t.stringToUint8Array=e=>{e=e||"";const t=new o.Buffer(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t[e];return r}},1811:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint8ArrayToString=void 0,t.uint8ArrayToString=e=>{if(!e)return"";const t=[];return null==e||e.forEach((e=>{t.push(String.fromCharCode(e))})),t.join("")}},3607:function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(8838),t),i(r(8326),t),i(r(9489),t),i(r(7554),t),i(r(1999),t),i(r(7768),t),i(r(1587),t)},9:function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&o(t,e,r);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RocosLogger=void 0;const a=n(r(7987)),u=s(r(2043));u.default.setDefaultLevel("silent"),a.reg(u.default),a.apply(u.default,{format:(e,t,r)=>`[${r}] ${e.toUpperCase()} ${t}:`}),t.RocosLogger=class{static getInstance(e){if(e){const t=u.default.getLogger(e);return t.setLevel(u.default.getLevel()),t}return u.default}static enableAll(){u.default.enableAll();for(const e in u.default.getLoggers())u.default.getLogger(e).enableAll()}static disableAll(){u.default.disableAll();for(const e in u.default.getLoggers())u.default.getLogger(e).disableAll()}static setLevel(e){u.default.setLevel(e);for(const e in u.default.getLoggers())u.default.getLogger(e).setLevel(u.default.getLevel())}}},4178:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExportDataQuery=void 0,t.ExportDataQuery=class{constructor(e){this.filters=[],Object.assign(this,e)}toJSON(){return{startDate:this.startDate?this.startDate.getTime():null,endDate:this.endDate?this.endDate.getTime():null,filters:this.filters}}}},4885:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1741:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3832:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1299:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1617:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},222:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3773:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5025:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6722:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},778:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},167:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5421:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2386:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5195:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2329:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},650:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7918:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5388:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3613:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8870:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2296:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2308:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1825:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1214:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4353:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6624:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9009:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseLevelEnum=void 0,(r=t.ResponseLevelEnum||(t.ResponseLevelEnum={}))[r.ALL=0]="ALL",r[r.RETURN_AND_RESULT=1]="RETURN_AND_RESULT",r[r.RESULT_ONLY=2]="RESULT_ONLY",r[r.NONE=3]="NONE"},5378:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Robot=void 0,t.Robot=class{constructor(e){this.disabled=!1,this.imageId="",this.mode="physical",Object.assign(this,e)}}},8264:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RobotConfig=void 0,t.RobotConfig=class{constructor(e){Object.assign(this,e)}}},362:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RobotPlugin=void 0,t.RobotPlugin=class{constructor(e){Object.assign(this,e)}}},9260:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RobotTemplate=void 0;const o=r(8264),i=r(362);t.RobotTemplate=class{constructor(e){var t,r,n;this.parameters=[],this.plugins=[],Object.assign(this,e),(null==e?void 0:e.parameters)&&(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.length)>0&&(this.parameters=e.parameters.map((e=>new o.RobotConfig(e))));try{this.metaData=JSON.parse(null==e?void 0:e.metaData),(null===(n=null===(r=null==this?void 0:this.metaData)||void 0===r?void 0:r.plugins)||void 0===n?void 0:n.length)>0&&(this.plugins=this.metaData.plugins.map((e=>new i.RobotPlugin(e))))}catch(e){this.metaData={}}}}},3585:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RocosError=t.errorCodes=void 0,t.errorCodes={SKD_ERROR:"SKD_ERROR",AUTH_ERROR:"AUTH_ERROR",ROBOT_SERVICE_ERROR:"ROBOT_SERVICE_ERROR",SPOT_SERVICE_ERROR:"SPOT_SERVICE_ERROR",STREAM_LISTENER_ERROR:"STREAM_LISTENER_ERROR",TELEMETRY_ERROR:"TELEMETRY_ERROR",TELEMETRY_STREAM_ERROR:"TELEMETRY_STREAM_ERROR",TELEMETRY_SERVICE_ERROR:"TELEMETRY_SERVICE_ERROR",EVENT_SERVICE_ERROR:"EVENT_SERVICE_ERROR",PROJECT_SERVICE_ERROR:"PROJECT_SERVICE_ERROR",DASHBOARD_SERVICE_ERROR:"PROJECT_SERVICE_ERROR",USER_SERVICE_ERROR:"USER_SERVICE_ERROR",ACCOUNT_SERVICE_ERROR:"ACCOUNT_SERVICE_ERROR",TIME_SYNCER_SERVICE_ERROR:"TIME_SYNCER_SERVICE_ERROR",CONFIG_GROUP_SERVICE_ERROR:"CONFIG_GROUP_SERVICE_ERROR",FUNCTION_SERVICE_ERROR:"FUNCTION_SERVICE_ERROR",STREAM_SERVICE_ERROR:"STREAM_SERVICE_ERROR",WORKFLOW_SERVICE_ERROR:"WORKFLOW_SERVICE_ERROR",ASSET_STORAGE_SERVICE_ERROR:"ASSET_STORAGE_SERVICE_ERROR",PROFILE_SERVICE_ERROR:"PROFILE_SERVICE_ERROR",SCHEDULE_SERVICE_ERROR:"SCHEDULE_SERVICE_ERROR",INTEGRATIONS_SERVICE_ERROR:"INTEGRATIONS_SERVICE_ERROR",MAPS_SERVICE_ERROR:"MAPS_SERVICE_ERROR"};class r extends Error{constructor(e,t,r){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(e),this.code=t,this.statusCode=r}}t.RocosError=r},7014:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.ServiceEnum=void 0,(r=t.ServiceEnum||(t.ServiceEnum={})).AUTH="auth",r.TELEMETRY="telemetry",r.ROBOT="robot",r.EVENT="event",r.PROJECT="project",r.CALLER="caller",r.COMMAND="command",r.CONTROL="control",r.SEARCH="search",r.CONFIG_GROUP="config_group",r.DASHBOARD="dashboard",r.FUNCTION="function",r.STREAM="stream",r.USER="user",r.TIME_SYNCER="time_syncer",r.WORKFLOW="workflow",r.ASSET_STORAGE="asset_storage",r.PROFILE="profile",r.WEBRTC_SIGNALLING="webrtc_signalling",r.FILE_ACCESSOR="file_accessor",r.SCHEDULE="schedule",r.SPOT_PROVISIONER="spot_provisioner",r.INTEGRATION="integration",r.MAP="map"},6771:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Stream=void 0;const o=r(6106);t.Stream=class{constructor(e){Object.assign(this,e),(null==e?void 0:e.data)&&(this.data=e.data.map((e=>new o.StreamSource(e))))}}},7723:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StreamOptions=void 0;class r{constructor(){this.autoResubscribeEnabled=!1,this.autoResubscribeMessageLimit=100,this.autoResubscribeMinimumTime=10,this.messageTimeoutInSec=10,this.autoAcknowledgmentEnabled=!0}static fromModel(e){const t=new r;return e&&(void 0!==e.autoResubscribeEnabled&&(t.autoResubscribeEnabled=e.autoResubscribeEnabled),void 0!==e.autoResubscribeMessageLimit&&(t.autoResubscribeMessageLimit=e.autoResubscribeMessageLimit),void 0!==e.autoResubscribeMinimumTime&&(t.autoResubscribeMinimumTime=e.autoResubscribeMinimumTime),void 0!==e.messageTimeoutInSec&&(t.messageTimeoutInSec=e.messageTimeoutInSec),void 0!==e.autoAcknowledgmentEnabled&&(t.autoAcknowledgmentEnabled=e.autoAcknowledgmentEnabled)),t}}t.StreamOptions=r},6106:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StreamSource=void 0,t.StreamSource=class{constructor(e){Object.assign(this,e),(null==e?void 0:e.sourceId)||(this.sourceId=""),(null==e?void 0:e.dataId)||(this.dataId="")}}},2189:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SubscriberStatusEnum=void 0,(r=t.SubscriberStatusEnum||(t.SubscriberStatusEnum={})).STOPPED="stopped",r.ALIVE="alive",r.DEAD="dead",r.ERROR="error"},86:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Token=void 0,t.Token=class{constructor(e){var t,r;Object.assign(this,e),this.created=null!==(t=null==e?void 0:e.created)&&void 0!==t?t:(new Date).toString(),this.expiresIn=null!==(r=null==e?void 0:e.expiresIn)&&void 0!==r?r:864e5}isExpired(){return new Date(this.created).getMilliseconds()<(new Date).getMilliseconds()-this.expiresIn}}},7625:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Widget=void 0;const o=r(1310);t.Widget=class{constructor(e){Object.assign(this,e),(null==e?void 0:e.lineGroups)&&(this.lineGroups=e.lineGroups.map((e=>new o.WidgetLineGroup(e))))}}},1310:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetLineGroup=void 0,t.WidgetLineGroup=class{constructor(e){Object.assign(this,e)}}},9598:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3871:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6755:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7102:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2945:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6482:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3172:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9745:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4433:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},55:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RocosCallerResultStatus=void 0;var o=r(9743);Object.defineProperty(t,"RocosCallerResultStatus",{enumerable:!0,get:function(){return o.ResultStatus}})},8604:(e,t)=>{"use strict";var r,o,i,n;Object.defineProperty(t,"__esModule",{value:!0}),t.CallsignsComparisonOperation=t.CallsignsQueryPredicateAttribute=t.CallsignsLogicalOperation=t.CallsignsLookupType=void 0,(n=t.CallsignsLookupType||(t.CallsignsLookupType={}))[n.Query=0]="Query",n[n.List=1]="List",(i=t.CallsignsLogicalOperation||(t.CallsignsLogicalOperation={}))[i.Or=0]="Or",(o=t.CallsignsQueryPredicateAttribute||(t.CallsignsQueryPredicateAttribute={}))[o.Tag=0]="Tag",(r=t.CallsignsComparisonOperation||(t.CallsignsComparisonOperation={}))[r.Equal=0]="Equal"},7795:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CallsignsLookup=void 0;const o=r(8604),i=r(6819),n=r(4124);t.CallsignsLookup=class{constructor(e){e instanceof i.CallsignsQuery?(this.lookupType=o.CallsignsLookupType.Query,this.lookupValue=e):(this.lookupType=o.CallsignsLookupType.List,this.lookupValue=e?n.arrayUnique(e).map((e=>e.trim())):[])}toID(){var e;return this.lookupType===o.CallsignsLookupType.List?this.lookupValue.sort():[null===(e=this.lookupValue)||void 0===e?void 0:e.toJSONString()]}}},6819:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CallsignsQuery=void 0,t.CallsignsQuery=class{constructor(e){Object.assign(this,e)}toJSON(){return{operation:this.operation,predicates:this.predicates.map((e=>e.toJSON()))}}toJSONString(){return JSON.stringify(this.toJSON())}}},6181:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CallsignsQueryPredicate=void 0,t.CallsignsQueryPredicate=class{constructor(e){Object.assign(this,e)}toJSON(){return{attribute:this.attribute,operation:this.operation,value:this.value}}toJSONString(){return JSON.stringify(this.toJSON())}}},5844:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1754:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5821:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RocosCommandResultStatus=void 0;var o=r(1363);Object.defineProperty(t,"RocosCommandResultStatus",{enumerable:!0,get:function(){return o.ResultStatus}})},1014:(e,t)=>{"use strict";var r,o,i;Object.defineProperty(t,"__esModule",{value:!0}),t.OpRequestTarget=t.FileResourceType=t.OpCode=void 0,(i=t.OpCode||(t.OpCode={}))[i.NOP=0]="NOP",i[i.INFO=1]="INFO",i[i.UPLOAD=2]="UPLOAD",i[i.DOWNLOAD=3]="DOWNLOAD",i[i.DELETE=4]="DELETE",i[i.MKDIR=5]="MKDIR",i[i.READFILE=6]="READFILE",i[i.WAITFOR=7]="WAITFOR",i[i.WRITEFILE=8]="WRITEFILE",i[i.MV=9]="MV",i[i.CP=10]="CP",i[i.CHMOD=11]="CHMOD",i[i.CHOWN=12]="CHOWN",i[i.P2PUP=13]="P2PUP",i[i.P2PDN=14]="P2PDN",i[i.BLOBPUT=15]="BLOBPUT",i[i.BLOBGET=16]="BLOBGET",i[i.BLOBSAS=17]="BLOBSAS",(o=t.FileResourceType||(t.FileResourceType={}))[o.NONE=0]="NONE",o[o.DIRINFO=1]="DIRINFO",o[o.FILE=2]="FILE",o[o.SAS=32]="SAS",(r=t.OpRequestTarget||(t.OpRequestTarget={}))[r.AGENT=0]="AGENT",r[r.SERVER=1]="SERVER"},7554:function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(9598),t),i(r(4789),t),i(r(7321),t),i(r(4371),t),i(r(3871),t),i(r(6755),t),i(r(7102),t),i(r(2945),t),i(r(6482),t),i(r(3172),t),i(r(4433),t),i(r(9745),t),i(r(55),t),i(r(8604),t),i(r(7795),t),i(r(6819),t),i(r(6181),t),i(r(5844),t),i(r(1754),t),i(r(5821),t),i(r(1014),t),i(r(3850),t),i(r(8314),t),i(r(6225),t),i(r(7740),t),i(r(9434),t),i(r(6401),t),i(r(1817),t),i(r(5327),t),i(r(6061),t),i(r(2675),t),i(r(4298),t),i(r(7940),t),i(r(8469),t),i(r(1984),t),i(r(6916),t),i(r(8007),t),i(r(9510),t),i(r(2443),t),i(r(297),t),i(r(7704),t),i(r(9622),t),i(r(2234),t),i(r(3971),t),i(r(5499),t),i(r(7341),t),i(r(9909),t),i(r(4029),t),i(r(5869),t),i(r(7415),t),i(r(6577),t),i(r(3623),t),i(r(683),t),i(r(4309),t),i(r(7263),t),i(r(5792),t),i(r(7475),t),i(r(5804),t),i(r(1761),t),i(r(4178),t),i(r(4885),t),i(r(1741),t),i(r(3832),t),i(r(1299),t),i(r(1617),t),i(r(222),t),i(r(3773),t),i(r(5025),t),i(r(6722),t),i(r(778),t),i(r(167),t),i(r(5421),t),i(r(2386),t),i(r(5195),t),i(r(2329),t),i(r(650),t),i(r(7918),t),i(r(5388),t),i(r(3613),t),i(r(8870),t),i(r(2296),t),i(r(2308),t),i(r(1825),t),i(r(1214),t),i(r(4353),t),i(r(6624),t),i(r(9009),t),i(r(5378),t),i(r(8264),t),i(r(362),t),i(r(9260),t),i(r(3585),t),i(r(7014),t),i(r(6771),t),i(r(7723),t),i(r(6106),t),i(r(2189),t),i(r(86),t),i(r(3244),t),i(r(7625),t),i(r(1310),t)},5792:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7475:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5804:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3850:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8314:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6225:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7740:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9434:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6401:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1817:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5327:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6061:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2675:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4298:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RocosCallerMessage=void 0;class r{constructor(e){Object.assign(this,e)}static fromModel(e){const t=new r,o=e.toObject();return o.chunks&&(t.chunks=o.chunks),o.heartbeat&&(t.heartbeat=o.heartbeat),o.responses&&(t.responses=o.responses),t}}t.RocosCallerMessage=r},7940:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RocosCommandMessage=void 0;class r{constructor(e){Object.assign(this,e)}static fromModel(e){const t=new r,o=e.toObject();return t.heartbeat=o.heartbeat,t.response=o.commandresponse,t}}t.RocosCommandMessage=r},8469:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RocosControlMessage=void 0;class r{constructor(e){Object.assign(this,e)}static fromMessage(e){const t=new r;return t.success=e.getSuccess(),t.stage=e.getStage(),t.message=e.getMessage(),t.txid=e.getTxid(),t.seq=e.getSeq(),t}}t.RocosControlMessage=r},1984:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RocosOpResultMessage=void 0;class r{static fromMessages(e){return e.getResultsList().map((e=>r.fromMessage(e)))}static fromMessage(e){const t=new r,o=e.getResult();return o&&(t.path=o.getPath(),t.data=o.getData(),t.type=o.getType()),t}}t.RocosOpResultMessage=r},6916:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RocosSearchMessage=void 0;const o=r(8007);class i{constructor(e){Object.assign(this,e)}static fromMessage(e){const t=new i,r=e.getDate(),n=e.getRowList();return t.date=+r?new Date(+r):new Date(r.replace(" ","T")),t.rows=n.map((e=>o.RocosSearchRowMessage.fromMessage(e))),t}}t.RocosSearchMessage=i},8007:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RocosSearchRowMessage=void 0;class r{constructor(e){Object.assign(this,e)}static fromMessage(e){const t=new r;return t.key=e.getKey(),t.count=e.getCount(),t.avgSize=e.getAvgsize(),t.totalSize=e.getTotalsize(),t.payload=e.getPayload(),t.transPerSecond=e.getTranspersecond(),t.bytesPerSecond=e.getBytespersecond(),t}}t.RocosSearchRowMessage=r},9510:function(e,t,r){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RocosTelemetryMessage=void 0;const i=r(8838),n=o(r(2043)),s=r(6452),a=r(1811);class u{constructor(e){this.isackable=!1,this.hasHeartbeat=!1,this.isStreamMessage=!1,Object.assign(this,e)}static fromTelemetryMessage(e){const t={isackable:!1,hasHeartbeat:!1,isStreamMessage:!1};return t.callsign=e.getCallsign(),t.source=e.getSource(),t.payload=e.getPayload(),t.createdAt=new Date(s.nanosecondToMillisecond(e.getCreated())),t.uid=e.getUid(),t.seq=e.getSeq(),t.source===i.GRPC_SOURCE_HEARTBEAT&&(t.hasHeartbeat=!0),t}static fromTelemetryStreamMessage(e){const t={isStreamMessage:!0},{message:r,isackable:o}=e.toObject();return t.isackable=o,t.hasHeartbeat=e.hasHeartbeat(),(null==r?void 0:r.callsign)&&(t.callsign=null==r?void 0:r.callsign),(null==r?void 0:r.source)&&(t.source=null==r?void 0:r.source),(null==r?void 0:r.payload)&&(t.payload=null==r?void 0:r.payload),(null==r?void 0:r.created)&&(t.createdAt=new Date(s.nanosecondToMillisecond(r.created))),(null==r?void 0:r.uid)&&(t.uid=r.uid),(null==r?void 0:r.seq)&&(t.seq=r.seq),t}static getPayloadAsString(e){if(e.isStreamMessage)return e.payload?Buffer.from(e.payload.toString(),"base64").toString():"";try{return(new TextDecoder).decode(e.payload)}catch(t){return n.default.warn(t),a.uint8ArrayToString(e.payload)}}static getPayloadAsJSON(e){if(e.isStreamMessage)return e.payload?JSON.parse(Buffer.from(e.payload.toString(),"base64").toString()):void 0;try{return e.payload?JSON.parse((new TextDecoder).decode(e.payload)):void 0}catch(t){return n.default.warn(t),e.payload?JSON.parse(a.uint8ArrayToString(e.payload)):void 0}}static getPayloadByType(e){let t=null;switch(e.type){case"string":t=u.getPayloadAsString(e);break;case"json":t=u.getPayloadAsJSON(e);break;case"none":t="";break;default:t=e.payload}return t}}t.RocosTelemetryMessage=u},2443:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},297:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7704:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9622:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2234:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3971:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5499:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1761:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7321:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.ActionType=void 0,(r=t.ActionType||(t.ActionType={})).command="command",r.service="service",r.sendMessage="control"},4789:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4371:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7341:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SearchQueryFilter=void 0,t.SearchQueryFilter=class{constructor(e){Object.assign(this,e)}}},9909:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SearchStreamQuery=void 0,t.SearchStreamQuery=class{constructor(e){this.disableDateHistogram=!1,Object.assign(this,e)}}},4029:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5869:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7415:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6577:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3623:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},683:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4309:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7263:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IWebRTCSignallingOutcome=t.IWebRTCSignallingGetDetailsResponse=t.IWebRTCSignallingMessage=void 0;const o=r(1615);t.IWebRTCSignallingMessage=o.Message,t.IWebRTCSignallingGetDetailsResponse=o.GetDetailsResponse,t.IWebRTCSignallingOutcome=o.Outcome},3244:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3523:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AssetStorageService=void 0;const o=r(1112),i=r(3585),n=r(5918),s=r(9),a=r(6574);class u extends n.BaseServiceAbstract{constructor(e){super(e),this.logger=s.RocosLogger.getInstance(`AssetStorageService(${this.config.url})`)}getError(e){return new i.RocosError(e,i.errorCodes.ASSET_STORAGE_SERVICE_ERROR)}getStatus(){return!0}async create(e,t,r){const i=new FormData;return i.append("file",r),this.callPut(a.formatServiceUrl(o.API_PROJECT_ASSET_PATH_URL,{url:this.config.url,projectId:e,filePath:t},this.config.insecure),i,`Failed to create asset for ${e}, filePath ${t}.`)}async update(e,t,r){const i=new FormData;return i.append("file",r),this.callPost(a.formatServiceUrl(o.API_PROJECT_ASSET_PATH_URL,{url:this.config.url,projectId:e,filePath:t},this.config.insecure),i,`Failed to update asset for ${e}, filePath ${t}.`)}async delete(e,t){return this.callDelete(a.formatServiceUrl(o.API_PROJECT_ASSET_PATH_URL,{url:this.config.url,projectId:e,filePath:t},this.config.insecure),`Failed to delete asset for ${e}, filePath ${t}.`)}async list(e,t){let r="";return r=t?a.formatServiceUrl(o.API_PROJECT_ASSET_PATH_URL,{url:this.config.url,projectId:e,filePath:t},this.config.insecure):a.formatServiceUrl(o.API_PROJECT_ASSET_URL,{url:this.config.url,projectId:e},this.config.insecure),this.callGet(r,`Failed to get asset list for ${e}, filePath ${t}.`)}async getAsset(e,t){return this.callGet(a.formatServiceUrl(o.API_PROJECT_ASSET_PATH_URL,{url:this.config.url,projectId:e,filePath:t},this.config.insecure),`Failed to get asset for ${e}, filePath ${t}.`,void 0,{responseType:"blob"})}async listRobotAssets(e,t,r="/",i=!1){return this.callGet(a.formatServiceUrl(o.API_PROJECT_ROBOT_ASSET_PATH_URL,{url:this.config.url,projectId:e,callsign:t},this.config.insecure),`Failed to get asset for ${e}, callsign ${t}.`,{parent:r,signedURL:i})}async listFlowAssets(e,t,r,i="/",n=!1){return this.callGet(a.formatServiceUrl(o.API_PROJECT_FLOW_ASSET_PATH_URL,{url:this.config.url,projectId:e,flowId:t,flowInstance:r},this.config.insecure),`Failed to get asset for ${e}, flow ${t}, flow instance ${r}.`,{parent:i,signedURL:n})}setRobotSyncDefinitions(e,t,r){return this.callPost(a.formatServiceUrl(o.API_PROJECT_ASSET_ROBOTS_SYNC_DEFINITION_PATH_URL,{url:this.config.url,projectId:e,callsign:t},this.config.insecure),r,`Failed to update asset for ${e}, callsign ${t}.`,{headers:{"content-type":"application/json"}})}getRobotSyncDefinitions(e,t){return this.callGet(a.formatServiceUrl(o.API_PROJECT_ASSET_ROBOTS_SYNC_DEFINITION_PATH_URL,{url:this.config.url,projectId:e,callsign:t},this.config.insecure),`Failed to get asset for ${e}, callsign ${t}.`,void 0)}setProfileSyncDefinitions(e,t,r){return this.callPost(a.formatServiceUrl(o.API_PROJECT_ASSET_PROFILES_SYNC_DEFINITION_PATH_URL,{url:this.config.url,projectId:e,profileId:t},this.config.insecure),r,`Failed to update sync-definition for ${e}, callsign ${t}.`,{headers:{"content-type":"application/json"}})}getProfileSyncDefinition(e,t){return this.callGet(a.formatServiceUrl(o.API_PROJECT_ASSET_PROFILES_SYNC_DEFINITION_PATH_URL,{url:this.config.url,projectId:e,profileId:t},this.config.insecure),`Failed to get sync-definition for ${e}, callsign ${t}.`,void 0)}}t.AssetStorageService=u},7617:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AuthService=void 0;const o=r(1112),i=r(3585),n=r(5918),s=r(9),a=r(3918),u=r(86),l=r(6574);class p extends n.BaseServiceAbstract{constructor(e){super(e),this.config=e,this.config=e,this.logger=s.RocosLogger.getInstance(`AuthService(${this.config.url})`)}getStatus(){return!0}getError(e){return new i.RocosError(e,i.errorCodes.AUTH_ERROR,null==e?void 0:e.statusCode)}setToken(e,t){this.token=new u.Token({value:e,expiresIn:t}),this.config.token=this.token.value,a.RocosStore.getChangeSubject().next({type:"token",url:this.config.url,data:this.token.value})}clearToken(){this.token=void 0,this.config.token=void 0}async getAppToken(){if(!("appId"in this.config&&this.config.appId&&"appKey"in this.config&&this.config.appKey))throw new i.RocosError("Can not get app token, missing appId and appKey",i.errorCodes.AUTH_ERROR);const e=await this.callPost(l.formatServiceUrl(o.API_APPLICATION_AUTH_URL,{url:this.config.url},this.config.insecure),{applicationId:this.config.appId,secret:this.config.appKey},"Failed to get users auth token.",{public:!0});return new u.Token({value:e.token,expiresIn:e.expiresIn})}async getUserToken(){if(!("email"in this.config&&this.config.email&&"password"in this.config&&this.config.password))throw new i.RocosError("Can not get user token, missing email and password",i.errorCodes.AUTH_ERROR);try{const{token:e,expiresIn:t}=await this.login(this.config.email,this.config.password,this.config.invitationCode);return new u.Token({value:e,expiresIn:t})}catch(e){const t="Failed to get users auth token.";throw this.logger.error(t,e),e.message=t,new i.RocosError(e,i.errorCodes.AUTH_ERROR)}}async getNewUserToken(){if(!("token"in this.config))throw new i.RocosError("Can not get new app token, missing token",i.errorCodes.AUTH_ERROR);const e=await this.callGet(l.formatServiceUrl(o.API_USER_TOKEN_URL,{url:this.config.url},this.config.insecure),"Failed to get users auth token.",void 0,{public:!0,headers:{Authorization:`Bearer ${this.config.token}`}});return new u.Token({value:e.token})}async getToken(){if(this.token&&!this.token.isExpired())return this.token;try{if("appId"in this.config&&"appKey"in this.config)this.token=await this.getAppToken();else if("email"in this.config&&"password"in this.config)this.token=await this.getUserToken();else{if(!("token"in this.config))throw new Error("Config invalid");this.token=await this.getNewUserToken()}return this.config.token=this.token.value,a.RocosStore.getChangeSubject().next({type:"token",url:this.config.url,data:this.token.value}),this.token}catch(e){const t="Failed to get auth token.";throw this.logger.error(t,e),e.message=t,new i.RocosError(e,i.errorCodes.AUTH_ERROR)}}async login(e,t,r){return this.callPost(l.formatServiceUrl(o.API_USER_AUTH_URL,{url:this.config.url},this.config.insecure),{email:e,password:t,invitationCode:r},"Failed to login user.",{public:!0})}async signup(e){return this.callPost(l.formatServiceUrl(o.API_USER_URL,{url:this.config.url},this.config.insecure),e,"Failed to sign up user.",{public:!0})}async resetPassword(e){return this.callPost(l.formatServiceUrl(o.API_USER_PASSWORD_RESET_URL,{url:this.config.url},this.config.insecure),e,"Failed to reset password.",{public:!0})}}t.AuthService=p},5918:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseServiceAbstract=void 0;const o=r(3585),i=r(3918);class n extends Error{constructor(e){super(e.statusText),this.response=e,this.name="HttpError"}}t.BaseServiceAbstract=class{constructor(e){this.config=e}async callPost(e,t,r,o){return this.call(e,"POST",{errorMessage:r,payload:t,config:o})}async callPut(e,t,r,o){return this.call(e,"PUT",{errorMessage:r,payload:t,config:o})}async callDelete(e,t,r){return this.call(e,"DELETE",{errorMessage:t,payload:r})}async callGet(e,t,r,o){return this.call(e,"GET",{errorMessage:t,params:r,config:o})}async call(e,t,r){var s;const{errorMessage:a,config:u,payload:l,params:p}=r;try{const r=Object.entries(p||{}).reduce(((e,[t,r])=>(e[t]=r.toString(),e)),{}),o=p?`${e}?${new URLSearchParams(r)}`:e,n={};if(!(null==u?void 0:u.public)){const e=await i.RocosStore.getSDKInstance(this.config).getAuthService().getToken();n.Authorization=`Bearer ${e.value}`}const s={method:t,headers:Object.assign(Object.assign({},n),null==u?void 0:u.headers)};return"undefined"!=typeof FormData&&l instanceof FormData?s.body=l:l&&(s.body=JSON.stringify(l),s.headers=Object.assign(Object.assign({},s.headers),{"Content-Type":"application/json"})),this.fetchOrThrow(o,s,null==u?void 0:u.responseType)}catch(e){const t=a;this.logger.error(t,e);let r=new o.RocosError(t);throw e instanceof n&&(r=this.getError(e),r.statusCode=null===(s=null==e?void 0:e.response)||void 0===s?void 0:s.status),i.RocosStore.getChangeSubject().next({type:"http-error",url:this.config.url,data:r}),r}}async fetchOrThrow(e,t,r){this.logger.debug("Fetching",{url:e,config:t});const o=await fetch(e,t);if(!o.ok){const e=await o.text();throw this.logger.warn("Failed HTTP Response",{status:o.statusText,payload:e,response:o}),new n(o)}switch(r){case"raw":return o;case"stream":return o.body;case"blob":return o.blob();case"text":return o.text();default:{const e=await o.text();if(!(null==e?void 0:e.trim()))return;try{return JSON.parse(e)}catch(t){return this.logger.error("Failed to parse JSON from response",{textRes:e}),e}}}}}},8629:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CallerService=void 0;const o=r(2872),i=r(5462),n=r(3360),s=r(9),a=r(3918),u=r(7785),l=r(2189),p=r(4857);t.CallerService=class{constructor(e){this.status=!1,this.status$=new o.Subject,this.config=e,this.logger=s.RocosLogger.getInstance(`CallerService(${this.config.url})`)}getStatus(){return this.status}invokeRequest(e){const t=new o.Subject;let r;return this.createStream().then((o=>{r=o.invokeRequest(e).subscribe(t)})).catch((e=>{this.logger.info("invokeRequest error",e),t.error(e)})),t.asObservable().pipe(p.finalize((()=>{null==r||r.unsubscribe()})))}cancelRequest(e){const t=new o.Subject;let r;return this.createStream().then((o=>{r=o.cancelRequest(e).subscribe(t)})).catch((e=>{this.logger.info("invokeRequest error",e),t.error(e)})),t.asObservable().pipe(p.finalize((()=>{null==r||r.unsubscribe()})))}async createStream(){const e="default",t=u.StreamRegister.getIdentifier(n.IDENTIFIER_NAME_CALLER,e),r=u.StreamRegister.getInstance();let o=r.getStream(t);return o||(o=this.getStream({url:this.config.url,token:this.config.token,scope:e,options:this.config.options,port:this.config.port,insecure:this.config.insecure}),o.statusStream$.subscribe((e=>{this.status=e===l.SubscriberStatusEnum.STOPPED||e===l.SubscriberStatusEnum.ALIVE,this.status$.next(e)})),await r.addStream(o),await this.initStream(o)),o}async initStream(e){if(!this.config.token)try{const t=a.RocosStore.getSDKInstance(this.config).getAuthService(),r=await t.getToken();(null==r?void 0:r.value)&&(this.config.token=null==r?void 0:r.value,e.setToken(this.config.token))}catch(e){this.logger.info("Can not retrieve auth token",e)}}getStream(e){return new i.CallerStream(e)}}},5924:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CommandService=void 0;const o=r(2872),i=r(5341),n=r(3360),s=r(9),a=r(3918),u=r(7785),l=r(2189),p=r(4857);t.CommandService=class{constructor(e){this.status=!1,this.status$=new o.Subject,this.config=e,this.logger=s.RocosLogger.getInstance(`CommandService(${this.config.url})`)}getStatus(){return this.status}invokeRequest(e){const t=new o.Subject;let r;return this.createStream().then((o=>{r=o.invokeRequest(e).subscribe(t)})).catch((e=>{this.logger.info("invokeRequest error",e),t.error(e)})),t.asObservable().pipe(p.finalize((()=>{null==r||r.unsubscribe()})))}async createStream(){const e="default",t=u.StreamRegister.getIdentifier(n.IDENTIFIER_NAME_COMMAND,e),r=u.StreamRegister.getInstance();let o=r.getStream(t);return o||(o=this.getStream({url:this.config.url,token:this.config.token,scope:e,options:this.config.options,port:this.config.port,insecure:this.config.insecure}),o.statusStream$.subscribe((e=>{this.status=e===l.SubscriberStatusEnum.STOPPED||e===l.SubscriberStatusEnum.ALIVE,this.status$.next(e)})),await r.addStream(o),await this.initStream(o)),o}async initStream(e){if(!this.config.token)try{const t=a.RocosStore.getSDKInstance(this.config).getAuthService(),r=await t.getToken();(null==r?void 0:r.value)&&(this.config.token=null==r?void 0:r.value,e.setToken(this.config.token))}catch(e){this.logger.info("Can not retrieve auth token",e)}}getStream(e){return new i.CommandStream(e)}}},2978:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigGroupService=void 0;const o=r(1112),i=r(3585),n=r(5918),s=r(9),a=r(6574);class u extends n.BaseServiceAbstract{constructor(e){super(e),this.logger=s.RocosLogger.getInstance(`ConfigGroupService(${this.config.url})`)}getError(e){return new i.RocosError(e,i.errorCodes.CONFIG_GROUP_SERVICE_ERROR)}getStatus(){return!0}async create(e,t,r){return this.callPost(a.formatServiceUrl(o.API_PROJECT_GROUP_TYPE_URL,{url:this.config.url,projectId:e,type:t},this.config.insecure),r,`Failed to create config group for ${e}, type ${t}.`)}async list(e,t){return this.callGet(a.formatServiceUrl(o.API_PROJECT_GROUP_TYPE_URL,{url:this.config.url,projectId:e,type:t},this.config.insecure),`Failed to get config group list for ${e}, type ${t}.`)}async update(e,t,r,i){return this.callPut(a.formatServiceUrl(o.API_PROJECT_GROUP_TYPE_ID_URL,{url:this.config.url,projectId:e,type:t,configGroupId:r},this.config.insecure),i,`Failed to update config group for ${e}, type ${t}, configGroupId ${r}.`)}async info(e,t,r){return this.callGet(a.formatServiceUrl(o.API_PROJECT_GROUP_TYPE_ID_URL,{url:this.config.url,projectId:e,type:t,configGroupId:r},this.config.insecure),`Failed to get config group for ${e}, type ${t}, configGroupId ${r}.`)}async publish(e,t,r,i){return this.callPost(a.formatServiceUrl(o.API_PROJECT_GROUP_TYPE_PUBLISH_URL,{url:this.config.url,projectId:e,type:t,configGroupId:r},this.config.insecure),i,`Failed to publish config group for ${e}, type ${t}, configGroupId ${r}.`)}async updateConfig(e,t,r,i,n){return this.callPut(a.formatServiceUrl(o.API_PROJECT_GROUP_TYPE_CONFIG_URL,{url:this.config.url,projectId:e,type:t,configGroupId:r,configId:i},this.config.insecure),n,`Failed to update config for ${e}, type ${t}, configGroupId ${r}, configId ${i}.`)}async getByVersion(e,t,r,i){return this.callGet(a.formatServiceUrl(o.API_PROJECT_GROUP_TYPE_VERSION_URL,{url:this.config.url,projectId:e,type:t,configGroupId:r,version:i},this.config.insecure),`Failed to get config group for ${e}, type ${t}, configGroupId ${r}, version ${i}.`)}async overrideByOwnerId(e,t,r,i,n){return this.callPost(a.formatServiceUrl(o.API_PROJECT_GROUP_TYPE_OWNER_OVERRIDE_URL,{url:this.config.url,projectId:e,type:t,configGroupId:r,ownerId:i},this.config.insecure),n,`Failed to override for ${e}, type ${t}, configGroupId ${r}, ownerId ${i}.`)}async getOverrideConfig(e,t,r,i){return this.callGet(a.formatServiceUrl(o.API_PROJECT_GROUP_TYPE_OWNER_ID_URL,{url:this.config.url,projectId:e,type:t,configGroupId:r,ownerId:i},this.config.insecure),`Failed to get override for ${e}, type ${t}, configGroupId ${r}, ownerId ${i}.`)}}t.ConfigGroupService=u},7630:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlService=void 0;const o=r(2872),i=r(8581),n=r(3360),s=r(9),a=r(3918),u=r(7785),l=r(2189),p=r(4857);t.ControlService=class{constructor(e){this.status=!1,this.status$=new o.Subject,this.config=e,this.logger=s.RocosLogger.getInstance(`ControlService(${this.config.url})`)}getStatus(){return this.status}takeActionWithAck(e,t,r=15){const i=new o.Subject;let n;return this.createStream().then((o=>{n=o.takeActionWithAck(e,t,r).subscribe(i)})).catch((e=>{this.logger.info("takeActionWithAck error",e),i.error(e)})),i.asObservable().pipe(p.finalize((()=>{null==n||n.unsubscribe()})))}async sendCommand(e){return(await this.createStream()).sendCommand(e)}sendCommandWithAck(e){const t=new o.Subject;let r;return this.createStream().then((o=>{r=o.sendCommandWithAck(e).subscribe(t)})).catch((e=>{this.logger.info("sendCommandWithAck error",e),t.error(e)})),t.asObservable().pipe(p.finalize((()=>{null==r||r.unsubscribe()})))}async createStream(){const e="default",t=u.StreamRegister.getIdentifier(n.IDENTIFIER_NAME_CONTROL,e),r=u.StreamRegister.getInstance();let o=r.getStream(t);return o||(o=this.getStream({url:this.config.url,token:this.config.token,scope:e,options:this.config.options,port:this.config.port,insecure:this.config.insecure}),o.statusStream$.subscribe((e=>{this.status=e===l.SubscriberStatusEnum.STOPPED||e===l.SubscriberStatusEnum.ALIVE,this.status$.next(e)})),await r.addStream(o),await this.initStream(o)),o}async initStream(e){if(!this.config.token)try{const t=a.RocosStore.getSDKInstance(this.config).getAuthService(),r=await t.getToken();(null==r?void 0:r.value)&&(this.config.token=null==r?void 0:r.value,e.setToken(this.config.token))}catch(e){this.logger.info("Can not retrieve auth token",e)}}getStream(e){return new i.ControlStream(e)}}},2639:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DashboardService=void 0;const o=r(1112),i=r(3585),n=r(5918),s=r(9),a=r(6574);class u extends n.BaseServiceAbstract{constructor(e){super(e),this.logger=s.RocosLogger.getInstance(`DashboardService(${this.config.url})`)}getError(e){return new i.RocosError(e,i.errorCodes.DASHBOARD_SERVICE_ERROR)}getStatus(){return!0}async info(e,t){return this.callGet(a.formatServiceUrl(o.API_PROJECT_DASHBOARD_ID_URL,{url:this.config.url,projectId:e,dashboardId:t},this.config.insecure),`Failed to get project dashboard for ${e}, dashboardId ${t}.`)}async createWidget(e,t,r){return this.callPut(a.formatServiceUrl(o.API_PROJECT_DASHBOARD_WIDGET_URL,{url:this.config.url,projectId:e,dashboardId:t},this.config.insecure),r,`Failed to create widget for ${e}, dashboardId ${t}.`)}async deleteWidgets(e,t,r){return this.callDelete(a.formatServiceUrl(o.API_PROJECT_DASHBOARD_WIDGET_URL,{url:this.config.url,projectId:e,dashboardId:t},this.config.insecure),`Failed to delete widgets for ${e}, dashboardId ${t}.`,r)}async getDocs(e,t){return this.callGet(a.formatServiceUrl(o.API_PROJECT_COLLECTION_ID_URL,{url:this.config.url,projectId:e,collectionId:t},this.config.insecure),`Failed to get doc collection for ${e}, collectionId ${t}.`)}async createDoc(e,t,r){return this.callPut(a.formatServiceUrl(o.API_PROJECT_COLLECTION_DOCS_URL,{url:this.config.url,projectId:e,collectionId:t},this.config.insecure),r,`Failed to create doc for ${e}, collectionId ${t}.`)}async deleteDocs(e,t,r){return this.callDelete(a.formatServiceUrl(o.API_PROJECT_COLLECTION_DOCS_URL,{url:this.config.url,projectId:e,collectionId:t},this.config.insecure),`Failed to delete docs for ${e}, collectionId ${t}.`,r)}async createProjectDashboard(e){return this.callPost(a.formatServiceUrl(o.API_PROJECT_DASHBOARD_URL,{url:this.config.url,projectId:e},this.config.insecure),[],`Failed to create dashboard for ${e}.`)}async updateProjectDashboard(e,t,r){return this.callPut(a.formatServiceUrl(o.API_PROJECT_DASHBOARD_ID_URL,{url:this.config.url,projectId:e,dashboardId:t},this.config.insecure),r,`Failed to update dashboard for ${e}.`)}async deleteProjectDashboard(e,t){return this.callDelete(a.formatServiceUrl(o.API_PROJECT_DASHBOARD_ID_URL,{url:this.config.url,projectId:e,dashboardId:t},this.config.insecure),`Failed to delete dashboard for ${e}, dashboardId ${t}.`)}async getProjectDashboard(e,t){return this.callGet(a.formatServiceUrl(o.API_PROJECT_DASHBOARD_ID_URL,{url:this.config.url,projectId:e,dashboardId:t},this.config.insecure),`Failed to get dashboard for ${e}, dashboardId ${t}.`)}async getProjectDashboardList(e){return this.callGet(a.formatServiceUrl(o.API_PROJECT_DASHBOARD_URL,{url:this.config.url,projectId:e},this.config.insecure),`Failed to get dashboards for ${e}.`)}async getProjectDashboardCustomWidget(e,t){return this.callGet(a.formatServiceUrl(o.API_PROJECT_DASHBOARD_CUSTOM_WIDGET_URL,{url:this.config.url,projectId:e,dashboardId:t},this.config.insecure),`Failed to get custom widgets for ${e}, dashboardId ${t}.`)}}t.DashboardService=u},6553:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventService=void 0;const o=r(1112),i=r(3585),n=r(5918),s=r(9),a=r(6574);class u extends n.BaseServiceAbstract{constructor(e){super(e),this.logger=s.RocosLogger.getInstance(`EventService(${this.config.url})`)}getError(e){return new i.RocosError(e,i.errorCodes.EVENT_SERVICE_ERROR)}getStatus(){return!0}async getDefinitions(e,t,r=0){return this.callGet(a.formatServiceUrl(o.API_PROJECT_ROBOT_EVENT_URL,{url:this.config.url,projectId:e,callsign:t},this.config.insecure),`Failed to get event definitions list for ${e}, callsign ${t}.`,{includeCounts:r})}async addDefinitions(e,t,r){return this.callPost(a.formatServiceUrl(o.API_PROJECT_ROBOT_EVENT_URL,{url:this.config.url,projectId:e,callsign:t},this.config.insecure),r,`Failed to add event definitions for ${e}, callsign ${t}.`)}async getHistory(e,t,r){return this.callGet(a.formatServiceUrl(o.API_PROJECT_ROBOT_EVENT_HISTORY_URL,{url:this.config.url,projectId:e,callsign:t,eventDefinitionId:r},this.config.insecure),`Failed to get event history for ${e}, callsign ${t}, eventDefinitionId ${r}.`)}async getDefinitionsForRobotDef(e,t){return this.callGet(a.formatServiceUrl(o.API_PROJECT_DEFINITION_EVENT_URL,{url:this.config.url,projectId:e,definitionId:t},this.config.insecure),`Failed to get event definitions list for ${e}, definitionId ${t}.`)}async addDefinitionsForRobotDef(e,t,r){return this.callPost(a.formatServiceUrl(o.API_PROJECT_DEFINITION_EVENT_URL,{url:this.config.url,projectId:e,definitionId:t},this.config.insecure),r,`Failed to update event definitions for ${e}, definitionId ${t}.`)}}t.EventService=u},2624:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileAccessorService=void 0;const o=r(1409),i=r(3360),n=r(9),s=r(3918),a=r(7785),u=r(2872),l=r(2189);t.FileAccessorService=class{constructor(e){this.status=!1,this.status$=new u.Subject,this.config=e,this.logger=n.RocosLogger.getInstance(`FileAccessorService(${this.config.url})`)}getStatus(){return this.status}async serverReqOp(e){return(await this.createStream()).serverReqOp(e)}async listFolder(e){return(await this.createStream()).listFolder(e)}async downloadFile(e){return(await this.createStream()).downloadFile(e)}async getDownloadFileLinkByUsingBlob(e){return(await this.createStream()).getDownloadFileLinkByUsingBlob(e)}async uploadFile(e,t){return(await this.createStream()).uploadFile(e,t)}async createStream(){const e="default",t=a.StreamRegister.getIdentifier(i.IDENTIFIER_NAME_FILE_ACCESSOR,e),r=a.StreamRegister.getInstance();let o=r.getStream(t);return o||(o=this.getStream({url:this.config.url,token:this.config.token,scope:e,options:this.config.options,port:this.config.port,insecure:this.config.insecure}),o.statusStream$.subscribe((e=>{this.status=e===l.SubscriberStatusEnum.STOPPED||e===l.SubscriberStatusEnum.ALIVE,this.status$.next(e)})),await r.addStream(o),await this.initStream(o)),o}async initStream(e){if(!this.config.token)try{const t=s.RocosStore.getSDKInstance(this.config).getAuthService(),r=await t.getToken();(null==r?void 0:r.value)&&(this.config.token=null==r?void 0:r.value,e.setToken(this.config.token))}catch(e){this.logger.info("Can not retrieve auth token",e)}}getStream(e){return new o.FileAccessorStream(e)}}},7549:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FunctionService=void 0;const o=r(1112),i=r(3585),n=r(5918),s=r(4178),a=r(9),u=r(6574);class l extends n.BaseServiceAbstract{constructor(e){super(e),this.logger=a.RocosLogger.getInstance(`FunctionService(${this.config.url})`)}getError(e){return new i.RocosError(e,i.errorCodes.FUNCTION_SERVICE_ERROR)}getStatus(){return!0}async exportJobs(e,t){return this.callPost(u.formatServiceUrl(o.API_PROJECT_EXPORT_URL,{url:this.config.url,projectId:e},this.config.insecure),new s.ExportDataQuery(t).toJSON(),`Failed to export data for ${e}.`)}async create(e,t){return this.callPost(u.formatServiceUrl(o.API_PROJECT_FUNCTION_URL,{url:this.config.url,projectId:e},this.config.insecure),t,`Failed to create function for ${e}.`)}async list(e){return this.callGet(u.formatServiceUrl(o.API_PROJECT_FUNCTION_URL,{url:this.config.url,projectId:e},this.config.insecure),`Failed to get functions for ${e}.`)}async update(e,t,r){return this.callPut(u.formatServiceUrl(o.API_PROJECT_FUNCTION_ID_URL,{url:this.config.url,projectId:e,functionId:t},this.config.insecure),r,`Failed to update function for ${e}, functionId ${t}.`)}async info(e,t){return this.callGet(u.formatServiceUrl(o.API_PROJECT_FUNCTION_ID_URL,{url:this.config.url,projectId:e,functionId:t},this.config.insecure),`Failed to get function for ${e}, functionId ${t}.`)}async delete(e,t){return this.callDelete(u.formatServiceUrl(o.API_PROJECT_FUNCTION_ID_URL,{url:this.config.url,projectId:e,functionId:t},this.config.insecure),`Failed to delete function for ${e}, functionId ${t}.`)}async run(e,t,r=null){return this.callPost(u.formatServiceUrl(o.API_PROJECT_FUNCTION_RUN_URL,{url:this.config.url,projectId:e,functionId:t},this.config.insecure),r,`Failed to run function for ${e}, functionId ${t}.`)}async pods(e,t){return this.callGet(u.formatServiceUrl(o.API_PROJECT_FUNCTION_POD_URL,{url:this.config.url,projectId:e,functionId:t},this.config.insecure),`Failed to ged function pods for ${e}, functionId ${t}.`)}}t.FunctionService=l},2853:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationService=void 0;const o=r(1112),i=r(7554),n=r(5918),s=r(9),a=r(6574);class u extends n.BaseServiceAbstract{constructor(e){super(e),this.logger=s.RocosLogger.getInstance(`IntegrationService(${this.config.url})`)}getStatus(){return!0}getError(e){return new i.RocosError(e,i.errorCodes.INTEGRATIONS_SERVICE_ERROR)}async getPlans(e){return this.callGet(a.formatServiceUrl(o.API_DD_INTEGRATION_PLANS_URL,{url:this.config.url,projectId:e},this.config.insecure),"Failed to get plans.")}async getPlansPaged(e,t){var r;const i=t?{page_start:t}:void 0,n=await this.callGet(a.formatServiceUrl(`${o.API_DD_INTEGRATION_PLANS_URL}`,{url:this.config.url,projectId:e},this.config.insecure),"Failed to get plans.",i,{responseType:"raw"}),s=null!==(r=n.headers.get("x-dd-page-next"))&&void 0!==r?r:void 0;return{plans:await n.json(),pageNext:s}}async getPlanById(e,t){return this.callGet(a.formatServiceUrl(o.API_DD_INTEGRATION_PLAN_BY_ID_URL,{url:this.config.url,projectId:e,planId:t},this.config.insecure),"Failed to get plan.")}async getOverlays(e){return this.callGet(a.formatServiceUrl(o.API_DD_INTEGRATION_OVERLAYS_URL,{url:this.config.url,projectId:e},this.config.insecure),"Failed to get overlays.")}async createIssue(e,t){return this.callPost(a.formatServiceUrl(o.API_DD_INTEGRATION_ISSUES_URL,{url:this.config.url,projectId:e},this.config.insecure),{lat:t.lat,lng:t.lng},"Failed to create issue.")}}t.IntegrationService=u},1510:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MapService=void 0;const o=r(1112),i=r(7554),n=r(5918),s=r(9),a=r(6574);class u extends n.BaseServiceAbstract{constructor(e){super(e),this.logger=s.RocosLogger.getInstance(`MapService(${this.config.url})`)}getStatus(){return!0}getError(e){return new i.RocosError(e,i.errorCodes.MAPS_SERVICE_ERROR)}async list(e,t,r){var i;return(await this.callGet(a.formatServiceUrl(o.API_MAPS_URL,{url:this.config.url,projectId:e},this.config.insecure),"Failed to get maps.",t?{callsign:t,onlyRobot:null!==(i=null==r?void 0:r.onlyRobot)&&void 0!==i&&i}:void 0)).maps}async initDB(e){return this.callPost(a.formatServiceUrl(o.API_MAPS_INIT_DB_URL,{url:this.config.url,projectId:e},this.config.insecure),void 0,"Failed to init DB.")}async merge(e,t,r){if(2!==t.length)throw new Error("You must provide two maps to merge.");const i={projectID:e,mapIDLeft:t[0],mapIDRight:t[1],name:r.name,description:r.description,callsign:r.callsign};return this.callPost(a.formatServiceUrl(o.API_MAPS_MERGE_URL,{url:this.config.url,projectId:e},this.config.insecure),i,"Failed to merge maps.")}async update(e,t,r){return this.callPut(a.formatServiceUrl(o.API_MAP_ID_URL,{url:this.config.url,projectId:e,mapId:t},this.config.insecure),r,"Failed to update map.")}async copyFromRobot(e,t,r){return this.callPost(a.formatServiceUrl(o.API_MAP_ID_URL,{url:this.config.url,projectId:e,mapId:t},this.config.insecure),{callsign:r},"Failed to copy map from robot.")}async delete(e,t,r){return this.callDelete(a.formatServiceUrl(o.API_MAP_ID_URL,{url:this.config.url,projectId:e,mapId:t},this.config.insecure),"Failed to delete map.",r?{callsign:r}:{})}async copyFromCloud(e,t,r){return this.callPost(a.formatServiceUrl(o.API_MAPS_COPY_URL,{url:this.config.url,projectId:e,mapId:t},this.config.insecure),r,"Failed to copy map.")}}t.MapService=u},6848:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PlatFormTimeService=void 0;const o=r(9),i=r(3233),n="gr_platformTimeOffset",s="gr_lastPlatformTimeSyncedAt";class a{constructor(e){this.backoffTimeouts=[5e3,3e4,6e4,3e5],this.isSyncing=!1,this.backoffFailCount=0,this.serverTimeOffset=0,this.lastPlatformTimeSyncedAt=0,this.logger=o.RocosLogger.getInstance("PlatformTimeService"),(null===window||void 0===window?void 0:window.localStorage)&&(this.lastPlatformTimeSyncedAt=Number(window.localStorage.getItem(s))||0,this.serverTimeOffset=Number(window.localStorage.getItem(n))||0),this.timeSyncerService=e,this.logger.debug("stored platform time: ",this.platformTime),setTimeout((()=>{this.getClockOffsetBetweenClientAndServer()}),2e3)}static getInstance(e){if(!a.instance){if(!e)throw new Error("platform time service object is not instantiated yet, please pass timeSyncerService to create it");a.instance=new a(e)}return a.instance}get platformTimeOffset(){return this.serverTimeOffset}get platformTime(){return Date.now()-this.serverTimeOffset}async getClockOffsetBetweenClientAndServer(){let e=[];if(!this.isSyncing){this.isSyncing=!0;for(let t=0;t<5;t++)try{const t=await this.getPlatformTime();e.push(t)}catch(e){return void this.handleGetServerTimeError(e)}if(this.isReliableServerTime(e)){e=this.removeLongestAndShortest(e);const t=this.calculateOffset(e);this.saveOffset(t)}else this.handleServerTimeNotReliable()}}async getPlatformTime(){const e=Date.now(),t=await this.getServerTime();return{clientTimeStampEnd:Date.now(),clientTimeStampStart:e,serverTime:t}}handleServerTimeNotReliable(){this.logger.error("not able to get reliable server time, will try again..."),this.isSyncing=!1,this.backoff()}backoff(){this.backoffFailCount++,this.logger.debug("backoff count: ",this.backoffFailCount);const e=this.backoffFailCount-1;let t;t=e>=this.backoffTimeouts.length?this.backoffTimeouts[this.backoffTimeouts.length-1]:this.backoffTimeouts[e],setTimeout((()=>{this.getClockOffsetBetweenClientAndServer()}),t)}isReliableServerTime(e){const t=i.standardDeviation(e.map((e=>e.clientTimeStampEnd-e.clientTimeStampStart)));return this.logger.debug("standard deviation",t),t<100}handleGetServerTimeError(e){this.logger.error("Fail to get server time, will try again...",{e}),this.isSyncing=!1,this.backoff()}calculateOffset(e){let t=0;const r=e.filter((e=>!!(null==e?void 0:e.serverTime)));return r.forEach((e=>{t+=e.clientTimeStampEnd-(e.clientTimeStampEnd-e.clientTimeStampStart)/2-e.serverTime.now/10**6})),Math.round(t/r.length)}saveOffset(e){this.backoffFailCount=0,this.isSyncing=!1,this.serverTimeOffset=e,this.lastPlatformTimeSyncedAt=Date.now(),(null===window||void 0===window?void 0:window.localStorage)&&(window.localStorage.setItem(n,String(this.serverTimeOffset)),window.localStorage.setItem(s,String(this.lastPlatformTimeSyncedAt))),this.logger.debug("calibrated server time offset",e),setTimeout((()=>{this.getClockOffsetBetweenClientAndServer()}),18e5)}removeLongestAndShortest(e){let t=[];return e.length>2&&(e.sort(((e,t)=>e.clientTimeStampEnd-e.clientTimeStampStart-(t.clientTimeStampEnd-t.clientTimeStampStart))),t=e.slice(1,e.length-1)),t}getServerTime(){return this.timeSyncerService.getServerTime()}}t.PlatFormTimeService=a},2206:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProfileService=void 0;const o=r(1112),i=r(3585),n=r(5918),s=r(9),a=r(6574);class u extends n.BaseServiceAbstract{constructor(e){super(e),this.logger=s.RocosLogger.getInstance(`ProfileService(${this.config.url})`)}getError(e){return new i.RocosError(e,i.errorCodes.PROFILE_SERVICE_ERROR)}getStatus(){return!0}async create(e,t){return this.callPost(a.formatServiceUrl(o.API_PROJECT_DEFINITION_URL,{url:this.config.url,projectId:e},this.config.insecure),t,"Failed to create a robot definition.")}async list(e){return this.callGet(a.formatServiceUrl(o.API_PROJECT_DEFINITION_URL,{url:this.config.url,projectId:e},this.config.insecure),"Failed to get robot definitions.")}async remove(e,t){return this.callDelete(a.formatServiceUrl(o.API_PROJECT_ROBOT_URL,{url:this.config.url,projectId:e},this.config.insecure),"Failed to delete robot definitions.",t)}async get(e,t){return this.callGet(a.formatServiceUrl(o.API_PROJECT_DEFINITION_ID_URL,{url:this.config.url,projectId:e,definitionId:t},this.config.insecure),"Failed to get a robot definition.")}async delete(e,t){return this.callDelete(a.formatServiceUrl(o.API_PROJECT_DEFINITION_ID_URL,{url:this.config.url,projectId:e,definitionId:t},this.config.insecure),"Failed to delete a robot definition.")}async update(e,t,r){return this.callPut(a.formatServiceUrl(o.API_PROJECT_DEFINITION_ID_URL,{url:this.config.url,projectId:e,definitionId:t},this.config.insecure),r,"Failed to update a robot definition.")}async getForRobot(e,t){return this.callGet(a.formatServiceUrl(o.API_PROJECT_ROBOT_DEFINITION_URL,{url:this.config.url,projectId:e,callsign:t},this.config.insecure),"Failed to get definitions for a robot.")}async updateStorageStreams(e,t,r){return this.callPut(a.formatServiceUrl(o.API_PROJECT_DEFINITION_STREAM_URL,{url:this.config.url,projectId:e,definitionId:t},this.config.insecure),r,"Failed to update definitions streams.")}async copyDef(e,t,r){return this.callPost(a.formatServiceUrl(o.API_PROJECT_DEFINITION_COPY_URL,{url:this.config.url,projectId:e,definitionId:t},this.config.insecure),r,"Failed to copy a robot definition.")}async robotList(e,t){return this.callGet(a.formatServiceUrl(o.API_PROJECT_ROBOT_URL,{url:this.config.url,projectId:e},this.config.insecure),"Failed to get robots for a definition.",{profileId:t})}async dashboards(e,t){return this.callGet(a.formatServiceUrl(o.API_PROJECT_PROFILE_DASHBOARD_URL,{url:this.config.url,projectId:e,profileId:t},this.config.insecure),"Failed to get dashboards for a profile.")}async dashboardBlob(e,t){return this.callGet(a.formatServiceUrl(o.API_PROJECT_DEFINITION_BLOB_URL,{url:this.config.url,projectId:e,definitionId:t},this.config.insecure),"Failed to get dashboards from a blob.")}async updateDashboards(e,t,r){return this.callPost(a.formatServiceUrl(o.API_PROJECT_DEFINITION_DASHBOARD_URL,{url:this.config.url,projectId:e,definitionId:t},this.config.insecure),r,"Failed to update dashboards.")}async getSettings(e,t){return this.callGet(a.formatServiceUrl(o.API_PROJECT_DEFINITION_SETTING_URL,{url:this.config.url,projectId:e,definitionId:t},this.config.insecure),"Failed to get definition settings.")}async updateSettings(e,t,r){return this.callPost(a.formatServiceUrl(o.API_PROJECT_DEFINITION_SETTING_URL,{url:this.config.url,projectId:e,definitionId:t},this.config.insecure),r,"Failed to update definition settings.")}async getAgentSettings(e,t){return this.callGet(a.formatServiceUrl(o.API_PROJECT_DEFINITION_AGENT_URL,{url:this.config.url,projectId:e,definitionId:t},this.config.insecure),"Failed to get agent settings.")}async updateAgentSettings(e,t,r){return this.callPost(a.formatServiceUrl(o.API_PROJECT_DEFINITION_AGENT_URL,{url:this.config.url,projectId:e,definitionId:t},this.config.insecure),r,"Failed to update agent settings.")}async getCommands(e,t){return this.callGet(a.formatServiceUrl(o.API_PROJECT_DEFINITION_COMMAND_URL,{url:this.config.url,projectId:e,definitionId:t},this.config.insecure),"Failed to get commands.")}async updateCommands(e,t,r){return this.callPost(a.formatServiceUrl(o.API_PROJECT_DEFINITION_COMMAND_URL,{url:this.config.url,projectId:e,definitionId:t},this.config.insecure),r,"Failed to update commands.")}async getCommandsV2(e,t){return this.callGet(a.formatServiceUrl(o.API_PROJECT_DEFINITION_COMMAND2_URL,{url:this.config.url,projectId:e,definitionId:t},this.config.insecure),`Failed to get command list for ${e}, definitionId ${t}.`)}async updateCommandsV2(e,t,r){return this.callPost(a.formatServiceUrl(o.API_PROJECT_DEFINITION_COMMAND2_URL,{url:this.config.url,projectId:e,definitionId:t},this.config.insecure),r,`Failed to update command list for ${e}, definitionId ${t}.`)}async getCommandActions(e,t){return this.callGet(a.formatServiceUrl(o.API_PROJECT_DEFINITION_ACTION_URL,{url:this.config.url,projectId:e,definitionId:t},this.config.insecure),`Failed to get command actions for ${e}, definitionId ${t}.`)}async getButtons(e,t){return this.callGet(a.formatServiceUrl(o.API_PROJECT_DEFINITION_BUTTON_URL,{url:this.config.url,projectId:e,definitionId:t},this.config.insecure),`Failed to get buttons for ${e}, definitionId ${t}.`)}async updateButtons(e,t,r){return this.callPost(a.formatServiceUrl(o.API_PROJECT_DEFINITION_BUTTON_URL,{url:this.config.url,projectId:e,definitionId:t},this.config.insecure),r,`Failed to update buttons for ${e}, definitionId ${t}.`)}async getTriggers(e,t){return this.callGet(a.formatServiceUrl(o.API_PROJECT_DEFINITION_TRIGGER_URL,{url:this.config.url,projectId:e,definitionId:t},this.config.insecure),`Failed to get triggers for ${e}, definitionId ${t}.`)}async updateTriggers(e,t,r){return this.callPost(a.formatServiceUrl(o.API_PROJECT_DEFINITION_TRIGGER_URL,{url:this.config.url,projectId:e,definitionId:t},this.config.insecure),r,`Failed to update triggers for ${e}, definitionId ${t}.`)}async getGamepads(e,t){return this.callGet(a.formatServiceUrl(o.API_PROJECT_DEFINITION_GAMEPAD_URL,{url:this.config.url,projectId:e,definitionId:t},this.config.insecure),`Failed to get gamepads for ${e}, definitionId ${t}.`)}async updateGamepads(e,t,r){return this.callPost(a.formatServiceUrl(o.API_PROJECT_DEFINITION_GAMEPAD_URL,{url:this.config.url,projectId:e,definitionId:t},this.config.insecure),r,`Failed to update gamepads for ${e}, definitionId ${t}.`)}}t.ProfileService=u},3204:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProjectService=void 0;const o=r(1112),i=r(3585),n=r(5918),s=r(9),a=r(6574);class u extends n.BaseServiceAbstract{constructor(e){super(e),this.logger=s.RocosLogger.getInstance(`ProjectService(${this.config.url})`)}getError(e){return new i.RocosError(e,i.errorCodes.PROJECT_SERVICE_ERROR)}getStatus(){return!0}async create(e){return this.callPost(a.formatServiceUrl(o.API_PROJECT_URL,{url:this.config.url},this.config.insecure),e,"Failed to create project.")}async list(){return this.callGet(a.formatServiceUrl(o.API_PROJECT_URL,{url:this.config.url},this.config.insecure),"Failed to get project list.")}async update(e,t){return this.callPut(a.formatServiceUrl(o.API_PROJECT_ID_URL,{url:this.config.url,projectId:e},this.config.insecure),t,`Failed to update project for ${e}.`)}async info(e){return this.callGet(a.formatServiceUrl(o.API_PROJECT_ID_URL,{url:this.config.url,projectId:e},this.config.insecure),`Failed to get project info for ${e}.`)}async delete(e,t){return this.callDelete(a.formatServiceUrl(o.API_ACCOUNT_PROJECT_ID_URL,{url:this.config.url,accountId:e,projectId:t},this.config.insecure),`Failed to delete project for ${e}, projectId ${t}.`)}async projectsUnderAccount(e){return this.callGet(a.formatServiceUrl(o.API_ACCOUNT_PROJECT_URL,{url:this.config.url,accountId:e},this.config.insecure),`Failed to get account projects for ${e}.`)}async createProjectUnderAccount(e,t){return this.callPost(a.formatServiceUrl(o.API_ACCOUNT_PROJECT_URL,{url:this.config.url,accountId:e},this.config.insecure),t,`Failed to create account project for ${e}.`)}async templates(){return this.callGet(a.formatServiceUrl(o.API_TEMPLATE_PROVISION_URL,{url:this.config.url},this.config.insecure),"Failed to get project templates.")}async createProjectByTemplate(e,t){return this.callPost(a.formatServiceUrl(o.API_TEMPLATE_PROVISION_ID_URL,{url:this.config.url,templateId:e},this.config.insecure),t,`Failed to create project template for ${e}.`)}async createOperation(e,t){return this.callPost(a.formatServiceUrl(o.API_PROJECT_OPERATION_URL,{url:this.config.url,projectId:e},this.config.insecure),t,`Failed to create project operation for ${e}.`)}async getOperationsList(e){return this.callGet(a.formatServiceUrl(o.API_PROJECT_OPERATION_URL,{url:this.config.url,projectId:e},this.config.insecure),`Failed to get project operations for ${e}.`)}async getOperation(e,t){return this.callGet(a.formatServiceUrl(o.API_PROJECT_OPERATION_ID_URL,{url:this.config.url,projectId:e,operationId:t},this.config.insecure),`Failed to get project operation for ${e}, operationId ${t}.`)}async deleteOperationsForProject(e,t){return this.callDelete(a.formatServiceUrl(o.API_PROJECT_OPERATION_URL,{url:this.config.url,projectId:e},this.config.insecure),`Failed to delete project operations for ${e}.`,t)}async updateOperation(e,t,r){return this.callPut(a.formatServiceUrl(o.API_PROJECT_OPERATION_ID_URL,{url:this.config.url,projectId:e,operationId:t},this.config.insecure),r,`Failed to update project operation for ${e}, operationId ${t}.`)}async listUsers(e){return this.callGet(a.formatServiceUrl(o.API_PROJECT_USERS_URL,{url:this.config.url,projectId:e},this.config.insecure),"Failed to get project users list.")}}t.ProjectService=u},6246:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RobotService=void 0;const o=r(1112),i=r(3585),n=r(5918),s=r(5378),a=r(9260),u=r(9),l=r(8112),p=r(6574);class c extends n.BaseServiceAbstract{constructor(e){super(e),this.logger=u.RocosLogger.getInstance(`RobotService(${this.config.url})`)}getError(e){return new i.RocosError(e,i.errorCodes.ROBOT_SERVICE_ERROR)}getStatus(){return!0}async getRobots(e){return(await this.callGet(p.formatServiceUrl(o.API_PROJECT_ROBOT_URL,{url:this.config.url,projectId:e},this.config.insecure),`Failed to get robots list for ${e}.`)).map((e=>l.cleanObject(new s.Robot(e))))}async create(e,t){return this.callPost(p.formatServiceUrl(o.API_PROJECT_ROBOT_URL,{url:this.config.url,projectId:e},this.config.insecure),t,"Failed to create robot.")}async update(e,t){return this.callPut(p.formatServiceUrl(o.API_PROJECT_ROBOT_URL,{url:this.config.url,projectId:e},this.config.insecure),t,"Failed to update robot.")}async delete(e,t){return this.callDelete(p.formatServiceUrl(o.API_PROJECT_ROBOT_URL,{url:this.config.url,projectId:e},this.config.insecure),"Failed to delete robots.",t)}async info(e,t){return this.callGet(p.formatServiceUrl(o.API_PROJECT_ROBOT_ID_URL,{url:this.config.url,projectId:e,callsign:t},this.config.insecure),"Failed to get robot info.")}async attributes(e,t){return this.callGet(p.formatServiceUrl(o.API_PROJECT_ROBOT_ATTRIBUTES_URL,{url:this.config.url,projectId:e,callsign:t},this.config.insecure),"Failed to get robot attributes.")}async register(e,t){return this.callPost(p.formatServiceUrl(o.API_PROJECT_ROBOT_REGISTER_URL,{url:this.config.url,projectId:e,callsign:t},this.config.insecure),{},"Failed to register robot.")}async templates(){return(await this.callGet(p.formatServiceUrl(o.API_TEMPLATE_DEPLOY_URL,{url:this.config.url},this.config.insecure),"Failed to get robot templates.")).map((e=>l.cleanObject(new a.RobotTemplate(e))))}async virtualRobotDeploymentDetails(e,t){return this.callGet(p.formatServiceUrl(o.API_PROJECT_VROBOT_DETAILS_URL,{url:this.config.url,projectId:e,callsign:t},this.config.insecure),"Failed to get virtual robot details.")}async deployVirtualRobot(e,t){return this.callPost(p.formatServiceUrl(o.API_PROJECT_VROBOT_DEPLOY_URL,{url:this.config.url,projectId:e,callsign:t},this.config.insecure),null,"Failed to deploy a virtual robot.")}async dataSourcesSchema(){return this.callGet(p.formatServiceUrl(o.API_SOURCE_SCHEMA_URL,{url:this.config.url},this.config.insecure),"Failed to get source schemas.")}async deleteRobotDashboardsV2(e,t,r){return this.callDelete(p.formatServiceUrl(o.API_PROJECT_ROBOT_DASHBOARD_ID_URL,{url:this.config.url,projectId:e,callsign:t,dashboardId:r},this.config.insecure),"Failed to delete dashboard.")}async deleteDashboardsV2(e,t,r){return this.callDelete(p.formatServiceUrl(o.API_PROJECT_PROFILE_DASHBOARD_ID_URL,{url:this.config.url,projectId:e,profileId:t,dashboardId:r},this.config.insecure),"Failed to delete dashboard.")}async listRobotDashboardsV2(e,t){return this.callGet(p.formatServiceUrl(o.API_PROJECT_ROBOT_DASHBOARD_URL,{url:this.config.url,projectId:e,callsign:t},this.config.insecure),"Failed to get robot dashboards.")}async listDashboardsV2(e,t){return this.callGet(p.formatServiceUrl(o.API_PROJECT_PROFILE_DASHBOARD_URL,{url:this.config.url,projectId:e,profileId:t},this.config.insecure),"Failed to get profile dashboards.")}async robotDefDashboardsV2(e,t,r){return this.callGet(p.formatServiceUrl(o.API_PROJECT_PROFILE_DASHBOARD_ID_URL,{url:this.config.url,projectId:e,profileId:t,dashboardId:r},this.config.insecure),"Failed to get profile dashboard.")}async robotDefDashboardBlobV2(e,t,r){return this.callGet(p.formatServiceUrl(o.API_PROJECT_PROFILE_DASHBOARD_CUSTOM_WIDGET_URL,{url:this.config.url,projectId:e,profileId:t,dashboardId:r},this.config.insecure),"Failed to get profile dashboard blob.")}async createRobotDashboardsV2(e,t,r){return this.callPost(p.formatServiceUrl(o.API_PROJECT_ROBOT_DASHBOARD_URL,{url:this.config.url,projectId:e,callsign:t},this.config.insecure),r,"Failed to create robot dashboard.")}async createDashboardsV2(e,t,r){return this.callPost(p.formatServiceUrl(o.API_PROJECT_PROFILE_DASHBOARD_URL,{url:this.config.url,projectId:e,profileId:t},this.config.insecure),r,"Failed to create profile dashboard.")}async robotDefUpdateDashboardsV2(e,t,r,i){return this.callPut(p.formatServiceUrl(o.API_PROJECT_PROFILE_DASHBOARD_ID_URL,{url:this.config.url,projectId:e,profileId:t,dashboardId:r},this.config.insecure),i,"Failed to update profile dashboard.")}async getDashboardsV2(e,t,r){return this.callGet(p.formatServiceUrl(o.API_PROJECT_ROBOT_DASHBOARD_ID_URL,{url:this.config.url,projectId:e,callsign:t,dashboardId:r},this.config.insecure),"Failed to get robot dashboard.")}async getDashboardBlobV2(e,t,r){return this.callGet(p.formatServiceUrl(o.API_PROJECT_ROBOT_DASHBOARD_CUSTOM_WIDGET_URL,{url:this.config.url,projectId:e,callsign:t,dashboardId:r},this.config.insecure),"Failed to get robot dashboard blob.")}async updateDashboardsV2(e,t,r,i){return this.callPut(p.formatServiceUrl(o.API_PROJECT_ROBOT_DASHBOARD_ID_URL,{url:this.config.url,projectId:e,callsign:t,dashboardId:r},this.config.insecure),i,"Failed to update robot dashboard.")}async getSettings(e,t){return this.callGet(p.formatServiceUrl(o.API_PROJECT_ROBOT_SETTING_URL,{url:this.config.url,projectId:e,callsign:t},this.config.insecure),"Failed to get robot settings.")}async updateSettings(e,t,r){return this.callPost(p.formatServiceUrl(o.API_PROJECT_ROBOT_SETTING_URL,{url:this.config.url,projectId:e,callsign:t},this.config.insecure),r,"Failed to update robot settings.")}async getAgentSettings(e,t){return this.callGet(p.formatServiceUrl(o.API_PROJECT_ROBOT_AGENT_URL,{url:this.config.url,projectId:e,callsign:t},this.config.insecure),"Failed to get agent settings for robot.")}async updateAgentSettings(e,t,r){return this.callPost(p.formatServiceUrl(o.API_PROJECT_ROBOT_AGENT_URL,{url:this.config.url,projectId:e,callsign:t},this.config.insecure),r,"Failed to update agent settings for robot.")}async getCommands(e,t){return this.callGet(p.formatServiceUrl(o.API_PROJECT_ROBOT_COMMAND_URL,{url:this.config.url,projectId:e,callsign:t},this.config.insecure),"Failed to get commands for a robot.")}async updateCommands(e,t,r){return this.callPost(p.formatServiceUrl(o.API_PROJECT_ROBOT_COMMAND_URL,{url:this.config.url,projectId:e,callsign:t},this.config.insecure),r,"Failed to update commands for a robot.")}async getCommandsV2(e,t){return this.callGet(p.formatServiceUrl(o.API_PROJECT_ROBOT_COMMAND2_URL,{url:this.config.url,projectId:e,callsign:t},this.config.insecure),`Failed to get command list for ${e}, callsign ${t}.`)}async updateCommandsV2(e,t,r){return this.callPost(p.formatServiceUrl(o.API_PROJECT_ROBOT_COMMAND2_URL,{url:this.config.url,projectId:e,callsign:t},this.config.insecure),r,`Failed to update commands for ${e}, callsign ${t}.`)}async getButtons(e,t){return this.callGet(p.formatServiceUrl(o.API_PROJECT_ROBOT_BUTTON_URL,{url:this.config.url,projectId:e,callsign:t},this.config.insecure),`Failed to get buttons for ${e}, callsign ${t}.`)}async updateButtons(e,t,r){return this.callPost(p.formatServiceUrl(o.API_PROJECT_ROBOT_BUTTON_URL,{url:this.config.url,projectId:e,callsign:t},this.config.insecure),r,`Failed to update buttons for ${e}, callsign ${t}.`)}async getTriggers(e,t){return this.callGet(p.formatServiceUrl(o.API_PROJECT_ROBOT_TRIGGER_URL,{url:this.config.url,projectId:e,callsign:t},this.config.insecure),`Failed to get triggers for ${e}, callsign ${t}.`)}async updateTriggers(e,t,r){return this.callPost(p.formatServiceUrl(o.API_PROJECT_ROBOT_TRIGGER_URL,{url:this.config.url,projectId:e,callsign:t},this.config.insecure),r,`Failed to update triggers for ${e}, callsign ${t}.`)}async getGamepads(e,t){return this.callGet(p.formatServiceUrl(o.API_PROJECT_ROBOT_GAMEPAD_URL,{url:this.config.url,projectId:e,callsign:t},this.config.insecure),`Failed to get gamepads for ${e}, callsign ${t}.`)}async updateGamepads(e,t,r){return this.callPost(p.formatServiceUrl(o.API_PROJECT_ROBOT_GAMEPAD_URL,{url:this.config.url,projectId:e,callsign:t},this.config.insecure),r,`Failed to update gamepads for ${e}, callsign ${t}.`)}}t.RobotService=c},4051:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScheduleService=void 0;const o=r(7554),i=r(1112),n=r(5918),s=r(9),a=r(6574);class u extends n.BaseServiceAbstract{constructor(e){super(e),this.logger=s.RocosLogger.getInstance(`ScheduleService(${this.config.url})`)}getError(e){return new o.RocosError(e,o.errorCodes.SCHEDULE_SERVICE_ERROR)}getStatus(){return!0}async getSchedules(e,t){return this.callGet(a.formatServiceUrl(i.API_PROJECT_SCHEDULES_URL,{url:this.config.url,projectId:e,callsign:t},this.config.insecure),`Failed to get schedules list for robot '${t}' in project '${e}'.`)}async updateSchedules(e,t,r){return this.callPost(a.formatServiceUrl(i.API_PROJECT_SCHEDULES_URL,{url:this.config.url,projectId:e,callsign:t},this.config.insecure),r,"Failed to update schedules.")}}t.ScheduleService=u},1955:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SearchService=void 0;const o=r(2872),i=r(3360),n=r(9),s=r(3918),a=r(601),u=r(7785),l=r(2189),p=r(4857);t.SearchService=class{constructor(e){this.status=!1,this.status$=new o.Subject,this.config=e,this.logger=n.RocosLogger.getInstance(`SearchService(${this.config.url})`)}getStatus(){return this.status}searchStream(e){const t=new o.Subject;let r;return this.createStream().then((o=>{r=o.searchStream(e).subscribe(t)})).catch((e=>{this.logger.info("takeActionWithAck error",e),t.error(e)})),t.asObservable().pipe(p.finalize((()=>{null==r||r.unsubscribe()})))}async queryData(e){return(await this.createStream()).queryData(e)}async healthCheck(e){return(await this.createStream()).healthCheck(e)}async deleteProjectData(e){return(await this.createStream()).deleteProjectData(e)}async createStream(){const e="default",t=u.StreamRegister.getIdentifier(i.IDENTIFIER_NAME_SEARCH,e),r=u.StreamRegister.getInstance();let o=r.getStream(t);return o||(o=this.getStream({url:this.config.url,token:this.config.token,scope:e,options:this.config.options,port:this.config.port,insecure:this.config.insecure}),o.statusStream$.subscribe((e=>{this.status=e===l.SubscriberStatusEnum.STOPPED||e===l.SubscriberStatusEnum.ALIVE,this.status$.next(e)})),await r.addStream(o),await this.initStream(o)),o}async initStream(e){if(!this.config.token)try{const t=s.RocosStore.getSDKInstance(this.config).getAuthService(),r=await t.getToken();(null==r?void 0:r.value)&&(this.config.token=null==r?void 0:r.value,e.setToken(this.config.token))}catch(e){this.logger.info("Can not retrieve auth token",e)}}getStream(e){return new a.SearchStream(e)}}},8340:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SpotProvisioningService=void 0;const o=r(7554),i=r(1112),n=r(5918),s=r(9),a=r(3918),u=r(6574);class l extends n.BaseServiceAbstract{constructor(e){super(e),this.logger=s.RocosLogger.getInstance(`SpotService(${this.config.url})`)}getStatus(){return!0}getError(e){return new o.RocosError(e,o.errorCodes.SPOT_SERVICE_ERROR)}async getSpotCoreImage(e,t,r,o="stable",n,s){const l=a.RocosStore.getSDKInstance(this.config).getUserService(),p=await l.createPAT({name:`Spot provisioning token for ${r.callsign}`,projectId:e,scope:["provisioning"],robotDefinitionId:t,metaData:Object.assign({singleUse:!0,defaultRobotDefinitionId:t},n),ttlDays:90});return this.callPost(u.formatServiceUrl(i.API_SPOTTY_URL,{url:this.config.url},this.config.insecure),{pat:p.pat,callsign:r.callsign,robotName:r.name,project:e,agentImageTag:o,timezone:s},"Failed to get image.",{responseType:"blob"})}}t.SpotProvisioningService=l},8959:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SpotProvisioningServiceNode=void 0;const o=r(7554),i=r(1112),n=r(5918),s=r(9),a=r(3918),u=r(6574);class l extends n.BaseServiceAbstract{constructor(e){super(e),this.logger=s.RocosLogger.getInstance(`SpotService(${this.config.url})`)}getStatus(){return!0}getError(e){return new o.RocosError(e,o.errorCodes.SPOT_SERVICE_ERROR)}async getSpotCoreImage(e,t,r,o="stable",n,s){const l=a.RocosStore.getSDKInstance(this.config).getUserService(),p=await l.createPAT({name:`Spot provisioning token for ${r.callsign}`,projectId:e,scope:["provisioning"],robotDefinitionId:t,metaData:Object.assign({defaultRobotDefinitionId:t,singleUse:!0},n),ttlDays:90});return this.callPost(u.formatServiceUrl(i.API_SPOTTY_URL,{url:this.config.url},this.config.insecure),{pat:p.pat,callsign:r.callsign,robotName:r.name,project:e,agentImageTag:o,timezone:s},"Failed to get image.",{responseType:"stream"})}}t.SpotProvisioningServiceNode=l},1807:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StreamService=void 0;const o=r(1112),i=r(3585),n=r(5918),s=r(9),a=r(6771),u=r(6106),l=r(8112),p=r(6574);class c extends n.BaseServiceAbstract{constructor(e){super(e),this.logger=s.RocosLogger.getInstance(`StreamService(${this.config.url})`)}getError(e){return new i.RocosError(e,i.errorCodes.STREAM_SERVICE_ERROR)}getStatus(){return!0}async create(e,t){return this.callPost(p.formatServiceUrl(o.API_PROJECT_STREAM_URL,{url:this.config.url,projectId:e},this.config.insecure),l.cleanObject(new a.Stream(t)),`Failed to create stream for ${e}.`)}async list(e){return(await this.callGet(p.formatServiceUrl(o.API_PROJECT_STREAM_URL,{url:this.config.url,projectId:e},this.config.insecure),`Failed to get streams for ${e}.`)).map((e=>l.cleanObject(new a.Stream(e))))}async info(e,t){const r=await this.callGet(p.formatServiceUrl(o.API_PROJECT_STREAM_ID_URL,{url:this.config.url,projectId:e,streamId:t},this.config.insecure),`Failed to get stream for ${e}, streamId ${t}.`);return l.cleanObject(new a.Stream(r))}async addData(e,t,r){return this.callPut(p.formatServiceUrl(o.API_PROJECT_STREAM_DATA_URL,{url:this.config.url,projectId:e,streamId:t},this.config.insecure),{data:r.map((e=>l.cleanObject(new u.StreamSource(e))))},`Failed add data to stream for ${e}, streamId ${t}.`)}async sources(){return this.callGet(p.formatServiceUrl(o.API_SOURCE_URL,{url:this.config.url},this.config.insecure),"Failed to get sources for stream.")}async sourceInfo(e){return this.callGet(p.formatServiceUrl(o.API_SOURCE_ID_URL,{url:this.config.url,sourceId:e},this.config.insecure),`Failed add et source info for ${e}.`)}async streamsForRobot(e,t){return this.callGet(p.formatServiceUrl(o.API_PROJECT_CALLSIGN_STREAM_URL,{url:this.config.url,projectId:e,callsign:t},this.config.insecure),`Failed get streams for ${e}, callsign ${t}.`)}async bindRobot(e,t,r){return this.callPut(p.formatServiceUrl(o.API_PROJECT_STREAM_CALLSIGN_URL,{url:this.config.url,projectId:e,streamId:t},this.config.insecure),r,`Failed to bind robot with stream for ${e}, streamId ${t}.`)}async unbindRobot(e,t,r){return this.callDelete(p.formatServiceUrl(o.API_PROJECT_STREAM_CALLSIGN_URL,{url:this.config.url,projectId:e,streamId:t},this.config.insecure),`Failed to unbind robot with stream for ${e}, streamId ${t}.`,r)}async removeStreams(e,t){return this.callDelete(p.formatServiceUrl(o.API_PROJECT_STREAM_URL,{url:this.config.url,projectId:e},this.config.insecure),`Failed to remove stream for ${e}.`,t)}async removeStreamData(e,t,r){return this.callDelete(p.formatServiceUrl(o.API_PROJECT_STREAM_DATA_URL,{url:this.config.url,projectId:e,streamId:t},this.config.insecure),`Failed to remove streams for ${e}, streamId ${t}.`,r)}async removeStreamDataByIds(e,t,r){return this.callDelete(p.formatServiceUrl(o.API_PROJECT_STREAM_DATA_URL,{url:this.config.url,projectId:e,streamId:t},this.config.insecure),`Failed to remove streams for ${e}, streamId ${t}.`,r)}async dataExporterTemplates(){return this.callGet(p.formatServiceUrl(o.API_TEMPLATE_EXPORTER_URL,{url:this.config.url},this.config.insecure),"Failed to get data exporters.")}}t.StreamService=c},2133:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TelemetryService=void 0;const o=r(2872),i=r(3585),n=r(4857),s=r(7795),a=r(8604),u=r(3360),l=r(9),p=r(3918),c=r(7785),g=r(2189),d=r(4192),f=r(4124),h=r(761);t.TelemetryService=class{constructor(e){this.status=!1,this.changeStream$=new o.BehaviorSubject(new Map),this.status$=new o.Subject,this.config=e,this.logger=l.RocosLogger.getInstance(`TelemetryService(${this.config.url})`),p.RocosStore.getChangeSubject().pipe(n.filter((e=>"telemetry-subscription"===e.type&&e.url===this.config.url))).subscribe((e=>{this.changeStream$.next(e.data)})),this.streamStatusSubject$=new o.BehaviorSubject({scope:"default",status:g.SubscriberStatusEnum.STOPPED})}getStatus(){return this.status}subscribe(e){var t,r;const l=null!==(t=f.arrayUnique(e.sources).map((e=>e.trim())))&&void 0!==t?t:[];if(!(null==e?void 0:e.callsigns)&&(null==e?void 0:e.query))throw this.logger.error("Error: params need to contain either callsigns or query",e),new i.RocosError("Params need to contain either callsigns or query.",i.errorCodes.TELEMETRY_SERVICE_ERROR);let p=new s.CallsignsLookup([]);(null==e?void 0:e.callsigns)?(this.logger.info("subscribe with callsigns",e),p=new s.CallsignsLookup(e.callsigns)):(null==e?void 0:e.query)&&(this.logger.info("subscribe with query",e),p=new s.CallsignsLookup(e.query));const d=null!==(r=e.scope)&&void 0!==r?r:"default",b=c.StreamRegister.getIdentifier(u.IDENTIFIER_NAME_TELEMETRY,d),y=c.StreamRegister.getInstance();let v=y.getStream(b);v||(v=this.getStream({url:this.config.url,projectId:e.projectId,callsignsLookup:p,sources:l,token:this.config.token,scope:d,options:this.config.options,port:this.config.port,insecure:this.config.insecure}),y.addStream(v),this.initStream(v),v.statusStream$.subscribe((e=>{this.streamStatusSubject$.next({scope:d,status:e})})));const m={uniqueId:h.getUniqueId(e.projectId,p,l,d),callsigns:p&&p.lookupType===a.CallsignsLookupType.List?p.lookupValue:[],sources:l};v.addSubscription(m);const R=p.lookupValue;return this.statusSubscription||(this.statusSubscription=v.statusStream$.subscribe((e=>{this.status=e===g.SubscriberStatusEnum.STOPPED||e===g.SubscriberStatusEnum.ALIVE,this.status$.next(e)}))),o.from(v.messageStream$).pipe(n.filter((e=>R.includes(e.callsign)&&l.includes(e.source))),n.finalize((()=>null==v?void 0:v.removeSubscription(m,e.terminateReceiverGroupOnUnsubscribe))))}getSubscriptionChanges(){return this.changeStream$.asObservable()}getStatusChanges(){return this.streamStatusSubject$.asObservable()}async initStream(e){if(!this.config.token)try{const t=p.RocosStore.getSDKInstance(this.config).getAuthService(),r=await t.getToken();(null==r?void 0:r.value)&&(this.config.token=null==r?void 0:r.value,e.setToken(this.config.token))}catch(e){this.logger.info("Can not retrieve auth token",e)}e.init()}getStream(e){return new d.TelemetryStream(e)}}},6056:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeSyncerService=void 0;const o=r(3585),i=r(1112),n=r(5918),s=r(9),a=r(6574);class u extends n.BaseServiceAbstract{constructor(e){super(e),this.logger=s.RocosLogger.getInstance(`TimeSyncerService(${this.config.url})`)}getError(e){return new o.RocosError(e,o.errorCodes.TIME_SYNCER_SERVICE_ERROR)}getStatus(){return!0}getServerTime(){return this.callGet(a.formatServiceUrl(i.API_SERVER_TIME_URL,{url:this.config.url},this.config.insecure),"Failed to get server time.")}}t.TimeSyncerService=u},1105:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserService=void 0;const o=r(1112),i=r(3585),n=r(5918),s=r(9),a=r(6574);class u extends n.BaseServiceAbstract{constructor(e){super(e),this.logger=s.RocosLogger.getInstance(`UserService(${this.config.url})`)}getError(e){return new i.RocosError(e,i.errorCodes.USER_SERVICE_ERROR)}getStatus(){return!0}async info(){return this.callGet(a.formatServiceUrl(o.API_USER_URL,{url:this.config.url},this.config.insecure),"Failed to get user details.")}async getToken(){return this.callGet(a.formatServiceUrl(o.API_USER_TOKEN_URL,{url:this.config.url},this.config.insecure),"Failed to get user token.")}async createInvitation(e){return this.callPost(a.formatServiceUrl(o.API_USER_INVITATION_URL,{url:this.config.url},this.config.insecure),e,"Failed to create user invitation.")}async listInvitations(){return this.callGet(a.formatServiceUrl(o.API_USER_INVITATION_URL,{url:this.config.url},this.config.insecure),"Failed to get user invitations.")}async deleteInvitations(e,t){return this.callDelete(a.formatServiceUrl(o.API_USER_INVITATION_URL,{url:this.config.url},this.config.insecure),`Failed to delete user invitation ${e}, type ${t}.`,{email:e,type:t})}async acceptInvitation(e){return this.callPut(a.formatServiceUrl(o.API_USER_INVITATION_ACCEPT_URL,{url:this.config.url,invitationId:e},this.config.insecure),null,`Failed to accept user invitation ${e}.`)}async checkInvitation(e){return this.callGet(a.formatServiceUrl(o.API_USER_INVITATION_CHECK_URL,{url:this.config.url,invitationId:e},this.config.insecure),`Failed to check user invitation ${e}.`)}async activateAccount(e){return this.callPost(a.formatServiceUrl(o.API_ACCOUNT_ACTIVATE_URL,{url:this.config.url,accountId:e},this.config.insecure),null,`Failed to activate account ${e}.`)}async resendVerificationEmail(e){return this.callPost(a.formatServiceUrl(o.API_USER_VERIFY_EMAIL_URL,{url:this.config.url},this.config.insecure),{email:e},`Failed to send verification email ${e}.`)}async sendForgottenPasswordEmail(e){return this.callPost(a.formatServiceUrl(o.API_USER_PASSWORD_FORGOT_URL,{url:this.config.url},this.config.insecure),{email:e},`Failed to send forgot password email ${e}.`)}async removeProjectAccess(e,t,r){return this.callDelete(a.formatServiceUrl(o.API_ACCOUNT_PROJECT_USER_ID_URL,{url:this.config.url,accountId:e,projectId:t,userId:r},this.config.insecure),`Failed to remove project access ${e}, projectId ${t}, userId ${r}.`)}async removeAccountAccess(e,t){return this.callDelete(a.formatServiceUrl(o.API_AUTH_USER_ACCOUNT_USER_ID_URL,{url:this.config.url,accountId:e,userId:t},this.config.insecure),`Failed to remove account access ${e}, userId ${t}.`)}async listAccountUsers(e){return this.callGet(a.formatServiceUrl(o.API_AUTH_USER_ACCOUNT_USER_URL,{url:this.config.url,accountId:e},this.config.insecure),`Failed to remove account access ${e}.`)}async listProjectUsers(e,t){return this.callGet(a.formatServiceUrl(o.API_ACCOUNT_PROJECT_USER_URL,{url:this.config.url,accountId:e,projectId:t},this.config.insecure),`Failed to get account project users ${e}, projectId ${t}.`)}async createPAT(e){return this.callPost(a.formatServiceUrl(o.API_USER_PAT_URL,{url:this.config.url},this.config.insecure),e,"Failed to create personal access token.")}async getAllPATs(e,t){return this.callGet(a.formatServiceUrl(o.API_USER_PAT_URL,{url:this.config.url},this.config.insecure),`Failed to get personal access tokens ${e}, robotDefinitionId ${t}.`,{"q[projectId]":e,"q[metaData.defaultRobotDefinitionId]":t})}async getOnePAT(e){return this.callGet(a.formatServiceUrl(o.API_USER_PAT_TOKEN_URL,{url:this.config.url,token:e},this.config.insecure),"Failed to get personal access token.")}async removePATById(e){return this.callDelete(a.formatServiceUrl(o.API_USER_PAT_TOKEN_URL,{url:this.config.url,token:e},this.config.insecure),"Failed to remove personal access token.")}async accountDetails(e){return this.callGet(a.formatServiceUrl(o.API_ACCOUNT_ID_URL,{url:this.config.url,accountId:e},this.config.insecure),`Failed to get account details ${e}.`)}async createAccount(e){return this.callPost(a.formatServiceUrl(o.API_ACCOUNT_URL,{url:this.config.url},this.config.insecure),{name:e},"Failed to create account.")}async applicationAuth(e,t){return this.callPost(a.formatServiceUrl(o.API_APPLICATION_AUTH_URL,{url:this.config.url},this.config.insecure),{applicationId:e,secret:t},`Failed to authenticate application ${e}.`)}async createApplication(e,t,r){return this.callPost(a.formatServiceUrl(o.API_ACCOUNT_PROJECT_APPLICATION_URL,{url:this.config.url,accountId:e,projectId:t},this.config.insecure),r,`Failed to create application ${e}, projectId ${t}.`)}async getAllApplications(e,t){return this.callGet(a.formatServiceUrl(o.API_ACCOUNT_PROJECT_APPLICATION_URL,{url:this.config.url,accountId:e,projectId:t},this.config.insecure),`Failed to get applications ${e}, projectId ${t}.`)}async getApplication(e,t,r){return this.callGet(a.formatServiceUrl(o.API_ACCOUNT_PROJECT_APPLICATION_ID_URL,{url:this.config.url,accountId:e,projectId:t,applicationId:r},this.config.insecure),`Failed to get application ${e}, projectId ${t}, applicationId ${r}.`)}async updateApplication(e,t,r,i){return this.callPut(a.formatServiceUrl(o.API_ACCOUNT_PROJECT_APPLICATION_ID_URL,{url:this.config.url,accountId:e,projectId:t,applicationId:r},this.config.insecure),i,`Failed to update application ${e}, projectId ${t}, applicationId ${r}.`)}async deleteApplication(e,t,r){return this.callDelete(a.formatServiceUrl(o.API_ACCOUNT_PROJECT_APPLICATION_ID_URL,{url:this.config.url,accountId:e,projectId:t,applicationId:r},this.config.insecure),`Failed to delete application ${e}, projectId ${t}, applicationId ${r}.`)}async accountSettings(e){return this.callGet(a.formatServiceUrl(o.API_ACCOUNT_SETTINGS_URL,{url:this.config.url,accountId:e},this.config.insecure),`Failed to get account settings ${e}.`)}async updateAccountSettings(e,t){return this.callPut(a.formatServiceUrl(o.API_ACCOUNT_SETTINGS_URL,{url:this.config.url,accountId:e},this.config.insecure),t,`Failed to update account settings ${e}.`)}async sendInvitation(e){return this.callPost(a.formatServiceUrl(o.API_ADMIN_USER_INVITATION_URL,{url:this.config.url},this.config.insecure),e,"Failed to send invitation.")}}t.UserService=u},9561:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebRTCSignallingService=void 0;const o=r(3360),i=r(9),n=r(3918),s=r(7785),a=r(2872),u=r(2189),l=r(5141);t.WebRTCSignallingService=class{constructor(e){this.status=!1,this.status$=new a.Subject,this.config=e,this.logger=i.RocosLogger.getInstance(`WebRTCSignallingService(${this.config.url})`)}getStatus(){return this.status}async connectOperator(e){return(await this.createSignallingStream()).connectOperator(e)}async getDetails(e,t){return(await this.createSignallingStream()).getDetails(e,t)}async offerConnection(e,t){return(await this.createSignallingStream()).offerConnection(e,t)}async addIceCandidate(e,t){(await this.createSignallingStream()).addIceCandidate(e,t)}async createSignallingStream(){const e="default",t=s.StreamRegister.getIdentifier(o.IDENTIFIER_NAME_COMMAND,e),r=s.StreamRegister.getInstance();let i=r.getStream(t);return i||(i=this.getStream({url:this.config.url,token:this.config.token,scope:e,options:this.config.options,port:this.config.port,insecure:this.config.insecure}),i.statusStream$.subscribe((e=>{this.status=e===u.SubscriberStatusEnum.STOPPED||e===u.SubscriberStatusEnum.ALIVE,this.status$.next(e)})),await r.addStream(i),await this.initStream(i)),i}async initStream(e){if(!this.config.token)try{const t=n.RocosStore.getSDKInstance(this.config).getAuthService(),r=await t.getToken();(null==r?void 0:r.value)&&(this.config.token=null==r?void 0:r.value,e.setToken(this.config.token))}catch(e){this.logger.info("Can not retrieve auth token for web rtc signalling stream",e)}}getStream(e){return new l.WebRTCSignallingStream(e)}}},1338:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkflowService=void 0;const o=r(1112),i=r(3585),n=r(5918),s=r(9),a=r(6574);class u extends n.BaseServiceAbstract{constructor(e){super(e),this.logger=s.RocosLogger.getInstance(`WorkflowService(${this.config.url})`)}getError(e){return new i.RocosError(e,i.errorCodes.WORKFLOW_SERVICE_ERROR)}getStatus(){return!0}async createOne(e,t){return this.callPut(a.formatServiceUrl(o.API_PROJECT_WORKFLOW_URL,{url:this.config.url,projectId:e},this.config.insecure),t,`Failed to create workflow for ${e}.`)}async getAll(e,t=!1,r=!1,i,n){const s={includeRocosGraph:t?1:0,includeStats:r?1:0};return i&&(s.opsId=i),n&&(s.workflowIds=n.join(",")),this.callGet(a.formatServiceUrl(o.API_PROJECT_WORKFLOW_URL,{url:this.config.url,projectId:e},this.config.insecure),`Failed to get workflows for ${e}.`,s)}async getOne(e,t,r=!1){return this.callGet(a.formatServiceUrl(o.API_PROJECT_WORKFLOW_ID_URL,{url:this.config.url,projectId:e,workflowId:t},this.config.insecure),`Failed to get workflow for ${e}, workflowId ${t}.`,{includeInstances:r?1:0})}async updateOne(e,t,r){return this.callPut(a.formatServiceUrl(o.API_PROJECT_WORKFLOW_ID_URL,{url:this.config.url,projectId:e,workflowId:t},this.config.insecure),r,`Failed to update workflow for ${e}, workflowId ${t}.`)}async deleteOne(e,t){return this.callDelete(a.formatServiceUrl(o.API_PROJECT_WORKFLOW_ID_URL,{url:this.config.url,projectId:e,workflowId:t},this.config.insecure),`Failed to delete workflow for ${e}, workflowId ${t}.`)}async getAllOfRobot(e,t){return this.callGet(a.formatServiceUrl(o.API_PROJECT_CALLSIGN_WORKFLOW_URL,{url:this.config.url,projectId:e,callsign:t},this.config.insecure),`Failed to get workflows for ${e}, callsign ${t}.`)}async updateAllForRobot(e,t,r){return this.callPut(a.formatServiceUrl(o.API_PROJECT_CALLSIGN_WORKFLOW_URL,{url:this.config.url,projectId:e,callsign:t},this.config.insecure),r,`Failed to update workflows for ${e}, callsign ${t}.`)}async getDeployedOnRobot(e,t){return this.callGet(a.formatServiceUrl(o.API_PROJECT_ROBOT_DEPLOYED_WORKFLOW_URL,{url:this.config.url,projectId:e,callsign:t},this.config.insecure),`Failed to update workflows for ${e}, callsign ${t}.`)}}t.WorkflowService=u},1999:function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(3523),t),i(r(7617),t),i(r(8629),t),i(r(5924),t),i(r(2978),t),i(r(7630),t),i(r(2639),t),i(r(6553),t),i(r(2624),t),i(r(7549),t),i(r(2853),t),i(r(2206),t),i(r(3204),t),i(r(6246),t),i(r(1955),t),i(r(1807),t),i(r(2133),t),i(r(1105),t),i(r(9561),t),i(r(1338),t),i(r(4051),t),i(r(6056),t),i(r(6848),t),i(r(8340),t),i(r(8959),t),i(r(1510),t)},3918:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RocosStore=void 0;const o=r(2872),i=r(5791);class n{static getChangeSubject(){return n.changeSubject$||(n.changeSubject$=new o.Subject),n.changeSubject$}static getSDKInstance(e){const t=i.getUniqueConfigKey(e);return n.instances[t]}static putSDKInstance(e,t){var r;const o=i.getUniqueConfigKey(e);(null===(r=n.instances)||void 0===r?void 0:r[o])||(n.instances[o]=t)}static removeSDKInstance(e){var t;const r=i.getUniqueConfigKey(e);(null===(t=n.instances)||void 0===t?void 0:t[r])&&delete n.instances[r]}}t.RocosStore=n,n.instances={}},1614:(e,t,r)=>{"use strict";var o;r.r(t),r.d(t,{NIL:()=>C,parse:()=>b,stringify:()=>p,v1:()=>h,v3:()=>M,v4:()=>T,v5:()=>I,validate:()=>a,version:()=>F});var i=new Uint8Array(16);function n(){if(!o&&!(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(i)}const s=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,a=function(e){return"string"==typeof e&&s.test(e)};for(var u=[],l=0;l<256;++l)u.push((l+256).toString(16).substr(1));const p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase();if(!a(r))throw TypeError("Stringified UUID is invalid");return r};var c,g,d=0,f=0;const h=function(e,t,r){var o=t&&r||0,i=t||new Array(16),s=(e=e||{}).node||c,a=void 0!==e.clockseq?e.clockseq:g;if(null==s||null==a){var u=e.random||(e.rng||n)();null==s&&(s=c=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==a&&(a=g=16383&(u[6]<<8|u[7]))}var l=void 0!==e.msecs?e.msecs:Date.now(),h=void 0!==e.nsecs?e.nsecs:f+1,b=l-d+(h-f)/1e4;if(b<0&&void 0===e.clockseq&&(a=a+1&16383),(b<0||l>d)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");d=l,f=h,g=a;var y=(1e4*(268435455&(l+=122192928e5))+h)%4294967296;i[o++]=y>>>24&255,i[o++]=y>>>16&255,i[o++]=y>>>8&255,i[o++]=255&y;var v=l/4294967296*1e4&268435455;i[o++]=v>>>8&255,i[o++]=255&v,i[o++]=v>>>24&15|16,i[o++]=v>>>16&255,i[o++]=a>>>8|128,i[o++]=255&a;for(var m=0;m<6;++m)i[o+m]=s[m];return t||p(i)},b=function(e){if(!a(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};function y(e,t,r){function o(e,o,i,n){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof o&&(o=b(o)),16!==o.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+e.length);if(s.set(o),s.set(e,o.length),(s=r(s))[6]=15&s[6]|t,s[8]=63&s[8]|128,i){n=n||0;for(var a=0;a<16;++a)i[n+a]=s[a];return i}return p(s)}try{o.name=e}catch(e){}return o.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",o.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",o}function v(e){return 14+(e+64>>>9<<4)+1}function m(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function R(e,t,r,o,i,n){return m((s=m(m(t,e),m(o,n)))<<(a=i)|s>>>32-a,r);var s,a}function S(e,t,r,o,i,n,s){return R(t&r|~t&o,e,t,i,n,s)}function _(e,t,r,o,i,n,s){return R(t&o|r&~o,e,t,i,n,s)}function O(e,t,r,o,i,n,s){return R(t^r^o,e,t,i,n,s)}function E(e,t,r,o,i,n,s){return R(r^(t|~o),e,t,i,n,s)}const M=y("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){for(var t=[],r=32*e.length,o="0123456789abcdef",i=0;i<r;i+=8){var n=e[i>>5]>>>i%32&255,s=parseInt(o.charAt(n>>>4&15)+o.charAt(15&n),16);t.push(s)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[v(t)-1]=t;for(var r=1732584193,o=-271733879,i=-1732584194,n=271733878,s=0;s<e.length;s+=16){var a=r,u=o,l=i,p=n;r=S(r,o,i,n,e[s],7,-680876936),n=S(n,r,o,i,e[s+1],12,-389564586),i=S(i,n,r,o,e[s+2],17,606105819),o=S(o,i,n,r,e[s+3],22,-1044525330),r=S(r,o,i,n,e[s+4],7,-176418897),n=S(n,r,o,i,e[s+5],12,1200080426),i=S(i,n,r,o,e[s+6],17,-1473231341),o=S(o,i,n,r,e[s+7],22,-45705983),r=S(r,o,i,n,e[s+8],7,1770035416),n=S(n,r,o,i,e[s+9],12,-1958414417),i=S(i,n,r,o,e[s+10],17,-42063),o=S(o,i,n,r,e[s+11],22,-1990404162),r=S(r,o,i,n,e[s+12],7,1804603682),n=S(n,r,o,i,e[s+13],12,-40341101),i=S(i,n,r,o,e[s+14],17,-1502002290),r=_(r,o=S(o,i,n,r,e[s+15],22,1236535329),i,n,e[s+1],5,-165796510),n=_(n,r,o,i,e[s+6],9,-1069501632),i=_(i,n,r,o,e[s+11],14,643717713),o=_(o,i,n,r,e[s],20,-373897302),r=_(r,o,i,n,e[s+5],5,-701558691),n=_(n,r,o,i,e[s+10],9,38016083),i=_(i,n,r,o,e[s+15],14,-660478335),o=_(o,i,n,r,e[s+4],20,-405537848),r=_(r,o,i,n,e[s+9],5,568446438),n=_(n,r,o,i,e[s+14],9,-1019803690),i=_(i,n,r,o,e[s+3],14,-187363961),o=_(o,i,n,r,e[s+8],20,1163531501),r=_(r,o,i,n,e[s+13],5,-1444681467),n=_(n,r,o,i,e[s+2],9,-51403784),i=_(i,n,r,o,e[s+7],14,1735328473),r=O(r,o=_(o,i,n,r,e[s+12],20,-1926607734),i,n,e[s+5],4,-378558),n=O(n,r,o,i,e[s+8],11,-2022574463),i=O(i,n,r,o,e[s+11],16,1839030562),o=O(o,i,n,r,e[s+14],23,-35309556),r=O(r,o,i,n,e[s+1],4,-1530992060),n=O(n,r,o,i,e[s+4],11,1272893353),i=O(i,n,r,o,e[s+7],16,-155497632),o=O(o,i,n,r,e[s+10],23,-1094730640),r=O(r,o,i,n,e[s+13],4,681279174),n=O(n,r,o,i,e[s],11,-358537222),i=O(i,n,r,o,e[s+3],16,-722521979),o=O(o,i,n,r,e[s+6],23,76029189),r=O(r,o,i,n,e[s+9],4,-640364487),n=O(n,r,o,i,e[s+12],11,-421815835),i=O(i,n,r,o,e[s+15],16,530742520),r=E(r,o=O(o,i,n,r,e[s+2],23,-995338651),i,n,e[s],6,-198630844),n=E(n,r,o,i,e[s+7],10,1126891415),i=E(i,n,r,o,e[s+14],15,-1416354905),o=E(o,i,n,r,e[s+5],21,-57434055),r=E(r,o,i,n,e[s+12],6,1700485571),n=E(n,r,o,i,e[s+3],10,-1894986606),i=E(i,n,r,o,e[s+10],15,-1051523),o=E(o,i,n,r,e[s+1],21,-2054922799),r=E(r,o,i,n,e[s+8],6,1873313359),n=E(n,r,o,i,e[s+15],10,-30611744),i=E(i,n,r,o,e[s+6],15,-1560198380),o=E(o,i,n,r,e[s+13],21,1309151649),r=E(r,o,i,n,e[s+4],6,-145523070),n=E(n,r,o,i,e[s+11],10,-1120210379),i=E(i,n,r,o,e[s+2],15,718787259),o=E(o,i,n,r,e[s+9],21,-343485551),r=m(r,a),o=m(o,u),i=m(i,l),n=m(n,p)}return[r,o,i,n]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(v(t)),o=0;o<t;o+=8)r[o>>5]|=(255&e[o/8])<<o%32;return r}(e),8*e.length))})),T=function(e,t,r){var o=(e=e||{}).random||(e.rng||n)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=o[i];return t}return p(o)};function P(e,t,r,o){switch(e){case 0:return t&r^~t&o;case 1:case 3:return t^r^o;case 2:return t&r^t&o^r&o}}function A(e,t){return e<<t|e>>>32-t}const I=y("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var o=unescape(encodeURIComponent(e));e=[];for(var i=0;i<o.length;++i)e.push(o.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var n=e.length/4+2,s=Math.ceil(n/16),a=new Array(s),u=0;u<s;++u){for(var l=new Uint32Array(16),p=0;p<16;++p)l[p]=e[64*u+4*p]<<24|e[64*u+4*p+1]<<16|e[64*u+4*p+2]<<8|e[64*u+4*p+3];a[u]=l}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(var c=0;c<s;++c){for(var g=new Uint32Array(80),d=0;d<16;++d)g[d]=a[c][d];for(var f=16;f<80;++f)g[f]=A(g[f-3]^g[f-8]^g[f-14]^g[f-16],1);for(var h=r[0],b=r[1],y=r[2],v=r[3],m=r[4],R=0;R<80;++R){var S=Math.floor(R/20),_=A(h,5)+P(S,b,y,v)+m+t[S]+g[R]>>>0;m=v,v=y,y=A(b,30)>>>0,b=h,h=_}r[0]=r[0]+h>>>0,r[1]=r[1]+b>>>0,r[2]=r[2]+y>>>0,r[3]=r[3]+v>>>0,r[4]=r[4]+m>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]})),C="00000000-0000-0000-0000-000000000000",F=function(e){if(!a(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},973:(e,t,r)=>{var o=r(3019),i=o,n=Function("return this")();i.exportSymbol("proto.filagree.v1.ChunkData",null,n),i.exportSymbol("proto.filagree.v1.ChunkData.TransferData",null,n),i.exportSymbol("proto.filagree.v1.Errno",null,n),i.exportSymbol("proto.filagree.v1.OpRequest",null,n),i.exportSymbol("proto.filagree.v1.OpRequest.Target",null,n),i.exportSymbol("proto.filagree.v1.OpRequests",null,n),i.exportSymbol("proto.filagree.v1.OpResult",null,n),i.exportSymbol("proto.filagree.v1.OpResults",null,n),i.exportSymbol("proto.filagree.v1.Opcode",null,n),i.exportSymbol("proto.filagree.v1.ResourceData",null,n),i.exportSymbol("proto.filagree.v1.ResourceData.ResourceType",null,n),i.exportSymbol("proto.filagree.v1.RxStatus",null,n),i.exportSymbol("proto.filagree.v1.RxStatus.ChunkDesc",null,n),i.exportSymbol("proto.filagree.v1.RxStatus.Status",null,n),i.exportSymbol("proto.filagree.v1.Zip",null,n),proto.filagree.v1.Zip=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.filagree.v1.Zip,o.Message),i.DEBUG&&!COMPILED&&(proto.filagree.v1.Zip.displayName="proto.filagree.v1.Zip"),proto.filagree.v1.OpRequests=function(e){o.Message.initialize(this,e,0,-1,proto.filagree.v1.OpRequests.repeatedFields_,null)},i.inherits(proto.filagree.v1.OpRequests,o.Message),i.DEBUG&&!COMPILED&&(proto.filagree.v1.OpRequests.displayName="proto.filagree.v1.OpRequests"),proto.filagree.v1.OpRequest=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.filagree.v1.OpRequest,o.Message),i.DEBUG&&!COMPILED&&(proto.filagree.v1.OpRequest.displayName="proto.filagree.v1.OpRequest"),proto.filagree.v1.OpResults=function(e){o.Message.initialize(this,e,0,-1,proto.filagree.v1.OpResults.repeatedFields_,null)},i.inherits(proto.filagree.v1.OpResults,o.Message),i.DEBUG&&!COMPILED&&(proto.filagree.v1.OpResults.displayName="proto.filagree.v1.OpResults"),proto.filagree.v1.OpResult=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.filagree.v1.OpResult,o.Message),i.DEBUG&&!COMPILED&&(proto.filagree.v1.OpResult.displayName="proto.filagree.v1.OpResult"),proto.filagree.v1.ResourceData=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.filagree.v1.ResourceData,o.Message),i.DEBUG&&!COMPILED&&(proto.filagree.v1.ResourceData.displayName="proto.filagree.v1.ResourceData"),proto.filagree.v1.RxStatus=function(e){o.Message.initialize(this,e,0,-1,proto.filagree.v1.RxStatus.repeatedFields_,null)},i.inherits(proto.filagree.v1.RxStatus,o.Message),i.DEBUG&&!COMPILED&&(proto.filagree.v1.RxStatus.displayName="proto.filagree.v1.RxStatus"),proto.filagree.v1.RxStatus.ChunkDesc=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.filagree.v1.RxStatus.ChunkDesc,o.Message),i.DEBUG&&!COMPILED&&(proto.filagree.v1.RxStatus.ChunkDesc.displayName="proto.filagree.v1.RxStatus.ChunkDesc"),proto.filagree.v1.ChunkData=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.filagree.v1.ChunkData,o.Message),i.DEBUG&&!COMPILED&&(proto.filagree.v1.ChunkData.displayName="proto.filagree.v1.ChunkData"),proto.filagree.v1.ChunkData.TransferData=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.filagree.v1.ChunkData.TransferData,o.Message),i.DEBUG&&!COMPILED&&(proto.filagree.v1.ChunkData.TransferData.displayName="proto.filagree.v1.ChunkData.TransferData"),o.Message.GENERATE_TO_OBJECT&&(proto.filagree.v1.Zip.prototype.toObject=function(e){return proto.filagree.v1.Zip.toObject(e,this)},proto.filagree.v1.Zip.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.filagree.v1.Zip.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.filagree.v1.Zip;return proto.filagree.v1.Zip.deserializeBinaryFromReader(r,t)},proto.filagree.v1.Zip.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},proto.filagree.v1.Zip.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.filagree.v1.Zip.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.filagree.v1.Zip.serializeBinaryToWriter=function(e,t){},proto.filagree.v1.OpRequests.repeatedFields_=[1],o.Message.GENERATE_TO_OBJECT&&(proto.filagree.v1.OpRequests.prototype.toObject=function(e){return proto.filagree.v1.OpRequests.toObject(e,this)},proto.filagree.v1.OpRequests.toObject=function(e,t){var r={requestsList:o.Message.toObjectList(t.getRequestsList(),proto.filagree.v1.OpRequest.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.filagree.v1.OpRequests.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.filagree.v1.OpRequests;return proto.filagree.v1.OpRequests.deserializeBinaryFromReader(r,t)},proto.filagree.v1.OpRequests.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new proto.filagree.v1.OpRequest;t.readMessage(r,proto.filagree.v1.OpRequest.deserializeBinaryFromReader),e.addRequests(r)}else t.skipField();return e},proto.filagree.v1.OpRequests.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.filagree.v1.OpRequests.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.filagree.v1.OpRequests.serializeBinaryToWriter=function(e,t){var r;(r=e.getRequestsList()).length>0&&t.writeRepeatedMessage(1,r,proto.filagree.v1.OpRequest.serializeBinaryToWriter)},proto.filagree.v1.OpRequests.prototype.getRequestsList=function(){return o.Message.getRepeatedWrapperField(this,proto.filagree.v1.OpRequest,1)},proto.filagree.v1.OpRequests.prototype.setRequestsList=function(e){return o.Message.setRepeatedWrapperField(this,1,e)},proto.filagree.v1.OpRequests.prototype.addRequests=function(e,t){return o.Message.addToRepeatedWrapperField(this,1,e,proto.filagree.v1.OpRequest,t)},proto.filagree.v1.OpRequests.prototype.clearRequestsList=function(){return this.setRequestsList([])},o.Message.GENERATE_TO_OBJECT&&(proto.filagree.v1.OpRequest.prototype.toObject=function(e){return proto.filagree.v1.OpRequest.toObject(e,this)},proto.filagree.v1.OpRequest.toObject=function(e,t){var r,i={opcode:o.Message.getFieldWithDefault(t,1,0),path:o.Message.getFieldWithDefault(t,2,""),target:o.Message.getFieldWithDefault(t,3,0),argsMap:(r=t.getArgsMap())?r.toObject(e,void 0):[]};return e&&(i.$jspbMessageInstance=t),i}),proto.filagree.v1.OpRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.filagree.v1.OpRequest;return proto.filagree.v1.OpRequest.deserializeBinaryFromReader(r,t)},proto.filagree.v1.OpRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setOpcode(r);break;case 2:r=t.readString(),e.setPath(r);break;case 3:r=t.readEnum(),e.setTarget(r);break;case 4:r=e.getArgsMap(),t.readMessage(r,(function(e,t){o.Map.deserializeBinary(e,t,o.BinaryReader.prototype.readString,o.BinaryReader.prototype.readString,null,"","")}));break;default:t.skipField()}return e},proto.filagree.v1.OpRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.filagree.v1.OpRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.filagree.v1.OpRequest.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getOpcode())&&t.writeEnum(1,r),(r=e.getPath()).length>0&&t.writeString(2,r),0!==(r=e.getTarget())&&t.writeEnum(3,r),(r=e.getArgsMap(!0))&&r.getLength()>0&&r.serializeBinary(4,t,o.BinaryWriter.prototype.writeString,o.BinaryWriter.prototype.writeString)},proto.filagree.v1.OpRequest.Target={AGENT:0,SERVER:1},proto.filagree.v1.OpRequest.prototype.getOpcode=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.filagree.v1.OpRequest.prototype.setOpcode=function(e){return o.Message.setProto3EnumField(this,1,e)},proto.filagree.v1.OpRequest.prototype.getPath=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.filagree.v1.OpRequest.prototype.setPath=function(e){return o.Message.setProto3StringField(this,2,e)},proto.filagree.v1.OpRequest.prototype.getTarget=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.filagree.v1.OpRequest.prototype.setTarget=function(e){return o.Message.setProto3EnumField(this,3,e)},proto.filagree.v1.OpRequest.prototype.getArgsMap=function(e){return o.Message.getMapField(this,4,e,null)},proto.filagree.v1.OpRequest.prototype.clearArgsMap=function(){return this.getArgsMap().clear(),this},proto.filagree.v1.OpResults.repeatedFields_=[1],o.Message.GENERATE_TO_OBJECT&&(proto.filagree.v1.OpResults.prototype.toObject=function(e){return proto.filagree.v1.OpResults.toObject(e,this)},proto.filagree.v1.OpResults.toObject=function(e,t){var r={resultsList:o.Message.toObjectList(t.getResultsList(),proto.filagree.v1.OpResult.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.filagree.v1.OpResults.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.filagree.v1.OpResults;return proto.filagree.v1.OpResults.deserializeBinaryFromReader(r,t)},proto.filagree.v1.OpResults.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new proto.filagree.v1.OpResult;t.readMessage(r,proto.filagree.v1.OpResult.deserializeBinaryFromReader),e.addResults(r)}else t.skipField();return e},proto.filagree.v1.OpResults.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.filagree.v1.OpResults.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.filagree.v1.OpResults.serializeBinaryToWriter=function(e,t){var r;(r=e.getResultsList()).length>0&&t.writeRepeatedMessage(1,r,proto.filagree.v1.OpResult.serializeBinaryToWriter)},proto.filagree.v1.OpResults.prototype.getResultsList=function(){return o.Message.getRepeatedWrapperField(this,proto.filagree.v1.OpResult,1)},proto.filagree.v1.OpResults.prototype.setResultsList=function(e){return o.Message.setRepeatedWrapperField(this,1,e)},proto.filagree.v1.OpResults.prototype.addResults=function(e,t){return o.Message.addToRepeatedWrapperField(this,1,e,proto.filagree.v1.OpResult,t)},proto.filagree.v1.OpResults.prototype.clearResultsList=function(){return this.setResultsList([])},o.Message.GENERATE_TO_OBJECT&&(proto.filagree.v1.OpResult.prototype.toObject=function(e){return proto.filagree.v1.OpResult.toObject(e,this)},proto.filagree.v1.OpResult.toObject=function(e,t){var r,i={request:(r=t.getRequest())&&proto.filagree.v1.OpRequest.toObject(e,r),err:o.Message.getFieldWithDefault(t,2,0),result:(r=t.getResult())&&proto.filagree.v1.ResourceData.toObject(e,r),msg:o.Message.getFieldWithDefault(t,4,"")};return e&&(i.$jspbMessageInstance=t),i}),proto.filagree.v1.OpResult.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.filagree.v1.OpResult;return proto.filagree.v1.OpResult.deserializeBinaryFromReader(r,t)},proto.filagree.v1.OpResult.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.filagree.v1.OpRequest;t.readMessage(r,proto.filagree.v1.OpRequest.deserializeBinaryFromReader),e.setRequest(r);break;case 2:r=t.readEnum(),e.setErr(r);break;case 3:r=new proto.filagree.v1.ResourceData,t.readMessage(r,proto.filagree.v1.ResourceData.deserializeBinaryFromReader),e.setResult(r);break;case 4:r=t.readString(),e.setMsg(r);break;default:t.skipField()}return e},proto.filagree.v1.OpResult.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.filagree.v1.OpResult.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.filagree.v1.OpResult.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getRequest())&&t.writeMessage(1,r,proto.filagree.v1.OpRequest.serializeBinaryToWriter),0!==(r=e.getErr())&&t.writeEnum(2,r),null!=(r=e.getResult())&&t.writeMessage(3,r,proto.filagree.v1.ResourceData.serializeBinaryToWriter),(r=e.getMsg()).length>0&&t.writeString(4,r)},proto.filagree.v1.OpResult.prototype.getRequest=function(){return o.Message.getWrapperField(this,proto.filagree.v1.OpRequest,1)},proto.filagree.v1.OpResult.prototype.setRequest=function(e){return o.Message.setWrapperField(this,1,e)},proto.filagree.v1.OpResult.prototype.clearRequest=function(){return this.setRequest(void 0)},proto.filagree.v1.OpResult.prototype.hasRequest=function(){return null!=o.Message.getField(this,1)},proto.filagree.v1.OpResult.prototype.getErr=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.filagree.v1.OpResult.prototype.setErr=function(e){return o.Message.setProto3EnumField(this,2,e)},proto.filagree.v1.OpResult.prototype.getResult=function(){return o.Message.getWrapperField(this,proto.filagree.v1.ResourceData,3)},proto.filagree.v1.OpResult.prototype.setResult=function(e){return o.Message.setWrapperField(this,3,e)},proto.filagree.v1.OpResult.prototype.clearResult=function(){return this.setResult(void 0)},proto.filagree.v1.OpResult.prototype.hasResult=function(){return null!=o.Message.getField(this,3)},proto.filagree.v1.OpResult.prototype.getMsg=function(){return o.Message.getFieldWithDefault(this,4,"")},proto.filagree.v1.OpResult.prototype.setMsg=function(e){return o.Message.setProto3StringField(this,4,e)},o.Message.GENERATE_TO_OBJECT&&(proto.filagree.v1.ResourceData.prototype.toObject=function(e){return proto.filagree.v1.ResourceData.toObject(e,this)},proto.filagree.v1.ResourceData.toObject=function(e,t){var r={path:o.Message.getFieldWithDefault(t,1,""),data:o.Message.getFieldWithDefault(t,2,""),type:o.Message.getFieldWithDefault(t,3,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.filagree.v1.ResourceData.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.filagree.v1.ResourceData;return proto.filagree.v1.ResourceData.deserializeBinaryFromReader(r,t)},proto.filagree.v1.ResourceData.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setPath(r);break;case 2:r=t.readString(),e.setData(r);break;case 3:r=t.readEnum(),e.setType(r);break;default:t.skipField()}return e},proto.filagree.v1.ResourceData.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.filagree.v1.ResourceData.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.filagree.v1.ResourceData.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPath()).length>0&&t.writeString(1,r),(r=e.getData()).length>0&&t.writeString(2,r),0!==(r=e.getType())&&t.writeEnum(3,r)},proto.filagree.v1.ResourceData.ResourceType={NONE:0,DIRINFO:1,FILE:2,SAS:32},proto.filagree.v1.ResourceData.prototype.getPath=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.filagree.v1.ResourceData.prototype.setPath=function(e){return o.Message.setProto3StringField(this,1,e)},proto.filagree.v1.ResourceData.prototype.getData=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.filagree.v1.ResourceData.prototype.setData=function(e){return o.Message.setProto3StringField(this,2,e)},proto.filagree.v1.ResourceData.prototype.getType=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.filagree.v1.ResourceData.prototype.setType=function(e){return o.Message.setProto3EnumField(this,3,e)},proto.filagree.v1.RxStatus.repeatedFields_=[3],o.Message.GENERATE_TO_OBJECT&&(proto.filagree.v1.RxStatus.prototype.toObject=function(e){return proto.filagree.v1.RxStatus.toObject(e,this)},proto.filagree.v1.RxStatus.toObject=function(e,t){var r={status:o.Message.getFieldWithDefault(t,1,0),path:o.Message.getFieldWithDefault(t,2,""),chunkstosendList:o.Message.toObjectList(t.getChunkstosendList(),proto.filagree.v1.RxStatus.ChunkDesc.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.filagree.v1.RxStatus.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.filagree.v1.RxStatus;return proto.filagree.v1.RxStatus.deserializeBinaryFromReader(r,t)},proto.filagree.v1.RxStatus.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setStatus(r);break;case 2:r=t.readString(),e.setPath(r);break;case 3:r=new proto.filagree.v1.RxStatus.ChunkDesc,t.readMessage(r,proto.filagree.v1.RxStatus.ChunkDesc.deserializeBinaryFromReader),e.addChunkstosend(r);break;default:t.skipField()}return e},proto.filagree.v1.RxStatus.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.filagree.v1.RxStatus.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.filagree.v1.RxStatus.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getStatus())&&t.writeEnum(1,r),(r=e.getPath()).length>0&&t.writeString(2,r),(r=e.getChunkstosendList()).length>0&&t.writeRepeatedMessage(3,r,proto.filagree.v1.RxStatus.ChunkDesc.serializeBinaryToWriter)},proto.filagree.v1.RxStatus.Status={INIT:0,DATA:1,COPY:2,DONE:3,FAIL:4},o.Message.GENERATE_TO_OBJECT&&(proto.filagree.v1.RxStatus.ChunkDesc.prototype.toObject=function(e){return proto.filagree.v1.RxStatus.ChunkDesc.toObject(e,this)},proto.filagree.v1.RxStatus.ChunkDesc.toObject=function(e,t){var r={from:o.Message.getFieldWithDefault(t,1,0),size:o.Message.getFieldWithDefault(t,2,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.filagree.v1.RxStatus.ChunkDesc.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.filagree.v1.RxStatus.ChunkDesc;return proto.filagree.v1.RxStatus.ChunkDesc.deserializeBinaryFromReader(r,t)},proto.filagree.v1.RxStatus.ChunkDesc.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readInt64();e.setFrom(r);break;case 2:r=t.readInt64(),e.setSize(r);break;default:t.skipField()}return e},proto.filagree.v1.RxStatus.ChunkDesc.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.filagree.v1.RxStatus.ChunkDesc.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.filagree.v1.RxStatus.ChunkDesc.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getFrom())&&t.writeInt64(1,r),0!==(r=e.getSize())&&t.writeInt64(2,r)},proto.filagree.v1.RxStatus.ChunkDesc.prototype.getFrom=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.filagree.v1.RxStatus.ChunkDesc.prototype.setFrom=function(e){return o.Message.setProto3IntField(this,1,e)},proto.filagree.v1.RxStatus.ChunkDesc.prototype.getSize=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.filagree.v1.RxStatus.ChunkDesc.prototype.setSize=function(e){return o.Message.setProto3IntField(this,2,e)},proto.filagree.v1.RxStatus.prototype.getStatus=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.filagree.v1.RxStatus.prototype.setStatus=function(e){return o.Message.setProto3EnumField(this,1,e)},proto.filagree.v1.RxStatus.prototype.getPath=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.filagree.v1.RxStatus.prototype.setPath=function(e){return o.Message.setProto3StringField(this,2,e)},proto.filagree.v1.RxStatus.prototype.getChunkstosendList=function(){return o.Message.getRepeatedWrapperField(this,proto.filagree.v1.RxStatus.ChunkDesc,3)},proto.filagree.v1.RxStatus.prototype.setChunkstosendList=function(e){return o.Message.setRepeatedWrapperField(this,3,e)},proto.filagree.v1.RxStatus.prototype.addChunkstosend=function(e,t){return o.Message.addToRepeatedWrapperField(this,3,e,proto.filagree.v1.RxStatus.ChunkDesc,t)},proto.filagree.v1.RxStatus.prototype.clearChunkstosendList=function(){return this.setChunkstosendList([])},o.Message.GENERATE_TO_OBJECT&&(proto.filagree.v1.ChunkData.prototype.toObject=function(e){return proto.filagree.v1.ChunkData.toObject(e,this)},proto.filagree.v1.ChunkData.toObject=function(e,t){var r,i={resource:(r=t.getResource())&&proto.filagree.v1.ChunkData.TransferData.toObject(e,r),from:o.Message.getFieldWithDefault(t,2,0),next:o.Message.getFieldWithDefault(t,3,0),data:t.getData_asB64()};return e&&(i.$jspbMessageInstance=t),i}),proto.filagree.v1.ChunkData.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.filagree.v1.ChunkData;return proto.filagree.v1.ChunkData.deserializeBinaryFromReader(r,t)},proto.filagree.v1.ChunkData.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.filagree.v1.ChunkData.TransferData;t.readMessage(r,proto.filagree.v1.ChunkData.TransferData.deserializeBinaryFromReader),e.setResource(r);break;case 2:r=t.readInt64(),e.setFrom(r);break;case 3:r=t.readInt64(),e.setNext(r);break;case 4:r=t.readBytes(),e.setData(r);break;default:t.skipField()}return e},proto.filagree.v1.ChunkData.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.filagree.v1.ChunkData.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.filagree.v1.ChunkData.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getResource())&&t.writeMessage(1,r,proto.filagree.v1.ChunkData.TransferData.serializeBinaryToWriter),0!==(r=e.getFrom())&&t.writeInt64(2,r),0!==(r=e.getNext())&&t.writeInt64(3,r),(r=e.getData_asU8()).length>0&&t.writeBytes(4,r)},o.Message.GENERATE_TO_OBJECT&&(proto.filagree.v1.ChunkData.TransferData.prototype.toObject=function(e){return proto.filagree.v1.ChunkData.TransferData.toObject(e,this)},proto.filagree.v1.ChunkData.TransferData.toObject=function(e,t){var r={path:o.Message.getFieldWithDefault(t,1,""),size:o.Message.getFieldWithDefault(t,2,0),checksum:t.getChecksum_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.filagree.v1.ChunkData.TransferData.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.filagree.v1.ChunkData.TransferData;return proto.filagree.v1.ChunkData.TransferData.deserializeBinaryFromReader(r,t)},proto.filagree.v1.ChunkData.TransferData.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setPath(r);break;case 2:r=t.readInt64(),e.setSize(r);break;case 3:r=t.readBytes(),e.setChecksum(r);break;default:t.skipField()}return e},proto.filagree.v1.ChunkData.TransferData.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.filagree.v1.ChunkData.TransferData.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.filagree.v1.ChunkData.TransferData.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPath()).length>0&&t.writeString(1,r),0!==(r=e.getSize())&&t.writeInt64(2,r),(r=e.getChecksum_asU8()).length>0&&t.writeBytes(3,r)},proto.filagree.v1.ChunkData.TransferData.prototype.getPath=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.filagree.v1.ChunkData.TransferData.prototype.setPath=function(e){return o.Message.setProto3StringField(this,1,e)},proto.filagree.v1.ChunkData.TransferData.prototype.getSize=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.filagree.v1.ChunkData.TransferData.prototype.setSize=function(e){return o.Message.setProto3IntField(this,2,e)},proto.filagree.v1.ChunkData.TransferData.prototype.getChecksum=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.filagree.v1.ChunkData.TransferData.prototype.getChecksum_asB64=function(){return o.Message.bytesAsB64(this.getChecksum())},proto.filagree.v1.ChunkData.TransferData.prototype.getChecksum_asU8=function(){return o.Message.bytesAsU8(this.getChecksum())},proto.filagree.v1.ChunkData.TransferData.prototype.setChecksum=function(e){return o.Message.setProto3BytesField(this,3,e)},proto.filagree.v1.ChunkData.prototype.getResource=function(){return o.Message.getWrapperField(this,proto.filagree.v1.ChunkData.TransferData,1)},proto.filagree.v1.ChunkData.prototype.setResource=function(e){return o.Message.setWrapperField(this,1,e)},proto.filagree.v1.ChunkData.prototype.clearResource=function(){return this.setResource(void 0)},proto.filagree.v1.ChunkData.prototype.hasResource=function(){return null!=o.Message.getField(this,1)},proto.filagree.v1.ChunkData.prototype.getFrom=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.filagree.v1.ChunkData.prototype.setFrom=function(e){return o.Message.setProto3IntField(this,2,e)},proto.filagree.v1.ChunkData.prototype.getNext=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.filagree.v1.ChunkData.prototype.setNext=function(e){return o.Message.setProto3IntField(this,3,e)},proto.filagree.v1.ChunkData.prototype.getData=function(){return o.Message.getFieldWithDefault(this,4,"")},proto.filagree.v1.ChunkData.prototype.getData_asB64=function(){return o.Message.bytesAsB64(this.getData())},proto.filagree.v1.ChunkData.prototype.getData_asU8=function(){return o.Message.bytesAsU8(this.getData())},proto.filagree.v1.ChunkData.prototype.setData=function(e){return o.Message.setProto3BytesField(this,4,e)},proto.filagree.v1.Opcode={NOP:0,INFO:1,UPLOAD:2,DOWNLOAD:3,DELETE:4,MKDIR:5,READFILE:6,WAITFOR:7,WRITEFILE:8,MV:9,CP:10,CHMOD:11,CHOWN:12,P2PUP:13,P2PDN:14,BLOBPUT:15,BLOBGET:16,BLOBSAS:17},proto.filagree.v1.Errno={OK:0,ERR_DENIED:1,ERR_TIMEOUT:2,ERR_NOTIMPLEMENTED:3,ERR_OTHER:254},i.object.extend(t,proto.filagree.v1)},1769:(e,t,r)=>{var o=r(973),i=r(3037).grpc,n=function(){function e(){}return e.serviceName="filagree.v1.Filagree",e}();function s(e,t){this.serviceHost=e,this.options=t||{}}n.AgentGetOps={methodName:"AgentGetOps",service:n,requestStream:!1,responseStream:!0,requestType:o.Zip,responseType:o.OpRequests},n.AgentUpload={methodName:"AgentUpload",service:n,requestStream:!0,responseStream:!0,requestType:o.ChunkData,responseType:o.RxStatus},n.AgentDownload={methodName:"AgentDownload",service:n,requestStream:!0,responseStream:!0,requestType:o.RxStatus,responseType:o.ChunkData},n.SendInfo={methodName:"SendInfo",service:n,requestStream:!1,responseStream:!1,requestType:o.OpResults,responseType:o.Zip},n.ServerReqOp={methodName:"ServerReqOp",service:n,requestStream:!1,responseStream:!1,requestType:o.OpRequests,responseType:o.OpResults},t.Filagree=n,s.prototype.agentGetOps=function(e,t){var r={data:[],end:[],status:[]},o=i.invoke(n.AgentGetOps,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onMessage:function(e){r.data.forEach((function(t){t(e)}))},onEnd:function(e,t,o){r.status.forEach((function(r){r({code:e,details:t,metadata:o})})),r.end.forEach((function(r){r({code:e,details:t,metadata:o})})),r=null}});return{on:function(e,t){return r[e].push(t),this},cancel:function(){r=null,o.close()}}},s.prototype.agentUpload=function(e){var t={data:[],end:[],status:[]},r=i.client(n.AgentUpload,{host:this.serviceHost,metadata:e,transport:this.options.transport});return r.onEnd((function(e,r,o){t.status.forEach((function(t){t({code:e,details:r,metadata:o})})),t.end.forEach((function(t){t({code:e,details:r,metadata:o})})),t=null})),r.onMessage((function(e){t.data.forEach((function(t){t(e)}))})),r.start(e),{on:function(e,r){return t[e].push(r),this},write:function(e){return r.send(e),this},end:function(){r.finishSend()},cancel:function(){t=null,r.close()}}},s.prototype.agentDownload=function(e){var t={data:[],end:[],status:[]},r=i.client(n.AgentDownload,{host:this.serviceHost,metadata:e,transport:this.options.transport});return r.onEnd((function(e,r,o){t.status.forEach((function(t){t({code:e,details:r,metadata:o})})),t.end.forEach((function(t){t({code:e,details:r,metadata:o})})),t=null})),r.onMessage((function(e){t.data.forEach((function(t){t(e)}))})),r.start(e),{on:function(e,r){return t[e].push(r),this},write:function(e){return r.send(e),this},end:function(){r.finishSend()},cancel:function(){t=null,r.close()}}},s.prototype.sendInfo=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=i.unary(n.SendInfo,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==i.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},s.prototype.serverReqOp=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=i.unary(n.ServerReqOp,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==i.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},t.FilagreeClient=s},1363:(e,t,r)=>{var o=r(3019),i=o,n=Function("return this")(),s=r(2641);i.object.extend(proto,s),i.exportSymbol("proto.rambo.v1.Ack",null,n),i.exportSymbol("proto.rambo.v1.AckStatus",null,n),i.exportSymbol("proto.rambo.v1.CommandRequest",null,n),i.exportSymbol("proto.rambo.v1.CommandResponse",null,n),i.exportSymbol("proto.rambo.v1.CommandResponseLevel",null,n),i.exportSymbol("proto.rambo.v1.CommandResult",null,n),i.exportSymbol("proto.rambo.v1.CommandReturn",null,n),i.exportSymbol("proto.rambo.v1.CommandReturnType",null,n),i.exportSymbol("proto.rambo.v1.ExclusiveCommandChannelMessage",null,n),i.exportSymbol("proto.rambo.v1.ExclusiveCommandChannelMessage.ContentCase",null,n),i.exportSymbol("proto.rambo.v1.ExecutionContext",null,n),i.exportSymbol("proto.rambo.v1.Heartbeat",null,n),i.exportSymbol("proto.rambo.v1.RequestChannelMessage",null,n),i.exportSymbol("proto.rambo.v1.RequestChannelMessage.ContentCase",null,n),i.exportSymbol("proto.rambo.v1.ResponseChannelMessage",null,n),i.exportSymbol("proto.rambo.v1.ResponseChannelMessage.ContentCase",null,n),i.exportSymbol("proto.rambo.v1.ResultStatus",null,n),i.exportSymbol("proto.rambo.v1.Stage",null,n),proto.rambo.v1.Heartbeat=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.rambo.v1.Heartbeat,o.Message),i.DEBUG&&!COMPILED&&(proto.rambo.v1.Heartbeat.displayName="proto.rambo.v1.Heartbeat"),proto.rambo.v1.RequestChannelMessage=function(e){o.Message.initialize(this,e,0,-1,null,proto.rambo.v1.RequestChannelMessage.oneofGroups_)},i.inherits(proto.rambo.v1.RequestChannelMessage,o.Message),i.DEBUG&&!COMPILED&&(proto.rambo.v1.RequestChannelMessage.displayName="proto.rambo.v1.RequestChannelMessage"),proto.rambo.v1.ResponseChannelMessage=function(e){o.Message.initialize(this,e,0,-1,null,proto.rambo.v1.ResponseChannelMessage.oneofGroups_)},i.inherits(proto.rambo.v1.ResponseChannelMessage,o.Message),i.DEBUG&&!COMPILED&&(proto.rambo.v1.ResponseChannelMessage.displayName="proto.rambo.v1.ResponseChannelMessage"),proto.rambo.v1.ExclusiveCommandChannelMessage=function(e){o.Message.initialize(this,e,0,-1,null,proto.rambo.v1.ExclusiveCommandChannelMessage.oneofGroups_)},i.inherits(proto.rambo.v1.ExclusiveCommandChannelMessage,o.Message),i.DEBUG&&!COMPILED&&(proto.rambo.v1.ExclusiveCommandChannelMessage.displayName="proto.rambo.v1.ExclusiveCommandChannelMessage"),proto.rambo.v1.CommandResponse=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.rambo.v1.CommandResponse,o.Message),i.DEBUG&&!COMPILED&&(proto.rambo.v1.CommandResponse.displayName="proto.rambo.v1.CommandResponse"),proto.rambo.v1.Ack=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.rambo.v1.Ack,o.Message),i.DEBUG&&!COMPILED&&(proto.rambo.v1.Ack.displayName="proto.rambo.v1.Ack"),proto.rambo.v1.CommandReturn=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.rambo.v1.CommandReturn,o.Message),i.DEBUG&&!COMPILED&&(proto.rambo.v1.CommandReturn.displayName="proto.rambo.v1.CommandReturn"),proto.rambo.v1.CommandResult=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.rambo.v1.CommandResult,o.Message),i.DEBUG&&!COMPILED&&(proto.rambo.v1.CommandResult.displayName="proto.rambo.v1.CommandResult"),proto.rambo.v1.CommandRequest=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.rambo.v1.CommandRequest,o.Message),i.DEBUG&&!COMPILED&&(proto.rambo.v1.CommandRequest.displayName="proto.rambo.v1.CommandRequest"),proto.rambo.v1.ExecutionContext=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.rambo.v1.ExecutionContext,o.Message),i.DEBUG&&!COMPILED&&(proto.rambo.v1.ExecutionContext.displayName="proto.rambo.v1.ExecutionContext"),o.Message.GENERATE_TO_OBJECT&&(proto.rambo.v1.Heartbeat.prototype.toObject=function(e){return proto.rambo.v1.Heartbeat.toObject(e,this)},proto.rambo.v1.Heartbeat.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.rambo.v1.Heartbeat.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.rambo.v1.Heartbeat;return proto.rambo.v1.Heartbeat.deserializeBinaryFromReader(r,t)},proto.rambo.v1.Heartbeat.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},proto.rambo.v1.Heartbeat.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.rambo.v1.Heartbeat.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.rambo.v1.Heartbeat.serializeBinaryToWriter=function(e,t){},proto.rambo.v1.RequestChannelMessage.oneofGroups_=[[1,2]],proto.rambo.v1.RequestChannelMessage.ContentCase={CONTENT_NOT_SET:0,HEARTBEAT:1,COMMANDREQUEST:2},proto.rambo.v1.RequestChannelMessage.prototype.getContentCase=function(){return o.Message.computeOneofCase(this,proto.rambo.v1.RequestChannelMessage.oneofGroups_[0])},o.Message.GENERATE_TO_OBJECT&&(proto.rambo.v1.RequestChannelMessage.prototype.toObject=function(e){return proto.rambo.v1.RequestChannelMessage.toObject(e,this)},proto.rambo.v1.RequestChannelMessage.toObject=function(e,t){var r,o={heartbeat:(r=t.getHeartbeat())&&proto.rambo.v1.Heartbeat.toObject(e,r),commandrequest:(r=t.getCommandrequest())&&proto.rambo.v1.CommandRequest.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.rambo.v1.RequestChannelMessage.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.rambo.v1.RequestChannelMessage;return proto.rambo.v1.RequestChannelMessage.deserializeBinaryFromReader(r,t)},proto.rambo.v1.RequestChannelMessage.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.rambo.v1.Heartbeat;t.readMessage(r,proto.rambo.v1.Heartbeat.deserializeBinaryFromReader),e.setHeartbeat(r);break;case 2:r=new proto.rambo.v1.CommandRequest,t.readMessage(r,proto.rambo.v1.CommandRequest.deserializeBinaryFromReader),e.setCommandrequest(r);break;default:t.skipField()}return e},proto.rambo.v1.RequestChannelMessage.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.rambo.v1.RequestChannelMessage.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.rambo.v1.RequestChannelMessage.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getHeartbeat())&&t.writeMessage(1,r,proto.rambo.v1.Heartbeat.serializeBinaryToWriter),null!=(r=e.getCommandrequest())&&t.writeMessage(2,r,proto.rambo.v1.CommandRequest.serializeBinaryToWriter)},proto.rambo.v1.RequestChannelMessage.prototype.getHeartbeat=function(){return o.Message.getWrapperField(this,proto.rambo.v1.Heartbeat,1)},proto.rambo.v1.RequestChannelMessage.prototype.setHeartbeat=function(e){return o.Message.setOneofWrapperField(this,1,proto.rambo.v1.RequestChannelMessage.oneofGroups_[0],e)},proto.rambo.v1.RequestChannelMessage.prototype.clearHeartbeat=function(){return this.setHeartbeat(void 0)},proto.rambo.v1.RequestChannelMessage.prototype.hasHeartbeat=function(){return null!=o.Message.getField(this,1)},proto.rambo.v1.RequestChannelMessage.prototype.getCommandrequest=function(){return o.Message.getWrapperField(this,proto.rambo.v1.CommandRequest,2)},proto.rambo.v1.RequestChannelMessage.prototype.setCommandrequest=function(e){return o.Message.setOneofWrapperField(this,2,proto.rambo.v1.RequestChannelMessage.oneofGroups_[0],e)},proto.rambo.v1.RequestChannelMessage.prototype.clearCommandrequest=function(){return this.setCommandrequest(void 0)},proto.rambo.v1.RequestChannelMessage.prototype.hasCommandrequest=function(){return null!=o.Message.getField(this,2)},proto.rambo.v1.ResponseChannelMessage.oneofGroups_=[[1,2]],proto.rambo.v1.ResponseChannelMessage.ContentCase={CONTENT_NOT_SET:0,HEARTBEAT:1,COMMANDRESPONSE:2},proto.rambo.v1.ResponseChannelMessage.prototype.getContentCase=function(){return o.Message.computeOneofCase(this,proto.rambo.v1.ResponseChannelMessage.oneofGroups_[0])},o.Message.GENERATE_TO_OBJECT&&(proto.rambo.v1.ResponseChannelMessage.prototype.toObject=function(e){return proto.rambo.v1.ResponseChannelMessage.toObject(e,this)},proto.rambo.v1.ResponseChannelMessage.toObject=function(e,t){var r,o={heartbeat:(r=t.getHeartbeat())&&proto.rambo.v1.Heartbeat.toObject(e,r),commandresponse:(r=t.getCommandresponse())&&proto.rambo.v1.CommandResponse.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.rambo.v1.ResponseChannelMessage.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.rambo.v1.ResponseChannelMessage;return proto.rambo.v1.ResponseChannelMessage.deserializeBinaryFromReader(r,t)},proto.rambo.v1.ResponseChannelMessage.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.rambo.v1.Heartbeat;t.readMessage(r,proto.rambo.v1.Heartbeat.deserializeBinaryFromReader),e.setHeartbeat(r);break;case 2:r=new proto.rambo.v1.CommandResponse,t.readMessage(r,proto.rambo.v1.CommandResponse.deserializeBinaryFromReader),e.setCommandresponse(r);break;default:t.skipField()}return e},proto.rambo.v1.ResponseChannelMessage.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.rambo.v1.ResponseChannelMessage.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.rambo.v1.ResponseChannelMessage.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getHeartbeat())&&t.writeMessage(1,r,proto.rambo.v1.Heartbeat.serializeBinaryToWriter),null!=(r=e.getCommandresponse())&&t.writeMessage(2,r,proto.rambo.v1.CommandResponse.serializeBinaryToWriter)},proto.rambo.v1.ResponseChannelMessage.prototype.getHeartbeat=function(){return o.Message.getWrapperField(this,proto.rambo.v1.Heartbeat,1)},proto.rambo.v1.ResponseChannelMessage.prototype.setHeartbeat=function(e){return o.Message.setOneofWrapperField(this,1,proto.rambo.v1.ResponseChannelMessage.oneofGroups_[0],e)},proto.rambo.v1.ResponseChannelMessage.prototype.clearHeartbeat=function(){return this.setHeartbeat(void 0)},proto.rambo.v1.ResponseChannelMessage.prototype.hasHeartbeat=function(){return null!=o.Message.getField(this,1)},proto.rambo.v1.ResponseChannelMessage.prototype.getCommandresponse=function(){return o.Message.getWrapperField(this,proto.rambo.v1.CommandResponse,2)},proto.rambo.v1.ResponseChannelMessage.prototype.setCommandresponse=function(e){return o.Message.setOneofWrapperField(this,2,proto.rambo.v1.ResponseChannelMessage.oneofGroups_[0],e)},proto.rambo.v1.ResponseChannelMessage.prototype.clearCommandresponse=function(){return this.setCommandresponse(void 0)},proto.rambo.v1.ResponseChannelMessage.prototype.hasCommandresponse=function(){return null!=o.Message.getField(this,2)},proto.rambo.v1.ExclusiveCommandChannelMessage.oneofGroups_=[[1,2,3]],proto.rambo.v1.ExclusiveCommandChannelMessage.ContentCase={CONTENT_NOT_SET:0,HEARTBEAT:1,COMMANDREQUEST:2,URI:3},proto.rambo.v1.ExclusiveCommandChannelMessage.prototype.getContentCase=function(){return o.Message.computeOneofCase(this,proto.rambo.v1.ExclusiveCommandChannelMessage.oneofGroups_[0])},o.Message.GENERATE_TO_OBJECT&&(proto.rambo.v1.ExclusiveCommandChannelMessage.prototype.toObject=function(e){return proto.rambo.v1.ExclusiveCommandChannelMessage.toObject(e,this)},proto.rambo.v1.ExclusiveCommandChannelMessage.toObject=function(e,t){var r,o={heartbeat:(r=t.getHeartbeat())&&proto.rambo.v1.Heartbeat.toObject(e,r),commandrequest:(r=t.getCommandrequest())&&proto.rambo.v1.CommandRequest.toObject(e,r),uri:(r=t.getUri())&&s.RocosUri.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.rambo.v1.ExclusiveCommandChannelMessage.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.rambo.v1.ExclusiveCommandChannelMessage;return proto.rambo.v1.ExclusiveCommandChannelMessage.deserializeBinaryFromReader(r,t)},proto.rambo.v1.ExclusiveCommandChannelMessage.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.rambo.v1.Heartbeat;t.readMessage(r,proto.rambo.v1.Heartbeat.deserializeBinaryFromReader),e.setHeartbeat(r);break;case 2:r=new proto.rambo.v1.CommandRequest,t.readMessage(r,proto.rambo.v1.CommandRequest.deserializeBinaryFromReader),e.setCommandrequest(r);break;case 3:r=new s.RocosUri,t.readMessage(r,s.RocosUri.deserializeBinaryFromReader),e.setUri(r);break;default:t.skipField()}return e},proto.rambo.v1.ExclusiveCommandChannelMessage.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.rambo.v1.ExclusiveCommandChannelMessage.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.rambo.v1.ExclusiveCommandChannelMessage.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getHeartbeat())&&t.writeMessage(1,r,proto.rambo.v1.Heartbeat.serializeBinaryToWriter),null!=(r=e.getCommandrequest())&&t.writeMessage(2,r,proto.rambo.v1.CommandRequest.serializeBinaryToWriter),null!=(r=e.getUri())&&t.writeMessage(3,r,s.RocosUri.serializeBinaryToWriter)},proto.rambo.v1.ExclusiveCommandChannelMessage.prototype.getHeartbeat=function(){return o.Message.getWrapperField(this,proto.rambo.v1.Heartbeat,1)},proto.rambo.v1.ExclusiveCommandChannelMessage.prototype.setHeartbeat=function(e){return o.Message.setOneofWrapperField(this,1,proto.rambo.v1.ExclusiveCommandChannelMessage.oneofGroups_[0],e)},proto.rambo.v1.ExclusiveCommandChannelMessage.prototype.clearHeartbeat=function(){return this.setHeartbeat(void 0)},proto.rambo.v1.ExclusiveCommandChannelMessage.prototype.hasHeartbeat=function(){return null!=o.Message.getField(this,1)},proto.rambo.v1.ExclusiveCommandChannelMessage.prototype.getCommandrequest=function(){return o.Message.getWrapperField(this,proto.rambo.v1.CommandRequest,2)},proto.rambo.v1.ExclusiveCommandChannelMessage.prototype.setCommandrequest=function(e){return o.Message.setOneofWrapperField(this,2,proto.rambo.v1.ExclusiveCommandChannelMessage.oneofGroups_[0],e)},proto.rambo.v1.ExclusiveCommandChannelMessage.prototype.clearCommandrequest=function(){return this.setCommandrequest(void 0)},proto.rambo.v1.ExclusiveCommandChannelMessage.prototype.hasCommandrequest=function(){return null!=o.Message.getField(this,2)},proto.rambo.v1.ExclusiveCommandChannelMessage.prototype.getUri=function(){return o.Message.getWrapperField(this,s.RocosUri,3)},proto.rambo.v1.ExclusiveCommandChannelMessage.prototype.setUri=function(e){return o.Message.setOneofWrapperField(this,3,proto.rambo.v1.ExclusiveCommandChannelMessage.oneofGroups_[0],e)},proto.rambo.v1.ExclusiveCommandChannelMessage.prototype.clearUri=function(){return this.setUri(void 0)},proto.rambo.v1.ExclusiveCommandChannelMessage.prototype.hasUri=function(){return null!=o.Message.getField(this,3)},o.Message.GENERATE_TO_OBJECT&&(proto.rambo.v1.CommandResponse.prototype.toObject=function(e){return proto.rambo.v1.CommandResponse.toObject(e,this)},proto.rambo.v1.CommandResponse.toObject=function(e,t){var r,i={txid:o.Message.getFieldWithDefault(t,1,""),ack:(r=t.getAck())&&proto.rambo.v1.Ack.toObject(e,r),pb_return:(r=t.getReturn())&&proto.rambo.v1.CommandReturn.toObject(e,r),result:(r=t.getResult())&&proto.rambo.v1.CommandResult.toObject(e,r)};return e&&(i.$jspbMessageInstance=t),i}),proto.rambo.v1.CommandResponse.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.rambo.v1.CommandResponse;return proto.rambo.v1.CommandResponse.deserializeBinaryFromReader(r,t)},proto.rambo.v1.CommandResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setTxid(r);break;case 2:r=new proto.rambo.v1.Ack,t.readMessage(r,proto.rambo.v1.Ack.deserializeBinaryFromReader),e.setAck(r);break;case 3:r=new proto.rambo.v1.CommandReturn,t.readMessage(r,proto.rambo.v1.CommandReturn.deserializeBinaryFromReader),e.setReturn(r);break;case 4:r=new proto.rambo.v1.CommandResult,t.readMessage(r,proto.rambo.v1.CommandResult.deserializeBinaryFromReader),e.setResult(r);break;default:t.skipField()}return e},proto.rambo.v1.CommandResponse.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.rambo.v1.CommandResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.rambo.v1.CommandResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getTxid()).length>0&&t.writeString(1,r),null!=(r=e.getAck())&&t.writeMessage(2,r,proto.rambo.v1.Ack.serializeBinaryToWriter),null!=(r=e.getReturn())&&t.writeMessage(3,r,proto.rambo.v1.CommandReturn.serializeBinaryToWriter),null!=(r=e.getResult())&&t.writeMessage(4,r,proto.rambo.v1.CommandResult.serializeBinaryToWriter)},proto.rambo.v1.CommandResponse.prototype.getTxid=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.rambo.v1.CommandResponse.prototype.setTxid=function(e){return o.Message.setProto3StringField(this,1,e)},proto.rambo.v1.CommandResponse.prototype.getAck=function(){return o.Message.getWrapperField(this,proto.rambo.v1.Ack,2)},proto.rambo.v1.CommandResponse.prototype.setAck=function(e){return o.Message.setWrapperField(this,2,e)},proto.rambo.v1.CommandResponse.prototype.clearAck=function(){return this.setAck(void 0)},proto.rambo.v1.CommandResponse.prototype.hasAck=function(){return null!=o.Message.getField(this,2)},proto.rambo.v1.CommandResponse.prototype.getReturn=function(){return o.Message.getWrapperField(this,proto.rambo.v1.CommandReturn,3)},proto.rambo.v1.CommandResponse.prototype.setReturn=function(e){return o.Message.setWrapperField(this,3,e)},proto.rambo.v1.CommandResponse.prototype.clearReturn=function(){return this.setReturn(void 0)},proto.rambo.v1.CommandResponse.prototype.hasReturn=function(){return null!=o.Message.getField(this,3)},proto.rambo.v1.CommandResponse.prototype.getResult=function(){return o.Message.getWrapperField(this,proto.rambo.v1.CommandResult,4)},proto.rambo.v1.CommandResponse.prototype.setResult=function(e){return o.Message.setWrapperField(this,4,e)},proto.rambo.v1.CommandResponse.prototype.clearResult=function(){return this.setResult(void 0)},proto.rambo.v1.CommandResponse.prototype.hasResult=function(){return null!=o.Message.getField(this,4)},o.Message.GENERATE_TO_OBJECT&&(proto.rambo.v1.Ack.prototype.toObject=function(e){return proto.rambo.v1.Ack.toObject(e,this)},proto.rambo.v1.Ack.toObject=function(e,t){var r={stage:o.Message.getFieldWithDefault(t,1,0),status:o.Message.getFieldWithDefault(t,2,0),message:o.Message.getFieldWithDefault(t,3,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.rambo.v1.Ack.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.rambo.v1.Ack;return proto.rambo.v1.Ack.deserializeBinaryFromReader(r,t)},proto.rambo.v1.Ack.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setStage(r);break;case 2:r=t.readEnum(),e.setStatus(r);break;case 3:r=t.readString(),e.setMessage(r);break;default:t.skipField()}return e},proto.rambo.v1.Ack.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.rambo.v1.Ack.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.rambo.v1.Ack.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getStage())&&t.writeEnum(1,r),0!==(r=e.getStatus())&&t.writeEnum(2,r),(r=e.getMessage()).length>0&&t.writeString(3,r)},proto.rambo.v1.Ack.prototype.getStage=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.rambo.v1.Ack.prototype.setStage=function(e){return o.Message.setProto3EnumField(this,1,e)},proto.rambo.v1.Ack.prototype.getStatus=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.rambo.v1.Ack.prototype.setStatus=function(e){return o.Message.setProto3EnumField(this,2,e)},proto.rambo.v1.Ack.prototype.getMessage=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.rambo.v1.Ack.prototype.setMessage=function(e){return o.Message.setProto3StringField(this,3,e)},o.Message.GENERATE_TO_OBJECT&&(proto.rambo.v1.CommandReturn.prototype.toObject=function(e){return proto.rambo.v1.CommandReturn.toObject(e,this)},proto.rambo.v1.CommandReturn.toObject=function(e,t){var r,i={type:o.Message.getFieldWithDefault(t,1,0),message:o.Message.getFieldWithDefault(t,2,""),payload:t.getPayload_asB64(),metaMap:(r=t.getMetaMap())?r.toObject(e,void 0):[]};return e&&(i.$jspbMessageInstance=t),i}),proto.rambo.v1.CommandReturn.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.rambo.v1.CommandReturn;return proto.rambo.v1.CommandReturn.deserializeBinaryFromReader(r,t)},proto.rambo.v1.CommandReturn.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setType(r);break;case 2:r=t.readString(),e.setMessage(r);break;case 3:r=t.readBytes(),e.setPayload(r);break;case 4:r=e.getMetaMap(),t.readMessage(r,(function(e,t){o.Map.deserializeBinary(e,t,o.BinaryReader.prototype.readString,o.BinaryReader.prototype.readString,null,"","")}));break;default:t.skipField()}return e},proto.rambo.v1.CommandReturn.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.rambo.v1.CommandReturn.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.rambo.v1.CommandReturn.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getType())&&t.writeEnum(1,r),(r=e.getMessage()).length>0&&t.writeString(2,r),(r=e.getPayload_asU8()).length>0&&t.writeBytes(3,r),(r=e.getMetaMap(!0))&&r.getLength()>0&&r.serializeBinary(4,t,o.BinaryWriter.prototype.writeString,o.BinaryWriter.prototype.writeString)},proto.rambo.v1.CommandReturn.prototype.getType=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.rambo.v1.CommandReturn.prototype.setType=function(e){return o.Message.setProto3EnumField(this,1,e)},proto.rambo.v1.CommandReturn.prototype.getMessage=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.rambo.v1.CommandReturn.prototype.setMessage=function(e){return o.Message.setProto3StringField(this,2,e)},proto.rambo.v1.CommandReturn.prototype.getPayload=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.rambo.v1.CommandReturn.prototype.getPayload_asB64=function(){return o.Message.bytesAsB64(this.getPayload())},proto.rambo.v1.CommandReturn.prototype.getPayload_asU8=function(){return o.Message.bytesAsU8(this.getPayload())},proto.rambo.v1.CommandReturn.prototype.setPayload=function(e){return o.Message.setProto3BytesField(this,3,e)},proto.rambo.v1.CommandReturn.prototype.getMetaMap=function(e){return o.Message.getMapField(this,4,e,null)},proto.rambo.v1.CommandReturn.prototype.clearMetaMap=function(){return this.getMetaMap().clear(),this},o.Message.GENERATE_TO_OBJECT&&(proto.rambo.v1.CommandResult.prototype.toObject=function(e){return proto.rambo.v1.CommandResult.toObject(e,this)},proto.rambo.v1.CommandResult.toObject=function(e,t){var r={status:o.Message.getFieldWithDefault(t,1,0),message:o.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.rambo.v1.CommandResult.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.rambo.v1.CommandResult;return proto.rambo.v1.CommandResult.deserializeBinaryFromReader(r,t)},proto.rambo.v1.CommandResult.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setStatus(r);break;case 2:r=t.readString(),e.setMessage(r);break;default:t.skipField()}return e},proto.rambo.v1.CommandResult.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.rambo.v1.CommandResult.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.rambo.v1.CommandResult.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getStatus())&&t.writeEnum(1,r),(r=e.getMessage()).length>0&&t.writeString(2,r)},proto.rambo.v1.CommandResult.prototype.getStatus=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.rambo.v1.CommandResult.prototype.setStatus=function(e){return o.Message.setProto3EnumField(this,1,e)},proto.rambo.v1.CommandResult.prototype.getMessage=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.rambo.v1.CommandResult.prototype.setMessage=function(e){return o.Message.setProto3StringField(this,2,e)},o.Message.GENERATE_TO_OBJECT&&(proto.rambo.v1.CommandRequest.prototype.toObject=function(e){return proto.rambo.v1.CommandRequest.toObject(e,this)},proto.rambo.v1.CommandRequest.toObject=function(e,t){var r,i={txid:o.Message.getFieldWithDefault(t,1,""),uri:(r=t.getUri())&&s.RocosUri.toObject(e,r),reslevel:o.Message.getFieldWithDefault(t,3,0),parametersMap:(r=t.getParametersMap())?r.toObject(e,void 0):[],context:(r=t.getContext())&&proto.rambo.v1.ExecutionContext.toObject(e,r),deadlinems:o.Message.getFieldWithDefault(t,12,0)};return e&&(i.$jspbMessageInstance=t),i}),proto.rambo.v1.CommandRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.rambo.v1.CommandRequest;return proto.rambo.v1.CommandRequest.deserializeBinaryFromReader(r,t)},proto.rambo.v1.CommandRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setTxid(r);break;case 2:r=new s.RocosUri,t.readMessage(r,s.RocosUri.deserializeBinaryFromReader),e.setUri(r);break;case 3:r=t.readEnum(),e.setReslevel(r);break;case 10:r=e.getParametersMap(),t.readMessage(r,(function(e,t){o.Map.deserializeBinary(e,t,o.BinaryReader.prototype.readString,o.BinaryReader.prototype.readString,null,"","")}));break;case 11:r=new proto.rambo.v1.ExecutionContext,t.readMessage(r,proto.rambo.v1.ExecutionContext.deserializeBinaryFromReader),e.setContext(r);break;case 12:r=t.readUint64(),e.setDeadlinems(r);break;default:t.skipField()}return e},proto.rambo.v1.CommandRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.rambo.v1.CommandRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.rambo.v1.CommandRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getTxid()).length>0&&t.writeString(1,r),null!=(r=e.getUri())&&t.writeMessage(2,r,s.RocosUri.serializeBinaryToWriter),0!==(r=e.getReslevel())&&t.writeEnum(3,r),(r=e.getParametersMap(!0))&&r.getLength()>0&&r.serializeBinary(10,t,o.BinaryWriter.prototype.writeString,o.BinaryWriter.prototype.writeString),null!=(r=e.getContext())&&t.writeMessage(11,r,proto.rambo.v1.ExecutionContext.serializeBinaryToWriter),0!==(r=e.getDeadlinems())&&t.writeUint64(12,r)},proto.rambo.v1.CommandRequest.prototype.getTxid=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.rambo.v1.CommandRequest.prototype.setTxid=function(e){return o.Message.setProto3StringField(this,1,e)},proto.rambo.v1.CommandRequest.prototype.getUri=function(){return o.Message.getWrapperField(this,s.RocosUri,2)},proto.rambo.v1.CommandRequest.prototype.setUri=function(e){return o.Message.setWrapperField(this,2,e)},proto.rambo.v1.CommandRequest.prototype.clearUri=function(){return this.setUri(void 0)},proto.rambo.v1.CommandRequest.prototype.hasUri=function(){return null!=o.Message.getField(this,2)},proto.rambo.v1.CommandRequest.prototype.getReslevel=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.rambo.v1.CommandRequest.prototype.setReslevel=function(e){return o.Message.setProto3EnumField(this,3,e)},proto.rambo.v1.CommandRequest.prototype.getParametersMap=function(e){return o.Message.getMapField(this,10,e,null)},proto.rambo.v1.CommandRequest.prototype.clearParametersMap=function(){return this.getParametersMap().clear(),this},proto.rambo.v1.CommandRequest.prototype.getContext=function(){return o.Message.getWrapperField(this,proto.rambo.v1.ExecutionContext,11)},proto.rambo.v1.CommandRequest.prototype.setContext=function(e){return o.Message.setWrapperField(this,11,e)},proto.rambo.v1.CommandRequest.prototype.clearContext=function(){return this.setContext(void 0)},proto.rambo.v1.CommandRequest.prototype.hasContext=function(){return null!=o.Message.getField(this,11)},proto.rambo.v1.CommandRequest.prototype.getDeadlinems=function(){return o.Message.getFieldWithDefault(this,12,0)},proto.rambo.v1.CommandRequest.prototype.setDeadlinems=function(e){return o.Message.setProto3IntField(this,12,e)},o.Message.GENERATE_TO_OBJECT&&(proto.rambo.v1.ExecutionContext.prototype.toObject=function(e){return proto.rambo.v1.ExecutionContext.toObject(e,this)},proto.rambo.v1.ExecutionContext.toObject=function(e,t){var r={executiontoken:o.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.rambo.v1.ExecutionContext.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.rambo.v1.ExecutionContext;return proto.rambo.v1.ExecutionContext.deserializeBinaryFromReader(r,t)},proto.rambo.v1.ExecutionContext.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setExecutiontoken(r)}else t.skipField();return e},proto.rambo.v1.ExecutionContext.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.rambo.v1.ExecutionContext.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.rambo.v1.ExecutionContext.serializeBinaryToWriter=function(e,t){var r;(r=e.getExecutiontoken()).length>0&&t.writeString(1,r)},proto.rambo.v1.ExecutionContext.prototype.getExecutiontoken=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.rambo.v1.ExecutionContext.prototype.setExecutiontoken=function(e){return o.Message.setProto3StringField(this,1,e)},proto.rambo.v1.CommandResponseLevel={ALL:0,RETURN_AND_RESULT:1,RESULT_ONLY:2,NONE:3},proto.rambo.v1.CommandReturnType={COMMAND_OUTPUT:0},proto.rambo.v1.AckStatus={RECEIVED:0,QUEUED:1,PROGRESS:2},proto.rambo.v1.ResultStatus={COMPLETE_SUCCESS:0,CANCELLED:10,COMPLETE_ERROR:11,TIMED_OUT:12,REJECTED_ID:13,REJECTED_AUTH:14,REJECTED_PARAMS:15,REJECTED_NO_RECEIVER:16,FATAL:17},proto.rambo.v1.Stage={AGENT:0,CLOUD_GATEWAY:1,DEVICE_GATEWAY:2},i.object.extend(t,proto.rambo.v1)},8825:(e,t,r)=>{var o=r(1363),i=r(3037).grpc,n=function(){function e(){}return e.serviceName="rambo.v1.CommandReceiver",e}();function s(e,t){this.serviceHost=e,this.options=t||{}}n.RegisterReceiver={methodName:"RegisterReceiver",service:n,requestStream:!0,responseStream:!0,requestType:o.ResponseChannelMessage,responseType:o.RequestChannelMessage},t.CommandReceiver=n,s.prototype.registerReceiver=function(e){var t={data:[],end:[],status:[]},r=i.client(n.RegisterReceiver,{host:this.serviceHost,metadata:e,transport:this.options.transport});return r.onEnd((function(e,r,o){t.status.forEach((function(t){t({code:e,details:r,metadata:o})})),t.end.forEach((function(t){t({code:e,details:r,metadata:o})})),t=null})),r.onMessage((function(e){t.data.forEach((function(t){t(e)}))})),r.start(e),{on:function(e,r){return t[e].push(r),this},write:function(e){return r.send(e),this},end:function(){r.finishSend()},cancel:function(){t=null,r.close()}}},t.CommandReceiverClient=s;var a=function(){function e(){}return e.serviceName="rambo.v1.Command",e}();function u(e,t){this.serviceHost=e,this.options=t||{}}a.CallCommand={methodName:"CallCommand",service:a,requestStream:!1,responseStream:!0,requestType:o.CommandRequest,responseType:o.ResponseChannelMessage},t.Command=a,u.prototype.callCommand=function(e,t){var r={data:[],end:[],status:[]},o=i.invoke(a.CallCommand,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onMessage:function(e){r.data.forEach((function(t){t(e)}))},onEnd:function(e,t,o){r.status.forEach((function(r){r({code:e,details:t,metadata:o})})),r.end.forEach((function(r){r({code:e,details:t,metadata:o})})),r=null}});return{on:function(e,t){return r[e].push(t),this},cancel:function(){r=null,o.close()}}},t.CommandClient=u},2641:(e,t,r)=>{var o=r(3019),i=o,n=Function("return this")();i.exportSymbol("proto.rambo.v1.RocosUri",null,n),i.exportSymbol("proto.rambo.v1.RocosUriPath",null,n),i.exportSymbol("proto.rambo.v1.RocosUriScheme",null,n),proto.rambo.v1.RocosUri=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.rambo.v1.RocosUri,o.Message),i.DEBUG&&!COMPILED&&(proto.rambo.v1.RocosUri.displayName="proto.rambo.v1.RocosUri"),proto.rambo.v1.RocosUriPath=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.rambo.v1.RocosUriPath,o.Message),i.DEBUG&&!COMPILED&&(proto.rambo.v1.RocosUriPath.displayName="proto.rambo.v1.RocosUriPath"),o.Message.GENERATE_TO_OBJECT&&(proto.rambo.v1.RocosUri.prototype.toObject=function(e){return proto.rambo.v1.RocosUri.toObject(e,this)},proto.rambo.v1.RocosUri.toObject=function(e,t){var r,i={scheme:o.Message.getFieldWithDefault(t,1,0),authority:o.Message.getFieldWithDefault(t,2,""),path:(r=t.getPath())&&proto.rambo.v1.RocosUriPath.toObject(e,r),queryMap:(r=t.getQueryMap())?r.toObject(e,void 0):[]};return e&&(i.$jspbMessageInstance=t),i}),proto.rambo.v1.RocosUri.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.rambo.v1.RocosUri;return proto.rambo.v1.RocosUri.deserializeBinaryFromReader(r,t)},proto.rambo.v1.RocosUri.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setScheme(r);break;case 2:r=t.readString(),e.setAuthority(r);break;case 3:r=new proto.rambo.v1.RocosUriPath,t.readMessage(r,proto.rambo.v1.RocosUriPath.deserializeBinaryFromReader),e.setPath(r);break;case 4:r=e.getQueryMap(),t.readMessage(r,(function(e,t){o.Map.deserializeBinary(e,t,o.BinaryReader.prototype.readString,o.BinaryReader.prototype.readString,null,"","")}));break;default:t.skipField()}return e},proto.rambo.v1.RocosUri.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.rambo.v1.RocosUri.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.rambo.v1.RocosUri.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getScheme())&&t.writeEnum(1,r),(r=e.getAuthority()).length>0&&t.writeString(2,r),null!=(r=e.getPath())&&t.writeMessage(3,r,proto.rambo.v1.RocosUriPath.serializeBinaryToWriter),(r=e.getQueryMap(!0))&&r.getLength()>0&&r.serializeBinary(4,t,o.BinaryWriter.prototype.writeString,o.BinaryWriter.prototype.writeString)},proto.rambo.v1.RocosUri.prototype.getScheme=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.rambo.v1.RocosUri.prototype.setScheme=function(e){return o.Message.setProto3EnumField(this,1,e)},proto.rambo.v1.RocosUri.prototype.getAuthority=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.rambo.v1.RocosUri.prototype.setAuthority=function(e){return o.Message.setProto3StringField(this,2,e)},proto.rambo.v1.RocosUri.prototype.getPath=function(){return o.Message.getWrapperField(this,proto.rambo.v1.RocosUriPath,3)},proto.rambo.v1.RocosUri.prototype.setPath=function(e){return o.Message.setWrapperField(this,3,e)},proto.rambo.v1.RocosUri.prototype.clearPath=function(){return this.setPath(void 0)},proto.rambo.v1.RocosUri.prototype.hasPath=function(){return null!=o.Message.getField(this,3)},proto.rambo.v1.RocosUri.prototype.getQueryMap=function(e){return o.Message.getMapField(this,4,e,null)},proto.rambo.v1.RocosUri.prototype.clearQueryMap=function(){return this.getQueryMap().clear(),this},o.Message.GENERATE_TO_OBJECT&&(proto.rambo.v1.RocosUriPath.prototype.toObject=function(e){return proto.rambo.v1.RocosUriPath.toObject(e,this)},proto.rambo.v1.RocosUriPath.toObject=function(e,t){var r={project:o.Message.getFieldWithDefault(t,1,""),callsign:o.Message.getFieldWithDefault(t,2,""),subsystem:o.Message.getFieldWithDefault(t,3,""),component:o.Message.getFieldWithDefault(t,4,""),topic:o.Message.getFieldWithDefault(t,5,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.rambo.v1.RocosUriPath.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.rambo.v1.RocosUriPath;return proto.rambo.v1.RocosUriPath.deserializeBinaryFromReader(r,t)},proto.rambo.v1.RocosUriPath.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setProject(r);break;case 2:r=t.readString(),e.setCallsign(r);break;case 3:r=t.readString(),e.setSubsystem(r);break;case 4:r=t.readString(),e.setComponent(r);break;case 5:r=t.readString(),e.setTopic(r);break;default:t.skipField()}return e},proto.rambo.v1.RocosUriPath.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.rambo.v1.RocosUriPath.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.rambo.v1.RocosUriPath.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getProject()).length>0&&t.writeString(1,r),(r=e.getCallsign()).length>0&&t.writeString(2,r),(r=e.getSubsystem()).length>0&&t.writeString(3,r),(r=e.getComponent()).length>0&&t.writeString(4,r),(r=e.getTopic()).length>0&&t.writeString(5,r)},proto.rambo.v1.RocosUriPath.prototype.getProject=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.rambo.v1.RocosUriPath.prototype.setProject=function(e){return o.Message.setProto3StringField(this,1,e)},proto.rambo.v1.RocosUriPath.prototype.getCallsign=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.rambo.v1.RocosUriPath.prototype.setCallsign=function(e){return o.Message.setProto3StringField(this,2,e)},proto.rambo.v1.RocosUriPath.prototype.getSubsystem=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.rambo.v1.RocosUriPath.prototype.setSubsystem=function(e){return o.Message.setProto3StringField(this,3,e)},proto.rambo.v1.RocosUriPath.prototype.getComponent=function(){return o.Message.getFieldWithDefault(this,4,"")},proto.rambo.v1.RocosUriPath.prototype.setComponent=function(e){return o.Message.setProto3StringField(this,4,e)},proto.rambo.v1.RocosUriPath.prototype.getTopic=function(){return o.Message.getFieldWithDefault(this,5,"")},proto.rambo.v1.RocosUriPath.prototype.setTopic=function(e){return o.Message.setProto3StringField(this,5,e)},proto.rambo.v1.RocosUriScheme={GRPC:0},i.object.extend(t,proto.rambo.v1)},2177:(e,t,r)=>{var o=r(3019),i=o,n=Function("return this")();i.exportSymbol("proto.conker.v1.ConnectAck",null,n),i.exportSymbol("proto.conker.v1.ConnectRequest",null,n),i.exportSymbol("proto.conker.v1.ControlAck",null,n),i.exportSymbol("proto.conker.v1.ControlEnd",null,n),i.exportSymbol("proto.conker.v1.ControlMessage",null,n),i.exportSymbol("proto.conker.v1.StatusMessage",null,n),i.exportSymbol("proto.conker.v1.StatusRequest",null,n),proto.conker.v1.ConnectRequest=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.conker.v1.ConnectRequest,o.Message),i.DEBUG&&!COMPILED&&(proto.conker.v1.ConnectRequest.displayName="proto.conker.v1.ConnectRequest"),proto.conker.v1.ControlMessage=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.conker.v1.ControlMessage,o.Message),i.DEBUG&&!COMPILED&&(proto.conker.v1.ControlMessage.displayName="proto.conker.v1.ControlMessage"),proto.conker.v1.ControlEnd=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.conker.v1.ControlEnd,o.Message),i.DEBUG&&!COMPILED&&(proto.conker.v1.ControlEnd.displayName="proto.conker.v1.ControlEnd"),proto.conker.v1.ControlAck=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.conker.v1.ControlAck,o.Message),i.DEBUG&&!COMPILED&&(proto.conker.v1.ControlAck.displayName="proto.conker.v1.ControlAck"),proto.conker.v1.ConnectAck=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.conker.v1.ConnectAck,o.Message),i.DEBUG&&!COMPILED&&(proto.conker.v1.ConnectAck.displayName="proto.conker.v1.ConnectAck"),proto.conker.v1.StatusRequest=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.conker.v1.StatusRequest,o.Message),i.DEBUG&&!COMPILED&&(proto.conker.v1.StatusRequest.displayName="proto.conker.v1.StatusRequest"),proto.conker.v1.StatusMessage=function(e){o.Message.initialize(this,e,0,-1,proto.conker.v1.StatusMessage.repeatedFields_,null)},i.inherits(proto.conker.v1.StatusMessage,o.Message),i.DEBUG&&!COMPILED&&(proto.conker.v1.StatusMessage.displayName="proto.conker.v1.StatusMessage"),o.Message.GENERATE_TO_OBJECT&&(proto.conker.v1.ConnectRequest.prototype.toObject=function(e){return proto.conker.v1.ConnectRequest.toObject(e,this)},proto.conker.v1.ConnectRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.conker.v1.ConnectRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.conker.v1.ConnectRequest;return proto.conker.v1.ConnectRequest.deserializeBinaryFromReader(r,t)},proto.conker.v1.ConnectRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},proto.conker.v1.ConnectRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.conker.v1.ConnectRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.conker.v1.ConnectRequest.serializeBinaryToWriter=function(e,t){},o.Message.GENERATE_TO_OBJECT&&(proto.conker.v1.ControlMessage.prototype.toObject=function(e){return proto.conker.v1.ControlMessage.toObject(e,this)},proto.conker.v1.ControlMessage.toObject=function(e,t){var r,i={destination:o.Message.getFieldWithDefault(t,1,""),payload:t.getPayload_asB64(),txid:o.Message.getFieldWithDefault(t,3,""),metaMap:(r=t.getMetaMap())?r.toObject(e,void 0):[]};return e&&(i.$jspbMessageInstance=t),i}),proto.conker.v1.ControlMessage.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.conker.v1.ControlMessage;return proto.conker.v1.ControlMessage.deserializeBinaryFromReader(r,t)},proto.conker.v1.ControlMessage.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setDestination(r);break;case 2:r=t.readBytes(),e.setPayload(r);break;case 3:r=t.readString(),e.setTxid(r);break;case 4:r=e.getMetaMap(),t.readMessage(r,(function(e,t){o.Map.deserializeBinary(e,t,o.BinaryReader.prototype.readString,o.BinaryReader.prototype.readString,null,"","")}));break;default:t.skipField()}return e},proto.conker.v1.ControlMessage.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.conker.v1.ControlMessage.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.conker.v1.ControlMessage.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getDestination()).length>0&&t.writeString(1,r),(r=e.getPayload_asU8()).length>0&&t.writeBytes(2,r),(r=e.getTxid()).length>0&&t.writeString(3,r),(r=e.getMetaMap(!0))&&r.getLength()>0&&r.serializeBinary(4,t,o.BinaryWriter.prototype.writeString,o.BinaryWriter.prototype.writeString)},proto.conker.v1.ControlMessage.prototype.getDestination=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.conker.v1.ControlMessage.prototype.setDestination=function(e){return o.Message.setProto3StringField(this,1,e)},proto.conker.v1.ControlMessage.prototype.getPayload=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.conker.v1.ControlMessage.prototype.getPayload_asB64=function(){return o.Message.bytesAsB64(this.getPayload())},proto.conker.v1.ControlMessage.prototype.getPayload_asU8=function(){return o.Message.bytesAsU8(this.getPayload())},proto.conker.v1.ControlMessage.prototype.setPayload=function(e){return o.Message.setProto3BytesField(this,2,e)},proto.conker.v1.ControlMessage.prototype.getTxid=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.conker.v1.ControlMessage.prototype.setTxid=function(e){return o.Message.setProto3StringField(this,3,e)},proto.conker.v1.ControlMessage.prototype.getMetaMap=function(e){return o.Message.getMapField(this,4,e,null)},proto.conker.v1.ControlMessage.prototype.clearMetaMap=function(){return this.getMetaMap().clear(),this},o.Message.GENERATE_TO_OBJECT&&(proto.conker.v1.ControlEnd.prototype.toObject=function(e){return proto.conker.v1.ControlEnd.toObject(e,this)},proto.conker.v1.ControlEnd.toObject=function(e,t){var r={code:o.Message.getFieldWithDefault(t,1,0),reason:o.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.conker.v1.ControlEnd.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.conker.v1.ControlEnd;return proto.conker.v1.ControlEnd.deserializeBinaryFromReader(r,t)},proto.conker.v1.ControlEnd.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setCode(r);break;case 2:r=t.readString(),e.setReason(r);break;default:t.skipField()}return e},proto.conker.v1.ControlEnd.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.conker.v1.ControlEnd.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.conker.v1.ControlEnd.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getCode())&&t.writeInt32(1,r),(r=e.getReason()).length>0&&t.writeString(2,r)},proto.conker.v1.ControlEnd.prototype.getCode=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.conker.v1.ControlEnd.prototype.setCode=function(e){return o.Message.setProto3IntField(this,1,e)},proto.conker.v1.ControlEnd.prototype.getReason=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.conker.v1.ControlEnd.prototype.setReason=function(e){return o.Message.setProto3StringField(this,2,e)},o.Message.GENERATE_TO_OBJECT&&(proto.conker.v1.ControlAck.prototype.toObject=function(e){return proto.conker.v1.ControlAck.toObject(e,this)},proto.conker.v1.ControlAck.toObject=function(e,t){var r={success:o.Message.getBooleanFieldWithDefault(t,1,!1),stage:o.Message.getFieldWithDefault(t,2,""),message:o.Message.getFieldWithDefault(t,3,""),txid:o.Message.getFieldWithDefault(t,4,""),seq:o.Message.getFieldWithDefault(t,5,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.conker.v1.ControlAck.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.conker.v1.ControlAck;return proto.conker.v1.ControlAck.deserializeBinaryFromReader(r,t)},proto.conker.v1.ControlAck.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBool();e.setSuccess(r);break;case 2:r=t.readString(),e.setStage(r);break;case 3:r=t.readString(),e.setMessage(r);break;case 4:r=t.readString(),e.setTxid(r);break;case 5:r=t.readInt32(),e.setSeq(r);break;default:t.skipField()}return e},proto.conker.v1.ControlAck.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.conker.v1.ControlAck.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.conker.v1.ControlAck.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSuccess())&&t.writeBool(1,r),(r=e.getStage()).length>0&&t.writeString(2,r),(r=e.getMessage()).length>0&&t.writeString(3,r),(r=e.getTxid()).length>0&&t.writeString(4,r),0!==(r=e.getSeq())&&t.writeInt32(5,r)},proto.conker.v1.ControlAck.prototype.getSuccess=function(){return o.Message.getBooleanFieldWithDefault(this,1,!1)},proto.conker.v1.ControlAck.prototype.setSuccess=function(e){return o.Message.setProto3BooleanField(this,1,e)},proto.conker.v1.ControlAck.prototype.getStage=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.conker.v1.ControlAck.prototype.setStage=function(e){return o.Message.setProto3StringField(this,2,e)},proto.conker.v1.ControlAck.prototype.getMessage=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.conker.v1.ControlAck.prototype.setMessage=function(e){return o.Message.setProto3StringField(this,3,e)},proto.conker.v1.ControlAck.prototype.getTxid=function(){return o.Message.getFieldWithDefault(this,4,"")},proto.conker.v1.ControlAck.prototype.setTxid=function(e){return o.Message.setProto3StringField(this,4,e)},proto.conker.v1.ControlAck.prototype.getSeq=function(){return o.Message.getFieldWithDefault(this,5,0)},proto.conker.v1.ControlAck.prototype.setSeq=function(e){return o.Message.setProto3IntField(this,5,e)},o.Message.GENERATE_TO_OBJECT&&(proto.conker.v1.ConnectAck.prototype.toObject=function(e){return proto.conker.v1.ConnectAck.toObject(e,this)},proto.conker.v1.ConnectAck.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.conker.v1.ConnectAck.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.conker.v1.ConnectAck;return proto.conker.v1.ConnectAck.deserializeBinaryFromReader(r,t)},proto.conker.v1.ConnectAck.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},proto.conker.v1.ConnectAck.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.conker.v1.ConnectAck.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.conker.v1.ConnectAck.serializeBinaryToWriter=function(e,t){},o.Message.GENERATE_TO_OBJECT&&(proto.conker.v1.StatusRequest.prototype.toObject=function(e){return proto.conker.v1.StatusRequest.toObject(e,this)},proto.conker.v1.StatusRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.conker.v1.StatusRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.conker.v1.StatusRequest;return proto.conker.v1.StatusRequest.deserializeBinaryFromReader(r,t)},proto.conker.v1.StatusRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},proto.conker.v1.StatusRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.conker.v1.StatusRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.conker.v1.StatusRequest.serializeBinaryToWriter=function(e,t){},proto.conker.v1.StatusMessage.repeatedFields_=[1],o.Message.GENERATE_TO_OBJECT&&(proto.conker.v1.StatusMessage.prototype.toObject=function(e){return proto.conker.v1.StatusMessage.toObject(e,this)},proto.conker.v1.StatusMessage.toObject=function(e,t){var r,i={connectedrobotsList:null==(r=o.Message.getRepeatedField(t,1))?void 0:r};return e&&(i.$jspbMessageInstance=t),i}),proto.conker.v1.StatusMessage.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.conker.v1.StatusMessage;return proto.conker.v1.StatusMessage.deserializeBinaryFromReader(r,t)},proto.conker.v1.StatusMessage.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.addConnectedrobots(r)}else t.skipField();return e},proto.conker.v1.StatusMessage.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.conker.v1.StatusMessage.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.conker.v1.StatusMessage.serializeBinaryToWriter=function(e,t){var r;(r=e.getConnectedrobotsList()).length>0&&t.writeRepeatedString(1,r)},proto.conker.v1.StatusMessage.prototype.getConnectedrobotsList=function(){return o.Message.getRepeatedField(this,1)},proto.conker.v1.StatusMessage.prototype.setConnectedrobotsList=function(e){return o.Message.setField(this,1,e||[])},proto.conker.v1.StatusMessage.prototype.addConnectedrobots=function(e,t){return o.Message.addToRepeatedField(this,1,e,t)},proto.conker.v1.StatusMessage.prototype.clearConnectedrobotsList=function(){return this.setConnectedrobotsList([])},i.object.extend(t,proto.conker.v1)},6041:(e,t,r)=>{var o=r(2177),i=r(3037).grpc,n=function(){function e(){}return e.serviceName="conker.v1.RobotControl",e}();function s(e,t){this.serviceHost=e,this.options=t||{}}n.ConnectRobot={methodName:"ConnectRobot",service:n,requestStream:!1,responseStream:!0,requestType:o.ConnectRequest,responseType:o.ControlMessage},n.ConnectRobotWithAckStream={methodName:"ConnectRobotWithAckStream",service:n,requestStream:!0,responseStream:!0,requestType:o.ControlAck,responseType:o.ControlMessage},n.ControlRobot={methodName:"ControlRobot",service:n,requestStream:!0,responseStream:!1,requestType:o.ControlMessage,responseType:o.ControlEnd},n.ControlRobotCall={methodName:"ControlRobotCall",service:n,requestStream:!1,responseStream:!1,requestType:o.ControlMessage,responseType:o.ControlAck},n.ControlRobotCallWithAckStream={methodName:"ControlRobotCallWithAckStream",service:n,requestStream:!1,responseStream:!0,requestType:o.ControlMessage,responseType:o.ControlAck},n.Status={methodName:"Status",service:n,requestStream:!1,responseStream:!1,requestType:o.StatusRequest,responseType:o.StatusMessage},t.RobotControl=n,s.prototype.connectRobot=function(e,t){var r={data:[],end:[],status:[]},o=i.invoke(n.ConnectRobot,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onMessage:function(e){r.data.forEach((function(t){t(e)}))},onEnd:function(e,t,o){r.status.forEach((function(r){r({code:e,details:t,metadata:o})})),r.end.forEach((function(r){r({code:e,details:t,metadata:o})})),r=null}});return{on:function(e,t){return r[e].push(t),this},cancel:function(){r=null,o.close()}}},s.prototype.connectRobotWithAckStream=function(e){var t={data:[],end:[],status:[]},r=i.client(n.ConnectRobotWithAckStream,{host:this.serviceHost,metadata:e,transport:this.options.transport});return r.onEnd((function(e,r,o){t.status.forEach((function(t){t({code:e,details:r,metadata:o})})),t.end.forEach((function(t){t({code:e,details:r,metadata:o})})),t=null})),r.onMessage((function(e){t.data.forEach((function(t){t(e)}))})),r.start(e),{on:function(e,r){return t[e].push(r),this},write:function(e){return r.send(e),this},end:function(){r.finishSend()},cancel:function(){t=null,r.close()}}},s.prototype.controlRobot=function(e){var t={end:[],status:[]},r=i.client(n.ControlRobot,{host:this.serviceHost,metadata:e,transport:this.options.transport});return r.onEnd((function(e,r,o){t.status.forEach((function(t){t({code:e,details:r,metadata:o})})),t.end.forEach((function(t){t({code:e,details:r,metadata:o})})),t=null})),{on:function(e,r){return t[e].push(r),this},write:function(t){return r.started||r.start(e),r.send(t),this},end:function(){r.finishSend()},cancel:function(){t=null,r.close()}}},s.prototype.controlRobotCall=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=i.unary(n.ControlRobotCall,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==i.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},s.prototype.controlRobotCallWithAckStream=function(e,t){var r={data:[],end:[],status:[]},o=i.invoke(n.ControlRobotCallWithAckStream,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onMessage:function(e){r.data.forEach((function(t){t(e)}))},onEnd:function(e,t,o){r?.status.forEach((function(r){r({code:e,details:t,metadata:o})})),r?.end.forEach((function(r){r({code:e,details:t,metadata:o})})),r=null}});return{on:function(e,t){return r[e].push(t),this},cancel:function(){r=null,o.close()}}},s.prototype.status=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=i.unary(n.Status,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==i.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},t.RobotControlClient=s},2312:(e,t,r)=>{var o=r(3019),i=o,n=Function("return this")(),s=r(9392);i.object.extend(proto,s),i.exportSymbol("proto.required",null,n),proto.required=new o.ExtensionFieldInfo(50002,{required:0},null,null,0),s.FieldOptions.extensionsBinary[50002]=new o.ExtensionFieldBinaryInfo(proto.required,o.BinaryReader.prototype.readBool,o.BinaryWriter.prototype.writeBool,void 0,void 0,!1),s.FieldOptions.extensions[50002]=proto.required,i.object.extend(t,proto)},9743:(e,t,r)=>{var o=r(3019),i=o,n=Function("return this")(),s=r(6774);i.object.extend(proto,s);var a=r(9392);i.object.extend(proto,a);var u=r(2312);i.object.extend(proto,u);var l=r(597);i.object.extend(proto,l),i.exportSymbol("proto.serviette.v1.AckStatus",null,n),i.exportSymbol("proto.serviette.v1.Heartbeat",null,n),i.exportSymbol("proto.serviette.v1.MeshInfo",null,n),i.exportSymbol("proto.serviette.v1.MeshNodeCommand",null,n),i.exportSymbol("proto.serviette.v1.MeshNodeRequest",null,n),i.exportSymbol("proto.serviette.v1.MeshNodeRequest.IdCase",null,n),i.exportSymbol("proto.serviette.v1.MeshNodeResponse",null,n),i.exportSymbol("proto.serviette.v1.MeshNodeUID",null,n),i.exportSymbol("proto.serviette.v1.MeshNodeUID.UidCase",null,n),i.exportSymbol("proto.serviette.v1.MeshNodeUIDVersion",null,n),i.exportSymbol("proto.serviette.v1.ReceiverRecord",null,n),i.exportSymbol("proto.serviette.v1.ReceiverRecords",null,n),i.exportSymbol("proto.serviette.v1.RequestCancellation",null,n),i.exportSymbol("proto.serviette.v1.RequestCancellations",null,n),i.exportSymbol("proto.serviette.v1.RequestChannelMessage",null,n),i.exportSymbol("proto.serviette.v1.RequestChannelMessage.ContentCase",null,n),i.exportSymbol("proto.serviette.v1.ResponseChannelMessage",null,n),i.exportSymbol("proto.serviette.v1.ResponseChannelMessage.ContentCase",null,n),i.exportSymbol("proto.serviette.v1.ResultStatus",null,n),i.exportSymbol("proto.serviette.v1.ServiceAck",null,n),i.exportSymbol("proto.serviette.v1.ServiceCallUID",null,n),i.exportSymbol("proto.serviette.v1.ServiceCallUID.ContentCase",null,n),i.exportSymbol("proto.serviette.v1.ServiceRequest",null,n),i.exportSymbol("proto.serviette.v1.ServiceRequestChunk",null,n),i.exportSymbol("proto.serviette.v1.ServiceRequestChunk.ContentCase",null,n),i.exportSymbol("proto.serviette.v1.ServiceRequestChunks",null,n),i.exportSymbol("proto.serviette.v1.ServiceRequestHeader",null,n),i.exportSymbol("proto.serviette.v1.ServiceRequests",null,n),i.exportSymbol("proto.serviette.v1.ServiceResponse",null,n),i.exportSymbol("proto.serviette.v1.ServiceResponse.ContentCase",null,n),i.exportSymbol("proto.serviette.v1.ServiceResponseChunk",null,n),i.exportSymbol("proto.serviette.v1.ServiceResponseChunk.ContentCase",null,n),i.exportSymbol("proto.serviette.v1.ServiceResponseChunks",null,n),i.exportSymbol("proto.serviette.v1.ServiceResponseLevel",null,n),i.exportSymbol("proto.serviette.v1.ServiceResponses",null,n),i.exportSymbol("proto.serviette.v1.ServiceResult",null,n),i.exportSymbol("proto.serviette.v1.ServiceReturn",null,n),i.exportSymbol("proto.serviette.v1.ServiceReturnHeader",null,n),i.exportSymbol("proto.serviette.v1.Stage",null,n),i.exportSymbol("proto.serviette.v1.UIDVersion",null,n),i.exportSymbol("proto.serviette.v1.WebReceiverRegistration",null,n),i.exportSymbol("proto.serviette.v1.WebSendResponseMessage",null,n),proto.serviette.v1.Heartbeat=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.serviette.v1.Heartbeat,o.Message),i.DEBUG&&!COMPILED&&(proto.serviette.v1.Heartbeat.displayName="proto.serviette.v1.Heartbeat"),proto.serviette.v1.ServiceCallUID=function(e){o.Message.initialize(this,e,0,-1,null,proto.serviette.v1.ServiceCallUID.oneofGroups_)},i.inherits(proto.serviette.v1.ServiceCallUID,o.Message),i.DEBUG&&!COMPILED&&(proto.serviette.v1.ServiceCallUID.displayName="proto.serviette.v1.ServiceCallUID"),proto.serviette.v1.RequestChannelMessage=function(e){o.Message.initialize(this,e,0,-1,null,proto.serviette.v1.RequestChannelMessage.oneofGroups_)},i.inherits(proto.serviette.v1.RequestChannelMessage,o.Message),i.DEBUG&&!COMPILED&&(proto.serviette.v1.RequestChannelMessage.displayName="proto.serviette.v1.RequestChannelMessage"),proto.serviette.v1.ServiceRequests=function(e){o.Message.initialize(this,e,0,-1,proto.serviette.v1.ServiceRequests.repeatedFields_,null)},i.inherits(proto.serviette.v1.ServiceRequests,o.Message),i.DEBUG&&!COMPILED&&(proto.serviette.v1.ServiceRequests.displayName="proto.serviette.v1.ServiceRequests"),proto.serviette.v1.ServiceRequestChunks=function(e){o.Message.initialize(this,e,0,-1,proto.serviette.v1.ServiceRequestChunks.repeatedFields_,null)},i.inherits(proto.serviette.v1.ServiceRequestChunks,o.Message),i.DEBUG&&!COMPILED&&(proto.serviette.v1.ServiceRequestChunks.displayName="proto.serviette.v1.ServiceRequestChunks"),proto.serviette.v1.ServiceRequestChunk=function(e){o.Message.initialize(this,e,0,-1,null,proto.serviette.v1.ServiceRequestChunk.oneofGroups_)},i.inherits(proto.serviette.v1.ServiceRequestChunk,o.Message),i.DEBUG&&!COMPILED&&(proto.serviette.v1.ServiceRequestChunk.displayName="proto.serviette.v1.ServiceRequestChunk"),proto.serviette.v1.ServiceRequest=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.serviette.v1.ServiceRequest,o.Message),i.DEBUG&&!COMPILED&&(proto.serviette.v1.ServiceRequest.displayName="proto.serviette.v1.ServiceRequest"),proto.serviette.v1.ServiceRequestHeader=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.serviette.v1.ServiceRequestHeader,o.Message),i.DEBUG&&!COMPILED&&(proto.serviette.v1.ServiceRequestHeader.displayName="proto.serviette.v1.ServiceRequestHeader"),proto.serviette.v1.RequestCancellations=function(e){o.Message.initialize(this,e,0,-1,proto.serviette.v1.RequestCancellations.repeatedFields_,null)},i.inherits(proto.serviette.v1.RequestCancellations,o.Message),i.DEBUG&&!COMPILED&&(proto.serviette.v1.RequestCancellations.displayName="proto.serviette.v1.RequestCancellations"),proto.serviette.v1.RequestCancellation=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.serviette.v1.RequestCancellation,o.Message),i.DEBUG&&!COMPILED&&(proto.serviette.v1.RequestCancellation.displayName="proto.serviette.v1.RequestCancellation"),proto.serviette.v1.ResponseChannelMessage=function(e){o.Message.initialize(this,e,0,-1,null,proto.serviette.v1.ResponseChannelMessage.oneofGroups_)},i.inherits(proto.serviette.v1.ResponseChannelMessage,o.Message),i.DEBUG&&!COMPILED&&(proto.serviette.v1.ResponseChannelMessage.displayName="proto.serviette.v1.ResponseChannelMessage"),proto.serviette.v1.ServiceResponses=function(e){o.Message.initialize(this,e,0,-1,proto.serviette.v1.ServiceResponses.repeatedFields_,null)},i.inherits(proto.serviette.v1.ServiceResponses,o.Message),i.DEBUG&&!COMPILED&&(proto.serviette.v1.ServiceResponses.displayName="proto.serviette.v1.ServiceResponses"),proto.serviette.v1.ServiceResponseChunks=function(e){o.Message.initialize(this,e,0,-1,proto.serviette.v1.ServiceResponseChunks.repeatedFields_,null)},i.inherits(proto.serviette.v1.ServiceResponseChunks,o.Message),i.DEBUG&&!COMPILED&&(proto.serviette.v1.ServiceResponseChunks.displayName="proto.serviette.v1.ServiceResponseChunks"),proto.serviette.v1.ServiceResponseChunk=function(e){o.Message.initialize(this,e,0,-1,null,proto.serviette.v1.ServiceResponseChunk.oneofGroups_)},i.inherits(proto.serviette.v1.ServiceResponseChunk,o.Message),i.DEBUG&&!COMPILED&&(proto.serviette.v1.ServiceResponseChunk.displayName="proto.serviette.v1.ServiceResponseChunk"),proto.serviette.v1.ServiceResponse=function(e){o.Message.initialize(this,e,0,-1,null,proto.serviette.v1.ServiceResponse.oneofGroups_)},i.inherits(proto.serviette.v1.ServiceResponse,o.Message),i.DEBUG&&!COMPILED&&(proto.serviette.v1.ServiceResponse.displayName="proto.serviette.v1.ServiceResponse"),proto.serviette.v1.ServiceReturn=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.serviette.v1.ServiceReturn,o.Message),i.DEBUG&&!COMPILED&&(proto.serviette.v1.ServiceReturn.displayName="proto.serviette.v1.ServiceReturn"),proto.serviette.v1.ServiceReturnHeader=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.serviette.v1.ServiceReturnHeader,o.Message),i.DEBUG&&!COMPILED&&(proto.serviette.v1.ServiceReturnHeader.displayName="proto.serviette.v1.ServiceReturnHeader"),proto.serviette.v1.ServiceAck=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.serviette.v1.ServiceAck,o.Message),i.DEBUG&&!COMPILED&&(proto.serviette.v1.ServiceAck.displayName="proto.serviette.v1.ServiceAck"),proto.serviette.v1.ServiceResult=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.serviette.v1.ServiceResult,o.Message),i.DEBUG&&!COMPILED&&(proto.serviette.v1.ServiceResult.displayName="proto.serviette.v1.ServiceResult"),proto.serviette.v1.WebReceiverRegistration=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.serviette.v1.WebReceiverRegistration,o.Message),i.DEBUG&&!COMPILED&&(proto.serviette.v1.WebReceiverRegistration.displayName="proto.serviette.v1.WebReceiverRegistration"),proto.serviette.v1.WebSendResponseMessage=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.serviette.v1.WebSendResponseMessage,o.Message),i.DEBUG&&!COMPILED&&(proto.serviette.v1.WebSendResponseMessage.displayName="proto.serviette.v1.WebSendResponseMessage"),proto.serviette.v1.ReceiverRecords=function(e){o.Message.initialize(this,e,0,-1,proto.serviette.v1.ReceiverRecords.repeatedFields_,null)},i.inherits(proto.serviette.v1.ReceiverRecords,o.Message),i.DEBUG&&!COMPILED&&(proto.serviette.v1.ReceiverRecords.displayName="proto.serviette.v1.ReceiverRecords"),proto.serviette.v1.ReceiverRecord=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.serviette.v1.ReceiverRecord,o.Message),i.DEBUG&&!COMPILED&&(proto.serviette.v1.ReceiverRecord.displayName="proto.serviette.v1.ReceiverRecord"),proto.serviette.v1.MeshNodeUID=function(e){o.Message.initialize(this,e,0,-1,null,proto.serviette.v1.MeshNodeUID.oneofGroups_)},i.inherits(proto.serviette.v1.MeshNodeUID,o.Message),i.DEBUG&&!COMPILED&&(proto.serviette.v1.MeshNodeUID.displayName="proto.serviette.v1.MeshNodeUID"),proto.serviette.v1.MeshNodeRequest=function(e){o.Message.initialize(this,e,0,-1,null,proto.serviette.v1.MeshNodeRequest.oneofGroups_)},i.inherits(proto.serviette.v1.MeshNodeRequest,o.Message),i.DEBUG&&!COMPILED&&(proto.serviette.v1.MeshNodeRequest.displayName="proto.serviette.v1.MeshNodeRequest"),proto.serviette.v1.MeshNodeResponse=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.serviette.v1.MeshNodeResponse,o.Message),i.DEBUG&&!COMPILED&&(proto.serviette.v1.MeshNodeResponse.displayName="proto.serviette.v1.MeshNodeResponse"),proto.serviette.v1.MeshInfo=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.serviette.v1.MeshInfo,o.Message),i.DEBUG&&!COMPILED&&(proto.serviette.v1.MeshInfo.displayName="proto.serviette.v1.MeshInfo"),o.Message.GENERATE_TO_OBJECT&&(proto.serviette.v1.Heartbeat.prototype.toObject=function(e){return proto.serviette.v1.Heartbeat.toObject(e,this)},proto.serviette.v1.Heartbeat.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.serviette.v1.Heartbeat.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.serviette.v1.Heartbeat;return proto.serviette.v1.Heartbeat.deserializeBinaryFromReader(r,t)},proto.serviette.v1.Heartbeat.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},proto.serviette.v1.Heartbeat.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.serviette.v1.Heartbeat.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.serviette.v1.Heartbeat.serializeBinaryToWriter=function(e,t){},proto.serviette.v1.ServiceCallUID.oneofGroups_=[[2]],proto.serviette.v1.ServiceCallUID.ContentCase={CONTENT_NOT_SET:0,HASH:2},proto.serviette.v1.ServiceCallUID.prototype.getContentCase=function(){return o.Message.computeOneofCase(this,proto.serviette.v1.ServiceCallUID.oneofGroups_[0])},o.Message.GENERATE_TO_OBJECT&&(proto.serviette.v1.ServiceCallUID.prototype.toObject=function(e){return proto.serviette.v1.ServiceCallUID.toObject(e,this)},proto.serviette.v1.ServiceCallUID.toObject=function(e,t){var r={version:o.Message.getFieldWithDefault(t,1,0),hash:o.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.serviette.v1.ServiceCallUID.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.serviette.v1.ServiceCallUID;return proto.serviette.v1.ServiceCallUID.deserializeBinaryFromReader(r,t)},proto.serviette.v1.ServiceCallUID.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setVersion(r);break;case 2:r=t.readString(),e.setHash(r);break;default:t.skipField()}return e},proto.serviette.v1.ServiceCallUID.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.serviette.v1.ServiceCallUID.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.serviette.v1.ServiceCallUID.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getVersion())&&t.writeEnum(1,r),null!=(r=o.Message.getField(e,2))&&t.writeString(2,r)},proto.serviette.v1.ServiceCallUID.prototype.getVersion=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.serviette.v1.ServiceCallUID.prototype.setVersion=function(e){return o.Message.setProto3EnumField(this,1,e)},proto.serviette.v1.ServiceCallUID.prototype.getHash=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.serviette.v1.ServiceCallUID.prototype.setHash=function(e){return o.Message.setOneofField(this,2,proto.serviette.v1.ServiceCallUID.oneofGroups_[0],e)},proto.serviette.v1.ServiceCallUID.prototype.clearHash=function(){return o.Message.setOneofField(this,2,proto.serviette.v1.ServiceCallUID.oneofGroups_[0],void 0)},proto.serviette.v1.ServiceCallUID.prototype.hasHash=function(){return null!=o.Message.getField(this,2)},proto.serviette.v1.RequestChannelMessage.oneofGroups_=[[1,2,3,4]],proto.serviette.v1.RequestChannelMessage.ContentCase={CONTENT_NOT_SET:0,HEARTBEAT:1,REQUESTS:2,CHUNKS:3,CANCELLATIONS:4},proto.serviette.v1.RequestChannelMessage.prototype.getContentCase=function(){return o.Message.computeOneofCase(this,proto.serviette.v1.RequestChannelMessage.oneofGroups_[0])},o.Message.GENERATE_TO_OBJECT&&(proto.serviette.v1.RequestChannelMessage.prototype.toObject=function(e){return proto.serviette.v1.RequestChannelMessage.toObject(e,this)},proto.serviette.v1.RequestChannelMessage.toObject=function(e,t){var r,o={heartbeat:(r=t.getHeartbeat())&&proto.serviette.v1.Heartbeat.toObject(e,r),requests:(r=t.getRequests())&&proto.serviette.v1.ServiceRequests.toObject(e,r),chunks:(r=t.getChunks())&&proto.serviette.v1.ServiceRequestChunks.toObject(e,r),cancellations:(r=t.getCancellations())&&proto.serviette.v1.RequestCancellations.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.serviette.v1.RequestChannelMessage.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.serviette.v1.RequestChannelMessage;return proto.serviette.v1.RequestChannelMessage.deserializeBinaryFromReader(r,t)},proto.serviette.v1.RequestChannelMessage.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.serviette.v1.Heartbeat;t.readMessage(r,proto.serviette.v1.Heartbeat.deserializeBinaryFromReader),e.setHeartbeat(r);break;case 2:r=new proto.serviette.v1.ServiceRequests,t.readMessage(r,proto.serviette.v1.ServiceRequests.deserializeBinaryFromReader),e.setRequests(r);break;case 3:r=new proto.serviette.v1.ServiceRequestChunks,t.readMessage(r,proto.serviette.v1.ServiceRequestChunks.deserializeBinaryFromReader),e.setChunks(r);break;case 4:r=new proto.serviette.v1.RequestCancellations,t.readMessage(r,proto.serviette.v1.RequestCancellations.deserializeBinaryFromReader),e.setCancellations(r);break;default:t.skipField()}return e},proto.serviette.v1.RequestChannelMessage.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.serviette.v1.RequestChannelMessage.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.serviette.v1.RequestChannelMessage.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getHeartbeat())&&t.writeMessage(1,r,proto.serviette.v1.Heartbeat.serializeBinaryToWriter),null!=(r=e.getRequests())&&t.writeMessage(2,r,proto.serviette.v1.ServiceRequests.serializeBinaryToWriter),null!=(r=e.getChunks())&&t.writeMessage(3,r,proto.serviette.v1.ServiceRequestChunks.serializeBinaryToWriter),null!=(r=e.getCancellations())&&t.writeMessage(4,r,proto.serviette.v1.RequestCancellations.serializeBinaryToWriter)},proto.serviette.v1.RequestChannelMessage.prototype.getHeartbeat=function(){return o.Message.getWrapperField(this,proto.serviette.v1.Heartbeat,1)},proto.serviette.v1.RequestChannelMessage.prototype.setHeartbeat=function(e){return o.Message.setOneofWrapperField(this,1,proto.serviette.v1.RequestChannelMessage.oneofGroups_[0],e)},proto.serviette.v1.RequestChannelMessage.prototype.clearHeartbeat=function(){return this.setHeartbeat(void 0)},proto.serviette.v1.RequestChannelMessage.prototype.hasHeartbeat=function(){return null!=o.Message.getField(this,1)},proto.serviette.v1.RequestChannelMessage.prototype.getRequests=function(){return o.Message.getWrapperField(this,proto.serviette.v1.ServiceRequests,2)},proto.serviette.v1.RequestChannelMessage.prototype.setRequests=function(e){return o.Message.setOneofWrapperField(this,2,proto.serviette.v1.RequestChannelMessage.oneofGroups_[0],e)},proto.serviette.v1.RequestChannelMessage.prototype.clearRequests=function(){return this.setRequests(void 0)},proto.serviette.v1.RequestChannelMessage.prototype.hasRequests=function(){return null!=o.Message.getField(this,2)},proto.serviette.v1.RequestChannelMessage.prototype.getChunks=function(){return o.Message.getWrapperField(this,proto.serviette.v1.ServiceRequestChunks,3)},proto.serviette.v1.RequestChannelMessage.prototype.setChunks=function(e){return o.Message.setOneofWrapperField(this,3,proto.serviette.v1.RequestChannelMessage.oneofGroups_[0],e)},proto.serviette.v1.RequestChannelMessage.prototype.clearChunks=function(){return this.setChunks(void 0)},proto.serviette.v1.RequestChannelMessage.prototype.hasChunks=function(){return null!=o.Message.getField(this,3)},proto.serviette.v1.RequestChannelMessage.prototype.getCancellations=function(){return o.Message.getWrapperField(this,proto.serviette.v1.RequestCancellations,4)},proto.serviette.v1.RequestChannelMessage.prototype.setCancellations=function(e){return o.Message.setOneofWrapperField(this,4,proto.serviette.v1.RequestChannelMessage.oneofGroups_[0],e)},proto.serviette.v1.RequestChannelMessage.prototype.clearCancellations=function(){return this.setCancellations(void 0)},proto.serviette.v1.RequestChannelMessage.prototype.hasCancellations=function(){return null!=o.Message.getField(this,4)},proto.serviette.v1.ServiceRequests.repeatedFields_=[1],o.Message.GENERATE_TO_OBJECT&&(proto.serviette.v1.ServiceRequests.prototype.toObject=function(e){return proto.serviette.v1.ServiceRequests.toObject(e,this)},proto.serviette.v1.ServiceRequests.toObject=function(e,t){var r={requestsList:o.Message.toObjectList(t.getRequestsList(),proto.serviette.v1.ServiceRequest.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.serviette.v1.ServiceRequests.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.serviette.v1.ServiceRequests;return proto.serviette.v1.ServiceRequests.deserializeBinaryFromReader(r,t)},proto.serviette.v1.ServiceRequests.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new proto.serviette.v1.ServiceRequest;t.readMessage(r,proto.serviette.v1.ServiceRequest.deserializeBinaryFromReader),e.addRequests(r)}else t.skipField();return e},proto.serviette.v1.ServiceRequests.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.serviette.v1.ServiceRequests.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.serviette.v1.ServiceRequests.serializeBinaryToWriter=function(e,t){var r;(r=e.getRequestsList()).length>0&&t.writeRepeatedMessage(1,r,proto.serviette.v1.ServiceRequest.serializeBinaryToWriter)},proto.serviette.v1.ServiceRequests.prototype.getRequestsList=function(){return o.Message.getRepeatedWrapperField(this,proto.serviette.v1.ServiceRequest,1)},proto.serviette.v1.ServiceRequests.prototype.setRequestsList=function(e){return o.Message.setRepeatedWrapperField(this,1,e)},proto.serviette.v1.ServiceRequests.prototype.addRequests=function(e,t){return o.Message.addToRepeatedWrapperField(this,1,e,proto.serviette.v1.ServiceRequest,t)},proto.serviette.v1.ServiceRequests.prototype.clearRequestsList=function(){return this.setRequestsList([])},proto.serviette.v1.ServiceRequestChunks.repeatedFields_=[1],o.Message.GENERATE_TO_OBJECT&&(proto.serviette.v1.ServiceRequestChunks.prototype.toObject=function(e){return proto.serviette.v1.ServiceRequestChunks.toObject(e,this)},proto.serviette.v1.ServiceRequestChunks.toObject=function(e,t){var r={chunksList:o.Message.toObjectList(t.getChunksList(),proto.serviette.v1.ServiceRequestChunk.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.serviette.v1.ServiceRequestChunks.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.serviette.v1.ServiceRequestChunks;return proto.serviette.v1.ServiceRequestChunks.deserializeBinaryFromReader(r,t)},proto.serviette.v1.ServiceRequestChunks.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new proto.serviette.v1.ServiceRequestChunk;t.readMessage(r,proto.serviette.v1.ServiceRequestChunk.deserializeBinaryFromReader),e.addChunks(r)}else t.skipField();return e},proto.serviette.v1.ServiceRequestChunks.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.serviette.v1.ServiceRequestChunks.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.serviette.v1.ServiceRequestChunks.serializeBinaryToWriter=function(e,t){var r;(r=e.getChunksList()).length>0&&t.writeRepeatedMessage(1,r,proto.serviette.v1.ServiceRequestChunk.serializeBinaryToWriter)},proto.serviette.v1.ServiceRequestChunks.prototype.getChunksList=function(){return o.Message.getRepeatedWrapperField(this,proto.serviette.v1.ServiceRequestChunk,1)},proto.serviette.v1.ServiceRequestChunks.prototype.setChunksList=function(e){return o.Message.setRepeatedWrapperField(this,1,e)},proto.serviette.v1.ServiceRequestChunks.prototype.addChunks=function(e,t){return o.Message.addToRepeatedWrapperField(this,1,e,proto.serviette.v1.ServiceRequestChunk,t)},proto.serviette.v1.ServiceRequestChunks.prototype.clearChunksList=function(){return this.setChunksList([])},proto.serviette.v1.ServiceRequestChunk.oneofGroups_=[[10,11]],proto.serviette.v1.ServiceRequestChunk.ContentCase={CONTENT_NOT_SET:0,HEADER:10,PAYLOAD:11},proto.serviette.v1.ServiceRequestChunk.prototype.getContentCase=function(){return o.Message.computeOneofCase(this,proto.serviette.v1.ServiceRequestChunk.oneofGroups_[0])},o.Message.GENERATE_TO_OBJECT&&(proto.serviette.v1.ServiceRequestChunk.prototype.toObject=function(e){return proto.serviette.v1.ServiceRequestChunk.toObject(e,this)},proto.serviette.v1.ServiceRequestChunk.toObject=function(e,t){var r,i={uid:(r=t.getUid())&&proto.serviette.v1.ServiceCallUID.toObject(e,r),chunkindex:o.Message.getFieldWithDefault(t,2,0),chunkcount:o.Message.getFieldWithDefault(t,3,0),header:(r=t.getHeader())&&proto.serviette.v1.ServiceRequestHeader.toObject(e,r),payload:t.getPayload_asB64()};return e&&(i.$jspbMessageInstance=t),i}),proto.serviette.v1.ServiceRequestChunk.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.serviette.v1.ServiceRequestChunk;return proto.serviette.v1.ServiceRequestChunk.deserializeBinaryFromReader(r,t)},proto.serviette.v1.ServiceRequestChunk.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.serviette.v1.ServiceCallUID;t.readMessage(r,proto.serviette.v1.ServiceCallUID.deserializeBinaryFromReader),e.setUid(r);break;case 2:r=t.readUint32(),e.setChunkindex(r);break;case 3:r=t.readUint32(),e.setChunkcount(r);break;case 10:r=new proto.serviette.v1.ServiceRequestHeader,t.readMessage(r,proto.serviette.v1.ServiceRequestHeader.deserializeBinaryFromReader),e.setHeader(r);break;case 11:r=t.readBytes(),e.setPayload(r);break;default:t.skipField()}return e},proto.serviette.v1.ServiceRequestChunk.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.serviette.v1.ServiceRequestChunk.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.serviette.v1.ServiceRequestChunk.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getUid())&&t.writeMessage(1,r,proto.serviette.v1.ServiceCallUID.serializeBinaryToWriter),0!==(r=e.getChunkindex())&&t.writeUint32(2,r),0!==(r=e.getChunkcount())&&t.writeUint32(3,r),null!=(r=e.getHeader())&&t.writeMessage(10,r,proto.serviette.v1.ServiceRequestHeader.serializeBinaryToWriter),null!=(r=o.Message.getField(e,11))&&t.writeBytes(11,r)},proto.serviette.v1.ServiceRequestChunk.prototype.getUid=function(){return o.Message.getWrapperField(this,proto.serviette.v1.ServiceCallUID,1)},proto.serviette.v1.ServiceRequestChunk.prototype.setUid=function(e){return o.Message.setWrapperField(this,1,e)},proto.serviette.v1.ServiceRequestChunk.prototype.clearUid=function(){return this.setUid(void 0)},proto.serviette.v1.ServiceRequestChunk.prototype.hasUid=function(){return null!=o.Message.getField(this,1)},proto.serviette.v1.ServiceRequestChunk.prototype.getChunkindex=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.serviette.v1.ServiceRequestChunk.prototype.setChunkindex=function(e){return o.Message.setProto3IntField(this,2,e)},proto.serviette.v1.ServiceRequestChunk.prototype.getChunkcount=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.serviette.v1.ServiceRequestChunk.prototype.setChunkcount=function(e){return o.Message.setProto3IntField(this,3,e)},proto.serviette.v1.ServiceRequestChunk.prototype.getHeader=function(){return o.Message.getWrapperField(this,proto.serviette.v1.ServiceRequestHeader,10)},proto.serviette.v1.ServiceRequestChunk.prototype.setHeader=function(e){return o.Message.setOneofWrapperField(this,10,proto.serviette.v1.ServiceRequestChunk.oneofGroups_[0],e)},proto.serviette.v1.ServiceRequestChunk.prototype.clearHeader=function(){return this.setHeader(void 0)},proto.serviette.v1.ServiceRequestChunk.prototype.hasHeader=function(){return null!=o.Message.getField(this,10)},proto.serviette.v1.ServiceRequestChunk.prototype.getPayload=function(){return o.Message.getFieldWithDefault(this,11,"")},proto.serviette.v1.ServiceRequestChunk.prototype.getPayload_asB64=function(){return o.Message.bytesAsB64(this.getPayload())},proto.serviette.v1.ServiceRequestChunk.prototype.getPayload_asU8=function(){return o.Message.bytesAsU8(this.getPayload())},proto.serviette.v1.ServiceRequestChunk.prototype.setPayload=function(e){return o.Message.setOneofField(this,11,proto.serviette.v1.ServiceRequestChunk.oneofGroups_[0],e)},proto.serviette.v1.ServiceRequestChunk.prototype.clearPayload=function(){return o.Message.setOneofField(this,11,proto.serviette.v1.ServiceRequestChunk.oneofGroups_[0],void 0)},proto.serviette.v1.ServiceRequestChunk.prototype.hasPayload=function(){return null!=o.Message.getField(this,11)},o.Message.GENERATE_TO_OBJECT&&(proto.serviette.v1.ServiceRequest.prototype.toObject=function(e){return proto.serviette.v1.ServiceRequest.toObject(e,this)},proto.serviette.v1.ServiceRequest.toObject=function(e,t){var r,o={uid:(r=t.getUid())&&proto.serviette.v1.ServiceCallUID.toObject(e,r),header:(r=t.getHeader())&&proto.serviette.v1.ServiceRequestHeader.toObject(e,r),payload:t.getPayload_asB64()};return e&&(o.$jspbMessageInstance=t),o}),proto.serviette.v1.ServiceRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.serviette.v1.ServiceRequest;return proto.serviette.v1.ServiceRequest.deserializeBinaryFromReader(r,t)},proto.serviette.v1.ServiceRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.serviette.v1.ServiceCallUID;t.readMessage(r,proto.serviette.v1.ServiceCallUID.deserializeBinaryFromReader),e.setUid(r);break;case 2:r=new proto.serviette.v1.ServiceRequestHeader,t.readMessage(r,proto.serviette.v1.ServiceRequestHeader.deserializeBinaryFromReader),e.setHeader(r);break;case 3:r=t.readBytes(),e.setPayload(r);break;default:t.skipField()}return e},proto.serviette.v1.ServiceRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.serviette.v1.ServiceRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.serviette.v1.ServiceRequest.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getUid())&&t.writeMessage(1,r,proto.serviette.v1.ServiceCallUID.serializeBinaryToWriter),null!=(r=e.getHeader())&&t.writeMessage(2,r,proto.serviette.v1.ServiceRequestHeader.serializeBinaryToWriter),(r=e.getPayload_asU8()).length>0&&t.writeBytes(3,r)},proto.serviette.v1.ServiceRequest.prototype.getUid=function(){return o.Message.getWrapperField(this,proto.serviette.v1.ServiceCallUID,1)},proto.serviette.v1.ServiceRequest.prototype.setUid=function(e){return o.Message.setWrapperField(this,1,e)},proto.serviette.v1.ServiceRequest.prototype.clearUid=function(){return this.setUid(void 0)},proto.serviette.v1.ServiceRequest.prototype.hasUid=function(){return null!=o.Message.getField(this,1)},proto.serviette.v1.ServiceRequest.prototype.getHeader=function(){return o.Message.getWrapperField(this,proto.serviette.v1.ServiceRequestHeader,2)},proto.serviette.v1.ServiceRequest.prototype.setHeader=function(e){return o.Message.setWrapperField(this,2,e)},proto.serviette.v1.ServiceRequest.prototype.clearHeader=function(){return this.setHeader(void 0)},proto.serviette.v1.ServiceRequest.prototype.hasHeader=function(){return null!=o.Message.getField(this,2)},proto.serviette.v1.ServiceRequest.prototype.getPayload=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.serviette.v1.ServiceRequest.prototype.getPayload_asB64=function(){return o.Message.bytesAsB64(this.getPayload())},proto.serviette.v1.ServiceRequest.prototype.getPayload_asU8=function(){return o.Message.bytesAsU8(this.getPayload())},proto.serviette.v1.ServiceRequest.prototype.setPayload=function(e){return o.Message.setProto3BytesField(this,3,e)},o.Message.GENERATE_TO_OBJECT&&(proto.serviette.v1.ServiceRequestHeader.prototype.toObject=function(e){return proto.serviette.v1.ServiceRequestHeader.toObject(e,this)},proto.serviette.v1.ServiceRequestHeader.toObject=function(e,t){var r,i={source:(r=t.getSource())&&l.RocosURI.toObject(e,r),created:o.Message.getFieldWithDefault(t,2,0),metaMap:(r=t.getMetaMap())?r.toObject(e,void 0):[],responselevel:o.Message.getFieldWithDefault(t,13,0)};return e&&(i.$jspbMessageInstance=t),i}),proto.serviette.v1.ServiceRequestHeader.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.serviette.v1.ServiceRequestHeader;return proto.serviette.v1.ServiceRequestHeader.deserializeBinaryFromReader(r,t)},proto.serviette.v1.ServiceRequestHeader.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new l.RocosURI;t.readMessage(r,l.RocosURI.deserializeBinaryFromReader),e.setSource(r);break;case 2:r=t.readInt64(),e.setCreated(r);break;case 11:r=e.getMetaMap(),t.readMessage(r,(function(e,t){o.Map.deserializeBinary(e,t,o.BinaryReader.prototype.readString,o.BinaryReader.prototype.readString,null,"","")}));break;case 13:r=t.readEnum(),e.setResponselevel(r);break;default:t.skipField()}return e},proto.serviette.v1.ServiceRequestHeader.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.serviette.v1.ServiceRequestHeader.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.serviette.v1.ServiceRequestHeader.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getSource())&&t.writeMessage(1,r,l.RocosURI.serializeBinaryToWriter),0!==(r=e.getCreated())&&t.writeInt64(2,r),(r=e.getMetaMap(!0))&&r.getLength()>0&&r.serializeBinary(11,t,o.BinaryWriter.prototype.writeString,o.BinaryWriter.prototype.writeString),0!==(r=e.getResponselevel())&&t.writeEnum(13,r)},proto.serviette.v1.ServiceRequestHeader.prototype.getSource=function(){return o.Message.getWrapperField(this,l.RocosURI,1)},proto.serviette.v1.ServiceRequestHeader.prototype.setSource=function(e){return o.Message.setWrapperField(this,1,e)},proto.serviette.v1.ServiceRequestHeader.prototype.clearSource=function(){return this.setSource(void 0)},proto.serviette.v1.ServiceRequestHeader.prototype.hasSource=function(){return null!=o.Message.getField(this,1)},proto.serviette.v1.ServiceRequestHeader.prototype.getCreated=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.serviette.v1.ServiceRequestHeader.prototype.setCreated=function(e){return o.Message.setProto3IntField(this,2,e)},proto.serviette.v1.ServiceRequestHeader.prototype.getMetaMap=function(e){return o.Message.getMapField(this,11,e,null)},proto.serviette.v1.ServiceRequestHeader.prototype.clearMetaMap=function(){return this.getMetaMap().clear(),this},proto.serviette.v1.ServiceRequestHeader.prototype.getResponselevel=function(){return o.Message.getFieldWithDefault(this,13,0)},proto.serviette.v1.ServiceRequestHeader.prototype.setResponselevel=function(e){return o.Message.setProto3EnumField(this,13,e)},proto.serviette.v1.RequestCancellations.repeatedFields_=[1],o.Message.GENERATE_TO_OBJECT&&(proto.serviette.v1.RequestCancellations.prototype.toObject=function(e){return proto.serviette.v1.RequestCancellations.toObject(e,this)},proto.serviette.v1.RequestCancellations.toObject=function(e,t){var r={cancellationsList:o.Message.toObjectList(t.getCancellationsList(),proto.serviette.v1.RequestCancellation.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.serviette.v1.RequestCancellations.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.serviette.v1.RequestCancellations;return proto.serviette.v1.RequestCancellations.deserializeBinaryFromReader(r,t)},proto.serviette.v1.RequestCancellations.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new proto.serviette.v1.RequestCancellation;t.readMessage(r,proto.serviette.v1.RequestCancellation.deserializeBinaryFromReader),e.addCancellations(r)}else t.skipField();return e},proto.serviette.v1.RequestCancellations.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.serviette.v1.RequestCancellations.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.serviette.v1.RequestCancellations.serializeBinaryToWriter=function(e,t){var r;(r=e.getCancellationsList()).length>0&&t.writeRepeatedMessage(1,r,proto.serviette.v1.RequestCancellation.serializeBinaryToWriter)},proto.serviette.v1.RequestCancellations.prototype.getCancellationsList=function(){return o.Message.getRepeatedWrapperField(this,proto.serviette.v1.RequestCancellation,1)},proto.serviette.v1.RequestCancellations.prototype.setCancellationsList=function(e){return o.Message.setRepeatedWrapperField(this,1,e)},proto.serviette.v1.RequestCancellations.prototype.addCancellations=function(e,t){return o.Message.addToRepeatedWrapperField(this,1,e,proto.serviette.v1.RequestCancellation,t)},proto.serviette.v1.RequestCancellations.prototype.clearCancellationsList=function(){return this.setCancellationsList([])},o.Message.GENERATE_TO_OBJECT&&(proto.serviette.v1.RequestCancellation.prototype.toObject=function(e){return proto.serviette.v1.RequestCancellation.toObject(e,this)},proto.serviette.v1.RequestCancellation.toObject=function(e,t){var r,o={uid:(r=t.getUid())&&proto.serviette.v1.ServiceCallUID.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.serviette.v1.RequestCancellation.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.serviette.v1.RequestCancellation;return proto.serviette.v1.RequestCancellation.deserializeBinaryFromReader(r,t)},proto.serviette.v1.RequestCancellation.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new proto.serviette.v1.ServiceCallUID;t.readMessage(r,proto.serviette.v1.ServiceCallUID.deserializeBinaryFromReader),e.setUid(r)}else t.skipField();return e},proto.serviette.v1.RequestCancellation.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.serviette.v1.RequestCancellation.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.serviette.v1.RequestCancellation.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getUid())&&t.writeMessage(1,r,proto.serviette.v1.ServiceCallUID.serializeBinaryToWriter)},proto.serviette.v1.RequestCancellation.prototype.getUid=function(){return o.Message.getWrapperField(this,proto.serviette.v1.ServiceCallUID,1)},proto.serviette.v1.RequestCancellation.prototype.setUid=function(e){return o.Message.setWrapperField(this,1,e)},proto.serviette.v1.RequestCancellation.prototype.clearUid=function(){return this.setUid(void 0)},proto.serviette.v1.RequestCancellation.prototype.hasUid=function(){return null!=o.Message.getField(this,1)},proto.serviette.v1.ResponseChannelMessage.oneofGroups_=[[1,2,3]],proto.serviette.v1.ResponseChannelMessage.ContentCase={CONTENT_NOT_SET:0,HEARTBEAT:1,RESPONSES:2,CHUNKS:3},proto.serviette.v1.ResponseChannelMessage.prototype.getContentCase=function(){return o.Message.computeOneofCase(this,proto.serviette.v1.ResponseChannelMessage.oneofGroups_[0])},o.Message.GENERATE_TO_OBJECT&&(proto.serviette.v1.ResponseChannelMessage.prototype.toObject=function(e){return proto.serviette.v1.ResponseChannelMessage.toObject(e,this)},proto.serviette.v1.ResponseChannelMessage.toObject=function(e,t){var r,o={heartbeat:(r=t.getHeartbeat())&&proto.serviette.v1.Heartbeat.toObject(e,r),responses:(r=t.getResponses())&&proto.serviette.v1.ServiceResponses.toObject(e,r),chunks:(r=t.getChunks())&&proto.serviette.v1.ServiceResponseChunks.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.serviette.v1.ResponseChannelMessage.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.serviette.v1.ResponseChannelMessage;return proto.serviette.v1.ResponseChannelMessage.deserializeBinaryFromReader(r,t)},proto.serviette.v1.ResponseChannelMessage.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.serviette.v1.Heartbeat;t.readMessage(r,proto.serviette.v1.Heartbeat.deserializeBinaryFromReader),e.setHeartbeat(r);break;case 2:r=new proto.serviette.v1.ServiceResponses,t.readMessage(r,proto.serviette.v1.ServiceResponses.deserializeBinaryFromReader),e.setResponses(r);break;case 3:r=new proto.serviette.v1.ServiceResponseChunks,t.readMessage(r,proto.serviette.v1.ServiceResponseChunks.deserializeBinaryFromReader),e.setChunks(r);break;default:t.skipField()}return e},proto.serviette.v1.ResponseChannelMessage.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.serviette.v1.ResponseChannelMessage.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.serviette.v1.ResponseChannelMessage.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getHeartbeat())&&t.writeMessage(1,r,proto.serviette.v1.Heartbeat.serializeBinaryToWriter),null!=(r=e.getResponses())&&t.writeMessage(2,r,proto.serviette.v1.ServiceResponses.serializeBinaryToWriter),null!=(r=e.getChunks())&&t.writeMessage(3,r,proto.serviette.v1.ServiceResponseChunks.serializeBinaryToWriter)},proto.serviette.v1.ResponseChannelMessage.prototype.getHeartbeat=function(){return o.Message.getWrapperField(this,proto.serviette.v1.Heartbeat,1)},proto.serviette.v1.ResponseChannelMessage.prototype.setHeartbeat=function(e){return o.Message.setOneofWrapperField(this,1,proto.serviette.v1.ResponseChannelMessage.oneofGroups_[0],e)},proto.serviette.v1.ResponseChannelMessage.prototype.clearHeartbeat=function(){return this.setHeartbeat(void 0)},proto.serviette.v1.ResponseChannelMessage.prototype.hasHeartbeat=function(){return null!=o.Message.getField(this,1)},proto.serviette.v1.ResponseChannelMessage.prototype.getResponses=function(){return o.Message.getWrapperField(this,proto.serviette.v1.ServiceResponses,2)},proto.serviette.v1.ResponseChannelMessage.prototype.setResponses=function(e){return o.Message.setOneofWrapperField(this,2,proto.serviette.v1.ResponseChannelMessage.oneofGroups_[0],e)},proto.serviette.v1.ResponseChannelMessage.prototype.clearResponses=function(){return this.setResponses(void 0)},proto.serviette.v1.ResponseChannelMessage.prototype.hasResponses=function(){return null!=o.Message.getField(this,2)},proto.serviette.v1.ResponseChannelMessage.prototype.getChunks=function(){return o.Message.getWrapperField(this,proto.serviette.v1.ServiceResponseChunks,3)},proto.serviette.v1.ResponseChannelMessage.prototype.setChunks=function(e){return o.Message.setOneofWrapperField(this,3,proto.serviette.v1.ResponseChannelMessage.oneofGroups_[0],e)},proto.serviette.v1.ResponseChannelMessage.prototype.clearChunks=function(){return this.setChunks(void 0)},proto.serviette.v1.ResponseChannelMessage.prototype.hasChunks=function(){return null!=o.Message.getField(this,3)},proto.serviette.v1.ServiceResponses.repeatedFields_=[1],o.Message.GENERATE_TO_OBJECT&&(proto.serviette.v1.ServiceResponses.prototype.toObject=function(e){return proto.serviette.v1.ServiceResponses.toObject(e,this)},proto.serviette.v1.ServiceResponses.toObject=function(e,t){var r={responsesList:o.Message.toObjectList(t.getResponsesList(),proto.serviette.v1.ServiceResponse.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.serviette.v1.ServiceResponses.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.serviette.v1.ServiceResponses;return proto.serviette.v1.ServiceResponses.deserializeBinaryFromReader(r,t)},proto.serviette.v1.ServiceResponses.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new proto.serviette.v1.ServiceResponse;t.readMessage(r,proto.serviette.v1.ServiceResponse.deserializeBinaryFromReader),e.addResponses(r)}else t.skipField();return e},proto.serviette.v1.ServiceResponses.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.serviette.v1.ServiceResponses.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.serviette.v1.ServiceResponses.serializeBinaryToWriter=function(e,t){var r;(r=e.getResponsesList()).length>0&&t.writeRepeatedMessage(1,r,proto.serviette.v1.ServiceResponse.serializeBinaryToWriter)},proto.serviette.v1.ServiceResponses.prototype.getResponsesList=function(){return o.Message.getRepeatedWrapperField(this,proto.serviette.v1.ServiceResponse,1)},proto.serviette.v1.ServiceResponses.prototype.setResponsesList=function(e){return o.Message.setRepeatedWrapperField(this,1,e)},proto.serviette.v1.ServiceResponses.prototype.addResponses=function(e,t){return o.Message.addToRepeatedWrapperField(this,1,e,proto.serviette.v1.ServiceResponse,t)},proto.serviette.v1.ServiceResponses.prototype.clearResponsesList=function(){return this.setResponsesList([])},proto.serviette.v1.ServiceResponseChunks.repeatedFields_=[1],o.Message.GENERATE_TO_OBJECT&&(proto.serviette.v1.ServiceResponseChunks.prototype.toObject=function(e){return proto.serviette.v1.ServiceResponseChunks.toObject(e,this)},proto.serviette.v1.ServiceResponseChunks.toObject=function(e,t){var r={chunksList:o.Message.toObjectList(t.getChunksList(),proto.serviette.v1.ServiceResponseChunk.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.serviette.v1.ServiceResponseChunks.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.serviette.v1.ServiceResponseChunks;return proto.serviette.v1.ServiceResponseChunks.deserializeBinaryFromReader(r,t)},proto.serviette.v1.ServiceResponseChunks.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new proto.serviette.v1.ServiceResponseChunk;t.readMessage(r,proto.serviette.v1.ServiceResponseChunk.deserializeBinaryFromReader),e.addChunks(r)}else t.skipField();return e},proto.serviette.v1.ServiceResponseChunks.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.serviette.v1.ServiceResponseChunks.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.serviette.v1.ServiceResponseChunks.serializeBinaryToWriter=function(e,t){var r;(r=e.getChunksList()).length>0&&t.writeRepeatedMessage(1,r,proto.serviette.v1.ServiceResponseChunk.serializeBinaryToWriter)},proto.serviette.v1.ServiceResponseChunks.prototype.getChunksList=function(){return o.Message.getRepeatedWrapperField(this,proto.serviette.v1.ServiceResponseChunk,1)},proto.serviette.v1.ServiceResponseChunks.prototype.setChunksList=function(e){return o.Message.setRepeatedWrapperField(this,1,e)},proto.serviette.v1.ServiceResponseChunks.prototype.addChunks=function(e,t){return o.Message.addToRepeatedWrapperField(this,1,e,proto.serviette.v1.ServiceResponseChunk,t)},proto.serviette.v1.ServiceResponseChunks.prototype.clearChunksList=function(){return this.setChunksList([])},proto.serviette.v1.ServiceResponseChunk.oneofGroups_=[[10,11,12,13]],proto.serviette.v1.ServiceResponseChunk.ContentCase={CONTENT_NOT_SET:0,HEADER:10,PAYLOAD:11,ACK:12,RESULT:13},proto.serviette.v1.ServiceResponseChunk.prototype.getContentCase=function(){return o.Message.computeOneofCase(this,proto.serviette.v1.ServiceResponseChunk.oneofGroups_[0])},o.Message.GENERATE_TO_OBJECT&&(proto.serviette.v1.ServiceResponseChunk.prototype.toObject=function(e){return proto.serviette.v1.ServiceResponseChunk.toObject(e,this)},proto.serviette.v1.ServiceResponseChunk.toObject=function(e,t){var r,i={uid:(r=t.getUid())&&proto.serviette.v1.ServiceCallUID.toObject(e,r),chunkindex:o.Message.getFieldWithDefault(t,2,0),chunkcount:o.Message.getFieldWithDefault(t,3,0),header:(r=t.getHeader())&&proto.serviette.v1.ServiceReturnHeader.toObject(e,r),payload:t.getPayload_asB64(),ack:(r=t.getAck())&&proto.serviette.v1.ServiceAck.toObject(e,r),result:(r=t.getResult())&&proto.serviette.v1.ServiceResult.toObject(e,r)};return e&&(i.$jspbMessageInstance=t),i}),proto.serviette.v1.ServiceResponseChunk.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.serviette.v1.ServiceResponseChunk;return proto.serviette.v1.ServiceResponseChunk.deserializeBinaryFromReader(r,t)},proto.serviette.v1.ServiceResponseChunk.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.serviette.v1.ServiceCallUID;t.readMessage(r,proto.serviette.v1.ServiceCallUID.deserializeBinaryFromReader),e.setUid(r);break;case 2:r=t.readUint32(),e.setChunkindex(r);break;case 3:r=t.readUint32(),e.setChunkcount(r);break;case 10:r=new proto.serviette.v1.ServiceReturnHeader,t.readMessage(r,proto.serviette.v1.ServiceReturnHeader.deserializeBinaryFromReader),e.setHeader(r);break;case 11:r=t.readBytes(),e.setPayload(r);break;case 12:r=new proto.serviette.v1.ServiceAck,t.readMessage(r,proto.serviette.v1.ServiceAck.deserializeBinaryFromReader),e.setAck(r);break;case 13:r=new proto.serviette.v1.ServiceResult,t.readMessage(r,proto.serviette.v1.ServiceResult.deserializeBinaryFromReader),e.setResult(r);break;default:t.skipField()}return e},proto.serviette.v1.ServiceResponseChunk.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.serviette.v1.ServiceResponseChunk.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.serviette.v1.ServiceResponseChunk.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getUid())&&t.writeMessage(1,r,proto.serviette.v1.ServiceCallUID.serializeBinaryToWriter),0!==(r=e.getChunkindex())&&t.writeUint32(2,r),0!==(r=e.getChunkcount())&&t.writeUint32(3,r),null!=(r=e.getHeader())&&t.writeMessage(10,r,proto.serviette.v1.ServiceReturnHeader.serializeBinaryToWriter),null!=(r=o.Message.getField(e,11))&&t.writeBytes(11,r),null!=(r=e.getAck())&&t.writeMessage(12,r,proto.serviette.v1.ServiceAck.serializeBinaryToWriter),null!=(r=e.getResult())&&t.writeMessage(13,r,proto.serviette.v1.ServiceResult.serializeBinaryToWriter)},proto.serviette.v1.ServiceResponseChunk.prototype.getUid=function(){return o.Message.getWrapperField(this,proto.serviette.v1.ServiceCallUID,1)},proto.serviette.v1.ServiceResponseChunk.prototype.setUid=function(e){return o.Message.setWrapperField(this,1,e)},proto.serviette.v1.ServiceResponseChunk.prototype.clearUid=function(){return this.setUid(void 0)},proto.serviette.v1.ServiceResponseChunk.prototype.hasUid=function(){return null!=o.Message.getField(this,1)},proto.serviette.v1.ServiceResponseChunk.prototype.getChunkindex=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.serviette.v1.ServiceResponseChunk.prototype.setChunkindex=function(e){return o.Message.setProto3IntField(this,2,e)},proto.serviette.v1.ServiceResponseChunk.prototype.getChunkcount=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.serviette.v1.ServiceResponseChunk.prototype.setChunkcount=function(e){return o.Message.setProto3IntField(this,3,e)},proto.serviette.v1.ServiceResponseChunk.prototype.getHeader=function(){return o.Message.getWrapperField(this,proto.serviette.v1.ServiceReturnHeader,10)},proto.serviette.v1.ServiceResponseChunk.prototype.setHeader=function(e){return o.Message.setOneofWrapperField(this,10,proto.serviette.v1.ServiceResponseChunk.oneofGroups_[0],e)},proto.serviette.v1.ServiceResponseChunk.prototype.clearHeader=function(){return this.setHeader(void 0)},proto.serviette.v1.ServiceResponseChunk.prototype.hasHeader=function(){return null!=o.Message.getField(this,10)},proto.serviette.v1.ServiceResponseChunk.prototype.getPayload=function(){return o.Message.getFieldWithDefault(this,11,"")},proto.serviette.v1.ServiceResponseChunk.prototype.getPayload_asB64=function(){return o.Message.bytesAsB64(this.getPayload())},proto.serviette.v1.ServiceResponseChunk.prototype.getPayload_asU8=function(){return o.Message.bytesAsU8(this.getPayload())},proto.serviette.v1.ServiceResponseChunk.prototype.setPayload=function(e){return o.Message.setOneofField(this,11,proto.serviette.v1.ServiceResponseChunk.oneofGroups_[0],e)},proto.serviette.v1.ServiceResponseChunk.prototype.clearPayload=function(){return o.Message.setOneofField(this,11,proto.serviette.v1.ServiceResponseChunk.oneofGroups_[0],void 0)},proto.serviette.v1.ServiceResponseChunk.prototype.hasPayload=function(){return null!=o.Message.getField(this,11)},proto.serviette.v1.ServiceResponseChunk.prototype.getAck=function(){return o.Message.getWrapperField(this,proto.serviette.v1.ServiceAck,12)},proto.serviette.v1.ServiceResponseChunk.prototype.setAck=function(e){return o.Message.setOneofWrapperField(this,12,proto.serviette.v1.ServiceResponseChunk.oneofGroups_[0],e)},proto.serviette.v1.ServiceResponseChunk.prototype.clearAck=function(){return this.setAck(void 0)},proto.serviette.v1.ServiceResponseChunk.prototype.hasAck=function(){return null!=o.Message.getField(this,12)},proto.serviette.v1.ServiceResponseChunk.prototype.getResult=function(){return o.Message.getWrapperField(this,proto.serviette.v1.ServiceResult,13)},proto.serviette.v1.ServiceResponseChunk.prototype.setResult=function(e){return o.Message.setOneofWrapperField(this,13,proto.serviette.v1.ServiceResponseChunk.oneofGroups_[0],e)},proto.serviette.v1.ServiceResponseChunk.prototype.clearResult=function(){return this.setResult(void 0)},proto.serviette.v1.ServiceResponseChunk.prototype.hasResult=function(){return null!=o.Message.getField(this,13)},proto.serviette.v1.ServiceResponse.oneofGroups_=[[10,11,12]],proto.serviette.v1.ServiceResponse.ContentCase={CONTENT_NOT_SET:0,ACK:10,RESULT:11,RETURN:12},proto.serviette.v1.ServiceResponse.prototype.getContentCase=function(){return o.Message.computeOneofCase(this,proto.serviette.v1.ServiceResponse.oneofGroups_[0])},o.Message.GENERATE_TO_OBJECT&&(proto.serviette.v1.ServiceResponse.prototype.toObject=function(e){return proto.serviette.v1.ServiceResponse.toObject(e,this)},proto.serviette.v1.ServiceResponse.toObject=function(e,t){var r,o={uid:(r=t.getUid())&&proto.serviette.v1.ServiceCallUID.toObject(e,r),ack:(r=t.getAck())&&proto.serviette.v1.ServiceAck.toObject(e,r),result:(r=t.getResult())&&proto.serviette.v1.ServiceResult.toObject(e,r),pb_return:(r=t.getReturn())&&proto.serviette.v1.ServiceReturn.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.serviette.v1.ServiceResponse.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.serviette.v1.ServiceResponse;return proto.serviette.v1.ServiceResponse.deserializeBinaryFromReader(r,t)},proto.serviette.v1.ServiceResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.serviette.v1.ServiceCallUID;t.readMessage(r,proto.serviette.v1.ServiceCallUID.deserializeBinaryFromReader),e.setUid(r);break;case 10:r=new proto.serviette.v1.ServiceAck,t.readMessage(r,proto.serviette.v1.ServiceAck.deserializeBinaryFromReader),e.setAck(r);break;case 11:r=new proto.serviette.v1.ServiceResult,t.readMessage(r,proto.serviette.v1.ServiceResult.deserializeBinaryFromReader),e.setResult(r);break;case 12:r=new proto.serviette.v1.ServiceReturn,t.readMessage(r,proto.serviette.v1.ServiceReturn.deserializeBinaryFromReader),e.setReturn(r);break;default:t.skipField()}return e},proto.serviette.v1.ServiceResponse.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.serviette.v1.ServiceResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.serviette.v1.ServiceResponse.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getUid())&&t.writeMessage(1,r,proto.serviette.v1.ServiceCallUID.serializeBinaryToWriter),null!=(r=e.getAck())&&t.writeMessage(10,r,proto.serviette.v1.ServiceAck.serializeBinaryToWriter),null!=(r=e.getResult())&&t.writeMessage(11,r,proto.serviette.v1.ServiceResult.serializeBinaryToWriter),null!=(r=e.getReturn())&&t.writeMessage(12,r,proto.serviette.v1.ServiceReturn.serializeBinaryToWriter)},proto.serviette.v1.ServiceResponse.prototype.getUid=function(){return o.Message.getWrapperField(this,proto.serviette.v1.ServiceCallUID,1)},proto.serviette.v1.ServiceResponse.prototype.setUid=function(e){return o.Message.setWrapperField(this,1,e)},proto.serviette.v1.ServiceResponse.prototype.clearUid=function(){return this.setUid(void 0)},proto.serviette.v1.ServiceResponse.prototype.hasUid=function(){return null!=o.Message.getField(this,1)},proto.serviette.v1.ServiceResponse.prototype.getAck=function(){return o.Message.getWrapperField(this,proto.serviette.v1.ServiceAck,10)},proto.serviette.v1.ServiceResponse.prototype.setAck=function(e){return o.Message.setOneofWrapperField(this,10,proto.serviette.v1.ServiceResponse.oneofGroups_[0],e)},proto.serviette.v1.ServiceResponse.prototype.clearAck=function(){return this.setAck(void 0)},proto.serviette.v1.ServiceResponse.prototype.hasAck=function(){return null!=o.Message.getField(this,10)},proto.serviette.v1.ServiceResponse.prototype.getResult=function(){return o.Message.getWrapperField(this,proto.serviette.v1.ServiceResult,11)},proto.serviette.v1.ServiceResponse.prototype.setResult=function(e){return o.Message.setOneofWrapperField(this,11,proto.serviette.v1.ServiceResponse.oneofGroups_[0],e)},proto.serviette.v1.ServiceResponse.prototype.clearResult=function(){return this.setResult(void 0)},proto.serviette.v1.ServiceResponse.prototype.hasResult=function(){return null!=o.Message.getField(this,11)},proto.serviette.v1.ServiceResponse.prototype.getReturn=function(){return o.Message.getWrapperField(this,proto.serviette.v1.ServiceReturn,12)},proto.serviette.v1.ServiceResponse.prototype.setReturn=function(e){return o.Message.setOneofWrapperField(this,12,proto.serviette.v1.ServiceResponse.oneofGroups_[0],e)},proto.serviette.v1.ServiceResponse.prototype.clearReturn=function(){return this.setReturn(void 0)},proto.serviette.v1.ServiceResponse.prototype.hasReturn=function(){return null!=o.Message.getField(this,12)},o.Message.GENERATE_TO_OBJECT&&(proto.serviette.v1.ServiceReturn.prototype.toObject=function(e){return proto.serviette.v1.ServiceReturn.toObject(e,this)},proto.serviette.v1.ServiceReturn.toObject=function(e,t){var r,o={header:(r=t.getHeader())&&proto.serviette.v1.ServiceReturnHeader.toObject(e,r),payload:t.getPayload_asB64()};return e&&(o.$jspbMessageInstance=t),o}),proto.serviette.v1.ServiceReturn.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.serviette.v1.ServiceReturn;return proto.serviette.v1.ServiceReturn.deserializeBinaryFromReader(r,t)},proto.serviette.v1.ServiceReturn.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.serviette.v1.ServiceReturnHeader;t.readMessage(r,proto.serviette.v1.ServiceReturnHeader.deserializeBinaryFromReader),e.setHeader(r);break;case 2:r=t.readBytes(),e.setPayload(r);break;default:t.skipField()}return e},proto.serviette.v1.ServiceReturn.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.serviette.v1.ServiceReturn.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.serviette.v1.ServiceReturn.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getHeader())&&t.writeMessage(1,r,proto.serviette.v1.ServiceReturnHeader.serializeBinaryToWriter),(r=e.getPayload_asU8()).length>0&&t.writeBytes(2,r)},proto.serviette.v1.ServiceReturn.prototype.getHeader=function(){return o.Message.getWrapperField(this,proto.serviette.v1.ServiceReturnHeader,1)},proto.serviette.v1.ServiceReturn.prototype.setHeader=function(e){return o.Message.setWrapperField(this,1,e)},proto.serviette.v1.ServiceReturn.prototype.clearHeader=function(){return this.setHeader(void 0)},proto.serviette.v1.ServiceReturn.prototype.hasHeader=function(){return null!=o.Message.getField(this,1)},proto.serviette.v1.ServiceReturn.prototype.getPayload=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.serviette.v1.ServiceReturn.prototype.getPayload_asB64=function(){return o.Message.bytesAsB64(this.getPayload())},proto.serviette.v1.ServiceReturn.prototype.getPayload_asU8=function(){return o.Message.bytesAsU8(this.getPayload())},proto.serviette.v1.ServiceReturn.prototype.setPayload=function(e){return o.Message.setProto3BytesField(this,2,e)},o.Message.GENERATE_TO_OBJECT&&(proto.serviette.v1.ServiceReturnHeader.prototype.toObject=function(e){return proto.serviette.v1.ServiceReturnHeader.toObject(e,this)},proto.serviette.v1.ServiceReturnHeader.toObject=function(e,t){var r,i={created:o.Message.getFieldWithDefault(t,1,0),metaMap:(r=t.getMetaMap())?r.toObject(e,void 0):[]};return e&&(i.$jspbMessageInstance=t),i}),proto.serviette.v1.ServiceReturnHeader.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.serviette.v1.ServiceReturnHeader;return proto.serviette.v1.ServiceReturnHeader.deserializeBinaryFromReader(r,t)},proto.serviette.v1.ServiceReturnHeader.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readInt64();e.setCreated(r);break;case 10:r=e.getMetaMap(),t.readMessage(r,(function(e,t){o.Map.deserializeBinary(e,t,o.BinaryReader.prototype.readString,o.BinaryReader.prototype.readString,null,"","")}));break;default:t.skipField()}return e},proto.serviette.v1.ServiceReturnHeader.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.serviette.v1.ServiceReturnHeader.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.serviette.v1.ServiceReturnHeader.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getCreated())&&t.writeInt64(1,r),(r=e.getMetaMap(!0))&&r.getLength()>0&&r.serializeBinary(10,t,o.BinaryWriter.prototype.writeString,o.BinaryWriter.prototype.writeString)},proto.serviette.v1.ServiceReturnHeader.prototype.getCreated=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.serviette.v1.ServiceReturnHeader.prototype.setCreated=function(e){return o.Message.setProto3IntField(this,1,e)},proto.serviette.v1.ServiceReturnHeader.prototype.getMetaMap=function(e){return o.Message.getMapField(this,10,e,null)},proto.serviette.v1.ServiceReturnHeader.prototype.clearMetaMap=function(){return this.getMetaMap().clear(),this},o.Message.GENERATE_TO_OBJECT&&(proto.serviette.v1.ServiceAck.prototype.toObject=function(e){return proto.serviette.v1.ServiceAck.toObject(e,this)},proto.serviette.v1.ServiceAck.toObject=function(e,t){var r={stage:o.Message.getFieldWithDefault(t,1,0),status:o.Message.getFieldWithDefault(t,2,0),message:o.Message.getFieldWithDefault(t,10,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.serviette.v1.ServiceAck.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.serviette.v1.ServiceAck;return proto.serviette.v1.ServiceAck.deserializeBinaryFromReader(r,t)},proto.serviette.v1.ServiceAck.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setStage(r);break;case 2:r=t.readEnum(),e.setStatus(r);break;case 10:r=t.readString(),e.setMessage(r);break;default:t.skipField()}return e},proto.serviette.v1.ServiceAck.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.serviette.v1.ServiceAck.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.serviette.v1.ServiceAck.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getStage())&&t.writeEnum(1,r),0!==(r=e.getStatus())&&t.writeEnum(2,r),(r=e.getMessage()).length>0&&t.writeString(10,r)},proto.serviette.v1.ServiceAck.prototype.getStage=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.serviette.v1.ServiceAck.prototype.setStage=function(e){return o.Message.setProto3EnumField(this,1,e)},proto.serviette.v1.ServiceAck.prototype.getStatus=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.serviette.v1.ServiceAck.prototype.setStatus=function(e){return o.Message.setProto3EnumField(this,2,e)},proto.serviette.v1.ServiceAck.prototype.getMessage=function(){return o.Message.getFieldWithDefault(this,10,"")},proto.serviette.v1.ServiceAck.prototype.setMessage=function(e){return o.Message.setProto3StringField(this,10,e)},o.Message.GENERATE_TO_OBJECT&&(proto.serviette.v1.ServiceResult.prototype.toObject=function(e){return proto.serviette.v1.ServiceResult.toObject(e,this)},proto.serviette.v1.ServiceResult.toObject=function(e,t){var r={status:o.Message.getFieldWithDefault(t,1,0),message:o.Message.getFieldWithDefault(t,10,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.serviette.v1.ServiceResult.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.serviette.v1.ServiceResult;return proto.serviette.v1.ServiceResult.deserializeBinaryFromReader(r,t)},proto.serviette.v1.ServiceResult.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setStatus(r);break;case 10:r=t.readString(),e.setMessage(r);break;default:t.skipField()}return e},proto.serviette.v1.ServiceResult.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.serviette.v1.ServiceResult.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.serviette.v1.ServiceResult.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getStatus())&&t.writeEnum(1,r),(r=e.getMessage()).length>0&&t.writeString(10,r)},proto.serviette.v1.ServiceResult.prototype.getStatus=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.serviette.v1.ServiceResult.prototype.setStatus=function(e){return o.Message.setProto3EnumField(this,1,e)},proto.serviette.v1.ServiceResult.prototype.getMessage=function(){return o.Message.getFieldWithDefault(this,10,"")},proto.serviette.v1.ServiceResult.prototype.setMessage=function(e){return o.Message.setProto3StringField(this,10,e)},o.Message.GENERATE_TO_OBJECT&&(proto.serviette.v1.WebReceiverRegistration.prototype.toObject=function(e){return proto.serviette.v1.WebReceiverRegistration.toObject(e,this)},proto.serviette.v1.WebReceiverRegistration.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.serviette.v1.WebReceiverRegistration.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.serviette.v1.WebReceiverRegistration;return proto.serviette.v1.WebReceiverRegistration.deserializeBinaryFromReader(r,t)},proto.serviette.v1.WebReceiverRegistration.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},proto.serviette.v1.WebReceiverRegistration.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.serviette.v1.WebReceiverRegistration.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.serviette.v1.WebReceiverRegistration.serializeBinaryToWriter=function(e,t){},o.Message.GENERATE_TO_OBJECT&&(proto.serviette.v1.WebSendResponseMessage.prototype.toObject=function(e){return proto.serviette.v1.WebSendResponseMessage.toObject(e,this)},proto.serviette.v1.WebSendResponseMessage.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.serviette.v1.WebSendResponseMessage.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.serviette.v1.WebSendResponseMessage;return proto.serviette.v1.WebSendResponseMessage.deserializeBinaryFromReader(r,t)},proto.serviette.v1.WebSendResponseMessage.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},proto.serviette.v1.WebSendResponseMessage.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.serviette.v1.WebSendResponseMessage.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.serviette.v1.WebSendResponseMessage.serializeBinaryToWriter=function(e,t){},proto.serviette.v1.ReceiverRecords.repeatedFields_=[1],o.Message.GENERATE_TO_OBJECT&&(proto.serviette.v1.ReceiverRecords.prototype.toObject=function(e){return proto.serviette.v1.ReceiverRecords.toObject(e,this)},proto.serviette.v1.ReceiverRecords.toObject=function(e,t){var r={recordsList:o.Message.toObjectList(t.getRecordsList(),proto.serviette.v1.ReceiverRecord.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.serviette.v1.ReceiverRecords.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.serviette.v1.ReceiverRecords;return proto.serviette.v1.ReceiverRecords.deserializeBinaryFromReader(r,t)},proto.serviette.v1.ReceiverRecords.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new proto.serviette.v1.ReceiverRecord;t.readMessage(r,proto.serviette.v1.ReceiverRecord.deserializeBinaryFromReader),e.addRecords(r)}else t.skipField();return e},proto.serviette.v1.ReceiverRecords.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.serviette.v1.ReceiverRecords.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.serviette.v1.ReceiverRecords.serializeBinaryToWriter=function(e,t){var r;(r=e.getRecordsList()).length>0&&t.writeRepeatedMessage(1,r,proto.serviette.v1.ReceiverRecord.serializeBinaryToWriter)},proto.serviette.v1.ReceiverRecords.prototype.getRecordsList=function(){return o.Message.getRepeatedWrapperField(this,proto.serviette.v1.ReceiverRecord,1)},proto.serviette.v1.ReceiverRecords.prototype.setRecordsList=function(e){return o.Message.setRepeatedWrapperField(this,1,e)},proto.serviette.v1.ReceiverRecords.prototype.addRecords=function(e,t){return o.Message.addToRepeatedWrapperField(this,1,e,proto.serviette.v1.ReceiverRecord,t)},proto.serviette.v1.ReceiverRecords.prototype.clearRecordsList=function(){return this.setRecordsList([])},o.Message.GENERATE_TO_OBJECT&&(proto.serviette.v1.ReceiverRecord.prototype.toObject=function(e){return proto.serviette.v1.ReceiverRecord.toObject(e,this)},proto.serviette.v1.ReceiverRecord.toObject=function(e,t){var r,i={gateway:(r=t.getGateway())&&proto.serviette.v1.MeshNodeUID.toObject(e,r),project:o.Message.getFieldWithDefault(t,2,""),callsign:o.Message.getFieldWithDefault(t,3,""),subsystem:o.Message.getFieldWithDefault(t,4,""),metric:o.Message.getFieldWithDefault(t,5,0)};return e&&(i.$jspbMessageInstance=t),i}),proto.serviette.v1.ReceiverRecord.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.serviette.v1.ReceiverRecord;return proto.serviette.v1.ReceiverRecord.deserializeBinaryFromReader(r,t)},proto.serviette.v1.ReceiverRecord.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.serviette.v1.MeshNodeUID;t.readMessage(r,proto.serviette.v1.MeshNodeUID.deserializeBinaryFromReader),e.setGateway(r);break;case 2:r=t.readString(),e.setProject(r);break;case 3:r=t.readString(),e.setCallsign(r);break;case 4:r=t.readString(),e.setSubsystem(r);break;case 5:r=t.readUint32(),e.setMetric(r);break;default:t.skipField()}return e},proto.serviette.v1.ReceiverRecord.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.serviette.v1.ReceiverRecord.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.serviette.v1.ReceiverRecord.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getGateway())&&t.writeMessage(1,r,proto.serviette.v1.MeshNodeUID.serializeBinaryToWriter),(r=e.getProject()).length>0&&t.writeString(2,r),(r=e.getCallsign()).length>0&&t.writeString(3,r),(r=e.getSubsystem()).length>0&&t.writeString(4,r),0!==(r=e.getMetric())&&t.writeUint32(5,r)},proto.serviette.v1.ReceiverRecord.prototype.getGateway=function(){return o.Message.getWrapperField(this,proto.serviette.v1.MeshNodeUID,1)},proto.serviette.v1.ReceiverRecord.prototype.setGateway=function(e){return o.Message.setWrapperField(this,1,e)},proto.serviette.v1.ReceiverRecord.prototype.clearGateway=function(){return this.setGateway(void 0)},proto.serviette.v1.ReceiverRecord.prototype.hasGateway=function(){return null!=o.Message.getField(this,1)},proto.serviette.v1.ReceiverRecord.prototype.getProject=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.serviette.v1.ReceiverRecord.prototype.setProject=function(e){return o.Message.setProto3StringField(this,2,e)},proto.serviette.v1.ReceiverRecord.prototype.getCallsign=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.serviette.v1.ReceiverRecord.prototype.setCallsign=function(e){return o.Message.setProto3StringField(this,3,e)},proto.serviette.v1.ReceiverRecord.prototype.getSubsystem=function(){return o.Message.getFieldWithDefault(this,4,"")},proto.serviette.v1.ReceiverRecord.prototype.setSubsystem=function(e){return o.Message.setProto3StringField(this,4,e)},proto.serviette.v1.ReceiverRecord.prototype.getMetric=function(){return o.Message.getFieldWithDefault(this,5,0)},proto.serviette.v1.ReceiverRecord.prototype.setMetric=function(e){return o.Message.setProto3IntField(this,5,e)},proto.serviette.v1.MeshNodeUID.oneofGroups_=[[2]],proto.serviette.v1.MeshNodeUID.UidCase={UID_NOT_SET:0,NAME:2},proto.serviette.v1.MeshNodeUID.prototype.getUidCase=function(){return o.Message.computeOneofCase(this,proto.serviette.v1.MeshNodeUID.oneofGroups_[0])},o.Message.GENERATE_TO_OBJECT&&(proto.serviette.v1.MeshNodeUID.prototype.toObject=function(e){return proto.serviette.v1.MeshNodeUID.toObject(e,this)},proto.serviette.v1.MeshNodeUID.toObject=function(e,t){var r={version:o.Message.getFieldWithDefault(t,1,0),name:o.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.serviette.v1.MeshNodeUID.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.serviette.v1.MeshNodeUID;return proto.serviette.v1.MeshNodeUID.deserializeBinaryFromReader(r,t)},proto.serviette.v1.MeshNodeUID.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setVersion(r);break;case 2:r=t.readString(),e.setName(r);break;default:t.skipField()}return e},proto.serviette.v1.MeshNodeUID.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.serviette.v1.MeshNodeUID.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.serviette.v1.MeshNodeUID.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getVersion())&&t.writeEnum(1,r),null!=(r=o.Message.getField(e,2))&&t.writeString(2,r)},proto.serviette.v1.MeshNodeUID.prototype.getVersion=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.serviette.v1.MeshNodeUID.prototype.setVersion=function(e){return o.Message.setProto3EnumField(this,1,e)},proto.serviette.v1.MeshNodeUID.prototype.getName=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.serviette.v1.MeshNodeUID.prototype.setName=function(e){return o.Message.setOneofField(this,2,proto.serviette.v1.MeshNodeUID.oneofGroups_[0],e)},proto.serviette.v1.MeshNodeUID.prototype.clearName=function(){return o.Message.setOneofField(this,2,proto.serviette.v1.MeshNodeUID.oneofGroups_[0],void 0)},proto.serviette.v1.MeshNodeUID.prototype.hasName=function(){return null!=o.Message.getField(this,2)},proto.serviette.v1.MeshNodeRequest.oneofGroups_=[[1,2]],proto.serviette.v1.MeshNodeRequest.IdCase={ID_NOT_SET:0,ADDRESS:1,UID:2},proto.serviette.v1.MeshNodeRequest.prototype.getIdCase=function(){return o.Message.computeOneofCase(this,proto.serviette.v1.MeshNodeRequest.oneofGroups_[0])},o.Message.GENERATE_TO_OBJECT&&(proto.serviette.v1.MeshNodeRequest.prototype.toObject=function(e){return proto.serviette.v1.MeshNodeRequest.toObject(e,this)},proto.serviette.v1.MeshNodeRequest.toObject=function(e,t){var r,i={address:o.Message.getFieldWithDefault(t,1,""),uid:(r=t.getUid())&&proto.serviette.v1.MeshNodeUID.toObject(e,r),command:o.Message.getFieldWithDefault(t,10,0)};return e&&(i.$jspbMessageInstance=t),i}),proto.serviette.v1.MeshNodeRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.serviette.v1.MeshNodeRequest;return proto.serviette.v1.MeshNodeRequest.deserializeBinaryFromReader(r,t)},proto.serviette.v1.MeshNodeRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setAddress(r);break;case 2:r=new proto.serviette.v1.MeshNodeUID,t.readMessage(r,proto.serviette.v1.MeshNodeUID.deserializeBinaryFromReader),e.setUid(r);break;case 10:r=t.readEnum(),e.setCommand(r);break;default:t.skipField()}return e},proto.serviette.v1.MeshNodeRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.serviette.v1.MeshNodeRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.serviette.v1.MeshNodeRequest.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=o.Message.getField(e,1))&&t.writeString(1,r),null!=(r=e.getUid())&&t.writeMessage(2,r,proto.serviette.v1.MeshNodeUID.serializeBinaryToWriter),0!==(r=e.getCommand())&&t.writeEnum(10,r)},proto.serviette.v1.MeshNodeRequest.prototype.getAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.serviette.v1.MeshNodeRequest.prototype.setAddress=function(e){return o.Message.setOneofField(this,1,proto.serviette.v1.MeshNodeRequest.oneofGroups_[0],e)},proto.serviette.v1.MeshNodeRequest.prototype.clearAddress=function(){return o.Message.setOneofField(this,1,proto.serviette.v1.MeshNodeRequest.oneofGroups_[0],void 0)},proto.serviette.v1.MeshNodeRequest.prototype.hasAddress=function(){return null!=o.Message.getField(this,1)},proto.serviette.v1.MeshNodeRequest.prototype.getUid=function(){return o.Message.getWrapperField(this,proto.serviette.v1.MeshNodeUID,2)},proto.serviette.v1.MeshNodeRequest.prototype.setUid=function(e){return o.Message.setOneofWrapperField(this,2,proto.serviette.v1.MeshNodeRequest.oneofGroups_[0],e)},proto.serviette.v1.MeshNodeRequest.prototype.clearUid=function(){return this.setUid(void 0)},proto.serviette.v1.MeshNodeRequest.prototype.hasUid=function(){return null!=o.Message.getField(this,2)},proto.serviette.v1.MeshNodeRequest.prototype.getCommand=function(){return o.Message.getFieldWithDefault(this,10,0)},proto.serviette.v1.MeshNodeRequest.prototype.setCommand=function(e){return o.Message.setProto3EnumField(this,10,e)},o.Message.GENERATE_TO_OBJECT&&(proto.serviette.v1.MeshNodeResponse.prototype.toObject=function(e){return proto.serviette.v1.MeshNodeResponse.toObject(e,this)},proto.serviette.v1.MeshNodeResponse.toObject=function(e,t){var r,i={ok:o.Message.getBooleanFieldWithDefault(t,1,!1),uid:(r=t.getUid())&&proto.serviette.v1.MeshNodeUID.toObject(e,r)};return e&&(i.$jspbMessageInstance=t),i}),proto.serviette.v1.MeshNodeResponse.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.serviette.v1.MeshNodeResponse;return proto.serviette.v1.MeshNodeResponse.deserializeBinaryFromReader(r,t)},proto.serviette.v1.MeshNodeResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBool();e.setOk(r);break;case 2:r=new proto.serviette.v1.MeshNodeUID,t.readMessage(r,proto.serviette.v1.MeshNodeUID.deserializeBinaryFromReader),e.setUid(r);break;default:t.skipField()}return e},proto.serviette.v1.MeshNodeResponse.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.serviette.v1.MeshNodeResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.serviette.v1.MeshNodeResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getOk())&&t.writeBool(1,r),null!=(r=e.getUid())&&t.writeMessage(2,r,proto.serviette.v1.MeshNodeUID.serializeBinaryToWriter)},proto.serviette.v1.MeshNodeResponse.prototype.getOk=function(){return o.Message.getBooleanFieldWithDefault(this,1,!1)},proto.serviette.v1.MeshNodeResponse.prototype.setOk=function(e){return o.Message.setProto3BooleanField(this,1,e)},proto.serviette.v1.MeshNodeResponse.prototype.getUid=function(){return o.Message.getWrapperField(this,proto.serviette.v1.MeshNodeUID,2)},proto.serviette.v1.MeshNodeResponse.prototype.setUid=function(e){return o.Message.setWrapperField(this,2,e)},proto.serviette.v1.MeshNodeResponse.prototype.clearUid=function(){return this.setUid(void 0)},proto.serviette.v1.MeshNodeResponse.prototype.hasUid=function(){return null!=o.Message.getField(this,2)},o.Message.GENERATE_TO_OBJECT&&(proto.serviette.v1.MeshInfo.prototype.toObject=function(e){return proto.serviette.v1.MeshInfo.toObject(e,this)},proto.serviette.v1.MeshInfo.toObject=function(e,t){var r,o={uid:(r=t.getUid())&&proto.serviette.v1.MeshNodeUID.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.serviette.v1.MeshInfo.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.serviette.v1.MeshInfo;return proto.serviette.v1.MeshInfo.deserializeBinaryFromReader(r,t)},proto.serviette.v1.MeshInfo.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new proto.serviette.v1.MeshNodeUID;t.readMessage(r,proto.serviette.v1.MeshNodeUID.deserializeBinaryFromReader),e.setUid(r)}else t.skipField();return e},proto.serviette.v1.MeshInfo.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.serviette.v1.MeshInfo.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.serviette.v1.MeshInfo.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getUid())&&t.writeMessage(1,r,proto.serviette.v1.MeshNodeUID.serializeBinaryToWriter)},proto.serviette.v1.MeshInfo.prototype.getUid=function(){return o.Message.getWrapperField(this,proto.serviette.v1.MeshNodeUID,1)},proto.serviette.v1.MeshInfo.prototype.setUid=function(e){return o.Message.setWrapperField(this,1,e)},proto.serviette.v1.MeshInfo.prototype.clearUid=function(){return this.setUid(void 0)},proto.serviette.v1.MeshInfo.prototype.hasUid=function(){return null!=o.Message.getField(this,1)},proto.serviette.v1.UIDVersion={HEADER_HASH_RAND:0},proto.serviette.v1.ServiceResponseLevel={ALL:0,RETURN_AND_RESULT:1,RESULT_ONLY:2,NONE:3},proto.serviette.v1.AckStatus={RECEIVED:0,QUEUED:1,PROGRESS:2,CANCELLING:3},proto.serviette.v1.ResultStatus={COMPLETE_SUCCESS:0,CANCELLED:10,COMPLETE_ERROR:11,TIMED_OUT:12,REJECTED_ID:13,REJECTED_AUTH:14,REJECTED_PAYLOAD:15,REJECTED_NO_RECEIVER:16,FATAL:17},proto.serviette.v1.Stage={AGENT:0,CLOUD_GATEWAY:1,DEVICE_GATEWAY:2},proto.serviette.v1.MeshNodeUIDVersion={MESH_UID_NAME:0},proto.serviette.v1.MeshNodeCommand={ADD:0,DEL:1},i.object.extend(t,proto.serviette.v1)},1442:(e,t,r)=>{var o=r(9743),i=r(6774),n=r(3037).grpc,s=function(){function e(){}return e.serviceName="serviette.v1.ServiceReceiver",e}();function a(e,t){this.serviceHost=e,this.options=t||{}}s.RegisterReceiver={methodName:"RegisterReceiver",service:s,requestStream:!0,responseStream:!0,requestType:o.ResponseChannelMessage,responseType:o.RequestChannelMessage},t.ServiceReceiver=s,a.prototype.registerReceiver=function(e){var t={data:[],end:[],status:[]},r=n.client(s.RegisterReceiver,{host:this.serviceHost,metadata:e,transport:this.options.transport});return r.onEnd((function(e,r,o){t.status.forEach((function(t){t({code:e,details:r,metadata:o})})),t.end.forEach((function(t){t({code:e,details:r,metadata:o})})),t=null})),r.onMessage((function(e){t.data.forEach((function(t){t(e)}))})),r.start(e),{on:function(e,r){return t[e].push(r),this},write:function(e){return r.send(e),this},end:function(){r.finishSend()},cancel:function(){t=null,r.close()}}},t.ServiceReceiverClient=a;var u=function(){function e(){}return e.serviceName="serviette.v1.ServiceCaller",e}();function l(e,t){this.serviceHost=e,this.options=t||{}}u.CallServices={methodName:"CallServices",service:u,requestStream:!0,responseStream:!0,requestType:o.RequestChannelMessage,responseType:o.ResponseChannelMessage},u.ListKnownReceivers={methodName:"ListKnownReceivers",service:u,requestStream:!1,responseStream:!1,requestType:i.Empty,responseType:o.ReceiverRecords},t.ServiceCaller=u,l.prototype.callServices=function(e){var t={data:[],end:[],status:[]},r=n.client(u.CallServices,{host:this.serviceHost,metadata:e,transport:this.options.transport});return r.onEnd((function(e,r,o){t.status.forEach((function(t){t({code:e,details:r,metadata:o})})),t.end.forEach((function(t){t({code:e,details:r,metadata:o})})),t=null})),r.onMessage((function(e){t.data.forEach((function(t){t(e)}))})),r.start(e),{on:function(e,r){return t[e].push(r),this},write:function(e){return r.send(e),this},end:function(){r.finishSend()},cancel:function(){t=null,r.close()}}},l.prototype.listKnownReceivers=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=n.unary(u.ListKnownReceivers,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==n.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},t.ServiceCallerClient=l;var p=function(){function e(){}return e.serviceName="serviette.v1.WebServiceReceiver",e}();function c(e,t){this.serviceHost=e,this.options=t||{}}p.RegisterReceiver={methodName:"RegisterReceiver",service:p,requestStream:!1,responseStream:!0,requestType:o.WebReceiverRegistration,responseType:o.RequestChannelMessage},p.SendResponse={methodName:"SendResponse",service:p,requestStream:!1,responseStream:!1,requestType:o.ResponseChannelMessage,responseType:o.WebSendResponseMessage},t.WebServiceReceiver=p,c.prototype.registerReceiver=function(e,t){var r={data:[],end:[],status:[]},o=n.invoke(p.RegisterReceiver,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onMessage:function(e){r.data.forEach((function(t){t(e)}))},onEnd:function(e,t,o){r.status.forEach((function(r){r({code:e,details:t,metadata:o})})),r.end.forEach((function(r){r({code:e,details:t,metadata:o})})),r=null}});return{on:function(e,t){return r[e].push(t),this},cancel:function(){r=null,o.close()}}},c.prototype.sendResponse=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=n.unary(p.SendResponse,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==n.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},t.WebServiceReceiverClient=c;var g=function(){function e(){}return e.serviceName="serviette.v1.WebServiceCaller",e}();function d(e,t){this.serviceHost=e,this.options=t||{}}g.CallService={methodName:"CallService",service:g,requestStream:!1,responseStream:!0,requestType:o.ServiceRequest,responseType:o.ResponseChannelMessage},g.CallServices={methodName:"CallServices",service:g,requestStream:!1,responseStream:!0,requestType:o.ServiceRequests,responseType:o.ResponseChannelMessage},g.CancelService={methodName:"CancelService",service:g,requestStream:!1,responseStream:!0,requestType:o.RequestCancellation,responseType:o.ResponseChannelMessage},g.CancelServices={methodName:"CancelServices",service:g,requestStream:!1,responseStream:!0,requestType:o.RequestCancellations,responseType:o.ResponseChannelMessage},g.ListKnownReceivers={methodName:"ListKnownReceivers",service:g,requestStream:!1,responseStream:!1,requestType:i.Empty,responseType:o.ReceiverRecords},t.WebServiceCaller=g,d.prototype.callService=function(e,t){var r={data:[],end:[],status:[]},o=n.invoke(g.CallService,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onMessage:function(e){r.data.forEach((function(t){t(e)}))},onEnd:function(e,t,o){r.status.forEach((function(r){r({code:e,details:t,metadata:o})})),r.end.forEach((function(r){r({code:e,details:t,metadata:o})})),r=null}});return{on:function(e,t){return r[e].push(t),this},cancel:function(){r=null,o.close()}}},d.prototype.callServices=function(e,t){var r={data:[],end:[],status:[]},o=n.invoke(g.CallServices,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onMessage:function(e){r.data.forEach((function(t){t(e)}))},onEnd:function(e,t,o){r.status.forEach((function(r){r({code:e,details:t,metadata:o})})),r.end.forEach((function(r){r({code:e,details:t,metadata:o})})),r=null}});return{on:function(e,t){return r[e].push(t),this},cancel:function(){r=null,o.close()}}},d.prototype.cancelService=function(e,t){var r={data:[],end:[],status:[]},o=n.invoke(g.CancelService,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onMessage:function(e){r.data.forEach((function(t){t(e)}))},onEnd:function(e,t,o){r.status.forEach((function(r){r({code:e,details:t,metadata:o})})),r.end.forEach((function(r){r({code:e,details:t,metadata:o})})),r=null}});return{on:function(e,t){return r[e].push(t),this},cancel:function(){r=null,o.close()}}},d.prototype.cancelServices=function(e,t){var r={data:[],end:[],status:[]},o=n.invoke(g.CancelServices,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onMessage:function(e){r.data.forEach((function(t){t(e)}))},onEnd:function(e,t,o){r.status.forEach((function(r){r({code:e,details:t,metadata:o})})),r.end.forEach((function(r){r({code:e,details:t,metadata:o})})),r=null}});return{on:function(e,t){return r[e].push(t),this},cancel:function(){r=null,o.close()}}},d.prototype.listKnownReceivers=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=n.unary(g.ListKnownReceivers,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==n.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},t.WebServiceCallerClient=d;var f=function(){function e(){}return e.serviceName="serviette.v1.MeshAdmin",e}();function h(e,t){this.serviceHost=e,this.options=t||{}}f.ListKnownReceivers={methodName:"ListKnownReceivers",service:f,requestStream:!1,responseStream:!1,requestType:i.Empty,responseType:o.ReceiverRecords},f.AddGatewayNode={methodName:"AddGatewayNode",service:f,requestStream:!1,responseStream:!1,requestType:o.MeshNodeRequest,responseType:o.MeshNodeResponse},t.MeshAdmin=f,h.prototype.listKnownReceivers=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=n.unary(f.ListKnownReceivers,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==n.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},h.prototype.addGatewayNode=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=n.unary(f.AddGatewayNode,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==n.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},t.MeshAdminClient=h;var b=function(){function e(){}return e.serviceName="serviette.v1.Mesh",e}();function y(e,t){this.serviceHost=e,this.options=t||{}}b.JoinMesh={methodName:"JoinMesh",service:b,requestStream:!0,responseStream:!0,requestType:o.MeshInfo,responseType:o.MeshInfo},t.Mesh=b,y.prototype.joinMesh=function(e){var t={data:[],end:[],status:[]},r=n.client(b.JoinMesh,{host:this.serviceHost,metadata:e,transport:this.options.transport});return r.onEnd((function(e,r,o){t.status.forEach((function(t){t({code:e,details:r,metadata:o})})),t.end.forEach((function(t){t({code:e,details:r,metadata:o})})),t=null})),r.onMessage((function(e){t.data.forEach((function(t){t(e)}))})),r.start(e),{on:function(e,r){return t[e].push(r),this},write:function(e){return r.send(e),this},end:function(){r.finishSend()},cancel:function(){t=null,r.close()}}},t.MeshClient=y},597:(e,t,r)=>{var o=r(3019),i=o,n=Function("return this")();i.exportSymbol("proto.uri.v1.RocosURI",null,n),i.exportSymbol("proto.uri.v1.RocosURIPath",null,n),i.exportSymbol("proto.uri.v1.RocosURIQueryValues",null,n),i.exportSymbol("proto.uri.v1.RocosURIScheme",null,n),proto.uri.v1.RocosURI=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.uri.v1.RocosURI,o.Message),i.DEBUG&&!COMPILED&&(proto.uri.v1.RocosURI.displayName="proto.uri.v1.RocosURI"),proto.uri.v1.RocosURIQueryValues=function(e){o.Message.initialize(this,e,0,-1,proto.uri.v1.RocosURIQueryValues.repeatedFields_,null)},i.inherits(proto.uri.v1.RocosURIQueryValues,o.Message),i.DEBUG&&!COMPILED&&(proto.uri.v1.RocosURIQueryValues.displayName="proto.uri.v1.RocosURIQueryValues"),proto.uri.v1.RocosURIPath=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.uri.v1.RocosURIPath,o.Message),i.DEBUG&&!COMPILED&&(proto.uri.v1.RocosURIPath.displayName="proto.uri.v1.RocosURIPath"),o.Message.GENERATE_TO_OBJECT&&(proto.uri.v1.RocosURI.prototype.toObject=function(e){return proto.uri.v1.RocosURI.toObject(e,this)},proto.uri.v1.RocosURI.toObject=function(e,t){var r,i={scheme:o.Message.getFieldWithDefault(t,1,0),authority:o.Message.getFieldWithDefault(t,2,""),path:(r=t.getPath())&&proto.uri.v1.RocosURIPath.toObject(e,r),queryMap:(r=t.getQueryMap())?r.toObject(e,proto.uri.v1.RocosURIQueryValues.toObject):[]};return e&&(i.$jspbMessageInstance=t),i}),proto.uri.v1.RocosURI.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.uri.v1.RocosURI;return proto.uri.v1.RocosURI.deserializeBinaryFromReader(r,t)},proto.uri.v1.RocosURI.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setScheme(r);break;case 2:r=t.readString(),e.setAuthority(r);break;case 3:r=new proto.uri.v1.RocosURIPath,t.readMessage(r,proto.uri.v1.RocosURIPath.deserializeBinaryFromReader),e.setPath(r);break;case 4:r=e.getQueryMap(),t.readMessage(r,(function(e,t){o.Map.deserializeBinary(e,t,o.BinaryReader.prototype.readString,o.BinaryReader.prototype.readMessage,proto.uri.v1.RocosURIQueryValues.deserializeBinaryFromReader,"",new proto.uri.v1.RocosURIQueryValues)}));break;default:t.skipField()}return e},proto.uri.v1.RocosURI.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.uri.v1.RocosURI.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.uri.v1.RocosURI.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getScheme())&&t.writeEnum(1,r),(r=e.getAuthority()).length>0&&t.writeString(2,r),null!=(r=e.getPath())&&t.writeMessage(3,r,proto.uri.v1.RocosURIPath.serializeBinaryToWriter),(r=e.getQueryMap(!0))&&r.getLength()>0&&r.serializeBinary(4,t,o.BinaryWriter.prototype.writeString,o.BinaryWriter.prototype.writeMessage,proto.uri.v1.RocosURIQueryValues.serializeBinaryToWriter)},proto.uri.v1.RocosURI.prototype.getScheme=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.uri.v1.RocosURI.prototype.setScheme=function(e){return o.Message.setProto3EnumField(this,1,e)},proto.uri.v1.RocosURI.prototype.getAuthority=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.uri.v1.RocosURI.prototype.setAuthority=function(e){return o.Message.setProto3StringField(this,2,e)},proto.uri.v1.RocosURI.prototype.getPath=function(){return o.Message.getWrapperField(this,proto.uri.v1.RocosURIPath,3)},proto.uri.v1.RocosURI.prototype.setPath=function(e){return o.Message.setWrapperField(this,3,e)},proto.uri.v1.RocosURI.prototype.clearPath=function(){return this.setPath(void 0)},proto.uri.v1.RocosURI.prototype.hasPath=function(){return null!=o.Message.getField(this,3)},proto.uri.v1.RocosURI.prototype.getQueryMap=function(e){return o.Message.getMapField(this,4,e,proto.uri.v1.RocosURIQueryValues)},proto.uri.v1.RocosURI.prototype.clearQueryMap=function(){return this.getQueryMap().clear(),this},proto.uri.v1.RocosURIQueryValues.repeatedFields_=[1],o.Message.GENERATE_TO_OBJECT&&(proto.uri.v1.RocosURIQueryValues.prototype.toObject=function(e){return proto.uri.v1.RocosURIQueryValues.toObject(e,this)},proto.uri.v1.RocosURIQueryValues.toObject=function(e,t){var r,i={valuesList:null==(r=o.Message.getRepeatedField(t,1))?void 0:r};return e&&(i.$jspbMessageInstance=t),i}),proto.uri.v1.RocosURIQueryValues.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.uri.v1.RocosURIQueryValues;return proto.uri.v1.RocosURIQueryValues.deserializeBinaryFromReader(r,t)},proto.uri.v1.RocosURIQueryValues.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.addValues(r)}else t.skipField();return e},proto.uri.v1.RocosURIQueryValues.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.uri.v1.RocosURIQueryValues.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.uri.v1.RocosURIQueryValues.serializeBinaryToWriter=function(e,t){var r;(r=e.getValuesList()).length>0&&t.writeRepeatedString(1,r)},proto.uri.v1.RocosURIQueryValues.prototype.getValuesList=function(){return o.Message.getRepeatedField(this,1)},proto.uri.v1.RocosURIQueryValues.prototype.setValuesList=function(e){return o.Message.setField(this,1,e||[])},proto.uri.v1.RocosURIQueryValues.prototype.addValues=function(e,t){return o.Message.addToRepeatedField(this,1,e,t)},proto.uri.v1.RocosURIQueryValues.prototype.clearValuesList=function(){return this.setValuesList([])},o.Message.GENERATE_TO_OBJECT&&(proto.uri.v1.RocosURIPath.prototype.toObject=function(e){return proto.uri.v1.RocosURIPath.toObject(e,this)},proto.uri.v1.RocosURIPath.toObject=function(e,t){var r={project:o.Message.getFieldWithDefault(t,1,""),callsign:o.Message.getFieldWithDefault(t,2,""),subsystem:o.Message.getFieldWithDefault(t,3,""),component:o.Message.getFieldWithDefault(t,4,""),topic:o.Message.getFieldWithDefault(t,5,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.uri.v1.RocosURIPath.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.uri.v1.RocosURIPath;return proto.uri.v1.RocosURIPath.deserializeBinaryFromReader(r,t)},proto.uri.v1.RocosURIPath.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setProject(r);break;case 2:r=t.readString(),e.setCallsign(r);break;case 3:r=t.readString(),e.setSubsystem(r);break;case 4:r=t.readString(),e.setComponent(r);break;case 5:r=t.readString(),e.setTopic(r);break;default:t.skipField()}return e},proto.uri.v1.RocosURIPath.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.uri.v1.RocosURIPath.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.uri.v1.RocosURIPath.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getProject()).length>0&&t.writeString(1,r),(r=e.getCallsign()).length>0&&t.writeString(2,r),(r=e.getSubsystem()).length>0&&t.writeString(3,r),(r=e.getComponent()).length>0&&t.writeString(4,r),(r=e.getTopic()).length>0&&t.writeString(5,r)},proto.uri.v1.RocosURIPath.prototype.getProject=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.uri.v1.RocosURIPath.prototype.setProject=function(e){return o.Message.setProto3StringField(this,1,e)},proto.uri.v1.RocosURIPath.prototype.getCallsign=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.uri.v1.RocosURIPath.prototype.setCallsign=function(e){return o.Message.setProto3StringField(this,2,e)},proto.uri.v1.RocosURIPath.prototype.getSubsystem=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.uri.v1.RocosURIPath.prototype.setSubsystem=function(e){return o.Message.setProto3StringField(this,3,e)},proto.uri.v1.RocosURIPath.prototype.getComponent=function(){return o.Message.getFieldWithDefault(this,4,"")},proto.uri.v1.RocosURIPath.prototype.setComponent=function(e){return o.Message.setProto3StringField(this,4,e)},proto.uri.v1.RocosURIPath.prototype.getTopic=function(){return o.Message.getFieldWithDefault(this,5,"")},proto.uri.v1.RocosURIPath.prototype.setTopic=function(e){return o.Message.setProto3StringField(this,5,e)},proto.uri.v1.RocosURIScheme={GRPC:0},i.object.extend(t,proto.uri.v1)},2587:(e,t,r)=>{var o=r(3019),i=o,n=Function("return this")();i.exportSymbol("proto.search.v1.DataRow",null,n),i.exportSymbol("proto.search.v1.Dataset",null,n),i.exportSymbol("proto.search.v1.DeleteProjectMessage",null,n),i.exportSymbol("proto.search.v1.Empty",null,n),i.exportSymbol("proto.search.v1.Filter",null,n),i.exportSymbol("proto.search.v1.QueryDSLMessage",null,n),i.exportSymbol("proto.search.v1.QueryMessage",null,n),i.exportSymbol("proto.search.v1.QueryResult",null,n),i.exportSymbol("proto.search.v1.Row",null,n),i.exportSymbol("proto.search.v1.RowSet",null,n),i.exportSymbol("proto.search.v1.SearchQueryMessage",null,n),i.exportSymbol("proto.search.v1.Status",null,n),proto.search.v1.SearchQueryMessage=function(e){o.Message.initialize(this,e,0,-1,proto.search.v1.SearchQueryMessage.repeatedFields_,null)},i.inherits(proto.search.v1.SearchQueryMessage,o.Message),i.DEBUG&&!COMPILED&&(proto.search.v1.SearchQueryMessage.displayName="proto.search.v1.SearchQueryMessage"),proto.search.v1.Filter=function(e){o.Message.initialize(this,e,0,-1,proto.search.v1.Filter.repeatedFields_,null)},i.inherits(proto.search.v1.Filter,o.Message),i.DEBUG&&!COMPILED&&(proto.search.v1.Filter.displayName="proto.search.v1.Filter"),proto.search.v1.QueryDSLMessage=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.search.v1.QueryDSLMessage,o.Message),i.DEBUG&&!COMPILED&&(proto.search.v1.QueryDSLMessage.displayName="proto.search.v1.QueryDSLMessage"),proto.search.v1.DeleteProjectMessage=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.search.v1.DeleteProjectMessage,o.Message),i.DEBUG&&!COMPILED&&(proto.search.v1.DeleteProjectMessage.displayName="proto.search.v1.DeleteProjectMessage"),proto.search.v1.QueryResult=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.search.v1.QueryResult,o.Message),i.DEBUG&&!COMPILED&&(proto.search.v1.QueryResult.displayName="proto.search.v1.QueryResult"),proto.search.v1.QueryMessage=function(e){o.Message.initialize(this,e,0,-1,proto.search.v1.QueryMessage.repeatedFields_,null)},i.inherits(proto.search.v1.QueryMessage,o.Message),i.DEBUG&&!COMPILED&&(proto.search.v1.QueryMessage.displayName="proto.search.v1.QueryMessage"),proto.search.v1.Row=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.search.v1.Row,o.Message),i.DEBUG&&!COMPILED&&(proto.search.v1.Row.displayName="proto.search.v1.Row"),proto.search.v1.RowSet=function(e){o.Message.initialize(this,e,0,-1,proto.search.v1.RowSet.repeatedFields_,null)},i.inherits(proto.search.v1.RowSet,o.Message),i.DEBUG&&!COMPILED&&(proto.search.v1.RowSet.displayName="proto.search.v1.RowSet"),proto.search.v1.DataRow=function(e){o.Message.initialize(this,e,0,-1,proto.search.v1.DataRow.repeatedFields_,null)},i.inherits(proto.search.v1.DataRow,o.Message),i.DEBUG&&!COMPILED&&(proto.search.v1.DataRow.displayName="proto.search.v1.DataRow"),proto.search.v1.Dataset=function(e){o.Message.initialize(this,e,0,-1,proto.search.v1.Dataset.repeatedFields_,null)},i.inherits(proto.search.v1.Dataset,o.Message),i.DEBUG&&!COMPILED&&(proto.search.v1.Dataset.displayName="proto.search.v1.Dataset"),proto.search.v1.Empty=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.search.v1.Empty,o.Message),i.DEBUG&&!COMPILED&&(proto.search.v1.Empty.displayName="proto.search.v1.Empty"),proto.search.v1.Status=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.search.v1.Status,o.Message),i.DEBUG&&!COMPILED&&(proto.search.v1.Status.displayName="proto.search.v1.Status"),proto.search.v1.SearchQueryMessage.repeatedFields_=[1,2,3,4,5],o.Message.GENERATE_TO_OBJECT&&(proto.search.v1.SearchQueryMessage.prototype.toObject=function(e){return proto.search.v1.SearchQueryMessage.toObject(e,this)},proto.search.v1.SearchQueryMessage.toObject=function(e,t){var r,i={streamidsList:null==(r=o.Message.getRepeatedField(t,1))?void 0:r,dataidsList:null==(r=o.Message.getRepeatedField(t,2))?void 0:r,callsignsList:null==(r=o.Message.getRepeatedField(t,3))?void 0:r,groupbyfieldsList:null==(r=o.Message.getRepeatedField(t,4))?void 0:r,payloadidsList:null==(r=o.Message.getRepeatedField(t,5))?void 0:r,startdate:o.Message.getFieldWithDefault(t,6,""),enddate:o.Message.getFieldWithDefault(t,7,""),interval:o.Message.getFieldWithDefault(t,8,""),refreshdelay:o.Message.getFieldWithDefault(t,9,0)};return e&&(i.$jspbMessageInstance=t),i}),proto.search.v1.SearchQueryMessage.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.search.v1.SearchQueryMessage;return proto.search.v1.SearchQueryMessage.deserializeBinaryFromReader(r,t)},proto.search.v1.SearchQueryMessage.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.addStreamids(r);break;case 2:r=t.readString(),e.addDataids(r);break;case 3:r=t.readString(),e.addCallsigns(r);break;case 4:r=t.readString(),e.addGroupbyfields(r);break;case 5:r=t.readString(),e.addPayloadids(r);break;case 6:r=t.readString(),e.setStartdate(r);break;case 7:r=t.readString(),e.setEnddate(r);break;case 8:r=t.readString(),e.setInterval(r);break;case 9:r=t.readUint64(),e.setRefreshdelay(r);break;default:t.skipField()}return e},proto.search.v1.SearchQueryMessage.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.search.v1.SearchQueryMessage.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.search.v1.SearchQueryMessage.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getStreamidsList()).length>0&&t.writeRepeatedString(1,r),(r=e.getDataidsList()).length>0&&t.writeRepeatedString(2,r),(r=e.getCallsignsList()).length>0&&t.writeRepeatedString(3,r),(r=e.getGroupbyfieldsList()).length>0&&t.writeRepeatedString(4,r),(r=e.getPayloadidsList()).length>0&&t.writeRepeatedString(5,r),(r=e.getStartdate()).length>0&&t.writeString(6,r),(r=e.getEnddate()).length>0&&t.writeString(7,r),(r=e.getInterval()).length>0&&t.writeString(8,r),0!==(r=e.getRefreshdelay())&&t.writeUint64(9,r)},proto.search.v1.SearchQueryMessage.prototype.getStreamidsList=function(){return o.Message.getRepeatedField(this,1)},proto.search.v1.SearchQueryMessage.prototype.setStreamidsList=function(e){return o.Message.setField(this,1,e||[])},proto.search.v1.SearchQueryMessage.prototype.addStreamids=function(e,t){return o.Message.addToRepeatedField(this,1,e,t)},proto.search.v1.SearchQueryMessage.prototype.clearStreamidsList=function(){return this.setStreamidsList([])},proto.search.v1.SearchQueryMessage.prototype.getDataidsList=function(){return o.Message.getRepeatedField(this,2)},proto.search.v1.SearchQueryMessage.prototype.setDataidsList=function(e){return o.Message.setField(this,2,e||[])},proto.search.v1.SearchQueryMessage.prototype.addDataids=function(e,t){return o.Message.addToRepeatedField(this,2,e,t)},proto.search.v1.SearchQueryMessage.prototype.clearDataidsList=function(){return this.setDataidsList([])},proto.search.v1.SearchQueryMessage.prototype.getCallsignsList=function(){return o.Message.getRepeatedField(this,3)},proto.search.v1.SearchQueryMessage.prototype.setCallsignsList=function(e){return o.Message.setField(this,3,e||[])},proto.search.v1.SearchQueryMessage.prototype.addCallsigns=function(e,t){return o.Message.addToRepeatedField(this,3,e,t)},proto.search.v1.SearchQueryMessage.prototype.clearCallsignsList=function(){return this.setCallsignsList([])},proto.search.v1.SearchQueryMessage.prototype.getGroupbyfieldsList=function(){return o.Message.getRepeatedField(this,4)},proto.search.v1.SearchQueryMessage.prototype.setGroupbyfieldsList=function(e){return o.Message.setField(this,4,e||[])},proto.search.v1.SearchQueryMessage.prototype.addGroupbyfields=function(e,t){return o.Message.addToRepeatedField(this,4,e,t)},proto.search.v1.SearchQueryMessage.prototype.clearGroupbyfieldsList=function(){return this.setGroupbyfieldsList([])},proto.search.v1.SearchQueryMessage.prototype.getPayloadidsList=function(){return o.Message.getRepeatedField(this,5)},proto.search.v1.SearchQueryMessage.prototype.setPayloadidsList=function(e){return o.Message.setField(this,5,e||[])},proto.search.v1.SearchQueryMessage.prototype.addPayloadids=function(e,t){return o.Message.addToRepeatedField(this,5,e,t)},proto.search.v1.SearchQueryMessage.prototype.clearPayloadidsList=function(){return this.setPayloadidsList([])},proto.search.v1.SearchQueryMessage.prototype.getStartdate=function(){return o.Message.getFieldWithDefault(this,6,"")},proto.search.v1.SearchQueryMessage.prototype.setStartdate=function(e){return o.Message.setProto3StringField(this,6,e)},proto.search.v1.SearchQueryMessage.prototype.getEnddate=function(){return o.Message.getFieldWithDefault(this,7,"")},proto.search.v1.SearchQueryMessage.prototype.setEnddate=function(e){return o.Message.setProto3StringField(this,7,e)},proto.search.v1.SearchQueryMessage.prototype.getInterval=function(){return o.Message.getFieldWithDefault(this,8,"")},proto.search.v1.SearchQueryMessage.prototype.setInterval=function(e){return o.Message.setProto3StringField(this,8,e)},proto.search.v1.SearchQueryMessage.prototype.getRefreshdelay=function(){return o.Message.getFieldWithDefault(this,9,0)},proto.search.v1.SearchQueryMessage.prototype.setRefreshdelay=function(e){return o.Message.setProto3IntField(this,9,e)},proto.search.v1.Filter.repeatedFields_=[2],o.Message.GENERATE_TO_OBJECT&&(proto.search.v1.Filter.prototype.toObject=function(e){return proto.search.v1.Filter.toObject(e,this)},proto.search.v1.Filter.toObject=function(e,t){var r,i={keyword:o.Message.getFieldWithDefault(t,1,""),idsList:null==(r=o.Message.getRepeatedField(t,2))?void 0:r};return e&&(i.$jspbMessageInstance=t),i}),proto.search.v1.Filter.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.search.v1.Filter;return proto.search.v1.Filter.deserializeBinaryFromReader(r,t)},proto.search.v1.Filter.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setKeyword(r);break;case 2:r=t.readString(),e.addIds(r);break;default:t.skipField()}return e},proto.search.v1.Filter.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.search.v1.Filter.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.search.v1.Filter.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getKeyword()).length>0&&t.writeString(1,r),(r=e.getIdsList()).length>0&&t.writeRepeatedString(2,r)},proto.search.v1.Filter.prototype.getKeyword=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.search.v1.Filter.prototype.setKeyword=function(e){return o.Message.setProto3StringField(this,1,e)},proto.search.v1.Filter.prototype.getIdsList=function(){return o.Message.getRepeatedField(this,2)},proto.search.v1.Filter.prototype.setIdsList=function(e){return o.Message.setField(this,2,e||[])},proto.search.v1.Filter.prototype.addIds=function(e,t){return o.Message.addToRepeatedField(this,2,e,t)},proto.search.v1.Filter.prototype.clearIdsList=function(){return this.setIdsList([])},o.Message.GENERATE_TO_OBJECT&&(proto.search.v1.QueryDSLMessage.prototype.toObject=function(e){return proto.search.v1.QueryDSLMessage.toObject(e,this)},proto.search.v1.QueryDSLMessage.toObject=function(e,t){var r={projectid:o.Message.getFieldWithDefault(t,1,""),dslquery:o.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.search.v1.QueryDSLMessage.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.search.v1.QueryDSLMessage;return proto.search.v1.QueryDSLMessage.deserializeBinaryFromReader(r,t)},proto.search.v1.QueryDSLMessage.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setProjectid(r);break;case 2:r=t.readString(),e.setDslquery(r);break;default:t.skipField()}return e},proto.search.v1.QueryDSLMessage.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.search.v1.QueryDSLMessage.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.search.v1.QueryDSLMessage.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getProjectid()).length>0&&t.writeString(1,r),(r=e.getDslquery()).length>0&&t.writeString(2,r)},proto.search.v1.QueryDSLMessage.prototype.getProjectid=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.search.v1.QueryDSLMessage.prototype.setProjectid=function(e){return o.Message.setProto3StringField(this,1,e)},proto.search.v1.QueryDSLMessage.prototype.getDslquery=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.search.v1.QueryDSLMessage.prototype.setDslquery=function(e){return o.Message.setProto3StringField(this,2,e)},o.Message.GENERATE_TO_OBJECT&&(proto.search.v1.DeleteProjectMessage.prototype.toObject=function(e){return proto.search.v1.DeleteProjectMessage.toObject(e,this)},proto.search.v1.DeleteProjectMessage.toObject=function(e,t){var r={projectid:o.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.search.v1.DeleteProjectMessage.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.search.v1.DeleteProjectMessage;return proto.search.v1.DeleteProjectMessage.deserializeBinaryFromReader(r,t)},proto.search.v1.DeleteProjectMessage.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setProjectid(r)}else t.skipField();return e},proto.search.v1.DeleteProjectMessage.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.search.v1.DeleteProjectMessage.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.search.v1.DeleteProjectMessage.serializeBinaryToWriter=function(e,t){var r;(r=e.getProjectid()).length>0&&t.writeString(1,r)},proto.search.v1.DeleteProjectMessage.prototype.getProjectid=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.search.v1.DeleteProjectMessage.prototype.setProjectid=function(e){return o.Message.setProto3StringField(this,1,e)},o.Message.GENERATE_TO_OBJECT&&(proto.search.v1.QueryResult.prototype.toObject=function(e){return proto.search.v1.QueryResult.toObject(e,this)},proto.search.v1.QueryResult.toObject=function(e,t){var r={result:o.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.search.v1.QueryResult.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.search.v1.QueryResult;return proto.search.v1.QueryResult.deserializeBinaryFromReader(r,t)},proto.search.v1.QueryResult.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setResult(r)}else t.skipField();return e},proto.search.v1.QueryResult.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.search.v1.QueryResult.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.search.v1.QueryResult.serializeBinaryToWriter=function(e,t){var r;(r=e.getResult()).length>0&&t.writeString(1,r)},proto.search.v1.QueryResult.prototype.getResult=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.search.v1.QueryResult.prototype.setResult=function(e){return o.Message.setProto3StringField(this,1,e)},proto.search.v1.QueryMessage.repeatedFields_=[1,2,3],o.Message.GENERATE_TO_OBJECT&&(proto.search.v1.QueryMessage.prototype.toObject=function(e){return proto.search.v1.QueryMessage.toObject(e,this)},proto.search.v1.QueryMessage.toObject=function(e,t){var r,i={filtersList:o.Message.toObjectList(t.getFiltersList(),proto.search.v1.Filter.toObject,e),groupbyfieldsList:null==(r=o.Message.getRepeatedField(t,2))?void 0:r,payloadidsList:null==(r=o.Message.getRepeatedField(t,3))?void 0:r,startdate:o.Message.getFieldWithDefault(t,4,""),enddate:o.Message.getFieldWithDefault(t,5,""),interval:o.Message.getFieldWithDefault(t,6,""),refreshdelay:o.Message.getFieldWithDefault(t,7,0),datefield:o.Message.getFieldWithDefault(t,8,""),projectid:o.Message.getFieldWithDefault(t,9,""),disabledatehistogram:o.Message.getFieldWithDefault(t,10,0)};return e&&(i.$jspbMessageInstance=t),i}),proto.search.v1.QueryMessage.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.search.v1.QueryMessage;return proto.search.v1.QueryMessage.deserializeBinaryFromReader(r,t)},proto.search.v1.QueryMessage.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.search.v1.Filter;t.readMessage(r,proto.search.v1.Filter.deserializeBinaryFromReader),e.addFilters(r);break;case 2:r=t.readString(),e.addGroupbyfields(r);break;case 3:r=t.readString(),e.addPayloadids(r);break;case 4:r=t.readString(),e.setStartdate(r);break;case 5:r=t.readString(),e.setEnddate(r);break;case 6:r=t.readString(),e.setInterval(r);break;case 7:r=t.readUint64(),e.setRefreshdelay(r);break;case 8:r=t.readString(),e.setDatefield(r);break;case 9:r=t.readString(),e.setProjectid(r);break;case 10:r=t.readUint64(),e.setDisabledatehistogram(r);break;default:t.skipField()}return e},proto.search.v1.QueryMessage.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.search.v1.QueryMessage.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.search.v1.QueryMessage.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getFiltersList()).length>0&&t.writeRepeatedMessage(1,r,proto.search.v1.Filter.serializeBinaryToWriter),(r=e.getGroupbyfieldsList()).length>0&&t.writeRepeatedString(2,r),(r=e.getPayloadidsList()).length>0&&t.writeRepeatedString(3,r),(r=e.getStartdate()).length>0&&t.writeString(4,r),(r=e.getEnddate()).length>0&&t.writeString(5,r),(r=e.getInterval()).length>0&&t.writeString(6,r),0!==(r=e.getRefreshdelay())&&t.writeUint64(7,r),(r=e.getDatefield()).length>0&&t.writeString(8,r),(r=e.getProjectid()).length>0&&t.writeString(9,r),0!==(r=e.getDisabledatehistogram())&&t.writeUint64(10,r)},proto.search.v1.QueryMessage.prototype.getFiltersList=function(){return o.Message.getRepeatedWrapperField(this,proto.search.v1.Filter,1)},proto.search.v1.QueryMessage.prototype.setFiltersList=function(e){return o.Message.setRepeatedWrapperField(this,1,e)},proto.search.v1.QueryMessage.prototype.addFilters=function(e,t){return o.Message.addToRepeatedWrapperField(this,1,e,proto.search.v1.Filter,t)},proto.search.v1.QueryMessage.prototype.clearFiltersList=function(){return this.setFiltersList([])},proto.search.v1.QueryMessage.prototype.getGroupbyfieldsList=function(){return o.Message.getRepeatedField(this,2)},proto.search.v1.QueryMessage.prototype.setGroupbyfieldsList=function(e){return o.Message.setField(this,2,e||[])},proto.search.v1.QueryMessage.prototype.addGroupbyfields=function(e,t){return o.Message.addToRepeatedField(this,2,e,t)},proto.search.v1.QueryMessage.prototype.clearGroupbyfieldsList=function(){return this.setGroupbyfieldsList([])},proto.search.v1.QueryMessage.prototype.getPayloadidsList=function(){return o.Message.getRepeatedField(this,3)},proto.search.v1.QueryMessage.prototype.setPayloadidsList=function(e){return o.Message.setField(this,3,e||[])},proto.search.v1.QueryMessage.prototype.addPayloadids=function(e,t){return o.Message.addToRepeatedField(this,3,e,t)},proto.search.v1.QueryMessage.prototype.clearPayloadidsList=function(){return this.setPayloadidsList([])},proto.search.v1.QueryMessage.prototype.getStartdate=function(){return o.Message.getFieldWithDefault(this,4,"")},proto.search.v1.QueryMessage.prototype.setStartdate=function(e){return o.Message.setProto3StringField(this,4,e)},proto.search.v1.QueryMessage.prototype.getEnddate=function(){return o.Message.getFieldWithDefault(this,5,"")},proto.search.v1.QueryMessage.prototype.setEnddate=function(e){return o.Message.setProto3StringField(this,5,e)},proto.search.v1.QueryMessage.prototype.getInterval=function(){return o.Message.getFieldWithDefault(this,6,"")},proto.search.v1.QueryMessage.prototype.setInterval=function(e){return o.Message.setProto3StringField(this,6,e)},proto.search.v1.QueryMessage.prototype.getRefreshdelay=function(){return o.Message.getFieldWithDefault(this,7,0)},proto.search.v1.QueryMessage.prototype.setRefreshdelay=function(e){return o.Message.setProto3IntField(this,7,e)},proto.search.v1.QueryMessage.prototype.getDatefield=function(){return o.Message.getFieldWithDefault(this,8,"")},proto.search.v1.QueryMessage.prototype.setDatefield=function(e){return o.Message.setProto3StringField(this,8,e)},proto.search.v1.QueryMessage.prototype.getProjectid=function(){return o.Message.getFieldWithDefault(this,9,"")},proto.search.v1.QueryMessage.prototype.setProjectid=function(e){return o.Message.setProto3StringField(this,9,e)},proto.search.v1.QueryMessage.prototype.getDisabledatehistogram=function(){return o.Message.getFieldWithDefault(this,10,0)},proto.search.v1.QueryMessage.prototype.setDisabledatehistogram=function(e){return o.Message.setProto3IntField(this,10,e)},o.Message.GENERATE_TO_OBJECT&&(proto.search.v1.Row.prototype.toObject=function(e){return proto.search.v1.Row.toObject(e,this)},proto.search.v1.Row.toObject=function(e,t){var r={key:o.Message.getFieldWithDefault(t,1,""),count:o.Message.getFieldWithDefault(t,2,0),avgsize:o.Message.getFloatingPointFieldWithDefault(t,3,0),totalsize:o.Message.getFloatingPointFieldWithDefault(t,4,0),payload:o.Message.getFieldWithDefault(t,5,""),transpersecond:o.Message.getFloatingPointFieldWithDefault(t,6,0),bytespersecond:o.Message.getFloatingPointFieldWithDefault(t,7,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.search.v1.Row.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.search.v1.Row;return proto.search.v1.Row.deserializeBinaryFromReader(r,t)},proto.search.v1.Row.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setKey(r);break;case 2:r=t.readUint64(),e.setCount(r);break;case 3:r=t.readDouble(),e.setAvgsize(r);break;case 4:r=t.readDouble(),e.setTotalsize(r);break;case 5:r=t.readString(),e.setPayload(r);break;case 6:r=t.readDouble(),e.setTranspersecond(r);break;case 7:r=t.readDouble(),e.setBytespersecond(r);break;default:t.skipField()}return e},proto.search.v1.Row.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.search.v1.Row.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.search.v1.Row.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getKey()).length>0&&t.writeString(1,r),0!==(r=e.getCount())&&t.writeUint64(2,r),0!==(r=e.getAvgsize())&&t.writeDouble(3,r),0!==(r=e.getTotalsize())&&t.writeDouble(4,r),(r=e.getPayload()).length>0&&t.writeString(5,r),0!==(r=e.getTranspersecond())&&t.writeDouble(6,r),0!==(r=e.getBytespersecond())&&t.writeDouble(7,r)},proto.search.v1.Row.prototype.getKey=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.search.v1.Row.prototype.setKey=function(e){return o.Message.setProto3StringField(this,1,e)},proto.search.v1.Row.prototype.getCount=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.search.v1.Row.prototype.setCount=function(e){return o.Message.setProto3IntField(this,2,e)},proto.search.v1.Row.prototype.getAvgsize=function(){return o.Message.getFloatingPointFieldWithDefault(this,3,0)},proto.search.v1.Row.prototype.setAvgsize=function(e){return o.Message.setProto3FloatField(this,3,e)},proto.search.v1.Row.prototype.getTotalsize=function(){return o.Message.getFloatingPointFieldWithDefault(this,4,0)},proto.search.v1.Row.prototype.setTotalsize=function(e){return o.Message.setProto3FloatField(this,4,e)},proto.search.v1.Row.prototype.getPayload=function(){return o.Message.getFieldWithDefault(this,5,"")},proto.search.v1.Row.prototype.setPayload=function(e){return o.Message.setProto3StringField(this,5,e)},proto.search.v1.Row.prototype.getTranspersecond=function(){return o.Message.getFloatingPointFieldWithDefault(this,6,0)},proto.search.v1.Row.prototype.setTranspersecond=function(e){return o.Message.setProto3FloatField(this,6,e)},proto.search.v1.Row.prototype.getBytespersecond=function(){return o.Message.getFloatingPointFieldWithDefault(this,7,0)},proto.search.v1.Row.prototype.setBytespersecond=function(e){return o.Message.setProto3FloatField(this,7,e)},proto.search.v1.RowSet.repeatedFields_=[1],o.Message.GENERATE_TO_OBJECT&&(proto.search.v1.RowSet.prototype.toObject=function(e){return proto.search.v1.RowSet.toObject(e,this)},proto.search.v1.RowSet.toObject=function(e,t){var r={rowsetList:o.Message.toObjectList(t.getRowsetList(),proto.search.v1.Row.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.search.v1.RowSet.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.search.v1.RowSet;return proto.search.v1.RowSet.deserializeBinaryFromReader(r,t)},proto.search.v1.RowSet.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new proto.search.v1.Row;t.readMessage(r,proto.search.v1.Row.deserializeBinaryFromReader),e.addRowset(r)}else t.skipField();return e},proto.search.v1.RowSet.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.search.v1.RowSet.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.search.v1.RowSet.serializeBinaryToWriter=function(e,t){var r;(r=e.getRowsetList()).length>0&&t.writeRepeatedMessage(1,r,proto.search.v1.Row.serializeBinaryToWriter)},proto.search.v1.RowSet.prototype.getRowsetList=function(){return o.Message.getRepeatedWrapperField(this,proto.search.v1.Row,1)},proto.search.v1.RowSet.prototype.setRowsetList=function(e){return o.Message.setRepeatedWrapperField(this,1,e)},proto.search.v1.RowSet.prototype.addRowset=function(e,t){return o.Message.addToRepeatedWrapperField(this,1,e,proto.search.v1.Row,t)},proto.search.v1.RowSet.prototype.clearRowsetList=function(){return this.setRowsetList([])},proto.search.v1.DataRow.repeatedFields_=[2],o.Message.GENERATE_TO_OBJECT&&(proto.search.v1.DataRow.prototype.toObject=function(e){return proto.search.v1.DataRow.toObject(e,this)},proto.search.v1.DataRow.toObject=function(e,t){var r={date:o.Message.getFieldWithDefault(t,1,""),rowList:o.Message.toObjectList(t.getRowList(),proto.search.v1.Row.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.search.v1.DataRow.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.search.v1.DataRow;return proto.search.v1.DataRow.deserializeBinaryFromReader(r,t)},proto.search.v1.DataRow.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setDate(r);break;case 2:r=new proto.search.v1.Row,t.readMessage(r,proto.search.v1.Row.deserializeBinaryFromReader),e.addRow(r);break;default:t.skipField()}return e},proto.search.v1.DataRow.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.search.v1.DataRow.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.search.v1.DataRow.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getDate()).length>0&&t.writeString(1,r),(r=e.getRowList()).length>0&&t.writeRepeatedMessage(2,r,proto.search.v1.Row.serializeBinaryToWriter)},proto.search.v1.DataRow.prototype.getDate=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.search.v1.DataRow.prototype.setDate=function(e){return o.Message.setProto3StringField(this,1,e)},proto.search.v1.DataRow.prototype.getRowList=function(){return o.Message.getRepeatedWrapperField(this,proto.search.v1.Row,2)},proto.search.v1.DataRow.prototype.setRowList=function(e){return o.Message.setRepeatedWrapperField(this,2,e)},proto.search.v1.DataRow.prototype.addRow=function(e,t){return o.Message.addToRepeatedWrapperField(this,2,e,proto.search.v1.Row,t)},proto.search.v1.DataRow.prototype.clearRowList=function(){return this.setRowList([])},proto.search.v1.Dataset.repeatedFields_=[1],o.Message.GENERATE_TO_OBJECT&&(proto.search.v1.Dataset.prototype.toObject=function(e){return proto.search.v1.Dataset.toObject(e,this)},proto.search.v1.Dataset.toObject=function(e,t){var r={datasetList:o.Message.toObjectList(t.getDatasetList(),proto.search.v1.DataRow.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.search.v1.Dataset.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.search.v1.Dataset;return proto.search.v1.Dataset.deserializeBinaryFromReader(r,t)},proto.search.v1.Dataset.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new proto.search.v1.DataRow;t.readMessage(r,proto.search.v1.DataRow.deserializeBinaryFromReader),e.addDataset(r)}else t.skipField();return e},proto.search.v1.Dataset.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.search.v1.Dataset.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.search.v1.Dataset.serializeBinaryToWriter=function(e,t){var r;(r=e.getDatasetList()).length>0&&t.writeRepeatedMessage(1,r,proto.search.v1.DataRow.serializeBinaryToWriter)},proto.search.v1.Dataset.prototype.getDatasetList=function(){return o.Message.getRepeatedWrapperField(this,proto.search.v1.DataRow,1)},proto.search.v1.Dataset.prototype.setDatasetList=function(e){return o.Message.setRepeatedWrapperField(this,1,e)},proto.search.v1.Dataset.prototype.addDataset=function(e,t){return o.Message.addToRepeatedWrapperField(this,1,e,proto.search.v1.DataRow,t)},proto.search.v1.Dataset.prototype.clearDatasetList=function(){return this.setDatasetList([])},o.Message.GENERATE_TO_OBJECT&&(proto.search.v1.Empty.prototype.toObject=function(e){return proto.search.v1.Empty.toObject(e,this)},proto.search.v1.Empty.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.search.v1.Empty.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.search.v1.Empty;return proto.search.v1.Empty.deserializeBinaryFromReader(r,t)},proto.search.v1.Empty.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},proto.search.v1.Empty.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.search.v1.Empty.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.search.v1.Empty.serializeBinaryToWriter=function(e,t){},o.Message.GENERATE_TO_OBJECT&&(proto.search.v1.Status.prototype.toObject=function(e){return proto.search.v1.Status.toObject(e,this)},proto.search.v1.Status.toObject=function(e,t){var r={outcome:o.Message.getFieldWithDefault(t,1,""),error:o.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.search.v1.Status.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.search.v1.Status;return proto.search.v1.Status.deserializeBinaryFromReader(r,t)},proto.search.v1.Status.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setOutcome(r);break;case 2:r=t.readString(),e.setError(r);break;default:t.skipField()}return e},proto.search.v1.Status.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.search.v1.Status.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.search.v1.Status.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getOutcome()).length>0&&t.writeString(1,r),(r=e.getError()).length>0&&t.writeString(2,r)},proto.search.v1.Status.prototype.getOutcome=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.search.v1.Status.prototype.setOutcome=function(e){return o.Message.setProto3StringField(this,1,e)},proto.search.v1.Status.prototype.getError=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.search.v1.Status.prototype.setError=function(e){return o.Message.setProto3StringField(this,2,e)},i.object.extend(t,proto.search.v1)},5248:(e,t,r)=>{var o=r(2587),i=r(3037).grpc,n=function(){function e(){}return e.serviceName="search.v1.stream",e}();function s(e,t){this.serviceHost=e,this.options=t||{}}n.searchStream={methodName:"searchStream",service:n,requestStream:!1,responseStream:!0,requestType:o.QueryMessage,responseType:o.Dataset},n.healthCheck={methodName:"healthCheck",service:n,requestStream:!1,responseStream:!1,requestType:o.Empty,responseType:o.Status},n.queryData={methodName:"queryData",service:n,requestStream:!1,responseStream:!1,requestType:o.QueryDSLMessage,responseType:o.QueryResult},n.deleteProjectData={methodName:"deleteProjectData",service:n,requestStream:!1,responseStream:!1,requestType:o.DeleteProjectMessage,responseType:o.Status},t.stream=n,s.prototype.searchStream=function(e,t){var r={data:[],end:[],status:[]},o=i.invoke(n.searchStream,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onMessage:function(e){r.data.forEach((function(t){t(e)}))},onEnd:function(e,t,o){r.status.forEach((function(r){r({code:e,details:t,metadata:o})})),r.end.forEach((function(r){r({code:e,details:t,metadata:o})})),r=null}});return{on:function(e,t){return r[e].push(t),this},cancel:function(){r=null,o.close()}}},s.prototype.healthCheck=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=i.unary(n.healthCheck,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==i.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},s.prototype.queryData=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=i.unary(n.queryData,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==i.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},s.prototype.deleteProjectData=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=i.unary(n.deleteProjectData,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==i.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},t.streamClient=s},8685:(e,t,r)=>{var o=r(3019),i=o,n=Function("return this")();i.exportSymbol("proto.teletubby.v1.ComparisonOperation",null,n),i.exportSymbol("proto.teletubby.v1.ConfigAction",null,n),i.exportSymbol("proto.teletubby.v1.ConfigMessage",null,n),i.exportSymbol("proto.teletubby.v1.Heartbeat",null,n),i.exportSymbol("proto.teletubby.v1.LogicalOperation",null,n),i.exportSymbol("proto.teletubby.v1.Predicate",null,n),i.exportSymbol("proto.teletubby.v1.PredicateAttribute",null,n),i.exportSymbol("proto.teletubby.v1.Query",null,n),i.exportSymbol("proto.teletubby.v1.QueryOrPredicate",null,n),i.exportSymbol("proto.teletubby.v1.QueryOrPredicate.ContentCase",null,n),i.exportSymbol("proto.teletubby.v1.ReceiverGroupSubscribeOption",null,n),i.exportSymbol("proto.teletubby.v1.ReceiverGroupUnsubscribeOption",null,n),i.exportSymbol("proto.teletubby.v1.ReceiverStreamMessage",null,n),i.exportSymbol("proto.teletubby.v1.ReceiverStreamMessage.ContentCase",null,n),i.exportSymbol("proto.teletubby.v1.RegistrationMessage",null,n),i.exportSymbol("proto.teletubby.v1.ServiceStatusRequest",null,n),i.exportSymbol("proto.teletubby.v1.SubscribeOperation",null,n),i.exportSymbol("proto.teletubby.v1.SubscribeOption",null,n),i.exportSymbol("proto.teletubby.v1.SubscribeOption.ContentCase",null,n),i.exportSymbol("proto.teletubby.v1.TelemetryAckStatus",null,n),i.exportSymbol("proto.teletubby.v1.TelemetryAction",null,n),i.exportSymbol("proto.teletubby.v1.TelemetryAction.ContentCase",null,n),i.exportSymbol("proto.teletubby.v1.TelemetryMessage",null,n),i.exportSymbol("proto.teletubby.v1.TelemetryMessageAck",null,n),i.exportSymbol("proto.teletubby.v1.TelemetryQueryRequest",null,n),i.exportSymbol("proto.teletubby.v1.TelemetryRequest",null,n),i.exportSymbol("proto.teletubby.v1.TelemetryRequestAck",null,n),i.exportSymbol("proto.teletubby.v1.TelemetryStreamAck",null,n),i.exportSymbol("proto.teletubby.v1.TelemetryStreamMessage",null,n),i.exportSymbol("proto.teletubby.v1.TelemetryStreamMessage.ContentCase",null,n),i.exportSymbol("proto.teletubby.v1.UnsubscribeOperation",null,n),i.exportSymbol("proto.teletubby.v1.UnsubscribeOption",null,n),i.exportSymbol("proto.teletubby.v1.UnsubscribeOption.ContentCase",null,n),proto.teletubby.v1.TelemetryMessage=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.teletubby.v1.TelemetryMessage,o.Message),i.DEBUG&&!COMPILED&&(proto.teletubby.v1.TelemetryMessage.displayName="proto.teletubby.v1.TelemetryMessage"),proto.teletubby.v1.ReceiverStreamMessage=function(e){o.Message.initialize(this,e,0,-1,null,proto.teletubby.v1.ReceiverStreamMessage.oneofGroups_)},i.inherits(proto.teletubby.v1.ReceiverStreamMessage,o.Message),i.DEBUG&&!COMPILED&&(proto.teletubby.v1.ReceiverStreamMessage.displayName="proto.teletubby.v1.ReceiverStreamMessage"),proto.teletubby.v1.TelemetryStreamMessage=function(e){o.Message.initialize(this,e,0,-1,null,proto.teletubby.v1.TelemetryStreamMessage.oneofGroups_)},i.inherits(proto.teletubby.v1.TelemetryStreamMessage,o.Message),i.DEBUG&&!COMPILED&&(proto.teletubby.v1.TelemetryStreamMessage.displayName="proto.teletubby.v1.TelemetryStreamMessage"),proto.teletubby.v1.TelemetryMessageAck=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.teletubby.v1.TelemetryMessageAck,o.Message),i.DEBUG&&!COMPILED&&(proto.teletubby.v1.TelemetryMessageAck.displayName="proto.teletubby.v1.TelemetryMessageAck"),proto.teletubby.v1.TelemetryStreamAck=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.teletubby.v1.TelemetryStreamAck,o.Message),i.DEBUG&&!COMPILED&&(proto.teletubby.v1.TelemetryStreamAck.displayName="proto.teletubby.v1.TelemetryStreamAck"),proto.teletubby.v1.ConfigMessage=function(e){o.Message.initialize(this,e,0,-1,proto.teletubby.v1.ConfigMessage.repeatedFields_,null)},i.inherits(proto.teletubby.v1.ConfigMessage,o.Message),i.DEBUG&&!COMPILED&&(proto.teletubby.v1.ConfigMessage.displayName="proto.teletubby.v1.ConfigMessage"),proto.teletubby.v1.ConfigAction=function(e){o.Message.initialize(this,e,0,-1,proto.teletubby.v1.ConfigAction.repeatedFields_,null)},i.inherits(proto.teletubby.v1.ConfigAction,o.Message),i.DEBUG&&!COMPILED&&(proto.teletubby.v1.ConfigAction.displayName="proto.teletubby.v1.ConfigAction"),proto.teletubby.v1.TelemetryRequest=function(e){o.Message.initialize(this,e,0,-1,proto.teletubby.v1.TelemetryRequest.repeatedFields_,null)},i.inherits(proto.teletubby.v1.TelemetryRequest,o.Message),i.DEBUG&&!COMPILED&&(proto.teletubby.v1.TelemetryRequest.displayName="proto.teletubby.v1.TelemetryRequest"),proto.teletubby.v1.TelemetryQueryRequest=function(e){o.Message.initialize(this,e,0,-1,proto.teletubby.v1.TelemetryQueryRequest.repeatedFields_,null)},i.inherits(proto.teletubby.v1.TelemetryQueryRequest,o.Message),i.DEBUG&&!COMPILED&&(proto.teletubby.v1.TelemetryQueryRequest.displayName="proto.teletubby.v1.TelemetryQueryRequest"),proto.teletubby.v1.TelemetryAction=function(e){o.Message.initialize(this,e,0,-1,proto.teletubby.v1.TelemetryAction.repeatedFields_,proto.teletubby.v1.TelemetryAction.oneofGroups_)},i.inherits(proto.teletubby.v1.TelemetryAction,o.Message),i.DEBUG&&!COMPILED&&(proto.teletubby.v1.TelemetryAction.displayName="proto.teletubby.v1.TelemetryAction"),proto.teletubby.v1.SubscribeOperation=function(e){o.Message.initialize(this,e,0,-1,proto.teletubby.v1.SubscribeOperation.repeatedFields_,null)},i.inherits(proto.teletubby.v1.SubscribeOperation,o.Message),i.DEBUG&&!COMPILED&&(proto.teletubby.v1.SubscribeOperation.displayName="proto.teletubby.v1.SubscribeOperation"),proto.teletubby.v1.UnsubscribeOperation=function(e){o.Message.initialize(this,e,0,-1,proto.teletubby.v1.UnsubscribeOperation.repeatedFields_,null)},i.inherits(proto.teletubby.v1.UnsubscribeOperation,o.Message),i.DEBUG&&!COMPILED&&(proto.teletubby.v1.UnsubscribeOperation.displayName="proto.teletubby.v1.UnsubscribeOperation"),proto.teletubby.v1.SubscribeOption=function(e){o.Message.initialize(this,e,0,-1,null,proto.teletubby.v1.SubscribeOption.oneofGroups_)},i.inherits(proto.teletubby.v1.SubscribeOption,o.Message),i.DEBUG&&!COMPILED&&(proto.teletubby.v1.SubscribeOption.displayName="proto.teletubby.v1.SubscribeOption"),proto.teletubby.v1.UnsubscribeOption=function(e){o.Message.initialize(this,e,0,-1,null,proto.teletubby.v1.UnsubscribeOption.oneofGroups_)},i.inherits(proto.teletubby.v1.UnsubscribeOption,o.Message),i.DEBUG&&!COMPILED&&(proto.teletubby.v1.UnsubscribeOption.displayName="proto.teletubby.v1.UnsubscribeOption"),proto.teletubby.v1.ReceiverGroupSubscribeOption=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.teletubby.v1.ReceiverGroupSubscribeOption,o.Message),i.DEBUG&&!COMPILED&&(proto.teletubby.v1.ReceiverGroupSubscribeOption.displayName="proto.teletubby.v1.ReceiverGroupSubscribeOption"),proto.teletubby.v1.ReceiverGroupUnsubscribeOption=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.teletubby.v1.ReceiverGroupUnsubscribeOption,o.Message),i.DEBUG&&!COMPILED&&(proto.teletubby.v1.ReceiverGroupUnsubscribeOption.displayName="proto.teletubby.v1.ReceiverGroupUnsubscribeOption"),proto.teletubby.v1.TelemetryRequestAck=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.teletubby.v1.TelemetryRequestAck,o.Message),i.DEBUG&&!COMPILED&&(proto.teletubby.v1.TelemetryRequestAck.displayName="proto.teletubby.v1.TelemetryRequestAck"),proto.teletubby.v1.RegistrationMessage=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.teletubby.v1.RegistrationMessage,o.Message),i.DEBUG&&!COMPILED&&(proto.teletubby.v1.RegistrationMessage.displayName="proto.teletubby.v1.RegistrationMessage"),proto.teletubby.v1.ServiceStatusRequest=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.teletubby.v1.ServiceStatusRequest,o.Message),i.DEBUG&&!COMPILED&&(proto.teletubby.v1.ServiceStatusRequest.displayName="proto.teletubby.v1.ServiceStatusRequest"),proto.teletubby.v1.Query=function(e){o.Message.initialize(this,e,0,-1,proto.teletubby.v1.Query.repeatedFields_,null)},i.inherits(proto.teletubby.v1.Query,o.Message),i.DEBUG&&!COMPILED&&(proto.teletubby.v1.Query.displayName="proto.teletubby.v1.Query"),proto.teletubby.v1.QueryOrPredicate=function(e){o.Message.initialize(this,e,0,-1,null,proto.teletubby.v1.QueryOrPredicate.oneofGroups_)},i.inherits(proto.teletubby.v1.QueryOrPredicate,o.Message),i.DEBUG&&!COMPILED&&(proto.teletubby.v1.QueryOrPredicate.displayName="proto.teletubby.v1.QueryOrPredicate"),proto.teletubby.v1.Predicate=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.teletubby.v1.Predicate,o.Message),i.DEBUG&&!COMPILED&&(proto.teletubby.v1.Predicate.displayName="proto.teletubby.v1.Predicate"),proto.teletubby.v1.Heartbeat=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.teletubby.v1.Heartbeat,o.Message),i.DEBUG&&!COMPILED&&(proto.teletubby.v1.Heartbeat.displayName="proto.teletubby.v1.Heartbeat"),o.Message.GENERATE_TO_OBJECT&&(proto.teletubby.v1.TelemetryMessage.prototype.toObject=function(e){return proto.teletubby.v1.TelemetryMessage.toObject(e,this)},proto.teletubby.v1.TelemetryMessage.toObject=function(e,t){var r,i={source:o.Message.getFieldWithDefault(t,1,""),payload:t.getPayload_asB64(),callsign:o.Message.getFieldWithDefault(t,3,""),created:o.Message.getFieldWithDefault(t,4,0),seq:o.Message.getFieldWithDefault(t,5,0),metaMap:(r=t.getMetaMap())?r.toObject(e,void 0):[],uid:o.Message.getFieldWithDefault(t,7,"")};return e&&(i.$jspbMessageInstance=t),i}),proto.teletubby.v1.TelemetryMessage.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.teletubby.v1.TelemetryMessage;return proto.teletubby.v1.TelemetryMessage.deserializeBinaryFromReader(r,t)},proto.teletubby.v1.TelemetryMessage.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setSource(r);break;case 2:r=t.readBytes(),e.setPayload(r);break;case 3:r=t.readString(),e.setCallsign(r);break;case 4:r=t.readInt64(),e.setCreated(r);break;case 5:r=t.readUint64(),e.setSeq(r);break;case 6:r=e.getMetaMap(),t.readMessage(r,(function(e,t){o.Map.deserializeBinary(e,t,o.BinaryReader.prototype.readString,o.BinaryReader.prototype.readString,null,"","")}));break;case 7:r=t.readString(),e.setUid(r);break;default:t.skipField()}return e},proto.teletubby.v1.TelemetryMessage.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.teletubby.v1.TelemetryMessage.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.teletubby.v1.TelemetryMessage.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSource()).length>0&&t.writeString(1,r),(r=e.getPayload_asU8()).length>0&&t.writeBytes(2,r),(r=e.getCallsign()).length>0&&t.writeString(3,r),0!==(r=e.getCreated())&&t.writeInt64(4,r),0!==(r=e.getSeq())&&t.writeUint64(5,r),(r=e.getMetaMap(!0))&&r.getLength()>0&&r.serializeBinary(6,t,o.BinaryWriter.prototype.writeString,o.BinaryWriter.prototype.writeString),(r=e.getUid()).length>0&&t.writeString(7,r)},proto.teletubby.v1.TelemetryMessage.prototype.getSource=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.teletubby.v1.TelemetryMessage.prototype.setSource=function(e){return o.Message.setProto3StringField(this,1,e)},proto.teletubby.v1.TelemetryMessage.prototype.getPayload=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.teletubby.v1.TelemetryMessage.prototype.getPayload_asB64=function(){return o.Message.bytesAsB64(this.getPayload())},proto.teletubby.v1.TelemetryMessage.prototype.getPayload_asU8=function(){return o.Message.bytesAsU8(this.getPayload())},proto.teletubby.v1.TelemetryMessage.prototype.setPayload=function(e){return o.Message.setProto3BytesField(this,2,e)},proto.teletubby.v1.TelemetryMessage.prototype.getCallsign=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.teletubby.v1.TelemetryMessage.prototype.setCallsign=function(e){return o.Message.setProto3StringField(this,3,e)},proto.teletubby.v1.TelemetryMessage.prototype.getCreated=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.teletubby.v1.TelemetryMessage.prototype.setCreated=function(e){return o.Message.setProto3IntField(this,4,e)},proto.teletubby.v1.TelemetryMessage.prototype.getSeq=function(){return o.Message.getFieldWithDefault(this,5,0)},proto.teletubby.v1.TelemetryMessage.prototype.setSeq=function(e){return o.Message.setProto3IntField(this,5,e)},proto.teletubby.v1.TelemetryMessage.prototype.getMetaMap=function(e){return o.Message.getMapField(this,6,e,null)},proto.teletubby.v1.TelemetryMessage.prototype.clearMetaMap=function(){return this.getMetaMap().clear(),this},proto.teletubby.v1.TelemetryMessage.prototype.getUid=function(){return o.Message.getFieldWithDefault(this,7,"")},proto.teletubby.v1.TelemetryMessage.prototype.setUid=function(e){return o.Message.setProto3StringField(this,7,e)},proto.teletubby.v1.ReceiverStreamMessage.oneofGroups_=[[1,2]],proto.teletubby.v1.ReceiverStreamMessage.ContentCase={CONTENT_NOT_SET:0,HEARTBEAT:1,ACK:2},proto.teletubby.v1.ReceiverStreamMessage.prototype.getContentCase=function(){return o.Message.computeOneofCase(this,proto.teletubby.v1.ReceiverStreamMessage.oneofGroups_[0])},o.Message.GENERATE_TO_OBJECT&&(proto.teletubby.v1.ReceiverStreamMessage.prototype.toObject=function(e){return proto.teletubby.v1.ReceiverStreamMessage.toObject(e,this)},proto.teletubby.v1.ReceiverStreamMessage.toObject=function(e,t){var r,o={heartbeat:(r=t.getHeartbeat())&&proto.teletubby.v1.Heartbeat.toObject(e,r),ack:(r=t.getAck())&&proto.teletubby.v1.TelemetryMessageAck.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.teletubby.v1.ReceiverStreamMessage.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.teletubby.v1.ReceiverStreamMessage;return proto.teletubby.v1.ReceiverStreamMessage.deserializeBinaryFromReader(r,t)},proto.teletubby.v1.ReceiverStreamMessage.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.teletubby.v1.Heartbeat;t.readMessage(r,proto.teletubby.v1.Heartbeat.deserializeBinaryFromReader),e.setHeartbeat(r);break;case 2:r=new proto.teletubby.v1.TelemetryMessageAck,t.readMessage(r,proto.teletubby.v1.TelemetryMessageAck.deserializeBinaryFromReader),e.setAck(r);break;default:t.skipField()}return e},proto.teletubby.v1.ReceiverStreamMessage.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.teletubby.v1.ReceiverStreamMessage.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.teletubby.v1.ReceiverStreamMessage.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getHeartbeat())&&t.writeMessage(1,r,proto.teletubby.v1.Heartbeat.serializeBinaryToWriter),null!=(r=e.getAck())&&t.writeMessage(2,r,proto.teletubby.v1.TelemetryMessageAck.serializeBinaryToWriter)},proto.teletubby.v1.ReceiverStreamMessage.prototype.getHeartbeat=function(){return o.Message.getWrapperField(this,proto.teletubby.v1.Heartbeat,1)},proto.teletubby.v1.ReceiverStreamMessage.prototype.setHeartbeat=function(e){return o.Message.setOneofWrapperField(this,1,proto.teletubby.v1.ReceiverStreamMessage.oneofGroups_[0],e)},proto.teletubby.v1.ReceiverStreamMessage.prototype.clearHeartbeat=function(){return this.setHeartbeat(void 0)},proto.teletubby.v1.ReceiverStreamMessage.prototype.hasHeartbeat=function(){return null!=o.Message.getField(this,1)},proto.teletubby.v1.ReceiverStreamMessage.prototype.getAck=function(){return o.Message.getWrapperField(this,proto.teletubby.v1.TelemetryMessageAck,2)},proto.teletubby.v1.ReceiverStreamMessage.prototype.setAck=function(e){return o.Message.setOneofWrapperField(this,2,proto.teletubby.v1.ReceiverStreamMessage.oneofGroups_[0],e)},proto.teletubby.v1.ReceiverStreamMessage.prototype.clearAck=function(){return this.setAck(void 0)},proto.teletubby.v1.ReceiverStreamMessage.prototype.hasAck=function(){return null!=o.Message.getField(this,2)},proto.teletubby.v1.TelemetryStreamMessage.oneofGroups_=[[1,2]],proto.teletubby.v1.TelemetryStreamMessage.ContentCase={CONTENT_NOT_SET:0,HEARTBEAT:1,MESSAGE:2},proto.teletubby.v1.TelemetryStreamMessage.prototype.getContentCase=function(){return o.Message.computeOneofCase(this,proto.teletubby.v1.TelemetryStreamMessage.oneofGroups_[0])},o.Message.GENERATE_TO_OBJECT&&(proto.teletubby.v1.TelemetryStreamMessage.prototype.toObject=function(e){return proto.teletubby.v1.TelemetryStreamMessage.toObject(e,this)},proto.teletubby.v1.TelemetryStreamMessage.toObject=function(e,t){var r,i={heartbeat:(r=t.getHeartbeat())&&proto.teletubby.v1.Heartbeat.toObject(e,r),message:(r=t.getMessage())&&proto.teletubby.v1.TelemetryMessage.toObject(e,r),isackable:o.Message.getBooleanFieldWithDefault(t,3,!1)};return e&&(i.$jspbMessageInstance=t),i}),proto.teletubby.v1.TelemetryStreamMessage.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.teletubby.v1.TelemetryStreamMessage;return proto.teletubby.v1.TelemetryStreamMessage.deserializeBinaryFromReader(r,t)},proto.teletubby.v1.TelemetryStreamMessage.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.teletubby.v1.Heartbeat;t.readMessage(r,proto.teletubby.v1.Heartbeat.deserializeBinaryFromReader),e.setHeartbeat(r);break;case 2:r=new proto.teletubby.v1.TelemetryMessage,t.readMessage(r,proto.teletubby.v1.TelemetryMessage.deserializeBinaryFromReader),e.setMessage(r);break;case 3:r=t.readBool(),e.setIsackable(r);break;default:t.skipField()}return e},proto.teletubby.v1.TelemetryStreamMessage.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.teletubby.v1.TelemetryStreamMessage.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.teletubby.v1.TelemetryStreamMessage.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getHeartbeat())&&t.writeMessage(1,r,proto.teletubby.v1.Heartbeat.serializeBinaryToWriter),null!=(r=e.getMessage())&&t.writeMessage(2,r,proto.teletubby.v1.TelemetryMessage.serializeBinaryToWriter),(r=e.getIsackable())&&t.writeBool(3,r)},proto.teletubby.v1.TelemetryStreamMessage.prototype.getHeartbeat=function(){return o.Message.getWrapperField(this,proto.teletubby.v1.Heartbeat,1)},proto.teletubby.v1.TelemetryStreamMessage.prototype.setHeartbeat=function(e){return o.Message.setOneofWrapperField(this,1,proto.teletubby.v1.TelemetryStreamMessage.oneofGroups_[0],e)},proto.teletubby.v1.TelemetryStreamMessage.prototype.clearHeartbeat=function(){return this.setHeartbeat(void 0)},proto.teletubby.v1.TelemetryStreamMessage.prototype.hasHeartbeat=function(){return null!=o.Message.getField(this,1)},proto.teletubby.v1.TelemetryStreamMessage.prototype.getMessage=function(){return o.Message.getWrapperField(this,proto.teletubby.v1.TelemetryMessage,2)},proto.teletubby.v1.TelemetryStreamMessage.prototype.setMessage=function(e){return o.Message.setOneofWrapperField(this,2,proto.teletubby.v1.TelemetryStreamMessage.oneofGroups_[0],e)},proto.teletubby.v1.TelemetryStreamMessage.prototype.clearMessage=function(){return this.setMessage(void 0)},proto.teletubby.v1.TelemetryStreamMessage.prototype.hasMessage=function(){return null!=o.Message.getField(this,2)},proto.teletubby.v1.TelemetryStreamMessage.prototype.getIsackable=function(){return o.Message.getBooleanFieldWithDefault(this,3,!1)},proto.teletubby.v1.TelemetryStreamMessage.prototype.setIsackable=function(e){return o.Message.setProto3BooleanField(this,3,e)},o.Message.GENERATE_TO_OBJECT&&(proto.teletubby.v1.TelemetryMessageAck.prototype.toObject=function(e){return proto.teletubby.v1.TelemetryMessageAck.toObject(e,this)},proto.teletubby.v1.TelemetryMessageAck.toObject=function(e,t){var r={uid:o.Message.getFieldWithDefault(t,1,""),status:o.Message.getFieldWithDefault(t,2,0),noretry:o.Message.getBooleanFieldWithDefault(t,3,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.teletubby.v1.TelemetryMessageAck.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.teletubby.v1.TelemetryMessageAck;return proto.teletubby.v1.TelemetryMessageAck.deserializeBinaryFromReader(r,t)},proto.teletubby.v1.TelemetryMessageAck.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setUid(r);break;case 2:r=t.readEnum(),e.setStatus(r);break;case 3:r=t.readBool(),e.setNoretry(r);break;default:t.skipField()}return e},proto.teletubby.v1.TelemetryMessageAck.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.teletubby.v1.TelemetryMessageAck.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.teletubby.v1.TelemetryMessageAck.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getUid()).length>0&&t.writeString(1,r),0!==(r=e.getStatus())&&t.writeEnum(2,r),(r=e.getNoretry())&&t.writeBool(3,r)},proto.teletubby.v1.TelemetryMessageAck.prototype.getUid=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.teletubby.v1.TelemetryMessageAck.prototype.setUid=function(e){return o.Message.setProto3StringField(this,1,e)},proto.teletubby.v1.TelemetryMessageAck.prototype.getStatus=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.teletubby.v1.TelemetryMessageAck.prototype.setStatus=function(e){return o.Message.setProto3EnumField(this,2,e)},proto.teletubby.v1.TelemetryMessageAck.prototype.getNoretry=function(){return o.Message.getBooleanFieldWithDefault(this,3,!1)},proto.teletubby.v1.TelemetryMessageAck.prototype.setNoretry=function(e){return o.Message.setProto3BooleanField(this,3,e)},o.Message.GENERATE_TO_OBJECT&&(proto.teletubby.v1.TelemetryStreamAck.prototype.toObject=function(e){return proto.teletubby.v1.TelemetryStreamAck.toObject(e,this)},proto.teletubby.v1.TelemetryStreamAck.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.teletubby.v1.TelemetryStreamAck.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.teletubby.v1.TelemetryStreamAck;return proto.teletubby.v1.TelemetryStreamAck.deserializeBinaryFromReader(r,t)},proto.teletubby.v1.TelemetryStreamAck.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},proto.teletubby.v1.TelemetryStreamAck.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.teletubby.v1.TelemetryStreamAck.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.teletubby.v1.TelemetryStreamAck.serializeBinaryToWriter=function(e,t){},proto.teletubby.v1.ConfigMessage.repeatedFields_=[2],o.Message.GENERATE_TO_OBJECT&&(proto.teletubby.v1.ConfigMessage.prototype.toObject=function(e){return proto.teletubby.v1.ConfigMessage.toObject(e,this)},proto.teletubby.v1.ConfigMessage.toObject=function(e,t){var r={requestedactionsList:o.Message.toObjectList(t.getRequestedactionsList(),proto.teletubby.v1.ConfigAction.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.teletubby.v1.ConfigMessage.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.teletubby.v1.ConfigMessage;return proto.teletubby.v1.ConfigMessage.deserializeBinaryFromReader(r,t)},proto.teletubby.v1.ConfigMessage.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(2===t.getFieldNumber()){var r=new proto.teletubby.v1.ConfigAction;t.readMessage(r,proto.teletubby.v1.ConfigAction.deserializeBinaryFromReader),e.addRequestedactions(r)}else t.skipField();return e},proto.teletubby.v1.ConfigMessage.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.teletubby.v1.ConfigMessage.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.teletubby.v1.ConfigMessage.serializeBinaryToWriter=function(e,t){var r;(r=e.getRequestedactionsList()).length>0&&t.writeRepeatedMessage(2,r,proto.teletubby.v1.ConfigAction.serializeBinaryToWriter)},proto.teletubby.v1.ConfigMessage.prototype.getRequestedactionsList=function(){return o.Message.getRepeatedWrapperField(this,proto.teletubby.v1.ConfigAction,2)},proto.teletubby.v1.ConfigMessage.prototype.setRequestedactionsList=function(e){return o.Message.setRepeatedWrapperField(this,2,e)},proto.teletubby.v1.ConfigMessage.prototype.addRequestedactions=function(e,t){return o.Message.addToRepeatedWrapperField(this,2,e,proto.teletubby.v1.ConfigAction,t)},proto.teletubby.v1.ConfigMessage.prototype.clearRequestedactionsList=function(){return this.setRequestedactionsList([])},proto.teletubby.v1.ConfigAction.repeatedFields_=[2],o.Message.GENERATE_TO_OBJECT&&(proto.teletubby.v1.ConfigAction.prototype.toObject=function(e){return proto.teletubby.v1.ConfigAction.toObject(e,this)},proto.teletubby.v1.ConfigAction.toObject=function(e,t){var r,i={operation:o.Message.getFieldWithDefault(t,1,""),sourcesList:null==(r=o.Message.getRepeatedField(t,2))?void 0:r};return e&&(i.$jspbMessageInstance=t),i}),proto.teletubby.v1.ConfigAction.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.teletubby.v1.ConfigAction;return proto.teletubby.v1.ConfigAction.deserializeBinaryFromReader(r,t)},proto.teletubby.v1.ConfigAction.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setOperation(r);break;case 2:r=t.readString(),e.addSources(r);break;default:t.skipField()}return e},proto.teletubby.v1.ConfigAction.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.teletubby.v1.ConfigAction.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.teletubby.v1.ConfigAction.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getOperation()).length>0&&t.writeString(1,r),(r=e.getSourcesList()).length>0&&t.writeRepeatedString(2,r)},proto.teletubby.v1.ConfigAction.prototype.getOperation=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.teletubby.v1.ConfigAction.prototype.setOperation=function(e){return o.Message.setProto3StringField(this,1,e)},proto.teletubby.v1.ConfigAction.prototype.getSourcesList=function(){return o.Message.getRepeatedField(this,2)},proto.teletubby.v1.ConfigAction.prototype.setSourcesList=function(e){return o.Message.setField(this,2,e||[])},proto.teletubby.v1.ConfigAction.prototype.addSources=function(e,t){return o.Message.addToRepeatedField(this,2,e,t)},proto.teletubby.v1.ConfigAction.prototype.clearSourcesList=function(){return this.setSourcesList([])},proto.teletubby.v1.TelemetryRequest.repeatedFields_=[2],o.Message.GENERATE_TO_OBJECT&&(proto.teletubby.v1.TelemetryRequest.prototype.toObject=function(e){return proto.teletubby.v1.TelemetryRequest.toObject(e,this)},proto.teletubby.v1.TelemetryRequest.toObject=function(e,t){var r={subscriberid:o.Message.getFieldWithDefault(t,1,""),requestedactionsList:o.Message.toObjectList(t.getRequestedactionsList(),proto.teletubby.v1.TelemetryAction.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.teletubby.v1.TelemetryRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.teletubby.v1.TelemetryRequest;return proto.teletubby.v1.TelemetryRequest.deserializeBinaryFromReader(r,t)},proto.teletubby.v1.TelemetryRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setSubscriberid(r);break;case 2:r=new proto.teletubby.v1.TelemetryAction,t.readMessage(r,proto.teletubby.v1.TelemetryAction.deserializeBinaryFromReader),e.addRequestedactions(r);break;default:t.skipField()}return e},proto.teletubby.v1.TelemetryRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.teletubby.v1.TelemetryRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.teletubby.v1.TelemetryRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSubscriberid()).length>0&&t.writeString(1,r),(r=e.getRequestedactionsList()).length>0&&t.writeRepeatedMessage(2,r,proto.teletubby.v1.TelemetryAction.serializeBinaryToWriter)},proto.teletubby.v1.TelemetryRequest.prototype.getSubscriberid=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.teletubby.v1.TelemetryRequest.prototype.setSubscriberid=function(e){return o.Message.setProto3StringField(this,1,e)},proto.teletubby.v1.TelemetryRequest.prototype.getRequestedactionsList=function(){return o.Message.getRepeatedWrapperField(this,proto.teletubby.v1.TelemetryAction,2)},proto.teletubby.v1.TelemetryRequest.prototype.setRequestedactionsList=function(e){return o.Message.setRepeatedWrapperField(this,2,e)},proto.teletubby.v1.TelemetryRequest.prototype.addRequestedactions=function(e,t){return o.Message.addToRepeatedWrapperField(this,2,e,proto.teletubby.v1.TelemetryAction,t)},proto.teletubby.v1.TelemetryRequest.prototype.clearRequestedactionsList=function(){return this.setRequestedactionsList([])},proto.teletubby.v1.TelemetryQueryRequest.repeatedFields_=[4],o.Message.GENERATE_TO_OBJECT&&(proto.teletubby.v1.TelemetryQueryRequest.prototype.toObject=function(e){return proto.teletubby.v1.TelemetryQueryRequest.toObject(e,this)},proto.teletubby.v1.TelemetryQueryRequest.toObject=function(e,t){var r,i={subscriberid:o.Message.getFieldWithDefault(t,1,""),operation:o.Message.getFieldWithDefault(t,2,""),callsignquery:(r=t.getCallsignquery())&&proto.teletubby.v1.Query.toObject(e,r),sourcesList:null==(r=o.Message.getRepeatedField(t,4))?void 0:r};return e&&(i.$jspbMessageInstance=t),i}),proto.teletubby.v1.TelemetryQueryRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.teletubby.v1.TelemetryQueryRequest;return proto.teletubby.v1.TelemetryQueryRequest.deserializeBinaryFromReader(r,t)},proto.teletubby.v1.TelemetryQueryRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setSubscriberid(r);break;case 2:r=t.readString(),e.setOperation(r);break;case 3:r=new proto.teletubby.v1.Query,t.readMessage(r,proto.teletubby.v1.Query.deserializeBinaryFromReader),e.setCallsignquery(r);break;case 4:r=t.readString(),e.addSources(r);break;default:t.skipField()}return e},proto.teletubby.v1.TelemetryQueryRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.teletubby.v1.TelemetryQueryRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.teletubby.v1.TelemetryQueryRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSubscriberid()).length>0&&t.writeString(1,r),(r=e.getOperation()).length>0&&t.writeString(2,r),null!=(r=e.getCallsignquery())&&t.writeMessage(3,r,proto.teletubby.v1.Query.serializeBinaryToWriter),(r=e.getSourcesList()).length>0&&t.writeRepeatedString(4,r)},proto.teletubby.v1.TelemetryQueryRequest.prototype.getSubscriberid=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.teletubby.v1.TelemetryQueryRequest.prototype.setSubscriberid=function(e){return o.Message.setProto3StringField(this,1,e)},proto.teletubby.v1.TelemetryQueryRequest.prototype.getOperation=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.teletubby.v1.TelemetryQueryRequest.prototype.setOperation=function(e){return o.Message.setProto3StringField(this,2,e)},proto.teletubby.v1.TelemetryQueryRequest.prototype.getCallsignquery=function(){return o.Message.getWrapperField(this,proto.teletubby.v1.Query,3)},proto.teletubby.v1.TelemetryQueryRequest.prototype.setCallsignquery=function(e){return o.Message.setWrapperField(this,3,e)},proto.teletubby.v1.TelemetryQueryRequest.prototype.clearCallsignquery=function(){return this.setCallsignquery(void 0)},proto.teletubby.v1.TelemetryQueryRequest.prototype.hasCallsignquery=function(){return null!=o.Message.getField(this,3)},proto.teletubby.v1.TelemetryQueryRequest.prototype.getSourcesList=function(){return o.Message.getRepeatedField(this,4)},proto.teletubby.v1.TelemetryQueryRequest.prototype.setSourcesList=function(e){return o.Message.setField(this,4,e||[])},proto.teletubby.v1.TelemetryQueryRequest.prototype.addSources=function(e,t){return o.Message.addToRepeatedField(this,4,e,t)},proto.teletubby.v1.TelemetryQueryRequest.prototype.clearSourcesList=function(){return this.setSourcesList([])},proto.teletubby.v1.TelemetryAction.repeatedFields_=[2,3],proto.teletubby.v1.TelemetryAction.oneofGroups_=[[4,5]],proto.teletubby.v1.TelemetryAction.ContentCase={CONTENT_NOT_SET:0,SUBSCRIBEOPERATION:4,UNSUBSCRIBEOPERATION:5},proto.teletubby.v1.TelemetryAction.prototype.getContentCase=function(){return o.Message.computeOneofCase(this,proto.teletubby.v1.TelemetryAction.oneofGroups_[0])},o.Message.GENERATE_TO_OBJECT&&(proto.teletubby.v1.TelemetryAction.prototype.toObject=function(e){return proto.teletubby.v1.TelemetryAction.toObject(e,this)},proto.teletubby.v1.TelemetryAction.toObject=function(e,t){var r,i={operation:o.Message.getFieldWithDefault(t,1,""),callsignsList:null==(r=o.Message.getRepeatedField(t,2))?void 0:r,sourcesList:null==(r=o.Message.getRepeatedField(t,3))?void 0:r,subscribeoperation:(r=t.getSubscribeoperation())&&proto.teletubby.v1.SubscribeOperation.toObject(e,r),unsubscribeoperation:(r=t.getUnsubscribeoperation())&&proto.teletubby.v1.UnsubscribeOperation.toObject(e,r)};return e&&(i.$jspbMessageInstance=t),i}),proto.teletubby.v1.TelemetryAction.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.teletubby.v1.TelemetryAction;return proto.teletubby.v1.TelemetryAction.deserializeBinaryFromReader(r,t)},proto.teletubby.v1.TelemetryAction.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setOperation(r);break;case 2:r=t.readString(),e.addCallsigns(r);break;case 3:r=t.readString(),e.addSources(r);break;case 4:r=new proto.teletubby.v1.SubscribeOperation,t.readMessage(r,proto.teletubby.v1.SubscribeOperation.deserializeBinaryFromReader),e.setSubscribeoperation(r);break;case 5:r=new proto.teletubby.v1.UnsubscribeOperation,t.readMessage(r,proto.teletubby.v1.UnsubscribeOperation.deserializeBinaryFromReader),e.setUnsubscribeoperation(r);break;default:t.skipField()}return e},proto.teletubby.v1.TelemetryAction.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.teletubby.v1.TelemetryAction.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.teletubby.v1.TelemetryAction.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getOperation()).length>0&&t.writeString(1,r),(r=e.getCallsignsList()).length>0&&t.writeRepeatedString(2,r),(r=e.getSourcesList()).length>0&&t.writeRepeatedString(3,r),null!=(r=e.getSubscribeoperation())&&t.writeMessage(4,r,proto.teletubby.v1.SubscribeOperation.serializeBinaryToWriter),null!=(r=e.getUnsubscribeoperation())&&t.writeMessage(5,r,proto.teletubby.v1.UnsubscribeOperation.serializeBinaryToWriter)},proto.teletubby.v1.TelemetryAction.prototype.getOperation=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.teletubby.v1.TelemetryAction.prototype.setOperation=function(e){return o.Message.setProto3StringField(this,1,e)},proto.teletubby.v1.TelemetryAction.prototype.getCallsignsList=function(){return o.Message.getRepeatedField(this,2)},proto.teletubby.v1.TelemetryAction.prototype.setCallsignsList=function(e){return o.Message.setField(this,2,e||[])},proto.teletubby.v1.TelemetryAction.prototype.addCallsigns=function(e,t){return o.Message.addToRepeatedField(this,2,e,t)},proto.teletubby.v1.TelemetryAction.prototype.clearCallsignsList=function(){return this.setCallsignsList([])},proto.teletubby.v1.TelemetryAction.prototype.getSourcesList=function(){return o.Message.getRepeatedField(this,3)},proto.teletubby.v1.TelemetryAction.prototype.setSourcesList=function(e){return o.Message.setField(this,3,e||[])},proto.teletubby.v1.TelemetryAction.prototype.addSources=function(e,t){return o.Message.addToRepeatedField(this,3,e,t)},proto.teletubby.v1.TelemetryAction.prototype.clearSourcesList=function(){return this.setSourcesList([])},proto.teletubby.v1.TelemetryAction.prototype.getSubscribeoperation=function(){return o.Message.getWrapperField(this,proto.teletubby.v1.SubscribeOperation,4)},proto.teletubby.v1.TelemetryAction.prototype.setSubscribeoperation=function(e){return o.Message.setOneofWrapperField(this,4,proto.teletubby.v1.TelemetryAction.oneofGroups_[0],e)},proto.teletubby.v1.TelemetryAction.prototype.clearSubscribeoperation=function(){return this.setSubscribeoperation(void 0)},proto.teletubby.v1.TelemetryAction.prototype.hasSubscribeoperation=function(){return null!=o.Message.getField(this,4)},proto.teletubby.v1.TelemetryAction.prototype.getUnsubscribeoperation=function(){return o.Message.getWrapperField(this,proto.teletubby.v1.UnsubscribeOperation,5)},proto.teletubby.v1.TelemetryAction.prototype.setUnsubscribeoperation=function(e){return o.Message.setOneofWrapperField(this,5,proto.teletubby.v1.TelemetryAction.oneofGroups_[0],e)},proto.teletubby.v1.TelemetryAction.prototype.clearUnsubscribeoperation=function(){return this.setUnsubscribeoperation(void 0)},proto.teletubby.v1.TelemetryAction.prototype.hasUnsubscribeoperation=function(){return null!=o.Message.getField(this,5)},proto.teletubby.v1.SubscribeOperation.repeatedFields_=[1],o.Message.GENERATE_TO_OBJECT&&(proto.teletubby.v1.SubscribeOperation.prototype.toObject=function(e){return proto.teletubby.v1.SubscribeOperation.toObject(e,this)},proto.teletubby.v1.SubscribeOperation.toObject=function(e,t){var r={optionsList:o.Message.toObjectList(t.getOptionsList(),proto.teletubby.v1.SubscribeOption.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.teletubby.v1.SubscribeOperation.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.teletubby.v1.SubscribeOperation;return proto.teletubby.v1.SubscribeOperation.deserializeBinaryFromReader(r,t)},proto.teletubby.v1.SubscribeOperation.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new proto.teletubby.v1.SubscribeOption;t.readMessage(r,proto.teletubby.v1.SubscribeOption.deserializeBinaryFromReader),e.addOptions(r)}else t.skipField();return e},proto.teletubby.v1.SubscribeOperation.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.teletubby.v1.SubscribeOperation.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.teletubby.v1.SubscribeOperation.serializeBinaryToWriter=function(e,t){var r;(r=e.getOptionsList()).length>0&&t.writeRepeatedMessage(1,r,proto.teletubby.v1.SubscribeOption.serializeBinaryToWriter)},proto.teletubby.v1.SubscribeOperation.prototype.getOptionsList=function(){return o.Message.getRepeatedWrapperField(this,proto.teletubby.v1.SubscribeOption,1)},proto.teletubby.v1.SubscribeOperation.prototype.setOptionsList=function(e){return o.Message.setRepeatedWrapperField(this,1,e)},proto.teletubby.v1.SubscribeOperation.prototype.addOptions=function(e,t){return o.Message.addToRepeatedWrapperField(this,1,e,proto.teletubby.v1.SubscribeOption,t)},proto.teletubby.v1.SubscribeOperation.prototype.clearOptionsList=function(){return this.setOptionsList([])},proto.teletubby.v1.UnsubscribeOperation.repeatedFields_=[1],o.Message.GENERATE_TO_OBJECT&&(proto.teletubby.v1.UnsubscribeOperation.prototype.toObject=function(e){return proto.teletubby.v1.UnsubscribeOperation.toObject(e,this)},proto.teletubby.v1.UnsubscribeOperation.toObject=function(e,t){var r={optionsList:o.Message.toObjectList(t.getOptionsList(),proto.teletubby.v1.UnsubscribeOption.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.teletubby.v1.UnsubscribeOperation.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.teletubby.v1.UnsubscribeOperation;return proto.teletubby.v1.UnsubscribeOperation.deserializeBinaryFromReader(r,t)},proto.teletubby.v1.UnsubscribeOperation.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new proto.teletubby.v1.UnsubscribeOption;t.readMessage(r,proto.teletubby.v1.UnsubscribeOption.deserializeBinaryFromReader),e.addOptions(r)}else t.skipField();return e},proto.teletubby.v1.UnsubscribeOperation.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.teletubby.v1.UnsubscribeOperation.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.teletubby.v1.UnsubscribeOperation.serializeBinaryToWriter=function(e,t){var r;(r=e.getOptionsList()).length>0&&t.writeRepeatedMessage(1,r,proto.teletubby.v1.UnsubscribeOption.serializeBinaryToWriter)},proto.teletubby.v1.UnsubscribeOperation.prototype.getOptionsList=function(){return o.Message.getRepeatedWrapperField(this,proto.teletubby.v1.UnsubscribeOption,1)},proto.teletubby.v1.UnsubscribeOperation.prototype.setOptionsList=function(e){return o.Message.setRepeatedWrapperField(this,1,e)},proto.teletubby.v1.UnsubscribeOperation.prototype.addOptions=function(e,t){return o.Message.addToRepeatedWrapperField(this,1,e,proto.teletubby.v1.UnsubscribeOption,t)},proto.teletubby.v1.UnsubscribeOperation.prototype.clearOptionsList=function(){return this.setOptionsList([])},proto.teletubby.v1.SubscribeOption.oneofGroups_=[[1]],proto.teletubby.v1.SubscribeOption.ContentCase={CONTENT_NOT_SET:0,RECEIVERGROUPSUBSCRIBEOPTION:1},proto.teletubby.v1.SubscribeOption.prototype.getContentCase=function(){return o.Message.computeOneofCase(this,proto.teletubby.v1.SubscribeOption.oneofGroups_[0])},o.Message.GENERATE_TO_OBJECT&&(proto.teletubby.v1.SubscribeOption.prototype.toObject=function(e){return proto.teletubby.v1.SubscribeOption.toObject(e,this)},proto.teletubby.v1.SubscribeOption.toObject=function(e,t){var r,o={receivergroupsubscribeoption:(r=t.getReceivergroupsubscribeoption())&&proto.teletubby.v1.ReceiverGroupSubscribeOption.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.teletubby.v1.SubscribeOption.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.teletubby.v1.SubscribeOption;return proto.teletubby.v1.SubscribeOption.deserializeBinaryFromReader(r,t)},proto.teletubby.v1.SubscribeOption.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new proto.teletubby.v1.ReceiverGroupSubscribeOption;t.readMessage(r,proto.teletubby.v1.ReceiverGroupSubscribeOption.deserializeBinaryFromReader),e.setReceivergroupsubscribeoption(r)}else t.skipField();return e},proto.teletubby.v1.SubscribeOption.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.teletubby.v1.SubscribeOption.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.teletubby.v1.SubscribeOption.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getReceivergroupsubscribeoption())&&t.writeMessage(1,r,proto.teletubby.v1.ReceiverGroupSubscribeOption.serializeBinaryToWriter)},proto.teletubby.v1.SubscribeOption.prototype.getReceivergroupsubscribeoption=function(){return o.Message.getWrapperField(this,proto.teletubby.v1.ReceiverGroupSubscribeOption,1)},proto.teletubby.v1.SubscribeOption.prototype.setReceivergroupsubscribeoption=function(e){return o.Message.setOneofWrapperField(this,1,proto.teletubby.v1.SubscribeOption.oneofGroups_[0],e)},proto.teletubby.v1.SubscribeOption.prototype.clearReceivergroupsubscribeoption=function(){return this.setReceivergroupsubscribeoption(void 0)},proto.teletubby.v1.SubscribeOption.prototype.hasReceivergroupsubscribeoption=function(){return null!=o.Message.getField(this,1)},proto.teletubby.v1.UnsubscribeOption.oneofGroups_=[[1]],proto.teletubby.v1.UnsubscribeOption.ContentCase={CONTENT_NOT_SET:0,RECEIVERGROUPUNSUBSCRIBEOPTION:1},proto.teletubby.v1.UnsubscribeOption.prototype.getContentCase=function(){return o.Message.computeOneofCase(this,proto.teletubby.v1.UnsubscribeOption.oneofGroups_[0])},o.Message.GENERATE_TO_OBJECT&&(proto.teletubby.v1.UnsubscribeOption.prototype.toObject=function(e){return proto.teletubby.v1.UnsubscribeOption.toObject(e,this)},proto.teletubby.v1.UnsubscribeOption.toObject=function(e,t){var r,o={receivergroupunsubscribeoption:(r=t.getReceivergroupunsubscribeoption())&&proto.teletubby.v1.ReceiverGroupUnsubscribeOption.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.teletubby.v1.UnsubscribeOption.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.teletubby.v1.UnsubscribeOption;return proto.teletubby.v1.UnsubscribeOption.deserializeBinaryFromReader(r,t)},proto.teletubby.v1.UnsubscribeOption.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new proto.teletubby.v1.ReceiverGroupUnsubscribeOption;t.readMessage(r,proto.teletubby.v1.ReceiverGroupUnsubscribeOption.deserializeBinaryFromReader),e.setReceivergroupunsubscribeoption(r)}else t.skipField();return e},proto.teletubby.v1.UnsubscribeOption.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.teletubby.v1.UnsubscribeOption.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.teletubby.v1.UnsubscribeOption.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getReceivergroupunsubscribeoption())&&t.writeMessage(1,r,proto.teletubby.v1.ReceiverGroupUnsubscribeOption.serializeBinaryToWriter)},proto.teletubby.v1.UnsubscribeOption.prototype.getReceivergroupunsubscribeoption=function(){return o.Message.getWrapperField(this,proto.teletubby.v1.ReceiverGroupUnsubscribeOption,1)},proto.teletubby.v1.UnsubscribeOption.prototype.setReceivergroupunsubscribeoption=function(e){return o.Message.setOneofWrapperField(this,1,proto.teletubby.v1.UnsubscribeOption.oneofGroups_[0],e)},proto.teletubby.v1.UnsubscribeOption.prototype.clearReceivergroupunsubscribeoption=function(){return this.setReceivergroupunsubscribeoption(void 0)},proto.teletubby.v1.UnsubscribeOption.prototype.hasReceivergroupunsubscribeoption=function(){return null!=o.Message.getField(this,1)},o.Message.GENERATE_TO_OBJECT&&(proto.teletubby.v1.ReceiverGroupSubscribeOption.prototype.toObject=function(e){return proto.teletubby.v1.ReceiverGroupSubscribeOption.toObject(e,this)},proto.teletubby.v1.ReceiverGroupSubscribeOption.toObject=function(e,t){var r={startposition:o.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.teletubby.v1.ReceiverGroupSubscribeOption.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.teletubby.v1.ReceiverGroupSubscribeOption;return proto.teletubby.v1.ReceiverGroupSubscribeOption.deserializeBinaryFromReader(r,t)},proto.teletubby.v1.ReceiverGroupSubscribeOption.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readInt32();e.setStartposition(r)}else t.skipField();return e},proto.teletubby.v1.ReceiverGroupSubscribeOption.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.teletubby.v1.ReceiverGroupSubscribeOption.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.teletubby.v1.ReceiverGroupSubscribeOption.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getStartposition())&&t.writeInt32(1,r)},proto.teletubby.v1.ReceiverGroupSubscribeOption.prototype.getStartposition=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.teletubby.v1.ReceiverGroupSubscribeOption.prototype.setStartposition=function(e){return o.Message.setProto3IntField(this,1,e)},o.Message.GENERATE_TO_OBJECT&&(proto.teletubby.v1.ReceiverGroupUnsubscribeOption.prototype.toObject=function(e){return proto.teletubby.v1.ReceiverGroupUnsubscribeOption.toObject(e,this)},proto.teletubby.v1.ReceiverGroupUnsubscribeOption.toObject=function(e,t){var r={terminate:o.Message.getBooleanFieldWithDefault(t,1,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.teletubby.v1.ReceiverGroupUnsubscribeOption.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.teletubby.v1.ReceiverGroupUnsubscribeOption;return proto.teletubby.v1.ReceiverGroupUnsubscribeOption.deserializeBinaryFromReader(r,t)},proto.teletubby.v1.ReceiverGroupUnsubscribeOption.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBool();e.setTerminate(r)}else t.skipField();return e},proto.teletubby.v1.ReceiverGroupUnsubscribeOption.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.teletubby.v1.ReceiverGroupUnsubscribeOption.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.teletubby.v1.ReceiverGroupUnsubscribeOption.serializeBinaryToWriter=function(e,t){var r;(r=e.getTerminate())&&t.writeBool(1,r)},proto.teletubby.v1.ReceiverGroupUnsubscribeOption.prototype.getTerminate=function(){return o.Message.getBooleanFieldWithDefault(this,1,!1)},proto.teletubby.v1.ReceiverGroupUnsubscribeOption.prototype.setTerminate=function(e){return o.Message.setProto3BooleanField(this,1,e)},o.Message.GENERATE_TO_OBJECT&&(proto.teletubby.v1.TelemetryRequestAck.prototype.toObject=function(e){return proto.teletubby.v1.TelemetryRequestAck.toObject(e,this)},proto.teletubby.v1.TelemetryRequestAck.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.teletubby.v1.TelemetryRequestAck.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.teletubby.v1.TelemetryRequestAck;return proto.teletubby.v1.TelemetryRequestAck.deserializeBinaryFromReader(r,t)},proto.teletubby.v1.TelemetryRequestAck.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},proto.teletubby.v1.TelemetryRequestAck.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.teletubby.v1.TelemetryRequestAck.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.teletubby.v1.TelemetryRequestAck.serializeBinaryToWriter=function(e,t){},o.Message.GENERATE_TO_OBJECT&&(proto.teletubby.v1.RegistrationMessage.prototype.toObject=function(e){return proto.teletubby.v1.RegistrationMessage.toObject(e,this)},proto.teletubby.v1.RegistrationMessage.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.teletubby.v1.RegistrationMessage.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.teletubby.v1.RegistrationMessage;return proto.teletubby.v1.RegistrationMessage.deserializeBinaryFromReader(r,t)},proto.teletubby.v1.RegistrationMessage.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},proto.teletubby.v1.RegistrationMessage.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.teletubby.v1.RegistrationMessage.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.teletubby.v1.RegistrationMessage.serializeBinaryToWriter=function(e,t){},o.Message.GENERATE_TO_OBJECT&&(proto.teletubby.v1.ServiceStatusRequest.prototype.toObject=function(e){return proto.teletubby.v1.ServiceStatusRequest.toObject(e,this)},proto.teletubby.v1.ServiceStatusRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.teletubby.v1.ServiceStatusRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.teletubby.v1.ServiceStatusRequest;return proto.teletubby.v1.ServiceStatusRequest.deserializeBinaryFromReader(r,t)},proto.teletubby.v1.ServiceStatusRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},proto.teletubby.v1.ServiceStatusRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.teletubby.v1.ServiceStatusRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.teletubby.v1.ServiceStatusRequest.serializeBinaryToWriter=function(e,t){},proto.teletubby.v1.Query.repeatedFields_=[2],o.Message.GENERATE_TO_OBJECT&&(proto.teletubby.v1.Query.prototype.toObject=function(e){return proto.teletubby.v1.Query.toObject(e,this)},proto.teletubby.v1.Query.toObject=function(e,t){var r={operation:o.Message.getFieldWithDefault(t,1,0),queryorpredicatesList:o.Message.toObjectList(t.getQueryorpredicatesList(),proto.teletubby.v1.QueryOrPredicate.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.teletubby.v1.Query.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.teletubby.v1.Query;return proto.teletubby.v1.Query.deserializeBinaryFromReader(r,t)},proto.teletubby.v1.Query.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setOperation(r);break;case 2:r=new proto.teletubby.v1.QueryOrPredicate,t.readMessage(r,proto.teletubby.v1.QueryOrPredicate.deserializeBinaryFromReader),e.addQueryorpredicates(r);break;default:t.skipField()}return e},proto.teletubby.v1.Query.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.teletubby.v1.Query.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.teletubby.v1.Query.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getOperation())&&t.writeEnum(1,r),(r=e.getQueryorpredicatesList()).length>0&&t.writeRepeatedMessage(2,r,proto.teletubby.v1.QueryOrPredicate.serializeBinaryToWriter)},proto.teletubby.v1.Query.prototype.getOperation=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.teletubby.v1.Query.prototype.setOperation=function(e){return o.Message.setProto3EnumField(this,1,e)},proto.teletubby.v1.Query.prototype.getQueryorpredicatesList=function(){return o.Message.getRepeatedWrapperField(this,proto.teletubby.v1.QueryOrPredicate,2)},proto.teletubby.v1.Query.prototype.setQueryorpredicatesList=function(e){return o.Message.setRepeatedWrapperField(this,2,e)},proto.teletubby.v1.Query.prototype.addQueryorpredicates=function(e,t){return o.Message.addToRepeatedWrapperField(this,2,e,proto.teletubby.v1.QueryOrPredicate,t)},proto.teletubby.v1.Query.prototype.clearQueryorpredicatesList=function(){return this.setQueryorpredicatesList([])},proto.teletubby.v1.QueryOrPredicate.oneofGroups_=[[1,2]],proto.teletubby.v1.QueryOrPredicate.ContentCase={CONTENT_NOT_SET:0,QUERY:1,PREDICATE:2},proto.teletubby.v1.QueryOrPredicate.prototype.getContentCase=function(){return o.Message.computeOneofCase(this,proto.teletubby.v1.QueryOrPredicate.oneofGroups_[0])},o.Message.GENERATE_TO_OBJECT&&(proto.teletubby.v1.QueryOrPredicate.prototype.toObject=function(e){return proto.teletubby.v1.QueryOrPredicate.toObject(e,this)},proto.teletubby.v1.QueryOrPredicate.toObject=function(e,t){var r,o={query:(r=t.getQuery())&&proto.teletubby.v1.Query.toObject(e,r),predicate:(r=t.getPredicate())&&proto.teletubby.v1.Predicate.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.teletubby.v1.QueryOrPredicate.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.teletubby.v1.QueryOrPredicate;return proto.teletubby.v1.QueryOrPredicate.deserializeBinaryFromReader(r,t)},proto.teletubby.v1.QueryOrPredicate.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.teletubby.v1.Query;t.readMessage(r,proto.teletubby.v1.Query.deserializeBinaryFromReader),e.setQuery(r);break;case 2:r=new proto.teletubby.v1.Predicate,t.readMessage(r,proto.teletubby.v1.Predicate.deserializeBinaryFromReader),e.setPredicate(r);break;default:t.skipField()}return e},proto.teletubby.v1.QueryOrPredicate.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.teletubby.v1.QueryOrPredicate.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.teletubby.v1.QueryOrPredicate.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getQuery())&&t.writeMessage(1,r,proto.teletubby.v1.Query.serializeBinaryToWriter),null!=(r=e.getPredicate())&&t.writeMessage(2,r,proto.teletubby.v1.Predicate.serializeBinaryToWriter)},proto.teletubby.v1.QueryOrPredicate.prototype.getQuery=function(){return o.Message.getWrapperField(this,proto.teletubby.v1.Query,1)},proto.teletubby.v1.QueryOrPredicate.prototype.setQuery=function(e){return o.Message.setOneofWrapperField(this,1,proto.teletubby.v1.QueryOrPredicate.oneofGroups_[0],e)},proto.teletubby.v1.QueryOrPredicate.prototype.clearQuery=function(){return this.setQuery(void 0)},proto.teletubby.v1.QueryOrPredicate.prototype.hasQuery=function(){return null!=o.Message.getField(this,1)},proto.teletubby.v1.QueryOrPredicate.prototype.getPredicate=function(){return o.Message.getWrapperField(this,proto.teletubby.v1.Predicate,2)},proto.teletubby.v1.QueryOrPredicate.prototype.setPredicate=function(e){return o.Message.setOneofWrapperField(this,2,proto.teletubby.v1.QueryOrPredicate.oneofGroups_[0],e)},proto.teletubby.v1.QueryOrPredicate.prototype.clearPredicate=function(){return this.setPredicate(void 0)},proto.teletubby.v1.QueryOrPredicate.prototype.hasPredicate=function(){return null!=o.Message.getField(this,2)},o.Message.GENERATE_TO_OBJECT&&(proto.teletubby.v1.Predicate.prototype.toObject=function(e){return proto.teletubby.v1.Predicate.toObject(e,this)},proto.teletubby.v1.Predicate.toObject=function(e,t){var r={attribute:o.Message.getFieldWithDefault(t,1,0),operation:o.Message.getFieldWithDefault(t,2,0),value:o.Message.getFieldWithDefault(t,3,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.teletubby.v1.Predicate.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.teletubby.v1.Predicate;return proto.teletubby.v1.Predicate.deserializeBinaryFromReader(r,t)},proto.teletubby.v1.Predicate.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setAttribute(r);break;case 2:r=t.readEnum(),e.setOperation(r);break;case 3:r=t.readString(),e.setValue(r);break;default:t.skipField()}return e},proto.teletubby.v1.Predicate.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.teletubby.v1.Predicate.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.teletubby.v1.Predicate.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getAttribute())&&t.writeEnum(1,r),0!==(r=e.getOperation())&&t.writeEnum(2,r),(r=e.getValue()).length>0&&t.writeString(3,r)},proto.teletubby.v1.Predicate.prototype.getAttribute=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.teletubby.v1.Predicate.prototype.setAttribute=function(e){return o.Message.setProto3EnumField(this,1,e)},proto.teletubby.v1.Predicate.prototype.getOperation=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.teletubby.v1.Predicate.prototype.setOperation=function(e){return o.Message.setProto3EnumField(this,2,e)},proto.teletubby.v1.Predicate.prototype.getValue=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.teletubby.v1.Predicate.prototype.setValue=function(e){return o.Message.setProto3StringField(this,3,e)},o.Message.GENERATE_TO_OBJECT&&(proto.teletubby.v1.Heartbeat.prototype.toObject=function(e){return proto.teletubby.v1.Heartbeat.toObject(e,this)},proto.teletubby.v1.Heartbeat.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.teletubby.v1.Heartbeat.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.teletubby.v1.Heartbeat;return proto.teletubby.v1.Heartbeat.deserializeBinaryFromReader(r,t)},proto.teletubby.v1.Heartbeat.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},proto.teletubby.v1.Heartbeat.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.teletubby.v1.Heartbeat.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.teletubby.v1.Heartbeat.serializeBinaryToWriter=function(e,t){},proto.teletubby.v1.TelemetryAckStatus={OK:0,REJECT:1},proto.teletubby.v1.LogicalOperation={OR:0},proto.teletubby.v1.ComparisonOperation={EQUAL:0},proto.teletubby.v1.PredicateAttribute={TAG:0},i.object.extend(t,proto.teletubby.v1)},5783:(e,t,r)=>{var o=r(8685),i=r(3037).grpc,n=function(){function e(){}return e.serviceName="teletubby.v1.TelemetryReceiver",e}();function s(e,t){this.serviceHost=e,this.options=t||{}}n.RegisterStreamReceiver={methodName:"RegisterStreamReceiver",service:n,requestStream:!0,responseStream:!0,requestType:o.ReceiverStreamMessage,responseType:o.TelemetryStreamMessage},n.RequestTelemetry={methodName:"RequestTelemetry",service:n,requestStream:!1,responseStream:!1,requestType:o.TelemetryRequest,responseType:o.TelemetryRequestAck},n.RequestTelemetryQuery={methodName:"RequestTelemetryQuery",service:n,requestStream:!1,responseStream:!1,requestType:o.TelemetryQueryRequest,responseType:o.TelemetryRequestAck},t.TelemetryReceiver=n,s.prototype.registerStreamReceiver=function(e){var t={data:[],end:[],status:[]},r=i.client(n.RegisterStreamReceiver,{host:this.serviceHost,metadata:e,transport:this.options.transport});return r.onEnd((function(e,r,o){t.status.forEach((function(t){t({code:e,details:r,metadata:o})})),t.end.forEach((function(t){t({code:e,details:r,metadata:o})})),t=null})),r.onMessage((function(e){t.data.forEach((function(t){t(e)}))})),r.start(e),{on:function(e,r){return t[e].push(r),this},write:function(e){return r.send(e),this},end:function(){r.finishSend()},cancel:function(){t=null,r.close()}}},s.prototype.requestTelemetry=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=i.unary(n.RequestTelemetry,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==i.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},s.prototype.requestTelemetryQuery=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=i.unary(n.RequestTelemetryQuery,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==i.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},t.TelemetryReceiverClient=s;var a=function(){function e(){}return e.serviceName="teletubby.v1.TelemetryGateway",e}();function u(e,t){this.serviceHost=e,this.options=t||{}}a.RegisterSender={methodName:"RegisterSender",service:a,requestStream:!1,responseStream:!0,requestType:o.RegistrationMessage,responseType:o.ConfigMessage},a.RegisterReceiver={methodName:"RegisterReceiver",service:a,requestStream:!1,responseStream:!0,requestType:o.RegistrationMessage,responseType:o.TelemetryMessage},a.SendTelemetry={methodName:"SendTelemetry",service:a,requestStream:!0,responseStream:!1,requestType:o.TelemetryMessage,responseType:o.TelemetryStreamAck},a.SendTelemetryMessage={methodName:"SendTelemetryMessage",service:a,requestStream:!1,responseStream:!1,requestType:o.TelemetryMessage,responseType:o.TelemetryMessageAck},a.RequestTelemetry={methodName:"RequestTelemetry",service:a,requestStream:!1,responseStream:!1,requestType:o.TelemetryRequest,responseType:o.TelemetryRequestAck},a.RequestTelemetryQuery={methodName:"RequestTelemetryQuery",service:a,requestStream:!1,responseStream:!1,requestType:o.TelemetryQueryRequest,responseType:o.TelemetryRequestAck},t.TelemetryGateway=a,u.prototype.registerSender=function(e,t){var r={data:[],end:[],status:[]},o=i.invoke(a.RegisterSender,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onMessage:function(e){r.data.forEach((function(t){t(e)}))},onEnd:function(e,t,o){r.status.forEach((function(r){r({code:e,details:t,metadata:o})})),r.end.forEach((function(r){r({code:e,details:t,metadata:o})})),r=null}});return{on:function(e,t){return r[e].push(t),this},cancel:function(){r=null,o.close()}}},u.prototype.registerReceiver=function(e,t){var r={data:[],end:[],status:[]},o=i.invoke(a.RegisterReceiver,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onMessage:function(e){r.data.forEach((function(t){t(e)}))},onEnd:function(e,t,o){r.status.forEach((function(r){r({code:e,details:t,metadata:o})})),r.end.forEach((function(r){r({code:e,details:t,metadata:o})})),r=null}});return{on:function(e,t){return r[e].push(t),this},cancel:function(){r=null,o.close()}}},u.prototype.sendTelemetry=function(e){var t={end:[],status:[]},r=i.client(a.SendTelemetry,{host:this.serviceHost,metadata:e,transport:this.options.transport});return r.onEnd((function(e,r,o){t.status.forEach((function(t){t({code:e,details:r,metadata:o})})),t.end.forEach((function(t){t({code:e,details:r,metadata:o})})),t=null})),{on:function(e,r){return t[e].push(r),this},write:function(t){return r.started||r.start(e),r.send(t),this},end:function(){r.finishSend()},cancel:function(){t=null,r.close()}}},u.prototype.sendTelemetryMessage=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=i.unary(a.SendTelemetryMessage,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==i.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},u.prototype.requestTelemetry=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=i.unary(a.RequestTelemetry,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==i.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},u.prototype.requestTelemetryQuery=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=i.unary(a.RequestTelemetryQuery,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==i.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},t.TelemetryGatewayClient=u},1615:(e,t,r)=>{var o=r(3019),i=o,n=Function("return this")();i.exportSymbol("proto.pigeon.v1.AddIceCandidateRequest",null,n),i.exportSymbol("proto.pigeon.v1.AnswerRequest",null,n),i.exportSymbol("proto.pigeon.v1.CameraConnectRequest",null,n),i.exportSymbol("proto.pigeon.v1.GetDetailsRequest",null,n),i.exportSymbol("proto.pigeon.v1.GetDetailsResponse",null,n),i.exportSymbol("proto.pigeon.v1.Message",null,n),i.exportSymbol("proto.pigeon.v1.OfferRequest",null,n),i.exportSymbol("proto.pigeon.v1.OperatorConnectRequest",null,n),i.exportSymbol("proto.pigeon.v1.Outcome",null,n),proto.pigeon.v1.GetDetailsRequest=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.pigeon.v1.GetDetailsRequest,o.Message),i.DEBUG&&!COMPILED&&(proto.pigeon.v1.GetDetailsRequest.displayName="proto.pigeon.v1.GetDetailsRequest"),proto.pigeon.v1.GetDetailsResponse=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.pigeon.v1.GetDetailsResponse,o.Message),i.DEBUG&&!COMPILED&&(proto.pigeon.v1.GetDetailsResponse.displayName="proto.pigeon.v1.GetDetailsResponse"),proto.pigeon.v1.OperatorConnectRequest=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.pigeon.v1.OperatorConnectRequest,o.Message),i.DEBUG&&!COMPILED&&(proto.pigeon.v1.OperatorConnectRequest.displayName="proto.pigeon.v1.OperatorConnectRequest"),proto.pigeon.v1.AddIceCandidateRequest=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.pigeon.v1.AddIceCandidateRequest,o.Message),i.DEBUG&&!COMPILED&&(proto.pigeon.v1.AddIceCandidateRequest.displayName="proto.pigeon.v1.AddIceCandidateRequest"),proto.pigeon.v1.Outcome=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.pigeon.v1.Outcome,o.Message),i.DEBUG&&!COMPILED&&(proto.pigeon.v1.Outcome.displayName="proto.pigeon.v1.Outcome"),proto.pigeon.v1.Message=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.pigeon.v1.Message,o.Message),i.DEBUG&&!COMPILED&&(proto.pigeon.v1.Message.displayName="proto.pigeon.v1.Message"),proto.pigeon.v1.CameraConnectRequest=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.pigeon.v1.CameraConnectRequest,o.Message),i.DEBUG&&!COMPILED&&(proto.pigeon.v1.CameraConnectRequest.displayName="proto.pigeon.v1.CameraConnectRequest"),proto.pigeon.v1.OfferRequest=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.pigeon.v1.OfferRequest,o.Message),i.DEBUG&&!COMPILED&&(proto.pigeon.v1.OfferRequest.displayName="proto.pigeon.v1.OfferRequest"),proto.pigeon.v1.AnswerRequest=function(e){o.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.pigeon.v1.AnswerRequest,o.Message),i.DEBUG&&!COMPILED&&(proto.pigeon.v1.AnswerRequest.displayName="proto.pigeon.v1.AnswerRequest"),o.Message.GENERATE_TO_OBJECT&&(proto.pigeon.v1.GetDetailsRequest.prototype.toObject=function(e){return proto.pigeon.v1.GetDetailsRequest.toObject(e,this)},proto.pigeon.v1.GetDetailsRequest.toObject=function(e,t){var r={videoid:o.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.pigeon.v1.GetDetailsRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.pigeon.v1.GetDetailsRequest;return proto.pigeon.v1.GetDetailsRequest.deserializeBinaryFromReader(r,t)},proto.pigeon.v1.GetDetailsRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setVideoid(r)}else t.skipField();return e},proto.pigeon.v1.GetDetailsRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.pigeon.v1.GetDetailsRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.pigeon.v1.GetDetailsRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getVideoid()).length>0&&t.writeString(1,r)},proto.pigeon.v1.GetDetailsRequest.prototype.getVideoid=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.pigeon.v1.GetDetailsRequest.prototype.setVideoid=function(e){return o.Message.setProto3StringField(this,1,e)},o.Message.GENERATE_TO_OBJECT&&(proto.pigeon.v1.GetDetailsResponse.prototype.toObject=function(e){return proto.pigeon.v1.GetDetailsResponse.toObject(e,this)},proto.pigeon.v1.GetDetailsResponse.toObject=function(e,t){var r={operators:o.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.pigeon.v1.GetDetailsResponse.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.pigeon.v1.GetDetailsResponse;return proto.pigeon.v1.GetDetailsResponse.deserializeBinaryFromReader(r,t)},proto.pigeon.v1.GetDetailsResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readInt32();e.setOperators(r)}else t.skipField();return e},proto.pigeon.v1.GetDetailsResponse.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.pigeon.v1.GetDetailsResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.pigeon.v1.GetDetailsResponse.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getOperators())&&t.writeInt32(1,r)},proto.pigeon.v1.GetDetailsResponse.prototype.getOperators=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.pigeon.v1.GetDetailsResponse.prototype.setOperators=function(e){return o.Message.setProto3IntField(this,1,e)},o.Message.GENERATE_TO_OBJECT&&(proto.pigeon.v1.OperatorConnectRequest.prototype.toObject=function(e){return proto.pigeon.v1.OperatorConnectRequest.toObject(e,this)},proto.pigeon.v1.OperatorConnectRequest.toObject=function(e,t){var r={videoid:o.Message.getFieldWithDefault(t,1,""),clientid:o.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.pigeon.v1.OperatorConnectRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.pigeon.v1.OperatorConnectRequest;return proto.pigeon.v1.OperatorConnectRequest.deserializeBinaryFromReader(r,t)},proto.pigeon.v1.OperatorConnectRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setVideoid(r);break;case 2:r=t.readString(),e.setClientid(r);break;default:t.skipField()}return e},proto.pigeon.v1.OperatorConnectRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.pigeon.v1.OperatorConnectRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.pigeon.v1.OperatorConnectRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getVideoid()).length>0&&t.writeString(1,r),(r=e.getClientid()).length>0&&t.writeString(2,r)},proto.pigeon.v1.OperatorConnectRequest.prototype.getVideoid=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.pigeon.v1.OperatorConnectRequest.prototype.setVideoid=function(e){return o.Message.setProto3StringField(this,1,e)},proto.pigeon.v1.OperatorConnectRequest.prototype.getClientid=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.pigeon.v1.OperatorConnectRequest.prototype.setClientid=function(e){return o.Message.setProto3StringField(this,2,e)},o.Message.GENERATE_TO_OBJECT&&(proto.pigeon.v1.AddIceCandidateRequest.prototype.toObject=function(e){return proto.pigeon.v1.AddIceCandidateRequest.toObject(e,this)},proto.pigeon.v1.AddIceCandidateRequest.toObject=function(e,t){var r={videoid:o.Message.getFieldWithDefault(t,1,""),clientid:o.Message.getFieldWithDefault(t,2,""),candidate:o.Message.getFieldWithDefault(t,3,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.pigeon.v1.AddIceCandidateRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.pigeon.v1.AddIceCandidateRequest;return proto.pigeon.v1.AddIceCandidateRequest.deserializeBinaryFromReader(r,t)},proto.pigeon.v1.AddIceCandidateRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setVideoid(r);break;case 2:r=t.readString(),e.setClientid(r);break;case 3:r=t.readString(),e.setCandidate(r);break;default:t.skipField()}return e},proto.pigeon.v1.AddIceCandidateRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.pigeon.v1.AddIceCandidateRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.pigeon.v1.AddIceCandidateRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getVideoid()).length>0&&t.writeString(1,r),(r=e.getClientid()).length>0&&t.writeString(2,r),(r=e.getCandidate()).length>0&&t.writeString(3,r)},proto.pigeon.v1.AddIceCandidateRequest.prototype.getVideoid=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.pigeon.v1.AddIceCandidateRequest.prototype.setVideoid=function(e){return o.Message.setProto3StringField(this,1,e)},proto.pigeon.v1.AddIceCandidateRequest.prototype.getClientid=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.pigeon.v1.AddIceCandidateRequest.prototype.setClientid=function(e){return o.Message.setProto3StringField(this,2,e)},proto.pigeon.v1.AddIceCandidateRequest.prototype.getCandidate=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.pigeon.v1.AddIceCandidateRequest.prototype.setCandidate=function(e){return o.Message.setProto3StringField(this,3,e)},o.Message.GENERATE_TO_OBJECT&&(proto.pigeon.v1.Outcome.prototype.toObject=function(e){return proto.pigeon.v1.Outcome.toObject(e,this)},proto.pigeon.v1.Outcome.toObject=function(e,t){var r={outcome:o.Message.getFieldWithDefault(t,1,""),message:o.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.pigeon.v1.Outcome.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.pigeon.v1.Outcome;return proto.pigeon.v1.Outcome.deserializeBinaryFromReader(r,t)},proto.pigeon.v1.Outcome.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setOutcome(r);break;case 2:r=t.readString(),e.setMessage(r);break;default:t.skipField()}return e},proto.pigeon.v1.Outcome.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.pigeon.v1.Outcome.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.pigeon.v1.Outcome.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getOutcome()).length>0&&t.writeString(1,r),(r=e.getMessage()).length>0&&t.writeString(2,r)},proto.pigeon.v1.Outcome.prototype.getOutcome=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.pigeon.v1.Outcome.prototype.setOutcome=function(e){return o.Message.setProto3StringField(this,1,e)},proto.pigeon.v1.Outcome.prototype.getMessage=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.pigeon.v1.Outcome.prototype.setMessage=function(e){return o.Message.setProto3StringField(this,2,e)},o.Message.GENERATE_TO_OBJECT&&(proto.pigeon.v1.Message.prototype.toObject=function(e){return proto.pigeon.v1.Message.toObject(e,this)},proto.pigeon.v1.Message.toObject=function(e,t){var r={videoid:o.Message.getFieldWithDefault(t,1,""),messagetype:o.Message.getFieldWithDefault(t,2,""),payload:o.Message.getFieldWithDefault(t,3,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.pigeon.v1.Message.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.pigeon.v1.Message;return proto.pigeon.v1.Message.deserializeBinaryFromReader(r,t)},proto.pigeon.v1.Message.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setVideoid(r);break;case 2:r=t.readString(),e.setMessagetype(r);break;case 3:r=t.readString(),e.setPayload(r);break;default:t.skipField()}return e},proto.pigeon.v1.Message.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.pigeon.v1.Message.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.pigeon.v1.Message.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getVideoid()).length>0&&t.writeString(1,r),(r=e.getMessagetype()).length>0&&t.writeString(2,r),(r=e.getPayload()).length>0&&t.writeString(3,r)},proto.pigeon.v1.Message.prototype.getVideoid=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.pigeon.v1.Message.prototype.setVideoid=function(e){return o.Message.setProto3StringField(this,1,e)},proto.pigeon.v1.Message.prototype.getMessagetype=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.pigeon.v1.Message.prototype.setMessagetype=function(e){return o.Message.setProto3StringField(this,2,e)},proto.pigeon.v1.Message.prototype.getPayload=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.pigeon.v1.Message.prototype.setPayload=function(e){return o.Message.setProto3StringField(this,3,e)},o.Message.GENERATE_TO_OBJECT&&(proto.pigeon.v1.CameraConnectRequest.prototype.toObject=function(e){return proto.pigeon.v1.CameraConnectRequest.toObject(e,this)},proto.pigeon.v1.CameraConnectRequest.toObject=function(e,t){var r={videoid:o.Message.getFieldWithDefault(t,1,""),clientid:o.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.pigeon.v1.CameraConnectRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.pigeon.v1.CameraConnectRequest;return proto.pigeon.v1.CameraConnectRequest.deserializeBinaryFromReader(r,t)},proto.pigeon.v1.CameraConnectRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setVideoid(r);break;case 2:r=t.readString(),e.setClientid(r);break;default:t.skipField()}return e},proto.pigeon.v1.CameraConnectRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.pigeon.v1.CameraConnectRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.pigeon.v1.CameraConnectRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getVideoid()).length>0&&t.writeString(1,r),(r=e.getClientid()).length>0&&t.writeString(2,r)},proto.pigeon.v1.CameraConnectRequest.prototype.getVideoid=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.pigeon.v1.CameraConnectRequest.prototype.setVideoid=function(e){return o.Message.setProto3StringField(this,1,e)},proto.pigeon.v1.CameraConnectRequest.prototype.getClientid=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.pigeon.v1.CameraConnectRequest.prototype.setClientid=function(e){return o.Message.setProto3StringField(this,2,e)},o.Message.GENERATE_TO_OBJECT&&(proto.pigeon.v1.OfferRequest.prototype.toObject=function(e){return proto.pigeon.v1.OfferRequest.toObject(e,this)},proto.pigeon.v1.OfferRequest.toObject=function(e,t){var r={videoid:o.Message.getFieldWithDefault(t,1,""),clientid:o.Message.getFieldWithDefault(t,2,""),sdp:o.Message.getFieldWithDefault(t,3,""),videoformat:o.Message.getFieldWithDefault(t,4,""),videocommand:o.Message.getFieldWithDefault(t,5,""),icerestart:o.Message.getBooleanFieldWithDefault(t,6,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.pigeon.v1.OfferRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.pigeon.v1.OfferRequest;return proto.pigeon.v1.OfferRequest.deserializeBinaryFromReader(r,t)},proto.pigeon.v1.OfferRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setVideoid(r);break;case 2:r=t.readString(),e.setClientid(r);break;case 3:r=t.readString(),e.setSdp(r);break;case 4:r=t.readString(),e.setVideoformat(r);break;case 5:r=t.readString(),e.setVideocommand(r);break;case 6:r=t.readBool(),e.setIcerestart(r);break;default:t.skipField()}return e},proto.pigeon.v1.OfferRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.pigeon.v1.OfferRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.pigeon.v1.OfferRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getVideoid()).length>0&&t.writeString(1,r),(r=e.getClientid()).length>0&&t.writeString(2,r),(r=e.getSdp()).length>0&&t.writeString(3,r),(r=e.getVideoformat()).length>0&&t.writeString(4,r),(r=e.getVideocommand()).length>0&&t.writeString(5,r),(r=e.getIcerestart())&&t.writeBool(6,r)},proto.pigeon.v1.OfferRequest.prototype.getVideoid=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.pigeon.v1.OfferRequest.prototype.setVideoid=function(e){return o.Message.setProto3StringField(this,1,e)},proto.pigeon.v1.OfferRequest.prototype.getClientid=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.pigeon.v1.OfferRequest.prototype.setClientid=function(e){return o.Message.setProto3StringField(this,2,e)},proto.pigeon.v1.OfferRequest.prototype.getSdp=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.pigeon.v1.OfferRequest.prototype.setSdp=function(e){return o.Message.setProto3StringField(this,3,e)},proto.pigeon.v1.OfferRequest.prototype.getVideoformat=function(){return o.Message.getFieldWithDefault(this,4,"")},proto.pigeon.v1.OfferRequest.prototype.setVideoformat=function(e){return o.Message.setProto3StringField(this,4,e)},proto.pigeon.v1.OfferRequest.prototype.getVideocommand=function(){return o.Message.getFieldWithDefault(this,5,"")},proto.pigeon.v1.OfferRequest.prototype.setVideocommand=function(e){return o.Message.setProto3StringField(this,5,e)},proto.pigeon.v1.OfferRequest.prototype.getIcerestart=function(){return o.Message.getBooleanFieldWithDefault(this,6,!1)},proto.pigeon.v1.OfferRequest.prototype.setIcerestart=function(e){return o.Message.setProto3BooleanField(this,6,e)},o.Message.GENERATE_TO_OBJECT&&(proto.pigeon.v1.AnswerRequest.prototype.toObject=function(e){return proto.pigeon.v1.AnswerRequest.toObject(e,this)},proto.pigeon.v1.AnswerRequest.toObject=function(e,t){var r={videoid:o.Message.getFieldWithDefault(t,1,""),sdp:o.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.pigeon.v1.AnswerRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.pigeon.v1.AnswerRequest;return proto.pigeon.v1.AnswerRequest.deserializeBinaryFromReader(r,t)},proto.pigeon.v1.AnswerRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setVideoid(r);break;case 2:r=t.readString(),e.setSdp(r);break;default:t.skipField()}return e},proto.pigeon.v1.AnswerRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.pigeon.v1.AnswerRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.pigeon.v1.AnswerRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getVideoid()).length>0&&t.writeString(1,r),(r=e.getSdp()).length>0&&t.writeString(2,r)},proto.pigeon.v1.AnswerRequest.prototype.getVideoid=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.pigeon.v1.AnswerRequest.prototype.setVideoid=function(e){return o.Message.setProto3StringField(this,1,e)},proto.pigeon.v1.AnswerRequest.prototype.getSdp=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.pigeon.v1.AnswerRequest.prototype.setSdp=function(e){return o.Message.setProto3StringField(this,2,e)},i.object.extend(t,proto.pigeon.v1)},5384:(e,t,r)=>{var o=r(1615),i=r(3037).grpc,n=function(){function e(){}return e.serviceName="pigeon.v1.operator",e}();function s(e,t){this.serviceHost=e,this.options=t||{}}n.connect={methodName:"connect",service:n,requestStream:!1,responseStream:!0,requestType:o.OperatorConnectRequest,responseType:o.Message},n.get={methodName:"get",service:n,requestStream:!1,responseStream:!1,requestType:o.GetDetailsRequest,responseType:o.GetDetailsResponse},n.offer={methodName:"offer",service:n,requestStream:!1,responseStream:!1,requestType:o.OfferRequest,responseType:o.Outcome},n.addIceCandidate={methodName:"addIceCandidate",service:n,requestStream:!1,responseStream:!1,requestType:o.AddIceCandidateRequest,responseType:o.Outcome},t.operator=n,s.prototype.connect=function(e,t){var r={data:[],end:[],status:[]},o=i.invoke(n.connect,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onMessage:function(e){r.data.forEach((function(t){t(e)}))},onEnd:function(e,t,o){r.status.forEach((function(r){r({code:e,details:t,metadata:o})})),r.end.forEach((function(r){r({code:e,details:t,metadata:o})})),r=null}});return{on:function(e,t){return r[e].push(t),this},cancel:function(){r=null,o.close()}}},s.prototype.get=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=i.unary(n.get,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==i.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},s.prototype.offer=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=i.unary(n.offer,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==i.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},s.prototype.addIceCandidate=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=i.unary(n.addIceCandidate,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==i.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},t.operatorClient=s;var a=function(){function e(){}return e.serviceName="pigeon.v1.camera",e}();function u(e,t){this.serviceHost=e,this.options=t||{}}a.connect={methodName:"connect",service:a,requestStream:!1,responseStream:!0,requestType:o.CameraConnectRequest,responseType:o.Message},a.answer={methodName:"answer",service:a,requestStream:!1,responseStream:!1,requestType:o.AnswerRequest,responseType:o.Outcome},t.camera=a,u.prototype.connect=function(e,t){var r={data:[],end:[],status:[]},o=i.invoke(a.connect,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onMessage:function(e){r.data.forEach((function(t){t(e)}))},onEnd:function(e,t,o){r.status.forEach((function(r){r({code:e,details:t,metadata:o})})),r.end.forEach((function(r){r({code:e,details:t,metadata:o})})),r=null}});return{on:function(e,t){return r[e].push(t),this},cancel:function(){r=null,o.close()}}},u.prototype.answer=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=i.unary(a.answer,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==i.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},t.cameraClient=u}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__=__webpack_require__(3607);return __webpack_exports__})()));
|
3
|
-
//# sourceMappingURL=rocos-js-sdk.js.map
|