@nutanix-scratch/aiops-js-client 4.0.3-alpha.2 → 4.2.2-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (475) hide show
  1. package/LICENSE.txt +202 -49
  2. package/README.md +70 -43
  3. package/dist/Ntnx-Aiops-js-client-prod.js +1 -11
  4. package/dist/Ntnx-Aiops-js-client.js +1045 -1019
  5. package/dist/es/ApiClient.d.ts +43 -7
  6. package/dist/es/ApiClient.js +1071 -678
  7. package/dist/es/Paginable.d.ts +1 -1
  8. package/dist/es/Paginable.js +153 -194
  9. package/dist/es/apis/scenarios-endpoints.d.ts +181 -0
  10. package/dist/es/apis/scenarios-endpoints.js +624 -0
  11. package/dist/es/apis/stats-endpoints.d.ts +31 -41
  12. package/dist/es/apis/stats-endpoints.js +215 -230
  13. package/dist/es/index.d.ts +157 -21
  14. package/dist/es/index.js +669 -126
  15. package/dist/es/models/aiops/v4/clusterMetrics/Cluster.d.ts +144 -0
  16. package/dist/es/models/aiops/v4/clusterMetrics/Cluster.js +597 -0
  17. package/dist/es/models/aiops/v4/clusterMetrics/ClusterMetrics.d.ts +274 -0
  18. package/dist/es/models/aiops/v4/clusterMetrics/ClusterMetrics.js +1062 -0
  19. package/dist/es/models/aiops/v4/clusterMetrics/ClusterProjection.d.ts +31 -0
  20. package/dist/es/models/aiops/v4/clusterMetrics/ClusterProjection.js +368 -0
  21. package/dist/es/models/aiops/v4/clusterMetrics/Node.d.ts +81 -0
  22. package/dist/es/models/aiops/v4/clusterMetrics/Node.js +366 -0
  23. package/dist/es/models/aiops/v4/clusterMetrics/NodeProjection.d.ts +10 -0
  24. package/dist/es/models/aiops/v4/clusterMetrics/NodeProjection.js +121 -0
  25. package/dist/es/models/aiops/v4/clusterMetrics/Vm.d.ts +81 -0
  26. package/dist/es/models/aiops/v4/clusterMetrics/Vm.js +366 -0
  27. package/dist/es/models/aiops/v4/clusterMetrics/VmProjection.d.ts +10 -0
  28. package/dist/es/models/aiops/v4/clusterMetrics/VmProjection.js +121 -0
  29. package/dist/es/models/aiops/v4/common/ClusterType.d.ts +19 -0
  30. package/dist/es/models/aiops/v4/common/ClusterType.js +77 -0
  31. package/dist/es/models/aiops/v4/config/CapacityType.d.ts +19 -0
  32. package/dist/es/models/aiops/v4/config/CapacityType.js +95 -0
  33. package/dist/es/models/aiops/v4/config/CapacityUnit.d.ts +19 -0
  34. package/dist/es/models/aiops/v4/config/CapacityUnit.js +83 -0
  35. package/dist/es/models/aiops/v4/config/CapacityUpdateConfig.d.ts +71 -0
  36. package/dist/es/models/aiops/v4/config/CapacityUpdateConfig.js +281 -0
  37. package/dist/es/models/aiops/v4/config/CapacityUpdateType.d.ts +19 -0
  38. package/dist/es/models/aiops/v4/config/CapacityUpdateType.js +83 -0
  39. package/dist/es/models/aiops/v4/config/CitrixXenProvisionType.d.ts +19 -0
  40. package/dist/es/models/aiops/v4/config/CitrixXenProvisionType.js +83 -0
  41. package/dist/es/models/aiops/v4/config/CitrixXenWorkload.d.ts +70 -0
  42. package/dist/es/models/aiops/v4/config/CitrixXenWorkload.js +338 -0
  43. package/dist/es/models/aiops/v4/config/CitrixXenWorkloadVendor.d.ts +19 -0
  44. package/dist/es/models/aiops/v4/config/CitrixXenWorkloadVendor.js +77 -0
  45. package/dist/es/models/aiops/v4/config/ClusterConfig.d.ts +58 -0
  46. package/dist/es/models/aiops/v4/config/ClusterConfig.js +279 -0
  47. package/dist/es/models/aiops/v4/config/ClusterType.d.ts +19 -0
  48. package/dist/es/models/aiops/v4/config/ClusterType.js +83 -0
  49. package/dist/es/models/aiops/v4/config/CreateScenarioApiResponse.d.ts +58 -0
  50. package/dist/es/models/aiops/v4/config/CreateScenarioApiResponse.js +288 -0
  51. package/dist/es/models/aiops/v4/config/CreateSimulationApiResponse.d.ts +58 -0
  52. package/dist/es/models/aiops/v4/config/CreateSimulationApiResponse.js +288 -0
  53. package/dist/es/models/aiops/v4/config/DataStoreConfig.d.ts +191 -0
  54. package/dist/es/models/aiops/v4/config/DataStoreConfig.js +616 -0
  55. package/dist/es/models/aiops/v4/config/DeleteScenarioApiResponse.d.ts +57 -0
  56. package/dist/es/models/aiops/v4/config/DeleteScenarioApiResponse.js +290 -0
  57. package/dist/es/models/aiops/v4/config/DeleteSimulationApiResponse.d.ts +57 -0
  58. package/dist/es/models/aiops/v4/config/DeleteSimulationApiResponse.js +290 -0
  59. package/dist/es/models/aiops/v4/config/EntityDescriptor.d.ts +67 -0
  60. package/dist/es/models/aiops/v4/config/EntityDescriptor.js +396 -0
  61. package/dist/es/models/aiops/v4/config/EntityDescriptorListApiResponse.d.ts +58 -0
  62. package/dist/es/models/aiops/v4/config/EntityDescriptorListApiResponse.js +310 -0
  63. package/dist/es/models/aiops/v4/config/EntityDetail.d.ts +29 -0
  64. package/dist/es/models/aiops/v4/config/EntityDetail.js +260 -0
  65. package/dist/es/models/aiops/v4/config/EntityType.d.ts +22 -0
  66. package/dist/es/models/aiops/v4/config/EntityType.js +233 -0
  67. package/dist/es/models/aiops/v4/config/EntityTypeListApiResponse.d.ts +58 -0
  68. package/dist/es/models/aiops/v4/config/EntityTypeListApiResponse.js +310 -0
  69. package/dist/es/models/aiops/v4/config/GenerateRecommendationApiResponse.d.ts +58 -0
  70. package/dist/es/models/aiops/v4/config/GenerateRecommendationApiResponse.js +288 -0
  71. package/dist/es/models/aiops/v4/config/GenerateReportApiResponse.d.ts +58 -0
  72. package/dist/es/models/aiops/v4/config/GenerateReportApiResponse.js +288 -0
  73. package/dist/es/models/aiops/v4/config/GenerateRunwayApiResponse.d.ts +58 -0
  74. package/dist/es/models/aiops/v4/config/GenerateRunwayApiResponse.js +288 -0
  75. package/dist/es/models/aiops/v4/config/GetScenarioApiResponse.d.ts +58 -0
  76. package/dist/es/models/aiops/v4/config/GetScenarioApiResponse.js +288 -0
  77. package/dist/es/models/aiops/v4/config/GetScenarioReportApiResponse.d.ts +57 -0
  78. package/dist/es/models/aiops/v4/config/GetScenarioReportApiResponse.js +287 -0
  79. package/dist/es/models/aiops/v4/config/GetSimulationApiResponse.d.ts +58 -0
  80. package/dist/es/models/aiops/v4/config/GetSimulationApiResponse.js +288 -0
  81. package/dist/es/models/aiops/v4/config/ListScenariosApiResponse.d.ts +59 -0
  82. package/dist/es/models/aiops/v4/config/ListScenariosApiResponse.js +315 -0
  83. package/dist/es/models/aiops/v4/config/ListSimulationsApiResponse.d.ts +59 -0
  84. package/dist/es/models/aiops/v4/config/ListSimulationsApiResponse.js +315 -0
  85. package/dist/es/models/aiops/v4/config/MetricDescriptor.d.ts +155 -0
  86. package/dist/es/models/aiops/v4/config/MetricDescriptor.js +604 -0
  87. package/dist/es/models/aiops/v4/config/MicrosoftXenProvisionType.d.ts +19 -0
  88. package/dist/es/models/aiops/v4/config/MicrosoftXenProvisionType.js +77 -0
  89. package/dist/es/models/aiops/v4/config/MicrosoftXenWorkload.d.ts +70 -0
  90. package/dist/es/models/aiops/v4/config/MicrosoftXenWorkload.js +338 -0
  91. package/dist/es/models/aiops/v4/config/MicrosoftXenWorkloadVendor.d.ts +19 -0
  92. package/dist/es/models/aiops/v4/config/MicrosoftXenWorkloadVendor.js +77 -0
  93. package/dist/es/models/aiops/v4/config/NodeConfig.d.ts +135 -0
  94. package/dist/es/models/aiops/v4/config/NodeConfig.js +478 -0
  95. package/dist/es/models/aiops/v4/config/NodeSource.d.ts +19 -0
  96. package/dist/es/models/aiops/v4/config/NodeSource.js +89 -0
  97. package/dist/es/models/aiops/v4/config/PolicyType.d.ts +19 -0
  98. package/dist/es/models/aiops/v4/config/PolicyType.js +83 -0
  99. package/dist/es/models/aiops/v4/config/ReplicationFactor.d.ts +19 -0
  100. package/dist/es/models/aiops/v4/config/ReplicationFactor.js +83 -0
  101. package/dist/es/models/aiops/v4/config/ResourceCapacity.d.ts +117 -0
  102. package/dist/es/models/aiops/v4/config/ResourceCapacity.js +404 -0
  103. package/dist/es/models/aiops/v4/config/Runway.d.ts +125 -0
  104. package/dist/es/models/aiops/v4/config/Runway.js +437 -0
  105. package/dist/es/models/aiops/v4/config/Scenario.d.ts +134 -0
  106. package/dist/es/models/aiops/v4/config/Scenario.js +626 -0
  107. package/dist/es/models/aiops/v4/config/ScenarioProjection.d.ts +10 -0
  108. package/dist/es/models/aiops/v4/config/ScenarioProjection.js +127 -0
  109. package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpec.d.ts +98 -0
  110. package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpec.js +358 -0
  111. package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpecProjection.d.ts +16 -0
  112. package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpecProjection.js +133 -0
  113. package/dist/es/models/aiops/v4/config/Simulation.d.ts +32 -0
  114. package/dist/es/models/aiops/v4/config/Simulation.js +273 -0
  115. package/dist/es/models/aiops/v4/config/SimulationProjection.d.ts +10 -0
  116. package/dist/es/models/aiops/v4/config/SimulationProjection.js +124 -0
  117. package/dist/es/models/aiops/v4/config/Source.d.ts +22 -0
  118. package/dist/es/models/aiops/v4/config/Source.js +233 -0
  119. package/dist/es/models/aiops/v4/config/SourceListApiResponse.d.ts +58 -0
  120. package/dist/es/models/aiops/v4/config/SourceListApiResponse.js +310 -0
  121. package/dist/es/models/aiops/v4/config/SplunkWorkload.d.ts +110 -0
  122. package/dist/es/models/aiops/v4/config/SplunkWorkload.js +401 -0
  123. package/dist/es/models/aiops/v4/config/SqlProfileType.d.ts +19 -0
  124. package/dist/es/models/aiops/v4/config/SqlProfileType.js +89 -0
  125. package/dist/es/models/aiops/v4/config/SqlTransactionType.d.ts +19 -0
  126. package/dist/es/models/aiops/v4/config/SqlTransactionType.js +83 -0
  127. package/dist/es/models/aiops/v4/config/SqlWorkload.d.ts +102 -0
  128. package/dist/es/models/aiops/v4/config/SqlWorkload.js +370 -0
  129. package/dist/es/models/aiops/v4/config/UpdateScenarioApiResponse.d.ts +58 -0
  130. package/dist/es/models/aiops/v4/config/UpdateScenarioApiResponse.js +288 -0
  131. package/dist/es/models/aiops/v4/config/UpdateSimulationApiResponse.d.ts +58 -0
  132. package/dist/es/models/aiops/v4/config/UpdateSimulationApiResponse.js +310 -0
  133. package/dist/es/models/aiops/v4/config/ValueRange.d.ts +58 -0
  134. package/dist/es/models/aiops/v4/config/ValueRange.js +271 -0
  135. package/dist/es/models/aiops/v4/{stats → config}/ValueType.js +12 -15
  136. package/dist/es/models/aiops/v4/config/VdiProvisionType.d.ts +19 -0
  137. package/dist/es/models/aiops/v4/config/VdiProvisionType.js +101 -0
  138. package/dist/es/models/aiops/v4/config/VdiUserType.d.ts +19 -0
  139. package/dist/es/models/aiops/v4/config/VdiUserType.js +95 -0
  140. package/dist/es/models/aiops/v4/config/VdiVendor.d.ts +19 -0
  141. package/dist/es/models/aiops/v4/config/VdiVendor.js +83 -0
  142. package/dist/es/models/aiops/v4/config/VdiWorkload.d.ts +101 -0
  143. package/dist/es/models/aiops/v4/config/VdiWorkload.js +367 -0
  144. package/dist/es/models/aiops/v4/config/Vendor.d.ts +19 -0
  145. package/dist/es/models/aiops/v4/config/Vendor.js +125 -0
  146. package/dist/es/models/aiops/v4/config/VmCategoryWorkload.d.ts +79 -0
  147. package/dist/es/models/aiops/v4/config/VmCategoryWorkload.js +311 -0
  148. package/dist/es/models/aiops/v4/config/VmWorkload.d.ts +74 -0
  149. package/dist/es/models/aiops/v4/config/VmWorkload.js +294 -0
  150. package/dist/es/models/aiops/v4/config/Workload.d.ts +105 -0
  151. package/dist/es/models/aiops/v4/config/Workload.js +398 -0
  152. package/dist/es/models/aiops/v4/config/XenOperatingSystem.d.ts +19 -0
  153. package/dist/es/models/aiops/v4/config/XenOperatingSystem.js +83 -0
  154. package/dist/es/models/aiops/v4/config/XenWorkload.d.ts +141 -0
  155. package/dist/es/models/aiops/v4/config/XenWorkload.js +483 -0
  156. package/dist/es/models/aiops/v4/config/XfitPolicy.d.ts +121 -0
  157. package/dist/es/models/aiops/v4/config/XfitPolicy.js +541 -0
  158. package/dist/es/models/aiops/v4/config/XfitPolicyProjection.d.ts +14 -0
  159. package/dist/es/models/aiops/v4/config/XfitPolicyProjection.js +134 -0
  160. package/dist/es/models/aiops/v4/error/AppMessage.d.ts +62 -55
  161. package/dist/es/models/aiops/v4/error/AppMessage.js +303 -310
  162. package/dist/es/models/aiops/v4/error/ErrorResponse.d.ts +23 -24
  163. package/dist/es/models/aiops/v4/error/ErrorResponse.js +224 -223
  164. package/dist/es/models/aiops/v4/error/SchemaValidationError.d.ts +52 -48
  165. package/dist/es/models/aiops/v4/error/SchemaValidationError.js +287 -292
  166. package/dist/es/models/aiops/v4/error/SchemaValidationErrorMessage.d.ts +37 -36
  167. package/dist/es/models/aiops/v4/error/SchemaValidationErrorMessage.js +224 -228
  168. package/dist/es/models/aiops/v4/stats/BoolList.d.ts +29 -27
  169. package/dist/es/models/aiops/v4/stats/BoolList.js +182 -185
  170. package/dist/es/models/aiops/v4/stats/BoolVal.d.ts +29 -27
  171. package/dist/es/models/aiops/v4/stats/BoolVal.js +175 -178
  172. package/dist/es/models/aiops/v4/stats/DoubleList.d.ts +29 -27
  173. package/dist/es/models/aiops/v4/stats/DoubleList.js +182 -185
  174. package/dist/es/models/aiops/v4/stats/DoubleVal.d.ts +29 -27
  175. package/dist/es/models/aiops/v4/stats/DoubleVal.js +175 -178
  176. package/dist/es/models/aiops/v4/stats/Entity.d.ts +25 -37
  177. package/dist/es/models/aiops/v4/stats/Entity.js +269 -280
  178. package/dist/es/models/aiops/v4/stats/EntityListApiResponse.d.ts +29 -30
  179. package/dist/es/models/aiops/v4/stats/EntityListApiResponse.js +239 -265
  180. package/dist/es/models/aiops/v4/stats/IntList.d.ts +29 -27
  181. package/dist/es/models/aiops/v4/stats/IntList.js +182 -185
  182. package/dist/es/models/aiops/v4/stats/IntVal.d.ts +29 -27
  183. package/dist/es/models/aiops/v4/stats/IntVal.js +175 -178
  184. package/dist/es/models/aiops/v4/stats/Metric.d.ts +29 -30
  185. package/dist/es/models/aiops/v4/stats/Metric.js +197 -205
  186. package/dist/es/models/aiops/v4/stats/Point.d.ts +34 -30
  187. package/dist/es/models/aiops/v4/stats/Point.js +231 -246
  188. package/dist/es/models/aiops/v4/stats/StrList.d.ts +29 -27
  189. package/dist/es/models/aiops/v4/stats/StrList.js +182 -185
  190. package/dist/es/models/aiops/v4/stats/StrVal.d.ts +29 -27
  191. package/dist/es/models/aiops/v4/stats/StrVal.js +175 -178
  192. package/dist/es/models/aiops/v4/stats/TimeSeries.d.ts +29 -30
  193. package/dist/es/models/aiops/v4/stats/TimeSeries.js +207 -218
  194. package/dist/es/models/common/v1/config/Flag.d.ts +30 -30
  195. package/dist/es/models/common/v1/config/Flag.js +203 -202
  196. package/dist/es/models/common/v1/config/IPv4Address.d.ts +70 -0
  197. package/dist/es/models/common/v1/config/IPv4Address.js +288 -0
  198. package/dist/es/models/common/v1/config/KVPair.d.ts +34 -31
  199. package/dist/es/models/common/v1/config/KVPair.js +259 -260
  200. package/dist/es/models/common/v1/config/KVStringPair.d.ts +58 -0
  201. package/dist/es/models/common/v1/config/KVStringPair.js +277 -0
  202. package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +53 -0
  203. package/dist/es/models/common/v1/config/MapOfStringWrapper.js +236 -0
  204. package/dist/es/models/common/v1/config/Message.d.ts +37 -42
  205. package/dist/es/models/common/v1/config/Message.js +244 -259
  206. package/dist/es/models/common/v1/config/MessageSeverity.js +18 -21
  207. package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +23 -26
  208. package/dist/es/models/common/v1/config/TenantAwareModel.js +169 -179
  209. package/dist/es/models/common/v1/response/ApiLink.d.ts +26 -30
  210. package/dist/es/models/common/v1/response/ApiLink.js +197 -208
  211. package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +47 -50
  212. package/dist/es/models/common/v1/response/ApiResponseMetadata.js +313 -334
  213. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +15 -23
  214. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +195 -206
  215. package/dist/es/models/common/v1/stats/DownSamplingOperator.js +24 -27
  216. package/dist/es/models/prism/v4/config/TaskReference.d.ts +47 -0
  217. package/dist/es/models/prism/v4/config/TaskReference.js +244 -0
  218. package/dist/es/models/validation/ValidationError.js +27 -45
  219. package/dist/es/models/validation/ValidationScopes.js +3 -4
  220. package/dist/es/utils/ValidationUtils.js +40 -72
  221. package/dist/lib/ApiClient.d.ts +43 -7
  222. package/dist/lib/ApiClient.js +1071 -678
  223. package/dist/lib/Paginable.d.ts +1 -1
  224. package/dist/lib/Paginable.js +153 -194
  225. package/dist/lib/apis/scenarios-endpoints.d.ts +181 -0
  226. package/dist/lib/apis/scenarios-endpoints.js +624 -0
  227. package/dist/lib/apis/stats-endpoints.d.ts +31 -41
  228. package/dist/lib/apis/stats-endpoints.js +215 -230
  229. package/dist/lib/index.d.ts +157 -21
  230. package/dist/lib/index.js +669 -126
  231. package/dist/lib/models/aiops/v4/clusterMetrics/Cluster.d.ts +144 -0
  232. package/dist/lib/models/aiops/v4/clusterMetrics/Cluster.js +597 -0
  233. package/dist/lib/models/aiops/v4/clusterMetrics/ClusterMetrics.d.ts +274 -0
  234. package/dist/lib/models/aiops/v4/clusterMetrics/ClusterMetrics.js +1062 -0
  235. package/dist/lib/models/aiops/v4/clusterMetrics/ClusterProjection.d.ts +31 -0
  236. package/dist/lib/models/aiops/v4/clusterMetrics/ClusterProjection.js +368 -0
  237. package/dist/lib/models/aiops/v4/clusterMetrics/Node.d.ts +81 -0
  238. package/dist/lib/models/aiops/v4/clusterMetrics/Node.js +366 -0
  239. package/dist/lib/models/aiops/v4/clusterMetrics/NodeProjection.d.ts +10 -0
  240. package/dist/lib/models/aiops/v4/clusterMetrics/NodeProjection.js +121 -0
  241. package/dist/lib/models/aiops/v4/clusterMetrics/Vm.d.ts +81 -0
  242. package/dist/lib/models/aiops/v4/clusterMetrics/Vm.js +366 -0
  243. package/dist/lib/models/aiops/v4/clusterMetrics/VmProjection.d.ts +10 -0
  244. package/dist/lib/models/aiops/v4/clusterMetrics/VmProjection.js +121 -0
  245. package/dist/lib/models/aiops/v4/common/ClusterType.d.ts +19 -0
  246. package/dist/lib/models/aiops/v4/common/ClusterType.js +77 -0
  247. package/dist/lib/models/aiops/v4/config/CapacityType.d.ts +19 -0
  248. package/dist/lib/models/aiops/v4/config/CapacityType.js +95 -0
  249. package/dist/lib/models/aiops/v4/config/CapacityUnit.d.ts +19 -0
  250. package/dist/lib/models/aiops/v4/config/CapacityUnit.js +83 -0
  251. package/dist/lib/models/aiops/v4/config/CapacityUpdateConfig.d.ts +71 -0
  252. package/dist/lib/models/aiops/v4/config/CapacityUpdateConfig.js +281 -0
  253. package/dist/lib/models/aiops/v4/config/CapacityUpdateType.d.ts +19 -0
  254. package/dist/lib/models/aiops/v4/config/CapacityUpdateType.js +83 -0
  255. package/dist/lib/models/aiops/v4/config/CitrixXenProvisionType.d.ts +19 -0
  256. package/dist/lib/models/aiops/v4/config/CitrixXenProvisionType.js +83 -0
  257. package/dist/lib/models/aiops/v4/config/CitrixXenWorkload.d.ts +70 -0
  258. package/dist/lib/models/aiops/v4/config/CitrixXenWorkload.js +338 -0
  259. package/dist/lib/models/aiops/v4/config/CitrixXenWorkloadVendor.d.ts +19 -0
  260. package/dist/lib/models/aiops/v4/config/CitrixXenWorkloadVendor.js +77 -0
  261. package/dist/lib/models/aiops/v4/config/ClusterConfig.d.ts +58 -0
  262. package/dist/lib/models/aiops/v4/config/ClusterConfig.js +279 -0
  263. package/dist/lib/models/aiops/v4/config/ClusterType.d.ts +19 -0
  264. package/dist/lib/models/aiops/v4/config/ClusterType.js +83 -0
  265. package/dist/lib/models/aiops/v4/config/CreateScenarioApiResponse.d.ts +58 -0
  266. package/dist/lib/models/aiops/v4/config/CreateScenarioApiResponse.js +288 -0
  267. package/dist/lib/models/aiops/v4/config/CreateSimulationApiResponse.d.ts +58 -0
  268. package/dist/lib/models/aiops/v4/config/CreateSimulationApiResponse.js +288 -0
  269. package/dist/lib/models/aiops/v4/config/DataStoreConfig.d.ts +191 -0
  270. package/dist/lib/models/aiops/v4/config/DataStoreConfig.js +616 -0
  271. package/dist/lib/models/aiops/v4/config/DeleteScenarioApiResponse.d.ts +57 -0
  272. package/dist/lib/models/aiops/v4/config/DeleteScenarioApiResponse.js +290 -0
  273. package/dist/lib/models/aiops/v4/config/DeleteSimulationApiResponse.d.ts +57 -0
  274. package/dist/lib/models/aiops/v4/config/DeleteSimulationApiResponse.js +290 -0
  275. package/dist/lib/models/aiops/v4/config/EntityDescriptor.d.ts +67 -0
  276. package/dist/lib/models/aiops/v4/config/EntityDescriptor.js +396 -0
  277. package/dist/lib/models/aiops/v4/config/EntityDescriptorListApiResponse.d.ts +58 -0
  278. package/dist/lib/models/aiops/v4/config/EntityDescriptorListApiResponse.js +310 -0
  279. package/dist/lib/models/aiops/v4/config/EntityDetail.d.ts +29 -0
  280. package/dist/lib/models/aiops/v4/config/EntityDetail.js +260 -0
  281. package/dist/lib/models/aiops/v4/config/EntityType.d.ts +22 -0
  282. package/dist/lib/models/aiops/v4/config/EntityType.js +233 -0
  283. package/dist/lib/models/aiops/v4/config/EntityTypeListApiResponse.d.ts +58 -0
  284. package/dist/lib/models/aiops/v4/config/EntityTypeListApiResponse.js +310 -0
  285. package/dist/lib/models/aiops/v4/config/GenerateRecommendationApiResponse.d.ts +58 -0
  286. package/dist/lib/models/aiops/v4/config/GenerateRecommendationApiResponse.js +288 -0
  287. package/dist/lib/models/aiops/v4/config/GenerateReportApiResponse.d.ts +58 -0
  288. package/dist/lib/models/aiops/v4/config/GenerateReportApiResponse.js +288 -0
  289. package/dist/lib/models/aiops/v4/config/GenerateRunwayApiResponse.d.ts +58 -0
  290. package/dist/lib/models/aiops/v4/config/GenerateRunwayApiResponse.js +288 -0
  291. package/dist/lib/models/aiops/v4/config/GetScenarioApiResponse.d.ts +58 -0
  292. package/dist/lib/models/aiops/v4/config/GetScenarioApiResponse.js +288 -0
  293. package/dist/lib/models/aiops/v4/config/GetScenarioReportApiResponse.d.ts +57 -0
  294. package/dist/lib/models/aiops/v4/config/GetScenarioReportApiResponse.js +287 -0
  295. package/dist/lib/models/aiops/v4/config/GetSimulationApiResponse.d.ts +58 -0
  296. package/dist/lib/models/aiops/v4/config/GetSimulationApiResponse.js +288 -0
  297. package/dist/lib/models/aiops/v4/config/ListScenariosApiResponse.d.ts +59 -0
  298. package/dist/lib/models/aiops/v4/config/ListScenariosApiResponse.js +315 -0
  299. package/dist/lib/models/aiops/v4/config/ListSimulationsApiResponse.d.ts +59 -0
  300. package/dist/lib/models/aiops/v4/config/ListSimulationsApiResponse.js +315 -0
  301. package/dist/lib/models/aiops/v4/config/MetricDescriptor.d.ts +155 -0
  302. package/dist/lib/models/aiops/v4/config/MetricDescriptor.js +604 -0
  303. package/dist/lib/models/aiops/v4/config/MicrosoftXenProvisionType.d.ts +19 -0
  304. package/dist/lib/models/aiops/v4/config/MicrosoftXenProvisionType.js +77 -0
  305. package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkload.d.ts +70 -0
  306. package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkload.js +338 -0
  307. package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkloadVendor.d.ts +19 -0
  308. package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkloadVendor.js +77 -0
  309. package/dist/lib/models/aiops/v4/config/NodeConfig.d.ts +135 -0
  310. package/dist/lib/models/aiops/v4/config/NodeConfig.js +478 -0
  311. package/dist/lib/models/aiops/v4/config/NodeSource.d.ts +19 -0
  312. package/dist/lib/models/aiops/v4/config/NodeSource.js +89 -0
  313. package/dist/lib/models/aiops/v4/config/PolicyType.d.ts +19 -0
  314. package/dist/lib/models/aiops/v4/config/PolicyType.js +83 -0
  315. package/dist/lib/models/aiops/v4/config/ReplicationFactor.d.ts +19 -0
  316. package/dist/lib/models/aiops/v4/config/ReplicationFactor.js +83 -0
  317. package/dist/lib/models/aiops/v4/config/ResourceCapacity.d.ts +117 -0
  318. package/dist/lib/models/aiops/v4/config/ResourceCapacity.js +404 -0
  319. package/dist/lib/models/aiops/v4/config/Runway.d.ts +125 -0
  320. package/dist/lib/models/aiops/v4/config/Runway.js +437 -0
  321. package/dist/lib/models/aiops/v4/config/Scenario.d.ts +134 -0
  322. package/dist/lib/models/aiops/v4/config/Scenario.js +626 -0
  323. package/dist/lib/models/aiops/v4/config/ScenarioProjection.d.ts +10 -0
  324. package/dist/lib/models/aiops/v4/config/ScenarioProjection.js +127 -0
  325. package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpec.d.ts +98 -0
  326. package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpec.js +358 -0
  327. package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpecProjection.d.ts +16 -0
  328. package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpecProjection.js +133 -0
  329. package/dist/lib/models/aiops/v4/config/Simulation.d.ts +32 -0
  330. package/dist/lib/models/aiops/v4/config/Simulation.js +273 -0
  331. package/dist/lib/models/aiops/v4/config/SimulationProjection.d.ts +10 -0
  332. package/dist/lib/models/aiops/v4/config/SimulationProjection.js +124 -0
  333. package/dist/lib/models/aiops/v4/config/Source.d.ts +22 -0
  334. package/dist/lib/models/aiops/v4/config/Source.js +233 -0
  335. package/dist/lib/models/aiops/v4/config/SourceListApiResponse.d.ts +58 -0
  336. package/dist/lib/models/aiops/v4/config/SourceListApiResponse.js +310 -0
  337. package/dist/lib/models/aiops/v4/config/SplunkWorkload.d.ts +110 -0
  338. package/dist/lib/models/aiops/v4/config/SplunkWorkload.js +401 -0
  339. package/dist/lib/models/aiops/v4/config/SqlProfileType.d.ts +19 -0
  340. package/dist/lib/models/aiops/v4/config/SqlProfileType.js +89 -0
  341. package/dist/lib/models/aiops/v4/config/SqlTransactionType.d.ts +19 -0
  342. package/dist/lib/models/aiops/v4/config/SqlTransactionType.js +83 -0
  343. package/dist/lib/models/aiops/v4/config/SqlWorkload.d.ts +102 -0
  344. package/dist/lib/models/aiops/v4/config/SqlWorkload.js +370 -0
  345. package/dist/lib/models/aiops/v4/config/UpdateScenarioApiResponse.d.ts +58 -0
  346. package/dist/lib/models/aiops/v4/config/UpdateScenarioApiResponse.js +288 -0
  347. package/dist/lib/models/aiops/v4/config/UpdateSimulationApiResponse.d.ts +58 -0
  348. package/dist/lib/models/aiops/v4/config/UpdateSimulationApiResponse.js +310 -0
  349. package/dist/lib/models/aiops/v4/config/ValueRange.d.ts +58 -0
  350. package/dist/lib/models/aiops/v4/config/ValueRange.js +271 -0
  351. package/dist/lib/models/aiops/v4/{stats → config}/ValueType.js +12 -15
  352. package/dist/lib/models/aiops/v4/config/VdiProvisionType.d.ts +19 -0
  353. package/dist/lib/models/aiops/v4/config/VdiProvisionType.js +101 -0
  354. package/dist/lib/models/aiops/v4/config/VdiUserType.d.ts +19 -0
  355. package/dist/lib/models/aiops/v4/config/VdiUserType.js +95 -0
  356. package/dist/lib/models/aiops/v4/config/VdiVendor.d.ts +19 -0
  357. package/dist/lib/models/aiops/v4/config/VdiVendor.js +83 -0
  358. package/dist/lib/models/aiops/v4/config/VdiWorkload.d.ts +101 -0
  359. package/dist/lib/models/aiops/v4/config/VdiWorkload.js +367 -0
  360. package/dist/lib/models/aiops/v4/config/Vendor.d.ts +19 -0
  361. package/dist/lib/models/aiops/v4/config/Vendor.js +125 -0
  362. package/dist/lib/models/aiops/v4/config/VmCategoryWorkload.d.ts +79 -0
  363. package/dist/lib/models/aiops/v4/config/VmCategoryWorkload.js +311 -0
  364. package/dist/lib/models/aiops/v4/config/VmWorkload.d.ts +74 -0
  365. package/dist/lib/models/aiops/v4/config/VmWorkload.js +294 -0
  366. package/dist/lib/models/aiops/v4/config/Workload.d.ts +105 -0
  367. package/dist/lib/models/aiops/v4/config/Workload.js +398 -0
  368. package/dist/lib/models/aiops/v4/config/XenOperatingSystem.d.ts +19 -0
  369. package/dist/lib/models/aiops/v4/config/XenOperatingSystem.js +83 -0
  370. package/dist/lib/models/aiops/v4/config/XenWorkload.d.ts +141 -0
  371. package/dist/lib/models/aiops/v4/config/XenWorkload.js +483 -0
  372. package/dist/lib/models/aiops/v4/config/XfitPolicy.d.ts +121 -0
  373. package/dist/lib/models/aiops/v4/config/XfitPolicy.js +541 -0
  374. package/dist/lib/models/aiops/v4/config/XfitPolicyProjection.d.ts +14 -0
  375. package/dist/lib/models/aiops/v4/config/XfitPolicyProjection.js +134 -0
  376. package/dist/lib/models/aiops/v4/error/AppMessage.d.ts +62 -55
  377. package/dist/lib/models/aiops/v4/error/AppMessage.js +303 -310
  378. package/dist/lib/models/aiops/v4/error/ErrorResponse.d.ts +23 -24
  379. package/dist/lib/models/aiops/v4/error/ErrorResponse.js +224 -223
  380. package/dist/lib/models/aiops/v4/error/SchemaValidationError.d.ts +52 -48
  381. package/dist/lib/models/aiops/v4/error/SchemaValidationError.js +287 -292
  382. package/dist/lib/models/aiops/v4/error/SchemaValidationErrorMessage.d.ts +37 -36
  383. package/dist/lib/models/aiops/v4/error/SchemaValidationErrorMessage.js +224 -228
  384. package/dist/lib/models/aiops/v4/stats/BoolList.d.ts +29 -27
  385. package/dist/lib/models/aiops/v4/stats/BoolList.js +182 -185
  386. package/dist/lib/models/aiops/v4/stats/BoolVal.d.ts +29 -27
  387. package/dist/lib/models/aiops/v4/stats/BoolVal.js +175 -178
  388. package/dist/lib/models/aiops/v4/stats/DoubleList.d.ts +29 -27
  389. package/dist/lib/models/aiops/v4/stats/DoubleList.js +182 -185
  390. package/dist/lib/models/aiops/v4/stats/DoubleVal.d.ts +29 -27
  391. package/dist/lib/models/aiops/v4/stats/DoubleVal.js +175 -178
  392. package/dist/lib/models/aiops/v4/stats/Entity.d.ts +25 -37
  393. package/dist/lib/models/aiops/v4/stats/Entity.js +269 -280
  394. package/dist/lib/models/aiops/v4/stats/EntityListApiResponse.d.ts +29 -30
  395. package/dist/lib/models/aiops/v4/stats/EntityListApiResponse.js +239 -265
  396. package/dist/lib/models/aiops/v4/stats/IntList.d.ts +29 -27
  397. package/dist/lib/models/aiops/v4/stats/IntList.js +182 -185
  398. package/dist/lib/models/aiops/v4/stats/IntVal.d.ts +29 -27
  399. package/dist/lib/models/aiops/v4/stats/IntVal.js +175 -178
  400. package/dist/lib/models/aiops/v4/stats/Metric.d.ts +29 -30
  401. package/dist/lib/models/aiops/v4/stats/Metric.js +197 -205
  402. package/dist/lib/models/aiops/v4/stats/Point.d.ts +34 -30
  403. package/dist/lib/models/aiops/v4/stats/Point.js +231 -246
  404. package/dist/lib/models/aiops/v4/stats/StrList.d.ts +29 -27
  405. package/dist/lib/models/aiops/v4/stats/StrList.js +182 -185
  406. package/dist/lib/models/aiops/v4/stats/StrVal.d.ts +29 -27
  407. package/dist/lib/models/aiops/v4/stats/StrVal.js +175 -178
  408. package/dist/lib/models/aiops/v4/stats/TimeSeries.d.ts +29 -30
  409. package/dist/lib/models/aiops/v4/stats/TimeSeries.js +207 -218
  410. package/dist/lib/models/common/v1/config/Flag.d.ts +30 -30
  411. package/dist/lib/models/common/v1/config/Flag.js +203 -202
  412. package/dist/lib/models/common/v1/config/IPv4Address.d.ts +70 -0
  413. package/dist/lib/models/common/v1/config/IPv4Address.js +288 -0
  414. package/dist/lib/models/common/v1/config/KVPair.d.ts +34 -31
  415. package/dist/lib/models/common/v1/config/KVPair.js +259 -260
  416. package/dist/lib/models/common/v1/config/KVStringPair.d.ts +58 -0
  417. package/dist/lib/models/common/v1/config/KVStringPair.js +277 -0
  418. package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +53 -0
  419. package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +236 -0
  420. package/dist/lib/models/common/v1/config/Message.d.ts +37 -42
  421. package/dist/lib/models/common/v1/config/Message.js +244 -259
  422. package/dist/lib/models/common/v1/config/MessageSeverity.js +18 -21
  423. package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +23 -26
  424. package/dist/lib/models/common/v1/config/TenantAwareModel.js +169 -179
  425. package/dist/lib/models/common/v1/response/ApiLink.d.ts +26 -30
  426. package/dist/lib/models/common/v1/response/ApiLink.js +197 -208
  427. package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +47 -50
  428. package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +313 -334
  429. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +15 -23
  430. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +195 -206
  431. package/dist/lib/models/common/v1/stats/DownSamplingOperator.js +24 -27
  432. package/dist/lib/models/prism/v4/config/TaskReference.d.ts +47 -0
  433. package/dist/lib/models/prism/v4/config/TaskReference.js +244 -0
  434. package/dist/lib/models/validation/ValidationError.js +27 -45
  435. package/dist/lib/models/validation/ValidationScopes.js +3 -4
  436. package/dist/lib/utils/ValidationUtils.js +40 -72
  437. package/package.json +6 -5
  438. package/dist/es/models/aiops/v4/stats/DeprecationModel.d.ts +0 -86
  439. package/dist/es/models/aiops/v4/stats/DeprecationModel.js +0 -358
  440. package/dist/es/models/aiops/v4/stats/EntityDescriptor.d.ts +0 -78
  441. package/dist/es/models/aiops/v4/stats/EntityDescriptor.js +0 -403
  442. package/dist/es/models/aiops/v4/stats/EntityDescriptorListApiResponse.d.ts +0 -59
  443. package/dist/es/models/aiops/v4/stats/EntityDescriptorListApiResponse.js +0 -336
  444. package/dist/es/models/aiops/v4/stats/EntityType.d.ts +0 -32
  445. package/dist/es/models/aiops/v4/stats/EntityType.js +0 -227
  446. package/dist/es/models/aiops/v4/stats/EntityTypeListApiResponse.d.ts +0 -59
  447. package/dist/es/models/aiops/v4/stats/EntityTypeListApiResponse.js +0 -336
  448. package/dist/es/models/aiops/v4/stats/MetricDescriptor.d.ts +0 -174
  449. package/dist/es/models/aiops/v4/stats/MetricDescriptor.js +0 -667
  450. package/dist/es/models/aiops/v4/stats/Source.d.ts +0 -32
  451. package/dist/es/models/aiops/v4/stats/Source.js +0 -227
  452. package/dist/es/models/aiops/v4/stats/SourceListApiResponse.d.ts +0 -59
  453. package/dist/es/models/aiops/v4/stats/SourceListApiResponse.js +0 -336
  454. package/dist/es/models/aiops/v4/stats/ValueRange.d.ts +0 -58
  455. package/dist/es/models/aiops/v4/stats/ValueRange.js +0 -276
  456. package/dist/lib/models/aiops/v4/stats/DeprecationModel.d.ts +0 -86
  457. package/dist/lib/models/aiops/v4/stats/DeprecationModel.js +0 -358
  458. package/dist/lib/models/aiops/v4/stats/EntityDescriptor.d.ts +0 -78
  459. package/dist/lib/models/aiops/v4/stats/EntityDescriptor.js +0 -403
  460. package/dist/lib/models/aiops/v4/stats/EntityDescriptorListApiResponse.d.ts +0 -59
  461. package/dist/lib/models/aiops/v4/stats/EntityDescriptorListApiResponse.js +0 -336
  462. package/dist/lib/models/aiops/v4/stats/EntityType.d.ts +0 -32
  463. package/dist/lib/models/aiops/v4/stats/EntityType.js +0 -227
  464. package/dist/lib/models/aiops/v4/stats/EntityTypeListApiResponse.d.ts +0 -59
  465. package/dist/lib/models/aiops/v4/stats/EntityTypeListApiResponse.js +0 -336
  466. package/dist/lib/models/aiops/v4/stats/MetricDescriptor.d.ts +0 -174
  467. package/dist/lib/models/aiops/v4/stats/MetricDescriptor.js +0 -667
  468. package/dist/lib/models/aiops/v4/stats/Source.d.ts +0 -32
  469. package/dist/lib/models/aiops/v4/stats/Source.js +0 -227
  470. package/dist/lib/models/aiops/v4/stats/SourceListApiResponse.d.ts +0 -59
  471. package/dist/lib/models/aiops/v4/stats/SourceListApiResponse.js +0 -336
  472. package/dist/lib/models/aiops/v4/stats/ValueRange.d.ts +0 -58
  473. package/dist/lib/models/aiops/v4/stats/ValueRange.js +0 -276
  474. /package/dist/es/models/aiops/v4/{stats → config}/ValueType.d.ts +0 -0
  475. /package/dist/lib/models/aiops/v4/{stats → config}/ValueType.d.ts +0 -0
@@ -1,11 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Aiops=t():(e.Ntnx=e.Ntnx||{},e.Ntnx.Aiops=t())}("undefined"==typeof self?this:self,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=67)}([function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(2);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(i=r.key,s=void 0,s=function(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===o(s)?s:String(s)),r)}var i,s}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,o=[{key:"constructFromObject",value:function(t,n){if(t){if(n=n||new e,t.hasOwnProperty("links")&&null!==t.links&&void 0!==t.links){var r,o=i(t.links);try{for(o.s();!(r=o.n()).done;){var s=r.value;if(s.hasOwnProperty("rel")&&s.hasOwnProperty("href"))switch(s.rel){case"first":n.linkFirst=s.href;break;case"prev":n.linkPrev=s.href;break;case"next":n.linkNext=s.href;break;case"last":n.linkLast=s.href}}}catch(e){o.e(e)}finally{o.f()}}t.hasOwnProperty("totalAvailableResults")&&(n.resultsTotal=t.totalAvailableResults)}return n}}],(n=[{key:"getFirstPage",value:function(){return this.isFirstPage()?Promise.reject("Cannot navigate to first page : already on first page"):null===this.linkFirst?Promise.reject("No link to first page provided in previous API response"):this._getLink(this.linkFirst)}},{key:"getPrevPage",value:function(){return this.isFirstPage()?Promise.reject("Cannot navigate to previous page : already on first page"):null===this.linkPrev?Promise.reject("No link to previous page provided in previous API response"):this._getLink(this.linkPrev)}},{key:"getNextPage",value:function(){return this.isLastPage()?Promise.reject("Cannot navigate to next page : already on last page"):null===this.linkNext?Promise.reject("No link to next page provided in previous API response"):this._getLink(this.linkNext)}},{key:"getLastPage",value:function(){return this.isLastPage()?Promise.reject("Cannot navigate to last page : already on last page"):null===this.linkLast?Promise.reject("No link to last page provided in previous API response"):this._getLink(this.linkLast)}},{key:"currentPage",value:function(){return null===this.page?0:this.page}},{key:"countPages",value:function(){return null===this.resultsPerPage||null===this.resultsTotal||0===this.resultsPerPage?1:Math.ceil(this.resultsTotal/this.resultsPerPage)}},{key:"isFirstPage",value:function(){return 0===this.currentPage()}},{key:"isLastPage",value:function(){return this.currentPage()===this.countPages()-1}},{key:"populatePaginationMetadata",value:function(e,t,n){this.apiClient=e,this.page=t,this.resultsPerPage=n}},{key:"_getLink",value:function(e){null===this.apiClient&&(this.apiClient=r.a.instance);var t=this.constructor;return this.apiClient.callApi(e,"GET",{},{},{},{},{},[],[],["application/json"],t)}}])&&a(t.prototype,n),o&&a(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();u.prototype.linkFirst=null,u.prototype.linkPrev=null,u.prototype.linkNext=null,u.prototype.linkLast=null,u.prototype.apiClient=null,u.prototype.page=null,u.prototype.resultsPerPage=null,u.prototype.resultsTotal=null},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}e.exports=r},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Q}));var r,o=n(10),i=n.n(o),s=n(0),a=n(68),u=n(30),l=n.n(u),c=n(31),f=n.n(c),p=n(14),h=n.n(p);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return(t=O(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,O(r.key),r)}}function O(e){var t=function(e,t){if("object"!==d(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===d(t)?t:String(t)}function j(e,t){$(e,t),t.add(e)}function k(e,t,n){$(e,t),t.set(e,n)}function $(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function P(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}function T(e,t){return function(e,t){if(t.get)return t.get.call(e);return t.value}(e,E(e,t,"get"))}function S(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,E(e,t,"set"),n),n}function E(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}l()(i.a);var F=new WeakMap,A=new WeakMap,_=new WeakMap,R=new WeakMap,D=new WeakMap,x=new WeakMap,I=new WeakMap,M=new WeakMap,N=new WeakSet,L=new WeakSet,C=new WeakSet,U=new WeakSet,V=new WeakSet,B=new WeakSet,q=new WeakSet,W=new WeakSet,J=new WeakSet,z=new WeakSet,H=new WeakSet,G=new WeakSet,Y=new WeakSet,K=new WeakSet,X=new WeakSet,Q=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),j(this,X),j(this,K),j(this,Y),j(this,G),j(this,H),j(this,z),j(this,J),j(this,W),j(this,q),j(this,B),j(this,V),j(this,U),j(this,C),j(this,L),j(this,N),k(this,F,{writable:!0,value:void 0}),k(this,A,{writable:!0,value:void 0}),k(this,_,{writable:!0,value:void 0}),k(this,R,{writable:!0,value:void 0}),k(this,D,{writable:!0,value:void 0}),k(this,x,{writable:!0,value:void 0}),k(this,I,{writable:!0,value:void 0}),k(this,M,{writable:!0,value:void 0}),S(this,M,Object.freeze({DEBUG:{key:"DEBUG",value:Symbol(0)},INFO:{key:"INFO",value:Symbol(1)},WARN:{key:"WARN",value:Symbol(2)},ERROR:{key:"ERROR",value:Symbol(3)}})),this.scheme="https",this.host="undefined"==typeof self?"localhost":self.location.hostname,this.port="undefined"==typeof self?"9440":self.location.port,this.authentications={basicAuthScheme:{type:"basic"}},this.defaultHeaders={},S(this,D,3e4),S(this,x,3e4),S(this,I,18e5),this.readTimeout=T(this,x),this.connectTimeout=T(this,D),this.cache=!0,S(this,A,null),this.maxRetryAttempts=5,this.retryInterval=3e3,"undefined"==typeof self&&(this.agent=new i.a.agent),this.requestAgent=null,this.debug=!1,S(this,_,null),this.username=null,this.password=null,S(this,R,!0),this.loggerFile=null}var t,n,r;return t=e,r=[{key:"getEtag",value:function(e){var t=null;return void 0!==e&&(e.hasOwnProperty("$reserved")&&void 0!==e.get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.get$Reserved(),"ETag")),null==t&&e.hasOwnProperty("data")&&e.getData().hasOwnProperty("$reserved")&&void 0!==e.getData().get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.getData().get$Reserved(),"ETag"))),t}},{key:"getValueForCaseInsensitiveKeyMatch",value:function(e,t){if(e&&t){var n=t.toLowerCase(),r=Object.keys(e).find((function(e){return e.toLowerCase()===n}));return r?e[r]:null}return null}},{key:"addEtagReferenceToHeader",value:function(e,t){if(null!=e&&e.hasOwnProperty("$reserved")&&e.$reserved.hasOwnProperty("ETag")){var n=e.$reserved.ETag;null!=n&&""!==n&&(t["If-Match"]=n)}}},{key:"parseDate",value:function(e){return new Date(e)}},{key:"parseQueryParam",value:function(e,t,n,r){var o=null;if(void 0!==t&&t.hasOwnProperty(n)&&(o=t[n]),null===o&&("string"==typeof e||e instanceof String)){var i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),s=e.match(new RegExp("".concat(i,"=([0-9]+)")));s&&(o=s[1])}return null===o&&(o=r),o}},{key:"convertToType",value:function(t,n){if(null==t)return t;switch(n){case"Boolean":return Boolean(t);case"Integer":return parseInt(t,10);case"Number":return parseFloat(t);case"String":return String(t);case"Date":return e.parseDate(String(t));case"Blob":return t;default:if(n===Object)return t;if("function"==typeof n)return n.constructFromObject(t);if(Array.isArray(n)){var r=n[0];return t.map((function(t){return e.convertToType(t,r)}))}if("object"===d(n)){var o,i;for(var s in n)if(n.hasOwnProperty(s)){o=s,i=n[s];break}var a={};for(var s in t)if(t.hasOwnProperty(s)){var u=e.convertToType(s,o),l=e.convertToType(t[s],i);a[u]=l}return a}return t}}},{key:"constructFromObject",value:function(t,n,r){if(Array.isArray(t))for(var o=0;o<t.length;o++)t.hasOwnProperty(o)&&(n[o]=e.convertToType(t[o],r));else for(var i in t)t.hasOwnProperty(i)&&(n[i]=e.convertToType(t[i],r))}}],(n=[{key:"verifySsl",get:function(){return T(this,R)},set:function(e){this.requestAgent=e?null:new f.a.Agent({rejectUnauthorized:!1}),S(this,R,e)}},{key:"loggerFile",set:function(e){null!=e&&(("string"==typeof e||e instanceof String)&&(e=h.a.createWriteStream(e,{flags:"a"})),S(this,_,new console.Console({stdout:e,stderr:e})))}},{key:"addDefaultHeader",value:function(e,t){"Authorization"===e&&S(this,A,null),this.defaultHeaders[e]=t}},{key:"paramToString",value:function(e){return null==e||null==e?"":e instanceof Date?e.toJSON():e.toString()}},{key:"buildUrl",value:function(e,t){var n=this;e.match(/^\//)||(e="/"+e),S(this,F,"undefined"==typeof self?this.scheme+":":self.location.protocol);var r="";""!==T(this,F)&&""!==this.host&&""!==this.port?r=T(this,F)+"//"+this.host+":"+this.port:"undefined"!=typeof self&&(r=self.origin);var o=r+e;return o=o.replace(/\{([\w-]+)\}/g,(function(e,r){var o;return o=t.hasOwnProperty(r)?n.paramToString(t[r]):e,encodeURIComponent(o)}))}},{key:"buildCollectionParam",value:function(e,t){if(null==e)return null;switch(t){case"csv":return e.map(this.paramToString).join(",");case"ssv":return e.map(this.paramToString).join(" ");case"tsv":return e.map(this.paramToString).join("\t");case"pipes":return e.map(this.paramToString).join("|");case"multi":return e.map(this.paramToString);default:throw new Error("Unknown collection format: "+t)}}},{key:"addEtagToReservedMap",value:function(e,t){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("etag")){var n=e.headers.etag;if(void 0!==t.getData())if(Array.isArray(t.getData())&&t.getData().length>0){var r,o=m(t.getData());try{for(o.s();!(r=o.n()).done;){var i=r.value;i.hasOwnProperty("$reserved")&&void 0!==i.get$Reserved()&&(i.get$Reserved().ETag=n)}}catch(e){o.e(e)}finally{o.f()}}else t.getData().hasOwnProperty("$reserved")&&void 0!==t.getData().get$Reserved()&&(t.getData().get$Reserved().ETag=n)}return t}},{key:"callApi",value:function(e,t,n,r,o,s,u,l,c,f,p){var h=this,d=this.buildUrl(e,n),y=i()(t,d);if(y.oldCallback=y.callback,y.callback=function(e,t){if(t&&t.status){var n=t.status;n>=400&&401!==n&&408!==n&&503!==n&&504!==n&&(this._maxRetries=0),401===t.status&&(this.unset("Cookie"),this._maxRetries=1)}this.oldCallback(e,t)},P(this,V,re).call(this,y,l),"GET"===t.toUpperCase()&&!1===this.cache&&(r._=(new Date).getTime()),y.query(P(this,U,ne).call(this,r)),y.set(this.defaultHeaders).set(P(this,U,ne).call(this,o)),!(null!==this.defaultHeaders["NTNX-Request-Id"]&&void 0!==this.defaultHeaders["NTNX-Request-Id"]||null!==o["NTNX-Request-Id"]&&void 0!==o["NTNX-Request-Id"])){var b=Object(a.a)();y.set(P(this,U,ne).call(this,{"NTNX-Request-Id":b}))}"undefined"!=typeof window&&void 0!==window.document||y.set(P(this,U,ne).call(this,{"User-Agent":"Nutanix-aiops-js-client/4.0.3-alpha.2"})),this.requestAgent&&y.agent(this.requestAgent);var m={};m.response=P(this,J,ae).call(this,this.connectTimeout,T(this,D)),m.deadline=P(this,J,ae).call(this,this.readTimeout,T(this,x)),y.timeout(m);var g=P(this,L,ee).call(this,c);if(g?"multipart/form-data"!=g&&y.type(g):y.header["Content-Type"]||y.type("application/json"),"application/x-www-form-urlencoded"===g)y.send(P(this,U,ne).call(this,s));else if("multipart/form-data"==g){var w=P(this,U,ne).call(this,s);for(var O in w)w.hasOwnProperty(O)&&(P(this,C,te).call(this,w[O])?y.attach(O,w[O]):y.field(O,w[O]))}else u&&y.send(u);var j=P(this,L,ee).call(this,f);return j&&y.accept(j),"Blob"===p?y.responseType("blob"):"String"===p&&y.responseType("string"),P(this,H,le).call(this,y),P(this,G,ce).call(this,T(this,M).INFO,null,"Request URL :",t,d),P(this,G,ce).call(this,T(this,M).DEBUG,P(this,X,he),"Request Headers :",void 0===y.header?"":y.header),P(this,G,ce).call(this,T(this,M).DEBUG,null,"Request Body :",void 0===y._data?"":y._data),new Promise((function(t,n){y.on("error",(function(e){P(h,G,ce).call(h,T(h,M).DEBUG,null,"Caught the following error :",e)})).retry(h.maxRetryAttempts,h.retryInterval,[]).then((function(o){try{P(h,G,ce).call(h,T(h,M).INFO,null,"Response Status :",o.status),P(h,G,ce).call(h,T(h,M).DEBUG,P(h,X,he),"Response Headers :",o.headers),P(h,z,ue).call(h,o||{});var i=P(h,q,ie).call(h,o,p);P(h,G,ce).call(h,T(h,M).DEBUG,null,"Response Body :",i),o.ok?(h.addEtagToReservedMap(o,i),P(h,W,se).call(h,i,e,r),t({data:i,response:o})):(P(h,G,ce).call(h,T(h,M).ERROR,null,i),n(v(v({},o.error),{},{data:i})))}catch(e){P(h,G,ce).call(h,T(h,M).DEBUG,null,"Caught error while processing response!"),P(h,G,ce).call(h,T(h,M).ERROR,null,e),e.data=P(h,B,oe).call(h,e),n(e)}})).catch((function(e){P(h,G,ce).call(h,T(h,M).DEBUG,null,"Caught error during the request!"),P(h,G,ce).call(h,T(h,M).ERROR,null,e),null!==e.response&&void 0!==e.response?e.data=P(h,q,ie).call(h,e.response,p):e.data=P(h,B,oe).call(h,e),n(e)}))}))}}])&&w(t.prototype,n),r&&w(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Z(e){return Boolean(null!=e&&e.match(/^application\/json(;.*)?$/i))}function ee(e){for(var t=0;t<e.length;t++)if(P(this,N,Z).call(this,e[t]))return e[t];return e[0]}function te(t){var r;try{r=n(14)}catch(e){}return!!(r&&r.ReadStream&&t instanceof r.ReadStream)||("function"==typeof e&&t instanceof e||("function"==typeof Blob&&t instanceof Blob||"function"==typeof File&&t instanceof File))}function ne(e){var t={};for(var n in e)if(e.hasOwnProperty(n)&&null!=e[n]&&null!=e[n]){var r=e[n];P(this,C,te).call(this,r)||Array.isArray(r)?t[n]=r:t[n]=this.paramToString(r)}return t}function re(e,t){var n=this;t.forEach((function(t){var r=n.authentications[t];switch(r.type){case"basic":r.username||r.password?e.auth(r.username||"",r.password||""):(n.username||n.password)&&e.auth(n.username||"",n.password||""),P(n,G,ce).call(n,T(n,M).DEBUG,null,"Basic Auth applied to request");break;case"apiKey":if(r.apiKey){var o={};r.apiKeyPrefix?o[r.name]=r.apiKeyPrefix+" "+r.apiKey:o[r.name]=r.apiKey,"header"===r.in?e.set(o):e.query(o)}P(n,G,ce).call(n,T(n,M).DEBUG,null,"apiKey applied to request");break;case"oauth2":r.accessToken&&e.set({Authorization:"Bearer "+r.accessToken}),P(n,G,ce).call(n,T(n,M).DEBUG,null,"oauth2 applied to request");break;default:throw P(n,G,ce).call(n,T(n,M).ERROR,null,"Unknown authentication type:",r.type),new Error("Unknown authentication type: "+r.type)}}))}function oe(e){var t={data:{},metadata:{}};t.data.status=e.status,t.data.message=e.message}function ie(e,t){if(null==e||null==t||204==e.status)return null;var n=e.body;return(null==n||"object"===d(n)&&void 0===n.length&&!Object.keys(n).length)&&(n=e.text),r.convertToType(n,t)}function se(e,t,n){if(e instanceof s.a){var r=parseInt(this.constructor.parseQueryParam(t,n,"$page","0"),10),o=parseInt(this.constructor.parseQueryParam(t,n,"$limit","50"),10);e.populatePaginationMetadata(this,r,o)}}function ae(e,t){return e<=0?e=t:e>T(this,I)&&(e=T(this,I)),e}function ue(e){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("set-cookie")){var t="",n=e.headers["set-cookie"];if(n.length>0){var r,o=m(n);try{for(o.s();!(r=o.n()).done;){var i=r.value;(i=i.split(";")[0]).includes("=")&&(i.trim(),t=t.concat(i).concat(";"))}}catch(e){o.e(e)}finally{o.f()}""!==t&&(t=t.substr(0,t.length-1))}S(this,A,t),P(this,G,ce).call(this,T(this,M).DEBUG,null,"Retained cookie :",t)}else S(this,A,null)}function le(e){null!=T(this,A)&&e.set(P(this,U,ne).call(this,{Cookie:T(this,A)}))}function ce(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if("object"===d(e)&&"key"in e&&"value"in e&&"symbol"===d(e.value)||(e=T(this,M).INFO),!P(this,Y,fe).call(this,e)){var i=(r=r.map((function(e){return"string"==typeof e?e:t?t(e):JSON.stringify(e)}))).join(" ");i=P(this,K,pe).call(this)+" "+e.key+" - "+i,void 0!==T(this,_)&&null!==T(this,_)&&"function"==typeof T(this,_).log?T(this,_).log(i):console.log(i)}}function fe(e){return!this.debug&&e===T(this,M).DEBUG}function pe(){var e=Date.now(),t=(new Date).getTimezoneOffset();return new Date(e-60*t*1e3).toISOString().slice(0,23)}function he(e){if("object"!==d(e))return e;var t="\n";return e&&Object.keys(e).forEach((function(n){t+=n+"=["+e[n]+"]\n"})),"\n"===t?e:t}r=Q,Q.instance=new Q}).call(this,n(4).Buffer)},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){"use strict";(function(e){
2
- /*!
3
- * The buffer module from node.js, for the browser.
4
- *
5
- * @author Feross Aboukhadijeh <http://feross.org>
6
- * @license MIT
7
- */
8
- var r=n(32),o=n(33),i=n(15);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return l(this,e,t,n)}function l(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=p(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|d(t,n),o=(e=a(e,r)).write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|h(t.length);return 0===(e=a(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?a(e,0):p(e,t);if("Buffer"===t.type&&i(t.data))return p(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(c(t),e=a(e,t<0?0:0|h(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t){var n=t.length<0?0:0|h(t.length);e=a(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function h(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function d(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(r)return U(e).length;t=(""+t).toLowerCase(),r=!0}}function y(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return F(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return S(this,t,n);case"latin1":case"binary":return E(this,t,n);case"base64":return P(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,o);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,r,o){var i,s=1,a=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var c=-1;for(i=n;i<a;i++)if(l(e,i)===l(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===u)return c*s}else-1!==c&&(i-=i-c),c=-1}else for(n+u>a&&(n=a-u),i=n;i>=0;i--){for(var f=!0,p=0;p<u;p++)if(l(e,i+p)!==l(t,p)){f=!1;break}if(f)return i}return-1}function g(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function w(e,t,n,r){return B(U(t,e.length-n),e,n,r)}function O(e,t,n,r){return B(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function j(e,t,n,r){return O(e,t,n,r)}function k(e,t,n,r){return B(V(t),e,n,r)}function $(e,t,n,r){return B(function(e,t){for(var n,r,o,i=[],s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function P(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,s,a,u,l=e[o],c=null,f=l>239?4:l>223?3:l>191?2:1;if(o+f<=n)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&l)<<6|63&i)>127&&(c=u);break;case 3:i=e[o+1],s=e[o+2],128==(192&i)&&128==(192&s)&&(u=(15&l)<<12|(63&i)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:i=e[o+1],s=e[o+2],a=e[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(u=(15&l)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),o+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return l(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return c(t),t<=0?a(e,t):void 0!==n?"string"==typeof r?a(e,t).fill(n,r):a(e,t).fill(n):a(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return f(null,e)},u.allocUnsafeSlow=function(e){return f(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?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(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var s=e[n];if(!u.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,o),o+=s.length}return r},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?T(this,0,e):y.apply(this,arguments)},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(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,n,r,o){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(i,s),l=this.slice(r,o),c=e.slice(t,n),f=0;f<a;++f)if(l[f]!==c[f]){i=l[f],s=c[f];break}return i<s?-1:s<i?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return b(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return b(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return g(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return O(this,e,t,n);case"latin1":case"binary":return j(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function S(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function E(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function F(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=C(e[i]);return o}function A(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function _(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,n,r,o,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function D(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function x(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function I(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(e,t,n,r,i){return i||I(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function N(e,t,n,r,i){return i||I(e,0,n,8),o.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((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),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=u.prototype;else{var o=t-e;n=new u(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||_(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||_(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},u.prototype.readUInt8=function(e,t){return t||_(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||_(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||_(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||_(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||_(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||_(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||_(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||_(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||_(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||_(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||_(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 t||_(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||_(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||_(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||_(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||_(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):x(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);R(this,e,t,n,o-1,-o)}var i=0,s=1,a=0;for(this[t]=255&e;++i<n&&(s*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);R(this,e,t,n,o-1,-o)}var i=n-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):x(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return M(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return M(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return N(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return N(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},u.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var s=u.isBuffer(e)?e:U(new u(e,r).toString()),a=s.length;for(i=0;i<n-t;++i)this[i+t]=s[i%a]}return this};var L=/[^+\/0-9A-Za-z-_]/g;function C(e){return e<16?"0"+e.toString(16):e.toString(16)}function U(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function V(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(L,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function B(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(1))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var u,l=[],c=!1,f=-1;function p(){c&&u&&(c=!1,u.length?l=u.concat(l):f=-1,l.length&&h())}function h(){if(!c){var e=a(p);c=!0;for(var t=l.length;t;){for(u=l,l=[];++f<t;)u&&u[f].run();f=-1,t=l.length}u=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function y(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new d(e,t)),1!==l.length||c||a(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(8),o=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=f;var i=Object.create(n(7));i.inherits=n(3);var s=n(20),a=n(24);i.inherits(f,s);for(var u=o(a.prototype),l=0;l<u.length;l++){var c=u[l];f.prototype[c]||(f.prototype[c]=a.prototype[c])}function f(e){if(!(this instanceof f))return new f(e);s.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",p)}function p(){this.allowHalfOpen||this._writableState.ended||r.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===o(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"===r(e)},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===o(e)},t.isObject=function(e){return"object"===r(e)&&null!==e},t.isDate=function(e){return"[object Date]"===o(e)},t.isError=function(e){return"[object Error]"===o(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===r(e)||void 0===e},t.isBuffer=n(4).Buffer.isBuffer},function(e,t,n){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,o){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,s,a=arguments.length;switch(a){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,r)}));case 4:return t.nextTick((function(){e.call(null,n,r,o)}));default:for(i=new Array(a-1),s=0;s<i.length;)i[s++]=arguments[s];return t.nextTick((function(){e.apply(null,i)}))}}}:e.exports=t}).call(this,n(5))},function(e,t,n){var r=n(4),o=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=s),i(o,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},s.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o;"undefined"!=typeof window?o=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),o=void 0):o=self;var i=n(34),s=n(35),a=n(36),u=n(16),l=n(37),c=n(39);function f(){}e.exports=function(e,n){return"function"==typeof n?new t.Request("GET",e).end(n):1===arguments.length?new t.Request("GET",e):new t.Request(e,n)};var p=t=e.exports;t.Request=g,p.getXHR=function(){if(o.XMLHttpRequest&&(!o.location||"file:"!==o.location.protocol||!o.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw new Error("Browser-only version of superagent could not find XHR")};var h="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function d(e){if(!u(e))return e;var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&y(t,n,e[n]);return t.join("&")}function y(e,t,n){if(void 0!==n)if(null!==n)if(Array.isArray(n))n.forEach((function(n){y(e,t,n)}));else if(u(n))for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&y(e,"".concat(t,"[").concat(r,"]"),n[r]);else e.push(encodeURI(t)+"="+encodeURIComponent(n));else e.push(encodeURI(t))}function v(e){for(var t,n,r={},o=e.split("&"),i=0,s=o.length;i<s;++i)-1===(n=(t=o[i]).indexOf("="))?r[decodeURIComponent(t)]="":r[decodeURIComponent(t.slice(0,n))]=decodeURIComponent(t.slice(n+1));return r}function b(e){return/[/+]json($|[^-\w])/.test(e)}function m(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){for(var t,n,r,o,i=e.split(/\r?\n/),s={},a=0,u=i.length;a<u;++a)-1!==(t=(n=i[a]).indexOf(":"))&&(r=n.slice(0,t).toLowerCase(),o=h(n.slice(t+1)),s[r]=o);return s}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&e._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function g(e,t){var n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",(function(){var e,t=null,r=null;try{r=new m(n)}catch(e){return(t=new Error("Parser is unable to parse the response")).parse=!0,t.original=e,n.xhr?(t.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,t.status=n.xhr.status?n.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),n.callback(t)}n.emit("response",r);try{n._isResponseOK(r)||(e=new Error(r.statusText||r.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=r,e.status=r.status,n.callback(e,r)):n.callback(null,r)}))}function w(e,t,n){var r=p("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}p.serializeObject=d,p.parseString=v,p.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},p.serialize={"application/x-www-form-urlencoded":d,"application/json":s},p.parse={"application/x-www-form-urlencoded":v,"application/json":JSON.parse},l(m.prototype),m.prototype._parseBody=function(e){var t=p.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&b(this.type)&&(t=p.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},m.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,r="cannot ".concat(t," ").concat(n," (").concat(this.status,")"),o=new Error(r);return o.status=this.status,o.method=t,o.url=n,o},p.Response=m,i(g.prototype),a(g.prototype),g.prototype.type=function(e){return this.set("Content-Type",p.types[e]||e),this},g.prototype.accept=function(e){return this.set("Accept",p.types[e]||e),this},g.prototype.auth=function(e,t,n){1===arguments.length&&(t=""),"object"===r(t)&&null!==t&&(n=t,t=""),n||(n={type:"function"==typeof btoa?"basic":"auto"});var o=function(e){if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(e,t,n,o)},g.prototype.query=function(e){return"string"!=typeof e&&(e=d(e)),e&&this._query.push(e),this},g.prototype.attach=function(e,t,n){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},g.prototype._getFormData=function(){return this._formData||(this._formData=new o.FormData),this._formData},g.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},g.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},g.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},g.prototype.ca=g.prototype.agent,g.prototype.buffer=g.prototype.ca,g.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},g.prototype.pipe=g.prototype.write,g.prototype._isHost=function(e){return e&&"object"===r(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},g.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||f,this._finalizeQueryString(),this._end()},g.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},g.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=p.getXHR();var t=this.xhr,n=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===n){var r;try{r=t.status}catch(e){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var r=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",r.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",r.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var o=this._header["content-type"],i=this._serializer||p.serialize[o?o.split(";")[0]:""];!i&&b(o)&&(i=p.serialize["application/json"]),i&&(n=i(n))}for(var s in this.header)null!==this.header[s]&&Object.prototype.hasOwnProperty.call(this.header,s)&&t.setRequestHeader(s,this.header[s]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},p.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(e){c.prototype[e.toLowerCase()]=function(t,n){var r=new p.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}})),c.prototype.del=c.prototype.delete,p.get=function(e,t,n){var r=p("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},p.head=function(e,t,n){var r=p("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},p.options=function(e,t,n){var r=p("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.del=w,p.delete=w,p.patch=function(e,t,n){var r=p("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.post=function(e,t,n){var r=p("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.put=function(e,t,n){var r=p("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=SyntaxError,i=Function,s=TypeError,a=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var l=function(){throw new s},c=u?function(){try{return l}catch(e){try{return u(arguments,"callee").get}catch(e){return l}}}():l,f=n(57)(),p=n(59)(),h=Object.getPrototypeOf||(p?function(e){return e.__proto__}:null),d={},y="undefined"!=typeof Uint8Array&&h?h(Uint8Array):void 0,v={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":f&&h?h([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?void 0:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?void 0:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f&&h?h(h([][Symbol.iterator]())):void 0,"%JSON%":"object"===("undefined"==typeof JSON?"undefined":r(JSON))?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f&&h?h((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f&&h?h((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f&&h?h(""[Symbol.iterator]()):void 0,"%Symbol%":f?Symbol:void 0,"%SyntaxError%":o,"%ThrowTypeError%":c,"%TypedArray%":y,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet};if(h)try{null.error}catch(e){var b=h(h(e));v["%Error.prototype%"]=b}var m={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=n(12),w=n(61),O=g.call(Function.call,Array.prototype.concat),j=g.call(Function.apply,Array.prototype.splice),k=g.call(Function.call,String.prototype.replace),$=g.call(Function.call,String.prototype.slice),P=g.call(Function.call,RegExp.prototype.exec),T=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,S=/\\(\\)?/g,E=function(e){var t=$(e,0,1),n=$(e,-1);if("%"===t&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return k(e,T,(function(e,t,n,o){r[r.length]=n?k(o,S,"$1"):t||e})),r},F=function(e,t){var n,r=e;if(w(m,r)&&(r="%"+(n=m[r])[0]+"%"),w(v,r)){var i=v[r];if(i===d&&(i=function e(t){var n;if("%AsyncFunction%"===t)n=a("async function () {}");else if("%GeneratorFunction%"===t)n=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=a("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&h&&(n=h(o.prototype))}return v[t]=n,n}(r)),void 0===i&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new s('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=E(e),r=n.length>0?n[0]:"",i=F("%"+r+"%",t),a=i.name,l=i.value,c=!1,f=i.alias;f&&(r=f[0],j(n,O([0,1],f)));for(var p=1,h=!0;p<n.length;p+=1){var d=n[p],y=$(d,0,1),b=$(d,-1);if(('"'===y||"'"===y||"`"===y||'"'===b||"'"===b||"`"===b)&&y!==b)throw new o("property names with quotes must have matching quotes");if("constructor"!==d&&h||(c=!0),w(v,a="%"+(r+="."+d)+"%"))l=v[a];else if(null!=l){if(!(d in l)){if(!t)throw new s("base intrinsic for "+e+" exists, but the property is not available.");return}if(u&&p+1>=n.length){var m=u(l,d);l=(h=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:l[d]}else h=w(l,d),l=l[d];h&&!c&&(v[a]=l)}}return l}},function(e,t,n){"use strict";var r=n(60);e.exports=Function.prototype.bind||r},function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,i="RFC1738",s="RFC3986";e.exports={default:s,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return String(e)}},RFC1738:i,RFC3986:s}},function(e,t){},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return null!==e&&"object"===r(e)}},function(e,t,n){(function(e){t.fetch=a(e.fetch)&&a(e.ReadableStream),t.writableStream=a(e.WritableStream),t.abortController=a(e.AbortController),t.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),t.blobConstructor=!0}catch(e){}var n;function r(){if(void 0!==n)return n;if(e.XMLHttpRequest){n=new e.XMLHttpRequest;try{n.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){n=null}}else n=null;return n}function o(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}var i=void 0!==e.ArrayBuffer,s=i&&a(e.ArrayBuffer.prototype.slice);function a(e){return"function"==typeof e}t.arraybuffer=t.fetch||i&&o("arraybuffer"),t.msstream=!t.fetch&&s&&o("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&i&&o("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!r()&&a(r().overrideMimeType),t.vbArray=a(e.VBArray),n=null}).call(this,n(1))},function(e,t,n){(function(e,r,o){var i=n(17),s=n(3),a=n(19),u=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},l=t.IncomingMessage=function(t,n,s,u){var l=this;if(a.Readable.call(l),l._mode=s,l.headers={},l.rawHeaders=[],l.trailers={},l.rawTrailers=[],l.on("end",(function(){e.nextTick((function(){l.emit("close")}))})),"fetch"===s){if(l._fetchResponse=n,l.url=n.url,l.statusCode=n.status,l.statusMessage=n.statusText,n.headers.forEach((function(e,t){l.headers[t.toLowerCase()]=e,l.rawHeaders.push(t,e)})),i.writableStream){var c=new WritableStream({write:function(e){return new Promise((function(t,n){l._destroyed?n():l.push(new o(e))?t():l._resumeFetch=t}))},close:function(){r.clearTimeout(u),l._destroyed||l.push(null)},abort:function(e){l._destroyed||l.emit("error",e)}});try{return void n.body.pipeTo(c).catch((function(e){r.clearTimeout(u),l._destroyed||l.emit("error",e)}))}catch(e){}}var f=n.body.getReader();!function e(){f.read().then((function(t){if(!l._destroyed){if(t.done)return r.clearTimeout(u),void l.push(null);l.push(new o(t.value)),e()}})).catch((function(e){r.clearTimeout(u),l._destroyed||l.emit("error",e)}))}()}else{if(l._xhr=t,l._pos=0,l.url=t.responseURL,l.statusCode=t.status,l.statusMessage=t.statusText,t.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var n=t[1].toLowerCase();"set-cookie"===n?(void 0===l.headers[n]&&(l.headers[n]=[]),l.headers[n].push(t[2])):void 0!==l.headers[n]?l.headers[n]+=", "+t[2]:l.headers[n]=t[2],l.rawHeaders.push(t[1],t[2])}})),l._charset="x-user-defined",!i.overrideMimeType){var p=l.rawHeaders["mime-type"];if(p){var h=p.match(/;\s*charset=([^;])(;|$)/);h&&(l._charset=h[1].toLowerCase())}l._charset||(l._charset="utf-8")}}};s(l,a.Readable),l.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},l.prototype._onXHRProgress=function(){var e=this,t=e._xhr,n=null;switch(e._mode){case"text:vbarray":if(t.readyState!==u.DONE)break;try{n=new r.VBArray(t.responseBody).toArray()}catch(e){}if(null!==n){e.push(new o(n));break}case"text":try{n=t.responseText}catch(t){e._mode="text:vbarray";break}if(n.length>e._pos){var i=n.substr(e._pos);if("x-user-defined"===e._charset){for(var s=new o(i.length),a=0;a<i.length;a++)s[a]=255&i.charCodeAt(a);e.push(s)}else e.push(i,e._charset);e._pos=n.length}break;case"arraybuffer":if(t.readyState!==u.DONE||!t.response)break;n=t.response,e.push(new o(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=t.response,t.readyState!==u.LOADING||!n)break;e.push(new o(new Uint8Array(n)));break;case"ms-stream":if(n=t.response,t.readyState!==u.LOADING)break;var l=new r.MSStreamReader;l.onprogress=function(){l.result.byteLength>e._pos&&(e.push(new o(new Uint8Array(l.result.slice(e._pos)))),e._pos=l.result.byteLength)},l.onload=function(){e.push(null)},l.readAsArrayBuffer(n)}e._xhr.readyState===u.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,n(5),n(1),n(4).Buffer)},function(e,t,n){(t=e.exports=n(20)).Stream=t,t.Readable=t,t.Writable=n(24),t.Duplex=n(6),t.Transform=n(26),t.PassThrough=n(48)},function(e,t,n){"use strict";(function(t,r){var o=n(8);e.exports=g;var i,s=n(15);g.ReadableState=m;n(21).EventEmitter;var a=function(e,t){return e.listeners(t).length},u=n(22),l=n(9).Buffer,c=(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var f=Object.create(n(7));f.inherits=n(3);var p=n(42),h=void 0;h=p&&p.debuglog?p.debuglog("stream"):function(){};var d,y=n(43),v=n(23);f.inherits(g,u);var b=["error","close","destroy","pause","resume"];function m(e,t){e=e||{};var r=t instanceof(i=i||n(6));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,s=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||(d=n(25).StringDecoder),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function g(e){if(i=i||n(6),!(this instanceof g))return new g(e);this._readableState=new m(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function w(e,t,n,r,o){var i,s=e._readableState;null===t?(s.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,k(e)}(e,s)):(o||(i=function(e,t){var n;r=t,l.isBuffer(r)||r instanceof c||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(s,t)),i?e.emit("error",i):s.objectMode||t&&t.length>0?("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),r?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):O(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?O(e,s,t,!1):P(e,s)):O(e,s,t,!1))):r||(s.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(s)}function O(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&k(e)),P(e,t)}Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),g.prototype.destroy=v.destroy,g.prototype._undestroy=v.undestroy,g.prototype._destroy=function(e,t){this.push(null),t(e)},g.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=l.from(e,t),t=""),n=!0),w(this,e,t,!1,n)},g.prototype.unshift=function(e){return w(this,e,null,!0,!1)},g.prototype.isPaused=function(){return!1===this._readableState.flowing},g.prototype.setEncoding=function(e){return d||(d=n(25).StringDecoder),this._readableState.decoder=new d(e),this._readableState.encoding=e,this};function j(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function k(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?o.nextTick($,e):$(e))}function $(e){h("emit readable"),e.emit("readable"),F(e)}function P(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(T,e,t))}function T(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(h("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function S(e){h("readable nexttick read 0"),e.read(0)}function E(e,t){t.reading||(h("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),F(e),t.flowing&&!t.reading&&e.read(0)}function F(e){var t=e._readableState;for(h("flow",t.flowing);t.flowing&&null!==e.read(););}function A(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,o=n.data;e-=o.length;for(;n=n.next;){var i=n.data,s=e>i.length?i.length:e;if(s===i.length?o+=i:o+=i.slice(0,e),0===(e-=s)){s===i.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(s));break}++r}return t.length-=r,o}(e,t):function(e,t){var n=l.allocUnsafe(e),r=t.head,o=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var i=r.data,s=e>i.length?i.length:e;if(i.copy(n,n.length-e,0,s),0===(e-=s)){s===i.length?(++o,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(s));break}++o}return t.length-=o,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function _(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,o.nextTick(R,t,e))}function R(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function D(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}g.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?_(this):k(this),null;if(0===(e=j(e,t))&&t.ended)return 0===t.length&&_(this),null;var r,o=t.needReadable;return h("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&h("length less than watermark",o=!0),t.ended||t.reading?h("reading or ended",o=!1):o&&(h("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=j(n,t))),null===(r=e>0?A(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&_(this)),null!==r&&this.emit("data",r),r},g.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},g.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,h("pipe count=%d opts=%j",i.pipesCount,t);var u=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?c:g;function l(t,r){h("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,h("cleanup"),e.removeListener("close",b),e.removeListener("finish",m),e.removeListener("drain",f),e.removeListener("error",v),e.removeListener("unpipe",l),n.removeListener("end",c),n.removeListener("end",g),n.removeListener("data",y),p=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function c(){h("onend"),e.end()}i.endEmitted?o.nextTick(u):n.once("end",u),e.on("unpipe",l);var f=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,F(e))}}(n);e.on("drain",f);var p=!1;var d=!1;function y(t){h("ondata"),d=!1,!1!==e.write(t)||d||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==D(i.pipes,e))&&!p&&(h("false write response, pause",i.awaitDrain),i.awaitDrain++,d=!0),n.pause())}function v(t){h("onerror",t),g(),e.removeListener("error",v),0===a(e,"error")&&e.emit("error",t)}function b(){e.removeListener("finish",m),g()}function m(){h("onfinish"),e.removeListener("close",b),g()}function g(){h("unpipe"),n.unpipe(e)}return n.on("data",y),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?s(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",v),e.once("close",b),e.once("finish",m),e.emit("pipe",n),i.flowing||(h("pipe resume"),n.resume()),e},g.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)r[i].emit("unpipe",this,{hasUnpiped:!1});return this}var s=D(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},g.prototype.on=function(e,t){var n=u.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&k(this):o.nextTick(S,this))}return n},g.prototype.addListener=g.prototype.on,g.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,o.nextTick(E,e,t))}(this,e)),this},g.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this},g.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var o in e.on("end",(function(){if(h("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(o){(h("wrapped data"),n.decoder&&(o=n.decoder.write(o)),n.objectMode&&null==o)||(n.objectMode||o&&o.length)&&(t.push(o)||(r=!0,e.pause()))})),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var i=0;i<b.length;i++)e.on(b[i],this.emit.bind(this,b[i]));return this._read=function(t){h("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(g.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),g._fromList=A}).call(this,n(1),n(5))},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o,i="object"===("undefined"==typeof Reflect?"undefined":r(Reflect))?Reflect:null,s=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};o=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function u(){u.init.call(this)}e.exports=u,e.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}m(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&m(e,"error",t,n)}(e,o,{once:!0})}))},u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var l=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+r(e))}function f(e){return void 0===e._maxListeners?u.defaultMaxListeners:e._maxListeners}function p(e,t,n,r){var o,i,s,a;if(c(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),s=i[t]),void 0===s)s=i[t]=n,++e._eventsCount;else if("function"==typeof s?s=i[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(o=f(e))>0&&s.length>o&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,a=u,console&&console.warn&&console.warn(a)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=h.bind(r);return o.listener=n,r.wrapFn=o,o}function y(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):b(o,o.length)}function v(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function b(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function m(e,t,n,o){if("function"==typeof e.on)o.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+r(e));e.addEventListener(t,(function r(i){o.once&&e.removeEventListener(t,r),n(i)}))}}Object.defineProperty(u,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),u.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},u.prototype.getMaxListeners=function(){return f(this)},u.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)s(u,this,t);else{var l=u.length,c=b(u,l);for(n=0;n<l;++n)s(c[n],this,t)}return!0},u.prototype.addListener=function(e,t){return p(this,e,t,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(e,t){return p(this,e,t,!0)},u.prototype.once=function(e,t){return c(t),this.on(e,d(this,e,t)),this},u.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,d(this,e,t)),this},u.prototype.removeListener=function(e,t){var n,r,o,i,s;if(c(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){s=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},u.prototype.listeners=function(e){return y(this,e,!0)},u.prototype.rawListeners=function(e){return y(this,e,!1)},u.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},u.prototype.listenerCount=v,u.prototype.eventNames=function(){return this._eventsCount>0?o(this._events):[]}},function(e,t,n){e.exports=n(21).EventEmitter},function(e,t,n){"use strict";var r=n(8);function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,i=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return i||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(o,this,e)):r.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,r.nextTick(o,n,e)):r.nextTick(o,n,e):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){"use strict";(function(t,r,o){var i=n(8);function s(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var o=r.callback;t.pendingcb--,o(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=m;var a,u=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:i.nextTick;m.WritableState=b;var l=Object.create(n(7));l.inherits=n(3);var c={deprecate:n(47)},f=n(22),p=n(9).Buffer,h=(void 0!==o?o:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var d,y=n(23);function v(){}function b(e,t){a=a||n(6),e=e||{};var r=t instanceof a;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var o=e.highWaterMark,l=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(l||0===l)?l:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===e.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,o){--t.pendingcb,n?(i.nextTick(o,r),i.nextTick($,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(o(r),e._writableState.errorEmitted=!0,e.emit("error",r),$(e,t))}(e,n,r,t,o);else{var s=j(n);s||n.corked||n.bufferProcessing||!n.bufferedRequest||O(e,n),r?u(w,e,n,s,o):w(e,n,s,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function m(e){if(a=a||n(6),!(d.call(m,this)||this instanceof a))return new m(e);this._writableState=new b(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),f.call(this)}function g(e,t,n,r,o,i,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,n?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function w(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),$(e,t)}function O(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),i=t.corkedRequestsFree;i.entry=n;for(var a=0,u=!0;n;)o[a]=n,n.isBuf||(u=!1),n=n.next,a+=1;o.allBuffers=u,g(e,t,!0,t.length,o,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new s(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,c=n.encoding,f=n.callback;if(g(e,t,!1,t.objectMode?1:l.length,l,c,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function j(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function k(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),$(e,t)}))}function $(e,t){var n=j(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(k,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}l.inherits(m,f),b.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(b.prototype,"buffer",{get:c.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(m,Symbol.hasInstance,{value:function(e){return!!d.call(this,e)||this===m&&(e&&e._writableState instanceof b)}})):d=function(e){return e instanceof this},m.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},m.prototype.write=function(e,t,n){var r,o=this._writableState,s=!1,a=!o.objectMode&&(r=e,p.isBuffer(r)||r instanceof h);return a&&!p.isBuffer(e)&&(e=function(e){return p.from(e)}(e)),"function"==typeof t&&(n=t,t=null),a?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=v),o.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),i.nextTick(t,n)}(this,n):(a||function(e,t,n,r){var o=!0,s=!1;return null===n?s=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),i.nextTick(r,s),o=!1),o}(this,o,e,n))&&(o.pendingcb++,s=function(e,t,n,r,o,i){if(!n){var s=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=p.from(t,n));return t}(t,r,o);r!==s&&(n=!0,o="buffer",r=s)}var a=t.objectMode?1:r.length;t.length+=a;var u=t.length<t.highWaterMark;u||(t.needDrain=!0);if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:o,isBuf:n,callback:i,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else g(e,t,!1,a,r,o,i);return u}(this,o,a,e,t,n)),s},m.prototype.cork=function(){this._writableState.corked++},m.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||O(this,e))},m.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},m.prototype._writev=null,m.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,$(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),m.prototype.destroy=y.destroy,m.prototype._undestroy=y.undestroy,m.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(5),n(45).setImmediate,n(1))},function(e,t,n){"use strict";var r=n(9).Buffer,o=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=l,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=c,this.end=f,t=3;break;default:return this.write=p,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},i.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},i.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var o=s(t[r]);if(o>=0)return o>0&&(e.lastNeed=o-1),o;if(--r<n||-2===o)return 0;if((o=s(t[r]))>=0)return o>0&&(e.lastNeed=o-2),o;if(--r<n||-2===o)return 0;if((o=s(t[r]))>=0)return o>0&&(2===o?o=0:e.lastNeed=o-3),o;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";e.exports=s;var r=n(6),o=Object.create(n(7));function i(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function s(e){if(!(this instanceof s))return new s(e);r.call(this,e),this._transformState={afterTransform:i.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",a)}function a(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){u(e,t,n)})):u(this,null,null)}function u(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}o.inherits=n(3),o.inherits(s,r),s.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},s.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},s.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},s.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},s.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(52);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var s=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(l),f=["%","/","?",";","#"].concat(c),p=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,y={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},m=n(54);function g(e,t,n){if(e&&"object"===r(e)&&e instanceof i)return e;var o=new i;return o.parse(e,t,n),o}i.prototype.parse=function(e,t,n){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+r(e));var i=e.indexOf("?"),a=-1!==i&&i<e.indexOf("#")?"?":"#",l=e.split(a);l[0]=l[0].replace(/\\/g,"/");var g=e=l.join(a);if(g=g.trim(),!n&&1===e.split("#").length){var w=u.exec(g);if(w)return this.path=g,this.href=g,this.pathname=w[1],w[2]?(this.search=w[2],this.query=t?m.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var O=s.exec(g);if(O){var j=(O=O[0]).toLowerCase();this.protocol=j,g=g.substr(O.length)}if(n||O||g.match(/^\/\/[^@/]+@[^@/]+/)){var k="//"===g.substr(0,2);!k||O&&v[O]||(g=g.substr(2),this.slashes=!0)}if(!v[O]&&(k||O&&!b[O])){for(var $,P,T=-1,S=0;S<p.length;S++){-1!==(E=g.indexOf(p[S]))&&(-1===T||E<T)&&(T=E)}-1!==(P=-1===T?g.lastIndexOf("@"):g.lastIndexOf("@",T))&&($=g.slice(0,P),g=g.slice(P+1),this.auth=decodeURIComponent($)),T=-1;for(S=0;S<f.length;S++){var E;-1!==(E=g.indexOf(f[S]))&&(-1===T||E<T)&&(T=E)}-1===T&&(T=g.length),this.host=g.slice(0,T),g=g.slice(T),this.parseHost(),this.hostname=this.hostname||"";var F="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!F)for(var A=this.hostname.split(/\./),_=(S=0,A.length);S<_;S++){var R=A[S];if(R&&!R.match(h)){for(var D="",x=0,I=R.length;x<I;x++)R.charCodeAt(x)>127?D+="x":D+=R[x];if(!D.match(h)){var M=A.slice(0,S),N=A.slice(S+1),L=R.match(d);L&&(M.push(L[1]),N.unshift(L[2])),N.length&&(g="/"+N.join(".")+g),this.hostname=M.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),F||(this.hostname=o.toASCII(this.hostname));var C=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+C,this.href+=this.host,F&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==g[0]&&(g="/"+g))}if(!y[j])for(S=0,_=c.length;S<_;S++){var V=c[S];if(-1!==g.indexOf(V)){var B=encodeURIComponent(V);B===V&&(B=escape(V)),g=g.split(V).join(B)}}var q=g.indexOf("#");-1!==q&&(this.hash=g.substr(q),g=g.slice(0,q));var W=g.indexOf("?");if(-1!==W?(this.search=g.substr(W),this.query=g.substr(W+1),t&&(this.query=m.parse(this.query)),g=g.slice(0,W)):t&&(this.search="",this.query={}),g&&(this.pathname=g),b[j]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){C=this.pathname||"";var J=this.search||"";this.path=C+J}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",o=this.hash||"",i=!1,s="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&"object"===r(this.query)&&Object.keys(this.query).length&&(s=m.stringify(this.query));var a=this.search||s&&"?"+s||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||b[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),o&&"#"!==o.charAt(0)&&(o="#"+o),a&&"?"!==a.charAt(0)&&(a="?"+a),t+i+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(a=a.replace("#","%23"))+o},i.prototype.resolve=function(e){return this.resolveObject(g(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if("string"==typeof e){var t=new i;t.parse(e,!1,!0),e=t}for(var n=new i,r=Object.keys(this),o=0;o<r.length;o++){var s=r[o];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),u=0;u<a.length;u++){var l=a[u];"protocol"!==l&&(n[l]=e[l])}return b[n.protocol]&&n.hostname&&!n.pathname&&(n.pathname="/",n.path=n.pathname),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!b[e.protocol]){for(var c=Object.keys(e),f=0;f<c.length;f++){var p=c[f];n[p]=e[p]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||v[e.protocol])n.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),n.pathname=h.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var d=n.pathname||"",y=n.search||"";n.path=d+y}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var m=n.pathname&&"/"===n.pathname.charAt(0),g=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=g||m||n.host&&e.pathname,O=w,j=n.pathname&&n.pathname.split("/")||[],k=(h=e.pathname&&e.pathname.split("/")||[],n.protocol&&!b[n.protocol]);if(k&&(n.hostname="",n.port=null,n.host&&(""===j[0]?j[0]=n.host:j.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),w=w&&(""===h[0]||""===j[0])),g)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,j=h;else if(h.length)j||(j=[]),j.pop(),j=j.concat(h),n.search=e.search,n.query=e.query;else if(null!=e.search){if(k)n.host=j.shift(),n.hostname=n.host,(E=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=E.shift(),n.hostname=E.shift(),n.host=n.hostname);return n.search=e.search,n.query=e.query,null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!j.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var $=j.slice(-1)[0],P=(n.host||e.host||j.length>1)&&("."===$||".."===$)||""===$,T=0,S=j.length;S>=0;S--)"."===($=j[S])?j.splice(S,1):".."===$?(j.splice(S,1),T++):T&&(j.splice(S,1),T--);if(!w&&!O)for(;T--;T)j.unshift("..");!w||""===j[0]||j[0]&&"/"===j[0].charAt(0)||j.unshift(""),P&&"/"!==j.join("/").substr(-1)&&j.push("");var E,F=""===j[0]||j[0]&&"/"===j[0].charAt(0);k&&(n.hostname=F?"":j.length?j.shift():"",n.host=n.hostname,(E=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=E.shift(),n.hostname=E.shift(),n.host=n.hostname));return(w=w||n.host&&j.length)&&!F&&j.unshift(""),j.length>0?n.pathname=j.join("/"):(n.pathname=null,n.path=null),null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.parse=g,t.resolve=function(e,t){return g(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?g(e,!1,!0).resolveObject(t):t},t.format=function(e){return"string"==typeof e&&(e=g(e)),e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(13),i=Object.prototype.hasOwnProperty,s=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),u=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:u,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],o=0;o<t.length;++o)for(var i=t[o],a=i.obj[i.prop],u=Object.keys(a),l=0;l<u.length;++l){var c=u[l],f=a[c];"object"===r(f)&&null!==f&&-1===n.indexOf(f)&&(t.push({obj:a,prop:c}),n.push(f))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(s(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,i,s){if(0===e.length)return e;var u=e;if("symbol"===r(e)?u=Symbol.prototype.toString.call(e):"string"!=typeof e&&(u=String(e)),"iso-8859-1"===n)return escape(u).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",c=0;c<u.length;++c){var f=u.charCodeAt(c);45===f||46===f||95===f||126===f||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||s===o.RFC1738&&(40===f||41===f)?l+=u.charAt(c):f<128?l+=a[f]:f<2048?l+=a[192|f>>6]+a[128|63&f]:f<55296||f>=57344?l+=a[224|f>>12]+a[128|f>>6&63]+a[128|63&f]:(c+=1,f=65536+((1023&f)<<10|1023&u.charCodeAt(c)),l+=a[240|f>>18]+a[128|f>>12&63]+a[128|f>>6&63]+a[128|63&f])}return l},isBuffer:function(e){return!(!e||"object"!==r(e))&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(s(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,o){if(!n)return t;if("object"!==r(n)){if(s(t))t.push(n);else{if(!t||"object"!==r(t))return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==r(t))return[t].concat(n);var a=t;return s(t)&&!s(n)&&(a=u(t,o)),s(t)&&s(n)?(n.forEach((function(n,s){if(i.call(t,s)){var a=t[s];a&&"object"===r(a)&&n&&"object"===r(n)?t[s]=e(a,n,o):t.push(n)}else t[s]=n})),t):Object.keys(n).reduce((function(t,r){var s=n[r];return i.call(t,r)?t[r]=e(t[r],s,o):t[r]=s,t}),a)}}},function(e,t){function n(e,t){if(this._maxRetries&&this._retries++<this._maxRetries&&function(e,t,n){if(e&&e.code&&~["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT","ENOTFOUND","ECONNREFUSED"].indexOf(e.code))return!0;if(t&&t.status){var r=t.status;if(r>=500)return!0;if((r>=400||r<200)&&-1===n.indexOf(r))return!0}return!(!e||!("timeout"in e)||"ECONNABORTED"!==e.code)||e&&"crossDomain"in e}(e,t,this._allowedStatuses)){var n;n=this._retries?this._retryDelays[this._retries-1]:0;var r=this;return setTimeout((function(){return r._retry()}),n)}var o=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),o(e,t)}function r(e,t,n){0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),"number"==typeof t&&(t=[t]);var r=t.length,o=e-r;if(0!==o){if(o<0)throw new Error("Cannot have more delays than retries");for(var i=t[r-1],s=0;s<o+1;s++)t.push(i)}return this._maxRetries=e,this._retries=0,this._retryDelays=t||[0],this._allowedStatuses=n||[],this}e.exports=function(e){var t=e.Request;return t.prototype.oldRetry=t.prototype.retry,t.prototype.retry=r,t.prototype.callback=n,e}},function(e,t,n){var r=n(40),o=n(27),i=e.exports;for(var s in r)r.hasOwnProperty(s)&&(i[s]=r[s]);function a(e){if("string"==typeof e&&(e=o.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}i.request=function(e,t){return e=a(e),r.request.call(this,e,t)},i.get=function(e,t){return e=a(e),r.get.call(this,e,t)}},function(e,t,n){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=l(e),s=r[0],a=r[1],u=new i(function(e,t,n){return 3*(t+n)/4-n}(0,s,a)),c=0,f=a>0?s-4:s;for(n=0;n<f;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;2===a&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,u[c++]=255&t);1===a&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t);return u},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],s=0,a=n-o;s<a;s+=16383)i.push(c(e,s,s+16383>a?a:s+16383));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a<u;++a)r[a]=s[a],o[s.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,n){for(var o,i,s=[],a=t;a<n;a+=3)o=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return s.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){
9
- /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
10
- t.read=function(e,t,n,r,o){var i,s,a=8*o-r-1,u=(1<<a)-1,l=u>>1,c=-7,f=n?o-1:0,p=n?-1:1,h=e[t+f];for(f+=p,i=h&(1<<-c)-1,h>>=-c,c+=a;c>0;i=256*i+e[t+f],f+=p,c-=8);for(s=i&(1<<-c)-1,i>>=-c,c+=r;c>0;s=256*s+e[t+f],f+=p,c-=8);if(0===i)i=1-l;else{if(i===u)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),i-=l}return(h?-1:1)*s*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var s,a,u,l=8*i-o-1,c=(1<<l)-1,f=c>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,d=r?1:-1,y=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=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=c?(a=0,s=c):s+f>=1?(a=(t*u-1)*Math.pow(2,o),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;e[n+h]=255&a,h+=d,a/=256,o-=8);for(s=s<<o|a,l+=o;l>0;e[n+h]=255&s,h+=d,s/=256,l-=8);e[n+h-d]|=128*y}},function(e,t,n){function r(e){if(e)return function(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}(e)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},r.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},r.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},r.prototype.hasListeners=function(e){return!!this.listeners(e).length}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=s,s.default=s,s.stable=l,s.stableStringify=l;var r=[],o=[];function i(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function s(e,t,s,u){var l;void 0===u&&(u=i()),function e(t,r,o,i,s,u,l){var c;if(u+=1,"object"===n(t)&&null!==t){for(c=0;c<i.length;c++)if(i[c]===t)return void a("[Circular]",t,r,s);if(void 0!==l.depthLimit&&u>l.depthLimit)return void a("[...]",t,r,s);if(void 0!==l.edgesLimit&&o+1>l.edgesLimit)return void a("[...]",t,r,s);if(i.push(t),Array.isArray(t))for(c=0;c<t.length;c++)e(t[c],c,c,i,t,u,l);else{var f=Object.keys(t);for(c=0;c<f.length;c++){var p=f[c];e(t[p],p,c,i,t,u,l)}}i.pop()}}(e,"",0,[],void 0,0,u);try{l=0===o.length?JSON.stringify(e,t,s):JSON.stringify(e,c(t),s)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==r.length;){var f=r.pop();4===f.length?Object.defineProperty(f[0],f[1],f[3]):f[0][f[1]]=f[2]}}return l}function a(e,t,n,i){var s=Object.getOwnPropertyDescriptor(i,n);void 0!==s.get?s.configurable?(Object.defineProperty(i,n,{value:e}),r.push([i,n,t,s])):o.push([t,n,e]):(i[n]=e,r.push([i,n,t]))}function u(e,t){return e<t?-1:e>t?1:0}function l(e,t,s,l){void 0===l&&(l=i());var f,p=function e(t,o,i,s,l,c,f){var p;if(c+=1,"object"===n(t)&&null!==t){for(p=0;p<s.length;p++)if(s[p]===t)return void a("[Circular]",t,o,l);try{if("function"==typeof t.toJSON)return}catch(e){return}if(void 0!==f.depthLimit&&c>f.depthLimit)return void a("[...]",t,o,l);if(void 0!==f.edgesLimit&&i+1>f.edgesLimit)return void a("[...]",t,o,l);if(s.push(t),Array.isArray(t))for(p=0;p<t.length;p++)e(t[p],p,p,s,t,c,f);else{var h={},d=Object.keys(t).sort(u);for(p=0;p<d.length;p++){var y=d[p];e(t[y],y,p,s,t,c,f),h[y]=t[y]}if(void 0===l)return h;r.push([l,o,t]),l[o]=h}s.pop()}}(e,"",0,[],void 0,0,l)||e;try{f=0===o.length?JSON.stringify(p,t,s):JSON.stringify(p,c(t),s)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==r.length;){var h=r.pop();4===h.length?Object.defineProperty(h[0],h[1],h[3]):h[0][h[1]]=h[2]}}return f}function c(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(o.length>0)for(var r=0;r<o.length;r++){var i=o[r];if(i[1]===t&&i[0]===n){n=i[2],o.splice(r,1);break}}return e.call(this,t,n)}}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(16);function i(e){if(e)return function(e){for(var t in i.prototype)Object.prototype.hasOwnProperty.call(i.prototype,t)&&(e[t]=i.prototype[t]);return e}(e)}e.exports=i,i.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},i.prototype.parse=function(e){return this._parser=e,this},i.prototype.responseType=function(e){return this._responseType=e,this},i.prototype.serialize=function(e){return this._serializer=e,this},i.prototype.timeout=function(e){if(!e||"object"!==r(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},i.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var s=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];i.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!==t.status)return!0;if(e){if(e.code&&s.includes(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},i.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},i.prototype.then=function(e,t){var n=this;if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(e,t){r.on("abort",(function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)t(n.timedoutError);else{var e=new Error("Aborted");e.code="ABORTED",e.status=n.status,e.method=n.method,e.url=n.url,t(e)}})),r.end((function(n,r){n?t(n):e(r)}))}))}return this._fullfilledPromise.then(e,t)},i.prototype.catch=function(e){return this.then(void 0,e)},i.prototype.use=function(e){return e(this),this},i.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},i.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},i.prototype.get=function(e){return this._header[e.toLowerCase()]},i.prototype.getHeader=i.prototype.get,i.prototype.set=function(e,t){if(o(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},i.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},i.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(o(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.field(n,e[n]);return this}if(Array.isArray(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.field(e,t[r]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),this._getFormData().append(e,t),this},i.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},i.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(r("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},i.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},i.prototype.redirects=function(e){return this._maxRedirects=e,this},i.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},i.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},i.prototype.send=function(e){var t=o(e),n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&o(this._data))for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this._data[r]=e[r]);else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"===n?this._data?"".concat(this._data,"&").concat(e):e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||n||this.type("json"),this},i.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},i.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.slice(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.slice(0,t)+"?"+n.join("&")}}},i.prototype._appendQueryString=function(){console.warn("Unsupported")},i.prototype._timeoutError=function(e,t,n){if(!this._aborted){var r=new Error("".concat(e+t,"ms exceeded"));r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)}},i.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},function(e,t,n){"use strict";var r=n(38);function o(e){if(e)return function(e){for(var t in o.prototype)Object.prototype.hasOwnProperty.call(o.prototype,t)&&(e[t]=o.prototype[t]);return e}(e)}e.exports=o,o.prototype.get=function(e){return this.header[e.toLowerCase()]},o.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=r.type(t);var n=r.params(t);for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(this[o]=n[o]);this.links={};try{e.link&&(this.links=r.parseLinks(e.link))}catch(e){}},o.prototype._setStatusProperties=function(e){var t=e/100|0;this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e}},function(e,t,n){"use strict";t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){return e.split(/ *; */).reduce((function(e,t){var n=t.split(/ *= */),r=n.shift(),o=n.shift();return r&&o&&(e[r]=o),e}),{})},t.parseLinks=function(e){return e.split(/ *, */).reduce((function(e,t){var n=t.split(/ *; */),r=n[0].slice(1,-1);return e[n[1].split(/ *= */)[1].slice(1,-1)]=r,e}),{})},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach((function(e){i.prototype[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this._defaults.push({fn:e,args:n}),this}})),i.prototype._setDefaults=function(e){this._defaults.forEach((function(t){e[t.fn].apply(e,r(t.args))}))},e.exports=i},function(e,t,n){(function(e){var r=n(41),o=n(18),i=n(50),s=n(51),a=n(27),u=t;u.request=function(t,n){t="string"==typeof t?a.parse(t):i(t);var o=-1===e.location.protocol.search(/^https?:$/)?"http:":"",s=t.protocol||o,u=t.hostname||t.host,l=t.port,c=t.path||"/";u&&-1!==u.indexOf(":")&&(u="["+u+"]"),t.url=(u?s+"//"+u:"")+(l?":"+l:"")+c,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var f=new r(t);return n&&f.on("response",n),f},u.get=function(e,t){var n=u.request(e,t);return n.end(),n},u.ClientRequest=r,u.IncomingMessage=o.IncomingMessage,u.Agent=function(){},u.Agent.defaultMaxSockets=4,u.globalAgent=new u.Agent,u.STATUS_CODES=s,u.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,n(1))},function(e,t,n){(function(t,r,o){var i=n(17),s=n(3),a=n(18),u=n(19),l=n(49),c=a.IncomingMessage,f=a.readyStates;var p=e.exports=function(e){var n,r=this;u.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+new t(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){r.setHeader(t,e.headers[t])}));var o=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!i.abortController)o=!1,n=!0;else if("prefer-streaming"===e.mode)n=!1;else if("allow-wrong-content-type"===e.mode)n=!i.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");n=!0}r._mode=function(e,t){return i.fetch&&t?"fetch":i.mozchunkedarraybuffer?"moz-chunked-arraybuffer":i.msstream?"ms-stream":i.arraybuffer&&e?"arraybuffer":i.vbArray&&e?"text:vbarray":"text"}(n,o),r._fetchTimer=null,r.on("finish",(function(){r._onFinish()}))};s(p,u.Writable),p.prototype.setHeader=function(e,t){var n=e.toLowerCase();-1===h.indexOf(n)&&(this._headers[n]={name:e,value:t})},p.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},p.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},p.prototype._onFinish=function(){var e=this;if(!e._destroyed){var n=e._opts,s=e._headers,a=null;"GET"!==n.method&&"HEAD"!==n.method&&(a=i.arraybuffer?l(t.concat(e._body)):i.blobConstructor?new r.Blob(e._body.map((function(e){return l(e)})),{type:(s["content-type"]||{}).value||""}):t.concat(e._body).toString());var u=[];if(Object.keys(s).forEach((function(e){var t=s[e].name,n=s[e].value;Array.isArray(n)?n.forEach((function(e){u.push([t,e])})):u.push([t,n])})),"fetch"===e._mode){var c=null;if(i.abortController){var p=new AbortController;c=p.signal,e._fetchAbortController=p,"requestTimeout"in n&&0!==n.requestTimeout&&(e._fetchTimer=r.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),n.requestTimeout))}r.fetch(e._opts.url,{method:e._opts.method,headers:u,body:a||void 0,mode:"cors",credentials:n.withCredentials?"include":"same-origin",signal:c}).then((function(t){e._fetchResponse=t,e._connect()}),(function(t){r.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)}))}else{var h=e._xhr=new r.XMLHttpRequest;try{h.open(e._opts.method,e._opts.url,!0)}catch(t){return void o.nextTick((function(){e.emit("error",t)}))}"responseType"in h&&(h.responseType=e._mode.split(":")[0]),"withCredentials"in h&&(h.withCredentials=!!n.withCredentials),"text"===e._mode&&"overrideMimeType"in h&&h.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in n&&(h.timeout=n.requestTimeout,h.ontimeout=function(){e.emit("requestTimeout")}),u.forEach((function(e){h.setRequestHeader(e[0],e[1])})),e._response=null,h.onreadystatechange=function(){switch(h.readyState){case f.LOADING:case f.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(h.onprogress=function(){e._onXHRProgress()}),h.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{h.send(a)}catch(t){return void o.nextTick((function(){e.emit("error",t)}))}}}},p.prototype._onXHRProgress=function(){(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},p.prototype._connect=function(){var e=this;e._destroyed||(e._response=new c(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},p.prototype._write=function(e,t,n){this._body.push(e),n()},p.prototype.abort=p.prototype.destroy=function(){this._destroyed=!0,r.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},p.prototype.end=function(e,t,n){"function"==typeof e&&(n=e,e=void 0),u.Writable.prototype.end.call(this,e,t,n)},p.prototype.flushHeaders=function(){},p.prototype.setTimeout=function(){},p.prototype.setNoDelay=function(){},p.prototype.setSocketKeepAlive=function(){};var h=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,n(4).Buffer,n(1),n(5))},function(e,t){},function(e,t,n){"use strict";var r=n(9).Buffer,o=n(44);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);for(var t,n,o,i=r.allocUnsafe(e>>>0),s=this.head,a=0;s;)t=s.data,n=i,o=a,t.copy(n,o),a+=s.data.length,s=s.next;return i},e}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(46),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(1))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o,i,s,a,u=1,l={},c=!1,f=e.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(e);p=p&&p.setTimeout?p:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){d(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){d(e.data)},r=function(e){i.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):r=function(e){setTimeout(d,0,e)}:(s="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(s)&&d(+t.data.slice(s.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),r=function(t){e.postMessage(s+t,"*")}),p.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var o={callback:e,args:t};return l[u]=o,r(u),u++},p.clearImmediate=h}function h(e){delete l[e]}function d(e){if(c)setTimeout(d,0,e);else{var t=l[e];if(t){c=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{h(e),c=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(1),n(5))},function(e,t,n){(function(t){function n(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,n(1))},function(e,t,n){"use strict";e.exports=i;var r=n(26),o=Object.create(n(7));function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}o.inherits=n(3),o.inherits(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){var r=n(4).Buffer;e.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(r.isBuffer(e)){for(var t=new Uint8Array(e.length),n=e.length,o=0;o<n;o++)t[o]=e[o];return t.buffer}throw new Error("Argument must be a Buffer")}},function(e,t){e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var o in r)n.call(r,o)&&(e[o]=r[o])}return e};var n=Object.prototype.hasOwnProperty},function(e,t){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},function(e,t,n){(function(e,r){var o;function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
11
- /*! https://mths.be/punycode v1.4.1 by @mathias */!function(s){var a="object"==i(t)&&t&&!t.nodeType&&t,u="object"==i(e)&&e&&!e.nodeType&&e,l="object"==(void 0===r?"undefined":i(r))&&r;l.global!==l&&l.window!==l&&l.self!==l||(s=l);var c,f,p=2147483647,h=/^xn--/,d=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,v={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},b=Math.floor,m=String.fromCharCode;function g(e){throw new RangeError(v[e])}function w(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function O(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+w((e=e.replace(y,".")).split("."),t).join(".")}function j(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function k(e){return w(e,(function(e){var t="";return e>65535&&(t+=m((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=m(e)})).join("")}function $(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function P(e,t,n){var r=0;for(e=n?b(e/700):e>>1,e+=b(e/t);e>455;r+=36)e=b(e/35);return b(r+36*e/(e+38))}function T(e){var t,n,r,o,i,s,a,u,l,c,f,h=[],d=e.length,y=0,v=128,m=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&g("not-basic"),h.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<d;){for(i=y,s=1,a=36;o>=d&&g("invalid-input"),((u=(f=e.charCodeAt(o++))-48<10?f-22:f-65<26?f-65:f-97<26?f-97:36)>=36||u>b((p-y)/s))&&g("overflow"),y+=u*s,!(u<(l=a<=m?1:a>=m+26?26:a-m));a+=36)s>b(p/(c=36-l))&&g("overflow"),s*=c;m=P(y-i,t=h.length+1,0==i),b(y/t)>p-v&&g("overflow"),v+=b(y/t),y%=t,h.splice(y++,0,v)}return k(h)}function S(e){var t,n,r,o,i,s,a,u,l,c,f,h,d,y,v,w=[];for(h=(e=j(e)).length,t=128,n=0,i=72,s=0;s<h;++s)(f=e[s])<128&&w.push(m(f));for(r=o=w.length,o&&w.push("-");r<h;){for(a=p,s=0;s<h;++s)(f=e[s])>=t&&f<a&&(a=f);for(a-t>b((p-n)/(d=r+1))&&g("overflow"),n+=(a-t)*d,t=a,s=0;s<h;++s)if((f=e[s])<t&&++n>p&&g("overflow"),f==t){for(u=n,l=36;!(u<(c=l<=i?1:l>=i+26?26:l-i));l+=36)v=u-c,y=36-c,w.push(m($(c+v%y,0))),u=b(v/y);w.push(m($(u,0))),i=P(n,d,r==o),n=0,++r}++n,++t}return w.join("")}if(c={version:"1.4.1",ucs2:{decode:j,encode:k},decode:T,encode:S,toASCII:function(e){return O(e,(function(e){return d.test(e)?"xn--"+S(e):e}))},toUnicode:function(e){return O(e,(function(e){return h.test(e)?T(e.slice(4).toLowerCase()):e}))}},"object"==i(n(28))&&n(28))void 0===(o=function(){return c}.call(t,n,t,e))||(e.exports=o);else if(a&&u)if(e.exports==a)u.exports=c;else for(f in c)c.hasOwnProperty(f)&&(a[f]=c[f]);else s.punycode=c}(this)}).call(this,n(53)(e),n(1))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";var r=n(55),o=n(66),i=n(13);e.exports={formats:i,parse:o,stringify:r}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(56),i=n(29),s=n(13),a=Object.prototype.hasOwnProperty,u={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,f=function(e,t){c.apply(e,l(t)?t:[t])},p=Date.prototype.toISOString,h=s.default,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:h,formatter:s.formatters[h],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},y={},v=function e(t,n,s,a,u,c,p,h,v,b,m,g,w,O,j,k){for(var $,P=t,T=k,S=0,E=!1;void 0!==(T=T.get(y))&&!E;){var F=T.get(t);if(S+=1,void 0!==F){if(F===S)throw new RangeError("Cyclic object value");E=!0}void 0===T.get(y)&&(S=0)}if("function"==typeof h?P=h(n,P):P instanceof Date?P=m(P):"comma"===s&&l(P)&&(P=i.maybeMap(P,(function(e){return e instanceof Date?m(e):e}))),null===P){if(u)return p&&!O?p(n,d.encoder,j,"key",g):n;P=""}if("string"==typeof($=P)||"number"==typeof $||"boolean"==typeof $||"symbol"===r($)||"bigint"==typeof $||i.isBuffer(P))return p?[w(O?n:p(n,d.encoder,j,"key",g))+"="+w(p(P,d.encoder,j,"value",g))]:[w(n)+"="+w(String(P))];var A,_=[];if(void 0===P)return _;if("comma"===s&&l(P))O&&p&&(P=i.maybeMap(P,p)),A=[{value:P.length>0?P.join(",")||null:void 0}];else if(l(h))A=h;else{var R=Object.keys(P);A=v?R.sort(v):R}for(var D=a&&l(P)&&1===P.length?n+"[]":n,x=0;x<A.length;++x){var I=A[x],M="object"===r(I)&&void 0!==I.value?I.value:P[I];if(!c||null!==M){var N=l(P)?"function"==typeof s?s(D,I):D:D+(b?"."+I:"["+I+"]");k.set(t,S);var L=o();L.set(y,k),f(_,e(M,N,s,a,u,c,"comma"===s&&O&&l(P)?null:p,h,v,b,m,g,w,O,j,L))}}return _};e.exports=function(e,t){var n,i=e,c=function(e){if(!e)return d;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=s.default;if(void 0!==e.format){if(!a.call(s.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=s.formatters[n],o=d.filter;return("function"==typeof e.filter||l(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:void 0===e.allowDots?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"==typeof c.filter?i=(0,c.filter)("",i):l(c.filter)&&(n=c.filter);var p,h=[];if("object"!==r(i)||null===i)return"";p=t&&t.arrayFormat in u?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var y=u[p];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var b="comma"===y&&t&&t.commaRoundTrip;n||(n=Object.keys(i)),c.sort&&n.sort(c.sort);for(var m=o(),g=0;g<n.length;++g){var w=n[g];c.skipNulls&&null===i[w]||f(h,v(i[w],w,y,b,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,m))}var O=h.join(c.delimiter),j=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?j+="utf8=%26%2310003%3B&":j+="utf8=%E2%9C%93&"),O.length>0?j+O:""}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(11),i=n(62),s=n(64),a=o("%TypeError%"),u=o("%WeakMap%",!0),l=o("%Map%",!0),c=i("WeakMap.prototype.get",!0),f=i("WeakMap.prototype.set",!0),p=i("WeakMap.prototype.has",!0),h=i("Map.prototype.get",!0),d=i("Map.prototype.set",!0),y=i("Map.prototype.has",!0),v=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,o={assert:function(e){if(!o.has(e))throw new a("Side channel does not contain "+s(e))},get:function(o){if(u&&o&&("object"===r(o)||"function"==typeof o)){if(e)return c(e,o)}else if(l){if(t)return h(t,o)}else if(n)return function(e,t){var n=v(e,t);return n&&n.value}(n,o)},has:function(o){if(u&&o&&("object"===r(o)||"function"==typeof o)){if(e)return p(e,o)}else if(l){if(t)return y(t,o)}else if(n)return function(e,t){return!!v(e,t)}(n,o);return!1},set:function(o,i){u&&o&&("object"===r(o)||"function"==typeof o)?(e||(e=new u),f(e,o,i)):l?(t||(t=new l),d(t,o,i)):(n||(n={key:{},next:null}),function(e,t,n){var r=v(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,o,i))}};return o}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o="undefined"!=typeof Symbol&&Symbol,i=n(58);e.exports=function(){return"function"==typeof o&&("function"==typeof Symbol&&("symbol"===r(o("foo"))&&("symbol"===r(Symbol("bar"))&&i())))}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"===r(Symbol.iterator))return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},function(e,t,n){"use strict";var r={foo:{}},o=Object;e.exports=function(){return{__proto__:r}.foo===r.foo&&!({__proto__:null}instanceof o)}},function(e,t,n){"use strict";var r="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,i=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==i.call(t))throw new TypeError(r+t);for(var n,s=o.call(arguments,1),a=function(){if(this instanceof n){var r=t.apply(this,s.concat(o.call(arguments)));return Object(r)===r?r:this}return t.apply(e,s.concat(o.call(arguments)))},u=Math.max(0,t.length-s.length),l=[],c=0;c<u;c++)l.push("$"+c);if(n=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(a),t.prototype){var f=function(){};f.prototype=t.prototype,n.prototype=new f,f.prototype=null}return n}},function(e,t,n){"use strict";var r=n(12);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},function(e,t,n){"use strict";var r=n(11),o=n(63),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},function(e,t,n){"use strict";var r=n(12),o=n(11),i=o("%Function.prototype.apply%"),s=o("%Function.prototype.call%"),a=o("%Reflect.apply%",!0)||r.call(s,i),u=o("%Object.getOwnPropertyDescriptor%",!0),l=o("%Object.defineProperty%",!0),c=o("%Math.max%");if(l)try{l({},"a",{value:1})}catch(e){l=null}e.exports=function(e){var t=a(r,s,arguments);if(u&&l){var n=u(t,"length");n.configurable&&l(t,"length",{value:1+c(0,e.length-(arguments.length-1))})}return t};var f=function(){return a(r,i,arguments)};l?l(e.exports,"apply",{value:f}):e.exports.apply=f},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,s=o&&i&&"function"==typeof i.get?i.get:null,a=o&&Map.prototype.forEach,u="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=u&&l&&"function"==typeof l.get?l.get:null,f=u&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,y=Boolean.prototype.valueOf,v=Object.prototype.toString,b=Function.prototype.toString,m=String.prototype.match,g=String.prototype.slice,w=String.prototype.replace,O=String.prototype.toUpperCase,j=String.prototype.toLowerCase,k=RegExp.prototype.test,$=Array.prototype.concat,P=Array.prototype.join,T=Array.prototype.slice,S=Math.floor,E="function"==typeof BigInt?BigInt.prototype.valueOf:null,F=Object.getOwnPropertySymbols,A="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?Symbol.prototype.toString:null,_="function"==typeof Symbol&&"object"===r(Symbol.iterator),R="function"==typeof Symbol&&Symbol.toStringTag&&(r(Symbol.toStringTag)===_||"symbol")?Symbol.toStringTag:null,D=Object.prototype.propertyIsEnumerable,x=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function I(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||k.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-S(-e):S(e);if(r!==e){var o=String(r),i=g.call(t,o.length+1);return w.call(o,n,"$&_")+"."+w.call(w.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return w.call(t,n,"$&_")}var M=n(65),N=M.custom,L=q(N)?N:null;function C(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function U(e){return w.call(String(e),/"/g,"&quot;")}function V(e){return!("[object Array]"!==z(e)||R&&"object"===r(e)&&R in e)}function B(e){return!("[object RegExp]"!==z(e)||R&&"object"===r(e)&&R in e)}function q(e){if(_)return e&&"object"===r(e)&&e instanceof Symbol;if("symbol"===r(e))return!0;if(!e||"object"!==r(e)||!A)return!1;try{return A.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,o,i){var u=n||{};if(J(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(J(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=!J(u,"customInspect")||u.customInspect;if("boolean"!=typeof l&&"symbol"!==l)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(J(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(J(u,"numericSeparator")&&"boolean"!=typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var v=u.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,n){if(t.length>n.maxStringLength){var r=t.length-n.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return e(g.call(t,0,n.maxStringLength),n)+o}return C(w.call(w.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,G),"single",n)}(t,u);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var O=String(t);return v?I(t,O):O}if("bigint"==typeof t){var k=String(t)+"n";return v?I(t,k):k}var S=void 0===u.depth?5:u.depth;if(void 0===o&&(o=0),o>=S&&S>0&&"object"===r(t))return V(t)?"[Array]":"[Object]";var F=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=P.call(Array(e.indent+1)," ")}return{base:n,prev:P.call(Array(t+1),n)}}(u,o);if(void 0===i)i=[];else if(H(i,t)>=0)return"[Circular]";function N(t,n,r){if(n&&(i=T.call(i)).push(n),r){var s={depth:u.depth};return J(u,"quoteStyle")&&(s.quoteStyle=u.quoteStyle),e(t,s,o+1,i)}return e(t,u,o+1,i)}if("function"==typeof t&&!B(t)){var W=function(e){if(e.name)return e.name;var t=m.call(b.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),ee=Z(t,N);return"[Function"+(W?": "+W:" (anonymous)")+"]"+(ee.length>0?" { "+P.call(ee,", ")+" }":"")}if(q(t)){var te=_?w.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):A.call(t);return"object"!==r(t)||_?te:Y(te)}if(function(e){if(!e||"object"!==r(e))return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var ne="<"+j.call(String(t.nodeName)),re=t.attributes||[],oe=0;oe<re.length;oe++)ne+=" "+re[oe].name+"="+C(U(re[oe].value),"double",u);return ne+=">",t.childNodes&&t.childNodes.length&&(ne+="..."),ne+="</"+j.call(String(t.nodeName))+">"}if(V(t)){if(0===t.length)return"[]";var ie=Z(t,N);return F&&!function(e){for(var t=0;t<e.length;t++)if(H(e[t],"\n")>=0)return!1;return!0}(ie)?"["+Q(ie,F)+"]":"[ "+P.call(ie,", ")+" ]"}if(function(e){return!("[object Error]"!==z(e)||R&&"object"===r(e)&&R in e)}(t)){var se=Z(t,N);return"cause"in Error.prototype||!("cause"in t)||D.call(t,"cause")?0===se.length?"["+String(t)+"]":"{ ["+String(t)+"] "+P.call(se,", ")+" }":"{ ["+String(t)+"] "+P.call($.call("[cause]: "+N(t.cause),se),", ")+" }"}if("object"===r(t)&&l){if(L&&"function"==typeof t[L]&&M)return M(t,{depth:S-o});if("symbol"!==l&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!s||!e||"object"!==r(e))return!1;try{s.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ae=[];return a&&a.call(t,(function(e,n){ae.push(N(n,t,!0)+" => "+N(e,t))})),X("Map",s.call(t),ae,F)}if(function(e){if(!c||!e||"object"!==r(e))return!1;try{c.call(e);try{s.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ue=[];return f&&f.call(t,(function(e){ue.push(N(e,t))})),X("Set",c.call(t),ue,F)}if(function(e){if(!p||!e||"object"!==r(e))return!1;try{p.call(e,p);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return K("WeakMap");if(function(e){if(!h||!e||"object"!==r(e))return!1;try{h.call(e,h);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return K("WeakSet");if(function(e){if(!d||!e||"object"!==r(e))return!1;try{return d.call(e),!0}catch(e){}return!1}(t))return K("WeakRef");if(function(e){return!("[object Number]"!==z(e)||R&&"object"===r(e)&&R in e)}(t))return Y(N(Number(t)));if(function(e){if(!e||"object"!==r(e)||!E)return!1;try{return E.call(e),!0}catch(e){}return!1}(t))return Y(N(E.call(t)));if(function(e){return!("[object Boolean]"!==z(e)||R&&"object"===r(e)&&R in e)}(t))return Y(y.call(t));if(function(e){return!("[object String]"!==z(e)||R&&"object"===r(e)&&R in e)}(t))return Y(N(String(t)));if(!function(e){return!("[object Date]"!==z(e)||R&&"object"===r(e)&&R in e)}(t)&&!B(t)){var le=Z(t,N),ce=x?x(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",pe=!ce&&R&&Object(t)===t&&R in t?g.call(z(t),8,-1):fe?"Object":"",he=(ce||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||fe?"["+P.call($.call([],pe||[],fe||[]),": ")+"] ":"");return 0===le.length?he+"{}":F?he+"{"+Q(le,F)+"}":he+"{ "+P.call(le,", ")+" }"}return String(t)};var W=Object.prototype.hasOwnProperty||function(e){return e in this};function J(e,t){return W.call(e,t)}function z(e){return v.call(e)}function H(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function G(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+O.call(t.toString(16))}function Y(e){return"Object("+e+")"}function K(e){return e+" { ? }"}function X(e,t,n,r){return e+" ("+t+") {"+(r?Q(n,r):P.call(n,", "))+"}"}function Q(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+P.call(e,","+n)+"\n"+t.prev}function Z(e,t){var n=V(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=J(e,o)?t(e[o],e):""}var i,s="function"==typeof F?F(e):[];if(_){i={};for(var a=0;a<s.length;a++)i["$"+s[a]]=s[a]}for(var u in e)J(e,u)&&(n&&String(Number(u))===u&&u<e.length||_&&i["$"+u]instanceof Symbol||(k.call(/[^\w$]/,u)?r.push(t(u,e)+": "+t(e[u],e)):r.push(u+": "+t(e[u],e))));if("function"==typeof F)for(var l=0;l<s.length;l++)D.call(e,s[l])&&r.push("["+t(s[l])+"]: "+t(e[s[l]],e));return r}},function(e,t){},function(e,t,n){"use strict";var r=n(29),o=Object.prototype.hasOwnProperty,i=Array.isArray,s={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},u=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,a=n.depth>0&&/(\[[^[\]]*])/.exec(i),l=a?i.slice(0,a.index):i,c=[];if(l){if(!n.plainObjects&&o.call(Object.prototype,l)&&!n.allowPrototypes)return;c.push(l)}for(var f=0;n.depth>0&&null!==(a=s.exec(i))&&f<n.depth;){if(f+=1,!n.plainObjects&&o.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+i.slice(a.index)+"]"),function(e,t,n,r){for(var o=r?t:u(t,n),i=e.length-1;i>=0;--i){var s,a=e[i];if("[]"===a&&n.parseArrays)s=[].concat(o);else{s=n.plainObjects?Object.create(null):{};var l="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(l,10);n.parseArrays||""!==l?!isNaN(c)&&a!==l&&String(c)===l&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(s=[])[c]=o:"__proto__"!==l&&(s[l]=o):s={0:o}}o=s}return o}(c,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return s;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?s.charset:e.charset;return{allowDots:void 0===e.allowDots?s.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:s.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var c="string"==typeof e?function(e,t){var n,l={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=c.split(t.delimiter,f),h=-1,d=t.charset;if(t.charsetSentinel)for(n=0;n<p.length;++n)0===p[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[n]?d="utf-8":"utf8=%26%2310003%3B"===p[n]&&(d="iso-8859-1"),h=n,n=p.length);for(n=0;n<p.length;++n)if(n!==h){var y,v,b=p[n],m=b.indexOf("]="),g=-1===m?b.indexOf("="):m+1;-1===g?(y=t.decoder(b,s.decoder,d,"key"),v=t.strictNullHandling?null:""):(y=t.decoder(b.slice(0,g),s.decoder,d,"key"),v=r.maybeMap(u(b.slice(g+1),t),(function(e){return t.decoder(e,s.decoder,d,"value")}))),v&&t.interpretNumericEntities&&"iso-8859-1"===d&&(v=a(v)),b.indexOf("[]=")>-1&&(v=i(v)?[v]:v),o.call(l,y)?l[y]=r.combine(l[y],v):l[y]=v}return l}(e,n):e,f=n.plainObjects?Object.create(null):{},p=Object.keys(c),h=0;h<p.length;++h){var d=p[h],y=l(d,c[d],n,"string"==typeof e);f=r.merge(f,y,n)}return!0===n.allowSparse?f:r.compact(f)}},function(e,t,n){"use strict";n.r(t),n.d(t,"ApiClient",(function(){return r.a})),n.d(t,"StatsApi",(function(){return Es})),n.d(t,"AppMessage",(function(){return P})),n.d(t,"ErrorResponse",(function(){return ne})),n.d(t,"SchemaValidationError",(function(){return W})),n.d(t,"SchemaValidationErrorMessage",(function(){return I})),n.d(t,"BoolList",(function(){return pe})),n.d(t,"BoolVal",(function(){return Oe})),n.d(t,"DeprecationModel",(function(){return Lo})),n.d(t,"DoubleList",(function(){return Ae})),n.d(t,"DoubleVal",(function(){return Ce})),n.d(t,"Entity",(function(){return Jn})),n.d(t,"EntityDescriptor",(function(){return wi})),n.d(t,"EntityDescriptorListApiResponse",(function(){return Ni})),n.d(t,"EntityListApiResponse",(function(){return Yr})),n.d(t,"EntityType",(function(){return co})),n.d(t,"EntityTypeListApiResponse",(function(){return Eo})),n.d(t,"IntList",(function(){return Ge})),n.d(t,"IntVal",(function(){return rt})),n.d(t,"Metric",(function(){return Qt})),n.d(t,"MetricDescriptor",(function(){return si})),n.d(t,"Point",(function(){return Dt})),n.d(t,"Source",(function(){return Qi})),n.d(t,"SourceListApiResponse",(function(){return ys})),n.d(t,"StrList",(function(){return pt})),n.d(t,"StrVal",(function(){return Ot})),n.d(t,"TimeSeries",(function(){return qt})),n.d(t,"ValueRange",(function(){return Ho})),n.d(t,"ValueType",(function(){return Yo})),n.d(t,"Flag",(function(){return er})),n.d(t,"KVPair",(function(){return pr})),n.d(t,"Message",(function(){return jr})),n.d(t,"MessageSeverity",(function(){return h})),n.d(t,"TenantAwareModel",(function(){return bn})),n.d(t,"ApiLink",(function(){return un})),n.d(t,"ApiResponseMetadata",(function(){return _r})),n.d(t,"ExternalizableAbstractModel",(function(){return _n})),n.d(t,"DownSamplingOperator",(function(){return Xo}));var r=n(2),o={DEFAULT:"DEFAULT",constructFromObject:function(e){if("string"==typeof e||e instanceof String)return o[e];throw new Error("Received object name is not an instance of String")},validate:function(e){if(null!=e)switch(e){case o.DEFAULT:return;default:throw new Error("Invalid : must be ValidationScopes.{ }")}}};Object.freeze(o);var i=o;function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===s(i)?i:String(i)),r)}var o,i}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,r=[{key:"validateMaximum",value:function(e,t){return!(null===t||e>t)}},{key:"validateMinimum",value:function(e,t){return!(null===t||e<t)}},{key:"validateExclusiveMaximum",value:function(e,t){return!(null===t||e>t)}},{key:"validateExclusiveMinimum",value:function(e,t){return!(null===t||e>t)}},{key:"validateMultipleOf",value:function(e,t){return!(null===t||e%t==0)}},{key:"validateMaxLength",value:function(e,t){return!(null===t||e.length>t)}},{key:"validateMinLength",value:function(e,t){return!(null===t||e.length<t)}},{key:"validatePattern",value:function(e,t){return!(null===t||null===e.match(t))}},{key:"validateMaxItems",value:function(e,t){return!(null===t||e.length>t)}},{key:"validateMinItems",value:function(e,t){return!(null===t||e.length<t)}},{key:"validateUniqueItems",value:function(e,t){return!(null===t||!t||e.length!==new Set(e).size)}}],(n=null)&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==l(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===l(i)?i:String(i)),r)}var o,i}var f=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=t,this.message=n}var t,n,r;return t=e,(n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"toJson",value:function(){return{name:this.getName(),message:this.getMessage()}}}])&&c(t.prototype,n),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),p={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INFO:"INFO",WARNING:"WARNING",ERROR:"ERROR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(p).find((function(t){return p[t]===e}));return null==t?p.$UNKNOWN:p[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case p.$UNKNOWN:case p.$REDACTED:case p.INFO:case p.WARNING:case p.ERROR:return;default:throw new Error("Invalid : must be MessageSeverity.{ $UNKNOWN|$REDACTED|INFO|WARNING|ERROR }")}}};Object.freeze(p);var h=p;function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return(t=O(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,O(r.key),r)}}function O(e){var t=function(e,t){if("object"!==d(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===d(t)?t:String(t)}function j(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function k(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}var $=new WeakSet,P=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),j(this,$),this.$objectType="aiops.v4.error.AppMessage",this.$reserved={$fqObjectType:"aiops.v4.r0.a2.error.AppMessage"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("severity")&&null!==t.severity&&void 0!==t.severity&&n.setSeverity(h.constructFromObject(t.severity)),t.hasOwnProperty("code")&&null!==t.code&&void 0!==t.code&&n.setCode(t.code),t.hasOwnProperty("locale")&&null!==t.locale&&void 0!==t.locale&&n.setLocale(t.locale),t.hasOwnProperty("errorGroup")&&null!==t.errorGroup&&void 0!==t.errorGroup&&n.setErrorGroup(t.errorGroup),t.hasOwnProperty("argumentsMap")&&null!==t.argumentsMap&&void 0!==t.argumentsMap&&n.setArgumentsMap(t.argumentsMap),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=m({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"getCode",value:function(){return this.code}},{key:"setCode",value:function(e){this.code=e}},{key:"getLocale",value:function(){return this.locale}},{key:"setLocale",value:function(e){this.locale=e}},{key:"getErrorGroup",value:function(){return this.errorGroup}},{key:"setErrorGroup",value:function(e){this.errorGroup=e}},{key:"getArgumentsMap",value:function(){return this.argumentsMap}},{key:"setArgumentsMap",value:function(e){this.argumentsMap=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return m(m(m(m(m(m(m({},void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{}),void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{}),void 0!==this.getErrorGroup()&&null!==this.getErrorGroup()?{errorGroup:this.getErrorGroup()}:{}),!1===e?void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:k(this,$,T).call(this,this.getArgumentsMap(),!1)}:{}:void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:k(this,$,T).call(this,this.getArgumentsMap())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"message"!==t||void 0!==this.message&&null!==this.message?"severity"!==t||void 0!==this.severity&&null!==this.severity?"code"!==t||void 0!==this.code&&null!==this.code?"locale"!==t||void 0!==this.locale&&null!==this.locale?"errorGroup"!==t||void 0!==this.errorGroup&&null!==this.errorGroup?"argumentsMap"!==t||void 0!==this.argumentsMap&&null!==this.argumentsMap?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("argumentsMap","undefined or null"):new f("errorGroup","undefined or null"):new f("locale","undefined or null"):new f("code","undefined or null"):new f("severity","undefined or null"):new f("message","undefined or null")}}])&&w(t.prototype,n),r&&w(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function T(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=y(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===d(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function A(e,t,n){return(t=R(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,R(r.key),r)}}function R(e){var t=function(e,t){if("object"!==S(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==S(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===S(t)?t:String(t)}function D(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}P.prototype.message=void 0,P.prototype.severity=void 0,P.prototype.code=void 0,P.prototype.locale="en_US",P.prototype.errorGroup=void 0,P.prototype.argumentsMap=void 0,P.prototype.$reserved=void 0,P.prototype.$objectType=void 0,P.prototype.$unknownFields=void 0;var x=new WeakSet,I=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),D(this,x),this.$objectType="aiops.v4.error.SchemaValidationErrorMessage",this.$reserved={$fqObjectType:"aiops.v4.r0.a2.error.SchemaValidationErrorMessage"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("location")&&null!==t.location&&void 0!==t.location&&n.setLocation(t.location),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("attributePath")&&null!==t.attributePath&&void 0!==t.attributePath&&n.setAttributePath(t.attributePath),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=F({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getLocation",value:function(){return this.location}},{key:"setLocation",value:function(e){this.location=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getAttributePath",value:function(){return this.attributePath}},{key:"setAttributePath",value:function(e){this.attributePath=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return F(F(F(F({},void 0!==this.getLocation()&&null!==this.getLocation()?{location:this.getLocation()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getAttributePath()&&null!==this.getAttributePath()?{attributePath:this.getAttributePath()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"location"!==t||void 0!==this.location&&null!==this.location?"message"!==t||void 0!==this.message&&null!==this.message?"attributePath"!==t||void 0!==this.attributePath&&null!==this.attributePath?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("attributePath","undefined or null"):new f("message","undefined or null"):new f("location","undefined or null")}}])&&_(t.prototype,n),r&&_(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function M(e){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function C(e,t,n){return(t=V(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,V(r.key),r)}}function V(e){var t=function(e,t){if("object"!==M(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==M(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===M(t)?t:String(t)}function B(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}I.prototype.location=void 0,I.prototype.message=void 0,I.prototype.attributePath=void 0,I.prototype.$reserved=void 0,I.prototype.$objectType=void 0,I.prototype.$unknownFields=void 0;var q=new WeakSet,W=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),B(this,q),this.$objectType="aiops.v4.error.SchemaValidationError",this.$reserved={$fqObjectType:"aiops.v4.r0.a2.error.SchemaValidationError"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("timestamp")&&null!==t.timestamp&&void 0!==t.timestamp&&n.setTimestamp(t.timestamp),t.hasOwnProperty("statusCode")&&null!==t.statusCode&&void 0!==t.statusCode&&n.setStatusCode(t.statusCode),t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error&&n.setError(t.error),t.hasOwnProperty("path")&&null!==t.path&&void 0!==t.path&&n.setPath(t.path),t.hasOwnProperty("validationErrorMessages")&&null!==t.validationErrorMessages&&void 0!==t.validationErrorMessages){for(s=[],r=t.validationErrorMessages,i=0;i<r.length;i++)o=I.constructFromObject(r[i],void 0),s.push(o);n.setValidationErrorMessages(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=L({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],(n=[{key:"getTimestamp",value:function(){return this.timestamp}},{key:"setTimestamp",value:function(e){this.timestamp=e}},{key:"getStatusCode",value:function(){return this.statusCode}},{key:"setStatusCode",value:function(e){this.statusCode=e}},{key:"getError",value:function(){return this.error}},{key:"setError",value:function(e){this.error=e}},{key:"getPath",value:function(){return this.path}},{key:"setPath",value:function(e){this.path=e}},{key:"getValidationErrorMessages",value:function(){return this.validationErrorMessages}},{key:"setValidationErrorMessages",value:function(e){this.validationErrorMessages=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return L(L(L(L(L(L({},void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:this.getTimestamp()}:{}),void 0!==this.getStatusCode()&&null!==this.getStatusCode()?{statusCode:this.getStatusCode()}:{}),void 0!==this.getError()&&null!==this.getError()?{error:this.getError()}:{}),void 0!==this.getPath()&&null!==this.getPath()?{path:this.getPath()}:{}),void 0!==this.getValidationErrorMessages()&&null!==this.getValidationErrorMessages()?{validationErrorMessages:this.getValidationErrorMessages().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"timestamp"!==t||void 0!==this.timestamp&&null!==this.timestamp?"statusCode"!==t||void 0!==this.statusCode&&null!==this.statusCode?"error"!==t||void 0!==this.error&&null!==this.error?"path"!==t||void 0!==this.path&&null!==this.path?"validationErrorMessages"!==t||void 0!==this.validationErrorMessages&&null!==this.validationErrorMessages?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("validationErrorMessages","undefined or null"):new f("path","undefined or null"):new f("error","undefined or null"):new f("statusCode","undefined or null"):new f("timestamp","undefined or null")}}])&&U(t.prototype,n),r&&U(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function J(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return z(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function H(e){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function K(e,t,n){return(t=Q(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Q(r.key),r)}}function Q(e){var t=function(e,t){if("object"!==H(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==H(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===H(t)?t:String(t)}function Z(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function ee(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}W.prototype.timestamp=void 0,W.prototype.statusCode=void 0,W.prototype.error=void 0,W.prototype.path=void 0,W.prototype.validationErrorMessages=void 0,W.prototype.$reserved=void 0,W.prototype.$objectType=void 0,W.prototype.$unknownFields=void 0;var te=new WeakSet,ne=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Z(this,te),this.$objectType="aiops.v4.error.ErrorResponse",this.$reserved={$fqObjectType:"aiops.v4.r0.a2.error.ErrorResponse"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error)if(Array.isArray(t.error))if(0===t.error.length)n.setError([]);else{for(s=[],a=(r=t.error)[0].hasOwnProperty("$objectType")?r[0].$objectType:H(r[0]),i=0;i<r.length;i++)switch(a){case"aiops.v4.error.AppMessage":o=P.constructFromObject(r[i],void 0),s.push(o);break;default:throw"Unknown list of type "+a+" in data"}n.setError(s)}else switch(a=t.error.hasOwnProperty("$objectType")?t.error.$objectType:H(t.error)){case"aiops.v4.error.SchemaValidationError":n.setError(W.constructFromObject(t.error,void 0));break;default:throw"Unknown datatype "+a+" in data"}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!u)for(var l in n.$unknownFields=Y({},t.$unknownFields),t)Object.keys(n).includes(l)||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(n.$unknownFields[l]=t[l])}return n}}],(n=[{key:"getError",value:function(){return this.error}},{key:"setError",value:function(e){this.error=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Y(Y({},!1===e?void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson(!1):Array.isArray(this.getError())?this.getError().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):ee(this,te,re).call(this,this.getError(),!1)}:{}:void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson():Array.isArray(this.getError())?this.getError().map((function(e){return void 0!==e.toJson?e.toJson():e})):ee(this,te,re).call(this,this.getError())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"error"!==t||void 0!==this.error&&null!==this.error?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("error","undefined or null")}}])&&X(t.prototype,n),r&&X(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function re(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=J(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===H(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function oe(e){return(oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(n),!0).forEach((function(t){ae(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ae(e,t,n){return(t=le(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,le(r.key),r)}}function le(e){var t=function(e,t){if("object"!==oe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==oe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===oe(t)?t:String(t)}function ce(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}ne.prototype.error=void 0,ne.prototype.$reserved=void 0,ne.prototype.$objectType=void 0,ne.prototype.$unknownFields=void 0;var fe=new WeakSet,pe=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ce(this,fe),this.boolList=t,this.$objectType="aiops.v4.stats.BoolList",this.$reserved={$fqObjectType:"aiops.v4.r0.a2.stats.BoolList"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("boolList")&&null!==t.boolList&&void 0!==t.boolList){for(i=[],r=t.boolList,o=0;o<r.length;o++)i.push(r[o]);n.setBoolList(i)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!s)for(var a in n.$unknownFields=se({},t.$unknownFields),t)Object.keys(n).includes(a)||"$"===a[0]&&a.endsWith("ItemDiscriminator")||(n.$unknownFields[a]=t[a])}return n}}],(n=[{key:"getBoolList",value:function(){return this.boolList}},{key:"setBoolList",value:function(e){this.boolList=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return se(se({},void 0!==this.getBoolList()&&null!==this.getBoolList()?{boolList:this.getBoolList()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["boolList"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("boolList"===t){if(void 0===this.boolList||null===this.boolList)return new f("boolList","undefined or null");if(!u.validateMaxItems(this.boolList,100))return new f("boolList","does not satisfy required maxItems constraint: 100")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&ue(t.prototype,n),r&&ue(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function he(e){return(he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?de(Object(n),!0).forEach((function(t){ve(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ve(e,t,n){return(t=me(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function be(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,me(r.key),r)}}function me(e){var t=function(e,t){if("object"!==he(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==he(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===he(t)?t:String(t)}function ge(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}pe.prototype.boolList=void 0,pe.prototype.$reserved=void 0,pe.prototype.$objectType=void 0,pe.prototype.$unknownFields=void 0;var we=new WeakSet,Oe=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ge(this,we),this.boolValue=t,this.$objectType="aiops.v4.stats.BoolVal",this.$reserved={$fqObjectType:"aiops.v4.r0.a2.stats.BoolVal"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("boolValue")&&null!==t.boolValue&&void 0!==t.boolValue&&n.setBoolValue(t.boolValue),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=ye({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getBoolValue",value:function(){return this.boolValue}},{key:"setBoolValue",value:function(e){this.boolValue=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ye(ye({},void 0!==this.getBoolValue()&&null!==this.getBoolValue()?{boolValue:this.getBoolValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["boolValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"boolValue"!==t||void 0!==this.boolValue&&null!==this.boolValue?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("boolValue","undefined or null")}}])&&be(t.prototype,n),r&&be(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function je(e){return(je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach((function(t){Pe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pe(e,t,n){return(t=Se(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Se(r.key),r)}}function Se(e){var t=function(e,t){if("object"!==je(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==je(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===je(t)?t:String(t)}function Ee(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}Oe.prototype.boolValue=void 0,Oe.prototype.$reserved=void 0,Oe.prototype.$objectType=void 0,Oe.prototype.$unknownFields=void 0;var Fe=new WeakSet,Ae=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ee(this,Fe),this.doubleList=t,this.$objectType="aiops.v4.stats.DoubleList",this.$reserved={$fqObjectType:"aiops.v4.r0.a2.stats.DoubleList"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("doubleList")&&null!==t.doubleList&&void 0!==t.doubleList){for(i=[],r=t.doubleList,o=0;o<r.length;o++)i.push(r[o]);n.setDoubleList(i)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!s)for(var a in n.$unknownFields=$e({},t.$unknownFields),t)Object.keys(n).includes(a)||"$"===a[0]&&a.endsWith("ItemDiscriminator")||(n.$unknownFields[a]=t[a])}return n}}],(n=[{key:"getDoubleList",value:function(){return this.doubleList}},{key:"setDoubleList",value:function(e){this.doubleList=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return $e($e({},void 0!==this.getDoubleList()&&null!==this.getDoubleList()?{doubleList:this.getDoubleList()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["doubleList"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("doubleList"===t){if(void 0===this.doubleList||null===this.doubleList)return new f("doubleList","undefined or null");if(!u.validateMaxItems(this.doubleList,100))return new f("doubleList","does not satisfy required maxItems constraint: 100")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&Te(t.prototype,n),r&&Te(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function _e(e){return(_e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function De(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(n),!0).forEach((function(t){xe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xe(e,t,n){return(t=Me(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Me(r.key),r)}}function Me(e){var t=function(e,t){if("object"!==_e(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_e(t)?t:String(t)}function Ne(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}Ae.prototype.doubleList=void 0,Ae.prototype.$reserved=void 0,Ae.prototype.$objectType=void 0,Ae.prototype.$unknownFields=void 0;var Le=new WeakSet,Ce=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ne(this,Le),this.doubleValue=t,this.$objectType="aiops.v4.stats.DoubleVal",this.$reserved={$fqObjectType:"aiops.v4.r0.a2.stats.DoubleVal"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("doubleValue")&&null!==t.doubleValue&&void 0!==t.doubleValue&&n.setDoubleValue(t.doubleValue),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=De({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getDoubleValue",value:function(){return this.doubleValue}},{key:"setDoubleValue",value:function(e){this.doubleValue=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return De(De({},void 0!==this.getDoubleValue()&&null!==this.getDoubleValue()?{doubleValue:this.getDoubleValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["doubleValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"doubleValue"!==t||void 0!==this.doubleValue&&null!==this.doubleValue?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("doubleValue","undefined or null")}}])&&Ie(t.prototype,n),r&&Ie(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ue(e){return(Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ve(Object(n),!0).forEach((function(t){qe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qe(e,t,n){return(t=Je(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function We(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Je(r.key),r)}}function Je(e){var t=function(e,t){if("object"!==Ue(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ue(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ue(t)?t:String(t)}function ze(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}Ce.prototype.doubleValue=void 0,Ce.prototype.$reserved=void 0,Ce.prototype.$objectType=void 0,Ce.prototype.$unknownFields=void 0;var He=new WeakSet,Ge=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ze(this,He),this.intList=t,this.$objectType="aiops.v4.stats.IntList",this.$reserved={$fqObjectType:"aiops.v4.r0.a2.stats.IntList"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("intList")&&null!==t.intList&&void 0!==t.intList){for(i=[],r=t.intList,o=0;o<r.length;o++)i.push(r[o]);n.setIntList(i)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!s)for(var a in n.$unknownFields=Be({},t.$unknownFields),t)Object.keys(n).includes(a)||"$"===a[0]&&a.endsWith("ItemDiscriminator")||(n.$unknownFields[a]=t[a])}return n}}],(n=[{key:"getIntList",value:function(){return this.intList}},{key:"setIntList",value:function(e){this.intList=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Be(Be({},void 0!==this.getIntList()&&null!==this.getIntList()?{intList:this.getIntList()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["intList"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("intList"===t){if(void 0===this.intList||null===this.intList)return new f("intList","undefined or null");if(!u.validateMaxItems(this.intList,100))return new f("intList","does not satisfy required maxItems constraint: 100")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&We(t.prototype,n),r&&We(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ye(e){return(Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(n),!0).forEach((function(t){Qe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qe(e,t,n){return(t=et(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ze(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,et(r.key),r)}}function et(e){var t=function(e,t){if("object"!==Ye(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ye(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ye(t)?t:String(t)}function tt(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}Ge.prototype.intList=void 0,Ge.prototype.$reserved=void 0,Ge.prototype.$objectType=void 0,Ge.prototype.$unknownFields=void 0;var nt=new WeakSet,rt=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),tt(this,nt),this.intValue=t,this.$objectType="aiops.v4.stats.IntVal",this.$reserved={$fqObjectType:"aiops.v4.r0.a2.stats.IntVal"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("intValue")&&null!==t.intValue&&void 0!==t.intValue&&n.setIntValue(t.intValue),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Xe({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getIntValue",value:function(){return this.intValue}},{key:"setIntValue",value:function(e){this.intValue=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Xe(Xe({},void 0!==this.getIntValue()&&null!==this.getIntValue()?{intValue:this.getIntValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["intValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"intValue"!==t||void 0!==this.intValue&&null!==this.intValue?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("intValue","undefined or null")}}])&&Ze(t.prototype,n),r&&Ze(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ot(e){return(ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function it(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function st(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?it(Object(n),!0).forEach((function(t){at(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function at(e,t,n){return(t=lt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ut(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lt(r.key),r)}}function lt(e){var t=function(e,t){if("object"!==ot(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ot(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ot(t)?t:String(t)}function ct(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}rt.prototype.intValue=void 0,rt.prototype.$reserved=void 0,rt.prototype.$objectType=void 0,rt.prototype.$unknownFields=void 0;var ft=new WeakSet,pt=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ct(this,ft),this.strList=t,this.$objectType="aiops.v4.stats.StrList",this.$reserved={$fqObjectType:"aiops.v4.r0.a2.stats.StrList"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("strList")&&null!==t.strList&&void 0!==t.strList){for(i=[],r=t.strList,o=0;o<r.length;o++)i.push(r[o]);n.setStrList(i)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!s)for(var a in n.$unknownFields=st({},t.$unknownFields),t)Object.keys(n).includes(a)||"$"===a[0]&&a.endsWith("ItemDiscriminator")||(n.$unknownFields[a]=t[a])}return n}}],(n=[{key:"getStrList",value:function(){return this.strList}},{key:"setStrList",value:function(e){this.strList=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return st(st({},void 0!==this.getStrList()&&null!==this.getStrList()?{strList:this.getStrList()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["strList"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("strList"===t){if(void 0===this.strList||null===this.strList)return new f("strList","undefined or null");if(!u.validateMaxItems(this.strList,100))return new f("strList","does not satisfy required maxItems constraint: 100")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&ut(t.prototype,n),r&&ut(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ht(e){return(ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dt(Object(n),!0).forEach((function(t){vt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vt(e,t,n){return(t=mt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mt(r.key),r)}}function mt(e){var t=function(e,t){if("object"!==ht(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ht(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ht(t)?t:String(t)}function gt(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}pt.prototype.strList=void 0,pt.prototype.$reserved=void 0,pt.prototype.$objectType=void 0,pt.prototype.$unknownFields=void 0;var wt=new WeakSet,Ot=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),gt(this,wt),this.strValue=t,this.$objectType="aiops.v4.stats.StrVal",this.$reserved={$fqObjectType:"aiops.v4.r0.a2.stats.StrVal"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("strValue")&&null!==t.strValue&&void 0!==t.strValue&&n.setStrValue(t.strValue),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=yt({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getStrValue",value:function(){return this.strValue}},{key:"setStrValue",value:function(e){this.strValue=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return yt(yt({},void 0!==this.getStrValue()&&null!==this.getStrValue()?{strValue:this.getStrValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["strValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"strValue"!==t||void 0!==this.strValue&&null!==this.strValue?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("strValue","undefined or null")}}])&&bt(t.prototype,n),r&&bt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function jt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return kt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $t(e){return($t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pt(Object(n),!0).forEach((function(t){St(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function St(e,t,n){return(t=Ft(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Et(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ft(r.key),r)}}function Ft(e){var t=function(e,t){if("object"!==$t(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==$t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$t(t)?t:String(t)}function At(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function _t(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}Ot.prototype.strValue=void 0,Ot.prototype.$reserved=void 0,Ot.prototype.$objectType=void 0,Ot.prototype.$unknownFields=void 0;var Rt=new WeakSet,Dt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),At(this,Rt),this.$objectType="aiops.v4.stats.Point",this.$reserved={$fqObjectType:"aiops.v4.r0.a2.stats.Point"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value)switch(r=t.value.hasOwnProperty("$objectType")?t.value.$objectType:$t(t.value)){case"aiops.v4.stats.StrVal":n.setValue(Ot.constructFromObject(t.value,void 0));break;case"aiops.v4.stats.BoolVal":n.setValue(Oe.constructFromObject(t.value,void 0));break;case"aiops.v4.stats.IntVal":n.setValue(rt.constructFromObject(t.value,void 0));break;case"aiops.v4.stats.DoubleVal":n.setValue(Ce.constructFromObject(t.value,void 0));break;case"aiops.v4.stats.StrList":n.setValue(pt.constructFromObject(t.value,void 0));break;case"aiops.v4.stats.BoolList":n.setValue(pe.constructFromObject(t.value,void 0));break;case"aiops.v4.stats.IntList":n.setValue(Ge.constructFromObject(t.value,void 0));break;case"aiops.v4.stats.DoubleList":n.setValue(Ae.constructFromObject(t.value,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(t.hasOwnProperty("timestamp")&&null!==t.timestamp&&void 0!==t.timestamp&&n.setTimestamp(t.timestamp),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!o)for(var i in n.$unknownFields=Tt({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i])}return n}}],(n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"getTimestamp",value:function(){return this.timestamp}},{key:"setTimestamp",value:function(e){this.timestamp=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Tt(Tt(Tt({},!1===e?void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson(!1):Array.isArray(this.getValue())?this.getValue().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):_t(this,Rt,xt).call(this,this.getValue(),!1)}:{}:void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson():Array.isArray(this.getValue())?this.getValue().map((function(e){return void 0!==e.toJson?e.toJson():e})):_t(this,Rt,xt).call(this,this.getValue())}:{}),void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:this.getTimestamp()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"value"!==t||void 0!==this.value&&null!==this.value?"timestamp"!==t||void 0!==this.timestamp&&null!==this.timestamp?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("timestamp","undefined or null"):new f("value","undefined or null")}}])&&Et(t.prototype,n),r&&Et(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function xt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=jt(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===$t(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function It(e){return(It="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mt(Object(n),!0).forEach((function(t){Lt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lt(e,t,n){return(t=Ut(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ct(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ut(r.key),r)}}function Ut(e){var t=function(e,t){if("object"!==It(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==It(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===It(t)?t:String(t)}function Vt(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}Dt.prototype.value=void 0,Dt.prototype.timestamp=void 0,Dt.prototype.$reserved=void 0,Dt.prototype.$objectType=void 0,Dt.prototype.$unknownFields=void 0;var Bt=new WeakSet,qt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Vt(this,Bt),this.$objectType="aiops.v4.stats.TimeSeries",this.$reserved={$fqObjectType:"aiops.v4.r0.a2.stats.TimeSeries"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("samplingIntervalSecs")&&null!==t.samplingIntervalSecs&&void 0!==t.samplingIntervalSecs&&n.setSamplingIntervalSecs(t.samplingIntervalSecs),t.hasOwnProperty("values")&&null!==t.values&&void 0!==t.values){for(s=[],r=t.values,i=0;i<r.length;i++)o=Dt.constructFromObject(r[i],void 0),s.push(o);n.setValues(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=Nt({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],(n=[{key:"getSamplingIntervalSecs",value:function(){return this.samplingIntervalSecs}},{key:"setSamplingIntervalSecs",value:function(e){this.samplingIntervalSecs=e}},{key:"getValues",value:function(){return this.values}},{key:"setValues",value:function(e){this.values=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Nt(Nt(Nt({},void 0!==this.getSamplingIntervalSecs()&&null!==this.getSamplingIntervalSecs()?{samplingIntervalSecs:this.getSamplingIntervalSecs()}:{}),void 0!==this.getValues()&&null!==this.getValues()?{values:this.getValues().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("samplingIntervalSecs"===t&&(void 0===this.samplingIntervalSecs||null===this.samplingIntervalSecs))return new f("samplingIntervalSecs","undefined or null");if("values"===t){if(void 0===this.values||null===this.values)return new f("values","undefined or null");if(!u.validateMaxItems(this.values,2880))return new f("values","does not satisfy required maxItems constraint: 2880")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&Ct(t.prototype,n),r&&Ct(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Wt(e){return(Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jt(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ht(e,t,n){return(t=Yt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Yt(r.key),r)}}function Yt(e){var t=function(e,t){if("object"!==Wt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Wt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Wt(t)?t:String(t)}function Kt(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}qt.prototype.samplingIntervalSecs=void 0,qt.prototype.values=void 0,qt.prototype.$reserved=void 0,qt.prototype.$objectType=void 0,qt.prototype.$unknownFields=void 0;var Xt=new WeakSet,Qt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Kt(this,Xt),this.$objectType="aiops.v4.stats.Metric",this.$reserved={$fqObjectType:"aiops.v4.r0.a2.stats.Metric"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("timeSeries")&&null!==t.timeSeries&&void 0!==t.timeSeries&&n.setTimeSeries(qt.constructFromObject(t.timeSeries)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=zt({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getTimeSeries",value:function(){return this.timeSeries}},{key:"setTimeSeries",value:function(e){this.timeSeries=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return zt(zt(zt({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getTimeSeries()&&null!==this.getTimeSeries()?{timeSeries:this.getTimeSeries().toJson(!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new f("name","undefined or null");if(!u.validateMaxLength(this.name,50))return new f("name","does not satisfy required maxLength constraint: 50")}return"timeSeries"!==t||void 0!==this.timeSeries&&null!==this.timeSeries?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("timeSeries","undefined or null")}}])&&Gt(t.prototype,n),r&&Gt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Zt(e){return(Zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function en(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?en(Object(n),!0).forEach((function(t){nn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):en(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nn(e,t,n){return(t=on(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,on(r.key),r)}}function on(e){var t=function(e,t){if("object"!==Zt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Zt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Zt(t)?t:String(t)}function sn(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}Qt.prototype.name=void 0,Qt.prototype.timeSeries=void 0,Qt.prototype.$reserved=void 0,Qt.prototype.$objectType=void 0,Qt.prototype.$unknownFields=void 0;var an=new WeakSet,un=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),sn(this,an),this.$objectType="common.v1.response.ApiLink",this.$reserved={$fqObjectType:"common.v1.r0.a3.response.ApiLink"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("href")&&null!==t.href&&void 0!==t.href&&n.setHref(t.href),t.hasOwnProperty("rel")&&null!==t.rel&&void 0!==t.rel&&n.setRel(t.rel),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=tn({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getHref",value:function(){return this.href}},{key:"setHref",value:function(e){this.href=e}},{key:"getRel",value:function(){return this.rel}},{key:"setRel",value:function(e){this.rel=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return tn(tn(tn({},void 0!==this.getHref()&&null!==this.getHref()?{href:this.getHref()}:{}),void 0!==this.getRel()&&null!==this.getRel()?{rel:this.getRel()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"href"!==t||void 0!==this.href&&null!==this.href?"rel"!==t||void 0!==this.rel&&null!==this.rel?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("rel","undefined or null"):new f("href","undefined or null")}}])&&rn(t.prototype,n),r&&rn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ln(e){return(ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cn(Object(n),!0).forEach((function(t){pn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pn(e,t,n){return(t=dn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dn(r.key),r)}}function dn(e){var t=function(e,t){if("object"!==ln(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ln(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ln(t)?t:String(t)}function yn(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}un.prototype.href=void 0,un.prototype.rel=void 0,un.prototype.$reserved=void 0,un.prototype.$objectType=void 0,un.prototype.$unknownFields=void 0;var vn=new WeakSet,bn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),yn(this,vn),this.$objectType="common.v1.config.TenantAwareModel",this.$reserved={$fqObjectType:"common.v1.r0.a3.config.TenantAwareModel"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("tenantId")&&null!==t.tenantId&&void 0!==t.tenantId&&n.setTenantId(t.tenantId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=fn({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getTenantId",value:function(){return this.tenantId}},{key:"setTenantId",value:function(e){this.tenantId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return!1===e?fn(fn({},void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}):{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("tenantId"===t){if(void 0===this.tenantId||null===this.tenantId)return new f("tenantId","undefined or null");if(!u.validatePattern(this.tenantId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("tenantId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&hn(t.prototype,n),r&&hn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function mn(e){return(mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gn(Object(n),!0).forEach((function(t){On(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function On(e,t,n){return(t=kn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kn(r.key),r)}}function kn(e){var t=function(e,t){if("object"!==mn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==mn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===mn(t)?t:String(t)}function $n(e,t){return($n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Pn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=En(e);if(t){var o=En(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tn(this,n)}}function Tn(e,t){if(t&&("object"===mn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Sn(e)}function Sn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function En(e){return(En=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fn(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}bn.prototype.tenantId=void 0,bn.prototype.$reserved=void 0,bn.prototype.$objectType=void 0,bn.prototype.$unknownFields=void 0;var An=new WeakSet,_n=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$n(e,t)}(s,e);var t,n,r,o=Pn(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),Fn(Sn(e=o.call(this)),An),e.$objectType="common.v1.response.ExternalizableAbstractModel",e.$reserved={$fqObjectType:"common.v1.r0.a3.response.ExternalizableAbstractModel"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,bn.constructFromObject(e,t,!0),e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&t.setExtId(e.extId),e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(i=[],n=e.links,o=0;o<n.length;o++)r=un.constructFromObject(n[o],void 0),i.push(r);t.setLinks(i)}if(!a)for(var u in t.$unknownFields=wn({},e.$unknownFields),e)Object.keys(t).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(t.$unknownFields[u]=e[u])}return t}}],(n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getLinks",value:function(){return this.links}},{key:"setLinks",value:function(e){this.links=e}},{key:"toJson",value:function(e){return wn(!1===e?wn(wn(wn({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):wn({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new f("extId","undefined or null");if(null==e){if(!u.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("extId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}else if(e===i.update&&!u.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("extId","does not satisfy pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"links"!==t||void 0!==this.links&&null!==this.links?new f(t,"no such property exists"):new f("links","undefined or null")}}])&&jn(t.prototype,n),r&&jn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(bn);function Rn(e){return(Rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dn(Object(n),!0).forEach((function(t){In(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function In(e,t,n){return(t=Nn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Nn(r.key),r)}}function Nn(e){var t=function(e,t){if("object"!==Rn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Rn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Rn(t)?t:String(t)}function Ln(e,t){return(Ln=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Cn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Bn(e);if(t){var o=Bn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Un(this,n)}}function Un(e,t){if(t&&("object"===Rn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Vn(e)}function Vn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bn(e){return(Bn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qn(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}_n.prototype.extId=void 0,_n.prototype.links=void 0;var Wn=new WeakSet,Jn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ln(e,t)}(s,e);var t,n,r,o=Cn(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),qn(Vn(e=o.call(this)),Wn),e.$objectType="aiops.v4.stats.Entity",e.$reserved={$fqObjectType:"aiops.v4.r0.a2.stats.Entity"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,_n.constructFromObject(e,t,!0),e.hasOwnProperty("entityType")&&null!==e.entityType&&void 0!==e.entityType&&t.setEntityType(e.entityType),e.hasOwnProperty("source")&&null!==e.source&&void 0!==e.source&&t.setSource(e.source),e.hasOwnProperty("parents")&&null!==e.parents&&void 0!==e.parents){for(i=[],n=e.parents,o=0;o<n.length;o++)r=s.constructFromObject(n[o],void 0),i.push(r);t.setParents(i)}if(e.hasOwnProperty("metrics")&&null!==e.metrics&&void 0!==e.metrics){for(i=[],n=e.metrics,o=0;o<n.length;o++)r=Qt.constructFromObject(n[o],void 0),i.push(r);t.setMetrics(i)}if(!a)for(var u in t.$unknownFields=xn({},e.$unknownFields),e)Object.keys(t).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(t.$unknownFields[u]=e[u])}return t}}],(n=[{key:"getEntityType",value:function(){return this.entityType}},{key:"setEntityType",value:function(e){this.entityType=e}},{key:"getSource",value:function(){return this.source}},{key:"setSource",value:function(e){this.source=e}},{key:"getParents",value:function(){return this.parents}},{key:"setParents",value:function(e){this.parents=e}},{key:"getMetrics",value:function(){return this.metrics}},{key:"setMetrics",value:function(e){this.metrics=e}},{key:"toJson",value:function(e){return xn(!1===e?xn(xn(xn(xn(xn(xn(xn({},void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getSource()&&null!==this.getSource()?{source:this.getSource()}:{}),void 0!==this.getParents()&&null!==this.getParents()?{parents:this.getParents().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getMetrics()&&null!==this.getMetrics()?{metrics:this.getMetrics().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):xn(xn(xn(xn(xn({},void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getSource()&&null!==this.getSource()?{source:this.getSource()}:{}),void 0!==this.getParents()&&null!==this.getParents()?{parents:this.getParents().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getMetrics()&&null!==this.getMetrics()?{metrics:this.getMetrics().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("entityType"===t&&(void 0===this.entityType||null===this.entityType))return new f("entityType","undefined or null");if("source"===t&&(void 0===this.source||null===this.source))return new f("source","undefined or null");if("parents"===t){if(void 0===this.parents||null===this.parents)return new f("parents","undefined or null");if(!u.validateMaxItems(this.parents,5))return new f("parents","does not satisfy required maxItems constraint: 5")}if("metrics"===t){if(void 0===this.metrics||null===this.metrics)return new f("metrics","undefined or null");if(!u.validateMaxItems(this.metrics,100))return new f("metrics","does not satisfy required maxItems constraint: 100")}return new f(t,"no such property exists")}}])&&Mn(t.prototype,n),r&&Mn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(_n);function zn(e){return(zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hn(Object(n),!0).forEach((function(t){Yn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yn(e,t,n){return(t=Xn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Xn(r.key),r)}}function Xn(e){var t=function(e,t){if("object"!==zn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==zn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===zn(t)?t:String(t)}function Qn(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}Jn.prototype.entityType=void 0,Jn.prototype.source=void 0,Jn.prototype.parents=void 0,Jn.prototype.metrics=void 0;var Zn=new WeakSet,er=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Qn(this,Zn),this.$objectType="common.v1.config.Flag",this.$reserved={$fqObjectType:"common.v1.r0.a3.config.Flag"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Gn({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Gn(Gn(Gn({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"name"!==t||void 0!==this.name&&null!==this.name?"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("value","undefined or null"):new f("name","undefined or null")}}])&&Kn(t.prototype,n),r&&Kn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function tr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return nr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rr(e){return(rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function or(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ir(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?or(Object(n),!0).forEach((function(t){sr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):or(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sr(e,t,n){return(t=ur(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ar(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ur(r.key),r)}}function ur(e){var t=function(e,t){if("object"!==rr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==rr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===rr(t)?t:String(t)}function lr(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function cr(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}er.prototype.name=void 0,er.prototype.value=!1,er.prototype.$reserved=void 0,er.prototype.$objectType=void 0,er.prototype.$unknownFields=void 0;var fr=new WeakSet,pr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),lr(this,fr),this.$objectType="common.v1.config.KVPair",this.$reserved={$fqObjectType:"common.v1.r0.a3.config.KVPair"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value)if(Array.isArray(t.value))if(0===t.value.length)n.setValue([]);else{for(i=[],s=(r=t.value)[0].hasOwnProperty("$objectType")?r[0].$objectType:rr(r[0]),o=0;o<r.length;o++)switch(s){case"string":case"number":i.push(r[o]);break;default:throw"Unknown list of type "+s+" in data"}n.setValue(i)}else switch(s=t.value.hasOwnProperty("$objectType")?t.value.$objectType:rr(t.value)){case"string":case"boolean":case"number":n.setValue(t.value);break;case"object":n.setValue(new Map(Object.entries(t.value)));break;default:throw"Unknown datatype "+s+" in data"}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=ir({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],(n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ir(ir(ir({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),!1===e?void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson(!1):Array.isArray(this.getValue())?this.getValue().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):cr(this,fr,hr).call(this,this.getValue(),!1)}:{}:void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson():Array.isArray(this.getValue())?this.getValue().map((function(e){return void 0!==e.toJson?e.toJson():e})):cr(this,fr,hr).call(this,this.getValue())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"name"!==t||void 0!==this.name&&null!==this.name?"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("value","undefined or null"):new f("name","undefined or null")}}])&&ar(t.prototype,n),r&&ar(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function hr(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=tr(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===rr(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function dr(e){return(dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yr(Object(n),!0).forEach((function(t){br(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function br(e,t,n){return(t=gr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gr(r.key),r)}}function gr(e){var t=function(e,t){if("object"!==dr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==dr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===dr(t)?t:String(t)}function wr(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}pr.prototype.name=void 0,pr.prototype.value=void 0,pr.prototype.$reserved=void 0,pr.prototype.$objectType=void 0,pr.prototype.$unknownFields=void 0;var Or=new WeakSet,jr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),wr(this,Or),this.$objectType="common.v1.config.Message",this.$reserved={$fqObjectType:"common.v1.r0.a3.config.Message"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("code")&&null!==t.code&&void 0!==t.code&&n.setCode(t.code),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("locale")&&null!==t.locale&&void 0!==t.locale&&n.setLocale(t.locale),t.hasOwnProperty("severity")&&null!==t.severity&&void 0!==t.severity&&n.setSeverity(h.constructFromObject(t.severity)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=vr({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getCode",value:function(){return this.code}},{key:"setCode",value:function(e){this.code=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getLocale",value:function(){return this.locale}},{key:"setLocale",value:function(e){this.locale=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return vr(vr(vr(vr(vr({},void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"code"!==t||void 0!==this.code&&null!==this.code?"message"!==t||void 0!==this.message&&null!==this.message?"locale"!==t||void 0!==this.locale&&null!==this.locale?"severity"!==t||void 0!==this.severity&&null!==this.severity?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("severity","undefined or null"):new f("locale","undefined or null"):new f("message","undefined or null"):new f("code","undefined or null")}}])&&mr(t.prototype,n),r&&mr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function kr(e){return(kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$r(Object(n),!0).forEach((function(t){Tr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tr(e,t,n){return(t=Er(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Er(r.key),r)}}function Er(e){var t=function(e,t){if("object"!==kr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==kr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===kr(t)?t:String(t)}function Fr(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}jr.prototype.code=void 0,jr.prototype.message=void 0,jr.prototype.locale="en_US",jr.prototype.severity=void 0,jr.prototype.$reserved=void 0,jr.prototype.$objectType=void 0,jr.prototype.$unknownFields=void 0;var Ar=new WeakSet,_r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Fr(this,Ar),this.$objectType="common.v1.response.ApiResponseMetadata",this.$reserved={$fqObjectType:"common.v1.r0.a3.response.ApiResponseMetadata"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("flags")&&null!==t.flags&&void 0!==t.flags){for(s=[],r=t.flags,i=0;i<r.length;i++)o=er.constructFromObject(r[i],void 0),s.push(o);n.setFlags(s)}if(t.hasOwnProperty("links")&&null!==t.links&&void 0!==t.links){for(s=[],r=t.links,i=0;i<r.length;i++)o=un.constructFromObject(r[i],void 0),s.push(o);n.setLinks(s)}if(t.hasOwnProperty("totalAvailableResults")&&null!==t.totalAvailableResults&&void 0!==t.totalAvailableResults&&n.setTotalAvailableResults(t.totalAvailableResults),t.hasOwnProperty("messages")&&null!==t.messages&&void 0!==t.messages){for(s=[],r=t.messages,i=0;i<r.length;i++)o=jr.constructFromObject(r[i],void 0),s.push(o);n.setMessages(s)}if(t.hasOwnProperty("extraInfo")&&null!==t.extraInfo&&void 0!==t.extraInfo){for(s=[],r=t.extraInfo,i=0;i<r.length;i++)o=pr.constructFromObject(r[i],void 0),s.push(o);n.setExtraInfo(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=Pr({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],(n=[{key:"getFlags",value:function(){return this.flags}},{key:"setFlags",value:function(e){this.flags=e}},{key:"getLinks",value:function(){return this.links}},{key:"setLinks",value:function(e){this.links=e}},{key:"getTotalAvailableResults",value:function(){return this.totalAvailableResults}},{key:"setTotalAvailableResults",value:function(e){this.totalAvailableResults=e}},{key:"getMessages",value:function(){return this.messages}},{key:"setMessages",value:function(e){this.messages=e}},{key:"getExtraInfo",value:function(){return this.extraInfo}},{key:"setExtraInfo",value:function(e){this.extraInfo=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Pr(Pr(Pr(Pr(Pr(Pr({},void 0!==this.getFlags()&&null!==this.getFlags()?{flags:this.getFlags().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTotalAvailableResults()&&null!==this.getTotalAvailableResults()?{totalAvailableResults:this.getTotalAvailableResults()}:{}),void 0!==this.getMessages()&&null!==this.getMessages()?{messages:this.getMessages().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtraInfo()&&null!==this.getExtraInfo()?{extraInfo:this.getExtraInfo().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"flags"!==t||void 0!==this.flags&&null!==this.flags?"links"!==t||void 0!==this.links&&null!==this.links?"totalAvailableResults"!==t||void 0!==this.totalAvailableResults&&null!==this.totalAvailableResults?"messages"!==t||void 0!==this.messages&&null!==this.messages?"extraInfo"!==t||void 0!==this.extraInfo&&null!==this.extraInfo?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("extraInfo","undefined or null"):new f("messages","undefined or null"):new f("totalAvailableResults","undefined or null"):new f("links","undefined or null"):new f("flags","undefined or null")}}])&&Sr(t.prototype,n),r&&Sr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();_r.prototype.flags=void 0,_r.prototype.links=void 0,_r.prototype.totalAvailableResults=void 0,_r.prototype.messages=void 0,_r.prototype.extraInfo=void 0,_r.prototype.$reserved=void 0,_r.prototype.$objectType=void 0,_r.prototype.$unknownFields=void 0;var Rr=n(0);function Dr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return xr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ir(e){return(Ir="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Mr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mr(Object(n),!0).forEach((function(t){Lr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lr(e,t,n){return(t=Ur(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ur(r.key),r)}}function Ur(e){var t=function(e,t){if("object"!==Ir(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ir(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ir(t)?t:String(t)}function Vr(e,t){return(Vr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Br(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Jr(e);if(t){var o=Jr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qr(this,n)}}function qr(e,t){if(t&&("object"===Ir(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Wr(e)}function Wr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jr(e){return(Jr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function zr(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function Hr(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}var Gr=new WeakSet,Yr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vr(e,t)}(s,e);var t,n,r,o=Br(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),zr(Wr(e=o.call(this)),Gr),e.$objectType="aiops.v4.stats.EntityListApiResponse",e.$reserved={$fqObjectType:"aiops.v4.r0.a2.stats.EntityListApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&Rr.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(_r.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(i=[],a=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Ir(n[0]),o=0;o<n.length;o++)switch(a){case"aiops.v4.stats.Entity":r=Jn.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+a+" in data"}t.setData(i)}else switch(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Ir(e.data)){case"aiops.v4.error.ErrorResponse":t.setData(ne.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+a+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!u)for(var l in t.$unknownFields=Nr({},e.$unknownFields),e)Object.keys(t).includes(l)||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(t.$unknownFields[l]=e[l])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Nr(Nr(Nr({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Hr(this,Gr,Kr).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Hr(this,Gr,Kr).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&Cr(t.prototype,n),r&&Cr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(Rr.a);function Kr(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=Dr(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===Ir(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Xr(e){return(Xr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qr(Object(n),!0).forEach((function(t){eo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function eo(e,t,n){return(t=no(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function to(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,no(r.key),r)}}function no(e){var t=function(e,t){if("object"!==Xr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Xr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Xr(t)?t:String(t)}function ro(e,t){return(ro=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function oo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var o=ao(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return io(this,n)}}function io(e,t){if(t&&("object"===Xr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return so(e)}function so(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ao(e){return(ao=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function uo(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}Yr.prototype.metadata=void 0,Yr.prototype.data=void 0,Yr.prototype.$reserved=void 0,Yr.prototype.$objectType=void 0,Yr.prototype.$unknownFields=void 0;var lo=new WeakSet,co=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ro(e,t)}(s,e);var t,n,r,o=oo(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),uo(so(e=o.call(this)),lo),e.$objectType="aiops.v4.stats.EntityType",e.$reserved={$fqObjectType:"aiops.v4.r0.a2.stats.EntityType"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(t=t||new s,_n.constructFromObject(e,t,!0),e.hasOwnProperty("entityTypeName")&&null!==e.entityTypeName&&void 0!==e.entityTypeName&&t.setEntityTypeName(e.entityTypeName),!n))for(var r in t.$unknownFields=Zr({},e.$unknownFields),e)Object.keys(t).includes(r)||"$"===r[0]&&r.endsWith("ItemDiscriminator")||(t.$unknownFields[r]=e[r]);return t}}],(n=[{key:"getEntityTypeName",value:function(){return this.entityTypeName}},{key:"setEntityTypeName",value:function(e){this.entityTypeName=e}},{key:"toJson",value:function(e){return Zr(!1===e?Zr(Zr(Zr(Zr({},void 0!==this.getEntityTypeName()&&null!==this.getEntityTypeName()?{entityTypeName:this.getEntityTypeName()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Zr(Zr({},void 0!==this.getEntityTypeName()&&null!==this.getEntityTypeName()?{entityTypeName:this.getEntityTypeName()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"entityTypeName"!==t||void 0!==this.entityTypeName&&null!==this.entityTypeName?new f(t,"no such property exists"):new f("entityTypeName","undefined or null")}}])&&to(t.prototype,n),r&&to(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(_n);function fo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return po(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return po(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function po(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ho(e){return(ho="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yo(Object(n),!0).forEach((function(t){bo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bo(e,t,n){return(t=go(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,go(r.key),r)}}function go(e){var t=function(e,t){if("object"!==ho(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ho(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ho(t)?t:String(t)}function wo(e,t){return(wo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Oo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$o(e);if(t){var o=$o(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jo(this,n)}}function jo(e,t){if(t&&("object"===ho(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ko(e)}function ko(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $o(e){return($o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Po(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function To(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}co.prototype.entityTypeName=void 0;var So=new WeakSet,Eo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wo(e,t)}(s,e);var t,n,r,o=Oo(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),Po(ko(e=o.call(this)),So),e.$objectType="aiops.v4.stats.EntityTypeListApiResponse",e.$reserved={$fqObjectType:"aiops.v4.r0.a2.stats.EntityTypeListApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&Rr.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(_r.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(i=[],a=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:ho(n[0]),o=0;o<n.length;o++)switch(a){case"aiops.v4.stats.EntityType":r=co.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+a+" in data"}t.setData(i)}else switch(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ho(e.data)){case"aiops.v4.error.ErrorResponse":t.setData(ne.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+a+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!u)for(var l in t.$unknownFields=vo({},e.$unknownFields),e)Object.keys(t).includes(l)||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(t.$unknownFields[l]=e[l])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return vo(vo(vo({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):To(this,So,Fo).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):To(this,So,Fo).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&mo(t.prototype,n),r&&mo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(Rr.a);function Fo(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=fo(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===ho(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Ao(e){return(Ao="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ro(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_o(Object(n),!0).forEach((function(t){Do(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Do(e,t,n){return(t=Io(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Io(r.key),r)}}function Io(e){var t=function(e,t){if("object"!==Ao(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ao(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ao(t)?t:String(t)}function Mo(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}Eo.prototype.metadata=void 0,Eo.prototype.data=void 0,Eo.prototype.$reserved=void 0,Eo.prototype.$objectType=void 0,Eo.prototype.$unknownFields=void 0;var No=new WeakSet,Lo=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Mo(this,No),this.$objectType="aiops.v4.stats.DeprecationModel",this.$reserved={$fqObjectType:"aiops.v4.r0.a2.stats.DeprecationModel"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("deprecatedVersion")&&null!==t.deprecatedVersion&&void 0!==t.deprecatedVersion&&n.setDeprecatedVersion(t.deprecatedVersion),t.hasOwnProperty("deprecatedDate")&&null!==t.deprecatedDate&&void 0!==t.deprecatedDate&&n.setDeprecatedDate(t.deprecatedDate),t.hasOwnProperty("deprecatedBy")&&null!==t.deprecatedBy&&void 0!==t.deprecatedBy&&n.setDeprecatedBy(t.deprecatedBy),t.hasOwnProperty("deprecatedReason")&&null!==t.deprecatedReason&&void 0!==t.deprecatedReason&&n.setDeprecatedReason(t.deprecatedReason),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Ro({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getDeprecatedVersion",value:function(){return this.deprecatedVersion}},{key:"setDeprecatedVersion",value:function(e){this.deprecatedVersion=e}},{key:"getDeprecatedDate",value:function(){return this.deprecatedDate}},{key:"setDeprecatedDate",value:function(e){this.deprecatedDate=e}},{key:"getDeprecatedBy",value:function(){return this.deprecatedBy}},{key:"setDeprecatedBy",value:function(e){this.deprecatedBy=e}},{key:"getDeprecatedReason",value:function(){return this.deprecatedReason}},{key:"setDeprecatedReason",value:function(e){this.deprecatedReason=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ro(Ro(Ro(Ro(Ro({},void 0!==this.getDeprecatedVersion()&&null!==this.getDeprecatedVersion()?{deprecatedVersion:this.getDeprecatedVersion()}:{}),void 0!==this.getDeprecatedDate()&&null!==this.getDeprecatedDate()?{deprecatedDate:this.getDeprecatedDate()}:{}),void 0!==this.getDeprecatedBy()&&null!==this.getDeprecatedBy()?{deprecatedBy:this.getDeprecatedBy()}:{}),void 0!==this.getDeprecatedReason()&&null!==this.getDeprecatedReason()?{deprecatedReason:this.getDeprecatedReason()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"deprecatedVersion"!==t||void 0!==this.deprecatedVersion&&null!==this.deprecatedVersion?"deprecatedDate"!==t||void 0!==this.deprecatedDate&&null!==this.deprecatedDate?"deprecatedBy"!==t||void 0!==this.deprecatedBy&&null!==this.deprecatedBy?"deprecatedReason"!==t||void 0!==this.deprecatedReason&&null!==this.deprecatedReason?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("deprecatedReason","undefined or null"):new f("deprecatedBy","undefined or null"):new f("deprecatedDate","undefined or null"):new f("deprecatedVersion","undefined or null")}}])&&xo(t.prototype,n),r&&xo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Co(e){return(Co="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Uo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uo(Object(n),!0).forEach((function(t){Bo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bo(e,t,n){return(t=Wo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wo(r.key),r)}}function Wo(e){var t=function(e,t){if("object"!==Co(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Co(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Co(t)?t:String(t)}function Jo(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}Lo.prototype.deprecatedVersion=void 0,Lo.prototype.deprecatedDate=void 0,Lo.prototype.deprecatedBy=void 0,Lo.prototype.deprecatedReason=void 0,Lo.prototype.$reserved=void 0,Lo.prototype.$objectType=void 0,Lo.prototype.$unknownFields=void 0;var zo=new WeakSet,Ho=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Jo(this,zo),this.$objectType="aiops.v4.stats.ValueRange",this.$reserved={$fqObjectType:"aiops.v4.r0.a2.stats.ValueRange"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("min")&&null!==t.min&&void 0!==t.min&&n.setMin(t.min),t.hasOwnProperty("max")&&null!==t.max&&void 0!==t.max&&n.setMax(t.max),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Vo({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getMin",value:function(){return this.min}},{key:"setMin",value:function(e){this.min=e}},{key:"getMax",value:function(){return this.max}},{key:"setMax",value:function(e){this.max=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Vo(Vo(Vo({},void 0!==this.getMin()&&null!==this.getMin()?{min:this.getMin()}:{}),void 0!==this.getMax()&&null!==this.getMax()?{max:this.getMax()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"min"!==t||void 0!==this.min&&null!==this.min?"max"!==t||void 0!==this.max&&null!==this.max?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("max","undefined or null"):new f("min","undefined or null")}}])&&qo(t.prototype,n),r&&qo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();Ho.prototype.min=void 0,Ho.prototype.max=void 0,Ho.prototype.$reserved=void 0,Ho.prototype.$objectType=void 0,Ho.prototype.$unknownFields=void 0;var Go={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",BOOL:"BOOL",INT:"INT",DOUBLE:"DOUBLE",STRING:"STRING",BOOL_LIST:"BOOL_LIST",INT_LIST:"INT_LIST",DOUBLE_LIST:"DOUBLE_LIST",STRING_LIST:"STRING_LIST",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Go).find((function(t){return Go[t]===e}));return null==t?Go.$UNKNOWN:Go[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Go.$UNKNOWN:case Go.$REDACTED:case Go.BOOL:case Go.INT:case Go.DOUBLE:case Go.STRING:case Go.BOOL_LIST:case Go.INT_LIST:case Go.DOUBLE_LIST:case Go.STRING_LIST:return;default:throw new Error("Invalid : must be ValueType.{ $UNKNOWN|$REDACTED|BOOL|INT|DOUBLE|STRING|BOOL_LIST|INT_LIST|DOUBLE_LIST|STRING_LIST }")}}};Object.freeze(Go);var Yo=Go,Ko={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SUM:"SUM",MIN:"MIN",MAX:"MAX",AVG:"AVG",COUNT:"COUNT",LAST:"LAST",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Ko).find((function(t){return Ko[t]===e}));return null==t?Ko.$UNKNOWN:Ko[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ko.$UNKNOWN:case Ko.$REDACTED:case Ko.SUM:case Ko.MIN:case Ko.MAX:case Ko.AVG:case Ko.COUNT:case Ko.LAST:return;default:throw new Error("Invalid : must be DownSamplingOperator.{ $UNKNOWN|$REDACTED|SUM|MIN|MAX|AVG|COUNT|LAST }")}}};Object.freeze(Ko);var Xo=Ko;function Qo(e){return(Qo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ei(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zo(Object(n),!0).forEach((function(t){ti(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ti(e,t,n){return(t=ri(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ni(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ri(r.key),r)}}function ri(e){var t=function(e,t){if("object"!==Qo(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Qo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Qo(t)?t:String(t)}function oi(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}var ii=new WeakSet,si=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),oi(this,ii),this.$objectType="aiops.v4.stats.MetricDescriptor",this.$reserved={$fqObjectType:"aiops.v4.r0.a2.stats.MetricDescriptor"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("isAttribute")&&null!==t.isAttribute&&void 0!==t.isAttribute&&n.setIsAttribute(t.isAttribute),t.hasOwnProperty("isAttributePersistedAsTimeSeries")&&null!==t.isAttributePersistedAsTimeSeries&&void 0!==t.isAttributePersistedAsTimeSeries&&n.setIsAttributePersistedAsTimeSeries(t.isAttributePersistedAsTimeSeries),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("displayName")&&null!==t.displayName&&void 0!==t.displayName&&n.setDisplayName(t.displayName),t.hasOwnProperty("valueType")&&null!==t.valueType&&void 0!==t.valueType&&n.setValueType(Yo.constructFromObject(t.valueType)),t.hasOwnProperty("valueRange")&&null!==t.valueRange&&void 0!==t.valueRange&&n.setValueRange(Ho.constructFromObject(t.valueRange)),t.hasOwnProperty("defaultValue")&&null!==t.defaultValue&&void 0!==t.defaultValue&&n.setDefaultValue(t.defaultValue),t.hasOwnProperty("unit")&&null!==t.unit&&void 0!==t.unit&&n.setUnit(t.unit),t.hasOwnProperty("deprecation")&&null!==t.deprecation&&void 0!==t.deprecation&&n.setDeprecation(Lo.constructFromObject(t.deprecation)),t.hasOwnProperty("samplingIntervalSecs")&&null!==t.samplingIntervalSecs&&void 0!==t.samplingIntervalSecs&&n.setSamplingIntervalSecs(t.samplingIntervalSecs),t.hasOwnProperty("downsamplingOperator")&&null!==t.downsamplingOperator&&void 0!==t.downsamplingOperator&&n.setDownsamplingOperator(Xo.constructFromObject(t.downsamplingOperator)),t.hasOwnProperty("additionalProperties")&&null!==t.additionalProperties&&void 0!==t.additionalProperties){for(s=[],r=t.additionalProperties,i=0;i<r.length;i++)o=pr.constructFromObject(r[i],void 0),s.push(o);n.setAdditionalProperties(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=ei({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],(n=[{key:"getIsAttribute",value:function(){return this.isAttribute}},{key:"setIsAttribute",value:function(e){this.isAttribute=e}},{key:"getIsAttributePersistedAsTimeSeries",value:function(){return this.isAttributePersistedAsTimeSeries}},{key:"setIsAttributePersistedAsTimeSeries",value:function(e){this.isAttributePersistedAsTimeSeries=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getDisplayName",value:function(){return this.displayName}},{key:"setDisplayName",value:function(e){this.displayName=e}},{key:"getValueType",value:function(){return this.valueType}},{key:"setValueType",value:function(e){this.valueType=e}},{key:"getValueRange",value:function(){return this.valueRange}},{key:"setValueRange",value:function(e){this.valueRange=e}},{key:"getDefaultValue",value:function(){return this.defaultValue}},{key:"setDefaultValue",value:function(e){this.defaultValue=e}},{key:"getUnit",value:function(){return this.unit}},{key:"setUnit",value:function(e){this.unit=e}},{key:"getDeprecation",value:function(){return this.deprecation}},{key:"setDeprecation",value:function(e){this.deprecation=e}},{key:"getSamplingIntervalSecs",value:function(){return this.samplingIntervalSecs}},{key:"setSamplingIntervalSecs",value:function(e){this.samplingIntervalSecs=e}},{key:"getDownsamplingOperator",value:function(){return this.downsamplingOperator}},{key:"setDownsamplingOperator",value:function(e){this.downsamplingOperator=e}},{key:"getAdditionalProperties",value:function(){return this.additionalProperties}},{key:"setAdditionalProperties",value:function(e){this.additionalProperties=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ei(ei(ei(ei(ei(ei(ei(ei(ei(ei(ei(ei(ei({},void 0!==this.getIsAttribute()&&null!==this.getIsAttribute()?{isAttribute:this.getIsAttribute()}:{}),void 0!==this.getIsAttributePersistedAsTimeSeries()&&null!==this.getIsAttributePersistedAsTimeSeries()?{isAttributePersistedAsTimeSeries:this.getIsAttributePersistedAsTimeSeries()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDisplayName()&&null!==this.getDisplayName()?{displayName:this.getDisplayName()}:{}),void 0!==this.getValueType()&&null!==this.getValueType()?{valueType:this.getValueType()}:{}),void 0!==this.getValueRange()&&null!==this.getValueRange()?{valueRange:this.getValueRange().toJson(!1)}:{}),void 0!==this.getDefaultValue()&&null!==this.getDefaultValue()?{defaultValue:this.getDefaultValue()}:{}),void 0!==this.getUnit()&&null!==this.getUnit()?{unit:this.getUnit()}:{}),void 0!==this.getDeprecation()&&null!==this.getDeprecation()?{deprecation:this.getDeprecation().toJson(!1)}:{}),void 0!==this.getSamplingIntervalSecs()&&null!==this.getSamplingIntervalSecs()?{samplingIntervalSecs:this.getSamplingIntervalSecs()}:{}),void 0!==this.getDownsamplingOperator()&&null!==this.getDownsamplingOperator()?{downsamplingOperator:this.getDownsamplingOperator()}:{}),void 0!==this.getAdditionalProperties()&&null!==this.getAdditionalProperties()?{additionalProperties:this.getAdditionalProperties().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("isAttribute"===t&&(void 0===this.isAttribute||null===this.isAttribute))return new f("isAttribute","undefined or null");if("isAttributePersistedAsTimeSeries"===t&&(void 0===this.isAttributePersistedAsTimeSeries||null===this.isAttributePersistedAsTimeSeries))return new f("isAttributePersistedAsTimeSeries","undefined or null");if("name"===t&&(void 0===this.name||null===this.name))return new f("name","undefined or null");if("displayName"===t&&(void 0===this.displayName||null===this.displayName))return new f("displayName","undefined or null");if("valueType"===t&&(void 0===this.valueType||null===this.valueType))return new f("valueType","undefined or null");if("valueRange"===t&&(void 0===this.valueRange||null===this.valueRange))return new f("valueRange","undefined or null");if("defaultValue"===t&&(void 0===this.defaultValue||null===this.defaultValue))return new f("defaultValue","undefined or null");if("unit"===t&&(void 0===this.unit||null===this.unit))return new f("unit","undefined or null");if("deprecation"===t&&(void 0===this.deprecation||null===this.deprecation))return new f("deprecation","undefined or null");if("samplingIntervalSecs"===t&&(void 0===this.samplingIntervalSecs||null===this.samplingIntervalSecs))return new f("samplingIntervalSecs","undefined or null");if("downsamplingOperator"===t&&(void 0===this.downsamplingOperator||null===this.downsamplingOperator))return new f("downsamplingOperator","undefined or null");if("additionalProperties"===t){if(void 0===this.additionalProperties||null===this.additionalProperties)return new f("additionalProperties","undefined or null");if(!u.validateMaxItems(this.additionalProperties,100))return new f("additionalProperties","does not satisfy required maxItems constraint: 100")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&ni(t.prototype,n),r&&ni(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ai(e){return(ai="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ui(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function li(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ui(Object(n),!0).forEach((function(t){ci(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ui(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ci(e,t,n){return(t=pi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pi(r.key),r)}}function pi(e){var t=function(e,t){if("object"!==ai(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ai(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ai(t)?t:String(t)}function hi(e,t){return(hi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function di(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bi(e);if(t){var o=bi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yi(this,n)}}function yi(e,t){if(t&&("object"===ai(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return vi(e)}function vi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bi(e){return(bi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function mi(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}si.prototype.isAttribute=void 0,si.prototype.isAttributePersistedAsTimeSeries=void 0,si.prototype.name=void 0,si.prototype.displayName=void 0,si.prototype.valueType=void 0,si.prototype.valueRange=void 0,si.prototype.defaultValue=void 0,si.prototype.unit=void 0,si.prototype.deprecation=void 0,si.prototype.samplingIntervalSecs=void 0,si.prototype.downsamplingOperator=void 0,si.prototype.additionalProperties=void 0,si.prototype.$reserved=void 0,si.prototype.$objectType=void 0,si.prototype.$unknownFields=void 0;var gi=new WeakSet,wi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hi(e,t)}(s,e);var t,n,r,o=di(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),mi(vi(e=o.call(this)),gi),e.$objectType="aiops.v4.stats.EntityDescriptor",e.$reserved={$fqObjectType:"aiops.v4.r0.a2.stats.EntityDescriptor"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,_n.constructFromObject(e,t,!0),e.hasOwnProperty("entityType")&&null!==e.entityType&&void 0!==e.entityType&&t.setEntityType(e.entityType),e.hasOwnProperty("source")&&null!==e.source&&void 0!==e.source&&t.setSource(e.source),e.hasOwnProperty("displayName")&&null!==e.displayName&&void 0!==e.displayName&&t.setDisplayName(e.displayName),e.hasOwnProperty("parents")&&null!==e.parents&&void 0!==e.parents){for(i=[],n=e.parents,o=0;o<n.length;o++)r=s.constructFromObject(n[o],void 0),i.push(r);t.setParents(i)}if(e.hasOwnProperty("metrics")&&null!==e.metrics&&void 0!==e.metrics){for(i=[],n=e.metrics,o=0;o<n.length;o++)r=si.constructFromObject(n[o],void 0),i.push(r);t.setMetrics(i)}if(!a)for(var u in t.$unknownFields=li({},e.$unknownFields),e)Object.keys(t).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(t.$unknownFields[u]=e[u])}return t}}],(n=[{key:"getEntityType",value:function(){return this.entityType}},{key:"setEntityType",value:function(e){this.entityType=e}},{key:"getSource",value:function(){return this.source}},{key:"setSource",value:function(e){this.source=e}},{key:"getDisplayName",value:function(){return this.displayName}},{key:"setDisplayName",value:function(e){this.displayName=e}},{key:"getParents",value:function(){return this.parents}},{key:"setParents",value:function(e){this.parents=e}},{key:"getMetrics",value:function(){return this.metrics}},{key:"setMetrics",value:function(e){this.metrics=e}},{key:"toJson",value:function(e){return li(!1===e?li(li(li(li(li(li(li(li({},void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getSource()&&null!==this.getSource()?{source:this.getSource()}:{}),void 0!==this.getDisplayName()&&null!==this.getDisplayName()?{displayName:this.getDisplayName()}:{}),void 0!==this.getParents()&&null!==this.getParents()?{parents:this.getParents().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getMetrics()&&null!==this.getMetrics()?{metrics:this.getMetrics().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):li(li(li(li(li(li({},void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getSource()&&null!==this.getSource()?{source:this.getSource()}:{}),void 0!==this.getDisplayName()&&null!==this.getDisplayName()?{displayName:this.getDisplayName()}:{}),void 0!==this.getParents()&&null!==this.getParents()?{parents:this.getParents().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getMetrics()&&null!==this.getMetrics()?{metrics:this.getMetrics().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("entityType"===t&&(void 0===this.entityType||null===this.entityType))return new f("entityType","undefined or null");if("source"===t&&(void 0===this.source||null===this.source))return new f("source","undefined or null");if("displayName"===t&&(void 0===this.displayName||null===this.displayName))return new f("displayName","undefined or null");if("parents"===t){if(void 0===this.parents||null===this.parents)return new f("parents","undefined or null");if(!u.validateMaxItems(this.parents,5))return new f("parents","does not satisfy required maxItems constraint: 5")}if("metrics"===t){if(void 0===this.metrics||null===this.metrics)return new f("metrics","undefined or null");if(!u.validateMaxItems(this.metrics,100))return new f("metrics","does not satisfy required maxItems constraint: 100")}return new f(t,"no such property exists")}}])&&fi(t.prototype,n),r&&fi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(_n);function Oi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ji(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ji(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ji(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ki(e){return(ki="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$i(Object(n),!0).forEach((function(t){Ti(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ti(e,t,n){return(t=Ei(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Si(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ei(r.key),r)}}function Ei(e){var t=function(e,t){if("object"!==ki(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ki(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ki(t)?t:String(t)}function Fi(e,t){return(Fi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ai(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Di(e);if(t){var o=Di(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _i(this,n)}}function _i(e,t){if(t&&("object"===ki(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ri(e)}function Ri(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Di(e){return(Di=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xi(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function Ii(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}wi.prototype.entityType=void 0,wi.prototype.source=void 0,wi.prototype.displayName=void 0,wi.prototype.parents=void 0,wi.prototype.metrics=void 0;var Mi=new WeakSet,Ni=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fi(e,t)}(s,e);var t,n,r,o=Ai(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),xi(Ri(e=o.call(this)),Mi),e.$objectType="aiops.v4.stats.EntityDescriptorListApiResponse",e.$reserved={$fqObjectType:"aiops.v4.r0.a2.stats.EntityDescriptorListApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&Rr.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(_r.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(i=[],a=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:ki(n[0]),o=0;o<n.length;o++)switch(a){case"aiops.v4.stats.EntityDescriptor":r=wi.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+a+" in data"}t.setData(i)}else switch(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ki(e.data)){case"aiops.v4.error.ErrorResponse":t.setData(ne.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+a+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!u)for(var l in t.$unknownFields=Pi({},e.$unknownFields),e)Object.keys(t).includes(l)||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(t.$unknownFields[l]=e[l])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Pi(Pi(Pi({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Ii(this,Mi,Li).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Ii(this,Mi,Li).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&Si(t.prototype,n),r&&Si(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(Rr.a);function Li(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=Oi(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===ki(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Ci(e){return(Ci="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ui(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ui(Object(n),!0).forEach((function(t){Bi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ui(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bi(e,t,n){return(t=Wi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wi(r.key),r)}}function Wi(e){var t=function(e,t){if("object"!==Ci(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ci(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ci(t)?t:String(t)}function Ji(e,t){return(Ji=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function zi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Yi(e);if(t){var o=Yi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Hi(this,n)}}function Hi(e,t){if(t&&("object"===Ci(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Gi(e)}function Gi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yi(e){return(Yi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ki(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}Ni.prototype.metadata=void 0,Ni.prototype.data=void 0,Ni.prototype.$reserved=void 0,Ni.prototype.$objectType=void 0,Ni.prototype.$unknownFields=void 0;var Xi=new WeakSet,Qi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ji(e,t)}(s,e);var t,n,r,o=zi(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),Ki(Gi(e=o.call(this)),Xi),e.$objectType="aiops.v4.stats.Source",e.$reserved={$fqObjectType:"aiops.v4.r0.a2.stats.Source"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(t=t||new s,_n.constructFromObject(e,t,!0),e.hasOwnProperty("sourceName")&&null!==e.sourceName&&void 0!==e.sourceName&&t.setSourceName(e.sourceName),!n))for(var r in t.$unknownFields=Vi({},e.$unknownFields),e)Object.keys(t).includes(r)||"$"===r[0]&&r.endsWith("ItemDiscriminator")||(t.$unknownFields[r]=e[r]);return t}}],(n=[{key:"getSourceName",value:function(){return this.sourceName}},{key:"setSourceName",value:function(e){this.sourceName=e}},{key:"toJson",value:function(e){return Vi(!1===e?Vi(Vi(Vi(Vi({},void 0!==this.getSourceName()&&null!==this.getSourceName()?{sourceName:this.getSourceName()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Vi(Vi({},void 0!==this.getSourceName()&&null!==this.getSourceName()?{sourceName:this.getSourceName()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"sourceName"!==t||void 0!==this.sourceName&&null!==this.sourceName?new f(t,"no such property exists"):new f("sourceName","undefined or null")}}])&&qi(t.prototype,n),r&&qi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(_n);function Zi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return es(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return es(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function es(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ts(e){return(ts="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ns(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ns(Object(n),!0).forEach((function(t){os(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ns(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function os(e,t,n){return(t=ss(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function is(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ss(r.key),r)}}function ss(e){var t=function(e,t){if("object"!==ts(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ts(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ts(t)?t:String(t)}function as(e,t){return(as=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function us(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fs(e);if(t){var o=fs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ls(this,n)}}function ls(e,t){if(t&&("object"===ts(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return cs(e)}function cs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fs(e){return(fs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ps(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function hs(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}Qi.prototype.sourceName=void 0;var ds=new WeakSet,ys=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&as(e,t)}(s,e);var t,n,r,o=us(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),ps(cs(e=o.call(this)),ds),e.$objectType="aiops.v4.stats.SourceListApiResponse",e.$reserved={$fqObjectType:"aiops.v4.r0.a2.stats.SourceListApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&Rr.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(_r.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(i=[],a=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:ts(n[0]),o=0;o<n.length;o++)switch(a){case"aiops.v4.stats.Source":r=Qi.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+a+" in data"}t.setData(i)}else switch(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ts(e.data)){case"aiops.v4.error.ErrorResponse":t.setData(ne.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+a+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!u)for(var l in t.$unknownFields=rs({},e.$unknownFields),e)Object.keys(t).includes(l)||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(t.$unknownFields[l]=e[l])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return rs(rs(rs({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):hs(this,ds,vs).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):hs(this,ds,vs).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&is(t.prototype,n),r&&is(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(Rr.a);function vs(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=Zi(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===ts(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function bs(e){return(bs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ms(Object(n),!0).forEach((function(t){ws(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ms(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ws(e,t,n){return(t=js(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Os(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,js(r.key),r)}}function js(e){var t=function(e,t){if("object"!==bs(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==bs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===bs(t)?t:String(t)}function ks(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}function $s(e,t){return function(e,t){if(t.get)return t.get.call(e);return t.value}(e,Ts(e,t,"get"))}function Ps(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,Ts(e,t,"set"),n),n}function Ts(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}ys.prototype.metadata=void 0,ys.prototype.data=void 0,ys.prototype.$reserved=void 0,ys.prototype.$objectType=void 0,ys.prototype.$unknownFields=void 0;var Ss=new WeakMap,Es=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ks(this,Ss,{writable:!0,value:void 0}),this.apiClient=t||r.a.instance,Ps(this,Ss,new Set),$s(this,Ss).add("authorization"),$s(this,Ss).add("cookie"),$s(this,Ss).add("ntnx-request-id"),$s(this,Ss).add("host"),$s(this,Ss).add("user-agent")}var t,n,o;return t=e,o=[{key:"ApiClient",get:function(){return r.a}}],(n=[{key:"getEntityDescriptorsV4",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};t=t||{};var o=null;if(null==e)throw new Error("Missing the required parameter 'extId' when calling getEntityDescriptorsV4");var i={extId:e},s=gs(gs(gs({},t.hasOwnProperty("$page")?{$page:t.$page}:{}),t.hasOwnProperty("$limit")?{$limit:t.$limit}:{}),t.hasOwnProperty("$filter")?{$filter:t.$filter}:{}),a={};Object.keys(r).forEach((function(e){$s(n,Ss).has(e.toLowerCase())||(a[e]=r[e])}));var u=gs({},a),l={},c=["basicAuthScheme"],f=[],p=["application/json"],h=Ni;return this.apiClient.callApi("/api/aiops/v4.0.a2/stats/sources/{extId}/entity-descriptors","GET",i,s,u,l,o,c,f,p,h)}},{key:"getEntityMetricsV4",value:function(e,t,n){var r=this,o=(arguments.length<=3?0:arguments.length-3)>0?arguments.length<=3?void 0:arguments[3]:{};n=n||{};var i=null;if(null==e)throw new Error("Missing the required parameter 'sourceExtId' when calling getEntityMetricsV4");if(null==t)throw new Error("Missing the required parameter 'extId' when calling getEntityMetricsV4");var s={sourceExtId:e,extId:t},a=gs(gs(gs(gs(gs(gs(gs(gs({},n.hasOwnProperty("$page")?{$page:n.$page}:{}),n.hasOwnProperty("$limit")?{$limit:n.$limit}:{}),n.hasOwnProperty("$startTime")?{$startTime:n.$startTime}:{}),n.hasOwnProperty("$endTime")?{$endTime:n.$endTime}:{}),n.hasOwnProperty("$samplingInterval")?{$samplingInterval:n.$samplingInterval}:{}),n.hasOwnProperty("$statType")?{$statType:n.$statType}:{}),n.hasOwnProperty("$filter")?{$filter:n.$filter}:{}),n.hasOwnProperty("$orderby")?{$orderby:n.$orderby}:{}),u={};Object.keys(o).forEach((function(e){$s(r,Ss).has(e.toLowerCase())||(u[e]=o[e])}));var l=gs({},u),c={},f=["basicAuthScheme"],p=[],h=["application/json"],d=Yr;return this.apiClient.callApi("/api/aiops/v4.0.a2/stats/sources/{sourceExtId}/entities/{extId}","GET",s,a,l,c,i,f,p,h,d)}},{key:"getEntityTypesV4",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=null;if(null==e)throw new Error("Missing the required parameter 'extId' when calling getEntityTypesV4");var o={extId:e},i={},s={};Object.keys(n).forEach((function(e){$s(t,Ss).has(e.toLowerCase())||(s[e]=n[e])}));var a=gs({},s),u={},l=["basicAuthScheme"],c=[],f=["application/json"],p=Eo;return this.apiClient.callApi("/api/aiops/v4.0.a2/stats/sources/{extId}/entity-types","GET",o,i,a,u,r,l,c,f,p)}},{key:"getSourcesV4",value:function(){var e=this,t=arguments.length>0?arguments.length<=0?void 0:arguments[0]:{},n=null,r={},o={},i={};Object.keys(t).forEach((function(n){$s(e,Ss).has(n.toLowerCase())||(i[n]=t[n])}));var s=gs({},i),a={},u=["basicAuthScheme"],l=[],c=["application/json"],f=ys;return this.apiClient.callApi("/api/aiops/v4.0.a2/stats/sources","GET",r,o,s,a,n,u,l,c,f)}}])&&Os(t.prototype,n),o&&Os(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default={ApiClient:r.a,StatsApi:Es,AppMessage:P,ErrorResponse:ne,SchemaValidationError:W,SchemaValidationErrorMessage:I,BoolList:pe,BoolVal:Oe,DeprecationModel:Lo,DoubleList:Ae,DoubleVal:Ce,Entity:Jn,EntityDescriptor:wi,EntityDescriptorListApiResponse:Ni,EntityListApiResponse:Yr,EntityType:co,EntityTypeListApiResponse:Eo,IntList:Ge,IntVal:rt,Metric:Qt,MetricDescriptor:si,Point:Dt,Source:Qi,SourceListApiResponse:ys,StrList:pt,StrVal:Ot,TimeSeries:qt,ValueRange:Ho,ValueType:Yo,Flag:er,KVPair:pr,Message:jr,MessageSeverity:h,TenantAwareModel:bn,ApiLink:un,ApiResponseMetadata:_r,ExternalizableAbstractModel:_n,DownSamplingOperator:Xo}},function(e,t,n){"use strict";var r,o=new Uint8Array(16);function i(){if(!r&&!(r="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 r(o)}var 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;for(var a=function(e){return"string"==typeof e&&s.test(e)},u=[],l=0;l<256;++l)u.push((l+256).toString(16).substr(1));var c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(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(n))throw TypeError("Stringified UUID is invalid");return n};t.a=function(e,t,n){var r=(e=e||{}).random||(e.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return c(r)}}]).default}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Ntnx=t():(e.Ntnx=e.Ntnx||{},e.Ntnx.Aiops=t())}(Object("undefined"==typeof self?this:self),()=>(()=>{var e={960(e){function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,i=this._callbacks["$"+e];if(!i)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var s=0;s<i.length;s++)if((n=i[s])===t||n.fn===t){i.splice(s,1);break}return 0===i.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(n){i=0;for(var s=(n=n.slice(0)).length;i<s;++i)n[i].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}},340(e){e.exports=r,r.default=r,r.stable=u,r.stableStringify=u;var t="[...]",n="[Circular]",i=[],s=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function r(e,t,n,r){var a;void 0===r&&(r=o()),l(e,"",0,[],void 0,0,r);try{a=0===s.length?JSON.stringify(e,t,n):JSON.stringify(e,c(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var d=i.pop();4===d.length?Object.defineProperty(d[0],d[1],d[3]):d[0][d[1]]=d[2]}}return a}function a(e,t,n,o){var r=Object.getOwnPropertyDescriptor(o,n);void 0!==r.get?r.configurable?(Object.defineProperty(o,n,{value:e}),i.push([o,n,t,r])):s.push([t,n,e]):(o[n]=e,i.push([o,n,t]))}function l(e,i,s,o,r,d,u){var h;if(d+=1,"object"==typeof e&&null!==e){for(h=0;h<o.length;h++)if(o[h]===e)return void a(n,e,i,r);if(void 0!==u.depthLimit&&d>u.depthLimit)return void a(t,e,i,r);if(void 0!==u.edgesLimit&&s+1>u.edgesLimit)return void a(t,e,i,r);if(o.push(e),Array.isArray(e))for(h=0;h<e.length;h++)l(e[h],h,h,o,e,d,u);else{var c=Object.keys(e);for(h=0;h<c.length;h++){var p=c[h];l(e[p],p,h,o,e,d,u)}}o.pop()}}function d(e,t){return e<t?-1:e>t?1:0}function u(e,t,n,r){void 0===r&&(r=o());var a,l=h(e,"",0,[],void 0,0,r)||e;try{a=0===s.length?JSON.stringify(l,t,n):JSON.stringify(l,c(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var d=i.pop();4===d.length?Object.defineProperty(d[0],d[1],d[3]):d[0][d[1]]=d[2]}}return a}function h(e,s,o,r,l,u,c){var p;if(u+=1,"object"==typeof e&&null!==e){for(p=0;p<r.length;p++)if(r[p]===e)return void a(n,e,s,l);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==c.depthLimit&&u>c.depthLimit)return void a(t,e,s,l);if(void 0!==c.edgesLimit&&o+1>c.edgesLimit)return void a(t,e,s,l);if(r.push(e),Array.isArray(e))for(p=0;p<e.length;p++)h(e[p],p,p,r,e,u,c);else{var y={},v=Object.keys(e).sort(d);for(p=0;p<v.length;p++){var g=v[p];h(e[g],g,p,r,e,u,c),y[g]=e[g]}if(void 0===l)return y;i.push([l,s,e]),l[s]=y}r.pop()}}function c(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(s.length>0)for(var i=0;i<s.length;i++){var o=s[i];if(o[1]===t&&o[0]===n){n=o[2],s.splice(i,1);break}}return e.call(this,t,n)}}},784(e,t,n){"use strict";var i="win32"===process.platform,s=n(818);function o(e,t){for(var n=[],i=0;i<e.length;i++){var s=e[i];s&&"."!==s&&(".."===s?n.length&&".."!==n[n.length-1]?n.pop():t&&n.push(".."):n.push(s))}return n}function r(e){for(var t=e.length-1,n=0;n<=t&&!e[n];n++);for(var i=t;i>=0&&!e[i];i--);return 0===n&&i===t?e:n>i?[]:e.slice(n,i+1)}var a=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,l=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,d={};function u(e){var t=a.exec(e),n=(t[1]||"")+(t[2]||""),i=t[3]||"",s=l.exec(i);return[n,s[1],s[2],s[3]]}function h(e){var t=a.exec(e),n=t[1]||"",i=!!n&&":"!==n[1];return{device:n,isUnc:i,isAbsolute:i||!!t[2],tail:t[3]}}function c(e){return"\\\\"+e.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}d.resolve=function(){for(var e="",t="",n=!1,i=arguments.length-1;i>=-1;i--){var r;if(i>=0?r=arguments[i]:e?(r=process.env["="+e])&&r.substr(0,3).toLowerCase()===e.toLowerCase()+"\\"||(r=e+"\\"):r=process.cwd(),!s.isString(r))throw new TypeError("Arguments to path.resolve must be strings");if(r){var a=h(r),l=a.device,d=a.isUnc,u=a.isAbsolute,p=a.tail;if((!l||!e||l.toLowerCase()===e.toLowerCase())&&(e||(e=l),n||(t=p+"\\"+t,n=u),e&&n))break}}return d&&(e=c(e)),e+(n?"\\":"")+(t=o(t.split(/[\\\/]+/),!n).join("\\"))||"."},d.normalize=function(e){var t=h(e),n=t.device,i=t.isUnc,s=t.isAbsolute,r=t.tail,a=/[\\\/]$/.test(r);return(r=o(r.split(/[\\\/]+/),!s).join("\\"))||s||(r="."),r&&a&&(r+="\\"),i&&(n=c(n)),n+(s?"\\":"")+r},d.isAbsolute=function(e){return h(e).isAbsolute},d.join=function(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(!s.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&e.push(n)}var i=e.join("\\");return/^[\\\/]{2}[^\\\/]/.test(e[0])||(i=i.replace(/^[\\\/]{2,}/,"\\")),d.normalize(i)},d.relative=function(e,t){e=d.resolve(e),t=d.resolve(t);for(var n=e.toLowerCase(),i=t.toLowerCase(),s=r(t.split("\\")),o=r(n.split("\\")),a=r(i.split("\\")),l=Math.min(o.length,a.length),u=l,h=0;h<l;h++)if(o[h]!==a[h]){u=h;break}if(0==u)return t;var c=[];for(h=u;h<o.length;h++)c.push("..");return(c=c.concat(s.slice(u))).join("\\")},d._makeLong=function(e){if(!s.isString(e))return e;if(!e)return"";var t=d.resolve(e);return/^[a-zA-Z]\:\\/.test(t)?"\\\\?\\"+t:/^\\\\[^?.]/.test(t)?"\\\\?\\UNC\\"+t.substring(2):e},d.dirname=function(e){var t=u(e),n=t[0],i=t[1];return n||i?(i&&(i=i.substr(0,i.length-1)),n+i):"."},d.basename=function(e,t){var n=u(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},d.extname=function(e){return u(e)[3]},d.format=function(e){if(!s.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof e);var t=e.root||"";if(!s.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof e.root);var n=e.dir,i=e.base||"";return n?n[n.length-1]===d.sep?n+i:n+d.sep+i:i},d.parse=function(e){if(!s.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=u(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},d.sep="\\",d.delimiter=";";var p=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,y={};function v(e){return p.exec(e).slice(1)}y.resolve=function(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var i=n>=0?arguments[n]:process.cwd();if(!s.isString(i))throw new TypeError("Arguments to path.resolve must be strings");i&&(e=i+"/"+e,t="/"===i[0])}return(t?"/":"")+(e=o(e.split("/"),!t).join("/"))||"."},y.normalize=function(e){var t=y.isAbsolute(e),n=e&&"/"===e[e.length-1];return(e=o(e.split("/"),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e},y.isAbsolute=function(e){return"/"===e.charAt(0)},y.join=function(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];if(!s.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&(e+=e?"/"+n:n)}return y.normalize(e)},y.relative=function(e,t){e=y.resolve(e).substr(1),t=y.resolve(t).substr(1);for(var n=r(e.split("/")),i=r(t.split("/")),s=Math.min(n.length,i.length),o=s,a=0;a<s;a++)if(n[a]!==i[a]){o=a;break}var l=[];for(a=o;a<n.length;a++)l.push("..");return(l=l.concat(i.slice(o))).join("/")},y._makeLong=function(e){return e},y.dirname=function(e){var t=v(e),n=t[0],i=t[1];return n||i?(i&&(i=i.substr(0,i.length-1)),n+i):"."},y.basename=function(e,t){var n=v(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},y.extname=function(e){return v(e)[3]},y.format=function(e){if(!s.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof e);var t=e.root||"";if(!s.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof e.root);return(e.dir?e.dir+y.sep:"")+(e.base||"")},y.parse=function(e){if(!s.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=v(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return t[1]=t[1]||"",t[2]=t[2]||"",t[3]=t[3]||"",{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},y.sep="/",y.delimiter=":",e.exports=i?d:y,e.exports.posix=y,e.exports.win32=d},540(e){function t(e,t){if(this._maxRetries&&this._retries++<this._maxRetries&&function(e,t,n,i){if(i)return i(e,t);if(e&&e.code&&~["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT","ENOTFOUND","ECONNREFUSED"].indexOf(e.code))return!0;if(t&&t.status){const e=t.status;if(e>=500)return!0;if((e>=400||e<200)&&-1===n.indexOf(e))return!0}return!(!e||!("timeout"in e)||"ECONNABORTED"!==e.code)||e&&"crossDomain"in e}(e,t,this._allowedStatuses,this._retryCallback)){let e;e=this._retries?this._retryDelays[this._retries-1]:0;const t=this;return setTimeout(function(){return t._retry()},e)}const n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)}function n(e,t,n,i){0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),"number"==typeof t&&(t=[t]);const s=t.length,o=e-s;if(0!==o){if(o<0)throw new Error("Cannot have more delays than retries");{const e=t[s-1];for(let n=0;n<o+1;n++)t.push(e)}}return this._maxRetries=e,this._retries=0,this._retryDelays=t||[0],this._allowedStatuses=n||[],this._retryCallback=i,this}e.exports=function(e){const i=e.Request;return i.prototype.oldRetry=i.prototype.retry,i.prototype.retry=n,i.prototype.callback=t,e}},619(e){"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach(function(e){n.prototype[e]=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this._defaults.push({fn:e,args:n}),this}}),n.prototype._setDefaults=function(e){this._defaults.forEach(function(n){var i;e[n.fn].apply(e,function(e){if(Array.isArray(e))return t(e)}(i=n.args)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(i)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?t(e,n):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())})},e.exports=n},585(e,t,n){"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var s;"undefined"!=typeof window?s=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),s=void 0):s=self;var o=n(960),r=n(340),a=n(695),l=n(388),d=n(19),u=n(619);function h(){}e.exports=function(e,n){return"function"==typeof n?new t.Request("GET",e).end(n):1===arguments.length?new t.Request("GET",e):new t.Request(e,n)};var c=t=e.exports;t.Request=$,c.getXHR=function(){if(s.XMLHttpRequest&&(!s.location||"file:"!==s.location.protocol||!s.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw new Error("Browser-only version of superagent could not find XHR")};var p="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function y(e){if(!l(e))return e;var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&v(t,n,e[n]);return t.join("&")}function v(e,t,n){if(void 0!==n)if(null!==n)if(Array.isArray(n))n.forEach(function(n){v(e,t,n)});else if(l(n))for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&v(e,"".concat(t,"[").concat(i,"]"),n[i]);else e.push(encodeURI(t)+"="+encodeURIComponent(n));else e.push(encodeURI(t))}function g(e){for(var t,n,i={},s=e.split("&"),o=0,r=s.length;o<r;++o)-1===(n=(t=s[o]).indexOf("="))?i[decodeURIComponent(t)]="":i[decodeURIComponent(t.slice(0,n))]=decodeURIComponent(t.slice(n+1));return i}function m(e){return/[/+]json($|[^-\w])/.test(e)}function w(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){for(var t,n,i,s,o=e.split(/\r?\n/),r={},a=0,l=o.length;a<l;++a)-1!==(t=(n=o[a]).indexOf(":"))&&(i=n.slice(0,t).toLowerCase(),s=p(n.slice(t+1)),r[i]=s);return r}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&e._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function $(e,t){var n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",function(){var e,t=null,i=null;try{i=new w(n)}catch(e){return(t=new Error("Parser is unable to parse the response")).parse=!0,t.original=e,n.xhr?(t.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,t.status=n.xhr.status?n.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),n.callback(t)}n.emit("response",i);try{n._isResponseOK(i)||(e=new Error(i.statusText||i.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=i,e.status=i.status,n.callback(e,i)):n.callback(null,i)})}function f(e,t,n){var i=c("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i}c.serializeObject=y,c.parseString=g,c.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},c.serialize={"application/x-www-form-urlencoded":y,"application/json":r},c.parse={"application/x-www-form-urlencoded":g,"application/json":JSON.parse},d(w.prototype),w.prototype._parseBody=function(e){var t=c.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&m(this.type)&&(t=c.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},w.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,i="cannot ".concat(t," ").concat(n," (").concat(this.status,")"),s=new Error(i);return s.status=this.status,s.method=t,s.url=n,s},c.Response=w,o($.prototype),a($.prototype),$.prototype.type=function(e){return this.set("Content-Type",c.types[e]||e),this},$.prototype.accept=function(e){return this.set("Accept",c.types[e]||e),this},$.prototype.auth=function(e,t,n){return 1===arguments.length&&(t=""),"object"===i(t)&&null!==t&&(n=t,t=""),n||(n={type:"function"==typeof btoa?"basic":"auto"}),this._auth(e,t,n,function(e){if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")})},$.prototype.query=function(e){return"string"!=typeof e&&(e=y(e)),e&&this._query.push(e),this},$.prototype.attach=function(e,t,n){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},$.prototype._getFormData=function(){return this._formData||(this._formData=new s.FormData),this._formData},$.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},$.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},$.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},$.prototype.ca=$.prototype.agent,$.prototype.buffer=$.prototype.ca,$.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},$.prototype.pipe=$.prototype.write,$.prototype._isHost=function(e){return e&&"object"===i(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},$.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||h,this._finalizeQueryString(),this._end()},$.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout(function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")},this._uploadTimeout))},$.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=c.getXHR();var t=this.xhr,n=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===n){var i;try{i=t.status}catch(e){i=0}if(!i){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var i=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",i.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",i.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var s=this._header["content-type"],o=this._serializer||c.serialize[s?s.split(";")[0]:""];!o&&m(s)&&(o=c.serialize["application/json"]),o&&(n=o(n))}for(var r in this.header)null!==this.header[r]&&Object.prototype.hasOwnProperty.call(this.header,r)&&t.setRequestHeader(r,this.header[r]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},c.agent=function(){return new u},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(e){u.prototype[e.toLowerCase()]=function(t,n){var i=new c.Request(e,t);return this._setDefaults(i),n&&i.end(n),i}}),u.prototype.del=u.prototype.delete,c.get=function(e,t,n){var i=c("GET",e);return"function"==typeof t&&(n=t,t=null),t&&i.query(t),n&&i.end(n),i},c.head=function(e,t,n){var i=c("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&i.query(t),n&&i.end(n),i},c.options=function(e,t,n){var i=c("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i},c.del=f,c.delete=f,c.patch=function(e,t,n){var i=c("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i},c.post=function(e,t,n){var i=c("POST",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i},c.put=function(e,t,n){var i=c("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i}},388(e){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){return null!==e&&"object"===t(e)}},695(e,t,n){"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var s=n(388);function o(e){if(e)return function(e){for(var t in o.prototype)Object.prototype.hasOwnProperty.call(o.prototype,t)&&(e[t]=o.prototype[t]);return e}(e)}e.exports=o,o.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},o.prototype.parse=function(e){return this._parser=e,this},o.prototype.responseType=function(e){return this._responseType=e,this},o.prototype.serialize=function(e){return this._serializer=e,this},o.prototype.timeout=function(e){if(!e||"object"!==i(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},o.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var r=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];o.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!==t.status)return!0;if(e){if(e.code&&r.includes(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},o.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},o.prototype.then=function(e,t){var n=this;if(!this._fullfilledPromise){var i=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(e,t){i.on("abort",function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)t(n.timedoutError);else{var e=new Error("Aborted");e.code="ABORTED",e.status=n.status,e.method=n.method,e.url=n.url,t(e)}}),i.end(function(n,i){n?t(n):e(i)})})}return this._fullfilledPromise.then(e,t)},o.prototype.catch=function(e){return this.then(void 0,e)},o.prototype.use=function(e){return e(this),this},o.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},o.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},o.prototype.get=function(e){return this._header[e.toLowerCase()]},o.prototype.getHeader=o.prototype.get,o.prototype.set=function(e,t){if(s(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},o.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},o.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(s(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.field(n,e[n]);return this}if(Array.isArray(t)){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&this.field(e,t[i]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),this._getFormData().append(e,t),this},o.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},o.prototype._auth=function(e,t,n,i){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(i("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},o.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},o.prototype.redirects=function(e){return this._maxRedirects=e,this},o.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},o.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},o.prototype.send=function(e){var t=s(e),n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&s(this._data))for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(this._data[i]=e[i]);else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"===n?this._data?"".concat(this._data,"&").concat(e):e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||n||this.type("json"),this},o.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},o.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.slice(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.slice(0,t)+"?"+n.join("&")}}},o.prototype._appendQueryString=function(){console.warn("Unsupported")},o.prototype._timeoutError=function(e,t,n){if(!this._aborted){var i=new Error("".concat(e+t,"ms exceeded"));i.timeout=t,i.code="ECONNABORTED",i.errno=n,this.timedout=!0,this.timedoutError=i,this.abort(),this.callback(i)}},o.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},19(e,t,n){"use strict";var i=n(897);function s(e){if(e)return function(e){for(var t in s.prototype)Object.prototype.hasOwnProperty.call(s.prototype,t)&&(e[t]=s.prototype[t]);return e}(e)}e.exports=s,s.prototype.get=function(e){return this.header[e.toLowerCase()]},s.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=i.type(t);var n=i.params(t);for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(this[s]=n[s]);this.links={};try{e.link&&(this.links=i.parseLinks(e.link))}catch(e){}},s.prototype._setStatusProperties=function(e){var t=e/100|0;this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e}},897(e,t){"use strict";t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){return e.split(/ *; */).reduce(function(e,t){var n=t.split(/ *= */),i=n.shift(),s=n.shift();return i&&s&&(e[i]=s),e},{})},t.parseLinks=function(e){return e.split(/ *, */).reduce(function(e,t){var n=t.split(/ *; */),i=n[0].slice(1,-1);return e[n[1].split(/ *= */)[1].slice(1,-1)]=i,e},{})},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},597(e){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},98(e){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},818(e,t,n){var i=/%[sdj%]/g;t.format=function(e){if(!g(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(r(arguments[n]));return t.join(" ")}n=1;for(var s=arguments,o=s.length,a=String(e).replace(i,function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(s[n++]);case"%d":return Number(s[n++]);case"%j":try{return JSON.stringify(s[n++])}catch(e){return"[Circular]"}default:return e}}),l=s[n];n<o;l=s[++n])y(l)||!$(l)?a+=" "+l:a+=" "+r(l);return a},t.deprecate=function(e,i){if(m(n.g.process))return function(){return t.deprecate(e,i).apply(this,arguments)};if(!0===process.noDeprecation)return e;var s=!1;return function(){if(!s){if(process.throwDeprecation)throw new Error(i);process.traceDeprecation?console.trace(i):console.error(i),s=!0}return e.apply(this,arguments)}};var s,o={};function r(e,n){var i={seen:[],stylize:l};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),p(n)?i.showHidden=n:n&&t._extend(i,n),m(i.showHidden)&&(i.showHidden=!1),m(i.depth)&&(i.depth=2),m(i.colors)&&(i.colors=!1),m(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=a),d(i,e,i.depth)}function a(e,t){var n=r.styles[t];return n?"["+r.colors[n][0]+"m"+e+"["+r.colors[n][1]+"m":e}function l(e,t){return e}function d(e,n,i){if(e.customInspect&&n&&T(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var s=n.inspect(i,e);return g(s)||(s=d(e,s,i)),s}var o=function(e,t){if(m(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return v(t)?e.stylize(""+t,"number"):p(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,n);if(o)return o;var r=Object.keys(n),a=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(r);if(e.showHidden&&(r=Object.getOwnPropertyNames(n)),b(n)&&(r.indexOf("message")>=0||r.indexOf("description")>=0))return u(n);if(0===r.length){if(T(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(w(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(f(n))return e.stylize(Date.prototype.toString.call(n),"date");if(b(n))return u(n)}var $,k="",j=!1,O=["{","}"];return c(n)&&(j=!0,O=["[","]"]),T(n)&&(k=" [Function"+(n.name?": "+n.name:"")+"]"),w(n)&&(k=" "+RegExp.prototype.toString.call(n)),f(n)&&(k=" "+Date.prototype.toUTCString.call(n)),b(n)&&(k=" "+u(n)),0!==r.length||j&&0!=n.length?i<0?w(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),$=j?function(e,t,n,i,s){for(var o=[],r=0,a=t.length;r<a;++r)F(t,String(r))?o.push(h(e,t,n,i,String(r),!0)):o.push("");return s.forEach(function(s){s.match(/^\d+$/)||o.push(h(e,t,n,i,s,!0))}),o}(e,n,i,a,r):r.map(function(t){return h(e,n,i,a,t,j)}),e.seen.pop(),function(e,t,n){return e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}($,k,O)):O[0]+k+O[1]}function u(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,i,s,o){var r,a,l;if((l=Object.getOwnPropertyDescriptor(t,s)||{value:t[s]}).get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),F(i,s)||(r="["+s+"]"),a||(e.seen.indexOf(l.value)<0?(a=y(n)?d(e,l.value,null):d(e,l.value,n-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n")):a=e.stylize("[Circular]","special")),m(r)){if(o&&s.match(/^\d+$/))return a;(r=JSON.stringify(""+s)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(r=r.substr(1,r.length-2),r=e.stylize(r,"name")):(r=r.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),r=e.stylize(r,"string"))}return r+": "+a}function c(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function y(e){return null===e}function v(e){return"number"==typeof e}function g(e){return"string"==typeof e}function m(e){return void 0===e}function w(e){return $(e)&&"[object RegExp]"===k(e)}function $(e){return"object"==typeof e&&null!==e}function f(e){return $(e)&&"[object Date]"===k(e)}function b(e){return $(e)&&("[object Error]"===k(e)||e instanceof Error)}function T(e){return"function"==typeof e}function k(e){return Object.prototype.toString.call(e)}function j(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(m(s)&&(s=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!o[e])if(new RegExp("\\b"+e+"\\b","i").test(s)){var n=process.pid;o[e]=function(){var i=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,i)}}else o[e]=function(){};return o[e]},t.inspect=r,r.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},r.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=c,t.isBoolean=p,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=g,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=m,t.isRegExp=w,t.isObject=$,t.isDate=f,t.isError=b,t.isFunction=T,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(98);var O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function F(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[j((e=new Date).getHours()),j(e.getMinutes()),j(e.getSeconds())].join(":"),[e.getDate(),O[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(597),t._extend=function(e,t){if(!t||!$(t))return e;for(var n=Object.keys(t),i=n.length;i--;)e[n[i]]=t[n[i]];return e}},548(){},799(){},545(){},965(){}},t={};function n(i){var s=t[i];if(void 0!==s)return s.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var i={};return(()=>{"use strict";n.d(i,{default:()=>no});var e,t=n(585),s=n.n(t);class o{constructor(){}static constructFromObject(e,t){if(e){if(t=t||new o,e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links)for(const n of e.links)if(n.hasOwnProperty("rel")&&n.hasOwnProperty("href"))switch(n.rel){case"first":t.linkFirst=n.href;break;case"prev":t.linkPrev=n.href;break;case"next":t.linkNext=n.href;break;case"last":t.linkLast=n.href}e.hasOwnProperty("totalAvailableResults")&&(t.resultsTotal=e.totalAvailableResults)}return t}getFirstPage(){return this.isFirstPage()?Promise.reject("Cannot navigate to first page : already on first page"):null===this.linkFirst?Promise.reject("No link to first page provided in previous API response"):this._getLink(this.linkFirst)}getPrevPage(){return this.isFirstPage()?Promise.reject("Cannot navigate to previous page : already on first page"):null===this.linkPrev?Promise.reject("No link to previous page provided in previous API response"):this._getLink(this.linkPrev)}getNextPage(){return this.isLastPage()?Promise.reject("Cannot navigate to next page : already on last page"):null===this.linkNext?Promise.reject("No link to next page provided in previous API response"):this._getLink(this.linkNext)}getLastPage(){return this.isLastPage()?Promise.reject("Cannot navigate to last page : already on last page"):null===this.linkLast?Promise.reject("No link to last page provided in previous API response"):this._getLink(this.linkLast)}currentPage(){return null===this.page?0:this.page}countPages(){return null===this.resultsPerPage||null===this.resultsTotal||0===this.resultsPerPage?1:Math.ceil(this.resultsTotal/this.resultsPerPage)}isFirstPage(){return 0===this.currentPage()}isLastPage(){return this.currentPage()===this.countPages()-1}populatePaginationMetadata(e,t,n){this.apiClient=e,this.page=t,this.resultsPerPage=n}_getLink(e){null===this.apiClient&&(this.apiClient=le.instance);const t=this.constructor;return this.apiClient.callApi(e,"GET",{},{},{},{},{},[],[],["application/json"],t)}}o.prototype.linkFirst=null,o.prototype.linkPrev=null,o.prototype.linkNext=null,o.prototype.linkLast=null,o.prototype.apiClient=null,o.prototype.page=null,o.prototype.resultsPerPage=null,o.prototype.resultsTotal=null;var r=new Uint8Array(16);function a(){if(!e&&!(e="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 e(r)}const l=/^(?:[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;for(var d=[],u=0;u<256;++u)d.push((u+256).toString(16).substr(1));const h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(d[e[t+0]]+d[e[t+1]]+d[e[t+2]]+d[e[t+3]]+"-"+d[e[t+4]]+d[e[t+5]]+"-"+d[e[t+6]]+d[e[t+7]]+"-"+d[e[t+8]]+d[e[t+9]]+"-"+d[e[t+10]]+d[e[t+11]]+d[e[t+12]]+d[e[t+13]]+d[e[t+14]]+d[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&l.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},c=function(e,t,n){var i=(e=e||{}).random||(e.rng||a)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var s=0;s<16;++s)t[n+s]=i[s];return t}return h(i)};var p=n(540),y=n.n(p),v=n(545),g=n.n(v),m=n(799),w=n.n(m),$=n(784),f=n.n($),b=n(548);const T={DEFAULT:"DEFAULT",constructFromObject:function(e){if("string"==typeof e||e instanceof String)return T[e];throw new Error("Received object name is not an instance of String")},validate:function(e){if(null!=e){if(e===T.DEFAULT)return;throw new Error("Invalid : must be ValidationScopes.{ }")}}};Object.freeze(T);const k=T;class j{static validateMaximum(e,t){return!(null===t||e>t)}static validateMinimum(e,t){return!(null===t||e<t)}static validateExclusiveMaximum(e,t){return!(null===t||e>t)}static validateExclusiveMinimum(e,t){return!(null===t||e>t)}static validateMultipleOf(e,t){return!(null===t||e%t===0)}static validateMaxLength(e,t){return!(null===t||e.length>t)}static validateMinLength(e,t){return!(null===t||e.length<t)}static validatePattern(e,t){return!(null===t||null===e.match(t))}static validateMaxItems(e,t){return!(null===t||e.length>t)}static validateMinItems(e,t){return!(null===t||e.length<t)}static validateUniqueItems(e,t){return!(null===t||!t||e.length!==new Set(e).size)}}class O{constructor(e,t){this.name=e,this.message=t}getName(){return this.name}setName(e){this.name=e}getMessage(){return this.message}setMessage(e){this.message=e}toJson(){return{name:this.getName(),message:this.getMessage()}}}var F=new WeakSet;class C{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=F),t.add(e),this.$objectType="common.v1.config.Flag",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new C,e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value&&t.setValue(e.value),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getValue(){return this.value}setValue(e){this.value=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!j.validateMaxLength(this.name,128))return new O("name","does not satisfy required maxLength constraint: 128");if(!j.validateMinLength(this.name,3))return new O("name","does not satisfy required minLength constraint: 3")}return"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("value","undefined or null")}}function P(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}C.prototype.name=void 0,C.prototype.value=!1,C.prototype.$reserved=void 0,C.prototype.$objectType=void 0,C.prototype.$unknownFields=void 0;var S=new WeakSet;class E{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=S),t.add(e),this.$objectType="common.v1.config.MapOfStringWrapper",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new E,e.hasOwnProperty("map")&&null!==e.map&&void 0!==e.map&&t.setMap(e.map),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMap(){return this.map}setMap(e){this.map=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMap()&&null!==this.getMap()?{map:P(S,this,D).call(this,this.getMap(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMap()&&null!==this.getMap()?{map:P(S,this,D).call(this,this.getMap())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"map"!==t||void 0!==this.map&&null!==this.map?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("map","undefined or null")}}function D(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function R(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}E.prototype.map=void 0,E.prototype.$reserved=void 0,E.prototype.$objectType=void 0,E.prototype.$unknownFields=void 0;var U=new WeakSet;class I{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=U),t.add(e),this.$objectType="common.v1.config.KVPair",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r,a;if(e){if(t=t||new I,e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value)if(Array.isArray(e.value))if(0===e.value.length)t.setValue([]);else{for(r=[],i=e.value,a=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],o=0;o<i.length;o++)switch(a){case"string":case"integer":case"number":r.push(i[o]);break;case"common.v1.config.MapOfStringWrapper":s=E.constructFromObject(i[o],void 0),r.push(s);break;default:throw"Unknown list of type "+a+" in data"}t.setValue(r)}else switch(a=e.value.hasOwnProperty("$objectType")?e.value.$objectType:typeof e.value,a){case"string":case"boolean":case"number":t.setValue(e.value);break;case"object":t.setValue(new Map(Object.entries(e.value)));break;default:throw"Unknown datatype "+a+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getValue(){return this.value}setValue(e){this.value=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson(!1):Array.isArray(this.getValue())?this.getValue().map(e=>void 0!==e.toJson?e.toJson(!1):e):R(U,this,A).call(this,this.getValue(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson():Array.isArray(this.getValue())?this.getValue().map(e=>void 0!==e.toJson?e.toJson():e):R(U,this,A).call(this,this.getValue())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!j.validateMaxLength(this.name,128))return new O("name","does not satisfy required maxLength constraint: 128");if(!j.validateMinLength(this.name,3))return new O("name","does not satisfy required minLength constraint: 3")}return"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("value","undefined or null")}}function A(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}I.prototype.name=void 0,I.prototype.value=void 0,I.prototype.$reserved=void 0,I.prototype.$objectType=void 0,I.prototype.$unknownFields=void 0;const M={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INFO:"INFO",WARNING:"WARNING",ERROR:"ERROR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(M).find(t=>M[t]===e);return null==t?M.$UNKNOWN:M[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case M.$UNKNOWN:case M.$REDACTED:case M.INFO:case M.WARNING:case M.ERROR:return;default:throw new Error("Invalid : must be MessageSeverity.{ $UNKNOWN|$REDACTED|INFO|WARNING|ERROR }")}}};Object.freeze(M);const N=M;var x=new WeakSet;class V{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=x),t.add(e),this.$objectType="common.v1.config.Message",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new V,e.hasOwnProperty("code")&&null!==e.code&&void 0!==e.code&&t.setCode(e.code),e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&t.setMessage(e.message),e.hasOwnProperty("locale")&&null!==e.locale&&void 0!==e.locale&&t.setLocale(e.locale),e.hasOwnProperty("severity")&&null!==e.severity&&void 0!==e.severity&&t.setSeverity(N.constructFromObject(e.severity)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getCode(){return this.code}setCode(e){this.code=e}getMessage(){return this.message}setMessage(e){this.message=e}getLocale(){return this.locale}setLocale(e){this.locale=e}getSeverity(){return this.severity}setSeverity(e){this.severity=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{},...void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{},...void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{},...void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"code"!==t||void 0!==this.code&&null!==this.code?"message"!==t||void 0!==this.message&&null!==this.message?"locale"!==t||void 0!==this.locale&&null!==this.locale?"severity"!==t||void 0!==this.severity&&null!==this.severity?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("severity","undefined or null"):new O("locale","undefined or null"):new O("message","undefined or null"):new O("code","undefined or null")}}V.prototype.code=void 0,V.prototype.message=void 0,V.prototype.locale="en_US",V.prototype.severity=void 0,V.prototype.$reserved=void 0,V.prototype.$objectType=void 0,V.prototype.$unknownFields=void 0;var L=new WeakSet;class B{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=L),t.add(e),this.$objectType="common.v1.response.ApiLink",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new B,e.hasOwnProperty("href")&&null!==e.href&&void 0!==e.href&&t.setHref(e.href),e.hasOwnProperty("rel")&&null!==e.rel&&void 0!==e.rel&&t.setRel(e.rel),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getHref(){return this.href}setHref(e){this.href=e}getRel(){return this.rel}setRel(e){this.rel=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getHref()&&null!==this.getHref()?{href:this.getHref()}:{},...void 0!==this.getRel()&&null!==this.getRel()?{rel:this.getRel()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"href"!==t||void 0!==this.href&&null!==this.href?"rel"!==t||void 0!==this.rel&&null!==this.rel?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("rel","undefined or null"):new O("href","undefined or null")}}B.prototype.href=void 0,B.prototype.rel=void 0,B.prototype.$reserved=void 0,B.prototype.$objectType=void 0,B.prototype.$unknownFields=void 0;var W,z=new WeakSet;class J{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=z),t.add(e),this.$objectType="common.v1.response.ApiResponseMetadata",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new J,e.hasOwnProperty("flags")&&null!==e.flags&&void 0!==e.flags){for(r=[],i=e.flags,o=0;o<i.length;o++)s=C.constructFromObject(i[o],void 0),r.push(s);t.setFlags(r)}if(e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(r=[],i=e.links,o=0;o<i.length;o++)s=B.constructFromObject(i[o],void 0),r.push(s);t.setLinks(r)}if(e.hasOwnProperty("totalAvailableResults")&&null!==e.totalAvailableResults&&void 0!==e.totalAvailableResults&&t.setTotalAvailableResults(e.totalAvailableResults),e.hasOwnProperty("messages")&&null!==e.messages&&void 0!==e.messages){for(r=[],i=e.messages,o=0;o<i.length;o++)s=V.constructFromObject(i[o],void 0),r.push(s);t.setMessages(r)}if(e.hasOwnProperty("extraInfo")&&null!==e.extraInfo&&void 0!==e.extraInfo){for(r=[],i=e.extraInfo,o=0;o<i.length;o++)s=I.constructFromObject(i[o],void 0),r.push(s);t.setExtraInfo(r)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getFlags(){return this.flags}setFlags(e){this.flags=e}getLinks(){return this.links}setLinks(e){this.links=e}getTotalAvailableResults(){return this.totalAvailableResults}setTotalAvailableResults(e){this.totalAvailableResults=e}getMessages(){return this.messages}setMessages(e){this.messages=e}getExtraInfo(){return this.extraInfo}setExtraInfo(e){this.extraInfo=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getFlags()&&null!==this.getFlags()?{flags:this.getFlags().map(e=>e.toJson(!1))}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTotalAvailableResults()&&null!==this.getTotalAvailableResults()?{totalAvailableResults:this.getTotalAvailableResults()}:{},...void 0!==this.getMessages()&&null!==this.getMessages()?{messages:this.getMessages().map(e=>e.toJson(!1))}:{},...void 0!==this.getExtraInfo()&&null!==this.getExtraInfo()?{extraInfo:this.getExtraInfo().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("flags"===t){if(void 0===this.flags||null===this.flags)return new O("flags","undefined or null");if(!j.validateMaxItems(this.flags,20))return new O("flags","does not satisfy required maxItems constraint: 20")}if("links"===t){if(void 0===this.links||null===this.links)return new O("links","undefined or null");if(!j.validateMaxItems(this.links,20))return new O("links","does not satisfy required maxItems constraint: 20")}if("totalAvailableResults"===t&&(void 0===this.totalAvailableResults||null===this.totalAvailableResults))return new O("totalAvailableResults","undefined or null");if("messages"===t){if(void 0===this.messages||null===this.messages)return new O("messages","undefined or null");if(!j.validateMaxItems(this.messages,20))return new O("messages","does not satisfy required maxItems constraint: 20")}if("extraInfo"===t){if(void 0===this.extraInfo||null===this.extraInfo)return new O("extraInfo","undefined or null");if(!j.validateMaxItems(this.extraInfo,20))return new O("extraInfo","does not satisfy required maxItems constraint: 20")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}function _(e,t,n){G(e,t),t.set(e,n)}function G(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function q(e,t){return e.get(K(e,t))}function H(e,t,n){return e.set(K(e,t),n),n}function K(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}J.prototype.flags=void 0,J.prototype.links=void 0,J.prototype.totalAvailableResults=void 0,J.prototype.messages=void 0,J.prototype.extraInfo=void 0,J.prototype.$reserved=void 0,J.prototype.$objectType=void 0,J.prototype.$unknownFields=void 0,y()(s());var X=new WeakMap,Z=new WeakMap,Y=new WeakMap,Q=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakMap,ie=new WeakMap,se=new WeakMap,oe=new WeakMap,re=new WeakMap,ae=new WeakSet;class le{constructor(){var e;G(this,e=ae),e.add(this),_(this,X,void 0),_(this,Z,void 0),_(this,Y,void 0),_(this,Q,void 0),_(this,ee,void 0),_(this,te,void 0),_(this,ne,void 0),_(this,ie,void 0),_(this,se,void 0),_(this,oe,void 0),_(this,re,void 0),H(re,this,Object.freeze({DEBUG:{key:"DEBUG",value:Symbol(0)},INFO:{key:"INFO",value:Symbol(1)},WARN:{key:"WARN",value:Symbol(2)},ERROR:{key:"ERROR",value:Symbol(3)}})),this.scheme="https",H(ie,this,"undefined"==typeof self?"localhost":self.location.hostname),this.port="undefined"==typeof self?"9440":self.location.port,this.authentications={apiKeyAuthScheme:{type:"apiKey",in:"header",name:"X-ntnx-api-key"},basicAuthScheme:{type:"basic"}},this.defaultHeaders={},H(ee,this,3e4),H(te,this,3e4),H(ne,this,108e5),this.readTimeout=q(te,this),this.connectTimeout=q(ee,this),this.cache=!0,H(Z,this,null),this.maxRedirects=1,this.maxRetryAttempts=5,this.retryInterval=3e3,this.withCredentials=!1,"undefined"==typeof self&&(this.agent=new(s().agent)),this.requestAgent=null,H(oe,this,null),this.allowVersionNegotiation=!0,H(se,this,!1),this.debug=!1,H(Y,this,null),this.username=null,this.password=null,H(Q,this,!0),this.downloadDestination=null,this.loggerFile=null}set verifySsl(e){this.requestAgent=e?null:new(g().Agent)({rejectUnauthorized:e}),H(Q,this,e)}get verifySsl(){return q(Q,this)}set host(e){H(ie,this,e),H(se,this,!1),H(oe,this,null)}get host(){return q(ie,this)}set loggerFile(e){null!=e&&(("string"==typeof e||e instanceof String)&&(e=w().createWriteStream(e,{flags:"a"})),H(Y,this,new console.Console({stdout:e,stderr:e})))}addDefaultHeader(e,t){"Authorization"===e&&H(Z,this,null),this.defaultHeaders[e]=t}paramToString(e){return null==e||null==e?"":e instanceof Date?e.toJSON():e.toString()}buildUrl(e,t){if(e.match(/^\//)||(e="/"+e),void 0!==q(oe,this)&&null!==q(oe,this)&&null!==q(oe,this).match(/v\d+\.\d+(\.[a|b]\d+)?/)&&"v4.2.b1"!==q(oe,this)){K(ae,this,ke).call(this,q(re,this).INFO,null,"Changing uri",e,"to negotiated version",q(oe,this));var n=new RegExp("(?<=/[-\\w]+/)v\\d+\\.\\d+(\\.[a|b]\\d+)?(?=/.*)","i");e=e.replace(n,q(oe,this))}H(X,this,"undefined"==typeof self?this.scheme+":":self.location.protocol);let i="";""!==q(X,this)&&""!==this.host&&""!==this.port?i=q(X,this)+"//"+this.host+":"+this.port:"undefined"!=typeof self&&(i=self.origin);var s=i+e;return s.replace(/\{([\w-]+)\}/g,(e,n)=>{var i;return i=t.hasOwnProperty(n)?this.paramToString(t[n]):e,encodeURIComponent(i)})}buildCollectionParam(e,t){if(null==e)return null;switch(t){case"csv":return e.map(this.paramToString).join(",");case"ssv":return e.map(this.paramToString).join(" ");case"tsv":return e.map(this.paramToString).join("\t");case"pipes":return e.map(this.paramToString).join("|");case"multi":return e.map(this.paramToString);default:throw new Error("Unknown collection format: "+t)}}setApiKey(e){this.authentications.apiKeyAuthScheme.apiKey=null==e||"string"==typeof e||e instanceof String?e:void 0}addEtagToReservedMap(e,t){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("etag")){let i=e.headers.etag;if(void 0!==t.getData())if(Array.isArray(t.getData())&&t.getData().length>0)for(var n of t.getData())n.hasOwnProperty("$reserved")&&void 0!==n.get$Reserved()&&(n.get$Reserved().ETag=i);else t.getData().hasOwnProperty("$reserved")&&void 0!==t.getData().get$Reserved()&&(t.getData().get$Reserved().ETag=i)}return t}static getEtag(e){let t=null;return void 0!==e&&(e.hasOwnProperty("$reserved")&&void 0!==e.get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.get$Reserved(),"ETag")),null==t&&e.hasOwnProperty("data")&&e.getData().hasOwnProperty("$reserved")&&void 0!==e.getData().get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.getData().get$Reserved(),"ETag"))),t}static getValueForCaseInsensitiveKeyMatch(e,t){if(e&&t){const n=t.toLowerCase(),i=Object.keys(e).find(e=>e.toLowerCase()===n);return i?e[i]:null}return null}getNegotiatedVersion(){return q(oe,this)}negotiateVersion(e,t){return new Promise(n=>{!0===this.allowVersionNegotiation&&!1===q(se,this)?this.callApiInternal("/api/aiops/unversioned/info","OPTIONS",{},{},{},{},null,t,[],["application/json"],Object).then(({data:t,response:i})=>{if(200===i.status&&t.hasOwnProperty("data")&&null!==t.data){const i=t.data,s="v4.2.b1";if(K(ae,this,we).call(this,K(ae,this,$e).call(this,i),K(ae,this,$e).call(this,s)))return K(ae,this,ke).call(this,q(re,this).WARN,null,"Server version",i,"is below minimum supported version",s,". Version negotiation will not be performed."),H(oe,this,null),H(se,this,!1),void n(e);H(oe,this,K(ae,this,me).call(this,"v4.2.b1",i)),H(se,this,!0),K(ae,this,ke).call(this,q(re,this).INFO,null,"Negotiated Version with server :",q(oe,this)),n(e)}else K(ae,this,ke).call(this,q(re,this).ERROR,null,"Could not fetch supported versions from server"),H(oe,this,null),H(se,this,!1),n(e)}).catch(t=>{K(ae,this,ke).call(this,q(re,this).ERROR,null,"Could not fetch supported versions from server"),H(oe,this,null),H(se,this,!1),n(e)}):n(e)})}callApi(e,t,n,i,s,o,r,a,l,d,u){return this.negotiateVersion(this,a).then(function(h){return h.callApiInternal(e,t,n,i,s,o,r,a,l,d,u)})}callApiInternal(e,t,i,o,r,a,l,d,u,h,p){var y=this.buildUrl(e,i);const v="undefined"!=typeof window&&void 0!==window.document;let g=["application/octet-stream","application/pdf","application/zip"];if(h&&h.length>0&&h.some(e=>g.includes(e))&&v&&this.downloadDestination)return new Promise((e,n)=>{const i=K(ae,this,Ce).call(this,y,t,o,r,l,d,u,h);fetch(i.url,i.options).then(t=>{if(!t.ok){const e=new Error(`HTTP error ${t.status}`);e.status=t.status,K(ae,this,ke).call(this,q(re,this).ERROR,null,"Error downloading file:",e),n(e)}if(!(this.downloadDestination instanceof WritableStream)){let e="Incompatible downloadDestination for Browser Environment, must be WritableStream";K(ae,this,ke).call(this,q(re,this).ERROR,null,e),n(e)}const i=t.body.getReader(),s=this.downloadDestination.getWriter(),o=()=>i.read().then(({done:n,value:i})=>(n&&(s.close(),K(ae,this,ke).call(this,q(re,this).INFO,null,"Finished streaming response"),e({data:{},response:t})),s.write(i).then(o)));return o()}).catch(e=>{K(ae,this,ke).call(this,q(re,this).ERROR,null,"Caught the following error :",e),n(e)})});var m=s()(t,y);if(m.oldCallback=m.callback,m.callback=function(e,t){if(t&&t.status){const e=t.status;if(e>=400&&408!==e&&429!==e&&503!==e&&504!==e&&(this._maxRetries=0),401===t.status&&this.header.Cookie&&(this.unset("Cookie"),this._maxRetries=1),429===e){let e=t.headers["retry-after"];if(e){let t=1e3*parseInt(e,10);this._retryDelays[this._retries]=t}}}this.oldCallback(e,t)},K(ae,this,pe).call(this,m,d),"GET"===t.toUpperCase()&&!1===this.cache&&(o._=(new Date).getTime()),m.query(K(ae,this,ce).call(this,o)),m.set(this.defaultHeaders).set(K(ae,this,ce).call(this,r)),!(null!==this.defaultHeaders["NTNX-Request-Id"]&&void 0!==this.defaultHeaders["NTNX-Request-Id"]||null!==r["NTNX-Request-Id"]&&void 0!==r["NTNX-Request-Id"])){let e=c();m.set(K(ae,this,ce).call(this,{"NTNX-Request-Id":e}))}v||(this.downloadDestination=".",m.set(K(ae,this,ce).call(this,{"User-Agent":"Nutanix-aiops-js-client/4.2.2-beta.1"}))),this.requestAgent&&m.agent(this.requestAgent);var $={};$.response=K(ae,this,fe).call(this,this.connectTimeout,q(ee,this)),$.deadline=K(ae,this,fe).call(this,this.readTimeout,q(te,this)),m.timeout($);var f=r.hasOwnProperty("Content-Type")?r["Content-Type"]:K(ae,this,ue).call(this,u);if(f?"multipart/form-data"!=f&&m.type(f):m.header["Content-Type"]||m.type("application/json"),K(ae,this,ke).call(this,q(re,this).INFO,null,"Request URL :",t,y),K(ae,this,ke).call(this,q(re,this).DEBUG,K(ae,this,Oe),"Request Headers :",void 0===m.header?"":m.header),"application/x-www-form-urlencoded"===f)m.send(K(ae,this,ce).call(this,a));else if("multipart/form-data"==f){var b=K(ae,this,ce).call(this,a);for(var T in b)b.hasOwnProperty(T)&&(K(ae,this,he).call(this,b[T])?m.attach(T,b[T]):m.field(T,b[T]))}else{if("application/octet-stream"===f&&null!=l&&"function"==typeof l.pipe){if(K(ae,this,ke).call(this,q(re,this).INFO,null,"Piping octet-stream request"),"function"==typeof l.pipe)l.pipe(m);else{let e;try{e=n(965)}catch(e){K(ae,this,ke).call(this,q(re,this).ERROR,null,"Error fetching steam/web")}l instanceof e.ReadableStream?l.pipeTo(new e.WritableStream({write(e){m.write(e)},close(){K(ae,this,ke).call(this,q(re,this).INFO,null,"READABLE STREAM CLOSED")},abort(e){K(ae,this,ke).call(this,q(re,this).ERROR,null,"READABLE STREAM ABORTED")}})):m.send(l)}return new Promise((t,n)=>{m.on("error",e=>{K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Caught the following error :",e),n(e)}).on("response",i=>{K(ae,this,Fe).call(this,i,e,o,p,t,n)})})}["POST","PUT","PATCH"].includes(t.toUpperCase())&&l&&m.send(l)}"Blob"==typeof p?m.responseType("blob"):"String"===p&&m.responseType("string"),K(ae,this,Te).call(this,m),K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Request Body :",void 0===m._data?"":m._data);var k=r.hasOwnProperty("Accept")&&null!=r.Accept?r.Accept:h.join(", ");return k&&m.accept(k),new Promise((n,i)=>{m.buffer(!1).redirects(0).retry(this.maxRetryAttempts,this.retryInterval,[]).withCredentials(this.withCredentials).on("error",e=>{K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Caught the following error :",e)}).end((r,a)=>{if(r)K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Caught error during the request!"),K(ae,this,ke).call(this,q(re,this).ERROR,null,r),404===r.status&&(H(se,this,!1),H(oe,this,null)),null!==r.response&&void 0!==r.response?r.data=K(ae,this,ve).call(this,r.response,p):r.data=K(ae,this,ye).call(this,r),i(r);else{K(ae,this,ke).call(this,q(re,this).INFO,null,"Response Status :",a.status),K(ae,this,ke).call(this,q(re,this).DEBUG,K(ae,this,Oe),"Response Headers :",a.headers);let r="";if(a.headers.hasOwnProperty("content-type")&&(r=a.headers["content-type"]),g.includes(r)){if(!v){let e=this.downloadDestination+"/downloaded_file_"+Date.now()+".txt",t=w().createWriteStream(e);K(ae,this,Pe).call(this,a,t,e,n,i,p)}}else if(302==a.status){let e=this.downloadDestination+"/downloaded_file_"+Date.now()+".txt",o=this;K(ae,this,ke).call(this,q(re,this).INFO,null,"Redirecting to :",a.headers.location);var l=s()(t,a.headers.location);l.set(m.header),a.headers.hasOwnProperty("x-redirect-token")&&(K(ae,this,ke).call(this,q(re,this).INFO,null,"Writing X-Redirect-Token into Cookie"),l.set("Cookie",a.headers["x-redirect-token"])),this.requestAgent&&l.agent(this.requestAgent),l.redirects(0),l.withCredentials(this.withCredentials),l.buffer(!1);let r=w().createWriteStream(e);l.pipe(r),l.on("response",function(t){K(ae,o,ke).call(o,q(re,o).INFO,null,"Received response after redirection :",t.status),K(ae,o,Pe).call(o,t,r,e,n,i,p)})}else K(ae,this,Fe).call(this,a,e,o,p,n,i)}})})}static addEtagReferenceToHeader(e,t){if(null!=e&&e.hasOwnProperty("$reserved")&&e.$reserved.hasOwnProperty("ETag")){let n=e.$reserved.ETag;null!=n&&""!==n&&(t["If-Match"]=n)}}static parseDate(e){return new Date(e)}static parseQueryParam(e,t,n,i){let s=null;if(void 0!==t&&t.hasOwnProperty(n)&&(s=t[n]),null===s&&("string"==typeof e||e instanceof String)){const t=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=e.match(new RegExp(`${t}=([0-9]+)`));i&&(s=i[1])}return null===s&&(s=i),s}static convertToType(e,t){if(null==e)return e;switch(t){case"Boolean":return Boolean(e);case"Integer":return parseInt(e,10);case"Number":return parseFloat(e);case"String":return String(e);case"Date":return le.parseDate(String(e));case"Blob":return e;default:if(t===Object)return e;if("function"==typeof t)return t.constructFromObject(e);if(Array.isArray(t)){var n=t[0];return e.map(e=>le.convertToType(e,n))}if("object"==typeof t){var i,s;for(var o in t)if(t.hasOwnProperty(o)){i=o,s=t[o];break}var r={};for(var o in e)if(e.hasOwnProperty(o)){var a=le.convertToType(o,i),l=le.convertToType(e[o],s);r[a]=l}return r}return e}}static constructFromObject(e,t,n){if(Array.isArray(e))for(var i=0;i<e.length;i++)e.hasOwnProperty(i)&&(t[i]=le.convertToType(e[i],n));else for(var s in e)e.hasOwnProperty(s)&&(t[s]=le.convertToType(e[s],n))}}function de(e){return Boolean(null!=e&&e.match(/^application\/json(;.*)?$/i))}function ue(e){for(var t=0;t<e.length;t++)if(K(ae,this,de).call(this,e[t]))return e[t];return e[0]}function he(e){{let t;try{t=n(799)}catch(e){}if(t&&t.ReadStream&&e instanceof t.ReadStream)return!0}return"function"==typeof Buffer&&e instanceof Buffer||"function"==typeof b.Blob&&e instanceof b.Blob||"function"==typeof File&&e instanceof File}function ce(e){var t={};for(var n in e)if(e.hasOwnProperty(n)&&null!=e[n]&&null!=e[n]){var i=e[n];K(ae,this,he).call(this,i)||Array.isArray(i)?t[n]=i:t[n]=this.paramToString(i)}return t}function pe(e,t){t.forEach(t=>{var n=this.authentications[t];switch(n.type){case"basic":n.username||n.password?e.auth(n.username||"",n.password||""):(this.username||this.password)&&e.auth(this.username||"",this.password||""),K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Basic Auth applied to request");break;case"apiKey":if(n.apiKey){var i={};n.apiKeyPrefix?i[n.name]=n.apiKeyPrefix+" "+n.apiKey:i[n.name]=n.apiKey,"header"===n.in?e.set(i):e.query(i)}K(ae,this,ke).call(this,q(re,this).DEBUG,null,"apiKey applied to request");break;case"oauth2":n.accessToken&&e.set({Authorization:"Bearer "+n.accessToken}),K(ae,this,ke).call(this,q(re,this).DEBUG,null,"oauth2 applied to request");break;default:throw K(ae,this,ke).call(this,q(re,this).ERROR,null,"Unknown authentication type:",n.type),new Error("Unknown authentication type: "+n.type)}})}function ye(e){var t={data:{},metadata:{}};t.data.status=e.status,t.data.message=e.message}function ve(e,t){if(null==e||null==t||204==e.status)return null;if(e.headers&&["text/event-stream","text/html","text/xml","text/csv","text/javascript","text/markdown","text/vcard"].includes(e.headers["content-type"])){(n=new t).data=new b.Blob([e.text],{type:e.headers["content-type"]});let i=new C;i.name="hasError",i.value=!1;let s=[i],o=new J;return o.flags=s,n.metadata=o,n}var n;return(null==(n=e.body)||"object"==typeof n&&void 0===n.length&&!Object.keys(n).length)&&(n=e.text),W.convertToType(n,t)}function ge(e,t,n){if(!(e instanceof o))return;const i=parseInt(this.constructor.parseQueryParam(t,n,"$page","0"),10),s=parseInt(this.constructor.parseQueryParam(t,n,"$limit","50"),10);e.populatePaginationMetadata(this,i,s)}function me(e,t){if(!e||!t)return e;let n=K(ae,this,$e).call(this,e),i=K(ae,this,$e).call(this,t);return!n.family===i.family||K(ae,this,we).call(this,n,i)?e:t}function we(e,t){if(parseInt(e.revision)!=parseInt(t.revision))return parseInt(e.revision)<parseInt(t.revision);if("released"===e.versionType)return!1;let n=e.versionType.substring(0,1),i=t.versionType.substring(0,1),s=parseInt(e.versionType.substring(1)),o="released"===t.versionType?0:parseInt(t.versionType.substring(1));return n===i?s<o:"a"===n||"released"===t.versionType}function $e(e){let t={};if("unversioned"===e)t.family="unversioned",t.versionType="released";else{let n=e.toString().split(".");"unversioned"===n[0]?(t.family="unversioned",t.versionType=n[1]):(t.family=n[0].substring(1),t.revision=n[1],2==n.length?t.versionType="released":t.versionType=n[2])}return t}function fe(e,t){return e<=0?e=t:e>q(ne,this)&&(e=q(ne,this)),e}function be(e){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("set-cookie")){let t="",n=e.headers["set-cookie"];if(n.length>0){for(let e of n)e=e.split(";")[0],e.includes("=")&&(e.trim(),t=t.concat(e).concat(";"));""!==t&&(t=t.substr(0,t.length-1))}H(Z,this,t),K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Retained cookie :",t)}else H(Z,this,null)}function Te(e){null!=q(Z,this)&&e.set(K(ae,this,ce).call(this,{Cookie:q(Z,this)}))}function ke(e,t,...n){if("object"==typeof e&&"key"in e&&"value"in e&&"symbol"==typeof e.value||(e=q(re,this).INFO),!K(ae,this,je).call(this,e)){n=n.map(e=>"string"==typeof e?e:t?t(e):JSON.stringify(e));let i=n.join(" ");i=(new Date).toISOString()+" "+e.key+" - "+i,void 0!==q(Y,this)&&null!==q(Y,this)&&"function"==typeof q(Y,this).log?q(Y,this).log(i):console.log(i)}}function je(e){return!this.debug&&e===q(re,this).DEBUG}function Oe(e){if("object"!=typeof e)return e;let t="\n";return e&&Object.keys(e).forEach(n=>{t+=n+"=["+e[n]+"]\n"}),"\n"===t?e:t}function Fe(e,t,n,i,s,o){try{var r=K(ae,this,ve).call(this,e,i);K(ae,this,ke).call(this,q(re,this).INFO,null,"Response Status :",e.status),K(ae,this,ke).call(this,q(re,this).DEBUG,K(ae,this,Oe),"Response Headers :",e.headers),K(ae,this,be).call(this,e||{}),K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Response Body :",r),204==e.status&&null==r?s({data:r,response:e}):e.ok&&null!=r?(this.addEtagToReservedMap(e,r),K(ae,this,ge).call(this,r,t,n),s({data:r,response:e})):(K(ae,this,ke).call(this,q(re,this).ERROR,null,r),o({...e.error,data:r}))}catch(e){K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Caught error while processing response!"),K(ae,this,ke).call(this,q(re,this).ERROR,null,e),e.data=K(ae,this,ye).call(this,e),o(e)}}function Ce(e,t,n,i,s,o,r,a){let l={};o.forEach(e=>{const t=this.authentications[e];switch(t.type){case"basic":let e="",i="";if(t.username||t.password?(e=t.username||"",i=t.password||""):(this.username||this.password)&&(e=this.username||"",i=this.password||""),e||i){const t=btoa(`${e}:${i}`);l.Authorization=`Basic ${t}`}K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Basic Auth applied to request");break;case"apiKey":if(t.apiKey){let e="";e=t.apiKeyPrefix?t.apiKeyPrefix+" "+t.apiKey:t.apiKey,"header"===t.in?l[t.name]="Bearer "+e:"query"===t.in&&(n[t.name]=e)}K(ae,this,ke).call(this,q(re,this).DEBUG,null,"apiKey applied to request");break;case"oauth2":t.accessToken&&(l.Authorization="Bearer "+t.accessToken),K(ae,this,ke).call(this,q(re,this).DEBUG,null,"oauth2 applied to request");break;default:throw K(ae,this,ke).call(this,q(re,this).ERROR,null,"Unknown authentication type:",t.type),new Error("Unknown authentication type: "+t.type)}}),"GET"===t.toUpperCase()&&!1===this.cache&&(n.cache="false");const d=K(ae,this,ce).call(this,n),u=Object.keys(d).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(d[e])}`).join("&");let h=e;u&&(h+=(h.includes("?")?"&":"?")+u);const p={...this.defaultHeaders,...K(ae,this,ce).call(this,i),...l};if(!(null!==this.defaultHeaders["NTNX-Request-Id"]&&void 0!==this.defaultHeaders["NTNX-Request-Id"]||null!==i["NTNX-Request-Id"]&&void 0!==i["NTNX-Request-Id"])){let e=c();p["NTNX-Request-Id"]=e}null!=q(Z,this)&&(p.Cookie=K(ae,this,ce).call(this,{Cookie:q(Z,this)}));var y=i.hasOwnProperty("Content-Type")?i["Content-Type"]:K(ae,this,ue).call(this,r);p["Content-Type"]=y;var v=i.hasOwnProperty("Accept")&&null!=i.Accept?i.Accept:a.join(", ");return v&&(p.Accept=v),K(ae,this,ke).call(this,q(re,this).INFO,null,"Request URL :",t,e),K(ae,this,ke).call(this,q(re,this).DEBUG,K(ae,this,Oe),"Request Headers :",p),K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Request Body :",s||""),{url:h,options:{method:t,headers:p,body:s,credentials:this.withCredentials?"include":"same-origin"}}}function Pe(e,t,n,i,s,o){K(ae,this,ke).call(this,q(re,this).INFO,null,"Streaming response to : ",n);try{e.on("data",e=>{t.write(e)})}catch(e){K(ae,this,ke).call(this,q(re,this).ERROR,null,"Issue while downloading file",e)}let r=new o,a="";if(void 0!==e.headers["content-disposition"]&&null!==e.headers["content-disposition"]){let t=e.headers["content-disposition"].match(/.*filename=\"(?<filename>.*)\".*/),n=f().parse(t.groups.filename);a=this.downloadDestination+"/"+n.name+"_"+Date.now()+n.ext,r.data={path:f().parse(a),$objectType:"Path"};let i=new C;i.name="hasError",i.value=!1;let s=[i],o=new J;o.flags=s,r.metadata=o}e.on("end",()=>{K(ae,this,ke).call(this,q(re,this).INFO,null,"Finished streaming response"),0!==a.length?(K(ae,this,ke).call(this,q(re,this).INFO,null,"Content-Disposition header found [",a,"] is final filename"),t.close(),w().renameSync(n,a),i({data:r,response:e})):(K(ae,this,ke).call(this,q(re,this).ERROR,null,"Content-Disposition header not found [",n,"] is final filename"),i({data:r,response:e}))}),e.on("error",e=>{K(ae,this,ke).call(this,q(re,this).ERROR,null,"Caught the following error :",e),error.data=K(ae,this,ye).call(this,error),s(e)})}function Se(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}W=le,le.instance=new le;var Ee=new WeakSet;class De{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ee),t.add(e),this.$objectType="aiops.v4.error.AppMessage",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new De,e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&t.setMessage(e.message),e.hasOwnProperty("severity")&&null!==e.severity&&void 0!==e.severity&&t.setSeverity(N.constructFromObject(e.severity)),e.hasOwnProperty("code")&&null!==e.code&&void 0!==e.code&&t.setCode(e.code),e.hasOwnProperty("locale")&&null!==e.locale&&void 0!==e.locale&&t.setLocale(e.locale),e.hasOwnProperty("errorGroup")&&null!==e.errorGroup&&void 0!==e.errorGroup&&t.setErrorGroup(e.errorGroup),e.hasOwnProperty("argumentsMap")&&null!==e.argumentsMap&&void 0!==e.argumentsMap&&t.setArgumentsMap(e.argumentsMap),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMessage(){return this.message}setMessage(e){this.message=e}getSeverity(){return this.severity}setSeverity(e){this.severity=e}getCode(){return this.code}setCode(e){this.code=e}getLocale(){return this.locale}setLocale(e){this.locale=e}getErrorGroup(){return this.errorGroup}setErrorGroup(e){this.errorGroup=e}getArgumentsMap(){return this.argumentsMap}setArgumentsMap(e){this.argumentsMap=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{},...void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{},...void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{},...void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{},...void 0!==this.getErrorGroup()&&null!==this.getErrorGroup()?{errorGroup:this.getErrorGroup()}:{},...void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:Se(Ee,this,Re).call(this,this.getArgumentsMap(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{},...void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{},...void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{},...void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{},...void 0!==this.getErrorGroup()&&null!==this.getErrorGroup()?{errorGroup:this.getErrorGroup()}:{},...void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:Se(Ee,this,Re).call(this,this.getArgumentsMap())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"message"!==t||void 0!==this.message&&null!==this.message?"severity"!==t||void 0!==this.severity&&null!==this.severity?"code"!==t||void 0!==this.code&&null!==this.code?"locale"!==t||void 0!==this.locale&&null!==this.locale?"errorGroup"!==t||void 0!==this.errorGroup&&null!==this.errorGroup?"argumentsMap"!==t||void 0!==this.argumentsMap&&null!==this.argumentsMap?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("argumentsMap","undefined or null"):new O("errorGroup","undefined or null"):new O("locale","undefined or null"):new O("code","undefined or null"):new O("severity","undefined or null"):new O("message","undefined or null")}}function Re(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}De.prototype.message=void 0,De.prototype.severity=void 0,De.prototype.code=void 0,De.prototype.locale="en_US",De.prototype.errorGroup=void 0,De.prototype.argumentsMap=void 0,De.prototype.$reserved=void 0,De.prototype.$objectType=void 0,De.prototype.$unknownFields=void 0;var Ue=new WeakSet;class Ie{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ue),t.add(e),this.$objectType="aiops.v4.error.SchemaValidationErrorMessage",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Ie,e.hasOwnProperty("location")&&null!==e.location&&void 0!==e.location&&t.setLocation(e.location),e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&t.setMessage(e.message),e.hasOwnProperty("attributePath")&&null!==e.attributePath&&void 0!==e.attributePath&&t.setAttributePath(e.attributePath),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getLocation(){return this.location}setLocation(e){this.location=e}getMessage(){return this.message}setMessage(e){this.message=e}getAttributePath(){return this.attributePath}setAttributePath(e){this.attributePath=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getLocation()&&null!==this.getLocation()?{location:this.getLocation()}:{},...void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{},...void 0!==this.getAttributePath()&&null!==this.getAttributePath()?{attributePath:this.getAttributePath()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"location"!==t||void 0!==this.location&&null!==this.location?"message"!==t||void 0!==this.message&&null!==this.message?"attributePath"!==t||void 0!==this.attributePath&&null!==this.attributePath?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("attributePath","undefined or null"):new O("message","undefined or null"):new O("location","undefined or null")}}function Ae(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ie.prototype.location=void 0,Ie.prototype.message=void 0,Ie.prototype.attributePath=void 0,Ie.prototype.$reserved=void 0,Ie.prototype.$objectType=void 0,Ie.prototype.$unknownFields=void 0;var Me=new WeakSet;class Ne{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Me),t.add(e),this.$objectType="aiops.v4.error.SchemaValidationError",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new Ne,e.hasOwnProperty("timestamp")&&null!==e.timestamp&&void 0!==e.timestamp&&t.setTimestamp(e.timestamp),e.hasOwnProperty("statusCode")&&null!==e.statusCode&&void 0!==e.statusCode&&t.setStatusCode(e.statusCode),e.hasOwnProperty("error")&&null!==e.error&&void 0!==e.error&&t.setError(e.error),e.hasOwnProperty("path")&&null!==e.path&&void 0!==e.path&&t.setPath(e.path),e.hasOwnProperty("validationErrorMessages")&&null!==e.validationErrorMessages&&void 0!==e.validationErrorMessages){for(r=[],i=e.validationErrorMessages,o=0;o<i.length;o++)s=Ie.constructFromObject(i[o],void 0),r.push(s);t.setValidationErrorMessages(r)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getTimestamp(){return this.timestamp}setTimestamp(e){this.timestamp=e}getStatusCode(){return this.statusCode}setStatusCode(e){this.statusCode=e}getError(){return this.error}setError(e){this.error=e}getPath(){return this.path}setPath(e){this.path=e}getValidationErrorMessages(){return this.validationErrorMessages}setValidationErrorMessages(e){this.validationErrorMessages=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:Ae(Me,this,xe).call(this,this.getTimestamp(),!1)}:{},...void 0!==this.getStatusCode()&&null!==this.getStatusCode()?{statusCode:this.getStatusCode()}:{},...void 0!==this.getError()&&null!==this.getError()?{error:this.getError()}:{},...void 0!==this.getPath()&&null!==this.getPath()?{path:this.getPath()}:{},...void 0!==this.getValidationErrorMessages()&&null!==this.getValidationErrorMessages()?{validationErrorMessages:this.getValidationErrorMessages().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"timestamp"!==t||void 0!==this.timestamp&&null!==this.timestamp?"statusCode"!==t||void 0!==this.statusCode&&null!==this.statusCode?"error"!==t||void 0!==this.error&&null!==this.error?"path"!==t||void 0!==this.path&&null!==this.path?"validationErrorMessages"!==t||void 0!==this.validationErrorMessages&&null!==this.validationErrorMessages?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("validationErrorMessages","undefined or null"):new O("path","undefined or null"):new O("error","undefined or null"):new O("statusCode","undefined or null"):new O("timestamp","undefined or null")}}function xe(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Ve(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ne.prototype.timestamp=void 0,Ne.prototype.statusCode=void 0,Ne.prototype.error=void 0,Ne.prototype.path=void 0,Ne.prototype.validationErrorMessages=void 0,Ne.prototype.$reserved=void 0,Ne.prototype.$objectType=void 0,Ne.prototype.$unknownFields=void 0;var Le=new WeakSet;class Be{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Le),t.add(e),this.$objectType="aiops.v4.error.ErrorResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r,a;if(e){if(t=t||new Be,e.hasOwnProperty("error")&&null!==e.error&&void 0!==e.error)if(Array.isArray(e.error))if(0===e.error.length)t.setError([]);else{for(r=[],i=e.error,a=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],o=0;o<i.length;o++){if("aiops.v4.error.AppMessage"!==a)throw"Unknown list of type "+a+" in data";s=De.constructFromObject(i[o],void 0),r.push(s)}t.setError(r)}else{if(a=e.error.hasOwnProperty("$objectType")?e.error.$objectType:typeof e.error,"aiops.v4.error.SchemaValidationError"!==a)throw"Unknown datatype "+a+" in data";t.setError(Ne.constructFromObject(e.error,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getError(){return this.error}setError(e){this.error=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson(!1):Array.isArray(this.getError())?this.getError().map(e=>void 0!==e.toJson?e.toJson(!1):e):Ve(Le,this,We).call(this,this.getError(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson():Array.isArray(this.getError())?this.getError().map(e=>void 0!==e.toJson?e.toJson():e):Ve(Le,this,We).call(this,this.getError())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"error"!==t||void 0!==this.error&&null!==this.error?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("error","undefined or null")}}function We(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Be.prototype.error=void 0,Be.prototype.$reserved=void 0,Be.prototype.$objectType=void 0,Be.prototype.$unknownFields=void 0;var ze=new WeakSet;class Je{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=ze),n.add(t),this.boolList=e,this.$objectType="aiops.v4.stats.BoolList",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o;if(e){if(t=t||new Je,e.hasOwnProperty("boolList")&&null!==e.boolList&&void 0!==e.boolList){for(o=[],i=e.boolList,s=0;s<i.length;s++)o.push(i[s]);t.setBoolList(o)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getBoolList(){return this.boolList}setBoolList(e){this.boolList=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getBoolList()&&null!==this.getBoolList()?{boolList:this.getBoolList()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["boolList"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("boolList"===t){if(void 0===this.boolList||null===this.boolList)return new O("boolList","undefined or null");if(!j.validateMaxItems(this.boolList,100))return new O("boolList","does not satisfy required maxItems constraint: 100")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}Je.prototype.boolList=void 0,Je.prototype.$reserved=void 0,Je.prototype.$objectType=void 0,Je.prototype.$unknownFields=void 0;var _e=new WeakSet;class Ge{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=_e),n.add(t),this.boolValue=e,this.$objectType="aiops.v4.stats.BoolVal",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Ge,e.hasOwnProperty("boolValue")&&null!==e.boolValue&&void 0!==e.boolValue&&t.setBoolValue(e.boolValue),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getBoolValue(){return this.boolValue}setBoolValue(e){this.boolValue=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getBoolValue()&&null!==this.getBoolValue()?{boolValue:this.getBoolValue()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["boolValue"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"boolValue"!==t||void 0!==this.boolValue&&null!==this.boolValue?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("boolValue","undefined or null")}}Ge.prototype.boolValue=void 0,Ge.prototype.$reserved=void 0,Ge.prototype.$objectType=void 0,Ge.prototype.$unknownFields=void 0;var qe=new WeakSet;class He{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=qe),n.add(t),this.doubleList=e,this.$objectType="aiops.v4.stats.DoubleList",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o;if(e){if(t=t||new He,e.hasOwnProperty("doubleList")&&null!==e.doubleList&&void 0!==e.doubleList){for(o=[],i=e.doubleList,s=0;s<i.length;s++)o.push(i[s]);t.setDoubleList(o)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getDoubleList(){return this.doubleList}setDoubleList(e){this.doubleList=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getDoubleList()&&null!==this.getDoubleList()?{doubleList:this.getDoubleList()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["doubleList"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("doubleList"===t){if(void 0===this.doubleList||null===this.doubleList)return new O("doubleList","undefined or null");if(!j.validateMaxItems(this.doubleList,100))return new O("doubleList","does not satisfy required maxItems constraint: 100")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}He.prototype.doubleList=void 0,He.prototype.$reserved=void 0,He.prototype.$objectType=void 0,He.prototype.$unknownFields=void 0;var Ke=new WeakSet;class Xe{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=Ke),n.add(t),this.doubleValue=e,this.$objectType="aiops.v4.stats.DoubleVal",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Xe,e.hasOwnProperty("doubleValue")&&null!==e.doubleValue&&void 0!==e.doubleValue&&t.setDoubleValue(e.doubleValue),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getDoubleValue(){return this.doubleValue}setDoubleValue(e){this.doubleValue=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getDoubleValue()&&null!==this.getDoubleValue()?{doubleValue:this.getDoubleValue()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["doubleValue"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"doubleValue"!==t||void 0!==this.doubleValue&&null!==this.doubleValue?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("doubleValue","undefined or null")}}Xe.prototype.doubleValue=void 0,Xe.prototype.$reserved=void 0,Xe.prototype.$objectType=void 0,Xe.prototype.$unknownFields=void 0;var Ze=new WeakSet;class Ye{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=Ze),n.add(t),this.intList=e,this.$objectType="aiops.v4.stats.IntList",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o;if(e){if(t=t||new Ye,e.hasOwnProperty("intList")&&null!==e.intList&&void 0!==e.intList){for(o=[],i=e.intList,s=0;s<i.length;s++)o.push(i[s]);t.setIntList(o)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getIntList(){return this.intList}setIntList(e){this.intList=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getIntList()&&null!==this.getIntList()?{intList:this.getIntList()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["intList"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("intList"===t){if(void 0===this.intList||null===this.intList)return new O("intList","undefined or null");if(!j.validateMaxItems(this.intList,100))return new O("intList","does not satisfy required maxItems constraint: 100")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}Ye.prototype.intList=void 0,Ye.prototype.$reserved=void 0,Ye.prototype.$objectType=void 0,Ye.prototype.$unknownFields=void 0;var Qe=new WeakSet;class et{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=Qe),n.add(t),this.intValue=e,this.$objectType="aiops.v4.stats.IntVal",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new et,e.hasOwnProperty("intValue")&&null!==e.intValue&&void 0!==e.intValue&&t.setIntValue(e.intValue),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getIntValue(){return this.intValue}setIntValue(e){this.intValue=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getIntValue()&&null!==this.getIntValue()?{intValue:this.getIntValue()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["intValue"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"intValue"!==t||void 0!==this.intValue&&null!==this.intValue?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("intValue","undefined or null")}}et.prototype.intValue=void 0,et.prototype.$reserved=void 0,et.prototype.$objectType=void 0,et.prototype.$unknownFields=void 0;var tt=new WeakSet;class nt{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=tt),n.add(t),this.strList=e,this.$objectType="aiops.v4.stats.StrList",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o;if(e){if(t=t||new nt,e.hasOwnProperty("strList")&&null!==e.strList&&void 0!==e.strList){for(o=[],i=e.strList,s=0;s<i.length;s++)o.push(i[s]);t.setStrList(o)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getStrList(){return this.strList}setStrList(e){this.strList=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getStrList()&&null!==this.getStrList()?{strList:this.getStrList()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["strList"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("strList"===t){if(void 0===this.strList||null===this.strList)return new O("strList","undefined or null");if(!j.validateMaxItems(this.strList,100))return new O("strList","does not satisfy required maxItems constraint: 100")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}nt.prototype.strList=void 0,nt.prototype.$reserved=void 0,nt.prototype.$objectType=void 0,nt.prototype.$unknownFields=void 0;var it=new WeakSet;class st{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=it),n.add(t),this.strValue=e,this.$objectType="aiops.v4.stats.StrVal",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new st,e.hasOwnProperty("strValue")&&null!==e.strValue&&void 0!==e.strValue&&t.setStrValue(e.strValue),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getStrValue(){return this.strValue}setStrValue(e){this.strValue=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getStrValue()&&null!==this.getStrValue()?{strValue:this.getStrValue()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["strValue"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"strValue"!==t||void 0!==this.strValue&&null!==this.strValue?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("strValue","undefined or null")}}function ot(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}st.prototype.strValue=void 0,st.prototype.$reserved=void 0,st.prototype.$objectType=void 0,st.prototype.$unknownFields=void 0;var rt=new WeakSet;class at{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=rt),t.add(e),this.$objectType="aiops.v4.stats.Point",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new at,e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value)switch(i=e.value.hasOwnProperty("$objectType")?e.value.$objectType:typeof e.value,i){case"aiops.v4.stats.StrVal":t.setValue(st.constructFromObject(e.value,void 0));break;case"aiops.v4.stats.BoolVal":t.setValue(Ge.constructFromObject(e.value,void 0));break;case"aiops.v4.stats.IntVal":t.setValue(et.constructFromObject(e.value,void 0));break;case"aiops.v4.stats.DoubleVal":t.setValue(Xe.constructFromObject(e.value,void 0));break;case"aiops.v4.stats.StrList":t.setValue(nt.constructFromObject(e.value,void 0));break;case"aiops.v4.stats.BoolList":t.setValue(Je.constructFromObject(e.value,void 0));break;case"aiops.v4.stats.IntList":t.setValue(Ye.constructFromObject(e.value,void 0));break;case"aiops.v4.stats.DoubleList":t.setValue(He.constructFromObject(e.value,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("timestamp")&&null!==e.timestamp&&void 0!==e.timestamp&&t.setTimestamp(e.timestamp),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getValue(){return this.value}setValue(e){this.value=e}getTimestamp(){return this.timestamp}setTimestamp(e){this.timestamp=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson(!1):Array.isArray(this.getValue())?this.getValue().map(e=>void 0!==e.toJson?e.toJson(!1):e):ot(rt,this,lt).call(this,this.getValue(),!1)}:{},...void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:ot(rt,this,dt).call(this,this.getTimestamp(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson():Array.isArray(this.getValue())?this.getValue().map(e=>void 0!==e.toJson?e.toJson():e):ot(rt,this,lt).call(this,this.getValue())}:{},...void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:ot(rt,this,dt).call(this,this.getTimestamp(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"value"!==t||void 0!==this.value&&null!==this.value?"timestamp"!==t||void 0!==this.timestamp&&null!==this.timestamp?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("timestamp","undefined or null"):new O("value","undefined or null")}}function lt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function dt(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}at.prototype.value=void 0,at.prototype.timestamp=void 0,at.prototype.$reserved=void 0,at.prototype.$objectType=void 0,at.prototype.$unknownFields=void 0;var ut=new WeakSet;class ht{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=ut),t.add(e),this.$objectType="aiops.v4.stats.TimeSeries",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new ht,e.hasOwnProperty("samplingIntervalSecs")&&null!==e.samplingIntervalSecs&&void 0!==e.samplingIntervalSecs&&t.setSamplingIntervalSecs(e.samplingIntervalSecs),e.hasOwnProperty("values")&&null!==e.values&&void 0!==e.values){for(r=[],i=e.values,o=0;o<i.length;o++)s=at.constructFromObject(i[o],void 0),r.push(s);t.setValues(r)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getSamplingIntervalSecs(){return this.samplingIntervalSecs}setSamplingIntervalSecs(e){this.samplingIntervalSecs=e}getValues(){return this.values}setValues(e){this.values=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getSamplingIntervalSecs()&&null!==this.getSamplingIntervalSecs()?{samplingIntervalSecs:this.getSamplingIntervalSecs()}:{},...void 0!==this.getValues()&&null!==this.getValues()?{values:this.getValues().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("samplingIntervalSecs"===t&&(void 0===this.samplingIntervalSecs||null===this.samplingIntervalSecs))return new O("samplingIntervalSecs","undefined or null");if("values"===t){if(void 0===this.values||null===this.values)return new O("values","undefined or null");if(!j.validateMaxItems(this.values,2880))return new O("values","does not satisfy required maxItems constraint: 2880")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}ht.prototype.samplingIntervalSecs=void 0,ht.prototype.values=void 0,ht.prototype.$reserved=void 0,ht.prototype.$objectType=void 0,ht.prototype.$unknownFields=void 0;var ct=new WeakSet;class pt{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=ct),t.add(e),this.$objectType="aiops.v4.stats.Metric",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new pt,e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("timeSeries")&&null!==e.timeSeries&&void 0!==e.timeSeries&&t.setTimeSeries(ht.constructFromObject(e.timeSeries)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getTimeSeries(){return this.timeSeries}setTimeSeries(e){this.timeSeries=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getTimeSeries()&&null!==this.getTimeSeries()?{timeSeries:this.getTimeSeries().toJson(!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!j.validateMaxLength(this.name,50))return new O("name","does not satisfy required maxLength constraint: 50")}return"timeSeries"!==t||void 0!==this.timeSeries&&null!==this.timeSeries?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("timeSeries","undefined or null")}}pt.prototype.name=void 0,pt.prototype.timeSeries=void 0,pt.prototype.$reserved=void 0,pt.prototype.$objectType=void 0,pt.prototype.$unknownFields=void 0;var yt=new WeakSet;class vt{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=yt),t.add(e),this.$objectType="common.v1.config.TenantAwareModel",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new vt,e.hasOwnProperty("tenantId")&&null!==e.tenantId&&void 0!==e.tenantId&&t.setTenantId(e.tenantId),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getTenantId(){return this.tenantId}setTenantId(e){this.tenantId=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("tenantId"===t){if(void 0===this.tenantId||null===this.tenantId)return new O("tenantId","undefined or null");if(!j.validatePattern(this.tenantId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("tenantId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}vt.prototype.tenantId=void 0,vt.prototype.$reserved=void 0,vt.prototype.$objectType=void 0,vt.prototype.$unknownFields=void 0;var gt=new WeakSet;class mt extends vt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=gt),t.add(e),this.$objectType="common.v1.response.ExternalizableAbstractModel",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new mt,vt.constructFromObject(e,t,!0),e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&t.setExtId(e.extId),e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(r=[],i=e.links,o=0;o<i.length;o++)s=B.constructFromObject(i[o],void 0),r.push(s);t.setLinks(r)}if(!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getExtId(){return this.extId}setExtId(e){this.extId=e}getLinks(){return this.links}setLinks(e){this.links=e}toJson(e){return!1===e?{...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new O("extId","undefined or null");if(null==e){if(!j.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("extId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}else if(e===k.update&&!j.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("extId","does not satisfy pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("links"===t){if(void 0===this.links||null===this.links)return new O("links","undefined or null");if(!j.validateMaxItems(this.links,20))return new O("links","does not satisfy required maxItems constraint: 20")}return new O(t,"no such property exists")}}mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;var wt=new WeakSet;class $t extends mt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=wt),t.add(e),this.$objectType="aiops.v4.stats.Entity",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new $t,mt.constructFromObject(e,t,!0),e.hasOwnProperty("entityType")&&null!==e.entityType&&void 0!==e.entityType&&t.setEntityType(e.entityType),e.hasOwnProperty("source")&&null!==e.source&&void 0!==e.source&&t.setSource(e.source),e.hasOwnProperty("parents")&&null!==e.parents&&void 0!==e.parents){for(r=[],i=e.parents,o=0;o<i.length;o++)s=$t.constructFromObject(i[o],void 0),r.push(s);t.setParents(r)}if(e.hasOwnProperty("metrics")&&null!==e.metrics&&void 0!==e.metrics){for(r=[],i=e.metrics,o=0;o<i.length;o++)s=pt.constructFromObject(i[o],void 0),r.push(s);t.setMetrics(r)}if(!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getEntityType(){return this.entityType}setEntityType(e){this.entityType=e}getSource(){return this.source}setSource(e){this.source=e}getParents(){return this.parents}setParents(e){this.parents=e}getMetrics(){return this.metrics}setMetrics(e){this.metrics=e}toJson(e){return!1===e?{...void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{},...void 0!==this.getSource()&&null!==this.getSource()?{source:this.getSource()}:{},...void 0!==this.getParents()&&null!==this.getParents()?{parents:this.getParents().map(e=>e.toJson(!1))}:{},...void 0!==this.getMetrics()&&null!==this.getMetrics()?{metrics:this.getMetrics().map(e=>e.toJson(!1))}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{},...void 0!==this.getSource()&&null!==this.getSource()?{source:this.getSource()}:{},...void 0!==this.getParents()&&null!==this.getParents()?{parents:this.getParents().map(e=>e.toJson(!1))}:{},...void 0!==this.getMetrics()&&null!==this.getMetrics()?{metrics:this.getMetrics().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("entityType"===t&&(void 0===this.entityType||null===this.entityType))return new O("entityType","undefined or null");if("source"===t&&(void 0===this.source||null===this.source))return new O("source","undefined or null");if("parents"===t){if(void 0===this.parents||null===this.parents)return new O("parents","undefined or null");if(!j.validateMaxItems(this.parents,5))return new O("parents","does not satisfy required maxItems constraint: 5")}if("metrics"===t){if(void 0===this.metrics||null===this.metrics)return new O("metrics","undefined or null");if(!j.validateMaxItems(this.metrics,100))return new O("metrics","does not satisfy required maxItems constraint: 100")}return new O(t,"no such property exists")}}function ft(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}$t.prototype.entityType=void 0,$t.prototype.source=void 0,$t.prototype.parents=void 0,$t.prototype.metrics=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;var bt=new WeakSet;class Tt extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=bt),t.add(e),this.$objectType="aiops.v4.stats.EntityListApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,a,l;if(e){if(t=t||new Tt,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],i=e.data,l=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],r=0;r<i.length;r++){if("aiops.v4.stats.Entity"!==l)throw"Unknown list of type "+l+" in data";s=$t.constructFromObject(i[r],void 0),a.push(s)}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"aiops.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Be.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):ft(bt,this,kt).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):ft(bt,this,kt).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function kt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Tt.prototype.metadata=void 0,Tt.prototype.data=void 0,Tt.prototype.$reserved=void 0,Tt.prototype.$objectType=void 0,Tt.prototype.$unknownFields=void 0;var jt=new WeakSet;class Ot{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=jt),t.add(e),this.$objectType="aiops.v4.config.ValueRange",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Ot,e.hasOwnProperty("min")&&null!==e.min&&void 0!==e.min&&t.setMin(e.min),e.hasOwnProperty("max")&&null!==e.max&&void 0!==e.max&&t.setMax(e.max),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMin(){return this.min}setMin(e){this.min=e}getMax(){return this.max}setMax(e){this.max=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getMin()&&null!==this.getMin()?{min:this.getMin()}:{},...void 0!==this.getMax()&&null!==this.getMax()?{max:this.getMax()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"min"!==t||void 0!==this.min&&null!==this.min?"max"!==t||void 0!==this.max&&null!==this.max?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("max","undefined or null"):new O("min","undefined or null")}}Ot.prototype.min=void 0,Ot.prototype.max=void 0,Ot.prototype.$reserved=void 0,Ot.prototype.$objectType=void 0,Ot.prototype.$unknownFields=void 0;const Ft={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",BOOL:"BOOL",INT:"INT",DOUBLE:"DOUBLE",STRING:"STRING",BOOL_LIST:"BOOL_LIST",INT_LIST:"INT_LIST",DOUBLE_LIST:"DOUBLE_LIST",STRING_LIST:"STRING_LIST",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Ft).find(t=>Ft[t]===e);return null==t?Ft.$UNKNOWN:Ft[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ft.$UNKNOWN:case Ft.$REDACTED:case Ft.BOOL:case Ft.INT:case Ft.DOUBLE:case Ft.STRING:case Ft.BOOL_LIST:case Ft.INT_LIST:case Ft.DOUBLE_LIST:case Ft.STRING_LIST:return;default:throw new Error("Invalid : must be ValueType.{ $UNKNOWN|$REDACTED|BOOL|INT|DOUBLE|STRING|BOOL_LIST|INT_LIST|DOUBLE_LIST|STRING_LIST }")}}};Object.freeze(Ft);const Ct=Ft,Pt={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SUM:"SUM",MIN:"MIN",MAX:"MAX",AVG:"AVG",COUNT:"COUNT",LAST:"LAST",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Pt).find(t=>Pt[t]===e);return null==t?Pt.$UNKNOWN:Pt[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Pt.$UNKNOWN:case Pt.$REDACTED:case Pt.SUM:case Pt.MIN:case Pt.MAX:case Pt.AVG:case Pt.COUNT:case Pt.LAST:return;default:throw new Error("Invalid : must be DownSamplingOperator.{ $UNKNOWN|$REDACTED|SUM|MIN|MAX|AVG|COUNT|LAST }")}}};Object.freeze(Pt);const St=Pt;var Et=new WeakSet;class Dt{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Et),t.add(e),this.$objectType="aiops.v4.config.MetricDescriptor",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new Dt,e.hasOwnProperty("isAttribute")&&null!==e.isAttribute&&void 0!==e.isAttribute&&t.setIsAttribute(e.isAttribute),e.hasOwnProperty("isAttributePersistedAsTimeSeries")&&null!==e.isAttributePersistedAsTimeSeries&&void 0!==e.isAttributePersistedAsTimeSeries&&t.setIsAttributePersistedAsTimeSeries(e.isAttributePersistedAsTimeSeries),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("displayName")&&null!==e.displayName&&void 0!==e.displayName&&t.setDisplayName(e.displayName),e.hasOwnProperty("valueType")&&null!==e.valueType&&void 0!==e.valueType&&t.setValueType(Ct.constructFromObject(e.valueType)),e.hasOwnProperty("valueRange")&&null!==e.valueRange&&void 0!==e.valueRange&&t.setValueRange(Ot.constructFromObject(e.valueRange)),e.hasOwnProperty("defaultValue")&&null!==e.defaultValue&&void 0!==e.defaultValue&&t.setDefaultValue(e.defaultValue),e.hasOwnProperty("unit")&&null!==e.unit&&void 0!==e.unit&&t.setUnit(e.unit),e.hasOwnProperty("samplingIntervalSecs")&&null!==e.samplingIntervalSecs&&void 0!==e.samplingIntervalSecs&&t.setSamplingIntervalSecs(e.samplingIntervalSecs),e.hasOwnProperty("downsamplingOperator")&&null!==e.downsamplingOperator&&void 0!==e.downsamplingOperator&&t.setDownsamplingOperator(St.constructFromObject(e.downsamplingOperator)),e.hasOwnProperty("additionalProperties")&&null!==e.additionalProperties&&void 0!==e.additionalProperties){for(r=[],i=e.additionalProperties,o=0;o<i.length;o++)s=I.constructFromObject(i[o],void 0),r.push(s);t.setAdditionalProperties(r)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getIsAttribute(){return this.isAttribute}setIsAttribute(e){this.isAttribute=e}getIsAttributePersistedAsTimeSeries(){return this.isAttributePersistedAsTimeSeries}setIsAttributePersistedAsTimeSeries(e){this.isAttributePersistedAsTimeSeries=e}getName(){return this.name}setName(e){this.name=e}getDisplayName(){return this.displayName}setDisplayName(e){this.displayName=e}getValueType(){return this.valueType}setValueType(e){this.valueType=e}getValueRange(){return this.valueRange}setValueRange(e){this.valueRange=e}getDefaultValue(){return this.defaultValue}setDefaultValue(e){this.defaultValue=e}getUnit(){return this.unit}setUnit(e){this.unit=e}getSamplingIntervalSecs(){return this.samplingIntervalSecs}setSamplingIntervalSecs(e){this.samplingIntervalSecs=e}getDownsamplingOperator(){return this.downsamplingOperator}setDownsamplingOperator(e){this.downsamplingOperator=e}getAdditionalProperties(){return this.additionalProperties}setAdditionalProperties(e){this.additionalProperties=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getIsAttribute()&&null!==this.getIsAttribute()?{isAttribute:this.getIsAttribute()}:{},...void 0!==this.getIsAttributePersistedAsTimeSeries()&&null!==this.getIsAttributePersistedAsTimeSeries()?{isAttributePersistedAsTimeSeries:this.getIsAttributePersistedAsTimeSeries()}:{},...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getDisplayName()&&null!==this.getDisplayName()?{displayName:this.getDisplayName()}:{},...void 0!==this.getValueType()&&null!==this.getValueType()?{valueType:this.getValueType()}:{},...void 0!==this.getValueRange()&&null!==this.getValueRange()?{valueRange:this.getValueRange().toJson(!1)}:{},...void 0!==this.getDefaultValue()&&null!==this.getDefaultValue()?{defaultValue:this.getDefaultValue()}:{},...void 0!==this.getUnit()&&null!==this.getUnit()?{unit:this.getUnit()}:{},...void 0!==this.getSamplingIntervalSecs()&&null!==this.getSamplingIntervalSecs()?{samplingIntervalSecs:this.getSamplingIntervalSecs()}:{},...void 0!==this.getDownsamplingOperator()&&null!==this.getDownsamplingOperator()?{downsamplingOperator:this.getDownsamplingOperator()}:{},...void 0!==this.getAdditionalProperties()&&null!==this.getAdditionalProperties()?{additionalProperties:this.getAdditionalProperties().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("isAttribute"===t&&(void 0===this.isAttribute||null===this.isAttribute))return new O("isAttribute","undefined or null");if("isAttributePersistedAsTimeSeries"===t&&(void 0===this.isAttributePersistedAsTimeSeries||null===this.isAttributePersistedAsTimeSeries))return new O("isAttributePersistedAsTimeSeries","undefined or null");if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!j.validateMaxLength(this.name,50))return new O("name","does not satisfy required maxLength constraint: 50")}if("displayName"===t){if(void 0===this.displayName||null===this.displayName)return new O("displayName","undefined or null");if(!j.validateMaxLength(this.displayName,50))return new O("displayName","does not satisfy required maxLength constraint: 50")}if("valueType"===t&&(void 0===this.valueType||null===this.valueType))return new O("valueType","undefined or null");if("valueRange"===t&&(void 0===this.valueRange||null===this.valueRange))return new O("valueRange","undefined or null");if("defaultValue"===t&&(void 0===this.defaultValue||null===this.defaultValue))return new O("defaultValue","undefined or null");if("unit"===t&&(void 0===this.unit||null===this.unit))return new O("unit","undefined or null");if("samplingIntervalSecs"===t&&(void 0===this.samplingIntervalSecs||null===this.samplingIntervalSecs))return new O("samplingIntervalSecs","undefined or null");if("downsamplingOperator"===t&&(void 0===this.downsamplingOperator||null===this.downsamplingOperator))return new O("downsamplingOperator","undefined or null");if("additionalProperties"===t){if(void 0===this.additionalProperties||null===this.additionalProperties)return new O("additionalProperties","undefined or null");if(!j.validateMaxItems(this.additionalProperties,100))return new O("additionalProperties","does not satisfy required maxItems constraint: 100")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}Dt.prototype.isAttribute=void 0,Dt.prototype.isAttributePersistedAsTimeSeries=void 0,Dt.prototype.name=void 0,Dt.prototype.displayName=void 0,Dt.prototype.valueType=void 0,Dt.prototype.valueRange=void 0,Dt.prototype.defaultValue=void 0,Dt.prototype.unit=void 0,Dt.prototype.samplingIntervalSecs=void 0,Dt.prototype.downsamplingOperator=void 0,Dt.prototype.additionalProperties=void 0,Dt.prototype.$reserved=void 0,Dt.prototype.$objectType=void 0,Dt.prototype.$unknownFields=void 0;var Rt=new WeakSet;class Ut extends mt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Rt),t.add(e),this.$objectType="aiops.v4.config.EntityDescriptor",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new Ut,mt.constructFromObject(e,t,!0),e.hasOwnProperty("entityType")&&null!==e.entityType&&void 0!==e.entityType&&t.setEntityType(e.entityType),e.hasOwnProperty("source")&&null!==e.source&&void 0!==e.source&&t.setSource(e.source),e.hasOwnProperty("displayName")&&null!==e.displayName&&void 0!==e.displayName&&t.setDisplayName(e.displayName),e.hasOwnProperty("parents")&&null!==e.parents&&void 0!==e.parents){for(r=[],i=e.parents,o=0;o<i.length;o++)s=Ut.constructFromObject(i[o],void 0),r.push(s);t.setParents(r)}if(e.hasOwnProperty("metrics")&&null!==e.metrics&&void 0!==e.metrics){for(r=[],i=e.metrics,o=0;o<i.length;o++)s=Dt.constructFromObject(i[o],void 0),r.push(s);t.setMetrics(r)}if(!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getEntityType(){return this.entityType}setEntityType(e){this.entityType=e}getSource(){return this.source}setSource(e){this.source=e}getDisplayName(){return this.displayName}setDisplayName(e){this.displayName=e}getParents(){return this.parents}setParents(e){this.parents=e}getMetrics(){return this.metrics}setMetrics(e){this.metrics=e}toJson(e){return!1===e?{...void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{},...void 0!==this.getSource()&&null!==this.getSource()?{source:this.getSource()}:{},...void 0!==this.getDisplayName()&&null!==this.getDisplayName()?{displayName:this.getDisplayName()}:{},...void 0!==this.getParents()&&null!==this.getParents()?{parents:this.getParents().map(e=>e.toJson(!1))}:{},...void 0!==this.getMetrics()&&null!==this.getMetrics()?{metrics:this.getMetrics().map(e=>e.toJson(!1))}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{},...void 0!==this.getSource()&&null!==this.getSource()?{source:this.getSource()}:{},...void 0!==this.getDisplayName()&&null!==this.getDisplayName()?{displayName:this.getDisplayName()}:{},...void 0!==this.getParents()&&null!==this.getParents()?{parents:this.getParents().map(e=>e.toJson(!1))}:{},...void 0!==this.getMetrics()&&null!==this.getMetrics()?{metrics:this.getMetrics().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("entityType"===t&&(void 0===this.entityType||null===this.entityType))return new O("entityType","undefined or null");if("source"===t&&(void 0===this.source||null===this.source))return new O("source","undefined or null");if("displayName"===t){if(void 0===this.displayName||null===this.displayName)return new O("displayName","undefined or null");if(!j.validateMaxLength(this.displayName,50))return new O("displayName","does not satisfy required maxLength constraint: 50")}if("parents"===t){if(void 0===this.parents||null===this.parents)return new O("parents","undefined or null");if(!j.validateMaxItems(this.parents,5))return new O("parents","does not satisfy required maxItems constraint: 5")}if("metrics"===t){if(void 0===this.metrics||null===this.metrics)return new O("metrics","undefined or null");if(!j.validateMaxItems(this.metrics,100))return new O("metrics","does not satisfy required maxItems constraint: 100")}return new O(t,"no such property exists")}}function It(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ut.prototype.entityType=void 0,Ut.prototype.source=void 0,Ut.prototype.displayName=void 0,Ut.prototype.parents=void 0,Ut.prototype.metrics=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;var At=new WeakSet;class Mt extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=At),t.add(e),this.$objectType="aiops.v4.config.EntityDescriptorListApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,a,l;if(e){if(t=t||new Mt,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],i=e.data,l=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],r=0;r<i.length;r++){if("aiops.v4.config.EntityDescriptor"!==l)throw"Unknown list of type "+l+" in data";s=Ut.constructFromObject(i[r],void 0),a.push(s)}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"aiops.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Be.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):It(At,this,Nt).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):It(At,this,Nt).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function Nt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Mt.prototype.metadata=void 0,Mt.prototype.data=void 0,Mt.prototype.$reserved=void 0,Mt.prototype.$objectType=void 0,Mt.prototype.$unknownFields=void 0;var xt=new WeakSet;class Vt extends mt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=xt),t.add(e),this.$objectType="aiops.v4.config.Source",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Vt,mt.constructFromObject(e,t,!0),e.hasOwnProperty("sourceName")&&null!==e.sourceName&&void 0!==e.sourceName&&t.setSourceName(e.sourceName),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getSourceName(){return this.sourceName}setSourceName(e){this.sourceName=e}toJson(e){return!1===e?{...void 0!==this.getSourceName()&&null!==this.getSourceName()?{sourceName:this.getSourceName()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getSourceName()&&null!==this.getSourceName()?{sourceName:this.getSourceName()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("sourceName"===t){if(void 0===this.sourceName||null===this.sourceName)return new O("sourceName","undefined or null");if(!j.validateMaxLength(this.sourceName,50))return new O("sourceName","does not satisfy required maxLength constraint: 50")}return new O(t,"no such property exists")}}function Lt(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Vt.prototype.sourceName=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;var Bt=new WeakSet;class Wt extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Bt),t.add(e),this.$objectType="aiops.v4.config.SourceListApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,a,l;if(e){if(t=t||new Wt,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],i=e.data,l=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],r=0;r<i.length;r++){if("aiops.v4.config.Source"!==l)throw"Unknown list of type "+l+" in data";s=Vt.constructFromObject(i[r],void 0),a.push(s)}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"aiops.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Be.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Lt(Bt,this,zt).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Lt(Bt,this,zt).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function zt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Wt.prototype.metadata=void 0,Wt.prototype.data=void 0,Wt.prototype.$reserved=void 0,Wt.prototype.$objectType=void 0,Wt.prototype.$unknownFields=void 0;var Jt=new WeakSet;class _t extends mt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Jt),t.add(e),this.$objectType="aiops.v4.config.EntityType",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new _t,mt.constructFromObject(e,t,!0),e.hasOwnProperty("entityTypeName")&&null!==e.entityTypeName&&void 0!==e.entityTypeName&&t.setEntityTypeName(e.entityTypeName),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getEntityTypeName(){return this.entityTypeName}setEntityTypeName(e){this.entityTypeName=e}toJson(e){return!1===e?{...void 0!==this.getEntityTypeName()&&null!==this.getEntityTypeName()?{entityTypeName:this.getEntityTypeName()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getEntityTypeName()&&null!==this.getEntityTypeName()?{entityTypeName:this.getEntityTypeName()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("entityTypeName"===t){if(void 0===this.entityTypeName||null===this.entityTypeName)return new O("entityTypeName","undefined or null");if(!j.validateMaxLength(this.entityTypeName,50))return new O("entityTypeName","does not satisfy required maxLength constraint: 50")}return new O(t,"no such property exists")}}function Gt(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}_t.prototype.entityTypeName=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;var qt=new WeakSet;class Ht extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=qt),t.add(e),this.$objectType="aiops.v4.config.EntityTypeListApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,a,l;if(e){if(t=t||new Ht,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],i=e.data,l=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],r=0;r<i.length;r++){if("aiops.v4.config.EntityType"!==l)throw"Unknown list of type "+l+" in data";s=_t.constructFromObject(i[r],void 0),a.push(s)}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"aiops.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Be.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Gt(qt,this,Kt).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Gt(qt,this,Kt).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function Kt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Ht.prototype.metadata=void 0,Ht.prototype.data=void 0,Ht.prototype.$reserved=void 0,Ht.prototype.$objectType=void 0,Ht.prototype.$unknownFields=void 0;var Xt=new WeakSet;class Zt{constructor(e,t,n){var i,s;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(i=this,s=Xt),s.add(i),this.vcpuCount=e,this.ramGb=t,this.hddGb=n,this.$objectType="aiops.v4.config.SimulatedVmResourceSpec",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Zt,e.hasOwnProperty("vcpuCount")&&null!==e.vcpuCount&&void 0!==e.vcpuCount&&t.setVcpuCount(e.vcpuCount),e.hasOwnProperty("ramGb")&&null!==e.ramGb&&void 0!==e.ramGb&&t.setRamGb(e.ramGb),e.hasOwnProperty("hddGb")&&null!==e.hddGb&&void 0!==e.hddGb&&t.setHddGb(e.hddGb),e.hasOwnProperty("ssdGb")&&null!==e.ssdGb&&void 0!==e.ssdGb&&t.setSsdGb(e.ssdGb),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getVcpuCount(){return this.vcpuCount}setVcpuCount(e){this.vcpuCount=e}getRamGb(){return this.ramGb}setRamGb(e){this.ramGb=e}getHddGb(){return this.hddGb}setHddGb(e){this.hddGb=e}getSsdGb(){return this.ssdGb}setSsdGb(e){this.ssdGb=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getVcpuCount()&&null!==this.getVcpuCount()?{vcpuCount:this.getVcpuCount()}:{},...void 0!==this.getRamGb()&&null!==this.getRamGb()?{ramGb:this.getRamGb()}:{},...void 0!==this.getHddGb()&&null!==this.getHddGb()?{hddGb:this.getHddGb()}:{},...void 0!==this.getSsdGb()&&null!==this.getSsdGb()?{ssdGb:this.getSsdGb()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["vcpuCount","ramGb","hddGb"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"vcpuCount"!==t||void 0!==this.vcpuCount&&null!==this.vcpuCount?"ramGb"!==t||void 0!==this.ramGb&&null!==this.ramGb?"hddGb"!==t||void 0!==this.hddGb&&null!==this.hddGb?"ssdGb"!==t||void 0!==this.ssdGb&&null!==this.ssdGb?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("ssdGb","undefined or null"):new O("hddGb","undefined or null"):new O("ramGb","undefined or null"):new O("vcpuCount","undefined or null")}}Zt.prototype.vcpuCount=void 0,Zt.prototype.ramGb=void 0,Zt.prototype.hddGb=void 0,Zt.prototype.ssdGb=void 0,Zt.prototype.$reserved=void 0,Zt.prototype.$objectType=void 0,Zt.prototype.$unknownFields=void 0;var Yt=new WeakSet;class Qt extends mt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Yt),t.add(e),this.$objectType="aiops.v4.config.Simulation",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Qt,mt.constructFromObject(e,t,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("simulationSpec")&&null!==e.simulationSpec&&void 0!==e.simulationSpec&&t.setSimulationSpec(Zt.constructFromObject(e.simulationSpec)),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getSimulationSpec(){return this.simulationSpec}setSimulationSpec(e){this.simulationSpec=e}toJson(e){return!1===e?{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getSimulationSpec()&&null!==this.getSimulationSpec()?{simulationSpec:this.getSimulationSpec().toJson(!1)}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getSimulationSpec()&&null!==this.getSimulationSpec()?{simulationSpec:this.getSimulationSpec().toJson(!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!j.validateMaxLength(this.name,256))return new O("name","does not satisfy required maxLength constraint: 256");if(!j.validateMinLength(this.name,1))return new O("name","does not satisfy required minLength constraint: 1")}return"simulationSpec"!==t||void 0!==this.simulationSpec&&null!==this.simulationSpec?new O(t,"no such property exists"):new O("simulationSpec","undefined or null")}}function en(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Qt.prototype.name=void 0,Qt.prototype.simulationSpec=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;var tn=new WeakSet;class nn extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=tn),t.add(e),this.$objectType="aiops.v4.config.CreateSimulationApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new nn,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"aiops.v4.config.Simulation":t.setData(Qt.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):en(tn,this,sn).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):en(tn,this,sn).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function sn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}nn.prototype.metadata=void 0,nn.prototype.data=void 0,nn.prototype.$reserved=void 0,nn.prototype.$objectType=void 0,nn.prototype.$unknownFields=void 0;class on extends Qt{constructor(){super(),this.$objectType="aiops.v4.config.SimulationProjection",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new on,Qt.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return new O(t,"no such property exists")}}function rn(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var an=new WeakSet;class ln extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=an),t.add(e),this.$objectType="aiops.v4.config.ListSimulationsApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,a,l;if(e){if(t=t||new ln,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],i=e.data,l=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],r=0;r<i.length;r++)switch(l){case"aiops.v4.config.Simulation":s=Qt.constructFromObject(i[r],void 0),a.push(s);break;case"aiops.v4.config.SimulationProjection":s=on.constructFromObject(i[r],void 0),a.push(s);break;default:throw"Unknown list of type "+l+" in data"}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"aiops.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Be.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):rn(an,this,dn).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):rn(an,this,dn).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function dn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function un(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}ln.prototype.metadata=void 0,ln.prototype.data=void 0,ln.prototype.$reserved=void 0,ln.prototype.$objectType=void 0,ln.prototype.$unknownFields=void 0;var hn=new WeakSet;class cn extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=hn),t.add(e),this.$objectType="aiops.v4.config.UpdateSimulationApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,a,l;if(e){if(t=t||new cn,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],i=e.data,l=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],r=0;r<i.length;r++){if("aiops.v4.error.AppMessage"!==l)throw"Unknown list of type "+l+" in data";s=De.constructFromObject(i[r],void 0),a.push(s)}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"aiops.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Be.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):un(hn,this,pn).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):un(hn,this,pn).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function pn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}cn.prototype.metadata=void 0,cn.prototype.data=void 0,cn.prototype.$reserved=void 0,cn.prototype.$objectType=void 0,cn.prototype.$unknownFields=void 0;const yn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",RF_2:"RF_2",RF_3:"RF_3",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(yn).find(t=>yn[t]===e);return null==t?yn.$UNKNOWN:yn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case yn.$UNKNOWN:case yn.$REDACTED:case yn.RF_2:case yn.RF_3:return;default:throw new Error("Invalid : must be ReplicationFactor.{ $UNKNOWN|$REDACTED|RF_2|RF_3 }")}}};Object.freeze(yn);const vn=yn;var gn=new WeakSet;class mn{constructor(e,t,n,i,s,o,r,a,l,d){var u,h;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(u=this,h=gn),h.add(u),this.replicationFactor=e,this.compressionSavingPercent=t,this.dedupSavingPercent=n,this.erasureCodingSavingPercent=i,this.overallSavingPercent=s,this.cpuOverCommitRatio=o,this.ramOverCommitRatio=r,this.cpuReservationPercentage=a,this.ramReservationPercentage=l,this.storageReservationPercentage=d,this.$objectType="aiops.v4.config.DataStoreConfig",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new mn,e.hasOwnProperty("replicationFactor")&&null!==e.replicationFactor&&void 0!==e.replicationFactor&&t.setReplicationFactor(vn.constructFromObject(e.replicationFactor)),e.hasOwnProperty("compressionSavingPercent")&&null!==e.compressionSavingPercent&&void 0!==e.compressionSavingPercent&&t.setCompressionSavingPercent(e.compressionSavingPercent),e.hasOwnProperty("dedupSavingPercent")&&null!==e.dedupSavingPercent&&void 0!==e.dedupSavingPercent&&t.setDedupSavingPercent(e.dedupSavingPercent),e.hasOwnProperty("erasureCodingSavingPercent")&&null!==e.erasureCodingSavingPercent&&void 0!==e.erasureCodingSavingPercent&&t.setErasureCodingSavingPercent(e.erasureCodingSavingPercent),e.hasOwnProperty("overallSavingPercent")&&null!==e.overallSavingPercent&&void 0!==e.overallSavingPercent&&t.setOverallSavingPercent(e.overallSavingPercent),e.hasOwnProperty("cpuOverCommitRatio")&&null!==e.cpuOverCommitRatio&&void 0!==e.cpuOverCommitRatio&&t.setCpuOverCommitRatio(e.cpuOverCommitRatio),e.hasOwnProperty("ramOverCommitRatio")&&null!==e.ramOverCommitRatio&&void 0!==e.ramOverCommitRatio&&t.setRamOverCommitRatio(e.ramOverCommitRatio),e.hasOwnProperty("cpuReservationPercentage")&&null!==e.cpuReservationPercentage&&void 0!==e.cpuReservationPercentage&&t.setCpuReservationPercentage(e.cpuReservationPercentage),e.hasOwnProperty("ramReservationPercentage")&&null!==e.ramReservationPercentage&&void 0!==e.ramReservationPercentage&&t.setRamReservationPercentage(e.ramReservationPercentage),e.hasOwnProperty("storageReservationPercentage")&&null!==e.storageReservationPercentage&&void 0!==e.storageReservationPercentage&&t.setStorageReservationPercentage(e.storageReservationPercentage),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getReplicationFactor(){return this.replicationFactor}setReplicationFactor(e){this.replicationFactor=e}getCompressionSavingPercent(){return this.compressionSavingPercent}setCompressionSavingPercent(e){this.compressionSavingPercent=e}getDedupSavingPercent(){return this.dedupSavingPercent}setDedupSavingPercent(e){this.dedupSavingPercent=e}getErasureCodingSavingPercent(){return this.erasureCodingSavingPercent}setErasureCodingSavingPercent(e){this.erasureCodingSavingPercent=e}getOverallSavingPercent(){return this.overallSavingPercent}setOverallSavingPercent(e){this.overallSavingPercent=e}getCpuOverCommitRatio(){return this.cpuOverCommitRatio}setCpuOverCommitRatio(e){this.cpuOverCommitRatio=e}getRamOverCommitRatio(){return this.ramOverCommitRatio}setRamOverCommitRatio(e){this.ramOverCommitRatio=e}getCpuReservationPercentage(){return this.cpuReservationPercentage}setCpuReservationPercentage(e){this.cpuReservationPercentage=e}getRamReservationPercentage(){return this.ramReservationPercentage}setRamReservationPercentage(e){this.ramReservationPercentage=e}getStorageReservationPercentage(){return this.storageReservationPercentage}setStorageReservationPercentage(e){this.storageReservationPercentage=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getReplicationFactor()&&null!==this.getReplicationFactor()?{replicationFactor:this.getReplicationFactor()}:{},...void 0!==this.getCompressionSavingPercent()&&null!==this.getCompressionSavingPercent()?{compressionSavingPercent:this.getCompressionSavingPercent()}:{},...void 0!==this.getDedupSavingPercent()&&null!==this.getDedupSavingPercent()?{dedupSavingPercent:this.getDedupSavingPercent()}:{},...void 0!==this.getErasureCodingSavingPercent()&&null!==this.getErasureCodingSavingPercent()?{erasureCodingSavingPercent:this.getErasureCodingSavingPercent()}:{},...void 0!==this.getOverallSavingPercent()&&null!==this.getOverallSavingPercent()?{overallSavingPercent:this.getOverallSavingPercent()}:{},...void 0!==this.getCpuOverCommitRatio()&&null!==this.getCpuOverCommitRatio()?{cpuOverCommitRatio:this.getCpuOverCommitRatio()}:{},...void 0!==this.getRamOverCommitRatio()&&null!==this.getRamOverCommitRatio()?{ramOverCommitRatio:this.getRamOverCommitRatio()}:{},...void 0!==this.getCpuReservationPercentage()&&null!==this.getCpuReservationPercentage()?{cpuReservationPercentage:this.getCpuReservationPercentage()}:{},...void 0!==this.getRamReservationPercentage()&&null!==this.getRamReservationPercentage()?{ramReservationPercentage:this.getRamReservationPercentage()}:{},...void 0!==this.getStorageReservationPercentage()&&null!==this.getStorageReservationPercentage()?{storageReservationPercentage:this.getStorageReservationPercentage()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["replicationFactor","compressionSavingPercent","dedupSavingPercent","erasureCodingSavingPercent","overallSavingPercent","cpuOverCommitRatio","ramOverCommitRatio","cpuReservationPercentage","ramReservationPercentage","storageReservationPercentage"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"replicationFactor"!==t||void 0!==this.replicationFactor&&null!==this.replicationFactor?"compressionSavingPercent"!==t||void 0!==this.compressionSavingPercent&&null!==this.compressionSavingPercent?"dedupSavingPercent"!==t||void 0!==this.dedupSavingPercent&&null!==this.dedupSavingPercent?"erasureCodingSavingPercent"!==t||void 0!==this.erasureCodingSavingPercent&&null!==this.erasureCodingSavingPercent?"overallSavingPercent"!==t||void 0!==this.overallSavingPercent&&null!==this.overallSavingPercent?"cpuOverCommitRatio"!==t||void 0!==this.cpuOverCommitRatio&&null!==this.cpuOverCommitRatio?"ramOverCommitRatio"!==t||void 0!==this.ramOverCommitRatio&&null!==this.ramOverCommitRatio?"cpuReservationPercentage"!==t||void 0!==this.cpuReservationPercentage&&null!==this.cpuReservationPercentage?"ramReservationPercentage"!==t||void 0!==this.ramReservationPercentage&&null!==this.ramReservationPercentage?"storageReservationPercentage"!==t||void 0!==this.storageReservationPercentage&&null!==this.storageReservationPercentage?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("storageReservationPercentage","undefined or null"):new O("ramReservationPercentage","undefined or null"):new O("cpuReservationPercentage","undefined or null"):new O("ramOverCommitRatio","undefined or null"):new O("cpuOverCommitRatio","undefined or null"):new O("overallSavingPercent","undefined or null"):new O("erasureCodingSavingPercent","undefined or null"):new O("dedupSavingPercent","undefined or null"):new O("compressionSavingPercent","undefined or null"):new O("replicationFactor","undefined or null")}}mn.prototype.replicationFactor=void 0,mn.prototype.compressionSavingPercent=25.81037,mn.prototype.dedupSavingPercent=35.864,mn.prototype.erasureCodingSavingPercent=15.16939,mn.prototype.overallSavingPercent=59.64,mn.prototype.cpuOverCommitRatio=1,mn.prototype.ramOverCommitRatio=1,mn.prototype.cpuReservationPercentage=0,mn.prototype.ramReservationPercentage=0,mn.prototype.storageReservationPercentage=0,mn.prototype.$reserved=void 0,mn.prototype.$objectType=void 0,mn.prototype.$unknownFields=void 0;const wn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",EXISTING:"EXISTING",USER_ADDED:"USER_ADDED",RECOMMENDED:"RECOMMENDED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(wn).find(t=>wn[t]===e);return null==t?wn.$UNKNOWN:wn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case wn.$UNKNOWN:case wn.$REDACTED:case wn.EXISTING:case wn.USER_ADDED:case wn.RECOMMENDED:return;default:throw new Error("Invalid : must be NodeSource.{ $UNKNOWN|$REDACTED|EXISTING|USER_ADDED|RECOMMENDED }")}}};Object.freeze(wn);const $n=wn;var fn=new WeakSet;class bn{constructor(e,t,n,i,s){var o,r;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(o=this,r=fn),r.add(o),this.cpuGhz=e,this.ramGb=t,this.hddGb=n,this.ssdGb=i,this.nvmeGb=s,this.$objectType="aiops.v4.config.ResourceCapacity",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new bn,e.hasOwnProperty("cpuGhz")&&null!==e.cpuGhz&&void 0!==e.cpuGhz&&t.setCpuGhz(e.cpuGhz),e.hasOwnProperty("ramGb")&&null!==e.ramGb&&void 0!==e.ramGb&&t.setRamGb(e.ramGb),e.hasOwnProperty("hddGb")&&null!==e.hddGb&&void 0!==e.hddGb&&t.setHddGb(e.hddGb),e.hasOwnProperty("ssdGb")&&null!==e.ssdGb&&void 0!==e.ssdGb&&t.setSsdGb(e.ssdGb),e.hasOwnProperty("nvmeGb")&&null!==e.nvmeGb&&void 0!==e.nvmeGb&&t.setNvmeGb(e.nvmeGb),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getCpuGhz(){return this.cpuGhz}setCpuGhz(e){this.cpuGhz=e}getRamGb(){return this.ramGb}setRamGb(e){this.ramGb=e}getHddGb(){return this.hddGb}setHddGb(e){this.hddGb=e}getSsdGb(){return this.ssdGb}setSsdGb(e){this.ssdGb=e}getNvmeGb(){return this.nvmeGb}setNvmeGb(e){this.nvmeGb=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getCpuGhz()&&null!==this.getCpuGhz()?{cpuGhz:this.getCpuGhz()}:{},...void 0!==this.getRamGb()&&null!==this.getRamGb()?{ramGb:this.getRamGb()}:{},...void 0!==this.getHddGb()&&null!==this.getHddGb()?{hddGb:this.getHddGb()}:{},...void 0!==this.getSsdGb()&&null!==this.getSsdGb()?{ssdGb:this.getSsdGb()}:{},...void 0!==this.getNvmeGb()&&null!==this.getNvmeGb()?{nvmeGb:this.getNvmeGb()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["cpuGhz","ramGb","hddGb","ssdGb","nvmeGb"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"cpuGhz"!==t||void 0!==this.cpuGhz&&null!==this.cpuGhz?"ramGb"!==t||void 0!==this.ramGb&&null!==this.ramGb?"hddGb"!==t||void 0!==this.hddGb&&null!==this.hddGb?"ssdGb"!==t||void 0!==this.ssdGb&&null!==this.ssdGb?"nvmeGb"!==t||void 0!==this.nvmeGb&&null!==this.nvmeGb?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("nvmeGb","undefined or null"):new O("ssdGb","undefined or null"):new O("hddGb","undefined or null"):new O("ramGb","undefined or null"):new O("cpuGhz","undefined or null")}}function Tn(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}bn.prototype.cpuGhz=void 0,bn.prototype.ramGb=void 0,bn.prototype.hddGb=void 0,bn.prototype.ssdGb=void 0,bn.prototype.nvmeGb=void 0,bn.prototype.$reserved=void 0,bn.prototype.$objectType=void 0,bn.prototype.$unknownFields=void 0;var kn=new WeakSet;class jn{constructor(e,t,n,i){var s,o;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(s=this,o=kn),o.add(s),this.model=e,this.nodeCount=t,this.isEnabled=n,this.nodeSource=i,this.$objectType="aiops.v4.config.NodeConfig",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new jn,e.hasOwnProperty("model")&&null!==e.model&&void 0!==e.model&&t.setModel(e.model),e.hasOwnProperty("nodeCount")&&null!==e.nodeCount&&void 0!==e.nodeCount&&t.setNodeCount(e.nodeCount),e.hasOwnProperty("targetOnlineTime")&&null!==e.targetOnlineTime&&void 0!==e.targetOnlineTime&&t.setTargetOnlineTime(e.targetOnlineTime),e.hasOwnProperty("isEnabled")&&null!==e.isEnabled&&void 0!==e.isEnabled&&t.setIsEnabled(e.isEnabled),e.hasOwnProperty("isDisregarded")&&null!==e.isDisregarded&&void 0!==e.isDisregarded&&t.setIsDisregarded(e.isDisregarded),e.hasOwnProperty("nodeSource")&&null!==e.nodeSource&&void 0!==e.nodeSource&&t.setNodeSource($n.constructFromObject(e.nodeSource)),e.hasOwnProperty("nodeResourceCapacity")&&null!==e.nodeResourceCapacity&&void 0!==e.nodeResourceCapacity&&t.setNodeResourceCapacity(bn.constructFromObject(e.nodeResourceCapacity)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getModel(){return this.model}setModel(e){this.model=e}getNodeCount(){return this.nodeCount}setNodeCount(e){this.nodeCount=e}getTargetOnlineTime(){return this.targetOnlineTime}setTargetOnlineTime(e){this.targetOnlineTime=e}getIsEnabled(){return this.isEnabled}setIsEnabled(e){this.isEnabled=e}getIsDisregarded(){return this.isDisregarded}setIsDisregarded(e){this.isDisregarded=e}getNodeSource(){return this.nodeSource}setNodeSource(e){this.nodeSource=e}getNodeResourceCapacity(){return this.nodeResourceCapacity}setNodeResourceCapacity(e){this.nodeResourceCapacity=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getModel()&&null!==this.getModel()?{model:this.getModel()}:{},...void 0!==this.getNodeCount()&&null!==this.getNodeCount()?{nodeCount:this.getNodeCount()}:{},...void 0!==this.getTargetOnlineTime()&&null!==this.getTargetOnlineTime()?{targetOnlineTime:Tn(kn,this,On).call(this,this.getTargetOnlineTime(),!1)}:{},...void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{},...void 0!==this.getIsDisregarded()&&null!==this.getIsDisregarded()?{isDisregarded:this.getIsDisregarded()}:{},...void 0!==this.getNodeSource()&&null!==this.getNodeSource()?{nodeSource:this.getNodeSource()}:{},...void 0!==this.getNodeResourceCapacity()&&null!==this.getNodeResourceCapacity()?{nodeResourceCapacity:this.getNodeResourceCapacity().toJson(!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["model","nodeCount","isEnabled","nodeSource"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("model"===t&&(void 0===this.model||null===this.model))return new O("model","undefined or null");if("nodeCount"===t){if(void 0===this.nodeCount||null===this.nodeCount)return new O("nodeCount","undefined or null");if(!j.validateMaximum(this.nodeCount,500))return new O("nodeCount","does not satisfy required maximum constraint: 500");if(!j.validateMinimum(this.nodeCount,1))return new O("nodeCount","does not satisfy required minimum constraint: 1")}return"targetOnlineTime"!==t||void 0!==this.targetOnlineTime&&null!==this.targetOnlineTime?"isEnabled"!==t||void 0!==this.isEnabled&&null!==this.isEnabled?"isDisregarded"!==t||void 0!==this.isDisregarded&&null!==this.isDisregarded?"nodeSource"!==t||void 0!==this.nodeSource&&null!==this.nodeSource?"nodeResourceCapacity"!==t||void 0!==this.nodeResourceCapacity&&null!==this.nodeResourceCapacity?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("nodeResourceCapacity","undefined or null"):new O("nodeSource","undefined or null"):new O("isDisregarded","undefined or null"):new O("isEnabled","undefined or null"):new O("targetOnlineTime","undefined or null")}}function On(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}jn.prototype.model=void 0,jn.prototype.nodeCount=void 0,jn.prototype.targetOnlineTime=void 0,jn.prototype.isEnabled=!1,jn.prototype.isDisregarded=!1,jn.prototype.nodeSource=void 0,jn.prototype.nodeResourceCapacity=void 0,jn.prototype.$reserved=void 0,jn.prototype.$objectType=void 0,jn.prototype.$unknownFields=void 0;var Fn=new WeakSet;class Cn{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Fn),t.add(e),this.$objectType="aiops.v4.config.ClusterConfig",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new Cn,e.hasOwnProperty("dataStoreConfig")&&null!==e.dataStoreConfig&&void 0!==e.dataStoreConfig&&t.setDataStoreConfig(mn.constructFromObject(e.dataStoreConfig)),e.hasOwnProperty("nodeConfigs")&&null!==e.nodeConfigs&&void 0!==e.nodeConfigs){for(r=[],i=e.nodeConfigs,o=0;o<i.length;o++)s=jn.constructFromObject(i[o],void 0),r.push(s);t.setNodeConfigs(r)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getDataStoreConfig(){return this.dataStoreConfig}setDataStoreConfig(e){this.dataStoreConfig=e}getNodeConfigs(){return this.nodeConfigs}setNodeConfigs(e){this.nodeConfigs=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getDataStoreConfig()&&null!==this.getDataStoreConfig()?{dataStoreConfig:this.getDataStoreConfig().toJson(!1)}:{},...void 0!==this.getNodeConfigs()&&null!==this.getNodeConfigs()?{nodeConfigs:this.getNodeConfigs().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("dataStoreConfig"===t&&(void 0===this.dataStoreConfig||null===this.dataStoreConfig))return new O("dataStoreConfig","undefined or null");if("nodeConfigs"===t){if(void 0===this.nodeConfigs||null===this.nodeConfigs)return new O("nodeConfigs","undefined or null");if(!j.validateMaxItems(this.nodeConfigs,50))return new O("nodeConfigs","does not satisfy required maxItems constraint: 50")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}function Pn(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Cn.prototype.dataStoreConfig=void 0,Cn.prototype.nodeConfigs=void 0,Cn.prototype.$reserved=void 0,Cn.prototype.$objectType=void 0,Cn.prototype.$unknownFields=void 0;var Sn=new WeakSet;class En{constructor(e,t,n,i,s){var o,r;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(o=this,r=Sn),r.add(o),this.minimumRunwayDays=e,this.cpuRunwayDays=t,this.memoryRunwayDays=n,this.storageRunwayDays=i,this.runwayStartTime=s,this.$objectType="aiops.v4.config.Runway",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new En,e.hasOwnProperty("minimumRunwayDays")&&null!==e.minimumRunwayDays&&void 0!==e.minimumRunwayDays&&t.setMinimumRunwayDays(e.minimumRunwayDays),e.hasOwnProperty("cpuRunwayDays")&&null!==e.cpuRunwayDays&&void 0!==e.cpuRunwayDays&&t.setCpuRunwayDays(e.cpuRunwayDays),e.hasOwnProperty("memoryRunwayDays")&&null!==e.memoryRunwayDays&&void 0!==e.memoryRunwayDays&&t.setMemoryRunwayDays(e.memoryRunwayDays),e.hasOwnProperty("storageRunwayDays")&&null!==e.storageRunwayDays&&void 0!==e.storageRunwayDays&&t.setStorageRunwayDays(e.storageRunwayDays),e.hasOwnProperty("runwayStartTime")&&null!==e.runwayStartTime&&void 0!==e.runwayStartTime&&t.setRunwayStartTime(e.runwayStartTime),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMinimumRunwayDays(){return this.minimumRunwayDays}setMinimumRunwayDays(e){this.minimumRunwayDays=e}getCpuRunwayDays(){return this.cpuRunwayDays}setCpuRunwayDays(e){this.cpuRunwayDays=e}getMemoryRunwayDays(){return this.memoryRunwayDays}setMemoryRunwayDays(e){this.memoryRunwayDays=e}getStorageRunwayDays(){return this.storageRunwayDays}setStorageRunwayDays(e){this.storageRunwayDays=e}getRunwayStartTime(){return this.runwayStartTime}setRunwayStartTime(e){this.runwayStartTime=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getMinimumRunwayDays()&&null!==this.getMinimumRunwayDays()?{minimumRunwayDays:this.getMinimumRunwayDays()}:{},...void 0!==this.getCpuRunwayDays()&&null!==this.getCpuRunwayDays()?{cpuRunwayDays:this.getCpuRunwayDays()}:{},...void 0!==this.getMemoryRunwayDays()&&null!==this.getMemoryRunwayDays()?{memoryRunwayDays:this.getMemoryRunwayDays()}:{},...void 0!==this.getStorageRunwayDays()&&null!==this.getStorageRunwayDays()?{storageRunwayDays:this.getStorageRunwayDays()}:{},...void 0!==this.getRunwayStartTime()&&null!==this.getRunwayStartTime()?{runwayStartTime:Pn(Sn,this,Dn).call(this,this.getRunwayStartTime(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["minimumRunwayDays","cpuRunwayDays","memoryRunwayDays","storageRunwayDays","runwayStartTime"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("minimumRunwayDays"===t){if(void 0===this.minimumRunwayDays||null===this.minimumRunwayDays)return new O("minimumRunwayDays","undefined or null");if(!j.validateMaximum(this.minimumRunwayDays,366))return new O("minimumRunwayDays","does not satisfy required maximum constraint: 366");if(!j.validateMinimum(this.minimumRunwayDays,-1))return new O("minimumRunwayDays","does not satisfy required minimum constraint: -1")}if("cpuRunwayDays"===t){if(void 0===this.cpuRunwayDays||null===this.cpuRunwayDays)return new O("cpuRunwayDays","undefined or null");if(!j.validateMaximum(this.cpuRunwayDays,366))return new O("cpuRunwayDays","does not satisfy required maximum constraint: 366");if(!j.validateMinimum(this.cpuRunwayDays,-1))return new O("cpuRunwayDays","does not satisfy required minimum constraint: -1")}if("memoryRunwayDays"===t){if(void 0===this.memoryRunwayDays||null===this.memoryRunwayDays)return new O("memoryRunwayDays","undefined or null");if(!j.validateMaximum(this.memoryRunwayDays,366))return new O("memoryRunwayDays","does not satisfy required maximum constraint: 366");if(!j.validateMinimum(this.memoryRunwayDays,-1))return new O("memoryRunwayDays","does not satisfy required minimum constraint: -1")}if("storageRunwayDays"===t){if(void 0===this.storageRunwayDays||null===this.storageRunwayDays)return new O("storageRunwayDays","undefined or null");if(!j.validateMaximum(this.storageRunwayDays,366))return new O("storageRunwayDays","does not satisfy required maximum constraint: 366");if(!j.validateMinimum(this.storageRunwayDays,-1))return new O("storageRunwayDays","does not satisfy required minimum constraint: -1")}return"runwayStartTime"!==t||void 0!==this.runwayStartTime&&null!==this.runwayStartTime?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("runwayStartTime","undefined or null")}}function Dn(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}En.prototype.minimumRunwayDays=void 0,En.prototype.cpuRunwayDays=void 0,En.prototype.memoryRunwayDays=void 0,En.prototype.storageRunwayDays=void 0,En.prototype.runwayStartTime=void 0,En.prototype.$reserved=void 0,En.prototype.$objectType=void 0,En.prototype.$unknownFields=void 0;const Rn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",NUTANIX:"NUTANIX",DELL:"DELL",LENOVO:"LENOVO",CISCO:"CISCO",IBM:"IBM",HPE_DX:"HPE_DX",AWS:"AWS",FUJITSU:"FUJITSU",AZURE:"AZURE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Rn).find(t=>Rn[t]===e);return null==t?Rn.$UNKNOWN:Rn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Rn.$UNKNOWN:case Rn.$REDACTED:case Rn.NUTANIX:case Rn.DELL:case Rn.LENOVO:case Rn.CISCO:case Rn.IBM:case Rn.HPE_DX:case Rn.AWS:case Rn.FUJITSU:case Rn.AZURE:return;default:throw new Error("Invalid : must be Vendor.{ $UNKNOWN|$REDACTED|NUTANIX|DELL|LENOVO|CISCO|IBM|HPE_DX|AWS|FUJITSU|AZURE }")}}};Object.freeze(Rn);const Un=Rn,In={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INCREASE:"INCREASE",DECREASE:"DECREASE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(In).find(t=>In[t]===e);return null==t?In.$UNKNOWN:In[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case In.$UNKNOWN:case In.$REDACTED:case In.INCREASE:case In.DECREASE:return;default:throw new Error("Invalid : must be CapacityUpdateType.{ $UNKNOWN|$REDACTED|INCREASE|DECREASE }")}}};Object.freeze(In);const An=In;var Mn=new WeakSet;class Nn{constructor(e,t){var n,i;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(n=this,i=Mn),i.add(n),this.percentageChange=e,this.changeType=t,this.$objectType="aiops.v4.config.CapacityUpdateConfig",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Nn,e.hasOwnProperty("percentageChange")&&null!==e.percentageChange&&void 0!==e.percentageChange&&t.setPercentageChange(e.percentageChange),e.hasOwnProperty("changeType")&&null!==e.changeType&&void 0!==e.changeType&&t.setChangeType(An.constructFromObject(e.changeType)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getPercentageChange(){return this.percentageChange}setPercentageChange(e){this.percentageChange=e}getChangeType(){return this.changeType}setChangeType(e){this.changeType=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getPercentageChange()&&null!==this.getPercentageChange()?{percentageChange:this.getPercentageChange()}:{},...void 0!==this.getChangeType()&&null!==this.getChangeType()?{changeType:this.getChangeType()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["percentageChange","changeType"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"percentageChange"!==t||void 0!==this.percentageChange&&null!==this.percentageChange?"changeType"!==t||void 0!==this.changeType&&null!==this.changeType?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("changeType","undefined or null"):new O("percentageChange","undefined or null")}}Nn.prototype.percentageChange=void 0,Nn.prototype.changeType=void 0,Nn.prototype.$reserved=void 0,Nn.prototype.$objectType=void 0,Nn.prototype.$unknownFields=void 0;const xn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",PVS:"PVS",MCS:"MCS",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(xn).find(t=>xn[t]===e);return null==t?xn.$UNKNOWN:xn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case xn.$UNKNOWN:case xn.$REDACTED:case xn.PVS:case xn.MCS:return;default:throw new Error("Invalid : must be CitrixXenProvisionType.{ $UNKNOWN|$REDACTED|PVS|MCS }")}}};Object.freeze(xn);const Vn=xn,Ln={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",XEN_APP:"XEN_APP",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Ln).find(t=>Ln[t]===e);return null==t?Ln.$UNKNOWN:Ln[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ln.$UNKNOWN:case Ln.$REDACTED:case Ln.XEN_APP:return;default:throw new Error("Invalid : must be CitrixXenWorkloadVendor.{ $UNKNOWN|$REDACTED|XEN_APP }")}}};Object.freeze(Ln);const Bn=Ln,Wn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",WINDOWS_2012R2:"WINDOWS_2012R2",WINDOWS_2008R2:"WINDOWS_2008R2",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Wn).find(t=>Wn[t]===e);return null==t?Wn.$UNKNOWN:Wn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Wn.$UNKNOWN:case Wn.$REDACTED:case Wn.WINDOWS_2012R2:case Wn.WINDOWS_2008R2:return;default:throw new Error("Invalid : must be XenOperatingSystem.{ $UNKNOWN|$REDACTED|WINDOWS_2012R2|WINDOWS_2008R2 }")}}};Object.freeze(Wn);const zn=Wn;var Jn=new WeakSet;class _n{constructor(e,t,n,i,s,o){var r,a;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(r=this,a=Jn),a.add(r),this.operatingSystem=e,this.systemDataGb=t,this.userCount=n,this.mcsDiffSizeGb=i,this.userProfileDataMb=s,this.pvsWriteCacheSizeGb=o,this.$objectType="aiops.v4.config.XenWorkload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new _n,e.hasOwnProperty("operatingSystem")&&null!==e.operatingSystem&&void 0!==e.operatingSystem&&t.setOperatingSystem(zn.constructFromObject(e.operatingSystem)),e.hasOwnProperty("systemDataGb")&&null!==e.systemDataGb&&void 0!==e.systemDataGb&&t.setSystemDataGb(e.systemDataGb),e.hasOwnProperty("userCount")&&null!==e.userCount&&void 0!==e.userCount&&t.setUserCount(e.userCount),e.hasOwnProperty("mcsDiffSizeGb")&&null!==e.mcsDiffSizeGb&&void 0!==e.mcsDiffSizeGb&&t.setMcsDiffSizeGb(e.mcsDiffSizeGb),e.hasOwnProperty("userProfileDataMb")&&null!==e.userProfileDataMb&&void 0!==e.userProfileDataMb&&t.setUserProfileDataMb(e.userProfileDataMb),e.hasOwnProperty("pvsWriteCacheSizeGb")&&null!==e.pvsWriteCacheSizeGb&&void 0!==e.pvsWriteCacheSizeGb&&t.setPvsWriteCacheSizeGb(e.pvsWriteCacheSizeGb),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getOperatingSystem(){return this.operatingSystem}setOperatingSystem(e){this.operatingSystem=e}getSystemDataGb(){return this.systemDataGb}setSystemDataGb(e){this.systemDataGb=e}getUserCount(){return this.userCount}setUserCount(e){this.userCount=e}getMcsDiffSizeGb(){return this.mcsDiffSizeGb}setMcsDiffSizeGb(e){this.mcsDiffSizeGb=e}getUserProfileDataMb(){return this.userProfileDataMb}setUserProfileDataMb(e){this.userProfileDataMb=e}getPvsWriteCacheSizeGb(){return this.pvsWriteCacheSizeGb}setPvsWriteCacheSizeGb(e){this.pvsWriteCacheSizeGb=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getOperatingSystem()&&null!==this.getOperatingSystem()?{operatingSystem:this.getOperatingSystem()}:{},...void 0!==this.getSystemDataGb()&&null!==this.getSystemDataGb()?{systemDataGb:this.getSystemDataGb()}:{},...void 0!==this.getUserCount()&&null!==this.getUserCount()?{userCount:this.getUserCount()}:{},...void 0!==this.getMcsDiffSizeGb()&&null!==this.getMcsDiffSizeGb()?{mcsDiffSizeGb:this.getMcsDiffSizeGb()}:{},...void 0!==this.getUserProfileDataMb()&&null!==this.getUserProfileDataMb()?{userProfileDataMb:this.getUserProfileDataMb()}:{},...void 0!==this.getPvsWriteCacheSizeGb()&&null!==this.getPvsWriteCacheSizeGb()?{pvsWriteCacheSizeGb:this.getPvsWriteCacheSizeGb()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["operatingSystem","systemDataGb","userCount","mcsDiffSizeGb","userProfileDataMb","pvsWriteCacheSizeGb"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("operatingSystem"===t&&(void 0===this.operatingSystem||null===this.operatingSystem))return new O("operatingSystem","undefined or null");if("systemDataGb"===t){if(void 0===this.systemDataGb||null===this.systemDataGb)return new O("systemDataGb","undefined or null");if(!j.validateMaximum(this.systemDataGb,62e3))return new O("systemDataGb","does not satisfy required maximum constraint: 62000");if(!j.validateMinimum(this.systemDataGb,20))return new O("systemDataGb","does not satisfy required minimum constraint: 20")}if("userCount"===t){if(void 0===this.userCount||null===this.userCount)return new O("userCount","undefined or null");if(!j.validateMaximum(this.userCount,1e5))return new O("userCount","does not satisfy required maximum constraint: 100000");if(!j.validateMinimum(this.userCount,1))return new O("userCount","does not satisfy required minimum constraint: 1")}if("mcsDiffSizeGb"===t){if(void 0===this.mcsDiffSizeGb||null===this.mcsDiffSizeGb)return new O("mcsDiffSizeGb","undefined or null");if(!j.validateMaximum(this.mcsDiffSizeGb,50))return new O("mcsDiffSizeGb","does not satisfy required maximum constraint: 50");if(!j.validateMinimum(this.mcsDiffSizeGb,10))return new O("mcsDiffSizeGb","does not satisfy required minimum constraint: 10")}if("userProfileDataMb"===t){if(void 0===this.userProfileDataMb||null===this.userProfileDataMb)return new O("userProfileDataMb","undefined or null");if(!j.validateMaximum(this.userProfileDataMb,100))return new O("userProfileDataMb","does not satisfy required maximum constraint: 100");if(!j.validateMinimum(this.userProfileDataMb,20))return new O("userProfileDataMb","does not satisfy required minimum constraint: 20")}if("pvsWriteCacheSizeGb"===t){if(void 0===this.pvsWriteCacheSizeGb||null===this.pvsWriteCacheSizeGb)return new O("pvsWriteCacheSizeGb","undefined or null");if(!j.validateMaximum(this.pvsWriteCacheSizeGb,50))return new O("pvsWriteCacheSizeGb","does not satisfy required maximum constraint: 50");if(!j.validateMinimum(this.pvsWriteCacheSizeGb,10))return new O("pvsWriteCacheSizeGb","does not satisfy required minimum constraint: 10")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}_n.prototype.operatingSystem=void 0,_n.prototype.systemDataGb=void 0,_n.prototype.userCount=void 0,_n.prototype.mcsDiffSizeGb=void 0,_n.prototype.userProfileDataMb=void 0,_n.prototype.pvsWriteCacheSizeGb=void 0,_n.prototype.$reserved=void 0,_n.prototype.$objectType=void 0,_n.prototype.$unknownFields=void 0;var Gn=new WeakSet;class qn extends _n{constructor(e,t,n,i,s,o,r,a){var l,d;super(n,i,s,o,r,a),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(l=this,d=Gn),d.add(l),this.vendor=e,this.provisionType=t,this.$objectType="aiops.v4.config.CitrixXenWorkload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new qn,_n.constructFromObject(e,t,!0),e.hasOwnProperty("vendor")&&null!==e.vendor&&void 0!==e.vendor&&t.setVendor(Bn.constructFromObject(e.vendor)),e.hasOwnProperty("provisionType")&&null!==e.provisionType&&void 0!==e.provisionType&&t.setProvisionType(Vn.constructFromObject(e.provisionType)),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getVendor(){return this.vendor}setVendor(e){this.vendor=e}getProvisionType(){return this.provisionType}setProvisionType(e){this.provisionType=e}toJson(e){return{...void 0!==this.getVendor()&&null!==this.getVendor()?{vendor:this.getVendor()}:{},...void 0!==this.getProvisionType()&&null!==this.getProvisionType()?{provisionType:this.getProvisionType()}:{},...void 0!==this.getOperatingSystem()&&null!==this.getOperatingSystem()?{operatingSystem:this.getOperatingSystem()}:{},...void 0!==this.getSystemDataGb()&&null!==this.getSystemDataGb()?{systemDataGb:this.getSystemDataGb()}:{},...void 0!==this.getUserCount()&&null!==this.getUserCount()?{userCount:this.getUserCount()}:{},...void 0!==this.getMcsDiffSizeGb()&&null!==this.getMcsDiffSizeGb()?{mcsDiffSizeGb:this.getMcsDiffSizeGb()}:{},...void 0!==this.getUserProfileDataMb()&&null!==this.getUserProfileDataMb()?{userProfileDataMb:this.getUserProfileDataMb()}:{},...void 0!==this.getPvsWriteCacheSizeGb()&&null!==this.getPvsWriteCacheSizeGb()?{pvsWriteCacheSizeGb:this.getPvsWriteCacheSizeGb()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["operatingSystem","systemDataGb","userCount","mcsDiffSizeGb","userProfileDataMb","pvsWriteCacheSizeGb","vendor","provisionType"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"vendor"!==t||void 0!==this.vendor&&null!==this.vendor?"provisionType"!==t||void 0!==this.provisionType&&null!==this.provisionType?new O(t,"no such property exists"):new O("provisionType","undefined or null"):new O("vendor","undefined or null")}}qn.prototype.vendor=void 0,qn.prototype.provisionType=void 0,_n.prototype.operatingSystem=void 0,_n.prototype.systemDataGb=void 0,_n.prototype.userCount=void 0,_n.prototype.mcsDiffSizeGb=void 0,_n.prototype.userProfileDataMb=void 0,_n.prototype.pvsWriteCacheSizeGb=void 0;const Hn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",VM_CLONE:"VM_CLONE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Hn).find(t=>Hn[t]===e);return null==t?Hn.$UNKNOWN:Hn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Hn.$UNKNOWN:case Hn.$REDACTED:case Hn.VM_CLONE:return;default:throw new Error("Invalid : must be MicrosoftXenProvisionType.{ $UNKNOWN|$REDACTED|VM_CLONE }")}}};Object.freeze(Hn);const Kn=Hn,Xn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",MICROSOFT_RDSH:"MICROSOFT_RDSH",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Xn).find(t=>Xn[t]===e);return null==t?Xn.$UNKNOWN:Xn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Xn.$UNKNOWN:case Xn.$REDACTED:case Xn.MICROSOFT_RDSH:return;default:throw new Error("Invalid : must be MicrosoftXenWorkloadVendor.{ $UNKNOWN|$REDACTED|MICROSOFT_RDSH }")}}};Object.freeze(Xn);const Zn=Xn;var Yn=new WeakSet;class Qn extends _n{constructor(e,t,n,i,s,o,r,a){var l,d;super(n,i,s,o,r,a),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(l=this,d=Yn),d.add(l),this.vendor=e,this.provisionType=t,this.$objectType="aiops.v4.config.MicrosoftXenWorkload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Qn,_n.constructFromObject(e,t,!0),e.hasOwnProperty("vendor")&&null!==e.vendor&&void 0!==e.vendor&&t.setVendor(Zn.constructFromObject(e.vendor)),e.hasOwnProperty("provisionType")&&null!==e.provisionType&&void 0!==e.provisionType&&t.setProvisionType(Kn.constructFromObject(e.provisionType)),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getVendor(){return this.vendor}setVendor(e){this.vendor=e}getProvisionType(){return this.provisionType}setProvisionType(e){this.provisionType=e}toJson(e){return{...void 0!==this.getVendor()&&null!==this.getVendor()?{vendor:this.getVendor()}:{},...void 0!==this.getProvisionType()&&null!==this.getProvisionType()?{provisionType:this.getProvisionType()}:{},...void 0!==this.getOperatingSystem()&&null!==this.getOperatingSystem()?{operatingSystem:this.getOperatingSystem()}:{},...void 0!==this.getSystemDataGb()&&null!==this.getSystemDataGb()?{systemDataGb:this.getSystemDataGb()}:{},...void 0!==this.getUserCount()&&null!==this.getUserCount()?{userCount:this.getUserCount()}:{},...void 0!==this.getMcsDiffSizeGb()&&null!==this.getMcsDiffSizeGb()?{mcsDiffSizeGb:this.getMcsDiffSizeGb()}:{},...void 0!==this.getUserProfileDataMb()&&null!==this.getUserProfileDataMb()?{userProfileDataMb:this.getUserProfileDataMb()}:{},...void 0!==this.getPvsWriteCacheSizeGb()&&null!==this.getPvsWriteCacheSizeGb()?{pvsWriteCacheSizeGb:this.getPvsWriteCacheSizeGb()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["operatingSystem","systemDataGb","userCount","mcsDiffSizeGb","userProfileDataMb","pvsWriteCacheSizeGb","vendor","provisionType"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"vendor"!==t||void 0!==this.vendor&&null!==this.vendor?"provisionType"!==t||void 0!==this.provisionType&&null!==this.provisionType?new O(t,"no such property exists"):new O("provisionType","undefined or null"):new O("vendor","undefined or null")}}Qn.prototype.vendor=void 0,Qn.prototype.provisionType=void 0,_n.prototype.operatingSystem=void 0,_n.prototype.systemDataGb=void 0,_n.prototype.userCount=void 0,_n.prototype.mcsDiffSizeGb=void 0,_n.prototype.userProfileDataMb=void 0,_n.prototype.pvsWriteCacheSizeGb=void 0;var ei=new WeakSet;class ti{constructor(e,t,n,i){var s,o;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(s=this,o=ei),o.add(s),this.dailyAverageIndexingRateGb=e,this.hotRetentionDays=t,this.coldRetentionDays=n,this.userCount=i,this.$objectType="aiops.v4.config.SplunkWorkload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new ti,e.hasOwnProperty("dailyAverageIndexingRateGb")&&null!==e.dailyAverageIndexingRateGb&&void 0!==e.dailyAverageIndexingRateGb&&t.setDailyAverageIndexingRateGb(e.dailyAverageIndexingRateGb),e.hasOwnProperty("hotRetentionDays")&&null!==e.hotRetentionDays&&void 0!==e.hotRetentionDays&&t.setHotRetentionDays(e.hotRetentionDays),e.hasOwnProperty("coldRetentionDays")&&null!==e.coldRetentionDays&&void 0!==e.coldRetentionDays&&t.setColdRetentionDays(e.coldRetentionDays),e.hasOwnProperty("userCount")&&null!==e.userCount&&void 0!==e.userCount&&t.setUserCount(e.userCount),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getDailyAverageIndexingRateGb(){return this.dailyAverageIndexingRateGb}setDailyAverageIndexingRateGb(e){this.dailyAverageIndexingRateGb=e}getHotRetentionDays(){return this.hotRetentionDays}setHotRetentionDays(e){this.hotRetentionDays=e}getColdRetentionDays(){return this.coldRetentionDays}setColdRetentionDays(e){this.coldRetentionDays=e}getUserCount(){return this.userCount}setUserCount(e){this.userCount=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getDailyAverageIndexingRateGb()&&null!==this.getDailyAverageIndexingRateGb()?{dailyAverageIndexingRateGb:this.getDailyAverageIndexingRateGb()}:{},...void 0!==this.getHotRetentionDays()&&null!==this.getHotRetentionDays()?{hotRetentionDays:this.getHotRetentionDays()}:{},...void 0!==this.getColdRetentionDays()&&null!==this.getColdRetentionDays()?{coldRetentionDays:this.getColdRetentionDays()}:{},...void 0!==this.getUserCount()&&null!==this.getUserCount()?{userCount:this.getUserCount()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["dailyAverageIndexingRateGb","hotRetentionDays","coldRetentionDays","userCount"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("dailyAverageIndexingRateGb"===t){if(void 0===this.dailyAverageIndexingRateGb||null===this.dailyAverageIndexingRateGb)return new O("dailyAverageIndexingRateGb","undefined or null");if(!j.validateMaximum(this.dailyAverageIndexingRateGb,2e4))return new O("dailyAverageIndexingRateGb","does not satisfy required maximum constraint: 20000");if(!j.validateMinimum(this.dailyAverageIndexingRateGb,1))return new O("dailyAverageIndexingRateGb","does not satisfy required minimum constraint: 1")}if("hotRetentionDays"===t){if(void 0===this.hotRetentionDays||null===this.hotRetentionDays)return new O("hotRetentionDays","undefined or null");if(!j.validateMaximum(this.hotRetentionDays,2e4))return new O("hotRetentionDays","does not satisfy required maximum constraint: 20000");if(!j.validateMinimum(this.hotRetentionDays,1))return new O("hotRetentionDays","does not satisfy required minimum constraint: 1")}if("coldRetentionDays"===t){if(void 0===this.coldRetentionDays||null===this.coldRetentionDays)return new O("coldRetentionDays","undefined or null");if(!j.validateMaximum(this.coldRetentionDays,2e4))return new O("coldRetentionDays","does not satisfy required maximum constraint: 20000");if(!j.validateMinimum(this.coldRetentionDays,0))return new O("coldRetentionDays","does not satisfy required minimum constraint: 0")}if("userCount"===t){if(void 0===this.userCount||null===this.userCount)return new O("userCount","undefined or null");if(!j.validateMaximum(this.userCount,500))return new O("userCount","does not satisfy required maximum constraint: 500");if(!j.validateMinimum(this.userCount,0))return new O("userCount","does not satisfy required minimum constraint: 0")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}ti.prototype.dailyAverageIndexingRateGb=500,ti.prototype.hotRetentionDays=7,ti.prototype.coldRetentionDays=60,ti.prototype.userCount=5,ti.prototype.$reserved=void 0,ti.prototype.$objectType=void 0,ti.prototype.$unknownFields=void 0;const ni={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SMALL:"SMALL",MEDIUM:"MEDIUM",LARGE:"LARGE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(ni).find(t=>ni[t]===e);return null==t?ni.$UNKNOWN:ni[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ni.$UNKNOWN:case ni.$REDACTED:case ni.SMALL:case ni.MEDIUM:case ni.LARGE:return;default:throw new Error("Invalid : must be SqlProfileType.{ $UNKNOWN|$REDACTED|SMALL|MEDIUM|LARGE }")}}};Object.freeze(ni);const ii=ni,si={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",OLAP:"OLAP",OLTP:"OLTP",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(si).find(t=>si[t]===e);return null==t?si.$UNKNOWN:si[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case si.$UNKNOWN:case si.$REDACTED:case si.OLAP:case si.OLTP:return;default:throw new Error("Invalid : must be SqlTransactionType.{ $UNKNOWN|$REDACTED|OLAP|OLTP }")}}};Object.freeze(si);const oi=si;var ri=new WeakSet;class ai{constructor(e,t,n,i){var s,o;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(s=this,o=ri),o.add(s),this.dbCount=e,this.profileType=t,this.transactionType=n,this.isBusinessCritical=i,this.$objectType="aiops.v4.config.SqlWorkload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new ai,e.hasOwnProperty("dbCount")&&null!==e.dbCount&&void 0!==e.dbCount&&t.setDbCount(e.dbCount),e.hasOwnProperty("profileType")&&null!==e.profileType&&void 0!==e.profileType&&t.setProfileType(ii.constructFromObject(e.profileType)),e.hasOwnProperty("transactionType")&&null!==e.transactionType&&void 0!==e.transactionType&&t.setTransactionType(oi.constructFromObject(e.transactionType)),e.hasOwnProperty("isBusinessCritical")&&null!==e.isBusinessCritical&&void 0!==e.isBusinessCritical&&t.setIsBusinessCritical(e.isBusinessCritical),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getDbCount(){return this.dbCount}setDbCount(e){this.dbCount=e}getProfileType(){return this.profileType}setProfileType(e){this.profileType=e}getTransactionType(){return this.transactionType}setTransactionType(e){this.transactionType=e}getIsBusinessCritical(){return this.isBusinessCritical}setIsBusinessCritical(e){this.isBusinessCritical=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getDbCount()&&null!==this.getDbCount()?{dbCount:this.getDbCount()}:{},...void 0!==this.getProfileType()&&null!==this.getProfileType()?{profileType:this.getProfileType()}:{},...void 0!==this.getTransactionType()&&null!==this.getTransactionType()?{transactionType:this.getTransactionType()}:{},...void 0!==this.getIsBusinessCritical()&&null!==this.getIsBusinessCritical()?{isBusinessCritical:this.getIsBusinessCritical()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["dbCount","profileType","transactionType","isBusinessCritical"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("dbCount"===t){if(void 0===this.dbCount||null===this.dbCount)return new O("dbCount","undefined or null");if(!j.validateMaximum(this.dbCount,1e5))return new O("dbCount","does not satisfy required maximum constraint: 100000");if(!j.validateMinimum(this.dbCount,1))return new O("dbCount","does not satisfy required minimum constraint: 1")}return"profileType"!==t||void 0!==this.profileType&&null!==this.profileType?"transactionType"!==t||void 0!==this.transactionType&&null!==this.transactionType?"isBusinessCritical"!==t||void 0!==this.isBusinessCritical&&null!==this.isBusinessCritical?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("isBusinessCritical","undefined or null"):new O("transactionType","undefined or null"):new O("profileType","undefined or null")}}ai.prototype.dbCount=void 0,ai.prototype.profileType=void 0,ai.prototype.transactionType=void 0,ai.prototype.isBusinessCritical=!1,ai.prototype.$reserved=void 0,ai.prototype.$objectType=void 0,ai.prototype.$unknownFields=void 0;const li={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",FULL_CLONES:"FULL_CLONES",V2V_P2V:"V2V_P2V",PROVISIONING_SERVICES:"PROVISIONING_SERVICES",MACHINE_CREATION_SERVICES:"MACHINE_CREATION_SERVICES",LINKED_CLONES:"LINKED_CLONES",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(li).find(t=>li[t]===e);return null==t?li.$UNKNOWN:li[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case li.$UNKNOWN:case li.$REDACTED:case li.FULL_CLONES:case li.V2V_P2V:case li.PROVISIONING_SERVICES:case li.MACHINE_CREATION_SERVICES:case li.LINKED_CLONES:return;default:throw new Error("Invalid : must be VdiProvisionType.{ $UNKNOWN|$REDACTED|FULL_CLONES|V2V_P2V|PROVISIONING_SERVICES|MACHINE_CREATION_SERVICES|LINKED_CLONES }")}}};Object.freeze(li);const di=li,ui={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",TASK_WORKER:"TASK_WORKER",KNOWLEDGE_WORKER:"KNOWLEDGE_WORKER",POWER_USER:"POWER_USER",DEVELOPER:"DEVELOPER",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(ui).find(t=>ui[t]===e);return null==t?ui.$UNKNOWN:ui[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ui.$UNKNOWN:case ui.$REDACTED:case ui.TASK_WORKER:case ui.KNOWLEDGE_WORKER:case ui.POWER_USER:case ui.DEVELOPER:return;default:throw new Error("Invalid : must be VdiUserType.{ $UNKNOWN|$REDACTED|TASK_WORKER|KNOWLEDGE_WORKER|POWER_USER|DEVELOPER }")}}};Object.freeze(ui);const hi=ui,ci={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",VIEW:"VIEW",XEN_DESKTOP:"XEN_DESKTOP",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(ci).find(t=>ci[t]===e);return null==t?ci.$UNKNOWN:ci[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ci.$UNKNOWN:case ci.$REDACTED:case ci.VIEW:case ci.XEN_DESKTOP:return;default:throw new Error("Invalid : must be VdiVendor.{ $UNKNOWN|$REDACTED|VIEW|XEN_DESKTOP }")}}};Object.freeze(ci);const pi=ci;var yi=new WeakSet;class vi{constructor(e,t,n,i){var s,o;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(s=this,o=yi),o.add(s),this.vendor=e,this.userType=t,this.provisionType=n,this.userCount=i,this.$objectType="aiops.v4.config.VdiWorkload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new vi,e.hasOwnProperty("vendor")&&null!==e.vendor&&void 0!==e.vendor&&t.setVendor(pi.constructFromObject(e.vendor)),e.hasOwnProperty("userType")&&null!==e.userType&&void 0!==e.userType&&t.setUserType(hi.constructFromObject(e.userType)),e.hasOwnProperty("provisionType")&&null!==e.provisionType&&void 0!==e.provisionType&&t.setProvisionType(di.constructFromObject(e.provisionType)),e.hasOwnProperty("userCount")&&null!==e.userCount&&void 0!==e.userCount&&t.setUserCount(e.userCount),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getVendor(){return this.vendor}setVendor(e){this.vendor=e}getUserType(){return this.userType}setUserType(e){this.userType=e}getProvisionType(){return this.provisionType}setProvisionType(e){this.provisionType=e}getUserCount(){return this.userCount}setUserCount(e){this.userCount=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getVendor()&&null!==this.getVendor()?{vendor:this.getVendor()}:{},...void 0!==this.getUserType()&&null!==this.getUserType()?{userType:this.getUserType()}:{},...void 0!==this.getProvisionType()&&null!==this.getProvisionType()?{provisionType:this.getProvisionType()}:{},...void 0!==this.getUserCount()&&null!==this.getUserCount()?{userCount:this.getUserCount()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["vendor","userType","provisionType","userCount"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("vendor"===t&&(void 0===this.vendor||null===this.vendor))return new O("vendor","undefined or null");if("userType"===t&&(void 0===this.userType||null===this.userType))return new O("userType","undefined or null");if("provisionType"===t&&(void 0===this.provisionType||null===this.provisionType))return new O("provisionType","undefined or null");if("userCount"===t){if(void 0===this.userCount||null===this.userCount)return new O("userCount","undefined or null");if(!j.validateMaximum(this.userCount,1e3))return new O("userCount","does not satisfy required maximum constraint: 1000");if(!j.validateMinimum(this.userCount,1))return new O("userCount","does not satisfy required minimum constraint: 1")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}vi.prototype.vendor=void 0,vi.prototype.userType=void 0,vi.prototype.provisionType=void 0,vi.prototype.userCount=void 0,vi.prototype.$reserved=void 0,vi.prototype.$objectType=void 0,vi.prototype.$unknownFields=void 0;var gi=new WeakSet;class mi{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=gi),n.add(t),this.categoryExtId=e,this.$objectType="aiops.v4.config.VmCategoryWorkload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new mi,e.hasOwnProperty("categoryExtId")&&null!==e.categoryExtId&&void 0!==e.categoryExtId&&t.setCategoryExtId(e.categoryExtId),e.hasOwnProperty("currentVmCount")&&null!==e.currentVmCount&&void 0!==e.currentVmCount&&t.setCurrentVmCount(e.currentVmCount),e.hasOwnProperty("targetVmCount")&&null!==e.targetVmCount&&void 0!==e.targetVmCount&&t.setTargetVmCount(e.targetVmCount),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getCategoryExtId(){return this.categoryExtId}setCategoryExtId(e){this.categoryExtId=e}getCurrentVmCount(){return this.currentVmCount}setCurrentVmCount(e){this.currentVmCount=e}getTargetVmCount(){return this.targetVmCount}setTargetVmCount(e){this.targetVmCount=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getCategoryExtId()&&null!==this.getCategoryExtId()?{categoryExtId:this.getCategoryExtId()}:{},...void 0!==this.getCurrentVmCount()&&null!==this.getCurrentVmCount()?{currentVmCount:this.getCurrentVmCount()}:{},...void 0!==this.getTargetVmCount()&&null!==this.getTargetVmCount()?{targetVmCount:this.getTargetVmCount()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getCategoryExtId()&&null!==this.getCategoryExtId()?{categoryExtId:this.getCategoryExtId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["categoryExtId"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("categoryExtId"===t){if(void 0===this.categoryExtId||null===this.categoryExtId)return new O("categoryExtId","undefined or null");if(!j.validatePattern(this.categoryExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("categoryExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"currentVmCount"!==t||void 0!==this.currentVmCount&&null!==this.currentVmCount?"targetVmCount"!==t||void 0!==this.targetVmCount&&null!==this.targetVmCount?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("targetVmCount","undefined or null"):new O("currentVmCount","undefined or null")}}mi.prototype.categoryExtId=void 0,mi.prototype.currentVmCount=void 0,mi.prototype.targetVmCount=void 0,mi.prototype.$reserved=void 0,mi.prototype.$objectType=void 0,mi.prototype.$unknownFields=void 0;var wi=new WeakSet;class $i{constructor(e,t){var n,i;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(n=this,i=wi),i.add(n),this.vmCount=e,this.simulationExtId=t,this.$objectType="aiops.v4.config.VmWorkload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new $i,e.hasOwnProperty("vmCount")&&null!==e.vmCount&&void 0!==e.vmCount&&t.setVmCount(e.vmCount),e.hasOwnProperty("simulationExtId")&&null!==e.simulationExtId&&void 0!==e.simulationExtId&&t.setSimulationExtId(e.simulationExtId),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getVmCount(){return this.vmCount}setVmCount(e){this.vmCount=e}getSimulationExtId(){return this.simulationExtId}setSimulationExtId(e){this.simulationExtId=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getVmCount()&&null!==this.getVmCount()?{vmCount:this.getVmCount()}:{},...void 0!==this.getSimulationExtId()&&null!==this.getSimulationExtId()?{simulationExtId:this.getSimulationExtId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["vmCount","simulationExtId"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("vmCount"===t){if(void 0===this.vmCount||null===this.vmCount)return new O("vmCount","undefined or null");if(!j.validateMaximum(this.vmCount,2e4))return new O("vmCount","does not satisfy required maximum constraint: 20000");if(!j.validateMinimum(this.vmCount,1))return new O("vmCount","does not satisfy required minimum constraint: 1")}if("simulationExtId"===t){if(void 0===this.simulationExtId||null===this.simulationExtId)return new O("simulationExtId","undefined or null");if(!j.validatePattern(this.simulationExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("simulationExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}function fi(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}$i.prototype.vmCount=void 0,$i.prototype.simulationExtId=void 0,$i.prototype.$reserved=void 0,$i.prototype.$objectType=void 0,$i.prototype.$unknownFields=void 0;var bi=new WeakSet;class Ti{constructor(e,t,n){var i,s;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(i=this,s=bi),s.add(i),this.scheduleDate=e,this.isEnabled=t,this.workloadProperties=n,this.$objectType="aiops.v4.config.Workload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new Ti,e.hasOwnProperty("scheduleDate")&&null!==e.scheduleDate&&void 0!==e.scheduleDate&&t.setScheduleDate(e.scheduleDate),e.hasOwnProperty("isEnabled")&&null!==e.isEnabled&&void 0!==e.isEnabled&&t.setIsEnabled(e.isEnabled),e.hasOwnProperty("projectedResourceRequirement")&&null!==e.projectedResourceRequirement&&void 0!==e.projectedResourceRequirement&&t.setProjectedResourceRequirement(bn.constructFromObject(e.projectedResourceRequirement)),e.hasOwnProperty("workloadProperties")&&null!==e.workloadProperties&&void 0!==e.workloadProperties)switch(i=e.workloadProperties.hasOwnProperty("$objectType")?e.workloadProperties.$objectType:typeof e.workloadProperties,i){case"aiops.v4.config.SqlWorkload":t.setWorkloadProperties(ai.constructFromObject(e.workloadProperties,void 0));break;case"aiops.v4.config.VmWorkload":t.setWorkloadProperties($i.constructFromObject(e.workloadProperties,void 0));break;case"aiops.v4.config.VdiWorkload":t.setWorkloadProperties(vi.constructFromObject(e.workloadProperties,void 0));break;case"aiops.v4.config.SplunkWorkload":t.setWorkloadProperties(ti.constructFromObject(e.workloadProperties,void 0));break;case"aiops.v4.config.CitrixXenWorkload":t.setWorkloadProperties(qn.constructFromObject(e.workloadProperties,void 0));break;case"aiops.v4.config.MicrosoftXenWorkload":t.setWorkloadProperties(Qn.constructFromObject(e.workloadProperties,void 0));break;case"aiops.v4.config.CapacityUpdateConfig":t.setWorkloadProperties(Nn.constructFromObject(e.workloadProperties,void 0));break;case"aiops.v4.config.VmCategoryWorkload":t.setWorkloadProperties(mi.constructFromObject(e.workloadProperties,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getScheduleDate(){return this.scheduleDate}setScheduleDate(e){this.scheduleDate=e}getIsEnabled(){return this.isEnabled}setIsEnabled(e){this.isEnabled=e}getProjectedResourceRequirement(){return this.projectedResourceRequirement}setProjectedResourceRequirement(e){this.projectedResourceRequirement=e}getWorkloadProperties(){return this.workloadProperties}setWorkloadProperties(e){this.workloadProperties=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getScheduleDate()&&null!==this.getScheduleDate()?{scheduleDate:fi(bi,this,ji).call(this,this.getScheduleDate(),!0)}:{},...void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{},...void 0!==this.getProjectedResourceRequirement()&&null!==this.getProjectedResourceRequirement()?{projectedResourceRequirement:this.getProjectedResourceRequirement().toJson(!1)}:{},...void 0!==this.getWorkloadProperties()&&null!==this.getWorkloadProperties()?{workloadProperties:void 0!==this.getWorkloadProperties().toJson?this.getWorkloadProperties().toJson(!1):Array.isArray(this.getWorkloadProperties())?this.getWorkloadProperties().map(e=>void 0!==e.toJson?e.toJson(!1):e):fi(bi,this,ki).call(this,this.getWorkloadProperties(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getScheduleDate()&&null!==this.getScheduleDate()?{scheduleDate:fi(bi,this,ji).call(this,this.getScheduleDate(),!0)}:{},...void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{},...void 0!==this.getProjectedResourceRequirement()&&null!==this.getProjectedResourceRequirement()?{projectedResourceRequirement:this.getProjectedResourceRequirement().toJson(!1)}:{},...void 0!==this.getWorkloadProperties()&&null!==this.getWorkloadProperties()?{workloadProperties:void 0!==this.getWorkloadProperties().toJson?this.getWorkloadProperties().toJson():Array.isArray(this.getWorkloadProperties())?this.getWorkloadProperties().map(e=>void 0!==e.toJson?e.toJson():e):fi(bi,this,ki).call(this,this.getWorkloadProperties())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["scheduleDate","isEnabled","workloadProperties"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"scheduleDate"!==t||void 0!==this.scheduleDate&&null!==this.scheduleDate?"isEnabled"!==t||void 0!==this.isEnabled&&null!==this.isEnabled?"projectedResourceRequirement"!==t||void 0!==this.projectedResourceRequirement&&null!==this.projectedResourceRequirement?"workloadProperties"!==t||void 0!==this.workloadProperties&&null!==this.workloadProperties?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("workloadProperties","undefined or null"):new O("projectedResourceRequirement","undefined or null"):new O("isEnabled","undefined or null"):new O("scheduleDate","undefined or null")}}function ki(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function ji(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Oi(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ti.prototype.scheduleDate=void 0,Ti.prototype.isEnabled=!1,Ti.prototype.projectedResourceRequirement=void 0,Ti.prototype.workloadProperties=void 0,Ti.prototype.$reserved=void 0,Ti.prototype.$objectType=void 0,Ti.prototype.$unknownFields=void 0;var Fi=new WeakSet;class Ci extends mt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Fi),t.add(e),this.$objectType="aiops.v4.config.Scenario",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new Ci,mt.constructFromObject(e,t,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&t.setClusterExtId(e.clusterExtId),e.hasOwnProperty("vendors")&&null!==e.vendors&&void 0!==e.vendors){for(r=[],i=e.vendors,o=0;o<i.length;o++)s=Un.constructFromObject(i[o],void 0),r.push(s);t.setVendors(r)}if(e.hasOwnProperty("updatedTime")&&null!==e.updatedTime&&void 0!==e.updatedTime&&t.setUpdatedTime(e.updatedTime),e.hasOwnProperty("targetRunwayDays")&&null!==e.targetRunwayDays&&void 0!==e.targetRunwayDays&&t.setTargetRunwayDays(e.targetRunwayDays),e.hasOwnProperty("runway")&&null!==e.runway&&void 0!==e.runway&&t.setRunway(En.constructFromObject(e.runway)),e.hasOwnProperty("workloads")&&null!==e.workloads&&void 0!==e.workloads){for(r=[],i=e.workloads,o=0;o<i.length;o++)s=Ti.constructFromObject(i[o],void 0),r.push(s);t.setWorkloads(r)}if(e.hasOwnProperty("clusterConfig")&&null!==e.clusterConfig&&void 0!==e.clusterConfig&&t.setClusterConfig(Cn.constructFromObject(e.clusterConfig)),e.hasOwnProperty("accountId")&&null!==e.accountId&&void 0!==e.accountId&&t.setAccountId(e.accountId),e.hasOwnProperty("domainId")&&null!==e.domainId&&void 0!==e.domainId&&t.setDomainId(e.domainId),e.hasOwnProperty("providerId")&&null!==e.providerId&&void 0!==e.providerId&&t.setProviderId(e.providerId),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getClusterExtId(){return this.clusterExtId}setClusterExtId(e){this.clusterExtId=e}getVendors(){return this.vendors}setVendors(e){this.vendors=e}getUpdatedTime(){return this.updatedTime}setUpdatedTime(e){this.updatedTime=e}getTargetRunwayDays(){return this.targetRunwayDays}setTargetRunwayDays(e){this.targetRunwayDays=e}getRunway(){return this.runway}setRunway(e){this.runway=e}getWorkloads(){return this.workloads}setWorkloads(e){this.workloads=e}getClusterConfig(){return this.clusterConfig}setClusterConfig(e){this.clusterConfig=e}getAccountId(){return this.accountId}setAccountId(e){this.accountId=e}getDomainId(){return this.domainId}setDomainId(e){this.domainId=e}getProviderId(){return this.providerId}setProviderId(e){this.providerId=e}toJson(e){return!1===e?{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{},...void 0!==this.getVendors()&&null!==this.getVendors()?{vendors:this.getVendors()}:{},...void 0!==this.getUpdatedTime()&&null!==this.getUpdatedTime()?{updatedTime:Oi(Fi,this,Pi).call(this,this.getUpdatedTime(),!1)}:{},...void 0!==this.getTargetRunwayDays()&&null!==this.getTargetRunwayDays()?{targetRunwayDays:this.getTargetRunwayDays()}:{},...void 0!==this.getRunway()&&null!==this.getRunway()?{runway:this.getRunway().toJson(!1)}:{},...void 0!==this.getWorkloads()&&null!==this.getWorkloads()?{workloads:this.getWorkloads().map(e=>e.toJson(!1))}:{},...void 0!==this.getClusterConfig()&&null!==this.getClusterConfig()?{clusterConfig:this.getClusterConfig().toJson(!1)}:{},...void 0!==this.getAccountId()&&null!==this.getAccountId()?{accountId:this.getAccountId()}:{},...void 0!==this.getDomainId()&&null!==this.getDomainId()?{domainId:this.getDomainId()}:{},...void 0!==this.getProviderId()&&null!==this.getProviderId()?{providerId:this.getProviderId()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{},...void 0!==this.getVendors()&&null!==this.getVendors()?{vendors:this.getVendors()}:{},...void 0!==this.getTargetRunwayDays()&&null!==this.getTargetRunwayDays()?{targetRunwayDays:this.getTargetRunwayDays()}:{},...void 0!==this.getRunway()&&null!==this.getRunway()?{runway:this.getRunway().toJson(!1)}:{},...void 0!==this.getWorkloads()&&null!==this.getWorkloads()?{workloads:this.getWorkloads().map(e=>e.toJson(!1))}:{},...void 0!==this.getClusterConfig()&&null!==this.getClusterConfig()?{clusterConfig:this.getClusterConfig().toJson(!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!j.validateMaxLength(this.name,256))return new O("name","does not satisfy required maxLength constraint: 256");if(!j.validateMinLength(this.name,1))return new O("name","does not satisfy required minLength constraint: 1")}if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new O("clusterExtId","undefined or null");if(!j.validatePattern(this.clusterExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("clusterExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("vendors"===t){if(void 0===this.vendors||null===this.vendors)return new O("vendors","undefined or null");if(!j.validateMaxItems(this.vendors,10))return new O("vendors","does not satisfy required maxItems constraint: 10");if(!j.validateMinItems(this.vendors,1))return new O("vendors","does not satisfy required minItems constraint: 1")}if("updatedTime"===t&&(void 0===this.updatedTime||null===this.updatedTime))return new O("updatedTime","undefined or null");if("targetRunwayDays"===t){if(void 0===this.targetRunwayDays||null===this.targetRunwayDays)return new O("targetRunwayDays","undefined or null");if(!j.validateMaximum(this.targetRunwayDays,360))return new O("targetRunwayDays","does not satisfy required maximum constraint: 360");if(!j.validateMinimum(this.targetRunwayDays,30))return new O("targetRunwayDays","does not satisfy required minimum constraint: 30")}if("runway"===t&&(void 0===this.runway||null===this.runway))return new O("runway","undefined or null");if("workloads"===t){if(void 0===this.workloads||null===this.workloads)return new O("workloads","undefined or null");if(!j.validateMaxItems(this.workloads,250))return new O("workloads","does not satisfy required maxItems constraint: 250")}if("clusterConfig"===t&&(void 0===this.clusterConfig||null===this.clusterConfig))return new O("clusterConfig","undefined or null");if("accountId"===t){if(void 0===this.accountId||null===this.accountId)return new O("accountId","undefined or null");if(!j.validatePattern(this.accountId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("accountId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("domainId"===t){if(void 0===this.domainId||null===this.domainId)return new O("domainId","undefined or null");if(!j.validatePattern(this.domainId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("domainId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("providerId"===t){if(void 0===this.providerId||null===this.providerId)return new O("providerId","undefined or null");if(!j.validatePattern(this.providerId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("providerId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return new O(t,"no such property exists")}}function Pi(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}Ci.prototype.name=void 0,Ci.prototype.clusterExtId=void 0,Ci.prototype.vendors=void 0,Ci.prototype.updatedTime=void 0,Ci.prototype.targetRunwayDays=void 0,Ci.prototype.runway=void 0,Ci.prototype.workloads=void 0,Ci.prototype.clusterConfig=void 0,Ci.prototype.accountId=void 0,Ci.prototype.domainId=void 0,Ci.prototype.providerId=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;class Si extends Ci{constructor(){super(),this.$objectType="aiops.v4.config.ScenarioProjection",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Si,Ci.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return new O(t,"no such property exists")}}function Ei(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Di=new WeakSet;class Ri extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Di),t.add(e),this.$objectType="aiops.v4.config.ListScenariosApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,a,l;if(e){if(t=t||new Ri,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],i=e.data,l=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],r=0;r<i.length;r++)switch(l){case"aiops.v4.config.Scenario":s=Ci.constructFromObject(i[r],void 0),a.push(s);break;case"aiops.v4.config.ScenarioProjection":s=Si.constructFromObject(i[r],void 0),a.push(s);break;default:throw"Unknown list of type "+l+" in data"}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"aiops.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Be.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Ei(Di,this,Ui).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Ei(Di,this,Ui).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function Ui(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Ii(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ri.prototype.metadata=void 0,Ri.prototype.data=void 0,Ri.prototype.$reserved=void 0,Ri.prototype.$objectType=void 0,Ri.prototype.$unknownFields=void 0;var Ai=new WeakSet;class Mi extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Ai),t.add(e),this.$objectType="aiops.v4.config.GetScenarioReportApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new Mi,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"Map":t.setData(e.data);break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Ii(Ai,this,Ni).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Ii(Ai,this,Ni).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function Ni(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Mi.prototype.metadata=void 0,Mi.prototype.data=void 0,Mi.prototype.$reserved=void 0,Mi.prototype.$objectType=void 0,Mi.prototype.$unknownFields=void 0;var xi=new WeakSet;class Vi{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=xi),t.add(e),this.$objectType="prism.v4.config.TaskReference",this.$reserved={$fv:"v4.r3"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Vi,e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&t.setExtId(e.extId),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getExtId(){return this.extId}setExtId(e){this.extId=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new O("extId","undefined or null");if(!j.validatePattern(this.extId,/^[a-zA-Z0-9\/+]*={0,2}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/))return new O("extId","does not satisfy required pattern: /^[a-zA-Z0-9/+]*={0,2}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}function Li(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Vi.prototype.extId=void 0,Vi.prototype.$reserved=void 0,Vi.prototype.$objectType=void 0,Vi.prototype.$unknownFields=void 0;var Bi=new WeakSet;class Wi extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Bi),t.add(e),this.$objectType="aiops.v4.config.CreateScenarioApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new Wi,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"prism.v4.config.TaskReference":t.setData(Vi.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Li(Bi,this,zi).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Li(Bi,this,zi).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function zi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Ji(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Wi.prototype.metadata=void 0,Wi.prototype.data=void 0,Wi.prototype.$reserved=void 0,Wi.prototype.$objectType=void 0,Wi.prototype.$unknownFields=void 0;var _i=new WeakSet;class Gi extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=_i),t.add(e),this.$objectType="aiops.v4.config.DeleteSimulationApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new Gi,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(null===e.data&&t.setData(null),i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;case"":t.setData(Void.constructFromObject(e[""],void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Ji(_i,this,qi).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Ji(_i,this,qi).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function qi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Hi(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Gi.prototype.metadata=void 0,Gi.prototype.data=void 0,Gi.prototype.$reserved=void 0,Gi.prototype.$objectType=void 0,Gi.prototype.$unknownFields=void 0;var Ki=new WeakSet;class Xi extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Ki),t.add(e),this.$objectType="aiops.v4.config.DeleteScenarioApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new Xi,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(null===e.data&&t.setData(null),i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;case"":t.setData(Void.constructFromObject(e[""],void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Hi(Ki,this,Zi).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Hi(Ki,this,Zi).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function Zi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Yi(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Xi.prototype.metadata=void 0,Xi.prototype.data=void 0,Xi.prototype.$reserved=void 0,Xi.prototype.$objectType=void 0,Xi.prototype.$unknownFields=void 0;var Qi=new WeakSet;class es extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Qi),t.add(e),this.$objectType="aiops.v4.config.GenerateRecommendationApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new es,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"prism.v4.config.TaskReference":t.setData(Vi.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Yi(Qi,this,ts).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Yi(Qi,this,ts).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function ts(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function ns(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}es.prototype.metadata=void 0,es.prototype.data=void 0,es.prototype.$reserved=void 0,es.prototype.$objectType=void 0,es.prototype.$unknownFields=void 0;var is=new WeakSet;class ss extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=is),t.add(e),this.$objectType="aiops.v4.config.GenerateReportApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new ss,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"prism.v4.config.TaskReference":t.setData(Vi.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):ns(is,this,os).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):ns(is,this,os).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function os(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function rs(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}ss.prototype.metadata=void 0,ss.prototype.data=void 0,ss.prototype.$reserved=void 0,ss.prototype.$objectType=void 0,ss.prototype.$unknownFields=void 0;var as=new WeakSet;class ls extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=as),t.add(e),this.$objectType="aiops.v4.config.GetSimulationApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new ls,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"aiops.v4.config.Simulation":t.setData(Qt.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):rs(as,this,ds).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):rs(as,this,ds).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function ds(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function us(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}ls.prototype.metadata=void 0,ls.prototype.data=void 0,ls.prototype.$reserved=void 0,ls.prototype.$objectType=void 0,ls.prototype.$unknownFields=void 0;var hs=new WeakSet;class cs extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=hs),t.add(e),this.$objectType="aiops.v4.config.GetScenarioApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new cs,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"aiops.v4.config.Scenario":t.setData(Ci.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):us(hs,this,ps).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):us(hs,this,ps).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function ps(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function ys(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}cs.prototype.metadata=void 0,cs.prototype.data=void 0,cs.prototype.$reserved=void 0,cs.prototype.$objectType=void 0,cs.prototype.$unknownFields=void 0;var vs=new WeakSet;class gs extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=vs),t.add(e),this.$objectType="aiops.v4.config.UpdateScenarioApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new gs,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"prism.v4.config.TaskReference":t.setData(Vi.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):ys(vs,this,ms).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):ys(vs,this,ms).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function ms(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function ws(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}gs.prototype.metadata=void 0,gs.prototype.data=void 0,gs.prototype.$reserved=void 0,gs.prototype.$objectType=void 0,gs.prototype.$unknownFields=void 0;var $s=new WeakSet;class fs extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=$s),t.add(e),this.$objectType="aiops.v4.config.GenerateRunwayApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new fs,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"prism.v4.config.TaskReference":t.setData(Vi.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):ws($s,this,bs).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):ws($s,this,bs).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function bs(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}fs.prototype.metadata=void 0,fs.prototype.data=void 0,fs.prototype.$reserved=void 0,fs.prototype.$objectType=void 0,fs.prototype.$unknownFields=void 0;var Ts=new WeakSet;class ks{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ts),t.add(e),this.$objectType="aiops.v4.clusterMetrics.Cluster",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new ks,e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("uuid")&&null!==e.uuid&&void 0!==e.uuid&&t.setUuid(e.uuid),e.hasOwnProperty("externalIpAddress")&&null!==e.externalIpAddress&&void 0!==e.externalIpAddress&&t.setExternalIpAddress(e.externalIpAddress),e.hasOwnProperty("memoryCapacityBytes")&&null!==e.memoryCapacityBytes&&void 0!==e.memoryCapacityBytes&&t.setMemoryCapacityBytes(e.memoryCapacityBytes),e.hasOwnProperty("numCpus")&&null!==e.numCpus&&void 0!==e.numCpus&&t.setNumCpus(e.numCpus),e.hasOwnProperty("hypervisorMemoryUsagePpm")&&null!==e.hypervisorMemoryUsagePpm&&void 0!==e.hypervisorMemoryUsagePpm&&t.setHypervisorMemoryUsagePpm(e.hypervisorMemoryUsagePpm),e.hasOwnProperty("hypervisorCpuUsagePpm")&&null!==e.hypervisorCpuUsagePpm&&void 0!==e.hypervisorCpuUsagePpm&&t.setHypervisorCpuUsagePpm(e.hypervisorCpuUsagePpm),e.hasOwnProperty("rf")&&null!==e.rf&&void 0!==e.rf&&t.setRf(e.rf),e.hasOwnProperty("capacityBytes")&&null!==e.capacityBytes&&void 0!==e.capacityBytes&&t.setCapacityBytes(e.capacityBytes),e.hasOwnProperty("freeBytes")&&null!==e.freeBytes&&void 0!==e.freeBytes&&t.setFreeBytes(e.freeBytes),e.hasOwnProperty("usageBytes")&&null!==e.usageBytes&&void 0!==e.usageBytes&&t.setUsageBytes(e.usageBytes),e.hasOwnProperty("savedBytes")&&null!==e.savedBytes&&void 0!==e.savedBytes&&t.setSavedBytes(e.savedBytes),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getUuid(){return this.uuid}setUuid(e){this.uuid=e}getExternalIpAddress(){return this.externalIpAddress}setExternalIpAddress(e){this.externalIpAddress=e}getMemoryCapacityBytes(){return this.memoryCapacityBytes}setMemoryCapacityBytes(e){this.memoryCapacityBytes=e}getNumCpus(){return this.numCpus}setNumCpus(e){this.numCpus=e}getHypervisorMemoryUsagePpm(){return this.hypervisorMemoryUsagePpm}setHypervisorMemoryUsagePpm(e){this.hypervisorMemoryUsagePpm=e}getHypervisorCpuUsagePpm(){return this.hypervisorCpuUsagePpm}setHypervisorCpuUsagePpm(e){this.hypervisorCpuUsagePpm=e}getRf(){return this.rf}setRf(e){this.rf=e}getCapacityBytes(){return this.capacityBytes}setCapacityBytes(e){this.capacityBytes=e}getFreeBytes(){return this.freeBytes}setFreeBytes(e){this.freeBytes=e}getUsageBytes(){return this.usageBytes}setUsageBytes(e){this.usageBytes=e}getSavedBytes(){return this.savedBytes}setSavedBytes(e){this.savedBytes=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getUuid()&&null!==this.getUuid()?{uuid:this.getUuid()}:{},...void 0!==this.getExternalIpAddress()&&null!==this.getExternalIpAddress()?{externalIpAddress:this.getExternalIpAddress()}:{},...void 0!==this.getMemoryCapacityBytes()&&null!==this.getMemoryCapacityBytes()?{memoryCapacityBytes:this.getMemoryCapacityBytes()}:{},...void 0!==this.getNumCpus()&&null!==this.getNumCpus()?{numCpus:this.getNumCpus()}:{},...void 0!==this.getHypervisorMemoryUsagePpm()&&null!==this.getHypervisorMemoryUsagePpm()?{hypervisorMemoryUsagePpm:this.getHypervisorMemoryUsagePpm()}:{},...void 0!==this.getHypervisorCpuUsagePpm()&&null!==this.getHypervisorCpuUsagePpm()?{hypervisorCpuUsagePpm:this.getHypervisorCpuUsagePpm()}:{},...void 0!==this.getRf()&&null!==this.getRf()?{rf:this.getRf()}:{},...void 0!==this.getCapacityBytes()&&null!==this.getCapacityBytes()?{capacityBytes:this.getCapacityBytes()}:{},...void 0!==this.getFreeBytes()&&null!==this.getFreeBytes()?{freeBytes:this.getFreeBytes()}:{},...void 0!==this.getUsageBytes()&&null!==this.getUsageBytes()?{usageBytes:this.getUsageBytes()}:{},...void 0!==this.getSavedBytes()&&null!==this.getSavedBytes()?{savedBytes:this.getSavedBytes()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t&&(void 0===this.name||null===this.name))return new O("name","undefined or null");if("uuid"===t){if(void 0===this.uuid||null===this.uuid)return new O("uuid","undefined or null");if(!j.validatePattern(this.uuid,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("uuid","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"externalIpAddress"!==t||void 0!==this.externalIpAddress&&null!==this.externalIpAddress?"memoryCapacityBytes"!==t||void 0!==this.memoryCapacityBytes&&null!==this.memoryCapacityBytes?"numCpus"!==t||void 0!==this.numCpus&&null!==this.numCpus?"hypervisorMemoryUsagePpm"!==t||void 0!==this.hypervisorMemoryUsagePpm&&null!==this.hypervisorMemoryUsagePpm?"hypervisorCpuUsagePpm"!==t||void 0!==this.hypervisorCpuUsagePpm&&null!==this.hypervisorCpuUsagePpm?"rf"!==t||void 0!==this.rf&&null!==this.rf?"capacityBytes"!==t||void 0!==this.capacityBytes&&null!==this.capacityBytes?"freeBytes"!==t||void 0!==this.freeBytes&&null!==this.freeBytes?"usageBytes"!==t||void 0!==this.usageBytes&&null!==this.usageBytes?"savedBytes"!==t||void 0!==this.savedBytes&&null!==this.savedBytes?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("savedBytes","undefined or null"):new O("usageBytes","undefined or null"):new O("freeBytes","undefined or null"):new O("capacityBytes","undefined or null"):new O("rf","undefined or null"):new O("hypervisorCpuUsagePpm","undefined or null"):new O("hypervisorMemoryUsagePpm","undefined or null"):new O("numCpus","undefined or null"):new O("memoryCapacityBytes","undefined or null"):new O("externalIpAddress","undefined or null")}}ks.prototype.name=void 0,ks.prototype.uuid=void 0,ks.prototype.externalIpAddress=void 0,ks.prototype.memoryCapacityBytes=void 0,ks.prototype.numCpus=void 0,ks.prototype.hypervisorMemoryUsagePpm=void 0,ks.prototype.hypervisorCpuUsagePpm=void 0,ks.prototype.rf=void 0,ks.prototype.capacityBytes=void 0,ks.prototype.freeBytes=void 0,ks.prototype.usageBytes=void 0,ks.prototype.savedBytes=void 0,ks.prototype.$reserved=void 0,ks.prototype.$objectType=void 0,ks.prototype.$unknownFields=void 0;var js=new WeakSet;class Os{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=js),n.add(t),this.value=e,this.$objectType="common.v1.config.IPv4Address",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Os,e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value&&t.setValue(e.value),e.hasOwnProperty("prefixLength")&&null!==e.prefixLength&&void 0!==e.prefixLength&&t.setPrefixLength(e.prefixLength),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getValue(){return this.value}setValue(e){this.value=e}getPrefixLength(){return this.prefixLength}setPrefixLength(e){this.prefixLength=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{},...void 0!==this.getPrefixLength()&&null!==this.getPrefixLength()?{prefixLength:this.getPrefixLength()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["value"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new O("value","undefined or null");if(!j.validatePattern(this.value,/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/))return new O("value","does not satisfy required pattern: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/")}if("prefixLength"===t){if(void 0===this.prefixLength||null===this.prefixLength)return new O("prefixLength","undefined or null");if(!j.validateMaximum(this.prefixLength,32))return new O("prefixLength","does not satisfy required maximum constraint: 32");if(!j.validateMinimum(this.prefixLength,0))return new O("prefixLength","does not satisfy required minimum constraint: 0")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}Os.prototype.value=void 0,Os.prototype.prefixLength=32,Os.prototype.$reserved=void 0,Os.prototype.$objectType=void 0,Os.prototype.$unknownFields=void 0;var Fs=new WeakSet;class Cs extends mt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Fs),t.add(e),this.$objectType="aiops.v4.clusterMetrics.ClusterMetrics",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new Cs,mt.constructFromObject(e,t,!0),e.hasOwnProperty("clusterName")&&null!==e.clusterName&&void 0!==e.clusterName&&t.setClusterName(e.clusterName),e.hasOwnProperty("externalIP")&&null!==e.externalIP&&void 0!==e.externalIP&&t.setExternalIP(Os.constructFromObject(e.externalIP)),e.hasOwnProperty("cvmIPs")&&null!==e.cvmIPs&&void 0!==e.cvmIPs){for(r=[],i=e.cvmIPs,o=0;o<i.length;o++)s=Os.constructFromObject(i[o],void 0),r.push(s);t.setCvmIPs(r)}if(e.hasOwnProperty("totalMemorySizeBytes")&&null!==e.totalMemorySizeBytes&&void 0!==e.totalMemorySizeBytes&&t.setTotalMemorySizeBytes(e.totalMemorySizeBytes),e.hasOwnProperty("currentMemoryUsageSizeBytes")&&null!==e.currentMemoryUsageSizeBytes&&void 0!==e.currentMemoryUsageSizeBytes&&t.setCurrentMemoryUsageSizeBytes(e.currentMemoryUsageSizeBytes),e.hasOwnProperty("provisionedMemoryUsageBytes")&&null!==e.provisionedMemoryUsageBytes&&void 0!==e.provisionedMemoryUsageBytes&&t.setProvisionedMemoryUsageBytes(e.provisionedMemoryUsageBytes),e.hasOwnProperty("maxVmMemorySizeBytes")&&null!==e.maxVmMemorySizeBytes&&void 0!==e.maxVmMemorySizeBytes&&t.setMaxVmMemorySizeBytes(e.maxVmMemorySizeBytes),e.hasOwnProperty("availableMemorySizeBytes")&&null!==e.availableMemorySizeBytes&&void 0!==e.availableMemorySizeBytes&&t.setAvailableMemorySizeBytes(e.availableMemorySizeBytes),e.hasOwnProperty("largestPoweredOffVMMemory")&&null!==e.largestPoweredOffVMMemory&&void 0!==e.largestPoweredOffVMMemory&&t.setLargestPoweredOffVMMemory(e.largestPoweredOffVMMemory),e.hasOwnProperty("totalVCpuCount")&&null!==e.totalVCpuCount&&void 0!==e.totalVCpuCount&&t.setTotalVCpuCount(e.totalVCpuCount),e.hasOwnProperty("currentUsedVCpuCount")&&null!==e.currentUsedVCpuCount&&void 0!==e.currentUsedVCpuCount&&t.setCurrentUsedVCpuCount(e.currentUsedVCpuCount),e.hasOwnProperty("provisionedVCpuCount")&&null!==e.provisionedVCpuCount&&void 0!==e.provisionedVCpuCount&&t.setProvisionedVCpuCount(e.provisionedVCpuCount),e.hasOwnProperty("maxVmVCpuSize")&&null!==e.maxVmVCpuSize&&void 0!==e.maxVmVCpuSize&&t.setMaxVmVCpuSize(e.maxVmVCpuSize),e.hasOwnProperty("availableVCpuCount")&&null!==e.availableVCpuCount&&void 0!==e.availableVCpuCount&&t.setAvailableVCpuCount(e.availableVCpuCount),e.hasOwnProperty("largestPoweredOffVMVCpu")&&null!==e.largestPoweredOffVMVCpu&&void 0!==e.largestPoweredOffVMVCpu&&t.setLargestPoweredOffVMVCpu(e.largestPoweredOffVMVCpu),e.hasOwnProperty("totalCpuHz")&&null!==e.totalCpuHz&&void 0!==e.totalCpuHz&&t.setTotalCpuHz(e.totalCpuHz),e.hasOwnProperty("currentUsedCpuHz")&&null!==e.currentUsedCpuHz&&void 0!==e.currentUsedCpuHz&&t.setCurrentUsedCpuHz(e.currentUsedCpuHz),e.hasOwnProperty("provisionedCpuHz")&&null!==e.provisionedCpuHz&&void 0!==e.provisionedCpuHz&&t.setProvisionedCpuHz(e.provisionedCpuHz),e.hasOwnProperty("totalStorageCapacityRawBytes")&&null!==e.totalStorageCapacityRawBytes&&void 0!==e.totalStorageCapacityRawBytes&&t.setTotalStorageCapacityRawBytes(e.totalStorageCapacityRawBytes),e.hasOwnProperty("totalStorageCapacityLogicalBytes")&&null!==e.totalStorageCapacityLogicalBytes&&void 0!==e.totalStorageCapacityLogicalBytes&&t.setTotalStorageCapacityLogicalBytes(e.totalStorageCapacityLogicalBytes),e.hasOwnProperty("totalStorageCapacityLogicalWithSavingsBytes")&&null!==e.totalStorageCapacityLogicalWithSavingsBytes&&void 0!==e.totalStorageCapacityLogicalWithSavingsBytes&&t.setTotalStorageCapacityLogicalWithSavingsBytes(e.totalStorageCapacityLogicalWithSavingsBytes),e.hasOwnProperty("totalStorageUsageBytes")&&null!==e.totalStorageUsageBytes&&void 0!==e.totalStorageUsageBytes&&t.setTotalStorageUsageBytes(e.totalStorageUsageBytes),e.hasOwnProperty("totalStorageAvailableBytes")&&null!==e.totalStorageAvailableBytes&&void 0!==e.totalStorageAvailableBytes&&t.setTotalStorageAvailableBytes(e.totalStorageAvailableBytes),e.hasOwnProperty("totalStorageAvailableLogicalBytes")&&null!==e.totalStorageAvailableLogicalBytes&&void 0!==e.totalStorageAvailableLogicalBytes&&t.setTotalStorageAvailableLogicalBytes(e.totalStorageAvailableLogicalBytes),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getClusterName(){return this.clusterName}setClusterName(e){this.clusterName=e}getExternalIP(){return this.externalIP}setExternalIP(e){this.externalIP=e}getCvmIPs(){return this.cvmIPs}setCvmIPs(e){this.cvmIPs=e}getTotalMemorySizeBytes(){return this.totalMemorySizeBytes}setTotalMemorySizeBytes(e){this.totalMemorySizeBytes=e}getCurrentMemoryUsageSizeBytes(){return this.currentMemoryUsageSizeBytes}setCurrentMemoryUsageSizeBytes(e){this.currentMemoryUsageSizeBytes=e}getProvisionedMemoryUsageBytes(){return this.provisionedMemoryUsageBytes}setProvisionedMemoryUsageBytes(e){this.provisionedMemoryUsageBytes=e}getMaxVmMemorySizeBytes(){return this.maxVmMemorySizeBytes}setMaxVmMemorySizeBytes(e){this.maxVmMemorySizeBytes=e}getAvailableMemorySizeBytes(){return this.availableMemorySizeBytes}setAvailableMemorySizeBytes(e){this.availableMemorySizeBytes=e}getLargestPoweredOffVMMemory(){return this.largestPoweredOffVMMemory}setLargestPoweredOffVMMemory(e){this.largestPoweredOffVMMemory=e}getTotalVCpuCount(){return this.totalVCpuCount}setTotalVCpuCount(e){this.totalVCpuCount=e}getCurrentUsedVCpuCount(){return this.currentUsedVCpuCount}setCurrentUsedVCpuCount(e){this.currentUsedVCpuCount=e}getProvisionedVCpuCount(){return this.provisionedVCpuCount}setProvisionedVCpuCount(e){this.provisionedVCpuCount=e}getMaxVmVCpuSize(){return this.maxVmVCpuSize}setMaxVmVCpuSize(e){this.maxVmVCpuSize=e}getAvailableVCpuCount(){return this.availableVCpuCount}setAvailableVCpuCount(e){this.availableVCpuCount=e}getLargestPoweredOffVMVCpu(){return this.largestPoweredOffVMVCpu}setLargestPoweredOffVMVCpu(e){this.largestPoweredOffVMVCpu=e}getTotalCpuHz(){return this.totalCpuHz}setTotalCpuHz(e){this.totalCpuHz=e}getCurrentUsedCpuHz(){return this.currentUsedCpuHz}setCurrentUsedCpuHz(e){this.currentUsedCpuHz=e}getProvisionedCpuHz(){return this.provisionedCpuHz}setProvisionedCpuHz(e){this.provisionedCpuHz=e}getTotalStorageCapacityRawBytes(){return this.totalStorageCapacityRawBytes}setTotalStorageCapacityRawBytes(e){this.totalStorageCapacityRawBytes=e}getTotalStorageCapacityLogicalBytes(){return this.totalStorageCapacityLogicalBytes}setTotalStorageCapacityLogicalBytes(e){this.totalStorageCapacityLogicalBytes=e}getTotalStorageCapacityLogicalWithSavingsBytes(){return this.totalStorageCapacityLogicalWithSavingsBytes}setTotalStorageCapacityLogicalWithSavingsBytes(e){this.totalStorageCapacityLogicalWithSavingsBytes=e}getTotalStorageUsageBytes(){return this.totalStorageUsageBytes}setTotalStorageUsageBytes(e){this.totalStorageUsageBytes=e}getTotalStorageAvailableBytes(){return this.totalStorageAvailableBytes}setTotalStorageAvailableBytes(e){this.totalStorageAvailableBytes=e}getTotalStorageAvailableLogicalBytes(){return this.totalStorageAvailableLogicalBytes}setTotalStorageAvailableLogicalBytes(e){this.totalStorageAvailableLogicalBytes=e}toJson(e){return!1===e?{...void 0!==this.getClusterName()&&null!==this.getClusterName()?{clusterName:this.getClusterName()}:{},...void 0!==this.getExternalIP()&&null!==this.getExternalIP()?{externalIP:this.getExternalIP().toJson(!1)}:{},...void 0!==this.getCvmIPs()&&null!==this.getCvmIPs()?{cvmIPs:this.getCvmIPs().map(e=>e.toJson(!1))}:{},...void 0!==this.getTotalMemorySizeBytes()&&null!==this.getTotalMemorySizeBytes()?{totalMemorySizeBytes:this.getTotalMemorySizeBytes()}:{},...void 0!==this.getCurrentMemoryUsageSizeBytes()&&null!==this.getCurrentMemoryUsageSizeBytes()?{currentMemoryUsageSizeBytes:this.getCurrentMemoryUsageSizeBytes()}:{},...void 0!==this.getProvisionedMemoryUsageBytes()&&null!==this.getProvisionedMemoryUsageBytes()?{provisionedMemoryUsageBytes:this.getProvisionedMemoryUsageBytes()}:{},...void 0!==this.getMaxVmMemorySizeBytes()&&null!==this.getMaxVmMemorySizeBytes()?{maxVmMemorySizeBytes:this.getMaxVmMemorySizeBytes()}:{},...void 0!==this.getAvailableMemorySizeBytes()&&null!==this.getAvailableMemorySizeBytes()?{availableMemorySizeBytes:this.getAvailableMemorySizeBytes()}:{},...void 0!==this.getLargestPoweredOffVMMemory()&&null!==this.getLargestPoweredOffVMMemory()?{largestPoweredOffVMMemory:this.getLargestPoweredOffVMMemory()}:{},...void 0!==this.getTotalVCpuCount()&&null!==this.getTotalVCpuCount()?{totalVCpuCount:this.getTotalVCpuCount()}:{},...void 0!==this.getCurrentUsedVCpuCount()&&null!==this.getCurrentUsedVCpuCount()?{currentUsedVCpuCount:this.getCurrentUsedVCpuCount()}:{},...void 0!==this.getProvisionedVCpuCount()&&null!==this.getProvisionedVCpuCount()?{provisionedVCpuCount:this.getProvisionedVCpuCount()}:{},...void 0!==this.getMaxVmVCpuSize()&&null!==this.getMaxVmVCpuSize()?{maxVmVCpuSize:this.getMaxVmVCpuSize()}:{},...void 0!==this.getAvailableVCpuCount()&&null!==this.getAvailableVCpuCount()?{availableVCpuCount:this.getAvailableVCpuCount()}:{},...void 0!==this.getLargestPoweredOffVMVCpu()&&null!==this.getLargestPoweredOffVMVCpu()?{largestPoweredOffVMVCpu:this.getLargestPoweredOffVMVCpu()}:{},...void 0!==this.getTotalCpuHz()&&null!==this.getTotalCpuHz()?{totalCpuHz:this.getTotalCpuHz()}:{},...void 0!==this.getCurrentUsedCpuHz()&&null!==this.getCurrentUsedCpuHz()?{currentUsedCpuHz:this.getCurrentUsedCpuHz()}:{},...void 0!==this.getProvisionedCpuHz()&&null!==this.getProvisionedCpuHz()?{provisionedCpuHz:this.getProvisionedCpuHz()}:{},...void 0!==this.getTotalStorageCapacityRawBytes()&&null!==this.getTotalStorageCapacityRawBytes()?{totalStorageCapacityRawBytes:this.getTotalStorageCapacityRawBytes()}:{},...void 0!==this.getTotalStorageCapacityLogicalBytes()&&null!==this.getTotalStorageCapacityLogicalBytes()?{totalStorageCapacityLogicalBytes:this.getTotalStorageCapacityLogicalBytes()}:{},...void 0!==this.getTotalStorageCapacityLogicalWithSavingsBytes()&&null!==this.getTotalStorageCapacityLogicalWithSavingsBytes()?{totalStorageCapacityLogicalWithSavingsBytes:this.getTotalStorageCapacityLogicalWithSavingsBytes()}:{},...void 0!==this.getTotalStorageUsageBytes()&&null!==this.getTotalStorageUsageBytes()?{totalStorageUsageBytes:this.getTotalStorageUsageBytes()}:{},...void 0!==this.getTotalStorageAvailableBytes()&&null!==this.getTotalStorageAvailableBytes()?{totalStorageAvailableBytes:this.getTotalStorageAvailableBytes()}:{},...void 0!==this.getTotalStorageAvailableLogicalBytes()&&null!==this.getTotalStorageAvailableLogicalBytes()?{totalStorageAvailableLogicalBytes:this.getTotalStorageAvailableLogicalBytes()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getClusterName()&&null!==this.getClusterName()?{clusterName:this.getClusterName()}:{},...void 0!==this.getExternalIP()&&null!==this.getExternalIP()?{externalIP:this.getExternalIP().toJson(!1)}:{},...void 0!==this.getCvmIPs()&&null!==this.getCvmIPs()?{cvmIPs:this.getCvmIPs().map(e=>e.toJson(!1))}:{},...void 0!==this.getTotalMemorySizeBytes()&&null!==this.getTotalMemorySizeBytes()?{totalMemorySizeBytes:this.getTotalMemorySizeBytes()}:{},...void 0!==this.getCurrentMemoryUsageSizeBytes()&&null!==this.getCurrentMemoryUsageSizeBytes()?{currentMemoryUsageSizeBytes:this.getCurrentMemoryUsageSizeBytes()}:{},...void 0!==this.getProvisionedMemoryUsageBytes()&&null!==this.getProvisionedMemoryUsageBytes()?{provisionedMemoryUsageBytes:this.getProvisionedMemoryUsageBytes()}:{},...void 0!==this.getMaxVmMemorySizeBytes()&&null!==this.getMaxVmMemorySizeBytes()?{maxVmMemorySizeBytes:this.getMaxVmMemorySizeBytes()}:{},...void 0!==this.getAvailableMemorySizeBytes()&&null!==this.getAvailableMemorySizeBytes()?{availableMemorySizeBytes:this.getAvailableMemorySizeBytes()}:{},...void 0!==this.getLargestPoweredOffVMMemory()&&null!==this.getLargestPoweredOffVMMemory()?{largestPoweredOffVMMemory:this.getLargestPoweredOffVMMemory()}:{},...void 0!==this.getTotalVCpuCount()&&null!==this.getTotalVCpuCount()?{totalVCpuCount:this.getTotalVCpuCount()}:{},...void 0!==this.getCurrentUsedVCpuCount()&&null!==this.getCurrentUsedVCpuCount()?{currentUsedVCpuCount:this.getCurrentUsedVCpuCount()}:{},...void 0!==this.getProvisionedVCpuCount()&&null!==this.getProvisionedVCpuCount()?{provisionedVCpuCount:this.getProvisionedVCpuCount()}:{},...void 0!==this.getMaxVmVCpuSize()&&null!==this.getMaxVmVCpuSize()?{maxVmVCpuSize:this.getMaxVmVCpuSize()}:{},...void 0!==this.getAvailableVCpuCount()&&null!==this.getAvailableVCpuCount()?{availableVCpuCount:this.getAvailableVCpuCount()}:{},...void 0!==this.getLargestPoweredOffVMVCpu()&&null!==this.getLargestPoweredOffVMVCpu()?{largestPoweredOffVMVCpu:this.getLargestPoweredOffVMVCpu()}:{},...void 0!==this.getTotalCpuHz()&&null!==this.getTotalCpuHz()?{totalCpuHz:this.getTotalCpuHz()}:{},...void 0!==this.getCurrentUsedCpuHz()&&null!==this.getCurrentUsedCpuHz()?{currentUsedCpuHz:this.getCurrentUsedCpuHz()}:{},...void 0!==this.getProvisionedCpuHz()&&null!==this.getProvisionedCpuHz()?{provisionedCpuHz:this.getProvisionedCpuHz()}:{},...void 0!==this.getTotalStorageCapacityRawBytes()&&null!==this.getTotalStorageCapacityRawBytes()?{totalStorageCapacityRawBytes:this.getTotalStorageCapacityRawBytes()}:{},...void 0!==this.getTotalStorageCapacityLogicalBytes()&&null!==this.getTotalStorageCapacityLogicalBytes()?{totalStorageCapacityLogicalBytes:this.getTotalStorageCapacityLogicalBytes()}:{},...void 0!==this.getTotalStorageCapacityLogicalWithSavingsBytes()&&null!==this.getTotalStorageCapacityLogicalWithSavingsBytes()?{totalStorageCapacityLogicalWithSavingsBytes:this.getTotalStorageCapacityLogicalWithSavingsBytes()}:{},...void 0!==this.getTotalStorageUsageBytes()&&null!==this.getTotalStorageUsageBytes()?{totalStorageUsageBytes:this.getTotalStorageUsageBytes()}:{},...void 0!==this.getTotalStorageAvailableBytes()&&null!==this.getTotalStorageAvailableBytes()?{totalStorageAvailableBytes:this.getTotalStorageAvailableBytes()}:{},...void 0!==this.getTotalStorageAvailableLogicalBytes()&&null!==this.getTotalStorageAvailableLogicalBytes()?{totalStorageAvailableLogicalBytes:this.getTotalStorageAvailableLogicalBytes()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"clusterName"!==t||void 0!==this.clusterName&&null!==this.clusterName?"externalIP"!==t||void 0!==this.externalIP&&null!==this.externalIP?"cvmIPs"!==t||void 0!==this.cvmIPs&&null!==this.cvmIPs?"totalMemorySizeBytes"!==t||void 0!==this.totalMemorySizeBytes&&null!==this.totalMemorySizeBytes?"currentMemoryUsageSizeBytes"!==t||void 0!==this.currentMemoryUsageSizeBytes&&null!==this.currentMemoryUsageSizeBytes?"provisionedMemoryUsageBytes"!==t||void 0!==this.provisionedMemoryUsageBytes&&null!==this.provisionedMemoryUsageBytes?"maxVmMemorySizeBytes"!==t||void 0!==this.maxVmMemorySizeBytes&&null!==this.maxVmMemorySizeBytes?"availableMemorySizeBytes"!==t||void 0!==this.availableMemorySizeBytes&&null!==this.availableMemorySizeBytes?"largestPoweredOffVMMemory"!==t||void 0!==this.largestPoweredOffVMMemory&&null!==this.largestPoweredOffVMMemory?"totalVCpuCount"!==t||void 0!==this.totalVCpuCount&&null!==this.totalVCpuCount?"currentUsedVCpuCount"!==t||void 0!==this.currentUsedVCpuCount&&null!==this.currentUsedVCpuCount?"provisionedVCpuCount"!==t||void 0!==this.provisionedVCpuCount&&null!==this.provisionedVCpuCount?"maxVmVCpuSize"!==t||void 0!==this.maxVmVCpuSize&&null!==this.maxVmVCpuSize?"availableVCpuCount"!==t||void 0!==this.availableVCpuCount&&null!==this.availableVCpuCount?"largestPoweredOffVMVCpu"!==t||void 0!==this.largestPoweredOffVMVCpu&&null!==this.largestPoweredOffVMVCpu?"totalCpuHz"!==t||void 0!==this.totalCpuHz&&null!==this.totalCpuHz?"currentUsedCpuHz"!==t||void 0!==this.currentUsedCpuHz&&null!==this.currentUsedCpuHz?"provisionedCpuHz"!==t||void 0!==this.provisionedCpuHz&&null!==this.provisionedCpuHz?"totalStorageCapacityRawBytes"!==t||void 0!==this.totalStorageCapacityRawBytes&&null!==this.totalStorageCapacityRawBytes?"totalStorageCapacityLogicalBytes"!==t||void 0!==this.totalStorageCapacityLogicalBytes&&null!==this.totalStorageCapacityLogicalBytes?"totalStorageCapacityLogicalWithSavingsBytes"!==t||void 0!==this.totalStorageCapacityLogicalWithSavingsBytes&&null!==this.totalStorageCapacityLogicalWithSavingsBytes?"totalStorageUsageBytes"!==t||void 0!==this.totalStorageUsageBytes&&null!==this.totalStorageUsageBytes?"totalStorageAvailableBytes"!==t||void 0!==this.totalStorageAvailableBytes&&null!==this.totalStorageAvailableBytes?"totalStorageAvailableLogicalBytes"!==t||void 0!==this.totalStorageAvailableLogicalBytes&&null!==this.totalStorageAvailableLogicalBytes?new O(t,"no such property exists"):new O("totalStorageAvailableLogicalBytes","undefined or null"):new O("totalStorageAvailableBytes","undefined or null"):new O("totalStorageUsageBytes","undefined or null"):new O("totalStorageCapacityLogicalWithSavingsBytes","undefined or null"):new O("totalStorageCapacityLogicalBytes","undefined or null"):new O("totalStorageCapacityRawBytes","undefined or null"):new O("provisionedCpuHz","undefined or null"):new O("currentUsedCpuHz","undefined or null"):new O("totalCpuHz","undefined or null"):new O("largestPoweredOffVMVCpu","undefined or null"):new O("availableVCpuCount","undefined or null"):new O("maxVmVCpuSize","undefined or null"):new O("provisionedVCpuCount","undefined or null"):new O("currentUsedVCpuCount","undefined or null"):new O("totalVCpuCount","undefined or null"):new O("largestPoweredOffVMMemory","undefined or null"):new O("availableMemorySizeBytes","undefined or null"):new O("maxVmMemorySizeBytes","undefined or null"):new O("provisionedMemoryUsageBytes","undefined or null"):new O("currentMemoryUsageSizeBytes","undefined or null"):new O("totalMemorySizeBytes","undefined or null"):new O("cvmIPs","undefined or null"):new O("externalIP","undefined or null"):new O("clusterName","undefined or null")}}Cs.prototype.clusterName=void 0,Cs.prototype.externalIP=void 0,Cs.prototype.cvmIPs=void 0,Cs.prototype.totalMemorySizeBytes=void 0,Cs.prototype.currentMemoryUsageSizeBytes=void 0,Cs.prototype.provisionedMemoryUsageBytes=void 0,Cs.prototype.maxVmMemorySizeBytes=void 0,Cs.prototype.availableMemorySizeBytes=void 0,Cs.prototype.largestPoweredOffVMMemory=void 0,Cs.prototype.totalVCpuCount=void 0,Cs.prototype.currentUsedVCpuCount=void 0,Cs.prototype.provisionedVCpuCount=void 0,Cs.prototype.maxVmVCpuSize=void 0,Cs.prototype.availableVCpuCount=void 0,Cs.prototype.largestPoweredOffVMVCpu=void 0,Cs.prototype.totalCpuHz=void 0,Cs.prototype.currentUsedCpuHz=void 0,Cs.prototype.provisionedCpuHz=void 0,Cs.prototype.totalStorageCapacityRawBytes=void 0,Cs.prototype.totalStorageCapacityLogicalBytes=void 0,Cs.prototype.totalStorageCapacityLogicalWithSavingsBytes=void 0,Cs.prototype.totalStorageUsageBytes=void 0,Cs.prototype.totalStorageAvailableBytes=void 0,Cs.prototype.totalStorageAvailableLogicalBytes=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;var Ps=new WeakSet;class Ss{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ps),t.add(e),this.$objectType="aiops.v4.clusterMetrics.Node",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Ss,e.hasOwnProperty("nodeUuid")&&null!==e.nodeUuid&&void 0!==e.nodeUuid&&t.setNodeUuid(e.nodeUuid),e.hasOwnProperty("haMemoryReservedBytes")&&null!==e.haMemoryReservedBytes&&void 0!==e.haMemoryReservedBytes&&t.setHaMemoryReservedBytes(e.haMemoryReservedBytes),e.hasOwnProperty("numCpuThreads")&&null!==e.numCpuThreads&&void 0!==e.numCpuThreads&&t.setNumCpuThreads(e.numCpuThreads),e.hasOwnProperty("capacityHz")&&null!==e.capacityHz&&void 0!==e.capacityHz&&t.setCapacityHz(e.capacityHz),e.hasOwnProperty("memorySizeBytes")&&null!==e.memorySizeBytes&&void 0!==e.memorySizeBytes&&t.setMemorySizeBytes(e.memorySizeBytes),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getNodeUuid(){return this.nodeUuid}setNodeUuid(e){this.nodeUuid=e}getHaMemoryReservedBytes(){return this.haMemoryReservedBytes}setHaMemoryReservedBytes(e){this.haMemoryReservedBytes=e}getNumCpuThreads(){return this.numCpuThreads}setNumCpuThreads(e){this.numCpuThreads=e}getCapacityHz(){return this.capacityHz}setCapacityHz(e){this.capacityHz=e}getMemorySizeBytes(){return this.memorySizeBytes}setMemorySizeBytes(e){this.memorySizeBytes=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getNodeUuid()&&null!==this.getNodeUuid()?{nodeUuid:this.getNodeUuid()}:{},...void 0!==this.getHaMemoryReservedBytes()&&null!==this.getHaMemoryReservedBytes()?{haMemoryReservedBytes:this.getHaMemoryReservedBytes()}:{},...void 0!==this.getNumCpuThreads()&&null!==this.getNumCpuThreads()?{numCpuThreads:this.getNumCpuThreads()}:{},...void 0!==this.getCapacityHz()&&null!==this.getCapacityHz()?{capacityHz:this.getCapacityHz()}:{},...void 0!==this.getMemorySizeBytes()&&null!==this.getMemorySizeBytes()?{memorySizeBytes:this.getMemorySizeBytes()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("nodeUuid"===t){if(void 0===this.nodeUuid||null===this.nodeUuid)return new O("nodeUuid","undefined or null");if(!j.validatePattern(this.nodeUuid,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("nodeUuid","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"haMemoryReservedBytes"!==t||void 0!==this.haMemoryReservedBytes&&null!==this.haMemoryReservedBytes?"numCpuThreads"!==t||void 0!==this.numCpuThreads&&null!==this.numCpuThreads?"capacityHz"!==t||void 0!==this.capacityHz&&null!==this.capacityHz?"memorySizeBytes"!==t||void 0!==this.memorySizeBytes&&null!==this.memorySizeBytes?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("memorySizeBytes","undefined or null"):new O("capacityHz","undefined or null"):new O("numCpuThreads","undefined or null"):new O("haMemoryReservedBytes","undefined or null")}}Ss.prototype.nodeUuid=void 0,Ss.prototype.haMemoryReservedBytes=void 0,Ss.prototype.numCpuThreads=void 0,Ss.prototype.capacityHz=void 0,Ss.prototype.memorySizeBytes=void 0,Ss.prototype.$reserved=void 0,Ss.prototype.$objectType=void 0,Ss.prototype.$unknownFields=void 0;class Es extends Ss{constructor(){super(),this.$objectType="aiops.v4.clusterMetrics.NodeProjection",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Es,Ss.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return new O(t,"no such property exists")}}var Ds=new WeakSet;class Rs{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ds),t.add(e),this.$objectType="aiops.v4.clusterMetrics.Vm",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Rs,e.hasOwnProperty("vmUuid")&&null!==e.vmUuid&&void 0!==e.vmUuid&&t.setVmUuid(e.vmUuid),e.hasOwnProperty("vmMemory")&&null!==e.vmMemory&&void 0!==e.vmMemory&&t.setVmMemory(e.vmMemory),e.hasOwnProperty("numVcpus")&&null!==e.numVcpus&&void 0!==e.numVcpus&&t.setNumVcpus(e.numVcpus),e.hasOwnProperty("powerState")&&null!==e.powerState&&void 0!==e.powerState&&t.setPowerState(e.powerState),e.hasOwnProperty("node")&&null!==e.node&&void 0!==e.node&&t.setNode(e.node),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getVmUuid(){return this.vmUuid}setVmUuid(e){this.vmUuid=e}getVmMemory(){return this.vmMemory}setVmMemory(e){this.vmMemory=e}getNumVcpus(){return this.numVcpus}setNumVcpus(e){this.numVcpus=e}getPowerState(){return this.powerState}setPowerState(e){this.powerState=e}getNode(){return this.node}setNode(e){this.node=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getVmUuid()&&null!==this.getVmUuid()?{vmUuid:this.getVmUuid()}:{},...void 0!==this.getVmMemory()&&null!==this.getVmMemory()?{vmMemory:this.getVmMemory()}:{},...void 0!==this.getNumVcpus()&&null!==this.getNumVcpus()?{numVcpus:this.getNumVcpus()}:{},...void 0!==this.getPowerState()&&null!==this.getPowerState()?{powerState:this.getPowerState()}:{},...void 0!==this.getNode()&&null!==this.getNode()?{node:this.getNode()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("vmUuid"===t){if(void 0===this.vmUuid||null===this.vmUuid)return new O("vmUuid","undefined or null");if(!j.validatePattern(this.vmUuid,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("vmUuid","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"vmMemory"!==t||void 0!==this.vmMemory&&null!==this.vmMemory?"numVcpus"!==t||void 0!==this.numVcpus&&null!==this.numVcpus?"powerState"!==t||void 0!==this.powerState&&null!==this.powerState?"node"!==t||void 0!==this.node&&null!==this.node?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("node","undefined or null"):new O("powerState","undefined or null"):new O("numVcpus","undefined or null"):new O("vmMemory","undefined or null")}}Rs.prototype.vmUuid=void 0,Rs.prototype.vmMemory=void 0,Rs.prototype.numVcpus=void 0,Rs.prototype.powerState=void 0,Rs.prototype.node=void 0,Rs.prototype.$reserved=void 0,Rs.prototype.$objectType=void 0,Rs.prototype.$unknownFields=void 0;class Us extends Rs{constructor(){super(),this.$objectType="aiops.v4.clusterMetrics.VmProjection",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Us,Rs.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return new O(t,"no such property exists")}}var Is=new WeakSet;class As extends ks{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Is),t.add(e),this.$objectType="aiops.v4.clusterMetrics.ClusterProjection",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new As,ks.constructFromObject(e,t,!0),e.hasOwnProperty("vmProjection")&&null!==e.vmProjection&&void 0!==e.vmProjection){for(r=[],i=e.vmProjection,o=0;o<i.length;o++)s=Us.constructFromObject(i[o],void 0),r.push(s);t.setVmProjection(r)}if(e.hasOwnProperty("nodeProjection")&&null!==e.nodeProjection&&void 0!==e.nodeProjection){for(r=[],i=e.nodeProjection,o=0;o<i.length;o++)s=Es.constructFromObject(i[o],void 0),r.push(s);t.setNodeProjection(r)}if(!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getVmProjection(){return this.vmProjection}setVmProjection(e){this.vmProjection=e}getNodeProjection(){return this.nodeProjection}setNodeProjection(e){this.nodeProjection=e}toJson(e){return{...void 0!==this.getVmProjection()&&null!==this.getVmProjection()?{vmProjection:this.getVmProjection().map(e=>e.toJson(!1))}:{},...void 0!==this.getNodeProjection()&&null!==this.getNodeProjection()?{nodeProjection:this.getNodeProjection().map(e=>e.toJson(!1))}:{},...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getUuid()&&null!==this.getUuid()?{uuid:this.getUuid()}:{},...void 0!==this.getExternalIpAddress()&&null!==this.getExternalIpAddress()?{externalIpAddress:this.getExternalIpAddress()}:{},...void 0!==this.getMemoryCapacityBytes()&&null!==this.getMemoryCapacityBytes()?{memoryCapacityBytes:this.getMemoryCapacityBytes()}:{},...void 0!==this.getNumCpus()&&null!==this.getNumCpus()?{numCpus:this.getNumCpus()}:{},...void 0!==this.getHypervisorMemoryUsagePpm()&&null!==this.getHypervisorMemoryUsagePpm()?{hypervisorMemoryUsagePpm:this.getHypervisorMemoryUsagePpm()}:{},...void 0!==this.getHypervisorCpuUsagePpm()&&null!==this.getHypervisorCpuUsagePpm()?{hypervisorCpuUsagePpm:this.getHypervisorCpuUsagePpm()}:{},...void 0!==this.getRf()&&null!==this.getRf()?{rf:this.getRf()}:{},...void 0!==this.getCapacityBytes()&&null!==this.getCapacityBytes()?{capacityBytes:this.getCapacityBytes()}:{},...void 0!==this.getFreeBytes()&&null!==this.getFreeBytes()?{freeBytes:this.getFreeBytes()}:{},...void 0!==this.getUsageBytes()&&null!==this.getUsageBytes()?{usageBytes:this.getUsageBytes()}:{},...void 0!==this.getSavedBytes()&&null!==this.getSavedBytes()?{savedBytes:this.getSavedBytes()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"vmProjection"!==t||void 0!==this.vmProjection&&null!==this.vmProjection?"nodeProjection"!==t||void 0!==this.nodeProjection&&null!==this.nodeProjection?new O(t,"no such property exists"):new O("nodeProjection","undefined or null"):new O("vmProjection","undefined or null")}}As.prototype.vmProjection=void 0,As.prototype.nodeProjection=void 0,ks.prototype.name=void 0,ks.prototype.uuid=void 0,ks.prototype.externalIpAddress=void 0,ks.prototype.memoryCapacityBytes=void 0,ks.prototype.numCpus=void 0,ks.prototype.hypervisorMemoryUsagePpm=void 0,ks.prototype.hypervisorCpuUsagePpm=void 0,ks.prototype.rf=void 0,ks.prototype.capacityBytes=void 0,ks.prototype.freeBytes=void 0,ks.prototype.usageBytes=void 0,ks.prototype.savedBytes=void 0;const Ms={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",IGNORE_RUNWAY_NUTANIX:"IGNORE_RUNWAY_NUTANIX",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Ms).find(t=>Ms[t]===e);return null==t?Ms.$UNKNOWN:Ms[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ms.$UNKNOWN:case Ms.$REDACTED:case Ms.IGNORE_RUNWAY_NUTANIX:return;default:throw new Error("Invalid : must be ClusterType.{ $UNKNOWN|$REDACTED|IGNORE_RUNWAY_NUTANIX }")}}};Object.freeze(Ms);const Ns=Ms,xs={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",ORIGINAL:"ORIGINAL",ONE_NODE_FAILURE:"ONE_NODE_FAILURE",BLOCK_AWARENESS:"BLOCK_AWARENESS",AUTO_DETECT:"AUTO_DETECT",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(xs).find(t=>xs[t]===e);return null==t?xs.$UNKNOWN:xs[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case xs.$UNKNOWN:case xs.$REDACTED:case xs.ORIGINAL:case xs.ONE_NODE_FAILURE:case xs.BLOCK_AWARENESS:case xs.AUTO_DETECT:return;default:throw new Error("Invalid : must be CapacityType.{ $UNKNOWN|$REDACTED|ORIGINAL|ONE_NODE_FAILURE|BLOCK_AWARENESS|AUTO_DETECT }")}}};Object.freeze(xs);const Vs=xs,Ls={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",GHZ:"GHz",GB:"GB",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Ls).find(t=>Ls[t]===e);return null==t?Ls.$UNKNOWN:Ls[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ls.$UNKNOWN:case Ls.$REDACTED:case Ls.GHZ:case Ls.GB:return;default:throw new Error("Invalid : must be CapacityUnit.{ $UNKNOWN|$REDACTED|GHZ|GB }")}}};Object.freeze(Ls);const Bs=Ls,Ws={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",CLUSTER:"CLUSTER",NUTANIX_VCENTER_CLUSTER:"NUTANIX_VCENTER_CLUSTER",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Ws).find(t=>Ws[t]===e);return null==t?Ws.$UNKNOWN:Ws[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ws.$UNKNOWN:case Ws.$REDACTED:case Ws.CLUSTER:case Ws.NUTANIX_VCENTER_CLUSTER:return;default:throw new Error("Invalid : must be ClusterType.{ $UNKNOWN|$REDACTED|CLUSTER|NUTANIX_VCENTER_CLUSTER }")}}};Object.freeze(Ws);const zs=Ws;var Js=new WeakSet;class _s extends mt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Js),t.add(e),this.$objectType="aiops.v4.config.EntityDetail",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new _s,mt.constructFromObject(e,t,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("isDefaultAIOpsPolicyEntity")&&null!==e.isDefaultAIOpsPolicyEntity&&void 0!==e.isDefaultAIOpsPolicyEntity&&t.setIsDefaultAIOpsPolicyEntity(e.isDefaultAIOpsPolicyEntity),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getIsDefaultAIOpsPolicyEntity(){return this.isDefaultAIOpsPolicyEntity}setIsDefaultAIOpsPolicyEntity(e){this.isDefaultAIOpsPolicyEntity=e}toJson(e){return!1===e?{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getIsDefaultAIOpsPolicyEntity()&&null!==this.getIsDefaultAIOpsPolicyEntity()?{isDefaultAIOpsPolicyEntity:this.getIsDefaultAIOpsPolicyEntity()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getIsDefaultAIOpsPolicyEntity()&&null!==this.getIsDefaultAIOpsPolicyEntity()?{isDefaultAIOpsPolicyEntity:this.getIsDefaultAIOpsPolicyEntity()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"name"!==t||void 0!==this.name&&null!==this.name?"isDefaultAIOpsPolicyEntity"!==t||void 0!==this.isDefaultAIOpsPolicyEntity&&null!==this.isDefaultAIOpsPolicyEntity?new O(t,"no such property exists"):new O("isDefaultAIOpsPolicyEntity","undefined or null"):new O("name","undefined or null")}}_s.prototype.name=void 0,_s.prototype.isDefaultAIOpsPolicyEntity=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;const Gs={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INEFFICIENCY_EXCLUSION:"INEFFICIENCY_EXCLUSION",ANOMALY_EXCLUSION:"ANOMALY_EXCLUSION",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Gs).find(t=>Gs[t]===e);return null==t?Gs.$UNKNOWN:Gs[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Gs.$UNKNOWN:case Gs.$REDACTED:case Gs.INEFFICIENCY_EXCLUSION:case Gs.ANOMALY_EXCLUSION:return;default:throw new Error("Invalid : must be PolicyType.{ $UNKNOWN|$REDACTED|INEFFICIENCY_EXCLUSION|ANOMALY_EXCLUSION }")}}};Object.freeze(Gs);const qs=Gs;class Hs extends Zt{constructor(e,t,n){super(e,t,n),this.$objectType="aiops.v4.config.SimulatedVmResourceSpecProjection",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Hs,Zt.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["vcpuCount","ramGb","hddGb"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return new O(t,"no such property exists")}}var Ks=new WeakSet;class Xs{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ks),t.add(e),this.$objectType="common.v1.config.KVStringPair",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Xs,e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value&&t.setValue(e.value),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getValue(){return this.value}setValue(e){this.value=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!j.validateMaxLength(this.name,128))return new O("name","does not satisfy required maxLength constraint: 128");if(!j.validateMinLength(this.name,3))return new O("name","does not satisfy required minLength constraint: 3")}return"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("value","undefined or null")}}function Zs(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Xs.prototype.name=void 0,Xs.prototype.value="",Xs.prototype.$reserved=void 0,Xs.prototype.$objectType=void 0,Xs.prototype.$unknownFields=void 0;var Ys=new WeakSet;class Qs extends mt{constructor(e,t){var n,i;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,i=Ys),i.add(n),this.isEnabled=e,this.entities=t,this.$objectType="aiops.v4.config.XfitPolicy",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new Qs,mt.constructFromObject(e,t,!0),e.hasOwnProperty("policyType")&&null!==e.policyType&&void 0!==e.policyType&&t.setPolicyType(qs.constructFromObject(e.policyType)),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&t.setDescription(e.description),e.hasOwnProperty("updatedTime")&&null!==e.updatedTime&&void 0!==e.updatedTime&&t.setUpdatedTime(e.updatedTime),e.hasOwnProperty("isDefault")&&null!==e.isDefault&&void 0!==e.isDefault&&t.setIsDefault(e.isDefault),e.hasOwnProperty("isEnabled")&&null!==e.isEnabled&&void 0!==e.isEnabled&&t.setIsEnabled(e.isEnabled),e.hasOwnProperty("toRemove")&&null!==e.toRemove&&void 0!==e.toRemove&&t.setToRemove(e.toRemove),e.hasOwnProperty("parameters")&&null!==e.parameters&&void 0!==e.parameters){for(r=[],i=e.parameters,o=0;o<i.length;o++)s=Xs.constructFromObject(i[o],void 0),r.push(s);t.setParameters(r)}if(e.hasOwnProperty("entities")&&null!==e.entities&&void 0!==e.entities){for(r=[],i=e.entities,o=0;o<i.length;o++)s=_s.constructFromObject(i[o],void 0),r.push(s);t.setEntities(r)}if(!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getPolicyType(){return this.policyType}setPolicyType(e){this.policyType=e}getName(){return this.name}setName(e){this.name=e}getDescription(){return this.description}setDescription(e){this.description=e}getUpdatedTime(){return this.updatedTime}setUpdatedTime(e){this.updatedTime=e}getIsDefault(){return this.isDefault}setIsDefault(e){this.isDefault=e}getIsEnabled(){return this.isEnabled}setIsEnabled(e){this.isEnabled=e}getToRemove(){return this.toRemove}setToRemove(e){this.toRemove=e}getParameters(){return this.parameters}setParameters(e){this.parameters=e}getEntities(){return this.entities}setEntities(e){this.entities=e}toJson(e){return!1===e?{...void 0!==this.getPolicyType()&&null!==this.getPolicyType()?{policyType:this.getPolicyType()}:{},...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{},...void 0!==this.getUpdatedTime()&&null!==this.getUpdatedTime()?{updatedTime:Zs(Ys,this,eo).call(this,this.getUpdatedTime(),!1)}:{},...void 0!==this.getIsDefault()&&null!==this.getIsDefault()?{isDefault:this.getIsDefault()}:{},...void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{},...void 0!==this.getToRemove()&&null!==this.getToRemove()?{toRemove:this.getToRemove()}:{},...void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().map(e=>e.toJson(!1))}:{},...void 0!==this.getEntities()&&null!==this.getEntities()?{entities:this.getEntities().map(e=>e.toJson(!1))}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getPolicyType()&&null!==this.getPolicyType()?{policyType:this.getPolicyType()}:{},...void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{},...void 0!==this.getToRemove()&&null!==this.getToRemove()?{toRemove:this.getToRemove()}:{},...void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().map(e=>e.toJson(!1))}:{},...void 0!==this.getEntities()&&null!==this.getEntities()?{entities:this.getEntities().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["isEnabled","entities"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("policyType"===t&&(void 0===this.policyType||null===this.policyType))return new O("policyType","undefined or null");if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!j.validateMaxLength(this.name,256))return new O("name","does not satisfy required maxLength constraint: 256");if(!j.validateMinLength(this.name,1))return new O("name","does not satisfy required minLength constraint: 1")}if("description"===t){if(void 0===this.description||null===this.description)return new O("description","undefined or null");if(!j.validateMaxLength(this.description,512))return new O("description","does not satisfy required maxLength constraint: 512");if(!j.validateMinLength(this.description,1))return new O("description","does not satisfy required minLength constraint: 1")}if("updatedTime"===t&&(void 0===this.updatedTime||null===this.updatedTime))return new O("updatedTime","undefined or null");if("isDefault"===t&&(void 0===this.isDefault||null===this.isDefault))return new O("isDefault","undefined or null");if("isEnabled"===t&&(void 0===this.isEnabled||null===this.isEnabled))return new O("isEnabled","undefined or null");if("toRemove"===t&&(void 0===this.toRemove||null===this.toRemove))return new O("toRemove","undefined or null");if("parameters"===t){if(void 0===this.parameters||null===this.parameters)return new O("parameters","undefined or null");if(!j.validateMaxItems(this.parameters,50))return new O("parameters","does not satisfy required maxItems constraint: 50")}return"entities"!==t||void 0!==this.entities&&null!==this.entities?new O(t,"no such property exists"):new O("entities","undefined or null")}}function eo(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}Qs.prototype.policyType=void 0,Qs.prototype.name=void 0,Qs.prototype.description=void 0,Qs.prototype.updatedTime=void 0,Qs.prototype.isDefault=!1,Qs.prototype.isEnabled=!0,Qs.prototype.toRemove=!1,Qs.prototype.parameters=void 0,Qs.prototype.entities=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;class to extends Qs{constructor(e,t){super(e,t),this.$objectType="aiops.v4.config.XfitPolicyProjection",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new to,Qs.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["isEnabled","entities"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return new O(t,"no such property exists")}}const no={ApiClient:le,StatsApi:class{#e;static get ApiClient(){return le}constructor(e){this.apiClient=e||le.instance,this.#e=new Set,this.#e.add("authorization"),this.#e.add("cookie"),this.#e.add("host"),this.#e.add("user-agent")}getEntityDescriptorsV4(e,t,...n){let i=n.length>0?n[0]:{};if(t=t||{},null==e)throw new Error("Missing the required parameter 'sourceExtId' when calling getEntityDescriptorsV4");const s={sourceExtId:e},o={...t.hasOwnProperty("$page")?{$page:t.$page}:{},...t.hasOwnProperty("$limit")?{$limit:t.$limit}:{},...t.hasOwnProperty("$filter")?{$filter:t.$filter}:{}};let r={};Object.keys(i).forEach(e=>{this.#e.has(e.toLowerCase())||(r[e]=i[e])});const a={...r},l=Mt;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/sources/{sourceExtId}/entity-descriptors","GET",s,o,a,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],l)}getEntityMetricsV4(e,t,n,i,s,...o){let r=o.length>0?o[0]:{};if(s=s||{},null==e)throw new Error("Missing the required parameter 'sourceExtId' when calling getEntityMetricsV4");if(null==t)throw new Error("Missing the required parameter 'extId' when calling getEntityMetricsV4");if(null==n)throw new Error("Missing the required parameter '$startTime' when calling getEntityMetricsV4");if(null==i)throw new Error("Missing the required parameter '$endTime' when calling getEntityMetricsV4");const a={sourceExtId:e,extId:t},l={...s.hasOwnProperty("$page")?{$page:s.$page}:{},...s.hasOwnProperty("$limit")?{$limit:s.$limit}:{},$startTime:n,$endTime:i,...s.hasOwnProperty("$samplingInterval")?{$samplingInterval:s.$samplingInterval}:{},...s.hasOwnProperty("$statType")?{$statType:s.$statType}:{},...s.hasOwnProperty("$filter")?{$filter:s.$filter}:{},...s.hasOwnProperty("$orderby")?{$orderby:s.$orderby}:{}};let d={};Object.keys(r).forEach(e=>{this.#e.has(e.toLowerCase())||(d[e]=r[e])});const u={...d},h=Tt;return this.apiClient.callApi("/api/aiops/v4.2.b1/stats/sources/{sourceExtId}/entities/{extId}","GET",a,l,u,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],h)}getEntityTypesV4(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'sourceExtId' when calling getEntityTypesV4");const i={sourceExtId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=Ht;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/sources/{sourceExtId}/entity-types","GET",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}getSourcesV4(...e){let t=e.length>0?e[0]:{},n={};Object.keys(t).forEach(e=>{this.#e.has(e.toLowerCase())||(n[e]=t[e])});const i={...n},s=Wt;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/sources","GET",{},{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}},ScenariosApi:class{#e;static get ApiClient(){return le}constructor(e){this.apiClient=e||le.instance,this.#e=new Set,this.#e.add("authorization"),this.#e.add("cookie"),this.#e.add("host"),this.#e.add("user-agent")}createScenario(e,...t){let n=t.length>0?t[0]:{},i=null;if(i=e instanceof Ci&&"function"==typeof e.toJson?e.toJson():e,null==i)throw new Error("Invalid body when calling createScenario");let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s};le.addEtagReferenceToHeader(e,o);const r=Wi;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios","POST",{},{},o,{},i,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],r)}createSimulation(e,...t){let n=t.length>0?t[0]:{},i=null;if(i=e instanceof Qt&&"function"==typeof e.toJson?e.toJson():e,null==i)throw new Error("Invalid body when calling createSimulation");let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s};le.addEtagReferenceToHeader(e,o);const r=nn;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/simulations","POST",{},{},o,{},i,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],r)}deleteScenarioById(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteScenarioById");const i={extId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=Xi;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios/{extId}","DELETE",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}deleteSimulationById(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteSimulationById");const i={extId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=Gi;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/simulations/{extId}","DELETE",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}generateRecommendation(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling generateRecommendation");const i={extId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=es;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios/{extId}/$actions/generate-recommendation","POST",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}generateReport(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling generateReport");const i={extId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=ss;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios/{extId}/$actions/generate-report","POST",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}generateRunway(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling generateRunway");const i={extId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=fs;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios/{extId}/$actions/generate-runway","POST",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}getScenarioById(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getScenarioById");const i={extId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=cs;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios/{extId}","GET",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}getScenarioReport(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'scenarioExtId' when calling getScenarioReport");const i={scenarioExtId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=Mi;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios/{scenarioExtId}/reports","GET",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/octet-stream","application/json"],r)}getSimulationById(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getSimulationById");const i={extId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=ls;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/simulations/{extId}","GET",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}listScenarios(e,...t){let n=t.length>0?t[0]:{};const i={...(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{},...e.hasOwnProperty("$limit")?{$limit:e.$limit}:{},...e.hasOwnProperty("$filter")?{$filter:e.$filter}:{},...e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{},...e.hasOwnProperty("$select")?{$select:e.$select}:{}};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=Ri;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios","GET",{},i,o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}listSimulations(e,...t){let n=t.length>0?t[0]:{};const i={...(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{},...e.hasOwnProperty("$limit")?{$limit:e.$limit}:{},...e.hasOwnProperty("$filter")?{$filter:e.$filter}:{},...e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{},...e.hasOwnProperty("$select")?{$select:e.$select}:{}};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=ln;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/simulations","GET",{},i,o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}updateScenarioById(e,t,...n){let i=n.length>0?n[0]:{},s=null;if(s=t instanceof Ci&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling updateScenarioById");if(null==s)throw new Error("Invalid body when calling updateScenarioById");const o={extId:e};let r={};Object.keys(i).forEach(e=>{this.#e.has(e.toLowerCase())||(r[e]=i[e])});const a={...r};le.addEtagReferenceToHeader(t,a);const l=gs;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios/{extId}","PUT",o,{},a,{},s,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],l)}updateSimulationById(e,t,...n){let i=n.length>0?n[0]:{},s=null;if(s=t instanceof Qt&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling updateSimulationById");if(null==s)throw new Error("Invalid body when calling updateSimulationById");const o={extId:e};let r={};Object.keys(i).forEach(e=>{this.#e.has(e.toLowerCase())||(r[e]=i[e])});const a={...r};le.addEtagReferenceToHeader(t,a);const l=cn;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/simulations/{extId}","PUT",o,{},a,{},s,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],l)}},Cluster:ks,ClusterMetrics:Cs,ClusterProjection:As,Node:Ss,NodeProjection:Es,Vm:Rs,VmProjection:Us,CommonClusterType:Ns,CapacityType:Vs,CapacityUnit:Bs,CapacityUpdateConfig:Nn,CapacityUpdateType:An,CitrixXenProvisionType:Vn,CitrixXenWorkload:qn,CitrixXenWorkloadVendor:Bn,ClusterConfig:Cn,ConfigClusterType:zs,CreateScenarioApiResponse:Wi,CreateSimulationApiResponse:nn,DataStoreConfig:mn,DeleteScenarioApiResponse:Xi,DeleteSimulationApiResponse:Gi,EntityDescriptor:Ut,EntityDescriptorListApiResponse:Mt,EntityDetail:_s,EntityType:_t,EntityTypeListApiResponse:Ht,GenerateRecommendationApiResponse:es,GenerateReportApiResponse:ss,GenerateRunwayApiResponse:fs,GetScenarioApiResponse:cs,GetScenarioReportApiResponse:Mi,GetSimulationApiResponse:ls,ListScenariosApiResponse:Ri,ListSimulationsApiResponse:ln,MetricDescriptor:Dt,MicrosoftXenProvisionType:Kn,MicrosoftXenWorkload:Qn,MicrosoftXenWorkloadVendor:Zn,NodeConfig:jn,NodeSource:$n,PolicyType:qs,ReplicationFactor:vn,ResourceCapacity:bn,Runway:En,Scenario:Ci,ScenarioProjection:Si,SimulatedVmResourceSpec:Zt,SimulatedVmResourceSpecProjection:Hs,Simulation:Qt,SimulationProjection:on,Source:Vt,SourceListApiResponse:Wt,SplunkWorkload:ti,SqlProfileType:ii,SqlTransactionType:oi,SqlWorkload:ai,UpdateScenarioApiResponse:gs,UpdateSimulationApiResponse:cn,ValueRange:Ot,ValueType:Ct,VdiProvisionType:di,VdiUserType:hi,VdiVendor:pi,VdiWorkload:vi,Vendor:Un,VmCategoryWorkload:mi,VmWorkload:$i,Workload:Ti,XenOperatingSystem:zn,XenWorkload:_n,XfitPolicy:Qs,XfitPolicyProjection:to,AppMessage:De,ErrorResponse:Be,SchemaValidationError:Ne,SchemaValidationErrorMessage:Ie,BoolList:Je,BoolVal:Ge,DoubleList:He,DoubleVal:Xe,Entity:$t,EntityListApiResponse:Tt,IntList:Ye,IntVal:et,Metric:pt,Point:at,StrList:nt,StrVal:st,TimeSeries:ht,Flag:C,IPv4Address:Os,KVPair:I,KVStringPair:Xs,MapOfStringWrapper:E,Message:V,MessageSeverity:N,TenantAwareModel:vt,ApiLink:B,ApiResponseMetadata:J,ExternalizableAbstractModel:mt,DownSamplingOperator:St,TaskReference:Vi}})(),i.default})());