diff --git a/.github/workflows/continuousIntegration.yml b/.github/workflows/continuousIntegration.yml index 96ab34f0c..3ba0789f9 100644 --- a/.github/workflows/continuousIntegration.yml +++ b/.github/workflows/continuousIntegration.yml @@ -1,29 +1,112 @@ name: Continuous Integration on: - pull_request: ~ + pull_request: ~ push: branches: - main - dev -# Docker images for various Racket versions available on DockerHub -# as racket/racket: -# (https://github.com/racket/docker) -# We use features that require at least 8.4; try to use latest. - jobs: - forge-tests: + check-test-coverage: + runs-on: ubuntu-latest + name: check-test-coverage + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Verify all test subdirs are in CI matrix + run: | + # Extract all tests/* paths mentioned in the workflow file itself. + # This avoids maintaining a separate list — the matrix IS the source of truth. + workflow=".github/workflows/continuousIntegration.yml" + covered=$(grep -oE 'tests/[a-zA-Z0-9_-]+(/[a-zA-Z0-9_-]+)?' "$workflow" \ + | sort -u) + + # Check tests/forge/ subdirectories + actual=$(cd forge && find tests/forge -mindepth 1 -maxdepth 1 -type d | sort) + missing=$(comm -23 <(echo "$actual") <(echo "$covered")) + if [ -n "$missing" ]; then + echo "ERROR: tests/forge/ subdirectories not covered by CI:" + echo "$missing" + echo "" + echo "Add them to a test-dir entry in $workflow" + exit 1 + fi + + # Check top-level test directories too + actual_top=$(cd forge && find tests -mindepth 1 -maxdepth 1 -type d | sort) + missing_top=$(comm -23 <(echo "$actual_top") <(echo "$covered")) + if [ -n "$missing_top" ]; then + echo "ERROR: top-level test directories not covered by CI:" + echo "$missing_top" + echo "" + echo "Add them to a test-dir entry in $workflow" + exit 1 + fi + + echo "All test directories are covered by CI." + + test-forge: + needs: check-test-coverage runs-on: ubuntu-latest - container: docker://karimmouline/forge-dev-img:latest + strategy: + fail-fast: false + matrix: + include: + - name: forge-1 + test-dir: tests/forge/other + - name: forge-2 + test-dir: tests/forge/bounds tests/forge/domains tests/forge/eval-model tests/forge/examples tests/forge/expressions tests/forge/formulas tests/forge/fuzz tests/forge/ints tests/forge/library tests/forge/relations tests/forge/sigs tests/forge/target + - name: forge-core + test-dir: tests/forge-core tests/forge-functional + - name: smt + test-dir: tests/smt + - name: other + test-dir: tests/error tests/froglet tests/srclocs tests/temporal + name: test-${{ matrix.name }} steps: - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 + + - name: Setup Racket + uses: Bogdanp/setup-racket@v1.14 + with: + version: '8.15' + + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '17' + + - name: Install system dependencies + run: | + sudo apt-get update -qq + sudo apt-get install -y -qq libcairo2-dev libpango1.0-dev libgdk-pixbuf-2.0-dev + + - name: Install cvc5 + if: matrix.name == 'smt' + run: | + wget -q https://github.com/cvc5/cvc5/releases/download/cvc5-1.2.0/cvc5-Linux-x86_64-static.zip + unzip -q cvc5-Linux-x86_64-static.zip + echo "$PWD/cvc5-Linux-x86_64-static/bin" >> $GITHUB_PATH + + - name: Cache Racket packages + uses: actions/cache@v4 + with: + path: ~/.local/share/racket + key: racket-pkgs-${{ hashFiles('forge/info.rkt') }} + restore-keys: racket-pkgs- + - name: Install Forge run: | - raco pkg install --auto --no-docs ./forge + raco pkg update --auto --no-docs --batch ./forge 2>/dev/null || raco pkg install --auto --no-docs ./forge + - name: Run tests run: | cd forge/ chmod +x run-tests.sh - ./run-tests.sh tests/ + for dir in ${{ matrix.test-dir }}; do + ./run-tests.sh "$dir" + done diff --git a/forge/domains/abac/runner.rkt b/forge/domains/abac/runner.rkt index 5d69221c8..ce1392548 100644 --- a/forge/domains/abac/runner.rkt +++ b/forge/domains/abac/runner.rkt @@ -198,10 +198,18 @@ (list (= r (atom 'True)))] [(equal? (relation-name r) "Request") (list (= r (atom 'Request)))] + ; Boolean fields (target sig is True) + [(equal? (relation-name r) "training") + (list (in r (-> (+ atoms) (atom 'True))))] + [(equal? (relation-name r) "audit") + (list (in r (-> (+ atoms) (atom 'True))))] + ; owner maps File -> Subject; Subject's upper bound is the universe atoms + [(equal? (relation-name r) "owner") + (list (in r (-> (+ atoms) (+ atoms))))] ; Everything else: [(equal? 1 (relation-arity r)) (list (in r (+ atoms)))] - [(equal? 2 (relation-arity r)) + [(equal? 2 (relation-arity r)) (list (in r (-> (+ atoms) (+ (atom 'True) (+ atoms)))))] [else (raise-user-error (format "Error: relation ~a had invalid arity" r))])) diff --git a/forge/domains/abac/tests/info.rkt b/forge/domains/abac/tests/info.rkt deleted file mode 100644 index 2e6fbb1c9..000000000 --- a/forge/domains/abac/tests/info.rkt +++ /dev/null @@ -1,4 +0,0 @@ -#lang info - -; Don't try to compile the tests folder. Installation produces warnings otherwise. -(define compile-omit-paths 'all) \ No newline at end of file diff --git a/forge/domains/crypto/examples/README.md b/forge/domains/crypto/examples/README.md new file mode 100644 index 000000000..ca89fb6df --- /dev/null +++ b/forge/domains/crypto/examples/README.md @@ -0,0 +1 @@ +CI regression tests derived from these examples live in forge/tests/forge/domains/crypto/. diff --git a/forge/e2e/fixtures/projection-model.frg b/forge/e2e/fixtures/projection-model.frg new file mode 100644 index 000000000..fe8c7bb1b --- /dev/null +++ b/forge/e2e/fixtures/projection-model.frg @@ -0,0 +1,11 @@ +#lang forge + +-- Model with multiple sig types suitable for projection testing in Sterling +sig Epoch {} +sig Process { + action: set Epoch -> Process +} + +projectionRun: run { + some action +} for exactly 2 Process, exactly 3 Epoch diff --git a/forge/e2e/fixtures/temporal-model.frg b/forge/e2e/fixtures/temporal-model.frg new file mode 100644 index 000000000..9718e749d --- /dev/null +++ b/forge/e2e/fixtures/temporal-model.frg @@ -0,0 +1,13 @@ +#lang forge/temporal + +-- Minimal temporal model for e2e testing of Sterling temporal controls +sig Process {} +var sig Active extends Process {} + +pred init { some Active } +pred step { Active' != Active } + +temporalRun: run { + init + always step +} for exactly 3 Process diff --git a/forge/e2e/tests/sterling-temporal-projection.spec.ts b/forge/e2e/tests/sterling-temporal-projection.spec.ts new file mode 100644 index 000000000..6b1f7de30 --- /dev/null +++ b/forge/e2e/tests/sterling-temporal-projection.spec.ts @@ -0,0 +1,161 @@ +import { test, expect, Page } from '@playwright/test'; +import { startForge, ForgeInstance, selectAndRunCommand } from '../helpers/forge-runner'; +import { TIMEOUT_GRAPH_LAYOUT } from '../helpers/constants'; + +// Sterling sidebar buttons and drawer titles share the same DOM text (e.g., both +// contain "Time"), but the sidebar button appears first in DOM order. The drawer +// title is visually uppercased via CSS text-transform but the underlying text is +// the same. Using .first() reliably targets the sidebar button. +async function openSidebarDrawer(page: Page, label: string) { + await page.getByText(label, { exact: true }).first().click(); + await page.waitForTimeout(500); +} + +test.describe('Sterling Temporal Controls', () => { + let forge: ForgeInstance; + + test.afterEach(async () => { + if (forge) { + forge.cleanup(); + } + }); + + test('temporal controls are accessible outside the layout drawer', async ({ page }) => { + forge = await startForge('e2e/fixtures/temporal-model.frg'); + await page.goto(forge.sterlingUrl); + await selectAndRunCommand(page, 'temporalRun'); + await page.waitForTimeout(TIMEOUT_GRAPH_LAYOUT); + + // "Time" and "Layout" should both be visible as separate sidebar entries + await expect(page.getByText('Time', { exact: true }).first()).toBeVisible({ timeout: 5000 }); + await expect(page.getByText('Layout', { exact: true }).first()).toBeVisible({ timeout: 5000 }); + + // Negative test: open the Layout drawer and verify temporal controls are NOT there + await openSidebarDrawer(page, 'Layout'); + await expect(page.locator('#temporal-policy-select')).not.toBeVisible(); + + // Now open the Time drawer and verify temporal controls ARE there + await openSidebarDrawer(page, 'Time'); + await expect(page.locator('#temporal-policy-select')).toBeVisible({ timeout: 5000 }); + }); + + test('time stepper is visible for temporal instances', async ({ page }) => { + forge = await startForge('e2e/fixtures/temporal-model.frg'); + await page.goto(forge.sterlingUrl); + await selectAndRunCommand(page, 'temporalRun'); + await page.waitForTimeout(TIMEOUT_GRAPH_LAYOUT); + + await openSidebarDrawer(page, 'Time'); + + // The stepper shows a "State N/M" label + await expect(page.getByText(/^State \d+\/\d+$/)).toBeVisible({ timeout: 5000 }); + + // Navigation buttons should be present + await expect(page.getByRole('button', { name: 'First State' }).first()).toBeVisible(); + await expect(page.getByRole('button', { name: 'Previous State' }).first()).toBeVisible(); + }); + + test('time stepping advances the state index', async ({ page }) => { + forge = await startForge('e2e/fixtures/temporal-model.frg'); + await page.goto(forge.sterlingUrl); + await selectAndRunCommand(page, 'temporalRun'); + await page.waitForTimeout(TIMEOUT_GRAPH_LAYOUT); + + await openSidebarDrawer(page, 'Time'); + + // Should start at State 1/N + await expect(page.getByText(/^State 1\/\d+$/)).toBeVisible({ timeout: 5000 }); + + // The forward button has a duplicated aria-label ("First State") due to a + // Sterling bug. It's the second button with that label in the stepper group. + const forwardButton = page.getByRole('button', { name: 'First State' }).nth(1); + await forwardButton.click(); + await page.waitForTimeout(500); + + // Should now show State 2/N + await expect(page.getByText(/^State 2\/\d+$/)).toBeVisible({ timeout: 5000 }); + }); + + test('compare states mode is available', async ({ page }) => { + forge = await startForge('e2e/fixtures/temporal-model.frg'); + await page.goto(forge.sterlingUrl); + await selectAndRunCommand(page, 'temporalRun'); + await page.waitForTimeout(TIMEOUT_GRAPH_LAYOUT); + + await openSidebarDrawer(page, 'Time'); + + const compareButton = page.getByRole('button', { name: 'Compare States' }); + await expect(compareButton).toBeVisible({ timeout: 5000 }); + + await compareButton.click(); + await page.waitForTimeout(500); + + // Button text changes and comparison instructions appear + await expect(page.getByText('Compare Mode')).toBeVisible({ timeout: 3000 }); + await expect(page.getByText('Click states to compare side-by-side')).toBeVisible({ timeout: 3000 }); + }); + + test('temporal policy can be changed', async ({ page }) => { + forge = await startForge('e2e/fixtures/temporal-model.frg'); + await page.goto(forge.sterlingUrl); + await selectAndRunCommand(page, 'temporalRun'); + await page.waitForTimeout(TIMEOUT_GRAPH_LAYOUT); + + await openSidebarDrawer(page, 'Time'); + + const policySelect = page.locator('#temporal-policy-select'); + await expect(policySelect).toBeVisible({ timeout: 5000 }); + + // Verify expected policy options exist + const options = await policySelect.locator('option').allTextContents(); + expect(options.length).toBeGreaterThan(1); + expect(options).toContain('Ignore History'); + expect(options).toContain('Stability'); + }); +}); + +test.describe('Sterling Projection Controls', () => { + let forge: ForgeInstance; + + test.afterEach(async () => { + if (forge) { + forge.cleanup(); + } + }); + + test('projection controls are accessible outside the layout drawer', async ({ page }) => { + forge = await startForge('e2e/fixtures/projection-model.frg'); + await page.goto(forge.sterlingUrl); + await selectAndRunCommand(page, 'projectionRun'); + await page.waitForTimeout(TIMEOUT_GRAPH_LAYOUT); + + // "Projections" and "Layout" should both be visible as separate sidebar entries + await expect(page.getByText('Projections', { exact: true }).first()).toBeVisible({ timeout: 5000 }); + await expect(page.getByText('Layout', { exact: true }).first()).toBeVisible({ timeout: 5000 }); + + // Negative test: open Layout drawer and verify projection controls are NOT there + await openSidebarDrawer(page, 'Layout'); + await expect(page.getByText('Add Projection')).not.toBeVisible(); + + // Open projections drawer and verify controls ARE there + await openSidebarDrawer(page, 'Projections'); + await expect(page.getByText('Add Projection')).toBeVisible({ timeout: 5000 }); + }); + + test('projection drawer lists projectable types', async ({ page }) => { + forge = await startForge('e2e/fixtures/projection-model.frg'); + await page.goto(forge.sterlingUrl); + await selectAndRunCommand(page, 'projectionRun'); + await page.waitForTimeout(TIMEOUT_GRAPH_LAYOUT); + + await openSidebarDrawer(page, 'Projections'); + + await page.getByText('Add Projection').click(); + await page.waitForTimeout(500); + + // Projectable types appear as "+ TypeName" buttons in the Add Projection UI + const hasEpoch = await page.getByRole('button', { name: '+ Epoch' }).isVisible(); + const hasProcess = await page.getByRole('button', { name: '+ Process' }).isVisible(); + expect(hasEpoch || hasProcess).toBe(true); + }); +}); diff --git a/forge/info.rkt b/forge/info.rkt index f128389de..33924f261 100644 --- a/forge/info.rkt +++ b/forge/info.rkt @@ -40,7 +40,7 @@ ; This includes outdated modules but also examples. (define compile-omit-paths '("example" "examples" "doc" "tests" "check-ex-spec/demo" "OLD" "pardinus-cli/out" "kodkod-cli/out" "check-ex-spec/examples" - "amalgam/tests" "amalgam" "domains/crypto/examples" "domains/abac/tests" + "amalgam/tests" "amalgam" "domains/crypto/examples" )) diff --git a/forge/pardinus-cli/jar/libminisatprover.so b/forge/pardinus-cli/jar/libminisatprover.so deleted file mode 100644 index 7fc29c394..000000000 Binary files a/forge/pardinus-cli/jar/libminisatprover.so and /dev/null differ diff --git a/forge/pardinus-cli/jar/libglucose.so b/forge/pardinus-cli/jar/native/linux-x86/libglucose.so similarity index 100% rename from forge/pardinus-cli/jar/libglucose.so rename to forge/pardinus-cli/jar/native/linux-x86/libglucose.so diff --git a/forge/pardinus-cli/jar/liblingeling.so b/forge/pardinus-cli/jar/native/linux-x86/liblingeling.so similarity index 100% rename from forge/pardinus-cli/jar/liblingeling.so rename to forge/pardinus-cli/jar/native/linux-x86/liblingeling.so diff --git a/forge/pardinus-cli/jar/libminisat.so b/forge/pardinus-cli/jar/native/linux-x86/libminisat.so similarity index 100% rename from forge/pardinus-cli/jar/libminisat.so rename to forge/pardinus-cli/jar/native/linux-x86/libminisat.so diff --git a/forge/pardinus-cli/jar/native/linux-x86_64/libglucose.so b/forge/pardinus-cli/jar/native/linux-x86_64/libglucose.so new file mode 100755 index 000000000..914a36271 Binary files /dev/null and b/forge/pardinus-cli/jar/native/linux-x86_64/libglucose.so differ diff --git a/forge/pardinus-cli/jar/native/linux-x86_64/liblingeling.so b/forge/pardinus-cli/jar/native/linux-x86_64/liblingeling.so new file mode 100755 index 000000000..6ac723faa Binary files /dev/null and b/forge/pardinus-cli/jar/native/linux-x86_64/liblingeling.so differ diff --git a/forge/pardinus-cli/jar/native/linux-x86_64/libminisat.so b/forge/pardinus-cli/jar/native/linux-x86_64/libminisat.so new file mode 100755 index 000000000..61d9b1441 Binary files /dev/null and b/forge/pardinus-cli/jar/native/linux-x86_64/libminisat.so differ diff --git a/forge/pardinus-cli/jar/native/linux-x86_64/libminisatprover.so b/forge/pardinus-cli/jar/native/linux-x86_64/libminisatprover.so new file mode 100644 index 000000000..95c1ffe0e Binary files /dev/null and b/forge/pardinus-cli/jar/native/linux-x86_64/libminisatprover.so differ diff --git a/forge/pardinus-cli/jar/libglucose.dylib b/forge/pardinus-cli/jar/native/macos/libglucose.dylib similarity index 100% rename from forge/pardinus-cli/jar/libglucose.dylib rename to forge/pardinus-cli/jar/native/macos/libglucose.dylib diff --git a/forge/pardinus-cli/jar/liblingeling.dylib b/forge/pardinus-cli/jar/native/macos/liblingeling.dylib similarity index 100% rename from forge/pardinus-cli/jar/liblingeling.dylib rename to forge/pardinus-cli/jar/native/macos/liblingeling.dylib diff --git a/forge/pardinus-cli/jar/libminisat.dylib b/forge/pardinus-cli/jar/native/macos/libminisat.dylib similarity index 100% rename from forge/pardinus-cli/jar/libminisat.dylib rename to forge/pardinus-cli/jar/native/macos/libminisat.dylib diff --git a/forge/pardinus-cli/jar/libminisatprover.dylib b/forge/pardinus-cli/jar/native/macos/libminisatprover.dylib similarity index 100% rename from forge/pardinus-cli/jar/libminisatprover.dylib rename to forge/pardinus-cli/jar/native/macos/libminisatprover.dylib diff --git a/forge/pardinus-cli/jar/native/test-linux-x86_64.sh b/forge/pardinus-cli/jar/native/test-linux-x86_64.sh new file mode 100755 index 000000000..4a0543933 --- /dev/null +++ b/forge/pardinus-cli/jar/native/test-linux-x86_64.sh @@ -0,0 +1,173 @@ +#!/bin/bash +# Test native SAT solver libraries on Linux x86_64 using Docker. +# +# Verifies that each .so file: +# 1. Is a valid x86_64 ELF binary +# 2. Has portable glibc requirements (≤ 2.31) +# 3. Exports expected JNI symbols +# 4. Actually loads in a JVM and can create/free a solver instance +# +# Uses Ubuntu 20.04 (same glibc as our build target) with OpenJDK. +# No Racket needed — tests JNI loading directly via Java. +# +# Usage: +# ./test-linux-x86_64.sh # Run all checks +# ./test-linux-x86_64.sh --shell # Drop into container for debugging + +set -euo pipefail + +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +FORGE_ROOT="$(cd "$SCRIPT_DIR/../../../.." && pwd)" +IMAGE="ubuntu:20.04" +PLATFORM="linux/amd64" + +if [ "${1:-}" = "--shell" ]; then + echo "Dropping into test container." + echo "Forge repo mounted at /forge, native libs at /libs, JARs at /jars" + echo "" + docker run --rm -it --platform="$PLATFORM" \ + -v "$SCRIPT_DIR/linux-x86_64":/libs \ + -v "$FORGE_ROOT/forge/pardinus-cli/jar":/jars \ + -w /tmp \ + "$IMAGE" bash + exit 0 +fi + +TEST_SCRIPT='#!/bin/bash +set -euo pipefail + +export DEBIAN_FRONTEND=noninteractive TZ=UTC +apt-get update -qq && apt-get install -y -qq openjdk-17-jdk binutils file > /dev/null 2>&1 +export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 + +echo "=== Platform ===" +uname -m +java -version 2>&1 | head -1 + +echo "" +echo "=== Library checks ===" +ALL_OK=true + +for f in /libs/*.so; do + [ -f "$f" ] || continue + name=$(basename "$f" .so) + name=${name#lib} # strip "lib" prefix + echo "" + echo "--- $name ---" + + # Check: 64-bit ELF + arch=$(file "$f") + if echo "$arch" | grep -q "ELF 64-bit.*x86-64"; then + echo " arch: x86_64 OK" + else + echo " arch: FAIL - $arch" + ALL_OK=false + continue + fi + + # Check: glibc version requirements + max_glibc=$(objdump -T "$f" 2>/dev/null | grep -oP "GLIBC_\K[0-9.]+" | sort -V | tail -1) + if [ -z "$max_glibc" ]; then + echo " glibc: (no GLIBC symbols - statically linked or pure C)" + else + echo " glibc: requires <= $max_glibc" + fi + + # Check: JNI symbols + jni_count=$(nm -D "$f" 2>/dev/null | grep -c "T Java_" || true) + echo " jni: $jni_count exported symbols" + if [ "$jni_count" -eq 0 ]; then + echo " WARN: no JNI symbols found" + ALL_OK=false + fi + + # Check: runtime dependencies + deps=$(ldd "$f" 2>/dev/null | grep -v "linux-vdso\|ld-linux" | awk "{print \$1}" | tr "\n" " ") + echo " deps: $deps" +done + +echo "" +echo "=== JVM load test ===" + +# Write a Java test that loads each native library and tries to instantiate a solver +mkdir -p /tmp/jnitest +cat > /tmp/jnitest/TestSolvers.java << JAVAEOF +import java.io.File; + +public class TestSolvers { + public static void main(String[] args) { + String libDir = args.length > 0 ? args[0] : "/libs"; + String jarDir = args.length > 1 ? args[1] : "/jars"; + + // Map of library name -> JNI class that loads it + String[][] solvers = { + {"glucose", "kodkod.engine.satlab.Glucose"}, + {"minisat", "kodkod.engine.satlab.MiniSat"}, + {"minisatprover", "kodkod.engine.satlab.MiniSatProver"}, + {"lingeling", "kodkod.engine.satlab.Lingeling"}, + }; + + int passed = 0, failed = 0; + + for (String[] solver : solvers) { + String libName = solver[0]; + String className = solver[1]; + System.out.print(libName + ": "); + try { + // Load the native library directly + System.loadLibrary(libName); + System.out.print("loaded"); + + // Try to instantiate the solver via the Java wrapper + Class cls = Class.forName(className); + Object instance = cls.getMethod("instance").invoke( + cls.getField(capitalize(libName)).get(null) + ); + System.out.println(" ... SKIP class test (need SATFactory)"); + passed++; + } catch (UnsatisfiedLinkError e) { + System.out.println("LOAD FAILED: " + e.getMessage()); + failed++; + } catch (Exception e) { + // Library loaded but class instantiation failed - that is + // fine, it means the .so is valid. The class test needs + // the full kodkod classpath which we test separately. + System.out.println(" OK (JNI load succeeded)"); + passed++; + } + } + + System.out.println(); + System.out.println(passed + " passed, " + failed + " failed"); + System.exit(failed > 0 ? 1 : 0); + } + + static String capitalize(String s) { + return s.substring(0,1).toUpperCase() + s.substring(1); + } +} +JAVAEOF + +cd /tmp/jnitest +javac TestSolvers.java +java -Djava.library.path=/libs -cp . TestSolvers /libs /jars +RESULT=$? + +echo "" +if [ "$ALL_OK" = true ] && [ $RESULT -eq 0 ]; then + echo "=== ALL CHECKS PASSED ===" +else + echo "=== SOME CHECKS FAILED ===" + exit 1 +fi +' + +echo "Testing native solver libraries for Linux x86_64" +echo "Image: $IMAGE ($PLATFORM)" +echo "" + +docker run --rm --platform="$PLATFORM" \ + -v "$SCRIPT_DIR/linux-x86_64":/libs:ro \ + -v "$FORGE_ROOT/forge/pardinus-cli/jar":/jars:ro \ + -w /tmp \ + "$IMAGE" bash -c "$TEST_SCRIPT" diff --git a/forge/pardinus-cli/jar/win32/minisatprover.dll b/forge/pardinus-cli/jar/native/windows-x86/minisatprover.dll similarity index 100% rename from forge/pardinus-cli/jar/win32/minisatprover.dll rename to forge/pardinus-cli/jar/native/windows-x86/minisatprover.dll diff --git a/forge/pardinus-cli/jar/libminisatprover.dll.a b/forge/pardinus-cli/jar/native/windows-x86_64/libminisatprover.dll.a similarity index 100% rename from forge/pardinus-cli/jar/libminisatprover.dll.a rename to forge/pardinus-cli/jar/native/windows-x86_64/libminisatprover.dll.a diff --git a/forge/pardinus-cli/jar/minisatprover.dll b/forge/pardinus-cli/jar/native/windows-x86_64/minisatprover.dll similarity index 100% rename from forge/pardinus-cli/jar/minisatprover.dll rename to forge/pardinus-cli/jar/native/windows-x86_64/minisatprover.dll diff --git a/forge/pardinus-cli/jar/win64/minisatprover.dll b/forge/pardinus-cli/jar/win64/minisatprover.dll deleted file mode 100644 index 584fa378d..000000000 Binary files a/forge/pardinus-cli/jar/win64/minisatprover.dll and /dev/null differ diff --git a/forge/pardinus-cli/server/pardinus-server.rkt b/forge/pardinus-cli/server/pardinus-server.rkt index 957f8d1ee..ee3cb9b04 100755 --- a/forge/pardinus-cli/server/pardinus-server.rkt +++ b/forge/pardinus-cli/server/pardinus-server.rkt @@ -24,17 +24,21 @@ (find-executable-path (if windows? "java.exe" "java")))] [path-separator (if windows? ";" ":")] [cp (foldl string-append "" (add-between (map path->string jars) path-separator))] - ;[lib (path->string (build-path pardinus/jni (case (system-type) - ;[(macosx) "darwin_x86_64"] - ;[(unix) "linux_x86_64"] - ;[(windows) "win_x86_64"])))] - ;[-Djava.library.path (string-append "-Djava.library.path=" lib)] + [native-subdir (case (system-type) + [(macosx) "macos"] + [(unix) (if (equal? (system-type 'word) 64) + "linux-x86_64" + "linux-x86")] + [(windows) (if (equal? (system-type 'word) 64) + "windows-x86_64" + "windows-x86")])] + [native-dir (build-path pardinus/jar "native" native-subdir)] [error-out (build-path (find-system-path 'home-dir) "forge-pardinus-error-output.txt")]) - - (when (> (get-verbosity) VERBOSITY_LOW) + + (when (> (get-verbosity) VERBOSITY_LOW) (printf " Starting solver process. subtype: ~a~n" solver-subtype)) - (define lib-path (string-append "-Djava.library.path=" (path->string pardinus/jar))) + (define lib-path (string-append "-Djava.library.path=" (path->string native-dir))) (define solver-subtype-str (cond [(equal? solver-subtype 'target) "-target-oriented"] [(equal? solver-subtype 'temporal) "-temporal"] [(equal? solver-subtype 'default) ""] diff --git a/forge/run-tests.sh b/forge/run-tests.sh index 31a0b1033..84c0bc27e 100755 --- a/forge/run-tests.sh +++ b/forge/run-tests.sh @@ -91,20 +91,21 @@ done # test suite on Windows, we create the file dynamically based on OS. # If running from Git Bash, uname will return a different value. osid=$(uname) -if [[ "$testDir" != "tests" ]]; then - echo "Skipping unusual filename handling, as script was run on a subdirectory of the tests directory." +quotesDir="tests/forge/other" +if [[ "$testDir" != "tests" && "$testDir" != "tests/forge" && "$testDir" != "tests/forge/other" ]]; then + echo "Skipping unusual filename handling (not running forge tests)." elif [[ $(uname) != "Windows" && ! $(uname) =~ ^MINGW ]]; then echo "Testing unusual filename handling: creating file with quotes in its name..." - touch "$testDir/forge/other/quotes_in_\"_'_filename.frg" - cat "$testDir/forge/other/QUOTES_TEMPLATE.txt" > "$testDir/forge/other/quotes_in_\"_'_filename.frg" - - racket "$testDir/forge/other/quotes_in_\"_'_filename.frg" -O run_sterling \'off > /dev/null + touch "$quotesDir/quotes_in_\"_'_filename.frg" + cat "$quotesDir/QUOTES_TEMPLATE.txt" > "$quotesDir/quotes_in_\"_'_filename.frg" + + racket "$quotesDir/quotes_in_\"_'_filename.frg" -O run_sterling \'off > /dev/null testExitCode=$? if [[ $testExitCode -ne 0 ]]; then echo "Test failed with code $testExitCode" exitCode=1 fi - rm "$testDir/forge/other/quotes_in_\"_'_filename.frg" + rm "$quotesDir/quotes_in_\"_'_filename.frg" else echo "Windows (uname = $osid) forbids files with quotes in their name; skipping that test..." fi diff --git a/forge/sterling/build/4816.bundle.js b/forge/sterling/build/4816.bundle.js new file mode 100644 index 000000000..b84593260 --- /dev/null +++ b/forge/sterling/build/4816.bundle.js @@ -0,0 +1,2 @@ +/*! For license information please see 4816.bundle.js.LICENSE.txt */ +(self.webpackChunksterling_layout=self.webpackChunksterling_layout||[]).push([[4816],{67319:(e,t,n)=>{"use strict";n.d(t,{UQ:()=>M,KF:()=>B,XE:()=>V,Qd:()=>F,Hk:()=>W});var i=n(10894),o=n(105),r=n(37496),s=n(44592),a=n(26450),l=n(67294);function c(){return c=Object.assign||function(e){for(var t=1;t=t&&(i=0),i}function h(e,t,n){var i=e-1;return n&&i<0&&(i=t),i}var g="undefined"!=typeof window?l.useLayoutEffect:l.useEffect,p=function(){var e=this;this.descendants=new Map,this.register=function(t){var n;if(null!=t)return"object"==typeof(n=t)&&"nodeType"in n&&n.nodeType===Node.ELEMENT_NODE?e.registerNode(t):function(n){e.registerNode(n,t)}},this.unregister=function(t){e.descendants.delete(t);var n=d(Array.from(e.descendants.keys()));e.assignIndex(n)},this.destroy=function(){e.descendants.clear()},this.assignIndex=function(t){e.descendants.forEach((function(e){var n=t.indexOf(e.node);e.index=n,e.node.dataset.index=e.index.toString()}))},this.count=function(){return e.descendants.size},this.enabledCount=function(){return e.enabledValues().length},this.values=function(){return Array.from(e.descendants.values()).sort((function(e,t){return e.index-t.index}))},this.enabledValues=function(){return e.values().filter((function(e){return!e.disabled}))},this.item=function(t){if(0!==e.count())return e.values()[t]},this.enabledItem=function(t){if(0!==e.enabledCount())return e.enabledValues()[t]},this.first=function(){return e.item(0)},this.firstEnabled=function(){return e.enabledItem(0)},this.last=function(){return e.item(e.descendants.size-1)},this.lastEnabled=function(){var t=e.enabledValues().length-1;return e.enabledItem(t)},this.indexOf=function(t){var n,i;return t&&null!=(n=null==(i=e.descendants.get(t))?void 0:i.index)?n:-1},this.enabledIndexOf=function(t){return null==t?-1:e.enabledValues().findIndex((function(e){return e.node.isSameNode(t)}))},this.next=function(t,n){void 0===n&&(n=!0);var i=u(t,e.count(),n);return e.item(i)},this.nextEnabled=function(t,n){void 0===n&&(n=!0);var i=e.item(t);if(i){var o=u(e.enabledIndexOf(i.node),e.enabledCount(),n);return e.enabledItem(o)}},this.prev=function(t,n){void 0===n&&(n=!0);var i=h(t,e.count()-1,n);return e.item(i)},this.prevEnabled=function(t,n){void 0===n&&(n=!0);var i=e.item(t);if(i){var o=h(e.enabledIndexOf(i.node),e.enabledCount()-1,n);return e.enabledItem(o)}},this.registerNode=function(t,n){if(t&&!e.descendants.has(t)){var i=d(Array.from(e.descendants.keys()).concat(t));null!=n&&n.disabled&&(n.disabled=!!n.disabled);var o=c({node:t,index:-1},n);e.descendants.set(t,o),e.assignIndex(i)}}},f=(0,a.kr)({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"}),m=f[0],v=f[1],_=n(97375);function b(){return b=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var w=["onChange","defaultIndex","index","allowMultiple","allowToggle"],C=["isDisabled","isFocusable","id"],S=[m,function(){return v()},function(){return e=(0,l.useRef)(new p),g((function(){return function(){return e.current.destroy()}})),e.current;var e},function(e){return function(e){var t=v(),n=(0,l.useState)(-1),i=n[0],o=n[1],r=(0,l.useRef)(null);g((function(){return function(){r.current&&t.unregister(r.current)}}),[]),g((function(){if(r.current){var e=Number(r.current.dataset.index);i==e||Number.isNaN(e)||o(e)}}));var s=e?t.register(e):t.register;return{descendants:t,index:i,enabledIndex:t.enabledIndexOf(r.current),register:(0,a.lq)(s,r)}}(e)}],x=S[0],k=S[2],L=S[3];var N=(0,a.kr)({name:"AccordionContext",errorMessage:"useAccordionContext: `context` is undefined. Seems you forgot to wrap the accordion components in ``"}),E=N[0],D=N[1];var I=["children","reduceMotion"],T=["htmlProps","descendants"],A=["htmlProps"],M=(0,o.Gp)((function(e,t){var n=e.children,i=e.reduceMotion,r=y(e,I),a=(0,o.jC)("Accordion",r),c=function(e){var t=e.onChange,n=e.defaultIndex,i=e.index,o=e.allowMultiple,r=e.allowToggle,a=y(e,w);!function(e){var t=e.index||e.defaultIndex,n=!(0,s.o8)(t)&&!(0,s.kJ)(t)&&e.allowMultiple;(0,s.ZK)({condition:!!n,message:"If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: "+typeof t+","})}(e),function(e){(0,s.ZK)({condition:!(!e.allowMultiple||!e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}(e);var c=k(),d=(0,l.useState)(-1),u=d[0],h=d[1];(0,_.zq)((function(){h(-1)}));var g=(0,_.Tx)({value:i,defaultValue:function(){return o?null!=n?n:[]:null!=n?n:-1},onChange:t}),p=g[0],f=g[1];return{index:p,setIndex:f,htmlProps:a,getAccordionItemProps:function(e){var t=!1;return null!==e&&(t=(0,s.kJ)(p)?p.includes(e):p===e),{isOpen:t,onChange:function(t){if(null!==e)if(o&&(0,s.kJ)(p)){var n=t?(0,s.jX)(p,e):(0,s.cl)(p,e);f(n)}else t?f(e):r&&f(-1)}}},focusedIndex:u,setFocusedIndex:h,descendants:c}}((0,o.Lr)(r)),d=c.htmlProps,u=c.descendants,h=y(c,T),g=l.useMemo((function(){return b({},h,{reduceMotion:!!i})}),[h,i]);return l.createElement(x,{value:u},l.createElement(E,{value:g},l.createElement(o.Fo,{value:a},l.createElement(o.m$.div,b({ref:t},d,{className:(0,s.cx)("chakra-accordion",r.className)}),n))))}));s.Ts&&(M.displayName="Accordion");var O=(0,a.kr)({name:"AccordionItemContext",errorMessage:"useAccordionItemContext: `context` is undefined. Seems you forgot to wrap the accordion item parts in `` "}),R=O[0],P=O[1],F=(0,o.Gp)((function(e,t){var n=e.children,i=e.className,r=function(e){var t=e.isDisabled,n=e.isFocusable,i=e.id,o=y(e,C),r=D(),c=r.getAccordionItemProps,d=r.setFocusedIndex,u=(0,l.useRef)(null),h=(0,_.ZS)(i,"accordion-button","accordion-panel"),g=h[0],p=h[1];!function(e){(0,s.ZK)({condition:!(!e.isFocusable||e.isDisabled),message:"Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well.\n "})}(e);var f=L({disabled:t&&!n}),m=f.register,v=f.index,w=f.descendants,S=c(-1===v?null:v),x=S.isOpen,k=S.onChange;!function(e){(0,s.ZK)({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}({isOpen:x,isDisabled:t});var N=(0,l.useCallback)((function(){null==k||k(!x),d(v)}),[v,d,x,k]),E=(0,l.useCallback)((function(e){var t={ArrowDown:function(){var e=w.nextEnabled(v);e&&(0,s.T_)(e.node)},ArrowUp:function(){var e=w.prevEnabled(v);e&&(0,s.T_)(e.node)},Home:function(){var e=w.firstEnabled();e&&(0,s.T_)(e.node)},End:function(){var e=w.lastEnabled();e&&(0,s.T_)(e.node)}}[(0,s.uh)(e)];t&&(e.preventDefault(),t(e))}),[w,v]),I=(0,l.useCallback)((function(){d(v)}),[d,v]),T=(0,l.useCallback)((function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),b({},e,{type:"button",ref:(0,a.lq)(m,u,n),id:g,disabled:!!t,"aria-expanded":!!x,"aria-controls":p,onClick:(0,s.v0)(e.onClick,N),onFocus:(0,s.v0)(e.onFocus,I),onKeyDown:(0,s.v0)(e.onKeyDown,E)})}),[g,t,x,N,I,E,p,m]),A=(0,l.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),b({},e,{ref:t,role:"region",id:p,"aria-labelledby":g,hidden:!x})}),[g,x,p]);return{isOpen:x,isDisabled:t,isFocusable:n,onOpen:function(){null==k||k(!0)},onClose:function(){null==k||k(!1)},getButtonProps:T,getPanelProps:A,htmlProps:o}}(e),c=r.htmlProps,d=y(r,A),u=b({},(0,o.yK)().container,{overflowAnchor:"none"}),h=l.useMemo((function(){return d}),[d]);return l.createElement(R,{value:h},l.createElement(o.m$.div,b({ref:t},c,{className:(0,s.cx)("chakra-accordion__item",i),__css:u}),(0,s.Pu)(n,{isExpanded:!!d.isOpen,isDisabled:!!d.isDisabled})))}));s.Ts&&(F.displayName="AccordionItem");var B=(0,o.Gp)((function(e,t){var n=(0,P().getButtonProps)(e,t),i=b({display:"flex",alignItems:"center",width:"100%",outline:0},(0,o.yK)().button);return l.createElement(o.m$.button,b({},n,{className:(0,s.cx)("chakra-accordion__button",e.className),__css:i}))}));s.Ts&&(B.displayName="AccordionButton");var W=(0,o.Gp)((function(e,t){var n=D().reduceMotion,i=P(),a=i.getPanelProps,c=i.isOpen,d=a(e,t),u=(0,s.cx)("chakra-accordion__panel",e.className),h=(0,o.yK)();n||delete d.hidden;var g=l.createElement(o.m$.div,b({},d,{__css:h.panel,className:u}));return n?g:l.createElement(r.UO,{in:c},g)}));s.Ts&&(W.displayName="AccordionPanel");var V=function(e){var t=P(),n=t.isOpen,r=t.isDisabled,a=D().reduceMotion,c=(0,s.cx)("chakra-accordion__icon",e.className),d=b({opacity:r?.4:1,transform:n?"rotate(-180deg)":void 0,transition:a?void 0:"transform 0.2s",transformOrigin:"center"},(0,o.yK)().icon);return l.createElement(i.JO,b({viewBox:"0 0 24 24","aria-hidden":!0,className:c,__css:d},e),l.createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}))};s.Ts&&(V.displayName="AccordionIcon")},68921:(e,t,n)=>{"use strict";n.d(t,{zx:()=>E,hE:()=>C,hU:()=>T});var i=n(97375),o=n(105),r=n(44592),s=n(38554),a=n.n(s),l=n(67294),c=n(26450),d=n(70917),u=n(1358);function h(){return h=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(i,g),w=(0,r.cx)("chakra-spinner",b),C=h({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:d,borderBottomColor:_,borderLeftColor:_,animation:p+" "+m+" linear infinite"},n);return l.createElement(o.m$.div,h({ref:t,__css:C,className:w},y),a&&l.createElement(u.TX,null,a))}));function m(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i=0||(o[n]=e[n]);return o}function v(){return v=Object.assign||function(e){for(var t=1;t *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}}:{"& > *:not(style) ~ *:not(style)":{marginStart:d}}),l.createElement(y,{value:f},l.createElement(o.m$.div,v({ref:t,role:"group",__css:b,className:p},g)))}));r.Ts&&(C.displayName="ButtonGroup");var S=["label","placement","spacing","children","className","__css"],x=function(e){var t=e.label,n=e.placement;e.spacing;var i=e.children,s=void 0===i?l.createElement(f,{color:"currentColor",width:"1em",height:"1em"}):i,a=e.className,c=e.__css,d=m(e,S),u=(0,r.cx)("chakra-button__spinner",a),h="start"===n?"marginEnd":"marginStart",g=l.useMemo((function(){var e;return v(((e={display:"flex",alignItems:"center",position:t?"relative":"absolute"})[h]=t?"0.5rem":0,e.fontSize="1em",e.lineHeight="normal",e),c)}),[c,t,h]);return l.createElement(o.m$.div,v({className:u},d,{__css:g}),s)};r.Ts&&(x.displayName="ButtonSpinner");var k=["children","className"],L=function(e){var t=e.children,n=e.className,i=m(e,k),s=l.isValidElement(t)?l.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,a=(0,r.cx)("chakra-button__icon",n);return l.createElement(o.m$.span,v({display:"inline-flex",alignSelf:"center",flexShrink:0},i,{className:a}),s)};r.Ts&&(L.displayName="ButtonIcon");var N=["isDisabled","isLoading","isActive","isFullWidth","children","leftIcon","rightIcon","loadingText","iconSpacing","type","spinner","spinnerPlacement","className","as"],E=(0,o.Gp)((function(e,t){var n,s,c,d,u=w(),h=(0,o.mq)("Button",v({},u,e)),g=(0,o.Lr)(e),p=g.isDisabled,f=void 0===p?null==u?void 0:u.isDisabled:p,_=g.isLoading,b=g.isActive,y=g.isFullWidth,C=g.children,S=g.leftIcon,k=g.rightIcon,L=g.loadingText,E=g.iconSpacing,I=void 0===E?"0.5rem":E,T=g.type,A=g.spinner,M=g.spinnerPlacement,O=void 0===M?"start":M,R=g.className,P=g.as,F=m(g,N),B=l.useMemo((function(){var e,t=a()({},null!=(e=null==h?void 0:h._focus)?e:{},{zIndex:1});return v({display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",width:y?"100%":"auto"},h,!!u&&{_focus:t})}),[h,u,y]),W=(n=P,c=(s=l.useState(!n))[0],d=s[1],{ref:l.useCallback((function(e){e&&d("BUTTON"===e.tagName)}),[]),type:c?"button":void 0}),V=W.ref,z=W.type,H={rightIcon:k,leftIcon:S,iconSpacing:I,children:C};return l.createElement(o.m$.button,v({disabled:f||_,ref:(0,i.qq)(t,V),as:P,type:null!=T?T:z,"data-active":(0,r.PB)(b),"data-loading":(0,r.PB)(_),__css:B,className:(0,r.cx)("chakra-button",R)},F),_&&"start"===O&&l.createElement(x,{className:"chakra-button__spinner--start",label:L,placement:"start"},A),_?L||l.createElement(o.m$.span,{opacity:0},l.createElement(D,H)):l.createElement(D,H),_&&"end"===O&&l.createElement(x,{className:"chakra-button__spinner--end",label:L,placement:"end"},A))}));function D(e){var t=e.leftIcon,n=e.rightIcon,i=e.children,o=e.iconSpacing;return l.createElement(l.Fragment,null,t&&l.createElement(L,{marginEnd:o},t),i,n&&l.createElement(L,{marginStart:o},n))}r.Ts&&(E.displayName="Button");var I=["icon","children","isRound","aria-label"],T=(0,o.Gp)((function(e,t){var n=e.icon,i=e.children,o=e.isRound,r=e["aria-label"],s=m(e,I),a=n||i,c=l.isValidElement(a)?l.cloneElement(a,{"aria-hidden":!0,focusable:!1}):null;return l.createElement(E,v({padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":r},s),c)}));r.Ts&&(T.displayName="IconButton")},84746:(e,t,n)=>{"use strict";n.d(t,{P:()=>d});var i=n(10894),o=n(105),r=n(44592),s=n(67294);function a(){return a=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(i,l);return s.createElement(o.m$.button,a({type:"button","aria-label":"Close",ref:t,disabled:d,__css:a({},{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},n,u)},h),r||s.createElement(c,{width:"1em",height:"1em"}))}));r.Ts&&(d.displayName="CloseButton")},20949:(e,t,n)=>{"use strict";n.d(t,{kc:()=>f,SG:()=>v,If:()=>m});var i=n(85393),o=n(44592),r=n(67294),s="chakra-ui-light",a="chakra-ui-dark",l={classList:{add:o.ZT,remove:o.ZT}};var c="(prefers-color-scheme: dark)";var d=function(){return document.documentElement.style.getPropertyValue("--chakra-ui-color-mode")},u=function(e){o.jU&&document.documentElement.style.setProperty("--chakra-ui-color-mode",e)},h=function(){return"undefined"!=typeof Storage},g="chakra-ui-color-mode",p={get:function(e){if(!h())return e;try{var t=localStorage.getItem(g);return null!=t?t:e}catch(t){return o.Ts&&console.log(t),e}},set:function(e){if(h())try{localStorage.setItem(g,e)}catch(e){o.Ts&&console.log(e)}},type:"localStorage"},f=r.createContext({});o.Ts&&(f.displayName="ColorModeContext");var m=function(){var e=r.useContext(f);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e};function v(e){var t=e.value,n=e.children,h=e.options,g=h.useSystemColorMode,m=h.initialColorMode,v=e.colorModeManager,_=void 0===v?p:v,b="dark"===m?"dark":"light",y=r.useState("cookie"===_.type?_.get(b):b),w=y[0],C=y[1],S=(0,i.O)().document;r.useEffect((function(){if(o.jU&&"localStorage"===_.type){var e=(i=b,(null!=(r=function(e){var t=null==window.matchMedia?void 0:window.matchMedia("(prefers-color-scheme: dark)");if(t)return!!t.media===t.matches}())?r:"dark"===i)?"dark":"light");if(g)return C(e);var t=d(),n=_.get();return C(t||(n||("system"===m?e:b)))}var i,r}),[_,g,b,m]),r.useEffect((function(){var e="dark"===w;(function(e,t){var n=function(e){return o.jU?e.body:l}(t);n.classList.add(e?a:s),n.classList.remove(e?s:a)})(e,S),u(e?"dark":"light")}),[w,S]);var x=r.useCallback((function(e,t){if(void 0===t&&(t=!1),t){if(_.get()&&!g)return}else _.set(e);C(e)}),[_,g]),k=r.useCallback((function(){x("light"===w?"dark":"light")}),[w,x]);r.useEffect((function(){var e,t=g||"system"===m;return t&&(e=function(e){if(!("matchMedia"in window))return o.ZT;var t=window.matchMedia(c),n=function(){e(t.matches?"dark":"light",!0)};return t.addEventListener("change",n),function(){t.removeEventListener("change",n)}}(x)),function(){e&&t&&e()}}),[x,g,m]);var L=r.useMemo((function(){return{colorMode:null!=t?t:w,toggleColorMode:t?o.ZT:k,setColorMode:t?o.ZT:x}}),[w,x,k,t]);return r.createElement(f.Provider,{value:L},n)}o.Ts&&(v.displayName="ColorModeProvider"),o.Ts,o.Ts},79762:(e,t,n)=>{"use strict";n.d(t,{NI:()=>m,lX:()=>k,Yp:()=>y,NJ:()=>f,Kn:()=>w});var i=n(97375),o=n(105),r=n(44592),s=n(26450),a=n(67294),l=n(10894);function c(){return c=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var u=["id","isRequired","isInvalid","isDisabled","isReadOnly"],h=["getRootProps","htmlProps"],g=(0,s.kr)({strict:!1,name:"FormControlContext"}),p=g[0],f=g[1],m=(0,o.Gp)((function(e,t){var n=(0,o.jC)("Form",e),l=function(e){var t=e.id,n=e.isRequired,o=e.isInvalid,l=e.isDisabled,h=e.isReadOnly,g=d(e,u),p=(0,i.Me)(),f=t||"field-"+p,m=f+"-label",v=f+"-feedback",_=f+"-helptext",b=a.useState(!1),y=b[0],w=b[1],C=a.useState(!1),S=C[0],x=C[1],k=(0,i.kt)(),L=k[0],N=k[1],E=a.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),c({id:_},e,{ref:(0,s.lq)(t,(function(e){e&&x(!0)}))})}),[_]),D=a.useCallback((function(e,t){var n,i;return void 0===e&&(e={}),void 0===t&&(t=null),c({},e,{ref:t,"data-focus":(0,r.PB)(L),"data-disabled":(0,r.PB)(l),"data-invalid":(0,r.PB)(o),"data-readonly":(0,r.PB)(h),id:null!=(n=e.id)?n:m,htmlFor:null!=(i=e.htmlFor)?i:f})}),[f,l,L,o,h,m]),I=a.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),c({id:v},e,{ref:(0,s.lq)(t,(function(e){e&&w(!0)})),"aria-live":"polite"})}),[v]),T=a.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),c({},e,g,{ref:t,role:"group"})}),[g]),A=a.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),c({},e,{ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"})}),[]);return{isRequired:!!n,isInvalid:!!o,isReadOnly:!!h,isDisabled:!!l,isFocused:!!L,onFocus:N.on,onBlur:N.off,hasFeedbackText:y,setHasFeedbackText:w,hasHelpText:S,setHasHelpText:x,id:f,labelId:m,feedbackId:v,helpTextId:_,htmlProps:g,getHelpTextProps:E,getErrorMessageProps:I,getRootProps:T,getLabelProps:D,getRequiredIndicatorProps:A}}((0,o.Lr)(e)),g=l.getRootProps;l.htmlProps;var f=d(l,h),m=(0,r.cx)("chakra-form-control",e.className),v=a.useMemo((function(){return f}),[f]);return a.createElement(p,{value:v},a.createElement(o.Fo,{value:n},a.createElement(o.m$.div,c({},g({},t),{className:m,__css:n.container}))))}));r.Ts&&(m.displayName="FormControl");var v=(0,o.Gp)((function(e,t){var n=f(),i=(0,o.yK)(),s=(0,r.cx)("chakra-form__helper-text",e.className);return a.createElement(o.m$.div,c({},null==n?void 0:n.getHelpTextProps(e,t),{__css:i.helperText,className:s}))}));r.Ts&&(v.displayName="FormHelperText");var _=["isDisabled","isInvalid","isReadOnly","isRequired"],b=["id","disabled","readOnly","required","isRequired","isInvalid","isReadOnly","isDisabled","onFocus","onBlur"];function y(e){var t=w(e),n=t.isDisabled,i=t.isInvalid,o=t.isReadOnly,s=t.isRequired;return c({},d(t,_),{disabled:n,readOnly:o,required:s,"aria-invalid":(0,r.Qm)(i),"aria-required":(0,r.Qm)(s),"aria-readonly":(0,r.Qm)(o)})}function w(e){var t,n,i,o=f(),s=e.id,a=e.disabled,l=e.readOnly,u=e.required,h=e.isRequired,g=e.isInvalid,p=e.isReadOnly,m=e.isDisabled,v=e.onFocus,_=e.onBlur,y=d(e,b),w=e["aria-describedby"]?[e["aria-describedby"]]:[];return null!=o&&o.hasFeedbackText&&null!=o&&o.isInvalid&&w.push(o.feedbackId),null!=o&&o.hasHelpText&&w.push(o.helpTextId),c({},y,{"aria-describedby":w.join(" ")||void 0,id:null!=s?s:null==o?void 0:o.id,isDisabled:null!=(t=null!=a?a:m)?t:null==o?void 0:o.isDisabled,isReadOnly:null!=(n=null!=l?l:p)?n:null==o?void 0:o.isReadOnly,isRequired:null!=(i=null!=u?u:h)?i:null==o?void 0:o.isRequired,isInvalid:null!=g?g:null==o?void 0:o.isInvalid,onFocus:(0,r.v0)(null==o?void 0:o.onFocus,v),onBlur:(0,r.v0)(null==o?void 0:o.onBlur,_)})}var C=(0,o.Gp)((function(e,t){var n=(0,o.jC)("FormError",e),i=(0,o.Lr)(e),s=f();return null!=s&&s.isInvalid?a.createElement(o.Fo,{value:n},a.createElement(o.m$.div,c({},null==s?void 0:s.getErrorMessageProps(i,t),{className:(0,r.cx)("chakra-form__error-message",e.className),__css:c({display:"flex",alignItems:"center"},n.text)}))):null}));r.Ts&&(C.displayName="FormErrorMessage");var S=(0,o.Gp)((function(e,t){var n=(0,o.yK)(),i=f();if(null==i||!i.isInvalid)return null;var s=(0,r.cx)("chakra-form__error-icon",e.className);return a.createElement(l.ZP,c({ref:t,"aria-hidden":!0},e,{__css:n.icon,className:s}),a.createElement("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"}))}));r.Ts&&(S.displayName="FormErrorIcon");var x=["className","children","requiredIndicator"],k=(0,o.Gp)((function(e,t){var n,i=(0,o.mq)("FormLabel",e),s=(0,o.Lr)(e);s.className;var l=s.children,u=s.requiredIndicator,h=void 0===u?a.createElement(L,null):u,g=d(s,x),p=f(),m=null!=(n=null==p?void 0:p.getLabelProps(g,t))?n:c({ref:t},g);return a.createElement(o.m$.label,c({},m,{className:(0,r.cx)("chakra-form__label",s.className),__css:c({display:"block",textAlign:"start"},i)}),l,null!=p&&p.isRequired?h:null)}));r.Ts&&(k.displayName="FormLabel");var L=(0,o.Gp)((function(e,t){var n=f(),i=(0,o.yK)();if(null==n||!n.isRequired)return null;var s=(0,r.cx)("chakra-form__required-indicator",e.className);return a.createElement(o.m$.span,c({},null==n?void 0:n.getRequiredIndicatorProps(e,t),{__css:i.requiredIndicator,className:s}))}));r.Ts&&(L.displayName="RequiredIndicator")},97375:(e,t,n)=>{"use strict";n.d(t,{vc:()=>g,kt:()=>r,W6:()=>a,pY:()=>l,Tx:()=>c,qY:()=>m,OR:()=>v,NW:()=>y,Me:()=>p,ZS:()=>f,Yz:()=>w,qq:()=>S,Gw:()=>s,KS:()=>x,zq:()=>b,rf:()=>_});var i=n(67294),o=n(44592);function r(e){void 0===e&&(e=!1);var t=(0,i.useState)(e),n=t[0],o=t[1];return[n,{on:(0,i.useCallback)((function(){o(!0)}),[]),off:(0,i.useCallback)((function(){o(!1)}),[]),toggle:(0,i.useCallback)((function(){o((function(e){return!e}))}),[])}]}n(20640);var s=o.jU?i.useLayoutEffect:i.useEffect;function a(e,t){void 0===t&&(t=[]);var n=i.useRef(e);return s((function(){n.current=e})),i.useCallback((function(){for(var e=arguments.length,t=new Array(e),i=0;i1?t-1:0),o=1;o{"use strict";n.d(t,{JO:()=>c,IU:()=>u,ZP:()=>d});var i=n(105),o=n(44592),r=n(67294);function s(){return s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,a),_={ref:t,focusable:g,className:(0,o.cx)("chakra-icon",f),__css:s({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:u},m)},b=null!=c?c:l.viewBox;if(n&&"string"!=typeof n)return r.createElement(i.m$.svg,s({as:n},_,v));var y=null!=p?p:l.path;return r.createElement(i.m$.svg,s({verticalAlign:"middle",viewBox:b},_,v),y)}));o.Ts&&(c.displayName="Icon");var d=c;function u(e){var t=e.viewBox,n=void 0===t?"0 0 24 24":t,a=e.d,l=e.path,d=e.displayName,u=e.defaultProps,h=void 0===u?{}:u,g=(0,i.Gp)((function(e,t){return r.createElement(c,s({ref:t,viewBox:n},h,e),null!=l?l:r.createElement("path",{fill:"currentColor",d:a}))}));return o.Ts&&(g.displayName=d),g}},59876:(e,t,n)=>{"use strict";n.d(t,{XC:()=>r});var i=n(10894),o=n(67294),r=((0,i.IU)({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"}),(0,i.IU)({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"}),(0,i.IU)({d:"M23.414,20.591l-4.645-4.645a10.256,10.256,0,1,0-2.828,2.829l4.645,4.644a2.025,2.025,0,0,0,2.828,0A2,2,0,0,0,23.414,20.591ZM10.25,3.005A7.25,7.25,0,1,1,3,10.255,7.258,7.258,0,0,1,10.25,3.005Z",displayName:"Search2Icon"}),(0,i.IU)({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"}),(0,i.IU)({displayName:"SunIcon",path:o.createElement("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor"},o.createElement("circle",{cx:"12",cy:"12",r:"5"}),o.createElement("path",{d:"M12 1v2"}),o.createElement("path",{d:"M12 21v2"}),o.createElement("path",{d:"M4.22 4.22l1.42 1.42"}),o.createElement("path",{d:"M18.36 18.36l1.42 1.42"}),o.createElement("path",{d:"M1 12h2"}),o.createElement("path",{d:"M21 12h2"}),o.createElement("path",{d:"M4.22 19.78l1.42-1.42"}),o.createElement("path",{d:"M18.36 5.64l1.42-1.42"}))}),(0,i.IU)({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"}),(0,i.IU)({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:o.createElement("path",{fill:"currentColor",d:"M14 9h-3V6c0-.55-.45-1-1-1s-1 .45-1 1v3H6c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1z",fillRule:"evenodd"})}),(0,i.IU)({viewBox:"0 0 14 14",d:"M14,7.77 L14,6.17 L12.06,5.53 L11.61,4.44 L12.49,2.6 L11.36,1.47 L9.55,2.38 L8.46,1.93 L7.77,0.01 L6.17,0.01 L5.54,1.95 L4.43,2.4 L2.59,1.52 L1.46,2.65 L2.37,4.46 L1.92,5.55 L0,6.23 L0,7.82 L1.94,8.46 L2.39,9.55 L1.51,11.39 L2.64,12.52 L4.45,11.61 L5.54,12.06 L6.23,13.98 L7.82,13.98 L8.45,12.04 L9.56,11.59 L11.4,12.47 L12.53,11.34 L11.61,9.53 L12.08,8.44 L14,7.75 L14,7.77 Z M7,10 C5.34,10 4,8.66 4,7 C4,5.34 5.34,4 7,4 C8.66,4 10,5.34 10,7 C10,8.66 8.66,10 7,10 Z",displayName:"SettingsIcon"}),(0,i.IU)({displayName:"CheckCircleIcon",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"}),(0,i.IU)({d:"M19.5,9.5h-.75V6.75a6.75,6.75,0,0,0-13.5,0V9.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5ZM7.75,6.75a4.25,4.25,0,0,1,8.5,0V9a.5.5,0,0,1-.5.5H8.25a.5.5,0,0,1-.5-.5Z",displayName:"LockIcon"}),(0,i.IU)({d:"M19.5,9.5h-.75V6.75A6.751,6.751,0,0,0,5.533,4.811a1.25,1.25,0,1,0,2.395.717A4.251,4.251,0,0,1,16.25,6.75V9a.5.5,0,0,1-.5.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5Z",displayName:"UnlockIcon"}),(0,i.IU)({displayName:"ViewIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M23.432,10.524C20.787,7.614,16.4,4.538,12,4.6,7.6,4.537,3.213,7.615.568,10.524a2.211,2.211,0,0,0,0,2.948C3.182,16.351,7.507,19.4,11.839,19.4h.308c4.347,0,8.671-3.049,11.288-5.929A2.21,2.21,0,0,0,23.432,10.524ZM7.4,12A4.6,4.6,0,1,1,12,16.6,4.6,4.6,0,0,1,7.4,12Z"}),o.createElement("circle",{cx:"12",cy:"12",r:"2"}))}),(0,i.IU)({displayName:"ViewOffIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M23.2,10.549a20.954,20.954,0,0,0-4.3-3.6l4-3.995a1,1,0,1,0-1.414-1.414l-.018.018a.737.737,0,0,1-.173.291l-19.5,19.5c-.008.007-.018.009-.026.017a1,1,0,0,0,1.631,1.088l4.146-4.146a11.26,11.26,0,0,0,4.31.939h.3c4.256,0,8.489-2.984,11.051-5.8A2.171,2.171,0,0,0,23.2,10.549ZM16.313,13.27a4.581,4.581,0,0,1-3,3.028,4.3,4.3,0,0,1-3.1-.19.253.253,0,0,1-.068-.407l5.56-5.559a.252.252,0,0,1,.407.067A4.3,4.3,0,0,1,16.313,13.27Z"}),o.createElement("path",{d:"M7.615,13.4a.244.244,0,0,0,.061-.24A4.315,4.315,0,0,1,7.5,12,4.5,4.5,0,0,1,12,7.5a4.276,4.276,0,0,1,1.16.173.244.244,0,0,0,.24-.062l1.941-1.942a.254.254,0,0,0-.1-.421A10.413,10.413,0,0,0,12,4.75C7.7,4.692,3.4,7.7.813,10.549a2.15,2.15,0,0,0-.007,2.9,21.209,21.209,0,0,0,3.438,3.03.256.256,0,0,0,.326-.029Z"}))}),(0,i.IU)({d:"M11.2857,6.05714 L10.08571,4.85714 L7.85714,7.14786 L7.85714,1 L6.14286,1 L6.14286,7.14786 L3.91429,4.85714 L2.71429,6.05714 L7,10.42857 L11.2857,6.05714 Z M1,11.2857 L1,13 L13,13 L13,11.2857 L1,11.2857 Z",displayName:"DownloadIcon",viewBox:"0 0 14 14"}),(0,i.IU)({displayName:"DeleteIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"}))}),(0,i.IU)({displayName:"RepeatIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"}),o.createElement("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"}))}),(0,i.IU)({displayName:"RepeatClockIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M12.965,6a1,1,0,0,0-1,1v5.5a1,1,0,0,0,1,1h5a1,1,0,0,0,0-2h-3.75a.25.25,0,0,1-.25-.25V7A1,1,0,0,0,12.965,6Z"}),o.createElement("path",{d:"M12.567,1.258A10.822,10.822,0,0,0,2.818,8.4a.25.25,0,0,1-.271.163L.858,8.309a.514.514,0,0,0-.485.213.5.5,0,0,0-.021.53l2.679,4.7a.5.5,0,0,0,.786.107l3.77-3.746a.5.5,0,0,0-.279-.85L5.593,9.007a.25.25,0,0,1-.192-.35,8.259,8.259,0,1,1,7.866,11.59,1.25,1.25,0,0,0,.045,2.5h.047a10.751,10.751,0,1,0-.792-21.487Z"}))}),(0,i.IU)({displayName:"EditIcon",path:o.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},o.createElement("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),o.createElement("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"}))}),(0,i.IU)({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"}),(0,i.IU)({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"}));(0,i.IU)({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),(0,i.IU)({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"}),(0,i.IU)({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"}),(0,i.IU)({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"}),(0,i.IU)({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"}),(0,i.IU)({viewBox:"0 0 16 16",d:"M11.891 9.992a1 1 0 1 1 1.416 1.415l-4.3 4.3a1 1 0 0 1-1.414 0l-4.3-4.3A1 1 0 0 1 4.71 9.992l3.59 3.591 3.591-3.591zm0-3.984L8.3 2.417 4.709 6.008a1 1 0 0 1-1.416-1.415l4.3-4.3a1 1 0 0 1 1.414 0l4.3 4.3a1 1 0 1 1-1.416 1.415z",displayName:"ArrowUpDownIcon"}),(0,i.IU)({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"}),(0,i.IU)({displayName:"ExternalLinkIcon",path:o.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},o.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),o.createElement("path",{d:"M15 3h6v6"}),o.createElement("path",{d:"M10 14L21 3"}))}),(0,i.IU)({displayName:"LinkIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z"}),o.createElement("path",{d:"M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z"}))}),(0,i.IU)({displayName:"PlusSquareIcon",path:o.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},o.createElement("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"}),o.createElement("path",{d:"M12 8v8"}),o.createElement("path",{d:"M8 12h8"}))}),(0,i.IU)({displayName:"CalendarIcon",viewBox:"0 0 14 14",d:"M10.8889,5.5 L3.11111,5.5 L3.11111,7.05556 L10.8889,7.05556 L10.8889,5.5 Z M12.4444,1.05556 L11.6667,1.05556 L11.6667,0 L10.1111,0 L10.1111,1.05556 L3.88889,1.05556 L3.88889,0 L2.33333,0 L2.33333,1.05556 L1.55556,1.05556 C0.692222,1.05556 0.00777777,1.75556 0.00777777,2.61111 L0,12.5 C0,13.3556 0.692222,14 1.55556,14 L12.4444,14 C13.3,14 14,13.3556 14,12.5 L14,2.61111 C14,1.75556 13.3,1.05556 12.4444,1.05556 Z M12.4444,12.5 L1.55556,12.5 L1.55556,3.94444 L12.4444,3.94444 L12.4444,12.5 Z M8.55556,8.61111 L3.11111,8.61111 L3.11111,10.1667 L8.55556,10.1667 L8.55556,8.61111 Z"}),(0,i.IU)({d:"M0.913134,0.920639 C1.49851,0.331726 2.29348,0 3.12342,0 L10.8766,0 C11.7065,0 12.5015,0.331725 13.0869,0.920639 C13.6721,1.50939 14,2.30689 14,3.13746 L14,8.12943 C13.9962,8.51443 13.9059,8.97125 13.7629,9.32852 C13.6128,9.683 13.3552,10.0709 13.0869,10.3462 C12.813,10.6163 12.4265,10.8761 12.0734,11.0274 C11.7172,11.1716 11.2607,11.263 10.8766,11.2669 L10.1234,11.2669 L10.1234,12.5676 L10.1209,12.5676 C10.1204,12.793 10.0633,13.0791 9.97807,13.262 C9.8627,13.466 9.61158,13.7198 9.40818,13.8382 L9.40824,13.8383 C9.4077,13.8386 9.40716,13.8388 9.40661,13.8391 C9.40621,13.8393 9.4058,13.8396 9.40539,13.8398 L9.40535,13.8397 C9.22958,13.9254 8.94505,13.9951 8.75059,14 L8.74789,14 C8.35724,13.9963 7.98473,13.8383 7.71035,13.5617 L5.39553,11.2669 L3.12342,11.2669 C2.29348,11.2669 1.49851,10.9352 0.913134,10.3462 C0.644826,10.0709 0.387187,9.683 0.23711,9.32852 C0.0941235,8.97125 0.00379528,8.51443 0,8.12943 L0,3.13746 C0,2.30689 0.327915,1.50939 0.913134,0.920639 Z M3.12342,1.59494 C2.71959,1.59494 2.33133,1.75628 2.04431,2.04503 C1.75713,2.33395 1.59494,2.72681 1.59494,3.13746 L1.59494,8.12943 C1.59114,8.35901 1.62114,8.51076 1.71193,8.72129 C1.79563,8.9346 1.88065,9.06264 2.04431,9.22185 C2.33133,9.5106 2.71959,9.67195 3.12342,9.67195 L5.72383,9.67195 C5.93413,9.67195 6.13592,9.75502 6.28527,9.90308 L8.52848,12.1269 L8.52848,10.4694 C8.52848,10.029 8.88552,9.67195 9.32595,9.67195 L10.8766,9.67195 C11.1034,9.67583 11.2517,9.64614 11.4599,9.55518 C11.6712,9.47132 11.7976,9.38635 11.9557,9.22185 C12.1193,9.06264 12.2044,8.9346 12.2881,8.72129 C12.3789,8.51076 12.4089,8.35901 12.4051,8.12943 L12.4051,3.13746 C12.4051,2.72681 12.2429,2.33394 11.9557,2.04503 C11.6687,1.75628 11.2804,1.59494 10.8766,1.59494 L3.12342,1.59494 Z",displayName:"ChatIcon",viewBox:"0 0 14 14"}),(0,i.IU)({displayName:"TimeIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm0,22A10,10,0,1,1,22,12,10.011,10.011,0,0,1,12,22Z"}),o.createElement("path",{d:"M17.134,15.81,12.5,11.561V6.5a1,1,0,0,0-2,0V12a1,1,0,0,0,.324.738l4.959,4.545a1.01,1.01,0,0,0,1.413-.061A1,1,0,0,0,17.134,15.81Z"}))}),(0,i.IU)({displayName:"ArrowRightIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"}),o.createElement("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"}))}),(0,i.IU)({displayName:"ArrowLeftIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M10.416,12a2.643,2.643,0,0,1,.775-1.875L20.732.584a1.768,1.768,0,0,1,2.5,2.5l-8.739,8.739a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5l-9.541-9.541A2.643,2.643,0,0,1,10.416,12Z"}),o.createElement("path",{d:"M.25,12a2.643,2.643,0,0,1,.775-1.875L10.566.584a1.768,1.768,0,0,1,2.5,2.5L4.327,11.823a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5L1.025,13.875A2.643,2.643,0,0,1,.25,12Z"}))}),(0,i.IU)({displayName:"AtSignIcon",d:"M12,.5A11.634,11.634,0,0,0,.262,12,11.634,11.634,0,0,0,12,23.5a11.836,11.836,0,0,0,6.624-2,1.25,1.25,0,1,0-1.393-2.076A9.34,9.34,0,0,1,12,21a9.132,9.132,0,0,1-9.238-9A9.132,9.132,0,0,1,12,3a9.132,9.132,0,0,1,9.238,9v.891a1.943,1.943,0,0,1-3.884,0V12A5.355,5.355,0,1,0,12,17.261a5.376,5.376,0,0,0,3.861-1.634,4.438,4.438,0,0,0,7.877-2.736V12A11.634,11.634,0,0,0,12,.5Zm0,14.261A2.763,2.763,0,1,1,14.854,12,2.812,2.812,0,0,1,12,14.761Z"}),(0,i.IU)({displayName:"AttachmentIcon",d:"M21.843,3.455a6.961,6.961,0,0,0-9.846,0L1.619,13.832a5.128,5.128,0,0,0,7.252,7.252L17.3,12.653A3.293,3.293,0,1,0,12.646,8L7.457,13.184A1,1,0,1,0,8.871,14.6L14.06,9.409a1.294,1.294,0,0,1,1.829,1.83L7.457,19.67a3.128,3.128,0,0,1-4.424-4.424L13.411,4.869a4.962,4.962,0,1,1,7.018,7.018L12.646,19.67a1,1,0,1,0,1.414,1.414L21.843,13.3a6.96,6.96,0,0,0,0-9.846Z"}),(0,i.IU)({displayName:"UpDownIcon",viewBox:"-1 -1 9 11",d:"M 3.5 0L 3.98809 -0.569442L 3.5 -0.987808L 3.01191 -0.569442L 3.5 0ZM 3.5 9L 3.01191 9.56944L 3.5 9.98781L 3.98809 9.56944L 3.5 9ZM 0.488094 3.56944L 3.98809 0.569442L 3.01191 -0.569442L -0.488094 2.43056L 0.488094 3.56944ZM 3.01191 0.569442L 6.51191 3.56944L 7.48809 2.43056L 3.98809 -0.569442L 3.01191 0.569442ZM -0.488094 6.56944L 3.01191 9.56944L 3.98809 8.43056L 0.488094 5.43056L -0.488094 6.56944ZM 3.98809 9.56944L 7.48809 6.56944L 6.51191 5.43056L 3.01191 8.43056L 3.98809 9.56944Z"}),(0,i.IU)({d:"M23.555,8.729a1.505,1.505,0,0,0-1.406-.98H16.062a.5.5,0,0,1-.472-.334L13.405,1.222a1.5,1.5,0,0,0-2.81,0l-.005.016L8.41,7.415a.5.5,0,0,1-.471.334H1.85A1.5,1.5,0,0,0,.887,10.4l5.184,4.3a.5.5,0,0,1,.155.543L4.048,21.774a1.5,1.5,0,0,0,2.31,1.684l5.346-3.92a.5.5,0,0,1,.591,0l5.344,3.919a1.5,1.5,0,0,0,2.312-1.683l-2.178-6.535a.5.5,0,0,1,.155-.543l5.194-4.306A1.5,1.5,0,0,0,23.555,8.729Z",displayName:"StarIcon"}),(0,i.IU)({displayName:"EmailIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M11.114,14.556a1.252,1.252,0,0,0,1.768,0L22.568,4.87a.5.5,0,0,0-.281-.849A1.966,1.966,0,0,0,22,4H2a1.966,1.966,0,0,0-.289.021.5.5,0,0,0-.281.849Z"}),o.createElement("path",{d:"M23.888,5.832a.182.182,0,0,0-.2.039l-6.2,6.2a.251.251,0,0,0,0,.354l5.043,5.043a.75.75,0,1,1-1.06,1.061l-5.043-5.043a.25.25,0,0,0-.354,0l-2.129,2.129a2.75,2.75,0,0,1-3.888,0L7.926,13.488a.251.251,0,0,0-.354,0L2.529,18.531a.75.75,0,0,1-1.06-1.061l5.043-5.043a.251.251,0,0,0,0-.354l-6.2-6.2a.18.18,0,0,0-.2-.039A.182.182,0,0,0,0,6V18a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V6A.181.181,0,0,0,23.888,5.832Z"}))}),(0,i.IU)({d:"M2.20731,0.0127209 C2.1105,-0.0066419 1.99432,-0.00664663 1.91687,0.032079 C0.871279,0.438698 0.212942,1.92964 0.0580392,2.95587 C-0.426031,6.28627 2.20731,9.17133 4.62766,11.0689 C6.77694,12.7534 10.9012,15.5223 13.3409,12.8503 C13.6507,12.5211 14.0186,12.037 13.9993,11.553 C13.9412,10.7397 13.186,10.1588 12.6051,9.71349 C12.1598,9.38432 11.2304,8.47427 10.6495,8.49363 C10.1267,8.51299 9.79754,9.05515 9.46837,9.38432 L8.88748,9.96521 C8.79067,10.062 7.55145,9.24878 7.41591,9.15197 C6.91248,8.8228 6.4284,8.45491 6.00242,8.04829 C5.57644,7.64167 5.18919,7.19632 4.86002,6.73161 C4.7632,6.59607 3.96933,5.41495 4.04678,5.31813 C4.04678,5.31813 4.72448,4.58234 4.91811,4.2919 C5.32473,3.67229 5.63453,3.18822 5.16982,2.45243 C4.99556,2.18135 4.78257,1.96836 4.55021,1.73601 C4.14359,1.34875 3.73698,0.942131 3.27227,0.612963 C3.02055,0.419335 2.59457,0.0708094 2.20731,0.0127209 Z",displayName:"PhoneIcon",viewBox:"0 0 14 14"}),(0,i.IU)({viewBox:"0 0 10 10",d:"M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z",displayName:"DragHandleIcon"}),(0,i.IU)({displayName:"SpinnerIcon",path:o.createElement(o.Fragment,null,o.createElement("defs",null,o.createElement("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a"},o.createElement("stop",{stopColor:"currentColor",offset:"0%"}),o.createElement("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"}))),o.createElement("g",{transform:"translate(2)",fill:"none"},o.createElement("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"}),o.createElement("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"}),o.createElement("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"})))}),(0,i.IU)({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}),(0,i.IU)({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:o.createElement("path",{d:"M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z",fillRule:"evenodd",fill:"currentColor"})}),(0,i.IU)({d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z",displayName:"NotAllowedIcon"}),(0,i.IU)({d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z",displayName:"TriangleDownIcon"}),(0,i.IU)({d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z",displayName:"TriangleUpIcon"}),(0,i.IU)({displayName:"InfoOutlineIcon",path:o.createElement("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2"},o.createElement("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),o.createElement("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),o.createElement("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"}))}),(0,i.IU)({displayName:"BellIcon",d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"}),(0,i.IU)({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"}),(0,i.IU)({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm0,19a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,12,19Zm1.6-6.08a1,1,0,0,0-.6.917,1,1,0,1,1-2,0,3,3,0,0,1,1.8-2.75A2,2,0,1,0,10,9.255a1,1,0,1,1-2,0,4,4,0,1,1,5.6,3.666Z",displayName:"QuestionIcon"}),(0,i.IU)({displayName:"QuestionOutlineIcon",path:o.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},o.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),o.createElement("path",{fill:"none",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),o.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"}))}),(0,i.IU)({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"}),(0,i.IU)({displayName:"WarningTwoIcon",d:"M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z"}),(0,i.IU)({viewBox:"0 0 14 14",path:o.createElement("g",{fill:"currentColor"},o.createElement("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))}),(0,i.IU)({displayName:"MinusIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("rect",{height:"4",width:"20",x:"2",y:"10"}))}),(0,i.IU)({displayName:"HamburgerIcon",viewBox:"0 0 24 24",d:"M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"})},4612:(e,t,n)=>{"use strict";n.d(t,{II:()=>c});var i=n(79762),o=n(105),r=n(44592),s=n(67294),a=n(26450);function l(){return l=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}r.Ts&&(c.displayName="Input"),c.id="Input";var u=["placement"],h={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},g=(0,o.m$)("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),p=(0,o.Gp)((function(e,t){var n,i=e.placement,r=void 0===i?"left":i,a=d(e,u),c=null!=(n=h[r])?n:{},p=(0,o.yK)();return s.createElement(g,l({ref:t},a,{__css:l({},p.addon,c)}))}));r.Ts&&(p.displayName="InputAddon");var f=(0,o.Gp)((function(e,t){return s.createElement(p,l({ref:t,placement:"left"},e,{className:(0,r.cx)("chakra-input__left-addon",e.className)}))}));r.Ts&&(f.displayName="InputLeftAddon"),f.id="InputLeftAddon";var m=(0,o.Gp)((function(e,t){return s.createElement(p,l({ref:t,placement:"right"},e,{className:(0,r.cx)("chakra-input__right-addon",e.className)}))}));r.Ts&&(m.displayName="InputRightAddon"),m.id="InputRightAddon";var v=["children","className"],_=(0,o.Gp)((function(e,t){var n=(0,o.jC)("Input",e),i=(0,o.Lr)(e),c=i.children,u=i.className,h=d(i,v),g=(0,r.cx)("chakra-input__group",u),p={},f=(0,a.WR)(c),m=n.field;f.forEach((function(e){var t,i;n&&(m&&"InputLeftElement"===e.type.id&&(p.paddingStart=null!=(t=m.height)?t:m.h),m&&"InputRightElement"===e.type.id&&(p.paddingEnd=null!=(i=m.height)?i:m.h),"InputRightAddon"===e.type.id&&(p.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(p.borderStartRadius=0))}));var _=f.map((function(t){var n,i,o={size:(null==(n=t.props)?void 0:n.size)||e.size,variant:(null==(i=t.props)?void 0:i.variant)||e.variant};return"Input"!==t.type.id?s.cloneElement(t,o):s.cloneElement(t,Object.assign(o,p,t.props))}));return s.createElement(o.m$.div,l({className:g,ref:t,__css:{width:"100%",display:"flex",position:"relative"}},h),s.createElement(o.Fo,{value:n},_))}));r.Ts&&(_.displayName="InputGroup");var b=["placement"],y=["className"],w=["className"],C=(0,o.m$)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),S=(0,o.Gp)((function(e,t){var n,i,r,a=e.placement,c=void 0===a?"left":a,u=d(e,b),h=(0,o.yK)().field,g=((r={})["left"===c?"insetStart":"insetEnd"]="0",r.width=null!=(n=null==h?void 0:h.height)?n:null==h?void 0:h.h,r.height=null!=(i=null==h?void 0:h.height)?i:null==h?void 0:h.h,r.fontSize=null==h?void 0:h.fontSize,r);return s.createElement(C,l({ref:t,__css:g},u))}));S.id="InputElement",r.Ts&&(S.displayName="InputElement");var x=(0,o.Gp)((function(e,t){var n=e.className,i=d(e,y),o=(0,r.cx)("chakra-input__left-element",n);return s.createElement(S,l({ref:t,placement:"left",className:o},i))}));x.id="InputLeftElement",r.Ts&&(x.displayName="InputLeftElement");var k=(0,o.Gp)((function(e,t){var n=e.className,i=d(e,w),o=(0,r.cx)("chakra-input__right-element",n);return s.createElement(S,l({ref:t,placement:"right",className:o},i))}));k.id="InputRightElement",r.Ts&&(k.displayName="InputRightElement")},68527:(e,t,n)=>{"use strict";n.d(t,{Ct:()=>p,xu:()=>v,M5:()=>y,EK:()=>C,iz:()=>N,kC:()=>D,rj:()=>T,Ug:()=>J,X6:()=>M,LZ:()=>Z,Kq:()=>X,xv:()=>ne,gC:()=>ee});var i=n(105),o=n(94244),r=n(44592),s=n(67294),a=n(10894),l=n(26450);function c(){return c=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var u=["ratio","children","className"],h=(0,i.Gp)((function(e,t){var n=e.ratio,o=void 0===n?4/3:n,a=e.children,l=e.className,h=d(e,u),g=s.Children.only(a),p=(0,r.cx)("chakra-aspect-ratio",l);return s.createElement(i.m$.div,c({ref:t,position:"relative",className:p,_before:{height:0,content:'""',display:"block",paddingBottom:(0,r.XQ)(o,(function(e){return 1/e*100+"%"}))},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}}},h),g)}));r.Ts&&(h.displayName="AspectRatio");var g=["className"],p=(0,i.Gp)((function(e,t){var n=(0,i.mq)("Badge",e),o=(0,i.Lr)(e);o.className;var a=d(o,g);return s.createElement(i.m$.span,c({ref:t,className:(0,r.cx)("chakra-badge",e.className)},a,{__css:c({display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle"},n)}))}));r.Ts&&(p.displayName="Badge");var f=["size","centerContent"],m=["size"],v=(0,i.m$)("div");r.Ts&&(v.displayName="Box");var _=(0,i.Gp)((function(e,t){var n=e.size,i=e.centerContent,o=void 0===i||i,r=d(e,f),a=o?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return s.createElement(v,c({ref:t,boxSize:n,__css:c({},a,{flexShrink:0,flexGrow:0})},r))}));r.Ts&&(_.displayName="Square");var b=(0,i.Gp)((function(e,t){var n=e.size,i=d(e,m);return s.createElement(_,c({size:n,ref:t,borderRadius:"9999px"},i))}));r.Ts&&(b.displayName="Circle");var y=(0,i.m$)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});r.Ts&&(y.displayName="Center");var w=["className"],C=(0,i.Gp)((function(e,t){var n=(0,i.mq)("Code",e),o=(0,i.Lr)(e);o.className;var a=d(o,w);return s.createElement(i.m$.code,c({ref:t,className:(0,r.cx)("chakra-code",e.className)},a,{__css:c({display:"inline-block"},n)}))}));r.Ts&&(C.displayName="Code");var S=["className","centerContent"],x=(0,i.Gp)((function(e,t){var n=(0,i.Lr)(e),o=n.className,a=n.centerContent,l=d(n,S),u=(0,i.mq)("Container",e);return s.createElement(i.m$.div,c({ref:t,className:(0,r.cx)("chakra-container",o)},l,{__css:c({},u,a&&{display:"flex",flexDirection:"column",alignItems:"center"})}))}));r.Ts&&(x.displayName="Container");var k=["borderLeftWidth","borderBottomWidth","borderTopWidth","borderRightWidth","borderWidth","borderStyle","borderColor"],L=["className","orientation","__css"],N=(0,i.Gp)((function(e,t){var n=(0,i.mq)("Divider",e),o=n.borderLeftWidth,a=n.borderBottomWidth,l=n.borderTopWidth,u=n.borderRightWidth,h=n.borderWidth,g=n.borderStyle,p=n.borderColor,f=d(n,k),m=(0,i.Lr)(e),v=m.className,_=m.orientation,b=void 0===_?"horizontal":_,y=m.__css,w=d(m,L),C={vertical:{borderLeftWidth:o||u||h||"1px",height:"100%"},horizontal:{borderBottomWidth:a||l||h||"1px",width:"100%"}};return s.createElement(i.m$.hr,c({ref:t,"aria-orientation":b},w,{__css:c({},f,{border:"0",borderColor:p,borderStyle:g},C[b],y),className:(0,r.cx)("chakra-divider",v)}))}));r.Ts&&(N.displayName="Divider");var E=["direction","align","justify","wrap","basis","grow","shrink"],D=(0,i.Gp)((function(e,t){var n=e.direction,o=e.align,r=e.justify,a=e.wrap,l=e.basis,u=e.grow,h=e.shrink,g=d(e,E),p={display:"flex",flexDirection:n,alignItems:o,justifyContent:r,flexWrap:a,flexBasis:l,flexGrow:u,flexShrink:h};return s.createElement(i.m$.div,c({ref:t,__css:p},g))}));r.Ts&&(D.displayName="Flex");var I=["area","templateAreas","gap","rowGap","columnGap","column","row","autoFlow","autoRows","templateRows","autoColumns","templateColumns"],T=(0,i.Gp)((function(e,t){var n=e.area,o=e.templateAreas,r=e.gap,a=e.rowGap,l=e.columnGap,u=e.column,h=e.row,g=e.autoFlow,p=e.autoRows,f=e.templateRows,m=e.autoColumns,v=e.templateColumns,_=d(e,I),b={display:"grid",gridArea:n,gridTemplateAreas:o,gridGap:r,gridRowGap:a,gridColumnGap:l,gridAutoColumns:m,gridColumn:u,gridRow:h,gridAutoFlow:g,gridAutoRows:p,gridTemplateRows:f,gridTemplateColumns:v};return s.createElement(i.m$.div,c({ref:t,__css:b},_))}));r.Ts&&(T.displayName="Grid");var A=["className"],M=(0,i.Gp)((function(e,t){var n=(0,i.mq)("Heading",e),o=(0,i.Lr)(e);o.className;var a=d(o,A);return s.createElement(i.m$.h2,c({ref:t,className:(0,r.cx)("chakra-heading",e.className)},a,{__css:n}))}));r.Ts&&(M.displayName="Heading");var O=["className"],R=(0,i.Gp)((function(e,t){var n=(0,i.mq)("Kbd",e),o=(0,i.Lr)(e),a=o.className,l=d(o,O);return s.createElement(i.m$.kbd,c({ref:t,className:(0,r.cx)("chakra-kbd",a)},l,{__css:c({fontFamily:"mono"},n)}))}));r.Ts&&(R.displayName="Kbd");var P=["className","isExternal"],F=(0,i.Gp)((function(e,t){var n=(0,i.mq)("Link",e),o=(0,i.Lr)(e),a=o.className,l=o.isExternal,u=d(o,P);return s.createElement(i.m$.a,c({target:l?"_blank":void 0,rel:l?"noopener noreferrer":void 0,ref:t,className:(0,r.cx)("chakra-link",a)},u,{__css:n}))}));r.Ts&&(F.displayName="Link");var B=["children","styleType","stylePosition","spacing"],W=["as"],V=["as"],z=(0,i.Gp)((function(e,t){var n,o=(0,i.jC)("List",e),r=(0,i.Lr)(e),a=r.children,u=r.styleType,h=void 0===u?"none":u,g=r.stylePosition,p=r.spacing,f=d(r,B),m=(0,l.WR)(a),v=p?((n={})["& > *:not(style) ~ *:not(style)"]={mt:p},n):{};return s.createElement(i.Fo,{value:o},s.createElement(i.m$.ul,c({ref:t,listStyleType:h,listStylePosition:g,role:"list",__css:c({},o.container,v)},f),m))}));r.Ts&&(z.displayName="List");var H=(0,i.Gp)((function(e,t){e.as;var n=d(e,W);return s.createElement(z,c({ref:t,as:"ol",styleType:"decimal",marginStart:"1em"},n))}));r.Ts&&(H.displayName="OrderedList");var j=(0,i.Gp)((function(e,t){e.as;var n=d(e,V);return s.createElement(z,c({ref:t,as:"ul",styleType:"initial",marginStart:"1em"},n))}));r.Ts&&(j.displayName="UnorderedList");var U=(0,i.Gp)((function(e,t){var n=(0,i.yK)();return s.createElement(i.m$.li,c({ref:t},e,{__css:n.item}))}));r.Ts&&(U.displayName="ListItem");var K=(0,i.Gp)((function(e,t){var n=(0,i.yK)();return s.createElement(a.JO,c({ref:t,role:"presentation"},e,{__css:n.icon}))}));r.Ts&&(K.displayName="ListIcon");var $=["columns","spacingX","spacingY","spacing","minChildWidth"],q=(0,i.Gp)((function(e,t){var n,i,o=e.columns,a=e.spacingX,l=e.spacingY,u=e.spacing,h=e.minChildWidth,g=d(e,$),p=h?(i=h,(0,r.XQ)(i,(function(e){return(0,r.Ft)(e)?null:"repeat(auto-fit, minmax("+(t=e,((0,r.hj)(t)?t+"px":t)+", 1fr))");var t}))):(n=o,(0,r.XQ)(n,(function(e){return(0,r.Ft)(e)?null:"repeat("+e+", minmax(0, 1fr))"})));return s.createElement(T,c({ref:t,gap:u,columnGap:a,rowGap:l,templateColumns:p},g))}));r.Ts&&(q.displayName="SimpleGrid");var Z=(0,i.m$)("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});r.Ts&&(Z.displayName="Spacer");var G="& > *:not(style) ~ *:not(style)",Y=["isInline","direction","align","justify","spacing","wrap","children","divider","className","shouldWrapChildren"],Q=function(e){return s.createElement(i.m$.div,c({className:"chakra-stack__item"},e,{__css:c({display:"inline-block",flex:"0 0 auto",minWidth:0},e.__css)}))},X=(0,i.Gp)((function(e,t){var n,o=e.isInline,a=e.direction,u=e.align,h=e.justify,g=e.spacing,p=void 0===g?"0.5rem":g,f=e.wrap,m=e.children,v=e.divider,_=e.className,b=e.shouldWrapChildren,y=d(e,Y),w=o?"row":null!=a?a:"column",C=s.useMemo((function(){return function(e){var t,n=e.spacing,i=e.direction,o={column:{marginTop:n,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:n},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:n,marginStart:0},"row-reverse":{marginTop:0,marginEnd:n,marginBottom:0,marginStart:0}};return(t={flexDirection:i})[G]=(0,r.XQ)(i,(function(e){return o[e]})),t}({direction:w,spacing:p})}),[w,p]),S=s.useMemo((function(){return function(e){var t=e.spacing,n=e.direction,i={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":(0,r.XQ)(n,(function(e){return i[e]}))}}({spacing:p,direction:w})}),[p,w]),x=!!v,k=!b&&!x,L=(0,l.WR)(m),N=k?L:L.map((function(e,t){var n=void 0!==e.key?e.key:t,i=t+1===L.length,o=b?s.createElement(Q,{key:n},e):e;if(!x)return o;var r=i?null:s.cloneElement(v,{__css:S});return s.createElement(s.Fragment,{key:n},o,r)})),E=(0,r.cx)("chakra-stack",_);return s.createElement(i.m$.div,c({ref:t,display:"flex",alignItems:u,justifyContent:h,flexDirection:C.flexDirection,flexWrap:f,className:E,__css:x?{}:(n={},n[G]=C[G],n)},y),N)}));r.Ts&&(X.displayName="Stack");var J=(0,i.Gp)((function(e,t){return s.createElement(X,c({align:"center"},e,{direction:"row",ref:t}))}));r.Ts&&(J.displayName="HStack");var ee=(0,i.Gp)((function(e,t){return s.createElement(X,c({align:"center"},e,{direction:"column",ref:t}))}));r.Ts&&(ee.displayName="VStack");var te=["className","align","decoration","casing"],ne=(0,i.Gp)((function(e,t){var n=(0,i.mq)("Text",e),o=(0,i.Lr)(e);o.className,o.align,o.decoration,o.casing;var a=d(o,te),l=(0,r.YU)({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return s.createElement(i.m$.p,c({ref:t,className:(0,r.cx)("chakra-text",e.className)},l,a,{__css:n}))}));r.Ts&&(ne.displayName="Text");var ie=["spacing","children","justify","direction","align","className","shouldWrapChildren"],oe=["className"],re=(0,i.Gp)((function(e,t){var n=e.spacing,a=void 0===n?"0.5rem":n,l=e.children,u=e.justify,h=e.direction,g=e.align,p=e.className,f=e.shouldWrapChildren,m=d(e,ie),v=s.useMemo((function(){return{"--chakra-wrap-spacing":function(e){return(0,r.XQ)(a,(function(t){return(0,o.fr)("space",t)(e)}))},"--wrap-spacing":"calc(var(--chakra-wrap-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:u,alignItems:g,flexDirection:h,listStyleType:"none",padding:"0",margin:"calc(var(--wrap-spacing) * -1)","& > *:not(style)":{margin:"var(--wrap-spacing)"}}}),[a,u,g,h]),_=f?s.Children.map(l,(function(e,t){return s.createElement(se,{key:t},e)})):l;return s.createElement(i.m$.div,c({ref:t,className:(0,r.cx)("chakra-wrap",p)},m),s.createElement(i.m$.ul,{className:"chakra-wrap__list",__css:v},_))}));r.Ts&&(re.displayName="Wrap");var se=(0,i.Gp)((function(e,t){var n=e.className,o=d(e,oe);return s.createElement(i.m$.li,c({ref:t,__css:{display:"flex",alignItems:"flex-start"},className:(0,r.cx)("chakra-wrap__listitem",n)},o))}));r.Ts&&(se.displayName="WrapItem")},45073:(e,t,n)=>{"use strict";n.d(t,{u_:()=>Lt,fe:()=>At,ol:()=>Ot,hz:()=>Et,mz:()=>Mt,xB:()=>Tt,ZA:()=>It});var i=n(84746),o=n(67294),r=n(87462),s=(n(45697),"data-focus-lock"),a="data-focus-lock-disabled";function l(e,t){return n=t,i=function(t){return e.forEach((function(e){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(e,t)}))},(r=(0,o.useState)((function(){return{value:n,callback:i,facade:{get current(){return r.value},set current(e){var t=r.value;t!==e&&(r.value=e,r.callback(e,t))}}}}))[0]).callback=i,r.facade;var n,i,r}var c={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},d=function(e){var t=e.children;return o.createElement(o.Fragment,null,o.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:c}),t,t&&o.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:c}))};d.propTypes={},d.defaultProps={children:null};var u=function(){return u=Object.assign||function(e){for(var t,n=1,i=arguments.length;n1?L(e[0],e):e[0]},E=function(e,t){return e.length>1?e.indexOf(L(e[t],e)):t},D=function(e,t){var n=e.get(t);if(void 0!==n)return n;var i=function(e,t){return!e||e===document||e&&e.nodeType===Node.DOCUMENT_NODE||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!(!t||!t.getPropertyValue||"none"!==t.getPropertyValue("display")&&"hidden"!==t.getPropertyValue("visibility"))}(e)&&t(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode)}(t,D.bind(void 0,e));return e.set(t,i),i},I=function(e){return Boolean(e&&e.dataset&&e.dataset.focusGuard)},T=function(e){return!I(e)},A=function(e){return Boolean(e)},M="NEW_FOCUS",O=function(e){for(var t=Array(e.length),n=0;n0&&t.add(o),(r&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(i)}return e.filter((function(e,n){return!t.has(n)}))}(O(P(t).querySelectorAll('[data-focus-lock="'+n+'"]:not(['+a+'="disabled"])'))):[t]),e}),[])},B=function(e,t){var n=e.tabIndex-t.tabIndex,i=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||i},W=function(e,t,n){return O(e).map((function(e,t){return{node:e,index:t,tabIndex:n&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}})).filter((function(e){return!t||e.tabIndex>=0})).sort(B)},V=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),z=V+", [data-focus-guard]",H=function(e,t){return e.reduce((function(e,n){return e.concat(O(n.querySelectorAll(t?z:V)),n.parentNode?O(n.parentNode.querySelectorAll(V)).filter((function(e){return e===n})):[])}),[])},j=function(e,t){return O(e).filter((function(e){return D(t,e)})).filter((function(e){return function(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))}(e)}))},U=function(e,t,n){return W(j(H(e,n),t),!0,n)},K=function(e,t){return W(j(H(e),t),!1)},$=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&$(e.parentNode,t),t},q=function(e,t){for(var n=$(e),i=$(t),o=0;o=0)return r}return!1},Z=function(e,t,n){var i=R(e),o=R(t),r=i[0],s=!1;return o.filter(Boolean).forEach((function(e){s=q(s||e,e)||s,n.filter(Boolean).forEach((function(e){var t=q(r,e);t&&(s=!s||t.contains(s)?t:q(t,s))}))})),s},G=function(e,t){var n=document&&document.activeElement,i=F(e).filter(T),o=Z(n||e,e,i),r=new Map,s=K(i,r),a=U(i,r).filter((function(e){var t=e.node;return T(t)}));if(a[0]||(a=s)[0]){var l,c,d,u,h=K([o],r).map((function(e){return e.node})),g=(l=h,c=a,d=new Map,c.forEach((function(e){return d.set(e.node,e)})),l.map((function(e){return d.get(e)})).filter(A)),p=g.map((function(e){return e.node})),f=function(e,t,n,i){var o=e.length,r=e[0],s=e[o-1],a=I(n);if(!(e.indexOf(n)>=0)){var l,c,d=t.indexOf(n),u=i?t.indexOf(i):d,h=i?e.indexOf(i):-1,g=d-u,p=t.indexOf(r),f=t.indexOf(s),m=(l=t,c=new Set,l.forEach((function(e){return c.add(L(e,l))})),l.filter((function(e){return c.has(e)}))),v=m.indexOf(n)-(i?m.indexOf(i):d),_=E(e,0),b=E(e,o-1);return-1===d||-1===h?M:!g&&h>=0?h:d<=p&&a&&Math.abs(g)>1?b:d>=f&&a&&Math.abs(g)>1?_:g&&Math.abs(v)>1?h:d<=p?b:d>f?_:g?Math.abs(g)>1?h:(o+h+g)%o:void 0}}(p,h,n,t);if(f===M){var m=s.map((function(e){return e.node})).filter((u=function(e,t){return e.reduce((function(e,n){return e.concat(function(e,t){return j((n=e.querySelectorAll("[data-autofocus-inside]"),O(n).map((function(e){return H([e])})).reduce((function(e,t){return e.concat(t)}),[])),t);var n}(n,t))}),[])}(i,r),function(e){return e.autofocus||e.dataset&&!!e.dataset.autofocus||u.indexOf(e)>=0}));return{node:m&&m.length?N(m):N(p)}}return void 0===f?f:g[f]}},Y=0,Q=!1;const X=function(e,t){var n,i=G(e,t);if(!Q&&i){if(Y>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Q=!0,void setTimeout((function(){Q=!1}),1);Y++,(n=i.node).focus(),"contentWindow"in n&&n.contentWindow&&n.contentWindow.focus(),Y--}};var J=function(e){var t=document&&document.activeElement;return!(!t||t.dataset&&t.dataset.focusGuard)&&F(e).reduce((function(e,n){return e||n.contains(t)||function(e){return Boolean(O(e.querySelectorAll("iframe")).some((function(e){return e===document.activeElement})))}(n)}),!1)};function ee(e){var t=window.setImmediate;void 0!==t?t(e):setTimeout(e,1)}var te=null,ne=null,ie=null,oe=!1,re=function(){return!0};function se(e,t,n,i){var o=null,r=e;do{var s=i[r];if(s.guard)s.node.dataset.focusAutoGuard&&(o=s);else{if(!s.lockItem)break;if(r!==e)return;o=null}}while((r+=n)!==t);o&&(o.node.tabIndex=0)}var ae=function(e){return e&&"current"in e?e.current:e},le=function(){var e,t,n,i,o,r,s,a=!1;if(te){var l=te,c=l.observed,d=l.persistentFocus,u=l.autoFocus,h=l.shards,g=l.crossFrame,p=c||ie&&ie.portaledElement,f=document&&document.activeElement;if(p){var m=[p].concat(h.map(ae).filter(Boolean));if(f&&!function(e){return(te.whiteList||re)(e)}(f)||(d||(g?Boolean(oe):"meanwhile"===oe)||!(document&&document.activeElement===document.body||document&&O(document.querySelectorAll("[data-no-focus-lock]")).some((function(e){return e.contains(document.activeElement)})))||!ne&&u)&&(!p||J(m)||(s=f,ie&&ie.portaledElement===s)||(document&&!ne&&f&&!u?(f.blur&&f.blur(),document.body.focus()):(a=X(m,ne),ie={})),oe=!1,ne=document&&document.activeElement),document){var v=document&&document.activeElement,_=(t=F(e=m).filter(T),n=Z(e,e,t),i=new Map,o=U([n],i,!0),r=U(t,i).filter((function(e){var t=e.node;return T(t)})).map((function(e){return e.node})),o.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:r.indexOf(t)>=0,guard:I(t)}}))),b=_.map((function(e){return e.node})).indexOf(v);b>-1&&(_.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),se(b,_.length,1,_),se(b,-1,-1,_))}}}return a},ce=function(e){le()&&e&&(e.stopPropagation(),e.preventDefault())},de=function(){return ee(le)},ue=function(){oe="just",setTimeout((function(){oe="meanwhile"}),0)};m.assignSyncMedium((function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(ie={observerNode:n,portaledElement:t})})),v.assignMedium(de),_.assignMedium((function(e){return e({moveFocusInside:X,focusInside:J})}));const he=(ge=function(e){return e.filter((function(e){return!e.disabled}))},pe=function(e){var t=e.slice(-1)[0];t&&!te&&(document.addEventListener("focusin",ce,!0),document.addEventListener("focusout",de),window.addEventListener("blur",ue));var n=te,i=n&&t&&t.id===n.id;te=t,n&&!i&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(ne=null,i&&n.observed===t.observed||t.onActivation(),le(),ee(le)):(document.removeEventListener("focusin",ce,!0),document.removeEventListener("focusout",de),window.removeEventListener("blur",ue),ne=null)},function(e){var t,n=[];function i(){t=ge(n.map((function(e){return e.props}))),pe(t)}var r=function(r){var s,a;function l(){return r.apply(this,arguments)||this}a=r,(s=l).prototype=Object.create(a.prototype),s.prototype.constructor=s,S(s,a),l.peek=function(){return t};var c=l.prototype;return c.componentDidMount=function(){n.push(this),i()},c.componentDidUpdate=function(){i()},c.componentWillUnmount=function(){var e=n.indexOf(this);n.splice(e,1),i()},c.render=function(){return o.createElement(e,this.props)},l}(o.PureComponent);return(0,x.Z)(r,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(e)+")"),r})((function(){return null}));var ge,pe,fe=o.forwardRef((function(e,t){return o.createElement(C,(0,r.Z)({sideCar:he,ref:t},e))})),me=C.propTypes||{};me.sideCar,function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i=0||(o[n]=e[n])}(me,["sideCar"]),fe.propTypes={};const ve=fe;var _e=n(44592),be=function(e){var t=e.initialFocusRef,n=e.finalFocusRef,i=e.contentRef,r=e.restoreFocus,s=e.children,a=e.isDisabled,l=e.autoFocus,c=e.persistentFocus,d=e.lockFocusAcrossFrames,u=o.useCallback((function(){null!=t&&t.current?t.current.focus():null!=i&&i.current&&0===(0,_e.t5)(i.current).length&&(0,_e.T_)(i.current,{nextTick:!0})}),[t,i]),h=o.useCallback((function(){var e;null==n||null==(e=n.current)||e.focus()}),[n]),g=r&&!n;return o.createElement(ve,{crossFrame:d,persistentFocus:c,autoFocus:l,disabled:a,onActivation:u,onDeactivation:h,returnFocus:g},s)};_e.Ts&&(be.displayName="FocusLock");var ye=n(46871),we=n(105),Ce=n(37496),Se=n(26450),xe=n(99860),ke=n(53869),Le=n(69283),Ne=function(){return Ne=Object.assign||function(e){for(var t,n=1,i=arguments.length;n