claude-mpm 4.24.0__py3-none-any.whl → 5.4.41__py3-none-any.whl

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.

Potentially problematic release.


This version of claude-mpm might be problematic. Click here for more details.

Files changed (623) hide show
  1. claude_mpm/VERSION +1 -1
  2. claude_mpm/__init__.py +4 -0
  3. claude_mpm/agents/BASE_AGENT.md +164 -0
  4. claude_mpm/agents/{OUTPUT_STYLE.md → CLAUDE_MPM_OUTPUT_STYLE.md} +3 -48
  5. claude_mpm/agents/CLAUDE_MPM_TEACHER_OUTPUT_STYLE.md +2002 -0
  6. claude_mpm/agents/MEMORY.md +1 -1
  7. claude_mpm/agents/PM_INSTRUCTIONS.md +735 -925
  8. claude_mpm/agents/WORKFLOW.md +5 -254
  9. claude_mpm/agents/__init__.py +6 -0
  10. claude_mpm/agents/agent_loader.py +14 -48
  11. claude_mpm/agents/base_agent.json +7 -4
  12. claude_mpm/agents/frontmatter_validator.py +71 -3
  13. claude_mpm/agents/templates/circuit-breakers.md +1391 -0
  14. claude_mpm/agents/templates/context-management-examples.md +544 -0
  15. claude_mpm/agents/templates/{pm_red_flags.md → pm-red-flags.md} +48 -0
  16. claude_mpm/agents/templates/pr-workflow-examples.md +427 -0
  17. claude_mpm/agents/templates/research-gate-examples.md +669 -0
  18. claude_mpm/agents/templates/structured-questions-examples.md +615 -0
  19. claude_mpm/agents/templates/ticket-completeness-examples.md +139 -0
  20. claude_mpm/agents/templates/ticketing-examples.md +277 -0
  21. claude_mpm/cli/__init__.py +37 -2
  22. claude_mpm/cli/__main__.py +4 -0
  23. claude_mpm/cli/chrome_devtools_installer.py +175 -0
  24. claude_mpm/cli/commands/__init__.py +2 -0
  25. claude_mpm/cli/commands/agent_source.py +774 -0
  26. claude_mpm/cli/commands/agent_state_manager.py +180 -31
  27. claude_mpm/cli/commands/agents.py +1116 -55
  28. claude_mpm/cli/commands/agents_cleanup.py +210 -0
  29. claude_mpm/cli/commands/agents_discover.py +338 -0
  30. claude_mpm/cli/commands/aggregate.py +1 -1
  31. claude_mpm/cli/commands/analyze.py +3 -3
  32. claude_mpm/cli/commands/auto_configure.py +725 -242
  33. claude_mpm/cli/commands/config.py +95 -6
  34. claude_mpm/cli/commands/configure.py +1875 -46
  35. claude_mpm/cli/commands/configure_agent_display.py +29 -10
  36. claude_mpm/cli/commands/configure_navigation.py +63 -46
  37. claude_mpm/cli/commands/debug.py +12 -12
  38. claude_mpm/cli/commands/doctor.py +10 -2
  39. claude_mpm/cli/commands/hook_errors.py +277 -0
  40. claude_mpm/cli/commands/local_deploy.py +1 -4
  41. claude_mpm/cli/commands/mcp_install_commands.py +1 -1
  42. claude_mpm/cli/commands/mpm_init/core.py +229 -2
  43. claude_mpm/cli/commands/mpm_init/git_activity.py +10 -10
  44. claude_mpm/cli/commands/mpm_init/knowledge_extractor.py +481 -0
  45. claude_mpm/cli/commands/mpm_init/prompts.py +286 -6
  46. claude_mpm/cli/commands/postmortem.py +401 -0
  47. claude_mpm/cli/commands/profile.py +277 -0
  48. claude_mpm/cli/commands/run.py +123 -165
  49. claude_mpm/cli/commands/skill_source.py +694 -0
  50. claude_mpm/cli/commands/skills.py +782 -20
  51. claude_mpm/cli/commands/summarize.py +413 -0
  52. claude_mpm/cli/executor.py +96 -3
  53. claude_mpm/cli/interactive/agent_wizard.py +1030 -45
  54. claude_mpm/cli/parsers/agent_source_parser.py +171 -0
  55. claude_mpm/cli/parsers/agents_parser.py +307 -10
  56. claude_mpm/cli/parsers/auto_configure_parser.py +13 -138
  57. claude_mpm/cli/parsers/base_parser.py +65 -0
  58. claude_mpm/cli/parsers/config_parser.py +162 -39
  59. claude_mpm/cli/parsers/profile_parser.py +148 -0
  60. claude_mpm/cli/parsers/skill_source_parser.py +169 -0
  61. claude_mpm/cli/parsers/skills_parser.py +146 -0
  62. claude_mpm/cli/parsers/source_parser.py +138 -0
  63. claude_mpm/cli/startup.py +1280 -118
  64. claude_mpm/cli/startup_display.py +480 -0
  65. claude_mpm/cli/utils.py +1 -1
  66. claude_mpm/cli_module/commands.py +1 -1
  67. claude_mpm/commands/mpm-config.md +21 -134
  68. claude_mpm/commands/mpm-doctor.md +16 -20
  69. claude_mpm/commands/mpm-help.md +13 -283
  70. claude_mpm/commands/mpm-init.md +88 -489
  71. claude_mpm/commands/mpm-monitor.md +23 -401
  72. claude_mpm/commands/mpm-organize.md +72 -247
  73. claude_mpm/commands/mpm-postmortem.md +21 -0
  74. claude_mpm/commands/mpm-session-resume.md +30 -0
  75. claude_mpm/commands/mpm-status.md +13 -68
  76. claude_mpm/commands/mpm-ticket-view.md +109 -0
  77. claude_mpm/commands/mpm-version.md +13 -106
  78. claude_mpm/commands/mpm.md +10 -0
  79. claude_mpm/config/agent_presets.py +488 -0
  80. claude_mpm/config/agent_sources.py +352 -0
  81. claude_mpm/config/skill_presets.py +392 -0
  82. claude_mpm/config/skill_sources.py +590 -0
  83. claude_mpm/constants.py +13 -0
  84. claude_mpm/core/claude_runner.py +5 -34
  85. claude_mpm/core/config.py +15 -1
  86. claude_mpm/core/constants.py +1 -1
  87. claude_mpm/core/framework/__init__.py +3 -16
  88. claude_mpm/core/framework/formatters/content_formatter.py +3 -13
  89. claude_mpm/core/framework/loaders/agent_loader.py +8 -5
  90. claude_mpm/core/framework/loaders/file_loader.py +54 -101
  91. claude_mpm/core/framework/loaders/instruction_loader.py +66 -5
  92. claude_mpm/core/framework_loader.py +4 -2
  93. claude_mpm/core/hook_error_memory.py +381 -0
  94. claude_mpm/core/hook_manager.py +41 -2
  95. claude_mpm/core/interactive_session.py +91 -10
  96. claude_mpm/core/logger.py +16 -1
  97. claude_mpm/core/oneshot_session.py +71 -8
  98. claude_mpm/core/optimized_startup.py +59 -0
  99. claude_mpm/core/output_style_manager.py +173 -43
  100. claude_mpm/core/protocols/__init__.py +23 -0
  101. claude_mpm/core/protocols/runner_protocol.py +103 -0
  102. claude_mpm/core/protocols/session_protocol.py +131 -0
  103. claude_mpm/core/shared/config_loader.py +1 -1
  104. claude_mpm/core/shared/singleton_manager.py +11 -4
  105. claude_mpm/core/socketio_pool.py +3 -3
  106. claude_mpm/core/system_context.py +38 -0
  107. claude_mpm/core/unified_agent_registry.py +134 -16
  108. claude_mpm/core/unified_config.py +22 -0
  109. claude_mpm/dashboard/static/svelte-build/_app/env.js +1 -0
  110. claude_mpm/dashboard/static/svelte-build/_app/immutable/assets/0.B_FtCwCQ.css +1 -0
  111. claude_mpm/dashboard/static/svelte-build/_app/immutable/assets/2.Cl_eSA4x.css +1 -0
  112. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/BgChzWQ1.js +1 -0
  113. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/CIXEwuWe.js +1 -0
  114. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/CWc5urbQ.js +1 -0
  115. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/DMkZpdF2.js +2 -0
  116. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/DjhvlsAc.js +1 -0
  117. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/N4qtv3Hx.js +2 -0
  118. claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/uj46x2Wr.js +1 -0
  119. claude_mpm/dashboard/static/svelte-build/_app/immutable/entry/app.DTL5mJO-.js +2 -0
  120. claude_mpm/dashboard/static/svelte-build/_app/immutable/entry/start.DzuEhzqh.js +1 -0
  121. claude_mpm/dashboard/static/svelte-build/_app/immutable/nodes/0.CAGBuiOw.js +1 -0
  122. claude_mpm/dashboard/static/svelte-build/_app/immutable/nodes/1.DFLC8jdE.js +1 -0
  123. claude_mpm/dashboard/static/svelte-build/_app/immutable/nodes/2.DPvEihJJ.js +10 -0
  124. claude_mpm/dashboard/static/svelte-build/_app/version.json +1 -0
  125. claude_mpm/dashboard/static/svelte-build/favicon.svg +7 -0
  126. claude_mpm/dashboard/static/svelte-build/index.html +36 -0
  127. claude_mpm/experimental/cli_enhancements.py +1 -5
  128. claude_mpm/hooks/claude_hooks/__pycache__/__init__.cpython-311.pyc +0 -0
  129. claude_mpm/hooks/claude_hooks/__pycache__/correlation_manager.cpython-311.pyc +0 -0
  130. claude_mpm/hooks/claude_hooks/__pycache__/event_handlers.cpython-311.pyc +0 -0
  131. claude_mpm/hooks/claude_hooks/__pycache__/hook_handler.cpython-311.pyc +0 -0
  132. claude_mpm/hooks/claude_hooks/__pycache__/installer.cpython-311.pyc +0 -0
  133. claude_mpm/hooks/claude_hooks/__pycache__/memory_integration.cpython-311.pyc +0 -0
  134. claude_mpm/hooks/claude_hooks/__pycache__/response_tracking.cpython-311.pyc +0 -0
  135. claude_mpm/hooks/claude_hooks/__pycache__/tool_analysis.cpython-311.pyc +0 -0
  136. claude_mpm/hooks/claude_hooks/correlation_manager.py +60 -0
  137. claude_mpm/hooks/claude_hooks/event_handlers.py +214 -79
  138. claude_mpm/hooks/claude_hooks/hook_handler.py +155 -1
  139. claude_mpm/hooks/claude_hooks/installer.py +33 -10
  140. claude_mpm/hooks/claude_hooks/memory_integration.py +28 -0
  141. claude_mpm/hooks/claude_hooks/response_tracking.py +2 -3
  142. claude_mpm/hooks/claude_hooks/services/__pycache__/__init__.cpython-311.pyc +0 -0
  143. claude_mpm/hooks/claude_hooks/services/__pycache__/connection_manager.cpython-311.pyc +0 -0
  144. claude_mpm/hooks/claude_hooks/services/__pycache__/connection_manager_http.cpython-311.pyc +0 -0
  145. claude_mpm/hooks/claude_hooks/services/__pycache__/duplicate_detector.cpython-311.pyc +0 -0
  146. claude_mpm/hooks/claude_hooks/services/__pycache__/state_manager.cpython-311.pyc +0 -0
  147. claude_mpm/hooks/claude_hooks/services/__pycache__/subagent_processor.cpython-311.pyc +0 -0
  148. claude_mpm/hooks/claude_hooks/services/connection_manager.py +30 -6
  149. claude_mpm/hooks/failure_learning/__init__.py +2 -8
  150. claude_mpm/hooks/failure_learning/failure_detection_hook.py +1 -6
  151. claude_mpm/hooks/failure_learning/fix_detection_hook.py +1 -6
  152. claude_mpm/hooks/failure_learning/learning_extraction_hook.py +1 -6
  153. claude_mpm/hooks/kuzu_response_hook.py +1 -5
  154. claude_mpm/hooks/memory_integration_hook.py +46 -1
  155. claude_mpm/init.py +63 -19
  156. claude_mpm/models/agent_definition.py +7 -0
  157. claude_mpm/models/git_repository.py +198 -0
  158. claude_mpm/scripts/claude-hook-handler.sh +60 -20
  159. claude_mpm/scripts/launch_monitor.py +93 -13
  160. claude_mpm/scripts/start_activity_logging.py +3 -1
  161. claude_mpm/services/agents/agent_builder.py +48 -12
  162. claude_mpm/services/agents/agent_preset_service.py +238 -0
  163. claude_mpm/services/agents/agent_recommendation_service.py +278 -0
  164. claude_mpm/services/agents/agent_review_service.py +280 -0
  165. claude_mpm/services/agents/agent_selection_service.py +484 -0
  166. claude_mpm/services/agents/auto_deploy_index_parser.py +569 -0
  167. claude_mpm/services/agents/cache_git_manager.py +621 -0
  168. claude_mpm/services/agents/deployment/agent_deployment.py +148 -2
  169. claude_mpm/services/agents/deployment/agent_discovery_service.py +104 -73
  170. claude_mpm/services/agents/deployment/agent_format_converter.py +1 -1
  171. claude_mpm/services/agents/deployment/agent_lifecycle_manager.py +1 -5
  172. claude_mpm/services/agents/deployment/agent_metrics_collector.py +3 -3
  173. claude_mpm/services/agents/deployment/agent_restore_handler.py +1 -4
  174. claude_mpm/services/agents/deployment/agent_template_builder.py +238 -15
  175. claude_mpm/services/agents/deployment/agents_directory_resolver.py +101 -15
  176. claude_mpm/services/agents/deployment/async_agent_deployment.py +2 -1
  177. claude_mpm/services/agents/deployment/facade/deployment_facade.py +3 -3
  178. claude_mpm/services/agents/deployment/multi_source_deployment_service.py +422 -31
  179. claude_mpm/services/agents/deployment/pipeline/pipeline_executor.py +2 -2
  180. claude_mpm/services/agents/deployment/refactored_agent_deployment_service.py +1 -4
  181. claude_mpm/services/agents/deployment/remote_agent_discovery_service.py +841 -0
  182. claude_mpm/services/agents/deployment/single_agent_deployer.py +2 -2
  183. claude_mpm/services/agents/deployment/system_instructions_deployer.py +168 -46
  184. claude_mpm/services/agents/deployment/validation/deployment_validator.py +2 -2
  185. claude_mpm/services/agents/git_source_manager.py +663 -0
  186. claude_mpm/services/agents/loading/base_agent_manager.py +1 -13
  187. claude_mpm/services/agents/loading/framework_agent_loader.py +9 -12
  188. claude_mpm/services/agents/local_template_manager.py +50 -10
  189. claude_mpm/services/agents/recommender.py +5 -3
  190. claude_mpm/services/agents/single_tier_deployment_service.py +696 -0
  191. claude_mpm/services/agents/sources/__init__.py +13 -0
  192. claude_mpm/services/agents/sources/agent_sync_state.py +516 -0
  193. claude_mpm/services/agents/sources/git_source_sync_service.py +1094 -0
  194. claude_mpm/services/agents/startup_sync.py +259 -0
  195. claude_mpm/services/agents/toolchain_detector.py +478 -0
  196. claude_mpm/services/analysis/__init__.py +35 -0
  197. claude_mpm/services/analysis/clone_detector.py +1030 -0
  198. claude_mpm/services/analysis/postmortem_reporter.py +474 -0
  199. claude_mpm/services/analysis/postmortem_service.py +765 -0
  200. claude_mpm/services/cli/session_pause_manager.py +1 -1
  201. claude_mpm/services/command_deployment_service.py +271 -6
  202. claude_mpm/services/core/base.py +7 -2
  203. claude_mpm/services/core/interfaces/__init__.py +1 -3
  204. claude_mpm/services/core/interfaces/health.py +1 -4
  205. claude_mpm/services/core/models/__init__.py +2 -11
  206. claude_mpm/services/diagnostics/checks/__init__.py +4 -0
  207. claude_mpm/services/diagnostics/checks/agent_check.py +2 -4
  208. claude_mpm/services/diagnostics/checks/agent_sources_check.py +577 -0
  209. claude_mpm/services/diagnostics/checks/instructions_check.py +1 -2
  210. claude_mpm/services/diagnostics/checks/mcp_check.py +0 -1
  211. claude_mpm/services/diagnostics/checks/mcp_services_check.py +7 -15
  212. claude_mpm/services/diagnostics/checks/monitor_check.py +0 -1
  213. claude_mpm/services/diagnostics/checks/skill_sources_check.py +587 -0
  214. claude_mpm/services/diagnostics/diagnostic_runner.py +9 -0
  215. claude_mpm/services/diagnostics/doctor_reporter.py +40 -10
  216. claude_mpm/services/event_bus/config.py +3 -1
  217. claude_mpm/services/event_bus/direct_relay.py +3 -3
  218. claude_mpm/services/events/consumers/logging.py +1 -2
  219. claude_mpm/services/git/__init__.py +21 -0
  220. claude_mpm/services/git/git_operations_service.py +579 -0
  221. claude_mpm/services/github/__init__.py +21 -0
  222. claude_mpm/services/github/github_cli_service.py +397 -0
  223. claude_mpm/services/infrastructure/monitoring/__init__.py +1 -5
  224. claude_mpm/services/infrastructure/monitoring/aggregator.py +1 -6
  225. claude_mpm/services/instructions/__init__.py +9 -0
  226. claude_mpm/services/instructions/instruction_cache_service.py +374 -0
  227. claude_mpm/services/local_ops/__init__.py +3 -13
  228. claude_mpm/services/local_ops/health_checks/__init__.py +1 -3
  229. claude_mpm/services/local_ops/health_manager.py +1 -4
  230. claude_mpm/services/local_ops/resource_monitor.py +1 -1
  231. claude_mpm/services/mcp_config_manager.py +75 -145
  232. claude_mpm/services/mcp_service_verifier.py +6 -3
  233. claude_mpm/services/model/model_router.py +1 -2
  234. claude_mpm/services/monitor/daemon.py +38 -11
  235. claude_mpm/services/monitor/daemon_manager.py +134 -21
  236. claude_mpm/services/monitor/management/lifecycle.py +8 -1
  237. claude_mpm/services/monitor/server.py +700 -24
  238. claude_mpm/services/pm_skills_deployer.py +676 -0
  239. claude_mpm/services/port_manager.py +1 -1
  240. claude_mpm/services/pr/__init__.py +14 -0
  241. claude_mpm/services/pr/pr_template_service.py +329 -0
  242. claude_mpm/services/profile_manager.py +331 -0
  243. claude_mpm/services/project/documentation_manager.py +2 -1
  244. claude_mpm/services/project/project_organizer.py +4 -0
  245. claude_mpm/services/project/toolchain_analyzer.py +3 -1
  246. claude_mpm/services/runner_configuration_service.py +16 -3
  247. claude_mpm/services/self_upgrade_service.py +120 -12
  248. claude_mpm/services/session_management_service.py +16 -4
  249. claude_mpm/services/skills/__init__.py +21 -0
  250. claude_mpm/services/skills/git_skill_source_manager.py +1297 -0
  251. claude_mpm/services/skills/selective_skill_deployer.py +704 -0
  252. claude_mpm/services/skills/skill_discovery_service.py +568 -0
  253. claude_mpm/services/skills/skill_to_agent_mapper.py +406 -0
  254. claude_mpm/services/skills_config.py +547 -0
  255. claude_mpm/services/skills_deployer.py +1072 -0
  256. claude_mpm/services/socketio/dashboard_server.py +1 -0
  257. claude_mpm/services/socketio/event_normalizer.py +51 -6
  258. claude_mpm/services/socketio/handlers/connection.py +1 -1
  259. claude_mpm/services/socketio/handlers/git.py +1 -1
  260. claude_mpm/services/socketio/server/core.py +387 -112
  261. claude_mpm/services/socketio/server/main.py +1 -3
  262. claude_mpm/services/system_instructions_service.py +1 -3
  263. claude_mpm/services/unified/analyzer_strategies/performance_analyzer.py +0 -3
  264. claude_mpm/services/unified/analyzer_strategies/security_analyzer.py +0 -1
  265. claude_mpm/services/unified/deployment_strategies/vercel.py +1 -5
  266. claude_mpm/services/unified/unified_deployment.py +1 -5
  267. claude_mpm/services/version_control/conflict_resolution.py +6 -4
  268. claude_mpm/services/version_control/git_operations.py +103 -0
  269. claude_mpm/services/visualization/__init__.py +1 -5
  270. claude_mpm/services/visualization/mermaid_generator.py +2 -3
  271. claude_mpm/skills/bundled/testing/webapp-testing/scripts/with_server.py +2 -2
  272. claude_mpm/skills/skill_manager.py +92 -3
  273. claude_mpm/skills/skills_registry.py +0 -1
  274. claude_mpm/templates/questions/__init__.py +38 -0
  275. claude_mpm/templates/questions/base.py +193 -0
  276. claude_mpm/templates/questions/pr_strategy.py +311 -0
  277. claude_mpm/templates/questions/project_init.py +385 -0
  278. claude_mpm/templates/questions/ticket_mgmt.py +394 -0
  279. claude_mpm/tools/__main__.py +8 -8
  280. claude_mpm/utils/agent_dependency_loader.py +91 -12
  281. claude_mpm/utils/agent_filters.py +261 -0
  282. claude_mpm/utils/dependency_cache.py +3 -1
  283. claude_mpm/utils/gitignore.py +244 -0
  284. claude_mpm/utils/migration.py +372 -0
  285. claude_mpm/utils/progress.py +387 -0
  286. claude_mpm/utils/robust_installer.py +49 -7
  287. claude_mpm/utils/structured_questions.py +619 -0
  288. {claude_mpm-4.24.0.dist-info → claude_mpm-5.4.41.dist-info}/METADATA +445 -122
  289. {claude_mpm-4.24.0.dist-info → claude_mpm-5.4.41.dist-info}/RECORD +298 -503
  290. claude_mpm-5.4.41.dist-info/entry_points.txt +5 -0
  291. claude_mpm-5.4.41.dist-info/licenses/LICENSE +94 -0
  292. claude_mpm-5.4.41.dist-info/licenses/LICENSE-FAQ.md +153 -0
  293. claude_mpm/agents/BASE_AGENT_TEMPLATE.md +0 -292
  294. claude_mpm/agents/BASE_DOCUMENTATION.md +0 -53
  295. claude_mpm/agents/BASE_OPS.md +0 -219
  296. claude_mpm/agents/BASE_PM.md +0 -468
  297. claude_mpm/agents/BASE_PROMPT_ENGINEER.md +0 -787
  298. claude_mpm/agents/BASE_QA.md +0 -167
  299. claude_mpm/agents/BASE_RESEARCH.md +0 -53
  300. claude_mpm/agents/base_agent_loader.py +0 -626
  301. claude_mpm/agents/templates/.claude-mpm/memories/README.md +0 -17
  302. claude_mpm/agents/templates/.claude-mpm/memories/engineer_memories.md +0 -3
  303. claude_mpm/agents/templates/agent-manager.json +0 -273
  304. claude_mpm/agents/templates/agentic-coder-optimizer.json +0 -248
  305. claude_mpm/agents/templates/api_qa.json +0 -183
  306. claude_mpm/agents/templates/circuit_breakers.md +0 -638
  307. claude_mpm/agents/templates/clerk-ops.json +0 -235
  308. claude_mpm/agents/templates/code_analyzer.json +0 -101
  309. claude_mpm/agents/templates/content-agent.json +0 -358
  310. claude_mpm/agents/templates/dart_engineer.json +0 -307
  311. claude_mpm/agents/templates/data_engineer.json +0 -225
  312. claude_mpm/agents/templates/documentation.json +0 -238
  313. claude_mpm/agents/templates/engineer.json +0 -210
  314. claude_mpm/agents/templates/gcp_ops_agent.json +0 -253
  315. claude_mpm/agents/templates/golang_engineer.json +0 -270
  316. claude_mpm/agents/templates/imagemagick.json +0 -264
  317. claude_mpm/agents/templates/java_engineer.json +0 -346
  318. claude_mpm/agents/templates/javascript_engineer_agent.json +0 -380
  319. claude_mpm/agents/templates/local_ops_agent.json +0 -1840
  320. claude_mpm/agents/templates/logs/prompts/agent_engineer_20250826_014258_728.md +0 -39
  321. claude_mpm/agents/templates/logs/prompts/agent_engineer_20250901_010124_142.md +0 -400
  322. claude_mpm/agents/templates/memory_manager.json +0 -158
  323. claude_mpm/agents/templates/nextjs_engineer.json +0 -285
  324. claude_mpm/agents/templates/ops.json +0 -185
  325. claude_mpm/agents/templates/php-engineer.json +0 -287
  326. claude_mpm/agents/templates/product_owner.json +0 -338
  327. claude_mpm/agents/templates/project_organizer.json +0 -144
  328. claude_mpm/agents/templates/prompt-engineer.json +0 -737
  329. claude_mpm/agents/templates/python_engineer.json +0 -387
  330. claude_mpm/agents/templates/qa.json +0 -243
  331. claude_mpm/agents/templates/react_engineer.json +0 -239
  332. claude_mpm/agents/templates/refactoring_engineer.json +0 -276
  333. claude_mpm/agents/templates/research.json +0 -188
  334. claude_mpm/agents/templates/ruby-engineer.json +0 -280
  335. claude_mpm/agents/templates/rust_engineer.json +0 -275
  336. claude_mpm/agents/templates/security.json +0 -202
  337. claude_mpm/agents/templates/svelte-engineer.json +0 -225
  338. claude_mpm/agents/templates/tauri_engineer.json +0 -274
  339. claude_mpm/agents/templates/ticketing.json +0 -178
  340. claude_mpm/agents/templates/typescript_engineer.json +0 -285
  341. claude_mpm/agents/templates/vercel_ops_agent.json +0 -412
  342. claude_mpm/agents/templates/version_control.json +0 -159
  343. claude_mpm/agents/templates/web_qa.json +0 -400
  344. claude_mpm/agents/templates/web_ui.json +0 -189
  345. claude_mpm/cli/commands/agents_detect.py +0 -380
  346. claude_mpm/cli/commands/agents_recommend.py +0 -309
  347. claude_mpm/cli/ticket_cli.py +0 -35
  348. claude_mpm/commands/mpm-agents-detect.md +0 -168
  349. claude_mpm/commands/mpm-agents-recommend.md +0 -214
  350. claude_mpm/commands/mpm-agents.md +0 -122
  351. claude_mpm/commands/mpm-auto-configure.md +0 -269
  352. claude_mpm/commands/mpm-resume.md +0 -372
  353. claude_mpm/commands/mpm-tickets.md +0 -151
  354. claude_mpm/dashboard/.claude-mpm/socketio-instances.json +0 -1
  355. claude_mpm/dashboard/analysis_runner.py +0 -455
  356. claude_mpm/dashboard/index.html +0 -13
  357. claude_mpm/dashboard/open_dashboard.py +0 -66
  358. claude_mpm/dashboard/react/components/DataInspector/DataInspector.module.css +0 -188
  359. claude_mpm/dashboard/react/components/EventViewer/EventViewer.module.css +0 -156
  360. claude_mpm/dashboard/react/components/shared/ConnectionStatus.module.css +0 -38
  361. claude_mpm/dashboard/react/components/shared/FilterBar.module.css +0 -92
  362. claude_mpm/dashboard/static/archive/activity_dashboard_fixed.html +0 -248
  363. claude_mpm/dashboard/static/archive/activity_dashboard_test.html +0 -61
  364. claude_mpm/dashboard/static/archive/test_activity_connection.html +0 -179
  365. claude_mpm/dashboard/static/archive/test_claude_tree_tab.html +0 -68
  366. claude_mpm/dashboard/static/archive/test_dashboard.html +0 -409
  367. claude_mpm/dashboard/static/archive/test_dashboard_fixed.html +0 -519
  368. claude_mpm/dashboard/static/archive/test_dashboard_verification.html +0 -181
  369. claude_mpm/dashboard/static/archive/test_file_data.html +0 -315
  370. claude_mpm/dashboard/static/archive/test_file_tree_empty_state.html +0 -243
  371. claude_mpm/dashboard/static/archive/test_file_tree_fix.html +0 -234
  372. claude_mpm/dashboard/static/archive/test_file_tree_rename.html +0 -117
  373. claude_mpm/dashboard/static/archive/test_file_tree_tab.html +0 -115
  374. claude_mpm/dashboard/static/archive/test_file_viewer.html +0 -224
  375. claude_mpm/dashboard/static/archive/test_final_activity.html +0 -220
  376. claude_mpm/dashboard/static/archive/test_tab_fix.html +0 -139
  377. claude_mpm/dashboard/static/built/assets/events.DjpNxWNo.css +0 -1
  378. claude_mpm/dashboard/static/built/components/activity-tree.js +0 -2
  379. claude_mpm/dashboard/static/built/components/agent-hierarchy.js +0 -777
  380. claude_mpm/dashboard/static/built/components/agent-inference.js +0 -2
  381. claude_mpm/dashboard/static/built/components/build-tracker.js +0 -333
  382. claude_mpm/dashboard/static/built/components/code-simple.js +0 -857
  383. claude_mpm/dashboard/static/built/components/code-tree/tree-breadcrumb.js +0 -353
  384. claude_mpm/dashboard/static/built/components/code-tree/tree-constants.js +0 -235
  385. claude_mpm/dashboard/static/built/components/code-tree/tree-search.js +0 -409
  386. claude_mpm/dashboard/static/built/components/code-tree/tree-utils.js +0 -435
  387. claude_mpm/dashboard/static/built/components/code-tree.js +0 -2
  388. claude_mpm/dashboard/static/built/components/code-viewer.js +0 -2
  389. claude_mpm/dashboard/static/built/components/connection-debug.js +0 -654
  390. claude_mpm/dashboard/static/built/components/diff-viewer.js +0 -891
  391. claude_mpm/dashboard/static/built/components/event-processor.js +0 -2
  392. claude_mpm/dashboard/static/built/components/event-viewer.js +0 -2
  393. claude_mpm/dashboard/static/built/components/export-manager.js +0 -2
  394. claude_mpm/dashboard/static/built/components/file-change-tracker.js +0 -443
  395. claude_mpm/dashboard/static/built/components/file-change-viewer.js +0 -690
  396. claude_mpm/dashboard/static/built/components/file-tool-tracker.js +0 -2
  397. claude_mpm/dashboard/static/built/components/file-viewer.js +0 -2
  398. claude_mpm/dashboard/static/built/components/hud-library-loader.js +0 -2
  399. claude_mpm/dashboard/static/built/components/hud-manager.js +0 -2
  400. claude_mpm/dashboard/static/built/components/hud-visualizer.js +0 -2
  401. claude_mpm/dashboard/static/built/components/module-viewer.js +0 -2
  402. claude_mpm/dashboard/static/built/components/nav-bar.js +0 -145
  403. claude_mpm/dashboard/static/built/components/page-structure.js +0 -429
  404. claude_mpm/dashboard/static/built/components/session-manager.js +0 -2
  405. claude_mpm/dashboard/static/built/components/socket-manager.js +0 -2
  406. claude_mpm/dashboard/static/built/components/ui-state-manager.js +0 -2
  407. claude_mpm/dashboard/static/built/components/unified-data-viewer.js +0 -2
  408. claude_mpm/dashboard/static/built/components/working-directory.js +0 -2
  409. claude_mpm/dashboard/static/built/connection-manager.js +0 -536
  410. claude_mpm/dashboard/static/built/dashboard.js +0 -2
  411. claude_mpm/dashboard/static/built/extension-error-handler.js +0 -164
  412. claude_mpm/dashboard/static/built/react/events.js +0 -30
  413. claude_mpm/dashboard/static/built/shared/dom-helpers.js +0 -396
  414. claude_mpm/dashboard/static/built/shared/event-bus.js +0 -330
  415. claude_mpm/dashboard/static/built/shared/event-filter-service.js +0 -540
  416. claude_mpm/dashboard/static/built/shared/logger.js +0 -385
  417. claude_mpm/dashboard/static/built/shared/page-structure.js +0 -249
  418. claude_mpm/dashboard/static/built/shared/tooltip-service.js +0 -253
  419. claude_mpm/dashboard/static/built/socket-client.js +0 -2
  420. claude_mpm/dashboard/static/built/tab-isolation-fix.js +0 -185
  421. claude_mpm/dashboard/static/css/activity.css +0 -1958
  422. claude_mpm/dashboard/static/css/connection-status.css +0 -370
  423. claude_mpm/dashboard/static/css/dashboard.css +0 -4701
  424. claude_mpm/dashboard/static/dist/assets/events.DjpNxWNo.css +0 -1
  425. claude_mpm/dashboard/static/dist/components/activity-tree.js +0 -2
  426. claude_mpm/dashboard/static/dist/components/agent-inference.js +0 -2
  427. claude_mpm/dashboard/static/dist/components/code-tree.js +0 -2
  428. claude_mpm/dashboard/static/dist/components/code-viewer.js +0 -2
  429. claude_mpm/dashboard/static/dist/components/event-processor.js +0 -2
  430. claude_mpm/dashboard/static/dist/components/event-viewer.js +0 -2
  431. claude_mpm/dashboard/static/dist/components/export-manager.js +0 -2
  432. claude_mpm/dashboard/static/dist/components/file-tool-tracker.js +0 -2
  433. claude_mpm/dashboard/static/dist/components/file-viewer.js +0 -2
  434. claude_mpm/dashboard/static/dist/components/hud-library-loader.js +0 -2
  435. claude_mpm/dashboard/static/dist/components/hud-manager.js +0 -2
  436. claude_mpm/dashboard/static/dist/components/hud-visualizer.js +0 -2
  437. claude_mpm/dashboard/static/dist/components/module-viewer.js +0 -2
  438. claude_mpm/dashboard/static/dist/components/session-manager.js +0 -2
  439. claude_mpm/dashboard/static/dist/components/socket-manager.js +0 -2
  440. claude_mpm/dashboard/static/dist/components/ui-state-manager.js +0 -2
  441. claude_mpm/dashboard/static/dist/components/unified-data-viewer.js +0 -2
  442. claude_mpm/dashboard/static/dist/components/working-directory.js +0 -2
  443. claude_mpm/dashboard/static/dist/dashboard.js +0 -2
  444. claude_mpm/dashboard/static/dist/react/events.js +0 -30
  445. claude_mpm/dashboard/static/dist/socket-client.js +0 -2
  446. claude_mpm/dashboard/static/events.html +0 -607
  447. claude_mpm/dashboard/static/index.html +0 -635
  448. claude_mpm/dashboard/static/js/components/activity-tree.js +0 -1871
  449. claude_mpm/dashboard/static/js/components/agent-hierarchy.js +0 -777
  450. claude_mpm/dashboard/static/js/components/agent-inference.js +0 -956
  451. claude_mpm/dashboard/static/js/components/build-tracker.js +0 -333
  452. claude_mpm/dashboard/static/js/components/code-simple.js +0 -857
  453. claude_mpm/dashboard/static/js/components/connection-debug.js +0 -654
  454. claude_mpm/dashboard/static/js/components/diff-viewer.js +0 -891
  455. claude_mpm/dashboard/static/js/components/event-processor.js +0 -542
  456. claude_mpm/dashboard/static/js/components/event-viewer.js +0 -1155
  457. claude_mpm/dashboard/static/js/components/export-manager.js +0 -368
  458. claude_mpm/dashboard/static/js/components/file-change-tracker.js +0 -443
  459. claude_mpm/dashboard/static/js/components/file-change-viewer.js +0 -690
  460. claude_mpm/dashboard/static/js/components/file-tool-tracker.js +0 -724
  461. claude_mpm/dashboard/static/js/components/file-viewer.js +0 -580
  462. claude_mpm/dashboard/static/js/components/hud-library-loader.js +0 -211
  463. claude_mpm/dashboard/static/js/components/hud-manager.js +0 -671
  464. claude_mpm/dashboard/static/js/components/hud-visualizer.js +0 -1718
  465. claude_mpm/dashboard/static/js/components/module-viewer.js +0 -2764
  466. claude_mpm/dashboard/static/js/components/session-manager.js +0 -579
  467. claude_mpm/dashboard/static/js/components/socket-manager.js +0 -368
  468. claude_mpm/dashboard/static/js/components/ui-state-manager.js +0 -749
  469. claude_mpm/dashboard/static/js/components/unified-data-viewer.js +0 -1824
  470. claude_mpm/dashboard/static/js/components/working-directory.js +0 -920
  471. claude_mpm/dashboard/static/js/connection-manager.js +0 -536
  472. claude_mpm/dashboard/static/js/dashboard.js +0 -1896
  473. claude_mpm/dashboard/static/js/extension-error-handler.js +0 -164
  474. claude_mpm/dashboard/static/js/shared/dom-helpers.js +0 -396
  475. claude_mpm/dashboard/static/js/shared/event-bus.js +0 -330
  476. claude_mpm/dashboard/static/js/shared/logger.js +0 -385
  477. claude_mpm/dashboard/static/js/shared/tooltip-service.js +0 -253
  478. claude_mpm/dashboard/static/js/socket-client.js +0 -1457
  479. claude_mpm/dashboard/static/js/stores/dashboard-store.js +0 -562
  480. claude_mpm/dashboard/static/js/tab-isolation-fix.js +0 -185
  481. claude_mpm/dashboard/static/legacy/activity.html +0 -736
  482. claude_mpm/dashboard/static/legacy/agents.html +0 -786
  483. claude_mpm/dashboard/static/legacy/files.html +0 -747
  484. claude_mpm/dashboard/static/legacy/tools.html +0 -831
  485. claude_mpm/dashboard/static/monitors.html +0 -431
  486. claude_mpm/dashboard/static/production/events.html +0 -659
  487. claude_mpm/dashboard/static/production/main.html +0 -698
  488. claude_mpm/dashboard/static/production/monitors.html +0 -483
  489. claude_mpm/dashboard/static/socket.io.min.js +0 -7
  490. claude_mpm/dashboard/static/socket.io.v4.8.1.backup.js +0 -7
  491. claude_mpm/dashboard/static/test-archive/dashboard.html +0 -635
  492. claude_mpm/dashboard/static/test-archive/debug-events.html +0 -147
  493. claude_mpm/dashboard/static/test-archive/test-navigation.html +0 -256
  494. claude_mpm/dashboard/static/test-archive/test-react-exports.html +0 -180
  495. claude_mpm/dashboard/static/test-archive/test_debug.html +0 -25
  496. claude_mpm/dashboard/templates/code_simple.html +0 -153
  497. claude_mpm/dashboard/templates/index.html +0 -606
  498. claude_mpm/dashboard/test_dashboard.html +0 -372
  499. claude_mpm/scripts/mcp_server.py +0 -75
  500. claude_mpm/scripts/mcp_wrapper.py +0 -39
  501. claude_mpm/services/mcp_gateway/__init__.py +0 -159
  502. claude_mpm/services/mcp_gateway/auto_configure.py +0 -369
  503. claude_mpm/services/mcp_gateway/config/__init__.py +0 -17
  504. claude_mpm/services/mcp_gateway/config/config_loader.py +0 -296
  505. claude_mpm/services/mcp_gateway/config/config_schema.py +0 -243
  506. claude_mpm/services/mcp_gateway/config/configuration.py +0 -429
  507. claude_mpm/services/mcp_gateway/core/__init__.py +0 -43
  508. claude_mpm/services/mcp_gateway/core/base.py +0 -312
  509. claude_mpm/services/mcp_gateway/core/exceptions.py +0 -253
  510. claude_mpm/services/mcp_gateway/core/interfaces.py +0 -443
  511. claude_mpm/services/mcp_gateway/core/process_pool.py +0 -971
  512. claude_mpm/services/mcp_gateway/core/singleton_manager.py +0 -315
  513. claude_mpm/services/mcp_gateway/core/startup_verification.py +0 -316
  514. claude_mpm/services/mcp_gateway/main.py +0 -589
  515. claude_mpm/services/mcp_gateway/registry/__init__.py +0 -12
  516. claude_mpm/services/mcp_gateway/registry/service_registry.py +0 -412
  517. claude_mpm/services/mcp_gateway/registry/tool_registry.py +0 -489
  518. claude_mpm/services/mcp_gateway/server/__init__.py +0 -15
  519. claude_mpm/services/mcp_gateway/server/mcp_gateway.py +0 -419
  520. claude_mpm/services/mcp_gateway/server/stdio_handler.py +0 -372
  521. claude_mpm/services/mcp_gateway/server/stdio_server.py +0 -714
  522. claude_mpm/services/mcp_gateway/tools/__init__.py +0 -36
  523. claude_mpm/services/mcp_gateway/tools/base_adapter.py +0 -485
  524. claude_mpm/services/mcp_gateway/tools/document_summarizer.py +0 -789
  525. claude_mpm/services/mcp_gateway/tools/external_mcp_services.py +0 -654
  526. claude_mpm/services/mcp_gateway/tools/health_check_tool.py +0 -456
  527. claude_mpm/services/mcp_gateway/tools/hello_world.py +0 -551
  528. claude_mpm/services/mcp_gateway/tools/kuzu_memory_service.py +0 -551
  529. claude_mpm/services/mcp_gateway/utils/__init__.py +0 -14
  530. claude_mpm/services/mcp_gateway/utils/package_version_checker.py +0 -160
  531. claude_mpm/services/mcp_gateway/utils/update_preferences.py +0 -170
  532. claude_mpm/skills/bundled/collaboration/brainstorming/SKILL.md +0 -79
  533. claude_mpm/skills/bundled/collaboration/dispatching-parallel-agents/SKILL.md +0 -178
  534. claude_mpm/skills/bundled/collaboration/dispatching-parallel-agents/references/agent-prompts.md +0 -577
  535. claude_mpm/skills/bundled/collaboration/dispatching-parallel-agents/references/coordination-patterns.md +0 -467
  536. claude_mpm/skills/bundled/collaboration/dispatching-parallel-agents/references/examples.md +0 -537
  537. claude_mpm/skills/bundled/collaboration/dispatching-parallel-agents/references/troubleshooting.md +0 -730
  538. claude_mpm/skills/bundled/collaboration/requesting-code-review/SKILL.md +0 -112
  539. claude_mpm/skills/bundled/collaboration/requesting-code-review/references/code-reviewer-template.md +0 -146
  540. claude_mpm/skills/bundled/collaboration/requesting-code-review/references/review-examples.md +0 -412
  541. claude_mpm/skills/bundled/collaboration/writing-plans/SKILL.md +0 -81
  542. claude_mpm/skills/bundled/collaboration/writing-plans/references/best-practices.md +0 -362
  543. claude_mpm/skills/bundled/collaboration/writing-plans/references/plan-structure-templates.md +0 -312
  544. claude_mpm/skills/bundled/debugging/root-cause-tracing/SKILL.md +0 -152
  545. claude_mpm/skills/bundled/debugging/root-cause-tracing/references/advanced-techniques.md +0 -668
  546. claude_mpm/skills/bundled/debugging/root-cause-tracing/references/examples.md +0 -587
  547. claude_mpm/skills/bundled/debugging/root-cause-tracing/references/integration.md +0 -438
  548. claude_mpm/skills/bundled/debugging/root-cause-tracing/references/tracing-techniques.md +0 -391
  549. claude_mpm/skills/bundled/debugging/systematic-debugging/CREATION-LOG.md +0 -119
  550. claude_mpm/skills/bundled/debugging/systematic-debugging/SKILL.md +0 -148
  551. claude_mpm/skills/bundled/debugging/systematic-debugging/references/anti-patterns.md +0 -483
  552. claude_mpm/skills/bundled/debugging/systematic-debugging/references/examples.md +0 -452
  553. claude_mpm/skills/bundled/debugging/systematic-debugging/references/troubleshooting.md +0 -449
  554. claude_mpm/skills/bundled/debugging/systematic-debugging/references/workflow.md +0 -411
  555. claude_mpm/skills/bundled/debugging/systematic-debugging/test-academic.md +0 -14
  556. claude_mpm/skills/bundled/debugging/systematic-debugging/test-pressure-1.md +0 -58
  557. claude_mpm/skills/bundled/debugging/systematic-debugging/test-pressure-2.md +0 -68
  558. claude_mpm/skills/bundled/debugging/systematic-debugging/test-pressure-3.md +0 -69
  559. claude_mpm/skills/bundled/debugging/verification-before-completion/SKILL.md +0 -131
  560. claude_mpm/skills/bundled/debugging/verification-before-completion/references/gate-function.md +0 -325
  561. claude_mpm/skills/bundled/debugging/verification-before-completion/references/integration-and-workflows.md +0 -490
  562. claude_mpm/skills/bundled/debugging/verification-before-completion/references/red-flags-and-failures.md +0 -425
  563. claude_mpm/skills/bundled/debugging/verification-before-completion/references/verification-patterns.md +0 -499
  564. claude_mpm/skills/bundled/main/artifacts-builder/SKILL.md +0 -86
  565. claude_mpm/skills/bundled/main/internal-comms/SKILL.md +0 -43
  566. claude_mpm/skills/bundled/main/internal-comms/examples/3p-updates.md +0 -47
  567. claude_mpm/skills/bundled/main/internal-comms/examples/company-newsletter.md +0 -65
  568. claude_mpm/skills/bundled/main/internal-comms/examples/faq-answers.md +0 -30
  569. claude_mpm/skills/bundled/main/internal-comms/examples/general-comms.md +0 -16
  570. claude_mpm/skills/bundled/main/mcp-builder/SKILL.md +0 -160
  571. claude_mpm/skills/bundled/main/mcp-builder/reference/design_principles.md +0 -412
  572. claude_mpm/skills/bundled/main/mcp-builder/reference/evaluation.md +0 -602
  573. claude_mpm/skills/bundled/main/mcp-builder/reference/mcp_best_practices.md +0 -915
  574. claude_mpm/skills/bundled/main/mcp-builder/reference/node_mcp_server.md +0 -916
  575. claude_mpm/skills/bundled/main/mcp-builder/reference/python_mcp_server.md +0 -752
  576. claude_mpm/skills/bundled/main/mcp-builder/reference/workflow.md +0 -1237
  577. claude_mpm/skills/bundled/main/skill-creator/SKILL.md +0 -189
  578. claude_mpm/skills/bundled/main/skill-creator/references/best-practices.md +0 -500
  579. claude_mpm/skills/bundled/main/skill-creator/references/creation-workflow.md +0 -464
  580. claude_mpm/skills/bundled/main/skill-creator/references/examples.md +0 -619
  581. claude_mpm/skills/bundled/main/skill-creator/references/progressive-disclosure.md +0 -437
  582. claude_mpm/skills/bundled/main/skill-creator/references/skill-structure.md +0 -231
  583. claude_mpm/skills/bundled/php/espocrm-development/SKILL.md +0 -170
  584. claude_mpm/skills/bundled/php/espocrm-development/references/architecture.md +0 -602
  585. claude_mpm/skills/bundled/php/espocrm-development/references/common-tasks.md +0 -821
  586. claude_mpm/skills/bundled/php/espocrm-development/references/development-workflow.md +0 -742
  587. claude_mpm/skills/bundled/php/espocrm-development/references/frontend-customization.md +0 -726
  588. claude_mpm/skills/bundled/php/espocrm-development/references/hooks-and-services.md +0 -764
  589. claude_mpm/skills/bundled/php/espocrm-development/references/testing-debugging.md +0 -831
  590. claude_mpm/skills/bundled/rust/desktop-applications/SKILL.md +0 -226
  591. claude_mpm/skills/bundled/rust/desktop-applications/references/architecture-patterns.md +0 -901
  592. claude_mpm/skills/bundled/rust/desktop-applications/references/native-gui-frameworks.md +0 -901
  593. claude_mpm/skills/bundled/rust/desktop-applications/references/platform-integration.md +0 -775
  594. claude_mpm/skills/bundled/rust/desktop-applications/references/state-management.md +0 -937
  595. claude_mpm/skills/bundled/rust/desktop-applications/references/tauri-framework.md +0 -770
  596. claude_mpm/skills/bundled/rust/desktop-applications/references/testing-deployment.md +0 -961
  597. claude_mpm/skills/bundled/testing/condition-based-waiting/SKILL.md +0 -119
  598. claude_mpm/skills/bundled/testing/condition-based-waiting/references/patterns-and-implementation.md +0 -253
  599. claude_mpm/skills/bundled/testing/test-driven-development/SKILL.md +0 -145
  600. claude_mpm/skills/bundled/testing/test-driven-development/references/anti-patterns.md +0 -543
  601. claude_mpm/skills/bundled/testing/test-driven-development/references/examples.md +0 -741
  602. claude_mpm/skills/bundled/testing/test-driven-development/references/integration.md +0 -470
  603. claude_mpm/skills/bundled/testing/test-driven-development/references/philosophy.md +0 -458
  604. claude_mpm/skills/bundled/testing/test-driven-development/references/workflow.md +0 -639
  605. claude_mpm/skills/bundled/testing/testing-anti-patterns/SKILL.md +0 -140
  606. claude_mpm/skills/bundled/testing/testing-anti-patterns/references/completeness-anti-patterns.md +0 -572
  607. claude_mpm/skills/bundled/testing/testing-anti-patterns/references/core-anti-patterns.md +0 -411
  608. claude_mpm/skills/bundled/testing/testing-anti-patterns/references/detection-guide.md +0 -569
  609. claude_mpm/skills/bundled/testing/testing-anti-patterns/references/tdd-connection.md +0 -695
  610. claude_mpm/skills/bundled/testing/webapp-testing/SKILL.md +0 -184
  611. claude_mpm/skills/bundled/testing/webapp-testing/decision-tree.md +0 -459
  612. claude_mpm/skills/bundled/testing/webapp-testing/playwright-patterns.md +0 -479
  613. claude_mpm/skills/bundled/testing/webapp-testing/reconnaissance-pattern.md +0 -687
  614. claude_mpm/skills/bundled/testing/webapp-testing/server-management.md +0 -758
  615. claude_mpm/skills/bundled/testing/webapp-testing/troubleshooting.md +0 -868
  616. claude_mpm-4.24.0.dist-info/entry_points.txt +0 -10
  617. claude_mpm-4.24.0.dist-info/licenses/LICENSE +0 -21
  618. /claude_mpm/agents/templates/{git_file_tracking.md → git-file-tracking.md} +0 -0
  619. /claude_mpm/agents/templates/{pm_examples.md → pm-examples.md} +0 -0
  620. /claude_mpm/agents/templates/{response_format.md → response-format.md} +0 -0
  621. /claude_mpm/agents/templates/{validation_templates.md → validation-templates.md} +0 -0
  622. {claude_mpm-4.24.0.dist-info → claude_mpm-5.4.41.dist-info}/WHEEL +0 -0
  623. {claude_mpm-4.24.0.dist-info → claude_mpm-5.4.41.dist-info}/top_level.txt +0 -0
@@ -0,0 +1 @@
1
+ import{n as d,q as E,T as h,v as T,w as m,x as f,y as o,E as g,z as N,A as v,B as w,C as y}from"./DjhvlsAc.js";function p(r){var n=document.createElement("template");return n.innerHTML=r.replaceAll("<!>","<!---->"),n.content}function a(r,n){var e=m;e.nodes===null&&(e.nodes={start:r,end:n,a:null,t:null})}function M(r,n){var e=(n&h)!==0,l=(n&T)!==0,t,i=!r.startsWith("<!>");return()=>{if(f)return a(o,null),o;t===void 0&&(t=p(i?r:"<!>"+r),e||(t=d(t)));var s=l||E?document.importNode(t,!0):t.cloneNode(!0);if(e){var _=d(s),u=s.lastChild;a(_,u)}else a(s,s);return s}}function x(r,n,e="svg"){var l=!r.startsWith("<!>"),t=`<${e}>${l?r:"<!>"+r}</${e}>`,i;return()=>{if(f)return a(o,null),o;if(!i){var s=p(t),_=d(s);i=d(_)}var u=i.cloneNode(!0);return a(u,u),u}}function F(r,n){return x(r,n,"svg")}function L(r=""){if(!f){var n=v(r+"");return a(n,n),n}var e=o;return e.nodeType!==w&&(e.before(e=v()),y(e)),a(e,e),e}function O(){if(f)return a(o,null),o;var r=document.createDocumentFragment(),n=document.createComment(""),e=v();return r.append(n,e),a(n,e),r}function P(r,n){if(f){var e=m;((e.f&g)===0||e.nodes.end===null)&&(e.nodes.end=o),N();return}r!==null&&r.before(n)}const A="5";var c;typeof window<"u"&&((c=window.__svelte??(window.__svelte={})).v??(c.v=new Set)).add(A);export{P as a,a as b,O as c,p as d,F as e,M as f,L as t};
@@ -0,0 +1,2 @@
1
+ var kt=Object.defineProperty;var ht=e=>{throw TypeError(e)};var St=(e,t,i)=>t in e?kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var ct=(e,t,i)=>St(e,typeof t!="symbol"?t+"":t,i),K=(e,t,i)=>t.has(e)||ht("Cannot "+i);var s=(e,t,i)=>(K(e,t,"read from private field"),i?i.call(e):t.get(e)),u=(e,t,i)=>t.has(e)?ht("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),n=(e,t,i,a)=>(K(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),_=(e,t,i)=>(K(e,t,"access private method"),i);import{ai as At,g as gt,ae as vt,S as Rt,b as Nt,aj as ft,U as ot,y as L,x as O,w as x,L as Dt,z as Lt,ak as lt,O as Ot,I as D,al as j,H as X,A as yt,ag as U,am as V,an as dt,ao as Ct,ap as tt,c as bt,J as Ft,aq as It,G as Z,C as $,ar as Mt,P as Pt,as as _t,at as Vt,M as Bt,au as Ht,av as xt,aw as Wt,$ as Yt,ax as jt,a0 as qt,ay as et,n as zt,az as Gt,aA as Ut,aB as st,Q as q,aC as $t,aD as Jt,aE as Qt,aF as Kt,p as Xt,aG as Zt,aH as te,i as ee}from"./DjhvlsAc.js";import{b as se}from"./CWc5urbQ.js";function ie(e){let t=0,i=vt(0),a;return()=>{At()&&(gt(i),Rt(()=>(t===0&&(a=Nt(()=>e(()=>ft(i)))),t+=1,()=>{ot(()=>{t-=1,t===0&&(a==null||a(),a=void 0,ft(i))})})))}}var re=Bt|Ht|xt;function ne(e,t,i){new ae(e,t,i)}var g,p,W,E,C,m,v,d,w,S,A,F,R,I,N,J,l,Et,mt,it,z,G,rt;class ae{constructor(t,i,a){u(this,l);ct(this,"parent");u(this,g,!1);u(this,p);u(this,W,O?L:null);u(this,E);u(this,C);u(this,m);u(this,v,null);u(this,d,null);u(this,w,null);u(this,S,null);u(this,A,null);u(this,F,0);u(this,R,0);u(this,I,!1);u(this,N,null);u(this,J,ie(()=>(n(this,N,vt(s(this,F))),()=>{n(this,N,null)})));n(this,p,t),n(this,E,i),n(this,C,a),this.parent=x.b,n(this,g,!!s(this,E).pending),n(this,m,Dt(()=>{if(x.b=this,O){const r=s(this,W);Lt(),r.nodeType===lt&&r.data===Ot?_(this,l,mt).call(this):_(this,l,Et).call(this)}else{var o=_(this,l,it).call(this);try{n(this,v,D(()=>a(o)))}catch(r){this.error(r)}s(this,R)>0?_(this,l,G).call(this):n(this,g,!1)}return()=>{var r;(r=s(this,A))==null||r.remove()}},re)),O&&n(this,p,L)}is_pending(){return s(this,g)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!s(this,E).pending}update_pending_count(t){_(this,l,rt).call(this,t),n(this,F,s(this,F)+t),s(this,N)&&It(s(this,N),s(this,F))}get_effect_pending(){return s(this,J).call(this),gt(s(this,N))}error(t){var i=s(this,E).onerror;let a=s(this,E).failed;if(s(this,I)||!i&&!a)throw t;s(this,v)&&(Z(s(this,v)),n(this,v,null)),s(this,d)&&(Z(s(this,d)),n(this,d,null)),s(this,w)&&(Z(s(this,w)),n(this,w,null)),O&&($(s(this,W)),Mt(),$(Pt()));var o=!1,r=!1;const h=()=>{if(o){Wt();return}o=!0,r&&Vt(),j.ensure(),n(this,F,0),s(this,w)!==null&&X(s(this,w),()=>{n(this,w,null)}),n(this,g,this.has_pending_snippet()),n(this,v,_(this,l,z).call(this,()=>(n(this,I,!1),D(()=>s(this,C).call(this,s(this,p)))))),s(this,R)>0?_(this,l,G).call(this):n(this,g,!1)};var b=tt;try{V(null),r=!0,i==null||i(t,h),r=!1}catch(y){_t(y,s(this,m)&&s(this,m).parent)}finally{V(b)}a&&ot(()=>{n(this,w,_(this,l,z).call(this,()=>{j.ensure(),n(this,I,!0);try{return D(()=>{a(s(this,p),()=>t,()=>h)})}catch(y){return _t(y,s(this,m).parent),null}finally{n(this,I,!1)}}))})}}g=new WeakMap,p=new WeakMap,W=new WeakMap,E=new WeakMap,C=new WeakMap,m=new WeakMap,v=new WeakMap,d=new WeakMap,w=new WeakMap,S=new WeakMap,A=new WeakMap,F=new WeakMap,R=new WeakMap,I=new WeakMap,N=new WeakMap,J=new WeakMap,l=new WeakSet,Et=function(){try{n(this,v,D(()=>s(this,C).call(this,s(this,p))))}catch(t){this.error(t)}n(this,g,!1)},mt=function(){const t=s(this,E).pending;t&&(n(this,d,D(()=>t(s(this,p)))),j.enqueue(()=>{var i=_(this,l,it).call(this);n(this,v,_(this,l,z).call(this,()=>(j.ensure(),D(()=>s(this,C).call(this,i))))),s(this,R)>0?_(this,l,G).call(this):(X(s(this,d),()=>{n(this,d,null)}),n(this,g,!1))}))},it=function(){var t=s(this,p);return s(this,g)&&(n(this,A,yt()),s(this,p).before(s(this,A)),t=s(this,A)),t},z=function(t){var i=x,a=tt,o=bt;U(s(this,m)),V(s(this,m)),dt(s(this,m).ctx);try{return t()}catch(r){return Ct(r),null}finally{U(i),V(a),dt(o)}},G=function(){const t=s(this,E).pending;s(this,v)!==null&&(n(this,S,document.createDocumentFragment()),s(this,S).append(s(this,A)),Ft(s(this,v),s(this,S))),s(this,d)===null&&n(this,d,D(()=>t(s(this,p))))},rt=function(t){var i;if(!this.has_pending_snippet()){this.parent&&_(i=this.parent,l,rt).call(i,t);return}n(this,R,s(this,R)+t),s(this,R)===0&&(n(this,g,!1),s(this,d)&&X(s(this,d),()=>{n(this,d,null)}),s(this,S)&&(s(this,p).before(s(this,S)),n(this,S,null)))};function ge(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const oe=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function ve(e){return oe.includes(e)}const le={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function ye(e){return e=e.toLowerCase(),le[e]??e}const ue=["touchstart","touchmove"];function he(e){return ue.includes(e)}const wt=new Set,nt=new Set;function ce(e,t,i,a={}){function o(r){if(a.capture||H.call(t,r),!r.cancelBubble)return jt(()=>i==null?void 0:i.call(this,r))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?ot(()=>{t.addEventListener(e,o,a)}):t.addEventListener(e,o,a),o}function be(e,t,i,a,o){var r={capture:a,passive:o},h=ce(e,t,i,r);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Yt(()=>{t.removeEventListener(e,h,r)})}function Ee(e){for(var t=0;t<e.length;t++)wt.add(e[t]);for(var i of nt)i(e)}let pt=null;function H(e){var ut;var t=this,i=t.ownerDocument,a=e.type,o=((ut=e.composedPath)==null?void 0:ut.call(e))||[],r=o[0]||e.target;pt=e;var h=0,b=pt===e&&e.__root;if(b){var y=o.indexOf(b);if(y!==-1&&(t===document||t===window)){e.__root=t;return}var M=o.indexOf(t);if(M===-1)return;y<=M&&(h=y)}if(r=o[h]||e.target,r!==t){qt(e,"currentTarget",{configurable:!0,get(){return r||i}});var Q=tt,T=x;V(null),U(null);try{for(var c,f=[];r!==null;){var k=r.assignedSlot||r.parentNode||r.host||null;try{var B=r["__"+a];B!=null&&(!r.disabled||e.target===r)&&B.call(r,e)}catch(Y){c?f.push(Y):c=Y}if(e.cancelBubble||k===t||k===null)break;r=k}if(c){for(let Y of f)queueMicrotask(()=>{throw Y});throw c}}finally{e.__root=t,delete e.currentTarget,V(Q),U(T)}}}function me(e,t){var i=t==null?"":typeof t=="object"?t+"":t;i!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=i,e.nodeValue=i+"")}function fe(e,t){return Tt(e,t)}function we(e,t){et(),t.intro=t.intro??!1;const i=t.target,a=O,o=L;try{for(var r=zt(i);r&&(r.nodeType!==lt||r.data!==Gt);)r=Ut(r);if(!r)throw st;q(!0),$(r);const h=Tt(e,{...t,anchor:r});return q(!1),h}catch(h){if(h instanceof Error&&h.message.split(`
2
+ `).some(b=>b.startsWith("https://svelte.dev/e/")))throw h;return h!==st&&console.warn("Failed to hydrate: ",h),t.recover===!1&&$t(),et(),Jt(i),q(!1),fe(e,t)}finally{q(a),$(o)}}const P=new Map;function Tt(e,{target:t,anchor:i,props:a={},events:o,context:r,intro:h=!0}){et();var b=new Set,y=T=>{for(var c=0;c<T.length;c++){var f=T[c];if(!b.has(f)){b.add(f);var k=he(f);t.addEventListener(f,H,{passive:k});var B=P.get(f);B===void 0?(document.addEventListener(f,H,{passive:k}),P.set(f,1)):P.set(f,B+1)}}};y(Qt(wt)),nt.add(y);var M=void 0,Q=Kt(()=>{var T=i??t.appendChild(yt());return ne(T,{pending:()=>{}},c=>{if(r){Xt({});var f=bt;f.c=r}if(o&&(a.$$events=o),O&&se(c,null),M=e(c,a)||{},O&&(x.nodes.end=L,L===null||L.nodeType!==lt||L.data!==Zt))throw te(),st;r&&ee()}),()=>{var k;for(var c of b){t.removeEventListener(c,H);var f=P.get(c);--f===0?(document.removeEventListener(c,H),P.delete(c)):P.set(c,f)}nt.delete(y),T!==i&&((k=T.parentNode)==null||k.removeChild(T))}});return at.set(M,Q),M}let at=new WeakMap;function Te(e,t){const i=at.get(e);return i?(at.delete(e),i(t)):Promise.resolve()}export{ve as a,ce as c,Ee as d,be as e,we as h,ge as i,fe as m,ye as n,me as s,Te as u};
@@ -0,0 +1 @@
1
+ var En=Object.defineProperty;var bt=e=>{throw TypeError(e)};var mn=(e,t,n)=>t in e?En(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var V=(e,t,n)=>mn(e,typeof t!="symbol"?t+"":t,n),Ze=(e,t,n)=>t.has(e)||bt("Cannot "+n);var w=(e,t,n)=>(Ze(e,t,"read from private field"),n?n.call(e):t.get(e)),H=(e,t,n)=>t.has(e)?bt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),_e=(e,t,n,r)=>(Ze(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),I=(e,t,n)=>(Ze(e,t,"access private method"),n);var Dt=Array.isArray,gn=Array.prototype.indexOf,vr=Array.from,dr=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,bn=Object.getOwnPropertyDescriptors,Tn=Object.prototype,An=Array.prototype,Nt=Object.getPrototypeOf,Tt=Object.isExtensible;function pr(e){return typeof e=="function"}const he=()=>{};function hr(e){return e()}function Pt(e){for(var t=0;t<e.length;t++)e[t]()}function Ct(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}function yr(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const b=2,ot=4,Ve=8,It=1<<24,U=16,B=32,ce=64,ut=128,M=512,A=1024,O=2048,j=4096,Y=8192,z=16384,ct=32768,Fe=65536,Qe=1<<17,Ft=1<<18,Pe=1<<19,Mt=1<<20,wr=1<<25,ie=32768,et=1<<21,_t=1<<22,X=1<<23,re=Symbol("$state"),Er=Symbol("legacy props"),mr=Symbol(""),de=new class extends Error{constructor(){super(...arguments);V(this,"name","StaleReactionError");V(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},vt=3,jt=8;function Sn(e){throw new Error("https://svelte.dev/e/experimental_async_required")}function Ge(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Rn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function xn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function kn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function On(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Dn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Nn(){throw new Error("https://svelte.dev/e/fork_discarded")}function Pn(){throw new Error("https://svelte.dev/e/fork_timing")}function br(){throw new Error("https://svelte.dev/e/hydration_failed")}function Cn(e){throw new Error("https://svelte.dev/e/lifecycle_legacy_only")}function Tr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function In(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Fn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Mn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ar(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Sr=1,Rr=2,xr=4,kr=8,Or=16,Dr=1,Nr=2,Pr=4,Cr=8,Ir=16,Fr=1,Mr=2,jn="[",Ln="[!",qn="]",dt={},R=Symbol(),jr="http://www.w3.org/1999/xhtml",Lr="@attach";function pt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function qr(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Yr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let ae=!1;function Hr(e){ae=e}let T;function ge(e){if(e===null)throw pt(),dt;return T=e}function Ur(){return ge(J(T))}function Br(e){if(ae){if(J(T)!==null)throw pt(),dt;T=e}}function $r(e=1){if(ae){for(var t=e,n=T;t--;)n=J(n);T=n}}function Vr(e=!0){for(var t=0,n=T;;){if(n.nodeType===jt){var r=n.data;if(r===qn){if(t===0)return n;t-=1}else(r===jn||r===Ln)&&(t+=1)}var s=J(n);e&&n.remove(),n=s}}function Gr(e){if(!e||e.nodeType!==jt)throw pt(),dt;return e.data}function Lt(e){return e===this.v}function qt(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Yt(e){return!qt(e,this.v)}let Ce=!1;function Kr(){Ce=!0}let h=null;function Me(e){h=e}function zr(e,t=!1,n){h={p:h,i:!1,c:null,e:null,s:e,x:null,l:Ce&&!t?{s:null,u:null,$:[]}:null}}function Xr(e){var t=h,n=t.e;if(n!==null){t.e=null;for(var r of n)nn(r)}return t.i=!0,h=t.p,{}}function Ie(){return!Ce||h!==null&&h.l===null}let Q=[];function Ht(){var e=Q;Q=[],Pt(e)}function Ut(e){if(Q.length===0&&!Oe){var t=Q;queueMicrotask(()=>{t===Q&&Ht()})}Q.push(e)}function Yn(){for(;Q.length>0;)Ht()}function Hn(e){var t=y;if(t===null)return d.f|=X,e;if((t.f&ct)===0){if((t.f&ut)===0)throw e;t.b.error(e)}else je(e,t)}function je(e,t){for(;t!==null;){if((t.f&ut)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const ee=new Set;let p=null,We=null,m=null,C=[],Ke=null,tt=!1,Oe=!1;var ye,we,te,ne,Ne,Ee,me,S,nt,Re,rt,Bt,$t;const $e=class $e{constructor(){H(this,S);V(this,"committed",!1);V(this,"current",new Map);V(this,"previous",new Map);H(this,ye,new Set);H(this,we,new Set);H(this,te,0);H(this,ne,0);H(this,Ne,null);H(this,Ee,new Set);H(this,me,new Set);V(this,"skipped_effects",new Set);V(this,"is_fork",!1)}is_deferred(){return this.is_fork||w(this,ne)>0}process(t){var r;C=[],We=null,this.apply();var n={parent:null,effect:null,effects:[],render_effects:[]};for(const s of t)I(this,S,nt).call(this,s,n);this.is_fork||I(this,S,Bt).call(this),this.is_deferred()?(I(this,S,Re).call(this,n.effects),I(this,S,Re).call(this,n.render_effects)):(We=this,p=null,At(n.render_effects),At(n.effects),We=null,(r=w(this,Ne))==null||r.resolve()),m=null}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&X)===0&&(this.current.set(t,t.v),m==null||m.set(t,t.v))}activate(){p=this,this.apply()}deactivate(){p===this&&(p=null,m=null)}flush(){if(this.activate(),C.length>0){if(ft(),p!==null&&p!==this)return}else w(this,te)===0&&this.process([]);this.deactivate()}discard(){for(const t of w(this,we))t(this);w(this,we).clear()}increment(t){_e(this,te,w(this,te)+1),t&&_e(this,ne,w(this,ne)+1)}decrement(t){_e(this,te,w(this,te)-1),t&&_e(this,ne,w(this,ne)-1),this.revive()}revive(){for(const t of w(this,Ee))w(this,me).delete(t),g(t,O),oe(t);for(const t of w(this,me))g(t,j),oe(t);this.flush()}oncommit(t){w(this,ye).add(t)}ondiscard(t){w(this,we).add(t)}settled(){return(w(this,Ne)??_e(this,Ne,Ct())).promise}static ensure(){if(p===null){const t=p=new $e;ee.add(p),Oe||$e.enqueue(()=>{p===t&&t.flush()})}return p}static enqueue(t){Ut(t)}apply(){}};ye=new WeakMap,we=new WeakMap,te=new WeakMap,ne=new WeakMap,Ne=new WeakMap,Ee=new WeakMap,me=new WeakMap,S=new WeakSet,nt=function(t,n){var u;t.f^=A;for(var r=t.first;r!==null;){var s=r.f,f=(s&(B|ce))!==0,o=f&&(s&A)!==0,l=o||(s&Y)!==0||this.skipped_effects.has(r);if((r.f&ut)!==0&&((u=r.b)!=null&&u.is_pending())&&(n={parent:n,effect:r,effects:[],render_effects:[]}),!l&&r.fn!==null){f?r.f^=A:(s&ot)!==0?n.effects.push(r):Se(r)&&((r.f&U)!==0&&w(this,Ee).add(r),Te(r));var a=r.first;if(a!==null){r=a;continue}}var i=r.parent;for(r=r.next;r===null&&i!==null;)i===n.effect&&(I(this,S,Re).call(this,n.effects),I(this,S,Re).call(this,n.render_effects),n=n.parent),r=i.next,i=i.parent}},Re=function(t){for(const n of t)(n.f&O)!==0?w(this,Ee).add(n):(n.f&j)!==0&&w(this,me).add(n),I(this,S,rt).call(this,n.deps),g(n,A)},rt=function(t){if(t!==null)for(const n of t)(n.f&b)===0||(n.f&ie)===0||(n.f^=ie,I(this,S,rt).call(this,n.deps))},Bt=function(){if(w(this,ne)===0){for(const t of w(this,ye))t();w(this,ye).clear()}w(this,te)===0&&I(this,S,$t).call(this)},$t=function(){var f;if(ee.size>1){this.previous.clear();var t=m,n=!0,r={parent:null,effect:null,effects:[],render_effects:[]};for(const o of ee){if(o===this){n=!1;continue}const l=[];for(const[i,u]of this.current){if(o.current.has(i))if(n&&u!==o.current.get(i))o.current.set(i,u);else continue;l.push(i)}if(l.length===0)continue;const a=[...o.current.keys()].filter(i=>!this.current.has(i));if(a.length>0){var s=C;C=[];const i=new Set,u=new Map;for(const c of l)Vt(c,a,i,u);if(C.length>0){p=o,o.apply();for(const c of C)I(f=o,S,nt).call(f,c,r);o.deactivate()}C=s}}p=null,m=t}this.committed=!0,ee.delete(this)};let le=$e;function st(e){var t=Oe;Oe=!0;try{var n;for(e&&(p!==null&&ft(),n=e());;){if(Yn(),C.length===0&&(p==null||p.flush(),C.length===0))return Ke=null,n;ft()}}finally{Oe=t}}function ft(){var e=se;tt=!0;var t=null;try{var n=0;for(Ue(!0);C.length>0;){var r=le.ensure();if(n++>1e3){var s,f;Un()}r.process(C),Z.clear()}}finally{tt=!1,Ue(e),Ke=null}}function Un(){try{Dn()}catch(e){je(e,Ke)}}let F=null;function At(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(z|Y))===0&&Se(r)&&(F=new Set,Te(r),r.deps===null&&r.first===null&&r.nodes===null&&(r.teardown===null&&r.ac===null?an(r):r.fn=null),(F==null?void 0:F.size)>0)){Z.clear();for(const s of F){if((s.f&(z|Y))!==0)continue;const f=[s];let o=s.parent;for(;o!==null;)F.has(o)&&(F.delete(o),f.push(o)),o=o.parent;for(let l=f.length-1;l>=0;l--){const a=f[l];(a.f&(z|Y))===0&&Te(a)}}F.clear()}}F=null}}function Vt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const f=s.f;(f&b)!==0?Vt(s,t,n,r):(f&(_t|U))!==0&&(f&O)===0&&Kt(s,t,r)&&(g(s,O),oe(s))}}function Gt(e,t){if(e.reactions!==null)for(const n of e.reactions){const r=n.f;(r&b)!==0?Gt(n,t):(r&Qe)!==0&&(g(n,O),t.add(n))}}function Kt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&b)!==0&&Kt(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function oe(e){for(var t=Ke=e;t.parent!==null;){t=t.parent;var n=t.f;if(tt&&t===y&&(n&U)!==0&&(n&Ft)===0)return;if((n&(ce|B))!==0){if((n&A)===0)return;t.f^=A}}C.push(t)}function Zr(e){Sn(),p!==null&&Pn();var t=le.ensure();t.is_fork=!0,m=new Map;var n=!1,r=t.settled();st(e),m=null;for(var[s,f]of t.previous)s.v=f;return{commit:async()=>{if(n){await r;return}ee.has(t)||Nn(),n=!0,t.is_fork=!1;for(var[o,l]of t.current)o.v=l;st(()=>{var a=new Set;for(var i of t.current.keys())Gt(i,a);zn(a),Wt()}),t.revive(),await r},discard:()=>{!n&&ee.has(t)&&(ee.delete(t),t.discard())}}}function Bn(e,t,n,r){const s=Ie()?ht:Gn;if(n.length===0&&e.length===0){r(t.map(s));return}var f=p,o=y,l=$n();function a(){Promise.all(n.map(i=>Vn(i))).then(i=>{l();try{r([...t.map(s),...i])}catch(u){(o.f&z)===0&&je(u,o)}f==null||f.deactivate(),Le()}).catch(i=>{je(i,o)})}e.length>0?Promise.all(e).then(()=>{l();try{return a()}finally{f==null||f.deactivate(),Le()}}):a()}function $n(){var e=y,t=d,n=h,r=p;return function(f=!0){be(e),W(t),Me(n),f&&(r==null||r.activate())}}function Le(){be(null),W(null),Me(null)}function ht(e){var t=b|O,n=d!==null&&(d.f&b)!==0?d:null;return y!==null&&(y.f|=Pe),{ctx:h,deps:null,effects:null,equals:Lt,f:t,fn:e,reactions:null,rv:0,v:R,wv:0,parent:n??y,ac:null}}function Vn(e,t){let n=y;n===null&&Rn();var r=n.b,s=void 0,f=wt(R),o=!d,l=new Map;return tr(()=>{var _;var a=Ct();s=a.promise;try{Promise.resolve(e()).then(a.resolve,a.reject).then(()=>{i===p&&i.committed&&i.deactivate(),Le()})}catch(v){a.reject(v),Le()}var i=p;if(o){var u=!r.is_pending();r.update_pending_count(1),i.increment(u),(_=l.get(i))==null||_.reject(de),l.delete(i),l.set(i,a)}const c=(v,E=void 0)=>{if(i.activate(),E)E!==de&&(f.f|=X,it(f,E));else{(f.f&X)!==0&&(f.f^=X),it(f,v);for(const[N,$]of l){if(l.delete(N),N===i)break;$.reject(de)}}o&&(r.update_pending_count(-1),i.decrement(u))};a.promise.then(c,v=>c(null,v||"unknown"))}),Qn(()=>{for(const a of l.values())a.reject(de)}),new Promise(a=>{function i(u){function c(){u===s?a(f):i(s)}u.then(c,c)}i(s)})}function Wr(e){const t=ht(e);return un(t),t}function Gn(e){const t=ht(e);return t.equals=Yt,t}function zt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)ue(t[n])}}function Kn(e){for(var t=e.parent;t!==null;){if((t.f&b)===0)return(t.f&z)===0?t:null;t=t.parent}return null}function yt(e){var t,n=y;be(Kn(e));try{e.f&=~ie,zt(e),t=dn(e)}finally{be(n)}return t}function Xt(e){var t=yt(e);if(e.equals(t)||(p!=null&&p.is_fork||(e.v=t),e.wv=_n()),!Ae)if(m!==null)(He()||p!=null&&p.is_fork)&&m.set(e,t);else{var n=(e.f&M)===0?j:A;g(e,n)}}let qe=new Set;const Z=new Map;function zn(e){qe=e}let Zt=!1;function wt(e,t){var n={f:0,v:e,reactions:null,equals:Lt,rv:0,wv:0};return n}function G(e,t){const n=wt(e);return un(n),n}function Jr(e,t=!1,n=!0){var s;const r=wt(e);return t||(r.equals=Yt),Ce&&n&&h!==null&&h.l!==null&&((s=h.l).s??(s.s=[])).push(r),r}function K(e,t,n=!1){d!==null&&(!q||(d.f&Qe)!==0)&&Ie()&&(d.f&(b|U|_t|Qe))!==0&&!(k!=null&&k.includes(e))&&Mn();let r=n?xe(t):t;return it(e,r)}function it(e,t){if(!e.equals(t)){var n=e.v;Ae?Z.set(e,t):Z.set(e,n),e.v=t;var r=le.ensure();r.capture(e,n),(e.f&b)!==0&&((e.f&O)!==0&&yt(e),g(e,(e.f&M)!==0?A:j)),e.wv=_n(),Jt(e,O),Ie()&&y!==null&&(y.f&A)!==0&&(y.f&(B|ce))===0&&(P===null?fr([e]):P.push(e)),!r.is_fork&&qe.size>0&&!Zt&&Wt()}return t}function Wt(){Zt=!1;var e=se;Ue(!0);const t=Array.from(qe);try{for(const n of t)(n.f&A)!==0&&g(n,j),Se(n)&&Te(n)}finally{Ue(e)}qe.clear()}function Qr(e,t=1){var n=pe(e),r=t===1?n++:n--;return K(e,n),r}function Je(e){K(e,e.v+1)}function Jt(e,t){var n=e.reactions;if(n!==null)for(var r=Ie(),s=n.length,f=0;f<s;f++){var o=n[f],l=o.f;if(!(!r&&o===y)){var a=(l&O)===0;if(a&&g(o,t),(l&b)!==0){var i=o;m==null||m.delete(i),(l&ie)===0&&(l&M&&(o.f|=ie),Jt(i,j))}else a&&((l&U)!==0&&F!==null&&F.add(o),oe(o))}}}function xe(e){if(typeof e!="object"||e===null||re in e)return e;const t=Nt(e);if(t!==Tn&&t!==An)return e;var n=new Map,r=Dt(e),s=G(0),f=fe,o=l=>{if(fe===f)return l();var a=d,i=fe;W(null),Ot(f);var u=l();return W(a),Ot(i),u};return r&&n.set("length",G(e.length)),new Proxy(e,{defineProperty(l,a,i){(!("value"in i)||i.configurable===!1||i.enumerable===!1||i.writable===!1)&&In();var u=n.get(a);return u===void 0?u=o(()=>{var c=G(i.value);return n.set(a,c),c}):K(u,i.value,!0),!0},deleteProperty(l,a){var i=n.get(a);if(i===void 0){if(a in l){const u=o(()=>G(R));n.set(a,u),Je(s)}}else K(i,R),Je(s);return!0},get(l,a,i){var v;if(a===re)return e;var u=n.get(a),c=a in l;if(u===void 0&&(!c||(v=ke(l,a))!=null&&v.writable)&&(u=o(()=>{var E=xe(c?l[a]:R),N=G(E);return N}),n.set(a,u)),u!==void 0){var _=pe(u);return _===R?void 0:_}return Reflect.get(l,a,i)},getOwnPropertyDescriptor(l,a){var i=Reflect.getOwnPropertyDescriptor(l,a);if(i&&"value"in i){var u=n.get(a);u&&(i.value=pe(u))}else if(i===void 0){var c=n.get(a),_=c==null?void 0:c.v;if(c!==void 0&&_!==R)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return i},has(l,a){var _;if(a===re)return!0;var i=n.get(a),u=i!==void 0&&i.v!==R||Reflect.has(l,a);if(i!==void 0||y!==null&&(!u||(_=ke(l,a))!=null&&_.writable)){i===void 0&&(i=o(()=>{var v=u?xe(l[a]):R,E=G(v);return E}),n.set(a,i));var c=pe(i);if(c===R)return!1}return u},set(l,a,i,u){var gt;var c=n.get(a),_=a in l;if(r&&a==="length")for(var v=i;v<c.v;v+=1){var E=n.get(v+"");E!==void 0?K(E,R):v in l&&(E=o(()=>G(R)),n.set(v+"",E))}if(c===void 0)(!_||(gt=ke(l,a))!=null&&gt.writable)&&(c=o(()=>G(void 0)),K(c,xe(i)),n.set(a,c));else{_=c.v!==R;var N=o(()=>xe(i));K(c,N)}var $=Reflect.getOwnPropertyDescriptor(l,a);if($!=null&&$.set&&$.set.call(u,i),!_){if(r&&typeof a=="string"){var mt=n.get("length"),Xe=Number(a);Number.isInteger(Xe)&&Xe>=mt.v&&K(mt,Xe+1)}Je(s)}return!0},ownKeys(l){pe(s);var a=Reflect.ownKeys(l).filter(c=>{var _=n.get(c);return _===void 0||_.v!==R});for(var[i,u]of n)u.v!==R&&!(i in l)&&a.push(i);return a},setPrototypeOf(){Fn()}})}function St(e){try{if(e!==null&&typeof e=="object"&&re in e)return e[re]}catch{}return e}function es(e,t){return Object.is(St(e),St(t))}var Rt,Xn,Zn,Qt,en;function ts(){if(Rt===void 0){Rt=window,Xn=document,Zn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Qt=ke(t,"firstChild").get,en=ke(t,"nextSibling").get,Tt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Tt(n)&&(n.__t=void 0)}}function Ye(e=""){return document.createTextNode(e)}function at(e){return Qt.call(e)}function J(e){return en.call(e)}function ns(e,t){if(!ae)return at(e);var n=at(T);if(n===null)n=T.appendChild(Ye());else if(t&&n.nodeType!==vt){var r=Ye();return n==null||n.before(r),ge(r),r}return ge(n),n}function rs(e,t=!1){if(!ae){var n=at(e);return n instanceof Comment&&n.data===""?J(n):n}if(t&&(T==null?void 0:T.nodeType)!==vt){var r=Ye();return T==null||T.before(r),ge(r),r}return T}function ss(e,t=1,n=!1){let r=ae?T:e;for(var s;t--;)s=r,r=J(r);if(!ae)return r;if(n&&(r==null?void 0:r.nodeType)!==vt){var f=Ye();return r===null?s==null||s.after(f):r.before(f),ge(f),f}return ge(r),r}function fs(e){e.textContent=""}function is(){return!1}function as(e,t){if(t){const n=document.body;e.autofocus=!0,Ut(()=>{document.activeElement===n&&e.focus()})}}let xt=!1;function Wn(){xt||(xt=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const n of e.target.elements)(t=n.__on_r)==null||t.call(n)})},{capture:!0}))}function Et(e){var t=d,n=y;W(null),be(null);try{return e()}finally{W(t),be(n)}}function ls(e,t,n,r=n){e.addEventListener(t,()=>Et(n));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),Wn()}function tn(e){y===null&&(d===null&&On(),kn()),Ae&&xn()}function Jn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function L(e,t,n){var r=y;r!==null&&(r.f&Y)!==0&&(e|=Y);var s={ctx:h,deps:null,nodes:null,f:e|O|M,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{Te(s),s.f|=ct}catch(l){throw ue(s),l}else t!==null&&oe(s);var f=s;if(n&&f.deps===null&&f.teardown===null&&f.nodes===null&&f.first===f.last&&(f.f&Pe)===0&&(f=f.first,(e&U)!==0&&(e&Fe)!==0&&f!==null&&(f.f|=Fe)),f!==null&&(f.parent=r,r!==null&&Jn(f,r),d!==null&&(d.f&b)!==0&&(e&ce)===0)){var o=d;(o.effects??(o.effects=[])).push(f)}return s}function He(){return d!==null&&!q}function Qn(e){const t=L(Ve,null,!1);return g(t,A),t.teardown=e,t}function er(e){tn();var t=y.f,n=!d&&(t&B)!==0&&(t&ct)===0;if(n){var r=h;(r.e??(r.e=[])).push(e)}else return nn(e)}function nn(e){return L(ot|Mt,e,!1)}function os(e){return tn(),L(Ve|Mt,e,!0)}function us(e){le.ensure();const t=L(ce|Pe,e,!0);return(n={})=>new Promise(r=>{n.outro?sr(t,()=>{ue(t),r(void 0)}):(ue(t),r(void 0))})}function cs(e){return L(ot,e,!1)}function _s(e,t){var n=h,r={effect:null,ran:!1,deps:e};n.l.$.push(r),r.effect=rn(()=>{e(),!r.ran&&(r.ran=!0,ze(t))})}function vs(){var e=h;rn(()=>{for(var t of e.l.$){t.deps();var n=t.effect;(n.f&A)!==0&&g(n,j),Se(n)&&Te(n),t.ran=!1}})}function tr(e){return L(_t|Pe,e,!0)}function rn(e,t=0){return L(Ve|t,e,!0)}function ds(e,t=[],n=[],r=[]){Bn(r,t,n,s=>{L(Ve,()=>e(...s.map(pe)),!0)})}function ps(e,t=0){var n=L(U|t,e,!0);return n}function hs(e,t=0){var n=L(It|t,e,!0);return n}function ys(e){return L(B|Pe,e,!0)}function sn(e){var t=e.teardown;if(t!==null){const n=Ae,r=d;kt(!0),W(null);try{t.call(null)}finally{kt(n),W(r)}}}function fn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Et(()=>{s.abort(de)});var r=n.next;(n.f&ce)!==0?n.parent=null:ue(n,t),n=r}}function nr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&B)===0&&ue(t),t=n}}function ue(e,t=!0){var n=!1;(t||(e.f&Ft)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(rr(e.nodes.start,e.nodes.end),n=!0),fn(e,t&&!n),Be(e,0),g(e,z);var r=e.nodes&&e.nodes.t;if(r!==null)for(const f of r)f.stop();sn(e);var s=e.parent;s!==null&&s.first!==null&&an(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function rr(e,t){for(;e!==null;){var n=e===t?null:J(e);e.remove(),e=n}}function an(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function sr(e,t,n=!0){var r=[];ln(e,r,!0);var s=()=>{n&&ue(e),t&&t()},f=r.length;if(f>0){var o=()=>--f||s();for(var l of r)l.out(o)}else s()}function ln(e,t,n){if((e.f&Y)===0){e.f^=Y;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var s=e.first;s!==null;){var f=s.next,o=(s.f&Fe)!==0||(s.f&B)!==0&&(e.f&U)!==0;ln(s,t,o?n:!1),s=f}}}function ws(e){on(e,!0)}function on(e,t){if((e.f&Y)!==0){e.f^=Y,(e.f&A)===0&&(g(e,O),oe(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&Fe)!==0||(n.f&B)!==0;on(n,s?t:!1),n=r}var f=e.nodes&&e.nodes.t;if(f!==null)for(const o of f)(o.is_global||t)&&o.in()}}function Es(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:J(n);t.append(n),n=s}}let se=!1;function Ue(e){se=e}let Ae=!1;function kt(e){Ae=e}let d=null,q=!1;function W(e){d=e}let y=null;function be(e){y=e}let k=null;function un(e){d!==null&&(k===null?k=[e]:k.push(e))}let x=null,D=0,P=null;function fr(e){P=e}let cn=1,De=0,fe=De;function Ot(e){fe=e}function _n(){return++cn}function Se(e){var t=e.f;if((t&O)!==0)return!0;if(t&b&&(e.f&=~ie),(t&j)!==0){var n=e.deps;if(n!==null)for(var r=n.length,s=0;s<r;s++){var f=n[s];if(Se(f)&&Xt(f),f.wv>e.wv)return!0}(t&M)!==0&&m===null&&g(e,A)}return!1}function vn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(k!=null&&k.includes(e)))for(var s=0;s<r.length;s++){var f=r[s];(f.f&b)!==0?vn(f,t,!1):t===f&&(n?g(f,O):(f.f&A)!==0&&g(f,j),oe(f))}}function dn(e){var E;var t=x,n=D,r=P,s=d,f=k,o=h,l=q,a=fe,i=e.f;x=null,D=0,P=null,d=(i&(B|ce))===0?e:null,k=null,Me(e.ctx),q=!1,fe=++De,e.ac!==null&&(Et(()=>{e.ac.abort(de)}),e.ac=null);try{e.f|=et;var u=e.fn,c=u(),_=e.deps;if(x!==null){var v;if(Be(e,D),_!==null&&D>0)for(_.length=D+x.length,v=0;v<x.length;v++)_[D+v]=x[v];else e.deps=_=x;if(He()&&(e.f&M)!==0)for(v=D;v<_.length;v++)((E=_[v]).reactions??(E.reactions=[])).push(e)}else _!==null&&D<_.length&&(Be(e,D),_.length=D);if(Ie()&&P!==null&&!q&&_!==null&&(e.f&(b|j|O))===0)for(v=0;v<P.length;v++)vn(P[v],e);return s!==null&&s!==e&&(De++,P!==null&&(r===null?r=P:r.push(...P))),(e.f&X)!==0&&(e.f^=X),c}catch(N){return Hn(N)}finally{e.f^=et,x=t,D=n,P=r,d=s,k=f,Me(o),q=l,fe=a}}function ir(e,t){let n=t.reactions;if(n!==null){var r=gn.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(t.f&b)!==0&&(x===null||!x.includes(t))&&(g(t,j),(t.f&M)!==0&&(t.f^=M,t.f&=~ie),zt(t),Be(t,0))}function Be(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ir(e,n[r])}function Te(e){var t=e.f;if((t&z)===0){g(e,A);var n=y,r=se;y=e,se=!0;try{(t&(U|It))!==0?nr(e):fn(e),sn(e);var s=dn(e);e.teardown=typeof s=="function"?s:null,e.wv=cn;var f}finally{se=r,y=n}}}async function ms(){await Promise.resolve(),st()}function gs(){return le.ensure().settled()}function pe(e){var t=e.f,n=(t&b)!==0;if(d!==null&&!q){var r=y!==null&&(y.f&z)!==0;if(!r&&!(k!=null&&k.includes(e))){var s=d.deps;if((d.f&et)!==0)e.rv<De&&(e.rv=De,x===null&&s!==null&&s[D]===e?D++:x===null?x=[e]:x.includes(e)||x.push(e));else{(d.deps??(d.deps=[])).push(e);var f=e.reactions;f===null?e.reactions=[d]:f.includes(d)||f.push(d)}}}if(Ae){if(Z.has(e))return Z.get(e);if(n){var o=e,l=o.v;return((o.f&A)===0&&o.reactions!==null||hn(o))&&(l=yt(o)),Z.set(o,l),l}}else n&&(!(m!=null&&m.has(e))||p!=null&&p.is_fork&&!He())&&(o=e,Se(o)&&Xt(o),se&&He()&&(o.f&M)===0&&pn(o));if(m!=null&&m.has(e))return m.get(e);if((e.f&X)!==0)throw e.v;return e.v}function pn(e){if(e.deps!==null){e.f^=M;for(const t of e.deps)(t.reactions??(t.reactions=[])).push(e),(t.f&b)!==0&&(t.f&M)===0&&pn(t)}}function hn(e){if(e.v===R)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Z.has(t)||(t.f&b)!==0&&hn(t))return!0;return!1}function ze(e){var t=q;try{return q=!0,e()}finally{q=t}}const ar=-7169;function g(e,t){e.f=e.f&ar|t}function bs(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(re in e)lt(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&re in n&&lt(n)}}}function lt(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{lt(e[r],t)}catch{}const n=Nt(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=bn(n);for(let s in r){const f=r[s].get;if(f)try{f.call(e)}catch{}}}}}function yn(e,t,n){if(e==null)return t(void 0),n&&n(void 0),he;const r=ze(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const ve=[];function lr(e,t){return{subscribe:or(e,t).subscribe}}function or(e,t=he){let n=null;const r=new Set;function s(l){if(qt(e,l)&&(e=l,n)){const a=!ve.length;for(const i of r)i[1](),ve.push(i,e);if(a){for(let i=0;i<ve.length;i+=2)ve[i][0](ve[i+1]);ve.length=0}}}function f(l){s(l(e))}function o(l,a=he){const i=[l,a];return r.add(i),r.size===1&&(n=t(s,f)||he),l(e),()=>{r.delete(i),r.size===0&&n&&(n(),n=null)}}return{set:s,update:f,subscribe:o}}function Ts(e,t,n){const r=!Array.isArray(e),s=r?[e]:e;if(!s.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const f=t.length<2;return lr(n,(o,l)=>{let a=!1;const i=[];let u=0,c=he;const _=()=>{if(u)return;c();const E=t(r?i[0]:i,o,l);f?o(E):c=typeof E=="function"?E:he},v=s.map((E,N)=>yn(E,$=>{i[N]=$,u&=~(1<<N),a&&_()},()=>{u|=1<<N}));return a=!0,_(),function(){Pt(v),c(),a=!1}})}function As(e){let t;return yn(e,n=>t=n)(),t}function ur(e){h===null&&Ge(),Ce&&h.l!==null?wn(h).m.push(e):er(()=>{const t=ze(e);if(typeof t=="function")return t})}function Ss(e){h===null&&Ge(),ur(()=>()=>ze(e))}function cr(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}function Rs(){const e=h;return e===null&&Ge(),(t,n,r)=>{var f;const s=(f=e.s.$$events)==null?void 0:f[t];if(s){const o=Dt(s)?s.slice():[s],l=cr(t,n,r);for(const a of o)a.call(e.x,l);return!l.defaultPrevented}return!0}}function xs(e){h===null&&Ge(),h.l===null&&Cn(),wn(h).a.push(e)}function wn(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}export{Qn as $,Ye as A,vt as B,ge as C,p as D,ct as E,ws as F,ue as G,sr as H,ys as I,Es as J,is as K,ps as L,Fe as M,Gr as N,Ln as O,Vr as P,Hr as Q,cs as R,rn as S,Fr as T,Ut as U,re as V,he as W,Jr as X,yn as Y,K as Z,As as _,er as a,jr as a$,dr as a0,ke as a1,Tr as a2,Pr as a3,Gn as a4,xe as a5,Ae as a6,z as a7,Cr as a8,Ce as a9,J as aA,dt as aB,br as aC,fs as aD,vr as aE,us as aF,qn as aG,pt as aH,st as aI,G as aJ,ms as aK,or as aL,Dt as aM,Rr as aN,Sr as aO,Or as aP,wr as aQ,xr as aR,Y as aS,kr as aT,rr as aU,Ft as aV,hs as aW,ls as aX,qr as aY,es as aZ,We as a_,Nr as aa,Dr as ab,Ir as ac,Er as ad,wt as ae,Qr as af,be as ag,pr as ah,He as ai,Je as aj,jt as ak,le as al,W as am,Me as an,Hn as ao,d as ap,it as aq,$r as ar,je as as,Ar as at,Pe as au,ut as av,Yr as aw,Et as ax,ts as ay,jn as az,ze as b,Nt as b0,bn as b1,mr as b2,Wn as b3,Bn as b4,Lr as b5,as as b6,R as b7,Ts as b8,Ss as b9,yr as ba,Rs as bb,xs as bc,_s as bd,vs as be,Xn as bf,Rt as bg,Zr as bh,gs as bi,h as c,Pt as d,bs as e,ht as f,pe as g,Kr as h,Xr as i,ns as j,Br as k,Wr as l,rs as m,at as n,ur as o,zr as p,Zn as q,hr as r,ss as s,ds as t,os as u,Mr as v,y as w,ae as x,T as y,Ur as z};
@@ -0,0 +1,2 @@
1
+ var We=Object.defineProperty;var we=s=>{throw TypeError(s)};var Ke=(s,e,t)=>e in s?We(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var $=(s,e,t)=>Ke(s,typeof e!="symbol"?e+"":e,t),Ye=(s,e,t)=>e.has(s)||we("Cannot "+t);var ee=(s,e,t)=>(Ye(s,e,"read from private field"),t?t.call(s):e.get(s)),be=(s,e,t)=>e.has(s)?we("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,t);import{x as oe,z as Je,aL as A,_ as I,aJ as Xe,g as je,Z as Qe}from"./DjhvlsAc.js";function ts(s,e,t,n,r){var c;oe&&Je();var i=(c=e.$$slots)==null?void 0:c[t],o=!1;i===!0&&(i=e.children,o=!0),i===void 0?r!==null&&r(s):i(s,o?()=>n:n)}function Re(s){var e,t,n="";if(typeof s=="string"||typeof s=="number")n+=s;else if(typeof s=="object")if(Array.isArray(s)){var r=s.length;for(e=0;e<r;e++)s[e]&&(t=Re(s[e]))&&(n&&(n+=" "),n+=t)}else for(t in s)s[t]&&(n&&(n+=" "),n+=t);return n}function Ge(){for(var s,e,t=0,n="",r=arguments.length;t<r;t++)(s=arguments[t])&&(e=Re(s))&&(n&&(n+=" "),n+=e);return n}function ss(s){return typeof s=="object"?Ge(s):s??""}const ve=[...`
2
+ \r\f \v\uFEFF`];function Ze(s,e,t){var n=s==null?"":""+s;if(e&&(n=n?n+" "+e:e),t){for(var r in t)if(t[r])n=n?n+" "+r:r;else if(n.length)for(var i=r.length,o=0;(o=n.indexOf(r,o))>=0;){var c=o+i;(o===0||ve.includes(n[o-1]))&&(c===n.length||ve.includes(n[c]))?n=(o===0?"":n.substring(0,o))+n.substring(c+1):o=c}}return n===""?null:n}function Ee(s,e=!1){var t=e?" !important;":";",n="";for(var r in s){var i=s[r];i!=null&&i!==""&&(n+=" "+r+": "+i+t)}return n}function te(s){return s[0]!=="-"||s[1]!=="-"?s.toLowerCase():s}function ns(s,e){if(e){var t="",n,r;if(Array.isArray(e)?(n=e[0],r=e[1]):n=e,s){s=String(s).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var i=!1,o=0,c=!1,a=[];n&&a.push(...Object.keys(n).map(te)),r&&a.push(...Object.keys(r).map(te));var m=0,g=-1;const V=s.length;for(var d=0;d<V;d++){var _=s[d];if(c?_==="/"&&s[d-1]==="*"&&(c=!1):i?i===_&&(i=!1):_==="/"&&s[d+1]==="*"?c=!0:_==='"'||_==="'"?i=_:_==="("?o++:_===")"&&o--,!c&&i===!1&&o===0){if(_===":"&&g===-1)g=d;else if(_===";"||d===V-1){if(g!==-1){var M=te(s.substring(m,g).trim());if(!a.includes(M)){_!==";"&&d++;var G=s.substring(m,d).trim();t+=" "+G+";"}}m=d+1,g=-1}}}}return n&&(t+=Ee(n)),r&&(t+=Ee(r,!0)),t=t.trim(),t===""?null:t}return s==null?null:String(s)}function rs(s,e,t,n,r,i){var o=s.__className;if(oe||o!==t||o===void 0){var c=Ze(t,n,i);(!oe||c!==s.getAttribute("class"))&&(c==null?s.removeAttribute("class"):e?s.className=c:s.setAttribute("class",c)),s.__className=t}else if(i&&r!==i)for(var a in i){var m=!!i[a];(r==null||m!==!!r[a])&&s.classList.toggle(a,m)}return i}const C=Object.create(null);C.open="0";C.close="1";C.ping="2";C.pong="3";C.message="4";C.upgrade="5";C.noop="6";const W=Object.create(null);Object.keys(C).forEach(s=>{W[C[s]]=s});const ce={type:"error",data:"parser error"},Oe=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Be=typeof ArrayBuffer=="function",Ne=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s&&s.buffer instanceof ArrayBuffer,de=({type:s,data:e},t,n)=>Oe&&e instanceof Blob?t?n(e):ke(e,n):Be&&(e instanceof ArrayBuffer||Ne(e))?t?n(e):ke(new Blob([e]),n):n(C[s]+(e||"")),ke=(s,e)=>{const t=new FileReader;return t.onload=function(){const n=t.result.split(",")[1];e("b"+(n||""))},t.readAsDataURL(s)};function Se(s){return s instanceof Uint8Array?s:s instanceof ArrayBuffer?new Uint8Array(s):new Uint8Array(s.buffer,s.byteOffset,s.byteLength)}let se;function et(s,e){if(Oe&&s.data instanceof Blob)return s.data.arrayBuffer().then(Se).then(e);if(Be&&(s.data instanceof ArrayBuffer||Ne(s.data)))return e(Se(s.data));de(s,!1,t=>{se||(se=new TextEncoder),e(se.encode(t))})}const Ae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",F=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let s=0;s<Ae.length;s++)F[Ae.charCodeAt(s)]=s;const tt=s=>{let e=s.length*.75,t=s.length,n,r=0,i,o,c,a;s[s.length-1]==="="&&(e--,s[s.length-2]==="="&&e--);const m=new ArrayBuffer(e),g=new Uint8Array(m);for(n=0;n<t;n+=4)i=F[s.charCodeAt(n)],o=F[s.charCodeAt(n+1)],c=F[s.charCodeAt(n+2)],a=F[s.charCodeAt(n+3)],g[r++]=i<<2|o>>4,g[r++]=(o&15)<<4|c>>2,g[r++]=(c&3)<<6|a&63;return m},st=typeof ArrayBuffer=="function",pe=(s,e)=>{if(typeof s!="string")return{type:"message",data:xe(s,e)};const t=s.charAt(0);return t==="b"?{type:"message",data:nt(s.substring(1),e)}:W[t]?s.length>1?{type:W[t],data:s.substring(1)}:{type:W[t]}:ce},nt=(s,e)=>{if(st){const t=tt(s);return xe(t,e)}else return{base64:!0,data:s}},xe=(s,e)=>{switch(e){case"blob":return s instanceof Blob?s:new Blob([s]);case"arraybuffer":default:return s instanceof ArrayBuffer?s:s.buffer}},Le="",rt=(s,e)=>{const t=s.length,n=new Array(t);let r=0;s.forEach((i,o)=>{de(i,!1,c=>{n[o]=c,++r===t&&e(n.join(Le))})})},it=(s,e)=>{const t=s.split(Le),n=[];for(let r=0;r<t.length;r++){const i=pe(t[r],e);if(n.push(i),i.type==="error")break}return n};function ot(){return new TransformStream({transform(s,e){et(s,t=>{const n=t.length;let r;if(n<126)r=new Uint8Array(1),new DataView(r.buffer).setUint8(0,n);else if(n<65536){r=new Uint8Array(3);const i=new DataView(r.buffer);i.setUint8(0,126),i.setUint16(1,n)}else{r=new Uint8Array(9);const i=new DataView(r.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(n))}s.data&&typeof s.data!="string"&&(r[0]|=128),e.enqueue(r),e.enqueue(t)})}})}let ne;function H(s){return s.reduce((e,t)=>e+t.length,0)}function z(s,e){if(s[0].length===e)return s.shift();const t=new Uint8Array(e);let n=0;for(let r=0;r<e;r++)t[r]=s[0][n++],n===s[0].length&&(s.shift(),n=0);return s.length&&n<s[0].length&&(s[0]=s[0].slice(n)),t}function ct(s,e){ne||(ne=new TextDecoder);const t=[];let n=0,r=-1,i=!1;return new TransformStream({transform(o,c){for(t.push(o);;){if(n===0){if(H(t)<1)break;const a=z(t,1);i=(a[0]&128)===128,r=a[0]&127,r<126?n=3:r===126?n=1:n=2}else if(n===1){if(H(t)<2)break;const a=z(t,2);r=new DataView(a.buffer,a.byteOffset,a.length).getUint16(0),n=3}else if(n===2){if(H(t)<8)break;const a=z(t,8),m=new DataView(a.buffer,a.byteOffset,a.length),g=m.getUint32(0);if(g>Math.pow(2,21)-1){c.enqueue(ce);break}r=g*Math.pow(2,32)+m.getUint32(4),n=3}else{if(H(t)<r)break;const a=z(t,r);c.enqueue(pe(i?a:ne.decode(a),e)),n=0}if(r===0||r>s){c.enqueue(ce);break}}}})}const Pe=4;function y(s){if(s)return at(s)}function at(s){for(var e in y.prototype)s[e]=y.prototype[e];return s}y.prototype.on=y.prototype.addEventListener=function(s,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+s]=this._callbacks["$"+s]||[]).push(e),this};y.prototype.once=function(s,e){function t(){this.off(s,t),e.apply(this,arguments)}return t.fn=e,this.on(s,t),this};y.prototype.off=y.prototype.removeListener=y.prototype.removeAllListeners=y.prototype.removeEventListener=function(s,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+s];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+s],this;for(var n,r=0;r<t.length;r++)if(n=t[r],n===e||n.fn===e){t.splice(r,1);break}return t.length===0&&delete this._callbacks["$"+s],this};y.prototype.emit=function(s){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),t=this._callbacks["$"+s],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(t){t=t.slice(0);for(var n=0,r=t.length;n<r;++n)t[n].apply(this,e)}return this};y.prototype.emitReserved=y.prototype.emit;y.prototype.listeners=function(s){return this._callbacks=this._callbacks||{},this._callbacks["$"+s]||[]};y.prototype.hasListeners=function(s){return!!this.listeners(s).length};const j=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),v=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),ht="arraybuffer";function qe(s,...e){return e.reduce((t,n)=>(s.hasOwnProperty(n)&&(t[n]=s[n]),t),{})}const ft=v.setTimeout,ut=v.clearTimeout;function Q(s,e){e.useNativeTimers?(s.setTimeoutFn=ft.bind(v),s.clearTimeoutFn=ut.bind(v)):(s.setTimeoutFn=v.setTimeout.bind(v),s.clearTimeoutFn=v.clearTimeout.bind(v))}const lt=1.33;function dt(s){return typeof s=="string"?pt(s):Math.ceil((s.byteLength||s.size)*lt)}function pt(s){let e=0,t=0;for(let n=0,r=s.length;n<r;n++)e=s.charCodeAt(n),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(n++,t+=4);return t}function Ie(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function gt(s){let e="";for(let t in s)s.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(s[t]));return e}function yt(s){let e={},t=s.split("&");for(let n=0,r=t.length;n<r;n++){let i=t[n].split("=");e[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return e}class mt extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class ge extends y{constructor(e){super(),this.writable=!1,Q(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,n){return super.emitReserved("error",new mt(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=pe(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const t=gt(e);return t.length?"?"+t:""}}class _t extends ge{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let n=0;this._polling&&(n++,this.once("pollComplete",function(){--n||t()})),this.writable||(n++,this.once("drain",function(){--n||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};it(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,rt(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=Ie()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}}let De=!1;try{De=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const wt=De;function bt(){}class vt extends _t{constructor(e){if(super(e),typeof location<"u"){const t=location.protocol==="https:";let n=location.port;n||(n=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,t){const n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",(r,i)=>{this.onError("xhr post error",r,i)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,n)=>{this.onError("xhr poll error",t,n)}),this.pollXhr=e}}class T extends y{constructor(e,t,n){super(),this.createRequest=e,Q(this,n),this._opts=n,this._method=n.method||"GET",this._uri=t,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var e;const t=qe(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const n=this._xhr=this.createRequest(t);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let r in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(r)&&n.setRequestHeader(r,this._opts.extraHeaders[r])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var r;n.readyState===3&&((r=this._opts.cookieJar)===null||r===void 0||r.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(r){this.setTimeoutFn(()=>{this._onError(r)},0);return}typeof document<"u"&&(this._index=T.requestsCount++,T.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=bt,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete T.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}T.requestsCount=0;T.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Te);else if(typeof addEventListener=="function"){const s="onpagehide"in v?"pagehide":"unload";addEventListener(s,Te,!1)}}function Te(){for(let s in T.requests)T.requests.hasOwnProperty(s)&&T.requests[s].abort()}const Et=(function(){const s=Fe({xdomain:!1});return s&&s.responseType!==null})();class kt extends vt{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=Et&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new T(Fe,this.uri(),e)}}function Fe(s){const e=s.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||wt))return new XMLHttpRequest}catch{}if(!e)try{return new v[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Ue=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class St extends ge{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,n=Ue?{}:qe(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,n)}catch(r){return this.emitReserved("error",r)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;de(n,this.supportsBinary,i=>{try{this.doWrite(n,i)}catch{}r&&j(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=Ie()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const re=v.WebSocket||v.MozWebSocket;class At extends St{createSocket(e,t,n){return Ue?new re(e,t,n):t?new re(e,t):new re(e)}doWrite(e,t){this.ws.send(t)}}class Tt extends ge{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const t=ct(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=ot();r.readable.pipeTo(e.writable),this._writer=r.writable.getWriter();const i=()=>{n.read().then(({done:c,value:a})=>{c||(this.onPacket(a),i())}).catch(c=>{})};i();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;this._writer.write(n).then(()=>{r&&j(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const Ct={websocket:At,webtransport:Tt,polling:kt},Rt=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Ot=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ae(s){if(s.length>8e3)throw"URI too long";const e=s,t=s.indexOf("["),n=s.indexOf("]");t!=-1&&n!=-1&&(s=s.substring(0,t)+s.substring(t,n).replace(/:/g,";")+s.substring(n,s.length));let r=Rt.exec(s||""),i={},o=14;for(;o--;)i[Ot[o]]=r[o]||"";return t!=-1&&n!=-1&&(i.source=e,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=Bt(i,i.path),i.queryKey=Nt(i,i.query),i}function Bt(s,e){const t=/\/{2,9}/g,n=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&n.splice(0,1),e.slice(-1)=="/"&&n.splice(n.length-1,1),n}function Nt(s,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,r,i){r&&(t[r]=i)}),t}const he=typeof addEventListener=="function"&&typeof removeEventListener=="function",K=[];he&&addEventListener("offline",()=>{K.forEach(s=>s())},!1);class O extends y{constructor(e,t){if(super(),this.binaryType=ht,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(t=e,e=null),e){const n=ae(e);t.hostname=n.host,t.secure=n.protocol==="https"||n.protocol==="wss",t.port=n.port,n.query&&(t.query=n.query)}else t.host&&(t.hostname=ae(t.host).host);Q(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(n=>{const r=n.prototype.name;this.transports.push(r),this._transportsByName[r]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=yt(this.opts.query)),he&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},K.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=Pe,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&O.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",O.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let n=0;n<this.writeBuffer.length;n++){const r=this.writeBuffer[n].data;if(r&&(t+=dt(r)),n>0&&t>this._maxPayload)return this.writeBuffer.slice(0,n);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,j(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,n){return this._sendPacket("message",e,t,n),this}send(e,t,n){return this._sendPacket("message",e,t,n),this}_sendPacket(e,t,n,r){if(typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;const i={type:e,data:t,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():e()}):this.upgrading?n():e()),this}_onError(e){if(O.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),he&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const n=K.indexOf(this._offlineEventListener);n!==-1&&K.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}O.protocol=Pe;class xt extends O{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),n=!1;O.priorWebsocketSuccess=!1;const r=()=>{n||(t.send([{type:"ping",data:"probe"}]),t.once("packet",d=>{if(!n)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;O.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(g(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const _=new Error("probe error");_.transport=t.name,this.emitReserved("upgradeError",_)}}))};function i(){n||(n=!0,g(),t.close(),t=null)}const o=d=>{const _=new Error("probe error: "+d);_.transport=t.name,i(),this.emitReserved("upgradeError",_)};function c(){o("transport closed")}function a(){o("socket closed")}function m(d){t&&d.name!==t.name&&i()}const g=()=>{t.removeListener("open",r),t.removeListener("error",o),t.removeListener("close",c),this.off("close",a),this.off("upgrading",m)};t.once("open",r),t.once("error",o),t.once("close",c),this.once("close",a),this.once("upgrading",m),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{n||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}let Lt=class extends xt{constructor(e,t={}){const n=typeof e=="object"?e:t;(!n.transports||n.transports&&typeof n.transports[0]=="string")&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(r=>Ct[r]).filter(r=>!!r)),super(e,n)}};function Pt(s,e="",t){let n=s;t=t||typeof location<"u"&&location,s==null&&(s=t.protocol+"//"+t.host),typeof s=="string"&&(s.charAt(0)==="/"&&(s.charAt(1)==="/"?s=t.protocol+s:s=t.host+s),/^(https?|wss?):\/\//.test(s)||(typeof t<"u"?s=t.protocol+"//"+s:s="https://"+s),n=ae(s)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const i=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port+e,n.href=n.protocol+"://"+i+(t&&t.port===n.port?"":":"+n.port),n}const qt=typeof ArrayBuffer=="function",It=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s.buffer instanceof ArrayBuffer,Me=Object.prototype.toString,Dt=typeof Blob=="function"||typeof Blob<"u"&&Me.call(Blob)==="[object BlobConstructor]",Ft=typeof File=="function"||typeof File<"u"&&Me.call(File)==="[object FileConstructor]";function ye(s){return qt&&(s instanceof ArrayBuffer||It(s))||Dt&&s instanceof Blob||Ft&&s instanceof File}function Y(s,e){if(!s||typeof s!="object")return!1;if(Array.isArray(s)){for(let t=0,n=s.length;t<n;t++)if(Y(s[t]))return!0;return!1}if(ye(s))return!0;if(s.toJSON&&typeof s.toJSON=="function"&&arguments.length===1)return Y(s.toJSON(),!0);for(const t in s)if(Object.prototype.hasOwnProperty.call(s,t)&&Y(s[t]))return!0;return!1}function Ut(s){const e=[],t=s.data,n=s;return n.data=fe(t,e),n.attachments=e.length,{packet:n,buffers:e}}function fe(s,e){if(!s)return s;if(ye(s)){const t={_placeholder:!0,num:e.length};return e.push(s),t}else if(Array.isArray(s)){const t=new Array(s.length);for(let n=0;n<s.length;n++)t[n]=fe(s[n],e);return t}else if(typeof s=="object"&&!(s instanceof Date)){const t={};for(const n in s)Object.prototype.hasOwnProperty.call(s,n)&&(t[n]=fe(s[n],e));return t}return s}function Mt(s,e){return s.data=ue(s.data,e),delete s.attachments,s}function ue(s,e){if(!s)return s;if(s&&s._placeholder===!0){if(typeof s.num=="number"&&s.num>=0&&s.num<e.length)return e[s.num];throw new Error("illegal attachments")}else if(Array.isArray(s))for(let t=0;t<s.length;t++)s[t]=ue(s[t],e);else if(typeof s=="object")for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&(s[t]=ue(s[t],e));return s}const Vt=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],$t=5;var u;(function(s){s[s.CONNECT=0]="CONNECT",s[s.DISCONNECT=1]="DISCONNECT",s[s.EVENT=2]="EVENT",s[s.ACK=3]="ACK",s[s.CONNECT_ERROR=4]="CONNECT_ERROR",s[s.BINARY_EVENT=5]="BINARY_EVENT",s[s.BINARY_ACK=6]="BINARY_ACK"})(u||(u={}));class Ht{constructor(e){this.replacer=e}encode(e){return(e.type===u.EVENT||e.type===u.ACK)&&Y(e)?this.encodeAsBinary({type:e.type===u.EVENT?u.BINARY_EVENT:u.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===u.BINARY_EVENT||e.type===u.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=Ut(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}}function Ce(s){return Object.prototype.toString.call(s)==="[object Object]"}class me extends y{constructor(e){super(),this.reviver=e}add(e){let t;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const n=t.type===u.BINARY_EVENT;n||t.type===u.BINARY_ACK?(t.type=n?u.EVENT:u.ACK,this.reconstructor=new zt(t),t.attachments===0&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(ye(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let t=0;const n={type:Number(e.charAt(0))};if(u[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===u.BINARY_EVENT||n.type===u.BINARY_ACK){const i=t+1;for(;e.charAt(++t)!=="-"&&t!=e.length;);const o=e.substring(i,t);if(o!=Number(o)||e.charAt(t)!=="-")throw new Error("Illegal attachments");n.attachments=Number(o)}if(e.charAt(t+1)==="/"){const i=t+1;for(;++t&&!(e.charAt(t)===","||t===e.length););n.nsp=e.substring(i,t)}else n.nsp="/";const r=e.charAt(t+1);if(r!==""&&Number(r)==r){const i=t+1;for(;++t;){const o=e.charAt(t);if(o==null||Number(o)!=o){--t;break}if(t===e.length)break}n.id=Number(e.substring(i,t+1))}if(e.charAt(++t)){const i=this.tryParse(e.substr(t));if(me.isPayloadValid(n.type,i))n.data=i;else throw new Error("invalid payload")}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case u.CONNECT:return Ce(t);case u.DISCONNECT:return t===void 0;case u.CONNECT_ERROR:return typeof t=="string"||Ce(t);case u.EVENT:case u.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&Vt.indexOf(t[0])===-1);case u.ACK:case u.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class zt{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const t=Mt(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Wt=Object.freeze(Object.defineProperty({__proto__:null,Decoder:me,Encoder:Ht,get PacketType(){return u},protocol:$t},Symbol.toStringTag,{value:"Module"}));function E(s,e,t){return s.on(e,t),function(){s.off(e,t)}}const Kt=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Ve extends y{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[E(e,"open",this.onopen.bind(this)),E(e,"packet",this.onpacket.bind(this)),E(e,"error",this.onerror.bind(this)),E(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var n,r,i;if(Kt.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const o={type:u.EVENT,data:t};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){const g=this.ids++,d=t.pop();this._registerAckCallback(g,d),o.id=g}const c=(r=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||r===void 0?void 0:r.writable,a=this.connected&&!(!((i=this.io.engine)===null||i===void 0)&&i._hasPingExpired());return this.flags.volatile&&!c||(a?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(e,t){var n;const r=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(r===void 0){this.acks[e]=t;return}const i=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let c=0;c<this.sendBuffer.length;c++)this.sendBuffer[c].id===e&&this.sendBuffer.splice(c,1);t.call(this,new Error("operation has timed out"))},r),o=(...c)=>{this.io.clearTimeoutFn(i),t.apply(this,c)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((n,r)=>{const i=(o,c)=>o?r(o):n(c);i.withError=!0,t.push(i),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((r,...i)=>n!==this._queue[0]?void 0:(r!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(r)):(this._queue.shift(),t&&t(null,...i)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:u.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(n=>String(n.id)===e)){const n=this.acks[e];delete this.acks[e],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case u.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case u.EVENT:case u.BINARY_EVENT:this.onevent(e);break;case u.ACK:case u.BINARY_ACK:this.onack(e);break;case u.DISCONNECT:this.ondisconnect();break;case u.CONNECT_ERROR:this.destroy();const n=new Error(e.data.message);n.data=e.data.data,this.emitReserved("connect_error",n);break}}onevent(e){const t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let n=!1;return function(...r){n||(n=!0,t.packet({type:u.ACK,id:e,data:r}))}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:u.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const n of t)n.apply(this,e.data)}}}function x(s){s=s||{},this.ms=s.min||100,this.max=s.max||1e4,this.factor=s.factor||2,this.jitter=s.jitter>0&&s.jitter<=1?s.jitter:0,this.attempts=0}x.prototype.duration=function(){var s=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*s);s=(Math.floor(e*10)&1)==0?s-t:s+t}return Math.min(s,this.max)|0};x.prototype.reset=function(){this.attempts=0};x.prototype.setMin=function(s){this.ms=s};x.prototype.setMax=function(s){this.max=s};x.prototype.setJitter=function(s){this.jitter=s};class le extends y{constructor(e,t){var n;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,Q(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((n=t.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new x({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const r=t.parser||Wt;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Lt(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const r=E(t,"open",function(){n.onopen(),e&&e()}),i=c=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",c),e?e(c):this.maybeReconnectOnOpen()},o=E(t,"error",i);if(this._timeout!==!1){const c=this._timeout,a=this.setTimeoutFn(()=>{r(),i(new Error("timeout")),t.close()},c);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}return this.subs.push(r),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(E(e,"ping",this.onping.bind(this)),E(e,"data",this.ondata.bind(this)),E(e,"error",this.onerror.bind(this)),E(e,"close",this.onclose.bind(this)),E(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){j(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new Ve(this,e,t),this.nsps[e]=n),n}_destroy(e){const t=Object.keys(this.nsps);for(const n of t)if(this.nsps[n].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(r=>{r?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",r)):e.onreconnect()}))},t);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const D={};function J(s,e){typeof s=="object"&&(e=s,s=void 0),e=e||{};const t=Pt(s,e.path||"/socket.io"),n=t.source,r=t.id,i=t.path,o=D[r]&&i in D[r].nsps,c=e.forceNew||e["force new connection"]||e.multiplex===!1||o;let a;return c?a=new le(n,e):(D[r]||(D[r]=new le(n,e)),a=D[r]),t.query&&!e.query&&(e.query=t.queryKey),a.socket(t.path,e)}Object.assign(J,{Manager:le,Socket:Ve,io:J,connect:J});let Yt=0;const X="claude-mpm-events-",Jt=50;function _e(){if(typeof window>"u")return!1;try{const s="__localStorage_test__";return localStorage.setItem(s,s),localStorage.removeItem(s),!0}catch{return!1}}function Xt(s){if(!_e())return[];try{const e=`${X}${s}`,t=localStorage.getItem(e);if(t){const n=JSON.parse(t);return console.log(`[Cache] Loaded ${n.length} cached events for stream ${s}`),n}}catch(e){console.warn(`[Cache] Failed to load cached events for stream ${s}:`,e)}return[]}function jt(s,e){if(_e())try{const t=`${X}${s}`,n=e.slice(-Jt);localStorage.setItem(t,JSON.stringify(n)),console.log(`[Cache] Saved ${n.length} events for stream ${s}`)}catch(t){console.warn(`[Cache] Failed to save cached events for stream ${s}:`,t)}}function ie(s){var e,t;return s.session_id||s.sessionId||((e=s.data)==null?void 0:e.session_id)||((t=s.data)==null?void 0:t.sessionId)||s.source||null}function Qt(){const s=A(null),e=A(!1),t=A([]),n=A(new Set),r=A(new Map),i=A(new Map),o=A(null),c=A(""),a=A(""),m=A("current");typeof window<"u"&&setTimeout(()=>{const h=g();if(h.length>0){console.log(`[Cache] Found ${h.length} cached streams`);const p=[],f=new Set;if(h.forEach(b=>{const l=Xt(b);p.push(...l),l.length>0&&f.add(b)}),p.length>0){t.set(p),n.set(f),console.log(`[Cache] Restored ${p.length} total cached events from ${f.size} streams`);const b=new Map;p.forEach(l=>{var L,P,q,k;const w=ie(l);if(w&&!b.has(w)){const B=l.cwd||l.working_directory||((L=l.data)==null?void 0:L.working_directory)||((P=l.data)==null?void 0:P.cwd)||((q=l.metadata)==null?void 0:q.working_directory)||((k=l.metadata)==null?void 0:k.cwd);if(B&&typeof B=="string"){const Z=B.split("/").filter(Boolean).pop()||B;b.set(w,{projectPath:B,projectName:Z})}}}),b.size>0&&(r.set(b),console.log(`[Cache] Extracted metadata for ${b.size} streams`))}}},0);function g(){if(!_e())return[];const h=[];try{for(let p=0;p<localStorage.length;p++){const f=localStorage.key(p);f!=null&&f.startsWith(X)&&h.push(f.substring(X.length))}}catch(p){console.warn("[Cache] Failed to enumerate cached streams:",p)}return h}async function d(h="http://localhost:8765"){try{const f=await(await fetch(`${h}/api/working-directory`)).json();f.success&&f.working_directory&&(a.set(f.working_directory),console.log("[WorkingDirectory] Set to:",f.working_directory))}catch(p){console.warn("[WorkingDirectory] Failed to fetch:",p)}}function _(h="http://localhost:8765"){const p=I(s);if(p!=null&&p.connected)return;console.log("Connecting to Socket.IO server:",h),d(h);const f=J(h,{transports:["polling","websocket"],upgrade:!0,reconnection:!0,reconnectionDelay:1e3,reconnectionAttempts:10,timeout:2e4});f.on("connect",()=>{e.set(!0),o.set(null),console.log("Socket.IO connected, socket id:",f.id)}),f.on("disconnect",l=>{e.set(!1),console.log("Socket.IO disconnected, reason:",l)}),f.on("connect_error",l=>{o.set(l.message),console.error("Socket.IO connection error:",l)}),["claude_event","hook_event","cli_event","system_event","agent_event","build_event"].forEach(l=>{f.on(l,w=>{console.log(`Received ${l}:`,w),M({...w,event:l})})}),f.on("history",l=>{console.log("Received event history:",l.count,"events"),l.events&&Array.isArray(l.events)&&l.events.forEach(w=>M(w))}),f.on("heartbeat",l=>{}),f.on("reload",l=>{console.log("Hot reload triggered by server:",l),window.location.reload()}),f.onAny((l,...w)=>{l!=="heartbeat"&&console.log("Socket event:",l,w)}),s.set(f)}function M(h){var b,l,w,L,P,q;console.log("Socket store: handleEvent called with:",h);const p={...h,id:h.id||`evt_${Date.now()}_${++Yt}`,timestamp:h.timestamp||new Date().toISOString()};t.update(k=>[...k,p]),console.log("Socket store: Added event, total events:",I(t).length);const f=ie(p);if(console.log("Socket store: Extracted stream ID:",f),console.log("Socket store: Checked fields:",{session_id:h.session_id,sessionId:h.sessionId,data_session_id:(b=h.data)==null?void 0:b.session_id,data_sessionId:(l=h.data)==null?void 0:l.sessionId,source:h.source}),f){i.update(S=>{const R=new Map(S);return R.set(f,Date.now()),R}),n.update(S=>{const R=S.size;console.log("Socket store: Adding stream:",f,"Previous streams:",Array.from(S));const N=new Set([...S,f]);console.log("Socket store: Updated streams:",Array.from(N),"Size changed:",R,"->",N.size);const ze=I(c);return(R===0||ze==="")&&(console.log("Socket store: Auto-selecting stream:",f,"Reason:",R===0?"first stream":"no stream selected"),c.set(f)),N});const k=h.cwd||h.working_directory||((w=h.data)==null?void 0:w.working_directory)||((L=h.data)==null?void 0:L.cwd)||((P=h.metadata)==null?void 0:P.working_directory)||((q=h.metadata)==null?void 0:q.cwd);if(k){const S=k.split("/").filter(Boolean).pop()||k;r.update(R=>{const N=new Map(R);return N.set(f,{projectPath:k,projectName:S}),console.log("Socket store: Updated metadata for stream:",f,{projectPath:k,projectName:S}),N})}const Z=I(t).filter(S=>ie(S)===f);jt(f,Z)}else console.log("Socket store: No stream ID found in event:",JSON.stringify(h,null,2))}function G(){const h=I(s);h&&(h.disconnect(),s.set(null),e.set(!1))}function V(){t.set([])}function $e(h){c.set(h)}function He(h){m.set(h)}return{socket:s,isConnected:e,events:t,streams:n,streamMetadata:r,streamActivity:i,error:o,selectedStream:c,currentWorkingDirectory:a,projectFilter:m,connect:_,disconnect:G,clearEvents:V,setSelectedStream:$e,setProjectFilter:He}}const os=Qt();var U;class Gt{constructor(){be(this,U,Xe("dark"));$(this,"initialized",!1);$(this,"toggle",()=>{this.current=this.current==="dark"?"light":"dark",typeof window<"u"&&(localStorage.setItem("theme",this.current),this.applyTheme(this.current))});$(this,"set",e=>{this.current=e,typeof window<"u"&&(localStorage.setItem("theme",this.current),this.applyTheme(e))});if(typeof window<"u"&&!this.initialized){const e=localStorage.getItem("theme");e&&(this.current=e),this.applyTheme(this.current),this.initialized=!0}}get current(){return je(ee(this,U))}set current(e){Qe(ee(this,U),e,!0)}applyTheme(e){typeof document<"u"&&(e==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"))}}U=new WeakMap;const cs=new Gt;export{os as a,rs as b,ns as c,ss as d,ts as s,cs as t};
@@ -0,0 +1 @@
1
+ import{c as d,u as g,a as l,b,r as m,d as i,g as p,e as h,f as v,h as k}from"./DjhvlsAc.js";function x(n=!1){const s=d,e=s.l.u;if(!e)return;let o=()=>h(s.s);if(n){let a=0,t={};const _=v(()=>{let c=!1;const r=s.s;for(const f in r)r[f]!==t[f]&&(t[f]=r[f],c=!0);return c&&a++,a});o=()=>p(_)}e.b.length&&g(()=>{u(s,o),i(e.b)}),l(()=>{const a=b(()=>e.m.map(m));return()=>{for(const t of a)typeof t=="function"&&t()}}),e.a.length&&l(()=>{u(s,o),i(e.a)})}function u(n,s){if(n.l.s)for(const e of n.l.s)p(e);s()}k();export{x as i};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CAGBuiOw.js","../chunks/CWc5urbQ.js","../chunks/DjhvlsAc.js","../chunks/N4qtv3Hx.js","../assets/0.B_FtCwCQ.css","../nodes/1.DFLC8jdE.js","../chunks/uj46x2Wr.js","../chunks/DMkZpdF2.js","../chunks/CIXEwuWe.js","../nodes/2.DPvEihJJ.js","../chunks/BgChzWQ1.js","../assets/2.Cl_eSA4x.css"])))=>i.map(i=>d[i]);
2
+ var z=t=>{throw TypeError(t)};var G=(t,e,r)=>e.has(t)||z("Cannot "+r);var u=(t,e,r)=>(G(t,e,"read from private field"),r?r.call(t):e.get(t)),L=(t,e,r)=>e.has(t)?z("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),A=(t,e,r,n)=>(G(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);import{x as Y,z as Z,L as H,M as Q,Z as j,ad as $,g,aI as ee,a0 as te,X as re,p as se,u as ae,a as ne,o as oe,aJ as C,aK as ce,m as S,s as ie,i as le,j as ue,k as fe,l as T,t as de}from"../chunks/DjhvlsAc.js";import{h as me,m as he,u as _e,s as ve}from"../chunks/DMkZpdF2.js";import{f as K,a as w,c as B,t as ge}from"../chunks/CWc5urbQ.js";import{B as ye,p as I,i as D,b as V}from"../chunks/BgChzWQ1.js";function p(t,e,r){Y&&Z();var n=new ye(t);H(()=>{var c=e()??null;n.ensure(c,c&&(m=>r(m,c)))},Q)}function be(t){return class extends Ee{constructor(e){super({component:t,...e})}}}var y,d;class Ee{constructor(e){L(this,y);L(this,d);var m;var r=new Map,n=(a,s)=>{var i=re(s,!1,!1);return r.set(a,i),i};const c=new Proxy({...e.props||{},$$events:{}},{get(a,s){return g(r.get(s)??n(s,Reflect.get(a,s)))},has(a,s){return s===$?!0:(g(r.get(s)??n(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,i){return j(r.get(s)??n(s,i),i),Reflect.set(a,s,i)}});A(this,d,(e.hydrate?me:he)(e.component,{target:e.target,anchor:e.anchor,props:c,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((m=e==null?void 0:e.props)!=null&&m.$$host)||e.sync===!1)&&ee(),A(this,y,c.$$events);for(const a of Object.keys(u(this,d)))a==="$set"||a==="$destroy"||a==="$on"||te(this,a,{get(){return u(this,d)[a]},set(s){u(this,d)[a]=s},enumerable:!0});u(this,d).$set=a=>{Object.assign(c,a)},u(this,d).$destroy=()=>{_e(u(this,d))}}$set(e){u(this,d).$set(e)}$on(e,r){u(this,y)[e]=u(this,y)[e]||[];const n=(...c)=>r.call(this,...c);return u(this,y)[e].push(n),()=>{u(this,y)[e]=u(this,y)[e].filter(c=>c!==n)}}$destroy(){u(this,d).$destroy()}}y=new WeakMap,d=new WeakMap;const Pe="modulepreload",Re=function(t,e){return new URL(t,e).href},J={},q=function(e,r,n){let c=Promise.resolve();if(r&&r.length>0){let a=function(l){return Promise.all(l.map(v=>Promise.resolve(v).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};const s=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),k=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));c=a(r.map(l=>{if(l=Re(l,n),l in J)return;J[l]=!0;const v=l.endsWith(".css"),b=v?'[rel="stylesheet"]':"";if(!!n)for(let o=s.length-1;o>=0;o--){const f=s[o];if(f.href===l&&(!v||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${b}`))return;const _=document.createElement("link");if(_.rel=v?"stylesheet":Pe,v||(_.as="script"),_.crossOrigin="",_.href=l,k&&_.setAttribute("nonce",k),document.head.appendChild(_),v)return new Promise((o,f)=>{_.addEventListener("load",o),_.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${l}`)))})}))}function m(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return c.then(a=>{for(const s of a||[])s.status==="rejected"&&m(s.reason);return e().catch(m)})},Be={};var we=K('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),ke=K("<!> <!>",1);function xe(t,e){se(e,!0);let r=I(e,"components",23,()=>[]),n=I(e,"data_0",3,null),c=I(e,"data_1",3,null);ae(()=>e.stores.page.set(e.page)),ne(()=>{e.stores,e.page,e.constructors,r(),e.form,n(),c(),e.stores.page.notify()});let m=C(!1),a=C(!1),s=C(null);oe(()=>{const o=e.stores.page.subscribe(()=>{g(m)&&(j(a,!0),ce().then(()=>{j(s,document.title||"untitled page",!0)}))});return j(m,!0),o});const i=T(()=>e.constructors[1]);var k=ke(),l=S(k);{var v=o=>{const f=T(()=>e.constructors[0]);var E=B(),x=S(E);p(x,()=>g(f),(P,R)=>{V(R(P,{get data(){return n()},get form(){return e.form},get params(){return e.page.params},children:(h,Se)=>{var U=B(),N=S(U);p(N,()=>g(i),(W,X)=>{V(X(W,{get data(){return c()},get form(){return e.form},get params(){return e.page.params}}),O=>r()[1]=O,()=>{var O;return(O=r())==null?void 0:O[1]})}),w(h,U)},$$slots:{default:!0}}),h=>r()[0]=h,()=>{var h;return(h=r())==null?void 0:h[0]})}),w(o,E)},b=o=>{const f=T(()=>e.constructors[0]);var E=B(),x=S(E);p(x,()=>g(f),(P,R)=>{V(R(P,{get data(){return n()},get form(){return e.form},get params(){return e.page.params}}),h=>r()[0]=h,()=>{var h;return(h=r())==null?void 0:h[0]})}),w(o,E)};D(l,o=>{e.constructors[1]?o(v):o(b,!1)})}var F=ie(l,2);{var _=o=>{var f=we(),E=ue(f);{var x=P=>{var R=ge();de(()=>ve(R,g(s))),w(P,R)};D(E,P=>{g(a)&&P(x)})}fe(f),w(o,f)};D(F,o=>{g(m)&&o(_)})}w(t,k),le()}const Ie=be(xe),De=[()=>q(()=>import("../nodes/0.CAGBuiOw.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>q(()=>import("../nodes/1.DFLC8jdE.js"),__vite__mapDeps([5,1,2,6,7,8]),import.meta.url),()=>q(()=>import("../nodes/2.DPvEihJJ.js"),__vite__mapDeps([9,1,2,7,10,3,6,11]),import.meta.url)],Ve=[],pe={"/":[2]},M={handleError:(({error:t})=>{console.error(t)}),reroute:(()=>{}),transport:{}},Oe=Object.fromEntries(Object.entries(M.transport).map(([t,e])=>[t,e.decode])),qe=Object.fromEntries(Object.entries(M.transport).map(([t,e])=>[t,e.encode])),Fe=!1,Ue=(t,e)=>Oe[t](e);export{Ue as decode,Oe as decoders,pe as dictionary,qe as encoders,Fe as hash,M as hooks,Be as matchers,De as nodes,Ie as root,Ve as server_loads};
@@ -0,0 +1 @@
1
+ import{l as o,a as r}from"../chunks/CIXEwuWe.js";export{o as load_css,r as start};
@@ -0,0 +1 @@
1
+ import{f as c,a as d}from"../chunks/CWc5urbQ.js";import{p as m,o as f,t as u,i as p,j as s,k as o,g as v,l as _}from"../chunks/DjhvlsAc.js";import{s as h,a as r,b,t as g}from"../chunks/N4qtv3Hx.js";const k=!0,x=!1,O=Object.freeze(Object.defineProperty({__proto__:null,prerender:k,ssr:x},Symbol.toStringTag,{value:"Module"}));var y=c('<div><main class="flex-1 overflow-hidden"><!></main></div>');function w(n,t){m(t,!0),f(()=>(r.connect(),()=>{r.disconnect()}));let l=_(()=>g.current==="dark"?"dark":"");var e=y(),a=s(e),i=s(a);h(i,t,"default",{},null),o(a),o(e),u(()=>b(e,1,`${v(l)??""} min-h-screen bg-slate-50 dark:bg-slate-900 flex flex-col transition-colors`)),d(n,e),p()}export{w as component,O as universal};
@@ -0,0 +1 @@
1
+ import{f as h,a as g}from"../chunks/CWc5urbQ.js";import{i as l}from"../chunks/uj46x2Wr.js";import{p as v,m as d,t as _,i as x,j as e,k as o,s as k}from"../chunks/DjhvlsAc.js";import{s as p}from"../chunks/DMkZpdF2.js";import{s as $,p as m}from"../chunks/CIXEwuWe.js";const b={get error(){return m.error},get status(){return m.status}};$.updated.check;const i=b;var j=h("<h1> </h1> <p> </p>",1);function A(f,n){v(n,!1),l();var t=j(),r=d(t),c=e(r,!0);o(r);var s=k(r,2),u=e(s,!0);o(s),_(()=>{var a;p(c,i.status),p(u,(a=i.error)==null?void 0:a.message)}),g(f,t),x()}export{A as component};