diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index e630d5a..85cdd89 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -7,19 +7,36 @@ ARG USER_GID=$USER_UID ENV RUSTUP_HOME=/usr/local/rustup \ CARGO_HOME=/usr/local/cargo \ PATH=/usr/local/cargo/bin:$PATH \ - RUST_VERSION=1.85.0 + RUST_VERSION=1.85.0 \ + DEBIAN_FRONTEND=noninteractive -# Install common dependencies +# Install all system dependencies in a single layer and clean up apt cache RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends \ + # Common utilities sudo \ ca-certificates \ curl \ gnupg \ git \ less \ - software-properties-common + wget \ + file \ + software-properties-common \ + # libopenconnect-dev to install the related dependencies for building openconnect from source + # Otherwise, we have to install them manually one by one + libopenconnect-dev \ + # Tauri dependencies + libwebkit2gtk-4.1-dev \ + build-essential \ + libxdo-dev \ + libssl-dev \ + libayatana-appindicator3-dev \ + librsvg2-dev; \ + # Clean up apt cache to reduce image size + apt-get clean; \ + rm -rf /var/lib/apt/lists/* # Create a non-root user RUN set -eux; \ @@ -30,38 +47,21 @@ RUN set -eux; \ # Install Rust RUN set -eux; \ - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain $RUST_VERSION; \ + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain $RUST_VERSION --profile minimal; \ chown -R $USERNAME:$USERNAME $RUSTUP_HOME $CARGO_HOME; \ rustup --version; \ cargo --version; \ rustc --version -# Install Node.js +# Install Node.js and global npm packages RUN set -eux; \ curl -fsSL https://deb.nodesource.com/setup_20.x | bash -; \ - apt-get install -y nodejs; \ + apt-get install -y --no-install-recommends nodejs; \ corepack enable; \ - # Install diff-so-fancy - npm install -g diff-so-fancy - -# Install openconnect -RUN set -eux; \ - add-apt-repository ppa:yuezk/globalprotect-openconnect; \ - apt-get update; \ - apt-get install -y openconnect libopenconnect-dev - -# Tauri dependencies -RUN set -eux; \ - apt-get install -y \ - libwebkit2gtk-4.1-dev \ - build-essential \ - curl \ - wget \ - file \ - libxdo-dev \ - libssl-dev \ - libayatana-appindicator3-dev \ - librsvg2-dev + npm install -g diff-so-fancy; \ + # Clean up apt cache + apt-get clean; \ + rm -rf /var/lib/apt/lists/* USER $USERNAME diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 163bbe9..fd47d03 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -151,9 +151,11 @@ jobs: - name: Docker Login run: echo ${{ secrets.DOCKER_HUB_TOKEN }} | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin - name: Build ${{ matrix.package }} package in Docker + # LIBXML2_STATIC is needed to avoid the dynamic linking issue on different distros run: | docker run --pull=always --rm \ -e COREPACK_INTEGRITY_KEYS=0 \ + -e LIBXML2_STATIC=1 \ -v $(pwd)/build-gp-${{ matrix.package }}:/workspace \ yuezk/gpdev:${{ matrix.package }}-builder-tauri2 - name: Install ${{ matrix.package }} package in Docker diff --git a/.gitmodules b/.gitmodules index 70ad3d7..9f23140 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ -[submodule "deps/openconnect"] - path = deps/openconnect +[submodule "crates/openconnect/deps/openconnect"] + path = crates/openconnect/deps/openconnect url = https://gitlab.com/openconnect/openconnect.git +[submodule "crates/openconnect/deps/libxml2"] + path = crates/openconnect/deps/libxml2 + url = https://gitlab.gnome.org/GNOME/libxml2.git diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json index b9f4c51..74363f0 100644 --- a/.vscode/c_cpp_properties.json +++ b/.vscode/c_cpp_properties.json @@ -2,7 +2,7 @@ "configurations": [ { "name": "Mac", - "includePath": ["deps/openconnect"], + "includePath": ["crates/openconnect/deps/openconnect"], "macFrameworkPath": ["/System/Library/Frameworks", "/Library/Frameworks"], "intelliSenseMode": "macos-clang-x64", "compilerPath": "/usr/bin/clang", diff --git a/Cargo.lock b/Cargo.lock index 439ce21..ada442f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -119,6 +119,48 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d92bec98840b8f03a5ff5413de5293bfcd8bf96467cf5452609f939ec6f5de16" +[[package]] +name = "askama" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f75363874b771be265f4ffe307ca705ef6f3baa19011c149da8674a87f1b75c4" +dependencies = [ + "askama_derive", + "itoa", + "percent-encoding", + "serde", + "serde_json", +] + +[[package]] +name = "askama_derive" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "129397200fe83088e8a68407a8e2b1f826cf0086b21ccdb866a722c8bcd3a94f" +dependencies = [ + "askama_parser", + "basic-toml", + "memchr", + "proc-macro2", + "quote", + "rustc-hash", + "serde", + "serde_derive", + "syn 2.0.111", +] + +[[package]] +name = "askama_parser" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6ab5630b3d5eaf232620167977f95eb51f3432fc76852328774afbd242d4358" +dependencies = [ + "memchr", + "serde", + "serde_derive", + "winnow 0.7.14", +] + [[package]] name = "async-trait" version = "0.1.89" @@ -164,13 +206,13 @@ name = "auth" version = "2.5.0" dependencies = [ "anyhow", - "block2 0.6.2", + "block2", "common", "gpapi", "html-escape", "log", - "objc2 0.6.3", - "objc2-foundation 0.3.2", + "objc2", + "objc2-foundation", "objc2-web-kit", "open", "regex", @@ -201,9 +243,9 @@ dependencies = [ [[package]] name = "axum" -version = "0.8.7" +version = "0.8.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b098575ebe77cb6d14fc7f32749631a6e44edbef6b796f89b020e99ba20d425" +checksum = "8b52af3cb4058c895d37317bb27508dccc8e5f2d39454016b297bf4a400597b8" dependencies = [ "axum-core", "base64 0.22.1", @@ -266,6 +308,15 @@ version = "0.22.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" +[[package]] +name = "basic-toml" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba62675e8242a4c4e806d12f11d136e626e6c8361d6b829310732241652a178a" +dependencies = [ + "serde", +] + [[package]] name = "bitflags" version = "1.3.2" @@ -290,22 +341,13 @@ dependencies = [ "generic-array", ] -[[package]] -name = "block2" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c132eebf10f5cad5289222520a4a058514204aed6d791f1cf4fe8088b82d15f" -dependencies = [ - "objc2 0.5.2", -] - [[package]] name = "block2" version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5" dependencies = [ - "objc2 0.6.3", + "objc2", ] [[package]] @@ -331,9 +373,9 @@ dependencies = [ [[package]] name = "bumpalo" -version = "3.19.0" +version = "3.19.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46c5e41b57b8bba42a04676d81cb89e9ee8e859a1a66f80a5a72e1cb76b34d43" +checksum = "5dd9dc738b7a8311c7ade152424974d8115f2cdad61e8dab8dac9f2362298510" [[package]] name = "bytemuck" @@ -383,9 +425,9 @@ dependencies = [ [[package]] name = "camino" -version = "1.2.1" +version = "1.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "276a59bf2b2c967788139340c9f0c5b12d7fd6630315c15c217e559de85d2609" +checksum = "e629a66d692cb9ff1a1c664e41771b3dcaf961985a9774c0eb0bd1b51cf60a48" dependencies = [ "serde_core", ] @@ -420,14 +462,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "374b7c592d9c00c1f4972ea58390ac6b18cbb6ab79011f3bdc90a0b82ca06b77" dependencies = [ "serde", - "toml 0.9.8", + "toml 0.9.10+spec-1.1.0", ] [[package]] name = "cc" -version = "1.2.49" +version = "1.2.50" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90583009037521a116abf44494efecd645ba48b6622457080f080b85544e2215" +checksum = "9f50d563227a1c37cc0a263f64eca3334388c01c5e4c4861a9def205c614383c" dependencies = [ "find-msvc-tools", "shlex", @@ -503,8 +545,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "145052bdd345b87320e369255277e3fb5152762ad123a901ef5c262dd38fe8d2" dependencies = [ "iana-time-zone", + "js-sys", "num-traits", "serde", + "wasm-bindgen", "windows-link 0.2.1", ] @@ -744,7 +788,7 @@ checksum = "d8b9f2e4c67f833b660cdb0a3523065869fb35570177239812ed4c905aeff87b" dependencies = [ "bitflags 2.10.0", "crossterm_winapi", - "derive_more 2.1.0", + "derive_more 2.1.1", "document-features", "mio", "parking_lot", @@ -877,18 +921,18 @@ dependencies = [ [[package]] name = "derive_more" -version = "2.1.0" +version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10b768e943bed7bf2cab53df09f4bc34bfd217cdb57d971e769874c9a6710618" +checksum = "d751e9e49156b02b44f9c1815bcb94b984cdcc4396ecc32521c739452808b134" dependencies = [ "derive_more-impl", ] [[package]] name = "derive_more-impl" -version = "2.1.0" +version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d286bfdaf75e988b4a78e013ecd79c581e06399ab53fbacd2d916c2f904f30b" +checksum = "799a97264921d8623a957f6c3b9011f3b5492f557bbb7a5a19b7fa6d06ba8dcb" dependencies = [ "convert_case 0.10.0", "proc-macro2", @@ -950,7 +994,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "89a09f22a6c6069a18470eb92d2298acf25463f14256d24778e1230d789a2aec" dependencies = [ "bitflags 2.10.0", - "objc2 0.6.3", + "block2", + "libc", + "objc2", ] [[package]] @@ -964,6 +1010,17 @@ dependencies = [ "syn 2.0.111", ] +[[package]] +name = "dlopen2" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09b4f5f101177ff01b8ec4ecc81eead416a8aa42819a2869311b3420fa114ffa" +dependencies = [ + "libc", + "once_cell", + "winapi", +] + [[package]] name = "dlopen2" version = "0.8.2" @@ -1059,7 +1116,7 @@ dependencies = [ "cc", "memchr", "rustc_version", - "toml 0.9.8", + "toml 0.9.10+spec-1.1.0", "vswhom", "winreg", ] @@ -1622,13 +1679,14 @@ dependencies = [ "gtk", "log", "log-reload", + "machine-uid", "md5", "openssl", + "os_info", "pem", "redact-engine", "regex", "reqwest", - "roxmltree", "serde", "serde_json", "serde_urlencoded", @@ -1640,9 +1698,11 @@ dependencies = [ "tokio", "url", "urlencoding", + "uuid", "uzers", "version-compare", "whoami", + "xmltree", ] [[package]] @@ -1670,6 +1730,8 @@ name = "gpclient" version = "2.5.0" dependencies = [ "anyhow", + "askama", + "chrono", "clap", "common", "compile-time", @@ -1678,13 +1740,16 @@ dependencies = [ "gpapi", "inquire", "log", + "netdev", "openconnect", "reqwest", "serde_json", + "serde_urlencoded", "sysinfo", "tempfile", "tokio", "whoami", + "xmltree", ] [[package]] @@ -2066,9 +2131,9 @@ checksum = "7aedcccd01fc5fe81e6b489c15b247b8b0690feb23304303a9e560f37efc560a" [[package]] name = "icu_properties" -version = "2.1.1" +version = "2.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e93fcd3157766c0c8da2f8cff6ce651a31f0810eaa1c51ec363ef790bbb5fb99" +checksum = "020bfc02fe870ec3a66d93e677ccca0562506e5872c650f893269e08615d74ec" dependencies = [ "icu_collections", "icu_locale_core", @@ -2080,9 +2145,9 @@ dependencies = [ [[package]] name = "icu_properties_data" -version = "2.1.1" +version = "2.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02845b3647bb045f1100ecd6480ff52f34c35f82d9880e029d329c21d1054899" +checksum = "616c294cf8d725c6afcd8f55abc17c56464ef6211f9ed59cccffe534129c77af" [[package]] name = "icu_provider" @@ -2233,9 +2298,9 @@ checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695" [[package]] name = "itoa" -version = "1.0.15" +version = "1.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c" +checksum = "7ee5b5339afb4c41626dde77b7a611bd4f2c202b897852b4bcf5d03eddc61010" [[package]] name = "javascriptcore-rs" @@ -2409,13 +2474,13 @@ dependencies = [ [[package]] name = "libredox" -version = "0.1.10" +version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "416f7e718bdb06000964960ffa43b4335ad4012ae8b99060261aa4a8088d5ccb" +checksum = "df15f6eac291ed1cf25865b1ee60399f57e7c227e7f51bdbd4c5270396a9ed50" dependencies = [ "bitflags 2.10.0", "libc", - "redox_syscall", + "redox_syscall 0.6.0", ] [[package]] @@ -2477,6 +2542,23 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4" +[[package]] +name = "mac-addr" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3d25b0e0b648a86960ac23b7ad4abb9717601dec6f66c165f5b037f3f03065f" + +[[package]] +name = "machine-uid" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d7217d573cdb141d6da43113b098172e057d39915d79c4bdedbc3aacd46bd96" +dependencies = [ + "libc", + "windows-registry", + "windows-sys 0.61.2", +] + [[package]] name = "markup5ever" version = "0.14.1" @@ -2573,10 +2655,10 @@ dependencies = [ "dpi", "gtk", "keyboard-types", - "objc2 0.6.3", + "objc2", "objc2-app-kit", "objc2-core-foundation", - "objc2-foundation 0.3.2", + "objc2-foundation", "once_cell", "png", "serde", @@ -2631,12 +2713,78 @@ dependencies = [ "jni-sys", ] +[[package]] +name = "netdev" +version = "0.40.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc9815643a243856e7bd84524e1ff739e901e846cfb06ad9627cd2b6d59bd737" +dependencies = [ + "block2", + "dispatch2", + "dlopen2 0.5.0", + "ipnet", + "libc", + "mac-addr", + "netlink-packet-core", + "netlink-packet-route", + "netlink-sys", + "objc2-core-foundation", + "objc2-system-configuration", + "once_cell", + "plist", + "windows-sys 0.59.0", +] + +[[package]] +name = "netlink-packet-core" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3463cbb78394cb0141e2c926b93fc2197e473394b761986eca3b9da2c63ae0f4" +dependencies = [ + "paste", +] + +[[package]] +name = "netlink-packet-route" +version = "0.25.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ec2f5b6839be2a19d7fa5aab5bc444380f6311c2b693551cb80f45caaa7b5ef" +dependencies = [ + "bitflags 2.10.0", + "libc", + "log", + "netlink-packet-core", +] + +[[package]] +name = "netlink-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16c903aa70590cb93691bf97a767c8d1d6122d2cc9070433deb3bbf36ce8bd23" +dependencies = [ + "bytes", + "libc", + "log", +] + [[package]] name = "new_debug_unreachable" version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086" +[[package]] +name = "nix" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74523f3a35e05aba87a1d978330aef40f67b0304ac79c1c00b294c9830543db6" +dependencies = [ + "bitflags 2.10.0", + "cfg-if", + "cfg_aliases", + "libc", +] + [[package]] name = "nodrop" version = "0.1.14" @@ -2645,9 +2793,9 @@ checksum = "72ef4a56884ca558e5ddb05a1d1e7e1bfd9a68d9ed024c21704cc98872dae1bb" [[package]] name = "ntapi" -version = "0.4.1" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8a3895c6391c39d7fe7ebc444a87eb2991b2a0bc718fdabd071eec617fc68e4" +checksum = "c70f219e21142367c70c0b30c6a9e3a14d55b4d12a204d897fbec83a0363f081" dependencies = [ "winapi", ] @@ -2689,22 +2837,6 @@ dependencies = [ "syn 2.0.111", ] -[[package]] -name = "objc-sys" -version = "0.3.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cdb91bdd390c7ce1a8607f35f3ca7151b65afc0ff5ff3b34fa350f7d7c7e4310" - -[[package]] -name = "objc2" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46a785d4eeff09c14c487497c162e92766fbb3e4059a71840cecc03d9a50b804" -dependencies = [ - "objc-sys", - "objc2-encode", -] - [[package]] name = "objc2" version = "0.6.3" @@ -2722,9 +2854,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c" dependencies = [ "bitflags 2.10.0", - "block2 0.6.2", + "block2", "libc", - "objc2 0.6.3", + "objc2", "objc2-cloud-kit", "objc2-core-data", "objc2-core-foundation", @@ -2732,8 +2864,8 @@ dependencies = [ "objc2-core-image", "objc2-core-text", "objc2-core-video", - "objc2-foundation 0.3.2", - "objc2-quartz-core 0.3.2", + "objc2-foundation", + "objc2-quartz-core", ] [[package]] @@ -2743,8 +2875,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c" dependencies = [ "bitflags 2.10.0", - "objc2 0.6.3", - "objc2-foundation 0.3.2", + "objc2", + "objc2-foundation", ] [[package]] @@ -2754,8 +2886,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa" dependencies = [ "bitflags 2.10.0", - "objc2 0.6.3", - "objc2-foundation 0.3.2", + "objc2", + "objc2-foundation", ] [[package]] @@ -2765,8 +2897,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536" dependencies = [ "bitflags 2.10.0", + "block2", "dispatch2", - "objc2 0.6.3", + "libc", + "objc2", ] [[package]] @@ -2777,7 +2911,7 @@ checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807" dependencies = [ "bitflags 2.10.0", "dispatch2", - "objc2 0.6.3", + "objc2", "objc2-core-foundation", "objc2-io-surface", ] @@ -2788,8 +2922,18 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e5d563b38d2b97209f8e861173de434bd0214cf020e3423a52624cd1d989f006" dependencies = [ - "objc2 0.6.3", - "objc2-foundation 0.3.2", + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-location" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca347214e24bc973fc025fd0d36ebb179ff30536ed1f80252706db19ee452009" +dependencies = [ + "objc2", + "objc2-foundation", ] [[package]] @@ -2799,7 +2943,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d" dependencies = [ "bitflags 2.10.0", - "objc2 0.6.3", + "objc2", "objc2-core-foundation", "objc2-core-graphics", ] @@ -2811,7 +2955,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d425caf1df73233f29fd8a5c3e5edbc30d2d4307870f802d18f00d83dc5141a6" dependencies = [ "bitflags 2.10.0", - "objc2 0.6.3", + "objc2", "objc2-core-foundation", "objc2-core-graphics", "objc2-io-surface", @@ -2832,18 +2976,6 @@ dependencies = [ "cc", ] -[[package]] -name = "objc2-foundation" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ee638a5da3799329310ad4cfa62fbf045d5f56e3ef5ba4149e7452dcf89d5a8" -dependencies = [ - "bitflags 2.10.0", - "block2 0.5.1", - "libc", - "objc2 0.5.2", -] - [[package]] name = "objc2-foundation" version = "0.3.2" @@ -2851,9 +2983,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272" dependencies = [ "bitflags 2.10.0", - "block2 0.6.2", + "block2", "libc", - "objc2 0.6.3", + "objc2", "objc2-core-foundation", ] @@ -2874,7 +3006,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d" dependencies = [ "bitflags 2.10.0", - "objc2 0.6.3", + "objc2", "objc2-core-foundation", ] @@ -2884,35 +3016,10 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2a1e6550c4caed348956ce3370c9ffeca70bb1dbed4fa96112e7c6170e074586" dependencies = [ - "objc2 0.6.3", + "objc2", "objc2-core-foundation", ] -[[package]] -name = "objc2-metal" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd0cba1276f6023976a406a14ffa85e1fdd19df6b0f737b063b95f6c8c7aadd6" -dependencies = [ - "bitflags 2.10.0", - "block2 0.5.1", - "objc2 0.5.2", - "objc2-foundation 0.2.2", -] - -[[package]] -name = "objc2-quartz-core" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e42bee7bff906b14b167da2bac5efe6b6a07e6f7c0a21a7308d40c960242dc7a" -dependencies = [ - "bitflags 2.10.0", - "block2 0.5.1", - "objc2 0.5.2", - "objc2-foundation 0.2.2", - "objc2-metal", -] - [[package]] name = "objc2-quartz-core" version = "0.3.2" @@ -2920,8 +3027,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f" dependencies = [ "bitflags 2.10.0", - "objc2 0.6.3", - "objc2-foundation 0.3.2", + "objc2", + "objc2-core-foundation", + "objc2-foundation", ] [[package]] @@ -2931,10 +3039,24 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "709fe137109bd1e8b5a99390f77a7d8b2961dafc1a1c5db8f2e60329ad6d895a" dependencies = [ "bitflags 2.10.0", - "objc2 0.6.3", + "objc2", "objc2-core-foundation", ] +[[package]] +name = "objc2-system-configuration" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7216bd11cbda54ccabcab84d523dc93b858ec75ecfb3a7d89513fa22464da396" +dependencies = [ + "bitflags 2.10.0", + "dispatch2", + "libc", + "objc2", + "objc2-core-foundation", + "objc2-security", +] + [[package]] name = "objc2-ui-kit" version = "0.3.2" @@ -2942,9 +3064,28 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d87d638e33c06f577498cbcc50491496a3ed4246998a7fbba7ccb98b1e7eab22" dependencies = [ "bitflags 2.10.0", - "objc2 0.6.3", + "block2", + "objc2", + "objc2-cloud-kit", + "objc2-core-data", "objc2-core-foundation", - "objc2-foundation 0.3.2", + "objc2-core-graphics", + "objc2-core-image", + "objc2-core-location", + "objc2-core-text", + "objc2-foundation", + "objc2-quartz-core", + "objc2-user-notifications", +] + +[[package]] +name = "objc2-user-notifications" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9df9128cbbfef73cda168416ccf7f837b62737d748333bfe9ab71c245d76613e" +dependencies = [ + "objc2", + "objc2-foundation", ] [[package]] @@ -2954,11 +3095,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b2e5aaab980c433cf470df9d7af96a7b46a9d892d521a2cbbb2f8a4c16751e7f" dependencies = [ "bitflags 2.10.0", - "block2 0.6.2", - "objc2 0.6.3", + "block2", + "objc2", "objc2-app-kit", "objc2-core-foundation", - "objc2-foundation 0.3.2", + "objc2-foundation", "objc2-javascript-core", "objc2-security", ] @@ -3054,6 +3195,21 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" +[[package]] +name = "os_info" +version = "3.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4022a17595a00d6a369236fdae483f0de7f0a339960a53118b818238e132224" +dependencies = [ + "android_system_properties", + "log", + "nix", + "objc2", + "objc2-foundation", + "objc2-ui-kit", + "windows-sys 0.61.2", +] + [[package]] name = "pango" version = "0.18.3" @@ -3097,11 +3253,17 @@ checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" dependencies = [ "cfg-if", "libc", - "redox_syscall", + "redox_syscall 0.5.18", "smallvec", "windows-link 0.2.1", ] +[[package]] +name = "paste" +version = "1.0.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" + [[package]] name = "pathdiff" version = "0.2.3" @@ -3315,9 +3477,9 @@ dependencies = [ [[package]] name = "portable-atomic" -version = "1.11.1" +version = "1.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f84267b20a16ea918e43c6a88433c2d54fa145c92a811b5b047ccbe153674483" +checksum = "f59e70c4aef1e55797c2e8fd94a4f2a973fc972cfde0e0b05f683667b0cd39dd" [[package]] name = "portable-atomic-util" @@ -3384,7 +3546,7 @@ version = "3.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "219cb19e96be00ab2e37d6e299658a0cfa83e52429179969b0f0121b4ac46983" dependencies = [ - "toml_edit 0.23.9", + "toml_edit 0.23.10+spec-1.0.0", ] [[package]] @@ -3609,6 +3771,15 @@ dependencies = [ "bitflags 2.10.0", ] +[[package]] +name = "redox_syscall" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec96166dafa0886eb81fe1c0a388bece180fbef2135f97c1e2cf8302e74b43b5" +dependencies = [ + "bitflags 2.10.0", +] + [[package]] name = "redox_users" version = "0.5.2" @@ -3671,9 +3842,9 @@ checksum = "7a2d987857b319362043e95f5353c0535c1f58eec5336fdfcf626430af7def58" [[package]] name = "reqwest" -version = "0.12.24" +version = "0.12.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d0946410b9f7b082a427e4ef5c8ff541a88b357bc6c637c40db3a68ac70a36f" +checksum = "3b4c14b2d9afca6a60277086b0cc6a6ae0b568f6f7916c943a8cdc79f8be240f" dependencies = [ "base64 0.22.1", "bytes", @@ -3727,13 +3898,10 @@ dependencies = [ ] [[package]] -name = "roxmltree" -version = "0.21.1" +name = "rustc-hash" +version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1964b10c76125c36f8afe190065a4bf9a87bf324842c05701330bba9f1cacbb" -dependencies = [ - "memchr", -] +checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d" [[package]] name = "rustc_version" @@ -3772,9 +3940,9 @@ dependencies = [ [[package]] name = "rustls-pki-types" -version = "1.13.1" +version = "1.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "708c0f9d5f54ba0272468c1d306a52c495b31fa155e91bc25371e6df7996908c" +checksum = "21e6f2ab2928ca4291b86736a8bd920a277a399bba1589409d72154ff87c1282" dependencies = [ "zeroize", ] @@ -3798,9 +3966,9 @@ checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" [[package]] name = "ryu" -version = "1.0.20" +version = "1.0.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f" +checksum = "62049b2877bf12821e8f9ad256ee38fdc31db7387ec2d3b3f403024de2034aea" [[package]] name = "same-file" @@ -3983,9 +4151,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.145" +version = "1.0.146" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "402a6f66d8c709116cf22f558eab210f5a50187f702eb4d7e5ef38d9a7f1c79c" +checksum = "217ca874ae0207aac254aa02c957ded05585a90892cc8d87f9e5fa49669dadd8" dependencies = [ "itoa", "memchr", @@ -4037,9 +4205,9 @@ dependencies = [ [[package]] name = "serde_spanned" -version = "1.0.3" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e24345aa0fe688594e73770a5f6d1b216508b4f93484c0026d521acd30134392" +checksum = "f8bbf91e5a4d6315eee45e704372590b30e260ee83af6639d64557f51b067776" dependencies = [ "serde_core", ] @@ -4130,6 +4298,12 @@ dependencies = [ "digest", ] +[[package]] +name = "sha1_smol" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbfa15b3dddfee50a0fff136974b3e1bde555604ba463834a7eb7deb6417705d" + [[package]] name = "sha2" version = "0.10.9" @@ -4192,9 +4366,9 @@ dependencies = [ [[package]] name = "simd-adler32" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe" +checksum = "e320a6c5ad31d271ad523dcf3ad13e2767ad8b1cb8f047f75a8aeaf8da139da2" [[package]] name = "siphasher" @@ -4232,24 +4406,24 @@ dependencies = [ [[package]] name = "softbuffer" -version = "0.4.6" +version = "0.4.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18051cdd562e792cad055119e0cdb2cfc137e44e3987532e0f9659a77931bb08" +checksum = "aac18da81ebbf05109ab275b157c22a653bb3c12cf884450179942f81bcbf6c3" dependencies = [ "bytemuck", - "cfg_aliases", - "core-graphics", - "foreign-types 0.5.0", "js-sys", - "log", - "objc2 0.5.2", - "objc2-foundation 0.2.2", - "objc2-quartz-core 0.2.2", + "ndk", + "objc2", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation", + "objc2-quartz-core", "raw-window-handle", - "redox_syscall", + "redox_syscall 0.5.18", + "tracing", "wasm-bindgen", "web-sys", - "windows-sys 0.59.0", + "windows-sys 0.61.2", ] [[package]] @@ -4451,12 +4625,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f3a753bdc39c07b192151523a3f77cd0394aa75413802c883a0f6f6a0e5ee2e7" dependencies = [ "bitflags 2.10.0", - "block2 0.6.2", + "block2", "core-foundation 0.10.1", "core-graphics", "crossbeam-channel", "dispatch", - "dlopen2", + "dlopen2 0.8.2", "dpi", "gdkwayland-sys", "gdkx11-sys", @@ -4468,9 +4642,9 @@ dependencies = [ "ndk", "ndk-context", "ndk-sys", - "objc2 0.6.3", + "objc2", "objc2-app-kit", - "objc2-foundation 0.3.2", + "objc2-foundation", "once_cell", "parking_lot", "raw-window-handle", @@ -4514,9 +4688,9 @@ checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1" [[package]] name = "tauri" -version = "2.9.4" +version = "2.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15524fc7959bfcaa051ba6d0b3fb1ef18e978de2176c7c6acb977f7fd14d35c7" +checksum = "8a3868da5508446a7cd08956d523ac3edf0a8bc20bf7e4038f9a95c2800d2033" dependencies = [ "anyhow", "bytes", @@ -4534,9 +4708,9 @@ dependencies = [ "log", "mime", "muda", - "objc2 0.6.3", + "objc2", "objc2-app-kit", - "objc2-foundation 0.3.2", + "objc2-foundation", "objc2-ui-kit", "objc2-web-kit", "percent-encoding", @@ -4581,7 +4755,7 @@ dependencies = [ "serde_json", "tauri-utils", "tauri-winres", - "toml 0.9.8", + "toml 0.9.10+spec-1.1.0", "walkdir", ] @@ -4637,7 +4811,7 @@ dependencies = [ "gtk", "http", "jni", - "objc2 0.6.3", + "objc2", "objc2-ui-kit", "objc2-web-kit", "raw-window-handle", @@ -4653,17 +4827,17 @@ dependencies = [ [[package]] name = "tauri-runtime-wry" -version = "2.9.2" +version = "2.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7950f3bde6bcca6655bc5e76d3d6ec587ceb81032851ab4ddbe1f508bdea2729" +checksum = "187a3f26f681bdf028f796ccf57cf478c1ee422c50128e5a0a6ebeb3f5910065" dependencies = [ "gtk", "http", "jni", "log", - "objc2 0.6.3", + "objc2", "objc2-app-kit", - "objc2-foundation 0.3.2", + "objc2-foundation", "once_cell", "percent-encoding", "raw-window-handle", @@ -4709,7 +4883,7 @@ dependencies = [ "serde_with", "swift-rs", "thiserror 2.0.17", - "toml 0.9.8", + "toml 0.9.10+spec-1.1.0", "url", "urlpattern", "uuid", @@ -4724,7 +4898,7 @@ checksum = "1087b111fe2b005e42dbdc1990fc18593234238d47453b0c99b7de1c9ab2c1e0" dependencies = [ "dunce", "embed-resource", - "toml 0.9.8", + "toml 0.9.10+spec-1.1.0", ] [[package]] @@ -4939,14 +5113,14 @@ dependencies = [ [[package]] name = "toml" -version = "0.9.8" +version = "0.9.10+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0dc8b1fb61449e27716ec0e1bdf0f6b8f3e8f6b05391e8497b8b6d7804ea6d8" +checksum = "0825052159284a1a8b4d6c0c86cbc801f2da5afd2b225fa548c72f2e74002f48" dependencies = [ "indexmap 2.12.1", "serde_core", - "serde_spanned 1.0.3", - "toml_datetime 0.7.3", + "serde_spanned 1.0.4", + "toml_datetime 0.7.5+spec-1.1.0", "toml_parser", "toml_writer", "winnow 0.7.14", @@ -4963,9 +5137,9 @@ dependencies = [ [[package]] name = "toml_datetime" -version = "0.7.3" +version = "0.7.5+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2cdb639ebbc97961c51720f858597f7f24c4fc295327923af55b74c3c724533" +checksum = "92e1cfed4a3038bc5a127e35a2d360f145e1f4b971b551a2ba5fd7aedf7e1347" dependencies = [ "serde_core", ] @@ -4996,30 +5170,30 @@ dependencies = [ [[package]] name = "toml_edit" -version = "0.23.9" +version = "0.23.10+spec-1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d7cbc3b4b49633d57a0509303158ca50de80ae32c265093b24c414705807832" +checksum = "84c8b9f757e028cee9fa244aea147aab2a9ec09d5325a9b01e0a49730c2b5269" dependencies = [ "indexmap 2.12.1", - "toml_datetime 0.7.3", + "toml_datetime 0.7.5+spec-1.1.0", "toml_parser", "winnow 0.7.14", ] [[package]] name = "toml_parser" -version = "1.0.4" +version = "1.0.6+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0cbe268d35bdb4bb5a56a2de88d0ad0eb70af5384a99d648cd4b3d04039800e" +checksum = "a3198b4b0a8e11f09dd03e133c0280504d0801269e9afa46362ffde1cbeebf44" dependencies = [ "winnow 0.7.14", ] [[package]] name = "toml_writer" -version = "1.0.4" +version = "1.0.6+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df8b2b54733674ad286d16267dcfc7a71ed5c776e4ac7aa3c3e2561f7c637bf2" +checksum = "ab16f14aed21ee8bfd8ec22513f7287cd4a91aa92e44edfe2c17ddd004e92607" [[package]] name = "tower" @@ -5039,9 +5213,9 @@ dependencies = [ [[package]] name = "tower-http" -version = "0.6.7" +version = "0.6.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9cf146f99d442e8e68e585f5d798ccd3cad9a7835b917e09728880a862706456" +checksum = "d4e6559d53cc268e5031cd8429d05415bc4cb4aefc4aa5d6cc35fbf5b924a1f8" dependencies = [ "bitflags 2.10.0", "bytes", @@ -5069,9 +5243,9 @@ checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" [[package]] name = "tracing" -version = "0.1.43" +version = "0.1.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d15d90a0b5c19378952d479dc858407149d7bb45a14de0142f6c534b16fc647" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" dependencies = [ "log", "pin-project-lite", @@ -5080,9 +5254,9 @@ dependencies = [ [[package]] name = "tracing-core" -version = "0.1.35" +version = "0.1.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a04e24fab5c89c6a36eb8558c9656f30d81de51dfa4d3b45f26b21d61fa0a6c" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" dependencies = [ "once_cell", ] @@ -5097,11 +5271,11 @@ dependencies = [ "dirs", "libappindicator", "muda", - "objc2 0.6.3", + "objc2", "objc2-app-kit", "objc2-core-foundation", "objc2-core-graphics", - "objc2-foundation 0.3.2", + "objc2-foundation", "once_cell", "png", "serde", @@ -5282,14 +5456,15 @@ dependencies = [ "getrandom 0.3.4", "js-sys", "serde_core", + "sha1_smol", "wasm-bindgen", ] [[package]] name = "uzers" -version = "0.12.1" +version = "0.12.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4df81ff504e7d82ad53e95ed1ad5b72103c11253f39238bcc0235b90768a97dd" +checksum = "0b8275fb1afee25b4111d2dc8b5c505dbbc4afd0b990cb96deb2d88bff8be18d" dependencies = [ "libc", "log", @@ -5470,8 +5645,8 @@ dependencies = [ "jni", "log", "ndk-context", - "objc2 0.6.3", - "objc2-foundation 0.3.2", + "objc2", + "objc2-foundation", "url", "web-sys", ] @@ -5615,10 +5790,10 @@ version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d9bec5a31f3f9362f2258fd0e9c9dd61a9ca432e7306cc78c444258f0dce9a9c" dependencies = [ - "objc2 0.6.3", + "objc2", "objc2-app-kit", "objc2-core-foundation", - "objc2-foundation 0.3.2", + "objc2-foundation", "raw-window-handle", "windows-sys 0.59.0", "windows-version", @@ -6076,7 +6251,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "728b7d4c8ec8d81cab295e0b5b8a4c263c0d41a785fb8f8c4df284e5411140a2" dependencies = [ "base64 0.22.1", - "block2 0.6.2", + "block2", "cookie", "crossbeam-channel", "dirs", @@ -6091,10 +6266,10 @@ dependencies = [ "kuchikiki", "libc", "ndk", - "objc2 0.6.3", + "objc2", "objc2-app-kit", "objc2-core-foundation", - "objc2-foundation 0.3.2", + "objc2-foundation", "objc2-ui-kit", "objc2-web-kit", "once_cell", @@ -6145,6 +6320,21 @@ dependencies = [ "rustix", ] +[[package]] +name = "xml" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2df5825faced2427b2da74d9100f1e2e93c533fff063506a81ede1cf517b2e7e" + +[[package]] +name = "xmltree" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cbc04313cab124e498ab1724e739720807b6dc405b9ed0edc5860164d2e4ff70" +dependencies = [ + "xml", +] + [[package]] name = "xz2" version = "0.1.7" diff --git a/Cargo.toml b/Cargo.toml index 0895d52..774ffea 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,9 @@ license = "GPL-3.0" [workspace.dependencies] anyhow = "1.0" +askama = "0.14" base64 = "0.22" +chrono = "0.4" clap = { version = "4", features = ["derive"] } clap-verbosity-flag = "3" ctrlc = "3.4" @@ -32,7 +34,7 @@ regex = "1" reqwest = { version = "0.12", features = ["native-tls", "json"] } openssl = "0.10" pem = "3" -roxmltree = "0.21" +xmltree = "0.12" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" # Use 0.36 as newer versions requires Rust 1.88+ @@ -54,6 +56,9 @@ serde_urlencoded = "0.7" md5 = "0.8" sha256 = "1" which = "8" +uuid = "1" +netdev = "0.40" +machine-uid = "0.5" # Tauri dependencies tauri = { version = "2" } diff --git a/Makefile b/Makefile index f741895..9c08a8b 100644 --- a/Makefile +++ b/Makefile @@ -136,6 +136,9 @@ install: install -Dm755 .build/gpgui/gpgui_*/gpgui $(DESTDIR)/usr/bin/gpgui; \ fi + # Install the HIP report script + install -Dm755 packaging/files/usr/libexec/gpclient/hipreport.sh $(DESTDIR)/usr/libexec/gpclient/hipreport.sh + # Install the disconnect hooks install -Dm755 packaging/files/usr/lib/NetworkManager/dispatcher.d/pre-down.d/gpclient.down $(DESTDIR)/usr/lib/NetworkManager/dispatcher.d/pre-down.d/gpclient.down install -Dm755 packaging/files/usr/lib/NetworkManager/dispatcher.d/gpclient-nm-hook $(DESTDIR)/usr/lib/NetworkManager/dispatcher.d/gpclient-nm-hook @@ -156,6 +159,8 @@ uninstall: rm -f $(DESTDIR)/usr/bin/gpgui-helper rm -f $(DESTDIR)/usr/bin/gpgui + rm -f $(DESTDIR)/usr/libexec/gpclient/hipreport.sh + rm -f $(DESTDIR)/usr/lib/NetworkManager/dispatcher.d/pre-down.d/gpclient.down rm -f $(DESTDIR)/usr/lib/NetworkManager/dispatcher.d/gpclient-nm-hook diff --git a/README.md b/README.md index f6b60ff..aa67bbf 100644 --- a/README.md +++ b/README.md @@ -1,32 +1,52 @@ # GlobalProtect-openconnect -A GUI for GlobalProtect VPN, based on OpenConnect, supports the SSO authentication method. Inspired by [gp-saml-gui](https://github.com/dlenski/gp-saml-gui). +A modern GlobalProtect VPN client for Linux, built on OpenConnect with full support for SSO authentication. This project provides both command-line and graphical interfaces for seamless VPN connectivity.

- +

+> **Inspired by** [gp-saml-gui](https://github.com/dlenski/gp-saml-gui) + +## Table of Contents + +- [Features](#features) +- [Usage](#usage) + - [Command-Line Interface](#command-line-interface) + - [Graphical User Interface](#graphical-user-interface) +- [Installation](#installation) + - [Debian / Ubuntu](#debian--ubuntu) + - [Arch Linux / Manjaro](#arch-linux--manjaro) + - [Fedora 38+ / Rawhide](#fedora-38--rawhide) + - [openSUSE Leap 15.6+ / Tumbleweed](#opensuse-leap-156--tumbleweed) + - [Other RPM-based Distributions](#other-rpm-based-distributions) + - [Gentoo](#gentoo) + - [NixOS](#nixos) + - [Other Distributions](#other-distributions) +- [Building from Source](#building-from-source) +- [Frequently Asked Questions](#frequently-asked-questions) +- [License](#license) + ## Features -- [x] Better Linux support -- [x] Support both CLI and GUI -- [x] Support both SSO and non-SSO authentication -- [x] Support the FIDO2 authentication (e.g., YubiKey) -- [x] Support authentication using default browser -- [x] Support client certificate authentication -- [x] Support multiple portals -- [x] Support gateway selection -- [x] Support connect gateway directly -- [x] Support auto-connect on startup -- [x] Support system tray icon +- **Cross-Platform Linux Support** – Optimized for various Linux distributions +- **Dual Interface** – Available as both CLI and GUI applications +- **Flexible Authentication** – Supports SSO, non-SSO, FIDO2 (e.g., YubiKey), and client certificate authentication +- **Browser Integration** – Authenticate using your default browser or any specified browser +- **Multi-Portal Support** – Connect to multiple portals and gateways +- **Direct Gateway Connection** – Bypass portal selection when needed +- **Auto-Connect** – Automatically connect on system startup +- **System Tray Integration** – Convenient system tray icon (requires [gnome-shell-extension-appindicator](https://extensions.gnome.org/extension/615/appindicator-support/) on GNOME) ## Usage -### CLI +### Command-Line Interface -The CLI version is always free and open source in this repo. It has almost the same features as the GUI version. +The CLI version is fully open source and feature-rich, providing nearly identical functionality to the GUI version. -``` +#### Basic Commands + +```bash Usage: gpclient [OPTIONS] Commands: @@ -36,54 +56,66 @@ Commands: help Print this message or the help of the given subcommand(s) Options: - --fix-openssl Get around the OpenSSL `unsafe legacy renegotiation` error - --ignore-tls-errors Ignore the TLS errors + --fix-openssl Get around the OpenSSL 'unsafe legacy renegotiation' error + --ignore-tls-errors Ignore TLS errors -h, --help Print help -V, --version Print version - -See 'gpclient help ' for more information on a specific command. ``` -To use the external browser for authentication with the CLI version, you need to use the following command: +> **Tip:** Use `gpclient help ` for detailed information on a specific command. + +#### External Browser Authentication + +For browser-based authentication with the CLI: + +**Method 1:** Using sudo with environment preservation: +```bash +sudo -E gpclient connect --browser +``` + +**Method 2:** Using authentication piping: +```bash +gpauth --browser 2>/dev/null | sudo gpclient connect --cookie-on-stdin +``` + +**Browser Options:** +- Use `--browser ` to specify a browser (e.g., `firefox`, `chrome`) +- Use `--browser remote` for headless servers – this provides a URL you can access from another machine to complete authentication + +### Graphical User Interface + +The GUI application provides an intuitive interface for managing VPN connections. Launch it from your application menu or via the terminal: ```bash -sudo -E gpclient connect --browser default +gpclient launch-gui ``` -Or you can try the following command if the above command does not work: - -```bash -gpauth --browser default 2>/dev/null | sudo gpclient connect --cookie-on-stdin -``` - -You can specify the browser with the `--browser ` option, e.g., `--browser firefox`, `--browser chrome`, etc. Use `--browser remote` to use a remote browser for authentication, this will give you a URL you can access on a separate computer with a browser to complete authentication. Useful for headless servers. - -### GUI - -The GUI version is also available after you installed it. You can launch it from the application menu or run `gpclient launch-gui` in the terminal. - > [!Note] > -> The GUI version is partially open source. Its background service is open sourced in this repo as [gpservice](./apps/gpservice/). The GUI part is a wrapper of the background service, which is not open sourced. +> The GUI version is partially open source. The background service ([gpservice](./apps/gpservice/)) is open source, while the GUI wrapper is proprietary. ## Installation -### Debian/Ubuntu based distributions +### Debian / Ubuntu -#### Install from PPA +#### Option 1: Install from PPA (Recommended) -``` +```bash sudo add-apt-repository ppa:yuezk/globalprotect-openconnect +sudo apt-get update sudo apt-get install globalprotect-openconnect ``` > [!Note] > -> For Linux Mint, you might need to import the GPG key with: `sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7937C393082992E5D6E4A60453FC26B43838D761` if you encountered an error `gpg: keyserver receive failed: General error`. +> **For Linux Mint users:** If you encounter a GPG key error, import the key manually: +> ```bash +> sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7937C393082992E5D6E4A60453FC26B43838D761 +> ``` -#### Install from deb package +#### Option 2: Install from DEB Package -Download the latest deb package from [releases](https://github.com/yuezk/GlobalProtect-openconnect/releases) page. Then install it with `apt`: +Download the latest `.deb` package from the [releases](https://github.com/yuezk/GlobalProtect-openconnect/releases) page, then install: ```bash sudo apt install --fix-broken globalprotect-openconnect_*.deb @@ -91,44 +123,60 @@ sudo apt install --fix-broken globalprotect-openconnect_*.deb ### Arch Linux / Manjaro -#### Install from AUR +#### Option 1: Install from AUR -Install from AUR: [globalprotect-openconnect-git](https://aur.archlinux.org/packages/globalprotect-openconnect-git/) +Package: [globalprotect-openconnect-git](https://aur.archlinux.org/packages/globalprotect-openconnect-git/) + +You can install it using an AUR helper like [`yay`](https://github.com/Jguer/yay): ```bash yay -S globalprotect-openconnect-git ``` -#### Install from package +#### Option 2: Install from the Official Extra Repository -Download the latest package from [releases](https://github.com/yuezk/GlobalProtect-openconnect/releases) page. Then install it with `pacman`: +The package is also available in the official Arch Linux Extra repository. + +Package: [globalprotect-openconnect](https://archlinux.org/packages/extra/x86_64/globalprotect-openconnect/) + +> [!Note] +> +> Since the official package does not include the system tray support dependency, you need to install `libappindicator` manually: + +```bash +sudo pacman -S libappindicator globalprotect-openconnect +``` + +#### Option 3: Install from Package + +Download the latest package from the [releases](https://github.com/yuezk/GlobalProtect-openconnect/releases) page, then install: ```bash sudo pacman -U globalprotect-openconnect-*.pkg.tar.zst ``` -### Fedora 38 and later / Fedora Rawhide +### Fedora 38+ / Rawhide #### Install from COPR -The package is available on [COPR](https://copr.fedorainfracloud.org/coprs/yuezk/globalprotect-openconnect/) for various RPM-based distributions. You can install it with the following commands: +The package is available on [COPR](https://copr.fedorainfracloud.org/coprs/yuezk/globalprotect-openconnect/) for RPM-based distributions: ```bash sudo dnf copr enable yuezk/globalprotect-openconnect sudo dnf install globalprotect-openconnect ``` -### openSUSE Leap 15.6 / openSUSE Tumbleweed +### openSUSE Leap 15.6+ / Tumbleweed #### Install from OBS (openSUSE Build Service) -The package is also available on [OBS](https://build.opensuse.org/package/show/home:yuezk/globalprotect-openconnect) for various RPM-based distributions. You can follow the instructions [on this page](https://software.opensuse.org//download.html?project=home%3Ayuezk&package=globalprotect-openconnect) to install it. +Packages are available on the [openSUSE Build Service](https://build.opensuse.org/package/show/home:yuezk/globalprotect-openconnect). Follow the [installation instructions](https://software.opensuse.org//download.html?project=home%3Ayuezk&package=globalprotect-openconnect) for your distribution. -### Other RPM-based distributions +### Other RPM-based Distributions -#### Install from RPM package +#### Install from RPM Package -Download the latest RPM package from [releases](https://github.com/yuezk/GlobalProtect-openconnect/releases) page. +Download the latest RPM package from the [releases](https://github.com/yuezk/GlobalProtect-openconnect/releases) page: ```bash sudo rpm -i globalprotect-openconnect-*.rpm @@ -136,130 +184,166 @@ sudo rpm -i globalprotect-openconnect-*.rpm ### Gentoo -It is available via `guru` and `lamdness` overlays. +Available via the `guru` and `lamdness` overlays: ```bash sudo eselect repository enable guru -sudo emerge -r guru sync -sudo emerge -av net-vpn/GlobalProtect-openconnect +sudo emerge --sync guru +sudo emerge --ask --verbose net-vpn/GlobalProtect-openconnect ``` ### NixOS -This repo includes a flake for NixOS. You can add the following to your `flake.nix`: +This repository includes a flake for NixOS integration. -```nix -{ - inputs = { - # ... other inputs - globalprotect-openconnect.url = "github:yuezk/GlobalProtect-openconnect"; - }; +#### Installation Steps - outputs = { nixpkgs, ... }@inputs: { - nixosConfigurations. = nixpkgs.lib.nixosSystem { - specialArgs = { inherit inputs; }; - modules = [ - ./configuration.nix +1. Add the flake to your `flake.nix`: + + ```nix + { + inputs = { + # ... other inputs + globalprotect-openconnect.url = "github:yuezk/GlobalProtect-openconnect"; + }; + + outputs = { nixpkgs, ... }@inputs: { + nixosConfigurations. = nixpkgs.lib.nixosSystem { + specialArgs = { inherit inputs; }; + modules = [ + ./configuration.nix + ]; + }; + }; + } + ``` + +2. Add the package to your `configuration.nix`: + + ```nix + { config, pkgs, inputs, ... }: + + { + # ... other configurations + environment.systemPackages = with pkgs; [ + # ... other packages + ] ++ [ + inputs.globalprotect-openconnect.packages.${pkgs.system}.default ]; - }; - }; -} -``` + } + ``` -Then add `globalprotect-openconnect` to your `environment.systemPackages` in `configuration.nix`: +3. Apply the changes: -```nix -{ config, pkgs, inputs, ... }: + ```bash + sudo nixos-rebuild switch + ``` -{ - # ... other configurations - environment.systemPackages = with pkgs; [ - # ... other packages - ] ++ [ - inputs.globalprotect-openconnect.packages.${pkgs.system}.default - ]; -} -``` +### Other Distributions -Finally, run `sudo nixos-rebuild switch` to apply the changes. +#### Manual Installation -### Other distributions +1. **Install dependencies:** + - `webkit2gtk` + - `libsecret` + - `libayatana-appindicator` or `libappindicator-gtk3` -- Install `openconnect >= 8.20`, `webkit2gtk`, `libsecret`, `libayatana-appindicator` or `libappindicator-gtk3`. -- Download `globalprotect-openconnect_${version}_${arch}.bin.tar.xz` from [releases](https://github.com/yuezk/GlobalProtect-openconnect/releases) page. -- Extract the tarball with `tar -xJf globalprotect-openconnect_${version}_${arch}.bin.tar.xz`. -- Run `sudo make install` to install the client. +2. **Download and extract:** + Download `globalprotect-openconnect_${version}_${arch}.bin.tar.xz` from the [releases](https://github.com/yuezk/GlobalProtect-openconnect/releases) page: + ```bash + tar -xJf globalprotect-openconnect_${version}_${arch}.bin.tar.xz + ``` -## Build from source +3. **Install:** + ```bash + sudo make install + ``` -You can build the client from source using either a devcontainer (recommended) or a local setup. +## Building from Source -### Option 1: Using DevContainer (Recommended) +You can build the application from source using either a DevContainer (recommended) or a local development environment. -This project includes a devcontainer configuration that provides a consistent build environment with all dependencies pre-installed. +### Method 1: Using DevContainer (Recommended) + +This project includes a DevContainer configuration that provides a consistent, reproducible build environment with all dependencies pre-installed. #### Prerequisites - [Docker](https://docs.docker.com/get-docker/) -- [VS Code](https://code.visualstudio.com/) with [Dev Containers extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) (optional, for IDE support) +- [Visual Studio Code](https://code.visualstudio.com/) (optional, for IDE support) +- [Dev Containers extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) (if using VS Code) #### Build Steps -1. Clone the repository and submodules: +1. **Clone the repository:** ```bash git clone https://github.com/yuezk/GlobalProtect-openconnect.git cd GlobalProtect-openconnect git submodule update --init --recursive ``` -2. Build the devcontainer image: +2. **Build the DevContainer image:** ```bash docker build -t gpoc-devcontainer .devcontainer/ ``` -3. Build the project: +3. **Build the project:** ```bash docker run --privileged --cap-add=NET_ADMIN --device=/dev/net/tun \ -v "$(pwd)":/workspace -w /workspace gpoc-devcontainer \ bash -c "export PATH=/usr/local/cargo/bin:\$PATH && make build" ``` -4. The built binaries will be available in `target/release/`: - - `gpclient` - CLI client - - `gpservice` - Background service - - `gpauth` - Authentication helper - - `gpgui-helper` - GUI helper +4. **Locate build artifacts:** -#### Alternative: VS Code DevContainer + The compiled binaries will be available in `target/release/`: + - `gpclient` – CLI client + - `gpservice` – Background service + - `gpauth` – Authentication helper + - `gpgui-helper` – GUI helper + +#### Alternative: Using VS Code 1. Open the project in VS Code -2. When prompted, click "Reopen in Container" or run the command "Dev Containers: Reopen in Container" -3. Once the container is built and running, open a terminal in VS Code and run: +2. When prompted, click "Reopen in Container" (or run **Dev Containers: Reopen in Container**) +3. Once the container is ready, open a terminal and run: ```bash make build ``` -### Option 2: Local Build +### Method 2: Local Development Build #### Prerequisites -- [Install Rust 1.85 or later](https://www.rust-lang.org/tools/install) -- Install Tauri dependencies: https://tauri.app/start/prerequisites/ -- Install `perl` -- Install `openconnect >= 8.20` and `libopenconnect-dev` (or `openconnect-devel` on RPM-based distributions) -- Install `pkexec`, `gnome-keyring` (or `pam_kwallet` on KDE) -- Install `nodejs` and `pnpm` (optional only if you downloaded the source tarball from the release page and run with the `BUILD_FE=0` flag, see below) +- [Rust 1.85 or later](https://www.rust-lang.org/tools/install) +- [Tauri dependencies](https://tauri.app/start/prerequisites/) +- `libopenconnect-dev` (or `openconnect-devel` on RPM-based systems) +- `pkexec` and `gnome-keyring` (or `pam_kwallet` on KDE) +- `nodejs` and `pnpm` (optional if using pre-built release tarballs with `BUILD_FE=0`) #### Build Steps -1. Download the source code tarball from [releases](https://github.com/yuezk/GlobalProtect-openconnect/releases) page. Choose `globalprotect-openconnect-${version}.tar.gz`. -2. Extract the tarball with `tar -xzf globalprotect-openconnect-${version}.tar.gz`. -3. Enter the source directory and run `make build BUILD_FE=0` to build the client. -4. Run `sudo make install` to install the client. (Note, `DESTDIR` is not supported) +1. **Download source code:** -### Testing the Build + Download `globalprotect-openconnect-${version}.tar.gz` from the [releases](https://github.com/yuezk/GlobalProtect-openconnect/releases) page. -After building, you can test the CLI client: +2. **Extract and build:** + ```bash + tar -xzf globalprotect-openconnect-${version}.tar.gz + cd globalprotect-openconnect-${version} + make build BUILD_FE=0 + ``` + +3. **Install:** + ```bash + sudo make install + ``` + + > **Note:** `DESTDIR` is not currently supported. + +### Testing Your Build + +Verify the CLI client is working correctly: ```bash ./target/release/gpclient --help @@ -267,36 +351,48 @@ After building, you can test the CLI client: ### Build Options -- `BUILD_GUI=0` - Disable GUI components (CLI only) -- `BUILD_FE=0` - Skip frontend build (use pre-built assets) -- `OFFLINE=1` - Build in offline mode using vendored dependencies +- `BUILD_GUI=0` – Build CLI components only (excludes GUI) +- `BUILD_FE=0` – Skip frontend build (uses pre-built assets) +- `OFFLINE=1` – Build in offline mode using vendored dependencies -## FAQ +## Frequently Asked Questions -1. How to deal with error `Secure Storage not ready` +### Q: How do I resolve the "Secure Storage not ready" error? - Try upgrade the client to `2.2.0` or later, which will use a file-based storage as a fallback. +**Solution 1:** Update to version 2.2.0 or later, which includes a file-based storage fallback. - You need to install the `gnome-keyring` package, and restart the system (See [#321](https://github.com/yuezk/GlobalProtect-openconnect/issues/321), [#316](https://github.com/yuezk/GlobalProtect-openconnect/issues/316)). +**Solution 2:** Install the `gnome-keyring` package and restart your system. -2. How to deal with error `(gpauth:18869): Gtk-WARNING **: 10:33:37.566: cannot open display:` +See related issues: [#321](https://github.com/yuezk/GlobalProtect-openconnect/issues/321), [#316](https://github.com/yuezk/GlobalProtect-openconnect/issues/316) - If you encounter this error when using the CLI version, try to run the command with `sudo -E` (See [#316](https://github.com/yuezk/GlobalProtect-openconnect/issues/316)). +### Q: How do I fix the "cannot open display" error when using CLI? -## About Trial +If you encounter `(gpauth:18869): Gtk-WARNING **: 10:33:37.566: cannot open display:`, try running the command with `sudo -E`: -The CLI version is always free, while the GUI version is paid. There are two trial modes for the GUI version: +```bash +sudo -E gpclient connect +``` -1. 10-day trial: You can use the GUI stable release for 10 days after the installation. -2. 14-day trial: Each beta release has a fresh trial period (at most 14 days) after released. +See related issue: [#316](https://github.com/yuezk/GlobalProtect-openconnect/issues/316) -## License +## Licensing -- crate [gpapi](./crates/gpapi): [MIT](./crates/gpapi/LICENSE) -- crate [openconnect](./crates/openconnect): [GPL-3.0](./crates/openconnect/LICENSE) -- crate [common](./crates/common): [GPL-3.0](./crates/common/LICENSE) -- crate [auth](./crates/auth): [GPL-3.0](./crates/auth/LICENSE) -- app [gpservice](./apps/gpservice): [GPL-3.0](./apps/gpservice/LICENSE) -- app [gpclient](./apps/gpclient): [GPL-3.0](./apps/gpclient/LICENSE) -- app [gpauth](./apps/gpauth): [GPL-3.0](./apps/gpauth/LICENSE) -- app [gpgui-helper](./apps/gpgui-helper): [GPL-3.0](./apps/gpgui-helper/LICENSE) +### Trial and Pricing + +The **CLI version** is completely free and open source. +The **GUI version** is a paid application with a **10-day trial period** after installation. + +### Open Source Licenses + +This project consists of multiple components, each with its own license: + +| Component | Type | License | +|-----------|------|---------| +| [gpapi](./crates/gpapi) | Crate | [MIT](./crates/gpapi/LICENSE) | +| [openconnect](./crates/openconnect) | Crate | [GPL-3.0](./crates/openconnect/LICENSE) | +| [common](./crates/common) | Crate | [GPL-3.0](./crates/common/LICENSE) | +| [auth](./crates/auth) | Crate | [GPL-3.0](./crates/auth/LICENSE) | +| [gpservice](./apps/gpservice) | Application | [GPL-3.0](./apps/gpservice/LICENSE) | +| [gpclient](./apps/gpclient) | Application | [GPL-3.0](./apps/gpclient/LICENSE) | +| [gpauth](./apps/gpauth) | Application | [GPL-3.0](./apps/gpauth/LICENSE) | +| [gpgui-helper](./apps/gpgui-helper) | Application | [GPL-3.0](./apps/gpgui-helper/LICENSE) | diff --git a/apps/gpclient/Cargo.toml b/apps/gpclient/Cargo.toml index bd57745..9db9105 100644 --- a/apps/gpclient/Cargo.toml +++ b/apps/gpclient/Cargo.toml @@ -12,6 +12,8 @@ gpapi = { path = "../../crates/gpapi", features = ["clap"] } openconnect = { path = "../../crates/openconnect" } anyhow.workspace = true +askama.workspace = true +chrono.workspace = true clap.workspace = true env_logger.workspace = true inquire = "0.9" @@ -19,11 +21,14 @@ log.workspace = true tokio = { workspace = true, features = ["rt-multi-thread"] } sysinfo.workspace = true serde_json.workspace = true +serde_urlencoded.workspace = true whoami.workspace = true tempfile.workspace = true reqwest.workspace = true directories.workspace = true compile-time.workspace = true +netdev.workspace = true +xmltree.workspace = true [features] default = ["webview-auth"] diff --git a/apps/gpclient/src/cli.rs b/apps/gpclient/src/cli.rs index 443e53c..cff6aa1 100644 --- a/apps/gpclient/src/cli.rs +++ b/apps/gpclient/src/cli.rs @@ -3,7 +3,7 @@ use std::{env::temp_dir, fs::File, str::FromStr}; use anyhow::bail; use clap::{Parser, Subcommand}; use gpapi::{ - clap::{handle_error, Args, InfoLevelVerbosity}, + clap::{Args, InfoLevelVerbosity, handle_error}, utils::openssl, }; use log::info; @@ -12,10 +12,11 @@ use tempfile::NamedTempFile; use tokio::fs; use crate::{ + GP_CLIENT_LOCK_FILE, connect::{ConnectArgs, ConnectHandler}, disconnect::{DisconnectArgs, DisconnectHandler}, + hip::{HipArgs, HipHandler}, launch_gui::{LaunchGuiArgs, LaunchGuiHandler}, - GP_CLIENT_LOCK_FILE, }; const VERSION: &str = concat!(env!("CARGO_PKG_VERSION"), " (", compile_time::date_str!(), ")"); @@ -34,6 +35,8 @@ enum CliCommand { Disconnect(DisconnectArgs), #[command(about = "Launch the GUI")] LaunchGui(LaunchGuiArgs), + #[command(about = "Generate HIP report")] + Hip(HipArgs), } #[derive(Parser)] @@ -132,6 +135,7 @@ impl Cli { CliCommand::Connect(args) => ConnectHandler::new(args, &shared_args).handle().await, CliCommand::Disconnect(args) => DisconnectHandler::new(args).handle().await, CliCommand::LaunchGui(args) => LaunchGuiHandler::new(args).handle().await, + CliCommand::Hip(args) => HipHandler::new(args).handle().await, } } } diff --git a/apps/gpclient/src/connect.rs b/apps/gpclient/src/connect.rs index c4208f5..87daeab 100644 --- a/apps/gpclient/src/connect.rs +++ b/apps/gpclient/src/connect.rs @@ -1,8 +1,8 @@ -use std::{cell::RefCell, fs, sync::Arc}; +use std::{borrow::Cow, cell::RefCell, fs, sync::Arc}; use anyhow::bail; use clap::Args; -use common::constants::GP_USER_AGENT; +use common::constants::{GP_CLIENT_VERSION, GP_USER_AGENT}; use gpapi::{ auth::SamlAuthResult, clap::{ToVerboseArg, args::Os}, @@ -15,7 +15,7 @@ use gpapi::{ auth_launcher::SamlAuthLauncher, users::{get_non_root_user, get_user_by_name}, }, - utils::{request::RequestIdentityError, shutdown_signal}, + utils::{host_utils, request::RequestIdentityError, shutdown_signal}, }; use inquire::{Password, PasswordDisplayMode, Select, Text}; use log::{info, warn}; @@ -86,8 +86,11 @@ pub(crate) struct ConnectArgs { #[arg(long, help = "Do not ask for IPv6 connectivity")] disable_ipv6: bool, - #[arg(long, default_value = GP_USER_AGENT, help = "The user agent to use")] - user_agent: String, + #[arg( + long, + help = "The user agent to use, if not specified, it will be generated based on the OS and client version" + )] + user_agent: Option, #[arg(long, value_enum, default_value_t = ConnectArgs::default_os())] os: Os, @@ -130,18 +133,23 @@ pub(crate) struct ConnectArgs { impl ConnectArgs { fn default_os() -> Os { - if cfg!(target_os = "macos") { Os::Mac } else { Os::Linux } + #[cfg(target_os = "macos")] + return Os::Mac; + #[cfg(target_os = "windows")] + return Os::Windows; + #[cfg(not(any(target_os = "macos", target_os = "windows")))] + return Os::Linux; } - fn os_version(&self) -> String { + fn os_version(&self) -> &str { if let Some(os_version) = self.os_version.as_deref() { - return os_version.to_string(); + return os_version; } match self.os { - Os::Linux => format!("Linux {}", whoami::distro()), - Os::Windows => String::from("Microsoft Windows 11 Pro , 64-bit"), - Os::Mac => String::from("Apple Mac OS X 13.4.0"), + Os::Linux => host_utils::get_linux_os_string(), + Os::Windows => host_utils::get_windows_os_string(), + Os::Mac => host_utils::get_macos_os_string(), } } } @@ -163,11 +171,25 @@ impl<'a> ConnectHandler<'a> { } } + fn user_agent(&self) -> Cow<'_, str> { + if let Some(user_agent) = self.args.user_agent.as_deref() { + Cow::Borrowed(user_agent) + } else { + let client_version = self.args.client_version.as_deref().unwrap_or(GP_CLIENT_VERSION); + Cow::Owned(format!( + "{}/{} ({})", + GP_USER_AGENT, + client_version, + self.args.os_version() + )) + } + } + fn build_gp_params(&self) -> GpParams { GpParams::builder() - .user_agent(&self.args.user_agent) + .user_agent(&self.user_agent()) .client_os(ClientOs::from(&self.args.os)) - .os_version(self.args.os_version()) + .os_version(self.args.os_version().to_owned()) .ignore_tls_errors(self.shared_args.ignore_tls_errors) .certificate(self.args.certificate.clone()) .sslkey(self.args.sslkey.clone()) @@ -331,14 +353,16 @@ impl<'a> ConnectHandler<'a> { (false, None) }; - let os = ClientOs::from(&self.args.os).to_openconnect_os().to_string(); + let os = ClientOs::from(&self.args.os).to_openconnect_os().to_owned(); + let os_version = self.args.os_version().to_owned(); let client_version = client_version.map(|s| s.to_owned()); let vpn = Vpn::builder(gateway, cookie) .script(self.args.script.clone()) .interface(self.args.interface.clone()) .script_tun(self.args.script_tun) - .user_agent(self.args.user_agent.clone()) + .user_agent(self.user_agent().into_owned()) .os(Some(os)) + .os_version(Some(os_version)) .client_version(client_version) .certificate(self.args.certificate.clone()) .sslkey(self.args.sslkey.clone()) @@ -394,10 +418,11 @@ impl<'a> ConnectHandler<'a> { let os_version = self.args.os_version(); let verbose = self.shared_args.verbose.to_verbose_arg(); + let user_agent = self.user_agent(); let auth_launcher = SamlAuthLauncher::new(&self.args.server) .gateway(is_gateway) .saml_request(prelogin.saml_request()) - .user_agent(&self.args.user_agent) + .user_agent(&user_agent) .os(self.args.os.as_str()) .os_version(Some(&os_version)) .fix_openssl(self.shared_args.fix_openssl) diff --git a/apps/gpclient/src/hip.rs b/apps/gpclient/src/hip.rs new file mode 100644 index 0000000..f68acb5 --- /dev/null +++ b/apps/gpclient/src/hip.rs @@ -0,0 +1,374 @@ +use askama::Template; +use clap::Args; +use gpapi::{clap::args::Os, utils::host_utils}; +use log::debug; +use std::collections::HashMap; +use xmltree::Element; + +#[derive(Template)] +#[template(path = "hip_report.xml")] +struct HipReportTemplate<'a> { + client_version: &'a str, + generate_time: String, + day: String, + month: String, + year: String, + user_name: &'a str, + host_info: HostInfo<'a>, + md5: &'a str, +} + +/// Host information for HIP reporting +struct HostInfo<'a> { + /// Common for all OSes, e.g., "Apple", "Microsoft", "Linux" + os_vendor: &'a str, + /// Common for all OSes, e.g., "Linux Ubuntu 20.04", "Apple Mac OS X 10.15.7", etc. + os_version: &'a str, + /// Only for macOS and Windows + host_id: String, + /// Common for all OSes + host_name: String, + /// Only for macOS and Windows, e.g., "10.15.7", "10.0.19044.2130" + software_version: &'a str, + domain: String, + network_interfaces: Vec, +} + +impl<'a> HostInfo<'a> { + /// Get the first available IPv4 address from network interfaces + pub fn default_ipv4(&self) -> &str { + self + .network_interfaces + .first() + .and_then(|iface| iface.ipv4.as_deref()) + .unwrap_or_default() + } + + /// Get the first available IPv6 address from network interfaces + pub fn default_ipv6(&self) -> &str { + self + .network_interfaces + .first() + .and_then(|iface| iface.ipv6.as_deref()) + .unwrap_or_default() + } +} + +/// Network interface information +#[derive(Clone)] +struct NetworkInterface { + name: String, + description: String, + mac_address: Option, + ipv4: Option, + ipv6: Option, +} + +impl NetworkInterface { + /// Create a new network interface with basic information + fn new(name: String, description: String) -> Self { + Self { + name, + description, + mac_address: None, + ipv4: None, + ipv6: None, + } + } + + /// Set MAC address + fn with_mac(mut self, mac: Option) -> Self { + self.mac_address = mac; + self + } + + /// Set IPv4 address + fn with_ipv4(mut self, ipv4: Option) -> Self { + self.ipv4 = ipv4; + self + } + + /// Set IPv6 address + fn with_ipv6(mut self, ipv6: Option) -> Self { + self.ipv6 = ipv6; + self + } +} + +#[derive(Args)] +pub(crate) struct HipArgs { + #[arg(long, help = "The GP client version, e.g., 6.2.4-49")] + client_version: String, + + #[arg(long, value_enum, help = "The client OS")] + client_os: Os, + + #[arg(long, help = "The OS version string, e.g., Apple Mac OS X 10.15.7")] + os_version: String, + + #[arg(long, help = "The authentication cookie")] + cookie: String, + + #[arg(long, help = "The client IPv4 address")] + client_ip: Option, + + #[arg(long, help = "The client IPv6 address")] + client_ipv6: Option, + + #[arg(long, help = "The MD5 digest to encode into the HIP report")] + md5: String, +} + +pub(crate) struct HipHandler<'a> { + args: &'a HipArgs, +} + +impl<'a> HipHandler<'a> { + pub(crate) fn new(args: &'a HipArgs) -> Self { + Self { args } + } + + pub(crate) async fn handle(&self) -> anyhow::Result<()> { + let cookie_params = self.parse_cookie(); + let report = self.generate_hip_report(&cookie_params)?; + + debug!("Generated HIP report:\n{}", report); + println!("{}", report); + + Ok(()) + } + + fn parse_cookie(&self) -> HashMap { + // Parse URL-encoded cookie string using serde_urlencoded + serde_urlencoded::from_str(&self.args.cookie).unwrap_or_default() + } + + /// Generate the complete HIP report XML + fn generate_hip_report(&self, cookie_params: &HashMap) -> anyhow::Result { + let (generate_time, day, month, year) = get_current_time_components(); + let user_name = cookie_params.get("user").map(|s| s.as_str()).unwrap_or(""); + let host_info = self.collect_host_info(cookie_params); + + let template = HipReportTemplate { + client_version: &self.args.client_version, + generate_time, + day, + month, + year, + user_name, + host_info, + md5: &self.args.md5, + }; + + let report = template.render()?; + format_xml(&report) + } + + /// Collect host information based on the client OS + fn collect_host_info(&self, cookie_params: &'a HashMap) -> HostInfo<'a> { + let collector = HostInfoCollector::new(self.args, cookie_params); + + match self.args.client_os { + Os::Linux => collector.collect_linux(), + Os::Mac => collector.collect_macos(), + Os::Windows => collector.collect_windows(), + } + } +} + +// ============================================================================ +// Host Information Collector +// ============================================================================ + +/// Helper struct for collecting host information +struct HostInfoCollector<'a> { + args: &'a HipArgs, + cookie_params: &'a HashMap, +} + +impl<'a> HostInfoCollector<'a> { + fn new(args: &'a HipArgs, cookie_params: &'a HashMap) -> Self { + Self { args, cookie_params } + } + + /// Get domain from cookie parameters + fn get_domain(&self) -> String { + self + .cookie_params + .get("domain") + .map(|s| s.to_string()) + .unwrap_or_default() + } + + /// Collect network interface information with fallback + fn collect_network_interface(&self) -> NetworkInterface { + match netdev::get_default_interface() { + Ok(iface) => NetworkInterface::new( + iface.name.clone(), + iface.description.unwrap_or_else(|| iface.name.clone()), + ) + .with_mac(iface.mac_addr.map(|mac| mac.address())) + .with_ipv4(iface.ipv4.first().map(|ip| ip.addr().to_string())) + .with_ipv6(iface.ipv6.first().map(|ip| ip.addr().to_string())), + + Err(_) => NetworkInterface::new("unknown".to_string(), "unknown".to_string()) + .with_ipv4(self.args.client_ip.clone()) + .with_ipv6(self.args.client_ipv6.clone()), + } + } + + /// Collect Linux-specific host information + fn collect_linux(&self) -> HostInfo<'a> { + let iface = self.collect_network_interface(); + + // Use the fixed interface name enp1s0f0 for Linux if it is not on Linux + let iface = NetworkInterface { + #[cfg(target_os = "linux")] + name: iface.name, + #[cfg(target_os = "linux")] + description: iface.description, + + #[cfg(not(target_os = "linux"))] + name: "enp1s0f0".to_string(), + #[cfg(not(target_os = "linux"))] + description: "enp1s0f0".to_string(), + + mac_address: iface.mac_address, + ipv4: iface.ipv4, + ipv6: iface.ipv6, + }; + + HostInfo { + os_vendor: "Linux", + os_version: &self.args.os_version, + host_id: host_utils::derive_uuid(&[]), + host_name: whoami::devicename(), + software_version: "", + domain: String::new(), + network_interfaces: vec![iface], + } + } + + /// Collect macOS-specific host information + fn collect_macos(&self) -> HostInfo<'a> { + let iface = self.collect_network_interface(); + // macOS use the mac address as host ID + let host_id = iface + .mac_address + .as_ref() + .map(|s| s.to_string()) + .unwrap_or_else(|| "00:00:00:00:00:00".to_string()); + + // Use the fixed interface name en0 for macOS if it is not on macOS + let iface = NetworkInterface { + #[cfg(target_os = "macos")] + name: iface.name, + #[cfg(target_os = "macos")] + description: iface.description, + + #[cfg(not(target_os = "macos"))] + name: "en0".to_string(), + #[cfg(not(target_os = "macos"))] + description: "en0".to_string(), + + mac_address: iface.mac_address, + ipv4: iface.ipv4, + ipv6: iface.ipv6, + }; + + HostInfo { + os_vendor: "Apple", + os_version: &self.args.os_version, + host_id, + host_name: whoami::devicename(), + software_version: host_utils::get_macos_version(), + domain: self.get_domain(), + network_interfaces: vec![iface], + } + } + + /// Collect Windows-specific host information + fn collect_windows(&self) -> HostInfo<'a> { + // Use the actual machine ID on Windows + #[cfg(target_os = "windows")] + let host_id = host_utils::get_machine_id().to_string(); + #[cfg(not(target_os = "windows"))] + let host_id = host_utils::derive_uuid(&[]); + + let iface = self.collect_network_interface(); + + // Use the fixed interface name if it is not on Windows + let iface = NetworkInterface { + #[cfg(target_os = "windows")] + name: iface.name, + #[cfg(target_os = "windows")] + description: iface.description, + + #[cfg(not(target_os = "windows"))] + name: derive_windows_network_name(&iface), + #[cfg(not(target_os = "windows"))] + description: "PANGP Virtual Ethernet Adapter Secure".to_string(), + + // mac address on windows should replace ':' with '-' + mac_address: iface.mac_address.map(|mac| mac.replace(':', "-")), + ipv4: iface.ipv4, + ipv6: iface.ipv6, + }; + + // Add the local loopback interface + let loopback_iface = NetworkInterface { + name: derive_windows_network_name(&iface), + description: "Software Loopback Interface 1".to_string(), + mac_address: Some(String::new()), + ipv4: Some("127.0.0.1".to_string()), + ipv6: Some("::1".to_string()), + }; + + let ifaces = vec![iface, loopback_iface]; + + HostInfo { + os_vendor: "Microsoft", + os_version: &self.args.os_version, + host_id, + host_name: whoami::devicename(), + software_version: host_utils::get_windows_version(), + domain: self.get_domain(), + network_interfaces: ifaces, + } + } +} + +// ============================================================================ +// Utility Functions +// ============================================================================ + +/// Get current time components for HIP report +fn get_current_time_components() -> (String, String, String, String) { + let now = chrono::Local::now(); + ( + now.format("%m/%d/%Y %H:%M:%S").to_string(), + now.format("%d").to_string(), + now.format("%m").to_string(), + now.format("%Y").to_string(), + ) +} + +/// Format XML string with proper indentation +fn format_xml(xml_str: &str) -> anyhow::Result { + let xml = Element::parse(xml_str.as_bytes())?; + + let config = xmltree::EmitterConfig::new().perform_indent(true); + let mut xml_buf = Vec::new(); + xml.write_with_config(&mut xml_buf, config)?; + + Ok(String::from_utf8(xml_buf)?) +} + +fn derive_windows_network_name(iface: &NetworkInterface) -> String { + let seeds = [ + iface.mac_address.as_deref().unwrap_or("00:00:00:00:00:00"), + iface.name.as_str(), + ]; + + format!("{{{}}}", host_utils::derive_uuid(&seeds).to_uppercase()) +} diff --git a/apps/gpclient/src/main.rs b/apps/gpclient/src/main.rs index 41343ed..eacc565 100644 --- a/apps/gpclient/src/main.rs +++ b/apps/gpclient/src/main.rs @@ -1,6 +1,7 @@ mod cli; mod connect; mod disconnect; +mod hip; mod launch_gui; pub(crate) const GP_CLIENT_LOCK_FILE: &str = "/var/run/gpclient.lock"; diff --git a/apps/gpclient/templates/hip_report.xml b/apps/gpclient/templates/hip_report.xml new file mode 100644 index 0000000..9a4970b --- /dev/null +++ b/apps/gpclient/templates/hip_report.xml @@ -0,0 +1,277 @@ + + + {{ md5 }} + {{ user_name }} + {{ host_info.domain }}.internal + {{ host_info.host_name }} + {{ host_info.host_id }} + {{ host_info.default_ipv4() }} + {{ host_info.default_ipv6() }} + {{ generate_time }} + 4 + + + {{ client_version }} + {{ host_info.os_version }} + {{ host_info.os_vendor }} + {{ host_info.domain }}.internal + {{ host_info.host_name }} + {{ host_info.host_id }} + + {% for iface in host_info.network_interfaces.iter() -%} + + {{ iface.description }} + {% if let Some(mac) = iface.mac_address -%} + {{ mac }} + {% endif -%} + {% if let Some(ipv4) = iface.ipv4 -%} + + + + {% endif -%} + {% if let Some(ipv6) = iface.ipv6 -%} + + + + {% endif -%} + + {% endfor -%} + + + {% if host_info.os_vendor == "Microsoft" -%} + + + + + + + yes + {{ generate_time }} + + + + + + + no + n/a + + + + + + + + + + + yes + {{ generate_time }} + + + + + + + no + n/a + + + + + + + + + + + n/a + + + + + + + + + + + + + C:\\ + full + + + + + + + + + + + + + yes + + + + + + + + + + + yes + + + + + + + yes + + + + + + {% elif host_info.os_vendor == "Apple" -%} + + + + + + yes + n/a + + + + + + yes + n/a + + + + + + + + + + n/a + + + + + + + + + + + + Macintosh HD + encrypted + + + Data + encrypted + + + All + encrypted + + + + + + + + + + + + yes + + + + + + no + + + + + + + + + + yes + + + + + + + {% elif host_info.os_vendor == "Linux" -%} + + + + + + + + + + + + + + + / + encrypted + + + + + + + + + + + + + no + + + + + + + n/a + + + + + + + + + + + yes + + + + + + {% endif -%} + + + + + diff --git a/apps/gpgui-helper/dist/assets/main-BQzTuCOL.js b/apps/gpgui-helper/dist/assets/main-BQzTuCOL.js new file mode 100644 index 0000000..2bc36e8 --- /dev/null +++ b/apps/gpgui-helper/dist/assets/main-BQzTuCOL.js @@ -0,0 +1,167 @@ +function Av(l,i){for(var c=0;co[s]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const d of s)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&o(m)}).observe(document,{childList:!0,subtree:!0});function c(s){const d={};return s.integrity&&(d.integrity=s.integrity),s.referrerPolicy&&(d.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?d.credentials="include":s.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function o(s){if(s.ep)return;s.ep=!0;const d=c(s);fetch(s.href,d)}})();function xv(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var hs={exports:{}},Gi={};var m0;function zv(){if(m0)return Gi;m0=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function c(o,s,d){var m=null;if(d!==void 0&&(m=""+d),s.key!==void 0&&(m=""+s.key),"key"in s){d={};for(var g in s)g!=="key"&&(d[g]=s[g])}else d=s;return s=d.ref,{$$typeof:l,type:o,key:m,ref:s!==void 0?s:null,props:d}}return Gi.Fragment=i,Gi.jsx=c,Gi.jsxs=c,Gi}var y0;function Ov(){return y0||(y0=1,hs.exports=zv()),hs.exports}var lt=Ov(),ms={exports:{}},Yi={},ys={exports:{}},ps={};var p0;function Mv(){return p0||(p0=1,(function(l){function i(O,$){var et=O.length;O.push($);t:for(;0>>1,wt=O[rt];if(0>>1;rts(W,et))tts(ot,W)?(O[rt]=ot,O[tt]=et,rt=tt):(O[rt]=W,O[j]=et,rt=j);else if(tts(ot,et))O[rt]=ot,O[tt]=et,rt=tt;else break t}}return $}function s(O,$){var et=O.sortIndex-$.sortIndex;return et!==0?et:O.id-$.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;l.unstable_now=function(){return d.now()}}else{var m=Date,g=m.now();l.unstable_now=function(){return m.now()-g}}var v=[],p=[],A=1,E=null,D=3,q=!1,R=!1,_=!1,Y=!1,J=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;function X(O){for(var $=c(p);$!==null;){if($.callback===null)o(p);else if($.startTime<=O)o(p),$.sortIndex=$.expirationTime,i(v,$);else break;$=c(p)}}function U(O){if(_=!1,X(O),!R)if(c(v)!==null)R=!0,G||(G=!0,y());else{var $=c(p);$!==null&&at(U,$.startTime-O)}}var G=!1,V=-1,dt=5,ht=-1;function gt(){return Y?!0:!(l.unstable_now()-htO&>());){var rt=E.callback;if(typeof rt=="function"){E.callback=null,D=E.priorityLevel;var wt=rt(E.expirationTime<=O);if(O=l.unstable_now(),typeof wt=="function"){E.callback=wt,X(O),$=!0;break e}E===c(v)&&o(v),X(O)}else o(v);E=c(v)}if(E!==null)$=!0;else{var S=c(p);S!==null&&at(U,S.startTime-O),$=!1}}break t}finally{E=null,D=et,q=!1}$=void 0}}finally{$?y():G=!1}}}var y;if(typeof P=="function")y=function(){P(ct)};else if(typeof MessageChannel<"u"){var k=new MessageChannel,Q=k.port2;k.port1.onmessage=ct,y=function(){Q.postMessage(null)}}else y=function(){J(ct,0)};function at(O,$){V=J(function(){O(l.unstable_now())},$)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(O){O.callback=null},l.unstable_forceFrameRate=function(O){0>O||125rt?(O.sortIndex=et,i(p,O),c(v)===null&&O===c(p)&&(_?(F(V),V=-1):_=!0,at(U,et-rt))):(O.sortIndex=wt,i(v,O),R||q||(R=!0,G||(G=!0,y()))),O},l.unstable_shouldYield=gt,l.unstable_wrapCallback=function(O){var $=D;return function(){var et=D;D=$;try{return O.apply(this,arguments)}finally{D=et}}}})(ps)),ps}var g0;function Rv(){return g0||(g0=1,ys.exports=Mv()),ys.exports}var gs={exports:{}},st={};var v0;function wv(){if(v0)return st;v0=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),D=Symbol.iterator;function q(S){return S===null||typeof S!="object"?null:(S=D&&S[D]||S["@@iterator"],typeof S=="function"?S:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,Y={};function J(S,j,W){this.props=S,this.context=j,this.refs=Y,this.updater=W||R}J.prototype.isReactComponent={},J.prototype.setState=function(S,j){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,j,"setState")},J.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function F(){}F.prototype=J.prototype;function P(S,j,W){this.props=S,this.context=j,this.refs=Y,this.updater=W||R}var X=P.prototype=new F;X.constructor=P,_(X,J.prototype),X.isPureReactComponent=!0;var U=Array.isArray;function G(){}var V={H:null,A:null,T:null,S:null},dt=Object.prototype.hasOwnProperty;function ht(S,j,W){var tt=W.ref;return{$$typeof:l,type:S,key:j,ref:tt!==void 0?tt:null,props:W}}function gt(S,j){return ht(S.type,j,S.props)}function ct(S){return typeof S=="object"&&S!==null&&S.$$typeof===l}function y(S){var j={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(W){return j[W]})}var k=/\/+/g;function Q(S,j){return typeof S=="object"&&S!==null&&S.key!=null?y(""+S.key):j.toString(36)}function at(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(G,G):(S.status="pending",S.then(function(j){S.status==="pending"&&(S.status="fulfilled",S.value=j)},function(j){S.status==="pending"&&(S.status="rejected",S.reason=j)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function O(S,j,W,tt,ot){var pt=typeof S;(pt==="undefined"||pt==="boolean")&&(S=null);var Et=!1;if(S===null)Et=!0;else switch(pt){case"bigint":case"string":case"number":Et=!0;break;case"object":switch(S.$$typeof){case l:case i:Et=!0;break;case A:return Et=S._init,O(Et(S._payload),j,W,tt,ot)}}if(Et)return ot=ot(S),Et=tt===""?"."+Q(S,0):tt,U(ot)?(W="",Et!=null&&(W=Et.replace(k,"$&/")+"/"),O(ot,j,W,"",function(pa){return pa})):ot!=null&&(ct(ot)&&(ot=gt(ot,W+(ot.key==null||S&&S.key===ot.key?"":(""+ot.key).replace(k,"$&/")+"/")+Et)),j.push(ot)),1;Et=0;var re=tt===""?".":tt+":";if(U(S))for(var Qt=0;Qt"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),vs.exports=Dv(),vs.exports}var C0;function Nv(){if(C0)return Yi;C0=1;var l=Rv(),i=ks(),c=Bv();function o(t){var e="https://react.dev/errors/"+t;if(1wt||(t.current=rt[wt],rt[wt]=null,wt--)}function W(t,e){wt++,rt[wt]=t.current,t.current=e}var tt=S(null),ot=S(null),pt=S(null),Et=S(null);function re(t,e){switch(W(pt,e),W(ot,t),W(tt,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?jm(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=jm(e),t=Lm(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}j(tt),W(tt,t)}function Qt(){j(tt),j(ot),j(pt)}function pa(t){t.memoizedState!==null&&W(Et,t);var e=tt.current,n=Lm(e,t.type);e!==n&&(W(ot,t),W(tt,n))}function Xa(t){ot.current===t&&(j(tt),j(ot)),Et.current===t&&(j(Et),Hi._currentValue=et)}var Xl,iu;function en(t){if(Xl===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Xl=e&&e[1]||"",iu=-1)":-1u||b[a]!==z[u]){var B=` +`+b[a].replace(" at new "," at ");return t.displayName&&B.includes("")&&(B=B.replace("",t.displayName)),B}while(1<=a&&0<=u);break}}}finally{$l=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?en(n):""}function $a(t,e){switch(t.tag){case 26:case 27:case 5:return en(t.type);case 16:return en("Lazy");case 13:return t.child!==e&&e!==null?en("Suspense Fallback"):en("Suspense");case 19:return en("SuspenseList");case 0:case 15:return Ql(t.type,!1);case 11:return Ql(t.type.render,!1);case 1:return Ql(t.type,!0);case 31:return en("Activity");default:return""}}function qn(t){try{var e="",n=null;do e+=$a(t,n),n=t,t=t.return;while(t);return e}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}var Zl=Object.prototype.hasOwnProperty,Qa=l.unstable_scheduleCallback,kl=l.unstable_cancelCallback,ft=l.unstable_shouldYield,lp=l.unstable_requestPaint,ze=l.unstable_now,ip=l.unstable_getCurrentPriorityLevel,yf=l.unstable_ImmediatePriority,pf=l.unstable_UserBlockingPriority,uu=l.unstable_NormalPriority,up=l.unstable_LowPriority,gf=l.unstable_IdlePriority,rp=l.log,cp=l.unstable_setDisableYieldValue,Kl=null,Oe=null;function Gn(t){if(typeof rp=="function"&&cp(t),Oe&&typeof Oe.setStrictMode=="function")try{Oe.setStrictMode(Kl,t)}catch{}}var Me=Math.clz32?Math.clz32:fp,op=Math.log,sp=Math.LN2;function fp(t){return t>>>=0,t===0?32:31-(op(t)/sp|0)|0}var ru=256,cu=262144,ou=4194304;function ga(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function su(t,e,n){var a=t.pendingLanes;if(a===0)return 0;var u=0,r=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var h=a&134217727;return h!==0?(a=h&~r,a!==0?u=ga(a):(f&=h,f!==0?u=ga(f):n||(n=h&~t,n!==0&&(u=ga(n))))):(h=a&~r,h!==0?u=ga(h):f!==0?u=ga(f):n||(n=a&~t,n!==0&&(u=ga(n)))),u===0?0:e!==0&&e!==u&&(e&r)===0&&(r=u&-u,n=e&-e,r>=n||r===32&&(n&4194048)!==0)?e:u}function Jl(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function dp(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function vf(){var t=ou;return ou<<=1,(ou&62914560)===0&&(ou=4194304),t}function tc(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Wl(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function hp(t,e,n,a,u,r){var f=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var h=t.entanglements,b=t.expirationTimes,z=t.hiddenUpdates;for(n=f&~n;0"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var bp=/[\n"\\]/g;function Ve(t){return t.replace(bp,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function uc(t,e,n,a,u,r,f,h){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ye(e)):t.value!==""+Ye(e)&&(t.value=""+Ye(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?rc(t,f,Ye(e)):n!=null?rc(t,f,Ye(n)):a!=null&&t.removeAttribute("value"),u==null&&r!=null&&(t.defaultChecked=!!r),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.name=""+Ye(h):t.removeAttribute("name")}function wf(t,e,n,a,u,r,f,h){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.type=r),e!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||e!=null)){ic(t);return}n=n!=null?""+Ye(n):"",e=e!=null?""+Ye(e):n,h||e===t.value||(t.value=e),t.defaultValue=e}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=h?t.checked:!!a,t.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),ic(t)}function rc(t,e,n){e==="number"&&hu(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Fa(t,e,n,a){if(t=t.options,e){e={};for(var u=0;u"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),dc=!1;if(vn)try{var ti={};Object.defineProperty(ti,"passive",{get:function(){dc=!0}}),window.addEventListener("test",ti,ti),window.removeEventListener("test",ti,ti)}catch{dc=!1}var Vn=null,hc=null,yu=null;function Lf(){if(yu)return yu;var t,e=hc,n=e.length,a,u="value"in Vn?Vn.value:Vn.textContent,r=u.length;for(t=0;t=ai),$f=" ",Qf=!1;function Zf(t,e){switch(t){case"keyup":return kp.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var el=!1;function Jp(t,e){switch(t){case"compositionend":return kf(e);case"keypress":return e.which!==32?null:(Qf=!0,$f);case"textInput":return t=e.data,t===$f&&Qf?null:t;default:return null}}function Wp(t,e){if(el)return t==="compositionend"||!vc&&Zf(t,e)?(t=Lf(),yu=hc=Vn=null,el=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=a}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=ed(n)}}function ad(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?ad(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function ld(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=hu(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=hu(t.document)}return e}function Tc(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var lg=vn&&"documentMode"in document&&11>=document.documentMode,nl=null,Cc=null,ri=null,Ec=!1;function id(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ec||nl==null||nl!==hu(a)||(a=nl,"selectionStart"in a&&Tc(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),ri&&ui(ri,a)||(ri=a,a=cr(Cc,"onSelect"),0>=f,u-=f,rn=1<<32-Me(e)+u|n<yt?(Tt=nt,nt=null):Tt=nt.sibling;var At=M(C,nt,x[yt],H);if(At===null){nt===null&&(nt=Tt);break}t&&nt&&At.alternate===null&&e(C,nt),T=r(At,T,yt),_t===null?it=At:_t.sibling=At,_t=At,nt=Tt}if(yt===x.length)return n(C,nt),Ct&&Sn(C,yt),it;if(nt===null){for(;ytyt?(Tt=nt,nt=null):Tt=nt.sibling;var sa=M(C,nt,At.value,H);if(sa===null){nt===null&&(nt=Tt);break}t&&nt&&sa.alternate===null&&e(C,nt),T=r(sa,T,yt),_t===null?it=sa:_t.sibling=sa,_t=sa,nt=Tt}if(At.done)return n(C,nt),Ct&&Sn(C,yt),it;if(nt===null){for(;!At.done;yt++,At=x.next())At=L(C,At.value,H),At!==null&&(T=r(At,T,yt),_t===null?it=At:_t.sibling=At,_t=At);return Ct&&Sn(C,yt),it}for(nt=a(nt);!At.done;yt++,At=x.next())At=w(nt,C,yt,At.value,H),At!==null&&(t&&At.alternate!==null&&nt.delete(At.key===null?yt:At.key),T=r(At,T,yt),_t===null?it=At:_t.sibling=At,_t=At);return t&&nt.forEach(function(_v){return e(C,_v)}),Ct&&Sn(C,yt),it}function Lt(C,T,x,H){if(typeof x=="object"&&x!==null&&x.type===_&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case q:t:{for(var it=x.key;T!==null;){if(T.key===it){if(it=x.type,it===_){if(T.tag===7){n(C,T.sibling),H=u(T,x.props.children),H.return=C,C=H;break t}}else if(T.elementType===it||typeof it=="object"&&it!==null&&it.$$typeof===dt&&Oa(it)===T.type){n(C,T.sibling),H=u(T,x.props),hi(H,x),H.return=C,C=H;break t}n(C,T);break}else e(C,T);T=T.sibling}x.type===_?(H=Ea(x.props.children,C.mode,H,x.key),H.return=C,C=H):(H=Au(x.type,x.key,x.props,null,C.mode,H),hi(H,x),H.return=C,C=H)}return f(C);case R:t:{for(it=x.key;T!==null;){if(T.key===it)if(T.tag===4&&T.stateNode.containerInfo===x.containerInfo&&T.stateNode.implementation===x.implementation){n(C,T.sibling),H=u(T,x.children||[]),H.return=C,C=H;break t}else{n(C,T);break}else e(C,T);T=T.sibling}H=Rc(x,C.mode,H),H.return=C,C=H}return f(C);case dt:return x=Oa(x),Lt(C,T,x,H)}if(at(x))return I(C,T,x,H);if(y(x)){if(it=y(x),typeof it!="function")throw Error(o(150));return x=it.call(x),ut(C,T,x,H)}if(typeof x.then=="function")return Lt(C,T,Du(x),H);if(x.$$typeof===P)return Lt(C,T,Ou(C,x),H);Bu(C,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,T!==null&&T.tag===6?(n(C,T.sibling),H=u(T,x),H.return=C,C=H):(n(C,T),H=Mc(x,C.mode,H),H.return=C,C=H),f(C)):n(C,T)}return function(C,T,x,H){try{di=0;var it=Lt(C,T,x,H);return hl=null,it}catch(nt){if(nt===dl||nt===Ru)throw nt;var _t=we(29,nt,null,C.mode);return _t.lanes=H,_t.return=C,_t}}}var Ra=Od(!0),Md=Od(!1),kn=!1;function Vc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Kn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Jn(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(xt&2)!==0){var u=a.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),a.pending=e,e=_u(t),dd(t,null,n),e}return Eu(t,a,e,n),_u(t)}function mi(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,Sf(t,n)}}function $c(t,e){var n=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var u=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?u=r=f:r=r.next=f,n=n.next}while(n!==null);r===null?u=r=e:r=r.next=e}else u=r=e;n={baseState:a.baseState,firstBaseUpdate:u,lastBaseUpdate:r,shared:a.shared,callbacks:a.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var Qc=!1;function yi(){if(Qc){var t=fl;if(t!==null)throw t}}function pi(t,e,n,a){Qc=!1;var u=t.updateQueue;kn=!1;var r=u.firstBaseUpdate,f=u.lastBaseUpdate,h=u.shared.pending;if(h!==null){u.shared.pending=null;var b=h,z=b.next;b.next=null,f===null?r=z:f.next=z,f=b;var B=t.alternate;B!==null&&(B=B.updateQueue,h=B.lastBaseUpdate,h!==f&&(h===null?B.firstBaseUpdate=z:h.next=z,B.lastBaseUpdate=b))}if(r!==null){var L=u.baseState;f=0,B=z=b=null,h=r;do{var M=h.lane&-536870913,w=M!==h.lane;if(w?(St&M)===M:(a&M)===M){M!==0&&M===sl&&(Qc=!0),B!==null&&(B=B.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});t:{var I=t,ut=h;M=e;var Lt=n;switch(ut.tag){case 1:if(I=ut.payload,typeof I=="function"){L=I.call(Lt,L,M);break t}L=I;break t;case 3:I.flags=I.flags&-65537|128;case 0:if(I=ut.payload,M=typeof I=="function"?I.call(Lt,L,M):I,M==null)break t;L=E({},L,M);break t;case 2:kn=!0}}M=h.callback,M!==null&&(t.flags|=64,w&&(t.flags|=8192),w=u.callbacks,w===null?u.callbacks=[M]:w.push(M))}else w={lane:M,tag:h.tag,payload:h.payload,callback:h.callback,next:null},B===null?(z=B=w,b=L):B=B.next=w,f|=M;if(h=h.next,h===null){if(h=u.shared.pending,h===null)break;w=h,h=w.next,w.next=null,u.lastBaseUpdate=w,u.shared.pending=null}}while(!0);B===null&&(b=L),u.baseState=b,u.firstBaseUpdate=z,u.lastBaseUpdate=B,r===null&&(u.shared.lanes=0),ta|=f,t.lanes=f,t.memoizedState=L}}function Rd(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function wd(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;tr?r:8;var f=O.T,h={};O.T=h,so(t,!1,e,n);try{var b=u(),z=O.S;if(z!==null&&z(h,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var B=hg(b,a);bi(t,e,B,He(t))}else bi(t,e,a,He(t))}catch(L){bi(t,e,{then:function(){},status:"rejected",reason:L},He())}finally{$.p=r,f!==null&&h.types!==null&&(f.types=h.types),O.T=f}}function bg(){}function co(t,e,n,a){if(t.tag!==5)throw Error(o(476));var u=oh(t).queue;ch(t,u,e,et,n===null?bg:function(){return sh(t),n(a)})}function oh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:et,baseState:et,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_n,lastRenderedState:et},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_n,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function sh(t){var e=oh(t);e.next===null&&(e=t.alternate.memoizedState),bi(t,e.next.queue,{},He())}function oo(){return se(Hi)}function fh(){return Ft().memoizedState}function dh(){return Ft().memoizedState}function Sg(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=He();t=Kn(n);var a=Jn(e,t,n);a!==null&&(Ae(a,e,n),mi(a,e,n)),e={cache:Lc()},t.payload=e;return}e=e.return}}function Tg(t,e,n){var a=He();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Xu(t)?mh(e,n):(n=zc(t,e,n,a),n!==null&&(Ae(n,t,a),yh(n,e,a)))}function hh(t,e,n){var a=He();bi(t,e,n,a)}function bi(t,e,n,a){var u={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xu(t))mh(e,u);else{var r=t.alternate;if(t.lanes===0&&(r===null||r.lanes===0)&&(r=e.lastRenderedReducer,r!==null))try{var f=e.lastRenderedState,h=r(f,n);if(u.hasEagerState=!0,u.eagerState=h,Re(h,f))return Eu(t,e,u,0),Gt===null&&Cu(),!1}catch{}if(n=zc(t,e,u,a),n!==null)return Ae(n,t,a),yh(n,e,a),!0}return!1}function so(t,e,n,a){if(a={lane:2,revertLane:Xo(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Xu(t)){if(e)throw Error(o(479))}else e=zc(t,n,a,2),e!==null&&Ae(e,t,2)}function Xu(t){var e=t.alternate;return t===mt||e!==null&&e===mt}function mh(t,e){yl=Hu=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function yh(t,e,n){if((n&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,Sf(t,n)}}var Si={readContext:se,use:qu,useCallback:Zt,useContext:Zt,useEffect:Zt,useImperativeHandle:Zt,useLayoutEffect:Zt,useInsertionEffect:Zt,useMemo:Zt,useReducer:Zt,useRef:Zt,useState:Zt,useDebugValue:Zt,useDeferredValue:Zt,useTransition:Zt,useSyncExternalStore:Zt,useId:Zt,useHostTransitionStatus:Zt,useFormState:Zt,useActionState:Zt,useOptimistic:Zt,useMemoCache:Zt,useCacheRefresh:Zt};Si.useEffectEvent=Zt;var ph={readContext:se,use:qu,useCallback:function(t,e){return ve().memoizedState=[t,e===void 0?null:e],t},useContext:se,useEffect:Id,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Yu(4194308,4,ah.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Yu(4194308,4,t,e)},useInsertionEffect:function(t,e){Yu(4,2,t,e)},useMemo:function(t,e){var n=ve();e=e===void 0?null:e;var a=t();if(wa){Gn(!0);try{t()}finally{Gn(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=ve();if(n!==void 0){var u=n(e);if(wa){Gn(!0);try{n(e)}finally{Gn(!1)}}}else u=e;return a.memoizedState=a.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},a.queue=t,t=t.dispatch=Tg.bind(null,mt,t),[a.memoizedState,t]},useRef:function(t){var e=ve();return t={current:t},e.memoizedState=t},useState:function(t){t=ao(t);var e=t.queue,n=hh.bind(null,mt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:uo,useDeferredValue:function(t,e){var n=ve();return ro(n,t,e)},useTransition:function(){var t=ao(!1);return t=ch.bind(null,mt,t.queue,!0,!1),ve().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=mt,u=ve();if(Ct){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),Gt===null)throw Error(o(349));(St&127)!==0||jd(a,e,n)}u.memoizedState=n;var r={value:n,getSnapshot:e};return u.queue=r,Id(qd.bind(null,a,r,t),[t]),a.flags|=2048,gl(9,{destroy:void 0},Ld.bind(null,a,r,n,e),null),n},useId:function(){var t=ve(),e=Gt.identifierPrefix;if(Ct){var n=cn,a=rn;n=(a&~(1<<32-Me(a)-1)).toString(32)+n,e="_"+e+"R_"+n,n=ju++,0<\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?r.multiple=!0:a.size&&(r.size=a.size);break;default:r=typeof a.is=="string"?f.createElement(u,{is:a.is}):f.createElement(u)}}r[ce]=e,r[be]=a;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)r.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=r;t:switch(de(r,u,a),u){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&xn(e)}}return Vt(e),Ao(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&xn(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(o(166));if(t=pt.current,cl(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,u=oe,u!==null)switch(u.tag){case 27:case 5:a=u.memoizedProps}t[ce]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Um(t.nodeValue,n)),t||Qn(e,!0)}else t=or(t).createTextNode(a),t[ce]=e,e.stateNode=t}return Vt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(a=cl(e),n!==null){if(t===null){if(!a)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[ce]=e}else _a(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Vt(e),t=!1}else n=Nc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Be(e),e):(Be(e),null);if((e.flags&128)!==0)throw Error(o(558))}return Vt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=cl(e),a!==null&&a.dehydrated!==null){if(t===null){if(!u)throw Error(o(318));if(u=e.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(o(317));u[ce]=e}else _a(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Vt(e),u=!1}else u=Nc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return e.flags&256?(Be(e),e):(Be(e),null)}return Be(e),(e.flags&128)!==0?(e.lanes=n,e):(n=a!==null,t=t!==null&&t.memoizedState!==null,n&&(a=e.child,u=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(u=a.alternate.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==u&&(a.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Ku(e,e.updateQueue),Vt(e),null);case 4:return Qt(),t===null&&ko(e.stateNode.containerInfo),Vt(e),null;case 10:return Cn(e.type),Vt(e),null;case 19:if(j(Wt),a=e.memoizedState,a===null)return Vt(e),null;if(u=(e.flags&128)!==0,r=a.rendering,r===null)if(u)Ci(a,!1);else{if(kt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(r=Uu(t),r!==null){for(e.flags|=128,Ci(a,!1),t=r.updateQueue,e.updateQueue=t,Ku(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)hd(n,t),n=n.sibling;return W(Wt,Wt.current&1|2),Ct&&Sn(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&ze()>Iu&&(e.flags|=128,u=!0,Ci(a,!1),e.lanes=4194304)}else{if(!u)if(t=Uu(r),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,Ku(e,t),Ci(a,!0),a.tail===null&&a.tailMode==="hidden"&&!r.alternate&&!Ct)return Vt(e),null}else 2*ze()-a.renderingStartTime>Iu&&n!==536870912&&(e.flags|=128,u=!0,Ci(a,!1),e.lanes=4194304);a.isBackwards?(r.sibling=e.child,e.child=r):(t=a.last,t!==null?t.sibling=r:e.child=r,a.last=r)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ze(),t.sibling=null,n=Wt.current,W(Wt,u?n&1|2:n&1),Ct&&Sn(e,a.treeForkCount),t):(Vt(e),null);case 22:case 23:return Be(e),kc(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(n&536870912)!==0&&(e.flags&128)===0&&(Vt(e),e.subtreeFlags&6&&(e.flags|=8192)):Vt(e),n=e.updateQueue,n!==null&&Ku(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==n&&(e.flags|=2048),t!==null&&j(za),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),Cn(It),Vt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function xg(t,e){switch(Dc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Cn(It),Qt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Xa(e),null;case 31:if(e.memoizedState!==null){if(Be(e),e.alternate===null)throw Error(o(340));_a()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Be(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));_a()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return j(Wt),null;case 4:return Qt(),null;case 10:return Cn(e.type),null;case 22:case 23:return Be(e),kc(),t!==null&&j(za),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Cn(It),null;case 25:return null;default:return null}}function Gh(t,e){switch(Dc(e),e.tag){case 3:Cn(It),Qt();break;case 26:case 27:case 5:Xa(e);break;case 4:Qt();break;case 31:e.memoizedState!==null&&Be(e);break;case 13:Be(e);break;case 19:j(Wt);break;case 10:Cn(e.type);break;case 22:case 23:Be(e),kc(),t!==null&&j(za);break;case 24:Cn(It)}}function Ei(t,e){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var u=a.next;n=u;do{if((n.tag&t)===t){a=void 0;var r=n.create,f=n.inst;a=r(),f.destroy=a}n=n.next}while(n!==u)}}catch(h){Bt(e,e.return,h)}}function Pn(t,e,n){try{var a=e.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var r=u.next;a=r;do{if((a.tag&t)===t){var f=a.inst,h=f.destroy;if(h!==void 0){f.destroy=void 0,u=e;var b=n,z=h;try{z()}catch(B){Bt(u,b,B)}}}a=a.next}while(a!==r)}}catch(B){Bt(e,e.return,B)}}function Yh(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{wd(e,n)}catch(a){Bt(t,t.return,a)}}}function Vh(t,e,n){n.props=Da(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(a){Bt(t,e,a)}}function _i(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof n=="function"?t.refCleanup=n(a):n.current=a}}catch(u){Bt(t,e,u)}}function on(t,e){var n=t.ref,a=t.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(u){Bt(t,e,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(u){Bt(t,e,u)}else n.current=null}function Xh(t){var e=t.type,n=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break t;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(u){Bt(t,t.return,u)}}function xo(t,e,n){try{var a=t.stateNode;Kg(a,t.type,n,e),a[be]=e}catch(u){Bt(t,t.return,u)}}function $h(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ia(t.type)||t.tag===4}function zo(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||$h(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&ia(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Oo(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=gn));else if(a!==4&&(a===27&&ia(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Oo(t,e,n),t=t.sibling;t!==null;)Oo(t,e,n),t=t.sibling}function Ju(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(a!==4&&(a===27&&ia(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Ju(t,e,n),t=t.sibling;t!==null;)Ju(t,e,n),t=t.sibling}function Qh(t){var e=t.stateNode,n=t.memoizedProps;try{for(var a=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);de(e,a,n),e[ce]=t,e[be]=n}catch(r){Bt(t,t.return,r)}}var zn=!1,ne=!1,Mo=!1,Zh=typeof WeakSet=="function"?WeakSet:Set,ue=null;function zg(t,e){if(t=t.containerInfo,Wo=pr,t=ld(t),Tc(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var u=a.anchorOffset,r=a.focusNode;a=a.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break t}var f=0,h=-1,b=-1,z=0,B=0,L=t,M=null;e:for(;;){for(var w;L!==n||u!==0&&L.nodeType!==3||(h=f+u),L!==r||a!==0&&L.nodeType!==3||(b=f+a),L.nodeType===3&&(f+=L.nodeValue.length),(w=L.firstChild)!==null;)M=L,L=w;for(;;){if(L===t)break e;if(M===n&&++z===u&&(h=f),M===r&&++B===a&&(b=f),(w=L.nextSibling)!==null)break;L=M,M=L.parentNode}L=w}n=h===-1||b===-1?null:{start:h,end:b}}else n=null}n=n||{start:0,end:0}}else n=null;for(Fo={focusedElem:t,selectionRange:n},pr=!1,ue=e;ue!==null;)if(e=ue,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ue=t;else for(;ue!==null;){switch(e=ue,r=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n title"))),de(r,a,n),r[ce]=t,ie(r),a=r;break t;case"link":var f=Pm("link","href",u).get(a+(n.href||""));if(f){for(var h=0;hLt&&(f=Lt,Lt=ut,ut=f);var C=nd(h,ut),T=nd(h,Lt);if(C&&T&&(w.rangeCount!==1||w.anchorNode!==C.node||w.anchorOffset!==C.offset||w.focusNode!==T.node||w.focusOffset!==T.offset)){var x=L.createRange();x.setStart(C.node,C.offset),w.removeAllRanges(),ut>Lt?(w.addRange(x),w.extend(T.node,T.offset)):(x.setEnd(T.node,T.offset),w.addRange(x))}}}}for(L=[],w=h;w=w.parentNode;)w.nodeType===1&&L.push({element:w,left:w.scrollLeft,top:w.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;hn?32:n,O.T=null,n=Ho,Ho=null;var r=na,f=Dn;if(le=0,Cl=na=null,Dn=0,(xt&6)!==0)throw Error(o(331));var h=xt;if(xt|=4,am(r.current),tm(r,r.current,f,n),xt=h,Ri(0,!1),Oe&&typeof Oe.onPostCommitFiberRoot=="function")try{Oe.onPostCommitFiberRoot(Kl,r)}catch{}return!0}finally{$.p=u,O.T=a,Tm(t,e)}}function Em(t,e,n){e=$e(n,e),e=yo(t.stateNode,e,2),t=Jn(t,e,2),t!==null&&(Wl(t,2),sn(t))}function Bt(t,e,n){if(t.tag===3)Em(t,t,n);else for(;e!==null;){if(e.tag===3){Em(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ea===null||!ea.has(a))){t=$e(n,t),n=_h(2),a=Jn(e,n,2),a!==null&&(Ah(n,a,e,t),Wl(a,2),sn(a));break}}e=e.return}}function Go(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new Rg;var u=new Set;a.set(e,u)}else u=a.get(e),u===void 0&&(u=new Set,a.set(e,u));u.has(n)||(Do=!0,u.add(n),t=Ug.bind(null,t,e,n),e.then(t,t))}function Ug(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Gt===t&&(St&n)===n&&(kt===4||kt===3&&(St&62914560)===St&&300>ze()-Pu?(xt&2)===0&&El(t,0):Bo|=n,Tl===St&&(Tl=0)),sn(t)}function _m(t,e){e===0&&(e=vf()),t=Ca(t,e),t!==null&&(Wl(t,e),sn(t))}function Hg(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),_m(t,n)}function jg(t,e){var n=0;switch(t.tag){case 31:case 13:var a=t.stateNode,u=t.memoizedState;u!==null&&(n=u.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(e),_m(t,n)}function Lg(t,e){return Qa(t,e)}var ir=null,Al=null,Yo=!1,ur=!1,Vo=!1,la=0;function sn(t){t!==Al&&t.next===null&&(Al===null?ir=Al=t:Al=Al.next=t),ur=!0,Yo||(Yo=!0,Gg())}function Ri(t,e){if(!Vo&&ur){Vo=!0;do for(var n=!1,a=ir;a!==null;){if(t!==0){var u=a.pendingLanes;if(u===0)var r=0;else{var f=a.suspendedLanes,h=a.pingedLanes;r=(1<<31-Me(42|t)+1)-1,r&=u&~(f&~h),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,Om(a,r))}else r=St,r=su(a,a===Gt?r:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(r&3)===0||Jl(a,r)||(n=!0,Om(a,r));a=a.next}while(n);Vo=!1}}function qg(){Am()}function Am(){ur=Yo=!1;var t=0;la!==0&&Wg()&&(t=la);for(var e=ze(),n=null,a=ir;a!==null;){var u=a.next,r=xm(a,e);r===0?(a.next=null,n===null?ir=u:n.next=u,u===null&&(Al=n)):(n=a,(t!==0||(r&3)!==0)&&(ur=!0)),a=u}le!==0&&le!==5||Ri(t),la!==0&&(la=0)}function xm(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,u=t.expirationTimes,r=t.pendingLanes&-62914561;0h)break;var B=b.transferSize,L=b.initiatorType;B&&Hm(L)&&(b=b.responseEnd,f+=B*(b"u"?null:document;function Km(t,e,n){var a=xl;if(a&&typeof e=="string"&&e){var u=Ve(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),km.has(u)||(km.add(u),t={rel:t,crossOrigin:n,href:e},a.querySelector(u)===null&&(e=a.createElement("link"),de(e,"link",t),ie(e),a.head.appendChild(e)))}}function iv(t){Bn.D(t),Km("dns-prefetch",t,null)}function uv(t,e){Bn.C(t,e),Km("preconnect",t,e)}function rv(t,e,n){Bn.L(t,e,n);var a=xl;if(a&&t&&e){var u='link[rel="preload"][as="'+Ve(e)+'"]';e==="image"&&n&&n.imageSrcSet?(u+='[imagesrcset="'+Ve(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(u+='[imagesizes="'+Ve(n.imageSizes)+'"]')):u+='[href="'+Ve(t)+'"]';var r=u;switch(e){case"style":r=zl(t);break;case"script":r=Ol(t)}We.has(r)||(t=E({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),We.set(r,t),a.querySelector(u)!==null||e==="style"&&a.querySelector(Ni(r))||e==="script"&&a.querySelector(Ui(r))||(e=a.createElement("link"),de(e,"link",t),ie(e),a.head.appendChild(e)))}}function cv(t,e){Bn.m(t,e);var n=xl;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+Ve(a)+'"][href="'+Ve(t)+'"]',r=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Ol(t)}if(!We.has(r)&&(t=E({rel:"modulepreload",href:t},e),We.set(r,t),n.querySelector(u)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ui(r)))return}a=n.createElement("link"),de(a,"link",t),ie(a),n.head.appendChild(a)}}}function ov(t,e,n){Bn.S(t,e,n);var a=xl;if(a&&t){var u=Ja(a).hoistableStyles,r=zl(t);e=e||"default";var f=u.get(r);if(!f){var h={loading:0,preload:null};if(f=a.querySelector(Ni(r)))h.loading=5;else{t=E({rel:"stylesheet",href:t,"data-precedence":e},n),(n=We.get(r))&&ls(t,n);var b=f=a.createElement("link");ie(b),de(b,"link",t),b._p=new Promise(function(z,B){b.onload=z,b.onerror=B}),b.addEventListener("load",function(){h.loading|=1}),b.addEventListener("error",function(){h.loading|=2}),h.loading|=4,fr(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:h},u.set(r,f)}}}function sv(t,e){Bn.X(t,e);var n=xl;if(n&&t){var a=Ja(n).hoistableScripts,u=Ol(t),r=a.get(u);r||(r=n.querySelector(Ui(u)),r||(t=E({src:t,async:!0},e),(e=We.get(u))&&is(t,e),r=n.createElement("script"),ie(r),de(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(u,r))}}function fv(t,e){Bn.M(t,e);var n=xl;if(n&&t){var a=Ja(n).hoistableScripts,u=Ol(t),r=a.get(u);r||(r=n.querySelector(Ui(u)),r||(t=E({src:t,async:!0,type:"module"},e),(e=We.get(u))&&is(t,e),r=n.createElement("script"),ie(r),de(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(u,r))}}function Jm(t,e,n,a){var u=(u=pt.current)?sr(u):null;if(!u)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=zl(n.href),n=Ja(u).hoistableStyles,a=n.get(e),a||(a={type:"style",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=zl(n.href);var r=Ja(u).hoistableStyles,f=r.get(t);if(f||(u=u.ownerDocument||u,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(t,f),(r=u.querySelector(Ni(t)))&&!r._p&&(f.instance=r,f.state.loading=5),We.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},We.set(t,n),r||dv(u,t,n,f.state))),e&&a===null)throw Error(o(528,""));return f}if(e&&a!==null)throw Error(o(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Ol(n),n=Ja(u).hoistableScripts,a=n.get(e),a||(a={type:"script",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function zl(t){return'href="'+Ve(t)+'"'}function Ni(t){return'link[rel="stylesheet"]['+t+"]"}function Wm(t){return E({},t,{"data-precedence":t.precedence,precedence:null})}function dv(t,e,n,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),de(e,"link",n),ie(e),t.head.appendChild(e))}function Ol(t){return'[src="'+Ve(t)+'"]'}function Ui(t){return"script[async]"+t}function Fm(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Ve(n.href)+'"]');if(a)return e.instance=a,ie(a),a;var u=E({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),ie(a),de(a,"style",u),fr(a,n.precedence,t),e.instance=a;case"stylesheet":u=zl(n.href);var r=t.querySelector(Ni(u));if(r)return e.state.loading|=4,e.instance=r,ie(r),r;a=Wm(n),(u=We.get(u))&&ls(a,u),r=(t.ownerDocument||t).createElement("link"),ie(r);var f=r;return f._p=new Promise(function(h,b){f.onload=h,f.onerror=b}),de(r,"link",a),e.state.loading|=4,fr(r,n.precedence,t),e.instance=r;case"script":return r=Ol(n.src),(u=t.querySelector(Ui(r)))?(e.instance=u,ie(u),u):(a=n,(u=We.get(r))&&(a=E({},n),is(a,u)),t=t.ownerDocument||t,u=t.createElement("script"),ie(u),de(u,"link",a),t.head.appendChild(u),e.instance=u);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,fr(a,n.precedence,t));return e.instance}function fr(t,e,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=a.length?a[a.length-1]:null,r=u,f=0;f title"):null)}function hv(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function t0(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function mv(t,e,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var u=zl(a.href),r=e.querySelector(Ni(u));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=hr.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=r,ie(r);return}r=e.ownerDocument||e,a=Wm(a),(u=We.get(u))&&ls(a,u),r=r.createElement("link"),ie(r);var f=r;f._p=new Promise(function(h,b){f.onload=h,f.onerror=b}),de(r,"link",a),n.instance=r}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=hr.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var us=0;function yv(t,e){return t.stylesheets&&t.count===0&&yr(t,t.stylesheets),0us?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(u)}}:null}function hr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)yr(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var mr=null;function yr(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,mr=new Map,e.forEach(pv,t),mr=null,hr.call(t))}function pv(t,e){if(!(e.state.loading&4)){var n=mr.get(t);if(n)var a=n.get(null);else{n=new Map,mr.set(t,n);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),ms.exports=Nv(),ms.exports}var Hv=Uv();const Ji={black:"#000",white:"#fff"},Rl={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},wl={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Dl={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Bl={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Nl={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Vi={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},jv={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function qa(l,...i){const c=new URL(`https://mui.com/production-error/?code=${l}`);return i.forEach(o=>c.searchParams.append("args[]",o)),`Minified MUI error #${l}; visit ${c} for the full message.`}const Ks="$$material";function Nr(){return Nr=Object.assign?Object.assign.bind():function(l){for(var i=1;i0?he(Gl,--xe):0,ql--,ae===10&&(ql=1,Yr--),ae}function qe(){return ae=xe2||Fi(ae)>3?"":" "}function Fv(l,i){for(;--i&&qe()&&!(ae<48||ae>102||ae>57&&ae<65||ae>70&&ae<97););return Ii(l,xr()+(i<6&&yn()==32&&qe()==32))}function ws(l){for(;qe();)switch(ae){case l:return xe;case 34:case 39:l!==34&&l!==39&&ws(ae);break;case 40:l===41&&ws(l);break;case 92:qe();break}return xe}function Pv(l,i){for(;qe()&&l+ae!==57;)if(l+ae===84&&yn()===47)break;return"/*"+Ii(i,xe-1)+"*"+Gr(l===47?l:qe())}function Iv(l){for(;!Fi(yn());)qe();return Ii(l,xe)}function tb(l){return vy(Or("",null,null,null,[""],l=gy(l),0,[0],l))}function Or(l,i,c,o,s,d,m,g,v){for(var p=0,A=0,E=m,D=0,q=0,R=0,_=1,Y=1,J=1,F=0,P="",X=s,U=d,G=o,V=P;Y;)switch(R=F,F=qe()){case 40:if(R!=108&&he(V,E-1)==58){Rs(V+=Ot(zr(F),"&","&\f"),"&\f")!=-1&&(J=-1);break}case 34:case 39:case 91:V+=zr(F);break;case 9:case 10:case 13:case 32:V+=Wv(R);break;case 92:V+=Fv(xr()-1,7);continue;case 47:switch(yn()){case 42:case 47:Er(eb(Pv(qe(),xr()),i,c),v);break;default:V+="/"}break;case 123*_:g[p++]=dn(V)*J;case 125*_:case 59:case 0:switch(F){case 0:case 125:Y=0;case 59+A:J==-1&&(V=Ot(V,/\f/g,"")),q>0&&dn(V)-E&&Er(q>32?A0(V+";",o,c,E-1):A0(Ot(V," ","")+";",o,c,E-2),v);break;case 59:V+=";";default:if(Er(G=_0(V,i,c,p,A,s,g,P,X=[],U=[],E),d),F===123)if(A===0)Or(V,i,G,G,X,d,E,g,U);else switch(D===99&&he(V,3)===110?100:D){case 100:case 108:case 109:case 115:Or(l,G,G,o&&Er(_0(l,G,G,0,0,s,g,P,s,X=[],E),U),s,U,E,g,o?X:U);break;default:Or(V,G,G,G,[""],U,0,g,U)}}p=A=q=0,_=J=1,P=V="",E=m;break;case 58:E=1+dn(V),q=R;default:if(_<1){if(F==123)--_;else if(F==125&&_++==0&&Jv()==125)continue}switch(V+=Gr(F),F*_){case 38:J=A>0?1:(V+="\f",-1);break;case 44:g[p++]=(dn(V)-1)*J,J=1;break;case 64:yn()===45&&(V+=zr(qe())),D=yn(),A=E=dn(P=V+=Iv(xr())),F++;break;case 45:R===45&&dn(V)==2&&(_=0)}}return d}function _0(l,i,c,o,s,d,m,g,v,p,A){for(var E=s-1,D=s===0?d:[""],q=Fs(D),R=0,_=0,Y=0;R0?D[J]+" "+F:Ot(F,/&\f/g,D[J])))&&(v[Y++]=P);return Vr(l,i,c,s===0?Js:g,v,p,A)}function eb(l,i,c){return Vr(l,i,c,hy,Gr(Kv()),Wi(l,2,-2),0)}function A0(l,i,c,o){return Vr(l,i,c,Ws,Wi(l,0,o),Wi(l,o+1,-1),o)}function jl(l,i){for(var c="",o=Fs(l),s=0;s6)switch(he(l,i+1)){case 109:if(he(l,i+4)!==45)break;case 102:return Ot(l,/(.+:)(.+)-([^]+)/,"$1"+zt+"$2-$3$1"+Ur+(he(l,i+3)==108?"$3":"$2-$3"))+l;case 115:return~Rs(l,"stretch")?Sy(Ot(l,"stretch","fill-available"),i)+l:l}break;case 4949:if(he(l,i+1)!==115)break;case 6444:switch(he(l,dn(l)-3-(~Rs(l,"!important")&&10))){case 107:return Ot(l,":",":"+zt)+l;case 101:return Ot(l,/(.+:)([^;!]+)(;|!.+)?/,"$1"+zt+(he(l,14)===45?"inline-":"")+"box$3$1"+zt+"$2$3$1"+ge+"$2box$3")+l}break;case 5936:switch(he(l,i+11)){case 114:return zt+l+ge+Ot(l,/[svh]\w+-[tblr]{2}/,"tb")+l;case 108:return zt+l+ge+Ot(l,/[svh]\w+-[tblr]{2}/,"tb-rl")+l;case 45:return zt+l+ge+Ot(l,/[svh]\w+-[tblr]{2}/,"lr")+l}return zt+l+ge+l+l}return l}var sb=function(i,c,o,s){if(i.length>-1&&!i.return)switch(i.type){case Ws:i.return=Sy(i.value,i.length);break;case my:return jl([Xi(i,{value:Ot(i.value,"@","@"+zt)})],s);case Js:if(i.length)return kv(i.props,function(d){switch(Zv(d,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return jl([Xi(i,{props:[Ot(d,/:(read-\w+)/,":"+Ur+"$1")]})],s);case"::placeholder":return jl([Xi(i,{props:[Ot(d,/:(plac\w+)/,":"+zt+"input-$1")]}),Xi(i,{props:[Ot(d,/:(plac\w+)/,":"+Ur+"$1")]}),Xi(i,{props:[Ot(d,/:(plac\w+)/,ge+"input-$1")]})],s)}return""})}},fb=[sb],db=function(i){var c=i.key;if(c==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(_){var Y=_.getAttribute("data-emotion");Y.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var s=i.stylisPlugins||fb,d={},m,g=[];m=i.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+c+' "]'),function(_){for(var Y=_.getAttribute("data-emotion").split(" "),J=1;J=4;++o,s-=4)c=l.charCodeAt(o)&255|(l.charCodeAt(++o)&255)<<8|(l.charCodeAt(++o)&255)<<16|(l.charCodeAt(++o)&255)<<24,c=(c&65535)*1540483477+((c>>>16)*59797<<16),c^=c>>>24,i=(c&65535)*1540483477+((c>>>16)*59797<<16)^(i&65535)*1540483477+((i>>>16)*59797<<16);switch(s){case 3:i^=(l.charCodeAt(o+2)&255)<<16;case 2:i^=(l.charCodeAt(o+1)&255)<<8;case 1:i^=l.charCodeAt(o)&255,i=(i&65535)*1540483477+((i>>>16)*59797<<16)}return i^=i>>>13,i=(i&65535)*1540483477+((i>>>16)*59797<<16),((i^i>>>15)>>>0).toString(36)}var vb={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},bb=/[A-Z]|^ms/g,Sb=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Cy=function(i){return i.charCodeAt(1)===45},R0=function(i){return i!=null&&typeof i!="boolean"},Ts=by(function(l){return Cy(l)?l:l.replace(bb,"-$&").toLowerCase()}),w0=function(i,c){switch(i){case"animation":case"animationName":if(typeof c=="string")return c.replace(Sb,function(o,s,d){return hn={name:s,styles:d,next:hn},s})}return vb[i]!==1&&!Cy(i)&&typeof c=="number"&&c!==0?c+"px":c};function Pi(l,i,c){if(c==null)return"";var o=c;if(o.__emotion_styles!==void 0)return o;switch(typeof c){case"boolean":return"";case"object":{var s=c;if(s.anim===1)return hn={name:s.name,styles:s.styles,next:hn},s.name;var d=c;if(d.styles!==void 0){var m=d.next;if(m!==void 0)for(;m!==void 0;)hn={name:m.name,styles:m.styles,next:hn},m=m.next;var g=d.styles+";";return g}return Tb(l,i,c)}case"function":{if(l!==void 0){var v=hn,p=c(l);return hn=v,Pi(l,i,p)}break}}var A=c;if(i==null)return A;var E=i[A];return E!==void 0?E:A}function Tb(l,i,c){var o="";if(Array.isArray(c))for(var s=0;s96?Rb:wb},H0=function(i,c,o){var s;if(c){var d=c.shouldForwardProp;s=i.__emotion_forwardProp&&d?function(m){return i.__emotion_forwardProp(m)&&d(m)}:d}return typeof s!="function"&&o&&(s=i.__emotion_forwardProp),s},Db=function(i){var c=i.cache,o=i.serialized,s=i.isStringTag;return Ps(c,o,s),_y(function(){return Is(c,o,s)}),null},Bb=function l(i,c){var o=i.__emotion_real===i,s=o&&i.__emotion_base||i,d,m;c!==void 0&&(d=c.label,m=c.target);var g=H0(i,c,o),v=g||U0(s),p=!v("as");return function(){var A=arguments,E=o&&i.__emotion_styles!==void 0?i.__emotion_styles.slice(0):[];if(d!==void 0&&E.push("label:"+d+";"),A[0]==null||A[0].raw===void 0)E.push.apply(E,A);else{var D=A[0];E.push(D[0]);for(var q=A.length,R=1;Ri(Ub(s)?c:s):i;return lt.jsx(zb,{styles:o})}function xy(l,i){return Bs(l,i)}function jb(l,i){Array.isArray(l.__emotion_styles)&&(l.__emotion_styles=i(l.__emotion_styles))}const j0=[];function da(l){return j0[0]=l,tu(j0)}var Cs={exports:{}},qt={};var L0;function Lb(){if(L0)return qt;L0=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),D=Symbol.for("react.view_transition"),q=Symbol.for("react.client.reference");function R(_){if(typeof _=="object"&&_!==null){var Y=_.$$typeof;switch(Y){case l:switch(_=_.type,_){case c:case s:case o:case v:case p:case D:return _;default:switch(_=_&&_.$$typeof,_){case m:case g:case E:case A:return _;case d:return _;default:return Y}}case i:return Y}}}return qt.ContextConsumer=d,qt.ContextProvider=m,qt.Element=l,qt.ForwardRef=g,qt.Fragment=c,qt.Lazy=E,qt.Memo=A,qt.Portal=i,qt.Profiler=s,qt.StrictMode=o,qt.Suspense=v,qt.SuspenseList=p,qt.isContextConsumer=function(_){return R(_)===d},qt.isContextProvider=function(_){return R(_)===m},qt.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===l},qt.isForwardRef=function(_){return R(_)===g},qt.isFragment=function(_){return R(_)===c},qt.isLazy=function(_){return R(_)===E},qt.isMemo=function(_){return R(_)===A},qt.isPortal=function(_){return R(_)===i},qt.isProfiler=function(_){return R(_)===s},qt.isStrictMode=function(_){return R(_)===o},qt.isSuspense=function(_){return R(_)===v},qt.isSuspenseList=function(_){return R(_)===p},qt.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===c||_===s||_===o||_===v||_===p||typeof _=="object"&&_!==null&&(_.$$typeof===E||_.$$typeof===A||_.$$typeof===m||_.$$typeof===d||_.$$typeof===g||_.$$typeof===q||_.getModuleId!==void 0)},qt.typeOf=R,qt}var q0;function qb(){return q0||(q0=1,Cs.exports=Lb()),Cs.exports}var zy=qb();function mn(l){if(typeof l!="object"||l===null)return!1;const i=Object.getPrototypeOf(l);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(Symbol.toStringTag in l)&&!(Symbol.iterator in l)}function Oy(l){if(Z.isValidElement(l)||zy.isValidElementType(l)||!mn(l))return l;const i={};return Object.keys(l).forEach(c=>{i[c]=Oy(l[c])}),i}function Ge(l,i,c={clone:!0}){const o=c.clone?{...l}:l;return mn(l)&&mn(i)&&Object.keys(i).forEach(s=>{Z.isValidElement(i[s])||zy.isValidElementType(i[s])?o[s]=i[s]:mn(i[s])&&Object.prototype.hasOwnProperty.call(l,s)&&mn(l[s])?o[s]=Ge(l[s],i[s],c):c.clone?o[s]=mn(i[s])?Oy(i[s]):i[s]:o[s]=i[s]}),o}const Gb=l=>{const i=Object.keys(l).map(c=>({key:c,val:l[c]}))||[];return i.sort((c,o)=>c.val-o.val),i.reduce((c,o)=>({...c,[o.key]:o.val}),{})};function Yb(l){const{values:i={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:c="px",step:o=5,...s}=l,d=Gb(i),m=Object.keys(d);function g(D){return`@media (min-width:${typeof i[D]=="number"?i[D]:D}${c})`}function v(D){return`@media (max-width:${(typeof i[D]=="number"?i[D]:D)-o/100}${c})`}function p(D,q){const R=m.indexOf(q);return`@media (min-width:${typeof i[D]=="number"?i[D]:D}${c}) and (max-width:${(R!==-1&&typeof i[m[R]]=="number"?i[m[R]]:q)-o/100}${c})`}function A(D){return m.indexOf(D)+1o.startsWith("@container")).sort((o,s)=>{const d=/min-width:\s*([0-9.]+)/;return+(o.match(d)?.[1]||0)-+(s.match(d)?.[1]||0)});return c.length?c.reduce((o,s)=>{const d=i[s];return delete o[s],o[s]=d,o},{...i}):i}function Vb(l,i){return i==="@"||i.startsWith("@")&&(l.some(c=>i.startsWith(`@${c}`))||!!i.match(/^@\d/))}function Xb(l,i){const c=i.match(/^@([^/]+)?\/?(.+)?$/);if(!c)return null;const[,o,s]=c,d=Number.isNaN(+o)?o||0:+o;return l.containerQueries(s).up(d)}function $b(l){const i=(d,m)=>d.replace("@media",m?`@container ${m}`:"@container");function c(d,m){d.up=(...g)=>i(l.breakpoints.up(...g),m),d.down=(...g)=>i(l.breakpoints.down(...g),m),d.between=(...g)=>i(l.breakpoints.between(...g),m),d.only=(...g)=>i(l.breakpoints.only(...g),m),d.not=(...g)=>{const v=i(l.breakpoints.not(...g),m);return v.includes("not all and")?v.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):v}}const o={},s=d=>(c(o,d),o);return c(s),{...l,containerQueries:s}}const Qb={borderRadius:4};function Zi(l,i){return i?Ge(l,i,{clone:!1}):l}const $r={xs:0,sm:600,md:900,lg:1200,xl:1536},Y0={keys:["xs","sm","md","lg","xl"],up:l=>`@media (min-width:${$r[l]}px)`},Zb={containerQueries:l=>({up:i=>{let c=typeof i=="number"?i:$r[i]||i;return typeof c=="number"&&(c=`${c}px`),l?`@container ${l} (min-width:${c})`:`@container (min-width:${c})`}})};function jn(l,i,c){const o=l.theme||{};if(Array.isArray(i)){const d=o.breakpoints||Y0;return i.reduce((m,g,v)=>(m[d.up(d.keys[v])]=c(i[v]),m),{})}if(typeof i=="object"){const d=o.breakpoints||Y0;return Object.keys(i).reduce((m,g)=>{if(Vb(d.keys,g)){const v=Xb(o.containerQueries?o:Zb,g);v&&(m[v]=c(i[g],g))}else if(Object.keys(d.values||$r).includes(g)){const v=d.up(g);m[v]=c(i[g],g)}else{const v=g;m[v]=i[v]}return m},{})}return c(i)}function kb(l={}){return l.keys?.reduce((c,o)=>{const s=l.up(o);return c[s]={},c},{})||{}}function V0(l,i){return l.reduce((c,o)=>{const s=c[o];return(!s||Object.keys(s).length===0)&&delete c[o],c},i)}function Rt(l){if(typeof l!="string")throw new Error(qa(7));return l.charAt(0).toUpperCase()+l.slice(1)}function Qr(l,i,c=!0){if(!i||typeof i!="string")return null;if(l&&l.vars&&c){const o=`vars.${i}`.split(".").reduce((s,d)=>s&&s[d]?s[d]:null,l);if(o!=null)return o}return i.split(".").reduce((o,s)=>o&&o[s]!=null?o[s]:null,l)}function Hr(l,i,c,o=c){let s;return typeof l=="function"?s=l(c):Array.isArray(l)?s=l[c]||o:s=Qr(l,c)||o,i&&(s=i(s,o,l)),s}function Pt(l){const{prop:i,cssProperty:c=l.prop,themeKey:o,transform:s}=l,d=m=>{if(m[i]==null)return null;const g=m[i],v=m.theme,p=Qr(v,o)||{};return jn(m,g,E=>{let D=Hr(p,s,E);return E===D&&typeof E=="string"&&(D=Hr(p,s,`${i}${E==="default"?"":Rt(E)}`,E)),c===!1?D:{[c]:D}})};return d.propTypes={},d.filterProps=[i],d}function Kb(l){const i={};return c=>(i[c]===void 0&&(i[c]=l(c)),i[c])}const Jb={m:"margin",p:"padding"},Wb={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},X0={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Fb=Kb(l=>{if(l.length>2)if(X0[l])l=X0[l];else return[l];const[i,c]=l.split(""),o=Jb[i],s=Wb[c]||"";return Array.isArray(s)?s.map(d=>o+d):[o+s]}),nf=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],af=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...nf,...af];function eu(l,i,c,o){const s=Qr(l,i,!0)??c;return typeof s=="number"||typeof s=="string"?d=>typeof d=="string"?d:typeof s=="string"?s.startsWith("var(")&&d===0?0:s.startsWith("var(")&&d===1?s:`calc(${d} * ${s})`:s*d:Array.isArray(s)?d=>{if(typeof d=="string")return d;const m=Math.abs(d),g=s[m];return d>=0?g:typeof g=="number"?-g:typeof g=="string"&&g.startsWith("var(")?`calc(-1 * ${g})`:`-${g}`}:typeof s=="function"?s:()=>{}}function lf(l){return eu(l,"spacing",8)}function nu(l,i){return typeof i=="string"||i==null?i:l(i)}function Pb(l,i){return c=>l.reduce((o,s)=>(o[s]=nu(i,c),o),{})}function Ib(l,i,c,o){if(!i.includes(c))return null;const s=Fb(c),d=Pb(s,o),m=l[c];return jn(l,m,d)}function My(l,i){const c=lf(l.theme);return Object.keys(l).map(o=>Ib(l,i,o,c)).reduce(Zi,{})}function Kt(l){return My(l,nf)}Kt.propTypes={};Kt.filterProps=nf;function Jt(l){return My(l,af)}Jt.propTypes={};Jt.filterProps=af;function Ry(l=8,i=lf({spacing:l})){if(l.mui)return l;const c=(...o)=>(o.length===0?[1]:o).map(d=>{const m=i(d);return typeof m=="number"?`${m}px`:m}).join(" ");return c.mui=!0,c}function Zr(...l){const i=l.reduce((o,s)=>(s.filterProps.forEach(d=>{o[d]=s}),o),{}),c=o=>Object.keys(o).reduce((s,d)=>i[d]?Zi(s,i[d](o)):s,{});return c.propTypes={},c.filterProps=l.reduce((o,s)=>o.concat(s.filterProps),[]),c}function Pe(l){return typeof l!="number"?l:`${l}px solid`}function tn(l,i){return Pt({prop:l,themeKey:"borders",transform:i})}const t1=tn("border",Pe),e1=tn("borderTop",Pe),n1=tn("borderRight",Pe),a1=tn("borderBottom",Pe),l1=tn("borderLeft",Pe),i1=tn("borderColor"),u1=tn("borderTopColor"),r1=tn("borderRightColor"),c1=tn("borderBottomColor"),o1=tn("borderLeftColor"),s1=tn("outline",Pe),f1=tn("outlineColor"),kr=l=>{if(l.borderRadius!==void 0&&l.borderRadius!==null){const i=eu(l.theme,"shape.borderRadius",4),c=o=>({borderRadius:nu(i,o)});return jn(l,l.borderRadius,c)}return null};kr.propTypes={};kr.filterProps=["borderRadius"];Zr(t1,e1,n1,a1,l1,i1,u1,r1,c1,o1,kr,s1,f1);const Kr=l=>{if(l.gap!==void 0&&l.gap!==null){const i=eu(l.theme,"spacing",8),c=o=>({gap:nu(i,o)});return jn(l,l.gap,c)}return null};Kr.propTypes={};Kr.filterProps=["gap"];const Jr=l=>{if(l.columnGap!==void 0&&l.columnGap!==null){const i=eu(l.theme,"spacing",8),c=o=>({columnGap:nu(i,o)});return jn(l,l.columnGap,c)}return null};Jr.propTypes={};Jr.filterProps=["columnGap"];const Wr=l=>{if(l.rowGap!==void 0&&l.rowGap!==null){const i=eu(l.theme,"spacing",8),c=o=>({rowGap:nu(i,o)});return jn(l,l.rowGap,c)}return null};Wr.propTypes={};Wr.filterProps=["rowGap"];const d1=Pt({prop:"gridColumn"}),h1=Pt({prop:"gridRow"}),m1=Pt({prop:"gridAutoFlow"}),y1=Pt({prop:"gridAutoColumns"}),p1=Pt({prop:"gridAutoRows"}),g1=Pt({prop:"gridTemplateColumns"}),v1=Pt({prop:"gridTemplateRows"}),b1=Pt({prop:"gridTemplateAreas"}),S1=Pt({prop:"gridArea"});Zr(Kr,Jr,Wr,d1,h1,m1,y1,p1,g1,v1,b1,S1);function Ll(l,i){return i==="grey"?i:l}const T1=Pt({prop:"color",themeKey:"palette",transform:Ll}),C1=Pt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ll}),E1=Pt({prop:"backgroundColor",themeKey:"palette",transform:Ll});Zr(T1,C1,E1);function Le(l){return l<=1&&l!==0?`${l*100}%`:l}const _1=Pt({prop:"width",transform:Le}),uf=l=>{if(l.maxWidth!==void 0&&l.maxWidth!==null){const i=c=>{const o=l.theme?.breakpoints?.values?.[c]||$r[c];return o?l.theme?.breakpoints?.unit!=="px"?{maxWidth:`${o}${l.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Le(c)}};return jn(l,l.maxWidth,i)}return null};uf.filterProps=["maxWidth"];const A1=Pt({prop:"minWidth",transform:Le}),x1=Pt({prop:"height",transform:Le}),z1=Pt({prop:"maxHeight",transform:Le}),O1=Pt({prop:"minHeight",transform:Le});Pt({prop:"size",cssProperty:"width",transform:Le});Pt({prop:"size",cssProperty:"height",transform:Le});const M1=Pt({prop:"boxSizing"});Zr(_1,uf,A1,x1,z1,O1,M1);const au={border:{themeKey:"borders",transform:Pe},borderTop:{themeKey:"borders",transform:Pe},borderRight:{themeKey:"borders",transform:Pe},borderBottom:{themeKey:"borders",transform:Pe},borderLeft:{themeKey:"borders",transform:Pe},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Pe},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:kr},color:{themeKey:"palette",transform:Ll},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ll},backgroundColor:{themeKey:"palette",transform:Ll},p:{style:Jt},pt:{style:Jt},pr:{style:Jt},pb:{style:Jt},pl:{style:Jt},px:{style:Jt},py:{style:Jt},padding:{style:Jt},paddingTop:{style:Jt},paddingRight:{style:Jt},paddingBottom:{style:Jt},paddingLeft:{style:Jt},paddingX:{style:Jt},paddingY:{style:Jt},paddingInline:{style:Jt},paddingInlineStart:{style:Jt},paddingInlineEnd:{style:Jt},paddingBlock:{style:Jt},paddingBlockStart:{style:Jt},paddingBlockEnd:{style:Jt},m:{style:Kt},mt:{style:Kt},mr:{style:Kt},mb:{style:Kt},ml:{style:Kt},mx:{style:Kt},my:{style:Kt},margin:{style:Kt},marginTop:{style:Kt},marginRight:{style:Kt},marginBottom:{style:Kt},marginLeft:{style:Kt},marginX:{style:Kt},marginY:{style:Kt},marginInline:{style:Kt},marginInlineStart:{style:Kt},marginInlineEnd:{style:Kt},marginBlock:{style:Kt},marginBlockStart:{style:Kt},marginBlockEnd:{style:Kt},displayPrint:{cssProperty:!1,transform:l=>({"@media print":{display:l}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Kr},rowGap:{style:Wr},columnGap:{style:Jr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Le},maxWidth:{style:uf},minWidth:{transform:Le},height:{transform:Le},maxHeight:{transform:Le},minHeight:{transform:Le},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function R1(...l){const i=l.reduce((o,s)=>o.concat(Object.keys(s)),[]),c=new Set(i);return l.every(o=>c.size===Object.keys(o).length)}function w1(l,i){return typeof l=="function"?l(i):l}function D1(){function l(c,o,s,d){const m={[c]:o,theme:s},g=d[c];if(!g)return{[c]:o};const{cssProperty:v=c,themeKey:p,transform:A,style:E}=g;if(o==null)return null;if(p==="typography"&&o==="inherit")return{[c]:o};const D=Qr(s,p)||{};return E?E(m):jn(m,o,R=>{let _=Hr(D,A,R);return R===_&&typeof R=="string"&&(_=Hr(D,A,`${c}${R==="default"?"":Rt(R)}`,R)),v===!1?_:{[v]:_}})}function i(c){const{sx:o,theme:s={},nested:d}=c||{};if(!o)return null;const m=s.unstable_sxConfig??au;function g(v){let p=v;if(typeof v=="function")p=v(s);else if(typeof v!="object")return v;if(!p)return null;const A=kb(s.breakpoints),E=Object.keys(A);let D=A;return Object.keys(p).forEach(q=>{const R=w1(p[q],s);if(R!=null)if(typeof R=="object")if(m[q])D=Zi(D,l(q,R,s,m));else{const _=jn({theme:s},R,Y=>({[q]:Y}));R1(_,R)?D[q]=i({sx:R,theme:s,nested:!0}):D=Zi(D,_)}else D=Zi(D,l(q,R,s,m))}),!d&&s.modularCssLayers?{"@layer sx":G0(s,V0(E,D))}:G0(s,V0(E,D))}return Array.isArray(o)?o.map(g):g(o)}return i}const Ga=D1();Ga.filterProps=["sx"];function B1(l,i){const c=this;if(c.vars){if(!c.colorSchemes?.[l]||typeof c.getColorSchemeSelector!="function")return{};let o=c.getColorSchemeSelector(l);return o==="&"?i:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:i})}return c.palette.mode===l?i:{}}function rf(l={},...i){const{breakpoints:c={},palette:o={},spacing:s,shape:d={},...m}=l,g=Yb(c),v=Ry(s);let p=Ge({breakpoints:g,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:v,shape:{...Qb,...d}},m);return p=$b(p),p.applyStyles=B1,p=i.reduce((A,E)=>Ge(A,E),p),p.unstable_sxConfig={...au,...m?.unstable_sxConfig},p.unstable_sx=function(E){return Ga({sx:E,theme:this})},p}function N1(l){return Object.keys(l).length===0}function U1(l=null){const i=Z.useContext(Xr);return!i||N1(i)?l:i}const H1=rf();function wy(l=H1){return U1(l)}function Es(l){const i=da(l);return l!==i&&i.styles?(i.styles.match(/^@layer\s+[^{]*$/)||(i.styles=`@layer global{${i.styles}}`),i):l}function j1({styles:l,themeId:i,defaultTheme:c={}}){const o=wy(c),s=i&&o[i]||o;let d=typeof l=="function"?l(s):l;return s.modularCssLayers&&(Array.isArray(d)?d=d.map(m=>Es(typeof m=="function"?m(s):m)):d=Es(d)),lt.jsx(Hb,{styles:d})}const L1=l=>{const i={systemProps:{},otherProps:{}},c=l?.theme?.unstable_sxConfig??au;return Object.keys(l).forEach(o=>{c[o]?i.systemProps[o]=l[o]:i.otherProps[o]=l[o]}),i};function Dy(l){const{sx:i,...c}=l,{systemProps:o,otherProps:s}=L1(c);let d;return Array.isArray(i)?d=[o,...i]:typeof i=="function"?d=(...m)=>{const g=i(...m);return mn(g)?{...o,...g}:o}:d={...o,...i},{...s,sx:d}}const $0=l=>l,q1=()=>{let l=$0;return{configure(i){l=i},generate(i){return l(i)},reset(){l=$0}}},By=q1();function Ny(l){var i,c,o="";if(typeof l=="string"||typeof l=="number")o+=l;else if(typeof l=="object")if(Array.isArray(l)){var s=l.length;for(i=0;ig!=="theme"&&g!=="sx"&&g!=="as"})(Ga);return Z.forwardRef(function(v,p){const A=wy(c),{className:E,component:D="div",...q}=Dy(v);return lt.jsx(d,{as:D,ref:p,className:me(E,s?s(o):o),theme:i&&A[i]||A,...q})})}const Y1={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Vl(l,i,c="Mui"){const o=Y1[i];return o?`${c}-${o}`:`${By.generate(l)}-${i}`}function Ya(l,i,c="Mui"){const o={};return i.forEach(s=>{o[s]=Vl(l,s,c)}),o}function Uy(l){const{variants:i,...c}=l,o={variants:i,style:da(c),isProcessed:!0};return o.style===c||i&&i.forEach(s=>{typeof s.style!="function"&&(s.style=da(s.style))}),o}const V1=rf();function _s(l){return l!=="ownerState"&&l!=="theme"&&l!=="sx"&&l!=="as"}function ja(l,i){return i&&l&&typeof l=="object"&&l.styles&&!l.styles.startsWith("@layer")&&(l.styles=`@layer ${i}{${String(l.styles)}}`),l}function X1(l){return l?(i,c)=>c[l]:null}function $1(l,i,c){l.theme=k1(l.theme)?c:l.theme[i]||l.theme}function Mr(l,i,c){const o=typeof i=="function"?i(l):i;if(Array.isArray(o))return o.flatMap(s=>Mr(l,s,c));if(Array.isArray(o?.variants)){let s;if(o.isProcessed)s=c?ja(o.style,c):o.style;else{const{variants:d,...m}=o;s=c?ja(da(m),c):m}return Hy(l,o.variants,[s],c)}return o?.isProcessed?c?ja(da(o.style),c):o.style:c?ja(da(o),c):o}function Hy(l,i,c=[],o=void 0){let s;t:for(let d=0;d{jb(g,G=>G.filter(V=>V!==Ga));const{name:p,slot:A,skipVariantsResolver:E,skipSx:D,overridesResolver:q=X1(J1(A)),...R}=v,_=p&&p.startsWith("Mui")||A?"components":"custom",Y=E!==void 0?E:A&&A!=="Root"&&A!=="root"||!1,J=D||!1;let F=_s;A==="Root"||A==="root"?F=o:A?F=s:K1(g)&&(F=void 0);const P=xy(g,{shouldForwardProp:F,label:Z1(),...R}),X=G=>{if(G.__emotion_real===G)return G;if(typeof G=="function")return function(dt){return Mr(dt,G,dt.theme.modularCssLayers?_:void 0)};if(mn(G)){const V=Uy(G);return function(ht){return V.variants?Mr(ht,V,ht.theme.modularCssLayers?_:void 0):ht.theme.modularCssLayers?ja(V.style,_):V.style}}return G},U=(...G)=>{const V=[],dt=G.map(X),ht=[];if(V.push(d),p&&q&&ht.push(function(k){const at=k.theme.components?.[p]?.styleOverrides;if(!at)return null;const O={};for(const $ in at)O[$]=Mr(k,at[$],k.theme.modularCssLayers?"theme":void 0);return q(k,O)}),p&&!Y&&ht.push(function(k){const at=k.theme?.components?.[p]?.variants;return at?Hy(k,at,[],k.theme.modularCssLayers?"theme":void 0):null}),J||ht.push(Ga),Array.isArray(dt[0])){const y=dt.shift(),k=new Array(V.length).fill(""),Q=new Array(ht.length).fill("");let at;at=[...k,...y,...Q],at.raw=[...k,...y.raw,...Q],V.unshift(at)}const gt=[...V,...dt,...ht],ct=P(...gt);return g.muiName&&(ct.muiName=g.muiName),ct};return P.withConfig&&(U.withConfig=P.withConfig),U}}function Z1(l,i){return void 0}function k1(l){for(const i in l)return!1;return!0}function K1(l){return typeof l=="string"&&l.charCodeAt(0)>96}function J1(l){return l&&l.charAt(0).toLowerCase()+l.slice(1)}function jr(l,i,c=!1){const o={...i};for(const s in l)if(Object.prototype.hasOwnProperty.call(l,s)){const d=s;if(d==="components"||d==="slots")o[d]={...l[d],...o[d]};else if(d==="componentsProps"||d==="slotProps"){const m=l[d],g=i[d];if(!g)o[d]=m||{};else if(!m)o[d]=g;else{o[d]={...g};for(const v in m)if(Object.prototype.hasOwnProperty.call(m,v)){const p=v;o[d][p]=jr(m[p],g[p],c)}}}else d==="className"&&c&&i.className?o.className=me(l?.className,i?.className):d==="style"&&c&&i.style?o.style={...l?.style,...i?.style}:o[d]===void 0&&(o[d]=l[d])}return o}const W1=typeof window<"u"?Z.useLayoutEffect:Z.useEffect;function F1(l,i=Number.MIN_SAFE_INTEGER,c=Number.MAX_SAFE_INTEGER){return Math.max(i,Math.min(l,c))}function cf(l,i=0,c=1){return F1(l,i,c)}function P1(l){l=l.slice(1);const i=new RegExp(`.{1,${l.length>=6?2:1}}`,"g");let c=l.match(i);return c&&c[0].length===1&&(c=c.map(o=>o+o)),c?`rgb${c.length===4?"a":""}(${c.map((o,s)=>s<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function ha(l){if(l.type)return l;if(l.charAt(0)==="#")return ha(P1(l));const i=l.indexOf("("),c=l.substring(0,i);if(!["rgb","rgba","hsl","hsla","color"].includes(c))throw new Error(qa(9,l));let o=l.substring(i+1,l.length-1),s;if(c==="color"){if(o=o.split(" "),s=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(s))throw new Error(qa(10,s))}else o=o.split(",");return o=o.map(d=>parseFloat(d)),{type:c,values:o,colorSpace:s}}const I1=l=>{const i=ha(l);return i.values.slice(0,3).map((c,o)=>i.type.includes("hsl")&&o!==0?`${c}%`:c).join(" ")},$i=(l,i)=>{try{return I1(l)}catch{return l}};function Fr(l){const{type:i,colorSpace:c}=l;let{values:o}=l;return i.includes("rgb")?o=o.map((s,d)=>d<3?parseInt(s,10):s):i.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),i.includes("color")?o=`${c} ${o.join(" ")}`:o=`${o.join(", ")}`,`${i}(${o})`}function jy(l){l=ha(l);const{values:i}=l,c=i[0],o=i[1]/100,s=i[2]/100,d=o*Math.min(s,1-s),m=(p,A=(p+c/30)%12)=>s-d*Math.max(Math.min(A-3,9-A,1),-1);let g="rgb";const v=[Math.round(m(0)*255),Math.round(m(8)*255),Math.round(m(4)*255)];return l.type==="hsla"&&(g+="a",v.push(i[3])),Fr({type:g,values:v})}function Ns(l){l=ha(l);let i=l.type==="hsl"||l.type==="hsla"?ha(jy(l)).values:l.values;return i=i.map(c=>(l.type!=="color"&&(c/=255),c<=.03928?c/12.92:((c+.055)/1.055)**2.4)),Number((.2126*i[0]+.7152*i[1]+.0722*i[2]).toFixed(3))}function tS(l,i){const c=Ns(l),o=Ns(i);return(Math.max(c,o)+.05)/(Math.min(c,o)+.05)}function Ly(l,i){return l=ha(l),i=cf(i),(l.type==="rgb"||l.type==="hsl")&&(l.type+="a"),l.type==="color"?l.values[3]=`/${i}`:l.values[3]=i,Fr(l)}function Ua(l,i,c){try{return Ly(l,i)}catch{return l}}function Pr(l,i){if(l=ha(l),i=cf(i),l.type.includes("hsl"))l.values[2]*=1-i;else if(l.type.includes("rgb")||l.type.includes("color"))for(let c=0;c<3;c+=1)l.values[c]*=1-i;return Fr(l)}function Nt(l,i,c){try{return Pr(l,i)}catch{return l}}function Ir(l,i){if(l=ha(l),i=cf(i),l.type.includes("hsl"))l.values[2]+=(100-l.values[2])*i;else if(l.type.includes("rgb"))for(let c=0;c<3;c+=1)l.values[c]+=(255-l.values[c])*i;else if(l.type.includes("color"))for(let c=0;c<3;c+=1)l.values[c]+=(1-l.values[c])*i;return Fr(l)}function Ut(l,i,c){try{return Ir(l,i)}catch{return l}}function eS(l,i=.15){return Ns(l)>.5?Pr(l,i):Ir(l,i)}function _r(l,i,c){try{return eS(l,i)}catch{return l}}const nS=Z.createContext(),aS=()=>Z.useContext(nS)??!1,lS=Z.createContext(void 0);function iS(l){const{theme:i,name:c,props:o}=l;if(!i||!i.components||!i.components[c])return o;const s=i.components[c];return s.defaultProps?jr(s.defaultProps,o,i.components.mergeClassNameAndStyle):!s.styleOverrides&&!s.variants?jr(s,o,i.components.mergeClassNameAndStyle):o}function uS({props:l,name:i}){const c=Z.useContext(lS);return iS({props:l,name:i,theme:{components:c}})}let Q0=0;function rS(l){const[i,c]=Z.useState(l),o=l||i;return Z.useEffect(()=>{i==null&&(Q0+=1,c(`mui-${Q0}`))},[i]),o}const cS={...Ms},Z0=cS.useId;function oS(l){if(Z0!==void 0){const i=Z0();return l??i}return rS(l)}const k0={theme:void 0};function sS(l){let i,c;return function(s){let d=i;return(d===void 0||s.theme!==c)&&(k0.theme=s.theme,d=Uy(l(k0)),i=d,c=s.theme),d}}function fS(l=""){function i(...o){if(!o.length)return"";const s=o[0];return typeof s=="string"&&!s.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${l?`${l}-`:""}${s}${i(...o.slice(1))})`:`, ${s}`}return(o,...s)=>`var(--${l?`${l}-`:""}${o}${i(...s)})`}const K0=(l,i,c,o=[])=>{let s=l;i.forEach((d,m)=>{m===i.length-1?Array.isArray(s)?s[Number(d)]=c:s&&typeof s=="object"&&(s[d]=c):s&&typeof s=="object"&&(s[d]||(s[d]=o.includes(d)?[]:{}),s=s[d])})},dS=(l,i,c)=>{function o(s,d=[],m=[]){Object.entries(s).forEach(([g,v])=>{(!c||c&&!c([...d,g]))&&v!=null&&(typeof v=="object"&&Object.keys(v).length>0?o(v,[...d,g],Array.isArray(v)?[...m,g]:m):i([...d,g],v,m))})}o(l)},hS=(l,i)=>typeof i=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>l.includes(o))||l[l.length-1].toLowerCase().includes("opacity")?i:`${i}px`:i;function As(l,i){const{prefix:c,shouldSkipGeneratingVar:o}=i||{},s={},d={},m={};return dS(l,(g,v,p)=>{if((typeof v=="string"||typeof v=="number")&&(!o||!o(g,v))){const A=`--${c?`${c}-`:""}${g.join("-")}`,E=hS(g,v);Object.assign(s,{[A]:E}),K0(d,g,`var(${A})`,p),K0(m,g,`var(${A}, ${E})`,p)}},g=>g[0]==="vars"),{css:s,vars:d,varsWithDefaults:m}}function mS(l,i={}){const{getSelector:c=J,disableCssColorScheme:o,colorSchemeSelector:s,enableContrastVars:d}=i,{colorSchemes:m={},components:g,defaultColorScheme:v="light",...p}=l,{vars:A,css:E,varsWithDefaults:D}=As(p,i);let q=D;const R={},{[v]:_,...Y}=m;if(Object.entries(Y||{}).forEach(([X,U])=>{const{vars:G,css:V,varsWithDefaults:dt}=As(U,i);q=Ge(q,dt),R[X]={css:V,vars:G}}),_){const{css:X,vars:U,varsWithDefaults:G}=As(_,i);q=Ge(q,G),R[v]={css:X,vars:U}}function J(X,U){let G=s;if(s==="class"&&(G=".%s"),s==="data"&&(G="[data-%s]"),s?.startsWith("data-")&&!s.includes("%s")&&(G=`[${s}="%s"]`),X){if(G==="media")return l.defaultColorScheme===X?":root":{[`@media (prefers-color-scheme: ${m[X]?.palette?.mode||X})`]:{":root":U}};if(G)return l.defaultColorScheme===X?`:root, ${G.replace("%s",String(X))}`:G.replace("%s",String(X))}return":root"}return{vars:q,generateThemeVars:()=>{let X={...A};return Object.entries(R).forEach(([,{vars:U}])=>{X=Ge(X,U)}),X},generateStyleSheets:()=>{const X=[],U=l.defaultColorScheme||"light";function G(ht,gt){Object.keys(gt).length&&X.push(typeof ht=="string"?{[ht]:{...gt}}:ht)}G(c(void 0,{...E}),E);const{[U]:V,...dt}=R;if(V){const{css:ht}=V,gt=m[U]?.palette?.mode,ct=!o&>?{colorScheme:gt,...ht}:{...ht};G(c(U,{...ct}),ct)}return Object.entries(dt).forEach(([ht,{css:gt}])=>{const ct=m[ht]?.palette?.mode,y=!o&&ct?{colorScheme:ct,...gt}:{...gt};G(c(ht,{...y}),y)}),d&&X.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),X}}}function yS(l){return function(c){return l==="media"?`@media (prefers-color-scheme: ${c})`:l?l.startsWith("data-")&&!l.includes("%s")?`[${l}="${c}"] &`:l==="class"?`.${c} &`:l==="data"?`[data-${c}] &`:`${l.replace("%s",c)} &`:"&"}}function lu(l,i,c=void 0){const o={};for(const s in l){const d=l[s];let m="",g=!0;for(let v=0;v=c?Us.text.primary:Gy.text.primary}const q=({color:Y,name:J,mainShade:F=500,lightShade:P=300,darkShade:X=700})=>{if(Y={...Y},!Y.main&&Y[F]&&(Y.main=Y[F]),!Y.hasOwnProperty("main"))throw new Error(qa(11,J?` (${J})`:"",F));if(typeof Y.main!="string")throw new Error(qa(12,J?` (${J})`:"",JSON.stringify(Y.main)));return s?(W0(s,Y,"light",P,o),W0(s,Y,"dark",X,o)):(J0(Y,"light",P,o),J0(Y,"dark",X,o)),Y.contrastText||(Y.contrastText=D(Y.main)),Y};let R;return i==="light"?R=qy():i==="dark"&&(R=Yy()),Ge({common:{...Ji},mode:i,primary:q({color:m,name:"primary"}),secondary:q({color:g,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:q({color:v,name:"error"}),warning:q({color:E,name:"warning"}),info:q({color:p,name:"info"}),success:q({color:A,name:"success"}),grey:jv,contrastThreshold:c,getContrastText:D,augmentColor:q,tonalOffset:o,...R},d)}function ES(l){const i={};return Object.entries(l).forEach(o=>{const[s,d]=o;typeof d=="object"&&(i[s]=`${d.fontStyle?`${d.fontStyle} `:""}${d.fontVariant?`${d.fontVariant} `:""}${d.fontWeight?`${d.fontWeight} `:""}${d.fontStretch?`${d.fontStretch} `:""}${d.fontSize||""}${d.lineHeight?`/${d.lineHeight} `:""}${d.fontFamily||""}`)}),i}function _S(l,i){return{toolbar:{minHeight:56,[l.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[l.up("sm")]:{minHeight:64}},...i}}function AS(l){return Math.round(l*1e5)/1e5}const F0={textTransform:"uppercase"},P0='"Roboto", "Helvetica", "Arial", sans-serif';function xS(l,i){const{fontFamily:c=P0,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:d=400,fontWeightMedium:m=500,fontWeightBold:g=700,htmlFontSize:v=16,allVariants:p,pxToRem:A,...E}=typeof i=="function"?i(l):i,D=o/14,q=A||(Y=>`${Y/v*D}rem`),R=(Y,J,F,P,X)=>({fontFamily:c,fontWeight:Y,fontSize:q(J),lineHeight:F,...c===P0?{letterSpacing:`${AS(P/J)}em`}:{},...X,...p}),_={h1:R(s,96,1.167,-1.5),h2:R(s,60,1.2,-.5),h3:R(d,48,1.167,0),h4:R(d,34,1.235,.25),h5:R(d,24,1.334,0),h6:R(m,20,1.6,.15),subtitle1:R(d,16,1.75,.15),subtitle2:R(m,14,1.57,.1),body1:R(d,16,1.5,.15),body2:R(d,14,1.43,.15),button:R(m,14,1.75,.4,F0),caption:R(d,12,1.66,.4),overline:R(d,12,2.66,1,F0),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ge({htmlFontSize:v,pxToRem:q,fontFamily:c,fontSize:o,fontWeightLight:s,fontWeightRegular:d,fontWeightMedium:m,fontWeightBold:g,..._},E,{clone:!1})}const zS=.2,OS=.14,MS=.12;function $t(...l){return[`${l[0]}px ${l[1]}px ${l[2]}px ${l[3]}px rgba(0,0,0,${zS})`,`${l[4]}px ${l[5]}px ${l[6]}px ${l[7]}px rgba(0,0,0,${OS})`,`${l[8]}px ${l[9]}px ${l[10]}px ${l[11]}px rgba(0,0,0,${MS})`].join(",")}const RS=["none",$t(0,2,1,-1,0,1,1,0,0,1,3,0),$t(0,3,1,-2,0,2,2,0,0,1,5,0),$t(0,3,3,-2,0,3,4,0,0,1,8,0),$t(0,2,4,-1,0,4,5,0,0,1,10,0),$t(0,3,5,-1,0,5,8,0,0,1,14,0),$t(0,3,5,-1,0,6,10,0,0,1,18,0),$t(0,4,5,-2,0,7,10,1,0,2,16,1),$t(0,5,5,-3,0,8,10,1,0,3,14,2),$t(0,5,6,-3,0,9,12,1,0,3,16,2),$t(0,6,6,-3,0,10,14,1,0,4,18,3),$t(0,6,7,-4,0,11,15,1,0,4,20,3),$t(0,7,8,-4,0,12,17,2,0,5,22,4),$t(0,7,8,-4,0,13,19,2,0,5,24,4),$t(0,7,9,-4,0,14,21,2,0,5,26,4),$t(0,8,9,-5,0,15,22,2,0,6,28,5),$t(0,8,10,-5,0,16,24,2,0,6,30,5),$t(0,8,11,-5,0,17,26,2,0,6,32,5),$t(0,9,11,-5,0,18,28,2,0,7,34,6),$t(0,9,12,-6,0,19,29,2,0,7,36,6),$t(0,10,13,-6,0,20,31,3,0,8,38,7),$t(0,10,13,-6,0,21,33,3,0,8,40,7),$t(0,10,14,-6,0,22,35,3,0,8,42,7),$t(0,11,14,-7,0,23,36,3,0,9,44,8),$t(0,11,15,-7,0,24,38,3,0,9,46,8)],wS={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},DS={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function I0(l){return`${Math.round(l)}ms`}function BS(l){if(!l)return 0;const i=l/36;return Math.min(Math.round((4+15*i**.25+i/5)*10),3e3)}function NS(l){const i={...wS,...l.easing},c={...DS,...l.duration};return{getAutoHeightDuration:BS,create:(s=["all"],d={})=>{const{duration:m=c.standard,easing:g=i.easeInOut,delay:v=0,...p}=d;return(Array.isArray(s)?s:[s]).map(A=>`${A} ${typeof m=="string"?m:I0(m)} ${g} ${typeof v=="string"?v:I0(v)}`).join(",")},...l,easing:i,duration:c}}const US={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function HS(l){return mn(l)||typeof l>"u"||typeof l=="string"||typeof l=="boolean"||typeof l=="number"||Array.isArray(l)}function Vy(l={}){const i={...l};function c(o){const s=Object.entries(o);for(let d=0;d{if(!Number.isNaN(+l))return+l;const i=l.match(/\d*\.?\d+/g);if(!i)return 0;let c=0;for(let o=0;oGe(R,_),q),q.unstable_sxConfig={...au,...A?.unstable_sxConfig},q.unstable_sx=function(_){return Ga({sx:_,theme:this})},q.toRuntimeSource=Vy,LS(q),q}function qS(l){let i;return l<1?i=5.11916*l**2:i=4.5*Math.log(l+1)+2,Math.round(i*10)/1e3}const GS=[...Array(25)].map((l,i)=>{if(i===0)return"none";const c=qS(i);return`linear-gradient(rgba(255 255 255 / ${c}), rgba(255 255 255 / ${c}))`});function Xy(l){return{inputPlaceholder:l==="dark"?.5:.42,inputUnderline:l==="dark"?.7:.42,switchTrackDisabled:l==="dark"?.2:.12,switchTrack:l==="dark"?.3:.38}}function $y(l){return l==="dark"?GS:[]}function YS(l){const{palette:i={mode:"light"},opacity:c,overlays:o,colorSpace:s,...d}=l,m=of({...i,colorSpace:s});return{palette:m,opacity:{...Xy(m.mode),...c},overlays:o||$y(m.mode),...d}}function VS(l){return!!l[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!l[0].match(/sxConfig$/)||l[0]==="palette"&&!!l[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const XS=l=>[...[...Array(25)].map((i,c)=>`--${l?`${l}-`:""}overlays-${c}`),`--${l?`${l}-`:""}palette-AppBar-darkBg`,`--${l?`${l}-`:""}palette-AppBar-darkColor`],$S=l=>(i,c)=>{const o=l.rootSelector||":root",s=l.colorSchemeSelector;let d=s;if(s==="class"&&(d=".%s"),s==="data"&&(d="[data-%s]"),s?.startsWith("data-")&&!s.includes("%s")&&(d=`[${s}="%s"]`),l.defaultColorScheme===i){if(i==="dark"){const m={};return XS(l.cssVarPrefix).forEach(g=>{m[g]=c[g],delete c[g]}),d==="media"?{[o]:c,"@media (prefers-color-scheme: dark)":{[o]:m}}:d?{[d.replace("%s",i)]:m,[`${o}, ${d.replace("%s",i)}`]:c}:{[o]:{...c,...m}}}if(d&&d!=="media")return`${o}, ${d.replace("%s",String(i))}`}else if(i){if(d==="media")return{[`@media (prefers-color-scheme: ${String(i)})`]:{[o]:c}};if(d)return d.replace("%s",String(i))}return o};function QS(l,i){i.forEach(c=>{l[c]||(l[c]={})})}function N(l,i,c){!l[i]&&c&&(l[i]=c)}function Qi(l){return typeof l!="string"||!l.startsWith("hsl")?l:jy(l)}function Nn(l,i){`${i}Channel`in l||(l[`${i}Channel`]=$i(Qi(l[i])))}function ZS(l){return typeof l=="number"?`${l}px`:typeof l=="string"||typeof l=="function"||Array.isArray(l)?l:"8px"}const fn=l=>{try{return l()}catch{}},kS=(l="mui")=>fS(l);function xs(l,i,c,o,s){if(!c)return;c=c===!0?{}:c;const d=s==="dark"?"dark":"light";if(!o){i[s]=YS({...c,palette:{mode:d,...c?.palette},colorSpace:l});return}const{palette:m,...g}=Hs({...o,palette:{mode:d,...c?.palette},colorSpace:l});return i[s]={...c,palette:m,opacity:{...Xy(d),...c?.opacity},overlays:c?.overlays||$y(d)},g}function KS(l={},...i){const{colorSchemes:c={light:!0},defaultColorScheme:o,disableCssColorScheme:s=!1,cssVarPrefix:d="mui",nativeColor:m=!1,shouldSkipGeneratingVar:g=VS,colorSchemeSelector:v=c.light&&c.dark?"media":void 0,rootSelector:p=":root",...A}=l,E=Object.keys(c)[0],D=o||(c.light&&E!=="light"?"light":E),q=kS(d),{[D]:R,light:_,dark:Y,...J}=c,F={...J};let P=R;if((D==="dark"&&!("dark"in c)||D==="light"&&!("light"in c))&&(P=!0),!P)throw new Error(qa(21,D));let X;m&&(X="oklch");const U=xs(X,F,P,A,D);_&&!F.light&&xs(X,F,_,void 0,"light"),Y&&!F.dark&&xs(X,F,Y,void 0,"dark");let G={defaultColorScheme:D,...U,cssVarPrefix:d,colorSchemeSelector:v,rootSelector:p,getCssVar:q,colorSchemes:F,font:{...ES(U.typography),...U.font},spacing:ZS(A.spacing)};Object.keys(G.colorSchemes).forEach(ct=>{const y=G.colorSchemes[ct].palette,k=at=>{const O=at.split("-"),$=O[1],et=O[2];return q(at,y[$][et])};y.mode==="light"&&(N(y.common,"background","#fff"),N(y.common,"onBackground","#000")),y.mode==="dark"&&(N(y.common,"background","#000"),N(y.common,"onBackground","#fff"));function Q(at,O,$){if(X){let et;return at===Ua&&(et=`transparent ${((1-$)*100).toFixed(0)}%`),at===Nt&&(et=`#000 ${($*100).toFixed(0)}%`),at===Ut&&(et=`#fff ${($*100).toFixed(0)}%`),`color-mix(in ${X}, ${O}, ${et})`}return at(O,$)}if(QS(y,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),y.mode==="light"){N(y.Alert,"errorColor",Q(Nt,y.error.light,.6)),N(y.Alert,"infoColor",Q(Nt,y.info.light,.6)),N(y.Alert,"successColor",Q(Nt,y.success.light,.6)),N(y.Alert,"warningColor",Q(Nt,y.warning.light,.6)),N(y.Alert,"errorFilledBg",k("palette-error-main")),N(y.Alert,"infoFilledBg",k("palette-info-main")),N(y.Alert,"successFilledBg",k("palette-success-main")),N(y.Alert,"warningFilledBg",k("palette-warning-main")),N(y.Alert,"errorFilledColor",fn(()=>y.getContrastText(y.error.main))),N(y.Alert,"infoFilledColor",fn(()=>y.getContrastText(y.info.main))),N(y.Alert,"successFilledColor",fn(()=>y.getContrastText(y.success.main))),N(y.Alert,"warningFilledColor",fn(()=>y.getContrastText(y.warning.main))),N(y.Alert,"errorStandardBg",Q(Ut,y.error.light,.9)),N(y.Alert,"infoStandardBg",Q(Ut,y.info.light,.9)),N(y.Alert,"successStandardBg",Q(Ut,y.success.light,.9)),N(y.Alert,"warningStandardBg",Q(Ut,y.warning.light,.9)),N(y.Alert,"errorIconColor",k("palette-error-main")),N(y.Alert,"infoIconColor",k("palette-info-main")),N(y.Alert,"successIconColor",k("palette-success-main")),N(y.Alert,"warningIconColor",k("palette-warning-main")),N(y.AppBar,"defaultBg",k("palette-grey-100")),N(y.Avatar,"defaultBg",k("palette-grey-400")),N(y.Button,"inheritContainedBg",k("palette-grey-300")),N(y.Button,"inheritContainedHoverBg",k("palette-grey-A100")),N(y.Chip,"defaultBorder",k("palette-grey-400")),N(y.Chip,"defaultAvatarColor",k("palette-grey-700")),N(y.Chip,"defaultIconColor",k("palette-grey-700")),N(y.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),N(y.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),N(y.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),N(y.LinearProgress,"primaryBg",Q(Ut,y.primary.main,.62)),N(y.LinearProgress,"secondaryBg",Q(Ut,y.secondary.main,.62)),N(y.LinearProgress,"errorBg",Q(Ut,y.error.main,.62)),N(y.LinearProgress,"infoBg",Q(Ut,y.info.main,.62)),N(y.LinearProgress,"successBg",Q(Ut,y.success.main,.62)),N(y.LinearProgress,"warningBg",Q(Ut,y.warning.main,.62)),N(y.Skeleton,"bg",X?Q(Ua,y.text.primary,.11):`rgba(${k("palette-text-primaryChannel")} / 0.11)`),N(y.Slider,"primaryTrack",Q(Ut,y.primary.main,.62)),N(y.Slider,"secondaryTrack",Q(Ut,y.secondary.main,.62)),N(y.Slider,"errorTrack",Q(Ut,y.error.main,.62)),N(y.Slider,"infoTrack",Q(Ut,y.info.main,.62)),N(y.Slider,"successTrack",Q(Ut,y.success.main,.62)),N(y.Slider,"warningTrack",Q(Ut,y.warning.main,.62));const at=X?Q(Nt,y.background.default,.6825):_r(y.background.default,.8);N(y.SnackbarContent,"bg",at),N(y.SnackbarContent,"color",fn(()=>X?Us.text.primary:y.getContrastText(at))),N(y.SpeedDialAction,"fabHoverBg",_r(y.background.paper,.15)),N(y.StepConnector,"border",k("palette-grey-400")),N(y.StepContent,"border",k("palette-grey-400")),N(y.Switch,"defaultColor",k("palette-common-white")),N(y.Switch,"defaultDisabledColor",k("palette-grey-100")),N(y.Switch,"primaryDisabledColor",Q(Ut,y.primary.main,.62)),N(y.Switch,"secondaryDisabledColor",Q(Ut,y.secondary.main,.62)),N(y.Switch,"errorDisabledColor",Q(Ut,y.error.main,.62)),N(y.Switch,"infoDisabledColor",Q(Ut,y.info.main,.62)),N(y.Switch,"successDisabledColor",Q(Ut,y.success.main,.62)),N(y.Switch,"warningDisabledColor",Q(Ut,y.warning.main,.62)),N(y.TableCell,"border",Q(Ut,Q(Ua,y.divider,1),.88)),N(y.Tooltip,"bg",Q(Ua,y.grey[700],.92))}if(y.mode==="dark"){N(y.Alert,"errorColor",Q(Ut,y.error.light,.6)),N(y.Alert,"infoColor",Q(Ut,y.info.light,.6)),N(y.Alert,"successColor",Q(Ut,y.success.light,.6)),N(y.Alert,"warningColor",Q(Ut,y.warning.light,.6)),N(y.Alert,"errorFilledBg",k("palette-error-dark")),N(y.Alert,"infoFilledBg",k("palette-info-dark")),N(y.Alert,"successFilledBg",k("palette-success-dark")),N(y.Alert,"warningFilledBg",k("palette-warning-dark")),N(y.Alert,"errorFilledColor",fn(()=>y.getContrastText(y.error.dark))),N(y.Alert,"infoFilledColor",fn(()=>y.getContrastText(y.info.dark))),N(y.Alert,"successFilledColor",fn(()=>y.getContrastText(y.success.dark))),N(y.Alert,"warningFilledColor",fn(()=>y.getContrastText(y.warning.dark))),N(y.Alert,"errorStandardBg",Q(Nt,y.error.light,.9)),N(y.Alert,"infoStandardBg",Q(Nt,y.info.light,.9)),N(y.Alert,"successStandardBg",Q(Nt,y.success.light,.9)),N(y.Alert,"warningStandardBg",Q(Nt,y.warning.light,.9)),N(y.Alert,"errorIconColor",k("palette-error-main")),N(y.Alert,"infoIconColor",k("palette-info-main")),N(y.Alert,"successIconColor",k("palette-success-main")),N(y.Alert,"warningIconColor",k("palette-warning-main")),N(y.AppBar,"defaultBg",k("palette-grey-900")),N(y.AppBar,"darkBg",k("palette-background-paper")),N(y.AppBar,"darkColor",k("palette-text-primary")),N(y.Avatar,"defaultBg",k("palette-grey-600")),N(y.Button,"inheritContainedBg",k("palette-grey-800")),N(y.Button,"inheritContainedHoverBg",k("palette-grey-700")),N(y.Chip,"defaultBorder",k("palette-grey-700")),N(y.Chip,"defaultAvatarColor",k("palette-grey-300")),N(y.Chip,"defaultIconColor",k("palette-grey-300")),N(y.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),N(y.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),N(y.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),N(y.LinearProgress,"primaryBg",Q(Nt,y.primary.main,.5)),N(y.LinearProgress,"secondaryBg",Q(Nt,y.secondary.main,.5)),N(y.LinearProgress,"errorBg",Q(Nt,y.error.main,.5)),N(y.LinearProgress,"infoBg",Q(Nt,y.info.main,.5)),N(y.LinearProgress,"successBg",Q(Nt,y.success.main,.5)),N(y.LinearProgress,"warningBg",Q(Nt,y.warning.main,.5)),N(y.Skeleton,"bg",X?Q(Ua,y.text.primary,.13):`rgba(${k("palette-text-primaryChannel")} / 0.13)`),N(y.Slider,"primaryTrack",Q(Nt,y.primary.main,.5)),N(y.Slider,"secondaryTrack",Q(Nt,y.secondary.main,.5)),N(y.Slider,"errorTrack",Q(Nt,y.error.main,.5)),N(y.Slider,"infoTrack",Q(Nt,y.info.main,.5)),N(y.Slider,"successTrack",Q(Nt,y.success.main,.5)),N(y.Slider,"warningTrack",Q(Nt,y.warning.main,.5));const at=X?Q(Ut,y.background.default,.985):_r(y.background.default,.98);N(y.SnackbarContent,"bg",at),N(y.SnackbarContent,"color",fn(()=>X?Gy.text.primary:y.getContrastText(at))),N(y.SpeedDialAction,"fabHoverBg",_r(y.background.paper,.15)),N(y.StepConnector,"border",k("palette-grey-600")),N(y.StepContent,"border",k("palette-grey-600")),N(y.Switch,"defaultColor",k("palette-grey-300")),N(y.Switch,"defaultDisabledColor",k("palette-grey-600")),N(y.Switch,"primaryDisabledColor",Q(Nt,y.primary.main,.55)),N(y.Switch,"secondaryDisabledColor",Q(Nt,y.secondary.main,.55)),N(y.Switch,"errorDisabledColor",Q(Nt,y.error.main,.55)),N(y.Switch,"infoDisabledColor",Q(Nt,y.info.main,.55)),N(y.Switch,"successDisabledColor",Q(Nt,y.success.main,.55)),N(y.Switch,"warningDisabledColor",Q(Nt,y.warning.main,.55)),N(y.TableCell,"border",Q(Nt,Q(Ua,y.divider,1),.68)),N(y.Tooltip,"bg",Q(Ua,y.grey[700],.92))}Nn(y.background,"default"),Nn(y.background,"paper"),Nn(y.common,"background"),Nn(y.common,"onBackground"),Nn(y,"divider"),Object.keys(y).forEach(at=>{const O=y[at];at!=="tonalOffset"&&O&&typeof O=="object"&&(O.main&&N(y[at],"mainChannel",$i(Qi(O.main))),O.light&&N(y[at],"lightChannel",$i(Qi(O.light))),O.dark&&N(y[at],"darkChannel",$i(Qi(O.dark))),O.contrastText&&N(y[at],"contrastTextChannel",$i(Qi(O.contrastText))),at==="text"&&(Nn(y[at],"primary"),Nn(y[at],"secondary")),at==="action"&&(O.active&&Nn(y[at],"active"),O.selected&&Nn(y[at],"selected")))})}),G=i.reduce((ct,y)=>Ge(ct,y),G);const V={prefix:d,disableCssColorScheme:s,shouldSkipGeneratingVar:g,getSelector:$S(G),enableContrastVars:m},{vars:dt,generateThemeVars:ht,generateStyleSheets:gt}=mS(G,V);return G.vars=dt,Object.entries(G.colorSchemes[G.defaultColorScheme]).forEach(([ct,y])=>{G[ct]=y}),G.generateThemeVars=ht,G.generateStyleSheets=gt,G.generateSpacing=function(){return Ry(A.spacing,lf(this))},G.getColorSchemeSelector=yS(v),G.spacing=G.generateSpacing(),G.shouldSkipGeneratingVar=g,G.unstable_sxConfig={...au,...A?.unstable_sxConfig},G.unstable_sx=function(y){return Ga({sx:y,theme:this})},G.toRuntimeSource=Vy,G}function ey(l,i,c){l.colorSchemes&&c&&(l.colorSchemes[i]={...c!==!0&&c,palette:of({...c===!0?{}:c.palette,mode:i})})}function Qy(l={},...i){const{palette:c,cssVariables:o=!1,colorSchemes:s=c?void 0:{light:!0},defaultColorScheme:d=c?.mode,...m}=l,g=d||"light",v=s?.[g],p={...s,...c?{[g]:{...typeof v!="boolean"&&v,palette:c}}:void 0};if(o===!1){if(!("colorSchemes"in l))return Hs(l,...i);let A=c;"palette"in l||p[g]&&(p[g]!==!0?A=p[g].palette:g==="dark"&&(A={mode:"dark"}));const E=Hs({...l,palette:A},...i);return E.defaultColorScheme=g,E.colorSchemes=p,E.palette.mode==="light"&&(E.colorSchemes.light={...p.light!==!0&&p.light,palette:E.palette},ey(E,"dark",p.dark)),E.palette.mode==="dark"&&(E.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:E.palette},ey(E,"light",p.light)),E}return!c&&!("light"in p)&&g==="light"&&(p.light=!0),KS({...m,colorSchemes:p,defaultColorScheme:g,...typeof o!="boolean"&&o},...i)}const Zy=Qy();function JS(l){return l!=="ownerState"&&l!=="theme"&&l!=="sx"&&l!=="as"}const ky=l=>JS(l)&&l!=="classes",ye=Q1({themeId:Ks,defaultTheme:Zy,rootShouldForwardProp:ky});function WS(l){return lt.jsx(j1,{...l,defaultTheme:Zy,themeId:Ks})}function Ky(l){return function(c){return lt.jsx(WS,{styles:typeof l=="function"?o=>l({theme:o,...c}):l})}}function FS(){return Dy}const Ln=sS;function Va(l){return uS(l)}function Rr(l){const i=Z.useRef(l);return W1(()=>{i.current=l}),Z.useRef((...c)=>(0,i.current)(...c)).current}function ny(...l){const i=Z.useRef(void 0),c=Z.useCallback(o=>{const s=l.map(d=>{if(d==null)return null;if(typeof d=="function"){const m=d,g=m(o);return typeof g=="function"?g:()=>{m(null)}}return d.current=o,()=>{d.current=null}});return()=>{s.forEach(d=>d?.())}},l);return Z.useMemo(()=>l.every(o=>o==null)?null:o=>{i.current&&(i.current(),i.current=void 0),o!=null&&(i.current=c(o))},l)}function PS(l,i){if(l==null)return{};var c={};for(var o in l)if({}.hasOwnProperty.call(l,o)){if(i.indexOf(o)!==-1)continue;c[o]=l[o]}return c}function js(l,i){return js=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,o){return c.__proto__=o,c},js(l,i)}function IS(l,i){l.prototype=Object.create(i.prototype),l.prototype.constructor=l,js(l,i)}const ay=Hl.createContext(null);function t2(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function sf(l,i){var c=function(d){return i&&Z.isValidElement(d)?i(d):d},o=Object.create(null);return l&&Z.Children.map(l,function(s){return s}).forEach(function(s){o[s.key]=c(s)}),o}function e2(l,i){l=l||{},i=i||{};function c(A){return A in i?i[A]:l[A]}var o=Object.create(null),s=[];for(var d in l)d in i?s.length&&(o[d]=s,s=[]):s.push(d);var m,g={};for(var v in i){if(o[v])for(m=0;m{this.currentId=null,c()},i)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function c2(){const l=Jy(df.create).current;return r2(l.disposeEffect),l}function iy(l){try{return l.matches(":focus-visible")}catch{}return!1}class Lr{static create(){return new Lr}static use(){const i=Jy(Lr.create).current,[c,o]=Z.useState(!1);return i.shouldMount=c,i.setShouldMount=o,Z.useEffect(i.mountEffect,[c]),i}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=s2(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...i){this.mount().then(()=>this.ref.current?.start(...i))}stop(...i){this.mount().then(()=>this.ref.current?.stop(...i))}pulsate(...i){this.mount().then(()=>this.ref.current?.pulsate(...i))}}function o2(){return Lr.use()}function s2(){let l,i;const c=new Promise((o,s)=>{l=o,i=s});return c.resolve=l,c.reject=i,c}function f2(l){const{className:i,classes:c,pulsate:o=!1,rippleX:s,rippleY:d,rippleSize:m,in:g,onExited:v,timeout:p}=l,[A,E]=Z.useState(!1),D=me(i,c.ripple,c.rippleVisible,o&&c.ripplePulsate),q={width:m,height:m,top:-(m/2)+d,left:-(m/2)+s},R=me(c.child,A&&c.childLeaving,o&&c.childPulsate);return!g&&!A&&E(!0),Z.useEffect(()=>{if(!g&&v!=null){const _=setTimeout(v,p);return()=>{clearTimeout(_)}}},[v,g,p]),lt.jsx("span",{className:D,style:q,children:lt.jsx("span",{className:R})})}const Fe=Ya("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ls=550,d2=80,h2=ya` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`,m2=ya` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`,y2=ya` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`,p2=ye("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),g2=ye(f2,{name:"MuiTouchRipple",slot:"Ripple"})` + opacity: 0; + position: absolute; + + &.${Fe.rippleVisible} { + opacity: 0.3; + transform: scale(1); + animation-name: ${h2}; + animation-duration: ${Ls}ms; + animation-timing-function: ${({theme:l})=>l.transitions.easing.easeInOut}; + } + + &.${Fe.ripplePulsate} { + animation-duration: ${({theme:l})=>l.transitions.duration.shorter}ms; + } + + & .${Fe.child} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${Fe.childLeaving} { + opacity: 0; + animation-name: ${m2}; + animation-duration: ${Ls}ms; + animation-timing-function: ${({theme:l})=>l.transitions.easing.easeInOut}; + } + + & .${Fe.childPulsate} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${y2}; + animation-duration: 2500ms; + animation-timing-function: ${({theme:l})=>l.transitions.easing.easeInOut}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`,v2=Z.forwardRef(function(i,c){const o=Va({props:i,name:"MuiTouchRipple"}),{center:s=!1,classes:d={},className:m,...g}=o,[v,p]=Z.useState([]),A=Z.useRef(0),E=Z.useRef(null);Z.useEffect(()=>{E.current&&(E.current(),E.current=null)},[v]);const D=Z.useRef(!1),q=c2(),R=Z.useRef(null),_=Z.useRef(null),Y=Z.useCallback(X=>{const{pulsate:U,rippleX:G,rippleY:V,rippleSize:dt,cb:ht}=X;p(gt=>[...gt,lt.jsx(g2,{classes:{ripple:me(d.ripple,Fe.ripple),rippleVisible:me(d.rippleVisible,Fe.rippleVisible),ripplePulsate:me(d.ripplePulsate,Fe.ripplePulsate),child:me(d.child,Fe.child),childLeaving:me(d.childLeaving,Fe.childLeaving),childPulsate:me(d.childPulsate,Fe.childPulsate)},timeout:Ls,pulsate:U,rippleX:G,rippleY:V,rippleSize:dt},A.current)]),A.current+=1,E.current=ht},[d]),J=Z.useCallback((X={},U={},G=()=>{})=>{const{pulsate:V=!1,center:dt=s||U.pulsate,fakeElement:ht=!1}=U;if(X?.type==="mousedown"&&D.current){D.current=!1;return}X?.type==="touchstart"&&(D.current=!0);const gt=ht?null:_.current,ct=gt?gt.getBoundingClientRect():{width:0,height:0,left:0,top:0};let y,k,Q;if(dt||X===void 0||X.clientX===0&&X.clientY===0||!X.clientX&&!X.touches)y=Math.round(ct.width/2),k=Math.round(ct.height/2);else{const{clientX:at,clientY:O}=X.touches&&X.touches.length>0?X.touches[0]:X;y=Math.round(at-ct.left),k=Math.round(O-ct.top)}if(dt)Q=Math.sqrt((2*ct.width**2+ct.height**2)/3),Q%2===0&&(Q+=1);else{const at=Math.max(Math.abs((gt?gt.clientWidth:0)-y),y)*2+2,O=Math.max(Math.abs((gt?gt.clientHeight:0)-k),k)*2+2;Q=Math.sqrt(at**2+O**2)}X?.touches?R.current===null&&(R.current=()=>{Y({pulsate:V,rippleX:y,rippleY:k,rippleSize:Q,cb:G})},q.start(d2,()=>{R.current&&(R.current(),R.current=null)})):Y({pulsate:V,rippleX:y,rippleY:k,rippleSize:Q,cb:G})},[s,Y,q]),F=Z.useCallback(()=>{J({},{pulsate:!0})},[J]),P=Z.useCallback((X,U)=>{if(q.clear(),X?.type==="touchend"&&R.current){R.current(),R.current=null,q.start(0,()=>{P(X,U)});return}R.current=null,p(G=>G.length>0?G.slice(1):G),E.current=U},[q]);return Z.useImperativeHandle(c,()=>({pulsate:F,start:J,stop:P}),[F,J,P]),lt.jsx(p2,{className:me(Fe.root,d.root,m),ref:_,...g,children:lt.jsx(ff,{component:null,exit:!0,children:v})})});function b2(l){return Vl("MuiButtonBase",l)}const S2=Ya("MuiButtonBase",["root","disabled","focusVisible"]),T2=l=>{const{disabled:i,focusVisible:c,focusVisibleClassName:o,classes:s}=l,m=lu({root:["root",i&&"disabled",c&&"focusVisible"]},b2,s);return c&&o&&(m.root+=` ${o}`),m},C2=ye("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${S2.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),E2=Z.forwardRef(function(i,c){const o=Va({props:i,name:"MuiButtonBase"}),{action:s,centerRipple:d=!1,children:m,className:g,component:v="button",disabled:p=!1,disableRipple:A=!1,disableTouchRipple:E=!1,focusRipple:D=!1,focusVisibleClassName:q,LinkComponent:R="a",onBlur:_,onClick:Y,onContextMenu:J,onDragLeave:F,onFocus:P,onFocusVisible:X,onKeyDown:U,onKeyUp:G,onMouseDown:V,onMouseLeave:dt,onMouseUp:ht,onTouchEnd:gt,onTouchMove:ct,onTouchStart:y,tabIndex:k=0,TouchRippleProps:Q,touchRippleRef:at,type:O,...$}=o,et=Z.useRef(null),rt=o2(),wt=ny(rt.ref,at),[S,j]=Z.useState(!1);p&&S&&j(!1),Z.useImperativeHandle(s,()=>({focusVisible:()=>{j(!0),et.current.focus()}}),[]);const W=rt.shouldMount&&!A&&!p;Z.useEffect(()=>{S&&D&&!A&&rt.pulsate()},[A,D,S,rt]);const tt=Un(rt,"start",V,E),ot=Un(rt,"stop",J,E),pt=Un(rt,"stop",F,E),Et=Un(rt,"stop",ht,E),re=Un(rt,"stop",ft=>{S&&ft.preventDefault(),dt&&dt(ft)},E),Qt=Un(rt,"start",y,E),pa=Un(rt,"stop",gt,E),Xa=Un(rt,"stop",ct,E),Xl=Un(rt,"stop",ft=>{iy(ft.target)||j(!1),_&&_(ft)},!1),iu=Rr(ft=>{et.current||(et.current=ft.currentTarget),iy(ft.target)&&(j(!0),X&&X(ft)),P&&P(ft)}),en=()=>{const ft=et.current;return v&&v!=="button"&&!(ft.tagName==="A"&&ft.href)},$l=Rr(ft=>{D&&!ft.repeat&&S&&ft.key===" "&&rt.stop(ft,()=>{rt.start(ft)}),ft.target===ft.currentTarget&&en()&&ft.key===" "&&ft.preventDefault(),U&&U(ft),ft.target===ft.currentTarget&&en()&&ft.key==="Enter"&&!p&&(ft.preventDefault(),Y&&Y(ft))}),Ql=Rr(ft=>{D&&ft.key===" "&&S&&!ft.defaultPrevented&&rt.stop(ft,()=>{rt.pulsate(ft)}),G&&G(ft),Y&&ft.target===ft.currentTarget&&en()&&ft.key===" "&&!ft.defaultPrevented&&Y(ft)});let $a=v;$a==="button"&&($.href||$.to)&&($a=R);const qn={};if($a==="button"){const ft=!!$.formAction;qn.type=O===void 0&&!ft?"button":O,qn.disabled=p}else!$.href&&!$.to&&(qn.role="button"),p&&(qn["aria-disabled"]=p);const Zl=ny(c,et),Qa={...o,centerRipple:d,component:v,disabled:p,disableRipple:A,disableTouchRipple:E,focusRipple:D,tabIndex:k,focusVisible:S},kl=T2(Qa);return lt.jsxs(C2,{as:$a,className:me(kl.root,g),ownerState:Qa,onBlur:Xl,onClick:Y,onContextMenu:ot,onFocus:iu,onKeyDown:$l,onKeyUp:Ql,onMouseDown:tt,onMouseLeave:re,onMouseUp:Et,onDragLeave:pt,onTouchEnd:pa,onTouchMove:Xa,onTouchStart:Qt,ref:Zl,tabIndex:p?-1:k,type:O,...qn,...$,children:[m,W?lt.jsx(v2,{ref:wt,center:d,...Q}):null]})});function Un(l,i,c,o=!1){return Rr(s=>(c&&c(s),o||l[i](s),!0))}function _2(l){return typeof l.main=="string"}function A2(l,i=[]){if(!_2(l))return!1;for(const c of i)if(!l.hasOwnProperty(c)||typeof l[c]!="string")return!1;return!0}function ma(l=[]){return([,i])=>i&&A2(i,l)}function x2(l){return Vl("MuiCircularProgress",l)}Ya("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const un=44,qs=ya` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`,Gs=ya` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: -126px; + } +`,z2=typeof qs!="string"?Yl` + animation: ${qs} 1.4s linear infinite; + `:null,O2=typeof Gs!="string"?Yl` + animation: ${Gs} 1.4s ease-in-out infinite; + `:null,M2=l=>{const{classes:i,variant:c,color:o,disableShrink:s}=l,d={root:["root",c,`color${Rt(o)}`],svg:["svg"],track:["track"],circle:["circle",`circle${Rt(c)}`,s&&"circleDisableShrink"]};return lu(d,x2,i)},R2=ye("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(l,i)=>{const{ownerState:c}=l;return[i.root,i[c.variant],i[`color${Rt(c.color)}`]]}})(Ln(({theme:l})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:l.transitions.create("transform")}},{props:{variant:"indeterminate"},style:z2||{animation:`${qs} 1.4s linear infinite`}},...Object.entries(l.palette).filter(ma()).map(([i])=>({props:{color:i},style:{color:(l.vars||l).palette[i].main}}))]}))),w2=ye("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),D2=ye("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(l,i)=>{const{ownerState:c}=l;return[i.circle,i[`circle${Rt(c.variant)}`],c.disableShrink&&i.circleDisableShrink]}})(Ln(({theme:l})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:l.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:i})=>i.variant==="indeterminate"&&!i.disableShrink,style:O2||{animation:`${Gs} 1.4s ease-in-out infinite`}}]}))),B2=ye("circle",{name:"MuiCircularProgress",slot:"Track"})(Ln(({theme:l})=>({stroke:"currentColor",opacity:(l.vars||l).palette.action.activatedOpacity}))),N2=Z.forwardRef(function(i,c){const o=Va({props:i,name:"MuiCircularProgress"}),{className:s,color:d="primary",disableShrink:m=!1,enableTrackSlot:g=!1,size:v=40,style:p,thickness:A=3.6,value:E=0,variant:D="indeterminate",...q}=o,R={...o,color:d,disableShrink:m,size:v,thickness:A,value:E,variant:D,enableTrackSlot:g},_=M2(R),Y={},J={},F={};if(D==="determinate"){const P=2*Math.PI*((un-A)/2);Y.strokeDasharray=P.toFixed(3),F["aria-valuenow"]=Math.round(E),Y.strokeDashoffset=`${((100-E)/100*P).toFixed(3)}px`,J.transform="rotate(-90deg)"}return lt.jsx(R2,{className:me(_.root,s),style:{width:v,height:v,...J,...p},ownerState:R,ref:c,role:"progressbar",...F,...q,children:lt.jsxs(w2,{className:_.svg,ownerState:R,viewBox:`${un/2} ${un/2} ${un} ${un}`,children:[g?lt.jsx(B2,{className:_.track,ownerState:R,cx:un,cy:un,r:(un-A)/2,fill:"none",strokeWidth:A,"aria-hidden":"true"}):null,lt.jsx(D2,{className:_.circle,style:Y,ownerState:R,cx:un,cy:un,r:(un-A)/2,fill:"none",strokeWidth:A})]})})});function U2(l){return Vl("MuiTypography",l)}Ya("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const H2={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},j2=FS(),L2=l=>{const{align:i,gutterBottom:c,noWrap:o,paragraph:s,variant:d,classes:m}=l,g={root:["root",d,l.align!=="inherit"&&`align${Rt(i)}`,c&&"gutterBottom",o&&"noWrap",s&&"paragraph"]};return lu(g,U2,m)},q2=ye("span",{name:"MuiTypography",slot:"Root",overridesResolver:(l,i)=>{const{ownerState:c}=l;return[i.root,c.variant&&i[c.variant],c.align!=="inherit"&&i[`align${Rt(c.align)}`],c.noWrap&&i.noWrap,c.gutterBottom&&i.gutterBottom,c.paragraph&&i.paragraph]}})(Ln(({theme:l})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(l.typography).filter(([i,c])=>i!=="inherit"&&c&&typeof c=="object").map(([i,c])=>({props:{variant:i},style:c})),...Object.entries(l.palette).filter(ma()).map(([i])=>({props:{color:i},style:{color:(l.vars||l).palette[i].main}})),...Object.entries(l.palette?.text||{}).filter(([,i])=>typeof i=="string").map(([i])=>({props:{color:`text${Rt(i)}`},style:{color:(l.vars||l).palette.text[i]}})),{props:({ownerState:i})=>i.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:i})=>i.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:i})=>i.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:i})=>i.paragraph,style:{marginBottom:16}}]}))),uy={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},hf=Z.forwardRef(function(i,c){const{color:o,...s}=Va({props:i,name:"MuiTypography"}),d=!H2[o],m=j2({...s,...d&&{color:o}}),{align:g="inherit",className:v,component:p,gutterBottom:A=!1,noWrap:E=!1,paragraph:D=!1,variant:q="body1",variantMapping:R=uy,..._}=m,Y={...m,align:g,color:o,className:v,component:p,gutterBottom:A,noWrap:E,paragraph:D,variant:q,variantMapping:R},J=p||(D?"p":R[q]||uy[q])||"span",F=L2(Y);return lt.jsx(q2,{as:J,ref:c,className:me(F.root,v),..._,ownerState:Y,style:{...g!=="inherit"&&{"--Typography-textAlign":g},..._.style}})}),G2=Ya("MuiBox",["root"]),Y2=Qy(),Hn=G1({themeId:Ks,defaultTheme:Y2,defaultClassName:G2.root,generateClassName:By.generate});function V2(l){return Vl("MuiButton",l)}const Ha=Ya("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),X2=Z.createContext({}),$2=Z.createContext(void 0),Q2=l=>{const{color:i,disableElevation:c,fullWidth:o,size:s,variant:d,loading:m,loadingPosition:g,classes:v}=l,p={root:["root",m&&"loading",d,`${d}${Rt(i)}`,`size${Rt(s)}`,`${d}Size${Rt(s)}`,`color${Rt(i)}`,c&&"disableElevation",o&&"fullWidth",m&&`loadingPosition${Rt(g)}`],startIcon:["icon","startIcon",`iconSize${Rt(s)}`],endIcon:["icon","endIcon",`iconSize${Rt(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},A=lu(p,V2,v);return{...v,...A}},Wy=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Z2=ye(E2,{shouldForwardProp:l=>ky(l)||l==="classes",name:"MuiButton",slot:"Root",overridesResolver:(l,i)=>{const{ownerState:c}=l;return[i.root,i[c.variant],i[`${c.variant}${Rt(c.color)}`],i[`size${Rt(c.size)}`],i[`${c.variant}Size${Rt(c.size)}`],c.color==="inherit"&&i.colorInherit,c.disableElevation&&i.disableElevation,c.fullWidth&&i.fullWidth,c.loading&&i.loading]}})(Ln(({theme:l})=>{const i=l.palette.mode==="light"?l.palette.grey[300]:l.palette.grey[800],c=l.palette.mode==="light"?l.palette.grey.A100:l.palette.grey[700];return{...l.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(l.vars||l).shape.borderRadius,transition:l.transitions.create(["background-color","box-shadow","border-color","color"],{duration:l.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Ha.disabled}`]:{color:(l.vars||l).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(l.vars||l).shadows[2],"&:hover":{boxShadow:(l.vars||l).shadows[4],"@media (hover: none)":{boxShadow:(l.vars||l).shadows[2]}},"&:active":{boxShadow:(l.vars||l).shadows[8]},[`&.${Ha.focusVisible}`]:{boxShadow:(l.vars||l).shadows[6]},[`&.${Ha.disabled}`]:{color:(l.vars||l).palette.action.disabled,boxShadow:(l.vars||l).shadows[0],backgroundColor:(l.vars||l).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Ha.disabled}`]:{border:`1px solid ${(l.vars||l).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(l.palette).filter(ma()).map(([o])=>({props:{color:o},style:{"--variant-textColor":(l.vars||l).palette[o].main,"--variant-outlinedColor":(l.vars||l).palette[o].main,"--variant-outlinedBorder":l.alpha((l.vars||l).palette[o].main,.5),"--variant-containedColor":(l.vars||l).palette[o].contrastText,"--variant-containedBg":(l.vars||l).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(l.vars||l).palette[o].dark,"--variant-textBg":l.alpha((l.vars||l).palette[o].main,(l.vars||l).palette.action.hoverOpacity),"--variant-outlinedBorder":(l.vars||l).palette[o].main,"--variant-outlinedBg":l.alpha((l.vars||l).palette[o].main,(l.vars||l).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":l.vars?l.vars.palette.Button.inheritContainedBg:i,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":l.vars?l.vars.palette.Button.inheritContainedHoverBg:c,"--variant-textBg":l.alpha((l.vars||l).palette.text.primary,(l.vars||l).palette.action.hoverOpacity),"--variant-outlinedBg":l.alpha((l.vars||l).palette.text.primary,(l.vars||l).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:l.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:l.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:l.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:l.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:l.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:l.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ha.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ha.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:l.transitions.create(["background-color","box-shadow","border-color"],{duration:l.transitions.duration.short}),[`&.${Ha.loading}`]:{color:"transparent"}}}]}})),k2=ye("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(l,i)=>{const{ownerState:c}=l;return[i.startIcon,c.loading&&i.startIconLoadingStart,i[`iconSize${Rt(c.size)}`]]}})(({theme:l})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:l.transitions.create(["opacity"],{duration:l.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Wy]})),K2=ye("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(l,i)=>{const{ownerState:c}=l;return[i.endIcon,c.loading&&i.endIconLoadingEnd,i[`iconSize${Rt(c.size)}`]]}})(({theme:l})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:l.transitions.create(["opacity"],{duration:l.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Wy]})),J2=ye("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:l})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(l.vars||l).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),ry=ye("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),W2=Z.forwardRef(function(i,c){const o=Z.useContext(X2),s=Z.useContext($2),d=jr(o,i),m=Va({props:d,name:"MuiButton"}),{children:g,color:v="primary",component:p="button",className:A,disabled:E=!1,disableElevation:D=!1,disableFocusRipple:q=!1,endIcon:R,focusVisibleClassName:_,fullWidth:Y=!1,id:J,loading:F=null,loadingIndicator:P,loadingPosition:X="center",size:U="medium",startIcon:G,type:V,variant:dt="text",...ht}=m,gt=oS(J),ct=P??lt.jsx(N2,{"aria-labelledby":gt,color:"inherit",size:16}),y={...m,color:v,component:p,disabled:E,disableElevation:D,disableFocusRipple:q,fullWidth:Y,loading:F,loadingIndicator:ct,loadingPosition:X,size:U,type:V,variant:dt},k=Q2(y),Q=(G||F&&X==="start")&<.jsx(k2,{className:k.startIcon,ownerState:y,children:G||lt.jsx(ry,{className:k.loadingIconPlaceholder,ownerState:y})}),at=(R||F&&X==="end")&<.jsx(K2,{className:k.endIcon,ownerState:y,children:R||lt.jsx(ry,{className:k.loadingIconPlaceholder,ownerState:y})}),O=s||"",$=typeof F=="boolean"?lt.jsx("span",{className:k.loadingWrapper,style:{display:"contents"},children:F&<.jsx(J2,{className:k.loadingIndicator,ownerState:y,children:ct})}):null;return lt.jsxs(Z2,{ownerState:y,className:me(o.className,k.root,A,O),component:p,disabled:E||F,focusRipple:!q,focusVisibleClassName:me(k.focusVisible,_),ref:c,type:V,id:F?gt:J,...ht,classes:k,children:[Q,X!=="end"&&$,g,X==="end"&&$,at]})}),Ys=typeof Ky({})=="function",F2=(l,i)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...i&&!l.vars&&{colorScheme:l.palette.mode}}),P2=l=>({color:(l.vars||l).palette.text.primary,...l.typography.body1,backgroundColor:(l.vars||l).palette.background.default,"@media print":{backgroundColor:(l.vars||l).palette.common.white}}),Fy=(l,i=!1)=>{const c={};i&&l.colorSchemes&&typeof l.getColorSchemeSelector=="function"&&Object.entries(l.colorSchemes).forEach(([d,m])=>{const g=l.getColorSchemeSelector(d);g.startsWith("@")?c[g]={":root":{colorScheme:m.palette?.mode}}:c[g.replace(/\s*&/,"")]={colorScheme:m.palette?.mode}});let o={html:F2(l,i),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:l.typography.fontWeightBold},body:{margin:0,...P2(l),"&::backdrop":{backgroundColor:(l.vars||l).palette.background.default}},...c};const s=l.components?.MuiCssBaseline?.styleOverrides;return s&&(o=[o,s]),o},wr="mui-ecs",I2=l=>{const i=Fy(l,!1),c=Array.isArray(i)?i[0]:i;return!l.vars&&c&&(c.html[`:root:has(${wr})`]={colorScheme:l.palette.mode}),l.colorSchemes&&Object.entries(l.colorSchemes).forEach(([o,s])=>{const d=l.getColorSchemeSelector(o);d.startsWith("@")?c[d]={[`:root:not(:has(.${wr}))`]:{colorScheme:s.palette?.mode}}:c[d.replace(/\s*&/,"")]={[`&:not(:has(.${wr}))`]:{colorScheme:s.palette?.mode}}}),i},t3=Ky(Ys?({theme:l,enableColorScheme:i})=>Fy(l,i):({theme:l})=>I2(l));function e3(l){const i=Va({props:l,name:"MuiCssBaseline"}),{children:c,enableColorScheme:o=!1}=i;return lt.jsxs(Z.Fragment,{children:[Ys&<.jsx(t3,{enableColorScheme:o}),!Ys&&!o&<.jsx("span",{className:wr,style:{display:"none"}}),c]})}function n3(l){return Vl("MuiLinearProgress",l)}Ya("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Vs=4,Xs=ya` + 0% { + left: -35%; + right: 100%; + } + + 60% { + left: 100%; + right: -90%; + } + + 100% { + left: 100%; + right: -90%; + } +`,a3=typeof Xs!="string"?Yl` + animation: ${Xs} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; + `:null,$s=ya` + 0% { + left: -200%; + right: 100%; + } + + 60% { + left: 107%; + right: -8%; + } + + 100% { + left: 107%; + right: -8%; + } +`,l3=typeof $s!="string"?Yl` + animation: ${$s} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; + `:null,Qs=ya` + 0% { + opacity: 1; + background-position: 0 -23px; + } + + 60% { + opacity: 0; + background-position: 0 -23px; + } + + 100% { + opacity: 1; + background-position: -200px -23px; + } +`,i3=typeof Qs!="string"?Yl` + animation: ${Qs} 3s infinite linear; + `:null,u3=l=>{const{classes:i,variant:c,color:o}=l,s={root:["root",`color${Rt(o)}`,c],dashed:["dashed",`dashedColor${Rt(o)}`],bar1:["bar","bar1",`barColor${Rt(o)}`,(c==="indeterminate"||c==="query")&&"bar1Indeterminate",c==="determinate"&&"bar1Determinate",c==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",c!=="buffer"&&`barColor${Rt(o)}`,c==="buffer"&&`color${Rt(o)}`,(c==="indeterminate"||c==="query")&&"bar2Indeterminate",c==="buffer"&&"bar2Buffer"]};return lu(s,n3,i)},mf=(l,i)=>l.vars?l.vars.palette.LinearProgress[`${i}Bg`]:l.palette.mode==="light"?l.lighten(l.palette[i].main,.62):l.darken(l.palette[i].main,.5),r3=ye("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(l,i)=>{const{ownerState:c}=l;return[i.root,i[`color${Rt(c.color)}`],i[c.variant]]}})(Ln(({theme:l})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(l.palette).filter(ma()).map(([i])=>({props:{color:i},style:{backgroundColor:mf(l,i)}})),{props:({ownerState:i})=>i.color==="inherit"&&i.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),c3=ye("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(l,i)=>{const{ownerState:c}=l;return[i.dashed,i[`dashedColor${Rt(c.color)}`]]}})(Ln(({theme:l})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(l.palette).filter(ma()).map(([i])=>{const c=mf(l,i);return{props:{color:i},style:{backgroundImage:`radial-gradient(${c} 0%, ${c} 16%, transparent 42%)`}}})]})),i3||{animation:`${Qs} 3s infinite linear`}),o3=ye("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(l,i)=>{const{ownerState:c}=l;return[i.bar,i.bar1,i[`barColor${Rt(c.color)}`],(c.variant==="indeterminate"||c.variant==="query")&&i.bar1Indeterminate,c.variant==="determinate"&&i.bar1Determinate,c.variant==="buffer"&&i.bar1Buffer]}})(Ln(({theme:l})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(l.palette).filter(ma()).map(([i])=>({props:{color:i},style:{backgroundColor:(l.vars||l).palette[i].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Vs}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Vs}s linear`}},{props:({ownerState:i})=>i.variant==="indeterminate"||i.variant==="query",style:{width:"auto"}},{props:({ownerState:i})=>i.variant==="indeterminate"||i.variant==="query",style:a3||{animation:`${Xs} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),s3=ye("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(l,i)=>{const{ownerState:c}=l;return[i.bar,i.bar2,i[`barColor${Rt(c.color)}`],(c.variant==="indeterminate"||c.variant==="query")&&i.bar2Indeterminate,c.variant==="buffer"&&i.bar2Buffer]}})(Ln(({theme:l})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(l.palette).filter(ma()).map(([i])=>({props:{color:i},style:{"--LinearProgressBar2-barColor":(l.vars||l).palette[i].main}})),{props:({ownerState:i})=>i.variant!=="buffer"&&i.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:i})=>i.variant!=="buffer"&&i.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(l.palette).filter(ma()).map(([i])=>({props:{color:i,variant:"buffer"},style:{backgroundColor:mf(l,i),transition:`transform .${Vs}s linear`}})),{props:({ownerState:i})=>i.variant==="indeterminate"||i.variant==="query",style:{width:"auto"}},{props:({ownerState:i})=>i.variant==="indeterminate"||i.variant==="query",style:l3||{animation:`${$s} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),f3=Z.forwardRef(function(i,c){const o=Va({props:i,name:"MuiLinearProgress"}),{className:s,color:d="primary",value:m,valueBuffer:g,variant:v="indeterminate",...p}=o,A={...o,color:d,variant:v},E=u3(A),D=aS(),q={},R={bar1:{},bar2:{}};if((v==="determinate"||v==="buffer")&&m!==void 0){q["aria-valuenow"]=Math.round(m),q["aria-valuemin"]=0,q["aria-valuemax"]=100;let _=m-100;D&&(_=-_),R.bar1.transform=`translateX(${_}%)`}if(v==="buffer"&&g!==void 0){let _=(g||0)-100;D&&(_=-_),R.bar2.transform=`translateX(${_}%)`}return lt.jsxs(r3,{className:me(E.root,s),ownerState:A,role:"progressbar",...q,ref:c,...p,children:[v==="buffer"?lt.jsx(c3,{className:E.dashed,ownerState:A}):null,lt.jsx(o3,{className:E.bar1,ownerState:A,style:R.bar1}),v==="determinate"?null:lt.jsx(s3,{className:E.bar2,ownerState:A,style:R.bar2})]})});function d3(l,i,c,o){if(typeof i=="function"?l!==i||!o:!i.has(l))throw new TypeError("Cannot read private member from an object whose class did not declare it");return c==="m"?o:c==="a"?o.call(l):o?o.value:i.get(l)}function h3(l,i,c,o,s){if(typeof i=="function"?l!==i||!0:!i.has(l))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i.set(l,c),c}var Dr;const Ie="__TAURI_TO_IPC_KEY__";function m3(l,i=!1){return window.__TAURI_INTERNALS__.transformCallback(l,i)}async function K(l,i={},c){return window.__TAURI_INTERNALS__.invoke(l,i,c)}class y3{get rid(){return d3(this,Dr,"f")}constructor(i){Dr.set(this,void 0),h3(this,Dr,i)}async close(){return K("plugin:resources|close",{rid:this.rid})}}Dr=new WeakMap;class Py{constructor(...i){this.type="Logical",i.length===1?"Logical"in i[0]?(this.width=i[0].Logical.width,this.height=i[0].Logical.height):(this.width=i[0].width,this.height=i[0].height):(this.width=i[0],this.height=i[1])}toPhysical(i){return new ki(this.width*i,this.height*i)}[Ie](){return{width:this.width,height:this.height}}toJSON(){return this[Ie]()}}class ki{constructor(...i){this.type="Physical",i.length===1?"Physical"in i[0]?(this.width=i[0].Physical.width,this.height=i[0].Physical.height):(this.width=i[0].width,this.height=i[0].height):(this.width=i[0],this.height=i[1])}toLogical(i){return new Py(this.width/i,this.height/i)}[Ie](){return{width:this.width,height:this.height}}toJSON(){return this[Ie]()}}class Ul{constructor(i){this.size=i}toLogical(i){return this.size instanceof Py?this.size:this.size.toLogical(i)}toPhysical(i){return this.size instanceof ki?this.size:this.size.toPhysical(i)}[Ie](){return{[`${this.size.type}`]:{width:this.size.width,height:this.size.height}}}toJSON(){return this[Ie]()}}class Iy{constructor(...i){this.type="Logical",i.length===1?"Logical"in i[0]?(this.x=i[0].Logical.x,this.y=i[0].Logical.y):(this.x=i[0].x,this.y=i[0].y):(this.x=i[0],this.y=i[1])}toPhysical(i){return new fa(this.x*i,this.y*i)}[Ie](){return{x:this.x,y:this.y}}toJSON(){return this[Ie]()}}class fa{constructor(...i){this.type="Physical",i.length===1?"Physical"in i[0]?(this.x=i[0].Physical.x,this.y=i[0].Physical.y):(this.x=i[0].x,this.y=i[0].y):(this.x=i[0],this.y=i[1])}toLogical(i){return new Iy(this.x/i,this.y/i)}[Ie](){return{x:this.x,y:this.y}}toJSON(){return this[Ie]()}}class Ar{constructor(i){this.position=i}toLogical(i){return this.position instanceof Iy?this.position:this.position.toLogical(i)}toPhysical(i){return this.position instanceof fa?this.position:this.position.toPhysical(i)}[Ie](){return{[`${this.position.type}`]:{x:this.position.x,y:this.position.y}}}toJSON(){return this[Ie]()}}var je;(function(l){l.WINDOW_RESIZED="tauri://resize",l.WINDOW_MOVED="tauri://move",l.WINDOW_CLOSE_REQUESTED="tauri://close-requested",l.WINDOW_DESTROYED="tauri://destroyed",l.WINDOW_FOCUS="tauri://focus",l.WINDOW_BLUR="tauri://blur",l.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",l.WINDOW_THEME_CHANGED="tauri://theme-changed",l.WINDOW_CREATED="tauri://window-created",l.WEBVIEW_CREATED="tauri://webview-created",l.DRAG_ENTER="tauri://drag-enter",l.DRAG_OVER="tauri://drag-over",l.DRAG_DROP="tauri://drag-drop",l.DRAG_LEAVE="tauri://drag-leave"})(je||(je={}));async function tp(l,i){window.__TAURI_EVENT_PLUGIN_INTERNALS__.unregisterListener(l,i),await K("plugin:event|unlisten",{event:l,eventId:i})}async function ep(l,i,c){var o;const s=typeof c?.target=="string"?{kind:"AnyLabel",label:c.target}:(o=c?.target)!==null&&o!==void 0?o:{kind:"Any"};return K("plugin:event|listen",{event:l,target:s,handler:m3(i)}).then(d=>async()=>tp(l,d))}async function p3(l,i,c){return ep(l,o=>{tp(l,o.id),i(o)},c)}async function g3(l,i){await K("plugin:event|emit",{event:l,payload:i})}async function v3(l,i,c){await K("plugin:event|emit_to",{target:typeof l=="string"?{kind:"AnyLabel",label:l}:l,event:i,payload:c})}class Ki extends y3{constructor(i){super(i)}static async new(i,c,o){return K("plugin:image|new",{rgba:qr(i),width:c,height:o}).then(s=>new Ki(s))}static async fromBytes(i){return K("plugin:image|from_bytes",{bytes:qr(i)}).then(c=>new Ki(c))}static async fromPath(i){return K("plugin:image|from_path",{path:i}).then(c=>new Ki(c))}async rgba(){return K("plugin:image|rgba",{rid:this.rid}).then(i=>new Uint8Array(i))}async size(){return K("plugin:image|size",{rid:this.rid})}}function qr(l){return l==null?null:typeof l=="string"?l:l instanceof Ki?l.rid:l}var Zs;(function(l){l[l.Critical=1]="Critical",l[l.Informational=2]="Informational"})(Zs||(Zs={}));class b3{constructor(i){this._preventDefault=!1,this.event=i.event,this.id=i.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}}var cy;(function(l){l.None="none",l.Normal="normal",l.Indeterminate="indeterminate",l.Paused="paused",l.Error="error"})(cy||(cy={}));function np(){return new ap(window.__TAURI_INTERNALS__.metadata.currentWindow.label,{skip:!0})}async function zs(){return K("plugin:window|get_all_windows").then(l=>l.map(i=>new ap(i,{skip:!0})))}const Os=["tauri://created","tauri://error"];class ap{constructor(i,c={}){var o;this.label=i,this.listeners=Object.create(null),c?.skip||K("plugin:window|create",{options:{...c,parent:typeof c.parent=="string"?c.parent:(o=c.parent)===null||o===void 0?void 0:o.label,label:i}}).then(async()=>this.emit("tauri://created")).catch(async s=>this.emit("tauri://error",s))}static async getByLabel(i){var c;return(c=(await zs()).find(o=>o.label===i))!==null&&c!==void 0?c:null}static getCurrent(){return np()}static async getAll(){return zs()}static async getFocusedWindow(){for(const i of await zs())if(await i.isFocused())return i;return null}async listen(i,c){return this._handleTauriEvent(i,c)?()=>{const o=this.listeners[i];o.splice(o.indexOf(c),1)}:ep(i,c,{target:{kind:"Window",label:this.label}})}async once(i,c){return this._handleTauriEvent(i,c)?()=>{const o=this.listeners[i];o.splice(o.indexOf(c),1)}:p3(i,c,{target:{kind:"Window",label:this.label}})}async emit(i,c){if(Os.includes(i)){for(const o of this.listeners[i]||[])o({event:i,id:-1,payload:c});return}return g3(i,c)}async emitTo(i,c,o){if(Os.includes(c)){for(const s of this.listeners[c]||[])s({event:c,id:-1,payload:o});return}return v3(i,c,o)}_handleTauriEvent(i,c){return Os.includes(i)?(i in this.listeners?this.listeners[i].push(c):this.listeners[i]=[c],!0):!1}async scaleFactor(){return K("plugin:window|scale_factor",{label:this.label})}async innerPosition(){return K("plugin:window|inner_position",{label:this.label}).then(i=>new fa(i))}async outerPosition(){return K("plugin:window|outer_position",{label:this.label}).then(i=>new fa(i))}async innerSize(){return K("plugin:window|inner_size",{label:this.label}).then(i=>new ki(i))}async outerSize(){return K("plugin:window|outer_size",{label:this.label}).then(i=>new ki(i))}async isFullscreen(){return K("plugin:window|is_fullscreen",{label:this.label})}async isMinimized(){return K("plugin:window|is_minimized",{label:this.label})}async isMaximized(){return K("plugin:window|is_maximized",{label:this.label})}async isFocused(){return K("plugin:window|is_focused",{label:this.label})}async isDecorated(){return K("plugin:window|is_decorated",{label:this.label})}async isResizable(){return K("plugin:window|is_resizable",{label:this.label})}async isMaximizable(){return K("plugin:window|is_maximizable",{label:this.label})}async isMinimizable(){return K("plugin:window|is_minimizable",{label:this.label})}async isClosable(){return K("plugin:window|is_closable",{label:this.label})}async isVisible(){return K("plugin:window|is_visible",{label:this.label})}async title(){return K("plugin:window|title",{label:this.label})}async theme(){return K("plugin:window|theme",{label:this.label})}async isAlwaysOnTop(){return K("plugin:window|is_always_on_top",{label:this.label})}async center(){return K("plugin:window|center",{label:this.label})}async requestUserAttention(i){let c=null;return i&&(i===Zs.Critical?c={type:"Critical"}:c={type:"Informational"}),K("plugin:window|request_user_attention",{label:this.label,value:c})}async setResizable(i){return K("plugin:window|set_resizable",{label:this.label,value:i})}async setEnabled(i){return K("plugin:window|set_enabled",{label:this.label,value:i})}async isEnabled(){return K("plugin:window|is_enabled",{label:this.label})}async setMaximizable(i){return K("plugin:window|set_maximizable",{label:this.label,value:i})}async setMinimizable(i){return K("plugin:window|set_minimizable",{label:this.label,value:i})}async setClosable(i){return K("plugin:window|set_closable",{label:this.label,value:i})}async setTitle(i){return K("plugin:window|set_title",{label:this.label,value:i})}async maximize(){return K("plugin:window|maximize",{label:this.label})}async unmaximize(){return K("plugin:window|unmaximize",{label:this.label})}async toggleMaximize(){return K("plugin:window|toggle_maximize",{label:this.label})}async minimize(){return K("plugin:window|minimize",{label:this.label})}async unminimize(){return K("plugin:window|unminimize",{label:this.label})}async show(){return K("plugin:window|show",{label:this.label})}async hide(){return K("plugin:window|hide",{label:this.label})}async close(){return K("plugin:window|close",{label:this.label})}async destroy(){return K("plugin:window|destroy",{label:this.label})}async setDecorations(i){return K("plugin:window|set_decorations",{label:this.label,value:i})}async setShadow(i){return K("plugin:window|set_shadow",{label:this.label,value:i})}async setEffects(i){return K("plugin:window|set_effects",{label:this.label,value:i})}async clearEffects(){return K("plugin:window|set_effects",{label:this.label,value:null})}async setAlwaysOnTop(i){return K("plugin:window|set_always_on_top",{label:this.label,value:i})}async setAlwaysOnBottom(i){return K("plugin:window|set_always_on_bottom",{label:this.label,value:i})}async setContentProtected(i){return K("plugin:window|set_content_protected",{label:this.label,value:i})}async setSize(i){return K("plugin:window|set_size",{label:this.label,value:i instanceof Ul?i:new Ul(i)})}async setMinSize(i){return K("plugin:window|set_min_size",{label:this.label,value:i instanceof Ul?i:i?new Ul(i):null})}async setMaxSize(i){return K("plugin:window|set_max_size",{label:this.label,value:i instanceof Ul?i:i?new Ul(i):null})}async setSizeConstraints(i){function c(o){return o?{Logical:o}:null}return K("plugin:window|set_size_constraints",{label:this.label,value:{minWidth:c(i?.minWidth),minHeight:c(i?.minHeight),maxWidth:c(i?.maxWidth),maxHeight:c(i?.maxHeight)}})}async setPosition(i){return K("plugin:window|set_position",{label:this.label,value:i instanceof Ar?i:new Ar(i)})}async setFullscreen(i){return K("plugin:window|set_fullscreen",{label:this.label,value:i})}async setSimpleFullscreen(i){return K("plugin:window|set_simple_fullscreen",{label:this.label,value:i})}async setFocus(){return K("plugin:window|set_focus",{label:this.label})}async setFocusable(i){return K("plugin:window|set_focusable",{label:this.label,value:i})}async setIcon(i){return K("plugin:window|set_icon",{label:this.label,value:qr(i)})}async setSkipTaskbar(i){return K("plugin:window|set_skip_taskbar",{label:this.label,value:i})}async setCursorGrab(i){return K("plugin:window|set_cursor_grab",{label:this.label,value:i})}async setCursorVisible(i){return K("plugin:window|set_cursor_visible",{label:this.label,value:i})}async setCursorIcon(i){return K("plugin:window|set_cursor_icon",{label:this.label,value:i})}async setBackgroundColor(i){return K("plugin:window|set_background_color",{color:i})}async setCursorPosition(i){return K("plugin:window|set_cursor_position",{label:this.label,value:i instanceof Ar?i:new Ar(i)})}async setIgnoreCursorEvents(i){return K("plugin:window|set_ignore_cursor_events",{label:this.label,value:i})}async startDragging(){return K("plugin:window|start_dragging",{label:this.label})}async startResizeDragging(i){return K("plugin:window|start_resize_dragging",{label:this.label,value:i})}async setBadgeCount(i){return K("plugin:window|set_badge_count",{label:this.label,value:i})}async setBadgeLabel(i){return K("plugin:window|set_badge_label",{label:this.label,value:i})}async setOverlayIcon(i){return K("plugin:window|set_overlay_icon",{label:this.label,value:i?qr(i):void 0})}async setProgressBar(i){return K("plugin:window|set_progress_bar",{label:this.label,value:i})}async setVisibleOnAllWorkspaces(i){return K("plugin:window|set_visible_on_all_workspaces",{label:this.label,value:i})}async setTitleBarStyle(i){return K("plugin:window|set_title_bar_style",{label:this.label,value:i})}async setTheme(i){return K("plugin:window|set_theme",{label:this.label,value:i})}async onResized(i){return this.listen(je.WINDOW_RESIZED,c=>{c.payload=new ki(c.payload),i(c)})}async onMoved(i){return this.listen(je.WINDOW_MOVED,c=>{c.payload=new fa(c.payload),i(c)})}async onCloseRequested(i){return this.listen(je.WINDOW_CLOSE_REQUESTED,async c=>{const o=new b3(c);await i(o),o.isPreventDefault()||await this.destroy()})}async onDragDropEvent(i){const c=await this.listen(je.DRAG_ENTER,m=>{i({...m,payload:{type:"enter",paths:m.payload.paths,position:new fa(m.payload.position)}})}),o=await this.listen(je.DRAG_OVER,m=>{i({...m,payload:{type:"over",position:new fa(m.payload.position)}})}),s=await this.listen(je.DRAG_DROP,m=>{i({...m,payload:{type:"drop",paths:m.payload.paths,position:new fa(m.payload.position)}})}),d=await this.listen(je.DRAG_LEAVE,m=>{i({...m,payload:{type:"leave"}})});return()=>{c(),s(),o(),d()}}async onFocusChanged(i){const c=await this.listen(je.WINDOW_FOCUS,s=>{i({...s,payload:!0})}),o=await this.listen(je.WINDOW_BLUR,s=>{i({...s,payload:!1})});return()=>{c(),o()}}async onScaleChanged(i){return this.listen(je.WINDOW_SCALE_FACTOR_CHANGED,i)}async onThemeChanged(i){return this.listen(je.WINDOW_THEME_CHANGED,i)}}var oy;(function(l){l.Disabled="disabled",l.Throttle="throttle",l.Suspend="suspend"})(oy||(oy={}));var sy;(function(l){l.Default="default",l.FluentOverlay="fluentOverlay"})(sy||(sy={}));var fy;(function(l){l.AppearanceBased="appearanceBased",l.Light="light",l.Dark="dark",l.MediumLight="mediumLight",l.UltraDark="ultraDark",l.Titlebar="titlebar",l.Selection="selection",l.Menu="menu",l.Popover="popover",l.Sidebar="sidebar",l.HeaderView="headerView",l.Sheet="sheet",l.WindowBackground="windowBackground",l.HudWindow="hudWindow",l.FullScreenUI="fullScreenUI",l.Tooltip="tooltip",l.ContentBackground="contentBackground",l.UnderWindowBackground="underWindowBackground",l.UnderPageBackground="underPageBackground",l.Mica="mica",l.Blur="blur",l.Acrylic="acrylic",l.Tabbed="tabbed",l.TabbedDark="tabbedDark",l.TabbedLight="tabbedLight"})(fy||(fy={}));var dy;(function(l){l.FollowsWindowActiveState="followsWindowActiveState",l.Active="active",l.Inactive="inactive"})(dy||(dy={}));const S3="/assets/icon-BlfaAlWe.svg",Br=np();function T3(){const[l,i]=Z.useState(null);return Z.useEffect(()=>{const c=Br.listen("app://update-progress",o=>{i(o.payload)});return()=>{c.then(o=>o())}},[]),l}function C3(){const[l,i]=Z.useState(!1);Z.useEffect(()=>{Br.emit("app://update");const o=Br.listen("app://update-error",()=>{i(!0)});return()=>{o.then(s=>s())}},[]);const c=()=>{i(!1),Br.emit("app://update")};return lt.jsxs(lt.Fragment,{children:[lt.jsx(e3,{}),lt.jsx(Hn,{sx:{position:"absolute",inset:0},display:"flex",alignItems:"center",px:2,"data-tauri-drag-region":!0,children:lt.jsxs(Hn,{display:"flex",alignItems:"center",flex:"1","data-tauri-drag-region":!0,children:[lt.jsx(Hn,{component:"img",src:S3,alt:"logo",sx:{width:"4rem",height:"4rem"},"data-tauri-drag-region":!0}),lt.jsx(Hn,{flex:1,ml:2,children:l?lt.jsx(_3,{onRetry:c}):lt.jsx(E3,{})})]})})]})}function E3(){const l=T3();return lt.jsxs(lt.Fragment,{children:[lt.jsx(hf,{variant:"h1",fontSize:"1rem","data-tauri-drag-region":!0,children:"Updating the GUI components..."}),lt.jsx(Hn,{mt:1,children:lt.jsx(A3,{value:l})})]})}function _3({onRetry:l}){return lt.jsxs(lt.Fragment,{children:[lt.jsx(hf,{variant:"h1",fontSize:"1rem","data-tauri-drag-region":!0,children:"Failed to update the GUI components."}),lt.jsx(Hn,{mt:1,"data-tauri-drag-region":!0,children:lt.jsx(W2,{variant:"contained",color:"primary",size:"small",onClick:l,sx:{textTransform:"none"},children:"Retry"})})]})}function A3(l){const{value:i}=l;return lt.jsxs(Hn,{sx:{display:"flex",alignItems:"center"},children:[lt.jsx(Hn,{flex:"1",children:lt.jsx(f3,{variant:i===null?"indeterminate":"determinate",value:i??0,sx:{py:1.2,".MuiLinearProgress-bar":{transition:"none"}}})}),i!==null&<.jsx(Hn,{sx:{minWidth:35,textAlign:"right",ml:1},children:lt.jsx(hf,{variant:"body2",color:"text.secondary",children:`${Math.round(i)}%`})})]})}const x3=Hv.createRoot(document.getElementById("root"));x3.render(lt.jsx(C3,{})); diff --git a/apps/gpgui-helper/dist/assets/main-D4NFppIR.js b/apps/gpgui-helper/dist/assets/main-D4NFppIR.js deleted file mode 100644 index 01a9cc6..0000000 --- a/apps/gpgui-helper/dist/assets/main-D4NFppIR.js +++ /dev/null @@ -1,167 +0,0 @@ -function Av(l,i){for(var c=0;co[s]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const d of s)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&o(m)}).observe(document,{childList:!0,subtree:!0});function c(s){const d={};return s.integrity&&(d.integrity=s.integrity),s.referrerPolicy&&(d.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?d.credentials="include":s.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function o(s){if(s.ep)return;s.ep=!0;const d=c(s);fetch(s.href,d)}})();function xv(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var hs={exports:{}},Gi={};var m0;function zv(){if(m0)return Gi;m0=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function c(o,s,d){var m=null;if(d!==void 0&&(m=""+d),s.key!==void 0&&(m=""+s.key),"key"in s){d={};for(var g in s)g!=="key"&&(d[g]=s[g])}else d=s;return s=d.ref,{$$typeof:l,type:o,key:m,ref:s!==void 0?s:null,props:d}}return Gi.Fragment=i,Gi.jsx=c,Gi.jsxs=c,Gi}var y0;function Ov(){return y0||(y0=1,hs.exports=zv()),hs.exports}var lt=Ov(),ms={exports:{}},Yi={},ys={exports:{}},ps={};var p0;function Mv(){return p0||(p0=1,(function(l){function i(O,$){var et=O.length;O.push($);t:for(;0>>1,wt=O[rt];if(0>>1;rts(W,et))tts(ot,W)?(O[rt]=ot,O[tt]=et,rt=tt):(O[rt]=W,O[j]=et,rt=j);else if(tts(ot,et))O[rt]=ot,O[tt]=et,rt=tt;else break t}}return $}function s(O,$){var et=O.sortIndex-$.sortIndex;return et!==0?et:O.id-$.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;l.unstable_now=function(){return d.now()}}else{var m=Date,g=m.now();l.unstable_now=function(){return m.now()-g}}var v=[],p=[],A=1,E=null,D=3,q=!1,R=!1,_=!1,Y=!1,J=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;function X(O){for(var $=c(p);$!==null;){if($.callback===null)o(p);else if($.startTime<=O)o(p),$.sortIndex=$.expirationTime,i(v,$);else break;$=c(p)}}function U(O){if(_=!1,X(O),!R)if(c(v)!==null)R=!0,G||(G=!0,y());else{var $=c(p);$!==null&&at(U,$.startTime-O)}}var G=!1,V=-1,dt=5,ht=-1;function gt(){return Y?!0:!(l.unstable_now()-htO&>());){var rt=E.callback;if(typeof rt=="function"){E.callback=null,D=E.priorityLevel;var wt=rt(E.expirationTime<=O);if(O=l.unstable_now(),typeof wt=="function"){E.callback=wt,X(O),$=!0;break e}E===c(v)&&o(v),X(O)}else o(v);E=c(v)}if(E!==null)$=!0;else{var S=c(p);S!==null&&at(U,S.startTime-O),$=!1}}break t}finally{E=null,D=et,q=!1}$=void 0}}finally{$?y():G=!1}}}var y;if(typeof P=="function")y=function(){P(ct)};else if(typeof MessageChannel<"u"){var k=new MessageChannel,Q=k.port2;k.port1.onmessage=ct,y=function(){Q.postMessage(null)}}else y=function(){J(ct,0)};function at(O,$){V=J(function(){O(l.unstable_now())},$)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(O){O.callback=null},l.unstable_forceFrameRate=function(O){0>O||125rt?(O.sortIndex=et,i(p,O),c(v)===null&&O===c(p)&&(_?(F(V),V=-1):_=!0,at(U,et-rt))):(O.sortIndex=wt,i(v,O),R||q||(R=!0,G||(G=!0,y()))),O},l.unstable_shouldYield=gt,l.unstable_wrapCallback=function(O){var $=D;return function(){var et=D;D=$;try{return O.apply(this,arguments)}finally{D=et}}}})(ps)),ps}var g0;function Rv(){return g0||(g0=1,ys.exports=Mv()),ys.exports}var gs={exports:{}},st={};var v0;function wv(){if(v0)return st;v0=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),D=Symbol.iterator;function q(S){return S===null||typeof S!="object"?null:(S=D&&S[D]||S["@@iterator"],typeof S=="function"?S:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,Y={};function J(S,j,W){this.props=S,this.context=j,this.refs=Y,this.updater=W||R}J.prototype.isReactComponent={},J.prototype.setState=function(S,j){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,j,"setState")},J.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function F(){}F.prototype=J.prototype;function P(S,j,W){this.props=S,this.context=j,this.refs=Y,this.updater=W||R}var X=P.prototype=new F;X.constructor=P,_(X,J.prototype),X.isPureReactComponent=!0;var U=Array.isArray;function G(){}var V={H:null,A:null,T:null,S:null},dt=Object.prototype.hasOwnProperty;function ht(S,j,W){var tt=W.ref;return{$$typeof:l,type:S,key:j,ref:tt!==void 0?tt:null,props:W}}function gt(S,j){return ht(S.type,j,S.props)}function ct(S){return typeof S=="object"&&S!==null&&S.$$typeof===l}function y(S){var j={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(W){return j[W]})}var k=/\/+/g;function Q(S,j){return typeof S=="object"&&S!==null&&S.key!=null?y(""+S.key):j.toString(36)}function at(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(G,G):(S.status="pending",S.then(function(j){S.status==="pending"&&(S.status="fulfilled",S.value=j)},function(j){S.status==="pending"&&(S.status="rejected",S.reason=j)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function O(S,j,W,tt,ot){var pt=typeof S;(pt==="undefined"||pt==="boolean")&&(S=null);var Et=!1;if(S===null)Et=!0;else switch(pt){case"bigint":case"string":case"number":Et=!0;break;case"object":switch(S.$$typeof){case l:case i:Et=!0;break;case A:return Et=S._init,O(Et(S._payload),j,W,tt,ot)}}if(Et)return ot=ot(S),Et=tt===""?"."+Q(S,0):tt,U(ot)?(W="",Et!=null&&(W=Et.replace(k,"$&/")+"/"),O(ot,j,W,"",function(pa){return pa})):ot!=null&&(ct(ot)&&(ot=gt(ot,W+(ot.key==null||S&&S.key===ot.key?"":(""+ot.key).replace(k,"$&/")+"/")+Et)),j.push(ot)),1;Et=0;var re=tt===""?".":tt+":";if(U(S))for(var Qt=0;Qt"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),vs.exports=Dv(),vs.exports}var C0;function Nv(){if(C0)return Yi;C0=1;var l=Rv(),i=ks(),c=Bv();function o(t){var e="https://react.dev/errors/"+t;if(1wt||(t.current=rt[wt],rt[wt]=null,wt--)}function W(t,e){wt++,rt[wt]=t.current,t.current=e}var tt=S(null),ot=S(null),pt=S(null),Et=S(null);function re(t,e){switch(W(pt,e),W(ot,t),W(tt,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?jm(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=jm(e),t=Lm(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}j(tt),W(tt,t)}function Qt(){j(tt),j(ot),j(pt)}function pa(t){t.memoizedState!==null&&W(Et,t);var e=tt.current,n=Lm(e,t.type);e!==n&&(W(ot,t),W(tt,n))}function Xa(t){ot.current===t&&(j(tt),j(ot)),Et.current===t&&(j(Et),Hi._currentValue=et)}var Xl,iu;function en(t){if(Xl===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Xl=e&&e[1]||"",iu=-1)":-1u||b[a]!==z[u]){var B=` -`+b[a].replace(" at new "," at ");return t.displayName&&B.includes("")&&(B=B.replace("",t.displayName)),B}while(1<=a&&0<=u);break}}}finally{$l=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?en(n):""}function $a(t,e){switch(t.tag){case 26:case 27:case 5:return en(t.type);case 16:return en("Lazy");case 13:return t.child!==e&&e!==null?en("Suspense Fallback"):en("Suspense");case 19:return en("SuspenseList");case 0:case 15:return Ql(t.type,!1);case 11:return Ql(t.type.render,!1);case 1:return Ql(t.type,!0);case 31:return en("Activity");default:return""}}function qn(t){try{var e="",n=null;do e+=$a(t,n),n=t,t=t.return;while(t);return e}catch(a){return` -Error generating stack: `+a.message+` -`+a.stack}}var Zl=Object.prototype.hasOwnProperty,Qa=l.unstable_scheduleCallback,kl=l.unstable_cancelCallback,ft=l.unstable_shouldYield,lp=l.unstable_requestPaint,ze=l.unstable_now,ip=l.unstable_getCurrentPriorityLevel,yf=l.unstable_ImmediatePriority,pf=l.unstable_UserBlockingPriority,uu=l.unstable_NormalPriority,up=l.unstable_LowPriority,gf=l.unstable_IdlePriority,rp=l.log,cp=l.unstable_setDisableYieldValue,Kl=null,Oe=null;function Gn(t){if(typeof rp=="function"&&cp(t),Oe&&typeof Oe.setStrictMode=="function")try{Oe.setStrictMode(Kl,t)}catch{}}var Me=Math.clz32?Math.clz32:fp,op=Math.log,sp=Math.LN2;function fp(t){return t>>>=0,t===0?32:31-(op(t)/sp|0)|0}var ru=256,cu=262144,ou=4194304;function ga(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function su(t,e,n){var a=t.pendingLanes;if(a===0)return 0;var u=0,r=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var h=a&134217727;return h!==0?(a=h&~r,a!==0?u=ga(a):(f&=h,f!==0?u=ga(f):n||(n=h&~t,n!==0&&(u=ga(n))))):(h=a&~r,h!==0?u=ga(h):f!==0?u=ga(f):n||(n=a&~t,n!==0&&(u=ga(n)))),u===0?0:e!==0&&e!==u&&(e&r)===0&&(r=u&-u,n=e&-e,r>=n||r===32&&(n&4194048)!==0)?e:u}function Jl(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function dp(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function vf(){var t=ou;return ou<<=1,(ou&62914560)===0&&(ou=4194304),t}function tc(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Wl(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function hp(t,e,n,a,u,r){var f=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var h=t.entanglements,b=t.expirationTimes,z=t.hiddenUpdates;for(n=f&~n;0"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var bp=/[\n"\\]/g;function Ve(t){return t.replace(bp,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function uc(t,e,n,a,u,r,f,h){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ye(e)):t.value!==""+Ye(e)&&(t.value=""+Ye(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?rc(t,f,Ye(e)):n!=null?rc(t,f,Ye(n)):a!=null&&t.removeAttribute("value"),u==null&&r!=null&&(t.defaultChecked=!!r),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.name=""+Ye(h):t.removeAttribute("name")}function wf(t,e,n,a,u,r,f,h){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.type=r),e!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||e!=null)){ic(t);return}n=n!=null?""+Ye(n):"",e=e!=null?""+Ye(e):n,h||e===t.value||(t.value=e),t.defaultValue=e}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=h?t.checked:!!a,t.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),ic(t)}function rc(t,e,n){e==="number"&&hu(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Fa(t,e,n,a){if(t=t.options,e){e={};for(var u=0;u"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),dc=!1;if(vn)try{var ti={};Object.defineProperty(ti,"passive",{get:function(){dc=!0}}),window.addEventListener("test",ti,ti),window.removeEventListener("test",ti,ti)}catch{dc=!1}var Vn=null,hc=null,yu=null;function Lf(){if(yu)return yu;var t,e=hc,n=e.length,a,u="value"in Vn?Vn.value:Vn.textContent,r=u.length;for(t=0;t=ai),$f=" ",Qf=!1;function Zf(t,e){switch(t){case"keyup":return kp.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var el=!1;function Jp(t,e){switch(t){case"compositionend":return kf(e);case"keypress":return e.which!==32?null:(Qf=!0,$f);case"textInput":return t=e.data,t===$f&&Qf?null:t;default:return null}}function Wp(t,e){if(el)return t==="compositionend"||!vc&&Zf(t,e)?(t=Lf(),yu=hc=Vn=null,el=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=a}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=ed(n)}}function ad(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?ad(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function ld(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=hu(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=hu(t.document)}return e}function Tc(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var lg=vn&&"documentMode"in document&&11>=document.documentMode,nl=null,Cc=null,ri=null,Ec=!1;function id(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ec||nl==null||nl!==hu(a)||(a=nl,"selectionStart"in a&&Tc(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),ri&&ui(ri,a)||(ri=a,a=cr(Cc,"onSelect"),0>=f,u-=f,rn=1<<32-Me(e)+u|n<yt?(Tt=nt,nt=null):Tt=nt.sibling;var At=M(C,nt,x[yt],H);if(At===null){nt===null&&(nt=Tt);break}t&&nt&&At.alternate===null&&e(C,nt),T=r(At,T,yt),_t===null?it=At:_t.sibling=At,_t=At,nt=Tt}if(yt===x.length)return n(C,nt),Ct&&Sn(C,yt),it;if(nt===null){for(;ytyt?(Tt=nt,nt=null):Tt=nt.sibling;var sa=M(C,nt,At.value,H);if(sa===null){nt===null&&(nt=Tt);break}t&&nt&&sa.alternate===null&&e(C,nt),T=r(sa,T,yt),_t===null?it=sa:_t.sibling=sa,_t=sa,nt=Tt}if(At.done)return n(C,nt),Ct&&Sn(C,yt),it;if(nt===null){for(;!At.done;yt++,At=x.next())At=L(C,At.value,H),At!==null&&(T=r(At,T,yt),_t===null?it=At:_t.sibling=At,_t=At);return Ct&&Sn(C,yt),it}for(nt=a(nt);!At.done;yt++,At=x.next())At=w(nt,C,yt,At.value,H),At!==null&&(t&&At.alternate!==null&&nt.delete(At.key===null?yt:At.key),T=r(At,T,yt),_t===null?it=At:_t.sibling=At,_t=At);return t&&nt.forEach(function(_v){return e(C,_v)}),Ct&&Sn(C,yt),it}function Lt(C,T,x,H){if(typeof x=="object"&&x!==null&&x.type===_&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case q:t:{for(var it=x.key;T!==null;){if(T.key===it){if(it=x.type,it===_){if(T.tag===7){n(C,T.sibling),H=u(T,x.props.children),H.return=C,C=H;break t}}else if(T.elementType===it||typeof it=="object"&&it!==null&&it.$$typeof===dt&&Oa(it)===T.type){n(C,T.sibling),H=u(T,x.props),hi(H,x),H.return=C,C=H;break t}n(C,T);break}else e(C,T);T=T.sibling}x.type===_?(H=Ea(x.props.children,C.mode,H,x.key),H.return=C,C=H):(H=Au(x.type,x.key,x.props,null,C.mode,H),hi(H,x),H.return=C,C=H)}return f(C);case R:t:{for(it=x.key;T!==null;){if(T.key===it)if(T.tag===4&&T.stateNode.containerInfo===x.containerInfo&&T.stateNode.implementation===x.implementation){n(C,T.sibling),H=u(T,x.children||[]),H.return=C,C=H;break t}else{n(C,T);break}else e(C,T);T=T.sibling}H=Rc(x,C.mode,H),H.return=C,C=H}return f(C);case dt:return x=Oa(x),Lt(C,T,x,H)}if(at(x))return I(C,T,x,H);if(y(x)){if(it=y(x),typeof it!="function")throw Error(o(150));return x=it.call(x),ut(C,T,x,H)}if(typeof x.then=="function")return Lt(C,T,Du(x),H);if(x.$$typeof===P)return Lt(C,T,Ou(C,x),H);Bu(C,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,T!==null&&T.tag===6?(n(C,T.sibling),H=u(T,x),H.return=C,C=H):(n(C,T),H=Mc(x,C.mode,H),H.return=C,C=H),f(C)):n(C,T)}return function(C,T,x,H){try{di=0;var it=Lt(C,T,x,H);return hl=null,it}catch(nt){if(nt===dl||nt===Ru)throw nt;var _t=we(29,nt,null,C.mode);return _t.lanes=H,_t.return=C,_t}finally{}}}var Ra=Od(!0),Md=Od(!1),kn=!1;function Vc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Kn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Jn(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(xt&2)!==0){var u=a.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),a.pending=e,e=_u(t),dd(t,null,n),e}return Eu(t,a,e,n),_u(t)}function mi(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,Sf(t,n)}}function $c(t,e){var n=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var u=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?u=r=f:r=r.next=f,n=n.next}while(n!==null);r===null?u=r=e:r=r.next=e}else u=r=e;n={baseState:a.baseState,firstBaseUpdate:u,lastBaseUpdate:r,shared:a.shared,callbacks:a.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var Qc=!1;function yi(){if(Qc){var t=fl;if(t!==null)throw t}}function pi(t,e,n,a){Qc=!1;var u=t.updateQueue;kn=!1;var r=u.firstBaseUpdate,f=u.lastBaseUpdate,h=u.shared.pending;if(h!==null){u.shared.pending=null;var b=h,z=b.next;b.next=null,f===null?r=z:f.next=z,f=b;var B=t.alternate;B!==null&&(B=B.updateQueue,h=B.lastBaseUpdate,h!==f&&(h===null?B.firstBaseUpdate=z:h.next=z,B.lastBaseUpdate=b))}if(r!==null){var L=u.baseState;f=0,B=z=b=null,h=r;do{var M=h.lane&-536870913,w=M!==h.lane;if(w?(St&M)===M:(a&M)===M){M!==0&&M===sl&&(Qc=!0),B!==null&&(B=B.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});t:{var I=t,ut=h;M=e;var Lt=n;switch(ut.tag){case 1:if(I=ut.payload,typeof I=="function"){L=I.call(Lt,L,M);break t}L=I;break t;case 3:I.flags=I.flags&-65537|128;case 0:if(I=ut.payload,M=typeof I=="function"?I.call(Lt,L,M):I,M==null)break t;L=E({},L,M);break t;case 2:kn=!0}}M=h.callback,M!==null&&(t.flags|=64,w&&(t.flags|=8192),w=u.callbacks,w===null?u.callbacks=[M]:w.push(M))}else w={lane:M,tag:h.tag,payload:h.payload,callback:h.callback,next:null},B===null?(z=B=w,b=L):B=B.next=w,f|=M;if(h=h.next,h===null){if(h=u.shared.pending,h===null)break;w=h,h=w.next,w.next=null,u.lastBaseUpdate=w,u.shared.pending=null}}while(!0);B===null&&(b=L),u.baseState=b,u.firstBaseUpdate=z,u.lastBaseUpdate=B,r===null&&(u.shared.lanes=0),ta|=f,t.lanes=f,t.memoizedState=L}}function Rd(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function wd(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;tr?r:8;var f=O.T,h={};O.T=h,so(t,!1,e,n);try{var b=u(),z=O.S;if(z!==null&&z(h,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var B=hg(b,a);bi(t,e,B,He(t))}else bi(t,e,a,He(t))}catch(L){bi(t,e,{then:function(){},status:"rejected",reason:L},He())}finally{$.p=r,f!==null&&h.types!==null&&(f.types=h.types),O.T=f}}function bg(){}function co(t,e,n,a){if(t.tag!==5)throw Error(o(476));var u=oh(t).queue;ch(t,u,e,et,n===null?bg:function(){return sh(t),n(a)})}function oh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:et,baseState:et,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_n,lastRenderedState:et},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_n,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function sh(t){var e=oh(t);e.next===null&&(e=t.alternate.memoizedState),bi(t,e.next.queue,{},He())}function oo(){return se(Hi)}function fh(){return Ft().memoizedState}function dh(){return Ft().memoizedState}function Sg(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=He();t=Kn(n);var a=Jn(e,t,n);a!==null&&(Ae(a,e,n),mi(a,e,n)),e={cache:Lc()},t.payload=e;return}e=e.return}}function Tg(t,e,n){var a=He();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Xu(t)?mh(e,n):(n=zc(t,e,n,a),n!==null&&(Ae(n,t,a),yh(n,e,a)))}function hh(t,e,n){var a=He();bi(t,e,n,a)}function bi(t,e,n,a){var u={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xu(t))mh(e,u);else{var r=t.alternate;if(t.lanes===0&&(r===null||r.lanes===0)&&(r=e.lastRenderedReducer,r!==null))try{var f=e.lastRenderedState,h=r(f,n);if(u.hasEagerState=!0,u.eagerState=h,Re(h,f))return Eu(t,e,u,0),Gt===null&&Cu(),!1}catch{}finally{}if(n=zc(t,e,u,a),n!==null)return Ae(n,t,a),yh(n,e,a),!0}return!1}function so(t,e,n,a){if(a={lane:2,revertLane:Xo(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Xu(t)){if(e)throw Error(o(479))}else e=zc(t,n,a,2),e!==null&&Ae(e,t,2)}function Xu(t){var e=t.alternate;return t===mt||e!==null&&e===mt}function mh(t,e){yl=Hu=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function yh(t,e,n){if((n&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,Sf(t,n)}}var Si={readContext:se,use:qu,useCallback:Zt,useContext:Zt,useEffect:Zt,useImperativeHandle:Zt,useLayoutEffect:Zt,useInsertionEffect:Zt,useMemo:Zt,useReducer:Zt,useRef:Zt,useState:Zt,useDebugValue:Zt,useDeferredValue:Zt,useTransition:Zt,useSyncExternalStore:Zt,useId:Zt,useHostTransitionStatus:Zt,useFormState:Zt,useActionState:Zt,useOptimistic:Zt,useMemoCache:Zt,useCacheRefresh:Zt};Si.useEffectEvent=Zt;var ph={readContext:se,use:qu,useCallback:function(t,e){return ve().memoizedState=[t,e===void 0?null:e],t},useContext:se,useEffect:Id,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Yu(4194308,4,ah.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Yu(4194308,4,t,e)},useInsertionEffect:function(t,e){Yu(4,2,t,e)},useMemo:function(t,e){var n=ve();e=e===void 0?null:e;var a=t();if(wa){Gn(!0);try{t()}finally{Gn(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=ve();if(n!==void 0){var u=n(e);if(wa){Gn(!0);try{n(e)}finally{Gn(!1)}}}else u=e;return a.memoizedState=a.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},a.queue=t,t=t.dispatch=Tg.bind(null,mt,t),[a.memoizedState,t]},useRef:function(t){var e=ve();return t={current:t},e.memoizedState=t},useState:function(t){t=ao(t);var e=t.queue,n=hh.bind(null,mt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:uo,useDeferredValue:function(t,e){var n=ve();return ro(n,t,e)},useTransition:function(){var t=ao(!1);return t=ch.bind(null,mt,t.queue,!0,!1),ve().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=mt,u=ve();if(Ct){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),Gt===null)throw Error(o(349));(St&127)!==0||jd(a,e,n)}u.memoizedState=n;var r={value:n,getSnapshot:e};return u.queue=r,Id(qd.bind(null,a,r,t),[t]),a.flags|=2048,gl(9,{destroy:void 0},Ld.bind(null,a,r,n,e),null),n},useId:function(){var t=ve(),e=Gt.identifierPrefix;if(Ct){var n=cn,a=rn;n=(a&~(1<<32-Me(a)-1)).toString(32)+n,e="_"+e+"R_"+n,n=ju++,0<\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?r.multiple=!0:a.size&&(r.size=a.size);break;default:r=typeof a.is=="string"?f.createElement(u,{is:a.is}):f.createElement(u)}}r[ce]=e,r[be]=a;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)r.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=r;t:switch(de(r,u,a),u){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&xn(e)}}return Vt(e),Ao(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&xn(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(o(166));if(t=pt.current,cl(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,u=oe,u!==null)switch(u.tag){case 27:case 5:a=u.memoizedProps}t[ce]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Um(t.nodeValue,n)),t||Qn(e,!0)}else t=or(t).createTextNode(a),t[ce]=e,e.stateNode=t}return Vt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(a=cl(e),n!==null){if(t===null){if(!a)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[ce]=e}else _a(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Vt(e),t=!1}else n=Nc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Be(e),e):(Be(e),null);if((e.flags&128)!==0)throw Error(o(558))}return Vt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=cl(e),a!==null&&a.dehydrated!==null){if(t===null){if(!u)throw Error(o(318));if(u=e.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(o(317));u[ce]=e}else _a(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Vt(e),u=!1}else u=Nc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return e.flags&256?(Be(e),e):(Be(e),null)}return Be(e),(e.flags&128)!==0?(e.lanes=n,e):(n=a!==null,t=t!==null&&t.memoizedState!==null,n&&(a=e.child,u=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(u=a.alternate.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==u&&(a.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Ku(e,e.updateQueue),Vt(e),null);case 4:return Qt(),t===null&&ko(e.stateNode.containerInfo),Vt(e),null;case 10:return Cn(e.type),Vt(e),null;case 19:if(j(Wt),a=e.memoizedState,a===null)return Vt(e),null;if(u=(e.flags&128)!==0,r=a.rendering,r===null)if(u)Ci(a,!1);else{if(kt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(r=Uu(t),r!==null){for(e.flags|=128,Ci(a,!1),t=r.updateQueue,e.updateQueue=t,Ku(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)hd(n,t),n=n.sibling;return W(Wt,Wt.current&1|2),Ct&&Sn(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&ze()>Iu&&(e.flags|=128,u=!0,Ci(a,!1),e.lanes=4194304)}else{if(!u)if(t=Uu(r),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,Ku(e,t),Ci(a,!0),a.tail===null&&a.tailMode==="hidden"&&!r.alternate&&!Ct)return Vt(e),null}else 2*ze()-a.renderingStartTime>Iu&&n!==536870912&&(e.flags|=128,u=!0,Ci(a,!1),e.lanes=4194304);a.isBackwards?(r.sibling=e.child,e.child=r):(t=a.last,t!==null?t.sibling=r:e.child=r,a.last=r)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ze(),t.sibling=null,n=Wt.current,W(Wt,u?n&1|2:n&1),Ct&&Sn(e,a.treeForkCount),t):(Vt(e),null);case 22:case 23:return Be(e),kc(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(n&536870912)!==0&&(e.flags&128)===0&&(Vt(e),e.subtreeFlags&6&&(e.flags|=8192)):Vt(e),n=e.updateQueue,n!==null&&Ku(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==n&&(e.flags|=2048),t!==null&&j(za),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),Cn(It),Vt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function xg(t,e){switch(Dc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Cn(It),Qt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Xa(e),null;case 31:if(e.memoizedState!==null){if(Be(e),e.alternate===null)throw Error(o(340));_a()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Be(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));_a()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return j(Wt),null;case 4:return Qt(),null;case 10:return Cn(e.type),null;case 22:case 23:return Be(e),kc(),t!==null&&j(za),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Cn(It),null;case 25:return null;default:return null}}function Gh(t,e){switch(Dc(e),e.tag){case 3:Cn(It),Qt();break;case 26:case 27:case 5:Xa(e);break;case 4:Qt();break;case 31:e.memoizedState!==null&&Be(e);break;case 13:Be(e);break;case 19:j(Wt);break;case 10:Cn(e.type);break;case 22:case 23:Be(e),kc(),t!==null&&j(za);break;case 24:Cn(It)}}function Ei(t,e){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var u=a.next;n=u;do{if((n.tag&t)===t){a=void 0;var r=n.create,f=n.inst;a=r(),f.destroy=a}n=n.next}while(n!==u)}}catch(h){Bt(e,e.return,h)}}function Pn(t,e,n){try{var a=e.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var r=u.next;a=r;do{if((a.tag&t)===t){var f=a.inst,h=f.destroy;if(h!==void 0){f.destroy=void 0,u=e;var b=n,z=h;try{z()}catch(B){Bt(u,b,B)}}}a=a.next}while(a!==r)}}catch(B){Bt(e,e.return,B)}}function Yh(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{wd(e,n)}catch(a){Bt(t,t.return,a)}}}function Vh(t,e,n){n.props=Da(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(a){Bt(t,e,a)}}function _i(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof n=="function"?t.refCleanup=n(a):n.current=a}}catch(u){Bt(t,e,u)}}function on(t,e){var n=t.ref,a=t.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(u){Bt(t,e,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(u){Bt(t,e,u)}else n.current=null}function Xh(t){var e=t.type,n=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break t;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(u){Bt(t,t.return,u)}}function xo(t,e,n){try{var a=t.stateNode;Kg(a,t.type,n,e),a[be]=e}catch(u){Bt(t,t.return,u)}}function $h(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ia(t.type)||t.tag===4}function zo(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||$h(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&ia(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Oo(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=gn));else if(a!==4&&(a===27&&ia(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Oo(t,e,n),t=t.sibling;t!==null;)Oo(t,e,n),t=t.sibling}function Ju(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(a!==4&&(a===27&&ia(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Ju(t,e,n),t=t.sibling;t!==null;)Ju(t,e,n),t=t.sibling}function Qh(t){var e=t.stateNode,n=t.memoizedProps;try{for(var a=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);de(e,a,n),e[ce]=t,e[be]=n}catch(r){Bt(t,t.return,r)}}var zn=!1,ne=!1,Mo=!1,Zh=typeof WeakSet=="function"?WeakSet:Set,ue=null;function zg(t,e){if(t=t.containerInfo,Wo=pr,t=ld(t),Tc(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var u=a.anchorOffset,r=a.focusNode;a=a.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break t}var f=0,h=-1,b=-1,z=0,B=0,L=t,M=null;e:for(;;){for(var w;L!==n||u!==0&&L.nodeType!==3||(h=f+u),L!==r||a!==0&&L.nodeType!==3||(b=f+a),L.nodeType===3&&(f+=L.nodeValue.length),(w=L.firstChild)!==null;)M=L,L=w;for(;;){if(L===t)break e;if(M===n&&++z===u&&(h=f),M===r&&++B===a&&(b=f),(w=L.nextSibling)!==null)break;L=M,M=L.parentNode}L=w}n=h===-1||b===-1?null:{start:h,end:b}}else n=null}n=n||{start:0,end:0}}else n=null;for(Fo={focusedElem:t,selectionRange:n},pr=!1,ue=e;ue!==null;)if(e=ue,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ue=t;else for(;ue!==null;){switch(e=ue,r=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n title"))),de(r,a,n),r[ce]=t,ie(r),a=r;break t;case"link":var f=Pm("link","href",u).get(a+(n.href||""));if(f){for(var h=0;hLt&&(f=Lt,Lt=ut,ut=f);var C=nd(h,ut),T=nd(h,Lt);if(C&&T&&(w.rangeCount!==1||w.anchorNode!==C.node||w.anchorOffset!==C.offset||w.focusNode!==T.node||w.focusOffset!==T.offset)){var x=L.createRange();x.setStart(C.node,C.offset),w.removeAllRanges(),ut>Lt?(w.addRange(x),w.extend(T.node,T.offset)):(x.setEnd(T.node,T.offset),w.addRange(x))}}}}for(L=[],w=h;w=w.parentNode;)w.nodeType===1&&L.push({element:w,left:w.scrollLeft,top:w.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;hn?32:n,O.T=null,n=Ho,Ho=null;var r=na,f=Dn;if(le=0,Cl=na=null,Dn=0,(xt&6)!==0)throw Error(o(331));var h=xt;if(xt|=4,am(r.current),tm(r,r.current,f,n),xt=h,Ri(0,!1),Oe&&typeof Oe.onPostCommitFiberRoot=="function")try{Oe.onPostCommitFiberRoot(Kl,r)}catch{}return!0}finally{$.p=u,O.T=a,Tm(t,e)}}function Em(t,e,n){e=$e(n,e),e=yo(t.stateNode,e,2),t=Jn(t,e,2),t!==null&&(Wl(t,2),sn(t))}function Bt(t,e,n){if(t.tag===3)Em(t,t,n);else for(;e!==null;){if(e.tag===3){Em(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ea===null||!ea.has(a))){t=$e(n,t),n=_h(2),a=Jn(e,n,2),a!==null&&(Ah(n,a,e,t),Wl(a,2),sn(a));break}}e=e.return}}function Go(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new Rg;var u=new Set;a.set(e,u)}else u=a.get(e),u===void 0&&(u=new Set,a.set(e,u));u.has(n)||(Do=!0,u.add(n),t=Ug.bind(null,t,e,n),e.then(t,t))}function Ug(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Gt===t&&(St&n)===n&&(kt===4||kt===3&&(St&62914560)===St&&300>ze()-Pu?(xt&2)===0&&El(t,0):Bo|=n,Tl===St&&(Tl=0)),sn(t)}function _m(t,e){e===0&&(e=vf()),t=Ca(t,e),t!==null&&(Wl(t,e),sn(t))}function Hg(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),_m(t,n)}function jg(t,e){var n=0;switch(t.tag){case 31:case 13:var a=t.stateNode,u=t.memoizedState;u!==null&&(n=u.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(e),_m(t,n)}function Lg(t,e){return Qa(t,e)}var ir=null,Al=null,Yo=!1,ur=!1,Vo=!1,la=0;function sn(t){t!==Al&&t.next===null&&(Al===null?ir=Al=t:Al=Al.next=t),ur=!0,Yo||(Yo=!0,Gg())}function Ri(t,e){if(!Vo&&ur){Vo=!0;do for(var n=!1,a=ir;a!==null;){if(t!==0){var u=a.pendingLanes;if(u===0)var r=0;else{var f=a.suspendedLanes,h=a.pingedLanes;r=(1<<31-Me(42|t)+1)-1,r&=u&~(f&~h),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,Om(a,r))}else r=St,r=su(a,a===Gt?r:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(r&3)===0||Jl(a,r)||(n=!0,Om(a,r));a=a.next}while(n);Vo=!1}}function qg(){Am()}function Am(){ur=Yo=!1;var t=0;la!==0&&Wg()&&(t=la);for(var e=ze(),n=null,a=ir;a!==null;){var u=a.next,r=xm(a,e);r===0?(a.next=null,n===null?ir=u:n.next=u,u===null&&(Al=n)):(n=a,(t!==0||(r&3)!==0)&&(ur=!0)),a=u}le!==0&&le!==5||Ri(t),la!==0&&(la=0)}function xm(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,u=t.expirationTimes,r=t.pendingLanes&-62914561;0h)break;var B=b.transferSize,L=b.initiatorType;B&&Hm(L)&&(b=b.responseEnd,f+=B*(b"u"?null:document;function Km(t,e,n){var a=xl;if(a&&typeof e=="string"&&e){var u=Ve(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),km.has(u)||(km.add(u),t={rel:t,crossOrigin:n,href:e},a.querySelector(u)===null&&(e=a.createElement("link"),de(e,"link",t),ie(e),a.head.appendChild(e)))}}function iv(t){Bn.D(t),Km("dns-prefetch",t,null)}function uv(t,e){Bn.C(t,e),Km("preconnect",t,e)}function rv(t,e,n){Bn.L(t,e,n);var a=xl;if(a&&t&&e){var u='link[rel="preload"][as="'+Ve(e)+'"]';e==="image"&&n&&n.imageSrcSet?(u+='[imagesrcset="'+Ve(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(u+='[imagesizes="'+Ve(n.imageSizes)+'"]')):u+='[href="'+Ve(t)+'"]';var r=u;switch(e){case"style":r=zl(t);break;case"script":r=Ol(t)}We.has(r)||(t=E({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),We.set(r,t),a.querySelector(u)!==null||e==="style"&&a.querySelector(Ni(r))||e==="script"&&a.querySelector(Ui(r))||(e=a.createElement("link"),de(e,"link",t),ie(e),a.head.appendChild(e)))}}function cv(t,e){Bn.m(t,e);var n=xl;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+Ve(a)+'"][href="'+Ve(t)+'"]',r=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Ol(t)}if(!We.has(r)&&(t=E({rel:"modulepreload",href:t},e),We.set(r,t),n.querySelector(u)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ui(r)))return}a=n.createElement("link"),de(a,"link",t),ie(a),n.head.appendChild(a)}}}function ov(t,e,n){Bn.S(t,e,n);var a=xl;if(a&&t){var u=Ja(a).hoistableStyles,r=zl(t);e=e||"default";var f=u.get(r);if(!f){var h={loading:0,preload:null};if(f=a.querySelector(Ni(r)))h.loading=5;else{t=E({rel:"stylesheet",href:t,"data-precedence":e},n),(n=We.get(r))&&ls(t,n);var b=f=a.createElement("link");ie(b),de(b,"link",t),b._p=new Promise(function(z,B){b.onload=z,b.onerror=B}),b.addEventListener("load",function(){h.loading|=1}),b.addEventListener("error",function(){h.loading|=2}),h.loading|=4,fr(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:h},u.set(r,f)}}}function sv(t,e){Bn.X(t,e);var n=xl;if(n&&t){var a=Ja(n).hoistableScripts,u=Ol(t),r=a.get(u);r||(r=n.querySelector(Ui(u)),r||(t=E({src:t,async:!0},e),(e=We.get(u))&&is(t,e),r=n.createElement("script"),ie(r),de(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(u,r))}}function fv(t,e){Bn.M(t,e);var n=xl;if(n&&t){var a=Ja(n).hoistableScripts,u=Ol(t),r=a.get(u);r||(r=n.querySelector(Ui(u)),r||(t=E({src:t,async:!0,type:"module"},e),(e=We.get(u))&&is(t,e),r=n.createElement("script"),ie(r),de(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(u,r))}}function Jm(t,e,n,a){var u=(u=pt.current)?sr(u):null;if(!u)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=zl(n.href),n=Ja(u).hoistableStyles,a=n.get(e),a||(a={type:"style",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=zl(n.href);var r=Ja(u).hoistableStyles,f=r.get(t);if(f||(u=u.ownerDocument||u,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(t,f),(r=u.querySelector(Ni(t)))&&!r._p&&(f.instance=r,f.state.loading=5),We.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},We.set(t,n),r||dv(u,t,n,f.state))),e&&a===null)throw Error(o(528,""));return f}if(e&&a!==null)throw Error(o(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Ol(n),n=Ja(u).hoistableScripts,a=n.get(e),a||(a={type:"script",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function zl(t){return'href="'+Ve(t)+'"'}function Ni(t){return'link[rel="stylesheet"]['+t+"]"}function Wm(t){return E({},t,{"data-precedence":t.precedence,precedence:null})}function dv(t,e,n,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),de(e,"link",n),ie(e),t.head.appendChild(e))}function Ol(t){return'[src="'+Ve(t)+'"]'}function Ui(t){return"script[async]"+t}function Fm(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Ve(n.href)+'"]');if(a)return e.instance=a,ie(a),a;var u=E({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),ie(a),de(a,"style",u),fr(a,n.precedence,t),e.instance=a;case"stylesheet":u=zl(n.href);var r=t.querySelector(Ni(u));if(r)return e.state.loading|=4,e.instance=r,ie(r),r;a=Wm(n),(u=We.get(u))&&ls(a,u),r=(t.ownerDocument||t).createElement("link"),ie(r);var f=r;return f._p=new Promise(function(h,b){f.onload=h,f.onerror=b}),de(r,"link",a),e.state.loading|=4,fr(r,n.precedence,t),e.instance=r;case"script":return r=Ol(n.src),(u=t.querySelector(Ui(r)))?(e.instance=u,ie(u),u):(a=n,(u=We.get(r))&&(a=E({},n),is(a,u)),t=t.ownerDocument||t,u=t.createElement("script"),ie(u),de(u,"link",a),t.head.appendChild(u),e.instance=u);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,fr(a,n.precedence,t));return e.instance}function fr(t,e,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=a.length?a[a.length-1]:null,r=u,f=0;f title"):null)}function hv(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function t0(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function mv(t,e,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var u=zl(a.href),r=e.querySelector(Ni(u));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=hr.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=r,ie(r);return}r=e.ownerDocument||e,a=Wm(a),(u=We.get(u))&&ls(a,u),r=r.createElement("link"),ie(r);var f=r;f._p=new Promise(function(h,b){f.onload=h,f.onerror=b}),de(r,"link",a),n.instance=r}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=hr.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var us=0;function yv(t,e){return t.stylesheets&&t.count===0&&yr(t,t.stylesheets),0us?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(u)}}:null}function hr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)yr(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var mr=null;function yr(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,mr=new Map,e.forEach(pv,t),mr=null,hr.call(t))}function pv(t,e){if(!(e.state.loading&4)){var n=mr.get(t);if(n)var a=n.get(null);else{n=new Map,mr.set(t,n);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),ms.exports=Nv(),ms.exports}var Hv=Uv();const Ji={black:"#000",white:"#fff"},Rl={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},wl={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Dl={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Bl={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Nl={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Vi={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},jv={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function qa(l,...i){const c=new URL(`https://mui.com/production-error/?code=${l}`);return i.forEach(o=>c.searchParams.append("args[]",o)),`Minified MUI error #${l}; visit ${c} for the full message.`}const Ks="$$material";function Nr(){return Nr=Object.assign?Object.assign.bind():function(l){for(var i=1;i0?he(Gl,--xe):0,ql--,ae===10&&(ql=1,Yr--),ae}function qe(){return ae=xe2||Fi(ae)>3?"":" "}function Fv(l,i){for(;--i&&qe()&&!(ae<48||ae>102||ae>57&&ae<65||ae>70&&ae<97););return Ii(l,xr()+(i<6&&yn()==32&&qe()==32))}function ws(l){for(;qe();)switch(ae){case l:return xe;case 34:case 39:l!==34&&l!==39&&ws(ae);break;case 40:l===41&&ws(l);break;case 92:qe();break}return xe}function Pv(l,i){for(;qe()&&l+ae!==57;)if(l+ae===84&&yn()===47)break;return"/*"+Ii(i,xe-1)+"*"+Gr(l===47?l:qe())}function Iv(l){for(;!Fi(yn());)qe();return Ii(l,xe)}function tb(l){return vy(Or("",null,null,null,[""],l=gy(l),0,[0],l))}function Or(l,i,c,o,s,d,m,g,v){for(var p=0,A=0,E=m,D=0,q=0,R=0,_=1,Y=1,J=1,F=0,P="",X=s,U=d,G=o,V=P;Y;)switch(R=F,F=qe()){case 40:if(R!=108&&he(V,E-1)==58){Rs(V+=Ot(zr(F),"&","&\f"),"&\f")!=-1&&(J=-1);break}case 34:case 39:case 91:V+=zr(F);break;case 9:case 10:case 13:case 32:V+=Wv(R);break;case 92:V+=Fv(xr()-1,7);continue;case 47:switch(yn()){case 42:case 47:Er(eb(Pv(qe(),xr()),i,c),v);break;default:V+="/"}break;case 123*_:g[p++]=dn(V)*J;case 125*_:case 59:case 0:switch(F){case 0:case 125:Y=0;case 59+A:J==-1&&(V=Ot(V,/\f/g,"")),q>0&&dn(V)-E&&Er(q>32?A0(V+";",o,c,E-1):A0(Ot(V," ","")+";",o,c,E-2),v);break;case 59:V+=";";default:if(Er(G=_0(V,i,c,p,A,s,g,P,X=[],U=[],E),d),F===123)if(A===0)Or(V,i,G,G,X,d,E,g,U);else switch(D===99&&he(V,3)===110?100:D){case 100:case 108:case 109:case 115:Or(l,G,G,o&&Er(_0(l,G,G,0,0,s,g,P,s,X=[],E),U),s,U,E,g,o?X:U);break;default:Or(V,G,G,G,[""],U,0,g,U)}}p=A=q=0,_=J=1,P=V="",E=m;break;case 58:E=1+dn(V),q=R;default:if(_<1){if(F==123)--_;else if(F==125&&_++==0&&Jv()==125)continue}switch(V+=Gr(F),F*_){case 38:J=A>0?1:(V+="\f",-1);break;case 44:g[p++]=(dn(V)-1)*J,J=1;break;case 64:yn()===45&&(V+=zr(qe())),D=yn(),A=E=dn(P=V+=Iv(xr())),F++;break;case 45:R===45&&dn(V)==2&&(_=0)}}return d}function _0(l,i,c,o,s,d,m,g,v,p,A){for(var E=s-1,D=s===0?d:[""],q=Fs(D),R=0,_=0,Y=0;R0?D[J]+" "+F:Ot(F,/&\f/g,D[J])))&&(v[Y++]=P);return Vr(l,i,c,s===0?Js:g,v,p,A)}function eb(l,i,c){return Vr(l,i,c,hy,Gr(Kv()),Wi(l,2,-2),0)}function A0(l,i,c,o){return Vr(l,i,c,Ws,Wi(l,0,o),Wi(l,o+1,-1),o)}function jl(l,i){for(var c="",o=Fs(l),s=0;s6)switch(he(l,i+1)){case 109:if(he(l,i+4)!==45)break;case 102:return Ot(l,/(.+:)(.+)-([^]+)/,"$1"+zt+"$2-$3$1"+Ur+(he(l,i+3)==108?"$3":"$2-$3"))+l;case 115:return~Rs(l,"stretch")?Sy(Ot(l,"stretch","fill-available"),i)+l:l}break;case 4949:if(he(l,i+1)!==115)break;case 6444:switch(he(l,dn(l)-3-(~Rs(l,"!important")&&10))){case 107:return Ot(l,":",":"+zt)+l;case 101:return Ot(l,/(.+:)([^;!]+)(;|!.+)?/,"$1"+zt+(he(l,14)===45?"inline-":"")+"box$3$1"+zt+"$2$3$1"+ge+"$2box$3")+l}break;case 5936:switch(he(l,i+11)){case 114:return zt+l+ge+Ot(l,/[svh]\w+-[tblr]{2}/,"tb")+l;case 108:return zt+l+ge+Ot(l,/[svh]\w+-[tblr]{2}/,"tb-rl")+l;case 45:return zt+l+ge+Ot(l,/[svh]\w+-[tblr]{2}/,"lr")+l}return zt+l+ge+l+l}return l}var sb=function(i,c,o,s){if(i.length>-1&&!i.return)switch(i.type){case Ws:i.return=Sy(i.value,i.length);break;case my:return jl([Xi(i,{value:Ot(i.value,"@","@"+zt)})],s);case Js:if(i.length)return kv(i.props,function(d){switch(Zv(d,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return jl([Xi(i,{props:[Ot(d,/:(read-\w+)/,":"+Ur+"$1")]})],s);case"::placeholder":return jl([Xi(i,{props:[Ot(d,/:(plac\w+)/,":"+zt+"input-$1")]}),Xi(i,{props:[Ot(d,/:(plac\w+)/,":"+Ur+"$1")]}),Xi(i,{props:[Ot(d,/:(plac\w+)/,ge+"input-$1")]})],s)}return""})}},fb=[sb],db=function(i){var c=i.key;if(c==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(_){var Y=_.getAttribute("data-emotion");Y.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var s=i.stylisPlugins||fb,d={},m,g=[];m=i.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+c+' "]'),function(_){for(var Y=_.getAttribute("data-emotion").split(" "),J=1;J=4;++o,s-=4)c=l.charCodeAt(o)&255|(l.charCodeAt(++o)&255)<<8|(l.charCodeAt(++o)&255)<<16|(l.charCodeAt(++o)&255)<<24,c=(c&65535)*1540483477+((c>>>16)*59797<<16),c^=c>>>24,i=(c&65535)*1540483477+((c>>>16)*59797<<16)^(i&65535)*1540483477+((i>>>16)*59797<<16);switch(s){case 3:i^=(l.charCodeAt(o+2)&255)<<16;case 2:i^=(l.charCodeAt(o+1)&255)<<8;case 1:i^=l.charCodeAt(o)&255,i=(i&65535)*1540483477+((i>>>16)*59797<<16)}return i^=i>>>13,i=(i&65535)*1540483477+((i>>>16)*59797<<16),((i^i>>>15)>>>0).toString(36)}var vb={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},bb=/[A-Z]|^ms/g,Sb=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Cy=function(i){return i.charCodeAt(1)===45},R0=function(i){return i!=null&&typeof i!="boolean"},Ts=by(function(l){return Cy(l)?l:l.replace(bb,"-$&").toLowerCase()}),w0=function(i,c){switch(i){case"animation":case"animationName":if(typeof c=="string")return c.replace(Sb,function(o,s,d){return hn={name:s,styles:d,next:hn},s})}return vb[i]!==1&&!Cy(i)&&typeof c=="number"&&c!==0?c+"px":c};function Pi(l,i,c){if(c==null)return"";var o=c;if(o.__emotion_styles!==void 0)return o;switch(typeof c){case"boolean":return"";case"object":{var s=c;if(s.anim===1)return hn={name:s.name,styles:s.styles,next:hn},s.name;var d=c;if(d.styles!==void 0){var m=d.next;if(m!==void 0)for(;m!==void 0;)hn={name:m.name,styles:m.styles,next:hn},m=m.next;var g=d.styles+";";return g}return Tb(l,i,c)}case"function":{if(l!==void 0){var v=hn,p=c(l);return hn=v,Pi(l,i,p)}break}}var A=c;if(i==null)return A;var E=i[A];return E!==void 0?E:A}function Tb(l,i,c){var o="";if(Array.isArray(c))for(var s=0;s96?Rb:wb},H0=function(i,c,o){var s;if(c){var d=c.shouldForwardProp;s=i.__emotion_forwardProp&&d?function(m){return i.__emotion_forwardProp(m)&&d(m)}:d}return typeof s!="function"&&o&&(s=i.__emotion_forwardProp),s},Db=function(i){var c=i.cache,o=i.serialized,s=i.isStringTag;return Ps(c,o,s),_y(function(){return Is(c,o,s)}),null},Bb=function l(i,c){var o=i.__emotion_real===i,s=o&&i.__emotion_base||i,d,m;c!==void 0&&(d=c.label,m=c.target);var g=H0(i,c,o),v=g||U0(s),p=!v("as");return function(){var A=arguments,E=o&&i.__emotion_styles!==void 0?i.__emotion_styles.slice(0):[];if(d!==void 0&&E.push("label:"+d+";"),A[0]==null||A[0].raw===void 0)E.push.apply(E,A);else{var D=A[0];E.push(D[0]);for(var q=A.length,R=1;Ri(Ub(s)?c:s):i;return lt.jsx(zb,{styles:o})}function xy(l,i){return Bs(l,i)}function jb(l,i){Array.isArray(l.__emotion_styles)&&(l.__emotion_styles=i(l.__emotion_styles))}const j0=[];function da(l){return j0[0]=l,tu(j0)}var Cs={exports:{}},qt={};var L0;function Lb(){if(L0)return qt;L0=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),D=Symbol.for("react.view_transition"),q=Symbol.for("react.client.reference");function R(_){if(typeof _=="object"&&_!==null){var Y=_.$$typeof;switch(Y){case l:switch(_=_.type,_){case c:case s:case o:case v:case p:case D:return _;default:switch(_=_&&_.$$typeof,_){case m:case g:case E:case A:return _;case d:return _;default:return Y}}case i:return Y}}}return qt.ContextConsumer=d,qt.ContextProvider=m,qt.Element=l,qt.ForwardRef=g,qt.Fragment=c,qt.Lazy=E,qt.Memo=A,qt.Portal=i,qt.Profiler=s,qt.StrictMode=o,qt.Suspense=v,qt.SuspenseList=p,qt.isContextConsumer=function(_){return R(_)===d},qt.isContextProvider=function(_){return R(_)===m},qt.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===l},qt.isForwardRef=function(_){return R(_)===g},qt.isFragment=function(_){return R(_)===c},qt.isLazy=function(_){return R(_)===E},qt.isMemo=function(_){return R(_)===A},qt.isPortal=function(_){return R(_)===i},qt.isProfiler=function(_){return R(_)===s},qt.isStrictMode=function(_){return R(_)===o},qt.isSuspense=function(_){return R(_)===v},qt.isSuspenseList=function(_){return R(_)===p},qt.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===c||_===s||_===o||_===v||_===p||typeof _=="object"&&_!==null&&(_.$$typeof===E||_.$$typeof===A||_.$$typeof===m||_.$$typeof===d||_.$$typeof===g||_.$$typeof===q||_.getModuleId!==void 0)},qt.typeOf=R,qt}var q0;function qb(){return q0||(q0=1,Cs.exports=Lb()),Cs.exports}var zy=qb();function mn(l){if(typeof l!="object"||l===null)return!1;const i=Object.getPrototypeOf(l);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(Symbol.toStringTag in l)&&!(Symbol.iterator in l)}function Oy(l){if(Z.isValidElement(l)||zy.isValidElementType(l)||!mn(l))return l;const i={};return Object.keys(l).forEach(c=>{i[c]=Oy(l[c])}),i}function Ge(l,i,c={clone:!0}){const o=c.clone?{...l}:l;return mn(l)&&mn(i)&&Object.keys(i).forEach(s=>{Z.isValidElement(i[s])||zy.isValidElementType(i[s])?o[s]=i[s]:mn(i[s])&&Object.prototype.hasOwnProperty.call(l,s)&&mn(l[s])?o[s]=Ge(l[s],i[s],c):c.clone?o[s]=mn(i[s])?Oy(i[s]):i[s]:o[s]=i[s]}),o}const Gb=l=>{const i=Object.keys(l).map(c=>({key:c,val:l[c]}))||[];return i.sort((c,o)=>c.val-o.val),i.reduce((c,o)=>({...c,[o.key]:o.val}),{})};function Yb(l){const{values:i={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:c="px",step:o=5,...s}=l,d=Gb(i),m=Object.keys(d);function g(D){return`@media (min-width:${typeof i[D]=="number"?i[D]:D}${c})`}function v(D){return`@media (max-width:${(typeof i[D]=="number"?i[D]:D)-o/100}${c})`}function p(D,q){const R=m.indexOf(q);return`@media (min-width:${typeof i[D]=="number"?i[D]:D}${c}) and (max-width:${(R!==-1&&typeof i[m[R]]=="number"?i[m[R]]:q)-o/100}${c})`}function A(D){return m.indexOf(D)+1o.startsWith("@container")).sort((o,s)=>{const d=/min-width:\s*([0-9.]+)/;return+(o.match(d)?.[1]||0)-+(s.match(d)?.[1]||0)});return c.length?c.reduce((o,s)=>{const d=i[s];return delete o[s],o[s]=d,o},{...i}):i}function Vb(l,i){return i==="@"||i.startsWith("@")&&(l.some(c=>i.startsWith(`@${c}`))||!!i.match(/^@\d/))}function Xb(l,i){const c=i.match(/^@([^/]+)?\/?(.+)?$/);if(!c)return null;const[,o,s]=c,d=Number.isNaN(+o)?o||0:+o;return l.containerQueries(s).up(d)}function $b(l){const i=(d,m)=>d.replace("@media",m?`@container ${m}`:"@container");function c(d,m){d.up=(...g)=>i(l.breakpoints.up(...g),m),d.down=(...g)=>i(l.breakpoints.down(...g),m),d.between=(...g)=>i(l.breakpoints.between(...g),m),d.only=(...g)=>i(l.breakpoints.only(...g),m),d.not=(...g)=>{const v=i(l.breakpoints.not(...g),m);return v.includes("not all and")?v.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):v}}const o={},s=d=>(c(o,d),o);return c(s),{...l,containerQueries:s}}const Qb={borderRadius:4};function Zi(l,i){return i?Ge(l,i,{clone:!1}):l}const $r={xs:0,sm:600,md:900,lg:1200,xl:1536},Y0={keys:["xs","sm","md","lg","xl"],up:l=>`@media (min-width:${$r[l]}px)`},Zb={containerQueries:l=>({up:i=>{let c=typeof i=="number"?i:$r[i]||i;return typeof c=="number"&&(c=`${c}px`),l?`@container ${l} (min-width:${c})`:`@container (min-width:${c})`}})};function jn(l,i,c){const o=l.theme||{};if(Array.isArray(i)){const d=o.breakpoints||Y0;return i.reduce((m,g,v)=>(m[d.up(d.keys[v])]=c(i[v]),m),{})}if(typeof i=="object"){const d=o.breakpoints||Y0;return Object.keys(i).reduce((m,g)=>{if(Vb(d.keys,g)){const v=Xb(o.containerQueries?o:Zb,g);v&&(m[v]=c(i[g],g))}else if(Object.keys(d.values||$r).includes(g)){const v=d.up(g);m[v]=c(i[g],g)}else{const v=g;m[v]=i[v]}return m},{})}return c(i)}function kb(l={}){return l.keys?.reduce((c,o)=>{const s=l.up(o);return c[s]={},c},{})||{}}function V0(l,i){return l.reduce((c,o)=>{const s=c[o];return(!s||Object.keys(s).length===0)&&delete c[o],c},i)}function Rt(l){if(typeof l!="string")throw new Error(qa(7));return l.charAt(0).toUpperCase()+l.slice(1)}function Qr(l,i,c=!0){if(!i||typeof i!="string")return null;if(l&&l.vars&&c){const o=`vars.${i}`.split(".").reduce((s,d)=>s&&s[d]?s[d]:null,l);if(o!=null)return o}return i.split(".").reduce((o,s)=>o&&o[s]!=null?o[s]:null,l)}function Hr(l,i,c,o=c){let s;return typeof l=="function"?s=l(c):Array.isArray(l)?s=l[c]||o:s=Qr(l,c)||o,i&&(s=i(s,o,l)),s}function Pt(l){const{prop:i,cssProperty:c=l.prop,themeKey:o,transform:s}=l,d=m=>{if(m[i]==null)return null;const g=m[i],v=m.theme,p=Qr(v,o)||{};return jn(m,g,E=>{let D=Hr(p,s,E);return E===D&&typeof E=="string"&&(D=Hr(p,s,`${i}${E==="default"?"":Rt(E)}`,E)),c===!1?D:{[c]:D}})};return d.propTypes={},d.filterProps=[i],d}function Kb(l){const i={};return c=>(i[c]===void 0&&(i[c]=l(c)),i[c])}const Jb={m:"margin",p:"padding"},Wb={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},X0={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Fb=Kb(l=>{if(l.length>2)if(X0[l])l=X0[l];else return[l];const[i,c]=l.split(""),o=Jb[i],s=Wb[c]||"";return Array.isArray(s)?s.map(d=>o+d):[o+s]}),nf=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],af=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...nf,...af];function eu(l,i,c,o){const s=Qr(l,i,!0)??c;return typeof s=="number"||typeof s=="string"?d=>typeof d=="string"?d:typeof s=="string"?s.startsWith("var(")&&d===0?0:s.startsWith("var(")&&d===1?s:`calc(${d} * ${s})`:s*d:Array.isArray(s)?d=>{if(typeof d=="string")return d;const m=Math.abs(d),g=s[m];return d>=0?g:typeof g=="number"?-g:typeof g=="string"&&g.startsWith("var(")?`calc(-1 * ${g})`:`-${g}`}:typeof s=="function"?s:()=>{}}function lf(l){return eu(l,"spacing",8)}function nu(l,i){return typeof i=="string"||i==null?i:l(i)}function Pb(l,i){return c=>l.reduce((o,s)=>(o[s]=nu(i,c),o),{})}function Ib(l,i,c,o){if(!i.includes(c))return null;const s=Fb(c),d=Pb(s,o),m=l[c];return jn(l,m,d)}function My(l,i){const c=lf(l.theme);return Object.keys(l).map(o=>Ib(l,i,o,c)).reduce(Zi,{})}function Kt(l){return My(l,nf)}Kt.propTypes={};Kt.filterProps=nf;function Jt(l){return My(l,af)}Jt.propTypes={};Jt.filterProps=af;function Ry(l=8,i=lf({spacing:l})){if(l.mui)return l;const c=(...o)=>(o.length===0?[1]:o).map(d=>{const m=i(d);return typeof m=="number"?`${m}px`:m}).join(" ");return c.mui=!0,c}function Zr(...l){const i=l.reduce((o,s)=>(s.filterProps.forEach(d=>{o[d]=s}),o),{}),c=o=>Object.keys(o).reduce((s,d)=>i[d]?Zi(s,i[d](o)):s,{});return c.propTypes={},c.filterProps=l.reduce((o,s)=>o.concat(s.filterProps),[]),c}function Pe(l){return typeof l!="number"?l:`${l}px solid`}function tn(l,i){return Pt({prop:l,themeKey:"borders",transform:i})}const t1=tn("border",Pe),e1=tn("borderTop",Pe),n1=tn("borderRight",Pe),a1=tn("borderBottom",Pe),l1=tn("borderLeft",Pe),i1=tn("borderColor"),u1=tn("borderTopColor"),r1=tn("borderRightColor"),c1=tn("borderBottomColor"),o1=tn("borderLeftColor"),s1=tn("outline",Pe),f1=tn("outlineColor"),kr=l=>{if(l.borderRadius!==void 0&&l.borderRadius!==null){const i=eu(l.theme,"shape.borderRadius",4),c=o=>({borderRadius:nu(i,o)});return jn(l,l.borderRadius,c)}return null};kr.propTypes={};kr.filterProps=["borderRadius"];Zr(t1,e1,n1,a1,l1,i1,u1,r1,c1,o1,kr,s1,f1);const Kr=l=>{if(l.gap!==void 0&&l.gap!==null){const i=eu(l.theme,"spacing",8),c=o=>({gap:nu(i,o)});return jn(l,l.gap,c)}return null};Kr.propTypes={};Kr.filterProps=["gap"];const Jr=l=>{if(l.columnGap!==void 0&&l.columnGap!==null){const i=eu(l.theme,"spacing",8),c=o=>({columnGap:nu(i,o)});return jn(l,l.columnGap,c)}return null};Jr.propTypes={};Jr.filterProps=["columnGap"];const Wr=l=>{if(l.rowGap!==void 0&&l.rowGap!==null){const i=eu(l.theme,"spacing",8),c=o=>({rowGap:nu(i,o)});return jn(l,l.rowGap,c)}return null};Wr.propTypes={};Wr.filterProps=["rowGap"];const d1=Pt({prop:"gridColumn"}),h1=Pt({prop:"gridRow"}),m1=Pt({prop:"gridAutoFlow"}),y1=Pt({prop:"gridAutoColumns"}),p1=Pt({prop:"gridAutoRows"}),g1=Pt({prop:"gridTemplateColumns"}),v1=Pt({prop:"gridTemplateRows"}),b1=Pt({prop:"gridTemplateAreas"}),S1=Pt({prop:"gridArea"});Zr(Kr,Jr,Wr,d1,h1,m1,y1,p1,g1,v1,b1,S1);function Ll(l,i){return i==="grey"?i:l}const T1=Pt({prop:"color",themeKey:"palette",transform:Ll}),C1=Pt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ll}),E1=Pt({prop:"backgroundColor",themeKey:"palette",transform:Ll});Zr(T1,C1,E1);function Le(l){return l<=1&&l!==0?`${l*100}%`:l}const _1=Pt({prop:"width",transform:Le}),uf=l=>{if(l.maxWidth!==void 0&&l.maxWidth!==null){const i=c=>{const o=l.theme?.breakpoints?.values?.[c]||$r[c];return o?l.theme?.breakpoints?.unit!=="px"?{maxWidth:`${o}${l.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Le(c)}};return jn(l,l.maxWidth,i)}return null};uf.filterProps=["maxWidth"];const A1=Pt({prop:"minWidth",transform:Le}),x1=Pt({prop:"height",transform:Le}),z1=Pt({prop:"maxHeight",transform:Le}),O1=Pt({prop:"minHeight",transform:Le});Pt({prop:"size",cssProperty:"width",transform:Le});Pt({prop:"size",cssProperty:"height",transform:Le});const M1=Pt({prop:"boxSizing"});Zr(_1,uf,A1,x1,z1,O1,M1);const au={border:{themeKey:"borders",transform:Pe},borderTop:{themeKey:"borders",transform:Pe},borderRight:{themeKey:"borders",transform:Pe},borderBottom:{themeKey:"borders",transform:Pe},borderLeft:{themeKey:"borders",transform:Pe},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Pe},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:kr},color:{themeKey:"palette",transform:Ll},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ll},backgroundColor:{themeKey:"palette",transform:Ll},p:{style:Jt},pt:{style:Jt},pr:{style:Jt},pb:{style:Jt},pl:{style:Jt},px:{style:Jt},py:{style:Jt},padding:{style:Jt},paddingTop:{style:Jt},paddingRight:{style:Jt},paddingBottom:{style:Jt},paddingLeft:{style:Jt},paddingX:{style:Jt},paddingY:{style:Jt},paddingInline:{style:Jt},paddingInlineStart:{style:Jt},paddingInlineEnd:{style:Jt},paddingBlock:{style:Jt},paddingBlockStart:{style:Jt},paddingBlockEnd:{style:Jt},m:{style:Kt},mt:{style:Kt},mr:{style:Kt},mb:{style:Kt},ml:{style:Kt},mx:{style:Kt},my:{style:Kt},margin:{style:Kt},marginTop:{style:Kt},marginRight:{style:Kt},marginBottom:{style:Kt},marginLeft:{style:Kt},marginX:{style:Kt},marginY:{style:Kt},marginInline:{style:Kt},marginInlineStart:{style:Kt},marginInlineEnd:{style:Kt},marginBlock:{style:Kt},marginBlockStart:{style:Kt},marginBlockEnd:{style:Kt},displayPrint:{cssProperty:!1,transform:l=>({"@media print":{display:l}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Kr},rowGap:{style:Wr},columnGap:{style:Jr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Le},maxWidth:{style:uf},minWidth:{transform:Le},height:{transform:Le},maxHeight:{transform:Le},minHeight:{transform:Le},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function R1(...l){const i=l.reduce((o,s)=>o.concat(Object.keys(s)),[]),c=new Set(i);return l.every(o=>c.size===Object.keys(o).length)}function w1(l,i){return typeof l=="function"?l(i):l}function D1(){function l(c,o,s,d){const m={[c]:o,theme:s},g=d[c];if(!g)return{[c]:o};const{cssProperty:v=c,themeKey:p,transform:A,style:E}=g;if(o==null)return null;if(p==="typography"&&o==="inherit")return{[c]:o};const D=Qr(s,p)||{};return E?E(m):jn(m,o,R=>{let _=Hr(D,A,R);return R===_&&typeof R=="string"&&(_=Hr(D,A,`${c}${R==="default"?"":Rt(R)}`,R)),v===!1?_:{[v]:_}})}function i(c){const{sx:o,theme:s={},nested:d}=c||{};if(!o)return null;const m=s.unstable_sxConfig??au;function g(v){let p=v;if(typeof v=="function")p=v(s);else if(typeof v!="object")return v;if(!p)return null;const A=kb(s.breakpoints),E=Object.keys(A);let D=A;return Object.keys(p).forEach(q=>{const R=w1(p[q],s);if(R!=null)if(typeof R=="object")if(m[q])D=Zi(D,l(q,R,s,m));else{const _=jn({theme:s},R,Y=>({[q]:Y}));R1(_,R)?D[q]=i({sx:R,theme:s,nested:!0}):D=Zi(D,_)}else D=Zi(D,l(q,R,s,m))}),!d&&s.modularCssLayers?{"@layer sx":G0(s,V0(E,D))}:G0(s,V0(E,D))}return Array.isArray(o)?o.map(g):g(o)}return i}const Ga=D1();Ga.filterProps=["sx"];function B1(l,i){const c=this;if(c.vars){if(!c.colorSchemes?.[l]||typeof c.getColorSchemeSelector!="function")return{};let o=c.getColorSchemeSelector(l);return o==="&"?i:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:i})}return c.palette.mode===l?i:{}}function rf(l={},...i){const{breakpoints:c={},palette:o={},spacing:s,shape:d={},...m}=l,g=Yb(c),v=Ry(s);let p=Ge({breakpoints:g,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:v,shape:{...Qb,...d}},m);return p=$b(p),p.applyStyles=B1,p=i.reduce((A,E)=>Ge(A,E),p),p.unstable_sxConfig={...au,...m?.unstable_sxConfig},p.unstable_sx=function(E){return Ga({sx:E,theme:this})},p}function N1(l){return Object.keys(l).length===0}function U1(l=null){const i=Z.useContext(Xr);return!i||N1(i)?l:i}const H1=rf();function wy(l=H1){return U1(l)}function Es(l){const i=da(l);return l!==i&&i.styles?(i.styles.match(/^@layer\s+[^{]*$/)||(i.styles=`@layer global{${i.styles}}`),i):l}function j1({styles:l,themeId:i,defaultTheme:c={}}){const o=wy(c),s=i&&o[i]||o;let d=typeof l=="function"?l(s):l;return s.modularCssLayers&&(Array.isArray(d)?d=d.map(m=>Es(typeof m=="function"?m(s):m)):d=Es(d)),lt.jsx(Hb,{styles:d})}const L1=l=>{const i={systemProps:{},otherProps:{}},c=l?.theme?.unstable_sxConfig??au;return Object.keys(l).forEach(o=>{c[o]?i.systemProps[o]=l[o]:i.otherProps[o]=l[o]}),i};function Dy(l){const{sx:i,...c}=l,{systemProps:o,otherProps:s}=L1(c);let d;return Array.isArray(i)?d=[o,...i]:typeof i=="function"?d=(...m)=>{const g=i(...m);return mn(g)?{...o,...g}:o}:d={...o,...i},{...s,sx:d}}const $0=l=>l,q1=()=>{let l=$0;return{configure(i){l=i},generate(i){return l(i)},reset(){l=$0}}},By=q1();function Ny(l){var i,c,o="";if(typeof l=="string"||typeof l=="number")o+=l;else if(typeof l=="object")if(Array.isArray(l)){var s=l.length;for(i=0;ig!=="theme"&&g!=="sx"&&g!=="as"})(Ga);return Z.forwardRef(function(v,p){const A=wy(c),{className:E,component:D="div",...q}=Dy(v);return lt.jsx(d,{as:D,ref:p,className:me(E,s?s(o):o),theme:i&&A[i]||A,...q})})}const Y1={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Vl(l,i,c="Mui"){const o=Y1[i];return o?`${c}-${o}`:`${By.generate(l)}-${i}`}function Ya(l,i,c="Mui"){const o={};return i.forEach(s=>{o[s]=Vl(l,s,c)}),o}function Uy(l){const{variants:i,...c}=l,o={variants:i,style:da(c),isProcessed:!0};return o.style===c||i&&i.forEach(s=>{typeof s.style!="function"&&(s.style=da(s.style))}),o}const V1=rf();function _s(l){return l!=="ownerState"&&l!=="theme"&&l!=="sx"&&l!=="as"}function ja(l,i){return i&&l&&typeof l=="object"&&l.styles&&!l.styles.startsWith("@layer")&&(l.styles=`@layer ${i}{${String(l.styles)}}`),l}function X1(l){return l?(i,c)=>c[l]:null}function $1(l,i,c){l.theme=k1(l.theme)?c:l.theme[i]||l.theme}function Mr(l,i,c){const o=typeof i=="function"?i(l):i;if(Array.isArray(o))return o.flatMap(s=>Mr(l,s,c));if(Array.isArray(o?.variants)){let s;if(o.isProcessed)s=c?ja(o.style,c):o.style;else{const{variants:d,...m}=o;s=c?ja(da(m),c):m}return Hy(l,o.variants,[s],c)}return o?.isProcessed?c?ja(da(o.style),c):o.style:c?ja(da(o),c):o}function Hy(l,i,c=[],o=void 0){let s;t:for(let d=0;d{jb(g,G=>G.filter(V=>V!==Ga));const{name:p,slot:A,skipVariantsResolver:E,skipSx:D,overridesResolver:q=X1(J1(A)),...R}=v,_=p&&p.startsWith("Mui")||A?"components":"custom",Y=E!==void 0?E:A&&A!=="Root"&&A!=="root"||!1,J=D||!1;let F=_s;A==="Root"||A==="root"?F=o:A?F=s:K1(g)&&(F=void 0);const P=xy(g,{shouldForwardProp:F,label:Z1(),...R}),X=G=>{if(G.__emotion_real===G)return G;if(typeof G=="function")return function(dt){return Mr(dt,G,dt.theme.modularCssLayers?_:void 0)};if(mn(G)){const V=Uy(G);return function(ht){return V.variants?Mr(ht,V,ht.theme.modularCssLayers?_:void 0):ht.theme.modularCssLayers?ja(V.style,_):V.style}}return G},U=(...G)=>{const V=[],dt=G.map(X),ht=[];if(V.push(d),p&&q&&ht.push(function(k){const at=k.theme.components?.[p]?.styleOverrides;if(!at)return null;const O={};for(const $ in at)O[$]=Mr(k,at[$],k.theme.modularCssLayers?"theme":void 0);return q(k,O)}),p&&!Y&&ht.push(function(k){const at=k.theme?.components?.[p]?.variants;return at?Hy(k,at,[],k.theme.modularCssLayers?"theme":void 0):null}),J||ht.push(Ga),Array.isArray(dt[0])){const y=dt.shift(),k=new Array(V.length).fill(""),Q=new Array(ht.length).fill("");let at;at=[...k,...y,...Q],at.raw=[...k,...y.raw,...Q],V.unshift(at)}const gt=[...V,...dt,...ht],ct=P(...gt);return g.muiName&&(ct.muiName=g.muiName),ct};return P.withConfig&&(U.withConfig=P.withConfig),U}}function Z1(l,i){return void 0}function k1(l){for(const i in l)return!1;return!0}function K1(l){return typeof l=="string"&&l.charCodeAt(0)>96}function J1(l){return l&&l.charAt(0).toLowerCase()+l.slice(1)}function jr(l,i,c=!1){const o={...i};for(const s in l)if(Object.prototype.hasOwnProperty.call(l,s)){const d=s;if(d==="components"||d==="slots")o[d]={...l[d],...o[d]};else if(d==="componentsProps"||d==="slotProps"){const m=l[d],g=i[d];if(!g)o[d]=m||{};else if(!m)o[d]=g;else{o[d]={...g};for(const v in m)if(Object.prototype.hasOwnProperty.call(m,v)){const p=v;o[d][p]=jr(m[p],g[p],c)}}}else d==="className"&&c&&i.className?o.className=me(l?.className,i?.className):d==="style"&&c&&i.style?o.style={...l?.style,...i?.style}:o[d]===void 0&&(o[d]=l[d])}return o}const W1=typeof window<"u"?Z.useLayoutEffect:Z.useEffect;function F1(l,i=Number.MIN_SAFE_INTEGER,c=Number.MAX_SAFE_INTEGER){return Math.max(i,Math.min(l,c))}function cf(l,i=0,c=1){return F1(l,i,c)}function P1(l){l=l.slice(1);const i=new RegExp(`.{1,${l.length>=6?2:1}}`,"g");let c=l.match(i);return c&&c[0].length===1&&(c=c.map(o=>o+o)),c?`rgb${c.length===4?"a":""}(${c.map((o,s)=>s<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function ha(l){if(l.type)return l;if(l.charAt(0)==="#")return ha(P1(l));const i=l.indexOf("("),c=l.substring(0,i);if(!["rgb","rgba","hsl","hsla","color"].includes(c))throw new Error(qa(9,l));let o=l.substring(i+1,l.length-1),s;if(c==="color"){if(o=o.split(" "),s=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(s))throw new Error(qa(10,s))}else o=o.split(",");return o=o.map(d=>parseFloat(d)),{type:c,values:o,colorSpace:s}}const I1=l=>{const i=ha(l);return i.values.slice(0,3).map((c,o)=>i.type.includes("hsl")&&o!==0?`${c}%`:c).join(" ")},$i=(l,i)=>{try{return I1(l)}catch{return l}};function Fr(l){const{type:i,colorSpace:c}=l;let{values:o}=l;return i.includes("rgb")?o=o.map((s,d)=>d<3?parseInt(s,10):s):i.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),i.includes("color")?o=`${c} ${o.join(" ")}`:o=`${o.join(", ")}`,`${i}(${o})`}function jy(l){l=ha(l);const{values:i}=l,c=i[0],o=i[1]/100,s=i[2]/100,d=o*Math.min(s,1-s),m=(p,A=(p+c/30)%12)=>s-d*Math.max(Math.min(A-3,9-A,1),-1);let g="rgb";const v=[Math.round(m(0)*255),Math.round(m(8)*255),Math.round(m(4)*255)];return l.type==="hsla"&&(g+="a",v.push(i[3])),Fr({type:g,values:v})}function Ns(l){l=ha(l);let i=l.type==="hsl"||l.type==="hsla"?ha(jy(l)).values:l.values;return i=i.map(c=>(l.type!=="color"&&(c/=255),c<=.03928?c/12.92:((c+.055)/1.055)**2.4)),Number((.2126*i[0]+.7152*i[1]+.0722*i[2]).toFixed(3))}function tS(l,i){const c=Ns(l),o=Ns(i);return(Math.max(c,o)+.05)/(Math.min(c,o)+.05)}function Ly(l,i){return l=ha(l),i=cf(i),(l.type==="rgb"||l.type==="hsl")&&(l.type+="a"),l.type==="color"?l.values[3]=`/${i}`:l.values[3]=i,Fr(l)}function Ua(l,i,c){try{return Ly(l,i)}catch{return l}}function Pr(l,i){if(l=ha(l),i=cf(i),l.type.includes("hsl"))l.values[2]*=1-i;else if(l.type.includes("rgb")||l.type.includes("color"))for(let c=0;c<3;c+=1)l.values[c]*=1-i;return Fr(l)}function Nt(l,i,c){try{return Pr(l,i)}catch{return l}}function Ir(l,i){if(l=ha(l),i=cf(i),l.type.includes("hsl"))l.values[2]+=(100-l.values[2])*i;else if(l.type.includes("rgb"))for(let c=0;c<3;c+=1)l.values[c]+=(255-l.values[c])*i;else if(l.type.includes("color"))for(let c=0;c<3;c+=1)l.values[c]+=(1-l.values[c])*i;return Fr(l)}function Ut(l,i,c){try{return Ir(l,i)}catch{return l}}function eS(l,i=.15){return Ns(l)>.5?Pr(l,i):Ir(l,i)}function _r(l,i,c){try{return eS(l,i)}catch{return l}}const nS=Z.createContext(),aS=()=>Z.useContext(nS)??!1,lS=Z.createContext(void 0);function iS(l){const{theme:i,name:c,props:o}=l;if(!i||!i.components||!i.components[c])return o;const s=i.components[c];return s.defaultProps?jr(s.defaultProps,o,i.components.mergeClassNameAndStyle):!s.styleOverrides&&!s.variants?jr(s,o,i.components.mergeClassNameAndStyle):o}function uS({props:l,name:i}){const c=Z.useContext(lS);return iS({props:l,name:i,theme:{components:c}})}let Q0=0;function rS(l){const[i,c]=Z.useState(l),o=l||i;return Z.useEffect(()=>{i==null&&(Q0+=1,c(`mui-${Q0}`))},[i]),o}const cS={...Ms},Z0=cS.useId;function oS(l){if(Z0!==void 0){const i=Z0();return l??i}return rS(l)}const k0={theme:void 0};function sS(l){let i,c;return function(s){let d=i;return(d===void 0||s.theme!==c)&&(k0.theme=s.theme,d=Uy(l(k0)),i=d,c=s.theme),d}}function fS(l=""){function i(...o){if(!o.length)return"";const s=o[0];return typeof s=="string"&&!s.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${l?`${l}-`:""}${s}${i(...o.slice(1))})`:`, ${s}`}return(o,...s)=>`var(--${l?`${l}-`:""}${o}${i(...s)})`}const K0=(l,i,c,o=[])=>{let s=l;i.forEach((d,m)=>{m===i.length-1?Array.isArray(s)?s[Number(d)]=c:s&&typeof s=="object"&&(s[d]=c):s&&typeof s=="object"&&(s[d]||(s[d]=o.includes(d)?[]:{}),s=s[d])})},dS=(l,i,c)=>{function o(s,d=[],m=[]){Object.entries(s).forEach(([g,v])=>{(!c||c&&!c([...d,g]))&&v!=null&&(typeof v=="object"&&Object.keys(v).length>0?o(v,[...d,g],Array.isArray(v)?[...m,g]:m):i([...d,g],v,m))})}o(l)},hS=(l,i)=>typeof i=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>l.includes(o))||l[l.length-1].toLowerCase().includes("opacity")?i:`${i}px`:i;function As(l,i){const{prefix:c,shouldSkipGeneratingVar:o}=i||{},s={},d={},m={};return dS(l,(g,v,p)=>{if((typeof v=="string"||typeof v=="number")&&(!o||!o(g,v))){const A=`--${c?`${c}-`:""}${g.join("-")}`,E=hS(g,v);Object.assign(s,{[A]:E}),K0(d,g,`var(${A})`,p),K0(m,g,`var(${A}, ${E})`,p)}},g=>g[0]==="vars"),{css:s,vars:d,varsWithDefaults:m}}function mS(l,i={}){const{getSelector:c=J,disableCssColorScheme:o,colorSchemeSelector:s,enableContrastVars:d}=i,{colorSchemes:m={},components:g,defaultColorScheme:v="light",...p}=l,{vars:A,css:E,varsWithDefaults:D}=As(p,i);let q=D;const R={},{[v]:_,...Y}=m;if(Object.entries(Y||{}).forEach(([X,U])=>{const{vars:G,css:V,varsWithDefaults:dt}=As(U,i);q=Ge(q,dt),R[X]={css:V,vars:G}}),_){const{css:X,vars:U,varsWithDefaults:G}=As(_,i);q=Ge(q,G),R[v]={css:X,vars:U}}function J(X,U){let G=s;if(s==="class"&&(G=".%s"),s==="data"&&(G="[data-%s]"),s?.startsWith("data-")&&!s.includes("%s")&&(G=`[${s}="%s"]`),X){if(G==="media")return l.defaultColorScheme===X?":root":{[`@media (prefers-color-scheme: ${m[X]?.palette?.mode||X})`]:{":root":U}};if(G)return l.defaultColorScheme===X?`:root, ${G.replace("%s",String(X))}`:G.replace("%s",String(X))}return":root"}return{vars:q,generateThemeVars:()=>{let X={...A};return Object.entries(R).forEach(([,{vars:U}])=>{X=Ge(X,U)}),X},generateStyleSheets:()=>{const X=[],U=l.defaultColorScheme||"light";function G(ht,gt){Object.keys(gt).length&&X.push(typeof ht=="string"?{[ht]:{...gt}}:ht)}G(c(void 0,{...E}),E);const{[U]:V,...dt}=R;if(V){const{css:ht}=V,gt=m[U]?.palette?.mode,ct=!o&>?{colorScheme:gt,...ht}:{...ht};G(c(U,{...ct}),ct)}return Object.entries(dt).forEach(([ht,{css:gt}])=>{const ct=m[ht]?.palette?.mode,y=!o&&ct?{colorScheme:ct,...gt}:{...gt};G(c(ht,{...y}),y)}),d&&X.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),X}}}function yS(l){return function(c){return l==="media"?`@media (prefers-color-scheme: ${c})`:l?l.startsWith("data-")&&!l.includes("%s")?`[${l}="${c}"] &`:l==="class"?`.${c} &`:l==="data"?`[data-${c}] &`:`${l.replace("%s",c)} &`:"&"}}function lu(l,i,c=void 0){const o={};for(const s in l){const d=l[s];let m="",g=!0;for(let v=0;v=c?Us.text.primary:Gy.text.primary}const q=({color:Y,name:J,mainShade:F=500,lightShade:P=300,darkShade:X=700})=>{if(Y={...Y},!Y.main&&Y[F]&&(Y.main=Y[F]),!Y.hasOwnProperty("main"))throw new Error(qa(11,J?` (${J})`:"",F));if(typeof Y.main!="string")throw new Error(qa(12,J?` (${J})`:"",JSON.stringify(Y.main)));return s?(W0(s,Y,"light",P,o),W0(s,Y,"dark",X,o)):(J0(Y,"light",P,o),J0(Y,"dark",X,o)),Y.contrastText||(Y.contrastText=D(Y.main)),Y};let R;return i==="light"?R=qy():i==="dark"&&(R=Yy()),Ge({common:{...Ji},mode:i,primary:q({color:m,name:"primary"}),secondary:q({color:g,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:q({color:v,name:"error"}),warning:q({color:E,name:"warning"}),info:q({color:p,name:"info"}),success:q({color:A,name:"success"}),grey:jv,contrastThreshold:c,getContrastText:D,augmentColor:q,tonalOffset:o,...R},d)}function ES(l){const i={};return Object.entries(l).forEach(o=>{const[s,d]=o;typeof d=="object"&&(i[s]=`${d.fontStyle?`${d.fontStyle} `:""}${d.fontVariant?`${d.fontVariant} `:""}${d.fontWeight?`${d.fontWeight} `:""}${d.fontStretch?`${d.fontStretch} `:""}${d.fontSize||""}${d.lineHeight?`/${d.lineHeight} `:""}${d.fontFamily||""}`)}),i}function _S(l,i){return{toolbar:{minHeight:56,[l.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[l.up("sm")]:{minHeight:64}},...i}}function AS(l){return Math.round(l*1e5)/1e5}const F0={textTransform:"uppercase"},P0='"Roboto", "Helvetica", "Arial", sans-serif';function xS(l,i){const{fontFamily:c=P0,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:d=400,fontWeightMedium:m=500,fontWeightBold:g=700,htmlFontSize:v=16,allVariants:p,pxToRem:A,...E}=typeof i=="function"?i(l):i,D=o/14,q=A||(Y=>`${Y/v*D}rem`),R=(Y,J,F,P,X)=>({fontFamily:c,fontWeight:Y,fontSize:q(J),lineHeight:F,...c===P0?{letterSpacing:`${AS(P/J)}em`}:{},...X,...p}),_={h1:R(s,96,1.167,-1.5),h2:R(s,60,1.2,-.5),h3:R(d,48,1.167,0),h4:R(d,34,1.235,.25),h5:R(d,24,1.334,0),h6:R(m,20,1.6,.15),subtitle1:R(d,16,1.75,.15),subtitle2:R(m,14,1.57,.1),body1:R(d,16,1.5,.15),body2:R(d,14,1.43,.15),button:R(m,14,1.75,.4,F0),caption:R(d,12,1.66,.4),overline:R(d,12,2.66,1,F0),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ge({htmlFontSize:v,pxToRem:q,fontFamily:c,fontSize:o,fontWeightLight:s,fontWeightRegular:d,fontWeightMedium:m,fontWeightBold:g,..._},E,{clone:!1})}const zS=.2,OS=.14,MS=.12;function $t(...l){return[`${l[0]}px ${l[1]}px ${l[2]}px ${l[3]}px rgba(0,0,0,${zS})`,`${l[4]}px ${l[5]}px ${l[6]}px ${l[7]}px rgba(0,0,0,${OS})`,`${l[8]}px ${l[9]}px ${l[10]}px ${l[11]}px rgba(0,0,0,${MS})`].join(",")}const RS=["none",$t(0,2,1,-1,0,1,1,0,0,1,3,0),$t(0,3,1,-2,0,2,2,0,0,1,5,0),$t(0,3,3,-2,0,3,4,0,0,1,8,0),$t(0,2,4,-1,0,4,5,0,0,1,10,0),$t(0,3,5,-1,0,5,8,0,0,1,14,0),$t(0,3,5,-1,0,6,10,0,0,1,18,0),$t(0,4,5,-2,0,7,10,1,0,2,16,1),$t(0,5,5,-3,0,8,10,1,0,3,14,2),$t(0,5,6,-3,0,9,12,1,0,3,16,2),$t(0,6,6,-3,0,10,14,1,0,4,18,3),$t(0,6,7,-4,0,11,15,1,0,4,20,3),$t(0,7,8,-4,0,12,17,2,0,5,22,4),$t(0,7,8,-4,0,13,19,2,0,5,24,4),$t(0,7,9,-4,0,14,21,2,0,5,26,4),$t(0,8,9,-5,0,15,22,2,0,6,28,5),$t(0,8,10,-5,0,16,24,2,0,6,30,5),$t(0,8,11,-5,0,17,26,2,0,6,32,5),$t(0,9,11,-5,0,18,28,2,0,7,34,6),$t(0,9,12,-6,0,19,29,2,0,7,36,6),$t(0,10,13,-6,0,20,31,3,0,8,38,7),$t(0,10,13,-6,0,21,33,3,0,8,40,7),$t(0,10,14,-6,0,22,35,3,0,8,42,7),$t(0,11,14,-7,0,23,36,3,0,9,44,8),$t(0,11,15,-7,0,24,38,3,0,9,46,8)],wS={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},DS={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function I0(l){return`${Math.round(l)}ms`}function BS(l){if(!l)return 0;const i=l/36;return Math.min(Math.round((4+15*i**.25+i/5)*10),3e3)}function NS(l){const i={...wS,...l.easing},c={...DS,...l.duration};return{getAutoHeightDuration:BS,create:(s=["all"],d={})=>{const{duration:m=c.standard,easing:g=i.easeInOut,delay:v=0,...p}=d;return(Array.isArray(s)?s:[s]).map(A=>`${A} ${typeof m=="string"?m:I0(m)} ${g} ${typeof v=="string"?v:I0(v)}`).join(",")},...l,easing:i,duration:c}}const US={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function HS(l){return mn(l)||typeof l>"u"||typeof l=="string"||typeof l=="boolean"||typeof l=="number"||Array.isArray(l)}function Vy(l={}){const i={...l};function c(o){const s=Object.entries(o);for(let d=0;d{if(!Number.isNaN(+l))return+l;const i=l.match(/\d*\.?\d+/g);if(!i)return 0;let c=0;for(let o=0;oGe(R,_),q),q.unstable_sxConfig={...au,...A?.unstable_sxConfig},q.unstable_sx=function(_){return Ga({sx:_,theme:this})},q.toRuntimeSource=Vy,LS(q),q}function qS(l){let i;return l<1?i=5.11916*l**2:i=4.5*Math.log(l+1)+2,Math.round(i*10)/1e3}const GS=[...Array(25)].map((l,i)=>{if(i===0)return"none";const c=qS(i);return`linear-gradient(rgba(255 255 255 / ${c}), rgba(255 255 255 / ${c}))`});function Xy(l){return{inputPlaceholder:l==="dark"?.5:.42,inputUnderline:l==="dark"?.7:.42,switchTrackDisabled:l==="dark"?.2:.12,switchTrack:l==="dark"?.3:.38}}function $y(l){return l==="dark"?GS:[]}function YS(l){const{palette:i={mode:"light"},opacity:c,overlays:o,colorSpace:s,...d}=l,m=of({...i,colorSpace:s});return{palette:m,opacity:{...Xy(m.mode),...c},overlays:o||$y(m.mode),...d}}function VS(l){return!!l[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!l[0].match(/sxConfig$/)||l[0]==="palette"&&!!l[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const XS=l=>[...[...Array(25)].map((i,c)=>`--${l?`${l}-`:""}overlays-${c}`),`--${l?`${l}-`:""}palette-AppBar-darkBg`,`--${l?`${l}-`:""}palette-AppBar-darkColor`],$S=l=>(i,c)=>{const o=l.rootSelector||":root",s=l.colorSchemeSelector;let d=s;if(s==="class"&&(d=".%s"),s==="data"&&(d="[data-%s]"),s?.startsWith("data-")&&!s.includes("%s")&&(d=`[${s}="%s"]`),l.defaultColorScheme===i){if(i==="dark"){const m={};return XS(l.cssVarPrefix).forEach(g=>{m[g]=c[g],delete c[g]}),d==="media"?{[o]:c,"@media (prefers-color-scheme: dark)":{[o]:m}}:d?{[d.replace("%s",i)]:m,[`${o}, ${d.replace("%s",i)}`]:c}:{[o]:{...c,...m}}}if(d&&d!=="media")return`${o}, ${d.replace("%s",String(i))}`}else if(i){if(d==="media")return{[`@media (prefers-color-scheme: ${String(i)})`]:{[o]:c}};if(d)return d.replace("%s",String(i))}return o};function QS(l,i){i.forEach(c=>{l[c]||(l[c]={})})}function N(l,i,c){!l[i]&&c&&(l[i]=c)}function Qi(l){return typeof l!="string"||!l.startsWith("hsl")?l:jy(l)}function Nn(l,i){`${i}Channel`in l||(l[`${i}Channel`]=$i(Qi(l[i])))}function ZS(l){return typeof l=="number"?`${l}px`:typeof l=="string"||typeof l=="function"||Array.isArray(l)?l:"8px"}const fn=l=>{try{return l()}catch{}},kS=(l="mui")=>fS(l);function xs(l,i,c,o,s){if(!c)return;c=c===!0?{}:c;const d=s==="dark"?"dark":"light";if(!o){i[s]=YS({...c,palette:{mode:d,...c?.palette},colorSpace:l});return}const{palette:m,...g}=Hs({...o,palette:{mode:d,...c?.palette},colorSpace:l});return i[s]={...c,palette:m,opacity:{...Xy(d),...c?.opacity},overlays:c?.overlays||$y(d)},g}function KS(l={},...i){const{colorSchemes:c={light:!0},defaultColorScheme:o,disableCssColorScheme:s=!1,cssVarPrefix:d="mui",nativeColor:m=!1,shouldSkipGeneratingVar:g=VS,colorSchemeSelector:v=c.light&&c.dark?"media":void 0,rootSelector:p=":root",...A}=l,E=Object.keys(c)[0],D=o||(c.light&&E!=="light"?"light":E),q=kS(d),{[D]:R,light:_,dark:Y,...J}=c,F={...J};let P=R;if((D==="dark"&&!("dark"in c)||D==="light"&&!("light"in c))&&(P=!0),!P)throw new Error(qa(21,D));let X;m&&(X="oklch");const U=xs(X,F,P,A,D);_&&!F.light&&xs(X,F,_,void 0,"light"),Y&&!F.dark&&xs(X,F,Y,void 0,"dark");let G={defaultColorScheme:D,...U,cssVarPrefix:d,colorSchemeSelector:v,rootSelector:p,getCssVar:q,colorSchemes:F,font:{...ES(U.typography),...U.font},spacing:ZS(A.spacing)};Object.keys(G.colorSchemes).forEach(ct=>{const y=G.colorSchemes[ct].palette,k=at=>{const O=at.split("-"),$=O[1],et=O[2];return q(at,y[$][et])};y.mode==="light"&&(N(y.common,"background","#fff"),N(y.common,"onBackground","#000")),y.mode==="dark"&&(N(y.common,"background","#000"),N(y.common,"onBackground","#fff"));function Q(at,O,$){if(X){let et;return at===Ua&&(et=`transparent ${((1-$)*100).toFixed(0)}%`),at===Nt&&(et=`#000 ${($*100).toFixed(0)}%`),at===Ut&&(et=`#fff ${($*100).toFixed(0)}%`),`color-mix(in ${X}, ${O}, ${et})`}return at(O,$)}if(QS(y,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),y.mode==="light"){N(y.Alert,"errorColor",Q(Nt,y.error.light,.6)),N(y.Alert,"infoColor",Q(Nt,y.info.light,.6)),N(y.Alert,"successColor",Q(Nt,y.success.light,.6)),N(y.Alert,"warningColor",Q(Nt,y.warning.light,.6)),N(y.Alert,"errorFilledBg",k("palette-error-main")),N(y.Alert,"infoFilledBg",k("palette-info-main")),N(y.Alert,"successFilledBg",k("palette-success-main")),N(y.Alert,"warningFilledBg",k("palette-warning-main")),N(y.Alert,"errorFilledColor",fn(()=>y.getContrastText(y.error.main))),N(y.Alert,"infoFilledColor",fn(()=>y.getContrastText(y.info.main))),N(y.Alert,"successFilledColor",fn(()=>y.getContrastText(y.success.main))),N(y.Alert,"warningFilledColor",fn(()=>y.getContrastText(y.warning.main))),N(y.Alert,"errorStandardBg",Q(Ut,y.error.light,.9)),N(y.Alert,"infoStandardBg",Q(Ut,y.info.light,.9)),N(y.Alert,"successStandardBg",Q(Ut,y.success.light,.9)),N(y.Alert,"warningStandardBg",Q(Ut,y.warning.light,.9)),N(y.Alert,"errorIconColor",k("palette-error-main")),N(y.Alert,"infoIconColor",k("palette-info-main")),N(y.Alert,"successIconColor",k("palette-success-main")),N(y.Alert,"warningIconColor",k("palette-warning-main")),N(y.AppBar,"defaultBg",k("palette-grey-100")),N(y.Avatar,"defaultBg",k("palette-grey-400")),N(y.Button,"inheritContainedBg",k("palette-grey-300")),N(y.Button,"inheritContainedHoverBg",k("palette-grey-A100")),N(y.Chip,"defaultBorder",k("palette-grey-400")),N(y.Chip,"defaultAvatarColor",k("palette-grey-700")),N(y.Chip,"defaultIconColor",k("palette-grey-700")),N(y.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),N(y.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),N(y.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),N(y.LinearProgress,"primaryBg",Q(Ut,y.primary.main,.62)),N(y.LinearProgress,"secondaryBg",Q(Ut,y.secondary.main,.62)),N(y.LinearProgress,"errorBg",Q(Ut,y.error.main,.62)),N(y.LinearProgress,"infoBg",Q(Ut,y.info.main,.62)),N(y.LinearProgress,"successBg",Q(Ut,y.success.main,.62)),N(y.LinearProgress,"warningBg",Q(Ut,y.warning.main,.62)),N(y.Skeleton,"bg",X?Q(Ua,y.text.primary,.11):`rgba(${k("palette-text-primaryChannel")} / 0.11)`),N(y.Slider,"primaryTrack",Q(Ut,y.primary.main,.62)),N(y.Slider,"secondaryTrack",Q(Ut,y.secondary.main,.62)),N(y.Slider,"errorTrack",Q(Ut,y.error.main,.62)),N(y.Slider,"infoTrack",Q(Ut,y.info.main,.62)),N(y.Slider,"successTrack",Q(Ut,y.success.main,.62)),N(y.Slider,"warningTrack",Q(Ut,y.warning.main,.62));const at=X?Q(Nt,y.background.default,.6825):_r(y.background.default,.8);N(y.SnackbarContent,"bg",at),N(y.SnackbarContent,"color",fn(()=>X?Us.text.primary:y.getContrastText(at))),N(y.SpeedDialAction,"fabHoverBg",_r(y.background.paper,.15)),N(y.StepConnector,"border",k("palette-grey-400")),N(y.StepContent,"border",k("palette-grey-400")),N(y.Switch,"defaultColor",k("palette-common-white")),N(y.Switch,"defaultDisabledColor",k("palette-grey-100")),N(y.Switch,"primaryDisabledColor",Q(Ut,y.primary.main,.62)),N(y.Switch,"secondaryDisabledColor",Q(Ut,y.secondary.main,.62)),N(y.Switch,"errorDisabledColor",Q(Ut,y.error.main,.62)),N(y.Switch,"infoDisabledColor",Q(Ut,y.info.main,.62)),N(y.Switch,"successDisabledColor",Q(Ut,y.success.main,.62)),N(y.Switch,"warningDisabledColor",Q(Ut,y.warning.main,.62)),N(y.TableCell,"border",Q(Ut,Q(Ua,y.divider,1),.88)),N(y.Tooltip,"bg",Q(Ua,y.grey[700],.92))}if(y.mode==="dark"){N(y.Alert,"errorColor",Q(Ut,y.error.light,.6)),N(y.Alert,"infoColor",Q(Ut,y.info.light,.6)),N(y.Alert,"successColor",Q(Ut,y.success.light,.6)),N(y.Alert,"warningColor",Q(Ut,y.warning.light,.6)),N(y.Alert,"errorFilledBg",k("palette-error-dark")),N(y.Alert,"infoFilledBg",k("palette-info-dark")),N(y.Alert,"successFilledBg",k("palette-success-dark")),N(y.Alert,"warningFilledBg",k("palette-warning-dark")),N(y.Alert,"errorFilledColor",fn(()=>y.getContrastText(y.error.dark))),N(y.Alert,"infoFilledColor",fn(()=>y.getContrastText(y.info.dark))),N(y.Alert,"successFilledColor",fn(()=>y.getContrastText(y.success.dark))),N(y.Alert,"warningFilledColor",fn(()=>y.getContrastText(y.warning.dark))),N(y.Alert,"errorStandardBg",Q(Nt,y.error.light,.9)),N(y.Alert,"infoStandardBg",Q(Nt,y.info.light,.9)),N(y.Alert,"successStandardBg",Q(Nt,y.success.light,.9)),N(y.Alert,"warningStandardBg",Q(Nt,y.warning.light,.9)),N(y.Alert,"errorIconColor",k("palette-error-main")),N(y.Alert,"infoIconColor",k("palette-info-main")),N(y.Alert,"successIconColor",k("palette-success-main")),N(y.Alert,"warningIconColor",k("palette-warning-main")),N(y.AppBar,"defaultBg",k("palette-grey-900")),N(y.AppBar,"darkBg",k("palette-background-paper")),N(y.AppBar,"darkColor",k("palette-text-primary")),N(y.Avatar,"defaultBg",k("palette-grey-600")),N(y.Button,"inheritContainedBg",k("palette-grey-800")),N(y.Button,"inheritContainedHoverBg",k("palette-grey-700")),N(y.Chip,"defaultBorder",k("palette-grey-700")),N(y.Chip,"defaultAvatarColor",k("palette-grey-300")),N(y.Chip,"defaultIconColor",k("palette-grey-300")),N(y.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),N(y.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),N(y.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),N(y.LinearProgress,"primaryBg",Q(Nt,y.primary.main,.5)),N(y.LinearProgress,"secondaryBg",Q(Nt,y.secondary.main,.5)),N(y.LinearProgress,"errorBg",Q(Nt,y.error.main,.5)),N(y.LinearProgress,"infoBg",Q(Nt,y.info.main,.5)),N(y.LinearProgress,"successBg",Q(Nt,y.success.main,.5)),N(y.LinearProgress,"warningBg",Q(Nt,y.warning.main,.5)),N(y.Skeleton,"bg",X?Q(Ua,y.text.primary,.13):`rgba(${k("palette-text-primaryChannel")} / 0.13)`),N(y.Slider,"primaryTrack",Q(Nt,y.primary.main,.5)),N(y.Slider,"secondaryTrack",Q(Nt,y.secondary.main,.5)),N(y.Slider,"errorTrack",Q(Nt,y.error.main,.5)),N(y.Slider,"infoTrack",Q(Nt,y.info.main,.5)),N(y.Slider,"successTrack",Q(Nt,y.success.main,.5)),N(y.Slider,"warningTrack",Q(Nt,y.warning.main,.5));const at=X?Q(Ut,y.background.default,.985):_r(y.background.default,.98);N(y.SnackbarContent,"bg",at),N(y.SnackbarContent,"color",fn(()=>X?Gy.text.primary:y.getContrastText(at))),N(y.SpeedDialAction,"fabHoverBg",_r(y.background.paper,.15)),N(y.StepConnector,"border",k("palette-grey-600")),N(y.StepContent,"border",k("palette-grey-600")),N(y.Switch,"defaultColor",k("palette-grey-300")),N(y.Switch,"defaultDisabledColor",k("palette-grey-600")),N(y.Switch,"primaryDisabledColor",Q(Nt,y.primary.main,.55)),N(y.Switch,"secondaryDisabledColor",Q(Nt,y.secondary.main,.55)),N(y.Switch,"errorDisabledColor",Q(Nt,y.error.main,.55)),N(y.Switch,"infoDisabledColor",Q(Nt,y.info.main,.55)),N(y.Switch,"successDisabledColor",Q(Nt,y.success.main,.55)),N(y.Switch,"warningDisabledColor",Q(Nt,y.warning.main,.55)),N(y.TableCell,"border",Q(Nt,Q(Ua,y.divider,1),.68)),N(y.Tooltip,"bg",Q(Ua,y.grey[700],.92))}Nn(y.background,"default"),Nn(y.background,"paper"),Nn(y.common,"background"),Nn(y.common,"onBackground"),Nn(y,"divider"),Object.keys(y).forEach(at=>{const O=y[at];at!=="tonalOffset"&&O&&typeof O=="object"&&(O.main&&N(y[at],"mainChannel",$i(Qi(O.main))),O.light&&N(y[at],"lightChannel",$i(Qi(O.light))),O.dark&&N(y[at],"darkChannel",$i(Qi(O.dark))),O.contrastText&&N(y[at],"contrastTextChannel",$i(Qi(O.contrastText))),at==="text"&&(Nn(y[at],"primary"),Nn(y[at],"secondary")),at==="action"&&(O.active&&Nn(y[at],"active"),O.selected&&Nn(y[at],"selected")))})}),G=i.reduce((ct,y)=>Ge(ct,y),G);const V={prefix:d,disableCssColorScheme:s,shouldSkipGeneratingVar:g,getSelector:$S(G),enableContrastVars:m},{vars:dt,generateThemeVars:ht,generateStyleSheets:gt}=mS(G,V);return G.vars=dt,Object.entries(G.colorSchemes[G.defaultColorScheme]).forEach(([ct,y])=>{G[ct]=y}),G.generateThemeVars=ht,G.generateStyleSheets=gt,G.generateSpacing=function(){return Ry(A.spacing,lf(this))},G.getColorSchemeSelector=yS(v),G.spacing=G.generateSpacing(),G.shouldSkipGeneratingVar=g,G.unstable_sxConfig={...au,...A?.unstable_sxConfig},G.unstable_sx=function(y){return Ga({sx:y,theme:this})},G.toRuntimeSource=Vy,G}function ey(l,i,c){l.colorSchemes&&c&&(l.colorSchemes[i]={...c!==!0&&c,palette:of({...c===!0?{}:c.palette,mode:i})})}function Qy(l={},...i){const{palette:c,cssVariables:o=!1,colorSchemes:s=c?void 0:{light:!0},defaultColorScheme:d=c?.mode,...m}=l,g=d||"light",v=s?.[g],p={...s,...c?{[g]:{...typeof v!="boolean"&&v,palette:c}}:void 0};if(o===!1){if(!("colorSchemes"in l))return Hs(l,...i);let A=c;"palette"in l||p[g]&&(p[g]!==!0?A=p[g].palette:g==="dark"&&(A={mode:"dark"}));const E=Hs({...l,palette:A},...i);return E.defaultColorScheme=g,E.colorSchemes=p,E.palette.mode==="light"&&(E.colorSchemes.light={...p.light!==!0&&p.light,palette:E.palette},ey(E,"dark",p.dark)),E.palette.mode==="dark"&&(E.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:E.palette},ey(E,"light",p.light)),E}return!c&&!("light"in p)&&g==="light"&&(p.light=!0),KS({...m,colorSchemes:p,defaultColorScheme:g,...typeof o!="boolean"&&o},...i)}const Zy=Qy();function JS(l){return l!=="ownerState"&&l!=="theme"&&l!=="sx"&&l!=="as"}const ky=l=>JS(l)&&l!=="classes",ye=Q1({themeId:Ks,defaultTheme:Zy,rootShouldForwardProp:ky});function WS(l){return lt.jsx(j1,{...l,defaultTheme:Zy,themeId:Ks})}function Ky(l){return function(c){return lt.jsx(WS,{styles:typeof l=="function"?o=>l({theme:o,...c}):l})}}function FS(){return Dy}const Ln=sS;function Va(l){return uS(l)}function Rr(l){const i=Z.useRef(l);return W1(()=>{i.current=l}),Z.useRef((...c)=>(0,i.current)(...c)).current}function ny(...l){const i=Z.useRef(void 0),c=Z.useCallback(o=>{const s=l.map(d=>{if(d==null)return null;if(typeof d=="function"){const m=d,g=m(o);return typeof g=="function"?g:()=>{m(null)}}return d.current=o,()=>{d.current=null}});return()=>{s.forEach(d=>d?.())}},l);return Z.useMemo(()=>l.every(o=>o==null)?null:o=>{i.current&&(i.current(),i.current=void 0),o!=null&&(i.current=c(o))},l)}function PS(l,i){if(l==null)return{};var c={};for(var o in l)if({}.hasOwnProperty.call(l,o)){if(i.indexOf(o)!==-1)continue;c[o]=l[o]}return c}function js(l,i){return js=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,o){return c.__proto__=o,c},js(l,i)}function IS(l,i){l.prototype=Object.create(i.prototype),l.prototype.constructor=l,js(l,i)}const ay=Hl.createContext(null);function t2(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function sf(l,i){var c=function(d){return i&&Z.isValidElement(d)?i(d):d},o=Object.create(null);return l&&Z.Children.map(l,function(s){return s}).forEach(function(s){o[s.key]=c(s)}),o}function e2(l,i){l=l||{},i=i||{};function c(A){return A in i?i[A]:l[A]}var o=Object.create(null),s=[];for(var d in l)d in i?s.length&&(o[d]=s,s=[]):s.push(d);var m,g={};for(var v in i){if(o[v])for(m=0;m{this.currentId=null,c()},i)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function c2(){const l=Jy(df.create).current;return r2(l.disposeEffect),l}function iy(l){try{return l.matches(":focus-visible")}catch{}return!1}class Lr{static create(){return new Lr}static use(){const i=Jy(Lr.create).current,[c,o]=Z.useState(!1);return i.shouldMount=c,i.setShouldMount=o,Z.useEffect(i.mountEffect,[c]),i}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=s2(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...i){this.mount().then(()=>this.ref.current?.start(...i))}stop(...i){this.mount().then(()=>this.ref.current?.stop(...i))}pulsate(...i){this.mount().then(()=>this.ref.current?.pulsate(...i))}}function o2(){return Lr.use()}function s2(){let l,i;const c=new Promise((o,s)=>{l=o,i=s});return c.resolve=l,c.reject=i,c}function f2(l){const{className:i,classes:c,pulsate:o=!1,rippleX:s,rippleY:d,rippleSize:m,in:g,onExited:v,timeout:p}=l,[A,E]=Z.useState(!1),D=me(i,c.ripple,c.rippleVisible,o&&c.ripplePulsate),q={width:m,height:m,top:-(m/2)+d,left:-(m/2)+s},R=me(c.child,A&&c.childLeaving,o&&c.childPulsate);return!g&&!A&&E(!0),Z.useEffect(()=>{if(!g&&v!=null){const _=setTimeout(v,p);return()=>{clearTimeout(_)}}},[v,g,p]),lt.jsx("span",{className:D,style:q,children:lt.jsx("span",{className:R})})}const Fe=Ya("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ls=550,d2=80,h2=ya` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`,m2=ya` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`,y2=ya` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`,p2=ye("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),g2=ye(f2,{name:"MuiTouchRipple",slot:"Ripple"})` - opacity: 0; - position: absolute; - - &.${Fe.rippleVisible} { - opacity: 0.3; - transform: scale(1); - animation-name: ${h2}; - animation-duration: ${Ls}ms; - animation-timing-function: ${({theme:l})=>l.transitions.easing.easeInOut}; - } - - &.${Fe.ripplePulsate} { - animation-duration: ${({theme:l})=>l.transitions.duration.shorter}ms; - } - - & .${Fe.child} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${Fe.childLeaving} { - opacity: 0; - animation-name: ${m2}; - animation-duration: ${Ls}ms; - animation-timing-function: ${({theme:l})=>l.transitions.easing.easeInOut}; - } - - & .${Fe.childPulsate} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${y2}; - animation-duration: 2500ms; - animation-timing-function: ${({theme:l})=>l.transitions.easing.easeInOut}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`,v2=Z.forwardRef(function(i,c){const o=Va({props:i,name:"MuiTouchRipple"}),{center:s=!1,classes:d={},className:m,...g}=o,[v,p]=Z.useState([]),A=Z.useRef(0),E=Z.useRef(null);Z.useEffect(()=>{E.current&&(E.current(),E.current=null)},[v]);const D=Z.useRef(!1),q=c2(),R=Z.useRef(null),_=Z.useRef(null),Y=Z.useCallback(X=>{const{pulsate:U,rippleX:G,rippleY:V,rippleSize:dt,cb:ht}=X;p(gt=>[...gt,lt.jsx(g2,{classes:{ripple:me(d.ripple,Fe.ripple),rippleVisible:me(d.rippleVisible,Fe.rippleVisible),ripplePulsate:me(d.ripplePulsate,Fe.ripplePulsate),child:me(d.child,Fe.child),childLeaving:me(d.childLeaving,Fe.childLeaving),childPulsate:me(d.childPulsate,Fe.childPulsate)},timeout:Ls,pulsate:U,rippleX:G,rippleY:V,rippleSize:dt},A.current)]),A.current+=1,E.current=ht},[d]),J=Z.useCallback((X={},U={},G=()=>{})=>{const{pulsate:V=!1,center:dt=s||U.pulsate,fakeElement:ht=!1}=U;if(X?.type==="mousedown"&&D.current){D.current=!1;return}X?.type==="touchstart"&&(D.current=!0);const gt=ht?null:_.current,ct=gt?gt.getBoundingClientRect():{width:0,height:0,left:0,top:0};let y,k,Q;if(dt||X===void 0||X.clientX===0&&X.clientY===0||!X.clientX&&!X.touches)y=Math.round(ct.width/2),k=Math.round(ct.height/2);else{const{clientX:at,clientY:O}=X.touches&&X.touches.length>0?X.touches[0]:X;y=Math.round(at-ct.left),k=Math.round(O-ct.top)}if(dt)Q=Math.sqrt((2*ct.width**2+ct.height**2)/3),Q%2===0&&(Q+=1);else{const at=Math.max(Math.abs((gt?gt.clientWidth:0)-y),y)*2+2,O=Math.max(Math.abs((gt?gt.clientHeight:0)-k),k)*2+2;Q=Math.sqrt(at**2+O**2)}X?.touches?R.current===null&&(R.current=()=>{Y({pulsate:V,rippleX:y,rippleY:k,rippleSize:Q,cb:G})},q.start(d2,()=>{R.current&&(R.current(),R.current=null)})):Y({pulsate:V,rippleX:y,rippleY:k,rippleSize:Q,cb:G})},[s,Y,q]),F=Z.useCallback(()=>{J({},{pulsate:!0})},[J]),P=Z.useCallback((X,U)=>{if(q.clear(),X?.type==="touchend"&&R.current){R.current(),R.current=null,q.start(0,()=>{P(X,U)});return}R.current=null,p(G=>G.length>0?G.slice(1):G),E.current=U},[q]);return Z.useImperativeHandle(c,()=>({pulsate:F,start:J,stop:P}),[F,J,P]),lt.jsx(p2,{className:me(Fe.root,d.root,m),ref:_,...g,children:lt.jsx(ff,{component:null,exit:!0,children:v})})});function b2(l){return Vl("MuiButtonBase",l)}const S2=Ya("MuiButtonBase",["root","disabled","focusVisible"]),T2=l=>{const{disabled:i,focusVisible:c,focusVisibleClassName:o,classes:s}=l,m=lu({root:["root",i&&"disabled",c&&"focusVisible"]},b2,s);return c&&o&&(m.root+=` ${o}`),m},C2=ye("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${S2.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),E2=Z.forwardRef(function(i,c){const o=Va({props:i,name:"MuiButtonBase"}),{action:s,centerRipple:d=!1,children:m,className:g,component:v="button",disabled:p=!1,disableRipple:A=!1,disableTouchRipple:E=!1,focusRipple:D=!1,focusVisibleClassName:q,LinkComponent:R="a",onBlur:_,onClick:Y,onContextMenu:J,onDragLeave:F,onFocus:P,onFocusVisible:X,onKeyDown:U,onKeyUp:G,onMouseDown:V,onMouseLeave:dt,onMouseUp:ht,onTouchEnd:gt,onTouchMove:ct,onTouchStart:y,tabIndex:k=0,TouchRippleProps:Q,touchRippleRef:at,type:O,...$}=o,et=Z.useRef(null),rt=o2(),wt=ny(rt.ref,at),[S,j]=Z.useState(!1);p&&S&&j(!1),Z.useImperativeHandle(s,()=>({focusVisible:()=>{j(!0),et.current.focus()}}),[]);const W=rt.shouldMount&&!A&&!p;Z.useEffect(()=>{S&&D&&!A&&rt.pulsate()},[A,D,S,rt]);const tt=Un(rt,"start",V,E),ot=Un(rt,"stop",J,E),pt=Un(rt,"stop",F,E),Et=Un(rt,"stop",ht,E),re=Un(rt,"stop",ft=>{S&&ft.preventDefault(),dt&&dt(ft)},E),Qt=Un(rt,"start",y,E),pa=Un(rt,"stop",gt,E),Xa=Un(rt,"stop",ct,E),Xl=Un(rt,"stop",ft=>{iy(ft.target)||j(!1),_&&_(ft)},!1),iu=Rr(ft=>{et.current||(et.current=ft.currentTarget),iy(ft.target)&&(j(!0),X&&X(ft)),P&&P(ft)}),en=()=>{const ft=et.current;return v&&v!=="button"&&!(ft.tagName==="A"&&ft.href)},$l=Rr(ft=>{D&&!ft.repeat&&S&&ft.key===" "&&rt.stop(ft,()=>{rt.start(ft)}),ft.target===ft.currentTarget&&en()&&ft.key===" "&&ft.preventDefault(),U&&U(ft),ft.target===ft.currentTarget&&en()&&ft.key==="Enter"&&!p&&(ft.preventDefault(),Y&&Y(ft))}),Ql=Rr(ft=>{D&&ft.key===" "&&S&&!ft.defaultPrevented&&rt.stop(ft,()=>{rt.pulsate(ft)}),G&&G(ft),Y&&ft.target===ft.currentTarget&&en()&&ft.key===" "&&!ft.defaultPrevented&&Y(ft)});let $a=v;$a==="button"&&($.href||$.to)&&($a=R);const qn={};if($a==="button"){const ft=!!$.formAction;qn.type=O===void 0&&!ft?"button":O,qn.disabled=p}else!$.href&&!$.to&&(qn.role="button"),p&&(qn["aria-disabled"]=p);const Zl=ny(c,et),Qa={...o,centerRipple:d,component:v,disabled:p,disableRipple:A,disableTouchRipple:E,focusRipple:D,tabIndex:k,focusVisible:S},kl=T2(Qa);return lt.jsxs(C2,{as:$a,className:me(kl.root,g),ownerState:Qa,onBlur:Xl,onClick:Y,onContextMenu:ot,onFocus:iu,onKeyDown:$l,onKeyUp:Ql,onMouseDown:tt,onMouseLeave:re,onMouseUp:Et,onDragLeave:pt,onTouchEnd:pa,onTouchMove:Xa,onTouchStart:Qt,ref:Zl,tabIndex:p?-1:k,type:O,...qn,...$,children:[m,W?lt.jsx(v2,{ref:wt,center:d,...Q}):null]})});function Un(l,i,c,o=!1){return Rr(s=>(c&&c(s),o||l[i](s),!0))}function _2(l){return typeof l.main=="string"}function A2(l,i=[]){if(!_2(l))return!1;for(const c of i)if(!l.hasOwnProperty(c)||typeof l[c]!="string")return!1;return!0}function ma(l=[]){return([,i])=>i&&A2(i,l)}function x2(l){return Vl("MuiCircularProgress",l)}Ya("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const un=44,qs=ya` - 0% { - transform: rotate(0deg); - } - - 100% { - transform: rotate(360deg); - } -`,Gs=ya` - 0% { - stroke-dasharray: 1px, 200px; - stroke-dashoffset: 0; - } - - 50% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -15px; - } - - 100% { - stroke-dasharray: 1px, 200px; - stroke-dashoffset: -126px; - } -`,z2=typeof qs!="string"?Yl` - animation: ${qs} 1.4s linear infinite; - `:null,O2=typeof Gs!="string"?Yl` - animation: ${Gs} 1.4s ease-in-out infinite; - `:null,M2=l=>{const{classes:i,variant:c,color:o,disableShrink:s}=l,d={root:["root",c,`color${Rt(o)}`],svg:["svg"],track:["track"],circle:["circle",`circle${Rt(c)}`,s&&"circleDisableShrink"]};return lu(d,x2,i)},R2=ye("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(l,i)=>{const{ownerState:c}=l;return[i.root,i[c.variant],i[`color${Rt(c.color)}`]]}})(Ln(({theme:l})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:l.transitions.create("transform")}},{props:{variant:"indeterminate"},style:z2||{animation:`${qs} 1.4s linear infinite`}},...Object.entries(l.palette).filter(ma()).map(([i])=>({props:{color:i},style:{color:(l.vars||l).palette[i].main}}))]}))),w2=ye("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),D2=ye("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(l,i)=>{const{ownerState:c}=l;return[i.circle,i[`circle${Rt(c.variant)}`],c.disableShrink&&i.circleDisableShrink]}})(Ln(({theme:l})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:l.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:i})=>i.variant==="indeterminate"&&!i.disableShrink,style:O2||{animation:`${Gs} 1.4s ease-in-out infinite`}}]}))),B2=ye("circle",{name:"MuiCircularProgress",slot:"Track"})(Ln(({theme:l})=>({stroke:"currentColor",opacity:(l.vars||l).palette.action.activatedOpacity}))),N2=Z.forwardRef(function(i,c){const o=Va({props:i,name:"MuiCircularProgress"}),{className:s,color:d="primary",disableShrink:m=!1,enableTrackSlot:g=!1,size:v=40,style:p,thickness:A=3.6,value:E=0,variant:D="indeterminate",...q}=o,R={...o,color:d,disableShrink:m,size:v,thickness:A,value:E,variant:D,enableTrackSlot:g},_=M2(R),Y={},J={},F={};if(D==="determinate"){const P=2*Math.PI*((un-A)/2);Y.strokeDasharray=P.toFixed(3),F["aria-valuenow"]=Math.round(E),Y.strokeDashoffset=`${((100-E)/100*P).toFixed(3)}px`,J.transform="rotate(-90deg)"}return lt.jsx(R2,{className:me(_.root,s),style:{width:v,height:v,...J,...p},ownerState:R,ref:c,role:"progressbar",...F,...q,children:lt.jsxs(w2,{className:_.svg,ownerState:R,viewBox:`${un/2} ${un/2} ${un} ${un}`,children:[g?lt.jsx(B2,{className:_.track,ownerState:R,cx:un,cy:un,r:(un-A)/2,fill:"none",strokeWidth:A,"aria-hidden":"true"}):null,lt.jsx(D2,{className:_.circle,style:Y,ownerState:R,cx:un,cy:un,r:(un-A)/2,fill:"none",strokeWidth:A})]})})});function U2(l){return Vl("MuiTypography",l)}Ya("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const H2={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},j2=FS(),L2=l=>{const{align:i,gutterBottom:c,noWrap:o,paragraph:s,variant:d,classes:m}=l,g={root:["root",d,l.align!=="inherit"&&`align${Rt(i)}`,c&&"gutterBottom",o&&"noWrap",s&&"paragraph"]};return lu(g,U2,m)},q2=ye("span",{name:"MuiTypography",slot:"Root",overridesResolver:(l,i)=>{const{ownerState:c}=l;return[i.root,c.variant&&i[c.variant],c.align!=="inherit"&&i[`align${Rt(c.align)}`],c.noWrap&&i.noWrap,c.gutterBottom&&i.gutterBottom,c.paragraph&&i.paragraph]}})(Ln(({theme:l})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(l.typography).filter(([i,c])=>i!=="inherit"&&c&&typeof c=="object").map(([i,c])=>({props:{variant:i},style:c})),...Object.entries(l.palette).filter(ma()).map(([i])=>({props:{color:i},style:{color:(l.vars||l).palette[i].main}})),...Object.entries(l.palette?.text||{}).filter(([,i])=>typeof i=="string").map(([i])=>({props:{color:`text${Rt(i)}`},style:{color:(l.vars||l).palette.text[i]}})),{props:({ownerState:i})=>i.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:i})=>i.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:i})=>i.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:i})=>i.paragraph,style:{marginBottom:16}}]}))),uy={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},hf=Z.forwardRef(function(i,c){const{color:o,...s}=Va({props:i,name:"MuiTypography"}),d=!H2[o],m=j2({...s,...d&&{color:o}}),{align:g="inherit",className:v,component:p,gutterBottom:A=!1,noWrap:E=!1,paragraph:D=!1,variant:q="body1",variantMapping:R=uy,..._}=m,Y={...m,align:g,color:o,className:v,component:p,gutterBottom:A,noWrap:E,paragraph:D,variant:q,variantMapping:R},J=p||(D?"p":R[q]||uy[q])||"span",F=L2(Y);return lt.jsx(q2,{as:J,ref:c,className:me(F.root,v),..._,ownerState:Y,style:{...g!=="inherit"&&{"--Typography-textAlign":g},..._.style}})}),G2=Ya("MuiBox",["root"]),Y2=Qy(),Hn=G1({themeId:Ks,defaultTheme:Y2,defaultClassName:G2.root,generateClassName:By.generate});function V2(l){return Vl("MuiButton",l)}const Ha=Ya("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),X2=Z.createContext({}),$2=Z.createContext(void 0),Q2=l=>{const{color:i,disableElevation:c,fullWidth:o,size:s,variant:d,loading:m,loadingPosition:g,classes:v}=l,p={root:["root",m&&"loading",d,`${d}${Rt(i)}`,`size${Rt(s)}`,`${d}Size${Rt(s)}`,`color${Rt(i)}`,c&&"disableElevation",o&&"fullWidth",m&&`loadingPosition${Rt(g)}`],startIcon:["icon","startIcon",`iconSize${Rt(s)}`],endIcon:["icon","endIcon",`iconSize${Rt(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},A=lu(p,V2,v);return{...v,...A}},Wy=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Z2=ye(E2,{shouldForwardProp:l=>ky(l)||l==="classes",name:"MuiButton",slot:"Root",overridesResolver:(l,i)=>{const{ownerState:c}=l;return[i.root,i[c.variant],i[`${c.variant}${Rt(c.color)}`],i[`size${Rt(c.size)}`],i[`${c.variant}Size${Rt(c.size)}`],c.color==="inherit"&&i.colorInherit,c.disableElevation&&i.disableElevation,c.fullWidth&&i.fullWidth,c.loading&&i.loading]}})(Ln(({theme:l})=>{const i=l.palette.mode==="light"?l.palette.grey[300]:l.palette.grey[800],c=l.palette.mode==="light"?l.palette.grey.A100:l.palette.grey[700];return{...l.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(l.vars||l).shape.borderRadius,transition:l.transitions.create(["background-color","box-shadow","border-color","color"],{duration:l.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Ha.disabled}`]:{color:(l.vars||l).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(l.vars||l).shadows[2],"&:hover":{boxShadow:(l.vars||l).shadows[4],"@media (hover: none)":{boxShadow:(l.vars||l).shadows[2]}},"&:active":{boxShadow:(l.vars||l).shadows[8]},[`&.${Ha.focusVisible}`]:{boxShadow:(l.vars||l).shadows[6]},[`&.${Ha.disabled}`]:{color:(l.vars||l).palette.action.disabled,boxShadow:(l.vars||l).shadows[0],backgroundColor:(l.vars||l).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Ha.disabled}`]:{border:`1px solid ${(l.vars||l).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(l.palette).filter(ma()).map(([o])=>({props:{color:o},style:{"--variant-textColor":(l.vars||l).palette[o].main,"--variant-outlinedColor":(l.vars||l).palette[o].main,"--variant-outlinedBorder":l.alpha((l.vars||l).palette[o].main,.5),"--variant-containedColor":(l.vars||l).palette[o].contrastText,"--variant-containedBg":(l.vars||l).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(l.vars||l).palette[o].dark,"--variant-textBg":l.alpha((l.vars||l).palette[o].main,(l.vars||l).palette.action.hoverOpacity),"--variant-outlinedBorder":(l.vars||l).palette[o].main,"--variant-outlinedBg":l.alpha((l.vars||l).palette[o].main,(l.vars||l).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":l.vars?l.vars.palette.Button.inheritContainedBg:i,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":l.vars?l.vars.palette.Button.inheritContainedHoverBg:c,"--variant-textBg":l.alpha((l.vars||l).palette.text.primary,(l.vars||l).palette.action.hoverOpacity),"--variant-outlinedBg":l.alpha((l.vars||l).palette.text.primary,(l.vars||l).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:l.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:l.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:l.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:l.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:l.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:l.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ha.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ha.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:l.transitions.create(["background-color","box-shadow","border-color"],{duration:l.transitions.duration.short}),[`&.${Ha.loading}`]:{color:"transparent"}}}]}})),k2=ye("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(l,i)=>{const{ownerState:c}=l;return[i.startIcon,c.loading&&i.startIconLoadingStart,i[`iconSize${Rt(c.size)}`]]}})(({theme:l})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:l.transitions.create(["opacity"],{duration:l.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Wy]})),K2=ye("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(l,i)=>{const{ownerState:c}=l;return[i.endIcon,c.loading&&i.endIconLoadingEnd,i[`iconSize${Rt(c.size)}`]]}})(({theme:l})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:l.transitions.create(["opacity"],{duration:l.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Wy]})),J2=ye("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:l})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(l.vars||l).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),ry=ye("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),W2=Z.forwardRef(function(i,c){const o=Z.useContext(X2),s=Z.useContext($2),d=jr(o,i),m=Va({props:d,name:"MuiButton"}),{children:g,color:v="primary",component:p="button",className:A,disabled:E=!1,disableElevation:D=!1,disableFocusRipple:q=!1,endIcon:R,focusVisibleClassName:_,fullWidth:Y=!1,id:J,loading:F=null,loadingIndicator:P,loadingPosition:X="center",size:U="medium",startIcon:G,type:V,variant:dt="text",...ht}=m,gt=oS(J),ct=P??lt.jsx(N2,{"aria-labelledby":gt,color:"inherit",size:16}),y={...m,color:v,component:p,disabled:E,disableElevation:D,disableFocusRipple:q,fullWidth:Y,loading:F,loadingIndicator:ct,loadingPosition:X,size:U,type:V,variant:dt},k=Q2(y),Q=(G||F&&X==="start")&<.jsx(k2,{className:k.startIcon,ownerState:y,children:G||lt.jsx(ry,{className:k.loadingIconPlaceholder,ownerState:y})}),at=(R||F&&X==="end")&<.jsx(K2,{className:k.endIcon,ownerState:y,children:R||lt.jsx(ry,{className:k.loadingIconPlaceholder,ownerState:y})}),O=s||"",$=typeof F=="boolean"?lt.jsx("span",{className:k.loadingWrapper,style:{display:"contents"},children:F&<.jsx(J2,{className:k.loadingIndicator,ownerState:y,children:ct})}):null;return lt.jsxs(Z2,{ownerState:y,className:me(o.className,k.root,A,O),component:p,disabled:E||F,focusRipple:!q,focusVisibleClassName:me(k.focusVisible,_),ref:c,type:V,id:F?gt:J,...ht,classes:k,children:[Q,X!=="end"&&$,g,X==="end"&&$,at]})}),Ys=typeof Ky({})=="function",F2=(l,i)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...i&&!l.vars&&{colorScheme:l.palette.mode}}),P2=l=>({color:(l.vars||l).palette.text.primary,...l.typography.body1,backgroundColor:(l.vars||l).palette.background.default,"@media print":{backgroundColor:(l.vars||l).palette.common.white}}),Fy=(l,i=!1)=>{const c={};i&&l.colorSchemes&&typeof l.getColorSchemeSelector=="function"&&Object.entries(l.colorSchemes).forEach(([d,m])=>{const g=l.getColorSchemeSelector(d);g.startsWith("@")?c[g]={":root":{colorScheme:m.palette?.mode}}:c[g.replace(/\s*&/,"")]={colorScheme:m.palette?.mode}});let o={html:F2(l,i),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:l.typography.fontWeightBold},body:{margin:0,...P2(l),"&::backdrop":{backgroundColor:(l.vars||l).palette.background.default}},...c};const s=l.components?.MuiCssBaseline?.styleOverrides;return s&&(o=[o,s]),o},wr="mui-ecs",I2=l=>{const i=Fy(l,!1),c=Array.isArray(i)?i[0]:i;return!l.vars&&c&&(c.html[`:root:has(${wr})`]={colorScheme:l.palette.mode}),l.colorSchemes&&Object.entries(l.colorSchemes).forEach(([o,s])=>{const d=l.getColorSchemeSelector(o);d.startsWith("@")?c[d]={[`:root:not(:has(.${wr}))`]:{colorScheme:s.palette?.mode}}:c[d.replace(/\s*&/,"")]={[`&:not(:has(.${wr}))`]:{colorScheme:s.palette?.mode}}}),i},t5=Ky(Ys?({theme:l,enableColorScheme:i})=>Fy(l,i):({theme:l})=>I2(l));function e5(l){const i=Va({props:l,name:"MuiCssBaseline"}),{children:c,enableColorScheme:o=!1}=i;return lt.jsxs(Z.Fragment,{children:[Ys&<.jsx(t5,{enableColorScheme:o}),!Ys&&!o&<.jsx("span",{className:wr,style:{display:"none"}}),c]})}function n5(l){return Vl("MuiLinearProgress",l)}Ya("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Vs=4,Xs=ya` - 0% { - left: -35%; - right: 100%; - } - - 60% { - left: 100%; - right: -90%; - } - - 100% { - left: 100%; - right: -90%; - } -`,a5=typeof Xs!="string"?Yl` - animation: ${Xs} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - `:null,$s=ya` - 0% { - left: -200%; - right: 100%; - } - - 60% { - left: 107%; - right: -8%; - } - - 100% { - left: 107%; - right: -8%; - } -`,l5=typeof $s!="string"?Yl` - animation: ${$s} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `:null,Qs=ya` - 0% { - opacity: 1; - background-position: 0 -23px; - } - - 60% { - opacity: 0; - background-position: 0 -23px; - } - - 100% { - opacity: 1; - background-position: -200px -23px; - } -`,i5=typeof Qs!="string"?Yl` - animation: ${Qs} 3s infinite linear; - `:null,u5=l=>{const{classes:i,variant:c,color:o}=l,s={root:["root",`color${Rt(o)}`,c],dashed:["dashed",`dashedColor${Rt(o)}`],bar1:["bar","bar1",`barColor${Rt(o)}`,(c==="indeterminate"||c==="query")&&"bar1Indeterminate",c==="determinate"&&"bar1Determinate",c==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",c!=="buffer"&&`barColor${Rt(o)}`,c==="buffer"&&`color${Rt(o)}`,(c==="indeterminate"||c==="query")&&"bar2Indeterminate",c==="buffer"&&"bar2Buffer"]};return lu(s,n5,i)},mf=(l,i)=>l.vars?l.vars.palette.LinearProgress[`${i}Bg`]:l.palette.mode==="light"?l.lighten(l.palette[i].main,.62):l.darken(l.palette[i].main,.5),r5=ye("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(l,i)=>{const{ownerState:c}=l;return[i.root,i[`color${Rt(c.color)}`],i[c.variant]]}})(Ln(({theme:l})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(l.palette).filter(ma()).map(([i])=>({props:{color:i},style:{backgroundColor:mf(l,i)}})),{props:({ownerState:i})=>i.color==="inherit"&&i.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),c5=ye("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(l,i)=>{const{ownerState:c}=l;return[i.dashed,i[`dashedColor${Rt(c.color)}`]]}})(Ln(({theme:l})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(l.palette).filter(ma()).map(([i])=>{const c=mf(l,i);return{props:{color:i},style:{backgroundImage:`radial-gradient(${c} 0%, ${c} 16%, transparent 42%)`}}})]})),i5||{animation:`${Qs} 3s infinite linear`}),o5=ye("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(l,i)=>{const{ownerState:c}=l;return[i.bar,i.bar1,i[`barColor${Rt(c.color)}`],(c.variant==="indeterminate"||c.variant==="query")&&i.bar1Indeterminate,c.variant==="determinate"&&i.bar1Determinate,c.variant==="buffer"&&i.bar1Buffer]}})(Ln(({theme:l})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(l.palette).filter(ma()).map(([i])=>({props:{color:i},style:{backgroundColor:(l.vars||l).palette[i].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Vs}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Vs}s linear`}},{props:({ownerState:i})=>i.variant==="indeterminate"||i.variant==="query",style:{width:"auto"}},{props:({ownerState:i})=>i.variant==="indeterminate"||i.variant==="query",style:a5||{animation:`${Xs} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),s5=ye("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(l,i)=>{const{ownerState:c}=l;return[i.bar,i.bar2,i[`barColor${Rt(c.color)}`],(c.variant==="indeterminate"||c.variant==="query")&&i.bar2Indeterminate,c.variant==="buffer"&&i.bar2Buffer]}})(Ln(({theme:l})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(l.palette).filter(ma()).map(([i])=>({props:{color:i},style:{"--LinearProgressBar2-barColor":(l.vars||l).palette[i].main}})),{props:({ownerState:i})=>i.variant!=="buffer"&&i.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:i})=>i.variant!=="buffer"&&i.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(l.palette).filter(ma()).map(([i])=>({props:{color:i,variant:"buffer"},style:{backgroundColor:mf(l,i),transition:`transform .${Vs}s linear`}})),{props:({ownerState:i})=>i.variant==="indeterminate"||i.variant==="query",style:{width:"auto"}},{props:({ownerState:i})=>i.variant==="indeterminate"||i.variant==="query",style:l5||{animation:`${$s} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),f5=Z.forwardRef(function(i,c){const o=Va({props:i,name:"MuiLinearProgress"}),{className:s,color:d="primary",value:m,valueBuffer:g,variant:v="indeterminate",...p}=o,A={...o,color:d,variant:v},E=u5(A),D=aS(),q={},R={bar1:{},bar2:{}};if((v==="determinate"||v==="buffer")&&m!==void 0){q["aria-valuenow"]=Math.round(m),q["aria-valuemin"]=0,q["aria-valuemax"]=100;let _=m-100;D&&(_=-_),R.bar1.transform=`translateX(${_}%)`}if(v==="buffer"&&g!==void 0){let _=(g||0)-100;D&&(_=-_),R.bar2.transform=`translateX(${_}%)`}return lt.jsxs(r5,{className:me(E.root,s),ownerState:A,role:"progressbar",...q,ref:c,...p,children:[v==="buffer"?lt.jsx(c5,{className:E.dashed,ownerState:A}):null,lt.jsx(o5,{className:E.bar1,ownerState:A,style:R.bar1}),v==="determinate"?null:lt.jsx(s5,{className:E.bar2,ownerState:A,style:R.bar2})]})});function d5(l,i,c,o){if(typeof i=="function"?l!==i||!o:!i.has(l))throw new TypeError("Cannot read private member from an object whose class did not declare it");return c==="m"?o:c==="a"?o.call(l):o?o.value:i.get(l)}function h5(l,i,c,o,s){if(typeof i=="function"?l!==i||!0:!i.has(l))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i.set(l,c),c}var Dr;const Ie="__TAURI_TO_IPC_KEY__";function m5(l,i=!1){return window.__TAURI_INTERNALS__.transformCallback(l,i)}async function K(l,i={},c){return window.__TAURI_INTERNALS__.invoke(l,i,c)}class y5{get rid(){return d5(this,Dr,"f")}constructor(i){Dr.set(this,void 0),h5(this,Dr,i)}async close(){return K("plugin:resources|close",{rid:this.rid})}}Dr=new WeakMap;class Py{constructor(...i){this.type="Logical",i.length===1?"Logical"in i[0]?(this.width=i[0].Logical.width,this.height=i[0].Logical.height):(this.width=i[0].width,this.height=i[0].height):(this.width=i[0],this.height=i[1])}toPhysical(i){return new ki(this.width*i,this.height*i)}[Ie](){return{width:this.width,height:this.height}}toJSON(){return this[Ie]()}}class ki{constructor(...i){this.type="Physical",i.length===1?"Physical"in i[0]?(this.width=i[0].Physical.width,this.height=i[0].Physical.height):(this.width=i[0].width,this.height=i[0].height):(this.width=i[0],this.height=i[1])}toLogical(i){return new Py(this.width/i,this.height/i)}[Ie](){return{width:this.width,height:this.height}}toJSON(){return this[Ie]()}}class Ul{constructor(i){this.size=i}toLogical(i){return this.size instanceof Py?this.size:this.size.toLogical(i)}toPhysical(i){return this.size instanceof ki?this.size:this.size.toPhysical(i)}[Ie](){return{[`${this.size.type}`]:{width:this.size.width,height:this.size.height}}}toJSON(){return this[Ie]()}}class Iy{constructor(...i){this.type="Logical",i.length===1?"Logical"in i[0]?(this.x=i[0].Logical.x,this.y=i[0].Logical.y):(this.x=i[0].x,this.y=i[0].y):(this.x=i[0],this.y=i[1])}toPhysical(i){return new fa(this.x*i,this.y*i)}[Ie](){return{x:this.x,y:this.y}}toJSON(){return this[Ie]()}}class fa{constructor(...i){this.type="Physical",i.length===1?"Physical"in i[0]?(this.x=i[0].Physical.x,this.y=i[0].Physical.y):(this.x=i[0].x,this.y=i[0].y):(this.x=i[0],this.y=i[1])}toLogical(i){return new Iy(this.x/i,this.y/i)}[Ie](){return{x:this.x,y:this.y}}toJSON(){return this[Ie]()}}class Ar{constructor(i){this.position=i}toLogical(i){return this.position instanceof Iy?this.position:this.position.toLogical(i)}toPhysical(i){return this.position instanceof fa?this.position:this.position.toPhysical(i)}[Ie](){return{[`${this.position.type}`]:{x:this.position.x,y:this.position.y}}}toJSON(){return this[Ie]()}}var je;(function(l){l.WINDOW_RESIZED="tauri://resize",l.WINDOW_MOVED="tauri://move",l.WINDOW_CLOSE_REQUESTED="tauri://close-requested",l.WINDOW_DESTROYED="tauri://destroyed",l.WINDOW_FOCUS="tauri://focus",l.WINDOW_BLUR="tauri://blur",l.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",l.WINDOW_THEME_CHANGED="tauri://theme-changed",l.WINDOW_CREATED="tauri://window-created",l.WEBVIEW_CREATED="tauri://webview-created",l.DRAG_ENTER="tauri://drag-enter",l.DRAG_OVER="tauri://drag-over",l.DRAG_DROP="tauri://drag-drop",l.DRAG_LEAVE="tauri://drag-leave"})(je||(je={}));async function tp(l,i){window.__TAURI_EVENT_PLUGIN_INTERNALS__.unregisterListener(l,i),await K("plugin:event|unlisten",{event:l,eventId:i})}async function ep(l,i,c){var o;const s=typeof c?.target=="string"?{kind:"AnyLabel",label:c.target}:(o=c?.target)!==null&&o!==void 0?o:{kind:"Any"};return K("plugin:event|listen",{event:l,target:s,handler:m5(i)}).then(d=>async()=>tp(l,d))}async function p5(l,i,c){return ep(l,o=>{tp(l,o.id),i(o)},c)}async function g5(l,i){await K("plugin:event|emit",{event:l,payload:i})}async function v5(l,i,c){await K("plugin:event|emit_to",{target:typeof l=="string"?{kind:"AnyLabel",label:l}:l,event:i,payload:c})}class Ki extends y5{constructor(i){super(i)}static async new(i,c,o){return K("plugin:image|new",{rgba:qr(i),width:c,height:o}).then(s=>new Ki(s))}static async fromBytes(i){return K("plugin:image|from_bytes",{bytes:qr(i)}).then(c=>new Ki(c))}static async fromPath(i){return K("plugin:image|from_path",{path:i}).then(c=>new Ki(c))}async rgba(){return K("plugin:image|rgba",{rid:this.rid}).then(i=>new Uint8Array(i))}async size(){return K("plugin:image|size",{rid:this.rid})}}function qr(l){return l==null?null:typeof l=="string"?l:l instanceof Ki?l.rid:l}var Zs;(function(l){l[l.Critical=1]="Critical",l[l.Informational=2]="Informational"})(Zs||(Zs={}));class b5{constructor(i){this._preventDefault=!1,this.event=i.event,this.id=i.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}}var cy;(function(l){l.None="none",l.Normal="normal",l.Indeterminate="indeterminate",l.Paused="paused",l.Error="error"})(cy||(cy={}));function np(){return new ap(window.__TAURI_INTERNALS__.metadata.currentWindow.label,{skip:!0})}async function zs(){return K("plugin:window|get_all_windows").then(l=>l.map(i=>new ap(i,{skip:!0})))}const Os=["tauri://created","tauri://error"];class ap{constructor(i,c={}){var o;this.label=i,this.listeners=Object.create(null),c?.skip||K("plugin:window|create",{options:{...c,parent:typeof c.parent=="string"?c.parent:(o=c.parent)===null||o===void 0?void 0:o.label,label:i}}).then(async()=>this.emit("tauri://created")).catch(async s=>this.emit("tauri://error",s))}static async getByLabel(i){var c;return(c=(await zs()).find(o=>o.label===i))!==null&&c!==void 0?c:null}static getCurrent(){return np()}static async getAll(){return zs()}static async getFocusedWindow(){for(const i of await zs())if(await i.isFocused())return i;return null}async listen(i,c){return this._handleTauriEvent(i,c)?()=>{const o=this.listeners[i];o.splice(o.indexOf(c),1)}:ep(i,c,{target:{kind:"Window",label:this.label}})}async once(i,c){return this._handleTauriEvent(i,c)?()=>{const o=this.listeners[i];o.splice(o.indexOf(c),1)}:p5(i,c,{target:{kind:"Window",label:this.label}})}async emit(i,c){if(Os.includes(i)){for(const o of this.listeners[i]||[])o({event:i,id:-1,payload:c});return}return g5(i,c)}async emitTo(i,c,o){if(Os.includes(c)){for(const s of this.listeners[c]||[])s({event:c,id:-1,payload:o});return}return v5(i,c,o)}_handleTauriEvent(i,c){return Os.includes(i)?(i in this.listeners?this.listeners[i].push(c):this.listeners[i]=[c],!0):!1}async scaleFactor(){return K("plugin:window|scale_factor",{label:this.label})}async innerPosition(){return K("plugin:window|inner_position",{label:this.label}).then(i=>new fa(i))}async outerPosition(){return K("plugin:window|outer_position",{label:this.label}).then(i=>new fa(i))}async innerSize(){return K("plugin:window|inner_size",{label:this.label}).then(i=>new ki(i))}async outerSize(){return K("plugin:window|outer_size",{label:this.label}).then(i=>new ki(i))}async isFullscreen(){return K("plugin:window|is_fullscreen",{label:this.label})}async isMinimized(){return K("plugin:window|is_minimized",{label:this.label})}async isMaximized(){return K("plugin:window|is_maximized",{label:this.label})}async isFocused(){return K("plugin:window|is_focused",{label:this.label})}async isDecorated(){return K("plugin:window|is_decorated",{label:this.label})}async isResizable(){return K("plugin:window|is_resizable",{label:this.label})}async isMaximizable(){return K("plugin:window|is_maximizable",{label:this.label})}async isMinimizable(){return K("plugin:window|is_minimizable",{label:this.label})}async isClosable(){return K("plugin:window|is_closable",{label:this.label})}async isVisible(){return K("plugin:window|is_visible",{label:this.label})}async title(){return K("plugin:window|title",{label:this.label})}async theme(){return K("plugin:window|theme",{label:this.label})}async isAlwaysOnTop(){return K("plugin:window|is_always_on_top",{label:this.label})}async center(){return K("plugin:window|center",{label:this.label})}async requestUserAttention(i){let c=null;return i&&(i===Zs.Critical?c={type:"Critical"}:c={type:"Informational"}),K("plugin:window|request_user_attention",{label:this.label,value:c})}async setResizable(i){return K("plugin:window|set_resizable",{label:this.label,value:i})}async setEnabled(i){return K("plugin:window|set_enabled",{label:this.label,value:i})}async isEnabled(){return K("plugin:window|is_enabled",{label:this.label})}async setMaximizable(i){return K("plugin:window|set_maximizable",{label:this.label,value:i})}async setMinimizable(i){return K("plugin:window|set_minimizable",{label:this.label,value:i})}async setClosable(i){return K("plugin:window|set_closable",{label:this.label,value:i})}async setTitle(i){return K("plugin:window|set_title",{label:this.label,value:i})}async maximize(){return K("plugin:window|maximize",{label:this.label})}async unmaximize(){return K("plugin:window|unmaximize",{label:this.label})}async toggleMaximize(){return K("plugin:window|toggle_maximize",{label:this.label})}async minimize(){return K("plugin:window|minimize",{label:this.label})}async unminimize(){return K("plugin:window|unminimize",{label:this.label})}async show(){return K("plugin:window|show",{label:this.label})}async hide(){return K("plugin:window|hide",{label:this.label})}async close(){return K("plugin:window|close",{label:this.label})}async destroy(){return K("plugin:window|destroy",{label:this.label})}async setDecorations(i){return K("plugin:window|set_decorations",{label:this.label,value:i})}async setShadow(i){return K("plugin:window|set_shadow",{label:this.label,value:i})}async setEffects(i){return K("plugin:window|set_effects",{label:this.label,value:i})}async clearEffects(){return K("plugin:window|set_effects",{label:this.label,value:null})}async setAlwaysOnTop(i){return K("plugin:window|set_always_on_top",{label:this.label,value:i})}async setAlwaysOnBottom(i){return K("plugin:window|set_always_on_bottom",{label:this.label,value:i})}async setContentProtected(i){return K("plugin:window|set_content_protected",{label:this.label,value:i})}async setSize(i){return K("plugin:window|set_size",{label:this.label,value:i instanceof Ul?i:new Ul(i)})}async setMinSize(i){return K("plugin:window|set_min_size",{label:this.label,value:i instanceof Ul?i:i?new Ul(i):null})}async setMaxSize(i){return K("plugin:window|set_max_size",{label:this.label,value:i instanceof Ul?i:i?new Ul(i):null})}async setSizeConstraints(i){function c(o){return o?{Logical:o}:null}return K("plugin:window|set_size_constraints",{label:this.label,value:{minWidth:c(i?.minWidth),minHeight:c(i?.minHeight),maxWidth:c(i?.maxWidth),maxHeight:c(i?.maxHeight)}})}async setPosition(i){return K("plugin:window|set_position",{label:this.label,value:i instanceof Ar?i:new Ar(i)})}async setFullscreen(i){return K("plugin:window|set_fullscreen",{label:this.label,value:i})}async setSimpleFullscreen(i){return K("plugin:window|set_simple_fullscreen",{label:this.label,value:i})}async setFocus(){return K("plugin:window|set_focus",{label:this.label})}async setFocusable(i){return K("plugin:window|set_focusable",{label:this.label,value:i})}async setIcon(i){return K("plugin:window|set_icon",{label:this.label,value:qr(i)})}async setSkipTaskbar(i){return K("plugin:window|set_skip_taskbar",{label:this.label,value:i})}async setCursorGrab(i){return K("plugin:window|set_cursor_grab",{label:this.label,value:i})}async setCursorVisible(i){return K("plugin:window|set_cursor_visible",{label:this.label,value:i})}async setCursorIcon(i){return K("plugin:window|set_cursor_icon",{label:this.label,value:i})}async setBackgroundColor(i){return K("plugin:window|set_background_color",{color:i})}async setCursorPosition(i){return K("plugin:window|set_cursor_position",{label:this.label,value:i instanceof Ar?i:new Ar(i)})}async setIgnoreCursorEvents(i){return K("plugin:window|set_ignore_cursor_events",{label:this.label,value:i})}async startDragging(){return K("plugin:window|start_dragging",{label:this.label})}async startResizeDragging(i){return K("plugin:window|start_resize_dragging",{label:this.label,value:i})}async setBadgeCount(i){return K("plugin:window|set_badge_count",{label:this.label,value:i})}async setBadgeLabel(i){return K("plugin:window|set_badge_label",{label:this.label,value:i})}async setOverlayIcon(i){return K("plugin:window|set_overlay_icon",{label:this.label,value:i?qr(i):void 0})}async setProgressBar(i){return K("plugin:window|set_progress_bar",{label:this.label,value:i})}async setVisibleOnAllWorkspaces(i){return K("plugin:window|set_visible_on_all_workspaces",{label:this.label,value:i})}async setTitleBarStyle(i){return K("plugin:window|set_title_bar_style",{label:this.label,value:i})}async setTheme(i){return K("plugin:window|set_theme",{label:this.label,value:i})}async onResized(i){return this.listen(je.WINDOW_RESIZED,c=>{c.payload=new ki(c.payload),i(c)})}async onMoved(i){return this.listen(je.WINDOW_MOVED,c=>{c.payload=new fa(c.payload),i(c)})}async onCloseRequested(i){return this.listen(je.WINDOW_CLOSE_REQUESTED,async c=>{const o=new b5(c);await i(o),o.isPreventDefault()||await this.destroy()})}async onDragDropEvent(i){const c=await this.listen(je.DRAG_ENTER,m=>{i({...m,payload:{type:"enter",paths:m.payload.paths,position:new fa(m.payload.position)}})}),o=await this.listen(je.DRAG_OVER,m=>{i({...m,payload:{type:"over",position:new fa(m.payload.position)}})}),s=await this.listen(je.DRAG_DROP,m=>{i({...m,payload:{type:"drop",paths:m.payload.paths,position:new fa(m.payload.position)}})}),d=await this.listen(je.DRAG_LEAVE,m=>{i({...m,payload:{type:"leave"}})});return()=>{c(),s(),o(),d()}}async onFocusChanged(i){const c=await this.listen(je.WINDOW_FOCUS,s=>{i({...s,payload:!0})}),o=await this.listen(je.WINDOW_BLUR,s=>{i({...s,payload:!1})});return()=>{c(),o()}}async onScaleChanged(i){return this.listen(je.WINDOW_SCALE_FACTOR_CHANGED,i)}async onThemeChanged(i){return this.listen(je.WINDOW_THEME_CHANGED,i)}}var oy;(function(l){l.Disabled="disabled",l.Throttle="throttle",l.Suspend="suspend"})(oy||(oy={}));var sy;(function(l){l.Default="default",l.FluentOverlay="fluentOverlay"})(sy||(sy={}));var fy;(function(l){l.AppearanceBased="appearanceBased",l.Light="light",l.Dark="dark",l.MediumLight="mediumLight",l.UltraDark="ultraDark",l.Titlebar="titlebar",l.Selection="selection",l.Menu="menu",l.Popover="popover",l.Sidebar="sidebar",l.HeaderView="headerView",l.Sheet="sheet",l.WindowBackground="windowBackground",l.HudWindow="hudWindow",l.FullScreenUI="fullScreenUI",l.Tooltip="tooltip",l.ContentBackground="contentBackground",l.UnderWindowBackground="underWindowBackground",l.UnderPageBackground="underPageBackground",l.Mica="mica",l.Blur="blur",l.Acrylic="acrylic",l.Tabbed="tabbed",l.TabbedDark="tabbedDark",l.TabbedLight="tabbedLight"})(fy||(fy={}));var dy;(function(l){l.FollowsWindowActiveState="followsWindowActiveState",l.Active="active",l.Inactive="inactive"})(dy||(dy={}));const S5="/assets/icon-BlfaAlWe.svg",Br=np();function T5(){const[l,i]=Z.useState(null);return Z.useEffect(()=>{const c=Br.listen("app://update-progress",o=>{i(o.payload)});return()=>{c.then(o=>o())}},[]),l}function C5(){const[l,i]=Z.useState(!1);Z.useEffect(()=>{Br.emit("app://update");const o=Br.listen("app://update-error",()=>{i(!0)});return()=>{o.then(s=>s())}},[]);const c=()=>{i(!1),Br.emit("app://update")};return lt.jsxs(lt.Fragment,{children:[lt.jsx(e5,{}),lt.jsx(Hn,{sx:{position:"absolute",inset:0},display:"flex",alignItems:"center",px:2,"data-tauri-drag-region":!0,children:lt.jsxs(Hn,{display:"flex",alignItems:"center",flex:"1","data-tauri-drag-region":!0,children:[lt.jsx(Hn,{component:"img",src:S5,alt:"logo",sx:{width:"4rem",height:"4rem"},"data-tauri-drag-region":!0}),lt.jsx(Hn,{flex:1,ml:2,children:l?lt.jsx(_5,{onRetry:c}):lt.jsx(E5,{})})]})})]})}function E5(){const l=T5();return lt.jsxs(lt.Fragment,{children:[lt.jsx(hf,{variant:"h1",fontSize:"1rem","data-tauri-drag-region":!0,children:"Updating the GUI components..."}),lt.jsx(Hn,{mt:1,children:lt.jsx(A5,{value:l})})]})}function _5({onRetry:l}){return lt.jsxs(lt.Fragment,{children:[lt.jsx(hf,{variant:"h1",fontSize:"1rem","data-tauri-drag-region":!0,children:"Failed to update the GUI components."}),lt.jsx(Hn,{mt:1,"data-tauri-drag-region":!0,children:lt.jsx(W2,{variant:"contained",color:"primary",size:"small",onClick:l,sx:{textTransform:"none"},children:"Retry"})})]})}function A5(l){const{value:i}=l;return lt.jsxs(Hn,{sx:{display:"flex",alignItems:"center"},children:[lt.jsx(Hn,{flex:"1",children:lt.jsx(f5,{variant:i===null?"indeterminate":"determinate",value:i??0,sx:{py:1.2,".MuiLinearProgress-bar":{transition:"none"}}})}),i!==null&<.jsx(Hn,{sx:{minWidth:35,textAlign:"right",ml:1},children:lt.jsx(hf,{variant:"body2",color:"text.secondary",children:`${Math.round(i)}%`})})]})}const x5=Hv.createRoot(document.getElementById("root"));x5.render(lt.jsx(C5,{})); diff --git a/apps/gpgui-helper/dist/index.html b/apps/gpgui-helper/dist/index.html index c56cfe5..57de13c 100644 --- a/apps/gpgui-helper/dist/index.html +++ b/apps/gpgui-helper/dist/index.html @@ -5,7 +5,7 @@ GP Connect Helper - + diff --git a/apps/gpgui-helper/package.json b/apps/gpgui-helper/package.json index 68ca379..51d7d11 100644 --- a/apps/gpgui-helper/package.json +++ b/apps/gpgui-helper/package.json @@ -14,24 +14,24 @@ "@mui/icons-material": "^7.3.6", "@mui/material": "^7.3.6", "@tauri-apps/api": "^2.9.1", - "react": "^19.2.1", - "react-dom": "^19.2.1" + "react": "^19.2.3", + "react-dom": "^19.2.3" }, "devDependencies": { - "@tauri-apps/cli": "^2.9.5", - "@types/node": "^22.19.1", + "@tauri-apps/cli": "^2.9.6", + "@types/node": "^22.19.3", "@types/react": "^19.2.7", "@types/react-dom": "^19.2.3", - "@typescript-eslint/eslint-plugin": "^8.48.1", - "@typescript-eslint/parser": "^8.48.1", + "@typescript-eslint/eslint-plugin": "^8.50.0", + "@typescript-eslint/parser": "^8.50.0", "@vitejs/plugin-react": "^5.1.2", - "eslint": "^9.39.1", + "eslint": "^9.39.2", "eslint-config-prettier": "^10.1.8", "eslint-plugin-react": "^7.37.5", "eslint-plugin-react-hooks": "^7.0.1", "prettier": "3.4.2", "typescript": "^5.9.3", - "vite": "^7.2.7" + "vite": "^7.3.0" }, "packageManager": "pnpm@9.15.1" } diff --git a/apps/gpgui-helper/pnpm-lock.yaml b/apps/gpgui-helper/pnpm-lock.yaml index 70098db..2c042d3 100644 --- a/apps/gpgui-helper/pnpm-lock.yaml +++ b/apps/gpgui-helper/pnpm-lock.yaml @@ -10,32 +10,32 @@ importers: dependencies: '@emotion/react': specifier: ^11.14.0 - version: 11.14.0(@types/react@19.2.7)(react@19.2.1) + version: 11.14.0(@types/react@19.2.7)(react@19.2.3) '@emotion/styled': specifier: ^11.14.1 - version: 11.14.1(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.1))(@types/react@19.2.7)(react@19.2.1) + version: 11.14.1(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.3))(@types/react@19.2.7)(react@19.2.3) '@mui/icons-material': specifier: ^7.3.6 - version: 7.3.6(@mui/material@7.3.6(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.1))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.1))(@types/react@19.2.7)(react@19.2.1))(@types/react@19.2.7)(react-dom@19.2.1(react@19.2.1))(react@19.2.1))(@types/react@19.2.7)(react@19.2.1) + version: 7.3.6(@mui/material@7.3.6(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.3))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.3))(@types/react@19.2.7)(react@19.2.3))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(@types/react@19.2.7)(react@19.2.3) '@mui/material': specifier: ^7.3.6 - version: 7.3.6(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.1))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.1))(@types/react@19.2.7)(react@19.2.1))(@types/react@19.2.7)(react-dom@19.2.1(react@19.2.1))(react@19.2.1) + version: 7.3.6(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.3))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.3))(@types/react@19.2.7)(react@19.2.3))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3) '@tauri-apps/api': specifier: ^2.9.1 version: 2.9.1 react: - specifier: ^19.2.1 - version: 19.2.1 + specifier: ^19.2.3 + version: 19.2.3 react-dom: - specifier: ^19.2.1 - version: 19.2.1(react@19.2.1) + specifier: ^19.2.3 + version: 19.2.3(react@19.2.3) devDependencies: '@tauri-apps/cli': - specifier: ^2.9.5 - version: 2.9.5 + specifier: ^2.9.6 + version: 2.9.6 '@types/node': - specifier: ^22.19.1 - version: 22.19.1 + specifier: ^22.19.3 + version: 22.19.3 '@types/react': specifier: ^19.2.7 version: 19.2.7 @@ -43,26 +43,26 @@ importers: specifier: ^19.2.3 version: 19.2.3(@types/react@19.2.7) '@typescript-eslint/eslint-plugin': - specifier: ^8.48.1 - version: 8.48.1(@typescript-eslint/parser@8.48.1(eslint@9.39.1)(typescript@5.9.3))(eslint@9.39.1)(typescript@5.9.3) + specifier: ^8.50.0 + version: 8.50.0(@typescript-eslint/parser@8.50.0(eslint@9.39.2)(typescript@5.9.3))(eslint@9.39.2)(typescript@5.9.3) '@typescript-eslint/parser': - specifier: ^8.48.1 - version: 8.48.1(eslint@9.39.1)(typescript@5.9.3) + specifier: ^8.50.0 + version: 8.50.0(eslint@9.39.2)(typescript@5.9.3) '@vitejs/plugin-react': specifier: ^5.1.2 - version: 5.1.2(vite@7.2.7(@types/node@22.19.1)) + version: 5.1.2(vite@7.3.0(@types/node@22.19.3)) eslint: - specifier: ^9.39.1 - version: 9.39.1 + specifier: ^9.39.2 + version: 9.39.2 eslint-config-prettier: specifier: ^10.1.8 - version: 10.1.8(eslint@9.39.1) + version: 10.1.8(eslint@9.39.2) eslint-plugin-react: specifier: ^7.37.5 - version: 7.37.5(eslint@9.39.1) + version: 7.37.5(eslint@9.39.2) eslint-plugin-react-hooks: specifier: ^7.0.1 - version: 7.0.1(eslint@9.39.1) + version: 7.0.1(eslint@9.39.2) prettier: specifier: 3.4.2 version: 3.4.2 @@ -70,8 +70,8 @@ importers: specifier: ^5.9.3 version: 5.9.3 vite: - specifier: ^7.2.7 - version: 7.2.7(@types/node@22.19.1) + specifier: ^7.3.0 + version: 7.3.0(@types/node@22.19.3) packages: @@ -216,158 +216,158 @@ packages: '@emotion/weak-memoize@0.4.0': resolution: {integrity: sha512-snKqtPW01tN0ui7yu9rGv69aJXr/a/Ywvl11sUjNtEcRc+ng/mQriFL0wLXMef74iHa/EkftbDzU9F8iFbH+zg==} - '@esbuild/aix-ppc64@0.25.12': - resolution: {integrity: sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==} + '@esbuild/aix-ppc64@0.27.2': + resolution: {integrity: sha512-GZMB+a0mOMZs4MpDbj8RJp4cw+w1WV5NYD6xzgvzUJ5Ek2jerwfO2eADyI6ExDSUED+1X8aMbegahsJi+8mgpw==} engines: {node: '>=18'} cpu: [ppc64] os: [aix] - '@esbuild/android-arm64@0.25.12': - resolution: {integrity: sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==} + '@esbuild/android-arm64@0.27.2': + resolution: {integrity: sha512-pvz8ZZ7ot/RBphf8fv60ljmaoydPU12VuXHImtAs0XhLLw+EXBi2BLe3OYSBslR4rryHvweW5gmkKFwTiFy6KA==} engines: {node: '>=18'} cpu: [arm64] os: [android] - '@esbuild/android-arm@0.25.12': - resolution: {integrity: sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==} + '@esbuild/android-arm@0.27.2': + resolution: {integrity: sha512-DVNI8jlPa7Ujbr1yjU2PfUSRtAUZPG9I1RwW4F4xFB1Imiu2on0ADiI/c3td+KmDtVKNbi+nffGDQMfcIMkwIA==} engines: {node: '>=18'} cpu: [arm] os: [android] - '@esbuild/android-x64@0.25.12': - resolution: {integrity: sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==} + '@esbuild/android-x64@0.27.2': + resolution: {integrity: sha512-z8Ank4Byh4TJJOh4wpz8g2vDy75zFL0TlZlkUkEwYXuPSgX8yzep596n6mT7905kA9uHZsf/o2OJZubl2l3M7A==} engines: {node: '>=18'} cpu: [x64] os: [android] - '@esbuild/darwin-arm64@0.25.12': - resolution: {integrity: sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==} + '@esbuild/darwin-arm64@0.27.2': + resolution: {integrity: sha512-davCD2Zc80nzDVRwXTcQP/28fiJbcOwvdolL0sOiOsbwBa72kegmVU0Wrh1MYrbuCL98Omp5dVhQFWRKR2ZAlg==} engines: {node: '>=18'} cpu: [arm64] os: [darwin] - '@esbuild/darwin-x64@0.25.12': - resolution: {integrity: sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==} + '@esbuild/darwin-x64@0.27.2': + resolution: {integrity: sha512-ZxtijOmlQCBWGwbVmwOF/UCzuGIbUkqB1faQRf5akQmxRJ1ujusWsb3CVfk/9iZKr2L5SMU5wPBi1UWbvL+VQA==} engines: {node: '>=18'} cpu: [x64] os: [darwin] - '@esbuild/freebsd-arm64@0.25.12': - resolution: {integrity: sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==} + '@esbuild/freebsd-arm64@0.27.2': + resolution: {integrity: sha512-lS/9CN+rgqQ9czogxlMcBMGd+l8Q3Nj1MFQwBZJyoEKI50XGxwuzznYdwcav6lpOGv5BqaZXqvBSiB/kJ5op+g==} engines: {node: '>=18'} cpu: [arm64] os: [freebsd] - '@esbuild/freebsd-x64@0.25.12': - resolution: {integrity: sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==} + '@esbuild/freebsd-x64@0.27.2': + resolution: {integrity: sha512-tAfqtNYb4YgPnJlEFu4c212HYjQWSO/w/h/lQaBK7RbwGIkBOuNKQI9tqWzx7Wtp7bTPaGC6MJvWI608P3wXYA==} engines: {node: '>=18'} cpu: [x64] os: [freebsd] - '@esbuild/linux-arm64@0.25.12': - resolution: {integrity: sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==} + '@esbuild/linux-arm64@0.27.2': + resolution: {integrity: sha512-hYxN8pr66NsCCiRFkHUAsxylNOcAQaxSSkHMMjcpx0si13t1LHFphxJZUiGwojB1a/Hd5OiPIqDdXONia6bhTw==} engines: {node: '>=18'} cpu: [arm64] os: [linux] - '@esbuild/linux-arm@0.25.12': - resolution: {integrity: sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==} + '@esbuild/linux-arm@0.27.2': + resolution: {integrity: sha512-vWfq4GaIMP9AIe4yj1ZUW18RDhx6EPQKjwe7n8BbIecFtCQG4CfHGaHuh7fdfq+y3LIA2vGS/o9ZBGVxIDi9hw==} engines: {node: '>=18'} cpu: [arm] os: [linux] - '@esbuild/linux-ia32@0.25.12': - resolution: {integrity: sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==} + '@esbuild/linux-ia32@0.27.2': + resolution: {integrity: sha512-MJt5BRRSScPDwG2hLelYhAAKh9imjHK5+NE/tvnRLbIqUWa+0E9N4WNMjmp/kXXPHZGqPLxggwVhz7QP8CTR8w==} engines: {node: '>=18'} cpu: [ia32] os: [linux] - '@esbuild/linux-loong64@0.25.12': - resolution: {integrity: sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==} + '@esbuild/linux-loong64@0.27.2': + resolution: {integrity: sha512-lugyF1atnAT463aO6KPshVCJK5NgRnU4yb3FUumyVz+cGvZbontBgzeGFO1nF+dPueHD367a2ZXe1NtUkAjOtg==} engines: {node: '>=18'} cpu: [loong64] os: [linux] - '@esbuild/linux-mips64el@0.25.12': - resolution: {integrity: sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==} + '@esbuild/linux-mips64el@0.27.2': + resolution: {integrity: sha512-nlP2I6ArEBewvJ2gjrrkESEZkB5mIoaTswuqNFRv/WYd+ATtUpe9Y09RnJvgvdag7he0OWgEZWhviS1OTOKixw==} engines: {node: '>=18'} cpu: [mips64el] os: [linux] - '@esbuild/linux-ppc64@0.25.12': - resolution: {integrity: sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==} + '@esbuild/linux-ppc64@0.27.2': + resolution: {integrity: sha512-C92gnpey7tUQONqg1n6dKVbx3vphKtTHJaNG2Ok9lGwbZil6DrfyecMsp9CrmXGQJmZ7iiVXvvZH6Ml5hL6XdQ==} engines: {node: '>=18'} cpu: [ppc64] os: [linux] - '@esbuild/linux-riscv64@0.25.12': - resolution: {integrity: sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==} + '@esbuild/linux-riscv64@0.27.2': + resolution: {integrity: sha512-B5BOmojNtUyN8AXlK0QJyvjEZkWwy/FKvakkTDCziX95AowLZKR6aCDhG7LeF7uMCXEJqwa8Bejz5LTPYm8AvA==} engines: {node: '>=18'} cpu: [riscv64] os: [linux] - '@esbuild/linux-s390x@0.25.12': - resolution: {integrity: sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==} + '@esbuild/linux-s390x@0.27.2': + resolution: {integrity: sha512-p4bm9+wsPwup5Z8f4EpfN63qNagQ47Ua2znaqGH6bqLlmJ4bx97Y9JdqxgGZ6Y8xVTixUnEkoKSHcpRlDnNr5w==} engines: {node: '>=18'} cpu: [s390x] os: [linux] - '@esbuild/linux-x64@0.25.12': - resolution: {integrity: sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==} + '@esbuild/linux-x64@0.27.2': + resolution: {integrity: sha512-uwp2Tip5aPmH+NRUwTcfLb+W32WXjpFejTIOWZFw/v7/KnpCDKG66u4DLcurQpiYTiYwQ9B7KOeMJvLCu/OvbA==} engines: {node: '>=18'} cpu: [x64] os: [linux] - '@esbuild/netbsd-arm64@0.25.12': - resolution: {integrity: sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==} + '@esbuild/netbsd-arm64@0.27.2': + resolution: {integrity: sha512-Kj6DiBlwXrPsCRDeRvGAUb/LNrBASrfqAIok+xB0LxK8CHqxZ037viF13ugfsIpePH93mX7xfJp97cyDuTZ3cw==} engines: {node: '>=18'} cpu: [arm64] os: [netbsd] - '@esbuild/netbsd-x64@0.25.12': - resolution: {integrity: sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==} + '@esbuild/netbsd-x64@0.27.2': + resolution: {integrity: sha512-HwGDZ0VLVBY3Y+Nw0JexZy9o/nUAWq9MlV7cahpaXKW6TOzfVno3y3/M8Ga8u8Yr7GldLOov27xiCnqRZf0tCA==} engines: {node: '>=18'} cpu: [x64] os: [netbsd] - '@esbuild/openbsd-arm64@0.25.12': - resolution: {integrity: sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==} + '@esbuild/openbsd-arm64@0.27.2': + resolution: {integrity: sha512-DNIHH2BPQ5551A7oSHD0CKbwIA/Ox7+78/AWkbS5QoRzaqlev2uFayfSxq68EkonB+IKjiuxBFoV8ESJy8bOHA==} engines: {node: '>=18'} cpu: [arm64] os: [openbsd] - '@esbuild/openbsd-x64@0.25.12': - resolution: {integrity: sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==} + '@esbuild/openbsd-x64@0.27.2': + resolution: {integrity: sha512-/it7w9Nb7+0KFIzjalNJVR5bOzA9Vay+yIPLVHfIQYG/j+j9VTH84aNB8ExGKPU4AzfaEvN9/V4HV+F+vo8OEg==} engines: {node: '>=18'} cpu: [x64] os: [openbsd] - '@esbuild/openharmony-arm64@0.25.12': - resolution: {integrity: sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==} + '@esbuild/openharmony-arm64@0.27.2': + resolution: {integrity: sha512-LRBbCmiU51IXfeXk59csuX/aSaToeG7w48nMwA6049Y4J4+VbWALAuXcs+qcD04rHDuSCSRKdmY63sruDS5qag==} engines: {node: '>=18'} cpu: [arm64] os: [openharmony] - '@esbuild/sunos-x64@0.25.12': - resolution: {integrity: sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==} + '@esbuild/sunos-x64@0.27.2': + resolution: {integrity: sha512-kMtx1yqJHTmqaqHPAzKCAkDaKsffmXkPHThSfRwZGyuqyIeBvf08KSsYXl+abf5HDAPMJIPnbBfXvP2ZC2TfHg==} engines: {node: '>=18'} cpu: [x64] os: [sunos] - '@esbuild/win32-arm64@0.25.12': - resolution: {integrity: sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==} + '@esbuild/win32-arm64@0.27.2': + resolution: {integrity: sha512-Yaf78O/B3Kkh+nKABUF++bvJv5Ijoy9AN1ww904rOXZFLWVc5OLOfL56W+C8F9xn5JQZa3UX6m+IktJnIb1Jjg==} engines: {node: '>=18'} cpu: [arm64] os: [win32] - '@esbuild/win32-ia32@0.25.12': - resolution: {integrity: sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==} + '@esbuild/win32-ia32@0.27.2': + resolution: {integrity: sha512-Iuws0kxo4yusk7sw70Xa2E2imZU5HoixzxfGCdxwBdhiDgt9vX9VUCBhqcwY7/uh//78A1hMkkROMJq9l27oLQ==} engines: {node: '>=18'} cpu: [ia32] os: [win32] - '@esbuild/win32-x64@0.25.12': - resolution: {integrity: sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==} + '@esbuild/win32-x64@0.27.2': + resolution: {integrity: sha512-sRdU18mcKf7F+YgheI/zGf5alZatMUTKj/jNS6l744f9u3WFu4v7twcUI9vu4mknF4Y9aDlblIie0IM+5xxaqQ==} engines: {node: '>=18'} cpu: [x64] os: [win32] @@ -398,8 +398,8 @@ packages: resolution: {integrity: sha512-Kr+LPIUVKz2qkx1HAMH8q1q6azbqBAsXJUxBl/ODDuVPX45Z9DfwB8tPjTi6nNZ8BuM3nbJxC5zCAg5elnBUTQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@eslint/js@9.39.1': - resolution: {integrity: sha512-S26Stp4zCy88tH94QbBv3XCuzRQiZ9yXofEILmglYTh/Ug/a9/umqvgFtYBAo3Lp0nsI/5/qH1CCrbdK3AP1Tw==} + '@eslint/js@9.39.2': + resolution: {integrity: sha512-q1mjIoW1VX4IvSocvM/vbTiveKC4k9eLrajNEuSsmjymSDEbpGddtpfOoN7YGAqBK3NG+uqo8ia4PDTt8buCYA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} '@eslint/object-schema@2.1.7': @@ -539,187 +539,187 @@ packages: '@rolldown/pluginutils@1.0.0-beta.53': resolution: {integrity: sha512-vENRlFU4YbrwVqNDZ7fLvy+JR1CRkyr01jhSiDpE1u6py3OMzQfztQU2jxykW3ALNxO4kSlqIDeYyD0Y9RcQeQ==} - '@rollup/rollup-android-arm-eabi@4.53.3': - resolution: {integrity: sha512-mRSi+4cBjrRLoaal2PnqH82Wqyb+d3HsPUN/W+WslCXsZsyHa9ZeQQX/pQsZaVIWDkPcpV6jJ+3KLbTbgnwv8w==} + '@rollup/rollup-android-arm-eabi@4.54.0': + resolution: {integrity: sha512-OywsdRHrFvCdvsewAInDKCNyR3laPA2mc9bRYJ6LBp5IyvF3fvXbbNR0bSzHlZVFtn6E0xw2oZlyjg4rKCVcng==} cpu: [arm] os: [android] - '@rollup/rollup-android-arm64@4.53.3': - resolution: {integrity: sha512-CbDGaMpdE9sh7sCmTrTUyllhrg65t6SwhjlMJsLr+J8YjFuPmCEjbBSx4Z/e4SmDyH3aB5hGaJUP2ltV/vcs4w==} + '@rollup/rollup-android-arm64@4.54.0': + resolution: {integrity: sha512-Skx39Uv+u7H224Af+bDgNinitlmHyQX1K/atIA32JP3JQw6hVODX5tkbi2zof/E69M1qH2UoN3Xdxgs90mmNYw==} cpu: [arm64] os: [android] - '@rollup/rollup-darwin-arm64@4.53.3': - resolution: {integrity: sha512-Nr7SlQeqIBpOV6BHHGZgYBuSdanCXuw09hon14MGOLGmXAFYjx1wNvquVPmpZnl0tLjg25dEdr4IQ6GgyToCUA==} + '@rollup/rollup-darwin-arm64@4.54.0': + resolution: {integrity: sha512-k43D4qta/+6Fq+nCDhhv9yP2HdeKeP56QrUUTW7E6PhZP1US6NDqpJj4MY0jBHlJivVJD5P8NxrjuobZBJTCRw==} cpu: [arm64] os: [darwin] - '@rollup/rollup-darwin-x64@4.53.3': - resolution: {integrity: sha512-DZ8N4CSNfl965CmPktJ8oBnfYr3F8dTTNBQkRlffnUarJ2ohudQD17sZBa097J8xhQ26AwhHJ5mvUyQW8ddTsQ==} + '@rollup/rollup-darwin-x64@4.54.0': + resolution: {integrity: sha512-cOo7biqwkpawslEfox5Vs8/qj83M/aZCSSNIWpVzfU2CYHa2G3P1UN5WF01RdTHSgCkri7XOlTdtk17BezlV3A==} cpu: [x64] os: [darwin] - '@rollup/rollup-freebsd-arm64@4.53.3': - resolution: {integrity: sha512-yMTrCrK92aGyi7GuDNtGn2sNW+Gdb4vErx4t3Gv/Tr+1zRb8ax4z8GWVRfr3Jw8zJWvpGHNpss3vVlbF58DZ4w==} + '@rollup/rollup-freebsd-arm64@4.54.0': + resolution: {integrity: sha512-miSvuFkmvFbgJ1BevMa4CPCFt5MPGw094knM64W9I0giUIMMmRYcGW/JWZDriaw/k1kOBtsWh1z6nIFV1vPNtA==} cpu: [arm64] os: [freebsd] - '@rollup/rollup-freebsd-x64@4.53.3': - resolution: {integrity: sha512-lMfF8X7QhdQzseM6XaX0vbno2m3hlyZFhwcndRMw8fbAGUGL3WFMBdK0hbUBIUYcEcMhVLr1SIamDeuLBnXS+Q==} + '@rollup/rollup-freebsd-x64@4.54.0': + resolution: {integrity: sha512-KGXIs55+b/ZfZsq9aR026tmr/+7tq6VG6MsnrvF4H8VhwflTIuYh+LFUlIsRdQSgrgmtM3fVATzEAj4hBQlaqQ==} cpu: [x64] os: [freebsd] - '@rollup/rollup-linux-arm-gnueabihf@4.53.3': - resolution: {integrity: sha512-k9oD15soC/Ln6d2Wv/JOFPzZXIAIFLp6B+i14KhxAfnq76ajt0EhYc5YPeX6W1xJkAdItcVT+JhKl1QZh44/qw==} + '@rollup/rollup-linux-arm-gnueabihf@4.54.0': + resolution: {integrity: sha512-EHMUcDwhtdRGlXZsGSIuXSYwD5kOT9NVnx9sqzYiwAc91wfYOE1g1djOEDseZJKKqtHAHGwnGPQu3kytmfaXLQ==} cpu: [arm] os: [linux] - '@rollup/rollup-linux-arm-musleabihf@4.53.3': - resolution: {integrity: sha512-vTNlKq+N6CK/8UktsrFuc+/7NlEYVxgaEgRXVUVK258Z5ymho29skzW1sutgYjqNnquGwVUObAaxae8rZ6YMhg==} + '@rollup/rollup-linux-arm-musleabihf@4.54.0': + resolution: {integrity: sha512-+pBrqEjaakN2ySv5RVrj/qLytYhPKEUwk+e3SFU5jTLHIcAtqh2rLrd/OkbNuHJpsBgxsD8ccJt5ga/SeG0JmA==} cpu: [arm] os: [linux] - '@rollup/rollup-linux-arm64-gnu@4.53.3': - resolution: {integrity: sha512-RGrFLWgMhSxRs/EWJMIFM1O5Mzuz3Xy3/mnxJp/5cVhZ2XoCAxJnmNsEyeMJtpK+wu0FJFWz+QF4mjCA7AUQ3w==} + '@rollup/rollup-linux-arm64-gnu@4.54.0': + resolution: {integrity: sha512-NSqc7rE9wuUaRBsBp5ckQ5CVz5aIRKCwsoa6WMF7G01sX3/qHUw/z4pv+D+ahL1EIKy6Enpcnz1RY8pf7bjwng==} cpu: [arm64] os: [linux] - '@rollup/rollup-linux-arm64-musl@4.53.3': - resolution: {integrity: sha512-kASyvfBEWYPEwe0Qv4nfu6pNkITLTb32p4yTgzFCocHnJLAHs+9LjUu9ONIhvfT/5lv4YS5muBHyuV84epBo/A==} + '@rollup/rollup-linux-arm64-musl@4.54.0': + resolution: {integrity: sha512-gr5vDbg3Bakga5kbdpqx81m2n9IX8M6gIMlQQIXiLTNeQW6CucvuInJ91EuCJ/JYvc+rcLLsDFcfAD1K7fMofg==} cpu: [arm64] os: [linux] - '@rollup/rollup-linux-loong64-gnu@4.53.3': - resolution: {integrity: sha512-JiuKcp2teLJwQ7vkJ95EwESWkNRFJD7TQgYmCnrPtlu50b4XvT5MOmurWNrCj3IFdyjBQ5p9vnrX4JM6I8OE7g==} + '@rollup/rollup-linux-loong64-gnu@4.54.0': + resolution: {integrity: sha512-gsrtB1NA3ZYj2vq0Rzkylo9ylCtW/PhpLEivlgWe0bpgtX5+9j9EZa0wtZiCjgu6zmSeZWyI/e2YRX1URozpIw==} cpu: [loong64] os: [linux] - '@rollup/rollup-linux-ppc64-gnu@4.53.3': - resolution: {integrity: sha512-EoGSa8nd6d3T7zLuqdojxC20oBfNT8nexBbB/rkxgKj5T5vhpAQKKnD+h3UkoMuTyXkP5jTjK/ccNRmQrPNDuw==} + '@rollup/rollup-linux-ppc64-gnu@4.54.0': + resolution: {integrity: sha512-y3qNOfTBStmFNq+t4s7Tmc9hW2ENtPg8FeUD/VShI7rKxNW7O4fFeaYbMsd3tpFlIg1Q8IapFgy7Q9i2BqeBvA==} cpu: [ppc64] os: [linux] - '@rollup/rollup-linux-riscv64-gnu@4.53.3': - resolution: {integrity: sha512-4s+Wped2IHXHPnAEbIB0YWBv7SDohqxobiiPA1FIWZpX+w9o2i4LezzH/NkFUl8LRci/8udci6cLq+jJQlh+0g==} + '@rollup/rollup-linux-riscv64-gnu@4.54.0': + resolution: {integrity: sha512-89sepv7h2lIVPsFma8iwmccN7Yjjtgz0Rj/Ou6fEqg3HDhpCa+Et+YSufy27i6b0Wav69Qv4WBNl3Rs6pwhebQ==} cpu: [riscv64] os: [linux] - '@rollup/rollup-linux-riscv64-musl@4.53.3': - resolution: {integrity: sha512-68k2g7+0vs2u9CxDt5ktXTngsxOQkSEV/xBbwlqYcUrAVh6P9EgMZvFsnHy4SEiUl46Xf0IObWVbMvPrr2gw8A==} + '@rollup/rollup-linux-riscv64-musl@4.54.0': + resolution: {integrity: sha512-ZcU77ieh0M2Q8Ur7D5X7KvK+UxbXeDHwiOt/CPSBTI1fBmeDMivW0dPkdqkT4rOgDjrDDBUed9x4EgraIKoR2A==} cpu: [riscv64] os: [linux] - '@rollup/rollup-linux-s390x-gnu@4.53.3': - resolution: {integrity: sha512-VYsFMpULAz87ZW6BVYw3I6sWesGpsP9OPcyKe8ofdg9LHxSbRMd7zrVrr5xi/3kMZtpWL/wC+UIJWJYVX5uTKg==} + '@rollup/rollup-linux-s390x-gnu@4.54.0': + resolution: {integrity: sha512-2AdWy5RdDF5+4YfG/YesGDDtbyJlC9LHmL6rZw6FurBJ5n4vFGupsOBGfwMRjBYH7qRQowT8D/U4LoSvVwOhSQ==} cpu: [s390x] os: [linux] - '@rollup/rollup-linux-x64-gnu@4.53.3': - resolution: {integrity: sha512-3EhFi1FU6YL8HTUJZ51imGJWEX//ajQPfqWLI3BQq4TlvHy4X0MOr5q3D2Zof/ka0d5FNdPwZXm3Yyib/UEd+w==} + '@rollup/rollup-linux-x64-gnu@4.54.0': + resolution: {integrity: sha512-WGt5J8Ij/rvyqpFexxk3ffKqqbLf9AqrTBbWDk7ApGUzaIs6V+s2s84kAxklFwmMF/vBNGrVdYgbblCOFFezMQ==} cpu: [x64] os: [linux] - '@rollup/rollup-linux-x64-musl@4.53.3': - resolution: {integrity: sha512-eoROhjcc6HbZCJr+tvVT8X4fW3/5g/WkGvvmwz/88sDtSJzO7r/blvoBDgISDiCjDRZmHpwud7h+6Q9JxFwq1Q==} + '@rollup/rollup-linux-x64-musl@4.54.0': + resolution: {integrity: sha512-JzQmb38ATzHjxlPHuTH6tE7ojnMKM2kYNzt44LO/jJi8BpceEC8QuXYA908n8r3CNuG/B3BV8VR3Hi1rYtmPiw==} cpu: [x64] os: [linux] - '@rollup/rollup-openharmony-arm64@4.53.3': - resolution: {integrity: sha512-OueLAWgrNSPGAdUdIjSWXw+u/02BRTcnfw9PN41D2vq/JSEPnJnVuBgw18VkN8wcd4fjUs+jFHVM4t9+kBSNLw==} + '@rollup/rollup-openharmony-arm64@4.54.0': + resolution: {integrity: sha512-huT3fd0iC7jigGh7n3q/+lfPcXxBi+om/Rs3yiFxjvSxbSB6aohDFXbWvlspaqjeOh+hx7DDHS+5Es5qRkWkZg==} cpu: [arm64] os: [openharmony] - '@rollup/rollup-win32-arm64-msvc@4.53.3': - resolution: {integrity: sha512-GOFuKpsxR/whszbF/bzydebLiXIHSgsEUp6M0JI8dWvi+fFa1TD6YQa4aSZHtpmh2/uAlj/Dy+nmby3TJ3pkTw==} + '@rollup/rollup-win32-arm64-msvc@4.54.0': + resolution: {integrity: sha512-c2V0W1bsKIKfbLMBu/WGBz6Yci8nJ/ZJdheE0EwB73N3MvHYKiKGs3mVilX4Gs70eGeDaMqEob25Tw2Gb9Nqyw==} cpu: [arm64] os: [win32] - '@rollup/rollup-win32-ia32-msvc@4.53.3': - resolution: {integrity: sha512-iah+THLcBJdpfZ1TstDFbKNznlzoxa8fmnFYK4V67HvmuNYkVdAywJSoteUszvBQ9/HqN2+9AZghbajMsFT+oA==} + '@rollup/rollup-win32-ia32-msvc@4.54.0': + resolution: {integrity: sha512-woEHgqQqDCkAzrDhvDipnSirm5vxUXtSKDYTVpZG3nUdW/VVB5VdCYA2iReSj/u3yCZzXID4kuKG7OynPnB3WQ==} cpu: [ia32] os: [win32] - '@rollup/rollup-win32-x64-gnu@4.53.3': - resolution: {integrity: sha512-J9QDiOIZlZLdcot5NXEepDkstocktoVjkaKUtqzgzpt2yWjGlbYiKyp05rWwk4nypbYUNoFAztEgixoLaSETkg==} + '@rollup/rollup-win32-x64-gnu@4.54.0': + resolution: {integrity: sha512-dzAc53LOuFvHwbCEOS0rPbXp6SIhAf2txMP5p6mGyOXXw5mWY8NGGbPMPrs4P1WItkfApDathBj/NzMLUZ9rtQ==} cpu: [x64] os: [win32] - '@rollup/rollup-win32-x64-msvc@4.53.3': - resolution: {integrity: sha512-UhTd8u31dXadv0MopwGgNOBpUVROFKWVQgAg5N1ESyCz8AuBcMqm4AuTjrwgQKGDfoFuz02EuMRHQIw/frmYKQ==} + '@rollup/rollup-win32-x64-msvc@4.54.0': + resolution: {integrity: sha512-hYT5d3YNdSh3mbCU1gwQyPgQd3T2ne0A3KG8KSBdav5TiBg6eInVmV+TeR5uHufiIgSFg0XsOWGW5/RhNcSvPg==} cpu: [x64] os: [win32] '@tauri-apps/api@2.9.1': resolution: {integrity: sha512-IGlhP6EivjXHepbBic618GOmiWe4URJiIeZFlB7x3czM0yDHHYviH1Xvoiv4FefdkQtn6v7TuwWCRfOGdnVUGw==} - '@tauri-apps/cli-darwin-arm64@2.9.5': - resolution: {integrity: sha512-P5XDyCwq3VbWGAplyfP/bgmuUITVDcypxgZUyX45SM7HbU1Nrkk0cNK1HCOkuNBAVVbWen2GUNWah/AiupHHXg==} + '@tauri-apps/cli-darwin-arm64@2.9.6': + resolution: {integrity: sha512-gf5no6N9FCk1qMrti4lfwP77JHP5haASZgVbBgpZG7BUepB3fhiLCXGUK8LvuOjP36HivXewjg72LTnPDScnQQ==} engines: {node: '>= 10'} cpu: [arm64] os: [darwin] - '@tauri-apps/cli-darwin-x64@2.9.5': - resolution: {integrity: sha512-JC9UfQ2ZKavx60dnNxsWztRF3oUH3dgPwN1WJ3/5RUy2aNwD/vXqvJAfNFZ4GWeQpoQ+PqJxduev0U4OMQonnA==} + '@tauri-apps/cli-darwin-x64@2.9.6': + resolution: {integrity: sha512-oWh74WmqbERwwrwcueJyY6HYhgCksUc6NT7WKeXyrlY/FPmNgdyQAgcLuTSkhRFuQ6zh4Np1HZpOqCTpeZBDcw==} engines: {node: '>= 10'} cpu: [x64] os: [darwin] - '@tauri-apps/cli-linux-arm-gnueabihf@2.9.5': - resolution: {integrity: sha512-iCQm2Uvx8AheghfG/QUv1y8Ga9yquJt6xJwH1uF0x5KfmJmwBi8pHBvB924dDi59PS84qTdIBeJejQT00QX3Iw==} + '@tauri-apps/cli-linux-arm-gnueabihf@2.9.6': + resolution: {integrity: sha512-/zde3bFroFsNXOHN204DC2qUxAcAanUjVXXSdEGmhwMUZeAQalNj5cz2Qli2elsRjKN/hVbZOJj0gQ5zaYUjSg==} engines: {node: '>= 10'} cpu: [arm] os: [linux] - '@tauri-apps/cli-linux-arm64-gnu@2.9.5': - resolution: {integrity: sha512-b6AW8Gr5nQOQIYH0TsUev7rEThGHIvsx192eElOmOz/dh33J4pninHK32laMj2hzHMJ27qmDq5vANL+wrFo9sg==} + '@tauri-apps/cli-linux-arm64-gnu@2.9.6': + resolution: {integrity: sha512-pvbljdhp9VOo4RnID5ywSxgBs7qiylTPlK56cTk7InR3kYSTJKYMqv/4Q/4rGo/mG8cVppesKIeBMH42fw6wjg==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] - '@tauri-apps/cli-linux-arm64-musl@2.9.5': - resolution: {integrity: sha512-/gRBMnphS9E8riZ0LIbBhZ9Oy16A2rx/g3DGR0DcDBvUtkLfbL0lMu4s+sY85nkn9An15+cZ1ZK6d7AIqWahLA==} + '@tauri-apps/cli-linux-arm64-musl@2.9.6': + resolution: {integrity: sha512-02TKUndpodXBCR0oP//6dZWGYcc22Upf2eP27NvC6z0DIqvkBBFziQUcvi2n6SrwTRL0yGgQjkm9K5NIn8s6jw==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] - '@tauri-apps/cli-linux-riscv64-gnu@2.9.5': - resolution: {integrity: sha512-NOzjPF9YIBodjdkFcJmqINT0k3YDoR5ANM/jg6Z6s3Zmk8ScN6inI60jTxcfgfWyITiKsPy7GJyYou3Cm2XNzw==} + '@tauri-apps/cli-linux-riscv64-gnu@2.9.6': + resolution: {integrity: sha512-fmp1hnulbqzl1GkXl4aTX9fV+ubHw2LqlLH1PE3BxZ11EQk+l/TmiEongjnxF0ie4kV8DQfDNJ1KGiIdWe1GvQ==} engines: {node: '>= 10'} cpu: [riscv64] os: [linux] - '@tauri-apps/cli-linux-x64-gnu@2.9.5': - resolution: {integrity: sha512-SfGbwgvTphM5y+J91NyU/psleMUlyyPkZyDCFg8WU1HX8DpKUT3Vwhb/W1xpUBGb56tJgGCO46FCVkr8w4Areg==} + '@tauri-apps/cli-linux-x64-gnu@2.9.6': + resolution: {integrity: sha512-vY0le8ad2KaV1PJr+jCd8fUF9VOjwwQP/uBuTJvhvKTloEwxYA/kAjKK9OpIslGA9m/zcnSo74czI6bBrm2sYA==} engines: {node: '>= 10'} cpu: [x64] os: [linux] - '@tauri-apps/cli-linux-x64-musl@2.9.5': - resolution: {integrity: sha512-ZfeoiASAOGDzyvN+TDAg8A1pCeS082h4uc0vZKvtWUN+9QBIMfz0yJwltAv+SN/afap6NS6DVkbPV3UVuI9V5A==} + '@tauri-apps/cli-linux-x64-musl@2.9.6': + resolution: {integrity: sha512-TOEuB8YCFZTWVDzsO2yW0+zGcoMiPPwcUgdnW1ODnmgfwccpnihDRoks+ABT1e3fHb1ol8QQWsHSCovb3o2ENQ==} engines: {node: '>= 10'} cpu: [x64] os: [linux] - '@tauri-apps/cli-win32-arm64-msvc@2.9.5': - resolution: {integrity: sha512-ulg7irow+ekjaK4inFHVq7m1KQebDSYNb17DFKV+h+x7qnLZymz2gHK7df2u4YyEjqvzwRd3AJpU3HNxRurSFQ==} + '@tauri-apps/cli-win32-arm64-msvc@2.9.6': + resolution: {integrity: sha512-ujmDGMRc4qRLAnj8nNG26Rlz9klJ0I0jmZs2BPpmNNf0gM/rcVHhqbEkAaHPTBVIrtUdf7bGvQAD2pyIiUrBHQ==} engines: {node: '>= 10'} cpu: [arm64] os: [win32] - '@tauri-apps/cli-win32-ia32-msvc@2.9.5': - resolution: {integrity: sha512-6lF0k/Qduhn1Z3IOXlp2ts8jNOMIX4cK4Fbk3axGeX7LMcVVbOSEAFwbTqS8BKZDFac0WRS8N1C96+Ms5LOS1Q==} + '@tauri-apps/cli-win32-ia32-msvc@2.9.6': + resolution: {integrity: sha512-S4pT0yAJgFX8QRCyKA1iKjZ9Q/oPjCZf66A/VlG5Yw54Nnr88J1uBpmenINbXxzyhduWrIXBaUbEY1K80ZbpMg==} engines: {node: '>= 10'} cpu: [ia32] os: [win32] - '@tauri-apps/cli-win32-x64-msvc@2.9.5': - resolution: {integrity: sha512-Vg50U74x1A4b2iBVtDcAVPbI1XVuzSmwlduuBM1VewxtRaVj5GDzWnYtBcnuIk+VGzNApRDfDhraAXGaW2a/Gw==} + '@tauri-apps/cli-win32-x64-msvc@2.9.6': + resolution: {integrity: sha512-ldWuWSSkWbKOPjQMJoYVj9wLHcOniv7diyI5UAJ4XsBdtaFB0pKHQsqw/ItUma0VXGC7vB4E9fZjivmxur60aw==} engines: {node: '>= 10'} cpu: [x64] os: [win32] - '@tauri-apps/cli@2.9.5': - resolution: {integrity: sha512-z88tX6O6kwTgMjYozhNGbehzQyBazgXejyH784CwSfBOWm06xFcogd0PY/jhcPsqzJF9kLRIkmlQy+cqdrioOQ==} + '@tauri-apps/cli@2.9.6': + resolution: {integrity: sha512-3xDdXL5omQ3sPfBfdC8fCtDKcnyV7OqyzQgfyT5P3+zY6lcPqIYKQBvUasNvppi21RSdfhy44ttvJmftb0PCDw==} engines: {node: '>= 10'} hasBin: true @@ -741,8 +741,8 @@ packages: '@types/json-schema@7.0.15': resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} - '@types/node@22.19.1': - resolution: {integrity: sha512-LCCV0HdSZZZb34qifBsyWlUmok6W7ouER+oQIGBScS8EsZsQbrtFTUrDX4hOl+CS6p7cnNC4td+qrSVGSCTUfQ==} + '@types/node@22.19.3': + resolution: {integrity: sha512-1N9SBnWYOJTrNZCdh/yJE+t910Y128BoyY+zBLWhL3r0TYzlTmFdXrPwHL9DyFZmlEXNQQolTZh3KHV31QDhyA==} '@types/parse-json@4.0.2': resolution: {integrity: sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==} @@ -763,63 +763,63 @@ packages: '@types/react@19.2.7': resolution: {integrity: sha512-MWtvHrGZLFttgeEj28VXHxpmwYbor/ATPYbBfSFZEIRK0ecCFLl2Qo55z52Hss+UV9CRN7trSeq1zbgx7YDWWg==} - '@typescript-eslint/eslint-plugin@8.48.1': - resolution: {integrity: sha512-X63hI1bxl5ohelzr0LY5coufyl0LJNthld+abwxpCoo6Gq+hSqhKwci7MUWkXo67mzgUK6YFByhmaHmUcuBJmA==} + '@typescript-eslint/eslint-plugin@8.50.0': + resolution: {integrity: sha512-O7QnmOXYKVtPrfYzMolrCTfkezCJS9+ljLdKW/+DCvRsc3UAz+sbH6Xcsv7p30+0OwUbeWfUDAQE0vpabZ3QLg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: - '@typescript-eslint/parser': ^8.48.1 + '@typescript-eslint/parser': ^8.50.0 eslint: ^8.57.0 || ^9.0.0 typescript: '>=4.8.4 <6.0.0' - '@typescript-eslint/parser@8.48.1': - resolution: {integrity: sha512-PC0PDZfJg8sP7cmKe6L3QIL8GZwU5aRvUFedqSIpw3B+QjRSUZeeITC2M5XKeMXEzL6wccN196iy3JLwKNvDVA==} + '@typescript-eslint/parser@8.50.0': + resolution: {integrity: sha512-6/cmF2piao+f6wSxUsJLZjck7OQsYyRtcOZS02k7XINSNlz93v6emM8WutDQSXnroG2xwYlEVHJI+cPA7CPM3Q==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^8.57.0 || ^9.0.0 typescript: '>=4.8.4 <6.0.0' - '@typescript-eslint/project-service@8.48.1': - resolution: {integrity: sha512-HQWSicah4s9z2/HifRPQ6b6R7G+SBx64JlFQpgSSHWPKdvCZX57XCbszg/bapbRsOEv42q5tayTYcEFpACcX1w==} + '@typescript-eslint/project-service@8.50.0': + resolution: {integrity: sha512-Cg/nQcL1BcoTijEWyx4mkVC56r8dj44bFDvBdygifuS20f3OZCHmFbjF34DPSi07kwlFvqfv/xOLnJ5DquxSGQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: typescript: '>=4.8.4 <6.0.0' - '@typescript-eslint/scope-manager@8.48.1': - resolution: {integrity: sha512-rj4vWQsytQbLxC5Bf4XwZ0/CKd362DkWMUkviT7DCS057SK64D5lH74sSGzhI6PDD2HCEq02xAP9cX68dYyg1w==} + '@typescript-eslint/scope-manager@8.50.0': + resolution: {integrity: sha512-xCwfuCZjhIqy7+HKxBLrDVT5q/iq7XBVBXLn57RTIIpelLtEIZHXAF/Upa3+gaCpeV1NNS5Z9A+ID6jn50VD4A==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript-eslint/tsconfig-utils@8.48.1': - resolution: {integrity: sha512-k0Jhs4CpEffIBm6wPaCXBAD7jxBtrHjrSgtfCjUvPp9AZ78lXKdTR8fxyZO5y4vWNlOvYXRtngSZNSn+H53Jkw==} + '@typescript-eslint/tsconfig-utils@8.50.0': + resolution: {integrity: sha512-vxd3G/ybKTSlm31MOA96gqvrRGv9RJ7LGtZCn2Vrc5htA0zCDvcMqUkifcjrWNNKXHUU3WCkYOzzVSFBd0wa2w==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: typescript: '>=4.8.4 <6.0.0' - '@typescript-eslint/type-utils@8.48.1': - resolution: {integrity: sha512-1jEop81a3LrJQLTf/1VfPQdhIY4PlGDBc/i67EVWObrtvcziysbLN3oReexHOM6N3jyXgCrkBsZpqwH0hiDOQg==} + '@typescript-eslint/type-utils@8.50.0': + resolution: {integrity: sha512-7OciHT2lKCewR0mFoBrvZJ4AXTMe/sYOe87289WAViOocEmDjjv8MvIOT2XESuKj9jp8u3SZYUSh89QA4S1kQw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^8.57.0 || ^9.0.0 typescript: '>=4.8.4 <6.0.0' - '@typescript-eslint/types@8.48.1': - resolution: {integrity: sha512-+fZ3LZNeiELGmimrujsDCT4CRIbq5oXdHe7chLiW8qzqyPMnn1puNstCrMNVAqwcl2FdIxkuJ4tOs/RFDBVc/Q==} + '@typescript-eslint/types@8.50.0': + resolution: {integrity: sha512-iX1mgmGrXdANhhITbpp2QQM2fGehBse9LbTf0sidWK6yg/NE+uhV5dfU1g6EYPlcReYmkE9QLPq/2irKAmtS9w==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript-eslint/typescript-estree@8.48.1': - resolution: {integrity: sha512-/9wQ4PqaefTK6POVTjJaYS0bynCgzh6ClJHGSBj06XEHjkfylzB+A3qvyaXnErEZSaxhIo4YdyBgq6j4RysxDg==} + '@typescript-eslint/typescript-estree@8.50.0': + resolution: {integrity: sha512-W7SVAGBR/IX7zm1t70Yujpbk+zdPq/u4soeFSknWFdXIFuWsBGBOUu/Tn/I6KHSKvSh91OiMuaSnYp3mtPt5IQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: typescript: '>=4.8.4 <6.0.0' - '@typescript-eslint/utils@8.48.1': - resolution: {integrity: sha512-fAnhLrDjiVfey5wwFRwrweyRlCmdz5ZxXz2G/4cLn0YDLjTapmN4gcCsTBR1N2rWnZSDeWpYtgLDsJt+FpmcwA==} + '@typescript-eslint/utils@8.50.0': + resolution: {integrity: sha512-87KgUXET09CRjGCi2Ejxy3PULXna63/bMYv72tCAlDJC3Yqwln0HiFJ3VJMst2+mEtNtZu5oFvX4qJGjKsnAgg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^8.57.0 || ^9.0.0 typescript: '>=4.8.4 <6.0.0' - '@typescript-eslint/visitor-keys@8.48.1': - resolution: {integrity: sha512-BmxxndzEWhE4TIEEMBs8lP3MBWN3jFPs/p6gPm/wkv02o41hI6cq9AuSmGAaTTHPtA1FTi2jBre4A9rm5ZmX+Q==} + '@typescript-eslint/visitor-keys@8.50.0': + resolution: {integrity: sha512-Xzmnb58+Db78gT/CCj/PVCvK+zxbnsw6F+O1oheYszJbBSdEjVhQi3C/Xttzxgi/GLmpvOggRs1RFpiJ8+c34Q==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} '@vitejs/plugin-react@5.1.2': @@ -891,8 +891,8 @@ packages: balanced-match@1.0.2: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} - baseline-browser-mapping@2.9.4: - resolution: {integrity: sha512-ZCQ9GEWl73BVm8bu5Fts8nt7MHdbt5vY9bP6WGnUh+r3l8M7CgfyTlwsgCbMC66BNxPr6Xoce3j66Ms5YUQTNA==} + baseline-browser-mapping@2.9.11: + resolution: {integrity: sha512-Sg0xJUNDU1sJNGdfGWhVHX0kkZ+HWcvmVymJbj6NSgZZmW/8S9Y2HQ5euytnIgakgxN6papOAWiwDo1ctFDcoQ==} hasBin: true brace-expansion@1.1.12: @@ -922,8 +922,8 @@ packages: resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} engines: {node: '>=6'} - caniuse-lite@1.0.30001759: - resolution: {integrity: sha512-Pzfx9fOKoKvevQf8oCXoyNRQ5QyxJj+3O0Rqx2V5oxT61KGx8+n6hV/IUyJeifUci2clnmmKVpvtiqRzgiWjSw==} + caniuse-lite@1.0.30001761: + resolution: {integrity: sha512-JF9ptu1vP2coz98+5051jZ4PwQgd2ni8A+gYSN7EA7dPKIMf0pDlSUxhdmVOaV3/fYK5uWBkgSXJaRLr4+3A6g==} chalk@4.1.2: resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} @@ -1003,14 +1003,14 @@ packages: resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==} engines: {node: '>= 0.4'} - electron-to-chromium@1.5.266: - resolution: {integrity: sha512-kgWEglXvkEfMH7rxP5OSZZwnaDWT7J9EoZCujhnpLbfi0bbNtRkgdX2E3gt0Uer11c61qCYktB3hwkAS325sJg==} + electron-to-chromium@1.5.267: + resolution: {integrity: sha512-0Drusm6MVRXSOJpGbaSVgcQsuB4hEkMpHXaVstcPmhu5LIedxs1xNK/nIxmQIU/RPC0+1/o0AVZfBTkTNJOdUw==} error-ex@1.3.4: resolution: {integrity: sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==} - es-abstract@1.24.0: - resolution: {integrity: sha512-WSzPgsdLtTcQwm4CROfS5ju2Wa1QQcVeT37jFjYzdFz1r9ahadC8B8/a4qxJxM+09F18iumCdRmlr96ZYkQvEg==} + es-abstract@1.24.1: + resolution: {integrity: sha512-zHXBLhP+QehSSbsS9Pt23Gg964240DPd6QCf8WpkqEXxQ7fhdZzYsocOr5u7apWonsS5EjZDmTF+/slGMyasvw==} engines: {node: '>= 0.4'} es-define-property@1.0.1: @@ -1021,8 +1021,8 @@ packages: resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==} engines: {node: '>= 0.4'} - es-iterator-helpers@1.2.1: - resolution: {integrity: sha512-uDn+FE1yrDzyC0pCo961B2IHbdM8y/ACZsKD4dG6WqrjV53BADjwa7D+1aom2rsNVfLyDgU/eigvlJGJ08OQ4w==} + es-iterator-helpers@1.2.2: + resolution: {integrity: sha512-BrUQ0cPTB/IwXj23HtwHjS9n7O4h9FX94b4xc5zlTHxeLgTAdzYUDyy6KdExAl9lbN5rtfe44xpjpmj9grxs5w==} engines: {node: '>= 0.4'} es-object-atoms@1.1.1: @@ -1041,8 +1041,8 @@ packages: resolution: {integrity: sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==} engines: {node: '>= 0.4'} - esbuild@0.25.12: - resolution: {integrity: sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==} + esbuild@0.27.2: + resolution: {integrity: sha512-HyNQImnsOC7X9PMNaCIeAm4ISCQXs5a5YasTXVliKv4uuBo1dKrG0A+uQS8M5eXjVMnLg3WgXaKvprHlFJQffw==} engines: {node: '>=18'} hasBin: true @@ -1084,8 +1084,8 @@ packages: resolution: {integrity: sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - eslint@9.39.1: - resolution: {integrity: sha512-BhHmn2yNOFA9H9JmmIVKJmd288g9hrVRDkdoIgRCRuSySRUHH7r/DI6aAXW9T1WwUuY3DFgrcaqB+deURBLR5g==} + eslint@9.39.2: + resolution: {integrity: sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} hasBin: true peerDependencies: @@ -1205,9 +1205,6 @@ packages: resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==} engines: {node: '>= 0.4'} - graphemer@1.4.0: - resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} - has-bigints@1.1.0: resolution: {integrity: sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==} engines: {node: '>= 0.4'} @@ -1553,16 +1550,16 @@ packages: resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} engines: {node: '>=6'} - react-dom@19.2.1: - resolution: {integrity: sha512-ibrK8llX2a4eOskq1mXKu/TGZj9qzomO+sNfO98M6d9zIPOEhlBkMkBUBLd1vgS0gQsLDBzA+8jJBVXDnfHmJg==} + react-dom@19.2.3: + resolution: {integrity: sha512-yELu4WmLPw5Mr/lmeEpox5rw3RETacE++JgHqQzd2dg+YbJuat3jH4ingc+WPZhxaoFzdv9y33G+F7Nl5O0GBg==} peerDependencies: - react: ^19.2.1 + react: ^19.2.3 react-is@16.13.1: resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==} - react-is@19.2.1: - resolution: {integrity: sha512-L7BnWgRbMwzMAubQcS7sXdPdNLmKlucPlopgAzx7FtYbksWZgEWiuYM5x9T6UqS2Ne0rsgQTq5kY2SGqpzUkYA==} + react-is@19.2.3: + resolution: {integrity: sha512-qJNJfu81ByyabuG7hPFEbXqNcWSU3+eVus+KJs+0ncpGfMyYdvSmxiJxbWR65lYi1I+/0HBcliO029gc4F+PnA==} react-refresh@0.18.0: resolution: {integrity: sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==} @@ -1574,8 +1571,8 @@ packages: react: '>=16.6.0' react-dom: '>=16.6.0' - react@19.2.1: - resolution: {integrity: sha512-DGrYcCWK7tvYMnWh79yrPHt+vdx9tY+1gPZa7nJQtO/p8bLTDaHp4dzwEhQB7pZ4Xe3ok4XKuEPrVuc+wlpkmw==} + react@19.2.3: + resolution: {integrity: sha512-Ku/hhYbVjOQnXDZFv2+RibmLFGwFdeeKHFcOTlrt7xplBnya5OGn/hIRDsqDiSUcfORsDC7MPxwork8jBwsIWA==} engines: {node: '>=0.10.0'} reflect.getprototypeof@1.0.10: @@ -1599,8 +1596,8 @@ packages: resolution: {integrity: sha512-U7WjGVG9sH8tvjW5SmGbQuui75FiyjAX72HX15DwBBwF9dNiQZRQAg9nnPhYy+TUnE0+VcrttuvNI8oSxZcocA==} hasBin: true - rollup@4.53.3: - resolution: {integrity: sha512-w8GmOxZfBmKknvdXU1sdM9NHcoQejwF/4mNgj2JuEEdRaHwwF12K7e9eXn1nLZ07ad+du76mkVsyeb2rKGllsA==} + rollup@4.54.0: + resolution: {integrity: sha512-3nk8Y3a9Ea8szgKhinMlGMhGMw89mqule3KWczxhIzqudyHdCIOHw8WJlj/r329fACjKLEh13ZSk7oE22kyeIw==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true @@ -1752,8 +1749,8 @@ packages: undici-types@6.21.0: resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} - update-browserslist-db@1.2.2: - resolution: {integrity: sha512-E85pfNzMQ9jpKkA7+TJAi4TJN+tBCuWh5rUcS/sv6cFi+1q9LYDwDI5dpUL0u/73EElyQ8d3TEaeW4sPedBqYA==} + update-browserslist-db@1.2.3: + resolution: {integrity: sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==} hasBin: true peerDependencies: browserslist: '>= 4.21.0' @@ -1761,8 +1758,8 @@ packages: uri-js@4.4.1: resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} - vite@7.2.7: - resolution: {integrity: sha512-ITcnkFeR3+fI8P1wMgItjGrR10170d8auB4EpMLPqmx6uxElH3a/hHGQabSHKdqd4FXWO1nFIp9rRn7JQ34ACQ==} + vite@7.3.0: + resolution: {integrity: sha512-dZwN5L1VlUBewiP6H9s2+B3e3Jg96D0vzN+Ry73sOefebhYr9f94wwkMNN/9ouoU8pV1BqA1d1zGk8928cx0rg==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true peerDependencies: @@ -1843,8 +1840,8 @@ packages: peerDependencies: zod: ^3.25.0 || ^4.0.0 - zod@4.1.13: - resolution: {integrity: sha512-AvvthqfqrAhNH9dnfmrfKzX5upOdjUVJYFqNSlkmGf64gRaTzlPwz99IHYnVs28qYAybvAlBV+H7pn0saFY4Ig==} + zod@4.2.1: + resolution: {integrity: sha512-0wZ1IRqGGhMP76gLqz8EyfBXKk0J2qo2+H3fi4mcUP/KtTocoX08nmIAHl1Z2kJIZbZee8KOpBCSNPRgauucjw==} snapshots: @@ -1994,17 +1991,17 @@ snapshots: '@emotion/memoize@0.9.0': {} - '@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.1)': + '@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.3)': dependencies: '@babel/runtime': 7.28.4 '@emotion/babel-plugin': 11.13.5 '@emotion/cache': 11.14.0 '@emotion/serialize': 1.3.3 - '@emotion/use-insertion-effect-with-fallbacks': 1.2.0(react@19.2.1) + '@emotion/use-insertion-effect-with-fallbacks': 1.2.0(react@19.2.3) '@emotion/utils': 1.4.2 '@emotion/weak-memoize': 0.4.0 hoist-non-react-statics: 3.3.2 - react: 19.2.1 + react: 19.2.3 optionalDependencies: '@types/react': 19.2.7 transitivePeerDependencies: @@ -2020,16 +2017,16 @@ snapshots: '@emotion/sheet@1.4.0': {} - '@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.1))(@types/react@19.2.7)(react@19.2.1)': + '@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.3))(@types/react@19.2.7)(react@19.2.3)': dependencies: '@babel/runtime': 7.28.4 '@emotion/babel-plugin': 11.13.5 '@emotion/is-prop-valid': 1.4.0 - '@emotion/react': 11.14.0(@types/react@19.2.7)(react@19.2.1) + '@emotion/react': 11.14.0(@types/react@19.2.7)(react@19.2.3) '@emotion/serialize': 1.3.3 - '@emotion/use-insertion-effect-with-fallbacks': 1.2.0(react@19.2.1) + '@emotion/use-insertion-effect-with-fallbacks': 1.2.0(react@19.2.3) '@emotion/utils': 1.4.2 - react: 19.2.1 + react: 19.2.3 optionalDependencies: '@types/react': 19.2.7 transitivePeerDependencies: @@ -2037,95 +2034,95 @@ snapshots: '@emotion/unitless@0.10.0': {} - '@emotion/use-insertion-effect-with-fallbacks@1.2.0(react@19.2.1)': + '@emotion/use-insertion-effect-with-fallbacks@1.2.0(react@19.2.3)': dependencies: - react: 19.2.1 + react: 19.2.3 '@emotion/utils@1.4.2': {} '@emotion/weak-memoize@0.4.0': {} - '@esbuild/aix-ppc64@0.25.12': + '@esbuild/aix-ppc64@0.27.2': optional: true - '@esbuild/android-arm64@0.25.12': + '@esbuild/android-arm64@0.27.2': optional: true - '@esbuild/android-arm@0.25.12': + '@esbuild/android-arm@0.27.2': optional: true - '@esbuild/android-x64@0.25.12': + '@esbuild/android-x64@0.27.2': optional: true - '@esbuild/darwin-arm64@0.25.12': + '@esbuild/darwin-arm64@0.27.2': optional: true - '@esbuild/darwin-x64@0.25.12': + '@esbuild/darwin-x64@0.27.2': optional: true - '@esbuild/freebsd-arm64@0.25.12': + '@esbuild/freebsd-arm64@0.27.2': optional: true - '@esbuild/freebsd-x64@0.25.12': + '@esbuild/freebsd-x64@0.27.2': optional: true - '@esbuild/linux-arm64@0.25.12': + '@esbuild/linux-arm64@0.27.2': optional: true - '@esbuild/linux-arm@0.25.12': + '@esbuild/linux-arm@0.27.2': optional: true - '@esbuild/linux-ia32@0.25.12': + '@esbuild/linux-ia32@0.27.2': optional: true - '@esbuild/linux-loong64@0.25.12': + '@esbuild/linux-loong64@0.27.2': optional: true - '@esbuild/linux-mips64el@0.25.12': + '@esbuild/linux-mips64el@0.27.2': optional: true - '@esbuild/linux-ppc64@0.25.12': + '@esbuild/linux-ppc64@0.27.2': optional: true - '@esbuild/linux-riscv64@0.25.12': + '@esbuild/linux-riscv64@0.27.2': optional: true - '@esbuild/linux-s390x@0.25.12': + '@esbuild/linux-s390x@0.27.2': optional: true - '@esbuild/linux-x64@0.25.12': + '@esbuild/linux-x64@0.27.2': optional: true - '@esbuild/netbsd-arm64@0.25.12': + '@esbuild/netbsd-arm64@0.27.2': optional: true - '@esbuild/netbsd-x64@0.25.12': + '@esbuild/netbsd-x64@0.27.2': optional: true - '@esbuild/openbsd-arm64@0.25.12': + '@esbuild/openbsd-arm64@0.27.2': optional: true - '@esbuild/openbsd-x64@0.25.12': + '@esbuild/openbsd-x64@0.27.2': optional: true - '@esbuild/openharmony-arm64@0.25.12': + '@esbuild/openharmony-arm64@0.27.2': optional: true - '@esbuild/sunos-x64@0.25.12': + '@esbuild/sunos-x64@0.27.2': optional: true - '@esbuild/win32-arm64@0.25.12': + '@esbuild/win32-arm64@0.27.2': optional: true - '@esbuild/win32-ia32@0.25.12': + '@esbuild/win32-ia32@0.27.2': optional: true - '@esbuild/win32-x64@0.25.12': + '@esbuild/win32-x64@0.27.2': optional: true - '@eslint-community/eslint-utils@4.9.0(eslint@9.39.1)': + '@eslint-community/eslint-utils@4.9.0(eslint@9.39.2)': dependencies: - eslint: 9.39.1 + eslint: 9.39.2 eslint-visitor-keys: 3.4.3 '@eslint-community/regexpp@4.12.2': {} @@ -2160,7 +2157,7 @@ snapshots: transitivePeerDependencies: - supports-color - '@eslint/js@9.39.1': {} + '@eslint/js@9.39.2': {} '@eslint/object-schema@2.1.7': {} @@ -2201,45 +2198,45 @@ snapshots: '@mui/core-downloads-tracker@7.3.6': {} - '@mui/icons-material@7.3.6(@mui/material@7.3.6(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.1))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.1))(@types/react@19.2.7)(react@19.2.1))(@types/react@19.2.7)(react-dom@19.2.1(react@19.2.1))(react@19.2.1))(@types/react@19.2.7)(react@19.2.1)': + '@mui/icons-material@7.3.6(@mui/material@7.3.6(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.3))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.3))(@types/react@19.2.7)(react@19.2.3))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(@types/react@19.2.7)(react@19.2.3)': dependencies: '@babel/runtime': 7.28.4 - '@mui/material': 7.3.6(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.1))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.1))(@types/react@19.2.7)(react@19.2.1))(@types/react@19.2.7)(react-dom@19.2.1(react@19.2.1))(react@19.2.1) - react: 19.2.1 + '@mui/material': 7.3.6(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.3))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.3))(@types/react@19.2.7)(react@19.2.3))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3) + react: 19.2.3 optionalDependencies: '@types/react': 19.2.7 - '@mui/material@7.3.6(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.1))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.1))(@types/react@19.2.7)(react@19.2.1))(@types/react@19.2.7)(react-dom@19.2.1(react@19.2.1))(react@19.2.1)': + '@mui/material@7.3.6(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.3))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.3))(@types/react@19.2.7)(react@19.2.3))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)': dependencies: '@babel/runtime': 7.28.4 '@mui/core-downloads-tracker': 7.3.6 - '@mui/system': 7.3.6(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.1))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.1))(@types/react@19.2.7)(react@19.2.1))(@types/react@19.2.7)(react@19.2.1) + '@mui/system': 7.3.6(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.3))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.3))(@types/react@19.2.7)(react@19.2.3))(@types/react@19.2.7)(react@19.2.3) '@mui/types': 7.4.9(@types/react@19.2.7) - '@mui/utils': 7.3.6(@types/react@19.2.7)(react@19.2.1) + '@mui/utils': 7.3.6(@types/react@19.2.7)(react@19.2.3) '@popperjs/core': 2.11.8 '@types/react-transition-group': 4.4.12(@types/react@19.2.7) clsx: 2.1.1 csstype: 3.2.3 prop-types: 15.8.1 - react: 19.2.1 - react-dom: 19.2.1(react@19.2.1) - react-is: 19.2.1 - react-transition-group: 4.4.5(react-dom@19.2.1(react@19.2.1))(react@19.2.1) + react: 19.2.3 + react-dom: 19.2.3(react@19.2.3) + react-is: 19.2.3 + react-transition-group: 4.4.5(react-dom@19.2.3(react@19.2.3))(react@19.2.3) optionalDependencies: - '@emotion/react': 11.14.0(@types/react@19.2.7)(react@19.2.1) - '@emotion/styled': 11.14.1(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.1))(@types/react@19.2.7)(react@19.2.1) + '@emotion/react': 11.14.0(@types/react@19.2.7)(react@19.2.3) + '@emotion/styled': 11.14.1(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.3))(@types/react@19.2.7)(react@19.2.3) '@types/react': 19.2.7 - '@mui/private-theming@7.3.6(@types/react@19.2.7)(react@19.2.1)': + '@mui/private-theming@7.3.6(@types/react@19.2.7)(react@19.2.3)': dependencies: '@babel/runtime': 7.28.4 - '@mui/utils': 7.3.6(@types/react@19.2.7)(react@19.2.1) + '@mui/utils': 7.3.6(@types/react@19.2.7)(react@19.2.3) prop-types: 15.8.1 - react: 19.2.1 + react: 19.2.3 optionalDependencies: '@types/react': 19.2.7 - '@mui/styled-engine@7.3.6(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.1))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.1))(@types/react@19.2.7)(react@19.2.1))(react@19.2.1)': + '@mui/styled-engine@7.3.6(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.3))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.3))(@types/react@19.2.7)(react@19.2.3))(react@19.2.3)': dependencies: '@babel/runtime': 7.28.4 '@emotion/cache': 11.14.0 @@ -2247,25 +2244,25 @@ snapshots: '@emotion/sheet': 1.4.0 csstype: 3.2.3 prop-types: 15.8.1 - react: 19.2.1 + react: 19.2.3 optionalDependencies: - '@emotion/react': 11.14.0(@types/react@19.2.7)(react@19.2.1) - '@emotion/styled': 11.14.1(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.1))(@types/react@19.2.7)(react@19.2.1) + '@emotion/react': 11.14.0(@types/react@19.2.7)(react@19.2.3) + '@emotion/styled': 11.14.1(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.3))(@types/react@19.2.7)(react@19.2.3) - '@mui/system@7.3.6(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.1))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.1))(@types/react@19.2.7)(react@19.2.1))(@types/react@19.2.7)(react@19.2.1)': + '@mui/system@7.3.6(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.3))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.3))(@types/react@19.2.7)(react@19.2.3))(@types/react@19.2.7)(react@19.2.3)': dependencies: '@babel/runtime': 7.28.4 - '@mui/private-theming': 7.3.6(@types/react@19.2.7)(react@19.2.1) - '@mui/styled-engine': 7.3.6(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.1))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.1))(@types/react@19.2.7)(react@19.2.1))(react@19.2.1) + '@mui/private-theming': 7.3.6(@types/react@19.2.7)(react@19.2.3) + '@mui/styled-engine': 7.3.6(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.3))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.3))(@types/react@19.2.7)(react@19.2.3))(react@19.2.3) '@mui/types': 7.4.9(@types/react@19.2.7) - '@mui/utils': 7.3.6(@types/react@19.2.7)(react@19.2.1) + '@mui/utils': 7.3.6(@types/react@19.2.7)(react@19.2.3) clsx: 2.1.1 csstype: 3.2.3 prop-types: 15.8.1 - react: 19.2.1 + react: 19.2.3 optionalDependencies: - '@emotion/react': 11.14.0(@types/react@19.2.7)(react@19.2.1) - '@emotion/styled': 11.14.1(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.1))(@types/react@19.2.7)(react@19.2.1) + '@emotion/react': 11.14.0(@types/react@19.2.7)(react@19.2.3) + '@emotion/styled': 11.14.1(@emotion/react@11.14.0(@types/react@19.2.7)(react@19.2.3))(@types/react@19.2.7)(react@19.2.3) '@types/react': 19.2.7 '@mui/types@7.4.9(@types/react@19.2.7)': @@ -2274,15 +2271,15 @@ snapshots: optionalDependencies: '@types/react': 19.2.7 - '@mui/utils@7.3.6(@types/react@19.2.7)(react@19.2.1)': + '@mui/utils@7.3.6(@types/react@19.2.7)(react@19.2.3)': dependencies: '@babel/runtime': 7.28.4 '@mui/types': 7.4.9(@types/react@19.2.7) '@types/prop-types': 15.7.15 clsx: 2.1.1 prop-types: 15.8.1 - react: 19.2.1 - react-is: 19.2.1 + react: 19.2.3 + react-is: 19.2.3 optionalDependencies: '@types/react': 19.2.7 @@ -2290,120 +2287,120 @@ snapshots: '@rolldown/pluginutils@1.0.0-beta.53': {} - '@rollup/rollup-android-arm-eabi@4.53.3': + '@rollup/rollup-android-arm-eabi@4.54.0': optional: true - '@rollup/rollup-android-arm64@4.53.3': + '@rollup/rollup-android-arm64@4.54.0': optional: true - '@rollup/rollup-darwin-arm64@4.53.3': + '@rollup/rollup-darwin-arm64@4.54.0': optional: true - '@rollup/rollup-darwin-x64@4.53.3': + '@rollup/rollup-darwin-x64@4.54.0': optional: true - '@rollup/rollup-freebsd-arm64@4.53.3': + '@rollup/rollup-freebsd-arm64@4.54.0': optional: true - '@rollup/rollup-freebsd-x64@4.53.3': + '@rollup/rollup-freebsd-x64@4.54.0': optional: true - '@rollup/rollup-linux-arm-gnueabihf@4.53.3': + '@rollup/rollup-linux-arm-gnueabihf@4.54.0': optional: true - '@rollup/rollup-linux-arm-musleabihf@4.53.3': + '@rollup/rollup-linux-arm-musleabihf@4.54.0': optional: true - '@rollup/rollup-linux-arm64-gnu@4.53.3': + '@rollup/rollup-linux-arm64-gnu@4.54.0': optional: true - '@rollup/rollup-linux-arm64-musl@4.53.3': + '@rollup/rollup-linux-arm64-musl@4.54.0': optional: true - '@rollup/rollup-linux-loong64-gnu@4.53.3': + '@rollup/rollup-linux-loong64-gnu@4.54.0': optional: true - '@rollup/rollup-linux-ppc64-gnu@4.53.3': + '@rollup/rollup-linux-ppc64-gnu@4.54.0': optional: true - '@rollup/rollup-linux-riscv64-gnu@4.53.3': + '@rollup/rollup-linux-riscv64-gnu@4.54.0': optional: true - '@rollup/rollup-linux-riscv64-musl@4.53.3': + '@rollup/rollup-linux-riscv64-musl@4.54.0': optional: true - '@rollup/rollup-linux-s390x-gnu@4.53.3': + '@rollup/rollup-linux-s390x-gnu@4.54.0': optional: true - '@rollup/rollup-linux-x64-gnu@4.53.3': + '@rollup/rollup-linux-x64-gnu@4.54.0': optional: true - '@rollup/rollup-linux-x64-musl@4.53.3': + '@rollup/rollup-linux-x64-musl@4.54.0': optional: true - '@rollup/rollup-openharmony-arm64@4.53.3': + '@rollup/rollup-openharmony-arm64@4.54.0': optional: true - '@rollup/rollup-win32-arm64-msvc@4.53.3': + '@rollup/rollup-win32-arm64-msvc@4.54.0': optional: true - '@rollup/rollup-win32-ia32-msvc@4.53.3': + '@rollup/rollup-win32-ia32-msvc@4.54.0': optional: true - '@rollup/rollup-win32-x64-gnu@4.53.3': + '@rollup/rollup-win32-x64-gnu@4.54.0': optional: true - '@rollup/rollup-win32-x64-msvc@4.53.3': + '@rollup/rollup-win32-x64-msvc@4.54.0': optional: true '@tauri-apps/api@2.9.1': {} - '@tauri-apps/cli-darwin-arm64@2.9.5': + '@tauri-apps/cli-darwin-arm64@2.9.6': optional: true - '@tauri-apps/cli-darwin-x64@2.9.5': + '@tauri-apps/cli-darwin-x64@2.9.6': optional: true - '@tauri-apps/cli-linux-arm-gnueabihf@2.9.5': + '@tauri-apps/cli-linux-arm-gnueabihf@2.9.6': optional: true - '@tauri-apps/cli-linux-arm64-gnu@2.9.5': + '@tauri-apps/cli-linux-arm64-gnu@2.9.6': optional: true - '@tauri-apps/cli-linux-arm64-musl@2.9.5': + '@tauri-apps/cli-linux-arm64-musl@2.9.6': optional: true - '@tauri-apps/cli-linux-riscv64-gnu@2.9.5': + '@tauri-apps/cli-linux-riscv64-gnu@2.9.6': optional: true - '@tauri-apps/cli-linux-x64-gnu@2.9.5': + '@tauri-apps/cli-linux-x64-gnu@2.9.6': optional: true - '@tauri-apps/cli-linux-x64-musl@2.9.5': + '@tauri-apps/cli-linux-x64-musl@2.9.6': optional: true - '@tauri-apps/cli-win32-arm64-msvc@2.9.5': + '@tauri-apps/cli-win32-arm64-msvc@2.9.6': optional: true - '@tauri-apps/cli-win32-ia32-msvc@2.9.5': + '@tauri-apps/cli-win32-ia32-msvc@2.9.6': optional: true - '@tauri-apps/cli-win32-x64-msvc@2.9.5': + '@tauri-apps/cli-win32-x64-msvc@2.9.6': optional: true - '@tauri-apps/cli@2.9.5': + '@tauri-apps/cli@2.9.6': optionalDependencies: - '@tauri-apps/cli-darwin-arm64': 2.9.5 - '@tauri-apps/cli-darwin-x64': 2.9.5 - '@tauri-apps/cli-linux-arm-gnueabihf': 2.9.5 - '@tauri-apps/cli-linux-arm64-gnu': 2.9.5 - '@tauri-apps/cli-linux-arm64-musl': 2.9.5 - '@tauri-apps/cli-linux-riscv64-gnu': 2.9.5 - '@tauri-apps/cli-linux-x64-gnu': 2.9.5 - '@tauri-apps/cli-linux-x64-musl': 2.9.5 - '@tauri-apps/cli-win32-arm64-msvc': 2.9.5 - '@tauri-apps/cli-win32-ia32-msvc': 2.9.5 - '@tauri-apps/cli-win32-x64-msvc': 2.9.5 + '@tauri-apps/cli-darwin-arm64': 2.9.6 + '@tauri-apps/cli-darwin-x64': 2.9.6 + '@tauri-apps/cli-linux-arm-gnueabihf': 2.9.6 + '@tauri-apps/cli-linux-arm64-gnu': 2.9.6 + '@tauri-apps/cli-linux-arm64-musl': 2.9.6 + '@tauri-apps/cli-linux-riscv64-gnu': 2.9.6 + '@tauri-apps/cli-linux-x64-gnu': 2.9.6 + '@tauri-apps/cli-linux-x64-musl': 2.9.6 + '@tauri-apps/cli-win32-arm64-msvc': 2.9.6 + '@tauri-apps/cli-win32-ia32-msvc': 2.9.6 + '@tauri-apps/cli-win32-x64-msvc': 2.9.6 '@types/babel__core@7.20.5': dependencies: @@ -2430,7 +2427,7 @@ snapshots: '@types/json-schema@7.0.15': {} - '@types/node@22.19.1': + '@types/node@22.19.3': dependencies: undici-types: 6.21.0 @@ -2450,16 +2447,15 @@ snapshots: dependencies: csstype: 3.2.3 - '@typescript-eslint/eslint-plugin@8.48.1(@typescript-eslint/parser@8.48.1(eslint@9.39.1)(typescript@5.9.3))(eslint@9.39.1)(typescript@5.9.3)': + '@typescript-eslint/eslint-plugin@8.50.0(@typescript-eslint/parser@8.50.0(eslint@9.39.2)(typescript@5.9.3))(eslint@9.39.2)(typescript@5.9.3)': dependencies: '@eslint-community/regexpp': 4.12.2 - '@typescript-eslint/parser': 8.48.1(eslint@9.39.1)(typescript@5.9.3) - '@typescript-eslint/scope-manager': 8.48.1 - '@typescript-eslint/type-utils': 8.48.1(eslint@9.39.1)(typescript@5.9.3) - '@typescript-eslint/utils': 8.48.1(eslint@9.39.1)(typescript@5.9.3) - '@typescript-eslint/visitor-keys': 8.48.1 - eslint: 9.39.1 - graphemer: 1.4.0 + '@typescript-eslint/parser': 8.50.0(eslint@9.39.2)(typescript@5.9.3) + '@typescript-eslint/scope-manager': 8.50.0 + '@typescript-eslint/type-utils': 8.50.0(eslint@9.39.2)(typescript@5.9.3) + '@typescript-eslint/utils': 8.50.0(eslint@9.39.2)(typescript@5.9.3) + '@typescript-eslint/visitor-keys': 8.50.0 + eslint: 9.39.2 ignore: 7.0.5 natural-compare: 1.4.0 ts-api-utils: 2.1.0(typescript@5.9.3) @@ -2467,56 +2463,56 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/parser@8.48.1(eslint@9.39.1)(typescript@5.9.3)': + '@typescript-eslint/parser@8.50.0(eslint@9.39.2)(typescript@5.9.3)': dependencies: - '@typescript-eslint/scope-manager': 8.48.1 - '@typescript-eslint/types': 8.48.1 - '@typescript-eslint/typescript-estree': 8.48.1(typescript@5.9.3) - '@typescript-eslint/visitor-keys': 8.48.1 + '@typescript-eslint/scope-manager': 8.50.0 + '@typescript-eslint/types': 8.50.0 + '@typescript-eslint/typescript-estree': 8.50.0(typescript@5.9.3) + '@typescript-eslint/visitor-keys': 8.50.0 debug: 4.4.3 - eslint: 9.39.1 + eslint: 9.39.2 typescript: 5.9.3 transitivePeerDependencies: - supports-color - '@typescript-eslint/project-service@8.48.1(typescript@5.9.3)': + '@typescript-eslint/project-service@8.50.0(typescript@5.9.3)': dependencies: - '@typescript-eslint/tsconfig-utils': 8.48.1(typescript@5.9.3) - '@typescript-eslint/types': 8.48.1 + '@typescript-eslint/tsconfig-utils': 8.50.0(typescript@5.9.3) + '@typescript-eslint/types': 8.50.0 debug: 4.4.3 typescript: 5.9.3 transitivePeerDependencies: - supports-color - '@typescript-eslint/scope-manager@8.48.1': + '@typescript-eslint/scope-manager@8.50.0': dependencies: - '@typescript-eslint/types': 8.48.1 - '@typescript-eslint/visitor-keys': 8.48.1 + '@typescript-eslint/types': 8.50.0 + '@typescript-eslint/visitor-keys': 8.50.0 - '@typescript-eslint/tsconfig-utils@8.48.1(typescript@5.9.3)': + '@typescript-eslint/tsconfig-utils@8.50.0(typescript@5.9.3)': dependencies: typescript: 5.9.3 - '@typescript-eslint/type-utils@8.48.1(eslint@9.39.1)(typescript@5.9.3)': + '@typescript-eslint/type-utils@8.50.0(eslint@9.39.2)(typescript@5.9.3)': dependencies: - '@typescript-eslint/types': 8.48.1 - '@typescript-eslint/typescript-estree': 8.48.1(typescript@5.9.3) - '@typescript-eslint/utils': 8.48.1(eslint@9.39.1)(typescript@5.9.3) + '@typescript-eslint/types': 8.50.0 + '@typescript-eslint/typescript-estree': 8.50.0(typescript@5.9.3) + '@typescript-eslint/utils': 8.50.0(eslint@9.39.2)(typescript@5.9.3) debug: 4.4.3 - eslint: 9.39.1 + eslint: 9.39.2 ts-api-utils: 2.1.0(typescript@5.9.3) typescript: 5.9.3 transitivePeerDependencies: - supports-color - '@typescript-eslint/types@8.48.1': {} + '@typescript-eslint/types@8.50.0': {} - '@typescript-eslint/typescript-estree@8.48.1(typescript@5.9.3)': + '@typescript-eslint/typescript-estree@8.50.0(typescript@5.9.3)': dependencies: - '@typescript-eslint/project-service': 8.48.1(typescript@5.9.3) - '@typescript-eslint/tsconfig-utils': 8.48.1(typescript@5.9.3) - '@typescript-eslint/types': 8.48.1 - '@typescript-eslint/visitor-keys': 8.48.1 + '@typescript-eslint/project-service': 8.50.0(typescript@5.9.3) + '@typescript-eslint/tsconfig-utils': 8.50.0(typescript@5.9.3) + '@typescript-eslint/types': 8.50.0 + '@typescript-eslint/visitor-keys': 8.50.0 debug: 4.4.3 minimatch: 9.0.5 semver: 7.7.3 @@ -2526,23 +2522,23 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@8.48.1(eslint@9.39.1)(typescript@5.9.3)': + '@typescript-eslint/utils@8.50.0(eslint@9.39.2)(typescript@5.9.3)': dependencies: - '@eslint-community/eslint-utils': 4.9.0(eslint@9.39.1) - '@typescript-eslint/scope-manager': 8.48.1 - '@typescript-eslint/types': 8.48.1 - '@typescript-eslint/typescript-estree': 8.48.1(typescript@5.9.3) - eslint: 9.39.1 + '@eslint-community/eslint-utils': 4.9.0(eslint@9.39.2) + '@typescript-eslint/scope-manager': 8.50.0 + '@typescript-eslint/types': 8.50.0 + '@typescript-eslint/typescript-estree': 8.50.0(typescript@5.9.3) + eslint: 9.39.2 typescript: 5.9.3 transitivePeerDependencies: - supports-color - '@typescript-eslint/visitor-keys@8.48.1': + '@typescript-eslint/visitor-keys@8.50.0': dependencies: - '@typescript-eslint/types': 8.48.1 + '@typescript-eslint/types': 8.50.0 eslint-visitor-keys: 4.2.1 - '@vitejs/plugin-react@5.1.2(vite@7.2.7(@types/node@22.19.1))': + '@vitejs/plugin-react@5.1.2(vite@7.3.0(@types/node@22.19.3))': dependencies: '@babel/core': 7.28.5 '@babel/plugin-transform-react-jsx-self': 7.27.1(@babel/core@7.28.5) @@ -2550,7 +2546,7 @@ snapshots: '@rolldown/pluginutils': 1.0.0-beta.53 '@types/babel__core': 7.20.5 react-refresh: 0.18.0 - vite: 7.2.7(@types/node@22.19.1) + vite: 7.3.0(@types/node@22.19.3) transitivePeerDependencies: - supports-color @@ -2583,7 +2579,7 @@ snapshots: call-bind: 1.0.8 call-bound: 1.0.4 define-properties: 1.2.1 - es-abstract: 1.24.0 + es-abstract: 1.24.1 es-object-atoms: 1.1.1 get-intrinsic: 1.3.0 is-string: 1.1.1 @@ -2593,7 +2589,7 @@ snapshots: dependencies: call-bind: 1.0.8 define-properties: 1.2.1 - es-abstract: 1.24.0 + es-abstract: 1.24.1 es-errors: 1.3.0 es-object-atoms: 1.1.1 es-shim-unscopables: 1.1.0 @@ -2602,21 +2598,21 @@ snapshots: dependencies: call-bind: 1.0.8 define-properties: 1.2.1 - es-abstract: 1.24.0 + es-abstract: 1.24.1 es-shim-unscopables: 1.1.0 array.prototype.flatmap@1.3.3: dependencies: call-bind: 1.0.8 define-properties: 1.2.1 - es-abstract: 1.24.0 + es-abstract: 1.24.1 es-shim-unscopables: 1.1.0 array.prototype.tosorted@1.1.4: dependencies: call-bind: 1.0.8 define-properties: 1.2.1 - es-abstract: 1.24.0 + es-abstract: 1.24.1 es-errors: 1.3.0 es-shim-unscopables: 1.1.0 @@ -2625,7 +2621,7 @@ snapshots: array-buffer-byte-length: 1.0.2 call-bind: 1.0.8 define-properties: 1.2.1 - es-abstract: 1.24.0 + es-abstract: 1.24.1 es-errors: 1.3.0 get-intrinsic: 1.3.0 is-array-buffer: 3.0.5 @@ -2644,7 +2640,7 @@ snapshots: balanced-match@1.0.2: {} - baseline-browser-mapping@2.9.4: {} + baseline-browser-mapping@2.9.11: {} brace-expansion@1.1.12: dependencies: @@ -2657,11 +2653,11 @@ snapshots: browserslist@4.28.1: dependencies: - baseline-browser-mapping: 2.9.4 - caniuse-lite: 1.0.30001759 - electron-to-chromium: 1.5.266 + baseline-browser-mapping: 2.9.11 + caniuse-lite: 1.0.30001761 + electron-to-chromium: 1.5.267 node-releases: 2.0.27 - update-browserslist-db: 1.2.2(browserslist@4.28.1) + update-browserslist-db: 1.2.3(browserslist@4.28.1) call-bind-apply-helpers@1.0.2: dependencies: @@ -2682,7 +2678,7 @@ snapshots: callsites@3.1.0: {} - caniuse-lite@1.0.30001759: {} + caniuse-lite@1.0.30001761: {} chalk@4.1.2: dependencies: @@ -2770,13 +2766,13 @@ snapshots: es-errors: 1.3.0 gopd: 1.2.0 - electron-to-chromium@1.5.266: {} + electron-to-chromium@1.5.267: {} error-ex@1.3.4: dependencies: is-arrayish: 0.2.1 - es-abstract@1.24.0: + es-abstract@1.24.1: dependencies: array-buffer-byte-length: 1.0.2 arraybuffer.prototype.slice: 1.0.4 @@ -2837,12 +2833,12 @@ snapshots: es-errors@1.3.0: {} - es-iterator-helpers@1.2.1: + es-iterator-helpers@1.2.2: dependencies: call-bind: 1.0.8 call-bound: 1.0.4 define-properties: 1.2.1 - es-abstract: 1.24.0 + es-abstract: 1.24.1 es-errors: 1.3.0 es-set-tostringtag: 2.1.0 function-bind: 1.1.2 @@ -2877,63 +2873,63 @@ snapshots: is-date-object: 1.1.0 is-symbol: 1.1.1 - esbuild@0.25.12: + esbuild@0.27.2: optionalDependencies: - '@esbuild/aix-ppc64': 0.25.12 - '@esbuild/android-arm': 0.25.12 - '@esbuild/android-arm64': 0.25.12 - '@esbuild/android-x64': 0.25.12 - '@esbuild/darwin-arm64': 0.25.12 - '@esbuild/darwin-x64': 0.25.12 - '@esbuild/freebsd-arm64': 0.25.12 - '@esbuild/freebsd-x64': 0.25.12 - '@esbuild/linux-arm': 0.25.12 - '@esbuild/linux-arm64': 0.25.12 - '@esbuild/linux-ia32': 0.25.12 - '@esbuild/linux-loong64': 0.25.12 - '@esbuild/linux-mips64el': 0.25.12 - '@esbuild/linux-ppc64': 0.25.12 - '@esbuild/linux-riscv64': 0.25.12 - '@esbuild/linux-s390x': 0.25.12 - '@esbuild/linux-x64': 0.25.12 - '@esbuild/netbsd-arm64': 0.25.12 - '@esbuild/netbsd-x64': 0.25.12 - '@esbuild/openbsd-arm64': 0.25.12 - '@esbuild/openbsd-x64': 0.25.12 - '@esbuild/openharmony-arm64': 0.25.12 - '@esbuild/sunos-x64': 0.25.12 - '@esbuild/win32-arm64': 0.25.12 - '@esbuild/win32-ia32': 0.25.12 - '@esbuild/win32-x64': 0.25.12 + '@esbuild/aix-ppc64': 0.27.2 + '@esbuild/android-arm': 0.27.2 + '@esbuild/android-arm64': 0.27.2 + '@esbuild/android-x64': 0.27.2 + '@esbuild/darwin-arm64': 0.27.2 + '@esbuild/darwin-x64': 0.27.2 + '@esbuild/freebsd-arm64': 0.27.2 + '@esbuild/freebsd-x64': 0.27.2 + '@esbuild/linux-arm': 0.27.2 + '@esbuild/linux-arm64': 0.27.2 + '@esbuild/linux-ia32': 0.27.2 + '@esbuild/linux-loong64': 0.27.2 + '@esbuild/linux-mips64el': 0.27.2 + '@esbuild/linux-ppc64': 0.27.2 + '@esbuild/linux-riscv64': 0.27.2 + '@esbuild/linux-s390x': 0.27.2 + '@esbuild/linux-x64': 0.27.2 + '@esbuild/netbsd-arm64': 0.27.2 + '@esbuild/netbsd-x64': 0.27.2 + '@esbuild/openbsd-arm64': 0.27.2 + '@esbuild/openbsd-x64': 0.27.2 + '@esbuild/openharmony-arm64': 0.27.2 + '@esbuild/sunos-x64': 0.27.2 + '@esbuild/win32-arm64': 0.27.2 + '@esbuild/win32-ia32': 0.27.2 + '@esbuild/win32-x64': 0.27.2 escalade@3.2.0: {} escape-string-regexp@4.0.0: {} - eslint-config-prettier@10.1.8(eslint@9.39.1): + eslint-config-prettier@10.1.8(eslint@9.39.2): dependencies: - eslint: 9.39.1 + eslint: 9.39.2 - eslint-plugin-react-hooks@7.0.1(eslint@9.39.1): + eslint-plugin-react-hooks@7.0.1(eslint@9.39.2): dependencies: '@babel/core': 7.28.5 '@babel/parser': 7.28.5 - eslint: 9.39.1 + eslint: 9.39.2 hermes-parser: 0.25.1 - zod: 4.1.13 - zod-validation-error: 4.0.2(zod@4.1.13) + zod: 4.2.1 + zod-validation-error: 4.0.2(zod@4.2.1) transitivePeerDependencies: - supports-color - eslint-plugin-react@7.37.5(eslint@9.39.1): + eslint-plugin-react@7.37.5(eslint@9.39.2): dependencies: array-includes: 3.1.9 array.prototype.findlast: 1.2.5 array.prototype.flatmap: 1.3.3 array.prototype.tosorted: 1.1.4 doctrine: 2.1.0 - es-iterator-helpers: 1.2.1 - eslint: 9.39.1 + es-iterator-helpers: 1.2.2 + eslint: 9.39.2 estraverse: 5.3.0 hasown: 2.0.2 jsx-ast-utils: 3.3.5 @@ -2956,15 +2952,15 @@ snapshots: eslint-visitor-keys@4.2.1: {} - eslint@9.39.1: + eslint@9.39.2: dependencies: - '@eslint-community/eslint-utils': 4.9.0(eslint@9.39.1) + '@eslint-community/eslint-utils': 4.9.0(eslint@9.39.2) '@eslint-community/regexpp': 4.12.2 '@eslint/config-array': 0.21.1 '@eslint/config-helpers': 0.4.2 '@eslint/core': 0.17.0 '@eslint/eslintrc': 3.3.3 - '@eslint/js': 9.39.1 + '@eslint/js': 9.39.2 '@eslint/plugin-kit': 0.4.1 '@humanfs/node': 0.16.7 '@humanwhocodes/module-importer': 1.0.1 @@ -3102,8 +3098,6 @@ snapshots: gopd@1.2.0: {} - graphemer@1.4.0: {} - has-bigints@1.1.0: {} has-flag@4.0.0: {} @@ -3368,7 +3362,7 @@ snapshots: dependencies: call-bind: 1.0.8 define-properties: 1.2.1 - es-abstract: 1.24.0 + es-abstract: 1.24.1 es-object-atoms: 1.1.1 object.values@1.2.1: @@ -3444,33 +3438,33 @@ snapshots: punycode@2.3.1: {} - react-dom@19.2.1(react@19.2.1): + react-dom@19.2.3(react@19.2.3): dependencies: - react: 19.2.1 + react: 19.2.3 scheduler: 0.27.0 react-is@16.13.1: {} - react-is@19.2.1: {} + react-is@19.2.3: {} react-refresh@0.18.0: {} - react-transition-group@4.4.5(react-dom@19.2.1(react@19.2.1))(react@19.2.1): + react-transition-group@4.4.5(react-dom@19.2.3(react@19.2.3))(react@19.2.3): dependencies: '@babel/runtime': 7.28.4 dom-helpers: 5.2.1 loose-envify: 1.4.0 prop-types: 15.8.1 - react: 19.2.1 - react-dom: 19.2.1(react@19.2.1) + react: 19.2.3 + react-dom: 19.2.3(react@19.2.3) - react@19.2.1: {} + react@19.2.3: {} reflect.getprototypeof@1.0.10: dependencies: call-bind: 1.0.8 define-properties: 1.2.1 - es-abstract: 1.24.0 + es-abstract: 1.24.1 es-errors: 1.3.0 es-object-atoms: 1.1.1 get-intrinsic: 1.3.0 @@ -3500,32 +3494,32 @@ snapshots: path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 - rollup@4.53.3: + rollup@4.54.0: dependencies: '@types/estree': 1.0.8 optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.53.3 - '@rollup/rollup-android-arm64': 4.53.3 - '@rollup/rollup-darwin-arm64': 4.53.3 - '@rollup/rollup-darwin-x64': 4.53.3 - '@rollup/rollup-freebsd-arm64': 4.53.3 - '@rollup/rollup-freebsd-x64': 4.53.3 - '@rollup/rollup-linux-arm-gnueabihf': 4.53.3 - '@rollup/rollup-linux-arm-musleabihf': 4.53.3 - '@rollup/rollup-linux-arm64-gnu': 4.53.3 - '@rollup/rollup-linux-arm64-musl': 4.53.3 - '@rollup/rollup-linux-loong64-gnu': 4.53.3 - '@rollup/rollup-linux-ppc64-gnu': 4.53.3 - '@rollup/rollup-linux-riscv64-gnu': 4.53.3 - '@rollup/rollup-linux-riscv64-musl': 4.53.3 - '@rollup/rollup-linux-s390x-gnu': 4.53.3 - '@rollup/rollup-linux-x64-gnu': 4.53.3 - '@rollup/rollup-linux-x64-musl': 4.53.3 - '@rollup/rollup-openharmony-arm64': 4.53.3 - '@rollup/rollup-win32-arm64-msvc': 4.53.3 - '@rollup/rollup-win32-ia32-msvc': 4.53.3 - '@rollup/rollup-win32-x64-gnu': 4.53.3 - '@rollup/rollup-win32-x64-msvc': 4.53.3 + '@rollup/rollup-android-arm-eabi': 4.54.0 + '@rollup/rollup-android-arm64': 4.54.0 + '@rollup/rollup-darwin-arm64': 4.54.0 + '@rollup/rollup-darwin-x64': 4.54.0 + '@rollup/rollup-freebsd-arm64': 4.54.0 + '@rollup/rollup-freebsd-x64': 4.54.0 + '@rollup/rollup-linux-arm-gnueabihf': 4.54.0 + '@rollup/rollup-linux-arm-musleabihf': 4.54.0 + '@rollup/rollup-linux-arm64-gnu': 4.54.0 + '@rollup/rollup-linux-arm64-musl': 4.54.0 + '@rollup/rollup-linux-loong64-gnu': 4.54.0 + '@rollup/rollup-linux-ppc64-gnu': 4.54.0 + '@rollup/rollup-linux-riscv64-gnu': 4.54.0 + '@rollup/rollup-linux-riscv64-musl': 4.54.0 + '@rollup/rollup-linux-s390x-gnu': 4.54.0 + '@rollup/rollup-linux-x64-gnu': 4.54.0 + '@rollup/rollup-linux-x64-musl': 4.54.0 + '@rollup/rollup-openharmony-arm64': 4.54.0 + '@rollup/rollup-win32-arm64-msvc': 4.54.0 + '@rollup/rollup-win32-ia32-msvc': 4.54.0 + '@rollup/rollup-win32-x64-gnu': 4.54.0 + '@rollup/rollup-win32-x64-msvc': 4.54.0 fsevents: 2.3.3 safe-array-concat@1.1.3: @@ -3623,7 +3617,7 @@ snapshots: call-bind: 1.0.8 call-bound: 1.0.4 define-properties: 1.2.1 - es-abstract: 1.24.0 + es-abstract: 1.24.1 es-errors: 1.3.0 es-object-atoms: 1.1.1 get-intrinsic: 1.3.0 @@ -3637,7 +3631,7 @@ snapshots: string.prototype.repeat@1.0.0: dependencies: define-properties: 1.2.1 - es-abstract: 1.24.0 + es-abstract: 1.24.1 string.prototype.trim@1.2.10: dependencies: @@ -3645,7 +3639,7 @@ snapshots: call-bound: 1.0.4 define-data-property: 1.1.4 define-properties: 1.2.1 - es-abstract: 1.24.0 + es-abstract: 1.24.1 es-object-atoms: 1.1.1 has-property-descriptors: 1.0.2 @@ -3729,7 +3723,7 @@ snapshots: undici-types@6.21.0: {} - update-browserslist-db@1.2.2(browserslist@4.28.1): + update-browserslist-db@1.2.3(browserslist@4.28.1): dependencies: browserslist: 4.28.1 escalade: 3.2.0 @@ -3739,16 +3733,16 @@ snapshots: dependencies: punycode: 2.3.1 - vite@7.2.7(@types/node@22.19.1): + vite@7.3.0(@types/node@22.19.3): dependencies: - esbuild: 0.25.12 + esbuild: 0.27.2 fdir: 6.5.0(picomatch@4.0.3) picomatch: 4.0.3 postcss: 8.5.6 - rollup: 4.53.3 + rollup: 4.54.0 tinyglobby: 0.2.15 optionalDependencies: - '@types/node': 22.19.1 + '@types/node': 22.19.3 fsevents: 2.3.3 which-boxed-primitive@1.1.1: @@ -3804,8 +3798,8 @@ snapshots: yocto-queue@0.1.0: {} - zod-validation-error@4.0.2(zod@4.1.13): + zod-validation-error@4.0.2(zod@4.2.1): dependencies: - zod: 4.1.13 + zod: 4.2.1 - zod@4.1.13: {} + zod@4.2.1: {} diff --git a/apps/gpservice/src/vpn_task.rs b/apps/gpservice/src/vpn_task.rs index 4ca8406..515a15c 100644 --- a/apps/gpservice/src/vpn_task.rs +++ b/apps/gpservice/src/vpn_task.rs @@ -42,6 +42,7 @@ impl VpnTaskContext { .script(args.vpnc_script()) .user_agent(args.user_agent()) .os(args.openconnect_os()) + .os_version(args.os_version()) .client_version(args.client_version()) .certificate(args.certificate()) .sslkey(args.sslkey()) diff --git a/crates/common/src/constants.rs b/crates/common/src/constants.rs index 28958e3..99d4177 100644 --- a/crates/common/src/constants.rs +++ b/crates/common/src/constants.rs @@ -1,4 +1,5 @@ pub const GP_USER_AGENT: &str = "PAN GlobalProtect"; +pub const GP_CLIENT_VERSION: &str = "6.3.0-33"; pub const GP_SERVICE_LOCK_FILE: &str = "/var/run/gpservice.lock"; pub const GP_CALLBACK_PORT_FILENAME: &str = "gpcallback.port"; diff --git a/crates/gpapi/Cargo.toml b/crates/gpapi/Cargo.toml index 87d4fc6..47fe0e3 100644 --- a/crates/gpapi/Cargo.toml +++ b/crates/gpapi/Cargo.toml @@ -15,7 +15,7 @@ reqwest.workspace = true openssl.workspace = true version-compare = "0.2" pem.workspace = true -roxmltree.workspace = true +xmltree.workspace = true serde.workspace = true specta = { workspace = true, features = ["derive"] } urlencoding.workspace = true @@ -32,7 +32,10 @@ uzers.workspace = true serde_urlencoded.workspace = true md5.workspace = true sha256.workspace = true +machine-uid.workspace = true +uuid = { workspace = true, features = ["v5"] } +# Optional dependencies for features tauri = { workspace = true, optional = true } clap = { workspace = true, optional = true } clap-verbosity-flag = { workspace = true, optional = true } @@ -40,6 +43,11 @@ clap-verbosity-flag = { workspace = true, optional = true } env_logger = { workspace = true, optional = true } log-reload = { version = "0.1", optional = true } +# Dependencies for macOS and Windows only +[target.'cfg(any(target_os="macos", target_os="windows"))'.dependencies] +os_info = { version = "3", default-features = false } + +# Dependencies for Linux and other OSes only [target.'cfg(not(any(target_os="macos", target_os="windows")))'.dependencies] gtk = "0.18" diff --git a/crates/gpapi/src/gateway/hip.rs b/crates/gpapi/src/gateway/hip.rs index 1620002..652b103 100644 --- a/crates/gpapi/src/gateway/hip.rs +++ b/crates/gpapi/src/gateway/hip.rs @@ -2,9 +2,13 @@ use std::collections::HashMap; use log::{info, warn}; use reqwest::Client; -use roxmltree::Document; +use xmltree::Element; -use crate::{gp_params::GpParams, process::hip_launcher::HipLauncher, utils::normalize_server}; +use crate::{ + gp_params::GpParams, + process::hip_launcher::HipLauncher, + utils::{normalize_server, xml::ElementExt}, +}; struct HipReporter<'a> { server: String, @@ -65,13 +69,11 @@ impl HipReporter<'_> { let res = self.client.post(&config_url).form(¶ms).send().await?; let res_xml = res.error_for_status()?.text().await?; - let doc = Document::parse(&res_xml)?; + let root = Element::parse(res_xml.as_bytes())?; // Get - let ip = doc - .descendants() - .find(|n| n.has_tag_name("ip-address")) - .and_then(|n| n.text()) + let ip = root + .descendant_text("ip-address") .ok_or_else(|| anyhow::anyhow!("ip-address not found"))?; Ok(ip.to_string()) @@ -122,12 +124,9 @@ impl HipReporter<'_> { } fn is_hip_needed(res_xml: &str) -> anyhow::Result { - let doc = Document::parse(res_xml)?; - - let hip_needed = doc - .descendants() - .find(|n| n.has_tag_name("hip-report-needed")) - .and_then(|n| n.text()) + let root = Element::parse(res_xml.as_bytes())?; + let hip_needed = root + .descendant_text("hip-report-needed") .ok_or_else(|| anyhow::anyhow!("hip-report-needed not found"))?; Ok(hip_needed == "yes") diff --git a/crates/gpapi/src/gateway/login.rs b/crates/gpapi/src/gateway/login.rs index a0f7854..6fd7e19 100644 --- a/crates/gpapi/src/gateway/login.rs +++ b/crates/gpapi/src/gateway/login.rs @@ -1,14 +1,16 @@ +use std::borrow::Cow; + use anyhow::bail; -use log::{info, warn}; +use log::{debug, info, warn}; use reqwest::Client; -use roxmltree::Document; use urlencoding::encode; +use xmltree::Element; use crate::{ credential::Credential, error::PortalError, gp_params::GpParams, - utils::{normalize_server, parse_gp_response, remove_url_scheme}, + utils::{normalize_server, parse_gp_response, remove_url_scheme, xml::ElementExt}, }; pub enum GatewayLogin { @@ -50,18 +52,20 @@ pub async fn gateway_login(gateway: &str, cred: &Credential, gp_params: &GpParam return Ok(GatewayLogin::Mfa(message, input_str)); } - let doc = Document::parse(&res)?; + debug!("Gateway login response: {}", res); - let cookie = build_gateway_token(&doc, gp_params.computer())?; + let root = Element::parse(res.as_bytes())?; + + let cookie = build_gateway_token(&root, gp_params.computer())?; Ok(GatewayLogin::Cookie(cookie)) } -fn build_gateway_token(doc: &Document, computer: &str) -> anyhow::Result { - let args = doc - .descendants() - .filter(|n| n.has_tag_name("argument")) - .map(|n| n.text().unwrap_or("").to_string()) +fn build_gateway_token(element: &Element, computer: &str) -> anyhow::Result { + let args = element + .descendants("argument") + .iter() + .map(|e| e.get_text().unwrap_or_default()) .collect::>(); let params = [ @@ -82,7 +86,7 @@ fn build_gateway_token(doc: &Document, computer: &str) -> anyhow::Result Ok(token) } -fn read_args<'a>(args: &'a [String], index: usize, key: &'a str) -> anyhow::Result<(&'a str, &'a str)> { +fn read_args<'a>(args: &'a [Cow<'_, str>], index: usize, key: &'a str) -> anyhow::Result<(&'a str, &'a str)> { args .get(index) .ok_or_else(|| anyhow::anyhow!("Failed to read {key} from args")) diff --git a/crates/gpapi/src/gateway/parse_gateways.rs b/crates/gpapi/src/gateway/parse_gateways.rs index 9ed8d41..489b876 100644 --- a/crates/gpapi/src/gateway/parse_gateways.rs +++ b/crates/gpapi/src/gateway/parse_gateways.rs @@ -1,64 +1,64 @@ use log::info; -use roxmltree::Node; +use xmltree::Element; -use crate::utils::xml::NodeExt; +use crate::utils::xml::ElementExt; use super::{Gateway, PriorityRule}; -pub(crate) fn parse_gateways(node: &Node, prefer_internal: bool) -> Option> { - let node_gateways = node.find_descendant("gateways")?; +pub(crate) fn parse_gateways(element: &Element, prefer_internal: bool) -> Option> { + let node_gateways = element.descendant("gateways")?; let internal_gateway_list = if prefer_internal { info!("Try to parse the internal gateways..."); - node_gateways.find_descendant("internal").and_then(|n| n.find_child("list")) + node_gateways.descendant("internal").and_then(|n| n.child("list")) } else { None }; let gateway_list = internal_gateway_list.or_else(|| { info!("Try to parse the external gateways..."); - node_gateways.find_descendant("external").and_then(|n| n.find_child("list")) + node_gateways.descendant("external").and_then(|n| n.child("list")) })?; let gateways = gateway_list - .children() - .filter_map(|gateway_item| { - if !gateway_item.has_tag_name("entry") { - return None; - } - let address = gateway_item.attribute("name").unwrap_or_default().to_string(); - let name = gateway_item.child_text("description").unwrap_or_default().to_string(); - let priority = gateway_item - .child_text("priority") - .and_then(|s| s.parse().ok()) - .unwrap_or(u32::MAX); + .children("entry") + .iter() + .map(|gateway_item| { + let address = gateway_item.attr("name").map(|s| s.to_string()).unwrap_or_default(); + let name = gateway_item.child_text("description").unwrap_or_default(); + let priority = parse_priority(gateway_item); let priority_rules = gateway_item - .find_child("priority-rule") - .map(|n| { - n.children() - .filter_map(|n| { - if !n.has_tag_name("entry") { - return None; - } - let name = n.attribute("name").unwrap_or_default().to_string(); - let priority: u32 = n - .child_text("priority") - .and_then(|s| s.parse().ok()) - .unwrap_or(u32::MAX); - - Some(PriorityRule { name, priority }) - }) - .collect() - }) + .child("priority-rule") + .map(|n| parse_priority_rules(n)) .unwrap_or_default(); - Some(Gateway { + Gateway { name, address, priority, priority_rules, - }) + } }) .collect(); Some(gateways) } + +fn parse_priority_rules(element: &Element) -> Vec { + element + .children("entry") + .iter() + .map(|n| { + let name = n.attr("name").map(|s| s.to_string()).unwrap_or_default(); + let priority: u32 = parse_priority(n); + + PriorityRule { name, priority } + }) + .collect() +} + +fn parse_priority(element: &Element) -> u32 { + element + .child_text("priority") + .and_then(|s| s.parse().ok()) + .unwrap_or(u32::MAX) +} diff --git a/crates/gpapi/src/portal/config.rs b/crates/gpapi/src/portal/config.rs index 33cf7dd..17389d3 100644 --- a/crates/gpapi/src/portal/config.rs +++ b/crates/gpapi/src/portal/config.rs @@ -2,16 +2,16 @@ use anyhow::bail; use dns_lookup::lookup_addr; use log::{debug, info, warn}; use reqwest::{Client, StatusCode}; -use roxmltree::{Document, Node}; use serde::Serialize; use specta::Type; +use xmltree::Element; use crate::{ credential::{AuthCookieCredential, Credential}, error::PortalError, gateway::{Gateway, parse_gateways}, gp_params::GpParams, - utils::{normalize_server, parse_gp_response, remove_url_scheme, xml::NodeExt}, + utils::{normalize_server, parse_gp_response, remove_url_scheme, xml::ElementExt}, }; #[derive(Debug, Serialize, Type)] @@ -142,12 +142,11 @@ pub async fn retrieve_config(portal: &str, cred: &Credential, gp_params: &GpPara } debug!("Portal config response: {}", res_xml); - let doc = Document::parse(&res_xml).map_err(|e| PortalError::ConfigError(e.to_string()))?; - let root = doc.root(); + let root = Element::parse(res_xml.as_bytes()).map_err(|e| PortalError::ConfigError(e.to_string()))?; let mut ihd_enabled = false; let mut prefer_internal = false; - if let Some(ihd_node) = root.find_descendant("internal-host-detection") { + if let Some(ihd_node) = root.descendant("internal-host-detection") { ihd_enabled = true; prefer_internal = internal_host_detect(&ihd_node) } @@ -172,7 +171,7 @@ pub async fn retrieve_config(portal: &str, cred: &Credential, gp_params: &GpPara Ok(PortalConfig { portal: server.to_string(), - auth_cookie: AuthCookieCredential::new(cred.username(), user_auth_cookie, prelogon_user_auth_cookie), + auth_cookie: AuthCookieCredential::new(cred.username(), &user_auth_cookie, &prelogon_user_auth_cookie), config_cred: cred.clone(), gateways, config_digest: config_digest.map(|s| s.to_string()), @@ -182,10 +181,10 @@ pub async fn retrieve_config(portal: &str, cred: &Credential, gp_params: &GpPara } // Perform DNS lookup and compare the result with the expected hostname -fn internal_host_detect(node: &Node) -> bool { +fn internal_host_detect(element: &Element) -> bool { let ip_info = [ - (node.child_text("ip-address"), node.child_text("host")), - (node.child_text("ipv6-address"), node.child_text("ipv6-host")), + (element.child_text("ip-address"), element.child_text("host")), + (element.child_text("ipv6-address"), element.child_text("ipv6-host")), ]; info!("Found internal-host-detection, performing DNS lookup"); diff --git a/crates/gpapi/src/portal/prelogin.rs b/crates/gpapi/src/portal/prelogin.rs index 9d52189..a4b9cf7 100644 --- a/crates/gpapi/src/portal/prelogin.rs +++ b/crates/gpapi/src/portal/prelogin.rs @@ -1,14 +1,14 @@ use anyhow::{anyhow, bail}; -use log::{info, warn}; +use log::{debug, info, warn}; use reqwest::{Client, StatusCode}; -use roxmltree::Document; use serde::Serialize; use specta::Type; +use xmltree::Element; use crate::{ error::PortalError, gp_params::GpParams, - utils::{base64, normalize_server, parse_gp_response, xml::NodeExt}, + utils::{base64, normalize_server, parse_gp_response, xml::ElementExt}, }; const REQUIRED_PARAMS: [&str; 8] = [ @@ -134,6 +134,8 @@ pub async fn prelogin(portal: &str, gp_params: &GpParams) -> anyhow::Result anyhow::Result anyhow::Result { - let doc = Document::parse(res_xml)?; - let root = doc.root(); + let root = Element::parse(res_xml.as_bytes())?; let status = root .descendant_text("status") .ok_or_else(|| anyhow::anyhow!("Prelogin response does not contain status element"))?; // Check the status of the prelogin response if status.to_uppercase() != "SUCCESS" { - let msg = root.descendant_text("msg").unwrap_or("Unknown error"); + let msg = root + .descendant_text("msg") + .unwrap_or_else(|| String::from("Unknown error")); bail!("{}", msg) } - let region = root - .descendant_text("region") - .unwrap_or_else(|| { - info!("Prelogin response does not contain region element"); - "Unknown" - }) - .to_string(); + let region = root.descendant_text("region").unwrap_or_else(|| { + info!("Prelogin response does not contain region element"); + String::from("Unknown") + }); let saml_method = root.descendant_text("saml-auth-method"); let saml_request = root.descendant_text("saml-request"); let saml_default_browser = root.descendant_text("saml-default-browser"); // Check if the prelogin response is SAML if saml_method.is_some() && saml_request.is_some() { - let saml_request = base64::decode_to_string(saml_request.unwrap())?; + let saml_request = base64::decode_to_string(&saml_request.unwrap())?; let support_default_browser = saml_default_browser.map(|s| s.to_lowercase() == "yes").unwrap_or(false); let saml_prelogin = SamlPrelogin { @@ -181,25 +181,18 @@ fn parse_res_xml(res_xml: &str, is_gateway: bool) -> anyhow::Result { return Ok(Prelogin::Saml(saml_prelogin)); } - let label_username = root - .descendant_text("username-label") - .unwrap_or_else(|| { - info!("Username label has no value, using default"); - "Username" - }) - .to_string(); - let label_password = root - .descendant_text("password-label") - .unwrap_or_else(|| { - info!("Password label has no value, using default"); - "Password" - }) - .to_string(); + let label_username = root.descendant_text("username-label").unwrap_or_else(|| { + info!("Username label has no value, using default"); + String::from("Username") + }); + let label_password = root.descendant_text("password-label").unwrap_or_else(|| { + info!("Password label has no value, using default"); + String::from("Password") + }); let auth_message = root .descendant_text("authentication-message") - .unwrap_or("Please enter the login credentials") - .to_string(); + .unwrap_or_else(|| String::from("Please enter the login credentials")); let standard_prelogin = StandardPrelogin { region, is_gateway, diff --git a/crates/gpapi/src/service/request.rs b/crates/gpapi/src/service/request.rs index 8dc14bb..49ef68f 100644 --- a/crates/gpapi/src/service/request.rs +++ b/crates/gpapi/src/service/request.rs @@ -34,6 +34,7 @@ pub struct ConnectArgs { user_agent: Option, os: Option, + os_version: Option, client_version: Option, certificate: Option, @@ -57,6 +58,7 @@ impl ConnectArgs { vpnc_script: None, user_agent: None, os: None, + os_version: None, client_version: None, certificate: None, sslkey: None, @@ -87,6 +89,10 @@ impl ConnectArgs { self.os.as_ref().map(|os| os.to_openconnect_os().to_string()) } + pub fn os_version(&self) -> Option { + self.os_version.clone() + } + pub fn client_version(&self) -> Option { self.client_version.clone() } @@ -176,6 +182,11 @@ impl ConnectRequest { self } + pub fn with_os_version>>(mut self, os_version: T) -> Self { + self.args.os_version = os_version.into(); + self + } + pub fn with_client_version(mut self, client_version: &str) -> Self { self.args.client_version = Some(client_version.to_string()); self diff --git a/crates/gpapi/src/utils/host_utils.rs b/crates/gpapi/src/utils/host_utils.rs new file mode 100644 index 0000000..b7f982a --- /dev/null +++ b/crates/gpapi/src/utils/host_utils.rs @@ -0,0 +1,108 @@ +use std::sync::OnceLock; + +const DEFAULT_MACOS_VERSION: &str = "13.4.0"; +#[cfg(not(target_os = "linux"))] +const DEFAULT_LINUX_DISTRO: &str = "Ubuntu 24.04.3 LTS"; +#[cfg(not(target_os = "windows"))] +const DEFAULT_WINDOWS_DISTRO: &str = "Windows 11 Pro"; +const DEFAULT_WINDOWS_VERSION: &str = "10.0.22631.0"; +const DEFAULT_MACHINE_ID: &str = "DEADBEEF-DEAD-BEEF-DEAD-BEEFDEADBEEF"; + +static MACHINE_ID: OnceLock<&'static str> = OnceLock::new(); +static MACOS_VERSION: OnceLock<&'static str> = OnceLock::new(); +static MACOS_OS_STRING: OnceLock = OnceLock::new(); +static LINUX_OS_STRING: OnceLock = OnceLock::new(); +static WINDOWS_VERSION: OnceLock<&'static str> = OnceLock::new(); +static WINDOWS_OS_STRING: OnceLock = OnceLock::new(); + +/// On macOS, get the OS version, or fallback to default +/// On other OSes, always return default +pub fn get_macos_version() -> &'static str { + MACOS_VERSION.get_or_init(|| { + #[cfg(target_os = "macos")] + { + match os_info::get().version() { + os_info::Version::Unknown => DEFAULT_MACOS_VERSION, + v => v.to_string().leak(), + } + } + + #[cfg(not(target_os = "macos"))] + DEFAULT_MACOS_VERSION + }) +} + +pub fn get_macos_os_string() -> &'static str { + MACOS_OS_STRING.get_or_init(|| format!("Apple Mac OS X {}", get_macos_version())) +} + +/// On Linux, use the real distro name if possible +/// On other OSes, fallback to default +pub fn get_linux_os_string() -> &'static str { + LINUX_OS_STRING.get_or_init(|| { + #[cfg(target_os = "linux")] + { + format!("Linux {}", whoami::distro()) + } + #[cfg(not(target_os = "linux"))] + { + format!("Linux {}", DEFAULT_LINUX_DISTRO) + } + }) +} + +/// On Windows, get the OS version, or fallback to default +/// On other OSes, always return default +pub fn get_windows_version() -> &'static str { + WINDOWS_VERSION.get_or_init(|| { + #[cfg(target_os = "windows")] + { + match os_info::get().version() { + os_info::Version::Unknown => DEFAULT_WINDOWS_VERSION, + v => format!("{}.0", v).leak(), + } + } + #[cfg(not(target_os = "windows"))] + DEFAULT_WINDOWS_VERSION + }) +} + +/// On Windows, use the real edition if possible +/// On other OSes, fallback to default +/// The trailing space is intentional +pub fn get_windows_os_string() -> &'static str { + WINDOWS_OS_STRING.get_or_init(|| { + #[cfg(target_os = "windows")] + { + let edition = os_info::get() + .edition() + .map(|e| e.to_string()) + .unwrap_or_else(|| whoami::distro()); + format!("Microsoft {} , 64-bit", edition) + } + #[cfg(not(target_os = "windows"))] + { + format!("Microsoft {} , 64-bit", DEFAULT_WINDOWS_DISTRO) + } + }) +} + +/// Get machine ID or fallback to default +pub fn get_machine_id() -> &'static str { + MACHINE_ID.get_or_init(|| { + machine_uid::get() + .map(|id| id.to_string().leak() as &'static str) + .unwrap_or(DEFAULT_MACHINE_ID) + }) +} + +/// Generate a UUID v5 based on machine ID and provided seeds +pub fn derive_uuid(seeds: &[&str]) -> String { + use uuid::Uuid; + + let namespace = Uuid::NAMESPACE_DNS; + let name = format!("{}-{}", get_machine_id(), seeds.join("-")); + + let uuid = Uuid::new_v5(&namespace, name.as_bytes()); + uuid.hyphenated().to_string() +} diff --git a/crates/gpapi/src/utils/mod.rs b/crates/gpapi/src/utils/mod.rs index 7907512..2b46e94 100644 --- a/crates/gpapi/src/utils/mod.rs +++ b/crates/gpapi/src/utils/mod.rs @@ -5,6 +5,7 @@ pub mod checksum; pub mod crypto; pub mod endpoint; pub mod env_utils; +pub mod host_utils; pub mod lock_file; pub mod openssl; pub mod redact; diff --git a/crates/gpapi/src/utils/xml.rs b/crates/gpapi/src/utils/xml.rs index 2885130..363d859 100644 --- a/crates/gpapi/src/utils/xml.rs +++ b/crates/gpapi/src/utils/xml.rs @@ -1,27 +1,87 @@ -use roxmltree::Node; +use xmltree::Element; -pub(crate) trait NodeExt<'a> { - fn find_descendant(&self, name: &str) -> Option>; - fn descendant_text(&self, name: &str) -> Option<&'a str>; +pub(crate) trait ElementExt { + /// Recursively find all descendants with the given name + fn descendants(&self, name: &str) -> Vec<&Element>; - fn find_child(&self, name: &str) -> Option>; - fn child_text(&self, name: &str) -> Option<&'a str>; + /// Recursively find the first descendant with the given name + fn descendant(&self, name: &str) -> Option<&Element>; + + /// Recursively find the text of the first descendant with the given name + fn descendant_text(&self, name: &str) -> Option; + + /// Find the first child with the given name + fn child(&self, name: &str) -> Option<&Element>; + + /// Find the text of the first child with the given name + fn child_text(&self, name: &str) -> Option; + + /// Get the direct child element with the given name + fn children(&self, name: &str) -> Vec<&Element>; + + /// Get the attribute value by name + fn attr(&self, name: &str) -> Option<&str>; } -impl<'a> NodeExt<'a> for Node<'a, 'a> { - fn find_descendant(&self, name: &str) -> Option> { - self.descendants().find(|n| n.has_tag_name(name)) +impl ElementExt for Element { + fn descendants(&self, name: &str) -> Vec<&Element> { + let mut results = Vec::new(); + + if self.name == name { + results.push(self); + } + + for child in &self.children { + if let Some(element) = child.as_element() { + results.extend(element.descendants(name)); + } + } + + results } - fn descendant_text(&self, name: &str) -> Option<&'a str> { - self.find_descendant(name).and_then(|node| node.text()) + fn descendant(&self, name: &str) -> Option<&Element> { + if self.name == name { + return Some(self); + } + + for child in &self.children { + if let Some(element) = child.as_element() { + if let Some(found) = element.descendant(name) { + return Some(found); + } + } + } + + None } - fn find_child(&self, name: &str) -> Option> { - self.children().find(|n| n.has_tag_name(name)) + fn descendant_text(&self, name: &str) -> Option { + self + .descendant(name) + .and_then(|element| element.get_text().map(|s| s.to_string())) } - fn child_text(&self, name: &str) -> Option<&'a str> { - self.find_child(name).and_then(|node| node.text()) + fn child(&self, name: &str) -> Option<&Element> { + self.get_child(name) + } + + fn child_text(&self, name: &str) -> Option { + self + .get_child(name) + .and_then(|element| element.get_text().map(|s| s.to_string())) + } + + fn children(&self, name: &str) -> Vec<&Element> { + self + .children + .iter() + .filter_map(|child| child.as_element()) + .filter(|element| element.name == name) + .collect() + } + + fn attr(&self, name: &str) -> Option<&str> { + self.attributes.get(name).map(|s| s.as_str()) } } diff --git a/crates/openconnect/build.rs b/crates/openconnect/build.rs index fc7a71c..346edd0 100644 --- a/crates/openconnect/build.rs +++ b/crates/openconnect/build.rs @@ -1,18 +1,103 @@ use std::{env, path::PathBuf, process::Command}; -fn main() { - let manifest_dir = env::var("CARGO_MANIFEST_DIR").unwrap(); - let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap()); - let deps_dir = PathBuf::from(&manifest_dir).join("../../deps"); +fn apply_patches(patches_dir: &PathBuf, build_src: &PathBuf) { + let patches = std::fs::read_dir(patches_dir) + .expect("Failed to read patches directory") + .filter_map(|entry| entry.ok()) + .filter(|entry| entry.path().extension().and_then(|s| s.to_str()) == Some("patch")) + .map(|entry| entry.path()) + .collect::>(); + + // Sort patches to ensure they are applied in order + let mut patches = patches; + patches.sort(); + + for patch in patches { + println!("cargo:rerun-if-changed={}", patch.display()); + println!("Applying patch: {}", patch.display()); + + let status = Command::new("patch") + .arg("-p1") // Strip one level of path (standard for git diffs) + .arg("-i") // Input file + .arg(&patch) + .current_dir(build_src) // Run INSIDE the copied dir + .status() + .expect("Failed to execute patch command"); + + if !status.success() { + panic!("Failed to apply patch file: {}", patch.display()); + } + } +} + +fn build_libxml2(deps_dir: &PathBuf, out_dir: &PathBuf) -> PathBuf { + let libxml2_dir = deps_dir.join("libxml2"); + + // The temporary location where we will build + let build_src = out_dir.join("libxml2_build"); + + // Track changes so cargo rebuilds if submodule changes + println!("cargo:rerun-if-changed={}", libxml2_dir.display()); + + // Prepare the build directory + // If the directory exists from a previous run, remove it to ensure a clean slate + if build_src.exists() { + std::fs::remove_dir_all(&build_src).unwrap(); + } + std::fs::create_dir_all(&build_src).unwrap(); + + // Copy the source code to OUT_DIR + // We use fs_extra options to copy contents recursively + let mut options = fs_extra::dir::CopyOptions::new(); + options.overwrite = true; + options.content_only = true; // Copy content of src into dest, not src folder itself + + fs_extra::dir::copy(&libxml2_dir, &build_src, &options).expect("Failed to copy C source code to OUT_DIR"); + + // Build the libxml2 library using autotools + let dst = autotools::Config::new(&build_src) + .reconf("-ivf") + .enable_static() + .disable_shared() + // Disable optional features that complicate static builds + .with("python", Some("no")) + .with("icu", Some("no")) + .with("http", Some("no")) + .with("ftp", Some("no")) + .with("catalog", Some("no")) + .with("docbook", Some("no")) + .with("legacy", Some("no")) + .with("threads", Some("no")) + .with("zlib", Some("no")) + .with("lzma", Some("no")) + // Ensure position-independent code (safe for static linking) + .cflag("-fPIC") + .build(); + + let lib_dir = dst.join("lib"); + let include_dir = dst.join("include/libxml2"); + + // Tell rustc where to find the static library + println!("cargo:rustc-link-search=native={}", lib_dir.display()); + + // Static linking of libxml2 + println!("cargo:rustc-link-lib=static=xml2"); + + // Export include path for downstream use (bindgen / cc) + println!("cargo:include={}", include_dir.display()); + + dst +} + +fn build_openconnect(deps_dir: &PathBuf, out_dir: &PathBuf) -> PathBuf { let openconnect_dir = deps_dir.join("openconnect"); - let gp_version_patch = deps_dir.join("patches/openconnect-gp-version.patch"); + let patches_dir = deps_dir.join("patches"); // The temporary location where we will build let build_src = out_dir.join("openconnect_build"); // Track changes so cargo rebuilds if patch or submodule changes println!("cargo:rerun-if-changed={}", openconnect_dir.display()); - println!("cargo:rerun-if-changed={}", gp_version_patch.display()); // Prepare the build directory // If the directory exists from a previous run, remove it to ensure a clean slate @@ -29,19 +114,8 @@ fn main() { fs_extra::dir::copy(&openconnect_dir, &build_src, &options).expect("Failed to copy C source code to OUT_DIR"); - // Apply the Patch - // We use the system `patch` command. - let status = Command::new("patch") - .arg("-p1") // Strip one level of path (standard for git diffs) - .arg("-i") // Input file - .arg(&gp_version_patch) - .current_dir(&build_src) // Run INSIDE the copied dir - .status() - .expect("Failed to execute patch command"); - - if !status.success() { - panic!("Failed to apply patch file: {}", gp_version_patch.display()); - } + // Apply all patches from the patches directory + apply_patches(&patches_dir, &build_src); // Build the OpenConnect library using autotools // We explicitly enable static and disable shared to ensure we get a .a file. @@ -63,12 +137,37 @@ fn main() { .with("vpnc-script", Some("/etc/vpnc/vpnc-script")) // Specify vpnc-script, otherwise it will fail on macOS .build(); - // Link the 'openconnect' static library - println!("cargo:rustc-link-search=native={}/lib", dst.display()); + let lib_dir = dst.join("lib"); + let include_dir = dst.join("include"); + + // Tell rustc where to find the static library + println!("cargo:rustc-link-search=native={}", lib_dir.display()); + + // Static linking of openconnect println!("cargo:rustc-link-lib=static=openconnect"); + // Export include path for downstream use (bindgen / cc) + println!("cargo:include={}", include_dir.display()); + + dst +} + +fn main() { + let manifest_dir = env::var("CARGO_MANIFEST_DIR").unwrap(); + let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap()); + let deps_dir = PathBuf::from(manifest_dir).join("deps"); + + let oc_dst = build_openconnect(&deps_dir, &out_dir); + + // Only statically link libxml2 if `LIBXML2_STATIC` is set + if env::var("LIBXML2_STATIC").is_ok() { + let _libxml2_dst = build_libxml2(&deps_dir, &out_dir); + } else { + // Using pkg-config to find system libxml2 + pkg_config::probe_library("libxml-2.0").unwrap(); + } + // Using pkg-config to find system deps - pkg_config::probe_library("libxml-2.0").unwrap(); pkg_config::probe_library("zlib").unwrap(); pkg_config::probe_library("liblz4").unwrap(); pkg_config::probe_library("gnutls").unwrap(); @@ -83,9 +182,16 @@ fn main() { println!("cargo:rerun-if-changed=src/ffi/vpn.c"); println!("cargo:rerun-if-changed=src/ffi/vpn.h"); + // Prevent silent fallback to dynamic libraries + #[cfg(target_os = "linux")] + { + println!("cargo:rustc-link-arg=-Wl,-Bstatic"); + println!("cargo:rustc-link-arg=-Wl,-Bdynamic"); + } + cc::Build::new() .file("src/ffi/vpn.c") .include("src/ffi") - .include(&dst.join("include")) + .include(&oc_dst.join("include")) .compile("vpn"); } diff --git a/crates/openconnect/deps/libxml2 b/crates/openconnect/deps/libxml2 new file mode 160000 index 0000000..f8a8c1f --- /dev/null +++ b/crates/openconnect/deps/libxml2 @@ -0,0 +1 @@ +Subproject commit f8a8c1f59db355b46962577e7b74f1a1e8149dc6 diff --git a/deps/openconnect b/crates/openconnect/deps/openconnect similarity index 100% rename from deps/openconnect rename to crates/openconnect/deps/openconnect diff --git a/deps/patches/openconnect-gp-version.patch b/crates/openconnect/deps/patches/0001-Add-support-for-GlobalProtect-app-version-handling.patch similarity index 54% rename from deps/patches/openconnect-gp-version.patch rename to crates/openconnect/deps/patches/0001-Add-support-for-GlobalProtect-app-version-handling.patch index 9c2cb3c..2e25858 100644 --- a/deps/patches/openconnect-gp-version.patch +++ b/crates/openconnect/deps/patches/0001-Add-support-for-GlobalProtect-app-version-handling.patch @@ -1,12 +1,28 @@ +From a8d5ec198ca9ae47a0e6b4f1ea244d2738acf055 Mon Sep 17 00:00:00 2001 +From: Kevin Yue +Date: Sun, 14 Dec 2025 17:10:02 +0800 +Subject: [PATCH 1/4] Add support for GlobalProtect app version handling + +- Introduced `gp_app_version` field in `openconnect_info` structure. +- Implemented `openconnect_set_gp_app_version` and `openconnect_get_gp_app_version` functions. +- Updated `gpst_get_config` to use the app version in requests. +- Free `gp_app_version` in `openconnect_vpninfo_free` to prevent memory leaks. +--- + gpst.c | 8 +++++--- + library.c | 15 +++++++++++++++ + openconnect-internal.h | 4 ++++ + openconnect.h | 2 ++ + 4 files changed, 26 insertions(+), 3 deletions(-) + diff --git a/gpst.c b/gpst.c -index 244aaf04..205bec1d 100644 +index 244aaf04..5c24bbd2 100644 --- a/gpst.c +++ b/gpst.c @@ -650,8 +650,11 @@ static int gpst_get_config(struct openconnect_info *vpninfo) /* submit getconfig request */ -+ char *app_version = vpninfo->csd_ticket ? : (vpninfo->gp_app_version ? : "6.3.0-33"); ++ const char *app_version = openconnect_get_gp_app_version(vpninfo); + vpn_progress(vpninfo, PRG_DEBUG, _("Using GlobalProtect app version: %s\n"), app_version); + buf_append(request_body, "client-type=1&protocol-version=p1&internal=no"); @@ -15,8 +31,18 @@ index 244aaf04..205bec1d 100644 append_opt(request_body, "ipv6-support", vpninfo->disable_ipv6 ? "no" : "yes"); append_opt(request_body, "clientos", gpst_os_name(vpninfo)); append_opt(request_body, "os-version", vpninfo->platname); +@@ -1040,8 +1043,7 @@ static int run_hip_script(struct openconnect_info *vpninfo) + * accept new ones. + */ + unsetenv("APP_VERSION"); +- if (vpninfo->csd_ticket) +- if (setenv("APP_VERSION", vpninfo->csd_ticket, 1)) ++ if (setenv("APP_VERSION", openconnect_get_gp_app_version(vpninfo), 1)) + goto out; + + execv(hip_argv[0], (char **)hip_argv); diff --git a/library.c b/library.c -index b5e74e9b..fff28f77 100644 +index b5e74e9b..18334c76 100644 --- a/library.c +++ b/library.c @@ -896,6 +896,7 @@ void openconnect_vpninfo_free(struct openconnect_info *vpninfo) @@ -27,7 +53,7 @@ index b5e74e9b..fff28f77 100644 free(vpninfo->authgroup); #ifdef HAVE_LIBSTOKEN if (vpninfo->stoken_pin) -@@ -1019,6 +1020,15 @@ int openconnect_set_useragent(struct openconnect_info *vpninfo, +@@ -1019,6 +1020,20 @@ int openconnect_set_useragent(struct openconnect_info *vpninfo, return 0; } @@ -39,12 +65,17 @@ index b5e74e9b..fff28f77 100644 + STRDUP(vpninfo->gp_app_version, gp_app_version); + return 0; +} ++ ++const char *openconnect_get_gp_app_version(struct openconnect_info *vpninfo) ++{ ++ return vpninfo->csd_ticket ?: (vpninfo->gp_app_version ?: "6.3.0-33"); ++} + int openconnect_set_urlpath(struct openconnect_info *vpninfo, const char *urlpath) { diff --git a/openconnect-internal.h b/openconnect-internal.h -index abf45bbd..85933f4a 100644 +index abf45bbd..988f85f0 100644 --- a/openconnect-internal.h +++ b/openconnect-internal.h @@ -786,6 +786,7 @@ struct openconnect_info { @@ -55,17 +86,29 @@ index abf45bbd..85933f4a 100644 const char *quit_reason; const char *delay_tunnel_reason; /* If non-null, provides a reason why protocol is not yet ready for tunnel setup */ +@@ -1677,6 +1678,9 @@ void openconnect_set_juniper(struct openconnect_info *vpninfo); + /* hpke.c */ + int handle_external_browser(struct openconnect_info *vpninfo); + ++/* Get the app version */ ++const char *openconnect_get_gp_app_version(struct openconnect_info *vpninfo); ++ + /* version.c */ + extern const char openconnect_version_str[]; + diff --git a/openconnect.h b/openconnect.h -index 136f181a..67fc1283 100644 +index 136f181a..7d4f3399 100644 --- a/openconnect.h +++ b/openconnect.h -@@ -470,6 +470,9 @@ int openconnect_set_http_proxy(struct openconnect_info *vpninfo, +@@ -470,6 +470,8 @@ int openconnect_set_http_proxy(struct openconnect_info *vpninfo, int openconnect_set_useragent(struct openconnect_info *vpninfo, const char *useragent); +int openconnect_set_gp_app_version(struct openconnect_info *vpninfo, + const char *gp_app_version); -+ int openconnect_passphrase_from_fsid(struct openconnect_info *vpninfo); int openconnect_obtain_cookie(struct openconnect_info *vpninfo); int openconnect_init_ssl(void); +-- +2.50.1 (Apple Git-155) + diff --git a/crates/openconnect/deps/patches/0002-Update-user-agent-for-common-headers-in-GlobalProtec.patch b/crates/openconnect/deps/patches/0002-Update-user-agent-for-common-headers-in-GlobalProtec.patch new file mode 100644 index 0000000..919bf58 --- /dev/null +++ b/crates/openconnect/deps/patches/0002-Update-user-agent-for-common-headers-in-GlobalProtec.patch @@ -0,0 +1,32 @@ +From 8591eba702f52dae335601c997271786be50dff7 Mon Sep 17 00:00:00 2001 +From: Kevin Yue +Date: Sun, 14 Dec 2025 17:10:52 +0800 +Subject: [PATCH 2/4] Update user agent for common headers in GlobalProtect + authentication + +--- + auth-globalprotect.c | 7 ------- + 1 file changed, 7 deletions(-) + +diff --git a/auth-globalprotect.c b/auth-globalprotect.c +index 8d094273..27e41c2b 100644 +--- a/auth-globalprotect.c ++++ b/auth-globalprotect.c +@@ -34,14 +34,7 @@ struct login_context { + void gpst_common_headers(struct openconnect_info *vpninfo, + struct oc_text_buf *buf) + { +- char *orig_ua = vpninfo->useragent; +- +- /* XX: more recent servers don't appear to require this specific UA value, +- * but we don't have any good way to detect them. +- */ +- vpninfo->useragent = (char *)"PAN GlobalProtect"; + http_common_headers(vpninfo, buf); +- vpninfo->useragent = orig_ua; + } + + /* Translate platform names (derived from AnyConnect) into the values +-- +2.50.1 (Apple Git-155) + diff --git a/crates/openconnect/deps/patches/0003-Add-support-for-OS-version-handling-in-GlobalProtect.patch b/crates/openconnect/deps/patches/0003-Add-support-for-OS-version-handling-in-GlobalProtect.patch new file mode 100644 index 0000000..08cd680 --- /dev/null +++ b/crates/openconnect/deps/patches/0003-Add-support-for-OS-version-handling-in-GlobalProtect.patch @@ -0,0 +1,121 @@ +From dda2aceca7e614af65b968e632065ef223cb6612 Mon Sep 17 00:00:00 2001 +From: Kevin Yue +Date: Sun, 14 Dec 2025 17:14:08 +0800 +Subject: [PATCH 3/4] Add support for OS version handling in GlobalProtect + authentication + +--- + auth-globalprotect.c | 2 +- + gpst.c | 4 ++-- + library.c | 15 +++++++++++++++ + openconnect-internal.h | 4 ++++ + openconnect.h | 3 +++ + 5 files changed, 25 insertions(+), 3 deletions(-) + +diff --git a/auth-globalprotect.c b/auth-globalprotect.c +index 27e41c2b..59d6de3b 100644 +--- a/auth-globalprotect.c ++++ b/auth-globalprotect.c +@@ -731,7 +731,7 @@ static int gpst_login(struct openconnect_info *vpninfo, int portal, struct login + buf_append(request_body, "jnlpReady=jnlpReady&ok=Login&direct=yes&clientVer=4100&prot=https:&internal=no"); + append_opt(request_body, "ipv6-support", vpninfo->disable_ipv6 ? "no" : "yes"); + append_opt(request_body, "clientos", gpst_os_name(vpninfo)); +- append_opt(request_body, "os-version", vpninfo->platname); ++ append_opt(request_body, "os-version", openconnect_get_gp_os_version(vpninfo)); + append_opt(request_body, "server", vpninfo->hostname); + append_opt(request_body, "computer", vpninfo->localname); + if (ctx->portal_userauthcookie) +diff --git a/gpst.c b/gpst.c +index 5c24bbd2..0373fce0 100644 +--- a/gpst.c ++++ b/gpst.c +@@ -657,7 +657,7 @@ static int gpst_get_config(struct openconnect_info *vpninfo) + append_opt(request_body, "app-version", app_version); + append_opt(request_body, "ipv6-support", vpninfo->disable_ipv6 ? "no" : "yes"); + append_opt(request_body, "clientos", gpst_os_name(vpninfo)); +- append_opt(request_body, "os-version", vpninfo->platname); ++ append_opt(request_body, "os-version", openconnect_get_gp_os_version(vpninfo)); + append_opt(request_body, "hmac-algo", "sha1,md5,sha256"); + append_opt(request_body, "enc-algo", "aes-128-cbc,aes-256-cbc"); + if (old_addr || old_addr6) { +@@ -1044,7 +1044,7 @@ static int run_hip_script(struct openconnect_info *vpninfo) + */ + unsetenv("APP_VERSION"); + if (setenv("APP_VERSION", openconnect_get_gp_app_version(vpninfo), 1)) +- goto out; ++ goto out; + + execv(hip_argv[0], (char **)hip_argv); + +diff --git a/library.c b/library.c +index 18334c76..e2169054 100644 +--- a/library.c ++++ b/library.c +@@ -897,6 +897,7 @@ void openconnect_vpninfo_free(struct openconnect_info *vpninfo) + free(vpninfo->localname); + free(vpninfo->useragent); + free(vpninfo->gp_app_version); ++ free(vpninfo->gp_os_version); + free(vpninfo->authgroup); + #ifdef HAVE_LIBSTOKEN + if (vpninfo->stoken_pin) +@@ -1034,6 +1035,20 @@ const char *openconnect_get_gp_app_version(struct openconnect_info *vpninfo) + return vpninfo->csd_ticket ?: (vpninfo->gp_app_version ?: "6.3.0-33"); + } + ++int openconnect_set_gp_os_version(struct openconnect_info *vpninfo, ++ const char *gp_os_version) ++{ ++ UTF8CHECK(gp_os_version); ++ ++ STRDUP(vpninfo->gp_os_version, gp_os_version); ++ return 0; ++} ++ ++const char *openconnect_get_gp_os_version(struct openconnect_info *vpninfo) ++{ ++ return vpninfo->gp_os_version ?: vpninfo->platname; ++} ++ + int openconnect_set_urlpath(struct openconnect_info *vpninfo, + const char *urlpath) + { +diff --git a/openconnect-internal.h b/openconnect-internal.h +index 988f85f0..5c8d2909 100644 +--- a/openconnect-internal.h ++++ b/openconnect-internal.h +@@ -787,6 +787,7 @@ struct openconnect_info { + char *useragent; + char *version_string; + char *gp_app_version; ++ char *gp_os_version; + + const char *quit_reason; + const char *delay_tunnel_reason; /* If non-null, provides a reason why protocol is not yet ready for tunnel setup */ +@@ -1681,6 +1682,9 @@ int handle_external_browser(struct openconnect_info *vpninfo); + /* Get the app version */ + const char *openconnect_get_gp_app_version(struct openconnect_info *vpninfo); + ++/* Get the OS version string for GP */ ++const char *openconnect_get_gp_os_version(struct openconnect_info *vpninfo); ++ + /* version.c */ + extern const char openconnect_version_str[]; + +diff --git a/openconnect.h b/openconnect.h +index 7d4f3399..aa96a53b 100644 +--- a/openconnect.h ++++ b/openconnect.h +@@ -472,6 +472,9 @@ int openconnect_set_useragent(struct openconnect_info *vpninfo, + + int openconnect_set_gp_app_version(struct openconnect_info *vpninfo, + const char *gp_app_version); ++int openconnect_set_gp_os_version(struct openconnect_info *vpninfo, ++ const char *gp_os_version); ++ + int openconnect_passphrase_from_fsid(struct openconnect_info *vpninfo); + int openconnect_obtain_cookie(struct openconnect_info *vpninfo); + int openconnect_init_ssl(void); +-- +2.50.1 (Apple Git-155) + diff --git a/crates/openconnect/deps/patches/0004-Add-client-version-and-OS-information-to-HIP-script-.patch b/crates/openconnect/deps/patches/0004-Add-client-version-and-OS-information-to-HIP-script-.patch new file mode 100644 index 0000000..80a2571 --- /dev/null +++ b/crates/openconnect/deps/patches/0004-Add-client-version-and-OS-information-to-HIP-script-.patch @@ -0,0 +1,39 @@ +From 3915a51c81831a1a9b087d82f0c760365682f23b Mon Sep 17 00:00:00 2001 +From: Kevin Yue +Date: Mon, 15 Dec 2025 19:20:44 +0800 +Subject: [PATCH 4/4] Add client version and OS information to HIP script + arguments + +--- + gpst.c | 8 ++++++-- + 1 file changed, 6 insertions(+), 2 deletions(-) + +diff --git a/gpst.c b/gpst.c +index 0373fce0..d04c42c2 100644 +--- a/gpst.c ++++ b/gpst.c +@@ -1013,6 +1013,12 @@ static int run_hip_script(struct openconnect_info *vpninfo) + exit(1); + + hip_argv[i++] = openconnect_utf8_to_legacy(vpninfo, vpninfo->csd_wrapper); ++ hip_argv[i++] = "--client-version"; ++ hip_argv[i++] = openconnect_get_gp_app_version(vpninfo); ++ hip_argv[i++] = "--client-os"; ++ hip_argv[i++] = gpst_os_name(vpninfo); ++ hip_argv[i++] = "--os-version"; ++ hip_argv[i++] = openconnect_get_gp_os_version(vpninfo); + hip_argv[i++] = "--cookie"; + hip_argv[i++] = vpninfo->cookie; + if (vpninfo->ip_info.addr) { +@@ -1025,8 +1031,6 @@ static int run_hip_script(struct openconnect_info *vpninfo) + } + hip_argv[i++] = "--md5"; + hip_argv[i++] = vpninfo->csd_token; +- hip_argv[i++] = "--client-os"; +- hip_argv[i++] = gpst_os_name(vpninfo); + hip_argv[i++] = NULL; + + /* XX: Sending the above parameters as --long-options was a mistake that was +-- +2.50.1 (Apple Git-155) + diff --git a/crates/openconnect/src/ffi/mod.rs b/crates/openconnect/src/ffi/mod.rs index 31f781d..c99b915 100644 --- a/crates/openconnect/src/ffi/mod.rs +++ b/crates/openconnect/src/ffi/mod.rs @@ -13,6 +13,7 @@ pub(crate) struct ConnectOptions { pub user_agent: *const c_char, pub os: *const c_char, + pub os_version: *const c_char, pub client_version: *const c_char, pub script: *const c_char, diff --git a/crates/openconnect/src/ffi/vpn.c b/crates/openconnect/src/ffi/vpn.c index 07fa550..29c14ec 100644 --- a/crates/openconnect/src/ffi/vpn.c +++ b/crates/openconnect/src/ffi/vpn.c @@ -94,11 +94,16 @@ int vpn_connect(const vpn_options *options, vpn_connected_callback callback) openconnect_set_protocol(vpninfo, "gp"); openconnect_parse_url(vpninfo, options->server); openconnect_set_cookie(vpninfo, options->cookie); + openconnect_set_useragent(vpninfo, options->user_agent); if (options->os) { openconnect_set_reported_os(vpninfo, options->os); } + if (options->os_version) { + openconnect_set_gp_os_version(vpninfo, options->os_version); + } + if (options->client_version) { openconnect_set_gp_app_version(vpninfo, options->client_version); diff --git a/crates/openconnect/src/ffi/vpn.h b/crates/openconnect/src/ffi/vpn.h index bb583a4..7483419 100644 --- a/crates/openconnect/src/ffi/vpn.h +++ b/crates/openconnect/src/ffi/vpn.h @@ -13,6 +13,7 @@ typedef struct vpn_options { const char *user_agent; const char *os; + const char *os_version; const char *client_version; const char *script; diff --git a/crates/openconnect/src/vpn.rs b/crates/openconnect/src/vpn.rs index 0392ef0..08fe939 100644 --- a/crates/openconnect/src/vpn.rs +++ b/crates/openconnect/src/vpn.rs @@ -17,6 +17,7 @@ pub struct Vpn { user_agent: CString, os: CString, + os_version: Option, client_version: Option, script: CString, @@ -74,6 +75,7 @@ impl Vpn { user_agent: self.user_agent.as_ptr(), os: self.os.as_ptr(), + os_version: Self::option_to_ptr(&self.os_version), client_version: Self::option_to_ptr(&self.client_version), script: self.script.as_ptr(), @@ -132,6 +134,7 @@ pub struct VpnBuilder { user_agent: Option, os: Option, + os_version: Option, client_version: Option, certificate: Option, @@ -161,6 +164,7 @@ impl VpnBuilder { user_agent: None, os: None, + os_version: None, client_version: None, certificate: None, @@ -204,6 +208,11 @@ impl VpnBuilder { self } + pub fn os_version>>(mut self, os_version: T) -> Self { + self.os_version = os_version.into(); + self + } + pub fn client_version>>(mut self, client_version: T) -> Self { self.client_version = client_version.into(); self @@ -304,6 +313,7 @@ impl VpnBuilder { user_agent: Self::to_cstring(&user_agent), os: Self::to_cstring(&os), + os_version: self.os_version.as_deref().map(Self::to_cstring), client_version: self.client_version.as_deref().map(Self::to_cstring), script: Self::to_cstring(&script), diff --git a/crates/openconnect/src/vpn_utils.rs b/crates/openconnect/src/vpn_utils.rs index 2ed704c..0e8f270 100644 --- a/crates/openconnect/src/vpn_utils.rs +++ b/crates/openconnect/src/vpn_utils.rs @@ -15,6 +15,7 @@ const VPNC_SCRIPT_LOCATIONS: &[&str] = &[ ]; const CSD_WRAPPER_LOCATIONS: &[&str] = &[ + "/usr/libexec/gpclient/hipreport.sh", #[cfg(target_arch = "x86_64")] "/usr/lib/x86_64-linux-gnu/openconnect/hipreport.sh", #[cfg(target_arch = "aarch64")] diff --git a/flake.nix b/flake.nix index 414503b..61c7470 100644 --- a/flake.nix +++ b/flake.nix @@ -4,6 +4,7 @@ naersk.url = "github:nix-community/naersk"; nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; rust-overlay.url = "github:oxalica/rust-overlay"; + self.submodules = true; }; outputs = @@ -37,7 +38,7 @@ gpgui = pkgs.fetchzip { url = "https://github.com/yuezk/GlobalProtect-openconnect/releases/download/v${version}/gpgui_${cpu}.bin.tar.xz"; - hash = "sha256-Cvy/ca2Q4LdxX7Z9KzuQy6t6FDMcaSyyyjF/YCnZeeM="; + hash = "sha256-cHjGq2dywjo7fBxcGxnSrGnyh+AbEN1yEQ+Ps1uXIBI="; }; in { @@ -53,7 +54,14 @@ buildInputs = with pkgs; [ - openconnect + vpnc-scripts + libxml2 + zlib + lz4 + gnutls + p11-kit + nettle + gmp ] ++ lib.optionals stdenv.isLinux [ glib @@ -64,7 +72,12 @@ nativeBuildInputs = with pkgs; - [ ] + [ + autoconf + automake + libtool + pkg-config + ] ++ lib.optionals stdenv.isLinux [ autoPatchelfHook ]; @@ -82,6 +95,7 @@ postPatch = '' substituteInPlace crates/openconnect/src/vpn_utils.rs \ --replace-fail /etc/vpnc/vpnc-script ${pkgs.vpnc-scripts}/bin/vpnc-script \ + --replace-fail /usr/libexec/gpclient/hipreport.sh $out/libexec/gpclient/hipreport.sh \ --replace-fail /usr/lib/openconnect/hipreport.sh ${pkgs.openconnect}/libexec/openconnect/hipreport.sh substituteInPlace crates/common/src/constants.rs \ @@ -89,7 +103,8 @@ --replace-fail /usr/bin/gpservice $out/bin/gpservice \ --replace-fail /usr/bin/gpgui-helper $out/bin/gpgui-helper \ --replace-fail /usr/bin/gpgui $out/bin/gpgui \ - --replace-fail /usr/bin/gpauth $out/bin/gpauth + --replace-fail /usr/bin/gpauth $out/bin/gpauth \ + --replace-fail /opt/homebrew/ $out/ ''; }; @@ -100,6 +115,7 @@ cp -r packaging/files/usr/share $out/share cp -r packaging/files/usr/lib $out/lib + cp -r packaging/files/usr/libexec $out/libexec # Change the `/usr/bin/gpclient` path in the desktop file substituteInPlace $out/share/applications/gpgui.desktop \ @@ -108,9 +124,13 @@ substituteInPlace $out/lib/NetworkManager/dispatcher.d/pre-down.d/gpclient.down \ --replace-fail /usr/bin/gpclient $out/bin/gpclient + substituteInPlace $out/libexec/gpclient/hipreport.sh \ + --replace-fail /usr/bin/gpclient $out/bin/gpclient + # Change the `/usr/bin/gpservice` path in the polkit policy file substituteInPlace $out/share/polkit-1/actions/com.yuezk.gpgui.policy \ --replace-fail /usr/bin/gpservice $out/bin/gpservice + ''; }; diff --git a/packaging/binary/Makefile.in b/packaging/binary/Makefile.in index a9f9bdd..1b533a0 100644 --- a/packaging/binary/Makefile.in +++ b/packaging/binary/Makefile.in @@ -10,6 +10,9 @@ install: install -Dm755 artifacts/usr/bin/gpgui $(DESTDIR)/usr/bin/gpgui; \ fi + # Install the HIP report script + install -Dm755 artifacts/usr/libexec/gpclient/hipreport.sh $(DESTDIR)/usr/libexec/gpclient/hipreport.sh + # Install the disconnect hooks install -Dm755 artifacts/usr/lib/NetworkManager/dispatcher.d/pre-down.d/gpclient.down $(DESTDIR)/usr/lib/NetworkManager/dispatcher.d/pre-down.d/gpclient.down install -Dm755 artifacts/usr/lib/NetworkManager/dispatcher.d/gpclient-nm-hook $(DESTDIR)/usr/lib/NetworkManager/dispatcher.d/gpclient-nm-hook @@ -30,6 +33,8 @@ uninstall: rm -f $(DESTDIR)/usr/bin/gpgui-helper rm -f $(DESTDIR)/usr/bin/gpgui + rm -f $(DESTDIR)/usr/libexec/gpclient/hipreport.sh + rm -f $(DESTDIR)/usr/lib/NetworkManager/dispatcher.d/pre-down.d/gpclient.down rm -f $(DESTDIR)/usr/lib/NetworkManager/dispatcher.d/gpclient-nm-hook diff --git a/packaging/deb/control.in b/packaging/deb/control.in index 2673feb..3994391 100644 --- a/packaging/deb/control.in +++ b/packaging/deb/control.in @@ -18,9 +18,10 @@ Homepage: https://github.com/yuezk/GlobalProtect-openconnect Package: globalprotect-openconnect Architecture: any Multi-Arch: foreign -Depends: ${misc:Depends}, +Depends: + ${misc:Depends}, ${shlibs:Depends}, - openconnect (>=8.20), + vpnc-scripts, libsecret-1-0, libayatana-appindicator3-1, gnome-keyring, diff --git a/packaging/files/usr/libexec/gpclient/hipreport.sh b/packaging/files/usr/libexec/gpclient/hipreport.sh new file mode 100755 index 0000000..9512488 --- /dev/null +++ b/packaging/files/usr/libexec/gpclient/hipreport.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +# Wrapper for gpclient hip +LOGFILE="/tmp/gpclient-hipreport.log" + +LINUX_GPCLIENT_BIN="/usr/bin/gpclient" +HOMEBREW_GPCLIENT_BIN="/opt/homebrew/bin/gpclient" +GPCLIENT_BIN="" + +if [ -x "$LINUX_GPCLIENT_BIN" ]; then + GPCLIENT_BIN="$LINUX_GPCLIENT_BIN" +elif [ -x "$HOMEBREW_GPCLIENT_BIN" ]; then + GPCLIENT_BIN="$HOMEBREW_GPCLIENT_BIN" +else + echo "Error: gpclient binary not found." > "$LOGFILE" + exit 1 +fi + +# Redirect the output to a file for debugging then output to stdout +HIP_REPORT_OUTPUT=$(exec 2> "$LOGFILE" "$GPCLIENT_BIN" hip -vv "$@") + +echo "$HIP_REPORT_OUTPUT" diff --git a/packaging/pkgbuild/PKGBUILD.in b/packaging/pkgbuild/PKGBUILD.in index 353e7c6..1ae6b21 100644 --- a/packaging/pkgbuild/PKGBUILD.in +++ b/packaging/pkgbuild/PKGBUILD.in @@ -8,7 +8,7 @@ pkgdesc="A GUI client for GlobalProtect VPN, based on OpenConnect, supports the arch=('x86_64' 'aarch64') url="https://github.com/yuezk/GlobalProtect-openconnect" license=('GPL3') -makedepends=('make' 'pkg-config' 'rust' 'cargo' 'file') +makedepends=('make' 'pkg-config' 'cargo' 'file') depends=('webkit2gtk-4.1' 'libappindicator-gtk3' 'librsvg' 'libsecret' 'openssl' 'appmenu-gtk-module' 'gnutls' 'libxml2' 'vpnc' 'lz4' 'libp11-kit' 'nettle' 'xdg-utils' 'openconnect>=8.20') diff --git a/packaging/rpm/globalprotect-openconnect.spec.in b/packaging/rpm/globalprotect-openconnect.spec.in index 2f5b979..0ad50d4 100644 --- a/packaging/rpm/globalprotect-openconnect.spec.in +++ b/packaging/rpm/globalprotect-openconnect.spec.in @@ -9,6 +9,10 @@ URL: https://github.com/yuezk/GlobalProtect-openconnect Source: @SOURCE@ BuildRequires: make +BuildRequires: libtool +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: gcc-c++ BuildRequires: rust BuildRequires: cargo BuildRequires: pkg-config @@ -27,7 +31,7 @@ BuildRequires: webkit2gtk4.1-devel BuildRequires: (libappindicator-gtk3-devel or libappindicator3-1) BuildRequires: (librsvg2-devel or librsvg-devel) -Requires: openconnect >= 8.20, (libappindicator-gtk3 or libayatana-appindicator) +Requires: vpnc-script, (libappindicator-gtk3 or libayatana-appindicator) Conflicts: globalprotect-openconnect-snapshot %global debug_package %{nil} @@ -52,6 +56,7 @@ make build OFFLINE=@OFFLINE@ BUILD_FE=0 %files %defattr(-,root,root) %{_bindir}/* +%{_libexecdir}/gpclient/hipreport.sh %{_datadir}/applications/gpgui.desktop %{_datadir}/icons/hicolor/32x32/apps/gpgui.png %{_datadir}/icons/hicolor/128x128/apps/gpgui.png @@ -66,6 +71,8 @@ make build OFFLINE=@OFFLINE@ BUILD_FE=0 /usr/lib/NetworkManager/dispatcher.d/pre-down.d/gpclient.down /usr/lib/NetworkManager/dispatcher.d/gpclient-nm-hook +%dir %{_libexecdir} +%dir %{_libexecdir}/gpclient %dir %{_datadir}/icons/hicolor %dir %{_datadir}/icons/hicolor/32x32 %dir %{_datadir}/icons/hicolor/32x32/apps