diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index afec9c3c1..523f048be 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -160,8 +160,8 @@ pnpm --dir worker build - `build.rs` embeds `web/out/` with `rust-embed`; setting `LIBRA_SKIP_WEB_BUILD=1` writes a stub output for Rust-only builds. When - changing `web/`, run the real `pnpm --dir web build` and keep static export - drift clean. + changing `web/`, run the real `pnpm --dir web build`; `web/out/` is generated + and ignored, so never add its static export to a commit. - The `web/` UI is an operational Code UI, not a marketing landing page. Favor dense, predictable controls and existing components in `web/src/components/ui/`. - The `worker/` app serves publish snapshots from D1/R2. Validate request input, diff --git a/.github/workflows/base.yml b/.github/workflows/base.yml index c53c2b96f..cdbcaccc5 100644 --- a/.github/workflows/base.yml +++ b/.github/workflows/base.yml @@ -85,12 +85,11 @@ jobs: corepack enable corepack prepare pnpm@11.10.0 --activate - # The Rust crate's `build.rs` skips the web build whenever - # `LIBRA_SKIP_WEB_BUILD=1` (set on every other job for speed). This - # dedicated job re-asserts that the Next.js source still type-checks, - # lints, and produces a clean static export so `web/out/` cannot - # silently drift away from `WebAssets` in main. Per - # docs/improvement/web.md Phase 5 verification. + # Rust-oriented jobs skip the web build for speed. This dedicated job + # validates the Next.js source, generates a fresh static export, and + # compiles it into `WebAssets`; the generated directory is deliberately + # not version-controlled. Per docs/improvement/web.md Phase 5 + # verification. - name: Install web dependencies run: pnpm --dir web install --frozen-lockfile @@ -103,16 +102,20 @@ jobs: - name: Build web (static export → web/out/) run: pnpm --dir web build - - name: Check web/out static export drift + - name: Verify generated static export lifecycle shell: bash run: | - status="$(git status --porcelain -- web/out)" - if [[ -n "$status" ]]; then - echo "web/out has untracked, staged, or unstaged files after the static export build." >&2 - echo "Run 'pnpm --dir web build' locally and commit the updated web/out files." >&2 - printf '%s\n' "$status" >&2 + test -f web/out/index.html + if git ls-files --error-unmatch -- web/out >/dev/null 2>&1; then + echo "web/out is generated build output and must not be tracked." >&2 exit 1 fi + git check-ignore -q web/out/index.html + + - name: Check generated export embeds into the Rust binary + env: + LIBRA_SKIP_WEB_BUILD: "1" + run: cargo check --lib owner-liveness-macos: # plan-20260714 W1 (§C.9): the operation claim decides whether a control diff --git a/.gitignore b/.gitignore index 07dd2405e..c2d974a2e 100644 --- a/.gitignore +++ b/.gitignore @@ -44,6 +44,8 @@ target-codex-review/ web/node_modules/ web/.next/ web/.pnpm-store/ +# Static export embedded by build.rs; generated from web/ source when required. +web/out/ # Publish Worker (Phase 6/7) worker/node_modules/ diff --git a/CLAUDE.md b/CLAUDE.md index 231a0388c..9df9a7838 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -98,7 +98,7 @@ pnpm --dir web install --frozen-lockfile && pnpm --dir web build All PRs must pass these jobs on the `[self-hosted]` runner pool: 1. **compat-rustfmt** — `cargo +nightly fmt --all --check` 2. **compat-clippy** — `cargo clippy --all-targets --all-features -- -D warnings` (with `LIBRA_SKIP_WEB_BUILD=1`) -3. **compat-web-check** — `pnpm --dir web lint` + `pnpm --dir web build` so `web/out/` cannot drift from `WebAssets` +3. **compat-web-check** — `pnpm --dir web lint` + test + build, followed by `cargo check --lib` against the generated `WebAssets`; `web/out/` is ignored build output 4. **compat-redundancy** — directory-shape check on `third-party/rust/crates` 5. **compat-offline-core** — `cargo test --test compat_matrix_alignment compatibility_matrix_matches_cli_commands -- --exact` + pinned `cargo nextest run --all --no-fail-fast --retries 2` (one process per test; external-resource mutual exclusion from the generated `.config/nextest.toml`; the former `compat-offline-command` shard job is merged in) + `cargo test --doc` + a `--features test-provider` nextest pass (`--profile test-provider`, ten Code UI automation targets — `code_ui_scenarios`, `harness_self_test`, `code_codex_default_web_test`, `ai_code_ui_headless_test`, `code_codex_runtime_test`, `code_ui_remote_lease_matrix`, `code_ui_remote_sse_matrix`, `code_ui_remote_state_matrix`, `code_mcp_dual_entry_test`, `code_ui_perf_smoke_test`; the profile carries the section's single-threaded semantic) + the `otlp`/`keyring`/`test-upgrade` feature sections verbatim on `cargo test` 6. **compat-network-remotes** — `cargo test --features test-network --test network_remotes_test` @@ -234,7 +234,7 @@ The publish Worker uses its own D1 schema in `sql/publish/` (`0001_publish.sql`, `LIBRA_D1_ACCOUNT_ID`, `LIBRA_D1_API_TOKEN`, `LIBRA_D1_DATABASE_ID` ### Build & Runtime -- `LIBRA_SKIP_WEB_BUILD=1` — skip the Next.js web build in `build.rs` (set by every CI job except `compat-web-check`) +- `LIBRA_SKIP_WEB_BUILD=1` — skip the Next.js web build in `build.rs` (used by Rust-oriented CI jobs; `compat-web-check` generates the export explicitly before embedding it) - `LIBRA_LOG`, `RUST_LOG` — `tracing-subscriber` env filter - `LIBRA_LOG_FILE` — tracing sink path (append-mode by default; time-rolled when `LIBRA_LOG_ROTATION` is set) - `LIBRA_LOG_ROTATION` — rolling strategy for `LIBRA_LOG_FILE`: `never` (default) / `minutely` / `hourly` / `daily` (`tracing-appender`, time-split only — no old-file pruning); inspect via `libra logfile info` diff --git a/docs/development/commands/README.md b/docs/development/commands/README.md index 9e5c546d3..f437bddd0 100644 --- a/docs/development/commands/README.md +++ b/docs/development/commands/README.md @@ -82,6 +82,7 @@ | [`read-tree`](read-tree.md) | `partial` | Reads a tree-ish (tree/commit/ref/tag/`HEAD`) into the index, replacing it; index-only (working tree untouched); `--json`. `-m`/`-u`/`--reset`/`--prefix` deferred | | [`update-index`](update-index.md) | `partial` | `--add`/`--remove` (re)stage/drop working-tree paths; `--cacheinfo ,,` registers an entry from an object id (no worktree read, object need not exist); path traversal rejected; `--json`. stat-refresh / `--force-remove` / `--chmod` / `--assume-unchanged` / `--index-info` deferred | | [`update-ref`](update-ref.md) | `partial` | Update/create/delete a `refs/heads/` ref with compare-and-swap (``; all-zero = must-not-exist), `-d`, `-m`, `--json`; ref read + write/delete + `update-ref` reflog run in one SQLite transaction (CAS operand never logged). Scoped to `refs/heads/*`; HEAD / tags / remotes / arbitrary namespaces / `ref:` values / `--stdin` / `--no-deref` rejected or deferred | +| [`upgrade`](upgrade.md) | `intentionally-different` | Manual, Ed25519-signed self-upgrade over Libra's stable channel: validates the manifest and anti-rollback floors, supports `--check`/`--yes`/`--json`, and installs through a locked, rollback-capable transaction. Git has no equivalent; needs no repository. | | [`hooks`](hooks.md) | `intentionally-different` | Hidden compatibility entry for AI provider hook configs installed by `libra agent enable`; not a Git hooks bridge (`.git/hooks` / `core.hooksPath` rejected by D3) | | [`index-pack`](index-pack.md) | `partial` | hidden plumbing command; `--stdin`, `--keep[=]`, progress flags, and `--fix-thin` (accepted no-op — Libra's decoder requires self-contained packs; nothing to complete on the packs it indexes) supported | | [`init`](init.md) | `partial` | fresh repository initialization plus Git-style safe re-initialization/top-up of existing repos (`Reinitialized existing ...`, layout top-up, `--shared` re-apply, `core.sharedRepository` persisted, DB/config/refs otherwise preserved) supported; numeric `--shared=` rejects non-traversable directory modes before partial repo creation; recursive submodule init not implemented | diff --git a/docs/development/commands/upgrade.md b/docs/development/commands/upgrade.md new file mode 100644 index 000000000..bad22a9af --- /dev/null +++ b/docs/development/commands/upgrade.md @@ -0,0 +1,43 @@ +# upgrade 命令开发设计 + +## 命令实现目标 + +`libra upgrade` 是不依赖仓库的 Libra 扩展:检查 Ed25519 签名的 stable +release manifest,并在用户确认或传入 `--yes` 后,以可回滚的安装事务替换官方 +安装的当前二进制。它不读取或修改仓库状态;Git 没有对应命令。 + +## 对比 Git 与兼容性 + +- 兼容级别:`intentionally-different`。 +- 已支持:默认交互检查和安装、`--check`(只报告)、`-y`/`--yes`(非交互安装), + 以及全局 `--json`/`--machine` 输出。 +- `--check` 与 `--yes` 互斥。机器输出和 quiet 模式绝不提示;发现可用版本时, + 调用方必须选择 `--check` 或 `--yes`。 + +## 设计方案 + +- 入口与分发:`src/cli.rs::Commands::Upgrade` → + `command::upgrade::execute_safe`,无需仓库 preflight。 +- `command::upgrade::UpgradeArgs` 仅承载确认策略;签名 manifest 的获取、平台 + 选择、反回滚状态、安装标记和安装事务由 `internal::upgrade/` 统一负责。 +- 每次手工检查先验证 manifest 并持久化其反回滚 floors。确认安装前会再次获取和 + 验证 manifest;控制面变化、暂停或撤销都会拒绝继续使用旧计划。 +- 安装事务受 `internal::upgrade::lock::UpgradeLock` 保护,下载内容同时验证 size + 和 sha256,并运行新二进制的 probe;事务或 probe 失败时恢复旧二进制。 +- 仅安装脚本写入了官方 install marker 的二进制可自升级。源代码构建、改名副本和 + 不受支持的平台会给出可操作的拒绝结果。 + +## 当前状态 + +- 公开状态:已公开(`Commands::Upgrade`)。 +- 用户文档:[docs/commands/upgrade.md](../../commands/upgrade.md)。 +- 测试:`tests/command/upgrade_cmd_test.rs` 覆盖 CLI/官方安装标记路径; + `tests/upgrade_auto_test.rs` 和 `tests/upgrade_publish_contract_test.rs` 在 + `--features test-upgrade` 下覆盖签名、状态转换、安装/回滚与发布契约。 + +## 维护要求 + +- 改动命令参数或用户可见状态时,同时更新用户文档、此设计文档、 + `COMPATIBILITY.md` 和 `docs/development/commands/README.md`。 +- 改动 manifest、反回滚 floor、安装 marker 或事务语义时,必须同步维护 + `internal::upgrade/` 的跨层测试;不能将验证或持久化错误静默降级。 diff --git a/docs/development/gap/surface-registry.tsv b/docs/development/gap/surface-registry.tsv index 7a5e1786b..64f562008 100644 --- a/docs/development/gap/surface-registry.tsv +++ b/docs/development/gap/surface-registry.tsv @@ -1,5 +1,5 @@ -add add git-compatible COMPATIBILITY.md:120 -commit -m git-compatible COMPATIBILITY.md:146 +add add git-compatible COMPATIBILITY.md:121 +commit -m git-compatible COMPATIBILITY.md:147 diff --check git-compatible docs/commands/diff.md#options diff --exit-code git-compatible docs/commands/diff.md#options diff --name-only git-compatible docs/commands/diff.md#options @@ -22,7 +22,7 @@ diff-files --stat absent docs/commands/diff.md#options diff-files --summary absent docs/commands/diff.md#options diff-files -C absent docs/commands/diff.md#options diff-files -s absent docs/commands/diff.md#options -diff-files porcelain flag surface intentionally-different COMPATIBILITY.md:166 +diff-files porcelain flag surface intentionally-different COMPATIBILITY.md:167 diff-index --cached deferred docs/commands/diff-index.md#comparison-with-git diff-index --exit-code absent docs/commands/diff.md#options diff-index -C absent docs/commands/diff.md#options @@ -34,19 +34,19 @@ diff-tree --name-only absent docs/commands/diff.md#options diff-tree --stdin absent docs/commands/diff-tree.md#comparison-with-git diff-tree -M absent docs/commands/diff.md#options diff-tree -r absent docs/commands/diff-tree.md#comparison-with-git -format-patch --attach git-compatible COMPATIBILITY.md:160 -format-patch --base git-compatible COMPATIBILITY.md:160 -format-patch --cc git-compatible COMPATIBILITY.md:160 -format-patch --in-reply-to git-compatible COMPATIBILITY.md:160 -format-patch --inline git-compatible COMPATIBILITY.md:160 -format-patch --signoff git-compatible COMPATIBILITY.md:160 -format-patch --stdout git-compatible COMPATIBILITY.md:160 -format-patch --to git-compatible COMPATIBILITY.md:160 -format-patch -s git-compatible COMPATIBILITY.md:160 -hash-object hash-object git-compatible COMPATIBILITY.md:175 -mv mv git-compatible COMPATIBILITY.md:127 -rev-parse rev-parse git-compatible COMPATIBILITY.md:153 -status status git-compatible COMPATIBILITY.md:129 -update-index --add git-compatible COMPATIBILITY.md:178 -update-index --remove git-compatible COMPATIBILITY.md:178 -write-tree write-tree git-compatible COMPATIBILITY.md:176 +format-patch --attach git-compatible COMPATIBILITY.md:161 +format-patch --base git-compatible COMPATIBILITY.md:161 +format-patch --cc git-compatible COMPATIBILITY.md:161 +format-patch --in-reply-to git-compatible COMPATIBILITY.md:161 +format-patch --inline git-compatible COMPATIBILITY.md:161 +format-patch --signoff git-compatible COMPATIBILITY.md:161 +format-patch --stdout git-compatible COMPATIBILITY.md:161 +format-patch --to git-compatible COMPATIBILITY.md:161 +format-patch -s git-compatible COMPATIBILITY.md:161 +hash-object hash-object git-compatible COMPATIBILITY.md:176 +mv mv git-compatible COMPATIBILITY.md:128 +rev-parse rev-parse git-compatible COMPATIBILITY.md:154 +status status git-compatible COMPATIBILITY.md:130 +update-index --add git-compatible COMPATIBILITY.md:179 +update-index --remove git-compatible COMPATIBILITY.md:179 +write-tree write-tree git-compatible COMPATIBILITY.md:177 diff --git a/install.sh b/install.sh index 16374cd1c..c648cc6c0 100755 --- a/install.sh +++ b/install.sh @@ -25,6 +25,7 @@ DEFAULT_VERSION="v0.22.10" # the environment. The PEM is the same key as the hex, in SubjectPublicKeyInfo # form for `openssl pkeyutl` (kept in sync by the trusted_keys unit tests). LIBRA_RELEASE_MANIFEST_KEY_ID="libra-release-1" +# shellcheck disable=SC2034 # Audited by Rust tests against the PEM and native trust table. LIBRA_RELEASE_MANIFEST_PUBLIC_KEY_HEX="68aa00ea9358d455645010d811d40702b3f67cec4bdff52d3d4fb8107afaeed3" LIBRA_RELEASE_MANIFEST_PUBLIC_KEY_PEM="-----BEGIN PUBLIC KEY----- MCowBQYDK2VwAyEAaKoA6pNY1FVkUBDYEdQHArP2fOxL3/UtPU+4EHr67tM= @@ -799,7 +800,11 @@ verify_stable_manifest() { published_at=$(json_string_field published_at "$head_file") expires_at=$(json_string_field expires_at "$head_file") min_key_generation=$(sed -n 's/.*"min_key_generation":\([0-9][0-9]*\).*/\1/p' "$head_file" | head -n1) - paused=$(sed -n 's/.*"paused":\(true\|false\).*/\1/p' "$head_file" | head -n1) + # Do not use BRE `\|` here: BSD sed treats it as a literal rather than + # alternation, which would leave `paused` empty and bypass a signed pause. + # The canonical grammar above fixes this field's surrounding shape; the + # explicit boolean check below still keeps extraction fail-closed. + paused=$(sed -n 's/.*"paused":\([^,]*\),"revoked_versions":.*/\1/p' "$head_file" | head -n1) [ "$channel" = "stable" ] || { rm -rf "$work_dir"; error_exit "signed manifest channel '${channel:-?}' is not 'stable'" "verify" "refusing to install"; } [ -n "$STABLE_VERSION" ] || { rm -rf "$work_dir"; error_exit "signed manifest carries no version" "verify" "refusing to install"; } @@ -860,6 +865,11 @@ verify_stable_manifest() { error_exit "signed manifest lifetime is outside the pinned key's validity window (published_at ${published_at}, expires_at ${expires_at})" "verify" \ "the signing key window ended or has not begun — re-download install.sh" fi + if [ "$paused" != "true" ] && [ "$paused" != "false" ]; then + rm -rf "$work_dir" + error_exit "signed manifest paused field '${paused:-?}' is not boolean" "verify" \ + "refusing to install — the payload field layout is not the release contract" + fi if [ "$paused" = "true" ]; then rm -rf "$work_dir" error_exit "releases are PAUSED by the publisher (signed manifest paused=true)" "verify" \ diff --git a/src/internal/upgrade/lock.rs b/src/internal/upgrade/lock.rs index e0318a009..49e585755 100644 --- a/src/internal/upgrade/lock.rs +++ b/src/internal/upgrade/lock.rs @@ -389,16 +389,41 @@ mod unix_impl { ) } + /// Open the floors micro-lock, retrying only Darwin's transient + /// `ENOENT` during the concurrent first-create window. Once one + /// contender creates the regular lock file, the next fd-relative + /// no-follow open observes and locks that same file. + fn open_floors_lock_file(&self) -> Result { + const CREATE_RACE_RETRIES: u32 = 4; + for attempt in 0..CREATE_RACE_RETRIES { + match self.openat( + FLOORS_LOCK_FILE_NAME, + libc::O_RDWR | libc::O_CREAT, + 0o600 as libc::c_int, + ) { + Ok(file) => return Ok(file), + Err(InstallDirError::Io { ref detail, .. }) + if attempt + 1 < CREATE_RACE_RETRIES + && (detail.contains("No such file") + || detail.contains("(os error 2)")) => + { + std::thread::yield_now(); + } + Err(err) => return Err(err), + } + } + Err(InstallDirError::Io { + name: FLOORS_LOCK_FILE_NAME.to_string(), + detail: "floors lock creation retry loop ended unexpectedly".into(), + }) + } + /// Blocking floors micro-lock: kernel-queued, so unlike repeated /// non-blocking probes it cannot be starved by a stream of short-lived /// holders. Callers bound the wait externally (worker thread + /// timeout) because flock itself has none. pub fn lock_floors_blocking(&self) -> Result { - let file = self.openat( - FLOORS_LOCK_FILE_NAME, - libc::O_RDWR | libc::O_CREAT, - 0o600 as libc::c_int, - )?; + let file = self.open_floors_lock_file()?; // SAFETY: flock on an owned fd. let rc = unsafe { libc::flock(file.as_raw_fd(), libc::LOCK_EX) }; if rc != 0 { @@ -415,11 +440,7 @@ mod unix_impl { /// holders only perform one atomic read-merge-write, so contention /// clears in milliseconds unless a holder is externally stalled. pub fn try_lock_floors(&self) -> Result, InstallDirError> { - let file = self.openat( - FLOORS_LOCK_FILE_NAME, - libc::O_RDWR | libc::O_CREAT, - 0o600 as libc::c_int, - )?; + let file = self.open_floors_lock_file()?; // SAFETY: flock on an owned fd. let rc = unsafe { libc::flock(file.as_raw_fd(), libc::LOCK_EX | libc::LOCK_NB) }; if rc != 0 { diff --git a/tests/compat-ledger/t4/SURFACES.lock b/tests/compat-ledger/t4/SURFACES.lock index 7a5e1786b..64f562008 100644 --- a/tests/compat-ledger/t4/SURFACES.lock +++ b/tests/compat-ledger/t4/SURFACES.lock @@ -1,5 +1,5 @@ -add add git-compatible COMPATIBILITY.md:120 -commit -m git-compatible COMPATIBILITY.md:146 +add add git-compatible COMPATIBILITY.md:121 +commit -m git-compatible COMPATIBILITY.md:147 diff --check git-compatible docs/commands/diff.md#options diff --exit-code git-compatible docs/commands/diff.md#options diff --name-only git-compatible docs/commands/diff.md#options @@ -22,7 +22,7 @@ diff-files --stat absent docs/commands/diff.md#options diff-files --summary absent docs/commands/diff.md#options diff-files -C absent docs/commands/diff.md#options diff-files -s absent docs/commands/diff.md#options -diff-files porcelain flag surface intentionally-different COMPATIBILITY.md:166 +diff-files porcelain flag surface intentionally-different COMPATIBILITY.md:167 diff-index --cached deferred docs/commands/diff-index.md#comparison-with-git diff-index --exit-code absent docs/commands/diff.md#options diff-index -C absent docs/commands/diff.md#options @@ -34,19 +34,19 @@ diff-tree --name-only absent docs/commands/diff.md#options diff-tree --stdin absent docs/commands/diff-tree.md#comparison-with-git diff-tree -M absent docs/commands/diff.md#options diff-tree -r absent docs/commands/diff-tree.md#comparison-with-git -format-patch --attach git-compatible COMPATIBILITY.md:160 -format-patch --base git-compatible COMPATIBILITY.md:160 -format-patch --cc git-compatible COMPATIBILITY.md:160 -format-patch --in-reply-to git-compatible COMPATIBILITY.md:160 -format-patch --inline git-compatible COMPATIBILITY.md:160 -format-patch --signoff git-compatible COMPATIBILITY.md:160 -format-patch --stdout git-compatible COMPATIBILITY.md:160 -format-patch --to git-compatible COMPATIBILITY.md:160 -format-patch -s git-compatible COMPATIBILITY.md:160 -hash-object hash-object git-compatible COMPATIBILITY.md:175 -mv mv git-compatible COMPATIBILITY.md:127 -rev-parse rev-parse git-compatible COMPATIBILITY.md:153 -status status git-compatible COMPATIBILITY.md:129 -update-index --add git-compatible COMPATIBILITY.md:178 -update-index --remove git-compatible COMPATIBILITY.md:178 -write-tree write-tree git-compatible COMPATIBILITY.md:176 +format-patch --attach git-compatible COMPATIBILITY.md:161 +format-patch --base git-compatible COMPATIBILITY.md:161 +format-patch --cc git-compatible COMPATIBILITY.md:161 +format-patch --in-reply-to git-compatible COMPATIBILITY.md:161 +format-patch --inline git-compatible COMPATIBILITY.md:161 +format-patch --signoff git-compatible COMPATIBILITY.md:161 +format-patch --stdout git-compatible COMPATIBILITY.md:161 +format-patch --to git-compatible COMPATIBILITY.md:161 +format-patch -s git-compatible COMPATIBILITY.md:161 +hash-object hash-object git-compatible COMPATIBILITY.md:176 +mv mv git-compatible COMPATIBILITY.md:128 +rev-parse rev-parse git-compatible COMPATIBILITY.md:154 +status status git-compatible COMPATIBILITY.md:130 +update-index --add git-compatible COMPATIBILITY.md:179 +update-index --remove git-compatible COMPATIBILITY.md:179 +write-tree write-tree git-compatible COMPATIBILITY.md:177 diff --git a/tests/compat-ledger/t4/t4000-diff-format.toml b/tests/compat-ledger/t4/t4000-diff-format.toml index 1c2feafcd..508487a43 100644 --- a/tests/compat-ledger/t4/t4000-diff-format.toml +++ b/tests/compat-ledger/t4/t4000-diff-format.toml @@ -9,7 +9,7 @@ id = "t4000-diff-format::update-index-add-two-files-with-and-without-x" category = "direct" command_status = "partial" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:178" +surface_evidence = "COMPATIBILITY.md:179" reason = "update-index is partial and every flag this scenario passes is accepted by Libra, with --add recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" @@ -24,7 +24,7 @@ id = "t4000-diff-format::git-diff-files-p-after-editing-work-tree" category = "blocked" command_status = "partial" surface_compatibility = "intentionally-different" -surface_evidence = "COMPATIBILITY.md:166" +surface_evidence = "COMPATIBILITY.md:167" reason = "diff-files keeps a deliberately minimal flag surface, so -p cannot run; no D number covers it yet, so ADR-CT-06 rule 3 applies rather than declined." owner = "libra-compat" review_date = "2026-08-08" @@ -39,7 +39,7 @@ id = "t4000-diff-format::validate-git-diff-files-p-output" category = "blocked" command_status = "partial" surface_compatibility = "intentionally-different" -surface_evidence = "COMPATIBILITY.md:166" +surface_evidence = "COMPATIBILITY.md:167" reason = "diff-files keeps a deliberately minimal flag surface, so -p cannot run; no D number covers it yet, so ADR-CT-06 rule 3 applies rather than declined." owner = "libra-compat" review_date = "2026-08-08" diff --git a/tests/compat-ledger/t4/t4001-diff-rename.toml b/tests/compat-ledger/t4/t4001-diff-rename.toml index 61fa829a6..5a8cb5189 100644 --- a/tests/compat-ledger/t4/t4001-diff-rename.toml +++ b/tests/compat-ledger/t4/t4001-diff-rename.toml @@ -24,7 +24,7 @@ id = "t4001-diff-rename::update-index-add-a-file" category = "direct" command_status = "partial" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:178" +surface_evidence = "COMPATIBILITY.md:179" reason = "update-index is partial and every flag this scenario passes is accepted by Libra, with --add recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" @@ -39,7 +39,7 @@ id = "t4001-diff-rename::write-that-tree" category = "direct" command_status = "partial" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:176" +surface_evidence = "COMPATIBILITY.md:177" reason = "write-tree is partial and every flag this scenario passes is accepted by Libra, with write-tree recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" @@ -54,7 +54,7 @@ id = "t4001-diff-rename::renamed-and-edited-the-file" category = "direct" command_status = "partial" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:178" +surface_evidence = "COMPATIBILITY.md:179" reason = "update-index is partial and every flag this scenario passes is accepted by Libra, with --add recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" @@ -144,7 +144,7 @@ id = "t4001-diff-rename::favour-same-basenames-over-different-ones" category = "direct" command_status = "supported" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:129" +surface_evidence = "COMPATIBILITY.md:130" reason = "status is supported and every flag this scenario passes is accepted by Libra, with status recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" @@ -159,7 +159,7 @@ id = "t4001-diff-rename::test-diff-renames-true-for-git-status" category = "blocked" command_status = "supported" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:129" +surface_evidence = "COMPATIBILITY.md:130" reason = "Exercises status, which Libra has, but cannot run: status rejects -c, undocumented in Libra so not citable as a surface (rule 3)." owner = "libra-compat" review_date = "2026-08-08" @@ -174,7 +174,7 @@ id = "t4001-diff-rename::test-diff-renames-false-for-git-status" category = "blocked" command_status = "supported" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:129" +surface_evidence = "COMPATIBILITY.md:130" reason = "Exercises status, which Libra has, but cannot run: status rejects -c, undocumented in Libra so not citable as a surface (rule 3)." owner = "libra-compat" review_date = "2026-08-08" @@ -189,7 +189,7 @@ id = "t4001-diff-rename::favour-same-basenames-even-with-minor-differences" category = "direct" command_status = "supported" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:129" +surface_evidence = "COMPATIBILITY.md:130" reason = "status is supported and every flag this scenario passes is accepted by Libra, with status recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" @@ -204,7 +204,7 @@ id = "t4001-diff-rename::two-files-with-same-basename-and-same-content" category = "direct" command_status = "supported" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:129" +surface_evidence = "COMPATIBILITY.md:130" reason = "status is supported and every flag this scenario passes is accepted by Libra, with status recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" diff --git a/tests/compat-ledger/t4/t4003-diff-rename-1.toml b/tests/compat-ledger/t4/t4003-diff-rename-1.toml index 1bf7aac18..b903bbd72 100644 --- a/tests/compat-ledger/t4/t4003-diff-rename-1.toml +++ b/tests/compat-ledger/t4/t4003-diff-rename-1.toml @@ -9,7 +9,7 @@ id = "t4003-diff-rename-1::prepare-reference-tree" category = "direct" command_status = "partial" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:176" +surface_evidence = "COMPATIBILITY.md:177" reason = "write-tree is partial and every flag this scenario passes is accepted by Libra, with write-tree recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" diff --git a/tests/compat-ledger/t4/t4004-diff-rename-symlink.toml b/tests/compat-ledger/t4/t4004-diff-rename-symlink.toml index 51b47674a..9147ea75e 100644 --- a/tests/compat-ledger/t4/t4004-diff-rename-symlink.toml +++ b/tests/compat-ledger/t4/t4004-diff-rename-symlink.toml @@ -9,7 +9,7 @@ id = "t4004-diff-rename-symlink::prepare-reference-tree" category = "direct" command_status = "partial" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:176" +surface_evidence = "COMPATIBILITY.md:177" reason = "write-tree is partial and every flag this scenario passes is accepted by Libra, with write-tree recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" @@ -24,7 +24,7 @@ id = "t4004-diff-rename-symlink::prepare-work-tree" category = "direct" command_status = "partial" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:178" +surface_evidence = "COMPATIBILITY.md:179" reason = "update-index is partial and every flag this scenario passes is accepted by Libra, with --add recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" diff --git a/tests/compat-ledger/t4/t4005-diff-rename-2.toml b/tests/compat-ledger/t4/t4005-diff-rename-2.toml index 5e2ba681c..8eab6dd96 100644 --- a/tests/compat-ledger/t4/t4005-diff-rename-2.toml +++ b/tests/compat-ledger/t4/t4005-diff-rename-2.toml @@ -9,7 +9,7 @@ id = "t4005-diff-rename-2::setup-reference-tree" category = "direct" command_status = "partial" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:175" +surface_evidence = "COMPATIBILITY.md:176" reason = "hash-object is partial and every flag this scenario passes is accepted by Libra, with hash-object recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" diff --git a/tests/compat-ledger/t4/t4006-diff-mode.toml b/tests/compat-ledger/t4/t4006-diff-mode.toml index 09ff84ea9..db3a7559b 100644 --- a/tests/compat-ledger/t4/t4006-diff-mode.toml +++ b/tests/compat-ledger/t4/t4006-diff-mode.toml @@ -9,7 +9,7 @@ id = "t4006-diff-mode::setup" category = "direct" command_status = "partial" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:176" +surface_evidence = "COMPATIBILITY.md:177" reason = "write-tree is partial and every flag this scenario passes is accepted by Libra, with write-tree recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" @@ -39,7 +39,7 @@ id = "t4006-diff-mode::prepare-binary-file" category = "direct" command_status = "partial" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:146" +surface_evidence = "COMPATIBILITY.md:147" reason = "commit is partial and every flag this scenario passes is accepted by Libra, with -m recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" diff --git a/tests/compat-ledger/t4/t4007-rename-3.toml b/tests/compat-ledger/t4/t4007-rename-3.toml index f01d7e65c..01945ef15 100644 --- a/tests/compat-ledger/t4/t4007-rename-3.toml +++ b/tests/compat-ledger/t4/t4007-rename-3.toml @@ -9,7 +9,7 @@ id = "t4007-rename-3::prepare-reference-tree" category = "direct" command_status = "partial" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:153" +surface_evidence = "COMPATIBILITY.md:154" reason = "rev-parse is partial and every flag this scenario passes is accepted by Libra, with rev-parse recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" @@ -24,7 +24,7 @@ id = "t4007-rename-3::prepare-work-tree" category = "direct" command_status = "partial" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:178" +surface_evidence = "COMPATIBILITY.md:179" reason = "update-index is partial and every flag this scenario passes is accepted by Libra, with --add recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" @@ -159,7 +159,7 @@ id = "t4007-rename-3::tweak-index" category = "direct" command_status = "partial" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:178" +surface_evidence = "COMPATIBILITY.md:179" reason = "update-index is partial and every flag this scenario passes is accepted by Libra, with --remove recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" diff --git a/tests/compat-ledger/t4/t4009-diff-rename-4.toml b/tests/compat-ledger/t4/t4009-diff-rename-4.toml index 1e66e792d..5e611dc1f 100644 --- a/tests/compat-ledger/t4/t4009-diff-rename-4.toml +++ b/tests/compat-ledger/t4/t4009-diff-rename-4.toml @@ -9,7 +9,7 @@ id = "t4009-diff-rename-4::prepare-reference-tree" category = "direct" command_status = "partial" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:176" +surface_evidence = "COMPATIBILITY.md:177" reason = "write-tree is partial and every flag this scenario passes is accepted by Libra, with write-tree recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" diff --git a/tests/compat-ledger/t4/t4010-diff-pathspec.toml b/tests/compat-ledger/t4/t4010-diff-pathspec.toml index 7047ea15d..be9b08f0c 100644 --- a/tests/compat-ledger/t4/t4010-diff-pathspec.toml +++ b/tests/compat-ledger/t4/t4010-diff-pathspec.toml @@ -9,7 +9,7 @@ id = "t4010-diff-pathspec::setup" category = "direct" command_status = "partial" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:175" +surface_evidence = "COMPATIBILITY.md:176" reason = "hash-object is partial and every flag this scenario passes is accepted by Libra, with hash-object recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" @@ -204,7 +204,7 @@ id = "t4010-diff-pathspec::setup-submodules" category = "direct" command_status = "partial" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:146" +surface_evidence = "COMPATIBILITY.md:147" reason = "commit is partial and every flag this scenario passes is accepted by Libra, with -m recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" diff --git a/tests/compat-ledger/t4/t4015-format-patch-options.toml b/tests/compat-ledger/t4/t4015-format-patch-options.toml index 89fb5e271..cf85d60ba 100644 --- a/tests/compat-ledger/t4/t4015-format-patch-options.toml +++ b/tests/compat-ledger/t4/t4015-format-patch-options.toml @@ -9,7 +9,7 @@ id = "t4015-format-patch-options::setup" category = "direct" command_status = "partial" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:146" +surface_evidence = "COMPATIBILITY.md:147" reason = "commit is partial and every flag this scenario passes is accepted by Libra, with -m recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" @@ -24,7 +24,7 @@ id = "t4015-format-patch-options::format-patch-base-commit-adds-base-commit-info category = "direct" command_status = "partial" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:160" +surface_evidence = "COMPATIBILITY.md:161" reason = "format-patch is partial and every flag this scenario passes is accepted by Libra, with --base recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" @@ -39,7 +39,7 @@ id = "t4015-format-patch-options::format-patch-base-with-multi-patch-puts-base-c category = "direct" command_status = "partial" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:160" +surface_evidence = "COMPATIBILITY.md:161" reason = "format-patch is partial and every flag this scenario passes is accepted by Libra, with --base recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" @@ -54,7 +54,7 @@ id = "t4015-format-patch-options::format-patch-s-adds-signed-off-by" category = "direct" command_status = "partial" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:160" +surface_evidence = "COMPATIBILITY.md:161" reason = "format-patch is partial and every flag this scenario passes is accepted by Libra, with -s recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" @@ -69,7 +69,7 @@ id = "t4015-format-patch-options::format-patch-signoff-adds-signed-off-by" category = "direct" command_status = "partial" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:160" +surface_evidence = "COMPATIBILITY.md:161" reason = "format-patch is partial and every flag this scenario passes is accepted by Libra, with --signoff recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" @@ -84,7 +84,7 @@ id = "t4015-format-patch-options::format-patch-in-reply-to-adds-in-reply-to-and- category = "direct" command_status = "partial" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:160" +surface_evidence = "COMPATIBILITY.md:161" reason = "format-patch is partial and every flag this scenario passes is accepted by Libra, with --in-reply-to recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" @@ -99,7 +99,7 @@ id = "t4015-format-patch-options::format-patch-cc-adds-cc-header" category = "direct" command_status = "partial" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:160" +surface_evidence = "COMPATIBILITY.md:161" reason = "format-patch is partial and every flag this scenario passes is accepted by Libra, with --cc recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" @@ -114,7 +114,7 @@ id = "t4015-format-patch-options::format-patch-to-adds-to-header" category = "direct" command_status = "partial" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:160" +surface_evidence = "COMPATIBILITY.md:161" reason = "format-patch is partial and every flag this scenario passes is accepted by Libra, with --to recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" @@ -129,7 +129,7 @@ id = "t4015-format-patch-options::format-patch-cc-and-to-can-be-combined" category = "direct" command_status = "partial" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:160" +surface_evidence = "COMPATIBILITY.md:161" reason = "format-patch is partial and every flag this scenario passes is accepted by Libra, with --cc recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" @@ -144,7 +144,7 @@ id = "t4015-format-patch-options::format-patch-attach-produces-mime-attachment" category = "direct" command_status = "partial" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:160" +surface_evidence = "COMPATIBILITY.md:161" reason = "format-patch is partial and every flag this scenario passes is accepted by Libra, with --attach recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" @@ -159,7 +159,7 @@ id = "t4015-format-patch-options::format-patch-inline-produces-mime-inline" category = "direct" command_status = "partial" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:160" +surface_evidence = "COMPATIBILITY.md:161" reason = "format-patch is partial and every flag this scenario passes is accepted by Libra, with --inline recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" @@ -174,7 +174,7 @@ id = "t4015-format-patch-options::format-patch-k-keeps-subject-without-patch-pre category = "blocked" command_status = "partial" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:160" +surface_evidence = "COMPATIBILITY.md:161" reason = "Exercises --stdout, which Libra has, but cannot run: format-patch rejects -k, undocumented in Libra so not citable as a surface (rule 3)." owner = "libra-compat" review_date = "2026-08-08" diff --git a/tests/compat-ledger/t4/t4016-diff-quote.toml b/tests/compat-ledger/t4/t4016-diff-quote.toml index ad02745be..141e11645 100644 --- a/tests/compat-ledger/t4/t4016-diff-quote.toml +++ b/tests/compat-ledger/t4/t4016-diff-quote.toml @@ -9,7 +9,7 @@ id = "t4016-diff-quote::setup" category = "direct" command_status = "partial" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:127" +surface_evidence = "COMPATIBILITY.md:128" reason = "mv is partial and every flag this scenario passes is accepted by Libra, with mv recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" @@ -24,7 +24,7 @@ id = "t4016-diff-quote::setup-expected-files" category = "direct" command_status = "partial" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:127" +surface_evidence = "COMPATIBILITY.md:128" reason = "Compares the artefact an earlier scenario produced with mv; every flag that scenario passes is accepted by Libra (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" diff --git a/tests/compat-ledger/t4/t4017-diff-retval.toml b/tests/compat-ledger/t4/t4017-diff-retval.toml index ff67a687e..3b0feae08 100644 --- a/tests/compat-ledger/t4/t4017-diff-retval.toml +++ b/tests/compat-ledger/t4/t4017-diff-retval.toml @@ -9,7 +9,7 @@ id = "t4017-diff-retval::setup" category = "direct" command_status = "partial" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:146" +surface_evidence = "COMPATIBILITY.md:147" reason = "commit is partial and every flag this scenario passes is accepted by Libra, with -m recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" @@ -339,7 +339,7 @@ id = "t4017-diff-retval::check-detects-leftover-conflict-markers" category = "direct" command_status = "partial" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:120" +surface_evidence = "COMPATIBILITY.md:121" reason = "add is partial and every flag this scenario passes is accepted by Libra, with add recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" @@ -474,7 +474,7 @@ id = "t4017-diff-retval::setup-dirty-subrepo" category = "direct" command_status = "partial" surface_compatibility = "git-compatible" -surface_evidence = "COMPATIBILITY.md:146" +surface_evidence = "COMPATIBILITY.md:147" reason = "commit is partial and every flag this scenario passes is accepted by Libra, with -m recorded git-compatible at the cited anchor (ADR-CT-06 rule 5)." owner = "libra-compat" review_date = "2026-08-08" diff --git a/tests/compat/matrix_alignment.rs b/tests/compat/matrix_alignment.rs index 7cbed7979..e47f3e32b 100644 --- a/tests/compat/matrix_alignment.rs +++ b/tests/compat/matrix_alignment.rs @@ -1137,16 +1137,21 @@ fn w203_revision_receipt_and_network_boundary_stay_aligned() { } #[test] -fn web_build_job_checks_static_export_drift_inline() { +fn web_build_job_enforces_ignored_static_export_lifecycle() { let workflow = read_repo_file(".github/workflows/base.yml"); assert_contains( &workflow, - "git status --porcelain -- web/out", + "test -f web/out/index.html", ".github/workflows/base.yml", ); assert_contains( &workflow, - "web/out has untracked, staged, or unstaged files after the static export build.", + "git ls-files --error-unmatch -- web/out", + ".github/workflows/base.yml", + ); + assert_contains( + &workflow, + "git check-ignore -q web/out/index.html", ".github/workflows/base.yml", ); assert!( diff --git a/web/README.md b/web/README.md index dcd339a7a..6292f9801 100644 --- a/web/README.md +++ b/web/README.md @@ -3,7 +3,7 @@ This directory holds the Next.js source for the embedded `libra code` browser UI. The build is consumed two ways: 1. **`pnpm dev`** during local development serves the UI on the Next.js dev server's default `http://localhost:3000`. All API calls use relative `/api/...` paths with `same-origin` credentials (see `src/lib/code-ui/client.ts`), so the dev server must share its origin with a running `libra code` process. The typical workflow is to launch the backend on a non-default port — `libra code --port 4400` — and then run `pnpm dev -- --port 4400` so both share the loopback origin. There is **no** `LIBRA_DEV_API_BASE`-style env-var-based proxy: the client speaks to `/api/*` directly and the Rust side's `ensure_loopback_api_request` guard refuses remote callers regardless. -2. **`pnpm build`** emits a static export to `web/out/`. The Rust binary embeds that directory at compile time via `WebAssets` (`src/command/web_assets.rs`) and serves it from `axum::Router::fallback`. Any production change to the UI therefore requires `pnpm build` so the embedded snapshot stays current; CI fails closed if `web/out/` falls behind the source. +2. **`pnpm build`** emits a static export to the ignored `web/out/` directory. The Rust binary embeds that directory at compile time via `WebAssets` (`src/command/web_assets.rs`) and serves it from `axum::Router::fallback`. `build.rs` generates it when Cargo needs to rebuild the frontend; CI verifies a fresh export can be embedded. Do not commit `web/out/`. ## Scripts @@ -149,5 +149,5 @@ advertises the full set, `HeadlessCodeRuntime` advertises `messageInput` + ## Dev tips - `pnpm dev` does not embed assets into the Rust binary; you'll see "Loading…" placeholders for any feature that depends on a live `libra code` API. Run a TUI session in another terminal so the SSE channel has data to stream. -- `pnpm build` and `cargo build` are independent — when you modify both layers, run `pnpm build` first so `web/out/` is up to date before the Rust crate compiles. +- `cargo build` invokes `pnpm build` through `build.rs` unless `LIBRA_SKIP_WEB_BUILD=1` is set. Run `pnpm build` directly for fast frontend feedback, then run `cargo build` to embed the fresh export; `web/out/` remains generated and ignored. - The static export needs `output: "export"`, `trailingSlash: true`, and `images.unoptimized` (configured in `next.config.ts`). Don't toggle these without updating `WebAssets` accordingly. diff --git a/web/out/404.html b/web/out/404.html deleted file mode 100644 index 4f1d278b7..000000000 --- a/web/out/404.html +++ /dev/null @@ -1 +0,0 @@ -404: This page could not be found.Libra Code

404

This page could not be found.

\ No newline at end of file diff --git a/web/out/404/index.html b/web/out/404/index.html deleted file mode 100644 index 4f1d278b7..000000000 --- a/web/out/404/index.html +++ /dev/null @@ -1 +0,0 @@ -404: This page could not be found.Libra Code

404

This page could not be found.

\ No newline at end of file diff --git a/web/out/__next.__PAGE__.txt b/web/out/__next.__PAGE__.txt deleted file mode 100644 index a4c87f643..000000000 --- a/web/out/__next.__PAGE__.txt +++ /dev/null @@ -1,9 +0,0 @@ -1:"$Sreact.fragment" -2:I[72699,["/_next/static/chunks/0-d6j10u4ad6s.js"],"ClientPageRoot"] -3:I[52683,["/_next/static/chunks/0-d6j10u4ad6s.js","/_next/static/chunks/012s93a.x1q81.js"],"default"] -6:I[40097,["/_next/static/chunks/0-d6j10u4ad6s.js"],"OutletBoundary"] -7:"$Sreact.suspense" -0:{"rsc":["$","$1","c",{"children":[["$","$L2",null,{"Component":"$3","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@4","$@5"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/012s93a.x1q81.js","async":true}]],["$","$L6",null,{"children":["$","$7",null,{"name":"Next.MetadataOutlet","children":"$@8"}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"libra-web-0.22.5"} -4:{} -5:"$0:rsc:props:children:0:props:serverProvidedParams:params" -8:null diff --git a/web/out/__next._full.txt b/web/out/__next._full.txt deleted file mode 100644 index 19f466fdb..000000000 --- a/web/out/__next._full.txt +++ /dev/null @@ -1,17 +0,0 @@ -1:"$Sreact.fragment" -2:I[71579,["/_next/static/chunks/0-d6j10u4ad6s.js"],"default"] -3:I[3522,["/_next/static/chunks/0-d6j10u4ad6s.js"],"default"] -4:I[72699,["/_next/static/chunks/0-d6j10u4ad6s.js"],"ClientPageRoot"] -5:I[52683,["/_next/static/chunks/0-d6j10u4ad6s.js","/_next/static/chunks/012s93a.x1q81.js"],"default"] -8:I[40097,["/_next/static/chunks/0-d6j10u4ad6s.js"],"OutletBoundary"] -9:"$Sreact.suspense" -b:I[40097,["/_next/static/chunks/0-d6j10u4ad6s.js"],"ViewportBoundary"] -d:I[40097,["/_next/static/chunks/0-d6j10u4ad6s.js"],"MetadataBoundary"] -f:I[69716,["/_next/static/chunks/0-d6j10u4ad6s.js"],"default",1] -:HL["/_next/static/chunks/114qnh8dmpxu5.css","style"] -0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/114qnh8dmpxu5.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/0-d6j10u4ad6s.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]]}],{"children":[["$","$1","c",{"children":[["$","$L4",null,{"Component":"$5","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@6","$@7"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/012s93a.x1q81.js","async":true,"nonce":"$undefined"}]],["$","$L8",null,{"children":["$","$9",null,{"name":"Next.MetadataOutlet","children":"$@a"}]}]]}],{},null,false,null]},null,false,null],["$","$1","h",{"children":[null,["$","$Lb",null,{"children":"$Lc"}],["$","div",null,{"hidden":true,"children":["$","$Ld",null,{"children":["$","$9",null,{"name":"Next.Metadata","children":"$Le"}]}]}],null]}],false]],"m":"$undefined","G":["$f",[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/114qnh8dmpxu5.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"libra-web-0.22.5"} -6:{} -7:"$0:f:0:1:1:children:0:props:children:0:props:serverProvidedParams:params" -c:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -a:null -e:[["$","title","0",{"children":"Libra Code"}],["$","meta","1",{"name":"description","content":"Local Libra Code session"}]] diff --git a/web/out/__next._head.txt b/web/out/__next._head.txt deleted file mode 100644 index 89100469f..000000000 --- a/web/out/__next._head.txt +++ /dev/null @@ -1,5 +0,0 @@ -1:"$Sreact.fragment" -2:I[40097,["/_next/static/chunks/0-d6j10u4ad6s.js"],"ViewportBoundary"] -3:I[40097,["/_next/static/chunks/0-d6j10u4ad6s.js"],"MetadataBoundary"] -4:"$Sreact.suspense" -0:{"rsc":["$","$1","h",{"children":[null,["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"Libra Code"}],["$","meta","1",{"name":"description","content":"Local Libra Code session"}]]}]}]}],null]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"libra-web-0.22.5"} diff --git a/web/out/__next._index.txt b/web/out/__next._index.txt deleted file mode 100644 index 2fb4d21e7..000000000 --- a/web/out/__next._index.txt +++ /dev/null @@ -1,5 +0,0 @@ -1:"$Sreact.fragment" -2:I[71579,["/_next/static/chunks/0-d6j10u4ad6s.js"],"default"] -3:I[3522,["/_next/static/chunks/0-d6j10u4ad6s.js"],"default"] -:HL["/_next/static/chunks/114qnh8dmpxu5.css","style"] -0:{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/114qnh8dmpxu5.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/0-d6j10u4ad6s.js","async":true}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}]}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"libra-web-0.22.5"} diff --git a/web/out/__next._tree.txt b/web/out/__next._tree.txt deleted file mode 100644 index b33af24bd..000000000 --- a/web/out/__next._tree.txt +++ /dev/null @@ -1,2 +0,0 @@ -:HL["/_next/static/chunks/114qnh8dmpxu5.css","style"] -0:{"tree":{"name":"","param":null,"prefetchHints":16,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":0,"slots":null}}},"staleTime":300,"buildId":"libra-web-0.22.5"} diff --git a/web/out/_next/static/chunks/0-d6j10u4ad6s.js b/web/out/_next/static/chunks/0-d6j10u4ad6s.js deleted file mode 100644 index dd3b81265..000000000 --- a/web/out/_next/static/chunks/0-d6j10u4ad6s.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,22739,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},36560,(e,t,r)=>{"use strict";function n(e,t={}){if(t.onlyHashChange)return void e();let r=document.documentElement;if("smooth"!==r.dataset.scrollBehavior)return void e();let a=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=a}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"disableSmoothScrollDuringRouteTransition",{enumerable:!0,get:function(){return n}}),e.r(22739)},79145,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"HTTPAccessFallbackBoundary",{enumerable:!0,get:function(){return u}});let n=e.r(44066),a=e.r(64835),o=n._(e.r(12713)),i=e.r(49315),s=e.r(71339);e.r(22739);let l=e.r(14974);class c extends o.default.Component{constructor(e){super(e),this.state={triggeredStatus:void 0,previousPathname:e.pathname}}componentDidCatch(){}static getDerivedStateFromError(e){if((0,s.isHTTPAccessFallbackError)(e))return{triggeredStatus:(0,s.getAccessFallbackHTTPStatus)(e)};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.triggeredStatus?{triggeredStatus:void 0,previousPathname:e.pathname}:{triggeredStatus:t.triggeredStatus,previousPathname:e.pathname}}render(){let{notFound:e,forbidden:t,unauthorized:r,children:n}=this.props,{triggeredStatus:o}=this.state,i={[s.HTTPAccessErrorStatus.NOT_FOUND]:e,[s.HTTPAccessErrorStatus.FORBIDDEN]:t,[s.HTTPAccessErrorStatus.UNAUTHORIZED]:r};if(o){let l=o===s.HTTPAccessErrorStatus.NOT_FOUND&&e,c=o===s.HTTPAccessErrorStatus.FORBIDDEN&&t,u=o===s.HTTPAccessErrorStatus.UNAUTHORIZED&&r;return l||c||u?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("meta",{name:"robots",content:"noindex"}),!1,i[o]]}):n}return n}}function u({notFound:e,forbidden:t,unauthorized:r,children:n}){let s=(0,i.useUntrackedPathname)(),d=(0,o.useContext)(l.MissingSlotContext);return e||t||r?(0,a.jsx)(c,{pathname:s,notFound:e,forbidden:t,unauthorized:r,missingSlots:d,children:n}):(0,a.jsx)(a.Fragment,{children:n})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},38894,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useRouterBFCache",{enumerable:!0,get:function(){return a}});let n=e.r(12713);function a(e,t,r){let[a,o]=(0,n.useState)(()=>({tree:e,cacheNode:t,stateKey:r,next:null}));if(a.tree===e)return a;let i={tree:e,cacheNode:t,stateKey:r,next:null},s=1,l=a,c=i;for(;null!==l&&s<1;){if(l.stateKey===r){c.next=l.next;break}{s++;let e={tree:l.tree,cacheNode:l.cacheNode,stateKey:l.stateKey,next:null};c.next=e,c=e}l=l.next}return o(i),i}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},71579,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={LoadingBoundaryProvider:function(){return j},default:function(){return A}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(81258),i=e.r(44066),s=e.r(64835),l=i._(e.r(12713)),c=o._(e.r(34056)),u=e.r(14974),d=e.r(25562),f=e.r(60331),p=e.r(36560),m=e.r(79015),h=e.r(79145),g=e.r(24818),y=e.r(38894);e.r(34739);let b=e.r(58812),P=e.r(8344),_=e.r(59659),v=c.default.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,E=["bottom","height","left","right","top","width","x","y"];function O(e,t){let r=e.getClientRects();if(0===r.length)return!1;let n=1/0;for(let e=0;e=0&&n<=t}class R extends l.default.Component{componentDidMount(){this.handlePotentialScroll()}componentDidUpdate(){this.handlePotentialScroll()}render(){return this.props.children}constructor(...e){super(...e),this.handlePotentialScroll=()=>{let{focusAndScrollRef:e,cacheNode:t}=this.props,r=e.forceScroll?e.scrollRef:t.scrollRef;if(null===r||!r.current)return;let n=null,a=e.hashFragment;if(a&&(n="top"===a?document.body:document.getElementById(a)??document.getElementsByName(a)[0]),n||(n="u"0===t[e])}(n);){if(null===n.nextElementSibling)return;n=n.nextElementSibling}r.current=!1,(0,p.disableSmoothScrollDuringRouteTransition)(()=>{if(a)return void n.scrollIntoView();let e=document.documentElement,t=e.clientHeight;!O(n,t)&&(e.scrollTop=0,O(n,t)||n.scrollIntoView())},{dontForceLayout:!0,onlyHashChange:e.onlyHashChange}),e.onlyHashChange=!1,e.hashFragment=null,n.focus()}}}}function w({children:e,cacheNode:t}){let r=(0,l.useContext)(u.GlobalLayoutRouterContext);if(!r)throw Object.defineProperty(Error("invariant global layout router not mounted"),"__NEXT_ERROR_CODE",{value:"E473",enumerable:!1,configurable:!0});return(0,s.jsx)(R,{focusAndScrollRef:r.focusAndScrollRef,cacheNode:t,children:e})}function S({tree:e,segmentPath:t,debugNameContext:r,cacheNode:n,params:a,url:o,isActive:i}){let c,f=(0,l.useContext)(u.GlobalLayoutRouterContext);if((0,l.useContext)(b.NavigationPromisesContext),!f)throw Object.defineProperty(Error("invariant global layout router not mounted"),"__NEXT_ERROR_CODE",{value:"E473",enumerable:!1,configurable:!0});let p=null!==n?n:(0,l.use)(d.unresolvedThenable),m=null!==p.prefetchRsc?p.prefetchRsc:p.rsc,h=(0,l.useDeferredValue)(p.rsc,m);if((0,_.isDeferredRsc)(h)){let e=(0,l.use)(h);null===e&&(0,l.use)(d.unresolvedThenable),c=e}else null===h&&(0,l.use)(d.unresolvedThenable),c=h;let g=c;return(0,s.jsx)(u.LayoutRouterContext.Provider,{value:{parentTree:e,parentCacheNode:p,parentSegmentPath:t,parentParams:a,parentLoadingData:null,debugNameContext:r,url:o,isActive:i},children:g})}function j({loading:e,children:t}){let r=(0,l.use)(u.LayoutRouterContext);return null===r?t:(0,s.jsx)(u.LayoutRouterContext.Provider,{value:{parentTree:r.parentTree,parentCacheNode:r.parentCacheNode,parentSegmentPath:r.parentSegmentPath,parentParams:r.parentParams,parentLoadingData:e,debugNameContext:r.debugNameContext,url:r.url,isActive:r.isActive},children:t})}function C({name:e,loading:t,children:r}){if(null!==t){let n=t[0],a=t[1],o=t[2];return(0,s.jsx)(l.Suspense,{name:e,fallback:(0,s.jsxs)(s.Fragment,{children:[a,o,n]}),children:r})}return(0,s.jsx)(s.Fragment,{children:r})}function A({parallelRouterKey:e,error:t,errorStyles:r,errorScripts:n,templateStyles:a,templateScripts:o,template:i,notFound:c,forbidden:p,unauthorized:b,segmentViewBoundaries:_}){let v=(0,l.useContext)(u.LayoutRouterContext);if(!v)throw Object.defineProperty(Error("invariant expected layout router to be mounted"),"__NEXT_ERROR_CODE",{value:"E56",enumerable:!1,configurable:!0});let{parentTree:E,parentCacheNode:O,parentSegmentPath:R,parentParams:j,parentLoadingData:x,url:k,isActive:T,debugNameContext:N}=v,D=E[0],M=null===R?[e]:R.concat([D,e]),I=E[1][e],F=O.slots;(void 0===I||null===F)&&(0,l.use)(d.unresolvedThenable);let $=I[0],L=F[e]??null,U=(0,g.createRouterCacheKey)($,!0),X=(0,y.useRouterBFCache)(I,L,U),V=[];do{let e=X.tree,l=X.cacheNode,d=X.stateKey,g=e[0],y=j;if(Array.isArray(g)){let e=g[0],t=g[1],r=g[2],n=(0,P.getParamValueFromCacheKey)(t,r);null!==n&&(y={...j,[e]:n})}let _=function(e){if("/"===e)return"/";if("string"==typeof e)if("(__SLOT__)"===e)return;else return e+"/";return e[1]+"/"}(g),v=_??N,E=void 0===_?void 0:N,O=(0,s.jsxs)(w,{cacheNode:l,children:[(0,s.jsx)(f.ErrorBoundary,{errorComponent:t,errorStyles:r,errorScripts:n,children:(0,s.jsx)(C,{name:E,loading:x,children:(0,s.jsx)(h.HTTPAccessFallbackBoundary,{notFound:c,forbidden:p,unauthorized:b,children:(0,s.jsxs)(m.RedirectBoundary,{children:[(0,s.jsx)(S,{url:k,tree:e,params:y,cacheNode:l,segmentPath:M,debugNameContext:v,isActive:T&&d===U}),null]})})})}),null]}),R=(0,s.jsxs)(u.TemplateContext.Provider,{value:O,children:[a,o,i]},d);V.push(R),X=X.next}while(null!==X)return V}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},3522,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return s}});let n=e.r(44066),a=e.r(64835),o=n._(e.r(12713)),i=e.r(14974);function s(){let e=(0,o.useContext)(i.TemplateContext);return(0,a.jsx)(a.Fragment,{children:e})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},34076,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderSearchParamsFromClient",{enumerable:!0,get:function(){return a}});let n=new WeakMap;function a(e){let t=n.get(e);if(t)return t;let r=Promise.resolve(e);return n.set(e,r),r}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},93941,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderSearchParamsFromClient",{enumerable:!0,get:function(){return n}});let n=e.r(34076).createRenderSearchParamsFromClient;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},48400,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderParamsFromClient",{enumerable:!0,get:function(){return a}});let n=new WeakMap;function a(e){let t=n.get(e);if(t)return t;let r=Promise.resolve(e);return n.set(e,r),r}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},63685,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderParamsFromClient",{enumerable:!0,get:function(){return n}});let n=e.r(48400).createRenderParamsFromClient;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},15189,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={accumulateRootVaryParam:function(){return y},accumulateVaryParam:function(){return g},createResponseVaryParamsAccumulator:function(){return c},createVaryParamsAccumulator:function(){return u},createVaryingParams:function(){return b},createVaryingSearchParams:function(){return P},emptyVaryParamsAccumulator:function(){return l},finishAccumulatingVaryParams:function(){return _},getMetadataVaryParamsAccumulator:function(){return d},getMetadataVaryParamsThenable:function(){return p},getRootParamsVaryParamsAccumulator:function(){return h},getVaryParamsThenable:function(){return f},getViewportVaryParamsAccumulator:function(){return m}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(27226);function i(){let e={varyParams:new Set,status:"pending",value:new Set,then(t){t&&("pending"===e.status?e.resolvers.push(t):t(e.value))},resolvers:[]};return e}let s=new Set,l={varyParams:s,status:"fulfilled",value:s,then(e){e&&e(s)},resolvers:[]};function c(){let e=i();return{head:e,rootParams:i(),segments:new Set}}function u(){let e=o.workUnitAsyncStorage.getStore();if(e)switch(e.type){case"prerender":case"prerender-runtime":{let t=e.varyParamsAccumulator;if(null!==t){let e=i();return t.segments.add(e),e}}}return null}function d(){let e=o.workUnitAsyncStorage.getStore();if(e)switch(e.type){case"prerender":case"prerender-runtime":{let t=e.varyParamsAccumulator;if(null!==t)return t.head}}return null}function f(e){return e}function p(){let e=d();return null!==e?e:null}let m=d;function h(){let e=o.workUnitAsyncStorage.getStore();if(e)switch(e.type){case"prerender":case"prerender-runtime":{let t=e.varyParamsAccumulator;if(null!==t)return t.rootParams}}return null}function g(e,t){e.varyParams.add(t)}function y(e){let t=h();null!==t&&g(t,e)}function b(e,t,r){if(null!==r)return new Proxy(t,{get:(t,n,a)=>("string"==typeof n&&(n===r||Object.prototype.hasOwnProperty.call(t,n))&&g(e,n),Reflect.get(t,n,a)),has:(t,n)=>(n===r&&g(e,r),Reflect.has(t,n)),ownKeys:t=>(g(e,r),Reflect.ownKeys(t))});let n={};for(let r in t)Object.defineProperty(n,r,{get:()=>(g(e,r),t[r]),enumerable:!0});return n}function P(e,t){let r={};for(let n in t)Object.defineProperty(r,n,{get:()=>(g(e,"?"),t[n]),enumerable:!0});return r}async function _(e){let t=e.rootParams.varyParams;for(let r of(v(e.head,t),e.segments))v(r,t);await Promise.resolve(),await Promise.resolve(),await Promise.resolve()}function v(e,t){if("pending"!==e.status)return;let r=new Set(e.varyParams);for(let e of t)r.add(e);for(let t of(e.value=r,e.status="fulfilled",e.resolvers))t(r);e.resolvers=[]}},54644,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ReflectAdapter",{enumerable:!0,get:function(){return n}});class n{static get(e,t,r){let n=Reflect.get(e,t,r);return"function"==typeof n?n.bind(e):n}static set(e,t,r,n){return Reflect.set(e,t,r,n)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}},62512,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createDedupedByCallsiteServerErrorLoggerDev",{enumerable:!0,get:function(){return l}});let n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=a(void 0);if(t&&t.has(e))return t.get(e);var r={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=n?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}(e.r(12713));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}let o={current:null},i="function"==typeof n.cache?n.cache:e=>e,s=console.warn;function l(e){return function(...t){s(e(...t))}}i(e=>{try{s(o.current)}finally{o.current=null}})},17204,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={describeHasCheckingStringProperty:function(){return s},describeStringPropertyAccess:function(){return i},wellKnownProperties:function(){return l}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=/^[A-Za-z_$][A-Za-z0-9_$]*$/;function i(e,t){return o.test(t)?`\`${e}.${t}\``:`\`${e}[${JSON.stringify(t)}]\``}function s(e,t){let r=JSON.stringify(t);return`\`Reflect.has(${e}, ${r})\`, \`${r} in ${e}\`, or similar`}let l=new Set(["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toString","valueOf","toLocaleString","then","catch","finally","status","displayName","_debugInfo","toJSON","$$typeof","__esModule","@@iterator"])},23112,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"afterTaskAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,e.r(95626).createAsyncLocalStorage)()},29947,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"afterTaskAsyncStorage",{enumerable:!0,get:function(){return n.afterTaskAsyncStorageInstance}});let n=e.r(23112)},54589,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={isRequestAPICallableInsideAfter:function(){return c},throwForSearchParamsAccessInUseCache:function(){return l},throwWithStaticGenerationBailoutErrorWithDynamicError:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(73811),i=e.r(29947);function s(e,t){throw Object.defineProperty(new o.StaticGenBailoutError(`Route ${e} with \`dynamic = "error"\` couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E543",enumerable:!1,configurable:!0})}function l(e,t){let r=Object.defineProperty(Error(`Route ${e.route} used \`searchParams\` inside "use cache". Accessing dynamic request data inside a cache scope is not supported. If you need some search params inside a cached function await \`searchParams\` outside of the cached function and pass only the required search params as arguments to the cached function. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E842",enumerable:!1,configurable:!0});throw Error.captureStackTrace(r,t),e.invalidDynamicUsageError??=r,r}function c(){let e=i.afterTaskAsyncStorage.getStore();return(null==e?void 0:e.rootTaskSpawnPhase)==="action"}},24587,(e,t,r)=>{"use strict";var n=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,s={},l={RequestCookies:()=>h,ResponseCookies:()=>g,parseCookie:()=>d,parseSetCookie:()=>f,stringifyCookie:()=>u};for(var c in l)n(s,c,{get:l[c],enumerable:!0});function u(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),n=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===r.length?n:`${n}; ${r.join("; ")}`}function d(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let e=r.indexOf("=");if(-1===e){t.set(r,"true");continue}let[n,a]=[r.slice(0,e),r.slice(e+1)];try{t.set(n,decodeURIComponent(null!=a?a:"true"))}catch{}}return t}function f(e){if(!e)return;let[[t,r],...n]=d(e),{domain:a,expires:o,httponly:i,maxage:s,path:l,samesite:c,secure:u,partitioned:f,priority:h}=Object.fromEntries(n.map(([e,t])=>[e.toLowerCase().replace(/-/g,""),t]));{var g,y,b={name:t,value:decodeURIComponent(r),domain:a,...o&&{expires:new Date(o)},...i&&{httpOnly:!0},..."string"==typeof s&&{maxAge:Number(s)},path:l,...c&&{sameSite:p.includes(g=(g=c).toLowerCase())?g:void 0},...u&&{secure:!0},...h&&{priority:m.includes(y=(y=h).toLowerCase())?y:void 0},...f&&{partitioned:!0}};let e={};for(let t in b)b[t]&&(e[t]=b[t]);return e}}t.exports=((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of o(t))i.call(e,s)||void 0===s||n(e,s,{get:()=>t[s],enumerable:!(r=a(t,s))||r.enumerable});return e})(n({},"__esModule",{value:!0}),s);var p=["strict","lax","none"],m=["low","medium","high"],h=class{constructor(e){this._parsed=new Map,this._headers=e;const t=e.get("cookie");if(t)for(const[e,r]of d(t))this._parsed.set(e,{name:e,value:r})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===n).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,n=this._parsed;return n.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(n).map(([e,t])=>u(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>u(t)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},g=class{constructor(e){var t,r,n;this._parsed=new Map,this._headers=e;const a=null!=(n=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?n:[];for(const e of Array.isArray(a)?a:function(e){if(!e)return[];var t,r,n,a,o,i=[],s=0;function l(){for(;s=e.length)&&i.push(e.substring(t,e.length))}return i}(a)){const t=f(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed.values());if(!e.length)return r;let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===n)}has(e){return this._parsed.has(e)}set(...e){let[t,r,n]=1===e.length?[e[0].name,e[0].value,e[0]]:e,a=this._parsed;return a.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:r,...n})),function(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=u(r);t.append("set-cookie",e)}}(a,this._headers),this}delete(...e){let[t,r]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0]];return this.set({...r,name:t,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(u).join("; ")}}},64678,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={RequestCookies:function(){return o.RequestCookies},ResponseCookies:function(){return o.ResponseCookies},stringifyCookie:function(){return o.stringifyCookie}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(24587)},83657,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={MutableRequestCookiesAdapter:function(){return m},ReadonlyRequestCookiesError:function(){return c},RequestCookiesAdapter:function(){return u},appendMutableCookies:function(){return p},areCookiesMutableInCurrentPhase:function(){return g},createCookiesWithMutableAccessCheck:function(){return h},getModifiedCookieValues:function(){return f},responseCookiesToRequestCookies:function(){return b}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(64678),i=e.r(54644),s=e.r(29516),l=e.r(94284);class c extends Error{constructor(){super("Cookies can only be modified in a Server Action or Route Handler. Read more: https://nextjs.org/docs/app/api-reference/functions/cookies#options")}static callable(){throw new c}}class u{static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"clear":case"delete":case"set":return c.callable;default:return i.ReflectAdapter.get(e,t,r)}}})}}let d=Symbol.for("next.mutated.cookies");function f(e){let t=e[d];return t&&Array.isArray(t)&&0!==t.length?t:[]}function p(e,t){let r=f(t);if(0===r.length)return!1;let n=new o.ResponseCookies(e),a=n.getAll();for(let e of r)n.set(e);for(let e of a)n.set(e);return!0}class m{static wrap(e,t){let r=new o.ResponseCookies(new Headers);for(let t of e.getAll())r.set(t);let n=[],a=new Set,c=()=>{let e=s.workAsyncStorage.getStore();if(e&&(e.pathWasRevalidated=l.ActionDidRevalidateStaticAndDynamic),n=r.getAll().filter(e=>a.has(e.name)),t){let e=[];for(let t of n){let r=new o.ResponseCookies(new Headers);r.set(t),e.push(r.toString())}t(e)}},u=new Proxy(r,{get(e,t,r){switch(t){case d:return n;case"delete":return function(...t){a.add("string"==typeof t[0]?t[0]:t[0].name);try{return e.delete(...t),u}finally{c()}};case"set":return function(...t){a.add("string"==typeof t[0]?t[0]:t[0].name);try{return e.set(...t),u}finally{c()}};default:return i.ReflectAdapter.get(e,t,r)}}});return u}}function h(e){let t=new Proxy(e.mutableCookies,{get(r,n,a){switch(n){case"delete":return function(...n){return y(e,"cookies().delete"),r.delete(...n),t};case"set":return function(...n){return y(e,"cookies().set"),r.set(...n),t};default:return i.ReflectAdapter.get(r,n,a)}}});return t}function g(e){return"action"===e.phase}function y(e,t){if(!g(e))throw new c}function b(e){let t=new o.RequestCookies(new Headers);for(let r of e.getAll())t.set(r);return t}},95248,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={HeadersAdapter:function(){return s},ReadonlyHeadersError:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(54644);class i extends Error{constructor(){super("Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers")}static callable(){throw new i}}class s extends Headers{constructor(e){super(),this.headers=new Proxy(e,{get(t,r,n){if("symbol"==typeof r)return o.ReflectAdapter.get(t,r,n);let a=r.toLowerCase(),i=Object.keys(e).find(e=>e.toLowerCase()===a);if(void 0!==i)return o.ReflectAdapter.get(t,i,n)},set(t,r,n,a){if("symbol"==typeof r)return o.ReflectAdapter.set(t,r,n,a);let i=r.toLowerCase(),s=Object.keys(e).find(e=>e.toLowerCase()===i);return o.ReflectAdapter.set(t,s??r,n,a)},has(t,r){if("symbol"==typeof r)return o.ReflectAdapter.has(t,r);let n=r.toLowerCase(),a=Object.keys(e).find(e=>e.toLowerCase()===n);return void 0!==a&&o.ReflectAdapter.has(t,a)},deleteProperty(t,r){if("symbol"==typeof r)return o.ReflectAdapter.deleteProperty(t,r);let n=r.toLowerCase(),a=Object.keys(e).find(e=>e.toLowerCase()===n);return void 0===a||o.ReflectAdapter.deleteProperty(t,a)}})}static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"append":case"delete":case"set":return i.callable;default:return o.ReflectAdapter.get(e,t,r)}}})}merge(e){return Array.isArray(e)?e.join(", "):e}static from(e){return e instanceof Headers?e:new s(e)}append(e,t){let r=this.headers[e];"string"==typeof r?this.headers[e]=[r,t]:Array.isArray(r)?r.push(t):this.headers[e]=t}delete(e){delete this.headers[e]}get(e){let t=this.headers[e];return void 0!==t?this.merge(t):null}has(e){return void 0!==this.headers[e]}set(e,t){this.headers[e]=t}forEach(e,t){for(let[r,n]of this.entries())e.call(t,n,r,this)}*entries(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase(),r=this.get(t);yield[t,r]}}*keys(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase();yield t}}*values(){for(let e of Object.keys(this.headers)){let t=this.get(e);yield t}}[Symbol.iterator](){return this.entries()}}},13062,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getParamProperties:function(){return l},getSegmentParam:function(){return i},isCatchAll:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(12284);function i(e){let t=o.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return(t&&(e=e.slice(t.length)),e.startsWith("[[...")&&e.endsWith("]]"))?{paramType:"optional-catchall",paramName:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{paramType:t?`catchall-intercepted-${t}`:"catchall",paramName:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{paramType:t?`dynamic-intercepted-${t}`:"dynamic",paramName:e.slice(1,-1)}:null}function s(e){return"catchall"===e||"catchall-intercepted-(..)(..)"===e||"catchall-intercepted-(.)"===e||"catchall-intercepted-(..)"===e||"catchall-intercepted-(...)"===e||"optional-catchall"===e}function l(e){let t=!1,r=!1;switch(e){case"catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":t=!0;break;case"optional-catchall":t=!0,r=!0}return{repeat:t,optional:r}}},47723,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return _},NormalizeError:function(){return b},PageNotFoundError:function(){return P},SP:function(){return h},ST:function(){return g},WEB_VITALS:function(){return o},execOnce:function(){return i},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return l},isResSent:function(){return f},loadGetInitialProps:function(){return m},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return E}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=["CLS","FCP","FID","INP","LCP","TTFB"];function i(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>s.test(e);function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=c();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function m(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await m(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let h="u">typeof performance,g=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class y extends Error{}class b extends Error{}class P extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class _ extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function E(e){return JSON.stringify({message:e.message,stack:e.stack})}},76045,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return l},searchParamsToUrlQuery:function(){return o},urlQueryToSearchParams:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});function o(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function i(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function s(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,i(e));else t.set(r,i(n));return t}function l(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},33583,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"parseRelativeUrl",{enumerable:!0,get:function(){return o}});let n=e.r(47723),a=e.r(76045);function o(e,t,r=!0){let i=new URL("u"{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={InstantValidationError:function(){return s},isInstantValidationError:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o="INSTANT_VALIDATION_ERROR";function i(e){return!!(e&&"object"==typeof e&&e instanceof Error&&e.digest===o)}class s extends Error{constructor(...e){super(...e),this.digest=o}}},80870,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assertRootParamInSamples:function(){return S},createCookiesFromSample:function(){return y},createDraftModeForValidation:function(){return _},createExhaustiveParamsProxy:function(){return v},createExhaustiveSearchParamsProxy:function(){return E},createExhaustiveURLSearchParamsProxy:function(){return O},createHeadersFromSample:function(){return P},createRelativeURLFromSamples:function(){return w},createValidationSampleTracking:function(){return m},trackMissingSampleError:function(){return h},trackMissingSampleErrorAndThrow:function(){return g}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(64678),i=e.r(83657),s=e.r(95248),l=e.r(13062),c=e.r(33583),u=e.r(70107),d=e.r(23031),f=e.r(27226),p=e.r(17204);function m(){return{missingSampleErrors:[]}}function h(e){(function(){let e=null,t=f.workUnitAsyncStorage.getStore();if(t)switch(t.type){case"request":case"validation-client":e=t.validationSampleTracking??null}if(!e)throw Object.defineProperty(new u.InvariantError("Expected to have a workUnitStore that provides validationSampleTracking"),"__NEXT_ERROR_CODE",{value:"E1110",enumerable:!1,configurable:!0});return e})().missingSampleErrors.push(e)}function g(e){throw h(e),e}function y(e,t){let r=new Set,n=new o.RequestCookies(new Headers);if(e)for(let t of e)r.add(t.name),null!==t.value&&n.set(t.name,t.value);return new Proxy(i.RequestCookiesAdapter.seal(n),{get(e,n,a){if("has"===n){let o=Reflect.get(e,n,a);return function(n){return r.has(n)||g(b(t,n)),o.call(e,n)}}if("get"===n){let o=Reflect.get(e,n,a);return function(n){let a;if("string"==typeof n)a=n;else{if(!n||"object"!=typeof n||"string"!=typeof n.name)return o.call(e,n);a=n.name}return r.has(a)||g(b(t,a)),o.call(e,a)}}return Reflect.get(e,n,a)}})}function b(e,t){return Object.defineProperty(new d.InstantValidationError(`Route "${e}" accessed cookie "${t}" which is not defined in the \`samples\` of \`unstable_instant\`. Add it to the sample's \`cookies\` array, or \`{ name: "${t}", value: null }\` if it should be absent.`),"__NEXT_ERROR_CODE",{value:"E1115",enumerable:!1,configurable:!0})}function P(e,t,r){let n=e?[...e]:[];if(n.find(([e])=>"cookie"===e.toLowerCase()))throw Object.defineProperty(new d.InstantValidationError('Invalid sample: Defining cookies via a "cookie" header is not supported. Use `cookies: [{ name: ..., value: ... }]` instead.'),"__NEXT_ERROR_CODE",{value:"E1111",enumerable:!1,configurable:!0});if(t){let e=t.toString();n.push(["cookie",""!==e?e:null])}let a=new Set,o={};for(let[e,t]of n)a.add(e.toLowerCase()),null!==t&&(o[e.toLowerCase()]=t);return new Proxy(s.HeadersAdapter.seal(s.HeadersAdapter.from(o)),{get(e,t,n){if("get"===t||"has"===t){let o=Reflect.get(e,t,n);return function(t){let n=t.toLowerCase();return a.has(n)||g(Object.defineProperty(new d.InstantValidationError(`Route "${r}" accessed header "${n}" which is not defined in the \`samples\` of \`unstable_instant\`. Add it to the sample's \`headers\` array, or \`["${n}", null]\` if it should be absent.`),"__NEXT_ERROR_CODE",{value:"E1116",enumerable:!1,configurable:!0})),o.call(e,n)}}return Reflect.get(e,t,n)}})}function _(){return{get isEnabled(){return!1},enable(){throw Object.defineProperty(Error("Draft mode cannot be enabled during build-time instant validation."),"__NEXT_ERROR_CODE",{value:"E1092",enumerable:!1,configurable:!0})},disable(){throw Object.defineProperty(Error("Draft mode cannot be disabled during build-time instant validation."),"__NEXT_ERROR_CODE",{value:"E1094",enumerable:!1,configurable:!0})}}}function v(e,t,r){return new Proxy(e,{get:(n,a,o)=>("string"==typeof a&&!p.wellKnownProperties.has(a)&&a in e&&!t.has(a)&&g(Object.defineProperty(new d.InstantValidationError(`Route "${r}" accessed param "${a}" which is not defined in the \`samples\` of \`unstable_instant\`. Add it to the sample's \`params\` object.`),"__NEXT_ERROR_CODE",{value:"E1095",enumerable:!1,configurable:!0})),Reflect.get(n,a,o))})}function E(e,t,r){return new Proxy(e,{get:(e,n,a)=>("string"!=typeof n||p.wellKnownProperties.has(n)||t.has(n)||g(R(r,n)),Reflect.get(e,n,a)),has:(e,n)=>("string"!=typeof n||p.wellKnownProperties.has(n)||t.has(n)||g(R(r,n)),Reflect.has(e,n))})}function O(e,t,r){return new Proxy(e,{get(e,n,a){if("get"===n||"getAll"===n||"has"===n){let o=Reflect.get(e,n,a);return n=>("string"!=typeof n||t.has(n)||g(R(r,n)),o.call(e,n))}let o=Reflect.get(e,n,a);return"function"!=typeof o||Object.hasOwn(e,n)?o:o.bind(e)}})}function R(e,t){return Object.defineProperty(new d.InstantValidationError(`Route "${e}" accessed searchParam "${t}" which is not defined in the \`samples\` of \`unstable_instant\`. Add it to the sample's \`searchParams\` object, or \`{ "${t}": null }\` if it should be absent.`),"__NEXT_ERROR_CODE",{value:"E1098",enumerable:!1,configurable:!0})}function w(e,t,r){let n=function(e,t){let r=[];for(let n of e.split("/")){let e=(0,l.getSegmentParam)(n);if(e)switch(e.paramType){case"catchall":case"optional-catchall":{let a=t[e.paramName];if(void 0===a)a=[n];else if(!Array.isArray(a))throw Object.defineProperty(new d.InstantValidationError(`Expected sample param value for segment '${n}' to be an array of strings, got ${typeof a}`),"__NEXT_ERROR_CODE",{value:"E1104",enumerable:!1,configurable:!0});r.push(...a.map(e=>encodeURIComponent(e)));break}case"dynamic":{let a=t[e.paramName];if(void 0===a)a=n;else if("string"!=typeof a)throw Object.defineProperty(new d.InstantValidationError(`Expected sample param value for segment '${n}' to be a string, got ${typeof a}`),"__NEXT_ERROR_CODE",{value:"E1108",enumerable:!1,configurable:!0});r.push(encodeURIComponent(a));break}case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":case"dynamic-intercepted-(..)(..)":case"dynamic-intercepted-(.)":case"dynamic-intercepted-(..)":case"dynamic-intercepted-(...)":throw Object.defineProperty(new u.InvariantError("Not implemented: Validation of interception routes"),"__NEXT_ERROR_CODE",{value:"E1106",enumerable:!1,configurable:!0});default:e.paramType}else r.push(n)}return r.join("/")}(e,t??{}),a="";if(r){let e=(function(e){let t=new URLSearchParams;if(e){for(let[r,n]of Object.entries(e))if(null!=n)if(Array.isArray(n))for(let e of n)t.append(r,e);else t.set(r,n)}return t})(r).toString();e&&(a="?"+e)}return(0,c.parseRelativeUrl)(n+a,void 0,!0)}function S(e,t,r){if(t&&r in t);else{let t=e.route;g(Object.defineProperty(new d.InstantValidationError(`Route "${t}" accessed root param "${r}" which is not defined in the \`samples\` of \`unstable_instant\`. Add it to the sample's \`params\` object.`),"__NEXT_ERROR_CODE",{value:"E1114",enumerable:!1,configurable:!0}))}}},33019,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={createPrerenderSearchParamsForClientPage:function(){return P},createSearchParamsFromClient:function(){return g},createServerSearchParamsForMetadata:function(){return y},createServerSearchParamsForServerPage:function(){return b},makeErroringSearchParamsForUseCache:function(){return R}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(29516),i=e.r(15189),s=e.r(54644),l=e.r(24707),c=e.r(27226),u=e.r(70107),d=e.r(4020),f=e.r(62512),p=e.r(17204),m=e.r(54589),h=e.r(74087);function g(t){let r=o.workAsyncStorage.getStore();if(!r)throw Object.defineProperty(new u.InvariantError("Expected workStore to be initialized"),"__NEXT_ERROR_CODE",{value:"E1068",enumerable:!1,configurable:!0});let n=c.workUnitAsyncStorage.getStore();if(n)switch(n.type){case"prerender":case"prerender-client":case"prerender-ppr":case"prerender-legacy":return _(r,n);case"validation-client":return function(t,r,n){var a;let{createExhaustiveSearchParamsProxy:o}=e.r(80870);return Promise.resolve(t=o(t,new Set(Object.keys((null==(a=n.validationSamples)?void 0:a.searchParams)??{})),r.route))}(t,r,n);case"prerender-runtime":throw Object.defineProperty(new u.InvariantError("createSearchParamsFromClient should not be called in a runtime prerender."),"__NEXT_ERROR_CODE",{value:"E769",enumerable:!1,configurable:!0});case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new u.InvariantError("createSearchParamsFromClient should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E739",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new u.InvariantError("createSearchParamsFromClient should not be called inside generateStaticParams."),"__NEXT_ERROR_CODE",{value:"E1133",enumerable:!1,configurable:!0});case"request":return v(t,r,n,!1)}(0,c.throwInvariantForMissingStore)()}function y(e,t){return b(e,(0,i.getMetadataVaryParamsAccumulator)(),t)}function b(e,t,r){let n=o.workAsyncStorage.getStore();if(!n)throw Object.defineProperty(new u.InvariantError("Expected workStore to be initialized"),"__NEXT_ERROR_CODE",{value:"E1068",enumerable:!1,configurable:!0});let a=c.workUnitAsyncStorage.getStore();if(a)switch(a.type){case"prerender":case"prerender-client":case"prerender-ppr":case"prerender-legacy":return _(n,a);case"validation-client":throw Object.defineProperty(new u.InvariantError("createServerSearchParamsForServerPage should not be called in a client validation."),"__NEXT_ERROR_CODE",{value:"E1066",enumerable:!1,configurable:!0});case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new u.InvariantError("createServerSearchParamsForServerPage should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E747",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new u.InvariantError("createServerSearchParamsForServerPage should not be called inside generateStaticParams."),"__NEXT_ERROR_CODE",{value:"E1128",enumerable:!1,configurable:!0});case"prerender-runtime":return function(e,t,r,n){let a=w(null!==r?(0,i.createVaryingSearchParams)(r,e):e),{stagedRendering:o}=t;if(!o)return a;let s=n?h.RenderStage.EarlyRuntime:h.RenderStage.Runtime;return o.waitForStage(s).then(()=>a)}(e,a,t,r);case"request":return v(e,n,a,r)}(0,c.throwInvariantForMissingStore)()}function P(){let e=o.workAsyncStorage.getStore();if(!e)throw Object.defineProperty(new u.InvariantError("Expected workStore to be initialized"),"__NEXT_ERROR_CODE",{value:"E1068",enumerable:!1,configurable:!0});if(e.forceStatic)return Promise.resolve({});let t=c.workUnitAsyncStorage.getStore();if(t)switch(t.type){case"prerender":case"prerender-client":return(0,d.makeHangingPromise)(t.renderSignal,e.route,"`searchParams`");case"validation-client":throw Object.defineProperty(new u.InvariantError("createPrerenderSearchParamsForClientPage should not be called in a client validation."),"__NEXT_ERROR_CODE",{value:"E1061",enumerable:!1,configurable:!0});case"prerender-runtime":throw Object.defineProperty(new u.InvariantError("createPrerenderSearchParamsForClientPage should not be called in a runtime prerender."),"__NEXT_ERROR_CODE",{value:"E768",enumerable:!1,configurable:!0});case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new u.InvariantError("createPrerenderSearchParamsForClientPage should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E746",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new u.InvariantError("createPrerenderSearchParamsForClientPage should not be called inside generateStaticParams."),"__NEXT_ERROR_CODE",{value:"E1124",enumerable:!1,configurable:!0});case"prerender-ppr":case"prerender-legacy":case"request":return Promise.resolve({})}(0,c.throwInvariantForMissingStore)()}function _(e,t){if(e.forceStatic)return Promise.resolve({});switch(t.type){case"prerender":case"prerender-client":var r=e,n=t;let a=E.get(n);if(a)return a;let o=(0,d.makeHangingPromise)(n.renderSignal,r.route,"`searchParams`"),i=new Proxy(o,{get(e,t,r){if(Object.hasOwn(o,t))return s.ReflectAdapter.get(e,t,r);switch(t){case"then":return(0,l.annotateDynamicAccess)("`await searchParams`, `searchParams.then`, or similar",n),s.ReflectAdapter.get(e,t,r);case"status":return(0,l.annotateDynamicAccess)("`use(searchParams)`, `searchParams.status`, or similar",n),s.ReflectAdapter.get(e,t,r);default:return s.ReflectAdapter.get(e,t,r)}}});return E.set(n,i),i;case"prerender-ppr":case"prerender-legacy":var c=e,u=t;let f=E.get(c);if(f)return f;let p=Promise.resolve({}),h=new Proxy(p,{get(e,t,r){if(Object.hasOwn(p,t))return s.ReflectAdapter.get(e,t,r);if("string"==typeof t&&"then"===t){let e="`await searchParams`, `searchParams.then`, or similar";c.dynamicShouldError?(0,m.throwWithStaticGenerationBailoutErrorWithDynamicError)(c.route,e):"prerender-ppr"===u.type?(0,l.postponeWithTracking)(c.route,e,u.dynamicTracking):(0,l.throwToInterruptStaticGeneration)(e,c,u)}return s.ReflectAdapter.get(e,t,r)}});return E.set(c,h),h;default:return t}}function v(t,r,n,a){if(r.forceStatic)return Promise.resolve({});if(!n.asyncApiPromises)return w(t);if(n.validationSamples){let{createExhaustiveSearchParamsProxy:a}=e.r(80870),o=new Set(Object.keys(n.validationSamples.searchParams??{}));t=a(t,o,r.route)}return(a?n.asyncApiPromises.earlySharedSearchParamsParent:n.asyncApiPromises.sharedSearchParamsParent).then(()=>t)}let E=new WeakMap,O=new WeakMap;function R(){let e=o.workAsyncStorage.getStore();if(!e)throw Object.defineProperty(new u.InvariantError("Expected workStore to be initialized"),"__NEXT_ERROR_CODE",{value:"E1068",enumerable:!1,configurable:!0});let t=O.get(e);if(t)return t;let r=Promise.resolve({}),n=new Proxy(r,{get:function t(n,a,o){return Object.hasOwn(r,a)||"string"!=typeof a||"then"!==a&&p.wellKnownProperties.has(a)||(0,m.throwForSearchParamsAccessInUseCache)(e,t),s.ReflectAdapter.get(n,a,o)}});return O.set(e,n),n}function w(e){let t=E.get(e);if(t)return t;let r=Promise.resolve(e);return E.set(e,r),r}(0,f.createDedupedByCallsiteServerErrorLoggerDev)(function(e,t){let r=e?`Route "${e}" `:"This route ";return Object.defineProperty(Error(`${r}used ${t}. \`searchParams\` is a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E848",enumerable:!1,configurable:!0})})},45660,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"dynamicAccessAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,e.r(95626).createAsyncLocalStorage)()},68499,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"dynamicAccessAsyncStorage",{enumerable:!0,get:function(){return n.dynamicAccessAsyncStorageInstance}});let n=e.r(45660)},83971,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={createParamsFromClient:function(){return g},createPrerenderParamsForClientSegment:function(){return _},createServerParamsForMetadata:function(){return y},createServerParamsForRoute:function(){return b},createServerParamsForServerSegment:function(){return P}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(29516),i=e.r(15189),s=e.r(54644),l=e.r(24707),c=e.r(27226),u=e.r(70107),d=e.r(17204),f=e.r(4020),p=e.r(62512),m=e.r(68499),h=e.r(74087);function g(e){let t=o.workAsyncStorage.getStore();if(!t)throw Object.defineProperty(new u.InvariantError("Expected workStore to be initialized"),"__NEXT_ERROR_CODE",{value:"E1068",enumerable:!1,configurable:!0});let r=c.workUnitAsyncStorage.getStore();if(r)switch(r.type){case"prerender":case"prerender-client":case"prerender-ppr":case"prerender-legacy":return v(e,null,t,r,null);case"validation-client":return O(e,t,r.validationSamples);case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new u.InvariantError("createParamsFromClient should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E736",enumerable:!1,configurable:!0});case"prerender-runtime":throw Object.defineProperty(new u.InvariantError("createParamsFromClient should not be called in a runtime prerender."),"__NEXT_ERROR_CODE",{value:"E770",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new u.InvariantError("createParamsFromClient should not be called inside generateStaticParams."),"__NEXT_ERROR_CODE",{value:"E1122",enumerable:!1,configurable:!0});case"request":if(r.validationSamples)return O(e,t,r.validationSamples);return S(e)}(0,c.throwInvariantForMissingStore)()}function y(e,t,r){return P(e,t,(0,i.getMetadataVaryParamsAccumulator)(),r)}function b(e,t=null){let r=o.workAsyncStorage.getStore();if(!r)throw Object.defineProperty(new u.InvariantError("Expected workStore to be initialized"),"__NEXT_ERROR_CODE",{value:"E1068",enumerable:!1,configurable:!0});let n=c.workUnitAsyncStorage.getStore();if(n)switch(n.type){case"prerender":case"prerender-ppr":case"prerender-legacy":return v(e,null,r,n,t);case"prerender-client":case"validation-client":throw Object.defineProperty(new u.InvariantError("createServerParamsForRoute should not be called in client contexts."),"__NEXT_ERROR_CODE",{value:"E1064",enumerable:!1,configurable:!0});case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new u.InvariantError("createServerParamsForRoute should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E738",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new u.InvariantError("createServerParamsForRoute should not be called inside generateStaticParams."),"__NEXT_ERROR_CODE",{value:"E1131",enumerable:!1,configurable:!0});case"prerender-runtime":return E(e,null,n,t,!1);case"request":return S(e)}(0,c.throwInvariantForMissingStore)()}function P(t,r,n,a){let i=o.workAsyncStorage.getStore();if(!i)throw Object.defineProperty(new u.InvariantError("Expected workStore to be initialized"),"__NEXT_ERROR_CODE",{value:"E1068",enumerable:!1,configurable:!0});let s=c.workUnitAsyncStorage.getStore();if(s)switch(s.type){case"prerender":case"prerender-client":case"prerender-ppr":case"prerender-legacy":return v(t,r,i,s,n);case"validation-client":throw Object.defineProperty(new u.InvariantError("createServerParamsForServerSegment should not be called in client contexts."),"__NEXT_ERROR_CODE",{value:"E1101",enumerable:!1,configurable:!0});case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new u.InvariantError("createServerParamsForServerSegment should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E743",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new u.InvariantError("createServerParamsForServerSegment should not be called inside generateStaticParams."),"__NEXT_ERROR_CODE",{value:"E1120",enumerable:!1,configurable:!0});case"prerender-runtime":return E(t,r,s,n,a);case"request":if(s.asyncApiPromises&&s.validationSamples)return function(t,r,n,a,o){let{createExhaustiveParamsProxy:i}=e.r(80870),s=i(t,new Set(Object.keys(n.params??{})),r.route);return(o?a.earlySharedParamsParent:a.sharedParamsParent).then(()=>s)}(t,i,s.validationSamples,s.asyncApiPromises,a);if(s.asyncApiPromises&&function(e,t){if(t){for(let r in e)if(t.has(r))return!0}return!1}(t,s.fallbackParams))return(a?s.asyncApiPromises.earlySharedParamsParent:s.asyncApiPromises.sharedParamsParent).then(()=>t);return S(t)}(0,c.throwInvariantForMissingStore)()}function _(e){let t=o.workAsyncStorage.getStore();if(!t)throw Object.defineProperty(new u.InvariantError("Missing workStore in createPrerenderParamsForClientSegment"),"__NEXT_ERROR_CODE",{value:"E773",enumerable:!1,configurable:!0});let r=c.workUnitAsyncStorage.getStore();if(r)switch(r.type){case"prerender":case"prerender-client":let n=r.fallbackRouteParams;if(n){for(let a in e)if(n.has(a))return(0,f.makeHangingPromise)(r.renderSignal,t.route,"`params`")}break;case"validation-client":throw Object.defineProperty(new u.InvariantError("createPrerenderParamsForClientSegment should not be called in validation contexts."),"__NEXT_ERROR_CODE",{value:"E1099",enumerable:!1,configurable:!0});case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new u.InvariantError("createPrerenderParamsForClientSegment should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E734",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new u.InvariantError("createPrerenderParamsForClientSegment should not be called inside generateStaticParams."),"__NEXT_ERROR_CODE",{value:"E1126",enumerable:!1,configurable:!0})}return Promise.resolve(e)}function v(e,t,r,n,a){let o=null!==a?(0,i.createVaryingParams)(a,e,t):e;switch(n.type){case"prerender":case"prerender-client":{let t=n.fallbackRouteParams;if(t){for(let a in e)if(t.has(a))return function(e,t,r){let n=R.get(e);if(n)return n;let a=new Proxy((0,f.makeHangingPromise)(r.renderSignal,t.route,"`params`"),w);return R.set(e,a),a}(o,r,n)}break}case"prerender-ppr":{let t=n.fallbackRouteParams;if(t){for(let a in e)if(t.has(a))return function(e,t,r,n){let a=R.get(e);if(a)return a;let o={...e},i=Promise.resolve(o);return R.set(e,i),Object.keys(e).forEach(e=>{d.wellKnownProperties.has(e)||t.has(e)&&Object.defineProperty(o,e,{get(){let t=(0,d.describeStringPropertyAccess)("params",e);"prerender-ppr"===n.type?(0,l.postponeWithTracking)(r.route,t,n.dynamicTracking):(0,l.throwToInterruptStaticGeneration)(t,r,n)},enumerable:!0})}),i}(o,t,r,n)}}}return S(o)}function E(e,t,r,n,a){let o=S(null!==n?(0,i.createVaryingParams)(n,e,t):e),{stagedRendering:s}=r;if(!s)return o;let l=a?h.RenderStage.EarlyRuntime:h.RenderStage.Runtime;return s.waitForStage(l).then(()=>o)}function O(t,r,n){let{createExhaustiveParamsProxy:a}=e.r(80870);return Promise.resolve(a(t,new Set(Object.keys((null==n?void 0:n.params)??{})),r.route))}let R=new WeakMap,w={get:function(e,t,r){if("then"===t||"catch"===t||"finally"===t){let n=s.ReflectAdapter.get(e,t,r);return({[t]:(...t)=>{let r=m.dynamicAccessAsyncStorage.getStore();return r&&r.abortController.abort(Object.defineProperty(Error("Accessed fallback `params` during prerendering."),"__NEXT_ERROR_CODE",{value:"E691",enumerable:!1,configurable:!0})),new Proxy(n.apply(e,t),w)}})[t]}return s.ReflectAdapter.get(e,t,r)}};function S(e){let t=R.get(e);if(t)return t;let r=Promise.resolve(e);return R.set(e,r),r}(0,p.createDedupedByCallsiteServerErrorLoggerDev)(function(e,t){let r=e?`Route "${e}" `:"This route ";return Object.defineProperty(Error(`${r}used ${t}. \`params\` is a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E834",enumerable:!1,configurable:!0})})},72699,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ClientPageRoot",{enumerable:!0,get:function(){return l}});let n=e.r(64835),a=e.r(14974),o=e.r(12713),i=e.r(8344),s=e.r(58812);function l({Component:t,serverProvidedParams:r}){let c,u;if(null!==r)c=r.searchParams,u=r.params;else{let e=(0,o.use)(a.LayoutRouterContext);u=null!==e?e.parentParams:{},c=(0,i.urlSearchParamsToParsedUrlQuery)((0,o.use)(s.SearchParamsContext))}if("u"{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ClientSegmentRoot",{enumerable:!0,get:function(){return i}});let n=e.r(64835),a=e.r(14974),o=e.r(12713);function i({Component:t,slots:r,serverProvidedParams:s}){let l;if(null!==s)l=s.params;else{let e=(0,o.use)(a.LayoutRouterContext);l=null!==e?e.parentParams:{}}if("u"{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"IconMark",{enumerable:!0,get:function(){return a}});let n=e.r(64835),a=()=>"u">typeof window?null:(0,n.jsx)("meta",{name:"«nxt-icon»"})}]); \ No newline at end of file diff --git a/web/out/_next/static/chunks/012s93a.x1q81.js b/web/out/_next/static/chunks/012s93a.x1q81.js deleted file mode 100644 index 9f8437d19..000000000 --- a/web/out/_next/static/chunks/012s93a.x1q81.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,52683,e=>{"use strict";let t;var r=e.i(64835),n=e.i(12713);function s(e,t=!1){let r=t?function(){try{return new URLSearchParams(window.location.search).get("bt")??void 0}catch{return}}():void 0;return{"content-type":"application/json",...e?{"X-Code-Controller-Token":e}:{},...r?{"X-Libra-Browser-Bootstrap":r}:{}}}let a=["session_updated","status_changed","controller_changed"];class i{baseUrl;constructor(e=""){this.baseUrl=e}url(e){return`${this.baseUrl}${e}`}async request(e,t){let r=await fetch(this.url(e),{credentials:"same-origin",...t});if(!r.ok){let e,t=r.statusText;try{let n=await r.json();"string"==typeof n.error?.message&&(t=n.error.message),"string"==typeof n.error?.code&&(e=n.error.code)}catch{}throw{status:r.status,message:t,code:e}}return await r.json()}events(e,t){let r=new EventSource(this.url("/api/code/events"),{withCredentials:!0});for(let t of(r.onmessage=t=>e(JSON.parse(t.data)),a))r.addEventListener(t,t=>e(JSON.parse(t.data)));return r.onerror=t,{close:()=>r.close()}}}function o(e=new i){return{snapshot:()=>e.request("/api/code/session"),attach:t=>e.request("/api/code/controller/attach",{method:"POST",headers:s(void 0,!0),body:JSON.stringify({clientId:t,kind:"browser"})}),detach:async(t,r,n=!1)=>{await e.request("/api/code/controller/detach",{method:"POST",headers:s(r),body:JSON.stringify({clientId:t}),keepalive:n})},submit:async(t,r,n)=>{let a=JSON.stringify({text:t,...n?{commandId:n}:{}});if(new TextEncoder().encode(a).byteLength>262144)throw{status:413,code:"PAYLOAD_TOO_LARGE",message:"Message is too large. Reduce it to 256 KiB or less before submitting."};return e.request("/api/code/messages",{method:"POST",headers:s(r),body:a})},respond:(t,r,n)=>e.request(`/api/code/interactions/${encodeURIComponent(t)}`,{method:"POST",headers:s(n),body:JSON.stringify(r)}),cancel:t=>e.request("/api/code/control/cancel",{method:"POST",headers:s(t)}),observe:e.events.bind(e)}}let l=(0,n.createContext)(void 0);function d(e){let t=Date.parse(e);return Number.isNaN(t)?-1/0:t}function c({children:e,client:t,extensions:s=[],reconnectDelayMs:a=1e3,maxReconnectDelayMs:i=3e4}){let u=(0,n.useRef)(void 0),p=t??(u.current??=o()),[h,f]=(0,n.useState)(),[m,g]=(0,n.useState)(),b=(0,n.useRef)(new Map),v=(0,n.useRef)(s),y=(0,n.useRef)(0),x=(0,n.useRef)(0),j=(0,n.useRef)(void 0),w=(0,n.useCallback)((e,t)=>{let r=b.current.get(e)??new Set;return r.add(t),b.current.set(e,r),()=>r.delete(t)},[]),k=(0,n.useCallback)(async()=>{let e=y.current,t=++x.current;try{let r=await p.snapshot(),n=d(r.updatedAt),s=n>(j.current??-1/0);if(t!==x.current)return"raced";if(y.current===e||s)return j.current=n,f(r),g(void 0),"applied";return"superseded"}catch(n){if(t!==x.current)return"raced";let r=void 0!==j.current;if(y.current===e||!r)return g(n instanceof Error?n:Error("Unable to load Code UI session")),"failed";return"raced"}},[p]);(0,n.useEffect)(()=>{let e,t,r=setTimeout(()=>void k(),0),n=!1,s=0,o=0,l=()=>{if(n)return;let r=++o;e=p.observe(e=>{n||r!==o||(y.current+=1,s=0,"sessionId"in e.data&&d(e.data.updatedAt)>=(j.current??-1/0)&&(j.current=d(e.data.updatedAt),f(e.data),g(void 0)),b.current.get(e.type)?.forEach(t=>t(e)),b.current.get("*")?.forEach(t=>t(e)))},()=>{if(!n&&r===o){let r;e?.close(),r=Math.min(a*2**s,i),s+=1,t=setTimeout(()=>{k(),l()},r)}})};return v.current.forEach(e=>e(w)),l(),()=>{n=!0,e?.close(),clearTimeout(r),t&&clearTimeout(t)}},[p,i,a,k,w]);let S=(0,n.useMemo)(()=>({client:p,snapshot:h,error:m,refresh:k,subscribe:w}),[p,m,k,h,w]);return(0,r.jsx)(l.Provider,{value:S,children:e})}function u(){let e=(0,n.useContext)(l);if(!e)throw Error("useCodeUiStore must be used inside CodeUiStoreProvider");return e}let p=(0,n.createContext)(void 0),h="libra.code-ui.browser-client-id";function f({children:e,clientId:t,extensions:s=[]}){let{client:a}=u(),i=(0,n.useRef)(void 0),o=t??(i.current??=function(){try{let e=window.sessionStorage.getItem(h);if(e)return e}catch{}let e="u">typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():`browser-${Math.random().toString(36).slice(2)}`;try{window.sessionStorage.setItem(h,e)}catch{}return e}()),l=(0,n.useRef)(void 0),d=(0,n.useRef)(void 0),c=(0,n.useCallback)(()=>{l.current=void 0,d.current=void 0},[]),m=(0,n.useCallback)(async()=>{if(l.current&&void 0!==d.current&&Date.now()>=d.current&&c(),!l.current){let e=await a.attach(o);l.current=e.controllerToken;let t=Date.parse(e.leaseExpiresAt);d.current=Number.isFinite(t)?t:void 0}return l.current},[c,a,o]),g=(0,n.useCallback)(async e=>{try{return await e(await m())}catch(n){let t=n.code,r="CONTROLLER_CONFLICT"===t&&void 0!==d.current&&Date.now()>=d.current;if("MISSING_CONTROLLER_TOKEN"!==t&&"INVALID_CONTROLLER_TOKEN"!==t&&!r)throw n;return c(),e(await m())}},[c,m]),b=(0,n.useMemo)(()=>({clientId:o,get token(){return l.current},ensureLease:m,withLease:g,submit:async(e,t)=>{await g(r=>a.submit(e,r,t))},respond:async(e,t)=>{await g(r=>a.respond(e,t,r))},cancel:async()=>{await g(e=>a.cancel(e))}}),[a,o,m,g]);return(0,n.useEffect)(()=>{let e=s.map(e=>e(b)).filter(e=>"function"==typeof e);return()=>e.forEach(e=>e())},[b,s]),(0,n.useEffect)(()=>{let e=()=>{l.current&&(a.detach(o,l.current,!0),c())};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e),e()}},[a,c,o]),(0,r.jsx)(p.Provider,{value:b,children:e})}function m(){let e=(0,n.useContext)(p);if(!e)throw Error("useBrowserController must be used inside BrowserControllerProvider");return e}function g(){let{snapshot:e}=u(),t=m(),[s,a]=(0,n.useState)(""),[i,o]=(0,n.useState)(!1),[l,d]=(0,n.useState)(),c=(0,n.useRef)(!1),p=(0,n.useRef)(void 0),h=!!e?.capabilities.messageInput,f=!!e?.capabilities.commandIdempotency,g=!!(e&&h&&!i),b=e?.transcript??[],v=(0,n.useCallback)(async e=>{e.preventDefault();let r=s.trim();if(!g||!r||c.current)return;c.current=!0,o(!0),d(void 0),f&&!p.current&&(p.current="u">typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():`cmd-${Date.now()}-${Math.random().toString(36).slice(2)}`);let n=f?p.current:void 0;try{await t.submit(r,n),p.current=void 0,a("")}catch(e){d(e&&"object"==typeof e&&"message"in e&&"string"==typeof e.message?e.message:"Failed to submit message. Try again.")}finally{c.current=!1,o(!1)}},[g,f,t,s]);return e?(0,r.jsxs)("section",{"aria-label":"Message composer",style:{marginTop:"1.5rem"},children:[b.length>0?(0,r.jsx)("ol",{"aria-label":"Transcript",style:{listStyle:"none",padding:0,margin:"0 0 1rem",maxHeight:240,overflow:"auto"},children:b.map(e=>(0,r.jsxs)("li",{style:{marginBottom:"0.5rem"},children:[(0,r.jsx)("strong",{children:e.kind}),e.title?`: ${e.title}`:null,e.content?(0,r.jsx)("div",{style:{whiteSpace:"pre-wrap"},children:e.content}):null]},e.id))}):null,h?(0,r.jsxs)("form",{onSubmit:v,children:[(0,r.jsxs)("label",{style:{display:"block",marginBottom:"0.5rem"},children:["Message",(0,r.jsx)("textarea",{"aria-label":"Session message",value:s,onChange:e=>{p.current=void 0,a(e.target.value)},rows:3,disabled:i,style:{display:"block",width:"100%",marginTop:"0.25rem"}})]}),(0,r.jsx)("button",{type:"submit",disabled:!g||0===s.trim().length,children:i?"Sending…":"Send"}),l?(0,r.jsx)("p",{role:"alert",style:{color:"crimson"},children:l}):null]}):(0,r.jsx)("p",{children:"Message input is not available for this session."})]}):null}let b="__none_of_the_above__",v="None of the above";function y(e){return null!==e&&!Array.isArray(e)&&"object"==typeof e}function x(e){return Array.isArray(e)?e:y(e)&&Array.isArray(e.questions)?e.questions:void 0}function j(e){let t=x(e);if(!t)return[];let r=new Set,n=[];for(let e of t){let t=function(e){if(!y(e))return;let t="string"==typeof e.id?e.id:"";if(!t.trim())return;let r="string"==typeof e.prompt&&e.prompt.trim()?e.prompt:"string"==typeof e.question&&e.question.trim()?e.question:"";if(!r)return;let n=Array.isArray(e.options)?e.options:[],s=[],a=new Set;for(let e of n){let t=function(e){if("string"==typeof e&&e.trim())return{id:e.trim(),label:e.trim()};if(!y(e)||"string"==typeof e.label&&!e.label.trim())return;let t="string"==typeof e.label&&e.label.trim()?e.label.trim():"string"==typeof e.id&&e.id.trim()?e.id.trim():void 0;if(t)return{id:"string"==typeof e.id&&e.id.trim()?e.id.trim():t,label:t,description:"string"==typeof e.description&&e.description.trim()?e.description:void 0}}(e);t&&(a.has(t.id)||(a.add(t.id),s.push(t)))}let i=("single"===e.kind||"text"===e.kind?e.kind:void 0)??(s.length>0?"single":"text");if("single"===i&&0===s.length)return;let o=!0===e.isOther||!0===e.is_other,l=!0===e.isSecret||!0===e.is_secret;return{id:t,prompt:r,header:"string"==typeof e.header?e.header:void 0,kind:i,options:s,isOther:o,isSecret:l}}(e);if(!t||r.has(t.id))return[];r.add(t.id),n.push(t)}return n}function w(e){return"single"!==e.kind||!e.isOther||e.options.some(e=>e.id===b)?e.options:[...e.options,{id:b,label:v}]}function k({plans:e,toolCalls:t}){return(0,r.jsxs)("section",{"aria-label":"Execution progress panel",children:[(0,r.jsx)("h2",{children:"Execution"}),0===e.length&&0===t.length?(0,r.jsx)("p",{children:"No confirmed plan execution in the current snapshot."}):null,e.map(e=>(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{children:e.title?.trim()||e.id}),(0,r.jsxs)("p",{children:["Status: ",e.status]}),e.summary?(0,r.jsx)("p",{children:e.summary}):null,(0,r.jsx)("ul",{"aria-label":`Plan steps for ${e.id}`,children:e.steps.map(t=>(0,r.jsxs)("li",{children:[t.step," — ",t.status]},`${e.id}:${t.step}`))})]},e.id)),t.length>0?(0,r.jsx)("ul",{"aria-label":"Tool calls",children:t.map(e=>(0,r.jsxs)("li",{children:[e.toolName," — ",e.status,e.summary?`: ${e.summary}`:""]},e.id))}):null]})}function S({repair:e,interactionId:t,busy:n=!1,error:s,canRespond:a=!0,onContinue:i,onCancel:o}){if(!e)return(0,r.jsxs)("section",{"aria-label":"Repair panel",children:[(0,r.jsx)("h2",{children:"Repair"}),(0,r.jsx)("p",{children:"No plan-execution repair state projected."})]});let l=t??e.interaction_id,d=function(e){let{attempt:t,max_attempts:r}=e.evidence;if(!(t=10))return r+1}(e),c=function(e){let{attempt:t,max_attempts:r}=e.evidence;return t0?(0,r.jsx)("ul",{"aria-label":"Repair diagnostics",children:e.evidence.diagnostics.map(e=>(0,r.jsx)("li",{children:e},e))}):null,"manual_action"===e.state?(0,r.jsx)("p",{role:"status",children:"Manual action required — follow the projected guidance before continuing."}):null,u&&!c?(0,r.jsx)("p",{role:"status",children:"Automatic repair retries are exhausted at the hard cap (10). Cancel repair or revise the plan manually."}):null,u?(0,r.jsxs)("div",{children:[c?(0,r.jsx)("button",{type:"button",disabled:n,onClick:()=>void i(l,{selectedOption:"continue",...d?{maxAttempts:d}:{},answers:{}}),children:"Continue repair"}):null,(0,r.jsx)("button",{type:"button",disabled:n,onClick:()=>void o(l,{selectedOption:"cancel",answers:{}}),children:"Cancel repair"})]}):null,s?(0,r.jsx)("p",{role:"alert",children:s}):null]})}function C({view:e,busy:t,error:n,canRespond:s,onContinue:a,onCancelRepair:i}){return(0,r.jsxs)("div",{"aria-label":"Execution repair workspace",children:[(0,r.jsx)(k,{plans:e.plans,toolCalls:e.toolCalls}),(0,r.jsx)(S,{repair:e.repair,interactionId:e.pendingRepairInteraction?.id??e.repair?.interaction_id,busy:t,error:n,canRespond:s,onContinue:a,onCancel:i})]})}function R(){let{snapshot:e}=u(),t=m(),s=(0,n.useMemo)(()=>(function(e){if(!e)return{plans:[],toolCalls:[]};let t=e.planExecutionRepair,r=e.interactions.find(e=>"pending"===e.status&&("plan_execution_repair"===e.kind||e.id===t?.interaction_id));return{plans:e.plans,toolCalls:e.toolCalls,repair:t,pendingRepairInteraction:r}})(e),[e]),[a,i]=(0,n.useState)(!1),[o,l]=(0,n.useState)(),d=(0,n.useRef)(!1),c=!!(e&&(e.provider,1)),p=(0,n.useCallback)(async e=>{if(!d.current){d.current=!0,i(!0),l(void 0);try{await e()}catch(e){l(e&&"object"==typeof e&&"message"in e&&"string"==typeof e.message?e.message:"Request failed. Try again.")}finally{d.current=!1,i(!1)}}},[]);return(0,r.jsx)(C,{view:s,busy:a,error:o,canRespond:c,onContinue:(e,r)=>void p(async()=>{await t.respond(e,r)}),onCancelRepair:(e,r)=>void p(async()=>{await t.respond(e,r)})})}function _(e){return{"content-type":"application/json",...e?{"X-Code-Controller-Token":e}:{}}}function T(e){let t=e.trim(),r={raw:t},n=t.match(/^Goal\s+(\S+)\s+[—-]\s+(.+)$/m);n&&(r.id=n[1],r.state=n[2]?.trim());let s=t.match(/^Objective:\s*(.+)$/m);return s&&(r.objective=s[1]?.trim()),r}function E(e){if(!e||"object"!=typeof e)return!1;if("GOAL_NOT_ACTIVE"===("code"in e&&"string"==typeof e.code?e.code:""))return!0;let t="message"in e&&"string"==typeof e.message?e.message.toLowerCase():"";return t.includes("no active goal")||t.includes("no goal is active")}class I{baseUrl;constructor(e=""){this.baseUrl=e}async request(e,t){let r=await fetch(`${this.baseUrl}${e}`,{credentials:"same-origin",...t});if(!r.ok){let e,t=r.statusText;try{let n=await r.json();"string"==typeof n.error?.message&&(t=n.error.message),"string"==typeof n.error?.code&&(e=n.error.code)}catch{}throw{status:r.status,message:t,code:e}}return await r.json()}}let $=[{name:"/review",provider:"claude-code"},{name:"/security-review",provider:"claude-code"},{name:"/simplify",provider:"claude-code"},{name:"/review",provider:"codex"},{name:"/review",provider:"opencode"}];function A(e){return e.provider.trim()?e.name.trim()?$.some(t=>t.provider===e.provider&&t.name===e.name)?void 0:`skill '${e.name}' is not discoverable for provider '${e.provider}'`:"Select a skill name before activating.":"Select a skill provider before activating."}function O({status:e,busy:t=!1,error:s,onStart:a,onRefresh:i,onCancel:o}){let[l,d]=(0,n.useState)(""),[c,u]=(0,n.useState)("cancelled from browser");return(0,r.jsxs)("section",{"aria-label":"Goal panel",children:[(0,r.jsx)("h2",{children:"Goal"}),e?(0,r.jsxs)("div",{children:[(0,r.jsxs)("p",{children:[e.id?`Goal ${e.id}`:"Goal",e.state?` — ${e.state}`:""]}),e.objective&&(0,r.jsxs)("p",{children:["Objective: ",e.objective]}),(0,r.jsx)("pre",{children:e.raw})]}):(0,r.jsx)("p",{children:"No active Goal status loaded."}),(0,r.jsxs)("form",{onSubmit:e=>{e.preventDefault(),a(l)},children:[(0,r.jsxs)("label",{children:["Objective",(0,r.jsx)("textarea",{"aria-label":"Goal objective",value:l,disabled:t,onChange:e=>d(e.target.value)})]}),(0,r.jsx)("button",{type:"submit",disabled:t,children:"Start goal"})]}),(0,r.jsx)("button",{type:"button",disabled:t,onClick:()=>void i(),children:"Refresh status"}),(0,r.jsxs)("label",{children:["Cancel reason",(0,r.jsx)("input",{"aria-label":"Goal cancel reason",value:c,disabled:t,onChange:e=>u(e.target.value)})]}),(0,r.jsx)("button",{type:"button",disabled:t,onClick:()=>void o(c),children:"Cancel goal"}),s&&(0,r.jsx)("p",{role:"alert",children:s})]})}function q({skills:e,busy:t=!1,error:s,lastActivation:a,onActivate:i}){let[o,l]=(0,n.useState)(""),[d,c]=(0,n.useState)(""),u=(0,n.useMemo)(()=>e?e.filter(e=>!(o.trim()&&e.provider!==o.trim()||d.trim()&&e.name!==d.trim())):function(e={}){let t=e.skill?.trim().toLowerCase(),r=e.provider?.trim().toLowerCase();return $.filter(e=>(!r||e.provider===r)&&(!t||e.name.toLowerCase()===t))}({provider:o.trim()||void 0,skill:d.trim()||void 0}),[o,d,e]);return(0,r.jsxs)("section",{"aria-label":"Skill search panel",children:[(0,r.jsx)("h2",{children:"Skills"}),(0,r.jsx)("p",{children:"Registry data comes from the A0-07 curated discovery surface (validation only until W3-01 skill HTTP)."}),(0,r.jsxs)("form",{onSubmit:e=>{e.preventDefault();let t=u[0];t&&i({provider:t.provider,name:t.name})},children:[(0,r.jsxs)("label",{children:["Provider filter",(0,r.jsx)("input",{"aria-label":"Skill provider filter",value:o,disabled:t,onChange:e=>l(e.target.value)})]}),(0,r.jsxs)("label",{children:["Skill filter",(0,r.jsx)("input",{"aria-label":"Skill name filter",value:d,disabled:t,onChange:e=>c(e.target.value)})]}),(0,r.jsx)("ul",{"aria-label":"Skill search results",children:u.map(e=>(0,r.jsx)("li",{children:(0,r.jsxs)("button",{type:"button",disabled:t,onClick:()=>void i({provider:e.provider,name:e.name}),children:["Validate ",e.name," (",e.provider,")"]})},`${e.provider}:${e.name}`))}),(0,r.jsx)("button",{type:"submit",disabled:t||0===u.length,children:"Validate first match"})]}),a&&(0,r.jsx)("p",{role:"status",children:a}),s&&(0,r.jsx)("p",{role:"alert",children:s})]})}function N({tasks:e,busy:t=!1,error:s,lastResult:a,onDispatch:i}){let[o,l]=(0,n.useState)(""),[d,c]=(0,n.useState)(""),u=[...e].sort((e,t)=>t.updatedAt.localeCompare(e.updatedAt));return(0,r.jsxs)("section",{"aria-label":"Task panel",children:[(0,r.jsx)("h2",{children:"Tasks"}),0===u.length?(0,r.jsx)("p",{children:"No tasks in the current session snapshot."}):(0,r.jsx)("ul",{children:u.map(e=>(0,r.jsxs)("li",{children:[(0,r.jsx)("strong",{children:e.title??e.id})," — ",e.status,e.details?`: ${e.details}`:""]},e.id))}),(0,r.jsxs)("form",{onSubmit:e=>{e.preventDefault(),i(o,d)},children:[(0,r.jsxs)("label",{children:["Agent",(0,r.jsx)("input",{"aria-label":"Task agent",value:o,disabled:t,onChange:e=>l(e.target.value)})]}),(0,r.jsxs)("label",{children:["Prompt",(0,r.jsx)("textarea",{"aria-label":"Task prompt",value:d,disabled:t,onChange:e=>c(e.target.value)})]}),(0,r.jsx)("button",{type:"submit",disabled:t,children:"Dispatch task"})]}),a&&(0,r.jsx)("p",{role:"status",children:a}),s&&(0,r.jsx)("p",{role:"alert",children:s})]})}function U({goalStatus:e,tasks:t,skills:n,busy:s,goalError:a,taskError:i,skillError:o,lastSkillActivation:l,lastTaskResult:d,onStartGoal:c,onRefreshGoal:u,onCancelGoal:p,onDispatchTask:h,onActivateSkill:f}){return(0,r.jsxs)("div",{"aria-label":"Goal task skill workspace",children:[(0,r.jsx)(O,{status:e,busy:s,error:a,onStart:c,onRefresh:u,onCancel:p}),(0,r.jsx)(N,{tasks:t,busy:s,error:i,lastResult:d,onDispatch:h}),(0,r.jsx)(q,{skills:n,busy:s,error:o,lastActivation:l,onActivate:f})]})}function L(e){return e&&"object"==typeof e&&"message"in e&&"string"==typeof e.message?e.message:"Request failed. Try again."}function P({api:e}){let{snapshot:t}=u(),s=m(),a=(0,n.useMemo)(()=>e??function(e=new I){return{startGoal:(t,r)=>e.request("/api/code/goal/start",{method:"POST",headers:_(r),body:JSON.stringify({objective:t})}),goalStatus:()=>e.request("/api/code/goal/status"),cancelGoal:(t,r)=>e.request("/api/code/goal/cancel",{method:"POST",headers:_(r),body:JSON.stringify({reason:t})}),dispatchTask:(t,r,n)=>e.request("/api/code/task/dispatch",{method:"POST",headers:_(n),body:JSON.stringify({agent:t,prompt:r})})}}(),[e]),[i,o]=(0,n.useState)(),[l,d]=(0,n.useState)(!1),[c,p]=(0,n.useState)(),[h,f]=(0,n.useState)(),[g,b]=(0,n.useState)(),[v,y]=(0,n.useState)(),[x,j]=(0,n.useState)(),w=(0,n.useRef)(0),k=(0,n.useRef)(!1),S=t?.provider.managed!==!0||"codex"!==t.provider.provider.toLowerCase(),C=(0,n.useCallback)(async e=>{if(!k.current){k.current=!0,d(!0);try{await e()}finally{k.current=!1,d(!1)}}},[]),R=(0,n.useCallback)(async e=>{if(k.current&&!e?.allowWhileBusy)return;let t=++w.current;p(void 0);try{let e=await a.goalStatus();if(t!==w.current)return;o(T(e.status))}catch(e){if(t!==w.current)return;if(E(e))return void o(void 0);p(L(e))}},[a]);return((0,n.useEffect)(()=>{t&&S&&R()},[t?.sessionId,S]),t&&S)?(0,r.jsx)(U,{goalStatus:i,tasks:t?.tasks??[],busy:l,goalError:c,taskError:h,skillError:g,lastSkillActivation:v,lastTaskResult:x,onStartGoal:e=>void C(async()=>{p(void 0);let t=e.trim()?new TextEncoder().encode(e).byteLength>16384?"Goal objective must be 16 KiB or smaller.":void 0:"Enter a Goal objective before starting.";if(t)return void p(t);w.current+=1;try{let t=await s.withLease(t=>a.startGoal(e.trim(),t));w.current+=1,o(T(t.status))}catch(e){p(L(e))}}),onRefreshGoal:()=>void C(async()=>R({allowWhileBusy:!0})),onCancelGoal:e=>void C(async()=>{p(void 0),w.current+=1;try{let t=await s.withLease(t=>a.cancelGoal(e.trim()||"cancelled from browser",t));w.current+=1,o(T(t.status))}catch(e){if(E(e)){w.current+=1,o(void 0);return}p(L(e))}}),onDispatchTask:(e,t)=>void C(async()=>{f(void 0);let r=e.trim()?t.trim()?void 0:"Enter a task prompt before dispatching.":"Enter an agent name before dispatching a task.";if(r)return void f(r);try{let r=await s.withLease(r=>a.dispatchTask(e.trim(),t.trim(),r));j(r.result)}catch(e){f(L(e))}}),onActivateSkill:e=>void C(async()=>{b(void 0);let t=A(e);if(t)return void b(t);try{let t=function(e){let t=A(e);if(t)throw Error(t);return{accepted:!0,message:`Discoverable: ${e.name} for ${e.provider} (runtime activation awaits Code UI skill HTTP)`}}(e);y(t.message)}catch(e){b(L(e))}})}):null}function D({interaction:e,onRespond:t,onCancel:s,respondEnabled:a=!0}){let[i,o]=(0,n.useState)("no"),[l,d]=(0,n.useState)(!1),[c,u]=(0,n.useState)(),p=function(e){let t=null===e||Array.isArray(e)||"object"!=typeof e?void 0:e;if(!t)return{};let r="string"==typeof t.sandboxLabel?t.sandboxLabel:"string"==typeof t.sandbox_label?t.sandbox_label:void 0,n="string"==typeof t.command?t.command:void 0;return{command:n,cwd:"string"==typeof t.cwd?t.cwd:void 0,reason:"string"==typeof t.reason?t.reason:void 0,sandboxLabel:r}}(e.metadata);if("approval"!==e.kind&&"sandbox_approval"!==e.kind)return null;let h=async e=>{if(!l){d(!0),u(void 0);try{await e()}catch(e){u(e&&"object"==typeof e&&"message"in e&&"string"==typeof e.message?e.message:"Could not deliver this approval. Try again.")}finally{d(!1)}}};return(0,r.jsxs)("section",{"aria-label":"Approval request",children:[(0,r.jsxs)("p",{children:["Interaction: ",e.id]}),(0,r.jsxs)("p",{children:["Kind: ",e.kind]}),e.title&&(0,r.jsx)("h2",{children:e.title}),e.description&&(0,r.jsx)("p",{children:e.description}),e.prompt&&(0,r.jsx)("pre",{children:e.prompt}),p.command&&(0,r.jsxs)("p",{children:["Command: ",p.command]}),p.cwd&&(0,r.jsxs)("p",{children:["Working directory: ",p.cwd]}),p.reason&&(0,r.jsxs)("p",{children:["Reason: ",p.reason]}),p.sandboxLabel&&(0,r.jsxs)("p",{children:["Sandbox: ",p.sandboxLabel]}),!a&&(0,r.jsx)("p",{role:"status",children:"This session cannot resolve approvals from the browser right now. Cancel the turn here, or retry once the controller can write."}),(0,r.jsxs)("label",{children:["Apply to future commands",(0,r.jsxs)("select",{"aria-label":"Apply to future commands",value:i,disabled:l||!a,onChange:e=>o(e.target.value),children:[(0,r.jsx)("option",{value:"no",children:"No"}),(0,r.jsx)("option",{value:"accept_all",children:"Accept all"}),(0,r.jsx)("option",{value:"decline_all",children:"Decline all"})]})]}),(0,r.jsxs)("div",{children:[e.options.map(n=>(0,r.jsx)("button",{type:"button",disabled:l||!a,onClick:()=>void h(async()=>{await t(e.id,function({selectedOption:e,applyToFuture:t}){return{approved:"approve"===e||"deny"!==e&&void 0,applyToFuture:"abort"===e||"approve"===e&&"decline_all"===t||"deny"===e&&"accept_all"===t?"no":t,selectedOption:e,answers:{}}}({selectedOption:n.id,applyToFuture:i}))}),children:n.label},n.id)),(0,r.jsx)("button",{type:"button",disabled:l,onClick:()=>void h(async()=>s()),children:"Cancel"})]}),c&&(0,r.jsx)("p",{role:"alert",children:c})]})}function M({interaction:e,onRespond:t,onCancel:s,respondEnabled:a=!0}){let i=(0,n.useMemo)(()=>j(e.metadata),[e.metadata]),o=(0,n.useMemo)(()=>{var t;let r;return!!((r=x(t=e.metadata))&&r.length>0&&0===j(t).length)},[e.metadata]),[l,d]=(0,n.useState)({}),[c,u]=(0,n.useState)(),[p,h]=(0,n.useState)(!1),f=async e=>{if(!p){h(!0),u(void 0);try{await e()}catch(e){u(e&&"object"==typeof e&&"message"in e&&"string"==typeof e.message?e.message:"Could not deliver these answers. Try again.")}finally{h(!1)}}};return(0,r.jsxs)("section",{"aria-label":"User input request",children:[(0,r.jsxs)("p",{children:["Interaction: ",e.id]}),e.title&&(0,r.jsx)("h2",{children:e.title}),e.description&&(0,r.jsx)("p",{children:e.description}),e.prompt&&(0,r.jsx)("p",{children:e.prompt}),!a&&(0,r.jsx)("p",{role:"status",children:"This session cannot resolve user-input prompts from the browser right now. Cancel the turn here, or retry once the controller can write."}),o&&(0,r.jsx)("p",{role:"alert",children:"This user-input request is malformed (missing prompts or usable options) and cannot be answered from the browser. Cancel the turn and retry with valid questions."}),(0,r.jsxs)("form",{onSubmit:r=>{if(r.preventDefault(),!a)return;if(o)return void u("This user-input request is malformed and cannot be answered from the browser.");let n=function(e,t){if(0===e.length)return"The request contains no valid questions.";let r=new Set(e.map(e=>e.id)),n=Object.keys(t).filter(e=>!r.has(e));if(n.length>0)return`Unknown question id: ${n.join(", ")}.`;for(let r of e){let e=t[r.id];if(!e||0===e.length||!e[0]?.trim())return`Answer "${r.prompt}" before continuing.`;if("single"===r.kind){let t=w(r),n=e[0];if(n===b)continue;if(e.some(e=>!e.trim()))return`Answer "${r.prompt}" before continuing.`;if(!t.some(e=>e.id===n))return`Answer "${r.prompt}" with one of the provided options.`;continue}if(e.some(e=>!e.trim()))return`Answer "${r.prompt}" before continuing.`}}(i,l);n?u(n):f(async()=>{await t(e.id,function(e){let t={};for(let[r,n]of Object.entries(e)){if(n[0]===b){let e=n[1]?.trim()??"";t[r]=e?[v,`user_note: ${e}`]:[v];continue}t[r]=n}return{answers:t}}(l))})},children:[i.map(e=>{let t=w(e),n=l[e.id]?.[0]??"",s=l[e.id]?.[1]??"";return(0,r.jsxs)("fieldset",{disabled:p||!a||o,children:[e.header&&(0,r.jsx)("legend",{children:e.header}),(0,r.jsxs)("label",{children:[e.prompt,"single"===e.kind?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("select",{"aria-label":e.prompt,value:n,onChange:t=>d(r=>({...r,[e.id]:t.target.value===b?[b,r[e.id]?.[1]??""]:[t.target.value]})),children:[(0,r.jsx)("option",{value:"",children:"Select an option"}),t.map(e=>(0,r.jsx)("option",{value:e.id,children:e.description?`${e.label} — ${e.description}`:e.label},e.id))]}),n===b&&(0,r.jsx)("textarea",{"aria-label":`${e.prompt} details`,value:s,onChange:t=>d(r=>({...r,[e.id]:[b,t.target.value]}))})]}):e.isSecret?(0,r.jsx)("input",{type:"password",autoComplete:"off","aria-label":e.prompt,value:l[e.id]?.[0]??"",onChange:t=>d(r=>({...r,[e.id]:[t.target.value]}))}):(0,r.jsx)("textarea",{"aria-label":e.prompt,value:l[e.id]?.[0]??"",onChange:t=>d(r=>({...r,[e.id]:[t.target.value]}))})]})]},e.id)}),c&&(0,r.jsx)("p",{role:"alert",children:c}),(0,r.jsx)("button",{type:"submit",disabled:p||!a||o,children:"Submit answers"}),(0,r.jsx)("button",{type:"button",disabled:p,onClick:()=>void f(async()=>s()),children:"Cancel"})]})]})}function G({interaction:e,onRespond:t,onCancel:n,respondEnabled:s=!0}){return e&&"pending"===e.status?"approval"===e.kind||"sandbox_approval"===e.kind?(0,r.jsx)(D,{interaction:e,onRespond:t,onCancel:n,respondEnabled:s},e.id):"request_user_input"===e.kind?(0,r.jsx)(M,{interaction:e,onRespond:t,onCancel:n,respondEnabled:s},e.id):null:null}function H(){let{snapshot:e}=u(),t=m(),n=e?.interactions.find(e=>"pending"===e.status),s=!e||(e.provider,!0);return(0,r.jsx)(G,{interaction:n,respondEnabled:s,onRespond:(e,r)=>t.respond(e,r),onCancel:()=>t.cancel()})}let W={idle:"ready",thinking:"thinking",executing_tool:"executing",awaiting_interaction:"waiting",completed:"finished",error:"failed",indeterminate_side_effect:"reconcile"};function B(e){return e?W[e.status]:"ready"}function V(e,t,r){return t.trim()?r&&t===r?"That thread is already the active session.":"unsupported"===e.kind||"deferred"===e.kind?e.reason:void 0:"Select a thread before resuming."}class F{baseUrl;constructor(e=""){this.baseUrl=e}async request(e,t){let r=await fetch(`${this.baseUrl}${e}`,{credentials:"same-origin",...t});if(!r.ok){let e,t=r.statusText;try{let n=await r.json();"string"==typeof n.error?.message&&(t=n.error.message),"string"==typeof n.error?.code&&(e=n.error.code)}catch{}throw{status:r.status,message:t,code:e}}return await r.json()}}function J({currentThreadId:e,selectedThreadId:t,phaseLabel:n,affordance:s,selectionError:a,cancelError:i,resumeHint:o,busy:l=!1,canCancel:d=!0,onCancel:c,onResumeIntent:u}){let p=l||"ready"!==s.kind||!!a;return(0,r.jsxs)("section",{"aria-label":"Session resume cancel panel",children:[(0,r.jsx)("h2",{children:"Session lifecycle"}),(0,r.jsxs)("p",{children:["Active thread: ",e??"none"," · Phase: ",n]}),(0,r.jsxs)("p",{children:["Selected thread: ",t??"none"]}),(0,r.jsx)("p",{"aria-live":"polite",children:s.reason}),o?(0,r.jsx)("p",{children:o}):null,(0,r.jsx)("button",{type:"button",disabled:p,onClick:()=>void u(),children:"Prepare resume"}),(0,r.jsx)("button",{type:"button",disabled:l||!d,onClick:()=>void c(),children:"Cancel turn"}),a?(0,r.jsx)("p",{role:"alert",children:a}):null,i?(0,r.jsx)("p",{role:"alert",children:i}):null]})}function K({items:e,selectedThreadId:t,busy:n=!1,error:s,loading:a=!1,hasMore:i=!1,onRefresh:o,onLoadMore:l,onSelect:d}){return(0,r.jsxs)("section",{"aria-label":"Thread list panel",children:[(0,r.jsx)("h2",{children:"Threads"}),(0,r.jsx)("p",{children:"Repository-shared list from storage. Process resume is working-directory scoped — use the original session cwd with `libra code --resume`."}),(0,r.jsx)("button",{type:"button",disabled:n||a,onClick:()=>void o(),children:"Refresh threads"}),a&&0===e.length?(0,r.jsx)("p",{children:"Loading threads…"}):null,0!==e.length||a?null:(0,r.jsx)("p",{children:"No threads found."}),(0,r.jsx)("ul",{"aria-label":"Thread list",children:e.map(e=>{let s=e.id===t;return(0,r.jsxs)("li",{children:[(0,r.jsxs)("button",{type:"button","aria-pressed":s,disabled:n,onClick:()=>d(e.id),children:[e.title?.trim()||e.id,e.archived?" (archived)":""]}),(0,r.jsxs)("span",{children:["Updated ",e.updatedAt,s?" · selected":""]})]},e.id)})}),i?(0,r.jsx)("button",{type:"button",disabled:n||a,onClick:()=>void l(),children:"Load more threads"}):null,s?(0,r.jsx)("p",{role:"alert",children:s}):null]})}function Q({items:e,selectedThreadId:t,currentThreadId:n,phaseLabel:s,affordance:a,selectionError:i,listError:o,cancelError:l,resumeHint:d,busy:c,loading:u,hasMore:p,canCancel:h,onRefreshThreads:f,onLoadMoreThreads:m,onSelectThread:g,onCancelTurn:b,onResumeIntent:v}){return(0,r.jsxs)("div",{"aria-label":"Session lifecycle workspace",children:[(0,r.jsx)(K,{items:e,selectedThreadId:t,busy:c,error:o,loading:u,hasMore:p,onRefresh:f,onLoadMore:m,onSelect:g}),(0,r.jsx)(J,{currentThreadId:n,selectedThreadId:t,phaseLabel:s,affordance:a,selectionError:i,cancelError:l,resumeHint:d,busy:c,canCancel:h,onCancel:b,onResumeIntent:v})]})}function X(e){return e&&"object"==typeof e&&"message"in e&&"string"==typeof e.message?e.message:"Request failed. Try again."}function Y({api:e}){let{snapshot:t}=u(),s=m(),a=(0,n.useMemo)(()=>e??function(e=new F){return{listThreads(t=50,r=0){let n=new URLSearchParams({limit:String(t),offset:String(r)});return e.request(`/api/code/threads?${n.toString()}`)}}}(),[e]),[i,o]=(0,n.useState)([]),[l,d]=(0,n.useState)(),[c,p]=(0,n.useState)(),[h,f]=(0,n.useState)(),[g,b]=(0,n.useState)(),[v,y]=(0,n.useState)(),[x,j]=(0,n.useState)(),[w,k]=(0,n.useState)(!1),[S,C]=(0,n.useState)(!1),R=(0,n.useRef)(!1),_=(0,n.useRef)(0),T=(0,n.useMemo)(()=>(function(e){if(!e)return{kind:"unsupported",reason:"No live session snapshot is loaded."};if(!e.capabilities.providerSessionResume)return{kind:"unsupported",reason:"This session does not advertise providerSessionResume."};let t=B(e);return"thinking"===t||"executing"===t?{kind:"deferred",reason:"Wait for the active turn to settle before resuming another thread."}:"reconcile"===t?{kind:"unsupported",reason:"This session needs inspection and reconciliation before resume (indeterminate side effect)."}:"finished"===t||"failed"===t||"waiting"===t||"ready"===t?{kind:"ready",reason:"Browser resume HTTP lands in W3-01. Until then restart with `libra code --resume ` from that session's original working directory (thread list is repo-shared across worktrees)."}:{kind:"deferred",reason:`Resume is not available while the session phase is ${t}.`}})(t),[t]),E=t?.threadId,I=B(t),$=!!t,A=(0,n.useCallback)(async e=>{if(!R.current){R.current=!0,k(!0);try{await e()}finally{R.current=!1,k(!1)}}},[]),O=(0,n.useCallback)(async e=>{let t=++_.current;C(!0),f(void 0);try{let r=await a.listThreads(50,e?.offset??0);if(t!==_.current)return;o(t=>{let n=e?.append?[...t,...r.items]:r.items,s=new Set;return n.filter(e=>!s.has(e.id)&&(s.add(e.id),!0))}),d(r.nextOffset)}catch(r){if(t!==_.current)return;f(X(r)),e?.append||o([]),d(void 0)}finally{t===_.current&&C(!1)}},[a]);return(0,n.useEffect)(()=>{O()},[]),(0,n.useEffect)(()=>{c?y(V(T,c,E)):y(void 0)},[T,E,c]),(0,r.jsx)(Q,{items:i,selectedThreadId:c,currentThreadId:E,phaseLabel:function(e){switch(e){case"ready":return"Ready";case"thinking":return"Thinking";case"executing":return"Executing";case"waiting":return"Awaiting interaction";case"finished":return"Finished";case"failed":return"Failed";case"reconcile":return"Needs reconciliation"}}(I),affordance:T,selectionError:v,listError:h,cancelError:g,resumeHint:x,busy:w,loading:S,hasMore:"number"==typeof l,canCancel:$,onRefreshThreads:()=>void A(async()=>{_.current+=1,await O({offset:0})}),onLoadMoreThreads:()=>void A(async()=>{"number"==typeof l&&await O({append:!0,offset:l})}),onSelectThread:e=>{j(void 0),p(e)},onCancelTurn:()=>void A(async()=>{b(void 0);try{await s.cancel()}catch(e){b(X(e))}}),onResumeIntent:()=>void A(async()=>{let e;j(void 0);let r=c?.trim()??"",n=V(T,r,E);if(y(n),n)return;let s=E&&r===E?t?.workingDir:void 0;j((e=s?.trim()?` This thread matches the live session cwd \`${s.trim()}\`.`:" Launch from that thread's original working directory (per-thread cwd is not on the wire yet; do not assume the live session cwd).",`Resume target ${r} is ready.${e} Restart with \`libra code --resume ${r}\` (browser resume HTTP: W3-01). Thread list is repository-shared across worktrees.`))})})}function z(e,t){let r="code_ui_projection_delta:";if(!t.kind.startsWith(r))return{...e,updatedAt:t.at||e.updatedAt};let n=t.kind.slice(r.length),s=ee(t.payload);return function(e,t,r,n){let s={...e,updatedAt:n||e.updatedAt};switch(t){case"status":return"string"==typeof r&&(s.status=r),s;case"controller":return r&&"object"==typeof r&&(s.controller=r),s;case"plan_execution_repair":return s.planExecutionRepair=r||void 0,s;case"transcript_upsert":return s.transcript=et(e.transcript,r),s;case"assistant_delta":{let t=ee(r),a="string"==typeof t?.entryId?t.entryId:void 0,i="string"==typeof t?.delta?t.delta:"",o="string"==typeof t?.updatedAt?t.updatedAt:n;if(!a||!i)return s;return s.transcript=e.transcript.map(e=>e.id!==a||"completed"===e.status||"error"===e.status||"cancelled"===e.status?e:{...e,content:`${e.content??""}${i}`,streaming:!0,updatedAt:o}),s}case"interaction_upsert":return s.interactions=et(e.interactions,r),s;case"interaction_resolved":{let t=ee(r),n="string"==typeof t?.interactionId?t.interactionId:void 0;if(!n)return s;let a="string"==typeof t?.resolvedAt?t.resolvedAt:void 0;return s.interactions=e.interactions.map(e=>e.id===n?{...e,status:"resolved",resolvedAt:a??e.resolvedAt}:e),s}case"interaction_cleared":{let t=ee(r),n="string"==typeof t?.interactionId?t.interactionId:void 0;if(!n)return s;return s.interactions=e.interactions.filter(e=>e.id!==n),s}case"plan_upsert":{let t=ee(r),n="string"==typeof t?.id?t.id:void 0,a="string"==typeof t?.status?t.status:"";if(n){let t=e.plans.find(e=>e.id===n);if(t&&Z(t.status)&&!Z(a))return s}return s.plans=et(e.plans,r),s}case"task_upsert":return s.tasks=et(e.tasks,r),s;case"tool_call_upsert":return s.toolCalls=et(e.toolCalls,r),s;case"patchset_upsert":return s.patchsets=et(e.patchsets,r),s;case"thread_graph":return s.threadGraph=r||void 0,s;default:return s}}(e,n,s&&"payload"in s?s.payload:t.payload,t.at)}function Z(e){return"completed"===e||"failed"===e}function ee(e){if(!(!e||"object"!=typeof e||Array.isArray(e)))return e}function et(e,t){let r=ee(t),n="string"==typeof r?.id?r.id:void 0;if(!n)return e;let s=e.findIndex(e=>e.id===n);if(s<0)return[...e,t];let a=e.slice();return a[s]=t,a}let er=new Set,en=new Set,es=new Set;function ea(){er.forEach(e=>e())}function ei(e){if(!e.holdReconnect)return;e.holdReconnect=!1;let t=e.pendingOnError;e.pendingOnError=void 0,t?.()}function eo(e){return"code_ui_projection_delta:assistant_delta"===e}function el(e){if(e.cached)for(let t of e.pending.splice(0))eo(t.kind)||(e.cached=z(e.cached,t))}async function ed(e,t,r,n,s){let a=function(e="/api/code/events",t){let r=new URLSearchParams({wire:"2"});return"number"==typeof t&&Number.isFinite(t)&&t>0&&r.set("cursor",String(Math.trunc(t))),`${e}?${r.toString()}`}("/api/code/events",e.lastCursor),i=!1;try{let o=await fetch(a,{credentials:"same-origin",headers:{accept:"text/event-stream"},signal:s.signal});if(i||s.signal.aborted)return;if(409===o.status){ec(e,t,n,{code:"WIRE_V2_CURSOR_AHEAD",reason:"SSE cursor is ahead of the durable tail; fetch a snapshot and reconnect.",lastCursor:e.lastCursor??0,durableTail:0,action:"fetch_snapshot"}),e.lastCursor=void 0;return}if(503===o.status){let a=await eu(o);if("WIRE_V2_REQUIRES_DURABLE_SESSION"===a){e.useV1=!0;let a=t.observe(r,()=>{ea(),n()});s.signal.addEventListener("abort",()=>a.close(),{once:!0});return}}if(!o.ok||!o.body){ea(),n();return}await ep(o.body,s.signal,(a,o)=>{var l;let d;"code_workflow"===a?(t=>{var n;let s,a,i=function(e){try{let t=JSON.parse(e);if("number"!=typeof t.cursor||"string"!=typeof t.kind)return;return{cursor:t.cursor,eventId:"string"==typeof t.eventId?t.eventId:void 0,kind:t.kind,at:"string"==typeof t.at?t.at:new Date(0).toISOString(),payload:t.payload}}catch{return}}(t);if(!i)return;if(e.lastCursor=i.cursor,!e.cached)return e.pending.push(i);if(eo(i.kind)&&(n=e.cached,s=Date.parse(i.at),a=Date.parse(n.updatedAt),!(Number.isNaN(s)||Number.isNaN(a))&&!(s>a)))return;let o=z(e.cached,i);e.cached=o,r({seq:i.cursor,type:"session_updated",at:i.at,data:o})})(o):"resync"===a&&(l=o,(d=function(e){try{let t=JSON.parse(e);if("string"!=typeof t.code||"number"!=typeof t.durableTail)return;return{code:t.code,reason:"string"==typeof t.reason?t.reason:"transport backlog exceeded",lastCursor:"number"==typeof t.lastCursor?t.lastCursor:0,durableTail:t.durableTail,action:"string"==typeof t.action?t.action:"fetch_snapshot"}}catch{return}}(l))&&"WIRE_V2_RESYNC_REQUIRED"===d.code&&(ec(e,t,n,d),i=!0,s.abort()))}),i||s.signal.aborted||(ea(),n())}catch(e){if(i||s.signal.aborted||"AbortError"===e.name)return;ea(),n()}}function ec(e,t,r,n){"WIRE_V2_RESYNC_REQUIRED"===n.code&&(e.lastCursor=n.durableTail),e.holdReconnect=!0,e.pendingOnError=r,e.allowOnce=!0,en.forEach(e=>e(n)),t.snapshot().then(t=>{var r;e.cached=t,e.allowOnce=!1,el(e),ei(e),r=e.lastCursor,es.forEach(e=>e(r))}).catch(()=>{})}async function eu(e){try{let t=await e.json();return"string"==typeof t.error?.code?t.error.code:void 0}catch{return}}async function ep(e,t,r){let n=e.getReader(),s=new TextDecoder,a="";for(;!t.aborted;){let{done:e,value:t}=await n.read();if(e)break;let i=(a+=s.decode(t,{stream:!0}).replace(/\r\n/g,"\n")).indexOf("\n\n");for(;i>=0;){let e=a.slice(0,i);a=a.slice(i+2);let t="message",n=[];for(let r of e.split("\n"))r.startsWith("event:")?t=r.slice(6).trim():r.startsWith("data:")&&n.push(r.slice(5).trimStart());n.length>0&&r(t,n.join("\n")),i=a.indexOf("\n\n")}}}function eh(e,t){switch(t.type){case"stream_open":return{...e,status:"resync_required"===e.status?e.status:"connected",backlogHint:"resync_required"===e.status?e.backlogHint:void 0};case"stream_event":{let r,n=e.cursor.lastSeq,s=!0===e.acceptCursorReset;return 0===t.seq&&void 0!==n?r=n:s&&t.seq>0?(r=t.seq,s=!1):r=void 0===n?t.seq:Math.max(n,t.seq),{...e,status:"resync_required"===e.status?"resync_required":"connected",cursor:{lastSeq:r},backlogHint:"resync_required"===e.status?e.backlogHint:void 0,snapshotRetained:!0,acceptCursorReset:s}}case"stream_disconnect":return{...e,status:"reconnecting",snapshotRetained:t.snapshotRetained,acceptCursorReset:!0};case"backlog_overflow":return{...e,status:"resync_required",backlogHint:t.hint,cursor:void 0===t.lastSeq?e.cursor:{lastSeq:t.lastSeq},snapshotRetained:!0};case"resync_requested":return{...e,status:"reconnecting"};case"resync_completed":return{status:e.acceptCursorReset?"reconnecting":"resynced",cursor:void 0===t.seq?e.cursor:{lastSeq:t.seq},backlogHint:void 0,snapshotRetained:!0,acceptCursorReset:e.acceptCursorReset};case"resync_failed":return{...e,status:t.snapshotRetained?"resync_required":"reconnecting",snapshotRetained:t.snapshotRetained,backlogHint:t.message??e.backlogHint}}}function ef({state:e,busy:t=!1,error:n,onResync:s}){return(0,r.jsxs)("section",{"aria-label":"SSE resilience panel","aria-live":"polite",children:[(0,r.jsx)("h2",{children:"SSE resilience"}),(0,r.jsx)("p",{children:function(e){switch(e){case"connected":return"SSE connected";case"reconnecting":return"SSE reconnecting";case"resync_required":return"SSE resync required";case"resynced":return"SSE resynced"}}(e.status)}),"number"==typeof e.cursor.lastSeq?(0,r.jsxs)("p",{children:["Last cursor seq: ",e.cursor.lastSeq]}):(0,r.jsx)("p",{children:"No cursor seq observed yet."}),(0,r.jsx)("p",{children:e.snapshotRetained?"Projected session snapshot is retained during the outage.":"No projected session snapshot is retained yet."}),e.backlogHint?(0,r.jsx)("p",{role:"status",children:e.backlogHint}):null,("resync_required"===e.status||"reconnecting"===e.status)&&(0,r.jsx)("button",{type:"button",disabled:t,onClick:()=>void s(),children:"Resync snapshot"}),n?(0,r.jsx)("p",{role:"alert",children:n}):null]})}function em({state:e,busy:t,error:n,onResync:s}){return(0,r.jsx)("div",{"aria-label":"SSE resilience workspace",children:(0,r.jsx)(ef,{state:e,busy:t,error:n,onResync:s})})}function eg(e){return e instanceof Error||e&&"object"==typeof e&&"message"in e&&"string"==typeof e.message?e.message:"Resync failed. Try again."}function eb({initialState:e}){let{snapshot:s,refresh:a,subscribe:i}=u(),[o,l]=(0,n.useState)(()=>e??function(e={}){return{status:"connected",cursor:{},snapshotRetained:!1,acceptCursorReset:!1,...e}}({snapshotRetained:!!s})),[d,c]=(0,n.useState)(!1),[p,h]=(0,n.useState)(),f=(0,n.useRef)(!!s);(0,n.useEffect)(()=>{s&&(f.current=!0,l(e=>e.snapshotRetained?e:{...e,snapshotRetained:!0}))},[s]),(0,n.useEffect)(()=>i("*",e=>{l(t=>eh(t,{type:"stream_event",seq:e.seq}))}),[i]),(0,n.useEffect)(()=>{var e;return e=()=>{l(e=>eh(e,{type:"stream_disconnect",snapshotRetained:f.current||!!s}))},er.add(e),()=>{er.delete(e)}},[s]),(0,n.useEffect)(()=>{var e;return e=e=>{l(t=>eh(t,{type:"backlog_overflow",hint:e.reason||"SSE backlog exceeded; request an explicit snapshot resync.",lastSeq:e.lastCursor}))},en.add(e),()=>{en.delete(e)}},[]),(0,n.useEffect)(()=>{var e;return e=e=>{l(t=>eh(t,{type:"resync_completed",seq:e}))},es.add(e),()=>{es.delete(e)}},[]);let m=(0,n.useCallback)(async()=>{c(!0),h(void 0),l(e=>eh(e,{type:"resync_requested"})),t&&(t.allowOnce=!0);try{let e=await a();if("raced"===e&&(e=await a()),"failed"===e||"raced"===e)throw Error("Unable to refresh Code UI session snapshot");l(e=>eh(e,{type:"resync_completed",seq:e.cursor.lastSeq}))}catch(e){h(eg(e)),l(t=>eh(t,{type:"resync_failed",snapshotRetained:t.snapshotRetained||f.current||!!s,message:eg(e)}))}finally{c(!1)}},[a,s]);return(0,r.jsx)(em,{state:o,busy:d,error:p,onResync:m})}let ev="Indexed thread version graph failed to load; showing live plan/task/patchset heads only.";function ey({view:e}){return(0,r.jsxs)("section",{"aria-label":"Thread version graph",children:[(0,r.jsx)("h2",{children:"Thread version graph"}),e.title?(0,r.jsx)("p",{children:e.title}):null,e.threadId?(0,r.jsxs)("p",{children:["Thread ",e.threadId]}):null,e.loadError?(0,r.jsx)("p",{children:e.loadError}):null,e.truncatedReason?(0,r.jsx)("p",{children:e.truncatedReason}):null,e.emptyReason?(0,r.jsx)("p",{children:e.emptyReason}):null,(0,r.jsx)("ol",{children:e.nodes.map(e=>(0,r.jsxs)("li",{style:{marginLeft:`${1.25*e.depth}rem`},children:[(0,r.jsx)("strong",{children:e.kind})," ",e.label,e.tags.length>0?(0,r.jsxs)("span",{children:[" (",e.tags.join(", "),")"]}):null]},`${e.kind}:${e.id}`))})]})}function ex({view:e}){return(0,r.jsx)(ey,{view:e})}let ej=[1e3,2e3,4e3,8e3],ew=[1e3,2e3];function ek(e){return e instanceof DOMException&&"AbortError"===e.name}function eS(){let{snapshot:e}=u(),[t,s]=(0,n.useState)(),a=e?.threadId,i=!!e?.threadGraph,o=[a??"",e?.plans.map(e=>`${e.id}:${e.status}`).join("\0")??"",e?.tasks.map(e=>`${e.id}:${e.status}`).join("\0")??"",e?.patchsets.map(e=>`${e.id}:${e.status}`).join("\0")??""].join("|"),l=(0,n.useRef)(void 0),d=(0,n.useRef)(void 0),c=(0,n.useRef)(void 0);(0,n.useEffect)(()=>{let e;if(!a||i)return;let t=!1,r=0,n=0,o=(t,r)=>{e=window.setTimeout(r,t)},l=()=>{c.current?.abort();let e=new AbortController;c.current=e,fetch(`/api/code/thread-graph?threadId=${encodeURIComponent(a)}`,{credentials:"same-origin",signal:e.signal}).then(async e=>{let t;if(e.ok)return{ok:!0,graph:await e.json()};try{let r=await e.json();"string"==typeof r.error?.code&&(t=r.error.code)}catch{}return{ok:!1,status:e.status,code:t}}).then(i=>{if(t||e.signal.aborted)return;if(i.ok)return void s({threadId:a,graph:i.graph});if(404===i.status||"THREAD_GRAPH_NOT_FOUND"===i.code){if(s({threadId:a}),r{if(!(t||ek(e))&&(s({threadId:a,error:ev}),n{t=!0,c.current?.abort(),c.current=void 0,void 0!==e&&window.clearTimeout(e)}},[a,i,o]),(0,n.useEffect)(()=>{if(!a||!i){l.current=o;return}let e=l.current;l.current=o,void 0!==e&&e!==o&&(void 0!==d.current&&window.clearTimeout(d.current),d.current=window.setTimeout(()=>{d.current=void 0,c.current?.abort();let e=new AbortController;c.current=e,fetch(`/api/code/thread-graph?threadId=${encodeURIComponent(a)}`,{credentials:"same-origin",signal:e.signal}).then(e=>e.ok?e.json():Promise.reject()).then(t=>{e.signal.aborted||s({threadId:a,graph:t})}).catch(e=>{if(ek(e))return}).finally(()=>{c.current===e&&(c.current=void 0)})},2e3))},[a,i,o]),(0,n.useEffect)(()=>()=>{l.current=void 0,c.current?.abort(),c.current=void 0,void 0!==d.current&&(window.clearTimeout(d.current),d.current=void 0)},[a]);let p=(0,n.useMemo)(()=>{if(!e||!t||t.threadId!==e.threadId||!t.graph)return e;let r={...e,threadGraph:t.graph};return!function(e){let t=e?.threadGraph;if(!e||!t||!e.threadId||t.threadId!==e.threadId)return!1;let r=(e,r)=>t.nodes.some(t=>t.kind===e&&t.id===r),n=(e,r)=>t.nodes.find(t=>t.kind===e&&t.tags?.some(e=>r.includes(e)))?.id,s=t.selectedPlanId??n("plan",["selected","running"]),a=t.activeTaskId??n("task",["active","running"]);if(s&&!r("plan",s)||a&&!r("task",a)||t.activeRunId&&!r("run",t.activeRunId))return!1;let i=e.plans.filter(e=>"selected"===e.status||"running"===e.status).map(e=>e.id);if(i.length>0&&(!s||!i.includes(s)))return!1;let o=e.tasks.filter(e=>"active"===e.status||"running"===e.status).map(e=>e.id);if(o.length>0&&(!a||!o.includes(a)))return!1;let l=t.truncated?e.plans.filter(e=>"selected"===e.status||"running"===e.status||t.selectedPlanId===e.id):e.plans,d=t.truncated?e.tasks.filter(e=>"active"===e.status||"running"===e.status||t.activeTaskId===e.id):e.tasks,c=t.truncated?e.patchsets.slice(-1):e.patchsets;return l.every(e=>r("plan",e.id))&&d.every(e=>r("task",e.id))&&c.every(e=>r("patchset",e.id))}(r)?e:r},[e,t]),h=(0,n.useMemo)(()=>(function(e,t){var r;let n=e?.threadGraph;if(!n){if(!e?.threadId)return{nodes:[],emptyReason:"No thread is attached to this session yet."};let r=function(e){let t=[];for(let r of e.plans)t.push({depth:1,kind:"plan",id:r.id,label:r.title??r.summary??`Plan ${r.id}`,tags:r.status?[r.status]:[]});for(let r of e.tasks)t.push({depth:2,kind:"task",id:r.id,label:r.title??`Task ${r.id}`,tags:r.status?[r.status]:[]});for(let r of e.patchsets)t.push({depth:4,kind:"patchset",id:r.id,label:`PatchSet ${r.id}`,tags:r.status?[r.status]:[]});return t}(e);return{threadId:e.threadId,nodes:r,loadError:t?.loadError,emptyReason:t?.loadError?void 0:0===r.length?"This thread has no Intent/Plan/Task/Run graph yet.":"Indexed thread version graph is unavailable; showing live plan/task/patchset heads only."}}return{threadId:(r=n).threadId,title:r.title,selectedPlanId:r.selectedPlanId,activeTaskId:r.activeTaskId,activeRunId:r.activeRunId,nodes:r.nodes.map(e=>({depth:e.depth,kind:e.kind,id:e.id,label:e.label,tags:e.tags??[]})),truncatedReason:function(e){if(!e.truncated)return;let t=e.nodes.length,r=e.totalNodeCount??t+(e.omittedNodeCount??0);return`Showing ${t} of ${r} version-graph nodes; older lineage omitted. Active heads are preserved.`}(r),emptyReason:0===r.nodes.length?"This thread has no Intent/Plan/Task/Run graph yet.":void 0}})(p,{loadError:e?.threadGraph||t?.threadId!==e?.threadId?void 0:t?.error}),[p,e?.threadGraph,e?.threadId,t]);return(0,r.jsx)(ex,{view:h})}class eC{baseUrl;constructor(e=""){this.baseUrl=e}async request(e,t){let r=await fetch(`${this.baseUrl}${e}`,{credentials:"same-origin",...t});if(!r.ok){let e,t=r.statusText;try{let n=await r.json();"string"==typeof n.error?.message&&(t=n.error.message),"string"==typeof n.error?.code&&(e=n.error.code)}catch{}throw{status:r.status,message:t,code:e}}return await r.json()}}function eR({title:e,totals:t,emptyLabel:n="No usage totals loaded."}){let s,a,i,o;return t?(0,r.jsxs)("section",{"aria-label":e,children:[(0,r.jsx)("h3",{children:e}),(0,r.jsxs)("dl",{children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("dt",{children:"Requests"}),(0,r.jsx)("dd",{children:t.requestCount})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("dt",{children:"Tokens"}),(0,r.jsx)("dd",{children:(s=String(t.totalTokens),"known"===t.usageStatus?s:`${s} (${t.usageStatus}; unknown_usage=${t.unknownUsageCount})`)})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("dt",{children:"Cost"}),(0,r.jsx)("dd",{children:(i="number"==typeof t.costUsd?`$${t.costUsd.toFixed(4)}`:void 0,o="number"==typeof t.costEstimateMicroDollars?`~$${(t.costEstimateMicroDollars/1e6).toFixed(4)}`:void 0,(a=i&&o?`${i} + ${o}`:i||o||"unknown","known"===t.costStatus)?a:`${a} (${t.costStatus}; unknown_cost=${t.unknownCostCount})`)})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("dt",{children:"Errors"}),(0,r.jsx)("dd",{children:"known"===t.errorStatus?0===t.failedCount?"none":`${t.failedCount} failed`:`${t.errorStatus}; failed=${t.failedCount}`})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("dt",{children:"Usage status"}),(0,r.jsx)("dd",{children:t.usageStatus})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("dt",{children:"Cost status"}),(0,r.jsx)("dd",{children:t.costStatus})]})]}),"known"!==t.usageStatus||"known"!==t.costStatus||"known"!==t.errorStatus?(0,r.jsxs)("p",{role:"status",children:["Incomplete usage — do not treat missing provider data as zero spend (unknown_usage=",t.unknownUsageCount,", unknown_cost=",t.unknownCostCount,")."]}):null]}):(0,r.jsxs)("section",{"aria-label":e,children:[(0,r.jsx)("h3",{children:e}),(0,r.jsx)("p",{children:n})]})}function e_({rows:e}){return void 0===e?(0,r.jsxs)("section",{"aria-label":"Sub-agent usage",children:[(0,r.jsx)("h3",{children:"Sub-agent attribution"}),(0,r.jsx)("p",{children:"Sub-agent attribution unavailable."})]}):0===e.length?(0,r.jsxs)("section",{"aria-label":"Sub-agent usage",children:[(0,r.jsx)("h3",{children:"Sub-agent attribution"}),(0,r.jsx)("p",{children:"No sub-agent usage rows."})]}):(0,r.jsxs)("section",{"aria-label":"Sub-agent usage",children:[(0,r.jsx)("h3",{children:"Sub-agent attribution"}),(0,r.jsx)("ul",{children:e.map(e=>{let t=e.agentName?.trim()||e.agentRunId||"sub-agent";return(0,r.jsx)("li",{children:(0,r.jsx)(eR,{title:`Sub-agent: ${t}`,totals:e.totals})},`${e.agentRunId??""}:${e.agentName??""}:${t}`)})})]})}function eT({model:e,busy:t=!1,error:n,deferredHint:s,onRefresh:a}){return(0,r.jsxs)("div",{"aria-label":"Usage workspace",children:[(0,r.jsx)("h2",{children:"Usage"}),s?(0,r.jsx)("p",{children:s}):null,e?.sessionId?(0,r.jsxs)("p",{children:["Session: ",e.sessionId]}):null,e?.turnId?(0,r.jsxs)("p",{children:["Turn: ",e.turnId]}):null,(0,r.jsx)("button",{type:"button",disabled:t,onClick:()=>void a(),children:"Refresh usage"}),(0,r.jsx)(eR,{title:"Cumulative",totals:e?.cumulative}),(0,r.jsx)(eR,{title:"Current turn",totals:e?.turnDelta,emptyLabel:"No current-turn delta loaded."}),(0,r.jsx)(e_,{rows:e&&"unavailable"!==e.subAgentsStatus&&void 0!==e.subAgents?e.subAgents:void 0}),n?(0,r.jsx)("p",{role:"alert",children:n}):null]})}function eE({api:e,initialModel:t}){let{snapshot:s}=u(),a=(0,n.useMemo)(()=>e??function(e=new eC){return{fetchReadModel(t={}){let r=new URLSearchParams;t.sessionId&&r.set("sessionId",t.sessionId),t.threadId&&r.set("threadId",t.threadId),t.turnId&&r.set("turnId",t.turnId);let n=r.toString();return e.request(`/api/code/usage${n?`?${n}`:""}`)}}}(),[e]),i=s?.sessionId,o=s?.threadId,[l,d]=(0,n.useState)(t),[c,p]=(0,n.useState)(!1),[h,f]=(0,n.useState)(),[m,g]=(0,n.useState)(),b=(0,n.useRef)(0),v=`${i??""}::${o??""}`,y=(0,n.useRef)(v),x=(0,n.useCallback)(async()=>{if(!i)return;let e=++b.current;p(!0),f(void 0);try{let t=await a.fetchReadModel({sessionId:i,threadId:o});if(e!==b.current)return;d(t),g(void 0)}catch(t){if(e!==b.current)return;if(function(e){if(!e||"object"!=typeof e)return!1;let t=e.status,r=e.code;return 404===t||"CODE_UI_UNAVAILABLE"===r||"UNSUPPORTED_OPERATION"===r}(t)){d(void 0),g("Usage query HTTP lands in W3-01. Until then this panel stays empty unless a fixture/injected transport supplies the W2-12 read model.");return}f(t&&"object"==typeof t&&"message"in t&&"string"==typeof t.message?t.message:"Request failed. Try again.")}finally{e===b.current&&p(!1)}},[a,i,o]);return(0,n.useEffect)(()=>{t||i&&(y.current!==v&&(y.current=v,d(void 0),f(void 0),g(void 0)),x())},[t,x,v,i]),(0,r.jsx)(eT,{model:l,busy:c,error:h,deferredHint:m,onRefresh:()=>void x()})}function eI(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function e$(e){return"post_plan_choice"===e.kind&&!!eI(e.metadata)&&"networkPolicy"===e.metadata.phase}function eA(e){return"intent_review_choice"===e.kind}let eO=new Set(["confirm","modify","cancel"]),eq=new Set(["execute","modify","cancel"]),eN=new Set(["network-deny","network-allow","back"]);function eU(e){switch(e){case"intent_review":return"IntentSpec review";case"plan_review":return"Plan review";case"network_policy":return"Network policy"}}function eL({kind:e,interaction:t,plans:s=[],networkAccess:a,respondEnabled:i=!0,cancelEnabled:o=!0,busy:l=!1,error:d,onRespond:c,onCancelTurn:u}){let[p,h]=(0,n.useState)(),f=async e=>{if(!l){h(void 0);try{await e()}catch(e){h(e instanceof Error?e.message:"Could not deliver this workflow choice.")}}};return(0,r.jsxs)("section",{"aria-label":`${eU(e)} panel`,children:[(0,r.jsx)("h2",{children:t.title??eU(e)}),t.description?(0,r.jsx)("p",{children:t.description}):null,t.prompt?(0,r.jsx)("pre",{children:t.prompt}):null,"plan_review"===e||"network_policy"===e?(0,r.jsx)("div",{children:s.map(e=>(0,r.jsxs)("div",{children:[(0,r.jsxs)("p",{children:["Plan ",e.id,e.title?`: ${e.title}`:""]}),(0,r.jsx)("ul",{children:e.steps.map(e=>(0,r.jsxs)("li",{children:[e.step," (",e.status,")"]},e.step))})]},e.id))}):null,"network_policy"===e?(0,r.jsxs)("p",{role:"status",children:["Requested network access: ",a?"enabled":"disabled"," (explicit choice required; defaults are not applied automatically)."]}):null,i?null:(0,r.jsx)("p",{role:"status",children:"This session cannot resolve workflow choices from the browser right now. Cancel the turn here, or retry once the controller can write."}),(0,r.jsx)("div",{children:t.options.map(n=>(0,r.jsx)("button",{type:"button",disabled:l||!i,onClick:()=>void f(async()=>{await c(t.id,function(e,t){let r,n=(r=t.trim())?("intent_review"===e?eO:"plan_review"===e?eq:eN).has(r)?void 0:`Unsupported workflow option: ${r}`:"Select a workflow option before continuing.";if(n)throw Error(n);return{selectedOption:t.trim(),answers:{}}}(e,n.id))}),children:n.label},n.id))}),(0,r.jsx)("button",{type:"button",disabled:l||!o,onClick:()=>void f(async()=>u()),children:"Cancel turn"}),p||d?(0,r.jsx)("p",{role:"alert",children:p??d}):null]})}function eP({view:e,respondEnabled:t=!0,cancelEnabled:n=!0,busy:s,error:a,onRespond:i,onCancelTurn:o}){return e.kind&&e.interaction?(0,r.jsx)("div",{"aria-label":"Workflow review workspace",children:(0,r.jsx)(eL,{kind:e.kind,interaction:e.interaction,plans:e.plans,networkAccess:e.networkAccess,respondEnabled:t,cancelEnabled:n,busy:s,error:a,onRespond:i,onCancelTurn:o})}):null}function eD(){let{snapshot:e}=u(),t=m(),s=(0,n.useMemo)(()=>(function(e){var t;if(!e)return{plans:[]};let r=e.interactions.find(e=>"pending"===e.status&&(eA(e)||"post_plan_choice"===e.kind&&!e$(e)||e$(e)));if(!r)return{plans:e.plans};let n=eI(t=r.metadata)?{intentId:"string"==typeof t.intentId?t.intentId:void 0,planId:"string"==typeof t.planId?t.planId:void 0,networkAccess:"boolean"==typeof t.networkAccess?t.networkAccess:void 0}:{};return eA(r)?{kind:"intent_review",interaction:r,plans:e.plans,...n}:e$(r)?{kind:"network_policy",interaction:r,plans:e.plans,...n}:{kind:"plan_review",interaction:r,plans:e.plans,...n}})(e),[e]),[a,i]=(0,n.useState)(!1),[o,l]=(0,n.useState)(),d=(0,n.useRef)(!1),c=!!(e&&(e.provider,1)),p=!!e,h=(0,n.useCallback)(async e=>{if(!d.current){d.current=!0,i(!0),l(void 0);try{await e()}catch(e){l(e&&"object"==typeof e&&"message"in e&&"string"==typeof e.message?e.message:"Request failed. Try again.")}finally{d.current=!1,i(!1)}}},[]);return(0,r.jsx)(eP,{view:s,respondEnabled:c,cancelEnabled:p,busy:a,error:o,onRespond:(e,r)=>void h(async()=>{await t.respond(e,r)}),onCancelTurn:()=>void h(async()=>{await t.cancel()})})}function eM(){let{snapshot:e,error:t}=u(),n={phase:B(e),title:e?.provider.model??e?.provider.provider??"Libra Code",canWrite:!!(e?.controller.canWrite&&e.capabilities.messageInput),pendingInteractionCount:e?.interactions.filter(e=>"pending"===e.status).length??0,isStreaming:!!e?.transcript.some(e=>e.streaming)};return(0,r.jsxs)("main",{style:{maxWidth:720,margin:"4rem auto",padding:"1.5rem"},children:[(0,r.jsx)("h1",{children:"Libra — Agent Workspace"}),(0,r.jsx)("p",{children:"Shared browser foundation is ready."}),(0,r.jsx)("p",{"aria-live":"polite",children:t?"Session unavailable":e?`${n.title}: ${n.phase}`:"Loading session…"}),(0,r.jsx)(g,{}),(0,r.jsx)(H,{}),(0,r.jsx)(P,{}),(0,r.jsx)(Y,{}),(0,r.jsx)(eE,{}),(0,r.jsx)(eS,{}),(0,r.jsx)(R,{}),(0,r.jsx)(eD,{}),(0,r.jsx)(eb,{})]})}e.s(["default",0,function(){let e=(0,n.useMemo)(()=>{var e;let r;return e=o(),t=r={allowOnce:!0,cached:void 0,lastCursor:void 0,pending:[],holdReconnect:!1,useV1:!1},{...e,async snapshot(){if(!r.allowOnce&&r.cached)return el(r),r.cached;try{let t=await e.snapshot();r.cached=t,r.allowOnce=!1,el(r),ei(r);let n=r.startOnCached;return r.startOnCached=void 0,r.bootstrapOnError=void 0,n?.(),r.cached??t}catch(t){let e=r.bootstrapOnError;throw r.startOnCached=void 0,r.bootstrapOnError=void 0,e&&(ea(),e()),t}},observe(t,n){if("function"!=typeof fetch||!0===globalThis.IS_REACT_ACT_ENVIRONMENT||r.useV1)return e.observe(t,()=>{ea(),n()});let s=new AbortController,a=()=>{s.signal.aborted||r.holdReconnect||ed(r,e,t,n,s)};if(r.cached&&!r.holdReconnect)a();else{let e=r.startOnCached;r.bootstrapOnError=n,r.startOnCached=()=>{e?.(),a()}}return{close:()=>s.abort()}}}},[]);return(0,r.jsx)(c,{client:e,children:(0,r.jsx)(f,{children:(0,r.jsx)(eM,{})})})}],52683)}]); \ No newline at end of file diff --git a/web/out/_next/static/chunks/03~yq9q893hmn.js b/web/out/_next/static/chunks/03~yq9q893hmn.js deleted file mode 100644 index ab422b94a..000000000 --- a/web/out/_next/static/chunks/03~yq9q893hmn.js +++ /dev/null @@ -1 +0,0 @@ -!function(){var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){var e={exports:{}};return t(e,e.exports),e.exports}var r,n,o=function(t){return t&&t.Math===Math&&t},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof t&&t)||o("object"==typeof t&&t)||function(){return this}()||Function("return this")(),a=function(t){try{return!!t()}catch(t){return!0}},u=!a(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),s=!a(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}),c=Function.prototype.call,f=s?c.bind(c):function(){return c.apply(c,arguments)},l={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,p=h&&!l.call({1:2},1)?function(t){var e=h(this,t);return!!e&&e.enumerable}:l,v={f:p},d=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},g=Function.prototype,y=g.call,m=s&&g.bind.bind(y,y),b=s?m:function(t){return function(){return y.apply(t,arguments)}},w=b({}.toString),S=b("".slice),E=function(t){return S(w(t),8,-1)},O=Object,x=b("".split),R=a(function(){return!O("z").propertyIsEnumerable(0)})?function(t){return"String"===E(t)?x(t,""):O(t)}:O,P=function(t){return null==t},A=TypeError,j=function(t){if(P(t))throw new A("Can't call method on "+t);return t},k=function(t){return R(j(t))},I="object"==typeof document&&document.all,T=void 0===I&&void 0!==I?function(t){return"function"==typeof t||t===I}:function(t){return"function"==typeof t},M=function(t){return"object"==typeof t?null!==t:T(t)},L=function(t,e){return arguments.length<2?T(r=i[t])?r:void 0:i[t]&&i[t][e];var r},U=b({}.isPrototypeOf),N=i.navigator,C=N&&N.userAgent,_=C?String(C):"",F=i.process,B=i.Deno,D=F&&F.versions||B&&B.version,z=D&&D.v8;z&&(n=(r=z.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!n&&_&&(!(r=_.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=_.match(/Chrome\/(\d+)/))&&(n=+r[1]);var W=n,q=i.String,H=!!Object.getOwnPropertySymbols&&!a(function(){var t=Symbol("symbol detection");return!q(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&W&&W<41}),$=H&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,K=Object,G=$?function(t){return"symbol"==typeof t}:function(t){var e=L("Symbol");return T(e)&&U(e.prototype,K(t))},V=String,Y=function(t){try{return V(t)}catch(t){return"Object"}},X=TypeError,J=function(t){if(T(t))return t;throw new X(Y(t)+" is not a function")},Q=function(t,e){var r=t[e];return P(r)?void 0:J(r)},Z=TypeError,tt=Object.defineProperty,et=function(t,e){try{tt(i,t,{value:e,configurable:!0,writable:!0})}catch(r){i[t]=e}return e},rt=e(function(t){var e="__core-js_shared__",r=t.exports=i[e]||et(e,{});(r.versions||(r.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})}),nt=function(t,e){return rt[t]||(rt[t]=e||{})},ot=Object,it=function(t){return ot(j(t))},at=b({}.hasOwnProperty),ut=Object.hasOwn||function(t,e){return at(it(t),e)},st=0,ct=Math.random(),ft=b(1..toString),lt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ft(++st+ct,36)},ht=i.Symbol,pt=nt("wks"),vt=$?ht.for||ht:ht&&ht.withoutSetter||lt,dt=function(t){return ut(pt,t)||(pt[t]=H&&ut(ht,t)?ht[t]:vt("Symbol."+t)),pt[t]},gt=TypeError,yt=dt("toPrimitive"),mt=function(t,e){if(!M(t)||G(t))return t;var r,n=Q(t,yt);if(n){if(void 0===e&&(e="default"),r=f(n,t,e),!M(r)||G(r))return r;throw new gt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&T(r=t.toString)&&!M(n=f(r,t)))return n;if(T(r=t.valueOf)&&!M(n=f(r,t)))return n;if("string"!==e&&T(r=t.toString)&&!M(n=f(r,t)))return n;throw new Z("Can't convert object to primitive value")}(t,e)},bt=function(t){var e=mt(t,"string");return G(e)?e:e+""},wt=i.document,St=M(wt)&&M(wt.createElement),Et=function(t){return St?wt.createElement(t):{}},Ot=!u&&!a(function(){return 7!==Object.defineProperty(Et("div"),"a",{get:function(){return 7}}).a}),xt=Object.getOwnPropertyDescriptor,Rt={f:u?xt:function(t,e){if(t=k(t),e=bt(e),Ot)try{return xt(t,e)}catch(t){}if(ut(t,e))return d(!f(v.f,t,e),t[e])}},Pt=u&&a(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),At=String,jt=TypeError,kt=function(t){if(M(t))return t;throw new jt(At(t)+" is not an object")},It=TypeError,Tt=Object.defineProperty,Mt=Object.getOwnPropertyDescriptor,Lt="enumerable",Ut="configurable",Nt="writable",Ct={f:u?Pt?function(t,e,r){if(kt(t),e=bt(e),kt(r),"function"==typeof t&&"prototype"===e&&"value"in r&&Nt in r&&!r[Nt]){var n=Mt(t,e);n&&n[Nt]&&(t[e]=r.value,r={configurable:Ut in r?r[Ut]:n[Ut],enumerable:Lt in r?r[Lt]:n[Lt],writable:!1})}return Tt(t,e,r)}:Tt:function(t,e,r){if(kt(t),e=bt(e),kt(r),Ot)try{return Tt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new It("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},_t=u?function(t,e,r){return Ct.f(t,e,d(1,r))}:function(t,e,r){return t[e]=r,t},Ft=Function.prototype,Bt=u&&Object.getOwnPropertyDescriptor,Dt=ut(Ft,"name"),zt={EXISTS:Dt,PROPER:Dt&&"something"===function(){}.name,CONFIGURABLE:Dt&&(!u||u&&Bt(Ft,"name").configurable)},Wt=b(Function.toString);T(rt.inspectSource)||(rt.inspectSource=function(t){return Wt(t)});var qt,Ht,$t,Kt=rt.inspectSource,Gt=i.WeakMap,Vt=T(Gt)&&/native code/.test(String(Gt)),Yt=nt("keys"),Xt=function(t){return Yt[t]||(Yt[t]=lt(t))},Jt={},Qt="Object already initialized",Zt=i.TypeError;if(Vt||rt.state){var te=rt.state||(rt.state=new(0,i.WeakMap));te.get=te.get,te.has=te.has,te.set=te.set,qt=function(t,e){if(te.has(t))throw new Zt(Qt);return e.facade=t,te.set(t,e),e},Ht=function(t){return te.get(t)||{}},$t=function(t){return te.has(t)}}else{var ee=Xt("state");Jt[ee]=!0,qt=function(t,e){if(ut(t,ee))throw new Zt(Qt);return e.facade=t,_t(t,ee,e),e},Ht=function(t){return ut(t,ee)?t[ee]:{}},$t=function(t){return ut(t,ee)}}var re,ne={set:qt,get:Ht,has:$t,enforce:function(t){return $t(t)?Ht(t):qt(t,{})},getterFor:function(t){return function(e){var r;if(!M(e)||(r=Ht(e)).type!==t)throw new Zt("Incompatible receiver, "+t+" required");return r}}},oe=e(function(t){var e=zt.CONFIGURABLE,r=ne.enforce,n=ne.get,o=String,i=Object.defineProperty,s=b("".slice),c=b("".replace),f=b([].join),l=u&&!a(function(){return 8!==i(function(){},"length",{value:8}).length}),h=String(String).split("String"),p=t.exports=function(t,n,a){"Symbol("===s(o(n),0,7)&&(n="["+c(o(n),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),a&&a.getter&&(n="get "+n),a&&a.setter&&(n="set "+n),(!ut(t,"name")||e&&t.name!==n)&&(u?i(t,"name",{value:n,configurable:!0}):t.name=n),l&&a&&ut(a,"arity")&&t.length!==a.arity&&i(t,"length",{value:a.arity});try{a&&ut(a,"constructor")&&a.constructor?u&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var p=r(t);return ut(p,"source")||(p.source=f(h,"string"==typeof n?n:"")),t};Function.prototype.toString=p(function(){return T(this)&&n(this).source||Kt(this)},"toString")}),ie=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(T(r)&&oe(r,i,n),n.global)o?t[e]=r:et(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:Ct.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},ae=Math.ceil,ue=Math.floor,se=Math.trunc||function(t){var e=+t;return(e>0?ue:ae)(e)},ce=function(t){var e=+t;return e!=e||0===e?0:se(e)},fe=Math.max,le=Math.min,he=function(t,e){var r=ce(t);return r<0?fe(r+e,0):le(r,e)},pe=Math.min,ve=function(t){var e=ce(t);return e>0?pe(e,9007199254740991):0},de=function(t){return ve(t.length)},ge=function(t){return function(e,r,n){var o=k(e),i=de(o);if(0===i)return!t&&-1;var a,u=he(n,i);if(t&&r!=r){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((t||u in o)&&o[u]===r)return t||u||0;return!t&&-1}},ye={includes:ge(!0),indexOf:ge(!1)},me=ye.indexOf,be=b([].push),we=function(t,e){var r,n=k(t),o=0,i=[];for(r in n)!ut(Jt,r)&&ut(n,r)&&be(i,r);for(;e.length>o;)ut(n,r=e[o++])&&(~me(i,r)||be(i,r));return i},Se=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ee=Se.concat("length","prototype"),Oe={f:Object.getOwnPropertyNames||function(t){return we(t,Ee)}},xe={f:Object.getOwnPropertySymbols},Re=b([].concat),Pe=L("Reflect","ownKeys")||function(t){var e=Oe.f(kt(t)),r=xe.f;return r?Re(e,r(t)):e},Ae=function(t,e,r){for(var n=Pe(e),o=Ct.f,i=Rt.f,a=0;aa;)Ct.f(t,r=o[a++],n[r]);return t},Be={f:Fe},De=L("document","documentElement"),ze="prototype",We="script",qe=Xt("IE_PROTO"),He=function(){},$e=function(t){return"<"+We+">"+t+""},Ke=function(t){t.write($e("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ge=function(){try{re=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;Ge="undefined"!=typeof document?document.domain&&re?Ke(re):(e=Et("iframe"),r="java"+We+":",e.style.display="none",De.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write($e("document.F=Object")),t.close(),t.F):Ke(re);for(var n=Se.length;n--;)delete Ge[ze][Se[n]];return Ge()};Jt[qe]=!0;var Ve=Object.create||function(t,e){var r;return null!==t?(He[ze]=kt(t),r=new He,He[ze]=null,r[qe]=t):r=Ge(),void 0===e?r:Be.f(r,e)},Ye=Ct.f,Xe=dt("unscopables"),Je=Array.prototype;void 0===Je[Xe]&&Ye(Je,Xe,{configurable:!0,value:Ve(null)});var Qe=function(t){Je[Xe][t]=!0};Ce({target:"Array",proto:!0},{at:function(t){var e=it(this),r=de(e),n=ce(t),o=n>=0?n:r+n;return o<0||o>=r?void 0:e[o]}}),Qe("at");var Ze=function(t,e){return b(i[t].prototype[e])},tr=(Ze("Array","at"),TypeError),er=function(t,e){if(!delete t[e])throw new tr("Cannot delete property "+Y(e)+" of "+Y(t))},rr=Math.min,nr=[].copyWithin||function(t,e){var r=it(this),n=de(r),o=he(t,n),i=he(e,n),a=arguments.length>2?arguments[2]:void 0,u=rr((void 0===a?n:he(a,n))-i,n-o),s=1;for(i0;)i in r?r[o]=r[i]:er(r,o),o+=s,i+=s;return r};Ce({target:"Array",proto:!0},{copyWithin:nr}),Qe("copyWithin"),Ze("Array","copyWithin"),Ce({target:"Array",proto:!0},{fill:function(t){for(var e=it(this),r=de(e),n=arguments.length,o=he(n>1?arguments[1]:void 0,r),i=n>2?arguments[2]:void 0,a=void 0===i?r:he(i,r);a>o;)e[o++]=t;return e}}),Qe("fill"),Ze("Array","fill");var or=function(t){if("Function"===E(t))return b(t)},ir=or(or.bind),ar=function(t,e){return J(t),void 0===e?t:s?ir(t,e):function(){return t.apply(e,arguments)}},ur=Array.isArray||function(t){return"Array"===E(t)},sr={};sr[dt("toStringTag")]="z";var cr="[object z]"===String(sr),fr=dt("toStringTag"),lr=Object,hr="Arguments"===E(function(){return arguments}()),pr=cr?E:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=lr(t),fr))?r:hr?E(e):"Object"===(n=E(e))&&T(e.callee)?"Arguments":n},vr=function(){},dr=L("Reflect","construct"),gr=/^\s*(?:class|function)\b/,yr=b(gr.exec),mr=!gr.test(vr),br=function(t){if(!T(t))return!1;try{return dr(vr,[],t),!0}catch(t){return!1}},wr=function(t){if(!T(t))return!1;switch(pr(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return mr||!!yr(gr,Kt(t))}catch(t){return!0}};wr.sham=!0;var Sr=!dr||a(function(){var t;return br(br.call)||!br(Object)||!br(function(){t=!0})||t})?wr:br,Er=dt("species"),Or=Array,xr=function(t,e){return new(function(t){var e;return ur(t)&&(Sr(e=t.constructor)&&(e===Or||ur(e.prototype))||M(e)&&null===(e=e[Er]))&&(e=void 0),void 0===e?Or:e}(t))(0===e?0:e)},Rr=b([].push),Pr=function(t){var e=1===t,r=2===t,n=3===t,o=4===t,i=6===t,a=7===t,u=5===t||i;return function(s,c,f,l){for(var h,p,v=it(s),d=R(v),g=de(d),y=ar(c,f),m=0,b=l||xr,w=e?b(s,g):r||a?b(s,0):void 0;g>m;m++)if((u||m in d)&&(p=y(h=d[m],m,v),t))if(e)w[m]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:Rr(w,h)}else switch(t){case 4:return!1;case 7:Rr(w,h)}return i?-1:n||o?o:w}},Ar={forEach:Pr(0),map:Pr(1),filter:Pr(2),some:Pr(3),every:Pr(4),find:Pr(5),findIndex:Pr(6),filterReject:Pr(7)},jr=Ar.find,kr="find",Ir=!0;kr in[]&&Array(1)[kr](function(){Ir=!1}),Ce({target:"Array",proto:!0,forced:Ir},{find:function(t){return jr(this,t,arguments.length>1?arguments[1]:void 0)}}),Qe(kr),Ze("Array","find");var Tr=Ar.findIndex,Mr="findIndex",Lr=!0;Mr in[]&&Array(1)[Mr](function(){Lr=!1}),Ce({target:"Array",proto:!0,forced:Lr},{findIndex:function(t){return Tr(this,t,arguments.length>1?arguments[1]:void 0)}}),Qe(Mr),Ze("Array","findIndex");var Ur=TypeError,Nr=function(t){if(t>9007199254740991)throw Ur("Maximum allowed index exceeded");return t},Cr=function(t,e,r,n,o,i,a,u){for(var s,c,f=o,l=0,h=!!a&&ar(a,u);l0&&ur(s)?(c=de(s),f=Cr(t,e,s,c,f,i-1)-1):(Nr(f+1),t[f]=s),f++),l++;return f},_r=Cr;Ce({target:"Array",proto:!0},{flatMap:function(t){var e,r=it(this),n=de(r);return J(t),(e=xr(r,0)).length=_r(e,r,r,n,0,1,t,arguments.length>1?arguments[1]:void 0),e}}),Qe("flatMap"),Ze("Array","flatMap"),Ce({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=it(this),r=de(e),n=xr(e,0);return n.length=_r(n,e,e,r,0,void 0===t?1:ce(t)),n}}),Qe("flat"),Ze("Array","flat");var Fr,Br,Dr,zr=String,Wr=function(t){if("Symbol"===pr(t))throw new TypeError("Cannot convert a Symbol value to a string");return zr(t)},qr=b("".charAt),Hr=b("".charCodeAt),$r=b("".slice),Kr=function(t){return function(e,r){var n,o,i=Wr(j(e)),a=ce(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=Hr(i,a))<55296||n>56319||a+1===u||(o=Hr(i,a+1))<56320||o>57343?t?qr(i,a):n:t?$r(i,a,a+2):o-56320+(n-55296<<10)+65536}},Gr={codeAt:Kr(!1),charAt:Kr(!0)},Vr=!a(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Yr=Xt("IE_PROTO"),Xr=Object,Jr=Xr.prototype,Qr=Vr?Xr.getPrototypeOf:function(t){var e=it(t);if(ut(e,Yr))return e[Yr];var r=e.constructor;return T(r)&&e instanceof r?r.prototype:e instanceof Xr?Jr:null},Zr=dt("iterator"),tn=!1;[].keys&&("next"in(Dr=[].keys())?(Br=Qr(Qr(Dr)))!==Object.prototype&&(Fr=Br):tn=!0);var en=!M(Fr)||a(function(){var t={};return Fr[Zr].call(t)!==t});en&&(Fr={}),T(Fr[Zr])||ie(Fr,Zr,function(){return this});var rn={IteratorPrototype:Fr,BUGGY_SAFARI_ITERATORS:tn},nn=Ct.f,on=dt("toStringTag"),an=function(t,e,r){t&&!r&&(t=t.prototype),t&&!ut(t,on)&&nn(t,on,{configurable:!0,value:e})},un={},sn=rn.IteratorPrototype,cn=function(){return this},fn=function(t,e,r,n){var o=e+" Iterator";return t.prototype=Ve(sn,{next:d(+!n,r)}),an(t,o,!1),un[o]=cn,t},ln=function(t,e,r){try{return b(J(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}},hn=String,pn=TypeError,vn=function(t){if(function(t){return M(t)||null===t}(t))return t;throw new pn("Can't set "+hn(t)+" as a prototype")},dn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=ln(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return j(r),vn(n),M(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0),gn=zt.PROPER,yn=zt.CONFIGURABLE,mn=rn.IteratorPrototype,bn=rn.BUGGY_SAFARI_ITERATORS,wn=dt("iterator"),Sn="keys",En="values",On="entries",xn=function(){return this},Rn=function(t,e,r,n,o,i,a){fn(r,e,n);var u,s,c,l=function(t){if(t===o&&g)return g;if(!bn&&t&&t in v)return v[t];switch(t){case Sn:case En:case On:return function(){return new r(this,t)}}return function(){return new r(this)}},h=e+" Iterator",p=!1,v=t.prototype,d=v[wn]||v["@@iterator"]||o&&v[o],g=!bn&&d||l(o),y="Array"===e&&v.entries||d;if(y&&(u=Qr(y.call(new t)))!==Object.prototype&&u.next&&(Qr(u)!==mn&&(dn?dn(u,mn):T(u[wn])||ie(u,wn,xn)),an(u,h,!0)),gn&&o===En&&d&&d.name!==En&&(yn?_t(v,"name",En):(p=!0,g=function(){return f(d,this)})),o)if(s={values:l(En),keys:i?g:l(Sn),entries:l(On)},a)for(c in s)(bn||p||!(c in v))&&ie(v,c,s[c]);else Ce({target:e,proto:!0,forced:bn||p},s);return v[wn]!==g&&ie(v,wn,g,{name:o}),un[e]=g,s},Pn=function(t,e){return{value:t,done:e}},An=Gr.charAt,jn="String Iterator",kn=ne.set,In=ne.getterFor(jn);Rn(String,"String",function(t){kn(this,{type:jn,string:Wr(t),index:0})},function(){var t,e=In(this),r=e.string,n=e.index;return n>=r.length?Pn(void 0,!0):(t=An(r,n),e.index+=t.length,Pn(t,!1))});var Tn=function(t,e,r){var n,o;kt(t);try{if(!(n=Q(t,"return"))){if("throw"===e)throw r;return r}n=f(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return kt(n),r},Mn=function(t,e,r,n){try{return n?e(kt(r)[0],r[1]):e(r)}catch(e){Tn(t,"throw",e)}},Ln=dt("iterator"),Un=Array.prototype,Nn=function(t){return void 0!==t&&(un.Array===t||Un[Ln]===t)},Cn=function(t,e,r){u?Ct.f(t,e,d(0,r)):t[e]=r},_n=dt("iterator"),Fn=function(t){if(!P(t))return Q(t,_n)||Q(t,"@@iterator")||un[pr(t)]},Bn=TypeError,Dn=function(t,e){var r=arguments.length<2?Fn(t):e;if(J(r))return kt(f(r,t));throw new Bn(Y(t)+" is not iterable")},zn=Array,Wn=function(t){var e=it(t),r=Sr(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=ar(o,n>2?arguments[2]:void 0));var a,u,s,c,l,h,p=Fn(e),v=0;if(!p||this===zn&&Nn(p))for(a=de(e),u=r?new this(a):zn(a);a>v;v++)h=i?o(e[v],v):e[v],Cn(u,v,h);else for(u=r?new this:[],l=(c=Dn(e,p)).next;!(s=f(l,c)).done;v++)h=i?Mn(c,o,[s.value,v],!0):s.value,Cn(u,v,h);return u.length=v,u},qn=dt("iterator"),Hn=!1;try{var $n=0,Kn={next:function(){return{done:!!$n++}},return:function(){Hn=!0}};Kn[qn]=function(){return this},Array.from(Kn,function(){throw 2})}catch(t){}var Gn=function(t,e){try{if(!e&&!Hn)return!1}catch(t){return!1}var r=!1;try{var n={};n[qn]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},Vn=!Gn(function(t){Array.from(t)});Ce({target:"Array",stat:!0,forced:Vn},{from:Wn});var Yn=i,Xn=ye.includes,Jn=a(function(){return!Array(1).includes()});Ce({target:"Array",proto:!0,forced:Jn},{includes:function(t){return Xn(this,t,arguments.length>1?arguments[1]:void 0)}}),Qe("includes"),Ze("Array","includes");var Qn=Ct.f,Zn="Array Iterator",to=ne.set,eo=ne.getterFor(Zn),ro=Rn(Array,"Array",function(t,e){to(this,{type:Zn,target:k(t),index:0,kind:e})},function(){var t=eo(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,Pn(void 0,!0);switch(t.kind){case"keys":return Pn(r,!1);case"values":return Pn(e[r],!1)}return Pn([r,e[r]],!1)},"values"),no=un.Arguments=un.Array;if(Qe("keys"),Qe("values"),Qe("entries"),u&&"values"!==no.name)try{Qn(no,"name",{value:"values"})}catch(t){}cr||ie(Object.prototype,"toString",cr?{}.toString:function(){return"[object "+pr(this)+"]"},{unsafe:!0}),Ze("Array","values");var oo=Array,io=a(function(){function t(){}return!(oo.of.call(t)instanceof t)});Ce({target:"Array",stat:!0,forced:io},{of:function(){for(var t=0,e=arguments.length,r=new(Sr(this)?this:oo)(e);e>t;)Cn(r,t,arguments[t++]);return r.length=e,r}});var ao=dt("hasInstance"),uo=Function.prototype;ao in uo||Ct.f(uo,ao,{value:oe(function(t){if(!T(this)||!M(t))return!1;var e=this.prototype;return M(e)?U(e,t):t instanceof this},ao)}),dt("hasInstance");var so=function(t,e,r){return r.get&&oe(r.get,e,{getter:!0}),r.set&&oe(r.set,e,{setter:!0}),Ct.f(t,e,r)},co=zt.EXISTS,fo=Function.prototype,lo=b(fo.toString),ho=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,po=b(ho.exec);u&&!co&&so(fo,"name",{configurable:!0,get:function(){try{return po(ho,lo(this))[1]}catch(t){return""}}});var vo=b([].slice),go=Oe.f,yo="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],mo={f:function(t){return yo&&"Window"===E(t)?function(t){try{return go(t)}catch(t){return vo(yo)}}(t):go(k(t))}},bo=a(function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),wo=Object.isExtensible,So=a(function(){wo(1)})||bo?function(t){return!!M(t)&&(!bo||"ArrayBuffer"!==E(t))&&(!wo||wo(t))}:wo,Eo=!a(function(){return Object.isExtensible(Object.preventExtensions({}))}),Oo=e(function(t){var e=Ct.f,r=!1,n=lt("meta"),o=0,i=function(t){e(t,n,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},r=!0;var t=Oe.f,e=b([].splice),o={};o[n]=1,t(o).length&&(Oe.f=function(r){for(var o=t(r),i=0,a=o.length;ii;i++)if((u=y(t[i]))&&U(Po,u))return u;return new Ro(!1)}n=Dn(t,o)}for(s=h?t.next:n.next;!(c=f(s,n)).done;){try{u=y(c.value)}catch(t){Tn(n,"throw",t)}if("object"==typeof u&&u&&U(Po,u))return u}return new Ro(!1)},jo=TypeError,ko=function(t,e){if(U(e,t))return t;throw new jo("Incorrect invocation")},Io=function(t,e,r){var n,o;return dn&&T(n=e.constructor)&&n!==r&&M(o=n.prototype)&&o!==r.prototype&&dn(t,o),t},To=function(t,e,r){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),u=n?"set":"add",s=i[t],c=s&&s.prototype,f=s,l={},h=function(t){var e=b(c[t]);ie(c,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(o&&!M(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return o&&!M(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(o&&!M(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(Ue(t,!T(s)||!(o||c.forEach&&!a(function(){(new s).entries().next()}))))f=r.getConstructor(e,t,n,u),Oo.enable();else if(Ue(t,!0)){var p=new f,v=p[u](o?{}:-0,1)!==p,d=a(function(){p.has(1)}),g=Gn(function(t){new s(t)}),y=!o&&a(function(){for(var t=new s,e=5;e--;)t[u](e,e);return!t.has(-0)});g||((f=e(function(t,e){ko(t,c);var r=Io(new s,t,f);return P(e)||Ao(e,r[u],{that:r,AS_ENTRIES:n}),r})).prototype=c,c.constructor=f),(d||y)&&(h("delete"),h("has"),n&&h("get")),(y||v)&&h(u),o&&c.clear&&delete c.clear}return l[t]=f,Ce({global:!0,constructor:!0,forced:f!==s},l),an(f,t),o||r.setStrong(f,t,n),f},Mo=function(t,e,r){for(var n in e)ie(t,n,e[n],r);return t},Lo=dt("species"),Uo=function(t){var e=L(t);u&&e&&!e[Lo]&&so(e,Lo,{configurable:!0,get:function(){return this}})},No=Oo.fastKey,Co=ne.set,_o=ne.getterFor,Fo={getConstructor:function(t,e,r,n){var o=t(function(t,o){ko(t,i),Co(t,{type:e,index:Ve(null),first:null,last:null,size:0}),u||(t.size=0),P(o)||Ao(o,t[n],{that:t,AS_ENTRIES:r})}),i=o.prototype,a=_o(e),s=function(t,e,r){var n,o,i=a(t),s=c(t,e);return s?s.value=r:(i.last=s={index:o=No(e,!0),key:e,value:r,previous:n=i.last,next:null,removed:!1},i.first||(i.first=s),n&&(n.next=s),u?i.size++:t.size++,"F"!==o&&(i.index[o]=s)),t},c=function(t,e){var r,n=a(t),o=No(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key===e)return r};return Mo(i,{clear:function(){for(var t=a(this),e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=null),e=e.next;t.first=t.last=null,t.index=Ve(null),u?t.size=0:this.size=0},delete:function(t){var e=this,r=a(e),n=c(e,t);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first===n&&(r.first=o),r.last===n&&(r.last=i),u?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=a(this),n=ar(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!c(this,t)}}),Mo(i,r?{get:function(t){var e=c(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}}),u&&so(i,"size",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=_o(e),i=_o(n);Rn(t,e,function(t,e){Co(this,{type:n,target:t,state:o(t),kind:e,last:null})},function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?Pn("keys"===e?r.key:"values"===e?r.value:[r.key,r.value],!1):(t.target=null,Pn(void 0,!0))},r?"entries":"values",!r,!0),Uo(e)}};To("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Fo);var Bo=Map.prototype,Do={Map:Map,set:b(Bo.set),get:b(Bo.get),has:b(Bo.has),remove:b(Bo.delete),proto:Bo},zo=Do.Map,Wo=Do.has,qo=Do.get,Ho=Do.set,$o=b([].push),Ko=a(function(){return 1!==zo.groupBy("ab",function(t){return t}).get("a").length});Ce({target:"Map",stat:!0,forced:Ko},{groupBy:function(t,e){j(t),J(e);var r=new zo,n=0;return Ao(t,function(t){var o=e(t,n++);Wo(r,o)?$o(qo(r,o),t):Ho(r,o,[t])}),r}});var Go={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Vo=Et("span").classList,Yo=Vo&&Vo.constructor&&Vo.constructor.prototype,Xo=Yo===Object.prototype?void 0:Yo,Jo=dt("iterator"),Qo=ro.values,Zo=function(t,e){if(t){if(t[Jo]!==Qo)try{_t(t,Jo,Qo)}catch(e){t[Jo]=Qo}if(an(t,e,!0),Go[e])for(var r in ro)if(t[r]!==ro[r])try{_t(t,r,ro[r])}catch(e){t[r]=ro[r]}}};for(var ti in Go)Zo(i[ti]&&i[ti].prototype,ti);Zo(Xo,"DOMTokenList");var ei=function(t,e,r){return function(n){var o=it(n),i=arguments.length,a=i>1?arguments[1]:void 0,u=void 0!==a,s=u?ar(a,i>2?arguments[2]:void 0):void 0,c=new t,f=0;return Ao(o,function(t){var n=u?s(t,f++):t;r?e(c,kt(n)[0],n[1]):e(c,n)}),c}};Ce({target:"Map",stat:!0,forced:!0},{from:ei(Do.Map,Do.set,!0)});var ri=function(t,e,r){return function(){for(var n=new t,o=arguments.length,i=0;i1?arguments[1]:void 0);return!1!==di(e,function(t,n){if(!r(t,n,e))return!1},!0)}});var gi=Do.Map,yi=Do.set;Ce({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(t){var e=oi(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=new gi;return di(e,function(t,o){r(t,o,e)&&yi(n,o,t)}),n}}),Ce({target:"Map",proto:!0,real:!0,forced:!0},{find:function(t){var e=oi(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=di(e,function(t,n){if(r(t,n,e))return{value:t}},!0);return n&&n.value}}),Ce({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(t){var e=oi(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=di(e,function(t,n){if(r(t,n,e))return{key:n}},!0);return n&&n.key}}),Ce({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(t){return!0===di(oi(this),function(e){if((r=e)===(n=t)||r!=r&&n!=n)return!0;var r,n},!0)}});var mi=Do.Map;Ce({target:"Map",stat:!0,forced:!0},{keyBy:function(t,e){var r=new(T(this)?this:mi);J(e);var n=J(r.set);return Ao(t,function(t){f(n,r,e(t),t)}),r}}),Ce({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(t){var e=di(oi(this),function(e,r){if(e===t)return{key:r}},!0);return e&&e.key}});var bi=Do.Map,wi=Do.set;Ce({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(t){var e=oi(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=new bi;return di(e,function(t,o){wi(n,r(t,o,e),t)}),n}});var Si=Do.Map,Ei=Do.set;Ce({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(t){var e=oi(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=new Si;return di(e,function(t,o){Ei(n,o,r(t,o,e))}),n}});var Oi=Do.set;Ce({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(t){for(var e=oi(this),r=arguments.length,n=0;n1?arguments[1]:void 0);return!0===di(e,function(t,n){if(r(t,n,e))return!0},!0)}});var Ri=TypeError,Pi=Do.get,Ai=Do.has,ji=Do.set;Ce({target:"Map",proto:!0,real:!0,forced:!0},{update:function(t,e){var r=oi(this),n=arguments.length;J(e);var o=Ai(r,t);if(!o&&n<3)throw new Ri("Updating absent value");var i=o?Pi(r,t):J(n>2?arguments[2]:void 0)(t,r);return ji(r,t,e(i,t,r)),r}});var ki=TypeError,Ii=function(t,e){var r,n=kt(this),o=J(n.get),i=J(n.has),a=J(n.set),u=arguments.length>2?arguments[2]:void 0;if(!T(e)&&!T(u))throw new ki("At least one callback required");return f(i,n,t)?(r=f(o,n,t),T(e)&&(r=e(r),f(a,n,t,r))):T(u)&&(r=u(),f(a,n,t,r)),r};Ce({target:"Map",proto:!0,real:!0,forced:!0},{upsert:Ii}),Ce({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:Ii});var Ti=b(1..valueOf),Mi="\t\n\v\f\r                 \u2028\u2029\ufeff",Li=b("".replace),Ui=RegExp("^["+Mi+"]+"),Ni=RegExp("(^|[^"+Mi+"])["+Mi+"]+$"),Ci=function(t){return function(e){var r=Wr(j(e));return 1&t&&(r=Li(r,Ui,"")),2&t&&(r=Li(r,Ni,"$1")),r}},_i={start:Ci(1),end:Ci(2),trim:Ci(3)},Fi=Oe.f,Bi=Rt.f,Di=Ct.f,zi=_i.trim,Wi="Number",qi=i[Wi],Hi=qi.prototype,$i=i.TypeError,Ki=b("".slice),Gi=b("".charCodeAt),Vi=Ue(Wi,!qi(" 0o1")||!qi("0b1")||qi("+0x1")),Yi=function(t){var e,r=arguments.length<1?0:qi(function(t){var e=mt(t,"number");return"bigint"==typeof e?e:function(t){var e,r,n,o,i,a,u,s,c=mt(t,"number");if(G(c))throw new $i("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=zi(c),43===(e=Gi(c,0))||45===e){if(88===(r=Gi(c,2))||120===r)return NaN}else if(48===e){switch(Gi(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(a=(i=Ki(c,2)).length,u=0;uo)return NaN;return parseInt(i,n)}return+c}(e)}(t));return U(Hi,e=this)&&a(function(){Ti(e)})?Io(Object(r),this,Yi):r};Yi.prototype=Hi,Vi&&(Hi.constructor=Yi),Ce({global:!0,constructor:!0,wrap:!0,forced:Vi},{Number:Yi}),Vi&&function(t,e){for(var r,n=u?Fi(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)ut(e,r=n[o])&&!ut(t,r)&&Di(t,r,Bi(e,r))}(Yn[Wi],qi),Ce({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)});var Xi=i.isFinite;Ce({target:"Number",stat:!0},{isFinite:Number.isFinite||function(t){return"number"==typeof t&&Xi(t)}});var Ji=Math.floor,Qi=Number.isInteger||function(t){return!M(t)&&isFinite(t)&&Ji(t)===t};Ce({target:"Number",stat:!0},{isInteger:Qi}),Ce({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});var Zi=Math.abs;Ce({target:"Number",stat:!0},{isSafeInteger:function(t){return Qi(t)&&Zi(t)<=9007199254740991}}),Ce({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991}),Ce({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991});var ta=_i.trim,ea=b("".charAt),ra=i.parseFloat,na=i.Symbol,oa=na&&na.iterator,ia=1/ra(Mi+"-0")!=-Infinity||oa&&!a(function(){ra(Object(oa))})?function(t){var e=ta(Wr(t)),r=ra(e);return 0===r&&"-"===ea(e,0)?-0:r}:ra;Ce({target:"Number",stat:!0,forced:Number.parseFloat!==ia},{parseFloat:ia});var aa=_i.trim,ua=i.parseInt,sa=i.Symbol,ca=sa&&sa.iterator,fa=/^[+-]?0x/i,la=b(fa.exec),ha=8!==ua(Mi+"08")||22!==ua(Mi+"0x16")||ca&&!a(function(){ua(Object(ca))})?function(t,e){var r=aa(Wr(t));return ua(r,e>>>0||(la(fa,r)?16:10))}:ua;Ce({target:"Number",stat:!0,forced:Number.parseInt!==ha},{parseInt:ha});var pa=b(v.f),va=b([].push),da=u&&a(function(){var t=Object.create(null);return t[2]=2,!pa(t,2)}),ga=function(t){return function(e){for(var r,n=k(e),o=_e(n),i=da&&null===Qr(n),a=o.length,s=0,c=[];a>s;)r=o[s++],u&&!(i?r in n:pa(n,r))||va(c,t?[r,n[r]]:n[r]);return c}},ya={entries:ga(!0),values:ga(!1)},ma=ya.entries;Ce({target:"Object",stat:!0},{entries:function(t){return ma(t)}}),Ce({target:"Object",stat:!0,sham:!u},{getOwnPropertyDescriptors:function(t){for(var e,r,n=k(t),o=Rt.f,i=Pe(n),a={},u=0;i.length>u;)void 0!==(r=o(n,e=i[u++]))&&Cn(a,e,r);return a}});var ba=a(function(){_e(1)});Ce({target:"Object",stat:!0,forced:ba},{keys:function(t){return _e(it(t))}});var wa=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};Ce({target:"Object",stat:!0},{is:wa});var Sa=ya.values;Ce({target:"Object",stat:!0},{values:function(t){return Sa(t)}}),Ce({target:"Object",stat:!0},{hasOwn:ut});var Ea=Function.prototype,Oa=Ea.apply,xa=Ea.call,Ra="object"==typeof Reflect&&Reflect.apply||(s?xa.bind(Oa):function(){return xa.apply(Oa,arguments)}),Pa=!a(function(){Reflect.apply(function(){})});Ce({target:"Reflect",stat:!0,forced:Pa},{apply:function(t,e,r){return Ra(J(t),e,kt(r))}});var Aa=Function,ja=b([].concat),ka=b([].join),Ia={},Ta=s?Aa.bind:function(t){var e=J(this),r=e.prototype,n=vo(arguments,1),o=function(){var r=ja(n,vo(arguments));return this instanceof o?function(t,e,r){if(!ut(Ia,e)){for(var n=[],o=0;ob)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")}),gs=Oe.f,ys=ne.enforce,ms=dt("match"),bs=i.RegExp,ws=bs.prototype,Ss=i.SyntaxError,Es=b(ws.exec),Os=b("".charAt),xs=b("".replace),Rs=b("".indexOf),Ps=b("".slice),As=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,js=/a/g,ks=/a/g,Is=new bs(js)!==js,Ts=cs.MISSED_STICKY,Ms=cs.UNSUPPORTED_Y,Ls=u&&(!Is||Ts||ps||ds||a(function(){return ks[ms]=!1,bs(js)!==js||bs(ks)===ks||"/a/i"!==String(bs(js,"i"))}));if(Ue("RegExp",Ls)){for(var Us=function(t,e){var r,n,o,i,a,u,s=U(ws,this),c=es(t),f=void 0===e,l=[],h=t;if(!s&&c&&f&&t.constructor===Us)return t;if((c||U(ws,t))&&(t=t.source,f&&(e=os(h))),t=void 0===t?"":Wr(t),e=void 0===e?"":Wr(e),h=t,ps&&"dotAll"in js&&(n=!!e&&Rs(e,"s")>-1)&&(e=xs(e,/s/g,"")),r=e,Ts&&"sticky"in js&&(o=!!e&&Rs(e,"y")>-1)&&Ms&&(e=xs(e,/y/g,"")),ds&&(i=function(t){for(var e,r=t.length,n=0,o="",i=[],a=Ve(null),u=!1,s=!1,c=0,f="";n<=r;n++){if("\\"===(e=Os(t,n)))e+=Os(t,++n);else if("]"===e)u=!1;else if(!u)switch(!0){case"["===e:u=!0;break;case"("===e:if(o+=e,"?:"===Ps(t,n+1,n+3))continue;Es(As,Ps(t,n+1))&&(n+=2,s=!0),c++;continue;case">"===e&&s:if(""===f||ut(a,f))throw new Ss("Invalid capture group name");a[f]=!0,i[i.length]=[f,c],s=!1,f="";continue}s?f+=e:o+=e}return[o,i]}(t),t=i[0],l=i[1]),a=Io(bs(t,e),s?this:ws,Us),(n||o||l.length)&&(u=ys(a),n&&(u.dotAll=!0,u.raw=Us(function(t){for(var e,r=t.length,n=0,o="",i=!1;n<=r;n++)"\\"!==(e=Os(t,n))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+Os(t,++n);return o}(t),r)),o&&(u.sticky=!0),l.length&&(u.groups=l)),t!==h)try{_t(a,"source",""===h?"(?:)":h)}catch(t){}return a},Ns=gs(bs),Cs=0;Ns.length>Cs;)ls(Us,bs,Ns[Cs++]);ws.constructor=Us,Us.prototype=ws,ie(i,"RegExp",Us,{constructor:!0})}Uo("RegExp");var _s=zt.PROPER,Fs="toString",Bs=RegExp.prototype,Ds=Bs[Fs];(a(function(){return"/a/b"!==Ds.call({source:"a",flags:"b"})})||_s&&Ds.name!==Fs)&&ie(Bs,Fs,function(){var t=kt(this);return"/"+Wr(t.source)+"/"+Wr(os(t))},{unsafe:!0});var zs=ne.get,Ws=RegExp.prototype,qs=TypeError;u&&ps&&so(Ws,"dotAll",{configurable:!0,get:function(){if(this!==Ws){if("RegExp"===E(this))return!!zs(this).dotAll;throw new qs("Incompatible receiver, RegExp required")}}});var Hs=ne.get,$s=nt("native-string-replace",String.prototype.replace),Ks=RegExp.prototype.exec,Gs=Ks,Vs=b("".charAt),Ys=b("".indexOf),Xs=b("".replace),Js=b("".slice),Qs=function(){var t=/a/,e=/b*/g;return f(Ks,t,"a"),f(Ks,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),Zs=cs.BROKEN_CARET,tc=void 0!==/()??/.exec("")[1];(Qs||tc||Zs||ps||ds)&&(Gs=function(t){var e,r,n,o,i,a,u,s=this,c=Hs(s),l=Wr(t),h=c.raw;if(h)return h.lastIndex=s.lastIndex,e=f(Gs,h,l),s.lastIndex=h.lastIndex,e;var p=c.groups,v=Zs&&s.sticky,d=f(rs,s),g=s.source,y=0,m=l;if(v&&(d=Xs(d,"y",""),-1===Ys(d,"g")&&(d+="g"),m=Js(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Vs(l,s.lastIndex-1))&&(g="(?: "+g+")",m=" "+m,y++),r=new RegExp("^(?:"+g+")",d)),tc&&(r=new RegExp("^"+g+"$(?!\\s)",d)),Qs&&(n=s.lastIndex),o=f(Ks,v?r:s,m),v?o?(o.input=Js(o.input,y),o[0]=Js(o[0],y),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Qs&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),tc&&o&&o.length>1&&f($s,o[0],r,function(){for(i=1;i]*>)/g,Oc=/\$([$&'`]|\d{1,2})/g,xc=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=Oc;return void 0!==o&&(o=it(o),s=Ec),wc(i,s,function(i,s){var c;switch(bc(s,0)){case"$":return"$";case"&":return t;case"`":return Sc(e,0,r);case"'":return Sc(e,a);case"<":c=o[Sc(s,1,-1)];break;default:var f=+s;if(0===f)return i;if(f>u){var l=mc(f/10);return 0===l?i:l<=u?void 0===n[l-1]?bc(s,1):n[l-1]+bc(s,1):i}c=n[f-1]}return void 0===c?"":c})},Rc=dt("replace"),Pc=Math.max,Ac=Math.min,jc=b([].concat),kc=b([].push),Ic=b("".indexOf),Tc=b("".slice),Mc="$0"==="a".replace(/./,"$0"),Lc=!!/./[Rc]&&""===/./[Rc]("a","$0"),Uc=!a(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")});pc("replace",function(t,e,r){var n=Lc?"$":"$0";return[function(t,r){var n=j(this),o=P(t)?void 0:Q(t,Rc);return o?f(o,t,n,r):f(e,Wr(n),t,r)},function(t,o){var i=kt(this),a=Wr(t);if("string"==typeof o&&-1===Ic(o,n)&&-1===Ic(o,"$<")){var u=r(e,i,a,o);if(u.done)return u.value}var s=T(o);s||(o=Wr(o));var c,f=i.global;f&&(c=i.unicode,i.lastIndex=0);for(var l,h=[];null!==(l=yc(i,a))&&(kc(h,l),f);)""===Wr(l[0])&&(i.lastIndex=dc(a,ve(i.lastIndex),c));for(var p,v="",d=0,g=0;g=d&&(v+=Tc(a,d,b)+y,d=b+m.length)}return v+Tc(a,d)}]},!Uc||!Mc||Lc),pc("search",function(t,e,r){return[function(e){var r=j(this),n=P(e)?void 0:Q(e,t);return n?f(n,e,r):new RegExp(e)[t](Wr(r))},function(t){var n=kt(this),o=Wr(t),i=r(e,n,o);if(i.done)return i.value;var a=n.lastIndex;wa(a,0)||(n.lastIndex=0);var u=yc(n,o);return wa(n.lastIndex,a)||(n.lastIndex=a),null===u?-1:u.index}]});var Nc=dt("species"),Cc=function(t,e){var r,n=kt(t).constructor;return void 0===n||P(r=kt(n)[Nc])?e:La(r)},_c=cs.UNSUPPORTED_Y,Fc=Math.min,Bc=b([].push),Dc=b("".slice),zc=!a(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}),Wc="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;pc("split",function(t,e,r){var n="0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:f(e,this,t,r)}:e;return[function(e,r){var o=j(this),i=P(e)?void 0:Q(e,t);return i?f(i,e,o,r):f(n,Wr(o),e,r)},function(t,o){var i=kt(this),a=Wr(t);if(!Wc){var u=r(n,i,a,o,n!==e);if(u.done)return u.value}var s=Cc(i,RegExp),c=i.unicode,f=new s(_c?"^(?:"+i.source+")":i,(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(_c?"g":"y")),l=void 0===o?4294967295:o>>>0;if(0===l)return[];if(0===a.length)return null===yc(f,a)?[a]:[];for(var h=0,p=0,v=[];p0;(n>>>=1)&&(e+=e))1&n&&(r+=e);return r},Kc=b($c),Gc=b("".slice),Vc=Math.ceil,Yc=function(t){return function(e,r,n){var o,i,a=Wr(j(e)),u=ve(r),s=a.length,c=void 0===n?" ":Wr(n);return u<=s||""===c?a:((i=Kc(c,Vc((o=u-s)/c.length))).length>o&&(i=Gc(i,0,o)),t?a+i:i+a)}},Xc={start:Yc(!1),end:Yc(!0)},Jc=Xc.start,Qc=Array,Zc=RegExp.escape,tf=b("".charAt),ef=b("".charCodeAt),rf=b(1.1.toString),nf=b([].join),of=/^[0-9a-z]/i,af=/^[$()*+./?[\\\]^{|}]/,uf=RegExp("^[!\"#%&',\\-:;<=>@`~"+Mi+"]"),sf=b(of.exec),cf={"\t":"t","\n":"n","\v":"v","\f":"f","\r":"r"},ff=function(t){var e=rf(ef(t,0),16);return e.length<3?"\\x"+Jc(e,2,"0"):"\\u"+Jc(e,4,"0")},lf=!Zc||"\\x61b"!==Zc("ab");Ce({target:"RegExp",stat:!0,forced:lf},{escape:function(t){!function(t){if("string"==typeof t)return t;throw new qc("Argument is not a string")}(t);for(var e=t.length,r=Qc(e),n=0;n=56320||n+1>=e||56320!=(64512&ef(t,n+1))?r[n]=ff(o):(r[n]=o,r[++n]=tf(t,n))}}return nf(r,"")}}),To("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Fo);var hf=Set.prototype,pf={Set:Set,add:b(hf.add),has:b(hf.has),remove:b(hf.delete),proto:hf},vf=pf.has,df=function(t){return vf(t),t},gf=pf.Set,yf=pf.proto,mf=b(yf.forEach),bf=b(yf.keys),wf=bf(new gf).next,Sf=function(t,e,r){return r?ci({iterator:bf(t),next:wf},e):mf(t,e)},Ef=pf.Set,Of=pf.add,xf=function(t){var e=new Ef;return Sf(t,function(t){Of(e,t)}),e},Rf=ln(pf.proto,"size","get")||function(t){return t.size},Pf="Invalid size",Af=RangeError,jf=TypeError,kf=Math.max,If=function(t,e){this.set=t,this.size=kf(e,0),this.has=J(t.has),this.keys=J(t.keys)};If.prototype={getIterator:function(){return{iterator:t=kt(f(this.keys,this.set)),next:t.next,done:!1};var t},includes:function(t){return f(this.has,this.set,t)}};var Tf=function(t){kt(t);var e=+t.size;if(e!=e)throw new jf(Pf);var r=ce(e);if(r<0)throw new Af(Pf);return new If(t,r)},Mf=pf.has,Lf=pf.remove,Uf=function(t){var e=df(this),r=Tf(t),n=xf(e);return Rf(e)<=r.size?Sf(e,function(t){r.includes(t)&&Lf(n,t)}):ci(r.getIterator(),function(t){Mf(e,t)&&Lf(n,t)}),n},Nf=function(t){return{size:t,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},Cf=function(t){var e=L("Set");try{(new e)[t](Nf(0));try{return(new e)[t](Nf(-1)),!1}catch(t){return!0}}catch(t){return!1}};Ce({target:"Set",proto:!0,real:!0,forced:!Cf("difference")},{difference:Uf});var _f=pf.Set,Ff=pf.add,Bf=pf.has,Df=function(t){var e=df(this),r=Tf(t),n=new _f;return Rf(e)>r.size?ci(r.getIterator(),function(t){Bf(e,t)&&Ff(n,t)}):Sf(e,function(t){r.includes(t)&&Ff(n,t)}),n},zf=!Cf("intersection")||a(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))});Ce({target:"Set",proto:!0,real:!0,forced:zf},{intersection:Df});var Wf=pf.has,qf=function(t){var e=df(this),r=Tf(t);if(Rf(e)<=r.size)return!1!==Sf(e,function(t){if(r.includes(t))return!1},!0);var n=r.getIterator();return!1!==ci(n,function(t){if(Wf(e,t))return Tn(n,"normal",!1)})};Ce({target:"Set",proto:!0,real:!0,forced:!Cf("isDisjointFrom")},{isDisjointFrom:qf});var Hf=function(t){var e=df(this),r=Tf(t);return!(Rf(e)>r.size)&&!1!==Sf(e,function(t){if(!r.includes(t))return!1},!0)};Ce({target:"Set",proto:!0,real:!0,forced:!Cf("isSubsetOf")},{isSubsetOf:Hf});var $f=pf.has,Kf=function(t){var e=df(this),r=Tf(t);if(Rf(e)1?arguments[1]:void 0);return!1!==Sf(e,function(t){if(!r(t,t,e))return!1},!0)}});var el=dt("iterator"),rl=Object,nl=L("Set"),ol=function(t){return function(t){return M(t)&&"number"==typeof t.size&&T(t.has)&&T(t.keys)}(t)?t:function(t){if(P(t))return!1;var e=rl(t);return void 0!==e[el]||"@@iterator"in e||ut(un,pr(e))}(t)?new nl(t):t};Ce({target:"Set",proto:!0,real:!0,forced:!0},{difference:function(t){return f(Uf,this,ol(t))}});var il=pf.Set,al=pf.add;Ce({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(t){var e=df(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=new il;return Sf(e,function(t){r(t,t,e)&&al(n,t)}),n}}),Ce({target:"Set",proto:!0,real:!0,forced:!0},{find:function(t){var e=df(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=Sf(e,function(t){if(r(t,t,e))return{value:t}},!0);return n&&n.value}}),Ce({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(t){return f(Df,this,ol(t))}}),Ce({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(t){return f(qf,this,ol(t))}}),Ce({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(t){return f(Hf,this,ol(t))}}),Ce({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(t){return f(Kf,this,ol(t))}});var ul=b([].join),sl=b([].push);Ce({target:"Set",proto:!0,real:!0,forced:!0},{join:function(t){var e=df(this),r=void 0===t?",":Wr(t),n=[];return Sf(e,function(t){sl(n,t)}),ul(n,r)}});var cl=pf.Set,fl=pf.add;Ce({target:"Set",proto:!0,real:!0,forced:!0},{map:function(t){var e=df(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=new cl;return Sf(e,function(t){fl(n,r(t,t,e))}),n}});var ll=TypeError;Ce({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(t){var e=df(this),r=arguments.length<2,n=r?void 0:arguments[1];if(J(t),Sf(e,function(o){r?(r=!1,n=o):n=t(n,o,o,e)}),r)throw new ll("Reduce of empty set with no initial value");return n}}),Ce({target:"Set",proto:!0,real:!0,forced:!0},{some:function(t){var e=df(this),r=ar(t,arguments.length>1?arguments[1]:void 0);return!0===Sf(e,function(t){if(r(t,t,e))return!0},!0)}}),Ce({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(t){return f(Xf,this,ol(t))}}),Ce({target:"Set",proto:!0,real:!0,forced:!0},{union:function(t){return f(Qf,this,ol(t))}});var hl=dt("species"),pl=dt("isConcatSpreadable"),vl=W>=51||!a(function(){var t=[];return t[pl]=!1,t.concat()[0]!==t}),dl=function(t){if(!M(t))return!1;var e=t[pl];return void 0!==e?!!e:ur(t)},gl=!(vl&&(W>=51||!a(function(){var t=[];return(t.constructor={})[hl]=function(){return{foo:1}},1!==t.concat(Boolean).foo})));Ce({target:"Array",proto:!0,arity:1,forced:gl},{concat:function(t){var e,r,n,o,i,a=it(this),u=xr(a,0),s=0;for(e=-1,n=arguments.length;e1?arguments[1]:void 0,n=e.length,o=void 0===r?n:ip(ve(r),n),i=Wr(t);return op(e,o-i.length,o)===i}}),Ze("String","endsWith");var sp=RangeError,cp=String.fromCharCode,fp=String.fromCodePoint,lp=b([].join);Ce({target:"String",stat:!0,arity:1,forced:!!fp&&1!==fp.length},{fromCodePoint:function(t){for(var e,r=[],n=arguments.length,o=0;n>o;){if(e=+arguments[o++],he(e,1114111)!==e)throw new sp(e+" is not a valid code point");r[o]=e<65536?cp(e):cp(55296+((e-=65536)>>10),e%1024+56320)}return lp(r,"")}});var hp=b("".indexOf);Ce({target:"String",proto:!0,forced:!rp("includes")},{includes:function(t){return!!~hp(Wr(j(this)),Wr(tp(t)),arguments.length>1?arguments[1]:void 0)}}),Ze("String","includes"),b(un.String);var pp=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(_),vp=Xc.start;Ce({target:"String",proto:!0,forced:pp},{padStart:function(t){return vp(this,t,arguments.length>1?arguments[1]:void 0)}}),Ze("String","padStart");var dp=Xc.end;Ce({target:"String",proto:!0,forced:pp},{padEnd:function(t){return dp(this,t,arguments.length>1?arguments[1]:void 0)}}),Ze("String","padEnd");var gp=b([].push),yp=b([].join);Ce({target:"String",stat:!0},{raw:function(t){var e=k(it(t).raw),r=de(e);if(!r)return"";for(var n=arguments.length,o=[],i=0;;){if(gp(o,Wr(e[i++])),i===r)return yp(o,"");i1?arguments[1]:void 0,e.length)),n=Wr(t);return bp(e,r,r+n.length)===n}}),Ze("String","startsWith");var Op=zt.PROPER,xp=function(t){return a(function(){return!!Mi[t]()||"​…᠎"!=="​…᠎"[t]()||Op&&Mi[t].name!==t})},Rp=_i.start,Pp=xp("trimStart")?function(){return Rp(this)}:"".trimStart;Ce({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==Pp},{trimLeft:Pp}),Ce({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==Pp},{trimStart:Pp}),Ze("String","trimLeft");var Ap=_i.end,jp=xp("trimEnd")?function(){return Ap(this)}:"".trimEnd;Ce({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==jp},{trimRight:jp}),Ce({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==jp},{trimEnd:jp}),Ze("String","trimRight");var kp=Object.getOwnPropertyDescriptor,Ip=function(t){if(!u)return i[t];var e=kp(i,t);return e&&e.value},Tp=dt("iterator"),Mp=!a(function(){var t=new URL("b?a=1&b=2&c=3","https://a"),e=t.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return t.pathname="c%20d",e.forEach(function(t,r){e.delete("b"),n+=r+t}),r.delete("a",2),r.delete("b",void 0),!e.size&&!u||!e.sort||"https://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[Tp]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==n||"x"!==new URL("https://x",void 0).host}),Lp=TypeError,Up=function(t,e){if(t0;)t[o]=t[--o];o!==i++&&(t[o]=n)}else for(var a=Np(r/2),u=Cp(vo(t,0,a),e),s=Cp(vo(t,a),e),c=u.length,f=s.length,l=0,h=0;l0&&0!=(t&r);r>>=1)e++;return e},pv=function(t){var e=null;switch(t.length){case 1:e=t[0];break;case 2:e=(31&t[0])<<6|63&t[1];break;case 3:e=(15&t[0])<<12|(63&t[1])<<6|63&t[2];break;case 4:e=(7&t[0])<<18|(63&t[1])<<12|(63&t[2])<<6|63&t[3]}return e>1114111?null:e},vv=function(t){for(var e=(t=nv(t,cv," ")).length,r="",n=0;ne){r+="%",n++;continue}var i=lv(t,n+1);if(i!=i){r+=o,n++;continue}n+=2;var a=hv(i);if(0===a)o=Jp(i);else{if(1===a||a>4){r+="�",n++;continue}for(var u=[i],s=1;se||"%"!==tv(t,n));){var c=lv(t,n+1);if(c!=c){n+=3;break}if(c>191||c<128)break;rv(u,c),n+=2,s++}if(u.length!==a){r+="�";continue}var f=pv(u);null===f?r+="�":o=Qp(f)}}r+=o,n++}return r},dv=/[!'()~]|%20/g,gv={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},yv=function(t){return gv[t]},mv=function(t){return nv(Xp(t),dv,yv)},bv=fn(function(t,e){zp(this,{type:Dp,target:Wp(t).entries,index:0,kind:e})},Bp,function(){var t=qp(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,Pn(void 0,!0);var n=e[r];switch(t.kind){case"keys":return Pn(n.key,!1);case"values":return Pn(n.value,!1)}return Pn([n.key,n.value],!1)},!0),wv=function(t){this.entries=[],this.url=null,void 0!==t&&(M(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===tv(t,0)?uv(t,1):t:Wr(t)))};wv.prototype={type:Bp,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,r,n,o,i,a,u,s=this.entries,c=Fn(t);if(c)for(r=(e=Dn(t,c)).next;!(n=f(r,e)).done;){if(o=Dn(kt(n.value)),(a=f(i=o.next,o)).done||(u=f(i,o)).done||!f(i,o).done)throw new Yp("Expected sequence with length 2");rv(s,{key:Wr(a.value),value:Wr(u.value)})}else for(var l in t)ut(t,l)&&rv(s,{key:l,value:Wr(t[l])})},parseQuery:function(t){if(t)for(var e,r,n=this.entries,o=av(t,"&"),i=0;i0?arguments[0]:void 0));u||(this.size=t.entries.length)},Ev=Sv.prototype;if(Mo(Ev,{append:function(t,e){var r=Wp(this);Up(arguments.length,2),rv(r.entries,{key:Wr(t),value:Wr(e)}),u||this.length++,r.updateURL()},delete:function(t){for(var e=Wp(this),r=Up(arguments.length,1),n=e.entries,o=Wr(t),i=r<2?void 0:arguments[1],a=void 0===i?i:Wr(i),s=0;se.key?1:-1}),t.updateURL()},forEach:function(t){for(var e,r=Wp(this).entries,n=ar(t,arguments.length>1?arguments[1]:void 0),o=0;o1?Rv(arguments[1]):{})}}),T($p)){var Pv=function(t){return ko(this,Gp),new $p(t,arguments.length>1?Rv(arguments[1]):{})};Gp.constructor=Pv,Pv.prototype=Gp,Ce({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Pv})}}var Av={URLSearchParams:Sv,getState:Wp},jv=URLSearchParams,kv=jv.prototype,Iv=b(kv.append),Tv=b(kv.delete),Mv=b(kv.forEach),Lv=b([].push),Uv=new jv("a=1&a=2&b=3");Uv.delete("a",1),Uv.delete("b",void 0),Uv+""!="a=2"&&ie(kv,"delete",function(t){var e=arguments.length,r=e<2?void 0:arguments[1];if(e&&void 0===r)return Tv(this,t);var n=[];Mv(this,function(t,e){Lv(n,{key:e,value:t})}),Up(e,1);for(var o,i=Wr(t),a=Wr(r),u=0,s=0,c=!1,f=n.length;uo;)for(var s,c=R(arguments[o++]),l=i?$v(_e(c),i(c)):_e(c),h=l.length,p=0;h>p;)s=l[p++],u&&!f(a,c,s)||(r[s]=c[s]);return r}:qv,Gv=2147483647,Vv=/[^\0-\u007E]/,Yv=/[.\u3002\uFF0E\uFF61]/g,Xv="Overflow: input needs wider integers to process",Jv=RangeError,Qv=b(Yv.exec),Zv=Math.floor,td=String.fromCharCode,ed=b("".charCodeAt),rd=b([].join),nd=b([].push),od=b("".replace),id=b("".split),ad=b("".toLowerCase),ud=function(t){return t+22+75*(t<26)},sd=function(t,e,r){var n=0;for(t=r?Zv(t/700):t>>1,t+=Zv(t/e);t>455;)t=Zv(t/35),n+=36;return Zv(n+36*t/(t+38))},cd=function(t){var e=[];t=function(t){for(var e=[],r=0,n=t.length;r=55296&&o<=56319&&r=i&&nZv((Gv-a)/l))throw new Jv(Xv);for(a+=(f-i)*l,i=f,r=0;rGv)throw new Jv(Xv);if(n===i){for(var h=a,p=36;;){var v=p<=u?1:p>=u+26?26:p-u;if(h?@[\\\]^|]/,qd=/[\0\t\n\r #/:<>?@[\\\]^|]/,Hd=/^[\u0000-\u0020]+/,$d=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Kd=/[\t\n\r]/g,Gd=function(t){var e,r,n,o;if("number"==typeof t){for(e=[],r=0;r<4;r++)Td(e,t%256),t=md(t/256);return Ed(e,".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,r=1,n=null,o=0,i=0;i<8;i++)0!==t[i]?(o>r&&(e=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r?n:e}(t),r=0;r<8;r++)o&&0===t[r]||(o&&(o=!1),n===r?(e+=r?":":"::",o=!0):(e+=Od(t[r],16),r<7&&(e+=":")));return"["+e+"]"}return t},Vd={},Yd=Kv({},Vd,{" ":1,'"':1,"<":1,">":1,"`":1}),Xd=Kv({},Yd,{"#":1,"?":1,"{":1,"}":1}),Jd=Kv({},Xd,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Qd=function(t,e){var r=fd(t,0);return r>32&&r<127&&!ut(e,t)?t:encodeURIComponent(t)},Zd={ftp:21,file:null,http:80,https:443,ws:80,wss:443},tg=function(t,e){var r;return 2===t.length&&Sd(Nd,wd(t,0))&&(":"===(r=wd(t,1))||!e&&"|"===r)},eg=function(t){var e;return t.length>1&&tg(kd(t,0,2))&&(2===t.length||"/"===(e=wd(t,2))||"\\"===e||"?"===e||"#"===e)},rg=function(t){return"."===t||"%2e"===Id(t)},ng={},og={},ig={},ag={},ug={},sg={},cg={},fg={},lg={},hg={},pg={},vg={},dg={},gg={},yg={},mg={},bg={},wg={},Sg={},Eg={},Og={},xg=function(t,e,r){var n,o,i,a=Wr(t);if(e){if(o=this.parse(a))throw new gd(o);this.searchParams=null}else{if(void 0!==r&&(n=new xg(r,!0)),o=this.parse(a,null,n))throw new gd(o);(i=vd(new pd)).bindURL(this),this.searchParams=i}};xg.prototype={type:"URL",parse:function(t,e,r){var n,o,i,a,u,s=this,c=e||ng,f=0,l="",h=!1,p=!1,v=!1;for(t=Wr(t),e||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,t=Pd(t,Hd,""),t=Pd(t,$d,"$1")),t=Pd(t,Kd,""),n=Wn(t);f<=n.length;){switch(o=n[f],c){case ng:if(!o||!Sd(Nd,o)){if(e)return Md;c=ig;continue}l+=Id(o),c=og;break;case og:if(o&&(Sd(Cd,o)||"+"===o||"-"===o||"."===o))l+=Id(o);else{if(":"!==o){if(e)return Md;l="",c=ig,f=0;continue}if(e&&(s.isSpecial()!==ut(Zd,l)||"file"===l&&(s.includesCredentials()||null!==s.port)||"file"===s.scheme&&!s.host))return;if(s.scheme=l,e)return void(s.isSpecial()&&Zd[s.scheme]===s.port&&(s.port=null));l="","file"===s.scheme?c=gg:s.isSpecial()&&r&&r.scheme===s.scheme?c=ag:s.isSpecial()?c=fg:"/"===n[f+1]?(c=ug,f++):(s.cannotBeABaseURL=!0,Rd(s.path,""),c=Sg)}break;case ig:if(!r||r.cannotBeABaseURL&&"#"!==o)return Md;if(r.cannotBeABaseURL&&"#"===o){s.scheme=r.scheme,s.path=vo(r.path),s.query=r.query,s.fragment="",s.cannotBeABaseURL=!0,c=Og;break}c="file"===r.scheme?gg:sg;continue;case ag:if("/"!==o||"/"!==n[f+1]){c=sg;continue}c=lg,f++;break;case ug:if("/"===o){c=hg;break}c=wg;continue;case sg:if(s.scheme=r.scheme,o===Wv)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=vo(r.path),s.query=r.query;else if("/"===o||"\\"===o&&s.isSpecial())c=cg;else if("?"===o)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=vo(r.path),s.query="",c=Eg;else{if("#"!==o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=vo(r.path),s.path.length--,c=wg;continue}s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=vo(r.path),s.query=r.query,s.fragment="",c=Og}break;case cg:if(!s.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,c=wg;continue}c=hg}else c=lg;break;case fg:if(c=lg,"/"!==o||"/"!==wd(l,f+1))continue;f++;break;case lg:if("/"!==o&&"\\"!==o){c=hg;continue}break;case hg:if("@"===o){h&&(l="%40"+l),h=!0,i=Wn(l);for(var d=0;d65535)return Ud;s.port=s.isSpecial()&&m===Zd[s.scheme]?null:m,l=""}if(e)return;c=bg;continue}return Ud}l+=o;break;case gg:if(s.scheme="file","/"===o||"\\"===o)c=yg;else{if(!r||"file"!==r.scheme){c=wg;continue}switch(o){case Wv:s.host=r.host,s.path=vo(r.path),s.query=r.query;break;case"?":s.host=r.host,s.path=vo(r.path),s.query="",c=Eg;break;case"#":s.host=r.host,s.path=vo(r.path),s.query=r.query,s.fragment="",c=Og;break;default:eg(Ed(vo(n,f),""))||(s.host=r.host,s.path=vo(r.path),s.shortenPath()),c=wg;continue}}break;case yg:if("/"===o||"\\"===o){c=mg;break}r&&"file"===r.scheme&&!eg(Ed(vo(n,f),""))&&(tg(r.path[0],!0)?Rd(s.path,r.path[0]):s.host=r.host),c=wg;continue;case mg:if(o===Wv||"/"===o||"\\"===o||"?"===o||"#"===o){if(!e&&tg(l))c=wg;else if(""===l){if(s.host="",e)return;c=bg}else{if(a=s.parseHost(l))return a;if("localhost"===s.host&&(s.host=""),e)return;l="",c=bg}continue}l+=o;break;case bg:if(s.isSpecial()){if(c=wg,"/"!==o&&"\\"!==o)continue}else if(e||"?"!==o)if(e||"#"!==o){if(o!==Wv&&(c=wg,"/"!==o))continue}else s.fragment="",c=Og;else s.query="",c=Eg;break;case wg:if(o===Wv||"/"===o||"\\"===o&&s.isSpecial()||!e&&("?"===o||"#"===o)){if(".."===(u=Id(u=l))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(s.shortenPath(),"/"===o||"\\"===o&&s.isSpecial()||Rd(s.path,"")):rg(l)?"/"===o||"\\"===o&&s.isSpecial()||Rd(s.path,""):("file"===s.scheme&&!s.path.length&&tg(l)&&(s.host&&(s.host=""),l=wd(l,0)+":"),Rd(s.path,l)),l="","file"===s.scheme&&(o===Wv||"?"===o||"#"===o))for(;s.path.length>1&&""===s.path[0];)Ad(s.path);"?"===o?(s.query="",c=Eg):"#"===o&&(s.fragment="",c=Og)}else l+=Qd(o,Xd);break;case Sg:"?"===o?(s.query="",c=Eg):"#"===o?(s.fragment="",c=Og):o!==Wv&&(s.path[0]+=Qd(o,Vd));break;case Eg:e||"#"!==o?o!==Wv&&("'"===o&&s.isSpecial()?s.query+="%27":s.query+="#"===o?"%23":Qd(o,Vd)):(s.fragment="",c=Og);break;case Og:o!==Wv&&(s.fragment+=Qd(o,Yd))}f++}},parseHost:function(t){var e,r,n;if("["===wd(t,0)){if("]"!==wd(t,t.length-1))return Ld;if(e=function(t){var e,r,n,o,i,a,u,s=[0,0,0,0,0,0,0,0],c=0,f=null,l=0,h=function(){return wd(t,l)};if(":"===h()){if(":"!==wd(t,1))return;l+=2,f=++c}for(;h();){if(8===c)return;if(":"!==h()){for(e=r=0;r<4&&Sd(zd,h());)e=16*e+yd(h(),16),l++,r++;if("."===h()){if(0===r)return;if(l-=r,c>6)return;for(n=0;h();){if(o=null,n>0){if(!("."===h()&&n<4))return;l++}if(!Sd(_d,h()))return;for(;Sd(_d,h());){if(i=yd(h(),10),null===o)o=i;else{if(0===o)return;o=10*o+i}if(o>255)return;l++}s[c]=256*s[c]+o,2!=++n&&4!==n||c++}if(4!==n)return;break}if(":"===h()){if(l++,!h())return}else if(h())return;s[c++]=e}else{if(null!==f)return;l++,f=++c}}if(null!==f)for(a=c-f,c=7;0!==c&&a>0;)u=s[c],s[c--]=s[f+a-1],s[f+--a]=u;else if(8!==c)return;return s}(kd(t,1,-1)),!e)return Ld;this.host=e}else if(this.isSpecial()){if(t=function(t){var e,r,n=[],o=id(od(ad(t),Yv,"."),".");for(e=0;e4)return t;for(r=[],n=0;n1&&"0"===wd(o,0)&&(i=Sd(Fd,o)?16:8,o=kd(o,8===i?1:2)),""===o)a=0;else{if(!Sd(10===i?Dd:8===i?Bd:zd,o))return t;a=yd(o,i)}Rd(r,a)}for(n=0;n=bd(256,5-e))return null}else if(a>255)return null;for(u=xd(r),n=0;n1?arguments[1]:void 0,n=ld(e,new xg(t,!1,r));u||(e.href=n.serialize(),e.origin=n.getOrigin(),e.protocol=n.getProtocol(),e.username=n.getUsername(),e.password=n.getPassword(),e.host=n.getHost(),e.hostname=n.getHostname(),e.port=n.getPort(),e.pathname=n.getPathname(),e.search=n.getSearch(),e.searchParams=n.getSearchParams(),e.hash=n.getHash())},Pg=Rg.prototype,Ag=function(t,e){return{get:function(){return hd(this)[t]()},set:e&&function(t){return hd(this)[e](t)},configurable:!0,enumerable:!0}};if(u&&(so(Pg,"href",Ag("serialize","setHref")),so(Pg,"origin",Ag("getOrigin")),so(Pg,"protocol",Ag("getProtocol","setProtocol")),so(Pg,"username",Ag("getUsername","setUsername")),so(Pg,"password",Ag("getPassword","setPassword")),so(Pg,"host",Ag("getHost","setHost")),so(Pg,"hostname",Ag("getHostname","setHostname")),so(Pg,"port",Ag("getPort","setPort")),so(Pg,"pathname",Ag("getPathname","setPathname")),so(Pg,"search",Ag("getSearch","setSearch")),so(Pg,"searchParams",Ag("getSearchParams")),so(Pg,"hash",Ag("getHash","setHash"))),ie(Pg,"toJSON",function(){return hd(this).serialize()},{enumerable:!0}),ie(Pg,"toString",function(){return hd(this).serialize()},{enumerable:!0}),dd){var jg=dd.createObjectURL,kg=dd.revokeObjectURL;jg&&ie(Rg,"createObjectURL",ar(jg,dd)),kg&&ie(Rg,"revokeObjectURL",ar(kg,dd))}an(Rg,"URL"),Ce({global:!0,constructor:!0,forced:!Mp,sham:!u},{URL:Rg});var Ig=L("URL"),Tg=Mp&&a(function(){Ig.canParse()}),Mg=a(function(){return 1!==Ig.canParse.length});Ce({target:"URL",stat:!0,forced:!Tg||Mg},{canParse:function(t){var e=Up(arguments.length,1),r=Wr(t),n=e<2||void 0===arguments[1]?void 0:Wr(arguments[1]);try{return!!new Ig(r,n)}catch(t){return!1}}});var Lg=L("URL");Ce({target:"URL",stat:!0,forced:!Mp},{parse:function(t){var e=Up(arguments.length,1),r=Wr(t),n=e<2||void 0===arguments[1]?void 0:Wr(arguments[1]);try{return new Lg(r,n)}catch(t){return null}}}),Ce({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return f(URL.prototype.toString,this)}});var Ug=WeakMap.prototype,Ng={WeakMap:WeakMap,set:b(Ug.set),get:b(Ug.get),has:b(Ug.has),remove:b(Ug.delete)},Cg=Ng.has,_g=function(t){return Cg(t),t},Fg=Ng.get,Bg=Ng.has,Dg=Ng.set;Ce({target:"WeakMap",proto:!0,real:!0,forced:!0},{emplace:function(t,e){var r,n,o=_g(this);return Bg(o,t)?(r=Fg(o,t),"update"in e&&(r=e.update(r,t,o),Dg(o,t,r)),r):(n=e.insert(t,o),Dg(o,t,n),n)}}),Ce({target:"WeakMap",stat:!0,forced:!0},{from:ei(Ng.WeakMap,Ng.set,!0)}),Ce({target:"WeakMap",stat:!0,forced:!0},{of:ri(Ng.WeakMap,Ng.set,!0)});var zg=Ng.remove;Ce({target:"WeakMap",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var t,e=_g(this),r=!0,n=0,o=arguments.length;n2&&(n=r,M(o=arguments[2])&&"cause"in o&&_t(n,"cause",o.cause));var s=[];return Ao(t,ny,{that:s}),_t(r,"errors",s),r};dn?dn(oy,ry):Ae(oy,ry,{name:!0});var iy=oy.prototype=Ve(ry.prototype,{constructor:d(1,oy),message:d(1,""),name:d(1,"AggregateError")});Ce({global:!0,constructor:!0,arity:2},{AggregateError:oy});var ay,uy,sy,cy,fy=function(t){return _.slice(0,t.length)===t},ly=fy("Bun/")?"BUN":fy("Cloudflare-Workers")?"CLOUDFLARE":fy("Deno/")?"DENO":fy("Node.js/")?"NODE":i.Bun&&"string"==typeof Bun.version?"BUN":i.Deno&&"object"==typeof Deno.version?"DENO":"process"===E(i.process)?"NODE":i.window&&i.document?"BROWSER":"REST",hy="NODE"===ly,py=/(?:ipad|iphone|ipod).*applewebkit/i.test(_),vy=i.setImmediate,dy=i.clearImmediate,gy=i.process,yy=i.Dispatch,my=i.Function,by=i.MessageChannel,wy=i.String,Sy=0,Ey={},Oy="onreadystatechange";a(function(){ay=i.location});var xy=function(t){if(ut(Ey,t)){var e=Ey[t];delete Ey[t],e()}},Ry=function(t){return function(){xy(t)}},Py=function(t){xy(t.data)},Ay=function(t){i.postMessage(wy(t),ay.protocol+"//"+ay.host)};vy&&dy||(vy=function(t){Up(arguments.length,1);var e=T(t)?t:my(t),r=vo(arguments,1);return Ey[++Sy]=function(){Ra(e,void 0,r)},uy(Sy),Sy},dy=function(t){delete Ey[t]},hy?uy=function(t){gy.nextTick(Ry(t))}:yy&&yy.now?uy=function(t){yy.now(Ry(t))}:by&&!py?(cy=(sy=new by).port2,sy.port1.onmessage=Py,uy=ar(cy.postMessage,cy)):i.addEventListener&&T(i.postMessage)&&!i.importScripts&&ay&&"file:"!==ay.protocol&&!a(Ay)?(uy=Ay,i.addEventListener("message",Py,!1)):uy=Oy in Et("script")?function(t){De.appendChild(Et("script"))[Oy]=function(){De.removeChild(this),xy(t)}}:function(t){setTimeout(Ry(t),0)});var jy={set:vy,clear:dy},ky=function(){this.head=null,this.tail=null};ky.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Iy,Ty,My,Ly,Uy,Ny=ky,Cy=/ipad|iphone|ipod/i.test(_)&&"undefined"!=typeof Pebble,_y=/web0s(?!.*chrome)/i.test(_),Fy=jy.set,By=i.MutationObserver||i.WebKitMutationObserver,Dy=i.document,zy=i.process,Wy=i.Promise,qy=Ip("queueMicrotask");if(!qy){var Hy=new Ny,$y=function(){var t,e;for(hy&&(t=zy.domain)&&t.exit();e=Hy.get();)try{e()}catch(t){throw Hy.head&&Iy(),t}t&&t.enter()};py||hy||_y||!By||!Dy?!Cy&&Wy&&Wy.resolve?((Ly=Wy.resolve(void 0)).constructor=Wy,Uy=ar(Ly.then,Ly),Iy=function(){Uy($y)}):hy?Iy=function(){zy.nextTick($y)}:(Fy=ar(Fy,i),Iy=function(){Fy($y)}):(Ty=!0,My=Dy.createTextNode(""),new By($y).observe(My,{characterData:!0}),Iy=function(){My.data=Ty=!Ty}),qy=function(t){Hy.head||Iy(),Hy.add(t)}}var Ky,Gy,Vy,Yy=qy,Xy=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Jy=i.Promise,Qy=dt("species"),Zy=!1,tm=T(i.PromiseRejectionEvent),em=Ue("Promise",function(){var t=Kt(Jy),e=t!==String(Jy);if(!e&&66===W)return!0;if(!W||W<51||!/native code/.test(t)){var r=new Jy(function(t){t(1)}),n=function(t){t(function(){},function(){})};if((r.constructor={})[Qy]=n,!(Zy=r.then(function(){})instanceof n))return!0}return!(e||"BROWSER"!==ly&&"DENO"!==ly||tm)}),rm={CONSTRUCTOR:em,REJECTION_EVENT:tm,SUBCLASSING:Zy},nm=TypeError,om=function(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw new nm("Bad Promise constructor");e=t,r=n}),this.resolve=J(e),this.reject=J(r)},im={f:function(t){return new om(t)}},am=jy.set,um="Promise",sm=rm.CONSTRUCTOR,cm=rm.REJECTION_EVENT,fm=rm.SUBCLASSING,lm=ne.getterFor(um),hm=ne.set,pm=Jy&&Jy.prototype,vm=Jy,dm=pm,gm=i.TypeError,ym=i.document,mm=i.process,bm=im.f,wm=bm,Sm=!!(ym&&ym.createEvent&&i.dispatchEvent),Em="unhandledrejection",Om=function(t){var e;return!(!M(t)||!T(e=t.then))&&e},xm=function(t,e){var r,n,o,i=e.value,a=1===e.state,u=a?t.ok:t.fail,s=t.resolve,c=t.reject,l=t.domain;try{u?(a||(2===e.rejection&&km(e),e.rejection=1),!0===u?r=i:(l&&l.enter(),r=u(i),l&&(l.exit(),o=!0)),r===t.promise?c(new gm("Promise-chain cycle")):(n=Om(r))?f(n,r,s,c):s(r)):c(i)}catch(t){l&&!o&&l.exit(),c(t)}},Rm=function(t,e){t.notified||(t.notified=!0,Yy(function(){for(var r,n=t.reactions;r=n.get();)xm(r,t);t.notified=!1,e&&!t.rejection&&Am(t)}))},Pm=function(t,e,r){var n,o;Sm?((n=ym.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),i.dispatchEvent(n)):n={promise:e,reason:r},!cm&&(o=i["on"+t])?o(n):t===Em&&function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",r)},Am=function(t){f(am,i,function(){var e,r=t.facade,n=t.value;if(jm(t)&&(e=Xy(function(){hy?mm.emit("unhandledRejection",n,r):Pm(Em,r,n)}),t.rejection=hy||jm(t)?2:1,e.error))throw e.value})},jm=function(t){return 1!==t.rejection&&!t.parent},km=function(t){f(am,i,function(){var e=t.facade;hy?mm.emit("rejectionHandled",e):Pm("rejectionhandled",e,t.value)})},Im=function(t,e,r){return function(n){t(e,n,r)}},Tm=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,Rm(t,!0))},Mm=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new gm("Promise can't be resolved itself");var n=Om(e);n?Yy(function(){var r={done:!1};try{f(n,e,Im(Mm,r,t),Im(Tm,r,t))}catch(e){Tm(r,e,t)}}):(t.value=e,t.state=1,Rm(t,!1))}catch(e){Tm({done:!1},e,t)}}};if(sm&&(vm=function(t){ko(this,dm),J(t),f(Ky,this);var e=lm(this);try{t(Im(Mm,e),Im(Tm,e))}catch(t){Tm(e,t)}},(Ky=function(t){hm(this,{type:um,done:!1,notified:!1,parent:!1,reactions:new Ny,rejection:!1,state:0,value:null})}).prototype=ie(dm=vm.prototype,"then",function(t,e){var r=lm(this),n=bm(Cc(this,vm));return r.parent=!0,n.ok=!T(t)||t,n.fail=T(e)&&e,n.domain=hy?mm.domain:void 0,0===r.state?r.reactions.add(n):Yy(function(){xm(n,r)}),n.promise}),Gy=function(){var t=new Ky,e=lm(t);this.promise=t,this.resolve=Im(Mm,e),this.reject=Im(Tm,e)},im.f=bm=function(t){return t===vm||void 0===t?new Gy(t):wm(t)},T(Jy)&&pm!==Object.prototype)){Vy=pm.then,fm||ie(pm,"then",function(t,e){var r=this;return new vm(function(t,e){f(Vy,r,t,e)}).then(t,e)},{unsafe:!0});try{delete pm.constructor}catch(t){}dn&&dn(pm,dm)}Ce({global:!0,constructor:!0,wrap:!0,forced:sm},{Promise:vm}),an(vm,um,!1),Uo(um);var Lm=rm.CONSTRUCTOR||!Gn(function(t){Jy.all(t).then(void 0,function(){})});Ce({target:"Promise",stat:!0,forced:Lm},{all:function(t){var e=this,r=im.f(e),n=r.resolve,o=r.reject,i=Xy(function(){var r=J(e.resolve),i=[],a=0,u=1;Ao(t,function(t){var s=a++,c=!1;u++,f(r,e,t).then(function(t){c||(c=!0,i[s]=t,--u||n(i))},o)}),--u||n(i)});return i.error&&o(i.value),r.promise}});var Um=Jy&&Jy.prototype;if(Ce({target:"Promise",proto:!0,forced:rm.CONSTRUCTOR,real:!0},{catch:function(t){return this.then(void 0,t)}}),T(Jy)){var Nm=L("Promise").prototype.catch;Um.catch!==Nm&&ie(Um,"catch",Nm,{unsafe:!0})}Ce({target:"Promise",stat:!0,forced:Lm},{race:function(t){var e=this,r=im.f(e),n=r.reject,o=Xy(function(){var o=J(e.resolve);Ao(t,function(t){f(o,e,t).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}}),Ce({target:"Promise",stat:!0,forced:rm.CONSTRUCTOR},{reject:function(t){var e=im.f(this);return(0,e.reject)(t),e.promise}});var Cm=function(t,e){if(kt(t),M(e)&&e.constructor===t)return e;var r=im.f(t);return(0,r.resolve)(e),r.promise};Ce({target:"Promise",stat:!0,forced:rm.CONSTRUCTOR},{resolve:function(t){return Cm(this,t)}}),Ce({target:"Promise",stat:!0,forced:Lm},{allSettled:function(t){var e=this,r=im.f(e),n=r.resolve,o=r.reject,i=Xy(function(){var r=J(e.resolve),o=[],i=0,a=1;Ao(t,function(t){var u=i++,s=!1;a++,f(r,e,t).then(function(t){s||(s=!0,o[u]={status:"fulfilled",value:t},--a||n(o))},function(t){s||(s=!0,o[u]={status:"rejected",reason:t},--a||n(o))})}),--a||n(o)});return i.error&&o(i.value),r.promise}});var _m="No one promise resolved";Ce({target:"Promise",stat:!0,forced:Lm},{any:function(t){var e=this,r=L("AggregateError"),n=im.f(e),o=n.resolve,i=n.reject,a=Xy(function(){var n=J(e.resolve),a=[],u=0,s=1,c=!1;Ao(t,function(t){var l=u++,h=!1;s++,f(n,e,t).then(function(t){h||c||(c=!0,o(t))},function(t){h||c||(h=!0,a[l]=t,--s||i(new r(a,_m)))})}),--s||i(new r(a,_m))});return a.error&&i(a.value),n.promise}}),Ce({target:"Promise",stat:!0},{withResolvers:function(){var t=im.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}});var Fm=Jy&&Jy.prototype,Bm=!!Jy&&a(function(){Fm.finally.call({then:function(){}},function(){})});if(Ce({target:"Promise",proto:!0,real:!0,forced:Bm},{finally:function(t){var e=Cc(this,L("Promise")),r=T(t);return this.then(r?function(r){return Cm(e,t()).then(function(){return r})}:t,r?function(r){return Cm(e,t()).then(function(){throw r})}:t)}}),T(Jy)){var Dm=L("Promise").prototype.finally;Fm.finally!==Dm&&ie(Fm,"finally",Dm,{unsafe:!0})}var zm=i.Promise,Wm=!1,qm=!zm||!zm.try||Xy(function(){zm.try(function(t){Wm=8===t},8)}).error||!Wm;Ce({target:"Promise",stat:!0,forced:qm},{try:function(t){var e=arguments.length>1?vo(arguments,1):[],r=im.f(this),n=Xy(function(){return Ra(J(t),void 0,e)});return(n.error?r.reject:r.resolve)(n.value),r.promise}}),Ze("Promise","finally");var Hm="URLSearchParams"in self,$m="Symbol"in self&&"iterator"in Symbol,Km="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(t){return!1}}(),Gm="FormData"in self,Vm="ArrayBuffer"in self;if(Vm)var Ym=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Xm=ArrayBuffer.isView||function(t){return t&&Ym.indexOf(Object.prototype.toString.call(t))>-1};function Jm(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function Qm(t){return"string"!=typeof t&&(t=String(t)),t}function Zm(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return $m&&(e[Symbol.iterator]=function(){return e}),e}function tb(t){this.map={},t instanceof tb?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function eb(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function rb(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function nb(t){var e=new FileReader,r=rb(e);return e.readAsArrayBuffer(t),r}function ob(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function ib(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:Km&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:Gm&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:Hm&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():Vm&&Km&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=ob(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Vm&&(ArrayBuffer.prototype.isPrototypeOf(t)||Xm(t))?this._bodyArrayBuffer=ob(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Hm&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Km&&(this.blob=function(){var t=eb(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?eb(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(nb)}),this.text=function(){var t=eb(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,r=rb(e);return e.readAsText(t),r}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n-1?e:t}(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function sb(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}}),e}function cb(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new tb(e.headers),this.url=e.url||"",this._initBody(t)}ub.prototype.clone=function(){return new ub(this,{body:this._bodyInit})},ib.call(ub.prototype),ib.call(cb.prototype),cb.prototype.clone=function(){return new cb(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new tb(this.headers),url:this.url})},cb.error=function(){var t=new cb(null,{status:0,statusText:""});return t.type="error",t};var fb=[301,302,303,307,308];cb.redirect=function(t,e){if(-1===fb.indexOf(e))throw new RangeError("Invalid status code");return new cb(null,{status:e,headers:{location:t}})};var lb=self.DOMException;try{new lb}catch(t){(lb=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),lb.prototype.constructor=lb}function hb(t,e){return new Promise(function(r,n){var o=new ub(t,e);if(o.signal&&o.signal.aborted)return n(new lb("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var t,e,n={status:i.status,statusText:i.statusText,headers:(t=i.getAllResponseHeaders()||"",e=new tb,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();e.append(n,o)}}),e)};n.url="responseURL"in i?i.responseURL:n.headers.get("X-Request-URL"),r(new cb("response"in i?i.response:i.responseText,n))},i.onerror=function(){n(new TypeError("Network request failed"))},i.ontimeout=function(){n(new TypeError("Network request failed"))},i.onabort=function(){n(new lb("Aborted","AbortError"))},i.open(o.method,o.url,!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&Km&&(i.responseType="blob"),o.headers.forEach(function(t,e){i.setRequestHeader(e,t)}),o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)})}hb.polyfill=!0,self.fetch||(self.fetch=hb,self.Headers=tb,self.Request=ub,self.Response=cb);var pb=Object.getOwnPropertySymbols,vb=Object.prototype.hasOwnProperty,db=Object.prototype.propertyIsEnumerable,gb=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,n,o=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),i=1;i{var n={229:function(e){var t,r,n,o=e.exports={};function u(){throw Error("setTimeout has not been defined")}function i(){throw Error("clearTimeout has not been defined")}try{t="function"==typeof setTimeout?setTimeout:u}catch(e){t=u}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===u||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}var s=[],l=!1,c=-1;function f(){l&&n&&(l=!1,n.length?s=n.concat(s):c=-1,s.length&&d())}function d(){if(!l){var e=a(f);l=!0;for(var t=s.length;t;){for(n=s,s=[];++c1)for(var r=1;r{"use strict";var n,o;t.exports=(null==(n=e.g.process)?void 0:n.env)&&"object"==typeof(null==(o=e.g.process)?void 0:o.env)?e.g.process:e.r(2826)},55159,(e,t,r)=>{"use strict";var n=Symbol.for("react.transitional.element");function o(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var u in r={},t)"key"!==u&&(r[u]=t[u]);else r=t;return{$$typeof:n,type:e,key:o,ref:void 0!==(t=r.ref)?t:null,props:r}}r.Fragment=Symbol.for("react.fragment"),r.jsx=o,r.jsxs=o},64835,(e,t,r)=>{"use strict";t.exports=e.r(55159)},12556,(e,t,r)=>{"use strict";var n=e.i(8423),o=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),h=Symbol.for("react.view_transition"),g=Symbol.iterator,m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,v={};function _(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||m}function S(){}function j(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||m}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},S.prototype=_.prototype;var w=j.prototype=new S;w.constructor=j,x(w,_.prototype),w.isPureReactComponent=!0;var E=Array.isArray;function T(){}var O={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function R(e,t,r){var n=r.ref;return{$$typeof:o,type:e,key:t,ref:void 0!==n?n:null,props:r}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var H=/\/+/g;function A(e,t){var r,n;return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36)}function M(e,t,r){if(null==e)return e;var n=[],i=0;return!function e(t,r,n,i,a){var s,l,c,f=typeof t;("undefined"===f||"boolean"===f)&&(t=null);var d=!1;if(null===t)d=!0;else switch(f){case"bigint":case"string":case"number":d=!0;break;case"object":switch(t.$$typeof){case o:case u:d=!0;break;case y:return e((d=t._init)(t._payload),r,n,i,a)}}if(d)return a=a(t),d=""===i?"."+A(t,0):i,E(a)?(n="",null!=d&&(n=d.replace(H,"$&/")+"/"),e(a,r,n,"",function(e){return e})):null!=a&&(C(a)&&(s=a,l=n+(null==a.key||t&&t.key===a.key?"":(""+a.key).replace(H,"$&/")+"/")+d,a=R(s.type,l,s.props)),r.push(a)),1;d=0;var p=""===i?".":i+":";if(E(t))for(var b=0;b{"use strict";t.exports=e.r(12556)},81258,(e,t,r)=>{"use strict";r._=function(e){return e&&e.__esModule?e:{default:e}}},95626,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={bindSnapshot:function(){return l},createAsyncLocalStorage:function(){return s},createSnapshot:function(){return c}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let u=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class i{disable(){throw u}getStore(){}run(){throw u}exit(){throw u}enterWith(){throw u}static bind(e){return e}}let a="u">typeof globalThis&&globalThis.AsyncLocalStorage;function s(){return a?new a:new i}function l(e){return a?a.bind(e):i.bind(e)}function c(){return a?a.snapshot():function(e,...t){return e(...t)}}},9453,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,e.r(95626).createAsyncLocalStorage)()},29516,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance}});let n=e.r(9453)},14843,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"handleISRError",{enumerable:!0,get:function(){return o}});let n="u"{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={WarningIcon:function(){return s},errorStyles:function(){return i},errorThemeCss:function(){return a}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});e.r(81258);let u=e.r(64835);e.r(12713);let i={container:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",display:"flex",alignItems:"center",justifyContent:"center"},card:{marginTop:"-32px",maxWidth:"325px",padding:"32px 28px",textAlign:"left"},icon:{marginBottom:"24px"},title:{fontSize:"24px",fontWeight:500,letterSpacing:"-0.02em",lineHeight:"32px",margin:"0 0 12px 0",color:"var(--next-error-title)"},message:{fontSize:"14px",fontWeight:400,lineHeight:"21px",margin:"0 0 20px 0",color:"var(--next-error-message)"},form:{margin:0},buttonGroup:{display:"flex",gap:"8px",alignItems:"center"},button:{display:"inline-flex",alignItems:"center",justifyContent:"center",height:"32px",padding:"0 12px",fontSize:"14px",fontWeight:500,lineHeight:"20px",borderRadius:"6px",cursor:"pointer",color:"var(--next-error-btn-text)",background:"var(--next-error-btn-bg)",border:"var(--next-error-btn-border)"},buttonSecondary:{display:"inline-flex",alignItems:"center",justifyContent:"center",height:"32px",padding:"0 12px",fontSize:"14px",fontWeight:500,lineHeight:"20px",borderRadius:"6px",cursor:"pointer",color:"var(--next-error-btn-secondary-text)",background:"var(--next-error-btn-secondary-bg)",border:"var(--next-error-btn-secondary-border)"},digestFooter:{position:"fixed",bottom:"32px",left:"0",right:"0",textAlign:"center",fontFamily:'ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace',fontSize:"12px",lineHeight:"18px",fontWeight:400,margin:"0",color:"var(--next-error-digest)"}},a=` -:root { - --next-error-bg: #fff; - --next-error-text: #171717; - --next-error-title: #171717; - --next-error-message: #171717; - --next-error-digest: #666666; - --next-error-btn-text: #fff; - --next-error-btn-bg: #171717; - --next-error-btn-border: none; - --next-error-btn-secondary-text: #171717; - --next-error-btn-secondary-bg: transparent; - --next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08); -} -@media (prefers-color-scheme: dark) { - :root { - --next-error-bg: #0a0a0a; - --next-error-text: #ededed; - --next-error-title: #ededed; - --next-error-message: #ededed; - --next-error-digest: #a0a0a0; - --next-error-btn-text: #0a0a0a; - --next-error-btn-bg: #ededed; - --next-error-btn-border: none; - --next-error-btn-secondary-text: #ededed; - --next-error-btn-secondary-bg: transparent; - --next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14); - } -} -body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); } -`.replace(/\n\s*/g,"");function s(){return(0,u.jsx)("svg",{width:"32",height:"32",viewBox:"-0.2 -1.5 32 32",fill:"none",style:i.icon,children:(0,u.jsx)("path",{d:"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z",fill:"var(--next-error-title)"})})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},69716,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i}}),e.r(81258);let n=e.r(64835);e.r(12713);let o=e.r(14843),u=e.r(25289),i=function({error:e}){let t=e?.digest,r=!!t;return(0,o.handleISRError)({error:e}),(0,n.jsxs)("html",{id:"__next_error__",children:[(0,n.jsx)("head",{children:(0,n.jsx)("style",{dangerouslySetInnerHTML:{__html:u.errorThemeCss}})}),(0,n.jsxs)("body",{children:[(0,n.jsx)("div",{style:u.errorStyles.container,children:(0,n.jsxs)("div",{style:u.errorStyles.card,children:[(0,n.jsx)(u.WarningIcon,{}),(0,n.jsx)("h1",{style:u.errorStyles.title,children:"This page couldn’t load"}),(0,n.jsx)("p",{style:u.errorStyles.message,children:r?"A server error occurred. Reload to try again.":"Reload to try again, or go back."}),(0,n.jsxs)("div",{style:u.errorStyles.buttonGroup,children:[(0,n.jsx)("form",{style:u.errorStyles.form,children:(0,n.jsx)("button",{type:"submit",style:u.errorStyles.button,children:"Reload"})}),!r&&(0,n.jsx)("button",{type:"button",style:u.errorStyles.buttonSecondary,onClick:()=>{window.history.length>1?window.history.back():window.location.href="/"},children:"Back"})]})]})}),t&&(0,n.jsxs)("p",{style:u.errorStyles.digestFooter,children:["ERROR ",t]})]})]})};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)}]); \ No newline at end of file diff --git a/web/out/_next/static/chunks/0n6ce9~4l2wyz.js b/web/out/_next/static/chunks/0n6ce9~4l2wyz.js deleted file mode 100644 index 7ebe229ac..000000000 --- a/web/out/_next/static/chunks/0n6ce9~4l2wyz.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,76504,(e,t,r)=>{"use strict";let n;Object.defineProperty(r,"__esModule",{value:!0});var a={getAssetToken:function(){return l},getAssetTokenQuery:function(){return s},getDeploymentId:function(){return i},getDeploymentIdQuery:function(){return o}};for(var u in a)Object.defineProperty(r,u,{enumerable:!0,get:a[u]});function i(){return n}function o(e=!1){let t=n;return t?`${e?"&":"?"}dpl=${t}`:""}function l(){return!1}function s(e=!1){return""}"u">typeof window?(n=document.documentElement.dataset.dplId,delete document.documentElement.dataset.dplId):n=void 0},70107,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"InvariantError",{enumerable:!0,get:function(){return n}});class n extends Error{constructor(e,t){super(`Invariant: ${e.endsWith(".")?e:e+"."} This is a bug in Next.js.`,t),this.name="InvariantError"}}},71473,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={BailoutToCSRError:function(){return i},isBailoutToCSRError:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u="BAILOUT_TO_CLIENT_SIDE_RENDERING";class i extends Error{constructor(e){super(`Bail out to client-side rendering: ${e}`),this.reason=e,this.digest=u}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===u}},38036,(e,t,r)=>{"use strict";var n=e.r(12713);function a(e){var t="https://react.dev/errors/"+e;if(1{"use strict";!function e(){if("u">typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),t.exports=e.r(38036)},71995,(e,t,r)=>{"use strict";var n=e.r(34056),a={stream:!0},u=Object.prototype.hasOwnProperty;function i(t){var r=e.r(t);return"function"!=typeof r.then||"fulfilled"===r.status?null:(r.then(function(e){r.status="fulfilled",r.value=e},function(e){r.status="rejected",r.reason=e}),r)}var o=new WeakSet,l=new WeakSet;function s(){}function c(t){for(var r=t[1],n=[],a=0;af||35===f||114===f||120===f?(p=f,f=3,s++):(p=0,f=3);continue;case 2:44===(_=l[s++])?f=4:h=h<<4|(96<_?_-87:_-48);continue;case 3:_=l.indexOf(10,s);break;case 4:(_=s+h)>l.length&&(_=-1)}var m=l.byteOffset+s;if(-1<_)h=new Uint8Array(l.buffer,m,_-s),98===p?Z(e,o,_===g?h:h.slice()):function(e,t,r,n,u,i){switch(n){case 65:Z(e,r,eu(u,i).buffer);return;case 79:ei(e,r,u,i,Int8Array,1);return;case 111:Z(e,r,0===u.length?i:eu(u,i));return;case 85:ei(e,r,u,i,Uint8ClampedArray,1);return;case 83:ei(e,r,u,i,Int16Array,2);return;case 115:ei(e,r,u,i,Uint16Array,2);return;case 76:ei(e,r,u,i,Int32Array,4);return;case 108:ei(e,r,u,i,Uint32Array,4);return;case 71:ei(e,r,u,i,Float32Array,4);return;case 103:ei(e,r,u,i,Float64Array,8);return;case 77:ei(e,r,u,i,BigInt64Array,8);return;case 109:ei(e,r,u,i,BigUint64Array,8);return;case 86:ei(e,r,u,i,DataView,1);return}t=e._stringDecoder;for(var o="",l=0;l{"use strict";t.exports=e.r(71995)},32004,(e,t,r)=>{"use strict";t.exports=e.r(5295)},71339,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={HTTPAccessErrorStatus:function(){return u},HTTP_ERROR_FALLBACK_ERROR_CODE:function(){return o},getAccessFallbackErrorTypeByStatus:function(){return c},getAccessFallbackHTTPStatus:function(){return s},isHTTPAccessFallbackError:function(){return l}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u={NOT_FOUND:404,FORBIDDEN:403,UNAUTHORIZED:401},i=new Set(Object.values(u)),o="NEXT_HTTP_ERROR_FALLBACK";function l(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r]=e.digest.split(";");return t===o&&i.has(Number(r))}function s(e){return Number(e.digest.split(";")[1])}function c(e){switch(e){case 401:return"unauthorized";case 403:return"forbidden";case 404:return"not-found";default:return}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},48096,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"RedirectStatusCode",{enumerable:!0,get:function(){return a}});var n,a=((n={})[n.SeeOther=303]="SeeOther",n[n.TemporaryRedirect=307]="TemporaryRedirect",n[n.PermanentRedirect=308]="PermanentRedirect",n);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},52460,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={REDIRECT_ERROR_CODE:function(){return i},isRedirectError:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(48096),i="NEXT_REDIRECT";function o(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let t=e.digest.split(";"),[r,n]=t,a=t.slice(2,-2).join(";"),o=Number(t.at(-2));return r===i&&("replace"===n||"push"===n)&&"string"==typeof a&&!isNaN(o)&&o in u.RedirectStatusCode}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},72878,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isNextRouterError",{enumerable:!0,get:function(){return u}});let n=e.r(71339),a=e.r(52460);function u(e){return(0,a.isRedirectError)(e)||(0,n.isHTTPAccessFallbackError)(e)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},44066,(e,t,r)=>{"use strict";function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}r._=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=u?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(a,i,o):a[i]=e[i]}return a.default=e,r&&r.set(e,a),a}},77081,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ReadonlyURLSearchParams",{enumerable:!0,get:function(){return a}});class n extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class a extends URLSearchParams{append(){throw new n}delete(){throw new n}set(){throw new n}sort(){throw new n}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},58812,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={NavigationPromisesContext:function(){return c},PathParamsContext:function(){return s},PathnameContext:function(){return l},ReadonlyURLSearchParams:function(){return i.ReadonlyURLSearchParams},SearchParamsContext:function(){return o},createDevToolsInstrumentedPromise:function(){return f}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(12713),i=e.r(77081),o=(0,u.createContext)(null),l=(0,u.createContext)(null),s=(0,u.createContext)(null),c=(0,u.createContext)(null);function f(e,t){let r=Promise.resolve(t);return r.status="fulfilled",r.value=t,r.displayName=`${e} (SSR)`,r}},17667,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workUnitAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,e.r(95626).createAsyncLocalStorage)()},29721,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ACTION_HEADER:function(){return i},FLIGHT_HEADERS:function(){return g},NEXT_ACTION_NOT_FOUND_HEADER:function(){return S},NEXT_ACTION_REVALIDATED_HEADER:function(){return T},NEXT_DID_POSTPONE_HEADER:function(){return E},NEXT_HMR_REFRESH_HASH_COOKIE:function(){return f},NEXT_HMR_REFRESH_HEADER:function(){return c},NEXT_HTML_REQUEST_ID_HEADER:function(){return O},NEXT_INSTANT_PREFETCH_HEADER:function(){return h},NEXT_INSTANT_TEST_COOKIE:function(){return y},NEXT_IS_PRERENDER_HEADER:function(){return b},NEXT_REQUEST_ID_HEADER:function(){return P},NEXT_REWRITTEN_PATH_HEADER:function(){return v},NEXT_REWRITTEN_QUERY_HEADER:function(){return R},NEXT_ROUTER_PREFETCH_HEADER:function(){return l},NEXT_ROUTER_SEGMENT_PREFETCH_HEADER:function(){return s},NEXT_ROUTER_STALE_TIME_HEADER:function(){return m},NEXT_ROUTER_STATE_TREE_HEADER:function(){return o},NEXT_RSC_UNION_QUERY:function(){return _},NEXT_URL:function(){return d},RSC_CONTENT_TYPE_HEADER:function(){return p},RSC_HEADER:function(){return u}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u="rsc",i="next-action",o="next-router-state-tree",l="next-router-prefetch",s="next-router-segment-prefetch",c="next-hmr-refresh",f="__next_hmr_refresh_hash__",d="next-url",p="text/x-component",h="next-instant-navigation-testing-prefetch",y="next-instant-navigation-testing",g=[u,o,l,c,s],_="_rsc",m="x-nextjs-stale-time",E="x-nextjs-postponed",v="x-nextjs-rewritten-path",R="x-nextjs-rewritten-query",b="x-nextjs-prerender",S="x-nextjs-action-not-found",P="x-nextjs-request-id",O="x-nextjs-html-request-id",T="x-action-revalidated";("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18767,(e,t,r)=>{"use strict";function n(){let e,t,r=new Promise((r,n)=>{e=r,t=n});return{resolve:e,reject:t,promise:r}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createPromiseWithResolvers",{enumerable:!0,get:function(){return n}})},74087,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,a={RenderStage:function(){return l},StagedRenderingController:function(){return s}};for(var u in a)Object.defineProperty(r,u,{enumerable:!0,get:a[u]});let i=e.r(70107),o=e.r(18767);var l=((n={})[n.Before=1]="Before",n[n.EarlyStatic=2]="EarlyStatic",n[n.Static=3]="Static",n[n.EarlyRuntime=4]="EarlyRuntime",n[n.Runtime=5]="Runtime",n[n.Dynamic=6]="Dynamic",n[n.Abandoned=7]="Abandoned",n);class s{constructor(e,t,r){this.abortSignal=e,this.abandonController=t,this.shouldTrackSyncIO=r,this.currentStage=1,this.syncInterruptReason=null,this.staticStageEndTime=1/0,this.runtimeStageEndTime=1/0,this.staticStageListeners=[],this.earlyRuntimeStageListeners=[],this.runtimeStageListeners=[],this.dynamicStageListeners=[],this.staticStagePromise=(0,o.createPromiseWithResolvers)(),this.earlyRuntimeStagePromise=(0,o.createPromiseWithResolvers)(),this.runtimeStagePromise=(0,o.createPromiseWithResolvers)(),this.dynamicStagePromise=(0,o.createPromiseWithResolvers)(),e&&e.addEventListener("abort",()=>{let{reason:t}=e;this.staticStagePromise.promise.catch(c),this.staticStagePromise.reject(t),this.earlyRuntimeStagePromise.promise.catch(c),this.earlyRuntimeStagePromise.reject(t),this.runtimeStagePromise.promise.catch(c),this.runtimeStagePromise.reject(t),this.dynamicStagePromise.promise.catch(c),this.dynamicStagePromise.reject(t)},{once:!0}),t&&t.signal.addEventListener("abort",()=>{this.abandonRender()},{once:!0})}onStage(e,t){if(this.currentStage>=e)t();else if(3===e)this.staticStageListeners.push(t);else if(4===e)this.earlyRuntimeStageListeners.push(t);else if(5===e)this.runtimeStageListeners.push(t);else if(6===e)this.dynamicStageListeners.push(t);else throw Object.defineProperty(new i.InvariantError(`Invalid render stage: ${e}`),"__NEXT_ERROR_CODE",{value:"E881",enumerable:!1,configurable:!0})}shouldTrackSyncInterrupt(){if(!this.shouldTrackSyncIO)return!1;switch(this.currentStage){case 1:case 5:case 6:case 7:default:return!1;case 2:case 3:case 4:return!0}}syncInterruptCurrentStageWithReason(e){if(1!==this.currentStage&&7!==this.currentStage){if(this.abandonController)return void this.abandonController.abort();if(this.abortSignal){this.syncInterruptReason=e,this.currentStage=7;return}switch(this.currentStage){case 2:case 3:case 4:this.syncInterruptReason=e,this.advanceStage(6);return;case 5:return}}}getSyncInterruptReason(){return this.syncInterruptReason}getStaticStageEndTime(){return this.staticStageEndTime}getRuntimeStageEndTime(){return this.runtimeStageEndTime}abandonRender(){let{currentStage:e}=this;switch(e){case 2:this.resolveStaticStage();case 3:this.resolveEarlyRuntimeStage();case 4:this.resolveRuntimeStage();case 5:this.currentStage=7;return}}advanceStage(e){if(e<=this.currentStage)return;let t=this.currentStage;if(this.currentStage=e,t<3&&e>=3&&this.resolveStaticStage(),t<4&&e>=4&&this.resolveEarlyRuntimeStage(),t<5&&e>=5&&(this.staticStageEndTime=performance.now()+performance.timeOrigin,this.resolveRuntimeStage()),t<6&&e>=6){this.runtimeStageEndTime=performance.now()+performance.timeOrigin,this.resolveDynamicStage();return}}resolveStaticStage(){let e=this.staticStageListeners;for(let t=0;t{n.then(e.bind(null,u),t)}),void 0!==a&&(i.displayName=a),i);return this.abortSignal&&o.catch(c),o}}function c(){}},27226,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getCacheSignal:function(){return m},getDraftModeProviderForCacheScope:function(){return g},getHmrRefreshHash:function(){return p},getPrerenderResumeDataCache:function(){return f},getRenderResumeDataCache:function(){return d},getServerComponentsHmrCache:function(){return y},getStagedRenderingController:function(){return _},isHmrRefresh:function(){return h},isInEarlyRenderStage:function(){return l},throwForMissingRequestStore:function(){return s},throwInvariantForMissingStore:function(){return c},workUnitAsyncStorage:function(){return u.workUnitAsyncStorageInstance}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(17667);e.r(29721);let i=e.r(70107),o=e.r(74087);function l(e){let t=e.stagedRendering;return!!t&&(t.currentStage===o.RenderStage.EarlyStatic||t.currentStage===o.RenderStage.EarlyRuntime)}function s(e){throw Object.defineProperty(Error(`\`${e}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E251",enumerable:!1,configurable:!0})}function c(){throw Object.defineProperty(new i.InvariantError("Expected workUnitAsyncStorage to have a store."),"__NEXT_ERROR_CODE",{value:"E696",enumerable:!1,configurable:!0})}function f(e){switch(e.type){case"prerender":case"prerender-runtime":case"prerender-ppr":case"prerender-client":case"validation-client":return e.prerenderResumeDataCache;case"request":if(e.prerenderResumeDataCache)return e.prerenderResumeDataCache;case"prerender-legacy":case"cache":case"private-cache":case"unstable-cache":case"generate-static-params":return null;default:return e}}function d(e){switch(e.type){case"request":case"prerender":case"prerender-runtime":case"prerender-client":case"validation-client":if(e.renderResumeDataCache)return e.renderResumeDataCache;case"prerender-ppr":return e.prerenderResumeDataCache??null;case"cache":case"private-cache":case"unstable-cache":case"prerender-legacy":case"generate-static-params":return null;default:return e}}function p(e){}function h(e){return!1}function y(e){}function g(e,t){if(e.isDraftMode)switch(t.type){case"cache":case"private-cache":case"unstable-cache":case"prerender-runtime":case"request":return t.draftMode}}function _(e){switch(e.type){case"request":case"prerender-runtime":return e.stagedRendering??null;case"prerender":case"prerender-client":case"validation-client":case"prerender-ppr":case"prerender-legacy":case"cache":case"private-cache":case"unstable-cache":case"generate-static-params":return null;default:return e}}function m(e){switch(e.type){case"prerender":case"prerender-client":case"validation-client":case"prerender-runtime":return e.cacheSignal;case"request":if(e.cacheSignal)return e.cacheSignal;case"prerender-ppr":case"prerender-legacy":case"cache":case"private-cache":case"unstable-cache":case"generate-static-params":return null;default:return e}}},49315,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useUntrackedPathname",{enumerable:!0,get:function(){return u}});let n=e.r(12713),a=e.r(58812);function u(){return!function(){if("u"0}}return!1}()?(0,n.useContext)(a.PathnameContext):null}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},36064,(e,t,r)=>{"use strict";function n(e,t=!0){return e.pathname+e.search+(t?e.hash:"")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createHrefFromUrl",{enumerable:!0,get:function(){return n}}),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},89331,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={handleHardNavError:function(){return i},useNavFailureHandler:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});e.r(12713);let u=e.r(36064);function i(e){return!!(e&&"u">typeof window)&&!!window.next.__pendingUrl&&(0,u.createHrefFromUrl)(new URL(window.location.href))!==(0,u.createHrefFromUrl)(window.next.__pendingUrl)&&(console.error("Error occurred during navigation, falling back to hard navigation",e),window.location.href=window.next.__pendingUrl.toString(),!0)}function o(){}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},14650,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"HTML_LIMITED_BOT_UA_RE",{enumerable:!0,get:function(){return n}});let n=/[\w-]+-Google|Google-[\w-]+|Chrome-Lighthouse|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|Yeti|googleweblight/i},98456,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={HTML_LIMITED_BOT_UA_RE:function(){return u.HTML_LIMITED_BOT_UA_RE},HTML_LIMITED_BOT_UA_RE_STRING:function(){return o},getBotType:function(){return c},isBot:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(14650),i=/Googlebot(?!-)|Googlebot$/i,o=u.HTML_LIMITED_BOT_UA_RE.source;function l(e){return u.HTML_LIMITED_BOT_UA_RE.test(e)}function s(e){return i.test(e)||l(e)}function c(e){return i.test(e)?"dom":l(e)?"html":void 0}},14974,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={AppRouterContext:function(){return i},GlobalLayoutRouterContext:function(){return l},LayoutRouterContext:function(){return o},MissingSlotContext:function(){return c},TemplateContext:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(81258)._(e.r(12713)),i=u.default.createContext(null),o=u.default.createContext(null),l=u.default.createContext(null),s=u.default.createContext(null),c=u.default.createContext(new Set)},60331,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ErrorBoundary:function(){return y},ErrorBoundaryHandler:function(){return h}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(44066),i=e.r(64835),o=u._(e.r(12713)),l=e.r(49315),s=e.r(72878);e.r(89331);let c=e.r(14843),f=e.r(98456),d=e.r(14974),p="u">typeof window&&(0,f.isBot)(window.navigator.userAgent);class h extends o.default.Component{static{this.contextType=d.AppRouterContext}constructor(e){super(e),this.reset=()=>{this.setState({error:null})},this.unstable_retry=()=>{(0,o.startTransition)(()=>{this.context?.refresh(),this.reset()})},this.state={error:null,previousPathname:this.props.pathname}}static getDerivedStateFromError(e){if((0,s.isNextRouterError)(e))throw e;return{error:e}}static getDerivedStateFromProps(e,t){let{error:r}=t;return e.pathname!==t.previousPathname&&t.error?{error:null,previousPathname:e.pathname}:{error:t.error,previousPathname:e.pathname}}render(){return this.state.error&&!p?((0,c.handleISRError)({error:this.state.error}),(0,i.jsxs)(i.Fragment,{children:[this.props.errorStyles,this.props.errorScripts,(0,i.jsx)(this.props.errorComponent,{error:this.state.error,reset:this.reset,unstable_retry:this.unstable_retry})]})):this.props.children}}function y({errorComponent:e,errorStyles:t,errorScripts:r,children:n}){let a=(0,l.useUntrackedPathname)();return e?(0,i.jsx)(h,{pathname:a,errorComponent:e,errorStyles:t,errorScripts:r,children:n}):(0,i.jsx)(i.Fragment,{children:n})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},14238,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,a,u={ACTION_HMR_REFRESH:function(){return f},ACTION_NAVIGATE:function(){return l},ACTION_REFRESH:function(){return o},ACTION_RESTORE:function(){return s},ACTION_SERVER_ACTION:function(){return d},ACTION_SERVER_PATCH:function(){return c},PrefetchKind:function(){return p},ScrollBehavior:function(){return h}};for(var i in u)Object.defineProperty(r,i,{enumerable:!0,get:u[i]});let o="refresh",l="navigate",s="restore",c="server-patch",f="hmr-refresh",d="server-action";var p=((n={}).AUTO="auto",n.FULL="full",n),h=((a={})[a.Default=0]="Default",a[a.NoScroll=1]="NoScroll",a);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},15362,(e,t,r)=>{"use strict";function n(e){return null!==e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isThenable",{enumerable:!0,get:function(){return n}})},3351,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={dispatchAppRouterAction:function(){return s},dispatchGestureState:function(){return f},refreshOnInstantNavigationUnlock:function(){return l},useActionQueue:function(){return d}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(44066)._(e.r(12713)),i=e.r(15362);e.r(14238);let o=null;function l(){}function s(e){if(null===o)throw Object.defineProperty(Error("Internal Next.js error: Router action dispatched before initialization."),"__NEXT_ERROR_CODE",{value:"E668",enumerable:!1,configurable:!0});o(e)}let c=null;function f(e){if(null===c)throw Object.defineProperty(Error("Internal Next.js error: Router action dispatched before initialization."),"__NEXT_ERROR_CODE",{value:"E668",enumerable:!1,configurable:!0});c(e)}function d(e){let[t,r]=u.default.useState(e.state),[n,a]=(0,u.useOptimistic)(t);"u">typeof window&&(c=a),"u">typeof window&&(o=t=>e.dispatch(t,r));let l=(0,u.useMemo)(()=>n,[n]);return(0,i.isThenable)(l)?(0,u.use)(l):l}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},13398,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"callServer",{enumerable:!0,get:function(){return i}});let n=e.r(12713),a=e.r(14238),u=e.r(3351);async function i(e,t){return new Promise((r,i)=>{(0,n.startTransition)(()=>{(0,u.dispatchAppRouterAction)({type:a.ACTION_SERVER_ACTION,actionId:e,actionArgs:t,resolve:r,reject:i})})})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},71099,(e,t,r)=>{"use strict";let n;Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"findSourceMapURL",{enumerable:!0,get:function(){return n}});("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},29164,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DEFAULT_SEGMENT_KEY:function(){return f},NOT_FOUND_SEGMENT_KEY:function(){return d},PAGE_SEGMENT_KEY:function(){return c},addSearchParamsIfPageSegment:function(){return l},computeSelectedLayoutSegment:function(){return s},getSegmentValue:function(){return u},getSelectedLayoutSegmentPath:function(){return function e(t,r,n=!0,a=[]){let i;if(n)i=t[1][r];else{let e=t[1];i=e.children??Object.values(e)[0]}if(!i)return a;let o=u(i[0]);return!o||o.startsWith(c)?a:(a.push(o),e(i,r,!1,a))}},isGroupSegment:function(){return i},isParallelRouteSegment:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});function u(e){return Array.isArray(e)?e[1]:e}function i(e){return"("===e[0]&&e.endsWith(")")}function o(e){return e.startsWith("@")&&"@children"!==e}function l(e,t){if(e.includes(c)){let e=JSON.stringify(t);return"{}"!==e?c+"?"+e:c}return e}function s(e,t){if(!e||0===e.length)return null;let r="children"===t?e[0]:e[e.length-1];return r===f?null:r}let c="__PAGE__",f="__DEFAULT__",d="/_not-found"},61719,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={HEAD_REQUEST_KEY:function(){return o},ROOT_SEGMENT_REQUEST_KEY:function(){return i},appendSegmentRequestKeyPart:function(){return s},convertSegmentPathToStaticExportFilename:function(){return d},createSegmentRequestKeyPart:function(){return l}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(29164),i="",o="/_head";function l(e){if("string"==typeof e)return e.startsWith(u.PAGE_SEGMENT_KEY)?u.PAGE_SEGMENT_KEY:"/_not-found"===e?"_not-found":f(e);let t=e[0];return"$"+e[2]+"$"+f(t)}function s(e,t,r){return e+"/"+("children"===t?r:`@${f(t)}/${r}`)}let c=/^[a-zA-Z0-9\-_@]+$/;function f(e){return c.test(e)?e:"!"+btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function d(e){return`__next${e.replace(/\//g,".")}.txt`}},8344,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={doesStaticSegmentAppearInURL:function(){return f},getCacheKeyForDynamicParam:function(){return d},getParamValueFromCacheKey:function(){return h},getRenderedPathname:function(){return s},getRenderedSearch:function(){return l},parseDynamicParamFromURLPart:function(){return c},urlSearchParamsToParsedUrlQuery:function(){return y},urlToUrlWithoutFlightMarker:function(){return p}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(29164),i=e.r(61719),o=e.r(29721);function l(e){let t=e.headers.get(o.NEXT_REWRITTEN_QUERY_HEADER);return null!==t?""===t?"":"?"+t:p(new URL(e.url)).search}function s(e){return e.headers.get(o.NEXT_REWRITTEN_PATH_HEADER)??p(new URL(e.url)).pathname}function c(e,t,r){switch(e){case"c":return rencodeURIComponent(e)):[];case"ci(..)(..)":case"ci(.)":case"ci(..)":case"ci(...)":{let n=e.length-2;return r0===t?encodeURIComponent(e.slice(n)):encodeURIComponent(e)):[]}case"oc":return rencodeURIComponent(e)):null;case"d":if(r>=t.length)return"";return encodeURIComponent(t[r]);case"di(..)(..)":case"di(.)":case"di(..)":case"di(...)":{let n=e.length-2;if(r>=t.length)return"";return encodeURIComponent(t[r].slice(n))}default:return""}}function f(e){return!(e===i.ROOT_SEGMENT_REQUEST_KEY||e.startsWith(u.PAGE_SEGMENT_KEY)||"("===e[0]&&e.endsWith(")"))&&e!==u.DEFAULT_SEGMENT_KEY&&"/_not-found"!==e}function d(e,t){return"string"==typeof e?(0,u.addSearchParamsIfPageSegment)(e,Object.fromEntries(new URLSearchParams(t))):null===e?"":e.join("/")}function p(e){let t=new URL(e);if(t.searchParams.delete(o.NEXT_RSC_UNION_QUERY),t.pathname.endsWith(".txt")){let{pathname:e}=t,r=e.endsWith("/index.txt")?10:4;t.pathname=e.slice(0,-r)}return t}function h(e,t){return"c"===t||"oc"===t?e.split("/"):e}function y(e){let t={};for(let[r,n]of e.entries())void 0===t[r]?t[r]=n:Array.isArray(t[r])?t[r].push(n):t[r]=[t[r],n];return t}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},32279,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={createInitialRSCPayloadFromFallbackPrerender:function(){return s},getFlightDataPartsFromPath:function(){return l},getNextFlightSegmentPath:function(){return c},normalizeFlightData:function(){return f},prepareFlightRouterStateForRequest:function(){return d}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(29164),i=e.r(8344),o=e.r(36064);function l(e){let[t,r,n,a]=e.slice(-4),u=e.slice(0,-4);return{pathToSegment:u.slice(0,-1),segmentPath:u,segment:u[u.length-1]??"",tree:t,seedData:r,head:n,isHeadPartial:a,isRootRender:4===e.length}}function s(e,t){let r=(0,i.getRenderedPathname)(e),n=(0,i.getRenderedSearch)(e),a=(0,o.createHrefFromUrl)(new URL(location.href)),u=t.f[0],l=u[0],s={c:a.split("/"),q:n,i:t.i,f:[[function e(t,r,n,a){let u,o,l=t[0];if("string"==typeof l)u=l,o=(0,i.doesStaticSegmentAppearInURL)(l);else{let e=l[0],t=l[2],s=l[3],c=(0,i.parseDynamicParamFromURLPart)(t,n,a);u=[e,(0,i.getCacheKeyForDynamicParam)(c,r),t,s],o=!0}let s=o?a+1:a,c=t[1],f={};for(let t in c){let a=c[t];f[t]=e(a,r,n,s)}return[u,f,null,t[3],t[4]]}(l,n,r.split("/").filter(e=>""!==e),0),u[1],u[2],u[2]]],m:t.m,G:t.G,S:t.S,h:t.h};return t.b&&(s.b=t.b),s}function c(e){return e.slice(2)}function f(e){return"string"==typeof e?e:e.map(e=>l(e))}function d(e,t){return t?encodeURIComponent(JSON.stringify(e)):encodeURIComponent(JSON.stringify(function e(t){let[r,n,a,i,o]=t,l=function(e){if("string"==typeof e)return e.startsWith(u.PAGE_SEGMENT_KEY+"?")?u.PAGE_SEGMENT_KEY:e;let[t,r,n]=e;return[t,r,n,null]}(r),s={};for(let[t,r]of Object.entries(n))s[t]=e(r);let c=[l,s];return i&&(c[2]=null,c[3]=i),void 0!==o&&(c[4]=o),c}(e)))}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},6807,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={djb2Hash:function(){return u},hexHash:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});function u(e){let t=5381;for(let r=0;r>>0}function i(e){return u(e).toString(36).slice(0,5)}},40415,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"computeCacheBustingSearchParam",{enumerable:!0,get:function(){return a}});let n=e.r(6807);function a(e,t,r,a){return(void 0===e||"0"===e)&&void 0===t&&void 0===r&&void 0===a?"":(0,n.hexHash)([e||"0",t||"0",r||"0",a||"0"].join(","))}},62301,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={setCacheBustingSearchParam:function(){return o},setCacheBustingSearchParamWithHash:function(){return l}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(40415),i=e.r(29721),o=(e,t)=>{l(e,(0,u.computeCacheBustingSearchParam)(t[i.NEXT_ROUTER_PREFETCH_HEADER],t[i.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER],t[i.NEXT_ROUTER_STATE_TREE_HEADER],t[i.NEXT_URL]))},l=(e,t)=>{let r=e.search,n=(r.startsWith("?")?r.slice(1):r).split("&").filter(e=>e&&!e.startsWith(`${i.NEXT_RSC_UNION_QUERY}=`));t.length>0?n.push(`${i.NEXT_RSC_UNION_QUERY}=${t}`):n.push(`${i.NEXT_RSC_UNION_QUERY}`),e.search=n.length?`?${n.join("&")}`:""};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},98555,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getNavigationBuildId:function(){return o},setNavigationBuildId:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u="";function i(e){u=e}function o(){return u}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},91227,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ACTION_SUFFIX:function(){return g},APP_DIR_ALIAS:function(){return B},CACHE_ONE_YEAR_SECONDS:function(){return C},DOT_NEXT_ALIAS:function(){return L},ESLINT_DEFAULT_DIRS:function(){return eo},GSP_NO_RETURNED_VALUE:function(){return et},GSSP_COMPONENT_MEMBER_ERROR:function(){return ea},GSSP_NO_RETURNED_VALUE:function(){return er},HTML_CONTENT_TYPE_HEADER:function(){return i},INFINITE_CACHE:function(){return D},INSTRUMENTATION_HOOK_FILENAME:function(){return U},JSON_CONTENT_TYPE_HEADER:function(){return o},MATCHED_PATH_HEADER:function(){return c},MIDDLEWARE_FILENAME:function(){return M},MIDDLEWARE_LOCATION_REGEXP:function(){return I},NEXT_BODY_SUFFIX:function(){return E},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return j},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return b},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return S},NEXT_CACHE_ROOT_PARAM_TAG_ID:function(){return N},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return A},NEXT_CACHE_TAGS_HEADER:function(){return R},NEXT_CACHE_TAG_MAX_ITEMS:function(){return T},NEXT_CACHE_TAG_MAX_LENGTH:function(){return w},NEXT_DATA_SUFFIX:function(){return _},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return s},NEXT_META_SUFFIX:function(){return m},NEXT_NAV_DEPLOYMENT_ID_HEADER:function(){return v},NEXT_QUERY_PARAM_PREFIX:function(){return l},NEXT_RESUME_HEADER:function(){return P},NEXT_RESUME_STATE_LENGTH_HEADER:function(){return O},NON_STANDARD_NODE_ENV:function(){return eu},PAGES_DIR_ALIAS:function(){return k},PRERENDER_REVALIDATE_HEADER:function(){return f},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return d},PROXY_FILENAME:function(){return x},PROXY_LOCATION_REGEXP:function(){return F},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return W},ROOT_DIR_ALIAS:function(){return H},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return q},RSC_ACTION_ENCRYPTION_ALIAS:function(){return Y},RSC_ACTION_PROXY_ALIAS:function(){return V},RSC_ACTION_VALIDATE_ALIAS:function(){return X},RSC_CACHE_WRAPPER_ALIAS:function(){return G},RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS:function(){return K},RSC_MOD_REF_PROXY_ALIAS:function(){return $},RSC_SEGMENTS_DIR_SUFFIX:function(){return p},RSC_SEGMENT_SUFFIX:function(){return h},RSC_SUFFIX:function(){return y},SERVER_PROPS_EXPORT_ERROR:function(){return ee},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return Q},SERVER_PROPS_SSG_CONFLICT:function(){return J},SERVER_RUNTIME:function(){return el},SSG_FALLBACK_EXPORT_ERROR:function(){return ei},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return z},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return Z},TEXT_PLAIN_CONTENT_TYPE_HEADER:function(){return u},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return en},WEBPACK_LAYERS:function(){return ef},WEBPACK_RESOURCE_QUERIES:function(){return ed},WEB_SOCKET_MAX_RECONNECTIONS:function(){return es}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u="text/plain",i="text/html; charset=utf-8",o="application/json; charset=utf-8",l="nxtP",s="nxtI",c="x-matched-path",f="x-prerender-revalidate",d="x-prerender-revalidate-if-generated",p=".segments",h=".segment.rsc",y=".rsc",g=".action",_=".json",m=".meta",E=".body",v="x-nextjs-deployment-id",R="x-next-cache-tags",b="x-next-revalidated-tags",S="x-next-revalidate-tag-token",P="next-resume",O="x-next-resume-state-length",T=128,w=256,A=1024,j="_N_T_",N="_N_RP_",C=31536e3,D=0xfffffffe,M="middleware",I=`(?:src/)?${M}`,x="proxy",F=`(?:src/)?${x}`,U="instrumentation",k="private-next-pages",L="private-dot-next",H="private-next-root-dir",B="private-next-app-dir",$="private-next-rsc-mod-ref-proxy",X="private-next-rsc-action-validate",V="private-next-rsc-server-reference",G="private-next-rsc-cache-wrapper",K="private-next-rsc-track-dynamic-import",Y="private-next-rsc-action-encryption",q="private-next-rsc-action-client-wrapper",W="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",z="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",Q="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",J="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",Z="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",ee="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",et="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",er="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",en="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",ea="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",eu='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',ei="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",eo=["app","pages","components","lib","src"],el={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},es=12,ec={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",apiNode:"api-node",apiEdge:"api-edge",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",pagesDirBrowser:"pages-dir-browser",pagesDirEdge:"pages-dir-edge",pagesDirNode:"pages-dir-node"},ef={...ec,GROUP:{builtinReact:[ec.reactServerComponents,ec.actionBrowser],serverOnly:[ec.reactServerComponents,ec.actionBrowser,ec.instrument,ec.middleware],neutralTarget:[ec.apiNode,ec.apiEdge],clientOnly:[ec.serverSideRendering,ec.appPagesBrowser],bundled:[ec.reactServerComponents,ec.actionBrowser,ec.serverSideRendering,ec.appPagesBrowser,ec.shared,ec.instrument,ec.middleware],appPages:[ec.reactServerComponents,ec.serverSideRendering,ec.appPagesBrowser,ec.actionBrowser]}},ed={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}},75123,(e,t,r)=>{"use strict";function n(e){return(e.then(a),"fulfilled"!==e.status)?null:e.value}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"readVaryParams",{enumerable:!0,get:function(){return n}});let a=()=>{}},77793,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PrefetchHint",{enumerable:!0,get:function(){return a}});var n,a=((n={})[n.HasRuntimePrefetch=1]="HasRuntimePrefetch",n[n.SubtreeHasInstant=2]="SubtreeHasInstant",n[n.SegmentHasLoadingBoundary=4]="SegmentHasLoadingBoundary",n[n.SubtreeHasLoadingBoundary=8]="SubtreeHasLoadingBoundary",n[n.IsRootLayout=16]="IsRootLayout",n[n.ParentInlinedIntoSelf=32]="ParentInlinedIntoSelf",n[n.InlinedIntoChild=64]="InlinedIntoChild",n[n.HeadInlinedIntoSelf=128]="HeadInlinedIntoSelf",n[n.HeadOutlined=256]="HeadOutlined",n)},69979,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"matchSegment",{enumerable:!0,get:function(){return n}});let n=(e,t)=>"string"==typeof e?"string"==typeof t&&e===t:"string"!=typeof t&&e[0]===t[0]&&e[1]===t[1];("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},52111,(e,t,r)=>{"use strict";function n(e,t){let r=new URL(e);return{pathname:r.pathname,search:r.search,nextUrl:t}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createCacheKey",{enumerable:!0,get:function(){return n}}),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},53133,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,a,u,i={FetchStrategy:function(){return c},NavigationResultTag:function(){return l},PrefetchPriority:function(){return s}};for(var o in i)Object.defineProperty(r,o,{enumerable:!0,get:i[o]});var l=((n={})[n.MPA=0]="MPA",n[n.Success=1]="Success",n[n.NoOp=2]="NoOp",n[n.Async=3]="Async",n),s=((a={})[a.Intent=2]="Intent",a[a.Default=1]="Default",a[a.Background=0]="Background",a),c=((u={})[u.LoadingBoundary=0]="LoadingBoundary",u[u.PPR=1]="PPR",u[u.PPRRuntime=2]="PPRRuntime",u[u.Full=3]="Full",u);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},32633,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={Fallback:function(){return i},createCacheMap:function(){return l},deleteFromCacheMap:function(){return p},deleteMapEntry:function(){return h},getFromCacheMap:function(){return s},isValueExpired:function(){return c},setInCacheMap:function(){return f},setSizeInCacheMap:function(){return y}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(79091),i={},o={};function l(){return{parent:null,key:null,value:null,map:null,prev:null,next:null,size:0}}function s(e,t,r,n,a){let l=function e(t,r,n,a,u,l){let s,f;if(null!==a)s=a.value,f=a.parent;else if(u&&l!==o)s=o,f=null;else return null===n.value?n:c(t,r,n.value)?(h(n),null):n;let d=n.map;if(null!==d){let n=d.get(s);if(void 0!==n){let a=e(t,r,n,f,u,s);if(null!==a)return a}let a=d.get(i);if(void 0!==a)return e(t,r,a,f,u,s)}return null}(e,t,r,n,a,0);return null===l||null===l.value?null:((0,u.lruPut)(l),l.value)}function c(e,t,r){return r.staleAt<=e||r.version{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={cleanup:function(){return p},deleteFromLru:function(){return f},lruPut:function(){return s},updateLruSize:function(){return c}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(32633),i=e.r(12275),o=null,l=0;function s(e){if(o===e)return;let t=e.prev,r=e.next;if(null===r||null===t?(l+=e.size,d()):(t.next=r,r.prev=t),null===o)e.prev=e,e.next=e;else{let t=o.prev;e.prev=t,null!==t&&(t.next=e),e.next=o,o.prev=e}o=e}function c(e,t){let r=e.size;e.size=t,null!==e.next&&(l=l-r+t,d())}function f(e){let t=e.next,r=e.prev;null!==t&&null!==r&&(l-=e.size,e.next=null,e.prev=null,o===e?t===o?o=null:(o=t,r.next=t,t.prev=r):(r.next=t,t.prev=r))}function d(){l<=0x3200000||(0,i.pingPrefetchScheduler)()}function p(){if(!(l<=0x3200000))for(;l>0x2d00000&&null!==o;){let e=o.prev;null!==e&&(0,u.deleteMapEntry)(e)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},12275,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={cancelPrefetchTask:function(){return R},isPrefetchTaskDirty:function(){return S},pingPrefetchScheduler:function(){return O},pingPrefetchTask:function(){return j},reschedulePrefetchTask:function(){return b},schedulePrefetchTask:function(){return v},startRevalidationCooldown:function(){return E}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(77793),i=e.r(69979),o=e.r(8458),l=e.r(52111),s=e.r(53133),c=e.r(29164),f=e.r(79091),d="function"==typeof queueMicrotask?queueMicrotask:e=>Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e})),p=[],h=0,y=0,g=!1,_=null,m=null;function E(){null!==m&&clearTimeout(m),m=setTimeout(()=>{m=null,O()},300)}function v(e,t,r,n,a,u){let i={key:e,treeAtTimeOfPrefetch:t,routeCacheVersion:(0,o.getCurrentRouteCacheVersion)(),segmentCacheVersion:(0,o.getCurrentSegmentCacheVersion)(),priority:n,phase:1,hasBackgroundWork:!1,spawnedRuntimePrefetches:null,fetchStrategy:r,sortId:y++,isCanceled:!1,onInvalidate:a,_heapIndex:-1};return P(i),L(p,i),O(),i}function R(e){e.isCanceled=!0,function(e,t){let r=t._heapIndex;if(-1!==r&&(t._heapIndex=-1,0!==e.length)){let n=e.pop();n!==t&&(e[r]=n,n._heapIndex=r,V(e,n,r))}}(p,e)}function b(e,t,r,n){e.isCanceled=!1,e.phase=1,e.sortId=y++,e.priority=e===_?s.PrefetchPriority.Intent:n,e.treeAtTimeOfPrefetch=t,e.fetchStrategy=r,P(e),-1!==e._heapIndex?$(p,e):L(p,e),O()}function S(e,t,r){return e.routeCacheVersion!==(0,o.getCurrentRouteCacheVersion)()||e.segmentCacheVersion!==(0,o.getCurrentSegmentCacheVersion)()||e.treeAtTimeOfPrefetch!==r||e.key.nextUrl!==t}function P(e){e.priority===s.PrefetchPriority.Intent&&e!==_&&(null!==_&&_.priority!==s.PrefetchPriority.Background&&(_.priority=s.PrefetchPriority.Default,$(p,_)),_=e)}function O(){g||(g=!0,d(N))}function T(e){return null===m&&(e.priority===s.PrefetchPriority.Intent?h<12:h<4)}function w(e){return h++,e.then(e=>null===e?(A(),null):(e.closed.then(A),e.value))}function A(){h--,O()}function j(e){e.isCanceled||-1!==e._heapIndex||(L(p,e),O())}function N(){g=!1;let e=Date.now(),t=H(p);for(;null!==t&&T(t);){t.routeCacheVersion=(0,o.getCurrentRouteCacheVersion)(),t.segmentCacheVersion=(0,o.getCurrentSegmentCacheVersion)();let r=function(e,t){let r=t.key,n=(0,o.readOrCreateRouteCacheEntry)(e,t,r),a=function(e,t,r){switch(r.status){case o.EntryStatus.Empty:w((0,o.fetchRouteOnCacheMiss)(r,t.key)),r.staleAt=e+6e4,r.status=o.EntryStatus.Pending;case o.EntryStatus.Pending:{let e=r.blockedTasks;return null===e?r.blockedTasks=new Set([t]):e.add(t),1}case o.EntryStatus.Rejected:break;case o.EntryStatus.Fulfilled:{let l;if(0!==t.phase)return 2;if(!T(t))return 0;let c=r.tree;switch(l=c.prefetchHints&u.PrefetchHint.SubtreeHasInstant?s.FetchStrategy.PPR:t.fetchStrategy===s.FetchStrategy.PPR?r.supportsPerSegmentPrefetching?s.FetchStrategy.PPR:s.FetchStrategy.LoadingBoundary:t.fetchStrategy){case s.FetchStrategy.PPR:{var n,a,i;if(I(n=e,a=t,i=r,(0,o.readOrCreateSegmentCacheEntry)(n,s.FetchStrategy.PPR,i.metadata),a.key,i.metadata),0===function e(t,r,n,a,i){let l=(0,o.readOrCreateSegmentCacheEntry)(t,r.fetchStrategy,i);I(t,r,n,l,r.key,i);let s=a[1],c=i.slots;if(null!==c)for(let a in c){if(!T(r))return 0;let i=c[a],l=i.segment,f=s[a],d=f?.[0];if(0===(void 0!==d&&U(n,l,d)?e(t,r,n,f,i):function e(t,r,n,a){if(a.prefetchHints&u.PrefetchHint.HasRuntimePrefetch)return null===r.spawnedRuntimePrefetches?r.spawnedRuntimePrefetches=new Set([a.requestKey]):r.spawnedRuntimePrefetches.add(a.requestKey),2;let i=(0,o.readOrCreateSegmentCacheEntry)(t,r.fetchStrategy,a);if(I(t,r,n,i,r.key,a),null!==a.slots){if(!T(r))return 0;for(let u in a.slots)if(0===e(t,r,n,a.slots[u]))return 0}return 2}(t,r,n,i)))return 0}return 2}(e,t,r,t.treeAtTimeOfPrefetch,c))return 0;let l=t.spawnedRuntimePrefetches;if(null!==l){let n=new Map;D(e,t,r,n,s.FetchStrategy.PPRRuntime);let a=function e(t,r,n,a,u,i){if(u.has(a.requestKey))return M(t,r,n,a,!1,i,s.FetchStrategy.PPRRuntime);let o={},l=a.slots;if(null!==l)for(let a in l){let s=l[a];o[a]=e(t,r,n,s,u,i)}return[a.segment,o,null,null]}(e,t,r,c,l,n);n.size>0&&w((0,o.fetchSegmentPrefetchesUsingDynamicRequest)(t,r,s.FetchStrategy.PPRRuntime,a,n))}return 2}case s.FetchStrategy.Full:case s.FetchStrategy.PPRRuntime:case s.FetchStrategy.LoadingBoundary:{let n=new Map;D(e,t,r,n,l);let a=function e(t,r,n,a,i,l,c){let f=a[1],d=i.slots,p={};if(null!==d)for(let a in d){let i=d[a],h=i.segment,y=f[a],g=y?.[0];if(void 0!==g&&U(n,h,g)){let u=e(t,r,n,y,i,l,c);p[a]=u}else switch(c){case s.FetchStrategy.LoadingBoundary:{let e=(i.prefetchHints&(u.PrefetchHint.SegmentHasLoadingBoundary|u.PrefetchHint.SubtreeHasLoadingBoundary))!=0?function e(t,r,n,a,i,l){let c=null===i?"inside-shared-layout":null,f=(0,o.readOrCreateSegmentCacheEntry)(t,r.fetchStrategy,a);switch(f.status){case o.EntryStatus.Empty:l.set(a.requestKey,(0,o.upgradeToPendingSegment)(f,s.FetchStrategy.LoadingBoundary)),"refetch"!==i&&(c=i="refetch");break;case o.EntryStatus.Fulfilled:if((a.prefetchHints&u.PrefetchHint.SegmentHasLoadingBoundary)!=0)return(0,o.convertRouteTreeToFlightRouterState)(a);case o.EntryStatus.Pending:case o.EntryStatus.Rejected:}let d={};if(null!==a.slots)for(let u in a.slots){let o=a.slots[u];d[u]=e(t,r,n,o,i,l)}return[a.segment,d,null,c]}(t,r,n,i,null,l):(0,o.convertRouteTreeToFlightRouterState)(i);p[a]=e;break}case s.FetchStrategy.PPRRuntime:{let e=M(t,r,n,i,!1,l,c);p[a]=e;break}case s.FetchStrategy.Full:{let e=M(t,r,n,i,!1,l,c);p[a]=e}}}return[i.segment,p,null,null]}(e,t,r,t.treeAtTimeOfPrefetch,c,n,l);return n.size>0&&w((0,o.fetchSegmentPrefetchesUsingDynamicRequest)(t,r,l,a,n)),2}}}}return 2}(e,t,n);if(0!==a&&""!==r.search){let n=new URL(r.pathname,location.origin),a=(0,l.createCacheKey)(n.href,r.nextUrl),u=(0,o.readOrCreateRouteCacheEntry)(e,t,a);switch(u.status){case o.EntryStatus.Empty:C(t)&&(u.status=o.EntryStatus.Pending,w((0,o.fetchRouteOnCacheMiss)(u,a)));case o.EntryStatus.Pending:case o.EntryStatus.Fulfilled:case o.EntryStatus.Rejected:}}return a}(e,t),n=t.hasBackgroundWork;switch(t.hasBackgroundWork=!1,t.spawnedRuntimePrefetches=null,r){case 0:return;case 1:B(p),t=H(p);continue;case 2:1===t.phase?(t.phase=0,$(p,t)):n?(t.priority=s.PrefetchPriority.Background,$(p,t)):B(p),t=H(p);continue}}null===t&&0===h&&(0,f.cleanup)()}function C(e){return e.priority===s.PrefetchPriority.Background||(e.hasBackgroundWork=!0,!1)}function D(e,t,r,n,a){M(e,t,r,r.metadata,!1,n,a===s.FetchStrategy.LoadingBoundary?s.FetchStrategy.Full:a)}function M(e,t,r,n,a,u,i){let l=(0,o.readOrCreateSegmentCacheEntry)(e,i,n),c=null;switch(l.status){case o.EntryStatus.Empty:if(i===s.FetchStrategy.Full&&null!==(0,o.attemptToFulfillDynamicSegmentFromBFCache)(e,l,n))break;c=(0,o.upgradeToPendingSegment)(l,i);break;case o.EntryStatus.Fulfilled:if(l.isPartial&&(0,o.canNewFetchStrategyProvideMoreContent)(l.fetchStrategy,i)){if(i===s.FetchStrategy.Full&&null!==(0,o.attemptToUpgradeSegmentFromBFCache)(e,n))break;c=F(e,n,i)}break;case o.EntryStatus.Pending:case o.EntryStatus.Rejected:(0,o.canNewFetchStrategyProvideMoreContent)(l.fetchStrategy,i)&&(c=F(e,n,i))}let f={};if(null!==n.slots)for(let o in n.slots){let l=n.slots[o];f[o]=M(e,t,r,l,a||null!==c,u,i)}null!==c&&u.set(n.requestKey,c);let d=a||null===c?null:"refetch";return[n.segment,f,null,d]}function I(e,t,r,n,a,u){switch(n.status){case o.EntryStatus.Empty:w((0,o.fetchSegmentOnCacheMiss)(r,(0,o.upgradeToPendingSegment)(n,s.FetchStrategy.PPR),a,u));break;case o.EntryStatus.Pending:switch(n.fetchStrategy){case s.FetchStrategy.PPR:case s.FetchStrategy.PPRRuntime:case s.FetchStrategy.Full:break;case s.FetchStrategy.LoadingBoundary:C(t)&&x(e,r,a,u);break;default:n.fetchStrategy}break;case o.EntryStatus.Rejected:switch(n.fetchStrategy){case s.FetchStrategy.PPR:case s.FetchStrategy.PPRRuntime:case s.FetchStrategy.Full:break;case s.FetchStrategy.LoadingBoundary:x(e,r,a,u);break;default:n.fetchStrategy}case o.EntryStatus.Fulfilled:}}function x(e,t,r,n){let a=(0,o.readOrCreateRevalidatingSegmentEntry)(e,s.FetchStrategy.PPR,n);switch(a.status){case o.EntryStatus.Empty:w((0,o.fetchSegmentOnCacheMiss)(t,(0,o.upgradeToPendingSegment)(a,s.FetchStrategy.PPR),r,n));case o.EntryStatus.Pending:case o.EntryStatus.Fulfilled:case o.EntryStatus.Rejected:}}function F(e,t,r){let n=(0,o.readOrCreateRevalidatingSegmentEntry)(e,r,t);if(n.status===o.EntryStatus.Empty)return(0,o.upgradeToPendingSegment)(n,r);if((0,o.canNewFetchStrategyProvideMoreContent)(n.fetchStrategy,r)){let n=(0,o.overwriteRevalidatingSegmentCacheEntry)(e,r,t);return(0,o.upgradeToPendingSegment)(n,r)}switch(n.status){case o.EntryStatus.Pending:case o.EntryStatus.Fulfilled:case o.EntryStatus.Rejected:default:return null}}function U(e,t,r){return r===c.PAGE_SEGMENT_KEY?t===(0,c.addSearchParamsIfPageSegment)(c.PAGE_SEGMENT_KEY,Object.fromEntries(new URLSearchParams(e.renderedSearch))):(0,i.matchSegment)(r,t)}function k(e,t){let r=t.priority-e.priority;if(0!==r)return r;let n=t.phase-e.phase;return 0!==n?n:t.sortId-e.sortId}function L(e,t){let r=e.length;e.push(t),t._heapIndex=r,X(e,t,r)}function H(e){return 0===e.length?null:e[0]}function B(e){if(0===e.length)return null;let t=e[0];t._heapIndex=-1;let r=e.pop();return r!==t&&(e[0]=r,r._heapIndex=0,V(e,r,0)),t}function $(e,t){let r=t._heapIndex;-1!==r&&(0===r?V(e,t,0):k(e[r-1>>>1],t)>0?X(e,t,r):V(e,t,r))}function X(e,t,r){let n=r;for(;n>0;){let r=n-1>>>1,a=e[r];if(!(k(a,t)>0))return;e[r]=t,t._heapIndex=r,e[n]=a,a._heapIndex=n,n=r}}function V(e,t,r){let n=r,a=e.length,u=a>>>1;for(;nk(u,t))ik(o,u)?(e[n]=o,o._heapIndex=n,e[i]=t,t._heapIndex=i,n=i):(e[n]=u,u._heapIndex=n,e[r]=t,t._heapIndex=r,n=r);else{if(!(ik(o,t)))return;e[n]=o,o._heapIndex=n,e[i]=t,t._heapIndex=i,n=i}}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},54295,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={appendLayoutVaryPath:function(){return c},clonePageVaryPathWithNewSearchParams:function(){return _},finalizeLayoutVaryPath:function(){return f},finalizeMetadataVaryPath:function(){return y},finalizePageVaryPath:function(){return p},getFulfilledRouteVaryPath:function(){return s},getFulfilledSegmentVaryPath:function(){return function e(t,r){return{id:t.id,value:null===t.id||r.has(t.id)?t.value:i.Fallback,parent:null===t.parent?null:e(t.parent,r)}}},getPartialLayoutVaryPath:function(){return d},getPartialPageVaryPath:function(){return h},getRenderedSearchFromVaryPath:function(){return m},getRouteVaryPath:function(){return l},getSegmentVaryPathForRequest:function(){return g}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(53133),i=e.r(32633),o=e.r(61719);function l(e,t,r){return{id:null,value:e,parent:{id:"?",value:t,parent:{id:null,value:r,parent:null}}}}function s(e,t,r,n){return{id:null,value:e,parent:{id:"?",value:t,parent:{id:null,value:n?r:i.Fallback,parent:null}}}}function c(e,t,r){return{id:r,value:t,parent:e}}function f(e,t){return{id:null,value:e,parent:t}}function d(e){return e.parent}function p(e,t,r){return{id:null,value:e,parent:{id:"?",value:t,parent:r}}}function h(e){return e.parent.parent}function y(e,t,r){return{id:null,value:e+o.HEAD_REQUEST_KEY,parent:{id:"?",value:t,parent:r}}}function g(e,t){let r=t.varyPath;if(t.isPage&&e!==u.FetchStrategy.Full&&e!==u.FetchStrategy.PPRRuntime){let e=r.parent.parent;return{id:null,value:r.value,parent:{id:"?",value:i.Fallback,parent:e}}}return r}function _(e,t){let r=e.parent;return{id:null,value:e.value,parent:{id:"?",value:t,parent:r.parent}}}function m(e){let t=e.parent.value;return"string"==typeof t?t:null}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},5942,(e,t,r)=>{"use strict";function n(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"parsePath",{enumerable:!0,get:function(){return n}})},51939,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addPathPrefix",{enumerable:!0,get:function(){return a}});let n=e.r(5942);function a(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:a,hash:u}=(0,n.parsePath)(e);return`${t}${r}${a}${u}`}},72914,(e,t,r)=>{"use strict";function n(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"removeTrailingSlash",{enumerable:!0,get:function(){return n}})},23269,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return u}});let n=e.r(72914),a=e.r(5942),u=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:r,hash:u}=(0,a.parsePath)(e);return/\.[^/]+\/?$/.test(t)?`${(0,n.removeTrailingSlash)(t)}${r}${u}`:t.endsWith("/")?`${t}${r}${u}`:`${t}/${r}${u}`};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},2187,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addBasePath",{enumerable:!0,get:function(){return u}});let n=e.r(51939),a=e.r(23269);function u(e,t){return(0,a.normalizePathTrailingSlash)((0,n.addPathPrefix)(e,""))}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},17770,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={createPrefetchURL:function(){return l},isExternalURL:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(98456),i=e.r(2187);function o(e){return e.origin!==window.location.origin}function l(e){let t;if((0,u.isBot)(window.navigator.userAgent))return null;try{t=new URL((0,i.addBasePath)(e),window.location.href)}catch(t){throw Object.defineProperty(Error(`Cannot prefetch '${e}' because it cannot be converted to a URL.`),"__NEXT_ERROR_CODE",{value:"E234",enumerable:!1,configurable:!0})}return o(t)?null:t}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},86473,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={IDLE_LINK_STATUS:function(){return f},PENDING_LINK_STATUS:function(){return c},getLinkForCurrentNavigation:function(){return h},mountFormInstance:function(){return R},mountLinkInstance:function(){return v},onLinkVisibilityChanged:function(){return S},onNavigationIntent:function(){return P},pingVisibleLinks:function(){return T},setLinkForCurrentNavigation:function(){return d},unmountLinkForCurrentNavigation:function(){return p},unmountPrefetchableInstance:function(){return b}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(53133),i=e.r(52111),o=e.r(12275),l=e.r(12713),s=null,c={pending:!0},f={pending:!1};function d(e){(0,l.startTransition)(()=>{s?.setOptimisticLinkStatus(f),e?.setOptimisticLinkStatus(c),s=e})}function p(e){s===e&&(s=null)}function h(){return s}let y="function"==typeof WeakMap?new WeakMap:new Map,g=new Set,_="function"==typeof IntersectionObserver?new IntersectionObserver(function(e){for(let t of e){let e=t.intersectionRatio>0;S(t.target,e)}},{rootMargin:"200px"}):null;function m(e,t){void 0!==y.get(e)&&b(e),y.set(e,t),null!==_&&_.observe(e)}function E(t){if(!("u">typeof window))return null;{let{createPrefetchURL:r}=e.r(17770);try{return r(t)}catch{return("function"==typeof reportError?reportError:console.error)(`Cannot prefetch '${t}' because it cannot be converted to a URL.`),null}}}function v(e,t,r,n,a,u){if(a){let a=E(t);if(null!==a){let t={router:r,fetchStrategy:n,isVisible:!1,prefetchTask:null,prefetchHref:a.href,setOptimisticLinkStatus:u};return m(e,t),t}}return{router:r,fetchStrategy:n,isVisible:!1,prefetchTask:null,prefetchHref:null,setOptimisticLinkStatus:u}}function R(e,t,r,n){let a=E(t);null===a||m(e,{router:r,fetchStrategy:n,isVisible:!1,prefetchTask:null,prefetchHref:a.href,setOptimisticLinkStatus:null})}function b(e){let t=y.get(e);if(void 0!==t){y.delete(e),g.delete(t);let r=t.prefetchTask;null!==r&&(0,o.cancelPrefetchTask)(r)}null!==_&&_.unobserve(e)}function S(e,t){let r=y.get(e);void 0!==r&&(r.isVisible=t,t?g.add(r):g.delete(r),O(r,u.PrefetchPriority.Default))}function P(e,t){let r=y.get(e);void 0!==r&&void 0!==r&&O(r,u.PrefetchPriority.Intent)}function O(t,r){if("u">typeof window){let n=t.prefetchTask;if(!t.isVisible){null!==n&&(0,o.cancelPrefetchTask)(n);return}let{getCurrentAppRouterState:a}=e.r(33368),u=a();if(null!==u){let e=u.tree;if(null===n){let n=u.nextUrl,a=(0,i.createCacheKey)(t.prefetchHref,n);t.prefetchTask=(0,o.schedulePrefetchTask)(a,e,t.fetchStrategy,r,null)}else(0,o.reschedulePrefetchTask)(n,e,t.fetchStrategy,r)}}}function T(e,t){for(let r of g){let n=r.prefetchTask;if(null!==n&&!(0,o.isPrefetchTaskDirty)(n,e,t))continue;null!==n&&(0,o.cancelPrefetchTask)(n);let a=(0,i.createCacheKey)(r.prefetchHref,e);r.prefetchTask=(0,o.schedulePrefetchTask)(a,t,r.fetchStrategy,u.PrefetchPriority.Default,null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},25771,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={UnknownDynamicStaleTime:function(){return o},computeDynamicStaleAt:function(){return l},invalidateBfCache:function(){return f},readFromBFCache:function(){return y},readFromBFCacheDuringRegularNavigation:function(){return g},updateBFCacheEntryStaleAt:function(){return h},writeHeadToBFCache:function(){return p},writeToBFCache:function(){return d}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(31134),i=e.r(32633),o=-1;function l(e,t){return t!==o?e+1e3*t:e+u.DYNAMIC_STALETIME_MS}let s=(0,i.createCacheMap)(),c=0;function f(){"u">typeof window&&c++}function d(e,t,r,n,a,u,o){if("u"{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={discoverKnownRoute:function(){return c},matchKnownRoute:function(){return d},resetKnownRoutes:function(){return p}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(8458),i=e.r(8344),o=e.r(54295);function l(){return{staticChildren:null,dynamicChild:null,dynamicChildParamName:null,dynamicChildParamType:null,pattern:null}}let s=l();function c(e,t,r,n,a,i,o,l,c,d){let p=t.split("/").filter(e=>""!==e),h=p.length>0?p[0]:null,y=p.length>0?p.slice(1):[];if(null!==n){let p=(0,u.fulfillRouteCacheEntry)(e,n,a,i,o,l,c);return d&&(p.hasDynamicRewrite=!0),f(s,a,h,y,p,e,t,r,a,i,o,l,c,d),p}return f(s,a,h,y,null,e,t,r,a,i,o,l,c,d)}function f(e,t,r,n,a,o,s,c,d,p,h,y,g,_){let m,E,v=t.segment,R=null,b=null,S=null;"string"==typeof v?m=(0,i.doesStaticSegmentAppearInURL)(v):(R=v[0],b=v[2],S=v[3],m=!0);let P=e,O=r,T=n;if(m){if(null===R&&r!==v)return null!==a?a:(0,u.writeRouteIntoCache)(o,s,c,d,p,h,y,g);if(null!==R&&null!==b){if(P=function(e,t,r){if(null!==e.dynamicChild)return e.dynamicChild;let n=l();return e.dynamicChild=n,e.dynamicChildParamName=t,e.dynamicChildParamType=r,n}(e,R,b),null!==S)for(let t of(null===e.staticChildren&&(e.staticChildren=new Map),S))e.staticChildren.has(t)||e.staticChildren.set(t,l())}else{null===e.staticChildren&&(e.staticChildren=new Map);let t=e.staticChildren.get(r);void 0===t&&(t=l(),e.staticChildren.set(r,t)),P=t}O=n.length>0?n[0]:null,T=n.length>0?n.slice(1):[]}let w=t.slots,A=null;if(null!==w){for(let e in w){let t=w[e];null===t.refreshState&&(A=f(P,t,O,T,a,o,s,c,d,p,h,y,g,_))}return null!==A?A:null!==a?a:(0,u.writeRouteIntoCache)(o,s,c,d,p,h,y,g)}return null!==P.pattern?(_&&(P.pattern.hasDynamicRewrite=!0),P.pattern):(E=null!==a?a:(0,u.writeRouteIntoCache)(o,s,c,d,p,h,y,g),_&&(E.hasDynamicRewrite=!0),P.pattern=E,E)}function d(e,t){let r=e.split("/").filter(e=>""!==e),n=new Map,a=function e(t,r,n,a){let u=n{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,a={EntryStatus:function(){return A},attemptToFulfillDynamicSegmentFromBFCache:function(){return ee},attemptToUpgradeSegmentFromBFCache:function(){return et},canNewFetchStrategyProvideMoreContent:function(){return eS},convertReusedFlightRouterStateToRouteTree:function(){return ef},convertRootFlightRouterStateToRouteTree:function(){return ec},convertRouteTreeToFlightRouterState:function(){return function e(t){let r={};if(null!==t.slots)for(let n in t.slots)r[n]=e(t.slots[n]);return[t.segment,r,null,null]}},createDetachedSegmentCacheEntry:function(){return J},createMetadataRouteTree:function(){return en},deprecated_requestOptimisticRouteCacheEntry:function(){return K},fetchInlinedSegmentsOnCacheMiss:function(){return ey},fetchRouteOnCacheMiss:function(){return ep},fetchSegmentOnCacheMiss:function(){return eh},fetchSegmentPrefetchesUsingDynamicRequest:function(){return eg},fulfillRouteCacheEntry:function(){return ea},getCurrentRouteCacheVersion:function(){return x},getCurrentSegmentCacheVersion:function(){return F},getStaleAt:function(){return eO},getStaleTimeMs:function(){return w},invalidateEntirePrefetchCache:function(){return U},invalidateRouteCacheEntries:function(){return k},invalidateSegmentCacheEntries:function(){return L},markRouteEntryAsDynamicRewrite:function(){return ei},overwriteRevalidatingSegmentCacheEntry:function(){return z},pingInvalidationListeners:function(){return H},processRuntimePrefetchStream:function(){return ew},readOrCreateRevalidatingSegmentEntry:function(){return W},readOrCreateRouteCacheEntry:function(){return G},readOrCreateSegmentCacheEntry:function(){return q},readRouteCacheEntry:function(){return B},readSegmentCacheEntry:function(){return $},stripIsPartialByte:function(){return eA},upgradeToPendingSegment:function(){return Z},upsertSegmentEntry:function(){return Q},waitForSegmentCacheEntry:function(){return X},writeDynamicRenderResponseIntoCache:function(){return em},writeRouteIntoCache:function(){return eu},writeStaticStageResponseIntoCache:function(){return eT}};for(var u in a)Object.defineProperty(r,u,{enumerable:!0,get:a[u]});let i=e.r(75123),o=e.r(29721),l=e.r(63024),s=e.r(12275),c=e.r(54295),f=e.r(36064),d=e.r(52111),p=e.r(8344),h=e.r(32633),y=e.r(61719),g=e.r(32279),_=e.r(31134),m=e.r(86473),E=e.r(29164),v=e.r(53133),R=e.r(18767),b=e.r(25771),S=e.r(40868),P=e.r(34628),O=e.r(98555),T=e.r(91227);function w(e){return 1e3*Math.max(e,30)}var A=((n={})[n.Empty=0]="Empty",n[n.Pending=1]="Pending",n[n.Fulfilled=2]="Fulfilled",n[n.Rejected=3]="Rejected",n);let j=["",{},null,"metadata-only"],N=(0,h.createCacheMap)(),C=(0,h.createCacheMap)(),D=null,M=0,I=0;function x(){return M}function F(){return I}function U(e,t){M++,I++,(0,m.pingVisibleLinks)(e,t),H(e,t)}function k(e,t){M++,(0,m.pingVisibleLinks)(e,t),H(e,t)}function L(e,t){I++,(0,m.pingVisibleLinks)(e,t),H(e,t)}function H(e,t){if(null!==D){let r=D;for(let n of(D=null,r))(0,s.isPrefetchTaskDirty)(n,e,t)&&function(e){let t=e.onInvalidate;if(null!==t){e.onInvalidate=null;try{t()}catch(e){"function"==typeof reportError?reportError(e):console.error(e)}}}(n)}}function B(e,t){let r=(0,c.getRouteVaryPath)(t.pathname,t.search,t.nextUrl),n=(0,h.getFromCacheMap)(e,M,N,r,!1);return null!==n?n:null}function $(e,t){return(0,h.getFromCacheMap)(e,I,C,t,!1)}function X(e){let t=e.promise;return null===t&&(t=e.promise=(0,R.createPromiseWithResolvers)()),t.promise}function V(){return{canonicalUrl:null,status:0,blockedTasks:null,tree:null,metadata:null,couldBeIntercepted:!0,supportsPerSegmentPrefetching:!1,renderedSearch:null,ref:null,size:0,staleAt:1/0,version:M}}function G(e,t,r){null!==t.onInvalidate&&(null===D?D=new Set([t]):D.add(t));let n=B(e,r);if(null!==n)return n;let a=V(),u=(0,c.getRouteVaryPath)(r.pathname,r.search,r.nextUrl);return(0,h.setInCacheMap)(N,u,a,!1),a}function K(e,t,r){let n=t.search;if(""===n)return null;let a=new URL(t);a.search="";let u=B(e,(0,d.createCacheKey)(a.href,r));if(null===u||2!==u.status)return null;let i=new URL(u.canonicalUrl,t.origin),o=""!==i.search?i.search:n,l=""!==u.renderedSearch?u.renderedSearch:n,s=new URL(u.canonicalUrl,location.origin);return s.search=o,{canonicalUrl:(0,f.createHrefFromUrl)(s),status:2,blockedTasks:null,tree:Y(u.tree,l),metadata:Y(u.metadata,l),couldBeIntercepted:u.couldBeIntercepted,supportsPerSegmentPrefetching:u.supportsPerSegmentPrefetching,hasDynamicRewrite:u.hasDynamicRewrite,renderedSearch:l,ref:null,size:0,staleAt:u.staleAt,version:u.version}}function Y(e,t){let r=null,n=e.slots;if(null!==n)for(let e in r={},n){let a=n[e];r[e]=Y(a,t)}return e.isPage?{requestKey:e.requestKey,segment:e.segment,refreshState:e.refreshState,varyPath:(0,c.clonePageVaryPathWithNewSearchParams)(e.varyPath,t),isPage:!0,slots:r,prefetchHints:e.prefetchHints}:{requestKey:e.requestKey,segment:e.segment,refreshState:e.refreshState,varyPath:e.varyPath,isPage:!1,slots:r,prefetchHints:e.prefetchHints}}function q(e,t,r){let n=$(e,r.varyPath);if(null!==n)return n;let a=(0,c.getSegmentVaryPathForRequest)(t,r),u=J(e);return(0,h.setInCacheMap)(C,a,u,!1),u}function W(e,t,r){var n;let a=(n=r.varyPath,(0,h.getFromCacheMap)(e,I,C,n,!0));if(null!==a)return a;let u=(0,c.getSegmentVaryPathForRequest)(t,r),i=J(e);return(0,h.setInCacheMap)(C,u,i,!0),i}function z(e,t,r){let n=(0,c.getSegmentVaryPathForRequest)(t,r),a=J(e);return(0,h.setInCacheMap)(C,n,a,!0),a}function Q(e,t,r){if((0,h.isValueExpired)(e,I,r))return null;let n=$(e,t);if(null!==n){var a;if(r.fetchStrategy!==n.fetchStrategy&&(a=n.fetchStrategy,!(ar?null:eo(Z(t,v.FetchStrategy.Full),a.rsc,r,!1)}return null}function et(e,t){let r=t.varyPath,n=(0,b.readFromBFCache)(r);if(null!==n){let r=n.navigatedAt+_.STATIC_STALETIME_MS;if(e>r)return null;let a=eo(Z(J(e),v.FetchStrategy.Full),n.rsc,r,!1),u=Q(e,(0,c.getSegmentVaryPathForRequest)(v.FetchStrategy.Full,t),a);if(null!==u&&2===u.status)return u}return null}function er(e){let t=e.blockedTasks;if(null!==t){for(let e of t)(0,s.pingPrefetchTask)(e);e.blockedTasks=null}}function en(e){return{requestKey:y.HEAD_REQUEST_KEY,segment:y.HEAD_REQUEST_KEY,refreshState:null,varyPath:e,isPage:!0,slots:null,prefetchHints:0}}function ea(e,t,r,n,a,u,i){let o=(0,c.getRenderedSearchFromVaryPath)(n)??"";return t.status=2,t.tree=r,t.metadata=en(n),t.staleAt=e+_.STATIC_STALETIME_MS,t.couldBeIntercepted=a,t.canonicalUrl=u,t.renderedSearch=o,t.supportsPerSegmentPrefetching=i,t.hasDynamicRewrite=!1,er(t),t}function eu(e,t,r,n,a,u,i,o){let l=ea(e,V(),n,a,u,i,o),s=l.renderedSearch,f=(0,c.getFulfilledRouteVaryPath)(t,s,r,u);return(0,h.setInCacheMap)(N,f,l,!1),l}function ei(e){e.hasDynamicRewrite=!0}function eo(e,t,r,n){return e.status=2,e.rsc=t,e.staleAt=r,e.isPartial=n,null!==e.promise&&(e.promise.resolve(e),e.promise=null),e}function el(e,t){e.status=3,e.staleAt=t,er(e)}function es(e,t){e.status=3,e.staleAt=t,null!==e.promise&&(e.promise.resolve(null),e.promise=null)}function ec(e,t,r){return ed(e,y.ROOT_SEGMENT_REQUEST_KEY,null,t,r)}function ef(e,t,r,n,a){let u=e.isPage?(0,c.getPartialPageVaryPath)(e.varyPath):(0,c.getPartialLayoutVaryPath)(e.varyPath),i=r[0],o=e.requestKey,l=(0,y.createSegmentRequestKeyPart)(i);return ed(r,(0,y.appendSegmentRequestKeyPart)(o,t,l),u,n,a)}function ed(e,t,r,n,a){let u,i,o,l,s=e[0],f=e[2]??null,d=null!==f?{canonicalUrl:f[0],renderedSearch:f[1]}:null,p=null!==d?d.renderedSearch:n;if(Array.isArray(s)){o=!1;let e=s[1],n=s[0];i=(0,c.appendLayoutVaryPath)(r,e,n),l=(0,c.finalizeLayoutVaryPath)(t,i),u=s}else i=r,t.endsWith(E.PAGE_SEGMENT_KEY)?(o=!0,u=E.PAGE_SEGMENT_KEY,l=(0,c.finalizePageVaryPath)(t,p,i),null===a.metadataVaryPath&&(a.metadataVaryPath=(0,c.finalizeMetadataVaryPath)(t,p,i))):(o=!1,u=s,l=(0,c.finalizeLayoutVaryPath)(t,i));let h=null,g=e[1];for(let e in g){let r=g[e],n=r[0],u=(0,y.createSegmentRequestKeyPart)(n),o=ed(r,(0,y.appendSegmentRequestKeyPart)(t,e,u),i,p,a);null===h?h={[e]:o}:h[e]=o}return{requestKey:t,segment:u,refreshState:d,varyPath:l,isPage:o,slots:h,prefetchHints:e[4]??0}}async function ep(e,t){let r=t.pathname,n=t.search,a=t.nextUrl,u="/_tree",i={[o.RSC_HEADER]:"1",[o.NEXT_ROUTER_PREFETCH_HEADER]:"1",[o.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER]:u};null!==a&&(i[o.NEXT_URL]=a),eP(i);try{let t,s,d=new URL(r+n,location.origin);{let r=await fetch(d,{method:"HEAD"});if(r.status<200||r.status>=400)return el(e,Date.now()+1e4),null;s=r.redirected?new URL(r.url):d,t=await ev(eb(s,u),i)}if(!t||!t.ok||204===t.status||!t.body)return el(e,Date.now()+1e4),null;let g=(0,f.createHrefFromUrl)(s),_=t.headers.get("vary"),m=null!==_&&_.includes(o.NEXT_URL),v=(0,R.createPromiseWithResolvers)(),b="2"===t.headers.get(o.NEXT_DID_POSTPONE_HEADER)||!0;{let n,u,{stream:o,size:s}=await eR(t.body);v.resolve(),(0,h.setSizeInCacheMap)(e,s);let f=await (0,l.createFromNextReadableStream)(o,i,{allowPartialStream:!0});if((t.headers.get(T.NEXT_NAV_DEPLOYMENT_ID_HEADER)??f.buildId)!==(0,O.getNavigationBuildId)())return el(e,Date.now()+1e4),null;let d=(0,p.getRenderedPathname)(t),_=(0,p.getRenderedSearch)(t),R={metadataVaryPath:null},P=(n=d.split("/").filter(e=>""!==e),u=y.ROOT_SEGMENT_REQUEST_KEY,function e(t,r,n,a,u,i,o,l){let s,f,d=null,h=t.slots;if(null!==h)for(let t in s=!1,f=(0,c.finalizeLayoutVaryPath)(a,n),d={},h){let r,s,f,g=h[t],_=g.name,m=g.param;if(null!==m){let e=(0,p.parseDynamicParamFromURLPart)(m.type,u,i),t=null!==m.key?m.key:(0,p.getCacheKeyForDynamicParam)(e,"");f=(0,c.appendLayoutVaryPath)(n,t,_),s=[_,t,m.type,m.siblings],r=!0}else f=n,s=_,r=(0,p.doesStaticSegmentAppearInURL)(_);let E=r?i+1:i,v=(0,y.createSegmentRequestKeyPart)(s),R=(0,y.appendSegmentRequestKeyPart)(a,t,v);d[t]=e(g,s,f,R,u,E,o,l)}else a.endsWith(E.PAGE_SEGMENT_KEY)?(s=!0,f=(0,c.finalizePageVaryPath)(a,o,n),null===l.metadataVaryPath&&(l.metadataVaryPath=(0,c.finalizeMetadataVaryPath)(a,o,n))):(s=!1,f=(0,c.finalizeLayoutVaryPath)(a,n));return{requestKey:a,segment:r,refreshState:null,varyPath:f,isPage:s,slots:d,prefetchHints:t.prefetchHints}}(f.tree,u,null,y.ROOT_SEGMENT_REQUEST_KEY,n,0,_,R)),w=R.metadataVaryPath;if(null===w)return el(e,Date.now()+1e4),null;(0,S.discoverKnownRoute)(Date.now(),r,a,e,P,w,m,g,b,!1)}if(!m){let t=(0,c.getFulfilledRouteVaryPath)(r,n,a,m);(0,h.setInCacheMap)(N,t,e,!1)}return{value:null,closed:v.promise}}catch(t){return el(e,Date.now()+1e4),null}}async function eh(e,t,r,n){let a=new URL(e.canonicalUrl,location.origin),u=r.nextUrl,i=n.requestKey,s=i===y.ROOT_SEGMENT_REQUEST_KEY?"/_index":i,f={[o.RSC_HEADER]:"1",[o.NEXT_ROUTER_PREFETCH_HEADER]:"1",[o.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER]:s};null!==u&&(f[o.NEXT_URL]=u),eP(f);let d=eb(a,s);try{let e=await ev(d,f);if(!e||!e.ok||204===e.status||"2"!==e.headers.get(o.NEXT_DID_POSTPONE_HEADER)&&0||!e.body)return es(t,Date.now()+1e4),null;let r=(0,R.createPromiseWithResolvers)(),{stream:a,size:u}=await eR(e.body);r.resolve(),(0,h.setSizeInCacheMap)(t,u);let i=await (0,l.createFromNextReadableStream)(a,f,{allowPartialStream:!0});if((e.headers.get(T.NEXT_NAV_DEPLOYMENT_ID_HEADER)??i.buildId)!==(0,O.getNavigationBuildId)())return es(t,Date.now()+1e4),null;let s=Date.now(),p=s+w(i.staleTime),y=eo(t,i.rsc,p,i.isPartial);i.varyParams;let g=(0,c.getSegmentVaryPathForRequest)(t.fetchStrategy,n);return Q(s,g,y),{value:y,closed:r.promise}}catch(e){return es(t,Date.now()+1e4),null}}async function ey(e,t,r,n){let a=new URL(e.canonicalUrl,location.origin),u=t.nextUrl,i={[o.RSC_HEADER]:"1",[o.NEXT_ROUTER_PREFETCH_HEADER]:"1",[o.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER]:"/"+E.PAGE_SEGMENT_KEY};null!==u&&(i[o.NEXT_URL]=u),eP(i);try{let t=await ev(a,i);if(!t||!t.ok||204===t.status||"2"!==t.headers.get(o.NEXT_DID_POSTPONE_HEADER)&&0||!t.body)return e_(n,Date.now()+1e4),null;let u=(0,R.createPromiseWithResolvers)(),{stream:s}=await eR(t.body);u.resolve();let c=await (0,l.createFromNextReadableStream)(s,i,{allowPartialStream:!0});if((t.headers.get(T.NEXT_NAV_DEPLOYMENT_ID_HEADER)??c.tree.segment.buildId)!==(0,O.getNavigationBuildId)())return e_(n,Date.now()+1e4),null;let f=Date.now();!function e(t,r,n,a,u){let i=a.segment,o=t+w(i.staleTime),l=u.get(n.requestKey);if(void 0!==l)eo(l,i.rsc,o,i.isPartial);else{let e=q(t,v.FetchStrategy.PPR,n);0===e.status&&eo(Z(e,v.FetchStrategy.PPR),i.rsc,o,i.isPartial)}if(null!==n.slots&&null!==a.slots)for(let i in n.slots){let o=n.slots[i],l=a.slots[i];void 0!==l&&e(t,r,o,l,u)}}(f,e,r,c.tree,n);let d=f+w(c.head.staleTime),p=e.metadata.requestKey,h=n.get(p);if(void 0!==h)eo(h,c.head.rsc,d,c.head.isPartial);else{let t=q(f,v.FetchStrategy.PPR,e.metadata);0===t.status&&eo(Z(t,v.FetchStrategy.PPR),c.head.rsc,d,c.head.isPartial)}return e_(n,Date.now()+1e4),{value:null,closed:u.promise}}catch(e){return e_(n,Date.now()+1e4),null}}async function eg(e,t,r,n,a){let u=e.key,s=new URL(t.canonicalUrl,location.origin),c=u.nextUrl;1===a.size&&a.has(t.metadata.requestKey)&&(n=j);let f={[o.RSC_HEADER]:"1",[o.NEXT_ROUTER_STATE_TREE_HEADER]:(0,g.prepareFlightRouterStateForRequest)(n)};switch(null!==c&&(f[o.NEXT_URL]=c),r){case v.FetchStrategy.Full:break;case v.FetchStrategy.PPRRuntime:f[o.NEXT_ROUTER_PREFETCH_HEADER]="2";break;case v.FetchStrategy.LoadingBoundary:f[o.NEXT_ROUTER_PREFETCH_HEADER]="1"}try{let e,u=await ev(s,f);if(!u||!u.ok||!u.body)return e_(a,Date.now()+1e4),null;let o=(0,p.getRenderedSearch)(u);if(o!==t.renderedSearch)return e_(a,Date.now()+1e4),null;let c=(0,R.createPromiseWithResolvers)(),m=null,E=null;if(r===v.FetchStrategy.Full){var d,y,_;let t,r;d=u.body,y=c.resolve,_=function(e){if(null===m)return;let t=e/m.length;for(let e of m)(0,h.setSizeInCacheMap)(e,t)},t=0,r=d.getReader(),e=new ReadableStream({async pull(e){for(;;){let{done:n,value:a}=await r.read();if(!n){e.enqueue(a),_(t+=a.byteLength);continue}e.close(),y();return}}})}else{let{stream:t,size:r}=await eR(u.body);c.resolve(),e=t,E=r}let[S,O]=await Promise.all([(0,l.createFromNextReadableStream)(e,f,{allowPartialStream:!0}),u.cacheData]),w=S.h,A=null!==w?(0,i.readVaryParams)(w):null,j=Date.now(),N=await eO(j,S.s,u),C=r===v.FetchStrategy.PPRRuntime&&(O?.isResponsePartial??!1),D=u.headers.get(T.NEXT_NAV_DEPLOYMENT_ID_HEADER)??S.b,M=(0,g.normalizeFlightData)(S.f);if("string"==typeof M)return e_(a,Date.now()+1e4),null;let I=(0,P.convertServerPatchToFullTree)(j,n,M,o,b.UnknownDynamicStaleTime);if(m=em(j,r,M,D,C,A,N,I,a),null!==E&&null!==m&&m.length>0){let e=E/m.length;for(let t of m)(0,h.setSizeInCacheMap)(t,e)}return{value:null,closed:c.promise}}catch(e){return e_(a,Date.now()+1e4),null}}function e_(e,t){let r=[];for(let n of e.values())1===n.status?es(n,t):2===n.status&&r.push(n);return r}function em(e,t,r,n,a,u,o,l,s){if(n&&n!==(0,O.getNavigationBuildId)())return null!==s&&e_(s,e+1e4),null;let c=l.routeTree,f=null!==l.metadataVaryPath?en(l.metadataVaryPath):null;for(let n of r){let r=n.seedData;if(null!==r){let u=n.segmentPath,l=c;for(let t=0;t1){t=new Uint8Array(a);let e=0;for(let r of n)t.set(r,e),e+=r.byteLength}else t=new Uint8Array(0);return{stream:new ReadableStream({start(e){e.enqueue(t),e.close()}}),size:a}}function eb(e,t){{let r=new URL(e),n=r.pathname.endsWith("/")?r.pathname.slice(0,-1):r.pathname,a=(0,y.convertSegmentPathToStaticExportFilename)(t);return r.pathname=`${n}/${a}`,r}}function eS(e,t){return ee.close()}),isPartial:!1};let a=n[0],u=35===a||126===a,i=u?n.byteLength>1?n.subarray(1):null:n;return{isPartial:!!u&&126===a,stream:new ReadableStream({start(e){i&&e.enqueue(i)},async pull(e){let r=await t.read();r.done?e.close():e.enqueue(r.value)}})}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},63024,(e,t,r)=>{"use strict";let n;Object.defineProperty(r,"__esModule",{value:!0});var a={createFetch:function(){return O},createFromNextReadableStream:function(){return T},decodeStaticStage:function(){return P},fetchServerResponse:function(){return R},processFetch:function(){return b},resolveStaticStageData:function(){return S}};for(var u in a)Object.defineProperty(r,u,{enumerable:!0,get:a[u]});let i=e.r(32004);e.r(70107);let o=e.r(29721),l=e.r(13398),s=e.r(71099),c=e.r(32279),f=e.r(62301),d=e.r(8344),p=e.r(76504),h=e.r(98555),y=e.r(91227);e.r(8458);let g=e.r(25771),_=i.createFromReadableStream,m=i.createFromFetch;function E(e){return(0,d.urlToUrlWithoutFlightMarker)(new URL(e,location.origin)).toString()}let v=!1;async function R(e,t){let{flightRouterState:r,nextUrl:n}=t,a={[o.RSC_HEADER]:"1",[o.NEXT_ROUTER_STATE_TREE_HEADER]:(0,c.prepareFlightRouterStateForRequest)(r,t.isHmrRefresh)};n&&(a[o.NEXT_URL]=n);let u=e;try{(e=new URL(e)).pathname.endsWith("/")?e.pathname+="index.txt":e.pathname+=".txt";let t=await O(e,a,"auto",!0),r=(0,d.urlToUrlWithoutFlightMarker)(new URL(t.url)),n=t.redirected?r:u,i=t.headers.get("content-type")||"",l=!!t.headers.get("vary")?.includes(o.NEXT_URL),s=!!t.headers.get(o.NEXT_DID_POSTPONE_HEADER),f=i.startsWith(o.RSC_CONTENT_TYPE_HEADER);if(f||(f=i.startsWith("text/plain")),!f||!t.ok||!t.body)return e.hash&&(r.hash=e.hash),E(r.toString());let p=t.flightResponsePromise;null===p&&(p=T(t.body,a,{allowPartialStream:s}));let[_,m]=await Promise.all([p,t.cacheData]);if((t.headers.get(y.NEXT_NAV_DEPLOYMENT_ID_HEADER)??_.b)!==(0,h.getNavigationBuildId)())return E(t.url);let v=(0,c.normalizeFlightData)(_.f);if("string"==typeof v)return E(v);let R=null!==m?await S(m,_,a):null;return{flightData:v,canonicalUrl:n,renderedSearch:_.q,couldBeIntercepted:l,supportsPerSegmentPrefetching:_.S,postponed:s,dynamicStaleTime:_.d??g.UnknownDynamicStaleTime,staticStageData:R,runtimePrefetchStream:_.p??null,responseHeaders:t.headers,debugInfo:p._debugInfo??null}}catch(e){return v||console.error(`Failed to fetch RSC payload for ${u}. Falling back to browser navigation.`,e),u.toString()}}async function b(e){return{response:e,cacheData:null}}async function S(e,t,r){let{isResponsePartial:n,responseBodyClone:a}=e;if(a){if(!n)return a.cancel(),{response:t,isResponsePartial:!1};if(void 0!==t.l)return{response:await P(a,t.l,r),isResponsePartial:!0};a.cancel()}return null}async function P(e,t,r){var n,a;let u,i;return T((n=e,a=await t,u=n.getReader(),i=a,new ReadableStream({async pull(e){if(i<=0){u.cancel(),e.close();return}let{done:t,value:r}=await u.read();t?e.close():r.byteLength<=i?(e.enqueue(r),i-=r.byteLength):(e.enqueue(r.subarray(0,i)),i=0,u.cancel(),e.close())},cancel(){u.cancel()}})),r,{allowPartialStream:!0})}async function O(e,t,r,a,u){var i,c;let d=(0,p.getDeploymentId)();d&&(t["x-deployment-id"]=d);let h=new URL(e);(0,f.setCacheBustingSearchParam)(h,t);let y=fetch(h,{credentials:"same-origin",headers:t,priority:r||void 0,signal:u}).then(b),g=y.then(({response:e})=>e),_=a?(i=g,c=t,m(i,{callServer:l.callServer,findSourceMapURL:s.findSourceMapURL,debugChannel:n&&n(c)})):null,E=await g,v=E.redirected,R=new URL(E.url,h);return R.searchParams.delete(o.NEXT_RSC_UNION_QUERY),{url:R.href,redirected:v,ok:E.ok,headers:E.headers,body:E.body,status:E.status,flightResponsePromise:_,cacheData:y.then(({cacheData:e})=>e)}}function T(e,t,r){return _(e,{callServer:l.callServer,findSourceMapURL:s.findSourceMapURL,debugChannel:n&&n(t),unstable_allowPartialStream:r?.allowPartialStream})}"u">typeof window&&(window.addEventListener("pagehide",()=>{v=!0}),window.addEventListener("pageshow",()=>{v=!1})),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},46112,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isNavigatingToNewRootLayout",{enumerable:!0,get:function(){return function e(t,r){let a=t[0],u=r.segment;if(Array.isArray(a)&&Array.isArray(u)){if(a[0]!==u[0]||a[2]!==u[2])return!0}else if(a!==u)return!0;let i=((t[4]??0)&n.PrefetchHint.IsRootLayout)!=0,o=(r.prefetchHints&n.PrefetchHint.IsRootLayout)!=0;if(i)return!o;if(o)return!0;let l=r.slots,s=t[1];if(null!==l)for(let t in l){let r=l[t],n=s[t];if(void 0===n||e(n,r))return!0}return!1}}});let n=e.r(77793);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},54525,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getLastCommittedTree:function(){return i},setLastCommittedTree:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=null;function i(){return u}function o(e){u=e}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},59659,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,a={FreshnessPolicy:function(){return b},createInitialCacheNodeForHydration:function(){return P},isDeferredRsc:function(){return k},spawnDynamicRequests:function(){return M},startPPRNavigation:function(){return O}};for(var u in a)Object.defineProperty(r,u,{enumerable:!0,get:a[u]});let i=e.r(77793),o=e.r(29164),l=e.r(69979),s=e.r(36064),c=e.r(63024),f=e.r(3351),d=e.r(14238),p=e.r(46112),h=e.r(54525),y=e.r(34628),g=e.r(8458),_=e.r(53133),m=e.r(40868),E=e.r(91227),v=e.r(54295),R=e.r(25771);var b=((n={})[n.Default=0]="Default",n[n.Hydration=1]="Hydration",n[n.HistoryTraversal=2]="HistoryTraversal",n[n.RefreshAll=3]="RefreshAll",n[n.HMRRefresh=4]="HMRRefresh",n[n.Gesture=5]="Gesture",n);let S=()=>{};function P(e,t,r,n,a){return T(e,t,null,1,r,n,a,!1,{separateRefreshUrls:null,scrollRef:null})}function O(e,t,r,n,a,u,c,f,d,h,y,_,m){let E={canonicalUrl:(0,s.createHrefFromUrl)(t),renderedSearch:r};return function e(t,r,n,a,u,s,c,f,d,h,y,_,m,E,v,R){var b,S,P;let O,A,D,M,I=a[0],x=w(u);if(!(0,l.matchSegment)(x,I))return!f&&(0,p.isNavigatingToNewRootLayout)(a,u)||x===o.NOT_FOUND_SEGMENT_KEY?null:T(t,u,s,c,d,h,y,m,R);let F=u.slots,U=a[1],k=null!==d?d[1]:null,L=f||(u.prefetchHints&i.PrefetchHint.IsRootLayout)!=0,H=!1;switch(c){case 0:case 2:case 1:case 5:H=!1;break;case 3:case 4:H=!0}let B=null===F;if(void 0===n||H||B&&_){let e=N(t,u,null!==d?d[0]:null,s,h,c,y);D=e.cacheNode,M=e.needsDynamicRequest,void 0!==n&&(D.scrollRef=n.scrollRef)}else{b=!1,D=C((S=n).rsc,b?null:S.prefetchRsc,S.head,b?null:S.prefetchHead,S.scrollRef),M=!1}let $=u.refreshState,X=null!=$?$:v;M&&null!==X&&(P=R,O=X.canonicalUrl,null===(A=P.separateRefreshUrls)?P.separateRefreshUrls=new Set([O]):A.add(O));let V={},G=null,K=!1,Y={},q=null;if(null!==F){let a=void 0!==n?n.slots:null;for(let n in D.slots=q={},G=new Map,F){let i=F[n],l=U[n];if(void 0===l)return null;let f=null!==k?k[n]:null,d=l[0],p=w(i),v=h;2!==c&&p===o.DEFAULT_SEGMENT_KEY&&d!==o.DEFAULT_SEGMENT_KEY&&(p=w(i=function(e,t,r,n){let a,u,i=n[2];null!=i?(a=i[0],u=i[1]):(a=r.canonicalUrl,u=r.renderedSearch);let o=(0,g.convertReusedFlightRouterStateToRouteTree)(e,t,n,u,{metadataVaryPath:null});return o.refreshState={canonicalUrl:a,renderedSearch:u},o}(u,n,E,l)),f=null,v=null);let b=e(t,r,null!==a?a[n]:void 0,l,i,s,c,L,f??null,v,y,_,m||M,E,X,R);if(null===b)return null;G.set(n,b),q[n]=b.node;let S=b.route;V[n]=S;let P=b.dynamicRequestTree;null!==P?(K=!0,Y[n]=P):Y[n]=S}}let W=[w(u),V,null!==X?[X.canonicalUrl,X.renderedSearch]:null,null,u.prefetchHints];return{status:+!M,route:W,node:D,dynamicRequestTree:j(W,Y,M,K,m),refreshState:X,children:G}}(e,t,null!==n?n:void 0,a,u,c,f,!1,d,h,y,_,!1,E,null,m)}function T(e,t,r,n,a,u,i,o,l){let s=w(t),c=t.slots,f=null!==a?a[1]:null,d=N(e,t,null!==a?a[0]:null,r,u,n,i),p=d.cacheNode,h=d.needsDynamicRequest;null===c&&function(e,t,r){switch(e){case 0:case 5:case 3:case 4:null===r.scrollRef&&(r.scrollRef={current:!0}),t.scrollRef=r.scrollRef}}(n,p,l);let y={},g=null,_=!1,m={},E=null;if(null!==c)for(let t in p.slots=E={},g=new Map,c){let a=T(e,c[t],r,n,(null!==f?f[t]:null)??null,u,i,o||h,l);g.set(t,a),E[t]=a.node;let s=a.route;y[t]=s;let d=a.dynamicRequestTree;null!==d?(_=!0,m[t]=d):m[t]=s}let v=[s,y,null,null,t.prefetchHints];return{status:+!h,route:v,node:p,dynamicRequestTree:j(v,m,h,_,o),refreshState:null,children:g}}function w(e){if(e.isPage){let t=(0,v.getRenderedSearchFromVaryPath)(e.varyPath);if(null===t)return o.PAGE_SEGMENT_KEY;let r=JSON.stringify(Object.fromEntries(new URLSearchParams(t)));return"{}"!==r?o.PAGE_SEGMENT_KEY+"?"+r:o.PAGE_SEGMENT_KEY}return e.segment}function A(e,t){let r=[e[0],t];return 2 in e&&(r[2]=e[2]),3 in e&&(r[3]=e[3]),4 in e&&(r[4]=e[4]),r}function j(e,t,r,n,a){let u=null;return r?(u=A(e,t),a||(u[3]="refetch")):u=n?A(e,t):null,u}function N(e,t,r,n,a,u,i){let o,l,s,c=t.isPage;switch(u){case 0:{let r=(0,R.readFromBFCacheDuringRegularNavigation)(e,t.varyPath);if(null!==r)return{cacheNode:C(r.rsc,r.prefetchRsc,r.head,r.prefetchHead),needsDynamicRequest:!1};break}case 1:{let u=c?a:null;return(0,R.writeToBFCache)(e,t.varyPath,r,null,u,null,i),c&&null!==n&&(0,R.writeHeadToBFCache)(e,n,u,null,i),{cacheNode:C(r,null,u,null),needsDynamicRequest:!1}}case 2:let f=(0,R.readFromBFCache)(t.varyPath);if(null!==f){let e=f.rsc,t=!k(e)||"pending"!==e.status;return{cacheNode:C(f.rsc,t?null:f.prefetchRsc,f.head,t?null:f.prefetchHead),needsDynamicRequest:!1}}}let d=null,p=!0,h=(0,g.readSegmentCacheEntry)(e,t.varyPath);if(null!==h)switch(h.status){case g.EntryStatus.Fulfilled:d=h.rsc,p=h.isPartial;break;case g.EntryStatus.Pending:d=(0,g.waitForSegmentCacheEntry)(h).then(e=>null!==e?e.rsc:null),p=h.isPartial;case g.EntryStatus.Empty:case g.EntryStatus.Rejected:}null!==r?(p?(o=d,l=r):(o=null,l=d),s=!1):(p?(o=d,l=L()):(o=null,l=d),s=p);let y=null,_=null,m=c;if(c){let t=null,r=!0;if(null!==n){let a=(0,g.readSegmentCacheEntry)(e,n);if(null!==a)switch(a.status){case g.EntryStatus.Fulfilled:t=a.rsc,r=a.isPartial;break;case g.EntryStatus.Pending:t=(0,g.waitForSegmentCacheEntry)(a).then(e=>null!==e?e.rsc:null),r=a.isPartial;case g.EntryStatus.Empty:case g.EntryStatus.Rejected:}}null!==a?(r?(y=t,_=a):(y=null,_=t),m=!1):(r?(y=t,_=L()):(y=null,_=t),m=r)}return 5!==u&&((0,R.writeToBFCache)(e,t.varyPath,l,o,_,y,i),c&&null!==n&&(0,R.writeHeadToBFCache)(e,n,_,y,i)),{cacheNode:C(l,o,_,y),needsDynamicRequest:s||m}}function C(e,t,r,n,a=null){return{rsc:e,prefetchRsc:t,head:r,prefetchHead:n,slots:null,scrollRef:a}}let D=!1;function M(e,t,r,n,a,u,i){let o=e.dynamicRequestTree;if(null===o){D=!1;return}let l=F(e,o,t,r,n,u),c=a.separateRefreshUrls,f=null;if(null!==c){f=[];let a=(0,s.createHrefFromUrl)(t);for(let t of c)t!==a&&null!==o&&f.push(F(e,o,new URL(t,location.origin),r,n,u))}I(e,r,l,f,u,i).then(S,S)}async function I(e,t,r,n,a,u){var i,o;let l=await (i=r,o=n,new Promise(e=>{let t=t=>{0===t.exitStatus?0==--n&&e(0):e(t.exitStatus)},r=()=>e(2),n=1;i.then(t,r),null!==o&&(n+=o.length,o.forEach(e=>e.then(t,r)))}));switch(0===l&&(l=function e(t,r,n){var a,u,i;let o,l,s;0===t.status?(t.status=2,a=t.node,u=r,i=n,k(l=a.rsc)&&(null===u?l.resolve(null,i):l.reject(u,i)),k(s=a.head)&&s.resolve(null,i),o=null===t.refreshState?1:2):o=0;let c=t.children;if(null!==c)for(let[,t]of c){let a=e(t,r,n);a>o&&(o=a)}return o}(e,null,null)),l){case 0:D=!1;return;case 1:{let n=await r;x(!1,n.url,t,n.seed,e.route,a,u);return}case 2:{let n=await r;x(!0,n.url,t,n.seed,e.route,a,u);return}default:return l}}function x(e,t,r,n,a,u,i){if(null!==u)(0,g.markRouteEntryAsDynamicRewrite)(u);else if(null!==n){let e=n.metadataVaryPath;if(null!==e){let a=Date.now();(0,m.discoverKnownRoute)(a,t.pathname,r,null,n.routeTree,e,!1,(0,s.createHrefFromUrl)(t),!1,!0)}}(0,g.invalidateRouteCacheEntries)(r,a),e=e||D,D=!0;let o=(0,h.getLastCommittedTree)(),l=null!==o&&a!==o?i:"replace",c={type:d.ACTION_SERVER_PATCH,previousTree:a,url:t,nextUrl:r,seed:n,mpa:e,navigateType:l};(0,f.dispatchAppRouterAction)(c)}async function F(e,t,r,n,a,u){try{let i=await (0,c.fetchServerResponse)(r,{flightRouterState:t,nextUrl:n,isHmrRefresh:4===a});if("string"==typeof i)return{exitStatus:2,url:new URL(i,location.origin),seed:null};let o=Date.now(),s=(0,y.convertServerPatchToFullTree)(o,e.route,i.flightData,i.renderedSearch,i.dynamicStaleTime);if(null!==u&&null!==i.staticStageData){let{response:e,isResponsePartial:r}=i.staticStageData;(0,g.getStaleAt)(o,e.s).then(n=>{let a=i.responseHeaders.get(E.NEXT_NAV_DEPLOYMENT_ID_HEADER)??e.b;(0,g.writeStaticStageResponseIntoCache)(o,e.f,a,e.h,n,t,i.renderedSearch,r)}).catch(()=>{})}null!==u&&null!==i.runtimePrefetchStream&&(0,g.processRuntimePrefetchStream)(o,i.runtimePrefetchStream,t,i.renderedSearch).then(e=>{null!==e&&(0,g.writeDynamicRenderResponseIntoCache)(o,_.FetchStrategy.PPRRuntime,e.flightDatas,e.buildId,e.isResponsePartial,e.headVaryParams,e.staleAt,e.navigationSeed,null)}).catch(()=>{});let f=(0,R.computeDynamicStaleAt)(o,i.dynamicStaleTime);return{exitStatus:+!!function e(t,r,n,a,u,i){0===t.status&&null!==n&&(t.status=1,function(e,t,r,n){let a=e.rsc,u=t[0];if(null===u)return;null===a?e.rsc=u:k(a)&&a.resolve(u,n);let i=e.head;k(i)&&i.resolve(r,n)}(t.node,n,a,i),(0,R.updateBFCacheEntryStaleAt)(r.varyPath,u));let o=t.children,s=r.slots,c=null!==n?n[1]:null,f=!1;if(null!==o)if(null!==s)for(let t in s){let r=s[t],n=null!==c?c[t]:null,d=o.get(t);if(void 0===d)f=!0;else{let t=d.route[0],o=w(r);(0,l.matchSegment)(o,t)&&null!=n&&e(d,r,n,a,u,i)&&(f=!0)}}else null!==s&&(f=!0);return f}(e,s.routeTree,s.data,s.head,f,i.debugInfo),url:new URL(i.canonicalUrl,location.origin),seed:s}}catch{return{exitStatus:2,url:r,seed:null}}}let U=Symbol();function k(e){return e&&"object"==typeof e&&e.tag===U}function L(){let e,t,r=[],n=new Promise((r,n)=>{e=r,t=n});return n.status="pending",n.resolve=(t,a)=>{"pending"===n.status&&(n.status="fulfilled",n.value=t,null!==a&&r.push.apply(r,a),e(t))},n.reject=(e,a)=>{"pending"===n.status&&(n.status="rejected",n.reason=e,null!==a&&r.push.apply(r,a),t(e))},n.tag=U,n._debugInfo=r,n}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},28498,(e,t,r)=>{"use strict";function n(e){return e.startsWith("/")?e:`/${e}`}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ensureLeadingSlash",{enumerable:!0,get:function(){return n}})},34739,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={compareAppPaths:function(){return l},normalizeAppPath:function(){return o},normalizeRscURL:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(28498),i=e.r(29164);function o(e){return(0,u.ensureLeadingSlash)(e.split("/").reduce((e,t,r,n)=>!t||(0,i.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&r===n.length-1?e:`${e}/${t}`,""))}function l(e,t){let r=e.includes("/@"),n=t.includes("/@");return r&&!n?-1:!r&&n?1:e.localeCompare(t)}function s(e){return e.replace(/\.rsc($|\?)/,"$1")}},12284,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={INTERCEPTION_ROUTE_MARKERS:function(){return i},extractInterceptionRouteInformation:function(){return l},isInterceptionRouteAppPath:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(34739),i=["(..)(..)","(.)","(..)","(...)"];function o(e){return void 0!==e.split("/").find(e=>i.find(t=>e.startsWith(t)))}function l(e){let t,r,n;for(let a of e.split("/"))if(r=i.find(e=>a.startsWith(e))){[t,n]=e.split(r,2);break}if(!t||!r||!n)throw Object.defineProperty(Error(`Invalid interception route: ${e}. Must be in the format //(..|...|..)(..)/`),"__NEXT_ERROR_CODE",{value:"E269",enumerable:!1,configurable:!0});switch(t=(0,u.normalizeAppPath)(t),r){case"(.)":n="/"===t?`/${n}`:t+"/"+n;break;case"(..)":if("/"===t)throw Object.defineProperty(Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`),"__NEXT_ERROR_CODE",{value:"E207",enumerable:!1,configurable:!0});n=t.split("/").slice(0,-1).concat(n).join("/");break;case"(...)":n="/"+n;break;case"(..)(..)":let a=t.split("/");if(a.length<=2)throw Object.defineProperty(Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`),"__NEXT_ERROR_CODE",{value:"E486",enumerable:!1,configurable:!0});n=a.slice(0,-2).concat(n).join("/");break;default:throw Object.defineProperty(Error("Invariant: unexpected marker"),"__NEXT_ERROR_CODE",{value:"E112",enumerable:!1,configurable:!0})}return{interceptingRoute:t,interceptedRoute:n}}},69482,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={computeChangedPath:function(){return p},extractPathFromFlightRouterState:function(){return f},extractSourcePageFromFlightRouterState:function(){return d},getSelectedParams:function(){return function e(t,r={}){for(let n of Object.values(t[1])){let t=n[0],a=Array.isArray(t),u=a?t[1]:t;!u||u.startsWith(i.PAGE_SEGMENT_KEY)||(a&&("c"===t[2]||"oc"===t[2])?r[t[0]]=t[1].split("/"):a&&(r[t[0]]=t[1]),r=e(n,r))}return r}}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(12284),i=e.r(29164),o=e.r(69979),l=e=>"/"===e[0]?e.slice(1):e,s=e=>"string"==typeof e?"children"===e?"":e:e[1];function c(e){return e.reduce((e,t)=>""===(t=l(t))||(0,i.isGroupSegment)(t)?e:`${e}/${t}`,"")||"/"}function f(e){let t=Array.isArray(e[0])?e[0][1]:e[0];if(t===i.DEFAULT_SEGMENT_KEY||u.INTERCEPTION_ROUTE_MARKERS.some(e=>t.startsWith(e)))return;if(t.startsWith(i.PAGE_SEGMENT_KEY))return"";let r=[s(t)],n=e[1]??{},a=n.children?f(n.children):void 0;if(void 0!==a)r.push(a);else for(let[e,t]of Object.entries(n)){if("children"===e)continue;let n=f(t);void 0!==n&&r.push(n)}return c(r)}function d(e){let t=function e(t){let r=(e=>{if("string"==typeof e)return"children"===e?"":e.startsWith(i.PAGE_SEGMENT_KEY)?"page":e;let[t,,r]=e;switch(r){case"c":return`[...${t}]`;case"ci(..)(..)":return`(..)(..)[...${t}]`;case"ci(.)":return`(.)[...${t}]`;case"ci(..)":return`(..)[...${t}]`;case"ci(...)":return`(...)[...${t}]`;case"oc":return`[[...${t}]]`;case"d":default:return`[${t}]`;case"di(..)(..)":return`(..)(..)[${t}]`;case"di(.)":return`(.)[${t}]`;case"di(..)":return`(..)[${t}]`;case"di(...)":return`(...)[${t}]`}})(t[0]);if(r===i.DEFAULT_SEGMENT_KEY)return;if("page"===r)return[r];let n=t[1]??{},a=n.children?e(n.children):void 0;if(void 0!==a)return""===r?a:[l(r),...a];for(let[t,a]of Object.entries(n)){if("children"===t)continue;let n=e(a);if(void 0!==n)return""===r?n:[l(r),...n]}}(e);return t?`/${t.join("/")}`:void 0}function p(e,t){let r=function e(t,r){let[n,a]=t,[i,l]=r,c=s(n),d=s(i);if(u.INTERCEPTION_ROUTE_MARKERS.some(e=>c.startsWith(e)||d.startsWith(e)))return"";if(!(0,o.matchSegment)(n,i))return f(r)??"";for(let t in a)if(l[t]){let r=e(a[t],l[t]);if(null!==r)return`${s(i)}/${r}`}return null}(e,t);return null==r||"/"===r?r:c(r.split("/"))}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},94688,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isJavaScriptURLString",{enumerable:!0,get:function(){return a}});let n=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function a(e){return n.test(""+e)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},42355,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={isNavigationLocked:function(){return l},startListeningForInstantNavigationCookie:function(){return u},transitionToCapturedSPA:function(){return i},updateCapturedSPAToTree:function(){return o},waitForNavigationLockIfActive:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});function u(){}function i(e,t){}function o(e,t){}function l(){return!1}async function s(){}e.r(29721),e.r(3351),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},34628,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={completeHardNavigation:function(){return b},completeSoftNavigation:function(){return S},completeTraverseNavigation:function(){return P},convertServerPatchToFullTree:function(){return O},navigate:function(){return _},navigateToKnownRoute:function(){return m}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(63024),i=e.r(59659),o=e.r(36064),l=e.r(91227),s=e.r(8458),c=e.r(40868),f=e.r(52111);e.r(12275);let d=e.r(53133);e.r(86473);let p=e.r(14238),h=e.r(69482),y=e.r(94688),g=e.r(25771);function _(e,t,r,n,a,u,i,o,l,c){return function(e,t,r,n,a,u,i,o,l,c){let d=Date.now(),p=t.href,h=(0,f.createCacheKey)(p,i),y=(0,s.readRouteCacheEntry)(d,h);if(null!==y&&y.status===s.EntryStatus.Fulfilled)return E(d,e,t,r,n,i,a,u,o,l,c,y);if(null===y||y.status!==s.EntryStatus.Rejected){let f=(0,s.deprecated_requestOptimisticRouteCacheEntry)(d,t,i);if(null!==f)return E(d,e,t,r,n,i,a,u,o,l,c,f)}return R(d,e,t,r,n,i,a,u,o,l,c).catch(()=>e)}(e,t,r,n,a,u,i,o,l,c)}function m(e,t,r,n,a,u,o,l,s,c,f,d,p,h,y){let g={separateRefreshUrls:null,scrollRef:null},_=r.href===u.href,m=(0,i.startPPRNavigation)(e,u,o,l,s,a.routeTree,a.metadataVaryPath,c,a.data,a.head,a.dynamicStaleAt,_,g);return null!==m?(c!==i.FreshnessPolicy.Gesture&&(0,i.spawnDynamicRequests)(m,r,f,c,g,y,p),S(t,r,f,m.route,m.node,a.renderedSearch,n,p,d,g.scrollRef,h)):b(t,r,p)}function E(e,t,r,n,a,u,i,o,l,s,c,f){let d=f.tree,p=f.canonicalUrl+r.hash,h={renderedSearch:f.renderedSearch,routeTree:d,metadataVaryPath:f.metadata.varyPath,data:null,head:null,dynamicStaleAt:(0,g.computeDynamicStaleAt)(e,g.UnknownDynamicStaleTime)};return m(e,t,r,p,h,n,a,i,o,l,u,s,c,null,f)}let v=["",{},null,"refetch"];async function R(e,t,r,n,a,f,p,h,y,g,_){let E;switch(y){case i.FreshnessPolicy.Default:case i.FreshnessPolicy.HistoryTraversal:case i.FreshnessPolicy.Gesture:E=h;break;case i.FreshnessPolicy.Hydration:case i.FreshnessPolicy.RefreshAll:case i.FreshnessPolicy.HMRRefresh:E=v;break;default:E=h}let R=(0,u.fetchServerResponse)(r,{flightRouterState:E,nextUrl:f}),S=await R;if("string"==typeof S)return b(t,new URL(S,location.origin),_);let{flightData:P,canonicalUrl:T,renderedSearch:w,couldBeIntercepted:A,supportsPerSegmentPrefetching:j,dynamicStaleTime:N,staticStageData:C,runtimePrefetchStream:D,responseHeaders:M,debugInfo:I}=S,x=O(e,h,P,w,N),F=x.metadataVaryPath;if(null!==F){if((0,c.discoverKnownRoute)(e,r.pathname,f,null,x.routeTree,F,A,(0,o.createHrefFromUrl)(T),j,!1),null!==C){let{response:t,isResponsePartial:r}=C;(0,s.getStaleAt)(e,t.s).then(n=>{let a=M.get(l.NEXT_NAV_DEPLOYMENT_ID_HEADER)??t.b;(0,s.writeStaticStageResponseIntoCache)(e,t.f,a,t.h,n,h,w,r)}).catch(()=>{})}null!==D&&(0,s.processRuntimePrefetchStream)(e,D,h,w).then(t=>{null!==t&&(0,s.writeDynamicRenderResponseIntoCache)(e,d.FetchStrategy.PPRRuntime,t.flightDatas,t.buildId,t.isResponsePartial,t.headVaryParams,t.staleAt,t.navigationSeed,null)}).catch(()=>{})}return m(e,t,r,(0,o.createHrefFromUrl)(T),x,n,a,p,h,y,f,g,_,I,null)}function b(e,t,r){return(0,y.isJavaScriptURLString)(t.href)?(console.error("Next.js has blocked a javascript: URL as a security precaution."),e):{canonicalUrl:t.origin===location.origin?(0,o.createHrefFromUrl)(t):t.href,pushRef:{pendingPush:"push"===r,mpaNavigation:!0,preserveCustomHistoryState:!1},renderedSearch:e.renderedSearch,focusAndScrollRef:e.focusAndScrollRef,cache:e.cache,tree:e.tree,nextUrl:e.nextUrl,previousNextUrl:e.previousNextUrl,debugInfo:null}}function S(e,t,r,n,a,u,i,o,l,s,c){let f,d,y=(0,h.computeChangedPath)(e.tree,n)||e.nextUrl,g=new URL(e.canonicalUrl,t),_=t.pathname===g.pathname&&t.search===g.search&&t.hash!==g.hash;if(l===p.ScrollBehavior.NoScroll)null!==s&&(s.current=!1),f=e.focusAndScrollRef.scrollRef,d=!1;else if(_){let t=e.focusAndScrollRef.scrollRef;null!==t&&(t.current=!1),null!==s&&(s.current=!1),f={current:!0},d=!0}else{if(f=s,null!==s){let t=e.focusAndScrollRef.scrollRef;null!==t&&(t.current=!1)}d=!1}return{canonicalUrl:i,renderedSearch:u,pushRef:{pendingPush:"push"===o,mpaNavigation:!1,preserveCustomHistoryState:!1},focusAndScrollRef:{scrollRef:f,forceScroll:d,onlyHashChange:_,hashFragment:l!==p.ScrollBehavior.NoScroll&&""!==t.hash?decodeURIComponent(t.hash.slice(1)):e.focusAndScrollRef.hashFragment},cache:a,tree:n,nextUrl:y,previousNextUrl:r,debugInfo:c}}function P(e,t,r,n,a,u){return{canonicalUrl:(0,o.createHrefFromUrl)(t),renderedSearch:r,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:e.focusAndScrollRef,cache:n,tree:a,nextUrl:u,previousNextUrl:null,debugInfo:null}}function O(e,t,r,n,a){let u=t,i=null,o=null;if(null!==r)for(let{segmentPath:e,tree:t,seedData:a,head:l}of r){let r=function e(t,r,n,a,u,i,o){let l;if(o===u.length)return{tree:n,data:a};let s=u[o],c=t[1],f=null!==r?r[1]:null,d={},p={};for(let t in c){let r=c[t],l=null!==f?f[t]??null:null;if(t===s){let s=e(r,l,n,a,u,i,o+2);d[t]=s.tree,p[t]=s.data}else d[t]=r,p[t]=l}if(l=[t[0],d],2 in t){let e=t[2];null!=e&&(l[2]=[e[0],i])}return 3 in t&&(l[3]=t[3]),4 in t&&(l[4]=t[4]),{tree:l,data:[null,p,null,!0,null]}}(u,i,t,a,e,n,0);u=r.tree,i=r.data,o=l}let l=u,c={metadataVaryPath:null};return{routeTree:(0,s.convertRootFlightRouterStateToRouteTree)(l,n,c),metadataVaryPath:c.metadataVaryPath,data:i,renderedSearch:n,head:o,dynamicStaleAt:(0,g.computeDynamicStaleAt)(e,a)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},31134,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DYNAMIC_STALETIME_MS:function(){return l},STATIC_STALETIME_MS:function(){return s},navigateReducer:function(){return c}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(34628),i=e.r(8458),o=e.r(59659),l=1e3*Number("0"),s=(0,i.getStaleTimeMs)(Number("300"));function c(e,t){let{url:r,isExternalUrl:n,navigateType:a,scrollBehavior:i}=t;if(n||document.getElementById("__next-page-redirect"))return(0,u.completeHardNavigation)(e,r,a);let l=new URL(e.canonicalUrl,location.origin),s=e.renderedSearch;return(0,u.navigate)(e,r,l,s,e.cache,e.tree,e.nextUrl,o.FreshnessPolicy.Default,i,a)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},87137,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"hasInterceptionRouteInCurrentTree",{enumerable:!0,get:function(){return function e([t,r]){if(Array.isArray(t)&&("di(..)(..)"===t[2]||"ci(..)(..)"===t[2]||"di(.)"===t[2]||"ci(.)"===t[2]||"di(..)"===t[2]||"ci(..)"===t[2]||"di(...)"===t[2]||"ci(...)"===t[2])||"string"==typeof t&&(0,n.isInterceptionRouteAppPath)(t))return!0;if(r){for(let t in r)if(e(r[t]))return!0}return!1}}});let n=e.r(12284);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},89294,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={refreshDynamicData:function(){return d},refreshReducer:function(){return f}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(14238),i=e.r(34628),o=e.r(8458),l=e.r(87137),s=e.r(59659),c=e.r(25771);function f(e,t){{let t=e.nextUrl,r=e.tree;(0,o.invalidateSegmentCacheEntries)(t,r)}return d(e,s.FreshnessPolicy.RefreshAll)}function d(e,t){(0,c.invalidateBfCache)();let r=e.nextUrl,n=(0,l.hasInterceptionRouteInCurrentTree)(e.tree)?e.previousNextUrl||r:null,a=e.canonicalUrl,o=new URL(a,location.origin),s=e.renderedSearch,f=e.tree,d=u.ScrollBehavior.NoScroll,p=Date.now(),h=(0,i.convertServerPatchToFullTree)(p,f,null,s,c.UnknownDynamicStaleTime);return(0,i.navigateToKnownRoute)(p,e,o,a,h,o,s,e.cache,f,t,n,d,"replace",null,null)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},21891,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"serverPatchReducer",{enumerable:!0,get:function(){return l}});let n=e.r(36064),a=e.r(14238),u=e.r(34628),i=e.r(89294),o=e.r(59659);function l(e,t){let r=t.mpa,l=new URL(t.url,location.origin),s=t.seed,c=t.navigateType;if(r||null===s)return(0,u.completeHardNavigation)(e,l,c);let f=new URL(e.canonicalUrl,location.origin),d=e.renderedSearch;if(t.previousTree!==e.tree)return(0,i.refreshReducer)(e,{type:a.ACTION_REFRESH});let p=(0,n.createHrefFromUrl)(l),h=t.nextUrl,y=a.ScrollBehavior.Default,g=Date.now();return(0,u.navigateToKnownRoute)(g,e,l,p,s,f,d,e.cache,e.tree,o.FreshnessPolicy.RefreshAll,h,y,c,null,null)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},22299,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"restoreReducer",{enumerable:!0,get:function(){return o}});let n=e.r(69482),a=e.r(59659),u=e.r(34628),i=e.r(25771);function o(e,t){let r,o,l=t.historyState;l?(r=l.tree,o=l.renderedSearch):(r=e.tree,o=e.renderedSearch);let s=new URL(e.canonicalUrl,location.origin),c=t.url,f=(0,n.extractPathFromFlightRouterState)(r)??c.pathname,d=Date.now(),p={separateRefreshUrls:null,scrollRef:null},h=(0,u.convertServerPatchToFullTree)(d,r,null,o,i.UnknownDynamicStaleTime),y=(0,a.startPPRNavigation)(d,s,e.renderedSearch,e.cache,e.tree,h.routeTree,h.metadataVaryPath,a.FreshnessPolicy.HistoryTraversal,null,null,h.dynamicStaleAt,!1,p);return null===y?(0,u.completeHardNavigation)(e,c,"replace"):((0,a.spawnDynamicRequests)(y,c,f,a.FreshnessPolicy.HistoryTraversal,p,null,"replace"),(0,u.completeTraverseNavigation)(e,c,o,y.node,y.route,f))}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},223,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"hmrRefreshReducer",{enumerable:!0,get:function(){return u}});let n=e.r(89294),a=e.r(59659);function u(e){return(0,n.refreshDynamicData)(e,a.FreshnessPolicy.HMRRefresh)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},51021,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={UnrecognizedActionError:function(){return u},unstable_isUnrecognizedActionError:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});class u extends Error{constructor(...e){super(...e),this.name="UnrecognizedActionError"}}function i(e){return!!(e&&"object"==typeof e&&e instanceof u)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},24571,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"assignLocation",{enumerable:!0,get:function(){return a}});let n=e.r(2187);function a(e,t){if(e.startsWith(".")){let r=t.origin+t.pathname;return new URL((r.endsWith("/")?r:r+"/")+e)}return new URL((0,n.addBasePath)(e),t.href)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},10475,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"actionAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,e.r(95626).createAsyncLocalStorage)()},26003,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"actionAsyncStorage",{enumerable:!0,get:function(){return n.actionAsyncStorageInstance}});let n=e.r(10475)},95006,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getRedirectError:function(){return l},getRedirectStatusCodeFromError:function(){return p},getRedirectTypeFromError:function(){return d},getURLFromRedirectError:function(){return f},permanentRedirect:function(){return c},redirect:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(48096),i=e.r(52460),o="u"{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"pathHasPrefix",{enumerable:!0,get:function(){return a}});let n=e.r(5942);function a(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},20385,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"hasBasePath",{enumerable:!0,get:function(){return a}});let n=e.r(97489);function a(e){return(0,n.pathHasPrefix)(e,"")}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},39881,(e,t,r)=>{"use strict";function n(e){return e}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"removeBasePath",{enumerable:!0,get:function(){return n}}),e.r(20385),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},59909,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={extractInfoFromServerReferenceId:function(){return u},omitUnusedArgs:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});function u(e){let t=parseInt(e.slice(0,2),16),r=t>>1&63,n=Array(6);for(let e=0;e<6;e++){let t=r>>5-e&1;n[e]=1===t}return{type:1==(t>>7&1)?"use-cache":"server-action",usedArgs:n,hasRestArgs:1==(1&t)}}function i(e,t){let r=Array(e.length),n=0;for(let a=0;a=6&&t.hasRestArgs)&&(r[a]=e[a],n=a+1);return r.length=n,r}},94284,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ActionDidNotRevalidate:function(){return u},ActionDidRevalidateDynamicOnly:function(){return o},ActionDidRevalidateStaticAndDynamic:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=0,i=1,o=2},94401,(e,t,r)=>{"use strict";let n;Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"serverActionReducer",{enumerable:!0,get:function(){return D}});let a=e.r(13398),u=e.r(71099),i=e.r(29721),o=e.r(51021),l=e.r(32004),s=e.r(14238),c=e.r(24571),f=e.r(36064),d=e.r(87137),p=e.r(32279),h=e.r(95006),y=e.r(39881),g=e.r(20385),_=e.r(59909),m=e.r(8458),E=e.r(12275),v=e.r(76504),R=e.r(98555),b=e.r(91227),S=e.r(34628),P=e.r(40868),O=e.r(94284),T=e.r(17770),w=e.r(59659),A=e.r(63024),j=e.r(25771),N=l.createFromFetch;async function C(e,t,{actionId:r,actionArgs:s}){let f,d,h,y,g=(0,l.createTemporaryReferenceSet)(),m=(0,_.extractInfoFromServerReferenceId)(r),E=(0,_.omitUnusedArgs)(s,m),S=await (0,l.encodeReply)(E,{temporaryReferences:g}),P={Accept:i.RSC_CONTENT_TYPE_HEADER,[i.ACTION_HEADER]:r,[i.NEXT_ROUTER_STATE_TREE_HEADER]:(0,p.prepareFlightRouterStateForRequest)(e.tree)},T=(0,v.getDeploymentId)();T&&(P["x-deployment-id"]=T),t&&(P[i.NEXT_URL]=t);let w=await fetch(e.canonicalUrl,{method:"POST",headers:P,body:S});if("1"===w.headers.get(i.NEXT_ACTION_NOT_FOUND_HEADER))throw Object.defineProperty(new o.UnrecognizedActionError(`Server Action "${r}" was not found on the server. -Read more: https://nextjs.org/docs/messages/failed-to-find-server-action`),"__NEXT_ERROR_CODE",{value:"E715",enumerable:!1,configurable:!0});let j=w.headers.get("x-action-redirect"),[D,M]=j?.split(";")||[];switch(M){case"push":f="push";break;case"replace":f="replace";break;default:f=void 0}let I=!!w.headers.get(i.NEXT_IS_PRERENDER_HEADER),x=O.ActionDidNotRevalidate;try{let e=w.headers.get("x-action-revalidated");if(e){let t=JSON.parse(e);(t===O.ActionDidRevalidateStaticAndDynamic||t===O.ActionDidRevalidateDynamicOnly)&&(x=t)}}catch{}let F=D?(0,c.assignLocation)(D,new URL(e.canonicalUrl,window.location.href)):void 0,U=w.headers.get("content-type"),k=!!(U&&U.startsWith(i.RSC_CONTENT_TYPE_HEADER));if(!k&&!F)throw Object.defineProperty(Error(w.status>=400&&"text/plain"===U?await w.text():"An unexpected response was received from the server."),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});let L=!1;if(k){let e=F?(0,A.processFetch)(w).then(({response:e})=>e):Promise.resolve(w),t=await N(e,{callServer:a.callServer,findSourceMapURL:u.findSourceMapURL,temporaryReferences:g,debugChannel:n&&n(P)});d=F?void 0:t.a,L=t.i;let r=w.headers.get(b.NEXT_NAV_DEPLOYMENT_ID_HEADER)??t.b;if(void 0!==r&&r!==(0,R.getNavigationBuildId)());else{let e=(0,p.normalizeFlightData)(t.f);""!==e&&(h=e,y=t.q)}}else d=void 0,h=void 0,y=void 0;return{actionResult:d,actionFlightData:h,actionFlightDataRenderedSearch:y,redirectLocation:F,redirectType:f,revalidationKind:x,isPrerender:I,couldBeIntercepted:L}}function D(e,t){let{resolve:r,reject:n}=t,a=(e.previousNextUrl||e.nextUrl)&&(0,d.hasInterceptionRouteInCurrentTree)(e.tree)?e.previousNextUrl||e.nextUrl:null;return C(e,a,t).then(async({revalidationKind:u,actionResult:i,actionFlightData:o,actionFlightDataRenderedSearch:l,redirectLocation:c,redirectType:d,isPrerender:p,couldBeIntercepted:h})=>{u!==O.ActionDidNotRevalidate&&((0,j.invalidateBfCache)(),t.didRevalidate=!0,u===O.ActionDidRevalidateStaticAndDynamic&&(0,m.invalidateEntirePrefetchCache)(a,e.tree),(0,E.startRevalidationCooldown)());let _=d||"push";if(void 0!==c)if((0,T.isExternalURL)(c))return n(M(c.href,_)),(0,S.completeHardNavigation)(e,c,_);else{let e=(0,f.createHrefFromUrl)(c,!1);n(M((0,g.hasBasePath)(e)?(0,y.removeBasePath)(e):e,_))}else r(i);if(void 0===c&&u===O.ActionDidNotRevalidate&&void 0===o)return e;if(void 0===o&&void 0!==c)return(0,S.completeHardNavigation)(e,c,_);if("string"==typeof o)return(0,S.completeHardNavigation)(e,new URL(o,location.origin),_);let v=new URL(e.canonicalUrl,location.origin),R=e.renderedSearch,b=void 0!==c?c:v,A=e.tree,N=s.ScrollBehavior.Default,C=u===O.ActionDidNotRevalidate?w.FreshnessPolicy.Default:w.FreshnessPolicy.RefreshAll;if(void 0!==o&&void 0!==l){let t=(0,f.createHrefFromUrl)(b),r=Date.now(),n=(0,S.convertServerPatchToFullTree)(r,A,o,l,j.UnknownDynamicStaleTime),u=n.metadataVaryPath;return null!==u&&(0,P.discoverKnownRoute)(r,b.pathname,a,null,n.routeTree,u,h,t,p,!1),(0,S.navigateToKnownRoute)(r,e,b,t,n,v,R,e.cache,A,C,a,N,_,null,null)}return(0,S.navigate)(e,b,v,R,e.cache,A,a,C,N,_)},t=>(n(t),e))}function M(e,t){let r=(0,h.getRedirectError)(e,t);return r.handled=!0,r}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},49256,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"reducer",{enumerable:!0,get:function(){return c}});let n=e.r(14238),a=e.r(31134),u=e.r(21891),i=e.r(22299),o=e.r(89294),l=e.r(223),s=e.r(94401),c="u"{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"prefetch",{enumerable:!0,get:function(){return o}});let n=e.r(17770),a=e.r(52111),u=e.r(12275),i=e.r(53133);function o(e,t,r,o,l){let s=(0,n.createPrefetchURL)(e);if(null===s)return;let c=(0,a.createCacheKey)(s.href,t);(0,u.schedulePrefetchTask)(c,r,o,i.PrefetchPriority.Default,l)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},33368,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={createMutableActionQueue:function(){return E},dispatchNavigateAction:function(){return b},dispatchTraverseAction:function(){return S},getCurrentAppRouterState:function(){return v},publicAppRouterInstance:function(){return P}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(14238),i=e.r(49256),o=e.r(12713),l=e.r(15362),s=e.r(53133),c=e.r(13820);e.r(34628);let f=e.r(3351);e.r(40868),e.r(59659);let d=e.r(2187),p=e.r(17770),h=e.r(86473),y=e.r(94688);function g(e,t){null!==e.pending?(e.pending=e.pending.next,null!==e.pending&&_({actionQueue:e,action:e.pending,setState:t})):e.needsRefresh&&(e.needsRefresh=!1,e.dispatch({type:u.ACTION_REFRESH},t))}async function _({actionQueue:e,action:t,setState:r}){let n=e.state;e.pending=t;let a=t.payload,i=e.action(n,a);function o(n){if(t.discarded){t.payload.type===u.ACTION_SERVER_ACTION&&t.payload.didRevalidate&&(e.needsRefresh=!0),g(e,r);return}e.state=n,g(e,r),t.resolve(n)}(0,l.isThenable)(i)?i.then(o,n=>{g(e,r),t.reject(n)}):o(i)}let m=null;function E(e,t){let r={state:e,dispatch:(e,t)=>(function(e,t,r){let n={resolve:r,reject:()=>{}};if(t.type!==u.ACTION_RESTORE){let e=new Promise((e,t)=>{n={resolve:e,reject:t}});(0,o.startTransition)(()=>{r(e)})}let a={payload:t,next:null,resolve:n.resolve,reject:n.reject};null===e.pending?(e.last=a,_({actionQueue:e,action:a,setState:r})):t.type===u.ACTION_NAVIGATE||t.type===u.ACTION_RESTORE?(e.pending.discarded=!0,a.next=e.pending.next,_({actionQueue:e,action:a,setState:r})):(null!==e.last&&(e.last.next=a),e.last=a)})(r,e,t),action:async(e,t)=>(0,i.reducer)(e,t),pending:null,last:null,onRouterTransitionStart:null!==t&&"function"==typeof t.onRouterTransitionStart?t.onRouterTransitionStart:null};if("u">typeof window){if(null!==m)throw Object.defineProperty(Error("Internal Next.js Error: createMutableActionQueue was called more than once"),"__NEXT_ERROR_CODE",{value:"E624",enumerable:!1,configurable:!0});m=r}return r}function v(){return null!==m?m.state:null}function R(){return null!==m?m.onRouterTransitionStart:null}function b(e,t,r,n,a){if(a)for(let e of a)(0,o.addTransitionType)(e);let i=new URL((0,d.addBasePath)(e),location.href);(0,h.setLinkForCurrentNavigation)(n);let l=R();null!==l&&l(e,t),(0,f.dispatchAppRouterAction)({type:u.ACTION_NAVIGATE,url:i,isExternalUrl:(0,p.isExternalURL)(i),locationSearch:location.search,scrollBehavior:r,navigateType:t})}function S(e,t){let r=R();null!==r&&r(e,"traverse"),(0,f.dispatchAppRouterAction)({type:u.ACTION_RESTORE,url:new URL(e),historyState:t})}let P={back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(e,t)=>{let r;if((0,y.isJavaScriptURLString)(e))throw Object.defineProperty(Error("Next.js has blocked a javascript: URL as a security precaution."),"__NEXT_ERROR_CODE",{value:"E978",enumerable:!1,configurable:!0});let n=function(){if(null===m)throw Object.defineProperty(Error("Internal Next.js error: Router action dispatched before initialization."),"__NEXT_ERROR_CODE",{value:"E668",enumerable:!1,configurable:!0});return m}();switch(t?.kind??u.PrefetchKind.AUTO){case u.PrefetchKind.AUTO:r=s.FetchStrategy.PPR;break;case u.PrefetchKind.FULL:r=s.FetchStrategy.Full;break;default:r=s.FetchStrategy.PPR}(0,c.prefetch)(e,n.state.nextUrl,n.state.tree,r,t?.onInvalidate??null)},replace:(e,t)=>{if((0,y.isJavaScriptURLString)(e))throw Object.defineProperty(Error("Next.js has blocked a javascript: URL as a security precaution."),"__NEXT_ERROR_CODE",{value:"E978",enumerable:!1,configurable:!0});(0,o.startTransition)(()=>{b(e,"replace",t?.scroll===!1?u.ScrollBehavior.NoScroll:u.ScrollBehavior.Default,null,t?.transitionTypes)})},push:(e,t)=>{if((0,y.isJavaScriptURLString)(e))throw Object.defineProperty(Error("Next.js has blocked a javascript: URL as a security precaution."),"__NEXT_ERROR_CODE",{value:"E978",enumerable:!1,configurable:!0});(0,o.startTransition)(()=>{b(e,"push",t?.scroll===!1?u.ScrollBehavior.NoScroll:u.ScrollBehavior.Default,null,t?.transitionTypes)})},refresh:()=>{(0,o.startTransition)(()=>{(0,f.dispatchAppRouterAction)({type:u.ACTION_REFRESH})})},hmrRefresh:()=>{throw Object.defineProperty(Error("hmrRefresh can only be used in development mode. Please use refresh instead."),"__NEXT_ERROR_CODE",{value:"E485",enumerable:!1,configurable:!0})}};"u">typeof window&&window.next&&(window.next.router=P),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},69962,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ServerInsertedHTMLContext:function(){return i},useServerInsertedHTML:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(44066)._(e.r(12713)),i=u.default.createContext(null);function o(e){let t=(0,u.useContext)(i);t&&t(e)}},48993,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"notFound",{enumerable:!0,get:function(){return u}});let n=e.r(71339),a=`${n.HTTP_ERROR_FALLBACK_ERROR_CODE};404`;function u(){let e=Object.defineProperty(Error(a),"__NEXT_ERROR_CODE",{value:"E1041",enumerable:!1,configurable:!0});throw e.digest=a,e}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},5602,(e,t,r)=>{"use strict";function n(){throw Object.defineProperty(Error("`forbidden()` is experimental and only allowed to be enabled when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E488",enumerable:!1,configurable:!0})}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"forbidden",{enumerable:!0,get:function(){return n}}),e.r(71339).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},59275,(e,t,r)=>{"use strict";function n(){throw Object.defineProperty(Error("`unauthorized()` is experimental and only allowed to be used when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E411",enumerable:!1,configurable:!0})}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"unauthorized",{enumerable:!0,get:function(){return n}}),e.r(71339).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},13532,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"unstable_rethrow",{enumerable:!0,get:function(){return function e(t){if((0,a.isNextRouterError)(t)||(0,n.isBailoutToCSRError)(t))throw t;t instanceof Error&&"cause"in t&&e(t.cause)}}});let n=e.r(71473),a=e.r(72878);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},4020,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={delayUntilRuntimeStage:function(){return h},getRuntimeStage:function(){return p},isHangingPromiseRejectionError:function(){return i},makeDevtoolsIOAwarePromise:function(){return d},makeHangingPromise:function(){return c}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(74087);function i(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===o}let o="HANGING_PROMISE_REJECTION";class l extends Error{constructor(e,t){super(`During prerendering, ${t} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${t} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context. This occurred at route "${e}".`),this.route=e,this.expression=t,this.digest=o}}let s=new WeakMap;function c(e,t,r){if(e.aborted)return Promise.reject(new l(t,r));{let n=new Promise((n,a)=>{let u=a.bind(null,new l(t,r)),i=s.get(e);if(i)i.push(u);else{let t=[u];s.set(e,t),e.addEventListener("abort",()=>{for(let e=0;e{setTimeout(()=>{t(e)},0)})}function p(e){return e.currentStage===u.RenderStage.EarlyStatic||e.currentStage===u.RenderStage.EarlyRuntime?u.RenderStage.EarlyRuntime:u.RenderStage.Runtime}function h(e,t){let{stagedRendering:r}=e;return r?r.waitForStage(p(r)).then(()=>t):t}},3925,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isPostpone",{enumerable:!0,get:function(){return a}});let n=Symbol.for("react.postpone");function a(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}},577,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DynamicServerError:function(){return i},isDynamicServerError:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u="DYNAMIC_SERVER_USAGE";class i extends Error{constructor(e){super(`Dynamic server usage: ${e}`),this.description=e,this.digest=u}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===u}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},73811,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={StaticGenBailoutError:function(){return i},isStaticGenBailoutError:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u="NEXT_STATIC_GEN_BAILOUT";class i extends Error{constructor(...e){super(...e),this.code=u}}function o(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===u}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},91718,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={METADATA_BOUNDARY_NAME:function(){return u},OUTLET_BOUNDARY_NAME:function(){return o},ROOT_LAYOUT_BOUNDARY_NAME:function(){return l},VIEWPORT_BOUNDARY_NAME:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u="__next_metadata_boundary__",i="__next_viewport_boundary__",o="__next_outlet_boundary__",l="__next_root_layout_boundary__"},70497,(e,t,r)=>{"use strict";var n=e.i(8423);Object.defineProperty(r,"__esModule",{value:!0});var a={atLeastOneTask:function(){return l},scheduleImmediate:function(){return o},scheduleOnNextTick:function(){return i},waitAtLeastOneReactRenderTask:function(){return s}};for(var u in a)Object.defineProperty(r,u,{enumerable:!0,get:a[u]});let i=e=>{Promise.resolve().then(()=>{n.default.nextTick(e)})},o=e=>{setImmediate(e)};function l(){return new Promise(e=>o(e))}function s(){return new Promise(e=>setImmediate(e))}},8097,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"INSTANT_VALIDATION_BOUNDARY_NAME",{enumerable:!0,get:function(){return n}});let n="__next_instant_validation_boundary__"},24707,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,a,u,i={DynamicHoleKind:function(){return J},Postpone:function(){return j},PreludeState:function(){return eu},abortAndThrowOnSynchronousRequestDataAccess:function(){return A},abortOnSynchronousPlatformIOAccess:function(){return w},accessedDynamicData:function(){return U},annotateDynamicAccess:function(){return $},consumeDynamicAccess:function(){return k},createDynamicTrackingState:function(){return v},createDynamicValidationState:function(){return R},createHangingInputAbortSignal:function(){return B},createInstantValidationState:function(){return Z},createRenderInBrowserAbortSignal:function(){return H},formatDynamicAPIAccesses:function(){return L},getFirstDynamicReason:function(){return b},getNavigationDisallowedDynamicReasons:function(){return es},getStaticShellDisallowedDynamicReasons:function(){return el},isDynamicPostpone:function(){return D},isPrerenderInterruptedError:function(){return F},logDisallowedDynamicError:function(){return ei},markCurrentScopeAsDynamic:function(){return S},postponeWithTracking:function(){return N},throwIfDisallowedDynamic:function(){return eo},throwToInterruptStaticGeneration:function(){return P},trackAllowedDynamicAccess:function(){return Q},trackDynamicDataInDynamicRender:function(){return O},trackDynamicHoleInNavigation:function(){return ee},trackDynamicHoleInRuntimeShell:function(){return er},trackDynamicHoleInStaticShell:function(){return en},trackThrownErrorInNavigation:function(){return et},useDynamicRouteParams:function(){return X},useDynamicSearchParams:function(){return V}};for(var o in i)Object.defineProperty(r,o,{enumerable:!0,get:i[o]});let l=(n=e.r(12713))&&n.__esModule?n:{default:n},s=e.r(577),c=e.r(73811),f=e.r(27226),d=e.r(29516),p=e.r(4020),h=e.r(91718),y=e.r(70497),g=e.r(71473),_=e.r(70107),m=e.r(8097),E="function"==typeof l.default.unstable_postpone;function v(e){return{isDebugDynamicAccesses:e,dynamicAccesses:[],syncDynamicErrorWithStack:null}}function R(){return{hasSuspenseAboveBody:!1,hasDynamicMetadata:!1,dynamicMetadata:null,hasDynamicViewport:!1,hasAllowedDynamic:!1,dynamicErrors:[]}}function b(e){var t;return null==(t=e.dynamicAccesses[0])?void 0:t.expression}function S(e,t,r){if(t)switch(t.type){case"cache":case"unstable-cache":case"private-cache":return}if(!e.forceDynamic&&!e.forceStatic){if(e.dynamicShouldError)throw Object.defineProperty(new c.StaticGenBailoutError(`Route ${e.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${r}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E553",enumerable:!1,configurable:!0});if(t)switch(t.type){case"prerender-ppr":return N(e.route,r,t.dynamicTracking);case"prerender-legacy":t.revalidate=0;let n=Object.defineProperty(new s.DynamicServerError(`Route ${e.route} couldn't be rendered statically because it used ${r}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E550",enumerable:!1,configurable:!0});throw e.dynamicUsageDescription=r,e.dynamicUsageStack=n.stack,n}}}function P(e,t,r){let n=Object.defineProperty(new s.DynamicServerError(`Route ${t.route} couldn't be rendered statically because it used \`${e}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E558",enumerable:!1,configurable:!0});throw r.revalidate=0,t.dynamicUsageDescription=e,t.dynamicUsageStack=n.stack,n}function O(e){switch(e.type){case"cache":case"unstable-cache":case"private-cache":return}}function T(e,t,r){let n=x(`Route ${e} needs to bail out of prerendering at this point because it used ${t}.`);r.controller.abort(n);let a=r.dynamicTracking;a&&a.dynamicAccesses.push({stack:a.isDebugDynamicAccesses?Error().stack:void 0,expression:t})}function w(e,t,r,n){let a=n.dynamicTracking;T(e,t,n),a&&null===a.syncDynamicErrorWithStack&&(a.syncDynamicErrorWithStack=r)}function A(e,t,r,n){if(!1===n.controller.signal.aborted){T(e,t,n);let a=n.dynamicTracking;a&&null===a.syncDynamicErrorWithStack&&(a.syncDynamicErrorWithStack=r)}throw x(`Route ${e} needs to bail out of prerendering at this point because it used ${t}.`)}function j({reason:e,route:t}){let r=f.workUnitAsyncStorage.getStore();N(t,e,r&&"prerender-ppr"===r.type?r.dynamicTracking:null)}function N(e,t,r){(function(){if(!E)throw Object.defineProperty(Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E224",enumerable:!1,configurable:!0})})(),r&&r.dynamicAccesses.push({stack:r.isDebugDynamicAccesses?Error().stack:void 0,expression:t}),l.default.unstable_postpone(C(e,t))}function C(e,t){return`Route ${e} needs to bail out of prerendering at this point because it used ${t}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`}function D(e){return"object"==typeof e&&null!==e&&"string"==typeof e.message&&M(e.message)}function M(e){return e.includes("needs to bail out of prerendering at this point because it used")&&e.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error")}if(!1===M(C("%%%","^^^")))throw Object.defineProperty(Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E296",enumerable:!1,configurable:!0});let I="NEXT_PRERENDER_INTERRUPTED";function x(e){let t=Object.defineProperty(Error(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t.digest=I,t}function F(e){return"object"==typeof e&&null!==e&&e.digest===I&&"name"in e&&"message"in e&&e instanceof Error}function U(e){return e.length>0}function k(e,t){return e.dynamicAccesses.push(...t.dynamicAccesses),e.dynamicAccesses}function L(e){return e.filter(e=>"string"==typeof e.stack&&e.stack.length>0).map(({expression:e,stack:t})=>(t=t.split("\n").slice(4).filter(e=>!(e.includes("node_modules/next/")||e.includes(" ()")||e.includes(" (node:"))).join("\n"),`Dynamic API Usage Debug - ${e}: -${t}`))}function H(){let e=new AbortController;return e.abort(Object.defineProperty(new g.BailoutToCSRError("Render in Browser"),"__NEXT_ERROR_CODE",{value:"E721",enumerable:!1,configurable:!0})),e.signal}function B(e){switch(e.type){case"prerender":case"prerender-runtime":let t=new AbortController;if(e.cacheSignal)e.cacheSignal.inputReady().then(()=>{t.abort()});else if("prerender-runtime"===e.type&&e.stagedRendering){let{stagedRendering:r}=e;r.waitForStage((0,p.getRuntimeStage)(r)).then(()=>(0,y.scheduleOnNextTick)(()=>t.abort()))}else(0,y.scheduleOnNextTick)(()=>t.abort());return t.signal;case"prerender-client":case"validation-client":case"prerender-ppr":case"prerender-legacy":case"request":case"cache":case"private-cache":case"unstable-cache":case"generate-static-params":return}}function $(e,t){let r=t.dynamicTracking;r&&r.dynamicAccesses.push({stack:r.isDebugDynamicAccesses?Error().stack:void 0,expression:e})}function X(e){let t=d.workAsyncStorage.getStore(),r=f.workUnitAsyncStorage.getStore();if(t&&r)switch(r.type){case"prerender-client":case"prerender":{let n=r.fallbackRouteParams;n&&n.size>0&&l.default.use((0,p.makeHangingPromise)(r.renderSignal,t.route,e));break}case"prerender-ppr":{let n=r.fallbackRouteParams;if(n&&n.size>0)return N(t.route,e,r.dynamicTracking);break}case"validation-client":case"prerender-legacy":case"request":case"unstable-cache":break;case"prerender-runtime":throw Object.defineProperty(new _.InvariantError(`\`${e}\` was called during a runtime prerender. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E771",enumerable:!1,configurable:!0});case"cache":case"private-cache":throw Object.defineProperty(new _.InvariantError(`\`${e}\` was called inside a cache scope. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E745",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new _.InvariantError(`\`${e}\` was called in \`generateStaticParams\`. Next.js should be preventing ${e} from being included in server component files statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1130",enumerable:!1,configurable:!0})}}function V(e){let t=d.workAsyncStorage.getStore(),r=f.workUnitAsyncStorage.getStore();if(t)switch(!r&&(0,f.throwForMissingRequestStore)(e),r.type){case"validation-client":case"request":return;case"prerender-client":l.default.use((0,p.makeHangingPromise)(r.renderSignal,t.route,e));break;case"prerender-legacy":case"prerender-ppr":if(t.forceStatic)return;throw Object.defineProperty(new g.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});case"prerender":case"prerender-runtime":throw Object.defineProperty(new _.InvariantError(`\`${e}\` was called from a Server Component. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E795",enumerable:!1,configurable:!0});case"cache":case"unstable-cache":case"private-cache":throw Object.defineProperty(new _.InvariantError(`\`${e}\` was called inside a cache scope. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E745",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new _.InvariantError(`\`${e}\` was called in \`generateStaticParams\`. Next.js should be preventing ${e} from being included in server component files statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1130",enumerable:!1,configurable:!0})}}let G=/\n\s+at Suspense \(\)/,K=RegExp(`\\n\\s+at Suspense \\(\\)(?:(?!\\n\\s+at (?:body|div|main|section|article|aside|header|footer|nav|form|p|span|h1|h2|h3|h4|h5|h6) \\(\\))[\\s\\S])*?\\n\\s+at ${h.ROOT_LAYOUT_BOUNDARY_NAME} \\([^\\n]*\\)`),Y=RegExp(`\\n\\s+at ${h.METADATA_BOUNDARY_NAME}[\\n\\s]`),q=RegExp(`\\n\\s+at ${h.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`),W=RegExp(`\\n\\s+at ${h.OUTLET_BOUNDARY_NAME}[\\n\\s]`),z=RegExp(`\\n\\s+at ${m.INSTANT_VALIDATION_BOUNDARY_NAME}[\\n\\s]`);function Q(e,t,r,n){if(!W.test(t)){if(Y.test(t)){r.hasDynamicMetadata=!0;return}if(q.test(t)){r.hasDynamicViewport=!0;return}if(K.test(t)){r.hasAllowedDynamic=!0,r.hasSuspenseAboveBody=!0;return}else if(G.test(t)){r.hasAllowedDynamic=!0;return}else{if(n.syncDynamicErrorWithStack)return void r.dynamicErrors.push(n.syncDynamicErrorWithStack);let a=ea(Object.defineProperty(Error(`Route "${e.route}": Uncached data was accessed outside of . This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`),"__NEXT_ERROR_CODE",{value:"E1079",enumerable:!1,configurable:!0}),t,null);return void r.dynamicErrors.push(a)}}}var J=((a={})[a.Runtime=1]="Runtime",a[a.Dynamic=2]="Dynamic",a);function Z(e){return{hasDynamicMetadata:!1,hasAllowedClientDynamicAboveBoundary:!1,dynamicMetadata:null,hasDynamicViewport:!1,hasAllowedDynamic:!1,dynamicErrors:[],validationPreventingErrors:[],thrownErrorsOutsideBoundary:[],createInstantStack:e}}function ee(e,t,r,n,a,u){if(W.test(t))return;if(Y.test(t)){let n=ea(Object.defineProperty(Error(`Route "${e.route}": ${1===a?"Runtime data such as `cookies()`, `headers()`, `params`, or `searchParams` was accessed inside `generateMetadata` or you have file-based metadata such as icons that depend on dynamic params segments.":"Uncached data or `connection()` was accessed inside `generateMetadata`."} Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`),"__NEXT_ERROR_CODE",{value:"E1076",enumerable:!1,configurable:!0}),t,r.createInstantStack);r.dynamicMetadata=n;return}if(q.test(t)){let n=ea(Object.defineProperty(Error(`Route "${e.route}": ${1===a?"Runtime data such as `cookies()`, `headers()`, `params`, or `searchParams` was accessed inside `generateViewport`.":"Uncached data or `connection()` was accessed inside `generateViewport`."} This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`),"__NEXT_ERROR_CODE",{value:"E1086",enumerable:!1,configurable:!0}),t,r.createInstantStack);r.dynamicErrors.push(n);return}let i=z.exec(t);if(i){let e=G.exec(t);if(e&&e.index`.":"Uncached data or `connection()` was accessed outside of ``."} This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`),"__NEXT_ERROR_CODE",{value:"E1078",enumerable:!1,configurable:!0}),t,r.createInstantStack);r.dynamicErrors.push(o)}function et(e,t,r,n){let a=z.exec(n);if(a){let u=G.exec(n);if(u&&u.index\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`),"__NEXT_ERROR_CODE",{value:"E1084",enumerable:!1,configurable:!0}),t,null);r.dynamicErrors.push(a)}function en(e,t,r,n){if(!W.test(t)){if(Y.test(t)){r.dynamicMetadata=ea(Object.defineProperty(Error(`Route "${e.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed inside \`generateMetadata\` or you have file-based metadata such as icons that depend on dynamic params segments. Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`),"__NEXT_ERROR_CODE",{value:"E1085",enumerable:!1,configurable:!0}),t,null);return}if(q.test(t)){let n=ea(Object.defineProperty(Error(`Route "${e.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed inside \`generateViewport\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`),"__NEXT_ERROR_CODE",{value:"E1081",enumerable:!1,configurable:!0}),t,null);r.dynamicErrors.push(n);return}if(K.test(t)){r.hasAllowedDynamic=!0,r.hasSuspenseAboveBody=!0;return}else if(G.test(t)){r.hasAllowedDynamic=!0;return}else{if(n.syncDynamicErrorWithStack)return void r.dynamicErrors.push(n.syncDynamicErrorWithStack);let a=ea(Object.defineProperty(Error(`Route "${e.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed outside of \`\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`),"__NEXT_ERROR_CODE",{value:"E1083",enumerable:!1,configurable:!0}),t,null);return void r.dynamicErrors.push(a)}}}function ea(e,t,r){return null!==r&&(e.cause=r()),e.stack=e.name+": "+e.message+t,e}var eu=((u={})[u.Full=0]="Full",u[u.Empty=1]="Empty",u[u.Errored=2]="Errored",u);function ei(e,t){console.error(t),console.error(`To get a more detailed stack trace and pinpoint the issue, try one of the following: - - Start the app in development mode by running \`next dev\`, then open "${e.route}" in your browser to investigate the error. - - Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.`)}function eo(e,t,r,n){if(n.syncDynamicErrorWithStack)throw ei(e,n.syncDynamicErrorWithStack),new c.StaticGenBailoutError;if(0!==t){if(r.hasSuspenseAboveBody)return;let n=r.dynamicErrors;if(n.length>0){for(let t=0;t0)return n;if(1===t)return[Object.defineProperty(new _.InvariantError(`Route "${e.route}" did not produce a static shell and Next.js was unable to determine a reason.`),"__NEXT_ERROR_CODE",{value:"E936",enumerable:!1,configurable:!0})]}else if(!1===r.hasAllowedDynamic&&0===r.dynamicErrors.length&&r.dynamicMetadata)return[r.dynamicMetadata];return[]}function es(e,t,r,n,a){if(n){let{missingSampleErrors:e}=n;if(e.length>0)return e}let{validationPreventingErrors:u}=r;if(u.length>0)return u;if(a.renderedIds.size0)return n;if(1===t)return r.hasAllowedClientDynamicAboveBoundary?[]:[Object.defineProperty(new _.InvariantError(`Route "${e.route}" failed to render during instant validation and Next.js was unable to determine a reason.`),"__NEXT_ERROR_CODE",{value:"E1055",enumerable:!1,configurable:!0})]}else{let e=r.dynamicErrors;if(e.length>0)return e;if(!1===r.hasAllowedDynamic&&r.dynamicMetadata)return[r.dynamicMetadata]}return[]}},40639,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"unstable_rethrow",{enumerable:!0,get:function(){return function e(t){if((0,i.isNextRouterError)(t)||(0,u.isBailoutToCSRError)(t)||(0,l.isDynamicServerError)(t)||(0,o.isDynamicPostpone)(t)||(0,a.isPostpone)(t)||(0,n.isHangingPromiseRejectionError)(t)||(0,o.isPrerenderInterruptedError)(t))throw t;t instanceof Error&&"cause"in t&&e(t.cause)}}});let n=e.r(4020),a=e.r(3925),u=e.r(71473),i=e.r(72878),o=e.r(24707),l=e.r(577);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},40762,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"unstable_rethrow",{enumerable:!0,get:function(){return n}});let n="u"{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ReadonlyURLSearchParams:function(){return u.ReadonlyURLSearchParams},RedirectType:function(){return d},forbidden:function(){return l.forbidden},notFound:function(){return o.notFound},permanentRedirect:function(){return i.permanentRedirect},redirect:function(){return i.redirect},unauthorized:function(){return s.unauthorized},unstable_isUnrecognizedActionError:function(){return f},unstable_rethrow:function(){return c.unstable_rethrow}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(77081),i=e.r(95006),o=e.r(48993),l=e.r(5602),s=e.r(59275),c=e.r(40762);function f(){throw Object.defineProperty(Error("`unstable_isUnrecognizedActionError` can only be used on the client."),"__NEXT_ERROR_CODE",{value:"E776",enumerable:!1,configurable:!0})}let d={push:"push",replace:"replace"};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},45026,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ReadonlyURLSearchParams:function(){return o.ReadonlyURLSearchParams},RedirectType:function(){return f.RedirectType},ServerInsertedHTMLContext:function(){return s.ServerInsertedHTMLContext},forbidden:function(){return f.forbidden},notFound:function(){return f.notFound},permanentRedirect:function(){return f.permanentRedirect},redirect:function(){return f.redirect},unauthorized:function(){return f.unauthorized},unstable_isUnrecognizedActionError:function(){return c.unstable_isUnrecognizedActionError},unstable_rethrow:function(){return f.unstable_rethrow},useParams:function(){return v},usePathname:function(){return m},useRouter:function(){return E},useSearchParams:function(){return _},useSelectedLayoutSegment:function(){return b},useSelectedLayoutSegments:function(){return R},useServerInsertedHTML:function(){return s.useServerInsertedHTML}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(44066)._(e.r(12713)),i=e.r(14974),o=e.r(58812),l=e.r(29164),s=e.r(69962),c=e.r(51021),f=e.r(6632),d="u"e?new o.ReadonlyURLSearchParams(e):null,[e])}function m(){return d?.("usePathname()"),(0,u.useContext)(o.PathnameContext)}function E(){let e=(0,u.useContext)(i.AppRouterContext);if(null===e)throw Object.defineProperty(Error("invariant expected app router to be mounted"),"__NEXT_ERROR_CODE",{value:"E238",enumerable:!1,configurable:!0});return e}function v(){return d?.("useParams()"),(0,u.useContext)(o.PathParamsContext)}function R(e="children"){d?.("useSelectedLayoutSegments()");let t=(0,u.useContext)(i.LayoutRouterContext);return t?(0,l.getSelectedLayoutSegmentPath)(t.parentTree,e):null}function b(e="children"){d?.("useSelectedLayoutSegment()"),(0,u.useContext)(o.NavigationPromisesContext);let t=R(e);return(0,l.computeSelectedLayoutSegment)(t,e)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},79015,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={RedirectBoundary:function(){return p},RedirectErrorBoundary:function(){return d}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(44066),i=e.r(64835),o=u._(e.r(12713)),l=e.r(45026),s=e.r(95006),c=e.r(52460);function f({redirect:e,reset:t,redirectType:r}){let n=(0,l.useRouter)();return(0,o.useEffect)(()=>{o.default.startTransition(()=>{"push"===r?n.push(e,{}):n.replace(e,{}),t()})},[e,r,t,n]),null}class d extends o.default.Component{constructor(e){super(e),this.state={redirect:null,redirectType:null}}static getDerivedStateFromError(e){if((0,c.isRedirectError)(e)){let t=(0,s.getURLFromRedirectError)(e),r=(0,s.getRedirectTypeFromError)(e);return"handled"in e?{redirect:null,redirectType:null}:{redirect:t,redirectType:r}}throw e}render(){let{redirect:e,redirectType:t}=this.state;return null!==e&&null!==t?(0,i.jsx)(f,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null})}):this.props.children}}function p({children:e}){let t=(0,l.useRouter)();return(0,i.jsx)(d,{router:t,children:e})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},24818,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRouterCacheKey",{enumerable:!0,get:function(){return a}});let n=e.r(29164);function a(e,t=!1){return Array.isArray(e)?`${e[0]}|${e[1]}|${e[2]}`:t&&e.startsWith(n.PAGE_SEGMENT_KEY)?n.PAGE_SEGMENT_KEY:e}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},25562,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"unresolvedThenable",{enumerable:!0,get:function(){return n}});let n={then:()=>{}};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},40097,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={MetadataBoundary:function(){return o},OutletBoundary:function(){return s},RootLayoutBoundary:function(){return c},ViewportBoundary:function(){return l}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(91718),i={[u.METADATA_BOUNDARY_NAME]:function({children:e}){return e},[u.VIEWPORT_BOUNDARY_NAME]:function({children:e}){return e},[u.OUTLET_BOUNDARY_NAME]:function({children:e}){return e},[u.ROOT_LAYOUT_BOUNDARY_NAME]:function({children:e}){return e}},o=i[u.METADATA_BOUNDARY_NAME.slice(0)],l=i[u.VIEWPORT_BOUNDARY_NAME.slice(0)],s=i[u.OUTLET_BOUNDARY_NAME.slice(0)],c=i[u.ROOT_LAYOUT_BOUNDARY_NAME.slice(0)]}]); \ No newline at end of file diff --git a/web/out/_next/static/chunks/0~-d5telguqit.js b/web/out/_next/static/chunks/0~-d5telguqit.js deleted file mode 100644 index 56ab79b2f..000000000 --- a/web/out/_next/static/chunks/0~-d5telguqit.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,5722,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});let r=(0,e.r(76504).getDeploymentId)();globalThis.NEXT_DEPLOYMENT_ID=r,("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},52666,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getAssetPrefix",{enumerable:!0,get:function(){return l}});let r=e.r(70107);function l(){let e=document.currentScript;if(!(e instanceof HTMLScriptElement))throw Object.defineProperty(new r.InvariantError(`Expected document.currentScript to be a ",a=a.removeChild(a.firstChild);break;case"select":a="string"==typeof r.is?o.createElement("select",{is:r.is}):o.createElement("select"),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a="string"==typeof r.is?o.createElement(l,{is:r.is}):o.createElement(l)}}a[eW]=t,a[eq]=r;e:for(o=t.child;null!==o;){if(5===o.tag||6===o.tag)a.appendChild(o.stateNode);else if(4!==o.tag&&27!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(t.stateNode=a,ca(a,l,r),l){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break;case"img":r=!0;break;default:r=!1}r&&is(t)}}return ih(t),t.subtreeFlags&=-0x2000001,ic(t,t.type,null===e?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&is(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(u(166));if(e=en.current,rJ(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(l=rH))switch(l.tag){case 27:case 5:r=l.memoizedProps}e[eW]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||cn(e.nodeValue,n)))||rX(t,!0)}else(e=cs(e).createTextNode(r))[eW]=t,t.stateNode=e}return ih(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(r=rJ(t),null!==n){if(null===e){if(!r)throw Error(u(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(u(557));e[eW]=t}else rZ(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ih(t),e=!1}else n=r0(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e){if(256&t.flags)return ae(t),t;return ae(t),null}if(0!=(128&t.flags))throw Error(u(558))}return ih(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(l=rJ(t),null!==r&&null!==r.dehydrated){if(null===e){if(!l)throw Error(u(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(u(317));l[eW]=t}else rZ(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ih(t),l=!1}else l=r0(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l){if(256&t.flags)return ae(t),t;return ae(t),null}}if(ae(t),0!=(128&t.flags))return t.lanes=n,t;return n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(r=t.child,l=null,null!==r.alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(l=r.alternate.memoizedState.cachePool.pool),a=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==l&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ip(t,t.updateQueue),ih(t),null;case 4:return ea(),null===e&&s2(t.stateNode.containerInfo),t.flags|=0x4000000,ih(t),null;case 10:return r5(t.type),ih(t),null;case 19:if(ar(t),null===(r=t.memoizedState))return ih(t),null;if(l=0!=(128&t.flags),null===(a=r.rendering))if(l)im(r,!1);else{if(0!==uM||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=al(e))){for(t.flags|=128,im(r,!1),t.updateQueue=e=a.updateQueue,ip(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)rS(n,e),n=n.sibling;return an(t,1&at.current|2),rQ&&rA(t,r.treeForkCount),t.child}e=e.sibling}null!==r.tail&&ev()>uQ&&(t.flags|=128,l=!0,im(r,!1),t.lanes=4194304)}else{if(!l)if(null!==(e=al(a))){if(t.flags|=128,l=!0,t.updateQueue=e=e.updateQueue,ip(t,e),im(r,!0),null===r.tail&&"collapsed"!==r.tailMode&&"visible"!==r.tailMode&&!a.alternate&&!rQ)return ih(t),null}else 2*ev()-r.renderingStartTime>uQ&&0x20000000!==n&&(t.flags|=128,l=!0,im(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=r.last)?e.sibling=a:t.child=a,r.last=a)}if(null!==r.tail){e=r.tail;e:{for(n=e;null!==n;){if(null!==n.alternate){n=!1;break e}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ev(),e.sibling=null,a=at.current,a=l?1&a|2:1&a,"visible"===r.tailMode||"collapsed"===r.tailMode||!n||rQ?an(t,a):(n=a,Z(l4,t),Z(at,n),null===l8&&(l8=t)),rQ&&rA(t,r.treeForkCount),e}return ih(t),null;case 22:case 23:return ae(t),l3(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?0!=(0x20000000&n)&&0==(128&t.flags)&&(ih(t),6&t.subtreeFlags&&(t.flags|=8192)):ih(t),null!==(n=t.updateQueue)&&ip(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&J(lb),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),r5(lu),ih(t),null;case 25:return null;case 30:return t.flags|=0x2000000,ih(t),null}throw Error(u(156,t.tag))}(t.alternate,t,uR);if(null!==n){uP=n;return}if(null!==(t=t.sibling)){uP=t;return}uP=t=e}while(null!==t)0===uM&&(uM=5)}function sg(e,t){do{var n=function(e,t){switch(rB(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return r5(lu),ea(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return ei(t),null;case 31:if(null!==t.memoizedState){if(ae(t),null===t.alternate)throw Error(u(340));rZ()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(ae(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(u(340));rZ()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ar(t),65536&(e=t.flags)?(t.flags=-65537&e|128,null!==(e=t.memoizedState)&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return ea(),null;case 10:return r5(t.type),null;case 22:case 23:return ae(t),l3(),null!==e&&J(lb),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return r5(lu),null;default:return null}}(e.alternate,e);if(null!==n){n.flags&=32767,uP=n;return}if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling)){uP=e;return}uP=e=n}while(null!==e)uM=6,uP=null}function sv(e,t,n,r,l,a,o,i,s,c,f,d){e.cancelPendingCommit=null;do s_();while(0!==uK)if(0!=(6&u_))throw Error(u(327));if(null!==t){if(t===e.current)throw Error(u(177));e===ux&&(uP=ux=null,uN=0),uY=t,uX=e,uG=n,uZ=l,u0=r,function(e,t,n,r,l,a,o){var i,u=t.lanes|t.childLanes;if(uJ=u,!function(e,t,n,r,l,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var i=e.entanglements,u=e.expirationTimes,s=e.hiddenUpdates;for(n=o&~n;0fp){i.length=o;break}d=new Promise(cN.bind(d)),i.push(d)}}}return 0g&&(o=g,g=h,h=o);var v=nV(i,h),y=nV(i,g);if(v&&y&&(1!==p.rangeCount||p.anchorNode!==v.node||p.anchorOffset!==v.offset||p.focusNode!==y.node||p.focusOffset!==y.offset)){var b=f.createRange();b.setStart(v.node,v.offset),p.removeAllRanges(),h>g?(p.addRange(b),p.extend(y.node,y.offset)):(b.setEnd(y.node,y.offset),p.addRange(b))}}}}for(f=[],p=i;p=p.parentNode;)1===p.nodeType&&f.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof i.focus&&i.focus(),i=0;in?32:n,W.T=null,n=uZ,uZ=null;var a=uX,o=uG;if(uK=0,uY=uX=null,uG=0,0!=(6&u_))throw Error(u(331));var i=u_;if(u_|=4,uw(a.current),up(a,a.current,o,n),u_=i,sU(0,!1),ex&&"function"==typeof ex.onPostCommitFiberRoot)try{ex.onPostCommitFiberRoot(e_,a)}catch(e){}return!0}finally{q.p=l,W.T=r,sE(e,t)}}function sP(e,t,n){t=rC(n,t),t=oF(e.stateNode,t,2),null!==(e=lQ(e,t,2))&&(eF(e,2),sj(e))}function sN(e,t,n){if(3===e.tag)sP(e,e,n);else for(;null!==t;){if(3===t.tag){sP(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===uq||!uq.has(r))){e=rC(n,e),null!==(r=lQ(t,n=oA(2),2))&&(oj(n,r,t,e),eF(r,2),sj(r));break}}t=t.return}}function sC(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new uE;var l=new Set;r.set(t,l)}else void 0===(l=r.get(t))&&(l=new Set,r.set(t,l));l.has(n)||(uL=!0,l.add(n),e=sT.bind(null,e,t,n),t.then(e,e))}function sT(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ux===e&&(uN&n)===n&&(4===uM||3===uM&&(0x3c00000&uN)===uN&&300>ev()-uH?0==(2&u_)&&sa(e,0):uF|=n,uj===uN&&(uj=0)),sj(e)}function sO(e,t){0===t&&(t=eI()),null!==(e=rp(e,t))&&(eF(e,t),sj(e))}function sz(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),sO(e,n)}function sL(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(n=l.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(u(314))}null!==r&&r.delete(t),sO(e,n)}var sR=null,sM=null,sI=!1,sD=!1,sF=!1,sA=0;function sj(e){e!==sM&&null===e.next&&(null===sM?sR=sM=e:sM=sM.next=e),sD=!0,sI||(sI=!0,cv(function(){0!=(6&u_)?ep(eb,sB):sV()}))}function sU(e,t){if(!sF&&sD){sF=!0;do for(var n=!1,r=sR;null!==r;){if(!t)if(0!==e){var l=r.pendingLanes;if(0===l)var a=0;else{var o=r.suspendedLanes,i=r.pingedLanes;a=0xc000095&(a=(1<<31-eP(42|e)+1)-1&(l&~(o&~i)))?0xc000095&a|1:a?2|a:0}0!==a&&(n=!0,sQ(r,a))}else a=uN,0==(3&(a=eR(r,r===ux?a:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||eM(r,a)||(n=!0,sQ(r,a));r=r.next}while(n)sF=!1}}function sB(){sV()}function sV(){sD=sI=!1;var e,t=0;0===sA||((e=window.event)&&"popstate"===e.type?e===cp||(cp=e,0):(cp=null,1))||(t=sA);for(var n=ev(),r=null,l=sR;null!==l;){var a=l.next,o=sH(l,n);0===o?(l.next=null,null===r?sR=a:r.next=a,null===a&&(sM=r)):(r=l,(0!==t||0!=(3&o))&&(sD=!0)),l=a}0!==uK&&5!==uK||sU(t,!1),0!==sA&&(sA=0)}function sH(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,a=-0x3c00001&e.pendingLanes;0 title"):null)}function fs(e,t){return"img"===e&&null!=t.src&&""!==t.src&&null==t.onLoad&&"lazy"!==t.loading}function fc(e){return"stylesheet"!==e.type||0!=(3&e.state.loading)}function ff(e){return(e.width||100)*(e.height||100)*("number"==typeof devicePixelRatio?devicePixelRatio:1)*.25}function fd(e,t){"function"==typeof t.decode&&(e.imgCount++,t.complete||(e.imgBytes+=ff(t),e.suspenseyImages.push(t)),e=fg.bind(e),t.decode().then(e,e))}var fp=0;function fm(e){if(0===e.count&&(0===e.imgCount||!e.waitingForImages)){if(e.stylesheets)fy(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function fh(){this.count--,fm(this)}function fg(){this.imgCount--,fm(this)}var fv=null;function fy(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,fv=new Map,t.forEach(fb,e),fv=null,fh.call(e))}function fb(e,t){if(!(4&t.state.loading)){var n=fv.get(e);if(n)var r=n.get(null);else{n=new Map,fv.set(e,n);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;atypeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var f4=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!f4.isDisabled&&f4.supportsFiber)try{e_=f4.inject({bundleType:0,version:"19.3.0-canary-3f0b9e61-20260317",rendererPackageName:"react-dom",currentDispatcherRef:W,reconcilerVersion:"19.3.0-canary-3f0b9e61-20260317"}),ex=f4}catch(e){}}n.createRoot=function(e,t){if(!s(e))throw Error(u(299));var n=!1,r="",l=oL,a=oR,o=oM;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onUncaughtError&&(l=t.onUncaughtError),void 0!==t.onCaughtError&&(a=t.onCaughtError),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=fk(e,1,!1,null,null,n,r,null,l,a,o,f0),e[eK]=t.current,s2(e),new f1(t)},n.hydrateRoot=function(e,t,n){if(!s(e))throw Error(u(299));var r,l=!1,a="",o=oL,i=oR,c=oM,f=null;return null!=n&&(!0===n.unstable_strictMode&&(l=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onUncaughtError&&(o=n.onUncaughtError),void 0!==n.onCaughtError&&(i=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.formState&&(f=n.formState)),(t=fk(e,1,!0,t,null!=n?n:null,l,a,f,o,i,c,f0)).context=(r=null,rg),n=t.current,(a=l$(l=eB(l=u5()))).callback=null,lQ(n,a,l),n=l,t.current.lanes=n,eF(t,n),sj(t),e[eK]=t.current,s2(e),new f2(t)},n.version="19.3.0-canary-3f0b9e61-20260317"},76082,(e,t,n)=>{"use strict";!function e(){if("u">typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),t.exports=e.r(65497)},88783,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"HeadManagerContext",{enumerable:!0,get:function(){return r}});let r=e.r(81258)._(e.r(12713)).default.createContext({})},45517,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={onCaughtError:function(){return d},onUncaughtError:function(){return p}};for(var l in r)Object.defineProperty(n,l,{enumerable:!0,get:r[l]});let a=e.r(81258),o=e.r(72878),i=e.r(71473),u=e.r(85310),s=e.r(60331),c=a._(e.r(69716)),f={decorateDevError:e=>e,handleClientError:()=>{},originConsoleError:console.error.bind(console)};function d(e,t){let n,r=t.errorBoundary?.constructor;if(n=n||r===s.ErrorBoundaryHandler&&t.errorBoundary.props.errorComponent===c.default)return p(e);(0,i.isBailoutToCSRError)(e)||(0,o.isNextRouterError)(e)||f.originConsoleError(e)}function p(e){(0,i.isBailoutToCSRError)(e)||(0,o.isNextRouterError)(e)||(0,u.reportGlobalError)(e)}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},85131,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"AppRouterAnnouncer",{enumerable:!0,get:function(){return o}});let r=e.r(12713),l=e.r(34056),a="next-route-announcer";function o({tree:e}){let[t,n]=(0,r.useState)(null);(0,r.useEffect)(()=>(n(function(){let e=document.getElementsByName(a)[0];if(e?.shadowRoot?.childNodes[0])return e.shadowRoot.childNodes[0];{let e=document.createElement(a);e.style.cssText="position:absolute";let t=document.createElement("div");return t.ariaLive="assertive",t.id="__next-route-announcer__",t.role="alert",t.style.cssText="position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal",e.attachShadow({mode:"open"}).appendChild(t),document.body.appendChild(e),t}}()),()=>{let e=document.getElementsByTagName(a)[0];e?.isConnected&&document.body.removeChild(e)}),[]);let[i,u]=(0,r.useState)(""),s=(0,r.useRef)(void 0);return(0,r.useEffect)(()=>{let e="";if(document.title)e=document.title;else{let t=document.querySelector("h1");t&&(e=t.innerText||t.textContent||"")}void 0!==s.current&&s.current!==e&&u(e),s.current=e},[e]),t?(0,l.createPortal)(i,t):null}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},80420,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"findHeadInCache",{enumerable:!0,get:function(){return a}});let r=e.r(29164),l=e.r(24818);function a(e,t){return function e(t,n,a,o){if(0===Object.keys(n).length)return[t,a,o];let i=Object.keys(n).filter(e=>"children"!==e);"children"in n&&i.unshift("children");let u=t.slots;if(null!==u)for(let t of i){let[o,i]=n[t];if(o===r.DEFAULT_SEGMENT_KEY)continue;let s=u[t];if(!s)continue;let c=e(s,i,a+"/"+(0,l.createRouterCacheKey)(o),a+"/"+(0,l.createRouterCacheKey)(o,!0));if(c)return c}return null}(e,t,"","")}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},73867,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={GracefulDegradeBoundary:function(){return i},default:function(){return u}};for(var l in r)Object.defineProperty(n,l,{enumerable:!0,get:r[l]});let a=e.r(64835),o=e.r(12713);class i extends o.Component{constructor(e){super(e),this.state={hasError:!1},this.rootHtml="",this.htmlAttributes={},this.htmlRef=(0,o.createRef)()}static getDerivedStateFromError(e){return{hasError:!0}}componentDidMount(){let e=this.htmlRef.current;this.state.hasError&&e&&Object.entries(this.htmlAttributes).forEach(([t,n])=>{e.setAttribute(t,n)})}render(){let{hasError:e}=this.state;return("u">typeof window&&!this.rootHtml&&(this.rootHtml=document.documentElement.innerHTML,this.htmlAttributes=function(e){let t={};for(let n=0;n{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return s}});let r=e.r(81258),l=e.r(64835);e.r(12713);let a=r._(e.r(73867)),o=e.r(60331),i=e.r(98456),u="u">typeof window&&(0,i.isBot)(window.navigator.userAgent);function s({children:e,errorComponent:t,errorStyles:n,errorScripts:r}){return u?(0,l.jsx)(a.default,{children:e}):(0,l.jsx)(o.ErrorBoundary,{errorComponent:t,errorStyles:n,errorScripts:r,children:e})}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},18896,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return R}});let r=e.r(81258),l=e.r(44066),a=e.r(64835),o=l._(e.r(12713)),i=e.r(14974),u=e.r(14238),s=e.r(36064),c=e.r(58812),f=e.r(3351),d=e.r(54525),p=e.r(85131),m=e.r(79015),h=e.r(80420),g=e.r(25562),v=e.r(39881),y=e.r(20385),b=e.r(69482),w=e.r(89331),S=e.r(33368),k=e.r(95006),E=e.r(52460),_=e.r(86473),x=r._(e.r(30599)),P=r._(e.r(69716)),N=e.r(40097);e.r(76504);let C={};function T({appRouterState:e}){return(0,o.useInsertionEffect)(()=>{let{tree:t,pushRef:n,canonicalUrl:r,renderedSearch:l}=e,a={...n.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:{tree:t,renderedSearch:l}};n.pendingPush&&(0,s.createHrefFromUrl)(new URL(window.location.href))!==r?(n.pendingPush=!1,window.history.pushState(a,"",r)):window.history.replaceState(a,"",r),(0,d.setLastCommittedTree)(t)},[e]),(0,o.useEffect)(()=>{(0,_.pingVisibleLinks)(e.nextUrl,e.tree)},[e.nextUrl,e.tree]),null}function O(e){null==e&&(e={});let t=window.history.state,n=t?.__NA;n&&(e.__NA=n);let r=t?.__PRIVATE_NEXTJS_INTERNALS_TREE;return r&&(e.__PRIVATE_NEXTJS_INTERNALS_TREE=r),e}function z({headCacheNode:e}){let t=null!==e?e.head:null,n=null!==e?e.prefetchHead:null,r=null!==n?n:t;return(0,o.useDeferredValue)(t,r)}function L({actionQueue:e,globalError:t,webSocket:n,staticIndicatorState:r}){let l,s=(0,f.useActionQueue)(e),{canonicalUrl:d}=s,{searchParams:w,pathname:_}=(0,o.useMemo)(()=>{let e=new URL(d,"u"{let e=(0,b.extractSourcePageFromFlightRouterState)(s.tree);void 0!==e?window.next.__internal_src_page=e:delete window.next.__internal_src_page},[s.tree]),(0,o.useEffect)(()=>{function e(e){e.persisted&&window.history.state?.__PRIVATE_NEXTJS_INTERNALS_TREE&&(C.pendingMpaPath=void 0,(0,f.dispatchAppRouterAction)({type:u.ACTION_RESTORE,url:new URL(window.location.href),historyState:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE}))}return window.addEventListener("pageshow",e),()=>{window.removeEventListener("pageshow",e)}},[]),(0,o.useEffect)(()=>{function e(e){let t="reason"in e?e.reason:e.error;if((0,E.isRedirectError)(t)){e.preventDefault();let n=(0,k.getURLFromRedirectError)(t);"push"===(0,k.getRedirectTypeFromError)(t)?S.publicAppRouterInstance.push(n,{}):S.publicAppRouterInstance.replace(n,{})}}return window.addEventListener("error",e),window.addEventListener("unhandledrejection",e),()=>{window.removeEventListener("error",e),window.removeEventListener("unhandledrejection",e)}},[]);let{pushRef:P}=s;if(P.mpaNavigation){if(C.pendingMpaPath!==d){let e=window.location;P.pendingPush?e.assign(d):e.replace(d),C.pendingMpaPath=d}throw g.unresolvedThenable}(0,o.useEffect)(()=>{let e=window.history.pushState.bind(window.history),t=window.history.replaceState.bind(window.history),n=e=>{let t=window.location.href,n=window.history.state?.__PRIVATE_NEXTJS_INTERNALS_TREE;(0,o.startTransition)(()=>{(0,f.dispatchAppRouterAction)({type:u.ACTION_RESTORE,url:new URL(e??t,t),historyState:n})})};window.history.pushState=function(t,r,l){return t?.__NA||t?._N||(t=O(t),l&&n(l)),e(t,r,l)},window.history.replaceState=function(e,r,l){return e?.__NA||e?._N||(e=O(e),l&&n(l)),t(e,r,l)};let r=e=>{if(e.state){if(!e.state.__NA)return void window.location.reload();(0,o.startTransition)(()=>{(0,S.dispatchTraverseAction)(window.location.href,e.state.__PRIVATE_NEXTJS_INTERNALS_TREE)})}};return window.addEventListener("popstate",r),()=>{window.history.pushState=e,window.history.replaceState=t,window.removeEventListener("popstate",r)}},[]);let{cache:R,tree:M,nextUrl:I,focusAndScrollRef:D,previousNextUrl:F}=s,A=(0,o.useMemo)(()=>(0,h.findHeadInCache)(R,M[1]),[R,M]),j=(0,o.useMemo)(()=>(0,b.getSelectedParams)(M),[M]),U=(0,o.useMemo)(()=>({parentTree:M,parentCacheNode:R,parentSegmentPath:null,parentParams:{},parentLoadingData:null,debugNameContext:"/",url:d,isActive:!0}),[M,R,d]),B=(0,o.useMemo)(()=>({tree:M,focusAndScrollRef:D,nextUrl:I,previousNextUrl:F}),[M,D,I,F]);if(null!==A){let[e,t,n]=A;l=(0,a.jsx)(z,{headCacheNode:e},"u"{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"createInitialRouterState",{enumerable:!0,get:function(){return d}});let r=e.r(36064),l=e.r(69482),a=e.r(32279),o=e.r(59659),i=e.r(8458),u=e.r(53133),s=e.r(25771),c=e.r(63024),f=e.r(40868);function d({navigatedAt:e,initialRSCPayload:t,initialFlightStreamForCache:n,location:p}){let{c:m,f:h,q:g,i:v,S:y,s:b,l:w,h:S,p:k,d:E}=t,_=m.join("/"),{tree:x,seedData:P,head:N}=(0,a.getFlightDataPartsFromPath)(h[0]),C=p?(0,r.createHrefFromUrl)(p):_,T={metadataVaryPath:null},O=(0,i.convertRootFlightRouterStateToRouteTree)(x,g,T),z=T.metadataVaryPath,L=(0,o.createInitialCacheNodeForHydration)(e,O,P,N,(0,s.computeDynamicStaleAt)(e,E??s.UnknownDynamicStaleTime));if(null!==p&&null!==z){if((0,f.discoverKnownRoute)(Date.now(),p.pathname,null,null,O,z,v,C,y,!1),null!==P&&void 0!==b)if(void 0!==w&&null!=n)(0,c.decodeStaticStage)(n,w,void 0).then(async e=>{let t=Date.now(),n=await (0,i.getStaleAt)(t,e.s);(0,i.writeStaticStageResponseIntoCache)(t,e.f,void 0,e.h,n,x,g,!0)}).catch(()=>{});else{let e=Date.now();(0,i.getStaleAt)(e,b).then(t=>{(0,i.writeStaticStageResponseIntoCache)(e,h,void 0,S,t,x,g,!1)}).catch(()=>{}),n?.cancel()}else n?.cancel();null!=k&&(0,i.processRuntimePrefetchStream)(Date.now(),k,x,g).then(e=>{null!==e&&(0,i.writeDynamicRenderResponseIntoCache)(Date.now(),u.FetchStrategy.PPRRuntime,e.flightDatas,e.buildId,e.isResponsePartial,e.headVaryParams,e.staleAt,e.navigationSeed,null)}).catch(()=>{})}return{tree:L.route,cache:L.node,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:{scrollRef:null,forceScroll:!1,onlyHashChange:!1,hashFragment:null},canonicalUrl:C,renderedSearch:g,nextUrl:((0,l.extractPathFromFlightRouterState)(x)||p?.pathname)??null,previousNextUrl:null,debugInfo:null}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},75138,(e,t,n)=>{"use strict";let r,l,a,o;Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"hydrate",{enumerable:!0,get:function(){return j}});let i=e.r(81258),u=e.r(64835);e.r(60279);let s=i._(e.r(76082)),c=i._(e.r(12713)),f=e.r(32004),d=e.r(88783),p=e.r(41855),m=e.r(45517),h=e.r(13398),g=e.r(71099),v=e.r(33368),y=i._(e.r(18896)),b=e.r(58863);e.r(14974);let w=e.r(32279),S=e.r(76504),k=e.r(98555),E=f.createFromReadableStream,_=f.createFromFetch,x=document,P=self.__next_instant_test?self.__next_instant_test:void 0,N=new TextEncoder,C=!1,T=!1,O=null;function z(e){if(0===e[0])a=[];else if(1===e[0]){if(!a)throw Object.defineProperty(Error("Unexpected server data: missing bootstrap script."),"__NEXT_ERROR_CODE",{value:"E18",enumerable:!1,configurable:!0});o?o.enqueue(N.encode(e[1])):a.push(e[1])}else if(2===e[0])O=e[1];else if(3===e[0]){if(!a)throw Object.defineProperty(Error("Unexpected server data: missing bootstrap script."),"__NEXT_ERROR_CODE",{value:"E18",enumerable:!1,configurable:!0});let n=atob(e[1]),r=new Uint8Array(n.length);for(var t=0;t{e.enqueue("string"==typeof t?N.encode(t):t)}),C&&!T)&&(null===e.desiredSize||e.desiredSize<0?P||e.error(Object.defineProperty(Error("The connection to the page was unexpectedly closed, possibly due to the stop button being clicked, loss of Wi-Fi, or an unstable internet connection."),"__NEXT_ERROR_CODE",{value:"E117",enumerable:!1,configurable:!0})):e.close(),T=!0,a=void 0),o=e}});if(P)l=Promise.resolve(_(P,{callServer:h.callServer,findSourceMapURL:g.findSourceMapURL,debugChannel:r,unstable_allowPartialStream:!0})).then(async e=>(0,w.createInitialRSCPayloadFromFallbackPrerender)(await P,e));else if(window.__NEXT_CLIENT_RESUME){let e=window.__NEXT_CLIENT_RESUME;l=Promise.resolve(_(e,{callServer:h.callServer,findSourceMapURL:g.findSourceMapURL,debugChannel:r})).then(async t=>(0,w.createInitialRSCPayloadFromFallbackPrerender)(await e,t))}else l=E(M,{callServer:h.callServer,findSourceMapURL:g.findSourceMapURL,debugChannel:r,startTime:0});function I({initialRSCPayload:e,actionQueue:t,webSocket:n,staticIndicatorState:r}){return(0,u.jsx)(y.default,{actionQueue:t,globalErrorState:e.G,webSocket:n,staticIndicatorState:r})}let D=c.default.StrictMode;function F({children:e}){return e}let A={onDefaultTransitionIndicator:function(){return()=>{}},onRecoverableError:p.onRecoverableError,onCaughtError:m.onCaughtError,onUncaughtError:m.onUncaughtError};async function j(e,t){let n,r,a=await l;a.b?(0,k.setNavigationBuildId)(a.b):(0,k.setNavigationBuildId)((0,S.getDeploymentId)());let o=Date.now(),i=(0,v.createMutableActionQueue)((0,b.createInitialRouterState)({navigatedAt:o,initialRSCPayload:a,initialFlightStreamForCache:null,location:window.location}),e),f=(0,u.jsx)(D,{children:(0,u.jsx)(d.HeadManagerContext.Provider,{value:{appDir:!0},children:(0,u.jsx)(F,{children:(0,u.jsx)(I,{initialRSCPayload:a,actionQueue:i,webSocket:r,staticIndicatorState:n})})})});"__next_error__"===document.documentElement.id?s.default.createRoot(x,A).render(f):c.default.startTransition(()=>{s.default.hydrateRoot(x,f,{...A,formState:O})})}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},87684,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),e.r(5722);let r=e.r(81094);e.r(41855),window.next.turbopack=!0,self.__webpack_hash__="";let l=e.r(92595);(0,r.appBootstrap)(t=>{let{hydrate:n}=e.r(75138);n(l,t)}),("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)}]); \ No newline at end of file diff --git a/web/out/_next/static/chunks/114qnh8dmpxu5.css b/web/out/_next/static/chunks/114qnh8dmpxu5.css deleted file mode 100644 index aa1995fb0..000000000 --- a/web/out/_next/static/chunks/114qnh8dmpxu5.css +++ /dev/null @@ -1 +0,0 @@ -@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.block{display:block}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.resize{resize:both}.border{border-style:var(--tw-border-style);border-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}}:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;color:#e8eaed;background:#101216}*{box-sizing:border-box}body{margin:0;font-family:Arial,sans-serif}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false} diff --git a/web/out/_next/static/chunks/turbopack-0_gqfibwd__ch.js b/web/out/_next/static/chunks/turbopack-0_gqfibwd__ch.js deleted file mode 100644 index 4c716d4a7..000000000 --- a/web/out/_next/static/chunks/turbopack-0_gqfibwd__ch.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,{otherChunks:["static/chunks/0h8brp_lurcfz.js","static/chunks/0n6ce9~4l2wyz.js","static/chunks/0~-d5telguqit.js"],runtimeModuleIds:[87684]}]),(()=>{let e;if(!Array.isArray(globalThis.TURBOPACK))return;let t="/_next/",r=function(){if(null!=self.TURBOPACK_ASSET_SUFFIX)return self.TURBOPACK_ASSET_SUFFIX;let e=document?.currentScript?.getAttribute?.("src")??"",t=e.indexOf("?");return t>=0?e.slice(t):""}(),n=["NEXT_DEPLOYMENT_ID","NEXT_CLIENT_ASSET_SUFFIX"];var o,l=((o=l||{})[o.Runtime=0]="Runtime",o[o.Parent=1]="Parent",o[o.Update=2]="Update",o);let i=new WeakMap;function u(e,t){this.m=e,this.e=t}let s=u.prototype,a=Object.prototype.hasOwnProperty,c="u">typeof Symbol&&Symbol.toStringTag;function f(e,t,r){a.call(e,t)||Object.defineProperty(e,t,r)}function p(e,t){let r=e[t];return r||(r=h(t),e[t]=r),r}function h(e){return{exports:{},error:void 0,id:e,namespaceObject:void 0}}function d(e,t){f(e,"__esModule",{value:!0}),c&&f(e,c,{value:"Module"});let r=0;for(;rObject.getPrototypeOf(e):e=>e.__proto__,y=[null,b({}),b([]),b(b)];function g(e,t,r){let n=[],o=-1;for(let t=e;("object"==typeof t||"function"==typeof t)&&!y.includes(t);t=b(t))for(let r of Object.getOwnPropertyNames(t))n.push(r,function(e,t){return()=>e[t]}(e,r)),-1===o&&"default"===r&&(o=n.length-1);return r&&o>=0||(o>=0?n.splice(o,1,0,e):n.push("default",0,e)),d(t,n),t}function O(e){let t=B(e,this.m);if(t.namespaceObject)return t.namespaceObject;let r=t.exports;return t.namespaceObject=g(r,"function"==typeof r?function(...e){return r.apply(this,e)}:Object.create(null),r&&r.__esModule)}function w(e){let t=e.indexOf("#");-1!==t&&(e=e.substring(0,t));let r=e.indexOf("?");return -1!==r&&(e=e.substring(0,r)),e}function j(){let e,t;return{promise:new Promise((r,n)=>{t=n,e=r}),resolve:e,reject:t}}s.i=O,s.A=function(e){return this.r(e)(O.bind(this))},s.t="function"==typeof require?require:function(){throw Error("Unexpected use of runtime require")},s.r=function(e){return B(e,this.m).exports},s.f=function(e){function t(t){if(t=w(t),a.call(e,t))return e[t].module();let r=Error(`Cannot find module '${t}'`);throw r.code="MODULE_NOT_FOUND",r}return t.keys=()=>Object.keys(e),t.resolve=t=>{if(t=w(t),a.call(e,t))return e[t].id();let r=Error(`Cannot find module '${t}'`);throw r.code="MODULE_NOT_FOUND",r},t.import=async e=>await t(e),t};let k=Symbol("turbopack queues"),U=Symbol("turbopack exports"),C=Symbol("turbopack error");function P(e){e&&1!==e.status&&(e.status=1,e.forEach(e=>e.queueCount--),e.forEach(e=>e.queueCount--?e.queueCount++:e()))}s.a=function(e,t){let r=this.m,n=t?Object.assign([],{status:-1}):void 0,o=new Set,{resolve:l,reject:i,promise:u}=j(),s=Object.assign(u,{[U]:r.exports,[k]:e=>{n&&e(n),o.forEach(e),s.catch(()=>{})}}),a={get:()=>s,set(e){e!==s&&(s[U]=e)}};Object.defineProperty(r,"exports",a),Object.defineProperty(r,"namespaceObject",a),e(function(e){let t=e.map(e=>{if(null!==e&&"object"==typeof e){if(k in e)return e;if(null!=e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then){let t=Object.assign([],{status:0}),r={[U]:{},[k]:e=>e(t)};return e.then(e=>{r[U]=e,P(t)},e=>{r[C]=e,P(t)}),r}}return{[U]:e,[k]:()=>{}}}),r=()=>t.map(e=>{if(e[C])throw e[C];return e[U]}),{promise:l,resolve:i}=j(),u=Object.assign(()=>i(r),{queueCount:0});function s(e){e!==n&&!o.has(e)&&(o.add(e),e&&0===e.status&&(u.queueCount++,e.push(u)))}return t.map(e=>e[k](s)),u.queueCount?l:r()},function(e){e?i(s[C]=e):l(s[U]),P(n)}),n&&-1===n.status&&(n.status=0)};let v=function(e){let t=new URL(e,"x:/"),r={};for(let e in t)r[e]=t[e];for(let t in r.href=e,r.pathname=e.replace(/[?#].*/,""),r.origin=r.protocol="",r.toString=r.toJSON=(...t)=>e,r)Object.defineProperty(this,t,{enumerable:!0,configurable:!0,value:r[t]})};function R(e,t){throw Error(`Invariant: ${t(e)}`)}v.prototype=URL.prototype,s.U=v,s.z=function(e){throw Error("dynamic usage of require is not supported")},s.g=globalThis;let S=u.prototype,$=new Map;s.M=$;let _=new Map,E=new Map;async function T(e,t,r){let n;if("string"==typeof r)return M(e,t,N(r));let o=r.included||[],l=o.map(e=>!!$.has(e)||_.get(e));if(l.length>0&&l.every(e=>e))return void await Promise.all(l);let i=r.moduleChunks||[],u=i.map(e=>E.get(e)).filter(e=>e);if(u.length>0){if(u.length===i.length)return void await Promise.all(u);let r=new Set;for(let e of i)E.has(e)||r.add(e);for(let n of r){let r=M(e,t,N(n));E.set(n,r),u.push(r)}n=Promise.all(u)}else{for(let o of(n=M(e,t,N(r.path)),i))E.has(o)||E.set(o,n)}for(let e of o)_.has(e)||_.set(e,n);await n}S.l=function(e){return T(l.Parent,this.m.id,e)};let A=Promise.resolve(void 0),x=new WeakMap;function M(t,r,n){let o=e.loadChunkCached(t,n),i=x.get(o);if(void 0===i){let e=x.set.bind(x,o,A);i=o.then(e).catch(e=>{let o;switch(t){case l.Runtime:o=`as a runtime dependency of chunk ${r}`;break;case l.Parent:o=`from module ${r}`;break;case l.Update:o="from an HMR update";break;default:R(t,e=>`Unknown source type: ${e}`)}let i=Error(`Failed to load chunk ${n} ${o}${e?`: ${e}`:""}`,e?{cause:e}:void 0);throw i.name="ChunkLoadError",i}),x.set(o,i)}return i}function N(e){return`${t}${e.split("/").map(e=>encodeURIComponent(e)).join("/")}${r}`}S.L=function(e){return M(l.Parent,this.m.id,e)},S.R=function(e){let t=this.r(e);return t?.default??t},S.P=function(e){return`/ROOT/${e??""}`},S.q=function(e,t){m.call(this,`${e}${r}`,t)},S.b=function(e,t,o,l){let i="SharedWorker"===e.name,u=[o.map(e=>N(e)).reverse(),r];for(let e of n)u.push(globalThis[e]);let s=new URL(N(t),location.origin),a=JSON.stringify(u);return i?s.searchParams.set("params",a):s.hash="#params="+encodeURIComponent(a),new e(s,l?{...l,type:void 0}:void 0)};let q=/\.js(?:\?[^#]*)?(?:#.*)?$/,K=/\.css(?:\?[^#]*)?(?:#.*)?$/;function L(e){return K.test(e)}s.w=function(t,r,n){return e.loadWebAssembly(l.Parent,this.m.id,t,r,n)},s.u=function(t,r){return e.loadWebAssemblyModule(l.Parent,this.m.id,t,r)};let I={};s.c=I;let B=(e,t)=>{let r=I[e];if(r){if(r.error)throw r.error;return r}return W(e,l.Parent,t.id)};function W(e,t,r){let n=$.get(e);if("function"!=typeof n)throw Error(function(e,t,r){let n;switch(t){case 0:n=`as a runtime entry of chunk ${r}`;break;case 1:n=`because it was required from module ${r}`;break;case 2:n="because of an HMR update";break;default:R(t,e=>`Unknown source type: ${e}`)}return`Module ${e} was instantiated ${n}, but the module factory is not available.`}(e,t,r));let o=h(e),l=o.exports;I[e]=o;let i=new u(o,l);try{n(i,o,l)}catch(e){throw o.error=e,e}return o.namespaceObject&&o.exports!==o.namespaceObject&&g(o.exports,o.namespaceObject),o}function F(t){let r,n=function(e){if("string"==typeof e)return e;if(e)return{src:e.getAttribute("src")};if("u">typeof TURBOPACK_NEXT_CHUNK_URLS)return{src:TURBOPACK_NEXT_CHUNK_URLS.pop()};throw Error("chunk path empty but not in a worker")}(t[0]);return 2===t.length?r=t[1]:(r=void 0,!function(e,t){let r=1;for(;r{r=e,n=t}),resolve:()=>{t.resolved=!0,r()},reject:n},X.set(e,t)}return t}e={async registerChunk(e,r){let n=function(e){if("string"==typeof e)return e;let r=decodeURIComponent(e.src.replace(/[?#].*$/,""));return r.startsWith(t)?r.slice(t.length):r}(e);if(D("string"==typeof e?N(e):e.src).resolve(),null!=r){for(let e of r.otherChunks)D(N("string"==typeof e?e:e.path));if(await Promise.all(r.otherChunks.map(e=>T(l.Runtime,n,e))),r.runtimeModuleIds.length>0)for(let e of r.runtimeModuleIds)!function(e,t){let r=I[t];if(r){if(r.error)throw r.error;return}W(t,l.Runtime,e)}(n,e)}},loadChunkCached:(e,t)=>(function(e,t){let r=D(t);if(r.loadingStarted)return r.promise;if(e===l.Runtime)return r.loadingStarted=!0,L(t)&&r.resolve(),r.promise;if("function"==typeof importScripts)if(L(t));else if(q.test(t))self.TURBOPACK_NEXT_CHUNK_URLS.push(t),importScripts(t);else throw Error(`can't infer type of chunk from URL ${t} in worker`);else{let e=decodeURI(t);if(L(t))if(document.querySelectorAll(`link[rel=stylesheet][href="${t}"],link[rel=stylesheet][href^="${t}?"],link[rel=stylesheet][href="${e}"],link[rel=stylesheet][href^="${e}?"]`).length>0)r.resolve();else{let e=document.createElement("link");e.rel="stylesheet",e.href=t,e.onerror=()=>{r.reject()},e.onload=()=>{r.resolve()},document.head.appendChild(e)}else if(q.test(t)){let n=document.querySelectorAll(`script[src="${t}"],script[src^="${t}?"],script[src="${e}"],script[src^="${e}?"]`);if(n.length>0)for(let e of Array.from(n))e.addEventListener("error",()=>{r.reject()});else{let e=document.createElement("script");e.src=t,e.onerror=()=>{r.reject()},document.head.appendChild(e)}}else throw Error(`can't infer type of chunk from URL ${t}`)}return r.loadingStarted=!0,r.promise})(e,t),async loadWebAssembly(e,t,r,n,o){let l=fetch(N(r)),{instance:i}=await WebAssembly.instantiateStreaming(l,o);return i.exports},async loadWebAssemblyModule(e,t,r,n){let o=fetch(N(r));return await WebAssembly.compileStreaming(o)}};let H=globalThis.TURBOPACK;globalThis.TURBOPACK={push:F},H.forEach(F)})(); \ No newline at end of file diff --git a/web/out/_next/static/libra-web-0.22.5/_buildManifest.js b/web/out/_next/static/libra-web-0.22.5/_buildManifest.js deleted file mode 100644 index 94ca9144a..000000000 --- a/web/out/_next/static/libra-web-0.22.5/_buildManifest.js +++ /dev/null @@ -1,11 +0,0 @@ -self.__BUILD_MANIFEST = { - "__rewrites": { - "afterFiles": [], - "beforeFiles": [], - "fallback": [] - }, - "sortedPages": [ - "/_app", - "/_error" - ] -};self.__BUILD_MANIFEST_CB && self.__BUILD_MANIFEST_CB() \ No newline at end of file diff --git a/web/out/_next/static/libra-web-0.22.5/_clientMiddlewareManifest.js b/web/out/_next/static/libra-web-0.22.5/_clientMiddlewareManifest.js deleted file mode 100644 index a8acaffa3..000000000 --- a/web/out/_next/static/libra-web-0.22.5/_clientMiddlewareManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__MIDDLEWARE_MATCHERS = [];self.__MIDDLEWARE_MATCHERS_CB && self.__MIDDLEWARE_MATCHERS_CB() \ No newline at end of file diff --git a/web/out/_next/static/libra-web-0.22.5/_ssgManifest.js b/web/out/_next/static/libra-web-0.22.5/_ssgManifest.js deleted file mode 100644 index 5b3ff592f..000000000 --- a/web/out/_next/static/libra-web-0.22.5/_ssgManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() \ No newline at end of file diff --git a/web/out/_not-found/__next._full.txt b/web/out/_not-found/__next._full.txt deleted file mode 100644 index 433287551..000000000 --- a/web/out/_not-found/__next._full.txt +++ /dev/null @@ -1,15 +0,0 @@ -1:"$Sreact.fragment" -2:I[71579,["/_next/static/chunks/0-d6j10u4ad6s.js"],"default"] -3:I[3522,["/_next/static/chunks/0-d6j10u4ad6s.js"],"default"] -4:I[40097,["/_next/static/chunks/0-d6j10u4ad6s.js"],"OutletBoundary"] -5:"$Sreact.suspense" -8:I[40097,["/_next/static/chunks/0-d6j10u4ad6s.js"],"ViewportBoundary"] -a:I[40097,["/_next/static/chunks/0-d6j10u4ad6s.js"],"MetadataBoundary"] -c:I[69716,["/_next/static/chunks/0-d6j10u4ad6s.js"],"default",1] -:HL["/_next/static/chunks/114qnh8dmpxu5.css","style"] -0:{"P":null,"c":["","_not-found",""],"q":"","i":false,"f":[[["",{"children":["/_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/114qnh8dmpxu5.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/0-d6j10u4ad6s.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],null,["$","$L4",null,{"children":["$","$5",null,{"name":"Next.MetadataOutlet","children":"$@6"}]}]]}],{},null,false,null]},null,false,"$@7"]},null,false,null],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L8",null,{"children":"$L9"}],["$","div",null,{"hidden":true,"children":["$","$La",null,{"children":["$","$5",null,{"name":"Next.Metadata","children":"$Lb"}]}]}],null]}],false]],"m":"$undefined","G":["$c",[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/114qnh8dmpxu5.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"libra-web-0.22.5"} -d:[] -7:"$Wd" -9:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -6:null -b:[["$","title","0",{"children":"Libra Code"}],["$","meta","1",{"name":"description","content":"Local Libra Code session"}]] diff --git a/web/out/_not-found/__next._head.txt b/web/out/_not-found/__next._head.txt deleted file mode 100644 index e9044680d..000000000 --- a/web/out/_not-found/__next._head.txt +++ /dev/null @@ -1,5 +0,0 @@ -1:"$Sreact.fragment" -2:I[40097,["/_next/static/chunks/0-d6j10u4ad6s.js"],"ViewportBoundary"] -3:I[40097,["/_next/static/chunks/0-d6j10u4ad6s.js"],"MetadataBoundary"] -4:"$Sreact.suspense" -0:{"rsc":["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"Libra Code"}],["$","meta","1",{"name":"description","content":"Local Libra Code session"}]]}]}]}],null]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"libra-web-0.22.5"} diff --git a/web/out/_not-found/__next._index.txt b/web/out/_not-found/__next._index.txt deleted file mode 100644 index 2fb4d21e7..000000000 --- a/web/out/_not-found/__next._index.txt +++ /dev/null @@ -1,5 +0,0 @@ -1:"$Sreact.fragment" -2:I[71579,["/_next/static/chunks/0-d6j10u4ad6s.js"],"default"] -3:I[3522,["/_next/static/chunks/0-d6j10u4ad6s.js"],"default"] -:HL["/_next/static/chunks/114qnh8dmpxu5.css","style"] -0:{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/114qnh8dmpxu5.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/0-d6j10u4ad6s.js","async":true}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}]}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"libra-web-0.22.5"} diff --git a/web/out/_not-found/__next._not-found.__PAGE__.txt b/web/out/_not-found/__next._not-found.__PAGE__.txt deleted file mode 100644 index bcfa8108c..000000000 --- a/web/out/_not-found/__next._not-found.__PAGE__.txt +++ /dev/null @@ -1,5 +0,0 @@ -1:"$Sreact.fragment" -2:I[40097,["/_next/static/chunks/0-d6j10u4ad6s.js"],"OutletBoundary"] -3:"$Sreact.suspense" -0:{"rsc":["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],null,["$","$L2",null,{"children":["$","$3",null,{"name":"Next.MetadataOutlet","children":"$@4"}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"libra-web-0.22.5"} -4:null diff --git a/web/out/_not-found/__next._not-found.txt b/web/out/_not-found/__next._not-found.txt deleted file mode 100644 index 470fc3371..000000000 --- a/web/out/_not-found/__next._not-found.txt +++ /dev/null @@ -1,5 +0,0 @@ -1:"$Sreact.fragment" -2:I[71579,["/_next/static/chunks/0-d6j10u4ad6s.js"],"default"] -3:I[3522,["/_next/static/chunks/0-d6j10u4ad6s.js"],"default"] -4:[] -0:{"rsc":["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}]}]]}],"isPartial":false,"staleTime":300,"varyParams":"$W4","buildId":"libra-web-0.22.5"} diff --git a/web/out/_not-found/__next._tree.txt b/web/out/_not-found/__next._tree.txt deleted file mode 100644 index 18b4e8248..000000000 --- a/web/out/_not-found/__next._tree.txt +++ /dev/null @@ -1,2 +0,0 @@ -:HL["/_next/static/chunks/114qnh8dmpxu5.css","style"] -0:{"tree":{"name":"","param":null,"prefetchHints":16,"slots":{"children":{"name":"/_not-found","param":null,"prefetchHints":0,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":0,"slots":null}}}}},"staleTime":300,"buildId":"libra-web-0.22.5"} diff --git a/web/out/_not-found/index.html b/web/out/_not-found/index.html deleted file mode 100644 index 4f1d278b7..000000000 --- a/web/out/_not-found/index.html +++ /dev/null @@ -1 +0,0 @@ -404: This page could not be found.Libra Code

404

This page could not be found.

\ No newline at end of file diff --git a/web/out/_not-found/index.txt b/web/out/_not-found/index.txt deleted file mode 100644 index 433287551..000000000 --- a/web/out/_not-found/index.txt +++ /dev/null @@ -1,15 +0,0 @@ -1:"$Sreact.fragment" -2:I[71579,["/_next/static/chunks/0-d6j10u4ad6s.js"],"default"] -3:I[3522,["/_next/static/chunks/0-d6j10u4ad6s.js"],"default"] -4:I[40097,["/_next/static/chunks/0-d6j10u4ad6s.js"],"OutletBoundary"] -5:"$Sreact.suspense" -8:I[40097,["/_next/static/chunks/0-d6j10u4ad6s.js"],"ViewportBoundary"] -a:I[40097,["/_next/static/chunks/0-d6j10u4ad6s.js"],"MetadataBoundary"] -c:I[69716,["/_next/static/chunks/0-d6j10u4ad6s.js"],"default",1] -:HL["/_next/static/chunks/114qnh8dmpxu5.css","style"] -0:{"P":null,"c":["","_not-found",""],"q":"","i":false,"f":[[["",{"children":["/_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/114qnh8dmpxu5.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/0-d6j10u4ad6s.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],null,["$","$L4",null,{"children":["$","$5",null,{"name":"Next.MetadataOutlet","children":"$@6"}]}]]}],{},null,false,null]},null,false,"$@7"]},null,false,null],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L8",null,{"children":"$L9"}],["$","div",null,{"hidden":true,"children":["$","$La",null,{"children":["$","$5",null,{"name":"Next.Metadata","children":"$Lb"}]}]}],null]}],false]],"m":"$undefined","G":["$c",[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/114qnh8dmpxu5.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"libra-web-0.22.5"} -d:[] -7:"$Wd" -9:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -6:null -b:[["$","title","0",{"children":"Libra Code"}],["$","meta","1",{"name":"description","content":"Local Libra Code session"}]] diff --git a/web/out/file.svg b/web/out/file.svg deleted file mode 100644 index 004145cdd..000000000 --- a/web/out/file.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/web/out/globe.svg b/web/out/globe.svg deleted file mode 100644 index 567f17b0d..000000000 --- a/web/out/globe.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/web/out/index.html b/web/out/index.html deleted file mode 100644 index c9d495353..000000000 --- a/web/out/index.html +++ /dev/null @@ -1 +0,0 @@ -Libra Code

Libra — Agent Workspace

Shared browser foundation is ready.

Loading session…

Threads

Repository-shared list from storage. Process resume is working-directory scoped — use the original session cwd with `libra code --resume`.

No threads found.

    Session lifecycle

    Active thread: none · Phase: Ready

    Selected thread: none

    No live session snapshot is loaded.

    Usage

    Cumulative

    No usage totals loaded.

    Current turn

    No current-turn delta loaded.

    Sub-agent attribution

    Sub-agent attribution unavailable.

    Thread version graph

    No thread is attached to this session yet.

      Execution

      No confirmed plan execution in the current snapshot.

      Repair

      No plan-execution repair state projected.

      SSE resilience

      SSE connected

      No cursor seq observed yet.

      No projected session snapshot is retained yet.

      \ No newline at end of file diff --git a/web/out/index.txt b/web/out/index.txt deleted file mode 100644 index 19f466fdb..000000000 --- a/web/out/index.txt +++ /dev/null @@ -1,17 +0,0 @@ -1:"$Sreact.fragment" -2:I[71579,["/_next/static/chunks/0-d6j10u4ad6s.js"],"default"] -3:I[3522,["/_next/static/chunks/0-d6j10u4ad6s.js"],"default"] -4:I[72699,["/_next/static/chunks/0-d6j10u4ad6s.js"],"ClientPageRoot"] -5:I[52683,["/_next/static/chunks/0-d6j10u4ad6s.js","/_next/static/chunks/012s93a.x1q81.js"],"default"] -8:I[40097,["/_next/static/chunks/0-d6j10u4ad6s.js"],"OutletBoundary"] -9:"$Sreact.suspense" -b:I[40097,["/_next/static/chunks/0-d6j10u4ad6s.js"],"ViewportBoundary"] -d:I[40097,["/_next/static/chunks/0-d6j10u4ad6s.js"],"MetadataBoundary"] -f:I[69716,["/_next/static/chunks/0-d6j10u4ad6s.js"],"default",1] -:HL["/_next/static/chunks/114qnh8dmpxu5.css","style"] -0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/114qnh8dmpxu5.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/0-d6j10u4ad6s.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]]}],{"children":[["$","$1","c",{"children":[["$","$L4",null,{"Component":"$5","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@6","$@7"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/012s93a.x1q81.js","async":true,"nonce":"$undefined"}]],["$","$L8",null,{"children":["$","$9",null,{"name":"Next.MetadataOutlet","children":"$@a"}]}]]}],{},null,false,null]},null,false,null],["$","$1","h",{"children":[null,["$","$Lb",null,{"children":"$Lc"}],["$","div",null,{"hidden":true,"children":["$","$Ld",null,{"children":["$","$9",null,{"name":"Next.Metadata","children":"$Le"}]}]}],null]}],false]],"m":"$undefined","G":["$f",[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/114qnh8dmpxu5.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"libra-web-0.22.5"} -6:{} -7:"$0:f:0:1:1:children:0:props:children:0:props:serverProvidedParams:params" -c:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -a:null -e:[["$","title","0",{"children":"Libra Code"}],["$","meta","1",{"name":"description","content":"Local Libra Code session"}]] diff --git a/web/out/logo.svg b/web/out/logo.svg deleted file mode 100644 index e65dfa5bd..000000000 --- a/web/out/logo.svg +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/web/out/next.svg b/web/out/next.svg deleted file mode 100644 index 5174b28c5..000000000 --- a/web/out/next.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/web/out/remote-notice/index.html b/web/out/remote-notice/index.html deleted file mode 100644 index 01b6b750d..000000000 --- a/web/out/remote-notice/index.html +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - Libra Code is loopback-only - - - -
      -

      Libra Code is available from loopback only

      -

      This browser reached a Libra Code server from a non-loopback address. Interactive APIs, session data, runtime details, local file details, and control credentials are only exposed to clients on the same machine.

      -

      Open the UI from the host running Libra, such as http://127.0.0.1:<port> or http://localhost:<port>.

      -
      -
      Bind
      -
      __LIBRA_BIND__
      -
      Remote
      -
      __LIBRA_REMOTE__
      -
      Version
      -
      __LIBRA_VERSION__
      -
      Commit
      -
      __LIBRA_COMMIT__
      -
      -
      - - diff --git a/web/out/remote-notice/zh-CN/index.html b/web/out/remote-notice/zh-CN/index.html deleted file mode 100644 index 5dd6539c5..000000000 --- a/web/out/remote-notice/zh-CN/index.html +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - Libra Code 仅限本机访问 - - - -
      -

      Libra Code 仅限本机访问

      -

      此浏览器正在通过非 loopback 地址访问 Libra Code。交互 API、会话数据、运行时细节、工作区路径和控制凭据只会暴露给同一台机器上的客户端。

      -

      请在运行 Libra 的主机上打开界面,例如 http://127.0.0.1:<port>http://localhost:<port>

      -
      -
      监听地址
      -
      __LIBRA_BIND__
      -
      远程地址
      -
      __LIBRA_REMOTE__
      -
      版本
      -
      __LIBRA_VERSION__
      -
      提交
      -
      __LIBRA_COMMIT__
      -
      -
      - - diff --git a/web/out/vercel.svg b/web/out/vercel.svg deleted file mode 100644 index 770539603..000000000 --- a/web/out/vercel.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/web/out/window.svg b/web/out/window.svg deleted file mode 100644 index b2b2a44f6..000000000 --- a/web/out/window.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file