secondshift 0.1.0b12__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.
Files changed (371) hide show
  1. secondshift/__init__.py +1 -0
  2. secondshift/__main__.py +3 -0
  3. secondshift/cli.py +17 -0
  4. secondshift/config/__init__.py +0 -0
  5. secondshift/config/api.py +23 -0
  6. secondshift/config/app.py +62 -0
  7. secondshift/config/constants.py +279 -0
  8. secondshift/config/container_env.py +118 -0
  9. secondshift/config/first_run.py +40 -0
  10. secondshift/config/formatting.py +5 -0
  11. secondshift/config/gunicorn.py +31 -0
  12. secondshift/config/logging.py +40 -0
  13. secondshift/config/settings/__init__.py +0 -0
  14. secondshift/config/settings/base.py +524 -0
  15. secondshift/config/settings/dev.py +14 -0
  16. secondshift/config/settings/local.py +23 -0
  17. secondshift/config/settings/production.py +113 -0
  18. secondshift/config/settings/runner.py +140 -0
  19. secondshift/config/settings/test.py +47 -0
  20. secondshift/config/static_storage.py +45 -0
  21. secondshift/config/urls.py +42 -0
  22. secondshift/connections/__init__.py +0 -0
  23. secondshift/connections/access.py +27 -0
  24. secondshift/connections/admin.py +25 -0
  25. secondshift/connections/agents.py +224 -0
  26. secondshift/connections/api.py +747 -0
  27. secondshift/connections/apps.py +6 -0
  28. secondshift/connections/catalog.py +96 -0
  29. secondshift/connections/checks.py +22 -0
  30. secondshift/connections/dao.py +305 -0
  31. secondshift/connections/errors.py +13 -0
  32. secondshift/connections/execution.py +262 -0
  33. secondshift/connections/external.py +258 -0
  34. secondshift/connections/github.py +123 -0
  35. secondshift/connections/http_api/__init__.py +1 -0
  36. secondshift/connections/http_api/client.py +161 -0
  37. secondshift/connections/http_api/connections.py +187 -0
  38. secondshift/connections/http_api/spec.py +382 -0
  39. secondshift/connections/mcp/__init__.py +1 -0
  40. secondshift/connections/mcp/base.py +139 -0
  41. secondshift/connections/mcp/client.py +353 -0
  42. secondshift/connections/mcp/custom.py +86 -0
  43. secondshift/connections/mcp/github.py +256 -0
  44. secondshift/connections/mcp/oauth.py +352 -0
  45. secondshift/connections/mcp/providers.py +15 -0
  46. secondshift/connections/mcp/schemas.py +77 -0
  47. secondshift/connections/mcp/sentry.py +135 -0
  48. secondshift/connections/mcp/signin.py +206 -0
  49. secondshift/connections/migration_helpers.py +28 -0
  50. secondshift/connections/migrations/0001_initial.py +101 -0
  51. secondshift/connections/migrations/0002_alter_connection_kind.py +18 -0
  52. secondshift/connections/migrations/0003_require_approval.py +23 -0
  53. secondshift/connections/migrations/0004_new_connections_skip_approval.py +18 -0
  54. secondshift/connections/migrations/0005_agentconnection.py +36 -0
  55. secondshift/connections/migrations/0006_remove_is_default.py +23 -0
  56. secondshift/connections/migrations/0007_agent_last_check.py +18 -0
  57. secondshift/connections/migrations/0008_agentcredentialcleanup.py +25 -0
  58. secondshift/connections/migrations/0009_release_0_1_0b11.py +52 -0
  59. secondshift/connections/migrations/0010_connection_attribution.py +18 -0
  60. secondshift/connections/migrations/__init__.py +0 -0
  61. secondshift/connections/model_providers.py +441 -0
  62. secondshift/connections/models.py +246 -0
  63. secondshift/connections/outbound.py +317 -0
  64. secondshift/connections/repository_ref.py +19 -0
  65. secondshift/connections/schemas.py +313 -0
  66. secondshift/connections/serialization.py +100 -0
  67. secondshift/connections/services.py +94 -0
  68. secondshift/connections/tools.py +38 -0
  69. secondshift/connections/webhooks.py +107 -0
  70. secondshift/core/__init__.py +0 -0
  71. secondshift/core/adapters.py +38 -0
  72. secondshift/core/admin.py +5 -0
  73. secondshift/core/api.py +104 -0
  74. secondshift/core/apps.py +20 -0
  75. secondshift/core/launcher.py +311 -0
  76. secondshift/core/local_agents.py +90 -0
  77. secondshift/core/local_output.py +120 -0
  78. secondshift/core/management/__init__.py +0 -0
  79. secondshift/core/management/commands/__init__.py +0 -0
  80. secondshift/core/management/commands/bootstrap_dev.py +33 -0
  81. secondshift/core/management/commands/dev_reset_db.py +204 -0
  82. secondshift/core/management/commands/login.py +23 -0
  83. secondshift/core/management/commands/logs.py +58 -0
  84. secondshift/core/management/commands/status.py +46 -0
  85. secondshift/core/management/commands/up.py +244 -0
  86. secondshift/core/middleware.py +21 -0
  87. secondshift/core/migrations/__init__.py +0 -0
  88. secondshift/core/schemas.py +71 -0
  89. secondshift/core/signin.py +58 -0
  90. secondshift/core/static/core/account.css +149 -0
  91. secondshift/core/static/core/admin.css +135 -0
  92. secondshift/core/templatetags/__init__.py +0 -0
  93. secondshift/core/templatetags/accounts.py +20 -0
  94. secondshift/core/terminal.py +27 -0
  95. secondshift/core/views.py +10 -0
  96. secondshift/gateway/__init__.py +0 -0
  97. secondshift/gateway/apps.py +6 -0
  98. secondshift/gateway/dao.py +137 -0
  99. secondshift/gateway/metering.py +171 -0
  100. secondshift/gateway/migrations/0001_initial.py +54 -0
  101. secondshift/gateway/migrations/0002_modelusage_gateway_usage_created_at_idx.py +19 -0
  102. secondshift/gateway/migrations/__init__.py +0 -0
  103. secondshift/gateway/models.py +61 -0
  104. secondshift/gateway/pricing.py +39 -0
  105. secondshift/gateway/proxy.py +369 -0
  106. secondshift/gateway/tokens.py +68 -0
  107. secondshift/gateway/urls.py +17 -0
  108. secondshift/gateway/views.py +11 -0
  109. secondshift/github/__init__.py +6 -0
  110. secondshift/github/app.py +109 -0
  111. secondshift/github/authors.py +56 -0
  112. secondshift/github/credentials.py +59 -0
  113. secondshift/github/errors.py +2 -0
  114. secondshift/github/git.py +56 -0
  115. secondshift/github/identity.py +35 -0
  116. secondshift/github/installations.py +74 -0
  117. secondshift/github/issues.py +75 -0
  118. secondshift/github/permissions.py +49 -0
  119. secondshift/github/pulls.py +49 -0
  120. secondshift/github/repos.py +52 -0
  121. secondshift/github/rest.py +93 -0
  122. secondshift/github/ruff.toml +16 -0
  123. secondshift/github/tokens.py +52 -0
  124. secondshift/jobs/__init__.py +0 -0
  125. secondshift/jobs/access.py +12 -0
  126. secondshift/jobs/admin.py +83 -0
  127. secondshift/jobs/api.py +184 -0
  128. secondshift/jobs/apps.py +6 -0
  129. secondshift/jobs/automatic_grants.py +115 -0
  130. secondshift/jobs/autosync.py +78 -0
  131. secondshift/jobs/capabilities.py +43 -0
  132. secondshift/jobs/dao.py +258 -0
  133. secondshift/jobs/drafts.py +112 -0
  134. secondshift/jobs/grants.py +116 -0
  135. secondshift/jobs/limits.py +26 -0
  136. secondshift/jobs/management/__init__.py +0 -0
  137. secondshift/jobs/management/commands/__init__.py +0 -0
  138. secondshift/jobs/manifest.py +364 -0
  139. secondshift/jobs/migrations/0001_initial.py +87 -0
  140. secondshift/jobs/migrations/0002_job_history.py +18 -0
  141. secondshift/jobs/migrations/0003_job_skill_text.py +23 -0
  142. secondshift/jobs/migrations/0004_jobgrant_tool_rules.py +18 -0
  143. secondshift/jobs/migrations/0005_job_triggers.py +18 -0
  144. secondshift/jobs/migrations/0006_job_webhook.py +18 -0
  145. secondshift/jobs/migrations/0007_job_deliveries.py +23 -0
  146. secondshift/jobs/migrations/0008_job_removed_at.py +18 -0
  147. secondshift/jobs/migrations/0009_job_subagents.py +18 -0
  148. secondshift/jobs/migrations/0010_job_skill_source.py +18 -0
  149. secondshift/jobs/migrations/__init__.py +0 -0
  150. secondshift/jobs/models.py +199 -0
  151. secondshift/jobs/needs.py +154 -0
  152. secondshift/jobs/plan.py +176 -0
  153. secondshift/jobs/planning.py +386 -0
  154. secondshift/jobs/readiness.py +46 -0
  155. secondshift/jobs/repository_sync.py +199 -0
  156. secondshift/jobs/scheduling.py +26 -0
  157. secondshift/jobs/schemas.py +207 -0
  158. secondshift/jobs/serialization.py +218 -0
  159. secondshift/jobs/skill_needs.py +189 -0
  160. secondshift/jobs/sync.py +252 -0
  161. secondshift/jobs/tool_policy.py +82 -0
  162. secondshift/jobs/tool_rules.py +200 -0
  163. secondshift/mcp_server/__init__.py +6 -0
  164. secondshift/mcp_server/api.py +79 -0
  165. secondshift/mcp_server/apps.py +7 -0
  166. secondshift/mcp_server/audit.py +22 -0
  167. secondshift/mcp_server/core.py +12 -0
  168. secondshift/mcp_server/dao.py +23 -0
  169. secondshift/mcp_server/migrations/0001_initial.py +33 -0
  170. secondshift/mcp_server/migrations/__init__.py +0 -0
  171. secondshift/mcp_server/models.py +40 -0
  172. secondshift/mcp_server/schemas.py +204 -0
  173. secondshift/mcp_server/tools/__init__.py +9 -0
  174. secondshift/mcp_server/tools/jobs.py +106 -0
  175. secondshift/mcp_server/tools/manifests.py +127 -0
  176. secondshift/mcp_server/tools/repositories.py +42 -0
  177. secondshift/mcp_server/tools/runs.py +86 -0
  178. secondshift/mcp_server/tools/tasks.py +103 -0
  179. secondshift/mcp_server/tools_registry.py +81 -0
  180. secondshift/repositories/__init__.py +0 -0
  181. secondshift/repositories/access.py +13 -0
  182. secondshift/repositories/admin.py +19 -0
  183. secondshift/repositories/api.py +296 -0
  184. secondshift/repositories/apps.py +6 -0
  185. secondshift/repositories/dao.py +114 -0
  186. secondshift/repositories/external_skills.py +224 -0
  187. secondshift/repositories/github.py +27 -0
  188. secondshift/repositories/github_access.py +57 -0
  189. secondshift/repositories/github_check.py +279 -0
  190. secondshift/repositories/github_sync.py +181 -0
  191. secondshift/repositories/github_views.py +90 -0
  192. secondshift/repositories/local.py +198 -0
  193. secondshift/repositories/management/__init__.py +0 -0
  194. secondshift/repositories/management/commands/__init__.py +0 -0
  195. secondshift/repositories/management/commands/prune_source_cache.py +15 -0
  196. secondshift/repositories/migrations/0001_initial.py +45 -0
  197. secondshift/repositories/migrations/0002_repository_last_sync_error.py +18 -0
  198. secondshift/repositories/migrations/0003_repository_checked_sha.py +18 -0
  199. secondshift/repositories/migrations/0004_pull_request_settings.py +23 -0
  200. secondshift/repositories/migrations/0005_remove_repository_installation_id.py +17 -0
  201. secondshift/repositories/migrations/0006_allow_issues.py +18 -0
  202. secondshift/repositories/migrations/__init__.py +0 -0
  203. secondshift/repositories/mirrors.py +50 -0
  204. secondshift/repositories/models.py +104 -0
  205. secondshift/repositories/pull_requests.py +199 -0
  206. secondshift/repositories/schemas.py +102 -0
  207. secondshift/repositories/serialization.py +133 -0
  208. secondshift/repositories/skill_source.py +64 -0
  209. secondshift/repositories/snapshots.py +238 -0
  210. secondshift/repositories/sources.py +256 -0
  211. secondshift/repositories/status.py +67 -0
  212. secondshift/runner/README.md +65 -0
  213. secondshift/runner/__init__.py +1 -0
  214. secondshift/runner/agent_credentials.py +89 -0
  215. secondshift/runner/agent_image/Dockerfile +16 -0
  216. secondshift/runner/agent_image/agent.py +132 -0
  217. secondshift/runner/agent_image/claude.py +254 -0
  218. secondshift/runner/agent_image/codex.py +84 -0
  219. secondshift/runner/agent_image/outcomes.py +120 -0
  220. secondshift/runner/agent_image/subagent_hook.py +71 -0
  221. secondshift/runner/agent_protocol.py +41 -0
  222. secondshift/runner/agents.py +254 -0
  223. secondshift/runner/api.py +123 -0
  224. secondshift/runner/apps.py +6 -0
  225. secondshift/runner/client.py +168 -0
  226. secondshift/runner/collection.py +276 -0
  227. secondshift/runner/dao.py +64 -0
  228. secondshift/runner/dev.py +19 -0
  229. secondshift/runner/images.py +57 -0
  230. secondshift/runner/migrations/0001_initial.py +48 -0
  231. secondshift/runner/migrations/0002_session_source_sha256.py +18 -0
  232. secondshift/runner/migrations/0003_session_collect_changes.py +18 -0
  233. secondshift/runner/migrations/0004_session_history_sha256.py +18 -0
  234. secondshift/runner/migrations/0005_require_source_sha256.py +18 -0
  235. secondshift/runner/migrations/0006_session_skill_sha256.py +18 -0
  236. secondshift/runner/migrations/__init__.py +0 -0
  237. secondshift/runner/models.py +53 -0
  238. secondshift/runner/protocol.py +97 -0
  239. secondshift/runner/schemas.py +36 -0
  240. secondshift/runner/services.py +465 -0
  241. secondshift/runner/sources.py +130 -0
  242. secondshift/runner/urls.py +7 -0
  243. secondshift/runs/__init__.py +0 -0
  244. secondshift/runs/access.py +13 -0
  245. secondshift/runs/admin.py +89 -0
  246. secondshift/runs/api.py +211 -0
  247. secondshift/runs/apps.py +11 -0
  248. secondshift/runs/artifacts.py +261 -0
  249. secondshift/runs/dao.py +640 -0
  250. secondshift/runs/deliveries.py +80 -0
  251. secondshift/runs/execution/__init__.py +0 -0
  252. secondshift/runs/execution/access_needs.py +89 -0
  253. secondshift/runs/execution/agent.py +91 -0
  254. secondshift/runs/execution/agent_broker.py +198 -0
  255. secondshift/runs/execution/budgets.py +177 -0
  256. secondshift/runs/execution/cli_agent.py +167 -0
  257. secondshift/runs/execution/consent.py +58 -0
  258. secondshift/runs/execution/deadlines.py +47 -0
  259. secondshift/runs/execution/external_tools.py +84 -0
  260. secondshift/runs/execution/issues.py +99 -0
  261. secondshift/runs/execution/model_gateway.py +90 -0
  262. secondshift/runs/execution/payload.py +63 -0
  263. secondshift/runs/execution/result.py +59 -0
  264. secondshift/runs/execution/run.py +345 -0
  265. secondshift/runs/execution/subagents.py +246 -0
  266. secondshift/runs/execution/tool_broker.py +123 -0
  267. secondshift/runs/execution/workspace_tools.py +248 -0
  268. secondshift/runs/history.py +182 -0
  269. secondshift/runs/inputs.py +49 -0
  270. secondshift/runs/issue_delivery.py +144 -0
  271. secondshift/runs/management/__init__.py +0 -0
  272. secondshift/runs/management/commands/__init__.py +0 -0
  273. secondshift/runs/management/commands/prune_runs.py +12 -0
  274. secondshift/runs/management/commands/run_dbos_worker.py +129 -0
  275. secondshift/runs/migration_helpers.py +313 -0
  276. secondshift/runs/migrations/0001_initial.py +69 -0
  277. secondshift/runs/migrations/0002_run_started_by.py +18 -0
  278. secondshift/runs/migrations/0003_agentlease.py +25 -0
  279. secondshift/runs/migrations/0004_task_assignment.py +39 -0
  280. secondshift/runs/migrations/0005_backfill_tasks.py +19 -0
  281. secondshift/runs/migrations/0006_standalone_tasks.py +50 -0
  282. secondshift/runs/migrations/0007_run_delivery.py +35 -0
  283. secondshift/runs/migrations/0008_run_outputs.py +18 -0
  284. secondshift/runs/migrations/0009_pull_request_delivery.py +28 -0
  285. secondshift/runs/migrations/0010_run_issue.py +32 -0
  286. secondshift/runs/migrations/0011_issues_delivery.py +23 -0
  287. secondshift/runs/migrations/0012_alter_rundelivery_status.py +18 -0
  288. secondshift/runs/migrations/0013_release_0_1_0b11.py +113 -0
  289. secondshift/runs/migrations/0014_run_access_need.py +30 -0
  290. secondshift/runs/migrations/__init__.py +0 -0
  291. secondshift/runs/models.py +340 -0
  292. secondshift/runs/orchestration/__init__.py +0 -0
  293. secondshift/runs/orchestration/admission.py +15 -0
  294. secondshift/runs/orchestration/dbos_runtime.py +43 -0
  295. secondshift/runs/orchestration/dispatch.py +130 -0
  296. secondshift/runs/orchestration/periodic.py +39 -0
  297. secondshift/runs/orchestration/reconciliation.py +98 -0
  298. secondshift/runs/orchestration/schedules.py +51 -0
  299. secondshift/runs/orchestration/workflows.py +480 -0
  300. secondshift/runs/outputs.py +52 -0
  301. secondshift/runs/publishing.py +162 -0
  302. secondshift/runs/queue.py +26 -0
  303. secondshift/runs/reporting/__init__.py +0 -0
  304. secondshift/runs/reporting/collection.py +26 -0
  305. secondshift/runs/reporting/connection_usage.py +45 -0
  306. secondshift/runs/reporting/failures.py +150 -0
  307. secondshift/runs/reporting/health.py +158 -0
  308. secondshift/runs/reporting/notifications.py +258 -0
  309. secondshift/runs/reporting/queries.py +60 -0
  310. secondshift/runs/retention.py +35 -0
  311. secondshift/runs/schemas.py +192 -0
  312. secondshift/runs/serialization.py +245 -0
  313. secondshift/runs/services.py +176 -0
  314. secondshift/runs/signals.py +25 -0
  315. secondshift/runs/submissions.py +236 -0
  316. secondshift/runs/transitions.py +84 -0
  317. secondshift/templates/account/password_reset_help_text.html +1 -0
  318. secondshift/templates/admin/base_site.html +24 -0
  319. secondshift/templates/allauth/elements/provider.html +9 -0
  320. secondshift/templates/allauth/layouts/base.html +67 -0
  321. secondshift/templates/socialaccount/snippets/login.html +9 -0
  322. secondshift/templates/workspaces/invite_unusable.html +10 -0
  323. secondshift/triggers/__init__.py +0 -0
  324. secondshift/triggers/admin.py +19 -0
  325. secondshift/triggers/api.py +116 -0
  326. secondshift/triggers/apps.py +6 -0
  327. secondshift/triggers/dao.py +66 -0
  328. secondshift/triggers/filters.py +48 -0
  329. secondshift/triggers/migrations/0001_initial.py +55 -0
  330. secondshift/triggers/migrations/0002_ignored_events_and_hourly_limit.py +23 -0
  331. secondshift/triggers/migrations/__init__.py +0 -0
  332. secondshift/triggers/models.py +83 -0
  333. secondshift/triggers/schemas.py +58 -0
  334. secondshift/triggers/serialization.py +91 -0
  335. secondshift/triggers/services.py +246 -0
  336. secondshift/triggers/verification.py +84 -0
  337. secondshift/web/assets/index-Bwy0hvk_.js +2419 -0
  338. secondshift/web/assets/index-D27gB9_L.css +1 -0
  339. secondshift/web/favicon.svg +19 -0
  340. secondshift/web/index.html +16 -0
  341. secondshift/web/secondshift-mark.svg +16 -0
  342. secondshift/workspaces/__init__.py +0 -0
  343. secondshift/workspaces/access.py +181 -0
  344. secondshift/workspaces/admin.py +37 -0
  345. secondshift/workspaces/api.py +264 -0
  346. secondshift/workspaces/apps.py +6 -0
  347. secondshift/workspaces/context_processors.py +11 -0
  348. secondshift/workspaces/dao.py +281 -0
  349. secondshift/workspaces/invites.py +150 -0
  350. secondshift/workspaces/limits.py +197 -0
  351. secondshift/workspaces/management/__init__.py +0 -0
  352. secondshift/workspaces/management/commands/__init__.py +0 -0
  353. secondshift/workspaces/management/commands/create_workspace.py +39 -0
  354. secondshift/workspaces/migrations/0001_initial.py +67 -0
  355. secondshift/workspaces/migrations/0002_api_token.py +34 -0
  356. secondshift/workspaces/migrations/0003_execution_default.py +29 -0
  357. secondshift/workspaces/migrations/0004_copy_default_model_key.py +26 -0
  358. secondshift/workspaces/migrations/__init__.py +0 -0
  359. secondshift/workspaces/models.py +169 -0
  360. secondshift/workspaces/owners.py +58 -0
  361. secondshift/workspaces/schemas.py +149 -0
  362. secondshift/workspaces/serialization.py +138 -0
  363. secondshift/workspaces/server_settings.py +140 -0
  364. secondshift/workspaces/services.py +94 -0
  365. secondshift/workspaces/tokens.py +108 -0
  366. secondshift/workspaces/views.py +32 -0
  367. secondshift-0.1.0b12.dist-info/METADATA +270 -0
  368. secondshift-0.1.0b12.dist-info/RECORD +371 -0
  369. secondshift-0.1.0b12.dist-info/WHEEL +4 -0
  370. secondshift-0.1.0b12.dist-info/entry_points.txt +2 -0
  371. secondshift-0.1.0b12.dist-info/licenses/LICENSE +202 -0
@@ -0,0 +1,2419 @@
1
+ (function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function e(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var t={},n=[],r=()=>{},i=()=>!1,a=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),o=e=>e.startsWith(`onUpdate:`),s=Object.assign,c=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},l=Object.prototype.hasOwnProperty,u=(e,t)=>l.call(e,t),d=Array.isArray,f=e=>x(e)===`[object Map]`,p=e=>x(e)===`[object Set]`,m=e=>x(e)===`[object Date]`,h=e=>typeof e==`function`,g=e=>typeof e==`string`,_=e=>typeof e==`symbol`,v=e=>typeof e==`object`&&!!e,y=e=>(v(e)||h(e))&&h(e.then)&&h(e.catch),b=Object.prototype.toString,x=e=>b.call(e),S=e=>x(e).slice(8,-1),C=e=>x(e)===`[object Object]`,w=e=>g(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,T=e(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),ee=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},te=/-\w/g,E=ee(e=>e.replace(te,e=>e.slice(1).toUpperCase())),ne=/\B([A-Z])/g,D=ee(e=>e.replace(ne,`-$1`).toLowerCase()),re=ee(e=>e.charAt(0).toUpperCase()+e.slice(1)),ie=ee(e=>e?`on${re(e)}`:``),O=(e,t)=>!Object.is(e,t),ae=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},oe=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},se=e=>{let t=parseFloat(e);return isNaN(t)?e:t},ce=e=>{let t=g(e)?Number(e):NaN;return isNaN(t)?e:t},le,ue=()=>le||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function de(e){if(d(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=g(r)?he(r):de(r);if(i)for(let e in i)t[e]=i[e]}return t}if(g(e)||v(e))return e}var fe=/;(?![^(]*\))/g,pe=/:([^]+)/,me=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function he(e){let t={};return e.replace(me,e=>e.startsWith(`/*`)?``:e).split(fe).forEach(e=>{if(e){let n=e.split(pe);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function k(e){let t=``;if(g(e))t=e;else if(d(e))for(let n=0;n<e.length;n++){let r=k(e[n]);r&&(t+=r+` `)}else if(v(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}function ge(e){if(!e)return null;let{class:t,style:n}=e;return t&&!g(t)&&(e.class=k(t)),n&&(e.style=de(n)),e}var _e=e(`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly`);function ve(e){return!!e||e===``}function ye(e,t,n){if(e.length!==t.length)return!1;let r=!0;for(let i=0;r&&i<e.length;i++)r=Ce(e[i],t[i],n);return r}function be(e,t,n){if(e.size!==t.size)return!1;let r=Array.from(t),i=new Uint8Array(r.length);for(let t of e){let e=-1;for(let a=0;a<r.length;a++)if(!i[a]&&Ce(t,r[a],n)){e=a;break}if(e<0)return!1;i[e]=1}return!0}function xe(e,t,n){let r=f(e),i=f(t);if(r||i||(r=p(e),i=p(t),r||i))return r&&i?be(e,t,n):!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e){let i=e.hasOwnProperty(r),a=t.hasOwnProperty(r);if(i&&!a||!i&&a||!Ce(e[r],t[r],n))return!1}return String(e)===String(t)}function Se(e,t,n,r){n||=[new Map,new Map];let[i,a]=n;if(i.has(e)||a.has(t))return i.get(e)===t&&a.get(t)===e;i.set(e,t),a.set(t,e);let o=r(e,t,n);return i.delete(e),a.delete(t),o}function Ce(e,t,n){if(e===t)return!0;let r=m(e),i=m(t);return r||i?r&&i?e.getTime()===t.getTime():!1:(r=_(e),i=_(t),r||i?e===t:(r=d(e),i=d(t),r||i?r&&i?Se(e,t,n,ye):!1:(r=v(e),i=v(t),r||i?!r||!i?!1:Se(e,t,n,xe):String(e)===String(t))))}function we(e,t){return e.findIndex(e=>Ce(e,t))}var Te=e=>!!(e&&e.__v_isRef===!0),A=e=>g(e)?e:e==null?``:d(e)||v(e)&&(e.toString===b||!h(e.toString))?Te(e)?A(e.value):JSON.stringify(e,Ee,2):String(e),Ee=(e,t)=>Te(t)?Ee(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[De(t,r)+` =>`]=n,e),{})}:p(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>De(e))}:_(t)?De(t):v(t)&&!d(t)&&!C(t)?String(t):t,De=(e,t=``)=>_(e)?`Symbol(${e.description??t})`:e,Oe,ke=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&Oe&&(Oe.active?(this.parent=Oe,this.index=(Oe.scopes||(Oe.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}let n=this.effects.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}}run(e){if(this._active){let t=Oe;try{return Oe=this,e()}finally{Oe=t}}}on(){++this._on===1&&(this.prevScope=Oe,Oe=this)}off(){if(this._on>0&&--this._on===0){if(Oe===this)Oe=this.prevScope;else{let e=Oe;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){let e=this.scopes.slice();for(t=0,n=e.length;t<n;t++)e[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function Ae(e){return new ke(e)}function je(){return Oe}function Me(e,t=!1){Oe&&Oe.cleanups.push(e)}var Ne,Pe=new WeakSet,Fe=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Oe&&(Oe.active?Oe.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Pe.has(this)&&(Pe.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ze(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Qe(this),He(this);let e=Ne,t=Je;Ne=this,Je=!0;try{return this.fn()}finally{Ue(this),Ne=e,Je=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Ke(e);this.deps=this.depsTail=void 0,Qe(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Pe.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){We(this)&&this.run()}get dirty(){return We(this)}},Ie=0,Le,Re;function ze(e,t=!1){e.flags|=8,t?(e.next=Re,Re=e):(e.next=Le,Le=e)}function Be(){Ie++}function Ve(){if(--Ie>0)return;if(Re){let e=Re;for(Re=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Le;){let t=Le;for(Le=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function He(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ue(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),Ke(r),qe(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function We(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ge(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ge(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===$e)||(e.globalVersion=$e,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!We(e))))return;e.flags|=2;let t=e.dep,n=Ne,r=Je;Ne=e,Je=!0;try{He(e);let n=e.fn(e._value);(t.version===0||O(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{Ne=n,Je=r,Ue(e),e.flags&=-3}}function Ke(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)Ke(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function qe(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var Je=!0,Ye=[];function Xe(){Ye.push(Je),Je=!1}function Ze(){let e=Ye.pop();Je=e===void 0||e}function Qe(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=Ne;Ne=void 0;try{t()}finally{Ne=e}}}var $e=0,et=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},tt=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!Ne||!Je||Ne===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==Ne)t=this.activeLink=new et(Ne,this),Ne.deps?(t.prevDep=Ne.depsTail,Ne.depsTail.nextDep=t,Ne.depsTail=t):Ne.deps=Ne.depsTail=t,nt(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=Ne.depsTail,t.nextDep=void 0,Ne.depsTail.nextDep=t,Ne.depsTail=t,Ne.deps===t&&(Ne.deps=e)}return t}trigger(e){this.version++,$e++,this.notify(e)}notify(e){Be();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Ve()}}};function nt(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)nt(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var rt=new WeakMap,it=Symbol(``),at=Symbol(``),ot=Symbol(``);function st(e,t,n){if(Je&&Ne){let t=rt.get(e);t||rt.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new tt),r.map=t,r.key=n),r.track()}}function ct(e,t,n,r,i,a){let o=rt.get(e);if(!o){$e++;return}let s=e=>{e&&e.trigger()};if(Be(),t===`clear`)o.forEach(s);else{let i=d(e),a=i&&w(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===ot||!_(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(ot)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(it)),f(e)&&s(o.get(at)));break;case`delete`:i||(s(o.get(it)),f(e)&&s(o.get(at)));break;case`set`:f(e)&&s(o.get(it))}}Ve()}function lt(e,t){let n=rt.get(e);return n&&n.get(t)}function ut(e){let t=Qt(e);return t===e||(st(t,`iterate`,ot),Xt(e))?t:Yt(e)?Jt(e)?t.map(e=>tn(en(e))):t.map(tn):t.map(en)}function dt(e){return st(e=Qt(e),`iterate`,ot),e}function ft(e,t){return Yt(e)?tn(Jt(e)?en(t):t):en(t)}var pt={__proto__:null,[Symbol.iterator](){return mt(this,Symbol.iterator,e=>ft(this,e))},concat(...e){return ut(this).concat(...e.map(e=>d(e)?ut(e):e))},entries(){return mt(this,`entries`,e=>(e[1]=ft(this,e[1]),e))},every(e,t){return _t(this,`every`,e,t,void 0,arguments)},filter(e,t){return _t(this,`filter`,e,t,e=>e.map(e=>ft(this,e)),arguments)},find(e,t){return _t(this,`find`,e,t,e=>ft(this,e),arguments)},findIndex(e,t){return _t(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return _t(this,`findLast`,e,t,e=>ft(this,e),arguments)},findLastIndex(e,t){return _t(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return _t(this,`forEach`,e,t,void 0,arguments)},includes(...e){return yt(this,`includes`,e)},indexOf(...e){return yt(this,`indexOf`,e)},join(e){return ut(this).join(e)},lastIndexOf(...e){return yt(this,`lastIndexOf`,e)},map(e,t){return _t(this,`map`,e,t,void 0,arguments)},pop(){return bt(this,`pop`)},push(...e){return bt(this,`push`,e)},reduce(e,...t){return vt(this,`reduce`,e,t)},reduceRight(e,...t){return vt(this,`reduceRight`,e,t)},shift(){return bt(this,`shift`)},some(e,t){return _t(this,`some`,e,t,void 0,arguments)},splice(...e){return bt(this,`splice`,e)},toReversed(){return ut(this).toReversed()},toSorted(e){return ut(this).toSorted(e)},toSpliced(...e){return ut(this).toSpliced(...e)},unshift(...e){return bt(this,`unshift`,e)},values(){return mt(this,`values`,e=>ft(this,e))}};function mt(e,t,n){let r=dt(e),i=r[t],a=i.call(r);if(r!==e&&!Xt(e)){if(a[Symbol.toStringTag]===`Array Iterator`){let e=Object.create(Object.getPrototypeOf(a));return e.next=()=>ht(a.next(),n),i!==gt[t]&&Object.defineProperties(e,{return:{get(){let e=a.return;return typeof e==`function`?e.bind(a):e}},throw:{get(){let e=a.throw;return typeof e==`function`?e.bind(a):e}}}),e}a._next=a.next,a.next=()=>ht(a._next(),n)}return a}function ht(e,t){return e.done||(e.value=t(e.value)),e}var gt=Array.prototype;function _t(e,t,n,r,i,a){let o=dt(e),s=o!==e&&!Xt(e),c=o[t];if(c!==gt[t]){let t=c.apply(e,a);return s?en(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,ft(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function vt(e,t,n,r){let i=dt(e),a=i!==e&&!Xt(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=ft(e,t)),n.call(this,t,ft(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?ft(e,c):c}function yt(e,t,n){let r=Qt(e);st(r,`iterate`,ot);let i=r[t](...n);return(i===-1||i===!1)&&Zt(n[0])?(n[0]=Qt(n[0]),r[t](...n)):i}function bt(e,t,n=[]){Xe(),Be();let r=Qt(e)[t].apply(e,n);return Ve(),Ze(),r}var xt=e(`__proto__,__v_isRef,__isVue`),St=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(_));function Ct(e){_(e)||(e=String(e));let t=Qt(this);return st(t,`has`,e),t.hasOwnProperty(e)}var wt=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Ht:Vt:i?Bt:zt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=d(e);if(!r){let e;if(a&&(e=pt[t]))return e;if(t===`hasOwnProperty`)return Ct}let o=Reflect.get(e,t,nn(e)?e:n);if((_(t)?St.has(t):xt(t))||(r||st(e,`get`,t),i))return o;if(nn(o)){let e=a&&w(t)?o:o.value;return r&&v(e)?Kt(e):e}return v(o)?r?Kt(o):Wt(o):o}},Tt=class extends wt{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=d(e)&&w(t);if(!this._isShallow){let e=Yt(i);if(!Xt(n)&&!Yt(n)&&(i=Qt(i),n=Qt(n)),!a&&nn(i)&&!nn(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:u(e,t),s=Reflect.set(e,t,n,nn(e)?e:r);return e===Qt(r)&&s&&(o?O(n,i)&&ct(e,`set`,t,n,i):ct(e,`add`,t,n)),s}deleteProperty(e,t){let n=u(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&ct(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!_(t)||!St.has(t))&&st(e,`has`,t),n}ownKeys(e){return st(e,`iterate`,d(e)?`length`:it),Reflect.ownKeys(e)}},Et=class extends wt{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},Dt=new Tt,Ot=new Et,kt=new Tt(!0),At=e=>e,jt=e=>Reflect.getPrototypeOf(e);function Mt(e,t,n){return function(...r){let i=this.__v_raw,a=Qt(i),o=f(a),c=e===`entries`||e===Symbol.iterator&&o,l=e===`keys`&&o,u=i[e](...r),d=n?At:t?tn:en;return!t&&st(a,`iterate`,l?at:it),s(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function Nt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Pt(e,t){let n={get(n){let r=this.__v_raw,i=Qt(r),a=Qt(n);e||(O(n,a)&&st(i,`get`,n),st(i,`get`,a));let{has:o}=jt(i),s=t?At:e?tn:en;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&st(Qt(t),`iterate`,it),t.size},has(t){let n=this.__v_raw,r=Qt(n),i=Qt(t);return e||(O(t,i)&&st(r,`has`,t),st(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=Qt(a),s=t?At:e?tn:en;return!e&&st(o,`iterate`,it),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return s(n,e?{add:Nt(`add`),set:Nt(`set`),delete:Nt(`delete`),clear:Nt(`clear`)}:{add(e){let n=Qt(this),r=jt(n),i=Qt(e),a=!t&&!Xt(e)&&!Yt(e)?i:e;return r.has.call(n,a)||O(e,a)&&r.has.call(n,e)||O(i,a)&&r.has.call(n,i)||(n.add(a),ct(n,`add`,a,a)),this},set(e,n){!t&&!Xt(n)&&!Yt(n)&&(n=Qt(n));let r=Qt(this),{has:i,get:a}=jt(r),o=i.call(r,e);o||=(e=Qt(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?O(n,s)&&ct(r,`set`,e,n,s):ct(r,`add`,e,n),this},delete(e){let t=Qt(this),{has:n,get:r}=jt(t),i=n.call(t,e);i||=(e=Qt(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&ct(t,`delete`,e,void 0,a),o},clear(){let e=Qt(this),t=e.size!==0,n=e.clear();return t&&ct(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Mt(r,e,t)}),n}function Ft(e,t){let n=Pt(e,t);return(r,i,a)=>i===`__v_isReactive`?!e:i===`__v_isReadonly`?e:i===`__v_isShallow`?t:i===`__v_raw`?r:Reflect.get(u(n,i)&&i in r?n:r,i,a)}var It={get:Ft(!1,!1)},Lt={get:Ft(!1,!0)},Rt={get:Ft(!0,!1)},zt=new WeakMap,Bt=new WeakMap,Vt=new WeakMap,Ht=new WeakMap;function Ut(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Wt(e){return Yt(e)?e:qt(e,!1,Dt,It,zt)}function Gt(e){return qt(e,!1,kt,Lt,Bt)}function Kt(e){return qt(e,!0,Ot,Rt,Vt)}function qt(e,t,n,r,i){if(!v(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=Ut(S(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function Jt(e){return Yt(e)?Jt(e.__v_raw):!!(e&&e.__v_isReactive)}function Yt(e){return!!(e&&e.__v_isReadonly)}function Xt(e){return!!(e&&e.__v_isShallow)}function Zt(e){return e?!!e.__v_raw:!1}function Qt(e){let t=e&&e.__v_raw;return t?Qt(t):e}function $t(e){return!u(e,`__v_skip`)&&Object.isExtensible(e)&&oe(e,`__v_skip`,!0),e}var en=e=>v(e)?Wt(e):e,tn=e=>v(e)?Kt(e):e;function nn(e){return e?e.__v_isRef===!0:!1}function j(e){return an(e,!1)}function rn(e){return an(e,!0)}function an(e,t){return nn(e)?e:new on(e,t)}var on=class{constructor(e,t){this.dep=new tt,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:Qt(e),this._value=t?e:en(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||Xt(e)||Yt(e);e=n?e:Qt(e),O(e,t)&&(this._rawValue=e,this._value=n?e:en(e),this.dep.trigger())}};function M(e){return nn(e)?e.value:e}var sn={get:(e,t,n)=>t===`__v_raw`?e:M(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return nn(i)&&!nn(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function cn(e){return Jt(e)?e:new Proxy(e,sn)}var ln=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new tt,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}};function un(e){return new ln(e)}function dn(e){let t=d(e)?Array(e.length):{};for(let n in e)t[n]=hn(e,n);return t}var fn=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=_(t)?t:String(t),this._raw=Qt(e);let r=!0,i=e;if(!d(e)||_(this._key)||!w(this._key))do r=!Zt(i)||Xt(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=M(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&nn(this._raw[this._key])){let t=this._object[this._key];if(nn(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return lt(this._raw,this._key)}},pn=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function mn(e,t,n){return nn(e)?e:h(e)?new pn(e):v(e)&&arguments.length>1?hn(e,t,n):j(e)}function hn(e,t,n){return new fn(e,t,n)}var gn=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new tt(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=$e-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Ne!==this)return ze(this,!0),!0}get value(){let e=this.dep.track();return Ge(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function _n(e,t,n=!1){let r,i;return h(e)?r=e:(r=e.get,i=e.set),new gn(r,i,n)}var vn={},yn=new WeakMap,bn=void 0;function xn(e,t=!1,n=bn){if(n){let t=yn.get(n);t||yn.set(n,t=[]),t.push(e)}}function Sn(e,n,i=t){let{immediate:a,deep:o,once:s,scheduler:l,augmentJob:u,call:f}=i,p=e=>o?e:Xt(e)||o===!1||o===0?Cn(e,1):Cn(e),m,g,_,v,y=!1,b=!1;if(nn(e)?(g=()=>e.value,y=Xt(e)):Jt(e)?(g=()=>p(e),y=!0):d(e)?(b=!0,y=e.some(e=>Jt(e)||Xt(e)),g=()=>e.map(e=>{if(nn(e))return e.value;if(Jt(e))return p(e);if(h(e))return f?f(e,2):e()})):g=h(e)?n?f?()=>f(e,2):e:()=>{if(_){Xe();try{_()}finally{Ze()}}let t=bn;bn=m;try{return f?f(e,3,[v]):e(v)}finally{bn=t}}:r,n&&o){let e=g,t=o===!0?1/0:o;g=()=>Cn(e(),t)}let x=je(),S=()=>{m.stop(),x&&x.active&&c(x.effects,m)};if(s&&n){let e=n;n=(...t)=>{try{return e(...t)}finally{S()}}}let C=b?Array(e.length).fill(vn):vn,w=e=>{if(m.flags&1&&(m.dirty||e)){if(n){let t=m.run();if(e||o||y||(b?t.some((e,t)=>O(e,C[t])):O(t,C))){let e=bn;Xe();try{_&&_(),bn=m;let e=[t,C===vn?void 0:b&&C[0]===vn?[]:C,v];C=t,f?f(n,3,e):n(...e)}finally{bn=e,Ze()}}}else m.run()}};return u&&u(w),m=new Fe(g),m.scheduler=l?()=>l(w,!1):w,v=e=>xn(e,!1,m),_=m.onStop=()=>{let e=yn.get(m);if(e){if(f)f(e,4);else for(let t of e)t();yn.delete(m)}},n?a?w(!0):C=m.run():l?l(w.bind(null,!0),!0):m.run(),S.pause=m.pause.bind(m),S.resume=m.resume.bind(m),S.stop=S,S}function Cn(e,t=1/0,n){if(t<=0||!v(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,nn(e))Cn(e.value,t,n);else if(d(e))for(let r=0;r<e.length;r++)Cn(e[r],t,n);else if(p(e)||f(e))e.forEach(e=>{Cn(e,t,n)});else if(C(e)){for(let r in e)Cn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Cn(e[r],t,n)}return e}function wn(e,t,n,r){try{return r?e(...r):e()}catch(e){En(e,t,n)}}function Tn(e,t,n,r){if(h(e)){let i=wn(e,t,n,r);return i&&y(i)&&i.catch(e=>{En(e,t,n)}),i}if(d(e)){let i=[];for(let a=0;a<e.length;a++)i.push(Tn(e[a],t,n,r));return i}}function En(e,n,r,i=!0){let a=n?n.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=n&&n.appContext.config||t;if(n){let t=n.parent,i=n.proxy,a=`https://vuejs.org/error-reference/#runtime-${r}`;for(;t;){let n=t.ec;if(n){for(let t=0;t<n.length;t++)if(n[t](e,i,a)===!1)return}t=t.parent}if(o){Xe(),wn(o,null,10,[e,i,a]),Ze();return}}Dn(e,r,a,i,s)}function Dn(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var On=[],kn=-1,An=[],jn=null,Mn=0,Nn=Promise.resolve(),Pn=null;function Fn(e){let t=Pn||Nn;return e?t.then(this?e.bind(this):e):t}function In(e){let t=kn+1,n=On.length;for(;t<n;){let r=t+n>>>1,i=On[r],a=Wn(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function Ln(e){if(!(e.flags&1)){let t=Wn(e),n=On[On.length-1];!n||!(e.flags&2)&&t>=Wn(n)?On.push(e):On.splice(In(t),0,e),e.flags|=1,Rn()}}function Rn(){Pn||=Nn.then(Gn)}function zn(e){if(!d(e))jn&&e.id===-1?jn.splice(Mn+1,0,e):e.flags&1||(An.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)An.push(e[t]);Rn()}function Bn(e,t,n,r=kn+1){for(;r<On.length;r++){let n=On[r];if(n&&n.flags&2){if(e&&n.id!==e.uid||t!==void 0&&!(n.id>=t))continue;On.splice(r,1),r=e?r-1:kn,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Vn(e,t,n=0){if(An.length){let e=An,r=0;if(t){e=[];for(let i=0;i<An.length;i++){let a=An[i];(a.i===void 0?t.has(a):!a.i||a.i.uid<n)?An[r++]=a:e.push(a)}}let i=[...new Set(e)].sort((e,t)=>Wn(e)-Wn(t));if(An.length=r,jn){for(let e=0;e<i.length;e++)jn.push(i[e]);return}for(jn=i,Mn=0;Mn<jn.length;Mn++){let e=jn[Mn];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}jn=null,Mn=0}}var Hn=!1;function Un(e,t){if(Hn){e();return}let n=t===void 0?void 0:new Set(An);e(),Hn=!0;try{Bn(void 0,t),Vn(void 0,n,t)}finally{Hn=!1}}var Wn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Gn(e){try{for(kn=0;kn<On.length;kn++){let e=On[kn];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),wn(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;kn<On.length;kn++){let e=On[kn];e&&(e.flags&=-2)}kn=-1,On.length=0,Vn(e),Pn=null,(On.length||An.length)&&Gn(e)}}var Kn=null,qn=null;function Jn(e){let t=Kn;return Kn=e,qn=e&&e.type.__scopeId||null,t}function N(e,t=Kn,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&za(-1);let i=Jn(t),a=Fa.length,o;try{o=e(...n)}finally{for(let e=Fa.length;e>a;e--)La();Jn(i),r._d&&za(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Yn(e,n){if(Kn===null)return e;let r=_o(Kn),i=e.dirs||=[];for(let e=0;e<n.length;e++){let[a,o,s,c=t]=n[e];a&&(h(a)&&(a={mounted:a,updated:a}),a.deep&&Cn(o),i.push({dir:a,instance:r,value:o,oldValue:void 0,arg:s,modifiers:c}))}return e}function Xn(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&(Xe(),Tn(c,n,8,[e.el,s,e,t]),Ze())}}function Zn(e,t){if(no){let n=no.provides,r=no.parent&&no.parent.provides;r===n&&(n=no.provides=Object.create(r)),n[e]=t}}function Qn(e,t,n=!1){let r=ro();if(r||Bi){let i=Bi?Bi._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&h(t)?t.call(r&&r.proxy):t}}function $n(){return!!(ro()||Bi)}var er=Symbol.for(`v-scx`),tr=()=>Qn(er);function nr(e,t){return ir(e,null,{flush:`sync`})}function rr(e,t,n){return ir(e,t,n)}function ir(e,n,i=t){let{immediate:a,deep:o,flush:c,once:l}=i,u=s({},i),d=n&&a||!n&&c!==`post`,f;if(lo){if(c===`sync`){let e=tr();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=r,e.resume=r,e.pause=r,e}}let p=no;u.call=(e,t,n)=>Tn(e,p,t,n);let m=!1;c===`post`?u.scheduler=e=>{e.i=p,ya(e,p&&p.suspense)}:c!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():Ln(e)}),u.augmentJob=e=>{n&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=Sn(e,n,u);return lo&&(f?f.push(h):d&&h()),h}function ar(e,t,n){let r=this.proxy,i=g(e)?e.includes(`.`)?or(r,e):()=>r[e]:e.bind(r,r),a;h(t)?a=t:(a=t.handler,n=t);let o=oo(this),s=ir(i,a.bind(r),n);return o(),s}function or(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}var sr=new WeakMap,cr=Symbol(`_vte`),lr=e=>e.__isTeleport,ur=e=>e&&(e.disabled||e.disabled===``),dr=e=>e&&(e.defer||e.defer===``),fr=e=>typeof SVGElement<`u`&&e instanceof SVGElement,pr=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,mr=(e,t)=>{let n=e&&e.to;return g(n)?t?t(n):null:n},hr={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g,parentNode:_}}=l,v=ur(t.props),{dynamicChildren:y}=t,b=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},x=(e=t)=>{let n=ur(e.props),r=e.target=mr(e.props,m),a=br(r,e,h,p);r&&(o!==`svg`&&fr(r)?o=`svg`:o!==`mathml`&&pr(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),yr(e,!1)))},S=e=>{let t=()=>{if(sr.get(e)===t){if(sr.delete(e),ur(e.props)){let t=_(e.el)||n;b(e,t,e.anchor),yr(e,!0)}x(e)}};sr.set(e,t),ya(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),dr(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),yr(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=sr.get(e);if(u){u.flags|=8,sr.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=ur(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||fr(p)?o=`svg`:(o===`mathml`||pr(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),Ta(e,t,!0)):c||d(e,t,_,b,i,a,o,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):gr(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=mr(t.props,m);e&&(t.target=e,gr(t,e,null,l,0))}else g&&gr(t,p,h,l,1);yr(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=ur(f),m=a||!p,h=sr.get(e);if(h&&(h.flags|=8,sr.delete(e)),d&&(i(l),i(u)),a&&i(c),!h&&(p||d)&&o&16)for(let e=0;e<s.length;e++){let i=s[e];r(i,t,n,m,!!i.dynamicChildren)}},move:gr,hydrate:_r};function gr(e,t,n,{o:{insert:r},m:i},a=2){a===0&&(e.targetStart&&r(e.targetStart,t,n),r(e.targetAnchor,t,n),n=e.targetAnchor);let{el:o,anchor:s,shapeFlag:c,children:l,props:u}=e,d=a===2;if(d&&r(o,t,n),!sr.has(e)&&(!d||ur(u))&&c&16)for(let e=0;e<l.length;e++)i(l[e],t,n,2);d&&r(s,t,n)}function _r(e,t,n,r,i,a,{o:{nextSibling:o,parentNode:s,querySelector:c,insert:l,createText:u}},d){function f(e,n){let r=n;for(;r;){if(r&&r.nodeType===8){if(r.data===`teleport start anchor`)t.targetStart=r;else if(r.data===`teleport anchor`){t.targetAnchor=r,e._lpa=t.targetAnchor&&o(t.targetAnchor);break}}r=o(r)}}function p(e,t){t.anchor=d(o(e),t,s(e),n,r,i,a)}let m=t.target=mr(t.props,c),h=ur(t.props);if(m){let c=m._lpa||m.firstChild;t.shapeFlag&16&&(h?(p(e,t),f(m,c),t.targetAnchor||br(m,t,u,l,s(e)===m?e:null)):(t.anchor=o(e),f(m,c),t.targetAnchor||br(m,t,u,l),d(c&&o(c),t,m,n,r,i,a))),yr(t,h)}else h&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}var vr=hr;function yr(e,t){let n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute(`data-v-owner`,n.uid),r=r.nextSibling;n.ut()}}function br(e,t,n,r,i=null){let a=t.targetStart=n(``),o=t.targetAnchor=n(``);return a[cr]=o,e&&(r(a,e,i),r(o,e,i)),o}var xr=Symbol(`_leaveCb`),Sr=Symbol(`_enterCb`);function Cr(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Zr(()=>{e.isMounted=!0}),ei(()=>{e.isUnmounting=!0}),e}var wr=[Function,Array],Tr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:wr,onEnter:wr,onAfterEnter:wr,onEnterCancelled:wr,onBeforeLeave:wr,onLeave:wr,onAfterLeave:wr,onLeaveCancelled:wr,onBeforeAppear:wr,onAppear:wr,onAfterAppear:wr,onAppearCancelled:wr},Er={name:`BaseTransition`,props:Tr,setup(e,{slots:t}){let n=ro(),r=Cr();return()=>{let i=t.default&&Pr(t.default(),!0),a=i&&i.length?Dr(i):n.subTree?G():void 0;if(!a)return;let o=Qt(e),{mode:s}=o;if(r.isLeaving)return jr(a);let c=Mr(a);if(!c)return jr(a);let l=Ar(c,o,r,n,e=>l=e);c.type!==Na&&Nr(c,l);let u=n.subTree&&Mr(n.subTree);if(u&&u.type!==Na&&!Ha(u,c)&&Fr(n.subTree)){let e=Ar(u,o,r,n);if(Nr(u,e),s===`out-in`&&c.type!==Na)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},jr(a);s===`in-out`&&c.type!==Na?e.delayLeave=(e,t,n)=>{let i=kr(r,u);i[String(u.key)]=u,e[xr]=()=>{t(),e[xr]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function Dr(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==Na){t=n;break}}return t}var Or=Er;function kr(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ar(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:p,onLeave:m,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:_,onAppear:v,onAfterAppear:y,onAppearCancelled:b}=t,x=String(e.key),S=kr(n,e),C=(e,t)=>{e&&Tn(e,r,9,t)},w=(e,t)=>{let n=t[1];C(e,t),d(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},T={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted){if(a)r=_||c;else return}t[xr]&&t[xr](!0);let i=S[x];if(i&&Ha(e,i)){let e=i.el[xr];if(!e){let t=Fr(i);e=t&&t.el[xr]}e&&e()}C(r,[t])},enter(t){if(S[x]===e)return;let r=l,i=u,o=f;if(!n.isMounted){if(a)r=v||l,i=y||u,o=b||f;else return}let s=!1;t[Sr]=e=>{s||(s=!0,C(e?o:i,[t]),T.delayedLeave&&T.delayedLeave(),t[Sr]=void 0)};let c=t[Sr].bind(null,!1);r?w(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[Sr]&&t[Sr](!0),n.isUnmounting)return r();C(p,[t]);let a=!1;t[xr]=n=>{a||(a=!0,r(),C(n?g:h,[t]),t[xr]=void 0,S[i]===e&&delete S[i])};let o=t[xr].bind(null,!1);S[i]=e,m?w(m,[t,o]):o()},clone(e){let a=Ar(e,t,n,r,i);return i&&i(a),a}};return T}function jr(e){if(Ur(e))return e=qa(e),e.children=null,e}function Mr(e){if(!Ur(e))return lr(e.type)&&e.children?Dr(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&h(n.default))return n.default()}}function Nr(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;Nr(lr(n.type)&&Mr(n)||n,t)}else if(e.shapeFlag&128)e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback);else if(e.transition=t,e.type===R&&d(e.children)){let n=Ji(e.children,!1);n&&Nr(n,t)}}function Pr(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a],s=n==null?o.key:String(n)+String(o.key==null?a:o.key);o.type===R?(o.patchFlag&128&&i++,r=r.concat(Pr(o.children,t,s))):(t||o.type!==Na)&&r.push(s==null?o:qa(o,{key:s}))}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function Fr(e){if(e.component)return Fr(e.component.subTree);if(e.type===R){let t=d(e.children)&&Ji(e.children,!1);return t?Fr(t):void 0}if(e.type!==Na)return e}function P(e,t){return h(e)?s({name:e.name},t,{setup:e}):e}function Ir(){let e=ro();return e?(e.appContext.config.idPrefix||`v`)+`-`+e.ids[0]+e.ids[1]++:``}function Lr(e){e.ids=[e.ids[0]+e.ids[2]+++`-`,0,0]}function Rr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var zr=new WeakMap;function Br(e,n,r,a,o=!1){if(d(e)){e.forEach((e,t)=>Br(e,n&&(d(n)?n[t]:n),r,a,o));return}if(Hr(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&Br(e,n,r,a.component.subTree);return}let s=a.shapeFlag&4?_o(a.component):a.el,l=o?null:s,{i:f,r:p}=e,m=n&&n.r,_=f.refs===t?f.refs={}:f.refs,v=f.setupState,y=Qt(v),b=v===t?i:e=>!Rr(_,e)&&u(y,e),x=(e,t)=>!(t&&Rr(_,t));if(m!=null&&m!==p){if(Vr(n),g(m))_[m]=null,b(m)&&(v[m]=null);else if(nn(m)){let e=n;x(m,e.k)&&(m.value=null),e.k&&(_[e.k]=null)}}if(h(p))wn(p,f,12,[l,_]);else{let t=g(p),n=nn(p);if(t||n){let i=()=>{if(e.f){let n=t?b(p)?v[p]:_[p]:x(p)||!e.k?p.value:_[e.k];if(o)d(n)&&c(n,s);else if(d(n))n.includes(s)||n.push(s);else if(t)_[p]=[s],b(p)&&(v[p]=_[p]);else{let t=[s];x(p,e.k)&&(p.value=t),e.k&&(_[e.k]=t)}}else t?(_[p]=l,b(p)&&(v[p]=l)):n&&(x(p,e.k)&&(p.value=l),e.k&&(_[e.k]=l))};if(l){let t=()=>{i(),zr.delete(e)};t.id=-1,zr.set(e,t),ya(t,r)}else Vr(e),i()}}}function Vr(e){let t=zr.get(e);t&&(t.flags|=8,zr.delete(e))}ue().requestIdleCallback,ue().cancelIdleCallback;var Hr=e=>!!e.type.__asyncLoader,Ur=e=>e.type.__isKeepAlive;function Wr(e,t){Kr(e,`a`,t)}function Gr(e,t){Kr(e,`da`,t)}function Kr(e,t,n=no){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(Jr(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Ur(e.parent.vnode)&&qr(r,t,n,e),e=e.parent}}function qr(e,t,n,r){let i=Jr(t,e,r,!0);ti(()=>{c(r[t],i)},n)}function Jr(e,t,n=no,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{Xe();let i=oo(n),a=Tn(t,n,e,r);return i(),Ze(),a};return r?i.unshift(a):i.push(a),a}}var Yr=e=>(t,n=no)=>{(!lo||e===`sp`)&&Jr(e,(...e)=>t(...e),n)},Xr=Yr(`bm`),Zr=Yr(`m`),Qr=Yr(`bu`),$r=Yr(`u`),ei=Yr(`bum`),ti=Yr(`um`),ni=Yr(`sp`),ri=Yr(`rtg`),ii=Yr(`rtc`);function ai(e,t=no){Jr(`ec`,e,t)}var oi=`components`,si=`directives`;function F(e,t){return di(oi,e,!0,t)||e}var ci=Symbol.for(`v-ndc`);function li(e){return g(e)?di(oi,e,!1)||e:e||ci}function ui(e){return di(si,e)}function di(e,t,n=!0,r=!1){let i=Kn||no;if(i){let n=i.type;if(e===oi){let e=vo(n,!1);if(e&&(e===t||e===E(t)||e===re(E(t))))return n}let a=fi(i[e]||n[e],t)||fi(i.appContext[e],t);return!a&&r?n:a}}function fi(e,t){return e&&(e[t]||e[E(t)]||e[re(E(t))])}function I(e,t,n,r){let i,a=n&&n[r],o=d(e);if(o||g(e)){let n=o&&Jt(e),r=!1,s=!1;n&&(r=!Xt(e),s=Yt(e),e=dt(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?tn(en(e[n])):en(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){if(!Number.isInteger(e)||e<0)i=[];else{i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}}else if(v(e)){if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}}else i=[];return n&&(n[r]=i),i}function pi(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(d(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function L(e,t,n,r,i,a){if(n??={},Kn.ce||Kn.parent&&Hr(Kn.parent)&&Kn.parent.ce){let e=a!=null&&n.key==null?s({},n,{key:a}):n,i=Object.keys(e).length>0;return t!=="default"&&(e.name=t),z(),V(R,null,[U(`slot`,e,r&&r())],i?-2:64)}let o=e[t];o&&o._c&&(o._d=!1);let c=Fa.length;z();let l;try{let i=o&&mi(o(n)),s=n.key||a||i&&i.key;l=V(R,{key:(s&&!_(s)?s:`_${t}`)+(!i&&r?`_fb`:``)},i||(r?r():[]),i&&e._===1?64:-2)}catch(e){for(let e=Fa.length;e>c;e--)La();throw e}finally{o&&o._c&&(o._d=!0)}return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+`-s`]),l}function mi(e){return e.some(e=>!Va(e)||!(e.type===Na||e.type===R&&!mi(e.children)))?e:null}function hi(e,t){let n={};for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:ie(r)]=e[r];return n}var gi=e=>e?co(e)?_o(e):gi(e.parent):null,_i=s(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>gi(e.parent),$root:e=>gi(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Di(e),$forceUpdate:e=>e.f||=()=>{Ln(e.update)},$nextTick:e=>e.n||=Fn.bind(e.proxy),$watch:e=>ar.bind(e)}),vi=(e,n)=>e!==t&&!e.__isScriptSetup&&u(e,n),yi={get({_:e},n){if(n===`__v_skip`)return!0;let{ctx:r,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(n[0]!==`$`){let e=s[n];if(e!==void 0)switch(e){case 1:return i[n];case 2:return a[n];case 4:return r[n];case 3:return o[n]}else if(vi(i,n))return s[n]=1,i[n];else if(a!==t&&u(a,n))return s[n]=2,a[n];else if(u(o,n))return s[n]=3,o[n];else if(r!==t&&u(r,n))return s[n]=4,r[n];else Si&&(s[n]=0)}let d=_i[n],f,p;if(d)return n===`$attrs`&&st(e.attrs,`get`,``),d(e);if((f=c.__cssModules)&&(f=f[n]))return f;if(r!==t&&u(r,n))return s[n]=4,r[n];if(p=l.config.globalProperties,u(p,n))return p[n]},set({_:e},n,r){let{data:i,setupState:a,ctx:o}=e;return vi(a,n)?(a[n]=r,!0):i!==t&&u(i,n)?(i[n]=r,!0):u(e.props,n)||n[0]===`$`&&n.slice(1)in e?!1:(o[n]=r,!0)},has({_:{data:e,setupState:n,accessCache:r,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(r[c]||e!==t&&c[0]!==`$`&&u(e,c)||vi(n,c)||u(o,c)||u(i,c)||u(_i,c)||u(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?u(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function bi(e){return d(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function xi(e,t){return!e||!t?e||t:d(e)&&d(t)?e.concat(t):s({},bi(e),bi(t))}var Si=!0;function Ci(e){let t=Di(e),n=e.proxy,i=e.ctx;Si=!1,t.beforeCreate&&Ti(t.beforeCreate,e,`bc`);let{data:a,computed:o,methods:s,watch:c,provide:l,inject:u,created:f,beforeMount:p,mounted:m,beforeUpdate:g,updated:_,activated:y,deactivated:b,beforeDestroy:x,beforeUnmount:S,destroyed:C,unmounted:w,render:T,renderTracked:ee,renderTriggered:te,errorCaptured:E,serverPrefetch:ne,expose:D,inheritAttrs:re,components:ie,directives:O,filters:ae}=t;if(u&&wi(u,i,null),s)for(let e in s){let t=s[e];h(t)&&(i[e]=t.bind(n))}if(a){let t=a.call(n,n);v(t)&&(e.data=Wt(t))}if(Si=!0,o)for(let e in o){let t=o[e],a=q({get:h(t)?t.bind(n,n):h(t.get)?t.get.bind(n,n):r,set:!h(t)&&h(t.set)?t.set.bind(n):r});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(c)for(let e in c)Ei(c[e],i,n,e);if(l){let e=h(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{Zn(t,e[t])})}f&&Ti(f,e,`c`);function oe(e,t){d(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(oe(Xr,p),oe(Zr,m),oe(Qr,g),oe($r,_),oe(Wr,y),oe(Gr,b),oe(ai,E),oe(ii,ee),oe(ri,te),oe(ei,S),oe(ti,w),oe(ni,ne),d(D)){if(D.length){let t=e.exposed||={};D.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={}}T&&e.render===r&&(e.render=T),re!=null&&(e.inheritAttrs=re),ie&&(e.components=ie),O&&(e.directives=O),ne&&Lr(e)}function wi(e,t,n=r){d(e)&&(e=Mi(e));for(let n in e){let r=e[n],i;i=v(r)?`default`in r?Qn(r.from||n,r.default,!0):Qn(r.from||n):Qn(r),nn(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function Ti(e,t,n){Tn(d(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ei(e,t,n,r){let i=r.includes(`.`)?or(n,r):()=>n[r];if(g(e)){let n=t[e];h(n)&&rr(i,n)}else if(h(e))rr(i,e.bind(n));else if(v(e)){if(d(e))e.forEach(e=>Ei(e,t,n,r));else{let r=h(e.handler)?e.handler.bind(n):t[e.handler];h(r)&&rr(i,r,e)}}}function Di(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>Oi(c,e,o,!0)),Oi(c,t,o)),v(t)&&a.set(t,c),c}function Oi(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Oi(e,a,n,!0),i&&i.forEach(t=>Oi(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=ki[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var ki={data:Ai,props:Fi,emits:Fi,methods:Pi,computed:Pi,beforeCreate:Ni,created:Ni,beforeMount:Ni,mounted:Ni,beforeUpdate:Ni,updated:Ni,beforeDestroy:Ni,beforeUnmount:Ni,destroyed:Ni,unmounted:Ni,activated:Ni,deactivated:Ni,errorCaptured:Ni,serverPrefetch:Ni,components:Pi,directives:Pi,watch:Ii,provide:Ai,inject:ji};function Ai(e,t){return t?e?function(){return s(h(e)?e.call(this,this):e,h(t)?t.call(this,this):t)}:t:e}function ji(e,t){return Pi(Mi(e),Mi(t))}function Mi(e){if(d(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ni(e,t){return e?[...new Set([].concat(e,t))]:t}function Pi(e,t){return e?s(Object.create(null),e,t):t}function Fi(e,t){return e?d(e)&&d(t)?[...new Set([...e,...t])]:s(Object.create(null),bi(e),bi(t??{})):t}function Ii(e,t){if(!e)return t;if(!t)return e;let n=s(Object.create(null),e);for(let r in t)n[r]=Ni(e[r],t[r]);return n}function Li(){return{app:null,config:{isNativeTag:i,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var Ri=0;function zi(e,t){return function(n,r=null){h(n)||(n=s({},n)),r!=null&&!v(r)&&(r=null);let i=Li(),a=new WeakSet,o=[],c=!1,l=i.app={_uid:Ri++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:xo,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&h(e.install)?(a.add(e),e.install(l,...t)):h(e)&&(a.add(e),e(l,...t))),l},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),l},component(e,t){return t?(i.components[e]=t,l):i.components[e]},directive(e,t){return t?(i.directives[e]=t,l):i.directives[e]},mount(a,o,s){if(!c){let u=l._ceVNode||U(n,r);return u.appContext=i,s===!0?s=`svg`:s===!1&&(s=void 0),o&&t?t(u,a):e(u,a,s),c=!0,l._container=a,a.__vue_app__=l,_o(u.component)}},onUnmount(e){o.push(e)},unmount(){c&&(Tn(o,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide(e,t){return i.provides[e]=t,l},runWithContext(e){let t=Bi;Bi=l;try{return e()}finally{Bi=t}}};return l}}var Bi=null;function Vi(e,n,r=t){let i=ro(),a=E(n),o=D(n),s=Hi(e,a),c=un((s,c)=>{let l,u=t,d;return nr(()=>{let t=e[a];O(l,t)&&(l=t,c())}),{get(){return s(),r.get?r.get(l):l},set(e){let s=r.set?r.set(e):e;if(!O(s,l)&&!(u!==t&&O(e,u)))return;let f=i.vnode.props,p=!!(f&&(n in f||a in f||o in f)&&(`onUpdate:${n}`in f||`onUpdate:${a}`in f||`onUpdate:${o}`in f));p||(l=e,c()),i.emit(`update:${n}`,s),O(e,u)&&(O(e,s)&&!O(s,d)||p&&u!==t&&!O(s,l))&&c(),u=e,d=s}}});return c[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?s||t:c,done:!1}:{done:!0}}}},c}var Hi=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${E(t)}Modifiers`]||e[`${D(t)}Modifiers`];function Ui(e,n,...r){if(e.isUnmounted)return;let i=e.vnode.props||t,a=r,o=n.startsWith(`update:`),s=o&&Hi(i,n.slice(7));s&&(s.trim&&(a=r.map(e=>g(e)?e.trim():e)),s.number&&(a=a.map(se)));let c,l=i[c=ie(n)]||i[c=ie(E(n))];!l&&o&&(l=i[c=ie(D(n))]),l&&Tn(l,e,6,a);let u=i[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Tn(u,e,6,a)}}var Wi=new WeakMap;function Gi(e,t,n=!1){let r=n?Wi:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},c=!1;if(!h(e)){let r=e=>{let n=Gi(e,t,!0);n&&(c=!0,s(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!c?(v(e)&&r.set(e,null),null):(d(a)?a.forEach(e=>o[e]=null):s(o,a),v(e)&&r.set(e,o),o)}function Ki(e,t){return!e||!a(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),u(e,t[0].toLowerCase()+t.slice(1))||u(e,D(t))||u(e,t))}function qi(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:s,attrs:c,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=Jn(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=Ja(u.call(t,e,d,f,m,p,h)),y=c}else{let e=t;v=Ja(e.length>1?e(f,{attrs:c,slots:s,emit:l}):e(f,null)),y=t.props?c:Yi(c)}}catch(t){Fa.length=0,En(t,e,1),v=U(Na)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(o)&&(y=Xi(y,a)),b=qa(b,y,!1,!0))}return n.dirs&&(b=qa(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&Nr(lr(b.type)&&Mr(b)||b,n.transition),v=b,Jn(_),v}function Ji(e,t=!0){let n;for(let t=0;t<e.length;t++){let r=e[t];if(Va(r)){if(r.type!==Na||r.children===`v-if`){if(n)return;n=r}}else return}return n}var Yi=e=>{let t;for(let n in e)(n===`class`||n===`style`||a(n))&&((t||={})[n]=e[n]);return t},Xi=(e,t)=>{let n={};for(let r in e)(!o(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Zi(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Qi(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if($i(o,r,n)&&!Ki(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?!o||Qi(r,o,l):!!o;return!1}function Qi(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(!u(e,a)||$i(t,e,a)&&!Ki(n,a))return!0}return!1}function $i(e,t,n){let r=e[n],i=t[n];return n===`style`&&v(r)&&v(i)?!Ce(r,i):r!==i}function ea({vnode:e,parent:t,suspense:n},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}var ta={},na=()=>Object.create(ta),ra=e=>Object.getPrototypeOf(e)===ta;function ia(e,t,n,r=!1){let i={},a=na();e.propsDefaults=Object.create(null),oa(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:Gt(i):e.type.props?i:a,e.attrs=a}function aa(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=Qt(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(Ki(e.emitsOptions,o))continue;let d=t[o];if(c){if(u(a,o))d!==a[o]&&(a[o]=d,l=!0);else{let t=E(o);i[t]=sa(c,s,t,d,e,!1)}}else d!==a[o]&&(a[o]=d,l=!0)}}}else{oa(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!u(t,a)&&((r=D(a))===a||!u(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=sa(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!u(t,e))&&(delete a[e],l=!0)}l&&ct(e.attrs,`set`,``)}function oa(e,n,r,i){let[a,o]=e.propsOptions,s=!1,c;if(n)for(let t in n){if(T(t))continue;let l=n[t],d;a&&u(a,d=E(t))?!o||!o.includes(d)?r[d]=l:(c||={})[d]=l:Ki(e.emitsOptions,t)||(!(t in i)||l!==i[t])&&(i[t]=l,s=!0)}if(o){let n=Qt(r),i=c||t;for(let t=0;t<o.length;t++){let s=o[t];r[s]=sa(a,n,s,i[s],e,!u(i,s))}}return s}function sa(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=u(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&h(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=oo(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===D(n))&&(r=!0))}return r}var ca=new WeakMap;function la(e,r,i=!1){let a=i?ca:r.propsCache,o=a.get(e);if(o)return o;let c=e.props,l={},f=[],p=!1;if(!h(e)){let t=e=>{p=!0;let[t,n]=la(e,r,!0);s(l,t),n&&f.push(...n)};!i&&r.mixins.length&&r.mixins.forEach(t),e.extends&&t(e.extends),e.mixins&&e.mixins.forEach(t)}if(!c&&!p)return v(e)&&a.set(e,n),n;if(d(c))for(let e=0;e<c.length;e++){let n=E(c[e]);ua(n)&&(l[n]=t)}else if(c)for(let e in c){let t=E(e);if(ua(t)){let n=c[e],r=l[t]=d(n)||h(n)?{type:n}:s({},n),i=r.type,a=!1,o=!0;if(d(i))for(let e=0;e<i.length;++e){let t=i[e],n=h(t)&&t.name;if(n===`Boolean`){a=!0;break}n===`String`&&(o=!1)}else a=h(i)&&i.name===`Boolean`;r[0]=a,r[1]=o,(a||u(r,`default`))&&f.push(t)}}let m=[l,f];return v(e)&&a.set(e,m),m}function ua(e){return e[0]!==`$`&&!T(e)}var da=e=>e===`_`||e===`_ctx`||e===`$stable`,fa=e=>d(e)?e.map(Ja):[Ja(e)],pa=(e,t,n)=>{if(t._n)return t;let r=N((...e)=>fa(t(...e)),n);return r._c=!1,r},ma=(e,t,n)=>{let r=e._ctx;for(let n in e){if(da(n))continue;let i=e[n];if(h(i))t[n]=pa(n,i,r);else if(i!=null){let e=fa(i);t[n]=()=>e}}},ha=(e,t)=>{let n=fa(t);e.slots.default=()=>n},ga=(e,t,n)=>{for(let r in t)(n||!da(r))&&(e[r]=t[r])},_a=(e,t,n)=>{let r=e.slots=na();if(e.vnode.shapeFlag&32){let e=t._;e?(ga(r,t,n),n&&oe(r,`_`,e,!0)):ma(t,r)}else t&&ha(e,t)},va=(e,n,r)=>{let{vnode:i,slots:a}=e,o=!0,s=t;if(i.shapeFlag&32){let e=n._;e?r&&e===1?o=!1:ga(a,n,r):(o=!n.$stable,ma(n,a)),s=n}else n&&(ha(e,n),s={default:1});if(o)for(let e in a)!da(e)&&s[e]==null&&delete a[e]},ya=ja;function ba(e){return xa(e)}function xa(e,i){let a=ue();a.__VUE__=!0;let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=r,insertStaticContent:_}=e,v=(e,t,r,i=null,a=null,o=null,s=void 0,c=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!Ha(e,t)&&(i=ye(e),he(e,a,o,!0),e=null),t.patchFlag===-2&&(l=!1,t.dynamicChildren=null),t.dynamicChildren&&e&&e.dynamicChildren&&e.dynamicChildren.hasOnce&&(t.dynamicChildren===n&&(t.dynamicChildren=[]),t.dynamicChildren.hasOnce=!0);let{type:u,ref:d,shapeFlag:f}=t;switch(u){case Ma:y(e,t,r,i);break;case Na:b(e,t,r,i);break;case Pa:e??x(t,r,i,s);break;case R:ie(e,t,r,i,a,o,s,c,l);break;default:f&1?w(e,t,r,i,a,o,s,c,l):f&6?O(e,t,r,i,a,o,s,c,l):(f&64||f&128)&&u.process(e,t,r,i,a,o,s,c,l,xe)}d!=null&&a?Br(d,e&&e.ref,o,t||e,!t):d==null&&e&&e.ref!=null&&Br(e.ref,null,o,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)ee(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),ne(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},ee=(e,t,n,r,i,a,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,a,m&&m.is,m),h&8?p(d,e.children):h&16&&E(e.children,d,null,r,i,Sa(e,a),s,u),_&&Xn(e,null,r,`created`),te(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!T(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&Za(f,r,e)}_&&Xn(e,null,r,`beforeMount`);let v=wa(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&ya(()=>{try{f&&Za(f,r,e),v&&g.enter(d),_&&Xn(e,null,r,`mounted`)}finally{}},i)},te=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t<r.length;t++)g(e,r[t]);if(i){let n=i.subTree;if(t===n||Aa(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;te(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},E=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++){let c=e[l]=s?Ya(e[l]):Ja(e[l]);v(null,c,t,n,r,i,a,o,s)}},ne=(e,n,r,i,a,o,s)=>{let l=n.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=n;u|=e.patchFlag&16;let m=e.props||t,h=n.props||t,g;if(r&&Ca(r,!1),(g=h.onVnodeBeforeUpdate)&&Za(g,r,n,e),f&&Xn(n,e,r,`beforeUpdate`),r&&Ca(r,!0),d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length)&&(u=0,s=!1,d=null),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?D(e.dynamicChildren,d,l,r,i,Sa(n,a),o):s||de(e,n,l,null,r,i,Sa(n,a),o,!1),u>0){if(u&16)re(l,m,h,r,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=n.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t],i=m[n],o=h[n];(o!==i||n===`value`)&&c(l,n,i,o,a,r)}}u&1&&e.children!==n.children&&p(l,n.children)}else!s&&d==null&&re(l,m,h,r,a);((g=h.onVnodeUpdated)||f)&&ya(()=>{g&&Za(g,r,n,e),f&&Xn(n,e,r,`updated`)},i)},D=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s],u=c.el||ka(c),d=u&&(c.type===R||!Ha(c,l)||c.shapeFlag&198)?m(u):n;v(c,l,d,null,r,i,a,o,!0)}},re=(e,n,r,i,a)=>{if(n!==r){if(n!==t)for(let t in n)!T(t)&&!(t in r)&&c(e,t,n[t],null,a,i);for(let t in r){if(T(t))continue;let o=r[t],s=n[t];o!==s&&t!==`value`&&c(e,t,s,o,a,i)}`value`in r&&c(e,`value`,n.value,r.value,a)}},ie=(e,t,n,r,i,a,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(o(d,n,r),o(f,n,r),E(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(D(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&Ta(e,t,!0)):de(e,t,n,f,i,a,s,c,l)},O=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):oe(t,n,r,i,a,o,c):se(e,t,c)},oe=(e,t,n,r,i,a,o)=>{let s=e.component=to(e,r,i);if(Ur(e)&&(s.ctx.renderer=xe),uo(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,ce,o,a),!e.el){let r=s.subTree=U(Na);b(null,r,t,n),e.placeholder=r.el}}else ce(s,e,t,n,i,a,o)},se=(e,t,n)=>{let r=t.component=e.component;if(Zi(e,t,n)){if(r.asyncDep&&!r.asyncResolved){t.el=e.el,t.placeholder=e.placeholder,le(r,t,n);return}r.next=t,r.update()}else t.el=e.el,t.placeholder=e.placeholder,r.vnode=t},ce=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=Da(e);if(n){t&&(t.el=c.el,le(e,t,o)),n.asyncDep.then(()=>{ya(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;Ca(e,!1),t?(t.el=c.el,le(e,t,o)):t=c,n&&ae(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Za(d,s,t,c),Ca(e,!0);let f=qi(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),ye(p),e,i,a),t.el=f.el,u===null&&ea(e,f.el),r&&ya(r,i),(d=t.props&&t.props.onVnodeUpdated)&&ya(()=>Za(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Hr(t);if(Ca(e,!1),l&&ae(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Za(o,d,t),Ca(e,!0),s&&Ce){let t=()=>{e.subTree=qi(e),Ce(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=qi(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&ya(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;ya(()=>Za(o,d,e),i)}(t.shapeFlag&256||d&&Hr(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&ya(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Fe(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>Ln(u),Ca(e,!0),l()},le=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,aa(e,t.props,r,n),va(e,t.children,n),Xe(),Bn(e),Ze()},de=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){pe(l,d,n,r,i,a,o,s,c);return}if(f&256){fe(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&ve(l,i,a),d!==l&&p(n,d)):u&16?m&16?pe(l,d,n,r,i,a,o,s,c):ve(l,i,a,!0):(u&8&&p(n,``),m&16&&E(d,n,r,i,a,o,s,c))},fe=(e,t,r,i,a,o,s,c,l)=>{e||=n,t||=n;let u=e.length,d=t.length,f=Math.min(u,d),p=0;for(;p<f;p++){let n=t[p]=l?Ya(t[p]):Ja(t[p]);v(e[p],n,r,null,a,o,s,c,l)}u>d?ve(e,a,o,!0,!1,f):E(t,r,i,a,o,s,c,l,f)},pe=(e,t,r,i,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let n=e[u],i=t[u]=l?Ya(t[u]):Ja(t[u]);if(Ha(n,i))v(n,i,r,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let n=e[f],i=t[p]=l?Ya(t[p]):Ja(t[p]);if(Ha(n,i))v(n,i,r,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,n=e<d?t[e].el:i;for(;u<=p;)v(null,t[u]=l?Ya(t[u]):Ja(t[u]),r,n,a,o,s,c,l),u++}}else if(u>p)for(;u<=f;)he(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?Ya(t[u]):Ja(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u<b;u++)C[u]=0;for(u=m;u<=f;u++){let n=e[u];if(y>=b){he(n,a,o,!0);continue}let i;if(n.key!=null)i=g.get(n.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&Ha(n,t[_])){i=_;break}i===void 0?he(n,a,o,!0):(C[i-h]=u+1,i>=S?S=i:x=!0,v(n,t[i],r,null,a,o,s,c,l),y++)}let w=x?Ea(C):n;for(_=w.length-1,u=b-1;u>=0;u--){let e=h+u,n=t[e],f=t[e+1],p=e+1<d?f.el||ka(f):i;C[u]===0?v(null,n,r,p,a,o,s,c,l):x&&(_<0||u!==w[_]?me(n,r,p,2):_--)}}},me=(e,t,n,r,i=null)=>{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6)me(e.component.subTree,t,n,r);else if(d&128)e.suspense.move(t,n,r);else if(d&64)c.move(e,t,n,xe);else if(c===R){o(a,t,n);for(let e=0;e<u.length;e++)me(u[e],t,n,r);o(e.anchor,t,n)}else if(c===Pa)S(e,t,n);else if(r!==2&&d&1&&l){if(r===0)l.persisted&&!a[xr]?o(a,t,n):(l.beforeEnter(a),o(a,t,n),ya(()=>l.enter(a),i));else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{let e=a._isLeaving||!!a[xr];a._isLeaving&&a[xr](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}}else o(a,t,n)},he=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if((d===-2||l&&l.hasOnce)&&(i=!1),s!=null&&(Xe(),Br(s,null,n,e,!0),Ze()),p!=null&&(!e.ctx||e.ctx===t)&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!Hr(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&Za(_,t,e),u&6)_e(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Xn(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,xe,r):l&&!l.hasOnce&&(a!==R||d>0&&d&64)?ve(l,t,n,!1,!0):(a===R&&d&384||!i&&u&16)&&ve(c,t,n),r&&k(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&ya(()=>{_&&Za(_,t,e),h&&Xn(e,null,t,`unmounted`),v&&(e.el=null)},n)},k=e=>{let{type:t,el:n,anchor:r,transition:i}=e,a=t===R;if(a&&!i){ge(n,r);return}if(t===Pa){C(e),i&&!i.persisted&&i.afterLeave&&i.afterLeave();return}let o=a?Fr(e):e,c=()=>{a?m(n)&&ge(n,r):s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(o&&o.shapeFlag&1&&i&&!i.persisted){let{leave:e,delayLeave:t}=i,n=o.el,r=()=>e(n,c);t?t(n,c,r):r()}else c()},ge=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},_e=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;Oa(c),Oa(l),r&&ae(r),i.stop(),a?(a.flags|=8,he(o,e,t,n)):e.vnode.el&&o&&(o.transition=e.vnode.transition,he(o,e,t,n)),s&&ya(s,t),ya(()=>{e.isUnmounted=!0},t)},ve=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)he(e[o],t,n,r,i)},ye=e=>{if(e.shapeFlag&6)return ye(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[cr];return n?h(n):t},be=(e,t,n)=>{Un(()=>{e==null?t._vnode&&he(t._vnode,null,null,!0):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e},e&&t._vnode?void 0:e&&e.component?e.component.uid:eo())},xe={p:v,um:he,m:me,r:k,mt:oe,mc:E,pc:de,pbc:D,n:ye,o:e},Se,Ce;return i&&([Se,Ce]=i(xe)),{render:be,hydrate:Se,createApp:zi(be,Se)}}function Sa({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function Ca({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function wa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ta(e,t,n=!1){let r=e.children,i=t.children;if(d(r)&&d(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=Ya(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&Ta(t,a)),a.type===Ma&&(a.patchFlag===-1&&(a=i[e]=Ya(a)),a.el=t.el),a.type===Na&&!a.el&&(a.el=t.el)}}function Ea(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function Da(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Da(t)}function Oa(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ka(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?ka(t.subTree):null}var Aa=e=>e.__isSuspense;function ja(e,t){t&&t.pendingBranch?d(e)?t.effects.push(...e):t.effects.push(e):zn(e)}var R=Symbol.for(`v-fgt`),Ma=Symbol.for(`v-txt`),Na=Symbol.for(`v-cmt`),Pa=Symbol.for(`v-stc`),Fa=[],Ia=null;function z(e=!1){Fa.push(Ia=e?null:[])}function La(){Fa.pop(),Ia=Fa[Fa.length-1]||null}var Ra=1;function za(e,t=!1){Ra+=e,e<0&&Ia&&t&&(Ia.hasOnce=!0)}function Ba(e){return e.dynamicChildren=Ra>0?Ia||n:null,La(),Ra>0&&Ia&&Ia.push(e),e}function B(e,t,n,r,i,a){return Ba(H(e,t,n,r,i,a,!0))}function V(e,t,n,r,i){return Ba(U(e,t,n,r,i,!0))}function Va(e){return e?e.__v_isVNode===!0:!1}function Ha(e,t){return e.type===t.type&&e.key===t.key}var Ua=({key:e})=>e??null,Wa=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:g(e)||nn(e)||h(e)?{i:Kn,r:e,k:t,f:!!n}:e);function H(e,t=null,n=null,r=0,i=null,a=e===R?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ua(t),ref:t&&Wa(t),scopeId:qn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Kn};return s?(Xa(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=g(n)?8:16),Ra>0&&!o&&Ia&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Ia.push(c),c}var U=Ga;function Ga(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===ci)&&(e=Na),Va(e)){let r=qa(e,t,!0);return n&&Xa(r,n),Ra>0&&!a&&Ia&&(r.shapeFlag&6?Ia[Ia.indexOf(e)]=r:Ia.push(r)),r.patchFlag=-2,r}if(yo(e)&&(e=e.__vccOpts),t){t=Ka(t);let{class:e,style:n}=t;e&&!g(e)&&(t.class=k(e)),v(n)&&(Zt(n)&&!d(n)&&(n=s({},n)),t.style=de(n))}let o=g(e)?1:Aa(e)?128:lr(e)?64:v(e)?4:h(e)?2:0;return H(e,t,n,r,i,o,a,!0)}function Ka(e){return e?Zt(e)||ra(e)?s({},e):e:null}function qa(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?K(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Ua(l),ref:t&&t.ref?n&&a?d(a)?a.concat(Wa(t)):[a,Wa(t)]:Wa(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==R?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&qa(e.ssContent),ssFallback:e.ssFallback&&qa(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return c&&r&&Nr(u,c.clone(u)),u}function W(e=` `,t=0){return U(Ma,null,e,t)}function G(e=``,t=!1){return t?(z(),V(Na,null,e)):U(Na,null,e)}function Ja(e){return e==null||typeof e==`boolean`?U(Na):d(e)?U(R,null,e.slice()):Va(e)?Ya(e):U(Ma,null,String(e))}function Ya(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:qa(e)}function Xa(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(d(t))n=16;else if(typeof t==`object`){if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Xa(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!ra(t)?t._ctx=Kn:r===3&&Kn&&(Kn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(h(t)){if(r&65){Xa(e,{default:t});return}t={default:t,_ctx:Kn},n=32}else t=String(t),r&64?(n=16,t=[W(t)]):n=8;e.children=t,e.shapeFlag|=n}function K(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=k([t.class,r.class]));else if(e===`style`)t.style=de([t.style,r.style]);else if(a(e)){let n=t[e],i=r[e];i&&n!==i&&!(d(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!o(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function Za(e,t,n,r=null){Tn(e,t,7,[n,r])}var Qa=Li(),$a=0;function eo(){return $a}function to(e,n,r){let i=e.type,a=(n?n.appContext:e.appContext)||Qa,o={uid:$a++,vnode:e,type:i,parent:n,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ke(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:n?n.provides:Object.create(a.provides),ids:n?n.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:la(i,a),emitsOptions:Gi(i,a),emit:null,emitted:null,propsDefaults:t,inheritAttrs:i.inheritAttrs,ctx:t,data:t,props:t,attrs:t,slots:t,refs:t,setupState:t,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=n?n.root:o,o.emit=Ui.bind(null,o),e.ce&&e.ce(o),o}var no=null,ro=()=>no||Kn,io,ao;{let e=ue(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};io=t(`__VUE_INSTANCE_SETTERS__`,e=>no=e),ao=t(`__VUE_SSR_SETTERS__`,e=>lo=e)}var oo=e=>{let t=no;return io(e),e.scope.on(),()=>{e.scope.off(),io(t)}},so=()=>{no&&no.scope.off(),io(null)};function co(e){return e.vnode.shapeFlag&4}var lo=!1;function uo(e,t=!1,n=!1){t&&ao(t);let{props:r,children:i}=e.vnode,a=co(e);ia(e,r,a,t),_a(e,i,n||t);let o=a?fo(e,t):void 0;return t&&ao(!1),o}function fo(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,yi);let{setup:r}=n;if(r){Xe();let n=e.setupContext=r.length>1?go(e):null,i=oo(e),a=wn(r,e,0,[e.props,n]),o=y(a);if(Ze(),i(),(o||e.sp)&&!Hr(e)&&Lr(e),o){if(a.then(so,so),t)return a.then(n=>{ao(!0);try{po(e,n,t)}finally{ao(!1)}}).catch(t=>{En(t,e,0)});e.asyncDep=a}else po(e,a,t)}else mo(e,t)}function po(e,t,n){h(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:v(t)&&(e.setupState=cn(t)),mo(e,n)}function mo(e,t,n){let i=e.type;e.render||=i.render||r;{let t=oo(e);Xe();try{Ci(e)}finally{Ze(),t()}}}var ho={get(e,t){return st(e,`get`,``),e[t]}};function go(e){return{attrs:new Proxy(e.attrs,ho),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function _o(e){return e.exposed?e.exposeProxy||=new Proxy(cn($t(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in _i)return _i[n](e)},has(e,t){return t in e||t in _i}}):e.proxy}function vo(e,t=!0){return h(e)?e.displayName||e.name:e.name||t&&e.__name}function yo(e){return h(e)&&`__vccOpts`in e}var q=(e,t)=>_n(e,t,lo);function bo(e,t,n){try{za(-1);let r=arguments.length;return r===2?v(t)&&!d(t)?Va(t)?U(e,null,[t]):U(e,t):U(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Va(n)&&(n=[n]),U(e,t,n))}finally{za(1)}}var xo=`3.5.44`,So=void 0,Co=typeof window<`u`&&window.trustedTypes;if(Co)try{So=Co.createPolicy(`vue`,{createHTML:e=>e})}catch{}var wo=So?e=>So.createHTML(e):e=>e,To=`http://www.w3.org/2000/svg`,Eo=`http://www.w3.org/1998/Math/MathML`,Do=typeof document<`u`?document:null,Oo=Do&&Do.createElement(`template`),ko={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?Do.createElementNS(To,e):t===`mathml`?Do.createElementNS(Eo,e):n?Do.createElement(e,{is:n}):Do.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>Do.createTextNode(e),createComment:e=>Do.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Do.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==a&&(i=i.nextSibling););else{Oo.innerHTML=wo(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=Oo.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ao=`transition`,jo=`animation`,Mo=Symbol(`_vtc`),No={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Po=s({},Tr,No),Fo=(e=>(e.displayName=`Transition`,e.props=Po,e))((e,{slots:t})=>bo(Or,Ro(e),t)),Io=(e,t=[])=>{d(e)?e.forEach(e=>e(...t)):e&&e(...t)},Lo=e=>e?d(e)?e.some(e=>e.length>1):e.length>1:!1;function Ro(e){let t={};for(let n in e)n in No||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:l=a,appearActiveClass:u=o,appearToClass:d=c,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,h=zo(i),g=h&&h[0],_=h&&h[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:x,onLeaveCancelled:S,onBeforeAppear:C=v,onAppear:w=y,onAppearCancelled:T=b}=t,ee=(e,t,n,r)=>{e._enterCancelled=r,Ho(e,t?d:c),Ho(e,t?u:o),n&&n()},te=(e,t)=>{e._isLeaving=!1,Ho(e,f),Ho(e,m),Ho(e,p),t&&t()},E=e=>(t,n)=>{let i=e?w:y,o=()=>ee(t,e,n);Io(i,[t,o]),Uo(()=>{Ho(t,e?l:a),Vo(t,e?d:c),Lo(i)||Go(t,r,g,o)})};return s(t,{onBeforeEnter(e){Io(v,[e]),Vo(e,a),Vo(e,o)},onBeforeAppear(e){Io(C,[e]),Vo(e,l),Vo(e,u)},onEnter:E(!1),onAppear:E(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>te(e,t);Vo(e,f),e._enterCancelled?(Vo(e,p),Yo(e)):(Yo(e),Vo(e,p)),Uo(()=>{e._isLeaving&&(Ho(e,f),Vo(e,m),Lo(x)||Go(e,r,_,n))}),Io(x,[e,n])},onEnterCancelled(e){ee(e,!1,void 0,!0),Io(b,[e])},onAppearCancelled(e){ee(e,!0,void 0,!0),Io(T,[e])},onLeaveCancelled(e){te(e),Io(S,[e])}})}function zo(e){if(e==null)return null;if(v(e))return[Bo(e.enter),Bo(e.leave)];{let t=Bo(e);return[t,t]}}function Bo(e){return ce(e)}function Vo(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[Mo]||(e[Mo]=new Set)).add(t)}function Ho(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[Mo];n&&(n.delete(t),n.size||(e[Mo]=void 0))}function Uo(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Wo=0;function Go(e,t,n,r){let i=e._endId=++Wo,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=Ko(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function Ko(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${Ao}Delay`),a=r(`${Ao}Duration`),o=qo(i,a),s=r(`${jo}Delay`),c=r(`${jo}Duration`),l=qo(s,c),u=null,d=0,f=0;t===Ao?o>0&&(u=Ao,d=o,f=a.length):t===jo?l>0&&(u=jo,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?Ao:jo:null,f=u?u===Ao?a.length:c.length:0);let p=u===Ao&&/\b(?:transform|all)(?:,|$)/.test(r(`${Ao}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function qo(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>Jo(t)+Jo(e[n])))}function Jo(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Yo(e){return(e?e.ownerDocument:document).body.offsetHeight}function Xo(e,t,n){let r=e[Mo];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Zo=Symbol(`_vod`),Qo=Symbol(`_vsh`),$o=Symbol(``),es=/(?:^|;)\s*display\s*:/;function ts(e,t,n){let r=e.style,i=g(n),a=!1;if(n&&!i){if(t){if(g(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??rs(r,t,``)}else for(let e in t)n[e]??rs(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?rs(r,i,``):ss(e,i,!g(t)&&t?t[i]:void 0,o)||rs(r,i,o)}}else if(i){if(t!==n){let e=r[$o];e&&(n+=`;`+e),r.cssText=n,a=es.test(n)}}else t&&e.removeAttribute(`style`);Zo in e&&((!i||t!==n)&&(e[Zo]=a?r.display:``),e[Qo]&&(r.display=`none`))}var ns=/\s*!important$/;function rs(e,t,n){if(d(n))n.forEach(n=>rs(e,t,n));else if(n??=``,t.startsWith(`--`))ns.test(n)?e.setProperty(t,n.replace(ns,``),`important`):e.setProperty(t,n);else{let r=os(e,t);ns.test(n)?e.setProperty(D(r),n.replace(ns,``),`important`):e[r]=n}}var is=[`Webkit`,`Moz`,`ms`],as={};function os(e,t){let n=as[t];if(n)return n;let r=E(t);if(r!==`filter`&&r in e)return as[t]=r;r=re(r);for(let n=0;n<is.length;n++){let i=is[n]+r;if(i in e)return as[t]=i}return t}function ss(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&g(r)&&n===r}var cs=`http://www.w3.org/1999/xlink`;function ls(e,t,n,r,i,a=_e(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(cs,t.slice(6,t.length)):e.setAttributeNS(cs,t,n):n==null||a&&!ve(n)?e.removeAttribute(t):e.setAttribute(t,a?``:_(n)?String(n):n)}function us(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?wo(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=ve(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function ds(e,t,n,r){e.addEventListener(t,n,r)}function fs(e,t,n,r){e.removeEventListener(t,n,r)}var ps=Symbol(`_vei`);function ms(e,t,n,r,i=null){let a=e[ps]||(e[ps]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=_s(t);r?ds(e,n,a[t]=xs(r,i),s):o&&(fs(e,n,o,s),a[t]=void 0)}}var hs=/(Once|Passive|Capture)$/,gs=/^on:?(?:Once|Passive|Capture)$/;function _s(e){let t,n;for(;(n=e.match(hs))&&!gs.test(e);)t||={},e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):D(e.slice(2)),t]}var vs=0,ys=Promise.resolve(),bs=()=>vs||=(ys.then(()=>vs=0),Date.now());function xs(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(d(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;n<i.length&&!e._stopped;n++){let e=i[n];e&&Tn(e,t,5,a)}}else Tn(r,t,5,[e])};return n.value=e,n.attached=bs(),n}var Ss=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Cs=(e,t,n,r,i,s)=>{let c=i===`svg`;t===`class`?Xo(e,r,c):t===`style`?ts(e,n,r):a(t)?o(t)||ms(e,t,n,r,s):(t[0]===`.`?(t=t.slice(1),1):t[0]===`^`?(t=t.slice(1),0):ws(e,t,r,c))?(us(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&ls(e,t,r,c,s,t!==`value`)):e._isVueCE&&(Ts(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!g(r)))?us(e,E(t),r,s,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),ls(e,t,r,c))};function ws(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&Ss(t)&&h(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return Ss(t)&&g(n)?!1:t in e}function Ts(e,t){let n=e._def.props;if(!n)return!1;let r=E(t);return Array.isArray(n)?n.some(e=>E(e)===r):Object.keys(n).some(e=>E(e)===r)}var Es=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return d(t)?e=>ae(t,e):t},Ds=Symbol(`_assign`),Os={deep:!0,created(e,t,n){e[Ds]=Es(n),ds(e,`change`,()=>{let t=e._modelValue,n=js(e),r=e.checked,i=e[Ds];if(d(t)){let e=we(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(p(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Ms(e,r))})},mounted:ks,beforeUpdate(e,t,n){e[Ds]=Es(n),ks(e,t,n)}};function ks(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(d(t))i=we(t,r.props.value)>-1;else if(p(t))i=t.has(r.props.value);else{if(t===n)return;i=Ce(t,Ms(e,!0))}e.checked!==i&&(e.checked=i)}var As={created(e,{value:t},n){e.checked=Ce(t,n.props.value),e[Ds]=Es(n),ds(e,`change`,()=>{e[Ds](js(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Ds]=Es(r),t!==n&&(e.checked=Ce(t,r.props.value))}};function js(e){return`_value`in e?e._value:e.value}function Ms(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var Ns=[`ctrl`,`shift`,`alt`,`meta`],Ps={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>Ns.some(n=>e[`${n}Key`]&&!t.includes(n))},Fs=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=Ps[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},Is={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},Ls=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=D(n.key);if(t.some(e=>e===r||Is[e]===r))return e(n)}))},Rs=s({patchProp:Cs},ko),zs;function Bs(){return zs||=ba(Rs)}var Vs=((...e)=>{let t=Bs().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Us(e);if(!r)return;let i=t._component;!h(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,Hs(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function Hs(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Us(e){return g(e)?document.querySelector(e):e}var Ws=typeof window<`u`,Gs,Ks=e=>Gs=e,qs=Symbol();function Js(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var Ys;(function(e){e.direct=`direct`,e.patchObject=`patch object`,e.patchFunction=`patch function`})(Ys||={});var Xs=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:typeof globalThis==`object`?globalThis:{HTMLElement:null};function Zs(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function Qs(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){rc(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function $s(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function ec(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(t)}}var tc=typeof navigator==`object`?navigator:{userAgent:``},nc=/Macintosh/.test(tc.userAgent)&&/AppleWebKit/.test(tc.userAgent)&&!/Safari/.test(tc.userAgent),rc=Ws?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!nc?ic:`msSaveOrOpenBlob`in tc?ac:oc:()=>{};function ic(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?ec(r):$s(r.href)?Qs(e,t,n):(r.target=`_blank`,ec(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){ec(r)},0))}function ac(e,t=`download`,n){if(typeof e==`string`){if($s(e))Qs(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){ec(t)})}}else navigator.msSaveOrOpenBlob(Zs(e,n),t)}function oc(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return Qs(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(Xs.HTMLElement))||`safari`in Xs,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||nc)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}var{assign:sc}=Object;function cc(){let e=Ae(!0),t=e.run(()=>j({})),n=[],r=[],i=$t({install(e){Ks(i),i._a=e,e.provide(qs,i),e.config.globalProperties.$pinia=i,r.forEach(e=>n.push(e)),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}var lc=()=>{};function uc(e,t,n,r=lc){e.add(t);let i=()=>{e.delete(t)&&r()};return!n&&je()&&Me(i),i}function dc(e,...t){e.forEach(e=>{e(...t)})}var fc=e=>e(),pc=Symbol(),mc=Symbol();function hc(e,t){e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(let n in t){if(!t.hasOwnProperty(n))continue;let r=t[n],i=e[n];e[n]=Js(i)&&Js(r)&&e.hasOwnProperty(n)&&!nn(r)&&!Jt(r)?hc(i,r):r}return e}var gc=Symbol();function _c(e){return!Js(e)||!Object.prototype.hasOwnProperty.call(e,gc)}var{assign:vc}=Object;function yc(e){return!!(nn(e)&&e.effect)}function bc(e,t,n,r){let{state:i,actions:a,getters:o}=t,s=n.state.value[e],c;function l(){return s||(n.state.value[e]=i?i():{}),vc(dn(n.state.value[e]),a,Object.keys(o||{}).reduce((t,r)=>(t[r]=$t(q(()=>{Ks(n);let t=n._s.get(e);return o[r].call(t,t)})),t),{}))}return c=xc(e,l,t,n,r,!0),c}function xc(e,t,n={},r,i,a){let o,s=vc({actions:{}},n),c={deep:!0},l,u,d=new Set,f=new Set,p,m=r.state.value[e];!a&&!m&&(r.state.value[e]={});let h;function g(t){let n;l=u=!1,typeof t==`function`?(t(r.state.value[e]),n={type:Ys.patchFunction,storeId:e,events:p}):(hc(r.state.value[e],t),n={type:Ys.patchObject,payload:t,storeId:e,events:p});let i=h=Symbol();Fn().then(()=>{h===i&&(l=!0)}),u=!0,dc(d,n,r.state.value[e])}let _=a?function(){let{state:e}=n,t=e?e():{};this.$patch(e=>{vc(e,t)})}:lc;function v(){o.stop(),d.clear(),f.clear(),r._s.delete(e)}let y=(t,n=``)=>{if(pc in t)return t[mc]=n,t;let i=function(){Ks(r);let n=Array.from(arguments),a=new Set,o=new Set;function s(e){a.add(e)}function c(e){o.add(e)}dc(f,{args:n,name:i[mc],store:b,after:s,onError:c});let l;try{l=t.apply(this&&this.$id===e?this:b,n)}catch(e){throw dc(o,e),e}return l instanceof Promise?l.then(e=>(dc(a,e),e)).catch(e=>(dc(o,e),Promise.reject(e))):(dc(a,l),l)};return i[pc]=!0,i[mc]=n,i},b=Wt({_p:r,$id:e,$onAction:uc.bind(null,f),$patch:g,$reset:_,$subscribe(t,n={}){let i=uc(d,t,n.detached,()=>a()),a=o.run(()=>rr(()=>r.state.value[e],r=>{(n.flush===`sync`?u:l)&&t({storeId:e,type:Ys.direct,events:p},r)},vc({},c,n)));return i},$dispose:v});r._s.set(e,b);let x=(r._a&&r._a.runWithContext||fc)(()=>r._e.run(()=>(o=Ae()).run(()=>t({action:y}))));for(let t in x){let n=x[t];nn(n)&&!yc(n)||Jt(n)?a||(m&&_c(n)&&(nn(n)?n.value=m[t]:hc(n,m[t])),r.state.value[e][t]=n):typeof n==`function`&&(x[t]=y(n,t),s.actions[t]=n)}return vc(b,x),vc(Qt(b),x),Object.defineProperty(b,"$state",{get:()=>r.state.value[e],set:e=>{g(t=>{vc(t,e)})}}),r._p.forEach(e=>{vc(b,o.run(()=>e({store:b,app:r._a,pinia:r,options:s})))}),m&&a&&n.hydrate&&n.hydrate(b.$state,m),l=!0,u=!0,b}function Sc(e,t,n){let r,i=typeof t==`function`;r=i?n:t;function a(n,a){let o=$n();return n||=o?Qn(qs,null):null,n&&Ks(n),n=Gs,n._s.has(e)||(i?xc(e,t,r,n):bc(e,r,n)),n._s.get(e)}return a.$id=e,a}function Cc(e){let t=Qt(e),n={};for(let r in t){let i=t[r];i.effect?n[r]=q({get:()=>e[r],set(t){e[r]=t}}):(nn(i)||Jt(i))&&(n[r]=mn(e,r))}return n}var wc=Object.defineProperty,Tc=Object.getOwnPropertySymbols,Ec=Object.prototype.hasOwnProperty,Dc=Object.prototype.propertyIsEnumerable,Oc=(e,t,n)=>t in e?wc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kc=(e,t)=>{for(var n in t||={})Ec.call(t,n)&&Oc(e,n,t[n]);if(Tc)for(var n of Tc(t))Dc.call(t,n)&&Oc(e,n,t[n]);return e};function Ac(e){return e==null||e===``||Array.isArray(e)&&e.length===0||!(e instanceof Date)&&typeof e==`object`&&Object.keys(e).length===0}function jc(e,t,n=new WeakSet){if(e===t)return!0;if(!e||!t||typeof e!=`object`||typeof t!=`object`||n.has(e)||n.has(t))return!1;n.add(e).add(t);let r=Array.isArray(e),i=Array.isArray(t),a,o,s;if(r&&i){if(o=e.length,o!=t.length)return!1;for(a=o;a--!==0;)if(!jc(e[a],t[a],n))return!1;return!0}if(r!=i)return!1;let c=e instanceof Date,l=t instanceof Date;if(c!=l)return!1;if(c&&l)return e.getTime()==t.getTime();let u=e instanceof RegExp,d=t instanceof RegExp;if(u!=d)return!1;if(u&&d)return e.toString()==t.toString();let f=Object.keys(e);if(o=f.length,o!==Object.keys(t).length)return!1;for(a=o;a--!==0;)if(!Object.prototype.hasOwnProperty.call(t,f[a]))return!1;for(a=o;a--!==0;)if(s=f[a],!jc(e[s],t[s],n))return!1;return!0}function Mc(e,t){return jc(e,t)}function Nc(e){return typeof e==`function`&&`call`in e&&`apply`in e}function Pc(e){return!Ac(e)}function Fc(e,t){if(!e||!t)return null;try{let n=e[t];if(Pc(n))return n}catch{}if(Object.keys(e).length){if(Nc(t))return t(e);if(t.indexOf(`.`)===-1)return e[t];{let n=t.split(`.`),r=e;for(let e=0,t=n.length;e<t;++e){if(r==null)return null;r=r[n[e]]}return r}}return null}function Ic(e,t,n){return n?Fc(e,n)===Fc(t,n):Mc(e,t)}function Lc(e,t=!0){return e instanceof Object&&e.constructor===Object&&(t||Object.keys(e).length!==0)}function Rc(e={},t={}){let n=kc({},e);return Object.keys(t).forEach(r=>{let i=r;Lc(t[i])&&i in e&&Lc(e[i])?n[i]=Rc(e[i],t[i]):n[i]=t[i]}),n}function zc(...e){return e.reduce((e,t,n)=>n===0?t:Rc(e,t),{})}function Bc(e,t){let n=-1;if(Pc(e))try{n=e.findLastIndex(t)}catch{n=e.lastIndexOf([...e].reverse().find(t))}return n}function Vc(e,...t){return Nc(e)?e(...t):e}function Hc(e,t=!0){return typeof e==`string`&&(t||e!==``)}function Uc(e){return Hc(e)?e.replace(/(-|_)/g,``).toLowerCase():e}function Wc(e,t=``,n={}){let r=Uc(t).split(`.`),i=r.shift();return i?Lc(e)?Wc(Vc(e[Object.keys(e).find(e=>Uc(e)===i)||``],n),r.join(`.`),n):void 0:Vc(e,n)}function Gc(e,t=!0){return Array.isArray(e)&&(t||e.length!==0)}function Kc(e){return Pc(e)&&!isNaN(e)}function qc(e=``){return Pc(e)&&e.length===1&&!!e.match(/\S| /)}function Jc(e,t){if(t){let n=t.test(e);return t.lastIndex=0,n}return!1}function Yc(...e){return zc(...e)}function Xc(e){return e&&e.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,``).replace(/ {2,}/g,` `).replace(/ ([{:}]) /g,`$1`).replace(/([;,]) /g,`$1`).replace(/ !/g,`!`).replace(/: /g,`:`).trim()}function Zc(e){if(e&&/[\xC0-\xFF\u0100-\u017E]/.test(e)){let t={A:/[\xC0-\xC5\u0100\u0102\u0104]/g,AE:/[\xC6]/g,C:/[\xC7\u0106\u0108\u010A\u010C]/g,D:/[\xD0\u010E\u0110]/g,E:/[\xC8-\xCB\u0112\u0114\u0116\u0118\u011A]/g,G:/[\u011C\u011E\u0120\u0122]/g,H:/[\u0124\u0126]/g,I:/[\xCC-\xCF\u0128\u012A\u012C\u012E\u0130]/g,IJ:/[\u0132]/g,J:/[\u0134]/g,K:/[\u0136]/g,L:/[\u0139\u013B\u013D\u013F\u0141]/g,N:/[\xD1\u0143\u0145\u0147\u014A]/g,O:/[\xD2-\xD6\xD8\u014C\u014E\u0150]/g,OE:/[\u0152]/g,R:/[\u0154\u0156\u0158]/g,S:/[\u015A\u015C\u015E\u0160]/g,T:/[\u0162\u0164\u0166]/g,U:/[\xD9-\xDC\u0168\u016A\u016C\u016E\u0170\u0172]/g,W:/[\u0174]/g,Y:/[\xDD\u0176\u0178]/g,Z:/[\u0179\u017B\u017D]/g,a:/[\xE0-\xE5\u0101\u0103\u0105]/g,ae:/[\xE6]/g,c:/[\xE7\u0107\u0109\u010B\u010D]/g,d:/[\u010F\u0111]/g,e:/[\xE8-\xEB\u0113\u0115\u0117\u0119\u011B]/g,g:/[\u011D\u011F\u0121\u0123]/g,i:/[\xEC-\xEF\u0129\u012B\u012D\u012F\u0131]/g,ij:/[\u0133]/g,j:/[\u0135]/g,k:/[\u0137,\u0138]/g,l:/[\u013A\u013C\u013E\u0140\u0142]/g,n:/[\xF1\u0144\u0146\u0148\u014B]/g,p:/[\xFE]/g,o:/[\xF2-\xF6\xF8\u014D\u014F\u0151]/g,oe:/[\u0153]/g,r:/[\u0155\u0157\u0159]/g,s:/[\u015B\u015D\u015F\u0161]/g,t:/[\u0163\u0165\u0167]/g,u:/[\xF9-\xFC\u0169\u016B\u016D\u016F\u0171\u0173]/g,w:/[\u0175]/g,y:/[\xFD\xFF\u0177]/g,z:/[\u017A\u017C\u017E]/g};for(let n in t)e=e.replace(t[n],n)}return e}function Qc(e){return Hc(e,!1)?e[0].toUpperCase()+e.slice(1):e}function $c(e){return Hc(e)?e.replace(/(_)/g,`-`).replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase():e}function el(){let e=new Map;return{on(t,n){let r=e.get(t);return r?r.push(n):r=[n],e.set(t,r),this},off(t,n){let r=e.get(t);return r&&r.splice(r.indexOf(n)>>>0,1),this},emit(t,n){let r=e.get(t);r&&r.forEach(e=>{e(n)})},clear(){e.clear()}}}function tl(...e){if(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];if(!r)continue;let i=typeof r;if(i===`string`||i===`number`)t.push(r);else if(i===`object`){let e=Array.isArray(r)?[tl(...r)]:Object.entries(r).map(([e,t])=>t?e:void 0);t=e.length?t.concat(e.filter(e=>!!e)):t}}return t.join(` `).trim()}}function nl(e,t){return e?e.classList?e.classList.contains(t):RegExp(`(^| )`+t+`( |$)`,`gi`).test(e.className):!1}function rl(e,t){if(e&&t){let n=t=>{nl(e,t)||(e.classList?e.classList.add(t):e.className+=` `+t)};[t].flat().filter(Boolean).forEach(e=>e.split(` `).forEach(n))}}function il(){return window.innerWidth-document.documentElement.offsetWidth}function al(e){typeof e==`string`?rl(document.body,e||`p-overflow-hidden`):(e!=null&&e.variableName&&document.body.style.setProperty(e.variableName,il()+`px`),rl(document.body,e?.className||`p-overflow-hidden`))}function ol(e,t){if(e&&t){let n=t=>{e.classList?e.classList.remove(t):e.className=e.className.replace(RegExp(`(^|\\b)`+t.split(` `).join(`|`)+`(\\b|$)`,`gi`),` `)};[t].flat().filter(Boolean).forEach(e=>e.split(` `).forEach(n))}}function sl(e){typeof e==`string`?ol(document.body,e||`p-overflow-hidden`):(e!=null&&e.variableName&&document.body.style.removeProperty(e.variableName),ol(document.body,e?.className||`p-overflow-hidden`))}function cl(e){for(let t of document==null?void 0:document.styleSheets)try{for(let n of t?.cssRules)for(let t of n?.style)if(e.test(t))return{name:t,value:n.style.getPropertyValue(t).trim()}}catch{}return null}function ll(e){let t={width:0,height:0};if(e){let[n,r]=[e.style.visibility,e.style.display],i=e.getBoundingClientRect();e.style.visibility=`hidden`,e.style.display=`block`,t.width=i.width||e.offsetWidth,t.height=i.height||e.offsetHeight,e.style.display=r,e.style.visibility=n}return t}function ul(){let e=window,t=document,n=t.documentElement,r=t.getElementsByTagName(`body`)[0];return{width:e.innerWidth||n.clientWidth||r.clientWidth,height:e.innerHeight||n.clientHeight||r.clientHeight}}function dl(e){return e?Math.abs(e.scrollLeft):0}function fl(){let e=document.documentElement;return(window.pageXOffset||dl(e))-(e.clientLeft||0)}function pl(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}function ml(e){return e?getComputedStyle(e).direction===`rtl`:!1}function hl(e,t,n=!0){if(e){let r=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:ll(e),i=r.height,a=r.width,o=t.offsetHeight,s=t.offsetWidth,c=t.getBoundingClientRect(),l=pl(),u=fl(),d=ul(),f,p,m=`top`;c.top+o+i>d.height?(f=c.top+l-i,m=`bottom`,f<0&&(f=l)):f=o+c.top+l,p=c.left+a>d.width?Math.max(0,c.left+u+s-a):c.left+u,ml(e)?e.style.insetInlineEnd=p+`px`:e.style.insetInlineStart=p+`px`,e.style.top=f+`px`,e.style.transformOrigin=m,n&&(e.style.marginTop=m===`bottom`?`calc(${cl(/-anchor-gutter$/)?.value??`2px`} * -1)`:cl(/-anchor-gutter$/)?.value??``)}}function gl(e,t){e&&(typeof t==`string`?e.style.cssText=t:Object.entries(t||{}).forEach(([t,n])=>e.style[t]=n))}function _l(e,t){if(e instanceof HTMLElement){let n=e.offsetWidth;if(t){let t=getComputedStyle(e);n+=parseFloat(t.marginLeft)+parseFloat(t.marginRight)}return n}return 0}function vl(e,t,n=!0,r=void 0){if(e){let i=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:ll(e),a=t.offsetHeight,o=t.getBoundingClientRect(),s=ul(),c,l,u=r??`top`;if(!r&&o.top+a+i.height>s.height?(c=-1*i.height,u=`bottom`,o.top+c<0&&(c=-1*o.top)):c=a,l=i.width>s.width?o.left*-1:o.left+i.width>s.width?(o.left+i.width-s.width)*-1:0,e.style.top=c+`px`,e.style.insetInlineStart=l+`px`,e.style.transformOrigin=u,n){let t=cl(/-anchor-gutter$/)?.value;e.style.marginTop=u===`bottom`?`calc(${t??`2px`} * -1)`:t??``}}}function yl(e){if(e){let t=e.parentNode;return t&&t instanceof ShadowRoot&&t.host&&(t=t.host),t}return null}function bl(e){return!!(e!=null&&e.nodeName&&yl(e))}function xl(e){return typeof Element<`u`?e instanceof Element:typeof e==`object`&&!!e&&e.nodeType===1&&typeof e.nodeName==`string`}function Sl(){if(window.getSelection){let e=window.getSelection()||{};e.empty?e.empty():e.removeAllRanges&&e.rangeCount>0&&e.getRangeAt(0).getClientRects().length>0&&e.removeAllRanges()}}function Cl(e,t={}){if(xl(e)){let n=(t,r)=>{var i;let a=(i=e?.$attrs)!=null&&i[t]?[e?.$attrs?.[t]]:[];return[r].flat().reduce((e,r)=>{if(r!=null){let i=typeof r;if(i===`string`||i===`number`)e.push(r);else if(i===`object`){let i=Array.isArray(r)?n(t,r):Object.entries(r).map(([e,n])=>t===`style`&&(n||n===0)?`${e.replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase()}:${n}`:n?e:void 0);e=i.length?e.concat(i.filter(e=>!!e)):e}}return e},a)};Object.entries(t).forEach(([t,r])=>{if(r!=null){let i=t.match(/^on(.+)/);i?e.addEventListener(i[1].toLowerCase(),r):t===`p-bind`||t===`pBind`?Cl(e,r):(r=t===`class`?[...new Set(n(`class`,r))].join(` `).trim():t===`style`?n(`style`,r).join(`;`).trim():r,(e.$attrs=e.$attrs||{})&&(e.$attrs[t]=r),e.setAttribute(t,r))}})}}function wl(e,t={},...n){if(e){let r=document.createElement(e);return Cl(r,t),r.append(...n),r}}function Tl(e,t){return xl(e)?Array.from(e.querySelectorAll(t)):[]}function El(e,t){return xl(e)?e.matches(t)?e:e.querySelector(t):null}function Dl(e,t){e&&document.activeElement!==e&&e.focus(t)}function Ol(e,t){if(xl(e)){let n=e.getAttribute(t);return isNaN(n)?n===`true`||n===`false`?n===`true`:n:+n}}function kl(e,t=``){let n=Tl(e,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
2
+ [href]:not([tabindex = "-1"]):not([style*="display:none"]):not([hidden])${t},
3
+ input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
4
+ select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
5
+ textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
6
+ [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
7
+ [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}`),r=[];for(let e of n)getComputedStyle(e).display!=`none`&&getComputedStyle(e).visibility!=`hidden`&&r.push(e);return r}function Al(e,t){let n=kl(e,t);return n.length>0?n[0]:null}function jl(e){if(e){let t=e.offsetHeight,n=getComputedStyle(e);return t-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),t}return 0}function Ml(e,t){let n=kl(e,t);return n.length>0?n[n.length-1]:null}function Nl(e){if(e){let t=e.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:t.left+(window.pageXOffset||dl(document.documentElement)||dl(document.body)||0)}}return{top:`auto`,left:`auto`}}function Pl(e,t){if(e){let n=e.offsetHeight;if(t){let t=getComputedStyle(e);n+=parseFloat(t.marginTop)+parseFloat(t.marginBottom)}return n}return 0}function Fl(e,t=[]){let n=yl(e);return n===null?t:Fl(n,t.concat([n]))}function Il(e){let t=[];if(e){let n=Fl(e),r=/(auto|scroll)/,i=e=>{try{let t=window.getComputedStyle(e,null);return r.test(t.getPropertyValue(`overflow`))||r.test(t.getPropertyValue(`overflowX`))||r.test(t.getPropertyValue(`overflowY`))}catch{return!1}};for(let e of n){let n=e.nodeType===1&&e.dataset.scrollselectors;if(n){let r=n.split(`,`);for(let n of r){let r=El(e,n);r&&i(r)&&t.push(r)}}e.nodeType!==9&&i(e)&&t.push(e)}}return t}function Ll(){if(window.getSelection)return window.getSelection().toString();if(document.getSelection)return document.getSelection().toString()}function Rl(e){if(e){let t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),t}return 0}function zl(){return/(android)/i.test(navigator.userAgent)}function Bl(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}function Vl(e,t=``){return xl(e)?e.matches(`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
8
+ [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
9
+ input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
10
+ select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
11
+ textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
12
+ [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
13
+ [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}`):!1}function Hl(e){return!!(e&&e.offsetParent!=null)}function Ul(){return`ontouchstart`in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function Wl(e,t=``,n){xl(e)&&n!=null&&e.setAttribute(t,n)}var Gl={};function Kl(e=`pui_id_`){return Object.hasOwn(Gl,e)||(Gl[e]=0),Gl[e]++,`${e}${Gl[e]}`}function ql(){let e=[],t=(t,n,r=999)=>{let a=i(t,n,r),o=a.value+(a.key===t?0:r)+1;return e.push({key:t,value:o}),o},n=t=>{e=e.filter(e=>e.value!==t)},r=(e,t)=>i(e,t).value,i=(t,n,r=0)=>[...e].reverse().find(e=>n?!0:e.key===t)||{key:t,value:r},a=e=>e&&parseInt(e.style.zIndex,10)||0;return{get:a,set:(e,n,r)=>{n&&(n.style.zIndex=String(t(e,!0,r)))},clear:e=>{e&&(n(a(e)),e.style.zIndex=``)},getCurrent:e=>r(e,!0)}}var Jl=ql(),Yl=Object.defineProperty,Xl=Object.defineProperties,Zl=Object.getOwnPropertyDescriptors,Ql=Object.getOwnPropertySymbols,$l=Object.prototype.hasOwnProperty,eu=Object.prototype.propertyIsEnumerable,tu=(e,t,n)=>t in e?Yl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nu=(e,t)=>{for(var n in t||={})$l.call(t,n)&&tu(e,n,t[n]);if(Ql)for(var n of Ql(t))eu.call(t,n)&&tu(e,n,t[n]);return e},ru=(e,t)=>Xl(e,Zl(t)),iu=(e,t)=>{var n={};for(var r in e)$l.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ql)for(var r of Ql(e))t.indexOf(r)<0&&eu.call(e,r)&&(n[r]=e[r]);return n};function au(...e){return zc(...e)}var ou=el(),su=/{([^}]*)}/g,cu=/(\d+\s+[\+\-\*\/]\s+\d+)/g,lu=/var\([^)]+\)/g;function uu(e){return Hc(e)?e.replace(/[A-Z]/g,(e,t)=>t===0?e:`.`+e.toLowerCase()).toLowerCase():e}function du(e){return Lc(e)&&e.hasOwnProperty(`$value`)&&e.hasOwnProperty(`$type`)?e.$value:e}function fu(e){return e.replaceAll(/ /g,``).replace(/[^\w]/g,`-`)}function pu(e=``,t=``){return fu(`${Hc(e,!1)&&Hc(t,!1)?`${e}-`:e}${t}`)}function mu(e=``,t=``){return`--${pu(e,t)}`}function hu(e=``){return((e.match(/{/g)||[]).length+(e.match(/}/g)||[]).length)%2!=0}function gu(e,t=``,n=``,r=[],i){if(Hc(e)){let t=e.trim();if(hu(t))return;if(Jc(t,su)){let e=t.replaceAll(su,e=>`var(${mu(n,$c(e.replace(/{|}/g,``).split(`.`).filter(e=>!r.some(t=>Jc(e,t))).join(`-`)))}${Pc(i)?`, ${i}`:``})`);return Jc(e.replace(lu,`0`),cu)?`calc(${e})`:e}return t}if(Kc(e))return e}function _u(e,t,n){Hc(t,!1)&&e.push(`${t}:${n};`)}function vu(e,t){return e?`${e}{${t}}`:``}function yu(e,t){if(e.indexOf(`dt(`)===-1)return e;function n(e,t){let n=[],i=0,a=``,o=null,s=0;for(;i<=e.length;){let c=e[i];if((c===`"`||c===`'`||c==="`")&&e[i-1]!==`\\`&&(o=o===c?null:c),!o&&(c===`(`&&s++,c===`)`&&s--,(c===`,`||i===e.length)&&s===0)){let e=a.trim();e.startsWith(`dt(`)?n.push(yu(e,t)):n.push(r(e)),a=``,i++}else c!==void 0&&(a+=c),i++}return n}function r(e){let t=e[0];if((t===`"`||t===`'`||t==="`")&&e[e.length-1]===t)return e.slice(1,-1);let n=Number(e);return isNaN(n)?e:n}let i=[],a=[];for(let t=0;t<e.length;t++)if(e[t]===`d`&&e.slice(t,t+3)===`dt(`)a.push(t),t+=2;else if(e[t]===`)`&&a.length>0){let e=a.pop();a.length===0&&i.push([e,t])}if(!i.length)return e;for(let r=i.length-1;r>=0;r--){let[a,o]=i[r],s=t(...n(e.slice(a+3,o),t));e=e.slice(0,a)+s+e.slice(o+1)}return e}var bu=e=>{let t=Eu.getTheme(),n=Su(t,e,void 0,`variable`);return{name:n?.match(/--[\w-]+/g)?.[0],variable:n,value:Su(t,e,void 0,`value`)}},xu=(...e)=>Su(Eu.getTheme(),...e),Su=(e={},t,n,r)=>{if(t){let{variable:i,options:a}=Eu.defaults||{},{prefix:o,transform:s}=e?.options||a||{},c=Jc(t,su)?t:`{${t}}`;return r===`value`||Ac(r)&&s===`strict`?Eu.getTokenValue(t):gu(c,void 0,o,[i.excludedKeyRegex],n)}return``};function Cu(e,...t){return e instanceof Array?yu(e.reduce((e,n,r)=>e+n+(Vc(t[r],{dt:xu})??``),``),xu):Vc(e,{dt:xu})}function wu(e,t={}){let n=Eu.defaults.variable,{prefix:r=n.prefix,selector:i=n.selector,excludedKeyRegex:a=n.excludedKeyRegex}=t,o=[],s=[],c=[{node:e,path:r}];for(;c.length;){let{node:e,path:t}=c.pop();for(let n in e){let i=e[n],l=du(i),u=Jc(n,a)?pu(t):pu(t,$c(n));if(Lc(l))c.push({node:l,path:u});else{_u(s,mu(u),gu(l,u,r,[a]));let e=u;r&&e.startsWith(r+`-`)&&(e=e.slice(r.length+1)),o.push(e.replace(/-/g,`.`))}}}let l=s.join(``);return{value:s,tokens:o,declarations:l,css:vu(i,l)}}var Tu={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(e){return{type:`class`,selector:e,matched:this.pattern.test(e.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(e){return{type:`attr`,selector:`:root${e},:host${e}`,matched:this.pattern.test(e.trim())}}},media:{pattern:/^@media (.*)$/,resolve(e){return{type:`media`,selector:e,matched:this.pattern.test(e.trim())}}},system:{pattern:/^system$/,resolve(e){return{type:`system`,selector:`@media (prefers-color-scheme: dark)`,matched:this.pattern.test(e.trim())}}},custom:{resolve(e){return{type:`custom`,selector:e,matched:!0}}}},resolve(e){let t=Object.keys(this.rules).filter(e=>e!==`custom`).map(e=>this.rules[e]);return[e].flat().map(e=>t.map(t=>t.resolve(e)).find(e=>e.matched)??this.rules.custom.resolve(e))}},_toVariables(e,t){return wu(e,{prefix:t?.prefix})},getCommon({name:e=``,theme:t={},params:n,set:r,defaults:i}){let{preset:a,options:o}=t,s,c,l,u,d,f,p;if(Pc(a)&&o.transform!==`strict`){let{primitive:t,semantic:n,extend:m}=a,h=n||{},{colorScheme:g}=h,_=iu(h,[`colorScheme`]),v=m||{},{colorScheme:y}=v,b=iu(v,[`colorScheme`]),x=g||{},{dark:S}=x,C=iu(x,[`dark`]),w=y||{},{dark:T}=w,ee=iu(w,[`dark`]),te=Pc(t)?this._toVariables({primitive:t},o):{},E=Pc(_)?this._toVariables({semantic:_},o):{},ne=Pc(C)?this._toVariables({light:C},o):{},D=Pc(S)?this._toVariables({dark:S},o):{},re=Pc(b)?this._toVariables({semantic:b},o):{},ie=Pc(ee)?this._toVariables({light:ee},o):{},O=Pc(T)?this._toVariables({dark:T},o):{},[ae,oe]=[te.declarations??``,te.tokens],[se,ce]=[E.declarations??``,E.tokens||[]],[le,ue]=[ne.declarations??``,ne.tokens||[]],[de,fe]=[D.declarations??``,D.tokens||[]],[pe,me]=[re.declarations??``,re.tokens||[]],[he,k]=[ie.declarations??``,ie.tokens||[]],[ge,_e]=[O.declarations??``,O.tokens||[]];s=this.transformCSS(e,ae,`light`,`variable`,o,r,i),c=oe,l=`${this.transformCSS(e,`${se}${le}`,`light`,`variable`,o,r,i)}${this.transformCSS(e,`${de}`,`dark`,`variable`,o,r,i)}`,u=[...new Set([...ce,...ue,...fe])],d=`${this.transformCSS(e,`${pe}${he}color-scheme:light`,`light`,`variable`,o,r,i)}${this.transformCSS(e,`${ge}color-scheme:dark`,`dark`,`variable`,o,r,i)}`,f=[...new Set([...me,...k,..._e])],p=Vc(a.css,{dt:xu})}return{primitive:{css:s,tokens:c},semantic:{css:l,tokens:u},global:{css:d,tokens:f},style:p}},getPreset({name:e=``,preset:t={},options:n,params:r,set:i,defaults:a,selector:o}){let s,c,l;if(Pc(t)&&n.transform!==`strict`){let r=e.replace(`-directive`,``),u=t,{colorScheme:d,extend:f,css:p}=u,m=iu(u,[`colorScheme`,`extend`,`css`]),h=f||{},{colorScheme:g}=h,_=iu(h,[`colorScheme`]),v=d||{},{dark:y}=v,b=iu(v,[`dark`]),x=g||{},{dark:S}=x,C=iu(x,[`dark`]),w=Pc(m)?this._toVariables({[r]:nu(nu({},m),_)},n):{},T=Pc(b)?this._toVariables({[r]:nu(nu({},b),C)},n):{},ee=Pc(y)?this._toVariables({[r]:nu(nu({},y),S)},n):{},[te,E]=[w.declarations??``,w.tokens||[]],[ne,D]=[T.declarations??``,T.tokens||[]],[re,ie]=[ee.declarations??``,ee.tokens||[]];s=`${this.transformCSS(r,`${te}${ne}`,`light`,`variable`,n,i,a,o)}${this.transformCSS(r,re,`dark`,`variable`,n,i,a,o)}`,c=[...new Set([...E,...D,...ie])],l=Vc(p,{dt:xu})}return{css:s,tokens:c,style:l}},getPresetC({name:e=``,theme:t={},params:n,set:r,defaults:i}){let{preset:a,options:o}=t,s=a?.components?.[e];return this.getPreset({name:e,preset:s,options:o,params:n,set:r,defaults:i})},getPresetD({name:e=``,theme:t={},params:n,set:r,defaults:i}){let a=e.replace(`-directive`,``),{preset:o,options:s}=t,c=o?.components?.[a]||o?.directives?.[a];return this.getPreset({name:a,preset:c,options:s,params:n,set:r,defaults:i})},applyDarkColorScheme(e){return e.darkModeSelector!==`none`&&e.darkModeSelector!==!1},getColorSchemeOption(e,t){return this.applyDarkColorScheme(e)?this.regex.resolve(e.darkModeSelector===!0?t.options.darkModeSelector:e.darkModeSelector??t.options.darkModeSelector):[]},getLayerOrder(e,t={},n,r){let{cssLayer:i}=t;return i?`@layer ${Vc(i.order||i.name||`primeui`,n)}`:``},getCommonStyleSheet({name:e=``,theme:t={},params:n,props:r={},set:i,defaults:a}){let o=this.getCommon({name:e,theme:t,params:n,set:i,defaults:a}),s=Object.entries(r).reduce((e,[t,n])=>e.push(`${t}="${n}"`)&&e,[]).join(` `);return Object.entries(o||{}).reduce((e,[t,n])=>{if(Lc(n)&&Object.hasOwn(n,`css`)){let r=Xc(n.css),i=`${t}-variables`;e.push(`<style type="text/css" data-primevue-style-id="${i}" ${s}>${r}</style>`)}return e},[]).join(``)},getStyleSheet({name:e=``,theme:t={},params:n,props:r={},set:i,defaults:a}){let o={name:e,theme:t,params:n,set:i,defaults:a},s=(e.includes(`-directive`)?this.getPresetD(o):this.getPresetC(o))?.css,c=Object.entries(r).reduce((e,[t,n])=>e.push(`${t}="${n}"`)&&e,[]).join(` `);return s?`<style type="text/css" data-primevue-style-id="${e}-variables" ${c}>${Xc(s)}</style>`:``},createTokens(e={},t,n=``,r=``,i={}){let a=function(e,t={},n=[]){if(n.includes(this.path))return console.warn(`Circular reference detected at ${this.path}`),{colorScheme:e,path:this.path,paths:t,value:void 0};n.push(this.path),t.name=this.path,t.binding||={};let r=this.value;if(typeof this.value==`string`&&su.test(this.value)){let i=this.value.trim().replace(su,r=>{let i=r.slice(1,-1),a=this.tokens[i];if(!a)return console.warn(`Token not found for path: ${i}`),`__UNRESOLVED__`;let o=a.computed(e,t,n);return Array.isArray(o)&&o.length===2?`light-dark(${o[0].value},${o[1].value})`:o?.value??`__UNRESOLVED__`});r=cu.test(i.replace(lu,`0`))?`calc(${i})`:i}return Ac(t.binding)&&delete t.binding,n.pop(),{colorScheme:e,path:this.path,paths:t,value:r.includes(`__UNRESOLVED__`)?void 0:r}},o=(e,n,r)=>{Object.entries(e).forEach(([e,s])=>{let c=Jc(e,t.variable.excludedKeyRegex)?n:n?`${n}.${uu(e)}`:uu(e),l=r?`${r}.${e}`:e;Lc(s)?o(s,c,l):(i[c]||(i[c]={paths:[],computed:(e,t={},n=[])=>{if(i[c].paths.length===1)return i[c].paths[0].computed(i[c].paths[0].scheme,t.binding,n);if(e&&e!==`none`)for(let r=0;r<i[c].paths.length;r++){let a=i[c].paths[r];if(a.scheme===e)return a.computed(e,t.binding,n)}return i[c].paths.map(e=>e.computed(e.scheme,t[e.scheme],n))}}),i[c].paths.push({path:l,value:s,scheme:l.includes(`colorScheme.light`)?`light`:l.includes(`colorScheme.dark`)?`dark`:`none`,computed:a,tokens:i}))})};return o(e,n,r),i},getTokenValue(e,t,n){let r=(e=>e.split(`.`).filter(e=>!Jc(e.toLowerCase(),n.variable.excludedKeyRegex)).join(`.`))(t),i=t.includes(`colorScheme.light`)?`light`:t.includes(`colorScheme.dark`)?`dark`:void 0,a=[e[r]?.computed(i)].flat().filter(e=>e);return a.length===1?a[0].value:a.reduce((e={},t)=>{let n=t,{colorScheme:r}=n;return e[r]=iu(n,[`colorScheme`]),e},void 0)},getSelectorRule(e,t,n,r){return n===`class`||n===`attr`?vu(Pc(t)?`${e}${t},${e} ${t}`:e,r):vu(e,vu(t??`:root,:host`,r))},transformCSS(e,t,n,r,i={},a,o,s){if(Pc(t)){let{cssLayer:c}=i;if(r!==`style`){let e=this.getColorSchemeOption(i,o);t=n===`dark`?e.reduce((e,{type:n,selector:r})=>(Pc(r)&&(e+=r.includes(`[CSS]`)?r.replace(`[CSS]`,t):this.getSelectorRule(r,s,n,t)),e),``):vu(s??`:root,:host`,t)}if(c){let n={name:`primeui`,order:`primeui`};Lc(c)&&(n.name=Vc(c.name,{name:e,type:r})),Pc(n.name)&&(t=vu(`@layer ${n.name}`,t),a?.layerNames(n.name))}return t}return``}},Eu={defaults:{variable:{prefix:`p`,selector:`:root,:host`,excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:`p`,darkModeSelector:`system`,cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(e={}){let{theme:t}=e;t&&(this._theme=ru(nu({},t),{options:nu(nu({},this.defaults.options),t.options)}),this._tokens=Tu.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){return this.theme?.preset||{}},get options(){return this.theme?.options||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(e){this.update({theme:e}),ou.emit(`theme:change`,e)},getPreset(){return this.preset},setPreset(e){this._theme=ru(nu({},this.theme),{preset:e}),this._tokens=Tu.createTokens(e,this.defaults),this.clearLoadedStyleNames(),ou.emit(`preset:change`,e),ou.emit(`theme:change`,this.theme)},getOptions(){return this.options},setOptions(e){this._theme=ru(nu({},this.theme),{options:e}),this.clearLoadedStyleNames(),ou.emit(`options:change`,e),ou.emit(`theme:change`,this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(e){this._layerNames.add(e)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(e){return this._loadedStyleNames.has(e)},setLoadedStyleName(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(e){return Tu.getTokenValue(this.tokens,e,this.defaults)},getCommon(e=``,t){return Tu.getCommon({name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(e=``,t){let n={name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Tu.getPresetC(n)},getDirective(e=``,t){let n={name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Tu.getPresetD(n)},getCustomPreset(e=``,t,n,r){let i={name:e,preset:t,options:this.options,selector:n,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Tu.getPreset(i)},getLayerOrderCSS(e=``){return Tu.getLayerOrder(e,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(e=``,t,n=`style`,r){return Tu.transformCSS(e,t,r,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(e=``,t,n={}){return Tu.getCommonStyleSheet({name:e,theme:this.theme,params:t,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(e,t,n={}){return Tu.getStyleSheet({name:e,theme:this.theme,params:t,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(e){this._loadingStyles.add(e)},onStyleUpdated(e){this._loadingStyles.add(e)},onStyleLoaded(e,{name:t}){this._loadingStyles.size&&(this._loadingStyles.delete(t),ou.emit(`theme:${t}:load`,e),!this._loadingStyles.size&&ou.emit(`theme:load`))}},Du={STARTS_WITH:`startsWith`,CONTAINS:`contains`,NOT_CONTAINS:`notContains`,ENDS_WITH:`endsWith`,EQUALS:`equals`,NOT_EQUALS:`notEquals`,IN:`in`,LESS_THAN:`lt`,LESS_THAN_OR_EQUAL_TO:`lte`,GREATER_THAN:`gt`,GREATER_THAN_OR_EQUAL_TO:`gte`,BETWEEN:`between`,DATE_IS:`dateIs`,DATE_IS_NOT:`dateIsNot`,DATE_BEFORE:`dateBefore`,DATE_AFTER:`dateAfter`};function Ou(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=ku(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
14
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function ku(e,t){if(e){if(typeof e==`string`)return Au(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Au(e,t):void 0}}function Au(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ju={filter:function(e,t,n,r,i){var a=[];if(!e)return a;var o=Ou(e),s;try{for(o.s();!(s=o.n()).done;){var c=s.value;if(typeof c==`string`){if(this.filters[r](c,n,i)){a.push(c);continue}}else{var l=Ou(t),u;try{for(l.s();!(u=l.n()).done;){var d=u.value,f=Fc(c,d);if(this.filters[r](f,n,i)){a.push(c);break}}}catch(e){l.e(e)}finally{l.f()}}}}catch(e){o.e(e)}finally{o.f()}return a},filters:{startsWith:function(e,t,n){if(t==null||t===``)return!0;if(e==null)return!1;var r=Zc(t.toString()).toLocaleLowerCase(n);return Zc(e.toString()).toLocaleLowerCase(n).slice(0,r.length)===r},contains:function(e,t,n){if(t==null||t===``)return!0;if(e==null)return!1;var r=Zc(t.toString()).toLocaleLowerCase(n);return Zc(e.toString()).toLocaleLowerCase(n).indexOf(r)!==-1},notContains:function(e,t,n){if(t==null||t===``)return!0;if(e==null)return!1;var r=Zc(t.toString()).toLocaleLowerCase(n);return Zc(e.toString()).toLocaleLowerCase(n).indexOf(r)===-1},endsWith:function(e,t,n){if(t==null||t===``)return!0;if(e==null)return!1;var r=Zc(t.toString()).toLocaleLowerCase(n),i=Zc(e.toString()).toLocaleLowerCase(n);return i.indexOf(r,i.length-r.length)!==-1},equals:function(e,t,n){return t==null||t===``?!0:e==null?!1:e.getTime&&t.getTime?e.getTime()===t.getTime():Zc(e.toString()).toLocaleLowerCase(n)==Zc(t.toString()).toLocaleLowerCase(n)},notEquals:function(e,t,n){return t==null||t===``?!1:e==null?!0:e.getTime&&t.getTime?e.getTime()!==t.getTime():Zc(e.toString()).toLocaleLowerCase(n)!=Zc(t.toString()).toLocaleLowerCase(n)},in:function(e,t){if(t==null||t.length===0)return!0;for(var n=0;n<t.length;n++)if(Ic(e,t[n]))return!0;return!1},between:function(e,t){return t==null||t[0]==null||t[1]==null?!0:e==null?!1:e.getTime?t[0].getTime()<=e.getTime()&&e.getTime()<=t[1].getTime():t[0]<=e&&e<=t[1]},lt:function(e,t){return t==null?!0:e==null?!1:e.getTime&&t.getTime?e.getTime()<t.getTime():e<t},lte:function(e,t){return t==null?!0:e==null?!1:e.getTime&&t.getTime?e.getTime()<=t.getTime():e<=t},gt:function(e,t){return t==null?!0:e==null?!1:e.getTime&&t.getTime?e.getTime()>t.getTime():e>t},gte:function(e,t){return t==null?!0:e==null?!1:e.getTime&&t.getTime?e.getTime()>=t.getTime():e>=t},dateIs:function(e,t){return t==null||e!=null&&(typeof e==`string`&&(e=new Date(e)),typeof t==`string`&&(t=new Date(t)),e.toDateString()===t.toDateString())},dateIsNot:function(e,t){return t==null||e!=null&&(typeof e==`string`&&(e=new Date(e)),typeof t==`string`&&(t=new Date(t)),e.toDateString()!==t.toDateString())},dateBefore:function(e,t){return t==null||e!=null&&(typeof e==`string`&&(e=new Date(e)),typeof t==`string`&&(t=new Date(t)),e.getTime()<t.getTime())},dateAfter:function(e,t){return t==null||e!=null&&(typeof e==`string`&&(e=new Date(e)),typeof t==`string`&&(t=new Date(t)),e.getTime()>t.getTime())}},register:function(e,t){this.filters[e]=t}},Mu=`
15
+ *,
16
+ ::before,
17
+ ::after {
18
+ box-sizing: border-box;
19
+ }
20
+
21
+ .p-collapsible-enter-active {
22
+ animation: p-animate-collapsible-expand 0.2s ease-out;
23
+ overflow: hidden;
24
+ }
25
+
26
+ .p-collapsible-leave-active {
27
+ animation: p-animate-collapsible-collapse 0.2s ease-out;
28
+ overflow: hidden;
29
+ }
30
+
31
+ @keyframes p-animate-collapsible-expand {
32
+ from {
33
+ grid-template-rows: 0fr;
34
+ }
35
+ to {
36
+ grid-template-rows: 1fr;
37
+ }
38
+ }
39
+
40
+ @keyframes p-animate-collapsible-collapse {
41
+ from {
42
+ grid-template-rows: 1fr;
43
+ }
44
+ to {
45
+ grid-template-rows: 0fr;
46
+ }
47
+ }
48
+
49
+ .p-disabled,
50
+ .p-disabled * {
51
+ cursor: default;
52
+ pointer-events: none;
53
+ user-select: none;
54
+ }
55
+
56
+ .p-disabled,
57
+ .p-component:disabled {
58
+ opacity: dt('disabled.opacity');
59
+ }
60
+
61
+ .pi {
62
+ font-size: dt('icon.size');
63
+ }
64
+
65
+ .p-icon {
66
+ width: dt('icon.size');
67
+ height: dt('icon.size');
68
+ }
69
+
70
+ .p-overlay-mask {
71
+ background: var(--px-mask-background, dt('mask.background'));
72
+ color: dt('mask.color');
73
+ position: fixed;
74
+ top: 0;
75
+ left: 0;
76
+ width: 100%;
77
+ height: 100%;
78
+ }
79
+
80
+ .p-overlay-mask-enter-active {
81
+ animation: p-animate-overlay-mask-enter dt('mask.transition.duration') forwards;
82
+ }
83
+
84
+ .p-overlay-mask-leave-active {
85
+ animation: p-animate-overlay-mask-leave dt('mask.transition.duration') forwards;
86
+ }
87
+
88
+ @keyframes p-animate-overlay-mask-enter {
89
+ from {
90
+ background: transparent;
91
+ }
92
+ to {
93
+ background: var(--px-mask-background, dt('mask.background'));
94
+ }
95
+ }
96
+ @keyframes p-animate-overlay-mask-leave {
97
+ from {
98
+ background: var(--px-mask-background, dt('mask.background'));
99
+ }
100
+ to {
101
+ background: transparent;
102
+ }
103
+ }
104
+
105
+ .p-anchored-overlay-enter-active {
106
+ animation: p-animate-anchored-overlay-enter 300ms cubic-bezier(.19,1,.22,1);
107
+ }
108
+
109
+ .p-anchored-overlay-leave-active {
110
+ animation: p-animate-anchored-overlay-leave 300ms cubic-bezier(.19,1,.22,1);
111
+ }
112
+
113
+ @keyframes p-animate-anchored-overlay-enter {
114
+ from {
115
+ opacity: 0;
116
+ transform: scale(0.93);
117
+ }
118
+ }
119
+
120
+ @keyframes p-animate-anchored-overlay-leave {
121
+ to {
122
+ opacity: 0;
123
+ transform: scale(0.93);
124
+ }
125
+ }
126
+ `;function Nu(e){"@babel/helpers - typeof";return Nu=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Nu(e)}function Pu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Fu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Pu(Object(n),!0).forEach(function(t){Iu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Iu(e,t,n){return(t=Lu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lu(e){var t=Ru(e,`string`);return Nu(t)==`symbol`?t:t+``}function Ru(e,t){if(Nu(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nu(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function zu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;ro()&&ro().components?Zr(e):t?e():Fn(e)}var Bu=0;function Vu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=j(!1),r=j(e),i=j(null),a=Bl()?window.document:void 0,o=t.document,s=o===void 0?a:o,c=t.immediate,l=c===void 0||c,u=t.manual,d=u!==void 0&&u,f=t.name,p=f===void 0?`style_${++Bu}`:f,m=t.id,h=m===void 0?void 0:m,g=t.media,_=g===void 0?void 0:g,v=t.nonce,y=v===void 0?void 0:v,b=t.first,x=b!==void 0&&b,S=t.onMounted,C=S===void 0?void 0:S,w=t.onUpdated,T=w===void 0?void 0:w,ee=t.onLoad,te=ee===void 0?void 0:ee,E=t.props,ne=E===void 0?{}:E,D=function(){},re=function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(s){var o=Fu(Fu({},ne),a),c=o.name||p,l=o.id||h,u=o.nonce||y;i.value=s.querySelector(`style[data-primevue-style-id="${c}"]`)||s.getElementById(l)||s.createElement(`style`),i.value.isConnected||(r.value=t||e,Cl(i.value,{type:`text/css`,id:l,media:_,nonce:u}),x?s.head.prepend(i.value):s.head.appendChild(i.value),Wl(i.value,`data-primevue-style-id`,c),Cl(i.value,o),i.value.onload=function(e){return te?.(e,{name:c})},C?.(c)),!n.value&&(D=rr(r,function(e){i.value.textContent=e,T?.(c)},{immediate:!0}),n.value=!0)}};return l&&!d&&zu(re),{id:h,name:p,el:i,css:r,unload:function(){s&&n.value&&(D(),bl(i.value)&&s.head.removeChild(i.value),n.value=!1,i.value=null)},load:re,isLoaded:Kt(n)}}function Hu(e){"@babel/helpers - typeof";return Hu=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Hu(e)}var Uu,Wu,Gu,Ku;function qu(e,t){return Qu(e)||Zu(e,t)||Yu(e,t)||Ju()}function Ju(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
127
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yu(e,t){if(e){if(typeof e==`string`)return Xu(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xu(e,t):void 0}}function Xu(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Zu(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Qu(e){if(Array.isArray(e))return e}function $u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ed(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?$u(Object(n),!0).forEach(function(t){td(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function td(e,t,n){return(t=nd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nd(e){var t=rd(e,`string`);return Hu(t)==`symbol`?t:t+``}function rd(e,t){if(Hu(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hu(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function id(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var ad={name:`base`,css:function(e){var t=e.dt;return`
128
+ .p-hidden-accessible {
129
+ border: 0;
130
+ clip: rect(0 0 0 0);
131
+ height: 1px;
132
+ margin: -1px;
133
+ opacity: 0;
134
+ overflow: hidden;
135
+ padding: 0;
136
+ pointer-events: none;
137
+ position: absolute;
138
+ white-space: nowrap;
139
+ width: 1px;
140
+ }
141
+
142
+ .p-overflow-hidden {
143
+ overflow: hidden;
144
+ padding-right: ${t(`scrollbar.width`)};
145
+ }
146
+ `},style:Mu,classes:{},inlineStyles:{},load:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(e){return e})(Cu(Uu||=id([``,``]),e));return Pc(n)?Vu(Xc(n),ed({name:this.name},t)):{}},loadCSS:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.load(this.css,e)},loadStyle:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``;return this.load(this.style,t,function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``;return Eu.transformCSS(t.name||e.name,`${r}${Cu(Wu||=id([``,``]),n)}`)})},getCommonTheme:function(e){return Eu.getCommon(this.name,e)},getComponentTheme:function(e){return Eu.getComponent(this.name,e)},getDirectiveTheme:function(e){return Eu.getDirective(this.name,e)},getPresetTheme:function(e,t,n){return Eu.getCustomPreset(this.name,e,t,n)},getLayerOrderThemeCSS:function(){return Eu.getLayerOrderCSS(this.name)},getStyleSheet:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.css){var n=Vc(this.css,{dt:xu})||``,r=Xc(Cu(Gu||=id([``,``,``]),n,e)),i=Object.entries(t).reduce(function(e,t){var n=qu(t,2),r=n[0],i=n[1];return e.push(`${r}="${i}"`)&&e},[]).join(` `);return Pc(r)?`<style type="text/css" data-primevue-style-id="${this.name}" ${i}>${r}</style>`:``}return``},getCommonThemeStyleSheet:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Eu.getCommonStyleSheet(this.name,e,t)},getThemeStyleSheet:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[Eu.getStyleSheet(this.name,e,t)];if(this.style){var r=this.name===`base`?`global-style`:`${this.name}-style`,i=Cu(Ku||=id([``,``]),Vc(this.style,{dt:xu})),a=Xc(Eu.transformCSS(r,i)),o=Object.entries(t).reduce(function(e,t){var n=qu(t,2),r=n[0],i=n[1];return e.push(`${r}="${i}"`)&&e},[]).join(` `);Pc(a)&&n.push(`<style type="text/css" data-primevue-style-id="${r}" ${o}>${a}</style>`)}return n.join(``)},extend:function(e){return ed(ed({},this),{},{css:void 0,style:void 0},e)}},od=el();function sd(e){"@babel/helpers - typeof";return sd=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},sd(e)}function cd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ld(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?cd(Object(n),!0).forEach(function(t){ud(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ud(e,t,n){return(t=dd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dd(e){var t=fd(e,`string`);return sd(t)==`symbol`?t:t+``}function fd(e,t){if(sd(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sd(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var pd={ripple:!1,inputStyle:null,inputVariant:null,locale:{startsWith:`Starts with`,contains:`Contains`,notContains:`Not contains`,endsWith:`Ends with`,equals:`Equals`,notEquals:`Not equals`,noFilter:`No Filter`,lt:`Less than`,lte:`Less than or equal to`,gt:`Greater than`,gte:`Greater than or equal to`,dateIs:`Date is`,dateIsNot:`Date is not`,dateBefore:`Date is before`,dateAfter:`Date is after`,clear:`Clear`,apply:`Apply`,matchAll:`Match All`,matchAny:`Match Any`,addRule:`Add Rule`,removeRule:`Remove Rule`,accept:`Yes`,reject:`No`,choose:`Choose`,upload:`Upload`,cancel:`Cancel`,completed:`Completed`,pending:`Pending`,fileSizeTypes:[`B`,`KB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`],dayNames:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],dayNamesShort:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],dayNamesMin:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],monthNames:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthNamesShort:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],chooseYear:`Choose Year`,chooseMonth:`Choose Month`,chooseDate:`Choose Date`,prevDecade:`Previous Decade`,nextDecade:`Next Decade`,prevYear:`Previous Year`,nextYear:`Next Year`,prevMonth:`Previous Month`,nextMonth:`Next Month`,prevHour:`Previous Hour`,nextHour:`Next Hour`,prevMinute:`Previous Minute`,nextMinute:`Next Minute`,prevSecond:`Previous Second`,nextSecond:`Next Second`,am:`am`,pm:`pm`,today:`Today`,weekHeader:`Wk`,firstDayOfWeek:0,showMonthAfterYear:!1,dateFormat:`mm/dd/yy`,weak:`Weak`,medium:`Medium`,strong:`Strong`,passwordPrompt:`Enter a password`,emptyFilterMessage:`No results found`,searchMessage:`{0} results are available`,selectionMessage:`{0} items selected`,emptySelectionMessage:`No selected item`,emptySearchMessage:`No results found`,fileChosenMessage:`{0} files`,noFileChosenMessage:`No file chosen`,emptyMessage:`No available options`,aria:{trueLabel:`True`,falseLabel:`False`,nullLabel:`Not Selected`,star:`1 star`,stars:`{star} stars`,selectAll:`All items selected`,unselectAll:`All items unselected`,close:`Close`,previous:`Previous`,next:`Next`,navigation:`Navigation`,scrollTop:`Scroll Top`,moveTop:`Move Top`,moveUp:`Move Up`,moveDown:`Move Down`,moveBottom:`Move Bottom`,moveToTarget:`Move to Target`,moveToSource:`Move to Source`,moveAllToTarget:`Move All to Target`,moveAllToSource:`Move All to Source`,pageLabel:`Page {page}`,firstPageLabel:`First Page`,lastPageLabel:`Last Page`,nextPageLabel:`Next Page`,prevPageLabel:`Previous Page`,rowsPerPageLabel:`Rows per page`,jumpToPageDropdownLabel:`Jump to Page Dropdown`,jumpToPageInputLabel:`Jump to Page Input`,selectRow:`Row Selected`,unselectRow:`Row Unselected`,expandRow:`Row Expanded`,collapseRow:`Row Collapsed`,showFilterMenu:`Show Filter Menu`,hideFilterMenu:`Hide Filter Menu`,filterOperator:`Filter Operator`,filterConstraint:`Filter Constraint`,editRow:`Row Edit`,saveEdit:`Save Edit`,cancelEdit:`Cancel Edit`,listView:`List View`,gridView:`Grid View`,slide:`Slide`,slideNumber:`{slideNumber}`,zoomImage:`Zoom Image`,zoomIn:`Zoom In`,zoomOut:`Zoom Out`,rotateRight:`Rotate Right`,rotateLeft:`Rotate Left`,listLabel:`Option List`}},filterMatchModeOptions:{text:[Du.STARTS_WITH,Du.CONTAINS,Du.NOT_CONTAINS,Du.ENDS_WITH,Du.EQUALS,Du.NOT_EQUALS],numeric:[Du.EQUALS,Du.NOT_EQUALS,Du.LESS_THAN,Du.LESS_THAN_OR_EQUAL_TO,Du.GREATER_THAN,Du.GREATER_THAN_OR_EQUAL_TO],date:[Du.DATE_IS,Du.DATE_IS_NOT,Du.DATE_BEFORE,Du.DATE_AFTER]},zIndex:{modal:1100,overlay:1e3,menu:1e3,tooltip:1100},theme:void 0,unstyled:!1,pt:void 0,ptOptions:{mergeSections:!0,mergeProps:!1},csp:{nonce:void 0}},md=Symbol();function hd(e,t){var n={config:Wt(t)};return e.config.globalProperties.$primevue=n,e.provide(md,n),_d(),vd(e,n),n}var gd=[];function _d(){ou.clear(),gd.forEach(function(e){return e?.()}),gd=[]}function vd(e,t){var n=j(!1),r=function(){if(t.config?.theme!==`none`&&!Eu.isStyleNameLoaded(`common`)){var e,n=ad.getCommonTheme?.call(ad)||{},r=n.primitive,i=n.semantic,a=n.global,o=n.style,s={nonce:(e=t.config)==null||(e=e.csp)==null?void 0:e.nonce};ad.load(r?.css,ld({name:`primitive-variables`},s)),ad.load(i?.css,ld({name:`semantic-variables`},s)),ad.load(a?.css,ld({name:`global-variables`},s)),ad.loadStyle(ld({name:`global-style`},s),o),Eu.setLoadedStyleName(`common`)}};ou.on(`theme:change`,function(t){n.value||=(e.config.globalProperties.$primevue.config.theme=t,!0)});var i=rr(t.config,function(e,t){od.emit(`config:change`,{newValue:e,oldValue:t})},{immediate:!0,deep:!0}),a=rr(function(){return t.config.ripple},function(e,t){od.emit(`config:ripple:change`,{newValue:e,oldValue:t})},{immediate:!0,deep:!0}),o=rr(function(){return t.config.theme},function(e,i){n.value||Eu.setTheme(e),t.config.unstyled||r(),n.value=!1,od.emit(`config:theme:change`,{newValue:e,oldValue:i})},{immediate:!0,deep:!1}),s=rr(function(){return t.config.unstyled},function(e,n){!e&&t.config.theme&&r(),od.emit(`config:unstyled:change`,{newValue:e,oldValue:n})},{immediate:!0,deep:!0});gd.push(i),gd.push(a),gd.push(o),gd.push(s)}var yd={install:function(e,t){hd(e,Yc(pd,t))}},bd={root:{transitionDuration:`{transition.duration}`},panel:{borderWidth:`0 0 1px 0`,borderColor:`{content.border.color}`},header:{color:`{text.muted.color}`,hoverColor:`{text.color}`,activeColor:`{text.color}`,activeHoverColor:`{text.color}`,padding:`1.125rem`,fontWeight:`600`,borderRadius:`0`,borderWidth:`0`,borderColor:`{content.border.color}`,background:`{content.background}`,hoverBackground:`{content.background}`,activeBackground:`{content.background}`,activeHoverBackground:`{content.background}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`-1px`,shadow:`{focus.ring.shadow}`},toggleIcon:{color:`{text.muted.color}`,hoverColor:`{text.color}`,activeColor:`{text.color}`,activeHoverColor:`{text.color}`},first:{topBorderRadius:`{content.border.radius}`,borderWidth:`0`},last:{bottomBorderRadius:`{content.border.radius}`,activeBottomBorderRadius:`0`}},content:{borderWidth:`0`,borderColor:`{content.border.color}`,background:`{content.background}`,color:`{text.color}`,padding:`0 1.125rem 1.125rem 1.125rem`}},xd={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledHoverBackground:`{form.field.filled.hover.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,invalidPlaceholderColor:`{form.field.invalid.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`},overlay:{background:`{overlay.select.background}`,borderColor:`{overlay.select.border.color}`,borderRadius:`{overlay.select.border.radius}`,color:`{overlay.select.color}`,shadow:`{overlay.select.shadow}`},list:{padding:`{list.padding}`,gap:`{list.gap}`},option:{focusBackground:`{list.option.focus.background}`,selectedBackground:`{list.option.selected.background}`,selectedFocusBackground:`{list.option.selected.focus.background}`,color:`{list.option.color}`,focusColor:`{list.option.focus.color}`,selectedColor:`{list.option.selected.color}`,selectedFocusColor:`{list.option.selected.focus.color}`,padding:`{list.option.padding}`,borderRadius:`{list.option.border.radius}`},optionGroup:{background:`{list.option.group.background}`,color:`{list.option.group.color}`,fontWeight:`{list.option.group.font.weight}`,padding:`{list.option.group.padding}`},dropdown:{width:`2.5rem`,sm:{width:`2rem`},lg:{width:`3rem`},borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.border.color}`,activeBorderColor:`{form.field.border.color}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},chip:{borderRadius:`{border.radius.sm}`},emptyMessage:{padding:`{list.option.padding}`},colorScheme:{light:{chip:{focusBackground:`{surface.200}`,focusColor:`{surface.800}`},dropdown:{background:`{surface.100}`,hoverBackground:`{surface.200}`,activeBackground:`{surface.300}`,color:`{surface.600}`,hoverColor:`{surface.700}`,activeColor:`{surface.800}`}},dark:{chip:{focusBackground:`{surface.700}`,focusColor:`{surface.0}`},dropdown:{background:`{surface.800}`,hoverBackground:`{surface.700}`,activeBackground:`{surface.600}`,color:`{surface.300}`,hoverColor:`{surface.200}`,activeColor:`{surface.100}`}}}},Sd={root:{width:`2rem`,height:`2rem`,fontSize:`1rem`,background:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`},icon:{size:`1rem`},group:{borderColor:`{content.background}`,offset:`-0.75rem`},lg:{width:`3rem`,height:`3rem`,fontSize:`1.5rem`,icon:{size:`1.5rem`},group:{offset:`-1rem`}},xl:{width:`4rem`,height:`4rem`,fontSize:`2rem`,icon:{size:`2rem`},group:{offset:`-1.5rem`}}},Cd={root:{borderRadius:`{border.radius.md}`,padding:`0 0.5rem`,fontSize:`0.75rem`,fontWeight:`700`,minWidth:`1.5rem`,height:`1.5rem`},dot:{size:`0.5rem`},sm:{fontSize:`0.625rem`,minWidth:`1.25rem`,height:`1.25rem`},lg:{fontSize:`0.875rem`,minWidth:`1.75rem`,height:`1.75rem`},xl:{fontSize:`1rem`,minWidth:`2rem`,height:`2rem`},colorScheme:{light:{primary:{background:`{primary.color}`,color:`{primary.contrast.color}`},secondary:{background:`{surface.100}`,color:`{surface.600}`},success:{background:`{green.500}`,color:`{surface.0}`},info:{background:`{sky.500}`,color:`{surface.0}`},warn:{background:`{orange.500}`,color:`{surface.0}`},danger:{background:`{red.500}`,color:`{surface.0}`},contrast:{background:`{surface.950}`,color:`{surface.0}`}},dark:{primary:{background:`{primary.color}`,color:`{primary.contrast.color}`},secondary:{background:`{surface.800}`,color:`{surface.300}`},success:{background:`{green.400}`,color:`{green.950}`},info:{background:`{sky.400}`,color:`{sky.950}`},warn:{background:`{orange.400}`,color:`{orange.950}`},danger:{background:`{red.400}`,color:`{red.950}`},contrast:{background:`{surface.0}`,color:`{surface.950}`}}}},wd={primitive:{borderRadius:{none:`0`,xs:`2px`,sm:`4px`,md:`6px`,lg:`8px`,xl:`12px`},emerald:{50:`#ecfdf5`,100:`#d1fae5`,200:`#a7f3d0`,300:`#6ee7b7`,400:`#34d399`,500:`#10b981`,600:`#059669`,700:`#047857`,800:`#065f46`,900:`#064e3b`,950:`#022c22`},green:{50:`#f0fdf4`,100:`#dcfce7`,200:`#bbf7d0`,300:`#86efac`,400:`#4ade80`,500:`#22c55e`,600:`#16a34a`,700:`#15803d`,800:`#166534`,900:`#14532d`,950:`#052e16`},lime:{50:`#f7fee7`,100:`#ecfccb`,200:`#d9f99d`,300:`#bef264`,400:`#a3e635`,500:`#84cc16`,600:`#65a30d`,700:`#4d7c0f`,800:`#3f6212`,900:`#365314`,950:`#1a2e05`},red:{50:`#fef2f2`,100:`#fee2e2`,200:`#fecaca`,300:`#fca5a5`,400:`#f87171`,500:`#ef4444`,600:`#dc2626`,700:`#b91c1c`,800:`#991b1b`,900:`#7f1d1d`,950:`#450a0a`},orange:{50:`#fff7ed`,100:`#ffedd5`,200:`#fed7aa`,300:`#fdba74`,400:`#fb923c`,500:`#f97316`,600:`#ea580c`,700:`#c2410c`,800:`#9a3412`,900:`#7c2d12`,950:`#431407`},amber:{50:`#fffbeb`,100:`#fef3c7`,200:`#fde68a`,300:`#fcd34d`,400:`#fbbf24`,500:`#f59e0b`,600:`#d97706`,700:`#b45309`,800:`#92400e`,900:`#78350f`,950:`#451a03`},yellow:{50:`#fefce8`,100:`#fef9c3`,200:`#fef08a`,300:`#fde047`,400:`#facc15`,500:`#eab308`,600:`#ca8a04`,700:`#a16207`,800:`#854d0e`,900:`#713f12`,950:`#422006`},teal:{50:`#f0fdfa`,100:`#ccfbf1`,200:`#99f6e4`,300:`#5eead4`,400:`#2dd4bf`,500:`#14b8a6`,600:`#0d9488`,700:`#0f766e`,800:`#115e59`,900:`#134e4a`,950:`#042f2e`},cyan:{50:`#ecfeff`,100:`#cffafe`,200:`#a5f3fc`,300:`#67e8f9`,400:`#22d3ee`,500:`#06b6d4`,600:`#0891b2`,700:`#0e7490`,800:`#155e75`,900:`#164e63`,950:`#083344`},sky:{50:`#f0f9ff`,100:`#e0f2fe`,200:`#bae6fd`,300:`#7dd3fc`,400:`#38bdf8`,500:`#0ea5e9`,600:`#0284c7`,700:`#0369a1`,800:`#075985`,900:`#0c4a6e`,950:`#082f49`},blue:{50:`#eff6ff`,100:`#dbeafe`,200:`#bfdbfe`,300:`#93c5fd`,400:`#60a5fa`,500:`#3b82f6`,600:`#2563eb`,700:`#1d4ed8`,800:`#1e40af`,900:`#1e3a8a`,950:`#172554`},indigo:{50:`#eef2ff`,100:`#e0e7ff`,200:`#c7d2fe`,300:`#a5b4fc`,400:`#818cf8`,500:`#6366f1`,600:`#4f46e5`,700:`#4338ca`,800:`#3730a3`,900:`#312e81`,950:`#1e1b4b`},violet:{50:`#f5f3ff`,100:`#ede9fe`,200:`#ddd6fe`,300:`#c4b5fd`,400:`#a78bfa`,500:`#8b5cf6`,600:`#7c3aed`,700:`#6d28d9`,800:`#5b21b6`,900:`#4c1d95`,950:`#2e1065`},purple:{50:`#faf5ff`,100:`#f3e8ff`,200:`#e9d5ff`,300:`#d8b4fe`,400:`#c084fc`,500:`#a855f7`,600:`#9333ea`,700:`#7e22ce`,800:`#6b21a8`,900:`#581c87`,950:`#3b0764`},fuchsia:{50:`#fdf4ff`,100:`#fae8ff`,200:`#f5d0fe`,300:`#f0abfc`,400:`#e879f9`,500:`#d946ef`,600:`#c026d3`,700:`#a21caf`,800:`#86198f`,900:`#701a75`,950:`#4a044e`},pink:{50:`#fdf2f8`,100:`#fce7f3`,200:`#fbcfe8`,300:`#f9a8d4`,400:`#f472b6`,500:`#ec4899`,600:`#db2777`,700:`#be185d`,800:`#9d174d`,900:`#831843`,950:`#500724`},rose:{50:`#fff1f2`,100:`#ffe4e6`,200:`#fecdd3`,300:`#fda4af`,400:`#fb7185`,500:`#f43f5e`,600:`#e11d48`,700:`#be123c`,800:`#9f1239`,900:`#881337`,950:`#4c0519`},slate:{50:`#f8fafc`,100:`#f1f5f9`,200:`#e2e8f0`,300:`#cbd5e1`,400:`#94a3b8`,500:`#64748b`,600:`#475569`,700:`#334155`,800:`#1e293b`,900:`#0f172a`,950:`#020617`},gray:{50:`#f9fafb`,100:`#f3f4f6`,200:`#e5e7eb`,300:`#d1d5db`,400:`#9ca3af`,500:`#6b7280`,600:`#4b5563`,700:`#374151`,800:`#1f2937`,900:`#111827`,950:`#030712`},zinc:{50:`#fafafa`,100:`#f4f4f5`,200:`#e4e4e7`,300:`#d4d4d8`,400:`#a1a1aa`,500:`#71717a`,600:`#52525b`,700:`#3f3f46`,800:`#27272a`,900:`#18181b`,950:`#09090b`},neutral:{50:`#fafafa`,100:`#f5f5f5`,200:`#e5e5e5`,300:`#d4d4d4`,400:`#a3a3a3`,500:`#737373`,600:`#525252`,700:`#404040`,800:`#262626`,900:`#171717`,950:`#0a0a0a`},stone:{50:`#fafaf9`,100:`#f5f5f4`,200:`#e7e5e4`,300:`#d6d3d1`,400:`#a8a29e`,500:`#78716c`,600:`#57534e`,700:`#44403c`,800:`#292524`,900:`#1c1917`,950:`#0c0a09`}},semantic:{transitionDuration:`0.2s`,focusRing:{width:`1px`,style:`solid`,color:`{primary.color}`,offset:`2px`,shadow:`none`},disabledOpacity:`0.6`,iconSize:`1rem`,anchorGutter:`2px`,primary:{50:`{emerald.50}`,100:`{emerald.100}`,200:`{emerald.200}`,300:`{emerald.300}`,400:`{emerald.400}`,500:`{emerald.500}`,600:`{emerald.600}`,700:`{emerald.700}`,800:`{emerald.800}`,900:`{emerald.900}`,950:`{emerald.950}`},formField:{paddingX:`0.75rem`,paddingY:`0.5rem`,sm:{fontSize:`0.875rem`,paddingX:`0.625rem`,paddingY:`0.375rem`},lg:{fontSize:`1.125rem`,paddingX:`0.875rem`,paddingY:`0.625rem`},borderRadius:`{border.radius.md}`,focusRing:{width:`0`,style:`none`,color:`transparent`,offset:`0`,shadow:`none`},transitionDuration:`{transition.duration}`},list:{padding:`0.25rem 0.25rem`,gap:`2px`,header:{padding:`0.5rem 1rem 0.25rem 1rem`},option:{padding:`0.5rem 0.75rem`,borderRadius:`{border.radius.sm}`},optionGroup:{padding:`0.5rem 0.75rem`,fontWeight:`600`}},content:{borderRadius:`{border.radius.md}`},mask:{transitionDuration:`0.3s`},navigation:{list:{padding:`0.25rem 0.25rem`,gap:`2px`},item:{padding:`0.5rem 0.75rem`,borderRadius:`{border.radius.sm}`,gap:`0.5rem`},submenuLabel:{padding:`0.5rem 0.75rem`,fontWeight:`600`},submenuIcon:{size:`0.875rem`}},overlay:{select:{borderRadius:`{border.radius.md}`,shadow:`0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)`},popover:{borderRadius:`{border.radius.md}`,padding:`0.75rem`,shadow:`0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)`},modal:{borderRadius:`{border.radius.xl}`,padding:`1.25rem`,shadow:`0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)`},navigation:{shadow:`0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)`}},colorScheme:{light:{surface:{0:`#ffffff`,50:`{slate.50}`,100:`{slate.100}`,200:`{slate.200}`,300:`{slate.300}`,400:`{slate.400}`,500:`{slate.500}`,600:`{slate.600}`,700:`{slate.700}`,800:`{slate.800}`,900:`{slate.900}`,950:`{slate.950}`},primary:{color:`{primary.500}`,contrastColor:`#ffffff`,hoverColor:`{primary.600}`,activeColor:`{primary.700}`},highlight:{background:`{primary.50}`,focusBackground:`{primary.100}`,color:`{primary.700}`,focusColor:`{primary.800}`},mask:{background:`rgba(0,0,0,0.4)`,color:`{surface.200}`},formField:{background:`{surface.0}`,disabledBackground:`{surface.200}`,filledBackground:`{surface.50}`,filledHoverBackground:`{surface.50}`,filledFocusBackground:`{surface.50}`,borderColor:`{surface.300}`,hoverBorderColor:`{surface.400}`,focusBorderColor:`{primary.color}`,invalidBorderColor:`{red.400}`,color:`{surface.700}`,disabledColor:`{surface.500}`,placeholderColor:`{surface.500}`,invalidPlaceholderColor:`{red.600}`,floatLabelColor:`{surface.500}`,floatLabelFocusColor:`{primary.600}`,floatLabelActiveColor:`{surface.500}`,floatLabelInvalidColor:`{form.field.invalid.placeholder.color}`,iconColor:`{surface.400}`,shadow:`0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)`},text:{color:`{surface.700}`,hoverColor:`{surface.800}`,mutedColor:`{surface.500}`,hoverMutedColor:`{surface.600}`},content:{background:`{surface.0}`,hoverBackground:`{surface.100}`,borderColor:`{surface.200}`,color:`{text.color}`,hoverColor:`{text.hover.color}`},overlay:{select:{background:`{surface.0}`,borderColor:`{surface.200}`,color:`{text.color}`},popover:{background:`{surface.0}`,borderColor:`{surface.200}`,color:`{text.color}`},modal:{background:`{surface.0}`,borderColor:`{surface.200}`,color:`{text.color}`}},list:{option:{focusBackground:`{surface.100}`,selectedBackground:`{highlight.background}`,selectedFocusBackground:`{highlight.focus.background}`,color:`{text.color}`,focusColor:`{text.hover.color}`,selectedColor:`{highlight.color}`,selectedFocusColor:`{highlight.focus.color}`,icon:{color:`{surface.400}`,focusColor:`{surface.500}`}},optionGroup:{background:`transparent`,color:`{text.muted.color}`}},navigation:{item:{focusBackground:`{surface.100}`,activeBackground:`{surface.100}`,color:`{text.color}`,focusColor:`{text.hover.color}`,activeColor:`{text.hover.color}`,icon:{color:`{surface.400}`,focusColor:`{surface.500}`,activeColor:`{surface.500}`}},submenuLabel:{background:`transparent`,color:`{text.muted.color}`},submenuIcon:{color:`{surface.400}`,focusColor:`{surface.500}`,activeColor:`{surface.500}`}}},dark:{surface:{0:`#ffffff`,50:`{zinc.50}`,100:`{zinc.100}`,200:`{zinc.200}`,300:`{zinc.300}`,400:`{zinc.400}`,500:`{zinc.500}`,600:`{zinc.600}`,700:`{zinc.700}`,800:`{zinc.800}`,900:`{zinc.900}`,950:`{zinc.950}`},primary:{color:`{primary.400}`,contrastColor:`{surface.900}`,hoverColor:`{primary.300}`,activeColor:`{primary.200}`},highlight:{background:`color-mix(in srgb, {primary.400}, transparent 84%)`,focusBackground:`color-mix(in srgb, {primary.400}, transparent 76%)`,color:`rgba(255,255,255,.87)`,focusColor:`rgba(255,255,255,.87)`},mask:{background:`rgba(0,0,0,0.6)`,color:`{surface.200}`},formField:{background:`{surface.950}`,disabledBackground:`{surface.700}`,filledBackground:`{surface.800}`,filledHoverBackground:`{surface.800}`,filledFocusBackground:`{surface.800}`,borderColor:`{surface.600}`,hoverBorderColor:`{surface.500}`,focusBorderColor:`{primary.color}`,invalidBorderColor:`{red.300}`,color:`{surface.0}`,disabledColor:`{surface.400}`,placeholderColor:`{surface.400}`,invalidPlaceholderColor:`{red.400}`,floatLabelColor:`{surface.400}`,floatLabelFocusColor:`{primary.color}`,floatLabelActiveColor:`{surface.400}`,floatLabelInvalidColor:`{form.field.invalid.placeholder.color}`,iconColor:`{surface.400}`,shadow:`0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)`},text:{color:`{surface.0}`,hoverColor:`{surface.0}`,mutedColor:`{surface.400}`,hoverMutedColor:`{surface.300}`},content:{background:`{surface.900}`,hoverBackground:`{surface.800}`,borderColor:`{surface.700}`,color:`{text.color}`,hoverColor:`{text.hover.color}`},overlay:{select:{background:`{surface.900}`,borderColor:`{surface.700}`,color:`{text.color}`},popover:{background:`{surface.900}`,borderColor:`{surface.700}`,color:`{text.color}`},modal:{background:`{surface.900}`,borderColor:`{surface.700}`,color:`{text.color}`}},list:{option:{focusBackground:`{surface.800}`,selectedBackground:`{highlight.background}`,selectedFocusBackground:`{highlight.focus.background}`,color:`{text.color}`,focusColor:`{text.hover.color}`,selectedColor:`{highlight.color}`,selectedFocusColor:`{highlight.focus.color}`,icon:{color:`{surface.500}`,focusColor:`{surface.400}`}},optionGroup:{background:`transparent`,color:`{text.muted.color}`}},navigation:{item:{focusBackground:`{surface.800}`,activeBackground:`{surface.800}`,color:`{text.color}`,focusColor:`{text.hover.color}`,activeColor:`{text.hover.color}`,icon:{color:`{surface.500}`,focusColor:`{surface.400}`,activeColor:`{surface.400}`}},submenuLabel:{background:`transparent`,color:`{text.muted.color}`},submenuIcon:{color:`{surface.500}`,focusColor:`{surface.400}`,activeColor:`{surface.400}`}}}}}},Td={root:{borderRadius:`{content.border.radius}`}},Ed={root:{padding:`1rem`,background:`{content.background}`,gap:`0.5rem`,transitionDuration:`{transition.duration}`},item:{color:`{text.muted.color}`,hoverColor:`{text.color}`,borderRadius:`{content.border.radius}`,gap:`{navigation.item.gap}`,icon:{color:`{navigation.item.icon.color}`,hoverColor:`{navigation.item.icon.focus.color}`},focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},separator:{color:`{navigation.item.icon.color}`}},Dd={root:{borderRadius:`{form.field.border.radius}`,roundedBorderRadius:`2rem`,gap:`0.5rem`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,iconOnlyWidth:`2.5rem`,sm:{fontSize:`{form.field.sm.font.size}`,paddingX:`{form.field.sm.padding.x}`,paddingY:`{form.field.sm.padding.y}`,iconOnlyWidth:`2rem`},lg:{fontSize:`{form.field.lg.font.size}`,paddingX:`{form.field.lg.padding.x}`,paddingY:`{form.field.lg.padding.y}`,iconOnlyWidth:`3rem`},label:{fontWeight:`500`},raisedShadow:`0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,offset:`{focus.ring.offset}`},badgeSize:`1rem`,transitionDuration:`{form.field.transition.duration}`},colorScheme:{light:{root:{primary:{background:`{primary.color}`,hoverBackground:`{primary.hover.color}`,activeBackground:`{primary.active.color}`,borderColor:`{primary.color}`,hoverBorderColor:`{primary.hover.color}`,activeBorderColor:`{primary.active.color}`,color:`{primary.contrast.color}`,hoverColor:`{primary.contrast.color}`,activeColor:`{primary.contrast.color}`,focusRing:{color:`{primary.color}`,shadow:`none`}},secondary:{background:`{surface.100}`,hoverBackground:`{surface.200}`,activeBackground:`{surface.300}`,borderColor:`{surface.100}`,hoverBorderColor:`{surface.200}`,activeBorderColor:`{surface.300}`,color:`{surface.600}`,hoverColor:`{surface.700}`,activeColor:`{surface.800}`,focusRing:{color:`{surface.600}`,shadow:`none`}},info:{background:`{sky.500}`,hoverBackground:`{sky.600}`,activeBackground:`{sky.700}`,borderColor:`{sky.500}`,hoverBorderColor:`{sky.600}`,activeBorderColor:`{sky.700}`,color:`#ffffff`,hoverColor:`#ffffff`,activeColor:`#ffffff`,focusRing:{color:`{sky.500}`,shadow:`none`}},success:{background:`{green.500}`,hoverBackground:`{green.600}`,activeBackground:`{green.700}`,borderColor:`{green.500}`,hoverBorderColor:`{green.600}`,activeBorderColor:`{green.700}`,color:`#ffffff`,hoverColor:`#ffffff`,activeColor:`#ffffff`,focusRing:{color:`{green.500}`,shadow:`none`}},warn:{background:`{orange.500}`,hoverBackground:`{orange.600}`,activeBackground:`{orange.700}`,borderColor:`{orange.500}`,hoverBorderColor:`{orange.600}`,activeBorderColor:`{orange.700}`,color:`#ffffff`,hoverColor:`#ffffff`,activeColor:`#ffffff`,focusRing:{color:`{orange.500}`,shadow:`none`}},help:{background:`{purple.500}`,hoverBackground:`{purple.600}`,activeBackground:`{purple.700}`,borderColor:`{purple.500}`,hoverBorderColor:`{purple.600}`,activeBorderColor:`{purple.700}`,color:`#ffffff`,hoverColor:`#ffffff`,activeColor:`#ffffff`,focusRing:{color:`{purple.500}`,shadow:`none`}},danger:{background:`{red.500}`,hoverBackground:`{red.600}`,activeBackground:`{red.700}`,borderColor:`{red.500}`,hoverBorderColor:`{red.600}`,activeBorderColor:`{red.700}`,color:`#ffffff`,hoverColor:`#ffffff`,activeColor:`#ffffff`,focusRing:{color:`{red.500}`,shadow:`none`}},contrast:{background:`{surface.950}`,hoverBackground:`{surface.900}`,activeBackground:`{surface.800}`,borderColor:`{surface.950}`,hoverBorderColor:`{surface.900}`,activeBorderColor:`{surface.800}`,color:`{surface.0}`,hoverColor:`{surface.0}`,activeColor:`{surface.0}`,focusRing:{color:`{surface.950}`,shadow:`none`}}},outlined:{primary:{hoverBackground:`{primary.50}`,activeBackground:`{primary.100}`,borderColor:`{primary.200}`,color:`{primary.color}`},secondary:{hoverBackground:`{surface.50}`,activeBackground:`{surface.100}`,borderColor:`{surface.200}`,color:`{surface.500}`},success:{hoverBackground:`{green.50}`,activeBackground:`{green.100}`,borderColor:`{green.200}`,color:`{green.500}`},info:{hoverBackground:`{sky.50}`,activeBackground:`{sky.100}`,borderColor:`{sky.200}`,color:`{sky.500}`},warn:{hoverBackground:`{orange.50}`,activeBackground:`{orange.100}`,borderColor:`{orange.200}`,color:`{orange.500}`},help:{hoverBackground:`{purple.50}`,activeBackground:`{purple.100}`,borderColor:`{purple.200}`,color:`{purple.500}`},danger:{hoverBackground:`{red.50}`,activeBackground:`{red.100}`,borderColor:`{red.200}`,color:`{red.500}`},contrast:{hoverBackground:`{surface.50}`,activeBackground:`{surface.100}`,borderColor:`{surface.700}`,color:`{surface.950}`},plain:{hoverBackground:`{surface.50}`,activeBackground:`{surface.100}`,borderColor:`{surface.200}`,color:`{surface.700}`}},text:{primary:{hoverBackground:`{primary.50}`,activeBackground:`{primary.100}`,color:`{primary.color}`},secondary:{hoverBackground:`{surface.50}`,activeBackground:`{surface.100}`,color:`{surface.500}`},success:{hoverBackground:`{green.50}`,activeBackground:`{green.100}`,color:`{green.500}`},info:{hoverBackground:`{sky.50}`,activeBackground:`{sky.100}`,color:`{sky.500}`},warn:{hoverBackground:`{orange.50}`,activeBackground:`{orange.100}`,color:`{orange.500}`},help:{hoverBackground:`{purple.50}`,activeBackground:`{purple.100}`,color:`{purple.500}`},danger:{hoverBackground:`{red.50}`,activeBackground:`{red.100}`,color:`{red.500}`},contrast:{hoverBackground:`{surface.50}`,activeBackground:`{surface.100}`,color:`{surface.950}`},plain:{hoverBackground:`{surface.50}`,activeBackground:`{surface.100}`,color:`{surface.700}`}},link:{color:`{primary.color}`,hoverColor:`{primary.color}`,activeColor:`{primary.color}`}},dark:{root:{primary:{background:`{primary.color}`,hoverBackground:`{primary.hover.color}`,activeBackground:`{primary.active.color}`,borderColor:`{primary.color}`,hoverBorderColor:`{primary.hover.color}`,activeBorderColor:`{primary.active.color}`,color:`{primary.contrast.color}`,hoverColor:`{primary.contrast.color}`,activeColor:`{primary.contrast.color}`,focusRing:{color:`{primary.color}`,shadow:`none`}},secondary:{background:`{surface.800}`,hoverBackground:`{surface.700}`,activeBackground:`{surface.600}`,borderColor:`{surface.800}`,hoverBorderColor:`{surface.700}`,activeBorderColor:`{surface.600}`,color:`{surface.300}`,hoverColor:`{surface.200}`,activeColor:`{surface.100}`,focusRing:{color:`{surface.300}`,shadow:`none`}},info:{background:`{sky.400}`,hoverBackground:`{sky.300}`,activeBackground:`{sky.200}`,borderColor:`{sky.400}`,hoverBorderColor:`{sky.300}`,activeBorderColor:`{sky.200}`,color:`{sky.950}`,hoverColor:`{sky.950}`,activeColor:`{sky.950}`,focusRing:{color:`{sky.400}`,shadow:`none`}},success:{background:`{green.400}`,hoverBackground:`{green.300}`,activeBackground:`{green.200}`,borderColor:`{green.400}`,hoverBorderColor:`{green.300}`,activeBorderColor:`{green.200}`,color:`{green.950}`,hoverColor:`{green.950}`,activeColor:`{green.950}`,focusRing:{color:`{green.400}`,shadow:`none`}},warn:{background:`{orange.400}`,hoverBackground:`{orange.300}`,activeBackground:`{orange.200}`,borderColor:`{orange.400}`,hoverBorderColor:`{orange.300}`,activeBorderColor:`{orange.200}`,color:`{orange.950}`,hoverColor:`{orange.950}`,activeColor:`{orange.950}`,focusRing:{color:`{orange.400}`,shadow:`none`}},help:{background:`{purple.400}`,hoverBackground:`{purple.300}`,activeBackground:`{purple.200}`,borderColor:`{purple.400}`,hoverBorderColor:`{purple.300}`,activeBorderColor:`{purple.200}`,color:`{purple.950}`,hoverColor:`{purple.950}`,activeColor:`{purple.950}`,focusRing:{color:`{purple.400}`,shadow:`none`}},danger:{background:`{red.400}`,hoverBackground:`{red.300}`,activeBackground:`{red.200}`,borderColor:`{red.400}`,hoverBorderColor:`{red.300}`,activeBorderColor:`{red.200}`,color:`{red.950}`,hoverColor:`{red.950}`,activeColor:`{red.950}`,focusRing:{color:`{red.400}`,shadow:`none`}},contrast:{background:`{surface.0}`,hoverBackground:`{surface.100}`,activeBackground:`{surface.200}`,borderColor:`{surface.0}`,hoverBorderColor:`{surface.100}`,activeBorderColor:`{surface.200}`,color:`{surface.950}`,hoverColor:`{surface.950}`,activeColor:`{surface.950}`,focusRing:{color:`{surface.0}`,shadow:`none`}}},outlined:{primary:{hoverBackground:`color-mix(in srgb, {primary.color}, transparent 96%)`,activeBackground:`color-mix(in srgb, {primary.color}, transparent 84%)`,borderColor:`{primary.700}`,color:`{primary.color}`},secondary:{hoverBackground:`rgba(255,255,255,0.04)`,activeBackground:`rgba(255,255,255,0.16)`,borderColor:`{surface.700}`,color:`{surface.400}`},success:{hoverBackground:`color-mix(in srgb, {green.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {green.400}, transparent 84%)`,borderColor:`{green.700}`,color:`{green.400}`},info:{hoverBackground:`color-mix(in srgb, {sky.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {sky.400}, transparent 84%)`,borderColor:`{sky.700}`,color:`{sky.400}`},warn:{hoverBackground:`color-mix(in srgb, {orange.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {orange.400}, transparent 84%)`,borderColor:`{orange.700}`,color:`{orange.400}`},help:{hoverBackground:`color-mix(in srgb, {purple.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {purple.400}, transparent 84%)`,borderColor:`{purple.700}`,color:`{purple.400}`},danger:{hoverBackground:`color-mix(in srgb, {red.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {red.400}, transparent 84%)`,borderColor:`{red.700}`,color:`{red.400}`},contrast:{hoverBackground:`{surface.800}`,activeBackground:`{surface.700}`,borderColor:`{surface.500}`,color:`{surface.0}`},plain:{hoverBackground:`{surface.800}`,activeBackground:`{surface.700}`,borderColor:`{surface.600}`,color:`{surface.0}`}},text:{primary:{hoverBackground:`color-mix(in srgb, {primary.color}, transparent 96%)`,activeBackground:`color-mix(in srgb, {primary.color}, transparent 84%)`,color:`{primary.color}`},secondary:{hoverBackground:`{surface.800}`,activeBackground:`{surface.700}`,color:`{surface.400}`},success:{hoverBackground:`color-mix(in srgb, {green.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {green.400}, transparent 84%)`,color:`{green.400}`},info:{hoverBackground:`color-mix(in srgb, {sky.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {sky.400}, transparent 84%)`,color:`{sky.400}`},warn:{hoverBackground:`color-mix(in srgb, {orange.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {orange.400}, transparent 84%)`,color:`{orange.400}`},help:{hoverBackground:`color-mix(in srgb, {purple.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {purple.400}, transparent 84%)`,color:`{purple.400}`},danger:{hoverBackground:`color-mix(in srgb, {red.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {red.400}, transparent 84%)`,color:`{red.400}`},contrast:{hoverBackground:`{surface.800}`,activeBackground:`{surface.700}`,color:`{surface.0}`},plain:{hoverBackground:`{surface.800}`,activeBackground:`{surface.700}`,color:`{surface.0}`}},link:{color:`{primary.color}`,hoverColor:`{primary.color}`,activeColor:`{primary.color}`}}}},Od={root:{background:`{content.background}`,borderRadius:`{border.radius.xl}`,color:`{content.color}`,shadow:`0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)`},body:{padding:`1.25rem`,gap:`0.5rem`},caption:{gap:`0.5rem`},title:{fontSize:`1.25rem`,fontWeight:`500`},subtitle:{color:`{text.muted.color}`}},kd={root:{transitionDuration:`{transition.duration}`},content:{gap:`0.25rem`},indicatorList:{padding:`1rem`,gap:`0.5rem`},indicator:{width:`2rem`,height:`0.5rem`,borderRadius:`{content.border.radius}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},colorScheme:{light:{indicator:{background:`{surface.200}`,hoverBackground:`{surface.300}`,activeBackground:`{primary.color}`}},dark:{indicator:{background:`{surface.700}`,hoverBackground:`{surface.600}`,activeBackground:`{primary.color}`}}}},Ad={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledHoverBackground:`{form.field.filled.hover.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,invalidPlaceholderColor:`{form.field.invalid.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{fontSize:`{form.field.sm.font.size}`,paddingX:`{form.field.sm.padding.x}`,paddingY:`{form.field.sm.padding.y}`},lg:{fontSize:`{form.field.lg.font.size}`,paddingX:`{form.field.lg.padding.x}`,paddingY:`{form.field.lg.padding.y}`}},dropdown:{width:`2.5rem`,color:`{form.field.icon.color}`},overlay:{background:`{overlay.select.background}`,borderColor:`{overlay.select.border.color}`,borderRadius:`{overlay.select.border.radius}`,color:`{overlay.select.color}`,shadow:`{overlay.select.shadow}`},list:{padding:`{list.padding}`,gap:`{list.gap}`,mobileIndent:`1rem`},option:{focusBackground:`{list.option.focus.background}`,selectedBackground:`{list.option.selected.background}`,selectedFocusBackground:`{list.option.selected.focus.background}`,color:`{list.option.color}`,focusColor:`{list.option.focus.color}`,selectedColor:`{list.option.selected.color}`,selectedFocusColor:`{list.option.selected.focus.color}`,padding:`{list.option.padding}`,borderRadius:`{list.option.border.radius}`,icon:{color:`{list.option.icon.color}`,focusColor:`{list.option.icon.focus.color}`,size:`0.875rem`}},clearIcon:{color:`{form.field.icon.color}`}},jd={root:{borderRadius:`{border.radius.sm}`,width:`1.25rem`,height:`1.25rem`,background:`{form.field.background}`,checkedBackground:`{primary.color}`,checkedHoverBackground:`{primary.hover.color}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.border.color}`,checkedBorderColor:`{primary.color}`,checkedHoverBorderColor:`{primary.hover.color}`,checkedFocusBorderColor:`{primary.color}`,checkedDisabledBorderColor:`{form.field.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,shadow:`{form.field.shadow}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{width:`1rem`,height:`1rem`},lg:{width:`1.5rem`,height:`1.5rem`}},icon:{size:`0.875rem`,color:`{form.field.color}`,checkedColor:`{primary.contrast.color}`,checkedHoverColor:`{primary.contrast.color}`,disabledColor:`{form.field.disabled.color}`,sm:{size:`0.75rem`},lg:{size:`1rem`}}},Md={root:{borderRadius:`16px`,paddingX:`0.75rem`,paddingY:`0.5rem`,gap:`0.5rem`,transitionDuration:`{transition.duration}`},image:{width:`2rem`,height:`2rem`},icon:{size:`1rem`},removeIcon:{size:`1rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`}},colorScheme:{light:{root:{background:`{surface.100}`,color:`{surface.800}`},icon:{color:`{surface.800}`},removeIcon:{color:`{surface.800}`}},dark:{root:{background:`{surface.800}`,color:`{surface.0}`},icon:{color:`{surface.0}`},removeIcon:{color:`{surface.0}`}}}},Nd={root:{transitionDuration:`{transition.duration}`},preview:{width:`1.5rem`,height:`1.5rem`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},panel:{shadow:`{overlay.popover.shadow}`,borderRadius:`{overlay.popover.borderRadius}`},colorScheme:{light:{panel:{background:`{surface.800}`,borderColor:`{surface.900}`},handle:{color:`{surface.0}`}},dark:{panel:{background:`{surface.900}`,borderColor:`{surface.700}`},handle:{color:`{surface.0}`}}}},Pd={icon:{size:`2rem`,color:`{overlay.modal.color}`},content:{gap:`1rem`}},Fd={root:{background:`{overlay.popover.background}`,borderColor:`{overlay.popover.border.color}`,color:`{overlay.popover.color}`,borderRadius:`{overlay.popover.border.radius}`,shadow:`{overlay.popover.shadow}`,gutter:`10px`,arrowOffset:`1.25rem`},content:{padding:`{overlay.popover.padding}`,gap:`1rem`},icon:{size:`1.5rem`,color:`{overlay.popover.color}`},footer:{gap:`0.5rem`,padding:`0 {overlay.popover.padding} {overlay.popover.padding} {overlay.popover.padding}`}},Id={root:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`,shadow:`{overlay.navigation.shadow}`,transitionDuration:`{transition.duration}`},list:{padding:`{navigation.list.padding}`,gap:`{navigation.list.gap}`},item:{focusBackground:`{navigation.item.focus.background}`,activeBackground:`{navigation.item.active.background}`,color:`{navigation.item.color}`,focusColor:`{navigation.item.focus.color}`,activeColor:`{navigation.item.active.color}`,padding:`{navigation.item.padding}`,borderRadius:`{navigation.item.border.radius}`,gap:`{navigation.item.gap}`,icon:{color:`{navigation.item.icon.color}`,focusColor:`{navigation.item.icon.focus.color}`,activeColor:`{navigation.item.icon.active.color}`}},submenu:{mobileIndent:`1rem`},submenuIcon:{size:`{navigation.submenu.icon.size}`,color:`{navigation.submenu.icon.color}`,focusColor:`{navigation.submenu.icon.focus.color}`,activeColor:`{navigation.submenu.icon.active.color}`},separator:{borderColor:`{content.border.color}`}},Ld=`
147
+ li.p-autocomplete-option,
148
+ div.p-cascadeselect-option-content,
149
+ li.p-listbox-option,
150
+ li.p-multiselect-option,
151
+ li.p-select-option,
152
+ li.p-listbox-option,
153
+ div.p-tree-node-content,
154
+ li.p-datatable-filter-constraint,
155
+ .p-datatable .p-datatable-tbody > tr,
156
+ .p-treetable .p-treetable-tbody > tr,
157
+ div.p-menu-item-content,
158
+ div.p-tieredmenu-item-content,
159
+ div.p-contextmenu-item-content,
160
+ div.p-menubar-item-content,
161
+ div.p-megamenu-item-content,
162
+ div.p-panelmenu-header-content,
163
+ div.p-panelmenu-item-content,
164
+ th.p-datatable-header-cell,
165
+ th.p-treetable-header-cell,
166
+ thead.p-datatable-thead > tr > th,
167
+ .p-treetable thead.p-treetable-thead>tr>th {
168
+ transition: none;
169
+ }
170
+ `,Rd={root:{transitionDuration:`{transition.duration}`},header:{background:`{content.background}`,borderColor:`{datatable.border.color}`,color:`{content.color}`,borderWidth:`0 0 1px 0`,padding:`0.75rem 1rem`,sm:{padding:`0.375rem 0.5rem`},lg:{padding:`1rem 1.25rem`}},headerCell:{background:`{content.background}`,hoverBackground:`{content.hover.background}`,selectedBackground:`{highlight.background}`,borderColor:`{datatable.border.color}`,color:`{content.color}`,hoverColor:`{content.hover.color}`,selectedColor:`{highlight.color}`,gap:`0.5rem`,padding:`0.75rem 1rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`-1px`,shadow:`{focus.ring.shadow}`},sm:{padding:`0.375rem 0.5rem`},lg:{padding:`1rem 1.25rem`}},columnTitle:{fontWeight:`600`},row:{background:`{content.background}`,hoverBackground:`{content.hover.background}`,selectedBackground:`{highlight.background}`,color:`{content.color}`,hoverColor:`{content.hover.color}`,selectedColor:`{highlight.color}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`-1px`,shadow:`{focus.ring.shadow}`}},bodyCell:{borderColor:`{datatable.border.color}`,padding:`0.75rem 1rem`,sm:{padding:`0.375rem 0.5rem`},lg:{padding:`1rem 1.25rem`}},footerCell:{background:`{content.background}`,borderColor:`{datatable.border.color}`,color:`{content.color}`,padding:`0.75rem 1rem`,sm:{padding:`0.375rem 0.5rem`},lg:{padding:`1rem 1.25rem`}},columnFooter:{fontWeight:`600`},footer:{background:`{content.background}`,borderColor:`{datatable.border.color}`,color:`{content.color}`,borderWidth:`0 0 1px 0`,padding:`0.75rem 1rem`,sm:{padding:`0.375rem 0.5rem`},lg:{padding:`1rem 1.25rem`}},dropPoint:{color:`{primary.color}`},columnResizer:{width:`0.5rem`},resizeIndicator:{width:`1px`,color:`{primary.color}`},sortIcon:{color:`{text.muted.color}`,hoverColor:`{text.hover.muted.color}`,size:`0.875rem`},loadingIcon:{size:`2rem`},rowToggleButton:{hoverBackground:`{content.hover.background}`,selectedHoverBackground:`{content.background}`,color:`{text.muted.color}`,hoverColor:`{text.color}`,selectedHoverColor:`{primary.color}`,size:`1.75rem`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},filter:{inlineGap:`0.5rem`,overlaySelect:{background:`{overlay.select.background}`,borderColor:`{overlay.select.border.color}`,borderRadius:`{overlay.select.border.radius}`,color:`{overlay.select.color}`,shadow:`{overlay.select.shadow}`},overlayPopover:{background:`{overlay.popover.background}`,borderColor:`{overlay.popover.border.color}`,borderRadius:`{overlay.popover.border.radius}`,color:`{overlay.popover.color}`,shadow:`{overlay.popover.shadow}`,padding:`{overlay.popover.padding}`,gap:`0.5rem`},rule:{borderColor:`{content.border.color}`},constraintList:{padding:`{list.padding}`,gap:`{list.gap}`},constraint:{focusBackground:`{list.option.focus.background}`,selectedBackground:`{list.option.selected.background}`,selectedFocusBackground:`{list.option.selected.focus.background}`,color:`{list.option.color}`,focusColor:`{list.option.focus.color}`,selectedColor:`{list.option.selected.color}`,selectedFocusColor:`{list.option.selected.focus.color}`,separator:{borderColor:`{content.border.color}`},padding:`{list.option.padding}`,borderRadius:`{list.option.border.radius}`}},paginatorTop:{borderColor:`{datatable.border.color}`,borderWidth:`0 0 1px 0`},paginatorBottom:{borderColor:`{datatable.border.color}`,borderWidth:`0 0 1px 0`},colorScheme:{light:{root:{borderColor:`{content.border.color}`},row:{stripedBackground:`{surface.50}`},bodyCell:{selectedBorderColor:`{primary.100}`}},dark:{root:{borderColor:`{surface.800}`},row:{stripedBackground:`{surface.950}`},bodyCell:{selectedBorderColor:`{primary.900}`}}},css:`
171
+ .p-datatable-mask.p-overlay-mask {
172
+ --px-mask-background: light-dark(rgba(255,255,255,0.5),rgba(0,0,0,0.3));
173
+ }
174
+ `},zd={root:{borderColor:`transparent`,borderWidth:`0`,borderRadius:`0`,padding:`0`},header:{background:`{content.background}`,color:`{content.color}`,borderColor:`{content.border.color}`,borderWidth:`0 0 1px 0`,padding:`0.75rem 1rem`,borderRadius:`0`},content:{background:`{content.background}`,color:`{content.color}`,borderColor:`transparent`,borderWidth:`0`,padding:`0`,borderRadius:`0`},footer:{background:`{content.background}`,color:`{content.color}`,borderColor:`{content.border.color}`,borderWidth:`1px 0 0 0`,padding:`0.75rem 1rem`,borderRadius:`0`},paginatorTop:{borderColor:`{content.border.color}`,borderWidth:`0 0 1px 0`},paginatorBottom:{borderColor:`{content.border.color}`,borderWidth:`1px 0 0 0`}},Bd={root:{transitionDuration:`{transition.duration}`},panel:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`,shadow:`{overlay.popover.shadow}`,padding:`{overlay.popover.padding}`},header:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,padding:`0 0 0.5rem 0`},title:{gap:`0.5rem`,fontWeight:`500`},dropdown:{width:`2.5rem`,sm:{width:`2rem`},lg:{width:`3rem`},borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.border.color}`,activeBorderColor:`{form.field.border.color}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},inputIcon:{color:`{form.field.icon.color}`},selectMonth:{hoverBackground:`{content.hover.background}`,color:`{content.color}`,hoverColor:`{content.hover.color}`,padding:`0.25rem 0.5rem`,borderRadius:`{content.border.radius}`},selectYear:{hoverBackground:`{content.hover.background}`,color:`{content.color}`,hoverColor:`{content.hover.color}`,padding:`0.25rem 0.5rem`,borderRadius:`{content.border.radius}`},group:{borderColor:`{content.border.color}`,gap:`{overlay.popover.padding}`},dayView:{margin:`0.5rem 0 0 0`},weekDay:{padding:`0.25rem`,fontWeight:`500`,color:`{content.color}`},date:{hoverBackground:`{content.hover.background}`,selectedBackground:`{primary.color}`,rangeSelectedBackground:`{highlight.background}`,color:`{content.color}`,hoverColor:`{content.hover.color}`,selectedColor:`{primary.contrast.color}`,rangeSelectedColor:`{highlight.color}`,width:`2rem`,height:`2rem`,borderRadius:`50%`,padding:`0.25rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},monthView:{margin:`0.5rem 0 0 0`},month:{padding:`0.375rem`,borderRadius:`{content.border.radius}`},yearView:{margin:`0.5rem 0 0 0`},year:{padding:`0.375rem`,borderRadius:`{content.border.radius}`},buttonbar:{padding:`0.5rem 0 0 0`,borderColor:`{content.border.color}`},timePicker:{padding:`0.5rem 0 0 0`,borderColor:`{content.border.color}`,gap:`0.5rem`,buttonGap:`0.25rem`},colorScheme:{light:{dropdown:{background:`{surface.100}`,hoverBackground:`{surface.200}`,activeBackground:`{surface.300}`,color:`{surface.600}`,hoverColor:`{surface.700}`,activeColor:`{surface.800}`},today:{background:`{surface.200}`,color:`{surface.900}`}},dark:{dropdown:{background:`{surface.800}`,hoverBackground:`{surface.700}`,activeBackground:`{surface.600}`,color:`{surface.300}`,hoverColor:`{surface.200}`,activeColor:`{surface.100}`},today:{background:`{surface.700}`,color:`{surface.0}`}}}},Vd={root:{background:`{overlay.modal.background}`,borderColor:`{overlay.modal.border.color}`,color:`{overlay.modal.color}`,borderRadius:`{overlay.modal.border.radius}`,shadow:`{overlay.modal.shadow}`},header:{padding:`{overlay.modal.padding}`,gap:`0.5rem`},title:{fontSize:`1.25rem`,fontWeight:`600`},content:{padding:`0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}`},footer:{padding:`0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}`,gap:`0.5rem`}},Hd={root:{borderColor:`{content.border.color}`},content:{background:`{content.background}`,color:`{text.color}`},horizontal:{margin:`1rem 0`,padding:`0 1rem`,content:{padding:`0 0.5rem`}},vertical:{margin:`0 1rem`,padding:`0.5rem 0`,content:{padding:`0.5rem 0`}}},Ud={root:{background:`rgba(255, 255, 255, 0.1)`,borderColor:`rgba(255, 255, 255, 0.2)`,padding:`0.5rem`,borderRadius:`{border.radius.xl}`},item:{borderRadius:`{content.border.radius}`,padding:`0.5rem`,size:`3rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}}},Wd={root:{background:`{overlay.modal.background}`,borderColor:`{overlay.modal.border.color}`,color:`{overlay.modal.color}`,shadow:`{overlay.modal.shadow}`},header:{padding:`{overlay.modal.padding}`},title:{fontSize:`1.5rem`,fontWeight:`600`},content:{padding:`0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}`},footer:{padding:`{overlay.modal.padding}`}},Gd={toolbar:{background:`{content.background}`,borderColor:`{content.border.color}`,borderRadius:`{content.border.radius}`},toolbarItem:{color:`{text.muted.color}`,hoverColor:`{text.color}`,activeColor:`{primary.color}`},overlay:{background:`{overlay.select.background}`,borderColor:`{overlay.select.border.color}`,borderRadius:`{overlay.select.border.radius}`,color:`{overlay.select.color}`,shadow:`{overlay.select.shadow}`,padding:`{list.padding}`},overlayOption:{focusBackground:`{list.option.focus.background}`,color:`{list.option.color}`,focusColor:`{list.option.focus.color}`,padding:`{list.option.padding}`,borderRadius:`{list.option.border.radius}`},content:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`}},Kd={root:{background:`{content.background}`,borderColor:`{content.border.color}`,borderRadius:`{content.border.radius}`,color:`{content.color}`,padding:`0 1.125rem 1.125rem 1.125rem`,transitionDuration:`{transition.duration}`},legend:{background:`{content.background}`,hoverBackground:`{content.hover.background}`,color:`{content.color}`,hoverColor:`{content.hover.color}`,borderRadius:`{content.border.radius}`,borderWidth:`1px`,borderColor:`transparent`,padding:`0.5rem 0.75rem`,gap:`0.5rem`,fontWeight:`600`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},toggleIcon:{color:`{text.muted.color}`,hoverColor:`{text.hover.muted.color}`},content:{padding:`0`}},qd={root:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`,transitionDuration:`{transition.duration}`},header:{background:`transparent`,color:`{text.color}`,padding:`1.125rem`,borderColor:`unset`,borderWidth:`0`,borderRadius:`0`,gap:`0.5rem`},content:{highlightBorderColor:`{primary.color}`,padding:`0 1.125rem 1.125rem 1.125rem`,gap:`1rem`},file:{padding:`1rem`,gap:`1rem`,borderColor:`{content.border.color}`,info:{gap:`0.5rem`}},fileList:{gap:`0.5rem`},progressbar:{height:`0.25rem`},basic:{gap:`0.5rem`}},Jd={root:{color:`{form.field.float.label.color}`,focusColor:`{form.field.float.label.focus.color}`,activeColor:`{form.field.float.label.active.color}`,invalidColor:`{form.field.float.label.invalid.color}`,transitionDuration:`0.2s`,positionX:`{form.field.padding.x}`,positionY:`{form.field.padding.y}`,fontWeight:`500`,active:{fontSize:`0.75rem`,fontWeight:`400`}},over:{active:{top:`-1.25rem`}},in:{input:{paddingTop:`1.5rem`,paddingBottom:`{form.field.padding.y}`},active:{top:`{form.field.padding.y}`}},on:{borderRadius:`{border.radius.xs}`,active:{background:`{form.field.background}`,padding:`0 0.125rem`}}},Yd={root:{borderWidth:`1px`,borderColor:`{content.border.color}`,borderRadius:`{content.border.radius}`,transitionDuration:`{transition.duration}`},navButton:{background:`rgba(255, 255, 255, 0.1)`,hoverBackground:`rgba(255, 255, 255, 0.2)`,color:`{surface.100}`,hoverColor:`{surface.0}`,size:`3rem`,gutter:`0.5rem`,prev:{borderRadius:`50%`},next:{borderRadius:`50%`},focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},navIcon:{size:`1.5rem`},thumbnailsContent:{background:`{content.background}`,padding:`1rem 0.25rem`},thumbnailNavButton:{size:`2rem`,borderRadius:`{content.border.radius}`,gutter:`0.5rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},thumbnailNavButtonIcon:{size:`1rem`},caption:{background:`rgba(0, 0, 0, 0.5)`,color:`{surface.100}`,padding:`1rem`},indicatorList:{gap:`0.5rem`,padding:`1rem`},indicatorButton:{width:`1rem`,height:`1rem`,activeBackground:`{primary.color}`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},insetIndicatorList:{background:`rgba(0, 0, 0, 0.5)`},insetIndicatorButton:{background:`rgba(255, 255, 255, 0.4)`,hoverBackground:`rgba(255, 255, 255, 0.6)`,activeBackground:`rgba(255, 255, 255, 0.9)`},closeButton:{size:`3rem`,gutter:`0.5rem`,background:`rgba(255, 255, 255, 0.1)`,hoverBackground:`rgba(255, 255, 255, 0.2)`,color:`{surface.50}`,hoverColor:`{surface.0}`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},closeButtonIcon:{size:`1.5rem`},colorScheme:{light:{thumbnailNavButton:{hoverBackground:`{surface.100}`,color:`{surface.600}`,hoverColor:`{surface.700}`},indicatorButton:{background:`{surface.200}`,hoverBackground:`{surface.300}`}},dark:{thumbnailNavButton:{hoverBackground:`{surface.700}`,color:`{surface.400}`,hoverColor:`{surface.0}`},indicatorButton:{background:`{surface.700}`,hoverBackground:`{surface.600}`}}}},Xd={icon:{color:`{form.field.icon.color}`}},Zd={root:{color:`{form.field.float.label.color}`,focusColor:`{form.field.float.label.focus.color}`,invalidColor:`{form.field.float.label.invalid.color}`,transitionDuration:`0.2s`,positionX:`{form.field.padding.x}`,top:`{form.field.padding.y}`,fontSize:`0.75rem`,fontWeight:`400`},input:{paddingTop:`1.5rem`,paddingBottom:`{form.field.padding.y}`}},Qd={root:{transitionDuration:`{transition.duration}`},preview:{icon:{size:`1.5rem`},mask:{background:`{mask.background}`,color:`{mask.color}`}},toolbar:{position:{left:`auto`,right:`1rem`,top:`1rem`,bottom:`auto`},blur:`8px`,background:`rgba(255,255,255,0.1)`,borderColor:`rgba(255,255,255,0.2)`,borderWidth:`1px`,borderRadius:`30px`,padding:`.5rem`,gap:`0.5rem`},action:{hoverBackground:`rgba(255,255,255,0.1)`,color:`{surface.50}`,hoverColor:`{surface.0}`,size:`3rem`,iconSize:`1.5rem`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}}},$d={handle:{size:`15px`,hoverSize:`30px`,background:`rgba(255,255,255,0.3)`,hoverBackground:`rgba(255,255,255,0.3)`,borderColor:`unset`,hoverBorderColor:`unset`,borderWidth:`0`,borderRadius:`50%`,transitionDuration:`{transition.duration}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`rgba(255,255,255,0.3)`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}}},ef={root:{padding:`{form.field.padding.y} {form.field.padding.x}`,borderRadius:`{content.border.radius}`,gap:`0.5rem`},text:{fontWeight:`500`},icon:{size:`1rem`},colorScheme:{light:{info:{background:`color-mix(in srgb, {blue.50}, transparent 5%)`,borderColor:`{blue.200}`,color:`{blue.600}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)`},success:{background:`color-mix(in srgb, {green.50}, transparent 5%)`,borderColor:`{green.200}`,color:`{green.600}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)`},warn:{background:`color-mix(in srgb,{yellow.50}, transparent 5%)`,borderColor:`{yellow.200}`,color:`{yellow.600}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)`},error:{background:`color-mix(in srgb, {red.50}, transparent 5%)`,borderColor:`{red.200}`,color:`{red.600}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)`},secondary:{background:`{surface.100}`,borderColor:`{surface.200}`,color:`{surface.600}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)`},contrast:{background:`{surface.900}`,borderColor:`{surface.950}`,color:`{surface.50}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)`}},dark:{info:{background:`color-mix(in srgb, {blue.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {blue.700}, transparent 64%)`,color:`{blue.500}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)`},success:{background:`color-mix(in srgb, {green.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {green.700}, transparent 64%)`,color:`{green.500}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)`},warn:{background:`color-mix(in srgb, {yellow.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {yellow.700}, transparent 64%)`,color:`{yellow.500}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)`},error:{background:`color-mix(in srgb, {red.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {red.700}, transparent 64%)`,color:`{red.500}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)`},secondary:{background:`{surface.800}`,borderColor:`{surface.700}`,color:`{surface.300}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)`},contrast:{background:`{surface.0}`,borderColor:`{surface.100}`,color:`{surface.950}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)`}}}},tf={root:{padding:`{form.field.padding.y} {form.field.padding.x}`,borderRadius:`{content.border.radius}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`},transitionDuration:`{transition.duration}`},display:{hoverBackground:`{content.hover.background}`,hoverColor:`{content.hover.color}`}},nf={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`},chip:{borderRadius:`{border.radius.sm}`},colorScheme:{light:{chip:{focusBackground:`{surface.200}`,color:`{surface.800}`}},dark:{chip:{focusBackground:`{surface.700}`,color:`{surface.0}`}}}},rf={addon:{background:`{form.field.background}`,borderColor:`{form.field.border.color}`,color:`{form.field.icon.color}`,borderRadius:`{form.field.border.radius}`,padding:`0.5rem`,minWidth:`2.5rem`}},af={root:{transitionDuration:`{transition.duration}`},button:{width:`2.5rem`,borderRadius:`{form.field.border.radius}`,verticalPadding:`{form.field.padding.y}`},colorScheme:{light:{button:{background:`transparent`,hoverBackground:`{surface.100}`,activeBackground:`{surface.200}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.border.color}`,activeBorderColor:`{form.field.border.color}`,color:`{surface.400}`,hoverColor:`{surface.500}`,activeColor:`{surface.600}`}},dark:{button:{background:`transparent`,hoverBackground:`{surface.800}`,activeBackground:`{surface.700}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.border.color}`,activeBorderColor:`{form.field.border.color}`,color:`{surface.400}`,hoverColor:`{surface.300}`,activeColor:`{surface.200}`}}}},of={root:{gap:`0.5rem`},input:{width:`2.5rem`,sm:{width:`2rem`},lg:{width:`3rem`}}},sf={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledHoverBackground:`{form.field.filled.hover.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,invalidPlaceholderColor:`{form.field.invalid.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{fontSize:`{form.field.sm.font.size}`,paddingX:`{form.field.sm.padding.x}`,paddingY:`{form.field.sm.padding.y}`},lg:{fontSize:`{form.field.lg.font.size}`,paddingX:`{form.field.lg.padding.x}`,paddingY:`{form.field.lg.padding.y}`}}},cf={root:{transitionDuration:`{transition.duration}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},value:{background:`{primary.color}`},range:{background:`{content.border.color}`},text:{color:`{text.muted.color}`}},lf={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,borderColor:`{form.field.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,shadow:`{form.field.shadow}`,borderRadius:`{form.field.border.radius}`,transitionDuration:`{form.field.transition.duration}`},list:{padding:`{list.padding}`,gap:`{list.gap}`,header:{padding:`{list.header.padding}`}},option:{focusBackground:`{list.option.focus.background}`,selectedBackground:`{list.option.selected.background}`,selectedFocusBackground:`{list.option.selected.focus.background}`,color:`{list.option.color}`,focusColor:`{list.option.focus.color}`,selectedColor:`{list.option.selected.color}`,selectedFocusColor:`{list.option.selected.focus.color}`,padding:`{list.option.padding}`,borderRadius:`{list.option.border.radius}`},optionGroup:{background:`{list.option.group.background}`,color:`{list.option.group.color}`,fontWeight:`{list.option.group.font.weight}`,padding:`{list.option.group.padding}`},checkmark:{color:`{list.option.color}`,gutterStart:`-0.375rem`,gutterEnd:`0.375rem`},emptyMessage:{padding:`{list.option.padding}`},colorScheme:{light:{option:{stripedBackground:`{surface.50}`}},dark:{option:{stripedBackground:`{surface.900}`}}}},uf={root:{background:`{content.background}`,borderColor:`{content.border.color}`,borderRadius:`{content.border.radius}`,color:`{content.color}`,gap:`0.5rem`,verticalOrientation:{padding:`{navigation.list.padding}`,gap:`{navigation.list.gap}`},horizontalOrientation:{padding:`0.5rem 0.75rem`,gap:`0.5rem`},transitionDuration:`{transition.duration}`},baseItem:{borderRadius:`{content.border.radius}`,padding:`{navigation.item.padding}`},item:{focusBackground:`{navigation.item.focus.background}`,activeBackground:`{navigation.item.active.background}`,color:`{navigation.item.color}`,focusColor:`{navigation.item.focus.color}`,activeColor:`{navigation.item.active.color}`,padding:`{navigation.item.padding}`,borderRadius:`{navigation.item.border.radius}`,gap:`{navigation.item.gap}`,icon:{color:`{navigation.item.icon.color}`,focusColor:`{navigation.item.icon.focus.color}`,activeColor:`{navigation.item.icon.active.color}`}},overlay:{padding:`0`,background:`{content.background}`,borderColor:`{content.border.color}`,borderRadius:`{content.border.radius}`,color:`{content.color}`,shadow:`{overlay.navigation.shadow}`,gap:`0.5rem`},submenu:{padding:`{navigation.list.padding}`,gap:`{navigation.list.gap}`},submenuLabel:{padding:`{navigation.submenu.label.padding}`,fontWeight:`{navigation.submenu.label.font.weight}`,background:`{navigation.submenu.label.background}`,color:`{navigation.submenu.label.color}`},submenuIcon:{size:`{navigation.submenu.icon.size}`,color:`{navigation.submenu.icon.color}`,focusColor:`{navigation.submenu.icon.focus.color}`,activeColor:`{navigation.submenu.icon.active.color}`},separator:{borderColor:`{content.border.color}`},mobileButton:{borderRadius:`50%`,size:`1.75rem`,color:`{text.muted.color}`,hoverColor:`{text.hover.muted.color}`,hoverBackground:`{content.hover.background}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}}},df={root:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`,shadow:`{overlay.navigation.shadow}`,transitionDuration:`{transition.duration}`},list:{padding:`{navigation.list.padding}`,gap:`{navigation.list.gap}`},item:{focusBackground:`{navigation.item.focus.background}`,color:`{navigation.item.color}`,focusColor:`{navigation.item.focus.color}`,padding:`{navigation.item.padding}`,borderRadius:`{navigation.item.border.radius}`,gap:`{navigation.item.gap}`,icon:{color:`{navigation.item.icon.color}`,focusColor:`{navigation.item.icon.focus.color}`}},submenuLabel:{padding:`{navigation.submenu.label.padding}`,fontWeight:`{navigation.submenu.label.font.weight}`,background:`{navigation.submenu.label.background}`,color:`{navigation.submenu.label.color}`},separator:{borderColor:`{content.border.color}`}},ff={root:{background:`{content.background}`,borderColor:`{content.border.color}`,borderRadius:`{content.border.radius}`,color:`{content.color}`,gap:`0.5rem`,padding:`0.5rem 0.75rem`,transitionDuration:`{transition.duration}`},baseItem:{borderRadius:`{content.border.radius}`,padding:`{navigation.item.padding}`},item:{focusBackground:`{navigation.item.focus.background}`,activeBackground:`{navigation.item.active.background}`,color:`{navigation.item.color}`,focusColor:`{navigation.item.focus.color}`,activeColor:`{navigation.item.active.color}`,padding:`{navigation.item.padding}`,borderRadius:`{navigation.item.border.radius}`,gap:`{navigation.item.gap}`,icon:{color:`{navigation.item.icon.color}`,focusColor:`{navigation.item.icon.focus.color}`,activeColor:`{navigation.item.icon.active.color}`}},submenu:{padding:`{navigation.list.padding}`,gap:`{navigation.list.gap}`,background:`{content.background}`,borderColor:`{content.border.color}`,borderRadius:`{content.border.radius}`,shadow:`{overlay.navigation.shadow}`,mobileIndent:`1rem`,icon:{size:`{navigation.submenu.icon.size}`,color:`{navigation.submenu.icon.color}`,focusColor:`{navigation.submenu.icon.focus.color}`,activeColor:`{navigation.submenu.icon.active.color}`}},separator:{borderColor:`{content.border.color}`},mobileButton:{borderRadius:`50%`,size:`1.75rem`,color:`{text.muted.color}`,hoverColor:`{text.hover.muted.color}`,hoverBackground:`{content.hover.background}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}}},pf={root:{borderRadius:`{content.border.radius}`,borderWidth:`1px`,transitionDuration:`{transition.duration}`},content:{padding:`0.5rem 0.75rem`,gap:`0.5rem`,sm:{padding:`0.375rem 0.625rem`},lg:{padding:`0.625rem 0.875rem`}},text:{fontSize:`1rem`,fontWeight:`500`,sm:{fontSize:`0.875rem`},lg:{fontSize:`1.125rem`}},icon:{size:`1.125rem`,sm:{size:`1rem`},lg:{size:`1.25rem`}},closeButton:{width:`1.75rem`,height:`1.75rem`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,offset:`{focus.ring.offset}`}},closeIcon:{size:`1rem`,sm:{size:`0.875rem`},lg:{size:`1.125rem`}},outlined:{root:{borderWidth:`1px`}},simple:{content:{padding:`0`}},colorScheme:{light:{info:{background:`color-mix(in srgb, {blue.50}, transparent 5%)`,borderColor:`{blue.200}`,color:`{blue.600}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)`,closeButton:{hoverBackground:`{blue.100}`,focusRing:{color:`{blue.600}`,shadow:`none`}},outlined:{color:`{blue.600}`,borderColor:`{blue.600}`},simple:{color:`{blue.600}`}},success:{background:`color-mix(in srgb, {green.50}, transparent 5%)`,borderColor:`{green.200}`,color:`{green.600}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)`,closeButton:{hoverBackground:`{green.100}`,focusRing:{color:`{green.600}`,shadow:`none`}},outlined:{color:`{green.600}`,borderColor:`{green.600}`},simple:{color:`{green.600}`}},warn:{background:`color-mix(in srgb,{yellow.50}, transparent 5%)`,borderColor:`{yellow.200}`,color:`{yellow.600}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)`,closeButton:{hoverBackground:`{yellow.100}`,focusRing:{color:`{yellow.600}`,shadow:`none`}},outlined:{color:`{yellow.600}`,borderColor:`{yellow.600}`},simple:{color:`{yellow.600}`}},error:{background:`color-mix(in srgb, {red.50}, transparent 5%)`,borderColor:`{red.200}`,color:`{red.600}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)`,closeButton:{hoverBackground:`{red.100}`,focusRing:{color:`{red.600}`,shadow:`none`}},outlined:{color:`{red.600}`,borderColor:`{red.600}`},simple:{color:`{red.600}`}},secondary:{background:`{surface.100}`,borderColor:`{surface.200}`,color:`{surface.600}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)`,closeButton:{hoverBackground:`{surface.200}`,focusRing:{color:`{surface.600}`,shadow:`none`}},outlined:{color:`{surface.500}`,borderColor:`{surface.500}`},simple:{color:`{surface.500}`}},contrast:{background:`{surface.900}`,borderColor:`{surface.950}`,color:`{surface.50}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)`,closeButton:{hoverBackground:`{surface.800}`,focusRing:{color:`{surface.50}`,shadow:`none`}},outlined:{color:`{surface.950}`,borderColor:`{surface.950}`},simple:{color:`{surface.950}`}}},dark:{info:{background:`color-mix(in srgb, {blue.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {blue.700}, transparent 64%)`,color:`{blue.500}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)`,closeButton:{hoverBackground:`rgba(255, 255, 255, 0.05)`,focusRing:{color:`{blue.500}`,shadow:`none`}},outlined:{color:`{blue.500}`,borderColor:`{blue.500}`},simple:{color:`{blue.500}`}},success:{background:`color-mix(in srgb, {green.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {green.700}, transparent 64%)`,color:`{green.500}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)`,closeButton:{hoverBackground:`rgba(255, 255, 255, 0.05)`,focusRing:{color:`{green.500}`,shadow:`none`}},outlined:{color:`{green.500}`,borderColor:`{green.500}`},simple:{color:`{green.500}`}},warn:{background:`color-mix(in srgb, {yellow.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {yellow.700}, transparent 64%)`,color:`{yellow.500}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)`,closeButton:{hoverBackground:`rgba(255, 255, 255, 0.05)`,focusRing:{color:`{yellow.500}`,shadow:`none`}},outlined:{color:`{yellow.500}`,borderColor:`{yellow.500}`},simple:{color:`{yellow.500}`}},error:{background:`color-mix(in srgb, {red.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {red.700}, transparent 64%)`,color:`{red.500}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)`,closeButton:{hoverBackground:`rgba(255, 255, 255, 0.05)`,focusRing:{color:`{red.500}`,shadow:`none`}},outlined:{color:`{red.500}`,borderColor:`{red.500}`},simple:{color:`{red.500}`}},secondary:{background:`{surface.800}`,borderColor:`{surface.700}`,color:`{surface.300}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)`,closeButton:{hoverBackground:`{surface.700}`,focusRing:{color:`{surface.300}`,shadow:`none`}},outlined:{color:`{surface.400}`,borderColor:`{surface.400}`},simple:{color:`{surface.400}`}},contrast:{background:`{surface.0}`,borderColor:`{surface.100}`,color:`{surface.950}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)`,closeButton:{hoverBackground:`{surface.100}`,focusRing:{color:`{surface.950}`,shadow:`none`}},outlined:{color:`{surface.0}`,borderColor:`{surface.0}`},simple:{color:`{surface.0}`}}}}},mf={root:{borderRadius:`{content.border.radius}`,gap:`1rem`},meters:{background:`{content.border.color}`,size:`0.5rem`},label:{gap:`0.5rem`},labelMarker:{size:`0.5rem`},labelIcon:{size:`1rem`},labelList:{verticalGap:`0.5rem`,horizontalGap:`1rem`}},hf={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledHoverBackground:`{form.field.filled.hover.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,invalidPlaceholderColor:`{form.field.invalid.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{fontSize:`{form.field.sm.font.size}`,paddingX:`{form.field.sm.padding.x}`,paddingY:`{form.field.sm.padding.y}`},lg:{fontSize:`{form.field.lg.font.size}`,paddingX:`{form.field.lg.padding.x}`,paddingY:`{form.field.lg.padding.y}`}},dropdown:{width:`2.5rem`,color:`{form.field.icon.color}`},overlay:{background:`{overlay.select.background}`,borderColor:`{overlay.select.border.color}`,borderRadius:`{overlay.select.border.radius}`,color:`{overlay.select.color}`,shadow:`{overlay.select.shadow}`},list:{padding:`{list.padding}`,gap:`{list.gap}`,header:{padding:`{list.header.padding}`}},option:{focusBackground:`{list.option.focus.background}`,selectedBackground:`{list.option.selected.background}`,selectedFocusBackground:`{list.option.selected.focus.background}`,color:`{list.option.color}`,focusColor:`{list.option.focus.color}`,selectedColor:`{list.option.selected.color}`,selectedFocusColor:`{list.option.selected.focus.color}`,padding:`{list.option.padding}`,borderRadius:`{list.option.border.radius}`,gap:`0.5rem`},optionGroup:{background:`{list.option.group.background}`,color:`{list.option.group.color}`,fontWeight:`{list.option.group.font.weight}`,padding:`{list.option.group.padding}`},chip:{borderRadius:`{border.radius.sm}`},clearIcon:{color:`{form.field.icon.color}`},emptyMessage:{padding:`{list.option.padding}`}},gf={root:{gap:`1.125rem`},controls:{gap:`0.5rem`}},_f={root:{gutter:`0.75rem`,transitionDuration:`{transition.duration}`},node:{background:`{content.background}`,hoverBackground:`{content.hover.background}`,selectedBackground:`{highlight.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,selectedColor:`{highlight.color}`,hoverColor:`{content.hover.color}`,padding:`0.75rem 1rem`,toggleablePadding:`0.75rem 1rem 1.25rem 1rem`,borderRadius:`{content.border.radius}`},nodeToggleButton:{background:`{content.background}`,hoverBackground:`{content.hover.background}`,borderColor:`{content.border.color}`,color:`{text.muted.color}`,hoverColor:`{text.color}`,size:`1.5rem`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},connector:{color:`{content.border.color}`,borderRadius:`{content.border.radius}`,height:`24px`}},vf={root:{outline:{width:`2px`,color:`{content.background}`}}},yf={root:{padding:`0.5rem 1rem`,gap:`0.25rem`,borderRadius:`{content.border.radius}`,background:`{content.background}`,color:`{content.color}`,transitionDuration:`{transition.duration}`},navButton:{background:`transparent`,hoverBackground:`{content.hover.background}`,selectedBackground:`{highlight.background}`,color:`{text.muted.color}`,hoverColor:`{text.hover.muted.color}`,selectedColor:`{highlight.color}`,width:`2.5rem`,height:`2.5rem`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},currentPageReport:{color:`{text.muted.color}`},jumpToPageInput:{maxWidth:`2.5rem`}},bf={root:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`},header:{background:`transparent`,color:`{text.color}`,padding:`1.125rem`,borderColor:`{content.border.color}`,borderWidth:`0`,borderRadius:`0`},toggleableHeader:{padding:`0.375rem 1.125rem`},title:{fontWeight:`600`},content:{padding:`0 1.125rem 1.125rem 1.125rem`},footer:{padding:`0 1.125rem 1.125rem 1.125rem`}},xf={root:{gap:`0.5rem`,transitionDuration:`{transition.duration}`},panel:{background:`{content.background}`,borderColor:`{content.border.color}`,borderWidth:`1px`,color:`{content.color}`,padding:`0.25rem 0.25rem`,borderRadius:`{content.border.radius}`,first:{borderWidth:`1px`,topBorderRadius:`{content.border.radius}`},last:{borderWidth:`1px`,bottomBorderRadius:`{content.border.radius}`}},item:{focusBackground:`{navigation.item.focus.background}`,color:`{navigation.item.color}`,focusColor:`{navigation.item.focus.color}`,gap:`0.5rem`,padding:`{navigation.item.padding}`,borderRadius:`{content.border.radius}`,icon:{color:`{navigation.item.icon.color}`,focusColor:`{navigation.item.icon.focus.color}`}},submenu:{indent:`1rem`},submenuIcon:{color:`{navigation.submenu.icon.color}`,focusColor:`{navigation.submenu.icon.focus.color}`}},Sf={meter:{background:`{content.border.color}`,borderRadius:`{content.border.radius}`,height:`.75rem`},icon:{color:`{form.field.icon.color}`},overlay:{background:`{overlay.popover.background}`,borderColor:`{overlay.popover.border.color}`,borderRadius:`{overlay.popover.border.radius}`,color:`{overlay.popover.color}`,padding:`{overlay.popover.padding}`,shadow:`{overlay.popover.shadow}`},content:{gap:`0.5rem`},colorScheme:{light:{strength:{weakBackground:`{red.500}`,mediumBackground:`{amber.500}`,strongBackground:`{green.500}`}},dark:{strength:{weakBackground:`{red.400}`,mediumBackground:`{amber.400}`,strongBackground:`{green.400}`}}}},Cf={root:{gap:`1.125rem`},controls:{gap:`0.5rem`}},wf={root:{background:`{overlay.popover.background}`,borderColor:`{overlay.popover.border.color}`,color:`{overlay.popover.color}`,borderRadius:`{overlay.popover.border.radius}`,shadow:`{overlay.popover.shadow}`,gutter:`10px`,arrowOffset:`1.25rem`},content:{padding:`{overlay.popover.padding}`}},Tf={root:{background:`{content.border.color}`,borderRadius:`{content.border.radius}`,height:`1.25rem`},value:{background:`{primary.color}`},label:{color:`{primary.contrast.color}`,fontSize:`0.75rem`,fontWeight:`600`}},Ef={colorScheme:{light:{root:{colorOne:`{red.500}`,colorTwo:`{blue.500}`,colorThree:`{green.500}`,colorFour:`{yellow.500}`}},dark:{root:{colorOne:`{red.400}`,colorTwo:`{blue.400}`,colorThree:`{green.400}`,colorFour:`{yellow.400}`}}}},Df={root:{width:`1.25rem`,height:`1.25rem`,background:`{form.field.background}`,checkedBackground:`{primary.color}`,checkedHoverBackground:`{primary.hover.color}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.border.color}`,checkedBorderColor:`{primary.color}`,checkedHoverBorderColor:`{primary.hover.color}`,checkedFocusBorderColor:`{primary.color}`,checkedDisabledBorderColor:`{form.field.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,shadow:`{form.field.shadow}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{width:`1rem`,height:`1rem`},lg:{width:`1.5rem`,height:`1.5rem`}},icon:{size:`0.75rem`,checkedColor:`{primary.contrast.color}`,checkedHoverColor:`{primary.contrast.color}`,disabledColor:`{form.field.disabled.color}`,sm:{size:`0.5rem`},lg:{size:`1rem`}}},Of={root:{gap:`0.25rem`,transitionDuration:`{transition.duration}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},icon:{size:`1rem`,color:`{text.muted.color}`,hoverColor:`{primary.color}`,activeColor:`{primary.color}`}},kf={colorScheme:{light:{root:{background:`rgba(0,0,0,0.1)`}},dark:{root:{background:`rgba(255,255,255,0.3)`}}}},Af={root:{transitionDuration:`{transition.duration}`},bar:{size:`9px`,borderRadius:`{border.radius.sm}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},colorScheme:{light:{bar:{background:`{surface.100}`}},dark:{bar:{background:`{surface.800}`}}}},jf={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledHoverBackground:`{form.field.filled.hover.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,invalidPlaceholderColor:`{form.field.invalid.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{fontSize:`{form.field.sm.font.size}`,paddingX:`{form.field.sm.padding.x}`,paddingY:`{form.field.sm.padding.y}`},lg:{fontSize:`{form.field.lg.font.size}`,paddingX:`{form.field.lg.padding.x}`,paddingY:`{form.field.lg.padding.y}`}},dropdown:{width:`2.5rem`,color:`{form.field.icon.color}`},overlay:{background:`{overlay.select.background}`,borderColor:`{overlay.select.border.color}`,borderRadius:`{overlay.select.border.radius}`,color:`{overlay.select.color}`,shadow:`{overlay.select.shadow}`},list:{padding:`{list.padding}`,gap:`{list.gap}`,header:{padding:`{list.header.padding}`}},option:{focusBackground:`{list.option.focus.background}`,selectedBackground:`{list.option.selected.background}`,selectedFocusBackground:`{list.option.selected.focus.background}`,color:`{list.option.color}`,focusColor:`{list.option.focus.color}`,selectedColor:`{list.option.selected.color}`,selectedFocusColor:`{list.option.selected.focus.color}`,padding:`{list.option.padding}`,borderRadius:`{list.option.border.radius}`},optionGroup:{background:`{list.option.group.background}`,color:`{list.option.group.color}`,fontWeight:`{list.option.group.font.weight}`,padding:`{list.option.group.padding}`},clearIcon:{color:`{form.field.icon.color}`},checkmark:{color:`{list.option.color}`,gutterStart:`-0.375rem`,gutterEnd:`0.375rem`},emptyMessage:{padding:`{list.option.padding}`}},Mf={root:{borderRadius:`{form.field.border.radius}`},colorScheme:{light:{root:{invalidBorderColor:`{form.field.invalid.border.color}`}},dark:{root:{invalidBorderColor:`{form.field.invalid.border.color}`}}}},Nf={root:{borderRadius:`{content.border.radius}`},colorScheme:{light:{root:{background:`{surface.200}`,animationBackground:`rgba(255,255,255,0.4)`}},dark:{root:{background:`rgba(255, 255, 255, 0.06)`,animationBackground:`rgba(255, 255, 255, 0.04)`}}}},Pf={root:{transitionDuration:`{transition.duration}`},track:{background:`{content.border.color}`,borderRadius:`{content.border.radius}`,size:`3px`},range:{background:`{primary.color}`},handle:{width:`20px`,height:`20px`,borderRadius:`50%`,background:`{content.border.color}`,hoverBackground:`{content.border.color}`,content:{borderRadius:`50%`,hoverBackground:`{content.background}`,width:`16px`,height:`16px`,shadow:`0px 0.5px 0px 0px rgba(0, 0, 0, 0.08), 0px 1px 1px 0px rgba(0, 0, 0, 0.14)`},focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},colorScheme:{light:{handle:{content:{background:`{surface.0}`}}},dark:{handle:{content:{background:`{surface.950}`}}}}},Ff={root:{gap:`0.5rem`,transitionDuration:`{transition.duration}`}},If={root:{borderRadius:`{form.field.border.radius}`,roundedBorderRadius:`2rem`,raisedShadow:`0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)`}},Lf={root:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,transitionDuration:`{transition.duration}`},gutter:{background:`{content.border.color}`},handle:{size:`24px`,background:`transparent`,borderRadius:`{content.border.radius}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}}},Rf={root:{transitionDuration:`{transition.duration}`},separator:{background:`{content.border.color}`,activeBackground:`{primary.color}`,margin:`0 0 0 1.625rem`,size:`2px`},step:{padding:`0.5rem`,gap:`1rem`},stepHeader:{padding:`0`,borderRadius:`{content.border.radius}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`},gap:`0.5rem`},stepTitle:{color:`{text.muted.color}`,activeColor:`{primary.color}`,fontWeight:`500`},stepNumber:{background:`{content.background}`,activeBackground:`{content.background}`,borderColor:`{content.border.color}`,activeBorderColor:`{content.border.color}`,color:`{text.muted.color}`,activeColor:`{primary.color}`,size:`2rem`,fontSize:`1.143rem`,fontWeight:`500`,borderRadius:`50%`,shadow:`0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)`},steppanels:{padding:`0.875rem 0.5rem 1.125rem 0.5rem`},steppanel:{background:`{content.background}`,color:`{content.color}`,padding:`0`,indent:`1rem`}},zf={root:{transitionDuration:`{transition.duration}`},separator:{background:`{content.border.color}`},itemLink:{borderRadius:`{content.border.radius}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`},gap:`0.5rem`},itemLabel:{color:`{text.muted.color}`,activeColor:`{primary.color}`,fontWeight:`500`},itemNumber:{background:`{content.background}`,activeBackground:`{content.background}`,borderColor:`{content.border.color}`,activeBorderColor:`{content.border.color}`,color:`{text.muted.color}`,activeColor:`{primary.color}`,size:`2rem`,fontSize:`1.143rem`,fontWeight:`500`,borderRadius:`50%`,shadow:`0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)`}},Bf={root:{transitionDuration:`{transition.duration}`},tablist:{borderWidth:`0 0 1px 0`,background:`{content.background}`,borderColor:`{content.border.color}`},item:{background:`transparent`,hoverBackground:`transparent`,activeBackground:`transparent`,borderWidth:`0 0 1px 0`,borderColor:`{content.border.color}`,hoverBorderColor:`{content.border.color}`,activeBorderColor:`{primary.color}`,color:`{text.muted.color}`,hoverColor:`{text.color}`,activeColor:`{primary.color}`,padding:`1rem 1.125rem`,fontWeight:`600`,margin:`0 0 -1px 0`,gap:`0.5rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},itemIcon:{color:`{text.muted.color}`,hoverColor:`{text.color}`,activeColor:`{primary.color}`},activeBar:{height:`1px`,bottom:`-1px`,background:`{primary.color}`}},Vf={root:{transitionDuration:`{transition.duration}`},tablist:{borderWidth:`0 0 1px 0`,background:`{content.background}`,borderColor:`{content.border.color}`},tab:{background:`transparent`,hoverBackground:`transparent`,activeBackground:`transparent`,borderWidth:`0 0 1px 0`,borderColor:`{content.border.color}`,hoverBorderColor:`{content.border.color}`,activeBorderColor:`{primary.color}`,color:`{text.muted.color}`,hoverColor:`{text.color}`,activeColor:`{primary.color}`,padding:`1rem 1.125rem`,fontWeight:`600`,margin:`0 0 -1px 0`,gap:`0.5rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`-1px`,shadow:`{focus.ring.shadow}`}},tabpanel:{background:`{content.background}`,color:`{content.color}`,padding:`0.875rem 1.125rem 1.125rem 1.125rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`inset {focus.ring.shadow}`}},navButton:{background:`{content.background}`,color:`{text.muted.color}`,hoverColor:`{text.color}`,width:`2.5rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`-1px`,shadow:`{focus.ring.shadow}`}},activeBar:{height:`1px`,bottom:`-1px`,background:`{primary.color}`},colorScheme:{light:{navButton:{shadow:`0px 0px 10px 50px rgba(255, 255, 255, 0.6)`}},dark:{navButton:{shadow:`0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)`}}}},Hf={root:{transitionDuration:`{transition.duration}`},tabList:{background:`{content.background}`,borderColor:`{content.border.color}`},tab:{borderColor:`{content.border.color}`,activeBorderColor:`{primary.color}`,color:`{text.muted.color}`,hoverColor:`{text.color}`,activeColor:`{primary.color}`},tabPanel:{background:`{content.background}`,color:`{content.color}`},navButton:{background:`{content.background}`,color:`{text.muted.color}`,hoverColor:`{text.color}`},colorScheme:{light:{navButton:{shadow:`0px 0px 10px 50px rgba(255, 255, 255, 0.6)`}},dark:{navButton:{shadow:`0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)`}}}},Uf={root:{fontSize:`0.875rem`,fontWeight:`700`,padding:`0.25rem 0.5rem`,gap:`0.25rem`,borderRadius:`{content.border.radius}`,roundedBorderRadius:`{border.radius.xl}`},icon:{size:`0.75rem`},colorScheme:{light:{primary:{background:`{primary.100}`,color:`{primary.700}`},secondary:{background:`{surface.100}`,color:`{surface.600}`},success:{background:`{green.100}`,color:`{green.700}`},info:{background:`{sky.100}`,color:`{sky.700}`},warn:{background:`{orange.100}`,color:`{orange.700}`},danger:{background:`{red.100}`,color:`{red.700}`},contrast:{background:`{surface.950}`,color:`{surface.0}`}},dark:{primary:{background:`color-mix(in srgb, {primary.500}, transparent 84%)`,color:`{primary.300}`},secondary:{background:`{surface.800}`,color:`{surface.300}`},success:{background:`color-mix(in srgb, {green.500}, transparent 84%)`,color:`{green.300}`},info:{background:`color-mix(in srgb, {sky.500}, transparent 84%)`,color:`{sky.300}`},warn:{background:`color-mix(in srgb, {orange.500}, transparent 84%)`,color:`{orange.300}`},danger:{background:`color-mix(in srgb, {red.500}, transparent 84%)`,color:`{red.300}`},contrast:{background:`{surface.0}`,color:`{surface.950}`}}}},Wf={root:{background:`{form.field.background}`,borderColor:`{form.field.border.color}`,color:`{form.field.color}`,height:`18rem`,padding:`{form.field.padding.y} {form.field.padding.x}`,borderRadius:`{form.field.border.radius}`},prompt:{gap:`0.25rem`},commandResponse:{margin:`2px 0`}},Gf={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledHoverBackground:`{form.field.filled.hover.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,invalidPlaceholderColor:`{form.field.invalid.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{fontSize:`{form.field.sm.font.size}`,paddingX:`{form.field.sm.padding.x}`,paddingY:`{form.field.sm.padding.y}`},lg:{fontSize:`{form.field.lg.font.size}`,paddingX:`{form.field.lg.padding.x}`,paddingY:`{form.field.lg.padding.y}`}}},Kf={root:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`,shadow:`{overlay.navigation.shadow}`,transitionDuration:`{transition.duration}`},list:{padding:`{navigation.list.padding}`,gap:`{navigation.list.gap}`},item:{focusBackground:`{navigation.item.focus.background}`,activeBackground:`{navigation.item.active.background}`,color:`{navigation.item.color}`,focusColor:`{navigation.item.focus.color}`,activeColor:`{navigation.item.active.color}`,padding:`{navigation.item.padding}`,borderRadius:`{navigation.item.border.radius}`,gap:`{navigation.item.gap}`,icon:{color:`{navigation.item.icon.color}`,focusColor:`{navigation.item.icon.focus.color}`,activeColor:`{navigation.item.icon.active.color}`}},submenu:{mobileIndent:`1rem`},submenuIcon:{size:`{navigation.submenu.icon.size}`,color:`{navigation.submenu.icon.color}`,focusColor:`{navigation.submenu.icon.focus.color}`,activeColor:`{navigation.submenu.icon.active.color}`},separator:{borderColor:`{content.border.color}`}},qf={event:{minHeight:`5rem`},horizontal:{eventContent:{padding:`1rem 0`}},vertical:{eventContent:{padding:`0 1rem`}},eventMarker:{size:`1.125rem`,borderRadius:`50%`,borderWidth:`2px`,background:`{content.background}`,borderColor:`{content.border.color}`,content:{borderRadius:`50%`,size:`0.375rem`,background:`{primary.color}`,insetShadow:`0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)`}},eventConnector:{color:`{content.border.color}`,size:`2px`}},Jf={root:{width:`25rem`,borderRadius:`{content.border.radius}`,borderWidth:`1px`,transitionDuration:`{transition.duration}`},icon:{size:`1.125rem`},content:{padding:`{overlay.popover.padding}`,gap:`0.5rem`},text:{gap:`0.5rem`},summary:{fontWeight:`500`,fontSize:`1rem`},detail:{fontWeight:`500`,fontSize:`0.875rem`},closeButton:{width:`1.75rem`,height:`1.75rem`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,offset:`{focus.ring.offset}`}},closeIcon:{size:`1rem`},colorScheme:{light:{root:{blur:`1.5px`},info:{background:`color-mix(in srgb, {blue.50}, transparent 5%)`,borderColor:`{blue.200}`,color:`{blue.600}`,detailColor:`{surface.700}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)`,closeButton:{hoverBackground:`{blue.100}`,focusRing:{color:`{blue.600}`,shadow:`none`}}},success:{background:`color-mix(in srgb, {green.50}, transparent 5%)`,borderColor:`{green.200}`,color:`{green.600}`,detailColor:`{surface.700}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)`,closeButton:{hoverBackground:`{green.100}`,focusRing:{color:`{green.600}`,shadow:`none`}}},warn:{background:`color-mix(in srgb,{yellow.50}, transparent 5%)`,borderColor:`{yellow.200}`,color:`{yellow.600}`,detailColor:`{surface.700}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)`,closeButton:{hoverBackground:`{yellow.100}`,focusRing:{color:`{yellow.600}`,shadow:`none`}}},error:{background:`color-mix(in srgb, {red.50}, transparent 5%)`,borderColor:`{red.200}`,color:`{red.600}`,detailColor:`{surface.700}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)`,closeButton:{hoverBackground:`{red.100}`,focusRing:{color:`{red.600}`,shadow:`none`}}},secondary:{background:`{surface.100}`,borderColor:`{surface.200}`,color:`{surface.600}`,detailColor:`{surface.700}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)`,closeButton:{hoverBackground:`{surface.200}`,focusRing:{color:`{surface.600}`,shadow:`none`}}},contrast:{background:`{surface.900}`,borderColor:`{surface.950}`,color:`{surface.50}`,detailColor:`{surface.0}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)`,closeButton:{hoverBackground:`{surface.800}`,focusRing:{color:`{surface.50}`,shadow:`none`}}}},dark:{root:{blur:`10px`},info:{background:`color-mix(in srgb, {blue.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {blue.700}, transparent 64%)`,color:`{blue.500}`,detailColor:`{surface.0}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)`,closeButton:{hoverBackground:`rgba(255, 255, 255, 0.05)`,focusRing:{color:`{blue.500}`,shadow:`none`}}},success:{background:`color-mix(in srgb, {green.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {green.700}, transparent 64%)`,color:`{green.500}`,detailColor:`{surface.0}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)`,closeButton:{hoverBackground:`rgba(255, 255, 255, 0.05)`,focusRing:{color:`{green.500}`,shadow:`none`}}},warn:{background:`color-mix(in srgb, {yellow.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {yellow.700}, transparent 64%)`,color:`{yellow.500}`,detailColor:`{surface.0}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)`,closeButton:{hoverBackground:`rgba(255, 255, 255, 0.05)`,focusRing:{color:`{yellow.500}`,shadow:`none`}}},error:{background:`color-mix(in srgb, {red.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {red.700}, transparent 64%)`,color:`{red.500}`,detailColor:`{surface.0}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)`,closeButton:{hoverBackground:`rgba(255, 255, 255, 0.05)`,focusRing:{color:`{red.500}`,shadow:`none`}}},secondary:{background:`{surface.800}`,borderColor:`{surface.700}`,color:`{surface.300}`,detailColor:`{surface.0}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)`,closeButton:{hoverBackground:`{surface.700}`,focusRing:{color:`{surface.300}`,shadow:`none`}}},contrast:{background:`{surface.0}`,borderColor:`{surface.100}`,color:`{surface.950}`,detailColor:`{surface.950}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)`,closeButton:{hoverBackground:`{surface.100}`,focusRing:{color:`{surface.950}`,shadow:`none`}}}}}},Yf={root:{padding:`0.25rem`,borderRadius:`{content.border.radius}`,gap:`0.5rem`,fontWeight:`500`,disabledBackground:`{form.field.disabled.background}`,disabledBorderColor:`{form.field.disabled.background}`,disabledColor:`{form.field.disabled.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{fontSize:`{form.field.sm.font.size}`,padding:`0.25rem`},lg:{fontSize:`{form.field.lg.font.size}`,padding:`0.25rem`}},icon:{disabledColor:`{form.field.disabled.color}`},content:{padding:`0.25rem 0.75rem`,borderRadius:`{content.border.radius}`,checkedShadow:`0px 1px 2px 0px rgba(0, 0, 0, 0.02), 0px 1px 2px 0px rgba(0, 0, 0, 0.04)`,sm:{padding:`0.25rem 0.75rem`},lg:{padding:`0.25rem 0.75rem`}},colorScheme:{light:{root:{background:`{surface.100}`,checkedBackground:`{surface.100}`,hoverBackground:`{surface.100}`,borderColor:`{surface.100}`,color:`{surface.500}`,hoverColor:`{surface.700}`,checkedColor:`{surface.900}`,checkedBorderColor:`{surface.100}`},content:{checkedBackground:`{surface.0}`},icon:{color:`{surface.500}`,hoverColor:`{surface.700}`,checkedColor:`{surface.900}`}},dark:{root:{background:`{surface.950}`,checkedBackground:`{surface.950}`,hoverBackground:`{surface.950}`,borderColor:`{surface.950}`,color:`{surface.400}`,hoverColor:`{surface.300}`,checkedColor:`{surface.0}`,checkedBorderColor:`{surface.950}`},content:{checkedBackground:`{surface.800}`},icon:{color:`{surface.400}`,hoverColor:`{surface.300}`,checkedColor:`{surface.0}`}}}},Xf={root:{width:`2.5rem`,height:`1.5rem`,borderRadius:`30px`,gap:`0.25rem`,shadow:`{form.field.shadow}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`},borderWidth:`1px`,borderColor:`transparent`,hoverBorderColor:`transparent`,checkedBorderColor:`transparent`,checkedHoverBorderColor:`transparent`,invalidBorderColor:`{form.field.invalid.border.color}`,transitionDuration:`{form.field.transition.duration}`,slideDuration:`0.2s`},handle:{borderRadius:`50%`,size:`1rem`},colorScheme:{light:{root:{background:`{surface.300}`,disabledBackground:`{form.field.disabled.background}`,hoverBackground:`{surface.400}`,checkedBackground:`{primary.color}`,checkedHoverBackground:`{primary.hover.color}`},handle:{background:`{surface.0}`,disabledBackground:`{form.field.disabled.color}`,hoverBackground:`{surface.0}`,checkedBackground:`{surface.0}`,checkedHoverBackground:`{surface.0}`,color:`{text.muted.color}`,hoverColor:`{text.color}`,checkedColor:`{primary.color}`,checkedHoverColor:`{primary.hover.color}`}},dark:{root:{background:`{surface.700}`,disabledBackground:`{surface.600}`,hoverBackground:`{surface.600}`,checkedBackground:`{primary.color}`,checkedHoverBackground:`{primary.hover.color}`},handle:{background:`{surface.400}`,disabledBackground:`{surface.900}`,hoverBackground:`{surface.300}`,checkedBackground:`{surface.900}`,checkedHoverBackground:`{surface.900}`,color:`{surface.900}`,hoverColor:`{surface.800}`,checkedColor:`{primary.color}`,checkedHoverColor:`{primary.hover.color}`}}}},Zf={root:{background:`{content.background}`,borderColor:`{content.border.color}`,borderRadius:`{content.border.radius}`,color:`{content.color}`,gap:`0.5rem`,padding:`0.75rem`}},Qf={root:{maxWidth:`12.5rem`,gutter:`0.25rem`,shadow:`{overlay.popover.shadow}`,padding:`0.5rem 0.75rem`,borderRadius:`{overlay.popover.border.radius}`},colorScheme:{light:{root:{background:`{surface.700}`,color:`{surface.0}`}},dark:{root:{background:`{surface.700}`,color:`{surface.0}`}}}},$f={root:{background:`{content.background}`,color:`{content.color}`,padding:`1rem`,gap:`2px`,indent:`1rem`,transitionDuration:`{transition.duration}`},node:{padding:`0.25rem 0.5rem`,borderRadius:`{content.border.radius}`,hoverBackground:`{content.hover.background}`,selectedBackground:`{highlight.background}`,color:`{text.color}`,hoverColor:`{text.hover.color}`,selectedColor:`{highlight.color}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`-1px`,shadow:`{focus.ring.shadow}`},gap:`0.25rem`},nodeIcon:{color:`{text.muted.color}`,hoverColor:`{text.hover.muted.color}`,selectedColor:`{highlight.color}`},nodeToggleButton:{borderRadius:`50%`,size:`1.75rem`,hoverBackground:`{content.hover.background}`,selectedHoverBackground:`{content.background}`,color:`{text.muted.color}`,hoverColor:`{text.hover.muted.color}`,selectedHoverColor:`{primary.color}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},loadingIcon:{size:`2rem`},filter:{margin:`0 0 0.5rem 0`},css:`
175
+ .p-tree-mask.p-overlay-mask {
176
+ --px-mask-background: light-dark(rgba(255,255,255,0.5),rgba(0,0,0,0.3));
177
+ }
178
+ `},ep={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledHoverBackground:`{form.field.filled.hover.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,invalidPlaceholderColor:`{form.field.invalid.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{fontSize:`{form.field.sm.font.size}`,paddingX:`{form.field.sm.padding.x}`,paddingY:`{form.field.sm.padding.y}`},lg:{fontSize:`{form.field.lg.font.size}`,paddingX:`{form.field.lg.padding.x}`,paddingY:`{form.field.lg.padding.y}`}},dropdown:{width:`2.5rem`,color:`{form.field.icon.color}`},overlay:{background:`{overlay.select.background}`,borderColor:`{overlay.select.border.color}`,borderRadius:`{overlay.select.border.radius}`,color:`{overlay.select.color}`,shadow:`{overlay.select.shadow}`},tree:{padding:`{list.padding}`},emptyMessage:{padding:`{list.option.padding}`},chip:{borderRadius:`{border.radius.sm}`},clearIcon:{color:`{form.field.icon.color}`}},tp={root:{transitionDuration:`{transition.duration}`},header:{background:`{content.background}`,borderColor:`{treetable.border.color}`,color:`{content.color}`,borderWidth:`0 0 1px 0`,padding:`0.75rem 1rem`},headerCell:{background:`{content.background}`,hoverBackground:`{content.hover.background}`,selectedBackground:`{highlight.background}`,borderColor:`{treetable.border.color}`,color:`{content.color}`,hoverColor:`{content.hover.color}`,selectedColor:`{highlight.color}`,gap:`0.5rem`,padding:`0.75rem 1rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`-1px`,shadow:`{focus.ring.shadow}`}},columnTitle:{fontWeight:`600`},row:{background:`{content.background}`,hoverBackground:`{content.hover.background}`,selectedBackground:`{highlight.background}`,color:`{content.color}`,hoverColor:`{content.hover.color}`,selectedColor:`{highlight.color}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`-1px`,shadow:`{focus.ring.shadow}`}},bodyCell:{borderColor:`{treetable.border.color}`,padding:`0.75rem 1rem`,gap:`0.5rem`},footerCell:{background:`{content.background}`,borderColor:`{treetable.border.color}`,color:`{content.color}`,padding:`0.75rem 1rem`},columnFooter:{fontWeight:`600`},footer:{background:`{content.background}`,borderColor:`{treetable.border.color}`,color:`{content.color}`,borderWidth:`0 0 1px 0`,padding:`0.75rem 1rem`},columnResizer:{width:`0.5rem`},resizeIndicator:{width:`1px`,color:`{primary.color}`},sortIcon:{color:`{text.muted.color}`,hoverColor:`{text.hover.muted.color}`,size:`0.875rem`},loadingIcon:{size:`2rem`},nodeToggleButton:{hoverBackground:`{content.hover.background}`,selectedHoverBackground:`{content.background}`,color:`{text.muted.color}`,hoverColor:`{text.color}`,selectedHoverColor:`{primary.color}`,size:`1.75rem`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},paginatorTop:{borderColor:`{content.border.color}`,borderWidth:`0 0 1px 0`},paginatorBottom:{borderColor:`{content.border.color}`,borderWidth:`0 0 1px 0`},colorScheme:{light:{root:{borderColor:`{content.border.color}`},bodyCell:{selectedBorderColor:`{primary.100}`}},dark:{root:{borderColor:`{surface.800}`},bodyCell:{selectedBorderColor:`{primary.900}`}}},css:`
179
+ .p-treetable-mask.p-overlay-mask {
180
+ --px-mask-background: light-dark(rgba(255,255,255,0.5),rgba(0,0,0,0.3));
181
+ }
182
+ `},np={loader:{mask:{background:`{content.background}`,color:`{text.muted.color}`},icon:{size:`2rem`}}},rp=Object.defineProperty,ip=Object.defineProperties,ap=Object.getOwnPropertyDescriptors,op=Object.getOwnPropertySymbols,sp=Object.prototype.hasOwnProperty,cp=Object.prototype.propertyIsEnumerable,lp=(e,t,n)=>t in e?rp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,up=ip(((e,t)=>{for(var n in t||={})sp.call(t,n)&&lp(e,n,t[n]);if(op)for(var n of op(t))cp.call(t,n)&&lp(e,n,t[n]);return e})({},wd),ap({components:{accordion:bd,autocomplete:xd,avatar:Sd,badge:Cd,blockui:Td,breadcrumb:Ed,button:Dd,card:Od,carousel:kd,cascadeselect:Ad,checkbox:jd,chip:Md,colorpicker:Nd,confirmdialog:Pd,confirmpopup:Fd,contextmenu:Id,datatable:Rd,dataview:zd,datepicker:Bd,dialog:Vd,divider:Hd,dock:Ud,drawer:Wd,editor:Gd,fieldset:Kd,fileupload:qd,floatlabel:Jd,galleria:Yd,iconfield:Xd,iftalabel:Zd,image:Qd,imagecompare:$d,inlinemessage:ef,inplace:tf,inputchips:nf,inputgroup:rf,inputnumber:af,inputotp:of,inputtext:sf,knob:cf,listbox:lf,megamenu:uf,menu:df,menubar:ff,message:pf,metergroup:mf,multiselect:hf,orderlist:gf,organizationchart:_f,overlaybadge:vf,paginator:yf,panel:bf,panelmenu:xf,password:Sf,picklist:Cf,popover:wf,progressbar:Tf,progressspinner:Ef,radiobutton:Df,rating:Of,ripple:kf,scrollpanel:Af,select:jf,selectbutton:Mf,skeleton:Nf,slider:Pf,speeddial:Ff,splitbutton:If,splitter:Lf,stepper:Rf,steps:zf,tabmenu:Bf,tabs:Vf,tabview:Hf,tag:Uf,terminal:Wf,textarea:Gf,tieredmenu:Kf,timeline:qf,toast:Jf,togglebutton:Yf,toggleswitch:Xf,toolbar:Zf,tooltip:Qf,tree:$f,treeselect:ep,treetable:tp,virtualscroller:np},css:Ld})),dp=(...e)=>au(...e),fp=[[`path`,{d:`m12 19-7-7 7-7`}],[`path`,{d:`M19 12H5`}]],pp=[[`path`,{d:`M5 12h14`}],[`path`,{d:`m12 5 7 7-7 7`}]],mp=[[`path`,{d:`M7 7h10v10`}],[`path`,{d:`M7 17 17 7`}]],hp=[[`path`,{d:`m5 12 7-7 7 7`}],[`path`,{d:`M12 19V5`}]],gp=[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`}],[`path`,{d:`m16 9-5.5 5.5L8 12`}]],_p=[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`path`,{d:`M4.929 4.929 19.07 19.071`}]],vp=[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`}]],yp=[[`path`,{d:`M12 5v16`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`}]],bp=[[`path`,{d:`M12 8V4H8`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`}],[`path`,{d:`M2 14h2`}],[`path`,{d:`M20 14h2`}],[`path`,{d:`M15 13v2`}],[`path`,{d:`M9 13v2`}]],xp=[[`path`,{d:`M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1`}],[`path`,{d:`M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1`}]],Sp=[[`path`,{d:`M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z`}],[`path`,{d:`M17 21v-2`}],[`path`,{d:`M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10`}],[`path`,{d:`M21 21v-2`}],[`path`,{d:`M3 5V3`}],[`path`,{d:`M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z`}],[`path`,{d:`M7 5V3`}]],Cp=[[`path`,{d:`M8 2v3`}],[`path`,{d:`M16 2v3`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`}],[`path`,{d:`M3 9h18`}],[`path`,{d:`m9 15 2 2 4-4`}]],wp=[[`path`,{d:`M16 14v2.2l1.6 1`}],[`path`,{d:`M16 2v3`}],[`path`,{d:`M21 7.338V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h2.338`}],[`path`,{d:`M3 9h5.859`}],[`path`,{d:`M8 2v3`}],[`circle`,{cx:`16`,cy:`16`,r:`6`}]],Tp=[[`path`,{d:`M16 2v3`}],[`path`,{d:`M21 10.69V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h7.25`}],[`path`,{d:`m22 21-1.875-1.875`}],[`path`,{d:`M3 9h18`}],[`path`,{d:`M8 2v3`}],[`circle`,{cx:`18`,cy:`17`,r:`3`}]],Ep=[[`path`,{d:`M8 2v3`}],[`path`,{d:`M16 2v3`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`}],[`path`,{d:`M3 9h18`}]],Dp=[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`}],[`path`,{d:`m19 9-5 5-4-4-3 3`}]],Op=[[`path`,{d:`M20 6 9 17l-5-5`}]],kp=[[`path`,{d:`m6 9 6 6 6-6`}]],Ap=[[`path`,{d:`m9 18 6-6-6-6`}]],jp=[[`path`,{d:`m18 15-6-6-6 6`}]],Mp=[[`path`,{d:`m7 15 5 5 5-5`}],[`path`,{d:`m7 9 5-5 5 5`}]],Np=[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`}]],Pp=[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`path`,{d:`m16 9-5.5 5.5L8 12`}]],Fp=[[`path`,{d:`M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z`}],[`circle`,{cx:`12`,cy:`12`,r:`10`}]],Ip=[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`path`,{d:`M12 6v6l4 2`}]],Lp=[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`}]],Rp=[[`line`,{x1:`12`,x2:`12`,y1:`2`,y2:`22`}],[`path`,{d:`M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6`}]],zp=[[`path`,{d:`M12 15V3`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`}],[`path`,{d:`m7 10 5 5 5-5`}]],Bp=[[`circle`,{cx:`12`,cy:`12`,r:`1`}],[`circle`,{cx:`19`,cy:`12`,r:`1`}],[`circle`,{cx:`5`,cy:`12`,r:`1`}]],Vp=[[`path`,{d:`M15 3h6v6`}],[`path`,{d:`M10 14 21 3`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`}]],Hp=[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`}],[`path`,{d:`M10 12.5 8 15l2 2.5`}],[`path`,{d:`m14 12.5 2 2.5-2 2.5`}]],Up=[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`}],[`path`,{d:`M12 9v4`}],[`path`,{d:`M12 17h.01`}]],Wp=[[`path`,{d:`M4 11V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-1`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`}],[`path`,{d:`M2 15h10`}],[`path`,{d:`m9 18 3-3-3-3`}]],Gp=[[`path`,{d:`M4.226 20.925A2 2 0 0 0 6 22h12a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v3.127`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`}],[`path`,{d:`m5 11-3 3`}],[`path`,{d:`m5 17-3-3h10`}]],Kp=[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`}],[`path`,{d:`M10 9H8`}],[`path`,{d:`M16 13H8`}],[`path`,{d:`M16 17H8`}]],qp=[[`path`,{d:`M18 19a5 5 0 0 1-5-5v8`}],[`path`,{d:`M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5`}],[`circle`,{cx:`13`,cy:`12`,r:`2`}],[`circle`,{cx:`20`,cy:`19`,r:`2`}]],Jp=[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`}]],Yp=[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`}]],Xp=[[`path`,{d:`M12.531 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14v6a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341l.427-.473`}],[`path`,{d:`m16.5 3.5 5 5`}],[`path`,{d:`m21.5 3.5-5 5`}]],Zp=[[`path`,{d:`M6 3v12`}],[`path`,{d:`M18 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6z`}],[`path`,{d:`M6 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6z`}],[`path`,{d:`M15 6a9 9 0 0 0-9 9`}],[`path`,{d:`M18 15v6`}],[`path`,{d:`M21 18h-6`}]],Qp=[[`circle`,{cx:`12`,cy:`12`,r:`3`}],[`line`,{x1:`3`,x2:`9`,y1:`12`,y2:`12`}],[`line`,{x1:`15`,x2:`21`,y1:`12`,y2:`12`}]],$p=[[`path`,{d:`M5 22h14`}],[`path`,{d:`M5 2h14`}],[`path`,{d:`M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22`}],[`path`,{d:`M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2`}]],em=[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`}]],tm=[[`path`,{d:`m2 21 9.6-9.6`}],[`path`,{d:`m7.5 15.5 2.3 2.3a1 1 0 0 1 0 1.4l-2.1 2.1a1 1 0 0 1-1.4 0L4 19`}],[`circle`,{cx:`15.5`,cy:`7.5`,r:`5.5`}]],nm=[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`}]],rm=[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`}]],im=[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`}]],am=[[`path`,{d:`M13 5h8`}],[`path`,{d:`M13 12h8`}],[`path`,{d:`M13 19h8`}],[`path`,{d:`m3 17 2 2 4-4`}],[`path`,{d:`m3 7 2 2 4-4`}]],om=[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`}]],sm=[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`}]],cm=[[`path`,{d:`m16 17 5-5-5-5`}],[`path`,{d:`M21 12H9`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`}]],lm=[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`}]],um=[[`path`,{d:`M4 5h16`}],[`path`,{d:`M4 12h16`}],[`path`,{d:`M4 19h16`}]],dm=[[`path`,{d:`M5 12h14`}]],fm=[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`}]],pm=[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`}],[`path`,{d:`M12 12V8`}]],mm=[[`path`,{d:`m15 9-6 6`}],[`path`,{d:`M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z`}],[`path`,{d:`m9 9 6 6`}]],hm=[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`}]],gm=[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`}],[`path`,{d:`m15 5 4 4`}]],_m=[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`}]],vm=[[`path`,{d:`M5 12h14`}],[`path`,{d:`M12 5v14`}]],ym=[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`}],[`path`,{d:`M21 3v5h-5`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`}],[`path`,{d:`M8 16H3v5`}]],bm=[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`}],[`path`,{d:`M3 3v5h5`}],[`path`,{d:`M12 7v5l4 2`}]],xm=[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`}],[`path`,{d:`M3 3v5h5`}]],Sm=[[`path`,{d:`m21 21-4.34-4.34`}],[`circle`,{cx:`11`,cy:`11`,r:`8`}]],Cm=[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`}],[`path`,{d:`m21.854 2.147-10.94 10.939`}]],wm=[[`path`,{d:`m10.852 14.772-.383.923`}],[`path`,{d:`M13.148 14.772a3 3 0 1 0-2.296-5.544l-.383-.923`}],[`path`,{d:`m13.148 9.228.383-.923`}],[`path`,{d:`m13.53 15.696-.382-.924a3 3 0 1 1-2.296-5.544`}],[`path`,{d:`m14.772 10.852.923-.383`}],[`path`,{d:`m14.772 13.148.923.383`}],[`path`,{d:`M4.5 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-.5`}],[`path`,{d:`M4.5 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-.5`}],[`path`,{d:`M6 18h.01`}],[`path`,{d:`M6 6h.01`}],[`path`,{d:`m9.228 10.852-.923-.383`}],[`path`,{d:`m9.228 13.148-.923.383`}]],Tm=[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`}]],Em=[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`}],[`circle`,{cx:`12`,cy:`12`,r:`3`}]],Dm=[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`}],[`path`,{d:`M12 8v4`}],[`path`,{d:`M12 16h.01`}]],Om=[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`}],[`path`,{d:`m9 12 2 2 4-4`}]],km=[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`}],[`path`,{d:`M20 2v4`}],[`path`,{d:`M22 4h-4`}],[`circle`,{cx:`4`,cy:`20`,r:`2`}]],Am=[[`path`,{d:`M12 19h8`}],[`path`,{d:`m4 17 6-6-6-6`}]],jm=[[`path`,{d:`M21 5H3`}],[`path`,{d:`M10 12H3`}],[`path`,{d:`M10 19H3`}],[`circle`,{cx:`17`,cy:`15`,r:`3`}],[`path`,{d:`m21 19-1.9-1.9`}]],Mm=[[`path`,{d:`M10 11v6`}],[`path`,{d:`M14 11v6`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`}],[`path`,{d:`M3 6h18`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`}]],Nm=[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`}],[`path`,{d:`M12 9v4`}],[`path`,{d:`M12 17h.01`}]],Pm=[[`path`,{d:`m19 5 3-3`}],[`path`,{d:`m2 22 3-3`}],[`path`,{d:`M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z`}],[`path`,{d:`M7.5 13.5 10 11`}],[`path`,{d:`M10.5 16.5 13 14`}],[`path`,{d:`m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z`}]],Fm=[[`path`,{d:`m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71`}],[`path`,{d:`m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71`}],[`line`,{x1:`8`,x2:`8`,y1:`2`,y2:`5`}],[`line`,{x1:`2`,x2:`5`,y1:`8`,y2:`8`}],[`line`,{x1:`16`,x2:`16`,y1:`19`,y2:`22`}],[`line`,{x1:`19`,x2:`22`,y1:`16`,y2:`16`}]],Im=[[`path`,{d:`M20 11v6`}],[`path`,{d:`M20 13h2`}],[`path`,{d:`M3 21v-2a4 4 0 0 1 4-4h6a4 4 0 0 1 2.072.578`}],[`circle`,{cx:`10`,cy:`7`,r:`4`}],[`circle`,{cx:`20`,cy:`19`,r:`2`}]],Lm=[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`}],[`circle`,{cx:`9`,cy:`7`,r:`4`}],[`line`,{x1:`19`,x2:`19`,y1:`8`,y2:`14`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`}]],Rm=[[`path`,{d:`M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2`}],[`path`,{d:`m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06`}],[`path`,{d:`m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8`}]],zm=[[`rect`,{width:`8`,height:`8`,x:`3`,y:`3`,rx:`2`}],[`path`,{d:`M7 11v4a2 2 0 0 0 2 2h4`}],[`rect`,{width:`8`,height:`8`,x:`13`,y:`13`,rx:`2`}]],Bm=[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`}]],Vm=[[`path`,{d:`M18 6 6 18`}],[`path`,{d:`m6 6 12 12`}]],Hm=`M12,2A10,10 0 0,0 2,12C2,16.42 4.87,20.17 8.84,21.5C9.34,21.58 9.5,21.27 9.5,21C9.5,20.77 9.5,20.14 9.5,19.31C6.73,19.91 6.14,17.97 6.14,17.97C5.68,16.81 5.03,16.5 5.03,16.5C4.12,15.88 5.1,15.9 5.1,15.9C6.1,15.97 6.63,16.93 6.63,16.93C7.5,18.45 8.97,18 9.54,17.76C9.63,17.11 9.89,16.67 10.17,16.42C7.95,16.17 5.62,15.31 5.62,11.5C5.62,10.39 6,9.5 6.65,8.79C6.55,8.54 6.2,7.5 6.75,6.15C6.75,6.15 7.59,5.88 9.5,7.17C10.29,6.95 11.15,6.84 12,6.84C12.85,6.84 13.71,6.95 14.5,7.17C16.41,5.88 17.25,6.15 17.25,6.15C17.8,7.5 17.45,8.54 17.35,8.79C18,9.5 18.38,10.39 18.38,11.5C18.38,15.32 16.04,16.16 13.81,16.41C14.17,16.72 14.5,17.33 14.5,18.26C14.5,19.6 14.5,20.68 14.5,21C14.5,21.27 14.66,21.59 15.17,21.5C19.14,20.16 22,16.42 22,12A10,10 0 0,0 12,2Z`,Um={"account-key-outline":Im,"account-plus-outline":Lm,"alert-circle-outline":Np,"alert-outline":Nm,api:xp,"arrow-left":fp,"arrow-right":pp,"arrow-top-right":mp,"arrow-up-right":mp,"arrow-up":hp,"bell-outline":vp,"book-open-variant-outline":yp,"calendar-blank-outline":Ep,"calendar-check-outline":Cp,"calendar-clock-outline":wp,"calendar-search":Tp,cancel:_p,"chart-timeline-variant":Dp,check:Op,"check-circle-outline":Pp,"check-decagram-outline":gp,"chevron-down":kp,"chevron-right":Ap,"chevron-up":jp,"clock-outline":Ip,close:Vm,"close-octagon-outline":mm,"cog-outline":Em,connection:Sp,"console-line":Am,"content-copy":Lp,"creation-outline":km,"currency-usd":Rp,"dots-horizontal":Bp,download:zp,"email-outline":lm,"file-alert-outline":Up,"file-code-outline":Hp,"file-export-outline":Gp,"file-import-outline":Wp,"filter-remove-outline":Xp,"folder-open-outline":Jp,"folder-outline":Yp,history:bm,"key-variant":tm,link:im,"link-plus":rm,"link-variant-off":Fm,loading:om,"lock-outline":sm,logout:cm,magnify:Sm,menu:um,minus:dm,"open-in-new":Vp,pause:hm,"pencil-outline":gm,play:_m,"play-circle-outline":Fp,"play-outline":_m,plus:vm,"power-plug-off-outline":Pm,"progress-check":am,refresh:ym,replay:xm,"robot-outline":bp,"send-outline":Cm,"server-network":pm,"server-outline":Tm,"server-plus-outline":wm,"shield-alert-outline":Dm,"shield-check-outline":Om,"shield-key-outline":em,"source-branch-plus":Zp,"source-commit":Qp,"source-repository":qp,"text-box-outline":Kp,"text-box-search-outline":jm,"timer-sand":$p,"transit-connection-variant":zm,"trash-can-outline":Mm,"unfold-more-horizontal":Mp,"view-dashboard-outline":nm,"weather-night":fm,webhook:Rm,"wrench-outline":Bm},Wm={github:Hm},Gm={key:1,class:`app-icon logo`,viewBox:`0 0 24 24`,"aria-hidden":`true`,focusable:`false`},Km=[`d`],J=P({__name:`AppIcon`,props:{name:{},spin:{type:Boolean}},setup(e){let t=e,n=q(()=>Um[t.name??``]),r=q(()=>Wm[t.name??``]);return(t,i)=>n.value?(z(),B(`svg`,{key:0,class:k([`app-icon line`,{"app-icon-spin":e.spin}]),viewBox:`0 0 24 24`,"aria-hidden":`true`,focusable:`false`},[(z(!0),B(R,null,I(n.value,([e,t],n)=>(z(),V(li(e),K({key:n},{ref_for:!0},t),null,16))),128))],2)):r.value||e.name===`blank`?(z(),B(`svg`,Gm,[H(`path`,{d:r.value},null,8,Km)])):G(``,!0)}}),qm=typeof document<`u`;function Jm(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function Ym(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&Jm(e.default)}var Xm=Object.assign;function Zm(e,t){let n={};for(let r in t){let i=t[r];n[r]=$m(i)?i.map(e):e(i)}return n}var Qm=()=>{},$m=Array.isArray;function eh(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var th=/#/g,nh=/&/g,rh=/\//g,ih=/=/g,ah=/\?/g,oh=/\+/g,sh=/%5B/g,ch=/%5D/g,lh=/%5E/g,uh=/%60/g,dh=/%7B/g,fh=/%7C/g,ph=/%7D/g,mh=/%20/g;function hh(e){return e==null?``:encodeURI(``+e).replace(fh,`|`).replace(sh,`[`).replace(ch,`]`)}function gh(e){return hh(e).replace(dh,`{`).replace(ph,`}`).replace(lh,`^`)}function _h(e){return hh(e).replace(oh,`%2B`).replace(mh,`+`).replace(th,`%23`).replace(nh,`%26`).replace(uh,"`").replace(dh,`{`).replace(ph,`}`).replace(lh,`^`)}function vh(e){return _h(e).replace(ih,`%3D`)}function yh(e){return hh(e).replace(th,`%23`).replace(ah,`%3F`)}function bh(e){return yh(e).replace(rh,`%2F`)}function xh(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var Sh=/\/$/,Ch=e=>e.replace(Sh,``);function wh(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=Mh(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:xh(o)}}function Th(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function Eh(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function Dh(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Oh(t.matched[r],n.matched[i])&&kh(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Oh(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function kh(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Ah(e[n],t[n]))return!1;return!0}function Ah(e,t){return $m(e)?jh(e,t):$m(t)?jh(t,e):e?.valueOf()===t?.valueOf()}function jh(e,t){return $m(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function Mh(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`){if(s===`..`)a>1&&a--;else break}return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var Nh={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0},Ph=function(e){return e.pop=`pop`,e.push=`push`,e}({}),Fh=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function Ih(e){if(!e){if(qm){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^\/]+/,``)}else e=`/`}return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),Ch(e)}var Lh=/^[^#]+#/;function Rh(e,t){return e.replace(Lh,`#`)+t}function zh(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var Bh=()=>({left:window.scrollX,top:window.scrollY});function Vh(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=zh(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function Hh(e,t){return(history.state?history.state.position-t:-1)+e}var Uh=new Map;function Wh(e,t){Uh.set(e,t)}function Gh(e){let t=Uh.get(e);return Uh.delete(e),t}function Kh(e){return typeof e==`string`||e&&typeof e==`object`}function qh(e){return typeof e==`string`||typeof e==`symbol`}var Jh=function(e){return e[e.MATCHER_NOT_FOUND=1]=`MATCHER_NOT_FOUND`,e[e.NAVIGATION_GUARD_REDIRECT=2]=`NAVIGATION_GUARD_REDIRECT`,e[e.NAVIGATION_ABORTED=4]=`NAVIGATION_ABORTED`,e[e.NAVIGATION_CANCELLED=8]=`NAVIGATION_CANCELLED`,e[e.NAVIGATION_DUPLICATED=16]=`NAVIGATION_DUPLICATED`,e}({}),Yh=Symbol(``);Jh.MATCHER_NOT_FOUND,Jh.NAVIGATION_GUARD_REDIRECT,Jh.NAVIGATION_ABORTED,Jh.NAVIGATION_CANCELLED,Jh.NAVIGATION_DUPLICATED;function Xh(e,t){return Xm(Error(),{type:e,[Yh]:!0},t)}function Zh(e,t){return e instanceof Error&&Yh in e&&(t==null||!!(e.type&t))}function Qh(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(oh,` `),i=r.indexOf(`=`),a=xh(i<0?r:r.slice(0,i)),o=i<0?null:xh(r.slice(i+1));if(a in t){let e=t[a];$m(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function $h(e){let t=``;for(let n in e){let r=e[n];n=vh(n),r==null?r!==void 0&&(t+=(t.length?`&`:``)+n):($m(r)?r.map(e=>e&&_h(e)):[r&&_h(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function eg(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=$m(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}var tg=Symbol(``),ng=Symbol(``),rg=Symbol(``),ig=Symbol(``),ag=Symbol(``);function og(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function sg(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(Xh(Jh.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):Kh(e)?c(Xh(Jh.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function cg(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(t===`beforeRouteEnter`||o.instances[e]){if(Jm(s)){let c=(s.__vccOpts||s)[t];c&&a.push(sg(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=Ym(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&sg(c,n,r,o,e,i)()}))}}}return a}function lg(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>Oh(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>Oh(e,s))||i.push(s))}return[n,r,i]}var ug=()=>location.protocol+`//`+location.host;function dg(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),Eh(n,``)}return Eh(n,e)+r+i}function fg(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=dg(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:Ph.pop,direction:u?u>0?Fh.forward:Fh.back:Fh.unknown})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(Xm({},e.state,{scroll:Bh()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function pg(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Bh():null}}function mg(e){let{history:t,location:n}=window,r={value:dg(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:ug()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,Xm({},t.state,pg(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=Xm({},i.value,t.state,{forward:e,scroll:Bh()});a(o.current,o,!0),a(e,Xm({},pg(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function hg(e){e=Ih(e);let t=mg(e),n=fg(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=Xm({location:``,base:e,go:r,createHref:Rh.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}var gg=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.Group=2]=`Group`,e}({}),_g=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.ParamRegExp=2]=`ParamRegExp`,e[e.ParamRegExpEnd=3]=`ParamRegExpEnd`,e[e.EscapeNext=4]=`EscapeNext`,e}(_g||{}),vg={type:gg.Static,value:``},yg=/[a-zA-Z0-9_]/;function bg(e){if(!e)return[[]];if(e===`/`)return[[vg]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=_g.Static,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===_g.Static?a.push({type:gg.Static,value:l}):n===_g.Param||n===_g.ParamRegExp||n===_g.ParamRegExpEnd?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:gg.Param,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;)if(c=e[s++],c===`\\`&&n!==_g.ParamRegExp)r=n,n=_g.EscapeNext;else switch(n){case _g.Static:c===`/`?(l&&d(),o()):c===`:`?(d(),n=_g.Param):f();break;case _g.EscapeNext:f(),n=r;break;case _g.Param:c===`(`?n=_g.ParamRegExp:yg.test(c)?f():(d(),n=_g.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case _g.ParamRegExp:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=_g.ParamRegExpEnd:u+=c;break;case _g.ParamRegExpEnd:d(),n=_g.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`)}return n===_g.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var xg=`[^/]+?`,Sg={sensitive:!1,strict:!1,start:!0,end:!0},Cg=function(e){return e[e._multiplier=10]=`_multiplier`,e[e.Root=90]=`Root`,e[e.Segment=40]=`Segment`,e[e.SubSegment=30]=`SubSegment`,e[e.Static=40]=`Static`,e[e.Dynamic=20]=`Dynamic`,e[e.BonusCustomRegExp=10]=`BonusCustomRegExp`,e[e.BonusWildcard=-50]=`BonusWildcard`,e[e.BonusRepeatable=-20]=`BonusRepeatable`,e[e.BonusOptional=-8]=`BonusOptional`,e[e.BonusStrict=.7000000000000001]=`BonusStrict`,e[e.BonusCaseSensitive=.25]=`BonusCaseSensitive`,e}(Cg||{}),wg=/[.+*?^${}()[\]/\\]/g;function Tg(e,t){let n=Xm({},Sg,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[Cg.Root];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=Cg.Segment+(n.sensitive?Cg.BonusCaseSensitive:0);if(o.type===gg.Static)r||(i+=`/`),i+=o.value.replace(wg,`\\$&`),s+=Cg.Static;else if(o.type===gg.Param){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||xg;if(u!==xg){s+=Cg.BonusCustomRegExp;try{`${u}`}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=Cg.Dynamic,c&&(s+=Cg.BonusOptional),n&&(s+=Cg.BonusRepeatable),u===`.*`&&(s+=Cg.BonusWildcard)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=Cg.BonusStrict}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===gg.Static)n+=e.value;else if(e.type===gg.Param){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if($m(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=$m(c)?c.join(`/`):c;if(!l){if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`)}n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function Eg(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===Cg.Static+Cg.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Cg.Static+Cg.Segment?1:-1:0}function Dg(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=Eg(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(Og(r))return 1;if(Og(i))return-1}return i.length-r.length}function Og(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var kg={strict:!1,end:!0,sensitive:!1};function Ag(e,t,n){let r=Xm(Tg(bg(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function jg(e,t){let n=[],r=new Map;t=eh(kg,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=Ng(e);s.aliasOf=r&&r.record;let l=eh(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(Ng(Xm({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=Ag(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!Fg(d)&&o(e.name)),zg(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:Qm}function o(e){if(qh(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=Lg(e,n);n.splice(t,0,e),e.record.name&&!Fg(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw Xh(Jh.MATCHER_NOT_FOUND,{location:e});s=i.record.name,a=Xm(Mg(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Mg(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name);else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw Xh(Jh.MATCHER_NOT_FOUND,{location:e,currentLocation:t});s=i.record.name,a=Xm({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:Ig(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function Mg(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Ng(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Pg(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Pg(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function Fg(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ig(e){return e.reduce((e,t)=>Xm(e,t.meta),{})}function Lg(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Dg(e,t[i])<0?r=i:n=i+1}let i=Rg(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Rg(e){let t=e;for(;t=t.parent;)if(zg(t)&&Dg(e,t)===0)return t}function zg({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Bg(e){let t=Qn(rg),n=Qn(ig),r=q(()=>{let n=M(e.to);return t.resolve(n)}),i=q(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(Oh.bind(null,i));if(o>-1)return o;let s=Gg(e[t-2]);return t>1&&Gg(i)===s&&a[a.length-1].path!==s?a.findIndex(Oh.bind(null,e[t-2])):o}),a=q(()=>i.value>-1&&Wg(n.params,r.value.params)),o=q(()=>i.value>-1&&i.value===n.matched.length-1&&kh(n.params,r.value.params));function s(n={}){if(Ug(n)){let n=t[M(e.replace)?`replace`:`push`](M(e.to)).catch(Qm);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:q(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function Vg(e){return e.length===1?e[0]:e}var Hg=P({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:Bg,setup(e,{slots:t}){let n=Wt(Bg(e)),{options:r}=Qn(rg),i=q(()=>({[Kg(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[Kg(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&Vg(t.default(n));return e.custom?r:bo(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function Ug(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(e.button===void 0||e.button===0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Wg(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!$m(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function Gg(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var Kg=(e,t,n)=>e??t??n,qg=P({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=Qn(ag),i=q(()=>e.route||r.value),a=Qn(ng,0),o=q(()=>{let e=M(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=q(()=>i.value.matched[o.value]);Zn(ng,q(()=>o.value+1)),Zn(tg,s),Zn(ag,i);let c=j();return rr(()=>[c.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!Oh(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,l=o&&o.components[a];if(!l)return Jg(n.default,{Component:l,route:r});let u=o.props[a],d=bo(l,Xm({},u?u===!0?r.params:typeof u==`function`?u(r):u:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:c}));return Jg(n.default,{Component:d,route:r})||d}}});function Jg(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var Yg=qg;function Xg(e){let t=jg(e.routes,e),n=e.parseQuery||Qh,r=e.stringifyQuery||$h,i=e.history,a=og(),o=og(),s=og(),c=rn(Nh),l=Nh;qm&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let u=Zm.bind(null,e=>``+e),d=Zm.bind(null,bh),f=Zm.bind(null,xh);function p(e,n){let r,i;return qh(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function m(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function h(){return t.getRoutes().map(e=>e.record)}function g(e){return!!t.getRecordMatcher(e)}function _(e,a){if(a=Xm({},a||c.value),typeof e==`string`){let r=wh(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return Xm(r,o,{params:f(o.params),hash:xh(r.hash),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=Xm({},e,{path:wh(n,e.path,a.path).path});else{let t=Xm({},e.params);for(let e in t)t[e]??delete t[e];o=Xm({},e,{params:d(t)}),a.params=d(a.params)}let s=t.resolve(o,a),l=e.hash||``;s.params=u(f(s.params));let p=Th(r,Xm({},e,{hash:gh(l),path:s.path})),m=i.createHref(p);return Xm({fullPath:p,hash:l,query:r===$h?eg(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function v(e){return typeof e==`string`?wh(n,e,c.value.path):Xm({},e)}function y(e,t){if(l!==e)return Xh(Jh.NAVIGATION_CANCELLED,{from:t,to:e})}function b(e){return C(e)}function x(e){return b(Xm(v(e),{replace:!0}))}function S(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=v(i):{path:i},i.params={}),Xm({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function C(e,t){let n=l=_(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,u=S(n,i);if(u)return C(Xm(v(u),{state:typeof u==`object`?Xm({},a,u.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&Dh(r,i,n)&&(f=Xh(Jh.NAVIGATION_DUPLICATED,{to:d,from:i}),ce(i,i,!0,!1)),(f?Promise.resolve(f):ee(d,i)).catch(e=>Zh(e)?Zh(e,Jh.NAVIGATION_GUARD_REDIRECT)?e:se(e):ae(e,d,i)).then(e=>{if(e){if(Zh(e,Jh.NAVIGATION_GUARD_REDIRECT))return C(Xm({replace:s},v(e.to),{state:typeof e.to==`object`?Xm({},a,e.to.state):a,force:o}),t||d)}else e=E(d,i,!0,s,a);return te(d,i,e),e})}function w(e,t){let n=y(e,t);return n?Promise.reject(n):Promise.resolve()}function T(e){let t=de.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function ee(e,t){let n,[r,i,s]=lg(e,t);n=cg(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(sg(r,e,t))});let c=w.bind(null,e,t);return n.push(c),pe(n).then(()=>{n=[];for(let r of a.list())n.push(sg(r,e,t));return n.push(c),pe(n)}).then(()=>{n=cg(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(sg(r,e,t))});return n.push(c),pe(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter){if($m(r.beforeEnter))for(let i of r.beforeEnter)n.push(sg(i,e,t));else n.push(sg(r.beforeEnter,e,t))}return n.push(c),pe(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=cg(s,`beforeRouteEnter`,e,t,T),n.push(c),pe(n))).then(()=>{n=[];for(let r of o.list())n.push(sg(r,e,t));return n.push(c),pe(n)}).catch(e=>Zh(e,Jh.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function te(e,t,n){s.list().forEach(r=>T(()=>r(e,t,n)))}function E(e,t,n,r,a){let o=y(e,t);if(o)return o;let s=t===Nh,l=qm?history.state:{};n&&(r||s?i.replace(e.fullPath,Xm({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,ce(e,t,n,s),se()}let ne;function D(){ne||=i.listen((e,t,n)=>{if(!fe.listening)return;let r=_(e),a=S(r,fe.currentRoute.value);if(a){C(Xm(a,{replace:!0,force:!0}),r).catch(Qm);return}l=r;let o=c.value;qm&&Wh(Hh(o.fullPath,n.delta),Bh()),ee(r,o).catch(e=>Zh(e,Jh.NAVIGATION_ABORTED|Jh.NAVIGATION_CANCELLED)?e:Zh(e,Jh.NAVIGATION_GUARD_REDIRECT)?(C(Xm(v(e.to),{force:!0}),r).then(e=>{Zh(e,Jh.NAVIGATION_ABORTED|Jh.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===Ph.pop&&i.go(-1,!1)}).catch(Qm),Promise.reject()):(n.delta&&i.go(-n.delta,!1),ae(e,r,o))).then(e=>{e||=E(r,o,!1),e&&(n.delta&&!Zh(e,Jh.NAVIGATION_CANCELLED)?i.go(-n.delta,!1):n.type===Ph.pop&&Zh(e,Jh.NAVIGATION_ABORTED|Jh.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),te(r,o,e)}).catch(Qm)})}let re=og(),ie=og(),O;function ae(e,t,n){se(e);let r=ie.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function oe(){return O&&c.value!==Nh?Promise.resolve():new Promise((e,t)=>{re.add([e,t])})}function se(e){return O||(O=!e,D(),re.list().forEach(([t,n])=>e?n(e):t()),re.reset()),e}function ce(t,n,r,i){let{scrollBehavior:a}=e;if(!qm||!a)return Promise.resolve();let o=!r&&Gh(Hh(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return Fn().then(()=>a(t,n,o)).then(e=>e&&Vh(e)).catch(e=>ae(e,t,n))}let le=e=>i.go(e),ue,de=new Set,fe={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:_,options:e,push:b,replace:x,go:le,back:()=>le(-1),forward:()=>le(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:ie.add,isReady:oe,install(e){e.component(`RouterLink`,Hg),e.component(`RouterView`,Yg),e.config.globalProperties.$router=fe,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>M(c)}),qm&&!ue&&c.value===Nh&&(ue=!0,b(i.location).catch(e=>{}));let t={};for(let e in Nh)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(rg,fe),e.provide(ig,Gt(t)),e.provide(ag,c);let n=e.unmount;de.add(e),e.unmount=function(){de.delete(e),de.size<1&&(l=Nh,ne&&ne(),ne=null,c.value=Nh,ue=!1,O=!1),n()}}};function pe(e){return e.reduce((e,t)=>e.then(()=>T(t)),Promise.resolve())}return fe}function Zg(){return Qn(rg)}function Qg(e){return Qn(ig)}function $g(e){"@babel/helpers - typeof";return $g=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},$g(e)}function e_(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function t_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r_(r.key),r)}}function n_(e,t,n){return t&&t_(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function r_(e){var t=i_(e,`string`);return $g(t)==`symbol`?t:t+``}function i_(e,t){if($g(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($g(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}var a_=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){};e_(this,e),this.element=t,this.listener=n}return n_(e,[{key:`bindScrollListener`,value:function(){this.scrollableParents=Il(this.element);for(var e=0;e<this.scrollableParents.length;e++)this.scrollableParents[e].addEventListener(`scroll`,this.listener)}},{key:`unbindScrollListener`,value:function(){if(this.scrollableParents)for(var e=0;e<this.scrollableParents.length;e++)this.scrollableParents[e].removeEventListener(`scroll`,this.listener)}},{key:`destroy`,value:function(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}}])}(),o_=el(),s_={name:`Portal`,props:{appendTo:{type:[String,Object],default:`body`},disabled:{type:Boolean,default:!1}},data:function(){return{mounted:!1}},mounted:function(){this.mounted=Bl()},computed:{inline:function(){return this.disabled||this.appendTo===`self`}}};function c_(e,t,n,r,i,a){return a.inline?L(e.$slots,`default`,{key:0}):i.mounted?(z(),V(vr,{key:1,to:n.appendTo},[L(e.$slots,`default`)],8,[`to`])):G(``,!0)}s_.render=c_;var l_={_loadedStyleNames:new Set,getLoadedStyleNames:function(){return this._loadedStyleNames},isStyleNameLoaded:function(e){return this._loadedStyleNames.has(e)},setLoadedStyleName:function(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName:function(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames:function(){this._loadedStyleNames.clear()}};function u_(){return`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:`pc`}${Ir().replace(`v-`,``).replaceAll(`-`,`_`)}`}var d_=ad.extend({name:`common`});function f_(e){"@babel/helpers - typeof";return f_=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},f_(e)}function p_(e){return b_(e)||m_(e)||__(e)||g_()}function m_(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function h_(e,t){return b_(e)||y_(e,t)||__(e,t)||g_()}function g_(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
183
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function __(e,t){if(e){if(typeof e==`string`)return v_(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v_(e,t):void 0}}function v_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function y_(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function b_(e){if(Array.isArray(e))return e}function x_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function S_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?x_(Object(n),!0).forEach(function(t){C_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function C_(e,t,n){return(t=w_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w_(e){var t=T_(e,`string`);return f_(t)==`symbol`?t:t+``}function T_(e,t){if(f_(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(f_(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var E_={name:`BaseComponent`,props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0},dt:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(e){ou.off(`theme:change`,this._loadCoreStyles),e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e,t){var n=this;ou.off(`theme:change`,this._themeScopedListener),e?(this._loadScopedThemeStyles(e),this._themeScopedListener=function(){return n._loadScopedThemeStyles(e)},this._themeChangeListener(this._themeScopedListener)):this._unloadScopedThemeStyles()}}},scopedStyleEl:void 0,rootEl:void 0,uid:void 0,$attrSelector:void 0,beforeCreate:function(){var e,t,n,r,i,a,o,s,c,l,u=this.pt?._usept,d=u?(e=this.pt)==null||(e=e.originalValue)==null?void 0:e[this.$.type.name]:void 0;(n=(u?(t=this.pt)==null||(t=t.value)==null?void 0:t[this.$.type.name]:this.pt)||d)==null||(n=n.hooks)==null||(r=n.onBeforeCreate)==null||r.call(n);var f=(i=this.$primevueConfig)==null||(i=i.pt)==null?void 0:i._usept,p=f?(a=this.$primevue)==null||(a=a.config)==null||(a=a.pt)==null?void 0:a.originalValue:void 0;(c=(f?(o=this.$primevue)==null||(o=o.config)==null||(o=o.pt)==null?void 0:o.value:(s=this.$primevue)==null||(s=s.config)==null?void 0:s.pt)||p)==null||(c=c[this.$.type.name])==null||(c=c.hooks)==null||(l=c.onBeforeCreate)==null||l.call(c),this.$attrSelector=u_(),this.uid=this.$attrs.id||this.$attrSelector.replace(`pc`,`pv_id_`)},created:function(){this._hook(`onCreated`)},beforeMount:function(){this.rootEl=El(xl(this.$el)?this.$el:this.$el?.parentElement,`[${this.$attrSelector}]`),this.rootEl&&(this.rootEl.$pc=S_({name:this.$.type.name,attrSelector:this.$attrSelector},this.$params)),this._loadStyles(),this._hook(`onBeforeMount`)},mounted:function(){this._hook(`onMounted`)},beforeUpdate:function(){this._hook(`onBeforeUpdate`)},updated:function(){this._hook(`onUpdated`)},beforeUnmount:function(){this._hook(`onBeforeUnmount`)},unmounted:function(){this._removeThemeListeners(),this._unloadScopedThemeStyles(),this._hook(`onUnmounted`)},methods:{_hook:function(e){if(!this.$options.hostName){var t=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,`hooks.${e}`),n=this._useDefaultPT(this._getOptionValue,`hooks.${e}`);t?.(),n?.()}},_mergeProps:function(e){var t=[...arguments].slice(1);return Nc(e)?e.apply(void 0,t):K.apply(void 0,t)},_load:function(){l_.isStyleNameLoaded(`base`)||(ad.loadCSS(this.$styleOptions),this._loadGlobalStyles(),l_.setLoadedStyleName(`base`)),this._loadThemeStyles()},_loadStyles:function(){this._load(),this._themeChangeListener(this._load)},_loadCoreStyles:function(){var e;!l_.isStyleNameLoaded(this.$style?.name)&&(e=this.$style)!=null&&e.name&&(d_.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),l_.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,`global.css`,this.$params);Pc(e)&&ad.load(e,S_({name:`global`},this.$styleOptions))},_loadThemeStyles:function(){var e;if(!(this.isUnstyled||this.$theme===`none`)){if(!Eu.isStyleNameLoaded(`common`)){var t,n,r=((t=this.$style)==null||(n=t.getCommonTheme)==null?void 0:n.call(t))||{},i=r.primitive,a=r.semantic,o=r.global,s=r.style;ad.load(i?.css,S_({name:`primitive-variables`},this.$styleOptions)),ad.load(a?.css,S_({name:`semantic-variables`},this.$styleOptions)),ad.load(o?.css,S_({name:`global-variables`},this.$styleOptions)),ad.loadStyle(S_({name:`global-style`},this.$styleOptions),s),Eu.setLoadedStyleName(`common`)}if(!Eu.isStyleNameLoaded(this.$style?.name)&&(e=this.$style)!=null&&e.name){var c,l,u,d,f=((c=this.$style)==null||(l=c.getComponentTheme)==null?void 0:l.call(c))||{},p=f.css,m=f.style;(u=this.$style)==null||u.load(p,S_({name:`${this.$style.name}-variables`},this.$styleOptions)),(d=this.$style)==null||d.loadStyle(S_({name:`${this.$style.name}-style`},this.$styleOptions),m),Eu.setLoadedStyleName(this.$style.name)}if(!Eu.isStyleNameLoaded(`layer-order`)){var h,g,_=(h=this.$style)==null||(g=h.getLayerOrderThemeCSS)==null?void 0:g.call(h);ad.load(_,S_({name:`layer-order`,first:!0},this.$styleOptions)),Eu.setLoadedStyleName(`layer-order`)}}},_loadScopedThemeStyles:function(e){var t,n,r=(((t=this.$style)==null||(n=t.getPresetTheme)==null?void 0:n.call(t,e,`[${this.$attrSelector}]`))||{}).css,i=this.$style?.load(r,S_({name:`${this.$attrSelector}-${this.$style.name}`},this.$styleOptions));this.scopedStyleEl=i.el},_unloadScopedThemeStyles:function(){var e;(e=this.scopedStyleEl)==null||(e=e.value)==null||e.remove()},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};l_.clearLoadedStyleNames(),ou.on(`theme:change`,e)},_removeThemeListeners:function(){ou.off(`theme:change`,this._loadCoreStyles),ou.off(`theme:change`,this._load),ou.off(`theme:change`,this._themeScopedListener)},_getHostInstance:function(e){return e?this.$options.hostName?e.$.type.name===this.$options.hostName?e:this._getHostInstance(e.$parentInstance):e.$parentInstance:void 0},_getPropValue:function(e){return this[e]||this._getHostInstance(this)?.[e]},_getOptionValue:function(e){return Wc(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{})},_getPTValue:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=/./g.test(t)&&!!n[t.split(`.`)[0]],a=this._getPropValue(`ptOptions`)||this.$primevueConfig?.ptOptions||{},o=a.mergeSections,s=o===void 0||o,c=a.mergeProps,l=c!==void 0&&c,u=r?i?this._useGlobalPT(this._getPTClassValue,t,n):this._useDefaultPT(this._getPTClassValue,t,n):void 0,d=i?void 0:this._getPTSelf(e,this._getPTClassValue,t,S_(S_({},n),{},{global:u||{}})),f=this._getPTDatasets(t);return s||!s&&d?l?this._mergeProps(l,u,d,f):S_(S_(S_({},u),d),f):S_(S_({},d),f)},_getPTSelf:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=[...arguments].slice(1);return K(this._usePT.apply(this,[this._getPT(e,this.$name)].concat(t)),this._usePT.apply(this,[this.$_attrsPT].concat(t)))},_getPTDatasets:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,t=`data-pc-`,n=e===`root`&&Pc(this.pt?.[`data-pc-section`]);return e!==`transition`&&S_(S_({},e===`root`&&S_(S_(C_({},`${t}name`,Uc(n?this.pt?.[`data-pc-section`]:this.$.type.name)),n&&C_({},`${t}extend`,Uc(this.$.type.name))),{},C_({},`${this.$attrSelector}`,``))),{},C_({},`${t}section`,Uc(e)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return Hc(e)||Gc(e)?{class:e}:e},_getPT:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,r=arguments.length>2?arguments[2]:void 0,i=function(e){var i=arguments.length>1&&arguments[1]!==void 0&&arguments[1],a=r?r(e):e,o=Uc(n),s=Uc(t.$name);return(i&&o===s?void 0:a?.[o])??a};return e!=null&&e.hasOwnProperty(`_usept`)?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(e,!0)},_usePT:function(e,t,n,r){var i=function(e){return t(e,n,r)};if(e!=null&&e.hasOwnProperty(`_usept`)){var a=e._usept||this.$primevueConfig?.ptOptions||{},o=a.mergeSections,s=o===void 0||o,c=a.mergeProps,l=c!==void 0&&c,u=i(e.originalValue),d=i(e.value);return u===void 0&&d===void 0?void 0:Hc(d)?d:Hc(u)?u:s||!s&&d?l?this._mergeProps(l,u,d):S_(S_({},u),d):d}return i(e)},_useGlobalPT:function(e,t,n){return this._usePT(this.globalPT,e,t,n)},_useDefaultPT:function(e,t,n){return this._usePT(this.defaultPT,e,t,n)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,S_(S_({},this.$params),t))},ptmi:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=K(this.$_attrsWithoutPT,this.ptm(e,t));return n!=null&&n.hasOwnProperty(`id`)&&(n.id??=this.$id),n},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,t,S_({instance:this},n),!1)},cx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,e,S_(S_({},this.$params),t))},sx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(t){var r=this._getOptionValue(this.$style.inlineStyles,e,S_(S_({},this.$params),n));return[this._getOptionValue(d_.inlineStyles,e,S_(S_({},this.$params),n)),r]}}},computed:{globalPT:function(){var e=this;return this._getPT(this.$primevueConfig?.pt,void 0,function(t){return Vc(t,{instance:e})})},defaultPT:function(){var e=this;return this._getPT(this.$primevueConfig?.pt,void 0,function(t){return e._getOptionValue(t,e.$name,S_({},e.$params))||Vc(t,S_({},e.$params))})},isUnstyled:function(){return this.unstyled===void 0?this.$primevueConfig?.unstyled:this.unstyled},$id:function(){return this.$attrs.id||this.uid},$inProps:function(){var e=Object.keys(this.$.vnode?.props||{});return Object.fromEntries(Object.entries(this.$props).filter(function(t){var n=h_(t,1)[0];return e?.includes(n)}))},$theme:function(){return this.$primevueConfig?.theme},$style:function(){return S_(S_({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)==null||(e=e.csp)==null?void 0:e.nonce}},$primevueConfig:function(){return this.$primevue?.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e?.$props,state:e?.$data,attrs:e?.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){return h_(e,1)[0]?.startsWith(`pt:`)}).reduce(function(e,t){var n=h_(t,2),r=n[0],i=n[1];return v_(p_(r.split(`:`))).slice(1)?.reduce(function(e,t,n,r){return!e[t]&&(e[t]=n===r.length-1?i:{}),e[t]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var t=h_(e,1)[0];return!(t!=null&&t.startsWith(`pt:`))}).reduce(function(e,t){var n=h_(t,2),r=n[0];return e[r]=n[1],e},{})}}},D_=ad.extend({name:`menu`,style:`
184
+ .p-menu {
185
+ background: dt('menu.background');
186
+ color: dt('menu.color');
187
+ border: 1px solid dt('menu.border.color');
188
+ border-radius: dt('menu.border.radius');
189
+ min-width: 12.5rem;
190
+ }
191
+
192
+ .p-menu-list {
193
+ margin: 0;
194
+ padding: dt('menu.list.padding');
195
+ outline: 0 none;
196
+ list-style: none;
197
+ display: flex;
198
+ flex-direction: column;
199
+ gap: dt('menu.list.gap');
200
+ }
201
+
202
+ .p-menu-item-content {
203
+ transition:
204
+ background dt('menu.transition.duration'),
205
+ color dt('menu.transition.duration');
206
+ border-radius: dt('menu.item.border.radius');
207
+ color: dt('menu.item.color');
208
+ overflow: hidden;
209
+ }
210
+
211
+ .p-menu-item-link {
212
+ cursor: pointer;
213
+ display: flex;
214
+ align-items: center;
215
+ text-decoration: none;
216
+ overflow: hidden;
217
+ position: relative;
218
+ color: inherit;
219
+ padding: dt('menu.item.padding');
220
+ gap: dt('menu.item.gap');
221
+ user-select: none;
222
+ outline: 0 none;
223
+ }
224
+
225
+ .p-menu-item-label {
226
+ line-height: 1;
227
+ }
228
+
229
+ .p-menu-item-icon {
230
+ color: dt('menu.item.icon.color');
231
+ }
232
+
233
+ .p-menu-item.p-focus .p-menu-item-content {
234
+ color: dt('menu.item.focus.color');
235
+ background: dt('menu.item.focus.background');
236
+ }
237
+
238
+ .p-menu-item.p-focus .p-menu-item-icon {
239
+ color: dt('menu.item.icon.focus.color');
240
+ }
241
+
242
+ .p-menu-item:not(.p-disabled) .p-menu-item-content:hover {
243
+ color: dt('menu.item.focus.color');
244
+ background: dt('menu.item.focus.background');
245
+ }
246
+
247
+ .p-menu-item:not(.p-disabled) .p-menu-item-content:hover .p-menu-item-icon {
248
+ color: dt('menu.item.icon.focus.color');
249
+ }
250
+
251
+ .p-menu-overlay {
252
+ box-shadow: dt('menu.shadow');
253
+ }
254
+
255
+ .p-menu-submenu-label {
256
+ background: dt('menu.submenu.label.background');
257
+ padding: dt('menu.submenu.label.padding');
258
+ color: dt('menu.submenu.label.color');
259
+ font-weight: dt('menu.submenu.label.font.weight');
260
+ }
261
+
262
+ .p-menu-separator {
263
+ border-block-start: 1px solid dt('menu.separator.border.color');
264
+ }
265
+ `,classes:{root:function(e){return[`p-menu p-component`,{"p-menu-overlay":e.props.popup}]},start:`p-menu-start`,list:`p-menu-list`,submenuLabel:`p-menu-submenu-label`,separator:`p-menu-separator`,end:`p-menu-end`,item:function(e){var t=e.instance;return[`p-menu-item`,{"p-focus":t.id===t.focusedOptionId,"p-disabled":t.disabled()}]},itemContent:`p-menu-item-content`,itemLink:`p-menu-item-link`,itemIcon:`p-menu-item-icon`,itemLabel:`p-menu-item-label`}});function O_(e){"@babel/helpers - typeof";return O_=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},O_(e)}function k_(e,t){return P_(e)||N_(e,t)||j_(e,t)||A_()}function A_(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
266
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j_(e,t){if(e){if(typeof e==`string`)return M_(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M_(e,t):void 0}}function M_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function N_(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function P_(e){if(Array.isArray(e))return e}function F_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function I_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?F_(Object(n),!0).forEach(function(t){L_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function L_(e,t,n){return(t=R_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R_(e){var t=z_(e,`string`);return O_(t)==`symbol`?t:t+``}function z_(e,t){if(O_(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(O_(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var B_={_getMeta:function(){return[Lc(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],Vc(Lc(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:arguments.length<=1?void 0:arguments[1])]},_getConfig:function(e,t){var n,r;return((e==null||(n=e.instance)==null?void 0:n.$primevue)||(t==null||(r=t.ctx)==null||(r=r.appContext)==null||(r=r.config)==null||(r=r.globalProperties)==null?void 0:r.$primevue))?.config},_getOptionValue:Wc,_getPTValue:function(){var e,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:``,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=function(){var e=B_._getOptionValue.apply(B_,arguments);return Hc(e)||Gc(e)?{class:e}:e},s=((e=t.binding)==null||(e=e.value)==null?void 0:e.ptOptions)||t.$primevueConfig?.ptOptions||{},c=s.mergeSections,l=c===void 0||c,u=s.mergeProps,d=u!==void 0&&u,f=a?B_._useDefaultPT(t,t.defaultPT(),o,r,i):void 0,p=B_._usePT(t,B_._getPT(n,t.$name),o,r,I_(I_({},i),{},{global:f||{}})),m=B_._getPTDatasets(t,r);return l||!l&&p?d?B_._mergeProps(t,d,f,p,m):I_(I_(I_({},f),p),m):I_(I_({},p),m)},_getPTDatasets:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,n=`data-pc-`;return I_(I_({},t===`root`&&L_({},`${n}name`,Uc(e.$name))),{},L_({},`${n}section`,Uc(t)))},_getPT:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,n=arguments.length>2?arguments[2]:void 0,r=function(e){var r=n?n(e):e,i=Uc(t);return r?.[i]??r};return e&&Object.hasOwn(e,`_usept`)?{_usept:e._usept,originalValue:r(e.originalValue),value:r(e.value)}:r(e)},_usePT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=function(e){return n(e,r,i)};if(t&&Object.hasOwn(t,`_usept`)){var o=t._usept||e.$primevueConfig?.ptOptions||{},s=o.mergeSections,c=s===void 0||s,l=o.mergeProps,u=l!==void 0&&l,d=a(t.originalValue),f=a(t.value);return d===void 0&&f===void 0?void 0:Hc(f)?f:Hc(d)?d:c||!c&&f?u?B_._mergeProps(e,u,d,f):I_(I_({},d),f):f}return a(t)},_useDefaultPT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return B_._usePT(e,t,n,r,i)},_loadStyles:function(){var e,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=B_._getConfig(n,r),a={nonce:i==null||(e=i.csp)==null?void 0:e.nonce};B_._loadCoreStyles(t,a),B_._loadThemeStyles(t,a),B_._loadScopedThemeStyles(t,a),B_._removeThemeListeners(t),t.$loadStyles=function(){return B_._loadThemeStyles(t,a)},B_._themeChangeListener(t.$loadStyles)},_loadCoreStyles:function(){var e,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(!l_.isStyleNameLoaded(t.$style?.name)&&(e=t.$style)!=null&&e.name){var r;ad.loadCSS(n),(r=t.$style)==null||r.loadCSS(n),l_.setLoadedStyleName(t.$style.name)}},_loadThemeStyles:function(){var e,t,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(!(n!=null&&n.isUnstyled()||(n==null||(e=n.theme)==null?void 0:e.call(n))===`none`)){if(!Eu.isStyleNameLoaded(`common`)){var i,a,o=((i=n.$style)==null||(a=i.getCommonTheme)==null?void 0:a.call(i))||{},s=o.primitive,c=o.semantic,l=o.global,u=o.style;ad.load(s?.css,I_({name:`primitive-variables`},r)),ad.load(c?.css,I_({name:`semantic-variables`},r)),ad.load(l?.css,I_({name:`global-variables`},r)),ad.loadStyle(I_({name:`global-style`},r),u),Eu.setLoadedStyleName(`common`)}if(!Eu.isStyleNameLoaded(n.$style?.name)&&(t=n.$style)!=null&&t.name){var d,f,p,m,h=((d=n.$style)==null||(f=d.getDirectiveTheme)==null?void 0:f.call(d))||{},g=h.css,_=h.style;(p=n.$style)==null||p.load(g,I_({name:`${n.$style.name}-variables`},r)),(m=n.$style)==null||m.loadStyle(I_({name:`${n.$style.name}-style`},r),_),Eu.setLoadedStyleName(n.$style.name)}if(!Eu.isStyleNameLoaded(`layer-order`)){var v,y,b=(v=n.$style)==null||(y=v.getLayerOrderThemeCSS)==null?void 0:y.call(v);ad.load(b,I_({name:`layer-order`,first:!0},r)),Eu.setLoadedStyleName(`layer-order`)}}},_loadScopedThemeStyles:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=e.preset();if(n&&e.$attrSelector){var r,i,a=(((r=e.$style)==null||(i=r.getPresetTheme)==null?void 0:i.call(r,n,`[${e.$attrSelector}]`))||{}).css;e.scopedStyleEl=(e.$style?.load(a,I_({name:`${e.$attrSelector}-${e.$style.name}`},t))).el}},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};l_.clearLoadedStyleNames(),ou.on(`theme:change`,e)},_removeThemeListeners:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ou.off(`theme:change`,e.$loadStyles),e.$loadStyles=void 0},_hook:function(e,t,n,r,i,a){var o,s,c=`on${Qc(t)}`,l=B_._getConfig(r,i),u=n?.$instance,d=B_._usePT(u,B_._getPT(r==null||(o=r.value)==null?void 0:o.pt,e),B_._getOptionValue,`hooks.${c}`),f=B_._useDefaultPT(u,l==null||(s=l.pt)==null||(s=s.directives)==null?void 0:s[e],B_._getOptionValue,`hooks.${c}`),p={el:n,binding:r,vnode:i,prevVnode:a};d?.(u,p),f?.(u,p)},_mergeProps:function(){var e=arguments.length>1?arguments[1]:void 0,t=[...arguments].slice(2);return Nc(e)?e.apply(void 0,t):K.apply(void 0,t)},_extend:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=function(n,r,i,a,o){var s,c,l;r._$instances=r._$instances||{};var u=B_._getConfig(i,a),d=r._$instances[e]||{},f=Ac(d)?I_(I_({},t),t?.methods):{};r._$instances[e]=I_(I_({},d),{},{$name:e,$host:r,$binding:i,$modifiers:i?.modifiers,$value:i?.value,$el:d.$el||r||void 0,$style:I_({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},t?.style),$primevueConfig:u,$attrSelector:(s=r.$pd)==null||(s=s[e])==null?void 0:s.attrSelector,defaultPT:function(){return B_._getPT(u?.pt,void 0,function(t){var n;return t==null||(n=t.directives)==null?void 0:n[e]})},isUnstyled:function(){var t,n;return((t=r._$instances[e])==null||(t=t.$binding)==null||(t=t.value)==null?void 0:t.unstyled)===void 0?u?.unstyled:(n=r._$instances[e])==null||(n=n.$binding)==null||(n=n.value)==null?void 0:n.unstyled},theme:function(){var t;return(t=r._$instances[e])==null||(t=t.$primevueConfig)==null?void 0:t.theme},preset:function(){var t;return(t=r._$instances[e])==null||(t=t.$binding)==null||(t=t.value)==null?void 0:t.dt},ptm:function(){var t,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return B_._getPTValue(r._$instances[e],(t=r._$instances[e])==null||(t=t.$binding)==null||(t=t.value)==null?void 0:t.pt,n,I_({},i))},ptmo:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return B_._getPTValue(r._$instances[e],t,n,i,!1)},cx:function(){var t,n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(t=r._$instances[e])!=null&&t.isUnstyled()?void 0:B_._getOptionValue((n=r._$instances[e])==null||(n=n.$style)==null?void 0:n.classes,i,I_({},a))},sx:function(){var t,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return i?B_._getOptionValue((t=r._$instances[e])==null||(t=t.$style)==null?void 0:t.inlineStyles,n,I_({},a)):void 0}},f),r.$instance=r._$instances[e],(c=(l=r.$instance)[n])==null||c.call(l,r,i,a,o),r[`$${e}`]=r.$instance,B_._hook(e,n,r,i,a,o),r.$pd||={},r.$pd[e]=I_(I_({},r.$pd?.[e]),{},{name:e,instance:r._$instances[e]})},r=function(t){var n,r,i,a=t._$instances[e],o=a?.watch,s=function(e){var t,n=e.newValue,r=e.oldValue;return o==null||(t=o.config)==null?void 0:t.call(a,n,r)},c=function(e){var t,n=e.newValue,r=e.oldValue;return o==null||(t=o[`config.ripple`])==null?void 0:t.call(a,n,r)};a.$watchersCallback={config:s,"config.ripple":c},o==null||(n=o.config)==null||n.call(a,a?.$primevueConfig),od.on(`config:change`,s),o==null||(r=o[`config.ripple`])==null||r.call(a,a==null||(i=a.$primevueConfig)==null?void 0:i.ripple),od.on(`config:ripple:change`,c)},i=function(t){var n=t._$instances[e].$watchersCallback;n&&(od.off(`config:change`,n.config),od.off(`config:ripple:change`,n[`config.ripple`]),t._$instances[e].$watchersCallback=void 0)};return{created:function(t,r,i,a){t.$pd||={},t.$pd[e]={name:e,attrSelector:Kl(`pd`)},n(`created`,t,r,i,a)},beforeMount:function(t,i,a,o){B_._loadStyles(t.$pd[e]?.instance,i,a),n(`beforeMount`,t,i,a,o),r(t)},mounted:function(t,r,i,a){B_._loadStyles(t.$pd[e]?.instance,r,i),n(`mounted`,t,r,i,a)},beforeUpdate:function(e,t,r,i){n(`beforeUpdate`,e,t,r,i)},updated:function(t,r,i,a){B_._loadStyles(t.$pd[e]?.instance,r,i),n(`updated`,t,r,i,a)},beforeUnmount:function(t,r,a,o){i(t),B_._removeThemeListeners(t.$pd[e]?.instance),n(`beforeUnmount`,t,r,a,o)},unmounted:function(t,r,i,a){var o;(o=t.$pd[e])==null||(o=o.instance)==null||(o=o.scopedStyleEl)==null||(o=o.value)==null||o.remove(),n(`unmounted`,t,r,i,a)}}},extend:function(){var e=k_(B_._getMeta.apply(B_,arguments),2),t=e[0],n=e[1];return I_({extend:function(){var e=k_(B_._getMeta.apply(B_,arguments),2),t=e[0],r=e[1];return B_.extend(t,I_(I_(I_({},n),n?.methods),r))}},B_._extend(t,n))}},V_=ad.extend({name:`ripple-directive`,style:`
267
+ .p-ink {
268
+ display: block;
269
+ position: absolute;
270
+ background: dt('ripple.background');
271
+ border-radius: 100%;
272
+ transform: scale(0);
273
+ pointer-events: none;
274
+ }
275
+
276
+ .p-ink-active {
277
+ animation: ripple 0.4s linear;
278
+ }
279
+
280
+ @keyframes ripple {
281
+ 100% {
282
+ opacity: 0;
283
+ transform: scale(2.5);
284
+ }
285
+ }
286
+ `,classes:{root:`p-ink`}}),H_=B_.extend({style:V_});function U_(e){"@babel/helpers - typeof";return U_=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},U_(e)}function W_(e){return J_(e)||q_(e)||K_(e)||G_()}function G_(){throw TypeError(`Invalid attempt to spread non-iterable instance.
287
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K_(e,t){if(e){if(typeof e==`string`)return Y_(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Y_(e,t):void 0}}function q_(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function J_(e){if(Array.isArray(e))return Y_(e)}function Y_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function X_(e,t,n){return(t=Z_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z_(e){var t=Q_(e,`string`);return U_(t)==`symbol`?t:t+``}function Q_(e,t){if(U_(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(U_(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var $_=H_.extend(`ripple`,{watch:{"config.ripple":function(e){e?(this.createRipple(this.$host),this.bindEvents(this.$host),this.$host.setAttribute(`data-pd-ripple`,!0),this.$host.style.overflow=`hidden`,this.$host.style.position=`relative`):(this.remove(this.$host),this.$host.removeAttribute(`data-pd-ripple`))}},unmounted:function(e){this.remove(e)},timeout:void 0,methods:{bindEvents:function(e){e.addEventListener(`mousedown`,this.onMouseDown.bind(this))},unbindEvents:function(e){e.removeEventListener(`mousedown`,this.onMouseDown.bind(this))},createRipple:function(e){var t=this.getInk(e);t||(t=wl(`span`,X_(X_({role:`presentation`,"aria-hidden":!0,"data-p-ink":!0,"data-p-ink-active":!1,class:!this.isUnstyled()&&this.cx(`root`),onAnimationEnd:this.onAnimationEnd.bind(this)},this.$attrSelector,``),`p-bind`,this.ptm(`root`))),e.appendChild(t),this.$el=t)},remove:function(e){var t=this.getInk(e);t&&(this.$host.style.overflow=``,this.$host.style.position=``,this.unbindEvents(e),t.removeEventListener(`animationend`,this.onAnimationEnd),t.remove())},onMouseDown:function(e){var t=this,n=e.currentTarget,r=this.getInk(n);if(r&&getComputedStyle(r,null).display!==`none`){if(!this.isUnstyled()&&ol(r,`p-ink-active`),r.setAttribute(`data-p-ink-active`,`false`),!jl(r)&&!Rl(r)){var i=Math.max(_l(n),Pl(n));r.style.height=i+`px`,r.style.width=i+`px`}var a=Nl(n),o=e.pageX-a.left+document.body.scrollTop-Rl(r)/2,s=e.pageY-a.top+document.body.scrollLeft-jl(r)/2;r.style.top=s+`px`,r.style.left=o+`px`,!this.isUnstyled()&&rl(r,`p-ink-active`),r.setAttribute(`data-p-ink-active`,`true`),this.timeout=setTimeout(function(){r&&(!t.isUnstyled()&&ol(r,`p-ink-active`),r.setAttribute(`data-p-ink-active`,`false`))},401)}},onAnimationEnd:function(e){this.timeout&&clearTimeout(this.timeout),!this.isUnstyled()&&ol(e.currentTarget,`p-ink-active`),e.currentTarget.setAttribute(`data-p-ink-active`,`false`)},getInk:function(e){return e&&e.children?W_(e.children).find(function(e){return Ol(e,`data-pc-name`)===`ripple`}):void 0}}}),ev={name:`BaseMenu`,extends:E_,props:{popup:{type:Boolean,default:!1},model:{type:Array,default:null},appendTo:{type:[String,Object],default:`body`},autoZIndex:{type:Boolean,default:!0},baseZIndex:{type:Number,default:0},tabindex:{type:Number,default:0},ariaLabel:{type:String,default:null},ariaLabelledby:{type:String,default:null}},style:D_,provide:function(){return{$pcMenu:this,$parentInstance:this}}},tv={name:`Menuitem`,hostName:`Menu`,extends:E_,inheritAttrs:!1,emits:[`item-click`,`item-mousemove`],props:{item:null,templates:null,id:null,focusedOptionId:null,index:null},methods:{getItemProp:function(e,t){return e&&e.item?Vc(e.item[t]):void 0},getPTOptions:function(e){return this.ptm(e,{context:{item:this.item,index:this.index,focused:this.isItemFocused(),disabled:this.disabled()}})},isItemFocused:function(){return this.focusedOptionId===this.id},onItemClick:function(e){var t=this.getItemProp(this.item,`command`);t&&t({originalEvent:e,item:this.item.item}),this.$emit(`item-click`,{originalEvent:e,item:this.item,id:this.id})},onItemMouseMove:function(e){this.$emit(`item-mousemove`,{originalEvent:e,item:this.item,id:this.id})},visible:function(){return typeof this.item.visible==`function`?this.item.visible():this.item.visible!==!1},disabled:function(){return typeof this.item.disabled==`function`?this.item.disabled():this.item.disabled},label:function(){return typeof this.item.label==`function`?this.item.label():this.item.label},getMenuItemProps:function(e){return{action:K({class:this.cx(`itemLink`),tabindex:`-1`},this.getPTOptions(`itemLink`)),icon:K({class:[this.cx(`itemIcon`),e.icon]},this.getPTOptions(`itemIcon`)),label:K({class:this.cx(`itemLabel`)},this.getPTOptions(`itemLabel`))}}},computed:{dataP:function(){return tl({focus:this.isItemFocused(),disabled:this.disabled()})}},directives:{ripple:$_}},nv=[`id`,`aria-label`,`aria-disabled`,`data-p-focused`,`data-p-disabled`,`data-p`],rv=[`data-p`],iv=[`href`,`target`],av=[`data-p`],ov=[`data-p`];function sv(e,t,n,r,i,a){var o=ui(`ripple`);return a.visible()?(z(),B(`li`,K({key:0,id:n.id,class:[e.cx(`item`),n.item.class],role:`menuitem`,style:n.item.style,"aria-label":a.label(),"aria-disabled":a.disabled(),"data-p-focused":a.isItemFocused(),"data-p-disabled":a.disabled()||!1,"data-p":a.dataP},a.getPTOptions(`item`)),[H(`div`,K({class:e.cx(`itemContent`),onClick:t[0]||=function(e){return a.onItemClick(e)},onMousemove:t[1]||=function(e){return a.onItemMouseMove(e)},"data-p":a.dataP},a.getPTOptions(`itemContent`)),[n.templates.item?n.templates.item?(z(),V(li(n.templates.item),{key:1,item:n.item,label:a.label(),props:a.getMenuItemProps(n.item)},null,8,[`item`,`label`,`props`])):G(``,!0):Yn((z(),B(`a`,K({key:0,href:n.item.url,class:e.cx(`itemLink`),target:n.item.target,tabindex:`-1`},a.getPTOptions(`itemLink`)),[n.templates.itemicon?(z(),V(li(n.templates.itemicon),{key:0,item:n.item,class:k(e.cx(`itemIcon`))},null,8,[`item`,`class`])):n.item.icon?(z(),B(`span`,K({key:1,class:[e.cx(`itemIcon`),n.item.icon],"data-p":a.dataP},a.getPTOptions(`itemIcon`)),null,16,av)):G(``,!0),H(`span`,K({class:e.cx(`itemLabel`),"data-p":a.dataP},a.getPTOptions(`itemLabel`)),A(a.label()),17,ov)],16,iv)),[[o]])],16,rv)],16,nv)):G(``,!0)}tv.render=sv;function cv(e){return fv(e)||dv(e)||uv(e)||lv()}function lv(){throw TypeError(`Invalid attempt to spread non-iterable instance.
288
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uv(e,t){if(e){if(typeof e==`string`)return pv(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pv(e,t):void 0}}function dv(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function fv(e){if(Array.isArray(e))return pv(e)}function pv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var mv={name:`Menu`,extends:ev,inheritAttrs:!1,emits:[`show`,`hide`,`focus`,`blur`],data:function(){return{overlayVisible:!1,focused:!1,focusedOptionIndex:-1,selectedOptionIndex:-1}},target:null,outsideClickListener:null,scrollHandler:null,resizeListener:null,container:null,list:null,mounted:function(){this.popup||(this.bindResizeListener(),this.bindOutsideClickListener())},beforeUnmount:function(){this.unbindResizeListener(),this.unbindOutsideClickListener(),this.scrollHandler&&=(this.scrollHandler.destroy(),null),this.target=null,this.container&&this.autoZIndex&&Jl.clear(this.container),this.container=null},methods:{itemClick:function(e){var t=e.item;this.disabled(t)||(t.command&&t.command(e),this.overlayVisible&&this.hide(),!this.popup&&this.focusedOptionIndex!==e.id&&(this.focusedOptionIndex=e.id))},itemMouseMove:function(e){this.focused&&(this.focusedOptionIndex=e.id)},onListFocus:function(e){this.focused=!0,!this.popup&&this.changeFocusedOptionIndex(0),this.$emit(`focus`,e)},onListBlur:function(e){this.focused=!1,this.focusedOptionIndex=-1,this.$emit(`blur`,e)},onListKeyDown:function(e){switch(e.code){case`ArrowDown`:this.onArrowDownKey(e);break;case`ArrowUp`:this.onArrowUpKey(e);break;case`Home`:this.onHomeKey(e);break;case`End`:this.onEndKey(e);break;case`Enter`:case`NumpadEnter`:this.onEnterKey(e);break;case`Space`:this.onSpaceKey(e);break;case`Escape`:this.popup&&(Dl(this.target),this.hide());case`Tab`:this.overlayVisible&&this.hide()}},onArrowDownKey:function(e){var t=this.findNextOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(t),e.preventDefault()},onArrowUpKey:function(e){if(e.altKey&&this.popup)Dl(this.target),this.hide(),e.preventDefault();else{var t=this.findPrevOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(t),e.preventDefault()}},onHomeKey:function(e){this.changeFocusedOptionIndex(0),e.preventDefault()},onEndKey:function(e){this.changeFocusedOptionIndex(Tl(this.container,`li[data-pc-section="item"][data-p-disabled="false"]`).length-1),e.preventDefault()},onEnterKey:function(e){var t=El(this.list,`li[id="${`${this.focusedOptionIndex}`}"]`),n=t&&El(t,`a[data-pc-section="itemlink"]`);this.popup&&Dl(this.target),n?n.click():t&&t.click(),e.preventDefault()},onSpaceKey:function(e){this.onEnterKey(e)},findNextOptionIndex:function(e){var t=cv(Tl(this.container,`li[data-pc-section="item"][data-p-disabled="false"]`)).findIndex(function(t){return t.id===e});return t>-1?t+1:0},findPrevOptionIndex:function(e){var t=cv(Tl(this.container,`li[data-pc-section="item"][data-p-disabled="false"]`)).findIndex(function(t){return t.id===e});return t>-1?t-1:0},changeFocusedOptionIndex:function(e){var t=Tl(this.container,`li[data-pc-section="item"][data-p-disabled="false"]`),n=e>=t.length?t.length-1:e<0?0:e;n>-1&&(this.focusedOptionIndex=t[n].getAttribute(`id`))},toggle:function(e,t){this.overlayVisible?this.hide():this.show(e,t)},show:function(e,t){this.overlayVisible=!0,this.target=t??e.currentTarget},hide:function(){this.overlayVisible=!1,this.target=null},onEnter:function(e){gl(e,{position:`absolute`,top:`0`}),this.alignOverlay(),this.bindOutsideClickListener(),this.bindResizeListener(),this.bindScrollListener(),this.autoZIndex&&Jl.set(`menu`,e,this.baseZIndex||this.$primevue.config.zIndex.menu),this.popup&&Dl(this.list),this.$emit(`show`)},onLeave:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.unbindScrollListener(),this.$emit(`hide`)},onAfterLeave:function(e){this.autoZIndex&&Jl.clear(e)},alignOverlay:function(){hl(this.container,this.target),_l(this.target)>_l(this.container)&&(this.container.style.minWidth=_l(this.target)+`px`)},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){var n=e.container&&!e.container.contains(t.target),r=!e.target||e.target!==t.target&&!e.target.contains(t.target);e.overlayVisible&&n&&r?e.hide():!e.popup&&n&&r&&(e.focusedOptionIndex=-1)},document.addEventListener(`click`,this.outsideClickListener,!0))},unbindOutsideClickListener:function(){this.outsideClickListener&&=(document.removeEventListener(`click`,this.outsideClickListener,!0),null)},bindScrollListener:function(){var e=this;this.scrollHandler||=new a_(this.target,function(){e.overlayVisible&&e.hide()}),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!Ul()&&e.hide()},window.addEventListener(`resize`,this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&=(window.removeEventListener(`resize`,this.resizeListener),null)},visible:function(e){return typeof e.visible==`function`?e.visible():e.visible!==!1},disabled:function(e){return typeof e.disabled==`function`?e.disabled():e.disabled},label:function(e){return typeof e.label==`function`?e.label():e.label},onOverlayClick:function(e){o_.emit(`overlay-click`,{originalEvent:e,target:this.target})},containerRef:function(e){this.container=e},listRef:function(e){this.list=e}},computed:{focusedOptionId:function(){return this.focusedOptionIndex===-1?null:this.focusedOptionIndex},dataP:function(){return tl({popup:this.popup})}},components:{PVMenuitem:tv,Portal:s_}},hv=[`id`,`data-p`],gv=[`id`,`tabindex`,`aria-activedescendant`,`aria-label`,`aria-labelledby`],_v=[`id`];function vv(e,t,n,r,i,a){var o=F(`PVMenuitem`),s=F(`Portal`);return z(),V(s,{appendTo:e.appendTo,disabled:!e.popup},{default:N(function(){return[U(Fo,K({name:`p-anchored-overlay`,onEnter:a.onEnter,onLeave:a.onLeave,onAfterLeave:a.onAfterLeave},e.ptm(`transition`)),{default:N(function(){return[!e.popup||i.overlayVisible?(z(),B(`div`,K({key:0,ref:a.containerRef,id:e.$id,class:e.cx(`root`),onClick:t[3]||=function(){return a.onOverlayClick&&a.onOverlayClick.apply(a,arguments)},"data-p":a.dataP},e.ptmi(`root`)),[e.$slots.start?(z(),B(`div`,K({key:0,class:e.cx(`start`)},e.ptm(`start`)),[L(e.$slots,`start`)],16)):G(``,!0),H(`ul`,K({ref:a.listRef,id:e.$id+`_list`,class:e.cx(`list`),role:`menu`,tabindex:e.tabindex,"aria-activedescendant":i.focused?a.focusedOptionId:void 0,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,onFocus:t[0]||=function(){return a.onListFocus&&a.onListFocus.apply(a,arguments)},onBlur:t[1]||=function(){return a.onListBlur&&a.onListBlur.apply(a,arguments)},onKeydown:t[2]||=function(){return a.onListKeyDown&&a.onListKeyDown.apply(a,arguments)}},e.ptm(`list`)),[(z(!0),B(R,null,I(e.model,function(t,n){return z(),B(R,{key:a.label(t)+n.toString()},[t.items&&a.visible(t)&&!t.separator?(z(),B(R,{key:0},[t.items?(z(),B(`li`,K({key:0,id:e.$id+`_`+n,class:[e.cx(`submenuLabel`),t.class],role:`none`},{ref_for:!0},e.ptm(`submenuLabel`)),[L(e.$slots,e.$slots.submenulabel?`submenulabel`:`submenuheader`,{item:t},function(){return[W(A(a.label(t)),1)]})],16,_v)):G(``,!0),(z(!0),B(R,null,I(t.items,function(r,i){return z(),B(R,{key:r.label+n+`_`+i},[a.visible(r)&&!r.separator?(z(),V(o,{key:0,id:e.$id+`_`+n+`_`+i,item:r,templates:e.$slots,focusedOptionId:a.focusedOptionId,unstyled:e.unstyled,onItemClick:a.itemClick,onItemMousemove:a.itemMouseMove,pt:e.pt},null,8,[`id`,`item`,`templates`,`focusedOptionId`,`unstyled`,`onItemClick`,`onItemMousemove`,`pt`])):a.visible(r)&&r.separator?(z(),B(`li`,K({key:`separator`+n+i,class:[e.cx(`separator`),t.class],style:r.style,role:`separator`},{ref_for:!0},e.ptm(`separator`)),null,16)):G(``,!0)],64)}),128))],64)):a.visible(t)&&t.separator?(z(),B(`li`,K({key:`separator`+n.toString(),class:[e.cx(`separator`),t.class],style:t.style,role:`separator`},{ref_for:!0},e.ptm(`separator`)),null,16)):(z(),V(o,{key:a.label(t)+n.toString(),id:e.$id+`_`+n,item:t,index:n,templates:e.$slots,focusedOptionId:a.focusedOptionId,unstyled:e.unstyled,onItemClick:a.itemClick,onItemMousemove:a.itemMouseMove,pt:e.pt},null,8,[`id`,`item`,`index`,`templates`,`focusedOptionId`,`unstyled`,`onItemClick`,`onItemMousemove`,`pt`]))],64)}),128))],16,gv),e.$slots.end?(z(),B(`div`,K({key:1,class:e.cx(`end`)},e.ptm(`end`)),[L(e.$slots,`end`)],16)):G(``,!0)],16,hv)):G(``,!0)]}),_:3},16,[`onEnter`,`onLeave`,`onAfterLeave`])]}),_:3},8,[`appendTo`,`disabled`])}mv.render=vv;var yv=ad.extend({name:`baseicon`,css:`
289
+ .p-icon {
290
+ display: inline-block;
291
+ vertical-align: baseline;
292
+ flex-shrink: 0;
293
+ }
294
+
295
+ .p-icon-spin {
296
+ -webkit-animation: p-icon-spin 2s infinite linear;
297
+ animation: p-icon-spin 2s infinite linear;
298
+ }
299
+
300
+ @-webkit-keyframes p-icon-spin {
301
+ 0% {
302
+ -webkit-transform: rotate(0deg);
303
+ transform: rotate(0deg);
304
+ }
305
+ 100% {
306
+ -webkit-transform: rotate(359deg);
307
+ transform: rotate(359deg);
308
+ }
309
+ }
310
+
311
+ @keyframes p-icon-spin {
312
+ 0% {
313
+ -webkit-transform: rotate(0deg);
314
+ transform: rotate(0deg);
315
+ }
316
+ 100% {
317
+ -webkit-transform: rotate(359deg);
318
+ transform: rotate(359deg);
319
+ }
320
+ }
321
+ `});function bv(e){"@babel/helpers - typeof";return bv=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},bv(e)}function xv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?xv(Object(n),!0).forEach(function(t){Cv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Cv(e,t,n){return(t=wv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wv(e){var t=Tv(e,`string`);return bv(t)==`symbol`?t:t+``}function Tv(e,t){if(bv(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bv(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Ev={name:`BaseIcon`,extends:E_,props:{label:{type:String,default:void 0},spin:{type:Boolean,default:!1}},style:yv,provide:function(){return{$pcIcon:this,$parentInstance:this}},methods:{pti:function(){var e=Ac(this.label);return Sv(Sv({},!this.isUnstyled&&{class:[`p-icon`,{"p-icon-spin":this.spin}]}),{},{role:e?void 0:`img`,"aria-label":e?void 0:this.label,"aria-hidden":e})}}},Dv={name:`TimesIcon`,extends:Ev};function Ov(e){return Mv(e)||jv(e)||Av(e)||kv()}function kv(){throw TypeError(`Invalid attempt to spread non-iterable instance.
322
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Av(e,t){if(e){if(typeof e==`string`)return Nv(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nv(e,t):void 0}}function jv(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Mv(e){if(Array.isArray(e))return Nv(e)}function Nv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Pv(e,t,n,r,i,a){return z(),B(`svg`,K({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),Ov(t[0]||=[H(`path`,{d:`M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z`,fill:`currentColor`},null,-1)]),16)}Dv.render=Pv;var Fv={name:`WindowMaximizeIcon`,extends:Ev};function Iv(e){return Bv(e)||zv(e)||Rv(e)||Lv()}function Lv(){throw TypeError(`Invalid attempt to spread non-iterable instance.
323
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rv(e,t){if(e){if(typeof e==`string`)return Vv(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vv(e,t):void 0}}function zv(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Bv(e){if(Array.isArray(e))return Vv(e)}function Vv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Hv(e,t,n,r,i,a){return z(),B(`svg`,K({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),Iv(t[0]||=[H(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z`,fill:`currentColor`},null,-1)]),16)}Fv.render=Hv;var Uv={name:`WindowMinimizeIcon`,extends:Ev};function Wv(e){return Jv(e)||qv(e)||Kv(e)||Gv()}function Gv(){throw TypeError(`Invalid attempt to spread non-iterable instance.
324
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kv(e,t){if(e){if(typeof e==`string`)return Yv(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yv(e,t):void 0}}function qv(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Jv(e){if(Array.isArray(e))return Yv(e)}function Yv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Xv(e,t,n,r,i,a){return z(),B(`svg`,K({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),Wv(t[0]||=[H(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z`,fill:`currentColor`},null,-1)]),16)}Uv.render=Xv;var Zv={name:`SpinnerIcon`,extends:Ev};function Qv(e){return ny(e)||ty(e)||ey(e)||$v()}function $v(){throw TypeError(`Invalid attempt to spread non-iterable instance.
325
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ey(e,t){if(e){if(typeof e==`string`)return ry(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ry(e,t):void 0}}function ty(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function ny(e){if(Array.isArray(e))return ry(e)}function ry(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function iy(e,t,n,r,i,a){return z(),B(`svg`,K({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),Qv(t[0]||=[H(`path`,{d:`M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z`,fill:`currentColor`},null,-1)]),16)}Zv.render=iy;var ay=ad.extend({name:`badge`,style:`
326
+ .p-badge {
327
+ display: inline-flex;
328
+ border-radius: dt('badge.border.radius');
329
+ align-items: center;
330
+ justify-content: center;
331
+ padding: dt('badge.padding');
332
+ background: dt('badge.primary.background');
333
+ color: dt('badge.primary.color');
334
+ font-size: dt('badge.font.size');
335
+ font-weight: dt('badge.font.weight');
336
+ min-width: dt('badge.min.width');
337
+ height: dt('badge.height');
338
+ }
339
+
340
+ .p-badge-dot {
341
+ width: dt('badge.dot.size');
342
+ min-width: dt('badge.dot.size');
343
+ height: dt('badge.dot.size');
344
+ border-radius: 50%;
345
+ padding: 0;
346
+ }
347
+
348
+ .p-badge-circle {
349
+ padding: 0;
350
+ border-radius: 50%;
351
+ }
352
+
353
+ .p-badge-secondary {
354
+ background: dt('badge.secondary.background');
355
+ color: dt('badge.secondary.color');
356
+ }
357
+
358
+ .p-badge-success {
359
+ background: dt('badge.success.background');
360
+ color: dt('badge.success.color');
361
+ }
362
+
363
+ .p-badge-info {
364
+ background: dt('badge.info.background');
365
+ color: dt('badge.info.color');
366
+ }
367
+
368
+ .p-badge-warn {
369
+ background: dt('badge.warn.background');
370
+ color: dt('badge.warn.color');
371
+ }
372
+
373
+ .p-badge-danger {
374
+ background: dt('badge.danger.background');
375
+ color: dt('badge.danger.color');
376
+ }
377
+
378
+ .p-badge-contrast {
379
+ background: dt('badge.contrast.background');
380
+ color: dt('badge.contrast.color');
381
+ }
382
+
383
+ .p-badge-sm {
384
+ font-size: dt('badge.sm.font.size');
385
+ min-width: dt('badge.sm.min.width');
386
+ height: dt('badge.sm.height');
387
+ }
388
+
389
+ .p-badge-lg {
390
+ font-size: dt('badge.lg.font.size');
391
+ min-width: dt('badge.lg.min.width');
392
+ height: dt('badge.lg.height');
393
+ }
394
+
395
+ .p-badge-xl {
396
+ font-size: dt('badge.xl.font.size');
397
+ min-width: dt('badge.xl.min.width');
398
+ height: dt('badge.xl.height');
399
+ }
400
+ `,classes:{root:function(e){var t=e.props,n=e.instance;return[`p-badge p-component`,{"p-badge-circle":Pc(t.value)&&String(t.value).length===1,"p-badge-dot":Ac(t.value)&&!n.$slots.default,"p-badge-sm":t.size===`small`,"p-badge-lg":t.size===`large`,"p-badge-xl":t.size===`xlarge`,"p-badge-info":t.severity===`info`,"p-badge-success":t.severity===`success`,"p-badge-warn":t.severity===`warn`,"p-badge-danger":t.severity===`danger`,"p-badge-secondary":t.severity===`secondary`,"p-badge-contrast":t.severity===`contrast`}]}}}),oy={name:`BaseBadge`,extends:E_,props:{value:{type:[String,Number],default:null},severity:{type:String,default:null},size:{type:String,default:null}},style:ay,provide:function(){return{$pcBadge:this,$parentInstance:this}}};function sy(e){"@babel/helpers - typeof";return sy=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},sy(e)}function cy(e,t,n){return(t=ly(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ly(e){var t=uy(e,`string`);return sy(t)==`symbol`?t:t+``}function uy(e,t){if(sy(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sy(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var dy={name:`Badge`,extends:oy,inheritAttrs:!1,computed:{dataP:function(){return tl(cy(cy({circle:this.value!=null&&String(this.value).length===1,empty:this.value==null&&!this.$slots.default},this.severity,this.severity),this.size,this.size))}}},fy=[`data-p`];function py(e,t,n,r,i,a){return z(),B(`span`,K({class:e.cx(`root`),"data-p":a.dataP},e.ptmi(`root`)),[L(e.$slots,`default`,{},function(){return[W(A(e.value),1)]})],16,fy)}dy.render=py;var my=`
401
+ .p-button {
402
+ display: inline-flex;
403
+ cursor: pointer;
404
+ user-select: none;
405
+ align-items: center;
406
+ justify-content: center;
407
+ overflow: hidden;
408
+ position: relative;
409
+ color: dt('button.primary.color');
410
+ background: dt('button.primary.background');
411
+ border: 1px solid dt('button.primary.border.color');
412
+ padding: dt('button.padding.y') dt('button.padding.x');
413
+ font-size: 1rem;
414
+ font-family: inherit;
415
+ font-feature-settings: inherit;
416
+ transition:
417
+ background dt('button.transition.duration'),
418
+ color dt('button.transition.duration'),
419
+ border-color dt('button.transition.duration'),
420
+ outline-color dt('button.transition.duration'),
421
+ box-shadow dt('button.transition.duration');
422
+ border-radius: dt('button.border.radius');
423
+ outline-color: transparent;
424
+ gap: dt('button.gap');
425
+ }
426
+
427
+ .p-button:disabled {
428
+ cursor: default;
429
+ }
430
+
431
+ .p-button-icon-right {
432
+ order: 1;
433
+ }
434
+
435
+ .p-button-icon-right:dir(rtl) {
436
+ order: -1;
437
+ }
438
+
439
+ .p-button:not(.p-button-vertical) .p-button-icon:not(.p-button-icon-right):dir(rtl) {
440
+ order: 1;
441
+ }
442
+
443
+ .p-button-icon-bottom {
444
+ order: 2;
445
+ }
446
+
447
+ .p-button-icon-only {
448
+ width: dt('button.icon.only.width');
449
+ padding-inline-start: 0;
450
+ padding-inline-end: 0;
451
+ gap: 0;
452
+ }
453
+
454
+ .p-button-icon-only.p-button-rounded {
455
+ border-radius: 50%;
456
+ height: dt('button.icon.only.width');
457
+ }
458
+
459
+ .p-button-icon-only .p-button-label {
460
+ visibility: hidden;
461
+ width: 0;
462
+ }
463
+
464
+ .p-button-icon-only::after {
465
+ content: "\xA0";
466
+ visibility: hidden;
467
+ width: 0;
468
+ }
469
+
470
+ .p-button-sm {
471
+ font-size: dt('button.sm.font.size');
472
+ padding: dt('button.sm.padding.y') dt('button.sm.padding.x');
473
+ }
474
+
475
+ .p-button-sm .p-button-icon {
476
+ font-size: dt('button.sm.font.size');
477
+ }
478
+
479
+ .p-button-sm.p-button-icon-only {
480
+ width: dt('button.sm.icon.only.width');
481
+ }
482
+
483
+ .p-button-sm.p-button-icon-only.p-button-rounded {
484
+ height: dt('button.sm.icon.only.width');
485
+ }
486
+
487
+ .p-button-lg {
488
+ font-size: dt('button.lg.font.size');
489
+ padding: dt('button.lg.padding.y') dt('button.lg.padding.x');
490
+ }
491
+
492
+ .p-button-lg .p-button-icon {
493
+ font-size: dt('button.lg.font.size');
494
+ }
495
+
496
+ .p-button-lg.p-button-icon-only {
497
+ width: dt('button.lg.icon.only.width');
498
+ }
499
+
500
+ .p-button-lg.p-button-icon-only.p-button-rounded {
501
+ height: dt('button.lg.icon.only.width');
502
+ }
503
+
504
+ .p-button-vertical {
505
+ flex-direction: column;
506
+ }
507
+
508
+ .p-button-label {
509
+ font-weight: dt('button.label.font.weight');
510
+ }
511
+
512
+ .p-button-fluid {
513
+ width: 100%;
514
+ }
515
+
516
+ .p-button-fluid.p-button-icon-only {
517
+ width: dt('button.icon.only.width');
518
+ }
519
+
520
+ .p-button:not(:disabled):hover {
521
+ background: dt('button.primary.hover.background');
522
+ border: 1px solid dt('button.primary.hover.border.color');
523
+ color: dt('button.primary.hover.color');
524
+ }
525
+
526
+ .p-button:not(:disabled):active {
527
+ background: dt('button.primary.active.background');
528
+ border: 1px solid dt('button.primary.active.border.color');
529
+ color: dt('button.primary.active.color');
530
+ }
531
+
532
+ .p-button:focus-visible {
533
+ box-shadow: dt('button.primary.focus.ring.shadow');
534
+ outline: dt('button.focus.ring.width') dt('button.focus.ring.style') dt('button.primary.focus.ring.color');
535
+ outline-offset: dt('button.focus.ring.offset');
536
+ }
537
+
538
+ .p-button .p-badge {
539
+ min-width: dt('button.badge.size');
540
+ height: dt('button.badge.size');
541
+ line-height: dt('button.badge.size');
542
+ }
543
+
544
+ .p-button-raised {
545
+ box-shadow: dt('button.raised.shadow');
546
+ }
547
+
548
+ .p-button-rounded {
549
+ border-radius: dt('button.rounded.border.radius');
550
+ }
551
+
552
+ .p-button-secondary {
553
+ background: dt('button.secondary.background');
554
+ border: 1px solid dt('button.secondary.border.color');
555
+ color: dt('button.secondary.color');
556
+ }
557
+
558
+ .p-button-secondary:not(:disabled):hover {
559
+ background: dt('button.secondary.hover.background');
560
+ border: 1px solid dt('button.secondary.hover.border.color');
561
+ color: dt('button.secondary.hover.color');
562
+ }
563
+
564
+ .p-button-secondary:not(:disabled):active {
565
+ background: dt('button.secondary.active.background');
566
+ border: 1px solid dt('button.secondary.active.border.color');
567
+ color: dt('button.secondary.active.color');
568
+ }
569
+
570
+ .p-button-secondary:focus-visible {
571
+ outline-color: dt('button.secondary.focus.ring.color');
572
+ box-shadow: dt('button.secondary.focus.ring.shadow');
573
+ }
574
+
575
+ .p-button-success {
576
+ background: dt('button.success.background');
577
+ border: 1px solid dt('button.success.border.color');
578
+ color: dt('button.success.color');
579
+ }
580
+
581
+ .p-button-success:not(:disabled):hover {
582
+ background: dt('button.success.hover.background');
583
+ border: 1px solid dt('button.success.hover.border.color');
584
+ color: dt('button.success.hover.color');
585
+ }
586
+
587
+ .p-button-success:not(:disabled):active {
588
+ background: dt('button.success.active.background');
589
+ border: 1px solid dt('button.success.active.border.color');
590
+ color: dt('button.success.active.color');
591
+ }
592
+
593
+ .p-button-success:focus-visible {
594
+ outline-color: dt('button.success.focus.ring.color');
595
+ box-shadow: dt('button.success.focus.ring.shadow');
596
+ }
597
+
598
+ .p-button-info {
599
+ background: dt('button.info.background');
600
+ border: 1px solid dt('button.info.border.color');
601
+ color: dt('button.info.color');
602
+ }
603
+
604
+ .p-button-info:not(:disabled):hover {
605
+ background: dt('button.info.hover.background');
606
+ border: 1px solid dt('button.info.hover.border.color');
607
+ color: dt('button.info.hover.color');
608
+ }
609
+
610
+ .p-button-info:not(:disabled):active {
611
+ background: dt('button.info.active.background');
612
+ border: 1px solid dt('button.info.active.border.color');
613
+ color: dt('button.info.active.color');
614
+ }
615
+
616
+ .p-button-info:focus-visible {
617
+ outline-color: dt('button.info.focus.ring.color');
618
+ box-shadow: dt('button.info.focus.ring.shadow');
619
+ }
620
+
621
+ .p-button-warn {
622
+ background: dt('button.warn.background');
623
+ border: 1px solid dt('button.warn.border.color');
624
+ color: dt('button.warn.color');
625
+ }
626
+
627
+ .p-button-warn:not(:disabled):hover {
628
+ background: dt('button.warn.hover.background');
629
+ border: 1px solid dt('button.warn.hover.border.color');
630
+ color: dt('button.warn.hover.color');
631
+ }
632
+
633
+ .p-button-warn:not(:disabled):active {
634
+ background: dt('button.warn.active.background');
635
+ border: 1px solid dt('button.warn.active.border.color');
636
+ color: dt('button.warn.active.color');
637
+ }
638
+
639
+ .p-button-warn:focus-visible {
640
+ outline-color: dt('button.warn.focus.ring.color');
641
+ box-shadow: dt('button.warn.focus.ring.shadow');
642
+ }
643
+
644
+ .p-button-help {
645
+ background: dt('button.help.background');
646
+ border: 1px solid dt('button.help.border.color');
647
+ color: dt('button.help.color');
648
+ }
649
+
650
+ .p-button-help:not(:disabled):hover {
651
+ background: dt('button.help.hover.background');
652
+ border: 1px solid dt('button.help.hover.border.color');
653
+ color: dt('button.help.hover.color');
654
+ }
655
+
656
+ .p-button-help:not(:disabled):active {
657
+ background: dt('button.help.active.background');
658
+ border: 1px solid dt('button.help.active.border.color');
659
+ color: dt('button.help.active.color');
660
+ }
661
+
662
+ .p-button-help:focus-visible {
663
+ outline-color: dt('button.help.focus.ring.color');
664
+ box-shadow: dt('button.help.focus.ring.shadow');
665
+ }
666
+
667
+ .p-button-danger {
668
+ background: dt('button.danger.background');
669
+ border: 1px solid dt('button.danger.border.color');
670
+ color: dt('button.danger.color');
671
+ }
672
+
673
+ .p-button-danger:not(:disabled):hover {
674
+ background: dt('button.danger.hover.background');
675
+ border: 1px solid dt('button.danger.hover.border.color');
676
+ color: dt('button.danger.hover.color');
677
+ }
678
+
679
+ .p-button-danger:not(:disabled):active {
680
+ background: dt('button.danger.active.background');
681
+ border: 1px solid dt('button.danger.active.border.color');
682
+ color: dt('button.danger.active.color');
683
+ }
684
+
685
+ .p-button-danger:focus-visible {
686
+ outline-color: dt('button.danger.focus.ring.color');
687
+ box-shadow: dt('button.danger.focus.ring.shadow');
688
+ }
689
+
690
+ .p-button-contrast {
691
+ background: dt('button.contrast.background');
692
+ border: 1px solid dt('button.contrast.border.color');
693
+ color: dt('button.contrast.color');
694
+ }
695
+
696
+ .p-button-contrast:not(:disabled):hover {
697
+ background: dt('button.contrast.hover.background');
698
+ border: 1px solid dt('button.contrast.hover.border.color');
699
+ color: dt('button.contrast.hover.color');
700
+ }
701
+
702
+ .p-button-contrast:not(:disabled):active {
703
+ background: dt('button.contrast.active.background');
704
+ border: 1px solid dt('button.contrast.active.border.color');
705
+ color: dt('button.contrast.active.color');
706
+ }
707
+
708
+ .p-button-contrast:focus-visible {
709
+ outline-color: dt('button.contrast.focus.ring.color');
710
+ box-shadow: dt('button.contrast.focus.ring.shadow');
711
+ }
712
+
713
+ .p-button-outlined {
714
+ background: transparent;
715
+ border-color: dt('button.outlined.primary.border.color');
716
+ color: dt('button.outlined.primary.color');
717
+ }
718
+
719
+ .p-button-outlined:not(:disabled):hover {
720
+ background: dt('button.outlined.primary.hover.background');
721
+ border-color: dt('button.outlined.primary.border.color');
722
+ color: dt('button.outlined.primary.color');
723
+ }
724
+
725
+ .p-button-outlined:not(:disabled):active {
726
+ background: dt('button.outlined.primary.active.background');
727
+ border-color: dt('button.outlined.primary.border.color');
728
+ color: dt('button.outlined.primary.color');
729
+ }
730
+
731
+ .p-button-outlined.p-button-secondary {
732
+ border-color: dt('button.outlined.secondary.border.color');
733
+ color: dt('button.outlined.secondary.color');
734
+ }
735
+
736
+ .p-button-outlined.p-button-secondary:not(:disabled):hover {
737
+ background: dt('button.outlined.secondary.hover.background');
738
+ border-color: dt('button.outlined.secondary.border.color');
739
+ color: dt('button.outlined.secondary.color');
740
+ }
741
+
742
+ .p-button-outlined.p-button-secondary:not(:disabled):active {
743
+ background: dt('button.outlined.secondary.active.background');
744
+ border-color: dt('button.outlined.secondary.border.color');
745
+ color: dt('button.outlined.secondary.color');
746
+ }
747
+
748
+ .p-button-outlined.p-button-success {
749
+ border-color: dt('button.outlined.success.border.color');
750
+ color: dt('button.outlined.success.color');
751
+ }
752
+
753
+ .p-button-outlined.p-button-success:not(:disabled):hover {
754
+ background: dt('button.outlined.success.hover.background');
755
+ border-color: dt('button.outlined.success.border.color');
756
+ color: dt('button.outlined.success.color');
757
+ }
758
+
759
+ .p-button-outlined.p-button-success:not(:disabled):active {
760
+ background: dt('button.outlined.success.active.background');
761
+ border-color: dt('button.outlined.success.border.color');
762
+ color: dt('button.outlined.success.color');
763
+ }
764
+
765
+ .p-button-outlined.p-button-info {
766
+ border-color: dt('button.outlined.info.border.color');
767
+ color: dt('button.outlined.info.color');
768
+ }
769
+
770
+ .p-button-outlined.p-button-info:not(:disabled):hover {
771
+ background: dt('button.outlined.info.hover.background');
772
+ border-color: dt('button.outlined.info.border.color');
773
+ color: dt('button.outlined.info.color');
774
+ }
775
+
776
+ .p-button-outlined.p-button-info:not(:disabled):active {
777
+ background: dt('button.outlined.info.active.background');
778
+ border-color: dt('button.outlined.info.border.color');
779
+ color: dt('button.outlined.info.color');
780
+ }
781
+
782
+ .p-button-outlined.p-button-warn {
783
+ border-color: dt('button.outlined.warn.border.color');
784
+ color: dt('button.outlined.warn.color');
785
+ }
786
+
787
+ .p-button-outlined.p-button-warn:not(:disabled):hover {
788
+ background: dt('button.outlined.warn.hover.background');
789
+ border-color: dt('button.outlined.warn.border.color');
790
+ color: dt('button.outlined.warn.color');
791
+ }
792
+
793
+ .p-button-outlined.p-button-warn:not(:disabled):active {
794
+ background: dt('button.outlined.warn.active.background');
795
+ border-color: dt('button.outlined.warn.border.color');
796
+ color: dt('button.outlined.warn.color');
797
+ }
798
+
799
+ .p-button-outlined.p-button-help {
800
+ border-color: dt('button.outlined.help.border.color');
801
+ color: dt('button.outlined.help.color');
802
+ }
803
+
804
+ .p-button-outlined.p-button-help:not(:disabled):hover {
805
+ background: dt('button.outlined.help.hover.background');
806
+ border-color: dt('button.outlined.help.border.color');
807
+ color: dt('button.outlined.help.color');
808
+ }
809
+
810
+ .p-button-outlined.p-button-help:not(:disabled):active {
811
+ background: dt('button.outlined.help.active.background');
812
+ border-color: dt('button.outlined.help.border.color');
813
+ color: dt('button.outlined.help.color');
814
+ }
815
+
816
+ .p-button-outlined.p-button-danger {
817
+ border-color: dt('button.outlined.danger.border.color');
818
+ color: dt('button.outlined.danger.color');
819
+ }
820
+
821
+ .p-button-outlined.p-button-danger:not(:disabled):hover {
822
+ background: dt('button.outlined.danger.hover.background');
823
+ border-color: dt('button.outlined.danger.border.color');
824
+ color: dt('button.outlined.danger.color');
825
+ }
826
+
827
+ .p-button-outlined.p-button-danger:not(:disabled):active {
828
+ background: dt('button.outlined.danger.active.background');
829
+ border-color: dt('button.outlined.danger.border.color');
830
+ color: dt('button.outlined.danger.color');
831
+ }
832
+
833
+ .p-button-outlined.p-button-contrast {
834
+ border-color: dt('button.outlined.contrast.border.color');
835
+ color: dt('button.outlined.contrast.color');
836
+ }
837
+
838
+ .p-button-outlined.p-button-contrast:not(:disabled):hover {
839
+ background: dt('button.outlined.contrast.hover.background');
840
+ border-color: dt('button.outlined.contrast.border.color');
841
+ color: dt('button.outlined.contrast.color');
842
+ }
843
+
844
+ .p-button-outlined.p-button-contrast:not(:disabled):active {
845
+ background: dt('button.outlined.contrast.active.background');
846
+ border-color: dt('button.outlined.contrast.border.color');
847
+ color: dt('button.outlined.contrast.color');
848
+ }
849
+
850
+ .p-button-outlined.p-button-plain {
851
+ border-color: dt('button.outlined.plain.border.color');
852
+ color: dt('button.outlined.plain.color');
853
+ }
854
+
855
+ .p-button-outlined.p-button-plain:not(:disabled):hover {
856
+ background: dt('button.outlined.plain.hover.background');
857
+ border-color: dt('button.outlined.plain.border.color');
858
+ color: dt('button.outlined.plain.color');
859
+ }
860
+
861
+ .p-button-outlined.p-button-plain:not(:disabled):active {
862
+ background: dt('button.outlined.plain.active.background');
863
+ border-color: dt('button.outlined.plain.border.color');
864
+ color: dt('button.outlined.plain.color');
865
+ }
866
+
867
+ .p-button-text {
868
+ background: transparent;
869
+ border-color: transparent;
870
+ color: dt('button.text.primary.color');
871
+ }
872
+
873
+ .p-button-text:not(:disabled):hover {
874
+ background: dt('button.text.primary.hover.background');
875
+ border-color: transparent;
876
+ color: dt('button.text.primary.color');
877
+ }
878
+
879
+ .p-button-text:not(:disabled):active {
880
+ background: dt('button.text.primary.active.background');
881
+ border-color: transparent;
882
+ color: dt('button.text.primary.color');
883
+ }
884
+
885
+ .p-button-text.p-button-secondary {
886
+ background: transparent;
887
+ border-color: transparent;
888
+ color: dt('button.text.secondary.color');
889
+ }
890
+
891
+ .p-button-text.p-button-secondary:not(:disabled):hover {
892
+ background: dt('button.text.secondary.hover.background');
893
+ border-color: transparent;
894
+ color: dt('button.text.secondary.color');
895
+ }
896
+
897
+ .p-button-text.p-button-secondary:not(:disabled):active {
898
+ background: dt('button.text.secondary.active.background');
899
+ border-color: transparent;
900
+ color: dt('button.text.secondary.color');
901
+ }
902
+
903
+ .p-button-text.p-button-success {
904
+ background: transparent;
905
+ border-color: transparent;
906
+ color: dt('button.text.success.color');
907
+ }
908
+
909
+ .p-button-text.p-button-success:not(:disabled):hover {
910
+ background: dt('button.text.success.hover.background');
911
+ border-color: transparent;
912
+ color: dt('button.text.success.color');
913
+ }
914
+
915
+ .p-button-text.p-button-success:not(:disabled):active {
916
+ background: dt('button.text.success.active.background');
917
+ border-color: transparent;
918
+ color: dt('button.text.success.color');
919
+ }
920
+
921
+ .p-button-text.p-button-info {
922
+ background: transparent;
923
+ border-color: transparent;
924
+ color: dt('button.text.info.color');
925
+ }
926
+
927
+ .p-button-text.p-button-info:not(:disabled):hover {
928
+ background: dt('button.text.info.hover.background');
929
+ border-color: transparent;
930
+ color: dt('button.text.info.color');
931
+ }
932
+
933
+ .p-button-text.p-button-info:not(:disabled):active {
934
+ background: dt('button.text.info.active.background');
935
+ border-color: transparent;
936
+ color: dt('button.text.info.color');
937
+ }
938
+
939
+ .p-button-text.p-button-warn {
940
+ background: transparent;
941
+ border-color: transparent;
942
+ color: dt('button.text.warn.color');
943
+ }
944
+
945
+ .p-button-text.p-button-warn:not(:disabled):hover {
946
+ background: dt('button.text.warn.hover.background');
947
+ border-color: transparent;
948
+ color: dt('button.text.warn.color');
949
+ }
950
+
951
+ .p-button-text.p-button-warn:not(:disabled):active {
952
+ background: dt('button.text.warn.active.background');
953
+ border-color: transparent;
954
+ color: dt('button.text.warn.color');
955
+ }
956
+
957
+ .p-button-text.p-button-help {
958
+ background: transparent;
959
+ border-color: transparent;
960
+ color: dt('button.text.help.color');
961
+ }
962
+
963
+ .p-button-text.p-button-help:not(:disabled):hover {
964
+ background: dt('button.text.help.hover.background');
965
+ border-color: transparent;
966
+ color: dt('button.text.help.color');
967
+ }
968
+
969
+ .p-button-text.p-button-help:not(:disabled):active {
970
+ background: dt('button.text.help.active.background');
971
+ border-color: transparent;
972
+ color: dt('button.text.help.color');
973
+ }
974
+
975
+ .p-button-text.p-button-danger {
976
+ background: transparent;
977
+ border-color: transparent;
978
+ color: dt('button.text.danger.color');
979
+ }
980
+
981
+ .p-button-text.p-button-danger:not(:disabled):hover {
982
+ background: dt('button.text.danger.hover.background');
983
+ border-color: transparent;
984
+ color: dt('button.text.danger.color');
985
+ }
986
+
987
+ .p-button-text.p-button-danger:not(:disabled):active {
988
+ background: dt('button.text.danger.active.background');
989
+ border-color: transparent;
990
+ color: dt('button.text.danger.color');
991
+ }
992
+
993
+ .p-button-text.p-button-contrast {
994
+ background: transparent;
995
+ border-color: transparent;
996
+ color: dt('button.text.contrast.color');
997
+ }
998
+
999
+ .p-button-text.p-button-contrast:not(:disabled):hover {
1000
+ background: dt('button.text.contrast.hover.background');
1001
+ border-color: transparent;
1002
+ color: dt('button.text.contrast.color');
1003
+ }
1004
+
1005
+ .p-button-text.p-button-contrast:not(:disabled):active {
1006
+ background: dt('button.text.contrast.active.background');
1007
+ border-color: transparent;
1008
+ color: dt('button.text.contrast.color');
1009
+ }
1010
+
1011
+ .p-button-text.p-button-plain {
1012
+ background: transparent;
1013
+ border-color: transparent;
1014
+ color: dt('button.text.plain.color');
1015
+ }
1016
+
1017
+ .p-button-text.p-button-plain:not(:disabled):hover {
1018
+ background: dt('button.text.plain.hover.background');
1019
+ border-color: transparent;
1020
+ color: dt('button.text.plain.color');
1021
+ }
1022
+
1023
+ .p-button-text.p-button-plain:not(:disabled):active {
1024
+ background: dt('button.text.plain.active.background');
1025
+ border-color: transparent;
1026
+ color: dt('button.text.plain.color');
1027
+ }
1028
+
1029
+ .p-button-link {
1030
+ background: transparent;
1031
+ border-color: transparent;
1032
+ color: dt('button.link.color');
1033
+ }
1034
+
1035
+ .p-button-link:not(:disabled):hover {
1036
+ background: transparent;
1037
+ border-color: transparent;
1038
+ color: dt('button.link.hover.color');
1039
+ }
1040
+
1041
+ .p-button-link:not(:disabled):hover .p-button-label {
1042
+ text-decoration: underline;
1043
+ }
1044
+
1045
+ .p-button-link:not(:disabled):active {
1046
+ background: transparent;
1047
+ border-color: transparent;
1048
+ color: dt('button.link.active.color');
1049
+ }
1050
+ `;function hy(e){"@babel/helpers - typeof";return hy=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},hy(e)}function gy(e,t,n){return(t=_y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _y(e){var t=vy(e,`string`);return hy(t)==`symbol`?t:t+``}function vy(e,t){if(hy(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hy(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var yy=ad.extend({name:`button`,style:my,classes:{root:function(e){var t=e.instance,n=e.props;return[`p-button p-component`,gy(gy(gy(gy(gy(gy(gy(gy(gy({"p-button-icon-only":t.hasIcon&&!n.label&&!n.badge,"p-button-vertical":(n.iconPos===`top`||n.iconPos===`bottom`)&&n.label,"p-button-loading":n.loading,"p-button-link":n.link||n.variant===`link`},`p-button-${n.severity}`,n.severity),`p-button-raised`,n.raised),`p-button-rounded`,n.rounded),`p-button-text`,n.text||n.variant===`text`),`p-button-outlined`,n.outlined||n.variant===`outlined`),`p-button-sm`,n.size===`small`),`p-button-lg`,n.size===`large`),`p-button-plain`,n.plain),`p-button-fluid`,t.hasFluid)]},loadingIcon:`p-button-loading-icon`,icon:function(e){var t=e.props;return[`p-button-icon`,gy({},`p-button-icon-${t.iconPos}`,t.label)]},label:`p-button-label`}}),by={name:`BaseButton`,extends:E_,props:{label:{type:String,default:null},icon:{type:String,default:null},iconPos:{type:String,default:`left`},iconClass:{type:[String,Object],default:null},badge:{type:String,default:null},badgeClass:{type:[String,Object],default:null},badgeSeverity:{type:String,default:`secondary`},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},as:{type:[String,Object],default:`BUTTON`},asChild:{type:Boolean,default:!1},link:{type:Boolean,default:!1},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},variant:{type:String,default:null},plain:{type:Boolean,default:!1},fluid:{type:Boolean,default:null}},style:yy,provide:function(){return{$pcButton:this,$parentInstance:this}}};function xy(e){"@babel/helpers - typeof";return xy=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},xy(e)}function Sy(e,t,n){return(t=Cy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cy(e){var t=wy(e,`string`);return xy(t)==`symbol`?t:t+``}function wy(e,t){if(xy(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xy(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Y={name:`Button`,extends:by,inheritAttrs:!1,inject:{$pcFluid:{default:null}},methods:{getPTOptions:function(e){return(e===`root`?this.ptmi:this.ptm)(e,{context:{disabled:this.disabled}})}},computed:{disabled:function(){return this.$attrs.disabled||this.$attrs.disabled===``||this.loading},defaultAriaLabel:function(){return this.label?this.label+(this.badge?` `+this.badge:``):this.$attrs.ariaLabel},hasIcon:function(){return this.icon||this.$slots.icon},attrs:function(){return K(this.asAttrs,this.a11yAttrs,this.getPTOptions(`root`))},asAttrs:function(){return this.as===`BUTTON`?{type:`button`,disabled:this.disabled}:void 0},a11yAttrs:function(){return{"aria-label":this.defaultAriaLabel,"data-pc-name":`button`,"data-p-disabled":this.disabled,"data-p-severity":this.severity}},hasFluid:function(){return Ac(this.fluid)?!!this.$pcFluid:this.fluid},dataP:function(){return tl(Sy(Sy(Sy(Sy(Sy(Sy(Sy(Sy(Sy(Sy({},this.size,this.size),`icon-only`,this.hasIcon&&!this.label&&!this.badge),`loading`,this.loading),`fluid`,this.hasFluid),`rounded`,this.rounded),`raised`,this.raised),`outlined`,this.outlined||this.variant===`outlined`),`text`,this.text||this.variant===`text`),`link`,this.link||this.variant===`link`),`vertical`,(this.iconPos===`top`||this.iconPos===`bottom`)&&this.label))},dataIconP:function(){return tl(Sy(Sy({},this.iconPos,this.iconPos),this.size,this.size))},dataLabelP:function(){return tl(Sy(Sy({},this.size,this.size),`icon-only`,this.hasIcon&&!this.label&&!this.badge))}},components:{SpinnerIcon:Zv,Badge:dy},directives:{ripple:$_}},Ty=[`data-p`],Ey=[`data-p`];function Dy(e,t,n,r,i,a){var o=F(`SpinnerIcon`),s=F(`Badge`),c=ui(`ripple`);return e.asChild?L(e.$slots,`default`,{key:1,class:k(e.cx(`root`)),a11yAttrs:a.a11yAttrs}):Yn((z(),V(li(e.as),K({key:0,class:e.cx(`root`),"data-p":a.dataP},a.attrs),{default:N(function(){return[L(e.$slots,`default`,{},function(){return[e.loading?L(e.$slots,`loadingicon`,K({key:0,class:[e.cx(`loadingIcon`),e.cx(`icon`)]},e.ptm(`loadingIcon`)),function(){return[e.loadingIcon?(z(),B(`span`,K({key:0,class:[e.cx(`loadingIcon`),e.cx(`icon`),e.loadingIcon]},e.ptm(`loadingIcon`)),null,16)):(z(),V(o,K({key:1,class:[e.cx(`loadingIcon`),e.cx(`icon`)],spin:``},e.ptm(`loadingIcon`)),null,16,[`class`]))]}):L(e.$slots,`icon`,K({key:1,class:[e.cx(`icon`)]},e.ptm(`icon`)),function(){return[e.icon?(z(),B(`span`,K({key:0,class:[e.cx(`icon`),e.icon,e.iconClass],"data-p":a.dataIconP},e.ptm(`icon`)),null,16,Ty)):G(``,!0)]}),e.label?(z(),B(`span`,K({key:2,class:e.cx(`label`)},e.ptm(`label`),{"data-p":a.dataLabelP}),A(e.label),17,Ey)):G(``,!0),e.badge?(z(),V(s,{key:3,value:e.badge,class:k(e.badgeClass),severity:e.badgeSeverity,unstyled:e.unstyled,pt:e.ptm(`pcBadge`)},null,8,[`value`,`class`,`severity`,`unstyled`,`pt`])):G(``,!0)]})]}),_:3},16,[`class`,`data-p`])),[[c]])}Y.render=Dy;var Oy=ad.extend({name:`focustrap-directive`}),ky=B_.extend({style:Oy});function Ay(e){"@babel/helpers - typeof";return Ay=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ay(e)}function jy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function My(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?jy(Object(n),!0).forEach(function(t){Ny(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ny(e,t,n){return(t=Py(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Py(e){var t=Fy(e,`string`);return Ay(t)==`symbol`?t:t+``}function Fy(e,t){if(Ay(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ay(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Iy=ky.extend(`focustrap`,{mounted:function(e,t){(t.value||{}).disabled||(this.createHiddenFocusableElements(e,t),this.bind(e,t),this.autoElementFocus(e,t)),e.setAttribute(`data-pd-focustrap`,!0),this.$el=e},updated:function(e,t){(t.value||{}).disabled&&this.unbind(e)},unmounted:function(e){this.unbind(e)},methods:{getComputedSelector:function(e){return`:not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])${e??``}`},bind:function(e,t){var n=this,r=t.value||{},i=r.onFocusIn,a=r.onFocusOut;e.$_pfocustrap_mutationobserver=new MutationObserver(function(t){t.forEach(function(t){if(t.type===`childList`&&!e.contains(document.activeElement)){var r=function(t){var i=Vl(t)?Vl(t,n.getComputedSelector(e.$_pfocustrap_focusableselector))?t:Al(e,n.getComputedSelector(e.$_pfocustrap_focusableselector)):Al(t);return Pc(i)?i:t.nextSibling&&r(t.nextSibling)};Dl(r(t.nextSibling))}})}),e.$_pfocustrap_mutationobserver.disconnect(),e.$_pfocustrap_mutationobserver.observe(e,{childList:!0}),e.$_pfocustrap_focusinlistener=function(e){return i&&i(e)},e.$_pfocustrap_focusoutlistener=function(e){return a&&a(e)},e.addEventListener(`focusin`,e.$_pfocustrap_focusinlistener),e.addEventListener(`focusout`,e.$_pfocustrap_focusoutlistener)},unbind:function(e){e.$_pfocustrap_mutationobserver&&e.$_pfocustrap_mutationobserver.disconnect(),e.$_pfocustrap_focusinlistener&&e.removeEventListener(`focusin`,e.$_pfocustrap_focusinlistener)&&(e.$_pfocustrap_focusinlistener=null),e.$_pfocustrap_focusoutlistener&&e.removeEventListener(`focusout`,e.$_pfocustrap_focusoutlistener)&&(e.$_pfocustrap_focusoutlistener=null)},autoFocus:function(e){this.autoElementFocus(this.$el,{value:My(My({},e),{},{autoFocus:!0})})},autoElementFocus:function(e,t){var n=t.value||{},r=n.autoFocusSelector,i=r===void 0?``:r,a=n.firstFocusableSelector,o=a===void 0?``:a,s=n.autoFocus,c=s!==void 0&&s,l=Al(e,`[autofocus]${this.getComputedSelector(i)}`);c&&!l&&(l=Al(e,this.getComputedSelector(o))),Dl(l)},onFirstHiddenElementFocus:function(e){var t,n=e.currentTarget,r=e.relatedTarget;Dl(r===n.$_pfocustrap_lasthiddenfocusableelement||!((t=this.$el)!=null&&t.contains(r))?Al(n.parentElement,this.getComputedSelector(n.$_pfocustrap_focusableselector)):n.$_pfocustrap_lasthiddenfocusableelement)},onLastHiddenElementFocus:function(e){var t,n=e.currentTarget,r=e.relatedTarget;Dl(r===n.$_pfocustrap_firsthiddenfocusableelement||!((t=this.$el)!=null&&t.contains(r))?Ml(n.parentElement,this.getComputedSelector(n.$_pfocustrap_focusableselector)):n.$_pfocustrap_firsthiddenfocusableelement)},createHiddenFocusableElements:function(e,t){var n=this,r=t.value||{},i=r.tabIndex,a=i===void 0?0:i,o=r.firstFocusableSelector,s=o===void 0?``:o,c=r.lastFocusableSelector,l=c===void 0?``:c,u=function(e){return wl(`span`,{class:`p-hidden-accessible p-hidden-focusable`,tabIndex:a,role:`presentation`,"aria-hidden":!0,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:e?.bind(n)})},d=u(this.onFirstHiddenElementFocus),f=u(this.onLastHiddenElementFocus);d.$_pfocustrap_lasthiddenfocusableelement=f,d.$_pfocustrap_focusableselector=s,d.setAttribute(`data-pc-section`,`firstfocusableelement`),f.$_pfocustrap_firsthiddenfocusableelement=d,f.$_pfocustrap_focusableselector=l,f.setAttribute(`data-pc-section`,`lastfocusableelement`),e.prepend(d),e.append(f)}}});function Ly(){al({variableName:bu(`scrollbar.width`).name})}function Ry(){sl({variableName:bu(`scrollbar.width`).name})}var zy=ad.extend({name:`dialog`,style:`
1051
+ .p-dialog {
1052
+ max-height: 90%;
1053
+ transform: scale(1);
1054
+ border-radius: dt('dialog.border.radius');
1055
+ box-shadow: dt('dialog.shadow');
1056
+ background: dt('dialog.background');
1057
+ border: 1px solid dt('dialog.border.color');
1058
+ color: dt('dialog.color');
1059
+ will-change: transform;
1060
+ }
1061
+
1062
+ .p-dialog-content {
1063
+ overflow-y: auto;
1064
+ padding: dt('dialog.content.padding');
1065
+ flex-grow: 1;
1066
+ }
1067
+
1068
+ .p-dialog-header {
1069
+ display: flex;
1070
+ align-items: center;
1071
+ justify-content: space-between;
1072
+ flex-shrink: 0;
1073
+ padding: dt('dialog.header.padding');
1074
+ }
1075
+
1076
+ .p-dialog-title {
1077
+ font-weight: dt('dialog.title.font.weight');
1078
+ font-size: dt('dialog.title.font.size');
1079
+ }
1080
+
1081
+ .p-dialog-footer {
1082
+ flex-shrink: 0;
1083
+ padding: dt('dialog.footer.padding');
1084
+ display: flex;
1085
+ justify-content: flex-end;
1086
+ gap: dt('dialog.footer.gap');
1087
+ }
1088
+
1089
+ .p-dialog-header-actions {
1090
+ display: flex;
1091
+ align-items: center;
1092
+ gap: dt('dialog.header.gap');
1093
+ }
1094
+
1095
+ .p-dialog-top .p-dialog,
1096
+ .p-dialog-bottom .p-dialog,
1097
+ .p-dialog-left .p-dialog,
1098
+ .p-dialog-right .p-dialog,
1099
+ .p-dialog-topleft .p-dialog,
1100
+ .p-dialog-topright .p-dialog,
1101
+ .p-dialog-bottomleft .p-dialog,
1102
+ .p-dialog-bottomright .p-dialog {
1103
+ margin: 1rem;
1104
+ }
1105
+
1106
+ .p-dialog-maximized {
1107
+ width: 100vw !important;
1108
+ height: 100vh !important;
1109
+ top: 0px !important;
1110
+ left: 0px !important;
1111
+ max-height: 100%;
1112
+ height: 100%;
1113
+ border-radius: 0;
1114
+ }
1115
+
1116
+ .p-dialog .p-resizable-handle {
1117
+ position: absolute;
1118
+ font-size: 0.1px;
1119
+ display: block;
1120
+ cursor: se-resize;
1121
+ width: 12px;
1122
+ height: 12px;
1123
+ right: 1px;
1124
+ bottom: 1px;
1125
+ }
1126
+
1127
+ .p-dialog-enter-active {
1128
+ animation: p-animate-dialog-enter 300ms cubic-bezier(.19,1,.22,1);
1129
+ }
1130
+
1131
+ .p-dialog-leave-active {
1132
+ animation: p-animate-dialog-leave 300ms cubic-bezier(.19,1,.22,1);
1133
+ }
1134
+
1135
+ @keyframes p-animate-dialog-enter {
1136
+ from {
1137
+ opacity: 0;
1138
+ transform: scale(0.93);
1139
+ }
1140
+ }
1141
+
1142
+ @keyframes p-animate-dialog-leave {
1143
+ to {
1144
+ opacity: 0;
1145
+ transform: scale(0.93);
1146
+ }
1147
+ }
1148
+ `,classes:{mask:function(e){var t=e.props,n=[`left`,`right`,`top`,`topleft`,`topright`,`bottom`,`bottomleft`,`bottomright`].find(function(e){return e===t.position});return[`p-dialog-mask`,{"p-overlay-mask p-overlay-mask-enter-active":t.modal},n?`p-dialog-${n}`:``]},root:function(e){var t=e.props,n=e.instance;return[`p-dialog p-component`,{"p-dialog-maximized":t.maximizable&&n.maximized}]},header:`p-dialog-header`,title:`p-dialog-title`,headerActions:`p-dialog-header-actions`,pcMaximizeButton:`p-dialog-maximize-button`,pcCloseButton:`p-dialog-close-button`,content:`p-dialog-content`,footer:`p-dialog-footer`},inlineStyles:{mask:function(e){var t=e.position,n=e.modal;return{position:`fixed`,height:`100%`,width:`100%`,left:0,top:0,display:`flex`,justifyContent:t===`left`||t===`topleft`||t===`bottomleft`?`flex-start`:t===`right`||t===`topright`||t===`bottomright`?`flex-end`:`center`,alignItems:t===`top`||t===`topleft`||t===`topright`?`flex-start`:t===`bottom`||t===`bottomleft`||t===`bottomright`?`flex-end`:`center`,pointerEvents:n?`auto`:`none`}},root:{display:`flex`,flexDirection:`column`,pointerEvents:`auto`}}}),By={name:`Dialog`,extends:{name:`BaseDialog`,extends:E_,props:{header:{type:null,default:null},footer:{type:null,default:null},visible:{type:Boolean,default:!1},modal:{type:Boolean,default:null},contentStyle:{type:null,default:null},contentClass:{type:String,default:null},contentProps:{type:null,default:null},maximizable:{type:Boolean,default:!1},dismissableMask:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},closeOnEscape:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!1},baseZIndex:{type:Number,default:0},autoZIndex:{type:Boolean,default:!0},position:{type:String,default:`center`},breakpoints:{type:Object,default:null},draggable:{type:Boolean,default:!0},keepInViewport:{type:Boolean,default:!0},minX:{type:Number,default:0},minY:{type:Number,default:0},appendTo:{type:[String,Object],default:`body`},closeIcon:{type:String,default:void 0},maximizeIcon:{type:String,default:void 0},minimizeIcon:{type:String,default:void 0},closeButtonProps:{type:Object,default:function(){return{severity:`secondary`,text:!0,rounded:!0}}},maximizeButtonProps:{type:Object,default:function(){return{severity:`secondary`,text:!0,rounded:!0}}},_instance:null},style:zy,provide:function(){return{$pcDialog:this,$parentInstance:this}}},inheritAttrs:!1,emits:[`update:visible`,`show`,`hide`,`after-hide`,`maximize`,`unmaximize`,`dragstart`,`dragend`],provide:function(){var e=this;return{dialogRef:q(function(){return e._instance})}},data:function(){return{containerVisible:this.visible,maximized:!1,focusableMax:null,focusableClose:null,target:null}},documentKeydownListener:null,container:null,mask:null,content:null,headerContainer:null,footerContainer:null,maximizableButton:null,closeButton:null,styleElement:null,dragging:null,documentDragListener:null,documentDragEndListener:null,lastPageX:null,lastPageY:null,maskMouseDownTarget:null,updated:function(){this.visible&&(this.containerVisible=this.visible)},beforeUnmount:function(){this.unbindDocumentState(),this.unbindGlobalListeners(),this.destroyStyle(),this.mask&&this.autoZIndex&&Jl.clear(this.mask),this.container=null,this.mask=null},mounted:function(){this.breakpoints&&this.createStyle()},methods:{close:function(){this.$emit(`update:visible`,!1)},onEnter:function(){this.$emit(`show`),this.target=document.activeElement,this.enableDocumentSettings(),this.bindGlobalListeners(),this.autoZIndex&&Jl.set(`modal`,this.mask,this.baseZIndex||this.$primevue.config.zIndex.modal)},onAfterEnter:function(){this.focus()},onBeforeLeave:function(){this.modal&&!this.isUnstyled&&rl(this.mask,`p-overlay-mask-leave-active`),this.dragging&&this.documentDragEndListener&&this.documentDragEndListener()},onLeave:function(){this.$emit(`hide`),Dl(this.target),this.target=null,this.focusableClose=null,this.focusableMax=null},onAfterLeave:function(){this.autoZIndex&&Jl.clear(this.mask),this.containerVisible=!1,this.unbindDocumentState(),this.unbindGlobalListeners(),this.$emit(`after-hide`)},onMaskMouseDown:function(e){this.maskMouseDownTarget=e.target},onMaskMouseUp:function(){this.dismissableMask&&this.modal&&this.mask===this.maskMouseDownTarget&&this.close()},focus:function(){var e=function(e){return e&&e.querySelector(`[autofocus]`)},t=this.$slots.footer&&e(this.footerContainer);t||(t=this.$slots.header&&e(this.headerContainer),t||(t=this.$slots.default&&e(this.content),t||(this.maximizable?(this.focusableMax=!0,t=this.maximizableButton):(this.focusableClose=!0,t=this.closeButton)))),t&&Dl(t,{focusVisible:!0})},maximize:function(e){this.maximized?(this.maximized=!1,this.$emit(`unmaximize`,e)):(this.maximized=!0,this.$emit(`maximize`,e)),this.modal||(this.maximized?Ly():Ry())},enableDocumentSettings:function(){(this.modal||!this.modal&&this.blockScroll||this.maximizable&&this.maximized)&&Ly()},unbindDocumentState:function(){(this.modal||!this.modal&&this.blockScroll||this.maximizable&&this.maximized)&&Ry()},onKeyDown:function(e){e.code===`Escape`&&this.closeOnEscape&&!e.isComposing&&this.close()},bindDocumentKeyDownListener:function(){this.documentKeydownListener||(this.documentKeydownListener=this.onKeyDown.bind(this),window.document.addEventListener(`keydown`,this.documentKeydownListener))},unbindDocumentKeyDownListener:function(){this.documentKeydownListener&&=(window.document.removeEventListener(`keydown`,this.documentKeydownListener),null)},containerRef:function(e){this.container=e},maskRef:function(e){this.mask=e},contentRef:function(e){this.content=e},headerContainerRef:function(e){this.headerContainer=e},footerContainerRef:function(e){this.footerContainer=e},maximizableRef:function(e){this.maximizableButton=e?e.$el:void 0},closeButtonRef:function(e){this.closeButton=e?e.$el:void 0},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var e;this.styleElement=document.createElement(`style`),this.styleElement.type=`text/css`,Wl(this.styleElement,`nonce`,(e=this.$primevue)==null||(e=e.config)==null||(e=e.csp)==null?void 0:e.nonce),document.head.appendChild(this.styleElement);var t=``;for(var n in this.breakpoints)t+=`
1149
+ @media screen and (max-width: ${n}) {
1150
+ .p-dialog[${this.$attrSelector}] {
1151
+ width: ${this.breakpoints[n]} !important;
1152
+ }
1153
+ }
1154
+ `;this.styleElement.innerHTML=t}},destroyStyle:function(){this.styleElement&&=(document.head.removeChild(this.styleElement),null)},initDrag:function(e){e.target.closest(`div`).getAttribute(`data-pc-section`)!==`headeractions`&&this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin=`0`,document.body.setAttribute(`data-p-unselectable-text`,`true`),!this.isUnstyled&&gl(document.body,{"user-select":`none`}),this.$emit(`dragstart`,e))},bindGlobalListeners:function(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.closeOnEscape&&this.bindDocumentKeyDownListener()},unbindGlobalListeners:function(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentKeyDownListener()},bindDocumentDragListener:function(){var e=this;this.documentDragListener=function(t){if(e.dragging){var n=_l(e.container),r=Pl(e.container),i=t.pageX-e.lastPageX,a=t.pageY-e.lastPageY,o=e.container.getBoundingClientRect(),s=o.left+i,c=o.top+a,l=ul(),u=getComputedStyle(e.container),d=parseFloat(u.marginLeft),f=parseFloat(u.marginTop);e.container.style.position=`fixed`,e.keepInViewport?(s>=e.minX&&s+n<l.width&&(e.lastPageX=t.pageX,e.container.style.left=s-d+`px`),c>=e.minY&&c+r<l.height&&(e.lastPageY=t.pageY,e.container.style.top=c-f+`px`)):(e.lastPageX=t.pageX,e.container.style.left=s-d+`px`,e.lastPageY=t.pageY,e.container.style.top=c-f+`px`)}},window.document.addEventListener(`mousemove`,this.documentDragListener)},unbindDocumentDragListener:function(){this.documentDragListener&&=(window.document.removeEventListener(`mousemove`,this.documentDragListener),null)},bindDocumentDragEndListener:function(){var e=this;this.documentDragEndListener=function(t){e.dragging&&(e.dragging=!1,document.body.removeAttribute(`data-p-unselectable-text`),!e.isUnstyled&&(document.body.style[`user-select`]=``),e.$emit(`dragend`,t))},window.document.addEventListener(`mouseup`,this.documentDragEndListener)},unbindDocumentDragEndListener:function(){this.documentDragEndListener&&=(window.document.removeEventListener(`mouseup`,this.documentDragEndListener),null)}},computed:{maximizeIconComponent:function(){return this.maximized?this.minimizeIcon?`span`:`WindowMinimizeIcon`:this.maximizeIcon?`span`:`WindowMaximizeIcon`},ariaLabelledById:function(){return this.header!=null||this.$attrs[`aria-labelledby`]!==null?this.$id+`_header`:null},closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0},dataP:function(){return tl({maximized:this.maximized,modal:this.modal})}},directives:{ripple:$_,focustrap:Iy},components:{Button:Y,Portal:s_,WindowMinimizeIcon:Uv,WindowMaximizeIcon:Fv,TimesIcon:Dv}};function Vy(e){"@babel/helpers - typeof";return Vy=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Vy(e)}function Hy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Uy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Hy(Object(n),!0).forEach(function(t){Wy(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Wy(e,t,n){return(t=Gy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gy(e){var t=Ky(e,`string`);return Vy(t)==`symbol`?t:t+``}function Ky(e,t){if(Vy(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vy(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var qy=[`data-p`],Jy=[`aria-labelledby`,`aria-modal`,`data-p`],Yy=[`id`],Xy=[`data-p`];function Zy(e,t,n,r,i,a){var o=F(`Button`),s=F(`Portal`),c=ui(`focustrap`);return z(),V(s,{appendTo:e.appendTo},{default:N(function(){return[i.containerVisible?(z(),B(`div`,K({key:0,ref:a.maskRef,class:e.cx(`mask`),style:e.sx(`mask`,!0,{position:e.position,modal:e.modal}),onMousedown:t[1]||=function(){return a.onMaskMouseDown&&a.onMaskMouseDown.apply(a,arguments)},onMouseup:t[2]||=function(){return a.onMaskMouseUp&&a.onMaskMouseUp.apply(a,arguments)},"data-p":a.dataP},e.ptm(`mask`)),[U(Fo,K({name:`p-dialog`,onEnter:a.onEnter,onAfterEnter:a.onAfterEnter,onBeforeLeave:a.onBeforeLeave,onLeave:a.onLeave,onAfterLeave:a.onAfterLeave,appear:``},e.ptm(`transition`)),{default:N(function(){return[e.visible?Yn((z(),B(`div`,K({key:0,ref:a.containerRef,class:e.cx(`root`),style:e.sx(`root`),role:`dialog`,"aria-labelledby":a.ariaLabelledById,"aria-modal":e.modal,"data-p":a.dataP},e.ptmi(`root`)),[e.$slots.container?L(e.$slots,`container`,{key:0,closeCallback:a.close,maximizeCallback:function(e){return a.maximize(e)},initDragCallback:a.initDrag}):(z(),B(R,{key:1},[e.showHeader?(z(),B(`div`,K({key:0,ref:a.headerContainerRef,class:e.cx(`header`),onMousedown:t[0]||=function(){return a.initDrag&&a.initDrag.apply(a,arguments)}},e.ptm(`header`)),[L(e.$slots,`header`,{class:k(e.cx(`title`))},function(){return[e.header?(z(),B(`span`,K({key:0,id:a.ariaLabelledById,class:e.cx(`title`)},e.ptm(`title`)),A(e.header),17,Yy)):G(``,!0)]}),H(`div`,K({class:e.cx(`headerActions`)},e.ptm(`headerActions`)),[e.maximizable?L(e.$slots,`maximizebutton`,{key:0,maximized:i.maximized,maximizeCallback:function(e){return a.maximize(e)}},function(){return[U(o,K({ref:a.maximizableRef,autofocus:i.focusableMax,class:e.cx(`pcMaximizeButton`),onClick:a.maximize,tabindex:e.maximizable?`0`:`-1`,unstyled:e.unstyled},e.maximizeButtonProps,{pt:e.ptm(`pcMaximizeButton`),"data-pc-group-section":`headericon`}),{icon:N(function(t){return[L(e.$slots,`maximizeicon`,{maximized:i.maximized},function(){return[(z(),V(li(a.maximizeIconComponent),K({class:[t.class,i.maximized?e.minimizeIcon:e.maximizeIcon]},e.ptm(`pcMaximizeButton`).icon),null,16,[`class`]))]})]}),_:3},16,[`autofocus`,`class`,`onClick`,`tabindex`,`unstyled`,`pt`])]}):G(``,!0),e.closable?L(e.$slots,`closebutton`,{key:1,closeCallback:a.close},function(){return[U(o,K({ref:a.closeButtonRef,autofocus:i.focusableClose,class:e.cx(`pcCloseButton`),onClick:a.close,"aria-label":a.closeAriaLabel,unstyled:e.unstyled},e.closeButtonProps,{pt:e.ptm(`pcCloseButton`),"data-pc-group-section":`headericon`}),{icon:N(function(t){return[L(e.$slots,`closeicon`,{},function(){return[(z(),V(li(e.closeIcon?`span`:`TimesIcon`),K({class:[e.closeIcon,t.class]},e.ptm(`pcCloseButton`).icon),null,16,[`class`]))]})]}),_:3},16,[`autofocus`,`class`,`onClick`,`aria-label`,`unstyled`,`pt`])]}):G(``,!0)],16)],16)):G(``,!0),H(`div`,K({ref:a.contentRef,class:[e.cx(`content`),e.contentClass],style:e.contentStyle,"data-p":a.dataP},Uy(Uy({},e.contentProps),e.ptm(`content`))),[L(e.$slots,`default`)],16,Xy),e.footer||e.$slots.footer?(z(),B(`div`,K({key:1,ref:a.footerContainerRef,class:e.cx(`footer`)},e.ptm(`footer`)),[L(e.$slots,`footer`,{},function(){return[W(A(e.footer),1)]})],16)):G(``,!0)],64))],16,Jy)),[[c,{disabled:!e.modal}]]):G(``,!0)]}),_:3},16,[`onEnter`,`onAfterEnter`,`onBeforeLeave`,`onLeave`,`onAfterLeave`])],16,qy)):G(``,!0)]}),_:3},8,[`appendTo`])}By.render=Zy;var Qy={name:`BaseInput`,extends:{name:`BaseEditableHolder`,extends:E_,emits:[`update:modelValue`,`value-change`],props:{modelValue:{type:null,default:void 0},defaultValue:{type:null,default:void 0},name:{type:String,default:void 0},invalid:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},formControl:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0},$pcForm:{default:void 0},$pcFormField:{default:void 0}},data:function(){return{d_value:this.defaultValue===void 0?this.modelValue:this.defaultValue}},watch:{modelValue:{deep:!0,handler:function(e){this.d_value=e}},defaultValue:function(e){this.d_value=e},$formName:{immediate:!0,handler:function(e){var t,n;this.formField=((t=this.$pcForm)==null||(n=t.register)==null?void 0:n.call(t,e,this.$formControl))||{}}},$formControl:{immediate:!0,handler:function(e){var t,n;this.formField=((t=this.$pcForm)==null||(n=t.register)==null?void 0:n.call(t,this.$formName,e))||{}}},$formDefaultValue:{immediate:!0,handler:function(e){this.d_value!==e&&(this.d_value=e)}},$formValue:{immediate:!1,handler:function(e){var t;(t=this.$pcForm)!=null&&t.getFieldState(this.$formName)&&e!==this.d_value&&(this.d_value=e)}}},formField:{},methods:{writeValue:function(e,t){var n,r;this.controlled&&(this.d_value=e,this.$emit(`update:modelValue`,e)),this.$emit(`value-change`,e),(n=(r=this.formField).onChange)==null||n.call(r,{originalEvent:t,value:e})},findNonEmpty:function(){return[...arguments].find(Pc)}},computed:{$filled:function(){return Pc(this.d_value)},$invalid:function(){var e,t;return!this.$formNovalidate&&this.findNonEmpty(this.invalid,(e=this.$pcFormField)==null||(e=e.$field)==null?void 0:e.invalid,(t=this.$pcForm)==null||(t=t.getFieldState(this.$formName))==null?void 0:t.invalid)},$formName:function(){return this.$formNovalidate?void 0:this.name||this.$formControl?.name},$formControl:function(){return this.formControl||this.$pcFormField?.formControl},$formNovalidate:function(){return this.$formControl?.novalidate},$formDefaultValue:function(){var e;return this.findNonEmpty(this.d_value,this.$pcFormField?.initialValue,(e=this.$pcForm)==null||(e=e.initialValues)==null?void 0:e[this.$formName])},$formValue:function(){var e,t;return this.findNonEmpty((e=this.$pcFormField)==null||(e=e.$field)==null?void 0:e.value,(t=this.$pcForm)==null||(t=t.getFieldState(this.$formName))==null?void 0:t.value)},controlled:function(){return this.$inProps.hasOwnProperty(`modelValue`)||!this.$inProps.hasOwnProperty(`modelValue`)&&!this.$inProps.hasOwnProperty(`defaultValue`)},filled:function(){return this.$filled}}},props:{size:{type:String,default:null},fluid:{type:Boolean,default:null},variant:{type:String,default:null}},inject:{$parentInstance:{default:void 0},$pcFluid:{default:void 0}},computed:{$variant:function(){return this.variant??(this.$primevue.config.inputStyle||this.$primevue.config.inputVariant)},$fluid:function(){return this.fluid??!!this.$pcFluid},hasFluid:function(){return this.$fluid}}},$y={name:`BaseInputText`,extends:Qy,style:ad.extend({name:`inputtext`,style:`
1155
+ .p-inputtext {
1156
+ font-family: inherit;
1157
+ font-feature-settings: inherit;
1158
+ font-size: 1rem;
1159
+ color: dt('inputtext.color');
1160
+ background: dt('inputtext.background');
1161
+ padding-block: dt('inputtext.padding.y');
1162
+ padding-inline: dt('inputtext.padding.x');
1163
+ border: 1px solid dt('inputtext.border.color');
1164
+ transition:
1165
+ background dt('inputtext.transition.duration'),
1166
+ color dt('inputtext.transition.duration'),
1167
+ border-color dt('inputtext.transition.duration'),
1168
+ outline-color dt('inputtext.transition.duration'),
1169
+ box-shadow dt('inputtext.transition.duration');
1170
+ appearance: none;
1171
+ border-radius: dt('inputtext.border.radius');
1172
+ outline-color: transparent;
1173
+ box-shadow: dt('inputtext.shadow');
1174
+ }
1175
+
1176
+ .p-inputtext:enabled:hover {
1177
+ border-color: dt('inputtext.hover.border.color');
1178
+ }
1179
+
1180
+ .p-inputtext:enabled:focus {
1181
+ border-color: dt('inputtext.focus.border.color');
1182
+ box-shadow: dt('inputtext.focus.ring.shadow');
1183
+ outline: dt('inputtext.focus.ring.width') dt('inputtext.focus.ring.style') dt('inputtext.focus.ring.color');
1184
+ outline-offset: dt('inputtext.focus.ring.offset');
1185
+ }
1186
+
1187
+ .p-inputtext.p-invalid {
1188
+ border-color: dt('inputtext.invalid.border.color');
1189
+ }
1190
+
1191
+ .p-inputtext.p-variant-filled {
1192
+ background: dt('inputtext.filled.background');
1193
+ }
1194
+
1195
+ .p-inputtext.p-variant-filled:enabled:hover {
1196
+ background: dt('inputtext.filled.hover.background');
1197
+ }
1198
+
1199
+ .p-inputtext.p-variant-filled:enabled:focus {
1200
+ background: dt('inputtext.filled.focus.background');
1201
+ }
1202
+
1203
+ .p-inputtext:disabled {
1204
+ opacity: 1;
1205
+ background: dt('inputtext.disabled.background');
1206
+ color: dt('inputtext.disabled.color');
1207
+ }
1208
+
1209
+ .p-inputtext::placeholder {
1210
+ color: dt('inputtext.placeholder.color');
1211
+ }
1212
+
1213
+ .p-inputtext.p-invalid::placeholder {
1214
+ color: dt('inputtext.invalid.placeholder.color');
1215
+ }
1216
+
1217
+ .p-inputtext-sm {
1218
+ font-size: dt('inputtext.sm.font.size');
1219
+ padding-block: dt('inputtext.sm.padding.y');
1220
+ padding-inline: dt('inputtext.sm.padding.x');
1221
+ }
1222
+
1223
+ .p-inputtext-lg {
1224
+ font-size: dt('inputtext.lg.font.size');
1225
+ padding-block: dt('inputtext.lg.padding.y');
1226
+ padding-inline: dt('inputtext.lg.padding.x');
1227
+ }
1228
+
1229
+ .p-inputtext-fluid {
1230
+ width: 100%;
1231
+ }
1232
+ `,classes:{root:function(e){var t=e.instance,n=e.props;return[`p-inputtext p-component`,{"p-filled":t.$filled,"p-inputtext-sm p-inputfield-sm":n.size===`small`,"p-inputtext-lg p-inputfield-lg":n.size===`large`,"p-invalid":t.$invalid,"p-variant-filled":t.$variant===`filled`,"p-inputtext-fluid":t.$fluid}]}}}),provide:function(){return{$pcInputText:this,$parentInstance:this}}};function eb(e){"@babel/helpers - typeof";return eb=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},eb(e)}function tb(e,t,n){return(t=nb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nb(e){var t=rb(e,`string`);return eb(t)==`symbol`?t:t+``}function rb(e,t){if(eb(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(eb(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var ib={name:`InputText`,extends:$y,inheritAttrs:!1,methods:{onInput:function(e){this.writeValue(e.target.value,e)}},computed:{attrs:function(){return K(this.ptmi(`root`,{context:{filled:this.$filled,disabled:this.disabled}}),this.formField)},dataP:function(){return tl(tb({invalid:this.$invalid,fluid:this.$fluid,filled:this.$variant===`filled`},this.size,this.size))}}},ab=[`value`,`name`,`disabled`,`aria-invalid`,`data-p`];function ob(e,t,n,r,i,a){return z(),B(`input`,K({type:`text`,class:e.cx(`root`),value:e.d_value,name:e.name,disabled:e.disabled,"aria-invalid":e.$invalid||void 0,"data-p":a.dataP,onInput:t[0]||=function(){return a.onInput&&a.onInput.apply(a,arguments)}},a.attrs),null,16,ab)}ib.render=ob;var sb={name:`BlankIcon`,extends:Ev};function cb(e){return fb(e)||db(e)||ub(e)||lb()}function lb(){throw TypeError(`Invalid attempt to spread non-iterable instance.
1233
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ub(e,t){if(e){if(typeof e==`string`)return pb(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pb(e,t):void 0}}function db(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function fb(e){if(Array.isArray(e))return pb(e)}function pb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function mb(e,t,n,r,i,a){return z(),B(`svg`,K({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),cb(t[0]||=[H(`rect`,{width:`1`,height:`1`,fill:`currentColor`,"fill-opacity":`0`},null,-1)]),16)}sb.render=mb;var hb={name:`CheckIcon`,extends:Ev};function gb(e){return bb(e)||yb(e)||vb(e)||_b()}function _b(){throw TypeError(`Invalid attempt to spread non-iterable instance.
1234
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vb(e,t){if(e){if(typeof e==`string`)return xb(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xb(e,t):void 0}}function yb(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function bb(e){if(Array.isArray(e))return xb(e)}function xb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Sb(e,t,n,r,i,a){return z(),B(`svg`,K({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),gb(t[0]||=[H(`path`,{d:`M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z`,fill:`currentColor`},null,-1)]),16)}hb.render=Sb;var Cb={name:`ChevronDownIcon`,extends:Ev};function wb(e){return Ob(e)||Db(e)||Eb(e)||Tb()}function Tb(){throw TypeError(`Invalid attempt to spread non-iterable instance.
1235
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Eb(e,t){if(e){if(typeof e==`string`)return kb(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kb(e,t):void 0}}function Db(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Ob(e){if(Array.isArray(e))return kb(e)}function kb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ab(e,t,n,r,i,a){return z(),B(`svg`,K({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),wb(t[0]||=[H(`path`,{d:`M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z`,fill:`currentColor`},null,-1)]),16)}Cb.render=Ab;var jb={name:`SearchIcon`,extends:Ev};function Mb(e){return Ib(e)||Fb(e)||Pb(e)||Nb()}function Nb(){throw TypeError(`Invalid attempt to spread non-iterable instance.
1236
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pb(e,t){if(e){if(typeof e==`string`)return Lb(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lb(e,t):void 0}}function Fb(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Ib(e){if(Array.isArray(e))return Lb(e)}function Lb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Rb(e,t,n,r,i,a){return z(),B(`svg`,K({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),Mb(t[0]||=[H(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z`,fill:`currentColor`},null,-1)]),16)}jb.render=Rb;var zb={name:`IconField`,extends:{name:`BaseIconField`,extends:E_,style:ad.extend({name:`iconfield`,style:`
1237
+ .p-iconfield {
1238
+ position: relative;
1239
+ display: block;
1240
+ }
1241
+
1242
+ .p-inputicon {
1243
+ position: absolute;
1244
+ top: 50%;
1245
+ margin-top: calc(-1 * (dt('icon.size') / 2));
1246
+ color: dt('iconfield.icon.color');
1247
+ line-height: 1;
1248
+ z-index: 1;
1249
+ }
1250
+
1251
+ .p-iconfield .p-inputicon:first-child {
1252
+ inset-inline-start: dt('form.field.padding.x');
1253
+ }
1254
+
1255
+ .p-iconfield .p-inputicon:last-child {
1256
+ inset-inline-end: dt('form.field.padding.x');
1257
+ }
1258
+
1259
+ .p-iconfield .p-inputtext:not(:first-child),
1260
+ .p-iconfield .p-inputwrapper:not(:first-child) .p-inputtext {
1261
+ padding-inline-start: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
1262
+ }
1263
+
1264
+ .p-iconfield .p-inputtext:not(:last-child) {
1265
+ padding-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
1266
+ }
1267
+
1268
+ .p-iconfield:has(.p-inputfield-sm) .p-inputicon {
1269
+ font-size: dt('form.field.sm.font.size');
1270
+ width: dt('form.field.sm.font.size');
1271
+ height: dt('form.field.sm.font.size');
1272
+ margin-top: calc(-1 * (dt('form.field.sm.font.size') / 2));
1273
+ }
1274
+
1275
+ .p-iconfield:has(.p-inputfield-lg) .p-inputicon {
1276
+ font-size: dt('form.field.lg.font.size');
1277
+ width: dt('form.field.lg.font.size');
1278
+ height: dt('form.field.lg.font.size');
1279
+ margin-top: calc(-1 * (dt('form.field.lg.font.size') / 2));
1280
+ }
1281
+ `,classes:{root:`p-iconfield`}}),provide:function(){return{$pcIconField:this,$parentInstance:this}}},inheritAttrs:!1};function Bb(e,t,n,r,i,a){return z(),B(`div`,K({class:e.cx(`root`)},e.ptmi(`root`)),[L(e.$slots,`default`)],16)}zb.render=Bb;var Vb={name:`InputIcon`,extends:{name:`BaseInputIcon`,extends:E_,style:ad.extend({name:`inputicon`,classes:{root:`p-inputicon`}}),props:{class:null},provide:function(){return{$pcInputIcon:this,$parentInstance:this}}},inheritAttrs:!1,computed:{containerClass:function(){return[this.cx(`root`),this.class]}}};function Hb(e,t,n,r,i,a){return z(),B(`span`,K({class:a.containerClass},e.ptmi(`root`),{"aria-hidden":`true`}),[L(e.$slots,`default`)],16)}Vb.render=Hb;var Ub=ad.extend({name:`virtualscroller`,css:`
1282
+ .p-virtualscroller {
1283
+ position: relative;
1284
+ overflow: auto;
1285
+ contain: strict;
1286
+ transform: translateZ(0);
1287
+ will-change: scroll-position;
1288
+ outline: 0 none;
1289
+ }
1290
+
1291
+ .p-virtualscroller-content {
1292
+ position: absolute;
1293
+ top: 0;
1294
+ left: 0;
1295
+ min-height: 100%;
1296
+ min-width: 100%;
1297
+ will-change: transform;
1298
+ }
1299
+
1300
+ .p-virtualscroller-spacer {
1301
+ position: absolute;
1302
+ top: 0;
1303
+ left: 0;
1304
+ height: 1px;
1305
+ width: 1px;
1306
+ transform-origin: 0 0;
1307
+ pointer-events: none;
1308
+ }
1309
+
1310
+ .p-virtualscroller-loader {
1311
+ position: sticky;
1312
+ top: 0;
1313
+ left: 0;
1314
+ width: 100%;
1315
+ height: 100%;
1316
+ }
1317
+
1318
+ .p-virtualscroller-loader-mask {
1319
+ display: flex;
1320
+ align-items: center;
1321
+ justify-content: center;
1322
+ }
1323
+
1324
+ .p-virtualscroller-horizontal > .p-virtualscroller-content {
1325
+ display: flex;
1326
+ }
1327
+
1328
+ .p-virtualscroller-inline .p-virtualscroller-content {
1329
+ position: static;
1330
+ }
1331
+
1332
+ .p-virtualscroller .p-virtualscroller-loading {
1333
+ transform: none !important;
1334
+ min-height: 0;
1335
+ position: sticky;
1336
+ inset-block-start: 0;
1337
+ inset-inline-start: 0;
1338
+ }
1339
+ `,style:`
1340
+ .p-virtualscroller-loader {
1341
+ background: dt('virtualscroller.loader.mask.background');
1342
+ color: dt('virtualscroller.loader.mask.color');
1343
+ }
1344
+
1345
+ .p-virtualscroller-loading-icon {
1346
+ font-size: dt('virtualscroller.loader.icon.size');
1347
+ width: dt('virtualscroller.loader.icon.size');
1348
+ height: dt('virtualscroller.loader.icon.size');
1349
+ }
1350
+ `}),Wb={name:`BaseVirtualScroller`,extends:E_,props:{id:{type:String,default:null},style:null,class:null,items:{type:Array,default:null},itemSize:{type:[Number,Array],default:0},scrollHeight:null,scrollWidth:null,orientation:{type:String,default:`vertical`},numToleratedItems:{type:Number,default:null},delay:{type:Number,default:0},resizeDelay:{type:Number,default:10},lazy:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loaderDisabled:{type:Boolean,default:!1},columns:{type:Array,default:null},loading:{type:Boolean,default:!1},showSpacer:{type:Boolean,default:!0},showLoader:{type:Boolean,default:!1},tabindex:{type:Number,default:0},inline:{type:Boolean,default:!1},step:{type:Number,default:0},appendOnly:{type:Boolean,default:!1},autoSize:{type:Boolean,default:!1}},style:Ub,provide:function(){return{$pcVirtualScroller:this,$parentInstance:this}},beforeMount:function(){var e;Ub.loadCSS({nonce:(e=this.$primevueConfig)==null||(e=e.csp)==null?void 0:e.nonce})}};function Gb(e){"@babel/helpers - typeof";return Gb=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Gb(e)}function Kb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Kb(Object(n),!0).forEach(function(t){Jb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Jb(e,t,n){return(t=Yb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yb(e){var t=Xb(e,`string`);return Gb(t)==`symbol`?t:t+``}function Xb(e,t){if(Gb(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gb(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Zb={name:`VirtualScroller`,extends:Wb,inheritAttrs:!1,emits:[`update:numToleratedItems`,`scroll`,`scroll-index-change`,`lazy-load`],data:function(){var e=this.isBoth();return{first:e?{rows:0,cols:0}:0,last:e?{rows:0,cols:0}:0,page:e?{rows:0,cols:0}:0,numItemsInViewport:e?{rows:0,cols:0}:0,lastScrollPos:e?{top:0,left:0}:0,d_numToleratedItems:this.numToleratedItems,d_loading:this.loading,loaderArr:[],spacerStyle:{},contentStyle:{}}},element:null,content:null,lastScrollPos:null,scrollTimeout:null,resizeTimeout:null,defaultWidth:0,defaultHeight:0,defaultContentWidth:0,defaultContentHeight:0,isRangeChanged:!1,lazyLoadState:{},resizeListener:null,resizeObserver:null,initialized:!1,watch:{numToleratedItems:function(e){this.d_numToleratedItems=e},loading:function(e,t){this.lazy&&e!==t&&e!==this.d_loading&&(this.d_loading=e)},items:{handler:function(e,t){(!t||t.length!==(e||[]).length)&&(this.init(),this.calculateAutoSize())},deep:!0},itemSize:function(){this.init(),this.calculateAutoSize()},orientation:function(){this.lastScrollPos=this.isBoth()?{top:0,left:0}:0},scrollHeight:function(){this.init(),this.calculateAutoSize()},scrollWidth:function(){this.init(),this.calculateAutoSize()}},mounted:function(){this.viewInit(),this.lastScrollPos=this.isBoth()?{top:0,left:0}:0,this.lazyLoadState=this.lazyLoadState||{}},updated:function(){!this.initialized&&this.viewInit()},unmounted:function(){this.unbindResizeListener(),this.initialized=!1},methods:{viewInit:function(){Hl(this.element)&&(this.setContentEl(this.content),this.init(),this.calculateAutoSize(),this.defaultWidth=Rl(this.element),this.defaultHeight=jl(this.element),this.defaultContentWidth=Rl(this.content),this.defaultContentHeight=jl(this.content),this.initialized=!0),this.element&&this.bindResizeListener()},init:function(){this.disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize())},isVertical:function(){return this.orientation===`vertical`},isHorizontal:function(){return this.orientation===`horizontal`},isBoth:function(){return this.orientation===`both`},scrollTo:function(e){this.element&&this.element.scrollTo(e)},scrollToIndex:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`auto`,r=this.isBoth(),i=this.isHorizontal();if(r?e.every(function(e){return e>-1}):e>-1){var a=this.first,o=this.element,s=o.scrollTop,c=s===void 0?0:s,l=o.scrollLeft,u=l===void 0?0:l,d=this.calculateNumItems().numToleratedItems,f=this.getContentPosition(),p=this.itemSize,m=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e<=(arguments.length>1?arguments[1]:void 0)?0:e},h=function(e,t,n){return e*t+n},g=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return t.scrollTo({left:e,top:r,behavior:n})},_=r?{rows:0,cols:0}:0,v=!1,y=!1;r?(_={rows:m(e[0],d[0]),cols:m(e[1],d[1])},g(h(_.cols,p[1],f.left),h(_.rows,p[0],f.top)),y=this.lastScrollPos.top!==c||this.lastScrollPos.left!==u,v=_.rows!==a.rows||_.cols!==a.cols):(_=m(e,d),i?g(h(_,p,f.left),c):g(u,h(_,p,f.top)),y=this.lastScrollPos!==(i?u:c),v=_!==a),this.isRangeChanged=v,y&&(this.first=_)}},scrollInView:function(e,t){var n=this,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`auto`;if(t){var i=this.isBoth(),a=this.isHorizontal();if(i?e.every(function(e){return e>-1}):e>-1){var o=this.getRenderedRange(),s=o.first,c=o.viewport,l=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return n.scrollTo({left:e,top:t,behavior:r})},u=t===`to-start`,d=t===`to-end`;if(u){if(i)c.first.rows-s.rows>e[0]?l(c.first.cols*this.itemSize[1],(c.first.rows-1)*this.itemSize[0]):c.first.cols-s.cols>e[1]&&l((c.first.cols-1)*this.itemSize[1],c.first.rows*this.itemSize[0]);else if(c.first-s>e){var f=(c.first-1)*this.itemSize;a?l(f,0):l(0,f)}}else if(d){if(i)c.last.rows-s.rows<=e[0]+1?l(c.first.cols*this.itemSize[1],(c.first.rows+1)*this.itemSize[0]):c.last.cols-s.cols<=e[1]+1&&l((c.first.cols+1)*this.itemSize[1],c.first.rows*this.itemSize[0]);else if(c.last-s<=e+1){var p=(c.first+1)*this.itemSize;a?l(p,0):l(0,p)}}}}else this.scrollToIndex(e,r)},getRenderedRange:function(){var e=function(e,t){return Math.floor(e/(t||e))},t=this.first,n=0;if(this.element){var r=this.isBoth(),i=this.isHorizontal(),a=this.element,o=a.scrollTop,s=a.scrollLeft;r?(t={rows:e(o,this.itemSize[0]),cols:e(s,this.itemSize[1])},n={rows:t.rows+this.numItemsInViewport.rows,cols:t.cols+this.numItemsInViewport.cols}):(t=e(i?s:o,this.itemSize),n=t+this.numItemsInViewport)}return{first:this.first,last:this.last,viewport:{first:t,last:n}}},calculateNumItems:function(){var e=this.isBoth(),t=this.isHorizontal(),n=this.itemSize,r=this.getContentPosition(),i=this.element?this.element.offsetWidth-r.left:0,a=this.element?this.element.offsetHeight-r.top:0,o=function(e,t){return Math.ceil(e/(t||e))},s=function(e){return Math.ceil(e/2)},c=e?{rows:o(a,n[0]),cols:o(i,n[1])}:o(t?i:a,n);return{numItemsInViewport:c,numToleratedItems:this.d_numToleratedItems||(e?[s(c.rows),s(c.cols)]:s(c))}},calculateOptions:function(){var e=this,t=this.isBoth(),n=this.first,r=this.calculateNumItems(),i=r.numItemsInViewport,a=r.numToleratedItems,o=function(t,n,r){var i=arguments.length>3&&arguments[3]!==void 0&&arguments[3];return e.getLast(t+n+(t<r?2:3)*r,i)},s=t?{rows:o(n.rows,i.rows,a[0]),cols:o(n.cols,i.cols,a[1],!0)}:o(n,i,a);this.last=s,this.numItemsInViewport=i,this.d_numToleratedItems=a,this.$emit(`update:numToleratedItems`,this.d_numToleratedItems),this.showLoader&&(this.loaderArr=t?Array.from({length:i.rows}).map(function(){return Array.from({length:i.cols})}):Array.from({length:i})),this.lazy&&Promise.resolve().then(function(){e.lazyLoadState={first:e.step?t?{rows:0,cols:n.cols}:0:n,last:Math.min(e.step?e.step:s,e.items?.length||0)},e.$emit(`lazy-load`,e.lazyLoadState)})},calculateAutoSize:function(){var e=this;this.autoSize&&!this.d_loading&&Promise.resolve().then(function(){if(e.content){var t=e.isBoth(),n=e.isHorizontal(),r=e.isVertical();e.content.style.minHeight=e.content.style.minWidth=`auto`,e.content.style.position=`relative`,e.element.style.contain=`none`;var i=[Rl(e.element),jl(e.element)],a=i[0],o=i[1];(t||n)&&(e.element.style.width=a<e.defaultWidth?a+`px`:e.scrollWidth||e.defaultWidth+`px`),(t||r)&&(e.element.style.height=o<e.defaultHeight?o+`px`:e.scrollHeight||e.defaultHeight+`px`),e.content.style.minHeight=e.content.style.minWidth=``,e.content.style.position=``,e.element.style.contain=``}})},getLast:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return this.items?Math.min(t?(this.columns||this.items[0])?.length||0:this.items?.length||0,e):0},getContentPosition:function(){if(this.content){var e=getComputedStyle(this.content),t=parseFloat(e.paddingLeft)+Math.max(parseFloat(e.left)||0,0),n=parseFloat(e.paddingRight)+Math.max(parseFloat(e.right)||0,0),r=parseFloat(e.paddingTop)+Math.max(parseFloat(e.top)||0,0),i=parseFloat(e.paddingBottom)+Math.max(parseFloat(e.bottom)||0,0);return{left:t,right:n,top:r,bottom:i,x:t+n,y:r+i}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}},setSize:function(){var e=this;if(this.element){var t=this.isBoth(),n=this.isHorizontal(),r=this.element.parentElement,i=this.scrollWidth||`${this.element.offsetWidth||r.offsetWidth}px`,a=this.scrollHeight||`${this.element.offsetHeight||r.offsetHeight}px`,o=function(t,n){return e.element.style[t]=n};t||n?(o(`height`,a),o(`width`,i)):o(`height`,a)}},setSpacerSize:function(){var e=this,t=this.items;if(t){var n=this.isBoth(),r=this.isHorizontal(),i=this.getContentPosition(),a=function(t,n,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return e.spacerStyle=qb(qb({},e.spacerStyle),Jb({},`${t}`,(n||[]).length*r+i+`px`))};n?(a(`height`,t,this.itemSize[0],i.y),a(`width`,this.columns||t[1],this.itemSize[1],i.x)):r?a(`width`,this.columns||t,this.itemSize,i.x):a(`height`,t,this.itemSize,i.y)}},setContentPosition:function(e){var t=this;if(this.content&&!this.appendOnly){var n=this.isBoth(),r=this.isHorizontal(),i=e?e.first:this.first,a=function(e,t){return e*t},o=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return t.contentStyle=qb(qb({},t.contentStyle),{transform:`translate3d(${e}px, ${n}px, 0)`})};if(n)o(a(i.cols,this.itemSize[1]),a(i.rows,this.itemSize[0]));else{var s=a(i,this.itemSize);r?o(s,0):o(0,s)}}},onScrollPositionChange:function(e){var t=this,n=e.target,r=this.isBoth(),i=this.isHorizontal(),a=this.getContentPosition(),o=function(e,t){return e?e>t?e-t:e:0},s=function(e,t){return Math.floor(e/(t||e))},c=function(e,t,n,r,i,a){return e<=i?i:a?n-r-i:t+i-1},l=function(e,n,r,i,a,o,s,c){if(e<=o)return 0;var l=Math.max(0,s?e<n?r:e-o:e>n?r:e-2*o),u=t.getLast(l,c);return l>u?u-a:l},u=function(e,n,r,i,a,o){var s=n+i+2*a;return e>=a&&(s+=a+1),t.getLast(s,o)},d=o(n.scrollTop,a.top),f=o(n.scrollLeft,a.left),p=r?{rows:0,cols:0}:0,m=this.last,h=!1,g=this.lastScrollPos;if(r){var _=this.lastScrollPos.top<=d,v=this.lastScrollPos.left<=f;if(!this.appendOnly||this.appendOnly&&(_||v)){var y={rows:s(d,this.itemSize[0]),cols:s(f,this.itemSize[1])},b={rows:c(y.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],_),cols:c(y.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],v)};p={rows:l(y.rows,b.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],_),cols:l(y.cols,b.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],v,!0)},m={rows:u(y.rows,p.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:u(y.cols,p.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},h=p.rows!==this.first.rows||m.rows!==this.last.rows||p.cols!==this.first.cols||m.cols!==this.last.cols||this.isRangeChanged,g={top:d,left:f}}}else{var x=i?f:d,S=this.lastScrollPos<=x;if(!this.appendOnly||this.appendOnly&&S){var C=s(x,this.itemSize);p=l(C,c(C,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,S),this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,S),m=u(C,p,this.last,this.numItemsInViewport,this.d_numToleratedItems),h=p!==this.first||m!==this.last||this.isRangeChanged,g=x}}return{first:p,last:m,isRangeChanged:h,scrollPos:g}},onScrollChange:function(e){var t=this.onScrollPositionChange(e),n=t.first,r=t.last,i=t.isRangeChanged,a=t.scrollPos;if(i){var o={first:n,last:r};if(this.setContentPosition(o),this.first=n,this.last=r,this.lastScrollPos=a,this.$emit(`scroll-index-change`,o),this.lazy&&this.isPageChanged(n)){var s={first:this.step?Math.min(this.getPageByFirst(n)*this.step,(this.items?.length||0)-this.step):n,last:Math.min(this.step?(this.getPageByFirst(n)+1)*this.step:r,this.items?.length||0)};(this.lazyLoadState.first!==s.first||this.lazyLoadState.last!==s.last)&&this.$emit(`lazy-load`,s),this.lazyLoadState=s}}},onScroll:function(e){var t=this;this.$emit(`scroll`,e),this.delay?(this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.isPageChanged()&&(!this.d_loading&&this.showLoader&&(this.onScrollPositionChange(e).isRangeChanged||this.step&&this.isPageChanged())&&(this.d_loading=!0),this.scrollTimeout=setTimeout(function(){t.onScrollChange(e),t.d_loading&&t.showLoader&&(!t.lazy||t.loading===void 0)&&(t.d_loading=!1,t.page=t.getPageByFirst())},this.delay))):this.onScrollChange(e)},onResize:function(){var e=this;this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){if(Hl(e.element)){var t=e.isBoth(),n=e.isVertical(),r=e.isHorizontal(),i=[Rl(e.element),jl(e.element)],a=i[0],o=i[1],s=a!==e.defaultWidth,c=o!==e.defaultHeight;(t?s||c:r?s:n&&c)&&(e.d_numToleratedItems=e.numToleratedItems,e.defaultWidth=a,e.defaultHeight=o,e.defaultContentWidth=Rl(e.content),e.defaultContentHeight=jl(e.content),e.init())}},this.resizeDelay)},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=this.onResize.bind(this),window.addEventListener(`resize`,this.resizeListener),window.addEventListener(`orientationchange`,this.resizeListener),this.resizeObserver=new ResizeObserver(function(){e.onResize()}),this.resizeObserver.observe(this.element))},unbindResizeListener:function(){this.resizeListener&&=(window.removeEventListener(`resize`,this.resizeListener),window.removeEventListener(`orientationchange`,this.resizeListener),null),this.resizeObserver&&=(this.resizeObserver.disconnect(),null)},getOptions:function(e){var t=(this.items||[]).length,n=this.isBoth()?this.first.rows+e:this.first+e;return{index:n,count:t,first:n===0,last:n===t-1,even:n%2==0,odd:n%2!=0}},getLoaderOptions:function(e,t){var n=this.loaderArr.length;return qb({index:e,count:n,first:e===0,last:e===n-1,even:e%2==0,odd:e%2!=0},t)},getPageByFirst:function(e){return Math.floor(((e??this.first)+this.d_numToleratedItems*4)/(this.step||1))},isPageChanged:function(e){return this.step&&!this.lazy?this.page!==this.getPageByFirst(e??this.first):!0},setContentEl:function(e){this.content=e||this.content||El(this.element,`[data-pc-section="content"]`)},elementRef:function(e){this.element=e},contentRef:function(e){this.content=e}},computed:{containerClass:function(){return[`p-virtualscroller`,this.class,{"p-virtualscroller-inline":this.inline,"p-virtualscroller-both p-both-scroll":this.isBoth(),"p-virtualscroller-horizontal p-horizontal-scroll":this.isHorizontal()}]},contentClass:function(){return[`p-virtualscroller-content`,{"p-virtualscroller-loading":this.d_loading}]},loaderClass:function(){return[`p-virtualscroller-loader`,{"p-virtualscroller-loader-mask":!this.$slots.loader}]},loadedItems:function(){var e=this;return this.items&&!this.d_loading?this.isBoth()?this.items.slice(this.appendOnly?0:this.first.rows,this.last.rows).map(function(t){return e.columns?t:t.slice(e.appendOnly?0:e.first.cols,e.last.cols)}):this.isHorizontal()&&this.columns?this.items:this.items.slice(this.appendOnly?0:this.first,this.last):[]},loadedRows:function(){return this.d_loading?this.loaderDisabled?this.loaderArr:[]:this.loadedItems},loadedColumns:function(){if(this.columns){var e=this.isBoth(),t=this.isHorizontal();if(e||t)return this.d_loading&&this.loaderDisabled?e?this.loaderArr[0]:this.loaderArr:this.columns.slice(e?this.first.cols:this.first,e?this.last.cols:this.last)}return this.columns}},components:{SpinnerIcon:Zv}},Qb=[`tabindex`];function $b(e,t,n,r,i,a){var o=F(`SpinnerIcon`);return e.disabled?(z(),B(R,{key:1},[L(e.$slots,`default`),L(e.$slots,`content`,{items:e.items,rows:e.items,columns:a.loadedColumns})],64)):(z(),B(`div`,K({key:0,ref:a.elementRef,class:a.containerClass,tabindex:e.tabindex,style:e.style,onScroll:t[0]||=function(){return a.onScroll&&a.onScroll.apply(a,arguments)}},e.ptmi(`root`)),[L(e.$slots,`content`,{styleClass:a.contentClass,items:a.loadedItems,getItemOptions:a.getOptions,loading:i.d_loading,getLoaderOptions:a.getLoaderOptions,itemSize:e.itemSize,rows:a.loadedRows,columns:a.loadedColumns,contentRef:a.contentRef,spacerStyle:i.spacerStyle,contentStyle:i.contentStyle,vertical:a.isVertical(),horizontal:a.isHorizontal(),both:a.isBoth()},function(){return[H(`div`,K({ref:a.contentRef,class:a.contentClass,style:i.contentStyle},e.ptm(`content`)),[(z(!0),B(R,null,I(a.loadedItems,function(t,n){return L(e.$slots,`item`,{key:n,item:t,options:a.getOptions(n)})}),128))],16)]}),e.showSpacer?(z(),B(`div`,K({key:0,class:`p-virtualscroller-spacer`,style:i.spacerStyle},e.ptm(`spacer`)),null,16)):G(``,!0),!e.loaderDisabled&&e.showLoader&&i.d_loading?(z(),B(`div`,K({key:1,class:a.loaderClass},e.ptm(`loader`)),[e.$slots&&e.$slots.loader?(z(!0),B(R,{key:0},I(i.loaderArr,function(t,n){return L(e.$slots,`loader`,{key:n,options:a.getLoaderOptions(n,a.isBoth()&&{numCols:e.d_numItemsInViewport.cols})})}),128)):G(``,!0),L(e.$slots,`loadingicon`,{},function(){return[U(o,K({spin:``,class:`p-virtualscroller-loading-icon`},e.ptm(`loadingIcon`)),null,16)]})],16)):G(``,!0)],16,Qb))}Zb.render=$b;var ex=ad.extend({name:`select`,style:`
1351
+ .p-select {
1352
+ display: inline-flex;
1353
+ cursor: pointer;
1354
+ position: relative;
1355
+ user-select: none;
1356
+ background: dt('select.background');
1357
+ border: 1px solid dt('select.border.color');
1358
+ transition:
1359
+ background dt('select.transition.duration'),
1360
+ color dt('select.transition.duration'),
1361
+ border-color dt('select.transition.duration'),
1362
+ outline-color dt('select.transition.duration'),
1363
+ box-shadow dt('select.transition.duration');
1364
+ border-radius: dt('select.border.radius');
1365
+ outline-color: transparent;
1366
+ box-shadow: dt('select.shadow');
1367
+ }
1368
+
1369
+ .p-select:not(.p-disabled):hover {
1370
+ border-color: dt('select.hover.border.color');
1371
+ }
1372
+
1373
+ .p-select:not(.p-disabled).p-focus {
1374
+ border-color: dt('select.focus.border.color');
1375
+ box-shadow: dt('select.focus.ring.shadow');
1376
+ outline: dt('select.focus.ring.width') dt('select.focus.ring.style') dt('select.focus.ring.color');
1377
+ outline-offset: dt('select.focus.ring.offset');
1378
+ }
1379
+
1380
+ .p-select.p-variant-filled {
1381
+ background: dt('select.filled.background');
1382
+ }
1383
+
1384
+ .p-select.p-variant-filled:not(.p-disabled):hover {
1385
+ background: dt('select.filled.hover.background');
1386
+ }
1387
+
1388
+ .p-select.p-variant-filled:not(.p-disabled).p-focus {
1389
+ background: dt('select.filled.focus.background');
1390
+ }
1391
+
1392
+ .p-select.p-invalid {
1393
+ border-color: dt('select.invalid.border.color');
1394
+ }
1395
+
1396
+ .p-select.p-disabled {
1397
+ opacity: 1;
1398
+ background: dt('select.disabled.background');
1399
+ }
1400
+
1401
+ .p-select-clear-icon {
1402
+ align-self: center;
1403
+ color: dt('select.clear.icon.color');
1404
+ inset-inline-end: dt('select.dropdown.width');
1405
+ }
1406
+
1407
+ .p-select-dropdown {
1408
+ display: flex;
1409
+ align-items: center;
1410
+ justify-content: center;
1411
+ flex-shrink: 0;
1412
+ background: transparent;
1413
+ color: dt('select.dropdown.color');
1414
+ width: dt('select.dropdown.width');
1415
+ border-start-end-radius: dt('select.border.radius');
1416
+ border-end-end-radius: dt('select.border.radius');
1417
+ }
1418
+
1419
+ .p-select-label {
1420
+ display: block;
1421
+ white-space: nowrap;
1422
+ overflow: hidden;
1423
+ flex: 1 1 auto;
1424
+ width: 1%;
1425
+ padding: dt('select.padding.y') dt('select.padding.x');
1426
+ text-overflow: ellipsis;
1427
+ cursor: pointer;
1428
+ color: dt('select.color');
1429
+ background: transparent;
1430
+ border: 0 none;
1431
+ outline: 0 none;
1432
+ font-size: 1rem;
1433
+ }
1434
+
1435
+ .p-select-label.p-placeholder {
1436
+ color: dt('select.placeholder.color');
1437
+ }
1438
+
1439
+ .p-select.p-invalid .p-select-label.p-placeholder {
1440
+ color: dt('select.invalid.placeholder.color');
1441
+ }
1442
+
1443
+ .p-select.p-disabled .p-select-label {
1444
+ color: dt('select.disabled.color');
1445
+ }
1446
+
1447
+ .p-select-label-empty {
1448
+ overflow: hidden;
1449
+ opacity: 0;
1450
+ }
1451
+
1452
+ input.p-select-label {
1453
+ cursor: default;
1454
+ }
1455
+
1456
+ .p-select-overlay {
1457
+ position: absolute;
1458
+ top: 0;
1459
+ left: 0;
1460
+ background: dt('select.overlay.background');
1461
+ color: dt('select.overlay.color');
1462
+ border: 1px solid dt('select.overlay.border.color');
1463
+ border-radius: dt('select.overlay.border.radius');
1464
+ box-shadow: dt('select.overlay.shadow');
1465
+ min-width: 100%;
1466
+ transform-origin: inherit;
1467
+ will-change: transform;
1468
+ }
1469
+
1470
+ .p-select-header {
1471
+ padding: dt('select.list.header.padding');
1472
+ }
1473
+
1474
+ .p-select-filter {
1475
+ width: 100%;
1476
+ }
1477
+
1478
+ .p-select-list-container {
1479
+ overflow: auto;
1480
+ }
1481
+
1482
+ .p-select-option-group {
1483
+ cursor: auto;
1484
+ margin: 0;
1485
+ padding: dt('select.option.group.padding');
1486
+ background: dt('select.option.group.background');
1487
+ color: dt('select.option.group.color');
1488
+ font-weight: dt('select.option.group.font.weight');
1489
+ }
1490
+
1491
+ .p-select-list {
1492
+ margin: 0;
1493
+ padding: 0;
1494
+ list-style-type: none;
1495
+ padding: dt('select.list.padding');
1496
+ gap: dt('select.list.gap');
1497
+ display: flex;
1498
+ flex-direction: column;
1499
+ }
1500
+
1501
+ .p-select-option {
1502
+ cursor: pointer;
1503
+ font-weight: normal;
1504
+ white-space: nowrap;
1505
+ position: relative;
1506
+ overflow: hidden;
1507
+ display: flex;
1508
+ align-items: center;
1509
+ padding: dt('select.option.padding');
1510
+ border: 0 none;
1511
+ color: dt('select.option.color');
1512
+ background: transparent;
1513
+ transition:
1514
+ background dt('select.transition.duration'),
1515
+ color dt('select.transition.duration'),
1516
+ border-color dt('select.transition.duration'),
1517
+ box-shadow dt('select.transition.duration'),
1518
+ outline-color dt('select.transition.duration');
1519
+ border-radius: dt('select.option.border.radius');
1520
+ }
1521
+
1522
+ .p-select-option:not(.p-select-option-selected):not(.p-disabled).p-focus {
1523
+ background: dt('select.option.focus.background');
1524
+ color: dt('select.option.focus.color');
1525
+ }
1526
+
1527
+ .p-select-option:not(.p-select-option-selected):not(.p-disabled):hover {
1528
+ background: dt('select.option.focus.background');
1529
+ color: dt('select.option.focus.color');
1530
+ }
1531
+
1532
+ .p-select-option.p-select-option-selected {
1533
+ background: dt('select.option.selected.background');
1534
+ color: dt('select.option.selected.color');
1535
+ }
1536
+
1537
+ .p-select-option.p-select-option-selected.p-focus {
1538
+ background: dt('select.option.selected.focus.background');
1539
+ color: dt('select.option.selected.focus.color');
1540
+ }
1541
+
1542
+ .p-select-option-blank-icon {
1543
+ flex-shrink: 0;
1544
+ }
1545
+
1546
+ .p-select-option-check-icon {
1547
+ position: relative;
1548
+ flex-shrink: 0;
1549
+ margin-inline-start: dt('select.checkmark.gutter.start');
1550
+ margin-inline-end: dt('select.checkmark.gutter.end');
1551
+ color: dt('select.checkmark.color');
1552
+ }
1553
+
1554
+ .p-select-empty-message {
1555
+ padding: dt('select.empty.message.padding');
1556
+ }
1557
+
1558
+ .p-select-fluid {
1559
+ display: flex;
1560
+ width: 100%;
1561
+ }
1562
+
1563
+ .p-select-sm .p-select-label {
1564
+ font-size: dt('select.sm.font.size');
1565
+ padding-block: dt('select.sm.padding.y');
1566
+ padding-inline: dt('select.sm.padding.x');
1567
+ }
1568
+
1569
+ .p-select-sm .p-select-dropdown .p-icon {
1570
+ font-size: dt('select.sm.font.size');
1571
+ width: dt('select.sm.font.size');
1572
+ height: dt('select.sm.font.size');
1573
+ }
1574
+
1575
+ .p-select-lg .p-select-label {
1576
+ font-size: dt('select.lg.font.size');
1577
+ padding-block: dt('select.lg.padding.y');
1578
+ padding-inline: dt('select.lg.padding.x');
1579
+ }
1580
+
1581
+ .p-select-lg .p-select-dropdown .p-icon {
1582
+ font-size: dt('select.lg.font.size');
1583
+ width: dt('select.lg.font.size');
1584
+ height: dt('select.lg.font.size');
1585
+ }
1586
+
1587
+ .p-floatlabel-in .p-select-filter {
1588
+ padding-block-start: dt('select.padding.y');
1589
+ padding-block-end: dt('select.padding.y');
1590
+ }
1591
+ `,classes:{root:function(e){var t=e.instance,n=e.props,r=e.state;return[`p-select p-component p-inputwrapper`,{"p-disabled":n.disabled,"p-invalid":t.$invalid,"p-variant-filled":t.$variant===`filled`,"p-focus":r.focused,"p-inputwrapper-filled":t.$filled,"p-inputwrapper-focus":r.focused||r.overlayVisible,"p-select-open":r.overlayVisible,"p-select-fluid":t.$fluid,"p-select-sm p-inputfield-sm":n.size===`small`,"p-select-lg p-inputfield-lg":n.size===`large`}]},label:function(e){var t=e.instance,n=e.props;return[`p-select-label`,{"p-placeholder":!n.editable&&t.label===n.placeholder,"p-select-label-empty":!n.editable&&!t.$slots.value&&(t.label===`p-emptylabel`||t.label?.length===0)}]},clearIcon:`p-select-clear-icon`,dropdown:`p-select-dropdown`,loadingicon:`p-select-loading-icon`,dropdownIcon:`p-select-dropdown-icon`,overlay:`p-select-overlay p-component`,header:`p-select-header`,pcFilter:`p-select-filter`,listContainer:`p-select-list-container`,list:`p-select-list`,optionGroup:`p-select-option-group`,optionGroupLabel:`p-select-option-group-label`,option:function(e){var t=e.instance,n=e.props,r=e.state,i=e.option,a=e.focusedOption;return[`p-select-option`,{"p-select-option-selected":t.isSelected(i)&&n.highlightOnSelect,"p-focus":r.focusedOptionIndex===a,"p-disabled":t.isOptionDisabled(i)}]},optionLabel:`p-select-option-label`,optionCheckIcon:`p-select-option-check-icon`,optionBlankIcon:`p-select-option-blank-icon`,emptyMessage:`p-select-empty-message`}}),tx={name:`BaseSelect`,extends:Qy,props:{options:Array,optionLabel:[String,Function],optionValue:[String,Function],optionDisabled:[String,Function],optionGroupLabel:[String,Function],optionGroupChildren:[String,Function],scrollHeight:{type:String,default:`14rem`},filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:`contains`},filterFields:{type:Array,default:null},editable:Boolean,placeholder:{type:String,default:null},dataKey:null,showClear:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},labelId:{type:String,default:null},labelClass:{type:[String,Object],default:null},labelStyle:{type:Object,default:null},panelClass:{type:[String,Object],default:null},overlayStyle:{type:Object,default:null},overlayClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},appendTo:{type:[String,Object],default:`body`},loading:{type:Boolean,default:!1},clearIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},filterIcon:{type:String,default:void 0},loadingIcon:{type:String,default:void 0},resetFilterOnHide:{type:Boolean,default:!1},resetFilterOnClear:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!1},autoFilterFocus:{type:Boolean,default:!1},selectOnFocus:{type:Boolean,default:!1},focusOnHover:{type:Boolean,default:!0},highlightOnSelect:{type:Boolean,default:!0},checkmark:{type:Boolean,default:!1},filterMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},tabindex:{type:Number,default:0},ariaLabel:{type:String,default:null},ariaLabelledby:{type:String,default:null}},style:ex,provide:function(){return{$pcSelect:this,$parentInstance:this}}};function nx(e){"@babel/helpers - typeof";return nx=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},nx(e)}function rx(e){return sx(e)||ox(e)||ax(e)||ix()}function ix(){throw TypeError(`Invalid attempt to spread non-iterable instance.
1592
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ax(e,t){if(e){if(typeof e==`string`)return cx(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cx(e,t):void 0}}function ox(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function sx(e){if(Array.isArray(e))return cx(e)}function cx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ux(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?lx(Object(n),!0).forEach(function(t){dx(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lx(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dx(e,t,n){return(t=fx(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fx(e){var t=px(e,`string`);return nx(t)==`symbol`?t:t+``}function px(e,t){if(nx(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nx(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var mx={name:`Select`,extends:tx,inheritAttrs:!1,emits:[`change`,`focus`,`blur`,`before-show`,`before-hide`,`show`,`hide`,`filter`],outsideClickListener:null,scrollHandler:null,resizeListener:null,labelClickListener:null,matchMediaOrientationListener:null,overlay:null,list:null,virtualScroller:null,searchTimeout:null,searchValue:null,isModelValueChanged:!1,data:function(){return{clicked:!1,focused:!1,focusedOptionIndex:-1,filterValue:null,overlayVisible:!1,queryOrientation:null}},watch:{modelValue:function(){this.isModelValueChanged=!0},options:function(){this.autoUpdateModel()}},mounted:function(){this.autoUpdateModel(),this.bindLabelClickListener(),this.bindMatchMediaOrientationListener()},updated:function(){this.overlayVisible&&this.isModelValueChanged&&this.scrollInView(this.findSelectedOptionIndex()),this.isModelValueChanged=!1},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.unbindLabelClickListener(),this.unbindMatchMediaOrientationListener(),this.scrollHandler&&=(this.scrollHandler.destroy(),null),this.overlay&&=(Jl.clear(this.overlay),null)},methods:{getOptionIndex:function(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel:function(e){return this.optionLabel?Fc(e,this.optionLabel):e},getOptionValue:function(e){return this.optionValue?Fc(e,this.optionValue):e},getOptionRenderKey:function(e,t){return(this.dataKey?Fc(e,this.dataKey):this.getOptionLabel(e))+`_`+t},getPTItemOptions:function(e,t,n,r){return this.ptm(r,{context:{option:e,index:n,selected:this.isSelected(e),focused:this.focusedOptionIndex===this.getOptionIndex(n,t),disabled:this.isOptionDisabled(e)}})},isOptionDisabled:function(e){return this.optionDisabled?Fc(e,this.optionDisabled):!1},isOptionGroup:function(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel:function(e){return Fc(e,this.optionGroupLabel)},getOptionGroupChildren:function(e){return Fc(e,this.optionGroupChildren)},getAriaPosInset:function(e){var t=this;return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter(function(e){return t.isOptionGroup(e)}).length:e)+1},show:function(e){this.$emit(`before-show`),this.overlayVisible=!0,this.focusedOptionIndex=this.focusedOptionIndex===-1?this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex():this.focusedOptionIndex,e&&Dl(this.$refs.focusInput)},hide:function(e){var t=this,n=function(){t.$emit(`before-hide`),t.overlayVisible=!1,t.clicked=!1,t.focusedOptionIndex=-1,t.searchValue=``,t.resetFilterOnHide&&(t.filterValue=null),e&&Dl(t.$refs.focusInput)};setTimeout(function(){n()},0)},onFocus:function(e){this.disabled||(this.focused=!0,this.overlayVisible&&(this.focusedOptionIndex=this.focusedOptionIndex===-1?this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex():this.focusedOptionIndex,this.scrollInView(this.focusedOptionIndex)),this.$emit(`focus`,e))},onBlur:function(e){var t=this;setTimeout(function(){var n,r;t.focused=!1,t.focusedOptionIndex=-1,t.searchValue=``,t.$emit(`blur`,e),(n=(r=t.formField).onBlur)==null||n.call(r,e)},100)},onKeyDown:function(e){var t=this;if(this.disabled)e.preventDefault();else{if(zl())switch(e.code){case`Backspace`:this.onBackspaceKey(e,this.editable);break;case`Enter`:case`NumpadDecimal`:this.onEnterKey(e);break;default:e.preventDefault();return}var n=e.metaKey||e.ctrlKey;switch(e.code){case`ArrowDown`:this.onArrowDownKey(e);break;case`ArrowUp`:this.onArrowUpKey(e,this.editable);break;case`ArrowLeft`:case`ArrowRight`:this.onArrowLeftKey(e,this.editable);break;case`Home`:this.onHomeKey(e,this.editable);break;case`End`:this.onEndKey(e,this.editable);break;case`PageDown`:this.onPageDownKey(e);break;case`PageUp`:this.onPageUpKey(e);break;case`Space`:this.onSpaceKey(e,this.editable);break;case`Enter`:case`NumpadEnter`:this.onEnterKey(e);break;case`Escape`:this.onEscapeKey(e);break;case`Tab`:this.onTabKey(e);break;case`Backspace`:this.onBackspaceKey(e,this.editable);break;case`ShiftLeft`:case`ShiftRight`:break;default:!n&&qc(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key),this.filter&&this.$nextTick(function(){t.$refs.filterInput&&Dl(t.$refs.filterInput.$el)}))}this.clicked=!1}},onEditableInput:function(e){var t=e.target.value;this.searchValue=``,!this.searchOptions(e,t)&&(this.focusedOptionIndex=-1),this.updateModel(e,t),!this.overlayVisible&&Pc(t)&&this.show()},onContainerClick:function(e){this.disabled||this.loading||e.target.tagName===`INPUT`||e.target.getAttribute(`data-pc-section`)===`clearicon`||e.target.closest(`[data-pc-section="clearicon"]`)||((!this.overlay||!this.overlay.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.clicked=!0)},onClearClick:function(e){this.updateModel(e,null),this.resetFilterOnClear&&(this.filterValue=null)},onFirstHiddenFocus:function(e){Dl(e.relatedTarget===this.$refs.focusInput?Al(this.overlay,`:not([data-p-hidden-focusable="true"])`):this.$refs.focusInput)},onLastHiddenFocus:function(e){Dl(e.relatedTarget===this.$refs.focusInput?Ml(this.overlay,`:not([data-p-hidden-focusable="true"])`):this.$refs.focusInput)},onOptionSelect:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(this.overlayVisible){var r=this.getOptionValue(t);this.updateModel(e,r),n&&this.hide(!0)}},onOptionMouseMove:function(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)},onFilterChange:function(e){var t=e.target.value;this.filterValue=t,this.focusedOptionIndex=-1,this.$emit(`filter`,{originalEvent:e,value:t}),!this.virtualScrollerDisabled&&this.virtualScroller.scrollToIndex(0)},onFilterKeyDown:function(e){if(!e.isComposing)switch(e.code){case`ArrowDown`:this.onArrowDownKey(e);break;case`ArrowUp`:this.onArrowUpKey(e,!0);break;case`ArrowLeft`:case`ArrowRight`:this.onArrowLeftKey(e,!0);break;case`Home`:this.onHomeKey(e,!0);break;case`End`:this.onEndKey(e,!0);break;case`Enter`:case`NumpadEnter`:this.onEnterKey(e);break;case`Escape`:this.onEscapeKey(e);break;case`Tab`:this.onTabKey(e)}},onFilterBlur:function(){this.focusedOptionIndex=-1},onFilterUpdated:function(){this.overlayVisible&&this.alignOverlay()},onOverlayClick:function(e){o_.emit(`overlay-click`,{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){e.code===`Escape`&&this.onEscapeKey(e)},onArrowDownKey:function(e){if(!this.overlayVisible)this.show(),this.editable&&this.changeFocusedOptionIndex(e,this.findSelectedOptionIndex());else{var t=this.focusedOptionIndex===-1?this.clicked?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex():this.findNextOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(e,t)}e.preventDefault()},onArrowUpKey:function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(e.altKey&&!t)this.focusedOptionIndex!==-1&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{var n=this.focusedOptionIndex===-1?this.clicked?this.findLastOptionIndex():this.findLastFocusedOptionIndex():this.findPrevOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show(),e.preventDefault()}},onArrowLeftKey:function(e){arguments.length>1&&arguments[1]!==void 0&&arguments[1]&&(this.focusedOptionIndex=-1)},onHomeKey:function(e){if(arguments.length>1&&arguments[1]!==void 0&&arguments[1]){var t=e.currentTarget;e.shiftKey?t.setSelectionRange(0,e.target.selectionStart):(t.setSelectionRange(0,0),this.focusedOptionIndex=-1)}else this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()},onEndKey:function(e){if(arguments.length>1&&arguments[1]!==void 0&&arguments[1]){var t=e.currentTarget;if(e.shiftKey)t.setSelectionRange(e.target.selectionStart,t.value.length);else{var n=t.value.length;t.setSelectionRange(n,n),this.focusedOptionIndex=-1}}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()},onPageUpKey:function(e){this.scrollInView(0),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey:function(e){this.overlayVisible?(this.focusedOptionIndex!==-1&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.hide(!0)):(this.focusedOptionIndex=-1,this.onArrowDownKey(e)),e.preventDefault()},onSpaceKey:function(e){!(arguments.length>1&&arguments[1]!==void 0&&arguments[1])&&this.onEnterKey(e)},onEscapeKey:function(e){this.overlayVisible&&this.hide(!0),e.preventDefault(),e.stopPropagation()},onTabKey:function(e){arguments.length>1&&arguments[1]!==void 0&&arguments[1]||(this.overlayVisible&&this.hasFocusableElements()?(Dl(this.$refs.firstHiddenFocusableElementOnOverlay),e.preventDefault()):(this.focusedOptionIndex!==-1&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(this.filter)))},onBackspaceKey:function(e){arguments.length>1&&arguments[1]!==void 0&&arguments[1]&&!this.overlayVisible&&this.show()},onOverlayEnter:function(e){var t=this;Jl.set(`overlay`,e,this.$primevue.config.zIndex.overlay),gl(e,{position:`absolute`,top:`0`}),this.alignOverlay(),this.scrollInView(),this.$attrSelector&&e.setAttribute(this.$attrSelector,``),setTimeout(function(){t.autoFilterFocus&&t.filter&&Dl(t.$refs.filterInput.$el),t.autoUpdateModel()},1)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit(`show`)},onOverlayLeave:function(e){var t=this;e.style.pointerEvents=`none`,this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.autoFilterFocus&&this.filter&&!this.editable&&this.$nextTick(function(){t.$refs.filterInput&&Dl(t.$refs.filterInput.$el)}),this.$emit(`hide`),this.overlay=null},onOverlayAfterLeave:function(e){Jl.clear(e)},alignOverlay:function(){this.appendTo===`self`?vl(this.overlay,this.$el):this.overlay&&(this.overlay.style.minWidth=_l(this.$el)+`px`,hl(this.overlay,this.$el))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){var n=t.composedPath();e.overlayVisible&&e.overlay&&!n.includes(e.$el)&&!n.includes(e.overlay)&&e.hide()},document.addEventListener(`click`,this.outsideClickListener,!0))},unbindOutsideClickListener:function(){this.outsideClickListener&&=(document.removeEventListener(`click`,this.outsideClickListener,!0),null)},bindScrollListener:function(){var e=this;this.scrollHandler||=new a_(this.$refs.container,function(){e.overlayVisible&&e.hide()}),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!Ul()&&e.hide()},window.addEventListener(`resize`,this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&=(window.removeEventListener(`resize`,this.resizeListener),null)},bindLabelClickListener:function(){var e=this;if(!this.editable&&!this.labelClickListener){var t=document.querySelector(`label[for="${this.labelId}"]`);t&&Hl(t)&&(this.labelClickListener=function(){Dl(e.$refs.focusInput)},t.addEventListener(`click`,this.labelClickListener))}},unbindLabelClickListener:function(){if(this.labelClickListener){var e=document.querySelector(`label[for="${this.labelId}"]`);e&&Hl(e)&&e.removeEventListener(`click`,this.labelClickListener)}},bindMatchMediaOrientationListener:function(){var e=this;if(!this.matchMediaOrientationListener){var t=matchMedia(`(orientation: portrait)`);this.queryOrientation=t,this.matchMediaOrientationListener=function(){e.alignOverlay()},this.queryOrientation.addEventListener(`change`,this.matchMediaOrientationListener)}},unbindMatchMediaOrientationListener:function(){this.matchMediaOrientationListener&&=(this.queryOrientation.removeEventListener(`change`,this.matchMediaOrientationListener),this.queryOrientation=null,null)},hasFocusableElements:function(){return kl(this.overlay,`:not([data-p-hidden-focusable="true"])`).length>0},isOptionExactMatched:function(e){return this.isValidOption(e)&&typeof this.getOptionLabel(e)==`string`&&this.getOptionLabel(e)?.toLocaleLowerCase(this.filterLocale)==this.searchValue.toLocaleLowerCase(this.filterLocale)},isOptionStartsWith:function(e){return this.isValidOption(e)&&typeof this.getOptionLabel(e)==`string`&&this.getOptionLabel(e)?.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))},isValidOption:function(e){return Pc(e)&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption:function(e){return this.isValidOption(e)&&this.isSelected(e)},isSelected:function(e){return Ic(this.d_value,this.getOptionValue(e),this.equalityKey)},findFirstOptionIndex:function(){var e=this;return this.visibleOptions.findIndex(function(t){return e.isValidOption(t)})},findLastOptionIndex:function(){var e=this;return Bc(this.visibleOptions,function(t){return e.isValidOption(t)})},findNextOptionIndex:function(e){var t=this,n=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex(function(e){return t.isValidOption(e)}):-1;return n>-1?n+e+1:e},findPrevOptionIndex:function(e){var t=this,n=e>0?Bc(this.visibleOptions.slice(0,e),function(e){return t.isValidOption(e)}):-1;return n>-1?n:e},findSelectedOptionIndex:function(){var e=this;return this.visibleOptions.findIndex(function(t){return e.isValidSelectedOption(t)})},findFirstFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},searchOptions:function(e,t){var n=this;this.searchValue=(this.searchValue||``)+t;var r=-1,i=!1;return Pc(this.searchValue)&&(r=this.visibleOptions.findIndex(function(e){return n.isOptionExactMatched(e)}),r===-1&&(r=this.visibleOptions.findIndex(function(e){return n.isOptionStartsWith(e)})),r!==-1&&(i=!0),r===-1&&this.focusedOptionIndex===-1&&(r=this.findFirstFocusedOptionIndex()),r!==-1&&this.changeFocusedOptionIndex(e,r)),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){n.searchValue=``,n.searchTimeout=null},500),i},changeFocusedOptionIndex:function(e,t){this.focusedOptionIndex!==t&&(this.focusedOptionIndex=t,this.scrollInView(),this.selectOnFocus&&this.onOptionSelect(e,this.visibleOptions[t],!1))},scrollInView:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1;this.$nextTick(function(){var n=t===-1?e.focusedOptionId:`${e.$id}_${t}`,r=El(e.list,`li[id="${n}"]`);r?r.scrollIntoView&&r.scrollIntoView({block:`nearest`,inline:`nearest`}):e.virtualScrollerDisabled||e.virtualScroller&&e.virtualScroller.scrollToIndex(t===-1?e.focusedOptionIndex:t)})},autoUpdateModel:function(){this.autoOptionFocus&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex()),this.selectOnFocus&&this.autoOptionFocus&&!this.$filled&&this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1)},updateModel:function(e,t){this.writeValue(t,e),this.$emit(`change`,{originalEvent:e,value:t})},flatOptions:function(e){var t=this;return(e||[]).reduce(function(e,n,r){e.push({optionGroup:n,group:!0,index:r});var i=t.getOptionGroupChildren(n);return i&&i.forEach(function(t){return e.push(t)}),e},[])},overlayRef:function(e){this.overlay=e},listRef:function(e,t){this.list=e,t&&t(e)},virtualScrollerRef:function(e){this.virtualScroller=e}},computed:{visibleOptions:function(){var e=this,t=this.optionGroupLabel?this.flatOptions(this.options):this.options||[];if(this.filterValue){var n=ju.filter(t,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);if(this.optionGroupLabel){var r=this.options||[],i=[];return r.forEach(function(t){var r=e.getOptionGroupChildren(t).filter(function(e){return n.includes(e)});r.length>0&&i.push(ux(ux({},t),{},dx({},typeof e.optionGroupChildren==`string`?e.optionGroupChildren:`items`,rx(r))))}),this.flatOptions(i)}return n}return t},hasSelectedOption:function(){return this.$filled},label:function(){var e=this.findSelectedOptionIndex();return e===-1?this.placeholder||`p-emptylabel`:this.getOptionLabel(this.visibleOptions[e])},editableInputValue:function(){var e=this.findSelectedOptionIndex();return e===-1?this.d_value||``:this.getOptionLabel(this.visibleOptions[e])},equalityKey:function(){return this.optionValue?null:this.dataKey},searchFields:function(){return this.filterFields||[this.optionLabel]},filterResultMessageText:function(){return Pc(this.visibleOptions)?this.filterMessageText.replaceAll(`{0}`,this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText:function(){return this.filterMessage||this.$primevue.config.locale.searchMessage||``},emptyFilterMessageText:function(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||``},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||``},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||``},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||``},selectedMessageText:function(){return this.$filled?this.selectionMessageText.replaceAll(`{0}`,`1`):this.emptySelectionMessageText},focusedOptionId:function(){return this.focusedOptionIndex===-1?null:`${this.$id}_${this.focusedOptionIndex}`},ariaSetSize:function(){var e=this;return this.visibleOptions.filter(function(t){return!e.isOptionGroup(t)}).length},isClearIconVisible:function(){return this.showClear&&this.d_value!=null&&!this.disabled&&!this.loading},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions},containerDataP:function(){return tl(dx({invalid:this.$invalid,disabled:this.disabled,focus:this.focused,fluid:this.$fluid,filled:this.$variant===`filled`},this.size,this.size))},labelDataP:function(){return tl(dx(dx({placeholder:!this.editable&&this.label===this.placeholder,clearable:this.showClear,disabled:this.disabled,editable:this.editable},this.size,this.size),`empty`,!this.editable&&!this.$slots.value&&(this.label===`p-emptylabel`||this.label.length===0)))},dropdownIconDataP:function(){return tl(dx({},this.size,this.size))},overlayDataP:function(){return tl(dx({},`portal-`+this.appendTo,`portal-`+this.appendTo))}},directives:{ripple:$_},components:{InputText:ib,VirtualScroller:Zb,Portal:s_,InputIcon:Vb,IconField:zb,TimesIcon:Dv,ChevronDownIcon:Cb,SpinnerIcon:Zv,SearchIcon:jb,CheckIcon:hb,BlankIcon:sb}},hx=[`id`,`data-p`],gx=[`name`,`id`,`value`,`placeholder`,`tabindex`,`disabled`,`aria-label`,`aria-labelledby`,`aria-expanded`,`aria-controls`,`aria-activedescendant`,`aria-invalid`,`data-p`],_x=[`name`,`id`,`tabindex`,`aria-label`,`aria-labelledby`,`aria-expanded`,`aria-controls`,`aria-activedescendant`,`aria-invalid`,`aria-disabled`,`data-p`],vx=[`data-p`],yx=[`id`],bx=[`id`],xx=[`id`,`aria-label`,`aria-selected`,`aria-disabled`,`aria-setsize`,`aria-posinset`,`onMousedown`,`onMousemove`,`data-p-selected`,`data-p-focused`,`data-p-disabled`];function Sx(e,t,n,r,i,a){var o=F(`SpinnerIcon`),s=F(`InputText`),c=F(`SearchIcon`),l=F(`InputIcon`),u=F(`IconField`),d=F(`CheckIcon`),f=F(`BlankIcon`),p=F(`VirtualScroller`),m=F(`Portal`),h=ui(`ripple`);return z(),B(`div`,K({ref:`container`,id:e.$id,class:e.cx(`root`),onClick:t[12]||=function(){return a.onContainerClick&&a.onContainerClick.apply(a,arguments)},"data-p":a.containerDataP},e.ptmi(`root`)),[e.editable?(z(),B(`input`,K({key:0,ref:`focusInput`,name:e.name,id:e.labelId||e.inputId,type:`text`,class:[e.cx(`label`),e.inputClass,e.labelClass],style:[e.inputStyle,e.labelStyle],value:a.editableInputValue,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,disabled:e.disabled,autocomplete:`off`,role:`combobox`,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":`listbox`,"aria-expanded":i.overlayVisible,"aria-controls":i.overlayVisible?e.$id+`_list`:void 0,"aria-activedescendant":i.focused?a.focusedOptionId:void 0,"aria-invalid":e.invalid||void 0,onFocus:t[0]||=function(){return a.onFocus&&a.onFocus.apply(a,arguments)},onBlur:t[1]||=function(){return a.onBlur&&a.onBlur.apply(a,arguments)},onKeydown:t[2]||=function(){return a.onKeyDown&&a.onKeyDown.apply(a,arguments)},onInput:t[3]||=function(){return a.onEditableInput&&a.onEditableInput.apply(a,arguments)},"data-p":a.labelDataP},e.ptm(`label`)),null,16,gx)):(z(),B(`span`,K({key:1,ref:`focusInput`,name:e.name,id:e.labelId||e.inputId,class:[e.cx(`label`),e.inputClass,e.labelClass],style:[e.inputStyle,e.labelStyle],tabindex:e.disabled?-1:e.tabindex,role:`combobox`,"aria-label":e.ariaLabel||(a.label===`p-emptylabel`?void 0:a.label),"aria-labelledby":e.ariaLabelledby,"aria-haspopup":`listbox`,"aria-expanded":i.overlayVisible,"aria-controls":e.$id+`_list`,"aria-activedescendant":i.focused?a.focusedOptionId:void 0,"aria-invalid":e.invalid||void 0,"aria-disabled":e.disabled,onFocus:t[4]||=function(){return a.onFocus&&a.onFocus.apply(a,arguments)},onBlur:t[5]||=function(){return a.onBlur&&a.onBlur.apply(a,arguments)},onKeydown:t[6]||=function(){return a.onKeyDown&&a.onKeyDown.apply(a,arguments)},"data-p":a.labelDataP},e.ptm(`label`)),[L(e.$slots,`value`,{value:e.d_value,placeholder:e.placeholder},function(){return[W(A(a.label===`p-emptylabel`?`\xA0`:a.label??`empty`),1)]})],16,_x)),a.isClearIconVisible?L(e.$slots,`clearicon`,{key:2,class:k(e.cx(`clearIcon`)),clearCallback:a.onClearClick},function(){return[(z(),V(li(e.clearIcon?`i`:`TimesIcon`),K({ref:`clearIcon`,class:[e.cx(`clearIcon`),e.clearIcon],onClick:a.onClearClick},e.ptm(`clearIcon`),{"data-pc-section":`clearicon`}),null,16,[`class`,`onClick`]))]}):G(``,!0),H(`div`,K({class:e.cx(`dropdown`)},e.ptm(`dropdown`)),[e.loading?L(e.$slots,`loadingicon`,{key:0,class:k(e.cx(`loadingIcon`))},function(){return[e.loadingIcon?(z(),B(`span`,K({key:0,class:[e.cx(`loadingIcon`),`pi-spin`,e.loadingIcon],"aria-hidden":`true`},e.ptm(`loadingIcon`)),null,16)):(z(),V(o,K({key:1,class:e.cx(`loadingIcon`),spin:``,"aria-hidden":`true`},e.ptm(`loadingIcon`)),null,16,[`class`]))]}):L(e.$slots,`dropdownicon`,{key:1,class:k(e.cx(`dropdownIcon`))},function(){return[(z(),V(li(e.dropdownIcon?`span`:`ChevronDownIcon`),K({class:[e.cx(`dropdownIcon`),e.dropdownIcon],"aria-hidden":`true`,"data-p":a.dropdownIconDataP},e.ptm(`dropdownIcon`)),null,16,[`class`,`data-p`]))]})],16),U(m,{appendTo:e.appendTo},{default:N(function(){return[U(Fo,K({name:`p-anchored-overlay`,onEnter:a.onOverlayEnter,onAfterEnter:a.onOverlayAfterEnter,onLeave:a.onOverlayLeave,onAfterLeave:a.onOverlayAfterLeave},e.ptm(`transition`)),{default:N(function(){return[i.overlayVisible?(z(),B(`div`,K({key:0,ref:a.overlayRef,class:[e.cx(`overlay`),e.panelClass,e.overlayClass],style:[e.panelStyle,e.overlayStyle],onClick:t[10]||=function(){return a.onOverlayClick&&a.onOverlayClick.apply(a,arguments)},onKeydown:t[11]||=function(){return a.onOverlayKeyDown&&a.onOverlayKeyDown.apply(a,arguments)},"data-p":a.overlayDataP},e.ptm(`overlay`)),[H(`span`,K({ref:`firstHiddenFocusableElementOnOverlay`,role:`presentation`,"aria-hidden":`true`,class:`p-hidden-accessible p-hidden-focusable`,tabindex:0,onFocus:t[7]||=function(){return a.onFirstHiddenFocus&&a.onFirstHiddenFocus.apply(a,arguments)}},e.ptm(`hiddenFirstFocusableEl`),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16),L(e.$slots,`header`,{value:e.d_value,options:a.visibleOptions}),e.filter?(z(),B(`div`,K({key:0,class:e.cx(`header`)},e.ptm(`header`)),[U(u,{unstyled:e.unstyled,pt:e.ptm(`pcFilterContainer`)},{default:N(function(){return[U(s,{ref:`filterInput`,type:`text`,value:i.filterValue,onVnodeMounted:a.onFilterUpdated,onVnodeUpdated:a.onFilterUpdated,class:k(e.cx(`pcFilter`)),placeholder:e.filterPlaceholder,variant:e.variant,unstyled:e.unstyled,role:`searchbox`,autocomplete:`off`,"aria-owns":e.$id+`_list`,"aria-activedescendant":a.focusedOptionId,onKeydown:a.onFilterKeyDown,onBlur:a.onFilterBlur,onInput:a.onFilterChange,pt:e.ptm(`pcFilter`),formControl:{novalidate:!0}},null,8,[`value`,`onVnodeMounted`,`onVnodeUpdated`,`class`,`placeholder`,`variant`,`unstyled`,`aria-owns`,`aria-activedescendant`,`onKeydown`,`onBlur`,`onInput`,`pt`]),U(l,{unstyled:e.unstyled,pt:e.ptm(`pcFilterIconContainer`)},{default:N(function(){return[L(e.$slots,`filtericon`,{},function(){return[e.filterIcon?(z(),B(`span`,K({key:0,class:e.filterIcon},e.ptm(`filterIcon`)),null,16)):(z(),V(c,ge(K({key:1},e.ptm(`filterIcon`))),null,16))]})]}),_:3},8,[`unstyled`,`pt`])]}),_:3},8,[`unstyled`,`pt`]),H(`span`,K({role:`status`,"aria-live":`polite`,class:`p-hidden-accessible`},e.ptm(`hiddenFilterResult`),{"data-p-hidden-accessible":!0}),A(a.filterResultMessageText),17)],16)):G(``,!0),H(`div`,K({class:e.cx(`listContainer`),style:{"max-height":a.virtualScrollerDisabled?e.scrollHeight:``}},e.ptm(`listContainer`)),[U(p,K({ref:a.virtualScrollerRef},e.virtualScrollerOptions,{items:a.visibleOptions,style:{height:e.scrollHeight},tabindex:-1,disabled:a.virtualScrollerDisabled,pt:e.ptm(`virtualScroller`)}),pi({content:N(function(n){var r=n.styleClass,o=n.contentRef,s=n.items,c=n.getItemOptions,l=n.contentStyle,u=n.itemSize;return[H(`ul`,K({ref:function(e){return a.listRef(e,o)},id:e.$id+`_list`,class:[e.cx(`list`),r],style:l,role:`listbox`},e.ptm(`list`)),[(z(!0),B(R,null,I(s,function(n,r){return z(),B(R,{key:a.getOptionRenderKey(n,a.getOptionIndex(r,c))},[a.isOptionGroup(n)?(z(),B(`li`,K({key:0,id:e.$id+`_`+a.getOptionIndex(r,c),style:{height:u?u+`px`:void 0},class:e.cx(`optionGroup`),role:`option`},{ref_for:!0},e.ptm(`optionGroup`)),[L(e.$slots,`optiongroup`,{option:n.optionGroup,index:a.getOptionIndex(r,c)},function(){return[H(`span`,K({class:e.cx(`optionGroupLabel`)},{ref_for:!0},e.ptm(`optionGroupLabel`)),A(a.getOptionGroupLabel(n.optionGroup)),17)]})],16,bx)):Yn((z(),B(`li`,K({key:1,id:e.$id+`_`+a.getOptionIndex(r,c),class:e.cx(`option`,{option:n,focusedOption:a.getOptionIndex(r,c)}),style:{height:u?u+`px`:void 0},role:`option`,"aria-label":a.getOptionLabel(n),"aria-selected":a.isSelected(n),"aria-disabled":a.isOptionDisabled(n),"aria-setsize":a.ariaSetSize,"aria-posinset":a.getAriaPosInset(a.getOptionIndex(r,c)),onMousedown:function(e){return a.onOptionSelect(e,n)},onMousemove:function(e){return a.onOptionMouseMove(e,a.getOptionIndex(r,c))},onClick:t[8]||=Fs(function(){},[`stop`]),"data-p-selected":!e.checkmark&&a.isSelected(n),"data-p-focused":i.focusedOptionIndex===a.getOptionIndex(r,c),"data-p-disabled":a.isOptionDisabled(n)},{ref_for:!0},a.getPTItemOptions(n,c,r,`option`)),[e.checkmark?(z(),B(R,{key:0},[a.isSelected(n)?(z(),V(d,K({key:0,class:e.cx(`optionCheckIcon`)},{ref_for:!0},e.ptm(`optionCheckIcon`)),null,16,[`class`])):(z(),V(f,K({key:1,class:e.cx(`optionBlankIcon`)},{ref_for:!0},e.ptm(`optionBlankIcon`)),null,16,[`class`]))],64)):G(``,!0),L(e.$slots,`option`,{option:n,selected:a.isSelected(n),index:a.getOptionIndex(r,c)},function(){return[H(`span`,K({class:e.cx(`optionLabel`)},{ref_for:!0},e.ptm(`optionLabel`)),A(a.getOptionLabel(n)),17)]})],16,xx)),[[h]])],64)}),128)),i.filterValue&&(!s||s&&s.length===0)?(z(),B(`li`,K({key:0,class:e.cx(`emptyMessage`),role:`option`},e.ptm(`emptyMessage`),{"data-p-hidden-accessible":!0}),[L(e.$slots,`emptyfilter`,{},function(){return[W(A(a.emptyFilterMessageText),1)]})],16)):!e.options||e.options&&e.options.length===0?(z(),B(`li`,K({key:1,class:e.cx(`emptyMessage`),role:`option`},e.ptm(`emptyMessage`),{"data-p-hidden-accessible":!0}),[L(e.$slots,`empty`,{},function(){return[W(A(a.emptyMessageText),1)]})],16)):G(``,!0)],16,yx)]}),_:2},[e.$slots.loader?{name:`loader`,fn:N(function(t){var n=t.options;return[L(e.$slots,`loader`,{options:n})]}),key:`0`}:void 0]),1040,[`items`,`style`,`disabled`,`pt`])],16),L(e.$slots,`footer`,{value:e.d_value,options:a.visibleOptions}),!e.options||e.options&&e.options.length===0?(z(),B(`span`,K({key:1,role:`status`,"aria-live":`polite`,class:`p-hidden-accessible`},e.ptm(`hiddenEmptyMessage`),{"data-p-hidden-accessible":!0}),A(a.emptyMessageText),17)):G(``,!0),H(`span`,K({role:`status`,"aria-live":`polite`,class:`p-hidden-accessible`},e.ptm(`hiddenSelectedMessage`),{"data-p-hidden-accessible":!0}),A(a.selectedMessageText),17),H(`span`,K({ref:`lastHiddenFocusableElementOnOverlay`,role:`presentation`,"aria-hidden":`true`,class:`p-hidden-accessible p-hidden-focusable`,tabindex:0,onFocus:t[9]||=function(){return a.onLastHiddenFocus&&a.onLastHiddenFocus.apply(a,arguments)}},e.ptm(`hiddenLastFocusableEl`),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16)],16,vx)):G(``,!0)]}),_:3},16,[`onEnter`,`onAfterEnter`,`onLeave`,`onAfterLeave`])]}),_:3},8,[`appendTo`])],16,hx)}mx.render=Sx;var Cx=[7,30,90];function wx(e){let t=Cx.filter(t=>t<e);return t.push(e),t.map(e=>({label:e===1?`1 day`:`${e} days`,value:e}))}function Tx(e){return Math.min(30,e)}function Ex(e){return`secondshift-${e}`}function Dx(e,t,n){let r=`${t.replace(/\/+$/,``)}/mcp`;return`claude mcp add --transport http ${Ex(e)} ${r} --header "Authorization: Bearer ${n}"`}var Ox=[{label:`Claude Code`,value:`claude`},{label:`Codex`,value:`codex`},{label:`Cursor`,value:`cursor`},{label:`Other client`,value:`other`}];function kx(e,t,n,r){let i=`${n.replace(/\/+$/,``)}/mcp`,a=Ex(t);return e===`claude`?{instruction:`Run this command in your terminal.`,content:Dx(t,n,r),copyLabel:`Copy command`,nextStep:`Restart Claude Code, then use /mcp to check the connection.`}:e===`codex`?{instruction:`Add this to your personal ~/.codex/config.toml. Keep this file private.`,content:`[mcp_servers.${a}]\nurl = ${JSON.stringify(i)}\nhttp_headers = { Authorization = ${JSON.stringify(`Bearer ${r}`)} }`,copyLabel:`Copy config`,nextStep:`Restart Codex to load the server. In the CLI, use /mcp to check the connection.`}:e===`cursor`?{instruction:`Merge this server into your personal ~/.cursor/mcp.json. Keep this file private.`,content:JSON.stringify({mcpServers:{[a]:{url:i,headers:{Authorization:`Bearer ${r}`}}}},null,2),copyLabel:`Copy config`,nextStep:`Restart Cursor, then check that the server is enabled in MCP settings.`}:{instruction:`Add a remote MCP server in your client using these values.`,content:`Name: ${a}\nTransport: Streamable HTTP\nURL: ${i}\nHeader: Authorization\nValue: Bearer ${r}`,copyLabel:`Copy settings`,nextStep:`Save the server in your client and refresh its tools to check the connection.`}}function Ax(e,t){return`secondshift:agent-card-dismissed:${t}:${e}`}function jx(e,t,n){try{return e.getItem(Ax(t,n))!==null}catch{return!1}}function Mx(e,t,n){try{e.setItem(Ax(t,n),new Date().toISOString())}catch{}}var Nx=`https://second-shift.app/docs`,Px=`${Nx}/overview/`,Fx={Tasks:`tasks`,MCP:`mcp`,RepositoryConfiguration:`repository-configuration`,SecurityModel:`security-model`,GitHubAccess:`github-app`};function Ix(e,t){return`${Nx}/${e}/${t?`#${t}`:``}`}var Lx=class extends Error{},Rx=class extends Error{status;payload;constructor(e,t,n=null){super(e),this.status=t,this.payload=n}};function X(e,t=`Something went wrong`){return e instanceof Error?e.message:t}async function zx(e){let t=await fetch(`/api${e}`,{credentials:`include`,headers:{Accept:`application/json`}});if(t.status===401)throw new Lx(`Sign in required`);if(!t.ok)throw await Gx(t);return t.json()}async function Bx(e){let t=await fetch(`/api${e}`,{credentials:`include`,headers:{Accept:`text/plain`}});if(t.status===401)throw new Lx(`Sign in required`);if(!t.ok)throw await Gx(t);return t.text()}function Vx(){return document.cookie.split(`; `).find(e=>e.startsWith(`csrftoken=`))?.split(`=`)[1]??``}var Hx={q:`The search`};function Ux(e){let t=[...e.loc??[]].reverse().find(e=>typeof e==`string`&&![`body`,`payload`,`query`,`path`].includes(e)),n=typeof t==`string`?Hx[t]??t.replace(/_/g,` `):`This value`,r=(e.msg??`is not valid`).replace(/^(Value error, |String |Input |Value )/,``),i=`${n.charAt(0).toUpperCase()}${n.slice(1)} ${r.charAt(0).toLowerCase()}${r.slice(1)}`;return i.endsWith(`.`)?i:`${i}.`}var Wx={403:`You do not have permission to do this.`,404:`This was not found. It may have been removed, or the link is wrong.`,413:`This is too large to send.`,429:`Too many requests. Wait a moment and try again.`};async function Gx(e){let t=null;try{t=await e.json()}catch{}let n=t?.detail,r=n=>new Rx(n,e.status,t);return Array.isArray(n)&&n.length?r([...new Set(n.map(Ux))].join(` `)):typeof n==`string`&&n&&!n.startsWith(`Not Found`)?r(n):Wx[e.status]?r(Wx[e.status]):e.status>=500?r(`The server had a problem. Try again in a moment.`):r(`Request failed with status ${e.status}`)}async function Z(e,t){let n=await fetch(`/api${e}`,{method:`POST`,credentials:`include`,headers:{Accept:`application/json`,...t===void 0?{}:{"Content-Type":`application/json`},"X-CSRFToken":Vx()},body:t===void 0?void 0:JSON.stringify(t)});if(!n.ok)throw await Gx(n);if(n.status!==204)return n.json()}async function Kx(e){let t=await fetch(`/api${e}`,{method:`DELETE`,credentials:`include`,headers:{Accept:`application/json`,"X-CSRFToken":Vx()}});if(!t.ok)throw await Gx(t)}async function qx(){let e=await fetch(`/accounts/logout/`,{method:`POST`,credentials:`include`,redirect:`manual`,headers:{"X-CSRFToken":Vx()}});if(e.type!==`opaqueredirect`&&!e.ok)throw Error(`Sign out failed with status ${e.status}`)}function Jx(){return zx(`/account/api-tokens`)}function Yx(e){return Z(`/account/api-tokens`,e)}function Xx(e){return Kx(`/account/api-tokens/${e}`)}var Zx=`en-GB`;function Qx(){return Intl.DateTimeFormat().resolvedOptions().timeZone}function $x(e,t){return e?new Intl.DateTimeFormat(Zx,{day:`numeric`,month:`short`,year:`numeric`,hour:`2-digit`,minute:`2-digit`,hourCycle:`h23`,timeZoneName:`short`,timeZone:t}).format(new Date(e)):`Not yet`}function eS(e){return e?`${new Date(e).toISOString().slice(0,19).replace(`T`,` `)} UTC`:``}function tS(e,t=Date.now()){if(!e)return`Not yet`;let n=Math.round((Date.parse(e)-t)/1e3);if(Math.abs(n)<45)return`just now`;let[r,i]=[[`year`,31536e3],[`month`,2592e3],[`week`,604800],[`day`,86400],[`hour`,3600],[`minute`,60]].find(([,e])=>Math.abs(n)>=e)??[`minute`,60];return new Intl.RelativeTimeFormat(`en`,{numeric:`auto`}).format(Math.round(n/i),r)}function nS(e,t){return new Intl.DateTimeFormat(Zx,{hour:`2-digit`,minute:`2-digit`,hourCycle:`h23`,timeZone:t}).format(new Date(e))}function rS(e,t,n=Qx()){if(!e)return`Not scheduled`;let r=new Intl.DateTimeFormat(Zx,{weekday:`short`,day:`numeric`,month:`short`,hour:`2-digit`,minute:`2-digit`,hourCycle:`h23`,timeZoneName:`short`,timeZone:t}).format(new Date(e)),i=nS(e,n);return i===nS(e,t)?r:`${r} · ${i} your time`}var iS=[`Sundays`,`Mondays`,`Tuesdays`,`Wednesdays`,`Thursdays`,`Fridays`,`Saturdays`],aS=[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],oS=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`];function sS(e){let t=new Set;for(let n of e.split(`,`)){let e=/^(\d)(?:-(\d))?$/.exec(n);if(!e)return null;let r=Number(e[1]),i=e[2]===void 0?r:Number(e[2]);if(r>i||i>7)return null;for(let e=r;e<=i;e+=1)t.add(e%7)}return[...t].sort((e,t)=>e-t)}function cS(e){let t=e.trim().split(/\s+/);if(t.length!==5)return e;let[n,r,i,a,o]=t,s=/^\*\/(\d+)$/.exec(n);if(s&&r===`*`&&i===`*`&&a===`*`&&o===`*`)return`Every ${s[1]} minutes`;if(!/^\d+$/.test(n))return e;let c=n.padStart(2,`0`),l=/^\*\/(\d+)$/.exec(r);if(l&&i===`*`&&a===`*`&&o===`*`){let e=l[1]===`1`?`Every hour`:`Every ${l[1]} hours`;return n===`0`?e:`${e} at :${c}`}if(a!==`*`){let t=a.split(`,`).map(Number);return!t.every(e=>Number.isInteger(e)&&e>=1&&e<=12)||!/^\d+$/.test(r)||!/^\d+$/.test(i)||o!==`*`?e:`${t.map(e=>oS[e-1]).join(`, `)} on day ${i} at ${r.padStart(2,`0`)}:${c}`}if(r===`*`&&i===`*`&&o===`*`)return`Hourly at :${c}`;if(!/^\d+$/.test(r))return e;let u=`${r.padStart(2,`0`)}:${c}`;if(i===`*`&&o===`*`)return`Daily at ${u}`;if(o===`*`&&/^\d+$/.test(i))return`Monthly on day ${i} at ${u}`;if(i!==`*`)return e;let d=sS(o);return d?d.join()===`1,2,3,4,5`?`Weekdays at ${u}`:d.join()===`0,6`?`Weekends at ${u}`:d.length===1?`${iS[d[0]]} at ${u}`:`${d.map(e=>aS[e]).join(`, `)} at ${u}`:e}function lS(e,t,n=[]){return e?`${cS(e)} · ${t}`:n.length?`On webhook`:`Manual only`}function uS(e){return e.removed_at?`removed`:e.cron?e.enabled?`enabled`:`disabled`:e.triggers?.length?`webhook`:`manual`}function dS(e){return e===`disabled`?`Paused`:gS(e)}var fS={not_required:`No access needed`,manual:`Manual only`,webhook:`On webhook`,removed:`Removed from manifest`,unconfigured:`Not connected`},pS={notification:`Notification`,mcp:`MCP`,api:`API`,model:`Model provider`,source:`Repository access`};function mS(e){return pS[e]??e.toUpperCase()}function hS(e){return`${(/^[A-Z]{2,}\b/.test(e)?`AEFHILMNORSX`.includes(e[0]):/^[aeiou]/i.test(e))?`an`:`a`} ${e}`}function gS(e){let t=fS[e]??e.replace(/[_-]+/g,` `);return t.charAt(0).toUpperCase()+t.slice(1)}function _S(e){return{pending:`Needs approval`,approved:`Access approved`,denied:`Access denied`}[e]??gS(e)}function vS(e){return e===`pending`||e===`denied`}function yS(e){return e===`pending`}var bS={anthropic:`Anthropic`,openai:`OpenAI`,openrouter:`OpenRouter`,openai_compatible:`OpenAI-compatible`,github:`GitHub`,sentry:`Sentry`,mcp:`MCP server`,api:`HTTP API`,webhook:`Webhook`};function xS(e){return bS[e]??gS(e)}function Q(e,t,n=`${t}s`){return`${e} ${e===1?t:n}`}function SS(e){return e?e===1?`Reads its last report`:`Reads its last ${e} reports`:`None`}function CS(e){return e.split(`-`).filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(` `)}function wS(e,t,n=Date.now()){return e?PS(Math.max(0,((t?Date.parse(t):n)-Date.parse(e))/1e3)):`Not started`}function TS(e,t){return new Intl.DateTimeFormat(Zx,{hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hourCycle:`h23`,timeZone:t}).format(new Date(e))}function ES(e,t){return new Intl.DateTimeFormat(Zx,{timeZoneName:`short`,timeZone:t}).formatToParts(new Date(e)).find(e=>e.type===`timeZoneName`)?.value??``}function DS(e){return e===null?`Unknown size`:e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1024/1024).toFixed(1)} MB`}function OS(e){return new Intl.NumberFormat(`en`,{notation:`compact`,maximumFractionDigits:1}).format(e)}function kS(e,t=!1){let n=e>0&&e<.01?4:2;return`${t?`≥`:``}$${e.toFixed(n)}`}function AS(e,t=Date.now()){let n=[];e.started_at&&n.push({key:`duration`,text:wS(e.started_at,e.finished_at,t),title:e.finished_at?`Time from start to finish`:`Running for`});let r=e.model_usage_source===`agent`;if(e.model_tokens||r&&e.model_tokens===0){let t=e.token_budget??null,i=e.model_budget_tokens??e.model_tokens,a=e.model_cache_read_tokens??0,o=`${r?`CLI-reported: `:``}${a?`${OS(e.model_input_tokens-a)} input · ${OS(a)} cached input`:`${OS(e.model_input_tokens)} input`} · ${OS(e.model_output_tokens)} output tokens`,s=a?`. Cached input counts as a tenth`:``,c=t?`${OS(i)} / ${OS(t)} budget`:`${OS(e.model_tokens)} tok`;n.push({key:`tokens`,text:r?`${c} reported`:c,title:t?`${o}. ${i.toLocaleString(`en`)} of ${t.toLocaleString(`en`)} budget tokens used${s}`:o,warn:!!(t&&i>=t*.8)})}if(r&&e.model_tokens==null&&n.push({key:`tokens`,text:`Usage unavailable`,title:`The CLI did not report token usage`}),e.model_cost_usd!==null&&n.push({key:`cost`,text:kS(e.model_cost_usd,e.model_cost_partial),title:e.model_cost_partial?`Some model calls have no known price`:`Model cost`}),e.model_requests||e.max_turns){let t=e.max_turns?`/${e.max_turns}`:``;n.push({key:`turns`,text:`${e.model_requests}${t} turns`,title:e.max_turns?`${e.model_requests} of ${e.max_turns} allowed model calls`:`Model calls`,warn:!!(e.max_turns&&e.model_requests>=e.max_turns*.8)})}return n}function jS(e){let t=new Date(e);t.setDate(e.getDate()-6);let n=e=>new Intl.DateTimeFormat(Zx,{month:`short`}).format(e);return n(t)===n(e)?`${t.getDate()}–${e.getDate()} ${n(e)}`:`${t.getDate()} ${n(t)} – ${e.getDate()} ${n(e)}`}function MS(e){return!e.started_at||!e.finished_at?null:Math.max(0,(Date.parse(e.finished_at)-Date.parse(e.started_at))/1e3)}function NS(e){let t=e.filter(e=>e.status===`succeeded`||e.status===`failed`||e.status===`canceled`),n=t.filter(e=>e.status===`succeeded`),r=n.length,i=n.map(MS).filter(e=>e!==null).sort((e,t)=>e-t),a=Math.floor(i.length/2),o=i.length===0?null:i.length%2?i[a]:(i[a-1]+i[a])/2,s=e.reduce((e,t)=>e+(t.model_cost_usd??0),0),c=n.filter(e=>e.model_cost_usd!==null),l=c.reduce((e,t)=>e+(t.model_cost_usd??0),0);return{finished:t.length,succeeded:r,successRate:t.length?r/t.length:null,medianSeconds:o,averageCostUsd:c.length?l/c.length:null,totalCostUsd:s,chronological:[...e].reverse()}}function PS(e){let t=Math.round(e),n=Math.floor(t/3600),r=Math.floor(t%3600/60);return n?`${n}h ${r}m`:r?`${r}m ${t%60}s`:`${t}s`}function FS(e,t){return e===`tokens`?`${OS(t)} tokens`:e===`seconds`?t%3600==0?Q(t/3600,`hour`):t%60==0?Q(t/60,`minute`):Q(t,`second`):t.toLocaleString(`en`)}function IS(e,t,n,r,i){if(t===0)return{delta:``,detail:e===0?n:r,good:!1};let a=Math.round((e-t)/t*100);return a===0?{delta:``,detail:`Same as previous week`,good:!1}:{delta:`${a>0?`↑`:`↓`} ${Math.abs(a)}%`,detail:`vs previous week`,good:i&&a<0}}function LS(e,t){return IS(e,t,`No model spend yet`,`No spend the week before`,!0)}function RS(e,t){return IS(e,t,`No runs yet`,`No runs the week before`,!1)}function zS(e,t,n){return e.length===1?`${e[0]} is failing.`:e.length>1?`${e.length} jobs are failing.`:t===0?`No job is enabled yet.`:n?`All jobs passing. Next shift ${n}.`:`All jobs passing.`}function BS(e,t=Date.now()){return e?e.status===`running`?`Running now`:e.status===`queued`?`Run queued`:`Last run ${gS(e.status).toLowerCase()} ${tS(e.at,t)}`:`Never run`}function VS(e,t,n=Date.now()){return t===`source`?`Imports and syncs repositories`:e?t===`model`?e.runs_7d===0?e.last_used_at?`Not used this week · last used ${tS(e.last_used_at,n)}`:`Not used yet`:`${Q(e.runs_7d,`run`)} · ${kS(e.spend_7d_usd,e.spend_partial)} this week · last used ${tS(e.last_used_at,n)}`:e.jobs?`Used by ${Q(e.jobs,`job`)}`:`No job uses it yet`:``}function HS(e){return e.toLowerCase().replace(/[\s_]+/g,`-`).replace(/[^a-z0-9-]/g,``).replace(/-{2,}/g,`-`).replace(/^-/,``)}function US(e){return HS(e).replace(/-+$/,``)}function WS(e){return e===`token`?`Personal token`:`GitHub App`}function GS(e){return!!e&&e?.status!==`connected`}function KS(e,t=Date.now()){return e?new Date(e).getTime()-t<12096e5:!1}var qS={class:`agent-field`,for:`agent-client`},JS={class:`agent-field`,for:`agent-token-name`},YS={key:0,class:`agent-field`,for:`agent-workspace`},XS={key:1,class:`agent-workspace`},ZS={class:`agent-options`},QS={class:`agent-field`,for:`agent-access`},$S={class:`agent-field`,for:`agent-expiry`},eC={key:2,class:`token-note`},tC={key:1,class:`agent-hint`,role:`status`},nC={key:2,class:`agent-hint`},rC={key:3,class:`agent-result`},iC={class:`agent-success`},aC={class:`agent-hint`},oC={class:`agent-instruction`},sC={class:`agent-code`,tabindex:`0`,"aria-label":`Agent setup`},cC={class:`agent-hint`},lC={key:4,class:`page-error`,role:`alert`},uC={class:`agent-help`},dC=[`href`],fC=160,pC=P({__name:`AgentTokenSetup`,emits:[`busy`],setup(e,{emit:t}){let n=t,r=`${window.location.origin}/mcp`,i=j([]),a=j(90),o=j(!1),s=j(``),c=j(null),l=j(`read`),u=j(30),d=j(null),f=j(!1),p=j(!1),m=j(null),h=j(`claude`),g=q(()=>d.value?kx(h.value,d.value.workspace_slug,window.location.origin,d.value.token):null),_=q(()=>i.value.find(e=>e.id===c.value)??null),v=q(()=>[{label:`Read · see jobs, runs and reports`,value:`read`},..._.value?.can_create_run_tokens?[{label:`Run · also start runs and sync repositories`,value:`run`}]:[]]),y=q(()=>wx(a.value));rr(h,()=>{f.value=!1}),rr(_,e=>{e?.can_create_run_tokens||(l.value=`read`)}),rr([s,c,l,u],()=>{m.value=null});async function b(){m.value=null;try{let e=await Jx();i.value=e.workspaces,o.value||(a.value=e.max_days,u.value=Tx(e.max_days),c.value=(e.workspaces.find(e=>e.current)??e.workspaces[0])?.id??null),o.value=!0}catch(e){m.value=X(e)}}async function x(){if(!(p.value||c.value===null)){if(!s.value.trim())m.value=`Name the token, for example after the laptop or agent that uses it.`;else{p.value=!0,n(`busy`,!0),m.value=null,f.value=!1;try{d.value=await Yx({workspace_id:c.value,name:s.value.trim(),scope:l.value,expires_in_days:u.value}),s.value=``}catch(e){m.value=X(e)}finally{p.value=!1,n(`busy`,!1)}}}}async function S(){if(g.value){m.value=null;try{await navigator.clipboard.writeText(g.value.content),f.value=!0}catch{m.value=`Could not copy. Select and copy the setup text below.`}}}return Zr(b),(e,t)=>(z(),B(R,null,[t[16]||=H(`p`,{class:`agent-lead`},`Create an API token for SecondShift’s MCP server. After creation, you’ll get setup instructions for your agent.`,-1),H(`label`,qS,[t[5]||=W(`Your agent `,-1),U(M(mx),{modelValue:h.value,"onUpdate:modelValue":t[0]||=e=>h.value=e,"input-id":`agent-client`,"aria-label":`Your agent`,options:M(Ox),"option-label":`label`,"option-value":`value`},null,8,[`modelValue`,`options`])]),o.value&&i.value.length&&!d.value?(z(),B(`form`,{key:0,id:`connect-agent-form`,class:`agent-fields`,onSubmit:Fs(x,[`prevent`])},[H(`label`,JS,[t[6]||=W(`Token name `,-1),U(M(ib),{id:`agent-token-name`,modelValue:s.value,"onUpdate:modelValue":t[1]||=e=>s.value=e,maxlength:fC,placeholder:`For example, Work laptop`,required:``},null,8,[`modelValue`])]),i.value.length>1?(z(),B(`label`,YS,[t[7]||=W(`Workspace `,-1),U(M(mx),{modelValue:c.value,"onUpdate:modelValue":t[2]||=e=>c.value=e,"input-id":`agent-workspace`,"aria-label":`Workspace`,options:i.value,"option-label":`name`,"option-value":`id`},null,8,[`modelValue`,`options`])])):(z(),B(`p`,XS,[t[8]||=W(`Workspace `,-1),H(`strong`,null,A(_.value?.name),1)])),H(`div`,ZS,[H(`label`,QS,[t[9]||=W(`Access `,-1),U(M(mx),{modelValue:l.value,"onUpdate:modelValue":t[3]||=e=>l.value=e,"input-id":`agent-access`,"aria-label":`Access`,options:v.value,"option-label":`label`,"option-value":`value`},null,8,[`modelValue`,`options`])]),H(`label`,$S,[t[10]||=W(`Expires after `,-1),U(M(mx),{modelValue:u.value,"onUpdate:modelValue":t[4]||=e=>u.value=e,"input-id":`agent-expiry`,"aria-label":`Expires after`,options:y.value,"option-label":`label`,"option-value":`value`},null,8,[`modelValue`,`options`])])]),t[12]||=H(`p`,{class:`agent-hint`},`This token works only in the selected workspace, within your permissions.`,-1),l.value===`run`?(z(),B(`p`,eC,[U(J,{name:`alert-outline`}),t[11]||=W(` Runs can spend model budget and change data through approved tools.`,-1)])):G(``,!0),U(M(Y),{type:`submit`,label:`Create token`,loading:p.value,disabled:p.value,class:`main-action`},null,8,[`loading`,`disabled`])],32)):!o.value&&!m.value?(z(),B(`p`,tC,`Loading workspaces…`)):o.value&&!i.value.length?(z(),B(`p`,nC,`Join a workspace before connecting an agent.`)):G(``,!0),d.value&&g.value?(z(),B(`div`,rC,[H(`div`,iC,[U(J,{name:`check`}),H(`strong`,null,`Token created for `+A(d.value.workspace_name),1)]),H(`p`,aC,`Expires `+A(M(tS)(d.value.expires_at))+`. Copy your setup before closing; the token is shown only once.`,1),H(`p`,oC,A(g.value.instruction),1),H(`pre`,sC,[H(`code`,null,A(g.value.content),1)]),U(M(Y),{label:f.value?`Copied`:g.value.copyLabel,severity:`secondary`,size:`small`,onClick:S},{icon:N(()=>[U(J,{name:f.value?`check`:`content-copy`},null,8,[`name`])]),_:1},8,[`label`]),H(`p`,cC,A(g.value.nextStep),1),t[13]||=H(`p`,{class:`agent-hint`},[W(`Try asking: `),H(`span`,{class:`agent-prompt`},`“List my SecondShift jobs.”`)],-1)])):G(``,!0),m.value?(z(),B(`p`,lC,[W(A(m.value)+` `,1),o.value?G(``,!0):(z(),V(M(Y),{key:0,label:`Try again`,severity:`secondary`,text:``,size:`small`,onClick:b}))])):G(``,!0),H(`div`,uC,[H(`span`,null,[t[14]||=W(`Streamable HTTP · `,-1),H(`code`,null,A(r))]),H(`a`,{href:M(Ix)(M(Fx).MCP),target:`_blank`,rel:`noopener noreferrer`},[t[15]||=W(`MCP guide `,-1),U(J,{name:`open-in-new`})],8,dC)])],64))}}),mC=Sc(`agentConnection`,{state:()=>({visible:!1})}),hC=`/accounts/login/`;function gC(e){let t=/^\/login(\?|$)/.test(e)?`/`:e;return t===`/`?hC:`${hC}?next=${encodeURIComponent(t)}`}var _C=`This job is no longer in .secondshift.yaml. Add it back to run it.`;function vC(e){return e.capabilities.filter(e=>e.required&&e.grant_status!==`approved`)}var yC=`Resume the repository to run its jobs.`;function bC(e){if(!e.length)return``;let t=e.map(e=>e.binding).join(`, `);return`${e.some(e=>e.connection_id===null)?`Connect and approve`:`Approve`} ${t} first.`}function xC(e){if(e.removed_at)return _C;if(e.enabled)return``;let t=vC(e),n=bC(t);return n&&`${n} Scheduled runs would fail without ${t.length===1?`it`:`them`}.`}var SC={expired:`uses a connection whose sign-in expired`,revoked:`uses a connection that was disconnected`},CC=`cannot reach what the job needs through its connection`;function wC(e,t){for(let n of e){if(!n.required||n.grant_status!==`approved`)continue;let e=t.find(e=>e.id===n.connection_id);if(e&&e.status!==`connected`)return`${n.binding} ${SC[e.status]}.`;if(n.access&&!n.access.ok)return`${n.binding} ${CC}.`}return``}function TC(e,t,n,r=[]){return e.removed_at?_C:t?DC(n,e)||bC(vC(e))||wC(e.capabilities,r):yC}function EC(e){return e?.problem?e.needs_setup?{text:`Nothing can run jobs yet. Add a model API key or connect a Claude Code or Codex subscription.`,action:`Choose what runs jobs`,to:{path:`/models`}}:e.chosen?e.fix_connection_id===null?{text:`Runs will fail. ${e.problem}`,action:`Open models`,to:{path:`/models`}}:{text:`Runs will fail. ${e.problem}`,action:`Fix the provider`,to:{path:`/models`,query:{connection:String(e.fix_connection_id)}}}:{text:`Runs will fail. ${e.problem}`,action:`Choose what runs jobs`,to:{path:`/models`}}:null}function DC(e,t){return t?.execution_problem||e?.problem||``}function OC(e,t){return e.grant_status!==`approved`||t!==e.connection_id}function kC(e){let t={key:`code`,title:`Add your code`,detail:``,done:!1,actions:[],agentHint:null};if(e.accessProblem)return t.detail=e.accessProblem,e.canConnect?t.actions.push({label:`Check access`,to:{path:`/connections`},icon:`shield-key-outline`}):t.detail+=` Ask a workspace owner to fix it.`,t;if(e.repositories>0)return t.done=!0,t.detail=e.repositories===1&&e.repositoryName?`${e.repositoryName} is connected.`:`${e.repositories} repositories are connected.`,t;if(!e.canAddLocal&&!e.canAddGitHub)return t.detail=`Ask a workspace owner to add a repository.`,t;e.offerAgent&&(t.agentHint={lead:`No .secondshift.yaml yet?`,link:`Let your coding agent write one`});let n={label:`Connect GitHub`,to:{path:`/repositories/new`,query:{source:`github`}},icon:`github`};return e.canAddLocal?(t.detail=`Pick a Git repository with a .secondshift.yaml. Connect GitHub instead if jobs should open draft pull requests.`,t.actions.push({label:`Add local repository`,to:{path:`/repositories/new`,query:{source:`local`}},icon:`folder-open-outline`}),e.canAddGitHub&&t.actions.push(n)):(t.detail=`Choose GitHub repositories with a .secondshift.yaml. SecondShift lists their jobs.`,e.canAddGitHub&&t.actions.push(n)),t}function AC(e){let t=!e.execution?.needs_setup;return{key:`runner`,title:`Choose what runs jobs`,detail:t?e.execution?.label?`${e.execution.label} runs jobs.`:`Ready to run jobs.`:e.canConnect?`Add a model API key, or connect a Claude Code or Codex subscription.`:`Ask a workspace owner to set up a model.`,done:t,actions:t||!e.canConnect?[]:[{label:`Set up a model`,to:{path:`/models`},icon:`creation-outline`}],agentHint:null}}function jC(e){let t={key:`job`,title:`Run your first job`,detail:``,done:e.enabledJobs>0||e.hasRuns,actions:[],agentHint:null};return t.done?(t.detail=e.enabledJobs>0?`A job is on the schedule.`:`A job has run.`,t):e.repositories===0?(t.detail=`Jobs appear once a repository is added.`,t):e.jobs===0?(t.detail=`Add a job to .secondshift.yaml, then resync the repository.`,t.actions.push({label:`Open repositories`,to:{path:`/repositories`},icon:`arrow-right`}),e.offerAgent&&(t.agentHint={lead:``,link:`Let your coding agent write a job`}),t):(t.detail=`Run a job or a one-off task.`,t.actions.push({label:`Open jobs`,to:{path:`/jobs`},icon:`arrow-right`}),t)}function MC(e){let t=[kC(e),AC(e),jC(e)];return t.every(e=>e.done)?null:t}function NC(e,t){return{binding:t.binding,job:e.name,review:String(e.id)}}function PC(e){if(e.inSetup)return{jobs:null,models:null,connections:null};let t=e.execution?.problem;return{jobs:e.jobsAwaitingApproval?{text:`${e.jobsAwaitingApproval} to approve`,tone:`warning`}:null,models:t?e.execution?.chosen?{text:`failing`,tone:`danger`}:{text:`not set up`,tone:`warning`}:null,connections:e.brokenConnections?{text:`${e.brokenConnections} failing`,tone:`danger`}:e.bindingsToSetUp?{text:`${e.bindingsToSetUp} to set up`,tone:`warning`}:null}}var $={AddGitHubRepositories:`add GitHub repositories`,AddLocalRepositories:`add local repositories`,AddConnections:`add connections`,EditConnections:`edit connections`,TestConnections:`test connections`,DisconnectConnections:`disconnect connections`,DeleteConnections:`delete connections`,ReviewCapabilities:`review capabilities`,InvitePeople:`invite people`,ManageMembers:`change roles or remove people`,ResyncRepositories:`resync repositories`,ChangeRepositoryState:`change repository state`,RemoveRepositories:`remove repositories`,EnableJobs:`enable jobs`,RunJobs:`run jobs`,ManageTriggers:`turn job triggers on or off`,AllowPullRequests:`let tasks open pull requests`,AllowIssues:`let jobs open issues`};function FC(e,t){return e?.permissions.includes(t)??!1}function IC(){return zx(`/connections`)}function LC(){return zx(`/capability-needs`)}function RC(){return zx(`/connections/webhook/sample`)}function zC(e){return Z(`/connections/webhook`,e)}function BC(e){return Z(`/connections/model`,e)}function VC(e,t){return Z(`/connections/${e}/model`,t)}function HC(e,t){return Z(`/connections/${e}/webhook`,t)}function UC(e,t){return Z(`/connections/${e}/attribution`,{attribution:t})}function WC(e){return Z(`/connections/${e}/revoke`)}function GC(e){return Kx(`/connections/${e}`)}function KC(e){return Z(`/connections/${e}/test`)}async function qC(e,t){let n=e.jobs.filter(e=>e.grant_status===`pending`||e.grant_status===`unconfigured`);for(let e of n)await Z(`/jobs/${e.job_id}/capabilities/${e.capability_id}/grant`,{decision:`approved`,connection_id:t})}function JC(e,t){return Z(`/connections/${e}/mcp`,t)}function YC(e,t){return Z(`/connections/mcp/inspect`,{provider:e,settings:t})}async function XC(e){return(await Z(`/connections/mcp/oauth/start`,e)).authorize_url}function ZC(){return zx(`/connections/mcp-providers`)}function QC(e){return Z(`/connections/mcp`,e)}function $C(e){return Z(`/connections/api/inspect`,e)}function ew(e){return Z(`/connections/api`,e)}function tw(e,t){return Z(`/connections/${e}/api`,t)}function nw(e,t){return Z(t?`/connections/${t}/model/models`:`/connections/model/models`,e)}function rw(){return zx(`/invites/pending`)}function iw(){return Z(`/invites/pending/accept`)}function aw(){return Z(`/invites/pending/dismiss`)}function ow(){return zx(`/invites`)}function sw(e,t){return Z(`/invites`,{role:e,note:t})}function cw(e){return Kx(`/invites/${e}`)}function lw(){return zx(`/jobs`)}function uw(e){return zx(`/jobs/${e}`)}function dw(e,t){return Z(`/jobs/${e}/enabled`,{enabled:t})}function fw(e,t,n){return Z(`/jobs/${e}/capabilities/${t}/grant`,n)}function pw(){return zx(`/repositories`)}function mw(e){return zx(`/repositories/${e}`)}function hw(e){return Z(`/repositories/local`,{path:e})}function gw(e){return Z(`/repositories/${e}/validate`)}function _w(e){return Z(`/repositories/${e}/resync`)}function vw(e,t){return Z(`/repositories/${e}/enabled`,{enabled:t})}function yw(e,t){return Z(`/repositories/${e}/auto-sync`,{enabled:t})}function bw(e,t,n){return Z(`/repositories/${e}/pull-requests`,{allow:t,run_ci:n})}function xw(e,t){return Z(`/repositories/${e}/issues`,{allow:t})}function Sw(e){return Kx(`/repositories/${e}`)}function Cw(){return zx(`/me`)}function ww(){return zx(`/overview`)}function Tw(e){let t=new URLSearchParams;e.q?.trim()&&t.set(`q`,e.q.trim()),e.status&&t.append(`status`,e.status),e.job_id&&t.set(`job_id`,String(e.job_id)),e.repository_id&&t.set(`repository_id`,String(e.repository_id)),e.period&&t.set(`period`,e.period),e.sort&&e.sort!==`newest`&&t.set(`sort`,e.sort),e.page&&e.page>1&&t.set(`page`,String(e.page)),e.page_size&&t.set(`page_size`,String(e.page_size));let n=t.toString();return n?`?${n}`:``}function Ew(e={}){return zx(`/runs${Tw(e)}`)}function Dw(e){return zx(`/runs/${e}`)}function Ow(e){return Z(`/runs/${e}/cancel`)}function kw(e,t){return Z(`/runs/${e}/deliveries/${t}/retry`)}function Aw(e){return e.status===`pending`||e.status===`retrying`}async function jw(e){try{return{id:(await Z(`/jobs/${e}/run`)).id,started:!0}}catch(e){let t=e instanceof Rx&&e.status===409?e.payload?.run_id:void 0;if(typeof t==`number`)return{id:t,started:!1};throw e}}async function Mw(e,t){let n=await Z(`/runs/${e}/again`,{idempotency_key:t});return{id:n.run.id,started:n.started}}function Nw(e){return e===`queued`||e===`running`}function Pw(e,t,n=!1){return`/api/runs/${e}/files/${t}${n?`?download=true`:``}`}function Fw(e,t=!1){return`/api/runs/${e}/changes${t?`?download=true`:``}`}function Iw(e,t){return`/api/runs/${e}/saved-files/${t.split(`/`).map(encodeURIComponent).join(`/`)}`}function Lw(e,t){return Bx(`/runs/${e}/files/${t}`)}var Rw=6,zw=Sc(`app`,{state:()=>({initializing:!0,authenticated:!1,error:null,user:null,overview:null,repositories:[],jobs:[],runs:[],connections:[],needs:[],mcpProviders:[],pendingInvite:null}),getters:{can:e=>t=>FC(e.user,t),canAddLocalRepositories:e=>!!e.user?.local_repositories_enabled&&FC(e.user,$.AddLocalRepositories),jobsAwaitingApproval:e=>e.jobs.filter(e=>yS(e.grant_status)).length,brokenConnections:e=>e.connections.filter(e=>e.kind!==`model`&&(e.status!==`connected`||e.last_check?.ok===!1)).length,bindingsToSetUp:e=>e.needs.filter(e=>e.required&&(e.status===`missing`||e.status===`unavailable`)).length,setupChecklist:e=>e.overview?MC({repositories:e.repositories.length,repositoryName:e.repositories.length===1?e.repositories[0].display_name:``,accessProblem:e.repositories.length?e.connections.find(e=>e.kind===`source`&&e.status===`connected`&&e.last_check?.ok===!1)?.last_check?.message??``:``,execution:e.overview.execution,jobs:e.jobs.length,enabledJobs:e.overview.enabled_jobs,hasRuns:e.runs.length>0,canAddGitHub:FC(e.user,$.AddGitHubRepositories),canAddLocal:!!e.user?.local_repositories_enabled&&FC(e.user,$.AddLocalRepositories),canConnect:FC(e.user,$.AddConnections),offerAgent:!e.overview.has_agent_token}):null,mcpProvider:e=>t=>e.mcpProviders.find(e=>e.key===t)},actions:{includeRecentRun(e){this.runs=[e,...this.runs.filter(t=>t.id!==e.id)].slice(0,Rw)},async initialize(){try{this.user=await Cw(),this.authenticated=!0,await Promise.all(this.user.workspace_slug?[this.refresh(),this.loadMCPProviders(),this.loadPendingInvite()]:[this.loadPendingInvite()])}catch(e){if(e instanceof Lx){this.authenticated=!1;let{pathname:e,search:t}=window.location;window.location.replace(gC(e+t))}else this.error=X(e,`Unable to start SecondShift`)}finally{this.initializing=!1}},async refresh(){let[e,t,n,r,i,a]=await Promise.all([ww(),pw(),lw(),Ew({page_size:Rw}),IC(),LC()]);this.overview=e,this.repositories=t,this.jobs=n,this.runs=r.items,this.connections=i,this.needs=a},async loadPendingInvite(){this.pendingInvite=await rw()},async loadMCPProviders(){this.mcpProviders=await ZC()},async refreshRuns(){let[e,t]=await Promise.all([ww(),Ew({page_size:Rw})]);this.overview=e,this.runs=t.items}}}),Bw={key:0,class:`invite-prompt-wrap`},Vw={class:`invite-prompt`,role:`status`},Hw={key:0},Uw={key:1,class:`invite-prompt-error`},Ww=P({__name:`InvitePrompt`,setup(e){let t=zw(),n=j(!1),r=j(null);async function i(e,i){n.value=!0,r.value=null;try{await e(),i?window.location.assign(`/`):t.pendingInvite=null}catch(e){r.value=X(e,`Something went wrong`),n.value=!1}}return(e,a)=>M(t).pendingInvite?(z(),B(`div`,Bw,[H(`section`,Vw,[U(J,{name:`account-plus-outline`}),H(`div`,null,[H(`strong`,null,`Join `+A(M(t).pendingInvite.workspace_name)+` as `+A(M(gS)(M(t).pendingInvite.role))+`?`,1),M(t).pendingInvite.invited_by?(z(),B(`span`,Hw,A(M(t).pendingInvite.invited_by)+` invited you.`,1)):G(``,!0),r.value?(z(),B(`span`,Uw,A(r.value),1)):G(``,!0)]),U(M(Y),{label:`Not now`,severity:`secondary`,text:``,disabled:n.value,onClick:a[0]||=e=>i(M(aw),!1)},null,8,[`disabled`]),U(M(Y),{class:`main-action`,label:`Join ${M(t).pendingInvite.workspace_name}`,loading:n.value,onClick:a[1]||=e=>i(M(iw),!0)},null,8,[`label`,`loading`])])])):G(``,!0)}}),Gw={class:`shift-status`,"aria-label":`Run activity`},Kw=15e3,qw=3e3,Jw=P({__name:`ShiftStatus`,setup(e){let t=Qg(),n=zw(),r=j(0),i=j(0);async function a(){try{let e=await Ew({page_size:1});r.value=e.status_counts.running??0,i.value=e.status_counts.queued??0}catch{}}let o;function s(){window.clearTimeout(o),o=window.setTimeout(async()=>{await a(),s()},r.value+i.value?qw:Kw)}async function c(){await a(),s()}Zr(()=>void c()),ei(()=>window.clearTimeout(o)),rr(()=>t.fullPath,()=>void c()),rr(()=>n.runs,()=>void c());let l=q(()=>r.value+i.value);return(e,t)=>{let n=F(`RouterLink`);return z(),B(`div`,Gw,[r.value?(z(),V(n,{key:0,to:{path:`/runs`,query:{status:`running`}},class:`shift-activity live`},{default:N(()=>[t[0]||=H(`span`,{class:`shift-dot`,"aria-hidden":`true`},null,-1),H(`span`,null,A(r.value)+` running`,1)]),_:1})):G(``,!0),i.value?(z(),V(n,{key:1,to:{path:`/runs`,query:{status:`queued`}},class:`shift-activity`},{default:N(()=>[U(J,{name:`clock-outline`}),H(`span`,null,A(i.value)+` queued`,1)]),_:1})):G(``,!0),l.value?G(``,!0):(z(),V(n,{key:2,to:`/runs`,class:`shift-activity idle`},{default:N(()=>[...t[1]||=[H(`span`,{class:`shift-dot`,"aria-hidden":`true`},null,-1),H(`span`,null,`No active runs`,-1)]]),_:1}))])}}}),Yw=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},Xw=Yw(Jw,[[`__scopeId`,`data-v-a1f4eaea`]]);function Zw(){return zx(`/workspaces`)}function Qw(e){return Z(`/workspaces/current`,{workspace_id:e})}function $w(e){return Z(`/workspaces`,{name:e})}function eT(){window.location.assign(`/`)}var tT={class:`create-workspace-row`},nT={key:0,class:`page-error`},rT=P({__name:`CreateWorkspaceForm`,setup(e){let t=j(``),n=j(!1),r=j(null);async function i(){n.value=!0,r.value=null;try{await $w(t.value),eT()}catch(e){r.value=X(e,`Could not create the workspace`),n.value=!1}}return(e,a)=>(z(),B(`form`,{class:`create-workspace`,onSubmit:Fs(i,[`prevent`])},[H(`div`,tT,[U(M(ib),{modelValue:t.value,"onUpdate:modelValue":a[0]||=e=>t.value=e,maxlength:`160`,placeholder:`Workspace name, e.g. Platform team`,"aria-label":`Workspace name`,autofocus:``},null,8,[`modelValue`]),U(M(Y),{class:`main-action`,type:`submit`,label:`Create workspace`,loading:n.value,disabled:!t.value.trim()},{icon:N(()=>[U(J,{name:`plus`})]),_:1},8,[`loading`,`disabled`])]),r.value?(z(),B(`p`,nT,A(r.value),1)):G(``,!0)],32))}}),iT=[`aria-expanded`],aT={class:`workspace-name`},oT={class:`workspace-name`},sT=[`aria-current`],cT={key:0,class:`avatar small`,"aria-hidden":`true`},lT={class:`workspace-option-name`},uT={key:2,class:`workspace-option-role`},dT=P({__name:`WorkspaceSwitcher`,setup(e){let t=zw(),n=j([]),r=j(null),i=j(!1),a=j(!1),o=q(()=>t.user?.can_create_workspace??!1),s=q(()=>n.value.length>1||o.value),c=q(()=>{let e=n.value.map(e=>({label:e.name,workspaceRole:gS(e.role),initials:e.name.slice(0,1).toUpperCase(),current:e.current,class:e.current?`current`:void 0,command:()=>u(e)}));return o.value?[...e,{separator:!0},{label:`New workspace`,icon:`plus`,command:()=>{i.value=!0}}]:e}),l=q(()=>t.user?.role?gS(t.user.role):``);async function u(e){e.current||(await Qw(e.id),eT())}return Zr(async()=>{try{n.value=await Zw()}catch{}}),(e,n)=>{let o=F(`RouterLink`);return z(),B(R,null,[s.value?(z(),B(`button`,{key:0,type:`button`,class:k([`workspace-switcher`,{"is-open":a.value}]),"aria-label":`Switch workspace`,"aria-haspopup":`menu`,"aria-expanded":a.value,"aria-controls":`workspace-menu`,onClick:n[0]||=e=>r.value?.toggle(e)},[n[4]||=H(`img`,{src:`/static/secondshift-mark.svg`,alt:``,class:`brand-mark`},null,-1),H(`strong`,aT,A(M(t).user?.workspace_name),1),U(J,{name:`unfold-more-horizontal`})],10,iT)):(z(),V(o,{key:1,to:`/`,class:`workspace-switcher static`,title:l.value?`${M(t).user?.workspace_name} · ${l.value}`:void 0},{default:N(()=>[n[5]||=H(`img`,{src:`/static/secondshift-mark.svg`,alt:``,class:`brand-mark`},null,-1),H(`strong`,oT,A(M(t).user?.workspace_name),1)]),_:1},8,[`title`])),U(M(mv),{id:`workspace-menu`,ref_key:`menu`,ref:r,model:c.value,popup:``,class:`row-menu workspace-menu`,onShow:n[1]||=e=>a.value=!0,onHide:n[2]||=e=>a.value=!1},{start:N(()=>[...n[6]||=[H(`div`,{class:`menu-heading`},`Workspaces`,-1)]]),item:N(({item:e,props:t})=>[H(`a`,K(t.action,{class:`row-menu-item workspace-option`,"aria-current":e.current?`true`:void 0}),[e.workspaceRole?(z(),B(`span`,cT,A(e.initials),1)):(z(),V(J,{key:1,name:`plus`})),H(`span`,lT,A(e.label),1),e.workspaceRole?(z(),B(`small`,uT,A(e.workspaceRole),1)):G(``,!0),e.current?(z(),V(J,{key:3,name:`check`,class:`workspace-current-check`})):G(``,!0)],16,sT)]),_:1},8,[`model`]),U(M(By),{visible:i.value,"onUpdate:visible":n[3]||=e=>i.value=e,modal:``,header:`New workspace`,style:{width:`min(480px, calc(100vw - 32px))`}},{default:N(()=>[n[7]||=H(`p`,{class:`dialog-lead`},`You will own it and can invite people from its Settings page.`,-1),U(rT)]),_:1},8,[`visible`])],64)}}}),fT={class:`app-shell`},pT={class:`mobile-bar`},mT=[`aria-label`,`aria-expanded`],hT={"aria-label":`Primary navigation`},gT={class:`nav-label`},_T={class:`sidebar-foot`},vT=[`aria-expanded`,`title`],yT={class:`avatar`},bT={class:`account-name`},xT={class:`account-menu-heading`},ST=[`href`,`target`,`rel`],CT=P({__name:`AppShell`,setup(e){let t=mC(),n=j(!1),r=Qg(),i=Zg(),a=zw(),o=j(!1),s=q(()=>PC({inSetup:a.setupChecklist!==null,jobsAwaitingApproval:a.jobsAwaitingApproval,brokenConnections:a.brokenConnections,bindingsToSetUp:a.bindingsToSetUp,execution:a.overview?.execution})),c=q(()=>[{label:`Operate`,items:[{label:`Overview`,to:`/`,icon:`view-dashboard-outline`,note:``},{label:`Repositories`,to:`/repositories`,icon:`source-repository`,note:``},{label:`Jobs`,to:`/jobs`,icon:`calendar-clock-outline`,note:s.value.jobs?.text??``,tone:s.value.jobs?.tone},{label:`Runs`,to:`/runs`,icon:`play-circle-outline`,note:``}]},{label:`Setup`,items:[{label:`Models`,to:`/models`,icon:`creation-outline`,note:s.value.models?.text??``,tone:s.value.models?.tone},{label:`Connections`,to:`/connections`,icon:`connection`,note:s.value.connections?.text??``,tone:s.value.connections?.tone},{label:`Settings`,to:`/settings`,icon:`cog-outline`,note:``}]}]),l=q(()=>c.value.flatMap(e=>e.items).find(e=>e.to===`/`?r.path===`/`:r.path===e.to||r.path.startsWith(`${e.to}/`)));rr(()=>r.fullPath,()=>{o.value=!1});function u(e){e.key===`Escape`&&(o.value=!1)}Zr(()=>window.addEventListener(`keydown`,u)),ei(()=>window.removeEventListener(`keydown`,u));let d=q(()=>(a.user?.email??`S`).slice(0,1).toUpperCase()),f=q(()=>(a.user?.email??``).split(`@`)[0]||`Account`),p=j(null),m=j(!1),h=q(()=>[{label:`API tokens`,appIcon:`key-variant`,command:()=>void i.push(`/account`)},{label:`Docs`,appIcon:`book-open-variant-outline`,url:Px,target:`_blank`},{label:`Sign out`,appIcon:`logout`,disabled:g.value,command:()=>void _()}]),g=j(!1);async function _(){g.value=!0;try{await qx(),window.location.assign(hC)}catch{g.value=!1}}return(e,r)=>{let i=F(`RouterLink`);return z(),B(`div`,fT,[H(`header`,pT,[U(i,{to:`/`,class:`mobile-brand`},{default:N(()=>[r[8]||=H(`img`,{src:`/static/secondshift-mark.svg`,alt:``},null,-1),H(`strong`,null,A(M(a).user?.workspace_name??`SecondShift`),1)]),_:1}),H(`button`,{class:`mobile-menu`,type:`button`,"aria-label":o.value?`Close navigation`:`Open navigation`,"aria-expanded":o.value,"aria-controls":`sidebar`,onClick:r[0]||=e=>o.value=!o.value},[U(J,{name:o.value?`close`:`menu`},null,8,[`name`])],8,mT)]),o.value?(z(),B(`div`,{key:0,class:`mobile-backdrop`,"aria-hidden":`true`,onClick:r[1]||=e=>o.value=!1})):G(``,!0),H(`aside`,{id:`sidebar`,class:k([`sidebar`,{open:o.value}])},[U(dT),H(`nav`,hT,[(z(!0),B(R,null,I(c.value,e=>(z(),B(`section`,{key:e.label,class:`nav-group`},[H(`h2`,gT,A(e.label),1),(z(!0),B(R,null,I(e.items,e=>(z(),V(i,{key:e.to,to:e.to,class:k({active:l.value?.to===e.to}),"aria-current":l.value?.to===e.to?`page`:void 0,onClick:r[2]||=e=>o.value=!1},{default:N(()=>[U(J,{name:e.icon},null,8,[`name`]),H(`span`,null,A(e.label),1),e.note?(z(),B(`small`,{key:0,class:k([`nav-note`,e.tone])},A(e.note),3)):G(``,!0)]),_:2},1032,[`to`,`class`,`aria-current`]))),128))]))),128))]),H(`div`,_T,[U(Xw),H(`button`,{type:`button`,class:k([`account`,{"is-open":m.value}]),"aria-haspopup":`menu`,"aria-expanded":m.value,"aria-controls":`account-menu`,title:M(a).user?.email,onClick:r[3]||=e=>p.value?.toggle(e)},[H(`span`,yT,A(d.value),1),H(`span`,bT,A(f.value),1),U(J,{name:`unfold-more-horizontal`})],10,vT),U(M(mv),{id:`account-menu`,ref_key:`accountMenu`,ref:p,model:h.value,popup:``,class:`row-menu account-menu`,onShow:r[4]||=e=>m.value=!0,onHide:r[5]||=e=>m.value=!1},{start:N(()=>[H(`div`,xT,[r[9]||=W(`Signed in as`,-1),H(`strong`,null,A(M(a).user?.email),1)])]),item:N(({item:e,props:t})=>[H(`a`,K(t.action,{href:e.url,target:e.target,rel:e.url?`noopener noreferrer`:void 0,class:`row-menu-item`}),[U(J,{name:e.appIcon},null,8,[`name`]),W(` `+A(e.label),1)],16,ST)]),_:1},8,[`model`])])],2),U(M(By),{visible:M(t).visible,"onUpdate:visible":r[7]||=e=>M(t).visible=e,modal:``,header:`Create API token`,class:`agent-dialog`,draggable:!1,closable:!n.value,"close-on-escape":!n.value},{default:N(()=>[M(t).visible?(z(),V(pC,{key:0,onBusy:r[6]||=e=>n.value=e})):G(``,!0)]),_:1},8,[`visible`,`closable`,`close-on-escape`]),H(`main`,null,[U(Ww),L(e.$slots,`default`)])])}}}),wT={class:`no-workspace`},TT={class:`no-workspace-card`},ET={key:0},DT={key:1},OT=P({__name:`NoWorkspaceView`,setup(e){let t=zw(),n=j(!1);async function r(){n.value=!0;try{await qx(),window.location.assign(hC)}catch{n.value=!1}}return(e,i)=>(z(),B(`main`,wT,[U(Ww),H(`section`,TT,[i[4]||=H(`img`,{src:`/static/secondshift-mark.svg`,alt:`SecondShift`},null,-1),i[5]||=H(`span`,{class:`eyebrow`},`No workspace`,-1),i[6]||=H(`h1`,null,`You are not in a workspace yet`,-1),M(t).user?.can_create_workspace?(z(),B(`p`,ET,[i[0]||=W(` You are signed in as `,-1),H(`strong`,null,A(M(t).user?.email),1),i[1]||=W(`. Create a workspace for your team, or ask an owner of an existing one for an invite link. `,-1)])):(z(),B(`p`,DT,[i[2]||=W(` You are signed in as `,-1),H(`strong`,null,A(M(t).user?.email),1),i[3]||=W(`. Ask a workspace owner for an invite link. Open it while signed in here and you can join. `,-1)])),M(t).user?.can_create_workspace?(z(),V(rT,{key:2,class:`no-workspace-create`})):G(``,!0),U(M(Y),{label:`Sign out`,severity:`secondary`,loading:n.value,onClick:r},{icon:N(()=>[U(J,{name:`logout`})]),_:1},8,[`loading`])])]))}}),kT={key:0,class:`boot-screen`},AT=P({__name:`App`,setup(e){let t=zw();return Zr(()=>t.initialize()),(e,n)=>{let r=F(`RouterView`);return M(t).initializing||!M(t).authenticated?(z(),B(`div`,kT,[n[0]||=H(`img`,{src:`/static/secondshift-mark.svg`,alt:``,class:`boot-mark`},null,-1),H(`span`,null,A(M(t).error??`Starting the shift…`),1)])):M(t).user?.workspace_slug?(z(),V(CT,{key:2},{default:N(()=>[U(r)]),_:1})):(z(),V(OT,{key:1}))}}}),jT={class:`panel api-tokens`},MT={class:`panel-heading`},NT={key:0,class:`heading-count`},PT={key:0,class:`member-list token-list`},FT={class:`avatar small`},IT={class:`member-email`},LT={class:`default-badge`},RT=[`title`],zT=[`title`],BT={key:0,class:`invite-confirm`},VT={key:1,class:`token-empty`},HT={key:2,class:`page-error`},UT=P({__name:`ApiTokensPanel`,setup(e){let t=j([]),n=j([]),r=j(!1),i=j(null),a=j(null),o=j(null),s=mC();rr(()=>s.visible,e=>{e||c()});async function c(){i.value=null;try{let e=await Jx();t.value=e.items,n.value=e.workspaces,r.value=!0}catch(e){i.value=X(e)}}async function l(e){if(!o.value){i.value=null,o.value=e.id;try{await Xx(e.id),t.value=t.value.filter(t=>t.id!==e.id)}catch(e){i.value=X(e)}finally{o.value=null,a.value=null}}}return Zr(c),(e,c)=>(z(),B(`section`,jT,[H(`div`,MT,[H(`div`,null,[H(`h2`,null,[c[2]||=W(`API tokens `,-1),t.value.length?(z(),B(`span`,NT,A(t.value.length),1)):G(``,!0)]),c[3]||=H(`p`,null,`Create and revoke tokens for coding agents and other MCP clients. Each token works in one workspace, within your permissions.`,-1)]),U(M(Y),{label:`Create API token`,onClick:c[0]||=e=>M(s).visible=!0},{icon:N(()=>[U(J,{name:`plus`})]),_:1})]),t.value.length?(z(),B(`ul`,PT,[(z(!0),B(R,null,I(t.value,e=>(z(),B(`li`,{key:e.id},[H(`span`,FT,[U(J,{name:`key-variant`})]),H(`span`,IT,[H(`bdi`,null,A(e.name),1),H(`span`,LT,A(e.scope===`run`?`Run`:`Read`),1),H(`small`,null,[n.value.length>1?(z(),B(R,{key:0},[H(`bdi`,null,A(e.workspace_name),1),c[4]||=W(` · `,-1)],64)):G(``,!0),H(`span`,{title:M($x)(e.expires_at)},`Expires `+A(M(tS)(e.expires_at)),9,RT),c[5]||=W(` · `,-1),e.last_used_at?(z(),B(`span`,{key:1,title:M($x)(e.last_used_at)},`Used `+A(M(tS)(e.last_used_at)),9,zT)):(z(),B(R,{key:2},[W(`Not used yet`)],64))])]),a.value===e.id?(z(),B(`span`,BT,[U(M(Y),{label:`Keep`,severity:`secondary`,text:``,size:`small`,disabled:o.value===e.id,onClick:c[1]||=e=>a.value=null},null,8,[`disabled`]),U(M(Y),{label:`Revoke token`,severity:`danger`,size:`small`,loading:o.value===e.id,onClick:t=>l(e)},null,8,[`loading`,`onClick`])])):(z(),V(M(Y),{key:1,label:`Revoke`,severity:`secondary`,text:``,size:`small`,onClick:t=>a.value=e.id},null,8,[`onClick`]))]))),128))])):r.value?(z(),B(`p`,VT,`No API tokens yet. Create a token to give your agent access to SecondShift.`)):G(``,!0),i.value?(z(),B(`p`,HT,A(i.value),1)):G(``,!0)]))}}),WT={key:0,class:`crumbs`,"aria-label":`Breadcrumb`},GT={key:0,class:`title-aside`},KT={class:`page-actions`},qT=P({__name:`PageHeader`,props:{title:{},aside:{},description:{},parent:{},compact:{type:Boolean}},setup(e){return(t,n)=>{let r=F(`RouterLink`);return z(),B(`header`,{class:k([`page-header`,{compact:e.compact}])},[H(`div`,null,[e.parent?(z(),B(`nav`,WT,[U(r,{to:e.parent.to},{default:N(()=>[W(A(e.parent.label),1)]),_:1},8,[`to`]),n[0]||=H(`span`,{"aria-hidden":`true`},`/`,-1)])):G(``,!0),H(`h1`,null,[W(A(e.title),1),e.aside?(z(),B(`span`,GT,A(e.aside),1)):G(``,!0)]),H(`p`,null,A(e.description),1)]),H(`div`,KT,[L(t.$slots,`default`)])],2)}}}),JT={class:`page`},YT=P({__name:`AccountView`,setup(e){let t=zw();return(e,n)=>(z(),B(`div`,JT,[U(qT,{compact:``,title:`Account`,description:M(t).user?.email??``},null,8,[`description`]),U(UT)]))}}),XT=[`href`],ZT=P({__name:`DocsLink`,props:{page:{},section:{}},setup(e){let t=e,n=q(()=>Ix(t.page,t.section));return(e,t)=>(z(),B(`a`,{href:n.value,target:`_blank`,rel:`noopener noreferrer`},[L(e.$slots,`default`),t[0]||=W(),U(J,{name:`open-in-new`})],8,XT))}}),QT=`https://github.com/settings/personal-access-tokens`,$T={contents:`read`,pull_requests:`read`,actions:`read`,statuses:`read`},eE={...$T,contents:`write`,pull_requests:`write`,issues:`write`};function tE(e=!1){return`${QT}/new?${new URLSearchParams({name:`SecondShift`,description:e?`SecondShift: sync, GitHub tools, draft pull requests and issues.`:`SecondShift: sync and read-only GitHub tools.`,expires_in:`90`,...e?eE:$T})}`}function nE(){return zx(`/repositories/github/available`)}function rE(e,t){return Z(`/repositories/github`,{connection_id:e.connection_id,repository_id:e.repository_id,branch:t})}function iE(e){return zx(`/repositories/github/${e.connection_id}/${e.repository_id}/branches`)}function aE(e,t=null){return Z(`/connections/github-token`,t===null?{token:e}:{token:e,connection_id:t})}var oE=Sc(`githubRepositories`,()=>{let e=j([]),t=j(null),n=j(!1),r=j(!1),i=j([]),a=j(!1),o=j(null),s=j(!1),c=j(null),l=0;async function u(e){let t=++l;if(i.value=[],o.value=null,a.value=!!e,e)try{let n=await iE(e);if(t!==l)return;i.value=n}catch(e){if(t!==l)return;o.value=X(e,`Unable to load branches`)}finally{t===l&&(a.value=!1)}}async function d(){r.value=!0,e.value=[],t.value=null;try{let n=await nE();e.value=n.repositories,t.value=n.error||null}catch(e){t.value=X(e,`Unable to load GitHub repositories`)}finally{r.value=!1}}async function f(e,r){n.value=!0,t.value=null;try{return await rE(e,r)}catch(e){return t.value=X(e,`Unable to import repository`),null}finally{n.value=!1}}async function p(e,t=null){s.value=!0,c.value=null;try{return await aE(e.trim(),t),!0}catch(e){return c.value=X(e,`Unable to connect the token`),!1}finally{s.value=!1}}function m(){c.value=null}return{clearTokenError:m,sources:e,error:t,importing:n,loading:r,branches:i,branchesLoading:a,branchesError:o,connecting:s,tokenError:c,load:d,loadBranches:u,importRepository:f,connectToken:p}}),sE=[`aria-busy`],cE={class:`github-token-row`},lE={key:0,class:`github-token-guide`},uE=[`href`],dE=[`href`],fE={key:1},pE=[`href`],mE={key:2,class:`form-error`,role:`alert`},hE=P({__name:`GitHubTokenForm`,props:{connectionId:{default:null}},emits:[`connected`],setup(e,{emit:t}){let n=e,r=t,i=oE(),{connecting:a,tokenError:o}=Cc(i),s=j(``);i.clearTokenError();async function c(){s.value.trim()&&await i.connectToken(s.value,n.connectionId)&&(s.value=``,r(`connected`))}return(t,n)=>(z(),B(`form`,{class:`github-token-form`,"aria-busy":M(a),onSubmit:Fs(c,[`prevent`])},[H(`div`,cE,[U(M(ib),{modelValue:s.value,"onUpdate:modelValue":n[0]||=e=>s.value=e,type:`password`,"aria-label":`Fine-grained personal access token`,placeholder:`github_pat_…`,autocomplete:`new-password`,maxlength:`2000`,autofocus:``},null,8,[`modelValue`]),U(M(Y),{class:`main-action`,type:`submit`,label:e.connectionId===null?`Connect`:`Replace token`,loading:M(a),disabled:!s.value.trim()},{icon:N(()=>[U(J,{name:`check`})]),_:1},8,[`label`,`loading`,`disabled`])]),e.connectionId===null?(z(),B(`div`,lE,[H(`ol`,null,[H(`li`,null,[H(`a`,{href:M(tE)(),target:`_blank`,rel:`noopener noreferrer`},[n[1]||=W(`Create a fine-grained token on GitHub `,-1),U(J,{name:`open-in-new`})],8,uE),n[2]||=W(`. Read permissions are filled in.`,-1)]),n[3]||=H(`li`,null,`Choose the resource owner (your account or organization), set an expiration, and select only the repositories you want to connect.`,-1),n[4]||=H(`li`,null,`Generate the token, copy it, then paste it above and select Connect. If your organization requires approval, an owner must approve it before its repositories appear.`,-1)]),H(`p`,null,[n[7]||=W(`Need draft pull requests or issues? `,-1),H(`a`,{href:M(tE)(!0),target:`_blank`,rel:`noopener noreferrer`},[n[5]||=W(`Create a token with write access `,-1),U(J,{name:`open-in-new`})],8,dE),n[8]||=W(` instead. `,-1),U(ZT,{page:M(Fx).GitHubAccess,section:`use-a-personal-access-token`},{default:N(()=>[...n[6]||=[W(`Full permissions guide`,-1)]]),_:1},8,[`page`])])])):(z(),B(`small`,fE,[n[10]||=W(` On GitHub, `,-1),H(`a`,{href:M(QT),target:`_blank`,rel:`noopener noreferrer`},[n[9]||=W(`regenerate the token `,-1),U(J,{name:`open-in-new`})],8,pE),n[11]||=W(` to keep its repositories and permissions. The new token must belong to the same GitHub account. `,-1)])),M(o)?(z(),B(`p`,mE,A(M(o)),1)):G(``,!0)],40,sE))}});function gE(e){return zx(`/repositories/local/directories?path=${encodeURIComponent(e)}`)}var _E=Sc(`localDirectories`,()=>{let e=j(null),t=j(!1),n=j(null),r=0;function i(){r+=1,e.value=null,n.value=null,t.value=!1}async function a(i){let a=++r;n.value=null,t.value=!0;try{let t=await gE(i);a===r&&(e.value=t)}catch(e){a===r&&(n.value=X(e,`Unable to browse directories`))}finally{a===r&&(t.value=!1)}}return{listing:e,loading:t,error:n,load:a,reset:i}}),vE={class:`directory-location`},yE={key:0,class:`directory-error`,role:`alert`},bE=[`aria-busy`],xE={key:0,class:`directory-message`,role:`status`},SE=[`onClick`],CE={key:1,class:`directory-message`},wE={class:`directory-count`},TE=P({__name:`LocalDirectoryPicker`,props:{path:{}},emits:[`choose`,`close`],setup(e,{emit:t}){let n=e,r=t,i=_E(),a=j(!0),o=j(null);async function s(e){await i.load(e),await Fn(),a.value&&o.value?.focus()}function c(){i.listing&&!i.loading&&(r(`choose`,i.listing.path),a.value=!1)}return Zr(()=>{i.load(n.path)}),ti(i.reset),(t,n)=>(z(),V(M(By),{id:`local-directory-picker`,visible:a.value,"onUpdate:visible":n[2]||=e=>a.value=e,modal:``,header:`Choose a repository folder`,class:`local-directory-picker`,onAfterHide:n[3]||=e=>r(`close`)},{footer:N(()=>[H(`span`,wE,A(M(i).listing?`${M(i).listing.directories.length} folders`:``),1),U(M(Y),{label:`Cancel`,severity:`secondary`,outlined:``,onClick:n[1]||=e=>a.value=!1}),U(M(Y),{label:`Use this folder`,disabled:!M(i).listing||M(i).loading,onClick:c},{icon:N(()=>[U(J,{name:`check`})]),_:1},8,[`disabled`])]),default:N(()=>[n[7]||=H(`p`,{class:`directory-description`},`Browse folders on the machine running SecondShift.`,-1),H(`div`,vE,[U(M(Y),{"aria-label":`Up one level`,title:`Up one level`,severity:`secondary`,text:``,disabled:!M(i).listing?.parent||M(i).loading,onClick:n[0]||=e=>s(M(i).listing?.parent??``)},{icon:N(()=>[U(J,{name:`arrow-up`})]),_:1},8,[`disabled`]),H(`div`,{ref_key:`currentPath`,ref:o,tabindex:`-1`,"aria-live":`polite`},[n[4]||=H(`span`,{class:`directory-label`},`Current folder`,-1),H(`code`,null,A(M(i).listing?.path??(M(i).loading?`Loading…`:e.path||`Home`)),1)],512)]),M(i).error?(z(),B(`p`,yE,A(M(i).error),1)):G(``,!0),H(`nav`,{class:`directory-list`,"aria-label":`Directories`,"aria-busy":M(i).loading},[M(i).loading?(z(),B(`p`,xE,[U(J,{"aria-hidden":`true`,name:`loading`,spin:``}),n[5]||=W(` Loading folders… `,-1)])):G(``,!0),(z(!0),B(R,null,I(M(i).loading?[]:M(i).listing?.directories,e=>(z(),B(`button`,{key:e.path,type:`button`,class:`directory-row`,onClick:t=>s(e.path)},[U(J,{"aria-hidden":`true`,name:`folder-outline`,class:`directory-icon`}),H(`span`,null,A(e.name),1),U(J,{"aria-hidden":`true`,name:`chevron-right`,class:`directory-chevron`})],8,SE))),128)),!M(i).loading&&M(i).listing?.directories.length===0?(z(),B(`p`,CE,[U(J,{"aria-hidden":`true`,name:`folder-open-outline`}),n[6]||=W(` No subfolders. You can select this folder. `,-1)])):G(``,!0)],8,bE)]),_:1},8,[`visible`]))}}),EE=P({__name:`SearchInput`,props:{modelValue:{},placeholder:{default:`Search`},delay:{default:250}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=j(n.modelValue),a=null;rr(()=>n.modelValue,e=>{e!==i.value.trim()&&(i.value=e)});function o(){a!==null&&window.clearTimeout(a),a=window.setTimeout(()=>r(`update:modelValue`,i.value.trim()),n.delay)}function s(){a!==null&&window.clearTimeout(a),i.value=``,r(`update:modelValue`,``)}return ti(()=>{a!==null&&window.clearTimeout(a)}),(t,n)=>(z(),V(M(zb),{class:`search-input`},{default:N(()=>[U(M(Vb),null,{default:N(()=>[U(J,{name:`magnify`})]),_:1}),U(M(ib),{maxlength:`200`,modelValue:i.value,"onUpdate:modelValue":n[0]||=e=>i.value=e,type:`search`,placeholder:e.placeholder,"aria-label":e.placeholder,autocomplete:`off`,spellcheck:`false`,onInput:o,onKeydown:Ls(s,[`esc`])},null,8,[`modelValue`,`placeholder`,`aria-label`])]),_:1}))}}),DE={key:0,class:`panel add-repository`},OE={key:0,class:`segmented add-repository-source`,role:`group`,"aria-label":`Where the repository is`},kE=[`aria-pressed`,`onClick`],AE={key:0,class:`add-repository-connect`},jE={key:0,class:`add-repository-option`},ME={key:1,class:`add-repository-github`},NE={key:1,class:`add-repository-problem`,role:`alert`},PE={class:`add-repository-problem-actions`},FE={key:2,class:`empty-state compact`},IE=[`aria-busy`],LE={class:`add-repository-name`},RE=[`disabled`,`onClick`],zE={key:4,class:`empty-state compact`},BE={key:0},VE={key:1},HE={key:2},UE={key:3},WE={key:5,class:`form-error`,role:`alert`},GE={key:6,class:`form-error`,role:`alert`},KE={key:7,class:`add-repository-footer`},qE={class:`add-repository-links`},JE={key:0,href:`/github/connect/?install=1`},YE=[`href`],XE={class:`add-repository-path`},ZE={key:0,class:`form-error`},QE=P({__name:`AddRepositoryFlow`,setup(e){let t=zw(),n=Qg(),r=Zg(),i=oE(),{sources:a,error:o,importing:s,loading:c}=Cc(i),l=q(()=>t.canAddLocalRepositories),u=q(()=>t.can($.AddGitHubRepositories)),d=q(()=>!!t.user?.github_app_configured),f=q(()=>t.connections.filter(e=>e.provider===`github`&&e.kind===`source`&&e.status===`connected`)),p=q(()=>f.value.length>0),m=q(()=>f.value.some(e=>e.auth===`app`)),h=q(()=>f.value.some(e=>e.auth===`token`)),g=q(()=>{let e=[];return u.value&&e.push(`github`),l.value&&e.push(`local`),l.value&&!p.value?e.reverse():e}),_=n.query.source,v=j(g.value.find(e=>e===_)??g.value[0]),y=j(n.query.connect===`1`),b=q(()=>!p.value||y.value),x=j(!d.value),S=q(()=>!!o.value&&!a.value.length&&!c.value);function C(){y.value=!0,x.value=!0}let w=q(()=>m.value?`/github/connect/?install=1`:`/github/connect/`),T=j(``),ee=q(()=>a.value.filter(e=>!t.repositories.some(t=>t.source_type===`github`&&t.full_name===e.full_name)).map(e=>({...e,key:`${e.connection_id}:${e.repository_id}`,account:re(e.connection_id)}))),te=q(()=>{let e=T.value.trim().toLowerCase();return e?ee.value.filter(t=>t.full_name.toLowerCase().includes(e)):ee.value}),E=j(null),ne=j(``),D=j(null);function re(e){return f.value.length<2?``:f.value.find(t=>t.id===e)?.display_name??``}function ie(e){E.value=e.key,ne.value=e.default_branch,i.loadBranches(e)}async function O(e){let n=E.value===e.key?ne.value:e.default_branch;D.value=e.key;let a=await i.importRepository(e,n);D.value=null,a&&(await t.refresh(),await r.push({path:`/repositories/${a.id}`,query:{added:`1`}}))}async function ae(){y.value=!1,await t.refresh(),await i.load()}Zr(()=>{u.value&&p.value&&i.load()});let oe=j(``),se=j(null),ce=j(!1),le=j(!1);async function ue(){if(oe.value.trim()){ce.value=!0,se.value=null;try{let e=await hw(oe.value);await t.refresh(),await r.push({path:`/repositories/${e.id}`,query:{added:`1`}})}catch(e){se.value=X(e,`Unable to add repository`)}finally{ce.value=!1}}}function de(e){oe.value=e,se.value=null}return(e,t)=>v.value?(z(),B(`section`,DE,[g.value.length>1?(z(),B(`div`,OE,[(z(!0),B(R,null,I(g.value,e=>(z(),B(`button`,{key:e,type:`button`,class:k({active:v.value===e}),"aria-pressed":v.value===e,onClick:t=>v.value=e},[U(J,{name:e===`github`?`github`:`folder-outline`},null,8,[`name`]),W(A(e===`github`?`GitHub`:`Local folder`),1)],10,kE))),128))])):G(``,!0),v.value===`github`?(z(),B(R,{key:1},[b.value?(z(),B(`div`,AE,[t[10]||=H(`h2`,null,`Connect GitHub`,-1),t[11]||=H(`p`,null,`SecondShift reads jobs from the repositories you choose, and only those.`,-1),d.value?(z(),B(`div`,jE,[t[8]||=H(`div`,null,[H(`strong`,null,[W(`GitHub App `),H(`span`,{class:`mcp-flag ok`},`Recommended`)]),H(`span`,null,`You choose repositories on GitHub, then come back here to import them.`)],-1),U(M(Y),{class:`main-action`,label:`Connect GitHub`,as:`a`,href:w.value},{icon:N(()=>[U(J,{name:`github`})]),_:1},8,[`href`])])):G(``,!0),H(`div`,{class:k([`add-repository-option`,{open:x.value}])},[H(`div`,null,[t[9]||=H(`strong`,null,`Personal access token`,-1),H(`span`,null,A(d.value?`For an organization where you cannot install apps. Stored encrypted.`:`This server has no GitHub App, so connect with a fine-grained token. Stored encrypted.`),1)]),x.value?(z(),V(hE,{key:1,onConnected:ae})):(z(),V(M(Y),{key:0,label:`Use a token`,severity:`secondary`,outlined:``,onClick:t[0]||=e=>x.value=!0},{icon:N(()=>[U(J,{name:`key-variant`})]),_:1}))],2),p.value?(z(),B(`button`,{key:1,type:`button`,class:`link-button`,onClick:t[1]||=e=>y.value=!1},`Back to your repositories`)):G(``,!0)])):(z(),B(`div`,ME,[ee.value.length>6?(z(),V(EE,{key:0,modelValue:T.value,"onUpdate:modelValue":t[2]||=e=>T.value=e,placeholder:`Search repositories`},null,8,[`modelValue`])):G(``,!0),S.value?(z(),B(`div`,NE,[U(J,{name:`alert-outline`}),H(`div`,null,[t[12]||=H(`strong`,null,`GitHub did not list your repositories`,-1),H(`span`,null,A(M(o)),1)]),H(`div`,PE,[m.value&&d.value?(z(),V(M(Y),{key:0,label:`Reconnect GitHub App`,size:`small`,as:`a`,href:w.value},null,8,[`href`])):G(``,!0),U(M(Y),{label:`Use a token`,severity:`secondary`,outlined:``,size:`small`,onClick:C})])])):M(c)?(z(),B(`div`,FE,[U(J,{name:`loading`,spin:``}),t[13]||=H(`strong`,null,`Loading your GitHub repositories`,-1)])):te.value.length?(z(),B(`div`,{key:3,class:`data-list add-repository-list`,"aria-busy":M(s)},[(z(!0),B(R,null,I(te.value,e=>(z(),B(`div`,{key:e.key,class:`add-repository-row`},[U(J,{name:`github`,class:`add-repository-glyph`}),H(`div`,LE,[H(`strong`,null,A(e.full_name),1),H(`span`,null,A(e.account?`${e.account} · `:``)+A(E.value===e.key?`Choose the branch SecondShift reads jobs from`:`Follows ${e.default_branch}, the default branch`),1)]),E.value===e.key?(z(),V(M(mx),{key:0,modelValue:ne.value,"onUpdate:modelValue":t[3]||=e=>ne.value=e,options:M(i).branches,filter:``,"filter-placeholder":`Find a branch…`,loading:M(i).branchesLoading,disabled:M(i).branchesLoading||M(s),placeholder:M(i).branchesLoading?`Loading branches…`:`Choose a branch`,"aria-label":`Branch for ${e.full_name}`,class:`add-repository-branch`},null,8,[`modelValue`,`options`,`loading`,`disabled`,`placeholder`,`aria-label`])):(z(),B(`button`,{key:1,type:`button`,class:`link-button add-repository-other`,disabled:M(s),onClick:t=>ie(e),title:`Read jobs from a branch other than the default`},`Change branch`,8,RE)),U(M(Y),{class:`add-repository-import`,label:D.value===e.key?void 0:`Import`,"aria-label":D.value===e.key?`Importing`:`Import`,size:`small`,loading:D.value===e.key,disabled:M(s)||E.value===e.key&&(M(i).branchesLoading||!M(i).branches.includes(ne.value)),onClick:t=>O(e)},null,8,[`label`,`aria-label`,`loading`,`disabled`,`onClick`])]))),128))],8,IE)):(z(),B(`div`,zE,[U(J,{name:`github`}),T.value?(z(),B(`strong`,BE,`No repositories match`)):M(a).length?(z(),B(`strong`,VE,`Every repository you shared is imported`)):(z(),B(`strong`,HE,`GitHub shares no repositories yet`)),T.value?G(``,!0):(z(),B(`span`,UE,`Give SecondShift access to more repositories on GitHub, then come back.`))])),E.value&&M(i).branchesError?(z(),B(`p`,WE,A(M(i).branchesError),1)):G(``,!0),M(o)&&!S.value?(z(),B(`p`,GE,A(M(o)),1)):G(``,!0),S.value?G(``,!0):(z(),B(`div`,KE,[t[16]||=H(`span`,null,`Schedules stay off until you review the imported jobs.`,-1),H(`span`,qE,[m.value&&d.value?(z(),B(`a`,JE,[t[14]||=W(`Missing a repository? Manage access `,-1),U(J,{name:`open-in-new`})])):G(``,!0),h.value?(z(),B(`a`,{key:1,href:M(QT),target:`_blank`,rel:`noopener noreferrer`},[t[15]||=W(`Edit your token's repositories `,-1),U(J,{name:`open-in-new`})],8,YE)):G(``,!0),H(`button`,{type:`button`,class:`link-button`,onClick:t[4]||=e=>y.value=!0},`Add a token or another account`)])]))]))],64)):(z(),B(`form`,{key:2,class:`add-repository-local`,onSubmit:Fs(ue,[`prevent`])},[t[17]||=H(`h2`,null,`Add a local Git repository`,-1),t[18]||=H(`p`,null,[W(`Jobs are read from its committed `),H(`code`,null,`.secondshift.yaml`),W(`. You can add it before the file exists.`)],-1),H(`div`,XE,[U(M(ib),{modelValue:oe.value,"onUpdate:modelValue":t[5]||=e=>oe.value=e,"aria-label":`Local repository path`,placeholder:`/Users/you/Projects/my-repository`,autofocus:``},null,8,[`modelValue`]),U(M(Y),{type:`button`,severity:`secondary`,outlined:``,"aria-label":`Browse directories`,"aria-expanded":le.value,"aria-controls":`local-directory-picker`,"aria-haspopup":`dialog`,title:`Browse directories`,onClick:t[6]||=e=>le.value=!0},{icon:N(()=>[U(J,{name:`folder-open-outline`})]),_:1},8,[`aria-expanded`]),U(M(Y),{class:`main-action`,type:`submit`,label:`Add repository`,loading:ce.value,disabled:!oe.value.trim()},{icon:N(()=>[U(J,{name:`check`})]),_:1},8,[`loading`,`disabled`])]),se.value?(z(),B(`p`,ZE,A(se.value),1)):G(``,!0)],32)),le.value?(z(),V(TE,{key:3,path:oe.value,onChoose:de,onClose:t[7]||=e=>le.value=!1},null,8,[`path`])):G(``,!0)])):G(``,!0)}}),$E={class:`page`},eD={key:1,class:`panel empty-state`},tD=P({__name:`AddRepositoryView`,setup(e){let t=zw();return(e,n)=>(z(),B(`div`,$E,[U(qT,{compact:``,title:`Add repository`,description:`Jobs come from the repository's .secondshift.yaml.`,parent:{label:`Repositories`,to:`/repositories`}}),M(t).canAddLocalRepositories||M(t).can(M($).AddGitHubRepositories)?(z(),V(QE,{key:0})):(z(),B(`div`,eD,[U(J,{name:`lock-outline`}),n[0]||=H(`strong`,null,`Workspace owners add repositories`,-1)]))]))}});function nD(e){if(e.auth!==`oauth`||e.status===`revoked`)return[];let t=new Set(e.requested_scopes??e.scopes??[]);return[...new Set(e.scopes??[])].filter(e=>!t.has(e)).sort()}var rD={key:0,class:`oauth-scope-warning`,role:`status`,"aria-label":`Additional OAuth permissions`},iD={key:1},aD=Yw(P({__name:`OAuthScopeWarning`,props:{connection:{}},setup(e){let t=e,n=q(()=>nD(t.connection));return(t,r)=>n.value.length?(z(),B(`aside`,rD,[U(J,{name:`alert-outline`}),H(`div`,null,[r[2]||=H(`strong`,null,`Connected with additional permissions`,-1),r[3]||=H(`p`,null,`The server granted more access than requested. Jobs can use only your selected tools; the stored token still has all granted permissions.`,-1),H(`dl`,null,[H(`div`,null,[r[0]||=H(`dt`,null,`Requested`,-1),H(`dd`,null,[e.connection.requested_scopes?.length?(z(!0),B(R,{key:0},I(e.connection.requested_scopes,e=>(z(),B(`code`,{key:e},A(e),1))),128)):(z(),B(`span`,iD,`No specific scopes`))])]),H(`div`,null,[r[1]||=H(`dt`,null,`Additional`,-1),H(`dd`,null,[(z(!0),B(R,null,I(n.value,e=>(z(),B(`code`,{key:e},A(e),1))),128))])])]),r[4]||=H(`p`,{class:`scope-guidance`},`To reduce the token's access, revoke it with the provider and reconnect with narrower permissions.`,-1)])])):G(``,!0)}}),[[`__scopeId`,`data-v-9deaa9d9`]]),oD=ad.extend({name:`textarea`,style:`
1593
+ .p-textarea {
1594
+ font-family: inherit;
1595
+ font-feature-settings: inherit;
1596
+ font-size: 1rem;
1597
+ color: dt('textarea.color');
1598
+ background: dt('textarea.background');
1599
+ padding-block: dt('textarea.padding.y');
1600
+ padding-inline: dt('textarea.padding.x');
1601
+ border: 1px solid dt('textarea.border.color');
1602
+ transition:
1603
+ background dt('textarea.transition.duration'),
1604
+ color dt('textarea.transition.duration'),
1605
+ border-color dt('textarea.transition.duration'),
1606
+ outline-color dt('textarea.transition.duration'),
1607
+ box-shadow dt('textarea.transition.duration');
1608
+ appearance: none;
1609
+ border-radius: dt('textarea.border.radius');
1610
+ outline-color: transparent;
1611
+ box-shadow: dt('textarea.shadow');
1612
+ }
1613
+
1614
+ .p-textarea:enabled:hover {
1615
+ border-color: dt('textarea.hover.border.color');
1616
+ }
1617
+
1618
+ .p-textarea:enabled:focus {
1619
+ border-color: dt('textarea.focus.border.color');
1620
+ box-shadow: dt('textarea.focus.ring.shadow');
1621
+ outline: dt('textarea.focus.ring.width') dt('textarea.focus.ring.style') dt('textarea.focus.ring.color');
1622
+ outline-offset: dt('textarea.focus.ring.offset');
1623
+ }
1624
+
1625
+ .p-textarea.p-invalid {
1626
+ border-color: dt('textarea.invalid.border.color');
1627
+ }
1628
+
1629
+ .p-textarea.p-variant-filled {
1630
+ background: dt('textarea.filled.background');
1631
+ }
1632
+
1633
+ .p-textarea.p-variant-filled:enabled:hover {
1634
+ background: dt('textarea.filled.hover.background');
1635
+ }
1636
+
1637
+ .p-textarea.p-variant-filled:enabled:focus {
1638
+ background: dt('textarea.filled.focus.background');
1639
+ }
1640
+
1641
+ .p-textarea:disabled {
1642
+ opacity: 1;
1643
+ background: dt('textarea.disabled.background');
1644
+ color: dt('textarea.disabled.color');
1645
+ }
1646
+
1647
+ .p-textarea::placeholder {
1648
+ color: dt('textarea.placeholder.color');
1649
+ }
1650
+
1651
+ .p-textarea.p-invalid::placeholder {
1652
+ color: dt('textarea.invalid.placeholder.color');
1653
+ }
1654
+
1655
+ .p-textarea-fluid {
1656
+ width: 100%;
1657
+ }
1658
+
1659
+ .p-textarea-resizable {
1660
+ overflow: hidden;
1661
+ resize: none;
1662
+ }
1663
+
1664
+ .p-textarea-sm {
1665
+ font-size: dt('textarea.sm.font.size');
1666
+ padding-block: dt('textarea.sm.padding.y');
1667
+ padding-inline: dt('textarea.sm.padding.x');
1668
+ }
1669
+
1670
+ .p-textarea-lg {
1671
+ font-size: dt('textarea.lg.font.size');
1672
+ padding-block: dt('textarea.lg.padding.y');
1673
+ padding-inline: dt('textarea.lg.padding.x');
1674
+ }
1675
+ `,classes:{root:function(e){var t=e.instance,n=e.props;return[`p-textarea p-component`,{"p-filled":t.$filled,"p-textarea-resizable ":n.autoResize,"p-textarea-sm p-inputfield-sm":n.size===`small`,"p-textarea-lg p-inputfield-lg":n.size===`large`,"p-invalid":t.$invalid,"p-variant-filled":t.$variant===`filled`,"p-textarea-fluid":t.$fluid}]}}}),sD={name:`BaseTextarea`,extends:Qy,props:{autoResize:Boolean},style:oD,provide:function(){return{$pcTextarea:this,$parentInstance:this}}};function cD(e){"@babel/helpers - typeof";return cD=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},cD(e)}function lD(e,t,n){return(t=uD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uD(e){var t=dD(e,`string`);return cD(t)==`symbol`?t:t+``}function dD(e,t){if(cD(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cD(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var fD={name:`Textarea`,extends:sD,inheritAttrs:!1,observer:null,mounted:function(){var e=this;this.autoResize&&(this.observer=new ResizeObserver(function(){requestAnimationFrame(function(){e.resize()})}),this.observer.observe(this.$el))},updated:function(){this.autoResize&&this.resize()},beforeUnmount:function(){this.observer&&this.observer.disconnect()},methods:{resize:function(){if(this.$el.offsetParent){var e=this.$el.style.height,t=parseInt(e)||0,n=this.$el.scrollHeight;t&&n<t?(this.$el.style.height=`auto`,this.$el.style.height=`${this.$el.scrollHeight}px`):(!t||n>t)&&(this.$el.style.height=`${n}px`)}},onInput:function(e){this.autoResize&&this.resize(),this.writeValue(e.target.value,e)}},computed:{attrs:function(){return K(this.ptmi(`root`,{context:{filled:this.$filled,disabled:this.disabled}}),this.formField)},dataP:function(){return tl(lD({invalid:this.$invalid,fluid:this.$fluid,filled:this.$variant===`filled`},this.size,this.size))}}},pD=[`value`,`name`,`disabled`,`aria-invalid`,`data-p`];function mD(e,t,n,r,i,a){return z(),B(`textarea`,K({class:e.cx(`root`),value:e.d_value,name:e.name,disabled:e.disabled,"aria-invalid":e.invalid||void 0,"data-p":a.dataP,onInput:t[0]||=function(){return a.onInput&&a.onInput.apply(a,arguments)}},a.attrs),null,16,pD)}fD.render=mD;var hD={class:`need-setup-wide approval-setting`},gD={class:`need-setup-check`},_D={key:0,class:`approval-warning`},vD={key:1},yD=P({__name:`ApprovalSetting`,props:{modelValue:{type:Boolean,required:!0},modelModifiers:{}},emits:[`update:modelValue`],setup(e){let t=Vi(e,`modelValue`);return(e,n)=>(z(),B(`div`,hD,[H(`label`,gD,[Yn(H(`input`,{"onUpdate:modelValue":n[0]||=e=>t.value=e,type:`checkbox`},null,512),[[Os,t.value]]),n[1]||=H(`span`,null,`Require approval for each job`,-1)]),t.value?(z(),B(`small`,vD,`Jobs that ask for this connection wait until an owner approves them.`)):(z(),B(`small`,_D,` When off, anyone who can merge to a connected repository can use this connection's allowed tools. `))]))}}),bD={class:`need-setup-copy`},xD={key:0,class:`need-setup-wide`},SD={key:1,class:`need-setup-wide`},CD={key:1,class:`need-setup-wide mcp-choice-note`},wD={class:`need-setup-wide mcp-choice-note`},TD={class:`need-setup-wide mcp-choice`},ED=[`value`],DD={class:`mcp-choice-item`},OD={key:1},kD={key:3,class:`need-setup-wide`},AD={key:0,class:`field-error`},jD={key:1},MD={key:0,class:`need-setup-wide mcp-choice`},ND={class:`mcp-choice-item`},PD={class:`mcp-choice-item`},FD={class:`need-setup-wide`},ID={key:5,class:`need-setup-wide mcp-choice`},LD={class:`mcp-tool-toolbar`},RD={class:`mcp-tool-grid`},zD=[`title`],BD=[`checked`,`onChange`],VD={key:0,class:`mcp-choice-note`},HD={key:7,class:`need-notice need-setup-wide`},UD={class:`need-setup-footer`},WD={class:`need-actions`},GD=`other`,KD=P({__name:`APIConnectionForm`,props:{binding:{},connection:{}},emits:[`done`,`cancel`],setup(e,{emit:t}){let n=e,r=t,i=zw(),a=q(()=>!!n.connection),o=q(()=>GS(n.connection)),s=n.connection?.settings??{},c=j(n.connection?.binding_key??n.binding??``),l=j(n.connection?.display_name??``),u=j(s.spec_url??``),d=j(``),f=j(!1),p=j(null),m=j(``),h=j(s.base_url??``),g=j(s.auth===`header`?`header`:`bearer`),_=j(s.header??`X-API-Key`),v=j(``),y=j([...n.connection?.available_tools??[]]),b=j(``),x=j(n.connection?.require_approval??!1),S=j(!1),C=j(``),w=q(()=>n.connection?.offered_tools??[]),T=q(()=>{let e=b.value.trim().toLowerCase();return e?w.value.filter(t=>t.name.toLowerCase().includes(e)||t.description.toLowerCase().includes(e)):w.value}),ee=q(()=>!a.value&&p.value===null),te=q(()=>(m.value&&m.value!==GD?m.value:h.value).trim()),E=q(()=>a.value&&h.value.trim().replace(/\/+$/,``)!==(s.base_url??``)),ne=q(()=>!a.value||o.value),D=q(()=>o.value?`Reconnect HTTP API`:a.value?`Edit HTTP API`:`Connect an HTTP API`),re=q(()=>ee.value?`Load spec`:a.value?`Save`:`Connect`);rr(c,e=>{let t=HS(e);t!==e&&(c.value=t)}),rr([u,d,f],()=>{a.value||(p.value=null)});function ie(e){try{return new URL(e).host}catch{return e}}function O(e,t){return e.includes(t)?e.filter(e=>e!==t):[...e,t]}function ae(e){return e.split(` `)[0]??``}async function oe(){p.value=await $C(f.value?{spec_text:d.value}:{spec_url:u.value.trim()}),m.value=p.value.servers[0]??GD,l.value||=p.value.title}async function se(){let e=n.connection?await tw(n.connection.id,{display_name:l.value,token:v.value||void 0,base_url:E.value?h.value.trim():void 0,operations:y.value,require_approval:x.value}):await ew({binding_key:US(c.value),display_name:l.value,...f.value?{spec_text:d.value}:{spec_url:u.value.trim()},base_url:te.value,auth:g.value,header:g.value===`header`?_.value.trim():``,token:v.value,require_approval:x.value});v.value=``,await i.refresh();let t=a.value?x.value?` Review job approvals before running.`:``:` Use Edit to choose which operations jobs may use.`;r(`done`,{ok:!0,text:`${a.value?`Saved`:`Connected`} ${e.display_name}. ${Q(e.available_tools.length,`operation`)} enabled.${t}`},e.binding_key)}async function ce(){S.value=!0,C.value=``;try{ee.value?await oe():await se()}catch(e){C.value=X(e,`Unable to connect the API`)}finally{S.value=!1}}return(e,t)=>(z(),B(`form`,{class:`need-setup-fields`,onSubmit:Fs(ce,[`prevent`])},[H(`div`,bD,[H(`h3`,null,A(D.value),1),t[20]||=H(`p`,null,`Each operation in an OpenAPI spec becomes a tool. SecondShift builds every request itself: jobs only fill in the values the spec declares.`,-1)]),H(`label`,null,[t[25]||=H(`span`,null,`Binding`,-1),U(M(ib),{modelValue:c.value,"onUpdate:modelValue":t[0]||=e=>c.value=e,disabled:a.value||!!n.binding,required:``,pattern:`[a-z0-9]+(-[a-z0-9]+)*`,maxlength:`120`,autocomplete:`off`,spellcheck:`false`,onBlur:t[1]||=e=>c.value=M(US)(c.value)},null,8,[`modelValue`,`disabled`]),H(`small`,null,[t[21]||=W(`The name jobs use to ask for this connection, as `,-1),H(`code`,null,`binding: `+A(c.value||`my-service`),1),t[22]||=W(` in `,-1),t[23]||=H(`code`,null,`.secondshift.yaml`,-1),t[24]||=W(`. Lowercase, with dashes.`,-1)])]),H(`label`,null,[t[26]||=H(`span`,null,`Display name`,-1),U(M(ib),{modelValue:l.value,"onUpdate:modelValue":t[2]||=e=>l.value=e,modelModifiers:{trim:!0},maxlength:`200`,placeholder:p.value?.title||`Billing API`},null,8,[`modelValue`,`placeholder`])]),a.value?(z(),B(`p`,CD,A(M(s).spec_url?`Spec: ${M(s).spec_url}`:`Spec: pasted when connecting.`)+` Use Check operations to load it again. `,1)):(z(),B(R,{key:0},[f.value?(z(),B(`label`,SD,[t[30]||=H(`span`,null,`OpenAPI spec`,-1),U(M(fD),{modelValue:d.value,"onUpdate:modelValue":t[5]||=e=>d.value=e,rows:`6`,required:``,spellcheck:`false`,placeholder:`openapi: 3.1.0`},null,8,[`modelValue`]),H(`small`,null,[t[29]||=W(`The API's OpenAPI 3 description, in JSON or YAML. `,-1),H(`button`,{type:`button`,class:`link-button`,onClick:t[6]||=e=>f.value=!1},`Have a link? Use it instead.`)])])):(z(),B(`label`,xD,[t[28]||=H(`span`,null,`OpenAPI spec URL`,-1),U(M(ib),{modelValue:u.value,"onUpdate:modelValue":t[3]||=e=>u.value=e,type:`url`,required:``,placeholder:`https://api.example.com/openapi.json`,autocomplete:`off`,spellcheck:`false`,maxlength:`2000`},null,8,[`modelValue`]),H(`small`,null,[t[27]||=W(`A link to the API's OpenAPI 3 description, in JSON or YAML. `,-1),H(`button`,{type:`button`,class:`link-button`,onClick:t[4]||=e=>f.value=!0},`No link? Paste the spec instead.`)])]))],64)),p.value?(z(),B(R,{key:2},[H(`p`,wD,A(p.value.title||`This API`)+` · `+A(M(Q)(p.value.operations,`operation`))+`, `+A(p.value.read_only)+` read-only.`,1),H(`fieldset`,TD,[t[33]||=H(`legend`,null,`Base URL`,-1),(z(!0),B(R,null,I(p.value.servers,e=>(z(),B(`label`,{key:e,class:`mcp-choice-item`},[Yn(H(`input`,{"onUpdate:modelValue":t[7]||=e=>m.value=e,type:`radio`,name:`api-server`,value:e},null,8,ED),[[As,m.value]]),H(`code`,null,A(e),1)]))),128)),H(`label`,DD,[Yn(H(`input`,{"onUpdate:modelValue":t[8]||=e=>m.value=e,type:`radio`,name:`api-server`,value:GD},null,512),[[As,m.value]]),H(`span`,null,A(p.value.servers.length?`Another address`:`Enter the address`),1)]),m.value===GD?(z(),V(M(ib),{key:0,modelValue:h.value,"onUpdate:modelValue":t[9]||=e=>h.value=e,type:`url`,required:``,placeholder:`https://api.example.com/v1`,autocomplete:`off`,spellcheck:`false`,maxlength:`200`},null,8,[`modelValue`])):G(``,!0),te.value?(z(),B(`small`,OD,[t[31]||=W(`Requests and your credential go to `,-1),H(`strong`,null,A(ie(te.value)),1),t[32]||=W(`. SecondShift keeps this address even if the spec changes later.`,-1)])):G(``,!0)])],64)):G(``,!0),a.value?(z(),B(`label`,kD,[t[34]||=H(`span`,null,`Base URL`,-1),U(M(ib),{modelValue:h.value,"onUpdate:modelValue":t[10]||=e=>h.value=e,type:`url`,required:``,autocomplete:`off`,spellcheck:`false`,maxlength:`200`},null,8,[`modelValue`]),E.value?(z(),B(`small`,AD,`Requests and your credential will go to `+A(ie(h.value))+`. Runs in progress stop.`,1)):(z(),B(`small`,jD,`Requests and your credential go to `+A(ie(h.value))+`.`,1))])):G(``,!0),ee.value?G(``,!0):(z(),B(R,{key:4},[a.value?G(``,!0):(z(),B(`fieldset`,MD,[t[39]||=H(`legend`,null,`Send the credential as`,-1),H(`label`,ND,[Yn(H(`input`,{"onUpdate:modelValue":t[11]||=e=>g.value=e,type:`radio`,name:`api-auth`,value:`bearer`},null,512),[[As,g.value]]),t[35]||=W(),t[36]||=H(`span`,null,`Authorization: Bearer <token>`,-1)]),H(`label`,PD,[Yn(H(`input`,{"onUpdate:modelValue":t[12]||=e=>g.value=e,type:`radio`,name:`api-auth`,value:`header`},null,512),[[As,g.value]]),t[37]||=W(),t[38]||=H(`span`,null,`A header`,-1)]),g.value===`header`?(z(),V(M(ib),{key:0,modelValue:_.value,"onUpdate:modelValue":t[13]||=e=>_.value=e,modelModifiers:{trim:!0},required:``,pattern:`[A-Za-z0-9\\-]{1,64}`,placeholder:`X-API-Key`,autocomplete:`off`,spellcheck:`false`,maxlength:`64`},null,8,[`modelValue`])):G(``,!0)])),H(`label`,FD,[H(`span`,null,A(a.value&&M(s).auth===`header`?`Credential (${M(s).header})`:`Credential`),1),U(M(ib),{modelValue:v.value,"onUpdate:modelValue":t[14]||=e=>v.value=e,type:`password`,required:ne.value,placeholder:ne.value?void 0:`Leave blank to keep the current credential`,autocomplete:`new-password`,maxlength:`2000`},null,8,[`modelValue`,`required`,`placeholder`])])],64)),a.value&&w.value.length?(z(),B(`fieldset`,ID,[H(`legend`,null,`Operations jobs may use · `+A(y.value.length)+` of `+A(w.value.length),1),H(`div`,LD,[U(M(ib),{modelValue:b.value,"onUpdate:modelValue":t[15]||=e=>b.value=e,type:`search`,placeholder:`Filter operations`,"aria-label":`Filter operations`,autocomplete:`off`,spellcheck:`false`},null,8,[`modelValue`]),H(`button`,{type:`button`,class:`link-button`,onClick:t[16]||=e=>y.value=w.value.filter(e=>e.read_only).map(e=>e.name)},`Read-only`),H(`button`,{type:`button`,class:`link-button`,onClick:t[17]||=e=>y.value=[]},`None`)]),H(`div`,RD,[(z(!0),B(R,null,I(T.value,e=>(z(),B(`label`,{key:e.name,class:`mcp-choice-item`,title:e.description},[H(`input`,{type:`checkbox`,checked:y.value.includes(e.name),onChange:t=>y.value=O(y.value,e.name)},null,40,BD),H(`span`,{class:k([`api-method`,{ok:e.read_only}])},A(ae(e.description)),3),H(`code`,null,A(e.name),1)],8,zD))),128)),T.value.length?G(``,!0):(z(),B(`p`,VD,`No operations match.`))]),t[40]||=H(`small`,null,`GET operations start selected. Others can change data on the service.`,-1)])):G(``,!0),ee.value?G(``,!0):(z(),V(yD,{key:6,modelValue:x.value,"onUpdate:modelValue":t[18]||=e=>x.value=e},null,8,[`modelValue`])),C.value?(z(),B(`p`,HD,A(C.value),1)):G(``,!0),H(`div`,UD,[H(`small`,null,[U(J,{name:`lock-outline`}),t[42]||=W(` The credential is encrypted at rest and stays outside command sandboxes. `,-1),U(ZT,{page:M(Fx).SecurityModel,section:`where-secrets-live`},{default:N(()=>[...t[41]||=[W(`Where secrets live`,-1)]]),_:1},8,[`page`])]),H(`div`,WD,[U(M(Y),{label:`Cancel`,severity:`secondary`,text:``,size:`small`,onClick:t[19]||=e=>r(`cancel`)}),U(M(Y),{type:`submit`,label:re.value,loading:S.value},null,8,[`label`,`loading`])])])],32))}}),qD=`<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>`,JD=`</title><path d="`,YD=`"/></svg>`,XD={title:`Sentry`,slug:`sentry`,get svg(){return qD+`Sentry`+JD+this.path+YD},path:`M13.91 2.505c-.873-1.448-2.972-1.448-3.844 0L6.904 7.92a15.478 15.478 0 0 1 8.53 12.811h-2.221A13.301 13.301 0 0 0 5.784 9.814l-2.926 5.06a7.65 7.65 0 0 1 4.435 5.848H2.194a.365.365 0 0 1-.298-.534l1.413-2.402a5.16 5.16 0 0 0-1.614-.913L.296 19.275a2.182 2.182 0 0 0 .812 2.999 2.24 2.24 0 0 0 1.086.288h6.983a9.322 9.322 0 0 0-3.845-8.318l1.11-1.922a11.47 11.47 0 0 1 4.95 10.24h5.915a17.242 17.242 0 0 0-7.885-15.28l2.244-3.845a.37.37 0 0 1 .504-.13c.255.14 9.75 16.708 9.928 16.9a.365.365 0 0 1-.327.543h-2.287c.029.612.029 1.223 0 1.831h2.297a2.206 2.206 0 0 0 1.922-3.31z`,source:`https://sentry.io/branding/`,hex:`362D59`},ZD={key:0,class:`provider-icon`,viewBox:`0 0 24 24`,role:`img`,"aria-hidden":`true`},QD=[`d`],$D=P({__name:`ProviderIcon`,props:{provider:{},fallback:{}},setup(e){let t={sentry:XD.path},n=e,r=q(()=>t[n.provider]);return(t,n)=>r.value?(z(),B(`svg`,ZD,[H(`path`,{d:r.value},null,8,QD)])):(z(),V(J,{key:1,name:e.fallback,"aria-hidden":`true`},null,8,[`name`]))}}),eO={key:0,class:`mcp-provider-grid`,role:`radiogroup`,"aria-label":`MCP server`},tO=[`aria-checked`,`onClick`],nO={class:`need-setup-copy`},rO={key:0,class:`need-setup-wide mcp-choice`},iO={key:0,class:`mcp-choice-note`},aO=[`checked`,`onChange`],oO={key:0,class:`mcp-flag`},sO={key:1,class:`need-setup-wide mcp-choice`},cO={class:`mcp-choice-item`},lO=[`disabled`],uO={class:`mcp-choice-item`},dO={key:0},fO={key:2,class:`need-setup-wide mcp-choice-note`},pO={key:3,class:`need-setup-wide`},mO=[`href`],hO={key:4,class:`need-setup-wide mcp-choice-note`},gO={key:5,class:`need-setup-wide mcp-choice-note`},_O={key:6,class:`need-setup-wide mcp-choice`},vO={class:`mcp-tool-toolbar`},yO={class:`mcp-tool-grid`},bO=[`title`],xO=[`checked`,`onChange`],SO={key:0,class:`mcp-flag`,title:`Not marked read-only`},CO={key:0,class:`mcp-choice-note`},wO={key:7,class:`need-setup-wide mcp-choice-note`},TO=[`disabled`],EO={key:2,class:`need-notice need-setup-wide`},DO={key:4,class:`need-notice need-setup-wide`},OO={class:`need-setup-footer`},kO={class:`need-actions`},AO=P({__name:`MCPConnectionForm`,props:{binding:{},connection:{}},emits:[`done`,`cancel`],setup(e,{emit:t}){let n={github:`github`,mcp:`server-plus-outline`},r=/write|admin|delete|manage|query|full/i,i=e,a=t,o=zw(),s=q(()=>!!i.connection),c=q(()=>GS(i.connection)),l=j(i.connection?.provider??o.mcpProviders[0]?.key??``),u=q(()=>o.mcpProvider(l.value)),d=j(i.connection?.binding_key??i.binding??u.value?.default_binding??``),f=j(i.connection?.display_name??u.value?.label??``),p=j(``),m=j({...i.connection?.settings??{}}),h=j(null),g=j(!1),_=j([]),v=j([...i.connection?.available_tools??[]]),y=j(i.connection?.require_approval??!1),b=j(!1),x=j(``),S=q(()=>u.value?.auth_methods.includes(`oauth`)??!1),C=q(()=>u.value?.auth_methods.includes(`token`)??!1),w=q(()=>u.value?.auth_methods.includes(`source`)??!1),T=q(()=>i.connection?.auth===`oauth`),ee=q(()=>o.connections.some(e=>e.provider===`github`&&e.kind===`source`&&e.status===`connected`)),te=q(()=>{let e=o.connections.filter(e=>e.provider===`github`&&e.kind===`source`&&e.status===`connected`);return e.some(e=>e.auth===`token`)?e.every(e=>e.auth===`token`)?`Each call uses the token its repository was added with, with everything that token can do.`:`App repositories get a read-only token for that repository only. Token repositories use the whole token.`:`Each call gets a read-only token for the run's repository only.`}),E=j(i.connection?i.connection.auth===`source`:ee.value),ne=q(()=>!s.value&&S.value&&C.value&&h.value===null),D=q(()=>s.value?T.value?`oauth`:i.connection?.auth===`source`?`source`:`token`:w.value&&E.value?`source`:C.value?S.value&&h.value?.oauth&&!g.value?`oauth`:`token`:`oauth`),re=q(()=>D.value===`token`&&!ne.value),ie=q(()=>re.value&&(!s.value||c.value)),O=q(()=>i.connection?.offered_tools??[]),ae=j(``),oe=q(()=>{let e=ae.value.trim().toLowerCase();return e?O.value.filter(t=>t.name.toLowerCase().includes(e)||t.description.toLowerCase().includes(e)):O.value}),se=q(()=>{let e=u.value?.label??``;return c.value?`Reconnect ${e}`:s.value?`Edit ${e}`:`Connect ${e}`}),ce=q(()=>ne.value?`Check server`:D.value===`oauth`&&(!s.value||c.value)?`Sign in`:s.value&&!c.value?`Save and check tools`:`Connect and discover tools`);rr(u,(e,t)=>{e&&(!i.binding&&(!d.value||d.value===t?.default_binding)&&(d.value=e.default_binding),(!f.value||f.value===t?.label)&&(f.value=e.label),m.value={},h.value=null,x.value=``)}),rr(d,e=>{let t=HS(e);t!==e&&(d.value=t)}),rr(m,()=>{s.value||(h.value=null)},{deep:!0});function le(e){return n[e]??`server-network`}function ue(e){let t=o.mcpProvider(e);return t?t.owner_selects_tools?`Sign-in or token`:Q(t.tools.length,`read-only tool`):``}function de(){return Object.fromEntries(Object.entries(m.value).map(([e,t])=>[e,t.trim()]).filter(([,e])=>e))}function fe(e,t){return e.includes(t)?e.filter(e=>e!==t):[...e,t]}async function pe(){u.value&&(h.value=await YC(u.value.key,de()),_.value=h.value.scopes.filter(e=>/read/i.test(e)&&!r.test(e)))}async function me(){if(!u.value)return;let e=i.connection?await XC({provider:u.value.key,connection_id:i.connection.id}):await XC({provider:u.value.key,binding_key:d.value,display_name:f.value,settings:de(),scopes:_.value,require_approval:y.value});window.location.assign(e)}async function he(){if(!u.value)return;let e=u.value.owner_selects_tools&&s.value,t=i.connection?await JC(i.connection.id,{display_name:f.value,token:D.value===`token`&&p.value||void 0,settings:T.value?void 0:de(),tools:e?v.value:void 0,require_approval:y.value}):await QC({provider:u.value.key,binding_key:d.value,display_name:f.value,token:D.value===`source`?``:p.value,settings:de(),require_approval:y.value,auth:D.value===`source`?`source`:`token`});p.value=``,await o.refresh();let n=c.value?`Reconnected`:s.value?`Saved`:`Connected`,r=u.value.owner_selects_tools&&!s.value?` Choose which tools jobs may use under Edit.`:y.value?` Review job approvals before running.`:``;a(`done`,{ok:!0,text:`${n} ${u.value.label}. ${Q(t.available_tools.length,`tool`)} enabled.${r}`},t.binding_key)}async function ge(){if(u.value){d.value=US(d.value),b.value=!0,x.value=``;try{ne.value?await pe():D.value===`oauth`&&(!s.value||c.value)?await me():await he()}catch(e){x.value=X(e,`Unable to connect ${u.value.label}`)}finally{b.value=!1}}}return(t,n)=>(z(),B(`form`,{class:`need-setup-fields`,onSubmit:Fs(ge,[`prevent`])},[s.value?G(``,!0):(z(),B(`div`,eO,[(z(!0),B(R,null,I(M(o).mcpProviders,e=>(z(),B(`button`,{key:e.key,type:`button`,role:`radio`,class:k([`mcp-provider-card`,{active:l.value===e.key}]),"aria-checked":l.value===e.key,onClick:t=>l.value=e.key},[U($D,{provider:e.key,fallback:le(e.key)},null,8,[`provider`,`fallback`]),H(`span`,null,[H(`strong`,null,A(e.label),1),H(`small`,null,A(ue(e.key)),1)])],10,tO))),128))])),u.value?(z(),B(R,{key:1},[H(`div`,nO,[H(`h3`,null,A(se.value),1),H(`p`,null,A(u.value.description),1)]),H(`label`,null,[n[16]||=H(`span`,null,`Binding`,-1),U(M(ib),{modelValue:d.value,"onUpdate:modelValue":n[0]||=e=>d.value=e,disabled:s.value||!!i.binding,required:``,pattern:`[a-z0-9]+(-[a-z0-9]+)*`,maxlength:`120`,autocomplete:`off`,spellcheck:`false`,onBlur:n[1]||=e=>d.value=M(US)(d.value)},null,8,[`modelValue`,`disabled`]),H(`small`,null,[n[12]||=W(`The name jobs use to ask for this connection, as `,-1),H(`code`,null,`binding: `+A(d.value||`my-service`),1),n[13]||=W(` in `,-1),n[14]||=H(`code`,null,`.secondshift.yaml`,-1),n[15]||=W(`. Lowercase, with dashes.`,-1)])]),H(`label`,null,[n[17]||=H(`span`,null,`Display name`,-1),U(M(ib),{modelValue:f.value,"onUpdate:modelValue":n[2]||=e=>f.value=e,modelModifiers:{trim:!0},required:``,maxlength:`200`},null,8,[`modelValue`])]),(z(!0),B(R,null,I(u.value.settings,e=>(z(),B(`label`,{key:e.key,class:k({"need-setup-wide":u.value.owner_selects_tools})},[H(`span`,null,[W(A(e.label),1),e.required?G(``,!0):(z(),B(R,{key:0},[W(` (optional)`)],64))]),U(M(ib),{modelValue:m.value[e.key],"onUpdate:modelValue":t=>m.value[e.key]=t,modelModifiers:{trim:!0},required:e.required,pattern:e.pattern,placeholder:e.placeholder,disabled:T.value,autocomplete:`off`,spellcheck:`false`,maxlength:`200`},null,8,[`modelValue`,`onUpdate:modelValue`,`required`,`pattern`,`placeholder`,`disabled`]),H(`small`,null,A(T.value?`Sign in again to change the server.`:e.help),1)],2))),128)),D.value===`oauth`&&!s.value&&h.value?(z(),B(`fieldset`,rO,[n[18]||=H(`legend`,null,`Access to request`,-1),h.value.scopes.length?G(``,!0):(z(),B(`p`,iO,`The server lists no scopes. It decides what to grant.`)),(z(!0),B(R,null,I(h.value.scopes,e=>(z(),B(`label`,{key:e,class:`mcp-choice-item`},[H(`input`,{type:`checkbox`,checked:_.value.includes(e),onChange:t=>_.value=fe(_.value,e)},null,40,aO),H(`code`,null,A(e),1),r.test(e)?(z(),B(`span`,oO,`May allow changes`)):G(``,!0)]))),128)),n[19]||=H(`small`,null,`The selected scopes are required. Sign-in fails if any are missing; additional scopes appear as a warning on the connection.`,-1)])):G(``,!0),w.value&&!s.value?(z(),B(`fieldset`,sO,[n[23]||=H(`legend`,null,`Credentials`,-1),H(`label`,cO,[Yn(H(`input`,{"onUpdate:modelValue":n[3]||=e=>E.value=e,type:`radio`,name:`mcp-credentials`,value:!0,disabled:!ee.value},null,8,lO),[[As,E.value]]),H(`span`,null,[n[20]||=W(`Use each repository's GitHub connection`,-1),ee.value?G(``,!0):(z(),B(R,{key:0},[W(` · connect GitHub on the Repositories page first`)],64))])]),H(`label`,uO,[Yn(H(`input`,{"onUpdate:modelValue":n[4]||=e=>E.value=e,type:`radio`,name:`mcp-credentials`,value:!1},null,512),[[As,E.value]]),n[21]||=H(`span`,null,`Paste a token for this connection`,-1)]),D.value===`source`?(z(),B(`small`,dO,[W(A(te.value)+` `,1),U(ZT,{page:M(Fx).GitHubAccess,section:`github-tools`},{default:N(()=>[...n[22]||=[W(`How it works`,-1)]]),_:1},8,[`page`])])):G(``,!0)])):G(``,!0),s.value&&D.value===`source`?(z(),B(`p`,fO,`Uses each repository's GitHub connection. No token is stored here.`)):G(``,!0),re.value?(z(),B(`label`,pO,[H(`span`,null,A(u.value.token_label),1),U(M(ib),{modelValue:p.value,"onUpdate:modelValue":n[5]||=e=>p.value=e,type:`password`,required:ie.value,placeholder:ie.value?void 0:`Leave blank to keep the current token`,autocomplete:`new-password`,maxlength:`2000`},null,8,[`modelValue`,`required`,`placeholder`]),H(`small`,null,[u.value.setup_url?(z(),B(`a`,{key:0,href:u.value.setup_url,target:`_blank`,rel:`noopener noreferrer`},`Create a token on `+A(u.value.label),9,mO)):G(``,!0),u.value.setup_url?(z(),B(R,{key:1},[W(`. `)],64)):G(``,!0),W(A(u.value.setup_help),1)])])):G(``,!0),!s.value&&h.value&&!h.value.oauth?(z(),B(`p`,hO,`This server does not offer sign-in. Use a bearer token.`)):G(``,!0),!s.value&&h.value?.oauth?(z(),B(`p`,gO,[H(`button`,{type:`button`,class:`link-button`,onClick:n[6]||=e=>g.value=!g.value},A(g.value?`Sign in instead`:`Use a token instead`),1)])):G(``,!0),s.value&&u.value.owner_selects_tools&&O.value.length?(z(),B(`fieldset`,_O,[H(`legend`,null,`Tools jobs may use · `+A(v.value.length)+` of `+A(O.value.length),1),H(`div`,vO,[U(M(ib),{modelValue:ae.value,"onUpdate:modelValue":n[7]||=e=>ae.value=e,type:`search`,placeholder:`Filter tools`,"aria-label":`Filter tools`,autocomplete:`off`,spellcheck:`false`},null,8,[`modelValue`]),H(`button`,{type:`button`,class:`link-button`,onClick:n[8]||=e=>v.value=O.value.filter(e=>e.read_only).map(e=>e.name)},`Read-only`),H(`button`,{type:`button`,class:`link-button`,onClick:n[9]||=e=>v.value=[]},`None`)]),H(`div`,yO,[(z(!0),B(R,null,I(oe.value,e=>(z(),B(`label`,{key:e.name,class:`mcp-choice-item`,title:e.description},[H(`input`,{type:`checkbox`,checked:v.value.includes(e.name),onChange:t=>v.value=fe(v.value,e.name)},null,40,xO),H(`code`,null,A(e.name),1),e.read_only?G(``,!0):(z(),B(`span`,SO,`May change data`))],8,bO))),128)),oe.value.length?G(``,!0):(z(),B(`p`,CO,`No tools match.`))]),n[24]||=H(`small`,null,`The server labels its own tools. SecondShift cannot check what they do.`,-1)])):G(``,!0),s.value&&T.value&&!c.value?(z(),B(`p`,wO,[W(` Signed in with `+A(e.connection?.scopes?.length?e.connection.scopes.join(`, `):`the server's default access`)+`. `,1),H(`button`,{type:`button`,class:`link-button`,disabled:b.value,onClick:me},`Sign in again`,8,TO)])):G(``,!0)],64)):(z(),B(`p`,EO,`No MCP servers are available.`)),u.value?(z(),V(yD,{key:3,modelValue:y.value,"onUpdate:modelValue":n[10]||=e=>y.value=e},null,8,[`modelValue`])):G(``,!0),x.value?(z(),B(`p`,DO,A(x.value),1)):G(``,!0),H(`div`,OO,[H(`small`,null,[U(J,{name:`lock-outline`}),n[26]||=W(` Tokens are encrypted at rest and stay outside command sandboxes. `,-1),U(ZT,{page:M(Fx).SecurityModel,section:`where-secrets-live`},{default:N(()=>[...n[25]||=[W(`Where secrets live`,-1)]]),_:1},8,[`page`])]),H(`div`,kO,[U(M(Y),{label:`Cancel`,severity:`secondary`,text:``,size:`small`,onClick:n[11]||=e=>a(`cancel`)}),U(M(Y),{type:`submit`,label:ce.value,loading:b.value,disabled:!u.value},null,8,[`label`,`loading`,`disabled`])])])],32))}}),jO={class:`need-setup`},MO={key:0,class:`need-setup-type`,role:`radiogroup`,"aria-label":`Connection type`},NO=[`aria-checked`,`onClick`],PO={class:`need-setup-copy`},FO={id:`binding-suggestions`},IO=[`value`],LO={key:0,class:`field-error`},RO={key:1,class:`field-error`},zO={key:2,class:`field-error`},BO={key:3},VO={key:4},HO={class:`need-setup-wide`},UO={class:`webhook-sample-body`},WO={key:0,class:`field-error`},GO={key:1,class:`run-output`,"aria-label":`Sample webhook payload`},KO={key:2,class:`webhook-sample-loading`},qO={key:0,class:`need-setup-check`},JO={key:1,class:`need-notice need-setup-wide`},YO={class:`need-setup-footer`},XO={class:`need-actions`},ZO=P({__name:`ConnectionForm`,props:{binding:{},connection:{}},emits:[`done`,`cancel`],setup(e,{emit:t}){let n=e,r=t,i=zw(),a=j(n.connection?n.connection.kind===`mcp`||n.connection.kind===`api`?n.connection.kind:`webhook`:n.binding?`webhook`:`mcp`),o=j(n.connection?.binding_key??n.binding??``),s=j(n.connection?.display_name??CS(o.value)),c=j(``),l=j(!0),u=j(n.connection?.require_approval??!1),d=j(!1),f=j(null),p=j(null),m=j(null),h=q(()=>p.value?JSON.stringify(p.value.payload,null,2):``);async function g(e){if(e.target.open&&!p.value){m.value=null;try{p.value=await RC()}catch(e){m.value=X(e,`Unable to load the sample`)}}}let _=q(()=>!!n.connection),v=q(()=>[[`mcp`,`MCP server`,`server-network`],[`api`,`HTTP API`,`api`],[`webhook`,`Webhook`,`webhook`]]),y=q(()=>GS(n.connection)),b=q(()=>_.value||!!n.binding),x=q(()=>/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(o.value)),S=q(()=>!!o.value&&!_.value&&i.connections.some(e=>e.binding_key===o.value)),C=q(()=>i.needs.find(e=>e.binding===o.value)),w=q(()=>!!(C.value&&C.value.kind!==ne(a.value))),T=q(()=>C.value?.jobs.filter(e=>e.grant_status===`pending`||e.grant_status===`unconfigured`)??[]),ee=q(()=>i.needs.filter(e=>e.status===`missing`).map(e=>e.binding)),te=q(()=>!_.value||y.value),E=q(()=>x.value&&!S.value&&!w.value&&(!te.value||c.value.trim()!==``));function ne(e){return e===`webhook`?`notification`:e}rr(o,e=>{let t=HS(e);t!==e&&(o.value=t)}),rr(o,(e,t)=>{!_.value&&(s.value===``||s.value===CS(t))&&(s.value=CS(e))}),C.value&&C.value.kind!==`notification`&&(a.value=C.value.kind);async function D(){if(o.value=US(o.value),!E.value)return;d.value=!0,f.value=null;let e=null;try{let t=n.connection?await HC(n.connection.id,{display_name:s.value.trim(),url:c.value.trim()||void 0,require_approval:u.value}):await zC({binding_key:o.value,display_name:s.value.trim(),url:c.value.trim(),require_approval:u.value}),r=!_.value&&(l.value||!u.value)&&C.value&&T.value.length>0;r&&u.value&&C.value&&await qC(C.value,t.id);let i=c.value.trim()?await KC(t.id):null,a=[_.value?y.value?`Reconnected`:`Saved`:`Connected`];i?.ok&&a.push(`a test message was delivered`),r&&a.push(`approved for ${Q(T.value.length,`job`)}`),e={notice:{ok:!i||i.ok,text:i&&!i.ok?`${a[0]}, but the test message failed: ${i.message}`:`${a.join(`, `)}.`},binding:t.binding_key}}catch(e){f.value=X(e,`Unable to save the connection`)}finally{await i.refresh(),d.value=!1}e&&r(`done`,e.notice,e.binding)}return(t,n)=>(z(),B(`div`,jO,[!_.value&&!e.binding?(z(),B(`div`,MO,[(z(!0),B(R,null,I(v.value,e=>(z(),B(`button`,{key:e[0],type:`button`,role:`radio`,"aria-checked":a.value===e[0],class:k({active:a.value===e[0]}),onClick:t=>a.value=e[0]},[U(J,{name:e[2]},null,8,[`name`]),W(` `+A(e[1]),1)],10,NO))),128))])):G(``,!0),a.value===`api`?(z(),V(KD,{key:1,binding:e.binding,connection:e.connection,onDone:n[0]||=(e,t)=>r(`done`,e,t),onCancel:n[1]||=e=>r(`cancel`)},null,8,[`binding`,`connection`])):a.value===`mcp`?(z(),V(AO,{key:2,binding:e.binding,connection:e.connection,onDone:n[2]||=(e,t)=>r(`done`,e,t),onCancel:n[3]||=e=>r(`cancel`)},null,8,[`binding`,`connection`])):(z(),B(`form`,{key:3,class:`need-setup-fields`,onSubmit:Fs(D,[`prevent`])},[H(`div`,PO,[H(`h3`,null,A(_.value?y.value?`Reconnect webhook`:`Edit webhook`:`Send run reports to a webhook`),1),n[11]||=H(`p`,null,[W(`After every run, SecondShift POSTs a JSON report with a `),H(`code`,null,`text`),W(` summary. Slack and Mattermost incoming webhooks work as they are. For Discord, add `),H(`code`,null,`/slack`),W(` to the end of the webhook URL.`)],-1)]),H(`label`,null,[n[16]||=H(`span`,null,`Binding`,-1),U(M(ib),{modelValue:o.value,"onUpdate:modelValue":n[4]||=e=>o.value=e,disabled:b.value,list:`binding-suggestions`,placeholder:`engineering-alerts`,autocomplete:`off`,spellcheck:`false`,onBlur:n[5]||=e=>o.value=M(US)(o.value)},null,8,[`modelValue`,`disabled`]),H(`datalist`,FO,[(z(!0),B(R,null,I(ee.value,e=>(z(),B(`option`,{key:e,value:e},null,8,IO))),128))]),o.value&&!x.value&&!o.value.endsWith(`-`)?(z(),B(`small`,LO,`Lowercase letters, numbers and single dashes.`)):S.value?(z(),B(`small`,RO,`This binding already has a connection.`)):w.value&&C.value?(z(),B(`small`,zO,`Jobs request `+A(C.value.binding)+` as `+A(C.value.kind===`notification`?`a notification`:C.value.kind.toUpperCase())+`.`,1)):C.value&&!_.value?(z(),B(`small`,BO,`Used by `+A(C.value.jobs.map(e=>e.job_name).join(`, `))+`.`,1)):_.value?G(``,!0):(z(),B(`small`,VO,[n[12]||=W(`The name jobs use to ask for this connection, as `,-1),H(`code`,null,`binding: `+A(o.value||`engineering-alerts`),1),n[13]||=W(` in `,-1),n[14]||=H(`code`,null,`.secondshift.yaml`,-1),n[15]||=W(`.`,-1)]))]),H(`label`,null,[n[17]||=H(`span`,null,`Display name`,-1),U(M(ib),{modelValue:s.value,"onUpdate:modelValue":n[6]||=e=>s.value=e,maxlength:`200`},null,8,[`modelValue`])]),H(`label`,HO,[n[18]||=H(`span`,null,`Webhook URL`,-1),U(M(ib),{modelValue:c.value,"onUpdate:modelValue":n[7]||=e=>c.value=e,type:`url`,required:te.value,autocomplete:`off`,spellcheck:`false`,placeholder:_.value&&!y.value?`Leave blank to keep the current URL (${e.connection?.target})`:`https://hooks.slack.com/services/…`},null,8,[`modelValue`,`required`,`placeholder`])]),H(`details`,{class:`webhook-sample need-setup-wide`,onToggle:g},[H(`summary`,null,[U(J,{name:`chevron-right`}),n[19]||=W(` What gets sent`,-1)]),H(`div`,UO,[H(`ul`,null,[n[22]||=H(`li`,null,`Sent once per finished run, including failed and canceled runs.`,-1),H(`li`,null,[n[20]||=W(`The `,-1),n[21]||=H(`code`,null,`summary`,-1),W(` is the start of the report, up to `+A((p.value?.summary_max_chars??4e3).toLocaleString(`en`))+` characters. The full report stays in SecondShift.`,1)]),n[23]||=H(`li`,null,`It names the repository, job and commit, and links to the run. Opening the link needs a sign-in.`,-1),n[24]||=H(`li`,null,`No secrets, connection details, tool calls or file contents are sent.`,-1)]),m.value?(z(),B(`p`,WO,A(m.value),1)):p.value?(z(),B(`pre`,GO,A(h.value),1)):(z(),B(`p`,KO,[U(J,{name:`loading`,spin:``}),n[25]||=W(` Loading a sample`,-1)])),U(ZT,{page:M(Fx).RepositoryConfiguration,section:`webhook-payload`},{default:N(()=>[...n[26]||=[W(`Payload format in the docs`,-1)]]),_:1},8,[`page`])])],32),U(yD,{modelValue:u.value,"onUpdate:modelValue":n[8]||=e=>u.value=e},null,8,[`modelValue`]),!_.value&&u.value&&T.value.length?(z(),B(`label`,qO,[Yn(H(`input`,{"onUpdate:modelValue":n[9]||=e=>l.value=e,type:`checkbox`},null,512),[[Os,l.value]]),H(`span`,null,`Also approve it for `+A(M(Q)(T.value.length,`job`))+`: `+A(T.value.map(e=>e.job_name).join(`, `)),1)])):G(``,!0),f.value?(z(),B(`p`,JO,A(f.value),1)):G(``,!0),H(`div`,YO,[H(`small`,null,[U(J,{name:`lock-outline`}),n[28]||=W(` The URL is encrypted at rest and never shown again. Only its host is displayed. `,-1),U(ZT,{page:M(Fx).SecurityModel,section:`where-secrets-live`},{default:N(()=>[...n[27]||=[W(`Where secrets live`,-1)]]),_:1},8,[`page`])]),H(`div`,XO,[U(M(Y),{label:`Cancel`,severity:`secondary`,text:``,size:`small`,onClick:n[10]||=e=>r(`cancel`)}),U(M(Y),{class:`main-action`,type:`submit`,label:c.value.trim()?_.value?`Save and send test`:`Connect and send test`:`Save`,loading:d.value,disabled:!E.value},{icon:N(()=>[U(J,{name:`send-outline`})]),_:1},8,[`label`,`loading`,`disabled`])])])],32))]))}}),QO={key:0},$O={class:`source-access`},ek={key:0,class:`source-access-fix`},tk=[`href`],nk=P({__name:`SourceAccess`,props:{check:{}},setup(e){let t=e,n=q(()=>t.check.features??[]),r=q(()=>!t.check.ok||n.value.some(e=>e.ok===!1));function i(e){return e===null?`minus`:e?`check-circle-outline`:`alert-circle-outline`}return(t,a)=>n.value.length||r.value&&e.check.fix_url?(z(),V(li(r.value?`div`:`details`),{key:0,class:`source-access-wrap`},{default:N(()=>[r.value?G(``,!0):(z(),B(`summary`,QO,`What it can do`)),H(`ul`,$O,[(z(!0),B(R,null,I(n.value,e=>(z(),B(`li`,{key:e.feature,class:k({ok:e.ok===!0,gap:e.ok===!1})},[U(J,{name:i(e.ok)},null,8,[`name`]),H(`strong`,null,A(e.label),1),H(`span`,null,A(e.message),1)],2))),128)),r.value&&e.check.fix_url?(z(),B(`li`,ek,[H(`a`,{href:e.check.fix_url,target:`_blank`,rel:`noopener noreferrer`},[a[0]||=W(`Fix access on GitHub `,-1),U(J,{name:`open-in-new`})],8,tk),a[1]||=H(`span`,null,`then check access again.`,-1)])):G(``,!0)])]),_:1})):G(``,!0)}}),rk=P({__name:`StatusPill`,props:{status:{},label:{}},setup(e){let t=e,n=q(()=>t.label??gS(t.status));return(t,r)=>(z(),B(`span`,{class:k([`status-pill`,e.status])},A(n.value),3))}}),ik={class:`page`},ak={key:1,class:`panel add-connection-panel`},ok={key:2,class:`panel needs-panel`},sk={class:`panel-heading`},ck={class:`heading-count`},lk={key:0,class:`need-group-label`},uk=[`id`],dk={class:`need-row`},fk={class:`row-glyph`},pk={class:`need-primary`},mk={key:0},hk={key:1,class:`mono-line`},gk={key:2,class:`need-detail`},_k={class:`need-actions`},vk={class:`panel services-panel`},yk={class:`panel-heading`},bk={class:`heading-count`},xk={key:0,class:`need-list`},Sk={key:0,class:`provider-group-heading`},Ck={class:`row-glyph`},wk={class:`need-primary`},Tk={key:0,class:`provider-section-label`},Ek={key:1,class:`provider-group-hint`},Dk={key:2,class:`need`},Ok={class:`need-row`},kk={class:`row-glyph`},Ak={class:`need-actions`},jk=[`id`],Mk={class:`need-row`},Nk={class:`row-glyph`},Pk={class:`need-primary`},Fk={class:`connection-name`},Ik={key:0},Lk={key:1},Rk={key:2},zk={key:3,class:`expired`},Bk=[`title`],Vk={key:5,class:`served`},Hk=[`title`],Uk={key:7,class:`mono-line`},Wk=[`onClick`],Gk={class:`need-actions`},Kk=[`aria-label`,`onClick`],qk=[`title`],Jk={class:`check-age`},Yk={key:3,class:`confirm-strip`,role:`alert`},Xk={key:0},Zk={key:1},Qk={key:4,class:`confirm-strip`,role:`alert`},$k={key:1,class:`empty-state compact`},eA={key:0},tA={key:3,class:`quiet-line`},nA=6,rA=`github`,iA=3,aA=P({__name:`ConnectionsView`,setup(e){let t=zw(),n=q(()=>t.can($.AddConnections)&&t.can($.EditConnections)),r=q(()=>t.can($.TestConnections)),i=Qg(),a=Zg(),o=typeof i.query.binding==`string`?i.query.binding:null,s=j(o&&n.value?{mode:`need`,binding:o}:null),c=j(null),l=j(null),u=j(null),d=Wt({}),f=j([]);function p(e){return f.value.includes(e.id)?e.available_tools:e.available_tools.slice(0,nA)}function m(e){f.value=f.value.includes(e)?f.value.filter(t=>t!==e):[...f.value,e]}let h={invalid:`That sign-in is no longer valid. Start again.`,expired:`The sign-in took too long. Start again.`,refused:`Sign-in was cancelled.`,scope:`The server did not grant all the access you requested, so nothing was saved. Sign in again and grant the selected access, or start a new connection requesting less.`,taken:`That binding already has a connection.`,failed:`Sign-in did not finish. Check the server and try again.`},g=typeof i.query.oauth==`string`?i.query.oauth:``,_=typeof i.query.capability==`string`?i.query.capability:``,v=j(g===`connected`?{ok:!0,text:`Connected ${_||`the server`}. Use Edit to choose which tools jobs may use.`}:g?{ok:!1,text:h[g]??h.failed}:null);if(g){let e=Object.fromEntries(Object.entries(i.query).filter(([e])=>e!==`oauth`&&e!==`capability`));a.replace({query:e})}let y=typeof i.query.review==`string`?i.query.review:``,b=typeof i.query.job==`string`?i.query.job:``,x={missing:{label:`Not connected`,pill:`pending`,icon:`link-variant-off`},unavailable:{label:`Needs attention`,pill:`failed`,icon:`alert-outline`},needs_approval:{label:`Awaiting approval`,pill:`pending`,icon:`shield-alert-outline`},ready:{label:`Ready`,pill:`connected`,icon:`check`}},S={notification:`bell-outline`,mcp:`server-network`,api:`api`,source:`source-repository`},C={github:`github`,sentry:`server-network`,mcp:`server-network`,api:`api`,webhook:`webhook`,anthropic:`creation-outline`,openai:`robot-outline`,openrouter:`transit-connection-variant`,openai_compatible:`server-outline`},w=q(()=>t.connections.filter(e=>e.kind!==`model`)),T=q(()=>w.value.filter(e=>e.provider===`github`)),ee=q(()=>T.value.filter(e=>e.kind!==`source`&&(e.auth!==`source`||e.status!==`revoked`))),te=q(()=>[{key:`github`,sections:[{key:`access`,label:`Repository access`,connections:E.value},{key:`tools`,label:`Job tools`,connections:ee.value}]},{key:`other`,sections:[{key:`all`,label:``,connections:w.value.filter(e=>e.provider!==`github`)}]}].filter(e=>e.key===`github`?T.value.length:e.sections[0].connections.length)),E=q(()=>T.value.filter(e=>e.kind===`source`)),ne=q(()=>E.value.filter(e=>e.status===`connected`)),D=q(()=>T.value.find(e=>e.kind===`mcp`&&e.status===`connected`)??null),re=q(()=>{let e=ne.value.filter(e=>e.last_check?.ok===!1).length,t=E.value.filter(e=>e.status===`expired`).length;return[E.value.length?Q(E.value.length,`account`):`No repository access yet`,t?`${t} with an expired token`:``,e?`${e} failing its check`:``].filter(Boolean).join(` · `)});function ie(e){return t.repositories.filter(t=>t.github_connection_id===e.id).map(e=>e.full_name)}function O(e){let t=ie(e);return t.length?t.length>iA?Q(t.length,`repository`,`repositories`):t.join(`, `):`no repositories added yet`}function ae(e){if(e.status===`connected`&&e.last_check?.ok!==!1)return``;let t=ie(e).length;if(!t)return``;let n=D.value?.auth===`source`?` ${t===1?`Its`:`Their`} jobs cannot use GitHub tools.`:``;return`${t===1?`This repository`:`These repositories`} cannot sync.${n}`}function oe(){return Ne(`github-tools`,`github-tools`,async()=>{let e=T.value.find(e=>e.kind===`mcp`&&e.status===`revoked`&&e.binding_key===rA);e&&await GC(e.id);let n=await QC({provider:`github`,binding_key:rA,display_name:`GitHub tools`,token:``,settings:{},require_approval:!1,auth:`source`});return await t.refresh(),`GitHub tools on. ${Q(n.available_tools.length,`tool`)} for jobs that name github. Each job reads only its own repository.`},`Unable to turn on GitHub tools`)}function se(e){return e.binding===rA&&e.kind===`mcp`&&e.status===`missing`&&n.value&&!D.value&&ne.value.length>0}let ce=q(()=>t.needs.filter(e=>e.status!==`ready`)),le={unavailable:0,missing:1,needs_approval:2,ready:3},ue=q(()=>[...ce.value].sort((e,t)=>Number(t.required)-Number(e.required)||le[e.status]-le[t.status]||e.binding.localeCompare(t.binding)));function de(e){return!e.required&&e.status===`missing`}let fe=q(()=>ue.value.filter(e=>!de(e))),pe=q(()=>ue.value.filter(de)),me=q(()=>[{key:`blocking`,label:``,needs:fe.value},{key:`optional`,label:`Optional. Jobs run without these and skip that step.`,needs:pe.value}].filter(e=>e.needs.length));function he(e){return t.needs.filter(t=>t.status===`ready`&&t.connection?.id===e.id)}function ge(e){return e.provider===`webhook`}function _e(e){return n.value&&(e.kind===`mcp`||e.kind===`api`||e.provider===`webhook`)}function ve(e){return e.kind===`source`&&e.auth===`token`&&(e.status===`connected`||e.status===`expired`)&&t.can($.AddGitHubRepositories)}async function ye(e){s.value=null,await t.refresh(),d[`connection-${e.id}`]={ok:!0,text:`Token replaced. Its repositories keep working.`}}function be(e){return ve(e)&&KS(e.expires_at)||ve(e)&&e.last_check?.ok===!1&&!e.last_check.features?.length?`Replace token`:e.kind===`source`&&e.auth!==`token`&&e.status===`connected`&&e.last_check?.ok===!1&&r.value?`Check access`:_e(e)?GS(e)?`Reconnect`:e.last_check&&!e.last_check.ok?`Fix`:null:null}function xe(e){be(e)===`Check access`?Ie(e,`connection-${e.id}`):Ae({mode:`edit`,id:e.id})}function Se(e){return!r.value||e.status!==`connected`?null:e.kind===`mcp`?`Check tools`:e.kind===`api`?`Check operations`:e.provider===`webhook`?`Send test`:e.kind===`source`?`Check access`:null}let Ce=j(null),we=j([]);function Te(e){let r=[],i=Se(e);i&&r.push({label:i,appIcon:e.provider===`webhook`?`send-outline`:`refresh`,command:()=>Ie(e,`connection-${e.id}`)}),_e(e)&&r.push({label:GS(e)?`Reconnect`:`Edit`,appIcon:`pencil-outline`,command:()=>Ae({mode:`edit`,id:e.id})}),ve(e)&&r.push({label:`Replace token`,appIcon:`shield-key-outline`,command:()=>Ae({mode:`edit`,id:e.id})}),e.kind===`source`&&n.value&&r.push({label:e.attribution?`Don't mention SecondShift`:`Mention SecondShift`,appIcon:`check-decagram-outline`,command:()=>Pe(e,!e.attribution)});let a=[];return e.status!==`revoked`&&t.can($.DisconnectConnections)&&a.push({label:e.auth===`source`?`Turn off…`:`Disconnect…`,appIcon:`power-plug-off-outline`,danger:!0,command:()=>{u.value=e.id,l.value=null}}),e.status===`revoked`&&t.can($.DeleteConnections)&&a.push({label:`Delete…`,appIcon:`trash-can-outline`,danger:!0,command:()=>{l.value=e.id,u.value=null}}),r.length&&a.length&&r.push({separator:!0}),[...r,...a]}function Ee(e,t){we.value=Te(t),Ce.value?.toggle(e)}function De(e){return Te(e).length>0}let Oe=q(()=>{let e=t.needs.filter(e=>e.status===`needs_approval`).length,n=[t.bindingsToSetUp?`${Q(t.bindingsToSetUp,`binding`)} to set up`:``,t.brokenConnections?`${Q(t.brokenConnections,`connection`)} failing`:``,e?`${Q(e,`binding`)} waiting for approval`:``].filter(Boolean);if(n.length)return n.join(` · `);let r=Q(w.value.length,`connection`);return t.needs.length?`${r} · every job has what it needs`:r});function ke(e){let t=s.value;return!t||t.mode!==e.mode?!1:t.mode===`need`&&e.mode===`need`?t.binding===e.binding:t.mode===`edit`&&e.mode===`edit`?t.id===e.id:!0}function Ae(e){s.value=ke(e)?null:e,l.value=null}function je(e){return e.jobs.filter(e=>e.grant_status===`pending`||e.grant_status===`unconfigured`).length}function Me(e,n){let r=t.connections.find(e=>e.binding_key===n),i=s.value?.mode===`need`?n:`connection-${r?.id??n}`;d[i]=e,s.value=null}async function Ne(e,t,n,r){c.value=e,delete d[t];try{d[t]={ok:!0,text:await n()}}catch(e){d[t]={ok:!1,text:X(e,r)}}finally{c.value=null}}function Pe(e,n){return Ne(`attribution-${e.id}`,`connection-${e.id}`,async()=>(await UC(e.id,n),await t.refresh(),n?`Pull requests and issues now say SecondShift opened them.`:`Pull requests and issues no longer mention SecondShift. Branches are named after the job.`),`Unable to save the setting`)}function Fe(e){return Ne(`approve-${e.binding}`,e.binding,async()=>{if(!e.connection)throw Error(`Connect this binding first.`);let n=je(e);return await qC(e,e.connection.id),await t.refresh(),`Approved for ${Q(n,`job`)}.`},`Unable to approve`)}function Ie(e,n){return Ne(`test-${e.id}`,n,async()=>{let n=await KC(e.id);if(await t.refresh(),!n.ok)throw Error(n.message);return e.provider===`webhook`?`Test message delivered.`:n.message},`Unable to send a test message`)}async function Le(e){return u.value=null,Ne(`revoke-${e.id}`,`connection-${e.id}`,async()=>(await WC(e.id),await t.refresh(),e.auth===`source`?`GitHub tools off. Turn them on again from the GitHub card.`:`Disconnected. Its stored URL or token was discarded; jobs using it are blocked until you reconnect.`),`Unable to disconnect`)}async function Re(e){l.value=null,await Ne(`delete-${e.id}`,`connection-${e.id}`,async()=>(await GC(e.id),await t.refresh(),`Deleted.`),`Unable to delete`)}async function ze(){c.value=`refresh`;try{await t.refresh()}finally{c.value=null}}return Zr(async()=>{o&&(t.needs.find(e=>e.binding===o)?.status!==`missing`&&(s.value=null),await Fn(),document.getElementById(`need-${o}`)?.scrollIntoView({block:`center`}))}),(e,r)=>{let i=F(`RouterLink`);return z(),B(`div`,ik,[U(qT,{compact:``,title:`Connections`,description:Oe.value},{default:N(()=>[M(y)?(z(),V(i,{key:0,to:{path:`/jobs`,query:{review:M(y)}},class:`secondary-action`},{default:N(()=>[U(J,{name:`arrow-left`}),W(` Back to `+A(M(b)||`job review`),1)]),_:1},8,[`to`])):G(``,!0),U(M(Y),{label:`Refresh`,severity:`secondary`,text:``,loading:c.value===`refresh`,onClick:ze},{icon:N(()=>[U(J,{name:`refresh`})]),_:1},8,[`loading`]),n.value?(z(),V(M(Y),{key:1,class:`main-action`,label:`Add connection`,onClick:r[0]||=e=>Ae({mode:`add`})},{icon:N(()=>[U(J,{name:`plus`})]),_:1})):G(``,!0)]),_:1},8,[`description`]),v.value?(z(),B(`p`,{key:0,class:k([`page-notice`,{error:!v.value.ok}]),role:`status`},[U(J,{name:v.value.ok?`check-circle-outline`:`alert-circle-outline`},null,8,[`name`]),W(` `+A(v.value.text),1)],2)):G(``,!0),ke({mode:`add`})?(z(),B(`section`,ak,[U(ZO,{onDone:Me,onCancel:r[1]||=e=>s.value=null})])):G(``,!0),ue.value.length?(z(),B(`section`,ok,[H(`div`,sk,[H(`div`,null,[H(`h2`,null,[W(A(fe.value.length?`To set up`:`Optional bindings`)+` `,1),H(`span`,ck,A(fe.value.length||pe.value.length),1)]),H(`p`,null,[r[7]||=W(`Jobs ask for connections by name. Connect each name once and every job that uses it is covered. `,-1),U(ZT,{page:M(Fx).RepositoryConfiguration,section:`manifest-fields`},{default:N(()=>[...r[6]||=[W(`How bindings work`,-1)]]),_:1},8,[`page`])])])]),(z(!0),B(R,null,I(me.value,e=>(z(),B(`div`,{key:e.key,class:`need-list`},[e.label&&fe.value.length?(z(),B(`p`,lk,A(e.label),1)):G(``,!0),(z(!0),B(R,null,I(e.needs,e=>(z(),B(`article`,{id:`need-${e.binding}`,key:e.binding,class:k([`need`,[e.status,{optional:!e.required}]])},[H(`div`,dk,[H(`div`,fk,[U(J,{name:S[e.kind]},null,8,[`name`])]),H(`div`,pk,[H(`strong`,null,A(e.binding),1),H(`span`,null,[W(A(M(mS)(e.kind))+` · `+A(e.required?`required`:`optional`)+` for `,1),(z(!0),B(R,null,I(e.jobs,(e,t)=>(z(),B(R,{key:e.job_id},[t?(z(),B(R,{key:0},[W(`, `)],64)):G(``,!0),U(i,{to:`/jobs/${e.job_id}`,class:`need-job`},{default:N(()=>[W(A(e.job_name),1)]),_:2},1032,[`to`])],64))),128))]),e.connection&&e.status!==`missing`?(z(),B(`small`,mk,[W(A(e.connection.display_name),1),e.connection.target?(z(),B(R,{key:0},[W(` → `+A(e.connection.target),1)],64)):G(``,!0)])):G(``,!0),e.kind===`mcp`||e.kind===`api`?(z(),B(`small`,hk,A(e.requested_tools.join(`, `)),1)):G(``,!0),e.status===`unavailable`?(z(),B(`small`,gk,A(e.detail),1)):G(``,!0)]),H(`span`,{class:k([`status-pill`,de(e)?`optional`:x[e.status].pill])},A(x[e.status].label),3),H(`div`,_k,[se(e)?(z(),V(M(Y),{key:0,label:`Turn on GitHub tools`,size:`small`,loading:c.value===`github-tools`,onClick:oe},null,8,[`loading`])):e.status===`missing`&&n.value?(z(),V(M(Y),{key:1,label:ke({mode:`need`,binding:e.binding})?`Cancel`:`Connect`,size:`small`,severity:ke({mode:`need`,binding:e.binding})?`secondary`:void 0,text:de(e)||ke({mode:`need`,binding:e.binding}),onClick:t=>Ae({mode:`need`,binding:e.binding})},null,8,[`label`,`severity`,`text`,`onClick`])):e.status===`unavailable`&&e.connection?(z(),B(R,{key:2},[_e(e.connection)?(z(),V(M(Y),{key:0,label:ke({mode:`need`,binding:e.binding})?`Cancel`:`Reconnect`,size:`small`,onClick:t=>Ae({mode:`need`,binding:e.binding})},null,8,[`label`,`onClick`])):G(``,!0)],64)):e.status===`needs_approval`&&e.connection&&M(t).can(M($).ReviewCapabilities)?(z(),V(M(Y),{key:3,label:`Approve for ${M(Q)(je(e),`job`)}`,size:`small`,loading:c.value===`approve-${e.binding}`,onClick:t=>Fe(e)},null,8,[`label`,`loading`,`onClick`])):G(``,!0)])]),d[e.binding]?(z(),B(`p`,{key:0,class:k([`need-notice`,{ok:d[e.binding].ok}])},[U(J,{name:d[e.binding].ok?`check-circle-outline`:`alert-circle-outline`},null,8,[`name`]),W(` `+A(d[e.binding].text),1)],2)):G(``,!0),ke({mode:`need`,binding:e.binding})?(z(),V(ZO,{key:1,class:`inset`,binding:e.binding,connection:e.connection??void 0,onDone:Me,onCancel:r[2]||=e=>s.value=null},null,8,[`binding`,`connection`])):G(``,!0)],10,uk))),128))]))),128))])):G(``,!0),H(`section`,vk,[H(`div`,yk,[H(`div`,null,[H(`h2`,null,[r[8]||=W(`Connections `,-1),H(`span`,bk,A(w.value.length),1)]),r[9]||=H(`p`,null,`Shared by the whole workspace.`,-1)])]),w.value.length?(z(),B(`div`,xk,[(z(!0),B(R,null,I(te.value,e=>(z(),B(`div`,{key:e.key,class:k(e.key===`github`?`provider-group`:`connection-group`)},[e.key===`github`?(z(),B(`div`,Sk,[H(`div`,Ck,[U($D,{provider:`github`,fallback:`github`})]),H(`div`,wk,[r[10]||=H(`strong`,{class:`connection-name`},`GitHub`,-1),H(`span`,null,A(re.value),1)])])):G(``,!0),(z(!0),B(R,null,I(e.sections,a=>(z(),B(R,{key:a.key},[a.label?(z(),B(`p`,Tk,A(a.label),1)):G(``,!0),a.key===`access`&&!a.connections.length?(z(),B(`p`,Ek,[r[12]||=W(`Connect GitHub on `,-1),U(i,{to:M(t).can(M($).AddGitHubRepositories)?`/repositories/new?source=github`:`/repositories`},{default:N(()=>[...r[11]||=[W(`Repositories`,-1)]]),_:1},8,[`to`]),r[13]||=W(` to sync code and enable job tools.`,-1)])):G(``,!0),a.key===`tools`&&!D.value?(z(),B(`div`,Dk,[H(`div`,Ok,[H(`div`,kk,[U($D,{provider:`github`,fallback:`github`})]),r[14]||=H(`div`,{class:`need-primary`},[H(`strong`,{class:`connection-name`},`GitHub tools`),H(`span`,null,`Let jobs read pull requests, commits and Actions runs. Each job reads only its own repository.`)],-1),U(rk,{status:`pending`,label:`Off`}),H(`div`,Ak,[n.value&&ne.value.length?(z(),V(M(Y),{key:0,label:`Turn on`,size:`small`,loading:c.value===`github-tools`,onClick:oe},null,8,[`loading`])):G(``,!0)])])])):G(``,!0),a.key===`tools`&&d[`github-tools`]?(z(),B(`p`,{key:3,class:k([`need-notice`,{ok:d[`github-tools`].ok}])},[U(J,{name:d[`github-tools`].ok?`check-circle-outline`:`alert-circle-outline`},null,8,[`name`]),W(` `+A(d[`github-tools`].text),1)],2)):G(``,!0),(z(!0),B(R,null,I(a.connections,t=>(z(),B(`article`,{id:`connection-${t.id}`,key:t.id,class:k([`need`,{unavailable:t.status!==`connected`}])},[H(`div`,Mk,[H(`div`,Nk,[U($D,{provider:t.provider,fallback:C[t.provider]??S[t.kind]},null,8,[`provider`,`fallback`])]),H(`div`,Pk,[H(`strong`,Fk,A(e.key===`github`&&t.auth===`source`?`GitHub tools`:e.key===`github`?t.display_name.replace(/^GitHub · /,``):t.display_name),1),t.kind===`source`?(z(),B(`span`,Ik,[W(A(M(WS)(t.auth))+` · `,1),ie(t).length>iA?(z(),V(i,{key:0,to:{path:`/repositories`,query:{account:t.id}},class:`need-job`},{default:N(()=>[W(A(O(t)),1)]),_:2},1032,[`to`])):(z(),B(R,{key:1},[W(A(O(t)),1)],64))])):t.auth===`source`?(z(),B(`span`,Lk,A(M(Q)(t.available_tools.length,`tool`))+` · each job reads only its own repository`,1)):(z(),B(`span`,Rk,[W(A(M(mS)(t.kind))+` · `+A(M(xS)(t.provider)),1),t.target?(z(),B(R,{key:0},[W(` → `+A(t.target),1)],64)):G(``,!0)])),t.kind===`source`&&ae(t)?(z(),B(`small`,zk,A(ae(t)),1)):G(``,!0),t.kind===`source`&&t.auth===`token`?(z(),B(`small`,{key:4,class:k({expiring:M(KS)(t.expires_at),expired:t.status===`expired`}),title:t.expires_at?`${M($x)(t.expires_at)} · ${M(eS)(t.expires_at)}`:void 0},A(t.expires_at?t.status===`expired`?`Token expired ${M(tS)(t.expires_at)}. Syncs and runs stop until you replace it.`:`Token expires ${M(tS)(t.expires_at)}`:`Token does not expire`),11,Bk)):G(``,!0),he(t).length?(z(),B(`small`,Vk,[t.auth===`source`?(z(),B(R,{key:0},[W(`Used by `)],64)):(z(),B(R,{key:1},[W(`Serves `)],64)),(z(!0),B(R,null,I(he(t),(e,n)=>(z(),B(R,{key:e.binding},[n?(z(),B(R,{key:0},[W(`, `)],64)):G(``,!0),t.auth===`source`?G(``,!0):(z(),B(R,{key:1},[H(`code`,null,A(e.binding),1),r[15]||=W(` for `,-1)],64)),(z(!0),B(R,null,I(e.jobs,(t,n)=>(z(),B(R,{key:t.job_id},[n?(z(),B(R,{key:0},[W(`, `)],64)):G(``,!0),U(i,{to:`/jobs/${t.job_id}`,class:`need-job`},{default:N(()=>[W(A(t.job_name),1)]),_:2},1032,[`to`]),e.required&&!t.required?(z(),B(R,{key:1},[W(` (optional)`)],64)):G(``,!0)],64))),128))],64))),128))])):t.kind!==`source`&&M(VS)(t.usage,t.kind)?(z(),B(`small`,{key:6,title:t.usage?.last_used_at?`Last used ${M($x)(t.usage.last_used_at)}`:void 0},A(M(VS)(t.usage,t.kind)),9,Hk)):G(``,!0),t.available_tools.length?(z(),B(`small`,Uk,[W(A(p(t).join(`, `))+` `,1),t.available_tools.length>nA?(z(),B(`button`,{key:0,type:`button`,class:`link-button`,onClick:e=>m(t.id)},A(f.value.includes(t.id)?`fewer`:`+${t.available_tools.length-nA} more`),9,Wk)):G(``,!0)])):G(``,!0)]),t.status===`connected`&&t.last_check&&!t.last_check.ok?(z(),V(rk,{key:0,status:`error`,label:ge(t)?`Delivery failed`:`Check failed`,title:t.last_check.message},null,8,[`label`,`title`])):t.status===`expired`&&t.kind===`source`?(z(),V(rk,{key:1,status:`error`,label:`Token expired`})):(z(),V(rk,{key:2,status:t.status,label:t.auth===`source`&&t.status===`connected`?`On`:void 0},null,8,[`status`,`label`])),H(`div`,Gk,[be(t)?(z(),V(M(Y),{key:0,label:ke({mode:`edit`,id:t.id})?`Cancel`:be(t),size:`small`,loading:c.value===`test-${t.id}`,onClick:e=>xe(t)},null,8,[`label`,`loading`,`onClick`])):G(``,!0),De(t)?(z(),B(`button`,{key:1,type:`button`,class:`icon-action`,"aria-label":`More actions for ${t.display_name}`,"aria-haspopup":`menu`,onClick:e=>Ee(e,t)},[U(J,{name:`dots-horizontal`})],8,Kk)):G(``,!0)])]),d[`connection-${t.id}`]?(z(),B(`p`,{key:0,class:k([`need-notice`,{ok:d[`connection-${t.id}`].ok}])},[U(J,{name:d[`connection-${t.id}`].ok?`check-circle-outline`:`alert-circle-outline`},null,8,[`name`]),W(` `+A(d[`connection-${t.id}`].text),1)],2)):t.last_check?(z(),B(`p`,{key:1,class:k([`need-notice`,{ok:t.last_check.ok}]),title:`${M($x)(t.last_check.checked_at)} · ${M(eS)(t.last_check.checked_at)}`},[U(J,{name:t.last_check.ok?`check-circle-outline`:`alert-circle-outline`},null,8,[`name`]),W(` `+A(t.last_check.message)+` `,1),H(`span`,Jk,A(ge(t)?`Last delivery`:`Checked`)+` `+A(M(tS)(t.last_check.checked_at)),1)],10,qk)):G(``,!0),t.kind===`source`&&t.status===`connected`&&t.last_check?(z(),V(nk,{key:2,check:t.last_check},null,8,[`check`])):G(``,!0),U(aD,{connection:t},null,8,[`connection`]),u.value===t.id?(z(),B(`div`,Yk,[t.auth===`source`?(z(),B(`span`,Xk,[r[16]||=W(`Turning off GitHub tools blocks jobs that name `,-1),H(`code`,null,A(t.binding_key),1),r[17]||=W(` until you turn them on again. Repository access stays as it is.`,-1)])):(z(),B(`span`,Zk,`Disconnecting discards the stored URL or token. `+A(t.usage?.jobs?`${M(Q)(t.usage.jobs,`job`)} that use${t.usage.jobs===1?`s`:``} it will be blocked`:`Jobs that use it are blocked`)+` until you reconnect.`,1)),U(M(Y),{label:`Cancel`,severity:`secondary`,text:``,size:`small`,onClick:r[3]||=e=>u.value=null}),U(M(Y),{label:t.auth===`source`?`Turn off`:`Disconnect`,severity:`danger`,size:`small`,loading:c.value===`revoke-${t.id}`,onClick:e=>Le(t)},null,8,[`label`,`loading`,`onClick`])])):G(``,!0),l.value===t.id?(z(),B(`div`,Qk,[r[18]||=H(`span`,null,`Deleting removes the connection. Jobs that used it go back to awaiting approval.`,-1),U(M(Y),{label:`Cancel`,severity:`secondary`,text:``,size:`small`,onClick:r[4]||=e=>l.value=null}),U(M(Y),{label:`Delete`,severity:`danger`,size:`small`,loading:c.value===`delete-${t.id}`,onClick:e=>Re(t)},null,8,[`loading`,`onClick`])])):G(``,!0),ke({mode:`edit`,id:t.id})&&ve(t)?(z(),V(hE,{key:5,class:`need-setup inset`,"connection-id":t.id,onConnected:e=>ye(t)},null,8,[`connection-id`,`onConnected`])):ke({mode:`edit`,id:t.id})?(z(),V(ZO,{key:6,class:`inset`,connection:t,onDone:Me,onCancel:r[5]||=e=>s.value=null},null,8,[`connection`])):G(``,!0)],10,jk))),128))],64))),128))],2))),128))])):(z(),B(`div`,$k,[U(J,{name:`power-plug-off-outline`}),r[19]||=H(`strong`,null,`Nothing connected yet`,-1),n.value?G(``,!0):(z(),B(`span`,eA,`Workspace owners add connections.`))]))]),M(t).needs.length?G(``,!0):(z(),B(`p`,tA,[U(J,{name:`check-decagram-outline`}),r[20]||=W(` No job needs a connection yet. `,-1)])),U(M(mv),{ref_key:`rowMenu`,ref:Ce,model:we.value,popup:``,class:`row-menu`},{item:N(({item:e,props:t})=>[H(`a`,K(t.action,{class:[`row-menu-item`,{danger:e.danger}]}),[U(J,{name:e.appIcon},null,8,[`name`]),W(` `+A(e.label),1)],16)]),_:1},8,[`model`])])}}}),oA={key:0,class:`page-warning`},sA=P({__name:`ExecutionWarning`,setup(e){let t=zw(),n=q(()=>EC(t.overview?.execution));return(e,t)=>{let r=F(`RouterLink`);return n.value?(z(),B(`p`,oA,[U(J,{name:`alert-outline`}),H(`span`,null,A(n.value.text),1),U(r,{to:n.value.to,class:`primary-action`},{default:N(()=>[W(A(n.value.action)+` `,1),U(J,{name:`arrow-right`})]),_:1},8,[`to`])])):G(``,!0)}}}),cA=[`aria-label`],lA=[`aria-checked`,`onClick`],uA={key:0},dA=P({__name:`FilterChips`,props:{modelValue:{},options:{},label:{}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=t;return(t,r)=>(z(),B(`div`,{class:`filter-chips`,role:`radiogroup`,"aria-label":e.label},[(z(!0),B(R,null,I(e.options,t=>(z(),B(`button`,{key:t.value,type:`button`,role:`radio`,"aria-checked":e.modelValue===t.value,class:k({active:e.modelValue===t.value}),onClick:e=>n(`update:modelValue`,t.value)},[W(A(t.label),1),t.count===void 0?G(``,!0):(z(),B(`small`,uA,A(t.count),1))],10,lA))),128))],8,cA))}}),fA={fixed:`Always this value`,allowed:`Only these values`,maximum:`At most`,forbidden:`Never sent`};function pA(e){return e?.type?Array.isArray(e.type)?e.type:[e.type]:[]}function mA(e){return pA(e).some(e=>e===`integer`||e===`number`)}function hA(e,t){let n=e.properties[t],r=[`fixed`,`allowed`];return mA(n)&&r.push(`maximum`),e.required.includes(t)||r.push(`forbidden`),r.map(e=>({value:e,label:fA[e]}))}function gA(e,t){let n=t.trim(),r=pA(e);if(r.includes(`integer`)||r.includes(`number`)){let e=Number(n);if(n&&Number.isFinite(e))return e}if(r.includes(`boolean`)&&(n===`true`||n===`false`))return n===`true`;if(r.includes(`string`)||!r.length)return n;try{return JSON.parse(n)}catch{return n}}function _A(e,t){return t.split(`,`).map(e=>e.trim()).filter(Boolean).map(t=>gA(e,t))}function vA(e){return typeof e==`string`?e:JSON.stringify(e)}function yA(e,t){if(t.type===`fixed`)return`${e} is always ${vA(t.value)}`;if(t.type===`allowed`){let n=t.values.map(vA);return`${e} is only ${n.length>1?`${n.slice(0,-1).join(`, `)} or ${n[n.length-1]}`:n[0]}`}return t.type===`maximum`?`${e} is at most ${t.value}`:`${e} is never sent`}function bA(e,t,n,r){return{...e,[t]:{...e[t]??{},[n]:r}}}function xA(e,t,n){let r=Object.fromEntries(Object.entries(e[t]??{}).filter(([e])=>e!==n)),i=Object.fromEntries(Object.entries(e).filter(([e])=>e!==t));return Object.keys(r).length?{...i,[t]:r}:i}function SA(e,t){let n=e=>JSON.stringify(Object.keys(e).sort().map(t=>[t,Object.keys(e[t]).sort().map(n=>[n,e[t][n]])]));return n(e)===n(t)}var CA={class:`tool-rules`},wA={key:0,class:`tool-rule-list`},TA=[`aria-label`,`onClick`],EA=P({__name:`ToolRulesEditor`,props:{tool:{},input:{},rules:{},editable:{type:Boolean}},emits:[`update:rules`],setup(e,{emit:t}){let n=e,r=t,i=j(!1),a=j(null),o=j(null),s=j(``),c=q(()=>Object.entries(n.rules[n.tool]??{})),l=q(()=>Object.keys(n.input.properties).filter(e=>!n.rules[n.tool]?.[e])),u=q(()=>a.value?hA(n.input,a.value):[]),d=q(()=>n.input.properties[a.value??``]?.enum),f=q(()=>o.value!==null&&o.value!==`forbidden`),p=q(()=>o.value===`allowed`?d.value?`Separate values with commas: ${d.value.join(`, `)}`:`Separate values with commas`:o.value===`maximum`?`A number`:d.value?`One of ${d.value.join(`, `)}`:`Value`);function m(e){a.value=e,o.value=null,s.value=``}function h(){i.value=!1,a.value=null,o.value=null,s.value=``}function g(){let e=n.input.properties[a.value??``];if(o.value===`forbidden`)return{type:`forbidden`};if(!s.value.trim())return null;if(o.value===`fixed`)return{type:`fixed`,value:gA(e,s.value)};if(o.value===`allowed`)return{type:`allowed`,values:_A(e,s.value)};if(o.value===`maximum`){let e=Number(s.value);return Number.isFinite(e)?{type:`maximum`,value:e}:null}return null}let _=q(()=>a.value&&o.value?g():null);function v(){a.value&&_.value&&(r(`update:rules`,bA(n.rules,n.tool,a.value,_.value)),h())}function y(e){r(`update:rules`,xA(n.rules,n.tool,e))}return(t,n)=>(z(),B(`div`,CA,[c.value.length?(z(),B(`ul`,wA,[(z(!0),B(R,null,I(c.value,([t,n])=>(z(),B(`li`,{key:t},[U(J,{name:`lock-outline`}),H(`span`,null,A(M(yA)(t,n)),1),e.editable?(z(),B(`button`,{key:0,type:`button`,class:`tool-rule-remove`,"aria-label":`Remove the rule on ${t}`,onClick:e=>y(t)},[U(J,{name:`close`})],8,TA)):G(``,!0)]))),128))])):G(``,!0),i.value?(z(),B(`form`,{key:1,class:`tool-rule-form`,onSubmit:Fs(v,[`prevent`])},[U(M(mx),{"model-value":a.value,options:l.value,placeholder:`Argument`,"aria-label":`Argument of ${e.tool}`,"onUpdate:modelValue":m},null,8,[`model-value`,`options`,`aria-label`]),U(M(mx),{modelValue:o.value,"onUpdate:modelValue":n[0]||=e=>o.value=e,options:u.value,"option-label":`label`,"option-value":`value`,placeholder:`Rule`,disabled:!a.value,"aria-label":`Rule for ${a.value??`the argument`}`},null,8,[`modelValue`,`options`,`disabled`,`aria-label`]),f.value?(z(),V(M(ib),{key:0,modelValue:s.value,"onUpdate:modelValue":n[1]||=e=>s.value=e,placeholder:p.value,"aria-label":p.value},null,8,[`modelValue`,`placeholder`,`aria-label`])):G(``,!0),U(M(Y),{type:`submit`,label:`Add`,size:`small`,disabled:!_.value},null,8,[`disabled`]),U(M(Y),{type:`button`,label:`Cancel`,text:``,size:`small`,onClick:h})],32)):e.editable&&l.value.length?(z(),B(`button`,{key:2,type:`button`,class:`link-button tool-rule-add`,onClick:n[2]||=e=>i.value=!0},[U(J,{name:`plus`}),n[3]||=W(` Add restriction `,-1)])):G(``,!0)]))}}),DA={class:`job-access-review`},OA={key:0,class:`job-review-heading`},kA={class:`review-links`},AA={key:1,class:`page-error`},jA={class:`capability-summary`},MA={key:0,class:`requested-tools`},NA={key:0,class:`mcp-flag`,title:`The service does not mark this as read-only`},PA={key:1},FA={key:2,class:`tool-rule-grid`},IA={key:0},LA={key:1,class:`connection-required`},RA={key:3,class:`review-actions`},zA=P({__name:`JobAccessReview`,props:{job:{},heading:{type:Boolean,default:!0}},emits:[`reviewed`],setup(e,{emit:t}){let n=e,r=t,i=zw(),a=Wt({}),o=Wt({}),s=j(null),c=j(null);function l(e){return i.connections.filter(t=>t.kind===e.kind&&t.binding_key===e.binding&&t.status===`connected`)}function u(e){return a[e.id]??e.connection_id??l(e)[0]?.id??null}function d(e,t){a[e]=t}function f(e){return o[e.id]??e.tool_rules??{}}function p(e){return!SA(f(e),e.tool_rules??{})}function m(e){return OC(e,u(e))||p(e)}function h(e){return e.grant_status===`approved`?OC(e,u(e))?`Approve change`:`Save restrictions`:`Approve`}function g(e){return e.requested_tools.filter(t=>e.tool_inputs?.[t])}async function _(e,t){let a=u(e);if(t===`approved`&&!a)c.value=`Connect the ${e.binding} binding before reviewing it.`;else{s.value=`${t}-${e.id}`,c.value=null;try{await fw(n.job.id,e.id,{decision:t,connection_id:a,allowed_tools:e.requested_tools,...t===`approved`?{tool_rules:f(e)}:{}}),delete o[e.id],await i.refresh(),r(`reviewed`)}catch(e){c.value=X(e,`Unable to save the review`)}finally{s.value=null}}}return(t,n)=>{let r=F(`RouterLink`);return z(),B(`div`,DA,[e.heading?(z(),B(`div`,OA,[H(`div`,null,[n[4]||=H(`h3`,null,`Access review`,-1),H(`p`,null,[n[3]||=W(`This job asks for these bindings. Choose a connection for each binding, then approve it. `,-1),H(`span`,kA,[U(r,{to:`/jobs/${e.job.id}#skill`,class:`review-skill-link`},{default:N(()=>[...n[0]||=[W(`Read the skill first`,-1)]]),_:1},8,[`to`]),n[2]||=W(` · `,-1),U(ZT,{page:M(Fx).SecurityModel,section:`who-grants-what`,class:`review-skill-link`},{default:N(()=>[...n[1]||=[W(`How access works`,-1)]]),_:1},8,[`page`])])])])])):G(``,!0),c.value?(z(),B(`p`,AA,A(c.value),1)):G(``,!0),(z(!0),B(R,null,I(e.job.capabilities,t=>(z(),B(`div`,{key:t.id,class:`capability-review-row`},[H(`div`,jA,[H(`strong`,null,A(t.binding),1),H(`span`,null,A(M(mS)(t.kind))+` · `+A(t.required?`Required`:`Optional`),1),t.requested_tools.length?(z(),B(`small`,MA,[(z(!0),B(R,null,I(t.requested_tools,e=>(z(),B(`span`,{key:e},[W(A(e),1),t.changing_tools?.includes(e)?(z(),B(`span`,NA,`May change data`)):G(``,!0)]))),128))])):(z(),B(`small`,PA,`No tool list. It can use the whole connection`)),g(t).length&&(M(i).can(M($).ReviewCapabilities)||Object.keys(f(t)).length)?(z(),B(`div`,FA,[(z(!0),B(R,null,I(g(t),e=>(z(),B(`div`,{key:e,class:`tool-rule-tool`},[M(i).can(M($).ReviewCapabilities)||f(t)[e]?(z(),B(`code`,IA,A(e),1)):G(``,!0),U(EA,{tool:e,input:t.tool_inputs[e],rules:f(t),editable:M(i).can(M($).ReviewCapabilities),"onUpdate:rules":e=>o[t.id]=e},null,8,[`tool`,`input`,`rules`,`editable`,`onUpdate:rules`])]))),128))])):G(``,!0),t.access?(z(),B(`small`,{key:3,class:k({"field-error":!t.access?.ok})},A(t.access?.text),3)):G(``,!0)]),l(t).length&&M(i).can(M($).ReviewCapabilities)?(z(),V(M(mx),{key:0,class:`connection-select`,"model-value":u(t),options:l(t),"option-label":`display_name`,"option-value":`id`,"aria-label":`Connection for ${t.binding}`,"onUpdate:modelValue":e=>d(t.id,e)},null,8,[`model-value`,`options`,`aria-label`,`onUpdate:modelValue`])):l(t).length?G(``,!0):(z(),B(`div`,LA,[H(`strong`,null,[n[5]||=W(`No workspace connection matches `,-1),H(`code`,null,A(t.binding),1),n[6]||=W(`.`,-1)]),H(`small`,null,`Create `+A(M(hS)(M(mS)(t.kind)))+` connection with this binding name, then come back to approve it.`,1),M(i).can(M($).AddConnections)?(z(),V(r,{key:0,to:{path:`/connections`,query:M(NC)(e.job,t)},class:`secondary-action connection-setup-action`},{default:N(()=>[U(J,{name:`link-plus`}),W(` Set up `+A(t.binding),1)]),_:2},1032,[`to`])):G(``,!0)])),l(t).length?(z(),V(rk,{key:2,status:t.grant_status,label:M(_S)(t.grant_status)},null,8,[`status`,`label`])):G(``,!0),M(i).can(M($).ReviewCapabilities)?(z(),B(`div`,RA,[U(M(Y),{label:t.grant_status===`approved`?`Revoke`:`Deny`,severity:`danger`,text:``,size:`small`,loading:s.value===`denied-${t.id}`,onClick:e=>_(t,`denied`)},null,8,[`label`,`loading`,`onClick`]),m(t)?(z(),V(M(Y),{key:0,label:h(t),size:`small`,disabled:!u(t)||t.access?.ok===!1,title:u(t)?`Approve this connection and scope`:`Set up a matching connection first`,loading:s.value===`approved-${t.id}`,onClick:e=>_(t,`approved`)},{icon:N(()=>[U(J,{name:`check`})]),_:1},8,[`label`,`disabled`,`title`,`loading`,`onClick`])):G(``,!0)])):G(``,!0)]))),128))])}}}),BA={key:0,class:`page-error`},VA={key:1,class:`page-notice floating`,role:`status`},HA={key:0},UA={key:1},WA={class:`data-list`},GA={key:0,class:`job-group-head`},KA=[`aria-label`,`onClick`,`onKeydown`],qA={class:`job-primary`},JA={key:0},YA={class:`job-cell`},XA=[`title`],ZA={key:0,class:`cell-sub job-when`},QA=[`title`],$A={class:`job-statuses`},ej={key:2,class:`job-start-note`},tj={class:`job-actions`},nj=[`title`,`aria-expanded`,`aria-controls`,`onClick`],rj=[`aria-description`,`title`,`aria-busy`,`disabled`,`onClick`],ij=[`id`],aj=6e3,oj=P({__name:`JobList`,props:{jobs:{},groupByRepository:{type:Boolean,default:!1},review:{default:null}},setup(e){let t=e,n=zw(),r=Zg(),i=j(t.review),a=j(null),o=j(null),s=j(null),c=q(()=>{if(!t.groupByRepository)return[{id:0,name:``,jobs:t.jobs}];let e=new Map;for(let n of t.jobs){let t=e.get(n.repository_id)??{id:n.repository_id,name:n.repository,jobs:[]};t.jobs.push(n),e.set(n.repository_id,t)}return[...e.values()]});function l(e,t){e.target.closest(`a, button`)||r.push(`/jobs/${t}`)}function u(e){let t=e.split(`/`).filter(Boolean);return t.at(-1)?.toLowerCase()===`skill.md`?t.at(-2)??e:t.at(-1)??e}function d(e){return TC(e,n.repositories.find(t=>t.id===e.repository_id)?.enabled??!0,n.overview?.execution,n.connections)}let f;ei(()=>window.clearTimeout(f));async function p(e){a.value=`run-${e}`,o.value=null,s.value=null;try{let t=await jw(e),r=n.jobs.find(t=>t.id===e)?.name??`the job`;s.value={id:t.id,job:r,started:t.started},window.clearTimeout(f),f=window.setTimeout(()=>{s.value=null},aj),await n.refresh()}catch(e){o.value=X(e,`Unable to run job`)}finally{a.value=null}}return(e,t)=>{let r=F(`RouterLink`);return z(),B(R,null,[o.value?(z(),B(`p`,BA,A(o.value),1)):G(``,!0),s.value?(z(),B(`p`,VA,[U(J,{name:`play-circle-outline`}),s.value.started?(z(),B(`span`,HA,`Run #`+A(s.value.id)+` of `+A(s.value.job)+` started.`,1)):(z(),B(`span`,UA,`Run #`+A(s.value.id)+` of `+A(s.value.job)+` is still in progress.`,1)),U(r,{to:`/runs/${s.value.id}`,class:`detail-link`},{default:N(()=>[t[1]||=W(`View run `,-1),U(J,{name:`arrow-right`})]),_:1},8,[`to`]),H(`button`,{type:`button`,class:`page-notice-close`,"aria-label":`Dismiss`,onClick:t[0]||=e=>s.value=null},[U(J,{name:`close`})])])):G(``,!0),H(`div`,WA,[(z(!0),B(R,null,I(c.value,e=>(z(),B(R,{key:e.id},[e.name?(z(),B(`div`,GA,[U(r,{to:`/repositories/${e.id}`},{default:N(()=>[W(A(e.name),1)]),_:2},1032,[`to`])])):G(``,!0),(z(!0),B(R,null,I(e.jobs,e=>(z(),B(R,{key:e.id},[H(`div`,{class:`job-row clickable-row`,role:`link`,tabindex:`0`,"aria-label":`Open ${e.name}`,onClick:t=>l(t,e.id),onKeydown:Ls(t=>l(t,e.id),[`enter`])},[H(`div`,qA,[U(r,{to:`/jobs/${e.id}`,class:`job-name-link`,title:`${e.name} · skill ${u(e.skill_path)}`},{default:N(()=>[H(`strong`,null,A(e.name),1)]),_:2},1032,[`to`,`title`]),e.capabilities.length?(z(),B(`span`,JA,`Uses `+A(e.capabilities.map(e=>e.binding).join(`, `)),1)):G(``,!0)]),H(`div`,YA,[H(`strong`,{title:e.cron},A(M(lS)(e.cron,e.timezone,e.triggers)),9,XA),e.cron&&e.enabled&&e.next_run_at||e.last_run?(z(),B(`small`,ZA,[e.cron&&e.enabled&&e.next_run_at?(z(),B(`span`,{key:0,title:`${M(rS)(e.next_run_at,e.timezone)} · ${M(eS)(e.next_run_at)}`},`Next `+A(M(tS)(e.next_run_at)),9,QA)):G(``,!0),e.last_run?(z(),V(r,{key:1,to:`/runs/${e.last_run.id}`,class:k([`last-run`,e.last_run.status]),title:`${M($x)(e.last_run.at)} · ${M(eS)(e.last_run.at)}`},{default:N(()=>[W(A(M(BS)(e.last_run)),1)]),_:2},1032,[`to`,`class`,`title`])):G(``,!0)])):G(``,!0)]),H(`div`,$A,[e.cron||e.removed_at?(z(),V(rk,{key:0,status:M(uS)(e),label:M(dS)(M(uS)(e)),title:e.removed_at?M(_C):void 0},null,8,[`status`,`label`,`title`])):G(``,!0),M(vS)(e.grant_status)&&!M(n).can(M($).ReviewCapabilities)?(z(),V(rk,{key:1,status:e.grant_status,label:M(_S)(e.grant_status)},null,8,[`status`,`label`])):G(``,!0),!e.cron&&!e.removed_at?(z(),B(`small`,ej,A(M(lS)(e.cron,e.timezone,e.triggers)),1)):G(``,!0)]),H(`div`,tj,[e.capabilities.length||M(vS)(e.grant_status)?(z(),B(`button`,{key:0,type:`button`,class:k([`job-action labeled`,{active:i.value===e.id,attention:M(vS)(e.grant_status)&&M(n).can(M($).ReviewCapabilities)}]),title:M(vS)(e.grant_status)&&M(n).can(M($).ReviewCapabilities)?`Choose connections and approve access`:`See access and connections`,"aria-expanded":i.value===e.id,"aria-controls":`job-access-${e.id}`,onClick:t=>i.value=i.value===e.id?null:e.id},[M(vS)(e.grant_status)&&M(n).can(M($).ReviewCapabilities)?(z(),B(R,{key:0},[U(J,{"aria-hidden":`true`,name:`shield-alert-outline`}),t[2]||=H(`span`,null,`Review access`,-1)],64)):(z(),B(R,{key:1},[U(J,{"aria-hidden":`true`,name:`shield-check-outline`}),t[3]||=H(`span`,null,`Access`,-1)],64))],10,nj)):G(``,!0),M(n).can(M($).RunJobs)&&!e.removed_at?(z(),B(`button`,{key:1,type:`button`,class:k([`job-action`,{"is-loading":a.value===`run-${e.id}`}]),"aria-label":`Run now`,"aria-description":d(e)||void 0,title:d(e)||(e.enabled||!e.cron?`Run now`:`Run once. The schedule stays paused`),"aria-busy":a.value===`run-${e.id}`,disabled:a.value===`run-${e.id}`||!!d(e),onClick:t=>p(e.id)},[U(J,{name:a.value===`run-${e.id}`?`loading`:`play-outline`,"aria-hidden":`true`},null,8,[`name`])],10,rj)):G(``,!0),U(J,{"aria-hidden":`true`,name:`chevron-right`,class:`row-chevron`})])],40,KA),i.value===e.id?(z(),B(`section`,{key:0,id:`job-access-${e.id}`,class:`job-review`},[U(zA,{job:e},null,8,[`job`])],8,ij)):G(``,!0)],64))),128))],64))),128))])],64)}}});function sj(){let e=Qg(),t=Zg();function n(t){let n=e.query[t];return(Array.isArray(n)?n[0]:n)??``}function r(e){let t=Number(n(e));return Number.isInteger(t)&&t>0?t:null}function i(n){let r={};for(let[t,n]of Object.entries(e.query)){let e=Array.isArray(n)?n[0]:n;e&&(r[t]=e)}`page`in n||delete r.page;for(let[e,t]of Object.entries(n))t==null||t===``||e===`page`&&t===1?delete r[e]:r[e]=String(t);t.replace({query:r})}return{text:n,number:r,update:i}}var cj={class:`page`},lj={key:1,class:`list-toolbar runs-toolbar`},uj={class:`panel table-panel`},dj={key:0,class:`list-head`},fj={key:2,class:`empty-state wide`},pj={key:3,class:`empty-state wide`},mj={key:4,class:`empty-state wide`},hj=P({__name:`JobsView`,setup(e){let t=zw(),n=Qg(),r=sj(),i=Number(n.query.review),a=Number.isFinite(i)&&i>0?i:null,o=q(()=>t.jobs.length?`Skills from your repositories that run on a schedule, a webhook or by hand.`:`No jobs discovered yet.`),s=q(()=>new Set((t.overview?.failing_jobs??[]).map(e=>e.job_id))),c=[{value:``,label:`All`,matches:()=>!0},{value:`scheduled`,label:`Scheduled`,matches:e=>!e.removed_at&&!!e.cron},{value:`webhook`,label:`Webhook`,matches:e=>!e.removed_at&&e.triggers.includes(`webhook`)},{value:`manual`,label:`Manual`,matches:e=>uS(e)===`manual`},{value:`enabled`,label:`Enabled`,matches:e=>uS(e)===`enabled`},{value:`disabled`,label:`Paused`,matches:e=>uS(e)===`disabled`},{value:`failing`,label:`Failing`,matches:e=>s.value.has(e.id)},{value:`review`,label:`Needs approval`,matches:e=>yS(e.grant_status)},{value:`removed`,label:`Removed`,matches:e=>uS(e)===`removed`}],l=q(()=>r.text(`q`)),u=q(()=>r.number(`repository`)),d=q(()=>c.find(e=>e.value===r.text(`state`))?.value??``),f=q(()=>t.repositories.map(e=>({value:e.id,label:e.display_name}))),p=q(()=>{let e=l.value.toLowerCase();return t.jobs.filter(t=>(u.value===null||t.repository_id===u.value)&&(!e||[t.name,t.repository,t.skill_path,...t.capabilities.map(e=>e.binding)].some(t=>t.toLowerCase().includes(e))))}),m=q(()=>c.map(e=>({value:e.value,label:e.label,count:p.value.filter(e.matches).length})).filter(e=>e.value===``||e.count>0||e.value===d.value)),h=q(()=>{let e=c.find(e=>e.value===d.value)?.matches??(()=>!0);return p.value.filter(e)}),g=q(()=>!!(l.value||u.value||d.value));function _(){r.update({q:null,repository:null,state:null})}return(e,n)=>{let i=F(`RouterLink`);return z(),B(`div`,cj,[U(qT,{compact:``,title:`Jobs`,description:o.value},null,8,[`description`]),M(t).can(M($).RunJobs)&&M(t).jobs.length?(z(),V(sA,{key:0})):G(``,!0),M(t).jobs.length?(z(),B(`div`,lj,[U(EE,{"model-value":l.value,placeholder:`Search jobs, repositories or skills`,"onUpdate:modelValue":n[0]||=e=>M(r).update({q:e})},null,8,[`model-value`]),M(t).repositories.length>1?(z(),V(M(mx),{key:0,"model-value":u.value,options:f.value,"option-label":`label`,"option-value":`value`,placeholder:`All repositories`,"show-clear":``,class:`list-select`,"aria-label":`Repository`,"onUpdate:modelValue":n[1]||=e=>M(r).update({repository:e})},null,8,[`model-value`,`options`])):G(``,!0)])):G(``,!0),H(`section`,uj,[M(t).jobs.length?(z(),B(`div`,dj,[U(dA,{"model-value":d.value,options:m.value,label:`Job state`,"onUpdate:modelValue":n[2]||=e=>M(r).update({state:e})},null,8,[`model-value`,`options`])])):G(``,!0),h.value.length?(z(),V(oj,{key:1,jobs:h.value,"group-by-repository":M(t).repositories.length>1&&u.value===null,review:M(a)},null,8,[`jobs`,`group-by-repository`,`review`])):g.value?(z(),B(`div`,fj,[U(J,{name:`filter-remove-outline`}),n[3]||=H(`strong`,null,`No jobs match these filters`,-1),U(M(Y),{label:`Clear filters`,severity:`secondary`,text:``,size:`small`,onClick:_})])):M(t).repositories.length?(z(),B(`div`,mj,[U(J,{name:`calendar-search`}),n[7]||=H(`strong`,null,`No jobs discovered`,-1),n[8]||=H(`span`,null,"Add `.secondshift.yaml` to an active repository.",-1)])):(z(),B(`div`,pj,[U(J,{name:`source-branch-plus`}),n[5]||=H(`strong`,null,`No repositories yet`,-1),n[6]||=H(`span`,null,`Jobs come from a repository's .secondshift.yaml. Add one to see its jobs here.`,-1),U(i,{to:`/`,class:`detail-link`},{default:N(()=>[...n[4]||=[W(`Open setup`,-1)]]),_:1})]))])])}}}),gj={name:`TimesCircleIcon`,extends:Ev};function _j(e){return xj(e)||bj(e)||yj(e)||vj()}function vj(){throw TypeError(`Invalid attempt to spread non-iterable instance.
1676
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yj(e,t){if(e){if(typeof e==`string`)return Sj(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sj(e,t):void 0}}function bj(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function xj(e){if(Array.isArray(e))return Sj(e)}function Sj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cj(e,t,n,r,i,a){return z(),B(`svg`,K({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),_j(t[0]||=[H(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z`,fill:`currentColor`},null,-1)]),16)}gj.render=Cj;var wj=ad.extend({name:`chip`,style:`
1677
+ .p-chip {
1678
+ display: inline-flex;
1679
+ align-items: center;
1680
+ background: dt('chip.background');
1681
+ color: dt('chip.color');
1682
+ border-radius: dt('chip.border.radius');
1683
+ padding-block: dt('chip.padding.y');
1684
+ padding-inline: dt('chip.padding.x');
1685
+ gap: dt('chip.gap');
1686
+ }
1687
+
1688
+ .p-chip-icon {
1689
+ color: dt('chip.icon.color');
1690
+ font-size: dt('chip.icon.size');
1691
+ width: dt('chip.icon.size');
1692
+ height: dt('chip.icon.size');
1693
+ }
1694
+
1695
+ .p-chip-image {
1696
+ border-radius: 50%;
1697
+ width: dt('chip.image.width');
1698
+ height: dt('chip.image.height');
1699
+ margin-inline-start: calc(-1 * dt('chip.padding.y'));
1700
+ }
1701
+
1702
+ .p-chip:has(.p-chip-remove-icon) {
1703
+ padding-inline-end: dt('chip.padding.y');
1704
+ }
1705
+
1706
+ .p-chip:has(.p-chip-image) {
1707
+ padding-block-start: calc(dt('chip.padding.y') / 2);
1708
+ padding-block-end: calc(dt('chip.padding.y') / 2);
1709
+ }
1710
+
1711
+ .p-chip-remove-icon {
1712
+ cursor: pointer;
1713
+ font-size: dt('chip.remove.icon.size');
1714
+ width: dt('chip.remove.icon.size');
1715
+ height: dt('chip.remove.icon.size');
1716
+ color: dt('chip.remove.icon.color');
1717
+ border-radius: 50%;
1718
+ transition:
1719
+ outline-color dt('chip.transition.duration'),
1720
+ box-shadow dt('chip.transition.duration');
1721
+ outline-color: transparent;
1722
+ }
1723
+
1724
+ .p-chip-remove-icon:focus-visible {
1725
+ box-shadow: dt('chip.remove.icon.focus.ring.shadow');
1726
+ outline: dt('chip.remove.icon.focus.ring.width') dt('chip.remove.icon.focus.ring.style') dt('chip.remove.icon.focus.ring.color');
1727
+ outline-offset: dt('chip.remove.icon.focus.ring.offset');
1728
+ }
1729
+ `,classes:{root:`p-chip p-component`,image:`p-chip-image`,icon:`p-chip-icon`,label:`p-chip-label`,removeIcon:`p-chip-remove-icon`}}),Tj={name:`Chip`,extends:{name:`BaseChip`,extends:E_,props:{label:{type:[String,Number],default:null},icon:{type:String,default:null},image:{type:String,default:null},removable:{type:Boolean,default:!1},removeIcon:{type:String,default:void 0}},style:wj,provide:function(){return{$pcChip:this,$parentInstance:this}}},inheritAttrs:!1,emits:[`remove`],data:function(){return{visible:!0}},methods:{onKeydown:function(e){(e.key===`Enter`||e.key===`Backspace`)&&this.close(e)},close:function(e){this.visible=!1,this.$emit(`remove`,e)}},computed:{dataP:function(){return tl({removable:this.removable})}},components:{TimesCircleIcon:gj}},Ej=[`aria-label`,`data-p`],Dj=[`src`];function Oj(e,t,n,r,i,a){return i.visible?(z(),B(`div`,K({key:0,class:e.cx(`root`),"aria-label":e.label},e.ptmi(`root`),{"data-p":a.dataP}),[L(e.$slots,`default`,{},function(){return[e.image?(z(),B(`img`,K({key:0,src:e.image},e.ptm(`image`),{class:e.cx(`image`)}),null,16,Dj)):e.$slots.icon?(z(),V(li(e.$slots.icon),K({key:1,class:e.cx(`icon`)},e.ptm(`icon`)),null,16,[`class`])):e.icon?(z(),B(`span`,K({key:2,class:[e.cx(`icon`),e.icon]},e.ptm(`icon`)),null,16)):G(``,!0),e.label===null?G(``,!0):(z(),B(`div`,K({key:3,class:e.cx(`label`)},e.ptm(`label`)),A(e.label),17))]}),e.removable?L(e.$slots,`removeicon`,{key:0,removeCallback:a.close,keydownCallback:a.onKeydown},function(){return[(z(),V(li(e.removeIcon?`span`:`TimesCircleIcon`),K({class:[e.cx(`removeIcon`),e.removeIcon],onClick:a.close,onKeydown:a.onKeydown},e.ptm(`removeIcon`)),null,16,[`class`,`onClick`,`onKeydown`]))]}):G(``,!0)],16,Ej)):G(``,!0)}Tj.render=Oj;var kj=ad.extend({name:`autocomplete`,style:`
1730
+ .p-autocomplete {
1731
+ display: inline-flex;
1732
+ }
1733
+
1734
+ .p-autocomplete-loader {
1735
+ position: absolute;
1736
+ top: 50%;
1737
+ margin-top: -0.5rem;
1738
+ inset-inline-end: dt('autocomplete.padding.x');
1739
+ }
1740
+
1741
+ .p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-loader {
1742
+ inset-inline-end: calc(dt('autocomplete.dropdown.width') + dt('autocomplete.padding.x'));
1743
+ }
1744
+
1745
+ .p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-input {
1746
+ flex: 1 1 auto;
1747
+ width: 1%;
1748
+ }
1749
+
1750
+ .p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-input,
1751
+ .p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-input-multiple {
1752
+ border-start-end-radius: 0;
1753
+ border-end-end-radius: 0;
1754
+ }
1755
+
1756
+ .p-autocomplete-dropdown {
1757
+ cursor: pointer;
1758
+ display: inline-flex;
1759
+ user-select: none;
1760
+ align-items: center;
1761
+ justify-content: center;
1762
+ overflow: hidden;
1763
+ position: relative;
1764
+ width: dt('autocomplete.dropdown.width');
1765
+ border-start-end-radius: dt('autocomplete.dropdown.border.radius');
1766
+ border-end-end-radius: dt('autocomplete.dropdown.border.radius');
1767
+ background: dt('autocomplete.dropdown.background');
1768
+ border: 1px solid dt('autocomplete.dropdown.border.color');
1769
+ border-inline-start: 0 none;
1770
+ color: dt('autocomplete.dropdown.color');
1771
+ transition:
1772
+ background dt('autocomplete.transition.duration'),
1773
+ color dt('autocomplete.transition.duration'),
1774
+ border-color dt('autocomplete.transition.duration'),
1775
+ outline-color dt('autocomplete.transition.duration'),
1776
+ box-shadow dt('autocomplete.transition.duration');
1777
+ outline-color: transparent;
1778
+ }
1779
+
1780
+ .p-autocomplete-dropdown:not(:disabled):hover {
1781
+ background: dt('autocomplete.dropdown.hover.background');
1782
+ border-color: dt('autocomplete.dropdown.hover.border.color');
1783
+ color: dt('autocomplete.dropdown.hover.color');
1784
+ }
1785
+
1786
+ .p-autocomplete-dropdown:not(:disabled):active {
1787
+ background: dt('autocomplete.dropdown.active.background');
1788
+ border-color: dt('autocomplete.dropdown.active.border.color');
1789
+ color: dt('autocomplete.dropdown.active.color');
1790
+ }
1791
+
1792
+ .p-autocomplete-dropdown:focus-visible {
1793
+ box-shadow: dt('autocomplete.dropdown.focus.ring.shadow');
1794
+ outline: dt('autocomplete.dropdown.focus.ring.width') dt('autocomplete.dropdown.focus.ring.style') dt('autocomplete.dropdown.focus.ring.color');
1795
+ outline-offset: dt('autocomplete.dropdown.focus.ring.offset');
1796
+ }
1797
+
1798
+ .p-autocomplete-overlay {
1799
+ position: absolute;
1800
+ top: 0;
1801
+ left: 0;
1802
+ background: dt('autocomplete.overlay.background');
1803
+ color: dt('autocomplete.overlay.color');
1804
+ border: 1px solid dt('autocomplete.overlay.border.color');
1805
+ border-radius: dt('autocomplete.overlay.border.radius');
1806
+ box-shadow: dt('autocomplete.overlay.shadow');
1807
+ min-width: 100%;
1808
+ }
1809
+
1810
+ .p-autocomplete-list-container {
1811
+ overflow: auto;
1812
+ }
1813
+
1814
+ .p-autocomplete-list {
1815
+ margin: 0;
1816
+ list-style-type: none;
1817
+ display: flex;
1818
+ flex-direction: column;
1819
+ gap: dt('autocomplete.list.gap');
1820
+ padding: dt('autocomplete.list.padding');
1821
+ }
1822
+
1823
+ .p-autocomplete-option {
1824
+ cursor: pointer;
1825
+ white-space: nowrap;
1826
+ position: relative;
1827
+ overflow: hidden;
1828
+ display: flex;
1829
+ align-items: center;
1830
+ padding: dt('autocomplete.option.padding');
1831
+ border: 0 none;
1832
+ color: dt('autocomplete.option.color');
1833
+ background: transparent;
1834
+ transition:
1835
+ background dt('autocomplete.transition.duration'),
1836
+ color dt('autocomplete.transition.duration'),
1837
+ border-color dt('autocomplete.transition.duration');
1838
+ border-radius: dt('autocomplete.option.border.radius');
1839
+ }
1840
+
1841
+ .p-autocomplete-option:not(.p-autocomplete-option-selected):not(.p-disabled).p-focus {
1842
+ background: dt('autocomplete.option.focus.background');
1843
+ color: dt('autocomplete.option.focus.color');
1844
+ }
1845
+
1846
+ .p-autocomplete-option:not(.p-autocomplete-option-selected):not(.p-disabled):hover {
1847
+ background: dt('autocomplete.option.focus.background');
1848
+ color: dt('autocomplete.option.focus.color');
1849
+ }
1850
+
1851
+ .p-autocomplete-option-selected {
1852
+ background: dt('autocomplete.option.selected.background');
1853
+ color: dt('autocomplete.option.selected.color');
1854
+ }
1855
+
1856
+ .p-autocomplete-option-selected.p-focus {
1857
+ background: dt('autocomplete.option.selected.focus.background');
1858
+ color: dt('autocomplete.option.selected.focus.color');
1859
+ }
1860
+
1861
+ .p-autocomplete-option-group {
1862
+ margin: 0;
1863
+ padding: dt('autocomplete.option.group.padding');
1864
+ color: dt('autocomplete.option.group.color');
1865
+ background: dt('autocomplete.option.group.background');
1866
+ font-weight: dt('autocomplete.option.group.font.weight');
1867
+ }
1868
+
1869
+ .p-autocomplete-input-multiple {
1870
+ margin: 0;
1871
+ list-style-type: none;
1872
+ cursor: text;
1873
+ overflow: hidden;
1874
+ display: flex;
1875
+ align-items: center;
1876
+ flex-wrap: wrap;
1877
+ padding: calc(dt('autocomplete.padding.y') / 2) dt('autocomplete.padding.x');
1878
+ gap: calc(dt('autocomplete.padding.y') / 2);
1879
+ color: dt('autocomplete.color');
1880
+ background: dt('autocomplete.background');
1881
+ border: 1px solid dt('autocomplete.border.color');
1882
+ border-radius: dt('autocomplete.border.radius');
1883
+ width: 100%;
1884
+ transition:
1885
+ background dt('autocomplete.transition.duration'),
1886
+ color dt('autocomplete.transition.duration'),
1887
+ border-color dt('autocomplete.transition.duration'),
1888
+ outline-color dt('autocomplete.transition.duration'),
1889
+ box-shadow dt('autocomplete.transition.duration');
1890
+ outline-color: transparent;
1891
+ box-shadow: dt('autocomplete.shadow');
1892
+ }
1893
+
1894
+ .p-autocomplete-input-multiple.p-disabled {
1895
+ opacity: 1;
1896
+ background: dt('autocomplete.disabled.background');
1897
+ color: dt('autocomplete.disabled.color');
1898
+ }
1899
+
1900
+ .p-autocomplete-input-multiple:not(.p-disabled):hover {
1901
+ border-color: dt('autocomplete.hover.border.color');
1902
+ }
1903
+
1904
+ .p-autocomplete.p-focus .p-autocomplete-input-multiple:not(.p-disabled) {
1905
+ border-color: dt('autocomplete.focus.border.color');
1906
+ box-shadow: dt('autocomplete.focus.ring.shadow');
1907
+ outline: dt('autocomplete.focus.ring.width') dt('autocomplete.focus.ring.style') dt('autocomplete.focus.ring.color');
1908
+ outline-offset: dt('autocomplete.focus.ring.offset');
1909
+ }
1910
+
1911
+ .p-autocomplete.p-invalid .p-autocomplete-input-multiple {
1912
+ border-color: dt('autocomplete.invalid.border.color');
1913
+ }
1914
+
1915
+ .p-variant-filled.p-autocomplete-input-multiple {
1916
+ background: dt('autocomplete.filled.background');
1917
+ }
1918
+
1919
+ .p-autocomplete-input-multiple.p-variant-filled:not(.p-disabled):hover {
1920
+ background: dt('autocomplete.filled.hover.background');
1921
+ }
1922
+
1923
+ .p-autocomplete.p-focus .p-autocomplete-input-multiple.p-variant-filled:not(.p-disabled) {
1924
+ background: dt('autocomplete.filled.focus.background');
1925
+ }
1926
+
1927
+ .p-autocomplete-chip.p-chip {
1928
+ padding-block-start: calc(dt('autocomplete.padding.y') / 2);
1929
+ padding-block-end: calc(dt('autocomplete.padding.y') / 2);
1930
+ border-radius: dt('autocomplete.chip.border.radius');
1931
+ }
1932
+
1933
+ .p-autocomplete-input-multiple:has(.p-autocomplete-chip) {
1934
+ padding-inline-start: calc(dt('autocomplete.padding.y') / 2);
1935
+ padding-inline-end: calc(dt('autocomplete.padding.y') / 2);
1936
+ }
1937
+
1938
+ .p-autocomplete-chip-item.p-focus .p-autocomplete-chip {
1939
+ background: dt('autocomplete.chip.focus.background');
1940
+ color: dt('autocomplete.chip.focus.color');
1941
+ }
1942
+
1943
+ .p-autocomplete-input-chip {
1944
+ flex: 1 1 auto;
1945
+ display: inline-flex;
1946
+ padding-block-start: calc(dt('autocomplete.padding.y') / 2);
1947
+ padding-block-end: calc(dt('autocomplete.padding.y') / 2);
1948
+ }
1949
+
1950
+ .p-autocomplete-input-chip input {
1951
+ border: 0 none;
1952
+ outline: 0 none;
1953
+ background: transparent;
1954
+ margin: 0;
1955
+ padding: 0;
1956
+ box-shadow: none;
1957
+ border-radius: 0;
1958
+ width: 100%;
1959
+ font-family: inherit;
1960
+ font-feature-settings: inherit;
1961
+ font-size: 1rem;
1962
+ color: inherit;
1963
+ }
1964
+
1965
+ .p-autocomplete-input-chip input::placeholder {
1966
+ color: dt('autocomplete.placeholder.color');
1967
+ }
1968
+
1969
+ .p-autocomplete.p-invalid .p-autocomplete-input-chip input::placeholder {
1970
+ color: dt('autocomplete.invalid.placeholder.color');
1971
+ }
1972
+
1973
+ .p-autocomplete-empty-message {
1974
+ padding: dt('autocomplete.empty.message.padding');
1975
+ }
1976
+
1977
+ .p-autocomplete-fluid {
1978
+ display: flex;
1979
+ }
1980
+
1981
+ .p-autocomplete-fluid:has(.p-autocomplete-dropdown) .p-autocomplete-input {
1982
+ width: 1%;
1983
+ }
1984
+
1985
+ .p-autocomplete:has(.p-inputtext-sm) .p-autocomplete-dropdown {
1986
+ width: dt('autocomplete.dropdown.sm.width');
1987
+ }
1988
+
1989
+ .p-autocomplete:has(.p-inputtext-sm) .p-autocomplete-dropdown .p-icon {
1990
+ font-size: dt('form.field.sm.font.size');
1991
+ width: dt('form.field.sm.font.size');
1992
+ height: dt('form.field.sm.font.size');
1993
+ }
1994
+
1995
+ .p-autocomplete:has(.p-inputtext-lg) .p-autocomplete-dropdown {
1996
+ width: dt('autocomplete.dropdown.lg.width');
1997
+ }
1998
+
1999
+ .p-autocomplete:has(.p-inputtext-lg) .p-autocomplete-dropdown .p-icon {
2000
+ font-size: dt('form.field.lg.font.size');
2001
+ width: dt('form.field.lg.font.size');
2002
+ height: dt('form.field.lg.font.size');
2003
+ }
2004
+
2005
+ .p-autocomplete-clear-icon {
2006
+ position: absolute;
2007
+ top: 50%;
2008
+ margin-top: -0.5rem;
2009
+ cursor: pointer;
2010
+ color: dt('form.field.icon.color');
2011
+ inset-inline-end: dt('autocomplete.padding.x');
2012
+ }
2013
+
2014
+ .p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-clear-icon {
2015
+ inset-inline-end: calc(dt('autocomplete.padding.x') + dt('autocomplete.dropdown.width'));
2016
+ }
2017
+
2018
+ .p-autocomplete:has(.p-autocomplete-clear-icon) .p-autocomplete-input {
2019
+ padding-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
2020
+ }
2021
+
2022
+ .p-inputgroup .p-autocomplete-dropdown {
2023
+ border-radius: 0;
2024
+ }
2025
+
2026
+ .p-inputgroup > .p-autocomplete:last-child:has(.p-autocomplete-dropdown) > .p-autocomplete-input {
2027
+ border-start-end-radius: 0;
2028
+ border-end-end-radius: 0;
2029
+ }
2030
+
2031
+ .p-inputgroup > .p-autocomplete:last-child .p-autocomplete-dropdown {
2032
+ border-start-end-radius: dt('autocomplete.dropdown.border.radius');
2033
+ border-end-end-radius: dt('autocomplete.dropdown.border.radius');
2034
+ }
2035
+ `,classes:{root:function(e){var t=e.instance;return[`p-autocomplete p-component p-inputwrapper`,{"p-invalid":t.$invalid,"p-focus":t.focused,"p-inputwrapper-filled":t.$filled||Pc(t.inputValue),"p-inputwrapper-focus":t.focused,"p-autocomplete-open":t.overlayVisible,"p-autocomplete-fluid":t.$fluid,"p-autocomplete-clearable":t.isClearIconVisible}]},pcInputText:`p-autocomplete-input`,inputMultiple:function(e){var t=e.instance,n=e.props;return[`p-autocomplete-input-multiple`,{"p-variant-filled":t.$variant===`filled`,"p-disabled":n.disabled}]},clearIcon:`p-autocomplete-clear-icon`,chipItem:function(e){var t=e.instance,n=e.i;return[`p-autocomplete-chip-item`,{"p-focus":t.focusedMultipleOptionIndex===n}]},pcChip:`p-autocomplete-chip`,chipIcon:`p-autocomplete-chip-icon`,inputChip:`p-autocomplete-input-chip`,loader:`p-autocomplete-loader`,dropdown:`p-autocomplete-dropdown`,overlay:`p-autocomplete-overlay p-component`,listContainer:`p-autocomplete-list-container`,list:`p-autocomplete-list`,optionGroup:`p-autocomplete-option-group`,option:function(e){var t=e.instance,n=e.option,r=e.i,i=e.getItemOptions;return[`p-autocomplete-option`,{"p-autocomplete-option-selected":t.isSelected(n),"p-focus":t.focusedOptionIndex===t.getOptionIndex(r,i),"p-disabled":t.isOptionDisabled(n)}]},emptyMessage:`p-autocomplete-empty-message`},inlineStyles:{root:{position:`relative`}}}),Aj={name:`BaseAutoComplete`,extends:Qy,props:{suggestions:{type:Array,default:null},optionLabel:null,optionDisabled:null,optionGroupLabel:null,optionGroupChildren:null,scrollHeight:{type:String,default:`14rem`},dropdown:{type:Boolean,default:!1},dropdownMode:{type:String,default:`blank`},multiple:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},placeholder:{type:String,default:null},dataKey:{type:String,default:null},minLength:{type:Number,default:1},delay:{type:Number,default:300},appendTo:{type:[String,Object],default:`body`},forceSelection:{type:Boolean,default:!1},completeOnFocus:{type:Boolean,default:!1},showClear:{type:Boolean,default:!1},inputId:{type:String,default:null},inputStyle:{type:Object,default:null},inputClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},panelClass:{type:[String,Object],default:null},overlayStyle:{type:Object,default:null},overlayClass:{type:[String,Object],default:null},dropdownIcon:{type:String,default:null},dropdownClass:{type:[String,Object],default:null},loader:{type:String,default:null},loadingIcon:{type:String,default:null},removeTokenIcon:{type:String,default:null},chipIcon:{type:String,default:null},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!1},selectOnFocus:{type:Boolean,default:!1},focusOnHover:{type:Boolean,default:!0},searchLocale:{type:String,default:void 0},searchMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptySearchMessage:{type:String,default:null},showEmptyMessage:{type:Boolean,default:!0},tabindex:{type:Number,default:0},typeahead:{type:Boolean,default:!0},ariaLabel:{type:String,default:null},ariaLabelledby:{type:String,default:null}},style:kj,provide:function(){return{$pcAutoComplete:this,$parentInstance:this}}};function jj(e,t,n){return(t=Mj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mj(e){var t=Nj(e,`string`);return Pj(t)==`symbol`?t:t+``}function Nj(e,t){if(Pj(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Pj(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Pj(e){"@babel/helpers - typeof";return Pj=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Pj(e)}function Fj(e){return zj(e)||Rj(e)||Lj(e)||Ij()}function Ij(){throw TypeError(`Invalid attempt to spread non-iterable instance.
2036
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lj(e,t){if(e){if(typeof e==`string`)return Bj(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bj(e,t):void 0}}function Rj(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function zj(e){if(Array.isArray(e))return Bj(e)}function Bj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Vj={name:`AutoComplete`,extends:Aj,inheritAttrs:!1,emits:[`change`,`focus`,`blur`,`item-select`,`item-unselect`,`option-select`,`option-unselect`,`dropdown-click`,`clear`,`complete`,`before-show`,`before-hide`,`show`,`hide`],inject:{$pcFluid:{default:null}},outsideClickListener:null,resizeListener:null,scrollHandler:null,overlay:null,virtualScroller:null,searchTimeout:null,dirty:!1,startRangeIndex:-1,data:function(){return{clicked:!1,focused:!1,focusedOptionIndex:-1,focusedMultipleOptionIndex:-1,overlayVisible:!1,searching:!1}},watch:{suggestions:function(){this.searching&&(this.show(),this.focusedOptionIndex=this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.searching=!1,!this.showEmptyMessage&&this.visibleOptions.length===0&&this.hide()),this.autoUpdateModel()}},mounted:function(){this.autoUpdateModel()},updated:function(){this.overlayVisible&&this.alignOverlay()},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&=(this.scrollHandler.destroy(),null),this.overlay&&=(Jl.clear(this.overlay),null)},methods:{getOptionIndex:function(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel:function(e){return this.optionLabel?Fc(e,this.optionLabel):e},getOptionValue:function(e){return e},getOptionRenderKey:function(e,t){return(this.dataKey?Fc(e,this.dataKey):this.getOptionLabel(e))+`_`+t},getPTOptions:function(e,t,n,r){return this.ptm(r,{context:{option:e,index:n,selected:this.isSelected(e),focused:this.focusedOptionIndex===this.getOptionIndex(n,t),disabled:this.isOptionDisabled(e)}})},isOptionDisabled:function(e){return this.optionDisabled?Fc(e,this.optionDisabled):!1},isOptionGroup:function(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel:function(e){return Fc(e,this.optionGroupLabel)},getOptionGroupChildren:function(e){return Fc(e,this.optionGroupChildren)},getAriaPosInset:function(e){var t=this;return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter(function(e){return t.isOptionGroup(e)}).length:e)+1},show:function(e){this.$emit(`before-show`),this.dirty=!0,this.overlayVisible=!0,this.focusedOptionIndex=this.focusedOptionIndex===-1?this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1:this.focusedOptionIndex,e&&Dl(this.multiple?this.$refs.focusInput:this.$refs.focusInput.$el)},hide:function(e){var t=this,n=function(){t.$emit(`before-hide`),t.dirty=e,t.overlayVisible=!1,t.clicked=!1,t.focusedOptionIndex=-1,e&&Dl(t.multiple?t.$refs.focusInput:t.$refs.focusInput?.$el)};setTimeout(function(){n()},0)},onFocus:function(e){this.disabled||(!this.dirty&&this.completeOnFocus&&this.search(e,e.target.value,`focus`),this.dirty=!0,this.focused=!0,this.overlayVisible&&(this.focusedOptionIndex=this.focusedOptionIndex===-1?this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1:this.focusedOptionIndex,this.scrollInView(this.focusedOptionIndex)),this.$emit(`focus`,e))},onBlur:function(e){var t,n;this.dirty=!1,this.focused=!1,this.focusedOptionIndex=-1,this.$emit(`blur`,e),(t=(n=this.formField).onBlur)==null||t.call(n)},onKeyDown:function(e){if(this.disabled)e.preventDefault();else{switch(e.code){case`ArrowDown`:this.onArrowDownKey(e);break;case`ArrowUp`:this.onArrowUpKey(e);break;case`ArrowLeft`:this.onArrowLeftKey(e);break;case`ArrowRight`:this.onArrowRightKey(e);break;case`Home`:this.onHomeKey(e);break;case`End`:this.onEndKey(e);break;case`PageDown`:this.onPageDownKey(e);break;case`PageUp`:this.onPageUpKey(e);break;case`Enter`:case`NumpadEnter`:this.onEnterKey(e);break;case`Space`:this.onSpaceKey(e);break;case`Escape`:this.onEscapeKey(e);break;case`Tab`:this.onTabKey(e);break;case`ShiftLeft`:case`ShiftRight`:this.onShiftKey(e);break;case`Backspace`:this.onBackspaceKey(e)}this.clicked=!1}},onInput:function(e){var t=this;if(this.typeahead){this.searchTimeout&&clearTimeout(this.searchTimeout);var n=e.target.value;this.multiple||this.updateModel(e,n),n.length===0?(this.searching=!1,this.hide(),this.$emit(`clear`)):n.length>=this.minLength?(this.focusedOptionIndex=-1,this.searchTimeout=setTimeout(function(){t.search(e,n,`input`)},this.delay)):(this.searching=!1,this.hide())}},onChange:function(e){var t=this;if(this.forceSelection){var n=!1;if(this.visibleOptions&&!this.multiple){var r,i=this.multiple?this.$refs.focusInput.value:(r=this.$refs.focusInput)==null||(r=r.$el)==null?void 0:r.value,a=this.visibleOptions.find(function(e){return t.isOptionMatched(e,i||``)});a!==void 0&&(n=!0,!this.isSelected(a)&&this.onOptionSelect(e,a))}if(!n){if(this.multiple)this.$refs.focusInput.value=``;else{var o=this.$refs.focusInput?.$el;o&&(o.value=``)}this.$emit(`clear`),!this.multiple&&this.updateModel(e,null)}}},onMultipleContainerFocus:function(){this.disabled||(this.focused=!0)},onMultipleContainerBlur:function(){this.focusedMultipleOptionIndex=-1,this.focused=!1},onMultipleContainerKeyDown:function(e){if(this.disabled)e.preventDefault();else switch(e.code){case`ArrowLeft`:this.onArrowLeftKeyOnMultiple(e);break;case`ArrowRight`:this.onArrowRightKeyOnMultiple(e);break;case`Backspace`:this.onBackspaceKeyOnMultiple(e)}},onContainerClick:function(e){this.clicked=!0,!(this.disabled||this.searching||this.loading||this.isDropdownClicked(e))&&(!this.overlay||!this.overlay.contains(e.target))&&Dl(this.multiple?this.$refs.focusInput:this.$refs.focusInput.$el)},onDropdownClick:function(e){var t=void 0;if(this.overlayVisible)this.hide(!0);else{var n=this.multiple?this.$refs.focusInput:this.$refs.focusInput.$el;Dl(n),t=n.value,this.dropdownMode===`blank`?this.search(e,``,`dropdown`):this.dropdownMode===`current`&&this.search(e,t,`dropdown`)}this.$emit(`dropdown-click`,{originalEvent:e,query:t})},onOptionSelect:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=this.getOptionValue(t);this.multiple?(this.$refs.focusInput.value=``,this.isSelected(t)||this.updateModel(e,[].concat(Fj(this.d_value||[]),[r]))):this.updateModel(e,r),this.$emit(`item-select`,{originalEvent:e,value:t}),this.$emit(`option-select`,{originalEvent:e,value:t}),n&&this.hide(!0)},onOptionMouseMove:function(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)},onOptionSelectRange:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-1;if(n===-1&&(n=this.findNearestSelectedOptionIndex(r,!0)),r===-1&&(r=this.findNearestSelectedOptionIndex(n)),n!==-1&&r!==-1){var i=Math.min(n,r),a=Math.max(n,r),o=this.visibleOptions.slice(i,a+1).filter(function(e){return t.isValidOption(e)}).filter(function(e){return!t.isSelected(e)}).map(function(e){return t.getOptionValue(e)});this.updateModel(e,[].concat(Fj(this.d_value||[]),Fj(o)))}},onClearClick:function(e){this.updateModel(e,null),this.$emit(`clear`)},onOverlayClick:function(e){o_.emit(`overlay-click`,{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){e.code===`Escape`&&this.onEscapeKey(e)},onArrowDownKey:function(e){if(this.overlayVisible){var t=this.focusedOptionIndex===-1?this.clicked?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex():this.findNextOptionIndex(this.focusedOptionIndex);this.multiple&&e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex,t),this.changeFocusedOptionIndex(e,t),e.preventDefault()}},onArrowUpKey:function(e){if(this.overlayVisible){if(e.altKey)this.focusedOptionIndex!==-1&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{var t=this.focusedOptionIndex===-1?this.clicked?this.findLastOptionIndex():this.findLastFocusedOptionIndex():this.findPrevOptionIndex(this.focusedOptionIndex);this.multiple&&e.shiftKey&&this.onOptionSelectRange(e,t,this.startRangeIndex),this.changeFocusedOptionIndex(e,t),e.preventDefault()}}},onArrowLeftKey:function(e){var t=e.currentTarget;this.focusedOptionIndex=-1,this.multiple&&(Ac(t.value)&&this.$filled?(Dl(this.$refs.multiContainer),this.focusedMultipleOptionIndex=this.d_value.length):e.stopPropagation())},onArrowRightKey:function(e){this.focusedOptionIndex=-1,this.multiple&&e.stopPropagation()},onHomeKey:function(e){var t=e.currentTarget,n=t.value.length,r=e.metaKey||e.ctrlKey,i=this.findFirstOptionIndex();this.multiple&&e.shiftKey&&r&&this.onOptionSelectRange(e,i,this.startRangeIndex),t.setSelectionRange(0,e.shiftKey?n:0),this.focusedOptionIndex=-1,e.preventDefault()},onEndKey:function(e){var t=e.currentTarget,n=t.value.length,r=e.metaKey||e.ctrlKey,i=this.findLastOptionIndex();this.multiple&&e.shiftKey&&r&&this.onOptionSelectRange(e,this.startRangeIndex,i),t.setSelectionRange(e.shiftKey?0:n,n),this.focusedOptionIndex=-1,e.preventDefault()},onPageUpKey:function(e){this.scrollInView(0),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey:function(e){this.typeahead?this.overlayVisible?(this.focusedOptionIndex!==-1&&(this.multiple&&e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex):this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),e.preventDefault()),this.hide()):(this.focusedOptionIndex=-1,this.onArrowDownKey(e)):this.multiple&&(e.target.value.trim()&&(this.updateModel(e,[].concat(Fj(this.d_value||[]),[e.target.value.trim()])),this.$refs.focusInput.value=``),e.preventDefault())},onSpaceKey:function(e){!this.autoOptionFocus&&this.focusedOptionIndex!==-1&&this.onEnterKey(e)},onEscapeKey:function(e){this.overlayVisible&&this.hide(!0),e.preventDefault()},onTabKey:function(e){this.focusedOptionIndex!==-1&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide()},onShiftKey:function(){this.startRangeIndex=this.focusedOptionIndex},onBackspaceKey:function(e){if(this.multiple){if(Pc(this.d_value)&&!this.$refs.focusInput.value){var t=this.d_value[this.d_value.length-1],n=this.d_value.slice(0,-1);this.writeValue(n,e),this.$emit(`item-unselect`,{originalEvent:e,value:t}),this.$emit(`option-unselect`,{originalEvent:e,value:t})}e.stopPropagation()}},onArrowLeftKeyOnMultiple:function(){this.focusedMultipleOptionIndex=this.focusedMultipleOptionIndex<1?0:this.focusedMultipleOptionIndex-1},onArrowRightKeyOnMultiple:function(){this.focusedMultipleOptionIndex++,this.focusedMultipleOptionIndex>this.d_value.length-1&&(this.focusedMultipleOptionIndex=-1,Dl(this.$refs.focusInput))},onBackspaceKeyOnMultiple:function(e){this.focusedMultipleOptionIndex!==-1&&this.removeOption(e,this.focusedMultipleOptionIndex)},onOverlayEnter:function(e){Jl.set(`overlay`,e,this.$primevue.config.zIndex.overlay),gl(e,{position:`absolute`,top:`0`}),this.alignOverlay(),this.$attrSelector&&e.setAttribute(this.$attrSelector,``)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit(`show`)},onOverlayLeave:function(e){e.style.pointerEvents=`none`,this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit(`hide`),this.overlay=null},onOverlayAfterLeave:function(e){Jl.clear(e)},alignOverlay:function(){var e=this.multiple?this.$refs.multiContainer:this.$refs.focusInput.$el;this.appendTo===`self`?vl(this.overlay,e):(this.overlay.style.minWidth=_l(e)+`px`,hl(this.overlay,e))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.overlayVisible&&e.overlay&&e.isOutsideClicked(t)&&e.hide()},document.addEventListener(`click`,this.outsideClickListener,!0))},unbindOutsideClickListener:function(){this.outsideClickListener&&=(document.removeEventListener(`click`,this.outsideClickListener,!0),null)},bindScrollListener:function(){var e=this;this.scrollHandler||=new a_(this.$refs.container,function(){e.overlayVisible&&e.hide()}),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!Ul()&&e.hide()},window.addEventListener(`resize`,this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&=(window.removeEventListener(`resize`,this.resizeListener),null)},isOutsideClicked:function(e){return!this.overlay.contains(e.target)&&!this.isInputClicked(e)&&!this.isDropdownClicked(e)},isInputClicked:function(e){return this.multiple?e.target===this.$refs.multiContainer||this.$refs.multiContainer.contains(e.target):e.target===this.$refs.focusInput.$el},isDropdownClicked:function(e){return this.$refs.dropdownButton?e.target===this.$refs.dropdownButton||this.$refs.dropdownButton.contains(e.target):!1},isOptionMatched:function(e,t){return this.isValidOption(e)&&this.getOptionLabel(e)?.toLocaleLowerCase(this.searchLocale)===t.toLocaleLowerCase(this.searchLocale)},isValidOption:function(e){return Pc(e)&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption:function(e){return this.isValidOption(e)&&this.isSelected(e)},isEquals:function(e,t){return Ic(e,t,this.equalityKey)},isSelected:function(e){var t=this,n=this.getOptionValue(e);return this.multiple?(this.d_value||[]).some(function(e){return t.isEquals(e,n)}):this.isEquals(this.d_value,this.getOptionValue(e))},findFirstOptionIndex:function(){var e=this;return this.visibleOptions.findIndex(function(t){return e.isValidOption(t)})},findLastOptionIndex:function(){var e=this;return Bc(this.visibleOptions,function(t){return e.isValidOption(t)})},findNextOptionIndex:function(e){var t=this,n=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex(function(e){return t.isValidOption(e)}):-1;return n>-1?n+e+1:e},findPrevOptionIndex:function(e){var t=this,n=e>0?Bc(this.visibleOptions.slice(0,e),function(e){return t.isValidOption(e)}):-1;return n>-1?n:e},findSelectedOptionIndex:function(){var e=this;return this.$filled?this.visibleOptions.findIndex(function(t){return e.isValidSelectedOption(t)}):-1},findFirstFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},search:function(e,t,n){t!=null&&(n!==`input`||t.trim().length!==0)&&(this.searching=!0,this.$emit(`complete`,{originalEvent:e,query:t}))},removeOption:function(e,t){var n=this,r=this.d_value[t],i=this.d_value.filter(function(e,n){return n!==t}).map(function(e){return n.getOptionValue(e)});this.updateModel(e,i),this.$emit(`item-unselect`,{originalEvent:e,value:r}),this.$emit(`option-unselect`,{originalEvent:e,value:r}),this.dirty=!0,Dl(this.multiple?this.$refs.focusInput:this.$refs.focusInput.$el)},changeFocusedOptionIndex:function(e,t){this.focusedOptionIndex!==t&&(this.focusedOptionIndex=t,this.scrollInView(),this.selectOnFocus&&this.onOptionSelect(e,this.visibleOptions[t],!1))},scrollInView:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1;this.$nextTick(function(){var n=t===-1?e.focusedOptionId:`${e.$id}_${t}`,r=El(e.list,`li[id="${n}"]`);r?r.scrollIntoView&&r.scrollIntoView({block:`nearest`,inline:`start`}):e.virtualScrollerDisabled||e.virtualScroller&&e.virtualScroller.scrollToIndex(t===-1?e.focusedOptionIndex:t)})},autoUpdateModel:function(){this.selectOnFocus&&this.autoOptionFocus&&!this.$filled&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel:function(e,t){this.writeValue(t,e),this.$emit(`change`,{originalEvent:e,value:t})},flatOptions:function(e){var t=this;return(e||[]).reduce(function(e,n,r){e.push({optionGroup:n,group:!0,index:r});var i=t.getOptionGroupChildren(n);return i&&i.forEach(function(t){return e.push(t)}),e},[])},overlayRef:function(e){this.overlay=e},listRef:function(e,t){this.list=e,t&&t(e)},virtualScrollerRef:function(e){this.virtualScroller=e},findNextSelectedOptionIndex:function(e){var t=this,n=this.$filled&&e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex(function(e){return t.isValidSelectedOption(e)}):-1;return n>-1?n+e+1:-1},findPrevSelectedOptionIndex:function(e){var t=this,n=this.$filled&&e>0?Bc(this.visibleOptions.slice(0,e),function(e){return t.isValidSelectedOption(e)}):-1;return n>-1?n:-1},findNearestSelectedOptionIndex:function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=-1;return this.$filled&&(t?(n=this.findPrevSelectedOptionIndex(e),n=n===-1?this.findNextSelectedOptionIndex(e):n):(n=this.findNextSelectedOptionIndex(e),n=n===-1?this.findPrevSelectedOptionIndex(e):n)),n>-1?n:e}},computed:{visibleOptions:function(){return this.optionGroupLabel?this.flatOptions(this.suggestions):this.suggestions||[]},inputValue:function(){return this.$filled?Pj(this.d_value)===`object`?this.getOptionLabel(this.d_value)??this.d_value:this.d_value:``},hasSelectedOption:function(){return this.$filled},equalityKey:function(){return this.dataKey},searchResultMessageText:function(){return Pc(this.visibleOptions)&&this.overlayVisible?this.searchMessageText.replaceAll(`{0}`,this.visibleOptions.length):this.emptySearchMessageText},searchMessageText:function(){return this.searchMessage||this.$primevue.config.locale.searchMessage||``},emptySearchMessageText:function(){return this.emptySearchMessage||this.$primevue.config.locale.emptySearchMessage||``},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||``},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||``},selectedMessageText:function(){return this.$filled?this.selectionMessageText.replaceAll(`{0}`,this.multiple?this.d_value.length:`1`):this.emptySelectionMessageText},listAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.listLabel:void 0},focusedOptionId:function(){return this.focusedOptionIndex===-1?null:`${this.$id}_${this.focusedOptionIndex}`},focusedMultipleOptionId:function(){return this.focusedMultipleOptionIndex===-1?null:`${this.$id}_multiple_option_${this.focusedMultipleOptionIndex}`},isClearIconVisible:function(){return this.showClear&&this.$filled&&!this.disabled&&!this.loading},ariaSetSize:function(){var e=this;return this.visibleOptions.filter(function(t){return!e.isOptionGroup(t)}).length},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions},panelId:function(){return this.$id+`_panel`},containerDataP:function(){return tl({fluid:this.$fluid})},overlayDataP:function(){return tl(jj({},`portal-`+this.appendTo,`portal-`+this.appendTo))},inputMultipleDataP:function(){return tl(jj({invalid:this.$invalid,disabled:this.disabled,focus:this.focused,fluid:this.$fluid,filled:this.$variant===`filled`,empty:!this.$filled},this.size,this.size))}},components:{InputText:ib,VirtualScroller:Zb,Portal:s_,Chip:Tj,ChevronDownIcon:Cb,SpinnerIcon:Zv,TimesIcon:Dv},directives:{ripple:$_}};function Hj(e){"@babel/helpers - typeof";return Hj=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Hj(e)}function Uj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Uj(Object(n),!0).forEach(function(t){Gj(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gj(e,t,n){return(t=Kj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kj(e){var t=qj(e,`string`);return Hj(t)==`symbol`?t:t+``}function qj(e,t){if(Hj(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hj(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Jj=[`data-p`],Yj=[`aria-activedescendant`,`data-p-has-dropdown`,`data-p`],Xj=[`id`,`aria-label`,`aria-setsize`,`aria-posinset`],Zj=[`id`,`placeholder`,`tabindex`,`disabled`,`aria-label`,`aria-labelledby`,`aria-expanded`,`aria-controls`,`aria-activedescendant`,`aria-invalid`],Qj=[`data-p-has-dropdown`],$j=[`disabled`,`aria-expanded`,`aria-controls`],eM=[`id`,`data-p`],tM=[`id`,`aria-label`],nM=[`id`],rM=[`id`,`aria-label`,`aria-selected`,`aria-disabled`,`aria-setsize`,`aria-posinset`,`onClick`,`onMousemove`,`data-p-selected`,`data-p-focused`,`data-p-disabled`];function iM(e,t,n,r,i,a){var o=F(`InputText`),s=F(`TimesIcon`),c=F(`Chip`),l=F(`SpinnerIcon`),u=F(`VirtualScroller`),d=F(`Portal`),f=ui(`ripple`);return z(),B(`div`,K({ref:`container`,class:e.cx(`root`),style:e.sx(`root`),onClick:t[11]||=function(){return a.onContainerClick&&a.onContainerClick.apply(a,arguments)},"data-p":a.containerDataP},e.ptmi(`root`)),[e.multiple?G(``,!0):(z(),V(o,{key:0,ref:`focusInput`,id:e.inputId,type:`text`,name:e.$formName,class:k([e.cx(`pcInputText`),e.inputClass]),style:de(e.inputStyle),defaultValue:a.inputValue,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,fluid:e.$fluid,disabled:e.disabled,size:e.size,invalid:e.invalid,variant:e.variant,autocomplete:`off`,role:`combobox`,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":`listbox`,"aria-autocomplete":`list`,"aria-expanded":i.overlayVisible,"aria-controls":i.overlayVisible?a.panelId:void 0,"aria-activedescendant":i.focused?a.focusedOptionId:void 0,onFocus:a.onFocus,onBlur:a.onBlur,onKeydown:a.onKeyDown,onInput:a.onInput,onChange:a.onChange,unstyled:e.unstyled,"data-p-has-dropdown":e.dropdown,pt:e.ptm(`pcInputText`)},null,8,[`id`,`name`,`class`,`style`,`defaultValue`,`placeholder`,`tabindex`,`fluid`,`disabled`,`size`,`invalid`,`variant`,`aria-label`,`aria-labelledby`,`aria-expanded`,`aria-controls`,`aria-activedescendant`,`onFocus`,`onBlur`,`onKeydown`,`onInput`,`onChange`,`unstyled`,`data-p-has-dropdown`,`pt`])),a.isClearIconVisible?L(e.$slots,`clearicon`,{key:1,class:k(e.cx(`clearIcon`)),clearCallback:a.onClearClick},function(){return[U(s,K({class:[e.cx(`clearIcon`)],onClick:a.onClearClick},e.ptm(`clearIcon`)),null,16,[`class`,`onClick`])]}):G(``,!0),e.multiple?(z(),B(`ul`,K({key:2,ref:`multiContainer`,class:e.cx(`inputMultiple`),tabindex:`-1`,role:`listbox`,"aria-orientation":`horizontal`,"aria-activedescendant":i.focused?a.focusedMultipleOptionId:void 0,onFocus:t[5]||=function(){return a.onMultipleContainerFocus&&a.onMultipleContainerFocus.apply(a,arguments)},onBlur:t[6]||=function(){return a.onMultipleContainerBlur&&a.onMultipleContainerBlur.apply(a,arguments)},onKeydown:t[7]||=function(){return a.onMultipleContainerKeyDown&&a.onMultipleContainerKeyDown.apply(a,arguments)},"data-p-has-dropdown":e.dropdown,"data-p":a.inputMultipleDataP},e.ptm(`inputMultiple`)),[(z(!0),B(R,null,I(e.d_value,function(t,n){return z(),B(`li`,K({key:`${n}_${a.getOptionLabel(t)}`,id:e.$id+`_multiple_option_`+n,class:e.cx(`chipItem`,{i:n}),role:`option`,"aria-label":a.getOptionLabel(t),"aria-selected":!0,"aria-setsize":e.d_value.length,"aria-posinset":n+1},{ref_for:!0},e.ptm(`chipItem`)),[L(e.$slots,`chip`,K({class:e.cx(`pcChip`),value:t,index:n,removeCallback:function(e){return a.removeOption(e,n)}},{ref_for:!0},e.ptm(`pcChip`)),function(){return[U(c,{class:k(e.cx(`pcChip`)),label:a.getOptionLabel(t),removeIcon:e.chipIcon||e.removeTokenIcon,removable:``,unstyled:e.unstyled,onRemove:function(e){return a.removeOption(e,n)},"data-p-focused":i.focusedMultipleOptionIndex===n,pt:e.ptm(`pcChip`)},{removeicon:N(function(){return[L(e.$slots,e.$slots.chipicon?`chipicon`:`removetokenicon`,{class:k(e.cx(`chipIcon`)),index:n,removeCallback:function(e){return a.removeOption(e,n)}})]}),_:2},1032,[`class`,`label`,`removeIcon`,`unstyled`,`onRemove`,`data-p-focused`,`pt`])]})],16,Xj)}),128)),H(`li`,K({class:e.cx(`inputChip`),role:`option`},e.ptm(`inputChip`)),[H(`input`,K({ref:`focusInput`,id:e.inputId,type:`text`,style:e.inputStyle,class:e.inputClass,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,disabled:e.disabled,autocomplete:`off`,role:`combobox`,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":`listbox`,"aria-autocomplete":`list`,"aria-expanded":i.overlayVisible,"aria-controls":e.$id+`_list`,"aria-activedescendant":i.focused?a.focusedOptionId:void 0,"aria-invalid":e.invalid||void 0,onFocus:t[0]||=function(){return a.onFocus&&a.onFocus.apply(a,arguments)},onBlur:t[1]||=function(){return a.onBlur&&a.onBlur.apply(a,arguments)},onKeydown:t[2]||=function(){return a.onKeyDown&&a.onKeyDown.apply(a,arguments)},onInput:t[3]||=function(){return a.onInput&&a.onInput.apply(a,arguments)},onChange:t[4]||=function(){return a.onChange&&a.onChange.apply(a,arguments)}},e.ptm(`input`)),null,16,Zj)],16)],16,Yj)):G(``,!0),i.searching||e.loading?L(e.$slots,e.$slots.loader?`loader`:`loadingicon`,{key:3,class:k(e.cx(`loader`))},function(){return[e.loader||e.loadingIcon?(z(),B(`i`,K({key:0,class:[`pi-spin`,e.cx(`loader`),e.loader,e.loadingIcon],"aria-hidden":`true`,"data-p-has-dropdown":e.dropdown},e.ptm(`loader`)),null,16,Qj)):e.loading?(z(),V(l,K({key:1,class:e.cx(`loader`),spin:``,"aria-hidden":`true`,"data-p-has-dropdown":e.dropdown},e.ptm(`loader`)),null,16,[`class`,`data-p-has-dropdown`])):G(``,!0)]}):G(``,!0),L(e.$slots,e.$slots.dropdown?`dropdown`:`dropdownbutton`,{toggleCallback:function(e){return a.onDropdownClick(e)}},function(){return[e.dropdown?(z(),B(`button`,K({key:0,ref:`dropdownButton`,type:`button`,class:[e.cx(`dropdown`),e.dropdownClass],disabled:e.disabled,"aria-haspopup":`listbox`,"aria-expanded":i.overlayVisible,"aria-controls":a.panelId,onClick:t[8]||=function(){return a.onDropdownClick&&a.onDropdownClick.apply(a,arguments)}},e.ptm(`dropdown`)),[L(e.$slots,`dropdownicon`,{class:k(e.dropdownIcon)},function(){return[(z(),V(li(e.dropdownIcon?`span`:`ChevronDownIcon`),K({class:e.dropdownIcon},e.ptm(`dropdownIcon`)),null,16,[`class`]))]})],16,$j)):G(``,!0)]}),e.typeahead?(z(),B(`span`,K({key:4,role:`status`,"aria-live":`polite`,class:`p-hidden-accessible`},e.ptm(`hiddenSearchResult`),{"data-p-hidden-accessible":!0}),A(a.searchResultMessageText),17)):G(``,!0),U(d,{appendTo:e.appendTo},{default:N(function(){return[U(Fo,K({name:`p-anchored-overlay`,onEnter:a.onOverlayEnter,onAfterEnter:a.onOverlayAfterEnter,onLeave:a.onOverlayLeave,onAfterLeave:a.onOverlayAfterLeave},e.ptm(`transition`)),{default:N(function(){return[i.overlayVisible?(z(),B(`div`,K({key:0,ref:a.overlayRef,id:a.panelId,class:[e.cx(`overlay`),e.panelClass,e.overlayClass],style:Wj(Wj({},e.panelStyle),e.overlayStyle),onClick:t[9]||=function(){return a.onOverlayClick&&a.onOverlayClick.apply(a,arguments)},onKeydown:t[10]||=function(){return a.onOverlayKeyDown&&a.onOverlayKeyDown.apply(a,arguments)},"data-p":a.overlayDataP},e.ptm(`overlay`)),[L(e.$slots,`header`,{value:e.d_value,suggestions:a.visibleOptions}),H(`div`,K({class:e.cx(`listContainer`),style:{"max-height":a.virtualScrollerDisabled?e.scrollHeight:``}},e.ptm(`listContainer`)),[U(u,K({ref:a.virtualScrollerRef},e.virtualScrollerOptions,{style:{height:e.scrollHeight},items:a.visibleOptions,tabindex:-1,disabled:a.virtualScrollerDisabled,pt:e.ptm(`virtualScroller`)}),pi({content:N(function(t){var n=t.styleClass,r=t.contentRef,o=t.items,s=t.getItemOptions,c=t.contentStyle,l=t.itemSize;return[H(`ul`,K({ref:function(e){return a.listRef(e,r)},id:e.$id+`_list`,class:[e.cx(`list`),n],style:c,role:`listbox`,"aria-label":a.listAriaLabel},e.ptm(`list`)),[(z(!0),B(R,null,I(o,function(t,n){return z(),B(R,{key:a.getOptionRenderKey(t,a.getOptionIndex(n,s))},[a.isOptionGroup(t)?(z(),B(`li`,K({key:0,id:e.$id+`_`+a.getOptionIndex(n,s),style:{height:l?l+`px`:void 0},class:e.cx(`optionGroup`),role:`option`},{ref_for:!0},e.ptm(`optionGroup`)),[L(e.$slots,`optiongroup`,{option:t.optionGroup,index:a.getOptionIndex(n,s)},function(){return[W(A(a.getOptionGroupLabel(t.optionGroup)),1)]})],16,nM)):Yn((z(),B(`li`,K({key:1,id:e.$id+`_`+a.getOptionIndex(n,s),style:{height:l?l+`px`:void 0},class:e.cx(`option`,{option:t,i:n,getItemOptions:s}),role:`option`,"aria-label":a.getOptionLabel(t),"aria-selected":a.isSelected(t),"aria-disabled":a.isOptionDisabled(t),"aria-setsize":a.ariaSetSize,"aria-posinset":a.getAriaPosInset(a.getOptionIndex(n,s)),onClick:function(e){return a.onOptionSelect(e,t)},onMousemove:function(e){return a.onOptionMouseMove(e,a.getOptionIndex(n,s))},"data-p-selected":a.isSelected(t),"data-p-focused":i.focusedOptionIndex===a.getOptionIndex(n,s),"data-p-disabled":a.isOptionDisabled(t)},{ref_for:!0},a.getPTOptions(t,s,n,`option`)),[L(e.$slots,`option`,{option:t,index:a.getOptionIndex(n,s)},function(){return[W(A(a.getOptionLabel(t)),1)]})],16,rM)),[[f]])],64)}),128)),e.showEmptyMessage&&(!o||o&&o.length===0)?(z(),B(`li`,K({key:0,class:e.cx(`emptyMessage`),role:`option`},e.ptm(`emptyMessage`)),[L(e.$slots,`empty`,{},function(){return[W(A(a.searchResultMessageText),1)]})],16)):G(``,!0)],16,tM)]}),_:2},[e.$slots.loader?{name:`loader`,fn:N(function(t){var n=t.options;return[L(e.$slots,`loader`,{options:n})]}),key:`0`}:void 0]),1040,[`style`,`items`,`disabled`,`pt`])],16),L(e.$slots,`footer`,{value:e.d_value,suggestions:a.visibleOptions}),H(`span`,K({role:`status`,"aria-live":`polite`,class:`p-hidden-accessible`},e.ptm(`hiddenSelectedMessage`),{"data-p-hidden-accessible":!0}),A(a.selectedMessageText),17)],16,eM)):G(``,!0)]}),_:3},16,[`onEnter`,`onAfterEnter`,`onLeave`,`onAfterLeave`])]}),_:3},8,[`appendTo`])],16,Jj)}Vj.render=iM;var aM=P({__name:`ModelPicker`,props:xi({options:{},multiple:{type:Boolean},loading:{type:Boolean},placeholder:{},inputId:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=Vi(e,`modelValue`),r=q({get:()=>Array.isArray(n.value)?n.value:n.value?[n.value]:[],set:e=>{n.value=t.multiple?e:e.at(-1)??``}}),i=j([]);function a(e){let n=e.query.trim().toLowerCase(),a=r.value;i.value=t.options.filter(e=>e.toLowerCase().includes(n)&&!a.includes(e))}return(t,n)=>(z(),V(M(Vj),{modelValue:r.value,"onUpdate:modelValue":n[0]||=e=>r.value=e,class:`model-picker`,"overlay-class":`model-picker-overlay`,"input-id":e.inputId,suggestions:i.value,multiple:``,loading:e.loading,placeholder:e.placeholder,"virtual-scroller-options":{itemSize:40},delay:100,"min-length":0,"force-selection":``,"auto-option-focus":``,dropdown:``,"complete-on-focus":e.options.length>0,onComplete:a,onKeydown:n[1]||=Ls(Fs(()=>{},[`prevent`]),[`enter`])},{empty:N(()=>[...n[2]||=[W(`No matching models.`,-1)]]),_:1},8,[`modelValue`,`input-id`,`suggestions`,`loading`,`placeholder`,`complete-on-focus`]))}}),oM={class:`need-setup-copy`},sM={key:0,class:`need-setup-type need-setup-wide`,role:`radiogroup`,"aria-label":`Provider`},cM=[`aria-checked`,`title`,`onClick`],lM={key:1,class:`need-setup-wide`},uM={key:2,class:`need-setup-wide model-discovery`},dM={class:`field-error`,role:`alert`},fM={class:`model-field`},pM={class:`model-field`},mM={key:0,class:`field-error`},hM={key:1},gM={key:3,class:`need-notice need-setup-wide`},_M={class:`need-setup-footer`},vM={class:`need-actions`},yM=Yw(P({__name:`ModelProviderForm`,props:{connection:{}},emits:[`done`,`cancel`],setup(e,{emit:t}){let n=e,r=t,i=[{id:`anthropic`,help:`Claude models through the Anthropic API.`},{id:`openai`,help:`Models through the OpenAI API.`},{id:`openrouter`,help:`Models from many providers through OpenRouter. No base URL needed.`},{id:`openai_compatible`,help:`Ollama, vLLM or a company gateway that speaks the OpenAI API.`}],a=zw(),o=q(()=>!!n.connection),s=q(()=>GS(n.connection)),c=j(n.connection?.provider??`anthropic`),l=j(n.connection?.display_name??``),u=j(``),d=j(``),f=j([...n.connection?.allowed_models??[]]),p=j(n.connection?.default_model??``),m=j(!1),h=j(null),g=q(()=>c.value===`openai_compatible`),_=q(()=>!o.value&&!g.value||s.value),v=q(()=>f.value),y=j(n.connection?.available_models??[]),b=q(()=>[...new Set([...y.value,...f.value,...p.value?[p.value]:[]])].sort()),x=j(!1),S=j(null),C=q(()=>(!_.value||!!u.value.trim())&&(!g.value||o.value||!!d.value.trim())),w=0;rr([c,u,d,C],(e,t,n)=>{if(w++,t&&(y.value=[]),S.value=null,x.value=!1,!C.value||m.value)return;let r=setTimeout(()=>{T()},400);n(()=>clearTimeout(r))},{immediate:!0}),ei(()=>{w++}),rr([c,u,d],()=>{h.value=null}),rr(c,()=>{f.value=[],p.value=``});async function T(){let e=++w;x.value=!0,S.value=null;try{let t=await nw({provider:c.value,api_key:u.value.trim()||void 0,base_url:d.value.trim()||void 0},n.connection?.id);e===w&&(y.value=t)}catch(t){e===w&&(S.value=X(t,`Unable to load models`))}finally{e===w&&(x.value=!1)}}let ee=q(()=>!!((p.value??``).trim()&&v.value.length&&!v.value.includes((p.value??``).trim()))),te=q(()=>(!_.value||u.value.trim()!==``)&&(!g.value||o.value||d.value.trim()!==``)&&!ee.value&&f.value.length<=100);async function E(){if(!te.value)return;m.value=!0,h.value=null;let e=null;try{let t={display_name:l.value.trim(),allowed_models:v.value,default_model:(p.value??``).trim()},r=n.connection?await VC(n.connection.id,{...t,api_key:u.value.trim()||void 0,base_url:g.value&&d.value.trim()?d.value.trim():void 0}):await BC({...t,provider:c.value,api_key:u.value.trim(),base_url:d.value.trim()});u.value=``;let i=await KC(r.id),a=o.value?s.value?`Reconnected`:`Saved`:`Connected`;e={ok:i.ok,text:i.ok?i.message.replace(/^Connected/,a):`${a}, but the check failed: ${i.message}`}}catch(e){h.value=X(e,`Unable to save the model provider`)}finally{await a.refresh(),m.value=!1}e&&r(`done`,e,``)}return(t,n)=>(z(),B(`form`,{class:`need-setup-fields`,onSubmit:Fs(E,[`prevent`])},[H(`div`,oM,[H(`h3`,null,A(o.value?s.value?`Reconnect model provider`:`Edit model provider`:`Connect a model provider`),1),H(`p`,null,[n[7]||=W(`The key stays on the server. Runs can use only the models you allow. The provider sees the code a run reads. `,-1),U(ZT,{page:M(Fx).SecurityModel,section:`remaining-risks`},{default:N(()=>[...n[6]||=[W(`Security model`,-1)]]),_:1},8,[`page`])])]),o.value?G(``,!0):(z(),B(`div`,sM,[(z(),B(R,null,I(i,e=>H(`button`,{key:e.id,type:`button`,role:`radio`,"aria-checked":c.value===e.id,class:k({active:c.value===e.id}),title:e.help,onClick:t=>c.value=e.id},A(M(xS)(e.id)),11,cM)),64))])),H(`label`,null,[n[8]||=H(`span`,null,`Name`,-1),U(M(ib),{modelValue:l.value,"onUpdate:modelValue":n[0]||=e=>l.value=e,name:`provider-name`,autocomplete:`off`,maxlength:`200`,placeholder:M(xS)(c.value)},null,8,[`modelValue`,`placeholder`])]),H(`label`,null,[n[9]||=H(`span`,null,`API key`,-1),U(M(ib),{modelValue:u.value,"onUpdate:modelValue":n[1]||=e=>u.value=e,type:`password`,name:`provider-api-key`,required:_.value,autocomplete:`new-password`,"data-1p-ignore":``,"data-lpignore":`true`,"data-bwignore":``,spellcheck:`false`,placeholder:o.value&&!s.value?`Leave blank to keep the current key`:g.value?`Optional for local servers`:`Paste the API key`},null,8,[`modelValue`,`required`,`placeholder`])]),g.value?(z(),B(`label`,lM,[n[10]||=H(`span`,null,`Base URL`,-1),U(M(ib),{modelValue:d.value,"onUpdate:modelValue":n[2]||=e=>d.value=e,type:`url`,required:!o.value,autocomplete:`off`,spellcheck:`false`,placeholder:o.value?`Leave blank to keep ${e.connection?.target}`:`http://localhost:11434/v1`},null,8,[`modelValue`,`required`,`placeholder`]),n[11]||=H(`small`,null,[W(`Include `),H(`code`,null,`/v1`),W(`. Production requires a public HTTPS address.`)],-1)])):G(``,!0),S.value?(z(),B(`div`,uM,[H(`p`,dM,A(S.value),1),U(M(Y),{type:`button`,label:`Retry loading models`,severity:`secondary`,size:`small`,disabled:!C.value,onClick:T},{icon:N(()=>[U(J,{name:`refresh`})]),_:1},8,[`disabled`])])):G(``,!0),H(`div`,fM,[n[12]||=H(`label`,{for:`allowed-models`},`Allowed models`,-1),U(aM,{modelValue:f.value,"onUpdate:modelValue":n[3]||=e=>f.value=e,"input-id":`allowed-models`,options:b.value,multiple:``,placeholder:`Search and select models`,loading:x.value},null,8,[`modelValue`,`options`,`loading`]),!f.value.length||f.value.length>100?(z(),B(`small`,{key:0,class:k({"field-error":f.value.length>100})},A(f.value.length>100?`Choose up to 100 models.`:`Choose multiple models, or leave empty to allow any model.`),3)):G(``,!0)]),H(`div`,pM,[n[13]||=H(`label`,{for:`default-model`},`Default model`,-1),U(aM,{modelValue:p.value,"onUpdate:modelValue":n[4]||=e=>p.value=e,"input-id":`default-model`,options:v.value.length?v.value:b.value,placeholder:`Search and select a model`,loading:x.value},null,8,[`modelValue`,`options`,`loading`]),ee.value?(z(),B(`small`,mM,`Must be one of the allowed models.`)):p.value?G(``,!0):(z(),B(`small`,hM,`Used when a job doesn’t choose a model.`))]),h.value&&h.value!==S.value?(z(),B(`p`,gM,A(h.value),1)):G(``,!0),H(`div`,_M,[H(`small`,null,[U(J,{name:`lock-outline`}),n[15]||=W(` The key is encrypted at rest and never shown again. `,-1),U(ZT,{page:M(Fx).SecurityModel,section:`where-secrets-live`},{default:N(()=>[...n[14]||=[W(`Where secrets live`,-1)]]),_:1},8,[`page`])]),H(`div`,vM,[U(M(Y),{label:`Cancel`,severity:`secondary`,text:``,size:`small`,onClick:n[5]||=e=>r(`cancel`)}),U(M(Y),{class:`main-action`,type:`submit`,label:o.value?`Save and check`:`Connect and check`,loading:m.value,disabled:!te.value},{icon:N(()=>[U(J,{name:`check`})]),_:1},8,[`label`,`loading`,`disabled`])])])],32))}}),[[`__scopeId`,`data-v-3ffc7432`]]),bM=()=>zx(`/agent-connections`),xM=()=>zx(`/settings/agent`),SM=(e,t)=>Z(t?`/agent-connections/${t}`:`/agent-connections`,e),CM=(e,t)=>Z(`/agent-connections/${e}/run-limit`,{max_runs_per_day:t}),wM=e=>Z(`/agent-connections/${e}/check`,{}),TM=e=>Kx(`/agent-connections/${e}`),EM=e=>Z(`/settings/agent`,{key:e}),DM=Sc(`agents`,{state:()=>({enabled:!1,connections:[],configuration:null}),actions:{async refresh(){let[e,t]=await Promise.all([xM(),bM()]);this.enabled=e.enabled,this.configuration=e,this.connections=t},async select(e){this.configuration=await EM(e)},async connect(e,t){let n=await SM(e,t);return await Promise.all([this.refresh(),zw().refresh()]),n},async check(e){let t=await wM(e);return await Promise.all([this.refresh(),zw().refresh()]),t},async setRunLimit(e,t){let n=await CM(e,t);this.connections=this.connections.map(t=>t.id===e?n:t),await zw().refresh()},async disconnect(e){try{await TM(e)}finally{await Promise.all([this.refresh(),zw().refresh()])}}}}),OM=1e3;function kM(e,t){return t===null?`${Q(e,`run`)} in the last 24 hours`:`${e} of ${Q(t,`run`)} in the last 24 hours`}function AM(e){let t=e.trim();if(!t)return{value:null,problem:null};let n=Number(t);return!Number.isInteger(n)||n<1||n>OM?{value:null,problem:`Enter a whole number from 1 to ${OM}, or leave it empty for no limit.`}:{value:n,problem:null}}var jM=`Disconnected. Reconnect it to use it.`,MM={claude_code:`Claude Code`,codex:`Codex`};function NM(e){let t=[xS(e.provider)];return t.push(e.default_model||`no model selected`),e.target&&t.push(e.target),t.join(` · `)}function PM(e,t){return e&&t?.ok===!1?t.message:``}function FM(e,t,n){let r=new Map((n?.choices??[]).map(e=>[e.key,e])),i=n?.selected??``,a=[];for(let t of e){if(t.kind!==`model`)continue;let e=`model:${t.id}`,n=r.get(e),o=PM(t.status===`connected`,t.last_check)||n?.problem||(t.status===`connected`?``:jM);a.push({key:e,name:t.display_name,provider:t.provider,summary:NM(t),chosen:e===i,choosable:!(!n||n.disabled),problem:o,lastCheck:t.last_check,connection:t})}for(let e of t){let t=`agent:${e.id}`,n=r.get(t),o=PM(e.connected,e.last_check)||n?.problem||(e.connected?``:jM)||(e.can_manage?``:`Only the person who saved this login can choose it.`);a.push({key:t,name:e.display_name,provider:e.backend===`codex`?`openai`:`anthropic`,summary:`${MM[e.backend]} subscription · ${kM(e.recent_runs,e.max_runs_per_day)}`,chosen:t===i,choosable:!(!n||n.disabled),problem:o,lastCheck:e.last_check,login:e})}return[...a.filter(e=>e.chosen),...a.filter(e=>!e.chosen)]}var IM={class:`need-setup-copy`},LM={key:0},RM={key:1},zM={key:0,class:`need-setup-type need-setup-wide`,role:`radiogroup`,"aria-label":`Subscription`},BM=[`aria-checked`,`disabled`,`onClick`],VM={key:1,role:`alert`,class:`need-notice need-setup-wide`},HM={class:`need-setup-footer`},UM={class:`need-actions`},WM=P({__name:`SubscriptionForm`,props:{login:{}},emits:[`done`,`cancel`],setup(e,{emit:t}){let n=e,r=t,i=DM(),a=j(n.login?.backend??`claude_code`),o=j(n.login?.display_name??``),s=j(``),c=j(!1),l=j(``);async function u(){c.value=!0,l.value=``;let e=s.value;s.value=``;try{let t=await i.connect({backend:a.value,display_name:o.value,auth:e},n.login?.id),s=n.login?`Reconnected`:`Connected`,c;try{let e=(await i.check(t.id)).last_check;c=e?.ok?{ok:!0,text:`${s}. ${e.message}`}:{ok:!1,text:`${s}, but the check failed: ${e?.message??`no answer.`}`}}catch(e){c={ok:!0,text:`${s}. ${X(e,`The check could not run.`)}`}}r(`done`,c)}catch(e){l.value=X(e,`Unable to save the login.`)}finally{c.value=!1}}return(t,n)=>(z(),B(`form`,{class:`need-setup-fields`,onSubmit:Fs(u,[`prevent`])},[H(`div`,IM,[H(`h3`,null,A(e.login?`Reconnect`:`Connect`)+` `+A(M(MM)[a.value]),1),a.value===`claude_code`?(z(),B(`p`,LM,[...n[3]||=[W(`Run `,-1),H(`code`,null,`claude setup-token`,-1),W(` and paste the subscription token below.`,-1)]])):(z(),B(`p`,RM,[...n[4]||=[W(`Run `,-1),H(`code`,null,`codex login`,-1),W(` with file storage, then paste the contents of `,-1),H(`code`,null,`~/.codex/auth.json`,-1),W(`.`,-1)]]))]),e.login?G(``,!0):(z(),B(`div`,zM,[(z(!0),B(R,null,I(M(MM),(e,t)=>(z(),B(`button`,{key:t,type:`button`,role:`radio`,"aria-checked":a.value===t,class:k({active:a.value===t}),disabled:c.value,onClick:e=>{a.value=t,s.value=``}},A(e),11,BM))),128))])),H(`label`,null,[n[5]||=H(`span`,null,`Name`,-1),U(M(ib),{modelValue:o.value,"onUpdate:modelValue":n[0]||=e=>o.value=e,name:`agent-name`,autocomplete:`off`,maxlength:`200`,disabled:c.value,placeholder:a.value===`codex`?`My Codex subscription`:`My Claude subscription`},null,8,[`modelValue`,`disabled`,`placeholder`])]),H(`label`,null,[H(`span`,null,A(a.value===`codex`?`Login credentials`:`Subscription token`),1),U(M(ib),{modelValue:s.value,"onUpdate:modelValue":n[1]||=e=>s.value=e,type:`password`,name:`agent-credential`,autocomplete:`new-password`,required:``,maxlength:32e3,disabled:c.value,"data-1p-ignore":``,"data-lpignore":`true`,"data-bwignore":``,spellcheck:`false`,placeholder:a.value===`codex`?`Paste auth.json contents`:`Paste your subscription token`},null,8,[`modelValue`,`disabled`,`placeholder`])]),l.value?(z(),B(`p`,VM,[U(J,{name:`alert-circle-outline`}),W(` `+A(l.value),1)])):G(``,!0),H(`div`,HM,[H(`small`,null,[U(J,{name:`lock-outline`}),n[6]||=W(` Credentials are encrypted and never shown again. Saving sends one short test message, which uses a little of your plan.`,-1)]),H(`div`,UM,[U(M(Y),{label:`Cancel`,severity:`secondary`,text:``,size:`small`,disabled:c.value,onClick:n[2]||=e=>r(`cancel`)},null,8,[`disabled`]),U(M(Y),{class:`main-action`,type:`submit`,label:e.login?`Reconnect and check`:`Connect and check`,loading:c.value,disabled:!s.value.trim()},{icon:N(()=>[U(J,{name:`check`})]),_:1},8,[`label`,`loading`,`disabled`])])])],32))}}),GM={class:`page`},KM={key:0,class:`page-error`},qM={key:2,class:`panel add-connection-panel`},JM={class:`need-setup`},YM={key:3,class:`panel add-connection-panel`},XM={class:`need-setup`},ZM={key:4,class:`panel model-start`},QM={class:`model-start-options`},$M=[`disabled`],eN=[`disabled`],tN={key:0,class:`model-start-note`},nN={key:5,class:`panel services-panel`},rN={class:`panel-heading`},iN={class:`heading-count`},aN={class:`need-list`},oN=[`id`],sN={class:`need-row`},cN={class:`row-glyph`},lN={class:`need-primary`},uN={class:`connection-name`},dN={key:0,class:`default-badge`},fN={key:0,class:`need-detail`},pN=[`title`],mN={key:2},hN={class:`need-actions`},gN=[`aria-label`,`onClick`],_N=[`onSubmit`],vN={key:0,role:`alert`},yN={key:1},bN={key:2,class:`confirm-strip`,role:`alert`},xN={key:3,class:`need-setup inset`},SN={key:0,class:`model-note`},CN=Yw(P({__name:`ModelsView`,setup(e){let t=zw(),n=DM(),r=Qg(),i=q(()=>t.can($.AddConnections)&&t.can($.EditConnections)),a=q(()=>t.can($.ReviewCapabilities)),o=j(!1),s=j(``),c=j(null),l=j(null),u=Wt({}),d=j(null),f=j(null),p=j(null),m=j(``),h=j(``),g=q(()=>n.configuration),_=q(()=>FM(t.connections,n.connections,g.value)),v=q(()=>_.value.find(e=>e.chosen)??null),y=q(()=>o.value?v.value&&g.value?.problem?`Jobs are set to run on ${v.value.name}, but runs will fail until it is fixed.`:v.value?`Every job runs on ${v.value.name}. Changes apply to new runs.`:_.value.length?`Nothing runs jobs yet. Choose one below.`:`Add an API key or a subscription so jobs can run.`:`Loading…`);function b(e){let t=c.value;return!t||t.mode!==e.mode?!1:t.mode!==`edit`||e.mode===`edit`&&t.key===e.key}function x(e){c.value=b(e)?null:e,f.value=null,p.value=null}async function S(){await Promise.all([t.refresh(),n.refresh()])}async function C(e,t,n){l.value=e,delete u[e];try{u[e]={ok:!0,text:await t()}}catch(t){u[e]={ok:!1,text:X(t,n)}}finally{l.value=null}}async function w(e,t){let n=g.value?.selected??``;c.value=null,await S();let r=g.value?.selected??``,i=r&&r!==n?` It now runs your jobs.`:``,a=t??(r===n?null:r);a?u[a]={...e,text:e.text+i}:d.value={...e,text:e.text+i}}function T(e){return C(e.key,async()=>(await n.select(e.key),await t.refresh(),`Now runs every job. Queued and past runs keep what they started with.`),`Unable to choose it`)}function ee(e){let t=e.connection;return C(e.key,async()=>{let e=await KC(t.id);if(await S(),!e.ok)throw Error(e.message);return e.message},`Unable to check the provider`)}function te(e){let t=e.login;return C(e.key,async()=>{let e=(await n.check(t.id)).last_check;if(!e?.ok)throw Error(e?.message??`The check did not finish.`);return e.message},`Unable to check the login`)}async function E(e){let t=f.value;f.value=null,t&&await C(e.key,async()=>{if(e.login){let t=e.login.id;return await n.disconnect(t),n.connections.find(e=>e.id===t)?.runner_cleanup_pending?`Disconnected. The runner did not answer, so its cached copy is removed once it does.`:`Disconnected.`}return t.action===`delete`?await GC(e.connection.id):await WC(e.connection.id),await S(),t.action===`delete`?`Deleted.`:`Disconnected. Its key was discarded.`},`Unable to disconnect`)}function ne(e){c.value=null,f.value=null,p.value=e.key,m.value=e.login?.max_runs_per_day==null?``:String(e.login.max_runs_per_day),h.value=``}async function D(e){let t=AM(m.value);if(h.value=t.problem??``,!t.problem){l.value=e.key;try{await n.setRunLimit(e.login.id,t.value),p.value=null}catch(e){h.value=X(e,`Unable to save the limit.`)}finally{l.value=null}}}function re(e){if(e.connection&&i.value){if(e.connection.status!==`connected`)return`Reconnect`;if(e.connection.last_check?.ok===!1)return`Fix`}return e.login&&(!e.login.connected||e.login.last_check?.reason===`reconnect_required`)&&e.login.can_manage&&n.enabled?`Reconnect`:null}let ie=j(null),O=j([]);function ae(e){let r=[],a=[],o=t=>()=>{c.value=null,p.value=null,f.value={key:e.key,action:t}};if(e.connection){let n=e.connection;n.status===`connected`&&t.can($.TestConnections)&&r.push({label:`Check`,appIcon:`send-outline`,command:()=>ee(e)}),i.value&&r.push({label:n.status===`connected`?`Edit`:`Reconnect`,appIcon:`pencil-outline`,command:()=>x({mode:`edit`,key:e.key})}),n.status!==`revoked`&&t.can($.DisconnectConnections)&&a.push({label:`Disconnect…`,appIcon:`power-plug-off-outline`,danger:!0,command:o(`disconnect`)}),n.status===`revoked`&&t.can($.DeleteConnections)&&a.push({label:`Delete…`,appIcon:`trash-can-outline`,danger:!0,command:o(`delete`)})}else e.login?.can_manage&&(e.login.connected&&t.can($.TestConnections)&&r.push({label:`Check`,appIcon:`send-outline`,command:()=>te(e)}),e.login.connected&&r.push({label:`Run limit`,appIcon:`timer-sand`,command:()=>ne(e)}),n.enabled&&r.push({label:`Reconnect`,appIcon:`pencil-outline`,command:()=>x({mode:`edit`,key:e.key})}),a.push({label:e.login.connected?`Disconnect…`:`Remove…`,appIcon:`power-plug-off-outline`,danger:!0,command:o(`disconnect`)}));return r.length&&a.length?[...r,{separator:!0},...a]:[...r,...a]}function oe(e,t){O.value=ae(t),ie.value?.toggle(e)}function se(e){if(f.value?.action===`delete`)return`Deleting removes this provider for good.`;let t=e.chosen?` Jobs stop running until you reconnect it or choose another.`:``;return e.login?`Disconnect this login? Its saved credentials are discarded.${t}`:`Disconnecting discards the stored key.${t}`}return Zr(async()=>{try{await n.refresh()}catch(e){s.value=X(e,`Unable to load what runs jobs.`)}o.value=!0;let e=typeof r.query.connection==`string`?`model:${r.query.connection}`:``;e&&_.value.some(t=>t.key===e)&&(i.value&&(c.value={mode:`edit`,key:e}),await Fn(),document.getElementById(e)?.scrollIntoView({block:`start`}))}),(e,t)=>(z(),B(`div`,GM,[U(qT,{compact:``,title:`Models`,description:y.value},{default:N(()=>[i.value?(z(),B(R,{key:0},[U(M(Y),{label:`Add subscription`,severity:`secondary`,disabled:!M(n).enabled,title:M(n).enabled?void 0:`Subscriptions are not set up on this server.`,onClick:t[0]||=e=>x({mode:`add-login`})},{icon:N(()=>[U(J,{name:`account-key-outline`})]),_:1},8,[`disabled`,`title`]),U(M(Y),{class:`main-action`,label:`Add API key`,onClick:t[1]||=e=>x({mode:`add-key`})},{icon:N(()=>[U(J,{name:`plus`})]),_:1})],64)):G(``,!0)]),_:1},8,[`description`]),s.value?(z(),B(`p`,KM,A(s.value),1)):G(``,!0),d.value?(z(),B(`p`,{key:1,class:k([`page-notice`,{error:!d.value.ok}]),role:`status`},[U(J,{name:d.value.ok?`check-circle-outline`:`alert-circle-outline`},null,8,[`name`]),W(` `+A(d.value.text),1)],2)):G(``,!0),b({mode:`add-key`})?(z(),B(`section`,qM,[H(`div`,JM,[U(yM,{onDone:t[2]||=e=>w(e,null),onCancel:t[3]||=e=>c.value=null})])])):G(``,!0),b({mode:`add-login`})?(z(),B(`section`,YM,[H(`div`,XM,[U(WM,{onDone:t[4]||=e=>w(e,null),onCancel:t[5]||=e=>c.value=null})])])):G(``,!0),o.value&&!_.value.length&&!c.value?(z(),B(`section`,ZM,[t[17]||=H(`div`,{class:`panel-heading`},[H(`div`,null,[H(`h2`,null,`Choose how jobs reach a model`),H(`p`,null,`Every job in this workspace runs on one of these. You can switch later.`)])],-1),H(`div`,QM,[H(`button`,{type:`button`,disabled:!i.value,onClick:t[6]||=e=>x({mode:`add-key`})},[U(J,{name:`key-variant`}),t[14]||=H(`strong`,null,`API key`,-1),t[15]||=H(`span`,null,`Anthropic, OpenAI, OpenRouter, or an OpenAI-compatible server like Ollama. Billed per use by the provider.`,-1)],8,$M),H(`button`,{type:`button`,disabled:!i.value||!M(n).enabled,onClick:t[7]||=e=>x({mode:`add-login`})},[U(J,{name:`account-key-outline`}),t[16]||=H(`strong`,null,`Claude Code or Codex subscription`,-1),H(`span`,null,A(M(n).enabled?`Uses your plan’s allowance instead of a paid API.`:`Not set up on this server.`),1)],8,eN)]),i.value?G(``,!0):(z(),B(`p`,tN,`Workspace owners add these.`))])):G(``,!0),_.value.length?(z(),B(`section`,nN,[H(`div`,rN,[H(`div`,null,[H(`h2`,null,[t[18]||=W(`Models `,-1),H(`span`,iN,A(_.value.length),1)]),t[19]||=H(`p`,null,`API keys are billed per use. Subscriptions use the login’s plan allowance.`,-1)])]),H(`div`,aN,[(z(!0),B(R,null,I(_.value,e=>(z(),B(`article`,{id:e.key,key:e.key,class:k([`need`,{unavailable:e.problem&&(e.chosen||e.connection?.status!==`connected`),chosen:e.chosen}])},[H(`div`,sN,[H(`div`,cN,[U($D,{provider:e.provider,fallback:`creation-outline`},null,8,[`provider`])]),H(`div`,lN,[H(`strong`,uN,[W(A(e.name),1),e.chosen?(z(),B(`span`,dN,`Runs jobs`)):G(``,!0)]),H(`span`,null,A(e.summary),1),u[e.key]?G(``,!0):(z(),B(R,{key:0},[e.problem?(z(),B(`small`,fN,A(e.problem),1)):e.lastCheck?(z(),B(`small`,{key:1,title:e.lastCheck.message},A(e.lastCheck.message)+` · checked `+A(M(tS)(e.lastCheck.checked_at)),9,pN)):G(``,!0),e.login?.runner_cleanup_pending?(z(),B(`small`,mN,`The runner still holds a cached copy of an earlier login. SecondShift removes it once the runner answers.`)):G(``,!0)],64))]),e.connection?.status===`connected`&&e.connection.last_check?.ok===!1?(z(),V(rk,{key:0,status:`error`,label:`Check failed`,title:e.connection.last_check.message},null,8,[`title`])):e.connection?(z(),V(rk,{key:1,status:e.connection.status},null,8,[`status`])):e.login?.connected?e.lastCheck?.ok===!1?(z(),V(rk,{key:3,status:`error`,label:`Check failed`,title:e.lastCheck.message},null,8,[`title`])):e.lastCheck?(z(),V(rk,{key:4,status:`connected`,label:`Signed in`})):(z(),V(rk,{key:5,status:`pending`,label:`Not checked`,title:`Use Check to try the login`})):(z(),V(rk,{key:2,status:`revoked`,label:`Disconnected`})),H(`div`,hN,[re(e)?(z(),V(M(Y),{key:0,label:b({mode:`edit`,key:e.key})?`Cancel`:re(e),size:`small`,onClick:t=>x({mode:`edit`,key:e.key})},null,8,[`label`,`onClick`])):!e.chosen&&e.choosable&&a.value?(z(),V(M(Y),{key:1,label:`Use for jobs`,severity:`secondary`,size:`small`,loading:l.value===e.key,onClick:t=>T(e)},null,8,[`loading`,`onClick`])):G(``,!0),ae(e).length?(z(),B(`button`,{key:2,type:`button`,class:`icon-action`,"aria-label":`More actions for ${e.name}`,"aria-haspopup":`menu`,onClick:t=>oe(t,e)},[U(J,{name:`dots-horizontal`})],8,gN)):G(``,!0)])]),u[e.key]?(z(),B(`p`,{key:0,class:k([`need-notice`,{ok:u[e.key].ok}])},[U(J,{name:u[e.key].ok?`check-circle-outline`:`alert-circle-outline`},null,8,[`name`]),W(` `+A(u[e.key].text),1)],2)):G(``,!0),p.value===e.key?(z(),B(`form`,{key:1,class:`confirm-strip run-limit`,onSubmit:Fs(t=>D(e),[`prevent`])},[H(`label`,null,[t[20]||=H(`span`,null,`At most`,-1),U(M(ib),{modelValue:m.value,"onUpdate:modelValue":t[8]||=e=>m.value=e,name:`agent-run-limit`,inputmode:`numeric`,autocomplete:`off`,size:`5`,placeholder:`No limit`,disabled:l.value===e.key,"aria-invalid":!!h.value,onInput:t[9]||=e=>h.value=``},null,8,[`modelValue`,`disabled`,`aria-invalid`]),t[21]||=H(`span`,null,`runs in 24 hours`,-1)]),U(M(Y),{label:`Cancel`,severity:`secondary`,text:``,size:`small`,onClick:t[10]||=e=>p.value=null}),U(M(Y),{type:`submit`,label:`Save`,size:`small`,loading:l.value===e.key},null,8,[`loading`]),h.value?(z(),B(`small`,vN,A(h.value),1)):(z(),B(`small`,yN,`Runs past the limit are refused. Leave it empty for no limit.`))],40,_N)):G(``,!0),f.value?.key===e.key?(z(),B(`div`,bN,[H(`span`,null,A(se(e)),1),U(M(Y),{label:`Cancel`,severity:`secondary`,text:``,size:`small`,onClick:t[11]||=e=>f.value=null}),U(M(Y),{label:f.value.action===`delete`?`Delete`:`Disconnect`,severity:`danger`,size:`small`,loading:l.value===e.key,onClick:t=>E(e)},null,8,[`label`,`loading`,`onClick`])])):G(``,!0),b({mode:`edit`,key:e.key})?(z(),B(`div`,xN,[e.connection?(z(),V(yM,{key:0,connection:e.connection,onDone:t=>w(t,e.key),onCancel:t[12]||=e=>c.value=null},null,8,[`connection`,`onDone`])):(z(),V(WM,{key:1,login:e.login,onDone:t=>w(t,e.key),onCancel:t[13]||=e=>c.value=null},null,8,[`login`,`onDone`]))])):G(``,!0)],10,oN))),128))]),M(n).connections.length?(z(),B(`details`,SN,[...t[22]||=[H(`summary`,null,`How subscriptions apply run limits`,-1),H(`p`,null,`Token limits are checked when the agent reports usage. Codex uses time and tool limits rather than the maximum model-call setting.`,-1)]])):G(``,!0)])):G(``,!0),U(M(mv),{ref_key:`rowMenu`,ref:ie,model:O.value,popup:``,class:`row-menu`},{item:N(({item:e,props:t})=>[H(`a`,K(t.action,{class:[`row-menu-item`,{danger:e.danger}]}),[U(J,{name:e.appIcon},null,8,[`name`]),W(` `+A(e.label),1)],16)]),_:1},8,[`model`])]))}}),[[`__scopeId`,`data-v-180ea467`]]),wN={class:`panel run-outcomes`,"aria-label":`Recent outcomes`},TN={class:`panel-heading`},EN={class:`outcome-strip`},DN={class:`outcome-tiles`},ON={class:`outcome-tile`},kN={class:`outcome-tile`},AN=[`viewBox`,`width`],jN=[`x`],MN=[`d`],NN={class:`outcome-tile`},PN=[`viewBox`,`width`],FN=[`x`],IN=[`d`],LN={class:`outcome-tile`},RN=6,zN=2,BN=28,VN=2,HN=P({__name:`RunOutcomes`,props:{runs:{}},setup(e){let t=e,n=q(()=>NS(t.runs)),r={succeeded:`check`,failed:`close`,canceled:`minus`,running:`loading`,queued:`dots-horizontal`};function i(e){let t=[`#${e.id}`,gS(e.status),$x(e.scheduled_for)],n=MS(e);return n!==null&&t.push(PS(n)),e.model_cost_usd!==null&&t.push(kS(e.model_cost_usd,e.model_cost_partial)),e.failure&&t.push(`${e.failure.label}: ${e.failure.reason}`),t.join(` · `)}function a(e,t){let r=n.value.chronological,i=Math.max(...e.map(e=>e??0),0),a=[];return e.forEach((e,n)=>{if(e===null||i===0)return;let o=n*8,s=Math.max(2,e/i*BN),c=BN-s,l=Math.min(VN,s/2),u=`M${o},${BN}V${c+l}Q${o},${c} ${o+l},${c}H${o+RN-l}Q${o+RN},${c} ${o+RN},${c+l}V${BN}Z`;a.push({id:r[n].id,path:u,x:o,title:`#${r[n].id} · ${t(e)}`})}),{width:Math.max(e.length*8-zN,RN),items:a}}let o=e=>e.status===`succeeded`,s=q(()=>a(n.value.chronological.map(e=>o(e)?MS(e):null),PS)),c=q(()=>a(n.value.chronological.map(e=>o(e)?e.model_cost_usd:null),e=>kS(e))),l=q(()=>n.value.successRate===null?`—`:`${Math.round(n.value.successRate*100)}%`);return(t,a)=>{let o=F(`RouterLink`);return z(),B(`section`,wN,[H(`div`,TN,[H(`div`,null,[a[0]||=H(`h2`,null,`Outcomes`,-1),H(`p`,null,A(e.runs.length===1?`The last run`:`The last ${e.runs.length} runs, oldest first`)+`. Open a run for details.`,1)])]),H(`ol`,EN,[(z(!0),B(R,null,I(n.value.chronological,e=>(z(),B(`li`,{key:e.id},[U(o,{to:`/runs/${e.id}`,class:k([`outcome-mark`,e.status]),title:i(e),"aria-label":i(e)},{default:N(()=>[U(J,{name:r[e.status],spin:e.status===`running`},null,8,[`name`,`spin`])]),_:2},1032,[`to`,`class`,`title`,`aria-label`])]))),128))]),H(`div`,DN,[H(`div`,ON,[a[1]||=H(`span`,null,`Success rate`,-1),H(`strong`,null,A(l.value),1),H(`small`,null,A(n.value.succeeded)+` of `+A(n.value.finished)+` finished runs`,1)]),H(`div`,kN,[a[2]||=H(`span`,null,[W(`Median duration `),H(`em`,null,`· successful runs`)],-1),H(`strong`,null,A(n.value.medianSeconds===null?`—`:M(PS)(n.value.medianSeconds)),1),s.value.items.length?(z(),B(`svg`,{key:0,class:`sparkline`,viewBox:`0 0 ${s.value.width} ${BN}`,width:s.value.width,height:BN,role:`img`,"aria-label":`Duration per run`},[(z(!0),B(R,null,I(s.value.items,e=>(z(),B(`g`,{key:e.id},[H(`title`,null,A(e.title),1),H(`rect`,{x:e.x,y:`0`,width:RN,height:BN,fill:`transparent`},null,8,jN),H(`path`,{d:e.path},null,8,MN)]))),128))],8,AN)):G(``,!0)]),H(`div`,NN,[a[3]||=H(`span`,null,[W(`Average cost `),H(`em`,null,`· successful runs`)],-1),H(`strong`,null,A(n.value.averageCostUsd===null?`—`:M(kS)(n.value.averageCostUsd)),1),c.value.items.length?(z(),B(`svg`,{key:0,class:`sparkline`,viewBox:`0 0 ${c.value.width} ${BN}`,width:c.value.width,height:BN,role:`img`,"aria-label":`Cost per run`},[(z(!0),B(R,null,I(c.value.items,e=>(z(),B(`g`,{key:e.id},[H(`title`,null,A(e.title),1),H(`rect`,{x:e.x,y:`0`,width:RN,height:BN,fill:`transparent`},null,8,FN),H(`path`,{d:e.path},null,8,IN)]))),128))],8,PN)):G(``,!0)]),H(`div`,LN,[a[4]||=H(`span`,null,`Spend`,-1),H(`strong`,null,A(M(kS)(n.value.totalCostUsd)),1),H(`small`,null,`across these `+A(e.runs.length)+` runs`,1)])])])}}});function UN(e){return zx(`/jobs/${e}/triggers`)}function WN(e,t,n){return Z(`/jobs/${e}/triggers/${t}/enabled`,{enabled:n})}function GN(e,t){return Z(`/jobs/${e}/triggers/${t}/rotate`,{})}function KN(e,t,n){return Z(`/jobs/${e}/triggers/${t}/limit`,{runs_per_hour:n})}var qN={schedule:`Schedule`,manual:`Run now`,webhook:`Webhook`,mcp:`MCP client`};function JN(e){return qN[e]}function YN(e){return e.declared?e.set_up?e.enabled?`On. A request with the secret starts a run when the job is ready.`:`Off. Requests are refused until you turn it back on.`:`Off. Turn it on to get a URL and a secret.`:`Removed from the configuration. Requests are refused.`}function XN(e){return`Bearer ${e}`}function ZN(e){let t=[],n=Object.entries(e.skip_when);return n.length&&t.push(`Ignores requests where ${n.map(([e,t])=>`${e} is ${t}`).join(` and `)}.`),e.repeat_key&&t.push(`Ignores a request with the same ${e.repeat_key} while its run is going, and for ${e.repeat_window} after.`),t}var QN={started:{status:`succeeded`,label:`Started`},ignored:{status:`optional`,label:`Ignored`},refused:{status:`failed`,label:`Refused`}};function $N(e){return QN[e.outcome]??QN.refused}function eP(e,t){let n=e.trim();return n?!/^\d+$/.test(n)||Number(n)<1?{value:null,problem:`Enter a whole number of at least 1.`}:Number(n)>t?{value:null,problem:`This server allows at most ${t}.`}:{value:Number(n),problem:``}:{value:null,problem:``}}var tP={key:0,id:`triggers`,class:`panel job-triggers-panel`},nP={class:`panel-heading`},rP={key:0,class:`job-trigger-actions`},iP={key:0,class:`invite-confirm`},aP={key:0,class:`job-trigger-url`},oP={key:1,class:`job-trigger-note`},sP=[`title`],cP={key:2,class:`invite-link`,role:`status`},lP={class:`job-trigger-rules`},uP={key:0},dP={key:1},fP=[`onSubmit`],pP=[`for`],mP={key:0,class:`job-trigger-cap-input`},hP=[`id`],gP={key:2,class:`field-error`},_P={key:3},vP={key:3,class:`job-trigger-events`},yP={class:`job-trigger-reason`},bP={key:2,class:`job-trigger-count`},xP=[`title`],SP={key:4,class:`job-trigger-note`},CP={key:0,class:`page-error`},wP=P({__name:`JobTriggersPanel`,props:{jobId:{},canManage:{type:Boolean}},setup(e,{expose:t}){let n=e,r=j([]),i=j(!1),a=j(null),o=j(null),s=j(null),c=j(null),l=j(!1),u=j({});async function d(){try{r.value=await UN(n.jobId),i.value=!0}catch(e){o.value=X(e)}}function f(e){r.value=r.value.map(t=>t.kind===e.kind?e:t),u.value[e.kind]=e.custom_runs_per_hour===null?``:String(e.custom_runs_per_hour)}function p(e){f(e.trigger),e.secret&&(s.value=e.secret)}function m(e){return u.value[e.kind]??(e.custom_runs_per_hour===null?``:String(e.custom_runs_per_hour))}function h(e){return eP(m(e),e.max_runs_per_hour)}function g(e){let t=h(e);return!t.problem&&t.value!==e.custom_runs_per_hour}function _(e){if(g(e)){let t=h(e).value;return t===null?`Will use the server default: ${e.default_runs_per_hour}.`:`Will be ${t} after saving.`}return e.custom_runs_per_hour===null?`Uses the server default: ${e.default_runs_per_hour}.`:`Set here. Without it: ${e.default_runs_per_hour}.`}async function v(e){if(g(e)){a.value=`cap`,o.value=null;try{f(await KN(n.jobId,e.kind,h(e).value))}catch(e){o.value=X(e)}finally{a.value=null}}}async function y(e){a.value=`toggle`,o.value=null;try{p(await WN(n.jobId,e.kind,!e.enabled))}catch(e){o.value=X(e)}finally{a.value=null}}async function b(e){a.value=`rotate`,o.value=null;try{p(await GN(n.jobId,e.kind))}catch(e){o.value=X(e)}finally{a.value=null,l.value=!1}}async function x(e,t){await navigator.clipboard.writeText(t),c.value=e}return Zr(d),t({load:d}),(t,n)=>{let d=F(`RouterLink`);return i.value&&r.value.length?(z(),B(`section`,tP,[(z(!0),B(R,null,I(r.value,t=>(z(),B(`div`,{key:t.kind,class:`job-trigger`},[H(`div`,nP,[H(`div`,null,[n[3]||=H(`h2`,null,`Webhook trigger`,-1),H(`p`,null,A(M(YN)(t)),1)]),e.canManage?(z(),B(`div`,rP,[t.set_up&&t.declared?(z(),B(R,{key:0},[l.value?(z(),B(`span`,iP,[U(M(Y),{label:`Keep`,severity:`secondary`,text:``,size:`small`,disabled:a.value===`rotate`,onClick:n[0]||=e=>l.value=!1},null,8,[`disabled`]),U(M(Y),{label:`Rotate secret`,severity:`danger`,size:`small`,loading:a.value===`rotate`,onClick:e=>b(t)},null,8,[`loading`,`onClick`])])):(z(),V(M(Y),{key:1,label:`Rotate secret`,severity:`secondary`,text:``,size:`small`,onClick:n[1]||=e=>l.value=!0}))],64)):G(``,!0),t.declared||t.enabled?(z(),V(M(Y),{key:1,label:t.enabled?`Turn off`:`Turn on`,severity:t.enabled?`secondary`:void 0,outlined:t.enabled,size:`small`,loading:a.value===`toggle`,onClick:e=>y(t)},null,8,[`label`,`severity`,`outlined`,`loading`,`onClick`])):G(``,!0)])):G(``,!0)]),t.url?(z(),B(`div`,aP,[n[4]||=H(`span`,null,`URL`,-1),H(`code`,null,A(t.url),1),U(M(Y),{label:c.value===`url`?`Copied`:`Copy`,severity:`secondary`,text:``,size:`small`,onClick:e=>x(`url`,t.url??``)},{icon:N(()=>[U(J,{name:c.value===`url`?`check`:`content-copy`},null,8,[`name`])]),_:1},8,[`label`,`onClick`])])):G(``,!0),t.secret_rotated_at&&!s.value?(z(),B(`p`,oP,[n[5]||=W(` Secret created `,-1),H(`span`,{title:M($x)(t.secret_rotated_at)},A(M(tS)(t.secret_rotated_at)),9,sP),n[6]||=W(`. Rotate it if it was lost. `,-1)])):G(``,!0),s.value?(z(),B(`div`,cP,[n[7]||=H(`span`,null,` Copy the secret now. It is not shown again. Send it in the Authorization header, or use it to sign requests with HMAC-SHA256. `,-1),H(`code`,null,A(M(XN)(s.value)),1),U(M(Y),{label:c.value===`secret`?`Copied`:`Copy secret`,severity:`secondary`,size:`small`,onClick:n[2]||=e=>x(`secret`,s.value??``)},{icon:N(()=>[U(J,{name:c.value===`secret`?`check`:`content-copy`},null,8,[`name`])]),_:1},8,[`label`])])):G(``,!0),H(`div`,lP,[n[9]||=H(`h3`,null,`Which requests start a run`,-1),M(ZN)(t).length?(z(),B(`ul`,uP,[(z(!0),B(R,null,I(M(ZN)(t),e=>(z(),B(`li`,{key:e},A(e),1))),128))])):(z(),B(`p`,dP,[...n[8]||=[W(`Every request with the secret can start a run. Add a `,-1),H(`code`,null,`webhook`,-1),W(` block to the job to ignore some requests or repeats.`,-1)]])),t.set_up?(z(),B(`form`,{key:2,class:`job-trigger-cap`,onSubmit:Fs(e=>v(t),[`prevent`])},[H(`label`,{for:`runs-per-hour-${t.kind}`},`Runs per hour`,8,pP),e.canManage?(z(),B(`div`,mP,[U(M(ib),{id:`runs-per-hour-${t.kind}`,"model-value":m(t),inputmode:`numeric`,autocomplete:`off`,placeholder:`Default, ${t.default_runs_per_hour}`,invalid:!!h(t).problem,"onUpdate:modelValue":e=>u.value[t.kind]=e??``},null,8,[`id`,`model-value`,`placeholder`,`invalid`,`onUpdate:modelValue`]),g(t)?(z(),V(M(Y),{key:0,type:`submit`,label:`Save`,size:`small`,loading:a.value===`cap`},null,8,[`loading`])):G(``,!0)])):(z(),B(`strong`,{key:1,id:`runs-per-hour-${t.kind}`},A(t.runs_per_hour),9,hP)),h(t).problem?(z(),B(`small`,gP,A(h(t).problem),1)):(z(),B(`small`,_P,A(_(t))+` Maximum `+A(t.max_runs_per_hour)+`. Requests over the limit are refused.`,1))],40,fP)):G(``,!0)]),t.events.length?(z(),B(`div`,vP,[n[10]||=H(`h3`,null,`Recent requests`,-1),H(`ul`,null,[(z(!0),B(R,null,I(t.events,e=>(z(),B(`li`,{key:e.id},[U(rk,{status:M($N)(e).status,label:M($N)(e).label},null,8,[`status`,`label`]),H(`span`,yP,[e.run_id?(z(),V(d,{key:0,to:`/runs/${e.run_id}`,class:`detail-link`},{default:N(()=>[W(`Run #`+A(e.run_id),1)]),_:2},1032,[`to`])):(z(),B(R,{key:1},[W(A(e.reason),1)],64)),e.count>1?(z(),B(`span`,bP,`×`+A(e.count),1)):G(``,!0)]),H(`small`,{title:M($x)(e.received_at)},A(M(tS)(e.received_at)),9,xP)]))),128))])])):t.enabled?(z(),B(`p`,SP,`No requests yet.`)):G(``,!0)]))),128)),o.value?(z(),B(`p`,CP,A(o.value),1)):G(``,!0)])):G(``,!0)}}});function TP(e){return e.unit===`seconds`?60:1}function EP(e){return e.unit===`seconds`?`minutes`:e.unit===`tokens`?`tokens`:``}function DP(e){return e.override===null?``:String(Math.round(e.override/TP(e)))}function OP(e,t){let n=t.trim().replace(/[,_\s]/g,``);if(!n)return{value:null,problem:null};let r=`Between ${FS(e.unit,e.minimum)} and ${FS(e.unit,e.maximum)}.`;if(!/^-?\d+$/.test(n))return{value:null,problem:`Enter a whole number.`};let i=Number(n)*TP(e);return i<e.minimum||i>e.maximum?{value:null,problem:r}:{value:i,problem:null}}function kP(e,t){let n={};for(let r of e){let e=OP(r,t[r.key]??``);e.problem===null&&e.value!==r.override&&(n[r.key]=e.value)}return n}var AP={id:`limits`,class:`panel run-limits`},jP={class:`panel-heading`},MP=[`for`],NP={key:0,class:`run-limit-input`},PP={key:0},FP=[`id`],IP={key:2,class:`field-error`},LP={key:3},RP={class:`run-limit-help`},zP={key:0,class:`need-notice run-limit-wide`},BP={key:1,class:`run-limit-footer run-limit-wide`},VP={class:`need-actions`},HP={key:2,class:`run-limit-footer run-limit-wide`},UP=P({__name:`RunLimitsPanel`,props:{limits:{},canEdit:{type:Boolean},description:{},inheritedFrom:{},saving:{type:Boolean},error:{}},emits:[`save`],setup(e,{emit:t}){let n=e,r=t,i=j({});function a(){i.value=Object.fromEntries(n.limits.map(e=>[e.key,DP(e)]))}rr(()=>n.limits,a,{immediate:!0});let o=q(()=>Object.fromEntries(n.limits.map(e=>[e.key,OP(e,i.value[e.key]??``).problem]))),s=q(()=>Object.values(o.value).some(Boolean)),c=q(()=>kP(n.limits,i.value)),l=q(()=>Object.keys(c.value).length>0);function u(e){let t=FS(e.unit,e.inherited);if(e.key in c.value){let r=c.value[e.key];return r==null?`Will use ${n.inheritedFrom}: ${t}.`:`Will be ${FS(e.unit,r)} after saving.`}return e.override===null?`Uses ${n.inheritedFrom}: ${t}.`:e.value<e.override?`Capped at the server maximum, ${FS(e.unit,e.value)}.`:`Set here. Without it: ${t}.`}function d(e){return e.key===`max_tool_calls`&&(e.key in c.value?c.value[e.key]:e.override)===0?` With 0, the skill cannot read any files or use a connection.`:``}function f(e){return String(Math.floor(e.inherited/TP(e)))}function p(){l.value&&!s.value&&r(`save`,c.value)}return(t,n)=>(z(),B(`section`,AP,[H(`div`,jP,[H(`div`,null,[n[0]||=H(`h2`,null,`Run limits`,-1),H(`p`,null,A(e.description),1)])]),H(`form`,{class:`run-limit-grid`,onSubmit:Fs(p,[`prevent`])},[(z(!0),B(R,null,I(e.limits,t=>(z(),B(`div`,{key:t.key,class:`run-limit`},[H(`label`,{for:`limit-${t.key}`},A(t.label),9,MP),e.canEdit?(z(),B(`div`,NP,[U(M(ib),{id:`limit-${t.key}`,modelValue:i.value[t.key],"onUpdate:modelValue":e=>i.value[t.key]=e,inputmode:`numeric`,autocomplete:`off`,placeholder:f(t),invalid:!!o.value[t.key]},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`placeholder`,`invalid`]),M(EP)(t)?(z(),B(`span`,PP,A(M(EP)(t)),1)):G(``,!0)])):(z(),B(`strong`,{key:1,id:`limit-${t.key}`},A(M(FS)(t.unit,t.value)),9,FP)),o.value[t.key]?(z(),B(`small`,IP,A(o.value[t.key]),1)):(z(),B(`small`,LP,A(u(t))+A(d(t))+` Maximum `+A(M(FS)(t.unit,t.maximum))+`.`,1)),H(`small`,RP,A(t.help),1)]))),128)),e.error?(z(),B(`p`,zP,A(e.error),1)):G(``,!0),e.canEdit?(z(),B(`div`,BP,[H(`small`,null,`Leave a field empty to use `+A(e.inheritedFrom)+`. Runs already started or queued keep their limits.`,1),H(`div`,VP,[l.value?(z(),V(M(Y),{key:0,label:`Reset`,severity:`secondary`,text:``,size:`small`,onClick:a})):G(``,!0),U(M(Y),{class:`main-action`,type:`submit`,label:`Save limits`,size:`small`,loading:e.saving,disabled:!l.value||s.value},{icon:N(()=>[U(J,{name:`check`})]),_:1},8,[`loading`,`disabled`])])])):(z(),B(`p`,HP,[...n[1]||=[H(`small`,null,`Only the workspace owner can change these.`,-1)]]))],32)]))}}),WP={class:`failure-label`},GP=P({__name:`FailureLabel`,props:{label:{},canceled:{type:Boolean}},setup(e){return(t,n)=>(z(),B(`span`,WP,[U(J,{name:e.canceled?`cancel`:`alert-circle-outline`},null,8,[`name`]),W(A(e.label),1)]))}}),KP=[`aria-label`],qP={key:0,class:`job-primary run-links`},JP=[`title`],YP={class:`failure-reason`},XP=[`title`],ZP={class:`run-statuses`},QP={key:1,class:`run-stats`},$P={key:0,class:`run-stat-line`},eF=[`title`],tF=[`title`],nF={class:`failure-reason`},rF={key:2,class:`run-meta`},iF={key:2},aF={key:3,class:`run-meta`},oF={key:2,class:`run-row-actions`},sF=Yw(P({__name:`RunRow`,props:{run:{},showJob:{type:Boolean,default:!0},compact:{type:Boolean,default:!1}},setup(e){let t=e,n=Zg(),r=q(()=>AS(t.run));function i(e){e.target.closest(`a, button`)||n.push(`/runs/${t.run.id}`)}return(t,n)=>{let a=F(`RouterLink`);return z(),B(`div`,{class:k([`run-row clickable-row`,{"without-job":!e.showJob,compact:e.compact}]),role:`link`,tabindex:`0`,"aria-label":`Open run #${e.run.id}`,onClick:i,onKeydown:Ls(i,[`enter`])},[U(a,{to:`/runs/${e.run.id}`,class:`run-id detail-link`},{default:N(()=>[W(`#`+A(e.run.id),1)]),_:1},8,[`to`]),e.showJob?(z(),B(`div`,qP,[U(a,{to:e.run.job_id===null?`/runs/${e.run.id}`:`/jobs/${e.run.job_id}`,title:e.run.job},{default:N(()=>[H(`strong`,null,A(e.run.job),1)]),_:1},8,[`to`,`title`]),e.compact&&e.run.failure?(z(),B(`div`,{key:0,class:k([`run-failure`,e.run.status]),title:e.run.summary},[U(GP,{label:e.run.failure.label,canceled:e.run.status===`canceled`},null,8,[`label`,`canceled`]),H(`span`,YP,A(e.run.failure.reason),1)],10,JP)):(z(),V(a,{key:1,to:`/repositories/${e.run.repository_id}`},{default:N(()=>[U(J,{name:`source-repository`}),H(`span`,null,A(e.run.repository),1)]),_:1},8,[`to`]))])):G(``,!0),H(`span`,{class:`run-when`,title:`${M($x)(e.run.scheduled_for)} · ${M(eS)(e.run.scheduled_for)}`},A(M(tS)(e.run.scheduled_for)),9,XP),H(`div`,ZP,[U(rk,{status:e.run.status},null,8,[`status`])]),e.compact?G(``,!0):(z(),B(`div`,QP,[r.value.length?(z(),B(`div`,$P,[(z(!0),B(R,null,I(r.value,e=>(z(),B(`span`,{key:e.key,class:k([`run-stat`,{warn:e.warn}]),title:e.title},A(e.text),11,eF))),128))])):G(``,!0),e.run.failure?(z(),B(`div`,{key:1,class:k([`run-failure`,e.run.status]),title:e.run.summary},[U(GP,{label:e.run.failure.label,canceled:e.run.status===`canceled`},null,8,[`label`,`canceled`]),H(`span`,nF,A(e.run.failure.reason),1)],10,tF)):e.run.model||e.run.commit_sha?(z(),B(`small`,rF,[e.run.model?(z(),B(R,{key:0},[W(A(e.run.model),1)],64)):G(``,!0),e.run.model&&e.run.commit_sha?(z(),B(R,{key:1},[W(` · `)],64)):G(``,!0),e.run.commit_sha?(z(),B(`code`,iF,A(e.run.commit_sha.slice(0,7)),1)):G(``,!0)])):r.value.length?G(``,!0):(z(),B(`small`,aF,`Waiting to start`))])),e.compact?G(``,!0):(z(),B(`div`,oF,[e.run.has_input?(z(),V(a,{key:0,to:`/runs/${e.run.id}/files/input`,class:`file-chip`,title:`View input`},{default:N(()=>[U(J,{name:`file-import-outline`}),n[0]||=W(` Input`,-1)]),_:1},8,[`to`])):G(``,!0),e.run.has_output?(z(),V(a,{key:1,to:`/runs/${e.run.id}/files/output`,class:`file-chip`,title:`View output`},{default:N(()=>[U(J,{name:`file-export-outline`}),n[1]||=W(` Output`,-1)]),_:1},8,[`to`])):G(``,!0),U(J,{"aria-hidden":`true`,name:`chevron-right`,class:`row-chevron`})]))],42,KP)}}}),[[`__scopeId`,`data-v-875c622e`]]),cF=3e3,lF=6e4;function uF(e,t){return t?null:e?cF:lF}function dF(e,t){let n=null,r=!1,i=!1;function a(){n!==null&&window.clearTimeout(n),n=null;let e=uF(t(),document.hidden);e!==null&&!i&&(n=window.setTimeout(o,e))}async function o(){if(!r){r=!0;try{await e()}catch{}finally{r=!1,a()}}}function s(){document.hidden?a():o()}Zr(()=>{document.addEventListener(`visibilitychange`,s),a()}),ti(()=>{i=!0,document.removeEventListener(`visibilitychange`,s),n!==null&&window.clearTimeout(n)})}function fF(){return zx(`/settings`)}function pF(e){return Z(`/settings/limits`,e)}function mF(e,t){return Z(`/jobs/${e}/limits`,t)}function hF(e,t){this.v=e,this.k=t}function gF(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _F(e){if(Array.isArray(e))return e}function vF(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function yF(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
2037
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bF(e,t){return _F(e)||vF(e,t)||xF(e,t)||yF()}function xF(e,t){if(e){if(typeof e==`string`)return gF(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gF(e,t):void 0}}function SF(e){var t,n;function r(t,n){try{var a=e[t](n),o=a.value,s=o instanceof hF;Promise.resolve(s?o.v:o).then(function(n){if(s){var c=t===`return`&&o.k?t:`next`;if(!o.k||n.done)return r(c,n);n=e[c](n).value}i(!!a.done,n)},function(e){r(`throw`,e)})}catch(e){i(2,e)}}function i(e,i){e===2?t.reject(i):t.resolve({value:i,done:e}),(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise(function(a,o){var s={key:e,arg:i,resolve:a,reject:o,next:null};n?n=n.next=s:(t=n=s,r(e,i))})},typeof e.return!=`function`&&(this.return=void 0)}SF.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},SF.prototype.next=function(e){return this._invoke(`next`,e)},SF.prototype.throw=function(e){return this._invoke(`throw`,e)},SF.prototype.return=function(e){return this._invoke(`return`,e)};var CF=Object.entries,wF=Object.setPrototypeOf,TF=Object.isFrozen,EF=Object.getPrototypeOf,DF=Object.getOwnPropertyDescriptor,OF=Object.freeze,kF=Object.seal,AF=Object.create,jF=typeof Reflect<`u`&&Reflect,MF=jF.apply,NF=jF.construct;OF||=function(e){return e},kF||=function(e){return e},MF||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},NF||=function(e){return new e(...[...arguments].slice(1))};var PF=iI(Array.prototype.forEach);Array.prototype.indexOf;var FF=iI(Array.prototype.lastIndexOf),IF=iI(Array.prototype.pop),LF=iI(Array.prototype.push),RF=iI(Array.prototype.slice),zF=iI(Array.prototype.splice),BF=Array.isArray,VF=aI(Set),HF=iI(Set.prototype.add),UF=iI(Set.prototype.has),WF=iI(String.prototype.toLowerCase),GF=iI(String.prototype.toString),KF=iI(String.prototype.match),qF=iI(String.prototype.replace),JF=iI(String.prototype.indexOf),YF=iI(String.prototype.trim),XF=iI(Number.prototype.toString),ZF=iI(Boolean.prototype.toString),QF=typeof BigInt>`u`?null:iI(BigInt.prototype.toString),$F=typeof Symbol>`u`?null:iI(Symbol.prototype.toString),eI=iI(Object.prototype.hasOwnProperty),tI=iI(Object.prototype.toString),nI=iI(RegExp.prototype.test),rI=aI(TypeError);function iI(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return MF(e,t,n)}}function aI(e){return function(){return NF(e,[...arguments])}}function oI(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:WF;if(wF&&wF(e,null),!BF(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(TF(t)||(t[r]=e),i=e)}e[i]=!0}return e}function sI(e){for(let t=0;t<e.length;t++)eI(e,t)||(e[t]=null);return e}function cI(e){let t=AF(null);for(let r of CF(e)){var n=bF(r,2);let i=n[0],a=n[1];eI(e,i)&&(t[i]=BF(a)?sI(a):a&&typeof a==`object`&&a.constructor===Object?cI(a):a)}return t}function lI(e){switch(typeof e){case`string`:return e;case`number`:return XF(e);case`boolean`:return ZF(e);case`bigint`:return QF?QF(e):`0`;case`symbol`:return $F?$F(e):`Symbol()`;case`undefined`:return tI(e);case`function`:case`object`:{if(e===null)return tI(e);let t=e,n=uI(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:tI(e)}return tI(e)}default:return tI(e)}}function uI(e,t){for(;e!==null;){let n=DF(e,t);if(n){if(n.get)return iI(n.get);if(typeof n.value==`function`)return iI(n.value)}e=EF(e)}function n(){return null}return n}function dI(e,t){for(;e!==null;){let n=DF(e,t);if(n)return n.get?iI(n.get):null;e=EF(e)}return null}function fI(e){try{return nI(e,``),!0}catch{return!1}}var pI=OF(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),mI=OF(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),hI=OF([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),gI=OF([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),_I=OF(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),vI=OF([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),yI=OF([`#text`]),bI=OF(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),xI=OF(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),SI=OF(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),CI=OF([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),wI=kF(/{{[\w\W]*|^[\w\W]*}}/g),TI=kF(/<%[\w\W]*|^[\w\W]*%>/g),EI=kF(/\${[\w\W]*/g),DI=kF(/^data-[\-\w.\u00B7-\uFFFF]+$/),OI=kF(/^aria-[\-\w]+$/),kI=kF(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),AI=kF(/^(?:\w+script|data):/i),jI=kF(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),MI=kF(/^html$/i),NI=kF(/^[a-z][.\w]*(-[.\w]+)+$/i),PI=kF(/<[/\w!]/g),FI=kF(/<[/\w]/g),II=kF(/<\/no(script|embed|frames)/i),LI=kF(/\/>/i),RI={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},zI=OF(oI({},[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`])),BI=function(){return typeof window>`u`?null:window},VI=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},HI=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},UI=function(e,t,n,r){return eI(e,t)&&BF(e[t])?oI(r.base?cI(r.base):{},e[t],r.transform):n},WI=function(e,t,n){let r=eI(e,t)?e[t]:void 0;return r&&typeof r==`object`?cI(r):n()};function GI(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:BI(),t=e=>GI(e);if(t.version=`3.4.17`,t.removed=[],!e||!e.document||e.document.nodeType!==RI.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=uI(d,`cloneNode`),p=uI(d,`remove`),m=uI(d,`removeAttributeNode`),h=uI(d,`nextSibling`),g=uI(d,`childNodes`),_=uI(d,`parentNode`),v=uI(d,`shadowRoot`),y=uI(d,`attributes`),b=o&&o.prototype?uI(o.prototype,`nodeType`):null,x=o&&o.prototype?uI(o.prototype,`nodeName`):null,S=o&&o.prototype?uI(o.prototype,`ownerDocument`):null,C=function(e){return b?b(e):e.nodeType},w=function(e){return x?x(e):e.nodeName},T=dI(d,`namespaceURI`),ee=function(e){return T?T(e):e.namespaceURI};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let te,E=``,ne,D=!1,re=0,ie=function(){if(re>0)throw rI(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},O=function(e){ie(),re++;try{return te.createHTML(e)}finally{re--}},ae=function(e){ie(),re++;try{return te.createScriptURL(e)}finally{re--}},oe=function(){return D||=(ne=VI(u,i),!0),ne},se=n,ce=se.implementation,le=se.createNodeIterator,ue=se.createDocumentFragment,de=se.getElementsByTagName,fe=r.importNode,pe=HI();t.isSupported=typeof CF==`function`&&typeof _==`function`&&ce&&ce.createHTMLDocument!==void 0;let me=wI,he=TI,k=EI,ge=DI,_e=OI,ve=AI,ye=jI,be=NI,xe=kI,Se=null,Ce=oI({},[...pI,...mI,...hI,..._I,...yI]),we=null,Te=oI({},[...bI,...xI,...SI,...CI]),A=Object.seal(AF(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ee=null,De=null,Oe=Object.seal(AF(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),ke=!0,Ae=!0,je=!1,Me=!0,Ne=!1,Pe=!0,Fe=!1,Ie=!1,Le=null,Re=null,ze=!1,Be=!1,Ve=!1,He=!1,Ue=!0,We=!1,Ge=`user-content-`,Ke=!0,qe=!1,Je=null,Ye={},Xe=null,Ze=oI({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Qe=null,$e=oI({},[`audio`,`video`,`img`,`source`,`image`,`track`]),et=null,tt=oI({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),nt=`http://www.w3.org/1998/Math/MathML`,rt=`http://www.w3.org/2000/svg`,it=`http://www.w3.org/1999/xhtml`,at=it,ot=!1,st=null,ct=oI({},[nt,rt,it],GF),lt=OF([`mi`,`mo`,`mn`,`ms`,`mtext`]),ut=oI({},lt),dt=OF([`annotation-xml`]),ft=oI({},dt),pt=oI({},[`title`,`style`,`font`,`a`,`script`]),mt=null,ht=[`application/xhtml+xml`,`text/html`],gt=null,_t=null,vt=n.createElement(`form`),yt=function(e){return e instanceof RegExp||e instanceof Function},bt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(_t&&_t===e)return;(!e||typeof e!=`object`)&&(e={}),e=cI(e),mt=ht.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,gt=mt===`application/xhtml+xml`?GF:WF,Se=UI(e,`ALLOWED_TAGS`,Ce,{transform:gt}),we=UI(e,`ALLOWED_ATTR`,Te,{transform:gt}),st=UI(e,`ALLOWED_NAMESPACES`,ct,{transform:GF}),et=UI(e,`ADD_URI_SAFE_ATTR`,tt,{transform:gt,base:tt}),Qe=UI(e,`ADD_DATA_URI_TAGS`,$e,{transform:gt,base:$e}),Xe=UI(e,`FORBID_CONTENTS`,Ze,{transform:gt}),Ee=UI(e,`FORBID_TAGS`,cI({}),{transform:gt}),De=UI(e,`FORBID_ATTR`,cI({}),{transform:gt}),Ye=eI(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?cI(e.USE_PROFILES):e.USE_PROFILES:!1,ke=e.ALLOW_ARIA_ATTR!==!1,Ae=e.ALLOW_DATA_ATTR!==!1,je=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ne=e.SAFE_FOR_TEMPLATES||!1,Pe=e.SAFE_FOR_XML!==!1,Fe=e.WHOLE_DOCUMENT||!1,Be=e.RETURN_DOM||!1,Ve=e.RETURN_DOM_FRAGMENT||!1,He=e.RETURN_TRUSTED_TYPE||!1,ze=e.FORCE_BODY||!1,Ue=e.SANITIZE_DOM!==!1,We=e.SANITIZE_NAMED_PROPS||!1,Ke=e.KEEP_CONTENT!==!1,qe=e.IN_PLACE||!1,xe=fI(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:kI,at=typeof e.NAMESPACE==`string`?e.NAMESPACE:it,ut=WI(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>oI({},lt)),ft=WI(e,`HTML_INTEGRATION_POINTS`,()=>oI({},dt));let t=WI(e,`CUSTOM_ELEMENT_HANDLING`,()=>AF(null));if(A=AF(null),eI(t,`tagNameCheck`)&&yt(t.tagNameCheck)&&(A.tagNameCheck=t.tagNameCheck),eI(t,`attributeNameCheck`)&&yt(t.attributeNameCheck)&&(A.attributeNameCheck=t.attributeNameCheck),eI(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(A.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),kF(A),Ne&&(Ae=!1),Ve&&(Be=!0),Ye&&(Se=oI({},yI),we=AF(null),Ye.html===!0&&(oI(Se,pI),oI(we,bI)),Ye.svg===!0&&(oI(Se,mI),oI(we,xI),oI(we,CI)),Ye.svgFilters===!0&&(oI(Se,hI),oI(we,xI),oI(we,CI)),Ye.mathMl===!0&&(oI(Se,_I),oI(we,SI),oI(we,CI))),Oe.tagCheck=null,Oe.attributeCheck=null,eI(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?Oe.tagCheck=e.ADD_TAGS:BF(e.ADD_TAGS)&&(Se===Ce&&(Se=cI(Se)),oI(Se,e.ADD_TAGS,gt))),eI(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?Oe.attributeCheck=e.ADD_ATTR:BF(e.ADD_ATTR)&&(we===Te&&(we=cI(we)),oI(we,e.ADD_ATTR,gt))),eI(e,`ADD_FORBID_CONTENTS`)&&BF(e.ADD_FORBID_CONTENTS)&&(Xe===Ze&&(Xe=cI(Xe)),oI(Xe,e.ADD_FORBID_CONTENTS,gt)),Ke&&(Se[`#text`]=!0),Fe&&oI(Se,[`html`,`head`,`body`]),Se.table&&(oI(Se,[`tbody`]),delete Ee.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw rI(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw rI(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=te;te=e.TRUSTED_TYPES_POLICY;try{E=O(``)}catch(e){throw te=t,e}}else e.TRUSTED_TYPES_POLICY===null?(te=void 0,E=``):(te===void 0&&(te=oe()),te&&typeof E==`string`&&(E=O(``)));OF&&OF(e),_t=e},xt=oI({},[...mI,...hI,...gI]),St=oI({},[..._I,...vI]),Ct=function(e,t,n){return t.namespaceURI===it?e===`svg`:t.namespaceURI===nt?e===`svg`&&(n===`annotation-xml`||ut[n]):!!xt[e]},wt=function(e,t,n){return t.namespaceURI===it?e===`math`:t.namespaceURI===rt?e===`math`&&ft[n]:!!St[e]},Tt=function(e,t,n){return t.namespaceURI===rt&&!ft[n]||t.namespaceURI===nt&&!ut[n]?!1:!St[e]&&(pt[e]||!xt[e])},Et=function(e){let t=ee(e),n=WF(w(e)),r=_(e),i,a;return r&&C(r)===RI.element?(i={namespaceURI:ee(r)},a=WF(w(r))):(i={namespaceURI:at},a=`template`),st[t]?t===rt?Ct(n,i,a):t===nt?wt(n,i,a):t===it?Tt(n,i,a):!!(mt===`application/xhtml+xml`&&st[t]):!1},Dt=function(e){LF(t.removed,{element:e});try{_(e).removeChild(e)}catch{if(p(e),!_(e))throw rI(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},Ot=function(e,t,n){try{m(e,t)}catch{try{e.removeAttribute(n)}catch{}}},kt=function(e){Nt(e);let t=g(e);t&&PF(RF(t),e=>{try{p(e)}catch{}});let n=C(e)===RI.element?y(e):null;if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&Ot(e,r,i)}},At=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}LF(t.removed,{attribute:r||null,from:n});try{r?m(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`){if(Be||Ve)try{Dt(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},jt=function(e){let t=y(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||we[gt(i)]||Ot(e,r,i)}},Mt=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=[e];for(;r.length>0;){let e=r.pop();if(t(e)===!1)continue;if(n&&C(e)===RI.element){let t=v(e);Jt(t)&&r.push(t)}let i=g(e);if(i)for(let e=i.length-1;e>=0;--e)r.push(i[e])}},Nt=function(e){Mt(e,e=>{C(e)===RI.element&&jt(e)})},Pt=function(e){let t=[];return Mt(e,e=>{t.push(e)},!0),t},Ft=function(e,t){let n=VF();PF(Pt(e),e=>{C(e)===RI.element&&HF(n,e)}),PF(t,e=>{C(e)===RI.element&&!UF(n,e)&&jt(e)})},It=function(e,n){let r=!1;return PF(t.removed,t=>{t.element&&(r||=t.element===e,Nt(t.element))}),Ft(e,n),r},Lt=function(e,t){let n=Je,r=null,i=()=>(r||(r=VF(),PF(t,e=>{HF(r,e)})),r);for(let t=0;;t++){let r=Pt(e),a=[e],o=!1;if(PF(r,e=>{C(e)===RI.documentFragment?LF(a,e):!o&&!UF(n,e)&&(o=UF(i(),e))}),!o)return;if(t>=8)throw rI(`the tree kept changing during in-place sanitization; refusing to return it`);PF(a,(t,n)=>{Rt(t,n>0,e,i())})}},Rt=function(e,t,n,r){let i=Ut(e),a;for(;a=i.nextNode();)UF(r,a)&&!UF(Je,a)&&(t&&Xt(pe.uponSanitizeShadowNode,a,null),nn(a,n),cn(a,n),Jt(a.content)&&ln(a.content))},zt=function(e){Je&&HF(Je,e)},Bt=function(e,t){return Pe?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},Vt=function(e){Pe&&Mt(e,e=>{let t=C(e);if(t===RI.processingInstruction||t===RI.comment&&nI(FI,e.data)){try{p(e)}catch{}return!1}if(t===RI.element){let t=e,n=gt(w(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&Bt(`for`,n)&&t.removeAttribute(`for`)}catch{}}return!0})},Ht=function(e){let t=null,r=null;if(ze)e=`<remove></remove>`+e;else{let t=KF(e,/^[\r\n\t ]+/);r=t&&t[0]}mt===`application/xhtml+xml`&&at===it&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=te?O(e):e;if(at===it)try{t=new l().parseFromString(i,mt)}catch{}if(!t||!t.documentElement){t=ce.createDocument(at,`template`,null);try{t.documentElement.innerHTML=ot?E:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),at===it?de.call(t,Fe?`html`:`body`)[0]:Fe?t.documentElement:a},Ut=function(e){let t=S?S(e):e.ownerDocument;return le.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Wt=function(e){return e=qF(e,me,` `),e=qF(e,he,` `),e=qF(e,k,` `),e},Gt=function(e){Kt(e);let t=e.querySelectorAll?.call(e,`template`);t&&PF(t,e=>{Jt(e.content)&&Gt(e.content)})},Kt=function(e){e.normalize();let t=S?S(e):e.ownerDocument,n=le.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=Wt(r.data),r=n.nextNode()},qt=function(e){let t=x?x(e):null;return typeof t!=`string`||gt(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==y(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==b(e)||e.childNodes!==g(e)},Jt=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return b(e)===RI.documentFragment}catch{return!1}},Yt=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return typeof b(e)==`number`}catch{return!1}};function Xt(e,n,r){e.length!==0&&PF(e,e=>{e.call(t,n,r,_t)})}let Zt=function(e,t){return!!(Pe&&e.hasChildNodes()&&!Yt(e.firstElementChild)&&nI(PI,e.textContent)&&nI(PI,e.innerHTML)||Pe&&zI[t]&&C(e)===RI.element&&ee(e)===it&&(Yt(e.firstElementChild)||typeof e.textContent==`string`&&nI(PI,e.textContent))||e.nodeType===RI.processingInstruction||Pe&&e.nodeType===RI.comment&&nI(FI,e.data))},Qt=function(e,t){return e instanceof RegExp?nI(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},$t=function(e,t,n){if(!Ee[t]&&an(t)&&Qt(A.tagNameCheck,t))return!1;if(Ke&&!Xe[t]&&!Xe[WF(t)]){let t=_(e),r=g(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,h(e))}}}return Dt(e),!0},en=function(e,t,n,r){return e.length===0?t:t===n||t===r?cI(t):t},tn=function(e,t){return e===t||_(e)!==null?!1:(qe&&Nt(e),!0)},nn=function(e,n){if(zt(e),Xt(pe.beforeSanitizeElements,e,null),tn(e,n))return!0;if(qt(e))return Dt(e),!0;let r=gt(w(e));if(Se=en(pe.uponSanitizeElement,Se,Ce,Le),Xt(pe.uponSanitizeElement,e,{tagName:r,allowedTags:Se}),tn(e,n))return!0;if(Zt(e,r))return Dt(e),!0;if(Ee[r]||!(Oe.tagCheck instanceof Function&&Oe.tagCheck(r))&&!Se[r]){let t=$t(e,r,n);return t===!1&&(Xt(pe.afterSanitizeElements,e,null),tn(e,n))?!0:t}if(C(e)===RI.element&&!Et(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&nI(II,e.innerHTML))return Dt(e),!0;if(Ne&&e.nodeType===RI.text){let n=Wt(e.textContent);e.textContent!==n&&(LF(t.removed,{element:e.cloneNode()}),e.textContent=n)}return Xt(pe.afterSanitizeElements,e,null),tn(e,n)},j=function(e,t,r){if(De[t]||Bt(t,e)||Ue&&(t===`id`||t===`name`)&&(r in n||r in vt))return!1;let i=we[t]||Oe.attributeCheck instanceof Function&&Oe.attributeCheck(t,e);return Ae&&nI(ge,t)||ke&&nI(_e,t)?!0:i?et[t]||nI(xe,qF(r,ye,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&JF(r,`data:`)===0&&Qe[e]||je&&!nI(ve,qF(r,ye,``))?!0:!r:an(e)&&Qt(A.tagNameCheck,e)&&Qt(A.attributeNameCheck,t,e)||t===`is`&&A.allowCustomizedBuiltInElements&&Qt(A.tagNameCheck,r)},rn=oI({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),an=function(e){return!rn[WF(e)]&&nI(be,e)},on=function(e,t,n,r){if(te&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return O(r);case`TrustedScriptURL`:return ae(r)}return r},M=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!qt(e)||(Dt(e),!1)}catch{return At(t,e),!1}},sn=function(e,t){return Pe&&nI(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,t)?!0:WF(e)===`attributename`&&KF(t,`href`)!==null},cn=function(e,n){if(Xt(pe.beforeSanitizeAttributes,e,null),tn(e,n))return;let r=e.attributes;if(!r||qt(e))return;we=en(pe.uponSanitizeAttribute,we,Te,Re);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:we,forceKeepAttr:void 0},a=r.length,o=gt(e.nodeName);for(;a--;){let n=r[a],s=n.name,c=n.namespaceURI,l=n.value,u=gt(s),d=l,f=s===`value`?d:YF(d),p=!1;i.attrName=u,i.attrValue=f,i.keepAttr=!0,i.forceKeepAttr=void 0,Xt(pe.uponSanitizeAttribute,e,i),f=i.attrValue,We&&(u===`id`||u===`name`)&&JF(f,Ge)!==0&&(At(s,e,n),f=Ge+f,p=!0),sn(s,f)?At(s,e,n):i.forceKeepAttr||(i.keepAttr?!Me&&nI(LI,f)?At(s,e,n):(Ne&&(f=Wt(f)),j(o,u,f)?(f=on(o,u,c,f),f!==d&&M(e,s,c,f)&&p&&IF(t.removed)):At(s,e,n)):At(s,e,n))}Xt(pe.afterSanitizeAttributes,e,null),tn(e,n)},ln=function(e){let t=null,n=Ut(e);for(Xt(pe.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(Xt(pe.uponSanitizeShadowNode,t,null),nn(t,e),cn(t,e),Jt(t.content)&&ln(t.content),C(t)===RI.element){let e=v(t);Jt(e)&&(un(e),ln(e))}Ne&&Kt(e),Xt(pe.afterSanitizeShadowDOM,e,null)},un=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){ln(e.shadow);continue}let n=e.node,r=C(n)===RI.element,i=g(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=x?x(n):null;if(typeof e==`string`&&gt(e)===`template`){let e=n.content;Jt(e)&&t.push({node:e,shadow:null})}}if(r){let e=v(n);Jt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(ot=!e,ot&&(e=`<!-->`),typeof e!=`string`&&!Yt(e)&&(e=lI(e),typeof e!=`string`))throw rI(`dirty is not a string, aborting`);if(!t.isSupported)return e;Ie?(Se=Le,we=Re):bt(n),(pe.uponSanitizeElement.length>0||pe.uponSanitizeAttribute.length>0)&&(Se=cI(Se)),pe.uponSanitizeAttribute.length>0&&(we=cI(we)),t.removed=[];let c=qe&&typeof e!=`string`&&Yt(e),l=[],u=Je;if(c){Vt(e);let t=w(e);if(typeof t==`string`){let n=gt(t);if(!Se[n]||Ee[n])throw kt(e),rI(`root node is forbidden and cannot be sanitized in-place`)}if(qt(e))throw kt(e),rI(`root node is clobbered and cannot be sanitized in-place`);l=Pt(e),Je=VF()}else if(Yt(e))i=Ht(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===RI.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),un(i);else{if(!Be&&!Ne&&!Fe&&e.indexOf(`<`)===-1)return te&&He?O(e):e;if(i=Ht(e),!i)return Be?null:He?E:``}i&&ze&&Dt(i.firstChild);let d=c?e:i;try{c&&un(e);let t=Ut(d);for(;o=t.nextNode();)nn(o,d),cn(o,d),Jt(o.content)&&ln(o.content);c&&Lt(e,l)}catch(t){throw c&&(kt(e),It(e,l)),t}finally{Je=u}if(c){if(It(e,l))throw rI(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return Ne&&Gt(e),e}if(Be){if(Ne&&Gt(i),Ve)for(s=ue.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(we.shadowroot||we.shadowrootmode)&&(s=fe.call(r,s,!0)),s}let f=Fe?i.outerHTML:i.innerHTML;return Fe&&Se[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&nI(MI,i.ownerDocument.doctype.name)&&(f=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
2038
+ `+f),Ne&&(f=Wt(f)),te&&He?O(f):f},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};bt(e),Ie=!0,Le=Se,Re=we},t.clearConfig=function(){_t=null,Ie=!1,Le=null,Re=null,te=ne,E=``},t.isValidAttribute=function(e,t,n){_t||bt({});let r=gt(e),i=gt(t);return typeof n==`string`&&(sn(t,n)||!Me&&nI(LI,n))?!1:j(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&eI(pe,e)&&LF(pe[e],t)},t.removeHook=function(e,t){if(eI(pe,e)){if(t!==void 0){let n=FF(pe[e],t);return n===-1?void 0:zF(pe[e],n,1)[0]}return IF(pe[e])}},t.removeHooks=function(e){eI(pe,e)&&(pe[e]=[])},t.removeAllHooks=function(){pe=HI()},t}var KI=GI();function qI(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var JI=qI();function YI(e){JI=e}var XI={exec:()=>null};function ZI(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace($I.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var QI=(()=>{try{return!0}catch{return!1}})(),$I={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`)},eL=/^(?:[ \t]*(?:\n|$))+/,tL=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,nL=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,rL=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,iL=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,aL=/(?:[*+-]|\d{1,9}[.)])/,oL=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,sL=ZI(oL).replace(/bull/g,aL).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),cL=ZI(oL).replace(/bull/g,aL).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),lL=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,uL=/^[^\n]+/,dL=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,fL=ZI(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,dL).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),pL=ZI(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,aL).getRegex(),mL=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,hL=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,gL=ZI(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,hL).replace(`tag`,mL).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),_L=ZI(lL).replace(`hr`,rL).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,mL).getRegex(),vL={blockquote:ZI(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,_L).getRegex(),code:tL,def:fL,fences:nL,heading:iL,hr:rL,html:gL,lheading:sL,list:pL,newline:eL,paragraph:_L,table:XI,text:uL},yL=ZI(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,rL).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,mL).getRegex(),bL={...vL,lheading:cL,table:yL,paragraph:ZI(lL).replace(`hr`,rL).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,yL).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,mL).getRegex()},xL={...vL,html:ZI(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,hL).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:XI,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ZI(lL).replace(`hr`,rL).replace(`heading`,` *#{1,6} *[^
2039
+ ]`).replace(`lheading`,sL).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},SL=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,CL=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,wL=/^( {2,}|\\)\n(?!\s*$)/,TL=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,EL=/[\p{P}\p{S}]/u,DL=/[\s\p{P}\p{S}]/u,OL=/[^\s\p{P}\p{S}]/u,kL=ZI(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,DL).getRegex(),AL=/(?!~)[\p{P}\p{S}]/u,jL=/(?!~)[\s\p{P}\p{S}]/u,ML=/(?:[^\s\p{P}\p{S}]|~)/u,NL=ZI(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,QI?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),PL=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,FL=ZI(PL,`u`).replace(/punct/g,EL).getRegex(),IL=ZI(PL,`u`).replace(/punct/g,AL).getRegex(),LL=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,RL=ZI(LL,`gu`).replace(/notPunctSpace/g,OL).replace(/punctSpace/g,DL).replace(/punct/g,EL).getRegex(),zL=ZI(LL,`gu`).replace(/notPunctSpace/g,ML).replace(/punctSpace/g,jL).replace(/punct/g,AL).getRegex(),BL=ZI(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,OL).replace(/punctSpace/g,DL).replace(/punct/g,EL).getRegex(),VL=ZI(/\\(punct)/,`gu`).replace(/punct/g,EL).getRegex(),HL=ZI(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),UL=ZI(hL).replace(`(?:-->|$)`,`-->`).getRegex(),WL=ZI(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,UL).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),GL=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,KL=ZI(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace(`label`,GL).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),qL=ZI(/^!?\[(label)\]\[(ref)\]/).replace(`label`,GL).replace(`ref`,dL).getRegex(),JL=ZI(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,dL).getRegex(),YL=ZI(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,qL).replace(`nolink`,JL).getRegex(),XL=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ZL={_backpedal:XI,anyPunctuation:VL,autolink:HL,blockSkip:NL,br:wL,code:CL,del:XI,emStrongLDelim:FL,emStrongRDelimAst:RL,emStrongRDelimUnd:BL,escape:SL,link:KL,nolink:JL,punctuation:kL,reflink:qL,reflinkSearch:YL,tag:WL,text:TL,url:XI},QL={...ZL,link:ZI(/^!?\[(label)\]\((.*?)\)/).replace(`label`,GL).getRegex(),reflink:ZI(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,GL).getRegex()},$L={...ZL,emStrongRDelimAst:zL,emStrongLDelim:IL,url:ZI(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,XL).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ZI(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,XL).getRegex()},eR={...$L,br:ZI(wL).replace(`{2,}`,`*`).getRegex(),text:ZI($L.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},tR={normal:vL,gfm:bL,pedantic:xL},nR={normal:ZL,gfm:$L,breaks:eR,pedantic:QL},rR={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},iR=e=>rR[e];function aR(e,t){if(t){if($I.escapeTest.test(e))return e.replace($I.escapeReplace,iR)}else if($I.escapeTestNoEncode.test(e))return e.replace($I.escapeReplaceNoEncode,iR);return e}function oR(e){try{e=encodeURI(e).replace($I.percentDecode,`%`)}catch{return null}return e}function sR(e,t){let n=e.replace($I.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split($I.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t){if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``)}for(;r<n.length;r++)n[r]=n[r].trim().replace($I.slashPipe,`|`);return n}function cR(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function lR(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function uR(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function dR(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
2040
+ `).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
2041
+ `)}var fR=class{options;rules;lexer;constructor(e){this.options=e||JI}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,``);return{type:`code`,raw:t[0],codeBlockStyle:`indented`,text:this.options.pedantic?e:cR(e,`
2042
+ `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=dR(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=cR(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:cR(t[0],`
2043
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=cR(t[0],`
2044
+ `).split(`
2045
+ `),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o=0;for(;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
2046
+ `),c=s.replace(this.rules.other.blockquoteSetextReplace,`
2047
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}
2048
+ ${s}`:s,r=r?`${r}
2049
+ ${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`)break;if(u?.type===`blockquote`){let t=u,a=t.raw+`
2050
+ `+e.join(`
2051
+ `),o=this.blockquote(a);i[i.length-1]=o,n=n.substring(0,n.length-t.raw.length)+o.raw,r=r.substring(0,r.length-t.text.length)+o.text;break}if(u?.type===`list`){let t=u,a=t.raw+`
2052
+ `+e.join(`
2053
+ `),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
2054
+ `)}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=t[2].split(`
2055
+ `,1)[0].replace(this.rules.other.listReplaceTabs,e=>` `.repeat(3*e.length)),l=e.split(`
2056
+ `,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=t[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+`
2057
+ `,e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d);for(;e;){let f=e.split(`
2058
+ `,1)[0],p;if(l=f,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,` `),p=l):p=l.replace(this.rules.other.tabCharGlobal,` `),i.test(l)||a.test(l)||o.test(l)||t.test(l)||n.test(l))break;if(p.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=`
2059
+ `+p.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=`
2060
+ `+l}!u&&!l.trim()&&(u=!0),r+=f+`
2061
+ `,e=e.substring(f.length+1),c=p.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0));let f=null,p;this.options.gfm&&(f=this.rules.other.listIsTask.exec(s),f&&(p=f[0]!==`[ ] `,s=s.replace(this.rules.other.listReplaceTask,``))),i.items.push({type:`list_item`,raw:r,task:!!f,checked:p,loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){let t=i.items[e].tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:`html`,block:!0,raw:t[0],pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=sR(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
2062
+ `):[],a={type:`table`,raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(sR(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:`heading`,raw:t[0],depth:t[2].charAt(0)===`=`?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
2063
+ `?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=cR(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=lR(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),uR(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return uR(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,c=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(r=c.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=c.slice(1,-1);return{type:`em`,raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:`strong`,raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:`del`,raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},pR=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||JI,this.options.tokenizer=this.options.tokenizer||new fR,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:$I,block:tR.normal,inline:nR.normal};this.options.pedantic?(t.block=tR.pedantic,t.inline=nR.pedantic):this.options.gfm&&(t.block=tR.gfm,t.inline=this.options.breaks?nR.breaks:nR.gfm),this.tokenizer.rules=t}static get rules(){return{block:tR,inline:nR}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace($I.carriageReturn,`
2064
+ `),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace($I.tabCharGlobal,` `).replace($I.spaceLine,``));e;){let r;if(this.options.extensions?.block?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);r.raw.length===1&&n!==void 0?n.raw+=`
2065
+ `:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
2066
+ `)?``:`
2067
+ `)+r.raw,n.text+=`
2068
+ `+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if((r=this.tokenizer.fences(e))||(r=this.tokenizer.heading(e))||(r=this.tokenizer.hr(e))||(r=this.tokenizer.blockquote(e))||(r=this.tokenizer.list(e))||(r=this.tokenizer.html(e))){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
2069
+ `)?``:`
2070
+ `)+r.raw,n.text+=`
2071
+ `+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if((r=this.tokenizer.table(e))||(r=this.tokenizer.lheading(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let a=t.at(-1);n&&a?.type===`paragraph`?(a.raw+=(a.raw.endsWith(`
2072
+ `)?``:`
2073
+ `)+r.raw,a.text+=`
2074
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length)}else if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
2075
+ `)?``:`
2076
+ `)+r.raw,n.text+=`
2077
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r)}else if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)e.includes(r[0].slice(r[0].lastIndexOf(`[`)+1,-1))&&(n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)i=r[2]?r[2].length:0,n=n.slice(0,r.index+i)+`[`+`a`.repeat(r[0].length-i-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,o=``;for(;e;){a||(o=``),a=!1;let r;if(this.options.extensions?.inline?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if((r=this.tokenizer.escape(e))||(r=this.tokenizer.tag(e))||(r=this.tokenizer.link(e))){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if((r=this.tokenizer.emStrong(e,n,o))||(r=this.tokenizer.codespan(e))||(r=this.tokenizer.br(e))||(r=this.tokenizer.del(e))||(r=this.tokenizer.autolink(e))||!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(o=r.raw.slice(-1)),a=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r)}else if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},mR=class{options;parser;constructor(e){this.options=e||JI}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match($I.notSpaceStart)?.[0],i=e.replace($I.endingNewline,``)+`
2078
+ `;return r?`<pre><code class="language-`+aR(r)+`">`+(n?i:aR(i,!0))+`</code></pre>
2079
+ `:`<pre><code>`+(n?i:aR(i,!0))+`</code></pre>
2080
+ `}blockquote({tokens:e}){return`<blockquote>
2081
+ ${this.parser.parse(e)}</blockquote>
2082
+ `}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
2083
+ `}hr(e){return`<hr>
2084
+ `}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
2085
+ `+r+`</`+i+`>
2086
+ `}listitem(e){let t=``;if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type===`paragraph`?(e.tokens[0].text=n+` `+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type===`text`&&(e.tokens[0].tokens[0].text=n+` `+aR(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:`text`,raw:n+` `,text:n+` `,escaped:!0}):t+=n+` `}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
2087
+ `}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox">`}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
2088
+ `}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
2089
+ <thead>
2090
+ `+t+`</thead>
2091
+ `+r+`</table>
2092
+ `}tablerow({text:e}){return`<tr>
2093
+ ${e}</tr>
2094
+ `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
2095
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${aR(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=oR(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+aR(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=oR(e);if(i===null)return aR(n);e=i;let a=`<img src="${e}" alt="${n}"`;return t&&(a+=` title="${aR(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:aR(e.text)}},hR=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}},gR=class e{options;renderer;textRenderer;constructor(e){this.options=e||JI,this.options.renderer=this.options.renderer||new mR,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new hR}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=i,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(t!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`def`,`paragraph`,`text`].includes(e.type)){n+=t||``;continue}}let a=i;switch(a.type){case`space`:n+=this.renderer.space(a);continue;case`hr`:n+=this.renderer.hr(a);continue;case`heading`:n+=this.renderer.heading(a);continue;case`code`:n+=this.renderer.code(a);continue;case`table`:n+=this.renderer.table(a);continue;case`blockquote`:n+=this.renderer.blockquote(a);continue;case`list`:n+=this.renderer.list(a);continue;case`html`:n+=this.renderer.html(a);continue;case`def`:n+=this.renderer.def(a);continue;case`paragraph`:n+=this.renderer.paragraph(a);continue;case`text`:{let i=a,o=this.renderer.text(i);for(;r+1<e.length&&e[r+1].type===`text`;)i=e[++r],o+=`
2096
+ `+this.renderer.text(i);n+=t?this.renderer.paragraph({type:`paragraph`,raw:o,text:o,tokens:[{type:`text`,raw:o,text:o,escaped:!0}]}):o;continue}default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}parseInline(e,t=this.renderer){let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},_R=class{options;block;constructor(e){this.options=e||JI}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?pR.lex:pR.lexInline}provideParser(){return this.block?gR.parse:gR.parseInline}},vR=new class{defaults=qI();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=gR;Renderer=mR;TextRenderer=hR;Lexer=pR;Tokenizer=fR;Hooks=_R;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new mR(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new fR(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new _R;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];t[r]=_R.passThroughHooks.has(n)?e=>{if(this.defaults.async&&_R.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return pR.lex(e,t??this.defaults)}parser(e,t){return gR.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer():e?pR.lex:pR.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser():e?gR.parse:gR.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer():e?pR.lex:pR.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser():e?gR.parse:gR.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
2097
+ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+aR(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function yR(e,t){return vR.parse(e,t)}yR.options=yR.setOptions=function(e){return vR.setOptions(e),yR.defaults=vR.defaults,YI(yR.defaults),yR},yR.getDefaults=qI,yR.defaults=JI,yR.use=function(...e){return vR.use(...e),yR.defaults=vR.defaults,YI(yR.defaults),yR},yR.walkTokens=function(e,t){return vR.walkTokens(e,t)},yR.parseInline=vR.parseInline,yR.Parser=gR,yR.parser=gR.parse,yR.Renderer=mR,yR.TextRenderer=hR,yR.Lexer=pR,yR.lexer=pR.lex,yR.Tokenizer=fR,yR.Hooks=_R,yR.parse=yR,yR.options,yR.setOptions,yR.use,yR.walkTokens,yR.parseInline,gR.parse,pR.lex;var bR=[`img`,`svg`,`math`,`iframe`,`object`,`embed`,`form`,`input`,`button`,`style`];KI.addHook(`afterSanitizeAttributes`,e=>{e.tagName===`A`&&(e.setAttribute(`target`,`_blank`),e.setAttribute(`rel`,`noopener noreferrer nofollow`))});function xR(e,t){let n=yR.parse(e,{async:!1,gfm:!0,walkTokens:t?e=>{e.type===`link`&&(e.href=t(e.href))}:null});return KI.sanitize(n,{FORBID_TAGS:bR,FORBID_ATTR:[`style`]})}var SR=/^---\r?\n([\s\S]*?)\r?\n---[ \t]*(?:\r?\n|$)/;function CR(e){let t=SR.exec(e);if(!t)return{fields:[],body:e};let n=[];for(let e of t[1].split(/\r?\n/)){let t=/^([A-Za-z0-9_-]+):\s*(.*)$/.exec(e);if(t){let e=[`>`,`|`,`>-`,`|-`].includes(t[2])?``:t[2];n.push({key:t[1],value:wR(e)})}else if(/^\s+\S/.test(e)&&n.length){let t=n[n.length-1];t.value=`${t.value} ${e.trim()}`.trim()}}return{fields:n,body:e.slice(t[0].length)}}function wR(e){let t=/^(['"])(.*)\1$/.exec(e);return t?t[2]:e}var TR={class:`page`},ER={key:0,class:`panel empty-state`},DR={key:1,class:`panel empty-state`},OR={key:0,class:`page-error`},kR={key:0,class:`job-status-item`},AR={key:1,class:`job-status-item`},jR=[`title`],MR={key:2,class:`job-status-item`},NR={key:3,class:`job-status-item`},PR={class:`job-status-item`},FR={key:1},IR={key:5,class:`job-status-warning`},LR={class:`run-layout`},RR={class:`run-main`},zR={class:`panel job-runs-panel`},BR={class:`panel-heading`},VR={key:0,class:`data-list`},HR={key:1,class:`empty-state compact`},UR={id:`skill`,class:`panel job-skill-panel`},WR={class:`panel-heading`},GR={class:`job-skill-origin`},KR=[`href`],qR={key:0,class:`segmented`,role:`group`,"aria-label":`Skill view`},JR=[`aria-pressed`],YR=[`aria-pressed`],XR={key:0,class:`job-skill-fields`},ZR=[`innerHTML`],QR={key:1,class:`run-output job-skill-body`},$R=[`aria-expanded`],ez={key:2,class:`job-skill-note`},tz={key:1,class:`empty-state compact`},nz={key:1,id:`access`,class:`panel job-access-panel`},rz={class:`panel-heading`},iz={key:1,class:`job-capability-details`},az={class:`tool-list`},oz={key:0},sz={class:`capability-connection`},cz={class:`panel run-details`},lz=[`title`],uz={class:`run-details-muted`},dz={key:1},fz={key:0},pz={key:1},mz={key:0},hz={key:1},gz={key:2},_z={key:2},vz={key:0},yz={key:1},bz={key:2},xz=P({__name:`JobDetailView`,setup(e){let t=Qg(),n=Zg(),r=zw(),i=j(null),a=j(!0),o=j(null),s=j(null),c=Number(t.params.id),l=j(!1),u=j(null),d=q(()=>i.value?.capabilities.filter(e=>e.required)??[]),f=q(()=>i.value?.capabilities.filter(e=>!e.required)??[]),p=q(()=>i.value?`${i.value.repository} · ${lS(i.value.cron,i.value.timezone,i.value.triggers)}`:a.value?`Loading job…`:`This job could not be loaded`),m=q(()=>{let e=[];return d.value.length&&e.push(`${Q(d.value.length,`connection`)} needed`),f.value.length&&e.push(`${f.value.length} optional`),e.join(` · `)}),h=q(()=>i.value?.recent_runs[0]??null),g=j(`rendered`),_=j(!1),v=j(null),y=j(!1);rr([g,()=>i.value?.skill_text],()=>{y.value=!!v.value&&v.value.scrollHeight>v.value.clientHeight+1},{flush:`post`});let b=q(()=>CR(i.value?.skill_text??``)),x=q(()=>xR(b.value.body));async function S(){try{i.value=await uw(c),s.value=null}catch(e){s.value=X(e,`Unable to load job`)}finally{a.value=!1}}async function C(e){l.value=!0,u.value=null;try{i.value=await mF(c,e)}catch(e){u.value=X(e,`Unable to save the limits`)}finally{l.value=!1}}async function w(){await S(),[`#access`,`#limits`,`#skill`,`#triggers`].includes(t.hash)&&(await Fn(),document.getElementById(t.hash.slice(1))?.scrollIntoView({behavior:`smooth`,block:`start`}))}async function T(){if(i.value){o.value=`toggle`,s.value=null;try{await dw(c,!i.value.enabled),await Promise.all([S(),r.refresh()])}catch(e){s.value=X(e,`Unable to change job state`)}finally{o.value=null}}}async function ee(){o.value=`run`,s.value=null;try{let e=await jw(c);await n.push(`/runs/${e.id}`),r.refreshRuns()}catch(e){s.value=X(e,`Unable to run job`)}finally{o.value=null}}return Zr(w),dF(S,()=>(i.value?.recent_runs??[]).some(e=>Nw(e.status))),(e,t)=>{let n=F(`RouterLink`);return z(),B(`div`,TR,[U(qT,{compact:``,title:i.value?.name??`Job`,description:p.value,parent:{label:`Jobs`,to:`/jobs`}},{default:N(()=>[i.value&&i.value.cron&&!i.value.removed_at&&M(r).can(M($).EnableJobs)?(z(),V(M(Y),{key:0,label:i.value.enabled?`Pause schedule`:`Resume schedule`,severity:`secondary`,outlined:``,disabled:!!M(xC)(i.value),title:M(xC)(i.value)||void 0,loading:o.value===`toggle`,onClick:T},{icon:N(()=>[U(J,{name:i.value.enabled?`pause`:`play`},null,8,[`name`])]),_:1},8,[`label`,`disabled`,`title`,`loading`])):G(``,!0),i.value&&M(r).can(M($).RunJobs)?(z(),V(M(Y),{key:1,class:`main-action`,label:`Run now`,disabled:!!M(TC)(i.value,i.value.repository_enabled,M(r).overview?.execution,M(r).connections),title:M(TC)(i.value,i.value.repository_enabled,M(r).overview?.execution,M(r).connections)||`Start a run and open it`,loading:o.value===`run`,onClick:ee},{icon:N(()=>[U(J,{name:`play`})]),_:1},8,[`disabled`,`title`,`loading`])):G(``,!0)]),_:1},8,[`title`,`description`]),a.value?(z(),B(`div`,ER,[U(J,{name:`loading`,spin:``}),t[3]||=H(`strong`,null,`Loading job`,-1)])):i.value?(z(),B(R,{key:2},[s.value?(z(),B(`p`,OR,A(s.value),1)):G(``,!0),U(sA),H(`section`,{class:k([`panel job-status-strip`,{disabled:!i.value.enabled}])},[U(rk,{status:M(uS)(i.value),label:M(dS)(M(uS)(i.value))},null,8,[`status`,`label`]),i.value.removed_at?(z(),B(`div`,kR,[H(`span`,null,`Removed `+A(M(tS)(i.value.removed_at)),1),H(`strong`,null,A(M(_C))+` Its runs stay in history.`,1)])):i.value.enabled?(z(),B(`div`,AR,[t[5]||=H(`span`,null,`Next run`,-1),H(`strong`,{title:M(eS)(i.value.next_run_at)},A(M(rS)(i.value.next_run_at,i.value.timezone)),9,jR),H(`small`,null,A(M(tS)(i.value.next_run_at)),1)])):i.value.cron?(z(),B(`div`,NR,[t[7]||=H(`span`,null,`Schedule paused`,-1),H(`strong`,null,A(i.value.repository_enabled?M(TC)(i.value,!0,M(r).overview?.execution,M(r).connections)?`Resume the schedule for automatic runs.`:`Run now still works. Resume the schedule for automatic runs.`:`Resume the repository before starting runs or resuming this schedule.`),1)])):(z(),B(`div`,MR,[t[6]||=H(`span`,null,`No schedule`,-1),H(`strong`,null,A(i.value.triggers.length?`Runs when a webhook or Run now starts it`:`Runs only when you choose Run now`),1)])),H(`div`,PR,[t[8]||=H(`span`,null,`Last run`,-1),h.value?(z(),V(n,{key:0,to:`/runs/${h.value.id}`,class:`job-last-run`,title:`${M($x)(h.value.scheduled_for)} · ${M(eS)(h.value.scheduled_for)}`},{default:N(()=>[U(rk,{status:h.value.status},null,8,[`status`]),W(` #`+A(h.value.id)+` · `+A(M(tS)(h.value.scheduled_for)),1)]),_:1},8,[`to`,`title`])):(z(),B(`strong`,FR,`Not yet`))]),M(vS)(i.value.grant_status)?(z(),V(n,{key:4,to:{hash:`#access`},class:`job-status-action`},{default:N(()=>[U(rk,{status:i.value.grant_status,label:M(_S)(i.value.grant_status)},null,8,[`status`,`label`]),t[9]||=W(` Review access `,-1),U(J,{name:`arrow-right`})]),_:1})):G(``,!0),i.value.repository_enabled?G(``,!0):(z(),B(`span`,IR,[U(J,{name:`alert-outline`}),t[10]||=W(` Repository paused`,-1)]))],2),H(`div`,LR,[H(`div`,RR,[i.value.recent_runs.length?(z(),V(HN,{key:0,runs:i.value.recent_runs},null,8,[`runs`])):G(``,!0),H(`section`,zR,[H(`div`,BR,[t[12]||=H(`h2`,null,`Recent runs`,-1),U(n,{to:{path:`/runs`,query:{job:i.value.id}}},{default:N(()=>[...t[11]||=[W(`All runs`,-1)]]),_:1},8,[`to`])]),i.value.recent_runs.length?(z(),B(`div`,VR,[(z(!0),B(R,null,I(i.value.recent_runs.slice(0,10),e=>(z(),V(sF,{key:e.id,run:e,"show-job":!1},null,8,[`run`]))),128))])):(z(),B(`div`,HR,[U(J,{name:`history`}),t[13]||=H(`strong`,null,`No runs yet`,-1),t[14]||=H(`span`,null,`Use Run now to try the job, or wait for its schedule.`,-1)]))]),H(`section`,UR,[H(`div`,WR,[H(`div`,null,[t[18]||=H(`h2`,null,`Skill`,-1),H(`p`,GR,[i.value.skill_url?(z(),B(`a`,{key:0,href:i.value.skill_url,target:`_blank`,rel:`noopener noreferrer`,class:`job-skill-source`,title:`Open this file on GitHub at this commit`},[i.value.skill_repository?(z(),B(R,{key:0},[H(`code`,null,A(i.value.skill_repository),1),t[15]||=W(` / `,-1)],64)):G(``,!0),H(`code`,null,A(i.value.skill_path),1),t[16]||=W(` @ `,-1),H(`code`,null,A((i.value.skill_revision||i.value.repository_revision).slice(0,7)),1),U(J,{name:`open-in-new`})],8,KR)):(z(),B(R,{key:1},[H(`code`,null,A(i.value.skill_path),1),t[17]||=W(` @ `,-1),H(`code`,null,A((i.value.skill_revision||i.value.repository_revision).slice(0,7)),1)],64))])]),i.value.skill_text?(z(),B(`div`,qR,[H(`button`,{type:`button`,class:k({active:g.value===`rendered`}),"aria-pressed":g.value===`rendered`,onClick:t[0]||=e=>g.value=`rendered`},`Rendered`,10,JR),H(`button`,{type:`button`,class:k({active:g.value===`raw`}),"aria-pressed":g.value===`raw`,onClick:t[1]||=e=>g.value=`raw`},`Raw`,10,YR)])):G(``,!0)]),i.value.skill_text?(z(),B(R,{key:0},[g.value===`rendered`&&b.value.fields.length?(z(),B(`dl`,XR,[(z(!0),B(R,null,I(b.value.fields,e=>(z(),B(`div`,{key:e.key},[H(`dt`,null,A(e.key),1),H(`dd`,null,A(e.value),1)]))),128))])):G(``,!0),H(`div`,{ref_key:`skillFrame`,ref:v,class:k([`job-skill-frame`,{expanded:_.value,clipped:y.value&&!_.value}])},[g.value===`rendered`?(z(),B(`article`,{key:0,class:`markdown-body job-skill-body`,innerHTML:x.value},null,8,ZR)):(z(),B(`pre`,QR,A(i.value.skill_text),1))],2),y.value||_.value?(z(),B(`button`,{key:1,type:`button`,class:`job-skill-toggle`,"aria-expanded":_.value,onClick:t[2]||=e=>_.value=!_.value},[U(J,{name:_.value?`chevron-up`:`chevron-down`},null,8,[`name`]),W(A(_.value?`Show less`:`Show full skill`),1)],8,$R)):G(``,!0),i.value.skill_truncated?(z(),B(`p`,ez,`The file is long, so only its start is shown here. Runs read the whole file.`)):G(``,!0)],64)):(z(),B(`div`,tz,[U(J,{name:`file-code-outline`}),t[19]||=H(`strong`,null,`Skill not loaded yet`,-1),t[20]||=H(`span`,null,`Sync the repository to see the skill here.`,-1)]))]),i.value.capabilities.length?(z(),B(`section`,nz,[H(`div`,rz,[H(`div`,null,[t[21]||=H(`h2`,null,`Access and connections`,-1),H(`p`,null,A(m.value),1)]),U(ZT,{page:M(Fx).SecurityModel,section:`who-grants-what`},{default:N(()=>[...t[22]||=[W(`How access works`,-1)]]),_:1},8,[`page`])]),M(r).can(M($).ReviewCapabilities)?(z(),V(zA,{key:0,job:i.value,heading:!1,onReviewed:S},null,8,[`job`])):(z(),B(`div`,iz,[(z(!0),B(R,null,I(i.value.capabilities,e=>(z(),B(`div`,{key:e.id,class:`job-capability-detail`},[H(`div`,null,[H(`strong`,null,A(e.binding),1),H(`span`,null,A(M(mS)(e.kind))+` · `+A(e.required?`Required`:`Optional`),1)]),H(`div`,az,[(z(!0),B(R,null,I(e.requested_tools,e=>(z(),B(`span`,{key:e},A(e),1))),128)),e.requested_tools.length?G(``,!0):(z(),B(`small`,oz,`No tool list. It can use the whole connection`))]),H(`span`,sz,A(e.connection_name||`No connection selected`),1),U(rk,{status:e.grant_status,label:M(_S)(e.grant_status)},null,8,[`status`,`label`])]))),128))]))])):G(``,!0),i.value.triggers.length?(z(),V(wP,{key:2,"job-id":i.value.id,"can-manage":M(r).can(M($).ManageTriggers)},null,8,[`job-id`,`can-manage`])):G(``,!0),U(UP,{limits:i.value.limits,"can-edit":i.value.can_edit_limits,description:`Runs of this job use these. The next run picks up a change.`,"inherited-from":`the workspace limit`,saving:l.value,error:u.value,onSave:C},null,8,[`limits`,`can-edit`,`saving`,`error`])]),H(`aside`,cz,[t[41]||=H(`h2`,null,`Details`,-1),H(`dl`,null,[H(`div`,null,[t[23]||=H(`dt`,null,`Repository`,-1),H(`dd`,null,[U(n,{to:`/repositories/${i.value.repository_id}`,class:`detail-link`},{default:N(()=>[W(A(i.value.repository),1)]),_:1},8,[`to`])])]),H(`div`,null,[t[26]||=H(`dt`,null,`Defined in`,-1),H(`dd`,null,[t[24]||=H(`code`,null,`.secondshift.yaml`,-1),t[25]||=W(` → `,-1),H(`code`,null,A(i.value.key),1)])]),H(`div`,null,[t[27]||=H(`dt`,null,`Schedule`,-1),i.value.cron?(z(),B(`dd`,{key:0,title:i.value.cron},[W(A(M(cS)(i.value.cron))+` `,1),H(`span`,uz,`· `+A(i.value.timezone),1)],8,lz)):(z(),B(`dd`,dz,A(i.value.triggers.length?`None. A webhook or Run now starts it.`:`Manual only. Start it with Run now.`),1))]),i.value.triggers.length?(z(),B(`div`,fz,[...t[28]||=[H(`dt`,null,`Triggers`,-1),H(`dd`,null,[H(`a`,{href:`#triggers`,class:`detail-link`},`Webhook`)],-1)]])):G(``,!0),i.value.open_pull_request?(z(),B(`div`,pz,[t[32]||=H(`dt`,null,`Changes`,-1),i.value.pull_requests_allowed?(z(),B(`dd`,mz,`Opens a draft pull request`)):i.value.can_open_pull_requests?(z(),B(`dd`,gz,[t[30]||=W(`Asks for a draft pull request. An owner must turn on `,-1),U(n,{to:{path:`/repositories/${i.value.repository_id}`,hash:`#draft-pull-requests`},class:`detail-link`},{default:N(()=>[...t[29]||=[W(`Draft pull requests`,-1)]]),_:1},8,[`to`]),t[31]||=W(` for the repository. GitHub needs Contents and Pull requests write access.`,-1)])):(z(),B(`dd`,hz,`Asks for a draft pull request, but local repositories cannot open one. Each run's changes are kept as a download.`))])):G(``,!0),i.value.open_issues?(z(),B(`div`,_z,[t[37]||=H(`dt`,null,`Issues`,-1),i.value.issues_allowed?(z(),B(`dd`,vz,[W(`Opens up to `+A(M(Q)(i.value.open_issues.max,`issue`))+` per run`,1),i.value.open_issues.labels.length?(z(),B(R,{key:0},[t[33]||=W(`, labeled `,-1),(z(!0),B(R,null,I(i.value.open_issues.labels,(e,t)=>(z(),B(R,{key:e},[H(`code`,null,A(e),1),W(A(t<i.value.open_issues.labels.length-1?`, `:``),1)],64))),128))],64)):G(``,!0)])):i.value.can_open_pull_requests?(z(),B(`dd`,bz,[t[35]||=W(`Asks to open issues. An owner must turn on `,-1),U(n,{to:{path:`/repositories/${i.value.repository_id}`,hash:`#issues`},class:`detail-link`},{default:N(()=>[...t[34]||=[W(`Issues`,-1)]]),_:1},8,[`to`]),t[36]||=W(` for the repository. GitHub needs Issues write access.`,-1)])):(z(),B(`dd`,yz,`Asks to open issues, but local repositories cannot receive them. Proposed issues are listed on each run.`))])):G(``,!0),H(`div`,null,[t[38]||=H(`dt`,null,`Synced commit`,-1),H(`dd`,null,[H(`code`,null,A(i.value.repository_revision.slice(0,12)),1)])]),H(`div`,null,[t[39]||=H(`dt`,null,`History`,-1),H(`dd`,null,A(M(SS)(i.value.history)),1)]),H(`div`,null,[t[40]||=H(`dt`,null,`External access`,-1),H(`dd`,null,A(i.value.capabilities.length?M(Q)(i.value.capabilities.length,`connection`):`None requested`),1)])])])])],64)):(z(),B(`div`,DR,[U(J,{name:`alert-outline`}),t[4]||=H(`strong`,null,`Job unavailable`,-1),H(`span`,null,A(s.value),1)]))])}}}),Sz={class:`page`},Cz={class:`panel empty-state`},wz=P({__name:`NotFoundView`,setup(e){return(e,t)=>{let n=F(`RouterLink`);return z(),B(`div`,Sz,[U(qT,{compact:``,title:`Page not found`,description:`The link may be wrong, or the page was removed.`}),H(`div`,Cz,[U(J,{name:`alert-outline`}),t[1]||=H(`strong`,null,`Nothing here`,-1),t[2]||=H(`span`,null,`Check the address, or start again from the overview.`,-1),U(n,{to:`/`,class:`primary-action not-found-home`},{default:N(()=>[...t[0]||=[W(`Go to the overview`,-1)]]),_:1})])])}}});function Tz(e){let t=Math.max(e,1)/4,n=10**Math.floor(Math.log10(t)),r=Math.max(1,[1,2,5,10].map(e=>e*n).find(e=>e>=t)??1),i=Math.max(r,Math.ceil(e/r)*r);return Array.from({length:i/r+1},(e,t)=>t*r)}var Ez={class:`runs-chart-legend`,"aria-live":`polite`},Dz={class:`legend-period`},Oz=[`viewBox`,`aria-label`],kz={class:`runs-chart-grid`},Az=[`x2`,`y1`,`y2`],jz=[`x`,`y`],Mz={key:0,class:`runs-chart-weeks`},Nz=[`x1`,`x2`,`y2`],Pz=[`x`,`y`],Fz=[`x`,`y`],Iz=[`onMouseenter`],Lz=[`x`,`width`],Rz=[`x`,`y`,`width`,`height`],zz=[`x`,`y`],Bz={key:0,class:`runs-chart-empty`},Vz=200,Hz=32,Uz=8,Wz=P({__name:`RunsChart`,props:{days:{}},setup(e){let t=e,n=[{key:`succeeded`,label:`Succeeded`},{key:`failed`,label:`Failed`},{key:`canceled`,label:`Canceled`}],r=j(null),i=j(720),a=null;Zr(()=>{r.value&&(a=new ResizeObserver(([e])=>{e&&(i.value=Math.max(280,Math.round(e.contentRect.width)))}),a.observe(r.value))}),ei(()=>a?.disconnect());let o=j(null),s=q(()=>n.map(e=>({...e,count:o.value?o.value[e.key]:t.days.slice(p.value).reduce((t,n)=>t+n[e.key],0)}))),c=q(()=>o.value?new Date(`${o.value.day}T00:00:00`).toLocaleDateString(`en-GB`,{weekday:`short`,day:`numeric`,month:`short`}):`This week`),l=q(()=>Tz(Math.max(0,...t.days.map(e=>e.succeeded+e.failed+e.canceled)))),u=q(()=>l.value[l.value.length-1]??1),d=q(()=>(i.value-Hz)/Math.max(t.days.length,1)),f=q(()=>t.days.every(e=>e.succeeded+e.failed+e.canceled===0)),p=q(()=>Math.max(0,t.days.length-7));function m(e){return 176-e/u.value*168}let h=q(()=>t.days.map((e,r)=>{let i=Math.min(d.value*.56,28),a=Hz+r*d.value+(d.value-i)/2,o=r<p.value,s=o?[{key:`previous`,count:e.succeeded+e.failed+e.canceled}]:n.map(t=>({key:t.key,count:e[t.key]})),c=0,l=s.filter(e=>e.count>0).map(e=>{let t=c;return c+=e.count,{key:e.key,y:m(c),height:m(t)-m(c)}}),u=new Date(`${e.day}T00:00:00`),f=n.filter(t=>e[t.key]>0).map(t=>`${e[t.key]} ${t.label.toLowerCase()}`);return{day:e.day,source:e,x:a,width:i,segments:l,previous:o,label:r===t.days.length-1?`Today`:String(u.getDate()),showLabel:r===t.days.length-1||(t.days.length-1-r)%2==0,title:`${u.toLocaleDateString(`en-GB`,{weekday:`short`,day:`numeric`,month:`short`})} · ${f.join(`, `)||`no finished runs`}`}})),g=q(()=>Hz+p.value*d.value);return(t,n)=>(z(),B(`figure`,{ref_key:`figure`,ref:r,class:`runs-chart`},[H(`figcaption`,Ez,[H(`span`,Dz,A(c.value),1),(z(!0),B(R,null,I(s.value,e=>(z(),B(`span`,{key:e.key,class:k([`legend-item`,e.key])},[n[1]||=H(`span`,{class:`legend-dot`},null,-1),W(A(e.label),1),H(`strong`,null,A(e.count),1)],2))),128))]),(z(),B(`svg`,{viewBox:`0 0 ${i.value} ${Vz}`,height:Vz,role:`img`,"aria-label":`Finished runs per day over the last ${e.days.length} days`},[H(`g`,kz,[(z(!0),B(R,null,I(l.value,e=>(z(),B(`g`,{key:e},[H(`line`,{x1:Hz,x2:i.value,y1:m(e),y2:m(e)},null,8,Az),H(`text`,{x:22,y:m(e),"text-anchor":`end`,"dominant-baseline":`middle`},A(e),9,jz)]))),128))]),p.value>0?(z(),B(`g`,Mz,[H(`line`,{x1:g.value,x2:g.value,y1:Uz,y2:176},null,8,Nz),H(`text`,{x:g.value-8,y:12,"text-anchor":`end`,"dominant-baseline":`hanging`},`Previous week`,8,Pz),H(`text`,{x:g.value+8,y:12,"dominant-baseline":`hanging`},`This week`,8,Fz)])):G(``,!0),(z(!0),B(R,null,I(h.value,e=>(z(),B(`g`,{key:e.day,class:k([`runs-chart-day`,{previous:e.previous}]),onMouseenter:t=>o.value=e.source,onMouseleave:n[0]||=e=>o.value=null},[H(`title`,null,A(e.title),1),H(`rect`,{class:`runs-chart-hit`,x:e.x-(d.value-e.width)/2,y:Uz,width:d.value,height:168},null,8,Lz),(z(!0),B(R,null,I(e.segments,t=>(z(),B(`rect`,{key:t.key,class:k(t.key),x:e.x,y:t.y,width:e.width,height:Math.max(t.height-2,1),rx:`2`},null,10,Rz))),128)),e.showLabel?(z(),B(`text`,{key:0,x:e.x+e.width/2,y:194,"text-anchor":`middle`},A(e.label),9,zz)):G(``,!0)],42,Iz))),128))],8,Oz)),f.value?(z(),B(`p`,Bz,`No finished runs in the last `+A(e.days.length)+` days.`,1)):G(``,!0)],512))}}),Gz={class:`panel setup-checklist`,"aria-labelledby":`setup-heading`},Kz={class:`setup-heading`},qz=[`aria-current`],Jz={class:`setup-mark`},Yz={class:`setup-copy`},Xz={key:0,class:`setup-hint`},Zz={key:0,class:`setup-actions`},Qz=P({__name:`SetupChecklist`,props:{steps:{}},setup(e){let t=e,n=q(()=>t.steps.findIndex(e=>!e.done)),r=mC(),i=q(()=>t.steps.filter(e=>e.done).length);return(t,a)=>{let o=F(`RouterLink`);return z(),B(`section`,Gz,[H(`div`,Kz,[H(`div`,null,[a[1]||=H(`h2`,{id:`setup-heading`},`Get to your first run`,-1),H(`p`,null,A(i.value)+` of `+A(e.steps.length)+` done`,1)])]),H(`ol`,null,[(z(!0),B(R,null,I(e.steps,(e,t)=>(z(),B(`li`,{key:e.key,class:k({done:e.done,current:t===n.value,upcoming:!e.done&&t!==n.value}),"aria-current":t===n.value?`step`:void 0},[H(`span`,Jz,[e.done?(z(),V(J,{key:0,name:`check`})):(z(),B(R,{key:1},[W(A(t+1),1)],64))]),H(`div`,Yz,[H(`strong`,null,A(e.title),1),H(`span`,null,A(e.detail),1),t===n.value&&e.agentHint?(z(),B(`span`,Xz,[W(A(e.agentHint.lead)+` `,1),H(`button`,{type:`button`,class:`link-button`,onClick:a[0]||=e=>M(r).visible=!0},A(e.agentHint.link),1)])):G(``,!0)]),t===n.value&&e.actions.length?(z(),B(`div`,Zz,[(z(!0),B(R,null,I(e.actions,(e,t)=>(z(),V(o,{key:e.label,to:e.to,class:k(t===0?`primary-action`:`secondary-action`)},{default:N(()=>[U(J,{name:e.icon},null,8,[`name`]),W(` `+A(e.label),1)]),_:2},1032,[`to`,`class`]))),128))])):G(``,!0)],10,qz))),128))])])}}}),$z=P({__name:`StatCard`,props:{label:{},value:{},detail:{},delta:{},good:{type:Boolean},tone:{},to:{}},setup(e){return(t,n)=>(z(),V(li(e.to?`RouterLink`:`article`),{to:e.to,class:k([`stat-card`,[e.tone,{linked:e.to}]])},{default:N(()=>[H(`span`,null,[W(A(e.label),1),e.to?(z(),V(J,{key:0,name:`arrow-up-right`,class:`stat-arrow`})):G(``,!0)]),H(`strong`,null,A(e.value),1),H(`small`,null,[e.delta?(z(),B(`em`,{key:0,class:k({good:e.good})},A(e.delta),3)):G(``,!0),W(A(e.detail),1)])]),_:1},8,[`to`,`class`]))}}),eB={class:`page`},tB={class:`stats-grid`},nB={key:0,class:`panel approval-inbox`},rB={class:`panel-heading`},iB={class:`approval-list`},aB={key:1,class:`agent-card`},oB={key:2,class:`panel runs-panel`},sB={class:`panel-heading`},cB={class:`content-grid`},lB={class:`panel span-two recent-runs-panel`},uB={class:`panel-heading`},dB={key:0,class:`data-list`},fB={key:1,class:`empty-state`},pB={class:`panel upcoming-panel`},mB={class:`panel-heading`},hB={key:0,class:`upcoming-list`},gB={class:`upcoming-main`},_B=[`title`],vB={key:1,class:`empty-state compact`},yB={key:3,id:`spend`,class:`panel spend-panel`},bB={class:`panel-heading`},xB={class:`spend-list`},SB={class:`activity-main`},CB={key:0,class:`spend-bar`,"aria-hidden":`true`},wB={key:1,class:`spend-share`},TB={class:`spend-value`},EB=Yw(P({__name:`OverviewView`,setup(e){let t=mC(),n=zw(),r=()=>n.runs.some(e=>Nw(e.status));dF(()=>r()?n.refreshRuns():n.refresh(),r);let i=q(()=>n.jobs.filter(e=>yS(e.grant_status))),a=q(()=>n.needs.find(e=>e.required&&e.status===`missing`)??null),o=q(()=>!!n.overview?.execution?.problem),s=q(()=>n.overview?.failing_jobs??[]),c=q(()=>n.setupChecklist);rr(()=>t.visible,e=>{e||n.refresh()});let l=j(!1),u=q(()=>{let e=n.user;return c.value||!n.overview||n.overview.has_agent_token||!e?.workspace_slug?!1:!l.value&&!jx(localStorage,e.email,e.workspace_slug)});function d(){n.user?.workspace_slug&&Mx(localStorage,n.user.email,n.user.workspace_slug),l.value=!0}let f=q(()=>n.jobs.filter(e=>e.enabled).sort((e,t)=>(e.next_run_at??`9999`).localeCompare(t.next_run_at??`9999`)).slice(0,5)),p=q(()=>{let e=n.overview;if(!e||e.repositories===0)return`No repositories connected yet.`;let t=f.value[0];return zS(s.value.map(e=>e.job),e.enabled_jobs,t?.next_run_at?rS(t.next_run_at,t.timezone):null)}),m=q(()=>{let e=n.overview;return e?{value:kS(e.spend_7d_usd,e.spend_partial),...LS(e.spend_7d_usd,e.spend_previous_7d_usd)}:{value:kS(0),delta:``,detail:``,good:!1}}),h=q(()=>n.overview?.spend_by_job??[]),g=q(()=>Math.max(...h.value.map(e=>e.spend_usd),0));function _(e){let t=n.overview?.spend_7d_usd??0;return t>0?`${Math.round(e/t*100)}% of the week`:``}let v=q(()=>RS(n.overview?.runs_7d??0,n.overview?.runs_previous_7d??0)),y=q(()=>n.overview?.run_days??[]),b=q(()=>y.value.some(e=>e.succeeded+e.failed+e.canceled>0)),x=q(()=>{let e=s.value.filter(e=>e.paused).length;return s.value.length?`${s.value.length===1?`Job`:`Jobs`} whose last run failed${e?`, ${e} paused`:``}`:n.runs.length?`No job's last run failed`:`Nothing has run yet`});return(e,r)=>{let l=F(`RouterLink`);return z(),B(`div`,eB,[c.value?(z(),V(qT,{key:0,title:`Overview`,description:`Finish these steps and your jobs start running on schedule.`})):(z(),V(qT,{key:1,title:`This week`,aside:M(jS)(new Date),description:p.value},{default:N(()=>[!o.value&&a.value&&M(n).can(M($).AddConnections)?(z(),V(l,{key:0,to:{path:`/connections`,query:{binding:a.value.binding}},class:`primary-action`},{default:N(()=>[U(J,{name:`link-plus`}),W(` Connect `+A(a.value.binding),1)]),_:1},8,[`to`])):!o.value&&i.value[0]&&M(n).can(M($).ReviewCapabilities)?(z(),V(l,{key:1,to:{path:`/jobs`,query:{review:String(i.value[0].id)}},class:`primary-action`},{default:N(()=>[U(J,{name:`shield-key-outline`}),r[1]||=W(` Review access`,-1)]),_:1},8,[`to`])):!o.value&&!M(n).repositories.length&&M(n).canAddLocalRepositories?(z(),V(l,{key:2,to:`/repositories/new`,class:`primary-action`},{default:N(()=>[U(J,{name:`plus`}),r[2]||=W(` Add repository`,-1)]),_:1})):G(``,!0)]),_:1},8,[`aside`,`description`])),c.value?(z(),V(Qz,{key:2,steps:c.value},null,8,[`steps`])):G(``,!0),!c.value||!M(n).overview?.execution?.needs_setup?(z(),V(sA,{key:3})):G(``,!0),c.value?G(``,!0):(z(),B(R,{key:4},[H(`section`,tB,[U($z,{label:`Needs attention`,value:s.value.length,detail:x.value,tone:s.value.length?`danger`:void 0,to:s.value.length?{path:`/jobs`,query:{state:`failing`}}:void 0},null,8,[`value`,`detail`,`tone`,`to`]),U($z,{label:`Runs`,value:M(n).overview?.runs_7d??0,delta:v.value.delta,detail:v.value.detail,to:{path:`/runs`,query:{period:`7d`}}},null,8,[`value`,`delta`,`detail`]),U($z,{label:`Model spend`,value:m.value.value,delta:m.value.delta,good:m.value.good,detail:m.value.detail,to:h.value.length?{hash:`#spend`}:void 0},null,8,[`value`,`delta`,`good`,`detail`,`to`]),U($z,{label:`Enabled jobs`,value:M(n).overview?.enabled_jobs??0,detail:`Across ${M(Q)(M(n).overview?.repositories??0,`repository`,`repositories`)}`,to:{path:`/jobs`,query:{state:`enabled`}}},null,8,[`value`,`detail`])]),i.value.length?(z(),B(`section`,nB,[H(`div`,rB,[r[4]||=H(`div`,null,[H(`h2`,null,`Needs approval`),H(`p`,null,`These jobs ask for access to a connection. They cannot run until you approve it.`)],-1),U(l,{to:{path:`/jobs`,query:{state:`review`}}},{default:N(()=>[...r[3]||=[W(`All jobs needing approval`,-1)]]),_:1})]),H(`div`,iB,[(z(!0),B(R,null,I(i.value,e=>(z(),V(l,{key:e.id,to:{path:`/jobs`,query:{review:String(e.id)}},class:`approval-row`},{default:N(()=>[H(`div`,null,[H(`strong`,null,A(e.name),1),H(`span`,null,[W(A(e.repository)+` · needs `,1),H(`code`,null,A(M(vC)(e).map(e=>e.binding).join(`, `)),1)])]),U(rk,{status:e.grant_status,label:M(_S)(e.grant_status)},null,8,[`status`,`label`]),U(J,{name:`chevron-right`})]),_:2},1032,[`to`]))),128))])])):G(``,!0),u.value?(z(),B(`div`,aB,[U(J,{name:`link-plus`}),r[5]||=H(`div`,null,[H(`strong`,null,`Use SecondShift from your editor`),H(`span`,null,`Your coding agent can check .secondshift.yaml changes, follow runs and read their reports over MCP.`)],-1),U(M(Y),{label:`Not now`,severity:`secondary`,text:``,size:`small`,onClick:d}),U(M(Y),{label:`Connect your agent`,severity:`secondary`,size:`small`,onClick:r[0]||=e=>M(t).visible=!0})])):G(``,!0),b.value?(z(),B(`section`,oB,[H(`div`,sB,[r[7]||=H(`div`,null,[H(`h2`,null,`Finished runs`),H(`p`,null,`Per day, by outcome. Gray bars are last week's totals.`)],-1),U(l,{to:{path:`/runs`,query:{period:`7d`}}},{default:N(()=>[...r[6]||=[W(`All runs`,-1)]]),_:1})]),U(Wz,{days:y.value},null,8,[`days`])])):G(``,!0),H(`section`,cB,[H(`article`,lB,[H(`div`,uB,[r[9]||=H(`h2`,null,`Recent runs`,-1),U(l,{to:`/runs`},{default:N(()=>[...r[8]||=[W(`All runs`,-1)]]),_:1})]),M(n).runs.length?(z(),B(`div`,dB,[(z(!0),B(R,null,I(M(n).runs.slice(0,6),e=>(z(),V(sF,{key:e.id,run:e,compact:``},null,8,[`run`]))),128))])):(z(),B(`div`,fB,[U(J,{name:`weather-night`}),r[10]||=H(`strong`,null,`No runs yet`,-1),r[11]||=H(`span`,null,`Runs appear here when a job starts.`,-1)]))]),H(`article`,pB,[H(`div`,mB,[r[13]||=H(`h2`,null,`Upcoming`,-1),U(l,{to:`/jobs`},{default:N(()=>[...r[12]||=[W(`All jobs`,-1)]]),_:1})]),f.value.length?(z(),B(`div`,hB,[(z(!0),B(R,null,I(f.value,e=>(z(),V(l,{key:e.id,to:`/jobs/${e.id}`,class:`upcoming-row`},{default:N(()=>[H(`div`,gB,[H(`strong`,null,A(e.name),1),H(`span`,{title:M(eS)(e.next_run_at)},A(M(rS)(e.next_run_at,e.timezone)),9,_B),H(`small`,null,A(M(tS)(e.next_run_at))+` · `+A(e.repository),1)]),U(J,{"aria-hidden":`true`,name:`chevron-right`,class:`row-chevron`})]),_:2},1032,[`to`]))),128))])):(z(),B(`div`,vB,[U(J,{name:`calendar-blank-outline`}),r[14]||=H(`strong`,null,`No job enabled`,-1),r[15]||=H(`span`,null,`Enable a job to put it on the schedule.`,-1)]))])]),h.value.length?(z(),B(`section`,yB,[H(`div`,bB,[r[17]||=H(`div`,null,[H(`h2`,null,`Model spend by job`),H(`p`,null,`Model spend, highest first. Open a job's most expensive runs.`)],-1),U(l,{to:{path:`/runs`,query:{period:`7d`,sort:`cost`}}},{default:N(()=>[...r[16]||=[W(`Most expensive runs`,-1)]]),_:1})]),H(`div`,xB,[(z(!0),B(R,null,I(h.value,e=>(z(),V(l,{key:e.job_id,to:{path:`/runs`,query:{job:e.job_id,period:`7d`,sort:`cost`}},class:k([`spend-row`,{single:h.value.length===1}]),title:`${e.job} · ${M(kS)(e.spend_usd,e.partial)} over ${M(Q)(e.runs,`run`)}`},{default:N(()=>[H(`div`,SB,[H(`strong`,null,A(e.job),1),H(`span`,null,A(e.repository)+` · `+A(M(Q)(e.runs,`run`)),1)]),h.value.length>1?(z(),B(`span`,CB,[H(`span`,{style:de({width:`${g.value>0?Math.max(2,e.spend_usd/g.value*100):0}%`})},null,4)])):G(``,!0),h.value.length>1?(z(),B(`span`,wB,A(_(e.spend_usd)),1)):G(``,!0),H(`strong`,TB,A(M(kS)(e.spend_usd,e.partial)),1),U(J,{name:`chevron-right`,class:`row-chevron`})]),_:2},1032,[`to`,`class`,`title`]))),128))])])):G(``,!0)],64))])}}}),[[`__scopeId`,`data-v-d8559045`]]),DB={class:`page`},OB={key:0,class:`list-toolbar`},kB={key:1,class:`panel table-panel`},AB={class:`data-list`},jB={class:`row-glyph`},MB=[`title`],NB={key:0,class:`repository-row-jobs`},PB={key:1,class:`repository-row-jobs`},FB=[`title`],IB={key:3,class:`repository-row-sync`},LB={key:2,class:`card-grid`},RB={class:`panel empty-state wide`},zB={key:4,class:`card-grid`},BB={class:`panel empty-state wide`},VB=P({__name:`RepositoriesView`,setup(e){let t=zw(),n=sj(),r=q(()=>t.canAddLocalRepositories||t.can($.AddGitHubRepositories)),i=[{value:``,label:`All`,matches:()=>!0},{value:`enabled`,label:`Active`,matches:e=>e.enabled},{value:`disabled`,label:`Paused`,matches:e=>!e.enabled},{value:`local`,label:`Local`,matches:e=>e.source_type===`local`},{value:`github`,label:`GitHub`,matches:e=>e.source_type===`github`}],a=q(()=>n.text(`q`)),o=q(()=>n.number(`account`)),s=q(()=>t.connections.filter(e=>e.kind===`source`&&e.provider===`github`).map(e=>({value:e.id,label:e.display_name.replace(/^GitHub · /,``)}))),c=q(()=>i.find(e=>e.value===n.text(`state`))?.value??``),l=q(()=>{let e=a.value.toLowerCase();return t.repositories.filter(t=>(o.value===null||t.github_connection_id===o.value)&&(!e||[t.display_name,t.full_name,t.local_path??``].some(t=>t.toLowerCase().includes(e))))}),u=q(()=>i.map(e=>({value:e.value,label:e.label,count:l.value.filter(e.matches).length})).filter(e=>![`local`,`github`].includes(e.value)||new Set(t.repositories.map(e=>e.source_type)).size>1||c.value===e.value)),d=q(()=>{let e=i.find(e=>e.value===c.value)?.matches??(()=>!0);return l.value.filter(e)}),f=q(()=>!!(a.value||c.value||o.value)),p=q(()=>{let e=t.repositories.length;if(e===0)return`No repositories connected yet.`;let n=t.repositories.reduce((e,t)=>e+t.job_count,0),r=t.repositories.filter(e=>!e.enabled).length,i=[Q(e,`repository`,`repositories`),Q(n,`job`)];return r&&i.push(`${r} paused`),i.join(` · `)});return(e,i)=>{let l=F(`RouterLink`);return z(),B(`div`,DB,[U(qT,{compact:``,title:`Repositories`,description:p.value},{default:N(()=>[r.value&&M(t).repositories.length?(z(),V(l,{key:0,to:`/repositories/new`,class:`primary-action`},{default:N(()=>[U(J,{name:`plus`}),i[4]||=W(` Add repository`,-1)]),_:1})):G(``,!0)]),_:1},8,[`description`]),M(t).repositories.length>1||o.value?(z(),B(`div`,OB,[U(EE,{"model-value":a.value,placeholder:`Search repositories`,"onUpdate:modelValue":i[0]||=e=>M(n).update({q:e})},null,8,[`model-value`]),s.value.length>1||o.value?(z(),V(M(mx),{key:0,"model-value":o.value,options:s.value,"option-label":`label`,"option-value":`value`,placeholder:`All GitHub accounts`,"show-clear":``,class:`list-select`,"aria-label":`GitHub account`,"onUpdate:modelValue":i[1]||=e=>M(n).update({account:e})},null,8,[`model-value`,`options`])):G(``,!0),U(dA,{"model-value":c.value,options:u.value,label:`Repository state`,"onUpdate:modelValue":i[2]||=e=>M(n).update({state:e})},null,8,[`model-value`,`options`])])):G(``,!0),d.value.length?(z(),B(`section`,kB,[H(`div`,AB,[(z(!0),B(R,null,I(d.value,e=>(z(),V(l,{key:e.id,to:`/repositories/${e.id}`,class:`repository-row`},{default:N(()=>[H(`span`,jB,[U(J,{name:e.source_type===`local`?`folder-outline`:`github`},null,8,[`name`])]),H(`div`,{class:`repository-row-main`,title:e.local_path??void 0},[H(`strong`,null,A(e.display_name),1),H(`span`,null,A(e.source_type===`local`?`Local`:`GitHub`)+` · `+A(e.default_branch),1)],8,MB),e.revision?(z(),B(`span`,PB,A(M(Q)(e.job_count,`job`)),1)):(z(),B(`span`,NB,`No jobs`)),e.last_synced_at?(z(),B(`span`,{key:2,class:`repository-row-sync`,title:`${M($x)(e.last_synced_at)} · ${M(eS)(e.last_synced_at)}`},`Synced `+A(M(tS)(e.last_synced_at)),9,FB)):(z(),B(`span`,IB,`Not synced`)),e.enabled&&!e.revision?(z(),V(rk,{key:4,status:`warning`,label:`Needs config`,title:`No valid .secondshift.yaml has synced yet`})):(z(),V(rk,{key:5,status:e.enabled?`enabled`:`disabled`,label:e.enabled?`Active`:`Paused`},null,8,[`status`,`label`])),U(J,{name:`chevron-right`,class:`row-chevron`})]),_:2},1032,[`to`]))),128))])])):M(t).repositories.length&&f.value?(z(),B(`section`,LB,[H(`article`,RB,[U(J,{name:`filter-remove-outline`}),i[5]||=H(`strong`,null,`No repositories match these filters`,-1),U(M(Y),{label:`Clear filters`,severity:`secondary`,text:``,size:`small`,onClick:i[3]||=e=>M(n).update({q:null,state:null,account:null})})])])):!M(t).repositories.length&&r.value?(z(),V(QE,{key:3})):M(t).repositories.length?G(``,!0):(z(),B(`section`,zB,[H(`article`,BB,[U(J,{name:`source-branch-plus`}),i[6]||=H(`strong`,null,`No repositories yet`,-1),i[7]||=H(`span`,null,`Workspace owners add repositories.`,-1)])]))])}}});function HB(e){return Z(`/tasks`,e)}var UB=Sc(`tasks`,{state:()=>({submitting:!1,error:null}),actions:{async submit(e){this.submitting=!0,this.error=null;try{let t=await HB(e),n=zw();n.includeRecentRun(t.run);try{await n.refreshRuns()}catch{}return t}catch(e){throw this.error=X(e,`Unable to submit this task`),e}finally{this.submitting=!1}}}});function WB(e,t){return Z(`/skills/inspect`,{repository:e.repository,path:e.path,ref:e.ref||null,...t?{repository_id:t}:{}})}var GB=/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/,KB=`SKILL.md`;function qB(e){let t=e.trim().replace(/\/+$/,``);if(GB.test(t))return{repository:t};let n;try{n=new URL(t)}catch{return null}let r=n.hostname.toLowerCase(),i=n.pathname.split(`/`).filter(Boolean).map(decodeURIComponent);if(r===`raw.githubusercontent.com`&&i.length>=4)return{repository:`${i[0]}/${i[1]}`,ref:i[2],path:JB(i.slice(3))};if(r!==`github.com`&&r!==`www.github.com`||i.length<2)return null;let a=`${i[0]}/${i[1].replace(/\.git$/,``)}`;return i.length>=4&&(i[2]===`blob`||i[2]===`tree`)?{repository:a,ref:i[3],path:i.length>4?JB(i.slice(4)):KB}:{repository:a}}function JB(e){return e[e.length-1]===KB?e.join(`/`):[...e,KB].join(`/`)}function YB(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``).slice(0,60)||`skill`}function XB(e){let t=[`version: 1`,`jobs:`,` ${YB(e.name)}:`,` name: ${JSON.stringify(e.name)}`,` skill: ${e.path}`,` skill_source:`,` repository: ${e.repository}`,` ref: ${e.commitSha}`,` schedule: "0 9 * * 1"`];if(e.mcps.length){t.push(` requires:`,` mcps:`);for(let n of e.mcps)t.push(` - binding: ${n.binding}`,` tools: [${n.tools.join(`, `)}]`)}return`${t.join(`
2098
+ `)}\n`}var ZB={class:`external-skill`},QB={class:`task-field`},$B={class:`external-skill-grid`},eV={class:`task-field`},tV={class:`task-field`},nV={key:0,class:`external-skill-check`},rV={key:1,class:`task-error`,role:`alert`},iV={key:2,class:`external-skill-preview`,"aria-label":`Checked skill`},aV={class:`external-skill-heading`},oV={key:0},sV=[`href`],cV={class:`external-skill-meta`},lV=[`title`],uV={key:0,class:`external-skill-needs`},dV={class:`external-skill-need-name`},fV={key:0},pV={key:1},mV=[`title`],hV={key:1,class:`external-skill-none`},gV={class:`external-skill-text`},_V={key:0},vV={class:`external-skill-note`},yV=Yw(P({__name:`ExternalSkillPicker`,props:xi({repositoryId:{},initial:{},disabled:{type:Boolean}},{inspection:{required:!0},inspectionModifiers:{}}),emits:[`update:inspection`],setup(e){let t=e,n=Vi(e,`inspection`),r=j(t.initial?.repository??``),i=j(t.initial?.path??``),a=j(t.initial?.ref??``),o=j(!1),s=j(null),c=q(()=>({repository:r.value.trim(),path:i.value.trim(),ref:a.value.trim()})),l=q(()=>!!(c.value.repository&&c.value.path)&&!o.value&&!t.disabled);rr(c,()=>{n.value=null,s.value=null});function u(){let e=qB(r.value);e?.repository&&e.repository!==r.value.trim()&&(r.value=e.repository,e.path&&(i.value=e.path),e.ref&&(a.value=e.ref))}function d(){window.setTimeout(u)}async function f(){if(u(),!l.value)return;o.value=!0,s.value=null;let e=c.value;try{let r=await WB(e,t.repositoryId);JSON.stringify(e)===JSON.stringify(c.value)&&(n.value=r)}catch(e){s.value=X(e,`Unable to read this skill`)}finally{o.value=!1}}let p={ready:`Ready`,needs_approval:`Needs approval`,unavailable:`Unavailable`,missing:`Not connected`};return Zr(()=>{t.initial?.repository&&t.initial.path&&f()}),(t,c)=>(z(),B(`div`,ZB,[H(`div`,QB,[c[3]||=H(`label`,{for:`external-skill-repository`},`GitHub repository`,-1),U(M(ib),{id:`external-skill-repository`,modelValue:r.value,"onUpdate:modelValue":c[0]||=e=>r.value=e,required:``,autofocus:``,maxlength:`300`,spellcheck:`false`,autocomplete:`off`,placeholder:`owner/name or a link to a SKILL.md`,"aria-describedby":`external-skill-help`,disabled:e.disabled,onBlur:u,onPaste:d},null,8,[`modelValue`,`disabled`]),c[4]||=H(`small`,{id:`external-skill-help`},`A public repository. Paste a GitHub link to fill in the path and branch.`,-1)]),H(`div`,$B,[H(`div`,eV,[c[5]||=H(`label`,{for:`external-skill-path`},`Skill path`,-1),U(M(ib),{id:`external-skill-path`,modelValue:i.value,"onUpdate:modelValue":c[1]||=e=>i.value=e,required:``,maxlength:`500`,spellcheck:`false`,autocomplete:`off`,placeholder:`skills/triage/SKILL.md`,disabled:e.disabled},null,8,[`modelValue`,`disabled`])]),H(`div`,tV,[c[6]||=H(`label`,{for:`external-skill-ref`},[W(`Branch, tag or commit `),H(`span`,null,`Optional`)],-1),U(M(ib),{id:`external-skill-ref`,modelValue:a.value,"onUpdate:modelValue":c[2]||=e=>a.value=e,maxlength:`200`,spellcheck:`false`,autocomplete:`off`,placeholder:`Default branch`,disabled:e.disabled},null,8,[`modelValue`,`disabled`])])]),n.value?G(``,!0):(z(),B(`div`,nV,[U(M(Y),{type:`button`,label:`Check skill`,severity:`secondary`,loading:o.value,disabled:!l.value,onClick:f},{icon:N(()=>[U(J,{name:`magnify`})]),_:1},8,[`loading`,`disabled`]),c[7]||=H(`span`,null,`Pins the skill to a commit and shows what it asks for. Nothing runs yet.`,-1)])),s.value?(z(),B(`p`,rV,[U(J,{name:`alert-circle-outline`}),H(`span`,null,A(s.value),1)])):G(``,!0),n.value?(z(),B(`section`,iV,[H(`div`,aV,[H(`div`,null,[H(`strong`,null,A(n.value.name||n.value.path),1),n.value.description?(z(),B(`p`,oV,A(n.value.description),1)):G(``,!0)]),H(`a`,{href:n.value.url,target:`_blank`,rel:`noopener noreferrer`,class:`detail-link`},[c[8]||=W(`GitHub `,-1),U(J,{name:`open-in-new`})],8,sV)]),H(`p`,cV,[U(J,{name:`lock-outline`}),H(`span`,null,[W(A(n.value.repository)+` at `,1),H(`code`,{title:n.value.commit_sha},A(n.value.commit_sha.slice(0,7)),9,lV),W(` · `+A(M(Q)(n.value.file_count,`file`))+` · `+A(M(DS)(n.value.size_bytes)),1)])]),c[11]||=H(`h3`,null,`What it asks for`,-1),n.value.needs.length?(z(),B(`ul`,uV,[(z(!0),B(R,null,I(n.value.needs,e=>(z(),B(`li`,{key:e.binding},[H(`span`,dV,[H(`code`,null,A(e.binding),1),e.tools.length?(z(),B(`span`,fV,A(e.tools.join(`, `)),1)):(z(),B(`span`,pV,`Any tool`))]),H(`span`,{class:k([`external-skill-status`,e.status]),title:e.detail},A(p[e.status]),11,mV),H(`small`,null,A(e.origin===`declared`?`Listed in its allowed tools.`:`Mentioned in the skill.`)+` `+A(e.detail),1)]))),128))])):(z(),B(`p`,hV,`It names no MCP tools. If the run needs access it does not have, it says so on the run page.`)),H(`details`,gV,[H(`summary`,null,[U(J,{name:`chevron-right`}),c[9]||=W(`Read SKILL.md`,-1)]),H(`pre`,null,A(n.value.text),1),n.value.text_truncated?(z(),B(`small`,_V,`Only the start is shown. Open it on GitHub to read the rest.`)):G(``,!0)]),H(`p`,vV,[U(J,{name:`shield-check-outline`}),c[10]||=H(`span`,null,[W(`The skill's folder is mounted read-only at `),H(`code`,null,`/skill`),W(`. Commands still run without network, and the run gets only the tools you select below.`)],-1)])])):G(``,!0)]))}}),[[`__scopeId`,`data-v-de652268`]]),bV={class:`task-context`},xV={class:`task-lead`},SV=[`disabled`],CV={class:`task-source`,role:`group`,"aria-label":`Instruction source`},wV=[`aria-pressed`,`disabled`],TV=[`aria-pressed`,`disabled`],EV=[`aria-pressed`,`disabled`],DV={key:1,class:`task-field`},OV={class:`task-field`},kV={for:`task-input`},AV={key:0},jV={id:`task-input-help`},MV={class:`task-options`},NV={class:`task-option`},PV={class:`task-option-value`},FV={class:`task-settings-grid`},IV={class:`task-field`},LV={class:`task-field`},RV={class:`task-field task-start-field`},zV={class:`task-option`},BV={class:`task-option-value`},VV={class:`task-access`},HV={class:`task-connection-heading`},UV={class:`task-tool-grid`},WV=[`onUpdate:modelValue`,`value`],GV={key:0,class:`task-delivery`},KV={class:`task-choice task-pull-request`},qV={id:`task-pull-request-help`,class:`task-access-note`},JV={key:1,class:`task-delivery`},YV=[`value`],XV={key:2,class:`task-error`,role:`alert`},ZV={class:`task-footer-note`},QV=Yw(P({__name:`TaskSubmissionForm`,props:{repositoryId:{},repositoryName:{},defaultBranch:{},allowsPullRequests:{type:Boolean},initialSkill:{}},emits:[`cancel`],setup(e,{emit:t}){let n=e,r=t,i=zw(),a=UB();a.error=null;let o=Zg(),s=j(!0),c=j(n.initialSkill?`external`:`text`),l=j(null),u=j(``),d=j(``),f=j(``),p=j(``),m=j(``),h=j({}),g=j([]),_=j(!1),v=j([]),y=q(()=>[...new Set(i.jobs.filter(e=>e.repository_id===n.repositoryId).map(e=>e.skill_path))]),b=q(()=>u.value.trim()||(c.value===`external`?CS(l.value?.name||l.value?.path.split(`/`).slice(-2,-1)[0]||`Skill from GitHub`):c.value===`skill`?CS(d.value.trim().split(`/`).slice(-2,-1)[0]||`Repository task`):p.value.trim().split(`
2099
+ `)[0]?.replace(/^#+\s*/,``).trim().slice(0,80)||`Repository task`).slice(0,200)),x=q(()=>Object.values(h.value).reduce((e,t)=>e+t.length,0)),S=q(()=>!!(c.value===`external`?l.value:c.value===`skill`?d.value.trim():p.value.trim())&&!a.submitting);function C(e){v.value=y.value.filter(t=>t.toLowerCase().includes(e.query.toLowerCase()))}let w=j(crypto.randomUUID());rr([c,u,d,l,f,p,m,h,g,_],()=>{w.value=crypto.randomUUID(),a.error=null},{deep:!0});let T=q(()=>i.connections.filter(e=>e.binding_key&&e.status===`connected`&&!e.require_approval&&[`mcp`,`api`,`notification`].includes(e.kind))),ee=q(()=>T.value.filter(e=>e.kind!==`notification`));rr(ee,e=>{for(let t of e)h.value[t.binding_key]??=[]},{immediate:!0}),rr(l,e=>{for(let t of e?.needs??[])t.status===`ready`&&t.binding in h.value&&(h.value[t.binding]=[...new Set([...h.value[t.binding],...t.tools])])});let te=q(()=>T.value.filter(e=>e.kind===`notification`));function E(e){return ee.value.filter(t=>t.kind===e&&h.value[t.binding_key]?.length).map(e=>({binding:e.binding_key,tools:[...h.value[e.binding_key]],required:!0}))}async function ne(){if(S.value)try{let e=await a.submit({repository_id:n.repositoryId,definition:{name:b.value,...c.value===`skill`?{skill:d.value.trim()}:{},...c.value===`external`&&l.value?{skill:l.value.path,skill_source:{repository:l.value.repository,ref:l.value.commit_sha}}:{},requires:{mcps:E(`mcp`),apis:E(`api`)},notify:g.value.map(e=>({binding:e,required:!0}))},revision:f.value.trim()||null,input:p.value,not_before:m.value?new Date(m.value).toISOString():null,..._.value?{pull_request:!0}:{},idempotency_key:w.value});await o.push(`/runs/${e.run.id}`)}catch{}}return(t,n)=>(z(),V(M(By),{visible:s.value,"onUpdate:visible":n[13]||=e=>s.value=e,modal:``,header:`New task`,class:`task-composer`,closable:!M(a).submitting,"close-on-escape":!M(a).submitting,onAfterHide:n[14]||=e=>r(`cancel`)},{footer:N(()=>[H(`span`,ZV,[U(J,{name:`file-export-outline`}),n[37]||=W(` Review later in Runs`,-1)]),U(M(Y),{label:`Cancel`,severity:`secondary`,text:``,disabled:M(a).submitting,onClick:n[12]||=e=>s.value=!1},null,8,[`disabled`]),U(M(Y),{type:`submit`,form:`submit-repository-task`,label:`Queue task`,loading:M(a).submitting,disabled:!S.value,class:`main-action`},{icon:N(()=>[U(J,{name:`play`})]),_:1},8,[`loading`,`disabled`])]),default:N(()=>[H(`div`,bV,[U(J,{name:`source-repository`}),H(`span`,null,A(e.repositoryName),1),n[15]||=H(`span`,{class:`task-context-separator`},`/`,-1),n[16]||=H(`span`,null,`One-time run`,-1)]),H(`p`,xV,[n[18]||=W(`Give this repository a one-time task. Review the result in Runs. `,-1),U(ZT,{page:M(Fx).Tasks,class:`task-guide-link`},{default:N(()=>[...n[17]||=[W(`Tasks guide`,-1)]]),_:1},8,[`page`])]),H(`form`,{id:`submit-repository-task`,onSubmit:Fs(ne,[`prevent`])},[H(`fieldset`,{disabled:M(a).submitting,class:`task-fields`},[H(`div`,CV,[H(`button`,{type:`button`,"aria-pressed":c.value===`text`,disabled:M(a).submitting,onClick:n[0]||=e=>c.value=`text`},[U(J,{name:`pencil-outline`}),n[19]||=W(`Write a task`,-1)],8,wV),H(`button`,{type:`button`,"aria-pressed":c.value===`skill`,disabled:M(a).submitting,onClick:n[1]||=e=>c.value=`skill`},[U(J,{name:`book-open-variant-outline`}),n[20]||=W(`Use a skill`,-1)],8,TV),H(`button`,{type:`button`,"aria-pressed":c.value===`external`,disabled:M(a).submitting,onClick:n[2]||=e=>c.value=`external`},[U(J,{name:`github`}),n[21]||=W(`Skill from GitHub`,-1)],8,EV)]),c.value===`external`?(z(),V(yV,{key:0,inspection:l.value,"onUpdate:inspection":n[3]||=e=>l.value=e,"repository-id":e.repositoryId,initial:e.initialSkill,disabled:M(a).submitting},null,8,[`inspection`,`repository-id`,`initial`,`disabled`])):G(``,!0),c.value===`skill`?(z(),B(`div`,DV,[n[22]||=H(`label`,{for:`task-skill`},`Repository skill`,-1),y.value.length?(z(),V(M(Vj),{key:1,modelValue:d.value,"onUpdate:modelValue":n[5]||=e=>d.value=e,"input-id":`task-skill`,suggestions:v.value,dropdown:y.value.length>0,pt:{dropdown:{"aria-label":`Browse repository skills`}},"overlay-class":`task-skill-overlay`,"show-empty-message":!1,"empty-search-message":`Use this committed skill path.`,disabled:M(a).submitting,"input-props":{autofocus:!0,required:!0,maxlength:500,spellcheck:!1,autocomplete:`off`,"aria-describedby":`task-skill-help`},placeholder:`.agents/skills/review/SKILL.md`,class:`task-skill-picker`,onComplete:C},null,8,[`modelValue`,`suggestions`,`dropdown`,`disabled`])):(z(),V(M(ib),{key:0,id:`task-skill`,modelValue:d.value,"onUpdate:modelValue":n[4]||=e=>d.value=e,required:``,autofocus:``,maxlength:`500`,spellcheck:`false`,autocomplete:`off`,"aria-describedby":`task-skill-help`,placeholder:`.agents/skills/review/SKILL.md`,class:`task-skill-path`},null,8,[`modelValue`])),n[23]||=H(`small`,{id:`task-skill-help`},`A SKILL.md file committed to this repository.`,-1)])):G(``,!0),H(`div`,OV,[H(`label`,kV,[W(A(c.value===`text`?`What should this task do?`:`What should this run focus on?`)+` `,1),c.value===`text`?G(``,!0):(z(),B(`span`,AV,`Optional`))]),U(M(fD),{id:`task-input`,modelValue:p.value,"onUpdate:modelValue":n[6]||=e=>p.value=e,autofocus:c.value===`text`,rows:c.value===`text`?6:4,required:c.value===`text`,maxlength:`16000`,"aria-describedby":`task-input-help`,placeholder:`Review the installation steps. Flag anything a new user would get stuck on.`},null,8,[`modelValue`,`autofocus`,`rows`,`required`]),H(`small`,jV,A(c.value===`text`?`Describe the outcome you want and any constraints. No skill file is needed.`:`Add context for this run. The skill provides the base instructions.`),1)]),H(`div`,MV,[H(`details`,NV,[H(`summary`,null,[U(J,{name:`chevron-right`}),n[24]||=H(`span`,null,`Run settings`,-1),H(`span`,PV,A(f.value.trim()||e.defaultBranch),1)]),H(`div`,FV,[H(`div`,IV,[n[25]||=H(`label`,{for:`task-revision`},`Branch or commit`,-1),U(M(ib),{id:`task-revision`,modelValue:f.value,"onUpdate:modelValue":n[7]||=e=>f.value=e,maxlength:`255`,placeholder:e.defaultBranch,spellcheck:`false`},null,8,[`modelValue`,`placeholder`]),n[26]||=H(`small`,null,`The exact commit is pinned when you submit.`,-1)]),H(`div`,LV,[n[27]||=H(`label`,{for:`task-name`},[W(`Task name `),H(`span`,null,`Optional`)],-1),U(M(ib),{id:`task-name`,modelValue:u.value,"onUpdate:modelValue":n[8]||=e=>u.value=e,maxlength:`200`,placeholder:b.value},null,8,[`modelValue`,`placeholder`]),n[28]||=H(`small`,null,`A name to find this run later.`,-1)]),H(`div`,RV,[n[29]||=H(`label`,{for:`task-not-before`},[W(`Not before `),H(`span`,null,`Optional`)],-1),U(M(ib),{id:`task-not-before`,modelValue:m.value,"onUpdate:modelValue":n[9]||=e=>m.value=e,type:`datetime-local`},null,8,[`modelValue`]),n[30]||=H(`small`,null,`Your local time. Leave empty to start when capacity is available. Tasks run one at a time per repository.`,-1)])])]),H(`details`,zV,[H(`summary`,null,[U(J,{name:`chevron-right`}),n[31]||=H(`span`,null,`Tools and delivery`,-1),H(`span`,BV,[W(A(x.value?M(Q)(x.value,`tool`):`Repository only`),1),g.value.length?(z(),B(R,{key:0},[W(` · `+A(M(Q)(g.value.length,`delivery`,`deliveries`)),1)],64)):G(``,!0),_.value?(z(),B(R,{key:1},[W(` · Draft pull request`)],64)):G(``,!0)])]),H(`div`,VV,[n[35]||=H(`p`,null,`Repository tools are included. Add access only where this task needs it.`,-1),(z(!0),B(R,null,I(ee.value,e=>(z(),B(`div`,{key:e.binding_key,class:`task-connection`},[H(`div`,HV,[U($D,{provider:e.provider,fallback:e.provider===`github`?`github`:`server-outline`},null,8,[`provider`,`fallback`]),H(`strong`,null,A(e.display_name),1),H(`span`,null,A(h.value[e.binding_key]?.length||0)+` selected`,1)]),H(`div`,UV,[(z(!0),B(R,null,I(e.available_tools,t=>(z(),B(`label`,{key:t,class:`task-choice`},[Yn(H(`input`,{"onUpdate:modelValue":t=>h.value[e.binding_key]=t,type:`checkbox`,value:t},null,8,WV),[[Os,h.value[e.binding_key]]]),H(`span`,null,A(t),1)]))),128))])]))),128)),e.allowsPullRequests?(z(),B(`div`,GV,[n[33]||=H(`h3`,null,`Changes`,-1),H(`label`,KV,[Yn(H(`input`,{"onUpdate:modelValue":n[10]||=e=>_.value=e,type:`checkbox`,"aria-describedby":`task-pull-request-help`},null,512),[[Os,_.value]]),n[32]||=H(`span`,null,`Open a draft pull request with the changes`,-1)]),H(`small`,qV,`It targets `+A(f.value.trim()&&!/^[0-9a-f]{40}$/.test(f.value.trim())?f.value.trim():e.defaultBranch)+`. The report becomes its description.`,1)])):G(``,!0),te.value.length?(z(),B(`div`,JV,[n[34]||=H(`h3`,null,`Send the finished report`,-1),(z(!0),B(R,null,I(te.value,e=>(z(),B(`label`,{key:e.binding_key,class:`task-choice`},[Yn(H(`input`,{"onUpdate:modelValue":n[11]||=e=>g.value=e,type:`checkbox`,value:e.binding_key},null,8,YV),[[Os,g.value]]),H(`span`,null,A(e.display_name),1)]))),128))])):G(``,!0),n[36]||=H(`p`,{class:`task-access-note`},`Only connected services that allow tasks without approval are listed. Reports are always available in Runs.`,-1)])])]),M(a).error?(z(),B(`p`,XV,[U(J,{name:`alert-circle-outline`}),H(`span`,null,A(M(a).error),1)])):G(``,!0)],8,SV)],32)]),_:1},8,[`visible`,`closable`,`close-on-escape`]))}}),[[`__scopeId`,`data-v-9f136c11`]]),$V={class:`page repository-page`},eH={key:0,class:`panel empty-state`},tH={key:1,class:`panel empty-state`},nH={key:0,class:`page-error`},rH={key:1,class:`panel repository-alert warning`,role:`status`},iH={class:`setup-status-icon`},aH={class:`setup-copy`},oH={key:0},sH={key:2},cH={key:3},lH={key:4},uH={key:5},dH={class:`repository-setup-actions`},fH={key:4,class:`panel repository-alert warning`},pH={class:`panel repository-info-card`},mH={class:`panel-heading`},hH={class:`repository-statuses`},gH={class:`repository-metadata compact-grid`},_H={key:0,class:`full-row`},vH=[`aria-label`],yH=[`title`],bH=[`disabled`],xH={key:1,id:`draft-pull-requests`},SH={class:`auto-sync`,title:`Jobs and tasks can push a secondshift/run branch and open a draft. The GitHub App or token needs Contents and Pull requests write access.`},CH=[`disabled`],wH={key:2},TH=[`title`],EH=[`disabled`],DH={key:3,id:`issues`},OH={class:`auto-sync`,title:`Jobs with issues: true can open the issues their agent proposes. The GitHub App or token needs Issues write access.`},kH=[`disabled`],AH=[`title`],jH={class:`panel repository-jobs-panel`},MH={class:`panel-heading`},NH={key:1,class:`empty-state compact`},PH={key:6,class:`repository-danger`},FH={key:0},IH=Yw(P({__name:`RepositoryDetailView`,setup(e){let t=Qg(),n=Zg(),r=zw(),i=j(null),a=j(!0),o=j(null),s=j(null),c=j(!1),l=j(!1),u=j(!1),d=j(null),f=q(()=>[{label:`Validate configuration`,appIcon:`check-circle-outline`,command:w}]),p=Number(t.params.id),m=q(()=>t.query.added===`1`),h=q(()=>{let e=new Set(i.value?.jobs.map(e=>e.id)??[]);return r.jobs.filter(t=>e.has(t.id))}),g=q(()=>h.value.flatMap(e=>vC(e).map(t=>({job:e,capability:t})))),_=q(()=>h.value.flatMap(e=>e.capabilities.filter(e=>!e.required&&e.grant_status===`unconfigured`).map(t=>({job:e,capability:t})))),v=q(()=>h.value.filter(e=>uS(e)===`disabled`&&(e.grant_status===`approved`||e.grant_status===`not_required`))),y=q(()=>!i.value?.revision),b=q(()=>!y.value&&g.value.length===0&&v.value.length===0),x=q(()=>{let e=i.value;return e?`${e.source_type===`local`?`Local`:`GitHub`} · ${e.default_branch} · ${Q(e.jobs.length,`job`)}`:a.value?`Loading repository…`:`This repository could not be loaded`});async function S(){if(v.value.length){o.value=`enable-jobs`,s.value=null;try{await Promise.all(v.value.map(e=>dw(e.id,!0))),await Promise.all([r.refresh(),C()])}catch(e){s.value=X(e,`Unable to enable jobs`)}finally{o.value=null}}}async function C(){try{i.value=await mw(p),s.value=null}catch(e){s.value=X(e,`Unable to load repository`)}finally{a.value=!1}}async function w(){o.value=`validate`,s.value=null;try{let e=await gw(p);i.value&&(i.value.validation=e)}catch(e){s.value=X(e,`Validation failed`)}finally{o.value=null}}async function T(){o.value=`resync`,s.value=null;try{i.value=await _w(p),await r.refresh()}catch(e){s.value=X(e,`Synchronization failed`)}finally{o.value=null}}async function ee(){if(i.value){o.value=`toggle`,s.value=null;try{i.value=await vw(p,!i.value.enabled),await r.refresh()}catch(e){s.value=X(e,`Unable to change repository state`)}finally{o.value=null}}}async function te(){if(i.value){o.value=`auto-sync`,s.value=null;try{i.value=await yw(p,!i.value.auto_sync)}catch(e){s.value=X(e,`Unable to change auto-sync`)}finally{o.value=null}}}async function E(e,t){if(i.value){o.value=`pull-requests`,s.value=null;try{i.value=await bw(p,e,t)}catch(e){s.value=X(e,`Unable to change pull request settings`)}finally{o.value=null}}}async function ne(e){if(i.value){o.value=`issues`,s.value=null;try{i.value=await xw(p,e)}catch(e){s.value=X(e,`Unable to change issue settings`)}finally{o.value=null}}}let D=q(()=>i.value?.auto_sync?i.value.server_syncs?`On`:`Off on this server`:`Off`),re=q(()=>i.value?.auto_sync?i.value.server_syncs?`New commits on ${i.value.default_branch} apply within minutes.`:`Whoever runs this server has turned background sync off.`:`Press Resync to apply new commits.`);async function ie(){if(i.value){if(!l.value)l.value=!0;else{l.value=!1,o.value=`remove`,s.value=null;try{await Sw(p),await r.refresh(),await n.push(`/repositories`)}catch(e){s.value=X(e,`Unable to remove repository`)}finally{o.value=null}}}}async function O(){i.value?.local_path&&(await navigator.clipboard.writeText(i.value.local_path),c.value=!0,window.setTimeout(()=>{c.value=!1},1600))}return Zr(C),(e,t)=>{let n=F(`RouterLink`);return z(),B(`div`,$V,[U(qT,{compact:``,title:i.value?.display_name??`Repository`,description:x.value,parent:{label:`Repositories`,to:`/repositories`}},{default:N(()=>[i.value?(z(),B(R,{key:0},[i.value.enabled&&M(r).can(M($).RunJobs)?(z(),V(M(Y),{key:0,label:`New task`,onClick:t[0]||=e=>u.value=!u.value},{icon:N(()=>[U(J,{name:`play`})]),_:1})):G(``,!0),M(r).can(M($).ResyncRepositories)?(z(),V(M(Y),{key:1,label:`Resync`,severity:`secondary`,outlined:``,loading:o.value===`resync`,title:`Import the committed manifest and skill definitions`,onClick:T},{icon:N(()=>[U(J,{name:`refresh`})]),_:1},8,[`loading`])):G(``,!0),M(r).can(M($).ChangeRepositoryState)?(z(),V(M(Y),{key:2,label:i.value.enabled?`Pause repository`:`Resume repository`,severity:`secondary`,outlined:``,loading:o.value===`toggle`,disabled:o.value!==null,title:`Pausing blocks scheduled jobs and new manual runs. Runs already in progress continue.`,onClick:ee},{icon:N(()=>[U(J,{name:i.value.enabled?`pause`:`play`},null,8,[`name`])]),_:1},8,[`label`,`loading`,`disabled`])):G(``,!0),U(M(Y),{label:`More`,severity:`secondary`,text:``,"aria-label":`More repository actions`,"aria-haspopup":`true`,"aria-controls":`repository-actions-menu`,loading:o.value===`validate`,onClick:t[1]||=e=>d.value?.toggle(e)},null,8,[`loading`]),U(M(mv),{id:`repository-actions-menu`,ref_key:`repositoryMenu`,ref:d,model:f.value,popup:``,class:`row-menu`},{item:N(({item:e,props:t})=>[H(`a`,K(t.action,{class:`row-menu-item`}),[U(J,{name:e.appIcon},null,8,[`name`]),W(A(e.label),1)],16)]),_:1},8,[`model`])],64)):G(``,!0)]),_:1},8,[`title`,`description`]),a.value?(z(),B(`div`,eH,[U(J,{name:`loading`,spin:``}),t[7]||=H(`strong`,null,`Inspecting repository`,-1)])):i.value?(z(),B(R,{key:2},[s.value?(z(),B(`p`,nH,A(s.value),1)):G(``,!0),i.value.enabled?G(``,!0):(z(),B(`section`,rH,[U(J,{name:`pause`}),t[9]||=H(`div`,null,[H(`strong`,null,`Repository paused`),H(`span`,null,`Scheduled jobs and new manual runs are blocked. Runs already in progress continue. Resuming preserves each job’s schedule setting.`)],-1),M(r).can(M($).ChangeRepositoryState)?(z(),V(M(Y),{key:0,label:`Resume repository`,severity:`secondary`,outlined:``,loading:o.value===`toggle`,disabled:o.value!==null,onClick:ee},{icon:N(()=>[U(J,{name:`play`})]),_:1},8,[`loading`,`disabled`])):G(``,!0)])),u.value&&i.value.enabled&&M(r).can(M($).RunJobs)?(z(),V(QV,{key:2,"repository-id":M(p),"repository-name":i.value.display_name,"default-branch":i.value.default_branch,"allows-pull-requests":i.value.allow_pull_requests,onCancel:t[2]||=e=>u.value=!1},null,8,[`repository-id`,`repository-name`,`default-branch`,`allows-pull-requests`])):G(``,!0),!b.value||m.value?(z(),B(`section`,{key:3,class:k([`panel repository-setup`,{complete:b.value}])},[H(`div`,iH,[U(J,{name:b.value?`check-decagram-outline`:`progress-check`},null,8,[`name`])]),H(`div`,aH,[H(`h2`,null,A(b.value?m.value?`Repository added and ready`:`This repository is ready`:`Finish setup`),1),y.value?(z(),B(`p`,oH,[t[10]||=W(` Commit a valid `,-1),H(`code`,null,A(i.value.config_path),1),W(` to `+A(i.value.default_branch)+` to define its jobs. `+A(i.value.auto_sync&&i.value.server_syncs?`It is picked up within minutes.`:`Then press Resync.`),1)])):G(``,!0),y.value&&i.value.validation.status!==`valid`?(z(),B(`p`,{key:1,class:k([`setup-problem`,i.value.validation.status])},A(i.value.validation.message),3)):g.value.length?(z(),B(`p`,sH,`Approve access for `+A(M(Q)(g.value.length,`required binding`))+` before its jobs can run.`,1)):v.value.length?(z(),B(`p`,cH,`Access is ready. Enable `+A(M(Q)(v.value.length,`job`))+` to start its schedule.`,1)):(z(),B(`p`,lH,`All required access is resolved and every ready job is enabled.`)),_.value.length&&M(r).can(M($).AddConnections)?(z(),B(`small`,uH,[t[11]||=W(` Optional: `,-1),U(n,{to:{path:`/connections`,query:M(NC)(_.value[0].job,_.value[0].capability)},class:`need-job`},{default:N(()=>[W(`connect `+A(_.value[0].capability.binding),1)]),_:1},8,[`to`]),_.value.length>1?(z(),B(R,{key:0},[W(` and `+A(_.value.length-1)+` more`,1)],64)):G(``,!0),t[12]||=W(`. Jobs run without it. `,-1)])):G(``,!0)]),H(`div`,dH,[g.value[0]&&M(r).can(M($).ReviewCapabilities)?(z(),V(n,{key:0,to:{path:`/jobs`,query:{review:String(g.value[0].job.id)}},class:`primary-action`},{default:N(()=>[U(J,{name:`shield-key-outline`}),t[13]||=W(` Review access`,-1)]),_:1},8,[`to`])):v.value.length&&M(r).can(M($).EnableJobs)?(z(),V(M(Y),{key:1,class:`main-action`,label:`Enable ${M(Q)(v.value.length,`job`)}`,loading:o.value===`enable-jobs`,onClick:S},{icon:N(()=>[U(J,{name:`play`})]),_:1},8,[`label`,`loading`])):G(``,!0)])],2)):G(``,!0),i.value.validation.needs_sync?(z(),B(`section`,fH,[U(J,{name:`source-commit`}),H(`div`,null,[t[17]||=H(`strong`,null,`New commits since the last sync`,-1),H(`span`,null,[t[14]||=W(`Job runs still use `,-1),H(`code`,null,A(i.value.validation.synced_revision.slice(0,7)),1),t[15]||=W(`; the repository is at `,-1),H(`code`,null,A(i.value.validation.current_revision?.slice(0,7)),1),t[16]||=W(`.`,-1)])]),M(r).can(M($).ResyncRepositories)?(z(),V(M(Y),{key:0,label:`Resync`,size:`small`,loading:o.value===`resync`,onClick:T},{icon:N(()=>[U(J,{name:`refresh`})]),_:1},8,[`loading`])):G(``,!0)])):i.value.validation.status!==`valid`&&!y.value?(z(),B(`section`,{key:5,class:k([`panel repository-alert`,i.value.validation.status])},[U(J,{name:i.value.validation.status===`warning`?`alert-outline`:`close-octagon-outline`},null,8,[`name`]),H(`div`,null,[H(`strong`,null,A(i.value.validation.status===`warning`?`Check this repository`:`Repository needs attention`),1),H(`span`,null,A(i.value.validation.message),1)])],2)):G(``,!0),H(`section`,pH,[H(`div`,mH,[t[18]||=H(`h2`,null,`Source`,-1),H(`div`,hH,[U(rk,{status:i.value.validation.status,title:i.value.validation.message},null,8,[`status`,`title`]),U(rk,{status:i.value.enabled?`enabled`:`disabled`,label:i.value.enabled?`Active`:`Paused`},null,8,[`status`,`label`])])]),H(`dl`,gH,[i.value.local_path?(z(),B(`div`,_H,[t[19]||=H(`dt`,null,`Path`,-1),H(`dd`,null,[H(`code`,null,A(i.value.local_path),1),H(`button`,{class:`copy-button`,type:`button`,"aria-label":c.value?`Copied`:`Copy path`,onClick:O},[U(J,{name:c.value?`check`:`content-copy`},null,8,[`name`])],8,vH)])])):G(``,!0),H(`div`,null,[t[20]||=H(`dt`,null,`Branch`,-1),H(`dd`,null,A(i.value.default_branch),1)]),H(`div`,null,[t[21]||=H(`dt`,null,`Auto-sync`,-1),H(`dd`,{class:`auto-sync`,title:re.value},[H(`span`,null,A(D.value),1),M(r).can(M($).ChangeRepositoryState)?(z(),B(`button`,{key:0,type:`button`,class:`link-button`,disabled:o.value===`auto-sync`,onClick:te},A(i.value.auto_sync?`Turn off`:`Turn on`),9,bH)):G(``,!0)],8,yH)]),i.value.can_open_pull_requests?(z(),B(`div`,xH,[t[22]||=H(`dt`,null,`Draft pull requests`,-1),H(`dd`,SH,[H(`span`,null,A(i.value.allow_pull_requests?`On`:`Off`),1),M(r).can(M($).AllowPullRequests)?(z(),B(`button`,{key:0,type:`button`,class:`link-button`,disabled:o.value===`pull-requests`,onClick:t[3]||=e=>E(!i.value.allow_pull_requests,!1)},A(i.value.allow_pull_requests?`Turn off`:`Turn on`),9,CH)):G(``,!0)])])):G(``,!0),i.value.can_open_pull_requests&&i.value.allow_pull_requests?(z(),B(`div`,wH,[t[23]||=H(`dt`,null,`CI on drafts`,-1),H(`dd`,{class:`auto-sync`,title:i.value.pull_request_ci?`CI runs on the first push. Only for repositories you trust.`:`The first push skips CI. Push a commit after review to run it.`},[H(`span`,null,A(i.value.pull_request_ci?`Runs at once`:`After review`),1),M(r).can(M($).AllowPullRequests)?(z(),B(`button`,{key:0,type:`button`,class:`link-button`,disabled:o.value===`pull-requests`,onClick:t[4]||=e=>E(!0,!i.value.pull_request_ci)},A(i.value.pull_request_ci?`Wait for review`:`Run at once`),9,EH)):G(``,!0)],8,TH)])):G(``,!0),i.value.can_open_pull_requests?(z(),B(`div`,DH,[t[24]||=H(`dt`,null,`Issues`,-1),H(`dd`,OH,[H(`span`,null,A(i.value.allow_issues?`On`:`Off`),1),M(r).can(M($).AllowIssues)?(z(),B(`button`,{key:0,type:`button`,class:`link-button`,disabled:o.value===`issues`,onClick:t[5]||=e=>ne(!i.value.allow_issues)},A(i.value.allow_issues?`Turn off`:`Turn on`),9,kH)):G(``,!0)])])):G(``,!0),H(`div`,null,[t[25]||=H(`dt`,null,`Synced commit`,-1),H(`dd`,null,[H(`code`,null,A(i.value.revision.slice(0,12)||`—`),1)])]),H(`div`,null,[t[26]||=H(`dt`,null,`Manifest`,-1),H(`dd`,null,[H(`code`,null,A(i.value.config_path),1)])]),H(`div`,null,[t[27]||=H(`dt`,null,`Last synced`,-1),H(`dd`,{title:`${M($x)(i.value.last_synced_at)} · ${M(eS)(i.value.last_synced_at)}`},A(M(tS)(i.value.last_synced_at)),9,AH)])])]),H(`section`,jH,[H(`div`,MH,[H(`div`,null,[t[30]||=H(`h2`,null,`Discovered jobs`,-1),H(`p`,null,[t[28]||=W(`Read from `,-1),H(`code`,null,A(i.value.config_path),1),t[29]||=W(` at the synced commit.`,-1)])]),U(n,{to:`/jobs`},{default:N(()=>[...t[31]||=[W(`All jobs`,-1)]]),_:1})]),h.value.length?(z(),V(oj,{key:0,jobs:h.value},null,8,[`jobs`])):(z(),B(`div`,NH,[U(J,{name:`calendar-search`}),t[32]||=H(`strong`,null,`No jobs discovered`,-1)]))]),M(r).can(M($).RemoveRepositories)?(z(),B(`section`,PH,[l.value?(z(),B(`span`,FH,`Remove `+A(i.value.display_name)+` from SecondShift? Its jobs stop running; run history is kept.`,1)):G(``,!0),U(M(Y),{label:l.value?`Confirm remove`:`Remove repository`,severity:`danger`,text:!l.value,size:`small`,loading:o.value===`remove`,onClick:ie},{icon:N(()=>[U(J,{name:`trash-can-outline`})]),_:1},8,[`label`,`text`,`loading`]),l.value?(z(),V(M(Y),{key:1,label:`Cancel`,severity:`secondary`,text:``,size:`small`,onClick:t[6]||=e=>l.value=!1})):G(``,!0)])):G(``,!0)],64)):(z(),B(`div`,tH,[U(J,{name:`alert-outline`}),t[8]||=H(`strong`,null,`Repository unavailable`,-1),H(`span`,null,A(s.value),1)]))])}}}),[[`__scopeId`,`data-v-1bb2e5e3`]]);function LH(e,t){if(!e.startsWith(`/outputs/`))return e;let n;try{n=decodeURIComponent(e.slice(9))}catch{return e}return!n||n.split(`/`).some(e=>!e||e===`.`||e===`..`)||/[\\?#\u0000-\u001f]/.test(n)?e:Iw(t,n)}var RH={class:`page run-detail-page`},zH={key:0,class:`panel empty-state`},BH={key:1,class:`panel empty-state`},VH={key:0,class:`page-error`},HH={class:`run-status-line`},UH=[`title`],WH={key:0,class:`run-stat-quiet`},GH=[`title`],KH={key:0,class:`run-headline run-failure-headline`},qH={key:1,class:`run-next-step`},JH={key:2,class:`run-headline run-active-note`},YH={key:3,class:`run-queue-help`},XH={class:`run-layout`},ZH={class:`run-main`},QH=[`open`],$H={class:`task-instructions-meta`},eU=[`innerHTML`],tU={key:1,class:`panel job-runs-panel run-access-panel`},nU={class:`run-access-needs`},rU={class:`run-access-service`},iU={key:0},aU={key:0,class:`run-details-muted`},oU={class:`run-details-muted run-access-next`},sU={key:2,class:`panel job-runs-panel`},cU={class:`panel-heading`},lU={class:`run-details-muted`},uU={key:0,class:`run-timeline`},dU=[`datetime`,`title`],fU={key:0,class:`pending`},pU={key:1,class:`empty-state compact`},mU={key:3,class:`panel job-runs-panel run-report-panel`},hU={class:`panel-heading`},gU={key:0},_U={key:0,class:`run-report-actions`},vU=[`href`],yU=[`innerHTML`],bU={key:1,class:`empty-state compact`},xU={key:4,class:`panel job-runs-panel run-files-panel`},SU={key:0,class:`run-files-changes`},CU={class:`run-file-line`},wU={class:`run-details-muted`},TU={key:0,class:`run-report-actions`},EU=[`href`],DU=[`href`],OU={key:1,class:`run-details-muted`},kU={key:0,class:`run-changed-files`},AU={key:0,class:`run-details-muted`},jU={key:1,class:`run-saved-files`},MU={class:`run-details-muted`},NU=[`href`],PU={key:5,class:`panel run-timeline-fold`},FU={class:`run-timeline`},IU=[`datetime`,`title`],LU={class:`panel run-details`},RU={key:1},zU={key:0},BU={key:1},VU={key:0},HU=[`href`],UU={key:1},WU=[`title`],GU=[`title`],KU=[`title`],qU=[`title`],JU={key:0},YU={class:`run-details-muted`},XU=[`href`],ZU={key:1,class:`run-details-muted`},QU={key:2},$U=[`title`],eW=[`title`],tW=[`href`],nW={key:1,class:`run-details-muted run-delivery-reason`},rW={key:2,class:`run-delivery-issues`},iW=[`href`],aW={key:1},oW={key:2,class:`run-details-muted`},sW={class:`run-details-muted`},cW={class:`run-output schedule-skill-yaml`},lW=2e3,uW=640,dW=Yw(P({__name:`RunDetailView`,setup(e){let t=zw(),n=Qg(),r=Zg(),i=j(null),a=j(!0),o=j(null),s=j(!1),c=j(!1),l=j(null),u=j(Date.now()),d=null,f=0,p=q(()=>Number(n.params.id)),m=q(()=>i.value?Nw(i.value.status):!1),h=q(()=>{let e=t.jobs.find(e=>e.id===i.value?.job_id);return e?TC(e,t.repositories.find(t=>t.id===e.repository_id)?.enabled??!0,t.overview?.execution,t.connections):``}),g=q(()=>m.value||!!i.value?.deliveries.some(Aw)),_={pending:`Sending`,retrying:`Retrying`,delivered:`Delivered`,skipped:`Skipped`,failed:`Failed`},v=new Set([`pull_request`,`issues`]);function y(e){return v.has(e.kind)?e.status===`pending`?m.value?`After the run`:`Opening`:e.status===`delivered`?`Opened`:_[e.status]:_[e.status]}let b=q(()=>i.value?`${i.value.job} · ${i.value.repository}`:a.value?`Loading run…`:`This run could not be loaded`),x=q(()=>i.value?AS(i.value,u.value):[]),S=q(()=>ES(i.value?.events[0]?.created_at??i.value?.created_at??new Date().toISOString())),C=q(()=>i.value?.submission_input?xR(i.value.submission_input):``),w=q(()=>i.value?.output_excerpt?xR(i.value.output_excerpt,e=>LH(e,p.value)):``),T=q(()=>i.value?.files.find(e=>e.name===`input`)??null),ee=q(()=>i.value?.files.find(e=>e.name===`output`)??null),te=q(()=>!!(i.value?.output_size_bytes&&i.value.output_size_bytes>i.value.output_excerpt.length)),E=q(()=>!!(i.value&&(i.value.changes||i.value.saved_files.length||i.value.skipped_files.length))),ne=q(()=>i.value?.status!==`succeeded`),D=q(()=>i.value?.status===`queued`?new Date(i.value.scheduled_for).getTime()>u.value?`Starts no earlier than ${$x(i.value.scheduled_for)}`:i.value.job_id===null?`Waiting for a repository slot or worker capacity. Tasks run one at a time per repository.`:`Waiting to start…`:`Running now · this page updates live`);async function re(){if(i.value){c.value=!0;try{await Ow(i.value.id),await se(),await t.refreshRuns()}catch(e){o.value=X(e,`Unable to cancel this task`)}finally{c.value=!1}}}async function ie(e){if(i.value){l.value=e.id;try{await kw(i.value.id,e.id),await se()}catch(e){o.value=X(e,`Unable to retry this delivery`)}finally{l.value=null}}}let O=j(null),ae=j(!1),oe=j(!1);rr(w,async()=>{await Fn(),oe.value=(O.value?.scrollHeight??0)>uW},{immediate:!0});async function se(){let e=++f;try{let t=await Dw(p.value);if(e!==f)return;i.value=t,o.value=null}catch(t){if(e!==f)return;o.value=X(t,`Unable to load run`)}finally{e===f&&(a.value=!1)}}function ce(){d!==null&&window.clearInterval(d),d=null}function le(){ce(),d=window.setInterval(()=>{u.value=Date.now(),document.hidden||se()},lW)}let ue=j(!1),de=j(!1),fe=q(()=>{let e=i.value?.skill_source;return!i.value||!e?``:XB({name:i.value.job,repository:e.repository,path:i.value.skill_path,commitSha:e.commit_sha,mcps:[]})});async function pe(){try{await navigator.clipboard.writeText(fe.value),de.value=!0,window.setTimeout(()=>{de.value=!1},2e3)}catch{}}let me=crypto.randomUUID();async function he(){if(i.value){s.value=!0,o.value=null;try{let e=i.value.job_id===null?await Mw(i.value.id,me):await jw(i.value.job_id);me=crypto.randomUUID(),i.value.job_id===null&&t.refreshRuns().catch(()=>void 0),await r.push(`/runs/${e.id}`)}catch(e){o.value=X(e,`Unable to start a new run`)}finally{s.value=!1}}}return rr(p,()=>{i.value=null,ae.value=!1,a.value=!0,se()},{immediate:!0}),rr(g,e=>e?le():ce()),ti(ce),(e,n)=>{let r=F(`RouterLink`);return z(),B(`div`,RH,[U(qT,{compact:``,title:`Run #${p.value}`,description:b.value,parent:{label:`Runs`,to:`/runs`}},{default:N(()=>[i.value?.job_id===null&&i.value.status===`queued`&&M(t).can(M($).RunJobs)?(z(),V(M(Y),{key:0,label:`Cancel task`,severity:`secondary`,loading:c.value,onClick:re},null,8,[`loading`])):G(``,!0),i.value?.job_id===null&&i.value.skill_source&&!m.value?(z(),V(M(Y),{key:1,label:`Schedule this skill`,severity:`secondary`,onClick:n[0]||=e=>ue.value=!0},{icon:N(()=>[U(J,{name:`calendar-clock-outline`})]),_:1})):G(``,!0),i.value&&!m.value&&M(t).can(M($).RunJobs)?(z(),V(M(Y),{key:2,class:`main-action`,label:`Run again`,title:h.value||void 0,disabled:!!h.value,loading:s.value,onClick:he},{icon:N(()=>[U(J,{name:`replay`})]),_:1},8,[`title`,`disabled`,`loading`])):G(``,!0)]),_:1},8,[`title`,`description`]),a.value?(z(),B(`div`,zH,[U(J,{name:`loading`,spin:``}),n[4]||=H(`strong`,null,`Loading run`,-1)])):i.value?(z(),B(R,{key:2},[o.value?(z(),B(`p`,VH,A(o.value),1)):G(``,!0),H(`section`,{class:k([`panel run-status-panel`,i.value.status]),"aria-live":`polite`},[H(`div`,HH,[U(rk,{status:i.value.status},null,8,[`status`]),(z(!0),B(R,null,I(x.value,e=>(z(),B(`span`,{key:e.key,class:k([`run-stat`,{warn:e.warn}]),title:e.title},A(e.text),11,UH))),128)),i.value.model?(z(),B(`span`,WH,A(i.value.model),1)):G(``,!0),H(`code`,{class:`run-stat-quiet`,title:i.value.commit_sha},A(i.value.commit_sha.slice(0,7)),9,GH)]),i.value.failure?(z(),B(`p`,KH,[U(GP,{label:i.value.failure.label,canceled:i.value.status===`canceled`},null,8,[`label`,`canceled`]),H(`span`,null,A(i.value.failure.reason),1),i.value.failure.limit&&i.value.job_id!==null?(z(),V(r,{key:0,to:{path:`/jobs/${i.value.job_id}`,hash:`#limits`},class:`detail-link`},{default:N(()=>[n[6]||=W(`Change this job's limits `,-1),U(J,{name:`arrow-right`})]),_:1},8,[`to`])):G(``,!0)])):G(``,!0),i.value.failure?.next_step?(z(),B(`p`,qH,[W(A(i.value.failure.next_step)+` `,1),i.value.failure.connection_id?(z(),V(r,{key:0,to:{path:`/models`,query:{connection:String(i.value.failure.connection_id)}},class:`primary-action`},{default:N(()=>[n[7]||=W(`Fix the provider `,-1),U(J,{name:`arrow-right`})]),_:1},8,[`to`])):G(``,!0)])):m.value?(z(),B(`p`,JH,[U(J,{name:i.value.status===`queued`?`clock-outline`:`loading`,spin:i.value.status===`running`},null,8,[`name`,`spin`]),W(` `+A(D.value),1)])):G(``,!0),i.value.job_id===null&&i.value.status===`queued`?(z(),B(`p`,YH,[U(ZT,{page:M(Fx).Tasks,section:`queue-and-delayed-starts`},{default:N(()=>[...n[8]||=[W(`How the task queue works`,-1)]]),_:1},8,[`page`])])):G(``,!0)],2),H(`div`,XH,[H(`div`,ZH,[i.value.submission_input?(z(),B(`details`,{key:0,class:`panel task-input-panel`,open:m.value},[H(`summary`,null,[H(`span`,null,A(i.value.skill_path?`Additional instructions`:`Task instructions`),1),H(`span`,$H,[W(A(i.value.skill_path?`For this run`:`Written task`),1),U(J,{name:`chevron-right`})])]),H(`article`,{class:`markdown-body task-instructions`,innerHTML:C.value},null,8,eU)],8,QH)):G(``,!0),i.value.access_needs?.length?(z(),B(`section`,tU,[n[12]||=H(`div`,{class:`panel-heading`},[H(`div`,null,[H(`h2`,null,`Access it asked for`),H(`p`,null,`The agent said it needed these and this run did not have them. Nothing was granted.`)])],-1),H(`ul`,nU,[(z(!0),B(R,null,I(i.value.access_needs,e=>(z(),B(`li`,{key:e.service},[H(`span`,rU,[U(J,{name:`key-variant`}),H(`strong`,null,A(e.service),1),e.tools.length?(z(),B(`code`,iU,A(e.tools.join(`, `)),1)):G(``,!0)]),e.reason?(z(),B(`span`,aU,A(e.reason),1)):G(``,!0)]))),128))]),H(`p`,oU,[n[10]||=W(`Connect a service in `,-1),U(r,{to:`/connections`,class:`detail-link`},{default:N(()=>[...n[9]||=[W(`Connections`,-1)]]),_:1}),n[11]||=W(`, then run it again. Tasks can use a connection when it does not require approval.`,-1)])])):G(``,!0),ne.value?(z(),B(`section`,sU,[H(`div`,cU,[n[13]||=H(`h2`,null,`Timeline`,-1),H(`span`,lU,`Times in `+A(S.value),1)]),i.value.events.length?(z(),B(`ol`,uU,[(z(!0),B(R,null,I(i.value.events,e=>(z(),B(`li`,{key:e.id,class:k(e.level)},[H(`time`,{datetime:e.created_at,title:M(eS)(e.created_at)},A(M(TS)(e.created_at)),9,dU),H(`span`,null,A(e.message),1)],2))),128)),m.value?(z(),B(`li`,fU,[...n[14]||=[H(`time`,null,`…`,-1),H(`span`,null,`Waiting for the next step`,-1)]])):G(``,!0)])):(z(),B(`div`,pU,[U(J,{name:`timer-sand`}),n[15]||=H(`strong`,null,`Nothing has happened yet`,-1),n[16]||=H(`span`,null,`Steps appear here once the run starts.`,-1)]))])):G(``,!0),i.value.output_excerpt||!i.value.failure?(z(),B(`section`,mU,[H(`div`,hU,[H(`div`,null,[n[17]||=H(`h2`,null,`Report`,-1),te.value?(z(),B(`p`,gU,`Showing the end of the report.`)):G(``,!0)]),ee.value?(z(),B(`div`,_U,[U(r,{to:`/runs/${i.value.id}/files/output`,class:`detail-link`},{default:N(()=>[n[18]||=W(`Open `,-1),U(J,{name:`arrow-top-right`})]),_:1},8,[`to`]),H(`a`,{href:M(Pw)(i.value.id,`output`,!0),class:`detail-link`,download:``},[n[19]||=W(`Download `,-1),U(J,{name:`download`})],8,vU)])):G(``,!0)]),i.value.output_excerpt?(z(),B(R,{key:0},[H(`article`,{ref_key:`reportElement`,ref:O,class:k([`markdown-body run-report`,{collapsed:oe.value&&!ae.value}]),innerHTML:w.value},null,10,yU),oe.value?(z(),B(`button`,{key:0,type:`button`,class:`run-report-toggle`,onClick:n[1]||=e=>ae.value=!ae.value},[W(A(ae.value?`Show less`:`Show full report`)+` `,1),U(J,{name:ae.value?`chevron-up`:`chevron-down`},null,8,[`name`])])):G(``,!0)],64)):(z(),B(`div`,bU,[U(J,{name:`text-box-outline`}),H(`strong`,null,A(m.value?`The report appears when the run finishes`:`No report`),1)]))])):G(``,!0),E.value?(z(),B(`section`,xU,[n[26]||=H(`div`,{class:`panel-heading`},[H(`div`,null,[H(`h2`,null,`Files`),H(`p`,null,`Kept from the sandbox when the run finished.`)])],-1),i.value.changes?(z(),B(`div`,SU,[H(`div`,CU,[H(`span`,null,[n[20]||=H(`strong`,null,`Changes`,-1),H(`span`,wU,[W(` · `+A(M(Q)(i.value.changes.file_count,`file`)),1),i.value.changes.available&&i.value.changes.size_bytes!==null?(z(),B(R,{key:0},[W(` · `+A(M(DS)(i.value.changes.size_bytes)),1)],64)):G(``,!0)])]),i.value.changes.available?(z(),B(`span`,TU,[H(`a`,{href:M(Fw)(i.value.id),target:`_blank`,rel:`noopener`,class:`detail-link`},[n[21]||=W(`Open `,-1),U(J,{name:`arrow-top-right`})],8,EU),H(`a`,{href:M(Fw)(i.value.id,!0),class:`detail-link`,download:``},[n[22]||=W(`Download `,-1),U(J,{name:`download`})],8,DU)])):(z(),B(`span`,OU,`Larger than the limit, so not kept`))]),i.value.changes.files.length?(z(),B(`details`,kU,[n[23]||=H(`summary`,null,`Changed files`,-1),H(`ul`,null,[(z(!0),B(R,null,I(i.value.changes.files,e=>(z(),B(`li`,{key:e},[H(`code`,null,A(e),1)]))),128))]),i.value.changes.file_count>i.value.changes.files.length?(z(),B(`p`,AU,`And `+A(i.value.changes.file_count-i.value.changes.files.length)+` more in the patch.`,1)):G(``,!0)])):G(``,!0)])):G(``,!0),i.value.saved_files.length?(z(),B(`ul`,jU,[(z(!0),B(R,null,I(i.value.saved_files,e=>(z(),B(`li`,{key:e.name,class:`run-file-line`},[H(`span`,null,[H(`code`,null,A(e.name),1),H(`span`,MU,` · `+A(M(DS)(e.size_bytes)),1)]),H(`a`,{href:M(Iw)(i.value.id,e.name),class:`detail-link`,download:``},[n[24]||=W(`Download `,-1),U(J,{name:`download`})],8,NU)]))),128))])):G(``,!0),(z(!0),B(R,null,I(i.value.skipped_files,e=>(z(),B(`p`,{key:e.name,class:`run-details-muted run-skipped-file`},[n[25]||=W(`Skipped `,-1),H(`code`,null,A(e.name),1),W(`: `+A(e.reason),1)]))),128))])):G(``,!0),ne.value?G(``,!0):(z(),B(`details`,PU,[H(`summary`,null,`Timeline · `+A(i.value.events.length)+` steps · times in `+A(S.value),1),H(`ol`,FU,[(z(!0),B(R,null,I(i.value.events,e=>(z(),B(`li`,{key:e.id,class:k(e.level)},[H(`time`,{datetime:e.created_at,title:M(eS)(e.created_at)},A(M(TS)(e.created_at)),9,IU),H(`span`,null,A(e.message),1)],2))),128))])]))]),H(`aside`,LU,[n[39]||=H(`h2`,null,`Details`,-1),H(`dl`,null,[H(`div`,null,[H(`dt`,null,A(i.value.job_id===null?`Task`:`Job`),1),H(`dd`,null,[i.value.job_id===null?(z(),B(`span`,RU,A(i.value.job),1)):(z(),V(r,{key:0,to:`/jobs/${i.value.job_id}`,class:`detail-link`},{default:N(()=>[W(A(i.value.job),1)]),_:1},8,[`to`]))])]),H(`div`,null,[n[27]||=H(`dt`,null,`Repository`,-1),H(`dd`,null,[U(r,{to:`/repositories/${i.value.repository_id}`,class:`detail-link`},{default:N(()=>[W(A(i.value.repository),1)]),_:1},8,[`to`])])]),H(`div`,null,[n[28]||=H(`dt`,null,`Instructions`,-1),H(`dd`,null,[i.value.skill_path?(z(),B(`code`,zU,A(i.value.skill_path),1)):(z(),B(`span`,BU,`Written task`))])]),i.value.skill_source?(z(),B(`div`,VU,[n[29]||=H(`dt`,null,`Skill from`,-1),H(`dd`,null,[H(`a`,{href:i.value.skill_source.url,target:`_blank`,rel:`noopener noreferrer`,class:`detail-link`},[W(A(i.value.skill_source.repository)+` @ `,1),H(`code`,null,A(i.value.skill_source.commit_sha.slice(0,7)),1)],8,HU)])])):G(``,!0),H(`div`,null,[n[30]||=H(`dt`,null,`Agent`,-1),H(`dd`,null,A(i.value.execution_agent??i.value.model_provider??`None`),1)]),H(`div`,null,[n[31]||=H(`dt`,null,`Started by`,-1),H(`dd`,null,A(i.value.job_id===null&&i.value.started_by===`manual`?`Manual task`:M(JN)(i.value.started_by)),1)]),i.value.job_id===null?(z(),B(`div`,UU,[n[32]||=H(`dt`,null,`Not before`,-1),H(`dd`,{title:M(eS)(i.value.scheduled_for)},A(M($x)(i.value.scheduled_for)),9,WU)])):G(``,!0),H(`div`,null,[n[33]||=H(`dt`,null,`Queued`,-1),H(`dd`,{title:M(eS)(i.value.created_at)},A(M($x)(i.value.created_at)),9,GU)]),H(`div`,null,[n[34]||=H(`dt`,null,`Started`,-1),H(`dd`,{title:M(eS)(i.value.started_at)},A(M($x)(i.value.started_at)),9,KU)]),H(`div`,null,[n[35]||=H(`dt`,null,`Finished`,-1),H(`dd`,{title:M(eS)(i.value.finished_at)},A(M($x)(i.value.finished_at)),9,qU)]),H(`div`,null,[n[37]||=H(`dt`,null,`Input`,-1),T.value?(z(),B(`dd`,JU,[U(r,{to:`/runs/${i.value.id}/files/input`,class:`detail-link`},{default:N(()=>[...n[36]||=[W(`input.md`,-1)]]),_:1},8,[`to`]),H(`span`,YU,` · `+A(M(DS)(T.value.size_bytes))+` · `,1),H(`a`,{href:M(Pw)(i.value.id,`input`,!0),class:`detail-link`,download:``},`Download`,8,XU)])):(z(),B(`dd`,ZU,A(m.value?`Stored when the run starts`:`Not stored`),1))]),i.value.deliveries.length?(z(),B(`div`,QU,[n[38]||=H(`dt`,null,`Delivery`,-1),(z(!0),B(R,null,I(i.value.deliveries,e=>(z(),B(`dd`,{key:e.id,class:`run-delivery`},[H(`span`,{title:e.target},A(e.kind===`pull_request`?`Draft pull request into ${e.target.split(` into `).pop()}`:e.target),9,$U),H(`span`,{class:k([`run-delivery-status`,e.status]),title:e.message||void 0},` · `+A(y(e)),11,eW),e.url?(z(),B(`a`,{key:0,class:`run-delivery-link`,href:e.url,target:`_blank`,rel:`noopener noreferrer`},[W(A(e.message||`Open on GitHub`),1),U(J,{name:`open-in-new`})],8,tW)):e.message&&(e.status===`failed`||e.status===`retrying`||M(v).has(e.kind))?(z(),B(`span`,nW,A(e.message),1)):G(``,!0),e.kind===`issues`&&i.value.issues.length?(z(),B(`ul`,rW,[(z(!0),B(R,null,I(i.value.issues,e=>(z(),B(`li`,{key:e.title},[e.url?(z(),B(`a`,{key:0,class:`run-delivery-link`,href:e.url,target:`_blank`,rel:`noopener noreferrer`},[W(`#`+A(e.number)+` `+A(e.title),1),U(J,{name:`open-in-new`})],8,iW)):(z(),B(`span`,aW,A(e.title),1)),e.already_open?(z(),B(`span`,oW,` · already open`)):G(``,!0)]))),128))])):G(``,!0),e.retryable&&M(t).can(M($).RunJobs)?(z(),V(M(Y),{key:3,class:`run-delivery-retry`,label:`Retry`,size:`small`,severity:`secondary`,loading:l.value===e.id,onClick:t=>ie(e)},null,8,[`loading`,`onClick`])):G(``,!0)]))),128))])):G(``,!0)])])]),U(M(By),{visible:ue.value,"onUpdate:visible":n[3]||=e=>ue.value=e,modal:``,header:`Schedule this skill`,style:{width:`min(640px, calc(100vw - 32px))`}},{footer:N(()=>[U(M(Y),{label:`Close`,severity:`secondary`,text:``,onClick:n[2]||=e=>ue.value=!1}),U(M(Y),{label:de.value?`Copied`:`Copy`,class:`main-action`,onClick:pe},{icon:N(()=>[U(J,{name:de.value?`check`:`content-copy`},null,8,[`name`])]),_:1},8,[`label`])]),default:N(()=>[H(`p`,sW,[n[40]||=W(`Add this job to `,-1),n[41]||=H(`code`,null,`.secondshift.yaml`,-1),W(` in `+A(i.value.repository)+` and commit it. It pins the commit this run used, so the skill changes only when you change the commit. Set the schedule you want, and add the access it needs under `,1),n[42]||=H(`code`,null,`requires`,-1),n[43]||=W(`.`,-1)]),H(`pre`,cW,A(fe.value),1)]),_:1},8,[`visible`])],64)):(z(),B(`div`,BH,[U(J,{name:`alert-outline`}),n[5]||=H(`strong`,null,`Run unavailable`,-1),H(`span`,null,A(o.value),1)]))])}}}),[[`__scopeId`,`data-v-ace8e8a8`]]),fW={class:`page`},pW={class:`segmented`,role:`group`,"aria-label":`File view`},mW=[`aria-pressed`],hW=[`aria-pressed`],gW=[`href`],_W={key:0,class:`panel empty-state`},vW={key:1,class:`panel empty-state`},yW={key:2,class:`panel run-file-panel`},bW=[`innerHTML`],xW={key:1,class:`run-output run-output-full`},SW=P({__name:`RunFileView`,setup(e){let t={input:`Input`,output:`Output`},n={input:`Exactly what the agent was given: instructions, task and the skill at its commit.`,output:`The full report the run produced.`},r=Qg(),i=j(null),a=j(!0),o=j(null),s=j(`rendered`),c=q(()=>Number(r.params.id)),l=q(()=>r.params.name===`input`?`input`:`output`),u=q(()=>i.value===null?``:l.value===`output`?xR(i.value,e=>LH(e,c.value)):xR(i.value));async function d(){a.value=!0,o.value=null,i.value=null;try{i.value=await Lw(c.value,l.value)}catch(e){o.value=X(e,`Unable to load file`)}finally{a.value=!1}}return rr([c,l],d,{immediate:!0}),(e,r)=>(z(),B(`div`,fW,[U(qT,{compact:``,title:t[l.value],description:n[l.value],parent:{label:`Run #${c.value}`,to:`/runs/${c.value}`}},{default:N(()=>[H(`div`,pW,[H(`button`,{type:`button`,class:k({active:s.value===`rendered`}),"aria-pressed":s.value===`rendered`,onClick:r[0]||=e=>s.value=`rendered`},`Rendered`,10,mW),H(`button`,{type:`button`,class:k({active:s.value===`raw`}),"aria-pressed":s.value===`raw`,onClick:r[1]||=e=>s.value=`raw`},`Raw`,10,hW)]),H(`a`,{href:M(Pw)(c.value,l.value,!0),class:`secondary-action`,download:``},[U(J,{name:`download`}),r[2]||=W(` Download`,-1)],8,gW)]),_:1},8,[`title`,`description`,`parent`]),a.value?(z(),B(`div`,_W,[U(J,{name:`loading`,spin:``}),r[3]||=H(`strong`,null,`Loading file`,-1)])):o.value?(z(),B(`div`,vW,[U(J,{name:`file-alert-outline`}),r[4]||=H(`strong`,null,`File unavailable`,-1),H(`span`,null,A(o.value),1)])):(z(),B(`section`,yW,[s.value===`rendered`?(z(),B(`article`,{key:0,class:`markdown-body`,innerHTML:u.value},null,8,bW)):(z(),B(`pre`,xW,A(i.value),1))]))]))}}),CW=`
2100
+ .p-paginator {
2101
+ display: flex;
2102
+ align-items: center;
2103
+ justify-content: center;
2104
+ flex-wrap: wrap;
2105
+ background: dt('paginator.background');
2106
+ color: dt('paginator.color');
2107
+ padding: dt('paginator.padding');
2108
+ border-radius: dt('paginator.border.radius');
2109
+ gap: dt('paginator.gap');
2110
+ }
2111
+
2112
+ .p-paginator-content {
2113
+ display: flex;
2114
+ align-items: center;
2115
+ justify-content: center;
2116
+ flex-wrap: wrap;
2117
+ gap: dt('paginator.gap');
2118
+ }
2119
+
2120
+ .p-paginator-content-start {
2121
+ margin-inline-end: auto;
2122
+ }
2123
+
2124
+ .p-paginator-content-end {
2125
+ margin-inline-start: auto;
2126
+ }
2127
+
2128
+ .p-paginator-page,
2129
+ .p-paginator-next,
2130
+ .p-paginator-last,
2131
+ .p-paginator-first,
2132
+ .p-paginator-prev {
2133
+ cursor: pointer;
2134
+ display: inline-flex;
2135
+ align-items: center;
2136
+ justify-content: center;
2137
+ line-height: 1;
2138
+ user-select: none;
2139
+ overflow: hidden;
2140
+ position: relative;
2141
+ background: dt('paginator.nav.button.background');
2142
+ border: 0 none;
2143
+ color: dt('paginator.nav.button.color');
2144
+ min-width: dt('paginator.nav.button.width');
2145
+ height: dt('paginator.nav.button.height');
2146
+ transition:
2147
+ background dt('paginator.transition.duration'),
2148
+ color dt('paginator.transition.duration'),
2149
+ outline-color dt('paginator.transition.duration'),
2150
+ box-shadow dt('paginator.transition.duration');
2151
+ border-radius: dt('paginator.nav.button.border.radius');
2152
+ padding: 0;
2153
+ margin: 0;
2154
+ }
2155
+
2156
+ .p-paginator-page:focus-visible,
2157
+ .p-paginator-next:focus-visible,
2158
+ .p-paginator-last:focus-visible,
2159
+ .p-paginator-first:focus-visible,
2160
+ .p-paginator-prev:focus-visible {
2161
+ box-shadow: dt('paginator.nav.button.focus.ring.shadow');
2162
+ outline: dt('paginator.nav.button.focus.ring.width') dt('paginator.nav.button.focus.ring.style') dt('paginator.nav.button.focus.ring.color');
2163
+ outline-offset: dt('paginator.nav.button.focus.ring.offset');
2164
+ }
2165
+
2166
+ .p-paginator-page:not(.p-disabled):not(.p-paginator-page-selected):hover,
2167
+ .p-paginator-first:not(.p-disabled):hover,
2168
+ .p-paginator-prev:not(.p-disabled):hover,
2169
+ .p-paginator-next:not(.p-disabled):hover,
2170
+ .p-paginator-last:not(.p-disabled):hover {
2171
+ background: dt('paginator.nav.button.hover.background');
2172
+ color: dt('paginator.nav.button.hover.color');
2173
+ }
2174
+
2175
+ .p-paginator-page.p-paginator-page-selected {
2176
+ background: dt('paginator.nav.button.selected.background');
2177
+ color: dt('paginator.nav.button.selected.color');
2178
+ }
2179
+
2180
+ .p-paginator-current {
2181
+ color: dt('paginator.current.page.report.color');
2182
+ }
2183
+
2184
+ .p-paginator-pages {
2185
+ display: flex;
2186
+ align-items: center;
2187
+ gap: dt('paginator.gap');
2188
+ }
2189
+
2190
+ .p-paginator-jtp-input .p-inputtext {
2191
+ max-width: dt('paginator.jump.to.page.input.max.width');
2192
+ }
2193
+
2194
+ .p-paginator-first:dir(rtl),
2195
+ .p-paginator-prev:dir(rtl),
2196
+ .p-paginator-next:dir(rtl),
2197
+ .p-paginator-last:dir(rtl) {
2198
+ transform: rotate(180deg);
2199
+ }
2200
+ `;function wW(e){"@babel/helpers - typeof";return wW=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},wW(e)}function TW(e,t,n){return(t=EW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EW(e){var t=DW(e,`string`);return wW(t)==`symbol`?t:t+``}function DW(e,t){if(wW(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wW(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var OW=ad.extend({name:`paginator`,style:CW,classes:{paginator:function(e){var t=e.instance,n=e.key;return[`p-paginator p-component`,TW({"p-paginator-default":!t.hasBreakpoints()},`p-paginator-${n}`,t.hasBreakpoints())]},content:`p-paginator-content`,contentStart:`p-paginator-content-start`,contentEnd:`p-paginator-content-end`,first:function(e){return[`p-paginator-first`,{"p-disabled":e.instance.$attrs.disabled}]},firstIcon:`p-paginator-first-icon`,prev:function(e){return[`p-paginator-prev`,{"p-disabled":e.instance.$attrs.disabled}]},prevIcon:`p-paginator-prev-icon`,next:function(e){return[`p-paginator-next`,{"p-disabled":e.instance.$attrs.disabled}]},nextIcon:`p-paginator-next-icon`,last:function(e){return[`p-paginator-last`,{"p-disabled":e.instance.$attrs.disabled}]},lastIcon:`p-paginator-last-icon`,pages:`p-paginator-pages`,page:function(e){var t=e.props;return[`p-paginator-page`,{"p-paginator-page-selected":e.pageLink-1===t.page}]},current:`p-paginator-current`,pcRowPerPageDropdown:`p-paginator-rpp-dropdown`,pcJumpToPageDropdown:`p-paginator-jtp-dropdown`,pcJumpToPageInputText:`p-paginator-jtp-input`}}),kW={name:`AngleDoubleLeftIcon`,extends:Ev};function AW(e){return PW(e)||NW(e)||MW(e)||jW()}function jW(){throw TypeError(`Invalid attempt to spread non-iterable instance.
2201
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MW(e,t){if(e){if(typeof e==`string`)return FW(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?FW(e,t):void 0}}function NW(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function PW(e){if(Array.isArray(e))return FW(e)}function FW(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function IW(e,t,n,r,i,a){return z(),B(`svg`,K({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),AW(t[0]||=[H(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M5.71602 11.164C5.80782 11.2021 5.9063 11.2215 6.00569 11.221C6.20216 11.2301 6.39427 11.1612 6.54025 11.0294C6.68191 10.8875 6.76148 10.6953 6.76148 10.4948C6.76148 10.2943 6.68191 10.1021 6.54025 9.96024L3.51441 6.9344L6.54025 3.90855C6.624 3.76126 6.65587 3.59011 6.63076 3.42254C6.60564 3.25498 6.525 3.10069 6.40175 2.98442C6.2785 2.86815 6.11978 2.79662 5.95104 2.7813C5.78229 2.76598 5.61329 2.80776 5.47112 2.89994L1.97123 6.39983C1.82957 6.54167 1.75 6.73393 1.75 6.9344C1.75 7.13486 1.82957 7.32712 1.97123 7.46896L5.47112 10.9991C5.54096 11.0698 5.62422 11.1259 5.71602 11.164ZM11.0488 10.9689C11.1775 11.1156 11.3585 11.2061 11.5531 11.221C11.7477 11.2061 11.9288 11.1156 12.0574 10.9689C12.1815 10.8302 12.25 10.6506 12.25 10.4645C12.25 10.2785 12.1815 10.0989 12.0574 9.96024L9.03158 6.93439L12.0574 3.90855C12.1248 3.76739 12.1468 3.60881 12.1204 3.45463C12.0939 3.30045 12.0203 3.15826 11.9097 3.04765C11.7991 2.93703 11.6569 2.86343 11.5027 2.83698C11.3486 2.81053 11.19 2.83252 11.0488 2.89994L7.51865 6.36957C7.37699 6.51141 7.29742 6.70367 7.29742 6.90414C7.29742 7.1046 7.37699 7.29686 7.51865 7.4387L11.0488 10.9689Z`,fill:`currentColor`},null,-1)]),16)}kW.render=IW;var LW={name:`AngleDownIcon`,extends:Ev};function RW(e){return HW(e)||VW(e)||BW(e)||zW()}function zW(){throw TypeError(`Invalid attempt to spread non-iterable instance.
2202
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BW(e,t){if(e){if(typeof e==`string`)return UW(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?UW(e,t):void 0}}function VW(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function HW(e){if(Array.isArray(e))return UW(e)}function UW(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function WW(e,t,n,r,i,a){return z(),B(`svg`,K({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),RW(t[0]||=[H(`path`,{d:`M3.58659 4.5007C3.68513 4.50023 3.78277 4.51945 3.87379 4.55723C3.9648 4.59501 4.04735 4.65058 4.11659 4.7207L7.11659 7.7207L10.1166 4.7207C10.2619 4.65055 10.4259 4.62911 10.5843 4.65956C10.7427 4.69002 10.8871 4.77074 10.996 4.88976C11.1049 5.00877 11.1726 5.15973 11.1889 5.32022C11.2052 5.48072 11.1693 5.6422 11.0866 5.7807L7.58659 9.2807C7.44597 9.42115 7.25534 9.50004 7.05659 9.50004C6.85784 9.50004 6.66722 9.42115 6.52659 9.2807L3.02659 5.7807C2.88614 5.64007 2.80725 5.44945 2.80725 5.2507C2.80725 5.05195 2.88614 4.86132 3.02659 4.7207C3.09932 4.64685 3.18675 4.58911 3.28322 4.55121C3.37969 4.51331 3.48305 4.4961 3.58659 4.5007Z`,fill:`currentColor`},null,-1)]),16)}LW.render=WW;var GW={name:`AngleUpIcon`,extends:Ev};function KW(e){return XW(e)||YW(e)||JW(e)||qW()}function qW(){throw TypeError(`Invalid attempt to spread non-iterable instance.
2203
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JW(e,t){if(e){if(typeof e==`string`)return ZW(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ZW(e,t):void 0}}function YW(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function XW(e){if(Array.isArray(e))return ZW(e)}function ZW(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function QW(e,t,n,r,i,a){return z(),B(`svg`,K({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),KW(t[0]||=[H(`path`,{d:`M10.4134 9.49931C10.3148 9.49977 10.2172 9.48055 10.1262 9.44278C10.0352 9.405 9.95263 9.34942 9.88338 9.27931L6.88338 6.27931L3.88338 9.27931C3.73811 9.34946 3.57409 9.3709 3.41567 9.34044C3.25724 9.30999 3.11286 9.22926 3.00395 9.11025C2.89504 8.99124 2.82741 8.84028 2.8111 8.67978C2.79478 8.51928 2.83065 8.35781 2.91338 8.21931L6.41338 4.71931C6.55401 4.57886 6.74463 4.49997 6.94338 4.49997C7.14213 4.49997 7.33276 4.57886 7.47338 4.71931L10.9734 8.21931C11.1138 8.35994 11.1927 8.55056 11.1927 8.74931C11.1927 8.94806 11.1138 9.13868 10.9734 9.27931C10.9007 9.35315 10.8132 9.41089 10.7168 9.44879C10.6203 9.48669 10.5169 9.5039 10.4134 9.49931Z`,fill:`currentColor`},null,-1)]),16)}GW.render=QW;var $W=ad.extend({name:`inputnumber`,style:`
2204
+ .p-inputnumber {
2205
+ display: inline-flex;
2206
+ position: relative;
2207
+ }
2208
+
2209
+ .p-inputnumber-button {
2210
+ display: flex;
2211
+ align-items: center;
2212
+ justify-content: center;
2213
+ flex: 0 0 auto;
2214
+ cursor: pointer;
2215
+ background: dt('inputnumber.button.background');
2216
+ color: dt('inputnumber.button.color');
2217
+ width: dt('inputnumber.button.width');
2218
+ transition:
2219
+ background dt('inputnumber.transition.duration'),
2220
+ color dt('inputnumber.transition.duration'),
2221
+ border-color dt('inputnumber.transition.duration'),
2222
+ outline-color dt('inputnumber.transition.duration');
2223
+ }
2224
+
2225
+ .p-inputnumber-button:disabled {
2226
+ cursor: auto;
2227
+ }
2228
+
2229
+ .p-inputnumber-button:not(:disabled):hover {
2230
+ background: dt('inputnumber.button.hover.background');
2231
+ color: dt('inputnumber.button.hover.color');
2232
+ }
2233
+
2234
+ .p-inputnumber-button:not(:disabled):active {
2235
+ background: dt('inputnumber.button.active.background');
2236
+ color: dt('inputnumber.button.active.color');
2237
+ }
2238
+
2239
+ .p-inputnumber-stacked .p-inputnumber-button {
2240
+ position: relative;
2241
+ flex: 1 1 auto;
2242
+ border: 0 none;
2243
+ }
2244
+
2245
+ .p-inputnumber-stacked .p-inputnumber-button-group {
2246
+ display: flex;
2247
+ flex-direction: column;
2248
+ position: absolute;
2249
+ inset-block-start: 1px;
2250
+ inset-inline-end: 1px;
2251
+ height: calc(100% - 2px);
2252
+ z-index: 1;
2253
+ }
2254
+
2255
+ .p-inputnumber-stacked .p-inputnumber-increment-button {
2256
+ padding: 0;
2257
+ border-start-end-radius: calc(dt('inputnumber.button.border.radius') - 1px);
2258
+ }
2259
+
2260
+ .p-inputnumber-stacked .p-inputnumber-decrement-button {
2261
+ padding: 0;
2262
+ border-end-end-radius: calc(dt('inputnumber.button.border.radius') - 1px);
2263
+ }
2264
+
2265
+ .p-inputnumber-stacked .p-inputnumber-input {
2266
+ padding-inline-end: calc(dt('inputnumber.button.width') + dt('form.field.padding.x'));
2267
+ }
2268
+
2269
+ .p-inputnumber-horizontal .p-inputnumber-button {
2270
+ border: 1px solid dt('inputnumber.button.border.color');
2271
+ }
2272
+
2273
+ .p-inputnumber-horizontal .p-inputnumber-button:hover {
2274
+ border-color: dt('inputnumber.button.hover.border.color');
2275
+ }
2276
+
2277
+ .p-inputnumber-horizontal .p-inputnumber-button:active {
2278
+ border-color: dt('inputnumber.button.active.border.color');
2279
+ }
2280
+
2281
+ .p-inputnumber-horizontal .p-inputnumber-increment-button {
2282
+ order: 3;
2283
+ border-start-end-radius: dt('inputnumber.button.border.radius');
2284
+ border-end-end-radius: dt('inputnumber.button.border.radius');
2285
+ border-inline-start: 0 none;
2286
+ }
2287
+
2288
+ .p-inputnumber-horizontal .p-inputnumber-input {
2289
+ order: 2;
2290
+ border-radius: 0;
2291
+ }
2292
+
2293
+ .p-inputnumber-horizontal .p-inputnumber-decrement-button {
2294
+ order: 1;
2295
+ border-start-start-radius: dt('inputnumber.button.border.radius');
2296
+ border-end-start-radius: dt('inputnumber.button.border.radius');
2297
+ border-inline-end: 0 none;
2298
+ }
2299
+
2300
+ .p-floatlabel:has(.p-inputnumber-horizontal) label {
2301
+ margin-inline-start: dt('inputnumber.button.width');
2302
+ }
2303
+
2304
+ .p-inputnumber-vertical {
2305
+ flex-direction: column;
2306
+ }
2307
+
2308
+ .p-inputnumber-vertical .p-inputnumber-button {
2309
+ border: 1px solid dt('inputnumber.button.border.color');
2310
+ padding: dt('inputnumber.button.vertical.padding');
2311
+ }
2312
+
2313
+ .p-inputnumber-vertical .p-inputnumber-button:hover {
2314
+ border-color: dt('inputnumber.button.hover.border.color');
2315
+ }
2316
+
2317
+ .p-inputnumber-vertical .p-inputnumber-button:active {
2318
+ border-color: dt('inputnumber.button.active.border.color');
2319
+ }
2320
+
2321
+ .p-inputnumber-vertical .p-inputnumber-increment-button {
2322
+ order: 1;
2323
+ border-start-start-radius: dt('inputnumber.button.border.radius');
2324
+ border-start-end-radius: dt('inputnumber.button.border.radius');
2325
+ width: 100%;
2326
+ border-block-end: 0 none;
2327
+ }
2328
+
2329
+ .p-inputnumber-vertical .p-inputnumber-input {
2330
+ order: 2;
2331
+ border-radius: 0;
2332
+ text-align: center;
2333
+ }
2334
+
2335
+ .p-inputnumber-vertical .p-inputnumber-decrement-button {
2336
+ order: 3;
2337
+ border-end-start-radius: dt('inputnumber.button.border.radius');
2338
+ border-end-end-radius: dt('inputnumber.button.border.radius');
2339
+ width: 100%;
2340
+ border-block-start: 0 none;
2341
+ }
2342
+
2343
+ .p-inputnumber-input {
2344
+ flex: 1 1 auto;
2345
+ }
2346
+
2347
+ .p-inputnumber-fluid {
2348
+ width: 100%;
2349
+ }
2350
+
2351
+ .p-inputnumber-fluid .p-inputnumber-input {
2352
+ width: 1%;
2353
+ }
2354
+
2355
+ .p-inputnumber-fluid.p-inputnumber-vertical .p-inputnumber-input {
2356
+ width: 100%;
2357
+ }
2358
+
2359
+ .p-inputnumber:has(.p-inputtext-sm) .p-inputnumber-button .p-icon {
2360
+ font-size: dt('form.field.sm.font.size');
2361
+ width: dt('form.field.sm.font.size');
2362
+ height: dt('form.field.sm.font.size');
2363
+ }
2364
+
2365
+ .p-inputnumber:has(.p-inputtext-lg) .p-inputnumber-button .p-icon {
2366
+ font-size: dt('form.field.lg.font.size');
2367
+ width: dt('form.field.lg.font.size');
2368
+ height: dt('form.field.lg.font.size');
2369
+ }
2370
+
2371
+ .p-inputnumber-clear-icon {
2372
+ position: absolute;
2373
+ top: 50%;
2374
+ margin-top: -0.5rem;
2375
+ cursor: pointer;
2376
+ inset-inline-end: dt('form.field.padding.x');
2377
+ color: dt('form.field.icon.color');
2378
+ }
2379
+
2380
+ .p-inputnumber:has(.p-inputnumber-clear-icon) .p-inputnumber-input {
2381
+ padding-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
2382
+ }
2383
+
2384
+ .p-inputnumber-stacked .p-inputnumber-clear-icon {
2385
+ inset-inline-end: calc(dt('inputnumber.button.width') + dt('form.field.padding.x'));
2386
+ }
2387
+
2388
+ .p-inputnumber-stacked:has(.p-inputnumber-clear-icon) .p-inputnumber-input {
2389
+ padding-inline-end: calc(dt('inputnumber.button.width') + (dt('form.field.padding.x') * 2) + dt('icon.size'));
2390
+ }
2391
+
2392
+ .p-inputnumber-horizontal .p-inputnumber-clear-icon {
2393
+ inset-inline-end: calc(dt('inputnumber.button.width') + dt('form.field.padding.x'));
2394
+ }
2395
+ `,classes:{root:function(e){var t=e.instance,n=e.props;return[`p-inputnumber p-component p-inputwrapper`,{"p-invalid":t.$invalid,"p-inputwrapper-filled":t.$filled||n.allowEmpty===!1,"p-inputwrapper-focus":t.focused,"p-inputnumber-stacked":n.showButtons&&n.buttonLayout===`stacked`,"p-inputnumber-horizontal":n.showButtons&&n.buttonLayout===`horizontal`,"p-inputnumber-vertical":n.showButtons&&n.buttonLayout===`vertical`,"p-inputnumber-fluid":t.$fluid}]},pcInputText:`p-inputnumber-input`,clearIcon:`p-inputnumber-clear-icon`,buttonGroup:`p-inputnumber-button-group`,incrementButton:function(e){var t=e.instance,n=e.props;return[`p-inputnumber-button p-inputnumber-increment-button`,{"p-disabled":n.showButtons&&n.max!==null&&t.maxBoundry()}]},decrementButton:function(e){var t=e.instance,n=e.props;return[`p-inputnumber-button p-inputnumber-decrement-button`,{"p-disabled":n.showButtons&&n.min!==null&&t.minBoundry()}]}}}),eG={name:`BaseInputNumber`,extends:Qy,props:{format:{type:Boolean,default:!0},showButtons:{type:Boolean,default:!1},buttonLayout:{type:String,default:`stacked`},incrementButtonClass:{type:String,default:null},decrementButtonClass:{type:String,default:null},incrementButtonIcon:{type:String,default:void 0},incrementIcon:{type:String,default:void 0},decrementButtonIcon:{type:String,default:void 0},decrementIcon:{type:String,default:void 0},locale:{type:String,default:void 0},localeMatcher:{type:String,default:void 0},mode:{type:String,default:`decimal`},prefix:{type:String,default:null},suffix:{type:String,default:null},currency:{type:String,default:void 0},currencyDisplay:{type:String,default:void 0},useGrouping:{type:Boolean,default:!0},minFractionDigits:{type:Number,default:void 0},maxFractionDigits:{type:Number,default:void 0},roundingMode:{type:String,default:`halfExpand`,validator:function(e){return[`ceil`,`floor`,`expand`,`trunc`,`halfCeil`,`halfFloor`,`halfExpand`,`halfTrunc`,`halfEven`].includes(e)}},min:{type:Number,default:null},max:{type:Number,default:null},step:{type:Number,default:1},allowEmpty:{type:Boolean,default:!0},highlightOnFocus:{type:Boolean,default:!1},showClear:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},placeholder:{type:String,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null},required:{type:Boolean,default:!1}},style:$W,provide:function(){return{$pcInputNumber:this,$parentInstance:this}}};function tG(e){"@babel/helpers - typeof";return tG=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},tG(e)}function nG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?nG(Object(n),!0).forEach(function(t){iG(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function iG(e,t,n){return(t=aG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aG(e){var t=oG(e,`string`);return tG(t)==`symbol`?t:t+``}function oG(e,t){if(tG(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tG(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function sG(e){return dG(e)||uG(e)||lG(e)||cG()}function cG(){throw TypeError(`Invalid attempt to spread non-iterable instance.
2396
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lG(e,t){if(e){if(typeof e==`string`)return fG(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fG(e,t):void 0}}function uG(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function dG(e){if(Array.isArray(e))return fG(e)}function fG(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var pG={name:`InputNumber`,extends:eG,inheritAttrs:!1,emits:[`input`,`focus`,`blur`],inject:{$pcFluid:{default:null}},numberFormat:null,_numeral:null,_decimal:null,_group:null,_minusSign:null,_currency:null,_suffix:null,_prefix:null,_index:null,groupChar:``,isSpecialChar:null,prefixChar:null,suffixChar:null,timer:null,data:function(){return{d_modelValue:this.d_value,focused:!1}},watch:{d_value:{immediate:!0,handler:function(e){var t;this.d_modelValue=e,(t=this.$refs.clearIcon)!=null&&(t=t.$el)!=null&&t.style&&(this.$refs.clearIcon.$el.style.display=Ac(e)?`none`:`block`)}},locale:function(e,t){this.updateConstructParser(e,t)},localeMatcher:function(e,t){this.updateConstructParser(e,t)},mode:function(e,t){this.updateConstructParser(e,t)},currency:function(e,t){this.updateConstructParser(e,t)},currencyDisplay:function(e,t){this.updateConstructParser(e,t)},useGrouping:function(e,t){this.updateConstructParser(e,t)},minFractionDigits:function(e,t){this.updateConstructParser(e,t)},maxFractionDigits:function(e,t){this.updateConstructParser(e,t)},suffix:function(e,t){this.updateConstructParser(e,t)},prefix:function(e,t){this.updateConstructParser(e,t)}},created:function(){this.constructParser()},mounted:function(){var e;(e=this.$refs.clearIcon)!=null&&(e=e.$el)!=null&&e.style&&(this.$refs.clearIcon.$el.style.display=this.$filled?`block`:`none`)},methods:{getOptions:function(){return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:this.minFractionDigits,maximumFractionDigits:this.maxFractionDigits,roundingMode:this.roundingMode}},constructParser:function(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());var e=sG(new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)).reverse(),t=new Map(e.map(function(e,t){return[e,t]}));this._numeral=RegExp(`[${e.join(``)}]`,`g`),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=function(e){return t.get(e)}},updateConstructParser:function(e,t){e!==t&&this.constructParser()},escapeRegExp:function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`)},getDecimalExpression:function(){var e=new Intl.NumberFormat(this.locale,rG(rG({},this.getOptions()),{},{useGrouping:!1})),t=e.format(1.1);return t===e.format(1)?RegExp(`[]`,`g`):RegExp(`[${t.replace(this._currency,``).trim().replace(this._numeral,``)}]`,`g`)},getGroupingExpression:function(){var e=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=e.format(1e6).trim().replace(this._numeral,``).charAt(0),RegExp(`[${this.groupChar}]`,`g`)},getMinusSignExpression:function(){var e=new Intl.NumberFormat(this.locale,{useGrouping:!1});return RegExp(`[${e.format(-1).trim().replace(this._numeral,``)}]`,`g`)},getCurrencyExpression:function(){if(this.currency){var e=new Intl.NumberFormat(this.locale,{style:`currency`,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0,roundingMode:this.roundingMode});return RegExp(`[${e.format(1).replace(/\s/g,``).replace(this._numeral,``).replace(this._group,``)}]`,`g`)}return RegExp(`[]`,`g`)},getPrefixExpression:function(){if(this.prefix)this.prefixChar=this.prefix;else{var e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=e.format(1).split(`1`)[0]}return RegExp(`${this.escapeRegExp(this.prefixChar||``)}`,`g`)},getSuffixExpression:function(){if(this.suffix)this.suffixChar=this.suffix;else{var e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0,roundingMode:this.roundingMode});this.suffixChar=e.format(1).split(`1`)[1]}return RegExp(`${this.escapeRegExp(this.suffixChar||``)}`,`g`)},formatValue:function(e){if(e!=null){if(e===`-`)return e;if(this.format){var t=new Intl.NumberFormat(this.locale,this.getOptions()).format(e);return this.prefix&&(t=this.prefix+t),this.suffix&&(t+=this.suffix),t}return e.toString()}return``},parseValue:function(e){var t=e.replace(this._suffix,``).replace(this._prefix,``).trim().replace(/\s/g,``).replace(this._currency,``).replace(this._group,``).replace(this._minusSign,`-`).replace(this._decimal,`.`).replace(this._numeral,this._index);if(t){if(t===`-`)return t;var n=+t;return isNaN(n)?null:n}return null},repeat:function(e,t,n){var r=this;if(!this.readonly){var i=t||500;this.clearTimer(),this.timer=setTimeout(function(){r.repeat(e,40,n)},i),this.spin(e,n)}},addWithPrecision:function(e,t){var n=e.toString(),r=t.toString(),i=n.includes(`.`)?n.split(`.`)[1].length:0,a=r.includes(`.`)?r.split(`.`)[1].length:0,o=10**Math.max(i,a);return Math.round((e+t)*o)/o},spin:function(e,t){if(this.$refs.input){var n=this.step*t,r=this.parseValue(this.$refs.input.$el.value)||0,i=this.validateValue(this.addWithPrecision(r,n));this.updateInput(i,null,`spin`),this.updateModel(e,i),this.handleOnInput(e,r,i)}},onUpButtonMouseDown:function(e){this.disabled||(this.$refs.input.$el.focus(),this.repeat(e,null,1),e.preventDefault())},onUpButtonMouseUp:function(){this.disabled||this.clearTimer()},onUpButtonMouseLeave:function(){this.disabled||this.clearTimer()},onUpButtonKeyUp:function(){this.disabled||this.clearTimer()},onUpButtonKeyDown:function(e){(e.code===`Space`||e.code===`Enter`||e.code===`NumpadEnter`)&&this.repeat(e,null,1)},onDownButtonMouseDown:function(e){this.disabled||(this.$refs.input.$el.focus(),this.repeat(e,null,-1),e.preventDefault())},onDownButtonMouseUp:function(){this.disabled||this.clearTimer()},onDownButtonMouseLeave:function(){this.disabled||this.clearTimer()},onDownButtonKeyUp:function(){this.disabled||this.clearTimer()},onDownButtonKeyDown:function(e){(e.code===`Space`||e.code===`Enter`||e.code===`NumpadEnter`)&&this.repeat(e,null,-1)},onUserInput:function(){this.isSpecialChar&&(this.$refs.input.$el.value=this.lastValue),this.isSpecialChar=!1},onInputKeyDown:function(e){if(!this.readonly&&!e.isComposing){if(e.altKey||e.ctrlKey||e.metaKey)this.isSpecialChar=!0,this.lastValue=this.$refs.input.$el.value;else{this.lastValue=e.target.value;var t=e.target.selectionStart,n=e.target.selectionEnd,r=n-t,i=e.target.value,a=null;switch(e.code||e.key){case`ArrowUp`:this.spin(e,1),e.preventDefault();break;case`ArrowDown`:this.spin(e,-1),e.preventDefault();break;case`ArrowLeft`:if(r>1){var o=this.isNumeralChar(i.charAt(t))?t+1:t+2;this.$refs.input.$el.setSelectionRange(o,o)}else this.isNumeralChar(i.charAt(t-1))||e.preventDefault();break;case`ArrowRight`:if(r>1){var s=n-1;this.$refs.input.$el.setSelectionRange(s,s)}else this.isNumeralChar(i.charAt(t))||e.preventDefault();break;case`Tab`:case`Enter`:case`NumpadEnter`:a=this.validateValue(this.parseValue(i)),this.$refs.input.$el.value=this.formatValue(a),this.$refs.input.$el.setAttribute(`aria-valuenow`,a),this.updateModel(e,a);break;case`Backspace`:if(e.preventDefault(),t===n){t>=i.length&&this.suffixChar!==null&&(t=i.length-this.suffixChar.length,this.$refs.input.$el.setSelectionRange(t,t));var c=i.charAt(t-1),l=this.getDecimalCharIndexes(i),u=l.decimalCharIndex,d=l.decimalCharIndexWithoutPrefix;if(this.isNumeralChar(c)){var f=this.getDecimalLength(i);if(this._group.test(c))this._group.lastIndex=0,a=i.slice(0,t-2)+i.slice(t-1);else if(this._decimal.test(c))this._decimal.lastIndex=0,f?this.$refs.input.$el.setSelectionRange(t-1,t-1):a=i.slice(0,t-1)+i.slice(t);else if(u>0&&t>u){var p=this.isDecimalMode()&&(this.minFractionDigits||0)<f?``:`0`;a=i.slice(0,t-1)+p+i.slice(t)}else d===1?(a=i.slice(0,t-1)+`0`+i.slice(t),a=this.parseValue(a)>0?a:``):a=i.slice(0,t-1)+i.slice(t)}this.updateValue(e,a,null,`delete-single`)}else a=this.deleteRange(i,t,n),this.updateValue(e,a,null,`delete-range`);break;case`Delete`:if(e.preventDefault(),t===n){var m=i.charAt(t),h=this.getDecimalCharIndexes(i),g=h.decimalCharIndex,_=h.decimalCharIndexWithoutPrefix;if(this.isNumeralChar(m)){var v=this.getDecimalLength(i);if(this._group.test(m))this._group.lastIndex=0,a=i.slice(0,t)+i.slice(t+2);else if(this._decimal.test(m))this._decimal.lastIndex=0,v?this.$refs.input.$el.setSelectionRange(t+1,t+1):a=i.slice(0,t)+i.slice(t+1);else if(g>0&&t>g){var y=this.isDecimalMode()&&(this.minFractionDigits||0)<v?``:`0`;a=i.slice(0,t)+y+i.slice(t+1)}else _===1?(a=i.slice(0,t)+`0`+i.slice(t+1),a=this.parseValue(a)>0?a:``):a=i.slice(0,t)+i.slice(t+1)}this.updateValue(e,a,null,`delete-back-single`)}else a=this.deleteRange(i,t,n),this.updateValue(e,a,null,`delete-range`);break;case`Home`:e.preventDefault(),Pc(this.min)&&this.updateModel(e,this.min);break;case`End`:e.preventDefault(),Pc(this.max)&&this.updateModel(e,this.max)}}}},onInputKeyPress:function(e){if(!this.readonly){var t=e.key,n=this.isDecimalSign(t),r=this.isMinusSign(t);e.code!==`Enter`&&e.preventDefault(),(Number(t)>=0&&Number(t)<=9||r||n)&&this.insert(e,t,{isDecimalSign:n,isMinusSign:r})}},onPaste:function(e){if(!(this.readonly||this.disabled)){e.preventDefault();var t=(e.clipboardData||window.clipboardData).getData(`Text`);if(!(this.inputId===`integeronly`&&/[^\d-]/.test(t))&&t){var n=this.parseValue(t);n!=null&&this.insert(e,n.toString())}}},onClearClick:function(e){this.updateModel(e,null),this.$refs.input.$el.focus()},allowMinusSign:function(){return this.min===null||this.min<0},isMinusSign:function(e){return this._minusSign.test(e)||e===`-`?(this._minusSign.lastIndex=0,!0):!1},isDecimalSign:function(e){var t;return(t=this.locale)!=null&&t.includes(`fr`)&&[`.`,`,`].includes(e)||this._decimal.test(e)?(this._decimal.lastIndex=0,!0):!1},isDecimalMode:function(){return this.mode===`decimal`},getDecimalCharIndexes:function(e){var t=e.search(this._decimal);this._decimal.lastIndex=0;var n=e.replace(this._prefix,``).trim().replace(/\s/g,``).replace(this._currency,``).search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:t,decimalCharIndexWithoutPrefix:n}},getCharIndexes:function(e){var t=e.search(this._decimal);this._decimal.lastIndex=0;var n=e.search(this._minusSign);this._minusSign.lastIndex=0;var r=e.search(this._suffix);this._suffix.lastIndex=0;var i=e.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:t,minusCharIndex:n,suffixCharIndex:r,currencyCharIndex:i}},insert:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{isDecimalSign:!1,isMinusSign:!1},r=t.search(this._minusSign);if(this._minusSign.lastIndex=0,this.allowMinusSign()||r===-1){var i=this.$refs.input.$el.selectionStart,a=this.$refs.input.$el.selectionEnd,o=this.$refs.input.$el.value.trim(),s=this.getCharIndexes(o),c=s.decimalCharIndex,l=s.minusCharIndex,u=s.suffixCharIndex,d=s.currencyCharIndex,f;if(n.isMinusSign){var p=l===-1;(i===0||i===d+1)&&(f=o,(p||a!==0)&&(f=this.insertText(o,t,0,a)),this.updateValue(e,f,t,`insert`))}else if(n.isDecimalSign)c>0&&i===c?this.updateValue(e,o,t,`insert`):(c>i&&c<a||c===-1&&this.maxFractionDigits)&&(f=this.insertText(o,t,i,a),this.updateValue(e,f,t,`insert`));else{var m=this.numberFormat.resolvedOptions().maximumFractionDigits,h=i===a?`insert`:`range-insert`;if(c>0&&i>c){if(i+t.length-(c+1)<=m){var g=d>=i?d-1:u>=i?u:o.length;f=o.slice(0,i)+t+o.slice(i+t.length,g)+o.slice(g),this.updateValue(e,f,t,h)}}else f=this.insertText(o,t,i,a),this.updateValue(e,f,t,h)}}},insertText:function(e,t,n,r){if((t===`.`?t:t.split(`.`)).length===2){var i=e.slice(n,r).search(this._decimal);return this._decimal.lastIndex=0,i>0?e.slice(0,n)+this.formatValue(t)+e.slice(r):this.formatValue(t)||e}return r-n===e.length?this.formatValue(t):n===0?t+e.slice(r):r===e.length?e.slice(0,n)+t:e.slice(0,n)+t+e.slice(r)},deleteRange:function(e,t,n){return n-t===e.length?``:t===0?e.slice(n):n===e.length?e.slice(0,t):e.slice(0,t)+e.slice(n)},initCursor:function(){var e=this.$refs.input.$el.selectionStart,t=this.$refs.input.$el.value,n=t.length,r=null,i=(this.prefixChar||``).length;t=t.replace(this._prefix,``),e-=i;var a=t.charAt(e);if(this.isNumeralChar(a))return e+i;for(var o=e-1;o>=0;){if(a=t.charAt(o),this.isNumeralChar(a)){r=o+i;break}o--}if(r!==null)this.$refs.input.$el.setSelectionRange(r+1,r+1);else{for(o=e;o<n;){if(a=t.charAt(o),this.isNumeralChar(a)){r=o+i;break}o++}r!==null&&this.$refs.input.$el.setSelectionRange(r,r)}return r||0},onInputClick:function(){var e=this.$refs.input.$el.value;!this.readonly&&e!==Ll()&&this.initCursor()},isNumeralChar:function(e){return e.length===1&&(this._numeral.test(e)||this._decimal.test(e)||this._group.test(e)||this._minusSign.test(e))?(this.resetRegex(),!0):!1},resetRegex:function(){this._numeral.lastIndex=0,this._decimal.lastIndex=0,this._group.lastIndex=0,this._minusSign.lastIndex=0},updateValue:function(e,t,n,r){var i=this.$refs.input.$el.value,a=null;t!=null&&(a=this.parseValue(t),a=!a&&!this.allowEmpty?0:a,this.updateInput(a,n,r,t),this.handleOnInput(e,i,a))},handleOnInput:function(e,t,n){if(this.isValueChanged(t,n)){var r,i;this.$emit(`input`,{originalEvent:e,value:n,formattedValue:t}),(r=(i=this.formField).onInput)==null||r.call(i,{originalEvent:e,value:n})}},isValueChanged:function(e,t){return t===null&&e!==null||t!=null&&t!==(typeof e==`string`?this.parseValue(e):e)},validateValue:function(e){return e===`-`||e==null?null:this.min!=null&&e<this.min?this.min:this.max!=null&&e>this.max?this.max:e},updateInput:function(e,t,n,r){var i;t||=``;var a=this.$refs.input.$el.value,o=this.formatValue(e),s=a.length;if(o!==r&&(o=this.concatValues(o,r)),s===0){this.$refs.input.$el.value=o,this.$refs.input.$el.setSelectionRange(0,0);var c=this.initCursor()+t.length;this.$refs.input.$el.setSelectionRange(c,c)}else{var l=this.$refs.input.$el.selectionStart,u=this.$refs.input.$el.selectionEnd;this.$refs.input.$el.value=o;var d=o.length;if(n===`range-insert`){var f=this.parseValue((a||``).slice(0,l)),p=(f===null?``:f.toString()).split(``).join(`(${this.groupChar})?`),m=new RegExp(p,`g`);m.test(o);var h=t.split(``).join(`(${this.groupChar})?`),g=new RegExp(h,`g`);g.test(o.slice(m.lastIndex)),u=m.lastIndex+g.lastIndex,this.$refs.input.$el.setSelectionRange(u,u)}else if(d===s)n===`insert`||n===`delete-back-single`?this.$refs.input.$el.setSelectionRange(u+1,u+1):n===`delete-single`?this.$refs.input.$el.setSelectionRange(u-1,u-1):(n===`delete-range`||n===`spin`)&&this.$refs.input.$el.setSelectionRange(u,u);else if(n===`delete-back-single`){var _=a.charAt(u-1),v=a.charAt(u),y=s-d,b=this._group.test(v);b&&y===1?u+=1:!b&&this.isNumeralChar(_)&&(u+=-1*y+1),this._group.lastIndex=0,this.$refs.input.$el.setSelectionRange(u,u)}else if(a===`-`&&n===`insert`){this.$refs.input.$el.setSelectionRange(0,0);var x=this.initCursor()+t.length+1;this.$refs.input.$el.setSelectionRange(x,x)}else u+=d-s,this.$refs.input.$el.setSelectionRange(u,u)}this.$refs.input.$el.setAttribute(`aria-valuenow`,e),(i=this.$refs.clearIcon)!=null&&(i=i.$el)!=null&&i.style&&(this.$refs.clearIcon.$el.style.display=Ac(o)?`none`:`block`)},concatValues:function(e,t){if(e&&t){var n=t.search(this._decimal);return this._decimal.lastIndex=0,this.suffixChar?n===-1?e:e.replace(this.suffixChar,``).split(this._decimal)[0]+t.replace(this.suffixChar,``).slice(n)+this.suffixChar:n===-1?e:e.split(this._decimal)[0]+t.slice(n)}return e},getDecimalLength:function(e){if(e){var t=e.split(this._decimal);if(t.length===2)return t[1].replace(this._suffix,``).trim().replace(/\s/g,``).replace(this._currency,``).length}return 0},updateModel:function(e,t){this.writeValue(t,e)},onInputFocus:function(e){this.focused=!0,!this.disabled&&!this.readonly&&this.$refs.input.$el.value!==Ll()&&this.highlightOnFocus&&e.target.select(),this.$emit(`focus`,e)},onInputBlur:function(e){var t,n;this.focused=!1;var r=e.target,i=this.validateValue(this.parseValue(r.value));this.$emit(`blur`,{originalEvent:e,value:r.value}),(t=(n=this.formField).onBlur)==null||t.call(n,e),r.value=this.formatValue(i),r.setAttribute(`aria-valuenow`,i),this.updateModel(e,i),!this.disabled&&!this.readonly&&this.highlightOnFocus&&Sl()},clearTimer:function(){this.timer&&clearTimeout(this.timer)},maxBoundry:function(){return this.d_value>=this.max},minBoundry:function(){return this.d_value<=this.min}},computed:{upButtonListeners:function(){var e=this;return{mousedown:function(t){return e.onUpButtonMouseDown(t)},mouseup:function(t){return e.onUpButtonMouseUp(t)},mouseleave:function(t){return e.onUpButtonMouseLeave(t)},keydown:function(t){return e.onUpButtonKeyDown(t)},keyup:function(t){return e.onUpButtonKeyUp(t)}}},downButtonListeners:function(){var e=this;return{mousedown:function(t){return e.onDownButtonMouseDown(t)},mouseup:function(t){return e.onDownButtonMouseUp(t)},mouseleave:function(t){return e.onDownButtonMouseLeave(t)},keydown:function(t){return e.onDownButtonKeyDown(t)},keyup:function(t){return e.onDownButtonKeyUp(t)}}},formattedValue:function(){var e=!this.d_value&&!this.allowEmpty?0:this.d_value;return this.formatValue(e)},getFormatter:function(){return this.numberFormat},dataP:function(){return tl(iG(iG({invalid:this.$invalid,fluid:this.$fluid,filled:this.$variant===`filled`},this.size,this.size),this.buttonLayout,this.showButtons&&this.buttonLayout))}},components:{InputText:ib,AngleUpIcon:GW,AngleDownIcon:LW,TimesIcon:Dv}},mG=[`data-p`],hG=[`data-p`],gG=[`disabled`,`data-p`],_G=[`disabled`,`data-p`],vG=[`disabled`,`data-p`],yG=[`disabled`,`data-p`];function bG(e,t,n,r,i,a){var o=F(`InputText`),s=F(`TimesIcon`);return z(),B(`span`,K({class:e.cx(`root`)},e.ptmi(`root`),{"data-p":a.dataP}),[U(o,{ref:`input`,id:e.inputId,name:e.$formName,role:`spinbutton`,class:k([e.cx(`pcInputText`),e.inputClass]),style:de(e.inputStyle),defaultValue:a.formattedValue,"aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":e.d_value,inputmode:e.mode===`decimal`&&!e.minFractionDigits?`numeric`:`decimal`,disabled:e.disabled,readonly:e.readonly,placeholder:e.placeholder,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,required:e.required,size:e.size,invalid:e.invalid,variant:e.variant,onInput:a.onUserInput,onKeydown:a.onInputKeyDown,onKeypress:a.onInputKeyPress,onPaste:a.onPaste,onClick:a.onInputClick,onFocus:a.onInputFocus,onBlur:a.onInputBlur,pt:e.ptm(`pcInputText`),unstyled:e.unstyled,"data-p":a.dataP},null,8,`id.name.class.style.defaultValue.aria-valuemin.aria-valuemax.aria-valuenow.inputmode.disabled.readonly.placeholder.aria-labelledby.aria-label.required.size.invalid.variant.onInput.onKeydown.onKeypress.onPaste.onClick.onFocus.onBlur.pt.unstyled.data-p`.split(`.`)),e.showClear&&e.buttonLayout!==`vertical`?L(e.$slots,`clearicon`,{key:0,class:k(e.cx(`clearIcon`)),clearCallback:a.onClearClick},function(){return[U(s,K({ref:`clearIcon`,class:[e.cx(`clearIcon`)],onClick:a.onClearClick},e.ptm(`clearIcon`)),null,16,[`class`,`onClick`])]}):G(``,!0),e.showButtons&&e.buttonLayout===`stacked`?(z(),B(`span`,K({key:1,class:e.cx(`buttonGroup`)},e.ptm(`buttonGroup`),{"data-p":a.dataP}),[L(e.$slots,`incrementbutton`,{listeners:a.upButtonListeners},function(){return[H(`button`,K({class:[e.cx(`incrementButton`),e.incrementButtonClass]},hi(a.upButtonListeners,!0),{disabled:e.disabled,tabindex:-1,"aria-hidden":`true`,type:`button`},e.ptm(`incrementButton`),{"data-p":a.dataP}),[L(e.$slots,e.$slots.incrementicon?`incrementicon`:`incrementbuttonicon`,{},function(){return[(z(),V(li(e.incrementIcon||e.incrementButtonIcon?`span`:`AngleUpIcon`),K({class:[e.incrementIcon,e.incrementButtonIcon]},e.ptm(`incrementIcon`),{"data-pc-section":`incrementicon`}),null,16,[`class`]))]})],16,gG)]}),L(e.$slots,`decrementbutton`,{listeners:a.downButtonListeners},function(){return[H(`button`,K({class:[e.cx(`decrementButton`),e.decrementButtonClass]},hi(a.downButtonListeners,!0),{disabled:e.disabled,tabindex:-1,"aria-hidden":`true`,type:`button`},e.ptm(`decrementButton`),{"data-p":a.dataP}),[L(e.$slots,e.$slots.decrementicon?`decrementicon`:`decrementbuttonicon`,{},function(){return[(z(),V(li(e.decrementIcon||e.decrementButtonIcon?`span`:`AngleDownIcon`),K({class:[e.decrementIcon,e.decrementButtonIcon]},e.ptm(`decrementIcon`),{"data-pc-section":`decrementicon`}),null,16,[`class`]))]})],16,_G)]})],16,hG)):G(``,!0),L(e.$slots,`incrementbutton`,{listeners:a.upButtonListeners},function(){return[e.showButtons&&e.buttonLayout!==`stacked`?(z(),B(`button`,K({key:0,class:[e.cx(`incrementButton`),e.incrementButtonClass]},hi(a.upButtonListeners,!0),{disabled:e.disabled,tabindex:-1,"aria-hidden":`true`,type:`button`},e.ptm(`incrementButton`),{"data-p":a.dataP}),[L(e.$slots,e.$slots.incrementicon?`incrementicon`:`incrementbuttonicon`,{},function(){return[(z(),V(li(e.incrementIcon||e.incrementButtonIcon?`span`:`AngleUpIcon`),K({class:[e.incrementIcon,e.incrementButtonIcon]},e.ptm(`incrementIcon`),{"data-pc-section":`incrementicon`}),null,16,[`class`]))]})],16,vG)):G(``,!0)]}),L(e.$slots,`decrementbutton`,{listeners:a.downButtonListeners},function(){return[e.showButtons&&e.buttonLayout!==`stacked`?(z(),B(`button`,K({key:0,class:[e.cx(`decrementButton`),e.decrementButtonClass]},hi(a.downButtonListeners,!0),{disabled:e.disabled,tabindex:-1,"aria-hidden":`true`,type:`button`},e.ptm(`decrementButton`),{"data-p":a.dataP}),[L(e.$slots,e.$slots.decrementicon?`decrementicon`:`decrementbuttonicon`,{},function(){return[(z(),V(li(e.decrementIcon||e.decrementButtonIcon?`span`:`AngleDownIcon`),K({class:[e.decrementIcon,e.decrementButtonIcon]},e.ptm(`decrementIcon`),{"data-pc-section":`decrementicon`}),null,16,[`class`]))]})],16,yG)):G(``,!0)]})],16,mG)}pG.render=bG;var xG={name:`AngleDoubleRightIcon`,extends:Ev};function SG(e){return EG(e)||TG(e)||wG(e)||CG()}function CG(){throw TypeError(`Invalid attempt to spread non-iterable instance.
2397
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wG(e,t){if(e){if(typeof e==`string`)return DG(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?DG(e,t):void 0}}function TG(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function EG(e){if(Array.isArray(e))return DG(e)}function DG(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function OG(e,t,n,r,i,a){return z(),B(`svg`,K({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),SG(t[0]||=[H(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M7.68757 11.1451C7.7791 11.1831 7.8773 11.2024 7.9764 11.2019C8.07769 11.1985 8.17721 11.1745 8.26886 11.1312C8.36052 11.088 8.44238 11.0265 8.50943 10.9505L12.0294 7.49085C12.1707 7.34942 12.25 7.15771 12.25 6.95782C12.25 6.75794 12.1707 6.56622 12.0294 6.42479L8.50943 2.90479C8.37014 2.82159 8.20774 2.78551 8.04633 2.80192C7.88491 2.81833 7.73309 2.88635 7.6134 2.99588C7.4937 3.10541 7.41252 3.25061 7.38189 3.40994C7.35126 3.56927 7.37282 3.73423 7.44337 3.88033L10.4605 6.89748L7.44337 9.91463C7.30212 10.0561 7.22278 10.2478 7.22278 10.4477C7.22278 10.6475 7.30212 10.8393 7.44337 10.9807C7.51301 11.0512 7.59603 11.1071 7.68757 11.1451ZM1.94207 10.9505C2.07037 11.0968 2.25089 11.1871 2.44493 11.2019C2.63898 11.1871 2.81949 11.0968 2.94779 10.9505L6.46779 7.49085C6.60905 7.34942 6.68839 7.15771 6.68839 6.95782C6.68839 6.75793 6.60905 6.56622 6.46779 6.42479L2.94779 2.90479C2.80704 2.83757 2.6489 2.81563 2.49517 2.84201C2.34143 2.86839 2.19965 2.94178 2.08936 3.05207C1.97906 3.16237 1.90567 3.30415 1.8793 3.45788C1.85292 3.61162 1.87485 3.76975 1.94207 3.9105L4.95922 6.92765L1.94207 9.9448C1.81838 10.0831 1.75 10.2621 1.75 10.4477C1.75 10.6332 1.81838 10.8122 1.94207 10.9505Z`,fill:`currentColor`},null,-1)]),16)}xG.render=OG;var kG={name:`AngleRightIcon`,extends:Ev};function AG(e){return PG(e)||NG(e)||MG(e)||jG()}function jG(){throw TypeError(`Invalid attempt to spread non-iterable instance.
2398
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MG(e,t){if(e){if(typeof e==`string`)return FG(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?FG(e,t):void 0}}function NG(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function PG(e){if(Array.isArray(e))return FG(e)}function FG(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function IG(e,t,n,r,i,a){return z(),B(`svg`,K({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),AG(t[0]||=[H(`path`,{d:`M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z`,fill:`currentColor`},null,-1)]),16)}kG.render=IG;var LG={name:`AngleLeftIcon`,extends:Ev};function RG(e){return HG(e)||VG(e)||BG(e)||zG()}function zG(){throw TypeError(`Invalid attempt to spread non-iterable instance.
2399
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BG(e,t){if(e){if(typeof e==`string`)return UG(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?UG(e,t):void 0}}function VG(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function HG(e){if(Array.isArray(e))return UG(e)}function UG(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function WG(e,t,n,r,i,a){return z(),B(`svg`,K({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),RG(t[0]||=[H(`path`,{d:`M8.75 11.185C8.65146 11.1854 8.55381 11.1662 8.4628 11.1284C8.37179 11.0906 8.28924 11.0351 8.22 10.965L4.72 7.46496C4.57955 7.32433 4.50066 7.13371 4.50066 6.93496C4.50066 6.73621 4.57955 6.54558 4.72 6.40496L8.22 2.93496C8.36095 2.84357 8.52851 2.80215 8.69582 2.81733C8.86312 2.83252 9.02048 2.90344 9.14268 3.01872C9.26487 3.134 9.34483 3.28696 9.36973 3.4531C9.39463 3.61924 9.36303 3.78892 9.28 3.93496L6.28 6.93496L9.28 9.93496C9.42045 10.0756 9.49934 10.2662 9.49934 10.465C9.49934 10.6637 9.42045 10.8543 9.28 10.995C9.13526 11.1257 8.9448 11.1939 8.75 11.185Z`,fill:`currentColor`},null,-1)]),16)}LG.render=WG;var GG={name:`BasePaginator`,extends:E_,props:{totalRecords:{type:Number,default:0},rows:{type:Number,default:0},first:{type:Number,default:0},pageLinkSize:{type:Number,default:5},rowsPerPageOptions:{type:Array,default:null},template:{type:[Object,String],default:`FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown`},currentPageReportTemplate:{type:null,default:`({currentPage} of {totalPages})`},alwaysShow:{type:Boolean,default:!0}},style:OW,provide:function(){return{$pcPaginator:this,$parentInstance:this}}},KG={name:`CurrentPageReport`,hostName:`Paginator`,extends:E_,props:{pageCount:{type:Number,default:0},currentPage:{type:Number,default:0},page:{type:Number,default:0},first:{type:Number,default:0},rows:{type:Number,default:0},totalRecords:{type:Number,default:0},template:{type:String,default:`({currentPage} of {totalPages})`}},computed:{text:function(){return this.template.replace(`{currentPage}`,this.currentPage).replace(`{totalPages}`,this.pageCount).replace(`{first}`,this.pageCount>0?this.first+1:0).replace(`{last}`,Math.min(this.first+this.rows,this.totalRecords)).replace(`{rows}`,this.rows).replace(`{totalRecords}`,this.totalRecords)}}};function qG(e,t,n,r,i,a){return z(),B(`span`,K({class:e.cx(`current`)},e.ptm(`current`)),A(a.text),17)}KG.render=qG;var JG={name:`FirstPageLink`,hostName:`Paginator`,extends:E_,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.$attrs.disabled}})}},components:{AngleDoubleLeftIcon:kW},directives:{ripple:$_}};function YG(e,t,n,r,i,a){var o=ui(`ripple`);return Yn((z(),B(`button`,K({class:e.cx(`first`),type:`button`},a.getPTOptions(`first`),{"data-pc-group-section":`pagebutton`}),[(z(),V(li(n.template||`AngleDoubleLeftIcon`),K({class:e.cx(`firstIcon`)},a.getPTOptions(`firstIcon`)),null,16,[`class`]))],16)),[[o]])}JG.render=YG;var XG={name:`JumpToPageDropdown`,hostName:`Paginator`,extends:E_,emits:[`page-change`],props:{page:Number,pageCount:Number,disabled:Boolean,templates:null},methods:{onChange:function(e){this.$emit(`page-change`,e)}},computed:{pageOptions:function(){for(var e=[],t=0;t<this.pageCount;t++)e.push({label:String(t+1),value:t});return e}},components:{JTPSelect:mx}};function ZG(e,t,n,r,i,a){var o=F(`JTPSelect`);return z(),V(o,{modelValue:n.page,options:a.pageOptions,optionLabel:`label`,optionValue:`value`,"onUpdate:modelValue":t[0]||=function(e){return a.onChange(e)},class:k(e.cx(`pcJumpToPageDropdown`)),disabled:n.disabled,unstyled:e.unstyled,pt:e.ptm(`pcJumpToPageDropdown`),"data-pc-group-section":`pagedropdown`},pi({_:2},[n.templates.jumptopagedropdownicon?{name:`dropdownicon`,fn:N(function(e){return[(z(),V(li(n.templates.jumptopagedropdownicon),{class:k(e.class)},null,8,[`class`]))]}),key:`0`}:void 0]),1032,[`modelValue`,`options`,`class`,`disabled`,`unstyled`,`pt`])}XG.render=ZG;var QG={name:`JumpToPageInput`,hostName:`Paginator`,extends:E_,inheritAttrs:!1,emits:[`page-change`],props:{page:Number,pageCount:Number,disabled:Boolean},data:function(){return{d_page:this.page}},watch:{page:function(e){this.d_page=e}},methods:{onChange:function(e){e!==this.page&&(this.d_page=e,this.$emit(`page-change`,e-1))}},computed:{inputArialabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.jumpToPageInputLabel:void 0}},components:{JTPInput:pG}};function $G(e,t,n,r,i,a){var o=F(`JTPInput`);return z(),V(o,{ref:`jtpInput`,modelValue:i.d_page,class:k(e.cx(`pcJumpToPageInputText`)),"aria-label":a.inputArialabel,disabled:n.disabled,"onUpdate:modelValue":a.onChange,unstyled:e.unstyled,pt:e.ptm(`pcJumpToPageInputText`)},null,8,[`modelValue`,`class`,`aria-label`,`disabled`,`onUpdate:modelValue`,`unstyled`,`pt`])}QG.render=$G;var eK={name:`LastPageLink`,hostName:`Paginator`,extends:E_,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.$attrs.disabled}})}},components:{AngleDoubleRightIcon:xG},directives:{ripple:$_}};function tK(e,t,n,r,i,a){var o=ui(`ripple`);return Yn((z(),B(`button`,K({class:e.cx(`last`),type:`button`},a.getPTOptions(`last`),{"data-pc-group-section":`pagebutton`}),[(z(),V(li(n.template||`AngleDoubleRightIcon`),K({class:e.cx(`lastIcon`)},a.getPTOptions(`lastIcon`)),null,16,[`class`]))],16)),[[o]])}eK.render=tK;var nK={name:`NextPageLink`,hostName:`Paginator`,extends:E_,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.$attrs.disabled}})}},components:{AngleRightIcon:kG},directives:{ripple:$_}};function rK(e,t,n,r,i,a){var o=ui(`ripple`);return Yn((z(),B(`button`,K({class:e.cx(`next`),type:`button`},a.getPTOptions(`next`),{"data-pc-group-section":`pagebutton`}),[(z(),V(li(n.template||`AngleRightIcon`),K({class:e.cx(`nextIcon`)},a.getPTOptions(`nextIcon`)),null,16,[`class`]))],16)),[[o]])}nK.render=rK;var iK={name:`PageLinks`,hostName:`Paginator`,extends:E_,inheritAttrs:!1,emits:[`click`],props:{value:Array,page:Number},methods:{getPTOptions:function(e,t){return this.ptm(t,{context:{active:e===this.page}})},onPageLinkClick:function(e,t){this.$emit(`click`,{originalEvent:e,value:t})},ariaPageLabel:function(e){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g,e):void 0}},directives:{ripple:$_}},aK=[`aria-label`,`aria-current`,`onClick`,`data-p-active`];function oK(e,t,n,r,i,a){var o=ui(`ripple`);return z(),B(`span`,K({class:e.cx(`pages`)},e.ptm(`pages`)),[(z(!0),B(R,null,I(n.value,function(t){return Yn((z(),B(`button`,K({key:t,class:e.cx(`page`,{pageLink:t}),type:`button`,"aria-label":a.ariaPageLabel(t),"aria-current":t-1===n.page?`page`:void 0,onClick:function(e){return a.onPageLinkClick(e,t)}},{ref_for:!0},a.getPTOptions(t-1,`page`),{"data-p-active":t-1===n.page}),[W(A(t),1)],16,aK)),[[o]])}),128))],16)}iK.render=oK;var sK={name:`PrevPageLink`,hostName:`Paginator`,extends:E_,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.$attrs.disabled}})}},components:{AngleLeftIcon:LG},directives:{ripple:$_}};function cK(e,t,n,r,i,a){var o=ui(`ripple`);return Yn((z(),B(`button`,K({class:e.cx(`prev`),type:`button`},a.getPTOptions(`prev`),{"data-pc-group-section":`pagebutton`}),[(z(),V(li(n.template||`AngleLeftIcon`),K({class:e.cx(`prevIcon`)},a.getPTOptions(`prevIcon`)),null,16,[`class`]))],16)),[[o]])}sK.render=cK;var lK={name:`RowsPerPageDropdown`,hostName:`Paginator`,extends:E_,emits:[`rows-change`],props:{options:Array,rows:Number,disabled:Boolean,templates:null},methods:{onChange:function(e){this.$emit(`rows-change`,e)}},computed:{rowsOptions:function(){var e=[];if(this.options)for(var t=0;t<this.options.length;t++)e.push({label:String(this.options[t]),value:this.options[t]});return e}},components:{RPPSelect:mx}};function uK(e,t,n,r,i,a){var o=F(`RPPSelect`);return z(),V(o,{modelValue:n.rows,options:a.rowsOptions,optionLabel:`label`,optionValue:`value`,"onUpdate:modelValue":t[0]||=function(e){return a.onChange(e)},class:k(e.cx(`pcRowPerPageDropdown`)),disabled:n.disabled,unstyled:e.unstyled,pt:e.ptm(`pcRowPerPageDropdown`),"data-pc-group-section":`pagedropdown`},pi({_:2},[n.templates.rowsperpagedropdownicon?{name:`dropdownicon`,fn:N(function(e){return[(z(),V(li(n.templates.rowsperpagedropdownicon),{class:k(e.class)},null,8,[`class`]))]}),key:`0`}:void 0]),1032,[`modelValue`,`options`,`class`,`disabled`,`unstyled`,`pt`])}lK.render=uK;function dK(e){"@babel/helpers - typeof";return dK=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},dK(e)}function fK(e,t){return _K(e)||gK(e,t)||mK(e,t)||pK()}function pK(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
2400
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mK(e,t){if(e){if(typeof e==`string`)return hK(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hK(e,t):void 0}}function hK(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function gK(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function _K(e){if(Array.isArray(e))return e}var vK={name:`Paginator`,extends:GG,inheritAttrs:!1,emits:[`update:first`,`update:rows`,`page`],data:function(){return{d_first:this.first,d_rows:this.rows}},watch:{first:function(e){this.d_first=e},rows:function(e){this.d_rows=e},totalRecords:function(e){this.page>0&&e&&this.d_first>=e&&this.changePage(this.pageCount-1)}},mounted:function(){this.createStyle()},methods:{changePage:function(e){var t=this.pageCount;if(e>=0&&e<t){this.d_first=this.d_rows*e;var n={page:e,first:this.d_first,rows:this.d_rows,pageCount:t};this.$emit(`update:first`,this.d_first),this.$emit(`update:rows`,this.d_rows),this.$emit(`page`,n)}},changePageToFirst:function(e){this.isFirstPage||this.changePage(0),e.preventDefault()},changePageToPrev:function(e){this.changePage(this.page-1),e.preventDefault()},changePageLink:function(e){this.changePage(e.value-1),e.originalEvent.preventDefault()},changePageToNext:function(e){this.changePage(this.page+1),e.preventDefault()},changePageToLast:function(e){this.isLastPage||this.changePage(this.pageCount-1),e.preventDefault()},onRowChange:function(e){this.d_rows=e,this.changePage(this.page)},createStyle:function(){var e=this;if(this.hasBreakpoints()&&!this.isUnstyled){var t;this.styleElement=document.createElement(`style`),this.styleElement.type=`text/css`,Wl(this.styleElement,`nonce`,(t=this.$primevue)==null||(t=t.config)==null||(t=t.csp)==null?void 0:t.nonce),document.body.appendChild(this.styleElement);var n=``,r=Object.keys(this.template),i={};r.sort(function(e,t){return parseInt(e)-parseInt(t)}).forEach(function(t){i[t]=e.template[t]});for(var a=0,o=Object.entries(Object.entries(i));a<o.length;a++){var s=fK(o[a],2),c=s[0],l=fK(s[1],1)[0],u=void 0,d=void 0;d=l!=="default"&&typeof Object.keys(i)[c-1]==`string`?Number(Object.keys(i)[c-1].slice(0,-2))+1+`px`:Object.keys(i)[c-1],u=Object.entries(i)[c-1]?`and (min-width:${d})`:``,n+=l==="default"?`
2401
+ @media screen ${u} {
2402
+ .p-paginator[${this.$attrSelector}],
2403
+ display: flex;
2404
+ }
2405
+ }
2406
+ `:`
2407
+ .p-paginator-${l} {
2408
+ display: none;
2409
+ }
2410
+ @media screen ${u} and (max-width: ${l}) {
2411
+ .p-paginator-${l} {
2412
+ display: flex;
2413
+ }
2414
+
2415
+ .p-paginator-default{
2416
+ display: none;
2417
+ }
2418
+ }
2419
+ `}this.styleElement.innerHTML=n}},hasBreakpoints:function(){return dK(this.template)===`object`},getAriaLabel:function(e){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria[e]:void 0}},computed:{templateItems:function(){var e={};if(this.hasBreakpoints()){for(var t in e=this.template,e.default||(e.default=`FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown`),e)e[t]=this.template[t].split(` `).map(function(e){return e.trim()});return e}return e.default=this.template.split(` `).map(function(e){return e.trim()}),e},page:function(){return Math.floor(this.d_first/this.d_rows)},pageCount:function(){return Math.ceil(this.totalRecords/this.d_rows)},isFirstPage:function(){return this.page===0},isLastPage:function(){return this.page===this.pageCount-1},calculatePageLinkBoundaries:function(){var e=this.pageCount,t=Math.min(this.pageLinkSize,e),n=Math.max(0,Math.ceil(this.page-t/2)),r=Math.min(e-1,n+t-1),i=this.pageLinkSize-(r-n+1);return n=Math.max(0,n-i),[n,r]},pageLinks:function(){for(var e=[],t=this.calculatePageLinkBoundaries,n=t[0],r=t[1],i=n;i<=r;i++)e.push(i+1);return e},currentState:function(){return{page:this.page,first:this.d_first,rows:this.d_rows}},empty:function(){return this.pageCount===0},currentPage:function(){return this.pageCount>0?this.page+1:0},last:function(){return Math.min(this.d_first+this.rows,this.totalRecords)}},components:{CurrentPageReport:KG,FirstPageLink:JG,LastPageLink:eK,NextPageLink:nK,PageLinks:iK,PrevPageLink:sK,RowsPerPageDropdown:lK,JumpToPageDropdown:XG,JumpToPageInput:QG}};function yK(e,t,n,r,i,a){var o=F(`FirstPageLink`),s=F(`PrevPageLink`),c=F(`NextPageLink`),l=F(`LastPageLink`),u=F(`PageLinks`),d=F(`CurrentPageReport`),f=F(`RowsPerPageDropdown`),p=F(`JumpToPageDropdown`),m=F(`JumpToPageInput`);return e.alwaysShow||a.pageLinks&&a.pageLinks.length>1?(z(),B(`nav`,ge(K({key:0},e.ptmi(`paginatorContainer`))),[(z(!0),B(R,null,I(a.templateItems,function(n,r){return z(),B(`div`,K({key:r,ref_for:!0,ref:`paginator`,class:e.cx(`paginator`,{key:r})},{ref_for:!0},e.ptm(`root`)),[e.$slots.container?L(e.$slots,`container`,{key:0,first:i.d_first+1,last:a.last,rows:i.d_rows,page:a.page,pageCount:a.pageCount,pageLinks:a.pageLinks,totalRecords:e.totalRecords,firstPageCallback:a.changePageToFirst,lastPageCallback:a.changePageToLast,prevPageCallback:a.changePageToPrev,nextPageCallback:a.changePageToNext,rowChangeCallback:a.onRowChange,changePageCallback:a.changePage}):(z(),B(R,{key:1},[e.$slots.start?(z(),B(`div`,K({key:0,class:e.cx(`contentStart`)},{ref_for:!0},e.ptm(`contentStart`)),[L(e.$slots,`start`,{state:a.currentState})],16)):G(``,!0),H(`div`,K({class:e.cx(`content`)},{ref_for:!0},e.ptm(`content`)),[(z(!0),B(R,null,I(n,function(n){return z(),B(R,{key:n},[n===`FirstPageLink`?(z(),V(o,{key:0,"aria-label":a.getAriaLabel(`firstPageLabel`),template:e.$slots.firsticon||e.$slots.firstpagelinkicon,onClick:t[0]||=function(e){return a.changePageToFirst(e)},disabled:a.isFirstPage||a.empty,unstyled:e.unstyled,pt:e.pt},null,8,[`aria-label`,`template`,`disabled`,`unstyled`,`pt`])):n===`PrevPageLink`?(z(),V(s,{key:1,"aria-label":a.getAriaLabel(`prevPageLabel`),template:e.$slots.previcon||e.$slots.prevpagelinkicon,onClick:t[1]||=function(e){return a.changePageToPrev(e)},disabled:a.isFirstPage||a.empty,unstyled:e.unstyled,pt:e.pt},null,8,[`aria-label`,`template`,`disabled`,`unstyled`,`pt`])):n===`NextPageLink`?(z(),V(c,{key:2,"aria-label":a.getAriaLabel(`nextPageLabel`),template:e.$slots.nexticon||e.$slots.nextpagelinkicon,onClick:t[2]||=function(e){return a.changePageToNext(e)},disabled:a.isLastPage||a.empty,unstyled:e.unstyled,pt:e.pt},null,8,[`aria-label`,`template`,`disabled`,`unstyled`,`pt`])):n===`LastPageLink`?(z(),V(l,{key:3,"aria-label":a.getAriaLabel(`lastPageLabel`),template:e.$slots.lasticon||e.$slots.lastpagelinkicon,onClick:t[3]||=function(e){return a.changePageToLast(e)},disabled:a.isLastPage||a.empty,unstyled:e.unstyled,pt:e.pt},null,8,[`aria-label`,`template`,`disabled`,`unstyled`,`pt`])):n===`PageLinks`?(z(),V(u,{key:4,"aria-label":a.getAriaLabel(`pageLabel`),value:a.pageLinks,page:a.page,onClick:t[4]||=function(e){return a.changePageLink(e)},unstyled:e.unstyled,pt:e.pt},null,8,[`aria-label`,`value`,`page`,`unstyled`,`pt`])):n===`CurrentPageReport`?(z(),V(d,{key:5,"aria-live":`polite`,template:e.currentPageReportTemplate,currentPage:a.currentPage,page:a.page,pageCount:a.pageCount,first:i.d_first,rows:i.d_rows,totalRecords:e.totalRecords,unstyled:e.unstyled,pt:e.pt},null,8,[`template`,`currentPage`,`page`,`pageCount`,`first`,`rows`,`totalRecords`,`unstyled`,`pt`])):n===`RowsPerPageDropdown`&&e.rowsPerPageOptions?(z(),V(f,{key:6,"aria-label":a.getAriaLabel(`rowsPerPageLabel`),rows:i.d_rows,options:e.rowsPerPageOptions,onRowsChange:t[5]||=function(e){return a.onRowChange(e)},disabled:a.empty,templates:e.$slots,unstyled:e.unstyled,pt:e.pt},null,8,[`aria-label`,`rows`,`options`,`disabled`,`templates`,`unstyled`,`pt`])):n===`JumpToPageDropdown`?(z(),V(p,{key:7,"aria-label":a.getAriaLabel(`jumpToPageDropdownLabel`),page:a.page,pageCount:a.pageCount,onPageChange:t[6]||=function(e){return a.changePage(e)},disabled:a.empty,templates:e.$slots,unstyled:e.unstyled,pt:e.pt},null,8,[`aria-label`,`page`,`pageCount`,`disabled`,`templates`,`unstyled`,`pt`])):n===`JumpToPageInput`?(z(),V(m,{key:8,page:a.currentPage,onPageChange:t[7]||=function(e){return a.changePage(e)},disabled:a.empty,unstyled:e.unstyled,pt:e.pt},null,8,[`page`,`disabled`,`unstyled`,`pt`])):G(``,!0)],64)}),128))],16),e.$slots.end?(z(),B(`div`,K({key:1,class:e.cx(`contentEnd`)},{ref_for:!0},e.ptm(`contentEnd`)),[L(e.$slots,`end`,{state:a.currentState})],16)):G(``,!0)],64))],16)}),128))],16)):G(``,!0)}vK.render=yK;var bK=0,xK=Sc(`runs`,{state:()=>({page:null,query:{},loading:!1,error:null}),actions:{async load(e){e??=this.query;let t=++bK;this.query=e,this.loading=!0;try{let n=await Ew(e);if(t!==bK)return;this.page=n,this.error=null}catch(e){if(t!==bK)return;this.error=X(e,`Unable to load runs`)}finally{t===bK&&(this.loading=!1)}}}}),SK={class:`page runs-page`},CK={key:0,class:`list-toolbar runs-toolbar`},wK={key:1,class:`page-error`},TK=[`aria-busy`],EK={key:0,class:`list-head`},DK={key:1,class:`data-list`},OK={key:2,class:`empty-state wide`},kK={key:3,class:`empty-state wide`},AK=25,jK=P({__name:`RunsView`,setup(e){let t=[{value:`running`,label:`Running`},{value:`queued`,label:`Queued`},{value:`failed`,label:`Failed`},{value:`succeeded`,label:`Succeeded`},{value:`canceled`,label:`Canceled`}],n=[{value:`24h`,label:`Last 24 hours`},{value:`7d`,label:`Last 7 days`},{value:`30d`,label:`Last 30 days`}],r=[{value:`newest`,label:`Newest first`},{value:`cost`,label:`Most expensive`}],i=zw(),a=xK(),o=sj(),s=q(()=>({q:o.text(`q`),status:t.find(e=>e.value===o.text(`status`))?.value??``,job_id:o.number(`job`),repository_id:o.number(`repository`),period:n.find(e=>e.value===o.text(`period`))?.value??null,sort:r.find(e=>e.value===o.text(`sort`))?.value??`newest`,page:o.number(`page`)??1,page_size:AK})),c=q(()=>!!(s.value.q||s.value.status||s.value.job_id||s.value.repository_id||s.value.period)),l=q(()=>a.page?.status_counts??{}),u=q(()=>Object.values(l.value).reduce((e,t)=>e+(t??0),0)),d=q(()=>[{value:``,label:`All`,count:u.value},...t.filter(e=>l.value[e.value]||s.value.status===e.value).map(e=>({...e,count:l.value[e.value]??0}))]),f=q(()=>i.jobs.map(e=>({value:e.id,label:`${e.name} · ${e.repository}`}))),p=q(()=>i.repositories.map(e=>({value:e.id,label:e.display_name}))),m=q(()=>{if(!a.page)return a.error?`Runs could not be loaded`:`Loading runs…`;if(!c.value&&a.page.count===0)return`No runs recorded yet.`;let e=[c.value?`${Q(a.page.count,`matching run`)}`:Q(a.page.count,`run`)],t=(l.value.running??0)+(l.value.queued??0);return t>0&&e.push(`${t} active`),l.value.failed&&e.push(`${l.value.failed} failed`),e.join(` · `)});function h(){return a.load(s.value)}function g(){o.update({q:null,status:null,job:null,repository:null,period:null})}return rr(s,()=>void h(),{immediate:!0,deep:!0}),dF(h,()=>!!(l.value.queued||l.value.running)),(e,t)=>(z(),B(`div`,SK,[U(qT,{compact:``,title:`Runs`,description:m.value},null,8,[`description`]),c.value||u.value>0?(z(),B(`div`,CK,[U(EE,{"model-value":s.value.q??``,placeholder:`Search job, repository, summary or #run`,"onUpdate:modelValue":t[0]||=e=>M(o).update({q:e})},null,8,[`model-value`]),U(M(mx),{"model-value":s.value.job_id,options:f.value,"option-label":`label`,"option-value":`value`,placeholder:`All jobs`,"show-clear":``,filter:``,class:`list-select`,"aria-label":`Job`,"onUpdate:modelValue":t[1]||=e=>M(o).update({job:e})},null,8,[`model-value`,`options`]),U(M(mx),{"model-value":s.value.repository_id,options:p.value,"option-label":`label`,"option-value":`value`,placeholder:`All repositories`,"show-clear":``,class:`list-select`,"aria-label":`Repository`,"onUpdate:modelValue":t[2]||=e=>M(o).update({repository:e})},null,8,[`model-value`,`options`]),U(M(mx),{"model-value":s.value.period,options:n,"option-label":`label`,"option-value":`value`,placeholder:`Any time`,"show-clear":``,class:`list-select period-select`,"aria-label":`Time period`,"onUpdate:modelValue":t[3]||=e=>M(o).update({period:e})},null,8,[`model-value`])])):G(``,!0),M(a).error?(z(),B(`p`,wK,A(M(a).error),1)):G(``,!0),H(`section`,{class:`panel table-panel`,"aria-busy":M(a).loading},[c.value||u.value>0?(z(),B(`div`,EK,[U(dA,{"model-value":s.value.status??``,options:d.value,label:`Status`,"onUpdate:modelValue":t[4]||=e=>M(o).update({status:e})},null,8,[`model-value`,`options`]),U(M(mx),{"model-value":s.value.sort,options:r,"option-label":`label`,"option-value":`value`,class:`list-select sort-select`,"aria-label":`Sort`,"onUpdate:modelValue":t[5]||=e=>M(o).update({sort:e===`newest`?null:e})},null,8,[`model-value`])])):G(``,!0),M(a).page?.items.length?(z(),B(`div`,DK,[(z(!0),B(R,null,I(M(a).page.items,e=>(z(),V(sF,{key:e.id,run:e},null,8,[`run`]))),128))])):M(a).page&&c.value?(z(),B(`div`,OK,[U(J,{name:`filter-remove-outline`}),t[7]||=H(`strong`,null,`No runs match these filters`,-1),U(M(Y),{label:`Clear filters`,severity:`secondary`,text:``,size:`small`,onClick:g})])):M(a).page?(z(),B(`div`,kK,[U(J,{name:`text-box-search-outline`}),t[8]||=H(`strong`,null,`No audit history yet`,-1),t[9]||=H(`span`,null,`Run output and decisions will be recorded here.`,-1)])):G(``,!0),M(a).page&&M(a).page.count>M(a).page.page_size?(z(),V(M(vK),{key:4,first:(M(a).page.page-1)*M(a).page.page_size,rows:M(a).page.page_size,"total-records":M(a).page.count,template:`PrevPageLink PageLinks NextPageLink CurrentPageReport`,"current-page-report-template":`{first}–{last} of {totalRecords}`,class:`list-paginator`,onPage:t[6]||=e=>M(o).update({page:e.page+1})},null,8,[`first`,`rows`,`total-records`])):G(``,!0)],8,TK)]))}}),MK={class:`invites`},NK={key:0,class:`invite-link`,role:`status`},PK={key:1,class:`page-error`},FK={key:2,class:`member-list invite-list`},IK={class:`avatar small`},LK={class:`member-email`},RK={class:`status-pill`},zK={key:0,class:`invite-confirm`},BK=160,VK=P({__name:`InvitesPanel`,setup(e){let t=[{label:`Member · can view`,value:`member`},{label:`Admin · runs and schedules approved jobs`,value:`admin`},{label:`Owner · connects services and approves access`,value:`owner`}],n=j([]),r=j(`member`),i=j(``),a=j(null),o=j(!1),s=j(!1),c=j(null),l=j(null),u=j(null);rr([i,r],()=>{c.value=null});async function d(){try{n.value=await ow()}catch(e){c.value=X(e)}}async function f(){if(!s.value){if(i.value.trim().length>BK)c.value=`Keep the note under ${BK} characters.`;else{s.value=!0,c.value=null,o.value=!1;try{a.value=await sw(r.value,i.value.trim()),i.value=``,await d()}catch(e){c.value=X(e)}finally{s.value=!1}}}}async function p(){a.value&&(await navigator.clipboard.writeText(a.value.link),o.value=!0)}async function m(e){if(!u.value){c.value=null,u.value=e.id;try{await cw(e.id),a.value?.id===e.id&&(a.value=null),n.value=n.value.filter(t=>t.id!==e.id)}catch(e){c.value=X(e)}finally{u.value=null,l.value=null}}}return Zr(d),(e,d)=>(z(),B(`div`,MK,[H(`form`,{class:`invite-form`,onSubmit:Fs(f,[`prevent`])},[U(M(mx),{modelValue:r.value,"onUpdate:modelValue":d[0]||=e=>r.value=e,options:t,"option-label":`label`,"option-value":`value`,"aria-label":`Role`,class:`invite-role`},null,8,[`modelValue`]),U(M(ib),{modelValue:i.value,"onUpdate:modelValue":d[1]||=e=>i.value=e,maxlength:BK,placeholder:`Who is it for? (optional)`,"aria-label":`Who the invite is for`},null,8,[`modelValue`]),U(M(Y),{type:`submit`,label:`Create invite link`,loading:s.value,disabled:s.value},{icon:N(()=>[U(J,{name:`link`})]),_:1},8,[`loading`,`disabled`])],32),a.value?(z(),B(`div`,NK,[H(`span`,null,[d[3]||=W(`Send this link to `,-1),H(`bdi`,null,A(a.value.note||`the person you are inviting`),1),W(`. It works once and expires `+A(M(tS)(a.value.expires_at))+`. This is the only time it is shown.`,1)]),H(`code`,null,A(a.value.link),1),U(M(Y),{label:o.value?`Copied`:`Copy link`,severity:`secondary`,size:`small`,onClick:p},{icon:N(()=>[U(J,{name:o.value?`check`:`content-copy`},null,8,[`name`])]),_:1},8,[`label`])])):G(``,!0),c.value?(z(),B(`p`,PK,A(c.value),1)):G(``,!0),n.value.length?(z(),B(`ul`,FK,[(z(!0),B(R,null,I(n.value,e=>(z(),B(`li`,{key:e.id},[H(`span`,IK,[U(J,{name:`email-outline`})]),H(`span`,LK,[H(`bdi`,null,A(e.note||`Invite link`),1),H(`small`,null,[W(`Expires `+A(M(tS)(e.expires_at)),1),e.created_by?(z(),B(R,{key:0},[W(` · from `+A(e.created_by),1)],64)):G(``,!0)])]),H(`span`,RK,A(M(gS)(e.role)),1),l.value===e.id?(z(),B(`span`,zK,[U(M(Y),{label:`Keep`,severity:`secondary`,text:``,size:`small`,disabled:u.value===e.id,onClick:d[2]||=e=>l.value=null},null,8,[`disabled`]),U(M(Y),{label:`Revoke link`,severity:`danger`,size:`small`,loading:u.value===e.id,onClick:t=>m(e)},null,8,[`loading`,`onClick`])])):(z(),V(M(Y),{key:1,label:`Revoke`,severity:`secondary`,text:``,size:`small`,onClick:t=>l.value=e.id},null,8,[`onClick`]))]))),128))])):G(``,!0)]))}});function HK(){return zx(`/members`)}function UK(e,t){return Z(`/members/${e}/role`,{role:t})}function WK(e){return Kx(`/members/${e}`)}var GK={key:0,class:`page-error`},KK={class:`member-list`},qK={class:`avatar small`},JK={class:`member-email`},YK={key:0},XK={key:1,class:`status-pill`},ZK=P({__name:`MembersPanel`,props:{canManage:{type:Boolean}},setup(e){let t=e,n=[`owner`,`admin`,`member`].map(e=>({label:gS(e),value:e})),r=j([]),i=j(null),a=j(null);async function o(){try{r.value=await HK()}catch(e){a.value=X(e)}}async function s(e,t){a.value=null;try{await UK(e.id,t),e.you?window.location.reload():await o()}catch(e){a.value=X(e),await o()}}async function c(e){a.value=null;try{await WK(e.id),i.value=null,e.you?window.location.assign(`/`):await o()}catch(e){i.value=null,a.value=X(e)}}return Zr(o),(e,o)=>(z(),B(R,null,[a.value?(z(),B(`p`,GK,A(a.value),1)):G(``,!0),H(`ul`,KK,[(z(!0),B(R,null,I(r.value,e=>(z(),B(`li`,{key:e.id},[H(`span`,qK,A(e.email.slice(0,1).toUpperCase()),1),H(`span`,JK,[W(A(e.email),1),e.you?(z(),B(`small`,YK,`You`)):G(``,!0)]),t.canManage?(z(),B(R,{key:0},[U(M(mx),{"model-value":e.role,options:M(n),"option-label":`label`,"option-value":`value`,"aria-label":`Role for ${e.email}`,class:`member-role`,"onUpdate:modelValue":t=>s(e,t)},null,8,[`model-value`,`options`,`aria-label`,`onUpdate:modelValue`]),i.value===e.id?(z(),V(M(Y),{key:0,label:e.you?`Leave`:`Remove`,severity:`danger`,size:`small`,onClick:t=>c(e)},null,8,[`label`,`onClick`])):(z(),V(M(Y),{key:1,label:e.you?`Leave…`:`Remove…`,severity:`secondary`,text:``,size:`small`,onClick:t=>i.value=e.id},null,8,[`label`,`onClick`]))],64)):(z(),B(`span`,XK,A(M(gS)(e.role)),1))]))),128))])],64))}}),QK={class:`page`},$K={key:0,class:`page-error`},eq={class:`panel settings-members`},tq={class:`panel server-settings`},nq={class:`panel-heading`},rq={key:0},iq=[`title`,`onClick`],aq={class:`quiet-line`},oq={key:2,class:`panel empty-state`},sq=P({__name:`SettingsView`,setup(e){let t=zw(),n=q(()=>t.can($.InvitePeople)),r=q(()=>t.can($.ManageMembers)),i=j(null),a=j(null),o=j(null),s=j(!1),c=j(null);async function l(e){s.value=!0,c.value=null;try{i.value=await pF(e)}catch(e){c.value=X(e,`Unable to save the limits`)}finally{s.value=!1}}let u=q(()=>i.value?`${i.value.workspace_name??`Workspace`} workspace`:`Loading settings…`),d=q(()=>t.user?.can_use_admin??!1),f=q(()=>i.value?[{title:`Deployment`,items:[{label:`Environment`,value:i.value.environment,help:``,env:``}]},...i.value.groups]:[]);async function p(e){await navigator.clipboard.writeText(e),o.value=e,window.setTimeout(()=>{o.value===e&&(o.value=null)},1600)}return Zr(async()=>{try{i.value=await fF()}catch(e){a.value=X(e,`Unable to load settings`)}}),(e,t)=>(z(),B(`div`,QK,[U(qT,{compact:``,title:`Settings`,description:u.value},null,8,[`description`]),a.value?(z(),B(`p`,$K,A(a.value),1)):i.value?(z(),B(R,{key:1},[H(`section`,eq,[t[0]||=H(`div`,{class:`panel-heading`},[H(`div`,null,[H(`h2`,null,`Members`),H(`p`,null,`People join with an invite link.`)])],-1),U(ZK,{"can-manage":r.value},null,8,[`can-manage`]),n.value?(z(),V(VK,{key:0})):G(``,!0)]),i.value.limits.length?(z(),V(UP,{key:0,limits:i.value.limits,"can-edit":i.value.can_edit_limits,description:`Every job uses these unless it sets its own. The server sets the maximums.`,"inherited-from":`the server default`,saving:s.value,error:c.value,onSave:l},null,8,[`limits`,`can-edit`,`saving`,`error`])):G(``,!0),H(`section`,tq,[H(`div`,nq,[H(`div`,null,[t[3]||=H(`h2`,null,`Server`,-1),H(`p`,null,[t[1]||=W(`Set by whoever runs this server`,-1),d.value?(z(),B(R,{key:0},[W(`, through environment variables. Changes apply after a restart`)],64)):G(``,!0),t[2]||=W(`. Workspaces and repositories cannot change them.`,-1)])])]),(z(!0),B(R,null,I(f.value,e=>(z(),B(`section`,{key:e.title,class:`server-group`},[H(`h3`,null,A(e.title),1),H(`dl`,null,[(z(!0),B(R,null,I(e.items,e=>(z(),B(`div`,{key:e.label,class:`server-row`},[H(`dt`,null,A(e.label),1),H(`dd`,null,[H(`strong`,null,A(e.value),1),e.help?(z(),B(`small`,rq,A(e.help),1)):G(``,!0),d.value&&e.env?(z(),B(`button`,{key:1,type:`button`,class:`env-chip`,title:`Copy ${e.env}`,onClick:t=>p(e.env)},[U(J,{name:o.value===e.env?`check`:`content-copy`},null,8,[`name`]),W(` `+A(e.env),1)],8,iq)):G(``,!0)])]))),128))])]))),128))]),H(`p`,aq,[U(J,{name:`file-code-outline`}),t[4]||=W(` Jobs, schedules and the access they need are defined in each repository's `,-1),t[5]||=H(`code`,null,`.secondshift.yaml`,-1),t[6]||=W(`. `,-1)])],64)):(z(),B(`div`,oq,[U(J,{name:`loading`,spin:``}),t[7]||=H(`strong`,null,`Loading settings`,-1)]))]))}}),cq={class:`page`},lq={key:0,class:`panel empty-state`},uq={key:1,class:`panel empty-state`},dq={key:2,class:`panel try-panel`},fq={key:0,class:`try-skill`},pq={key:0},mq={class:`try-repositories`},hq=[`onClick`],gq=Yw(P({__name:`TryView`,setup(e){let t=zw(),n=Qg(),r=j(null);function i(e){return typeof e==`string`?e.slice(0,500):``}let a=q(()=>({repository:i(n.query.repository),path:i(n.query.path),ref:i(n.query.ref)})),o=q(()=>t.repositories.filter(e=>e.enabled)),s=q(()=>a.value.repository&&a.value.path?`${a.value.repository}/${a.value.path}`:``);return(e,n)=>{let i=F(`RouterLink`);return z(),B(`div`,cq,[U(qT,{compact:``,title:`Try a skill`,description:`Run a skill from another public repository once, on one of your repositories.`}),M(t).can(M($).RunJobs)?o.value.length?(z(),B(`section`,dq,[s.value?(z(),B(`p`,fq,[U(J,{name:`github`}),H(`code`,null,A(s.value),1),a.value.ref?(z(),B(`span`,pq,[n[6]||=W(`at `,-1),H(`code`,null,A(a.value.ref),1)])):G(``,!0)])):G(``,!0),n[7]||=H(`h2`,null,`Which repository should it work on?`,-1),n[8]||=H(`p`,{class:`try-help`},`You check what the skill asks for before anything runs.`,-1),H(`ul`,mq,[(z(!0),B(R,null,I(o.value,e=>(z(),B(`li`,{key:e.id},[H(`button`,{type:`button`,onClick:t=>r.value=e},[U(J,{name:e.source_type===`github`?`github`:`folder-outline`},null,8,[`name`]),H(`span`,null,A(e.display_name),1),H(`code`,null,A(e.default_branch),1),U(J,{name:`arrow-right`})],8,hq)]))),128))])])):(z(),B(`div`,uq,[U(J,{name:`source-repository`}),n[4]||=H(`strong`,null,`Add a repository first`,-1),n[5]||=H(`span`,null,`A skill runs on one of your repositories.`,-1),U(i,{to:`/repositories/new`,class:`primary-action`},{default:N(()=>[n[3]||=W(`Add repository `,-1),U(J,{name:`arrow-right`})]),_:1})])):(z(),B(`div`,lq,[U(J,{name:`lock-outline`}),n[1]||=H(`strong`,null,`Your role cannot start runs`,-1),n[2]||=H(`span`,null,`Ask a workspace owner to try this skill.`,-1)])),r.value?(z(),V(QV,{key:r.value.id,"repository-id":r.value.id,"repository-name":r.value.display_name,"default-branch":r.value.default_branch,"initial-skill":a.value,onCancel:n[0]||=e=>r.value=null},null,8,[`repository-id`,`repository-name`,`default-branch`,`initial-skill`])):G(``,!0)])}}}),[[`__scopeId`,`data-v-9698921c`]]),_q=Xg({history:hg(),routes:[{path:`/login`,redirect:`/`},{path:`/`,component:EB},{path:`/repositories`,component:VB},{path:`/repositories/new`,component:tD},{path:`/repositories/:id(\\d+)`,component:IH},{path:`/jobs`,component:hj},{path:`/jobs/:id(\\d+)`,component:xz},{path:`/runs`,component:jK},{path:`/runs/:id(\\d+)`,component:dW},{path:`/runs/:id(\\d+)/files/:name(input|output)`,component:SW},{path:`/models`,component:CN},{path:`/connections`,component:aA},{path:`/settings`,component:sq},{path:`/account`,component:YT},{path:`/try`,component:gq},{path:`/:unknown(.*)*`,component:wz}],scrollBehavior(e,t,n){return n||(e.hash?{el:e.hash,top:16,behavior:`smooth`}:e.path===t.path||e.path===`/connections`&&e.query.binding||e.path===`/models`&&e.query.connection?!1:{top:0})}}),vq=dp(up,{primitive:{borderRadius:{none:`0`,xs:`6px`,sm:`6px`,md:`8px`,lg:`8px`,xl:`12px`}},semantic:{primary:{50:`{neutral.50}`,100:`{neutral.100}`,200:`{neutral.200}`,300:`{neutral.300}`,400:`{neutral.400}`,500:`{neutral.500}`,600:`{neutral.600}`,700:`{neutral.700}`,800:`{neutral.800}`,900:`{neutral.900}`,950:`{neutral.950}`},colorScheme:{dark:{primary:{color:`{neutral.200}`,contrastColor:`{neutral.950}`,hoverColor:`{neutral.100}`,activeColor:`{neutral.50}`},surface:{0:`#ffffff`,50:`{neutral.50}`,100:`{neutral.100}`,200:`{neutral.200}`,300:`{neutral.300}`,400:`{neutral.400}`,500:`{neutral.500}`,600:`{neutral.600}`,700:`{neutral.700}`,800:`{neutral.800}`,900:`#131313`,950:`#0d0d0d`}}}}});Vs(AT).use(cc()).use(_q).use(yd,{theme:{preset:vq,options:{darkModeSelector:`.secondshift-dark`}}}).mount(`#app`);