clawmini 0.0.7 → 0.0.9
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.
- package/.changeset/README.md +8 -0
- package/.changeset/config.json +14 -0
- package/.github/workflows/release.yml +49 -0
- package/CHANGELOG.md +36 -0
- package/README.md +5 -4
- package/dist/adapter-discord/index.d.mts.map +1 -1
- package/dist/adapter-discord/index.mjs +465 -282
- package/dist/adapter-discord/index.mjs.map +1 -1
- package/dist/adapter-google-chat/index.mjs +367 -243
- package/dist/adapter-google-chat/index.mjs.map +1 -1
- package/dist/cli/index.mjs +684 -24
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lite.mjs +43 -13
- package/dist/cli/lite.mjs.map +1 -1
- package/dist/cli/{propose-policy.mjs → manage-policies.mjs} +270 -47
- package/dist/cli/manage-policies.mjs.map +1 -0
- package/dist/cli/run-host.d.mts +1 -0
- package/dist/cli/run-host.mjs +3090 -0
- package/dist/cli/run-host.mjs.map +1 -0
- package/dist/config-CPFQIGdG.mjs +57 -0
- package/dist/config-CPFQIGdG.mjs.map +1 -0
- package/dist/config-Dvl-Pov4.mjs +76 -0
- package/dist/config-Dvl-Pov4.mjs.map +1 -0
- package/dist/daemon/index.d.mts.map +1 -1
- package/dist/daemon/index.mjs +970 -332
- package/dist/daemon/index.mjs.map +1 -1
- package/dist/supervisor-actions-CiW56eLi.mjs +843 -0
- package/dist/supervisor-actions-CiW56eLi.mjs.map +1 -0
- package/dist/turn-log-buffer-DRgW53gl.mjs +767 -0
- package/dist/turn-log-buffer-DRgW53gl.mjs.map +1 -0
- package/dist/web/_app/immutable/chunks/{Drm9vgeP.js → 3AZlWB6U.js} +1 -1
- package/dist/web/_app/immutable/chunks/BhRSsUCh.js +2 -0
- package/dist/web/_app/immutable/chunks/BiLeM2i1.js +1 -0
- package/{web/.svelte-kit/output/client/_app/immutable/chunks/CME08kGM.js → dist/web/_app/immutable/chunks/BmBj85Ll.js} +1 -1
- package/dist/web/_app/immutable/chunks/BrERcKAH.js +1 -0
- package/dist/web/_app/immutable/chunks/Bv9252RM.js +1 -0
- package/dist/web/_app/immutable/chunks/CIXNBPKi.js +1 -0
- package/dist/web/_app/immutable/chunks/DISKL3GN.js +2 -0
- package/dist/web/_app/immutable/chunks/{Zeh-C-mx.js → DcpaLzmX.js} +1 -1
- package/dist/web/_app/immutable/chunks/DnQ3vS13.js +1 -0
- package/dist/web/_app/immutable/chunks/KsloHTKS.js +1 -0
- package/{web/.svelte-kit/output/client/_app/immutable/chunks/Ck-be5J2.js → dist/web/_app/immutable/chunks/RsHsUj-8.js} +2 -2
- package/dist/web/_app/immutable/chunks/{G_zz-Gou.js → wpfV79dV.js} +1 -1
- package/dist/web/_app/immutable/entry/app.CIw1Qj0n.js +2 -0
- package/dist/web/_app/immutable/entry/start.Di0-Jhte.js +1 -0
- package/dist/web/_app/immutable/nodes/{0.CYS8iApT.js → 0.DYyUA1au.js} +1 -1
- package/dist/web/_app/immutable/nodes/1.D-3QEMMZ.js +1 -0
- package/dist/web/_app/immutable/nodes/{2.BnwnD1Ki.js → 2.4olHnH7U.js} +1 -1
- package/{web/.svelte-kit/output/client/_app/immutable/nodes/3.Dr0ot9sV.js → dist/web/_app/immutable/nodes/3.4w0bE-m2.js} +3 -3
- package/dist/web/_app/immutable/nodes/4.CZvjhVHt.js +60 -0
- package/dist/web/_app/immutable/nodes/{5.BBGQ_i84.js → 5.DLbPVJY2.js} +1 -1
- package/dist/web/_app/version.json +1 -1
- package/dist/web/index.html +12 -12
- package/dist/workspace-oWmVh5mi.mjs +1001 -0
- package/dist/workspace-oWmVh5mi.mjs.map +1 -0
- package/docs/23_adapter_slash_autocomplete/development_log.md +19 -0
- package/docs/23_adapter_slash_autocomplete/notes.md +18 -0
- package/docs/23_adapter_slash_autocomplete/prd.md +46 -0
- package/docs/23_adapter_slash_autocomplete/questions.md +6 -0
- package/docs/23_adapter_slash_autocomplete/tickets.md +21 -0
- package/docs/24_subagent_job_policy_fixes/development_log.md +22 -0
- package/docs/24_subagent_job_policy_fixes/notes.md +28 -0
- package/docs/24_subagent_job_policy_fixes/prd.md +59 -0
- package/docs/24_subagent_job_policy_fixes/questions.md +3 -0
- package/docs/24_subagent_job_policy_fixes/tickets.md +49 -0
- package/docs/25_e2e_test_improvements/development_log.md +30 -0
- package/docs/25_e2e_test_improvements/notes.md +29 -0
- package/docs/25_e2e_test_improvements/prd.md +43 -0
- package/docs/25_e2e_test_improvements/questions.md +12 -0
- package/docs/25_e2e_test_improvements/tickets-2.md +22 -0
- package/docs/25_e2e_test_improvements/tickets.md +22 -0
- package/docs/25_policy_cwd/development_log.md +30 -0
- package/docs/25_policy_cwd/notes.md +28 -0
- package/docs/25_policy_cwd/prd.md +77 -0
- package/docs/25_policy_cwd/questions.md +6 -0
- package/docs/25_policy_cwd/tickets.md +77 -0
- package/docs/CLI_REFERENCE.md +3 -1
- package/docs/PHILOSOPHY.md +35 -0
- package/docs/adapter-visibility/SPEC.md +461 -0
- package/docs/adapter-visibility/SPEC_v2.md +202 -0
- package/docs/auto-update/SPEC.md +344 -0
- package/docs/backups/SPEC.md +296 -0
- package/docs/backups/clawmini.gitignore +69 -0
- package/docs/guides/assets/clawmini-avatar.png +0 -0
- package/docs/guides/backups.md +332 -0
- package/docs/guides/discord_adapter_setup.md +1 -1
- package/docs/guides/google_chat_adapter_setup.md +81 -0
- package/docs/unified-startup/SPEC.md +203 -0
- package/e2e/_helpers/test-environment.test.ts +49 -0
- package/e2e/_helpers/test-environment.ts +548 -0
- package/e2e/adapters/_google-chat-fixtures.ts +340 -0
- package/{src/cli/e2e → e2e/adapters}/adapter-discord.test.ts +22 -23
- package/e2e/adapters/adapter-google-chat-downtime.test.ts +157 -0
- package/e2e/adapters/adapter-google-chat-inbound.test.ts +697 -0
- package/e2e/adapters/adapter-google-chat-outbound.test.ts +297 -0
- package/e2e/adapters/adapter-google-chat-roundtrip.test.ts +56 -0
- package/e2e/adapters/adapter-google-chat-threads.test.ts +1078 -0
- package/e2e/agents/custom-api-env.test.ts +80 -0
- package/e2e/agents/export-lite-func.test.ts +104 -0
- package/e2e/agents/fallbacks.test.ts +124 -0
- package/e2e/agents/interrupt.test.ts +50 -0
- package/e2e/agents/no-reply-necessary.test.ts +57 -0
- package/e2e/agents/session-timeout-subagents.test.ts +76 -0
- package/e2e/agents/subagent-authorization.test.ts +246 -0
- package/e2e/agents/subagent-env.test.ts +49 -0
- package/e2e/agents/subagent-lifecycle.test.ts +782 -0
- package/e2e/agents/subagents-depth.test.ts +47 -0
- package/e2e/cli/agents.test.ts +176 -0
- package/e2e/cli/auto-update.test.ts +741 -0
- package/e2e/cli/basic.test.ts +44 -0
- package/{src/cli/e2e → e2e/cli}/export-lite.test.ts +16 -12
- package/e2e/cli/init-gitignore.test.ts +86 -0
- package/e2e/cli/init.test.ts +76 -0
- package/e2e/cli/messages.test.ts +363 -0
- package/e2e/cli/serve.test.ts +76 -0
- package/{src/cli/e2e → e2e/cli}/skills.test.ts +11 -10
- package/{src/cli/e2e → e2e/daemon}/daemon.test.ts +57 -195
- package/e2e/jobs/agent-jobs.test.ts +216 -0
- package/e2e/jobs/cron.test.ts +64 -0
- package/e2e/jobs/restart.test.ts +108 -0
- package/e2e/policies/approval-session.test.ts +69 -0
- package/e2e/policies/auto-create-policies-file.test.ts +35 -0
- package/e2e/policies/builtin-manage-policies.test.ts +184 -0
- package/e2e/policies/builtin-run-host.test.ts +180 -0
- package/e2e/policies/environment-policies.test.ts +177 -0
- package/e2e/policies/manage-policies.test.ts +566 -0
- package/e2e/policies/output-size.test.ts +98 -0
- package/e2e/policies/policies-context-cwd.test.ts +160 -0
- package/e2e/policies/relative-script-path.test.ts +60 -0
- package/e2e/policies/requests-show.test.ts +135 -0
- package/e2e/policies/requests.test.ts +208 -0
- package/e2e/policies/slash-policies.test.ts +308 -0
- package/e2e/policies/startup-cleanup.test.ts +48 -0
- package/e2e/routers/session-timeout.test.ts +106 -0
- package/e2e/routers/slash-model.test.ts +152 -0
- package/e2e/routers/slash-new.test.ts +50 -0
- package/e2e/routers/slash-restart-adapter.test.ts +96 -0
- package/e2e/routers/slash-restart.test.ts +114 -0
- package/e2e/routers/slash-shutdown.test.ts +55 -0
- package/e2e/routers/slash-stop.test.ts +232 -0
- package/e2e/routers/slash-upgrade.test.ts +88 -0
- package/{src/cli/e2e → e2e/sandbox}/environments.test.ts +14 -13
- package/eslint.config.js +6 -0
- package/napkin.md +1 -1
- package/package.json +8 -3
- package/src/adapter-discord/commands.test.ts +42 -0
- package/src/adapter-discord/commands.ts +33 -0
- package/src/adapter-discord/config.ts +12 -0
- package/src/adapter-discord/forwarder.test.ts +499 -21
- package/src/adapter-discord/forwarder.ts +343 -124
- package/src/adapter-discord/inbound-cache.test.ts +47 -0
- package/src/adapter-discord/inbound-cache.ts +37 -0
- package/src/adapter-discord/index.test.ts +67 -2
- package/src/adapter-discord/index.ts +84 -216
- package/src/adapter-discord/interactions.test.ts +54 -3
- package/src/adapter-discord/interactions.ts +97 -53
- package/src/adapter-discord/processMessage.ts +239 -0
- package/src/adapter-discord/state.ts +1 -0
- package/src/adapter-google-chat/auth.test.ts +9 -5
- package/src/adapter-google-chat/auth.ts +29 -23
- package/src/adapter-google-chat/cards.ts +7 -2
- package/src/adapter-google-chat/client.test.ts +37 -2
- package/src/adapter-google-chat/client.ts +138 -38
- package/src/adapter-google-chat/config.ts +19 -0
- package/src/adapter-google-chat/forwarder.test.ts +81 -56
- package/src/adapter-google-chat/forwarder.ts +394 -185
- package/src/adapter-google-chat/inbound-cache.test.ts +61 -0
- package/src/adapter-google-chat/inbound-cache.ts +36 -0
- package/src/adapter-google-chat/state.test.ts +1 -0
- package/src/adapter-google-chat/state.ts +9 -1
- package/src/adapter-google-chat/subscriptions.ts +8 -6
- package/src/cli/builtin-policies.ts +44 -0
- package/src/cli/commands/agents.ts +59 -5
- package/src/cli/commands/down.ts +54 -2
- package/src/cli/commands/environments.ts +8 -2
- package/src/cli/commands/init.ts +31 -0
- package/src/cli/commands/logs.ts +116 -0
- package/src/cli/commands/policies.ts +6 -4
- package/src/cli/commands/serve.test.ts +67 -0
- package/src/cli/commands/serve.ts +284 -0
- package/src/cli/commands/up.ts +122 -2
- package/src/cli/commands/web-api/agents.ts +3 -2
- package/src/cli/index.ts +4 -0
- package/src/cli/install-detection.test.ts +72 -0
- package/src/cli/install-detection.ts +48 -0
- package/src/cli/lite.ts +54 -22
- package/src/cli/manage-policies-utils.ts +104 -0
- package/src/cli/manage-policies.ts +291 -0
- package/src/cli/run-host.ts +45 -0
- package/src/cli/supervisor-actions.ts +267 -0
- package/src/cli/supervisor-control.test.ts +129 -0
- package/src/cli/supervisor-control.ts +155 -0
- package/src/cli/supervisor-pid.ts +68 -0
- package/src/cli/supervisor.ts +277 -0
- package/src/daemon/agent/agent-context.ts +11 -11
- package/src/daemon/agent/agent-session.ts +8 -1
- package/src/daemon/agent/chat-logger.test.ts +78 -9
- package/src/daemon/agent/chat-logger.ts +25 -5
- package/src/daemon/agent/turn-registry.test.ts +89 -0
- package/src/daemon/agent/turn-registry.ts +94 -0
- package/src/daemon/agent/types.ts +2 -0
- package/src/daemon/api/agent-policy-endpoints.ts +263 -0
- package/src/daemon/api/agent-router.ts +47 -126
- package/src/daemon/api/index.test.ts +1 -0
- package/src/daemon/api/policy-request.test.ts +7 -5
- package/src/daemon/api/router-utils.ts +6 -5
- package/src/daemon/api/subagent-router.ts +110 -74
- package/src/daemon/api/subagent-utils.test.ts +60 -0
- package/src/daemon/api/subagent-utils.ts +113 -87
- package/src/daemon/api/user-router.ts +34 -8
- package/src/daemon/auth.ts +1 -0
- package/src/daemon/cron.test.ts +62 -4
- package/src/daemon/cron.ts +42 -16
- package/src/daemon/events.ts +65 -0
- package/src/daemon/index.ts +24 -1
- package/src/daemon/message-interruption.test.ts +1 -0
- package/src/daemon/message-jobs.test.ts +1 -0
- package/src/daemon/message.ts +78 -14
- package/src/daemon/observation.test.ts +26 -18
- package/src/daemon/pending-replies.test.ts +112 -0
- package/src/daemon/pending-replies.ts +162 -0
- package/src/daemon/policy-request-service.ts +3 -1
- package/src/daemon/policy-utils.test.ts +66 -1
- package/src/daemon/policy-utils.ts +126 -1
- package/src/daemon/request-store.ts +31 -0
- package/src/daemon/routers/session-timeout.ts +4 -0
- package/src/daemon/routers/slash-model.test.ts +344 -0
- package/src/daemon/routers/slash-model.ts +207 -0
- package/src/daemon/routers/slash-policies.test.ts +38 -32
- package/src/daemon/routers/slash-policies.ts +84 -33
- package/src/daemon/routers/slash-restart.test.ts +69 -0
- package/src/daemon/routers/slash-restart.ts +36 -0
- package/src/daemon/routers/slash-shutdown.test.ts +50 -0
- package/src/daemon/routers/slash-shutdown.ts +28 -0
- package/src/daemon/routers/slash-upgrade.test.ts +116 -0
- package/src/daemon/routers/slash-upgrade.ts +76 -0
- package/src/daemon/routers/types.ts +7 -0
- package/src/daemon/routers.ts +16 -0
- package/src/shared/adapters/blockquote.test.ts +28 -0
- package/src/shared/adapters/blockquote.ts +20 -0
- package/src/shared/adapters/filtering.test.ts +224 -10
- package/src/shared/adapters/filtering.ts +95 -7
- package/src/shared/adapters/inbound-cache.test.ts +48 -0
- package/src/shared/adapters/inbound-cache.ts +54 -0
- package/src/shared/adapters/turn-log-buffer.ts +266 -0
- package/src/shared/adapters/turn-log.test.ts +389 -0
- package/src/shared/adapters/turn-log.ts +357 -0
- package/src/shared/agent-utils.ts +12 -5
- package/src/shared/chats.test.ts +4 -0
- package/src/shared/chats.ts +9 -0
- package/src/shared/config.ts +16 -1
- package/src/shared/lite.ts +76 -2
- package/src/shared/policies.ts +26 -0
- package/src/shared/template-manifest.ts +267 -0
- package/src/shared/utils/shell.ts +61 -0
- package/src/shared/version.ts +34 -0
- package/src/shared/workspace.test.ts +217 -0
- package/src/shared/workspace.ts +626 -48
- package/templates/environments/cladding/allowlist-domain.mjs +125 -0
- package/templates/environments/cladding/env.json +21 -1
- package/templates/environments/cladding/run-with-network.mjs +54 -0
- package/templates/environments/macos-proxy/allowlist-domain.mjs +95 -0
- package/templates/environments/macos-proxy/env.json +8 -1
- package/templates/environments/macos-proxy/proxy.mjs +42 -13
- package/templates/gemini/template.json +5 -0
- package/templates/gemini-claw/template.json +13 -0
- package/templates/skills/clawmini-requests/SKILL.md +69 -10
- package/templates/skills/run-host/SKILL.md +51 -0
- package/templates/skills/skill-creator/SKILL.md +4 -3
- package/templates/skills/skill-creator/scripts/validate.sh +52 -0
- package/tsdown.config.ts +10 -1
- package/vitest.config.ts +2 -2
- package/web/.svelte-kit/ambient.d.ts +292 -176
- package/web/.svelte-kit/generated/server/internal.js +1 -1
- package/web/.svelte-kit/output/client/.vite/manifest.json +127 -137
- package/web/.svelte-kit/output/client/_app/immutable/chunks/{Drm9vgeP.js → 3AZlWB6U.js} +1 -1
- package/web/.svelte-kit/output/client/_app/immutable/chunks/BhRSsUCh.js +2 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/BiLeM2i1.js +1 -0
- package/{dist/web/_app/immutable/chunks/CME08kGM.js → web/.svelte-kit/output/client/_app/immutable/chunks/BmBj85Ll.js} +1 -1
- package/web/.svelte-kit/output/client/_app/immutable/chunks/BrERcKAH.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/Bv9252RM.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/CIXNBPKi.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/DISKL3GN.js +2 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/{Zeh-C-mx.js → DcpaLzmX.js} +1 -1
- package/web/.svelte-kit/output/client/_app/immutable/chunks/DnQ3vS13.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/KsloHTKS.js +1 -0
- package/{dist/web/_app/immutable/chunks/Ck-be5J2.js → web/.svelte-kit/output/client/_app/immutable/chunks/RsHsUj-8.js} +2 -2
- package/web/.svelte-kit/output/client/_app/immutable/chunks/{G_zz-Gou.js → wpfV79dV.js} +1 -1
- package/web/.svelte-kit/output/client/_app/immutable/entry/app.CIw1Qj0n.js +2 -0
- package/web/.svelte-kit/output/client/_app/immutable/entry/start.Di0-Jhte.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/nodes/{0.CYS8iApT.js → 0.DYyUA1au.js} +1 -1
- package/web/.svelte-kit/output/client/_app/immutable/nodes/1.D-3QEMMZ.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/nodes/{2.BnwnD1Ki.js → 2.4olHnH7U.js} +1 -1
- package/{dist/web/_app/immutable/nodes/3.Dr0ot9sV.js → web/.svelte-kit/output/client/_app/immutable/nodes/3.4w0bE-m2.js} +3 -3
- package/web/.svelte-kit/output/client/_app/immutable/nodes/4.CZvjhVHt.js +60 -0
- package/web/.svelte-kit/output/client/_app/immutable/nodes/{5.BBGQ_i84.js → 5.DLbPVJY2.js} +1 -1
- package/web/.svelte-kit/output/client/_app/version.json +1 -1
- package/web/.svelte-kit/output/server/.vite/manifest.json +12 -10
- package/web/.svelte-kit/output/server/chunks/Icon.js +1 -1
- package/web/.svelte-kit/output/server/chunks/client.js +1 -1
- package/web/.svelte-kit/output/server/chunks/exports.js +1 -1
- package/web/.svelte-kit/output/server/chunks/index-server.js +2 -1
- package/web/.svelte-kit/output/server/chunks/internal.js +1 -1
- package/web/.svelte-kit/output/server/chunks/render-context.js +77 -0
- package/web/.svelte-kit/output/server/chunks/root.js +739 -788
- package/web/.svelte-kit/output/server/chunks/shared.js +234 -21
- package/web/.svelte-kit/output/server/index.js +126 -90
- package/web/.svelte-kit/output/server/manifest-full.js +1 -1
- package/web/.svelte-kit/output/server/manifest.js +1 -1
- package/web/.svelte-kit/output/server/nodes/0.js +1 -1
- package/web/.svelte-kit/output/server/nodes/1.js +1 -1
- package/web/.svelte-kit/output/server/nodes/2.js +1 -1
- package/web/.svelte-kit/output/server/nodes/3.js +1 -1
- package/web/.svelte-kit/output/server/nodes/4.js +1 -1
- package/web/.svelte-kit/output/server/nodes/5.js +1 -1
- package/web/.svelte-kit/output/server/remote-entry.js +245 -81
- package/web/.svelte-kit/tsconfig.json +4 -1
- package/dist/cli/propose-policy.mjs.map +0 -1
- package/dist/lite-CBxOT1y5.mjs +0 -241
- package/dist/lite-CBxOT1y5.mjs.map +0 -1
- package/dist/routing-D8rTxtaV.mjs +0 -245
- package/dist/routing-D8rTxtaV.mjs.map +0 -1
- package/dist/web/_app/immutable/chunks/B6YN0Nuq.js +0 -1
- package/dist/web/_app/immutable/chunks/BmRlVmv6.js +0 -1
- package/dist/web/_app/immutable/chunks/CK9JZLaG.js +0 -2
- package/dist/web/_app/immutable/chunks/Ck3rYNON.js +0 -1
- package/dist/web/_app/immutable/chunks/DMtIqaiV.js +0 -2
- package/dist/web/_app/immutable/chunks/DhD271EB.js +0 -1
- package/dist/web/_app/immutable/chunks/DpuLqk8d.js +0 -1
- package/dist/web/_app/immutable/chunks/DsIToJCP.js +0 -1
- package/dist/web/_app/immutable/chunks/bBmtyQMj.js +0 -1
- package/dist/web/_app/immutable/entry/app.CJmSwntr.js +0 -2
- package/dist/web/_app/immutable/entry/start.ZpUrT2ak.js +0 -1
- package/dist/web/_app/immutable/nodes/1.Bli0Hqzn.js +0 -1
- package/dist/web/_app/immutable/nodes/4.oBhvQhcA.js +0 -60
- package/dist/workspace-BJmJBfKi.mjs +0 -456
- package/dist/workspace-BJmJBfKi.mjs.map +0 -1
- package/src/cli/e2e/agents.test.ts +0 -140
- package/src/cli/e2e/basic.test.ts +0 -43
- package/src/cli/e2e/cron.test.ts +0 -132
- package/src/cli/e2e/export-lite-func.test.ts +0 -206
- package/src/cli/e2e/fallbacks.test.ts +0 -175
- package/src/cli/e2e/init.test.ts +0 -77
- package/src/cli/e2e/messages.test.ts +0 -332
- package/src/cli/e2e/propose-policy.test.ts +0 -203
- package/src/cli/e2e/requests.test.ts +0 -180
- package/src/cli/e2e/session-timeout.test.ts +0 -192
- package/src/cli/e2e/slash-new.test.ts +0 -93
- package/src/cli/e2e/subagents.test.ts +0 -106
- package/src/cli/e2e/utils.ts +0 -66
- package/src/cli/propose-policy.ts +0 -91
- package/web/.svelte-kit/output/client/_app/immutable/chunks/B6YN0Nuq.js +0 -1
- package/web/.svelte-kit/output/client/_app/immutable/chunks/BmRlVmv6.js +0 -1
- package/web/.svelte-kit/output/client/_app/immutable/chunks/CK9JZLaG.js +0 -2
- package/web/.svelte-kit/output/client/_app/immutable/chunks/Ck3rYNON.js +0 -1
- package/web/.svelte-kit/output/client/_app/immutable/chunks/DMtIqaiV.js +0 -2
- package/web/.svelte-kit/output/client/_app/immutable/chunks/DhD271EB.js +0 -1
- package/web/.svelte-kit/output/client/_app/immutable/chunks/DpuLqk8d.js +0 -1
- package/web/.svelte-kit/output/client/_app/immutable/chunks/DsIToJCP.js +0 -1
- package/web/.svelte-kit/output/client/_app/immutable/chunks/bBmtyQMj.js +0 -1
- package/web/.svelte-kit/output/client/_app/immutable/entry/app.CJmSwntr.js +0 -2
- package/web/.svelte-kit/output/client/_app/immutable/entry/start.ZpUrT2ak.js +0 -1
- package/web/.svelte-kit/output/client/_app/immutable/nodes/1.Bli0Hqzn.js +0 -1
- package/web/.svelte-kit/output/client/_app/immutable/nodes/4.oBhvQhcA.js +0 -60
- package/web/.svelte-kit/output/server/chunks/false.js +0 -4
- /package/dist/cli/{propose-policy.d.mts → manage-policies.d.mts} +0 -0
- /package/{src/cli/e2e → e2e/_helpers}/global-setup.ts +0 -0
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { describe, it, expect, beforeAll, afterAll } from 'vitest';
|
|
2
|
-
import path from 'node:path';
|
|
3
|
-
import fs from 'node:fs';
|
|
4
|
-
import { createE2EContext } from './utils.js';
|
|
5
|
-
|
|
6
|
-
const { runCli, e2eDir, setupE2E, teardownE2E } = createE2EContext('e2e-tmp-subagents');
|
|
7
|
-
|
|
8
|
-
describe('E2E Subagents Tests', () => {
|
|
9
|
-
beforeAll(async () => {
|
|
10
|
-
await setupE2E();
|
|
11
|
-
await runCli(['init']);
|
|
12
|
-
|
|
13
|
-
// Add debug agent
|
|
14
|
-
await runCli(['agents', 'add', 'debug-agent', '--template', 'debug']);
|
|
15
|
-
|
|
16
|
-
const settingsPath = path.resolve(e2eDir, '.clawmini/settings.json');
|
|
17
|
-
let originalSettings = '{}';
|
|
18
|
-
if (fs.existsSync(settingsPath)) {
|
|
19
|
-
originalSettings = fs.readFileSync(settingsPath, 'utf8');
|
|
20
|
-
}
|
|
21
|
-
fs.writeFileSync(
|
|
22
|
-
settingsPath,
|
|
23
|
-
JSON.stringify({
|
|
24
|
-
...JSON.parse(originalSettings),
|
|
25
|
-
api: { host: '127.0.0.1', port: 3012 },
|
|
26
|
-
})
|
|
27
|
-
);
|
|
28
|
-
await runCli(['up']);
|
|
29
|
-
|
|
30
|
-
const litePath = path.resolve(e2eDir, 'clawmini-lite.js');
|
|
31
|
-
await runCli(['export-lite', '--out', litePath]);
|
|
32
|
-
fs.chmodSync(litePath, '755');
|
|
33
|
-
|
|
34
|
-
// Create a bin dir and put clawmini-lite.js there so it's in PATH
|
|
35
|
-
const binDir = path.resolve(e2eDir, 'bin');
|
|
36
|
-
fs.mkdirSync(binDir);
|
|
37
|
-
fs.symlinkSync(litePath, path.join(binDir, 'clawmini-lite.js'));
|
|
38
|
-
|
|
39
|
-
// Update debug-agent's PATH via settings.json
|
|
40
|
-
const agentSettingsPath = path.resolve(e2eDir, '.clawmini/agents/debug-agent/settings.json');
|
|
41
|
-
const agentSettings = JSON.parse(fs.readFileSync(agentSettingsPath, 'utf8'));
|
|
42
|
-
agentSettings.env = agentSettings.env || {};
|
|
43
|
-
agentSettings.env.PATH = `${binDir}:${process.env.PATH}`;
|
|
44
|
-
fs.writeFileSync(agentSettingsPath, JSON.stringify(agentSettings, null, 2));
|
|
45
|
-
}, 30000);
|
|
46
|
-
|
|
47
|
-
afterAll(teardownE2E, 30000);
|
|
48
|
-
|
|
49
|
-
it('should return normally when subagent depth limit is not reached', async () => {
|
|
50
|
-
await runCli(['chats', 'add', 'chat-ok']);
|
|
51
|
-
await runCli([
|
|
52
|
-
'messages',
|
|
53
|
-
'send',
|
|
54
|
-
'clawmini-lite.js subagents spawn --async "echo hi"',
|
|
55
|
-
'--chat',
|
|
56
|
-
'chat-ok',
|
|
57
|
-
'--agent',
|
|
58
|
-
'debug-agent',
|
|
59
|
-
]);
|
|
60
|
-
|
|
61
|
-
// Wait for async processing
|
|
62
|
-
let chatLog = '';
|
|
63
|
-
for (let i = 0; i < 20; i++) {
|
|
64
|
-
if (fs.existsSync(path.resolve(e2eDir, '.clawmini/chats/chat-ok/chat.jsonl'))) {
|
|
65
|
-
chatLog = fs.readFileSync(
|
|
66
|
-
path.resolve(e2eDir, '.clawmini/chats/chat-ok/chat.jsonl'),
|
|
67
|
-
'utf8'
|
|
68
|
-
);
|
|
69
|
-
if (chatLog.includes('[DEBUG] echo hi:')) break;
|
|
70
|
-
}
|
|
71
|
-
await new Promise((r) => setTimeout(r, 500));
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
// Check for "[DEBUG] echo hi:" in the output
|
|
75
|
-
expect(chatLog).toContain('[DEBUG] echo hi:');
|
|
76
|
-
}, 15000);
|
|
77
|
-
|
|
78
|
-
it('should hit max agent depth limit and trigger an error', async () => {
|
|
79
|
-
await runCli(['chats', 'add', 'chat-limit']);
|
|
80
|
-
await runCli([
|
|
81
|
-
'messages',
|
|
82
|
-
'send',
|
|
83
|
-
'clawmini-lite.js subagents spawn --async "clawmini-lite.js subagents spawn --async \\"clawmini-lite.js subagents spawn --async \\\\\\"echo hi\\\\\\"\\""',
|
|
84
|
-
'--chat',
|
|
85
|
-
'chat-limit',
|
|
86
|
-
'--agent',
|
|
87
|
-
'debug-agent',
|
|
88
|
-
]);
|
|
89
|
-
|
|
90
|
-
let chatLog = '';
|
|
91
|
-
for (let i = 0; i < 20; i++) {
|
|
92
|
-
if (fs.existsSync(path.resolve(e2eDir, '.clawmini/chats/chat-limit/chat.jsonl'))) {
|
|
93
|
-
chatLog = fs.readFileSync(
|
|
94
|
-
path.resolve(e2eDir, '.clawmini/chats/chat-limit/chat.jsonl'),
|
|
95
|
-
'utf8'
|
|
96
|
-
);
|
|
97
|
-
if (chatLog.includes('Max subagent depth reached')) break;
|
|
98
|
-
}
|
|
99
|
-
await new Promise((r) => setTimeout(r, 500));
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
// It should hit max depth limit
|
|
103
|
-
expect(chatLog).toContain('Max subagent depth reached');
|
|
104
|
-
expect(chatLog).not.toContain('[DEBUG] hi:');
|
|
105
|
-
}, 15000);
|
|
106
|
-
});
|
package/src/cli/e2e/utils.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { spawn, execSync } from 'node:child_process';
|
|
2
|
-
import path from 'node:path';
|
|
3
|
-
import fs from 'node:fs';
|
|
4
|
-
|
|
5
|
-
export function createE2EContext(dirName: string) {
|
|
6
|
-
const binPath = path.resolve(__dirname, '../../../dist/cli/index.mjs');
|
|
7
|
-
const e2eDir = path.resolve(__dirname, `../../../${dirName}`);
|
|
8
|
-
|
|
9
|
-
function runCli(
|
|
10
|
-
args: string[]
|
|
11
|
-
): Promise<{ stdout: string; stderr: string; code: number | null }> {
|
|
12
|
-
const isInit = args[0] === 'init';
|
|
13
|
-
return new Promise((resolve) => {
|
|
14
|
-
const child = spawn('node', [binPath, ...args], {
|
|
15
|
-
cwd: e2eDir,
|
|
16
|
-
env: { ...process.env },
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
let stdout = '';
|
|
20
|
-
let stderr = '';
|
|
21
|
-
|
|
22
|
-
child.stdout.on('data', (data) => {
|
|
23
|
-
stdout += data.toString();
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
child.stderr.on('data', (data) => {
|
|
27
|
-
stderr += data.toString();
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
child.on('close', (code) => {
|
|
31
|
-
if (isInit && code === 0) {
|
|
32
|
-
// Update settings to set API port to 0, assigning a random available port
|
|
33
|
-
const settingsPath = path.resolve(e2eDir, '.clawmini/settings.json');
|
|
34
|
-
if (fs.existsSync(settingsPath)) {
|
|
35
|
-
try {
|
|
36
|
-
const settings = JSON.parse(fs.readFileSync(settingsPath, 'utf8'));
|
|
37
|
-
settings.api = { port: 0 }; // Use random available port to avoid EADDRINUSE during parallel e2e tests
|
|
38
|
-
fs.writeFileSync(settingsPath, JSON.stringify(settings, null, 2));
|
|
39
|
-
} catch {
|
|
40
|
-
// ignore
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
resolve({ stdout, stderr, code });
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
async function setupE2E() {
|
|
50
|
-
if (fs.existsSync(e2eDir)) {
|
|
51
|
-
fs.rmSync(e2eDir, { recursive: true, force: true });
|
|
52
|
-
}
|
|
53
|
-
fs.mkdirSync(e2eDir, { recursive: true });
|
|
54
|
-
execSync('git init', { cwd: e2eDir, stdio: 'ignore' });
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
async function teardownE2E() {
|
|
58
|
-
await runCli(['down']);
|
|
59
|
-
|
|
60
|
-
if (fs.existsSync(e2eDir)) {
|
|
61
|
-
fs.rmSync(e2eDir, { recursive: true, force: true });
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
return { runCli, e2eDir, binPath, setupE2E, teardownE2E };
|
|
66
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { Command } from 'commander';
|
|
3
|
-
import fs from 'node:fs';
|
|
4
|
-
import path from 'node:path';
|
|
5
|
-
import type { PolicyConfig, PolicyDefinition } from '../shared/policies.js';
|
|
6
|
-
import { getClawminiDir } from '../shared/workspace.js';
|
|
7
|
-
|
|
8
|
-
const program = new Command();
|
|
9
|
-
|
|
10
|
-
program
|
|
11
|
-
.name('propose-policy')
|
|
12
|
-
.description('Proposes and registers a new policy.')
|
|
13
|
-
.requiredOption('--name <policy_name>', 'Name of the policy')
|
|
14
|
-
.requiredOption('--description <description>', 'Description of the policy')
|
|
15
|
-
.option('--command <command_string>', 'The shell command to run (e.g. "npm install -g")')
|
|
16
|
-
.option('--script-file <path>', 'Path to a script file (mapped securely via --file)')
|
|
17
|
-
.addHelpText(
|
|
18
|
-
'after',
|
|
19
|
-
`
|
|
20
|
-
Examples:
|
|
21
|
-
1. Propose a policy using a direct shell command:
|
|
22
|
-
clawmini-lite request propose-policy -- --name npm-install --description "Run npm install" --command "npm install"
|
|
23
|
-
|
|
24
|
-
2. Propose a policy using a custom script file:
|
|
25
|
-
# First, write your script to a file (e.g., install.sh)
|
|
26
|
-
clawmini-lite request propose-policy --file script=./install.sh -- --name custom-install --description "Run custom install script" --script-file "{{script}}"
|
|
27
|
-
`
|
|
28
|
-
)
|
|
29
|
-
.parse(process.argv);
|
|
30
|
-
|
|
31
|
-
const options = program.opts();
|
|
32
|
-
|
|
33
|
-
const name = options.name;
|
|
34
|
-
const description = options.description;
|
|
35
|
-
const commandStr = options.command;
|
|
36
|
-
const scriptFile = options.scriptFile;
|
|
37
|
-
|
|
38
|
-
if (!/^[a-z0-9-]+$/.test(name)) {
|
|
39
|
-
console.error('Error: Policy name must only contain lowercase letters, numbers, and hyphens.');
|
|
40
|
-
process.exit(1);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
if (!commandStr && !scriptFile) {
|
|
44
|
-
console.error('Error: Must provide either --command or --script-file.');
|
|
45
|
-
process.exit(1);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
const dirPath = getClawminiDir();
|
|
49
|
-
const policiesPath = path.join(dirPath, 'policies.json');
|
|
50
|
-
|
|
51
|
-
if (!fs.existsSync(dirPath)) {
|
|
52
|
-
console.error('Error: .clawmini directory not found. Please run "clawmini init" first.');
|
|
53
|
-
process.exit(1);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
let policies: PolicyConfig = { policies: {} };
|
|
57
|
-
if (fs.existsSync(policiesPath)) {
|
|
58
|
-
policies = JSON.parse(fs.readFileSync(policiesPath, 'utf8'));
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
const policyDefinition: PolicyDefinition = {
|
|
62
|
-
description,
|
|
63
|
-
allowHelp: true,
|
|
64
|
-
command: '',
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
if (scriptFile) {
|
|
68
|
-
const scriptsDir = path.join(dirPath, 'policy-scripts');
|
|
69
|
-
if (!fs.existsSync(scriptsDir)) {
|
|
70
|
-
fs.mkdirSync(scriptsDir, { recursive: true });
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
const ext = path.extname(scriptFile) || '.sh';
|
|
74
|
-
const destScript = path.join(scriptsDir, `${name}${ext}`);
|
|
75
|
-
fs.copyFileSync(scriptFile, destScript);
|
|
76
|
-
fs.chmodSync(destScript, 0o755);
|
|
77
|
-
|
|
78
|
-
policyDefinition.command = `./.clawmini/policy-scripts/${path.basename(destScript)}`;
|
|
79
|
-
} else if (commandStr) {
|
|
80
|
-
const parts = commandStr.split(' ');
|
|
81
|
-
if (parts[0]) {
|
|
82
|
-
policyDefinition.command = parts[0];
|
|
83
|
-
}
|
|
84
|
-
if (parts.length > 1) {
|
|
85
|
-
policyDefinition.args = parts.slice(1);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
policies.policies[name] = policyDefinition;
|
|
90
|
-
fs.writeFileSync(policiesPath, JSON.stringify(policies, null, 2));
|
|
91
|
-
console.log(`Successfully proposed and registered policy '${name}'.`);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{U,V as g,W as C,K as R,X as A,Y as $,h as x,k as M,Z as G,_ as Z,b as q,d as z,E as V,e as W,g as X,i as H,j as D,m as J,$ as Q,a0 as k,o as B,L as P,a1 as ee,a2 as O,a3 as m,a4 as re,a5 as K,w,l as se,D as te,a6 as ne,a7 as ie,a8 as ae,a9 as fe,A as ue,aa as ce,ab as oe,y as le,ac as de,ad as I,ae as T,af as _,ag as N,ah as pe}from"./CME08kGM.js";let b=!1;function he(r){var e=b;try{return b=!1,[r(),b]}finally{b=e}}class _e{anchor;#r=new Map;#s=new Map;#e=new Map;#t=new Set;#n=!0;constructor(e,t=!0){this.anchor=e,this.#n=t}#i=e=>{if(this.#r.has(e)){var t=this.#r.get(e),s=this.#s.get(t);if(s)U(s),this.#t.delete(t);else{var n=this.#e.get(t);n&&(this.#s.set(t,n.effect),this.#e.delete(t),n.fragment.lastChild.remove(),this.anchor.before(n.fragment),s=n.effect)}for(const[a,u]of this.#r){if(this.#r.delete(a),a===e)break;const i=this.#e.get(u);i&&(g(i.effect),this.#e.delete(u))}for(const[a,u]of this.#s){if(a===t||this.#t.has(a))continue;const i=()=>{if(Array.from(this.#r.values()).includes(a)){var o=document.createDocumentFragment();G(u,o),o.append(R()),this.#e.set(a,{effect:u,fragment:o})}else g(u);this.#t.delete(a),this.#s.delete(a)};this.#n||!s?(this.#t.add(a),C(u,i,!1)):i()}}};#a=e=>{this.#r.delete(e);const t=Array.from(this.#r.values());for(const[s,n]of this.#e)t.includes(s)||(g(n.effect),this.#e.delete(s))};ensure(e,t){var s=$,n=Z();if(t&&!this.#s.has(e)&&!this.#e.has(e))if(n){var a=document.createDocumentFragment(),u=R();a.append(u),this.#e.set(e,{effect:A(()=>t(u)),fragment:a})}else this.#s.set(e,A(()=>t(this.anchor)));if(this.#r.set(s,e),n){for(const[i,f]of this.#s)i===e?s.unskip_effect(f):s.skip_effect(f);for(const[i,f]of this.#e)i===e?s.unskip_effect(f.effect):s.skip_effect(f.effect);s.oncommit(this.#i),s.ondiscard(this.#a)}else x&&(this.anchor=M),this.#i(s)}}function ge(r,e,t=!1){var s;x&&(s=M,z());var n=new _e(r),a=t?V:0;function u(i,f){if(x){var o=W(s);if(i!==parseInt(o.substring(1))){var l=X();H(l),n.anchor=l,D(!1),n.ensure(i,f),D(!0);return}}n.ensure(i,f)}q(()=>{var i=!1;e((f,o=0)=>{i=!0,u(o,f)}),i||u(-1,null)},a)}function L(r,e){return r===e||r?.[O]===e}function xe(r={},e,t,s){var n=J.r,a=P;return Q(()=>{var u,i;return k(()=>{u=i,i=[],B(()=>{r!==t(...i)&&(e(r,...i),u&&L(t(...u),r)&&e(null,...u))})}),()=>{let f=a;for(;f!==n&&f.parent!==null&&f.parent.fⅇ)f=f.parent;const o=()=>{i&&L(t(...i),r)&&e(null,...i)},l=f.teardown;f.teardown=()=>{o(),l?.()}}}),r}const ve={get(r,e){if(!r.exclude.includes(e))return r.props[e]},set(r,e){return!1},getOwnPropertyDescriptor(r,e){if(!r.exclude.includes(e)&&e in r.props)return{enumerable:!0,configurable:!0,value:r.props[e]}},has(r,e){return r.exclude.includes(e)?!1:e in r.props},ownKeys(r){return Reflect.ownKeys(r.props).filter(e=>!r.exclude.includes(e))}};function me(r,e,t){return new Proxy({props:r,exclude:e},ve)}const be={get(r,e){if(!r.exclude.includes(e))return w(r.version),e in r.special?r.special[e]():r.props[e]},set(r,e,t){if(!(e in r.special)){var s=P;try{T(r.parent_effect),r.special[e]=Pe({get[e](){return r.props[e]}},e,K)}finally{T(s)}}return r.special[e](t),I(r.version),!0},getOwnPropertyDescriptor(r,e){if(!r.exclude.includes(e)&&e in r.props)return{enumerable:!0,configurable:!0,value:r.props[e]}},deleteProperty(r,e){return r.exclude.includes(e)||(r.exclude.push(e),I(r.version)),!0},has(r,e){return r.exclude.includes(e)?!1:e in r.props},ownKeys(r){return Reflect.ownKeys(r.props).filter(e=>!r.exclude.includes(e))}};function Oe(r,e){return new Proxy({props:r,exclude:e,special:{},version:ae(0),parent_effect:P},be)}const we={get(r,e){let t=r.props.length;for(;t--;){let s=r.props[t];if(_(s)&&(s=s()),typeof s=="object"&&s!==null&&e in s)return s[e]}},set(r,e,t){let s=r.props.length;for(;s--;){let n=r.props[s];_(n)&&(n=n());const a=m(n,e);if(a&&a.set)return a.set(t),!0}return!1},getOwnPropertyDescriptor(r,e){let t=r.props.length;for(;t--;){let s=r.props[t];if(_(s)&&(s=s()),typeof s=="object"&&s!==null&&e in s){const n=m(s,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(r,e){if(e===O||e===N)return!1;for(let t of r.props)if(_(t)&&(t=t()),t!=null&&e in t)return!0;return!1},ownKeys(r){const e=[];for(let t of r.props)if(_(t)&&(t=t()),!!t){for(const s in t)e.includes(s)||e.push(s);for(const s of Object.getOwnPropertySymbols(t))e.includes(s)||e.push(s)}return e}};function ye(...r){return new Proxy({props:r},we)}function Pe(r,e,t,s){var n=!ue||(t&ce)!==0,a=(t&fe)!==0,u=(t&pe)!==0,i=s,f=!0,o=()=>(f&&(f=!1,i=u?B(s):s),i);let l;if(a){var Y=O in r||N in r;l=m(r,e)?.set??(Y&&e in r?c=>r[e]=c:void 0)}var p,y=!1;a?[p,y]=he(()=>r[e]):p=r[e],p===void 0&&s!==void 0&&(p=o(),l&&(n&&re(),l(p)));var d;if(n?d=()=>{var c=r[e];return c===void 0?o():(f=!0,c)}:d=()=>{var c=r[e];return c!==void 0&&(i=void 0),c===void 0?i:c},n&&(t&K)===0)return d;if(l){var j=r.$$legacy;return(function(c,v){return arguments.length>0?((!n||!v||j||y)&&l(v?d():c),c):d()})}var S=!1,h=((t&oe)!==0?le:de)(()=>(S=!1,d()));a&&w(h);var F=P;return(function(c,v){if(arguments.length>0){const E=v?w(h):n&&a?se(c):c;return te(h,E),S=!0,i!==void 0&&(i=E),c}return ne&&S||(F.f&ie)!==0?h.v:w(h)})}export{_e as B,xe as b,ge as i,Oe as l,Pe as p,me as r,ye as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{J as T,K as c,L as v,M as l,N as h,T as g,O as w,h as i,k as n,R as E,d as m,P as N,i as y,Q as M,S as x}from"./CME08kGM.js";const O=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function C(e){return O?.createHTML(e)??e}function p(e){var r=T("template");return r.innerHTML=C(e.replaceAll("<!>","<!---->")),r.content}function a(e,r){var t=v;t.nodes===null&&(t.nodes={start:e,end:r,a:null,t:null})}function P(e,r){var t=(r&g)!==0,f=(r&w)!==0,s,d=!e.startsWith("<!>");return()=>{if(i)return a(n,null),n;s===void 0&&(s=p(d?e:"<!>"+e),t||(s=l(s)));var o=f||h?document.importNode(s,!0):s.cloneNode(!0);if(t){var _=l(o),u=o.lastChild;a(_,u)}else a(o,o);return o}}function L(e,r,t="svg"){var f=!e.startsWith("<!>"),s=`<${t}>${f?e:"<!>"+e}</${t}>`,d;return()=>{if(i)return a(n,null),n;if(!d){var o=p(s),_=l(o);d=l(_)}var u=d.cloneNode(!0);return a(u,u),u}}function R(e,r){return L(e,r,"svg")}function $(e=""){if(!i){var r=c(e+"");return a(r,r),r}var t=n;return t.nodeType!==N?(t.before(t=c()),y(t)):M(t),a(t,t),t}function D(){if(i)return a(n,null),n;var e=document.createDocumentFragment(),r=document.createComment(""),t=c();return e.append(r,t),a(r,t),e}function I(e,r){if(i){var t=v;((t.f&E)===0||t.nodes.end===null)&&(t.nodes.end=n),m();return}e!==null&&e.before(r)}function S(){if(i&&n&&n.nodeType===x&&n.textContent?.startsWith("$")){const e=n.textContent.substring(1);return m(),e}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}const b="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(b);export{I as a,a as b,D as c,R as d,P as f,S as p,$ as t};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{K as Me,b as $e,aR as zr,h as R,i as de,M as Mr,d as Ee,w as fe,e as gt,am as bt,g as ir,j as ae,k as ne,S as ht,aJ as vt,au as lr,Y as $,aS as J,X as we,aT as yt,_ as wt,ac as kt,aU as Er,aI as er,aV as xt,aW as _t,aM as At,a8 as cr,aX as Ct,a7 as St,U as Nr,W as Ir,aY as Fe,ak as Vr,aZ as Tt,a_ as zt,aG as Mt,Z as Et,V as Ne,aD as Nt,E as Pr,a$ as It,J as Vt,aP as Pt,L as Rt,az as Rr,b0 as Gr,$ as rr,b1 as Gt,b2 as Ot,b3 as tr,b4 as Lt,b5 as Ft,b6 as Oe,b7 as Wt,b8 as Bt,b9 as jt,ba as Dt,bb as Ut,bc as Ht,bd as Yt,aN as qt,o as He,a0 as Or,p as Lr,f as Fr,a as Wr,c as Ye,be as dr,r as qe,x as ce,s as Kt,G as Xt,bf as Jt}from"./CME08kGM.js";import{b as Zt,c as Br,a as ve,f as jr,d as Qt}from"./BmRlVmv6.js";import{B as Dr,p as K,i as $t,b as fr,r as eo,l as ur}from"./B6YN0Nuq.js";import"./Ck3rYNON.js";import{i as ro,b as to,a as oo,d as so,c as no,n as ao,f as io}from"./DMtIqaiV.js";import{i as lo}from"./DpuLqk8d.js";function co(e,r){return r}function fo(e,r,o){for(var t=[],n=r.length,s,a=r.length,l=0;l<n;l++){let v=r[l];Ir(v,()=>{if(s){if(s.pending.delete(v),s.done.add(v),s.pending.size===0){var f=e.outrogroups;Ke(e,er(s.done)),f.delete(s),f.size===0&&(e.outrogroups=null)}}else a-=1},!1)}if(a===0){var i=t.length===0&&o!==null;if(i){var c=o,d=c.parentNode;Mt(d),d.append(c),e.items.clear()}Ke(e,r,!i)}else s={pending:new Set(r),done:new Set},(e.outrogroups??=new Set).add(s)}function Ke(e,r,o=!0){var t;if(e.pending.size>0){t=new Set;for(const a of e.pending.values())for(const l of a)t.add(e.items.get(l).e)}for(var n=0;n<r.length;n++){var s=r[n];if(t?.has(s)){s.f|=J;const a=document.createDocumentFragment();Et(s,a)}else Ne(r[n],o)}}var mr;function uo(e,r,o,t,n,s=null){var a=e,l=new Map,i=(r&zr)!==0;if(i){var c=e;a=R?de(Mr(c)):c.appendChild(Me())}R&&Ee();var d=null,v=kt(()=>{var A=o();return Er(A)?A:A==null?[]:er(A)}),f,h=new Map,_=!0;function w(A){(V.effect.f&St)===0&&(V.pending.delete(A),V.fallback=d,mo(V,f,a,r,t),d!==null&&(f.length===0?(d.f&J)===0?Nr(d):(d.f^=J,be(d,null,a)):Ir(d,()=>{d=null})))}function u(A){V.pending.delete(A)}var y=$e(()=>{f=fe(v);var A=f.length;let T=!1;if(R){var G=gt(a)===bt;G!==(A===0)&&(a=ir(),de(a),ae(!1),T=!0)}for(var k=new Set,x=$,m=wt(),M=0;M<A;M+=1){R&&ne.nodeType===ht&&ne.data===vt&&(a=ne,T=!0,ae(!1));var N=f[M],H=t(N,M),B=_?null:l.get(H);B?(B.v&&lr(B.v,N),B.i&&lr(B.i,M),m&&x.unskip_effect(B.e)):(B=po(l,_?a:mr??=Me(),N,H,M,n,r,o),_||(B.e.f|=J),l.set(H,B)),k.add(H)}if(A===0&&s&&!d&&(_?d=we(()=>s(a)):(d=we(()=>s(mr??=Me())),d.f|=J)),A>k.size&&yt(),R&&A>0&&de(ir()),!_)if(h.set(x,k),m){for(const[le,z]of l)k.has(le)||x.skip_effect(z.e);x.oncommit(w),x.ondiscard(u)}else w(x);T&&ae(!0),fe(v)}),V={effect:y,items:l,pending:h,outrogroups:null,fallback:d};_=!1,R&&(a=ne)}function ue(e){for(;e!==null&&(e.f&Tt)===0;)e=e.next;return e}function mo(e,r,o,t,n){var s=(t&zt)!==0,a=r.length,l=e.items,i=ue(e.effect.first),c,d=null,v,f=[],h=[],_,w,u,y;if(s)for(y=0;y<a;y+=1)_=r[y],w=n(_,y),u=l.get(w).e,(u.f&J)===0&&(u.nodes?.a?.measure(),(v??=new Set).add(u));for(y=0;y<a;y+=1){if(_=r[y],w=n(_,y),u=l.get(w).e,e.outrogroups!==null)for(const N of e.outrogroups)N.pending.delete(u),N.done.delete(u);if((u.f&Fe)!==0&&(Nr(u),s&&(u.nodes?.a?.unfix(),(v??=new Set).delete(u))),(u.f&J)!==0)if(u.f^=J,u===i)be(u,null,o);else{var V=d?d.next:i;u===e.effect.last&&(e.effect.last=u.prev),u.prev&&(u.prev.next=u.next),u.next&&(u.next.prev=u.prev),ee(e,d,u),ee(e,u,V),be(u,V,o),d=u,f=[],h=[],i=ue(d.next);continue}if(u!==i){if(c!==void 0&&c.has(u)){if(f.length<h.length){var A=h[0],T;d=A.prev;var G=f[0],k=f[f.length-1];for(T=0;T<f.length;T+=1)be(f[T],A,o);for(T=0;T<h.length;T+=1)c.delete(h[T]);ee(e,G.prev,k.next),ee(e,d,G),ee(e,k,A),i=A,d=k,y-=1,f=[],h=[]}else c.delete(u),be(u,i,o),ee(e,u.prev,u.next),ee(e,u,d===null?e.effect.first:d.next),ee(e,d,u),d=u;continue}for(f=[],h=[];i!==null&&i!==u;)(c??=new Set).add(i),h.push(i),i=ue(i.next);if(i===null)continue}(u.f&J)===0&&f.push(u),d=u,i=ue(u.next)}if(e.outrogroups!==null){for(const N of e.outrogroups)N.pending.size===0&&(Ke(e,er(N.done)),e.outrogroups?.delete(N));e.outrogroups.size===0&&(e.outrogroups=null)}if(i!==null||c!==void 0){var x=[];if(c!==void 0)for(u of c)(u.f&Fe)===0&&x.push(u);for(;i!==null;)(i.f&Fe)===0&&i!==e.fallback&&x.push(i),i=ue(i.next);var m=x.length;if(m>0){var M=(t&zr)!==0&&a===0?o:null;if(s){for(y=0;y<m;y+=1)x[y].nodes?.a?.measure();for(y=0;y<m;y+=1)x[y].nodes?.a?.fix()}fo(e,x,M)}}s&&Vr(()=>{if(v!==void 0)for(u of v)u.nodes?.a?.apply()})}function po(e,r,o,t,n,s,a,l){var i=(a&xt)!==0?(a&_t)===0?At(o,!1,!1):cr(o):null,c=(a&Ct)!==0?cr(n):null;return{v:i,i:c,e:we(()=>(s(r,i??o,c??n,l),()=>{e.delete(t)}))}}function be(e,r,o){if(e.nodes)for(var t=e.nodes.start,n=e.nodes.end,s=r&&(r.f&J)===0?r.nodes.start:o;t!==null;){var a=Nt(t);if(s.before(t),t===n)return;t=a}}function ee(e,r,o){r===null?e.effect.first=o:r.next=o,o===null?e.effect.last=r:o.prev=r}function go(e,r,o,t,n){R&&Ee();var s=r.$$slots?.[o],a=!1;s===!0&&(s=r.children,a=!0),s===void 0||s(e,a?()=>t:t)}function pr(e,r,...o){var t=new Dr(e);$e(()=>{const n=r()??null;t.ensure(n,n&&(s=>n(s,...o)))},Pr)}function bo(e,r,o,t,n,s){let a=R;R&&Ee();var l=null;R&&ne.nodeType===It&&(l=ne,Ee());var i=R?ne:e,c=new Dr(i,!1);$e(()=>{const d=r()||null;var v=Pt;if(d===null){c.ensure(null,null);return}return c.ensure(d,f=>{if(d){if(l=R?l:Vt(d,v),Zt(l,l),t){R&&ro(d)&&l.append(document.createComment(""));var h=R?Mr(l):l.appendChild(Me());R&&(h===null?ae(!1):de(h)),t(l,h)}Rt.nodes.end=l,f.before(l)}R&&de(f)}),()=>{}},Pr),Rr(()=>{}),a&&(ae(!0),de(i))}function ho(e,r){var o=void 0,t;Gr(()=>{o!==(o=r())&&(t&&(Ne(t),t=null),o&&(t=we(()=>{rr(()=>o(e))})))})}function Ur(e){var r,o,t="";if(typeof e=="string"||typeof e=="number")t+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(r=0;r<n;r++)e[r]&&(o=Ur(e[r]))&&(t&&(t+=" "),t+=o)}else for(o in e)e[o]&&(t&&(t+=" "),t+=o);return t}function Hr(){for(var e,r,o=0,t="",n=arguments.length;o<n;o++)(e=arguments[o])&&(r=Ur(e))&&(t&&(t+=" "),t+=r);return t}function vo(e){return typeof e=="object"?Hr(e):e??""}const gr=[...`
|
|
2
|
-
\r\f \v\uFEFF`];function yo(e,r,o){var t=e==null?"":""+e;if(o){for(var n of Object.keys(o))if(o[n])t=t?t+" "+n:n;else if(t.length)for(var s=n.length,a=0;(a=t.indexOf(n,a))>=0;){var l=a+s;(a===0||gr.includes(t[a-1]))&&(l===t.length||gr.includes(t[l]))?t=(a===0?"":t.substring(0,a))+t.substring(l+1):a=l}}return t===""?null:t}function br(e,r=!1){var o=r?" !important;":";",t="";for(var n of Object.keys(e)){var s=e[n];s!=null&&s!==""&&(t+=" "+n+": "+s+o)}return t}function We(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function wo(e,r){if(r){var o="",t,n;if(Array.isArray(r)?(t=r[0],n=r[1]):t=r,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,a=0,l=!1,i=[];t&&i.push(...Object.keys(t).map(We)),n&&i.push(...Object.keys(n).map(We));var c=0,d=-1;const w=e.length;for(var v=0;v<w;v++){var f=e[v];if(l?f==="/"&&e[v-1]==="*"&&(l=!1):s?s===f&&(s=!1):f==="/"&&e[v+1]==="*"?l=!0:f==='"'||f==="'"?s=f:f==="("?a++:f===")"&&a--,!l&&s===!1&&a===0){if(f===":"&&d===-1)d=v;else if(f===";"||v===w-1){if(d!==-1){var h=We(e.substring(c,d).trim());if(!i.includes(h)){f!==";"&&v++;var _=e.substring(c,v).trim();o+=" "+_+";"}}c=v+1,d=-1}}}}return t&&(o+=br(t)),n&&(o+=br(n,!0)),o=o.trim(),o===""?null:o}return e==null?null:String(e)}function ko(e,r,o,t,n,s){var a=e.__className;if(R||a!==o||a===void 0){var l=yo(o,t,s);(!R||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):r?e.className=l:e.setAttribute("class",l)),e.__className=o}else if(s&&n!==s)for(var i in s){var c=!!s[i];(n==null||c!==!!n[i])&&e.classList.toggle(i,c)}return s}function Be(e,r={},o,t){for(var n in o){var s=o[n];r[n]!==s&&(o[n]==null?e.style.removeProperty(n):e.style.setProperty(n,s,t))}}function xo(e,r,o,t){var n=e.__style;if(R||n!==r){var s=wo(r,t);(!R||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=r}else t&&(Array.isArray(t)?(Be(e,o?.[0],t[0]),Be(e,o?.[1],t[1],"important")):Be(e,o,t));return t}function Ie(e,r,o=!1){if(e.multiple){if(r==null)return;if(!Er(r))return Gt();for(var t of e.options)t.selected=r.includes(ye(t));return}for(t of e.options){var n=ye(t);if(Ot(n,r)){t.selected=!0;return}}(!o||r!==void 0)&&(e.selectedIndex=-1)}function Yr(e){var r=new MutationObserver(()=>{Ie(e,e.__value)});r.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Rr(()=>{r.disconnect()})}function Ws(e,r,o=r){var t=new WeakSet,n=!0;tr(e,"change",s=>{var a=s?"[selected]":":checked",l;if(e.multiple)l=[].map.call(e.querySelectorAll(a),ye);else{var i=e.querySelector(a)??e.querySelector("option:not([disabled])");l=i&&ye(i)}o(l),e.__value=l,$!==null&&t.add($)}),rr(()=>{var s=r();if(e===document.activeElement){var a=$;if(t.has(a))return}if(Ie(e,s,n),n&&s===void 0){var l=e.querySelector(":checked");l!==null&&(s=ye(l),o(s))}e.__value=s,n=!1}),Yr(e)}function ye(e){return"__value"in e?e.__value:e.value}const me=Symbol("class"),pe=Symbol("style"),qr=Symbol("is custom element"),Kr=Symbol("is html"),_o=Oe?"link":"LINK",Ao=Oe?"input":"INPUT",Co=Oe?"option":"OPTION",So=Oe?"select":"SELECT";function To(e){if(R){var r=!1,o=()=>{if(!r){if(r=!0,e.hasAttribute("value")){var t=e.value;Ve(e,"value",null),e.value=t}if(e.hasAttribute("checked")){var n=e.checked;Ve(e,"checked",null),e.checked=n}}};e.__on_r=o,Vr(o),jt()}}function zo(e,r){r?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function Ve(e,r,o,t){var n=Xr(e);R&&(n[r]=e.getAttribute(r),r==="src"||r==="srcset"||r==="href"&&e.nodeName===_o)||n[r]!==(n[r]=o)&&(r==="loading"&&(e[Ht]=o),o==null?e.removeAttribute(r):typeof o!="string"&&Jr(e).includes(r)?e[r]=o:e.setAttribute(r,o))}function Mo(e,r,o,t,n=!1,s=!1){if(R&&n&&e.nodeName===Ao){var a=e,l=a.type==="checkbox"?"defaultChecked":"defaultValue";l in o||To(a)}var i=Xr(e),c=i[qr],d=!i[Kr];let v=R&&c;v&&ae(!1);var f=r||{},h=e.nodeName===Co;for(var _ in r)_ in o||(o[_]=null);o.class?o.class=vo(o.class):o[me]&&(o.class=null),o[pe]&&(o.style??=null);var w=Jr(e);for(const k in o){let x=o[k];if(h&&k==="value"&&x==null){e.value=e.__value="",f[k]=x;continue}if(k==="class"){var u=e.namespaceURI==="http://www.w3.org/1999/xhtml";ko(e,u,x,t,r?.[me],o[me]),f[k]=x,f[me]=o[me];continue}if(k==="style"){xo(e,x,r?.[pe],o[pe]),f[k]=x,f[pe]=o[pe];continue}var y=f[k];if(!(x===y&&!(x===void 0&&e.hasAttribute(k)))){f[k]=x;var V=k[0]+k[1];if(V!=="$$")if(V==="on"){const m={},M="$$"+k;let N=k.slice(2);var A=io(N);if(to(N)&&(N=N.slice(0,-7),m.capture=!0),!A&&y){if(x!=null)continue;e.removeEventListener(N,f[M],m),f[M]=null}if(A)oo(N,e,x),so([N]);else if(x!=null){let H=function(B){f[k].call(this,B)};f[M]=no(N,e,H,m)}}else if(k==="style")Ve(e,k,x);else if(k==="autofocus")Wt(e,!!x);else if(!c&&(k==="__value"||k==="value"&&x!=null))e.value=e.__value=x;else if(k==="selected"&&h)zo(e,x);else{var T=k;d||(T=ao(T));var G=T==="defaultValue"||T==="defaultChecked";if(x==null&&!c&&!G)if(i[k]=null,T==="value"||T==="checked"){let m=e;const M=r===void 0;if(T==="value"){let N=m.defaultValue;m.removeAttribute(T),m.defaultValue=N,m.value=m.__value=M?N:null}else{let N=m.defaultChecked;m.removeAttribute(T),m.defaultChecked=N,m.checked=M?N:!1}}else e.removeAttribute(k);else G||w.includes(T)&&(c||typeof x!="string")?(e[T]=x,T in i&&(i[T]=Bt)):typeof x!="function"&&Ve(e,T,x)}}}return v&&ae(!0),f}function Pe(e,r,o=[],t=[],n=[],s,a=!1,l=!1){Lt(n,o,t,i=>{var c=void 0,d={},v=e.nodeName===So,f=!1;if(Gr(()=>{var _=r(...i.map(fe)),w=Mo(e,c,_,s,a,l);f&&v&&"value"in _&&Ie(e,_.value);for(let y of Object.getOwnPropertySymbols(d))_[y]||Ne(d[y]);for(let y of Object.getOwnPropertySymbols(_)){var u=_[y];y.description===Ft&&(!c||u!==c[y])&&(d[y]&&Ne(d[y]),d[y]=we(()=>ho(e,()=>u))),w[y]=u}c=w}),v){var h=e;rr(()=>{Ie(h,c.value,!0),Yr(h)})}f=!0})}function Xr(e){return e.__attributes??={[qr]:e.nodeName.includes("-"),[Kr]:e.namespaceURI===Dt}}var hr=new Map;function Jr(e){var r=e.getAttribute("is")||e.nodeName,o=hr.get(r);if(o)return o;hr.set(r,o=[]);for(var t,n=e,s=Element.prototype;s!==n;){t=Yt(n);for(var a in t)t[a].set&&o.push(a);n=Ut(n)}return o}function Bs(e,r,o=r){var t=new WeakSet;tr(e,"input",async n=>{var s=n?e.defaultValue:e.value;if(s=je(e)?De(s):s,o(s),$!==null&&t.add($),await qt(),s!==(s=r())){var a=e.selectionStart,l=e.selectionEnd,i=e.value.length;if(e.value=s??"",l!==null){var c=e.value.length;a===l&&l===i&&c>i?(e.selectionStart=c,e.selectionEnd=c):(e.selectionStart=a,e.selectionEnd=Math.min(l,c))}}}),(R&&e.defaultValue!==e.value||He(r)==null&&e.value)&&(o(je(e)?De(e.value):e.value),$!==null&&t.add($)),Or(()=>{var n=r();if(e===document.activeElement){var s=$;if(t.has(s))return}je(e)&&n===De(e.value)||e.type==="date"&&!n&&!e.value||n!==e.value&&(e.value=n??"")})}function je(e){var r=e.type;return r==="number"||r==="range"}function De(e){return e===""?null:+e}function js(e,r,o=r){tr(e,"change",()=>{o(e.files)}),R&&e.files&&o(e.files),Or(()=>{e.files=r()})}const Eo=(e,r)=>{const o=new Array(e.length+r.length);for(let t=0;t<e.length;t++)o[t]=e[t];for(let t=0;t<r.length;t++)o[e.length+t]=r[t];return o},No=(e,r)=>({classGroupId:e,validator:r}),Zr=(e=new Map,r=null,o)=>({nextPart:e,validators:r,classGroupId:o}),Re="-",vr=[],Io="arbitrary..",Vo=e=>{const r=Ro(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return Po(a);const l=a.split(Re),i=l[0]===""&&l.length>1?1:0;return Qr(l,i,r)},getConflictingClassGroupIds:(a,l)=>{if(l){const i=t[a],c=o[a];return i?c?Eo(c,i):i:c||vr}return o[a]||vr}}},Qr=(e,r,o)=>{if(e.length-r===0)return o.classGroupId;const n=e[r],s=o.nextPart.get(n);if(s){const c=Qr(e,r+1,s);if(c)return c}const a=o.validators;if(a===null)return;const l=r===0?e.join(Re):e.slice(r).join(Re),i=a.length;for(let c=0;c<i;c++){const d=a[c];if(d.validator(l))return d.classGroupId}},Po=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=e.slice(1,-1),o=r.indexOf(":"),t=r.slice(0,o);return t?Io+t:void 0})(),Ro=e=>{const{theme:r,classGroups:o}=e;return Go(o,r)},Go=(e,r)=>{const o=Zr();for(const t in e){const n=e[t];or(n,o,t,r)}return o},or=(e,r,o,t)=>{const n=e.length;for(let s=0;s<n;s++){const a=e[s];Oo(a,r,o,t)}},Oo=(e,r,o,t)=>{if(typeof e=="string"){Lo(e,r,o);return}if(typeof e=="function"){Fo(e,r,o,t);return}Wo(e,r,o,t)},Lo=(e,r,o)=>{const t=e===""?r:$r(r,e);t.classGroupId=o},Fo=(e,r,o,t)=>{if(Bo(e)){or(e(t),r,o,t);return}r.validators===null&&(r.validators=[]),r.validators.push(No(o,e))},Wo=(e,r,o,t)=>{const n=Object.entries(e),s=n.length;for(let a=0;a<s;a++){const[l,i]=n[a];or(i,$r(r,l),o,t)}},$r=(e,r)=>{let o=e;const t=r.split(Re),n=t.length;for(let s=0;s<n;s++){const a=t[s];let l=o.nextPart.get(a);l||(l=Zr(),o.nextPart.set(a,l)),o=l}return o},Bo=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,jo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,o=Object.create(null),t=Object.create(null);const n=(s,a)=>{o[s]=a,r++,r>e&&(r=0,t=o,o=Object.create(null))};return{get(s){let a=o[s];if(a!==void 0)return a;if((a=t[s])!==void 0)return n(s,a),a},set(s,a){s in o?o[s]=a:n(s,a)}}},Xe="!",yr=":",Do=[],wr=(e,r,o,t,n)=>({modifiers:e,hasImportantModifier:r,baseClassName:o,maybePostfixModifierPosition:t,isExternal:n}),Uo=e=>{const{prefix:r,experimentalParseClassName:o}=e;let t=n=>{const s=[];let a=0,l=0,i=0,c;const d=n.length;for(let w=0;w<d;w++){const u=n[w];if(a===0&&l===0){if(u===yr){s.push(n.slice(i,w)),i=w+1;continue}if(u==="/"){c=w;continue}}u==="["?a++:u==="]"?a--:u==="("?l++:u===")"&&l--}const v=s.length===0?n:n.slice(i);let f=v,h=!1;v.endsWith(Xe)?(f=v.slice(0,-1),h=!0):v.startsWith(Xe)&&(f=v.slice(1),h=!0);const _=c&&c>i?c-i:void 0;return wr(s,h,f,_)};if(r){const n=r+yr,s=t;t=a=>a.startsWith(n)?s(a.slice(n.length)):wr(Do,!1,a,void 0,!0)}if(o){const n=t;t=s=>o({className:s,parseClassName:n})}return t},Ho=e=>{const r=new Map;return e.orderSensitiveModifiers.forEach((o,t)=>{r.set(o,1e6+t)}),o=>{const t=[];let n=[];for(let s=0;s<o.length;s++){const a=o[s],l=a[0]==="[",i=r.has(a);l||i?(n.length>0&&(n.sort(),t.push(...n),n=[]),t.push(a)):n.push(a)}return n.length>0&&(n.sort(),t.push(...n)),t}},Yo=e=>({cache:jo(e.cacheSize),parseClassName:Uo(e),sortModifiers:Ho(e),...Vo(e)}),qo=/\s+/,Ko=(e,r)=>{const{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:n,sortModifiers:s}=r,a=[],l=e.trim().split(qo);let i="";for(let c=l.length-1;c>=0;c-=1){const d=l[c],{isExternal:v,modifiers:f,hasImportantModifier:h,baseClassName:_,maybePostfixModifierPosition:w}=o(d);if(v){i=d+(i.length>0?" "+i:i);continue}let u=!!w,y=t(u?_.substring(0,w):_);if(!y){if(!u){i=d+(i.length>0?" "+i:i);continue}if(y=t(_),!y){i=d+(i.length>0?" "+i:i);continue}u=!1}const V=f.length===0?"":f.length===1?f[0]:s(f).join(":"),A=h?V+Xe:V,T=A+y;if(a.indexOf(T)>-1)continue;a.push(T);const G=n(y,u);for(let k=0;k<G.length;++k){const x=G[k];a.push(A+x)}i=d+(i.length>0?" "+i:i)}return i},Xo=(...e)=>{let r=0,o,t,n="";for(;r<e.length;)(o=e[r++])&&(t=et(o))&&(n&&(n+=" "),n+=t);return n},et=e=>{if(typeof e=="string")return e;let r,o="";for(let t=0;t<e.length;t++)e[t]&&(r=et(e[t]))&&(o&&(o+=" "),o+=r);return o},Je=(e,...r)=>{let o,t,n,s;const a=i=>{const c=r.reduce((d,v)=>v(d),e());return o=Yo(c),t=o.cache.get,n=o.cache.set,s=l,l(i)},l=i=>{const c=t(i);if(c)return c;const d=Ko(i,o);return n(i,d),d};return s=a,(...i)=>s(Xo(...i))},Jo=[],W=e=>{const r=o=>o[e]||Jo;return r.isThemeGetter=!0,r},rt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,tt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Zo=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Qo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$o=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,es=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,rs=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ts=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,re=e=>Zo.test(e),S=e=>!!e&&!Number.isNaN(Number(e)),te=e=>!!e&&Number.isInteger(Number(e)),Ue=e=>e.endsWith("%")&&S(e.slice(0,-1)),Z=e=>Qo.test(e),ot=()=>!0,os=e=>$o.test(e)&&!es.test(e),sr=()=>!1,ss=e=>rs.test(e),ns=e=>ts.test(e),as=e=>!p(e)&&!g(e),is=e=>oe(e,at,sr),p=e=>rt.test(e),se=e=>oe(e,it,os),kr=e=>oe(e,gs,S),ls=e=>oe(e,ct,ot),cs=e=>oe(e,lt,sr),xr=e=>oe(e,st,sr),ds=e=>oe(e,nt,ns),Ce=e=>oe(e,dt,ss),g=e=>tt.test(e),ge=e=>ie(e,it),fs=e=>ie(e,lt),_r=e=>ie(e,st),us=e=>ie(e,at),ms=e=>ie(e,nt),Se=e=>ie(e,dt,!0),ps=e=>ie(e,ct,!0),oe=(e,r,o)=>{const t=rt.exec(e);return t?t[1]?r(t[1]):o(t[2]):!1},ie=(e,r,o=!1)=>{const t=tt.exec(e);return t?t[1]?r(t[1]):o:!1},st=e=>e==="position"||e==="percentage",nt=e=>e==="image"||e==="url",at=e=>e==="length"||e==="size"||e==="bg-size",it=e=>e==="length",gs=e=>e==="number",lt=e=>e==="family-name",ct=e=>e==="number"||e==="weight",dt=e=>e==="shadow",Ze=()=>{const e=W("color"),r=W("font"),o=W("text"),t=W("font-weight"),n=W("tracking"),s=W("leading"),a=W("breakpoint"),l=W("container"),i=W("spacing"),c=W("radius"),d=W("shadow"),v=W("inset-shadow"),f=W("text-shadow"),h=W("drop-shadow"),_=W("blur"),w=W("perspective"),u=W("aspect"),y=W("ease"),V=W("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],G=()=>[...T(),g,p],k=()=>["auto","hidden","clip","visible","scroll"],x=()=>["auto","contain","none"],m=()=>[g,p,i],M=()=>[re,"full","auto",...m()],N=()=>[te,"none","subgrid",g,p],H=()=>["auto",{span:["full",te,g,p]},te,g,p],B=()=>[te,"auto",g,p],le=()=>["auto","min","max","fr",g,p],z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],E=()=>["start","end","center","stretch","center-safe","end-safe"],C=()=>["auto",...m()],I=()=>[re,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...m()],P=()=>[re,"screen","full","dvw","lvw","svw","min","max","fit",...m()],L=()=>[re,"screen","full","lh","dvh","lvh","svh","min","max","fit",...m()],b=()=>[e,g,p],q=()=>[...T(),_r,xr,{position:[g,p]}],D=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Y=()=>["auto","cover","contain",us,is,{size:[g,p]}],X=()=>[Ue,ge,se],O=()=>["","none","full",c,g,p],F=()=>["",S,ge,se],ke=()=>["solid","dashed","dotted","double"],nr=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j=()=>[S,Ue,_r,xr],ar=()=>["","none",_,g,p],xe=()=>["none",S,g,p],_e=()=>["none",S,g,p],Le=()=>[S,g,p],Ae=()=>[re,"full",...m()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Z],breakpoint:[Z],color:[ot],container:[Z],"drop-shadow":[Z],ease:["in","out","in-out"],font:[as],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Z],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Z],shadow:[Z],spacing:["px",S],text:[Z],"text-shadow":[Z],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",re,p,g,u]}],container:["container"],columns:[{columns:[S,p,g,l]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:G()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:x()}],"overscroll-x":[{"overscroll-x":x()}],"overscroll-y":[{"overscroll-y":x()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{"inset-s":M(),start:M()}],end:[{"inset-e":M(),end:M()}],"inset-bs":[{"inset-bs":M()}],"inset-be":[{"inset-be":M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[te,"auto",g,p]}],basis:[{basis:[re,"full","auto",l,...m()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[S,re,"auto","initial","none",p]}],grow:[{grow:["",S,g,p]}],shrink:[{shrink:["",S,g,p]}],order:[{order:[te,"first","last","none",g,p]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:H()}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:H()}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:m()}],"gap-x":[{"gap-x":m()}],"gap-y":[{"gap-y":m()}],"justify-content":[{justify:[...z(),"normal"]}],"justify-items":[{"justify-items":[...E(),"normal"]}],"justify-self":[{"justify-self":["auto",...E()]}],"align-content":[{content:["normal",...z()]}],"align-items":[{items:[...E(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...E(),{baseline:["","last"]}]}],"place-content":[{"place-content":z()}],"place-items":[{"place-items":[...E(),"baseline"]}],"place-self":[{"place-self":["auto",...E()]}],p:[{p:m()}],px:[{px:m()}],py:[{py:m()}],ps:[{ps:m()}],pe:[{pe:m()}],pbs:[{pbs:m()}],pbe:[{pbe:m()}],pt:[{pt:m()}],pr:[{pr:m()}],pb:[{pb:m()}],pl:[{pl:m()}],m:[{m:C()}],mx:[{mx:C()}],my:[{my:C()}],ms:[{ms:C()}],me:[{me:C()}],mbs:[{mbs:C()}],mbe:[{mbe:C()}],mt:[{mt:C()}],mr:[{mr:C()}],mb:[{mb:C()}],ml:[{ml:C()}],"space-x":[{"space-x":m()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":m()}],"space-y-reverse":["space-y-reverse"],size:[{size:I()}],"inline-size":[{inline:["auto",...P()]}],"min-inline-size":[{"min-inline":["auto",...P()]}],"max-inline-size":[{"max-inline":["none",...P()]}],"block-size":[{block:["auto",...L()]}],"min-block-size":[{"min-block":["auto",...L()]}],"max-block-size":[{"max-block":["none",...L()]}],w:[{w:[l,"screen",...I()]}],"min-w":[{"min-w":[l,"screen","none",...I()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[a]},...I()]}],h:[{h:["screen","lh",...I()]}],"min-h":[{"min-h":["screen","lh","none",...I()]}],"max-h":[{"max-h":["screen","lh",...I()]}],"font-size":[{text:["base",o,ge,se]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,ps,ls]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ue,p]}],"font-family":[{font:[fs,cs,r]}],"font-features":[{"font-features":[p]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,g,p]}],"line-clamp":[{"line-clamp":[S,"none",g,kr]}],leading:[{leading:[s,...m()]}],"list-image":[{"list-image":["none",g,p]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",g,p]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:b()}],"text-color":[{text:b()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ke(),"wavy"]}],"text-decoration-thickness":[{decoration:[S,"from-font","auto",g,se]}],"text-decoration-color":[{decoration:b()}],"underline-offset":[{"underline-offset":[S,"auto",g,p]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:m()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",g,p]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",g,p]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:q()}],"bg-repeat":[{bg:D()}],"bg-size":[{bg:Y()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},te,g,p],radial:["",g,p],conic:[te,g,p]},ms,ds]}],"bg-color":[{bg:b()}],"gradient-from-pos":[{from:X()}],"gradient-via-pos":[{via:X()}],"gradient-to-pos":[{to:X()}],"gradient-from":[{from:b()}],"gradient-via":[{via:b()}],"gradient-to":[{to:b()}],rounded:[{rounded:O()}],"rounded-s":[{"rounded-s":O()}],"rounded-e":[{"rounded-e":O()}],"rounded-t":[{"rounded-t":O()}],"rounded-r":[{"rounded-r":O()}],"rounded-b":[{"rounded-b":O()}],"rounded-l":[{"rounded-l":O()}],"rounded-ss":[{"rounded-ss":O()}],"rounded-se":[{"rounded-se":O()}],"rounded-ee":[{"rounded-ee":O()}],"rounded-es":[{"rounded-es":O()}],"rounded-tl":[{"rounded-tl":O()}],"rounded-tr":[{"rounded-tr":O()}],"rounded-br":[{"rounded-br":O()}],"rounded-bl":[{"rounded-bl":O()}],"border-w":[{border:F()}],"border-w-x":[{"border-x":F()}],"border-w-y":[{"border-y":F()}],"border-w-s":[{"border-s":F()}],"border-w-e":[{"border-e":F()}],"border-w-bs":[{"border-bs":F()}],"border-w-be":[{"border-be":F()}],"border-w-t":[{"border-t":F()}],"border-w-r":[{"border-r":F()}],"border-w-b":[{"border-b":F()}],"border-w-l":[{"border-l":F()}],"divide-x":[{"divide-x":F()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":F()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ke(),"hidden","none"]}],"divide-style":[{divide:[...ke(),"hidden","none"]}],"border-color":[{border:b()}],"border-color-x":[{"border-x":b()}],"border-color-y":[{"border-y":b()}],"border-color-s":[{"border-s":b()}],"border-color-e":[{"border-e":b()}],"border-color-bs":[{"border-bs":b()}],"border-color-be":[{"border-be":b()}],"border-color-t":[{"border-t":b()}],"border-color-r":[{"border-r":b()}],"border-color-b":[{"border-b":b()}],"border-color-l":[{"border-l":b()}],"divide-color":[{divide:b()}],"outline-style":[{outline:[...ke(),"none","hidden"]}],"outline-offset":[{"outline-offset":[S,g,p]}],"outline-w":[{outline:["",S,ge,se]}],"outline-color":[{outline:b()}],shadow:[{shadow:["","none",d,Se,Ce]}],"shadow-color":[{shadow:b()}],"inset-shadow":[{"inset-shadow":["none",v,Se,Ce]}],"inset-shadow-color":[{"inset-shadow":b()}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:b()}],"ring-offset-w":[{"ring-offset":[S,se]}],"ring-offset-color":[{"ring-offset":b()}],"inset-ring-w":[{"inset-ring":F()}],"inset-ring-color":[{"inset-ring":b()}],"text-shadow":[{"text-shadow":["none",f,Se,Ce]}],"text-shadow-color":[{"text-shadow":b()}],opacity:[{opacity:[S,g,p]}],"mix-blend":[{"mix-blend":[...nr(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":nr()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[S]}],"mask-image-linear-from-pos":[{"mask-linear-from":j()}],"mask-image-linear-to-pos":[{"mask-linear-to":j()}],"mask-image-linear-from-color":[{"mask-linear-from":b()}],"mask-image-linear-to-color":[{"mask-linear-to":b()}],"mask-image-t-from-pos":[{"mask-t-from":j()}],"mask-image-t-to-pos":[{"mask-t-to":j()}],"mask-image-t-from-color":[{"mask-t-from":b()}],"mask-image-t-to-color":[{"mask-t-to":b()}],"mask-image-r-from-pos":[{"mask-r-from":j()}],"mask-image-r-to-pos":[{"mask-r-to":j()}],"mask-image-r-from-color":[{"mask-r-from":b()}],"mask-image-r-to-color":[{"mask-r-to":b()}],"mask-image-b-from-pos":[{"mask-b-from":j()}],"mask-image-b-to-pos":[{"mask-b-to":j()}],"mask-image-b-from-color":[{"mask-b-from":b()}],"mask-image-b-to-color":[{"mask-b-to":b()}],"mask-image-l-from-pos":[{"mask-l-from":j()}],"mask-image-l-to-pos":[{"mask-l-to":j()}],"mask-image-l-from-color":[{"mask-l-from":b()}],"mask-image-l-to-color":[{"mask-l-to":b()}],"mask-image-x-from-pos":[{"mask-x-from":j()}],"mask-image-x-to-pos":[{"mask-x-to":j()}],"mask-image-x-from-color":[{"mask-x-from":b()}],"mask-image-x-to-color":[{"mask-x-to":b()}],"mask-image-y-from-pos":[{"mask-y-from":j()}],"mask-image-y-to-pos":[{"mask-y-to":j()}],"mask-image-y-from-color":[{"mask-y-from":b()}],"mask-image-y-to-color":[{"mask-y-to":b()}],"mask-image-radial":[{"mask-radial":[g,p]}],"mask-image-radial-from-pos":[{"mask-radial-from":j()}],"mask-image-radial-to-pos":[{"mask-radial-to":j()}],"mask-image-radial-from-color":[{"mask-radial-from":b()}],"mask-image-radial-to-color":[{"mask-radial-to":b()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":T()}],"mask-image-conic-pos":[{"mask-conic":[S]}],"mask-image-conic-from-pos":[{"mask-conic-from":j()}],"mask-image-conic-to-pos":[{"mask-conic-to":j()}],"mask-image-conic-from-color":[{"mask-conic-from":b()}],"mask-image-conic-to-color":[{"mask-conic-to":b()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:q()}],"mask-repeat":[{mask:D()}],"mask-size":[{mask:Y()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",g,p]}],filter:[{filter:["","none",g,p]}],blur:[{blur:ar()}],brightness:[{brightness:[S,g,p]}],contrast:[{contrast:[S,g,p]}],"drop-shadow":[{"drop-shadow":["","none",h,Se,Ce]}],"drop-shadow-color":[{"drop-shadow":b()}],grayscale:[{grayscale:["",S,g,p]}],"hue-rotate":[{"hue-rotate":[S,g,p]}],invert:[{invert:["",S,g,p]}],saturate:[{saturate:[S,g,p]}],sepia:[{sepia:["",S,g,p]}],"backdrop-filter":[{"backdrop-filter":["","none",g,p]}],"backdrop-blur":[{"backdrop-blur":ar()}],"backdrop-brightness":[{"backdrop-brightness":[S,g,p]}],"backdrop-contrast":[{"backdrop-contrast":[S,g,p]}],"backdrop-grayscale":[{"backdrop-grayscale":["",S,g,p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[S,g,p]}],"backdrop-invert":[{"backdrop-invert":["",S,g,p]}],"backdrop-opacity":[{"backdrop-opacity":[S,g,p]}],"backdrop-saturate":[{"backdrop-saturate":[S,g,p]}],"backdrop-sepia":[{"backdrop-sepia":["",S,g,p]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":m()}],"border-spacing-x":[{"border-spacing-x":m()}],"border-spacing-y":[{"border-spacing-y":m()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",g,p]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[S,"initial",g,p]}],ease:[{ease:["linear","initial",y,g,p]}],delay:[{delay:[S,g,p]}],animate:[{animate:["none",V,g,p]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,g,p]}],"perspective-origin":[{"perspective-origin":G()}],rotate:[{rotate:xe()}],"rotate-x":[{"rotate-x":xe()}],"rotate-y":[{"rotate-y":xe()}],"rotate-z":[{"rotate-z":xe()}],scale:[{scale:_e()}],"scale-x":[{"scale-x":_e()}],"scale-y":[{"scale-y":_e()}],"scale-z":[{"scale-z":_e()}],"scale-3d":["scale-3d"],skew:[{skew:Le()}],"skew-x":[{"skew-x":Le()}],"skew-y":[{"skew-y":Le()}],transform:[{transform:[g,p,"","none","gpu","cpu"]}],"transform-origin":[{origin:G()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ae()}],"translate-x":[{"translate-x":Ae()}],"translate-y":[{"translate-y":Ae()}],"translate-z":[{"translate-z":Ae()}],"translate-none":["translate-none"],accent:[{accent:b()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:b()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",g,p]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-me":[{"scroll-me":m()}],"scroll-mbs":[{"scroll-mbs":m()}],"scroll-mbe":[{"scroll-mbe":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-p":[{"scroll-p":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-pe":[{"scroll-pe":m()}],"scroll-pbs":[{"scroll-pbs":m()}],"scroll-pbe":[{"scroll-pbe":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",g,p]}],fill:[{fill:["none",...b()]}],"stroke-w":[{stroke:[S,ge,se,kr]}],stroke:[{stroke:["none",...b()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},bs=(e,{cacheSize:r,prefix:o,experimentalParseClassName:t,extend:n={},override:s={}})=>(he(e,"cacheSize",r),he(e,"prefix",o),he(e,"experimentalParseClassName",t),Te(e.theme,s.theme),Te(e.classGroups,s.classGroups),Te(e.conflictingClassGroups,s.conflictingClassGroups),Te(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),he(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),ze(e.theme,n.theme),ze(e.classGroups,n.classGroups),ze(e.conflictingClassGroups,n.conflictingClassGroups),ze(e.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),ft(e,n,"orderSensitiveModifiers"),e),he=(e,r,o)=>{o!==void 0&&(e[r]=o)},Te=(e,r)=>{if(r)for(const o in r)he(e,o,r[o])},ze=(e,r)=>{if(r)for(const o in r)ft(e,r,o)},ft=(e,r,o)=>{const t=r[o];t!==void 0&&(e[o]=e[o]?e[o].concat(t):t)},hs=(e,...r)=>typeof e=="function"?Je(Ze,e,...r):Je(()=>bs(Ze(),e),...r),ut=Je(Ze);function Ar(...e){return ut(Hr(e))}var vs=/\s+/g,ys=e=>typeof e!="string"||!e?e:e.replace(vs," ").trim(),Ge=(...e)=>{const r=[],o=t=>{if(!t&&t!==0&&t!==0n)return;if(Array.isArray(t)){for(let s=0,a=t.length;s<a;s++)o(t[s]);return}const n=typeof t;if(n==="string"||n==="number"||n==="bigint"){if(n==="number"&&t!==t)return;r.push(String(t))}else if(n==="object"){const s=Object.keys(t);for(let a=0,l=s.length;a<l;a++){const i=s[a];t[i]&&r.push(i)}}};for(let t=0,n=e.length;t<n;t++){const s=e[t];s!=null&&o(s)}return r.length>0?ys(r.join(" ")):void 0},Cr=e=>e===!1?"false":e===!0?"true":e===0?"0":e,U=e=>{if(!e||typeof e!="object")return!0;for(const r in e)return!1;return!0},ws=(e,r)=>{if(e===r)return!0;if(!e||!r)return!1;const o=Object.keys(e),t=Object.keys(r);if(o.length!==t.length)return!1;for(let n=0;n<o.length;n++){const s=o[n];if(!t.includes(s)||e[s]!==r[s])return!1}return!0},ks=(e,r)=>{for(const o in r)if(Object.prototype.hasOwnProperty.call(r,o)){const t=r[o];o in e?e[o]=Ge(e[o],t):e[o]=t}return e},mt=(e,r)=>{for(let o=0;o<e.length;o++){const t=e[o];Array.isArray(t)?mt(t,r):t&&r.push(t)}},pt=(...e)=>{const r=[];mt(e,r);const o=[];for(let t=0;t<r.length;t++)r[t]&&o.push(r[t]);return o},Qe=(e,r)=>{const o={};for(const t in e){const n=e[t];if(t in r){const s=r[t];Array.isArray(n)||Array.isArray(s)?o[t]=pt(s,n):typeof n=="object"&&typeof s=="object"&&n&&s?o[t]=Qe(n,s):o[t]=s+" "+n}else o[t]=n}for(const t in r)t in e||(o[t]=r[t]);return o},xs={twMerge:!0,twMergeConfig:{}};function _s(){let e=null,r={},o=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(t){e=t},get cachedTwMergeConfig(){return r},set cachedTwMergeConfig(t){r=t},get didTwMergeConfigChange(){return o},set didTwMergeConfigChange(t){o=t},reset(){e=null,r={},o=!1}}}var Q=_s(),As=e=>{const r=(t,n)=>{const{extend:s=null,slots:a={},variants:l={},compoundVariants:i=[],compoundSlots:c=[],defaultVariants:d={}}=t,v={...xs,...n},f=s?.base?Ge(s.base,t?.base):t?.base,h=s?.variants&&!U(s.variants)?Qe(l,s.variants):l,_=s?.defaultVariants&&!U(s.defaultVariants)?{...s.defaultVariants,...d}:d;!U(v.twMergeConfig)&&!ws(v.twMergeConfig,Q.cachedTwMergeConfig)&&(Q.didTwMergeConfigChange=!0,Q.cachedTwMergeConfig=v.twMergeConfig);const w=U(s?.slots),u=U(a)?{}:{base:Ge(t?.base,w&&s?.base),...a},y=w?u:ks({...s?.slots},U(u)?{base:t?.base}:u),V=U(s?.compoundVariants)?i:pt(s?.compoundVariants,i),A=G=>{if(U(h)&&U(a)&&w)return e(f,G?.class,G?.className)(v);if(V&&!Array.isArray(V))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof V}`);if(c&&!Array.isArray(c))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof c}`);const k=(z,E=h,C=null,I=null)=>{const P=E[z];if(!P||U(P))return null;const L=I?.[z]??G?.[z];if(L===null)return null;const b=Cr(L);if(typeof b=="object")return null;const q=_?.[z],D=b??Cr(q);return P[D||"false"]},x=()=>{if(!h)return null;const z=Object.keys(h),E=[];for(let C=0;C<z.length;C++){const I=k(z[C],h);I&&E.push(I)}return E},m=(z,E)=>{if(!h||typeof h!="object")return null;const C=[];for(const I in h){const P=k(I,h,z,E),L=z==="base"&&typeof P=="string"?P:P&&P[z];L&&C.push(L)}return C},M={};for(const z in G){const E=G[z];E!==void 0&&(M[z]=E)}const N=(z,E)=>{const C=typeof G?.[z]=="object"?{[z]:G[z]?.initial}:{};return{..._,...M,...C,...E}},H=(z=[],E)=>{const C=[],I=z.length;for(let P=0;P<I;P++){const{class:L,className:b,...q}=z[P];let D=!0;const Y=N(null,E);for(const X in q){const O=q[X],F=Y[X];if(Array.isArray(O)){if(!O.includes(F)){D=!1;break}}else{if((O==null||O===!1)&&(F==null||F===!1))continue;if(F!==O){D=!1;break}}}D&&(L&&C.push(L),b&&C.push(b))}return C},B=z=>{const E=H(V,z);if(!Array.isArray(E))return E;const C={},I=e;for(let P=0;P<E.length;P++){const L=E[P];if(typeof L=="string")C.base=I(C.base,L)(v);else if(typeof L=="object")for(const b in L)C[b]=I(C[b],L[b])(v)}return C},le=z=>{if(c.length<1)return null;const E={},C=N(null,z);for(let I=0;I<c.length;I++){const{slots:P=[],class:L,className:b,...q}=c[I];if(!U(q)){let D=!0;for(const Y in q){const X=C[Y],O=q[Y];if(X===void 0||(Array.isArray(O)?!O.includes(X):O!==X)){D=!1;break}}if(!D)continue}for(let D=0;D<P.length;D++){const Y=P[D];E[Y]||(E[Y]=[]),E[Y].push([L,b])}}return E};if(!U(a)||!w){const z={};if(typeof y=="object"&&!U(y)){const E=e;for(const C in y)z[C]=I=>{const P=B(I),L=le(I);return E(y[C],m(C,I),P?P[C]:void 0,L?L[C]:void 0,I?.class,I?.className)(v)}}return z}return e(f,x(),H(V),G?.class,G?.className)(v)},T=()=>{if(!(!h||typeof h!="object"))return Object.keys(h)};return A.variantKeys=T(),A.extend=s,A.base=f,A.slots=y,A.variants=h,A.defaultVariants=_,A.compoundSlots=c,A.compoundVariants=V,A};return{tv:r,createTV:t=>(n,s)=>r(n,s?Qe(t,s):t)}},Cs=e=>U(e)?ut:hs({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),Ss=(e,r)=>{const o=Ge(e);return!o||!(r?.twMerge??!0)?o:((!Q.cachedTwMerge||Q.didTwMergeConfigChange)&&(Q.didTwMergeConfigChange=!1,Q.cachedTwMerge=Cs(Q.cachedTwMergeConfig)),Q.cachedTwMerge(o)||void 0)},Ts=(...e)=>r=>Ss(e,r),{tv:zs}=As(Ts);const Sr=zs({base:"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-xs",destructive:"bg-destructive hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white shadow-xs",outline:"bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border shadow-xs",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-xs",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});var Ms=jr("<a><!></a>"),Es=jr("<button><!></button>");function Ds(e,r){Lr(r,!0);let o=K(r,"variant",3,"default"),t=K(r,"size",3,"default"),n=K(r,"ref",15,null),s=K(r,"href",3,void 0),a=K(r,"type",3,"button"),l=eo(r,["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","disabled","children"]);var i=Br(),c=Fr(i);{var d=f=>{var h=Ms();Pe(h,w=>({"data-slot":"button",class:w,href:r.disabled?void 0:s(),"aria-disabled":r.disabled,role:r.disabled?"link":void 0,tabindex:r.disabled?-1:void 0,...l}),[()=>Ar(Sr({variant:o(),size:t()}),r.class)]);var _=Ye(h);pr(_,()=>r.children??dr),qe(h),fr(h,w=>n(w),()=>n()),ve(f,h)},v=f=>{var h=Es();Pe(h,w=>({"data-slot":"button",class:w,type:a(),disabled:r.disabled,...l}),[()=>Ar(Sr({variant:o(),size:t()}),r.class)]);var _=Ye(h);pr(_,()=>r.children??dr),qe(h),fr(h,w=>n(w),()=>n()),ve(f,h)};$t(c,f=>{s()?f(d):f(v,-1)})}ve(e,i),Wr()}const Ns={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};const Is=e=>{for(const r in e)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1};const Tr=(...e)=>e.filter((r,o,t)=>!!r&&r.trim()!==""&&t.indexOf(r)===o).join(" ").trim();var Vs=Qt("<svg><!><!></svg>");function Us(e,r){const o=ur(r,["children","$$slots","$$events","$$legacy"]),t=ur(o,["name","color","size","strokeWidth","absoluteStrokeWidth","iconNode"]);Lr(r,!1);let n=K(r,"name",8,void 0),s=K(r,"color",8,"currentColor"),a=K(r,"size",8,24),l=K(r,"strokeWidth",8,2),i=K(r,"absoluteStrokeWidth",8,!1),c=K(r,"iconNode",24,()=>[]);lo();var d=Vs();Pe(d,(h,_,w)=>({...Ns,...h,...t,width:a(),height:a(),stroke:s(),"stroke-width":_,class:w}),[()=>Is(t)?void 0:{"aria-hidden":"true"},()=>(ce(i()),ce(l()),ce(a()),He(()=>i()?Number(l())*24/Number(a()):l())),()=>(ce(Tr),ce(n()),ce(o),He(()=>Tr("lucide-icon","lucide",n()?`lucide-${n()}`:"",o.class)))]);var v=Ye(d);uo(v,1,c,co,(h,_)=>{var w=Xt(()=>Jt(fe(_),2));let u=()=>fe(w)[0],y=()=>fe(w)[1];var V=Br(),A=Fr(V);bo(A,u,!0,(T,G)=>{Pe(T,()=>({...y()}))}),ve(h,V)});var f=Kt(v);go(f,r,"default",{}),qe(d),ve(e,d),Wr()}export{Ds as B,Us as I,Pe as a,js as b,Ar as c,Bs as d,uo as e,Ve as f,Ws as g,ko as h,co as i,pr as j,vo as k,Hr as l,bo as m,go as s,zs as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{B as a}from"./CME08kGM.js";a();
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ai as ee,w as z,a0 as te,o as re,aj as P,ak as T,a8 as $,k as v,h as g,L as m,al as W,b as se,d as ie,am as ne,an as B,X as p,K as G,W as O,Y,Z as ae,ao as oe,ae as R,ap as N,aq as j,ar as le,as as fe,at as J,m as K,au as ue,V as x,i as D,C as ce,g as he,av as S,E as de,aw as _e,ax as pe,ay as ve,az as ge,aA as ye,aB as be,aC as F,M as me,S as U,H as Ee,aD as we,aE as I,j as k,aF as Te,aG as Se,aH as ke,aI as Ae,p as Re,aJ as Ne,aK as De,a as Le}from"./CME08kGM.js";import{b as Oe}from"./BmRlVmv6.js";function xe(t){let e=0,r=$(0),i;return()=>{ee()&&(z(r),te(()=>(e===0&&(i=re(()=>t(()=>P(r)))),e+=1,()=>{T(()=>{e-=1,e===0&&(i?.(),i=void 0,P(r))})})))}}var Fe=de|_e;function Ie(t,e,r,i){new Me(t,e,r,i)}class Me{parent;is_pending=!1;transform_error;#t;#_=g?v:null;#i;#f;#e;#n=null;#r=null;#s=null;#a=null;#u=0;#l=0;#c=!1;#p=new Set;#v=new Set;#o=null;#b=xe(()=>(this.#o=$(this.#u),()=>{this.#o=null}));constructor(e,r,i,n){this.#t=e,this.#i=r,this.#f=s=>{var a=m;a.b=this,a.f|=W,i(s)},this.parent=m.b,this.transform_error=n??this.parent?.transform_error??(s=>s),this.#e=se(()=>{if(g){const s=this.#_;ie();const a=s.data===ne;if(s.data.startsWith(B)){const o=JSON.parse(s.data.slice(B.length));this.#E(o)}else a?this.#w():this.#m()}else this.#g()},Fe),g&&(this.#t=v)}#m(){try{this.#n=p(()=>this.#f(this.#t))}catch(e){this.error(e)}}#E(e){const r=this.#i.failed;r&&(this.#s=p(()=>{r(this.#t,()=>e,()=>()=>{})}))}#w(){const e=this.#i.pending;e&&(this.is_pending=!0,this.#r=p(()=>e(this.#t)),T(()=>{var r=this.#a=document.createDocumentFragment(),i=G();r.append(i),this.#n=this.#d(()=>p(()=>this.#f(i))),this.#l===0&&(this.#t.before(r),this.#a=null,O(this.#r,()=>{this.#r=null}),this.#h(Y))}))}#g(){try{if(this.is_pending=this.has_pending_snippet(),this.#l=0,this.#u=0,this.#n=p(()=>{this.#f(this.#t)}),this.#l>0){var e=this.#a=document.createDocumentFragment();ae(this.#n,e);const r=this.#i.pending;this.#r=p(()=>r(this.#t))}else this.#h(Y)}catch(r){this.error(r)}}#h(e){this.is_pending=!1,e.transfer_effects(this.#p,this.#v)}defer_effect(e){oe(e,this.#p,this.#v)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#i.pending}#d(e){var r=m,i=J,n=K;R(this.#e),N(this.#e),j(this.#e.ctx);try{return le.ensure(),e()}catch(s){return fe(s),null}finally{R(r),N(i),j(n)}}#y(e,r){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(e,r);return}this.#l+=e,this.#l===0&&(this.#h(r),this.#r&&O(this.#r,()=>{this.#r=null}),this.#a&&(this.#t.before(this.#a),this.#a=null))}update_pending_count(e,r){this.#y(e,r),this.#u+=e,!(!this.#o||this.#c)&&(this.#c=!0,T(()=>{this.#c=!1,this.#o&&ue(this.#o,this.#u)}))}get_effect_pending(){return this.#b(),z(this.#o)}error(e){var r=this.#i.onerror;let i=this.#i.failed;if(!r&&!i)throw e;this.#n&&(x(this.#n),this.#n=null),this.#r&&(x(this.#r),this.#r=null),this.#s&&(x(this.#s),this.#s=null),g&&(D(this.#_),ce(),D(he()));var n=!1,s=!1;const a=()=>{if(n){ve();return}n=!0,s&&pe(),this.#s!==null&&O(this.#s,()=>{this.#s=null}),this.#d(()=>{this.#g()})},h=o=>{try{s=!0,r?.(o,a),s=!1}catch(l){S(l,this.#e&&this.#e.parent)}i&&(this.#s=this.#d(()=>{try{return p(()=>{var l=m;l.b=this,l.f|=W,i(this.#t,()=>o,()=>a)})}catch(l){return S(l,this.#e.parent),null}}))};T(()=>{var o;try{o=this.transform_error(e)}catch(l){S(l,this.#e&&this.#e.parent);return}o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(h,l=>S(l,this.#e&&this.#e.parent)):h(o)})}}function qe(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const Ce=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function ze(t){return Ce.includes(t)}const Ve={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function $e(t){return t=t.toLowerCase(),Ve[t]??t}const He=["touchstart","touchmove"];function Pe(t){return He.includes(t)}const We=["textarea","script","style","title"];function Ge(t){return We.includes(t)}const w=Symbol("events"),X=new Set,M=new Set;function Z(t,e,r,i={}){function n(s){if(i.capture||C.call(e,s),!s.cancelBubble)return ye(()=>r?.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?T(()=>{e.addEventListener(t,n,i)}):e.addEventListener(t,n,i),n}function Je(t,e,r,i={}){var n=Z(e,t,r,i);return()=>{t.removeEventListener(e,n,i)}}function Ke(t,e,r,i,n){var s={capture:i,passive:n},a=Z(t,e,r,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&ge(()=>{e.removeEventListener(t,a,s)})}function Ue(t,e,r){(e[w]??={})[t]=r}function Xe(t){for(var e=0;e<t.length;e++)X.add(t[e]);for(var r of M)r(t)}let q=null;function C(t){var e=this,r=e.ownerDocument,i=t.type,n=t.composedPath?.()||[],s=n[0]||t.target;q=t;var a=0,h=q===t&&t[w];if(h){var o=n.indexOf(h);if(o!==-1&&(e===document||e===window)){t[w]=e;return}var l=n.indexOf(e);if(l===-1)return;o<=l&&(a=o)}if(s=n[a]||t.target,s!==e){be(t,"currentTarget",{configurable:!0,get(){return s||r}});var y=J,E=m;N(null),R(null);try{for(var _,u=[];s!==null;){var f=s.assignedSlot||s.parentNode||s.host||null;try{var c=s[w]?.[i];c!=null&&(!s.disabled||t.target===s)&&c.call(s,t)}catch(d){_?u.push(d):_=d}if(t.cancelBubble||f===e||f===null)break;s=f}if(_){for(let d of u)queueMicrotask(()=>{throw d});throw _}}finally{t[w]=e,delete t.currentTarget,N(y),R(E)}}}function Ze(t,e){var r=e==null?"":typeof e=="object"?`${e}`:e;r!==(t.__t??=t.nodeValue)&&(t.__t=r,t.nodeValue=`${r}`)}function Be(t,e){return Q(t,e)}function Qe(t,e){F(),e.intro=e.intro??!1;const r=e.target,i=g,n=v;try{for(var s=me(r);s&&(s.nodeType!==U||s.data!==Ee);)s=we(s);if(!s)throw I;k(!0),D(s);const a=Q(t,{...e,anchor:s});return k(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
-
`).some(h=>h.startsWith("https://svelte.dev/e/")))throw a;return a!==I&&console.warn("Failed to hydrate: ",a),e.recover===!1&&Te(),F(),Se(r),k(!1),Be(t,e)}finally{k(i),D(n)}}const A=new Map;function Q(t,{target:e,anchor:r,props:i={},events:n,context:s,intro:a=!0,transformError:h}){F();var o=void 0,l=ke(()=>{var y=r??e.appendChild(G());Ie(y,{pending:()=>{}},u=>{Re({});var f=K;if(s&&(f.c=s),n&&(i.$$events=n),g&&Oe(u,null),o=t(u,i)||{},g&&(m.nodes.end=v,v===null||v.nodeType!==U||v.data!==Ne))throw De(),I;Le()},h);var E=new Set,_=u=>{for(var f=0;f<u.length;f++){var c=u[f];if(!E.has(c)){E.add(c);var d=Pe(c);for(const L of[e,document]){var b=A.get(L);b===void 0&&(b=new Map,A.set(L,b));var H=b.get(c);H===void 0?(L.addEventListener(c,C,{passive:d}),b.set(c,1)):b.set(c,H+1)}}}};return _(Ae(X)),M.add(_),()=>{for(var u of E)for(const d of[e,document]){var f=A.get(d),c=f.get(u);--c==0?(d.removeEventListener(u,C),f.delete(u),f.size===0&&A.delete(d)):f.set(u,c)}M.delete(_),y!==r&&y.parentNode?.removeChild(y)}});return V.set(o,l),o}let V=new WeakMap;function et(t,e){const r=V.get(t);return r?(V.delete(t),r(e)):Promise.resolve()}export{Ue as a,qe as b,Z as c,Xe as d,Ke as e,ze as f,xe as g,Qe as h,Ge as i,Be as m,$e as n,Je as o,Ze as s,et as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{z as e,n as l,m as t,A as u,o as a}from"./CME08kGM.js";function c(n){t===null&&e(),u&&t.l!==null?s(t).m.push(n):l(()=>{const o=a(n);if(typeof o=="function")return o})}function i(n){t===null&&e(),c(()=>()=>a(n))}function s(n){var o=n.l;return o.u??={a:[],b:[],m:[]}}export{i as a,c as o};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{m as d,u as m,n as i,o as g,q as l,v,w as p,x as b,y as h}from"./CME08kGM.js";function x(n=!1){const s=d,e=s.l.u;if(!e)return;let r=()=>b(s.s);if(n){let o=0,t={};const _=h(()=>{let c=!1;const a=s.s;for(const f in a)a[f]!==t[f]&&(t[f]=a[f],c=!0);return c&&o++,o});r=()=>p(_)}e.b.length&&m(()=>{u(s,r),l(e.b)}),i(()=>{const o=g(()=>e.m.map(v));return()=>{for(const t of o)typeof t=="function"&&t()}}),e.a.length&&i(()=>{u(s,r),l(e.a)})}function u(n,s){if(n.l.s)for(const e of n.l.s)p(e);s()}export{x as i};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as a}from"./CME08kGM.js";const t=a({verbosityLevel:"default",markdownEnabled:!0});export{t as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{be as we,bo as St,I as U,w as A,D as P,aN as re,bp as Rt}from"./CME08kGM.js";import{o as We}from"./DhD271EB.js";const D=[];function Te(e,t=we){let n=null;const r=new Set;function a(o){if(St(e,o)&&(e=o,n)){const l=!D.length;for(const c of r)c[1](),D.push(c,e);if(l){for(let c=0;c<D.length;c+=2)D[c][0](D[c+1]);D.length=0}}}function i(o){a(o(e))}function s(o,l=we){const c=[o,l];return r.add(c),r.size===1&&(n=t(a,i)||we),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:a,update:i,subscribe:s}}class Ie{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Oe{constructor(t,n){this.status=t,this.location=n}}class $e extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function xt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function Lt(e){return e.split("%25").map(decodeURI).join("%25")}function Ut(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function ye({href:e}){return e.split("#")[0]}function At(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(s,o){if(o==="get"||o==="getAll"||o==="has")return(c,...d)=>(n(c),s[o](c,...d));t();const l=Reflect.get(s,o);return typeof l=="function"?l.bind(s):l}}),enumerable:!0,configurable:!0});const i=["href","pathname","search","toString","toJSON"];r&&i.push("hash");for(const s of i)Object.defineProperty(a,s,{get(){return t(),e[s]},enumerable:!0,configurable:!0});return a}function Pt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;new TextDecoder;function Tt(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const It=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&H.delete(Ce(e)),It(e,t));const H=new Map;function Ot(e,t){const n=Ce(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:a,...i}=JSON.parse(r.textContent);const s=r.getAttribute("data-ttl");return s&&H.set(n,{body:a,init:i,ttl:1e3*Number(s)}),r.getAttribute("data-b64")!==null&&(a=Tt(a)),Promise.resolve(new Response(a,i))}return window.fetch(e,t)}function $t(e,t,n){if(H.size>0){const r=Ce(e,n),a=H.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(a.body,a.init);H.delete(r)}}return window.fetch(t,n)}function Ce(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${Pt(...a)}"]`}return r}const Ct=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function jt(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${qt(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const s=r.split(/\[(.+?)\](?!\])/);return"/"+s.map((l,c)=>{if(c%2){if(l.startsWith("x+"))return be(String.fromCharCode(parseInt(l.slice(2),16)));if(l.startsWith("u+"))return be(String.fromCharCode(...l.slice(2).split("-").map(v=>parseInt(v,16))));const d=Ct.exec(l),[,p,u,f,h]=d;return t.push({name:f,matcher:h,optional:!!p,rest:!!u,chained:u?c===1&&s[0]==="":!1}),u?"([^]*?)":p?"([^/]*)?":"([^/]+?)"}return be(l)}).join("")}).join("")}/?$`),params:t}}function Nt(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function qt(e){return e.slice(1).split("/").filter(Nt)}function Dt(e,t,n){const r={},a=e.slice(1),i=a.filter(o=>o!==void 0);let s=0;for(let o=0;o<t.length;o+=1){const l=t[o];let c=a[o-s];if(l.chained&&l.rest&&s&&(c=a.slice(o-s,o+1).filter(d=>d).join("/"),s=0),c===void 0)if(l.rest)c="";else continue;if(!l.matcher||n[l.matcher](c)){r[l.name]=c;const d=t[o+1],p=a[o+1];d&&!d.rest&&d.optional&&p&&l.chained&&(s=0),!d&&!p&&Object.keys(r).length===i.length&&(s=0);continue}if(l.optional&&l.chained){s++;continue}return}if(!s)return r}function be(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Vt({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[l,c,d]])=>{const{pattern:p,params:u}=jt(o),f={id:o,exec:h=>{const v=p.exec(h);if(v)return Dt(v,u,r)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...c||[]].map(s),leaf:i(l)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function i(o){const l=o<0;return l&&(o=~o),[l,e[o]]}function s(o){return o===void 0?o:[a.has(o),e[o]]}}function nt(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Je(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const x=globalThis.__sveltekit_1pko3tl?.base??"",Bt=globalThis.__sveltekit_1pko3tl?.assets??x??"",Kt="1774990913507",rt="sveltekit:snapshot",at="sveltekit:scroll",ot="sveltekit:states",Ft="sveltekit:pageurl",B="sveltekit:history",J="sveltekit:navigation",N={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},pe=location.origin;function je(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function q(){return{x:pageXOffset,y:pageYOffset}}function V(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Ye={...N,"":N.hover};function st(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function it(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=st(e)}}function Re(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,i=!r||!!a||ge(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),s=r?.origin===pe&&e.hasAttribute("download");return{url:r,external:i,target:a,download:s}}function ae(e){let t=null,n=null,r=null,a=null,i=null,s=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=V(o,"preload-code")),a===null&&(a=V(o,"preload-data")),t===null&&(t=V(o,"keepfocus")),n===null&&(n=V(o,"noscroll")),i===null&&(i=V(o,"reload")),s===null&&(s=V(o,"replacestate")),o=st(o);function l(c){switch(c){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Ye[r??"off"],preload_data:Ye[a??"off"],keepfocus:l(t),noscroll:l(n),reload:l(i),replace_state:l(s)}}function Xe(e){const t=Te(e);let n=!0;function r(){n=!0,t.update(s=>s)}function a(s){n=!1,t.set(s)}function i(s){let o;return t.subscribe(l=>{(o===void 0||n&&l!==o)&&s(o=l)})}return{notify:r,set:a,subscribe:i}}const lt={v:()=>{}};function Gt(){const{set:e,subscribe:t}=Te(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Bt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const s=(await a.json()).version!==Kt;return s&&(e(!0),lt.v(),clearTimeout(n)),s}catch{return!1}}return{subscribe:t,check:r}}function ge(e,t,n){return e.origin!==pe||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function _n(e){}const ct=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...ct];const Mt=new Set([...ct]);[...Mt];function zt(e){return e.filter(t=>t!=null)}function Ne(e){return e instanceof Ie||e instanceof $e?e.status:500}function Ht(e){return e instanceof $e?e.text:"Internal Error"}let b,Y,ke;const Wt=We.toString().includes("$$")||/function \w+\(\) \{\}/.test(We.toString()),Qe="a:";Wt?(b={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(Qe)},Y={current:null},ke={current:!1}):(b=new class{#e=U({});get data(){return A(this.#e)}set data(t){P(this.#e,t)}#t=U(null);get form(){return A(this.#t)}set form(t){P(this.#t,t)}#n=U(null);get error(){return A(this.#n)}set error(t){P(this.#n,t)}#r=U({});get params(){return A(this.#r)}set params(t){P(this.#r,t)}#a=U({id:null});get route(){return A(this.#a)}set route(t){P(this.#a,t)}#o=U({});get state(){return A(this.#o)}set state(t){P(this.#o,t)}#s=U(-1);get status(){return A(this.#s)}set status(t){P(this.#s,t)}#i=U(new URL(Qe));get url(){return A(this.#i)}set url(t){P(this.#i,t)}},Y=new class{#e=U(null);get current(){return A(this.#e)}set current(t){P(this.#e,t)}},ke=new class{#e=U(!1);get current(){return A(this.#e)}set current(t){P(this.#e,t)}},lt.v=()=>ke.current=!0);function ut(e){Object.assign(b,e)}const Ze={spanContext(){return Jt},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},Jt={traceId:"",spanId:"",traceFlags:0},Yt=new Set(["icon","shortcut icon","apple-touch-icon"]);let M=null;const j=nt(at)??{},X=nt(rt)??{},C={url:Xe({}),page:Xe({}),navigating:Te(null),updated:Gt()};function qe(e){j[e]=q()}function Xt(e,t){let n=e+1;for(;j[n];)delete j[n],n+=1;for(n=t+1;X[n];)delete X[n],n+=1}function Q(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function ft(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(x||"/");e&&await e.update()}}function xe(){}let De,Le,oe,T,Ue,w;const se=[],ie=[];let L=null;function le(){L?.fork?.then(e=>e?.discard()),L=null}const ne=new Map,dt=new Set,Qt=new Set,W=new Set;let m={branch:[],error:null,url:null,nav:null},ht=!1,ce=!1,et=!0,Z=!1,z=!1,pt=!1,_e=!1,Ve,y,R,I;const ue=new Set;let Ee;const fe=new Map;async function yn(e,t,n){globalThis.__sveltekit_1pko3tl?.data&&globalThis.__sveltekit_1pko3tl.data,document.URL!==location.href&&(location.href=location.href),w=e,await e.hooks.init?.(),De=Vt(e),T=document.documentElement,Ue=t,Le=e.nodes[0],oe=e.nodes[1],Le(),oe(),y=history.state?.[B],R=history.state?.[J],y||(y=R=Date.now(),history.replaceState({...history.state,[B]:y,[J]:R},""));const r=j[y];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await un(Ue,n)):(await K({type:"enter",url:je(w.hash?hn(new URL(location.href)):location.href),replace_state:!0}),a()),cn()}async function Zt(e=!0,t=!0){if(await(Ee||=Promise.resolve()),!Ee)return;Ee=null;const n=I={},r=await te(m.url,!0);if(le(),_e&&fe.forEach(({resource:a})=>{a.refresh?.()}),e){const a=b.state,i=r&&await Ge(r);if(!i||n!==I)return;if(i.type==="redirect")return Be(new URL(i.location,m.url).href,{replaceState:!0},1,n);t||(i.props.page.state=a),ut(i.props.page),m={...i.state,nav:m.nav},Ae(),Ve.$set(i.props)}else Ae();await Promise.all([...fe.values()].map(({resource:a})=>a)).catch(xe)}function Ae(){se.length=0,_e=!1}function gt(e){ie.some(t=>t?.snapshot)&&(X[e]=ie.map(t=>t?.snapshot?.capture()))}function _t(e){X[e]?.forEach((t,n)=>{ie[n]?.snapshot?.restore(t)})}function tt(){qe(y),Je(at,j),gt(R),Je(rt,X)}async function Be(e,t,n,r){let a;t.invalidateAll&&le(),await K({type:"goto",url:je(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(_e=!0,a=[...fe.keys()]),t.invalidate&&t.invalidate.forEach(bt)}}),t.invalidateAll&&re().then(re).then(()=>{fe.forEach(({resource:i},s)=>{a?.includes(s)&&i.refresh?.()})})}async function en(e){if(e.id!==L?.id){le();const t={};ue.add(t),L={id:e.id,token:t,promise:Ge({...e,preload:t}).then(n=>(ue.delete(t),n.type==="loaded"&&n.state.error&&le(),n)),fork:null}}return L.promise}async function Se(e){const t=(await te(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(n=>n[1]()))}async function mt(e,t,n){const r={params:m.params,route:{id:m.route?.id??null},url:new URL(location.href)};m={...e.state,nav:r};const a=document.querySelector("style[data-sveltekit]");if(a&&a.remove(),Object.assign(b,e.props.page),Ve=new w.root({target:t,props:{...e.props,stores:C,components:ie},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),_t(R),n){const i={from:null,to:{...r,scroll:j[y]??q()},willUnload:!1,type:"enter",complete:Promise.resolve()};W.forEach(s=>s(i))}ce=!0}async function de({url:e,params:t,branch:n,errors:r,status:a,error:i,route:s,form:o}){let l="never";if(x&&(e.pathname===x||e.pathname===x+"/"))l="always";else for(const h of n)h?.slash!==void 0&&(l=h.slash);e.pathname=xt(e.pathname,l),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:i,route:s},props:{constructors:zt(n).map(h=>h.node.component),page:He(b)}};o!==void 0&&(c.props.form=o);let d={},p=!b,u=0;for(let h=0;h<Math.max(n.length,m.branch.length);h+=1){const v=n[h],_=m.branch[h];v?.data!==_?.data&&(p=!0),v&&(d={...d,...v.data},p&&(c.props[`data_${u}`]=d),u+=1)}return(!m.url||e.href!==m.url.href||m.error!==i||o!==void 0&&o!==b.form||p)&&(c.props.page={error:i,params:t,route:{id:s?.id??null},state:{},status:a,url:new URL(e),form:o??null,data:p?d:b.data}),c}async function Ke({loader:e,parent:t,url:n,params:r,route:a,server_data_node:i}){let s=null,o=!0;const l={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();if(c.universal?.load){let d=function(...u){for(const f of u){const{href:h}=new URL(f,n);l.dependencies.add(h)}};const p={tracing:{enabled:!1,root:Ze,current:Ze},route:new Proxy(a,{get:(u,f)=>(o&&(l.route=!0),u[f])}),params:new Proxy(r,{get:(u,f)=>(o&&l.params.add(f),u[f])}),data:i?.data??null,url:At(n,()=>{o&&(l.url=!0)},u=>{o&&l.search_params.add(u)},w.hash),async fetch(u,f){u instanceof Request&&(f={body:u.method==="GET"||u.method==="HEAD"?void 0:await u.blob(),cache:u.cache,credentials:u.credentials,headers:[...u.headers].length>0?u?.headers:void 0,integrity:u.integrity,keepalive:u.keepalive,method:u.method,mode:u.mode,redirect:u.redirect,referrer:u.referrer,referrerPolicy:u.referrerPolicy,signal:u.signal,...f});const{resolved:h,promise:v}=vt(u,f,n);return o&&d(h.href),v},setHeaders:()=>{},depends:d,parent(){return o&&(l.parent=!0),t()},untrack(u){o=!1;try{return u()}finally{o=!0}}};s=await c.universal.load.call(null,p)??null}return{node:c,loader:e,server:i,universal:c.universal?.load?{type:"data",data:s,uses:l}:null,data:s??i?.data??null,slash:c.universal?.trailingSlash??i?.slash}}function vt(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const i=ce?$t(r,a.href,t):Ot(r,t);return{resolved:a,promise:i}}function tn(e,t,n,r,a,i){if(_e)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const s of a.search_params)if(r.has(s))return!0;for(const s of a.params)if(i[s]!==m.params[s])return!0;for(const s of a.dependencies)if(se.some(o=>o(new URL(s))))return!0;return!1}function Fe(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function nn(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),i=t.searchParams.getAll(r);a.every(s=>i.includes(s))&&i.every(s=>a.includes(s))&&n.delete(r)}return n}function rn({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:He(b),constructors:[]}}}async function Ge({id:e,invalidating:t,url:n,params:r,route:a,preload:i}){if(L?.id===e)return ue.delete(L.token),L.promise;const{errors:s,layouts:o,leaf:l}=a,c=[...o,l];s.forEach(_=>_?.().catch(()=>{})),c.forEach(_=>_?.[1]().catch(()=>{}));const d=m.url?e!==he(m.url):!1,p=m.route?a.id!==m.route.id:!1,u=nn(m.url,n);let f=!1;const h=c.map(async(_,g)=>{if(!_)return;const E=m.branch[g];return _[1]===E?.loader&&!tn(f,p,d,u,E.universal?.uses,r)?E:(f=!0,Ke({loader:_[1],url:n,params:r,route:a,parent:async()=>{const O={};for(let $=0;$<g;$+=1)Object.assign(O,(await h[$])?.data);return O},server_data_node:Fe(_[0]?{type:"skip"}:null,_[0]?E?.server:void 0)}))});for(const _ of h)_.catch(()=>{});const v=[];for(let _=0;_<c.length;_+=1)if(c[_])try{v.push(await h[_])}catch(g){if(g instanceof Oe)return{type:"redirect",location:g.location};if(ue.has(i))return rn({error:await ee(g,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let E=Ne(g),S;if(g instanceof Ie)S=g.body;else{if(await C.updated.check())return await ft(),await Q(n);S=await ee(g,{params:r,url:n,route:{id:a.id}})}const O=await an(_,v,s);return O?de({url:n,params:r,branch:v.slice(0,O.idx).concat(O.node),errors:s,status:E,error:S,route:a}):await yt(n,{id:a.id},S,E)}else v.push(void 0);return de({url:n,params:r,branch:v,errors:s,status:200,error:null,route:a,form:t?void 0:null})}async function an(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function Me({status:e,error:t,url:n,route:r}){const a={};let i=null;try{const s=await Ke({loader:Le,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:Fe(i)}),o={node:await oe(),loader:oe,universal:null,server:null,data:null};return de({url:n,params:a,branch:[s,o],status:e,error:t,errors:[],route:null})}catch(s){if(s instanceof Oe)return Be(new URL(s.location,location.href),{},0);throw s}}async function on(e){const t=e.href;if(ne.has(t))return ne.get(t);let n;try{const r=(async()=>{let a=await w.hooks.reroute({url:new URL(e),fetch:async(i,s)=>vt(i,s,e).promise})??e;if(typeof a=="string"){const i=new URL(e);w.hash?i.hash=a:i.pathname=a,a=i}return a})();ne.set(t,r),n=await r}catch{ne.delete(t);return}return n}async function te(e,t){if(e&&!ge(e,x,w.hash)){const n=await on(e);if(!n)return;const r=sn(n);for(const a of De){const i=a.exec(r);if(i)return{id:he(e),invalidating:t,route:a,params:Ut(i),url:e}}}}function sn(e){return Lt(w.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(x.length))||"/"}function he(e){return(w.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function wt({url:e,type:t,intent:n,delta:r,event:a,scroll:i}){let s=!1;const o=ze(m,n,e,t,i??null);r!==void 0&&(o.navigation.delta=r),a!==void 0&&(o.navigation.event=a);const l={...o.navigation,cancel:()=>{s=!0,o.reject(new Error("navigation cancelled"))}};return Z||dt.forEach(c=>c(l)),s?null:o}async function K({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:i,state:s={},redirect_count:o=0,nav_token:l={},accept:c=xe,block:d=xe,event:p}){const u=I;I=l;const f=await te(t,!1),h=e==="enter"?ze(m,f,t,e):wt({url:t,type:e,delta:n?.delta,intent:f,scroll:n?.scroll,event:p});if(!h){d(),I===l&&(I=u);return}const v=y,_=R;c(),Z=!0,ce&&h.navigation.type!=="enter"&&C.navigating.set(Y.current=h.navigation);let g=f&&await Ge(f);if(!g){if(ge(t,x,w.hash))return await Q(t,i);g=await yt(t,{id:null},await ee(new $e(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i)}if(t=f?.url||t,I!==l)return h.reject(new Error("navigation aborted")),!1;if(g.type==="redirect"){if(o<20){await K({type:e,url:new URL(g.location,t),popped:n,keepfocus:r,noscroll:a,replace_state:i,state:s,redirect_count:o+1,nav_token:l}),h.fulfil(void 0);return}g=await Me({status:500,error:await ee(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else g.props.page.status>=400&&await C.updated.check()&&(await ft(),await Q(t,i));if(Ae(),qe(v),gt(_),g.props.page.url.pathname!==t.pathname&&(t.pathname=g.props.page.url.pathname),s=n?n.state:s,!n){const k=i?0:1,F={[B]:y+=k,[J]:R+=k,[ot]:s};(i?history.replaceState:history.pushState).call(history,F,"",t),i||Xt(y,R)}const E=f&&L?.id===f.id?L.fork:null;L=null,g.props.page.state=s;let S;if(ce){const k=(await Promise.all(Array.from(Qt,G=>G(h.navigation)))).filter(G=>typeof G=="function");if(k.length>0){let G=function(){k.forEach(ve=>{W.delete(ve)})};k.push(G),k.forEach(ve=>{W.add(ve)})}const F=h.navigation.to;m={...g.state,nav:{params:F.params,route:F.route,url:F.url}},g.props.page&&(g.props.page.url=t);const me=E&&await E;me?S=me.commit():(M=null,Ve.$set(g.props),M&&Object.assign(g.props.page,M),ut(g.props.page),S=Rt?.()),pt=!0}else await mt(g,Ue,!1);const{activeElement:O}=document;await S,await re(),await re();let $=null;if(et){const k=n?n.scroll:a?q():null;k?scrollTo(k.x,k.y):($=t.hash&&document.getElementById(kt(t)))?$.scrollIntoView():scrollTo(0,0)}const Et=document.activeElement!==O&&document.activeElement!==document.body;!r&&!Et&&dn(t,!$),et=!0,g.props.page&&(M&&Object.assign(g.props.page,M),Object.assign(b,g.props.page)),Z=!1,e==="popstate"&&_t(R),h.fulfil(void 0),h.navigation.to&&(h.navigation.to.scroll=q()),W.forEach(k=>k(h.navigation)),C.navigating.set(Y.current=null)}async function yt(e,t,n,r,a){return e.origin===pe&&e.pathname===location.pathname&&!ht?await Me({status:r,error:n,url:e,route:t}):await Q(e,a)}function ln(){let e,t={element:void 0,href:void 0},n;T.addEventListener("mousemove",o=>{const l=o.target;clearTimeout(e),e=setTimeout(()=>{i(l,N.hover)},20)});function r(o){o.defaultPrevented||i(o.composedPath()[0],N.tap)}T.addEventListener("mousedown",r),T.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(o=>{for(const l of o)l.isIntersecting&&(Se(new URL(l.target.href)),a.unobserve(l.target))},{threshold:0});async function i(o,l){const c=it(o,T),d=c===t.element&&c?.href===t.href&&l>=n;if(!c||d)return;const{url:p,external:u,download:f}=Re(c,x,w.hash);if(u||f)return;const h=ae(c),v=p&&he(m.url)===he(p);if(!(h.reload||v))if(l<=h.preload_data){t={element:c,href:c.href},n=N.tap;const _=await te(p,!1);if(!_)return;en(_)}else l<=h.preload_code&&(t={element:c,href:c.href},n=l,Se(p))}function s(){a.disconnect();for(const o of T.querySelectorAll("a")){const{url:l,external:c,download:d}=Re(o,x,w.hash);if(c||d)continue;const p=ae(o);p.reload||(p.preload_code===N.viewport&&a.observe(o),p.preload_code===N.eager&&Se(l))}}W.add(s),s()}function ee(e,t){if(e instanceof Ie)return e.body;const n=Ne(e),r=Ht(e);return w.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function bn(e,t={}){return e=new URL(je(e)),e.origin!==pe?Promise.reject(new Error("goto: invalid URL")):Be(e,t,0)}function kn(e){return bt(e),Zt()}function bt(e){if(typeof e=="function")se.push(e);else{const{href:t}=new URL(e,location.href);se.push(n=>n.href===t)}}function cn(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(tt(),!Z){const r=ze(m,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};dt.forEach(i=>i(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&tt()}),navigator.connection?.saveData||ln(),T.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=it(t.composedPath()[0],T);if(!n)return;const{url:r,external:a,target:i,download:s}=Re(n,x,w.hash);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const o=ae(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||s)return;const[c,d]=(w.hash?r.hash.replace(/^#/,""):r.href).split("#"),p=c===ye(location);if(a||o.reload&&(!p||!d)){wt({url:r,type:"link",event:t})?Z=!0:t.preventDefault();return}if(d!==void 0&&p){const[,u]=m.url.href.split("#");if(u===d){if(t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const f=n.ownerDocument.getElementById(decodeURIComponent(d));f&&(f.scrollIntoView(),f.focus())}return}if(z=!0,qe(y),e(r),!o.replace_state)return;z=!1}t.preventDefault(),await new Promise(u=>{requestAnimationFrame(()=>{setTimeout(u,0)}),setTimeout(u,100)}),await K({type:"link",url:r,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??r.href===location.href,event:t})}),T.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const s=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(ge(s,x,!1))return;const o=t.target,l=ae(o);if(l.reload)return;t.preventDefault(),t.stopPropagation();const c=new FormData(o,r);s.search=new URLSearchParams(c).toString(),K({type:"form",url:s,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??s.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!Pe){if(t.state?.[B]){const n=t.state[B];if(I={},n===y)return;const r=j[n],a=t.state[ot]??{},i=new URL(t.state[Ft]??location.href),s=t.state[J],o=m.url?ye(location)===ye(m.url):!1;if(s===R&&(pt||o)){a!==b.state&&(b.state=a),e(i),j[y]=q(),r&&scrollTo(r.x,r.y),y=n;return}const c=n-y;await K({type:"popstate",url:i,popped:{state:a,scroll:r,delta:c},accept:()=>{y=n,R=s},block:()=>{history.go(-c)},nav_token:I,event:t})}else if(!z){const n=new URL(location.href);e(n),w.hash&&location.reload()}}}),addEventListener("hashchange",()=>{z&&(z=!1,history.replaceState({...history.state,[B]:++y,[J]:R},"",location.href))});for(const t of document.querySelectorAll("link"))Yt.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&C.navigating.set(Y.current=null)});function e(t){m.url=b.url=t,C.page.set(He(b)),C.page.notify()}}async function un(e,{status:t=200,error:n,node_ids:r,params:a,route:i,server_route:s,data:o,form:l}){ht=!0;const c=new URL(location.href);let d;({params:a={},route:i={id:null}}=await te(c,!1)||{}),d=De.find(({id:f})=>f===i.id);let p,u=!0;try{const f=r.map(async(v,_)=>{const g=o[_];return g?.uses&&(g.uses=fn(g.uses)),Ke({loader:w.nodes[v],url:c,params:a,route:i,parent:async()=>{const E={};for(let S=0;S<_;S+=1)Object.assign(E,(await f[S]).data);return E},server_data_node:Fe(g)})}),h=await Promise.all(f);if(d){const v=d.layouts;for(let _=0;_<v.length;_++)v[_]||h.splice(_,0,void 0)}p=await de({url:c,params:a,branch:h,status:t,error:n,errors:d?.errors,form:l,route:d??null})}catch(f){if(f instanceof Oe){await Q(new URL(f.location,location.href));return}p=await Me({status:Ne(f),error:await ee(f,{url:c,params:a,route:i}),url:c,route:i}),e.textContent="",u=!1}p.props.page&&(p.props.page.state={}),await mt(p,e,u)}function fn(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let Pe=!1;function dn(e,t=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const r=kt(e);if(r&&document.getElementById(r)){const{x:i,y:s}=q();setTimeout(()=>{const o=history.state;Pe=!0,location.replace(new URL(`#${r}`,location.href)),history.replaceState(o,"",e),t&&scrollTo(i,s),Pe=!1})}else{const i=document.body,s=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),s!==null?i.setAttribute("tabindex",s):i.removeAttribute("tabindex")}const a=getSelection();if(a&&a.type!=="None"){const i=[];for(let s=0;s<a.rangeCount;s+=1)i.push(a.getRangeAt(s));setTimeout(()=>{if(a.rangeCount===i.length){for(let s=0;s<a.rangeCount;s+=1){const o=i[s],l=a.getRangeAt(s);if(o.commonAncestorContainer!==l.commonAncestorContainer||o.startContainer!==l.startContainer||o.endContainer!==l.endContainer||o.startOffset!==l.startOffset||o.endOffset!==l.endOffset)return}a.removeAllRanges()}})}}}function ze(e,t,n,r,a=null){let i,s;const o=new Promise((c,d)=>{i=c,s=d});return o.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:q()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:a},willUnload:!t,type:r,complete:o},fulfil:i,reject:s}}function He(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function hn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function kt(e){let t;if(w.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{yn as a,bn as g,kn as i,_n as l,b as p,C as s};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CYS8iApT.js","../chunks/BmRlVmv6.js","../chunks/CME08kGM.js","../chunks/DhD271EB.js","../chunks/DMtIqaiV.js","../chunks/B6YN0Nuq.js","../chunks/CK9JZLaG.js","../chunks/Ck3rYNON.js","../chunks/DpuLqk8d.js","../chunks/Zeh-C-mx.js","../chunks/Ck-be5J2.js","../chunks/G_zz-Gou.js","../chunks/bBmtyQMj.js","../chunks/Drm9vgeP.js","../chunks/DsIToJCP.js","../assets/0.C-4eziNy.css","../nodes/1.Bli0Hqzn.js","../nodes/2.BnwnD1Ki.js","../nodes/3.Dr0ot9sV.js","../nodes/4.oBhvQhcA.js","../assets/4.Cc_xwLNl.css","../nodes/5.BBGQ_i84.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{D as L,ag as U,w as f,aL as W,aB as Y,aM as z,p as F,u as H,n as J,aN as K,f as O,s as Q,a as X,I as k,c as Z,r as $,G as x,t as tt}from"../chunks/CME08kGM.js";import{h as et,m as rt,u as st,s as nt}from"../chunks/DMtIqaiV.js";import{a as y,c as A,f as V,t as at}from"../chunks/BmRlVmv6.js";import{o as ot}from"../chunks/DhD271EB.js";import{p as S,i as j,b as C}from"../chunks/B6YN0Nuq.js";import{c as D}from"../chunks/Zeh-C-mx.js";function ct(o){return class extends it{constructor(t){super({component:o,...t})}}}class it{#e;#t;constructor(t){var n=new Map,i=(r,e)=>{var s=z(e,!1,!1);return n.set(r,s),s};const u=new Proxy({...t.props||{},$$events:{}},{get(r,e){return f(n.get(e)??i(e,Reflect.get(r,e)))},has(r,e){return e===U?!0:(f(n.get(e)??i(e,Reflect.get(r,e))),Reflect.has(r,e))},set(r,e,s){return L(n.get(e)??i(e,s),s),Reflect.set(r,e,s)}});this.#t=(t.hydrate?et:rt)(t.component,{target:t.target,anchor:t.anchor,props:u,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&W(),this.#e=u.$$events;for(const r of Object.keys(this.#t))r==="$set"||r==="$destroy"||r==="$on"||Y(this,r,{get(){return this.#t[r]},set(e){this.#t[r]=e},enumerable:!0});this.#t.$set=r=>{Object.assign(u,r)},this.#t.$destroy=()=>{st(this.#t)}}$set(t){this.#t.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const i=(...u)=>n.call(this,...u);return this.#e[t].push(i),()=>{this.#e[t]=this.#e[t].filter(u=>u!==i)}}$destroy(){this.#t.$destroy()}}const ut="modulepreload",lt=function(o,t){return new URL(o,t).href},T={},b=function(t,n,i){let u=Promise.resolve();if(n&&n.length>0){let w=function(c){return Promise.all(c.map(m=>Promise.resolve(m).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const e=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),R=s?.nonce||s?.getAttribute("nonce");u=w(n.map(c=>{if(c=lt(c,i),c in T)return;T[c]=!0;const m=c.endsWith(".css"),d=m?'[rel="stylesheet"]':"";if(i)for(let h=e.length-1;h>=0;h--){const a=e[h];if(a.href===c&&(!m||a.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${d}`))return;const l=document.createElement("link");if(l.rel=m?"stylesheet":ut,m||(l.as="script"),l.crossOrigin="",l.href=c,R&&l.setAttribute("nonce",R),document.head.appendChild(l),m)return new Promise((h,a)=>{l.addEventListener("load",h),l.addEventListener("error",()=>a(new Error(`Unable to preload CSS for ${c}`)))})}))}function r(e){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=e,window.dispatchEvent(s),!s.defaultPrevented)throw e}return u.then(e=>{for(const s of e||[])s.status==="rejected"&&r(s.reason);return t().catch(r)})},pt={};var mt=V('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),ft=V("<!> <!>",1);function dt(o,t){F(t,!0);let n=S(t,"components",23,()=>[]),i=S(t,"data_0",3,null),u=S(t,"data_1",3,null);H(()=>t.stores.page.set(t.page)),J(()=>{t.stores,t.page,t.constructors,n(),t.form,i(),u(),t.stores.page.notify()});let r=k(!1),e=k(!1),s=k(null);ot(()=>{const a=t.stores.page.subscribe(()=>{f(r)&&(L(e,!0),K().then(()=>{L(s,document.title||"untitled page",!0)}))});return L(r,!0),a});const R=x(()=>t.constructors[1]);var w=ft(),c=O(w);{var m=a=>{const _=x(()=>t.constructors[0]);var v=A(),P=O(v);D(P,()=>f(_),(g,E)=>{C(E(g,{get data(){return i()},get form(){return t.form},get params(){return t.page.params},children:(p,_t)=>{var I=A(),N=O(I);D(N,()=>f(R),(q,B)=>{C(B(q,{get data(){return u()},get form(){return t.form},get params(){return t.page.params}}),G=>n()[1]=G,()=>n()?.[1])}),y(p,I)},$$slots:{default:!0}}),p=>n()[0]=p,()=>n()?.[0])}),y(a,v)},d=a=>{const _=x(()=>t.constructors[0]);var v=A(),P=O(v);D(P,()=>f(_),(g,E)=>{C(E(g,{get data(){return i()},get form(){return t.form},get params(){return t.page.params}}),p=>n()[0]=p,()=>n()?.[0])}),y(a,v)};j(c,a=>{t.constructors[1]?a(m):a(d,-1)})}var l=Q(c,2);{var h=a=>{var _=mt(),v=Z(_);{var P=g=>{var E=at();tt(()=>nt(E,f(s))),y(g,E)};j(v,g=>{f(e)&&g(P)})}$(_),y(a,_)};j(l,a=>{f(r)&&a(h)})}y(o,w),X()}const Rt=ct(dt),wt=[()=>b(()=>import("../nodes/0.CYS8iApT.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url),()=>b(()=>import("../nodes/1.Bli0Hqzn.js"),__vite__mapDeps([16,1,2,7,4,8,11,12,3]),import.meta.url),()=>b(()=>import("../nodes/2.BnwnD1Ki.js"),__vite__mapDeps([17,1,2,7]),import.meta.url),()=>b(()=>import("../nodes/3.Dr0ot9sV.js"),__vite__mapDeps([18,1,2,4,5,6,7,8,9,12,3,13,10]),import.meta.url),()=>b(()=>import("../nodes/4.oBhvQhcA.js"),__vite__mapDeps([19,1,2,3,4,5,6,7,8,12,14,20]),import.meta.url),()=>b(()=>import("../nodes/5.BBGQ_i84.js"),__vite__mapDeps([21,1,2,4,5,6,7,8,12,3,13]),import.meta.url)],Ot=[],Lt={"/":[2],"/agents":[3],"/chats/[id]":[4],"/chats/[id]/settings":[5]},M={handleError:(({error:o})=>{console.error(o)}),reroute:(()=>{}),transport:{}},ht=Object.fromEntries(Object.entries(M.transport).map(([o,t])=>[o,t.decode])),kt=Object.fromEntries(Object.entries(M.transport).map(([o,t])=>[o,t.encode])),xt=!1,At=(o,t)=>ht[o](t);export{At as decode,ht as decoders,Lt as dictionary,kt as encoders,xt as hash,M as hooks,pt as matchers,wt as nodes,Rt as root,Ot as server_loads};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as o,a as r}from"../chunks/bBmtyQMj.js";export{o as load_css,r as start};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as h,f as c}from"../chunks/BmRlVmv6.js";import"../chunks/Ck3rYNON.js";import{p as l,f as v,t as u,a as _,c as s,r as e,s as g}from"../chunks/CME08kGM.js";import{s as o}from"../chunks/DMtIqaiV.js";import{i as x}from"../chunks/DpuLqk8d.js";import{p}from"../chunks/G_zz-Gou.js";var d=c("<h1> </h1> <p> </p>",1);function y(m,i){l(i,!1),x();var t=d(),r=v(t),f=s(r,!0);e(r);var a=g(r,2),n=s(a,!0);e(a),u(()=>{o(f,p.status),o(n,p.error?.message)}),h(m,t),_()}export{y as component};
|