@dronedeploy/rocos-js-sdk 0.0.1 → 2.6.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 (587) hide show
  1. package/IRocosSDK.d.ts +55 -0
  2. package/IRocosSDK.js +6 -0
  3. package/README.md +90 -0
  4. package/RocosSDK.d.ts +138 -0
  5. package/RocosSDK.js +294 -0
  6. package/api/StreamRegister.d.ts +13 -0
  7. package/api/StreamRegister.js +58 -0
  8. package/api/atoms/StreamHeartbeat.d.ts +27 -0
  9. package/api/atoms/StreamHeartbeat.js +115 -0
  10. package/api/streams/caller/CallerStream.d.ts +13 -0
  11. package/api/streams/caller/CallerStream.js +85 -0
  12. package/api/streams/caller/CallerStreamAbstract.d.ts +28 -0
  13. package/api/streams/caller/CallerStreamAbstract.js +99 -0
  14. package/api/streams/caller/CallerStreamNode.d.ts +13 -0
  15. package/api/streams/caller/CallerStreamNode.js +128 -0
  16. package/api/streams/command/CommandStream.d.ts +12 -0
  17. package/api/streams/command/CommandStream.js +68 -0
  18. package/api/streams/command/CommandStreamAbstract.d.ts +24 -0
  19. package/api/streams/command/CommandStreamAbstract.js +72 -0
  20. package/api/streams/command/CommandStreamNode.d.ts +12 -0
  21. package/api/streams/command/CommandStreamNode.js +93 -0
  22. package/api/streams/control/ControlStream.d.ts +14 -0
  23. package/api/streams/control/ControlStream.js +81 -0
  24. package/api/streams/control/ControlStreamAbstract.d.ts +28 -0
  25. package/api/streams/control/ControlStreamAbstract.js +108 -0
  26. package/api/streams/control/ControlStreamNode.d.ts +14 -0
  27. package/api/streams/control/ControlStreamNode.js +98 -0
  28. package/api/streams/fileAccessor/FileAccessorStream.d.ts +10 -0
  29. package/api/streams/fileAccessor/FileAccessorStream.js +74 -0
  30. package/api/streams/fileAccessor/FileAccessorStreamAbstract.d.ts +26 -0
  31. package/api/streams/fileAccessor/FileAccessorStreamAbstract.js +82 -0
  32. package/api/streams/fileAccessor/FileAccessorStreamNode.d.ts +10 -0
  33. package/api/streams/fileAccessor/FileAccessorStreamNode.js +96 -0
  34. package/api/streams/search/SearchStream.d.ts +16 -0
  35. package/api/streams/search/SearchStream.js +120 -0
  36. package/api/streams/search/SearchStreamAbstract.d.ts +30 -0
  37. package/api/streams/search/SearchStreamAbstract.js +74 -0
  38. package/api/streams/search/SearchStreamNode.d.ts +16 -0
  39. package/api/streams/search/SearchStreamNode.js +143 -0
  40. package/api/streams/telemetry/TelemetryStream.d.ts +17 -0
  41. package/api/streams/telemetry/TelemetryStream.js +126 -0
  42. package/api/streams/telemetry/TelemetryStreamAbstract.d.ts +62 -0
  43. package/api/streams/telemetry/TelemetryStreamAbstract.js +421 -0
  44. package/api/streams/telemetry/TelemetryStreamNode.d.ts +21 -0
  45. package/api/streams/telemetry/TelemetryStreamNode.js +195 -0
  46. package/api/streams/webRTCSignalling/WebRTCSignallingStream.d.ts +44 -0
  47. package/api/streams/webRTCSignalling/WebRTCSignallingStream.js +67 -0
  48. package/api/streams/webRTCSignalling/WebRTCSignallingStreamAbstract.d.ts +32 -0
  49. package/api/streams/webRTCSignalling/WebRTCSignallingStreamAbstract.js +65 -0
  50. package/constants/api.d.ts +121 -0
  51. package/constants/api.js +126 -0
  52. package/constants/grpc.d.ts +5 -0
  53. package/constants/grpc.js +8 -0
  54. package/constants/identifier.d.ts +6 -0
  55. package/constants/identifier.js +9 -0
  56. package/constants/timezones.d.ts +2 -0
  57. package/constants/timezones.js +430 -0
  58. package/demo/angular/.editorconfig +16 -0
  59. package/demo/angular/.eslintignore +4 -0
  60. package/demo/angular/.eslintrc.json +50 -0
  61. package/demo/angular/README.md +36 -0
  62. package/demo/angular/angular.json +132 -0
  63. package/demo/angular/karma.conf.js +44 -0
  64. package/demo/angular/package.json +41 -0
  65. package/demo/angular/src/app/app.component.css +0 -0
  66. package/demo/angular/src/app/app.component.html +9 -0
  67. package/demo/angular/src/app/app.component.ts +10 -0
  68. package/demo/angular/src/app/app.module.ts +38 -0
  69. package/demo/angular/src/app/components/assets/assets.component.css +0 -0
  70. package/demo/angular/src/app/components/assets/assets.component.html +29 -0
  71. package/demo/angular/src/app/components/assets/assets.component.ts +107 -0
  72. package/demo/angular/src/app/components/auth/auth.component.css +0 -0
  73. package/demo/angular/src/app/components/auth/auth.component.html +27 -0
  74. package/demo/angular/src/app/components/auth/auth.component.ts +33 -0
  75. package/demo/angular/src/app/components/caller/caller.component.css +0 -0
  76. package/demo/angular/src/app/components/caller/caller.component.html +22 -0
  77. package/demo/angular/src/app/components/caller/caller.component.ts +61 -0
  78. package/demo/angular/src/app/components/command/command.component.css +0 -0
  79. package/demo/angular/src/app/components/command/command.component.html +22 -0
  80. package/demo/angular/src/app/components/command/command.component.ts +60 -0
  81. package/demo/angular/src/app/components/integrations/integrations.component.ts +43 -0
  82. package/demo/angular/src/app/components/robots/robots.component.css +0 -0
  83. package/demo/angular/src/app/components/robots/robots.component.html +13 -0
  84. package/demo/angular/src/app/components/robots/robots.component.ts +26 -0
  85. package/demo/angular/src/app/components/sdk/sdk.component.css +0 -0
  86. package/demo/angular/src/app/components/sdk/sdk.component.html +43 -0
  87. package/demo/angular/src/app/components/sdk/sdk.component.ts +50 -0
  88. package/demo/angular/src/app/components/subscription/subscription.component.css +0 -0
  89. package/demo/angular/src/app/components/subscription/subscription.component.html +6 -0
  90. package/demo/angular/src/app/components/subscription/subscription.component.ts +40 -0
  91. package/demo/angular/src/app/components/telemetry/telemetry.component.css +0 -0
  92. package/demo/angular/src/app/components/telemetry/telemetry.component.html +19 -0
  93. package/demo/angular/src/app/components/telemetry/telemetry.component.ts +61 -0
  94. package/demo/angular/src/app/components/token/token.component.css +0 -0
  95. package/demo/angular/src/app/components/token/token.component.html +10 -0
  96. package/demo/angular/src/app/components/token/token.component.ts +18 -0
  97. package/demo/angular/src/app/components/video/p2pvideo/index.ts +646 -0
  98. package/demo/angular/src/app/components/video/video-source.ts +315 -0
  99. package/demo/angular/src/app/components/video/video.component.css +6 -0
  100. package/demo/angular/src/app/components/video/video.component.html +54 -0
  101. package/demo/angular/src/app/components/video/video.component.ts +151 -0
  102. package/demo/angular/src/app/services/sdk.service.ts +193 -0
  103. package/demo/angular/src/assets/.gitkeep +0 -0
  104. package/demo/angular/src/assets/HKGrotesk-Bold.otf +0 -0
  105. package/demo/angular/src/assets/HKGrotesk-Regular.otf +0 -0
  106. package/demo/angular/src/assets/logo.svg +16 -0
  107. package/demo/angular/src/environments/environment.prod.ts +3 -0
  108. package/demo/angular/src/environments/environment.ts +16 -0
  109. package/demo/angular/src/favicon.ico +0 -0
  110. package/demo/angular/src/index.html +15 -0
  111. package/demo/angular/src/main.ts +7 -0
  112. package/demo/angular/src/polyfills.ts +53 -0
  113. package/demo/angular/src/styles.css +198 -0
  114. package/demo/angular/tsconfig.app.json +15 -0
  115. package/demo/angular/tsconfig.json +39 -0
  116. package/demo/html/README.md +8 -0
  117. package/demo/html/assets/HKGrotesk-Bold.otf +0 -0
  118. package/demo/html/assets/HKGrotesk-Regular.otf +0 -0
  119. package/demo/html/assets/logo.svg +16 -0
  120. package/demo/html/favicon.ico +0 -0
  121. package/demo/html/index.html +416 -0
  122. package/demo/html/rocos-js-sdk.js +3 -0
  123. package/demo/html/rocos-js-sdk.js.LICENSE.txt +8 -0
  124. package/demo/html/rocos-js-sdk.js.map +1 -0
  125. package/demo/html/styles.css +190 -0
  126. package/demo/node/README.md +17 -0
  127. package/demo/node/index.js +134 -0
  128. package/demo/node/package.json +8 -0
  129. package/demo/react/.env +1 -0
  130. package/demo/react/.env.dist +1 -0
  131. package/demo/react/.eslintrc.json +46 -0
  132. package/demo/react/README.md +65 -0
  133. package/demo/react/package.json +60 -0
  134. package/demo/react/public/favicon.ico +0 -0
  135. package/demo/react/public/index.html +43 -0
  136. package/demo/react/public/logo192.png +0 -0
  137. package/demo/react/public/logo512.png +0 -0
  138. package/demo/react/public/manifest.json +25 -0
  139. package/demo/react/public/robots.txt +3 -0
  140. package/demo/react/src/App.css +190 -0
  141. package/demo/react/src/App.tsx +31 -0
  142. package/demo/react/src/actions/index.ts +8 -0
  143. package/demo/react/src/actions/sdkActions.ts +62 -0
  144. package/demo/react/src/assets/HKGrotesk-Bold.otf +0 -0
  145. package/demo/react/src/assets/HKGrotesk-Regular.otf +0 -0
  146. package/demo/react/src/assets/logo.svg +16 -0
  147. package/demo/react/src/components/AuthForm.tsx +76 -0
  148. package/demo/react/src/components/CallerBox.tsx +53 -0
  149. package/demo/react/src/components/CallerForm.tsx +98 -0
  150. package/demo/react/src/components/CommandBox.tsx +47 -0
  151. package/demo/react/src/components/CommandForm.tsx +98 -0
  152. package/demo/react/src/components/RobotsForm.tsx +51 -0
  153. package/demo/react/src/components/SubscriptionBox.tsx +55 -0
  154. package/demo/react/src/components/TelemetryForm.tsx +98 -0
  155. package/demo/react/src/components/TokenForm.tsx +39 -0
  156. package/demo/react/src/config.json +14 -0
  157. package/demo/react/src/controllers/RocosSDKController.ts +48 -0
  158. package/demo/react/src/helpers/deepEqual.ts +27 -0
  159. package/demo/react/src/hooks/useInput.ts +29 -0
  160. package/demo/react/src/index.css +11 -0
  161. package/demo/react/src/index.tsx +26 -0
  162. package/demo/react/src/react-app-env.d.ts +1 -0
  163. package/demo/react/src/reducers/sdkReducer.ts +133 -0
  164. package/demo/react/src/reportWebVitals.ts +15 -0
  165. package/demo/react/src/selectors/sdkSelector.ts +11 -0
  166. package/demo/react/src/setupTests.ts +5 -0
  167. package/demo/react/src/store.ts +14 -0
  168. package/demo/react/tsconfig.json +26 -0
  169. package/demo/sdk-sizer/dist/sdk-sizer/3rdpartylicenses.txt +975 -0
  170. package/demo/sdk-sizer/dist/sdk-sizer/favicon.ico +0 -0
  171. package/demo/sdk-sizer/dist/sdk-sizer/index.html +12 -0
  172. package/demo/sdk-sizer/dist/sdk-sizer/main.c9183649ce1856ef.js +2 -0
  173. package/demo/sdk-sizer/dist/sdk-sizer/main.c9183649ce1856ef.js.map +1 -0
  174. package/demo/sdk-sizer/dist/sdk-sizer/polyfills.701c8e5d007909aa.js +2 -0
  175. package/demo/sdk-sizer/dist/sdk-sizer/polyfills.701c8e5d007909aa.js.map +1 -0
  176. package/demo/sdk-sizer/dist/sdk-sizer/runtime.00e20e689f5284a8.js +2 -0
  177. package/demo/sdk-sizer/dist/sdk-sizer/runtime.00e20e689f5284a8.js.map +1 -0
  178. package/demo/sdk-sizer/dist/sdk-sizer/stats.json +1 -0
  179. package/demo/sdk-sizer/dist/sdk-sizer/styles.b45f7e627ac8cbce.css +2 -0
  180. package/demo/sdk-sizer/dist/sdk-sizer/styles.b45f7e627ac8cbce.css.map +1 -0
  181. package/grpc/file-accessor/filagree_grpc_pb.d.ts +41 -0
  182. package/grpc/file-accessor/filagree_grpc_pb.js +121 -0
  183. package/grpc/file-accessor/filagree_pb.d.ts +339 -0
  184. package/grpc/file-accessor/filagree_pb.js +2261 -0
  185. package/grpc/file-accessor/filagree_pb_service.d.ts +115 -0
  186. package/grpc/file-accessor/filagree_pb_service.js +257 -0
  187. package/grpc/rambo/rambo.v1_grpc_pb.d.ts +39 -0
  188. package/grpc/rambo/rambo.v1_grpc_pb.js +73 -0
  189. package/grpc/rambo/rambo.v1_pb.d.ts +365 -0
  190. package/grpc/rambo/rambo.v1_pb.js +2469 -0
  191. package/grpc/rambo/rambo.v1_pb_service.d.ts +76 -0
  192. package/grpc/rambo/rambo.v1_pb_service.js +138 -0
  193. package/grpc/rambo/uri.v1_grpc_pb.d.ts +1 -0
  194. package/grpc/rambo/uri.v1_grpc_pb.js +1 -0
  195. package/grpc/rambo/uri.v1_pb.d.ts +80 -0
  196. package/grpc/rambo/uri.v1_pb.js +563 -0
  197. package/grpc/rambo/uri.v1_pb_service.d.ts +3 -0
  198. package/grpc/rambo/uri.v1_pb_service.js +3 -0
  199. package/grpc/robot-control/conker_grpc_pb.d.ts +46 -0
  200. package/grpc/robot-control/conker_grpc_pb.js +143 -0
  201. package/grpc/robot-control/conker_pb.d.ts +168 -0
  202. package/grpc/robot-control/conker_pb.js +1287 -0
  203. package/grpc/robot-control/conker_pb_service.d.ts +126 -0
  204. package/grpc/robot-control/conker_pb_service.js +301 -0
  205. package/grpc/serviette/common.v1_grpc_pb.d.ts +1 -0
  206. package/grpc/serviette/common.v1_grpc_pb.js +1 -0
  207. package/grpc/serviette/common.v1_pb.d.ts +8 -0
  208. package/grpc/serviette/common.v1_pb.js +45 -0
  209. package/grpc/serviette/common.v1_pb_service.d.ts +3 -0
  210. package/grpc/serviette/common.v1_pb_service.js +3 -0
  211. package/grpc/serviette/serviette.v1_grpc_pb.d.ts +137 -0
  212. package/grpc/serviette/serviette.v1_grpc_pb.js +331 -0
  213. package/grpc/serviette/serviette.v1_pb.d.ts +884 -0
  214. package/grpc/serviette/serviette.v1_pb.js +6363 -0
  215. package/grpc/serviette/serviette.v1_pb_service.d.ts +278 -0
  216. package/grpc/serviette/serviette.v1_pb_service.js +699 -0
  217. package/grpc/serviette/uri.v1_grpc_pb.d.ts +1 -0
  218. package/grpc/serviette/uri.v1_grpc_pb.js +1 -0
  219. package/grpc/serviette/uri.v1_pb.d.ts +102 -0
  220. package/grpc/serviette/uri.v1_pb.js +741 -0
  221. package/grpc/serviette/uri.v1_pb_service.d.ts +3 -0
  222. package/grpc/serviette/uri.v1_pb_service.js +3 -0
  223. package/grpc/slowlane/slowlane_grpc_pb.d.ts +38 -0
  224. package/grpc/slowlane/slowlane_grpc_pb.js +132 -0
  225. package/grpc/slowlane/slowlane_pb.d.ts +373 -0
  226. package/grpc/slowlane/slowlane_pb.js +2908 -0
  227. package/grpc/slowlane/slowlane_pb_service.d.ts +112 -0
  228. package/grpc/slowlane/slowlane_pb_service.js +189 -0
  229. package/grpc/teletubby/teletubby_grpc_pb.d.ts +73 -0
  230. package/grpc/teletubby/teletubby_grpc_pb.js +231 -0
  231. package/grpc/teletubby/teletubby_pb.d.ts +647 -0
  232. package/grpc/teletubby/teletubby_pb.js +4786 -0
  233. package/grpc/teletubby/teletubby_pb_service.d.ts +193 -0
  234. package/grpc/teletubby/teletubby_pb_service.js +436 -0
  235. package/grpc/video/pigeon_grpc_pb.d.ts +59 -0
  236. package/grpc/video/pigeon_grpc_pb.js +180 -0
  237. package/grpc/video/pigeon_pb.d.ts +237 -0
  238. package/grpc/video/pigeon_pb.js +1775 -0
  239. package/grpc/video/pigeon_pb_service.d.ts +152 -0
  240. package/grpc/video/pigeon_pb_service.js +292 -0
  241. package/helpers/arrayRemove.d.ts +1 -0
  242. package/helpers/arrayRemove.js +7 -0
  243. package/helpers/arrayUnique.d.ts +1 -0
  244. package/helpers/arrayUnique.js +7 -0
  245. package/helpers/average.d.ts +1 -0
  246. package/helpers/average.js +11 -0
  247. package/helpers/cleanObject.d.ts +1 -0
  248. package/helpers/cleanObject.js +20 -0
  249. package/helpers/enviroment.d.ts +8 -0
  250. package/helpers/enviroment.js +20 -0
  251. package/helpers/flattenCallsignsLookup.d.ts +2 -0
  252. package/helpers/flattenCallsignsLookup.js +10 -0
  253. package/helpers/flattenObject.d.ts +1 -0
  254. package/helpers/flattenObject.js +17 -0
  255. package/helpers/formatServiceUrl.d.ts +1 -0
  256. package/helpers/formatServiceUrl.js +11 -0
  257. package/helpers/generateUUID.d.ts +1 -0
  258. package/helpers/generateUUID.js +8 -0
  259. package/helpers/getSubscriptionsDifference.d.ts +10 -0
  260. package/helpers/getSubscriptionsDifference.js +39 -0
  261. package/helpers/getUniqueConfigKey.d.ts +7 -0
  262. package/helpers/getUniqueConfigKey.js +19 -0
  263. package/helpers/getUniqueId.d.ts +9 -0
  264. package/helpers/getUniqueId.js +15 -0
  265. package/helpers/getUnixTimeMs.d.ts +1 -0
  266. package/helpers/getUnixTimeMs.js +8 -0
  267. package/helpers/index.d.ts +3 -0
  268. package/helpers/index.js +15 -0
  269. package/helpers/nanosecondToMillisecond.d.ts +1 -0
  270. package/helpers/nanosecondToMillisecond.js +7 -0
  271. package/helpers/randomString.d.ts +1 -0
  272. package/helpers/randomString.js +7 -0
  273. package/helpers/standardDeviation.d.ts +1 -0
  274. package/helpers/standardDeviation.js +16 -0
  275. package/helpers/stringToUint8Array.d.ts +1 -0
  276. package/helpers/stringToUint8Array.js +14 -0
  277. package/helpers/uint8ArrayToString.d.ts +1 -0
  278. package/helpers/uint8ArrayToString.js +15 -0
  279. package/index.d.ts +7 -0
  280. package/index.js +19 -0
  281. package/logger/RocosLogger.d.ts +7 -0
  282. package/logger/RocosLogger.js +63 -0
  283. package/models/ExportDataQuery.d.ts +8 -0
  284. package/models/ExportDataQuery.js +17 -0
  285. package/models/ExternalProject.d.ts +6 -0
  286. package/models/ExternalProject.js +6 -0
  287. package/models/IBaseService.d.ts +3 -0
  288. package/models/IBaseService.js +2 -0
  289. package/models/IConfigGroup.d.ts +5 -0
  290. package/models/IConfigGroup.js +2 -0
  291. package/models/IDebugLevel.d.ts +2 -0
  292. package/models/IDebugLevel.js +2 -0
  293. package/models/IExportDataQuery.d.ts +9 -0
  294. package/models/IExportDataQuery.js +2 -0
  295. package/models/IFunctionConfig.d.ts +8 -0
  296. package/models/IFunctionConfig.js +2 -0
  297. package/models/IInvitation.d.ts +6 -0
  298. package/models/IInvitation.js +2 -0
  299. package/models/IInvitationExists.d.ts +4 -0
  300. package/models/IInvitationExists.js +2 -0
  301. package/models/IOperation.d.ts +6 -0
  302. package/models/IOperation.js +2 -0
  303. package/models/IPersonalAccessToken.d.ts +16 -0
  304. package/models/IPersonalAccessToken.js +2 -0
  305. package/models/IProject.d.ts +4 -0
  306. package/models/IProject.js +2 -0
  307. package/models/IProjectApplication.d.ts +6 -0
  308. package/models/IProjectApplication.js +2 -0
  309. package/models/IRobot.d.ts +17 -0
  310. package/models/IRobot.js +2 -0
  311. package/models/IRobotConfig.d.ts +8 -0
  312. package/models/IRobotConfig.js +2 -0
  313. package/models/IRobotPlugin.d.ts +3 -0
  314. package/models/IRobotPlugin.js +2 -0
  315. package/models/IRobotTemplate.d.ts +10 -0
  316. package/models/IRobotTemplate.js +2 -0
  317. package/models/IRocosSDKConfig.d.ts +25 -0
  318. package/models/IRocosSDKConfig.js +2 -0
  319. package/models/ISignupParams.d.ts +8 -0
  320. package/models/ISignupParams.js +2 -0
  321. package/models/ISource.d.ts +8 -0
  322. package/models/ISource.js +2 -0
  323. package/models/IStream.d.ts +9 -0
  324. package/models/IStream.js +2 -0
  325. package/models/IStreamConfig.d.ts +9 -0
  326. package/models/IStreamConfig.js +2 -0
  327. package/models/IStreamOptions.d.ts +7 -0
  328. package/models/IStreamOptions.js +2 -0
  329. package/models/IStreamSource.d.ts +8 -0
  330. package/models/IStreamSource.js +2 -0
  331. package/models/ISubscriberStatus.d.ts +5 -0
  332. package/models/ISubscriberStatus.js +2 -0
  333. package/models/ITelemetryStreamConfig.d.ts +7 -0
  334. package/models/ITelemetryStreamConfig.js +2 -0
  335. package/models/IToken.d.ts +5 -0
  336. package/models/IToken.js +2 -0
  337. package/models/IWidget.d.ts +25 -0
  338. package/models/IWidget.js +2 -0
  339. package/models/IWidgetLineGroup.d.ts +8 -0
  340. package/models/IWidgetLineGroup.js +2 -0
  341. package/models/ResponseLevelEnum.d.ts +6 -0
  342. package/models/ResponseLevelEnum.js +10 -0
  343. package/models/Robot.d.ts +19 -0
  344. package/models/Robot.js +12 -0
  345. package/models/RobotConfig.d.ts +10 -0
  346. package/models/RobotConfig.js +9 -0
  347. package/models/RobotPlugin.d.ts +5 -0
  348. package/models/RobotPlugin.js +9 -0
  349. package/models/RobotTemplate.d.ts +12 -0
  350. package/models/RobotTemplate.js +30 -0
  351. package/models/RocosError.d.ts +30 -0
  352. package/models/RocosError.js +43 -0
  353. package/models/ServiceEnum.d.ts +26 -0
  354. package/models/ServiceEnum.js +30 -0
  355. package/models/Stream.d.ts +10 -0
  356. package/models/Stream.js +15 -0
  357. package/models/StreamOptions.d.ts +9 -0
  358. package/models/StreamOptions.js +37 -0
  359. package/models/StreamSource.d.ts +10 -0
  360. package/models/StreamSource.js +15 -0
  361. package/models/SubscriberStatusEnum.d.ts +6 -0
  362. package/models/SubscriberStatusEnum.js +10 -0
  363. package/models/Token.d.ts +8 -0
  364. package/models/Token.js +15 -0
  365. package/models/Widget.d.ts +27 -0
  366. package/models/Widget.js +16 -0
  367. package/models/WidgetLineGroup.d.ts +10 -0
  368. package/models/WidgetLineGroup.js +9 -0
  369. package/models/asset-storage/AssetModelItem.d.ts +29 -0
  370. package/models/asset-storage/AssetModelItem.js +2 -0
  371. package/models/caller/IRocosCallerMessageChunk.d.ts +9 -0
  372. package/models/caller/IRocosCallerMessageChunk.js +2 -0
  373. package/models/caller/IRocosCallerMessageChunks.d.ts +5 -0
  374. package/models/caller/IRocosCallerMessageChunks.js +2 -0
  375. package/models/caller/IRocosCallerMessageHeartbeat.d.ts +2 -0
  376. package/models/caller/IRocosCallerMessageHeartbeat.js +2 -0
  377. package/models/caller/IRocosCallerMessageResponse.d.ts +9 -0
  378. package/models/caller/IRocosCallerMessageResponse.js +2 -0
  379. package/models/caller/IRocosCallerMessageResponseAck.d.ts +2 -0
  380. package/models/caller/IRocosCallerMessageResponseAck.js +2 -0
  381. package/models/caller/IRocosCallerMessageResponseResult.d.ts +2 -0
  382. package/models/caller/IRocosCallerMessageResponseResult.js +2 -0
  383. package/models/caller/IRocosCallerMessageResponseUid.d.ts +2 -0
  384. package/models/caller/IRocosCallerMessageResponseUid.js +2 -0
  385. package/models/caller/IRocosCallerMessageResponses.d.ts +5 -0
  386. package/models/caller/IRocosCallerMessageResponses.js +2 -0
  387. package/models/caller/RocosCallerResultStatus.d.ts +1 -0
  388. package/models/caller/RocosCallerResultStatus.js +5 -0
  389. package/models/callsigns/CallsignsEnums.d.ts +13 -0
  390. package/models/callsigns/CallsignsEnums.js +20 -0
  391. package/models/callsigns/CallsignsLookup.d.ts +8 -0
  392. package/models/callsigns/CallsignsLookup.js +33 -0
  393. package/models/callsigns/CallsignsQuery.d.ts +9 -0
  394. package/models/callsigns/CallsignsQuery.js +18 -0
  395. package/models/callsigns/CallsignsQueryPredicate.d.ts +9 -0
  396. package/models/callsigns/CallsignsQueryPredicate.js +19 -0
  397. package/models/command/IRocosCommandMessageHeartbeat.d.ts +2 -0
  398. package/models/command/IRocosCommandMessageHeartbeat.js +2 -0
  399. package/models/command/IRocosCommandMessageResponse.d.ts +2 -0
  400. package/models/command/IRocosCommandMessageResponse.js +2 -0
  401. package/models/command/RocosCommandResultStatus.d.ts +1 -0
  402. package/models/command/RocosCommandResultStatus.js +5 -0
  403. package/models/file/FileEnums.d.ts +30 -0
  404. package/models/file/FileEnums.js +36 -0
  405. package/models/index.d.ts +101 -0
  406. package/models/index.js +113 -0
  407. package/models/integrations/Overlay.d.ts +49 -0
  408. package/models/integrations/Overlay.js +2 -0
  409. package/models/integrations/Plan.d.ts +324 -0
  410. package/models/integrations/Plan.js +2 -0
  411. package/models/maps/Map.d.ts +12 -0
  412. package/models/maps/Map.js +2 -0
  413. package/models/message/IRocosCallerMessage.d.ts +8 -0
  414. package/models/message/IRocosCallerMessage.js +2 -0
  415. package/models/message/IRocosChangeMessage.d.ts +6 -0
  416. package/models/message/IRocosChangeMessage.js +2 -0
  417. package/models/message/IRocosCommandMessage.d.ts +6 -0
  418. package/models/message/IRocosCommandMessage.js +2 -0
  419. package/models/message/IRocosControlMessage.d.ts +7 -0
  420. package/models/message/IRocosControlMessage.js +2 -0
  421. package/models/message/IRocosOpResultMessage.d.ts +6 -0
  422. package/models/message/IRocosOpResultMessage.js +2 -0
  423. package/models/message/IRocosSearchMessage.d.ts +5 -0
  424. package/models/message/IRocosSearchMessage.js +2 -0
  425. package/models/message/IRocosSearchRowMessage.d.ts +9 -0
  426. package/models/message/IRocosSearchRowMessage.js +2 -0
  427. package/models/message/IRocosSearchStatusMessage.d.ts +4 -0
  428. package/models/message/IRocosSearchStatusMessage.js +2 -0
  429. package/models/message/IRocosTelemetryMessage.d.ts +18 -0
  430. package/models/message/IRocosTelemetryMessage.js +2 -0
  431. package/models/message/IStreamStatusMessage.d.ts +5 -0
  432. package/models/message/IStreamStatusMessage.js +2 -0
  433. package/models/message/RocosCallerMessage.d.ts +12 -0
  434. package/models/message/RocosCallerMessage.js +23 -0
  435. package/models/message/RocosCommandMessage.d.ts +10 -0
  436. package/models/message/RocosCommandMessage.js +16 -0
  437. package/models/message/RocosControlMessage.d.ts +11 -0
  438. package/models/message/RocosControlMessage.js +18 -0
  439. package/models/message/RocosOpResultMessage.d.ts +9 -0
  440. package/models/message/RocosOpResultMessage.js +22 -0
  441. package/models/message/RocosSearchMessage.d.ts +9 -0
  442. package/models/message/RocosSearchMessage.js +28 -0
  443. package/models/message/RocosSearchRowMessage.d.ts +13 -0
  444. package/models/message/RocosSearchRowMessage.js +20 -0
  445. package/models/message/RocosTelemetryMessage.d.ts +24 -0
  446. package/models/message/RocosTelemetryMessage.js +105 -0
  447. package/models/params/ICallerParams.d.ts +15 -0
  448. package/models/params/ICallerParams.js +2 -0
  449. package/models/params/ICommandParams.d.ts +9 -0
  450. package/models/params/ICommandParams.js +2 -0
  451. package/models/params/IControlParams.d.ts +8 -0
  452. package/models/params/IControlParams.js +2 -0
  453. package/models/params/IFileAccessorParams.d.ts +11 -0
  454. package/models/params/IFileAccessorParams.js +2 -0
  455. package/models/params/ISearchParams.d.ts +10 -0
  456. package/models/params/ISearchParams.js +2 -0
  457. package/models/params/ITelemetryParams.d.ts +18 -0
  458. package/models/params/ITelemetryParams.js +2 -0
  459. package/models/params/IWebRTCSignallingParams.d.ts +21 -0
  460. package/models/params/IWebRTCSignallingParams.js +2 -0
  461. package/models/projects/ProjectUser.d.ts +6 -0
  462. package/models/projects/ProjectUser.js +2 -0
  463. package/models/schedule/IScheduleAction.d.ts +13 -0
  464. package/models/schedule/IScheduleAction.js +9 -0
  465. package/models/schedule/IScheduleInfo.d.ts +11 -0
  466. package/models/schedule/IScheduleInfo.js +2 -0
  467. package/models/schedule/IScheduleJob.d.ts +12 -0
  468. package/models/schedule/IScheduleJob.js +2 -0
  469. package/models/search/SearchQueryFilter.d.ts +5 -0
  470. package/models/search/SearchQueryFilter.js +9 -0
  471. package/models/search/SearchStreamQuery.d.ts +15 -0
  472. package/models/search/SearchStreamQuery.js +10 -0
  473. package/models/stream/IBaseStream.d.ts +8 -0
  474. package/models/stream/IBaseStream.js +2 -0
  475. package/models/stream/ICallerStream.d.ts +8 -0
  476. package/models/stream/ICallerStream.js +2 -0
  477. package/models/stream/ICommandStream.d.ts +7 -0
  478. package/models/stream/ICommandStream.js +2 -0
  479. package/models/stream/IControlStream.d.ts +9 -0
  480. package/models/stream/IControlStream.js +2 -0
  481. package/models/stream/IFileAccessorStream.d.ts +10 -0
  482. package/models/stream/IFileAccessorStream.js +2 -0
  483. package/models/stream/ISearchStream.d.ts +11 -0
  484. package/models/stream/ISearchStream.js +2 -0
  485. package/models/stream/ITelemetryStream.d.ts +10 -0
  486. package/models/stream/ITelemetryStream.js +2 -0
  487. package/models/stream/IWebRTCSignallingStream.d.ts +41 -0
  488. package/models/stream/IWebRTCSignallingStream.js +7 -0
  489. package/models/types.d.ts +5 -0
  490. package/models/types.js +2 -0
  491. package/node/RocosSDKNode.d.ts +42 -0
  492. package/node/RocosSDKNode.js +148 -0
  493. package/node/index.d.ts +7 -0
  494. package/node/index.js +19 -0
  495. package/package.json +25 -6
  496. package/services/AssetStorageService.d.ts +92 -0
  497. package/services/AssetStorageService.js +153 -0
  498. package/services/AuthService.d.ts +61 -0
  499. package/services/AuthService.js +154 -0
  500. package/services/BaseServiceAbstract.d.ts +38 -0
  501. package/services/BaseServiceAbstract.js +103 -0
  502. package/services/CallerService.d.ts +22 -0
  503. package/services/CallerService.js +96 -0
  504. package/services/CallerServiceNode.d.ts +6 -0
  505. package/services/CallerServiceNode.js +11 -0
  506. package/services/CommandService.d.ts +21 -0
  507. package/services/CommandService.js +81 -0
  508. package/services/CommandServiceNode.d.ts +6 -0
  509. package/services/CommandServiceNode.js +11 -0
  510. package/services/ConfigGroupService.d.ts +89 -0
  511. package/services/ConfigGroupService.js +157 -0
  512. package/services/ControlService.d.ts +23 -0
  513. package/services/ControlService.js +100 -0
  514. package/services/ControlServiceNode.d.ts +6 -0
  515. package/services/ControlServiceNode.js +11 -0
  516. package/services/DashboardService.d.ts +97 -0
  517. package/services/DashboardService.js +146 -0
  518. package/services/EventService.d.ts +53 -0
  519. package/services/EventService.js +89 -0
  520. package/services/FileAccessorService.d.ts +25 -0
  521. package/services/FileAccessorService.js +85 -0
  522. package/services/FileAccessorServiceNode.d.ts +6 -0
  523. package/services/FileAccessorServiceNode.js +11 -0
  524. package/services/FunctionService.d.ts +68 -0
  525. package/services/FunctionService.js +103 -0
  526. package/services/IntegrationService.d.ts +48 -0
  527. package/services/IntegrationService.js +77 -0
  528. package/services/MapService.d.ts +96 -0
  529. package/services/MapService.js +119 -0
  530. package/services/PlatformTimeService.d.ts +35 -0
  531. package/services/PlatformTimeService.js +160 -0
  532. package/services/ProfileService.d.ts +244 -0
  533. package/services/ProfileService.js +366 -0
  534. package/services/ProjectService.d.ts +110 -0
  535. package/services/ProjectService.js +164 -0
  536. package/services/RobotService.d.ts +282 -0
  537. package/services/RobotService.js +467 -0
  538. package/services/ScheduleService.d.ts +22 -0
  539. package/services/ScheduleService.js +40 -0
  540. package/services/SearchService.d.ts +25 -0
  541. package/services/SearchService.js +93 -0
  542. package/services/SearchServiceNode.d.ts +6 -0
  543. package/services/SearchServiceNode.js +11 -0
  544. package/services/SpotProvisioningService.d.ts +14 -0
  545. package/services/SpotProvisioningService.js +43 -0
  546. package/services/SpotProvisioningServiceNode.d.ts +15 -0
  547. package/services/SpotProvisioningServiceNode.js +43 -0
  548. package/services/StreamService.d.ts +98 -0
  549. package/services/StreamService.js +146 -0
  550. package/services/TelemetryService.d.ts +43 -0
  551. package/services/TelemetryService.js +144 -0
  552. package/services/TelemetryServiceNode.d.ts +6 -0
  553. package/services/TelemetryServiceNode.js +11 -0
  554. package/services/TimeSyncerService.d.ts +13 -0
  555. package/services/TimeSyncerService.js +27 -0
  556. package/services/UserService.d.ts +200 -0
  557. package/services/UserService.js +319 -0
  558. package/services/WebRTCSignallingService.d.ts +22 -0
  559. package/services/WebRTCSignallingService.js +81 -0
  560. package/services/WorkflowService.d.ts +71 -0
  561. package/services/WorkflowService.js +122 -0
  562. package/services/index.d.ts +26 -0
  563. package/services/index.js +38 -0
  564. package/store/RocosStore.d.ts +31 -0
  565. package/store/RocosStore.js +53 -0
  566. package/utils/axisangle.d.ts +18 -0
  567. package/utils/axisangle.js +48 -0
  568. package/utils/eulerangles.d.ts +22 -0
  569. package/utils/eulerangles.js +133 -0
  570. package/utils/helperfunctions.d.ts +5 -0
  571. package/utils/helperfunctions.js +50 -0
  572. package/utils/localtransform.d.ts +17 -0
  573. package/utils/localtransform.js +50 -0
  574. package/utils/localtransformtree.d.ts +17 -0
  575. package/utils/localtransformtree.js +88 -0
  576. package/utils/misc.d.ts +17 -0
  577. package/utils/misc.js +23 -0
  578. package/utils/positionvector.d.ts +13 -0
  579. package/utils/positionvector.js +79 -0
  580. package/utils/quaternion.d.ts +20 -0
  581. package/utils/quaternion.js +62 -0
  582. package/utils/rotationmatrix.d.ts +23 -0
  583. package/utils/rotationmatrix.js +262 -0
  584. package/utils/transformationmatrix.d.ts +12 -0
  585. package/utils/transformationmatrix.js +123 -0
  586. package/utils/vector3.d.ts +11 -0
  587. package/utils/vector3.js +61 -0
@@ -0,0 +1,2 @@
1
+ (self.webpackChunksdk_sizer=self.webpackChunksdk_sizer||[]).push([[179],{614:(ce,Y,P)=>{"use strict";function E(e){return"function"==typeof e}function _(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const C=_(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function m(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class b{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const o of n)o.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(E(r))try{r()}catch(o){t=o instanceof C?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{M(o)}catch(s){t=t??[],s instanceof C?t=[...t,...s.errors]:t.push(s)}}if(t)throw new C(t)}}add(t){var n;if(t&&t!==this)if(this.closed)M(t);else{if(t instanceof b){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&m(n,t)}remove(t){const{_finalizers:n}=this;n&&m(n,t),t instanceof b&&t._removeParent(this)}}b.EMPTY=(()=>{const e=new b;return e.closed=!0,e})();const f=b.EMPTY;function g(e){return e instanceof b||e&&"closed"in e&&E(e.remove)&&E(e.add)&&E(e.unsubscribe)}function M(e){E(e)?e():e.unsubscribe()}const y={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},S={setTimeout(e,t,...n){const{delegate:r}=S;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=S;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function O(e){S.setTimeout(()=>{const{onUnhandledError:t}=y;if(!t)throw e;t(e)})}function v(){}const h=V("C",void 0,void 0);function V(e,t,n){return{kind:e,value:t,error:n}}let A=null;function x(e){if(y.useDeprecatedSynchronousErrorHandling){const t=!A;if(t&&(A={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=A;if(A=null,n)throw r}}else e()}class X extends b{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,g(t)&&t.add(this)):this.destination=ee}static create(t,n,r){return new H(t,n,r)}next(t){this.isStopped?j(function F(e){return V("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?j(function I(e){return V("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?j(h,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const _t=Function.prototype.bind;function Te(e,t){return _t.call(e,t)}class ze{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){U(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){U(r)}else U(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){U(n)}}}class H extends X{constructor(t,n,r){let i;if(super(),E(t)||!t)i={next:t??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&y.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&Te(t.next,o),error:t.error&&Te(t.error,o),complete:t.complete&&Te(t.complete,o)}):i=t}this.destination=new ze(i)}}function U(e){y.useDeprecatedSynchronousErrorHandling?function $(e){y.useDeprecatedSynchronousErrorHandling&&A&&(A.errorThrown=!0,A.error=e)}(e):O(e)}function j(e,t){const{onStoppedNotification:n}=y;n&&S.setTimeout(()=>n(e,t))}const ee={closed:!0,next:v,error:function D(e){throw e},complete:v},_e="function"==typeof Symbol&&Symbol.observable||"@@observable";function be(e){return e}function nt(e){return 0===e.length?be:1===e.length?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}let Oe=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,i){const o=function Ft(e){return e&&e instanceof X||function Je(e){return e&&E(e.next)&&E(e.error)&&E(e.complete)}(e)&&g(e)}(n)?n:new H(n,r,i);return x(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=at(r))((i,o)=>{const s=new H({next:a=>{try{n(a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[_e](){return this}pipe(...n){return nt(n)(this)}toPromise(n){return new(n=at(n))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function at(e){var t;return null!==(t=e??y.Promise)&&void 0!==t?t:Promise}const rt=_(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let We=(()=>{class e extends Oe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new Tr(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new rt}next(n){x(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){x(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){x(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:i,observers:o}=this;return r||i?f:(this.currentObservers=null,o.push(n),new b(()=>{this.currentObservers=null,m(o,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){const n=new Oe;return n.source=this,n}}return e.create=(t,n)=>new Tr(t,n),e})();class Tr extends We{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:f}}function oh(e){return E(e?.lift)}function ft(e){return t=>{if(oh(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function ht(e,t,n,r,i){return new k_(e,t,n,r,i)}class k_ extends X{constructor(t,n,r,i,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=i?function(a){try{i(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function De(e,t){return ft((n,r)=>{let i=0;n.subscribe(ht(r,o=>{r.next(e.call(t,o,i++))}))})}function ar(e){return this instanceof ar?(this.v=e,this):new ar(e)}function lh(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function rl(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,u){!function i(o,s,a,u){Promise.resolve(u).then(function(l){o({value:l,done:a})},s)}(a,u,(s=e[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const ch=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function dh(e){return E(e?.then)}function fh(e){return E(e[_e])}function hh(e){return Symbol.asyncIterator&&E(e?.[Symbol.asyncIterator])}function ph(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const gh=function rD(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function mh(e){return E(e?.[gh])}function yh(e){return function uh(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(e,t||[]),o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(p){r[p]&&(i[p]=function(w){return new Promise(function(T,R){o.push([p,w,T,R])>1||a(p,w)})})}function a(p,w){try{!function u(p){p.value instanceof ar?Promise.resolve(p.value.v).then(l,c):d(o[0][2],p)}(r[p](w))}catch(T){d(o[0][3],T)}}function l(p){a("next",p)}function c(p){a("throw",p)}function d(p,w){p(w),o.shift(),o.length&&a(o[0][0],o[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:i}=yield ar(n.read());if(i)return yield ar(void 0);yield yield ar(r)}}finally{n.releaseLock()}})}function vh(e){return E(e?.getReader)}function cn(e){if(e instanceof Oe)return e;if(null!=e){if(fh(e))return function iD(e){return new Oe(t=>{const n=e[_e]();if(E(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(ch(e))return function oD(e){return new Oe(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}(e);if(dh(e))return function sD(e){return new Oe(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,O)})}(e);if(hh(e))return bh(e);if(mh(e))return function aD(e){return new Oe(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(vh(e))return function uD(e){return bh(yh(e))}(e)}throw ph(e)}function bh(e){return new Oe(t=>{(function lD(e,t){var n,r,i,o;return function sh(e,t,n,r){return new(n||(n=Promise))(function(o,s){function a(c){try{l(r.next(c))}catch(d){s(d)}}function u(c){try{l(r.throw(c))}catch(d){s(d)}}function l(c){c.done?o(c.value):function i(o){return o instanceof n?o:new n(function(s){s(o)})}(c.value).then(a,u)}l((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=lh(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function Bn(e,t,n,r=0,i=!1){const o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function mt(e,t,n=1/0){return E(t)?mt((r,i)=>De((o,s)=>t(r,o,i,s))(cn(e(r,i))),n):("number"==typeof t&&(n=t),ft((r,i)=>function cD(e,t,n,r,i,o,s,a){const u=[];let l=0,c=0,d=!1;const p=()=>{d&&!u.length&&!l&&t.complete()},w=R=>l<r?T(R):u.push(R),T=R=>{o&&t.next(R),l++;let N=!1;cn(n(R,c++)).subscribe(ht(t,k=>{i?.(k),o?w(k):t.next(k)},()=>{N=!0},void 0,()=>{if(N)try{for(l--;u.length&&l<r;){const k=u.shift();s?Bn(t,s,()=>T(k)):T(k)}p()}catch(k){t.error(k)}}))};return e.subscribe(ht(t,w,()=>{d=!0,p()})),()=>{a?.()}}(r,i,e,n)))}function si(e=1/0){return mt(be,e)}const Cn=new Oe(e=>e.complete());function il(e){return e[e.length-1]}function mo(e){return function fD(e){return e&&E(e.schedule)}(il(e))?e.pop():void 0}function wh(e,t=0){return ft((n,r)=>{n.subscribe(ht(r,i=>Bn(r,e,()=>r.next(i),t),()=>Bn(r,e,()=>r.complete(),t),i=>Bn(r,e,()=>r.error(i),t)))})}function _h(e,t=0){return ft((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Dh(e,t){if(!e)throw new Error("Iterable cannot be null");return new Oe(n=>{Bn(n,t,()=>{const r=e[Symbol.asyncIterator]();Bn(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function ut(e,t){return t?function wD(e,t){if(null!=e){if(fh(e))return function gD(e,t){return cn(e).pipe(_h(t),wh(t))}(e,t);if(ch(e))return function yD(e,t){return new Oe(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(dh(e))return function mD(e,t){return cn(e).pipe(_h(t),wh(t))}(e,t);if(hh(e))return Dh(e,t);if(mh(e))return function vD(e,t){return new Oe(n=>{let r;return Bn(n,t,()=>{r=e[gh](),Bn(n,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){return void n.error(s)}o?n.complete():n.next(i)},0,!0)}),()=>E(r?.return)&&r.return()})}(e,t);if(vh(e))return function bD(e,t){return Dh(yh(e),t)}(e,t)}throw ph(e)}(e,t):cn(e)}function ol(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new H({next:()=>{r.unsubscribe(),e()}});return cn(t(...n)).subscribe(r)}function Fe(e){for(let t in e)if(e[t]===Fe)return t;throw Error("Could not find renamed property on target object.")}function Le(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Le).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function al(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const ED=Fe({__forward_ref__:Fe});function ul(e){return e.__forward_ref__=ul,e.toString=function(){return Le(this())},e}function re(e){return ll(e)?e():e}function ll(e){return"function"==typeof e&&e.hasOwnProperty(ED)&&e.__forward_ref__===ul}function cl(e){return e&&!!e.\u0275providers}class W extends Error{constructor(t,n){super($s(t,n)),this.code=t}}function $s(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}function de(e){return"string"==typeof e?e:null==e?"":String(e)}function zs(e,t){throw new W(-201,!1)}function en(e,t){null==e&&function Pe(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function le(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function lr(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ws(e){return Ch(e,qs)||Ch(e,Ih)}function Ch(e,t){return e.hasOwnProperty(t)?e[t]:null}function Sh(e){return e&&(e.hasOwnProperty(dl)||e.hasOwnProperty(AD))?e[dl]:null}const qs=Fe({\u0275prov:Fe}),dl=Fe({\u0275inj:Fe}),Ih=Fe({ngInjectableDef:Fe}),AD=Fe({ngInjectorDef:Fe});var ie=(()=>((ie=ie||{})[ie.Default=0]="Default",ie[ie.Host=1]="Host",ie[ie.Self=2]="Self",ie[ie.SkipSelf=4]="SkipSelf",ie[ie.Optional=8]="Optional",ie))();let fl;function tn(e){const t=fl;return fl=e,t}function Mh(e,t,n){const r=Ws(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&ie.Optional?null:void 0!==t?t:void zs(Le(e))}const Ue=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),yo={},hl="__NG_DI_FLAG__",Gs="ngTempTokenPath",xD="ngTokenPath",PD=/\n/gm,kD="\u0275",Th="__source";let vo;function ai(e){const t=vo;return vo=e,t}function FD(e,t=ie.Default){if(void 0===vo)throw new W(-203,!1);return null===vo?Mh(e,void 0,t):vo.get(e,t&ie.Optional?null:void 0,t)}function oe(e,t=ie.Default){return(function ND(){return fl}()||FD)(re(e),t)}function Ee(e,t=ie.Default){return oe(e,Js(t))}function Js(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function pl(e){const t=[];for(let n=0;n<e.length;n++){const r=re(e[n]);if(Array.isArray(r)){if(0===r.length)throw new W(900,!1);let i,o=ie.Default;for(let s=0;s<r.length;s++){const a=r[s],u=LD(a);"number"==typeof u?-1===u?i=a.token:o|=u:i=a}t.push(oe(i,o))}else t.push(oe(r))}return t}function bo(e,t){return e[hl]=t,e.prototype[hl]=t,e}function LD(e){return e[hl]}function Un(e){return{toString:e}.toString()}var Sn=(()=>((Sn=Sn||{})[Sn.OnPush=0]="OnPush",Sn[Sn.Default=1]="Default",Sn))(),In=(()=>{return(e=In||(In={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",In;var e})();const jn={},Ae=[],Zs=Fe({\u0275cmp:Fe}),gl=Fe({\u0275dir:Fe}),ml=Fe({\u0275pipe:Fe}),Rh=Fe({\u0275mod:Fe}),Vn=Fe({\u0275fac:Fe}),wo=Fe({__NG_ELEMENT_ID__:Fe});let jD=0;function yl(e){return Un(()=>{const t=Nh(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Sn.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,data:e.data||{},encapsulation:e.encapsulation||In.Emulated,id:"c"+jD++,styles:e.styles||Ae,_:null,schemas:e.schemas||null,tView:null};xh(n);const r=e.dependencies;return n.directiveDefs=Ys(r,!1),n.pipeDefs=Ys(r,!0),n})}function HD(e){return ke(e)||Dt(e)}function $D(e){return null!==e}function Or(e){return Un(()=>({type:e.type,bootstrap:e.bootstrap||Ae,declarations:e.declarations||Ae,imports:e.imports||Ae,exports:e.exports||Ae,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Ah(e,t){if(null==e)return jn;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}function Ot(e){return Un(()=>{const t=Nh(e);return xh(t),t})}function ke(e){return e[Zs]||null}function Dt(e){return e[gl]||null}function Bt(e){return e[ml]||null}function qt(e,t){const n=e[Rh]||null;if(!n&&!0===t)throw new Error(`Type ${Le(e)} does not have '\u0275mod' property.`);return n}function Nh(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,exportAs:e.exportAs||null,standalone:!0===e.standalone,selectors:e.selectors||Ae,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ah(e.inputs,t),outputs:Ah(e.outputs)}}function xh(e){e.features?.forEach(t=>t(e))}function Ys(e,t){if(!e)return null;const n=t?Bt:HD;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter($D)}const Hn=0,Z=1,ge=2,Ze=3,dn=4,Rr=5,Et=6,li=7,Qe=8,Qs=9,Xs=10,ye=11,vl=12,_o=13,Ph=14,ci=15,Ct=16,Do=17,di=18,Mn=19,Eo=20,kh=21,je=22,bl=1,Fh=2,Ks=7,ea=8,fi=9,Rt=10;function Gt(e){return Array.isArray(e)&&"object"==typeof e[bl]}function fn(e){return Array.isArray(e)&&!0===e[bl]}function wl(e){return 0!=(4&e.flags)}function Co(e){return e.componentOffset>-1}function ta(e){return 1==(1&e.flags)}function hn(e){return!!e.template}function WD(e){return 0!=(256&e[ge])}function Ar(e,t){return e.hasOwnProperty(Vn)?e[Vn]:null}class JD{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Nr(){return Uh}function Uh(e){return e.type.prototype.ngOnChanges&&(e.setInput=YD),ZD}function ZD(){const e=Vh(this),t=e?.current;if(t){const n=e.previous;if(n===jn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function YD(e,t,n,r){const i=this.declaredInputs[n],o=Vh(e)||function QD(e,t){return e[jh]=t}(e,{previous:jn,current:null}),s=o.current||(o.current={}),a=o.previous,u=a[i];s[i]=new JD(u&&u.currentValue,t,a===jn),e[r]=t}Nr.ngInherit=!0;const jh="__ngSimpleChanges__";function Vh(e){return e[jh]||null}const nn=function(e,t,n){},Hh="svg";function yt(e){for(;Array.isArray(e);)e=e[Hn];return e}function Jt(e,t){return yt(t[e.index])}function zh(e,t){return e.data[t]}function Ut(e,t){const n=t[e];return Gt(n)?n:n[Hn]}function ra(e){return 64==(64&e[ge])}function cr(e,t){return null==t?null:e[t]}function Wh(e){e[di]=0}function Dl(e,t){e[Rr]+=t;let n=e,r=e[Ze];for(;null!==r&&(1===t&&1===n[Rr]||-1===t&&0===n[Rr]);)r[Rr]+=t,n=r,r=r[Ze]}const fe={lFrame:tp(null),bindingsEnabled:!0};function Gh(){return fe.bindingsEnabled}function B(){return fe.lFrame.lView}function Ce(){return fe.lFrame.tView}function xr(e){return fe.lFrame.contextLView=e,e[Qe]}function Pr(e){return fe.lFrame.contextLView=null,e}function vt(){let e=Jh();for(;null!==e&&64===e.type;)e=e.parent;return e}function Jh(){return fe.lFrame.currentTNode}function Tn(e,t){const n=fe.lFrame;n.currentTNode=e,n.isParent=t}function El(){return fe.lFrame.isParent}function pi(){return fe.lFrame.bindingIndex++}function c1(e,t){const n=fe.lFrame;n.bindingIndex=n.bindingRootIndex=e,Sl(t)}function Sl(e){fe.lFrame.currentDirectiveIndex=e}function Ml(e){fe.lFrame.currentQueryIndex=e}function f1(e){const t=e[Z];return 2===t.type?t.declTNode:1===t.type?e[Et]:null}function Kh(e,t,n){if(n&ie.SkipSelf){let i=t,o=e;for(;!(i=i.parent,null!==i||n&ie.Host||(i=f1(o),null===i||(o=o[ci],10&i.type))););if(null===i)return!1;t=i,e=o}const r=fe.lFrame=ep();return r.currentTNode=t,r.lView=e,!0}function Tl(e){const t=ep(),n=e[Z];fe.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function ep(){const e=fe.lFrame,t=null===e?null:e.child;return null===t?tp(e):t}function tp(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function np(){const e=fe.lFrame;return fe.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const rp=np;function Ol(){const e=np();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Nt(){return fe.lFrame.selectedIndex}function kr(e){fe.lFrame.selectedIndex=e}function Ve(){fe.lFrame.currentNamespace=Hh}function He(){!function m1(){fe.lFrame.currentNamespace=null}()}function ia(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const o=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:u,ngAfterViewChecked:l,ngOnDestroy:c}=o;s&&(e.contentHooks??(e.contentHooks=[])).push(-n,s),a&&((e.contentHooks??(e.contentHooks=[])).push(n,a),(e.contentCheckHooks??(e.contentCheckHooks=[])).push(n,a)),u&&(e.viewHooks??(e.viewHooks=[])).push(-n,u),l&&((e.viewHooks??(e.viewHooks=[])).push(n,l),(e.viewCheckHooks??(e.viewCheckHooks=[])).push(n,l)),null!=c&&(e.destroyHooks??(e.destroyHooks=[])).push(n,c)}}function oa(e,t,n){ip(e,t,3,n)}function sa(e,t,n,r){(3&e[ge])===n&&ip(e,t,n,r)}function Rl(e,t){let n=e[ge];(3&n)===t&&(n&=2047,n+=1,e[ge]=n)}function ip(e,t,n,r){const o=r??-1,s=t.length-1;let a=0;for(let u=void 0!==r?65535&e[di]:0;u<s;u++)if("number"==typeof t[u+1]){if(a=t[u],null!=r&&a>=r)break}else t[u]<0&&(e[di]+=65536),(a<o||-1==o)&&(b1(e,n,t,u),e[di]=(4294901760&e[di])+u+2),u++}function b1(e,t,n,r){const i=n[r]<0,o=n[r+1],a=e[i?-n[r]:n[r]];if(i){if(e[ge]>>11<e[di]>>16&&(3&e[ge])===t){e[ge]+=2048,nn(4,a,o);try{o.call(a)}finally{nn(5,a,o)}}}else{nn(4,a,o);try{o.call(a)}finally{nn(5,a,o)}}}const gi=-1;class Io{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Nl(e,t,n){let r=0;for(;r<n.length;){const i=n[r];if("number"==typeof i){if(0!==i)break;r++;const o=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,o)}else{const o=i,s=n[++r];sp(o)?e.setProperty(t,o,s):e.setAttribute(t,o,s),r++}}return r}function op(e){return 3===e||4===e||6===e}function sp(e){return 64===e.charCodeAt(0)}function Mo(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const i=t[r];"number"==typeof i?n=i:0===n||ap(e,n,i,null,-1===n||2===n?t[++r]:null)}}return e}function ap(e,t,n,r,i){let o=0,s=e.length;if(-1===t)s=-1;else for(;o<e.length;){const a=e[o++];if("number"==typeof a){if(a===t){s=-1;break}if(a>t){s=o-1;break}}}for(;o<e.length;){const a=e[o];if("number"==typeof a)break;if(a===n){if(null===r)return void(null!==i&&(e[o+1]=i));if(r===e[o+1])return void(e[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==s&&(e.splice(s,0,t),o=s+1),e.splice(o++,0,n),null!==r&&e.splice(o++,0,r),null!==i&&e.splice(o++,0,i)}function up(e){return e!==gi}function aa(e){return 32767&e}function ua(e,t){let n=function E1(e){return e>>16}(e),r=t;for(;n>0;)r=r[ci],n--;return r}let xl=!0;function la(e){const t=xl;return xl=e,t}const lp=255,cp=5;let C1=0;const On={};function ca(e,t){const n=dp(e,t);if(-1!==n)return n;const r=t[Z];r.firstCreatePass&&(e.injectorIndex=t.length,Pl(r.data,e),Pl(t,null),Pl(r.blueprint,null));const i=kl(e,t),o=e.injectorIndex;if(up(i)){const s=aa(i),a=ua(i,t),u=a[Z].data;for(let l=0;l<8;l++)t[o+l]=a[s+l]|u[s+l]}return t[o+8]=i,o}function Pl(e,t){e.push(0,0,0,0,0,0,0,0,t)}function dp(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function kl(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){if(r=bp(i),null===r)return gi;if(n++,i=i[ci],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return gi}function Fl(e,t,n){!function S1(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(wo)&&(r=n[wo]),null==r&&(r=n[wo]=C1++);const i=r&lp;t.data[e+(i>>cp)]|=1<<i}(e,t,n)}function fp(e,t,n){if(n&ie.Optional||void 0!==e)return e;zs()}function hp(e,t,n,r){if(n&ie.Optional&&void 0===r&&(r=null),!(n&(ie.Self|ie.Host))){const i=e[Qs],o=tn(void 0);try{return i?i.get(t,r,n&ie.Optional):Mh(t,r,n&ie.Optional)}finally{tn(o)}}return fp(r,0,n)}function pp(e,t,n,r=ie.Default,i){if(null!==e){if(1024&t[ge]){const s=function R1(e,t,n,r,i){let o=e,s=t;for(;null!==o&&null!==s&&1024&s[ge]&&!(256&s[ge]);){const a=gp(o,s,n,r|ie.Self,On);if(a!==On)return a;let u=o.parent;if(!u){const l=s[kh];if(l){const c=l.get(n,On,r);if(c!==On)return c}u=bp(s),s=s[ci]}o=u}return i}(e,t,n,r,On);if(s!==On)return s}const o=gp(e,t,n,r,On);if(o!==On)return o}return hp(t,n,r,i)}function gp(e,t,n,r,i){const o=function T1(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(wo)?e[wo]:void 0;return"number"==typeof t?t>=0?t&lp:O1:t}(n);if("function"==typeof o){if(!Kh(t,e,r))return r&ie.Host?fp(i,0,r):hp(t,n,r,i);try{const s=o(r);if(null!=s||r&ie.Optional)return s;zs()}finally{rp()}}else if("number"==typeof o){let s=null,a=dp(e,t),u=gi,l=r&ie.Host?t[Ct][Et]:null;for((-1===a||r&ie.SkipSelf)&&(u=-1===a?kl(e,t):t[a+8],u!==gi&&yp(r,!1)?(s=t[Z],a=aa(u),t=ua(u,t)):a=-1);-1!==a;){const c=t[Z];if(mp(o,a,c.data)){const d=M1(a,t,n,s,r,l);if(d!==On)return d}u=t[a+8],u!==gi&&yp(r,t[Z].data[a+8]===l)&&mp(o,a,t)?(s=c,a=aa(u),t=ua(u,t)):a=-1}}return i}function M1(e,t,n,r,i,o){const s=t[Z],a=s.data[e+8],c=function da(e,t,n,r,i){const o=e.providerIndexes,s=t.data,a=1048575&o,u=e.directiveStart,c=o>>20,p=i?a+c:e.directiveEnd;for(let w=r?a:a+c;w<p;w++){const T=s[w];if(w<u&&n===T||w>=u&&T.type===n)return w}if(i){const w=s[u];if(w&&hn(w)&&w.type===n)return u}return null}(a,s,n,null==r?Co(a)&&xl:r!=s&&0!=(3&a.type),i&ie.Host&&o===a);return null!==c?Fr(t,s,c,a):On}function Fr(e,t,n,r){let i=e[n];const o=t.data;if(function w1(e){return e instanceof Io}(i)){const s=i;s.resolving&&function CD(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new W(-200,`Circular dependency in DI detected for ${e}${n}`)}(function xe(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():de(e)}(o[n]));const a=la(s.canSeeViewProviders);s.resolving=!0;const u=s.injectImpl?tn(s.injectImpl):null;Kh(e,r,ie.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function v1(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const s=Uh(t);(n.preOrderHooks??(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks??(n.preOrderCheckHooks=[])).push(e,s)}i&&(n.preOrderHooks??(n.preOrderHooks=[])).push(0-e,i),o&&((n.preOrderHooks??(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks??(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{null!==u&&tn(u),la(a),s.resolving=!1,rp()}}return i}function mp(e,t,n){return!!(n[t+(e>>cp)]&1<<e)}function yp(e,t){return!(e&ie.Self||e&ie.Host&&t)}class mi{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return pp(this._tNode,this._lView,t,Js(r),n)}}function O1(){return new mi(vt(),B())}function Ll(e){return ll(e)?()=>{const t=Ll(re(e));return t&&t()}:Ar(e)}function bp(e){const t=e[Z],n=t.type;return 2===n?t.declTNode:1===n?e[Et]:null}const vi="__parameters__";function wi(e,t,n){return Un(()=>{const r=function Bl(e){return function(...n){if(e){const r=e(...n);for(const i in r)this[i]=r[i]}}}(t);function i(...o){if(this instanceof i)return r.apply(this,o),this;const s=new i(...o);return a.annotation=s,a;function a(u,l,c){const d=u.hasOwnProperty(vi)?u[vi]:Object.defineProperty(u,vi,{value:[]})[vi];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),u}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}class se{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=le({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Lr(e,t){e.forEach(n=>Array.isArray(n)?Lr(n,t):t(n))}function _p(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ha(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}const Ao=bo(wi("Optional"),8),No=bo(wi("SkipSelf"),4);var jt=(()=>((jt=jt||{})[jt.Important=1]="Important",jt[jt.DashCase=2]="DashCase",jt))();const ql=new Map;let nE=0;const Jl="__ngContext__";function St(e,t){Gt(t)?(e[Jl]=t[Eo],function iE(e){ql.set(e[Eo],e)}(t)):e[Jl]=t}let Zl;function Yl(e,t){return Zl(e,t)}function Fo(e){const t=e[Ze];return fn(t)?t[Ze]:t}function Ql(e){return Hp(e[_o])}function Xl(e){return Hp(e[dn])}function Hp(e){for(;null!==e&&!fn(e);)e=e[dn];return e}function Ei(e,t,n,r,i){if(null!=r){let o,s=!1;fn(r)?o=r:Gt(r)&&(s=!0,r=r[Hn]);const a=yt(r);0===e&&null!==n?null==i?Jp(t,n,a):Br(t,n,a,i||null,!0):1===e&&null!==n?Br(t,n,a,i||null,!0):2===e?function oc(e,t,n){const r=ya(e,t);r&&function CE(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=o&&function ME(e,t,n,r,i){const o=n[Ks];o!==yt(n)&&Ei(t,e,r,o,i);for(let a=Rt;a<n.length;a++){const u=n[a];Lo(u[Z],u,e,t,r,o)}}(t,e,o,n,i)}}function ec(e,t,n){return e.createElement(t,n)}function zp(e,t){const n=e[fi],r=n.indexOf(t),i=t[Ze];512&t[ge]&&(t[ge]&=-513,Dl(i,-1)),n.splice(r,1)}function tc(e,t){if(e.length<=Rt)return;const n=Rt+t,r=e[n];if(r){const i=r[Do];null!==i&&i!==e&&zp(i,r),t>0&&(e[n-1][dn]=r[dn]);const o=ha(e,Rt+t);!function mE(e,t){Lo(e,t,t[ye],2,null,null),t[Hn]=null,t[Et]=null}(r[Z],r);const s=o[Mn];null!==s&&s.detachView(o[Z]),r[Ze]=null,r[dn]=null,r[ge]&=-65}return r}function Wp(e,t){if(!(128&t[ge])){const n=t[ye];n.destroyNode&&Lo(e,t,n,3,null,null),function bE(e){let t=e[_o];if(!t)return nc(e[Z],e);for(;t;){let n=null;if(Gt(t))n=t[_o];else{const r=t[Rt];r&&(n=r)}if(!n){for(;t&&!t[dn]&&t!==e;)Gt(t)&&nc(t[Z],t),t=t[Ze];null===t&&(t=e),Gt(t)&&nc(t[Z],t),n=t&&t[dn]}t=n}}(t)}}function nc(e,t){if(!(128&t[ge])){t[ge]&=-65,t[ge]|=128,function EE(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const i=t[n[r]];if(!(i instanceof Io)){const o=n[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){const a=i[o[s]],u=o[s+1];nn(4,a,u);try{u.call(a)}finally{nn(5,a,u)}}else{nn(4,i,o);try{o.call(i)}finally{nn(5,i,o)}}}}}(e,t),function DE(e,t){const n=e.cleanup,r=t[li];let i=-1;if(null!==n)for(let o=0;o<n.length-1;o+=2)if("string"==typeof n[o]){const s=n[o+3];s>=0?r[i=s]():r[i=-s].unsubscribe(),o+=2}else{const s=r[i=n[o+1]];n[o].call(s)}if(null!==r){for(let o=i+1;o<r.length;o++)(0,r[o])();t[li]=null}}(e,t),1===t[Z].type&&t[ye].destroy();const n=t[Do];if(null!==n&&fn(t[Ze])){n!==t[Ze]&&zp(n,t);const r=t[Mn];null!==r&&r.detachView(e)}!function oE(e){ql.delete(e[Eo])}(t)}}function qp(e,t,n){return function Gp(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[Hn];{const{componentOffset:i}=r;if(i>-1){const{encapsulation:o}=e.data[r.directiveStart+i];if(o===In.None||o===In.Emulated)return null}return Jt(r,n)}}(e,t.parent,n)}function Br(e,t,n,r,i){e.insertBefore(t,n,r,i)}function Jp(e,t,n){e.appendChild(t,n)}function Zp(e,t,n,r,i){null!==r?Br(e,t,n,r,i):Jp(e,t,n)}function ya(e,t){return e.parentNode(t)}let rc,uc,Xp=function Qp(e,t,n){return 40&e.type?Jt(e,n):null};function va(e,t,n,r){const i=qp(e,r,t),o=t[ye],a=function Yp(e,t,n){return Xp(e,t,n)}(r.parent||t[Et],r,t);if(null!=i)if(Array.isArray(n))for(let u=0;u<n.length;u++)Zp(o,i,n[u],a,!1);else Zp(o,i,n,a,!1);void 0!==rc&&rc(o,r,t,n,i)}function ba(e,t){if(null!==t){const n=t.type;if(3&n)return Jt(t,e);if(4&n)return ic(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return ba(e,r);{const i=e[t.index];return fn(i)?ic(-1,i):yt(i)}}if(32&n)return Yl(t,e)()||yt(e[t.index]);{const r=eg(e,t);return null!==r?Array.isArray(r)?r[0]:ba(Fo(e[Ct]),r):ba(e,t.next)}}return null}function eg(e,t){return null!==t?e[Ct][Et].projection[t.projection]:null}function ic(e,t){const n=Rt+e+1;if(n<t.length){const r=t[n],i=r[Z].firstChild;if(null!==i)return ba(r,i)}return t[Ks]}function sc(e,t,n,r,i,o,s){for(;null!=n;){const a=r[n.index],u=n.type;if(s&&0===t&&(a&&St(yt(a),r),n.flags|=2),32!=(32&n.flags))if(8&u)sc(e,t,n.child,r,i,o,!1),Ei(t,e,i,a,o);else if(32&u){const l=Yl(n,r);let c;for(;c=l();)Ei(t,e,i,c,o);Ei(t,e,i,a,o)}else 16&u?tg(e,t,r,n,i,o):Ei(t,e,i,a,o);n=s?n.projectionNext:n.next}}function Lo(e,t,n,r,i,o){sc(n,r,e.firstChild,t,i,o,!1)}function tg(e,t,n,r,i,o){const s=n[Ct],u=s[Et].projection[r.projection];if(Array.isArray(u))for(let l=0;l<u.length;l++)Ei(t,e,i,u[l],o);else sc(e,t,u,s[Ze],i,o,!0)}function ng(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function rg(e,t,n){const{mergedAttrs:r,classes:i,styles:o}=n;null!==r&&Nl(e,t,r),null!==i&&ng(e,t,i),null!==o&&function OE(e,t,n){e.setAttribute(t,"style",n)}(e,t,o)}const Ea=new se("ENVIRONMENT_INITIALIZER"),vg=new se("INJECTOR",-1),bg=new se("INJECTOR_DEF_TYPES");class wg{get(t,n=yo){if(n===yo){const r=new Error(`NullInjectorError: No provider for ${Le(t)}!`);throw r.name="NullInjectorError",r}return n}}function nC(...e){return{\u0275providers:_g(0,e),\u0275fromNgModule:!0}}function _g(e,...t){const n=[],r=new Set;let i;return Lr(t,o=>{const s=o;pc(s,n,[],r)&&(i||(i=[]),i.push(s))}),void 0!==i&&Dg(i,n),n}function Dg(e,t){for(let n=0;n<e.length;n++){const{providers:i}=e[n];gc(i,o=>{t.push(o)})}}function pc(e,t,n,r){if(!(e=re(e)))return!1;let i=null,o=Sh(e);const s=!o&&ke(e);if(o||s){if(s&&!s.standalone)return!1;i=e}else{const u=e.ngModule;if(o=Sh(u),!o)return!1;i=u}const a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){const u="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const l of u)pc(l,t,n,r)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let l;r.add(i);try{Lr(o.imports,c=>{pc(c,t,n,r)&&(l||(l=[]),l.push(c))})}finally{}void 0!==l&&Dg(l,t)}if(!a){const l=Ar(i)||(()=>new i);t.push({provide:i,useFactory:l,deps:Ae},{provide:bg,useValue:i,multi:!0},{provide:Ea,useValue:()=>oe(i),multi:!0})}const u=o.providers;null==u||a||gc(u,c=>{t.push(c)})}}return i!==e&&void 0!==e.providers}function gc(e,t){for(let n of e)cl(n)&&(n=n.\u0275providers),Array.isArray(n)?gc(n,t):t(n)}const rC=Fe({provide:String,useValue:Fe});function mc(e){return null!==e&&"object"==typeof e&&rC in e}function Ur(e){return"function"==typeof e}const yc=new se("Set Injector scope."),Ca={},oC={};let vc;function Sa(){return void 0===vc&&(vc=new wg),vc}class qn{}class Sg extends qn{get destroyed(){return this._destroyed}constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,wc(t,s=>this.processProvider(s)),this.records.set(vg,Si(void 0,this)),i.has("environment")&&this.records.set(qn,Si(void 0,this));const o=this.records.get(yc);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(bg.multi,Ae,ie.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const n=ai(this),r=tn(void 0);try{return t()}finally{ai(n),tn(r)}}get(t,n=yo,r=ie.Default){this.assertNotDestroyed(),r=Js(r);const i=ai(this),o=tn(void 0);try{if(!(r&ie.SkipSelf)){let a=this.records.get(t);if(void 0===a){const u=function cC(e){return"function"==typeof e||"object"==typeof e&&e instanceof se}(t)&&Ws(t);a=u&&this.injectableDefInScope(u)?Si(bc(t),Ca):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&ie.Self?Sa():this.parent).get(t,n=r&ie.Optional&&n===yo?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[Gs]=s[Gs]||[]).unshift(Le(t)),i)throw s;return function BD(e,t,n,r){const i=e[Gs];throw t[Th]&&i.unshift(t[Th]),e.message=function UD(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==kD?e.slice(2):e;let i=Le(t);if(Array.isArray(t))i=t.map(Le).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Le(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(PD,"\n ")}`}("\n"+e.message,i,n,r),e[xD]=i,e[Gs]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{tn(o),ai(i)}}resolveInjectorInitializers(){const t=ai(this),n=tn(void 0);try{const r=this.get(Ea.multi,Ae,ie.Self);for(const i of r)i()}finally{ai(t),tn(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(Le(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new W(205,!1)}processProvider(t){let n=Ur(t=re(t))?t:re(t&&t.provide);const r=function aC(e){return mc(e)?Si(void 0,e.useValue):Si(function Ig(e,t,n){let r;if(Ur(e)){const i=re(e);return Ar(i)||bc(i)}if(mc(e))r=()=>re(e.useValue);else if(function Cg(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...pl(e.deps||[]));else if(function Eg(e){return!(!e||!e.useExisting)}(e))r=()=>oe(re(e.useExisting));else{const i=re(e&&(e.useClass||e.provide));if(!function uC(e){return!!e.deps}(e))return Ar(i)||bc(i);r=()=>new i(...pl(e.deps))}return r}(e),Ca)}(t);if(Ur(t)||!0!==t.multi)this.records.get(n);else{let i=this.records.get(n);i||(i=Si(void 0,Ca,!0),i.factory=()=>pl(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===Ca&&(n.value=oC,n.value=n.factory()),"object"==typeof n.value&&n.value&&function lC(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=re(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}}function bc(e){const t=Ws(e),n=null!==t?t.factory:Ar(e);if(null!==n)return n;if(e instanceof se)throw new W(204,!1);if(e instanceof Function)return function sC(e){const t=e.length;if(t>0)throw function Ro(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}(t,"?"),new W(204,!1);const n=function RD(e){return e&&(e[qs]||e[Ih])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new W(204,!1)}function Si(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function wc(e,t){for(const n of e)Array.isArray(n)?wc(n,t):n&&cl(n)?wc(n.\u0275providers,t):t(n)}class dC{}class Mg{}class hC{resolveComponentFactory(t){throw function fC(e){const t=Error(`No component factory found for ${Le(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Vo=(()=>{class e{}return e.NULL=new hC,e})();function pC(){return Ii(vt(),B())}function Ii(e,t){return new fr(Jt(e,t))}let fr=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=pC,e})();class Og{}let yC=(()=>{class e{}return e.\u0275prov=le({token:e,providedIn:"root",factory:()=>null}),e})();class Ma{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const vC=new Ma("15.2.9"),_c={},Dc="ngOriginalError";function Ec(e){return e[Dc]}class Mi{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Ec(t);for(;n&&Ec(n);)n=Ec(n);return n||null}}function Gn(e){return e instanceof Function?e():e}function Ag(e,t,n){let r=e.length;for(;;){const i=e.indexOf(t,n);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){const o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}const Ng="ng-template";function OC(e,t,n){let r=0,i=!0;for(;r<e.length;){let o=e[r++];if("string"==typeof o&&i){const s=e[r++];if(n&&"class"===o&&-1!==Ag(s.toLowerCase(),t,0))return!0}else{if(1===o){for(;r<e.length&&"string"==typeof(o=e[r++]);)if(o.toLowerCase()===t)return!0;return!1}"number"==typeof o&&(i=!1)}}return!1}function xg(e){return 4===e.type&&e.value!==Ng}function RC(e,t,n){return t===(4!==e.type||n?e.value:Ng)}function AC(e,t,n){let r=4;const i=e.attrs||[],o=function PC(e){for(let t=0;t<e.length;t++)if(op(e[t]))return t;return e.length}(i);let s=!1;for(let a=0;a<t.length;a++){const u=t[a];if("number"!=typeof u){if(!s)if(4&r){if(r=2|1&r,""!==u&&!RC(e,u,n)||""===u&&1===t.length){if(pn(r))return!1;s=!0}}else{const l=8&r?u:t[++a];if(8&r&&null!==e.attrs){if(!OC(e.attrs,l,n)){if(pn(r))return!1;s=!0}continue}const d=NC(8&r?"class":u,i,xg(e),n);if(-1===d){if(pn(r))return!1;s=!0;continue}if(""!==l){let p;p=d>o?"":i[d+1].toLowerCase();const w=8&r?p:null;if(w&&-1!==Ag(w,l,0)||2&r&&l!==p){if(pn(r))return!1;s=!0}}}}else{if(!s&&!pn(r)&&!pn(u))return!1;if(s&&pn(u))continue;s=!1,r=u|1&r}}return pn(r)||s}function pn(e){return 0==(1&e)}function NC(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let o=!1;for(;i<t.length;){const s=t[i];if(s===e)return i;if(3===s||6===s)o=!0;else{if(1===s||2===s){let a=t[++i];for(;"string"==typeof a;)a=t[++i];continue}if(4===s)break;if(0===s){i+=4;continue}}i+=o?1:2}return-1}return function kC(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function Pg(e,t,n=!1){for(let r=0;r<t.length;r++)if(AC(e,t[r],n))return!0;return!1}function kg(e,t){return e?":not("+t.trim()+")":t}function LC(e){let t=e[0],n=1,r=2,i="",o=!1;for(;n<e.length;){let s=e[n];if("string"==typeof s)if(2&r){const a=e[++n];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!pn(s)&&(t+=kg(o,i),i=""),r=s,o=o||!pn(r);n++}return""!==i&&(t+=kg(o,i)),t}const he={};function hr(e){Fg(Ce(),B(),Nt()+e,!1)}function Fg(e,t,n,r){if(!r)if(3==(3&t[ge])){const o=e.preOrderCheckHooks;null!==o&&oa(t,o,n)}else{const o=e.preOrderHooks;null!==o&&sa(t,o,0,n)}kr(n)}function jg(e,t=null,n=null,r){const i=Vg(e,t,n,r);return i.resolveInjectorInitializers(),i}function Vg(e,t=null,n=null,r,i=new Set){const o=[n||Ae,nC(e)];return r=r||("object"==typeof e?void 0:Le(e)),new Sg(o,t||Sa(),r||null,i)}let Jn=(()=>{class e{static create(n,r){if(Array.isArray(n))return jg({name:""},r,n,"");{const i=n.name??"";return jg({name:i},n.parent,n.providers,i)}}}return e.THROW_IF_NOT_FOUND=yo,e.NULL=new wg,e.\u0275prov=le({token:e,providedIn:"any",factory:()=>oe(vg)}),e.__NG_ELEMENT_ID__=-1,e})();function ae(e,t=ie.Default){const n=B();return null===n?oe(e,t):pp(vt(),n,re(e),t)}function Zg(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const o=n[r+1];if(-1!==o){const s=e.data[o];Ml(n[r]),s.contentQueries(2,t[o],o)}}}function Oa(e,t,n,r,i,o,s,a,u,l,c){const d=t.blueprint.slice();return d[Hn]=i,d[ge]=76|r,(null!==c||e&&1024&e[ge])&&(d[ge]|=1024),Wh(d),d[Ze]=d[ci]=e,d[Qe]=n,d[Xs]=s||e&&e[Xs],d[ye]=a||e&&e[ye],d[vl]=u||e&&e[vl]||null,d[Qs]=l||e&&e[Qs]||null,d[Et]=o,d[Eo]=function rE(){return nE++}(),d[kh]=c,d[Ct]=2==t.type?e[Ct]:d,d}function Ri(e,t,n,r,i){let o=e.data[t];if(null===o)o=function Tc(e,t,n,r,i){const o=Jh(),s=El(),u=e.data[t]=function lS(e,t,n,r,i,o){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,n,t,r,i);return null===e.firstChild&&(e.firstChild=u),null!==o&&(s?null==o.child&&null!==u.parent&&(o.child=u):null===o.next&&(o.next=u,u.prev=o)),u}(e,t,n,r,i),function l1(){return fe.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=n,o.value=r,o.attrs=i;const s=function So(){const e=fe.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return Tn(o,!0),o}function Ho(e,t,n,r){if(0===n)return-1;const i=t.length;for(let o=0;o<n;o++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function Oc(e,t,n){Tl(t);try{const r=e.viewQuery;null!==r&&Bc(1,r,n);const i=e.template;null!==i&&Yg(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Zg(e,t),e.staticViewQueries&&Bc(2,e.viewQuery,n);const o=e.components;null!==o&&function sS(e,t){for(let n=0;n<t.length;n++)OS(e,t[n])}(t,o)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[ge]&=-5,Ol()}}function Ra(e,t,n,r){const i=t[ge];if(128!=(128&i)){Tl(t);try{Wh(t),function Yh(e){return fe.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&Yg(e,t,n,2,r);const s=3==(3&i);if(s){const l=e.preOrderCheckHooks;null!==l&&oa(t,l,null)}else{const l=e.preOrderHooks;null!==l&&sa(t,l,0,null),Rl(t,0)}if(function MS(e){for(let t=Ql(e);null!==t;t=Xl(t)){if(!t[Fh])continue;const n=t[fi];for(let r=0;r<n.length;r++){const i=n[r];512&i[ge]||Dl(i[Ze],1),i[ge]|=512}}}(t),function IS(e){for(let t=Ql(e);null!==t;t=Xl(t))for(let n=Rt;n<t.length;n++){const r=t[n],i=r[Z];ra(r)&&Ra(i,r,i.template,r[Qe])}}(t),null!==e.contentQueries&&Zg(e,t),s){const l=e.contentCheckHooks;null!==l&&oa(t,l)}else{const l=e.contentHooks;null!==l&&sa(t,l,1),Rl(t,1)}!function iS(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const i=n[r];if(i<0)kr(~i);else{const o=i,s=n[++r],a=n[++r];c1(s,o),a(2,t[o])}}}finally{kr(-1)}}(e,t);const a=e.components;null!==a&&function oS(e,t){for(let n=0;n<t.length;n++)TS(e,t[n])}(t,a);const u=e.viewQuery;if(null!==u&&Bc(2,u,r),s){const l=e.viewCheckHooks;null!==l&&oa(t,l)}else{const l=e.viewHooks;null!==l&&sa(t,l,2),Rl(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[ge]&=-41,512&t[ge]&&(t[ge]&=-513,Dl(t[Ze],-1))}finally{Ol()}}}function Yg(e,t,n,r,i){const o=Nt(),s=2&r;try{kr(-1),s&&t.length>je&&Fg(e,t,je,!1),nn(s?2:0,i),n(r,i)}finally{kr(o),nn(s?3:1,i)}}function Rc(e,t,n){if(wl(t)){const i=t.directiveEnd;for(let o=t.directiveStart;o<i;o++){const s=e.data[o];s.contentQueries&&s.contentQueries(1,n[o],o)}}}function Ac(e,t,n){Gh()&&(function mS(e,t,n,r){const i=n.directiveStart,o=n.directiveEnd;Co(n)&&function ES(e,t,n){const r=Jt(t,e),i=Qg(n),o=e[Xs],s=Aa(e,Oa(e,i,null,n.onPush?32:16,r,t,o,o.createRenderer(r,n),null,null,null));e[t.index]=s}(t,n,e.data[i+n.componentOffset]),e.firstCreatePass||ca(n,t),St(r,t);const s=n.initialInputs;for(let a=i;a<o;a++){const u=e.data[a],l=Fr(t,e,a,n);St(l,t),null!==s&&CS(0,a-i,l,u,0,s),hn(u)&&(Ut(n.index,t)[Qe]=Fr(t,e,a,n))}}(e,t,n,Jt(n,t)),64==(64&n.flags)&&nm(e,t,n))}function Nc(e,t,n=Jt){const r=t.localNames;if(null!==r){let i=t.index+1;for(let o=0;o<r.length;o+=2){const s=r[o+1],a=-1===s?n(t,e):e[s];e[i++]=a}}}function Qg(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=xc(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function xc(e,t,n,r,i,o,s,a,u,l){const c=je+r,d=c+i,p=function aS(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:he);return n}(c,d),w="function"==typeof l?l():l;return p[Z]={type:e,blueprint:p,template:n,queries:null,viewQuery:a,declTNode:t,data:p.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:u,consts:w,incompleteFirstPass:!1}}function Kg(e,t,n,r){for(let i in e)if(e.hasOwnProperty(i)){n=null===n?{}:n;const o=e[i];null===r?em(n,t,i,o):r.hasOwnProperty(i)&&em(n,t,r[i],o)}return n}function em(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function Pc(e,t,n,r){if(Gh()){const i=null===r?null:{"":-1},o=function vS(e,t){const n=e.directiveRegistry;let r=null,i=null;if(n)for(let o=0;o<n.length;o++){const s=n[o];if(Pg(t,s.selectors,!1))if(r||(r=[]),hn(s))if(null!==s.findHostDirectiveDefs){const a=[];i=i||new Map,s.findHostDirectiveDefs(s,a,i),r.unshift(...a,s),kc(e,t,a.length)}else r.unshift(s),kc(e,t,0);else i=i||new Map,s.findHostDirectiveDefs?.(s,r,i),r.push(s)}return null===r?null:[r,i]}(e,n);let s,a;null===o?s=a=null:[s,a]=o,null!==s&&tm(e,t,n,s,i,a),i&&function bS(e,t,n){if(t){const r=e.localNames=[];for(let i=0;i<t.length;i+=2){const o=n[t[i+1]];if(null==o)throw new W(-301,!1);r.push(t[i],o)}}}(n,r,i)}n.mergedAttrs=Mo(n.mergedAttrs,n.attrs)}function tm(e,t,n,r,i,o){for(let l=0;l<r.length;l++)Fl(ca(n,t),e,r[l].type);!function _S(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}(n,e.data.length,r.length);for(let l=0;l<r.length;l++){const c=r[l];c.providersResolver&&c.providersResolver(c)}let s=!1,a=!1,u=Ho(e,t,r.length,null);for(let l=0;l<r.length;l++){const c=r[l];n.mergedAttrs=Mo(n.mergedAttrs,c.hostAttrs),DS(e,n,t,u,c),wS(u,c,i),null!==c.contentQueries&&(n.flags|=4),(null!==c.hostBindings||null!==c.hostAttrs||0!==c.hostVars)&&(n.flags|=64);const d=c.type.prototype;!s&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((e.preOrderHooks??(e.preOrderHooks=[])).push(n.index),s=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((e.preOrderCheckHooks??(e.preOrderCheckHooks=[])).push(n.index),a=!0),u++}!function cS(e,t,n){const i=t.directiveEnd,o=e.data,s=t.attrs,a=[];let u=null,l=null;for(let c=t.directiveStart;c<i;c++){const d=o[c],p=n?n.get(d):null,T=p?p.outputs:null;u=Kg(d.inputs,c,u,p?p.inputs:null),l=Kg(d.outputs,c,l,T);const R=null===u||null===s||xg(t)?null:SS(u,c,s);a.push(R)}null!==u&&(u.hasOwnProperty("class")&&(t.flags|=8),u.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=a,t.inputs=u,t.outputs=l}(e,n,o)}function nm(e,t,n){const r=n.directiveStart,i=n.directiveEnd,o=n.index,s=function d1(){return fe.lFrame.currentDirectiveIndex}();try{kr(o);for(let a=r;a<i;a++){const u=e.data[a],l=t[a];Sl(a),(null!==u.hostBindings||0!==u.hostVars||null!==u.hostAttrs)&&yS(u,l)}}finally{kr(-1),Sl(s)}}function yS(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function kc(e,t,n){t.componentOffset=n,(e.components??(e.components=[])).push(t.index)}function wS(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;hn(t)&&(n[""]=e)}}function DS(e,t,n,r,i){e.data[r]=i;const o=i.factory||(i.factory=Ar(i.type)),s=new Io(o,hn(i),ae);e.blueprint[r]=s,n[r]=s,function pS(e,t,n,r,i){const o=i.hostBindings;if(o){let s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);const a=~t.index;(function gS(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,o)}}(e,t,r,Ho(e,n,i.hostVars,he),i)}function CS(e,t,n,r,i,o){const s=o[t];if(null!==s){const a=r.setInput;for(let u=0;u<s.length;){const l=s[u++],c=s[u++],d=s[u++];null!==a?r.setInput(n,d,l,c):n[c]=d}}}function SS(e,t,n){let r=null,i=0;for(;i<n.length;){const o=n[i];if(0!==o)if(5!==o){if("number"==typeof o)break;if(e.hasOwnProperty(o)){null===r&&(r=[]);const s=e[o];for(let a=0;a<s.length;a+=2)if(s[a]===t){r.push(o,s[a+1],n[i+1]);break}}i+=2}else i+=2;else i+=4}return r}function rm(e,t,n,r){return[e,!0,!1,t,null,0,r,n,null,null]}function TS(e,t){const n=Ut(t,e);if(ra(n)){const r=n[Z];48&n[ge]?Ra(r,n,r.template,n[Qe]):n[Rr]>0&&Lc(n)}}function Lc(e){for(let r=Ql(e);null!==r;r=Xl(r))for(let i=Rt;i<r.length;i++){const o=r[i];if(ra(o))if(512&o[ge]){const s=o[Z];Ra(s,o,s.template,o[Qe])}else o[Rr]>0&&Lc(o)}const n=e[Z].components;if(null!==n)for(let r=0;r<n.length;r++){const i=Ut(n[r],e);ra(i)&&i[Rr]>0&&Lc(i)}}function OS(e,t){const n=Ut(t,e),r=n[Z];(function RS(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(r,n),Oc(r,n,n[Qe])}function Aa(e,t){return e[_o]?e[Ph][dn]=t:e[_o]=t,e[Ph]=t,t}function Na(e){for(;e;){e[ge]|=32;const t=Fo(e);if(WD(e)&&!t)return e;e=t}return null}function xa(e,t,n,r=!0){const i=t[Xs];i.begin&&i.begin();try{Ra(e,t,e.template,n)}catch(s){throw r&&am(t,s),s}finally{i.end&&i.end()}}function Bc(e,t,n){Ml(0),t(e,n)}function im(e){return e[li]||(e[li]=[])}function om(e){return e.cleanup||(e.cleanup=[])}function am(e,t){const n=e[Qs],r=n?n.get(Mi,null):null;r&&r.handleError(t)}function Uc(e,t,n,r,i){for(let o=0;o<n.length;){const s=n[o++],a=n[o++],u=t[s],l=e.data[s];null!==l.setInput?l.setInput(u,i,r,a):u[a]=i}}function Zn(e,t,n){const r=function na(e,t){return yt(t[e])}(t,e);!function $p(e,t,n){e.setValue(t,n)}(e[ye],r,n)}function Pa(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(null!==t)for(let s=0;s<t.length;s++){const a=t[s];"number"==typeof a?o=a:1==o?i=al(i,a):2==o&&(r=al(r,a+": "+t[++s]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function ka(e,t,n,r,i=!1){for(;null!==n;){const o=t[n.index];if(null!==o&&r.push(yt(o)),fn(o))for(let a=Rt;a<o.length;a++){const u=o[a],l=u[Z].firstChild;null!==l&&ka(u[Z],u,l,r)}const s=n.type;if(8&s)ka(e,t,n.child,r);else if(32&s){const a=Yl(n,t);let u;for(;u=a();)r.push(u)}else if(16&s){const a=eg(t,n);if(Array.isArray(a))r.push(...a);else{const u=Fo(t[Ct]);ka(u[Z],u,a,r,!0)}}n=i?n.projectionNext:n.next}return r}class $o{get rootNodes(){const t=this._lView,n=t[Z];return ka(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Qe]}set context(t){this._lView[Qe]=t}get destroyed(){return 128==(128&this._lView[ge])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[Ze];if(fn(t)){const n=t[ea],r=n?n.indexOf(this):-1;r>-1&&(tc(t,r),ha(n,r))}this._attachedToViewContainer=!1}Wp(this._lView[Z],this._lView)}onDestroy(t){!function Xg(e,t,n,r){const i=im(t);null===n?i.push(r):(i.push(n),e.firstCreatePass&&om(e).push(r,i.length-1))}(this._lView[Z],this._lView,null,t)}markForCheck(){Na(this._cdRefInjectingView||this._lView)}detach(){this._lView[ge]&=-65}reattach(){this._lView[ge]|=64}detectChanges(){xa(this._lView[Z],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new W(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function vE(e,t){Lo(e,t,t[ye],2,null,null)}(this._lView[Z],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new W(902,!1);this._appRef=t}}class AS extends $o{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;xa(t[Z],t,t[Qe],!1)}checkNoChanges(){}get context(){return null}}class um extends Vo{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=ke(t);return new zo(n,this.ngModule)}}function lm(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class xS{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Js(r);const i=this.injector.get(t,_c,r);return i!==_c||n===_c?i:this.parentInjector.get(t,n,r)}}class zo extends Mg{get inputs(){return lm(this.componentDef.inputs)}get outputs(){return lm(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function BC(e){return e.map(LC).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,i){let o=(i=i||this.ngModule)instanceof qn?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new xS(t,o):t,a=s.get(Og,null);if(null===a)throw new W(407,!1);const u=s.get(yC,null),l=a.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=r?function uS(e,t,n){return e.selectRootElement(t,n===In.ShadowDom)}(l,r,this.componentDef.encapsulation):ec(l,c,function NS(e){const t=e.toLowerCase();return"svg"===t?Hh:"math"===t?"math":null}(c)),p=this.componentDef.onPush?288:272,w=xc(0,null,null,1,0,null,null,null,null,null),T=Oa(null,w,null,p,null,null,a,l,u,s,null);let R,N;Tl(T);try{const k=this.componentDef;let z,L=null;k.findHostDirectiveDefs?(z=[],L=new Map,k.findHostDirectiveDefs(k,z,L),z.push(k)):z=[k];const K=function kS(e,t){const n=e[Z],r=je;return e[r]=t,Ri(n,r,2,"#host",null)}(T,d),Ne=function FS(e,t,n,r,i,o,s,a){const u=i[Z];!function LS(e,t,n,r){for(const i of e)t.mergedAttrs=Mo(t.mergedAttrs,i.hostAttrs);null!==t.mergedAttrs&&(Pa(t,t.mergedAttrs,!0),null!==n&&rg(r,n,t))}(r,e,t,s);const l=o.createRenderer(t,n),c=Oa(i,Qg(n),null,n.onPush?32:16,i[e.index],e,o,l,a||null,null,null);return u.firstCreatePass&&kc(u,e,r.length-1),Aa(i,c),i[e.index]=c}(K,d,k,z,T,a,l);N=zh(w,je),d&&function US(e,t,n,r){if(r)Nl(e,n,["ng-version",vC.full]);else{const{attrs:i,classes:o}=function UC(e){const t=[],n=[];let r=1,i=2;for(;r<e.length;){let o=e[r];if("string"==typeof o)2===i?""!==o&&t.push(o,e[++r]):8===i&&n.push(o);else{if(!pn(i))break;i=o}r++}return{attrs:t,classes:n}}(t.selectors[0]);i&&Nl(e,n,i),o&&o.length>0&&ng(e,n,o.join(" "))}}(l,k,d,r),void 0!==n&&function jS(e,t,n){const r=e.projection=[];for(let i=0;i<t.length;i++){const o=n[i];r.push(null!=o?Array.from(o):null)}}(N,this.ngContentSelectors,n),R=function BS(e,t,n,r,i,o){const s=vt(),a=i[Z],u=Jt(s,i);tm(a,i,s,n,null,r);for(let c=0;c<n.length;c++)St(Fr(i,a,s.directiveStart+c,s),i);nm(a,i,s),u&&St(u,i);const l=Fr(i,a,s.directiveStart+s.componentOffset,s);if(e[Qe]=i[Qe]=l,null!==o)for(const c of o)c(l,t);return Rc(a,s,e),l}(Ne,k,z,L,T,[VS]),Oc(w,T,null)}finally{Ol()}return new PS(this.componentType,R,Ii(N,T),T,N)}}class PS extends dC{constructor(t,n,r,i,o){super(),this.location=r,this._rootLView=i,this._tNode=o,this.instance=n,this.hostView=this.changeDetectorRef=new AS(i),this.componentType=t}setInput(t,n){const r=this._tNode.inputs;let i;if(null!==r&&(i=r[t])){const o=this._rootLView;Uc(o[Z],o,i,t,n),Na(Ut(this._tNode.index,o))}}get injector(){return new mi(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function VS(){const e=vt();ia(B()[Z],e)}function It(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Vr(e,t,n,r,i,o,s,a){const u=B(),l=Ce(),c=e+je,d=l.firstCreatePass?function tI(e,t,n,r,i,o,s,a,u){const l=t.consts,c=Ri(t,e,4,s||null,cr(l,a));Pc(t,n,c,cr(l,u)),ia(t,c);const d=c.tView=xc(2,c,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l);return null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(c,l,u,t,n,r,i,o,s):l.data[c];Tn(d,!1);const p=u[ye].createComment("");va(l,u,p,d),St(p,u),Aa(u,u[c]=rm(p,u,p,d)),ta(d)&&Ac(l,u,d),null!=s&&Nc(u,d,a)}function pr(e){return function hi(e,t){return e[t]}(function u1(){return fe.lFrame.contextLView}(),je+e)}function gr(e,t,n){const r=B();return It(r,pi(),t)&&function Yt(e,t,n,r,i,o,s,a){const u=Jt(t,n);let c,l=t.inputs;!a&&null!=l&&(c=l[r])?(Uc(e,n,c,r,i),Co(t)&&function fS(e,t){const n=Ut(t,e);16&n[ge]||(n[ge]|=32)}(n,t.index)):3&t.type&&(r=function dS(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),i=null!=s?s(i,t.value||"",r):i,o.setProperty(u,r,i))}(Ce(),function qe(){const e=fe.lFrame;return zh(e.tView,e.selectedIndex)}(),r,e,t,r[ye],n,!1),gr}function $c(e,t,n,r,i){const s=i?"class":"style";Uc(e,n,t.inputs[s],s,r)}function q(e,t,n,r){const i=B(),o=Ce(),s=je+e,a=i[ye],u=o.firstCreatePass?function rI(e,t,n,r,i,o){const s=t.consts,u=Ri(t,e,2,r,cr(s,i));return Pc(t,n,u,cr(s,o)),null!==u.attrs&&Pa(u,u.attrs,!1),null!==u.mergedAttrs&&Pa(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(s,o,i,t,n,r):o.data[s],l=i[s]=ec(a,t,function y1(){return fe.lFrame.currentNamespace}()),c=ta(u);return Tn(u,!0),rg(a,l,u),32!=(32&u.flags)&&va(o,i,l,u),0===function r1(){return fe.lFrame.elementDepthCount}()&&St(l,i),function i1(){fe.lFrame.elementDepthCount++}(),c&&(Ac(o,i,u),Rc(o,u,i)),null!==r&&Nc(i,u),q}function Q(){let e=vt();El()?function Cl(){fe.lFrame.isParent=!1}():(e=e.parent,Tn(e,!1));const t=e;!function o1(){fe.lFrame.elementDepthCount--}();const n=Ce();return n.firstCreatePass&&(ia(n,e),wl(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function _1(e){return 0!=(8&e.flags)}(t)&&$c(n,t,B(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function D1(e){return 0!=(16&e.flags)}(t)&&$c(n,t,B(),t.stylesWithoutHost,!1),Q}function Se(e,t,n,r){return q(e,t,n,r),Q(),Se}function Ba(e){return!!e&&"function"==typeof e.then}const Mm=function Im(e){return!!e&&"function"==typeof e.subscribe};function Yn(e,t,n,r){const i=B(),o=Ce(),s=vt();return function Om(e,t,n,r,i,o,s){const a=ta(r),l=e.firstCreatePass&&om(e),c=t[Qe],d=im(t);let p=!0;if(3&r.type||s){const R=Jt(r,t),N=s?s(R):R,k=d.length,z=s?K=>s(yt(K[r.index])):r.index;let L=null;if(!s&&a&&(L=function oI(e,t,n,r){const i=e.cleanup;if(null!=i)for(let o=0;o<i.length-1;o+=2){const s=i[o];if(s===n&&i[o+1]===r){const a=t[li],u=i[o+2];return a.length>u?a[u]:null}"string"==typeof s&&(o+=2)}return null}(e,t,i,r.index)),null!==L)(L.__ngLastListenerFn__||L).__ngNextListenerFn__=o,L.__ngLastListenerFn__=o,p=!1;else{o=Am(r,t,c,o,!1);const K=n.listen(N,i,o);d.push(o,K),l&&l.push(i,z,k,k+1)}}else o=Am(r,t,c,o,!1);const w=r.outputs;let T;if(p&&null!==w&&(T=w[i])){const R=T.length;if(R)for(let N=0;N<R;N+=2){const Ne=t[T[N]][T[N+1]].subscribe(o),tt=d.length;d.push(o,Ne),l&&l.push(i,r.index,tt,-(tt+1))}}}(o,i,i[ye],s,e,t,r),Yn}function Rm(e,t,n,r){try{return nn(6,t,n),!1!==n(r)}catch(i){return am(e,i),!1}finally{nn(7,t,n)}}function Am(e,t,n,r,i){return function o(s){if(s===Function)return r;Na(e.componentOffset>-1?Ut(e.index,t):t);let u=Rm(t,n,r,s),l=o.__ngNextListenerFn__;for(;l;)u=Rm(t,n,l,s)&&u,l=l.__ngNextListenerFn__;return i&&!1===u&&(s.preventDefault(),s.returnValue=!1),u}}function Re(e,t=""){const n=B(),r=Ce(),i=e+je,o=r.firstCreatePass?Ri(r,i,1,t,null):r.data[i],s=n[i]=function Kl(e,t){return e.createText(t)}(n[ye],t);va(r,n,s,o),Tn(o,!1)}function Va(e,t,n){const r=B(),i=function Ni(e,t,n,r){return It(e,pi(),n)?t+de(n)+r:he}(r,e,t,n);return i!==he&&Zn(r,Nt(),i),Va}const Hi="en-US";let Cy=Hi;class $i{}class Yy{}class Qy extends $i{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new um(this);const r=qt(t);this._bootstrapComponents=Gn(r.bootstrap),this._r3Injector=Vg(t,n,[{provide:$i,useValue:this},{provide:Vo,useValue:this.componentFactoryResolver}],Le(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class rd extends Yy{constructor(t){super(),this.moduleType=t}create(t){return new Qy(this.moduleType,t)}}class XM extends $i{constructor(t,n,r){super(),this.componentFactoryResolver=new um(this),this.instance=null;const i=new Sg([...t,{provide:$i,useValue:this},{provide:Vo,useValue:this.componentFactoryResolver}],n||Sa(),r,new Set(["environment"]));this.injector=i,i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function qa(e,t,n=null){return new XM(e,t,n).injector}let KM=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n.id)){const r=_g(0,n.type),i=r.length>0?qa([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n.id,i)}return this.cachedInjectors.get(n.id)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=le({token:e,providedIn:"environment",factory:()=>new e(oe(qn))}),e})();function Xy(e){e.getStandaloneInjector=t=>t.get(KM).getOrCreateStandaloneInjector(e)}function od(e){return t=>{setTimeout(e,void 0,t)}}const Pt=class ST extends We{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let i=t,o=n||(()=>null),s=r;if(t&&"object"==typeof t){const u=t;i=u.next?.bind(u),o=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(o=od(o),i&&(i=od(i)),s&&(s=od(s)));const a=super.subscribe({next:i,error:o,complete:s});return t instanceof b&&t.add(a),a}};let Qn=(()=>{class e{}return e.__NG_ELEMENT_ID__=OT,e})();const MT=Qn,TT=class extends MT{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t,n){const r=this._declarationTContainer.tView,i=Oa(this._declarationLView,r,t,16,null,r.declTNode,null,null,null,null,n||null);i[Do]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[Mn];return null!==s&&(i[Mn]=s.createEmbeddedView(r)),Oc(r,i,t),new $o(i)}};function OT(){return function Ga(e,t){return 4&e.type?new TT(t,e,Ii(e,t)):null}(vt(),B())}let yn=(()=>{class e{}return e.__NG_ELEMENT_ID__=RT,e})();function RT(){return function fv(e,t){let n;const r=t[e.index];if(fn(r))n=r;else{let i;if(8&e.type)i=yt(r);else{const o=t[ye];i=o.createComment("");const s=Jt(e,t);Br(o,ya(o,s),i,function SE(e,t){return e.nextSibling(t)}(o,s),!1)}t[e.index]=n=rm(r,t,i,e),Aa(t,n)}return new cv(n,e,t)}(vt(),B())}const AT=yn,cv=class extends AT{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Ii(this._hostTNode,this._hostLView)}get injector(){return new mi(this._hostTNode,this._hostLView)}get parentInjector(){const t=kl(this._hostTNode,this._hostLView);if(up(t)){const n=ua(t,this._hostLView),r=aa(t);return new mi(n[Z].data[r+8],n)}return new mi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=dv(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Rt}createEmbeddedView(t,n,r){let i,o;"number"==typeof r?i=r:null!=r&&(i=r.index,o=r.injector);const s=t.createEmbeddedView(n||{},o);return this.insert(s,i),s}createComponent(t,n,r,i,o){const s=t&&!function Oo(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const d=n||{};a=d.index,r=d.injector,i=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const u=s?t:new zo(ke(t)),l=r||this.parentInjector;if(!o&&null==u.ngModule){const p=(s?l:this.parentInjector).get(qn,null);p&&(o=p)}const c=u.create(l,i,void 0,o);return this.insert(c.hostView,a),c}insert(t,n){const r=t._lView,i=r[Z];if(function n1(e){return fn(e[Ze])}(r)){const c=this.indexOf(t);if(-1!==c)this.detach(c);else{const d=r[Ze],p=new cv(d,d[Et],d[Ze]);p.detach(p.indexOf(t))}}const o=this._adjustIndex(n),s=this._lContainer;!function wE(e,t,n,r){const i=Rt+r,o=n.length;r>0&&(n[i-1][dn]=t),r<o-Rt?(t[dn]=n[i],_p(n,Rt+r,t)):(n.push(t),t[dn]=null),t[Ze]=n;const s=t[Do];null!==s&&n!==s&&function _E(e,t){const n=e[fi];t[Ct]!==t[Ze][Ze][Ct]&&(e[Fh]=!0),null===n?e[fi]=[t]:n.push(t)}(s,t);const a=t[Mn];null!==a&&a.insertView(e),t[ge]|=64}(i,r,s,o);const a=ic(o,s),u=r[ye],l=ya(u,s[Ks]);return null!==l&&function yE(e,t,n,r,i,o){r[Hn]=i,r[Et]=t,Lo(e,r,n,1,i,o)}(i,s[Et],u,r,l,a),t.attachToViewContainerRef(),_p(ad(s),o,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=dv(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=tc(this._lContainer,n);r&&(ha(ad(this._lContainer),n),Wp(r[Z],r))}detach(t){const n=this._adjustIndex(t,-1),r=tc(this._lContainer,n);return r&&null!=ha(ad(this._lContainer),n)?new $o(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function dv(e){return e[ea]}function ad(e){return e[ea]||(e[ea]=[])}function Za(...e){}const Ya=new se("Application Initializer");let Qa=(()=>{class e{constructor(n){this.appInits=n,this.resolve=Za,this.reject=Za,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i<this.appInits.length;i++){const o=this.appInits[i]();if(Ba(o))n.push(o);else if(Mm(o)){const s=new Promise((a,u)=>{o.subscribe({complete:a,error:u})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(oe(Ya,8))},e.\u0275prov=le({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ts=new se("AppId",{providedIn:"root",factory:function Bv(){return`${vd()}${vd()}${vd()}`}});function vd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Uv=new se("Platform Initializer"),jv=new se("Platform ID",{providedIn:"platform",factory:()=>"unknown"});let oO=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const Xn=new se("LocaleId",{providedIn:"root",factory:()=>Ee(Xn,ie.Optional|ie.SkipSelf)||function sO(){return typeof $localize<"u"&&$localize.locale||Hi}()});class uO{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let Vv=(()=>{class e{compileModuleSync(n){return new rd(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),o=Gn(qt(n).declarations).reduce((s,a)=>{const u=ke(a);return u&&s.push(new zo(u)),s},[]);return new uO(r,o)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const dO=(()=>Promise.resolve(0))();function bd(e){typeof Zone>"u"?dO.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Xe{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Pt(!1),this.onMicrotaskEmpty=new Pt(!1),this.onStable=new Pt(!1),this.onError=new Pt(!1),typeof Zone>"u")throw new W(908,!1);Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function fO(){let e=Ue.requestAnimationFrame,t=Ue.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function gO(e){const t=()=>{!function pO(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Ue,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,_d(e),e.isCheckStableRunning=!0,wd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),_d(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{try{return zv(e),n.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),Wv(e)}},onInvoke:(n,r,i,o,s,a,u)=>{try{return zv(e),n.invoke(i,o,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),Wv(e)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,_d(e),wd(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Xe.isInAngularZone())throw new W(909,!1)}static assertNotInAngularZone(){if(Xe.isInAngularZone())throw new W(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,hO,Za,Za);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const hO={};function wd(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function _d(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function zv(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Wv(e){e._nesting--,wd(e)}class mO{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Pt,this.onMicrotaskEmpty=new Pt,this.onStable=new Pt,this.onError=new Pt}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}}const qv=new se(""),Xa=new se("");let Cd,Dd=(()=>{class e{constructor(n,r,i){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Cd||(function yO(e){Cd=e}(i),i.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Xe.assertNotInAngularZone(),bd(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())bd(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:o,updateCb:i})}whenStable(n,r,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,i){return[]}}return e.\u0275fac=function(n){return new(n||e)(oe(Xe),oe(Ed),oe(Xa))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})(),Ed=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return Cd?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const Kn=!1;let yr=null;const Gv=new se("AllowMultipleToken"),Sd=new se("PlatformDestroyListeners"),Jv=new se("appBootstrapListener");class Zv{constructor(t,n){this.name=t,this.token=n}}function Qv(e,t,n=[]){const r=`Platform: ${t}`,i=new se(r);return(o=[])=>{let s=Id();if(!s||s.injector.get(Gv,!1)){const a=[...n,...o,{provide:i,useValue:!0}];e?e(a):function wO(e){if(yr&&!yr.get(Gv,!1))throw new W(400,!1);yr=e;const t=e.get(Kv);(function Yv(e){const t=e.get(Uv,null);t&&t.forEach(n=>n())})(e)}(function Xv(e=[],t){return Jn.create({name:t,providers:[{provide:yc,useValue:"platform"},{provide:Sd,useValue:new Set([()=>yr=null])},...e]})}(a,r))}return function DO(e){const t=Id();if(!t)throw new W(401,!1);return t}()}}function Id(){return yr?.get(Kv)??null}let Kv=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const i=function t0(e,t){let n;return n="noop"===e?new mO:("zone.js"===e?void 0:e)||new Xe(t),n}(r?.ngZone,function e0(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(r)),o=[{provide:Xe,useValue:i}];return i.run(()=>{const s=Jn.create({providers:o,parent:this.injector,name:n.moduleType.name}),a=n.create(s),u=a.injector.get(Mi,null);if(!u)throw new W(402,!1);return i.runOutsideAngular(()=>{const l=i.onError.subscribe({next:c=>{u.handleError(c)}});a.onDestroy(()=>{eu(this._modules,a),l.unsubscribe()})}),function n0(e,t,n){try{const r=n();return Ba(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(u,i,()=>{const l=a.injector.get(Qa);return l.runInitializers(),l.donePromise.then(()=>(function Sy(e){en(e,"Expected localeId to be defined"),"string"==typeof e&&(Cy=e.toLowerCase().replace(/_/g,"-"))}(a.injector.get(Xn,Hi)||Hi),this._moduleDoBootstrap(a),a))})})}bootstrapModule(n,r=[]){const i=r0({},r);return function vO(e,t,n){const r=new rd(n);return Promise.resolve(r)}(0,0,n).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(n){const r=n.injector.get(Ka);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new W(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new W(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(Sd,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(oe(Jn))},e.\u0275prov=le({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function r0(e,t){return Array.isArray(t)?t.reduce(r0,e):{...e,...t}}let Ka=(()=>{class e{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(n,r,i){this._zone=n,this._injector=r,this._exceptionHandler=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new Oe(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new Oe(a=>{let u;this._zone.runOutsideAngular(()=>{u=this._zone.onStable.subscribe(()=>{Xe.assertNotInAngularZone(),bd(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const l=this._zone.onUnstable.subscribe(()=>{Xe.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{u.unsubscribe(),l.unsubscribe()}});this.isStable=function _D(...e){const t=mo(e),n=function pD(e,t){return"number"==typeof il(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?cn(r[0]):si(n)(ut(r,t)):Cn}(o,s.pipe(function DD(e={}){const{connector:t=(()=>new We),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return o=>{let s,a,u,l=0,c=!1,d=!1;const p=()=>{a?.unsubscribe(),a=void 0},w=()=>{p(),s=u=void 0,c=d=!1},T=()=>{const R=s;w(),R?.unsubscribe()};return ft((R,N)=>{l++,!d&&!c&&p();const k=u=u??t();N.add(()=>{l--,0===l&&!d&&!c&&(a=ol(T,i))}),k.subscribe(N),!s&&l>0&&(s=new H({next:z=>k.next(z),error:z=>{d=!0,p(),a=ol(w,n,z),k.error(z)},complete:()=>{c=!0,p(),a=ol(w,r),k.complete()}}),cn(R).subscribe(s))})(o)}}()))}bootstrap(n,r){const i=n instanceof Mg;if(!this._injector.get(Qa).done){!i&&function ui(e){const t=ke(e)||Dt(e)||Bt(e);return null!==t&&t.standalone}(n);throw new W(405,Kn)}let s;s=i?n:this._injector.get(Vo).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function bO(e){return e.isBoundToModule}(s)?void 0:this._injector.get($i),l=s.create(Jn.NULL,[],r||s.selector,a),c=l.location.nativeElement,d=l.injector.get(qv,null);return d?.registerApplication(c),l.onDestroy(()=>{this.detachView(l.hostView),eu(this.components,l),d?.unregisterApplication(c)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new W(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;eu(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(Jv,[]);r.push(...this._bootstrapListeners),r.forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>eu(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new W(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)(oe(Xe),oe(qn),oe(Mi))},e.\u0275prov=le({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function eu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let Md=(()=>{class e{}return e.__NG_ELEMENT_ID__=CO,e})();function CO(e){return function SO(e,t,n){if(Co(e)&&!n){const r=Ut(e.index,t);return new $o(r,r)}return 47&e.type?new $o(t[Ct],t):null}(vt(),B(),16==(16&e))}const BO=Qv(null,"core",[]);let UO=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(oe(Ka))},e.\u0275mod=Or({type:e}),e.\u0275inj=lr({}),e})(),xd=null;function Wr(){return xd}class HO{}const Ht=new se("DocumentToken");let Pd=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=le({token:e,factory:function(){return function $O(){return oe(g0)}()},providedIn:"platform"}),e})();const zO=new se("Location Initialized");let g0=(()=>{class e extends Pd{constructor(n){super(),this._doc=n,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Wr().getBaseHref(this._doc)}onPopState(n){const r=Wr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=Wr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,i){m0()?this._history.pushState(n,r,i):this._location.hash=i}replaceState(n,r,i){m0()?this._history.replaceState(n,r,i):this._location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return e.\u0275fac=function(n){return new(n||e)(oe(Ht))},e.\u0275prov=le({token:e,factory:function(){return function WO(){return new g0(oe(Ht))}()},providedIn:"platform"}),e})();function m0(){return!!window.history.pushState}function kd(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function y0(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function er(e){return e&&"?"!==e[0]?"?"+e:e}let qr=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=le({token:e,factory:function(){return Ee(b0)},providedIn:"root"}),e})();const v0=new se("appBaseHref");let b0=(()=>{class e extends qr{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??Ee(Ht).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return kd(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+er(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${r}${i}`:r}pushState(n,r,i,o){const s=this.prepareExternalUrl(i+er(o));this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){const s=this.prepareExternalUrl(i+er(o));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(oe(Pd),oe(v0,8))},e.\u0275prov=le({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),qO=(()=>{class e extends qr{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=kd(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+er(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+er(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(oe(Pd),oe(v0,8))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})(),Fd=(()=>{class e{constructor(n){this._subject=new Pt,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._basePath=function ZO(e){if(new RegExp("^(https?:)?//").test(e)){const[,n]=e.split(/\/\/[^\/]+/);return n}return e}(y0(w0(r))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+er(r))}normalize(n){return e.stripTrailingSlash(function JO(e,t){if(!e||!t.startsWith(e))return t;const n=t.substring(e.length);return""===n||["/",";","?","#"].includes(n[0])?n:t}(this._basePath,w0(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",i=null){this._locationStrategy.pushState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+er(r)),i)}replaceState(n,r="",i=null){this._locationStrategy.replaceState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+er(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(i=>i(n,r))}subscribe(n,r,i){return this._subject.subscribe({next:n,error:r,complete:i})}}return e.normalizeQueryParams=er,e.joinWithSlash=kd,e.stripTrailingSlash=y0,e.\u0275fac=function(n){return new(n||e)(oe(qr))},e.\u0275prov=le({token:e,factory:function(){return function GO(){return new Fd(oe(qr))}()},providedIn:"root"}),e})();function w0(e){return e.replace(/\/index.html$/,"")}class Gd{constructor(t,n){this._viewContainerRef=t,this._templateRef=n,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let hu=(()=>{class e{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(n){this._ngSwitch=n,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(n){this._defaultViews.push(n)}_matchCase(n){const r=n==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||r,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),r}_updateDefaultCases(n){if(this._defaultViews.length>0&&n!==this._defaultUsed){this._defaultUsed=n;for(const r of this._defaultViews)r.enforceState(n)}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=Ot({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),e})(),P0=(()=>{class e{constructor(n,r,i){this.ngSwitch=i,i._addCase(),this._view=new Gd(n,r)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return e.\u0275fac=function(n){return new(n||e)(ae(yn),ae(Qn),ae(hu,9))},e.\u0275dir=Ot({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),e})(),k0=(()=>{class e{constructor(n,r,i){i._addDefault(new Gd(n,r))}}return e.\u0275fac=function(n){return new(n||e)(ae(yn),ae(Qn),ae(hu,9))},e.\u0275dir=Ot({type:e,selectors:[["","ngSwitchDefault",""]],standalone:!0}),e})(),uA=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Or({type:e}),e.\u0275inj=lr({}),e})();let fA=(()=>{class e{}return e.\u0275prov=le({token:e,providedIn:"root",factory:()=>new hA(oe(Ht),window)}),e})();class hA{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const n=function pA(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow)){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let i=r.currentNode;for(;i;){const o=i.shadowRoot;if(o){const s=o.getElementById(t)||o.querySelector(`[name="${t}"]`);if(s)return s}i=r.nextNode()}}return null}(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const n=this.window.history;n&&n.scrollRestoration&&(n.scrollRestoration=t)}}scrollToElement(t){const n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,i=n.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=U0(this.window.history)||U0(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function U0(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class HA extends HO{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Xd extends HA{static makeCurrent(){!function VO(e){xd||(xd=e)}(new Xd)}onAndCancel(t,n,r){return t.addEventListener(n,r,!1),()=>{t.removeEventListener(n,r,!1)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function $A(){return ss=ss||document.querySelector("base"),ss?ss.getAttribute("href"):null}();return null==n?null:function zA(e){mu=mu||document.createElement("a"),mu.setAttribute("href",e);const t=mu.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){ss=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function NR(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[i,o]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}(document.cookie,t)}}let mu,ss=null;const z0=new se("TRANSITION_ID"),qA=[{provide:Ya,useFactory:function WA(e,t,n){return()=>{n.get(Qa).donePromise.then(()=>{const r=Wr(),i=t.querySelectorAll(`style[ng-transition="${e}"]`);for(let o=0;o<i.length;o++)r.remove(i[o])})}},deps:[z0,Ht,Jn],multi:!0}];let JA=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();const yu=new se("EventManagerPlugins");let vu=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i){return this._findPluginFor(r).addEventListener(n,r,i)}addGlobalEventListener(n,r,i){return this._findPluginFor(r).addGlobalEventListener(n,r,i)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const i=this._plugins;for(let o=0;o<i.length;o++){const s=i[o];if(s.supports(n))return this._eventNameToPlugin.set(n,s),s}throw new Error(`No event manager plugin found for event ${n}`)}}return e.\u0275fac=function(n){return new(n||e)(oe(yu),oe(Xe))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();class W0{constructor(t){this._doc=t}addGlobalEventListener(t,n,r){const i=Wr().getGlobalEventTarget(this._doc,t);if(!i)throw new Error(`Unsupported event target ${i} for event ${n}`);return this.addEventListener(i,n,r)}}let q0=(()=>{class e{constructor(){this.usageCount=new Map}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)0===this.changeUsageCount(r,-1)&&this.onStyleRemoved(r)}onStyleRemoved(n){}onStyleAdded(n){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(n,r){const i=this.usageCount;let o=i.get(n)??0;return o+=r,o>0?i.set(n,o):i.delete(n),o}ngOnDestroy(){for(const n of this.getAllStyles())this.onStyleRemoved(n);this.usageCount.clear()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})(),as=(()=>{class e extends q0{constructor(n){super(),this.doc=n,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.forEach(o=>o.remove()),r.delete(n)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}addStyleToHost(n,r){const i=this.doc.createElement("style");i.textContent=r,n.appendChild(i);const o=this.styleRef.get(r);o?o.push(i):this.styleRef.set(r,[i])}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return e.\u0275fac=function(n){return new(n||e)(oe(Ht))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();const Kd={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},ef=/%COMP%/g,Z0=new se("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function Y0(e,t){return t.flat(100).map(n=>n.replace(ef,e))}function Q0(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let tf=(()=>{class e{constructor(n,r,i,o){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestory=o,this.rendererByCompId=new Map,this.defaultRenderer=new nf(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;const i=this.getOrCreateRenderer(n,r);return i instanceof eb?i.applyToHost(n):i instanceof rf&&i.applyStyles(),i}getOrCreateRenderer(n,r){const i=this.rendererByCompId;let o=i.get(r.id);if(!o){const s=this.eventManager,a=this.sharedStylesHost,u=this.removeStylesOnCompDestory;switch(r.encapsulation){case In.Emulated:o=new eb(s,a,r,this.appId,u);break;case In.ShadowDom:return new t2(s,a,n,r);default:o=new rf(s,a,r,u)}o.onDestroy=()=>i.delete(r.id),i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return e.\u0275fac=function(n){return new(n||e)(oe(vu),oe(as),oe(ts),oe(Z0))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();class nf{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?document.createElementNS(Kd[n]||n,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,n){(K0(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(K0(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?document.querySelector(t):t;if(!r)throw new Error(`The selector "${t}" did not match any elements`);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,i){if(i){n=i+":"+n;const o=Kd[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const i=Kd[r];i?t.removeAttributeNS(i,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,i){i&(jt.DashCase|jt.Important)?t.style.setProperty(n,r,i&jt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&jt.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,n,Q0(r)):this.eventManager.addEventListener(t,n,Q0(r))}}function K0(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class t2 extends nf{constructor(t,n,r,i){super(t),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=Y0(i.id,i.styles);for(const s of o){const a=document.createElement("style");a.textContent=s,this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class rf extends nf{constructor(t,n,r,i,o=r.id){super(t),this.sharedStylesHost=n,this.removeStylesOnCompDestory=i,this.rendererUsageCount=0,this.styles=Y0(o,r.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class eb extends rf{constructor(t,n,r,i,o){const s=i+"-"+r.id;super(t,n,r,o,s),this.contentAttr=function XA(e){return"_ngcontent-%COMP%".replace(ef,e)}(s),this.hostAttr=function KA(e){return"_nghost-%COMP%".replace(ef,e)}(s)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}let n2=(()=>{class e extends W0{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i){return n.addEventListener(r,i,!1),()=>this.removeEventListener(n,r,i)}removeEventListener(n,r,i){return n.removeEventListener(r,i)}}return e.\u0275fac=function(n){return new(n||e)(oe(Ht))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();const tb=["alt","control","meta","shift"],r2={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},i2={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let o2=(()=>{class e extends W0{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,i){const o=e.parseEventName(r),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Wr().onAndCancel(n,o.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),tb.forEach(l=>{const c=r.indexOf(l);c>-1&&(r.splice(c,1),s+=l+".")}),s+=o,0!=r.length||0===o.length)return null;const u={};return u.domEventName=i,u.fullKey=s,u}static matchEventFullKeyCode(n,r){let i=r2[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),tb.forEach(s=>{s!==i&&(0,i2[s])(n)&&(o+=s+".")}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{e.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return e.\u0275fac=function(n){return new(n||e)(oe(Ht))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();const l2=Qv(BO,"browser",[{provide:jv,useValue:"browser"},{provide:Uv,useValue:function s2(){Xd.makeCurrent()},multi:!0},{provide:Ht,useFactory:function u2(){return function xE(e){uc=e}(document),document},deps:[]}]),ib=new se(""),ob=[{provide:Xa,useClass:class GA{addToWindow(t){Ue.getAngularTestability=(r,i=!0)=>{const o=t.findTestabilityInTree(r,i);if(null==o)throw new Error("Could not find testability for element.");return o},Ue.getAllAngularTestabilities=()=>t.getAllTestabilities(),Ue.getAllAngularRootElements=()=>t.getAllRootElements(),Ue.frameworkStabilizers||(Ue.frameworkStabilizers=[]),Ue.frameworkStabilizers.push(r=>{const i=Ue.getAllAngularTestabilities();let o=i.length,s=!1;const a=function(u){s=s||u,o--,0==o&&r(s)};i.forEach(function(u){u.whenStable(a)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?Wr().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:qv,useClass:Dd,deps:[Xe,Ed,Xa]},{provide:Dd,useClass:Dd,deps:[Xe,Ed,Xa]}],sb=[{provide:yc,useValue:"root"},{provide:Mi,useFactory:function a2(){return new Mi},deps:[]},{provide:yu,useClass:n2,multi:!0,deps:[Ht,Xe,jv]},{provide:yu,useClass:o2,multi:!0,deps:[Ht]},{provide:tf,useClass:tf,deps:[vu,as,ts,Z0]},{provide:Og,useExisting:tf},{provide:q0,useExisting:as},{provide:as,useClass:as,deps:[Ht]},{provide:vu,useClass:vu,deps:[yu,Xe]},{provide:class gA{},useClass:JA,deps:[]},[]];let c2=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:ts,useValue:n.appId},{provide:z0,useExisting:ts},qA]}}}return e.\u0275fac=function(n){return new(n||e)(oe(ib,12))},e.\u0275mod=Or({type:e}),e.\u0275inj=lr({providers:[...sb,...ob],imports:[uA,UO]}),e})(),ab=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}}return e.\u0275fac=function(n){return new(n||e)(oe(Ht))},e.\u0275prov=le({token:e,factory:function(n){let r=null;return r=n?new n:function f2(){return new ab(oe(Ht))}(),r},providedIn:"root"}),e})();function ne(...e){return ut(e,mo(e))}typeof window<"u"&&window;class _n extends We{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}const bu=_(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:v2}=Array,{getPrototypeOf:b2,prototype:w2,keys:_2}=Object;const{isArray:C2}=Array;function cb(...e){const t=mo(e),n=function hD(e){return E(il(e))?e.pop():void 0}(e),{args:r,keys:i}=function D2(e){if(1===e.length){const t=e[0];if(v2(t))return{args:t,keys:null};if(function E2(e){return e&&"object"==typeof e&&b2(e)===w2}(t)){const n=_2(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}(e);if(0===r.length)return ut([],t);const o=new Oe(function T2(e,t,n=be){return r=>{db(t,()=>{const{length:i}=e,o=new Array(i);let s=i,a=i;for(let u=0;u<i;u++)db(t,()=>{const l=ut(e[u],t);let c=!1;l.subscribe(ht(r,d=>{o[u]=d,c||(c=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,i?s=>function M2(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}(i,s):be));return n?o.pipe(function I2(e){return De(t=>function S2(e,t){return C2(t)?e(...t):e(t)}(e,t))}(n)):o}function db(e,t,n){e?Bn(n,e,t):t()}function uf(...e){return function O2(){return si(1)}()(ut(e,mo(e)))}function fb(e){return new Oe(t=>{cn(e()).subscribe(t)})}function us(e,t){const n=E(e)?e:()=>e,r=i=>i.error(n());return new Oe(t?i=>t.schedule(r,0,i):r)}function lf(){return ft((e,t)=>{let n=null;e._refCount++;const r=ht(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(n=null);const i=e._connection,o=n;n=null,i&&(!o||i===o)&&i.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}class hb extends Oe{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,oh(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new b;const n=this.getSubject();t.add(this.source.subscribe(ht(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=b.EMPTY)}return t}refCount(){return lf()(this)}}function Pn(e,t){return ft((n,r)=>{let i=null,o=0,s=!1;const a=()=>s&&!i&&r.complete();n.subscribe(ht(r,u=>{i?.unsubscribe();let l=0;const c=o++;cn(e(u,c)).subscribe(i=ht(r,d=>r.next(t?t(u,d,c,l++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function qi(e){return e<=0?()=>Cn:ft((t,n)=>{let r=0;t.subscribe(ht(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function br(e,t){return ft((n,r)=>{let i=0;n.subscribe(ht(r,o=>e.call(t,o,i++)&&r.next(o)))})}function wu(e){return ft((t,n)=>{let r=!1;t.subscribe(ht(n,i=>{r=!0,n.next(i)},()=>{r||n.next(e),n.complete()}))})}function pb(e=A2){return ft((t,n)=>{let r=!1;t.subscribe(ht(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(e())))})}function A2(){return new bu}function wr(e,t){const n=arguments.length>=2;return r=>r.pipe(e?br((i,o)=>e(i,o,r)):be,qi(1),n?wu(t):pb(()=>new bu))}function Gr(e,t){return E(t)?mt(e,t,1):mt(e,1)}function Mt(e,t,n){const r=E(e)||t||n?{next:e,error:t,complete:n}:e;return r?ft((i,o)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;i.subscribe(ht(o,u=>{var l;null===(l=r.next)||void 0===l||l.call(r,u),o.next(u)},()=>{var u;a=!1,null===(u=r.complete)||void 0===u||u.call(r),o.complete()},u=>{var l;a=!1,null===(l=r.error)||void 0===l||l.call(r,u),o.error(u)},()=>{var u,l;a&&(null===(u=r.unsubscribe)||void 0===u||u.call(r)),null===(l=r.finalize)||void 0===l||l.call(r)}))}):be}function _r(e){return ft((t,n)=>{let o,r=null,i=!1;r=t.subscribe(ht(n,void 0,void 0,s=>{o=cn(e(s,_r(e)(t))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function gb(e,t){return ft(function N2(e,t,n,r,i){return(o,s)=>{let a=n,u=t,l=0;o.subscribe(ht(s,c=>{const d=l++;u=a?e(u,c,d):(a=!0,c),r&&s.next(u)},i&&(()=>{a&&s.next(u),s.complete()})))}}(e,t,arguments.length>=2,!0))}function cf(e){return e<=0?()=>Cn:ft((t,n)=>{let r=[];t.subscribe(ht(n,i=>{r.push(i),e<r.length&&r.shift()},()=>{for(const i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function mb(e,t){const n=arguments.length>=2;return r=>r.pipe(e?br((i,o)=>e(i,o,r)):be,cf(1),n?wu(t):pb(()=>new bu))}function df(e){return ft((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}const pe="primary",ls=Symbol("RouteTitle");class k2{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function Gi(e){return new k2(e)}function F2(e,t,n){const r=n.path.split("/");if(r.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||r.length<e.length))return null;const i={};for(let o=0;o<r.length;o++){const s=r[o],a=e[o];if(s.startsWith(":"))i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:e.slice(0,r.length),posParams:i}}function kn(e,t){const n=e?Object.keys(e):void 0,r=t?Object.keys(t):void 0;if(!n||!r||n.length!=r.length)return!1;let i;for(let o=0;o<n.length;o++)if(i=n[o],!yb(e[i],t[i]))return!1;return!0}function yb(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;const n=[...e].sort(),r=[...t].sort();return n.every((i,o)=>r[o]===i)}return e===t}function vb(e){return Array.prototype.concat.apply([],e)}function bb(e){return e.length>0?e[e.length-1]:null}function bt(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Dr(e){return Mm(e)?e:Ba(e)?ut(Promise.resolve(e)):ne(e)}const _u=!1,B2={exact:function Db(e,t,n){if(!Jr(e.segments,t.segments)||!Du(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!Db(e.children[r],t.children[r],n))return!1;return!0},subset:Eb},wb={exact:function U2(e,t){return kn(e,t)},subset:function j2(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>yb(e[n],t[n]))},ignored:()=>!0};function _b(e,t,n){return B2[n.paths](e.root,t.root,n.matrixParams)&&wb[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function Eb(e,t,n){return Cb(e,t,t.segments,n)}function Cb(e,t,n,r){if(e.segments.length>n.length){const i=e.segments.slice(0,n.length);return!(!Jr(i,n)||t.hasChildren()||!Du(i,n,r))}if(e.segments.length===n.length){if(!Jr(e.segments,n)||!Du(e.segments,n,r))return!1;for(const i in t.children)if(!e.children[i]||!Eb(e.children[i],t.children[i],r))return!1;return!0}{const i=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!!(Jr(e.segments,i)&&Du(e.segments,i,r)&&e.children[pe])&&Cb(e.children[pe],t,o,r)}}function Du(e,t,n){return t.every((r,i)=>wb[n](e[i].parameters,r.parameters))}class Er{constructor(t=new ve([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Gi(this.queryParams)),this._queryParamMap}toString(){return $2.serialize(this)}}class ve{constructor(t,n){this.segments=t,this.children=n,this.parent=null,bt(n,(r,i)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Eu(this)}}class cs{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=Gi(this.parameters)),this._parameterMap}toString(){return Mb(this)}}function Jr(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}let ds=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=le({token:e,factory:function(){return new ff},providedIn:"root"}),e})();class ff{parse(t){const n=new X2(t);return new Er(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){const n=`/${fs(t.root,!0)}`,r=function q2(e){const t=Object.keys(e).map(n=>{const r=e[n];return Array.isArray(r)?r.map(i=>`${Cu(n)}=${Cu(i)}`).join("&"):`${Cu(n)}=${Cu(r)}`}).filter(n=>!!n);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${n}${r}${"string"==typeof t.fragment?`#${function z2(e){return encodeURI(e)}(t.fragment)}`:""}`}}const $2=new ff;function Eu(e){return e.segments.map(t=>Mb(t)).join("/")}function fs(e,t){if(!e.hasChildren())return Eu(e);if(t){const n=e.children[pe]?fs(e.children[pe],!1):"",r=[];return bt(e.children,(i,o)=>{o!==pe&&r.push(`${o}:${fs(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function H2(e,t){let n=[];return bt(e.children,(r,i)=>{i===pe&&(n=n.concat(t(r,i)))}),bt(e.children,(r,i)=>{i!==pe&&(n=n.concat(t(r,i)))}),n}(e,(r,i)=>i===pe?[fs(e.children[pe],!1)]:[`${i}:${fs(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[pe]?`${Eu(e)}/${n[0]}`:`${Eu(e)}/(${n.join("//")})`}}function Sb(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Cu(e){return Sb(e).replace(/%3B/gi,";")}function hf(e){return Sb(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Su(e){return decodeURIComponent(e)}function Ib(e){return Su(e.replace(/\+/g,"%20"))}function Mb(e){return`${hf(e.path)}${function W2(e){return Object.keys(e).map(t=>`;${hf(t)}=${hf(e[t])}`).join("")}(e.parameters)}`}const G2=/^[^\/()?;=#]+/;function Iu(e){const t=e.match(G2);return t?t[0]:""}const J2=/^[^=?&#]+/,Y2=/^[^&#]+/;class X2{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ve([],{}):new ve([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[pe]=new ve(t,n)),r}parseSegment(){const t=Iu(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new W(4009,_u);return this.capture(t),new cs(Su(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=Iu(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const i=Iu(this.remaining);i&&(r=i,this.capture(r))}t[Su(n)]=Su(r)}parseQueryParam(t){const n=function Z2(e){const t=e.match(J2);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function Q2(e){const t=e.match(Y2);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const i=Ib(n),o=Ib(r);if(t.hasOwnProperty(i)){let s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}parseParens(t){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Iu(this.remaining),i=this.remaining[r.length];if("/"!==i&&")"!==i&&";"!==i)throw new W(4010,_u);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=pe);const s=this.parseChildren();n[o]=1===Object.keys(s).length?s[pe]:new ve([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new W(4011,_u)}}function pf(e){return e.segments.length>0?new ve([],{[pe]:e}):e}function Mu(e){const t={};for(const r of Object.keys(e.children)){const o=Mu(e.children[r]);(o.segments.length>0||o.hasChildren())&&(t[r]=o)}return function K2(e){if(1===e.numberOfChildren&&e.children[pe]){const t=e.children[pe];return new ve(e.segments.concat(t.segments),t.children)}return e}(new ve(e.segments,t))}function Zr(e){return e instanceof Er}const gf=!1;function eN(e,t,n,r,i){if(0===n.length)return Ji(t.root,t.root,t.root,r,i);const o=function Nb(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Ab(!0,0,e);let t=0,n=!1;const r=e.reduce((i,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return bt(o.outlets,(u,l)=>{a[l]="string"==typeof u?u.split("/"):u}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return"string"!=typeof o?[...i,o]:0===s?(o.split("/").forEach((a,u)=>{0==u&&"."===a||(0==u&&""===a?n=!0:".."===a?t++:""!=a&&i.push(a))}),i):[...i,o]},[]);return new Ab(n,t,r)}(n);return o.toRoot()?Ji(t.root,t.root,new ve([],{}),r,i):function s(u){const l=function nN(e,t,n,r){if(e.isAbsolute)return new Zi(t.root,!0,0);if(-1===r)return new Zi(n,n===t.root,0);return function xb(e,t,n){let r=e,i=t,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new W(4005,gf&&"Invalid number of '../'");i=r.segments.length}return new Zi(r,!1,i-o)}(n,r+(hs(e.commands[0])?0:1),e.numberOfDoubleDots)}(o,t,e.snapshot?._urlSegment,u),c=l.processChildren?Yi(l.segmentGroup,l.index,o.commands):mf(l.segmentGroup,l.index,o.commands);return Ji(t.root,l.segmentGroup,c,r,i)}(e.snapshot?._lastPathIndex)}function hs(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function ps(e){return"object"==typeof e&&null!=e&&e.outlets}function Ji(e,t,n,r,i){let s,o={};r&&bt(r,(u,l)=>{o[l]=Array.isArray(u)?u.map(c=>`${c}`):`${u}`}),s=e===t?n:Rb(e,t,n);const a=pf(Mu(s));return new Er(a,o,i)}function Rb(e,t,n){const r={};return bt(e.children,(i,o)=>{r[o]=i===t?n:Rb(i,t,n)}),new ve(e.segments,r)}class Ab{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&hs(r[0]))throw new W(4003,gf&&"Root segment cannot have matrix parameters");const i=r.find(ps);if(i&&i!==bb(r))throw new W(4004,gf&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Zi{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function mf(e,t,n){if(e||(e=new ve([],{})),0===e.segments.length&&e.hasChildren())return Yi(e,t,n);const r=function iN(e,t,n){let r=0,i=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(r>=n.length)return o;const s=e.segments[i],a=n[r];if(ps(a))break;const u=`${a}`,l=r<n.length-1?n[r+1]:null;if(i>0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!kb(u,l,s))return o;r+=2}else{if(!kb(u,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){const o=new ve(e.segments.slice(0,r.pathIndex),{});return o.children[pe]=new ve(e.segments.slice(r.pathIndex),e.children),Yi(o,0,i)}return r.match&&0===i.length?new ve(e.segments,{}):r.match&&!e.hasChildren()?yf(e,t,n):r.match?Yi(e,0,i):yf(e,t,n)}function Yi(e,t,n){if(0===n.length)return new ve(e.segments,{});{const r=function rN(e){return ps(e[0])?e[0].outlets:{[pe]:e}}(n),i={};if(!r[pe]&&e.children[pe]&&1===e.numberOfChildren&&0===e.children[pe].segments.length){const o=Yi(e.children[pe],t,n);return new ve(e.segments,o.children)}return bt(r,(o,s)=>{"string"==typeof o&&(o=[o]),null!==o&&(i[s]=mf(e.children[s],t,o))}),bt(e.children,(o,s)=>{void 0===r[s]&&(i[s]=o)}),new ve(e.segments,i)}}function yf(e,t,n){const r=e.segments.slice(0,t);let i=0;for(;i<n.length;){const o=n[i];if(ps(o)){const u=oN(o.outlets);return new ve(r,u)}if(0===i&&hs(n[0])){r.push(new cs(e.segments[t].path,Pb(n[0]))),i++;continue}const s=ps(o)?o.outlets[pe]:`${o}`,a=i<n.length-1?n[i+1]:null;s&&a&&hs(a)?(r.push(new cs(s,Pb(a))),i+=2):(r.push(new cs(s,{})),i++)}return new ve(r,{})}function oN(e){const t={};return bt(e,(n,r)=>{"string"==typeof n&&(n=[n]),null!==n&&(t[r]=yf(new ve([],{}),0,n))}),t}function Pb(e){const t={};return bt(e,(n,r)=>t[r]=`${n}`),t}function kb(e,t,n){return e==n.path&&kn(t,n.parameters)}const gs="imperative";class Fn{constructor(t,n){this.id=t,this.url=n}}class vf extends Fn{constructor(t,n,r="imperative",i=null){super(t,n),this.type=0,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Yr extends Fn{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Tu extends Fn{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Ou extends Fn{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=16}}class bf extends Fn{constructor(t,n,r,i){super(t,n),this.error=r,this.target=i,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class sN extends Fn{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class aN extends Fn{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class uN extends Fn{constructor(t,n,r,i,o){super(t,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class lN extends Fn{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class cN extends Fn{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class dN{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class fN{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class hN{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pN{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class gN{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class mN{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Fb{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let bN=(()=>{class e{createUrlTree(n,r,i,o,s,a){return eN(n||r.root,i,o,s,a)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})(),_N=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=le({token:e,factory:function(t){return bN.\u0275fac(t)},providedIn:"root"}),e})();class Lb{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){const n=wf(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=wf(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=_f(t,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return _f(t,this._root).map(n=>n.value)}}function wf(e,t){if(e===t.value)return t;for(const n of t.children){const r=wf(e,n);if(r)return r}return null}function _f(e,t){if(e===t.value)return[t];for(const n of t.children){const r=_f(e,n);if(r.length)return r.unshift(t),r}return[]}class nr{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function Qi(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class Bb extends Lb{constructor(t,n){super(t),this.snapshot=n,Df(this,t)}toString(){return this.snapshot.toString()}}function Ub(e,t){const n=function DN(e,t){const s=new Ru([],{},{},"",{},pe,t,null,e.root,-1,{});return new Vb("",new nr(s,[]))}(e,t),r=new _n([new cs("",{})]),i=new _n({}),o=new _n({}),s=new _n({}),a=new _n(""),u=new Xi(r,i,s,a,o,pe,t,n.root);return u.snapshot=n.root,new Bb(new nr(u,[]),n)}class Xi{constructor(t,n,r,i,o,s,a,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe(De(l=>l[ls]))??ne(void 0),this._futureSnapshot=u}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(De(t=>Gi(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(De(t=>Gi(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function jb(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function EN(e){return e.reduce((t,n)=>({params:{...t.params,...n.params},data:{...t.data,...n.data},resolve:{...n.data,...t.resolve,...n.routeConfig?.data,...n._resolvedData}}),{params:{},data:{},resolve:{}})}(n.slice(r))}class Ru{get title(){return this.data?.[ls]}constructor(t,n,r,i,o,s,a,u,l,c,d){this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Gi(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Gi(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Vb extends Lb{constructor(t,n){super(n),this.url=t,Df(this,n)}toString(){return Hb(this._root)}}function Df(e,t){t.value._routerState=e,t.children.forEach(n=>Df(e,n))}function Hb(e){const t=e.children.length>0?` { ${e.children.map(Hb).join(", ")} } `:"";return`${e.value}${t}`}function Ef(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,kn(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),kn(t.params,n.params)||e.params.next(n.params),function L2(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!kn(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),kn(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function Cf(e,t){const n=kn(e.params,t.params)&&function V2(e,t){return Jr(e,t)&&e.every((n,r)=>kn(n.parameters,t[r].parameters))}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||Cf(e.parent,t.parent))}function ms(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const i=function SN(e,t,n){return t.children.map(r=>{for(const i of n.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return ms(e,r,i);return ms(e,r)})}(e,t,n);return new nr(r,i)}{if(e.shouldAttach(t.value)){const o=e.retrieve(t.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>ms(e,a)),s}}const r=function IN(e){return new Xi(new _n(e.url),new _n(e.params),new _n(e.queryParams),new _n(e.fragment),new _n(e.data),e.outlet,e.component,e)}(t.value),i=t.children.map(o=>ms(e,o));return new nr(r,i)}}const Sf="ngNavigationCancelingError";function $b(e,t){const{redirectTo:n,navigationBehaviorOptions:r}=Zr(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=zb(!1,0,t);return i.url=n,i.navigationBehaviorOptions=r,i}function zb(e,t,n){const r=new Error("NavigationCancelingError: "+(e||""));return r[Sf]=!0,r.cancellationCode=t,n&&(r.url=n),r}function Wb(e){return qb(e)&&Zr(e.url)}function qb(e){return e&&e[Sf]}class MN{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new ys,this.attachRef=null}}let ys=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){const i=this.getOrCreateContext(n);i.outlet=r,this.contexts.set(n,i)}onChildOutletDestroyed(n){const r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new MN,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Au=!1;let If=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=pe,this.activateEvents=new Pt,this.deactivateEvents=new Pt,this.attachEvents=new Pt,this.detachEvents=new Pt,this.parentContexts=Ee(ys),this.location=Ee(yn),this.changeDetector=Ee(Md),this.environmentInjector=Ee(qn)}ngOnChanges(n){if(n.name){const{firstChange:r,previousValue:i}=n.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new W(4012,Au);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new W(4012,Au);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new W(4012,Au);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new W(4013,Au);this._activatedRoute=n;const i=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new TN(n,a,i.injector);if(r&&function ON(e){return!!e.resolveComponentFactory}(r)){const l=r.resolveComponentFactory(s);this.activated=i.createComponent(l,i.length,u)}else this.activated=i.createComponent(s,{index:i.length,injector:u,environmentInjector:r??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=Ot({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Nr]}),e})();class TN{constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===Xi?this.route:t===ys?this.childContexts:this.parent.get(t,n)}}let Mf=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=yl({type:e,selectors:[["ng-component"]],standalone:!0,features:[Xy],decls:1,vars:0,template:function(n,r){1&n&&Se(0,"router-outlet")},dependencies:[If],encapsulation:2}),e})();function Gb(e,t){return e.providers&&!e._injector&&(e._injector=qa(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Of(e){const t=e.children&&e.children.map(Of),n=t?{...e,children:t}:{...e};return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==pe&&(n.component=Mf),n}function un(e){return e.outlet||pe}function Jb(e,t){const n=e.filter(r=>un(r)===t);return n.push(...e.filter(r=>un(r)!==t)),n}function vs(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){const n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}class PN{constructor(t,n,r,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=i}activate(t){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Ef(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const i=Qi(n);t.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),bt(i,(o,s)=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(t,n,r){const i=t.value,o=n?n.value:null;if(i===o)if(i.component){const s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else o&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){const r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=Qi(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){const r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=Qi(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(t,n,r){const i=Qi(n);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new mN(o.value.snapshot))}),t.children.length&&this.forwardEvent(new pN(t.value.snapshot))}activateRoutes(t,n,r){const i=t.value,o=n?n.value:null;if(Ef(i),i===o)if(i.component){const s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(i.component){const s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Ef(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=vs(i.snapshot),u=a?.get(Vo)??null;s.attachRef=null,s.route=i,s.resolver=u,s.injector=a,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,r)}}class Zb{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Nu{constructor(t,n){this.component=t,this.route=n}}function kN(e,t,n){const r=e._root;return bs(r,t?t._root:null,n,[r.value])}function Ki(e,t){const n=Symbol(),r=t.get(e,n);return r===n?"function"!=typeof e||function OD(e){return null!==Ws(e)}(e)?t.get(e):e:r}function bs(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=Qi(t);return e.children.forEach(s=>{(function LN(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const u=function BN(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Jr(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Jr(e.url,t.url)||!kn(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Cf(e,t)||!kn(e.queryParams,t.queryParams);default:return!Cf(e,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Zb(r)):(o.data=s.data,o._resolvedData=s._resolvedData),bs(e,t,o.component?a?a.children:null:n,r,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Nu(a.outlet.component,s))}else s&&ws(t,a,i),i.canActivateChecks.push(new Zb(r)),bs(e,null,o.component?a?a.children:null:n,r,i)})(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),bt(o,(s,a)=>ws(s,n.getContext(a),i)),i}function ws(e,t,n){const r=Qi(e),i=e.value;bt(r,(o,s)=>{ws(o,i.component?t?t.children.getContext(s):null:t,n)}),n.canDeactivateChecks.push(new Nu(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}function _s(e){return"function"==typeof e}function Rf(e){return e instanceof bu||"EmptyError"===e?.name}const xu=Symbol("INITIAL_VALUE");function eo(){return Pn(e=>cb(e.map(t=>t.pipe(qi(1),function R2(...e){const t=mo(e);return ft((n,r)=>{(t?uf(e,n,t):uf(e,n)).subscribe(r)})}(xu)))).pipe(De(t=>{for(const n of t)if(!0!==n){if(n===xu)return xu;if(!1===n||n instanceof Er)return n}return!0}),br(t=>t!==xu),qi(1)))}function Yb(e){return function $e(...e){return nt(e)}(Mt(t=>{if(Zr(t))throw $b(0,t)}),De(t=>!0===t))}const Af={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Qb(e,t,n,r,i){const o=Nf(e,t,n);return o.matched?function tx(e,t,n,r){const i=t.canMatch;return i&&0!==i.length?ne(i.map(s=>{const a=Ki(s,e);return Dr(function zN(e){return e&&_s(e.canMatch)}(a)?a.canMatch(t,n):e.runInContext(()=>a(t,n)))})).pipe(eo(),Yb()):ne(!0)}(r=Gb(t,r),t,n).pipe(De(s=>!0===s?o:{...Af})):ne(o)}function Nf(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{...Af}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const i=(t.matcher||F2)(n,e,t);if(!i)return{...Af};const o={};bt(i.posParams,(a,u)=>{o[u]=a.path});const s=i.consumed.length>0?{...o,...i.consumed[i.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:n.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function Pu(e,t,n,r){if(n.length>0&&function ix(e,t,n){return n.some(r=>ku(e,t,r)&&un(r)!==pe)}(e,n,r)){const o=new ve(t,function rx(e,t,n,r){const i={};i[pe]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const o of n)if(""===o.path&&un(o)!==pe){const s=new ve([],{});s._sourceSegment=e,s._segmentIndexShift=t.length,i[un(o)]=s}return i}(e,t,r,new ve(n,e.children)));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function ox(e,t,n){return n.some(r=>ku(e,t,r))}(e,n,r)){const o=new ve(e.segments,function nx(e,t,n,r,i){const o={};for(const s of r)if(ku(e,n,s)&&!i[un(s)]){const a=new ve([],{});a._sourceSegment=e,a._segmentIndexShift=t.length,o[un(s)]=a}return{...i,...o}}(e,t,n,r,e.children));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}const i=new ve(e.segments,e.children);return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}function ku(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function Xb(e,t,n,r){return!!(un(e)===r||r!==pe&&ku(t,n,e))&&("**"===e.path||Nf(t,e,n).matched)}function Kb(e,t,n){return 0===t.length&&!e.children[n]}const Fu=!1;class Lu{constructor(t){this.segmentGroup=t||null}}class ew{constructor(t){this.urlTree=t}}function Ds(e){return us(new Lu(e))}function tw(e){return us(new ew(e))}class lx{constructor(t,n,r,i,o){this.injector=t,this.configLoader=n,this.urlSerializer=r,this.urlTree=i,this.config=o,this.allowRedirects=!0}apply(){const t=Pu(this.urlTree.root,[],[],this.config).segmentGroup,n=new ve(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,n,pe).pipe(De(o=>this.createUrlTree(Mu(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(_r(o=>{if(o instanceof ew)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof Lu?this.noMatchError(o):o}))}match(t){return this.expandSegmentGroup(this.injector,this.config,t.root,pe).pipe(De(i=>this.createUrlTree(Mu(i),t.queryParams,t.fragment))).pipe(_r(i=>{throw i instanceof Lu?this.noMatchError(i):i}))}noMatchError(t){return new W(4002,Fu)}createUrlTree(t,n,r){const i=pf(t);return new Er(i,n,r)}expandSegmentGroup(t,n,r,i){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(t,n,r).pipe(De(o=>new ve([],o))):this.expandSegment(t,r,n,r.segments,i,!0)}expandChildren(t,n,r){const i=[];for(const o of Object.keys(r.children))"primary"===o?i.unshift(o):i.push(o);return ut(i).pipe(Gr(o=>{const s=r.children[o],a=Jb(n,o);return this.expandSegmentGroup(t,a,s,o).pipe(De(u=>({segment:u,outlet:o})))}),gb((o,s)=>(o[s.outlet]=s.segment,o),{}),mb())}expandSegment(t,n,r,i,o,s){return ut(r).pipe(Gr(a=>this.expandSegmentAgainstRoute(t,n,r,a,i,o,s).pipe(_r(l=>{if(l instanceof Lu)return ne(null);throw l}))),wr(a=>!!a),_r((a,u)=>{if(Rf(a))return Kb(n,i,o)?ne(new ve([],{})):Ds(n);throw a}))}expandSegmentAgainstRoute(t,n,r,i,o,s,a){return Xb(i,n,o,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,n,i,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s):Ds(n):Ds(n)}expandSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i){const o=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?tw(o):this.lineralizeSegments(r,o).pipe(mt(s=>{const a=new ve(s,{});return this.expandSegment(t,a,n,s,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s){const{matched:a,consumedSegments:u,remainingSegments:l,positionalParamSegments:c}=Nf(n,i,o);if(!a)return Ds(n);const d=this.applyRedirectCommands(u,i.redirectTo,c);return i.redirectTo.startsWith("/")?tw(d):this.lineralizeSegments(i,d).pipe(mt(p=>this.expandSegment(t,n,r,p.concat(l),s,!1)))}matchSegmentAgainstRoute(t,n,r,i,o){return"**"===r.path?(t=Gb(r,t),r.loadChildren?(r._loadedRoutes?ne({routes:r._loadedRoutes,injector:r._loadedInjector}):this.configLoader.loadChildren(t,r)).pipe(De(a=>(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,new ve(i,{})))):ne(new ve(i,{}))):Qb(n,r,i,t).pipe(Pn(({matched:s,consumedSegments:a,remainingSegments:u})=>s?this.getChildConfig(t=r._injector??t,r,i).pipe(mt(c=>{const d=c.injector??t,p=c.routes,{segmentGroup:w,slicedSegments:T}=Pu(n,a,u,p),R=new ve(w.segments,w.children);if(0===T.length&&R.hasChildren())return this.expandChildren(d,p,R).pipe(De(L=>new ve(a,L)));if(0===p.length&&0===T.length)return ne(new ve(a,{}));const N=un(r)===o;return this.expandSegment(d,R,p,T,N?pe:o,!0).pipe(De(z=>new ve(a.concat(z.segments),z.children)))})):Ds(n)))}getChildConfig(t,n,r){return n.children?ne({routes:n.children,injector:t}):n.loadChildren?void 0!==n._loadedRoutes?ne({routes:n._loadedRoutes,injector:n._loadedInjector}):function ex(e,t,n,r){const i=t.canLoad;return void 0===i||0===i.length?ne(!0):ne(i.map(s=>{const a=Ki(s,e);return Dr(function jN(e){return e&&_s(e.canLoad)}(a)?a.canLoad(t,n):e.runInContext(()=>a(t,n)))})).pipe(eo(),Yb())}(t,n,r).pipe(mt(i=>i?this.configLoader.loadChildren(t,n).pipe(Mt(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):function ax(e){return us(zb(Fu,3))}())):ne({routes:[],injector:t})}lineralizeSegments(t,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),0===i.numberOfChildren)return ne(r);if(i.numberOfChildren>1||!i.children[pe])return t.redirectTo,us(new W(4e3,Fu));i=i.children[pe]}}applyRedirectCommands(t,n,r){return this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r)}applyRedirectCreateUrlTree(t,n,r,i){const o=this.createSegmentGroup(t,n.root,r,i);return new Er(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){const r={};return bt(t,(i,o)=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,i){const o=this.createSegments(t,n.segments,r,i);let s={};return bt(n.children,(a,u)=>{s[u]=this.createSegmentGroup(t,a,r,i)}),new ve(o,s)}createSegments(t,n,r,i){return n.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,i):this.findOrReturn(o,r))}findPosParam(t,n,r){const i=r[n.path.substring(1)];if(!i)throw new W(4001,Fu);return i}findOrReturn(t,n){let r=0;for(const i of n){if(i.path===t.path)return n.splice(r),i;r++}return t}}class dx{}class px{constructor(t,n,r,i,o,s,a){this.injector=t,this.rootComponentType=n,this.config=r,this.urlTree=i,this.url=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a}recognize(){const t=Pu(this.urlTree.root,[],[],this.config.filter(n=>void 0===n.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,pe).pipe(De(n=>{if(null===n)return null;const r=new Ru([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},pe,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new nr(r,n),o=new Vb(this.url,i);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(t){const n=t.value,r=jb(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(i=>this.inheritParamsAndData(i))}processSegmentGroup(t,n,r,i){return 0===r.segments.length&&r.hasChildren()?this.processChildren(t,n,r):this.processSegment(t,n,r,r.segments,i)}processChildren(t,n,r){return ut(Object.keys(r.children)).pipe(Gr(i=>{const o=r.children[i],s=Jb(n,i);return this.processSegmentGroup(t,s,o,i)}),gb((i,o)=>i&&o?(i.push(...o),i):null),function x2(e,t=!1){return ft((n,r)=>{let i=0;n.subscribe(ht(r,o=>{const s=e(o,i++);(s||t)&&r.next(o),!s&&r.complete()}))})}(i=>null!==i),wu(null),mb(),De(i=>{if(null===i)return null;const o=rw(i);return function gx(e){e.sort((t,n)=>t.value.outlet===pe?-1:n.value.outlet===pe?1:t.value.outlet.localeCompare(n.value.outlet))}(o),o}))}processSegment(t,n,r,i,o){return ut(n).pipe(Gr(s=>this.processSegmentAgainstRoute(s._injector??t,s,r,i,o)),wr(s=>!!s),_r(s=>{if(Rf(s))return Kb(r,i,o)?ne([]):ne(null);throw s}))}processSegmentAgainstRoute(t,n,r,i,o){if(n.redirectTo||!Xb(n,r,i,o))return ne(null);let s;if("**"===n.path){const a=i.length>0?bb(i).parameters:{},u=ow(r)+i.length;s=ne({snapshot:new Ru(i,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,sw(n),un(n),n.component??n._loadedComponent??null,n,iw(r),u,aw(n)),consumedSegments:[],remainingSegments:[]})}else s=Qb(r,n,i,t).pipe(De(({matched:a,consumedSegments:u,remainingSegments:l,parameters:c})=>{if(!a)return null;const d=ow(r)+u.length;return{snapshot:new Ru(u,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,sw(n),un(n),n.component??n._loadedComponent??null,n,iw(r),d,aw(n)),consumedSegments:u,remainingSegments:l}}));return s.pipe(Pn(a=>{if(null===a)return ne(null);const{snapshot:u,consumedSegments:l,remainingSegments:c}=a;t=n._injector??t;const d=n._loadedInjector??t,p=function mx(e){return e.children?e.children:e.loadChildren?e._loadedRoutes:[]}(n),{segmentGroup:w,slicedSegments:T}=Pu(r,l,c,p.filter(N=>void 0===N.redirectTo));if(0===T.length&&w.hasChildren())return this.processChildren(d,p,w).pipe(De(N=>null===N?null:[new nr(u,N)]));if(0===p.length&&0===T.length)return ne([new nr(u,[])]);const R=un(n)===o;return this.processSegment(d,p,w,T,R?pe:o).pipe(De(N=>null===N?null:[new nr(u,N)]))}))}}function yx(e){const t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function rw(e){const t=[],n=new Set;for(const r of e){if(!yx(r)){t.push(r);continue}const i=t.find(o=>r.value.routeConfig===o.value.routeConfig);void 0!==i?(i.children.push(...r.children),n.add(i)):t.push(r)}for(const r of n){const i=rw(r.children);t.push(new nr(r.value,i))}return t.filter(r=>!n.has(r))}function iw(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function ow(e){let t=e,n=t._segmentIndexShift??0;for(;t._sourceSegment;)t=t._sourceSegment,n+=t._segmentIndexShift??0;return n-1}function sw(e){return e.data||{}}function aw(e){return e.resolve||{}}function uw(e){return"string"==typeof e.title||null===e.title}function xf(e){return Pn(t=>{const n=e(t);return n?ut(n).pipe(De(()=>t)):ne(t)})}const to=new se("ROUTES");let Pf=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=Ee(Vv)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return ne(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=Dr(n.loadComponent()).pipe(De(cw),Mt(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),df(()=>{this.componentLoaders.delete(n)})),i=new hb(r,()=>new We).pipe(lf());return this.componentLoaders.set(n,i),i}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return ne({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const o=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(De(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let u,l,c=!1;Array.isArray(a)?l=a:(u=a.create(n).injector,l=vb(u.get(to,[],ie.Self|ie.Optional)));return{routes:l.map(Of),injector:u}}),df(()=>{this.childrenLoaders.delete(r)})),s=new hb(o,()=>new We).pipe(lf());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(n){return Dr(n()).pipe(De(cw),mt(r=>r instanceof Yy||Array.isArray(r)?ne(r):ut(this.compiler.compileModuleAsync(r))))}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function cw(e){return function Sx(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let Uu=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new We,this.configLoader=Ee(Pf),this.environmentInjector=Ee(qn),this.urlSerializer=Ee(ds),this.rootContexts=Ee(ys),this.navigationId=0,this.afterPreactivation=()=>ne(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=i=>this.events.next(new fN(i)),this.configLoader.onLoadStartListener=i=>this.events.next(new dN(i))}complete(){this.transitions?.complete()}handleNavigationRequest(n){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...n,id:r})}setupNavigations(n){return this.transitions=new _n({id:0,targetPageId:0,currentUrlTree:n.currentUrlTree,currentRawUrl:n.currentUrlTree,extractedUrl:n.urlHandlingStrategy.extract(n.currentUrlTree),urlAfterRedirects:n.urlHandlingStrategy.extract(n.currentUrlTree),rawUrl:n.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:gs,restoredState:null,currentSnapshot:n.routerState.snapshot,targetSnapshot:null,currentRouterState:n.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(br(r=>0!==r.id),De(r=>({...r,extractedUrl:n.urlHandlingStrategy.extract(r.rawUrl)})),Pn(r=>{let i=!1,o=!1;return ne(r).pipe(Mt(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Pn(s=>{const a=n.browserUrlTree.toString(),u=!n.navigated||s.extractedUrl.toString()!==a||a!==n.currentUrlTree.toString();if(!u&&"reload"!==(s.extras.onSameUrlNavigation??n.onSameUrlNavigation)){const c="";return this.events.next(new Ou(s.id,n.serializeUrl(r.rawUrl),c,0)),n.rawUrlTree=s.rawUrl,s.resolve(null),Cn}if(n.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return dw(s.source)&&(n.browserUrlTree=s.extractedUrl),ne(s).pipe(Pn(c=>{const d=this.transitions?.getValue();return this.events.next(new vf(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),d!==this.transitions?.getValue()?Cn:Promise.resolve(c)}),function cx(e,t,n,r){return Pn(i=>function ux(e,t,n,r,i){return new lx(e,t,n,r,i).apply()}(e,t,n,i.extractedUrl,r).pipe(De(o=>({...i,urlAfterRedirects:o}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,n.config),Mt(c=>{this.currentNavigation={...this.currentNavigation,finalUrl:c.urlAfterRedirects},r.urlAfterRedirects=c.urlAfterRedirects}),function bx(e,t,n,r,i){return mt(o=>function hx(e,t,n,r,i,o,s="emptyOnly"){return new px(e,t,n,r,i,s,o).recognize().pipe(Pn(a=>null===a?function fx(e){return new Oe(t=>t.error(e))}(new dx):ne(a)))}(e,t,n,o.urlAfterRedirects,r.serialize(o.urlAfterRedirects),r,i).pipe(De(s=>({...o,targetSnapshot:s}))))}(this.environmentInjector,this.rootComponentType,n.config,this.urlSerializer,n.paramsInheritanceStrategy),Mt(c=>{if(r.targetSnapshot=c.targetSnapshot,"eager"===n.urlUpdateStrategy){if(!c.extras.skipLocationChange){const p=n.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl);n.setBrowserUrl(p,c)}n.browserUrlTree=c.urlAfterRedirects}const d=new sN(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}));if(u&&n.urlHandlingStrategy.shouldProcessUrl(n.rawUrlTree)){const{id:c,extractedUrl:d,source:p,restoredState:w,extras:T}=s,R=new vf(c,this.urlSerializer.serialize(d),p,w);this.events.next(R);const N=Ub(d,this.rootComponentType).snapshot;return ne(r={...s,targetSnapshot:N,urlAfterRedirects:d,extras:{...T,skipLocationChange:!1,replaceUrl:!1}})}{const c="";return this.events.next(new Ou(s.id,n.serializeUrl(r.extractedUrl),c,1)),n.rawUrlTree=s.rawUrl,s.resolve(null),Cn}}),Mt(s=>{const a=new aN(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),De(s=>r={...s,guards:kN(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function qN(e,t){return mt(n=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return 0===s.length&&0===o.length?ne({...n,guardsResult:!0}):function GN(e,t,n,r){return ut(e).pipe(mt(i=>function KN(e,t,n,r,i){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?ne(o.map(a=>{const u=vs(t)??i,l=Ki(a,u);return Dr(function $N(e){return e&&_s(e.canDeactivate)}(l)?l.canDeactivate(e,t,n,r):u.runInContext(()=>l(e,t,n,r))).pipe(wr())})).pipe(eo()):ne(!0)}(i.component,i.route,n,t,r)),wr(i=>!0!==i,!0))}(s,r,i,e).pipe(mt(a=>a&&function UN(e){return"boolean"==typeof e}(a)?function JN(e,t,n,r){return ut(t).pipe(Gr(i=>uf(function YN(e,t){return null!==e&&t&&t(new hN(e)),ne(!0)}(i.route.parent,r),function ZN(e,t){return null!==e&&t&&t(new gN(e)),ne(!0)}(i.route,r),function XN(e,t,n){const r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>function FN(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(s)).filter(s=>null!==s).map(s=>fb(()=>ne(s.guards.map(u=>{const l=vs(s.node)??n,c=Ki(u,l);return Dr(function HN(e){return e&&_s(e.canActivateChild)}(c)?c.canActivateChild(r,e):l.runInContext(()=>c(r,e))).pipe(wr())})).pipe(eo())));return ne(o).pipe(eo())}(e,i.path,n),function QN(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return ne(!0);const i=r.map(o=>fb(()=>{const s=vs(t)??n,a=Ki(o,s);return Dr(function VN(e){return e&&_s(e.canActivate)}(a)?a.canActivate(t,e):s.runInContext(()=>a(t,e))).pipe(wr())}));return ne(i).pipe(eo())}(e,i.route,n))),wr(i=>!0!==i,!0))}(r,o,e,t):ne(a)),De(a=>({...n,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),Mt(s=>{if(r.guardsResult=s.guardsResult,Zr(s.guardsResult))throw $b(0,s.guardsResult);const a=new uN(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),br(s=>!!s.guardsResult||(n.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),xf(s=>{if(s.guards.canActivateChecks.length)return ne(s).pipe(Mt(a=>{const u=new lN(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}),Pn(a=>{let u=!1;return ne(a).pipe(function wx(e,t){return mt(n=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return ne(n);let o=0;return ut(i).pipe(Gr(s=>function _x(e,t,n,r){const i=e.routeConfig,o=e._resolve;return void 0!==i?.title&&!uw(i)&&(o[ls]=i.title),function Dx(e,t,n,r){const i=function Ex(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===i.length)return ne({});const o={};return ut(i).pipe(mt(s=>function Cx(e,t,n,r){const i=vs(t)??r,o=Ki(e,i);return Dr(o.resolve?o.resolve(t,n):i.runInContext(()=>o(t,n)))}(e[s],t,n,r).pipe(wr(),Mt(a=>{o[s]=a}))),cf(1),function P2(e){return De(()=>e)}(o),_r(s=>Rf(s)?Cn:us(s)))}(o,e,t,r).pipe(De(s=>(e._resolvedData=s,e.data=jb(e,n).resolve,i&&uw(i)&&(e.data[ls]=i.title),null)))}(s.route,r,e,t)),Mt(()=>o++),cf(1),mt(s=>o===i.length?ne(n):Cn))})}(n.paramsInheritanceStrategy,this.environmentInjector),Mt({next:()=>u=!0,complete:()=>{u||(n.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),Mt(a=>{const u=new cN(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}))}),xf(s=>{const a=u=>{const l=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&l.push(this.configLoader.loadComponent(u.routeConfig).pipe(Mt(c=>{u.component=c}),De(()=>{})));for(const c of u.children)l.push(...a(c));return l};return cb(a(s.targetSnapshot.root)).pipe(wu(),qi(1))}),xf(()=>this.afterPreactivation()),De(s=>{const a=function CN(e,t,n){const r=ms(e,t._root,n?n._root:void 0);return new Bb(r,t)}(n.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:a}}),Mt(s=>{n.currentUrlTree=s.urlAfterRedirects,n.rawUrlTree=n.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),n.routerState=s.targetRouterState,"deferred"===n.urlUpdateStrategy&&(s.extras.skipLocationChange||n.setBrowserUrl(n.rawUrlTree,s),n.browserUrlTree=s.urlAfterRedirects)}),((e,t,n)=>De(r=>(new PN(t,r.targetRouterState,r.currentRouterState,n).activate(e),r)))(this.rootContexts,n.routeReuseStrategy,s=>this.events.next(s)),qi(1),Mt({next:s=>{i=!0,this.lastSuccessfulNavigation=this.currentNavigation,n.navigated=!0,this.events.next(new Yr(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(n.currentUrlTree))),n.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{i=!0}}),df(()=>{i||o||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),_r(s=>{if(o=!0,qb(s)){Wb(s)||(n.navigated=!0,n.restoreHistory(r,!0));const a=new Tu(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),Wb(s)){const u=n.urlHandlingStrategy.merge(s.url,n.rawUrlTree),l={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===n.urlUpdateStrategy||dw(r.source)};n.scheduleNavigation(u,gs,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{n.restoreHistory(r,!0);const a=new bf(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);this.events.next(a);try{r.resolve(n.errorHandler(s))}catch(u){r.reject(u)}}return Cn}))}))}cancelNavigationTransition(n,r,i){const o=new Tu(n.id,this.urlSerializer.serialize(n.extractedUrl),r,i);this.events.next(o),n.resolve(!1)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function dw(e){return e!==gs}let fw=(()=>{class e{buildTitle(n){let r,i=n.root;for(;void 0!==i;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===pe);return r}getResolvedTitleForRoute(n){return n.data[ls]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=le({token:e,factory:function(){return Ee(Ix)},providedIn:"root"}),e})(),Ix=(()=>{class e extends fw{constructor(n){super(),this.title=n}updateTitle(n){const r=this.buildTitle(n);void 0!==r&&this.title.setTitle(r)}}return e.\u0275fac=function(n){return new(n||e)(oe(ab))},e.\u0275prov=le({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Mx=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=le({token:e,factory:function(){return Ee(Ox)},providedIn:"root"}),e})();class Tx{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}let Ox=(()=>{class e extends Tx{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=function vp(e){return Un(()=>{const t=e.prototype.constructor,n=t[Vn]||Ll(t),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const o=i[Vn]||Ll(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}(e)))(r||e)}}(),e.\u0275prov=le({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ju=new se("",{providedIn:"root",factory:()=>({})});let Ax=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=le({token:e,factory:function(){return Ee(Nx)},providedIn:"root"}),e})(),Nx=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function xx(e){throw e}function Px(e,t,n){return t.parse("/")}const kx={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Fx={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Qt=(()=>{class e{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=Ee(oO),this.isNgZoneEnabled=!1,this.options=Ee(ju,{optional:!0})||{},this.errorHandler=this.options.errorHandler||xx,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||Px,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=Ee(Ax),this.routeReuseStrategy=Ee(Mx),this.urlCreationStrategy=Ee(_N),this.titleStrategy=Ee(fw),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=vb(Ee(to,{optional:!0})??[]),this.navigationTransitions=Ee(Uu),this.urlSerializer=Ee(ds),this.location=Ee(Fd),this.isNgZoneEnabled=Ee(Xe)instanceof Xe&&Xe.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Er,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Ub(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(n=>{this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId??0},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const n=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),gs,n)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(n.url,r,n.state)},0)}))}navigateToSyncWithBrowser(n,r,i){const o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){const u={...i};delete u.navigationId,delete u.\u0275routerPageId,0!==Object.keys(u).length&&(o.state=u)}const a=this.parseUrl(n);this.scheduleNavigation(a,r,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(n){this.config=n.map(Of),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(n,r={}){const{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:u}=r,l=u?this.currentUrlTree.fragment:s;let c=null;switch(a){case"merge":c={...this.currentUrlTree.queryParams,...o};break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=o||null}return null!==c&&(c=this.removeEmptyProps(c)),this.urlCreationStrategy.createUrlTree(i,this.routerState,this.currentUrlTree,n,c,l??null)}navigateByUrl(n,r={skipLocationChange:!1}){const i=Zr(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,gs,null,r)}navigate(n,r={skipLocationChange:!1}){return function Lx(e){for(let t=0;t<e.length;t++){const n=e[t];if(null==n)throw new W(4008,false)}}(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){let r;try{r=this.urlSerializer.parse(n)}catch(i){r=this.malformedUriErrorHandler(i,this.urlSerializer,n)}return r}isActive(n,r){let i;if(i=!0===r?{...kx}:!1===r?{...Fx}:r,Zr(n))return _b(this.currentUrlTree,n,i);const o=this.parseUrl(n);return _b(this.currentUrlTree,o,i)}removeEmptyProps(n){return Object.keys(n).reduce((r,i)=>{const o=n[i];return null!=o&&(r[i]=o),r},{})}scheduleNavigation(n,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,u,l,c;return s?(a=s.resolve,u=s.reject,l=s.promise):l=new Promise((d,p)=>{a=d,u=p}),c="computed"===this.canceledNavigationResolution?i&&i.\u0275routerPageId?i.\u0275routerPageId:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:c,source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:o,resolve:a,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(d=>Promise.reject(d))}setBrowserUrl(n,r){const i=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl){const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(i,"",s)}else{const o={...r.extras.state,...this.generateNgRouterState(r.id,r.targetPageId)};this.location.go(i,"",o)}}restoreHistory(n,r=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-(this.browserPageId??this.currentPageId);0!==o?this.location.historyGo(o):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===o&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class hw{}let jx=(()=>{class e{constructor(n,r,i,o,s){this.router=n,this.injector=i,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(br(n=>n instanceof Yr),Gr(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const i=[];for(const o of r){o.providers&&!o._injector&&(o._injector=qa(o.providers,n,`Route: ${o.path}`));const s=o._injector??n,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return ut(i).pipe(si())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let i;i=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):ne(null);const o=i.pipe(mt(s=>null===s?ne(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));return r.loadComponent&&!r._loadedComponent?ut([o,this.loader.loadComponent(r)]).pipe(si()):o})}}return e.\u0275fac=function(n){return new(n||e)(oe(Qt),oe(Vv),oe(qn),oe(hw),oe(Pf))},e.\u0275prov=le({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Lf=new se("");let pw=(()=>{class e{constructor(n,r,i,o,s={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=i,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof vf?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Yr&&(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Fb&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Fb(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return e.\u0275fac=function(n){!function Jg(){throw new Error("invalid")}()},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();var Xt=(()=>((Xt=Xt||{})[Xt.COMPLETE=0]="COMPLETE",Xt[Xt.FAILED=1]="FAILED",Xt[Xt.REDIRECTING=2]="REDIRECTING",Xt))();const no=!1;function Cr(e,t){return{\u0275kind:e,\u0275providers:t}}const Bf=new se("",{providedIn:"root",factory:()=>!1});function mw(){const e=Ee(Jn);return t=>{const n=e.get(Ka);if(t!==n.components[0])return;const r=e.get(Qt),i=e.get(yw);1===e.get(Uf)&&r.initialNavigation(),e.get(vw,null,ie.Optional)?.setUpPreloading(),e.get(Lf,null,ie.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}const yw=new se(no?"bootstrap done indicator":"",{factory:()=>new We}),Uf=new se(no?"initial navigation":"",{providedIn:"root",factory:()=>1});function Wx(){let e=[];return e=no?[{provide:Ea,multi:!0,useFactory:()=>{const t=Ee(Qt);return()=>t.events.subscribe(n=>{console.group?.(`Router Event: ${n.constructor.name}`),console.log(function yN(e){if(!("type"in e))return`Unknown Router Event: ${e.constructor.name}`;switch(e.type){case 14:return`ActivationEnd(path: '${e.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${e.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${e.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${e.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state}, shouldActivate: ${e.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case 2:return`NavigationCancel(id: ${e.id}, url: '${e.url}')`;case 16:return`NavigationSkipped(id: ${e.id}, url: '${e.url}')`;case 1:return`NavigationEnd(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${e.id}, url: '${e.url}', error: ${e.error})`;case 0:return`NavigationStart(id: ${e.id}, url: '${e.url}')`;case 6:return`ResolveEnd(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case 5:return`ResolveStart(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case 10:return`RouteConfigLoadEnd(path: ${e.route.path})`;case 9:return`RouteConfigLoadStart(path: ${e.route.path})`;case 4:return`RoutesRecognized(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case 15:return`Scroll(anchor: '${e.anchor}', position: '${e.position?`${e.position[0]}, ${e.position[1]}`:null}')`}}(n)),console.log(n),console.groupEnd?.()})}}]:[],Cr(1,e)}const vw=new se(no?"router preloader":"");function qx(e){return Cr(0,[{provide:vw,useExisting:jx},{provide:hw,useExisting:e}])}const Es=!1,bw=new se(Es?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),Gx=[Fd,{provide:ds,useClass:ff},Qt,ys,{provide:Xi,useFactory:function gw(e){return e.routerState.root},deps:[Qt]},Pf,Es?{provide:Bf,useValue:!0}:[]];function Jx(){return new Zv("Router",Qt)}let ww=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[Gx,Es&&r?.enableTracing?Wx().\u0275providers:[],{provide:to,multi:!0,useValue:n},{provide:bw,useFactory:Xx,deps:[[Qt,new Ao,new No]]},{provide:ju,useValue:r||{}},r?.useHash?{provide:qr,useClass:qO}:{provide:qr,useClass:b0},{provide:Lf,useFactory:()=>{const e=Ee(fA),t=Ee(Xe),n=Ee(ju),r=Ee(Uu),i=Ee(ds);return n.scrollOffset&&e.setOffset(n.scrollOffset),new pw(i,r,e,t,n)}},r?.preloadingStrategy?qx(r.preloadingStrategy).\u0275providers:[],{provide:Zv,multi:!0,useFactory:Jx},r?.initialNavigation?Kx(r):[],[{provide:_w,useFactory:mw},{provide:Jv,multi:!0,useExisting:_w}]]}}static forChild(n){return{ngModule:e,providers:[{provide:to,multi:!0,useValue:n}]}}}return e.\u0275fac=function(n){return new(n||e)(oe(bw,8))},e.\u0275mod=Or({type:e}),e.\u0275inj=lr({imports:[Mf]}),e})();function Xx(e){if(Es&&e)throw new W(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Kx(e){return["disabled"===e.initialNavigation?Cr(3,[{provide:Ya,multi:!0,useFactory:()=>{const t=Ee(Qt);return()=>{t.setUpLocationChangeListener()}}},{provide:Uf,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Cr(2,[{provide:Uf,useValue:0},{provide:Ya,multi:!0,deps:[Jn],useFactory:t=>{const n=t.get(zO,Promise.resolve());return()=>n.then(()=>new Promise(r=>{const i=t.get(Qt),o=t.get(yw);(function Vx(e,t){e.events.pipe(br(n=>n instanceof Yr||n instanceof Tu||n instanceof bf||n instanceof Ou),De(n=>n instanceof Yr||n instanceof Ou?Xt.COMPLETE:n instanceof Tu&&(0===n.code||1===n.code)?Xt.REDIRECTING:Xt.FAILED),br(n=>n!==Xt.REDIRECTING),qi(1)).subscribe(()=>{t()})})(i,()=>{r(!0)}),t.get(Uu).afterPreactivation=()=>(r(!0),o.closed?ne(void 0):o),i.initialNavigation()}))}}]).\u0275providers:[]]}const _w=new se(Es?"Router Initializer":""),tP=[];let nP=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Or({type:e}),e.\u0275inj=lr({imports:[ww.forRoot(tP),ww]}),e})();function Dw(e,t,n,r,i,o,s){try{var a=e[o](s),u=a.value}catch(l){return void n(l)}a.done?t(u):Promise.resolve(u).then(r,i)}function Kt(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function s(u){Dw(o,r,i,s,a,"next",u)}function a(u){Dw(o,r,i,s,a,"throw",u)}s(void 0)})}}function pt(e){return"function"==typeof e}function Ew(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const jf=Ew(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function Vf(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class rr{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const o of n)o.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(pt(r))try{r()}catch(o){t=o instanceof jf?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{Iw(o)}catch(s){t=t??[],s instanceof jf?t=[...t,...s.errors]:t.push(s)}}if(t)throw new jf(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Iw(t);else{if(t instanceof rr){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Vf(n,t)}remove(t){const{_finalizers:n}=this;n&&Vf(n,t),t instanceof rr&&t._removeParent(this)}}rr.EMPTY=(()=>{const e=new rr;return e.closed=!0,e})();const Cw=rr.EMPTY;function Sw(e){return e instanceof rr||e&&"closed"in e&&pt(e.remove)&&pt(e.add)&&pt(e.unsubscribe)}function Iw(e){pt(e)?e():e.unsubscribe()}const Qr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Vu={setTimeout(e,t,...n){const{delegate:r}=Vu;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=Vu;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Mw(e){Vu.setTimeout(()=>{const{onUnhandledError:t}=Qr;if(!t)throw e;t(e)})}function Tw(){}const rP=Hf("C",void 0,void 0);function Hf(e,t,n){return{kind:e,value:t,error:n}}let Xr=null;function Hu(e){if(Qr.useDeprecatedSynchronousErrorHandling){const t=!Xr;if(t&&(Xr={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=Xr;if(Xr=null,n)throw r}}else e()}class $f extends rr{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Sw(t)&&t.add(this)):this.destination=cP}static create(t,n,r){return new Cs(t,n,r)}next(t){this.isStopped?Wf(function oP(e){return Hf("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Wf(function iP(e){return Hf("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Wf(rP,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const aP=Function.prototype.bind;function zf(e,t){return aP.call(e,t)}class uP{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){$u(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){$u(r)}else $u(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){$u(n)}}}class Cs extends $f{constructor(t,n,r){let i;if(super(),pt(t)||!t)i={next:t??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&Qr.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&zf(t.next,o),error:t.error&&zf(t.error,o),complete:t.complete&&zf(t.complete,o)}):i=t}this.destination=new uP(i)}}function $u(e){Qr.useDeprecatedSynchronousErrorHandling?function sP(e){Qr.useDeprecatedSynchronousErrorHandling&&Xr&&(Xr.errorThrown=!0,Xr.error=e)}(e):Mw(e)}function Wf(e,t){const{onStoppedNotification:n}=Qr;n&&Vu.setTimeout(()=>n(e,t))}const cP={closed:!0,next:Tw,error:function lP(e){throw e},complete:Tw},qf="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ow(e){return e}let ln=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,i){const o=function fP(e){return e&&e instanceof $f||function dP(e){return e&&pt(e.next)&&pt(e.error)&&pt(e.complete)}(e)&&Sw(e)}(n)?n:new Cs(n,r,i);return Hu(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=Aw(r))((i,o)=>{const s=new Cs({next:a=>{try{n(a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[qf](){return this}pipe(...n){return function Rw(e){return 0===e.length?Ow:1===e.length?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}(n)(this)}toPromise(n){return new(n=Aw(n))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function Aw(e){var t;return null!==(t=e??Qr.Promise)&&void 0!==t?t:Promise}const hP=Ew(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let ro=(()=>{class e extends ln{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new Nw(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new hP}next(n){Hu(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){Hu(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Hu(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:i,observers:o}=this;return r||i?Cw:(this.currentObservers=null,o.push(n),new rr(()=>{this.currentObservers=null,Vf(o,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){const n=new ln;return n.source=this,n}}return e.create=(t,n)=>new Nw(t,n),e})();class Nw extends ro{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:Cw}}class Gf extends ro{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function Sr(e){return this instanceof Sr?(this.v=e,this):new Sr(e)}function Fw(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function Qf(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,u){!function i(o,s,a,u){Promise.resolve(u).then(function(l){o({value:l,done:a})},s)}(a,u,(s=e[o](s)).done,s.value)})}}}const Lw=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Bw(e){return pt(e?.then)}function Uw(e){return pt(e[qf])}function jw(e){return Symbol.asyncIterator&&pt(e?.[Symbol.asyncIterator])}function Vw(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Hw=function NP(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function $w(e){return pt(e?.[Hw])}function zw(e){return function kw(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(e,t||[]),o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(p){r[p]&&(i[p]=function(w){return new Promise(function(T,R){o.push([p,w,T,R])>1||a(p,w)})})}function a(p,w){try{!function u(p){p.value instanceof Sr?Promise.resolve(p.value.v).then(l,c):d(o[0][2],p)}(r[p](w))}catch(T){d(o[0][3],T)}}function l(p){a("next",p)}function c(p){a("throw",p)}function d(p,w){p(w),o.shift(),o.length&&a(o[0][0],o[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:i}=yield Sr(n.read());if(i)return yield Sr(void 0);yield yield Sr(r)}}finally{n.releaseLock()}})}function Ww(e){return pt(e?.getReader)}function Kr(e){if(e instanceof ln)return e;if(null!=e){if(Uw(e))return function xP(e){return new ln(t=>{const n=e[qf]();if(pt(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Lw(e))return function PP(e){return new ln(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}(e);if(Bw(e))return function kP(e){return new ln(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Mw)})}(e);if(jw(e))return qw(e);if($w(e))return function FP(e){return new ln(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(Ww(e))return function LP(e){return qw(zw(e))}(e)}throw Vw(e)}function qw(e){return new ln(t=>{(function BP(e,t){var n,r,i,o;return function xw(e,t,n,r){return new(n||(n=Promise))(function(o,s){function a(c){try{l(r.next(c))}catch(d){s(d)}}function u(c){try{l(r.throw(c))}catch(d){s(d)}}function l(c){c.done?o(c.value):function i(o){return o instanceof n?o:new n(function(s){s(o)})}(c.value).then(a,u)}l((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=Fw(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function Ir(e,t,n,r=0,i=!1){const o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function ei(e){return t=>{if(function UP(e){return pt(e?.lift)}(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ss(e,t,n,r,i){return new jP(e,t,n,r,i)}class jP extends $f{constructor(t,n,r,i,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=i?function(a){try{i(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function Gw(e,t=0){return ei((n,r)=>{n.subscribe(Ss(r,i=>Ir(r,e,()=>r.next(i),t),()=>Ir(r,e,()=>r.complete(),t),i=>Ir(r,e,()=>r.error(i),t)))})}function Jw(e,t=0){return ei((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Zw(e,t){if(!e)throw new Error("Iterable cannot be null");return new ln(n=>{Ir(n,t,()=>{const r=e[Symbol.asyncIterator]();Ir(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function Yw(e,t){return t?function qP(e,t){if(null!=e){if(Uw(e))return function VP(e,t){return Kr(e).pipe(Jw(t),Gw(t))}(e,t);if(Lw(e))return function $P(e,t){return new ln(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(Bw(e))return function HP(e,t){return Kr(e).pipe(Jw(t),Gw(t))}(e,t);if(jw(e))return Zw(e,t);if($w(e))return function zP(e,t){return new ln(n=>{let r;return Ir(n,t,()=>{r=e[Hw](),Ir(n,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){return void n.error(s)}o?n.complete():n.next(i)},0,!0)}),()=>pt(r?.return)&&r.return()})}(e,t);if(Ww(e))return function WP(e,t){return Zw(zw(e),t)}(e,t)}throw Vw(e)}(e,t):Kr(e)}function Qw(e,t,n=1/0){return pt(t)?Qw((r,i)=>function GP(e,t){return ei((n,r)=>{let i=0;n.subscribe(Ss(r,o=>{r.next(e.call(t,o,i++))}))})}((o,s)=>t(r,o,i,s))(Kr(e(r,i))),n):("number"==typeof t&&(n=t),ei((r,i)=>function JP(e,t,n,r,i,o,s,a){const u=[];let l=0,c=0,d=!1;const p=()=>{d&&!u.length&&!l&&t.complete()},w=R=>l<r?T(R):u.push(R),T=R=>{o&&t.next(R),l++;let N=!1;Kr(n(R,c++)).subscribe(Ss(t,k=>{i?.(k),o?w(k):t.next(k)},()=>{N=!0},void 0,()=>{if(N)try{for(l--;u.length&&l<r;){const k=u.shift();s?Ir(t,s,()=>T(k)):T(k)}p()}catch(k){t.error(k)}}))};return e.subscribe(Ss(t,w,()=>{d=!0,p()})),()=>{a?.()}}(r,i,e,n)))}var wt=(()=>{return(e=wt||(wt={})).STOPPED="stopped",e.ALIVE="alive",e.DEAD="dead",e.ERROR="error",wt;var e})();class Wu extends Error{constructor(t,n,r){t instanceof Error?(super(t.message),this.name=t.name,this.stack=t.stack):super(t),this.code=n,this.statusCode=r}}var Ln=(()=>{return(e=Ln||(Ln={}))[e.Query=0]="Query",e[e.List=1]="List",Ln;var e})();class YP{constructor(t){Object.assign(this,t)}toJSON(){return{operation:this.operation,predicates:this.predicates.map(t=>t.toJSON())}}toJSONString(){return JSON.stringify(this.toJSON())}}const ti=e=>e?.filter((t,n,r)=>r.indexOf(t)===n);class ni{constructor(t){t instanceof YP?(this.lookupType=Ln.Query,this.lookupValue=t):(this.lookupType=Ln.List,this.lookupValue=t?ti(t).map(n=>n.trim()):[])}toID(){var t;return this.lookupType===Ln.List?this.lookupValue.sort():[null===(t=this.lookupValue)||void 0===t?void 0:t.toJSONString()]}}function Xf(e,t){return ei((n,r)=>{let i=0;n.subscribe(Ss(r,o=>e.call(t,o,i++)&&r.next(o)))})}typeof window<"u"&&window,"object"==typeof self&&self.constructor&&self;const XP=typeof process<"u"&&null!=process.versions&&null!=process.versions.node;class KP{constructor(t,n){this.value=t,this.refreshToken=n;const r=this.getJWTPayload(t);this.audience="string"==typeof r.aud?r.aud:void 0,this.expires=r.exp?new Date(1e3*Number(r.exp)):void 0,this.issuedAt=r.iat?new Date(1e3*Number(r.iat)):void 0,this.issuer="string"==typeof r.iss?r.iss:void 0,this.subject="string"==typeof r.sub?r.sub:void 0}get bearer(){return`Bearer ${this.value}`}isExpiredIn(t=0,n="minutes"){return!!this.expires&&this.expires.getTime()-Date.now()<=t*{minutes:6e4,seconds:1e3,hours:36e5}[n]}isExpired(){return this.isExpiredIn()}getJWTPayload(t){const n=t.split(".");if(n.length<2)throw new Error("Invalid token, missing payload");if(n.length>3)throw new Error("Invalid token, too many parts");const[r,i]=n.slice(0,2).map(o=>JSON.parse(this.decodeBase64(o)));if("object"!=typeof i)throw new Error("Invalid token, payload must be an object");if("object"!=typeof r)throw new Error("Invalid token, header must be an object");if(!("typ"in r)||"JWT"!==r.typ)throw new Error("Invalid token, must be a JWT");return i}decodeBase64(t){return XP?Buffer.from(t,"base64").toString("utf-8"):atob(t)}}var Xw=P(87),ek=P(732),gt=P.n(ek);gt().setDefaultLevel("silent"),Xw.reg(gt()),Xw.apply(gt(),{format:(e,t,n)=>`[${n}] ${e.toUpperCase()} ${t}:`});class qu{static getInstance(t){if(t){const n=gt().getLogger(t);return n.setLevel(gt().getLevel()),n}return gt()}static enableAll(){gt().enableAll();for(const t in gt().getLoggers())gt().getLogger(t).enableAll()}static disableAll(){gt().disableAll();for(const t in gt().getLoggers())gt().getLogger(t).disableAll()}static setLevel(t){gt().setLevel(t);for(const n in gt().getLoggers())gt().getLogger(n).setLevel(gt().getLevel())}}const Kf=e=>Object.keys(e).sort().map(t=>"token"!==t&&`${t}:${e[t]}`).filter(Boolean).join();let Gu=(()=>{class e{static getChangeSubject(){return e.changeSubject$||(e.changeSubject$=new ro),e.changeSubject$}static getSDKInstance(n){const r=Kf(n);return e.instances[r]}static putSDKInstance(n,r){var i;const o=Kf(n);null!==(i=e.instances)&&void 0!==i&&i[o]||(e.instances[o]=r)}static removeSDKInstance(n){var r;const i=Kf(n);null!==(r=e.instances)&&void 0!==r&&r[i]&&delete e.instances[i]}}return e.instances={},e})();class ir{constructor(){this.teleStreams=new Map,this.logger=qu.getInstance("StreamRegister")}static getInstance(){return ir.instance||(ir.instance=new ir),ir.instance}static getIdentifier(t,n){return`${t}-${n??""}`}addStream(t){var n=this;return Kt(function*(){try{n.teleStreams.has(t.identifier)&&(yield n.removeStream(t)),n.teleStreams.set(t.identifier,t)}catch(r){throw n.logger.error(`Failed to add stream to list. identifier: ${t.identifier}`,r),"string"==typeof r||r instanceof Error?new Wu(r,"STREAM_LISTENER_ERROR"):r}})()}getStream(t){return this.teleStreams.get(t)}removeStream(t){var n=this;return Kt(function*(){try{t.stopStream(),n.teleStreams.delete(t.identifier)}catch(r){throw n.logger.error(`Failed to remove stream from list. identifier: ${t.identifier}`,r),"string"==typeof r||r instanceof Error?new Wu(r,"STREAM_LISTENER_ERROR"):r}})()}removeAllStreams(){var t=this;return Kt(function*(){try{for(const[,n]of t.teleStreams.entries())yield t.removeStream(n)}catch(n){throw t.logger.error(`error removing stream, ${n}`),"string"==typeof n||n instanceof Error?new Wu(n,"STREAM_LISTENER_ERROR"):n}return!0})()}}class tk{constructor(t,n){this.status=!1,this.status$=new ro,this.config=n,this.logger=qu.getInstance(`${t}(${this.config.url})`)}getStatus(){return this.status}initStream(t){var n=this;return Kt(function*(){const r=Gu.getSDKInstance(n.config).getAuthService();if(!n.config.token||!r.isTokenValid(new KP(n.config.token)))try{const i=yield r.getToken();t.setToken(i.value)}catch(i){throw n.logger.error("Can not retrieve auth token",i),new Error("Can not retrieve auth token")}r.startTokenRefreshChecker()})()}createStreamFromConfig(t,n){var r=this;return Kt(function*(){const i=ir.getIdentifier(t),o=ir.getInstance();let s=o.getStream(i),a=!1;return s||(a=!0,s=r.getStream(n),s.statusStream$.subscribe(u=>{r.status=u===wt.STOPPED||u===wt.ALIVE,r.status$.next(u)}),yield o.addStream(s),yield r.initStream(s)),{stream:s,isNew:a}})()}}const Kw="telemetry";var eh=P(629),th=P(308),e_=P(458),G=P(176);function nh(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new Cs({next:()=>{r.unsubscribe(),e()}});return Kr(t(...n)).subscribe(r)}var ri=(()=>{return(e=ri||(ri={}))[e.OK=0]="OK",e[e.REJECT=1]="REJECT",ri;var e})();function rk(e){switch(e){case 0:case"OK":return ri.OK;case 1:case"REJECT":return ri.REJECT;default:throw new Tt.Error("Unrecognized enum value "+e+" for enum TelemetryAckStatus")}}var Is=(()=>{return(e=Is||(Is={}))[e.OR=0]="OR",Is;var e})();function ok(e){switch(e){case 0:case"OR":return Is.OR;default:throw new Tt.Error("Unrecognized enum value "+e+" for enum LogicalOperation")}}var Ms=(()=>{return(e=Ms||(Ms={}))[e.EQUAL=0]="EQUAL",Ms;var e})();function ak(e){switch(e){case 0:case"EQUAL":return Ms.EQUAL;default:throw new Tt.Error("Unrecognized enum value "+e+" for enum ComparisonOperation")}}var Ts=(()=>{return(e=Ts||(Ts={}))[e.TAG=0]="TAG",Ts;var e})();function lk(e){switch(e){case 0:case"TAG":return Ts.TAG;default:throw new Tt.Error("Unrecognized enum value "+e+" for enum PredicateAttribute")}}function t_(){return{source:"",payload:new Uint8Array(0),callsign:"",created:0,seq:0,meta:{},uid:""}}const or={encode:(e,t=G.Writer.create())=>(""!==e.source&&t.uint32(10).string(e.source),0!==e.payload.length&&t.uint32(18).bytes(e.payload),""!==e.callsign&&t.uint32(26).string(e.callsign),0!==e.created&&t.uint32(32).int64(e.created),0!==e.seq&&t.uint32(40).uint64(e.seq),Object.entries(e.meta).forEach(([n,r])=>{rh.encode({key:n,value:r},t.uint32(50).fork()).ldelim()}),""!==e.uid&&t.uint32(58).string(e.uid),t),decode(e,t){const n=e instanceof G.Reader?e:G.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const i=t_();for(;n.pos<r;){const o=n.uint32();switch(o>>>3){case 1:if(10!==o)break;i.source=n.string();continue;case 2:if(18!==o)break;i.payload=n.bytes();continue;case 3:if(26!==o)break;i.callsign=n.string();continue;case 4:if(32!==o)break;i.created=M_(n.int64());continue;case 5:if(40!==o)break;i.seq=M_(n.uint64());continue;case 6:if(50!==o)break;const s=rh.decode(n,n.uint32());void 0!==s.value&&(i.meta[s.key]=s.value);continue;case 7:if(58!==o)break;i.uid=n.string();continue}if(4==(7&o)||0===o)break;n.skipType(7&o)}return i},fromJSON:e=>({source:Ie(e.source)?String(e.source):"",payload:Ie(e.payload)?Ck(e.payload):new Uint8Array(0),callsign:Ie(e.callsign)?String(e.callsign):"",created:Ie(e.created)?Number(e.created):0,seq:Ie(e.seq)?Number(e.seq):0,meta:Ik(e.meta)?Object.entries(e.meta).reduce((t,[n,r])=>(t[n]=String(r),t),{}):{},uid:Ie(e.uid)?String(e.uid):""}),toJSON(e){const t={};if(""!==e.source&&(t.source=e.source),0!==e.payload.length&&(t.payload=function Sk(e){if(Tt.Buffer)return Tt.Buffer.from(e).toString("base64");{const t=[];return e.forEach(n=>{t.push(String.fromCharCode(n))}),Tt.btoa(t.join(""))}}(e.payload)),""!==e.callsign&&(t.callsign=e.callsign),0!==e.created&&(t.created=Math.round(e.created)),0!==e.seq&&(t.seq=Math.round(e.seq)),e.meta){const n=Object.entries(e.meta);n.length>0&&(t.meta={},n.forEach(([r,i])=>{t.meta[r]=i}))}return""!==e.uid&&(t.uid=e.uid),t},create:e=>or.fromPartial(e??{}),fromPartial(e){var t,n,r,i,o,s,a;const u=t_();return u.source=null!==(t=e.source)&&void 0!==t?t:"",u.payload=null!==(n=e.payload)&&void 0!==n?n:new Uint8Array(0),u.callsign=null!==(r=e.callsign)&&void 0!==r?r:"",u.created=null!==(i=e.created)&&void 0!==i?i:0,u.seq=null!==(o=e.seq)&&void 0!==o?o:0,u.meta=Object.entries(null!==(s=e.meta)&&void 0!==s?s:{}).reduce((l,[c,d])=>(void 0!==d&&(l[c]=String(d)),l),{}),u.uid=null!==(a=e.uid)&&void 0!==a?a:"",u}},rh={encode:(e,t=G.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof G.Reader?e:G.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const i={key:"",value:""};for(;n.pos<r;){const o=n.uint32();switch(o>>>3){case 1:if(10!==o)break;i.key=n.string();continue;case 2:if(18!==o)break;i.value=n.string();continue}if(4==(7&o)||0===o)break;n.skipType(7&o)}return i},fromJSON:e=>({key:Ie(e.key)?String(e.key):"",value:Ie(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>rh.fromPartial(e??{}),fromPartial(e){var t,n;const r={key:"",value:""};return r.key=null!==(t=e.key)&&void 0!==t?t:"",r.value=null!==(n=e.value)&&void 0!==n?n:"",r}},ii={encode:(e,t=G.Writer.create())=>(""!==e.uid&&t.uint32(10).string(e.uid),0!==e.status&&t.uint32(16).int32(e.status),!0===e.noRetry&&t.uint32(24).bool(e.noRetry),t),decode(e,t){const n=e instanceof G.Reader?e:G.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const i={uid:"",status:0,noRetry:!1};for(;n.pos<r;){const o=n.uint32();switch(o>>>3){case 1:if(10!==o)break;i.uid=n.string();continue;case 2:if(16!==o)break;i.status=n.int32();continue;case 3:if(24!==o)break;i.noRetry=n.bool();continue}if(4==(7&o)||0===o)break;n.skipType(7&o)}return i},fromJSON:e=>({uid:Ie(e.uid)?String(e.uid):"",status:Ie(e.status)?rk(e.status):0,noRetry:!!Ie(e.noRetry)&&Boolean(e.noRetry)}),toJSON(e){const t={};return""!==e.uid&&(t.uid=e.uid),0!==e.status&&(t.status=function ik(e){switch(e){case ri.OK:return"OK";case ri.REJECT:return"REJECT";default:throw new Tt.Error("Unrecognized enum value "+e+" for enum TelemetryAckStatus")}}(e.status)),!0===e.noRetry&&(t.noRetry=e.noRetry),t},create:e=>ii.fromPartial(e??{}),fromPartial(e){var t,n,r;const i={uid:"",status:0,noRetry:!1};return i.uid=null!==(t=e.uid)&&void 0!==t?t:"",i.status=null!==(n=e.status)&&void 0!==n?n:0,i.noRetry=null!==(r=e.noRetry)&&void 0!==r&&r,i}},u_={encode(e,t=G.Writer.create()){for(const n of e.requestedActions)io.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){const n=e instanceof G.Reader?e:G.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const i={requestedActions:[]};for(;n.pos<r;){const o=n.uint32();switch(o>>>3){case 2:if(18!==o)break;i.requestedActions.push(io.decode(n,n.uint32()));continue}if(4==(7&o)||0===o)break;n.skipType(7&o)}return i},fromJSON:e=>({requestedActions:Array.isArray(e?.requestedActions)?e.requestedActions.map(t=>io.fromJSON(t)):[]}),toJSON(e){var t;const n={};return!(null===(t=e.requestedActions)||void 0===t)&&t.length&&(n.requestedActions=e.requestedActions.map(r=>io.toJSON(r))),n},create:e=>u_.fromPartial(e??{}),fromPartial(e){var t;const n={requestedActions:[]};return n.requestedActions=(null===(t=e.requestedActions)||void 0===t?void 0:t.map(r=>io.fromPartial(r)))||[],n}},io={encode(e,t=G.Writer.create()){""!==e.operation&&t.uint32(10).string(e.operation);for(const n of e.sources)t.uint32(18).string(n);return t},decode(e,t){const n=e instanceof G.Reader?e:G.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const i={operation:"",sources:[]};for(;n.pos<r;){const o=n.uint32();switch(o>>>3){case 1:if(10!==o)break;i.operation=n.string();continue;case 2:if(18!==o)break;i.sources.push(n.string());continue}if(4==(7&o)||0===o)break;n.skipType(7&o)}return i},fromJSON:e=>({operation:Ie(e.operation)?String(e.operation):"",sources:Array.isArray(e?.sources)?e.sources.map(t=>String(t)):[]}),toJSON(e){var t;const n={};return""!==e.operation&&(n.operation=e.operation),!(null===(t=e.sources)||void 0===t)&&t.length&&(n.sources=e.sources),n},create:e=>io.fromPartial(e??{}),fromPartial(e){var t,n;const r={operation:"",sources:[]};return r.operation=null!==(t=e.operation)&&void 0!==t?t:"",r.sources=(null===(n=e.sources)||void 0===n?void 0:n.map(i=>i))||[],r}},Os={encode(e,t=G.Writer.create()){""!==e.subscriberId&&t.uint32(10).string(e.subscriberId);for(const n of e.requestedActions)oo.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){const n=e instanceof G.Reader?e:G.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const i={subscriberId:"",requestedActions:[]};for(;n.pos<r;){const o=n.uint32();switch(o>>>3){case 1:if(10!==o)break;i.subscriberId=n.string();continue;case 2:if(18!==o)break;i.requestedActions.push(oo.decode(n,n.uint32()));continue}if(4==(7&o)||0===o)break;n.skipType(7&o)}return i},fromJSON:e=>({subscriberId:Ie(e.subscriberId)?String(e.subscriberId):"",requestedActions:Array.isArray(e?.requestedActions)?e.requestedActions.map(t=>oo.fromJSON(t)):[]}),toJSON(e){var t;const n={};return""!==e.subscriberId&&(n.subscriberId=e.subscriberId),!(null===(t=e.requestedActions)||void 0===t)&&t.length&&(n.requestedActions=e.requestedActions.map(r=>oo.toJSON(r))),n},create:e=>Os.fromPartial(e??{}),fromPartial(e){var t,n;const r={subscriberId:"",requestedActions:[]};return r.subscriberId=null!==(t=e.subscriberId)&&void 0!==t?t:"",r.requestedActions=(null===(n=e.requestedActions)||void 0===n?void 0:n.map(i=>oo.fromPartial(i)))||[],r}},Rs={encode(e,t=G.Writer.create()){""!==e.subscriberId&&t.uint32(10).string(e.subscriberId),""!==e.operation&&t.uint32(18).string(e.operation),void 0!==e.callsignQuery&&Dn.encode(e.callsignQuery,t.uint32(26).fork()).ldelim();for(const n of e.sources)t.uint32(34).string(n);return t},decode(e,t){const n=e instanceof G.Reader?e:G.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const i={subscriberId:"",operation:"",callsignQuery:void 0,sources:[]};for(;n.pos<r;){const o=n.uint32();switch(o>>>3){case 1:if(10!==o)break;i.subscriberId=n.string();continue;case 2:if(18!==o)break;i.operation=n.string();continue;case 3:if(26!==o)break;i.callsignQuery=Dn.decode(n,n.uint32());continue;case 4:if(34!==o)break;i.sources.push(n.string());continue}if(4==(7&o)||0===o)break;n.skipType(7&o)}return i},fromJSON:e=>({subscriberId:Ie(e.subscriberId)?String(e.subscriberId):"",operation:Ie(e.operation)?String(e.operation):"",callsignQuery:Ie(e.callsignQuery)?Dn.fromJSON(e.callsignQuery):void 0,sources:Array.isArray(e?.sources)?e.sources.map(t=>String(t)):[]}),toJSON(e){var t;const n={};return""!==e.subscriberId&&(n.subscriberId=e.subscriberId),""!==e.operation&&(n.operation=e.operation),void 0!==e.callsignQuery&&(n.callsignQuery=Dn.toJSON(e.callsignQuery)),!(null===(t=e.sources)||void 0===t)&&t.length&&(n.sources=e.sources),n},create:e=>Rs.fromPartial(e??{}),fromPartial(e){var t,n,r;const i={subscriberId:"",operation:"",callsignQuery:void 0,sources:[]};return i.subscriberId=null!==(t=e.subscriberId)&&void 0!==t?t:"",i.operation=null!==(n=e.operation)&&void 0!==n?n:"",i.callsignQuery=null!=e.callsignQuery?Dn.fromPartial(e.callsignQuery):void 0,i.sources=(null===(r=e.sources)||void 0===r?void 0:r.map(o=>o))||[],i}},oo={encode(e,t=G.Writer.create()){""!==e.operation&&t.uint32(10).string(e.operation);for(const n of e.callsigns)t.uint32(18).string(n);for(const n of e.sources)t.uint32(26).string(n);return void 0!==e.subscribeOperation&&so.encode(e.subscribeOperation,t.uint32(34).fork()).ldelim(),void 0!==e.unsubscribeOperation&&ao.encode(e.unsubscribeOperation,t.uint32(42).fork()).ldelim(),t},decode(e,t){const n=e instanceof G.Reader?e:G.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const i={operation:"",callsigns:[],sources:[],subscribeOperation:void 0,unsubscribeOperation:void 0};for(;n.pos<r;){const o=n.uint32();switch(o>>>3){case 1:if(10!==o)break;i.operation=n.string();continue;case 2:if(18!==o)break;i.callsigns.push(n.string());continue;case 3:if(26!==o)break;i.sources.push(n.string());continue;case 4:if(34!==o)break;i.subscribeOperation=so.decode(n,n.uint32());continue;case 5:if(42!==o)break;i.unsubscribeOperation=ao.decode(n,n.uint32());continue}if(4==(7&o)||0===o)break;n.skipType(7&o)}return i},fromJSON:e=>({operation:Ie(e.operation)?String(e.operation):"",callsigns:Array.isArray(e?.callsigns)?e.callsigns.map(t=>String(t)):[],sources:Array.isArray(e?.sources)?e.sources.map(t=>String(t)):[],subscribeOperation:Ie(e.subscribeOperation)?so.fromJSON(e.subscribeOperation):void 0,unsubscribeOperation:Ie(e.unsubscribeOperation)?ao.fromJSON(e.unsubscribeOperation):void 0}),toJSON(e){var t,n;const r={};return""!==e.operation&&(r.operation=e.operation),!(null===(t=e.callsigns)||void 0===t)&&t.length&&(r.callsigns=e.callsigns),!(null===(n=e.sources)||void 0===n)&&n.length&&(r.sources=e.sources),void 0!==e.subscribeOperation&&(r.subscribeOperation=so.toJSON(e.subscribeOperation)),void 0!==e.unsubscribeOperation&&(r.unsubscribeOperation=ao.toJSON(e.unsubscribeOperation)),r},create:e=>oo.fromPartial(e??{}),fromPartial(e){var t,n,r;const i={operation:"",callsigns:[],sources:[],subscribeOperation:void 0,unsubscribeOperation:void 0};return i.operation=null!==(t=e.operation)&&void 0!==t?t:"",i.callsigns=(null===(n=e.callsigns)||void 0===n?void 0:n.map(o=>o))||[],i.sources=(null===(r=e.sources)||void 0===r?void 0:r.map(o=>o))||[],i.subscribeOperation=null!=e.subscribeOperation?so.fromPartial(e.subscribeOperation):void 0,i.unsubscribeOperation=null!=e.unsubscribeOperation?ao.fromPartial(e.unsubscribeOperation):void 0,i}},so={encode(e,t=G.Writer.create()){for(const n of e.options)uo.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof G.Reader?e:G.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const i={options:[]};for(;n.pos<r;){const o=n.uint32();switch(o>>>3){case 1:if(10!==o)break;i.options.push(uo.decode(n,n.uint32()));continue}if(4==(7&o)||0===o)break;n.skipType(7&o)}return i},fromJSON:e=>({options:Array.isArray(e?.options)?e.options.map(t=>uo.fromJSON(t)):[]}),toJSON(e){var t;const n={};return!(null===(t=e.options)||void 0===t)&&t.length&&(n.options=e.options.map(r=>uo.toJSON(r))),n},create:e=>so.fromPartial(e??{}),fromPartial(e){var t;const n={options:[]};return n.options=(null===(t=e.options)||void 0===t?void 0:t.map(r=>uo.fromPartial(r)))||[],n}},ao={encode(e,t=G.Writer.create()){for(const n of e.options)lo.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof G.Reader?e:G.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const i={options:[]};for(;n.pos<r;){const o=n.uint32();switch(o>>>3){case 1:if(10!==o)break;i.options.push(lo.decode(n,n.uint32()));continue}if(4==(7&o)||0===o)break;n.skipType(7&o)}return i},fromJSON:e=>({options:Array.isArray(e?.options)?e.options.map(t=>lo.fromJSON(t)):[]}),toJSON(e){var t;const n={};return!(null===(t=e.options)||void 0===t)&&t.length&&(n.options=e.options.map(r=>lo.toJSON(r))),n},create:e=>ao.fromPartial(e??{}),fromPartial(e){var t;const n={options:[]};return n.options=(null===(t=e.options)||void 0===t?void 0:t.map(r=>lo.fromPartial(r)))||[],n}},uo={encode:(e,t=G.Writer.create())=>(void 0!==e.receivergroupSubscribeOption&&co.encode(e.receivergroupSubscribeOption,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof G.Reader?e:G.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const i={receivergroupSubscribeOption:void 0};for(;n.pos<r;){const o=n.uint32();switch(o>>>3){case 1:if(10!==o)break;i.receivergroupSubscribeOption=co.decode(n,n.uint32());continue}if(4==(7&o)||0===o)break;n.skipType(7&o)}return i},fromJSON:e=>({receivergroupSubscribeOption:Ie(e.receivergroupSubscribeOption)?co.fromJSON(e.receivergroupSubscribeOption):void 0}),toJSON(e){const t={};return void 0!==e.receivergroupSubscribeOption&&(t.receivergroupSubscribeOption=co.toJSON(e.receivergroupSubscribeOption)),t},create:e=>uo.fromPartial(e??{}),fromPartial(e){const t={receivergroupSubscribeOption:void 0};return t.receivergroupSubscribeOption=null!=e.receivergroupSubscribeOption?co.fromPartial(e.receivergroupSubscribeOption):void 0,t}},lo={encode:(e,t=G.Writer.create())=>(void 0!==e.receivergroupUnsubscribeOption&&fo.encode(e.receivergroupUnsubscribeOption,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof G.Reader?e:G.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const i={receivergroupUnsubscribeOption:void 0};for(;n.pos<r;){const o=n.uint32();switch(o>>>3){case 1:if(10!==o)break;i.receivergroupUnsubscribeOption=fo.decode(n,n.uint32());continue}if(4==(7&o)||0===o)break;n.skipType(7&o)}return i},fromJSON:e=>({receivergroupUnsubscribeOption:Ie(e.receivergroupUnsubscribeOption)?fo.fromJSON(e.receivergroupUnsubscribeOption):void 0}),toJSON(e){const t={};return void 0!==e.receivergroupUnsubscribeOption&&(t.receivergroupUnsubscribeOption=fo.toJSON(e.receivergroupUnsubscribeOption)),t},create:e=>lo.fromPartial(e??{}),fromPartial(e){const t={receivergroupUnsubscribeOption:void 0};return t.receivergroupUnsubscribeOption=null!=e.receivergroupUnsubscribeOption?fo.fromPartial(e.receivergroupUnsubscribeOption):void 0,t}},co={encode:(e,t=G.Writer.create())=>(0!==e.startPosition&&t.uint32(8).int32(e.startPosition),t),decode(e,t){const n=e instanceof G.Reader?e:G.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const i={startPosition:0};for(;n.pos<r;){const o=n.uint32();switch(o>>>3){case 1:if(8!==o)break;i.startPosition=n.int32();continue}if(4==(7&o)||0===o)break;n.skipType(7&o)}return i},fromJSON:e=>({startPosition:Ie(e.startPosition)?Number(e.startPosition):0}),toJSON(e){const t={};return 0!==e.startPosition&&(t.startPosition=Math.round(e.startPosition)),t},create:e=>co.fromPartial(e??{}),fromPartial(e){var t;const n={startPosition:0};return n.startPosition=null!==(t=e.startPosition)&&void 0!==t?t:0,n}},fo={encode:(e,t=G.Writer.create())=>(!0===e.terminate&&t.uint32(8).bool(e.terminate),t),decode(e,t){const n=e instanceof G.Reader?e:G.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const i={terminate:!1};for(;n.pos<r;){const o=n.uint32();switch(o>>>3){case 1:if(8!==o)break;i.terminate=n.bool();continue}if(4==(7&o)||0===o)break;n.skipType(7&o)}return i},fromJSON:e=>({terminate:!!Ie(e.terminate)&&Boolean(e.terminate)}),toJSON(e){const t={};return!0===e.terminate&&(t.terminate=e.terminate),t},create:e=>fo.fromPartial(e??{}),fromPartial(e){var t;const n={terminate:!1};return n.terminate=null!==(t=e.terminate)&&void 0!==t&&t,n}},As={encode:(e,t=G.Writer.create())=>t,decode(e,t){const n=e instanceof G.Reader?e:G.Reader.create(e);let r=void 0===t?n.len:n.pos+t;for(;n.pos<r;){const o=n.uint32();if(4==(7&o)||0===o)break;n.skipType(7&o)}return{}},fromJSON:e=>({}),toJSON:e=>({}),create:e=>As.fromPartial(e??{}),fromPartial:e=>({})},Ns={encode:(e,t=G.Writer.create())=>t,decode(e,t){const n=e instanceof G.Reader?e:G.Reader.create(e);let r=void 0===t?n.len:n.pos+t;for(;n.pos<r;){const o=n.uint32();if(4==(7&o)||0===o)break;n.skipType(7&o)}return{}},fromJSON:e=>({}),toJSON:e=>({}),create:e=>Ns.fromPartial(e??{}),fromPartial:e=>({})},Dn={encode(e,t=G.Writer.create()){0!==e.operation&&t.uint32(8).int32(e.operation);for(const n of e.queryOrPredicates)ho.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){const n=e instanceof G.Reader?e:G.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const i={operation:0,queryOrPredicates:[]};for(;n.pos<r;){const o=n.uint32();switch(o>>>3){case 1:if(8!==o)break;i.operation=n.int32();continue;case 2:if(18!==o)break;i.queryOrPredicates.push(ho.decode(n,n.uint32()));continue}if(4==(7&o)||0===o)break;n.skipType(7&o)}return i},fromJSON:e=>({operation:Ie(e.operation)?ok(e.operation):0,queryOrPredicates:Array.isArray(e?.queryOrPredicates)?e.queryOrPredicates.map(t=>ho.fromJSON(t)):[]}),toJSON(e){var t;const n={};return 0!==e.operation&&(n.operation=function sk(e){if(e===Is.OR)return"OR";throw new Tt.Error("Unrecognized enum value "+e+" for enum LogicalOperation")}(e.operation)),!(null===(t=e.queryOrPredicates)||void 0===t)&&t.length&&(n.queryOrPredicates=e.queryOrPredicates.map(r=>ho.toJSON(r))),n},create:e=>Dn.fromPartial(e??{}),fromPartial(e){var t,n;const r={operation:0,queryOrPredicates:[]};return r.operation=null!==(t=e.operation)&&void 0!==t?t:0,r.queryOrPredicates=(null===(n=e.queryOrPredicates)||void 0===n?void 0:n.map(i=>ho.fromPartial(i)))||[],r}},ho={encode:(e,t=G.Writer.create())=>(void 0!==e.query&&Dn.encode(e.query,t.uint32(10).fork()).ldelim(),void 0!==e.predicate&&po.encode(e.predicate,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof G.Reader?e:G.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const i={query:void 0,predicate:void 0};for(;n.pos<r;){const o=n.uint32();switch(o>>>3){case 1:if(10!==o)break;i.query=Dn.decode(n,n.uint32());continue;case 2:if(18!==o)break;i.predicate=po.decode(n,n.uint32());continue}if(4==(7&o)||0===o)break;n.skipType(7&o)}return i},fromJSON:e=>({query:Ie(e.query)?Dn.fromJSON(e.query):void 0,predicate:Ie(e.predicate)?po.fromJSON(e.predicate):void 0}),toJSON(e){const t={};return void 0!==e.query&&(t.query=Dn.toJSON(e.query)),void 0!==e.predicate&&(t.predicate=po.toJSON(e.predicate)),t},create:e=>ho.fromPartial(e??{}),fromPartial(e){const t={query:void 0,predicate:void 0};return t.query=null!=e.query?Dn.fromPartial(e.query):void 0,t.predicate=null!=e.predicate?po.fromPartial(e.predicate):void 0,t}},po={encode:(e,t=G.Writer.create())=>(0!==e.attribute&&t.uint32(8).int32(e.attribute),0!==e.operation&&t.uint32(16).int32(e.operation),""!==e.value&&t.uint32(26).string(e.value),t),decode(e,t){const n=e instanceof G.Reader?e:G.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const i={attribute:0,operation:0,value:""};for(;n.pos<r;){const o=n.uint32();switch(o>>>3){case 1:if(8!==o)break;i.attribute=n.int32();continue;case 2:if(16!==o)break;i.operation=n.int32();continue;case 3:if(26!==o)break;i.value=n.string();continue}if(4==(7&o)||0===o)break;n.skipType(7&o)}return i},fromJSON:e=>({attribute:Ie(e.attribute)?lk(e.attribute):0,operation:Ie(e.operation)?ak(e.operation):0,value:Ie(e.value)?String(e.value):""}),toJSON(e){const t={};return 0!==e.attribute&&(t.attribute=function ck(e){if(e===Ts.TAG)return"TAG";throw new Tt.Error("Unrecognized enum value "+e+" for enum PredicateAttribute")}(e.attribute)),0!==e.operation&&(t.operation=function uk(e){if(e===Ms.EQUAL)return"EQUAL";throw new Tt.Error("Unrecognized enum value "+e+" for enum ComparisonOperation")}(e.operation)),""!==e.value&&(t.value=e.value),t},create:e=>po.fromPartial(e??{}),fromPartial(e){var t,n,r;const i={attribute:0,operation:0,value:""};return i.attribute=null!==(t=e.attribute)&&void 0!==t?t:0,i.operation=null!==(n=e.operation)&&void 0!==n?n:0,i.value=null!==(r=e.value)&&void 0!==r?r:"",i}};class yk{constructor(t){this.rpc=t,this.RegisterSender=this.RegisterSender.bind(this),this.RegisterReceiver=this.RegisterReceiver.bind(this),this.SendTelemetry=this.SendTelemetry.bind(this),this.SendTelemetryMessage=this.SendTelemetryMessage.bind(this),this.RequestTelemetry=this.RequestTelemetry.bind(this),this.RequestTelemetryQuery=this.RequestTelemetryQuery.bind(this)}RegisterSender(t,n,r){return this.rpc.invoke(vk,Ns.fromPartial(t),n,r)}RegisterReceiver(t,n,r){return this.rpc.invoke(bk,Ns.fromPartial(t),n,r)}SendTelemetry(t,n,r){throw new Error("ts-proto does not yet support client streaming!")}SendTelemetryMessage(t,n,r){return this.rpc.unary(wk,or.fromPartial(t),n,r)}RequestTelemetry(t,n,r){return this.rpc.unary(_k,Os.fromPartial(t),n,r)}RequestTelemetryQuery(t,n,r){return this.rpc.unary(Dk,Rs.fromPartial(t),n,r)}}const xs={serviceName:"teletubby.v1.TelemetryGateway"},vk={methodName:"RegisterSender",service:xs,requestStream:!1,responseStream:!0,requestType:{serializeBinary(){return Ns.encode(this).finish()}},responseType:{deserializeBinary(e){const t=u_.decode(e);return Object.assign(Object.assign({},t),{toObject:()=>t})}}},bk={methodName:"RegisterReceiver",service:xs,requestStream:!1,responseStream:!0,requestType:{serializeBinary(){return Ns.encode(this).finish()}},responseType:{deserializeBinary(e){const t=or.decode(e);return Object.assign(Object.assign({},t),{toObject:()=>t})}}},wk={methodName:"SendTelemetryMessage",service:xs,requestStream:!1,responseStream:!1,requestType:{serializeBinary(){return or.encode(this).finish()}},responseType:{deserializeBinary(e){const t=ii.decode(e);return Object.assign(Object.assign({},t),{toObject:()=>t})}}},_k={methodName:"RequestTelemetry",service:xs,requestStream:!1,responseStream:!1,requestType:{serializeBinary(){return Os.encode(this).finish()}},responseType:{deserializeBinary(e){const t=As.decode(e);return Object.assign(Object.assign({},t),{toObject:()=>t})}}},Dk={methodName:"RequestTelemetryQuery",service:xs,requestStream:!1,responseStream:!1,requestType:{serializeBinary(){return Rs.encode(this).finish()}},responseType:{deserializeBinary(e){const t=As.decode(e);return Object.assign(Object.assign({},t),{toObject:()=>t})}}};class Ek{constructor(t,n){this.host=t,this.options=n}unary(t,n,r,i){var o;const s=Object.assign(Object.assign({},n),t.requestType),a=r&&this.options.metadata?new th.BrowserHeaders(Object.assign(Object.assign({},null===(o=this.options)||void 0===o?void 0:o.metadata.headersMap),r?.headersMap)):r??this.options.metadata;return new Promise((u,l)=>{var c;const d=eh.grpc.unary(t,Object.assign(Object.assign({request:s,host:this.host,metadata:a??{}},void 0!==this.options.transport?{transport:this.options.transport}:{}),{debug:null!==(c=this.options.debug)&&void 0!==c&&c,onEnd:function(p){if(p.status===eh.grpc.Code.OK)u(p.message.toObject());else{const w=new Mk(p.statusMessage,p.status,p.trailers);l(w)}}}));i&&i.addEventListener("abort",()=>{d.close(),l(i.reason)})})}invoke(t,n,r,i){var o,s,a;const u=null!==(o=this.options.upStreamRetryCodes)&&void 0!==o?o:[],c=Object.assign(Object.assign({},n),t.requestType),d=null!==(s=this.options.streamingTransport)&&void 0!==s?s:this.options.transport,p=r&&this.options.metadata?new th.BrowserHeaders(Object.assign(Object.assign({},null===(a=this.options)||void 0===a?void 0:a.metadata.headersMap),r?.headersMap)):r??this.options.metadata;return new ln(w=>{const T=()=>{var R;const N=eh.grpc.invoke(t,Object.assign(Object.assign({host:this.host,request:c},void 0!==d?{transport:d}:{}),{metadata:p??{},debug:null!==(R=this.options.debug)&&void 0!==R&&R,onMessage:k=>w.next(k),onEnd:(k,z,L)=>{if(0===k)w.complete();else if(u.includes(k))setTimeout(T,3e3);else{const K=new Error(z);K.code=k,K.metadata=L,w.error(K)}}}));w.add(()=>{if(!i||!i.aborted)return N.close()}),i&&i.addEventListener("abort",()=>{w.error(i.reason),N.close()})};T()}).pipe(function nk(e={}){const{connector:t=(()=>new ro),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return o=>{let s,a,u,l=0,c=!1,d=!1;const p=()=>{a?.unsubscribe(),a=void 0},w=()=>{p(),s=u=void 0,c=d=!1},T=()=>{const R=s;w(),R?.unsubscribe()};return ei((R,N)=>{l++,!d&&!c&&p();const k=u=u??t();N.add(()=>{l--,0===l&&!d&&!c&&(a=nh(T,i))}),k.subscribe(N),!s&&l>0&&(s=new Cs({next:z=>k.next(z),error:z=>{d=!0,p(),a=nh(w,n,z),k.error(z)},complete:()=>{c=!0,p(),a=nh(w,r),k.complete()}}),Kr(R).subscribe(s))})(o)}}())}}const Tt=(()=>{if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw"Unable to locate global object"})();function Ck(e){if(Tt.Buffer)return Uint8Array.from(Tt.Buffer.from(e,"base64"));{const t=Tt.atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;++r)n[r]=t.charCodeAt(r);return n}}function M_(e){if(e.gt(Number.MAX_SAFE_INTEGER))throw new Tt.Error("Value is larger than Number.MAX_SAFE_INTEGER");return e.toNumber()}function Ik(e){return"object"==typeof e&&null!==e}function Ie(e){return null!=e}G.util.Long!==e_&&(G.util.Long=e_,G.configure());class Mk extends Tt.Error{constructor(t,n,r){super(t),this.code=n,this.metadata=r}}const T_=e=>e/1e6,O_=e=>{if(!e)return"";const t=[];return e?.forEach(n=>{t.push(String.fromCharCode(n))}),t.join("")};class go{constructor(t){this.isackable=!1,this.hasHeartbeat=!1,this.isStreamMessage=!1,Object.assign(this,t)}static fromTelemetryMessage(t){const n={isackable:!1,hasHeartbeat:!1,isStreamMessage:!1};return n.callsign=t.callsign,n.source=t.source,n.payload=t.payload,n.createdAt=new Date(T_(t.created)),n.uid=t.uid,n.seq=t.seq,"/rocos/agent/telemetry/heartbeat"===n.source&&(n.hasHeartbeat=!0),n}static fromTelemetryStreamMessage(t){const n={isStreamMessage:!0},{message:r,isAckable:i}=t;return n.isackable=i,n.hasHeartbeat=void 0!==t.heartbeat,r?.callsign&&(n.callsign=r?.callsign),r?.source&&(n.source=r?.source),r?.payload&&(n.payload=r?.payload),r?.created&&(n.createdAt=new Date(T_(r.created))),r?.uid&&(n.uid=r.uid),r?.seq&&(n.seq=r.seq),n}static getPayloadAsString(t){if(t.isStreamMessage)return t.payload?Buffer.from(t.payload.toString(),"base64").toString():"";try{return(new TextDecoder).decode(t.payload)}catch(n){return gt().warn(n),O_(t.payload)}}static getPayloadAsJSON(t){if(t.payload){if(t.isStreamMessage)return JSON.parse(Buffer.from(t.payload.toString(),"base64").toString());try{return JSON.parse((new TextDecoder).decode(t.payload))}catch(n){return gt().warn(n),JSON.parse(O_(t.payload))}}}static getPayloadByType(t){let n=null;switch(t.type){case"string":n=go.getPayloadAsString(t);break;case"json":n=go.getPayloadAsJSON(t);break;case"none":n="";break;default:n=t.payload}return n}}var sr=(()=>{return(e=sr||(sr={}))[e.OK=0]="OK",e[e.REJECT=1]="REJECT",sr;var e})(),Ps=(()=>{return(e=Ps||(Ps={}))[e.OR=0]="OR",Ps;var e})();function xk(e){switch(e){case 0:case"OR":return Ps.OR;default:throw new zt.Error("Unrecognized enum value "+e+" for enum LogicalOperation")}}var ks=(()=>{return(e=ks||(ks={}))[e.EQUAL=0]="EQUAL",ks;var e})();function kk(e){switch(e){case 0:case"EQUAL":return ks.EQUAL;default:throw new zt.Error("Unrecognized enum value "+e+" for enum ComparisonOperation")}}var Fs=(()=>{return(e=Fs||(Fs={}))[e.TAG=0]="TAG",Fs;var e})();function Lk(e){switch(e){case 0:case"TAG":return Fs.TAG;default:throw new zt.Error("Unrecognized enum value "+e+" for enum PredicateAttribute")}}const R_={fromJSON:e=>({subscriberId:Me(e.subscriberId)?String(e.subscriberId):"",requestedActions:Array.isArray(e?.requestedActions)?e.requestedActions.map(t=>Ls.fromJSON(t)):[]}),toJSON(e){var t;const n={};return""!==e.subscriberId&&(n.subscriberId=e.subscriberId),!(null===(t=e.requestedActions)||void 0===t)&&t.length&&(n.requestedActions=e.requestedActions.map(r=>Ls.toJSON(r))),n},create:e=>R_.fromPartial(e??{}),fromPartial(e){var t,n;const r={subscriberId:"",requestedActions:[]};return r.subscriberId=null!==(t=e.subscriberId)&&void 0!==t?t:"",r.requestedActions=(null===(n=e.requestedActions)||void 0===n?void 0:n.map(i=>Ls.fromPartial(i)))||[],r}},A_={fromJSON:e=>({subscriberId:Me(e.subscriberId)?String(e.subscriberId):"",operation:Me(e.operation)?String(e.operation):"",callsignQuery:Me(e.callsignQuery)?Mr.fromJSON(e.callsignQuery):void 0,sources:Array.isArray(e?.sources)?e.sources.map(t=>String(t)):[]}),toJSON(e){var t;const n={};return""!==e.subscriberId&&(n.subscriberId=e.subscriberId),""!==e.operation&&(n.operation=e.operation),void 0!==e.callsignQuery&&(n.callsignQuery=Mr.toJSON(e.callsignQuery)),!(null===(t=e.sources)||void 0===t)&&t.length&&(n.sources=e.sources),n},create:e=>A_.fromPartial(e??{}),fromPartial(e){var t,n,r;const i={subscriberId:"",operation:"",callsignQuery:void 0,sources:[]};return i.subscriberId=null!==(t=e.subscriberId)&&void 0!==t?t:"",i.operation=null!==(n=e.operation)&&void 0!==n?n:"",i.callsignQuery=null!=e.callsignQuery?Mr.fromPartial(e.callsignQuery):void 0,i.sources=(null===(r=e.sources)||void 0===r?void 0:r.map(o=>o))||[],i}},Ls={fromJSON:e=>({operation:Me(e.operation)?String(e.operation):"",callsigns:Array.isArray(e?.callsigns)?e.callsigns.map(t=>String(t)):[],sources:Array.isArray(e?.sources)?e.sources.map(t=>String(t)):[],subscribeOperation:Me(e.subscribeOperation)?Qu.fromJSON(e.subscribeOperation):void 0,unsubscribeOperation:Me(e.unsubscribeOperation)?Bs.fromJSON(e.unsubscribeOperation):void 0}),toJSON(e){var t,n;const r={};return""!==e.operation&&(r.operation=e.operation),!(null===(t=e.callsigns)||void 0===t)&&t.length&&(r.callsigns=e.callsigns),!(null===(n=e.sources)||void 0===n)&&n.length&&(r.sources=e.sources),void 0!==e.subscribeOperation&&(r.subscribeOperation=Qu.toJSON(e.subscribeOperation)),void 0!==e.unsubscribeOperation&&(r.unsubscribeOperation=Bs.toJSON(e.unsubscribeOperation)),r},create:e=>Ls.fromPartial(e??{}),fromPartial(e){var t,n,r;const i={operation:"",callsigns:[],sources:[],subscribeOperation:void 0,unsubscribeOperation:void 0};return i.operation=null!==(t=e.operation)&&void 0!==t?t:"",i.callsigns=(null===(n=e.callsigns)||void 0===n?void 0:n.map(o=>o))||[],i.sources=(null===(r=e.sources)||void 0===r?void 0:r.map(o=>o))||[],i.subscribeOperation=null!=e.subscribeOperation?Qu.fromPartial(e.subscribeOperation):void 0,i.unsubscribeOperation=null!=e.unsubscribeOperation?Bs.fromPartial(e.unsubscribeOperation):void 0,i}},Qu={fromJSON:e=>({options:Array.isArray(e?.options)?e.options.map(t=>Xu.fromJSON(t)):[]}),toJSON(e){var t;const n={};return!(null===(t=e.options)||void 0===t)&&t.length&&(n.options=e.options.map(r=>Xu.toJSON(r))),n},create:e=>Qu.fromPartial(e??{}),fromPartial(e){var t;const n={options:[]};return n.options=(null===(t=e.options)||void 0===t?void 0:t.map(r=>Xu.fromPartial(r)))||[],n}},Bs={fromJSON:e=>({options:Array.isArray(e?.options)?e.options.map(t=>Us.fromJSON(t)):[]}),toJSON(e){var t;const n={};return!(null===(t=e.options)||void 0===t)&&t.length&&(n.options=e.options.map(r=>Us.toJSON(r))),n},create:e=>Bs.fromPartial(e??{}),fromPartial(e){var t;const n={options:[]};return n.options=(null===(t=e.options)||void 0===t?void 0:t.map(r=>Us.fromPartial(r)))||[],n}},Xu={fromJSON:e=>({receivergroupSubscribeOption:Me(e.receivergroupSubscribeOption)?Ku.fromJSON(e.receivergroupSubscribeOption):void 0}),toJSON(e){const t={};return void 0!==e.receivergroupSubscribeOption&&(t.receivergroupSubscribeOption=Ku.toJSON(e.receivergroupSubscribeOption)),t},create:e=>Xu.fromPartial(e??{}),fromPartial(e){const t={receivergroupSubscribeOption:void 0};return t.receivergroupSubscribeOption=null!=e.receivergroupSubscribeOption?Ku.fromPartial(e.receivergroupSubscribeOption):void 0,t}},Us={fromJSON:e=>({receivergroupUnsubscribeOption:Me(e.receivergroupUnsubscribeOption)?js.fromJSON(e.receivergroupUnsubscribeOption):void 0}),toJSON(e){const t={};return void 0!==e.receivergroupUnsubscribeOption&&(t.receivergroupUnsubscribeOption=js.toJSON(e.receivergroupUnsubscribeOption)),t},create:e=>Us.fromPartial(e??{}),fromPartial(e){const t={receivergroupUnsubscribeOption:void 0};return t.receivergroupUnsubscribeOption=null!=e.receivergroupUnsubscribeOption?js.fromPartial(e.receivergroupUnsubscribeOption):void 0,t}},Ku={fromJSON:e=>({startPosition:Me(e.startPosition)?Number(e.startPosition):0}),toJSON(e){const t={};return 0!==e.startPosition&&(t.startPosition=Math.round(e.startPosition)),t},create:e=>Ku.fromPartial(e??{}),fromPartial(e){var t;const n={startPosition:0};return n.startPosition=null!==(t=e.startPosition)&&void 0!==t?t:0,n}},js={fromJSON:e=>({terminate:!!Me(e.terminate)&&Boolean(e.terminate)}),toJSON(e){const t={};return!0===e.terminate&&(t.terminate=e.terminate),t},create:e=>js.fromPartial(e??{}),fromPartial(e){var t;const n={terminate:!1};return n.terminate=null!==(t=e.terminate)&&void 0!==t&&t,n}},N_={fromJSON:e=>({}),toJSON:e=>({}),create:e=>N_.fromPartial(e??{}),fromPartial:e=>({})},Mr={fromJSON:e=>({operation:Me(e.operation)?xk(e.operation):0,queryOrPredicates:Array.isArray(e?.queryOrPredicates)?e.queryOrPredicates.map(t=>Vs.fromJSON(t)):[]}),toJSON(e){var t;const n={};return 0!==e.operation&&(n.operation=function Pk(e){if(e===Ps.OR)return"OR";throw new zt.Error("Unrecognized enum value "+e+" for enum LogicalOperation")}(e.operation)),!(null===(t=e.queryOrPredicates)||void 0===t)&&t.length&&(n.queryOrPredicates=e.queryOrPredicates.map(r=>Vs.toJSON(r))),n},create:e=>Mr.fromPartial(e??{}),fromPartial(e){var t,n;const r={operation:0,queryOrPredicates:[]};return r.operation=null!==(t=e.operation)&&void 0!==t?t:0,r.queryOrPredicates=(null===(n=e.queryOrPredicates)||void 0===n?void 0:n.map(i=>Vs.fromPartial(i)))||[],r}},Vs={fromJSON:e=>({query:Me(e.query)?Mr.fromJSON(e.query):void 0,predicate:Me(e.predicate)?Hs.fromJSON(e.predicate):void 0}),toJSON(e){const t={};return void 0!==e.query&&(t.query=Mr.toJSON(e.query)),void 0!==e.predicate&&(t.predicate=Hs.toJSON(e.predicate)),t},create:e=>Vs.fromPartial(e??{}),fromPartial(e){const t={query:void 0,predicate:void 0};return t.query=null!=e.query?Mr.fromPartial(e.query):void 0,t.predicate=null!=e.predicate?Hs.fromPartial(e.predicate):void 0,t}},Hs={fromJSON:e=>({attribute:Me(e.attribute)?Lk(e.attribute):0,operation:Me(e.operation)?kk(e.operation):0,value:Me(e.value)?String(e.value):""}),toJSON(e){const t={};return 0!==e.attribute&&(t.attribute=function Bk(e){if(e===Fs.TAG)return"TAG";throw new zt.Error("Unrecognized enum value "+e+" for enum PredicateAttribute")}(e.attribute)),0!==e.operation&&(t.operation=function Fk(e){if(e===ks.EQUAL)return"EQUAL";throw new zt.Error("Unrecognized enum value "+e+" for enum ComparisonOperation")}(e.operation)),""!==e.value&&(t.value=e.value),t},create:e=>Hs.fromPartial(e??{}),fromPartial(e){var t,n,r;const i={attribute:0,operation:0,value:""};return i.attribute=null!==(t=e.attribute)&&void 0!==t?t:0,i.operation=null!==(n=e.operation)&&void 0!==n?n:0,i.value=null!==(r=e.value)&&void 0!==r?r:"",i}},zt=(()=>{if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw"Unable to locate global object"})();function Me(e){return null!=e}class ih{constructor(){this.autoResubscribeEnabled=!1,this.autoResubscribeMessageLimit=100,this.autoResubscribeMinimumTime=10,this.messageTimeoutInSec=10,this.autoAcknowledgmentEnabled=!0}static fromModel(t){const n=new ih;return t&&(void 0!==t.autoResubscribeEnabled&&(n.autoResubscribeEnabled=t.autoResubscribeEnabled),void 0!==t.autoResubscribeMessageLimit&&(n.autoResubscribeMessageLimit=t.autoResubscribeMessageLimit),void 0!==t.autoResubscribeMinimumTime&&(n.autoResubscribeMinimumTime=t.autoResubscribeMinimumTime),void 0!==t.messageTimeoutInSec&&(n.messageTimeoutInSec=t.messageTimeoutInSec),void 0!==t.autoAcknowledgmentEnabled&&(n.autoAcknowledgmentEnabled=t.autoAcknowledgmentEnabled)),n}}class bF{constructor(t){this.beats=0,this.healthLastSeenDate=new Date,this.healthMisses=0,this.healthTimeout=6e3,this.healthMaxTimeout=10,this.healthMaxMisses=5,this.identifier=t,this.logger=qu.getInstance(`StreamHeartbeat(${this.identifier})`)}setHealthTimeout(t){return this.healthTimeout=t,this}setHealthMaxTimeout(t){return this.healthMaxTimeout=t,this}setHealthMaxMisses(t){return this.healthMaxMisses=t,this}setHealthCheckStatusCallback(t){return this.healthCheckStatusCallback=t,this}setHealthCheckErrorCallback(t){return this.healthCheckErrorCallback=t,this}start(t,n){this.interval?this.logger.warn("Stream heartbeat already exists"):(this.callback=t,this.timeout=n,this.logger.info("Creating stream heartbeat"),this.interval=setInterval(this.callback,this.timeout))}stop(){try{this.logger.info("Removing stream heartbeat timer"),clearInterval(this.interval),this.interval=void 0}catch(t){this.logger.error(`Error killing stream heartbeat timer ${t}`)}}pump(){return this.healthInterval?(this.logger.debug(`Updating health check timer: ${this.healthLastSeenDate}, ${this.healthMisses}`),this.healthLastSeenDate=new Date,this.healthMisses=0):(this.logger.debug("Starting health check timer"),this.healthInterval=setInterval(this.checkHealth,this.healthTimeout),this.healthLastSeenDate=new Date,this.healthMisses=0),this.beats++}checkHealth(){var t=this;return Kt(function*(){t.logger.debug("Checking health");let n=!0;const r=((new Date).getTime()-t.healthLastSeenDate.getTime())/1e3;r>t.healthMaxTimeout&&t.healthMaxMisses?(n=!1,t.healthMisses+=1,t.logger.warn(`Heartbeat is more than ${t.healthMaxTimeout} seconds, delay: ${r} seconds, misses: ${t.healthMisses}`),t.healthMisses===t.healthMaxMisses&&(t.stopHealthCheck(),t.logger.error(`Stopping Heartbeat as it is more than ${t.healthMaxTimeout} seconds, delay - ${r} seconds, misses: ${t.healthMisses}`),t.healthCheckErrorCallback&&(yield t.healthCheckErrorCallback()))):r>t.healthMaxTimeout&&(n=!1,t.logger.warn(`Stopping Heartbeat as it is more than ${t.healthMaxTimeout} seconds, delay - ${r} seconds`),t.stopHealthCheck(),t.healthCheckErrorCallback&&(yield t.healthCheckErrorCallback())),t.healthCheckStatusCallback&&(yield t.healthCheckStatusCallback(n))})()}stopHealthCheck(){if(this.healthInterval)try{this.logger.info("Stopping timer"),clearInterval(this.healthInterval),this.healthInterval=void 0,this.logger.info("Removed timer")}catch(t){this.logger.error("error removing timer",t)}}}const x_=(e,t)=>e?.filter(n=>-1===t.indexOf(n)),P_=(e,t)=>{const n=Object.assign({},e),r=Object.assign({},t);return Object.keys(e).forEach(i=>{t[i]&&(n[i]=x_(n[i],t[i]),n[i].length||delete n[i])}),Object.keys(t).forEach(i=>{e[i]&&(r[i]=x_(r[i],e[i]),r[i].length||delete r[i])}),{toRemove:{callsigns:Object.keys(n),sources:Object.values(n).reduce((i,o)=>i.concat(o),[])},toAdd:{callsigns:Object.keys(r),sources:Object.values(r).reduce((i,o)=>i.concat(o),[])}}};class wF{constructor(t){this.timerIntervalInSec=1,this.subscriberStatus=wt.STOPPED,this.retryTimes=0,this.receivedMessagesCount=0,this.sendHeartbeatTime=5e3,this.receivedDataStats={},this.subscriptions=new Map,this.identifier=ir.getIdentifier(Kw,t.scope),this.projectId=t.projectId,this.callsignsLookup=t.callsignsLookup,this.token=t.token,this.scope=t.scope,this.url=t.url,this.sources=ti(t.sources),this.options=ih.fromModel(t.options),this.messageStream$=new ro,this.statusStream$=new Gf(wt.STOPPED),this.heartbeat=new bF(this.identifier),Gu.getChangeSubject().pipe(Xf(n=>"token"===n.type&&n.url===this.url)).subscribe(n=>{this.token=n.data})}setToken(t){this.token=t}init(){this.logger.info("Creating new stream instance"),this.registerReceiver()}stopStream(){var t;null===(t=this.heartbeat)||void 0===t||t.stop(),this.stopInternal(),this.messagesTimer&&clearInterval(this.messagesTimer),this.subscriberStatus=wt.STOPPED,this.statusStream$.next(this.subscriberStatus)}addSubscription(t){if(this.logger.info("Adding subscriptions from stream",t.uniqueId),this.subscriptions.has(t.uniqueId)){const n=this.subscriptions.get(t.uniqueId);n.count++,this.subscriptions.set(t.uniqueId,n),this.logger.info("Stream subscriptions already exists, increasing count",t.uniqueId,n.count)}else{const n=this.getSubscriptions();this.subscriptions.set(t.uniqueId,Object.assign(Object.assign({},t),{count:1}));const r=this.getSubscriptions();this.callsignsLookup=new ni(Object.keys(r)),this.sources=ti(Object.values(r).reduce((o,s)=>o.concat(s),[]));const{toAdd:i}=P_(n,r);i.callsigns.length&&i.sources.length&&(this.logger.debug("New subscriptions added, we need to refresh sources",{toAdd:i}),this.takeTelemetryAction("subscribe",new ni(i.callsigns),i.sources))}Gu.getChangeSubject().next({type:"telemetry-subscription",url:this.url,data:this.subscriptions})}removeSubscription(t,n=!1){var r=this;return Kt(function*(){if(r.logger.info("Removing subscriptions from stream",t.uniqueId),!r.subscriptions.has(t.uniqueId))return;const i=r.subscriptions.get(t.uniqueId);if(i.count--,i.count)return;r.logger.info("Removing subscriptions from stream registry",t.uniqueId);const o=r.getSubscriptions();r.subscriptions.delete(t.uniqueId);const s=r.getSubscriptions();r.callsignsLookup=new ni(Object.keys(s)),r.sources=ti(Object.values(s).reduce((u,l)=>u.concat(l),[]));const{toRemove:a}=P_(o,s);if(a.callsigns.length&&a.sources.length){r.logger.debug("Subscriptions removed, we need to refresh sources",{toRemove:a});try{yield r.takeTelemetryAction("unsubscribe",new ni(a.callsigns),a.sources,n)}catch(u){r.logger.error(`Failed to unsubscribe: ${u}`)}}r.subscriptions.size||(r.logger.info("No subscriptions remaining closing stream",t.uniqueId),r.stopStream(),ir.getInstance().removeStream(r),r.logger.info("Stream closed"))})()}sendAcknowledgment(t,n,r){return this.sendAcknowledgmentInternal(t,n,r)}getSubscriptions(){const t={};return this.subscriptions.forEach(n=>{n.callsigns&&n.callsigns.forEach(r=>{t[r]=ti(t[r]?[...t[r],...n.sources]:[...n.sources])})}),t}onData(t){this.receivedMessagesCount++;const{source:n}=t,{callsign:r}=t;let i=!0;const o=new Date;switch(this.lastMessageReceived=o,t.projectId=this.projectId,t.type="json",t.subId=this.scope,t.subscriberId=this.subscriberId,t.receivedAt=new Date,n){case"/rocos/agent/telemetry/subscribed":{const s=go.getPayloadAsJSON(t);let a;"object"==typeof s&&null!==s&&(a=s?.subscriberId),this.subscriberId&&a&&this.logger.warn(`Replacing old subscriberId (${this.subscriberId}) with a new one (${a})`),this.subscriberId=a,t.subscriberId=this.subscriberId,this.logger.info("onData",`subscriberId has been updated - ${a}`,{subscriberId:a}),this.takeTelemetryAction("subscribe"),this.heartbeat.start(this.sendHeartbeat,this.sendHeartbeatTime),i=!1;break}case"/rocos/agent/telemetry/noop":i=!1;break;default:i=!0}n||(i=!1),i&&(this.lastRobotMessageReceived=o),t.payload=go.getPayloadByType(t),this.updateReceviedDataStatsWithMessage(t),this.isRegisteredMessage(r,n)&&this.messageStream$?(this.messageStream$.next(t),t.isackable&&this.options.autoAcknowledgmentEnabled&&this.sendAcknowledgment(t.uid,sr.OK,!1)):i&&(t.isackable&&this.sendAcknowledgment(t.uid,sr.REJECT,!0),this.logger.debug("onData","received unsubscribed message",{callsign:r,source:n,callsigns:this.callsignsLookup,sources:this.sources}))}takeTelemetryAction(t,n,r,i){var o=this;return Kt(function*(){if(o.logger.debug("takeTelemetryAction",t),!o.subscriberId||!o.projectId)return o.logger.debug("takeTelemetryAction",t,`${t} without subscriberId or projectId - message will not send out`,{subscriberId:o.subscriberId,projectId:o.projectId}),Promise.resolve();const s=r??o.sources,a=n??o.callsignsLookup;if(o.callsignsLookup.lookupType===Ln.List){const u=R_.create(),l=[],c=Ls.create();return c.operation=t,c.callsigns=a.lookupValue,c.sources=s,"unsubscribe"===t&&i&&o.addTerminateToAction(c),l.push(c),u.requestedActions=l,u.subscriberId=o.subscriberId,o.logger.debug("takeTelemetryAction",t,"client.requestTelemetry",o.subscriberId),o.requestTelemetry(u)}if(a.lookupType===Ln.Query){const u=a.lookupValue,l=A_.create();l.subscriberId=o.subscriberId,l.sources=s,l.operation=t;const c=Mr.create();c.operation=u.operation;const d=[];return u.predicates.forEach(p=>{const w=Vs.create(),T=Hs.create();T.attribute=p.attribute,T.operation=p.operation,T.value=p.value,w.predicate=T,d.push(w)}),c.queryOrPredicates=d,l.callsignQuery=c,o.logger.debug("takeTelemetryAction",t,"client.requestTelemetry",o.subscriberId),o.requestTelemetryQuery(l)}return Promise.reject("Unsupported lookupType")})()}listenMessagesAndRenew(){const t=this.messagesTimer;this.checkerStartedAt=new Date,t&&clearInterval(t),this.messagesTimer=setInterval(()=>{var n;const r=new Date,i=this.lastMessageReceived,o=this.lastRobotMessageReceived,s=null!==(n=this.checkerStartedAt)&&void 0!==n?n:new Date,a=this.options.messageTimeoutInSec;let u=!1,l=!1;(i&&(r.getTime()-i.getTime())/1e3>a||!i&&s&&(r.getTime()-s.getTime())/1e3>a)&&(u=!0),this.subscriberStatus=o?(r.getTime()-o.getTime())/1e3>a?wt.DEAD:wt.ALIVE:(r.getTime()-s.getTime())/1e3>a?wt.DEAD:this.retryTimes<=0?wt.STOPPED:wt.DEAD,this.options.autoResubscribeEnabled&&this.receivedMessagesCount>this.options.autoResubscribeMessageLimit&&(r.getTime()-s.getTime())/1e3>this.options.autoResubscribeMinimumTime&&(l=!0),u?(this.logger.debug("listenMessagesAndRenew",{shouldRetry:!0}),this.messageTimeoutTryAgain()):l&&(this.logger.debug("listenMessagesAndRenew",{shouldAutoResubscribe:!0}),this.autoResubscribe()),this.statusStream$.next(this.subscriberStatus),this.logger.debug("listenMessagesAndRenew","Message stats",this.receivedDataStats)},1e3*this.timerIntervalInSec)}addTerminateToAction(t){const n=Bs.create(),r=Us.create(),i=js.create();i.terminate=!0,r.receivergroupUnsubscribeOption=i,n.options=[r],t.unsubscribeOperation=n}messageTimeoutTryAgain(){this.retryTimes++,this.stopInternal(),this.lastMessageReceived=void 0,this.lastRobotMessageReceived=void 0,this.registerReceiver()}autoResubscribe(){this.retryTimes=0,this.stopInternal(),this.lastMessageReceived=void 0,this.lastRobotMessageReceived=void 0,this.registerReceiver()}isFoundCallsign(t){return this.callsignsLookup.lookupType!==Ln.List||-1!==this.callsignsLookup.lookupValue.indexOf(t)}isFoundSource(t){return-1!==this.sources.indexOf(t)}isRegisteredMessage(t,n){return this.isFoundCallsign(t)&&this.isFoundSource(n)}updateReceviedDataStatsWithMessage(t){const{source:n}=t,{callsign:r}=t,i=`${r}-${n}`;this.receivedDataStats||(this.receivedDataStats={}),this.receivedDataStats[i]=(this.receivedDataStats[i]?this.receivedDataStats[i]:0)+1}}class _F extends wF{constructor(t){super(t),this.receiverCallAborter=new AbortController,this.logger=qu.getInstance(`TelemetryStreamWeb(${this.identifier})`);const r=new Ek(`${t.insecure?"http":"https"}://${this.url}`,{});this.client=new yk(r)}stopInternal(){this.logger.info("Starting stop stream process"),this.receiverCallAborter.abort(),this.logger.info("Finished stop stream process")}registerReceiver(){return this.logger.info("registerReceiver"),this.receivedMessagesCount=0,this.client.RegisterReceiver(N_.create(),this.getMetadata(this.projectId),this.receiverCallAborter.signal).subscribe({next:n=>{this.onData(go.fromTelemetryMessage(n))},error:n=>{this.onError(n)},complete:()=>{this.onEnd(!0)}}),this.listenMessagesAndRenew(),()=>{this.receiverCallAborter.abort()}}onError(t){var n=this;return Kt(function*(){n.logger.error(`Telemetry Stream Error: ${t}, SubscriberId: ${n.subscriberId}`),n.subscriberStatus=wt.ERROR,n.statusStream$.next(n.subscriberStatus)})()}onEnd(t){this.logger.debug("registerReceiver","end",status),t&&(this.stopInternal(),this.registerReceiver())}getMetadata(t){const n={authorization:this.token};return t&&(n["r-p"]=t),new th.BrowserHeaders(n)}requestTelemetry(t){var n=this;return Kt(function*(){n.logger.debug("Sending telemetry request");try{const r=yield n.client.RequestTelemetry(t,n.getMetadata(n.projectId));n.logger.debug("ack requestTelemetry",r)}catch(r){throw n.logger.error("error requestTelemetry ",r),r}})()}requestTelemetryQuery(t){var n=this;return Kt(function*(){n.logger.debug("Requesting telemetry with query");try{const r=yield n.client.RequestTelemetryQuery(t,n.getMetadata(n.projectId));n.logger.debug("ack requestTelemetryQuery",r)}catch(r){throw n.logger.error("error requestTelemetryQuery ",r),r}})()}sendAcknowledgmentInternal(t,n,r){return this.logger.error("Error can not send Acknowledgment on grpc-web client",{uid:t,status:n,noRetry:r}),!1}sendHeartbeat(){}}const DF=e=>e.lookupValue?e.toID():e.sort(),EF=(e,t,n,r)=>[e,...DF(t),...n.sort(),r].join();class CF extends tk{constructor(t){super("TelemetryService",t),this.changeStream$=new Gf(new Map),Gu.getChangeSubject().pipe(Xf(n=>"telemetry-subscription"===n.type&&n.url===this.config.url)).subscribe(n=>{this.changeStream$.next(n.data)}),this.streamStatusSubject$=new Gf({scope:"default",status:wt.STOPPED})}subscribe(t){var n,r;const i=null!==(n=ti(t.sources).map(c=>c.trim()))&&void 0!==n?n:[];if(!t?.callsigns&&t?.query)throw this.logger.error("Error: params need to contain either callsigns or query",t),new Wu("Params need to contain either callsigns or query.","TELEMETRY_SERVICE_ERROR");let o=new ni([]);t?.callsigns?(this.logger.info("subscribe with callsigns",t),o=new ni(t.callsigns)):t?.query&&(this.logger.info("subscribe with query",t),o=new ni(t.query));const s=null!==(r=t.scope)&&void 0!==r?r:"default",a=o.lookupValue,u={uniqueId:EF(t.projectId,o,i,s),callsigns:o?.lookupType===Ln.List?o.lookupValue:[],sources:i},l=this.createStream(t.projectId,o,i,s).then(c=>(c.addSubscription(u),this.statusSubscription||(this.statusSubscription=c.statusStream$.subscribe(d=>{this.status=d===wt.STOPPED||d===wt.ALIVE,this.status$.next(d)})),Yw(c.messageStream$).pipe(function QP(e){return ei((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}(()=>c?.removeSubscription(u,t.terminateReceiverGroupOnUnsubscribe)))));return Yw(l).pipe(function ZP(e=1/0){return Qw(Ow,e)}(),Xf(c=>a.includes(c.callsign)&&i.includes(c.source)))}getSubscriptionChanges(){return this.changeStream$.asObservable()}getStatusChanges(){return this.streamStatusSubject$.asObservable()}initStream(t){var n=()=>super.initStream,r=this;return Kt(function*(){yield n().call(r,t),t.init()})()}createStream(t,n,r,i){var o=this;return Kt(function*(){const s=yield o.createStreamFromConfig(Kw,{url:o.config.url,projectId:t,callsignsLookup:n,sources:r,token:o.config.token,scope:i??"default",options:o.config.options,port:o.config.port,insecure:o.config.insecure});return s.isNew||s.stream.statusStream$.subscribe(a=>{o.streamStatusSubject$.next({scope:i,status:a})}),s.stream})()}getStream(t){return new _F(t)}}function SF(e,t){1&e&&(q(0,"pre"),Re(1,"ng generate component xyz"),Q())}function IF(e,t){1&e&&(q(0,"pre"),Re(1,"ng add @angular/material"),Q())}function MF(e,t){1&e&&(q(0,"pre"),Re(1,"ng add @angular/pwa"),Q())}function TF(e,t){1&e&&(q(0,"pre"),Re(1,"ng add _____"),Q())}function OF(e,t){1&e&&(q(0,"pre"),Re(1,"ng test"),Q())}function RF(e,t){1&e&&(q(0,"pre"),Re(1,"ng build"),Q())}let NF=(()=>{class e{constructor(){this.title="sdk-sizer",new CF({url:"dev-api.rocos.io",token:"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjVhYTQ0ZjVkLWU1YmEtNDA4Yy05YjNhLWQyMGE3MWNiM2UxNyJ9.eyJodHRwczovL3JvY29zLmlvL3RlbmFudCI6eyJ1c2VyRW1haWwiOiJqYWNrc29uLmNoYWRmaWVsZEBkcm9uZWRlcGxveS5jb20iLCJuYW1lIjoiSmFja3NvbiBDaGFkZmllbGQiLCJlbWFpbFZlcmlmaWVkIjp0cnVlLCJhY3RpdmVBY2NvdW50Ijp7ImlkIjoiNjI4MTUyYmMwZmUwNTI4MmE5MDhkNDcxIiwibmFtZSI6IkRyb25lRGVwbG95In0sImFjY291bnRzIjpbeyJpZCI6IjYyODE1MmJjMGZlMDUyODJhOTA4ZDQ3MSIsIm5hbWUiOiJEcm9uZURlcGxveSIsImNyZWF0ZWRBdCI6IjIwMjItMTEtMDFUMDA6NDA6MzMuNDA2WiIsInByb2plY3RzIjpbeyJpZCI6InRhcmlrLWRldiIsIm5hbWUiOiJ0YXJpay1kZXYiLCJkZXNjcmlwdGlvbiI6IiIsImxpbmtlZFByb2plY3RJZCI6IjYzMWE3YWVjYzFjMjU3OWVkOTZiNGQ2ZSIsInBlcm1pc3Npb25zIjp7ImlzT3duZXIiOmZhbHNlfX0seyJpZCI6IjM2MC13YWxrdGhyb3VnaCIsIm5hbWUiOiIzNjAgV2Fsa3Rocm91Z2giLCJkZXNjcmlwdGlvbiI6IiIsImxpbmtlZFByb2plY3RJZCI6IjYzMmJhMmViMWNjODVkNWUwNzA4NDhiMiIsInBlcm1pc3Npb25zIjp7ImlzT3duZXIiOmZhbHNlfX0seyJpZCI6InRvcG9kcm9uZS00NjcxMzciLCJuYW1lIjoiVG9wb2Ryb25lIiwiZGVzY3JpcHRpb24iOiJhYmMiLCJsaW5rZWRQcm9qZWN0SWQiOiI2MzExMzcxNTRkNDNiZDg1NTUwYmYyOGUiLCJwZXJtaXNzaW9ucyI6eyJpc093bmVyIjpmYWxzZX19LHsiaWQiOiJrZXNoLXRlc3QtZGV2IiwibmFtZSI6Iktlc2ggVGVzdCIsImRlc2NyaXB0aW9uIjoiRW50ZXIgYXQgeW91ciBvd24gcGVyaWwgcGFzdCB0aGUgYm9sdGVkIGRvb3IgIHdoZXJlIGltcG9zc2libGUgdGhpbmdzIG1heSBoYXBwZW4iLCJwZXJtaXNzaW9ucyI6eyJpc093bmVyIjpmYWxzZX19LHsiaWQiOiJqYWNrc29uLXRlc3RpbmciLCJuYW1lIjoiamFja3Nvbi10ZXN0aW5nIiwiZGVzY3JpcHRpb24iOiIiLCJsaW5rZWRQcm9qZWN0SWQiOiI2MzkyYzkwMzRiYTY4YjcxYzVhNDVkZDMiLCJwZXJtaXNzaW9ucyI6eyJpc093bmVyIjp0cnVlfX0seyJpZCI6ImhhY2thdGhvbi0yMDIyaDIiLCJuYW1lIjoiSGFja2F0aG9uIDIwMjIiLCJkZXNjcmlwdGlvbiI6IiIsInBlcm1pc3Npb25zIjp7ImlzT3duZXIiOmZhbHNlfX0seyJpZCI6ImFtcGMtZGV2IiwibmFtZSI6IkFNUEMgRGV2IiwiZGVzY3JpcHRpb24iOiIiLCJwZXJtaXNzaW9ucyI6eyJpc093bmVyIjpmYWxzZX19LHsiaWQiOiJjYWxsdW0tdGVzdC0yMzM0MTYiLCJuYW1lIjoiY2FsbHVtLWRldiIsImRlc2NyaXB0aW9uIjoiIiwicGVybWlzc2lvbnMiOnsiaXNPd25lciI6ZmFsc2V9fSx7ImlkIjoiZG1pdHJ5LWRldiIsIm5hbWUiOiJkbWl0cnktZGV2IiwiZGVzY3JpcHRpb24iOiJ0ZXN0IHByb2plY3QiLCJwZXJtaXNzaW9ucyI6eyJpc093bmVyIjpmYWxzZX19LHsiaWQiOiJkZWZhdWx0LXNwb3QiLCJuYW1lIjoiRGVmYXVsdC1Qcm9maWxlcyIsImRlc2NyaXB0aW9uIjoiSnVzdCBmb3IgbWFpbnRhaW5pbmcgdGhlIG1vc3QgdXAgdG8gZGF0ZSBkZWZhdWx0IHNwb3QgcHJvZmlsZS4gTm8gRGV2IGFsbG93ZWQiLCJsaW5rZWRQcm9qZWN0SWQiOiI2NDc2OWE3Njk5ODJlZDE1YTc1MzNiMjQiLCJwZXJtaXNzaW9ucyI6eyJpc093bmVyIjpmYWxzZX19LHsiaWQiOiJkYXZlLXRlc3QiLCJuYW1lIjoiRGF2ZSBUZXN0IiwiZGVzY3JpcHRpb24iOiIiLCJsaW5rZWRQcm9qZWN0SWQiOiI2MzI0ZTA1NjM1NGI2MzdiMGZjZWJlMTMiLCJwZXJtaXNzaW9ucyI6eyJpc093bmVyIjpmYWxzZX19LHsiaWQiOiJhZ2VudGNpYm90cyIsIm5hbWUiOiJBZ2VudENJQm90cyIsImRlc2NyaXB0aW9uIjoiVmlydHVhbCBib3RzIGNyZWF0ZWQgYW5kIGRlc3Ryb3llZCBpbiBDSSIsInBlcm1pc3Npb25zIjp7ImlzT3duZXIiOmZhbHNlfX0seyJpZCI6ImtpdHRpd2FrZSIsIm5hbWUiOiJraXR0aXdha2UiLCJkZXNjcmlwdGlvbiI6IiIsImxpbmtlZFByb2plY3RJZCI6IjY0Mjc0YWFhZTA0OTQwNmVhYTU2YjJjNSIsInBlcm1pc3Npb25zIjp7ImlzT3duZXIiOmZhbHNlfX0seyJpZCI6Im56LW9mZmljZS04NDQ0MDIiLCJuYW1lIjoiTlogT2ZmaWNlIiwiZGVzY3JpcHRpb24iOiIiLCJsaW5rZWRQcm9qZWN0SWQiOiI2MzE2YmVkZDIwYmQzMzY5ZTM3NTY5YjQiLCJwZXJtaXNzaW9ucyI6eyJpc093bmVyIjpmYWxzZX19LHsiaWQiOiJtZWNoYXRyb25pY3MtdGVzdGluZyIsIm5hbWUiOiJNZWNoYXRyb25pY3MgVGVzdGluZyIsImRlc2NyaXB0aW9uIjoiSnVzdCBmb3Igc21va2UgYW5kIHJlZ3Jlc3Npb24gdGVzdGluZyBvZiB0aGUgYWdlbnQuIE5vIERldiBhbGxvd2VkIiwibGlua2VkUHJvamVjdElkIjoiNjQ0ZjFhYmIxNmEyOWVlYjgyYzY2MGRmIiwicGVybWlzc2lvbnMiOnsiaXNPd25lciI6ZmFsc2V9fSx7ImlkIjoibWluZ2xhbmlsbGEiLCJuYW1lIjoiTWluZ2xhbmlsbGEiLCJkZXNjcmlwdGlvbiI6IlVzZSBmb3IgdGVzdGluZyBzb2xhciBiYXNlZCBtaXNzaW9ucyIsImxpbmtlZFByb2plY3RJZCI6IjY0NGYwZmZmMmM5NTAxOTAwM2QxNjc1NiIsInBlcm1pc3Npb25zIjp7ImlzT3duZXIiOmZhbHNlfX0seyJpZCI6ImphY2tzb24tdGVzdGluZy05OTY3NTkiLCJuYW1lIjoiSmFja3NvbiBUZXN0aW5nIiwiZGVzY3JpcHRpb24iOiIiLCJsaW5rZWRQcm9qZWN0SWQiOiI2NDYwNjMwMzNlZjcwODZjN2FlNWQwNGYiLCJwZXJtaXNzaW9ucyI6eyJpc093bmVyIjpmYWxzZX19LHsiaWQiOiJ0ZXN0LTg3MDkxMyIsIm5hbWUiOiJ0ZXN0IiwiZGVzY3JpcHRpb24iOiIiLCJsaW5rZWRQcm9qZWN0SWQiOiI2NDc2YTYyZjA5NzYwNzdkMGM0YzFlOTciLCJwZXJtaXNzaW9ucyI6eyJpc093bmVyIjpmYWxzZX19LHsiaWQiOiJuZXctbm9ydGgtcm9hZCIsIm5hbWUiOiJOZXcgTm9ydGggUm9hZCIsImRlc2NyaXB0aW9uIjoic2Rmc2RmIiwibGlua2VkUHJvamVjdElkIjoiNjQ2YmVhYzFlMTg0YjI1NDliZTU2NDhkIiwicGVybWlzc2lvbnMiOnsiaXNPd25lciI6ZmFsc2V9fSx7ImlkIjoidGVzdC1kZWRpY2F0ZWQiLCJuYW1lIjoidGVzdC1kZWRpY2F0ZWQiLCJkZXNjcmlwdGlvbiI6IlRlc3RzIHRoZSBkZWRpY2F0ZWQgdGVsZXR1YmJ5IGluc3RhbmNlIiwibGlua2VkUHJvamVjdElkIjoiNjQ5NGY2YzQ0MDg2MTdkNjY3MmZiZDE0IiwicGVybWlzc2lvbnMiOnsiaXNPd25lciI6ZmFsc2V9fSx7ImlkIjoidmljdG9yLXRlc3QtODgxMDQ1IiwibmFtZSI6InZpY3RvciB0ZXN0IiwiZGVzY3JpcHRpb24iOiIiLCJsaW5rZWRQcm9qZWN0SWQiOiI2NDljY2MzNzhkMjgzNDgwMmE1OGY2ZDUiLCJwZXJtaXNzaW9ucyI6eyJpc093bmVyIjpmYWxzZX19XSwicGVybWlzc2lvbnMiOnsiaXNPd25lciI6dHJ1ZX19LHsiaWQiOiI2MzZhYTgyOGEyMzkyMTQ4ODFhZWQ5ODUiLCJuYW1lIjoiU1NPVGVzdEV4dGVybmFsIiwiY3JlYXRlZEF0IjoiMjAyMi0xMS0wOFQxOTowOToxNy40MjBaIiwicHJvamVjdHMiOlt7ImlkIjoiZXh0IiwibmFtZSI6ImV4dCIsImRlc2NyaXB0aW9uIjoiYWFhIiwibGlua2VkUHJvamVjdElkIjoiNjM2YWE4OTE5Nzk5YTgwNGM3YjIzNThhIiwicGVybWlzc2lvbnMiOnsiaXNPd25lciI6ZmFsc2V9fSx7ImlkIjoibm9uLWRkIiwibmFtZSI6Im5vbi1kZCIsImRlc2NyaXB0aW9uIjoiIiwicGVybWlzc2lvbnMiOnsiaXNPd25lciI6ZmFsc2V9fV0sInBlcm1pc3Npb25zIjp7ImlzT3duZXIiOnRydWV9fSx7ImlkIjoiNjM2YWE4MjhhMjM5MjE0ODgxYWVkOTg1IiwibmFtZSI6IlNTT1Rlc3RFeHRlcm5hbCIsImNyZWF0ZWRBdCI6IjIwMjItMTEtMDhUMTk6MDk6MTcuNDIwWiIsInByb2plY3RzIjpbeyJpZCI6ImV4dCIsIm5hbWUiOiJleHQiLCJkZXNjcmlwdGlvbiI6ImFhYSIsImxpbmtlZFByb2plY3RJZCI6IjYzNmFhODkxOTc5OWE4MDRjN2IyMzU4YSIsInBlcm1pc3Npb25zIjp7ImlzT3duZXIiOmZhbHNlfX0seyJpZCI6Im5vbi1kZCIsIm5hbWUiOiJub24tZGQiLCJkZXNjcmlwdGlvbiI6IiIsInBlcm1pc3Npb25zIjp7ImlzT3duZXIiOmZhbHNlfX1dLCJwZXJtaXNzaW9ucyI6eyJpc093bmVyIjp0cnVlfX1dLCJpc0FkbWluIjoxfSwiaWF0IjoxNjkwOTM5NDE2LCJleHAiOjE2OTEwMjU4MTYsImF1ZCI6Imh0dHBzOi8vcm9jb3MuYXV0aDAuY29tL2FwaS92Mi8iLCJpc3MiOiJodHRwczovL3JvY29zLmF1dGgwLmNvbS8iLCJzdWIiOiJkZHw2MzgzZDQ4M2IyZmJjMmJlMTM4ZTAzMzAifQ.A4ZVdJ7c8QIH8hM7YSMRyZFR-YGTxsj1ho9dv6W8MLKpB6I6NT3ddNhyGZ-oIVAFxL8nGCbyrKVKODtYd7fuOCbvPJXk3E9uXNMFlHfCm6l8_LQddutyUOAKQRW_ACvK0Vsoq4RSzJNNJ2rnHC4LFrciyW7XgzWVqOC_3L2wfPyhpGoxc7QmsKVAlTFdocCEaIUFb3I5jJRPjHvu9xY1l_UPHkm372bjC3VtoWu5rByYME8cGc1aa4Q-CgAObECcznFOxRpPmkb4gWmLw_iwmJGGa08bgKLwE5tuN-Cyx_gtuheDG0i2ZkCP7xT9qIuCttIbE5aIOXzJ5PSbWJDqCRb09qNNseu8-KuKPYHb0tjDMax9qwoPYIojAFnZXCr9l_6NkfuLKqhXXrPVRMgD8ELC5qxjWyA2fvMpbo827NiSE5emTSkyq4b8VsftF8hNVDevv3i3zO01XaOYJHmUb1x61J3qjugFvg0VZgmnciwFvXxwIFQOhKsK86abKOQadkR5gmpLuiUS17CDQaXhpdtZjCzbY85bwY9aKXy0RoyaBW-BfccxlacJXgX7tFUTX1elCwCHvXtOnHwrsoFEv3DvqrJE2i4Z5THu4SuISrQZItpRi3lb6XtJalGCbAIUIEK3mw_esNsnu9S9MTdw24IMnKTUGNHA3t5YY9C-vdc"}).subscribe({projectId:"jackson-testing-996759",callsigns:["bob"],sources:["/rocos/agent/telemetry/heartbeat"]}).subscribe(r=>{console.log(r)})}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=yl({type:e,selectors:[["app-root"]],decls:152,vars:7,consts:[["role","banner",1,"toolbar"],["width","40","alt","Angular Logo","src","data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTAgMjUwIj4KICAgIDxwYXRoIGZpbGw9IiNERDAwMzEiIGQ9Ik0xMjUgMzBMMzEuOSA2My4ybDE0LjIgMTIzLjFMMTI1IDIzMGw3OC45LTQzLjcgMTQuMi0xMjMuMXoiIC8+CiAgICA8cGF0aCBmaWxsPSIjQzMwMDJGIiBkPSJNMTI1IDMwdjIyLjItLjFWMjMwbDc4LjktNDMuNyAxNC4yLTEyMy4xTDEyNSAzMHoiIC8+CiAgICA8cGF0aCAgZmlsbD0iI0ZGRkZGRiIgZD0iTTEyNSA1Mi4xTDY2LjggMTgyLjZoMjEuN2wxMS43LTI5LjJoNDkuNGwxMS43IDI5LjJIMTgzTDEyNSA1Mi4xem0xNyA4My4zaC0zNGwxNy00MC45IDE3IDQwLjl6IiAvPgogIDwvc3ZnPg=="],[1,"spacer"],["aria-label","Angular on twitter","target","_blank","rel","noopener","href","https://twitter.com/angular","title","Twitter"],["id","twitter-logo","height","24","data-name","Logo","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 400 400"],["width","400","height","400","fill","none"],["d","M153.62,301.59c94.34,0,145.94-78.16,145.94-145.94,0-2.22,0-4.43-.15-6.63A104.36,104.36,0,0,0,325,122.47a102.38,102.38,0,0,1-29.46,8.07,51.47,51.47,0,0,0,22.55-28.37,102.79,102.79,0,0,1-32.57,12.45,51.34,51.34,0,0,0-87.41,46.78A145.62,145.62,0,0,1,92.4,107.81a51.33,51.33,0,0,0,15.88,68.47A50.91,50.91,0,0,1,85,169.86c0,.21,0,.43,0,.65a51.31,51.31,0,0,0,41.15,50.28,51.21,51.21,0,0,1-23.16.88,51.35,51.35,0,0,0,47.92,35.62,102.92,102.92,0,0,1-63.7,22A104.41,104.41,0,0,1,75,278.55a145.21,145.21,0,0,0,78.62,23","fill","#fff"],["aria-label","Angular on YouTube","target","_blank","rel","noopener","href","https://youtube.com/angular","title","YouTube"],["id","youtube-logo","height","24","width","24","data-name","Logo","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24","fill","#fff"],["d","M0 0h24v24H0V0z","fill","none"],["d","M21.58 7.19c-.23-.86-.91-1.54-1.77-1.77C18.25 5 12 5 12 5s-6.25 0-7.81.42c-.86.23-1.54.91-1.77 1.77C2 8.75 2 12 2 12s0 3.25.42 4.81c.23.86.91 1.54 1.77 1.77C5.75 19 12 19 12 19s6.25 0 7.81-.42c.86-.23 1.54-.91 1.77-1.77C22 15.25 22 12 22 12s0-3.25-.42-4.81zM10 15V9l5.2 3-5.2 3z"],["role","main",1,"content"],[1,"card","highlight-card","card-small"],["id","rocket","xmlns","http://www.w3.org/2000/svg","width","101.678","height","101.678","viewBox","0 0 101.678 101.678"],["id","Group_83","data-name","Group 83","transform","translate(-141 -696)"],["id","Ellipse_8","data-name","Ellipse 8","cx","50.839","cy","50.839","r","50.839","transform","translate(141 696)","fill","#dd0031"],["id","Group_47","data-name","Group 47","transform","translate(165.185 720.185)"],["id","Path_33","data-name","Path 33","d","M3.4,42.615a3.084,3.084,0,0,0,3.553,3.553,21.419,21.419,0,0,0,12.215-6.107L9.511,30.4A21.419,21.419,0,0,0,3.4,42.615Z","transform","translate(0.371 3.363)","fill","#fff"],["id","Path_34","data-name","Path 34","d","M53.3,3.221A3.09,3.09,0,0,0,50.081,0,48.227,48.227,0,0,0,18.322,13.437c-6-1.666-14.991-1.221-18.322,7.218A33.892,33.892,0,0,1,9.439,25.1l-.333.666a3.013,3.013,0,0,0,.555,3.553L23.985,43.641a2.9,2.9,0,0,0,3.553.555l.666-.333A33.892,33.892,0,0,1,32.647,53.3c8.55-3.664,8.884-12.326,7.218-18.322A48.227,48.227,0,0,0,53.3,3.221ZM34.424,9.772a6.439,6.439,0,1,1,9.106,9.106,6.368,6.368,0,0,1-9.106,0A6.467,6.467,0,0,1,34.424,9.772Z","transform","translate(0 0.005)","fill","#fff"],["id","rocket-smoke","xmlns","http://www.w3.org/2000/svg","width","516.119","height","1083.632","viewBox","0 0 516.119 1083.632"],["id","Path_40","data-name","Path 40","d","M644.6,141S143.02,215.537,147.049,870.207s342.774,201.755,342.774,201.755S404.659,847.213,388.815,762.2c-27.116-145.51-11.551-384.124,271.9-609.1C671.15,139.365,644.6,141,644.6,141Z","transform","translate(-147.025 -140.939)","fill","#f5f5f5"],[1,"card-container"],["target","_blank","rel","noopener","href","https://angular.io/tutorial",1,"card"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24",1,"material-icons"],["d","M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3L1 9l11 6 9-4.91V17h2V9L12 3z"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["target","_blank","rel","noopener","href","https://angular.io/cli",1,"card"],["d","M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"],["target","_blank","rel","noopener","href","https://material.angular.io",1,"card"],["xmlns","http://www.w3.org/2000/svg","width","21.813","height","23.453","viewBox","0 0 179.2 192.7",2,"margin-right","8px"],["fill","#ffa726","d","M89.4 0 0 32l13.5 118.4 75.9 42.3 76-42.3L179.2 32 89.4 0z"],["fill","#fb8c00","d","M89.4 0v192.7l76-42.3L179.2 32 89.4 0z"],["fill","#ffe0b2","d","m102.9 146.3-63.3-30.5 36.3-22.4 63.7 30.6-36.7 22.3z"],["fill","#fff3e0","d","M102.9 122.8 39.6 92.2l36.3-22.3 63.7 30.6-36.7 22.3z"],["fill","#fff","d","M102.9 99.3 39.6 68.7l36.3-22.4 63.7 30.6-36.7 22.4z"],["target","_blank","rel","noopener","href","https://blog.angular.io/",1,"card"],["d","M13.5.67s.74 2.65.74 4.8c0 2.06-1.35 3.73-3.41 3.73-2.07 0-3.63-1.67-3.63-3.73l.03-.36C5.21 7.51 4 10.62 4 14c0 4.42 3.58 8 8 8s8-3.58 8-8C20 8.61 17.41 3.8 13.5.67zM11.71 19c-1.78 0-3.22-1.4-3.22-3.14 0-1.62 1.05-2.76 2.81-3.12 1.77-.36 3.6-1.21 4.62-2.58.39 1.29.59 2.65.59 4.04 0 2.65-2.15 4.8-4.8 4.8z"],["target","_blank","rel","noopener","href","https://angular.io/devtools/",1,"card"],["xmlns","http://www.w3.org/2000/svg","enable-background","new 0 0 24 24","height","24px","viewBox","0 0 24 24","width","24px","fill","#000000",1,"material-icons"],["fill","none","height","24","width","24"],["d","M14.73,13.31C15.52,12.24,16,10.93,16,9.5C16,5.91,13.09,3,9.5,3S3,5.91,3,9.5C3,13.09,5.91,16,9.5,16 c1.43,0,2.74-0.48,3.81-1.27L19.59,21L21,19.59L14.73,13.31z M9.5,14C7.01,14,5,11.99,5,9.5S7.01,5,9.5,5S14,7.01,14,9.5 S11.99,14,9.5,14z"],["points","10.29,8.44 9.5,6 8.71,8.44 6.25,8.44 8.26,10.03 7.49,12.5 9.5,10.97 11.51,12.5 10.74,10.03 12.75,8.44"],["type","hidden"],["selection",""],["tabindex","0",1,"card","card-small",3,"click"],["d","M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"],[1,"terminal",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],["title","Find a Local Meetup","href","https://www.meetup.com/find/?keywords=angular","target","_blank","rel","noopener",1,"circle-link"],["xmlns","http://www.w3.org/2000/svg","width","24.607","height","23.447","viewBox","0 0 24.607 23.447"],["id","logo--mSwarm","d","M21.221,14.95A4.393,4.393,0,0,1,17.6,19.281a4.452,4.452,0,0,1-.8.069c-.09,0-.125.035-.154.117a2.939,2.939,0,0,1-2.506,2.091,2.868,2.868,0,0,1-2.248-.624.168.168,0,0,0-.245-.005,3.926,3.926,0,0,1-2.589.741,4.015,4.015,0,0,1-3.7-3.347,2.7,2.7,0,0,1-.043-.38c0-.106-.042-.146-.143-.166a3.524,3.524,0,0,1-1.516-.69A3.623,3.623,0,0,1,2.23,14.557a3.66,3.66,0,0,1,1.077-3.085.138.138,0,0,0,.026-.2,3.348,3.348,0,0,1-.451-1.821,3.46,3.46,0,0,1,2.749-3.28.44.44,0,0,0,.355-.281,5.072,5.072,0,0,1,3.863-3,5.028,5.028,0,0,1,3.555.666.31.31,0,0,0,.271.03A4.5,4.5,0,0,1,18.3,4.7a4.4,4.4,0,0,1,1.334,2.751,3.658,3.658,0,0,1,.022.706.131.131,0,0,0,.1.157,2.432,2.432,0,0,1,1.574,1.645,2.464,2.464,0,0,1-.7,2.616c-.065.064-.051.1-.014.166A4.321,4.321,0,0,1,21.221,14.95ZM13.4,14.607a2.09,2.09,0,0,0,1.409,1.982,4.7,4.7,0,0,0,1.275.221,1.807,1.807,0,0,0,.9-.151.542.542,0,0,0,.321-.545.558.558,0,0,0-.359-.534,1.2,1.2,0,0,0-.254-.078c-.262-.047-.526-.086-.787-.138a.674.674,0,0,1-.617-.75,3.394,3.394,0,0,1,.218-1.109c.217-.658.509-1.286.79-1.918a15.609,15.609,0,0,0,.745-1.86,1.95,1.95,0,0,0,.06-1.073,1.286,1.286,0,0,0-1.051-1.033,1.977,1.977,0,0,0-1.521.2.339.339,0,0,1-.446-.042c-.1-.092-.2-.189-.307-.284a1.214,1.214,0,0,0-1.643-.061,7.563,7.563,0,0,1-.614.512A.588.588,0,0,1,10.883,8c-.215-.115-.437-.215-.659-.316a2.153,2.153,0,0,0-.695-.248A2.091,2.091,0,0,0,7.541,8.562a9.915,9.915,0,0,0-.405.986c-.559,1.545-1.015,3.123-1.487,4.7a1.528,1.528,0,0,0,.634,1.777,1.755,1.755,0,0,0,1.5.211,1.35,1.35,0,0,0,.824-.858c.543-1.281,1.032-2.584,1.55-3.875.142-.355.28-.712.432-1.064a.548.548,0,0,1,.851-.24.622.622,0,0,1,.185.539,2.161,2.161,0,0,1-.181.621c-.337.852-.68,1.7-1.018,2.552a2.564,2.564,0,0,0-.173.528.624.624,0,0,0,.333.71,1.073,1.073,0,0,0,.814.034,1.22,1.22,0,0,0,.657-.655q.758-1.488,1.511-2.978.35-.687.709-1.37a1.073,1.073,0,0,1,.357-.434.43.43,0,0,1,.463-.016.373.373,0,0,1,.153.387.7.7,0,0,1-.057.236c-.065.157-.127.316-.2.469-.42.883-.846,1.763-1.262,2.648A2.463,2.463,0,0,0,13.4,14.607Zm5.888,6.508a1.09,1.09,0,0,0-2.179.006,1.09,1.09,0,0,0,2.179-.006ZM1.028,12.139a1.038,1.038,0,1,0,.01-2.075,1.038,1.038,0,0,0-.01,2.075ZM13.782.528a1.027,1.027,0,1,0-.011,2.055A1.027,1.027,0,0,0,13.782.528ZM22.21,6.95a.882.882,0,0,0-1.763.011A.882.882,0,0,0,22.21,6.95ZM4.153,4.439a.785.785,0,1,0,.787-.78A.766.766,0,0,0,4.153,4.439Zm8.221,18.22a.676.676,0,1,0-.677.666A.671.671,0,0,0,12.374,22.658ZM22.872,12.2a.674.674,0,0,0-.665.665.656.656,0,0,0,.655.643.634.634,0,0,0,.655-.644A.654.654,0,0,0,22.872,12.2ZM7.171-.123A.546.546,0,0,0,6.613.43a.553.553,0,1,0,1.106,0A.539.539,0,0,0,7.171-.123ZM24.119,9.234a.507.507,0,0,0-.493.488.494.494,0,0,0,.494.494.48.48,0,0,0,.487-.483A.491.491,0,0,0,24.119,9.234Zm-19.454,9.7a.5.5,0,0,0-.488-.488.491.491,0,0,0-.487.5.483.483,0,0,0,.491.479A.49.49,0,0,0,4.665,18.936Z","transform","translate(0 0.123)","fill","#f64060"],["title","Join the Conversation on Discord","href","https://discord.gg/angular","target","_blank","rel","noopener",1,"circle-link"],["xmlns","http://www.w3.org/2000/svg","width","26","height","26","viewBox","0 0 245 240"],["d","M104.4 103.9c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1.1-6.1-4.5-11.1-10.2-11.1zM140.9 103.9c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1s-4.5-11.1-10.2-11.1z"],["d","M189.5 20h-134C44.2 20 35 29.2 35 40.6v135.2c0 11.4 9.2 20.6 20.5 20.6h113.4l-5.3-18.5 12.8 11.9 12.1 11.2 21.5 19V40.6c0-11.4-9.2-20.6-20.5-20.6zm-38.6 130.6s-3.6-4.3-6.6-8.1c13.1-3.7 18.1-11.9 18.1-11.9-4.1 2.7-8 4.6-11.5 5.9-5 2.1-9.8 3.5-14.5 4.3-9.6 1.8-18.4 1.3-25.9-.1-5.7-1.1-10.6-2.7-14.7-4.3-2.3-.9-4.8-2-7.3-3.4-.3-.2-.6-.3-.9-.5-.2-.1-.3-.2-.4-.3-1.8-1-2.8-1.7-2.8-1.7s4.8 8 17.5 11.8c-3 3.8-6.7 8.3-6.7 8.3-22.1-.7-30.5-15.2-30.5-15.2 0-32.2 14.4-58.3 14.4-58.3 14.4-10.8 28.1-10.5 28.1-10.5l1 1.2c-18 5.2-26.3 13.1-26.3 13.1s2.2-1.2 5.9-2.9c10.7-4.7 19.2-6 22.7-6.3.6-.1 1.1-.2 1.7-.2 6.1-.8 13-1 20.2-.2 9.5 1.1 19.7 3.9 30.1 9.6 0 0-7.9-7.5-24.9-12.7l1.4-1.6s13.7-.3 28.1 10.5c0 0 14.4 26.1 14.4 58.3 0 0-8.5 14.5-30.6 15.2z"],["href","https://github.com/angular/angular","target","_blank","rel","noopener"],[1,"github-star-badge"],["d","M0 0h24v24H0z","fill","none"],["d","M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z","fill","#1976d2"],["id","clouds","xmlns","http://www.w3.org/2000/svg","width","2611.084","height","485.677","viewBox","0 0 2611.084 485.677"],["id","Path_39","data-name","Path 39","d","M2379.709,863.793c10-93-77-171-168-149-52-114-225-105-264,15-75,3-140,59-152,133-30,2.83-66.725,9.829-93.5,26.25-26.771-16.421-63.5-23.42-93.5-26.25-12-74-77-130-152-133-39-120-212-129-264-15-54.084-13.075-106.753,9.173-138.488,48.9-31.734-39.726-84.4-61.974-138.487-48.9-52-114-225-105-264,15a162.027,162.027,0,0,0-103.147,43.044c-30.633-45.365-87.1-72.091-145.206-58.044-52-114-225-105-264,15-75,3-140,59-152,133-53,5-127,23-130,83-2,42,35,72,70,86,49,20,106,18,157,5a165.625,165.625,0,0,0,120,0c47,94,178,113,251,33,61.112,8.015,113.854-5.72,150.492-29.764a165.62,165.62,0,0,0,110.861-3.236c47,94,178,113,251,33,31.385,4.116,60.563,2.495,86.487-3.311,25.924,5.806,55.1,7.427,86.488,3.311,73,80,204,61,251-33a165.625,165.625,0,0,0,120,0c51,13,108,15,157-5a147.188,147.188,0,0,0,33.5-18.694,147.217,147.217,0,0,0,33.5,18.694c49,20,106,18,157,5a165.625,165.625,0,0,0,120,0c47,94,178,113,251,33C2446.709,1093.793,2554.709,922.793,2379.709,863.793Z","transform","translate(142.69 -634.312)","fill","#eee"]],template:function(n,r){if(1&n){const i=function Sm(){return B()}();q(0,"div",0),Se(1,"img",1),q(2,"span"),Re(3,"Welcome"),Q(),Se(4,"div",2),q(5,"a",3),Ve(),q(6,"svg",4),Se(7,"rect",5)(8,"path",6),Q()(),He(),q(9,"a",7),Ve(),q(10,"svg",8),Se(11,"path",9)(12,"path",10),Q()()(),He(),q(13,"div",11)(14,"div",12),Ve(),q(15,"svg",13)(16,"title"),Re(17,"Rocket Ship"),Q(),q(18,"g",14),Se(19,"circle",15),q(20,"g",16),Se(21,"path",17)(22,"path",18),Q()()(),He(),q(23,"span"),Re(24),Q(),Ve(),q(25,"svg",19)(26,"title"),Re(27,"Rocket Ship Smoke"),Q(),Se(28,"path",20),Q()(),He(),q(29,"h2"),Re(30,"Resources"),Q(),q(31,"p"),Re(32,"Here are some links to help you get started:"),Q(),q(33,"div",21)(34,"a",22),Ve(),q(35,"svg",23),Se(36,"path",24),Q(),He(),q(37,"span"),Re(38,"Learn Angular"),Q(),Ve(),q(39,"svg",23),Se(40,"path",25),Q()(),He(),q(41,"a",26),Ve(),q(42,"svg",23),Se(43,"path",27),Q(),He(),q(44,"span"),Re(45,"CLI Documentation"),Q(),Ve(),q(46,"svg",23),Se(47,"path",25),Q()(),He(),q(48,"a",28),Ve(),q(49,"svg",29),Se(50,"path",30)(51,"path",31)(52,"path",32)(53,"path",33)(54,"path",34),Q(),He(),q(55,"span"),Re(56,"Angular Material"),Q(),Ve(),q(57,"svg",23),Se(58,"path",25),Q()(),He(),q(59,"a",35),Ve(),q(60,"svg",23),Se(61,"path",36),Q(),He(),q(62,"span"),Re(63,"Angular Blog"),Q(),Ve(),q(64,"svg",23),Se(65,"path",25),Q()(),He(),q(66,"a",37),Ve(),q(67,"svg",38)(68,"g"),Se(69,"rect",39),Q(),q(70,"g")(71,"g"),Se(72,"path",40)(73,"polygon",41),Q()()(),He(),q(74,"span"),Re(75,"Angular DevTools"),Q(),Ve(),q(76,"svg",23),Se(77,"path",25),Q()()(),He(),q(78,"h2"),Re(79,"Next Steps"),Q(),q(80,"p"),Re(81,"What do you want to do next with your app?"),Q(),Se(82,"input",42,43),q(84,"div",21)(85,"button",44),Yn("click",function(){return xr(i),Pr(pr(83).value="component")}),Ve(),q(86,"svg",23),Se(87,"path",45),Q(),He(),q(88,"span"),Re(89,"New Component"),Q()(),q(90,"button",44),Yn("click",function(){return xr(i),Pr(pr(83).value="material")}),Ve(),q(91,"svg",23),Se(92,"path",45),Q(),He(),q(93,"span"),Re(94,"Angular Material"),Q()(),q(95,"button",44),Yn("click",function(){return xr(i),Pr(pr(83).value="pwa")}),Ve(),q(96,"svg",23),Se(97,"path",45),Q(),He(),q(98,"span"),Re(99,"Add PWA Support"),Q()(),q(100,"button",44),Yn("click",function(){return xr(i),Pr(pr(83).value="dependency")}),Ve(),q(101,"svg",23),Se(102,"path",45),Q(),He(),q(103,"span"),Re(104,"Add Dependency"),Q()(),q(105,"button",44),Yn("click",function(){return xr(i),Pr(pr(83).value="test")}),Ve(),q(106,"svg",23),Se(107,"path",45),Q(),He(),q(108,"span"),Re(109,"Run and Watch Tests"),Q()(),q(110,"button",44),Yn("click",function(){return xr(i),Pr(pr(83).value="build")}),Ve(),q(111,"svg",23),Se(112,"path",45),Q(),He(),q(113,"span"),Re(114,"Build for Production"),Q()()(),q(115,"div",46),Vr(116,SF,2,0,"pre",47),Vr(117,IF,2,0,"pre",48),Vr(118,MF,2,0,"pre",48),Vr(119,TF,2,0,"pre",48),Vr(120,OF,2,0,"pre",48),Vr(121,RF,2,0,"pre",48),Q(),q(122,"div",21)(123,"a",49),Ve(),q(124,"svg",50)(125,"title"),Re(126,"Meetup Logo"),Q(),Se(127,"path",51),Q()(),He(),q(128,"a",52),Ve(),q(129,"svg",53)(130,"title"),Re(131,"Discord Logo"),Q(),Se(132,"path",54)(133,"path",55),Q()()(),He(),q(134,"footer"),Re(135," Love Angular?\xa0 "),q(136,"a",56),Re(137," Give our repo a star. "),q(138,"div",57),Ve(),q(139,"svg",23),Se(140,"path",58)(141,"path",59),Q(),Re(142," Star "),Q()(),He(),q(143,"a",56),Ve(),q(144,"svg",23),Se(145,"path",60)(146,"path",58),Q()()(),q(147,"svg",61)(148,"title"),Re(149,"Gray Clouds Background"),Q(),Se(150,"path",62),Q()(),He(),Se(151,"router-outlet")}if(2&n){const i=pr(83);hr(24),Va("",r.title," app is running!"),hr(91),gr("ngSwitch",i.value),hr(2),gr("ngSwitchCase","material"),hr(1),gr("ngSwitchCase","pwa"),hr(1),gr("ngSwitchCase","dependency"),hr(1),gr("ngSwitchCase","test"),hr(1),gr("ngSwitchCase","build")}},dependencies:[hu,P0,k0,If],styles:['[_nghost-%COMP%] {\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";\n font-size: 14px;\n color: #333;\n box-sizing: border-box;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%] {\n margin: 8px 0;\n }\n\n p[_ngcontent-%COMP%] {\n margin: 0;\n }\n\n .spacer[_ngcontent-%COMP%] {\n flex: 1;\n }\n\n .toolbar[_ngcontent-%COMP%] {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 60px;\n display: flex;\n align-items: center;\n background-color: #1976d2;\n color: white;\n font-weight: 600;\n }\n\n .toolbar[_ngcontent-%COMP%] img[_ngcontent-%COMP%] {\n margin: 0 16px;\n }\n\n .toolbar[_ngcontent-%COMP%] #twitter-logo[_ngcontent-%COMP%] {\n height: 40px;\n margin: 0 8px;\n }\n\n .toolbar[_ngcontent-%COMP%] #youtube-logo[_ngcontent-%COMP%] {\n height: 40px;\n margin: 0 16px;\n }\n\n .toolbar[_ngcontent-%COMP%] #twitter-logo[_ngcontent-%COMP%]:hover, .toolbar[_ngcontent-%COMP%] #youtube-logo[_ngcontent-%COMP%]:hover {\n opacity: 0.8;\n }\n\n .content[_ngcontent-%COMP%] {\n display: flex;\n margin: 82px auto 32px;\n padding: 0 16px;\n max-width: 960px;\n flex-direction: column;\n align-items: center;\n }\n\n svg.material-icons[_ngcontent-%COMP%] {\n height: 24px;\n width: auto;\n }\n\n svg.material-icons[_ngcontent-%COMP%]:not(:last-child) {\n margin-right: 8px;\n }\n\n .card[_ngcontent-%COMP%] svg.material-icons[_ngcontent-%COMP%] path[_ngcontent-%COMP%] {\n fill: #888;\n }\n\n .card-container[_ngcontent-%COMP%] {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n margin-top: 16px;\n }\n\n .card[_ngcontent-%COMP%] {\n all: unset;\n border-radius: 4px;\n border: 1px solid #eee;\n background-color: #fafafa;\n height: 40px;\n width: 200px;\n margin: 0 8px 16px;\n padding: 16px;\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n transition: all 0.2s ease-in-out;\n line-height: 24px;\n }\n\n .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]:not(:last-child) {\n margin-right: 0;\n }\n\n .card.card-small[_ngcontent-%COMP%] {\n height: 16px;\n width: 168px;\n }\n\n .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]:not(.highlight-card) {\n cursor: pointer;\n }\n\n .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]:not(.highlight-card):hover {\n transform: translateY(-3px);\n box-shadow: 0 4px 17px rgba(0, 0, 0, 0.35);\n }\n\n .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]:not(.highlight-card):hover .material-icons[_ngcontent-%COMP%] path[_ngcontent-%COMP%] {\n fill: rgb(105, 103, 103);\n }\n\n .card.highlight-card[_ngcontent-%COMP%] {\n background-color: #1976d2;\n color: white;\n font-weight: 600;\n border: none;\n width: auto;\n min-width: 30%;\n position: relative;\n }\n\n .card.card.highlight-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n margin-left: 60px;\n }\n\n svg#rocket[_ngcontent-%COMP%] {\n width: 80px;\n position: absolute;\n left: -10px;\n top: -24px;\n }\n\n svg#rocket-smoke[_ngcontent-%COMP%] {\n height: calc(100vh - 95px);\n position: absolute;\n top: 10px;\n right: 180px;\n z-index: -10;\n }\n\n a[_ngcontent-%COMP%], a[_ngcontent-%COMP%]:visited, a[_ngcontent-%COMP%]:hover {\n color: #1976d2;\n text-decoration: none;\n }\n\n a[_ngcontent-%COMP%]:hover {\n color: #125699;\n }\n\n .terminal[_ngcontent-%COMP%] {\n position: relative;\n width: 80%;\n max-width: 600px;\n border-radius: 6px;\n padding-top: 45px;\n margin-top: 8px;\n overflow: hidden;\n background-color: rgb(15, 15, 16);\n }\n\n .terminal[_ngcontent-%COMP%]::before {\n content: "\\2022 \\2022 \\2022";\n position: absolute;\n top: 0;\n left: 0;\n height: 4px;\n background: rgb(58, 58, 58);\n color: #c2c3c4;\n width: 100%;\n font-size: 2rem;\n line-height: 0;\n padding: 14px 0;\n text-indent: 4px;\n }\n\n .terminal[_ngcontent-%COMP%] pre[_ngcontent-%COMP%] {\n font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;\n color: white;\n padding: 0 1rem 1rem;\n margin: 0;\n }\n\n .circle-link[_ngcontent-%COMP%] {\n height: 40px;\n width: 40px;\n border-radius: 40px;\n margin: 8px;\n background-color: white;\n border: 1px solid #eeeeee;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);\n transition: 1s ease-out;\n }\n\n .circle-link[_ngcontent-%COMP%]:hover {\n transform: translateY(-0.25rem);\n box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.2);\n }\n\n footer[_ngcontent-%COMP%] {\n margin-top: 8px;\n display: flex;\n align-items: center;\n line-height: 20px;\n }\n\n footer[_ngcontent-%COMP%] a[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n }\n\n .github-star-badge[_ngcontent-%COMP%] {\n color: #24292e;\n display: flex;\n align-items: center;\n font-size: 12px;\n padding: 3px 10px;\n border: 1px solid rgba(27,31,35,.2);\n border-radius: 3px;\n background-image: linear-gradient(-180deg,#fafbfc,#eff3f6 90%);\n margin-left: 4px;\n font-weight: 600;\n }\n\n .github-star-badge[_ngcontent-%COMP%]:hover {\n background-image: linear-gradient(-180deg,#f0f3f6,#e6ebf1 90%);\n border-color: rgba(27,31,35,.35);\n background-position: -.5em;\n }\n\n .github-star-badge[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%] {\n height: 16px;\n width: 16px;\n margin-right: 4px;\n }\n\n svg#clouds[_ngcontent-%COMP%] {\n position: fixed;\n bottom: -160px;\n left: -230px;\n z-index: -10;\n width: 1920px;\n }\n\n \n @media screen and (max-width: 767px) {\n .card-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.circle-link), .terminal[_ngcontent-%COMP%] {\n width: 100%;\n }\n\n .card[_ngcontent-%COMP%]:not(.highlight-card) {\n height: 16px;\n margin: 8px 0;\n }\n\n .card.highlight-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n margin-left: 72px;\n }\n\n svg#rocket-smoke[_ngcontent-%COMP%] {\n right: 120px;\n transform: rotate(-5deg);\n }\n }\n\n @media screen and (max-width: 575px) {\n svg#rocket-smoke[_ngcontent-%COMP%] {\n display: none;\n visibility: hidden;\n }\n }']}),e})(),xF=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Or({type:e,bootstrap:[NF]}),e.\u0275inj=lr({imports:[c2,nP]}),e})();l2().bootstrapModule(xF).catch(e=>console.error(e))},629:function(ce){var Y,P;ce.exports=(Y={418:function(E,_){!function(C,m){for(var b in m)C[b]=m[b]}(_,function(C){var m={};function b(f){if(m[f])return m[f].exports;var g=m[f]={i:f,l:!1,exports:{}};return C[f].call(g.exports,g,g.exports,b),g.l=!0,g.exports}return b.m=C,b.c=m,b.i=function(f){return f},b.d=function(f,g,M){b.o(f,g)||Object.defineProperty(f,g,{configurable:!1,enumerable:!0,get:M})},b.n=function(f){var g=f&&f.__esModule?function(){return f.default}:function(){return f};return b.d(g,"a",g),g},b.o=function(f,g){return Object.prototype.hasOwnProperty.call(f,g)},b.p="",b(b.s=1)}([function(C,m,b){"use strict";Object.defineProperty(m,"__esModule",{value:!0});var f=b(3),g=function(){function M(y,S){void 0===y&&(y={}),void 0===S&&(S={splitValues:!1});var O,v=this;this.headersMap={},y&&(typeof Headers<"u"&&y instanceof Headers?f.getHeaderKeys(y).forEach(function(h){f.getHeaderValues(y,h).forEach(function(I){v.append(h,S.splitValues?f.splitHeaderValue(I):I)})}):"object"==typeof(O=y)&&"object"==typeof O.headersMap&&"function"==typeof O.forEach?y.forEach(function(h,I){v.append(h,I)}):typeof Map<"u"&&y instanceof Map?y.forEach(function(h,I){v.append(I,h)}):"string"==typeof y?this.appendFromString(y):"object"==typeof y&&Object.getOwnPropertyNames(y).forEach(function(h){var I=y[h];Array.isArray(I)?I.forEach(function(F){v.append(h,F)}):v.append(h,I)}))}return M.prototype.appendFromString=function(y){for(var S=y.split("\r\n"),O=0;O<S.length;O++){var v=S[O],h=v.indexOf(":");if(h>0){var I=v.substring(0,h).trim(),F=v.substring(h+1).trim();this.append(I,F)}}},M.prototype.delete=function(y,S){var O=f.normalizeName(y);if(void 0===S)delete this.headersMap[O];else{var v=this.headersMap[O];if(v){var h=v.indexOf(S);h>=0&&v.splice(h,1),0===v.length&&delete this.headersMap[O]}}},M.prototype.append=function(y,S){var O=this,v=f.normalizeName(y);Array.isArray(this.headersMap[v])||(this.headersMap[v]=[]),Array.isArray(S)?S.forEach(function(h){O.headersMap[v].push(f.normalizeValue(h))}):this.headersMap[v].push(f.normalizeValue(S))},M.prototype.set=function(y,S){var O=f.normalizeName(y);if(Array.isArray(S)){var v=[];S.forEach(function(h){v.push(f.normalizeValue(h))}),this.headersMap[O]=v}else this.headersMap[O]=[f.normalizeValue(S)]},M.prototype.has=function(y,S){var O=this.headersMap[f.normalizeName(y)];if(!Array.isArray(O))return!1;if(void 0!==S){var v=f.normalizeValue(S);return O.indexOf(v)>=0}return!0},M.prototype.get=function(y){var S=this.headersMap[f.normalizeName(y)];return void 0!==S?S.concat():[]},M.prototype.forEach=function(y){var S=this;Object.getOwnPropertyNames(this.headersMap).forEach(function(O){y(O,S.headersMap[O])},this)},M.prototype.toHeaders=function(){if(typeof Headers<"u"){var y=new Headers;return this.forEach(function(S,O){O.forEach(function(v){y.append(S,v)})}),y}throw new Error("Headers class is not defined")},M}();m.BrowserHeaders=g},function(C,m,b){"use strict";Object.defineProperty(m,"__esModule",{value:!0});var f=b(0);m.BrowserHeaders=f.BrowserHeaders},function(C,m,b){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.iterateHeaders=function(f,g){for(var M=f[Symbol.iterator](),y=M.next();!y.done;)g(y.value[0]),y=M.next()},m.iterateHeadersKeys=function(f,g){for(var M=f.keys(),y=M.next();!y.done;)g(y.value),y=M.next()}},function(C,m,b){"use strict";Object.defineProperty(m,"__esModule",{value:!0});var f=b(2);m.normalizeName=function(g){if("string"!=typeof g&&(g=String(g)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(g))throw new TypeError("Invalid character in header field name");return g.toLowerCase()},m.normalizeValue=function(g){return"string"!=typeof g&&(g=String(g)),g},m.getHeaderValues=function(g,M){var y=g;if(y instanceof Headers&&y.getAll)return y.getAll(M);var S=y.get(M);return S&&"string"==typeof S?[S]:S},m.getHeaderKeys=function(g){var M=g,y={},S=[];return M.keys?f.iterateHeadersKeys(M,function(O){y[O]||(y[O]=!0,S.push(O))}):M.forEach?M.forEach(function(O,v){y[v]||(y[v]=!0,S.push(v))}):f.iterateHeaders(M,function(O){var v=O[0];y[v]||(y[v]=!0,S.push(v))}),S},m.splitHeaderValue=function(g){var M=[];return g.split(", ").forEach(function(y){y.split(",").forEach(function(S){M.push(S)})}),M}}]))},617:function(E,_,C){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.ChunkParser=_.ChunkType=_.encodeASCII=_.decodeASCII=void 0;var m,h,b=C(65);function f(h){return 9===(I=h)||10===I||13===I||h>=32&&h<=126;var I}function g(h){for(var I=0;I!==h.length;++I)if(!f(h[I]))throw new Error("Metadata is not valid (printable) ASCII");return String.fromCharCode.apply(String,Array.prototype.slice.call(h))}function M(h){return 128==(128&h.getUint8(0))}function y(h){return h.getUint32(1,!1)}function S(h,I,F){return h.byteLength-I>=F}function O(h,I,F){if(h.slice)return h.slice(I,F);var V=h.length;void 0!==F&&(V=F);for(var A=new Uint8Array(V-I),x=0,$=I;$<V;$++)A[x++]=h[$];return A}_.decodeASCII=g,_.encodeASCII=function(h){for(var I=new Uint8Array(h.length),F=0;F!==h.length;++F){var V=h.charCodeAt(F);if(!f(V))throw new Error("Metadata contains invalid ASCII");I[F]=V}return I},(h=m=_.ChunkType||(_.ChunkType={}))[h.MESSAGE=1]="MESSAGE",h[h.TRAILERS=2]="TRAILERS";var v=function(){function h(){this.buffer=null,this.position=0}return h.prototype.parse=function(I,F){if(0===I.length&&F)return[];var V,A=[];if(null==this.buffer)this.buffer=I,this.position=0;else if(this.position===this.buffer.byteLength)this.buffer=I,this.position=0;else{var x=this.buffer.byteLength-this.position,$=new Uint8Array(x+I.byteLength),X=O(this.buffer,this.position);$.set(X,0);var _t=new Uint8Array(I);$.set(_t,x),this.buffer=$,this.position=0}for(;;){if(!S(this.buffer,this.position,5))return A;var Te=O(this.buffer,this.position,this.position+5),ze=new DataView(Te.buffer,Te.byteOffset,Te.byteLength),H=y(ze);if(!S(this.buffer,this.position,5+H))return A;var U=O(this.buffer,this.position+5,this.position+5+H);if(this.position+=5+H,M(ze))return A.push({chunkType:m.TRAILERS,trailers:(V=U,new b.Metadata(g(V)))}),A;A.push({chunkType:m.MESSAGE,data:U})}},h}();_.ChunkParser=v},8:function(E,_){"use strict";var C,m;Object.defineProperty(_,"__esModule",{value:!0}),_.httpStatusToCode=_.Code=void 0,(m=C=_.Code||(_.Code={}))[m.OK=0]="OK",m[m.Canceled=1]="Canceled",m[m.Unknown=2]="Unknown",m[m.InvalidArgument=3]="InvalidArgument",m[m.DeadlineExceeded=4]="DeadlineExceeded",m[m.NotFound=5]="NotFound",m[m.AlreadyExists=6]="AlreadyExists",m[m.PermissionDenied=7]="PermissionDenied",m[m.ResourceExhausted=8]="ResourceExhausted",m[m.FailedPrecondition=9]="FailedPrecondition",m[m.Aborted=10]="Aborted",m[m.OutOfRange=11]="OutOfRange",m[m.Unimplemented=12]="Unimplemented",m[m.Internal=13]="Internal",m[m.Unavailable=14]="Unavailable",m[m.DataLoss=15]="DataLoss",m[m.Unauthenticated=16]="Unauthenticated",_.httpStatusToCode=function(m){switch(m){case 0:return C.Internal;case 200:return C.OK;case 400:return C.InvalidArgument;case 401:return C.Unauthenticated;case 403:return C.PermissionDenied;case 404:return C.NotFound;case 409:return C.Aborted;case 412:return C.FailedPrecondition;case 429:return C.ResourceExhausted;case 499:return C.Canceled;case 500:default:return C.Unknown;case 501:return C.Unimplemented;case 503:return C.Unavailable;case 504:return C.DeadlineExceeded}}},934:function(E,_,C){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.client=void 0;var m=C(65),b=C(617),f=C(8),g=C(346),M=C(57),y=C(882);_.client=function(v,h){return new S(v,h)};var S=function(){function v(h,I){this.started=!1,this.sentFirstMessage=!1,this.completed=!1,this.closed=!1,this.finishedSending=!1,this.onHeadersCallbacks=[],this.onMessageCallbacks=[],this.onEndCallbacks=[],this.parser=new b.ChunkParser,this.methodDefinition=h,this.props=I,this.createTransport()}return v.prototype.createTransport=function(){var I={methodDefinition:this.methodDefinition,debug:this.props.debug||!1,url:this.props.host+"/"+this.methodDefinition.service.serviceName+"/"+this.methodDefinition.methodName,onHeaders:this.onTransportHeaders.bind(this),onChunk:this.onTransportChunk.bind(this),onEnd:this.onTransportEnd.bind(this)};this.transport=this.props.transport?this.props.transport(I):M.makeDefaultTransport(I)},v.prototype.onTransportHeaders=function(h,I){if(this.props.debug&&g.debug("onHeaders",h,I),this.closed)this.props.debug&&g.debug("grpc.onHeaders received after request was closed - ignoring");else if(0!==I){this.responseHeaders=h,this.props.debug&&g.debug("onHeaders.responseHeaders",JSON.stringify(this.responseHeaders,null,2));var F=O(h);this.props.debug&&g.debug("onHeaders.gRPCStatus",F);var V=F&&F>=0?F:f.httpStatusToCode(I);this.props.debug&&g.debug("onHeaders.code",V);var A=h.get("grpc-message")||[];if(this.props.debug&&g.debug("onHeaders.gRPCMessage",A),this.rawOnHeaders(h),V!==f.Code.OK){var x=this.decodeGRPCStatus(A[0]);this.rawOnError(V,x,h)}}},v.prototype.onTransportChunk=function(h){var I=this;if(this.closed)this.props.debug&&g.debug("grpc.onChunk received after request was closed - ignoring");else{var F=[];try{F=this.parser.parse(h)}catch(V){return this.props.debug&&g.debug("onChunk.parsing error",V,V.message),void this.rawOnError(f.Code.Internal,"parsing error: "+V.message)}F.forEach(function(V){if(V.chunkType===b.ChunkType.MESSAGE){var A=I.methodDefinition.responseType.deserializeBinary(V.data);I.rawOnMessage(A)}else V.chunkType===b.ChunkType.TRAILERS&&(I.responseHeaders?(I.responseTrailers=new m.Metadata(V.trailers),I.props.debug&&g.debug("onChunk.trailers",I.responseTrailers)):(I.responseHeaders=new m.Metadata(V.trailers),I.rawOnHeaders(I.responseHeaders)))})}},v.prototype.onTransportEnd=function(){if(this.props.debug&&g.debug("grpc.onEnd"),this.closed)this.props.debug&&g.debug("grpc.onEnd received after request was closed - ignoring");else if(void 0!==this.responseTrailers){var h=O(this.responseTrailers);if(null!==h){var I=this.responseTrailers.get("grpc-message"),F=this.decodeGRPCStatus(I[0]);this.rawOnEnd(h,F,this.responseTrailers)}else this.rawOnError(f.Code.Internal,"Response closed without grpc-status (Trailers provided)")}else{if(void 0===this.responseHeaders)return void this.rawOnError(f.Code.Unknown,"Response closed without headers");var V=O(this.responseHeaders),A=this.responseHeaders.get("grpc-message");if(this.props.debug&&g.debug("grpc.headers only response ",V,A),null===V)return void this.rawOnEnd(f.Code.Unknown,"Response closed without grpc-status (Headers only)",this.responseHeaders);var x=this.decodeGRPCStatus(A[0]);this.rawOnEnd(V,x,this.responseHeaders)}},v.prototype.decodeGRPCStatus=function(h){if(!h)return"";try{return decodeURIComponent(h)}catch{return h}},v.prototype.rawOnEnd=function(h,I,F){var V=this;this.props.debug&&g.debug("rawOnEnd",h,I,F),this.completed||(this.completed=!0,this.onEndCallbacks.forEach(function(A){if(!V.closed)try{A(h,I,F)}catch(x){setTimeout(function(){throw x},0)}}))},v.prototype.rawOnHeaders=function(h){this.props.debug&&g.debug("rawOnHeaders",h),this.completed||this.onHeadersCallbacks.forEach(function(I){try{I(h)}catch(F){setTimeout(function(){throw F},0)}})},v.prototype.rawOnError=function(h,I,F){var V=this;void 0===F&&(F=new m.Metadata),this.props.debug&&g.debug("rawOnError",h,I),this.completed||(this.completed=!0,this.onEndCallbacks.forEach(function(A){if(!V.closed)try{A(h,I,F)}catch(x){setTimeout(function(){throw x},0)}}))},v.prototype.rawOnMessage=function(h){var I=this;this.props.debug&&g.debug("rawOnMessage",h.toObject()),this.completed||this.closed||this.onMessageCallbacks.forEach(function(F){if(!I.closed)try{F(h)}catch(V){setTimeout(function(){throw V},0)}})},v.prototype.onHeaders=function(h){this.onHeadersCallbacks.push(h)},v.prototype.onMessage=function(h){this.onMessageCallbacks.push(h)},v.prototype.onEnd=function(h){this.onEndCallbacks.push(h)},v.prototype.start=function(h){if(this.started)throw new Error("Client already started - cannot .start()");this.started=!0;var I=new m.Metadata(h||{});I.set("content-type","application/grpc-web+proto"),I.set("x-grpc-web","1"),this.transport.start(I)},v.prototype.send=function(h){if(!this.started)throw new Error("Client not started - .start() must be called before .send()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .send()");if(!this.methodDefinition.requestStream&&this.sentFirstMessage)throw new Error("Message already sent for non-client-streaming method - cannot .send()");this.sentFirstMessage=!0;var I=y.frameRequest(h);this.transport.sendMessage(I)},v.prototype.finishSend=function(){if(!this.started)throw new Error("Client not started - .finishSend() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .finishSend()");this.finishedSending=!0,this.transport.finishSend()},v.prototype.close=function(){if(!this.started)throw new Error("Client not started - .start() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .close()");this.closed=!0,this.props.debug&&g.debug("request.abort aborting request"),this.transport.cancel()},v}();function O(v){var h=v.get("grpc-status")||[];if(h.length>0)try{return parseInt(h[0],10)}catch{return null}return null}},346:function(E,_){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.debug=void 0,_.debug=function(){for(var C=[],m=0;m<arguments.length;m++)C[m]=arguments[m];console.debug?console.debug.apply(null,C):console.log.apply(null,C)}},607:function(E,_,C){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.grpc=void 0;var m,b=C(418),f=C(57),g=C(229),M=C(540),y=C(210),S=C(859),O=C(8),v=C(938),h=C(35),I=C(934);(m=_.grpc||(_.grpc={})).setDefaultTransport=f.setDefaultTransportFactory,m.CrossBrowserHttpTransport=S.CrossBrowserHttpTransport,m.FetchReadableStreamTransport=g.FetchReadableStreamTransport,m.XhrTransport=y.XhrTransport,m.WebsocketTransport=M.WebsocketTransport,m.Code=O.Code,m.Metadata=b.BrowserHeaders,m.client=function(F,V){return I.client(F,V)},m.invoke=v.invoke,m.unary=h.unary},938:function(E,_,C){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.invoke=void 0;var m=C(934);_.invoke=function(b,f){if(b.requestStream)throw new Error(".invoke cannot be used with client-streaming methods. Use .client instead.");var g=m.client(b,{host:f.host,transport:f.transport,debug:f.debug});return f.onHeaders&&g.onHeaders(f.onHeaders),f.onMessage&&g.onMessage(f.onMessage),f.onEnd&&g.onEnd(f.onEnd),g.start(f.metadata),g.send(f.request),g.finishSend(),{close:function(){g.close()}}}},65:function(E,_,C){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.Metadata=void 0;var m=C(418);Object.defineProperty(_,"Metadata",{enumerable:!0,get:function(){return m.BrowserHeaders}})},57:function(E,_,C){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.makeDefaultTransport=_.setDefaultTransportFactory=void 0;var m=C(859),b=function(f){return m.CrossBrowserHttpTransport({withCredentials:!1})(f)};_.setDefaultTransportFactory=function(f){b=f},_.makeDefaultTransport=function(f){return b(f)}},229:function(E,_,C){"use strict";var m=this&&this.__assign||function(){return(m=Object.assign||function(M){for(var y,S=1,O=arguments.length;S<O;S++)for(var v in y=arguments[S])Object.prototype.hasOwnProperty.call(y,v)&&(M[v]=y[v]);return M}).apply(this,arguments)};Object.defineProperty(_,"__esModule",{value:!0}),_.detectFetchSupport=_.FetchReadableStreamTransport=void 0;var b=C(65),f=C(346);_.FetchReadableStreamTransport=function(M){return function(y){return O=M,(S=y).debug&&f.debug("fetchRequest",S),new g(S,O);var S,O}};var g=function(){function M(y,S){this.cancelled=!1,this.controller=self.AbortController&&new AbortController,this.options=y,this.init=S}return M.prototype.pump=function(y,S){var O=this;if(this.reader=y,this.cancelled)return this.options.debug&&f.debug("Fetch.pump.cancel at first pump"),void this.reader.cancel().catch(function(v){O.options.debug&&f.debug("Fetch.pump.reader.cancel exception",v)});this.reader.read().then(function(v){if(v.done)return O.options.onEnd(),S;O.options.onChunk(v.value),O.pump(O.reader,S)}).catch(function(v){O.cancelled?O.options.debug&&f.debug("Fetch.catch - request cancelled"):(O.cancelled=!0,O.options.debug&&f.debug("Fetch.catch",v.message),O.options.onEnd(v))})},M.prototype.send=function(y){var S=this;fetch(this.options.url,m(m({},this.init),{headers:this.metadata.toHeaders(),method:"POST",body:y,signal:this.controller&&this.controller.signal})).then(function(O){if(S.options.debug&&f.debug("Fetch.response",O),S.options.onHeaders(new b.Metadata(O.headers),O.status),!O.body)return O;S.pump(O.body.getReader(),O)}).catch(function(O){S.cancelled?S.options.debug&&f.debug("Fetch.catch - request cancelled"):(S.cancelled=!0,S.options.debug&&f.debug("Fetch.catch",O.message),S.options.onEnd(O))})},M.prototype.sendMessage=function(y){this.send(y)},M.prototype.finishSend=function(){},M.prototype.start=function(y){this.metadata=y},M.prototype.cancel=function(){var y=this;this.cancelled?this.options.debug&&f.debug("Fetch.cancel already cancelled"):(this.cancelled=!0,this.controller?(this.options.debug&&f.debug("Fetch.cancel.controller.abort"),this.controller.abort()):this.options.debug&&f.debug("Fetch.cancel.missing abort controller"),this.reader?(this.options.debug&&f.debug("Fetch.cancel.reader.cancel"),this.reader.cancel().catch(function(S){y.options.debug&&f.debug("Fetch.cancel.reader.cancel exception",S)})):this.options.debug&&f.debug("Fetch.cancel before reader"))},M}();_.detectFetchSupport=function(){return typeof Response<"u"&&Response.prototype.hasOwnProperty("body")&&"function"==typeof Headers}},859:function(E,_,C){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.CrossBrowserHttpTransport=void 0;var m=C(229),b=C(210);_.CrossBrowserHttpTransport=function(f){return m.detectFetchSupport()?m.FetchReadableStreamTransport({credentials:f.withCredentials?"include":"same-origin"}):b.XhrTransport({withCredentials:f.withCredentials})}},210:function(E,_,C){"use strict";var m,b=this&&this.__extends||(m=function(h,I){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,V){F.__proto__=V}||function(F,V){for(var A in V)Object.prototype.hasOwnProperty.call(V,A)&&(F[A]=V[A])})(h,I)},function(h,I){function F(){this.constructor=h}m(h,I),h.prototype=null===I?Object.create(I):(F.prototype=I.prototype,new F)});Object.defineProperty(_,"__esModule",{value:!0}),_.stringToArrayBuffer=_.MozChunkedArrayBufferXHR=_.XHR=_.XhrTransport=void 0;var f=C(65),g=C(346),M=C(849);_.XhrTransport=function(h){return function(I){if(M.detectMozXHRSupport())return new S(I,h);if(M.detectXHROverrideMimeTypeSupport())return new y(I,h);throw new Error("This environment's XHR implementation cannot support binary transfer.")}};var y=function(){function h(I,F){this.options=I,this.init=F}return h.prototype.onProgressEvent=function(){this.options.debug&&g.debug("XHR.onProgressEvent.length: ",this.xhr.response.length);var I=this.xhr.response.substr(this.index);this.index=this.xhr.response.length;var F=v(I);this.options.onChunk(F)},h.prototype.onLoadEvent=function(){this.options.debug&&g.debug("XHR.onLoadEvent"),this.options.onEnd()},h.prototype.onStateChange=function(){this.options.debug&&g.debug("XHR.onStateChange",this.xhr.readyState),this.xhr.readyState===XMLHttpRequest.HEADERS_RECEIVED&&this.options.onHeaders(new f.Metadata(this.xhr.getAllResponseHeaders()),this.xhr.status)},h.prototype.sendMessage=function(I){this.xhr.send(I)},h.prototype.finishSend=function(){},h.prototype.start=function(I){var F=this;this.metadata=I;var V=new XMLHttpRequest;this.xhr=V,V.open("POST",this.options.url),this.configureXhr(),this.metadata.forEach(function(A,x){V.setRequestHeader(A,x.join(", "))}),V.withCredentials=Boolean(this.init.withCredentials),V.addEventListener("readystatechange",this.onStateChange.bind(this)),V.addEventListener("progress",this.onProgressEvent.bind(this)),V.addEventListener("loadend",this.onLoadEvent.bind(this)),V.addEventListener("error",function(A){F.options.debug&&g.debug("XHR.error",A),F.options.onEnd(A.error)})},h.prototype.configureXhr=function(){this.xhr.responseType="text",this.xhr.overrideMimeType("text/plain; charset=x-user-defined")},h.prototype.cancel=function(){this.options.debug&&g.debug("XHR.abort"),this.xhr.abort()},h}();_.XHR=y;var S=function(h){function I(){return null!==h&&h.apply(this,arguments)||this}return b(I,h),I.prototype.configureXhr=function(){this.options.debug&&g.debug("MozXHR.configureXhr: setting responseType to 'moz-chunked-arraybuffer'"),this.xhr.responseType="moz-chunked-arraybuffer"},I.prototype.onProgressEvent=function(){var F=this.xhr.response;this.options.debug&&g.debug("MozXHR.onProgressEvent: ",new Uint8Array(F)),this.options.onChunk(new Uint8Array(F))},I}(y);function O(h,I){var F=h.charCodeAt(I);if(F>=55296&&F<=56319){var V=h.charCodeAt(I+1);V>=56320&&V<=57343&&(F=65536+(F-55296<<10)+(V-56320))}return F}function v(h){for(var I=new Uint8Array(h.length),F=0,V=0;V<h.length;V++){var A=String.prototype.codePointAt?h.codePointAt(V):O(h,V);I[F++]=255&A}return I}_.MozChunkedArrayBufferXHR=S,_.stringToArrayBuffer=v},849:function(E,_){"use strict";var C;function b(f){var g=function m(){if(void 0!==C)return C;if(XMLHttpRequest){C=new XMLHttpRequest;try{C.open("GET","https://localhost")}catch{}}return C}();if(!g)return!1;try{return g.responseType=f,g.responseType===f}catch{}return!1}Object.defineProperty(_,"__esModule",{value:!0}),_.detectXHROverrideMimeTypeSupport=_.detectMozXHRSupport=_.xhrSupportsResponseType=void 0,_.xhrSupportsResponseType=b,_.detectMozXHRSupport=function(){return typeof XMLHttpRequest<"u"&&b("moz-chunked-arraybuffer")},_.detectXHROverrideMimeTypeSupport=function(){return typeof XMLHttpRequest<"u"&&XMLHttpRequest.prototype.hasOwnProperty("overrideMimeType")}},540:function(E,_,C){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.WebsocketTransport=void 0;var m,M,b=C(346),f=C(617);(M=m||(m={}))[M.FINISH_SEND=1]="FINISH_SEND";var g=new Uint8Array([1]);_.WebsocketTransport=function(){return function(M){return function(y){y.debug&&b.debug("websocketRequest",y);var S,O=function(I){if("https://"===I.substr(0,8))return"wss://"+I.substr(8);if("http://"===I.substr(0,7))return"ws://"+I.substr(7);throw new Error("Websocket transport constructed with non-https:// or http:// host.")}(y.url),v=[];function h(I){if(I===m.FINISH_SEND)S.send(g);else{var F=I,V=new Int8Array(F.byteLength+1);V.set(new Uint8Array([0])),V.set(F,1),S.send(V)}}return{sendMessage:function(I){S&&S.readyState!==S.CONNECTING?h(I):v.push(I)},finishSend:function(){S&&S.readyState!==S.CONNECTING?h(m.FINISH_SEND):v.push(m.FINISH_SEND)},start:function(I){(S=new WebSocket(O,["grpc-websockets"])).binaryType="arraybuffer",S.onopen=function(){var F;y.debug&&b.debug("websocketRequest.onopen"),S.send((F="",I.forEach(function(V,A){F+=V+": "+A.join(", ")+"\r\n"}),f.encodeASCII(F))),v.forEach(function(V){h(V)})},S.onclose=function(F){y.debug&&b.debug("websocketRequest.onclose",F),y.onEnd()},S.onerror=function(F){y.debug&&b.debug("websocketRequest.onerror",F)},S.onmessage=function(F){y.onChunk(new Uint8Array(F.data))}},cancel:function(){y.debug&&b.debug("websocket.abort"),S.close()}}}(M)}}},35:function(E,_,C){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.unary=void 0;var m=C(65),b=C(934);_.unary=function(f,g){if(f.responseStream)throw new Error(".unary cannot be used with server-streaming methods. Use .invoke or .client instead.");if(f.requestStream)throw new Error(".unary cannot be used with client-streaming methods. Use .client instead.");var M=null,y=null,S=b.client(f,{host:g.host,transport:g.transport,debug:g.debug});return S.onHeaders(function(O){M=O}),S.onMessage(function(O){y=O}),S.onEnd(function(O,v,h){g.onEnd({status:O,statusMessage:v,headers:M||new m.Metadata,message:y,trailers:h})}),S.start(g.metadata),S.send(g.request),S.finishSend(),{close:function(){S.close()}}}},882:function(E,_){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.frameRequest=void 0,_.frameRequest=function(C){var m=C.serializeBinary(),b=new ArrayBuffer(m.byteLength+5);return new DataView(b,1,4).setUint32(0,m.length,!1),new Uint8Array(b,5).set(m),new Uint8Array(b)}}},P={},function E(_){if(P[_])return P[_].exports;var C=P[_]={exports:{}};return Y[_].call(C.exports,C,C.exports,E),C.exports}(607))},99:ce=>{"use strict";ce.exports=function Y(P,E){for(var _=new Array(arguments.length-1),C=0,m=2,b=!0;m<arguments.length;)_[C++]=arguments[m++];return new Promise(function(g,M){_[C]=function(S){if(b)if(b=!1,S)M(S);else{for(var O=new Array(arguments.length-1),v=0;v<O.length;)O[v++]=arguments[v];g.apply(null,O)}};try{P.apply(E||null,_)}catch(y){b&&(b=!1,M(y))}})}},147:(ce,Y)=>{"use strict";var P=Y;P.length=function(f){var g=f.length;if(!g)return 0;for(var M=0;--g%4>1&&"="===f.charAt(g);)++M;return Math.ceil(3*f.length)/4-M};for(var E=new Array(64),_=new Array(123),C=0;C<64;)_[E[C]=C<26?C+65:C<52?C+71:C<62?C-4:C-59|43]=C++;P.encode=function(f,g,M){for(var h,y=null,S=[],O=0,v=0;g<M;){var I=f[g++];switch(v){case 0:S[O++]=E[I>>2],h=(3&I)<<4,v=1;break;case 1:S[O++]=E[h|I>>4],h=(15&I)<<2,v=2;break;case 2:S[O++]=E[h|I>>6],S[O++]=E[63&I],v=0}O>8191&&((y||(y=[])).push(String.fromCharCode.apply(String,S)),O=0)}return v&&(S[O++]=E[h],S[O++]=61,1===v&&(S[O++]=61)),y?(O&&y.push(String.fromCharCode.apply(String,S.slice(0,O))),y.join("")):String.fromCharCode.apply(String,S.slice(0,O))};var m="invalid encoding";P.decode=function(f,g,M){for(var O,y=M,S=0,v=0;v<f.length;){var h=f.charCodeAt(v++);if(61===h&&S>1)break;if(void 0===(h=_[h]))throw Error(m);switch(S){case 0:O=h,S=1;break;case 1:g[M++]=O<<2|(48&h)>>4,O=h,S=2;break;case 2:g[M++]=(15&O)<<4|(60&h)>>2,O=h,S=3;break;case 3:g[M++]=(3&O)<<6|h,S=0}}if(1===S)throw Error(m);return M-y},P.test=function(f){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(f)}},498:ce=>{"use strict";function Y(){this._listeners={}}ce.exports=Y,Y.prototype.on=function(E,_,C){return(this._listeners[E]||(this._listeners[E]=[])).push({fn:_,ctx:C||this}),this},Y.prototype.off=function(E,_){if(void 0===E)this._listeners={};else if(void 0===_)this._listeners[E]=[];else for(var C=this._listeners[E],m=0;m<C.length;)C[m].fn===_?C.splice(m,1):++m;return this},Y.prototype.emit=function(E){var _=this._listeners[E];if(_){for(var C=[],m=1;m<arguments.length;)C.push(arguments[m++]);for(m=0;m<_.length;)_[m].fn.apply(_[m++].ctx,C)}return this}},509:ce=>{"use strict";function Y(m){return typeof Float32Array<"u"?function(){var b=new Float32Array([-0]),f=new Uint8Array(b.buffer),g=128===f[3];function M(v,h,I){b[0]=v,h[I]=f[0],h[I+1]=f[1],h[I+2]=f[2],h[I+3]=f[3]}function y(v,h,I){b[0]=v,h[I]=f[3],h[I+1]=f[2],h[I+2]=f[1],h[I+3]=f[0]}function S(v,h){return f[0]=v[h],f[1]=v[h+1],f[2]=v[h+2],f[3]=v[h+3],b[0]}function O(v,h){return f[3]=v[h],f[2]=v[h+1],f[1]=v[h+2],f[0]=v[h+3],b[0]}m.writeFloatLE=g?M:y,m.writeFloatBE=g?y:M,m.readFloatLE=g?S:O,m.readFloatBE=g?O:S}():function(){function b(g,M,y,S){var O=M<0?1:0;if(O&&(M=-M),0===M)g(1/M>0?0:2147483648,y,S);else if(isNaN(M))g(2143289344,y,S);else if(M>34028234663852886e22)g((O<<31|2139095040)>>>0,y,S);else if(M<11754943508222875e-54)g((O<<31|Math.round(M/1401298464324817e-60))>>>0,y,S);else{var v=Math.floor(Math.log(M)/Math.LN2);g((O<<31|v+127<<23|8388607&Math.round(M*Math.pow(2,-v)*8388608))>>>0,y,S)}}function f(g,M,y){var S=g(M,y),O=2*(S>>31)+1,v=S>>>23&255,h=8388607&S;return 255===v?h?NaN:O*(1/0):0===v?1401298464324817e-60*O*h:O*Math.pow(2,v-150)*(h+8388608)}m.writeFloatLE=b.bind(null,P),m.writeFloatBE=b.bind(null,E),m.readFloatLE=f.bind(null,_),m.readFloatBE=f.bind(null,C)}(),typeof Float64Array<"u"?function(){var b=new Float64Array([-0]),f=new Uint8Array(b.buffer),g=128===f[7];function M(v,h,I){b[0]=v,h[I]=f[0],h[I+1]=f[1],h[I+2]=f[2],h[I+3]=f[3],h[I+4]=f[4],h[I+5]=f[5],h[I+6]=f[6],h[I+7]=f[7]}function y(v,h,I){b[0]=v,h[I]=f[7],h[I+1]=f[6],h[I+2]=f[5],h[I+3]=f[4],h[I+4]=f[3],h[I+5]=f[2],h[I+6]=f[1],h[I+7]=f[0]}function S(v,h){return f[0]=v[h],f[1]=v[h+1],f[2]=v[h+2],f[3]=v[h+3],f[4]=v[h+4],f[5]=v[h+5],f[6]=v[h+6],f[7]=v[h+7],b[0]}function O(v,h){return f[7]=v[h],f[6]=v[h+1],f[5]=v[h+2],f[4]=v[h+3],f[3]=v[h+4],f[2]=v[h+5],f[1]=v[h+6],f[0]=v[h+7],b[0]}m.writeDoubleLE=g?M:y,m.writeDoubleBE=g?y:M,m.readDoubleLE=g?S:O,m.readDoubleBE=g?O:S}():function(){function b(g,M,y,S,O,v){var h=S<0?1:0;if(h&&(S=-S),0===S)g(0,O,v+M),g(1/S>0?0:2147483648,O,v+y);else if(isNaN(S))g(0,O,v+M),g(2146959360,O,v+y);else if(S>17976931348623157e292)g(0,O,v+M),g((h<<31|2146435072)>>>0,O,v+y);else{var I;if(S<22250738585072014e-324)g((I=S/5e-324)>>>0,O,v+M),g((h<<31|I/4294967296)>>>0,O,v+y);else{var F=Math.floor(Math.log(S)/Math.LN2);1024===F&&(F=1023),g(4503599627370496*(I=S*Math.pow(2,-F))>>>0,O,v+M),g((h<<31|F+1023<<20|1048576*I&1048575)>>>0,O,v+y)}}}function f(g,M,y,S,O){var v=g(S,O+M),h=g(S,O+y),I=2*(h>>31)+1,F=h>>>20&2047,V=4294967296*(1048575&h)+v;return 2047===F?V?NaN:I*(1/0):0===F?5e-324*I*V:I*Math.pow(2,F-1075)*(V+4503599627370496)}m.writeDoubleLE=b.bind(null,P,0,4),m.writeDoubleBE=b.bind(null,E,4,0),m.readDoubleLE=f.bind(null,_,0,4),m.readDoubleBE=f.bind(null,C,4,0)}(),m}function P(m,b,f){b[f]=255&m,b[f+1]=m>>>8&255,b[f+2]=m>>>16&255,b[f+3]=m>>>24}function E(m,b,f){b[f]=m>>>24,b[f+1]=m>>>16&255,b[f+2]=m>>>8&255,b[f+3]=255&m}function _(m,b){return(m[b]|m[b+1]<<8|m[b+2]<<16|m[b+3]<<24)>>>0}function C(m,b){return(m[b]<<24|m[b+1]<<16|m[b+2]<<8|m[b+3])>>>0}ce.exports=Y(Y)},10:module=>{"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(ce){}return null}module.exports=inquire},991:ce=>{"use strict";ce.exports=function Y(P,E,_){var C=_||8192,m=C>>>1,b=null,f=C;return function(M){if(M<1||M>m)return P(M);f+M>C&&(b=P(C),f=0);var y=E.call(b,f,f+=M);return 7&f&&(f=1+(7|f)),y}}},296:(ce,Y)=>{"use strict";var P=Y;P.length=function(_){for(var C=0,m=0,b=0;b<_.length;++b)(m=_.charCodeAt(b))<128?C+=1:m<2048?C+=2:55296==(64512&m)&&56320==(64512&_.charCodeAt(b+1))?(++b,C+=4):C+=3;return C},P.read=function(_,C,m){if(m-C<1)return"";for(var y,f=null,g=[],M=0;C<m;)(y=_[C++])<128?g[M++]=y:y>191&&y<224?g[M++]=(31&y)<<6|63&_[C++]:y>239&&y<365?(y=((7&y)<<18|(63&_[C++])<<12|(63&_[C++])<<6|63&_[C++])-65536,g[M++]=55296+(y>>10),g[M++]=56320+(1023&y)):g[M++]=(15&y)<<12|(63&_[C++])<<6|63&_[C++],M>8191&&((f||(f=[])).push(String.fromCharCode.apply(String,g)),M=0);return f?(M&&f.push(String.fromCharCode.apply(String,g.slice(0,M))),f.join("")):String.fromCharCode.apply(String,g.slice(0,M))},P.write=function(_,C,m){for(var f,g,b=m,M=0;M<_.length;++M)(f=_.charCodeAt(M))<128?C[m++]=f:f<2048?(C[m++]=f>>6|192,C[m++]=63&f|128):55296==(64512&f)&&56320==(64512&(g=_.charCodeAt(M+1)))?(++M,C[m++]=(f=65536+((1023&f)<<10)+(1023&g))>>18|240,C[m++]=f>>12&63|128,C[m++]=f>>6&63|128,C[m++]=63&f|128):(C[m++]=f>>12|224,C[m++]=f>>6&63|128,C[m++]=63&f|128);return m-b}},308:function(ce){ce.exports=function(Y){var P={};function E(_){if(P[_])return P[_].exports;var C=P[_]={i:_,l:!1,exports:{}};return Y[_].call(C.exports,C,C.exports,E),C.l=!0,C.exports}return E.m=Y,E.c=P,E.i=function(_){return _},E.d=function(_,C,m){E.o(_,C)||Object.defineProperty(_,C,{configurable:!1,enumerable:!0,get:m})},E.n=function(_){var C=_&&_.__esModule?function(){return _.default}:function(){return _};return E.d(C,"a",C),C},E.o=function(_,C){return Object.prototype.hasOwnProperty.call(_,C)},E.p="",E(E.s=1)}([function(Y,P,E){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var _=E(3);var m=function(){function b(f,g){void 0===f&&(f={}),void 0===g&&(g={splitValues:!1});var M=this;this.headersMap={},f&&(typeof Headers<"u"&&f instanceof Headers?_.getHeaderKeys(f).forEach(function(O){_.getHeaderValues(f,O).forEach(function(h){M.append(O,g.splitValues?_.splitHeaderValue(h):h)})}):function C(b){return"object"==typeof b&&"object"==typeof b.headersMap&&"function"==typeof b.forEach}(f)?f.forEach(function(O,v){M.append(O,v)}):typeof Map<"u"&&f instanceof Map?f.forEach(function(O,v){M.append(v,O)}):"string"==typeof f?this.appendFromString(f):"object"==typeof f&&Object.getOwnPropertyNames(f).forEach(function(O){var h=f[O];Array.isArray(h)?h.forEach(function(I){M.append(O,I)}):M.append(O,h)}))}return b.prototype.appendFromString=function(f){for(var g=f.split("\r\n"),M=0;M<g.length;M++){var y=g[M],S=y.indexOf(":");if(S>0){var O=y.substring(0,S).trim(),v=y.substring(S+1).trim();this.append(O,v)}}},b.prototype.delete=function(f,g){var M=_.normalizeName(f);if(void 0===g)delete this.headersMap[M];else{var y=this.headersMap[M];if(y){var S=y.indexOf(g);S>=0&&y.splice(S,1),0===y.length&&delete this.headersMap[M]}}},b.prototype.append=function(f,g){var M=this,y=_.normalizeName(f);Array.isArray(this.headersMap[y])||(this.headersMap[y]=[]),Array.isArray(g)?g.forEach(function(S){M.headersMap[y].push(_.normalizeValue(S))}):this.headersMap[y].push(_.normalizeValue(g))},b.prototype.set=function(f,g){var M=_.normalizeName(f);if(Array.isArray(g)){var y=[];g.forEach(function(S){y.push(_.normalizeValue(S))}),this.headersMap[M]=y}else this.headersMap[M]=[_.normalizeValue(g)]},b.prototype.has=function(f,g){var M=this.headersMap[_.normalizeName(f)];if(!Array.isArray(M))return!1;if(void 0!==g){var S=_.normalizeValue(g);return M.indexOf(S)>=0}return!0},b.prototype.get=function(f){var g=this.headersMap[_.normalizeName(f)];return void 0!==g?g.concat():[]},b.prototype.forEach=function(f){var g=this;Object.getOwnPropertyNames(this.headersMap).forEach(function(M){f(M,g.headersMap[M])},this)},b.prototype.toHeaders=function(){if(typeof Headers<"u"){var f=new Headers;return this.forEach(function(g,M){M.forEach(function(y){f.append(g,y)})}),f}throw new Error("Headers class is not defined")},b}();P.BrowserHeaders=m},function(Y,P,E){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var _=E(0);P.BrowserHeaders=_.BrowserHeaders},function(Y,P,E){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.iterateHeaders=function _(m,b){for(var f=m[Symbol.iterator](),g=f.next();!g.done;)b(g.value[0]),g=f.next()},P.iterateHeadersKeys=function C(m,b){for(var f=m.keys(),g=f.next();!g.done;)b(g.value),g=f.next()}},function(Y,P,E){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var _=E(2);P.normalizeName=function C(y){if("string"!=typeof y&&(y=String(y)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(y))throw new TypeError("Invalid character in header field name");return y.toLowerCase()},P.normalizeValue=function m(y){return"string"!=typeof y&&(y=String(y)),y},P.getHeaderValues=function b(y,S){var O=y;if(O instanceof Headers&&O.getAll)return O.getAll(S);var v=O.get(S);return v&&"string"==typeof v?[v]:v},P.getHeaderKeys=function g(y){var S=y,O={},v=[];return S.keys?_.iterateHeadersKeys(S,function(h){O[h]||(O[h]=!0,v.push(h))}):S.forEach?S.forEach(function(h,I){O[I]||(O[I]=!0,v.push(I))}):_.iterateHeaders(S,function(h){var I=h[0];O[I]||(O[I]=!0,v.push(I))}),v},P.splitHeaderValue=function M(y){var S=[];return y.split(", ").forEach(function(v){v.split(",").forEach(function(h){S.push(h)})}),S}}])},87:function(ce,Y,P){var E,_;E=function(C){"use strict";var f,O,b={template:"[%t] %l:",levelFormatter:function(v){return v.toUpperCase()},nameFormatter:function(v){return v||"root"},timestampFormatter:function(v){return v.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/,"$1")},format:void 0},g={},S={reg:function(v){if(!v||!v.getLogger)throw new TypeError("Argument is not a root logger");f=v},apply:function(v,h){if(!v||!v.setLevel)throw new TypeError("Argument is not a logger");var I=v.methodFactory,F=v.name||"",V=g[F]||g[""]||b;return g[F]||(v.methodFactory=function A(x,$,X){var _t=I(x,$,X),Te=g[X]||g[""],ze=-1!==Te.template.indexOf("%t"),H=-1!==Te.template.indexOf("%l"),U=-1!==Te.template.indexOf("%n");return function(){for(var D="",j=arguments.length,ee=Array(j),_e=0;_e<j;_e++)ee[_e]=arguments[_e];if(F||!g[X]){var be=Te.timestampFormatter(new Date),$e=Te.levelFormatter(x),nt=Te.nameFormatter(X);Te.format?D+=Te.format($e,nt,be):(D+=Te.template,ze&&(D=D.replace(/%t/,be)),H&&(D=D.replace(/%l/,$e)),U&&(D=D.replace(/%n/,nt))),ee.length&&"string"==typeof ee[0]?ee[0]=D+" "+ee[0]:ee.unshift(D)}_t.apply(void 0,ee)}}),(h=h||{}).template&&(h.format=void 0),g[F]=function(v){for(var F,h=1,I=arguments.length;h<I;h++)for(F in arguments[h])Object.prototype.hasOwnProperty.call(arguments[h],F)&&(v[F]=arguments[h][F]);return v}({},V,h),v.setLevel(v.getLevel()),f||v.warn("It is necessary to call the function reg() of loglevel-plugin-prefix before calling apply. From the next release, it will throw an error. See more: https://github.com/kutuluk/loglevel-plugin-prefix/blob/master/README.md"),v}};return C&&(O=C.prefix,S.noConflict=function(){return C.prefix===S&&(C.prefix=O),S}),S},void 0!==(_=E.call(Y,P,Y,ce))&&(ce.exports=_)},732:function(ce,Y,P){var E,_;!function(C,m){"use strict";E=function(){var C=function(){},m="undefined",b=typeof window!==m&&typeof window.navigator!==m&&/Trident\/|MSIE /.test(window.navigator.userAgent),f=["trace","debug","info","warn","error"];function g(A,x){var $=A[x];if("function"==typeof $.bind)return $.bind(A);try{return Function.prototype.bind.call($,A)}catch{return function(){return Function.prototype.apply.apply($,[A,arguments])}}}function M(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function S(A,x){for(var $=0;$<f.length;$++){var X=f[$];this[X]=$<A?C:this.methodFactory(X,A,x)}this.log=this.debug}function O(A,x,$){return function(){typeof console!==m&&(S.call(this,x,$),this[A].apply(this,arguments))}}function v(A,x,$){return function y(A){return"debug"===A&&(A="log"),typeof console!==m&&("trace"===A&&b?M:void 0!==console[A]?g(console,A):void 0!==console.log?g(console,"log"):C)}(A)||O.apply(this,arguments)}function h(A,x,$){var _t,X=this;x=x??"WARN";var Te="loglevel";function H(){var j;if(typeof window!==m&&Te){try{j=window.localStorage[Te]}catch{}if(typeof j===m)try{var ee=window.document.cookie,_e=ee.indexOf(encodeURIComponent(Te)+"=");-1!==_e&&(j=/^([^;]+)/.exec(ee.slice(_e))[1])}catch{}return void 0===X.levels[j]&&(j=void 0),j}}"string"==typeof A?Te+=":"+A:"symbol"==typeof A&&(Te=void 0),X.name=A,X.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},X.methodFactory=$||v,X.getLevel=function(){return _t},X.setLevel=function(j,ee){if("string"==typeof j&&void 0!==X.levels[j.toUpperCase()]&&(j=X.levels[j.toUpperCase()]),!("number"==typeof j&&j>=0&&j<=X.levels.SILENT))throw"log.setLevel() called with invalid level: "+j;if(_t=j,!1!==ee&&function ze(j){var ee=(f[j]||"silent").toUpperCase();if(typeof window!==m&&Te){try{return void(window.localStorage[Te]=ee)}catch{}try{window.document.cookie=encodeURIComponent(Te)+"="+ee+";"}catch{}}}(j),S.call(X,j,A),typeof console===m&&j<X.levels.SILENT)return"No console available for logging"},X.setDefaultLevel=function(j){x=j,H()||X.setLevel(j,!1)},X.resetLevel=function(){X.setLevel(x,!1),function U(){if(typeof window!==m&&Te){try{return void window.localStorage.removeItem(Te)}catch{}try{window.document.cookie=encodeURIComponent(Te)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}()},X.enableAll=function(j){X.setLevel(X.levels.TRACE,j)},X.disableAll=function(j){X.setLevel(X.levels.SILENT,j)};var D=H();null==D&&(D=x),X.setLevel(D,!1)}var I=new h,F={};I.getLogger=function(x){if("symbol"!=typeof x&&"string"!=typeof x||""===x)throw new TypeError("You must supply a name when creating a logger.");var $=F[x];return $||($=F[x]=new h(x,I.getLevel(),I.methodFactory)),$};var V=typeof window!==m?window.log:void 0;return I.noConflict=function(){return typeof window!==m&&window.log===I&&(window.log=V),I},I.getLoggers=function(){return F},I.default=I,I},void 0!==(_=E.call(Y,P,Y,ce))&&(ce.exports=_)}()},458:ce=>{ce.exports=P;var Y=null;try{Y=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function P(U,D,j){this.low=0|U,this.high=0|D,this.unsigned=!!j}function E(U){return!0===(U&&U.__isLong__)}Object.defineProperty(P.prototype,"__isLong__",{value:!0}),P.isLong=E;var _={},C={};function m(U,D){var j,ee,_e;return D?(_e=0<=(U>>>=0)&&U<256)&&(ee=C[U])?ee:(j=f(U,(0|U)<0?-1:0,!0),_e&&(C[U]=j),j):(_e=-128<=(U|=0)&&U<128)&&(ee=_[U])?ee:(j=f(U,U<0?-1:0,!1),_e&&(_[U]=j),j)}function b(U,D){if(isNaN(U))return D?A:V;if(D){if(U<0)return A;if(U>=h)return Te}else{if(U<=-I)return ze;if(U+1>=I)return _t}return U<0?b(-U,D).neg():f(U%v|0,U/v|0,D)}function f(U,D,j){return new P(U,D,j)}P.fromInt=m,P.fromNumber=b,P.fromBits=f;var g=Math.pow;function M(U,D,j){if(0===U.length)throw Error("empty string");if("NaN"===U||"Infinity"===U||"+Infinity"===U||"-Infinity"===U)return V;if("number"==typeof D?(j=D,D=!1):D=!!D,(j=j||10)<2||36<j)throw RangeError("radix");var ee;if((ee=U.indexOf("-"))>0)throw Error("interior hyphen");if(0===ee)return M(U.substring(1),D,j).neg();for(var _e=b(g(j,8)),be=V,$e=0;$e<U.length;$e+=8){var nt=Math.min(8,U.length-$e),Oe=parseInt(U.substring($e,$e+nt),j);if(nt<8){var at=b(g(j,nt));be=be.mul(at).add(b(Oe))}else be=(be=be.mul(_e)).add(b(Oe))}return be.unsigned=D,be}function y(U,D){return"number"==typeof U?b(U,D):"string"==typeof U?M(U,D):f(U.low,U.high,"boolean"==typeof D?D:U.unsigned)}P.fromString=M,P.fromValue=y;var v=4294967296,h=v*v,I=h/2,F=m(1<<24),V=m(0);P.ZERO=V;var A=m(0,!0);P.UZERO=A;var x=m(1);P.ONE=x;var $=m(1,!0);P.UONE=$;var X=m(-1);P.NEG_ONE=X;var _t=f(-1,2147483647,!1);P.MAX_VALUE=_t;var Te=f(-1,-1,!0);P.MAX_UNSIGNED_VALUE=Te;var ze=f(0,-2147483648,!1);P.MIN_VALUE=ze;var H=P.prototype;H.toInt=function(){return this.unsigned?this.low>>>0:this.low},H.toNumber=function(){return this.unsigned?(this.high>>>0)*v+(this.low>>>0):this.high*v+(this.low>>>0)},H.toString=function(D){if((D=D||10)<2||36<D)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(ze)){var j=b(D),ee=this.div(j),_e=ee.mul(j).sub(this);return ee.toString(D)+_e.toInt().toString(D)}return"-"+this.neg().toString(D)}for(var be=b(g(D,6),this.unsigned),$e=this,nt="";;){var Oe=$e.div(be),Je=($e.sub(Oe.mul(be)).toInt()>>>0).toString(D);if(($e=Oe).isZero())return Je+nt;for(;Je.length<6;)Je="0"+Je;nt=""+Je+nt}},H.getHighBits=function(){return this.high},H.getHighBitsUnsigned=function(){return this.high>>>0},H.getLowBits=function(){return this.low},H.getLowBitsUnsigned=function(){return this.low>>>0},H.getNumBitsAbs=function(){if(this.isNegative())return this.eq(ze)?64:this.neg().getNumBitsAbs();for(var D=0!=this.high?this.high:this.low,j=31;j>0&&!(D&1<<j);j--);return 0!=this.high?j+33:j+1},H.isZero=function(){return 0===this.high&&0===this.low},H.eqz=H.isZero,H.isNegative=function(){return!this.unsigned&&this.high<0},H.isPositive=function(){return this.unsigned||this.high>=0},H.isOdd=function(){return 1==(1&this.low)},H.isEven=function(){return 0==(1&this.low)},H.equals=function(D){return E(D)||(D=y(D)),(this.unsigned===D.unsigned||this.high>>>31!=1||D.high>>>31!=1)&&this.high===D.high&&this.low===D.low},H.eq=H.equals,H.notEquals=function(D){return!this.eq(D)},H.neq=H.notEquals,H.ne=H.notEquals,H.lessThan=function(D){return this.comp(D)<0},H.lt=H.lessThan,H.lessThanOrEqual=function(D){return this.comp(D)<=0},H.lte=H.lessThanOrEqual,H.le=H.lessThanOrEqual,H.greaterThan=function(D){return this.comp(D)>0},H.gt=H.greaterThan,H.greaterThanOrEqual=function(D){return this.comp(D)>=0},H.gte=H.greaterThanOrEqual,H.ge=H.greaterThanOrEqual,H.compare=function(D){if(E(D)||(D=y(D)),this.eq(D))return 0;var j=this.isNegative(),ee=D.isNegative();return j&&!ee?-1:!j&&ee?1:this.unsigned?D.high>>>0>this.high>>>0||D.high===this.high&&D.low>>>0>this.low>>>0?-1:1:this.sub(D).isNegative()?-1:1},H.comp=H.compare,H.negate=function(){return!this.unsigned&&this.eq(ze)?ze:this.not().add(x)},H.neg=H.negate,H.add=function(D){E(D)||(D=y(D));var Je=0,Ft=0,rt=0,We=0;return rt+=(We+=(65535&this.low)+(65535&D.low))>>>16,Ft+=(rt+=(this.low>>>16)+(D.low>>>16))>>>16,Je+=(Ft+=(65535&this.high)+(65535&D.high))>>>16,Je+=(this.high>>>16)+(D.high>>>16),f((rt&=65535)<<16|(We&=65535),(Je&=65535)<<16|(Ft&=65535),this.unsigned)},H.subtract=function(D){return E(D)||(D=y(D)),this.add(D.neg())},H.sub=H.subtract,H.multiply=function(D){if(this.isZero())return V;if(E(D)||(D=y(D)),Y)return f(Y.mul(this.low,this.high,D.low,D.high),Y.get_high(),this.unsigned);if(D.isZero())return V;if(this.eq(ze))return D.isOdd()?ze:V;if(D.eq(ze))return this.isOdd()?ze:V;if(this.isNegative())return D.isNegative()?this.neg().mul(D.neg()):this.neg().mul(D).neg();if(D.isNegative())return this.mul(D.neg()).neg();if(this.lt(F)&&D.lt(F))return b(this.toNumber()*D.toNumber(),this.unsigned);var _e=65535&this.high,be=this.low>>>16,$e=65535&this.low,Oe=65535&D.high,at=D.low>>>16,Je=65535&D.low,Ft=0,rt=0,We=0,Tr=0;return We+=(Tr+=$e*Je)>>>16,rt+=(We+=be*Je)>>>16,We&=65535,rt+=(We+=$e*at)>>>16,Ft+=(rt+=_e*Je)>>>16,rt&=65535,Ft+=(rt+=be*at)>>>16,rt&=65535,Ft+=(rt+=$e*Oe)>>>16,Ft+=(this.high>>>16)*Je+_e*at+be*Oe+$e*(D.high>>>16),f((We&=65535)<<16|(Tr&=65535),(Ft&=65535)<<16|(rt&=65535),this.unsigned)},H.mul=H.multiply,H.divide=function(D){if(E(D)||(D=y(D)),D.isZero())throw Error("division by zero");var ee,_e,be;if(Y)return this.unsigned||-2147483648!==this.high||-1!==D.low||-1!==D.high?f((this.unsigned?Y.div_u:Y.div_s)(this.low,this.high,D.low,D.high),Y.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?A:V;if(this.unsigned){if(D.unsigned||(D=D.toUnsigned()),D.gt(this))return A;if(D.gt(this.shru(1)))return $;be=A}else{if(this.eq(ze))return D.eq(x)||D.eq(X)?ze:D.eq(ze)?x:(ee=this.shr(1).div(D).shl(1)).eq(V)?D.isNegative()?x:X:(_e=this.sub(D.mul(ee)),be=ee.add(_e.div(D)));if(D.eq(ze))return this.unsigned?A:V;if(this.isNegative())return D.isNegative()?this.neg().div(D.neg()):this.neg().div(D).neg();if(D.isNegative())return this.div(D.neg()).neg();be=V}for(_e=this;_e.gte(D);){ee=Math.max(1,Math.floor(_e.toNumber()/D.toNumber()));for(var nt=Math.ceil(Math.log(ee)/Math.LN2),Oe=nt<=48?1:g(2,nt-48),at=b(ee),Je=at.mul(D);Je.isNegative()||Je.gt(_e);)Je=(at=b(ee-=Oe,this.unsigned)).mul(D);at.isZero()&&(at=x),be=be.add(at),_e=_e.sub(Je)}return be},H.div=H.divide,H.modulo=function(D){return E(D)||(D=y(D)),Y?f((this.unsigned?Y.rem_u:Y.rem_s)(this.low,this.high,D.low,D.high),Y.get_high(),this.unsigned):this.sub(this.div(D).mul(D))},H.mod=H.modulo,H.rem=H.modulo,H.not=function(){return f(~this.low,~this.high,this.unsigned)},H.and=function(D){return E(D)||(D=y(D)),f(this.low&D.low,this.high&D.high,this.unsigned)},H.or=function(D){return E(D)||(D=y(D)),f(this.low|D.low,this.high|D.high,this.unsigned)},H.xor=function(D){return E(D)||(D=y(D)),f(this.low^D.low,this.high^D.high,this.unsigned)},H.shiftLeft=function(D){return E(D)&&(D=D.toInt()),0==(D&=63)?this:D<32?f(this.low<<D,this.high<<D|this.low>>>32-D,this.unsigned):f(0,this.low<<D-32,this.unsigned)},H.shl=H.shiftLeft,H.shiftRight=function(D){return E(D)&&(D=D.toInt()),0==(D&=63)?this:D<32?f(this.low>>>D|this.high<<32-D,this.high>>D,this.unsigned):f(this.high>>D-32,this.high>=0?0:-1,this.unsigned)},H.shr=H.shiftRight,H.shiftRightUnsigned=function(D){if(E(D)&&(D=D.toInt()),0==(D&=63))return this;var j=this.high;return D<32?f(this.low>>>D|j<<32-D,j>>>D,this.unsigned):f(32===D?j:j>>>D-32,0,this.unsigned)},H.shru=H.shiftRightUnsigned,H.shr_u=H.shiftRightUnsigned,H.toSigned=function(){return this.unsigned?f(this.low,this.high,!1):this},H.toUnsigned=function(){return this.unsigned?this:f(this.low,this.high,!0)},H.toBytes=function(D){return D?this.toBytesLE():this.toBytesBE()},H.toBytesLE=function(){var D=this.high,j=this.low;return[255&j,j>>>8&255,j>>>16&255,j>>>24,255&D,D>>>8&255,D>>>16&255,D>>>24]},H.toBytesBE=function(){var D=this.high,j=this.low;return[D>>>24,D>>>16&255,D>>>8&255,255&D,j>>>24,j>>>16&255,j>>>8&255,255&j]},P.fromBytes=function(D,j,ee){return ee?P.fromBytesLE(D,j):P.fromBytesBE(D,j)},P.fromBytesLE=function(D,j){return new P(D[0]|D[1]<<8|D[2]<<16|D[3]<<24,D[4]|D[5]<<8|D[6]<<16|D[7]<<24,j)},P.fromBytesBE=function(D,j){return new P(D[4]<<24|D[5]<<16|D[6]<<8|D[7],D[0]<<24|D[1]<<16|D[2]<<8|D[3],j)}},176:(ce,Y,P)=>{"use strict";ce.exports=P(634)},634:(ce,Y,P)=>{"use strict";var E=Y;function _(){E.util._configure(),E.Writer._configure(E.BufferWriter),E.Reader._configure(E.BufferReader)}E.build="minimal",E.Writer=P(591),E.BufferWriter=P(95),E.Reader=P(672),E.BufferReader=P(127),E.util=P(728),E.rpc=P(606),E.roots=P(818),E.configure=_,_()},672:(ce,Y,P)=>{"use strict";ce.exports=f;var _,E=P(728),C=E.LongBits,m=E.utf8;function b(v,h){return RangeError("index out of range: "+v.pos+" + "+(h||1)+" > "+v.len)}function f(v){this.buf=v,this.pos=0,this.len=v.length}var h,g=typeof Uint8Array<"u"?function(h){if(h instanceof Uint8Array||Array.isArray(h))return new f(h);throw Error("illegal buffer")}:function(h){if(Array.isArray(h))return new f(h);throw Error("illegal buffer")},M=function(){return E.Buffer?function(I){return(f.create=function(V){return E.Buffer.isBuffer(V)?new _(V):g(V)})(I)}:g};function y(){var v=new C(0,0),h=0;if(!(this.len-this.pos>4)){for(;h<3;++h){if(this.pos>=this.len)throw b(this);if(v.lo=(v.lo|(127&this.buf[this.pos])<<7*h)>>>0,this.buf[this.pos++]<128)return v}return v.lo=(v.lo|(127&this.buf[this.pos++])<<7*h)>>>0,v}for(;h<4;++h)if(v.lo=(v.lo|(127&this.buf[this.pos])<<7*h)>>>0,this.buf[this.pos++]<128)return v;if(v.lo=(v.lo|(127&this.buf[this.pos])<<28)>>>0,v.hi=(v.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return v;if(h=0,this.len-this.pos>4){for(;h<5;++h)if(v.hi=(v.hi|(127&this.buf[this.pos])<<7*h+3)>>>0,this.buf[this.pos++]<128)return v}else for(;h<5;++h){if(this.pos>=this.len)throw b(this);if(v.hi=(v.hi|(127&this.buf[this.pos])<<7*h+3)>>>0,this.buf[this.pos++]<128)return v}throw Error("invalid varint encoding")}function S(v,h){return(v[h-4]|v[h-3]<<8|v[h-2]<<16|v[h-1]<<24)>>>0}function O(){if(this.pos+8>this.len)throw b(this,8);return new C(S(this.buf,this.pos+=4),S(this.buf,this.pos+=4))}f.create=M(),f.prototype._slice=E.Array.prototype.subarray||E.Array.prototype.slice,f.prototype.uint32=(h=4294967295,function(){if(h=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(h=(h|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(h=(h|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(h=(h|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(h=(h|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return h;if((this.pos+=5)>this.len)throw this.pos=this.len,b(this,10);return h}),f.prototype.int32=function(){return 0|this.uint32()},f.prototype.sint32=function(){var h=this.uint32();return h>>>1^-(1&h)|0},f.prototype.bool=function(){return 0!==this.uint32()},f.prototype.fixed32=function(){if(this.pos+4>this.len)throw b(this,4);return S(this.buf,this.pos+=4)},f.prototype.sfixed32=function(){if(this.pos+4>this.len)throw b(this,4);return 0|S(this.buf,this.pos+=4)},f.prototype.float=function(){if(this.pos+4>this.len)throw b(this,4);var h=E.float.readFloatLE(this.buf,this.pos);return this.pos+=4,h},f.prototype.double=function(){if(this.pos+8>this.len)throw b(this,4);var h=E.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,h},f.prototype.bytes=function(){var h=this.uint32(),I=this.pos,F=this.pos+h;if(F>this.len)throw b(this,h);return this.pos+=h,Array.isArray(this.buf)?this.buf.slice(I,F):I===F?new this.buf.constructor(0):this._slice.call(this.buf,I,F)},f.prototype.string=function(){var h=this.bytes();return m.read(h,0,h.length)},f.prototype.skip=function(h){if("number"==typeof h){if(this.pos+h>this.len)throw b(this,h);this.pos+=h}else do{if(this.pos>=this.len)throw b(this)}while(128&this.buf[this.pos++]);return this},f.prototype.skipType=function(v){switch(v){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(v=7&this.uint32());)this.skipType(v);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+v+" at offset "+this.pos)}return this},f._configure=function(v){_=v,f.create=M(),_._configure();var h=E.Long?"toLong":"toNumber";E.merge(f.prototype,{int64:function(){return y.call(this)[h](!1)},uint64:function(){return y.call(this)[h](!0)},sint64:function(){return y.call(this).zzDecode()[h](!1)},fixed64:function(){return O.call(this)[h](!0)},sfixed64:function(){return O.call(this)[h](!1)}})}},127:(ce,Y,P)=>{"use strict";ce.exports=C;var E=P(672);(C.prototype=Object.create(E.prototype)).constructor=C;var _=P(728);function C(m){E.call(this,m)}C._configure=function(){_.Buffer&&(C.prototype._slice=_.Buffer.prototype.slice)},C.prototype.string=function(){var b=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+b,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+b,this.len))},C._configure()},818:ce=>{"use strict";ce.exports={}},606:(ce,Y,P)=>{"use strict";Y.Service=P(48)},48:(ce,Y,P)=>{"use strict";ce.exports=_;var E=P(728);function _(C,m,b){if("function"!=typeof C)throw TypeError("rpcImpl must be a function");E.EventEmitter.call(this),this.rpcImpl=C,this.requestDelimited=Boolean(m),this.responseDelimited=Boolean(b)}(_.prototype=Object.create(E.EventEmitter.prototype)).constructor=_,_.prototype.rpcCall=function C(m,b,f,g,M){if(!g)throw TypeError("request must be specified");var y=this;if(!M)return E.asPromise(C,y,m,b,f,g);if(y.rpcImpl)try{return y.rpcImpl(m,b[y.requestDelimited?"encodeDelimited":"encode"](g).finish(),function(O,v){if(O)return y.emit("error",O,m),M(O);if(null!==v){if(!(v instanceof f))try{v=f[y.responseDelimited?"decodeDelimited":"decode"](v)}catch(h){return y.emit("error",h,m),M(h)}return y.emit("data",v,m),M(null,v)}y.end(!0)})}catch(S){return y.emit("error",S,m),void setTimeout(function(){M(S)},0)}else setTimeout(function(){M(Error("already ended"))},0)},_.prototype.end=function(m){return this.rpcImpl&&(m||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},442:(ce,Y,P)=>{"use strict";ce.exports=_;var E=P(728);function _(f,g){this.lo=f>>>0,this.hi=g>>>0}var C=_.zero=new _(0,0);C.toNumber=function(){return 0},C.zzEncode=C.zzDecode=function(){return this},C.length=function(){return 1};var m=_.zeroHash="\0\0\0\0\0\0\0\0";_.fromNumber=function(g){if(0===g)return C;var M=g<0;M&&(g=-g);var y=g>>>0,S=(g-y)/4294967296>>>0;return M&&(S=~S>>>0,y=~y>>>0,++y>4294967295&&(y=0,++S>4294967295&&(S=0))),new _(y,S)},_.from=function(g){if("number"==typeof g)return _.fromNumber(g);if(E.isString(g)){if(!E.Long)return _.fromNumber(parseInt(g,10));g=E.Long.fromString(g)}return g.low||g.high?new _(g.low>>>0,g.high>>>0):C},_.prototype.toNumber=function(g){if(!g&&this.hi>>>31){var M=1+~this.lo>>>0,y=~this.hi>>>0;return M||(y=y+1>>>0),-(M+4294967296*y)}return this.lo+4294967296*this.hi},_.prototype.toLong=function(g){return E.Long?new E.Long(0|this.lo,0|this.hi,Boolean(g)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(g)}};var b=String.prototype.charCodeAt;_.fromHash=function(g){return g===m?C:new _((b.call(g,0)|b.call(g,1)<<8|b.call(g,2)<<16|b.call(g,3)<<24)>>>0,(b.call(g,4)|b.call(g,5)<<8|b.call(g,6)<<16|b.call(g,7)<<24)>>>0)},_.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},_.prototype.zzEncode=function(){var g=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^g)>>>0,this.lo=(this.lo<<1^g)>>>0,this},_.prototype.zzDecode=function(){var g=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^g)>>>0,this.hi=(this.hi>>>1^g)>>>0,this},_.prototype.length=function(){var g=this.lo,M=(this.lo>>>28|this.hi<<4)>>>0,y=this.hi>>>24;return 0===y?0===M?g<16384?g<128?1:2:g<2097152?3:4:M<16384?M<128?5:6:M<2097152?7:8:y<128?9:10}},728:function(ce,Y,P){"use strict";var E=Y;function _(m,b,f){for(var g=Object.keys(b),M=0;M<g.length;++M)(void 0===m[g[M]]||!f)&&(m[g[M]]=b[g[M]]);return m}function C(m){function b(f,g){if(!(this instanceof b))return new b(f,g);Object.defineProperty(this,"message",{get:function(){return f}}),Error.captureStackTrace?Error.captureStackTrace(this,b):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),g&&_(this,g)}return b.prototype=Object.create(Error.prototype,{constructor:{value:b,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return m},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),b}E.asPromise=P(99),E.base64=P(147),E.EventEmitter=P(498),E.float=P(509),E.inquire=P(10),E.utf8=P(296),E.pool=P(991),E.LongBits=P(442),E.isNode=Boolean(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node),E.global=E.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||this,E.emptyArray=Object.freeze?Object.freeze([]):[],E.emptyObject=Object.freeze?Object.freeze({}):{},E.isInteger=Number.isInteger||function(b){return"number"==typeof b&&isFinite(b)&&Math.floor(b)===b},E.isString=function(b){return"string"==typeof b||b instanceof String},E.isObject=function(b){return b&&"object"==typeof b},E.isset=E.isSet=function(b,f){var g=b[f];return!(null==g||!b.hasOwnProperty(f))&&("object"!=typeof g||(Array.isArray(g)?g.length:Object.keys(g).length)>0)},E.Buffer=function(){try{var m=E.inquire("buffer").Buffer;return m.prototype.utf8Write?m:null}catch{return null}}(),E._Buffer_from=null,E._Buffer_allocUnsafe=null,E.newBuffer=function(b){return"number"==typeof b?E.Buffer?E._Buffer_allocUnsafe(b):new E.Array(b):E.Buffer?E._Buffer_from(b):typeof Uint8Array>"u"?b:new Uint8Array(b)},E.Array=typeof Uint8Array<"u"?Uint8Array:Array,E.Long=E.global.dcodeIO&&E.global.dcodeIO.Long||E.global.Long||E.inquire("long"),E.key2Re=/^true|false|0|1$/,E.key32Re=/^-?(?:0|[1-9][0-9]*)$/,E.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,E.longToHash=function(b){return b?E.LongBits.from(b).toHash():E.LongBits.zeroHash},E.longFromHash=function(b,f){var g=E.LongBits.fromHash(b);return E.Long?E.Long.fromBits(g.lo,g.hi,f):g.toNumber(Boolean(f))},E.merge=_,E.lcFirst=function(b){return b.charAt(0).toLowerCase()+b.substring(1)},E.newError=C,E.ProtocolError=C("ProtocolError"),E.oneOfGetter=function(b){for(var f={},g=0;g<b.length;++g)f[b[g]]=1;return function(){for(var M=Object.keys(this),y=M.length-1;y>-1;--y)if(1===f[M[y]]&&null!=this[M[y]])return M[y]}},E.oneOfSetter=function(b){return function(f){for(var g=0;g<b.length;++g)b[g]!==f&&delete this[b[g]]}},E.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},E._configure=function(){var m=E.Buffer;m?(E._Buffer_from=m.from!==Uint8Array.from&&m.from||function(f,g){return new m(f,g)},E._Buffer_allocUnsafe=m.allocUnsafe||function(f){return new m(f)}):E._Buffer_from=E._Buffer_allocUnsafe=null}},591:(ce,Y,P)=>{"use strict";ce.exports=y;var _,E=P(728),C=E.LongBits,m=E.base64,b=E.utf8;function f(A,x,$){this.fn=A,this.len=x,this.next=void 0,this.val=$}function g(){}function M(A){this.head=A.head,this.tail=A.tail,this.len=A.len,this.next=A.states}function y(){this.len=0,this.head=new f(g,0,0),this.tail=this.head,this.states=null}var S=function(){return E.Buffer?function(){return(y.create=function(){return new _})()}:function(){return new y}};function O(A,x,$){x[$]=255&A}function h(A,x){this.len=A,this.next=void 0,this.val=x}function I(A,x,$){for(;A.hi;)x[$++]=127&A.lo|128,A.lo=(A.lo>>>7|A.hi<<25)>>>0,A.hi>>>=7;for(;A.lo>127;)x[$++]=127&A.lo|128,A.lo=A.lo>>>7;x[$++]=A.lo}function F(A,x,$){x[$]=255&A,x[$+1]=A>>>8&255,x[$+2]=A>>>16&255,x[$+3]=A>>>24}y.create=S(),y.alloc=function(x){return new E.Array(x)},E.Array!==Array&&(y.alloc=E.pool(y.alloc,E.Array.prototype.subarray)),y.prototype._push=function(x,$,X){return this.tail=this.tail.next=new f(x,$,X),this.len+=$,this},(h.prototype=Object.create(f.prototype)).fn=function v(A,x,$){for(;A>127;)x[$++]=127&A|128,A>>>=7;x[$]=A},y.prototype.uint32=function(x){return this.len+=(this.tail=this.tail.next=new h((x>>>=0)<128?1:x<16384?2:x<2097152?3:x<268435456?4:5,x)).len,this},y.prototype.int32=function(x){return x<0?this._push(I,10,C.fromNumber(x)):this.uint32(x)},y.prototype.sint32=function(x){return this.uint32((x<<1^x>>31)>>>0)},y.prototype.int64=y.prototype.uint64=function(x){var $=C.from(x);return this._push(I,$.length(),$)},y.prototype.sint64=function(x){var $=C.from(x).zzEncode();return this._push(I,$.length(),$)},y.prototype.bool=function(x){return this._push(O,1,x?1:0)},y.prototype.sfixed32=y.prototype.fixed32=function(x){return this._push(F,4,x>>>0)},y.prototype.sfixed64=y.prototype.fixed64=function(x){var $=C.from(x);return this._push(F,4,$.lo)._push(F,4,$.hi)},y.prototype.float=function(x){return this._push(E.float.writeFloatLE,4,x)},y.prototype.double=function(x){return this._push(E.float.writeDoubleLE,8,x)};var V=E.Array.prototype.set?function(x,$,X){$.set(x,X)}:function(x,$,X){for(var _t=0;_t<x.length;++_t)$[X+_t]=x[_t]};y.prototype.bytes=function(x){var $=x.length>>>0;if(!$)return this._push(O,1,0);if(E.isString(x)){var X=y.alloc($=m.length(x));m.decode(x,X,0),x=X}return this.uint32($)._push(V,$,x)},y.prototype.string=function(x){var $=b.length(x);return $?this.uint32($)._push(b.write,$,x):this._push(O,1,0)},y.prototype.fork=function(){return this.states=new M(this),this.head=this.tail=new f(g,0,0),this.len=0,this},y.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new f(g,0,0),this.len=0),this},y.prototype.ldelim=function(){var x=this.head,$=this.tail,X=this.len;return this.reset().uint32(X),X&&(this.tail.next=x.next,this.tail=$,this.len+=X),this},y.prototype.finish=function(){for(var x=this.head.next,$=this.constructor.alloc(this.len),X=0;x;)x.fn(x.val,$,X),X+=x.len,x=x.next;return $},y._configure=function(A){_=A,y.create=S(),_._configure()}},95:(ce,Y,P)=>{"use strict";ce.exports=C;var E=P(591);(C.prototype=Object.create(E.prototype)).constructor=C;var _=P(728);function C(){E.call(this)}function m(b,f,g){b.length<40?_.utf8.write(b,f,g):f.utf8Write?f.utf8Write(b,g):f.write(b,g)}C._configure=function(){C.alloc=_._Buffer_allocUnsafe,C.writeBytesBuffer=_.Buffer&&_.Buffer.prototype instanceof Uint8Array&&"set"===_.Buffer.prototype.set.name?function(f,g,M){g.set(f,M)}:function(f,g,M){if(f.copy)f.copy(g,M,0,f.length);else for(var y=0;y<f.length;)g[M++]=f[y++]}},C.prototype.bytes=function(f){_.isString(f)&&(f=_._Buffer_from(f,"base64"));var g=f.length>>>0;return this.uint32(g),g&&this._push(C.writeBytesBuffer,g,f),this},C.prototype.string=function(f){var g=_.Buffer.byteLength(f);return this.uint32(g),g&&this._push(m,g,f),this},C._configure()}},ce=>{ce(ce.s=614)}]);
2
+ //# sourceMappingURL=main.c9183649ce1856ef.js.map