diff --git a/docs/specs/2026-11-10-interface-audit.md b/docs/specs/2026-11-10-interface-audit.md new file mode 100644 index 0000000..c76326c --- /dev/null +++ b/docs/specs/2026-11-10-interface-audit.md @@ -0,0 +1,100 @@ +# Interface regression audit — 2026-11-10 + +Baseline: `62b1ac1d3597bbbf23c60065b3e6ac2e6f38d9b6` (v2026.11.1-alpha). + +## Scope and acceptance + +Exercise shipping interfaces and follow confirmed failures through reproduction, +regression tests, fixes and independent review. Preserve capture policies, +provider isolation, confirmation requirements and wire compatibility. Tests must +use disposable state and fixture assistants; never signal real workloads or run +real assistant turns. Existing functionality should behave consistently across +its supported interfaces. This is a bounded audit, not proof of absence of bugs. + +## Confirmed defects + +| Interface | Before | Required result | Regression | +| --- | --- | --- | --- | +| macOS service | Sequential launchctl pipe reads hang status and installer postflight when stdout fills. | Drain both streams concurrently with bounded capture, deadline and owned-child cleanup. Start must use the repaired query. | `TestLaunchdStatus*`, `TestLaunchdStartUsesBoundedStatusQuery` | +| TUI | Global navigation hides an armed stop confirmation; later Enter can stop the old selection. | Cancel stop before navigation; subsequent Enter cannot confirm it. Mouse navigation cancels too. | `interface_audit_test.go` | +| TUI | Lowercase k is swallowed on ordinary tables. | j/k navigate down/up while process-specific actions retain their meaning. | `TestAuditTableVimUpNavigation` | +| Desktop | Back/Forward do not restore page/dashboard selection; a deleted-dashboard fallback can trap Back on the missing entry. | Browser history and selected page stay synchronized; 404 fallback replaces the invalid entry. | `App.audit.test.tsx`, App stories | +| Desktop Chat | Header/pane close bypasses mode reset; loading or pending elevation can leave Full Auto enabled. | All close paths reset mode before accepting close; unresolved state blocks close and failed reset restores the pane. | App audit tests and browser close stories | +| Desktop Search | Missing clipboard API silently drops the resume command. | Show a usable fallback command when clipboard is absent or rejects. | `Search.audit.test.tsx`, Search stories | +| Desktop dashboard | Transient loading errors discard saved-dashboard selection. | Only a confirmed 404 returns Home; retryable errors retain selection. | dashboard refresh tests and App stories | + +The large-output service test failed before its fix within two seconds. TUI and +desktop regressions likewise failed against baseline behavior. The repaired +read-only native service query returned `running` outside the macOS sandbox, +using disposable application state. No production service was restarted for +this audit. + +## Coverage and limits + +| Area | Evidence | Remaining live coverage | +| --- | --- | --- | +| CLI | Full Go suite; parsing, scopes, JSON, confirmations and action fixtures | Real destructive reclamation intentionally excluded | +| TUI | Full Go suite, app-update key/mouse regressions and fake action seams | Interactive native terminal rendering and terminal jumps | +| Desktop/browser UI | Unit tests, shipping-component Storybook plays, typecheck and production build | Installed native window, menus, tray, dialogs and OS notifications | +| MCP and web API | Tool/schema/envelope, capture, origin/identity and confirmation fixtures | Third-party live MCP hosts | +| Chat | Selection, pinned resumes, streaming, approvals, queue/history and reconnect fixture runners | Real Claude/Codex/Copilot authentication and model turns | +| CPU/memory/reclaim | Canonical process placement, current identity, exclusion and stale-data fixtures; derive/reclaim suites | Linux/Windows native process APIs and real reclamation | +| Fleet | Machine-scoped paths/readers, freshness and protocol fixtures | Live multi-machine transport | +| Hooks, intake, store and collectors | Full Go suite and targeted provider/self-exclusion/accounting checks | Real vendor configuration and histories intentionally excluded | +| Packaging/platform | Native build, native and Windows vet | New signed release and Windows runtime not exercised here | + +Project-summary actions remain Claude-specific by existing design; provider +selection does not imply every provider has Claude's native tool catalog. +Documentation now describes capture/vendor history for the selected assistant +and the actual sixteen-metric header limit. + +## Verification and review + +Passed on macOS with disposable HOME/data through `scripts/isolated.sh`: + +- `go test ./... -count=1` and `go test -race ./...`. +- Final affected TUI/service tests and TUI race tests after wheel cancellation; + launchd race tests include timeout cleanup and Start dispatch. +- `go vet ./...`, `GOOS=windows go vet ./...`, and a Linux CLI build. +- Final `go test ./internal/web ./internal/desktop -count=1` after bundle rebuild. +- `go mod tidy -diff`, generated config comparison and docgen `--check`. + +UI unit suite: 219 tests across 32 files passed; all seven App audit tests passed +after the final history fix. Typecheck and both production bundles passed. +Focused App/Search browser plays passed (32), then the new deleted-dashboard +history story passed. Gitleaks found no secrets in the staged changes. Source +diff whitespace checks passed; generated bundles retain dependency license text. + +The full Chromium catalogue passed: 1,266 tests across 172 files, covering both +themes and both review widths. The final history regression was added during +that run; affected history plays passed again across all four cells (16 tests +in four files) against the frozen final source, instead of relying on which +cell loaded the change during the broader run. + +An early race attempt and Windows vet overlapped a bundle rebuild and failed on +temporarily absent embed files. Verification was rerun after the build; the race +suite and Windows vet passed. One UI unit attempt encountered a shared Vitest +cache import error; its serialized rerun passed. These were not product fixes. + +### Standards + +Independent fresh-context review found one P1: local mode could be stale while +loading or enabling Full Auto. The fix refuses closure until initialization and +mode changes settle, then requires an acknowledged Confirm reset. Rereview found +zero remaining documented-standard violations or actionable smell findings. + +### Spec + +Independent fresh-context review found the same pending-elevation race and a +mouse-wheel cancellation gap on the flow board. Both received failing regression +tests and fixes. The reviewer's separate real-Chat pending-elevation reproduction +changed from failing to passing. Final rereview found zero outstanding findings. + +### Astra consultation + +A separate Astra pass reproduced a Back-history trap after a saved dashboard +was deleted elsewhere: fallback navigation pushed Home again, causing the next +Back to hit the deleted dashboard repeatedly. The regression requires fallback +navigation to replace that invalid entry while intentional navigation pushes. +Its independent reproduction passed after the fix; Astra reported no additional +blockers. The installed signed release was not replaced with this audit build. diff --git a/docs/usage.md b/docs/usage.md index 7e6ee4d..5e94060 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -925,15 +925,15 @@ agent automatically. Clients resume from a cursor over bounded ordered events; an expired cursor or service restart sends a replacement snapshot. The app and TUI reload the local broker key after the Driga service restart. -Your explicitly submitted question is scrubbed and sent to Claude. Context and +Your explicitly submitted question is scrubbed and sent to the selected assistant. Context and MCP evidence pass the capture policy before reaching the agent. Driga retains no chat message bodies under `capture_text = "titles"`; `snippets` retains scrubbed 200-character snippets. Live conversation text and drafts are bounded in memory, and the app stores no chat text on disk. Tool names and safe action decision metadata are retained as metadata. Process command lines and argv require `capture_text = "snippets"` in Chat tool responses; other policies remove both argument-bearing fields. Downgrading to titles erases retained bodies when the broker starts. -Claude's own session history is vendor-managed and enables `--resume`; driga's -capture policy does not control that vendor history. Chat tools may make network connections when approved; Claude uses its existing +The assistant's own session history is vendor-managed and enables resume; driga's +capture policy does not control that vendor history. Chat tools may make network connections when approved; the assistant uses its existing vendor connection. ## Desktop app @@ -951,7 +951,7 @@ port. It opens on Home, a dashboard that fills the window, with Chat docked beside it and a row of metrics above: by default Need you, To review, Possibly stuck, Leftover processes and Reclaimable. Click a metric to ask Chat about it. Change the row by asking Chat ("add cost today to the header"), or remove a -metric in Edit. The header holds only single numbers, eight at most. +metric in Edit. The header holds only single numbers, sixteen at most. Home shows the inbox with pending permission prompts (Allow or Deny), leftover process trees, sessions that look stuck, every session, and memory. Panels take diff --git a/internal/service/launchd_darwin.go b/internal/service/launchd_darwin.go index f1e8f5e..53b19ec 100644 --- a/internal/service/launchd_darwin.go +++ b/internal/service/launchd_darwin.go @@ -1,6 +1,7 @@ package service import ( + "context" "errors" "fmt" "log/slog" @@ -15,14 +16,18 @@ import ( type launchdController struct { Controller - binPath string - plistPath string - register func(string) error + binPath string + plistPath string + register func(string) error + statusCommand func(context.Context, ...string) *exec.Cmd } func newLaunchdController(controller Controller, binPath string) *launchdController { return &launchdController{Controller: controller, binPath: binPath, plistPath: filepath.Join(config.ExpandHome("~"), "Library", "LaunchAgents", Label("darwin")+".plist"), + statusCommand: func(ctx context.Context, args ...string) *exec.Cmd { + return exec.CommandContext(ctx, "/bin/launchctl", args...) + }, register: func(app string) error { // Apple requires Launch Services to know the associated bundle, // wherever Driga.app was installed. @@ -42,7 +47,7 @@ func (s *launchdController) recordedDataDir() (string, error) { // Start makes repeating service install harmless when launchd already runs it. func (s *launchdController) Start() error { - status, err := s.Controller.Status() + status, err := s.Status() if err == nil && status == ks.StatusRunning { return nil } diff --git a/internal/service/launchd_status_darwin.go b/internal/service/launchd_status_darwin.go new file mode 100644 index 0000000..5418324 --- /dev/null +++ b/internal/service/launchd_status_darwin.go @@ -0,0 +1,89 @@ +package service + +import ( + "bytes" + "context" + "errors" + "fmt" + "os" + "os/exec" + "regexp" + "strconv" + "strings" + "time" + + ks "github.com/kardianos/service" + "github.com/labstack/driga/internal/platform" +) + +const launchdStatusTimeout = 5 * time.Second + +var launchdStatusPID = regexp.MustCompile(`(?m)^\s*"PID"\s*=\s*([0-9]+);`) + +// launchdCapture drains both pipes without retaining unbounded job metadata. +type launchdCapture struct { + bytes.Buffer + limit int + truncated bool +} + +func (b *launchdCapture) Write(p []byte) (int, error) { + n := len(p) + remaining := b.limit - b.Len() + if len(p) > remaining { + p = p[:remaining] + b.truncated = true + } + _, _ = b.Buffer.Write(p) + return n, nil +} + +// Status avoids the upstream sequential stderr/stdout reader. A full stdout +// pipe otherwise prevents launchctl exiting and stderr ever reaching EOF. +func (s *launchdController) Status() (ks.Status, error) { + // In-memory controllers used by the lifecycle model supply their own status. + if s.statusCommand == nil { + return s.Controller.Status() + } + ctx, cancel := context.WithTimeout(context.Background(), launchdStatusTimeout) + defer cancel() + cmd := s.statusCommand(ctx, "list", Label("darwin")) + stdout := launchdCapture{limit: 1 << 20} + stderr := launchdCapture{limit: 64 << 10} + cmd.Stdout, cmd.Stderr = &stdout, &stderr + err := platform.RunChild(cmd) + if ctx.Err() != nil { + return ks.StatusUnknown, fmt.Errorf("query Driga launch agent: %w", ctx.Err()) + } + if stdout.truncated || stderr.truncated { + return ks.StatusUnknown, errors.New("launchctl status response exceeds limit") + } + if err != nil { + var exit *exec.ExitError + if errors.As(err, &exit) && (exit.ExitCode() == 3 || exit.ExitCode() == 113) { + if _, statErr := os.Stat(s.plistPath); statErr == nil { + return ks.StatusStopped, nil + } else if errors.Is(statErr, os.ErrNotExist) { + return ks.StatusUnknown, ks.ErrNotInstalled + } else { + return ks.StatusUnknown, statErr + } + } + // Job output can contain environment values; never include it in errors. + return ks.StatusUnknown, fmt.Errorf("query Driga launch agent: %w", err) + } + response := strings.TrimSpace(stdout.String()) + if !strings.HasPrefix(response, "{") || !strings.HasSuffix(response, "};") { + return ks.StatusUnknown, errors.New("unexpected launchctl status response") + } + if match := launchdStatusPID.FindStringSubmatch(response); len(match) == 2 { + pid, err := strconv.Atoi(match[1]) + if err != nil { + return ks.StatusUnknown, errors.New("invalid launchctl service PID") + } + if pid > 0 { + return ks.StatusRunning, nil + } + } + return ks.StatusStopped, nil +} diff --git a/internal/service/launchd_status_darwin_test.go b/internal/service/launchd_status_darwin_test.go new file mode 100644 index 0000000..5ace029 --- /dev/null +++ b/internal/service/launchd_status_darwin_test.go @@ -0,0 +1,181 @@ +package service + +import ( + "bytes" + "context" + "errors" + "fmt" + "os" + "os/exec" + "path/filepath" + "strconv" + "strings" + "syscall" + "testing" + "time" + + ks "github.com/kardianos/service" +) + +// The helper is exec'd in place of launchctl: no real service manager or user +// registration is reachable, even though the regression crosses New().Status(). +func TestLaunchdStatusHelper(t *testing.T) { + if os.Getenv("DRIGA_TEST_LAUNCHCTL_HELPER") != "1" { + t.Skip("subprocess fixture") + } + if err := os.WriteFile(os.Getenv("DRIGA_TEST_LAUNCHCTL_PID"), []byte(strconv.Itoa(os.Getpid())), 0600); err != nil { + os.Exit(2) + } + switch os.Getenv("DRIGA_TEST_LAUNCHCTL_MODE") { + case "hang": + time.Sleep(30 * time.Second) + os.Exit(0) + case "missing": + os.Exit(113) + case "failure": + fmt.Fprintln(os.Stderr, "private environment value") + os.Exit(1) + case "malformed": + fmt.Fprintln(os.Stdout, "unexpected") + os.Exit(0) + case "stopped": + fmt.Fprintln(os.Stdout, "{\n\"Label\" = \"fixture\";\n};") + os.Exit(0) + case "overflow": + os.Stdout.Write(bytes.Repeat([]byte("x"), 2<<20)) + os.Exit(0) + } + fmt.Fprint(os.Stdout, "{\n\"PID\" = 123;\n") + os.Stdout.Write(bytes.Repeat([]byte(" "), 256<<10)) + fmt.Fprintln(os.Stdout, "\n};") + os.Exit(0) +} + +func launchdStatusFixture(t *testing.T, mode string) (*launchdController, string) { + t.Helper() + root := t.TempDir() + path := filepath.Join(root, "launchctl") + exe, err := os.Executable() + if err != nil { + t.Fatal(err) + } + pidPath := filepath.Join(root, "child.pid") + t.Setenv("DRIGA_TEST_LAUNCHCTL_HELPER", "1") + t.Setenv("DRIGA_TEST_LAUNCHCTL_MODE", mode) + t.Setenv("DRIGA_TEST_LAUNCHCTL_PID", pidPath) + t.Setenv("DRIGA_TEST_LAUNCHCTL_BINARY", exe) + t.Setenv("PATH", root) + if err := os.WriteFile(path, []byte("#!/bin/sh\nexec \"$DRIGA_TEST_LAUNCHCTL_BINARY\" -test.run=^TestLaunchdStatusHelper$\n"), 0700); err != nil { + t.Fatal(err) + } + c, err := New(filepath.Join(root, "driga")) + if err != nil { + t.Fatal(err) + } + c.(*launchdController).statusCommand = func(ctx context.Context, args ...string) *exec.Cmd { return exec.CommandContext(ctx, path, args...) } + return c.(*launchdController), pidPath +} + +func TestLaunchdStatusDrainsOutputWithoutBlocking(t *testing.T) { + c, pidPath := launchdStatusFixture(t, "") + type result struct { + state ks.Status + err error + } + done := make(chan result, 1) + go func() { state, err := c.Status(); done <- result{state, err} }() + select { + case r := <-done: + if r.err != nil || r.state != ks.StatusRunning { + t.Fatalf("status=%v error=%v", r.state, r.err) + } + case <-time.After(2 * time.Second): + // Reap only this fixture so the failed regression leaves no processes. + raw, err := os.ReadFile(pidPath) + if err != nil { + t.Fatal(err) + } + pid, err := strconv.Atoi(strings.TrimSpace(string(raw))) + if err != nil { + t.Fatal(err) + } + p, err := os.FindProcess(pid) + if err != nil { + t.Fatal(err) + } + _ = p.Kill() + select { + case <-done: + case <-time.After(2 * time.Second): + t.Fatal("fixture did not stop") + } + t.Fatal("service status blocked while a valid launchctl response filled stdout") + } +} + +func TestLaunchdStatusFailuresAndStopped(t *testing.T) { + for _, tc := range []struct { + mode string + state ks.Status + wantErr bool + }{ + {"stopped", ks.StatusStopped, false}, + {"missing", ks.StatusUnknown, true}, + {"failure", ks.StatusUnknown, true}, + {"malformed", ks.StatusUnknown, true}, + {"overflow", ks.StatusUnknown, true}, + } { + t.Run(tc.mode, func(t *testing.T) { + c, _ := launchdStatusFixture(t, tc.mode) + state, err := c.Status() + if state != tc.state || (err != nil) != tc.wantErr { + t.Fatalf("state=%v err=%v", state, err) + } + if err != nil && strings.Contains(err.Error(), "private environment value") { + t.Fatal("status leaked job output") + } + if tc.mode == "missing" && !errors.Is(err, ks.ErrNotInstalled) { + t.Fatalf("missing job=%v", err) + } + }) + } +} + +func TestLaunchdStartUsesBoundedStatusQuery(t *testing.T) { + c, _ := launchdStatusFixture(t, "") + model := &fakeLaunchd{state: ks.StatusStopped} + c.Controller = model + if err := c.Start(); err != nil { + t.Fatal(err) + } + if model.starts != 0 { + t.Fatal("Start bypassed the running launchctl response") + } +} + +func TestLaunchdStatusTimeoutReapsOwnedQuery(t *testing.T) { + c, pidPath := launchdStatusFixture(t, "hang") + started := time.Now() + state, err := c.Status() + if state != ks.StatusUnknown || !errors.Is(err, context.DeadlineExceeded) { + t.Fatalf("state=%v err=%v", state, err) + } + if time.Since(started) > launchdStatusTimeout+3*time.Second { + t.Fatal("status exceeded bounded cancellation") + } + raw, err := os.ReadFile(pidPath) + if err != nil { + t.Fatal(err) + } + pid, err := strconv.Atoi(strings.TrimSpace(string(raw))) + if err != nil { + t.Fatal(err) + } + p, err := os.FindProcess(pid) + if err != nil { + t.Fatal(err) + } + if err := p.Signal(syscall.Signal(0)); err == nil { + t.Fatal("status left its fixture query alive") + } +} diff --git a/internal/tui/app.go b/internal/tui/app.go index f8ed03b..48d19d1 100644 --- a/internal/tui/app.go +++ b/internal/tui/app.go @@ -549,14 +549,26 @@ func (m *app) update(msg tea.Msg) (tea.Model, tea.Cmd) { } m.rebuild() case tea.MouseClickMsg: + if m.boardStop != 0 { + m.boardStop = 0 + m.status = "Stop cancelled" + } return m, m.mouseClick(msg) case tea.MouseWheelMsg: + if m.boardStop != 0 { + m.boardStop = 0 + m.status = "Stop cancelled" + } return m, m.mouseWheel(msg) case tea.KeyPressMsg: k := msg.String() if k == "ctrl+c" { return m, tea.Quit } + if m.boardStop != 0 { + cmd, _ := m.boardKey(k) + return m, cmd + } // Modified tab keys bypass focused composers, filters and overlays. if msg.Mod == tea.ModAlt && msg.Code >= '0' && msg.Code <= '2' { return m, m.selectTab(byte(msg.Code)) @@ -688,6 +700,10 @@ func (m *app) update(msg tea.Msg) (tea.Model, tea.Cmd) { return m, cmd } } + if k == "k" && m.tab != 3 { + msg = tea.KeyPressMsg{Code: tea.KeyUp} + k = msg.String() + } switch k { case "pgdown", "pgup": var cmd tea.Cmd diff --git a/internal/tui/interface_audit_test.go b/internal/tui/interface_audit_test.go new file mode 100644 index 0000000..34f99b6 --- /dev/null +++ b/internal/tui/interface_audit_test.go @@ -0,0 +1,77 @@ +package tui + +import ( + "context" + "fmt" + "testing" + + tea "charm.land/bubbletea/v2" +) + +func TestAuditStopCancellationThroughGlobalNavigation(t *testing.T) { + for _, key := range []rune{tea.KeyEscape, '1', 'c', '?', '/'} { + t.Run(string(key), func(t *testing.T) { + m := boardApp(t, "busy") + calls := 0 + m.opts.SessionAction = func(context.Context, string, int64) error { calls++; return nil } + for m.boardSelected().State == "finished" || !m.boardSelected().Local { + m.Update(tea.KeyPressMsg{Code: 'j'}) + } + m.Update(tea.KeyPressMsg{Code: 'K'}) + if m.boardStop == 0 { + t.Fatal("stop was not armed") + } + m.Update(tea.KeyPressMsg{Code: key}) + if m.boardStop != 0 { + t.Fatalf("key %q left destructive confirmation armed for session %d", key, m.boardStop) + } + m.Update(tea.KeyPressMsg{Code: tea.KeyEscape}) + _, cmd := m.Update(tea.KeyPressMsg{Code: tea.KeyEnter}) + if cmd != nil { + execute(t, m, cmd) + } + if calls != 0 { + t.Fatal("navigation stopped a session") + } + }) + } +} + +func TestAuditMouseNavigationCancelsStop(t *testing.T) { + for _, msg := range []tea.Msg{ + tea.MouseClickMsg{Button: tea.MouseLeft, X: 1, Y: 0}, + tea.MouseWheelMsg{Button: tea.MouseWheelDown, X: 1, Y: 10}, + } { + t.Run(fmt.Sprintf("%T", msg), func(t *testing.T) { + m := boardApp(t, "busy") + m.opts.SessionAction = func(context.Context, string, int64) error { t.Fatal("unexpected stop"); return nil } + for m.boardSelected().State == "finished" || !m.boardSelected().Local { + m.Update(tea.KeyPressMsg{Code: 'j'}) + } + m.Update(tea.KeyPressMsg{Code: 'K'}) + if m.boardStop == 0 { + t.Fatal("stop was not armed") + } + m.Update(msg) + if m.boardStop != 0 { + t.Fatal("mouse interaction left hidden confirmation armed") + } + }) + } +} + +func TestAuditTableVimUpNavigation(t *testing.T) { + m := setup(t, fleetSource(), Options{}).(*app) + m.Update(tea.KeyPressMsg{Code: '2'}) + if len(m.rows) < 2 { + t.Fatal("fixture needs two machine rows") + } + m.Update(tea.KeyPressMsg{Code: 'j'}) + if m.cursors[m.tab] != 1 { + t.Fatalf("j selected %d, want 1", m.cursors[m.tab]) + } + m.Update(tea.KeyPressMsg{Code: 'k'}) + if m.cursors[m.tab] != 0 { + t.Fatalf("k selected %d, want 0", m.cursors[m.tab]) + } +} diff --git a/internal/web/app/assets/index-DsNBhmsi.js b/internal/web/app/assets/index-DsNBhmsi.js deleted file mode 100644 index f65cf5b..0000000 --- a/internal/web/app/assets/index-DsNBhmsi.js +++ /dev/null @@ -1,107 +0,0 @@ -var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;li[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function u(e,t,n){return t===void 0&&n===void 0?e:t!==void 0&&n===void 0?Math.max(e,t):Math.min(t===void 0&&n!==void 0?e:Math.max(e,t),n)}function d(e=`mantine-`){return`${e}${Math.random().toString(36).slice(2,11)}`}function f(e,t){if(e===t||Number.isNaN(e)&&Number.isNaN(t))return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=Object.keys(e),{length:r}=n;if(r!==Object.keys(t).length)return!1;for(let i=0;i{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var j=/\/+/g;function M(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function N(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function P(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,P(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+M(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(j,`$&/`)+`/`),P(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(j,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u{t.exports=p()})),h=l(m(),1);function g(e){let t=(0,h.useRef)(e);return(0,h.useEffect)(()=>{t.current=e}),(0,h.useMemo)(()=>((...e)=>t.current?.(...e)),[])}function _(e,t){let{delay:n,flushOnUnmount:r,leading:i,maxWait:a}=typeof t==`number`?{delay:t,flushOnUnmount:!1,leading:!1,maxWait:void 0}:t,o=g(e),s=(0,h.useRef)(0),c=(0,h.useRef)(0),l=(0,h.useRef)(null),u=(0,h.useMemo)(()=>{let e=Object.assign((...t)=>{window.clearTimeout(s.current),l.current=t;let r=e._isFirstCall;e._isFirstCall=!1;function u(){window.clearTimeout(s.current),window.clearTimeout(c.current),s.current=0,c.current=0,e._isFirstCall=!0,e._hasPendingCallback=!1}function d(){a!==void 0&&c.current===0&&(c.current=window.setTimeout(()=>{if(c.current=0,s.current!==0&&e._hasPendingCallback){let e=l.current;u(),o(...e)}},a))}if(i&&r){o(...t),e.flush=()=>{s.current!==0&&u()},e.cancel=()=>{u()},s.current=window.setTimeout(()=>{u()},n),d();return}if(i&&!r){e._hasPendingCallback=!0,e.flush=()=>{s.current!==0&&(u(),o(...t))},e.cancel=()=>{u()},s.current=window.setTimeout(()=>{u()},n),d();return}e._hasPendingCallback=!0;let f=()=>{s.current!==0&&(u(),o(...t))};e.flush=f,e.cancel=()=>{u()},s.current=window.setTimeout(f,n),d()},{flush:()=>{},cancel:()=>{},isPending:()=>e._hasPendingCallback,_isFirstCall:!0,_hasPendingCallback:!1});return e},[o,n,i,a]);return(0,h.useEffect)(()=>()=>{r?u.flush():u.cancel()},[u,r]),u}var v=[`mousedown`,`touchstart`];function y(e,t,n,r=!0,i=!1){let a=(0,h.useRef)(null),o=t||v,s=(0,h.useEffectEvent)(t=>{let{target:r}=t??{};if(!document.body.contains(r)&&r?.tagName!==`HTML`)return;let i=t.composedPath();Array.isArray(n)?n.every(e=>!!e&&!i.includes(e))&&e(t):a.current&&!i.includes(a.current)&&e(t)}),c=o.join(`,`);return(0,h.useEffect)(()=>{if(!r)return;let e=c.split(`,`);return e.forEach(e=>document.addEventListener(e,s,i)),()=>{e.forEach(e=>document.removeEventListener(e,s,i))}},[c,r,i]),a}function b(e,t){if(typeof t==`boolean`)return t;if(typeof window<`u`&&`matchMedia`in window)try{return window.matchMedia(e).matches}catch{return!1}return!1}function x(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){let[r,i]=(0,h.useState)(n?t:b(e));return(0,h.useEffect)(()=>{try{if(`matchMedia`in window){let t=window.matchMedia(e);i(t.matches);let n=e=>i(e.matches);return t.addEventListener(`change`,n),()=>{t.removeEventListener(`change`,n)}}}catch{return}},[e]),r||!1}function S(e,t){return x(`(prefers-color-scheme: dark)`,e===`dark`,t)?`dark`:`light`}var C=typeof document<`u`?h.useLayoutEffect:h.useEffect;function w(e,t){return e.length!==t.length||t.some((t,n)=>!Object.is(t,e[n]))}function T(e,t){let n=(0,h.useRef)(!1),r=(0,h.useRef)(null),i=(0,h.useRef)(void 0),a={};(0,h.useEffect)(()=>{let o=r.current===a,s=i.current;if(r.current=a,i.current=t,!n.current)n.current=!0;else if(!o&&!(t&&s&&!w(s,t)))return e()},t)}function E({opened:e,shouldReturnFocus:t=!0}){let n=(0,h.useRef)(null),r=()=>{n.current&&`focus`in n.current&&typeof n.current.focus==`function`&&n.current?.focus({preventScroll:!0})};return T(()=>{let i=-1,a=e=>{e.key===`Tab`&&window.clearTimeout(i)};if(document.addEventListener(`keydown`,a),e)n.current=document.activeElement;else if(t){let e=document.activeElement;i=window.setTimeout(()=>{let t=document.activeElement;(t===null||t===document.body||t===e)&&r()},10)}return()=>{window.clearTimeout(i),document.removeEventListener(`keydown`,a)}},[e,t]),r}var D=/input|select|textarea|button|object/,O=`a, input, select, textarea, button, object, [tabindex]`;function k(e){return e.style.display===`none`}function A(e){if(e.getAttribute(`aria-hidden`)||e.getAttribute(`hidden`)||e.getAttribute(`type`)===`hidden`)return!1;let t=e;for(;t&&t!==document.body&&t.nodeType!==11;){if(k(t))return!1;t=t.parentNode}return!0}function j(e){let t=e.getAttribute(`tabindex`);return t===null&&(t=void 0),parseInt(t,10)}function M(e){let t=e.nodeName.toLowerCase(),n=!Number.isNaN(j(e));return(D.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&A(e)}function N(e){let t=j(e);return(Number.isNaN(t)||t>=0)&&M(e)}function P(e){return Array.from(e.querySelectorAll(O)).filter(N)}function F(e,t){let n=P(e);if(!n.length){t.preventDefault();return}let r=n[t.shiftKey?0:n.length-1],i=e.getRootNode(),a=r===i.activeElement||e===i.activeElement,o=i.activeElement;if(o.tagName===`INPUT`&&o.getAttribute(`type`)===`radio`&&(a=n.filter(e=>e.getAttribute(`type`)===`radio`&&e.getAttribute(`name`)===o.getAttribute(`name`)).includes(r)),!a)return;t.preventDefault();let s=n[t.shiftKey?n.length-1:0];s&&s.focus()}function ee(e=!0){let t=(0,h.useRef)(null),n=e=>{let t=e.querySelector(`[data-autofocus]`);if(!t){let n=Array.from(e.querySelectorAll(O));t=n.find(N)||n.find(M)||null,!t&&M(e)&&(t=e)}t?t.focus({preventScroll:!0}):console.warn(`[@mantine/hooks/use-focus-trap] Failed to find focusable element within provided node`,e)},r=(0,h.useCallback)(r=>{e&&(r===null?t.current=null:t.current!==r&&(setTimeout(()=>{r.getRootNode()?n(r):console.warn(`[@mantine/hooks/use-focus-trap] Ref node is not part of the dom`,r)}),t.current=r))},[e]);return(0,h.useEffect)(()=>{if(!e)return;t.current&&setTimeout(()=>{t.current&&n(t.current)});let r=e=>{e.key===`Tab`&&t.current&&F(t.current,e)};return document.addEventListener(`keydown`,r),()=>document.removeEventListener(`keydown`,r)},[e]),r}var I=e=>(e+1)%1e6;function te(){let[,e]=(0,h.useReducer)(I,0);return e}function L(e){let t=(0,h.useId)(),[n,r]=(0,h.useState)(`mantine-${t.replace(/:/g,``)}`),i=(0,h.useRef)(!1);return C(()=>{i.current||(i.current=!0,r(d()))},[]),typeof e==`string`?e:n}function ne(e,t,n){let r=(0,h.useEffectEvent)(t);(0,h.useEffect)(()=>(window.addEventListener(e,r,n),()=>window.removeEventListener(e,r,n)),[e])}function re(e,t){if(typeof e==`function`)return e(t);typeof e==`object`&&e&&`current`in e&&(e.current=t)}function ie(...e){let t=new Map;return n=>{if(e.forEach(e=>{let r=re(e,n);r&&t.set(e,r)}),t.size>0)return()=>{e.forEach(e=>{let n=t.get(e);n&&typeof n==`function`?n():re(e,null)}),t.clear()}}}function ae(...e){return(0,h.useCallback)(ie(...e),e)}function oe({value:e,defaultValue:t,finalValue:n,onChange:r=()=>{}}){let[i,a]=(0,h.useState)(t===void 0?n:t);return e===void 0?[i,(e,...t)=>{a(e),r?.(e,...t)},!1]:[e,r,!0]}function se(e,t){return x(`(prefers-reduced-motion: reduce)`,e,t)}var R={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function ce(e){let t=(0,h.useRef)(0),[n,r]=(0,h.useState)(R),i=(0,h.useRef)(null);return[(0,h.useCallback)(n=>{i.current&&=(i.current.disconnect(),null),t.current&&cancelAnimationFrame(t.current),n&&(i.current=new ResizeObserver(e=>{let n=e[0];n&&(cancelAnimationFrame(t.current),t.current=requestAnimationFrame(()=>{let e=n.borderBoxSize?.[0]||n.contentBoxSize?.[0];if(e){let t=e.inlineSize,i=e.blockSize;r({width:t,height:i,x:n.contentRect.x,y:n.contentRect.y,top:n.contentRect.top,left:n.contentRect.left,bottom:n.contentRect.bottom,right:n.contentRect.right})}else r(n.contentRect)}))}),i.current.observe(n,e))},[e]),n]}function le(e){let[t,{width:n,height:r}]=ce(e);return{ref:t,width:n,height:r}}function z(e,t){if(!e||!t)return!1;if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;ne.trim()),n={alt:t.includes(`alt`),ctrl:t.includes(`ctrl`),meta:t.includes(`meta`),mod:t.includes(`mod`),shift:t.includes(`shift`)},r=[`alt`,`ctrl`,`meta`,`shift`,`mod`],i=t.find(e=>!r.includes(e));return{...n,key:i===`[plus]`?`+`:i}}function he(e,t,n){let{alt:r,ctrl:i,meta:a,mod:o,shift:s,key:c}=e,{altKey:l,ctrlKey:u,metaKey:d,shiftKey:f,key:p,code:m}=t;if(r!==l)return!1;if(o){if(!u&&!d)return!1}else if(i!==u||a!==d)return!1;return s===f&&!!(c&&(n?pe(m)===pe(c):pe(p??m)===pe(c)))}function ge(e,t){return n=>he(me(e),n,t)}function _e(e,t,n=!1){return e.target instanceof HTMLElement?(n||!e.target.isContentEditable)&&!t.includes(e.target.tagName):!0}function ve(e,t=[`INPUT`,`TEXTAREA`,`SELECT`],n=!1){let r=(0,h.useEffectEvent)(r=>{e.forEach(([e,i,a])=>{let{preventDefault:o=!0,usePhysicalKeys:s=!1}=a||{};ge(e,s)(r)&&_e(r,t,n)&&(o&&r.preventDefault(),i(r))})});(0,h.useEffect)(()=>(document.documentElement.addEventListener(`keydown`,r),()=>document.documentElement.removeEventListener(`keydown`,r)),[])}function B(e,t,n={autoInvoke:!1}){let r=(0,h.useRef)(null),i=g(e),a=(0,h.useCallback)((...e)=>{r.current||=window.setTimeout(()=>{i(...e),r.current=null},t)},[t]),o=(0,h.useCallback)(()=>{r.current&&=(window.clearTimeout(r.current),null)},[]);return(0,h.useEffect)(()=>(n.autoInvoke&&a(),o),[o,a]),{start:a,clear:o}}function ye(e){let t=(0,h.useRef)(void 0);return(0,h.useEffect)(()=>{t.current=e},[e]),t.current}function be(e,t,n){let r=(0,h.useRef)(null);(0,h.useEffect)(()=>{r.current&&=(r.current.disconnect(),null);let i=typeof n==`function`?n():n;return i&&(r.current=new MutationObserver(e),r.current.observe(i,t)),()=>{r.current&&=(r.current.disconnect(),null)}},[e,t,n])}function xe(){let[e,t]=(0,h.useState)(!1);return(0,h.useEffect)(()=>t(!0),[]),e}var Se=[`mouse`,`touch`],Ce=10;function we(e,t={}){let{threshold:n=400,events:r=Se,cancelOnMove:i=!1,onStart:a,onFinish:o,onCancel:s}=t,c=(0,h.useRef)(!1),l=(0,h.useRef)(!1),u=(0,h.useRef)(-1),d=(0,h.useRef)(null);(0,h.useEffect)(()=>()=>window.clearTimeout(u.current),[]);let f=r.join(`,`);return(0,h.useMemo)(()=>{if(typeof e!=`function`)return{};let t=i!==!1,f=i===!0?Ce:i===!1?0:i,p=t=>{(De(t)||Ee(t))&&(a&&a(t),d.current=Te(t),l.current=!0,u.current=window.setTimeout(()=>{e(t),c.current=!0},n))},m=e=>{(De(e)||Ee(e))&&(c.current?o&&o(e):l.current&&s&&s(e),c.current=!1,l.current=!1,d.current=null,u.current!==-1&&(window.clearTimeout(u.current),u.current=-1))},h=e=>{if(!t||!l.current||c.current)return;let n=Te(e);if(!n||!d.current)return;let r=n.x-d.current.x,i=n.y-d.current.y;Math.sqrt(r*r+i*i)>f&&m(e)},g={};return r.includes(`mouse`)&&(g.onMouseDown=p,g.onMouseUp=m,g.onMouseLeave=m,t&&(g.onMouseMove=h)),r.includes(`touch`)&&(g.onTouchStart=p,g.onTouchEnd=m,g.onTouchCancel=m,t&&(g.onTouchMove=h)),g},[e,n,s,o,a,i,f])}function Te(e){if(Ee(e)){let t=e.touches[0]??e.changedTouches[0];return t?{x:t.clientX,y:t.clientY}:null}return{x:e.clientX,y:e.clientY}}function Ee(e){return window.TouchEvent?e.nativeEvent instanceof TouchEvent:`touches`in e.nativeEvent}function De(e){return e.nativeEvent instanceof MouseEvent}var Oe=o((e=>{var t=m();function n(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Oe()})),Ae=l(ke(),1);function je(e){if(!e||typeof e==`string`)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Me(e){return e.current?e.current.scrollHeight:`auto`}function Ne(e){return typeof e==`number`&&e>0}function Pe({transitionDuration:e,transitionTimingFunction:t=`ease`,onTransitionEnd:n,onTransitionStart:r,expanded:i,keepMounted:a}){let o={height:0,overflow:`hidden`,...a?{}:{display:`none`}},s=(0,h.useEffectEvent)(()=>r?.()),c=(0,h.useEffectEvent)(()=>n?.()),l=(0,h.useRef)(null),[u,d]=(0,h.useState)(i?{}:o),[f,p]=(0,h.useState)(i?`entered`:`exited`),m=e=>{(0,Ae.flushSync)(()=>d(e))},g=e=>{m(t=>({...t,...e}))},_=n=>{let r=e??je(n);return{transition:`height ${r}ms ${t}, opacity ${r}ms ${t}`}},v=(0,h.useRef)(0);T(()=>{v.current+=1;let t=v.current,n=()=>v.current===t;e!==0&&s(),i?window.requestAnimationFrame(()=>{n()&&l.current&&((0,Ae.flushSync)(()=>p(`entering`)),g({willChange:`height`,display:`block`,overflow:`hidden`}),window.requestAnimationFrame(()=>{if(!n()||!l.current)return;let e=Me(l);Ne(e)?g({..._(e),height:e}):(m({}),p(`entered`),c())}))}):window.requestAnimationFrame(()=>{if(!n()||!l.current)return;(0,Ae.flushSync)(()=>p(`exiting`));let e=Me(l);Ne(e)?(g({..._(e),willChange:`height`,height:e}),window.requestAnimationFrame(()=>{n()&&l.current&&g({height:0,overflow:`hidden`})})):(m(o),p(`exited`),c())})},[i]);let y=e=>{if(e.target===l.current&&e.propertyName===`height`){if(i){let e=Me(l);e===u.height?m({}):g({height:e}),p(`entered`),c()}else u.height===0&&(m(o),p(`exited`),c())}};return{state:f,getCollapseProps:e=>({"aria-hidden":!i,inert:!i,ref:ie(l,e?.ref),onTransitionEnd:y,style:{boxSizing:`border-box`,...e?.style,...u}})}}function Fe(e){if(!e||typeof e==`string`)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Ie(e){return e.current?e.current.scrollWidth:`auto`}function Le({transitionDuration:e,transitionTimingFunction:t=`ease`,onTransitionEnd:n,onTransitionStart:r,expanded:i,keepMounted:a}){let o={width:0,overflow:`hidden`,...a?{}:{display:`none`}},s=(0,h.useEffectEvent)(()=>r?.()),c=(0,h.useEffectEvent)(()=>n?.()),l=(0,h.useRef)(null),[u,d]=(0,h.useState)(i?{}:o),[f,p]=(0,h.useState)(i?`entered`:`exited`),m=e=>{(0,Ae.flushSync)(()=>d(e))},g=e=>{m(t=>({...t,...e}))},_=n=>{let r=e??Fe(n);return{transition:`width ${r}ms ${t}, opacity ${r}ms ${t}`}},v=(0,h.useRef)(0);T(()=>{v.current+=1;let t=v.current,n=()=>v.current===t;e!==0&&s(),i?window.requestAnimationFrame(()=>{n()&&l.current&&((0,Ae.flushSync)(()=>p(`entering`)),g({willChange:`width`,display:`block`,overflow:`hidden`}),window.requestAnimationFrame(()=>{if(!n()||!l.current)return;let e=Ie(l);Ne(e)?g({..._(e),width:e}):(m({}),p(`entered`),c())}))}):window.requestAnimationFrame(()=>{if(!n()||!l.current)return;(0,Ae.flushSync)(()=>p(`exiting`));let e=Ie(l);Ne(e)?(g({..._(e),willChange:`width`,width:e}),window.requestAnimationFrame(()=>{n()&&l.current&&g({width:0,overflow:`hidden`})})):(m(o),p(`exited`),c())})},[i]);let y=e=>{if(e.target===l.current&&e.propertyName===`width`){if(i){let e=Ie(l);e===u.width?m({}):g({width:e}),p(`entered`),c()}else u.width===0&&(m(o),p(`exited`),c())}};return{state:f,getCollapseProps:e=>({"aria-hidden":!i,inert:!i,ref:ie(l,e?.ref),onTransitionEnd:y,style:{boxSizing:`border-box`,...e?.style,...u}})}}var Re=100;function ze(e){return e>0?1:e<0?-1:0}function Be(e){let t=e??0;return typeof t==`number`?[t,t]:t}function Ve(){return{isActive:!1,pointerId:-1,startXY:[0,0],prevXY:[0,0],startTimestamp:0,prevTimestamp:0,thresholdMet:!1,firstFired:!1,lockedAxis:null,canceled:!1,lastVelocity:[0,0]}}function He(e,t={}){let[n,r]=(0,h.useState)(!1),i=(0,h.useRef)(e);i.current=e;let a=(0,h.useRef)(t);a.current=t;let o=(0,h.useRef)(Ve()),s=(0,h.useRef)(null);return{ref:(0,h.useCallback)(e=>{if(!e)return;let t=new AbortController,n=e=>{let t=a.current,n=o.current;if(t.axis===`x`)return[e[0],0];if(t.axis===`y`)return[0,e[1]];if(t.axis===`lock`){if(n.lockedAxis===null){let r=t.axisThreshold??1;(Math.abs(e[0])>r||Math.abs(e[1])>r)&&(n.lockedAxis=Math.abs(e[0])>=Math.abs(e[1])?`x`:`y`)}if(n.lockedAxis===`x`)return[e[0],0];if(n.lockedAxis===`y`)return[0,e[1]]}return e},c=()=>{let e=o.current;e.isActive=!1,e.pointerId=-1,e.thresholdMet=!1,e.firstFired=!1,e.lockedAxis=null,e.canceled=!1,r(!1),document.body.style.userSelect=``,document.body.style.webkitUserSelect=``,s.current?.abort(),s.current=null},l=()=>{o.current.isActive&&(o.current.canceled=!0,c())},u=()=>{r(!0),document.body.style.userSelect=`none`,document.body.style.webkitUserSelect=`none`},d=e=>{if(a.current.enabled===!1||e.button!==0||o.current.isActive)return;let t=o.current;t.isActive=!0,t.pointerId=e.pointerId,t.startXY=[e.clientX,e.clientY],t.prevXY=[e.clientX,e.clientY],t.startTimestamp=e.timeStamp,t.prevTimestamp=e.timeStamp,t.thresholdMet=!1,t.firstFired=!1,t.lockedAxis=null,t.canceled=!1,t.lastVelocity=[0,0];let[n,r]=Be(a.current.threshold);n===0&&r===0&&(t.thresholdMet=!0,t.firstFired=!0,u(),i.current({xy:[e.clientX,e.clientY],initial:[e.clientX,e.clientY],movement:[0,0],delta:[0,0],distance:[0,0],direction:[0,0],velocity:[0,0],elapsedTime:0,first:!0,last:!1,active:!0,tap:!1,canceled:!1,cancel:l,event:e})),s.current?.abort(),s.current=new AbortController;let c=s.current.signal;document.addEventListener(`pointermove`,f,{signal:c}),document.addEventListener(`pointerup`,p,{signal:c}),document.addEventListener(`pointercancel`,m,{signal:c})},f=e=>{let t=o.current;if(!t.isActive||e.pointerId!==t.pointerId)return;let r=[e.clientX-t.startXY[0],e.clientY-t.startXY[1]];if(!t.thresholdMet){let[n,i]=Be(a.current.threshold);if(Math.abs(r[0])0?[Math.abs(d[0])/f,Math.abs(d[1])/f]:t.lastVelocity;t.lastVelocity=p;let m=!t.firstFired;t.firstFired=!0,t.prevXY=[e.clientX,e.clientY],t.prevTimestamp=e.timeStamp,i.current({xy:[e.clientX,e.clientY],initial:[...t.startXY],movement:s,delta:d,distance:[Math.abs(s[0]),Math.abs(s[1])],direction:[ze(d[0]),ze(d[1])],velocity:p,elapsedTime:e.timeStamp-t.startTimestamp,first:m,last:!1,active:!0,tap:!1,canceled:!1,cancel:l,event:e})},p=e=>{let t=o.current;if(!t.isActive||e.pointerId!==t.pointerId)return;let r=a.current;if(!t.thresholdMet){if(r.filterTaps){let a=[e.clientX-t.startXY[0],e.clientY-t.startXY[1]],o=n(a),s=[Math.abs(o[0]),Math.abs(o[1])],c=Math.max(s[0],s[1])<(r.tapThreshold??3);i.current({xy:[e.clientX,e.clientY],initial:[...t.startXY],movement:o,delta:o,distance:s,direction:[ze(o[0]),ze(o[1])],velocity:[0,0],elapsedTime:e.timeStamp-t.startTimestamp,first:!0,last:!0,active:!1,tap:c,canceled:!1,cancel:l,event:e})}c();return}let s=[e.clientX-t.startXY[0],e.clientY-t.startXY[1]],u=n(s),d=[Math.abs(u[0]),Math.abs(u[1])],f=[e.clientX-t.prevXY[0],e.clientY-t.prevXY[1]],p=n(f),m=e.timeStamp-t.prevTimestamp>Re?[0,0]:t.lastVelocity,h=Math.max(d[0],d[1]),g=r.filterTaps===!0&&h<(r.tapThreshold??3);i.current({xy:[e.clientX,e.clientY],initial:[...t.startXY],movement:u,delta:p,distance:d,direction:[ze(p[0]),ze(p[1])],velocity:m,elapsedTime:e.timeStamp-t.startTimestamp,first:!t.firstFired,last:!0,active:!1,tap:g,canceled:!1,cancel:l,event:e}),c()},m=e=>{let t=o.current;if(!t.isActive||e.pointerId!==t.pointerId)return;let r=[e.clientX-t.startXY[0],e.clientY-t.startXY[1]],a=n(r);i.current({xy:[e.clientX,e.clientY],initial:[...t.startXY],movement:a,delta:[0,0],distance:[Math.abs(a[0]),Math.abs(a[1])],direction:[0,0],velocity:[0,0],elapsedTime:e.timeStamp-t.startTimestamp,first:!t.firstFired,last:!0,active:!1,tap:!1,canceled:!0,cancel:l,event:e}),c()};return e.addEventListener(`pointerdown`,d,{signal:t.signal}),()=>{t.abort(),s.current?.abort(),s.current=null,o.current.isActive&&(o.current.isActive=!1,r(!1),document.body.style.userSelect=``,document.body.style.webkitUserSelect=``)}},[]),active:n}}function Ue(e){let t=e,n=!1,r=new Set;return{getState(){return t},updateState(e){t=typeof e==`function`?e(t):e},setState(e){this.updateState(e),r.forEach(e=>e(t))},initialize(e){n||=(t=e,!0)},subscribe(e){return r.add(e),()=>r.delete(e)}}}function We(e){return(0,h.useSyncExternalStore)(e.subscribe,()=>e.getState(),()=>e.getState())}var Ge=0;function Ke(e,t,n){let r=[],i=[],a=new Map;for(let n of e){let e=n.position||t,r=a.get(e);r?r.push(n):a.set(e,[n])}for(let e of a.values())e.sort((e,t)=>(t.priority??0)-(e.priority??0)||(e.__sequence??0)-(t.__sequence??0)),e.forEach((e,t)=>{tWe(e);function Ye(e,t){let n=e.getState(),r=t([...n.notifications,...n.queue]);for(let e of r)e.__sequence===void 0&&(e.__sequence=Ge,Ge+=1);let i=Ke(r,n.defaultPosition,n.limit);e.setState({notifications:i.notifications,queue:i.queue,limit:n.limit,defaultPosition:n.defaultPosition})}function Xe(e,t=qe){let n=e.id||d();return Ye(t,t=>e.id&&t.some(t=>t.id===e.id)?t:[...t,{...e,id:n}]),n}function Ze(e,t=qe){return Ye(t,t=>t.filter(t=>t.id!==e||(t.onClose?.(t),!1))),e}function Qe(e,t=qe){return Ye(t,t=>t.map(t=>t.id===e.id?{...t,...e}:t)),e.id}function $e(e,t){return typeof e==`function`?e(t):e}function et(e,t){let n=t.getState();return[...n.notifications,...n.queue].some(t=>t.id===e.id)?Qe(e,t):Xe(e,t)}var tt=new WeakMap;function nt(e,t,n=qe){let r=t.id||d(),i=tt.get(n)||new Map,a={};tt.set(n,i),i.set(r,a),et({loading:!0,autoClose:!1,...t.loading,id:r},n);let o=e=>{i.get(r)===a&&(i.delete(r),et({...t.loading,loading:!1,autoClose:void 0,...e,id:r},n))};return e.then(e=>o({color:`teal`,...$e(t.success,e)}),e=>o({color:`red`,...$e(t.error,e)})),e}function rt(e=qe){Ye(e,()=>[])}function it(e=qe){let{defaultPosition:t,limit:n}=e.getState();Ye(e,e=>Ke(e,t,n).notifications)}var at={show:Xe,hide:Ze,update:Qe,promise:nt,clean:rt,cleanQueue:it,updateState:Ye},ot=[`bottom-center`,`bottom-left`,`bottom-right`,`top-center`,`top-left`,`top-right`];function st(e,t){return e.reduce((e,n)=>(e[n.position||t].push(n),e),ot.reduce((e,t)=>(e[t]=[],e),{}))}var ct={left:`translateX(-100%)`,right:`translateX(100%)`,"top-center":`translateY(-100%)`,"bottom-center":`translateY(100%)`},lt={left:`translateX(0)`,right:`translateX(0)`,"top-center":`translateY(0)`,"bottom-center":`translateY(0)`};function ut({state:e,maxHeight:t,position:n,transitionDuration:r}){let[i,a]=n.split(`-`),o=a===`center`?`${i}-center`:a,s={opacity:0,maxHeight:t,transform:ct[o],transitionDuration:`${r}ms, ${r}ms, ${r}ms`,transitionTimingFunction:`cubic-bezier(.51,.3,0,1.21), cubic-bezier(.51,.3,0,1.21), linear`,transitionProperty:`opacity, transform, max-height`},c={opacity:1,transform:lt[o]},l={opacity:0,maxHeight:0,transform:ct[o]},u={entering:c,entered:c,exiting:l,exited:l};return{...s,...u[e]}}function dt(e,t){return typeof t==`number`?t:t===!1||e===!1?!1:e}function ft(e){return Object.keys(e)}function pt(e){return e&&typeof e==`object`&&!Array.isArray(e)}function mt(e,t){let n={...e},r=t;return pt(e)&&pt(t)&&Object.keys(t).forEach(t=>{pt(r[t])&&t in e?n[t]=mt(n[t],r[t]):n[t]=r[t]}),n}function ht(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function gt(e){return typeof e!=`string`||!e.includes(`var(--mantine-scale)`)?e:e.match(/^calc\((.*?)\)$/)?.[1].split(`*`)[0].trim()}function _t(e){let t=gt(e);return typeof t==`number`?t:typeof t==`string`?t.includes(`calc`)||t.includes(`var`)?t:t.includes(`px`)?Number(t.replace(`px`,``)):t.includes(`rem`)?Number(t.replace(`rem`,``))*16:t.includes(`em`)?Number(t.replace(`em`,``))*16:Number(t):NaN}function vt(e){return e===`0rem`?`0rem`:`calc(${e} * var(--mantine-scale))`}function yt(e,{shouldScale:t=!1}={}){function n(r){if(r===0||r===`0`)return`0${e}`;if(typeof r==`number`){let n=`${r/16}${e}`;return t?vt(n):n}if(typeof r==`string`){if(r===``||r.startsWith(`calc(`)||r.startsWith(`clamp(`)||r.includes(`rgba(`))return r;if(r.includes(`,`))return r.split(`,`).map(e=>n(e)).join(`,`);if(r.includes(` `))return r.split(` `).map(e=>n(e)).join(` `);let i=r.replace(`px`,``);if(!Number.isNaN(Number(i))){let n=`${Number(i)/16}${e}`;return t?vt(n):n}}return r}return n}var V=yt(`rem`,{shouldScale:!0}),bt=yt(`em`);function xt(e){return Object.keys(e).reduce((t,n)=>(e[n]!==void 0&&(t[n]=e[n]),t),{})}function St(e){if(typeof e==`number`)return!0;if(typeof e==`string`){if(e.startsWith(`calc(`)||e.startsWith(`var(`)||e.includes(` `)&&e.trim()!==``)return!0;let t=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(e=>t.test(e))}return!1}function Ct(e){return Array.isArray(e)||e===null?!1:typeof e==`object`&&e.type!==h.Fragment}function wt(e){let t=(0,h.createContext)(null);return[t,()=>{let n=(0,h.use)(t);if(n===null)throw Error(e);return n}]}function Tt(e,t){return n=>{if(typeof n!=`string`||n.trim().length===0)throw Error(t);return`${e}-${n}`}}function Et(e,t){let n=e;for(;(n=n.parentElement)&&!n.matches(t););return n}function Dt(e,t,n){for(let n=e-1;n>=0;--n)if(!t[n].disabled)return n;if(n){for(let e=t.length-1;e>-1;--e)if(!t[e].disabled)return e}return e}function Ot(e,t,n){for(let n=e+1;n{n?.(s);let c=Array.from(Et(s.currentTarget,e)?.querySelectorAll(t)||[]).filter(t=>kt(s.currentTarget,t,e)),l=c.findIndex(e=>s.currentTarget===e),u=Ot(l,c,r),d=Dt(l,c,r),f=a===`rtl`?d:u,p=a===`rtl`?u:d;switch(s.key){case`ArrowRight`:o===`horizontal`&&(s.stopPropagation(),s.preventDefault(),c[f].focus(),i&&c[f].click());break;case`ArrowLeft`:o===`horizontal`&&(s.stopPropagation(),s.preventDefault(),c[p].focus(),i&&c[p].click());break;case`ArrowUp`:o===`vertical`&&(s.stopPropagation(),s.preventDefault(),c[d].focus(),i&&c[d].click());break;case`ArrowDown`:o===`vertical`&&(s.stopPropagation(),s.preventDefault(),c[u].focus(),i&&c[u].click());break;case`Home`:s.stopPropagation(),s.preventDefault(),c[Ot(-1,c,!1)]?.focus();break;case`End`:s.stopPropagation(),s.preventDefault(),c[Dt(c.length,c,!1)]?.focus()}}}var jt={app:100,modal:200,popover:300,overlay:400,max:9999};function Mt(e){return jt[e]}var Nt=()=>{};function Pt(e,t={active:!0}){return typeof e!=`function`||!t.active?t.onKeyDown||Nt:n=>{n.key===`Escape`&&(e(n),t.onTrigger?.())}}function Ft(e,t=`size`,n=!0){if(e!==void 0)return St(e)?n?V(e):e:`var(--${t}-${e})`}function It(e){return Ft(e,`mantine-spacing`)}function Lt(e){return e===void 0?`var(--mantine-radius-default)`:Ft(e,`mantine-radius`)}function Rt(e){return Ft(e,`mantine-font-size`)}function zt(e){return Ft(e,`mantine-line-height`,!1)}function Bt(e){if(e)return Ft(e,`mantine-shadow`,!1)}function Vt(e,t){return n=>{e?.(n),t?.(n)}}function Ht(e,t){return e in t?_t(t[e]):_t(e)}function Ut(e,t){let n=e.map(e=>({value:e,px:Ht(e,t)}));return n.sort((e,t)=>e.px-t.px),n}function Wt(e){return typeof e==`object`&&e?`base`in e?e.base:void 0:e}function Gt(e,t,n){return n?Array.from(Et(n,t)?.querySelectorAll(e)||[]).findIndex(e=>e===n):null}function Kt(){return`development`}function qt(e){return e?.props?.ref}function Jt(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`bigint`}function Yt(e,t=document){let n=t.querySelector(e);if(n)return n;let r=t.querySelectorAll(`*`);for(let t=0;t{Object.entries(e).forEach(([e,n])=>{t[e]?t[e]=tn(t[e],n):t[e]=n})}),t}function an({theme:e,classNames:t,props:n,stylesCtx:r}){return rn((Array.isArray(t)?t:[t]).map(t=>typeof t==`function`?t(e,n,r):t||nn))}function on({theme:e,styles:t,props:n,stylesCtx:r}){let i=Array.isArray(t)?t:[t],a={};for(let t of i)typeof t==`function`?Object.assign(a,t(e,n,r)):t&&Object.assign(a,t);return a}function sn(e){return e===`auto`||e===`dark`||e===`light`}function cn({key:e=`mantine-color-scheme-value`}={}){let t;return{get:t=>{if(typeof window>`u`)return t;try{let n=window.localStorage.getItem(e);return sn(n)?n:t}catch{return t}},set:t=>{try{window.localStorage.setItem(e,t)}catch(e){console.warn(`[@mantine/core] Local storage color scheme manager was unable to save color scheme.`,e)}},subscribe:n=>{t=t=>{t.storageArea===window.localStorage&&t.key===e&&sn(t.newValue)&&n(t.newValue)},window.addEventListener(`storage`,t)},unsubscribe:()=>{window.removeEventListener(`storage`,t)},clear:()=>{window.localStorage.removeItem(e)}}}function ln(e,t){return typeof e.primaryShade==`number`?e.primaryShade:t===`dark`?e.primaryShade.dark:e.primaryShade.light}function un(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function dn(e){let t=e.replace(`#`,``);if(t.length===3){let e=t.split(``);t=[e[0],e[0],e[1],e[1],e[2],e[2]].join(``)}if(t.length===8){let e=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:e}}let n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:n&255,a:1}}function fn(e){let[t,n,r,i]=e.replace(/[^0-9,./]/g,``).split(/[/,]/).map(Number);return{r:t,g:n,b:r,a:i===void 0?1:i}}function pn(e){let t=e.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!t)return{r:0,g:0,b:0,a:1};let n=parseInt(t[1],10),r=parseInt(t[2],10)/100,i=parseInt(t[3],10)/100,a=t[5]?parseFloat(t[5]):void 0,o=(1-Math.abs(2*i-1))*r,s=n/60,c=o*(1-Math.abs(s%2-1)),l=i-o/2,u,d,f;return s>=0&&s<1?(u=o,d=c,f=0):s>=1&&s<2?(u=c,d=o,f=0):s>=2&&s<3?(u=0,d=o,f=c):s>=3&&s<4?(u=0,d=c,f=o):s>=4&&s<5?(u=c,d=0,f=o):(u=o,d=0,f=c),{r:Math.round((u+l)*255),g:Math.round((d+l)*255),b:Math.round((f+l)*255),a:a||1}}function mn(e){return un(e)?dn(e):e.startsWith(`rgb`)?fn(e):e.startsWith(`hsl`)?pn(e):{r:0,g:0,b:0,a:1}}function hn(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function gn(e){let t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function _n(e){if(e.startsWith(`oklch(`))return(gn(e)||0)/100;let{r:t,g:n,b:r}=mn(e),i=t/255,a=n/255,o=r/255,s=hn(i),c=hn(a),l=hn(o);return .2126*s+.7152*c+.0722*l}function vn(e,t=.179){return!e.startsWith(`var(`)&&_n(e)>t}function yn({color:e,theme:t,colorScheme:n}){if(typeof e!=`string`)throw Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e===`bright`)return{color:e,value:n===`dark`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:vn(n===`dark`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-bright`};if(e===`dimmed`)return{color:e,value:n===`dark`?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:vn(n===`dark`?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:`--mantine-color-dimmed`};if(e===`white`||e===`black`)return{color:e,value:e===`white`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:vn(e===`white`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};let[r,i]=e.split(`.`),a=i?Number(i):void 0,o=r in t.colors;if(o){let e=a===void 0?t.colors[r][ln(t,n||`light`)]:t.colors[r][a];return{color:r,value:e,shade:a,isThemeColor:o,isLight:vn(e,t.luminanceThreshold),variable:i?`--mantine-color-${r}-${a}`:`--mantine-color-${r}-filled`}}return{color:e,value:e,isThemeColor:o,isLight:vn(e,t.luminanceThreshold),shade:a,variable:void 0}}function bn(e,t){let n=yn({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}function xn(e){return Array.isArray(e)?e:Array(10).fill(e)}function Sn(e){let t=xn(Array.from({length:10}).map((t,n)=>`var(--mantine-color-${e.name}-${n})`));return Object.defineProperty(t,"mantine-virtual-color",{enumerable:!1,writable:!1,configurable:!1,value:!0}),Object.defineProperty(t,"dark",{enumerable:!1,writable:!1,configurable:!1,value:e.dark}),Object.defineProperty(t,"light",{enumerable:!1,writable:!1,configurable:!1,value:e.light}),Object.defineProperty(t,"name",{enumerable:!1,writable:!1,configurable:!1,value:e.name}),t}function Cn(e){return!!e&&typeof e==`object`&&`mantine-virtual-color`in e}function wn(e,t){if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, black ${t*100}%)`;let{r:n,g:r,b:i,a}=mn(e),o=1-t,s=e=>Math.round(e*o);return`rgba(${s(n)}, ${s(r)}, ${s(i)}, ${a})`}function Tn(e,t){let n={from:e?.from||t.defaultGradient.from,to:e?.to||t.defaultGradient.to,deg:e?.deg??t.defaultGradient.deg??0},r=bn(n.from,t),i=bn(n.to,t);return`linear-gradient(${n.deg}deg, ${r} 0%, ${i} 100%)`}function En(e,t){if(typeof e!=`string`||t>1||t<0)return`rgba(0, 0, 0, 1)`;if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, transparent ${(1-t)*100}%)`;if(e.startsWith(`oklch`))return e.includes(`/`)?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(`)`,` / ${t})`);let{r:n,g:r,b:i}=mn(e);return`rgba(${n}, ${r}, ${i}, ${t})`}var Dn=En,On=({color:e,theme:t,variant:n,gradient:r,autoContrast:i})=>{let a=yn({color:e,theme:t}),o=typeof i==`boolean`?i:t.autoContrast;if(n===`none`)return{background:`transparent`,hover:`transparent`,color:`inherit`,border:`none`};if(n===`filled`){let n=a.isThemeColor&&a.shade===void 0&&Cn(t.colors[a.color]),r=o?n?`var(--mantine-color-${a.color}-contrast)`:a.isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`:`var(--mantine-color-white)`;return a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:r,border:`${V(1)} solid transparent`}:{background:`var(--mantine-color-${a.color}-${a.shade})`,hover:`var(--mantine-color-${a.color}-${a.shade===9?8:a.shade+1})`,color:r,border:`${V(1)} solid transparent`}:{background:e,hover:wn(e,.1),color:r,border:`${V(1)} solid transparent`}}if(n===`light`){if(a.isThemeColor){if(a.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${V(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:n,hover:wn(n,.1),color:`var(--mantine-color-${a.color}-light-color)`,border:`${V(1)} solid transparent`}}return{background:En(e,.1),hover:En(e,.12),color:e,border:`${V(1)} solid transparent`}}if(n===`outline`)return a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${V(1)} solid var(--mantine-color-${e}-outline)`}:{background:`transparent`,hover:En(t.colors[a.color][a.shade],.05),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${V(1)} solid var(--mantine-color-${a.color}-${a.shade})`}:{background:`transparent`,hover:En(e,.05),color:e,border:`${V(1)} solid ${e}`};if(n===`subtle`){if(a.isThemeColor){if(a.shade===void 0)return{background:`transparent`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${V(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:`transparent`,hover:En(n,.12),color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${V(1)} solid transparent`}}return{background:`transparent`,hover:En(e,.12),color:e,border:`${V(1)} solid transparent`}}return n===`transparent`?a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${e}-light-color)`,border:`${V(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${V(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:e,border:`${V(1)} solid transparent`}:n===`white`?a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-white)`,hover:wn(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${V(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:wn(t.white,.01),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${V(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:wn(t.white,.01),color:e,border:`${V(1)} solid transparent`}:n===`gradient`?{background:Tn(r,t),hover:Tn(r,t),color:`var(--mantine-color-white)`,border:`none`}:n==="default"?{background:`var(--mantine-color-default)`,hover:`var(--mantine-color-default-hover)`,color:`var(--mantine-color-default-color)`,border:`${V(1)} solid var(--mantine-color-default-border)`}:{}};function kn(e,t){if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, white ${t*100}%)`;let{r:n,g:r,b:i,a}=mn(e),o=e=>Math.round(e+(255-e)*t);return`rgba(${o(n)}, ${o(r)}, ${o(i)}, ${a})`}function An({color:e,theme:t,autoContrast:n,colorScheme:r}){return(typeof n==`boolean`?n:t.autoContrast)&&yn({color:e||t.primaryColor,theme:t,colorScheme:r}).isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`}function jn(e,t,n){return An({color:n===`dark`?e.dark:e.light,theme:t,colorScheme:n,autoContrast:!0})}function Mn(e,t){let n=e.colors[e.primaryColor];return Cn(n)?e.autoContrast?jn(n,e,t):`var(--mantine-color-white)`:An({color:n[ln(e,t)],theme:e,autoContrast:null})}function Nn(e,t){return typeof e==`boolean`?e:t.autoContrast}var Pn=(0,h.createContext)(null);function Fn(){let e=(0,h.use)(Pn);if(!e)throw Error(`[@mantine/core] MantineProvider was not found in tree`);return e}function In(){return Fn().cssVariablesResolver}function Ln(){return Fn().classNamesPrefix}function Rn(){return Fn().getStyleNonce}function zn(){return Fn().withStaticClasses}function Bn(){return Fn().headless}function Vn(){return Fn().stylesTransform?.sx}function Hn(){return Fn().stylesTransform?.styles}function Un(){return Fn().env||`default`}function Wn(){return Fn().deduplicateInlineStyles}function Gn(e){let t=document.createElement(`style`);return t.setAttribute(`data-mantine-styles`,`inline`),t.innerHTML=`*, *::before, *::after {transition: none !important;}`,t.setAttribute(`data-mantine-disable-transition`,`true`),e&&t.setAttribute(`nonce`,e),document.head.appendChild(t),()=>document.querySelectorAll(`[data-mantine-disable-transition]`).forEach(e=>e.remove())}function Kn({keepTransitions:e}={}){let t=(0,h.useRef)(Nt),n=(0,h.useRef)(-1),r=(0,h.use)(Pn),i=Rn(),a=(0,h.useRef)(i?.());if(!r)throw Error(`[@mantine/core] MantineProvider was not found in tree`);let o=i=>{r.setColorScheme(i),t.current=e?()=>{}:Gn(a.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current?.()},10)},s=()=>{r.clearColorScheme(),t.current=e?()=>{}:Gn(a.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current?.()},10)},c=S(`light`,{getInitialValueInEffect:!1}),l=r.colorScheme===`auto`?c:r.colorScheme,u=(0,h.useCallback)(()=>o(l===`light`?`dark`:`light`),[o,l]);return(0,h.useEffect)(()=>()=>{t.current?.(),window.clearTimeout(n.current)},[]),{colorScheme:r.colorScheme,setColorScheme:o,clearColorScheme:s,toggleColorScheme:u}}function qn(e,t){let n=typeof window<`u`&&`matchMedia`in window&&window.matchMedia(`(prefers-color-scheme: dark)`)?.matches,r=e===`auto`?n?`dark`:`light`:e;t()?.setAttribute(`data-mantine-color-scheme`,r)}function Jn({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:r}){let i=(0,h.useRef)(null),[a,o]=(0,h.useState)(()=>e.get(t)),s=r||a,c=(0,h.useCallback)(t=>{r||(qn(t,n),o(t),e.set(t))},[e.set,s,r]),l=(0,h.useCallback)(()=>{o(t),qn(t,n),e.clear()},[e.clear,t]);return(0,h.useEffect)(()=>(e.subscribe(c),e.unsubscribe),[e.subscribe,e.unsubscribe]),C(()=>{qn(e.get(t),n)},[]),(0,h.useEffect)(()=>{if(r)return qn(r,n),()=>{};r===void 0&&qn(a,n),typeof window<`u`&&`matchMedia`in window&&(i.current=window.matchMedia(`(prefers-color-scheme: dark)`));let e=e=>{a===`auto`&&qn(e.matches?`dark`:`light`,n)};return i.current?.addEventListener(`change`,e),()=>i.current?.removeEventListener(`change`,e)},[a,r]),{colorScheme:s,setColorScheme:c,clearColorScheme:l}}function Yn(e,t={getInitialValueInEffect:!0}){let n=S(e,t),{colorScheme:r}=Kn();return r===`auto`?n:r}var Xn=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Zn=o(((e,t)=>{t.exports=Xn()})),Qn={dark:[`#C9C9C9`,`#b8b8b8`,`#828282`,`#696969`,`#424242`,`#3b3b3b`,`#2e2e2e`,`#242424`,`#1f1f1f`,`#141414`],gray:[`#f8f9fa`,`#f1f3f5`,`#e9ecef`,`#dee2e6`,`#ced4da`,`#adb5bd`,`#868e96`,`#495057`,`#343a40`,`#212529`],red:[`#fff5f5`,`#ffe3e3`,`#ffc9c9`,`#ffa8a8`,`#ff8787`,`#ff6b6b`,`#fa5252`,`#f03e3e`,`#e03131`,`#c92a2a`],pink:[`#fff0f6`,`#ffdeeb`,`#fcc2d7`,`#faa2c1`,`#f783ac`,`#f06595`,`#e64980`,`#d6336c`,`#c2255c`,`#a61e4d`],grape:[`#f8f0fc`,`#f3d9fa`,`#eebefa`,`#e599f7`,`#da77f2`,`#cc5de8`,`#be4bdb`,`#ae3ec9`,`#9c36b5`,`#862e9c`],violet:[`#f3f0ff`,`#e5dbff`,`#d0bfff`,`#b197fc`,`#9775fa`,`#845ef7`,`#7950f2`,`#7048e8`,`#6741d9`,`#5f3dc4`],indigo:[`#edf2ff`,`#dbe4ff`,`#bac8ff`,`#91a7ff`,`#748ffc`,`#5c7cfa`,`#4c6ef5`,`#4263eb`,`#3b5bdb`,`#364fc7`],blue:[`#e7f5ff`,`#d0ebff`,`#a5d8ff`,`#74c0fc`,`#4dabf7`,`#339af0`,`#228be6`,`#1c7ed6`,`#1971c2`,`#1864ab`],cyan:[`#e3fafc`,`#c5f6fa`,`#99e9f2`,`#66d9e8`,`#3bc9db`,`#22b8cf`,`#15aabf`,`#1098ad`,`#0c8599`,`#0b7285`],teal:[`#e6fcf5`,`#c3fae8`,`#96f2d7`,`#63e6be`,`#38d9a9`,`#20c997`,`#12b886`,`#0ca678`,`#099268`,`#087f5b`],green:[`#ebfbee`,`#d3f9d8`,`#b2f2bb`,`#8ce99a`,`#69db7c`,`#51cf66`,`#40c057`,`#37b24d`,`#2f9e44`,`#2b8a3e`],lime:[`#f4fce3`,`#e9fac8`,`#d8f5a2`,`#c0eb75`,`#a9e34b`,`#94d82d`,`#82c91e`,`#74b816`,`#66a80f`,`#5c940d`],yellow:[`#fff9db`,`#fff3bf`,`#ffec99`,`#ffe066`,`#ffd43b`,`#fcc419`,`#fab005`,`#f59f00`,`#f08c00`,`#e67700`],orange:[`#fff4e6`,`#ffe8cc`,`#ffd8a8`,`#ffc078`,`#ffa94d`,`#ff922b`,`#fd7e14`,`#f76707`,`#e8590c`,`#d9480f`]},$n=`-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji`,er={scale:1,fontSmoothing:!0,focusRing:`auto`,white:`#fff`,black:`#000`,colors:Qn,primaryShade:{light:6,dark:8},primaryColor:`blue`,variantColorResolver:On,autoContrast:!1,luminanceThreshold:.3,fontFamily:$n,fontFamilyMonospace:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace`,respectReducedMotion:!1,cursorType:`default`,defaultGradient:{from:`blue`,to:`cyan`,deg:45},defaultRadius:`md`,activeClassName:`mantine-active`,focusClassName:``,headings:{fontFamily:$n,fontWeight:`700`,textWrap:`wrap`,sizes:{h1:{fontSize:V(34),lineHeight:`1.3`},h2:{fontSize:V(26),lineHeight:`1.35`},h3:{fontSize:V(22),lineHeight:`1.4`},h4:{fontSize:V(18),lineHeight:`1.45`},h5:{fontSize:V(16),lineHeight:`1.5`},h6:{fontSize:V(14),lineHeight:`1.5`}}},fontSizes:{xs:V(12),sm:V(14),md:V(16),lg:V(18),xl:V(20)},lineHeights:{xs:`1.4`,sm:`1.45`,md:`1.55`,lg:`1.6`,xl:`1.65`},fontWeights:{regular:`400`,medium:`600`,bold:`700`},radius:{xs:V(2),sm:V(4),md:V(8),lg:V(16),xl:V(32)},spacing:{xs:V(10),sm:V(12),md:V(16),lg:V(20),xl:V(32)},breakpoints:{xs:`36em`,sm:`48em`,md:`62em`,lg:`75em`,xl:`88em`},shadows:{xs:`0 ${V(1)} ${V(3)} rgba(0, 0, 0, 0.05), 0 ${V(1)} ${V(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${V(1)} ${V(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${V(10)} ${V(15)} ${V(-5)}, rgba(0, 0, 0, 0.04) 0 ${V(7)} ${V(7)} ${V(-5)}`,md:`0 ${V(1)} ${V(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${V(20)} ${V(25)} ${V(-5)}, rgba(0, 0, 0, 0.04) 0 ${V(10)} ${V(10)} ${V(-5)}`,lg:`0 ${V(1)} ${V(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${V(28)} ${V(23)} ${V(-7)}, rgba(0, 0, 0, 0.04) 0 ${V(12)} ${V(12)} ${V(-7)}`,xl:`0 ${V(1)} ${V(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${V(36)} ${V(28)} ${V(-7)}, rgba(0, 0, 0, 0.04) 0 ${V(17)} ${V(17)} ${V(-7)}`},other:{},components:{}},tr=`[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color`,nr=`[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }`;function rr(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function ir(e){if(!(e.primaryColor in e.colors))throw Error(tr);if(typeof e.primaryShade==`object`&&(!rr(e.primaryShade.dark)||!rr(e.primaryShade.light))||typeof e.primaryShade==`number`&&!rr(e.primaryShade))throw Error(nr)}function ar(e,t){if(!t)return ir(e),e;let n=mt(e,t);return t.fontFamily&&!t.headings?.fontFamily&&(n.headings={...n.headings,fontFamily:t.fontFamily}),ir(n),n}var H=Zn(),or=(0,h.createContext)(null),sr=()=>(0,h.use)(or)||er;function cr(){let e=(0,h.use)(or);if(!e)throw Error(`@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app`);return e}function lr({theme:e,children:t,inherit:n=!0}){let r=sr(),i=(0,h.useMemo)(()=>ar(n?r:er,e),[e,r,n]);return(0,H.jsx)(or,{value:i,children:t})}lr.displayName=`@mantine/core/MantineThemeProvider`;function ur(e){return Object.entries(e).map(([e,t])=>`${e}: ${t};`).join(``)}function dr(e,t){let n=t?[t]:[`:root`,`:host`],r=ur(e.variables),i=r?`${n.join(`, `)}{${r}}`:``,a=ur(e.dark),o=ur(e.light),s=e=>n.map(t=>t===`:host`?`${t}([data-mantine-color-scheme="${e}"])`:`${t}[data-mantine-color-scheme="${e}"]`).join(`, `);return`${i}\n\n${a?`${s(`dark`)}{${a}}`:``}\n\n${o?`${s(`light`)}{${o}}`:``}`}function fr({theme:e,color:t,colorScheme:n,name:r=t,withColorValues:i=!0}){if(!e.colors[t])return{};if(n===`light`){let n=ln(e,`light`),a={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${n===9?8:n+1})`,[`--mantine-color-${r}-light`]:`var(--mantine-color-${r}-1)`,[`--mantine-color-${r}-light-hover`]:`var(--mantine-color-${r}-2)`,[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-9)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-outline-hover`]:Dn(e.colors[t][n],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...a}:a}let a=ln(e,`dark`),o={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${a===9?8:a+1})`,[`--mantine-color-${r}-light`]:wn(e.colors[t][9],.5),[`--mantine-color-${r}-light-hover`]:wn(e.colors[t][9],.3),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-0)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(a-4,0)})`,[`--mantine-color-${r}-outline-hover`]:Dn(e.colors[t][Math.max(a-4,0)],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...o}:o}function pr(e,t,n){ft(t).forEach(r=>Object.assign(e,{[`--mantine-${n}-${r}`]:t[r]}))}var mr=e=>{let t=ln(e,`light`),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:V(e.defaultRadius),r={variables:{"--mantine-z-index-app":`100`,"--mantine-z-index-modal":`200`,"--mantine-z-index-popover":`300`,"--mantine-z-index-overlay":`400`,"--mantine-z-index-max":`9999`,"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-webkit-font-smoothing":e.fontSmoothing?`antialiased`:`unset`,"--mantine-moz-font-smoothing":e.fontSmoothing?`grayscale`:`unset`,"--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-color-scheme":`light`,"--mantine-primary-color-contrast":Mn(e,`light`),"--mantine-color-bright":`var(--mantine-color-black)`,"--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":`var(--mantine-color-red-6)`,"--mantine-color-success":`var(--mantine-color-teal-8)`,"--mantine-color-placeholder":`var(--mantine-color-gray-5)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":`var(--mantine-color-white)`,"--mantine-color-default-hover":`var(--mantine-color-gray-0)`,"--mantine-color-default-color":`var(--mantine-color-black)`,"--mantine-color-default-border":`var(--mantine-color-gray-4)`,"--mantine-color-dimmed":`var(--mantine-color-gray-6)`,"--mantine-color-disabled":`var(--mantine-color-gray-2)`,"--mantine-color-disabled-color":`var(--mantine-color-gray-5)`,"--mantine-color-disabled-border":`var(--mantine-color-gray-3)`},dark:{"--mantine-color-scheme":`dark`,"--mantine-primary-color-contrast":Mn(e,`dark`),"--mantine-color-bright":`var(--mantine-color-white)`,"--mantine-color-text":`var(--mantine-color-dark-0)`,"--mantine-color-body":`var(--mantine-color-dark-7)`,"--mantine-color-error":`var(--mantine-color-red-8)`,"--mantine-color-success":`var(--mantine-color-teal-8)`,"--mantine-color-placeholder":`var(--mantine-color-dark-3)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":`var(--mantine-color-dark-6)`,"--mantine-color-default-hover":`var(--mantine-color-dark-5)`,"--mantine-color-default-color":`var(--mantine-color-white)`,"--mantine-color-default-border":`var(--mantine-color-dark-4)`,"--mantine-color-dimmed":`var(--mantine-color-dark-2)`,"--mantine-color-disabled":`var(--mantine-color-dark-6)`,"--mantine-color-disabled-color":`var(--mantine-color-dark-3)`,"--mantine-color-disabled-border":`var(--mantine-color-dark-4)`}};pr(r.variables,e.breakpoints,`breakpoint`),pr(r.variables,e.spacing,`spacing`),pr(r.variables,e.fontSizes,`font-size`),pr(r.variables,e.lineHeights,`line-height`),pr(r.variables,e.shadows,`shadow`),pr(r.variables,e.radius,`radius`),pr(r.variables,e.fontWeights,`font-weight`),e.colors[e.primaryColor].forEach((t,n)=>{r.variables[`--mantine-primary-color-${n}`]=`var(--mantine-color-${e.primaryColor}-${n})`}),ft(e.colors).forEach(t=>{let n=e.colors[t];Cn(n)?(Object.assign(r.light,fr({theme:e,name:n.name,color:n.light,colorScheme:`light`,withColorValues:!0})),Object.assign(r.dark,fr({theme:e,name:n.name,color:n.dark,colorScheme:`dark`,withColorValues:!0})),r.light[`--mantine-color-${n.name}-contrast`]=jn(n,e,`light`),r.dark[`--mantine-color-${n.name}-contrast`]=jn(n,e,`dark`)):(n.forEach((e,n)=>{r.variables[`--mantine-color-${t}-${n}`]=e}),Object.assign(r.light,fr({theme:e,color:t,colorScheme:`light`,withColorValues:!1})),Object.assign(r.dark,fr({theme:e,color:t,colorScheme:`dark`,withColorValues:!1})))});let i=e.headings.sizes;return ft(i).forEach(t=>{r.variables[`--mantine-${t}-font-size`]=i[t].fontSize,r.variables[`--mantine-${t}-line-height`]=i[t].lineHeight,r.variables[`--mantine-${t}-font-weight`]=i[t].fontWeight||e.headings.fontWeight}),r};function hr(){let e=cr(),t=Rn(),n=ft(e.breakpoints).reduce((t,n)=>{let r=e.breakpoints[n].includes(`px`),i=_t(e.breakpoints[n]);return`${t}@media (max-width: ${r?`${i-.1}px`:bt(i-.1)}) {.mantine-visible-from-${n} {display: none !important;}}@media (min-width: ${r?`${i}px`:bt(i)}) {.mantine-hidden-from-${n} {display: none !important;}}`},``);return(0,H.jsx)(`style`,{"data-mantine-styles":`classes`,nonce:t?.(),dangerouslySetInnerHTML:{__html:n}})}function gr({theme:e,generator:t}){let n=mr(e),r=t?.(e);return r?mt(n,r):n}var _r=mr(er);function vr(e){let t={variables:{},light:{},dark:{}};return ft(e.variables).forEach(n=>{_r.variables[n]!==e.variables[n]&&(t.variables[n]=e.variables[n])}),ft(e.light).forEach(n=>{_r.light[n]!==e.light[n]&&(t.light[n]=e.light[n])}),ft(e.dark).forEach(n=>{_r.dark[n]!==e.dark[n]&&(t.dark[n]=e.dark[n])}),t}function yr(e){return dr({variables:{},dark:{"--mantine-color-scheme":`dark`},light:{"--mantine-color-scheme":`light`}},e)}function br({cssVariablesSelector:e,deduplicateCssVariables:t}){let n=cr(),r=Rn(),i=gr({theme:n,generator:In()}),a=(e===void 0||e===`:root`||e===`:host`)&&t,o=dr(a?vr(i):i,e);return o?(0,H.jsx)(`style`,{"data-mantine-styles":!0,nonce:r?.(),dangerouslySetInnerHTML:{__html:`${o}${a?``:yr(e)}`}}):null}br.displayName=`@mantine/CssVariables`;function xr({respectReducedMotion:e,getRootElement:t}){C(()=>{e&&t()?.setAttribute(`data-respect-reduced-motion`,`true`)},[e])}function Sr({theme:e,children:t,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:i=!0,deduplicateCssVariables:a=!0,withCssVariables:o=!0,cssVariablesSelector:s,classNamesPrefix:c=`mantine`,colorSchemeManager:l=cn(),defaultColorScheme:u=`light`,getRootElement:d=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:p,stylesTransform:m,env:h,deduplicateInlineStyles:g=!1}){let{colorScheme:_,setColorScheme:v,clearColorScheme:y}=Jn({defaultColorScheme:u,forceColorScheme:p,manager:l,getRootElement:d});return xr({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:d}),(0,H.jsx)(Pn,{value:{colorScheme:_,setColorScheme:v,clearColorScheme:y,getRootElement:d,classNamesPrefix:c,getStyleNonce:n,cssVariablesResolver:f,cssVariablesSelector:s??`:root`,withStaticClasses:r,stylesTransform:m,env:h,deduplicateInlineStyles:g},children:(0,H.jsxs)(lr,{theme:e,children:[o&&(0,H.jsx)(br,{cssVariablesSelector:s,deduplicateCssVariables:a}),i&&(0,H.jsx)(hr,{}),t]})})}Sr.displayName=`@mantine/core/MantineProvider`;function U(e,t,n){let r=cr(),i=(Array.isArray(e)?e:[e]).filter(Boolean),a={};for(let e of i){let t=r.components[e]?.defaultProps,n=typeof t==`function`?t(r):t;n&&(a={...a,...n})}return{...t,...a,...xt(n)}}function Cr(e){return e}function wr({classNames:e,styles:t,props:n,stylesCtx:r}){let i=cr();return{resolvedClassNames:e===void 0?void 0:an({theme:i,classNames:e,props:n,stylesCtx:r||void 0}),resolvedStyles:t===void 0?void 0:on({theme:i,styles:t,props:n,stylesCtx:r||void 0})}}var Tr={always:`mantine-focus-always`,auto:`mantine-focus-auto`,never:`mantine-focus-never`};function Er({theme:e,options:t,unstyled:n}){return tn(t?.focusable&&!n&&(e.focusClassName||Tr[e.focusRing]),t?.active&&!n&&e.activeClassName)}function Dr(e,t,n=1){if(Object.is(e,t))return!0;if(n===0||typeof e!=`object`||typeof t!=`object`||e===null||t===null)return!1;if(Array.isArray(e)||Array.isArray(t)){if(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)return!1;for(let r=0;r`${t}-${e}-${n}`)}function Nr({options:e,classes:t,selector:n,unstyled:r}){return e?.variant&&!r?t[`${n}--${e.variant}`]:void 0}function Pr({theme:e,options:t,themeName:n,selector:r,classNamesPrefix:i,resolvedClassNames:a,resolvedThemeClassNames:o,classes:s,unstyled:c,className:l,rootSelector:u,props:d,stylesCtx:f,withStaticClasses:p,headless:m,transformedStyles:h}){return tn(Er({theme:e,options:t,unstyled:c||m}),o.map(e=>e[r]),Nr({options:t,classes:s,selector:r,unstyled:c||m}),a[r],kr({selector:r,stylesCtx:f,theme:e,classNames:h,props:d}),Or({selector:r,stylesCtx:f,options:t,props:d,theme:e}),Ar({rootSelector:u,selector:r,className:l}),jr({selector:r,classes:s,unstyled:c||m}),p&&!m&&Mr({themeName:n,classNamesPrefix:i,selector:r,withStaticClass:t?.withStaticClass}),t?.className)}function Fr({style:e,theme:t}){return Array.isArray(e)?e.reduce((e,n)=>({...e,...Fr({style:n,theme:t})}),{}):typeof e==`function`?e(t):e??{}}function Ir({theme:e,selector:t,options:n,props:r,stylesCtx:i,rootSelector:a,withStylesTransform:o,resolvedStyles:s,resolvedThemeStyles:c,resolvedVars:l,resolvedRootStyle:u}){return{...c[t],...s[t],...!o&&on({theme:e,styles:n?.styles,props:n?.props||r,stylesCtx:i})[t],...l[t],...a===t?u:null,...Fr({style:n?.style,theme:e})}}function Lr(e){return e.reduce((e,t)=>(t&&Object.keys(t).forEach(n=>{e[n]={...e[n],...xt(t[n])}}),e),{})}function Rr({props:e,stylesCtx:t,themeName:n,theme:r}){let i=Hn()?.();return{getTransformedStyles:a=>i?[...a.map(n=>i(n,{props:e,theme:r,ctx:t})),...n.map(n=>i(r.components[n]?.styles,{props:e,theme:r,ctx:t}))].filter(Boolean):[],withStylesTransform:!!i}}function zr({name:e,classes:t,props:n,stylesCtx:r,className:i,style:a,rootSelector:o=`root`,unstyled:s,classNames:c,styles:l,vars:u,varsResolver:d,attributes:f,stable:p}){let m=cr(),h=Ln(),g=zn(),_=Bn(),v=(Array.isArray(e)?e:[e]).filter(e=>e),{withStylesTransform:y,getTransformedStyles:b}=Rr({props:n,stylesCtx:r,themeName:v,theme:m}),x=an({theme:m,classNames:c,props:n,stylesCtx:r}),S=v.map(e=>an({theme:m,classNames:m.components[e]?.classNames,props:n,stylesCtx:r})),C=y?{}:on({theme:m,styles:l,props:n,stylesCtx:r}),w={};if(!y)for(let e of v){let t=on({theme:m,styles:m.components[e]?.styles,props:n,stylesCtx:r});for(let e of Object.keys(t))w[e]={...w[e],...t[e]}}let T=Lr([_?{}:d?.(m,n,r),...v.map(e=>m.components?.[e]?.vars?.(m,n,r)),u?.(m,n,r)]),E=Fr({style:a,theme:m});return Br((e,a)=>({...f?.[e],className:Pr({theme:m,options:a,themeName:v,selector:e,classNamesPrefix:h,resolvedClassNames:x,resolvedThemeClassNames:S,classes:t,unstyled:s,className:i,rootSelector:o,props:n,stylesCtx:r,withStaticClasses:g,headless:_,transformedStyles:b([a?.styles,l])}),style:Ir({theme:m,selector:e,options:a,props:n,stylesCtx:r,rootSelector:o,withStylesTransform:y,resolvedStyles:C,resolvedThemeStyles:w,resolvedVars:T,resolvedRootStyle:E})}),!!p,[m,h,g,_,y?n:null,t,s,i,o,f,r,x,S,C,w,T,E])}function Br(e,t,n){let r=(0,h.useRef)(null);return t?(r.current&&Dr(r.current.deps,n,3)||(r.current={deps:n,getStyles:e}),r.current.getStyles):e}function Vr(e){return ft(e).reduce((t,n)=>e[n]===void 0?t:`${t}${ht(n)}:${e[n]};`,``).trim()}function Hr({selector:e,styles:t,media:n,container:r}){let i=t?Vr(t):``,a=Array.isArray(n)?n.map(t=>`@media${t.query}{${e}{${Vr(t.styles)}}}`):[],o=Array.isArray(r)?r.map(t=>`@container ${t.query}{${e}{${Vr(t.styles)}}}`):[];return`${i?`${e}{${i}}`:``}${a.join(``)}${o.join(``)}`.trim()}function Ur(e){let t=5381;for(let n=0;n>>0).toString(36)}function Wr({deduplicate:e,...t}){let n=Rn(),r=Hr(t);return e?(0,H.jsx)(`style`,{href:`mantine-${Ur(r)}`,precedence:`mantine`,nonce:n?.(),children:r}):(0,H.jsx)(`style`,{"data-mantine-styles":`inline`,nonce:n?.(),dangerouslySetInnerHTML:{__html:r}})}function Gr(e){let t=5381;for(let n=0;n>>0).toString(36)}function Kr(e,t){return`__mdi__-${Gr(`${e?Vr(e):``}|${Array.isArray(t)?t.map(e=>`${e.query}:${Vr(e.styles)}`).join(`|`):``}`)}`}function qr(e){let{m:t,mx:n,my:r,mt:i,mb:a,ml:o,mr:s,me:c,ms:l,mis:u,mie:d,p:f,px:p,py:m,pt:h,pb:g,pl:_,pr:v,pe:y,ps:b,pis:x,pie:S,bd:C,bdrs:w,bg:T,c:E,opacity:D,ff:O,fz:k,fw:A,lts:j,ta:M,lh:N,fs:P,tt:F,td:ee,w:I,miw:te,maw:L,h:ne,mih:re,mah:ie,bgsz:ae,bgp:oe,bgr:se,bga:R,pos:ce,top:le,left:z,bottom:ue,right:de,inset:fe,display:pe,flex:me,hiddenFrom:he,visibleFrom:ge,lightHidden:_e,darkHidden:ve,sx:B,...ye}=e;return{styleProps:xt({m:t,mx:n,my:r,mt:i,mb:a,ml:o,mr:s,me:c,ms:l,mis:u,mie:d,p:f,px:p,py:m,pt:h,pb:g,pl:_,pr:v,pis:x,pie:S,pe:y,ps:b,bd:C,bg:T,c:E,opacity:D,ff:O,fz:k,fw:A,lts:j,ta:M,lh:N,fs:P,tt:F,td:ee,w:I,miw:te,maw:L,h:ne,mih:re,mah:ie,bgsz:ae,bgp:oe,bgr:se,bga:R,pos:ce,top:le,left:z,bottom:ue,right:de,inset:fe,display:pe,flex:me,bdrs:w,hiddenFrom:he,visibleFrom:ge,lightHidden:_e,darkHidden:ve,sx:B}),rest:ye}}var Jr={m:{type:`spacing`,property:`margin`},mt:{type:`spacing`,property:`marginTop`},mb:{type:`spacing`,property:`marginBottom`},ml:{type:`spacing`,property:`marginLeft`},mr:{type:`spacing`,property:`marginRight`},ms:{type:`spacing`,property:`marginInlineStart`},me:{type:`spacing`,property:`marginInlineEnd`},mis:{type:`spacing`,property:`marginInlineStart`},mie:{type:`spacing`,property:`marginInlineEnd`},mx:{type:`spacing`,property:`marginInline`},my:{type:`spacing`,property:`marginBlock`},p:{type:`spacing`,property:`padding`},pt:{type:`spacing`,property:`paddingTop`},pb:{type:`spacing`,property:`paddingBottom`},pl:{type:`spacing`,property:`paddingLeft`},pr:{type:`spacing`,property:`paddingRight`},ps:{type:`spacing`,property:`paddingInlineStart`},pe:{type:`spacing`,property:`paddingInlineEnd`},pis:{type:`spacing`,property:`paddingInlineStart`},pie:{type:`spacing`,property:`paddingInlineEnd`},px:{type:`spacing`,property:`paddingInline`},py:{type:`spacing`,property:`paddingBlock`},bd:{type:`border`,property:`border`},bdrs:{type:`radius`,property:`borderRadius`},bg:{type:`color`,property:`background`},c:{type:`textColor`,property:`color`},opacity:{type:`identity`,property:`opacity`},ff:{type:`fontFamily`,property:`fontFamily`},fz:{type:`fontSize`,property:`fontSize`},fw:{type:`identity`,property:`fontWeight`},lts:{type:`size`,property:`letterSpacing`},ta:{type:`identity`,property:`textAlign`},lh:{type:`lineHeight`,property:`lineHeight`},fs:{type:`identity`,property:`fontStyle`},tt:{type:`identity`,property:`textTransform`},td:{type:`identity`,property:`textDecoration`},w:{type:`spacing`,property:`width`},miw:{type:`spacing`,property:`minWidth`},maw:{type:`spacing`,property:`maxWidth`},h:{type:`spacing`,property:`height`},mih:{type:`spacing`,property:`minHeight`},mah:{type:`spacing`,property:`maxHeight`},bgsz:{type:`size`,property:`backgroundSize`},bgp:{type:`identity`,property:`backgroundPosition`},bgr:{type:`identity`,property:`backgroundRepeat`},bga:{type:`identity`,property:`backgroundAttachment`},pos:{type:`identity`,property:`position`},top:{type:`size`,property:`top`},left:{type:`size`,property:`left`},bottom:{type:`size`,property:`bottom`},right:{type:`size`,property:`right`},inset:{type:`size`,property:`inset`},display:{type:`identity`,property:`display`},flex:{type:`identity`,property:`flex`}};function Yr(e,t){let n=yn({color:e,theme:t});return n.color===`dimmed`?`var(--mantine-color-dimmed)`:n.color===`bright`?`var(--mantine-color-bright)`:n.variable?`var(${n.variable})`:n.color}function Xr(e,t){let n=yn({color:e,theme:t});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:Yr(e,t)}function Zr(e,t){if(typeof e==`number`)return V(e);if(typeof e==`string`){let[n,r,...i]=e.split(` `).filter(e=>e.trim()!==``),a=`${V(n)}`;return r&&(a+=` ${r}`),i.length>0&&(a+=` ${Yr(i.join(` `),t)}`),a.trim()}return e}var Qr={text:`var(--mantine-font-family)`,mono:`var(--mantine-font-family-monospace)`,monospace:`var(--mantine-font-family-monospace)`,heading:`var(--mantine-font-family-headings)`,headings:`var(--mantine-font-family-headings)`};function $r(e){return typeof e==`string`&&e in Qr?Qr[e]:e}var ei=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function ti(e,t){return typeof e==`string`&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e==`string`&&ei.includes(e)?`var(--mantine-${e}-font-size)`:typeof e==`number`||typeof e==`string`?V(e):e}function ni(e){return e}var ri=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function ii(e,t){return typeof e==`string`&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e==`string`&&ri.includes(e)?`var(--mantine-${e}-line-height)`:e}function ai(e,t){return typeof e==`string`&&e in t.radius?`var(--mantine-radius-${e})`:typeof e==`number`||typeof e==`string`?V(e):e}function oi(e){return typeof e==`number`?V(e):e}function si(e,t){if(typeof e==`number`)return V(e);if(typeof e==`string`){let n=e.replace(`-`,``);if(!(n in t.spacing))return V(e);let r=`--mantine-spacing-${n}`;return e.startsWith(`-`)?`calc(var(${r}) * -1)`:`var(${r})`}return e}var ci={color:Yr,textColor:Xr,fontSize:ti,spacing:si,radius:ai,identity:ni,size:oi,lineHeight:ii,fontFamily:$r,border:Zr};function li(e){return e.replace(`(min-width: `,``).replace(`em)`,``)}function ui({media:e,...t}){let n=Object.keys(e).sort((e,t)=>Number(li(e))-Number(li(t))).map(t=>({query:t,styles:e[t]}));return{...t,media:n}}function di(e){if(typeof e!=`object`||!e)return!1;let t=Object.keys(e);return t.length!==1||t[0]!==`base`}function fi(e){return typeof e==`object`&&e?`base`in e?e.base:void 0:e}function pi(e){return typeof e==`object`&&e?ft(e).filter(e=>e!==`base`):[]}function mi(e,t){return typeof e==`object`&&e&&t in e?e[t]:e}function hi({styleProps:e,data:t,theme:n}){return ui(ft(e).reduce((r,i)=>{if(i===`hiddenFrom`||i===`visibleFrom`||i===`sx`)return r;let a=t[i],o=Array.isArray(a.property)?a.property:[a.property],s=fi(e[i]);if(!di(e[i]))return o.forEach(e=>{r.inlineStyles[e]=ci[a.type](s,n)}),r;r.hasResponsiveStyles=!0;let c=pi(e[i]);return o.forEach(t=>{s!=null&&(r.styles[t]=ci[a.type](s,n)),c.forEach(o=>{let s=`(min-width: ${n.breakpoints[o]})`;r.media[s]={...r.media[s],[t]:ci[a.type](mi(e[i],o),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function gi(){return`__m__-${(0,h.useId)().replace(/[:«»]/g,``)}`}function _i(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,..._i(n,t)}),{}):typeof e==`function`?e(t):e??{}}function vi(e){return e}var yi=vi;function bi(e){return e}function W(e){let t=e;return t.extend=bi,t.withProps=e=>{let n=n=>(0,H.jsx)(t,{...e,...n});return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t}function xi(e){return W(e)}function Si(e){let t=e;return t.withProps=e=>{let n=n=>(0,H.jsx)(t,{...e,...n});return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t.extend=bi,t}function Ci(e){return`data-${(e.startsWith(`data-`)?e.slice(5):e).replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase()}`}function wi(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r===void 0||r===``||r===!1||r===null||(t[Ci(n)]=e[n]),t},{})}function Ti(e){return e?typeof e==`string`?{[Ci(e)]:!0}:Array.isArray(e)?[...e].reduce((e,t)=>({...e,...Ti(t)}),{}):wi(e):null}function Ei(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...Ei(n,t)}),{}):typeof e==`function`?e(t):e??{}}function Di({theme:e,style:t,vars:n,styleProps:r}){let i=Ei(t,e),a=Ei(n,e);return{...i,...a,...r}}function Oi({component:e,style:t,__vars:n,className:r,variant:i,mod:a,size:o,hiddenFrom:s,visibleFrom:c,lightHidden:l,darkHidden:u,renderRoot:d,__size:f,ref:p,...m}){let h=cr(),g=e||`div`,{styleProps:_,rest:v}=qr(m),y=Vn()?.()?.(_.sx),b=gi(),x=hi({styleProps:_,theme:h,data:Jr}),S=Wn(),C=S&&x.hasResponsiveStyles?Kr(x.styles,x.media):b,w={ref:p,style:Di({theme:h,style:t,vars:n,styleProps:x.inlineStyles}),className:tn(r,y,{[C]:x.hasResponsiveStyles,"mantine-light-hidden":l,"mantine-dark-hidden":u,[`mantine-hidden-from-${s}`]:s,[`mantine-visible-from-${c}`]:c}),"data-variant":i,"data-size":St(o)?void 0:o||void 0,size:f,...Ti(a),...v};return(0,H.jsxs)(H.Fragment,{children:[x.hasResponsiveStyles&&(0,H.jsx)(Wr,{selector:`.${C}`,styles:x.styles,media:x.media,deduplicate:S}),typeof d==`function`?d(w):(0,H.jsx)(g,{...w})]})}Oi.displayName=`@mantine/core/Box`;var G=yi(Oi),ki=(0,h.createContext)({dir:`ltr`,toggleDirection:()=>{},setDirection:()=>{}});function Ai(){return(0,h.use)(ki)}var ji={transitionDuration:200,transitionTimingFunction:`ease`,animateOpacity:!0,orientation:`vertical`,keepMounted:!0,keepMountedMode:`activity`},Mi=W(e=>{let{children:t,expanded:n,transitionDuration:r,transitionTimingFunction:i,style:a,onTransitionEnd:o,onTransitionStart:s,animateOpacity:c,keepMounted:l,keepMountedMode:u,ref:d,orientation:f,...p}=U(`Collapse`,ji,e),m=Un(),g=cr(),_=se(),v=g.respectReducedMotion&&_?0:r,y=(f===`horizontal`?Le:Pe)({expanded:n,transitionDuration:v,transitionTimingFunction:i,onTransitionEnd:o,onTransitionStart:s,keepMounted:!1});if(v===0)return l===!0&&(u===`display-none`||m!==`test`)?u===`display-none`?(0,H.jsx)(G,{...p,style:{..._i(a,g),...n?{}:{display:`none`}},ref:d,children:t}):(0,H.jsx)(h.Activity,{mode:n?`visible`:`hidden`,children:(0,H.jsx)(G,{...p,style:a,ref:d,children:t})}):n?(0,H.jsx)(G,{...p,style:a,ref:d,children:t}):null;let b=y.state===`exited`,x;return x=l===!1?b?null:t:l===!0?u===`display-none`?t:(0,H.jsx)(h.Activity,{mode:b?`hidden`:`visible`,children:t}):t,(0,H.jsx)(G,{...p,...y.getCollapseProps({style:{opacity:n||!c?1:0,transition:c?`opacity ${v}ms ${i}`:`none`,..._i(a,g),...l&&u===`display-none`&&b?{display:`none`}:{}},ref:d}),children:x})});Mi.displayName=`@mantine/core/Collapse`;var[Ni,Pi]=wt(`ScrollArea.Root component was not found in tree`);function Fi(e,t){let n=(0,h.useEffectEvent)(t);C(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e])}function Ii(e){let{style:t,...n}=e,r=Pi(),[i,a]=(0,h.useState)(0),[o,s]=(0,h.useState)(0),c=!!(i&&o);return Fi(r.scrollbarX,()=>{let e=r.scrollbarX?.offsetHeight||0;r.onCornerHeightChange(e),s(e)}),Fi(r.scrollbarY,()=>{let e=r.scrollbarY?.offsetWidth||0;r.onCornerWidthChange(e),a(e)}),c?(0,H.jsx)(`div`,{...n,style:{...t,width:i,height:o}}):null}function Li(e){let t=Pi(),n=!!(t.scrollbarX&&t.scrollbarY);return t.type!==`scroll`&&n?(0,H.jsx)(Ii,{...e}):null}var Ri={scrollHideDelay:1e3,type:`hover`};function zi(e){let{type:t,scrollHideDelay:n,scrollbars:r,getStyles:i,ref:a,...o}=U(`ScrollAreaRoot`,Ri,e),[s,c]=(0,h.useState)(null),[l,u]=(0,h.useState)(null),[d,f]=(0,h.useState)(null),[p,m]=(0,h.useState)(null),[g,_]=(0,h.useState)(null),[v,y]=(0,h.useState)(0),[b,x]=(0,h.useState)(0),[S,C]=(0,h.useState)(!1),[w,T]=(0,h.useState)(!1),E=ae(a,c);return(0,H.jsx)(Ni,{value:{type:t,scrollHideDelay:n,scrollArea:s,viewport:l,onViewportChange:u,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:m,scrollbarXEnabled:S,onScrollbarXEnabledChange:C,scrollbarY:g,onScrollbarYChange:_,scrollbarYEnabled:w,onScrollbarYEnabledChange:T,onCornerWidthChange:y,onCornerHeightChange:x,getStyles:i},children:(0,H.jsx)(G,{...o,ref:E,__vars:{"--sa-corner-width":r===`xy`?`${v}px`:`0px`,"--sa-corner-height":r===`xy`?`${b}px`:`0px`}})})}zi.displayName=`@mantine/core/ScrollAreaRoot`;function Bi(e,t){let n=e/t;return Number.isNaN(n)?0:n}function Vi(e){let t=Bi(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function Hi(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Ui(e,[t,n]){return Math.min(n,Math.max(t,e))}function Wi(e,t,n=`ltr`){let r=Vi(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,c=Ui(e,n===`ltr`?[0,o]:[o*-1,0]);return Hi([0,o],[0,s])(c)}function Gi(e,t,n,r=`ltr`){let i=Vi(n),a=i/2,o=t||a,s=i-o,c=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r===`ltr`?[0,u]:[u*-1,0];return Hi([c,l],d)(e)}function Ki(e,t){return e>0&&e{e?.(r),n!==!1&&r.defaultPrevented||t?.(r)}}var[Yi,Xi]=wt(`ScrollAreaScrollbar was not found in tree`);function Zi(e){let{sizes:t,hasThumb:n,onThumbChange:r,onThumbPointerUp:i,onThumbPointerDown:a,onThumbPositionChange:o,onDragScroll:s,onWheelScroll:c,onResize:l,ref:u,...d}=e,f=Pi(),[p,m]=(0,h.useState)(null),v=ae(u,m),y=(0,h.useRef)(null),b=(0,h.useRef)(``),x=t.content-t.viewport,S=(0,h.useEffectEvent)(e=>c(e,x)),C=g(o),w=_(l,10),T=e=>{if(y.current){let t=e.clientX-y.current.left,n=e.clientY-y.current.top;s({x:t,y:n})}};return(0,h.useEffect)(()=>{if(!p)return;let e=e=>S(e);return p.addEventListener(`wheel`,e,{passive:!1}),()=>p.removeEventListener(`wheel`,e)},[p]),(0,h.useEffect)(C,[t,C]),Fi(p,w),Fi(f.content,w),(0,H.jsx)(Yi,{value:{scrollbar:p,hasThumb:n,onThumbChange:g(r),onThumbPointerUp:g(i),onThumbPositionChange:C,onThumbPointerDown:g(a)},children:(0,H.jsx)(`div`,{...d,ref:v,"data-mantine-scrollbar":!0,style:{position:`absolute`,...d.style},onPointerDown:Ji(e.onPointerDown,e=>{e.preventDefault(),e.button===0&&(e.target.setPointerCapture(e.pointerId),y.current=p.getBoundingClientRect(),b.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect=`none`,T(e))}),onPointerMove:Ji(e.onPointerMove,T),onPointerUp:Ji(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(e.preventDefault(),t.releasePointerCapture(e.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=b.current,y.current=null}})})}var Qi=e=>{let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,o=Pi(),[s,c]=(0,h.useState)(),l=(0,h.useRef)(null),u=ae(i,l,o.onScrollbarXChange);return(0,h.useEffect)(()=>{l.current&&c(getComputedStyle(l.current))},[l]),(0,H.jsx)(Zi,{"data-orientation":`horizontal`,...a,ref:u,sizes:t,style:{...r,"--sa-thumb-width":`${Vi(t)}px`},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),Ki(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&s&&n({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:qi(s.paddingLeft),paddingEnd:qi(s.paddingRight)}})}})};Qi.displayName=`@mantine/core/ScrollAreaScrollbarX`;function $i(e){let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,o=Pi(),[s,c]=(0,h.useState)(),l=(0,h.useRef)(null),u=ae(i,l,o.onScrollbarYChange);return(0,h.useEffect)(()=>{l.current&&c(window.getComputedStyle(l.current))},[]),(0,H.jsx)(Zi,{...a,"data-orientation":`vertical`,ref:u,sizes:t,style:{"--sa-thumb-height":`${Vi(t)}px`,...r},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),Ki(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&s&&n({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:qi(s.paddingTop),paddingEnd:qi(s.paddingBottom)}})}})}$i.displayName=`@mantine/core/ScrollAreaScrollbarY`;function ea(e){let{orientation:t=`vertical`,...n}=e,{dir:r}=Ai(),i=Pi(),a=(0,h.useRef)(null),o=(0,h.useRef)(0),[s,c]=(0,h.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=Bi(s.viewport,s.content),u={...n,sizes:s,onSizesChange:c,hasThumb:l>0&&l<1,onThumbChange:e=>{a.current=e},onThumbPointerUp:()=>{o.current=0},onThumbPointerDown:e=>{o.current=e}},d=(e,t)=>Gi(e,o.current,s,t);return t===`horizontal`?(0,H.jsx)(Qi,{...u,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollLeft,t=Wi(e,s,r);a.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,r))}}):t===`vertical`?(0,H.jsx)($i,{...u,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollTop,t=Wi(e,s);s.scrollbar.size===0?a.current.style.setProperty(`--thumb-opacity`,`0`):a.current.style.setProperty(`--thumb-opacity`,`1`),a.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}}):null}ea.displayName=`@mantine/core/ScrollAreaScrollbarVisible`;function ta(e){let t=Pi(),{forceMount:n,...r}=e,[i,a]=(0,h.useState)(!1),o=e.orientation===`horizontal`,s=_(()=>{if(t.viewport){let e=t.viewport.offsetWidth{let{scrollArea:e}=r,t=0;if(e){let n=()=>{window.clearTimeout(t),a(!0)},i=()=>{t=window.setTimeout(()=>a(!1),r.scrollHideDelay)};return e.addEventListener(`pointerenter`,n),e.addEventListener(`pointerleave`,i),()=>{window.clearTimeout(t),e.removeEventListener(`pointerenter`,n),e.removeEventListener(`pointerleave`,i)}}},[r.scrollArea,r.scrollHideDelay]),t||i?(0,H.jsx)(ta,{"data-state":i?`visible`:`hidden`,...n}):null}na.displayName=`@mantine/core/ScrollAreaScrollbarHover`;function ra(e){let{forceMount:t,...n}=e,r=Pi(),i=e.orientation===`horizontal`,[a,o]=(0,h.useState)(`hidden`),s=_(()=>o(`idle`),100);return(0,h.useEffect)(()=>{if(a===`idle`){let e=window.setTimeout(()=>o(`hidden`),r.scrollHideDelay);return()=>window.clearTimeout(e)}},[a,r.scrollHideDelay]),(0,h.useEffect)(()=>{let{viewport:e}=r,t=i?`scrollLeft`:`scrollTop`;if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(o(`scrolling`),s()),n=r};return e.addEventListener(`scroll`,r),()=>e.removeEventListener(`scroll`,r)}},[r.viewport,i,s]),t||a!==`hidden`?(0,H.jsx)(ea,{"data-state":a===`hidden`?`hidden`:`visible`,...n,onPointerEnter:Ji(e.onPointerEnter,()=>o(`interacting`)),onPointerLeave:Ji(e.onPointerLeave,()=>o(`idle`))}):null}function ia(e){let{forceMount:t,...n}=e,r=Pi(),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=r,o=e.orientation===`horizontal`;return(0,h.useEffect)(()=>(o?i(!0):a(!0),()=>{o?i(!1):a(!1)}),[o,i,a]),r.type===`hover`?(0,H.jsx)(na,{...n,forceMount:t}):r.type===`scroll`?(0,H.jsx)(ra,{...n,forceMount:t}):r.type===`auto`?(0,H.jsx)(ta,{...n,forceMount:t}):r.type===`always`?(0,H.jsx)(ea,{...n}):null}ia.displayName=`@mantine/core/ScrollAreaScrollbar`;function aa(e,t=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(r)}function oa(e){let{style:t,ref:n,...r}=e,i=Pi(),a=Xi(),{onThumbPositionChange:o}=a,s=ae(n,a.onThumbChange),c=(0,h.useRef)(void 0),l=_(()=>{c.current&&=(c.current(),void 0)},100);return(0,h.useEffect)(()=>{let{viewport:e}=i;if(e){let t=()=>{if(l(),!c.current){let t=aa(e,o);c.current=t,o()}};return o(),e.addEventListener(`scroll`,t),()=>e.removeEventListener(`scroll`,t)}},[i.viewport,l,o]),(0,H.jsx)(`div`,{"data-state":a.hasThumb?`visible`:`hidden`,...r,ref:s,style:{width:`var(--sa-thumb-width)`,height:`var(--sa-thumb-height)`,...t},onPointerDownCapture:Ji(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;a.onThumbPointerDown({x:n,y:r})}),onPointerUp:Ji(e.onPointerUp,a.onThumbPointerUp)})}oa.displayName=`@mantine/core/ScrollAreaThumb`;function sa(e){let{forceMount:t,...n}=e,r=Xi();return t||r.hasThumb?(0,H.jsx)(oa,{...n}):null}sa.displayName=`@mantine/core/ScrollAreaThumb`;function ca({children:e,style:t,ref:n,onWheel:r,...i}){let a=Pi(),o=ae(n,a.onViewportChange),s=e=>{if(r?.(e),a.scrollbarXEnabled&&a.viewport&&e.shiftKey){let{scrollTop:t,scrollHeight:n,clientHeight:r,scrollWidth:i,clientWidth:o}=a.viewport,s=t<1,c=t>=n-r-1;i>o&&(s||c)&&e.stopPropagation()}};return(0,H.jsx)(G,{...i,ref:o,onWheel:s,"data-scrollarea-viewport":!0,style:{overflowX:a.scrollbarXEnabled?`scroll`:`hidden`,overflowY:a.scrollbarYEnabled?`scroll`:`hidden`,...t},children:(0,H.jsx)(`div`,{...a.getStyles(`content`),ref:a.onContentChange,children:e})})}ca.displayName=`@mantine/core/ScrollAreaViewport`;var la={root:`m_d57069b5`,content:`m_b1336c6`,viewport:`m_c0783ff9`,viewportInner:`m_f8f631dd`,scrollbar:`m_c44ba933`,thumb:`m_d8b5e363`,corner:`m_21657268`};function ua(){return typeof window<`u`}function da(e){return ma(e)?(e.nodeName||``).toLowerCase():`#document`}function fa(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function pa(e){return((ma(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function ma(e){return ua()?e instanceof Node||e instanceof fa(e).Node:!1}function ha(e){return ua()?e instanceof Element||e instanceof fa(e).Element:!1}function ga(e){return ua()?e instanceof HTMLElement||e instanceof fa(e).HTMLElement:!1}function _a(e){return!ua()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof fa(e).ShadowRoot}function va(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ka(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function ya(e){return/^(table|td|th)$/.test(da(e))}function ba(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var xa=/transform|translate|scale|rotate|perspective|filter/,Sa=/paint|layout|strict|content/,Ca=e=>!!e&&e!==`none`,wa;function Ta(e){let t=ha(e)?ka(e):e;return Ca(t.transform)||Ca(t.translate)||Ca(t.scale)||Ca(t.rotate)||Ca(t.perspective)||!Da()&&(Ca(t.backdropFilter)||Ca(t.filter))||xa.test(t.willChange||``)||Sa.test(t.contain||``)}function Ea(e){let t=ja(e);for(;ga(t)&&!Oa(t);){if(Ta(t))return t;if(ba(t))return null;t=ja(t)}return null}function Da(){return wa??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),wa}function Oa(e){return/^(html|body|#document)$/.test(da(e))}function ka(e){return fa(e).getComputedStyle(e)}function Aa(e){return ha(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ja(e){if(da(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||_a(e)&&e.host||pa(e);return _a(t)?t.host:t}function Ma(e){let t=ja(e);return Oa(t)?(e.ownerDocument||e).body:ga(t)&&va(t)?t:Ma(t)}function Na(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Ma(e),i=r===e.ownerDocument?.body,a=fa(r);if(i){let e=Pa(a);return t.concat(a,a.visualViewport||[],va(r)?r:[],e&&n?Na(e):[])}return t.concat(r,Na(r,[],n))}function Pa(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var Fa=[`top`,`right`,`bottom`,`left`],Ia=Math.min,La=Math.max,Ra=Math.round,za=Math.floor,Ba=e=>({x:e,y:e}),Va={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Ha(e,t,n){return La(e,Ia(t,n))}function Ua(e,t){return typeof e==`function`?e(t):e}function Wa(e){return e.split(`-`)[0]}function Ga(e){return e.split(`-`)[1]}function Ka(e){return e===`x`?`y`:`x`}function qa(e){return e===`y`?`height`:`width`}function Ja(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Ya(e){return Ka(Ja(e))}function Xa(e,t,n){n===void 0&&(n=!1);let r=Ga(e),i=Ya(e),a=qa(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=ao(o)),[o,ao(o)]}function Za(e){let t=ao(e);return[Qa(e),t,Qa(t)]}function Qa(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var $a=[`left`,`right`],eo=[`right`,`left`],to=[`top`,`bottom`],no=[`bottom`,`top`];function ro(e,t,n){switch(e){case`top`:case`bottom`:return n?t?eo:$a:t?$a:eo;case`left`:case`right`:return t?to:no;default:return[]}}function io(e,t,n,r){let i=Ga(e),a=ro(Wa(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Qa)))),a}function ao(e){let t=Wa(e);return Va[t]+e.slice(t.length)}function oo(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function so(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:oo(e)}function co(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function lo(){let e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function uo(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+`/`+n}).join(` `):navigator.userAgent}function fo(){return/apple/i.test(navigator.vendor)}function po(){return lo().toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints}function mo(){return uo().includes(`jsdom/`)}var ho=`data-floating-ui-focusable`,go=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`;function _o(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function vo(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&_a(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function yo(e){return`composedPath`in e?e.composedPath()[0]:e.target}function bo(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function xo(e){return e.matches(`html,body`)}function So(e){return e?.ownerDocument||document}function Co(e){return ga(e)&&e.matches(go)}function wo(e){if(!e||mo())return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function To(e){return e?e.hasAttribute(ho)?e:e.querySelector(`[`+ho+`]`)||e:null}function Eo(e,t,n){return n===void 0&&(n=!0),e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...Eo(e,t.id,n)])}function Do(e){return`nativeEvent`in e}function Oo(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}var ko=typeof document<`u`?h.useLayoutEffect:function(){},Ao={...h};function jo(e){let t=h.useRef(e);return ko(()=>{t.current=e}),t}var Mo=Ao.useInsertionEffect||(e=>e());function No(e){let t=h.useRef(()=>{});return Mo(()=>{t.current=e}),h.useCallback(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function Po(e,t,n){let{reference:r,floating:i}=e,a=Ja(t),o=Ya(t),s=qa(o),c=Wa(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=Ga(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Fo(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Ua(t,e),p=so(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=co(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=co(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Io=50,Lo=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Fo},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Po(l,r,c),f=r,p=0,m={};for(let n=0;n({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Ua(e,t)||{};if(l==null)return{};let d=so(u),f={x:n,y:r},p=Ya(i),m=qa(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;C&&await(o.isElement==null?void 0:o.isElement(S))||(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Ia(d[_],T),D=Ia(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=Ha(E,k,O),j=!c.arrow&&Ga(i)!=null&&k!==A&&a.reference[m]/2-(ke<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===Ja(t)||T.every(e=>Ja(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Ja(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function Bo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Vo(e){return Fa.some(t=>e[t]>=0)}var Ho=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Ua(e,t);switch(i){case`referenceHidden`:{let e=Bo(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Vo(e)}}}case`escaped`:{let e=Bo(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Vo(e)}}}default:return{}}}}};function Uo(e){let t=Ia(...e.map(e=>e.left)),n=Ia(...e.map(e=>e.top)),r=La(...e.map(e=>e.right)),i=La(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function Wo(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;er.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>co(Uo(e)))}var Go=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:a,strategy:o}=t,{padding:s=2,x:c,y:l}=Ua(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]);if(!u.length)return{};let d=Wo(u),f=co(Uo(u)),p=so(s);function m(){if(d.length===2&&(d[0].left>d[1].right||d[1].left>d[0].right)&&c!=null&&l!=null)return d.find(e=>c>e.left-p.left&&ce.top-p.top&&l=2){if(Ja(n)===`y`){let e=d[0],t=d[d.length-1],r=Wa(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left;return co({x:o,y:i,width:(r?e.right:t.right)-o,height:a-i})}let e=Wa(n)===`left`,t=La(...d.map(e=>e.right)),r=Ia(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===r:n.right===t),a=i[0].top,o=i[i.length-1].bottom;return co({x:r,y:a,width:t-r,height:o-a})}return f}let h=await a.getElementRects({reference:{getBoundingClientRect:m},floating:r.floating,strategy:o});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},Ko=new Set([`left`,`top`]);async function qo(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Wa(n),s=Ga(n),c=Ja(n)===`y`,l=Ko.has(o)?-1:1,u=a&&c?-1:1,d=Ua(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Jo=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await qo(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Yo=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Ua(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Ja(i),p=Ka(f),m=u[p],h=u[f],g=(e,t)=>Ha(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Xo=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Ua(e,t),u={x:n,y:r},d=Ja(i),f=Ka(d),p=u[f],m=u[d],h=Ua(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;pn&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Ko.has(Wa(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);mr&&(m=r)}return{[f]:p,[d]:m}}}},Zo=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=Ua(e,t),c=await i.detectOverflow(t,s),l=Wa(n),u=Ga(n),d=Ja(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Ia(p-c[m],g),y=Ia(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*La(c.left,c.right):S=p-2*La(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Qo(e){let t=ka(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ga(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Ra(n)!==a||Ra(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function $o(e){return ha(e)?e:e.contextElement}function es(e){let t=$o(e);if(!ga(t))return Ba(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Qo(t),o=(a?Ra(n.width):n.width)/r,s=(a?Ra(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var ts=Ba(0);function ns(e){let t=fa(e);return!Da()||!t.visualViewport?ts:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rs(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===fa(e)}function is(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=$o(e),o=Ba(1);t&&(r?ha(r)&&(o=es(r)):o=es(e));let s=rs(a,n,r)?ns(a):Ba(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=fa(a),t=ha(r)?fa(r):r,n=e,i=Pa(n);for(;i&&t!==n;){let e=es(i),t=i.getBoundingClientRect(),r=ka(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=fa(i),i=Pa(n)}}return co({width:u,height:d,x:c,y:l})}function as(e,t){let n=Aa(e).scrollLeft;return t?t.left+n:is(pa(e)).left+n}function os(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-as(e,n),y:n.top+t.scrollTop}}function ss(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=pa(r),s=t?ba(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Ba(1),u=Ba(0),d=ga(r);if((d||!a)&&((da(r)!==`body`||va(o))&&(c=Aa(r)),d)){let e=is(r);l=es(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?os(o,c):Ba(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function cs(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function ls(e){let t=Aa(e),n=e.ownerDocument.body,r=La(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=La(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+as(e),o=-t.scrollTop;return ka(n).direction===`rtl`&&(a+=La(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var us=25;function ds(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=fa(e),a=pa(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!Da()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(as(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=us&&(s-=o)}return{width:s,height:c,x:l,y:u}}function fs(e,t){let n=is(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=es(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function ps(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=ds(e,n,t);else if(t===`document`)r=ls(pa(e));else if(ha(t))r=fs(t,n);else{let n=ns(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return co(r)}function ms(e,t){let n=t.get(e);if(n)return n;let r=Na(e,[],!1).filter(e=>ha(e)&&da(e)!==`body`),i=null,a=ka(e).position===`fixed`,o=a?ja(e):e;for(;ha(o)&&!Oa(o);){let e=ka(o),t=Ta(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=ja(o)}return t.set(e,r),r}function hs(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?ba(t)?[]:ms(t,this._c):[].concat(n),r],o=ps(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=fa(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Es(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=$o(e),u=i||a?[...l?Na(l):[],...t?Na(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Ts(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?is(e):null;c&&g();function g(){let t=is(e);h&&!ws(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Ds=Jo,Os=Yo,ks=zo,As=Zo,js=Ho,Ms=Ro,Ns=Go,Ps=Xo,Fs=(e,t,n)=>{let r=new Map,i=n??{},a={...Cs,...i.platform,_c:r};return Lo(e,t,{...i,platform:a})},Is=typeof document<`u`?h.useLayoutEffect:function(){};function Ls(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ls(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Ls(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Rs(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function zs(e,t){let n=Rs(e);return Math.round(t*n)/n}function Bs(e){let t=h.useRef(e);return Is(()=>{t.current=e}),t}function Vs(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=h.useState(r);Ls(f,r)||p(r);let[m,g]=h.useState(null),[_,v]=h.useState(null),y=h.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),b=h.useCallback(e=>{e!==w.current&&(w.current=e,v(e))},[]),x=a||m,S=o||_,C=h.useRef(null),w=h.useRef(null),T=h.useRef(u),E=c!=null,D=Bs(c),O=Bs(i),k=Bs(l),A=h.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),Fs(C.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!Ls(T.current,t)&&(T.current=t,Ae.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);Is(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let j=h.useRef(!1);Is(()=>(j.current=!0,()=>{j.current=!1}),[]),Is(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(D.current)return D.current(x,S,A);A()}},[x,S,A,D,E]);let M=h.useMemo(()=>({reference:C,floating:w,setReference:y,setFloating:b}),[y,b]),N=h.useMemo(()=>({reference:x,floating:S}),[x,S]),P=h.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=zs(N.floating,u.x),r=zs(N.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Rs(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,u.x,u.y]);return h.useMemo(()=>({...u,update:A,refs:M,elements:N,floatingStyles:P}),[u,A,M,N,P])}var Hs=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Ms({element:r.current,padding:i}).fn(n):r?Ms({element:r,padding:i}).fn(n):{}}}},Us=(e,t)=>{let n=Ds(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ws=(e,t)=>{let n=Os(e);return{name:n.name,fn:n.fn,options:[e,t]}},Gs=(e,t)=>({fn:Ps(e).fn,options:[e,t]}),Ks=(e,t)=>{let n=ks(e);return{name:n.name,fn:n.fn,options:[e,t]}},qs=(e,t)=>{let n=As(e);return{name:n.name,fn:n.fn,options:[e,t]}},Js=(e,t)=>{let n=js(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ys=(e,t)=>{let n=Ns(e);return{name:n.name,fn:n.fn,options:[e,t]}},Xs=(e,t)=>{let n=Hs(e);return{name:n.name,fn:n.fn,options:[e,t]}};function Zs(e){let t=h.useRef(void 0),n=h.useCallback(t=>{let n=e.map(e=>{if(e!=null){if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>e?.())}},e);return h.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var Qs=`data-floating-ui-focusable`,$s=`active`,ec=`selected`,tc=`ArrowLeft`,nc=`ArrowRight`,rc=`ArrowUp`,ic=`ArrowDown`,ac=[tc,nc],oc=[rc,ic];[...ac,...oc];var sc={...h},cc=!1,lc=0,uc=()=>`floating-ui-`+Math.random().toString(36).slice(2,6)+lc++;function dc(){let[e,t]=h.useState(()=>cc?uc():void 0);return ko(()=>{e??t(uc())},[]),h.useEffect(()=>{cc=!0},[]),e}var fc=sc.useId||dc;function pc(){let e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}var mc=h.createContext(null),hc=h.createContext(null),gc=()=>h.useContext(mc)?.id||null,_c=()=>h.useContext(hc);function vc(e){return`data-floating-ui-`+e}function yc(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}var bc=vc(`safe-polygon`);function xc(e,t,n){if(n&&!Oo(n))return 0;if(typeof e==`number`)return e;if(typeof e==`function`){let n=e();return typeof n==`number`?n:n?.[t]}return e?.[t]}function Sc(e){return typeof e==`function`?e():e}function Cc(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,dataRef:i,events:a,elements:o}=e,{enabled:s=!0,delay:c=0,handleClose:l=null,mouseOnly:u=!1,restMs:d=0,move:f=!0}=t,p=_c(),m=gc(),g=jo(l),_=jo(c),v=jo(n),y=jo(d),b=h.useRef(),x=h.useRef(-1),S=h.useRef(),C=h.useRef(-1),w=h.useRef(!0),T=h.useRef(!1),E=h.useRef(()=>{}),D=h.useRef(!1),O=No(()=>{let e=i.current.openEvent?.type;return e?.includes(`mouse`)&&e!==`mousedown`});h.useEffect(()=>{if(!s)return;function e(e){let{open:t}=e;t||(yc(x),yc(C),w.current=!0,D.current=!1)}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[s,a]),h.useEffect(()=>{if(!s||!g.current||!n)return;function e(e){O()&&r(!1,e,`hover`)}let t=So(o.floating).documentElement;return t.addEventListener(`mouseleave`,e),()=>{t.removeEventListener(`mouseleave`,e)}},[o.floating,n,r,s,g,O]);let k=h.useCallback(function(e,t,n){t===void 0&&(t=!0),n===void 0&&(n=`hover`);let i=xc(_.current,`close`,b.current);i&&!S.current?(yc(x),x.current=window.setTimeout(()=>r(!1,e,n),i)):t&&(yc(x),r(!1,e,n))},[_,r]),A=No(()=>{E.current(),S.current=void 0}),j=No(()=>{if(T.current){let e=So(o.floating).body;e.style.pointerEvents=``,e.removeAttribute(bc),T.current=!1}}),M=No(()=>i.current.openEvent?[`click`,`mousedown`].includes(i.current.openEvent.type):!1);h.useEffect(()=>{if(!s)return;function e(e){if(yc(x),w.current=!1,u&&!Oo(b.current)||Sc(y.current)>0&&!xc(_.current,`open`))return;let t=xc(_.current,`open`,b.current);t?x.current=window.setTimeout(()=>{v.current||r(!0,e,`hover`)},t):n||r(!0,e,`hover`)}function t(e){if(M()){j();return}E.current();let t=So(o.floating);if(yc(C),D.current=!1,g.current&&i.current.floatingContext){n||yc(x),S.current=g.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){j(),A(),M()||k(e,!0,`safe-polygon`)}});let r=S.current;t.addEventListener(`mousemove`,r),E.current=()=>{t.removeEventListener(`mousemove`,r)}}else b.current===`touch`&&vo(o.floating,e.relatedTarget)||k(e)}function a(e){M()||i.current.floatingContext&&(g.current==null||g.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){j(),A(),M()||k(e)}})(e))}function c(){yc(x)}function l(e){M()||k(e,!1)}if(ha(o.domReference)){let r=o.domReference,i=o.floating;return n&&r.addEventListener(`mouseleave`,a),f&&r.addEventListener(`mousemove`,e,{once:!0}),r.addEventListener(`mouseenter`,e),r.addEventListener(`mouseleave`,t),i&&(i.addEventListener(`mouseleave`,a),i.addEventListener(`mouseenter`,c),i.addEventListener(`mouseleave`,l)),()=>{n&&r.removeEventListener(`mouseleave`,a),f&&r.removeEventListener(`mousemove`,e),r.removeEventListener(`mouseenter`,e),r.removeEventListener(`mouseleave`,t),i&&(i.removeEventListener(`mouseleave`,a),i.removeEventListener(`mouseenter`,c),i.removeEventListener(`mouseleave`,l))}}},[o,s,e,u,f,k,A,j,r,n,v,p,_,g,i,M,y]),ko(()=>{var e;if(s&&n&&(e=g.current)!=null&&(e=e.__options)!=null&&e.blockPointerEvents&&O()){T.current=!0;let e=o.floating;if(ha(o.domReference)&&e){var t;let n=So(o.floating).body;n.setAttribute(bc,``);let r=o.domReference,i=p==null||(t=p.nodesRef.current.find(e=>e.id===m))==null||(t=t.context)==null?void 0:t.elements.floating;return i&&(i.style.pointerEvents=``),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,e.style.pointerEvents=`auto`,()=>{n.style.pointerEvents=``,r.style.pointerEvents=``,e.style.pointerEvents=``}}}},[s,n,m,o,p,g,O]),ko(()=>{n||(b.current=void 0,D.current=!1,A(),j())},[n,A,j]),h.useEffect(()=>()=>{A(),yc(x),yc(C),j()},[s,o.domReference,A,j]);let N=h.useMemo(()=>{function e(e){b.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function i(){!w.current&&!v.current&&r(!0,t,`hover`)}u&&!Oo(b.current)||n||Sc(y.current)===0||D.current&&e.movementX**2+e.movementY**2<2||(yc(C),b.current===`touch`?i():(D.current=!0,C.current=window.setTimeout(i,Sc(y.current))))}}},[u,r,n,v,y]);return h.useMemo(()=>s?{reference:N}:{},[s,N])}var wc=()=>{},Tc=h.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:wc,setState:wc,isInstantPhase:!1}),Ec=()=>h.useContext(Tc);function Dc(e){let{children:t,delay:n,timeoutMs:r=0}=e,[i,a]=h.useReducer((e,t)=>({...e,...t}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),o=h.useRef(null),s=h.useCallback(e=>{a({currentId:e})},[]);return ko(()=>{i.currentId?o.current===null?o.current=i.currentId:i.isInstantPhase||a({isInstantPhase:!0}):(i.isInstantPhase&&a({isInstantPhase:!1}),o.current=null)},[i.currentId,i.isInstantPhase]),(0,H.jsx)(Tc.Provider,{value:h.useMemo(()=>({...i,setState:a,setCurrentId:s}),[i,s]),children:t})}function Oc(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,floatingId:i}=e,{id:a,enabled:o=!0}=t,s=a??i,c=Ec(),{currentId:l,setCurrentId:u,initialDelay:d,setState:f,timeoutMs:p}=c;return ko(()=>{o&&l&&(f({delay:{open:1,close:xc(d,`close`)}}),l!==s&&r(!1))},[o,s,r,f,l,d]),ko(()=>{function e(){r(!1),f({delay:d,currentId:null})}if(o&&l&&!n&&l===s){if(p){let t=window.setTimeout(e,p);return()=>{clearTimeout(t)}}e()}},[o,n,f,l,s,r,d,p]),ko(()=>{o&&u!==wc&&n&&u(s)},[o,n,u,s]),c}function kc(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&_a(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Ac(e){return`composedPath`in e?e.composedPath()[0]:e.target}var jc={pointerdown:`onPointerDown`,mousedown:`onMouseDown`,click:`onClick`},Mc={pointerdown:`onPointerDownCapture`,mousedown:`onMouseDownCapture`,click:`onClickCapture`},Nc=e=>({escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0});function Pc(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,elements:i,dataRef:a}=e,{enabled:o=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:l=`pointerdown`,referencePress:u=!1,referencePressEvent:d=`pointerdown`,ancestorScroll:f=!1,bubbles:p,capture:m}=t,g=_c(),_=No(typeof c==`function`?c:()=>!1),v=typeof c==`function`?_:c,y=h.useRef(!1),{escapeKey:b,outsidePress:x}=Nc(p),{escapeKey:S,outsidePress:C}=Nc(m),w=h.useRef(!1),T=No(e=>{if(!n||!o||!s||e.key!==`Escape`||w.current)return;let t=a.current.floatingContext?.nodeId,i=g?Eo(g.nodesRef.current,t):[];if(!b&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach(t=>{var n;(n=t.context)!=null&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles&&(e=!1)}),!e)return}r(!1,Do(e)?e.nativeEvent:e,`escape-key`)}),E=No(e=>{var t;let n=()=>{var t;T(e),(t=yo(e))==null||t.removeEventListener(`keydown`,n)};(t=yo(e))==null||t.addEventListener(`keydown`,n)}),D=No(e=>{let t=a.current.insideReactTree;a.current.insideReactTree=!1;let n=y.current;if(y.current=!1,l===`click`&&n||t||typeof v==`function`&&!v(e))return;let o=yo(e),s=`[`+vc(`inert`)+`]`,c=So(i.floating).querySelectorAll(s),u=ha(o)?o:null;for(;u&&!Oa(u);){let e=ja(u);if(Oa(e)||!ha(e))break;u=e}if(c.length&&ha(o)&&!xo(o)&&!vo(o,i.floating)&&Array.from(c).every(e=>!vo(u,e)))return;if(ga(o)&&A){let t=Oa(o),n=ka(o),r=/auto|scroll/,i=t||r.test(n.overflowX),a=t||r.test(n.overflowY),s=i&&o.clientWidth>0&&o.scrollWidth>o.clientWidth,c=a&&o.clientHeight>0&&o.scrollHeight>o.clientHeight,l=n.direction===`rtl`,u=c&&(l?e.offsetX<=o.offsetWidth-o.clientWidth:e.offsetX>o.clientWidth),d=s&&e.offsetY>o.clientHeight;if(u||d)return}let d=a.current.floatingContext?.nodeId,f=g&&Eo(g.nodesRef.current,d).some(t=>bo(e,t.context?.elements.floating));if(bo(e,i.floating)||bo(e,i.domReference)||f)return;let p=g?Eo(g.nodesRef.current,d):[];if(p.length>0){let e=!0;if(p.forEach(t=>{var n;(n=t.context)!=null&&n.open&&!t.context.dataRef.current.__outsidePressBubbles&&(e=!1)}),!e)return}r(!1,e,`outside-press`)}),O=No(e=>{var t;let n=()=>{var t;D(e),(t=yo(e))==null||t.removeEventListener(l,n)};(t=yo(e))==null||t.addEventListener(l,n)});h.useEffect(()=>{if(!n||!o)return;a.current.__escapeKeyBubbles=b,a.current.__outsidePressBubbles=x;let e=-1;function t(e){r(!1,e,`ancestor-scroll`)}function c(){window.clearTimeout(e),w.current=!0}function u(){e=window.setTimeout(()=>{w.current=!1},Da()?5:0)}let d=So(i.floating);s&&(d.addEventListener(`keydown`,S?E:T,S),d.addEventListener(`compositionstart`,c),d.addEventListener(`compositionend`,u)),v&&d.addEventListener(l,C?O:D,C);let p=[];return f&&(ha(i.domReference)&&(p=Na(i.domReference)),ha(i.floating)&&(p=p.concat(Na(i.floating))),!ha(i.reference)&&i.reference&&i.reference.contextElement&&(p=p.concat(Na(i.reference.contextElement)))),p=p.filter(e=>e!==d.defaultView?.visualViewport),p.forEach(e=>{e.addEventListener(`scroll`,t)}),()=>{s&&(d.removeEventListener(`keydown`,S?E:T,S),d.removeEventListener(`compositionstart`,c),d.removeEventListener(`compositionend`,u)),v&&d.removeEventListener(l,C?O:D,C),p.forEach(e=>{e.removeEventListener(`scroll`,t)}),window.clearTimeout(e)}},[a,i,s,v,l,n,r,f,o,b,x,T,S,E,D,C,O]),h.useEffect(()=>{a.current.insideReactTree=!1},[a,v,l]);let k=h.useMemo(()=>({onKeyDown:T,...u&&{[jc[d]]:e=>{r(!1,e.nativeEvent,`reference-press`)},...d!==`click`&&{onClick(e){r(!1,e.nativeEvent,`reference-press`)}}}}),[T,r,u,d]),A=h.useMemo(()=>{function e(e){e.button===0&&(y.current=!0)}return{onKeyDown:T,onMouseDown:e,onMouseUp:e,[Mc[l]]:()=>{a.current.insideReactTree=!0}}},[T,l,a]);return h.useMemo(()=>o?{reference:k,floating:A}:{},[o,k,A])}function Fc(e){let{open:t=!1,onOpenChange:n,elements:r}=e,i=fc(),a=h.useRef({}),[o]=h.useState(()=>pc()),s=gc()!=null,[c,l]=h.useState(r.reference),u=No((e,t,r)=>{a.current.openEvent=e?t:void 0,o.emit(`openchange`,{open:e,event:t,reason:r,nested:s}),n?.(e,t,r)}),d=h.useMemo(()=>({setPositionReference:l}),[]),f=h.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return h.useMemo(()=>({dataRef:a,open:t,onOpenChange:u,elements:f,events:o,floatingId:i,refs:d}),[t,u,f,o,i,d])}function Ic(e){let{elements:t,...n}=e===void 0?{}:e,{nodeId:r}=n,i=Fc({...n,elements:{reference:t?.reference??null,floating:t?.floating??null}}),a=n.rootContext||i,o=a.elements,[s,c]=h.useState(null),[l,u]=h.useState(null),d=o?.domReference||s,f=h.useRef(null),p=_c();ko(()=>{d&&(f.current=d)},[d]);let m=Vs({...n,elements:{...o,...l&&{reference:l}}}),g=h.useCallback(e=>{let t=ha(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),m.refs.setReference(t)},[m.refs]),_=h.useCallback(e=>{(ha(e)||e===null)&&(f.current=e,c(e)),(ha(m.refs.reference.current)||m.refs.reference.current===null||e!==null&&!ha(e))&&m.refs.setReference(e)},[m.refs]),v=h.useMemo(()=>({...m.refs,setReference:_,setPositionReference:g,domReference:f}),[m.refs,_,g]),y=h.useMemo(()=>({...m.elements,domReference:d}),[m.elements,d]),b=h.useMemo(()=>({...m,...a,refs:v,elements:y,nodeId:r}),[m,v,y,r,a]);return ko(()=>{a.dataRef.current.floatingContext=b;let e=p?.nodesRef.current.find(e=>e.id===r);e&&(e.context=b)}),h.useMemo(()=>({...m,context:b,refs:v,elements:y}),[m,v,y,b])}function Lc(){return po()&&fo()}function Rc(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,events:i,dataRef:a,elements:o}=e,{enabled:s=!0,visibleOnly:c=!0}=t,l=h.useRef(!1),u=h.useRef(-1),d=h.useRef(!0);h.useEffect(()=>{if(!s)return;let e=fa(o.domReference);function t(){!n&&ga(o.domReference)&&o.domReference===_o(So(o.domReference))&&(l.current=!0)}function r(){d.current=!0}function i(){d.current=!1}return e.addEventListener(`blur`,t),Lc()&&(e.addEventListener(`keydown`,r,!0),e.addEventListener(`pointerdown`,i,!0)),()=>{e.removeEventListener(`blur`,t),Lc()&&(e.removeEventListener(`keydown`,r,!0),e.removeEventListener(`pointerdown`,i,!0))}},[o.domReference,n,s]),h.useEffect(()=>{if(!s)return;function e(e){let{reason:t}=e;(t===`reference-press`||t===`escape-key`)&&(l.current=!0)}return i.on(`openchange`,e),()=>{i.off(`openchange`,e)}},[i,s]),h.useEffect(()=>()=>{yc(u)},[]);let f=h.useMemo(()=>({onMouseLeave(){l.current=!1},onFocus(e){if(l.current)return;let t=yo(e.nativeEvent);if(c&&ha(t)){if(Lc()&&!e.relatedTarget){if(!d.current&&!Co(t))return}else if(!wo(t))return}r(!0,e.nativeEvent,`focus`)},onBlur(e){l.current=!1;let t=e.relatedTarget,n=e.nativeEvent,i=ha(t)&&t.hasAttribute(vc(`focus-guard`))&&t.getAttribute(`data-type`)===`outside`;u.current=window.setTimeout(()=>{let e=_o(o.domReference?o.domReference.ownerDocument:document);!t&&e===o.domReference||vo(a.current.floatingContext?.refs.floating.current,e)||vo(o.domReference,e)||i||r(!1,n,`focus`)})}}),[a,o.domReference,r,c]);return h.useMemo(()=>s?{reference:f}:{},[s,f])}function zc(e,t,n){let r=new Map,i=n===`item`,a=e;if(i&&e){let{[$s]:t,[ec]:n,...r}=e;a=r}return{...n===`floating`&&{tabIndex:-1,[Qs]:``},...a,...t.map(t=>{let r=t?t[n]:null;return typeof r==`function`?e?r(e):null:r}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,a]=t;if(!(i&&[$s,ec].includes(n))){if(n.indexOf(`on`)===0){if(r.has(n)||r.set(n,[]),typeof a==`function`){var o;(o=r.get(n))==null||o.push(a),e[n]=function(){var e=[...arguments];return r.get(n)?.map(t=>t(...e)).find(e=>e!==void 0)}}}else e[n]=a}}),e),{})}}function Bc(e){e===void 0&&(e=[]);let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),r=e.map(e=>e?.item),i=h.useCallback(t=>zc(t,e,`reference`),t),a=h.useCallback(t=>zc(t,e,`floating`),n),o=h.useCallback(t=>zc(t,e,`item`),r);return h.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}var Vc=new Map([[`select`,`listbox`],[`combobox`,`listbox`],[`label`,!1]]);function Hc(e,t){t===void 0&&(t={});let{open:n,elements:r,floatingId:i}=e,{enabled:a=!0,role:o=`dialog`}=t,s=fc(),c=r.domReference?.id||s,l=h.useMemo(()=>To(r.floating)?.id||i,[r.floating,i]),u=Vc.get(o)??o,d=gc()!=null,f=h.useMemo(()=>u===`tooltip`||o===`label`?{[`aria-`+(o===`label`?`labelledby`:`describedby`)]:n?l:void 0}:{"aria-expanded":n?`true`:`false`,"aria-haspopup":u===`alertdialog`?`dialog`:u,"aria-controls":n?l:void 0,...u===`listbox`&&{role:`combobox`},...u===`menu`&&{id:c},...u===`menu`&&d&&{role:`menuitem`},...o===`select`&&{"aria-autocomplete":`none`},...o===`combobox`&&{"aria-autocomplete":`list`}},[u,l,d,n,c,o]),p=h.useMemo(()=>{let e={id:l,...u&&{role:u}};return u===`tooltip`||o===`label`?e:{...e,...u===`menu`&&{"aria-labelledby":c}}},[u,l,c,o]),m=h.useCallback(e=>{let{active:t,selected:n}=e,r={role:`option`,...t&&{id:l+`-fui-option`}};switch(o){case`select`:case`combobox`:return{...r,"aria-selected":n}}return{}},[l,o]);return h.useMemo(()=>a?{reference:f,floating:p,item:m}:{},[a,f,p,m])}function Uc(e,t,n){return n===void 0&&(n=!0),e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...Uc(e,t.id,n)])}function Wc(e,t){let[n,r]=e,i=!1,a=t.length;for(let e=0,o=a-1;e=r!=l>=r&&n<=(c-a)*(r-s)/(l-s)+a&&(i=!i)}return i}function Gc(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Kc(e){e===void 0&&(e={});let{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,i={current:-1},a=!1,o=null,s=null,c=typeof performance<`u`?performance.now():0;function l(e,t){let n=performance.now(),r=n-c;if(o===null||s===null||r===0)return o=e,s=t,c=n,null;let i=e-o,a=t-s,l=Math.sqrt(i*i+a*a)/r;return o=e,s=t,c=n,l}let u=e=>{let{x:n,y:o,placement:s,elements:c,onClose:u,nodeId:d,tree:f}=e;return function(e){function p(){yc(i),u()}if(yc(i),!c.domReference||!c.floating||s==null||n==null||o==null)return;let{clientX:m,clientY:h}=e,g=[m,h],_=Ac(e),v=e.type===`mouseleave`,y=kc(c.floating,_),b=kc(c.domReference,_),x=c.domReference.getBoundingClientRect(),S=c.floating.getBoundingClientRect(),C=s.split(`-`)[0],w=n>S.right-S.width/2,T=o>S.bottom-S.height/2,E=Gc(g,x),D=S.width>x.width,O=S.height>x.height,k=(D?x:S).left,A=(D?x:S).right,j=(O?x:S).top,M=(O?x:S).bottom;if(y&&(a=!0,!v))return;if(b&&(a=!1),b&&!v){a=!0;return}if(v&&ha(e.relatedTarget)&&kc(c.floating,e.relatedTarget)||f&&Uc(f.nodesRef.current,d).length)return;if(C===`top`&&o>=x.bottom-1||C===`bottom`&&o<=x.top+1||C===`left`&&n>=x.right-1||C===`right`&&n<=x.left+1)return p();let N=[];switch(C){case`top`:N=[[k,x.top+1],[k,S.bottom-1],[A,S.bottom-1],[A,x.top+1]];break;case`bottom`:N=[[k,S.top+1],[k,x.bottom-1],[A,x.bottom-1],[A,S.top+1]];break;case`left`:N=[[S.right-1,M],[S.right-1,j],[x.left+1,j],[x.left+1,M]];break;case`right`:N=[[x.right-1,M],[x.right-1,j],[S.left+1,j],[S.left+1,M]]}function P(e){let[n,r]=e;switch(C){case`top`:return[[D?n+t/2:w?n+t*4:n-t*4,r+t+1],[D?n-t/2:w?n+t*4:n-t*4,r+t+1],[S.left,w||D?S.bottom-t:S.top],[S.right,w?D?S.bottom-t:S.top:S.bottom-t]];case`bottom`:return[[D?n+t/2:w?n+t*4:n-t*4,r-t],[D?n-t/2:w?n+t*4:n-t*4,r-t],[S.left,w||D?S.top+t:S.bottom],[S.right,w?D?S.top+t:S.bottom:S.top+t]];case`left`:{let e=[n+t+1,O?r+t/2:T?r+t*4:r-t*4],i=[n+t+1,O?r-t/2:T?r+t*4:r-t*4];return[[T||O?S.right-t:S.left,S.top],[T?O?S.right-t:S.left:S.right-t,S.bottom],e,i]}case`right`:return[[n-t,O?r+t/2:T?r+t*4:r-t*4],[n-t,O?r-t/2:T?r+t*4:r-t*4],[T||O?S.left+t:S.right,S.top],[T?O?S.left+t:S.right:S.left+t,S.bottom]]}}if(!Wc([m,h],N)){if(a&&!E)return p();if(!v&&r){let t=l(e.clientX,e.clientY);if(t!==null&&t<.1)return p()}Wc([m,h],P([n,o]))?!a&&r&&(i.current=window.setTimeout(p,40)):p()}}};return u.__options={blockPointerEvents:n},u}var qc={scrollHideDelay:1e3,type:`hover`,scrollbars:`xy`},Jc=$t((e,{scrollbarSize:t,overscrollBehavior:n,scrollbars:r})=>{let i=n;return n&&r&&(r===`x`?i=`${n} auto`:r===`y`&&(i=`auto ${n}`)),{root:{"--scrollarea-scrollbar-size":V(t),"--scrollarea-over-scroll-behavior":i}}}),Yc=W(e=>{let t=U(`ScrollArea`,qc,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,scrollbarSize:s,vars:c,type:l,scrollHideDelay:u,viewportProps:d,viewportRef:f,onScrollPositionChange:p,children:m,offsetScrollbars:g,scrollbars:_,onBottomReached:v,onTopReached:y,onLeftReached:b,onRightReached:x,overscrollBehavior:S,startScrollPosition:w,verticalScrollbarPosition:T,attributes:E,...D}=t,[O,k]=(0,h.useState)(!1),[A,j]=(0,h.useState)(!1),[M,N]=(0,h.useState)(!1),P=(0,h.useRef)(!0),F=(0,h.useRef)(!1),ee=(0,h.useRef)(!0),I=(0,h.useRef)(!1),te=zr({name:`ScrollArea`,props:t,classes:la,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:E,vars:c,varsResolver:Jc}),L=(0,h.useRef)(null),[ne,re]=(0,h.useState)(null),ie=Zs([f,L,(0,h.useCallback)(e=>{re(t=>t===e?t:e)},[])]);return Fi(g===`present`?ne:null,()=>{let e=L.current;e&&(j(e.scrollHeight>e.clientHeight),N(e.scrollWidth>e.clientWidth))}),C(()=>{w&&L.current&&L.current.scrollTo({left:w.x??0,top:w.y??0})},[]),(0,H.jsxs)(zi,{getStyles:te,type:l===`never`?`always`:l,scrollHideDelay:u,scrollbars:_,...te(`root`),...D,children:[(0,H.jsx)(ca,{...d,...te(`viewport`,{style:d?.style}),ref:ie,"data-offset-scrollbars":g===!0?`xy`:g||void 0,"data-scrollbars":_||void 0,"data-vertical-scrollbar-position":T||void 0,"data-horizontal-hidden":g===`present`&&!M?`true`:void 0,"data-vertical-hidden":g===`present`&&!A?`true`:void 0,onScroll:e=>{d?.onScroll?.(e),p?.({x:e.currentTarget.scrollLeft,y:e.currentTarget.scrollTop});let{scrollTop:t,scrollHeight:n,clientHeight:r,scrollLeft:i,scrollWidth:a,clientWidth:o}=e.currentTarget,s=t-(n-r)>=-.8,c=t===0;s&&!F.current&&v?.(),c&&!P.current&&y?.(),F.current=s,P.current=c;let l=i-(a-o)>=-.8,u=i===0;l&&!I.current&&x?.(),u&&!ee.current&&b?.(),I.current=l,ee.current=u},children:m}),(_===`xy`||_===`x`)&&(0,H.jsx)(ia,{...te(`scrollbar`),orientation:`horizontal`,"data-vertical-scrollbar-position":T||void 0,"data-hidden":l===`never`||g===`present`&&!M||void 0,forceMount:!0,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),children:(0,H.jsx)(sa,{...te(`thumb`)})}),(_===`xy`||_===`y`)&&(0,H.jsx)(ia,{...te(`scrollbar`),orientation:`vertical`,"data-vertical-scrollbar-position":T||void 0,"data-hidden":l===`never`||g===`present`&&!A||void 0,forceMount:!0,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),children:(0,H.jsx)(sa,{...te(`thumb`)})}),(0,H.jsx)(Li,{...te(`corner`),"data-vertical-scrollbar-position":T||void 0,"data-hovered":O||void 0,"data-hidden":l===`never`||void 0})]})});Yc.displayName=`@mantine/core/ScrollArea`;var Xc=W(e=>{let{children:t,classNames:n,styles:r,scrollbarSize:i,scrollHideDelay:a,type:o,dir:s,offsetScrollbars:c,overscrollBehavior:l,viewportRef:u,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:m,scrollbars:g,style:_,vars:v,onBottomReached:y,onTopReached:b,startScrollPosition:x,verticalScrollbarPosition:S,onOverflowChange:C,...w}=U(`ScrollAreaAutosize`,qc,e),T=(0,h.useRef)(null),[E,D]=(0,h.useState)(null),O=Zs([u,T,(0,h.useCallback)(e=>{D(t=>t===e?t:e)},[])]),k=(0,h.useRef)(!1),A=(0,h.useRef)(!1),j=(0,h.useEffectEvent)(()=>{let e=T.current;if(!e||!C)return;let t=e.scrollHeight>e.clientHeight;t!==k.current&&(A.current?C(t):(A.current=!0,t&&C(!0)),k.current=t)});return Fi(C?E:null,j),(0,H.jsx)(G,{...w,variant:p,style:[{display:`flex`,overflow:`hidden`},_],children:(0,H.jsx)(G,{style:{display:`flex`,flexDirection:`column`,flex:1,overflow:`hidden`,...g===`y`&&{minWidth:0},...g===`x`&&{minHeight:0},...g===`xy`&&{minWidth:0,minHeight:0},...g===!1&&{minWidth:0,minHeight:0}},children:(0,H.jsx)(Yc,{classNames:n,styles:r,scrollHideDelay:a,scrollbarSize:i,type:o,dir:s,offsetScrollbars:c,overscrollBehavior:l,viewportRef:O,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:m,vars:v,scrollbars:g,onBottomReached:y,onTopReached:b,startScrollPosition:x,verticalScrollbarPosition:S,"data-autosize":`true`,children:t})})})});Yc.classes=la,Yc.varsResolver=Jc,Xc.displayName=`@mantine/core/ScrollAreaAutosize`,Xc.classes=la,Yc.Autosize=Xc;var Zc={root:`m_87cf2631`},Qc={__staticSelector:`UnstyledButton`},$c=Si(e=>{let t=U(`UnstyledButton`,Qc,e),{className:n,component:r=`button`,__staticSelector:i,unstyled:a,classNames:o,styles:s,style:c,attributes:l,...u}=t,d=zr({name:i,props:t,classes:Zc,className:n,style:c,classNames:o,styles:s,unstyled:a,attributes:l});return(0,H.jsx)(G,{...d(`root`,{focusable:!0}),component:r,type:r===`button`?`button`:void 0,...u})});$c.classes=Zc,$c.displayName=`@mantine/core/UnstyledButton`;var el={root:`m_515a97f8`},tl=W(e=>{let t=U(`VisuallyHidden`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,...l}=t,u=zr({name:`VisuallyHidden`,classes:el,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c});return(0,H.jsx)(G,{component:`span`,...u(`root`),...l})});tl.classes=el,tl.displayName=`@mantine/core/VisuallyHidden`;var nl={root:`m_1b7284a3`},rl=$t((e,{radius:t,shadow:n})=>({root:{"--paper-radius":t===void 0?void 0:Lt(t),"--paper-shadow":Bt(n)}})),il=Si(e=>{let t=U(`Paper`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,withBorder:s,vars:c,radius:l,shadow:u,variant:d,mod:f,attributes:p,...m}=t,h=zr({name:`Paper`,props:t,classes:nl,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:c,varsResolver:rl});return(0,H.jsx)(G,{mod:[{withBorder:s},f],...h(`root`),variant:d,...m})});il.classes=nl,il.varsResolver=rl,il.displayName=`@mantine/core/Paper`;function al(e,t,n,r){return e===`center`||r===`center`?{top:t}:e===`end`?{bottom:n}:e===`start`?{top:n}:{}}function ol(e,t,n,r,i){return e===`center`||r===`center`?{left:t}:e===`end`?{[i===`ltr`?`right`:`left`]:n}:e===`start`?{[i===`ltr`?`left`:`right`]:n}:{}}var sl={bottom:`borderTopLeftRadius`,left:`borderTopRightRadius`,right:`borderBottomLeftRadius`,top:`borderBottomRightRadius`};function cl({position:e,arrowSize:t,dir:n}){let[r,i]=e.split(`-`);if(!i)return;let a={width:t,height:t,position:`absolute`};if(r===`bottom`){let e=i===`start`,r=e?n===`ltr`?`left`:`right`:n===`ltr`?`right`:`left`;return{...a,top:-t,[r]:0,clipPath:e===(n===`rtl`)?`polygon(100% 0%, 0% 100%, 100% 100%)`:`polygon(0% 0%, 0% 100%, 100% 100%)`}}if(r===`top`){let e=i===`start`,r=e?n===`ltr`?`left`:`right`:n===`ltr`?`right`:`left`;return{...a,bottom:-t,[r]:0,clipPath:e===(n===`rtl`)?`polygon(0% 0%, 100% 0%, 100% 100%)`:`polygon(0% 0%, 100% 0%, 0% 100%)`}}if(r===`left`)return{...a,right:-t,[i===`start`?`top`:`bottom`]:0,clipPath:i===`start`?`polygon(0% 0%, 100% 0%, 0% 100%)`:`polygon(0% 0%, 0% 100%, 100% 100%)`};if(r===`right`)return{...a,left:-t,[i===`start`?`top`:`bottom`]:0,clipPath:i===`start`?`polygon(0% 0%, 100% 0%, 100% 100%)`:`polygon(100% 0%, 0% 100%, 100% 100%)`}}function ll({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,arrowX:a,arrowY:o,dir:s}){if(i===`merge`){let n=cl({position:e,arrowSize:t,dir:s});if(n)return n}let[c,l=`center`]=e.split(`-`),u={width:t,height:t,transform:`rotate(45deg)`,position:`absolute`,[sl[c]]:r},d=-t/2;return c===`left`?{...u,...al(l,o,n,i),right:d,borderLeftColor:`transparent`,borderBottomColor:`transparent`,clipPath:`polygon(100% 0, 0 0, 100% 100%)`}:c===`right`?{...u,...al(l,o,n,i),left:d,borderRightColor:`transparent`,borderTopColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 100%)`}:c===`top`?{...u,...ol(l,a,n,i,s),bottom:d,borderTopColor:`transparent`,borderLeftColor:`transparent`,clipPath:`polygon(0 100%, 100% 100%, 100% 0)`}:c===`bottom`?{...u,...ol(l,a,n,i,s),top:d,borderBottomColor:`transparent`,borderRightColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 0)`}:{}}function ul({position:e,dir:t}){let[n,r]=e.split(`-`);if(!r)return;let i=r===`start`&&t===`ltr`||r===`end`&&t===`rtl`;if(n===`bottom`)return i?{borderTopLeftRadius:0}:{borderTopRightRadius:0};if(n===`top`)return i?{borderBottomLeftRadius:0}:{borderBottomRightRadius:0};if(n===`left`)return r===`start`?{borderTopRightRadius:0}:{borderBottomRightRadius:0};if(n===`right`)return r===`start`?{borderTopLeftRadius:0}:{borderBottomLeftRadius:0}}function dl({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,visible:a,arrowX:o,arrowY:s,style:c,...l}){let{dir:u}=Ai();return a?(0,H.jsx)(`div`,{role:`presentation`,...l,style:{...c,...ll({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,dir:u,arrowX:o,arrowY:s})}}):null}dl.displayName=`@mantine/core/FloatingArrow`;function fl(e,t){if(e===`rtl`&&(t.includes(`right`)||t.includes(`left`))){let[e,n]=t.split(`-`),r=e===`right`?`left`:`right`;return n===void 0?r:`${r}-${n}`}return t}function pl({open:e,close:t,openDelay:n,closeDelay:r}){let i=(0,h.useRef)(-1),a=(0,h.useRef)(-1),o=()=>{window.clearTimeout(i.current),window.clearTimeout(a.current)};return(0,h.useEffect)(()=>o,[]),{openDropdown:()=>{o(),n===0||n===void 0?e():i.current=window.setTimeout(e,n)},closeDropdown:()=>{o(),r===0||r===void 0?t():a.current=window.setTimeout(t,r)}}}var ml={root:`m_9814e45f`},hl={zIndex:Mt(`modal`)},gl=$t((e,{gradient:t,color:n,backgroundOpacity:r,blur:i,radius:a,zIndex:o})=>({root:{"--overlay-bg":t||(n!==void 0||r!==void 0)&&En(n||`#000`,r??.6)||void 0,"--overlay-filter":i?`blur(${V(i)})`:void 0,"--overlay-radius":a===void 0?void 0:Lt(a),"--overlay-z-index":o?.toString()}})),_l=Si(e=>{let t=U(`Overlay`,hl,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,fixed:c,center:l,children:u,radius:d,zIndex:f,gradient:p,blur:m,color:h,backgroundOpacity:g,mod:_,attributes:v,...y}=t,b=zr({name:`Overlay`,props:t,classes:ml,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:v,vars:s,varsResolver:gl});return(0,H.jsx)(G,{...b(`root`),mod:[{center:l,fixed:c},_],...y,children:u})});_l.classes=ml,_l.varsResolver=gl,_l.displayName=`@mantine/core/Overlay`;function vl(e){let t=document.createElement(`div`);return t.setAttribute(`data-portal`,`true`),typeof e.className==`string`&&t.classList.add(...e.className.split(` `).filter(Boolean)),typeof e.style==`object`&&Object.assign(t.style,e.style),typeof e.id==`string`&&t.setAttribute(`id`,e.id),t}var yl=null;function bl({target:e,reuseTargetNode:t,...n}){if(e)return typeof e==`string`?document.querySelector(e)||vl(n):e;if(t){if(yl){if(document.body.contains(yl))return yl;yl=null}let e=document.querySelector(`[data-mantine-shared-portal-node]`);if(e)return yl=e,e;let t=vl(n);return t.setAttribute(`data-mantine-shared-portal-node`,`true`),document.body.appendChild(t),yl=t,t}return vl(n)}var xl={reuseTargetNode:!0},Sl=W(e=>{let{children:t,target:n,reuseTargetNode:r,ref:i,...a}=U(`Portal`,xl,e),[o,s]=(0,h.useState)(!1),c=(0,h.useRef)(null);return C(()=>(s(!0),c.current=bl({target:n,reuseTargetNode:r,...a}),re(i,c.current),!n&&!r&&c.current&&document.body.appendChild(c.current),()=>{!n&&!r&&c.current&&document.body.removeChild(c.current)}),[n]),!o||!c.current?null:(0,Ae.createPortal)((0,H.jsx)(H.Fragment,{children:t}),c.current)});Sl.displayName=`@mantine/core/Portal`;var Cl=W(({withinPortal:e=!0,children:t,...n})=>Un()===`test`||!e?(0,H.jsx)(H.Fragment,{children:t}):(0,H.jsx)(Sl,{...n,children:t}));Cl.displayName=`@mantine/core/OptionalPortal`;var wl=e=>({in:{opacity:1,transform:`scale(1)`},out:{opacity:0,transform:`scale(.9) translateY(${e===`bottom`?10:-10}px)`},transitionProperty:`transform, opacity`}),Tl={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:`opacity`},"fade-up":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(30px)`},transitionProperty:`opacity, transform`},"fade-down":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(-30px)`},transitionProperty:`opacity, transform`},"fade-left":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(30px)`},transitionProperty:`opacity, transform`},"fade-right":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(-30px)`},transitionProperty:`opacity, transform`},scale:{in:{opacity:1,transform:`scale(1)`},out:{opacity:0,transform:`scale(0)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"scale-y":{in:{opacity:1,transform:`scaleY(1)`},out:{opacity:0,transform:`scaleY(0)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"scale-x":{in:{opacity:1,transform:`scaleX(1)`},out:{opacity:0,transform:`scaleX(0)`},common:{transformOrigin:`left`},transitionProperty:`transform, opacity`},"skew-up":{in:{opacity:1,transform:`translateY(0) skew(0deg, 0deg)`},out:{opacity:0,transform:`translateY(-20px) skew(-10deg, -5deg)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"skew-down":{in:{opacity:1,transform:`translateY(0) skew(0deg, 0deg)`},out:{opacity:0,transform:`translateY(20px) skew(-10deg, -5deg)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"rotate-left":{in:{opacity:1,transform:`translateY(0) rotate(0deg)`},out:{opacity:0,transform:`translateY(20px) rotate(-5deg)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"rotate-right":{in:{opacity:1,transform:`translateY(0) rotate(0deg)`},out:{opacity:0,transform:`translateY(20px) rotate(5deg)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"slide-down":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(-100%)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"slide-up":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(100%)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"slide-left":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(100%)`},common:{transformOrigin:`left`},transitionProperty:`transform, opacity`},"slide-right":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(-100%)`},common:{transformOrigin:`right`},transitionProperty:`transform, opacity`},pop:{...wl(`bottom`),common:{transformOrigin:`center center`}},"pop-bottom-left":{...wl(`bottom`),common:{transformOrigin:`bottom left`}},"pop-bottom-right":{...wl(`bottom`),common:{transformOrigin:`bottom right`}},"pop-top-left":{...wl(`top`),common:{transformOrigin:`top left`}},"pop-top-right":{...wl(`top`),common:{transformOrigin:`top right`}}},El={entering:`in`,entered:`in`,exiting:`out`,exited:`out`,"pre-exiting":`out`,"pre-entering":`out`};function Dl({transition:e,state:t,duration:n,timingFunction:r}){let i={WebkitBackfaceVisibility:`hidden`,transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof e==`string`?e in Tl?{transitionProperty:Tl[e].transitionProperty,...i,...Tl[e].common,...Tl[e][El[t]]}:{}:{transitionProperty:e.transitionProperty,...i,...e.common,...e[El[t]]}}function Ol({duration:e,exitDuration:t,timingFunction:n,mounted:r,onEnter:i,onExit:a,onEntered:o,onExited:s,enterDelay:c,exitDelay:l}){let u=cr(),d=se(),f=u.respectReducedMotion?d:!1,[p,m]=(0,h.useState)(f?0:e),[g,_]=(0,h.useState)(r?`entered`:`exited`),v=(0,h.useRef)(-1),y=(0,h.useRef)(-1),b=(0,h.useRef)(-1);function x(){window.clearTimeout(v.current),window.clearTimeout(y.current),cancelAnimationFrame(b.current),b.current=-1}let S=n=>{x();let r=n?i:a,c=n?o:s,l=f?0:n?e:t;if(m(l),l===0)typeof r==`function`&&r(),typeof c==`function`&&c(),_(n?`entered`:`exited`);else{let e=requestAnimationFrame(()=>{Ae.flushSync(()=>{_(n?`pre-entering`:`pre-exiting`)}),b.current===e&&(b.current=requestAnimationFrame(()=>{typeof r==`function`&&r(),_(n?`entering`:`exiting`),v.current=window.setTimeout(()=>{typeof c==`function`&&c(),_(n?`entered`:`exited`)},l)}))});b.current=e}},C=e=>{x(),typeof(e?c:l)==`number`?y.current=window.setTimeout(()=>{S(e)},e?c:l):S(e)};return T(()=>{C(r)},[r]),(0,h.useEffect)(()=>()=>{x()},[]),{transitionDuration:p,transitionStatus:g,transitionTimingFunction:n||`ease`}}function kl({keepMounted:e,keepMountedMode:t=`activity`,transition:n=`fade`,duration:r=250,exitDuration:i=r,mounted:a,children:o,timingFunction:s=`ease`,onExit:c,onEntered:l,onEnter:u,onExited:d,enterDelay:f,exitDelay:p}){let m=Un(),{transitionDuration:g,transitionStatus:_,transitionTimingFunction:v}=Ol({mounted:a,exitDuration:i,duration:r,timingFunction:s,onExit:c,onEntered:l,onEnter:u,onExited:d,enterDelay:f,exitDelay:p});if(m===`test`)return a?(0,H.jsx)(H.Fragment,{children:o({})}):e?o({display:`none`}):null;if(g===0)return e?t===`display-none`?a?(0,H.jsx)(H.Fragment,{children:o({})}):o({display:`none`}):(0,H.jsx)(h.Activity,{mode:a?`visible`:`hidden`,children:o({})}):a?(0,H.jsx)(H.Fragment,{children:o({})}):null;let y=_===`exited`;if(e){let e=o(y?t===`display-none`?{display:`none`}:{}:Dl({transition:n,duration:g,state:_,timingFunction:v}));return t===`display-none`?e:(0,H.jsx)(h.Activity,{mode:y?`hidden`:`visible`,children:e})}return y?null:(0,H.jsx)(H.Fragment,{children:o(Dl({transition:n,duration:g,state:_,timingFunction:v}))})}kl.displayName=`@mantine/core/Transition`;var Al={duration:100,transition:`fade`};function jl(e,t){return{...Al,...t,...e}}var[Ml,Nl]=wt(`Popover component was not found in the tree`);function Pl({childProps:e,disabled:t,opened:n,longPressDelay:r=500,setReference:i,open:a}){let o=(0,h.useRef)(!1),s=(0,h.useRef)(!1),c=(0,h.useRef)(null),l=(0,h.useRef)(t);l.current=t;let u=(e,t,n)=>{i({getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t,toJSON:()=>void 0}),contextElement:n}),a()},d=Vt(e.onMouseDown,e=>{t||e.button===2&&e.stopPropagation()}),f=Vt(e.onContextMenu,e=>{t||e.defaultPrevented||(e.preventDefault(),!s.current&&(u(e.clientX,e.clientY,e.currentTarget),o.current&&(s.current=!0)))}),p=we(e=>{if(l.current||s.current)return;let t=e,n=t.touches[0]??t.changedTouches[0];n&&(u(n.clientX,n.clientY,c.current),s.current=!0)},{threshold:r,events:[`touch`],cancelOnMove:!0,onStart:e=>{o.current=!0,s.current=!1,c.current=e.currentTarget},onFinish:e=>{o.current=!1,s.current=!1,l.current||e.preventDefault()},onCancel:()=>{o.current=!1,s.current=!1}});return{onContextMenu:f,onMouseDown:d,onTouchStart:Vt(e.onTouchStart,p.onTouchStart),onTouchEnd:Vt(e.onTouchEnd,p.onTouchEnd),onTouchCancel:Vt(e.onTouchCancel,p.onTouchCancel),onTouchMove:Vt(e.onTouchMove,p.onTouchMove),style:t?e.style:{...e.style,WebkitTouchCallout:`none`,WebkitUserSelect:`none`,userSelect:`none`},"data-expanded":n?!0:void 0}}function Fl(e){let{children:t,disabled:n,longPressDelay:r}=U(`PopoverContextMenu`,null,e),i=Qt(t);if(!i)throw Error(`Popover.ContextMenu component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let a=Nl(),o=Pl({childProps:i.props,disabled:n||a.disabled,opened:a.opened,longPressDelay:r,setReference:a.reference,open:()=>{a.opened||a.onToggle()}});return(0,h.cloneElement)(i,o)}Fl.displayName=`@mantine/core/PopoverContextMenu`;function Il({children:e,active:t=!0,refProp:n=`ref`,innerRef:r}){let i=ae(ee(t),r),a=Qt(e);return a?(0,h.cloneElement)(a,{[n]:i}):e}function Ll(e){return(0,H.jsx)(tl,{tabIndex:-1,"data-autofocus":!0,...e})}Il.displayName=`@mantine/core/FocusTrap`,Ll.displayName=`@mantine/core/FocusTrapInitialFocus`,Il.InitialFocus=Ll;var Rl={dropdown:`m_38a85659`,arrow:`m_a31dc6c1`,overlay:`m_3d7bc908`},zl=W(e=>{let t=U(`PopoverDropdown`,null,e),{className:n,style:r,vars:i,children:a,onKeyDownCapture:o,variant:s,classNames:c,styles:l,ref:u,...d}=t,f=Nl(),{dir:p}=Ai(),m=f.arrowPosition===`merge`&&f.withArrow?ul({position:f.placement,dir:p}):void 0,h=E({opened:f.opened,shouldReturnFocus:f.returnFocus}),g=f.withRoles?{"aria-labelledby":f.getTargetId(),id:f.getDropdownId(),role:`dialog`,tabIndex:-1}:{},_=ae(u,f.floating);return f.disabled?null:(0,H.jsx)(Cl,{...f.portalProps,withinPortal:f.withinPortal,children:(0,H.jsx)(kl,{mounted:f.opened,...f.transitionProps,transition:f.transitionProps?.transition||`fade`,duration:f.transitionProps?.duration??150,keepMounted:f.keepMounted,keepMountedMode:f.keepMountedMode,exitDuration:typeof f.transitionProps?.exitDuration==`number`?f.transitionProps.exitDuration:f.transitionProps?.duration,children:e=>(0,H.jsx)(Il,{active:f.trapFocus&&f.opened,innerRef:_,children:(0,H.jsxs)(G,{...g,...d,variant:s,onKeyDownCapture:Pt(()=>{f.onClose?.(),f.onDismiss?.()},{active:f.closeOnEscape,onTrigger:h,onKeyDown:o}),"data-position":f.placement,"data-fixed":f.floatingStrategy===`fixed`||void 0,...f.getStyles(`dropdown`,{className:n,props:t,classNames:c,styles:l,style:[{...e,...m,zIndex:f.zIndex,top:f.y??0,left:f.x??0,width:f.width===`target`?void 0:V(f.width),...f.referenceHidden?{display:`none`}:null},f.resolvedStyles?.dropdown,l?.dropdown,r]}),children:[a,(0,H.jsx)(dl,{ref:f.arrowRef,arrowX:f.arrowX,arrowY:f.arrowY,visible:f.withArrow,position:f.placement,arrowSize:f.arrowSize,arrowRadius:f.arrowRadius,arrowOffset:f.arrowOffset,arrowPosition:f.arrowPosition,...f.getStyles(`arrow`,{props:t,classNames:c,styles:l})})]})})})})});zl.classes=Rl,zl.displayName=`@mantine/core/PopoverDropdown`;var Bl={refProp:`ref`,popupType:`dialog`},Vl=W(e=>{let{children:t,refProp:n,popupType:r,ref:i,...a}=U(`PopoverTarget`,Bl,e),o=Qt(t);if(!o)throw Error(`Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let s=a,c=Nl(),l=ae(c.reference,qt(o),i),u=c.withRoles?{"aria-haspopup":r,"aria-expanded":c.opened,"aria-controls":c.opened?c.getDropdownId():void 0,id:c.getTargetId()}:{},d=o.props;return(0,h.cloneElement)(o,{...s,...u,...c.targetProps,className:tn(c.targetProps.className,s.className,d.className),[n]:l,...c.controlled?null:{onClick:e=>{c.onToggle(),d.onClick?.(e)}}})});Vl.displayName=`@mantine/core/PopoverTarget`;function Hl(e){if(e===void 0)return{shift:!0,flip:!0};let t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function Ul(e,t,n,r){let i=Hl(e.middlewares),a=[Us(e.offset),Js()];if(i.flip&&!n){let e=typeof i.flip==`boolean`?{}:i.flip,t=r?{fallbackStrategy:`initialPlacement`,...e}:e;a.push(Ks(t))}if(i.shift){let t=typeof i.shift==`boolean`?{}:i.shift;a.push(Ws(n=>{let r=n.placement.startsWith(`top`)||n.placement.startsWith(`bottom`);return{limiter:Gs(),padding:5,...e.width===`target`&&r?{mainAxis:!1}:null,...t}}))}return i.inline&&a.push(typeof i.inline==`boolean`?Ys():Ys(i.inline)),a.push(Xs({element:e.arrowRef,padding:e.arrowOffset})),(i.size||e.width===`target`)&&a.push(qs({...typeof i.size==`boolean`?{}:i.size,apply({rects:n,availableWidth:r,availableHeight:a,...o}){let s=t().refs.floating.current?.style??{};i.size&&(typeof i.size==`object`&&i.size.apply?i.size.apply({rects:n,availableWidth:r,availableHeight:a,...o}):Object.assign(s,{maxWidth:`${r}px`,maxHeight:`${a}px`})),e.width===`target`&&Object.assign(s,{width:`${n.reference.width}px`})}})),a}function Wl(e){let[t,n]=oe({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),r=(0,h.useRef)(t),i=(0,h.useRef)(!1),[a,o]=(0,h.useState)(null),s=e.preventPositionChangeWhenVisible!==!1,c=(0,h.useRef)(t);t!==c.current&&(c.current=t,t&&a!==null&&o(null));let l=(0,h.useRef)(e.position);e.position!==l.current&&(l.current=e.position,i.current=!1,a!==null&&o(null));let u=(0,h.useCallback)(()=>o(null),[]),d=()=>{t&&!e.disabled&&n(!1)},f=()=>{e.disabled||n(!t)},p=Ic({open:t,strategy:e.strategy,placement:s?a??e.position:e.position,middleware:Ul(e,()=>p,s&&a!==null,s),whileElementsMounted:e.keepMounted?void 0:Es});(0,h.useEffect)(()=>{if(!e.keepMounted)return;let n=p.refs.reference.current,r=p.refs.floating.current;if(t&&n&&r)return Es(n,r,p.update)},[e.keepMounted,t,p.update,p.elements.reference,p.elements.floating]),C(()=>{if(!t){i.current=!1;return}if(!s||a!==null)return;let e=p.refs.floating.current;e&&e.offsetHeight!==0&&e.offsetWidth!==0&&(i.current?p.isPositioned&&o(p.placement):(i.current=!0,p.update()))},[s,t,p.isPositioned,p.placement,a,p.update]);let m=(0,h.useRef)(p.placement);return C(()=>{m.current!==p.placement&&(m.current=p.placement,e.onPositionChange?.(p.placement))},[p.placement]),T(()=>{t!==r.current&&(t?e.onOpen?.():e.onClose?.()),r.current=t},[t,e.onClose,e.onOpen]),{floating:p,controlled:typeof e.opened==`boolean`,opened:t,onClose:d,onToggle:f,resetLockedPlacement:u}}var Gl={position:`bottom`,offset:8,transitionProps:{transition:`fade`,duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:`side`,closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,hideDetached:!0,preventPositionChangeWhenVisible:!0,clickOutsideEvents:[`mousedown`,`touchstart`],clickOutsideCapture:!1,zIndex:Mt(`popover`),__staticSelector:`Popover`,width:`max-content`},Kl=$t((e,{radius:t,shadow:n})=>({dropdown:{"--popover-radius":t===void 0?void 0:Lt(t),"--popover-shadow":Bt(n)}}));function ql(e){let t=U(`Popover`,Gl,e),{children:n,position:r,offset:i,onPositionChange:a,opened:o,transitionProps:s,onExitTransitionEnd:c,onEnterTransitionEnd:l,width:u,middlewares:d,withArrow:f,arrowSize:p,arrowOffset:m,arrowRadius:g,arrowPosition:_,unstyled:v,classNames:b,styles:x,closeOnClickOutside:S,withinPortal:C,portalProps:w,closeOnEscape:T,clickOutsideEvents:E,clickOutsideCapture:D,trapFocus:O,onClose:k,onDismiss:A,onOpen:j,onChange:M,zIndex:N,radius:P,shadow:F,id:ee,defaultOpened:I,__staticSelector:te,withRoles:ne,disabled:re,returnFocus:ie,variant:ae,keepMounted:oe,keepMountedMode:se,vars:R,floatingStrategy:ce,withOverlay:le,overlayProps:z,hideDetached:ue,attributes:de,preventPositionChangeWhenVisible:fe,...pe}=t,me=zr({name:te,props:t,classes:Rl,classNames:b,styles:x,unstyled:v,attributes:de,rootSelector:`dropdown`,vars:R,varsResolver:Kl}),{resolvedStyles:he}=wr({classNames:b,styles:x,props:t}),ge=(0,h.useRef)(null),[_e,ve]=(0,h.useState)(null),[B,ye]=(0,h.useState)(null),{dir:be}=Ai(),xe=Un(),Se=L(ee),Ce=Wl({middlewares:d,width:u,position:fl(be,r),offset:typeof i==`number`?i+(f?p/2:0):i,arrowRef:ge,arrowOffset:m,onPositionChange:a,opened:o,defaultOpened:I,onChange:M,onOpen:j,onClose:k,onDismiss:A,strategy:ce,disabled:re,preventPositionChangeWhenVisible:fe,keepMounted:oe});y(()=>{S&&(Ce.onClose(),A?.())},E,[_e,B],!0,D);let we=(0,h.useCallback)(e=>{ve(e),Ce.floating.refs.setReference(e)},[Ce.floating.refs.setReference]),Te=(0,h.useCallback)(e=>{ye(e),Ce.floating.refs.setFloating(e)},[Ce.floating.refs.setFloating]),Ee=(0,h.useCallback)(()=>{s?.onExited?.(),c?.(),Ce.resetLockedPlacement()},[s?.onExited,c,Ce.resetLockedPlacement]),De=(0,h.useCallback)(()=>{s?.onEntered?.(),l?.()},[s?.onEntered,l]);return(0,H.jsxs)(Ml,{value:{returnFocus:ie,disabled:re,controlled:Ce.controlled,reference:we,floating:Te,x:Ce.floating.x,y:Ce.floating.y,arrowX:Ce.floating?.middlewareData?.arrow?.x,arrowY:Ce.floating?.middlewareData?.arrow?.y,opened:Ce.opened,arrowRef:ge,transitionProps:{...s,onExited:Ee,onEntered:De},width:u,withArrow:f,arrowSize:p,arrowOffset:m,arrowRadius:g,arrowPosition:_,placement:Ce.floating.placement,trapFocus:O,withinPortal:C,portalProps:w,zIndex:N,radius:P,shadow:F,closeOnEscape:T,onDismiss:A,onClose:Ce.onClose,onToggle:Ce.onToggle,getTargetId:()=>Se,getDropdownId:()=>`${Se}-dropdown`,withRoles:ne,targetProps:pe,__staticSelector:te,classNames:b,styles:x,unstyled:v,variant:ae,keepMounted:oe,keepMountedMode:se,getStyles:me,resolvedStyles:he,floatingStrategy:ce,referenceHidden:ue&&xe!==`test`?Ce.floating.middlewareData.hide?.referenceHidden:!1},children:[n,le&&(0,H.jsx)(kl,{transition:`fade`,mounted:Ce.opened,duration:s?.duration||250,exitDuration:s?.exitDuration||250,children:e=>(0,H.jsx)(Cl,{withinPortal:C,children:(0,H.jsx)(_l,{...z,...me(`overlay`,{className:z?.className,style:[e,z?.style]})})})})]})}ql.Target=Vl,ql.Dropdown=zl,ql.ContextMenu=Fl,ql.varsResolver=Kl,ql.displayName=`@mantine/core/Popover`,ql.extend=e=>e,ql.withProps=e=>{let t=t=>(0,H.jsx)(ql,{...e,...t});return t.extend=ql.extend,t.displayName=`WithProps(${ql.displayName})`,t};var Jl={root:`m_5ae2e3c`,barsLoader:`m_7a2bd4cd`,bar:`m_870bb79`,"bars-loader-animation":`m_5d2b3b9d`,dotsLoader:`m_4e3f22d7`,dot:`m_870c4af`,"loader-dots-animation":`m_aac34a1`,ovalLoader:`m_b34414df`,"oval-loader-animation":`m_f8e89c4b`},Yl=({className:e,...t})=>(0,H.jsxs)(G,{component:`span`,className:tn(Jl.barsLoader,e),...t,children:[(0,H.jsx)(`span`,{className:Jl.bar}),(0,H.jsx)(`span`,{className:Jl.bar}),(0,H.jsx)(`span`,{className:Jl.bar})]});Yl.displayName=`@mantine/core/Bars`;var Xl=({className:e,...t})=>(0,H.jsxs)(G,{component:`span`,className:tn(Jl.dotsLoader,e),...t,children:[(0,H.jsx)(`span`,{className:Jl.dot}),(0,H.jsx)(`span`,{className:Jl.dot}),(0,H.jsx)(`span`,{className:Jl.dot})]});Xl.displayName=`@mantine/core/Dots`;var Zl=({className:e,...t})=>(0,H.jsx)(G,{component:`span`,className:tn(Jl.ovalLoader,e),...t});Zl.displayName=`@mantine/core/Oval`;var Ql={bars:Yl,oval:Zl,dots:Xl},$l={loaders:Ql,type:`oval`},eu=$t((e,{size:t,color:n})=>({root:{"--loader-size":Ft(t,`loader-size`),"--loader-color":n?bn(n,e):void 0}})),tu=W(e=>{let t=U(`Loader`,$l,e),{size:n,color:r,type:i,vars:a,className:o,style:s,classNames:c,styles:l,unstyled:u,loaders:d,variant:f,children:p,attributes:m,...h}=t,g=zr({name:`Loader`,props:t,classes:Jl,className:o,style:s,classNames:c,styles:l,unstyled:u,attributes:m,vars:a,varsResolver:eu});return p?(0,H.jsx)(G,{...g(`root`),...h,children:p}):(0,H.jsx)(G,{...g(`root`),component:d[i],variant:f,size:n,...h})});tu.defaultLoaders=Ql,tu.classes=Jl,tu.varsResolver=eu,tu.displayName=`@mantine/core/Loader`;var nu={root:`m_8d3f4000`,icon:`m_8d3afb97`,loader:`m_302b9fb1`,group:`m_1a0f1b21`,groupSection:`m_437b6484`},ru={orientation:`horizontal`},iu=$t((e,{borderWidth:t})=>({group:{"--ai-border-width":V(t)}})),au=W(e=>{let t=U(`ActionIconGroup`,ru,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,orientation:s,vars:c,borderWidth:l,variant:u,mod:d,attributes:f,...p}=t,m=zr({name:`ActionIconGroup`,props:t,classes:nu,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:c,varsResolver:iu,rootSelector:`group`});return(0,H.jsx)(G,{...m(`group`),variant:u,mod:[{orientation:s},d],role:`group`,...p})});au.classes=nu,au.varsResolver=iu,au.displayName=`@mantine/core/ActionIconGroup`;var ou=$t((e,{radius:t,color:n,gradient:r,variant:i,autoContrast:a,size:o})=>{let s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:a});return{groupSection:{"--section-height":Ft(o,`section-height`),"--section-padding-x":Ft(o,`section-padding-x`),"--section-fz":Rt(o),"--section-radius":t===void 0?void 0:Lt(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),su=W(e=>{let t=U(`ActionIconGroupSection`,null,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,vars:s,variant:c,gradient:l,radius:u,autoContrast:d,attributes:f,...p}=t,m=zr({name:`ActionIconGroupSection`,props:t,classes:nu,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:ou,rootSelector:`groupSection`});return(0,H.jsx)(G,{...m(`groupSection`),variant:c,...p})});su.classes=nu,su.varsResolver=ou,su.displayName=`@mantine/core/ActionIconGroupSection`;var cu=$t((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o})=>{let s=e.variantColorResolver({color:a||e.primaryColor,theme:e,gradient:i,variant:r||`filled`,autoContrast:o});return{root:{"--ai-size":Ft(t,`ai-size`),"--ai-radius":n===void 0?void 0:Lt(n),"--ai-bg":a||r?s.background:void 0,"--ai-hover":a||r?s.hover:void 0,"--ai-hover-color":a||r?s.hoverColor:void 0,"--ai-color":s.color,"--ai-bd":a||r?s.border:void 0}}}),lu=Si(e=>{let t=U(`ActionIcon`,null,e),{className:n,unstyled:r,variant:i,classNames:a,styles:o,style:s,loading:c,loaderProps:l,size:u,color:d,radius:f,__staticSelector:p,gradient:m,vars:h,children:g,disabled:_,"data-disabled":v,autoContrast:y,mod:b,attributes:x,...S}=t,C=zr({name:[`ActionIcon`,p],props:t,className:n,style:s,classes:nu,classNames:a,styles:o,unstyled:r,attributes:x,vars:h,varsResolver:cu});return(0,H.jsxs)($c,{...C(`root`,{active:!_&&!c&&!v}),"aria-busy":c||void 0,...S,unstyled:r,variant:i,size:u,disabled:_||c,mod:[{loading:c,disabled:_||v},b],children:[typeof c==`boolean`&&(0,H.jsx)(kl,{mounted:c,transition:`slide-down`,duration:150,children:e=>(0,H.jsx)(G,{component:`span`,...C(`loader`,{style:e}),"aria-hidden":!0,children:(0,H.jsx)(tu,{color:`var(--ai-color)`,size:`calc(var(--ai-size) * 0.55)`,...l})})}),(0,H.jsx)(G,{component:`span`,mod:{loading:c},...C(`icon`),children:g})]})});lu.classes=nu,lu.varsResolver=cu,lu.displayName=`@mantine/core/ActionIcon`,lu.Group=au,lu.GroupSection=su;function uu({size:e=`var(--cb-icon-size, 70%)`,style:t,...n}){return(0,H.jsx)(`svg`,{viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{...t,width:e,height:e},...n,children:(0,H.jsx)(`path`,{d:`M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}uu.displayName=`@mantine/core/CloseIcon`;var du={root:`m_86a44da5`,"root--subtle":`m_220c80f2`},fu={variant:`subtle`},pu=$t((e,{size:t,radius:n,iconSize:r})=>({root:{"--cb-size":Ft(t,`cb-size`),"--cb-radius":n===void 0?void 0:Lt(n),"--cb-icon-size":V(r)}})),mu=Si(e=>{let t=U(`CloseButton`,fu,e),{iconSize:n,children:r,vars:i,radius:a,className:o,classNames:s,style:c,styles:l,unstyled:u,"data-disabled":d,disabled:f,variant:p,icon:m,mod:h,attributes:g,__staticSelector:_,...v}=t,y=zr({name:_||`CloseButton`,props:t,className:o,style:c,classes:du,classNames:s,styles:l,unstyled:u,attributes:g,vars:i,varsResolver:pu});return(0,H.jsxs)($c,{...v,unstyled:u,variant:p,disabled:f,mod:[{disabled:f||d},h],...y(`root`,{variant:p,active:!f&&!d}),children:[m||(0,H.jsx)(uu,{}),r]})});mu.classes=du,mu.varsResolver=pu,mu.displayName=`@mantine/core/CloseButton`;function hu(e){return h.Children.toArray(e).filter(Boolean)}var gu={root:`m_4081bf90`},_u={preventGrowOverflow:!0,gap:`md`,align:`center`,justify:`flex-start`,wrap:`wrap`},vu=$t((e,{grow:t,preventGrowOverflow:n,gap:r,align:i,justify:a,wrap:o},{childWidth:s})=>({root:{"--group-child-width":t&&n?s:void 0,"--group-gap":It(r),"--group-align":i,"--group-justify":a,"--group-wrap":o}})),K=W(e=>{let t=U(`Group`,_u,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,children:s,gap:c,align:l,justify:u,wrap:d,grow:f,preventGrowOverflow:p,vars:m,variant:h,__size:g,mod:_,attributes:v,...y}=t,b=hu(s),x=b.length,S=It(c??`md`),C=zr({name:`Group`,props:t,stylesCtx:{childWidth:`calc(${100/x}% - (${S} - ${S} / ${x}))`},className:r,style:i,classes:gu,classNames:n,styles:a,unstyled:o,attributes:v,vars:m,varsResolver:vu});return(0,H.jsx)(G,{...C(`root`),variant:h,mod:[{grow:f},_],size:g,...y,children:b})});K.classes=gu,K.varsResolver=vu,K.displayName=`@mantine/core/Group`;var[yu,bu]=wt(`ModalBase component was not found in tree`);function xu({opened:e,transitionDuration:t}){let[n,r]=(0,h.useState)(e),i=(0,h.useRef)(-1),a=se()?0:t;return(0,h.useEffect)(()=>(e?(r(!0),window.clearTimeout(i.current)):a===0?r(!1):i.current=window.setTimeout(()=>r(!1),a),()=>window.clearTimeout(i.current)),[e,a]),n}function Su({id:e,transitionProps:t,opened:n,trapFocus:r,closeOnEscape:i,onClose:a,returnFocus:o,handledEscapeEvents:s}){let c=L(e),[l,u]=(0,h.useState)(!1),[d,f]=(0,h.useState)(!1),p=xu({opened:n,transitionDuration:typeof t?.duration==`number`?t?.duration:200});return ne(`keydown`,e=>{e.key===`Escape`&&i&&!e.isComposing&&n&&!s?.has(e)&&e.target?.getAttribute(`data-mantine-stop-propagation`)!==`true`&&(s?.add(e),a())},{capture:!0}),E({opened:n,shouldReturnFocus:r&&o}),{_id:c,titleMounted:l,bodyMounted:d,shouldLockScroll:p,setTitleMounted:u,setBodyMounted:f}}var Cu=function(){return Cu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n`u`)return Qu;var t=ed(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},nd=Zu(),rd=`data-scroll-locked`,id=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),` - .${Ou} { - overflow: hidden ${r}; - padding-right: ${s}px ${r}; - } - body[${rd}] { - overflow: hidden ${r}; - overscroll-behavior: contain; - ${[t&&`position: relative ${r};`,n===`margin`&&` - padding-left: ${i}px; - padding-top: ${a}px; - padding-right: ${o}px; - margin-left:0; - margin-top:0; - margin-right: ${s}px ${r}; - `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)} - } - - .${Eu} { - right: ${s}px ${r}; - } - - .${Du} { - margin-right: ${s}px ${r}; - } - - .${Eu} .${Eu} { - right: 0 ${r}; - } - - .${Du} .${Du} { - margin-right: 0 ${r}; - } - - body[${rd}] { - ${ku}: ${s}px; - } -`},ad=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},od=function(){h.useEffect(function(){return document.body.setAttribute(rd,(ad()+1).toString()),function(){var e=ad()-1;e<=0?document.body.removeAttribute(rd):document.body.setAttribute(rd,e.toString())}},[])},sd=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;od();var a=h.useMemo(function(){return td(i)},[i]);return h.createElement(nd,{styles:id(a,!t,i,n?``:`!important`)})},cd=!1;if(typeof window<`u`)try{var ld=Object.defineProperty({},"passive",{get:function(){return cd=!0,!0}});window.addEventListener(`test`,ld,ld),window.removeEventListener(`test`,ld,ld)}catch{cd=!1}var ud=cd?{passive:!1}:!1,dd=function(e){return e.tagName===`TEXTAREA`},fd=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!dd(e)&&n[t]===`visible`)},pd=function(e){return fd(e,`overflowY`)},md=function(e){return fd(e,`overflowX`)},hd=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),vd(e,r)){var i=yd(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},gd=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},_d=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},vd=function(e,t){return e===`v`?pd(t):md(t)},yd=function(e,t){return e===`v`?gd(t):_d(t)},bd=function(e,t){return e===`h`&&t===`rtl`?-1:1},xd=function(e,t,n,r,i){var a=bd(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=yd(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&vd(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Sd=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Cd=function(e){return[e.deltaX,e.deltaY]},wd=function(e){return e&&`current`in e?e.current:e},Td=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ed=function(e){return` - .block-interactivity-${e} {pointer-events: none;} - .allow-interactivity-${e} {pointer-events: all;} -`},Dd=0,Od=[];function kd(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),i=h.useState(Dd++)[0],a=h.useState(Zu)[0],o=h.useRef(e);h.useEffect(function(){o.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Tu([e.lockRef.current],(e.shards||[]).map(wd),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=h.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Sd(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=hd(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=hd(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return xd(h,t,e,h===`h`?s:c,!0)},[]),c=h.useCallback(function(e){var n=e;if(Od.length&&Od[Od.length-1]===a){var r=`deltaY`in n?Cd(n):Sd(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Td(e.delta,r)})[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var c=(o.current.shards||[]).map(wd).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=h.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Ad(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=h.useCallback(function(e){n.current=Sd(e),r.current=void 0},[]),d=h.useCallback(function(t){l(t.type,Cd(t),t.target,s(t,e.lockRef.current))},[]),f=h.useCallback(function(t){l(t.type,Sd(t),t.target,s(t,e.lockRef.current))},[]);h.useEffect(function(){return Od.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,ud),document.addEventListener(`touchmove`,c,ud),document.addEventListener(`touchstart`,u,ud),function(){Od=Od.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,ud),document.removeEventListener(`touchmove`,c,ud),document.removeEventListener(`touchstart`,u,ud)}},[]);var p=e.removeScrollBar,m=e.inert;return h.createElement(h.Fragment,null,m?h.createElement(a,{styles:Ed(i)}):null,p?h.createElement(sd,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ad(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var jd=Vu(Hu,kd),Md=h.forwardRef(function(e,t){return h.createElement(Wu,Cu({},e,{ref:t,sideCar:jd}))});Md.classNames=Wu.classNames;function Nd({keepMounted:e,keepMountedMode:t=`activity`,opened:n,onClose:r,id:i,transitionProps:a,onExitTransitionEnd:o,onEnterTransitionEnd:s,trapFocus:c,closeOnEscape:l,returnFocus:u,closeOnClickOutside:d,withinPortal:f,portalProps:p,lockScroll:m,children:h,zIndex:g,shadow:_,padding:v,__vars:y,unstyled:b,removeScrollProps:x,__handledEscapeEvents:S,...C}){let{_id:w,titleMounted:T,bodyMounted:E,shouldLockScroll:D,setTitleMounted:O,setBodyMounted:k}=Su({id:i,transitionProps:a,opened:n,trapFocus:c,closeOnEscape:l,onClose:r,returnFocus:u,handledEscapeEvents:S}),{key:A,...j}=x||{};return(0,H.jsx)(Cl,{...p,withinPortal:f,children:(0,H.jsx)(yu,{value:{opened:n,onClose:r,closeOnClickOutside:d,onExitTransitionEnd:o,onEnterTransitionEnd:s,transitionProps:{...a,keepMounted:e,keepMountedMode:t},getTitleId:()=>`${w}-title`,getBodyId:()=>`${w}-body`,titleMounted:T,bodyMounted:E,setTitleMounted:O,setBodyMounted:k,trapFocus:c,closeOnEscape:l,zIndex:g,unstyled:b},children:(0,H.jsx)(Md,{enabled:D&&m,...j,children:(0,H.jsx)(G,{...C,id:w,__vars:{...y,"--mb-z-index":(g||Mt(`modal`)).toString(),"--mb-shadow":Bt(_),"--mb-padding":It(v)},children:h})},A)})})}Nd.displayName=`@mantine/core/ModalBase`;function Pd(){let e=bu();return(0,h.useEffect)(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}var Fd={title:`m_615af6c9`,header:`m_b5489c3c`,inner:`m_60c222c7`,content:`m_fd1ab0aa`,close:`m_606cb269`,body:`m_5df29311`};function Id({className:e,...t}){let n=Pd(),r=bu();return(0,H.jsx)(G,{id:n,className:tn({[Fd.body]:!r.unstyled},e),...t})}Id.displayName=`@mantine/core/ModalBaseBody`;function Ld({className:e,onClick:t,...n}){let r=bu();return(0,H.jsx)(mu,{...n,onClick:e=>{r.onClose(),t?.(e)},className:tn({[Fd.close]:!r.unstyled},e),unstyled:r.unstyled})}Ld.displayName=`@mantine/core/ModalBaseCloseButton`;function Rd({transitionProps:e,className:t,innerProps:n,onKeyDown:r,style:i,ref:a,...o}){let s=bu();return(0,H.jsx)(kl,{mounted:s.opened,transition:`pop`,...s.transitionProps,onExited:()=>{s.onExitTransitionEnd?.(),s.transitionProps?.onExited?.()},onEntered:()=>{s.onEnterTransitionEnd?.(),s.transitionProps?.onEntered?.()},...e,children:e=>(0,H.jsx)(`div`,{...n,className:tn({[Fd.inner]:!s.unstyled},n.className),children:(0,H.jsx)(Il,{active:s.opened&&s.trapFocus,innerRef:a,children:(0,H.jsx)(il,{...o,component:`section`,role:`dialog`,tabIndex:-1,"aria-modal":!0,"aria-describedby":s.bodyMounted?s.getBodyId():void 0,"aria-labelledby":s.titleMounted?s.getTitleId():void 0,style:[i,e],className:tn({[Fd.content]:!s.unstyled},t),unstyled:s.unstyled,children:o.children})})})})}Rd.displayName=`@mantine/core/ModalBaseContent`;function zd({className:e,...t}){let n=bu();return(0,H.jsx)(G,{component:`header`,className:tn({[Fd.header]:!n.unstyled},e),...t})}zd.displayName=`@mantine/core/ModalBaseHeader`;var Bd={duration:200,timingFunction:`ease`,transition:`fade`};function Vd(e){let t=bu();return{...Bd,...t.transitionProps,...e}}function Hd({onClick:e,transitionProps:t,style:n,visible:r,...i}){let a=bu(),o=Vd(t);return(0,H.jsx)(kl,{mounted:r===void 0?a.opened:r,...o,transition:`fade`,children:t=>(0,H.jsx)(_l,{fixed:!0,style:[n,t],zIndex:a.zIndex,unstyled:a.unstyled,onClick:t=>{e?.(t),a.closeOnClickOutside&&a.onClose()},...i})})}Hd.displayName=`@mantine/core/ModalBaseOverlay`;function Ud(){let e=bu();return(0,h.useEffect)(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}function Wd({className:e,...t}){let n=Ud(),r=bu();return(0,H.jsx)(G,{component:`h2`,className:tn({[Fd.title]:!r.unstyled},e),id:n,...t})}Wd.displayName=`@mantine/core/ModalBaseTitle`;function Gd({children:e}){return(0,H.jsx)(H.Fragment,{children:e})}var Kd=(0,h.createContext)({size:`sm`}),qd=W(e=>{let t=U(`InputClearButton`,null,e),{size:n,variant:r,vars:i,classNames:a,styles:o,...s}=t,c=(0,h.use)(Kd),{resolvedClassNames:l,resolvedStyles:u}=wr({classNames:a,styles:o,props:t});return(0,H.jsx)(mu,{variant:r||`transparent`,size:n||c?.size||`sm`,classNames:l,styles:u,__staticSelector:`InputClearButton`,style:{pointerEvents:`all`,background:`var(--input-bg)`,...s.style},...s})});qd.displayName=`@mantine/core/InputClearButton`;var Jd={xs:7,sm:8,md:10,lg:12,xl:15};function Yd({__clearable:e,__clearSection:t,rightSection:n,__defaultRightSection:r,size:i=`sm`,__clearSectionMode:a=`both`}){let o=e&&t;return a===`rightSection`?n===null?null:n||r:a===`clear`?n===null?null:o||r:o&&(n||r)?(0,H.jsxs)(`div`,{"data-combined-clear-section":!0,style:{display:`flex`,gap:2,alignItems:`center`,paddingInlineEnd:Jd[i]},children:[o,n||r]}):n===null?null:n||o||r}var Xd=(0,h.createContext)({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0}),Zd={wrapper:`m_6c018570`,input:`m_8fb7ebe7`,bottomSection:`m_93f4ed57`,section:`m_82577fc2`,placeholder:`m_88bacfd0`,root:`m_46b77525`,label:`m_8fdc1311`,required:`m_78a94662`,error:`m_8f816625`,success:`m_9d9d40e0`,description:`m_fe47ce59`},Qd=$t((e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${Rt(t)} - ${V(2)})`}})),$d=W(e=>{let t=U(`InputDescription`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:c,__inheritStyles:l=!0,attributes:u,...d}=U(`InputDescription`,null,t),f=(0,h.use)(Xd),p=zr({name:[`InputWrapper`,c],props:t,classes:Zd,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,rootSelector:`description`,vars:s,varsResolver:Qd}),m=l&&f?.getStyles||p;return(0,H.jsx)(G,{component:`p`,...m(`description`,f?.getStyles?{className:r,style:i}:void 0),...d})});$d.classes=Zd,$d.varsResolver=Qd,$d.displayName=`@mantine/core/InputDescription`;var ef=$t((e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${Rt(t)} - ${V(2)})`}})),tf=W(e=>{let t=U(`InputError`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,__staticSelector:l,__inheritStyles:u=!0,...d}=t,f=zr({name:[`InputWrapper`,l],props:t,classes:Zd,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c,rootSelector:`error`,vars:s,varsResolver:ef}),p=(0,h.use)(Xd),m=u&&p?.getStyles||f;return(0,H.jsx)(G,{component:`p`,...m(`error`,p?.getStyles?{className:r,style:i}:void 0),...d})});tf.classes=Zd,tf.varsResolver=ef,tf.displayName=`@mantine/core/InputError`;var nf={labelElement:`label`},rf=$t((e,{size:t})=>({label:{"--input-label-size":Rt(t),"--input-asterisk-color":void 0}})),af=W(e=>{let t=U(`InputLabel`,nf,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,labelElement:c,required:l,htmlFor:u,onMouseDown:d,children:f,__staticSelector:p,mod:m,attributes:g,..._}=t,v=zr({name:[`InputWrapper`,p],props:t,classes:Zd,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:g,rootSelector:`label`,vars:s,varsResolver:rf}),y=(0,h.use)(Xd),b=y?.getStyles||v,x=_.component||c,S=typeof x!=`string`||x===`label`;return(0,H.jsxs)(G,{...b(`label`,y?.getStyles?{className:r,style:i}:void 0),component:c,htmlFor:S?u:void 0,mod:[{required:l},m],onMouseDown:e=>{d?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault()},..._,children:[f,l&&(0,H.jsx)(`span`,{...b(`required`),"aria-hidden":!0,children:` *`})]})});af.classes=Zd,af.varsResolver=rf,af.displayName=`@mantine/core/InputLabel`;var of=W(e=>{let t=U(`InputPlaceholder`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:c,error:l,mod:u,attributes:d,...f}=t,p=zr({name:[`InputPlaceholder`,c],props:t,classes:Zd,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,rootSelector:`placeholder`});return(0,H.jsx)(G,{...p(`placeholder`),mod:[{error:!!l},u],component:`span`,...f})});of.classes=Zd,of.displayName=`@mantine/core/InputPlaceholder`;var sf=$t((e,{size:t})=>({success:{"--input-success-size":t===void 0?void 0:`calc(${Rt(t)} - ${V(2)})`}})),cf=W(e=>{let t=U(`InputSuccess`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,__staticSelector:l,__inheritStyles:u=!0,...d}=t,f=zr({name:[`InputWrapper`,l],props:t,classes:Zd,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c,rootSelector:`success`,vars:s,varsResolver:sf}),p=(0,h.use)(Xd),m=u&&p?.getStyles||f;return(0,H.jsx)(G,{component:`p`,...m(`success`,p?.getStyles?{className:r,style:i}:void 0),...d})});cf.classes=Zd,cf.varsResolver=sf,cf.displayName=`@mantine/core/InputSuccess`;function lf(e,{hasDescription:t,hasError:n}){let r=e.findIndex(e=>e===`input`),i=e.slice(0,r),a=e.slice(r+1),o=t&&i.includes(`description`)||n&&i.includes(`error`);return{offsetBottom:t&&a.includes(`description`)||n&&a.includes(`error`),offsetTop:o}}var uf={labelElement:`label`,inputContainer:e=>e,inputWrapperOrder:[`label`,`description`,`input`,`error`]},df=$t((e,{size:t})=>({label:{"--input-label-size":Rt(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${Rt(t)} - ${V(2)})`},success:{"--input-success-size":t===void 0?void 0:`calc(${Rt(t)} - ${V(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${Rt(t)} - ${V(2)})`}})),ff=W(e=>{let t=U(`InputWrapper`,uf,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,size:c,variant:l,__staticSelector:u,inputContainer:d,inputWrapperOrder:f,label:p,error:m,success:g,description:_,labelProps:v,descriptionProps:y,errorProps:b,successProps:x,labelElement:S,children:C,withAsterisk:w,id:T,required:E,__stylesApiProps:D,mod:O,attributes:k,...A}=t,j=zr({name:[`InputWrapper`,u],props:D||t,classes:Zd,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:k,vars:s,varsResolver:df}),M={size:c,variant:l,__staticSelector:u},N=L(T),P=typeof w==`boolean`?w:E,F=b?.id||`${N}-error`,ee=x?.id||`${N}-success`,I=y?.id||`${N}-description`,te=N,ne=!!m&&typeof m!=`boolean`,re=!!g&&typeof g!=`boolean`&&!m,ie=!!_,ae=ne&&f.includes(`error`),oe=re&&f.includes(`error`),se=ie&&f.includes(`description`),R=`${ae?F:``} ${oe?ee:``} ${se?I:``}`,ce=R.trim().length>0?R.trim():void 0,le=v?.id||`${N}-label`,z=p&&(0,H.jsx)(af,{labelElement:S,id:le,htmlFor:te,required:P,...M,...v,children:p},`label`),ue=ie&&(0,H.jsx)($d,{...y,...M,size:y?.size||M.size,id:y?.id||I,children:_},`description`),de=(0,H.jsx)(h.Fragment,{children:d(C)},`input`),fe=ne&&(0,h.createElement)(tf,{...b,...M,size:b?.size||M.size,key:`error`,id:b?.id||F},m),pe=re&&(0,h.createElement)(cf,{...x,...M,size:x?.size||M.size,key:`success`,id:x?.id||ee},g),me=f.map(e=>{switch(e){case`label`:return z;case`input`:return de;case`description`:return ue;case`error`:return fe||pe;default:return null}});return(0,H.jsx)(Xd,{value:{getStyles:j,describedBy:ce,inputId:te,labelId:z&&f.includes(`label`)?le:void 0,...lf(f,{hasDescription:ie,hasError:ne||re})},children:(0,H.jsx)(G,{variant:l,size:c,mod:[{error:!!m,success:!!g&&!m},O],id:S===`label`?void 0:T,...j(`root`),...A,children:me})})});ff.classes=Zd,ff.varsResolver=df,ff.displayName=`@mantine/core/InputWrapper`;var pf={variant:`default`,leftSectionPointerEvents:`none`,rightSectionPointerEvents:`none`,withAria:!0,withErrorStyles:!0,withSuccessStyles:!0,size:`sm`,loading:!1,loadingPosition:`right`},mf=$t((e,t,n)=>({wrapper:{"--input-margin-top":n.offsetTop?`calc(var(--mantine-spacing-xs) / 2)`:void 0,"--input-margin-bottom":n.offsetBottom?`calc(var(--mantine-spacing-xs) / 2)`:void 0,"--input-height":Ft(t.size,`input-height`),"--input-fz":Rt(t.size),"--input-radius":t.radius===void 0?void 0:Lt(t.radius),"--input-left-section-width":t.leftSectionWidth===void 0?void 0:V(t.leftSectionWidth),"--input-right-section-width":t.rightSectionWidth===void 0?void 0:V(t.rightSectionWidth),"--input-padding-y":t.multiline?Ft(t.size,`input-padding-y`):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}})),hf=Si(e=>{let t=U(`Input`,pf,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,required:s,__staticSelector:c,__stylesApiProps:l,size:u,wrapperProps:d,error:f,success:p,disabled:m,leftSection:g,leftSectionProps:_,leftSectionWidth:v,rightSection:y,rightSectionProps:b,rightSectionWidth:x,rightSectionPointerEvents:S,leftSectionPointerEvents:C,variant:w,vars:T,pointer:E,multiline:D,radius:O,id:k,withAria:A,withErrorStyles:j,withSuccessStyles:M,mod:N,inputSize:P,attributes:F,__clearSection:ee,__clearable:I,__clearSectionMode:te,__defaultRightSection:L,loading:ne,loadingPosition:re,__bottomSection:ie,__bottomSectionProps:ae,rootRef:oe,dir:se,...R}=t,{styleProps:ce,rest:le}=qr(R),z=(0,h.use)(Xd),ue={offsetBottom:z?.offsetBottom,offsetTop:z?.offsetTop},de=zr({name:[`Input`,c],props:l||t,classes:Zd,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:F,stylesCtx:ue,rootSelector:`wrapper`,vars:T,varsResolver:mf}),fe=A?{required:s,disabled:m,"aria-invalid":f?!0:void 0,"aria-describedby":z?.describedBy,id:z?.inputId||k}:{},pe=ne?(0,H.jsx)(tu,{size:re===`left`?`calc(var(--input-left-section-size) / 2)`:`calc(var(--input-right-section-size) / 2)`}):null,me=ne&&re===`left`?pe:g,he=Yd({__clearable:I,__clearSection:ee,rightSection:ne&&re===`right`?pe:y,__defaultRightSection:L,size:u,__clearSectionMode:te});return(0,H.jsx)(Kd,{value:{size:u||`sm`},children:(0,H.jsxs)(G,{ref:oe,dir:se,...de(`wrapper`),...ce,...d,mod:[{error:!!f&&j,success:!!p&&!f&&M,pointer:E,disabled:m,multiline:D,withRightSection:!!he,withLeftSection:!!me,withBottomSection:!!ie},N],variant:w,size:u,children:[me&&(0,H.jsx)(`div`,{..._,"data-position":`left`,...de(`section`,{className:_?.className,style:_?.style}),children:me}),(0,H.jsx)(G,{component:`input`,...le,...fe,required:s,mod:{disabled:m,error:!!f&&j,success:!!p&&!f&&M},variant:w,__size:P,...de(`input`)}),ie&&(0,H.jsx)(`div`,{...ae,...de(`bottomSection`,{className:ae?.className,style:ae?.style}),children:ie}),he&&(0,H.jsx)(`div`,{...b,"data-position":`right`,...de(`section`,{className:b?.className,style:b?.style}),children:he})]})})});hf.classes=Zd,hf.varsResolver=mf,hf.Wrapper=ff,hf.Label=af,hf.Error=tf,hf.Success=cf,hf.Description=$d,hf.Placeholder=of,hf.ClearButton=qd,hf.displayName=`@mantine/core/Input`;function gf(e,t,n){let r=U([`Input`,`InputWrapper`,e],t,n),{label:i,description:a,error:o,success:s,required:c,classNames:l,styles:u,className:d,unstyled:f,__staticSelector:p,__stylesApiProps:m,errorProps:h,successProps:g,labelProps:_,descriptionProps:v,wrapperProps:y,id:b,size:x,style:S,inputContainer:C,inputWrapperOrder:w,withAsterisk:T,variant:E,vars:D,mod:O,attributes:k,...A}=r,{styleProps:j,rest:M}=qr(A),N={label:i,description:a,error:o,success:s,required:c,classNames:l,className:d,__staticSelector:p,__stylesApiProps:m||r,errorProps:h,successProps:g,labelProps:_,descriptionProps:v,unstyled:f,styles:u,size:x,style:S,inputContainer:C,inputWrapperOrder:w,withAsterisk:T,variant:E,id:b,mod:O,attributes:k,...y};return{...M,classNames:l,styles:u,unstyled:f,wrapperProps:{...N,...j},inputProps:{required:c,classNames:l,styles:u,unstyled:f,size:x,__staticSelector:p,__stylesApiProps:m||r,error:o,success:s,variant:E,id:b,attributes:k}}}var _f={__staticSelector:`InputBase`,withAria:!0,size:`sm`},vf=Si(e=>{let{inputProps:t,wrapperProps:n,...r}=gf(`InputBase`,_f,e);return(0,H.jsx)(hf.Wrapper,{...n,children:(0,H.jsx)(hf,{...t,...r})})});vf.classes={...hf.classes,...hf.Wrapper.classes},vf.displayName=`@mantine/core/InputBase`;var yf={gap:{type:`spacing`,property:`gap`},rowGap:{type:`spacing`,property:`rowGap`},columnGap:{type:`spacing`,property:`columnGap`},align:{type:`identity`,property:`alignItems`},justify:{type:`identity`,property:`justifyContent`},wrap:{type:`identity`,property:`flexWrap`},direction:{type:`identity`,property:`flexDirection`}},bf={root:`m_8bffd616`},xf=Si(e=>{let t=U(`Flex`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,gap:c,rowGap:l,columnGap:u,align:d,justify:f,wrap:p,direction:m,attributes:h,...g}=t,_=zr({name:`Flex`,classes:bf,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s}),v=cr(),y=gi(),b=hi({styleProps:{gap:c,rowGap:l,columnGap:u,align:d,justify:f,wrap:p,direction:m},theme:v,data:yf}),x=Wn(),S=x&&b.hasResponsiveStyles?Kr(b.styles,b.media):y;return(0,H.jsxs)(H.Fragment,{children:[b.hasResponsiveStyles&&(0,H.jsx)(Wr,{selector:`.${S}`,styles:b.styles,media:b.media,deduplicate:x}),(0,H.jsx)(G,{..._(`root`,{className:S,style:xt(b.inlineStyles)}),...g})]})});xf.classes=bf,xf.displayName=`@mantine/core/Flex`;function Sf(e,t){if(!t||!e)return!1;let n=t.parentNode;for(;n!=null;){if(n===e)return!0;n=n.parentNode}return!1}function Cf({target:e,parent:t,ref:n,displayAfterTransitionEnd:r,onTransitionStart:i,onTransitionEnd:a}){let o=(0,h.useRef)(-1),s=(0,h.useRef)(e),[c,l]=(0,h.useState)(!1),[u,d]=(0,h.useState)(typeof r==`boolean`&&r),f=()=>{if(!e||!t||!n.current)return;let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),a=t.offsetWidth===0?1:i.width/t.offsetWidth,o=t.offsetHeight===0?1:i.height/t.offsetHeight,s=window.getComputedStyle(e),c=window.getComputedStyle(t),l=qi(s.borderTopWidth)+qi(c.borderTopWidth),u=qi(s.borderLeftWidth)+qi(c.borderLeftWidth),d={top:(r.top-i.top)/o-l,left:(r.left-i.left)/a-u,width:r.width/a,height:r.height/o};n.current.style.transform=`translateY(${d.top}px) translateX(${d.left}px)`,n.current.style.width=`${d.width}px`,n.current.style.height=`${d.height}px`},p=()=>{window.clearTimeout(o.current),n.current&&(n.current.style.transitionDuration=`0ms`),f(),o.current=window.setTimeout(()=>{n.current&&(n.current.style.transitionDuration=``)},30)},m=(0,h.useRef)(null),g=(0,h.useRef)(null);return(0,h.useEffect)(()=>{if(c&&s.current!==e&&i&&i(),s.current=e,f(),e)return m.current=new ResizeObserver(p),m.current.observe(e),t&&(g.current=new ResizeObserver(p),g.current.observe(t)),()=>{m.current?.disconnect(),g.current?.disconnect()}},[t,e]),(0,h.useEffect)(()=>{if(t){let e=e=>{Sf(e.target,t)&&(p(),d(!1))};return t.addEventListener(`transitionend`,e),()=>{t.removeEventListener(`transitionend`,e)}}},[t]),(0,h.useEffect)(()=>{if(n.current&&a){let e=e=>{e.propertyName===`transform`&&a()};return n.current.addEventListener(`transitionend`,e),()=>{n.current?.removeEventListener(`transitionend`,e)}}},[a]),B(()=>{Kt()!==`test`&&l(!0)},20,{autoInvoke:!0}),be(e=>{e.forEach(e=>{e.type===`attributes`&&e.attributeName===`dir`&&p()})},{attributes:!0,attributeFilter:[`dir`]},()=>document.documentElement),{initialized:c,hidden:u}}var wf={root:`m_96b553a6`},Tf=$t((e,{transitionDuration:t},{shouldReduceMotion:n})=>({root:{"--transition-duration":e.respectReducedMotion&&n?`0ms`:typeof t==`number`?`${t}ms`:t||`150ms`}})),Ef=W(e=>{let t=U(`FloatingIndicator`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,target:c,parent:l,transitionDuration:u,mod:d,displayAfterTransitionEnd:f,onTransitionStart:p,onTransitionEnd:m,attributes:g,ref:_,...v}=t,y=zr({name:`FloatingIndicator`,classes:wf,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:g,vars:s,varsResolver:Tf,stylesCtx:{shouldReduceMotion:se()}}),b=(0,h.useRef)(null),{initialized:x,hidden:S}=Cf({target:c,parent:l,ref:b,displayAfterTransitionEnd:f,onTransitionStart:p,onTransitionEnd:m}),C=ae(_,b);return!c||!l?null:(0,H.jsx)(G,{ref:C,mod:[{initialized:x,hidden:S},d],...y(`root`),...v})});Ef.displayName=`@mantine/core/FloatingIndicator`,Ef.classes=wf,Ef.varsResolver=Tf;var[Df,Of]=wt(`Accordion component was not found in the tree`);function kf({style:e,size:t=16,...n}){return(0,H.jsx)(`svg`,{viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{...e,width:V(t),height:V(t),display:`block`},...n,children:(0,H.jsx)(`path`,{d:`M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}kf.displayName=`@mantine/core/AccordionChevron`;var[Af,jf]=wt(`Accordion.Item component was not found in the tree`),Mf={root:`m_9bdbb667`,panel:`m_df78851f`,content:`m_4ba554d4`,itemTitle:`m_8fa820a0`,control:`m_4ba585b8`,"control--default":`m_6939a5e9`,"control--contained":`m_4271d21b`,label:`m_df3ffa0f`,chevron:`m_3f35ae96`,icon:`m_9bd771fe`,item:`m_9bd7b098`,"item--default":`m_fe19b709`,"item--contained":`m_1f921b3b`,"item--filled":`m_2cdf939a`,"item--separated":`m_9f59b069`},Nf=W(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,chevron:o,icon:s,onClick:c,onKeyDown:l,children:u,disabled:d,mod:f,...p}=U(`AccordionControl`,null,e),{value:m}=jf(),h=Of(),g=h.isItemActive(m),_=typeof h.order==`number`,v=`h${h.order}`,y=(0,H.jsxs)($c,{...h.getStyles(`control`,{className:n,classNames:t,style:r,styles:i,variant:h.variant}),unstyled:h.unstyled,mod:[`accordion-control`,{active:g,"chevron-position":h.chevronPosition,disabled:d},f],onClick:e=>{c?.(e),h.onChange(m)},type:`button`,disabled:d,"aria-expanded":g,"aria-controls":h.getRegionId(m),id:h.getControlId(m),onKeyDown:At({siblingSelector:`[data-accordion-control]`,parentSelector:`[data-accordion]`,activateOnFocus:!1,loop:h.loop,orientation:`vertical`,onKeyDown:l}),...p,children:[(0,H.jsx)(G,{component:`span`,mod:{rotate:!h.disableChevronRotation&&g,position:h.chevronPosition},...h.getStyles(`chevron`,{classNames:t,styles:i}),children:o||h.chevron}),(0,H.jsx)(`span`,{...h.getStyles(`label`,{classNames:t,styles:i}),children:u}),s&&(0,H.jsx)(G,{component:`span`,mod:{"chevron-position":h.chevronPosition},...h.getStyles(`icon`,{classNames:t,styles:i}),children:s})]});return _?(0,H.jsx)(v,{...h.getStyles(`itemTitle`,{classNames:t,styles:i}),children:y}):y});Nf.displayName=`@mantine/core/AccordionControl`,Nf.classes=Mf;var Pf=W(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,value:o,mod:s,...c}=U(`AccordionItem`,null,e),l=Of();return(0,H.jsx)(Af,{value:{value:o},children:(0,H.jsx)(G,{mod:[{active:l.isItemActive(o)},s],...l.getStyles(`item`,{className:n,classNames:t,styles:i,style:r,variant:l.variant}),...c})})});Pf.displayName=`@mantine/core/AccordionItem`,Pf.classes=Mf;var Ff=W(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,keepMounted:s,keepMountedMode:c,...l}=U(`AccordionPanel`,null,e),{value:u}=jf(),d=Of();return(0,H.jsx)(Mi,{...d.getStyles(`panel`,{className:n,classNames:t,style:r,styles:i}),expanded:d.isItemActive(u),transitionDuration:d.transitionDuration??200,role:`region`,id:d.getRegionId(u),"aria-labelledby":d.getControlId(u),keepMounted:s??d.keepMounted,keepMountedMode:c??d.keepMountedMode,...l,children:(0,H.jsx)(`div`,{...d.getStyles(`content`,{classNames:t,styles:i}),children:o})})});Ff.displayName=`@mantine/core/AccordionPanel`,Ff.classes=Mf;var If={multiple:!1,loop:!0,disableChevronRotation:!1,disableCollapse:!1,chevronPosition:`right`,variant:`default`,chevronSize:`auto`,chevronIconSize:16,keepMountedMode:`activity`},Lf=$t((e,{transitionDuration:t,chevronSize:n,radius:r})=>({root:{"--accordion-transition-duration":t===void 0?void 0:`${t}ms`,"--accordion-chevron-size":n===void 0?void 0:V(n),"--accordion-radius":r===void 0?void 0:Lt(r)}})),Rf=xi(e=>{let t=U(`Accordion`,If,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,multiple:l,value:u,defaultValue:d,onChange:f,id:p,loop:m,transitionDuration:h,disableChevronRotation:g,disableCollapse:_,chevronPosition:v,chevronSize:y,order:b,chevron:x,variant:S,radius:C,chevronIconSize:w,attributes:T,keepMounted:E,keepMountedMode:D,...O}=t,k=L(p),[A,j]=oe({value:u,defaultValue:d,finalValue:l?[]:null,onChange:f}),M=e=>Array.isArray(A)?A.includes(e):e===A,N=e=>{if(!Array.isArray(A)&&_&&e===A)return;let t=Array.isArray(A)?A.includes(e)?A.filter(t=>t!==e):[...A,e]:e===A?null:e;j(t)},P=zr({name:`Accordion`,classes:Mf,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:T,vars:s,varsResolver:Lf});return(0,H.jsx)(Df,{value:{isItemActive:M,onChange:N,getControlId:Tt(`${k}-control`,`Accordion.Item component was rendered with invalid value or without value`),getRegionId:Tt(`${k}-panel`,`Accordion.Item component was rendered with invalid value or without value`),chevron:x===null?null:x||(0,H.jsx)(kf,{size:w}),transitionDuration:h,disableChevronRotation:g,chevronPosition:v,order:b,loop:m,getStyles:P,variant:S,unstyled:o,keepMounted:E,keepMountedMode:D},children:(0,H.jsx)(G,{...P(`root`),id:k,...O,variant:S,"data-accordion":!0,children:c})})});Rf.classes=Mf,Rf.varsResolver=Lf,Rf.displayName=`@mantine/core/Accordion`,Rf.Item=Pf,Rf.Panel=Ff,Rf.Control=Nf,Rf.Chevron=kf;var zf={root:`m_b6d8b162`};function Bf(e){if(e===`start`)return`start`;if(e===`end`||e)return`end`}var Vf={inherit:!1},Hf=$t((e,{variant:t,lineClamp:n,gradient:r,size:i,textWrap:a})=>({root:{"--text-fz":Rt(i),"--text-lh":zt(i),"--text-gradient":t===`gradient`?Tn(r,e):void 0,"--text-line-clamp":typeof n==`number`?n.toString():void 0,"--text-text-wrap":a}})),q=Si(e=>{let t=U(`Text`,Vf,e),{lineClamp:n,truncate:r,inline:i,inherit:a,gradient:o,span:s,textWrap:c,__staticSelector:l,vars:u,className:d,style:f,classNames:p,styles:m,unstyled:h,variant:g,mod:_,size:v,attributes:y,...b}=t,x=zr({name:[`Text`,l],props:t,classes:zf,className:d,style:f,classNames:p,styles:m,unstyled:h,attributes:y,vars:u,varsResolver:Hf});return(0,H.jsx)(G,{...x(`root`,{focusable:!0}),component:s?`span`:`p`,variant:g,mod:[{truncate:Bf(r),lineClamp:typeof n==`number`,inline:i,inherit:a},_],size:v,...b})});q.classes=zf,q.varsResolver=Hf,q.displayName=`@mantine/core/Text`;var[Uf,Wf]=wt(`AppShell was not found in tree`);function Gf({size:e,min:t,max:n,viewportMax:r}){let i=Math.min(n??1/0,r);return Math.max(Math.min(t??0,i),Math.min(e,i))}function Kf(e,t){return t!==void 0&&ed.axis===`horizontal`?window.innerWidth:window.innerHeight,[m,g]=(0,h.useState)(0),[_,v]=(0,h.useState)(void 0),y=()=>p()/u.scale,b=e=>{let t=e.getBoundingClientRect();return((d.axis===`horizontal`?t.width:t.height)-Xf(e,d.safeAreaVariable))/u.scale},x=t=>{let r=n.rootRef.current;if(!r)return;let i=V(t);r.style.setProperty(d.sizeVariable,i),n.resizeOffsets[e]&&r.style.setProperty(d.offsetVariable,i),n.mode===`static`&&d.gridWidthVariable&&r.style.setProperty(d.gridWidthVariable,i)},S=()=>{let e=n.rootRef.current;e&&(e.style.removeProperty(d.sizeVariable),e.style.removeProperty(d.offsetVariable),d.gridWidthVariable&&e.style.removeProperty(d.gridWidthVariable))},w=()=>{s.current?.abort(),s.current=null,o.current=null;let e=c.current;c.current=null,e&&(tp(`user-select`,e.userSelect),tp(`-webkit-user-select`,e.webkitUserSelect),tp(`cursor`,e.cursor))},T=()=>{r?.reportCollapse(e,Kf(a.current.startSize,f.collapseThreshold)),r?.endResize(e,null)},E=t=>{if(t.pointerId!==o.current)return;a.current.moved=!0;let n=Yf({section:e,deltaX:t.clientX-a.current.startX,deltaY:t.clientY-a.current.startY,dir:l})/u.scale,s=a.current.startSize+n,c=Gf({size:s,min:f.min,max:f.max,viewportMax:y()});a.current.size=c,x(c),i.current?.setAttribute(`aria-valuenow`,String(Math.round(c))),r?.previewResize(e,c),r?.reportCollapse(e,Kf(s,f.collapseThreshold))},D=t=>{t.pointerId===o.current&&(w(),a.current.moved?r?.endResize(e,a.current.size):r?.endResize(e,null))},O=e=>{e.pointerId===o.current&&(w(),S(),T())},k=e=>{e.key===`Escape`&&(e.preventDefault(),w(),S(),i.current?.setAttribute(`aria-valuenow`,String(Math.round(a.current.startSize))),T())},A=()=>{let t=r?.[e].size;if(t!==void 0)return t;let n=i.current?.parentElement;return n?b(n):0},j=t=>{r?.initCollapse(e,Kf(A(),f.collapseThreshold)),r?.reportCollapse(e,Kf(t,f.collapseThreshold)),r?.endResize(e,Gf({size:t,min:f.min,max:f.max,viewportMax:y()}))},M=t=>{let n=t.shiftKey?$f:Qf;if(t.key===`Home`){t.preventDefault(),j(f.min??0);return}if(t.key===`End`){t.preventDefault(),j(f.max??y());return}let r=ep[t.key];if(!r)return;let i=Yf({section:e,...r,dir:l});i!==0&&(t.preventDefault(),j(A()+i*n))},N=()=>{S(),r?.[e].reset()},P=t=>{if(t.button!==0||s.current!==null)return;let n=i.current?.parentElement;if(!n)return;let l=b(n);a.current={startSize:l,startX:t.clientX,startY:t.clientY,size:l,moved:!1},o.current=t.pointerId,r?.initCollapse(e,Kf(l,f.collapseThreshold));let u=new AbortController;s.current=u;let{signal:p}=u;c.current={userSelect:document.body.style.getPropertyValue(`user-select`),webkitUserSelect:document.body.style.getPropertyValue(`-webkit-user-select`),cursor:document.body.style.getPropertyValue(`cursor`)},document.body.style.setProperty(`user-select`,`none`),document.body.style.setProperty(`-webkit-user-select`,`none`),document.body.style.setProperty(`cursor`,d.axis===`horizontal`?`col-resize`:`row-resize`),r?.startResize(e),document.addEventListener(`pointermove`,E,{signal:p}),document.addEventListener(`pointerup`,D,{signal:p}),document.addEventListener(`pointercancel`,O,{signal:p}),document.addEventListener(`keydown`,k,{signal:p})};if(C(()=>{r&&r.activeSection!==e&&S()},[r?.activeSection,r?.[e].size]),C(()=>{g(p());let e=()=>g(p());return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[d.axis]),C(()=>{r?.[e].size===void 0&&v(A())},[r?.[e].size,m]),C(()=>()=>{let e=s.current!==null;w(),S(),e&&T()},[]),!r?.[e].enabled)return null;let F=m/u.scale,ee=Math.min(f.max??F,F),I=r[e].size,te=I!==void 0&&m>0?Math.min(I,F):I??_;return(0,H.jsx)(G,{ref:i,role:`separator`,tabIndex:0,"aria-label":f.label??Zf[e],"aria-controls":t,"aria-orientation":d.orientation,"aria-valuemin":f.min??0,"aria-valuemax":Math.round(ee),"aria-valuenow":te===void 0?void 0:Math.round(te),onPointerDown:P,onKeyDown:M,onDoubleClick:N,mod:{section:e,orientation:d.orientation,active:r[e].active},...n.getStyles(`resizeHandle`)})}np.displayName=`@mantine/core/AppShellResizeHandle`;var rp={root:`m_89ab340`,navbar:`m_45252eee`,aside:`m_9cdde9a`,header:`m_3b16f56b`,main:`m_8983817`,footer:`m_3840c879`,section:`m_6dcfc7c7`,resizeHandle:`m_3b25945a`},ip=W(e=>{let{classNames:t,className:n,style:r,styles:i,unstyled:a,vars:o,withBorder:s,zIndex:c,mod:l,...u}=U(`AppShellAside`,null,e),d=Wf(),f=L(u.id);if(d.disabled)return null;let p=d.resize?.aside.enabled??!1,m=d.getStyles(`aside`,{className:tn({[Md.classNames.zeroRight]:d.offsetScrollbars},n),classNames:t,styles:i,style:r});if(!p)return(0,H.jsx)(G,{component:`aside`,mod:[{"with-border":s??d.withBorder},l],...m,...u,__vars:{"--app-shell-aside-z-index":`calc(${c??d.zIndex} + 1)`}});let{children:h,dangerouslySetInnerHTML:g,..._}=u;return(0,H.jsxs)(G,{component:`aside`,mod:[{"with-border":s??d.withBorder},l],...m,..._,__vars:{"--app-shell-aside-z-index":`calc(${c??d.zIndex} + 1)`},id:f,children:[g?(0,H.jsx)(`div`,{style:{display:`contents`},dangerouslySetInnerHTML:g}):h,(0,H.jsx)(np,{section:`aside`,sectionId:f})]})});ip.classes=rp,ip.displayName=`@mantine/core/AppShellAside`;var ap=W(e=>{let{classNames:t,className:n,style:r,styles:i,unstyled:a,vars:o,withBorder:s,zIndex:c,mod:l,...u}=U(`AppShellFooter`,null,e),d=Wf(),f=L(u.id);if(d.disabled)return null;let p=d.resize?.footer.enabled??!1,m=d.getStyles(`footer`,{className:tn({[Md.classNames.zeroRight]:d.offsetScrollbars},n),classNames:t,styles:i,style:r});if(!p)return(0,H.jsx)(G,{component:`footer`,mod:[{"with-border":s??d.withBorder},l],...m,...u,__vars:{"--app-shell-footer-z-index":(c??d.zIndex)?.toString()}});let{children:h,dangerouslySetInnerHTML:g,..._}=u;return(0,H.jsxs)(G,{component:`footer`,mod:[{"with-border":s??d.withBorder},l],...m,..._,__vars:{"--app-shell-footer-z-index":(c??d.zIndex)?.toString()},id:f,children:[g?(0,H.jsx)(`div`,{style:{display:`contents`},dangerouslySetInnerHTML:g}):h,(0,H.jsx)(np,{section:`footer`,sectionId:f})]})});ap.classes=rp,ap.displayName=`@mantine/core/AppShellFooter`;var op=W(e=>{let{classNames:t,className:n,style:r,styles:i,unstyled:a,vars:o,withBorder:s,zIndex:c,mod:l,...u}=U(`AppShellHeader`,null,e),d=Wf(),f=L(u.id);if(d.disabled)return null;let p=d.resize?.header.enabled??!1,m=d.getStyles(`header`,{className:tn({[Md.classNames.zeroRight]:d.offsetScrollbars},n),classNames:t,styles:i,style:r});if(!p)return(0,H.jsx)(G,{component:`header`,mod:[{"with-border":s??d.withBorder},l],...m,...u,__vars:{"--app-shell-header-z-index":(c??d.zIndex)?.toString()}});let{children:h,dangerouslySetInnerHTML:g,..._}=u;return(0,H.jsxs)(G,{component:`header`,mod:[{"with-border":s??d.withBorder},l],...m,..._,__vars:{"--app-shell-header-z-index":(c??d.zIndex)?.toString()},id:f,children:[g?(0,H.jsx)(`div`,{style:{display:`contents`},dangerouslySetInnerHTML:g}):h,(0,H.jsx)(np,{section:`header`,sectionId:f})]})});op.classes=rp,op.displayName=`@mantine/core/AppShellHeader`;var sp=W(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=U(`AppShellMain`,null,e),s=Wf();return(0,H.jsx)(G,{component:`main`,...s.getStyles(`main`,{className:n,style:r,classNames:t,styles:i}),...o})});sp.classes=rp,sp.displayName=`@mantine/core/AppShellMain`;var cp=W(e=>{let{classNames:t,className:n,style:r,styles:i,unstyled:a,vars:o,withBorder:s,zIndex:c,mod:l,...u}=U(`AppShellNavbar`,null,e),d=Wf(),f=L(u.id);if(d.disabled)return null;let p=d.resize?.navbar.enabled??!1,m=d.getStyles(`navbar`,{className:n,classNames:t,styles:i,style:r});if(!p)return(0,H.jsx)(G,{component:`nav`,mod:[{"with-border":s??d.withBorder},l],...m,...u,__vars:{"--app-shell-navbar-z-index":`calc(${c??d.zIndex} + 1)`}});let{children:h,dangerouslySetInnerHTML:g,..._}=u;return(0,H.jsxs)(G,{component:`nav`,mod:[{"with-border":s??d.withBorder},l],...m,..._,__vars:{"--app-shell-navbar-z-index":`calc(${c??d.zIndex} + 1)`},id:f,children:[g?(0,H.jsx)(`div`,{style:{display:`contents`},dangerouslySetInnerHTML:g}):h,(0,H.jsx)(np,{section:`navbar`,sectionId:f})]})});cp.classes=rp,cp.displayName=`@mantine/core/AppShellNavbar`;var lp=Si(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,grow:o,mod:s,...c}=U(`AppShellSection`,null,e),l=Wf();return(0,H.jsx)(G,{mod:[{grow:o},s],...l.getStyles(`section`,{className:n,style:r,classNames:t,styles:i}),...c})});lp.classes=rp,lp.displayName=`@mantine/core/AppShellSection`;function up(e){return typeof e==`object`?e.base:e}function dp(e,t){return`min(${V(e)}, ${t===`horizontal`?`100vw`:`100dvh`})`}function fp(e){let t=typeof e==`object`&&!!e&&e.base!==void 0&&Object.keys(e).length===1;return typeof e==`number`||typeof e==`string`||t}function pp(e){return!(typeof e!=`object`||!e||Object.keys(e).length===1&&`base`in e)}function mp({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,aside:r,theme:i,mode:a,resizedSize:o,resizable:s}){let c=r?.width,l=`translateX(var(--app-shell-aside-width))`,u=`translateX(calc(var(--app-shell-aside-width) * -1))`;if(r?.breakpoint!==void 0&&!r?.collapsed?.mobile&&(n[r?.breakpoint]=n[r?.breakpoint]||{},a===`fixed`?(n[r?.breakpoint][`--app-shell-aside-width`]=`100%`,n[r?.breakpoint][`--app-shell-aside-offset`]=`0px`):(n[r?.breakpoint][`--app-shell-aside-width`]=`0px`,n[r?.breakpoint][`--app-shell-aside-offset`]=`0px`),s&&(n[r.breakpoint][`--app-shell-aside-resize-handle-display`]=`none`)),o!==void 0){let t=dp(o,`horizontal`);e[`--app-shell-aside-width`]=t,e[`--app-shell-aside-offset`]=t,a===`static`&&(e[`--app-shell-aside-grid-width`]=t)}else{if(fp(c)){let t=V(up(c));e[`--app-shell-aside-width`]=t,e[`--app-shell-aside-offset`]=t}pp(c)&&(c.base!==void 0&&(e[`--app-shell-aside-width`]=V(c.base),e[`--app-shell-aside-offset`]=V(c.base)),ft(c).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-aside-width`]=V(c[e]),t[e][`--app-shell-aside-offset`]=V(c[e]))}))}if(r?.breakpoint!==void 0&&a===`static`&&(t[r.breakpoint]=t[r.breakpoint]||{},t[r.breakpoint][`--app-shell-aside-position`]=`sticky`,t[r.breakpoint][`--app-shell-aside-grid-row`]=`2`,t[r.breakpoint][`--app-shell-aside-grid-column`]=`3`,t[r.breakpoint][`--app-shell-main-column-end`]=`3`),r?.collapsed?.desktop){let e=r.breakpoint;t[e]=t[e]||{},t[e][`--app-shell-aside-transform`]=l,t[e][`--app-shell-aside-transform-rtl`]=u,a===`fixed`?t[e][`--app-shell-aside-offset`]=`0px !important`:(t[e][`--app-shell-aside-width`]=`0px`,t[e][`--app-shell-aside-display`]=`none`,t[e][`--app-shell-main-column-end`]=`-1`),t[e][`--app-shell-aside-scroll-locked-visibility`]=`hidden`,s&&(t[e][`--app-shell-aside-resize-handle-display`]=`none`)}if(r?.collapsed?.mobile){let e=Ht(r.breakpoint,i.breakpoints)-.1;n[e]=n[e]||{},a===`fixed`?(n[e][`--app-shell-aside-width`]=`100%`,n[e][`--app-shell-aside-offset`]=`0px`):n[e][`--app-shell-aside-width`]=`0px`,n[e][`--app-shell-aside-transform`]=l,n[e][`--app-shell-aside-transform-rtl`]=u,n[e][`--app-shell-aside-scroll-locked-visibility`]=`hidden`,s&&(n[e][`--app-shell-aside-resize-handle-display`]=`none`)}}function hp({baseStyles:e,minMediaStyles:t,footer:n,mode:r,resizedSize:i,resizable:a}){let o=n?.height,s=r===`static`?!0:n?.offset??!0;if(r===`static`&&n&&(e[`--app-shell-footer-position`]=`sticky`,e[`--app-shell-footer-grid-column`]=`1 / -1`,e[`--app-shell-footer-grid-row`]=`3`),i!==void 0){let t=dp(i,`vertical`);e[`--app-shell-footer-height`]=t,s&&(e[`--app-shell-footer-offset`]=t)}else{if(fp(o)){let t=V(up(o));e[`--app-shell-footer-height`]=t,s&&(e[`--app-shell-footer-offset`]=t)}pp(o)&&(o.base!==void 0&&(e[`--app-shell-footer-height`]=V(o.base),s&&(e[`--app-shell-footer-offset`]=V(o.base))),ft(o).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-footer-height`]=V(o[e]),s&&(t[e][`--app-shell-footer-offset`]=V(o[e])))}))}n?.collapsed&&(e[`--app-shell-footer-transform`]=`translateY(var(--app-shell-footer-height))`,r===`fixed`&&(e[`--app-shell-footer-offset`]=`0px !important`),a&&(e[`--app-shell-footer-resize-handle-display`]=`none`))}function gp({baseStyles:e,minMediaStyles:t,header:n,mode:r,resizedSize:i,resizable:a}){let o=n?.height,s=r===`static`?!0:n?.offset??!0;if(r===`static`&&n&&(e[`--app-shell-header-position`]=`sticky`,e[`--app-shell-header-grid-column`]=`1 / -1`,e[`--app-shell-header-grid-row`]=`1`),i!==void 0){let t=dp(i,`vertical`);e[`--app-shell-header-height`]=t,s&&(e[`--app-shell-header-offset`]=t)}else{if(fp(o)){let t=V(up(o));e[`--app-shell-header-height`]=t,s&&(e[`--app-shell-header-offset`]=t)}pp(o)&&(o.base!==void 0&&(e[`--app-shell-header-height`]=V(o.base),s&&(e[`--app-shell-header-offset`]=V(o.base))),ft(o).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-header-height`]=V(o[e]),s&&(t[e][`--app-shell-header-offset`]=V(o[e])))}))}n?.collapsed&&(e[`--app-shell-header-transform`]=`translateY(calc(var(--app-shell-header-height) * -1))`,r===`fixed`&&(e[`--app-shell-header-offset`]=`0px !important`),a&&(e[`--app-shell-header-resize-handle-display`]=`none`))}function _p({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,navbar:r,theme:i,mode:a,resizedSize:o,resizable:s}){let c=r?.width,l=`translateX(calc(var(--app-shell-navbar-width) * -1))`,u=`translateX(var(--app-shell-navbar-width))`;if(r?.breakpoint!==void 0&&!r?.collapsed?.mobile&&(n[r?.breakpoint]=n[r?.breakpoint]||{},n[r?.breakpoint][`--app-shell-navbar-offset`]=`0px`,n[r?.breakpoint][`--app-shell-navbar-width`]=`100%`,a===`static`&&(n[r?.breakpoint][`--app-shell-navbar-grid-width`]=`0px`),s&&(n[r.breakpoint][`--app-shell-navbar-resize-handle-display`]=`none`)),o!==void 0){let t=dp(o,`horizontal`);e[`--app-shell-navbar-width`]=t,e[`--app-shell-navbar-offset`]=t,a===`static`&&(e[`--app-shell-navbar-grid-width`]=t)}else{if(fp(c)){let t=V(up(c));e[`--app-shell-navbar-width`]=t,e[`--app-shell-navbar-offset`]=t,a===`static`&&(e[`--app-shell-navbar-grid-width`]=t)}pp(c)&&(c.base!==void 0&&(e[`--app-shell-navbar-width`]=V(c.base),e[`--app-shell-navbar-offset`]=V(c.base),a===`static`&&(e[`--app-shell-navbar-grid-width`]=V(c.base))),ft(c).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-navbar-width`]=V(c[e]),t[e][`--app-shell-navbar-offset`]=V(c[e]),a===`static`&&(t[e][`--app-shell-navbar-grid-width`]=V(c[e])))}))}if(r?.breakpoint!==void 0&&a===`static`&&(t[r.breakpoint]=t[r.breakpoint]||{},t[r.breakpoint][`--app-shell-navbar-position`]=`sticky`,t[r.breakpoint][`--app-shell-navbar-grid-row`]=`2`,t[r.breakpoint][`--app-shell-navbar-grid-column`]=`1`,t[r.breakpoint][`--app-shell-main-column-start`]=`2`),r?.collapsed?.desktop){let e=r.breakpoint;t[e]=t[e]||{},t[e][`--app-shell-navbar-transform`]=l,t[e][`--app-shell-navbar-transform-rtl`]=u,a===`fixed`?t[e][`--app-shell-navbar-offset`]=`0px !important`:(t[e][`--app-shell-navbar-width`]=`0px`,t[e][`--app-shell-navbar-display`]=`none`,t[e][`--app-shell-main-column-start`]=`1`),s&&(t[e][`--app-shell-navbar-resize-handle-display`]=`none`)}if(r?.collapsed?.mobile){let e=Ht(r.breakpoint,i.breakpoints)-.1;n[e]=n[e]||{},n[e][`--app-shell-navbar-width`]=`100%`,n[e][`--app-shell-navbar-offset`]=`0px`,a===`static`&&(n[e][`--app-shell-navbar-grid-width`]=`0px`),n[e][`--app-shell-navbar-transform`]=l,n[e][`--app-shell-navbar-transform-rtl`]=u,s&&(n[e][`--app-shell-navbar-resize-handle-display`]=`none`)}}function vp(e){return Number(e)===0?`0px`:It(e)}function yp({padding:e,baseStyles:t,minMediaStyles:n}){fp(e)&&(t[`--app-shell-padding`]=vp(up(e))),pp(e)&&(e.base&&(t[`--app-shell-padding`]=vp(e.base)),ft(e).forEach(t=>{t!==`base`&&(n[t]=n[t]||{},n[t][`--app-shell-padding`]=vp(e[t]))}))}function bp({navbar:e,header:t,footer:n,aside:r,padding:i,theme:a,mode:o,resize:s}){let c={},l={},u={};o===`static`&&(u[`--app-shell-main-grid-column`]=`1 / -1`,u[`--app-shell-main-grid-row`]=`2`),_p({baseStyles:u,minMediaStyles:c,maxMediaStyles:l,navbar:e,theme:a,mode:o,resizedSize:s?.sizes.navbar,resizable:s?.enabled.navbar}),mp({baseStyles:u,minMediaStyles:c,maxMediaStyles:l,aside:r,theme:a,mode:o,resizedSize:s?.sizes.aside,resizable:s?.enabled.aside}),gp({baseStyles:u,minMediaStyles:c,header:t,mode:o,resizedSize:s?.sizes.header,resizable:s?.enabled.header}),hp({baseStyles:u,minMediaStyles:c,footer:n,mode:o,resizedSize:s?.sizes.footer,resizable:s?.enabled.footer}),yp({baseStyles:u,minMediaStyles:c,padding:i});let d=Ut(ft(c),a.breakpoints).map(e=>({query:`(min-width: ${bt(e.px)})`,styles:c[e.value]})),f=Ut(ft(l),a.breakpoints).map(e=>({query:`(max-width: ${bt(e.px)})`,styles:l[e.value]}));return{baseStyles:u,media:[...d,...f]}}function xp({navbar:e,header:t,aside:n,footer:r,padding:i,mode:a,selector:o,resize:s}){let c=cr(),l=Fn(),{media:u,baseStyles:d}=bp({navbar:e,header:t,footer:r,aside:n,padding:i,theme:c,mode:a,resize:s});return(0,H.jsx)(Wr,{media:u,styles:d,selector:o||l.cssVariablesSelector})}function Sp(e){return e>=128||e===45||e===95||e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function Cp(e){return e>=48&&e<=57}function wp(e){let t=``;for(let n=0;n=1&&r<=31||r===127||n===0&&Cp(r)||n===1&&Cp(r)&&e.charCodeAt(0)===45?t+=`\\${r.toString(16)} `:n===0&&e.length===1&&r===45?t+=`\\${i}`:Sp(r)?t+=i:t+=`\\${i}`}return t}function Tp({transitionDuration:e,disabled:t,resizeKey:n}){let[r,i]=(0,h.useState)(!0),[a,o]=(0,h.useState)({key:n,active:!1}),s=(0,h.useRef)(-1),c=(0,h.useRef)(-1);return a.key!==n&&o({key:n,active:!0}),(0,h.useEffect)(()=>{if(!a.active)return;let t=window.setTimeout(()=>(0,h.startTransition)(()=>{o(e=>({...e,active:!1}))}),e||0);return()=>window.clearTimeout(t)},[a,e]),ne(`resize`,()=>{i(!0),clearTimeout(s.current),s.current=window.setTimeout(()=>(0,h.startTransition)(()=>{i(!1)}),200)}),C(()=>{i(!0),clearTimeout(c.current),c.current=window.setTimeout(()=>(0,h.startTransition)(()=>{i(!1)}),e||0)},[t,e]),r||a.active}var Ep={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:`ease`,zIndex:Mt(`app`),mode:`fixed`},Dp=$t((e,{transitionDuration:t,transitionTimingFunction:n})=>({root:{"--app-shell-transition-duration":`${t}ms`,"--app-shell-transition-timing-function":n,"--app-shell-resize-handle-size":void 0}})),Op=W(e=>{let t=U(`AppShell`,Ep,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,navbar:c,withBorder:l,padding:u,transitionDuration:d,transitionTimingFunction:f,header:p,zIndex:m,layout:g,disabled:_,aside:v,footer:y,offsetScrollbars:b=!0,mode:x,mod:S,attributes:C,id:w,resize:T,ref:E,...D}=t,O=zr({name:`AppShell`,classes:rp,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:C,vars:s,varsResolver:Dp}),k=Tp({disabled:_,transitionDuration:d,resizeKey:T?Jf.map(e=>T.sizes[e]).join(`|`):void 0}),A=L(w),j=(0,h.useRef)(null),M=T?{sizes:T.sizes,enabled:{navbar:T.navbar.enabled,aside:T.aside.enabled,header:T.header.enabled,footer:T.footer.enabled}}:void 0,N={navbar:!0,aside:!0,header:x===`static`?!0:p?.offset??!0,footer:x===`static`?!0:y?.offset??!0};return(0,H.jsxs)(Uf,{value:{getStyles:O,withBorder:l,zIndex:m,disabled:_,offsetScrollbars:b,mode:x,resize:T,rootRef:j,resizeOffsets:N},children:[(0,H.jsx)(xp,{navbar:c,header:p,aside:v,footer:y,padding:u,mode:x,resize:M,selector:T||x===`static`?`#${wp(A)}`:void 0}),(0,H.jsx)(G,{...O(`root`),id:A,ref:ae(E,j),mod:[{resizing:k||T?.activeSection!=null,layout:g,disabled:_,mode:x},S],...D})]})});Op.classes=rp,Op.varsResolver=Dp,Op.displayName=`@mantine/core/AppShell`,Op.Navbar=cp,Op.Header=op,Op.Main=sp,Op.Aside=ip,Op.Footer=ap,Op.Section=lp;function kp(e){return typeof e==`string`?{value:e,label:e}:typeof e==`object`&&`value`in e&&!(`label`in e)?{value:e.value,label:`${e.value}`,disabled:e.disabled}:typeof e==`object`&&`group`in e?{group:e.group,items:e.items.map(e=>kp(e))}:typeof e==`number`||typeof e==`bigint`||typeof e==`boolean`?{value:e,label:`${e}`}:e}function Ap(e){return e?e.map(e=>kp(e)):[]}function jp(e){return e.reduce((e,t)=>`group`in t?{...e,...jp(t.items)}:(e[`${t.value}`]=t,e),{})}var Mp={dropdown:`m_88b62a41`,search:`m_985517d8`,options:`m_b2821a6e`,option:`m_92253aa5`,empty:`m_2530cd1d`,header:`m_858f94bd`,footer:`m_82b967cb`,group:`m_254f3e4f`,groupLabel:`m_2bb2e9e5`,chevron:`m_2943220b`,optionsDropdownOption:`m_390b5f4`,optionsDropdownCheckIcon:`m_8ee53fc2`,optionsDropdownCheckPlaceholder:`m_a530ee0a`},Np={error:null},Pp=$t((e,{size:t,color:n})=>({chevron:{"--combobox-chevron-size":Ft(t,`combobox-chevron-size`),"--combobox-chevron-color":n?bn(n,e):void 0}})),Fp=W(e=>{let t=U(`ComboboxChevron`,Np,e),{size:n,error:r,style:i,className:a,classNames:o,styles:s,unstyled:c,vars:l,attributes:u,mod:d,...f}=t,p=zr({name:`ComboboxChevron`,classes:Mp,props:t,style:i,className:a,classNames:o,styles:s,unstyled:c,vars:l,varsResolver:Pp,attributes:u,rootSelector:`chevron`});return(0,H.jsx)(G,{component:`svg`,...f,...p(`chevron`),size:n,viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,mod:[`combobox-chevron`,{error:r},d],children:(0,H.jsx)(`path`,{d:`M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})});Fp.classes=Mp,Fp.varsResolver=Pp,Fp.displayName=`@mantine/core/ComboboxChevron`;var[Ip,Lp]=wt(`Combobox component was not found in tree`);function Rp({onMouseDown:e,onClick:t,onClear:n,...r}){return(0,H.jsx)(hf.ClearButton,{tabIndex:-1,"aria-hidden":!0,...r,onMouseDown:t=>{t.preventDefault(),e?.(t)},onClick:e=>{n(),t?.(e)}})}Rp.displayName=`@mantine/core/ComboboxClearButton`;var zp=W(e=>{let{classNames:t,styles:n,className:r,style:i,hidden:a,...o}=U(`ComboboxDropdown`,null,e),s=Lp();return(0,H.jsx)(ql.Dropdown,{...o,role:`presentation`,"data-hidden":a||void 0,"data-floating-height":s.floatingHeight||void 0,...s.getStyles(`dropdown`,{className:r,style:i,classNames:t,styles:n})})});zp.classes=Mp,zp.displayName=`@mantine/core/ComboboxDropdown`;var Bp={refProp:`ref`},Vp=W(e=>{let{children:t,refProp:n,ref:r}=U(`ComboboxDropdownTarget`,Bp,e);if(Lp(),!Ct(t))throw Error(`Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);return(0,H.jsx)(ql.Target,{ref:r,refProp:n,children:t})});Vp.displayName=`@mantine/core/ComboboxDropdownTarget`;var Hp=W(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=U(`ComboboxEmpty`,null,e),s=Lp();return(0,H.jsx)(G,{...s.getStyles(`empty`,{className:n,classNames:t,styles:i,style:r}),...o})});Hp.classes=Mp,Hp.displayName=`@mantine/core/ComboboxEmpty`;function Up({onKeyDown:e,onClick:t,withKeyboardNavigation:n,withAriaAttributes:r,withExpandedAttribute:i,targetType:a,autoComplete:o}){let s=Lp(),[c,l]=(0,h.useState)(null),u=t=>{if(e?.(t),!s.readOnly&&n){if(t.nativeEvent.isComposing)return;if(t.nativeEvent.code===`ArrowDown`&&(t.preventDefault(),s.store.dropdownOpened?l(s.store.selectNextOption()):(s.store.openDropdown(`keyboard`),l(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex(`selected`,{scrollIntoView:!0}))),t.nativeEvent.code===`ArrowUp`&&(t.preventDefault(),s.store.dropdownOpened?l(s.store.selectPreviousOption()):(s.store.openDropdown(`keyboard`),l(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex(`selected`,{scrollIntoView:!0}))),t.nativeEvent.code===`Enter`||t.nativeEvent.code===`NumpadEnter`){if(t.nativeEvent.keyCode===229)return;let e=s.store.getSelectedOptionIndex();s.store.dropdownOpened&&e!==-1?(t.preventDefault(),s.store.clickSelectedOption()):a===`button`&&(t.preventDefault(),s.store.openDropdown(`keyboard`))}t.key===`Escape`&&s.store.closeDropdown(`keyboard`),t.nativeEvent.code===`Space`&&a===`button`&&(t.preventDefault(),s.store.toggleDropdown(`keyboard`))}},d=r?{...i?{role:`combobox`}:{},"aria-haspopup":`listbox`,"aria-expanded":i?!!(s.store.listId&&s.store.dropdownOpened):void 0,"aria-controls":s.store.dropdownOpened&&s.store.listId?s.store.listId:void 0,"aria-activedescendant":s.store.dropdownOpened&&c||void 0,autoComplete:o,"data-expanded":s.store.dropdownOpened||void 0,"data-mantine-stop-propagation":s.store.dropdownOpened||void 0}:{},f=e=>{a===`button`&&e.currentTarget.focus(),t?.(e)};return{...d,onKeyDown:u,onClick:f}}var Wp={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},Gp=W(e=>{let{children:t,refProp:n,withKeyboardNavigation:r,withAriaAttributes:i,withExpandedAttribute:a,targetType:o,autoComplete:s,ref:c,...l}=U(`ComboboxEventsTarget`,Wp,e),u=Qt(t);if(!u)throw Error(`Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let d=Lp(),f=Up({targetType:o,withAriaAttributes:i,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:u.props.onKeyDown,onClick:u.props.onClick,autoComplete:s});return(0,h.cloneElement)(u,{...f,...l,[n]:ae(c,d.store.targetRef,qt(u))})});Gp.displayName=`@mantine/core/ComboboxEventsTarget`;var Kp=W(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=U(`ComboboxFooter`,null,e),s=Lp();return(0,H.jsx)(G,{...s.getStyles(`footer`,{className:n,classNames:t,style:r,styles:i}),...o,onMouseDown:e=>{e.preventDefault()}})});Kp.classes=Mp,Kp.displayName=`@mantine/core/ComboboxFooter`;var qp=W(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,label:s,id:c,...l}=U(`ComboboxGroup`,null,e),u=Lp(),d=L(c),f=s!=null&&s!==!1&&s!==``;return(0,H.jsxs)(G,{role:`group`,"aria-labelledby":f?d:void 0,...u.getStyles(`group`,{className:n,classNames:t,style:r,styles:i}),...l,children:[f&&(0,H.jsx)(`div`,{id:d,...u.getStyles(`groupLabel`,{classNames:t,styles:i}),children:s}),o]})});qp.classes=Mp,qp.displayName=`@mantine/core/ComboboxGroup`;var Jp=W(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=U(`ComboboxHeader`,null,e),s=Lp();return(0,H.jsx)(G,{...s.getStyles(`header`,{className:n,classNames:t,style:r,styles:i}),...o,onMouseDown:e=>{e.preventDefault()}})});Jp.classes=Mp,Jp.displayName=`@mantine/core/ComboboxHeader`;function Yp({value:e,valuesDivider:t=`,`,...n}){return(0,H.jsx)(`input`,{type:`hidden`,value:Array.isArray(e)?e.join(t):e?`${e}`:``,...n})}Yp.displayName=`@mantine/core/ComboboxHiddenInput`;var Xp=W(e=>{let t=U(`ComboboxOption`,null,e),{classNames:n,className:r,style:i,styles:a,vars:o,onClick:s,id:c,active:l,onMouseDown:u,onMouseOver:d,disabled:f,selected:p,mod:m,...g}=t,_=Lp(),v=(0,h.useId)(),y=c||v;return(0,H.jsx)(G,{..._.getStyles(`option`,{className:r,classNames:n,styles:a,style:i}),"aria-disabled":f||void 0,...g,id:y,mod:[`combobox-option`,{"combobox-active":l,"combobox-disabled":f,"combobox-selected":p},m],role:`option`,onClick:e=>{f?e.preventDefault():(_.onOptionSubmit?.(t.value,t),s?.(e))},onMouseDown:e=>{e.preventDefault(),u?.(e)},onMouseOver:e=>{_.resetSelectionOnOptionHover&&_.store.resetSelectedOption(),d?.(e)}})});Xp.classes=Mp,Xp.displayName=`@mantine/core/ComboboxOption`;var Zp=W(e=>{let{classNames:t,className:n,style:r,styles:i,id:a,onMouseDown:o,labelledBy:s,...c}=U(`ComboboxOptions`,null,e),l=Lp(),u=L(a);return(0,h.useEffect)(()=>{l.store.setListId(u)},[u]),(0,H.jsx)(G,{...l.getStyles(`options`,{className:n,style:r,classNames:t,styles:i}),...c,id:u,role:`listbox`,"aria-labelledby":s,onMouseDown:e=>{e.preventDefault(),o?.(e)}})});Zp.classes=Mp,Zp.displayName=`@mantine/core/ComboboxOptions`;var Qp={withAriaAttributes:!0,withKeyboardNavigation:!0},$p=W(e=>{let{classNames:t,styles:n,unstyled:r,vars:i,withAriaAttributes:a,onKeyDown:o,onClick:s,withKeyboardNavigation:c,size:l,ref:u,...d}=U(`ComboboxSearch`,Qp,e),f=Lp(),p=f.getStyles(`search`),m=Up({targetType:`input`,withAriaAttributes:a,withKeyboardNavigation:c,withExpandedAttribute:!1,onKeyDown:o,onClick:s,autoComplete:`off`});return(0,H.jsx)(hf,{ref:ae(u,f.store.searchRef),classNames:[{input:p.className},t],styles:[{input:p.style},n],size:l||f.size,...m,...d,__staticSelector:`Combobox`})});$p.classes=Mp,$p.displayName=`@mantine/core/ComboboxSearch`;var em={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},tm=W(e=>{let{children:t,refProp:n,withKeyboardNavigation:r,withAriaAttributes:i,withExpandedAttribute:a,targetType:o,autoComplete:s,ref:c,...l}=U(`ComboboxTarget`,em,e),u=Qt(t);if(!u)throw Error(`Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let d=Lp(),f=Up({targetType:o,withAriaAttributes:i,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:u.props.onKeyDown,onClick:u.props.onClick,autoComplete:s}),p=(0,h.cloneElement)(u,{...f,...l});return(0,H.jsx)(ql.Target,{refProp:n,ref:ae(c,d.store.targetRef),children:p})});tm.displayName=`@mantine/core/ComboboxTarget`;function nm(e,t,n){for(let n=e-1;n>=0;--n)if(!t[n].hasAttribute(`data-combobox-disabled`))return n;if(n){for(let e=t.length-1;e>-1;--e)if(!t[e].hasAttribute(`data-combobox-disabled`))return e}return e}function rm(e,t,n){for(let n=e+1;n{s||(c(!0),i?.(e))},[c,i,s]),v=(0,h.useCallback)((e=`unknown`)=>{s&&(c(!1),r?.(e))},[c,r,s]),y=(0,h.useCallback)((e=`unknown`)=>{s?v(e):_(e)},[v,_,s]),b=(0,h.useCallback)(()=>{let e=Zt(f.current);Yt(`#${l.current} [data-combobox-selected]`,e)?.removeAttribute(`data-combobox-selected`)},[]),x=(0,h.useCallback)(e=>{let t=Zt(f.current),n=Yt(`#${l.current}`,t),r=n?Xt(`[data-combobox-option]`,n):null;if(!r)return null;let i=e>=r.length?0:e<0?r.length-1:e;return u.current=i,r?.[i]&&!r[i].hasAttribute(`data-combobox-disabled`)?(b(),r[i].setAttribute(`data-combobox-selected`,`true`),r[i].scrollIntoView({block:`nearest`,behavior:o}),r[i].id):null},[o,b]),S=(0,h.useCallback)(()=>{let e=Zt(f.current),t=Yt(`#${l.current} [data-combobox-active]`,e);if(t){let n=Xt(`#${l.current} [data-combobox-option]`,e).findIndex(e=>e===t);return x(n)}return x(0)},[x]),C=(0,h.useCallback)(()=>{let e=Zt(f.current),t=Xt(`#${l.current} [data-combobox-option]`,e);return x(rm(u.current,t,a))},[x,a]),w=(0,h.useCallback)(()=>{let e=Zt(f.current),t=Xt(`#${l.current} [data-combobox-option]`,e);return x(nm(u.current,t,a))},[x,a]),T=(0,h.useCallback)(()=>{let e=Zt(f.current),t=Xt(`#${l.current} [data-combobox-option]`,e);return x(im(t))},[x]),E=(0,h.useCallback)((e=`selected`,t)=>{if(typeof e==`number`){u.current=e;let n=Zt(f.current),r=Xt(`#${l.current} [data-combobox-option]`,n);t?.scrollIntoView&&r[e]?.scrollIntoView({block:`nearest`,behavior:o})}else g.current=window.setTimeout(()=>{let n=Zt(f.current),r=Xt(`#${l.current} [data-combobox-option]`,n),i=r.findIndex(t=>t.hasAttribute(`data-combobox-${e}`));u.current=i,t?.scrollIntoView&&r[i]?.scrollIntoView({block:`nearest`,behavior:o})},0)},[]),D=(0,h.useCallback)(()=>{u.current=-1,b()},[b]),O=(0,h.useCallback)(()=>{let e=Zt(f.current);(Xt(`#${l.current} [data-combobox-option]`,e)?.[u.current])?.click()},[]),k=(0,h.useCallback)(e=>{l.current=e},[]),A=(0,h.useCallback)(()=>{p.current=window.setTimeout(()=>d.current?.focus(),0)},[]),j=(0,h.useCallback)(()=>{m.current=window.setTimeout(()=>f.current?.focus(),0)},[]),M=(0,h.useCallback)(()=>u.current,[]);return(0,h.useEffect)(()=>()=>{window.clearTimeout(p.current),window.clearTimeout(m.current),window.clearTimeout(g.current)},[]),{dropdownOpened:s,openDropdown:_,closeDropdown:v,toggleDropdown:y,selectedOptionIndex:u.current,getSelectedOptionIndex:M,selectOption:x,selectFirstOption:T,selectActiveOption:S,selectNextOption:C,selectPreviousOption:w,resetSelectedOption:D,updateSelectedOptionIndex:E,listId:l.current,setListId:k,clickSelectedOption:O,searchRef:d,focusSearchInput:A,targetRef:f,focusTarget:j}}var om={keepMounted:!0,keepMountedMode:`display-none`,withinPortal:!0,resetSelectionOnOptionHover:!1,width:`target`,transitionProps:{transition:`fade`,duration:0},size:`sm`},sm=$t((e,{size:t,dropdownPadding:n})=>({options:{"--combobox-option-fz":Rt(t),"--combobox-option-padding":Ft(t,`combobox-option-padding`)},dropdown:{"--combobox-padding":n===void 0?void 0:V(n),"--combobox-option-fz":Rt(t),"--combobox-option-padding":Ft(t,`combobox-option-padding`)}})),cm=e=>{let t=U(`Combobox`,om,e),{classNames:n,styles:r,unstyled:i,children:a,store:o,vars:s,onOptionSubmit:c,onClose:l,size:u,dropdownPadding:d,resetSelectionOnOptionHover:f,__staticSelector:p,readOnly:m,attributes:h,floatingHeight:g,middlewares:_,...v}=t,y=g===`viewport`?{..._,flip:!1,size:{...typeof _?.size==`object`?_.size:{},padding:typeof _?.size==`object`&&_.size.padding!==void 0?_.size.padding:10,apply:({availableHeight:e,availableWidth:t,elements:n,...r})=>{n.floating.style.setProperty(`--combobox-floating-max-height`,`${e}px`);let i=_?.size;typeof i==`object`&&i.apply?i.apply({availableHeight:e,availableWidth:t,elements:n,...r}):i&&Object.assign(n.floating.style,{maxWidth:`${t}px`,maxHeight:`${e}px`})}}}:_,b=am(),x=o||b,S=zr({name:p||`Combobox`,classes:Mp,props:t,classNames:n,styles:r,unstyled:i,attributes:h,vars:s,varsResolver:sm}),C=()=>{l?.(),x.closeDropdown()};return(0,H.jsx)(Ip,{value:{getStyles:S,store:x,onOptionSubmit:c,size:u,resetSelectionOnOptionHover:f,readOnly:m,floatingHeight:g},children:(0,H.jsx)(ql,{opened:x.dropdownOpened,...v,middlewares:y,onChange:e=>!e&&C(),withRoles:!1,unstyled:i,children:a})})};cm.extend=e=>e,cm.classes=Mp,cm.varsResolver=sm,cm.displayName=`@mantine/core/Combobox`,cm.Target=tm,cm.Dropdown=zp,cm.Options=Zp,cm.Option=Xp,cm.Search=$p,cm.Empty=Hp,cm.Chevron=Fp,cm.Footer=Kp,cm.Header=Jp,cm.EventsTarget=Gp,cm.DropdownTarget=Vp,cm.Group=qp,cm.ClearButton=Rp,cm.HiddenInput=Yp;function lm({size:e,style:t,...n}){let r=e===void 0?t:{width:V(e),height:V(e),...t};return(0,H.jsx)(`svg`,{viewBox:`0 0 10 7`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:r,"aria-hidden":!0,...n,children:(0,H.jsx)(`path`,{d:`M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}function um(e){return`group`in e}function dm({options:e,search:t,limit:n}){let r=t.trim().toLowerCase(),i=[];for(let a=0;a0)return!1;return!0}function pm(e,t=new Set){if(Array.isArray(e))for(let n of e)if(um(n))pm(n.items,t);else{if(n.value===void 0)throw Error(`[@mantine/core] Each option must have value property`);if(t.has(n.value))throw Error(`[@mantine/core] Duplicate options are not supported. Option with value "${n.value}" was provided more than once`);t.add(n.value)}}function mm(e,t){return Array.isArray(e)?e.includes(t):e===t}function hm({data:e,withCheckIcon:t,withAlignedLabels:n,value:r,checkIconPosition:i,unstyled:a,renderOption:o}){if(!um(e)){let s=mm(r,e.value),c=t&&(s?(0,H.jsx)(lm,{className:Mp.optionsDropdownCheckIcon}):n?(0,H.jsx)(`div`,{className:Mp.optionsDropdownCheckPlaceholder}):null),l=(0,H.jsxs)(H.Fragment,{children:[i===`left`&&c,(0,H.jsx)(`span`,{children:e.label}),i===`right`&&c]});return(0,H.jsx)(cm.Option,{value:e.value,disabled:e.disabled,className:tn({[Mp.optionsDropdownOption]:!a}),"data-reverse":i===`right`||void 0,"data-checked":s||void 0,"aria-selected":s,active:s,children:typeof o==`function`?o({option:e,checked:s}):l})}let s=e.items.map(e=>(0,H.jsx)(hm,{data:e,value:r,unstyled:a,withCheckIcon:t,withAlignedLabels:n,checkIconPosition:i,renderOption:o},`${e.value}`));return(0,H.jsx)(cm.Group,{label:e.group,children:s})}function gm({data:e,hidden:t,hiddenWhenEmpty:n,filter:r,search:i,limit:a,maxDropdownHeight:o,floatingHeight:s,withScrollArea:c=!0,filterOptions:l=!0,withCheckIcon:u=!1,withAlignedLabels:d=!1,value:f,checkIconPosition:p,nothingFoundMessage:m,unstyled:h,labelId:g,renderOption:_,scrollAreaProps:v,"aria-label":y}){let b=Lp();pm(e);let x=typeof i==`string`?(r||dm)({options:e,search:l?i:``,limit:a??1/0}):e,S=fm(x),C=x.map((e,t)=>(0,H.jsx)(hm,{data:e,withCheckIcon:u,withAlignedLabels:d,value:f,checkIconPosition:p,unstyled:h,renderOption:_},um(e)?`group-${typeof e.group==`string`?e.group:t}`:`${e.value}`));return(0,H.jsx)(cm.Dropdown,{hidden:t||n&&S,"data-composed":!0,children:(0,H.jsxs)(cm.Options,{labelledBy:g,"aria-label":y,children:[c?(0,H.jsx)(Yc.Autosize,{mah:(s??b.floatingHeight)===`viewport`?`var(--combobox-floating-options-max-height)`:o??220,type:`scroll`,scrollbarSize:`var(--combobox-padding)`,offsetScrollbars:`y`,...v,children:C}):C,S&&m&&(0,H.jsx)(cm.Empty,{children:m})]})})}function _m({id:e,label:t,labelProps:n,inputWrapperOrder:r}){if(t&&(!r||r.includes(`label`)))return n?.id||`${e}-label`}var vm={root:`m_347db0ec`,"root--dot":`m_fbd81e3d`,label:`m_5add502a`,section:`m_91fdda9b`},ym=$t((e,{radius:t,color:n,gradient:r,variant:i,size:a,autoContrast:o,circle:s})=>{let c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:o});return{root:{"--badge-height":Ft(a,`badge-height`),"--badge-padding-x":Ft(a,`badge-padding-x`),"--badge-fz":Ft(a,`badge-fz`),"--badge-radius":s||t===void 0?void 0:Lt(t),"--badge-bg":n||i?c.background:void 0,"--badge-color":n||i?c.color:void 0,"--badge-bd":n||i?c.border:void 0,"--badge-dot-color":i===`dot`?bn(n,e):void 0}}}),bm=Si(e=>{let t=U(`Badge`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,radius:c,color:l,gradient:u,leftSection:d,rightSection:f,children:p,variant:m,fullWidth:h,autoContrast:g,circle:_,mod:v,attributes:y,...b}=t,x=zr({name:`Badge`,props:t,classes:vm,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:y,vars:s,varsResolver:ym});return(0,H.jsxs)(G,{variant:m,mod:[{block:h,circle:_,"with-right-section":!!f,"with-left-section":!!d},v],...x(`root`,{variant:m}),...b,children:[d&&(0,H.jsx)(`span`,{...x(`section`),"data-position":`left`,children:d}),(0,H.jsx)(`span`,{...x(`label`),children:p}),f&&(0,H.jsx)(`span`,{...x(`section`),"data-position":`right`,children:f})]})});bm.classes=vm,bm.varsResolver=ym,bm.displayName=`@mantine/core/Badge`;var xm={root:`m_77c9d27d`,inner:`m_80f1301b`,label:`m_811560b9`,section:`m_a74036a`,loader:`m_a25b86ee`,group:`m_80d6d844`,groupSection:`m_70be2a01`},Sm={orientation:`horizontal`},Cm=$t((e,{borderWidth:t})=>({group:{"--button-border-width":V(t)}})),wm=W(e=>{let t=U(`ButtonGroup`,Sm,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,orientation:s,vars:c,borderWidth:l,mod:u,attributes:d,...f}=U(`ButtonGroup`,Sm,e),p=zr({name:`ButtonGroup`,props:t,classes:xm,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:c,varsResolver:Cm,rootSelector:`group`});return(0,H.jsx)(G,{...p(`group`),mod:[{orientation:s},u],role:`group`,...f})});wm.classes=xm,wm.varsResolver=Cm,wm.displayName=`@mantine/core/ButtonGroup`;var Tm=$t((e,{radius:t,color:n,gradient:r,variant:i,autoContrast:a,size:o})=>{let s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:a});return{groupSection:{"--section-height":Ft(o,`section-height`),"--section-padding-x":Ft(o,`section-padding-x`),"--section-fz":o?.includes(`compact`)?Rt(o.replace(`compact-`,``)):Rt(o),"--section-radius":t===void 0?void 0:Lt(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),Em=W(e=>{let t=U(`ButtonGroupSection`,null,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,vars:s,gradient:c,radius:l,autoContrast:u,attributes:d,...f}=t,p=zr({name:`ButtonGroupSection`,props:t,classes:xm,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:Tm,rootSelector:`groupSection`});return(0,H.jsx)(G,{...p(`groupSection`),...f})});Em.classes=xm,Em.varsResolver=Tm,Em.displayName=`@mantine/core/ButtonGroupSection`;var Dm={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${V(1)}))`},out:{opacity:0,transform:`translate(-50%, -200%)`},common:{transformOrigin:`center`},transitionProperty:`transform, opacity`},Om=$t((e,{radius:t,color:n,gradient:r,variant:i,size:a,justify:o,autoContrast:s})=>{let c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:s});return{root:{"--button-justify":o,"--button-height":Ft(a,`button-height`),"--button-padding-x":Ft(a,`button-padding-x`),"--button-fz":a?.includes(`compact`)?Rt(a.replace(`compact-`,``)):Rt(a),"--button-radius":t===void 0?void 0:Lt(t),"--button-bg":n||i?c.background:void 0,"--button-hover":n||i?c.hover:void 0,"--button-color":c.color,"--button-bd":n||i?c.border:void 0,"--button-hover-color":n||i?c.hoverColor:void 0}}}),km=Si(e=>{let t=U(`Button`,null,e),{style:n,vars:r,className:i,color:a,disabled:o,children:s,leftSection:c,rightSection:l,fullWidth:u,variant:d,radius:f,loading:p,loaderProps:m,gradient:h,classNames:g,styles:_,unstyled:v,"data-disabled":y,autoContrast:b,mod:x,attributes:S,...C}=t,w=zr({name:`Button`,props:t,classes:xm,className:i,style:n,classNames:g,styles:_,unstyled:v,attributes:S,vars:r,varsResolver:Om}),T=!!c,E=!!l;return(0,H.jsxs)($c,{...w(`root`,{active:!o&&!p&&!y}),unstyled:v,variant:d,disabled:o||p,mod:[{disabled:o||y,loading:p,block:u,"with-left-section":T,"with-right-section":E},x],...C,children:[typeof p==`boolean`&&(0,H.jsx)(kl,{mounted:p,transition:Dm,duration:150,children:e=>(0,H.jsx)(G,{component:`span`,...w(`loader`,{style:e}),"aria-hidden":!0,children:(0,H.jsx)(tu,{color:`var(--button-color)`,size:`calc(var(--button-height) / 1.8)`,...m})})}),(0,H.jsxs)(`span`,{...w(`inner`),children:[c&&(0,H.jsx)(G,{component:`span`,...w(`section`),mod:{position:`left`},children:c}),(0,H.jsx)(G,{component:`span`,mod:{loading:p},...w(`label`),children:s}),l&&(0,H.jsx)(G,{component:`span`,...w(`section`),mod:{position:`right`},children:l})]})]})});km.classes=xm,km.varsResolver=Om,km.displayName=`@mantine/core/Button`,km.Group=wm,km.GroupSection=Em;var[Am,jm]=wt(`Card component was not found in tree`),Mm={root:`m_e615b15f`,section:`m_599a2148`},Nm=Si(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,withBorder:o,inheritPadding:s,mod:c,...l}=U(`CardSection`,null,e),u=jm();return(0,H.jsx)(G,{mod:[{"with-border":o,"inherit-padding":s},c],...u.getStyles(`section`,{className:n,style:r,styles:i,classNames:t}),...l})});Nm.classes=Mm,Nm.displayName=`@mantine/core/CardSection`;var Pm=$t((e,{padding:t})=>({root:{"--card-padding":It(t)}})),Fm={orientation:`vertical`},Im=Si(e=>{let t=U(`Card`,Fm,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,padding:l,attributes:u,orientation:d,...f}=t,p=zr({name:`Card`,props:t,classes:Mm,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s,varsResolver:Pm}),m=h.Children.toArray(c),g=m.map((e,t)=>typeof e==`object`&&e&&`type`in e&&(e.type===Nm||e.type?.displayName===`@mantine/core/CardSection`)?(0,h.cloneElement)(e,{"data-orientation":d,"data-first-section":t===0||void 0,"data-last-section":t===m.length-1||void 0}):e);return(0,H.jsx)(Am,{value:{getStyles:p},children:(0,H.jsx)(il,{unstyled:o,"data-orientation":d,...p(`root`),...f,children:g})})});Im.classes=Mm,Im.varsResolver=Pm,Im.displayName=`@mantine/core/Card`,Im.Section=Nm;function Lm(e){let t=e.currentTarget;return Zt(t).activeElement!==t}var Rm={root:`m_de3d2490`,colorOverlay:`m_862f3d1b`,shadowOverlay:`m_98ae7f22`,alphaOverlay:`m_95709ac0`,childrenOverlay:`m_93e74e3`},zm={withShadow:!0},Bm=$t((e,{radius:t,size:n})=>({root:{"--cs-radius":t===void 0?void 0:Lt(t),"--cs-size":V(n)}})),Vm=Si(e=>{let t=U(`ColorSwatch`,zm,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:c,radius:l,withShadow:u,children:d,attributes:f,...p}=U(`ColorSwatch`,zm,t),m=zr({name:`ColorSwatch`,props:t,classes:Rm,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:Bm});return(0,H.jsxs)(G,{...m(`root`,{focusable:!0}),...p,children:[(0,H.jsx)(`span`,{...m(`alphaOverlay`)}),u&&(0,H.jsx)(`span`,{...m(`shadowOverlay`)}),(0,H.jsx)(`span`,{...m(`colorOverlay`,{style:{backgroundColor:c}})}),(0,H.jsx)(`span`,{...m(`childrenOverlay`),children:d})]})});Vm.classes=Rm,Vm.varsResolver=Bm,Vm.displayName=`@mantine/core/ColorSwatch`;var Hm={root:`m_3eebeb36`,label:`m_9e365f20`},Um={orientation:`horizontal`},Wm=$t((e,{color:t,variant:n,size:r})=>({root:{"--divider-color":t?bn(t,e):void 0,"--divider-border-style":n,"--divider-size":Ft(r,`divider-size`)}})),Gm=W(e=>{let t=U(`Divider`,Um,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:c,orientation:l,label:u,labelPosition:d,mod:f,attributes:p,...m}=t,h=zr({name:`Divider`,classes:Hm,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:s,varsResolver:Wm});return(0,H.jsx)(G,{mod:[{orientation:l,withLabel:!!u},f],role:`separator`,"aria-orientation":l,...h(`root`),...m,children:u&&(0,H.jsx)(G,{component:`span`,mod:{position:d},...h(`label`),children:u})})});Gm.classes=Hm,Gm.varsResolver=Wm,Gm.displayName=`@mantine/core/Divider`;function Km({color:e,theme:t,defaultShade:n}){let r=yn({color:e,theme:t});return r.isThemeColor?r.shade===void 0?`var(--mantine-color-${r.color}-${n})`:`var(${r.variable})`:e}var qm={root:`m_bcb3f3c2`},Jm={color:`yellow`},Ym=$t((e,{color:t})=>({root:{"--mark-bg-dark":Km({color:t,theme:e,defaultShade:5}),"--mark-bg-light":Km({color:t,theme:e,defaultShade:2})}})),Xm=W(e=>{let t=U(`Mark`,Jm,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:c,variant:l,attributes:u,...d}=t,f=zr({name:`Mark`,props:t,className:r,style:i,classes:qm,classNames:n,styles:a,unstyled:o,attributes:u,vars:s,varsResolver:Ym});return(0,H.jsx)(G,{component:`mark`,variant:l,...f(`root`),...d})});Xm.classes=qm,Xm.varsResolver=Ym,Xm.displayName=`@mantine/core/Mark`;function Zm(e){return e.replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`)}function Qm(e){return e.normalize(`NFD`).replace(/\p{M}/gu,``)}function $m(e){let t=``,n=[],r=0;for(;ra&&i.push({chunk:e.slice(a,c),highlighted:!1}),i.push({chunk:e.slice(c,l),highlighted:!0}),a=l,o[0].length===0&&(t.lastIndex+=1)}return ae)}function th(e,t,n={}){if(t==null)return[{chunk:e,highlighted:!1}];let{wholeWord:r=!1,caseInsensitive:i=!0,accentInsensitive:a=!0}=n,o=e=>a?Qm(Zm(e)):Zm(e),s=Array.isArray(t)?t.map(o):o(t);if(!(Array.isArray(s)?s.filter(e=>e.trim().length>0).length>0:s.trim()!==``))return[{chunk:e,highlighted:!1}];let c=typeof s==`string`?s.trim():s.filter(e=>e.trim().length!==0).map(e=>e.trim()).sort((e,t)=>t.length-e.length).join(`|`),l=r?`(?({chunk:e,highlighted:t%2==1})).filter(({chunk:e})=>e)}var nh={color:`yellow`,wholeWord:!1,caseInsensitive:!0,accentInsensitive:!0},rh=Si(e=>{let{unstyled:t,children:n,highlight:r,highlightStyles:i,color:a,wholeWord:o,caseInsensitive:s,accentInsensitive:c,...l}=U(`Highlight`,nh,e),u=Array.isArray(r)&&typeof r[0]==`object`,d=new Map,f=e=>{let t=e;return s&&(t=t.toLowerCase()),c&&(t=Qm(t)),t},p;p=u?r.map(e=>(e.color&&d.set(f(e.text),e.color),e.text)):Array.isArray(r)?r:[r];let m=th(n,p,{wholeWord:o,caseInsensitive:s,accentInsensitive:c});return(0,H.jsx)(q,{unstyled:t,...l,__staticSelector:`Highlight`,children:m.map(({chunk:e,highlighted:n},r)=>n?(0,H.jsx)(Xm,{unstyled:t,color:d.get(f(e))||a,style:i,"data-highlight":e,children:e},r):(0,H.jsx)(`span`,{children:e},r))})});rh.classes=q.classes,rh.displayName=`@mantine/core/Highlight`;function ih(e=`top-end`,t=0){let n={"--indicator-top":void 0,"--indicator-bottom":void 0,"--indicator-left":void 0,"--indicator-right":void 0,"--indicator-translate-x":void 0,"--indicator-translate-y":void 0},r=typeof t==`number`?t:t.x,i=typeof t==`number`?t:t.y,a=V(r),o=V(i),[s,c]=e.split(`-`);return s===`top`&&(n[`--indicator-top`]=o,n[`--indicator-translate-y`]=`-50%`),s===`middle`&&(n[`--indicator-top`]=`50%`,n[`--indicator-translate-y`]=`-50%`),s===`bottom`&&(n[`--indicator-bottom`]=o,n[`--indicator-translate-y`]=`50%`),c===`start`&&(n[`--indicator-left`]=a,n[`--indicator-translate-x`]=`-50%`),c===`center`&&(n[`--indicator-left`]=`50%`,n[`--indicator-translate-x`]=`-50%`),c===`end`&&(n[`--indicator-right`]=a,n[`--indicator-translate-x`]=`50%`),n}var ah={root:`m_e5262200`,indicator:`m_760d1fb1`,processing:`m_885901b1`},oh={position:`top-end`,offset:0,showZero:!0},sh=$t((e,{color:t,position:n,offset:r,size:i,radius:a,zIndex:o,autoContrast:s})=>({root:{"--indicator-color":t?bn(t,e):void 0,"--indicator-text-color":Nn(s,e)?An({color:t,theme:e,autoContrast:s}):void 0,"--indicator-size":V(i),"--indicator-radius":a===void 0?void 0:Lt(a),"--indicator-z-index":o?.toString(),...ih(n,r)}})),ch=W(e=>{let t=U(`Indicator`,oh,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,position:l,offset:u,inline:d,label:f,radius:p,color:m,withBorder:h,disabled:g,processing:_,zIndex:v,autoContrast:y,maxValue:b,showZero:x,mod:S,attributes:C,...w}=t,T=zr({name:`Indicator`,classes:ah,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:C,vars:s,varsResolver:sh}),E=!x&&(f===0||f===`0`),D=b!==void 0&&typeof f==`number`&&f>b?`${b}+`:f;return(0,H.jsxs)(G,{...T(`root`),mod:[{inline:d},S],...w,children:[!g&&!E&&(0,H.jsx)(G,{mod:{"with-label":!!f,"with-border":h,processing:_},...T(`indicator`),children:D}),c]})});ch.classes=ah,ch.varsResolver=sh,ch.displayName=`@mantine/core/Indicator`;var lh=[`borderBottomWidth`,`borderLeftWidth`,`borderRightWidth`,`borderTopWidth`,`boxSizing`,`fontFamily`,`fontSize`,`fontStyle`,`fontWeight`,`letterSpacing`,`lineHeight`,`paddingBottom`,`paddingLeft`,`paddingRight`,`paddingTop`,`tabSize`,`textIndent`,`textRendering`,`textTransform`,`width`,`wordBreak`,`wordSpacing`,`scrollbarGutter`],uh={"min-height":`0`,"max-height":`none`,height:`0`,visibility:`hidden`,overflow:`hidden`,position:`absolute`,"z-index":`-1000`,top:`0`,right:`0`,display:`block`};function dh(e){Object.keys(uh).forEach(t=>{e.style.setProperty(t,uh[t],`important`)})}function fh(e){let t=window.getComputedStyle(e);if(t===null)return null;let n={};for(let e of lh)n[e]=t[e];return n.boxSizing===``?null:{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)}}var ph=null;function mh(e,t,n=1,r=1/0){ph||(ph=document.createElement(`textarea`),ph.setAttribute(`tabindex`,`-1`),ph.setAttribute(`aria-hidden`,`true`),ph.setAttribute(`aria-label`,`autosize measurement`),dh(ph)),ph.parentNode===null&&document.body.appendChild(ph);let{paddingSize:i,borderSize:a,sizingStyle:o}=e,{boxSizing:s}=o;Object.keys(o).forEach(e=>{ph.style[e]=o[e]}),dh(ph),ph.value=t;let c=s===`border-box`?ph.scrollHeight+a:ph.scrollHeight-i;ph.value=t,c=s===`border-box`?ph.scrollHeight+a:ph.scrollHeight-i,ph.value=`x`;let l=ph.scrollHeight-i,u=l*n;s===`border-box`&&(u=u+i+a),c=Math.max(u,c);let d=l*r;return s===`border-box`&&(d=d+i+a),c=Math.min(d,c),[c,l]}function hh({maxRows:e,minRows:t,onChange:n,ref:r,...i}){let a=i.value!==void 0,o=(0,h.useRef)(null),s=ae(o,r),c=(0,h.useRef)(0),l=(0,h.useRef)(0),u=()=>{let n=o.current;if(!n)return;let r=fh(n);if(!r)return;let[i]=mh(r,n.value||n.placeholder||`x`,t,e);c.current!==i&&(c.current=i,n.style.setProperty(`height`,`${i}px`,`important`))},d=(0,h.useEffectEvent)(u),f=e=>{a||u(),n?.(e)};return(0,h.useLayoutEffect)(u),(0,h.useEffect)(()=>{let e=()=>u();return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),(0,h.useEffect)(()=>{let e=o.current;if(!e||typeof ResizeObserver>`u`)return;l.current=e.offsetWidth;let t=0,n=new ResizeObserver(()=>{o.current&&o.current.offsetWidth!==l.current&&(l.current=o.current.offsetWidth,cancelAnimationFrame(t),t=requestAnimationFrame(d))});return n.observe(e),()=>{cancelAnimationFrame(t),n.disconnect()}},[]),(0,h.useEffect)(()=>{let e=()=>u();return document.fonts.addEventListener(`loadingdone`,e),()=>document.fonts.removeEventListener(`loadingdone`,e)},[]),(0,h.useEffect)(()=>{let e=e=>{if(o.current?.form===e.target&&!a){let e=o.current.value;requestAnimationFrame(()=>{o.current&&e!==o.current.value&&u()})}};return document.body.addEventListener(`reset`,e),()=>document.body.removeEventListener(`reset`,e)},[a]),(0,H.jsx)(`textarea`,{rows:t,...i,onChange:f,ref:s})}var gh=W(e=>{let{autosize:t,maxRows:n,minRows:r,__staticSelector:i,resize:a,bottomSection:o,bottomSectionProps:s,...c}=U([`Input`,`InputWrapper`,`Textarea`],null,e),l=t&&Kt()!==`test`,u=l?{maxRows:n,minRows:r}:{};return(0,H.jsx)(vf,{component:l?hh:`textarea`,...c,__staticSelector:i||`Textarea`,__bottomSection:o,__bottomSectionProps:s,multiline:!0,"data-no-overflow":t&&n===void 0||void 0,__vars:{"--input-resize":a},...u})});gh.classes=vf.classes,gh.displayName=`@mantine/core/Textarea`;var _h={root:`m_dc6f14e2`},vh=$t((e,{size:t})=>({root:{"--kbd-fz":Ft(t,`kbd-fz`)}})),yh=W(e=>{let t=U(`Kbd`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,...l}=t,u=zr({name:`Kbd`,classes:_h,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c,vars:s,varsResolver:vh});return(0,H.jsx)(G,{component:`kbd`,...u(`root`),...l})});yh.classes=_h,yh.varsResolver=vh,yh.displayName=`@mantine/core/Kbd`;var[bh,xh]=wt(`Menu component was not found in the tree`),Sh=(0,h.createContext)(null);function Ch(e){let{value:t,defaultValue:n,onChange:r,children:i}=U(`MenuCheckboxGroup`,null,e),[a,o]=oe({value:t,defaultValue:n,finalValue:[],onChange:r}),s=(0,h.useCallback)(e=>{o(a.includes(e)?a.filter(t=>t!==e):[...a,e])},[a,o]);return(0,H.jsx)(Sh,{value:{values:a,onChange:s},children:i})}Ch.displayName=`@mantine/core/MenuCheckboxGroup`;var wh=(0,h.createContext)(null);function Th({role:e,checked:t,indicator:n,onSelect:r,color:i,closeMenuOnClick:a,rightSection:o,children:s,disabled:c,dataDisabled:l,className:u,style:d,styles:f,classNames:p,buttonRef:m,others:g}){let _=xh(),v=(0,h.use)(wh),y=cr(),{dir:b}=Ai(),x=(0,h.useRef)(null),S=Vt(g.onClick,()=>{l||(r(),a&&_.closeDropdownImmediately())}),C=Vt(g.onMouseMove,()=>{if(!_.hasSearch)return;let e=x.current?.closest(`[data-menu-dropdown]`);e&&e.querySelectorAll(`[data-menu-active]`).forEach(t=>{t!==x.current&&t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}),w=Vt(g.onKeyDown,e=>{e.key===`ArrowLeft`&&v&&(v.close(),v.focusParentItem())}),T=i?y.variantColorResolver({color:i,theme:y,variant:`light`}):void 0,E=i?yn({color:i,theme:y}):null,D=_.alignItemsLabels!==`none`||t;return(0,H.jsxs)($c,{onMouseDown:e=>e.preventDefault(),...g,unstyled:_.unstyled,tabIndex:_.menuItemTabIndex,..._.getStyles(`item`,{className:u,style:d,styles:f,classNames:p}),ref:ae(x,m),role:e,"aria-checked":t,disabled:c,"data-menu-item":!0,"data-checked":t||void 0,"data-disabled":c||l||void 0,"data-mantine-stop-propagation":!0,onClick:S,onMouseMove:C,onKeyDown:At({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:_.loop,dir:b,orientation:`vertical`,onKeyDown:w}),__vars:{"--menu-item-color":E?.isThemeColor&&E?.shade===void 0?`var(--mantine-color-${E.color}-6)`:T?.color,"--menu-item-hover":T?.hover},children:[D&&(0,H.jsx)(`div`,{..._.getStyles(`itemIndicator`,{styles:f,classNames:p}),"data-checked":t||void 0,children:t?n:null}),s&&(0,H.jsx)(`div`,{..._.getStyles(`itemLabel`,{styles:f,classNames:p}),"data-menu-item-label":!0,children:s}),o&&(0,H.jsx)(`div`,{..._.getStyles(`itemSection`,{styles:f,classNames:p}),"data-position":`right`,children:o})]})}var Eh={dropdown:`m_dc9b7c9f`,label:`m_9bfac126`,divider:`m_efdf90cb`,item:`m_99ac2aa1`,search:`m_ef8769b6`,itemLabel:`m_5476e0d3`,itemIndicator:`m_8395186e`,itemSection:`m_8b75e504`,chevron:`m_b85b0bed`},Dh=W(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:o,closeMenuOnClick:s,rightSection:c,children:l,disabled:u,"data-disabled":d,value:f,checked:p,defaultChecked:m,onChange:g,checkIcon:_,ref:v,...y}=U(`MenuCheckboxItem`,null,e),b=xh(),x=(0,h.use)(Sh),S=x&&f!==void 0?x.values.includes(f):void 0,[C,w]=oe({value:p??S,defaultValue:m,finalValue:!1,onChange:g}),T=_??b.checkIcon??(0,H.jsx)(lm,{size:10});return(0,H.jsx)(Th,{role:`menuitemcheckbox`,checked:C,indicator:T,onSelect:()=>{g?w(!C):x&&f!==void 0?x.onChange(f):w(!C)},color:o,closeMenuOnClick:s,rightSection:c,disabled:u,dataDisabled:d,className:n,style:r,styles:i,classNames:t,buttonRef:v,others:y,children:l})});Dh.classes=Eh,Dh.displayName=`@mantine/core/MenuCheckboxItem`;function Oh(e){let{children:t,disabled:n,longPressDelay:r}=U(`MenuContextMenu`,null,e),i=Qt(t);if(!i)throw Error(`Menu.ContextMenu component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let a=xh(),o=Nl(),s=Pl({childProps:i.props,disabled:n||o.disabled,opened:a.opened,longPressDelay:r,setReference:o.reference,open:()=>a.openDropdown()});return(0,h.cloneElement)(i,s)}Oh.displayName=`@mantine/core/MenuContextMenu`;var kh=W(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=U(`MenuDivider`,null,e),s=xh();return(0,H.jsx)(G,{...s.getStyles(`divider`,{className:n,style:r,styles:i,classNames:t}),...o})});kh.classes=Eh,kh.displayName=`@mantine/core/MenuDivider`;var Ah=500;function jh(e){return((e.querySelector(`[data-menu-item-label]`)??e).textContent??``).trim().toLowerCase()}function Mh(e){return e.length>1&&e.split(``).every(t=>t===e[0])}function Nh({enabled:e,opened:t,getDropdown:n}){let r=(0,h.useRef)({buffer:``,timeoutId:null});return(0,h.useEffect)(()=>{if(t&&e)return;let n=r.current;n.timeoutId!==null&&(window.clearTimeout(n.timeoutId),n.timeoutId=null),n.buffer=``},[t,e]),(0,h.useEffect)(()=>()=>{let{timeoutId:e}=r.current;e!==null&&window.clearTimeout(e)},[]),t=>{if(!e||t.defaultPrevented||t.ctrlKey||t.metaKey||t.altKey||t.key.length!==1||t.key===` `)return;let i=t.target;if(i&&(i.tagName===`INPUT`||i.tagName===`TEXTAREA`||i.tagName===`SELECT`||i.isContentEditable))return;let a=n();if(!a)return;let o=Array.from(a.querySelectorAll(`[data-menu-item]:not([data-disabled])`)).filter(e=>e.closest(`[data-menu-dropdown]`)===a);if(o.length===0)return;let s=r.current;s.buffer=(s.buffer+t.key).toLowerCase(),s.timeoutId!==null&&window.clearTimeout(s.timeoutId),s.timeoutId=window.setTimeout(()=>{s.buffer=``,s.timeoutId=null},Ah);let c=document.activeElement,l=c?o.indexOf(c):-1,u=null;if(s.buffer.length===1||Mh(s.buffer)){let e=s.buffer[0],t=l+1;for(let n=0;n{let{classNames:t,className:n,style:r,styles:i,vars:a,onMouseEnter:o,onMouseLeave:s,onKeyDown:c,children:l,ref:u,...d}=U(`MenuDropdown`,null,e),f=(0,h.useRef)(null),p=xh(),m=Nh({enabled:!p.hasSearch,opened:p.opened,getDropdown:()=>f.current}),g=Vt(c,e=>{m(e),e.defaultPrevented||p.hasSearch||e.key!==`ArrowUp`&&e.key!==`ArrowDown`||(e.preventDefault(),f.current?.querySelectorAll(`[data-menu-item]:not(:disabled)`)[0]?.focus())}),_=Vt(o,()=>(p.trigger===`hover`||p.trigger===`click-hover`)&&p.openDropdown()),v=Vt(s,()=>(p.trigger===`hover`||p.trigger===`click-hover`)&&p.closeDropdown());return(0,H.jsxs)(ql.Dropdown,{...d,onMouseEnter:_,onMouseLeave:v,role:`menu`,"aria-orientation":`vertical`,ref:ae(u,f),...p.getStyles(`dropdown`,{className:n,style:r,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:g,children:[p.withInitialFocusPlaceholder&&!p.hasSearch&&(0,H.jsx)(`div`,{role:`presentation`,tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),l]})});Ph.classes=Eh,Ph.displayName=`@mantine/core/MenuDropdown`;var Fh=Si(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:o,closeMenuOnClick:s,leftSection:c,rightSection:l,children:u,disabled:d,"data-disabled":f,ref:p,...m}=U(`MenuItem`,null,e),g=xh(),_=(0,h.use)(wh),v=cr(),{dir:y}=Ai(),b=(0,h.useRef)(null),x=m,S=Vt(x.onClick,()=>{f||(typeof s==`boolean`?s&&g.closeDropdownImmediately():g.closeOnItemClick&&g.closeDropdownImmediately())}),C=Vt(x.onMouseMove,()=>{if(!g.hasSearch)return;let e=b.current?.closest(`[data-menu-dropdown]`);e&&e.querySelectorAll(`[data-menu-active]`).forEach(t=>{t!==b.current&&t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}),w=o?v.variantColorResolver({color:o,theme:v,variant:`light`}):void 0,T=o?yn({color:o,theme:v}):null,E=Vt(x.onKeyDown,e=>{e.key===`ArrowLeft`&&_&&(_.close(),_.focusParentItem())});return(0,H.jsxs)($c,{onMouseDown:e=>e.preventDefault(),...m,unstyled:g.unstyled,tabIndex:g.menuItemTabIndex,...g.getStyles(`item`,{className:n,style:r,styles:i,classNames:t}),ref:ae(b,p),role:`menuitem`,disabled:d,"data-menu-item":!0,"data-disabled":d||f||void 0,"data-mantine-stop-propagation":!0,onClick:S,onMouseMove:C,onKeyDown:At({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:g.loop,dir:y,orientation:`vertical`,onKeyDown:E}),__vars:{"--menu-item-color":T?.isThemeColor&&T?.shade===void 0?`var(--mantine-color-${T.color}-6)`:w?.color,"--menu-item-hover":w?.hover},children:[g.alignItemsLabels===`all`&&(0,H.jsx)(`div`,{...g.getStyles(`itemIndicator`,{styles:i,classNames:t}),"data-placeholder":!0}),c&&(0,H.jsx)(`div`,{...g.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`left`,children:c}),u&&(0,H.jsx)(`div`,{...g.getStyles(`itemLabel`,{styles:i,classNames:t}),"data-menu-item-label":!0,children:u}),l&&(0,H.jsx)(`div`,{...g.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`right`,children:l})]})});Fh.classes=Eh,Fh.displayName=`@mantine/core/MenuItem`;var Ih=W(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=U(`MenuLabel`,null,e),s=xh();return(0,H.jsx)(G,{...s.getStyles(`label`,{className:n,style:r,styles:i,classNames:t}),...o})});Ih.classes=Eh,Ih.displayName=`@mantine/core/MenuLabel`;var Lh=(0,h.createContext)(null);function Rh(e){let{value:t,defaultValue:n,onChange:r,children:i}=U(`MenuRadioGroup`,null,e),[a,o]=oe({value:t,defaultValue:n,finalValue:null,onChange:r});return(0,H.jsx)(Lh,{value:{value:a,onChange:e=>o(e)},children:i})}Rh.displayName=`@mantine/core/MenuRadioGroup`;function zh({size:e,style:t,...n}){return(0,H.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 5 5`,style:{width:V(e),height:V(e),...t},"aria-hidden":!0,...n,children:(0,H.jsx)(`circle`,{cx:`2.5`,cy:`2.5`,r:`2.5`,fill:`currentColor`})})}var Bh=W(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:o,closeMenuOnClick:s,rightSection:c,children:l,disabled:u,"data-disabled":d,value:f,checked:p,onChange:m,checkIcon:g,ref:_,...v}=U(`MenuRadioItem`,null,e),y=xh(),b=(0,h.use)(Lh),x=p??(b?b.value===f:!1),S=g??y.checkIcon??(0,H.jsx)(zh,{size:5});return(0,H.jsx)(Th,{role:`menuitemradio`,checked:x,indicator:S,onSelect:()=>{x||(m?m(f):b&&b.onChange(f))},color:o,closeMenuOnClick:s,rightSection:c,disabled:u,dataDisabled:d,className:n,style:r,styles:i,classNames:t,buttonRef:_,others:v,children:l})});Bh.classes=Eh,Bh.displayName=`@mantine/core/MenuRadioItem`;var Vh=`[data-menu-item]:not([data-disabled])`,Hh=`[data-menu-active]`;function Uh(e){return e?.closest(`[data-menu-dropdown]`)}function Wh(e){return e?Array.from(e.querySelectorAll(Vh)).filter(t=>t.closest(`[data-menu-dropdown]`)===e):[]}function Gh(e){e&&e.querySelectorAll(Hh).forEach(t=>{t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}function Kh(e,t){Gh(t),e&&(e.setAttribute(`data-menu-active`,`true`),e.scrollIntoView({block:`nearest`}))}function qh(e){return e.findIndex(e=>e.hasAttribute(`data-menu-active`))}var Jh={clearSearchOnClose:!0},Yh=W(e=>{let{classNames:t,styles:n,onKeyDown:r,onChange:i,size:a,clearSearchOnClose:o,ref:s,...c}=U(`MenuSearch`,Jh,e),l=xh(),u=(0,h.useRef)(null),d=ae(s,u),f=(0,h.useRef)(i);f.current=i,(0,h.useEffect)(()=>l.registerSearch(),[l.registerSearch]),(0,h.useEffect)(()=>{o?l.searchExitClearRef.current=()=>{f.current?.({currentTarget:{value:``}})}:l.searchExitClearRef.current=null},[o,l.searchExitClearRef]),(0,h.useEffect)(()=>{l.opened||Gh(Uh(u.current))},[l.opened]);let p=Vt(i,e=>{Gh(Uh(e.currentTarget))}),m=Vt(r,e=>{if(e.defaultPrevented)return;let t=Uh(e.currentTarget),n=Wh(t);if(e.key===`ArrowDown`){if(e.preventDefault(),n.length===0)return;let r=qh(n);Kh(n[r>=n.length-1?l.loop?0:r:r+1]??null,t)}else if(e.key===`ArrowUp`){if(e.preventDefault(),n.length===0)return;let r=qh(n);Kh(n[r<=0?r===-1||l.loop?n.length-1:0:r-1]??null,t)}else if(e.key===`Home`)e.preventDefault(),n.length>0&&Kh(n[0],t);else if(e.key===`End`)e.preventDefault(),n.length>0&&Kh(n[n.length-1],t);else if(e.key===`Enter`){if(e.nativeEvent.isComposing||e.nativeEvent.keyCode===229)return;let t=n[qh(n)];t&&(e.preventDefault(),t.hasAttribute(`data-sub-menu-item`)?(t.focus(),t.dispatchEvent(new KeyboardEvent(`keydown`,{key:`ArrowRight`,bubbles:!0}))):t.click())}}),g=l.getStyles(`search`);return(0,H.jsx)(hf,{"data-autofocus":!0,"data-mantine-stop-propagation":!0,type:`search`,size:a,...c,ref:d,classNames:[{input:g.className},t],styles:[{input:g.style},n],onKeyDown:m,onChange:p,__staticSelector:`Menu`})});Yh.classes=Eh,Yh.displayName=`@mantine/core/MenuSearch`;var Xh=W(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,onMouseEnter:o,onMouseLeave:s,onPointerEnter:c,onPointerLeave:l,onKeyDown:u,children:d,ref:f,...p}=U(`MenuSubDropdown`,null,e),m=(0,h.useRef)(null),g=xh(),_=(0,h.use)(wh),v=Nh({enabled:!g.hasSearch,opened:_?.opened??!1,getDropdown:()=>m.current}),y=Vt(u,e=>{v(e),e.ctrlKey||e.metaKey||e.altKey||e.key.length!==1||e.key===` `||e.stopPropagation()}),b=_?.getFloatingProps({onMouseEnter:o,onMouseLeave:s,onPointerEnter:c,onPointerLeave:l});return(0,H.jsx)(ql.Dropdown,{...p,...b,role:`menu`,"aria-orientation":`vertical`,ref:ae(f,m,_?.setFloating),...g.getStyles(`dropdown`,{className:n,style:r,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:y,children:d})});Xh.classes=Eh,Xh.displayName=`@mantine/core/MenuSubDropdown`;var Zh=Si(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:o,leftSection:s,rightSection:c,children:l,disabled:u,"data-disabled":d,closeMenuOnClick:f,ref:p,...m}=U(`MenuSubItem`,null,e),g=xh(),_=(0,h.use)(wh),v=cr(),{dir:y}=Ai(),b=(0,h.useRef)(null),x=m,S=o?v.variantColorResolver({color:o,theme:v,variant:`light`}):void 0,C=o?yn({color:o,theme:v}):null,w=Vt(x.onKeyDown,e=>{e.key===`ArrowRight`&&(_?.open(),_?.focusFirstItem()),e.key===`ArrowLeft`&&_?.parentContext&&(_.parentContext.close(),_.parentContext.focusParentItem())}),T=Vt(x.onClick,()=>{!d&&f&&g.closeDropdownImmediately()}),E=Vt(x.onMouseMove,()=>{if(!g.hasSearch)return;let e=b.current?.closest(`[data-menu-dropdown]`);e&&e.querySelectorAll(`[data-menu-active]`).forEach(t=>{t!==b.current&&t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}),D=_?.getReferenceProps({onMouseEnter:x.onMouseEnter,onMouseLeave:x.onMouseLeave,onPointerEnter:x.onPointerEnter,onPointerLeave:x.onPointerLeave});return(0,H.jsxs)($c,{onMouseDown:e=>e.preventDefault(),...m,...D,unstyled:g.unstyled,tabIndex:g.menuItemTabIndex,...g.getStyles(`item`,{className:n,style:r,styles:i,classNames:t}),ref:ae(b,p,_?.setReference),role:`menuitem`,disabled:u,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":u||d||void 0,"data-mantine-stop-propagation":!0,onClick:T,onMouseMove:E,onKeyDown:At({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:g.loop,dir:y,orientation:`vertical`,onKeyDown:w}),__vars:{"--menu-item-color":C?.isThemeColor&&C?.shade===void 0?`var(--mantine-color-${C.color}-6)`:S?.color,"--menu-item-hover":S?.hover},children:[g.alignItemsLabels===`all`&&(0,H.jsx)(`div`,{...g.getStyles(`itemIndicator`,{styles:i,classNames:t}),"data-placeholder":!0}),s&&(0,H.jsx)(`div`,{...g.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`left`,children:s}),l&&(0,H.jsx)(`div`,{...g.getStyles(`itemLabel`,{styles:i,classNames:t}),"data-menu-item-label":!0,children:l}),(0,H.jsx)(`div`,{...g.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`right`,children:c||(0,H.jsx)(kf,{...g.getStyles(`chevron`),size:14})})]})});Zh.classes=Eh,Zh.displayName=`@mantine/core/MenuSubItem`;function Qh({children:e,refProp:t}){if(!Ct(e))throw Error(`Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);return xh(),(0,H.jsx)(ql.Target,{refProp:t,popupType:`menu`,children:e})}Qh.displayName=`@mantine/core/MenuSubTarget`;var $h={offset:0,position:`right-start`,safeAreaPolygon:!0,transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function eg(e){let{children:t,closeDelay:n,openDelay:r,position:i,safeAreaPolygon:a,opened:o,onChange:s,...c}=U(`MenuSub`,$h,e),l=L(),[u,d]=oe({value:o,finalValue:!1,onChange:s}),f=(0,h.use)(wh),p=xh(),{dir:m}=Ai(),g=fl(m,i),_=f?.registerOpenSub??p.registerOpenSub,v=(0,h.useRef)(null),y=(0,h.useCallback)(e=>{let t=v.current;return t&&t!==e&&t(),v.current=e,()=>{v.current===e&&(v.current=null)}},[]),b=(0,h.useRef)(d);b.current=d;let x=(0,h.useCallback)(()=>b.current(!0),[]),S=(0,h.useCallback)(()=>b.current(!1),[]);(0,h.useEffect)(()=>{if(u)return _(S)},[u,_,S]);let{context:C,refs:w}=Ic({placement:g,open:u,onOpenChange:e=>{e?x():S()}}),{getReferenceProps:T,getFloatingProps:E}=Bc([Cc(C,{handleClose:a?Kc(typeof a==`object`?a:void 0):void 0,delay:{open:r,close:n}})]);return(0,H.jsx)(wh,{value:{opened:u,close:S,open:x,focusFirstItem:()=>window.setTimeout(()=>{document.getElementById(`${l}-dropdown`)?.querySelectorAll(`[data-menu-item]:not([data-disabled])`)[0]?.focus()},16),focusParentItem:()=>window.setTimeout(()=>{document.getElementById(`${l}-target`)?.focus()},16),parentContext:f,setReference:w.setReference,setFloating:w.setFloating,getReferenceProps:T,getFloatingProps:E,registerOpenSub:y},children:(0,H.jsx)(ql,{opened:u,onChange:e=>e?x():S(),withArrow:!1,id:l,position:i,...c,withinPortal:!1,children:t})})}eg.extend=e=>e,eg.displayName=`@mantine/core/MenuSub`,eg.Target=Qh,eg.Dropdown=Xh,eg.Item=Zh;var eee={refProp:`ref`};function tg(e){let{children:t,refProp:n,...r}=U(`MenuTarget`,eee,e),i=Qt(t);if(!i)throw Error(`Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let a=xh(),o=i.props,s=Vt(o.onClick,()=>{a.trigger===`click`?a.toggleDropdown():a.trigger===`click-hover`&&(a.setOpenedViaClick(!0),a.opened||a.openDropdown())}),c=Vt(o.onMouseEnter,()=>(a.trigger===`hover`||a.trigger===`click-hover`)&&a.openDropdown()),l=Vt(o.onMouseLeave,()=>{(a.trigger===`hover`||a.trigger===`click-hover`&&!a.openedViaClick)&&a.closeDropdown()});return(0,H.jsx)(ql.Target,{refProp:n,popupType:`menu`,...r,children:(0,h.cloneElement)(i,{onClick:s,onMouseEnter:c,onMouseLeave:l,"data-expanded":a.opened?!0:void 0})})}tg.displayName=`@mantine/core/MenuTarget`;var tee={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:[`mousedown`,`touchstart`,`keydown`],loop:!0,trigger:`click`,openDelay:0,closeDelay:100,menuItemTabIndex:-1,alignItemsLabels:`with-indicators`},ng=W(e=>{let t=U(`Menu`,tee,e),{children:n,onOpen:r,onClose:i,opened:a,defaultOpened:o,trapFocus:s,onChange:c,closeOnItemClick:l,loop:u,closeOnEscape:d,trigger:f,openDelay:p,closeDelay:m,classNames:g,styles:_,unstyled:v,variant:y,vars:b,menuItemTabIndex:x,keepMounted:S,withInitialFocusPlaceholder:C,attributes:w,onExitTransitionEnd:T,alignItemsLabels:E,checkIcon:D,...O}=t,k=zr({name:`Menu`,classes:Eh,props:t,classNames:g,styles:_,unstyled:v,attributes:w}),[A,j]=oe({value:a,defaultValue:o,finalValue:!1,onChange:c}),[M,N]=(0,h.useState)(!1),P=()=>{j(!1),N(!1),A&&i?.()},F=()=>{j(!0),!A&&r?.()},ee=()=>{A?P():F()},{openDropdown:I,closeDropdown:te}=pl({open:F,close:P,closeDelay:m,openDelay:p}),L=(0,h.useRef)(null),ne=(0,h.useCallback)(e=>{let t=L.current;return t&&t!==e&&t(),L.current=e,()=>{L.current===e&&(L.current=null)}},[]),re=(0,h.useRef)(0),[ie,ae]=(0,h.useState)(!1),se=(0,h.useCallback)(()=>(re.current+=1,re.current===1&&ae(!0),()=>{--re.current,re.current===0&&ae(!1)}),[]),R=(0,h.useRef)(null),ce=()=>{R.current?.(),T?.()},le=e=>Gt(`[data-menu-item]`,`[data-menu-dropdown]`,e),{resolvedClassNames:z,resolvedStyles:ue}=wr({classNames:g,styles:_,props:t});return(0,H.jsx)(bh,{value:{getStyles:k,opened:A,toggleDropdown:ee,getItemIndex:le,openedViaClick:M,setOpenedViaClick:N,closeOnItemClick:l,closeDropdown:f===`click`?P:te,openDropdown:f===`click`?F:I,closeDropdownImmediately:P,loop:u,trigger:f,unstyled:v,menuItemTabIndex:x,withInitialFocusPlaceholder:C,registerOpenSub:ne,hasSearch:ie,registerSearch:se,searchExitClearRef:R,alignItemsLabels:E,checkIcon:D},children:(0,H.jsx)(ql,{returnFocus:!0,...O,opened:A,onChange:ee,defaultOpened:o,trapFocus:!S&&s,closeOnEscape:d,__staticSelector:`Menu`,classNames:z,styles:ue,unstyled:v,variant:y,keepMounted:S,onExitTransitionEnd:ce,children:n})})});ng.displayName=`@mantine/core/Menu`,ng.classes=Eh,ng.Item=Fh,ng.Label=Ih,ng.Dropdown=Ph,ng.Target=tg,ng.Divider=kh,ng.Search=Yh,ng.Sub=eg,ng.CheckboxItem=Dh,ng.CheckboxGroup=Ch,ng.RadioItem=Bh,ng.RadioGroup=Rh,ng.ContextMenu=Oh;var[rg,ig]=wt(`Modal component was not found in tree`),ag={root:`m_9df02822`,content:`m_54c44539`,inner:`m_1f958f16`,header:`m_d0e2b9cd`},og=W(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=U(`ModalBody`,null,e),s=ig();return(0,H.jsx)(Id,{...s.getStyles(`body`,{classNames:t,style:r,styles:i,className:n}),...o})});og.classes=ag,og.displayName=`@mantine/core/ModalBody`;var sg=W(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=U(`ModalCloseButton`,null,e),s=ig();return(0,H.jsx)(Ld,{...s.getStyles(`close`,{classNames:t,style:r,styles:i,className:n}),...o})});sg.classes=ag,sg.displayName=`@mantine/core/ModalCloseButton`;var cg=W(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,__hidden:s,...c}=U(`ModalContent`,null,e),l=ig(),u=l.scrollAreaComponent||Gd;return(0,H.jsx)(Rd,{...l.getStyles(`content`,{className:n,style:r,styles:i,classNames:t}),innerProps:l.getStyles(`inner`,{className:n,style:r,styles:i,classNames:t}),"data-full-screen":l.fullScreen||void 0,"data-modal-content":!0,"data-hidden":s||void 0,...c,children:(0,H.jsx)(u,{style:{maxHeight:l.fullScreen?`100dvh`:`calc(100dvh - (${V(l.yOffset)} * 2))`},children:o})})});cg.classes=ag,cg.displayName=`@mantine/core/ModalContent`;var lg=W(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=U(`ModalHeader`,null,e),s=ig();return(0,H.jsx)(zd,{...s.getStyles(`header`,{classNames:t,style:r,styles:i,className:n}),...o})});lg.classes=ag,lg.displayName=`@mantine/core/ModalHeader`;var ug=W(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=U(`ModalOverlay`,null,e),s=ig();return(0,H.jsx)(Hd,{...s.getStyles(`overlay`,{classNames:t,style:r,styles:i,className:n}),...o})});ug.classes=ag,ug.displayName=`@mantine/core/ModalOverlay`;var nee={__staticSelector:`Modal`,closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Mt(`modal`),transitionProps:{duration:200,transition:`fade-down`},yOffset:`5dvh`},dg=$t((e,{radius:t,size:n,yOffset:r,xOffset:i})=>({root:{"--modal-radius":t===void 0?void 0:Lt(t),"--modal-size":Ft(n,`modal-size`),"--modal-y-offset":V(r),"--modal-x-offset":V(i)}})),fg=W(e=>{let t=U(`ModalRoot`,nee,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,yOffset:c,scrollAreaComponent:l,radius:u,fullScreen:d,centered:f,xOffset:p,__staticSelector:m,attributes:h,...g}=t,_=zr({name:m,classes:ag,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:dg});return(0,H.jsx)(rg,{value:{yOffset:c,scrollAreaComponent:l,getStyles:_,fullScreen:d},children:(0,H.jsx)(Nd,{..._(`root`),"data-full-screen":d||void 0,"data-centered":f||void 0,"data-offset-scrollbars":l===Yc.Autosize||void 0,unstyled:o,...g})})});fg.classes=ag,fg.varsResolver=dg,fg.displayName=`@mantine/core/ModalRoot`;var pg=(0,h.createContext)(null);function mg({children:e}){let[t,n]=(0,h.useState)([]),[r,i]=(0,h.useState)(Mt(`modal`)),[a]=(0,h.useState)(()=>new WeakSet);return(0,H.jsx)(pg,{value:{stack:t,addModal:(e,t)=>{n(t=>[...new Set([...t,e])]),i(e=>typeof t==`number`&&typeof e==`number`?Math.max(e,t):e)},removeModal:e=>n(t=>t.filter(t=>t!==e)),getZIndex:e=>`calc(${r} + ${t.indexOf(e)} + 1)`,currentId:t[t.length-1],maxZIndex:r,handledEscapeEvents:a},children:e})}mg.displayName=`@mantine/core/ModalStack`;var hg=W(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=U(`ModalTitle`,null,e),s=ig();return(0,H.jsx)(Wd,{...s.getStyles(`title`,{classNames:t,style:r,styles:i,className:n}),...o})});hg.classes=ag,hg.displayName=`@mantine/core/ModalTitle`;var ree={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Mt(`modal`),transitionProps:{duration:200,transition:`fade-down`},withOverlay:!0,withCloseButton:!0},gg=W(e=>{let{title:t,withOverlay:n,overlayProps:r,withCloseButton:i,closeButtonProps:a,children:o,radius:s,opened:c,stackId:l,zIndex:u,...d}=U(`Modal`,ree,e),f=(0,h.use)(pg),p=!!t||i,m=f&&l?{closeOnEscape:f.currentId===l,trapFocus:f.currentId===l,zIndex:f.getZIndex(l),__handledEscapeEvents:f.handledEscapeEvents}:{},g=n===!1?!1:l&&f?f.currentId===l:c;return(0,h.useEffect)(()=>{f&&l&&(c?f.addModal(l,u||Mt(`modal`)):f.removeModal(l))},[c,l,u]),(0,H.jsxs)(fg,{radius:s,opened:c,zIndex:f&&l?f.getZIndex(l):u,...d,...m,children:[n&&(0,H.jsx)(ug,{visible:g,transitionProps:f&&l?{duration:0}:void 0,...r}),(0,H.jsxs)(cg,{radius:s,__hidden:f&&l&&c?l!==f.currentId:!1,children:[p&&(0,H.jsxs)(lg,{children:[t&&(0,H.jsx)(hg,{children:t}),i&&(0,H.jsx)(sg,{...a})]}),(0,H.jsx)(og,{children:o})]})]})});gg.classes=ag,gg.displayName=`@mantine/core/Modal`,gg.Root=fg,gg.Overlay=ug,gg.Content=cg,gg.Body=og,gg.Header=lg,gg.Title=hg,gg.CloseButton=sg,gg.Stack=mg;var _g=(0,h.createContext)(null),vg={root:`m_7cda1cd6`,"root--default":`m_44da308b`,"root--contrast":`m_e3a01f8`,label:`m_1e0e6180`,remove:`m_ae386778`,group:`m_1dcfd90b`},yg=(0,h.createContext)(null),bg=$t((e,{gap:t},{size:n})=>({group:{"--pg-gap":t===void 0?Ft(n,`pg-gap`):Ft(t)}})),xg=W(e=>{let t=U(`PillGroup`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,size:c,disabled:l,attributes:u,...d}=t,f=(0,h.use)(_g)?.size||c||void 0,p=zr({name:`PillGroup`,classes:vg,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s,varsResolver:bg,stylesCtx:{size:f},rootSelector:`group`});return(0,H.jsx)(yg,{value:{size:f,disabled:l},children:(0,H.jsx)(G,{size:f,...p(`group`),...d})})});xg.classes=vg,xg.varsResolver=bg,xg.displayName=`@mantine/core/PillGroup`;var iee={variant:`default`},Sg=$t((e,{radius:t},{size:n})=>({root:{"--pill-fz":Ft(n,`pill-fz`),"--pill-height":Ft(n,`pill-height`),"--pill-radius":t===void 0?void 0:Lt(t)}})),Cg=W(e=>{let t=U(`Pill`,iee,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,variant:c,children:l,withRemoveButton:u,onRemove:d,removeButtonProps:f,radius:p,size:m,disabled:g,mod:_,attributes:v,...y}=t,b=(0,h.use)(yg),x=(0,h.use)(_g),S=m||b?.size||void 0,C=x?.variant===`filled`?`contrast`:c||`default`,w=zr({name:`Pill`,classes:vg,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:v,vars:s,varsResolver:Sg,stylesCtx:{size:S}});return(0,H.jsxs)(G,{component:`span`,variant:C,size:S,...w(`root`,{variant:C}),mod:[{"with-remove":u&&!g,disabled:g||b?.disabled},_],...y,children:[(0,H.jsx)(`span`,{...w(`label`),children:l}),u&&(0,H.jsx)(mu,{variant:`transparent`,radius:p,tabIndex:-1,"aria-hidden":!0,unstyled:o,...f,...w(`remove`,{className:f?.className,style:f?.style}),onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),f?.onMouseDown?.(e)},onClick:e=>{e.stopPropagation(),d?.(),f?.onClick?.(e)}})]})});Cg.classes=vg,Cg.varsResolver=Sg,Cg.displayName=`@mantine/core/Pill`,Cg.Group=xg;function aee(e,t){let n=t.trim().toLowerCase();if(n===``)return;let r=Object.values(e).filter(e=>!e.disabled&&e.label.trim().toLowerCase()===n);return r.length===1?r[0]:void 0}var wg={root:`m_a513464`,icon:`m_a4ceffb`,loader:`m_b0920b15`,body:`m_a49ed24`,title:`m_3feedf16`,description:`m_3d733a3a`,closeButton:`m_919a4d88`},oee={withCloseButton:!0},Tg=$t((e,{radius:t,color:n})=>({root:{"--notification-radius":t===void 0?void 0:Lt(t),"--notification-color":n?bn(n,e):void 0}})),Eg=W(e=>{let t=U(`Notification`,oee,e),{className:n,color:r,radius:i,loading:a,withCloseButton:o,withBorder:s,title:c,icon:l,children:u,onClose:d,closeButtonProps:f,classNames:p,style:m,styles:h,unstyled:g,vars:_,mod:v,loaderProps:y,role:b,attributes:x,...S}=t,C=zr({name:`Notification`,classes:wg,props:t,className:n,style:m,classNames:p,styles:h,unstyled:g,attributes:x,vars:_,varsResolver:Tg});return(0,H.jsxs)(G,{...C(`root`),mod:[{withIcon:!!l||a,withBorder:s},v],role:b||`alert`,...S,children:[l&&!a&&(0,H.jsx)(`div`,{...C(`icon`),children:l}),a&&(0,H.jsx)(tu,{size:28,color:r,...C(`loader`),...y}),(0,H.jsxs)(`div`,{...C(`body`),children:[c&&(0,H.jsx)(`div`,{...C(`title`),children:c}),(0,H.jsx)(G,{...C(`description`),mod:{withTitle:!!c},children:u})]}),o&&(0,H.jsx)(mu,{iconSize:16,color:`gray`,...f,unstyled:g,onClick:e=>{f?.onClick?.(e),d?.()},...C(`closeButton`)})]})});Eg.classes=wg,Eg.varsResolver=Tg,Eg.displayName=`@mantine/core/Notification`;var[see,Dg]=wt(`Progress.Root component was not found in tree`),Og={root:`m_db6d6462`,section:`m_2242eb65`,"stripes-animation":`m_81a374bd`,"stripes-animation-vertical":`m_e0fb7a86`,label:`m_91e40b74`},kg=W(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=U(`ProgressLabel`,null,e),s=Dg();return(0,H.jsx)(G,{...s.getStyles(`label`,{className:n,style:r,classNames:t,styles:i}),...o})});kg.classes=Og,kg.displayName=`@mantine/core/ProgressLabel`;var Ag=$t((e,{size:t,radius:n,transitionDuration:r})=>({root:{"--progress-size":Ft(t,`progress-size`),"--progress-radius":n===void 0?void 0:Lt(n),"--progress-transition-duration":typeof r==`number`?`${r}ms`:void 0}})),jg=W(e=>{let t=U(`ProgressRoot`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,autoContrast:c,transitionDuration:l,orientation:u,attributes:d,mod:f,...p}=t,m=zr({name:`Progress`,classes:Og,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:Ag});return(0,H.jsx)(see,{value:{getStyles:m,autoContrast:c},children:(0,H.jsx)(G,{mod:[{orientation:u},f],...m(`root`),...p})})});jg.classes=Og,jg.varsResolver=Ag,jg.displayName=`@mantine/core/ProgressRoot`;var cee={withAria:!0},Mg=W(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,value:o,withAria:s,color:c,striped:l,animated:u,mod:d,...f}=U(`ProgressSection`,cee,e),p=Dg(),m=cr(),h=s?{role:`progressbar`,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":o,"aria-valuetext":`${o}%`}:{};return(0,H.jsx)(G,{...p.getStyles(`section`,{className:n,classNames:t,styles:i,style:r}),...f,...h,mod:[{striped:l||u,animated:u},d],__vars:{"--progress-section-size":`${o}%`,"--progress-section-color":bn(c,m),"--progress-label-color":Nn(p.autoContrast,m)?An({color:c,theme:m,autoContrast:p.autoContrast}):void 0}})});Mg.classes=Og,Mg.displayName=`@mantine/core/ProgressSection`;var Ng=W(e=>{let t=U(`Progress`,null,e),{value:n,classNames:r,styles:i,vars:a,color:o,striped:s,animated:c,"aria-label":l,...u}=t,{resolvedClassNames:d,resolvedStyles:f}=wr({classNames:r,styles:i,props:t});return(0,H.jsx)(jg,{classNames:d,styles:f,vars:a,...u,children:(0,H.jsx)(Mg,{value:n,color:o,striped:s,animated:c,"aria-label":l})})});Ng.classes=Og,Ng.displayName=`@mantine/core/Progress`,Ng.Section=Mg,Ng.Root=jg,Ng.Label=kg;function lee({offset:e,position:t,defaultOpened:n}){let[r,i]=(0,h.useState)(n),a=(0,h.useRef)(null),{x:o,y:s,elements:c,refs:l,update:u,placement:d}=Ic({placement:t,middleware:[Ws({crossAxis:!0,padding:5,rootBoundary:`document`})]}),f=d.includes(`right`)?e:t.includes(`left`)?e*-1:0,p=d.includes(`bottom`)?e:t.includes(`top`)?e*-1:0,m=(0,h.useCallback)(({clientX:e,clientY:t})=>{Number.isFinite(e)&&Number.isFinite(t)&&l.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:e,y:t,left:e+f,top:t+p,right:e,bottom:t}}})},[c.reference]);return(0,h.useEffect)(()=>{if(l.floating.current){let e=a.current;e.addEventListener(`mousemove`,m);let t=Na(l.floating.current);return t.forEach(e=>{e.addEventListener(`scroll`,u)}),()=>{e.removeEventListener(`mousemove`,m),t.forEach(e=>{e.removeEventListener(`scroll`,u)})}}},[c.reference,l.floating.current,u,m,r]),{handleMouseMove:m,x:o,y:s,opened:r,setOpened:i,boundaryRef:a,floating:l.setFloating}}var Pg={tooltip:`m_1b3c8819`,arrow:`m_f898399f`},uee={refProp:`ref`,withinPortal:!0,offset:10,position:`right`,zIndex:Mt(`popover`)},Fg=$t((e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:Lt(t),"--tooltip-bg":n?bn(n,e):void 0,"--tooltip-color":n?`var(--mantine-color-white)`:void 0}})),Ig=W(e=>{let t=U(`TooltipFloating`,uee,e),{children:n,refProp:r,withinPortal:i,style:a,className:o,classNames:s,styles:c,unstyled:l,radius:u,color:d,label:f,offset:p,position:m,multiline:g,zIndex:_,disabled:v,defaultOpened:y,variant:b,vars:x,portalProps:S,attributes:C,ref:w,...T}=t,E=cr(),D=zr({name:`TooltipFloating`,props:t,classes:Pg,className:o,style:a,classNames:s,styles:c,unstyled:l,attributes:C,rootSelector:`tooltip`,vars:x,varsResolver:Fg}),{handleMouseMove:O,x:k,y:A,opened:j,boundaryRef:M,floating:N,setOpened:P}=lee({offset:p,position:m,defaultOpened:y}),F=Qt(n);if(!F)throw Error(`[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported`);let ee=ae(M,qt(F),w),I=F.props,te=e=>{I.onMouseEnter?.(e),O(e),P(!0)},L=e=>{I.onMouseLeave?.(e),P(!1)};return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(Cl,{...S,withinPortal:i,children:(0,H.jsx)(G,{...T,...D(`tooltip`,{style:{..._i(a,E),zIndex:_,display:!v&&j?`block`:`none`,top:Number.isFinite(A)?Math.round(A):``,left:Number.isFinite(k)?Math.round(k):``}}),variant:b,ref:N,mod:{multiline:g},children:f})}),(0,h.cloneElement)(F,{...I,[r]:ee,onMouseEnter:te,onMouseLeave:L})]})});Ig.classes=Pg,Ig.varsResolver=Fg,Ig.displayName=`@mantine/core/TooltipFloating`;var Lg=(0,h.createContext)({withinGroup:!1}),dee={openDelay:0,closeDelay:0};function Rg(e){let{openDelay:t,closeDelay:n,children:r}=U(`TooltipGroup`,dee,e);return(0,H.jsx)(Lg,{value:{withinGroup:!0},children:(0,H.jsx)(Dc,{delay:{open:t,close:n},children:r})})}Rg.displayName=`@mantine/core/TooltipGroup`,Rg.extend=e=>e;function fee(e){if(e===void 0)return{shift:!0,flip:!0};let t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function pee(e){let t=fee(e.middlewares),n=[Us(e.offset),Js()];return t.shift&&n.push(Ws(typeof t.shift==`boolean`?{padding:8}:{padding:8,...t.shift})),t.flip&&n.push(typeof t.flip==`boolean`?Ks():Ks(t.flip)),n.push(Xs({element:e.arrowRef,padding:e.arrowOffset})),t.inline?n.push(typeof t.inline==`boolean`?Ys():Ys(t.inline)):e.inline&&n.push(Ys()),n}function mee(e){let[t,n]=(0,h.useState)(e.defaultOpened),r=typeof e.opened==`boolean`,i=!e.disabled&&(r?e.opened:t);(0,h.useEffect)(()=>{e.disabled&&n(!1)},[e.disabled]);let a=(0,h.use)(Lg).withinGroup,o=L(),s=Un(),c=(0,h.useCallback)(e=>{n(e),e&&b(o)},[o]),{x:l,y:u,context:d,refs:f,placement:p,middlewareData:{arrow:{x:m,y:g}={},hide:_}}=Ic({strategy:e.strategy,placement:e.position,open:i,onOpenChange:c,middleware:pee(e),whileElementsMounted:Es}),{delay:v,currentId:y,setCurrentId:b}=Oc(d,{id:o}),{getReferenceProps:x,getFloatingProps:S}=Bc([Cc(d,{enabled:!e.disabled&&e.events?.hover,delay:a?v:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events?.touch,handleClose:e.interactive?Kc():null}),Rc(d,{enabled:!e.disabled&&e.events?.focus,visibleOnly:!0}),Hc(d,{role:`tooltip`}),Pc(d,{enabled:e.opened===void 0})]),w=(0,h.useRef)(p);C(()=>{w.current!==p&&(w.current=p,e.onPositionChange?.(p))},[p]);let T=i&&y&&y!==o;return{x:l,y:u,arrowX:m,arrowY:g,reference:f.setReference,floating:f.setFloating,getFloatingProps:S,getReferenceProps:x,isGroupPhase:T,opened:i,placement:p,referenceHidden:e.hideDetached&&s!==`test`?_?.referenceHidden:!1}}var hee={position:`top`,refProp:`ref`,withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:`side`,offset:5,transitionProps:{duration:100,transition:`fade`},events:{hover:!0,focus:!1,touch:!1},zIndex:Mt(`popover`),middlewares:{flip:!0,shift:!0,inline:!1},hideDetached:!0},zg=$t((e,{radius:t,color:n,variant:r,autoContrast:i})=>{let a=e.variantColorResolver({theme:e,color:n||e.primaryColor,autoContrast:i,variant:r||`filled`});return{tooltip:{"--tooltip-radius":t===void 0?void 0:Lt(t),"--tooltip-bg":n?a.background:void 0,"--tooltip-color":n?a.color:void 0}}}),Bg=W(e=>{let t=U(`Tooltip`,hee,e),{children:n,position:r,refProp:i,label:a,openDelay:o,closeDelay:s,onPositionChange:c,opened:l,defaultOpened:u,withinPortal:d,radius:f,color:p,classNames:m,styles:g,unstyled:_,style:v,className:y,withArrow:b,arrowSize:x,arrowOffset:S,arrowRadius:C,arrowPosition:w,offset:T,transitionProps:E,multiline:D,events:O,interactive:k,zIndex:A,disabled:j,onClick:M,onMouseEnter:N,onMouseLeave:P,inline:F,variant:ee,keepMounted:I,vars:te,portalProps:L,mod:ne,floatingStrategy:re,middlewares:ie,autoContrast:oe,attributes:se,target:R,hideDetached:ce,ref:le,...z}=t,{dir:ue}=Ai(),de=(0,h.useRef)(null),fe=mee({position:fl(ue,r),closeDelay:s,openDelay:o,onPositionChange:c,opened:l,defaultOpened:u,disabled:j,events:O,interactive:k,arrowRef:de,arrowOffset:S,offset:typeof T==`number`?T+(b?x/2:0):T,inline:F,strategy:re,middlewares:ie,hideDetached:ce});(0,h.useEffect)(()=>{let e=R instanceof HTMLElement?R:typeof R==`string`?document.querySelector(R):R?.current||null;e&&fe.reference(e)},[R,fe]);let pe=zr({name:`Tooltip`,props:t,classes:Pg,className:y,style:v,classNames:m,styles:g,unstyled:_,attributes:se,rootSelector:`tooltip`,vars:te,varsResolver:zg}),me=Qt(n);if(!R&&!me)throw Error(`[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported`);let he=pe(`tooltip`),ge=k&&!j&&!!fe.opened,_e=w===`merge`&&b?ul({position:fe.placement,dir:ue}):void 0;if(R){let e=jl(E,{duration:100,transition:`fade`});return(0,H.jsx)(H.Fragment,{children:(0,H.jsx)(Cl,{...L,withinPortal:d,children:(0,H.jsx)(kl,{...e,keepMounted:I,mounted:!j&&!!fe.opened,duration:fe.isGroupPhase?10:e.duration,children:e=>(0,H.jsxs)(G,{...z,"data-fixed":re===`fixed`||void 0,variant:ee,mod:[{multiline:D,interactive:ge},ne],...he,...fe.getFloatingProps({ref:fe.floating,className:he.className,style:{...he.style,...e,..._e,zIndex:A,top:fe.y??0,left:fe.x??0,...fe.referenceHidden?{display:`none`}:null}}),children:[a,(0,H.jsx)(dl,{ref:de,arrowX:fe.arrowX,arrowY:fe.arrowY,visible:b,position:fe.placement,arrowSize:x,arrowOffset:S,arrowRadius:C,arrowPosition:w,...pe(`arrow`)})]})})})})}let ve=me.props,B=ae(fe.reference,qt(me),le),ye=jl(E,{duration:100,transition:`fade`});return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(Cl,{...L,withinPortal:d,children:(0,H.jsx)(kl,{...ye,keepMounted:I,mounted:!j&&!!fe.opened,duration:fe.isGroupPhase?10:ye.duration,children:e=>(0,H.jsxs)(G,{...z,"data-fixed":re===`fixed`||void 0,variant:ee,mod:[{multiline:D,interactive:ge},ne],...fe.getFloatingProps({ref:fe.floating,className:pe(`tooltip`).className,style:{...pe(`tooltip`).style,...e,..._e,zIndex:A,top:fe.y??0,left:fe.x??0,...fe.referenceHidden?{display:`none`}:null}}),children:[a,(0,H.jsx)(dl,{ref:de,arrowX:fe.arrowX,arrowY:fe.arrowY,visible:b,position:fe.placement,arrowSize:x,arrowOffset:S,arrowRadius:C,arrowPosition:w,...pe(`arrow`)})]})})}),(0,h.cloneElement)(me,fe.getReferenceProps({onClick:M,onMouseEnter:N,onMouseLeave:P,onMouseMove:t.onMouseMove,onPointerDown:t.onPointerDown,onPointerEnter:t.onPointerEnter,...ve,className:tn(y,ve.className),[i]:B}))]})});Bg.classes=Pg,Bg.varsResolver=zg,Bg.displayName=`@mantine/core/Tooltip`,Bg.Floating=Ig,Bg.Group=Rg;function gee({size:e,thickness:t,sum:n,value:r,root:i,offset:a}){let o=(e*.9-t*2)/2,s=Math.PI*o*2/100,c=i||r===void 0?`${(100-n)*s}, ${n*s}`:`${r*s}, ${(100-r)*s}`;return{strokeWidth:Number.isNaN(t)?12:t,cx:e/2||0,cy:e/2||0,r:o||0,transform:i?`scale(1, -1) translate(0, -${e})`:void 0,strokeDasharray:c,strokeDashoffset:i?0:a||0}}function Vg({size:e,value:t,offset:n,sum:r,thickness:i,root:a,color:o,lineRoundCaps:s,tooltip:c,getStyles:l,display:u,...d}){let f=cr();return(0,H.jsx)(Bg.Floating,{disabled:!c,label:c,children:(0,H.jsx)(G,{component:`circle`,...d,...l(`curve`),__vars:{"--curve-color":o?bn(o,f):void 0},fill:`none`,strokeLinecap:s?`round`:`butt`,...gee({sum:r,size:e,thickness:i,value:t,offset:n,root:a})})})}Vg.displayName=`@mantine/core/Curve`;function _ee({size:e,thickness:t,sections:n,renderRoundedLineCaps:r,rootColor:i,sectionGap:a=0}){let o=n.reduce((e,t)=>e+t.value,0),s=Math.PI*((e*.9-t*2)/2)*2,c=s,l=[],u=[],d=a/360*100;for(let e=0;e2){u.push({...l[0],lineRoundCaps:r}),u.push({...l[l.length-2],lineRoundCaps:r});for(let e=1;e<=l.length-3;e+=1)u.push({...l[e],lineRoundCaps:!1})}else u.push({...l[0],lineRoundCaps:r});return u}var Hg={root:`m_b32e4812`,svg:`m_d43b5134`,curve:`m_b1ca1fbf`,label:`m_b23f9dc4`};function vee(e,t){return Math.min(e||12,(t||120)/4)}var yee={size:120,thickness:12,startAngle:270},Ug=$t((e,{size:t,thickness:n,transitionDuration:r,startAngle:i})=>({root:{"--rp-size":V(t),"--rp-label-offset":V(n*2),"--rp-transition-duration":r?`${r}ms`:void 0},svg:{"--rp-start-angle":`${i}deg`}})),Wg=W(e=>{let t=U(`RingProgress`,yee,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,label:c,sections:l,size:u,thickness:d,roundCaps:f,rootColor:p,transitionDuration:m,sectionGap:g,startAngle:_,attributes:v,...y}=t,b=zr({name:`RingProgress`,classes:Hg,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:v,vars:s,varsResolver:Ug}),x=vee(d,u),S=_ee({size:u,thickness:x,sections:l,renderRoundedLineCaps:f,rootColor:p,sectionGap:g}).map(({data:e,sum:t,root:n,lineRoundCaps:r,offset:i},a)=>(0,h.createElement)(Vg,{...e,key:a,size:u,thickness:x,sum:t,offset:i,color:e?.color,root:n,lineRoundCaps:r,getStyles:b}));return(0,H.jsxs)(G,{...b(`root`),size:u,...y,children:[(0,H.jsx)(`svg`,{...b(`svg`),viewBox:`0 0 ${u} ${u}`,children:S}),c&&(0,H.jsx)(`div`,{...b(`label`),children:c})]})});Wg.classes=Hg,Wg.varsResolver=Ug,Wg.displayName=`@mantine/core/RingProgress`;var Gg={root:`m_cf365364`,indicator:`m_9e182ccd`,label:`m_1738fcb2`,input:`m_1714d588`,control:`m_69686b9b`,innerLabel:`m_78882f40`},bee={withItemsBorders:!0},Kg=$t((e,{radius:t,color:n,transitionDuration:r,size:i,transitionTimingFunction:a})=>({root:{"--sc-radius":t===void 0?void 0:Lt(t),"--sc-color":n?bn(n,e):void 0,"--sc-shadow":n?void 0:`var(--mantine-shadow-xs)`,"--sc-transition-duration":r===void 0?void 0:`${r}ms`,"--sc-transition-timing-function":a,"--sc-padding":Ft(i,`sc-padding`),"--sc-font-size":Rt(i)}})),qg=xi(e=>{let t=U(`SegmentedControl`,bee,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,data:c,value:l,defaultValue:u,onChange:d,size:f,name:p,disabled:m,readOnly:g,fullWidth:_,orientation:v,radius:y,color:b,transitionDuration:x,transitionTimingFunction:S,variant:C,autoContrast:w,withItemsBorders:T,mod:E,attributes:D,ref:O,...k}=t,A=zr({name:`SegmentedControl`,props:t,classes:Gg,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:D,vars:s,varsResolver:Kg}),j=cr(),M=c.map(e=>Jt(e)?{label:`${e}`,value:e}:e),N=xe(),[P,F]=(0,h.useState)(0),[ee,I]=(0,h.useState)(null),[te,ne]=(0,h.useState)({}),re=(e,t)=>{e!==null&&te[t]!==e&&(te[t]=e,ne({...te}))},[ie,se]=oe({value:l,defaultValue:u,finalValue:Array.isArray(c)?M.find(e=>!e.disabled)?.value??c[0]?.value??null:null,onChange:d}),R=L(p),ce=M.map(e=>`${e.value}`),le=M.map(e=>(0,h.createElement)(G,{...A(`control`),mod:{active:ie===e.value,orientation:v},key:`${e.value}`},(0,h.createElement)(`input`,{...A(`input`),disabled:m||e.disabled,type:`radio`,name:R,value:`${e.value}`,id:`${R}-${e.value}`,checked:ie===e.value,onChange:()=>!g&&se(e.value),"data-focus-ring":j.focusRing,key:`${e.value}-input`}),(0,h.createElement)(G,{component:`label`,...A(`label`),mod:{active:ie===e.value&&!(m||e.disabled),disabled:m||e.disabled,"read-only":g},htmlFor:`${R}-${e.value}`,ref:t=>re(t,`${e.value}`),__vars:{"--sc-label-color":b===void 0?void 0:An({color:b,theme:j,autoContrast:w})},key:`${e.value}-label`},(0,H.jsx)(`span`,{...A(`innerLabel`),children:e.label})))),z=ae(O,I);return de(()=>{F(e=>e+1)},[c.length]),de(()=>{ne(e=>{let t={};return ce.forEach(n=>{n in e&&(t[n]=e[n])}),Object.keys(t).length===Object.keys(e).length?e:t})},[ce]),c.length===0?null:(0,H.jsxs)(G,{...A(`root`),variant:C,size:f,ref:z,mod:[{"full-width":_,orientation:v,initialized:N,"with-items-borders":T},E],...k,role:`radiogroup`,"data-disabled":m,children:[ie!==void 0&&(0,H.jsx)(Ef,{target:te[`${ie}`],parent:ee,component:`span`,transitionDuration:`var(--sc-transition-duration)`,...A(`indicator`)},P),le]})});qg.classes=Gg,qg.varsResolver=Kg,qg.displayName=`@mantine/core/SegmentedControl`;var xee={size:`sm`,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:`left`,openOnFocus:!0},Jg=xi(e=>{let t=U([`Input`,`InputWrapper`,`Select`],xee,e),{classNames:n,styles:r,unstyled:i,vars:a,dropdownOpened:o,defaultDropdownOpened:s,onDropdownClose:c,onDropdownOpen:l,onFocus:u,onBlur:d,onClick:f,onChange:p,data:m,value:g,defaultValue:_,selectFirstOptionOnChange:v,selectFirstOptionOnDropdownOpen:y,onOptionSubmit:b,comboboxProps:x,readOnly:S,disabled:C,filter:w,limit:T,withScrollArea:E,maxDropdownHeight:D,floatingHeight:O,size:k,searchable:A,rightSection:j,checkIconPosition:M,withCheckIcon:N,withAlignedLabels:P,nothingFoundMessage:F,name:ee,form:I,searchValue:te,defaultSearchValue:ne,onSearchChange:re,allowDeselect:ie,error:ae,rightSectionPointerEvents:se,id:R,clearable:ce,clearSectionMode:le,clearButtonProps:z,hiddenInputProps:ue,renderOption:de,onClear:fe,autoComplete:pe,scrollAreaProps:me,__defaultRightSection:he,__clearSection:ge,__clearable:_e,chevronColor:ve,autoSelectOnBlur:B,openOnFocus:be,attributes:xe,...Se}=t,Ce=(0,h.useMemo)(()=>Ap(m),[m]),we=(0,h.useRef)({}),Te=(0,h.useMemo)(()=>jp(Ce),[Ce]),Ee=L(R),De=_m({id:Ee,label:Se.label,labelProps:Se.labelProps,inputWrapperOrder:Se.inputWrapperOrder}),[Oe,ke,Ae]=oe({value:g,defaultValue:_,finalValue:null,onChange:p}),je=Oe==null?void 0:`${Oe}`in Te?Te[`${Oe}`]:we.current[`${Oe}`],Me=ye(je),[Ne,Pe,Fe]=oe({value:te,defaultValue:ne,finalValue:je?je.label:``,onChange:re}),Ie=am({opened:o,defaultOpened:s,onDropdownOpen:()=>{l?.(),y?Ie.selectFirstOption():Ie.updateSelectedOptionIndex(`active`,{scrollIntoView:!0})},onDropdownClose:()=>{c?.(),setTimeout(Ie.resetSelectedOption,0)}}),Le=e=>{Pe(e),Ie.resetSelectedOption()},{resolvedClassNames:Re,resolvedStyles:ze}=wr({props:t,styles:r,classNames:n});(0,h.useEffect)(()=>{v&&Ie.selectFirstOption()},[v,Ne]),(0,h.useEffect)(()=>{g===null&&Le(``),g!=null&&je&&(Me?.value!==je.value||Me?.label!==je.label)&&Le(je.label)},[g,je]),(0,h.useEffect)(()=>{!Ae&&!Fe&&Le(Oe==null?``:`${Oe}`in Te?Te[`${Oe}`]?.label:we.current[`${Oe}`]?.label||``)},[Te,Oe]),(0,h.useEffect)(()=>{Oe&&`${Oe}`in Te&&(we.current[`${Oe}`]=Te[`${Oe}`])},[Te,Oe]);let Be=(0,H.jsx)(cm.ClearButton,{...z,onClear:()=>{ke(null,null),Le(``),fe?.()}}),Ve=ce&&Oe!=null&&!C&&!S;return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(cm,{store:Ie,__staticSelector:`Select`,classNames:Re,styles:ze,unstyled:i,readOnly:S,size:k,attributes:xe,floatingHeight:O,keepMounted:B,onOptionSubmit:e=>{b?.(e);let t=ie&&`${Te[e].value}`==`${Oe}`?null:Te[e],n=t?t.value:null;n!==Oe&&ke(n,t),!Ae&&Le(n==null?``:t?.label||``),Ie.closeDropdown()},...x,children:[(0,H.jsx)(cm.Target,{targetType:A?`input`:`button`,autoComplete:pe,withExpandedAttribute:!0,children:(0,H.jsx)(vf,{id:Ee,__defaultRightSection:(0,H.jsx)(cm.Chevron,{size:k,error:ae,unstyled:i,color:ve}),__clearSection:Be,__clearable:Ve,__clearSectionMode:le,rightSection:j,rightSectionPointerEvents:se||`none`,...Se,size:k,__staticSelector:`Select`,disabled:C,readOnly:S||!A,value:Ne,onChange:e=>{if(Lm(e)){if(!S){let t=aee(Te,e.currentTarget.value);t&&`${t.value}`!=`${Oe}`&&(ke(t.value,t),!Ae&&Le(t.label))}}else Le(e.currentTarget.value),Ie.openDropdown(),v&&Ie.selectFirstOption()},onFocus:e=>{be&&A&&Ie.openDropdown(),u?.(e)},onBlur:e=>{B&&Ie.clickSelectedOption(),Ie.closeDropdown();let t=Oe!=null&&(`${Oe}`in Te?Te[`${Oe}`]:we.current[`${Oe}`]);Le(t&&t.label||``),d?.(e)},onClick:e=>{A?Ie.openDropdown():Ie.toggleDropdown(),f?.(e)},classNames:Re,styles:ze,unstyled:i,pointer:!A,error:ae,attributes:xe})}),(0,H.jsx)(gm,{data:Ce,hidden:S||C,filter:w,search:Ne,limit:T,hiddenWhenEmpty:!F,withScrollArea:E,maxDropdownHeight:D,filterOptions:!!A&&je?.label!==Ne,value:Oe,checkIconPosition:M,withCheckIcon:N,withAlignedLabels:P,nothingFoundMessage:F,unstyled:i,labelId:De,"aria-label":De?void 0:Se[`aria-label`],renderOption:de,scrollAreaProps:me})]}),(0,H.jsx)(cm.HiddenInput,{value:Oe,name:ee,form:I,disabled:C,...ue})]})});Jg.classes={...vf.classes,...cm.classes},Jg.displayName=`@mantine/core/Select`;function Yg(e){if(e!==void 0)return typeof e==`number`?V(e):e}function See({spacing:e,verticalSpacing:t,cols:n,minColWidth:r,autoRows:i,selector:a}){let o=cr(),s=t===void 0?e:t,c=r!==void 0,l=xt({"--sg-spacing-x":It(Wt(e)),"--sg-spacing-y":It(Wt(s)),"--sg-auto-rows":i,...c?{"--sg-min-col-width":Yg(r)}:{"--sg-cols":Wt(n)?.toString()}}),u=ft(o.breakpoints).reduce((t,r)=>(t[r]||(t[r]={}),typeof e==`object`&&e[r]!==void 0&&(t[r][`--sg-spacing-x`]=It(e[r])),typeof s==`object`&&s[r]!==void 0&&(t[r][`--sg-spacing-y`]=It(s[r])),!c&&typeof n==`object`&&n[r]!==void 0&&(t[r][`--sg-cols`]=n[r]),t),{}),d=Ut(ft(u),o.breakpoints).filter(e=>ft(u[e.value]).length>0).map(e=>({query:`(min-width: ${o.breakpoints[e.value]})`,styles:u[e.value]}));return(0,H.jsx)(Wr,{styles:l,media:d,selector:a})}function Xg(e){return typeof e==`object`&&e?ft(e):[]}function Cee(e){return e.sort((e,t)=>_t(e)-_t(t))}function wee({spacing:e,verticalSpacing:t,cols:n,minColWidth:r}){return Cee(Array.from(new Set([...Xg(e),...Xg(t),...r===void 0?Xg(n):[]])))}function Zg({spacing:e,verticalSpacing:t,cols:n,minColWidth:r,autoRows:i,selector:a}){let o=t===void 0?e:t,s=r!==void 0,c=xt({"--sg-spacing-x":It(Wt(e)),"--sg-spacing-y":It(Wt(o)),"--sg-auto-rows":i,...s?{"--sg-min-col-width":Yg(r)}:{"--sg-cols":Wt(n)?.toString()}}),l=wee({spacing:e,verticalSpacing:t,cols:n,minColWidth:r}),u=l.reduce((t,r)=>(t[r]||(t[r]={}),typeof e==`object`&&e[r]!==void 0&&(t[r][`--sg-spacing-x`]=It(e[r])),typeof o==`object`&&o[r]!==void 0&&(t[r][`--sg-spacing-y`]=It(o[r])),!s&&typeof n==`object`&&n[r]!==void 0&&(t[r][`--sg-cols`]=n[r]),t),{}),d=l.map(e=>({query:`simple-grid (min-width: ${e})`,styles:u[e]}));return(0,H.jsx)(Wr,{styles:c,container:d,selector:a})}var Qg={container:`m_925c2d2c`,root:`m_2415a157`},$g={cols:1,spacing:`md`,type:`media`},e_=W(e=>{let t=U(`SimpleGrid`,$g,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,cols:c,verticalSpacing:l,spacing:u,type:d,minColWidth:f,autoFlow:p,autoRows:m,attributes:h,...g}=t,_=zr({name:`SimpleGrid`,classes:Qg,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s}),v=gi(),y=f===void 0?void 0:p||`auto-fill`;return d===`container`?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(Zg,{...t,selector:`.${v}`}),(0,H.jsx)(`div`,{..._(`container`),children:(0,H.jsx)(G,{..._(`root`,{className:v}),...g,"data-auto-cols":y})})]}):(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(See,{...t,selector:`.${v}`}),(0,H.jsx)(G,{..._(`root`,{className:v}),...g,"data-auto-cols":y})]})});e_.classes=Qg,e_.displayName=`@mantine/core/SimpleGrid`;var t_={root:`m_18320242`,"skeleton-fade":`m_299c329c`},Tee={visible:!0,animate:!0},n_=$t((e,{width:t,height:n,radius:r,circle:i})=>({root:{"--skeleton-height":V(n),"--skeleton-width":V(i?n:t),"--skeleton-radius":i?`1000px`:r===void 0?void 0:Lt(r)}})),r_=W(e=>{let t=U(`Skeleton`,Tee,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,width:c,height:l,circle:u,visible:d,radius:f,animate:p,mod:m,attributes:h,...g}=t,_=zr({name:`Skeleton`,classes:t_,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:n_});return(0,H.jsx)(G,{..._(`root`),mod:[{visible:d,animate:p},m],...g})});r_.classes=t_,r_.varsResolver=n_,r_.displayName=`@mantine/core/Skeleton`;var i_={root:`m_6d731127`},Eee={gap:`md`,align:`stretch`,justify:`flex-start`},a_=$t((e,{gap:t,align:n,justify:r})=>({root:{"--stack-gap":It(t),"--stack-align":n,"--stack-justify":r}})),o_=W(e=>{let t=U(`Stack`,Eee,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,align:c,justify:l,gap:u,variant:d,attributes:f,...p}=t,m=zr({name:`Stack`,props:t,classes:i_,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:a_});return(0,H.jsx)(G,{...m(`root`),variant:d,...p})});o_.classes=i_,o_.varsResolver=a_,o_.displayName=`@mantine/core/Stack`;var[s_,c_]=wt(`Table component was not found in the tree`),l_={table:`m_b23fa0ef`,th:`m_4e7aa4f3`,tr:`m_4e7aa4fd`,td:`m_4e7aa4ef`,tbody:`m_b2404537`,thead:`m_b242d975`,caption:`m_9e5a3ac7`,scrollContainer:`m_a100c15`,scrollContainerInner:`m_62259741`};function u_(e,t){if(!t)return;let n={};return t.columnBorder&&e.withColumnBorders&&(n[`data-with-column-border`]=!0),t.rowBorder&&e.withRowBorders&&(n[`data-with-row-border`]=!0),t.striped&&e.striped&&(n[`data-striped`]=e.striped),t.highlightOnHover&&e.highlightOnHover&&(n[`data-hover`]=!0),t.captionSide&&e.captionSide&&(n[`data-side`]=e.captionSide),t.stickyHeader&&e.stickyHeader&&(n[`data-sticky`]=!0),n}function d_(e,t){let n=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,r=W(r=>{let i=U(n,{},r),{classNames:a,className:o,style:s,styles:c,...l}=i,u=c_();return(0,H.jsx)(G,{component:e,...u_(u,t),...u.getStyles(e,{className:o,classNames:a,style:s,styles:c,props:i}),...l})});return r.displayName=`@mantine/core/${n}`,r.classes=l_,r}var f_=d_(`th`,{columnBorder:!0}),p_=d_(`td`,{columnBorder:!0}),m_=d_(`tr`,{rowBorder:!0,striped:!0,highlightOnHover:!0}),h_=d_(`thead`,{stickyHeader:!0}),g_=d_(`tbody`),__=d_(`tfoot`),v_=d_(`caption`,{captionSide:!0}),Dee={type:`scrollarea`},y_=$t((e,{minWidth:t,maxHeight:n,type:r})=>({scrollContainer:{"--table-min-width":V(t),"--table-max-height":V(n),"--table-overflow":r===`native`?`auto`:void 0}})),b_=W(e=>{let t=U(`TableScrollContainer`,Dee,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,minWidth:l,maxHeight:u,type:d,scrollAreaProps:f,attributes:p,...m}=t,h=zr({name:`TableScrollContainer`,classes:l_,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:s,varsResolver:y_,rootSelector:`scrollContainer`});return(0,H.jsx)(G,{component:d===`scrollarea`?Yc:`div`,...d===`scrollarea`?u?{offsetScrollbars:`xy`,...f}:{offsetScrollbars:`x`,...f}:{},...h(`scrollContainer`),...m,children:(0,H.jsx)(`div`,{...h(`scrollContainerInner`),children:c})})});b_.classes=l_,b_.varsResolver=y_,b_.displayName=`@mantine/core/TableScrollContainer`;function x_({data:e}){return(0,H.jsxs)(H.Fragment,{children:[e.caption&&(0,H.jsx)(v_,{children:e.caption}),e.head&&(0,H.jsx)(h_,{children:(0,H.jsx)(m_,{children:e.head.map((e,t)=>(0,H.jsx)(f_,{children:e},t))})}),e.body&&(0,H.jsx)(g_,{children:e.body.map((e,t)=>(0,H.jsx)(m_,{children:e.map((e,t)=>(0,H.jsx)(p_,{children:e},t))},t))}),e.foot&&(0,H.jsx)(__,{children:(0,H.jsx)(m_,{children:e.foot.map((e,t)=>(0,H.jsx)(f_,{children:e},t))})})]})}x_.displayName=`@mantine/core/TableDataRenderer`;var Oee={withRowBorders:!0,verticalSpacing:7},S_=$t((e,{layout:t,captionSide:n,horizontalSpacing:r,verticalSpacing:i,borderColor:a,stripedColor:o,highlightOnHoverColor:s,striped:c,highlightOnHover:l,stickyHeaderOffset:u,stickyHeader:d})=>({table:{"--table-layout":t,"--table-caption-side":n,"--table-horizontal-spacing":It(r),"--table-vertical-spacing":It(i),"--table-border-color":a?bn(a,e):void 0,"--table-striped-color":c&&o?bn(o,e):void 0,"--table-highlight-on-hover-color":l&&s?bn(s,e):void 0,"--table-sticky-header-offset":d?V(u):void 0}})),C_=W(e=>{let t=U(`Table`,Oee,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,horizontalSpacing:c,verticalSpacing:l,captionSide:u,stripedColor:d,highlightOnHoverColor:f,striped:p,highlightOnHover:m,withColumnBorders:g,withRowBorders:_,withTableBorder:v,borderColor:y,layout:b,data:x,children:S,stickyHeader:C,stickyHeaderOffset:w,mod:T,tabularNums:E,attributes:D,...O}=t,k=zr({name:`Table`,props:t,className:r,style:i,classes:l_,classNames:n,styles:a,unstyled:o,attributes:D,rootSelector:`table`,vars:s,varsResolver:S_,stable:!0}),A=p===!0?`odd`:p||void 0,j=u||`bottom`,M=(0,h.useMemo)(()=>({getStyles:k,stickyHeader:C,striped:A,highlightOnHover:m,withColumnBorders:g,withRowBorders:_,captionSide:j}),[k,C,A,m,g,_,j]);return(0,H.jsx)(s_,{value:M,children:(0,H.jsx)(G,{component:`table`,mod:[{withTableBorder:v,tabularNums:E},T],...k(`table`),...O,children:S||!!x&&(0,H.jsx)(x_,{data:x})})})});C_.classes=l_,C_.varsResolver=S_,C_.displayName=`@mantine/core/Table`,C_.Td=p_,C_.Th=f_,C_.Tr=m_,C_.Thead=h_,C_.Tbody=g_,C_.Tfoot=__,C_.Caption=v_,C_.ScrollContainer=b_,C_.DataRenderer=x_;var w_={root:`m_7341320d`},T_=$t((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o})=>{let s=e.variantColorResolver({color:a||e.primaryColor,theme:e,gradient:i,variant:r||`filled`,autoContrast:o});return{root:{"--ti-size":Ft(t,`ti-size`),"--ti-radius":n===void 0?void 0:Lt(n),"--ti-bg":a||r?s.background:void 0,"--ti-color":a||r?s.color:void 0,"--ti-bd":a||r?s.border:void 0}}}),E_=W(e=>{let t=U(`ThemeIcon`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,autoContrast:c,attributes:l,...u}=t,d=zr({name:`ThemeIcon`,classes:w_,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:l,vars:s,varsResolver:T_});return(0,H.jsx)(G,{...d(`root`),...u})});E_.classes=w_,E_.varsResolver=T_,E_.displayName=`@mantine/core/ThemeIcon`;var kee=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],Aee=[`xs`,`sm`,`md`,`lg`,`xl`];function jee(e,t){let n=t===void 0?`h${e}`:t;return kee.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:Aee.includes(n)?{fontSize:`var(--mantine-font-size-${n})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:V(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var D_={root:`m_8a5d1357`},Mee={order:1},O_=$t((e,{order:t,size:n,lineClamp:r,textWrap:i})=>{let a=jee(t||1,n);return{root:{"--title-fw":a.fontWeight,"--title-lh":a.lineHeight,"--title-fz":a.fontSize,"--title-line-clamp":typeof r==`number`?r.toString():void 0,"--title-text-wrap":i}}}),k_=W(e=>{let t=U(`Title`,Mee,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,order:s,vars:c,size:l,variant:u,lineClamp:d,textWrap:f,mod:p,attributes:m,...h}=t,g=zr({name:`Title`,props:t,classes:D_,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:m,vars:c,varsResolver:O_});return[1,2,3,4,5,6].includes(s)?(0,H.jsx)(G,{...g(`root`),component:`h${s}`,variant:u,mod:[{order:s,lineClamp:typeof d==`number`},p],size:l,...h}):null});k_.classes=D_,k_.varsResolver=O_,k_.displayName=`@mantine/core/Title`;var Nee=120,Pee=4,Fee=new Set([`classNames`,`styles`,`unstyled`,`vars`,`attributes`,`variant`,`color`,`radius`,`icon`,`title`,`loading`,`withBorder`,`withCloseButton`,`closeButtonProps`,`className`,`style`,`role`,`ref`,`children`,`mod`]);function Iee(e){let{rest:t}=qr(e);return Object.fromEntries(Object.entries(t).filter(([e,t])=>!Fee.has(e)&&t!==void 0))}function A_({data:e,onHide:t,autoClose:n,transitionDuration:r,allowDragDismiss:i,allowScrollDismiss:a,paused:o,withAutoCloseProgress:s,progressProps:c,onHoverStart:l,onHoverEnd:u,onExpandRequest:d,ref:f,style:p,renderNotification:m,layout:g,stackIndex:_,stackSize:v,stackPosition:y,stackExpanded:b,stackExpandedOffset:x,transitionState:S,...C}){let[w,E]=(0,h.useState)(0),[D,O]=(0,h.useState)(!1),[k,A]=(0,h.useState)(1),[j,M]=(0,h.useState)(!1),N=cr(),{autoClose:P,message:F,allowClose:ee,position:I,style:te,withCloseButton:L,renderNotification:ne,onOpen:re,priority:ie,withAutoCloseProgress:oe,__sequence:se,...R}=e,ce=dt(n,e.autoClose),[le,z]=(0,h.useState)({running:!1,cycle:0}),ue=(e.withAutoCloseProgress??s)&&typeof ce==`number`,de=(0,h.useRef)(-1),fe=(0,h.useRef)(-1),pe=(0,h.useRef)(-1),me=(0,h.useRef)(null),he=(0,h.useRef)(!1),ge=(0,h.useRef)(!1),_e=(0,h.useRef)(!1),ve=(0,h.useRef)(0),B=ee===!1,ye=()=>{let e=he.current||ge.current;e&&!_e.current?(_e.current=!0,l?.()):!e&&_e.current&&(_e.current=!1,u?.())},be=(0,h.useEffectEvent)(()=>{_e.current&&(_e.current=!1,u?.())});(0,h.useEffect)(()=>()=>be(),[]);let xe=()=>{window.clearTimeout(de.current),z(e=>e.running?{...e,running:!1}:e)},Se=()=>window.clearTimeout(fe.current),Ce=()=>window.clearTimeout(pe.current),we=e=>{ve.current=e,E(e)},Te=()=>{t(e.id),xe(),Se(),Ce()},Ee=(0,h.useRef)(o);(0,h.useEffect)(()=>{Ee.current=o});let De=()=>{D||Pe||he.current||ge.current||Ee.current||typeof ce!=`number`||(xe(),de.current=window.setTimeout(Te,ce),z(e=>({running:!0,cycle:e.cycle+1})))},Oe=e=>e*((me.current?.offsetWidth??440)+40),ke=(e,t)=>{let n=me.current?.offsetWidth??440;return Math.abs(e)>n*.35||t>.5},Ae=()=>{Ce(),M(!1),we(0)},je=e=>{A(e),O(!0),M(!1),we(Oe(e)),xe(),Se(),Ce(),fe.current=window.setTimeout(Te,r)},Me=()=>{Ce(),pe.current=window.setTimeout(()=>{M(!1),we(0),De()},Nee)},{ref:Ne,active:Pe}=He(e=>{if(!D){if(e.first&&xe(),e.last){if(e.tap||e.canceled){we(0),De();return}let t=e.movement[0],n=t===0?e.direction[0]===-1?-1:1:t>0?1:-1;ke(t,e.velocity[0])?je(n):(we(0),De())}else we(e.movement[0])}},{axis:`x`,threshold:5,filterTaps:!0,enabled:i&&!B&&!D}),Fe=ae(f,me,Ne),Ie=_i(p,N),Le=_i(te,N),Re={...Ie,...Le},ze=typeof Re.opacity==`number`?Re.opacity:1,Be=D?0:1-Math.min(Math.abs(w)/200,1)*.6,Ve=Re.transitionDuration??`${r}ms, ${r}ms, ${r}ms`,Ue=g===`stacked`,We=Ue&&_!==void 0&&_>0,Ge=We&&!b,Ke=S===`exiting`||S===`exited`,qe=y?.startsWith(`top`)?1:-1,Je=Math.min(_??0,Pee),Ye=Ge?Je*10*qe:0,Xe=Ue?(_||0)*30:0,Ze=Pe||j,Qe=()=>Ue?Ke?`translateY(${b?x||0:Ye}px) var(--notifications-state-transform) translate3d(var(--notifications-swipe-offset), 0, 0)`:b?`translateY(${x||0}px) translate3d(var(--notifications-swipe-offset), 0, 0)`:We?`scale(${1-Je*.03}) translateY(${Ye}px)`:`var(--notifications-state-transform) translate3d(var(--notifications-swipe-offset), 0, 0)`:`var(--notifications-state-transform) translate3d(var(--notifications-swipe-offset), 0, 0)`,$e={...Re,...Ue?{maxHeight:void 0}:{},"--notifications-state-transform":typeof Re.transform==`string`?Re.transform:`translateX(0)`,"--notifications-state-opacity":String(ze),"--notifications-swipe-offset":`${w}px`,"--notifications-swipe-opacity":String(Be),transform:Qe(),opacity:`calc(var(--notifications-state-opacity) * var(--notifications-swipe-opacity))`,transitionDuration:Ze?`0ms, 0ms, 0ms`:Ve,cursor:`default`,touchAction:`pan-y`,...Ue?{gridArea:`1 / 1`,zIndex:(v||5)-(_??0),pointerEvents:Ge?`none`:void 0,alignSelf:qe===1?`start`:`end`,transitionProperty:Ze?`none`:`transform, opacity`,transitionDuration:`${r}ms, ${r}ms`,transitionTimingFunction:`cubic-bezier(.51,.3,0,1.21), ease`,transitionDelay:Ze||Ke?`0ms`:`${Xe}ms`}:{}},et=()=>{he.current=!0,xe(),ye()},tt=()=>{he.current=!1,j||(Ae(),De()),ye()},nt=Ue?()=>{ge.current=!0,xe(),ye()}:void 0,rt=Ue?()=>{ge.current=!1,j||De(),ye()}:void 0,it=e=>{Ue&&(e.pointerType===`touch`||e.pointerType===`pen`)&&d?.()},at=(0,h.useEffectEvent)(e=>{if(D||Pe)return;let t=e.currentTarget===document;if(!t&&!he.current)return;let{deltaX:n,deltaY:r}=e;if(Math.abs(n)<=Math.abs(r)||n===0||!a||B)return;t||(e.preventDefault(),e.stopPropagation()),xe(),M(!0);let i=ve.current-n,o=i>0?1:-1;ke(i,0)?je(o):(we(i),Me())});(0,h.useEffect)(()=>{if(j)return document.addEventListener(`wheel`,at,{passive:!1}),()=>document.removeEventListener(`wheel`,at,{passive:!1})},[j]),(0,h.useEffect)(()=>{let e=()=>{D&&we(Oe(k))};return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[k,D]),(0,h.useEffect)(()=>{let e=me.current;if(e)return e.addEventListener(`wheel`,at,{passive:!1}),()=>e.removeEventListener(`wheel`,at,{passive:!1})},[]),(0,h.useEffect)(()=>()=>{Se(),Ce()},[]),(0,h.useEffect)(()=>{e.onOpen?.(e)},[]);let ot=(0,h.useRef)(S);(0,h.useEffect)(()=>{let t=ot.current===`exiting`;ot.current=S,S===`entering`&&t&&(Se(),D?(O(!1),M(!1),we(0)):De(),e.onOpen?.(e))},[S]),(0,h.useEffect)(()=>(De(),xe),[ce,Pe,D]),T(()=>{ue&&De()},[ue]),(0,h.useEffect)(()=>(o?xe():De(),xe),[o]);let st={...C,...R},ct={style:$e,inert:Ge,onMouseEnter:e=>{st.onMouseEnter?.(e),et()},onMouseLeave:e=>{st.onMouseLeave?.(e),tt()},onFocusCapture:e=>{st.onFocusCapture?.(e),nt?.()},onBlurCapture:e=>{st.onBlurCapture?.(e),rt?.()},onPointerDownCapture:e=>{st.onPointerDownCapture?.(e),it(e)}};if(m){let t=[C.className,R.className].filter(Boolean).join(` `);return(0,H.jsx)(`div`,{ref:Fe,role:R.role||C.role||`alert`,...Iee(st),className:t||void 0,...ct,children:m(e)})}return(0,H.jsxs)(Eg,{ref:Fe,...C,...R,...ct,withCloseButton:!B&&L,onClose:Te,children:[F,ue&&(0,H.jsx)(`div`,{"aria-hidden":!0,...c,"data-paused":!le.running||void 0,style:{...c.style,"--notifications-progress-duration":`${ce}ms`}},le.cycle)]})}A_.displayName=`@mantine/notifications/NotificationContainer`;var j_={root:`m_b37d9ac7`,notification:`m_5ed0edd0`,progress:`m_836192`,"notifications-progress":`m_5f780017`,"notifications-progress-fade-in":`m_bb245a60`};function M_(){return M_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),Ree=o(((e,t)=>{var n=Lee();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),I_=o(((e,t)=>{t.exports=Ree()()})),L_={disabled:!1},R_=h.createContext(null),zee=function(e){return e.scrollTop},z_=`unmounted`,B_=`exited`,V_=`entering`,H_=`entered`,U_=`exiting`,W_=function(e){F_(t,e);function t(t,n){var r=e.call(this,t,n)||this,i=n,a=i&&!i.isMounting?t.enter:t.appear,o;return r.appearStatus=null,t.in?a?(o=B_,r.appearStatus=V_):o=H_:o=t.unmountOnExit||t.mountOnEnter?z_:B_,r.state={status:o},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:B_}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==`entering`&&n!==`entered`&&(t=V_):(n===`entering`||n===`entered`)&&(t=U_)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=n=r=e,n,r;return e!=null&&typeof e!=`number`&&(t=e.exit,n=e.enter,r=e.appear===void 0?n:e.appear),{exit:t,enter:n,appear:r}},n.updateStatus=function(e,t){if(e===void 0&&(e=!1),t!==null){if(this.cancelNextCallback(),t===`entering`){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Ae.default.findDOMNode(this);n&&zee(n)}this.performEnter(e)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:z_})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[Ae.default.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;!e&&!n||L_.disabled?this.safeSetState({status:H_},function(){t.props.onEntered(a)}):(this.props.onEnter(a,o),this.safeSetState({status:V_},function(){t.props.onEntering(a,o),t.onTransitionEnd(c,function(){t.safeSetState({status:H_},function(){t.props.onEntered(a,o)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Ae.default.findDOMNode(this);!t||L_.disabled?this.safeSetState({status:B_},function(){e.props.onExited(r)}):(this.props.onExit(r),this.safeSetState({status:U_},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:B_},function(){e.props.onExited(r)})})}))},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Ae.default.findDOMNode(this),r=e==null&&!this.props.addEndListener;if(!n||r)setTimeout(this.nextCallback,0);else{if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}e!=null&&setTimeout(this.nextCallback,e)}},n.render=function(){var e=this.state.status;if(e===`unmounted`)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=N_(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return h.createElement(R_.Provider,{value:null},typeof n==`function`?n(e,r):h.cloneElement(h.Children.only(n),r))},t}(h.Component);W_.contextType=R_,W_.propTypes={};function G_(){}W_.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:G_,onEntering:G_,onEntered:G_,onExit:G_,onExiting:G_,onExited:G_},W_.UNMOUNTED=z_,W_.EXITED=B_,W_.ENTERING=V_,W_.ENTERED=H_,W_.EXITING=U_;function K_(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function q_(e,t){var n=function(e){return t&&(0,h.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&h.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function J_(e,t){e||={},t||={};function n(n){return n in t?t[n]:e[n]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var o,s={};for(var c in t){if(r[c])for(o=0;o({root:{"--notifications-z-index":t?.toString(),"--notifications-container-width":V(n)}})),av=W(e=>{let t=U(`Notifications`,Bee,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,position:l,autoClose:u,transitionDuration:d,allowDragDismiss:f,allowScrollDismiss:p,containerWidth:m,notificationMaxHeight:g,limit:_,zIndex:v,store:y,portalProps:b,withinPortal:x,pauseResetOnHover:S,renderNotification:C,layout:w,withAutoCloseProgress:E,...D}=t,O=cr(),k=Je(y),A=te(),j=se(),M=(0,h.useRef)({}),N=(0,h.useRef)(0),[P,F]=(0,h.useState)({}),[ee,I]=(0,h.useState)({}),[L,ne]=(0,h.useState)({}),[re,ie]=(0,h.useState)(null),ae=(0,h.useRef)({}),oe=Object.values(P).reduce((e,t)=>e+(t??0),0)+Object.values(L).filter(Boolean).length,R=(0,h.useCallback)(e=>F(t=>({...t,[e]:(t[e]??0)+1})),[]),ce=(0,h.useCallback)(e=>F(t=>({...t,[e]:Math.max(0,(t[e]??0)-1)})),[]),le=(0,h.useCallback)(e=>w===`stacked`?{onMouseEnter:()=>ne(t=>({...t,[e]:!0})),onMouseLeave:()=>ne(t=>({...t,[e]:!1}))}:{},[w]),z=(0,h.useCallback)(e=>ie(e),[]);(0,h.useEffect)(()=>{if(w!==`stacked`)return;let e=ae.current;return ot.forEach(t=>{(P[t]??0)>0||L[t]||re===t?(window.clearTimeout(e[t]),I(e=>e[t]?e:{...e,[t]:!0})):e[t]=window.setTimeout(()=>{I(e=>e[t]?{...e,[t]:!1}:e)},200)}),()=>ot.forEach(t=>window.clearTimeout(e[t]))},[P,L,re,w]),(0,h.useEffect)(()=>{if(!re)return;let e=e=>{let t=e.target;t!==null&&Object.values(M.current).some(e=>e?.contains(t))||ie(null)};return document.addEventListener(`pointerdown`,e),()=>document.removeEventListener(`pointerdown`,e)},[re]);let ue=st(k.notifications,l),de=re?ue[re].length:0;(0,h.useEffect)(()=>{(w!==`stacked`||re!==null&&de===0)&&ie(null)},[de,re,w]),(0,h.useEffect)(()=>{w!==`stacked`&&ne(e=>Object.values(e).some(Boolean)?{}:e)},[w]);let fe=(0,h.useRef)(null),pe=(0,h.useRef)({}),me=(0,h.useRef)(new WeakMap),he=(0,h.useCallback)((e,t)=>{let n=t.offsetHeight;return pe.current[e]!==n&&(pe.current[e]=n,!0)},[]);(0,h.useEffect)(()=>{if(w!==`stacked`||typeof ResizeObserver>`u`)return;let e=new ResizeObserver(e=>{let t=!1;e.forEach(e=>{let n=me.current.get(e.target);n&&he(n,e.target)&&(t=!0)}),t&&A()});return fe.current=e,Object.values(M.current).forEach(t=>t&&e.observe(t)),()=>{e.disconnect(),fe.current=null}},[w,A,he]);let ge=(0,h.useRef)({}),_e=(0,h.useCallback)(e=>(ge.current[e]||(ge.current[e]=t=>{let n=M.current[e];n&&n!==t&&(fe.current?.unobserve(n),me.current.delete(n)),t?(M.current[e]=t,me.current.set(t,e),he(e,t),fe.current?.observe(t)):(delete M.current[e],delete ge.current[e],delete pe.current[e])}),ge.current[e]),[he]),ve=O.respectReducedMotion&&j?1:d,B=zr({name:`Notifications`,classes:j_,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c,vars:s,varsResolver:iv});(0,h.useEffect)(()=>{y?.updateState(e=>({...e,limit:_||5,defaultPosition:l}))},[_,l]),T(()=>{k.notifications.length>N.current&&setTimeout(()=>A(),0),N.current=k.notifications.length},[k.notifications]);let ye=ot.reduce((e,t)=>{let n=ue[t].length,r=Array(n).fill(0),i=w===`stacked`&&!!ee[t],a=w===`stacked`?[...ue[t]].sort((e,t)=>(t.priority??0)-(e.priority??0)||(t.__sequence??0)-(e.__sequence??0)):ue[t];if(i&&n>0){let e=t.startsWith(`top`)?1:-1,i=0;for(let t=0;t{let{style:o,...s}=e;return(0,H.jsx)(tv,{timeout:ve,onEnter:()=>M.current[s.id].offsetHeight,nodeRef:{current:M.current[s.id]},children:e=>(0,H.jsx)(A_,{ref:_e(s.id),data:s,onHide:e=>Ze(e,y),autoClose:u,transitionDuration:ve,allowDragDismiss:f,allowScrollDismiss:p,paused:S===`all`&&oe>0||w===`stacked`&&!i&&a>0,onHoverStart:()=>R(t),onHoverEnd:()=>ce(t),onExpandRequest:()=>z(t),renderNotification:`renderNotification`in s?s.renderNotification:C,layout:w,withAutoCloseProgress:E,progressProps:B(`progress`),stackIndex:a,stackSize:n,stackPosition:t,stackExpanded:i,stackExpandedOffset:r[a],transitionState:e,...B(`notification`,{style:{...ut({state:e,position:t,transitionDuration:ve,maxHeight:g}),...o}})})},s.id)}),e},{});return(0,H.jsxs)(Cl,{withinPortal:x,...b,children:[(0,H.jsx)(G,{...B(`root`),"data-position":`top-center`,"data-layout":w,...D,children:(0,H.jsx)(ev,{...le(`top-center`),children:ye[`top-center`]})}),(0,H.jsx)(G,{...B(`root`),"data-position":`top-left`,"data-layout":w,...D,children:(0,H.jsx)(ev,{...le(`top-left`),children:ye[`top-left`]})}),(0,H.jsx)(G,{...B(`root`,{className:Md.classNames.fullWidth}),"data-position":`top-right`,"data-layout":w,...D,children:(0,H.jsx)(ev,{...le(`top-right`),children:ye[`top-right`]})}),(0,H.jsx)(G,{...B(`root`,{className:Md.classNames.fullWidth}),"data-position":`bottom-right`,"data-layout":w,...D,children:(0,H.jsx)(ev,{...le(`bottom-right`),children:ye[`bottom-right`]})}),(0,H.jsx)(G,{...B(`root`),"data-position":`bottom-left`,"data-layout":w,...D,children:(0,H.jsx)(ev,{...le(`bottom-left`),children:ye[`bottom-left`]})}),(0,H.jsx)(G,{...B(`root`),"data-position":`bottom-center`,"data-layout":w,...D,children:(0,H.jsx)(ev,{...le(`bottom-center`),children:ye[`bottom-center`]})})]})});av.classes=j_,av.varsResolver=iv,av.displayName=`@mantine/notifications/Notifications`,av.show=at.show,av.hide=at.hide,av.update=at.update,av.promise=at.promise,av.clean=at.clean,av.cleanQueue=at.cleanQueue,av.updateState=at.updateState;var Vee=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-Tt&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Hee=o(((e,t)=>{t.exports=Vee()})),Uee=o((e=>{var t=Hee(),n=m(),r=ke();function i(e){var t=`https://react.dev/errors/`+e;if(1pe||(e.current=fe[pe],fe[pe]=null,pe--)}function ge(e,t){pe++,fe[pe]=e.current,e.current=t}var _e=me(null),ve=me(null),B=me(null),ye=me(null);function be(e,t){switch(ge(B,t),ge(ve,e),ge(_e,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?hp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=hp(t),e=gp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}he(_e),ge(_e,e)}function xe(){he(_e),he(ve),he(B)}function Se(e){var t=e.memoizedState;t!==null&&(fh._currentValue=t.memoizedState,ge(ye,e)),t=_e.current;var n=gp(t,e.type);t!==n&&(ge(ve,e),ge(_e,n))}function Ce(e){ve.current===e&&(he(_e),he(ve)),ye.current===e&&(he(ye),fh._currentValue=de)}var we,Te;function Ee(e){if(we===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);we=t&&t[1]||``,Te=-1)`:-1i||c[r]!==l[i]){var u=` -`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{De=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Ee(n):``}function Ae(e,t){switch(e.tag){case 26:case 27:case 5:return Ee(e.type);case 16:return Ee(`Lazy`);case 13:return e.child!==t&&t!==null?Ee(`Suspense Fallback`):Ee(`Suspense`);case 19:return Ee(`SuspenseList`);case 0:case 15:return Oe(e.type,!1);case 11:return Oe(e.type.render,!1);case 1:return Oe(e.type,!0);case 31:return Ee(`Activity`);case 30:return Ee(`ViewTransition`);default:return``}}function je(e){try{var t=``,n=null;do t+=Ae(e,n),n=e,e=e.return;while(e);return t}catch(e){return` -Error generating stack: `+e.message+` -`+e.stack}}var Me=Object.prototype.hasOwnProperty,Ne=t.unstable_scheduleCallback,Pe=t.unstable_cancelCallback,Fe=t.unstable_shouldYield,Ie=t.unstable_requestPaint,Le=t.unstable_now,Re=t.unstable_getCurrentPriorityLevel,ze=t.unstable_ImmediatePriority,Be=t.unstable_UserBlockingPriority,Ve=t.unstable_NormalPriority,He=t.unstable_LowPriority,Ue=t.unstable_IdlePriority,We=t.log,Ge=t.unstable_setDisableYieldValue,Ke=null,qe=null;function Je(e){if(typeof We==`function`&&Ge(e),qe&&typeof qe.setStrictMode==`function`)try{qe.setStrictMode(Ke,e)}catch{}}var Ye=Math.clz32?Math.clz32:Qe,Xe=Math.log,Ze=Math.LN2;function Qe(e){return e>>>=0,e===0?32:31-(Xe(e)/Ze|0)|0}var $e=256,et=262144,tt=4194304;function nt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function rt(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=nt(n))):i=nt(o):i=nt(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=nt(n))):i=nt(o)):i=nt(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function it(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function at(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0n;n++)t.push(e);return t}function lt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ut(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0=cr),dr=` `,fr=!1;function pr(e,t){switch(e){case`keyup`:return or.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function mr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var hr=!1;function gr(e,t){switch(e){case`compositionend`:return mr(t);case`keypress`:return t.which===32?(fr=!0,dr):null;case`textInput`:return e=t.data,e===dr&&fr?null:e;default:return null}}function _r(e,t){if(hr)return e===`compositionend`||!sr&&pr(e,t)?(e=An(),kn=On=Dn=null,hr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=zr(n)}}function Vr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Vr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Hr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Rr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Rr(e.document)}return t}function Ur(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Wr=wn&&`documentMode`in document&&11>=document.documentMode,Gr=null,Kr=null,qr=null,Jr=!1;function Yr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Jr||Gr==null||Gr!==Rr(r)||(r=Gr,`selectionStart`in r&&Ur(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),qr&&Lr(qr,r)||(qr=r,r=Qf(Kr,`onSelect`),0>=o,i-=o,Ui=1<<32-Ye(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Qi&&Gi(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Qi&&Gi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Qi&&Gi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Qi&&Gi(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===k&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case D:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===k){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),no(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===te&&Ya(l)===r.type){n(e,r.sibling),c=a(r,o.props),no(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===k?(c=Ai(o.props.children,e.mode,c,o.key),no(c,o),c.return=e,e=c):(c=ki(o.type,o.key,o.props,null,e.mode,c),no(c,o),c.return=e,e=c)}return s(e);case O:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Ni(o,e.mode,c),c.return=e,e=c}return s(e);case te:return o=Ya(o),_(e,r,o,c)}if(le(o))return h(e,r,o,c);if(se(o)){if(l=se(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,to(o),c);if(o.$$typeof===N)return _(e,r,ba(e,o),c);ro(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=ji(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{eo=0;var i=_(e,t,n,r);return $a=null,i}catch(t){if(t===Ua||t===Ga)throw t;var a=Ei(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var ao=io(!0),oo=io(!1),so=!1;function co(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function uo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function fo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Qu&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Ci(e),Si(e,null,n),t}return bi(e,r,t,n),Ci(e)}function po(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ft(e,n)}}function mo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var ho=!1;function go(){if(ho){var e=Pa;if(e!==null)throw e}}function _o(e,t,n,r){ho=!1;var i=e.updateQueue;so=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(td&f)===f:(r&f)===f){f!==0&&f===Na&&(ho=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=T({},d,f);break a;case 2:so=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),ld|=o,e.lanes=o,e.memoizedState=d}}function vo(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function yo(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=z.T,s={};s.types=o===null?null:o.types,z.T=s,sc(e,!1,t,n);try{var c=i(),l=z.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?oc(e,t,La(c,r),Pd(e)):oc(e,t,r,Pd(e))}catch(n){oc(e,t,{then:function(){},status:`rejected`,reason:n},Pd())}finally{ue.p=a,o!==null&&s.types!==null&&(o.types=s.types),z.T=o}}function Xs(){}function Zs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Qs(e).queue;Ys(e,a,t,de,n===null?Xs:function(){return $s(e),n(r)})}function Qs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:de,baseState:de,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cs,lastRenderedState:de},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cs,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function $s(e){var t=Qs(e);t.next===null&&(t=e.alternate.memoizedState),oc(e,t.next.queue,{},Pd())}function ec(){return ya(fh)}function tc(){return rs().memoizedState}function nc(){return rs().memoizedState}function rc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Pd();e=uo(n);var r=fo(t,e,n);r!==null&&(Ld(r,t,n),po(r,t,n)),t={cache:Ea()},e.payload=t;return}t=t.return}}function ic(e,t,n){var r=Pd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},cc(e)?lc(t,n):(n=W(e,t,n,r),n!==null&&(Ld(n,e,r),uc(n,t,r)))}function ac(e,t,n){oc(e,t,n,Pd())}function oc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(cc(e))lc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Ir(s,o))return bi(e,t,i,0),$u===null&&yi(),!1}catch{}if(n=W(e,t,i,r),n!==null)return Ld(n,e,r),uc(n,t,r),!0}return!1}function sc(e,t,n,r){if(r={lane:2,revertLane:Rf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},cc(e)){if(t)throw Error(i(479))}else t=W(e,n,r,2),t!==null&&Ld(t,e,2)}function cc(e){var t=e.alternate;return e===Lo||t!==null&&t===Lo}function lc(e,t){Vo=Bo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function uc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ft(e,n)}}var dc={readContext:ya,use:os,useCallback:qo,useContext:qo,useEffect:qo,useImperativeHandle:qo,useLayoutEffect:qo,useInsertionEffect:qo,useMemo:qo,useReducer:qo,useRef:qo,useState:qo,useDebugValue:qo,useDeferredValue:qo,useTransition:qo,useSyncExternalStore:qo,useId:qo,useHostTransitionStatus:qo,useFormState:qo,useActionState:qo,useOptimistic:qo,useMemoCache:qo,useCacheRefresh:qo,useEffectEvent:qo},fc={readContext:ya,use:os,useCallback:function(e,t){return ns().memoizedState=[e,t===void 0?null:t],e},useContext:ya,useEffect:Is,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Ps(4194308,4,Hs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ps(4194308,4,e,t)},useInsertionEffect:function(e,t){Ps(4,2,e,t)},useMemo:function(e,t){var n=ns();t=t===void 0?null:t;var r=e();if(Ho){Je(!0);try{e()}finally{Je(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ns();if(n!==void 0){var i=n(t);if(Ho){Je(!0);try{n(t)}finally{Je(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=ic.bind(null,Lo,e),[r.memoizedState,e]},useRef:function(e){var t=ns();return e={current:e},t.memoizedState=e},useState:function(e){e=vs(e);var t=e.queue,n=ac.bind(null,Lo,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ws,useDeferredValue:function(e,t){return qs(ns(),e,t)},useTransition:function(){var e=vs(!1);return e=Ys.bind(null,Lo,e.queue,!0,!1),ns().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Lo,a=ns();if(Qi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),$u===null)throw Error(i(349));td&127||ps(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Is(hs.bind(null,r,o,e),[e]),r.flags|=2048,Ms(9,{destroy:void 0},ms.bind(null,r,o,n,t),null),n},useId:function(){var e=ns(),t=$u.identifierPrefix;if(Qi){var n=Wi,r=Ui;n=(r&~(1<<32-Ye(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Uo++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[yt]=t,o[V]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(sp(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&ul(t)}}return hl(t),t.subtreeFlags&=-33554433,dl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&ul(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=B.current,aa(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Xi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[yt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||ip(e.nodeValue,n)),e||na(t,!0)}else e=mp(e).createTextNode(r),e[yt]=t,t.stateNode=e}return hl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=aa(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[yt]=t}else oa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;hl(t),e=!1}else n=sa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(jo(t),t):(jo(t),null);if(t.flags&128)throw Error(i(558))}return hl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=aa(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[yt]=t}else oa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;hl(t),a=!1}else a=sa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(jo(t),t):(jo(t),null)}return jo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),pl(t,t.updateQueue),hl(t),null);case 4:return xe(),e===null&&Jf(t.stateNode.containerInfo),t.flags|=67108864,hl(t),null;case 10:return pa(t.type),hl(t),null;case 19:if(Po(t),r=t.memoizedState,r===null)return hl(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)ml(r,!1);else{if(cd!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Fo(e),o!==null){for(t.flags|=128,ml(r,!1),e=o.updateQueue,t.updateQueue=e,pl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)G(n,e),n=n.sibling;return No(t,Mo.current&1|2),Qi&&Gi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Le()>yd&&(t.flags|=128,a=!0,ml(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Fo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,pl(t,e),ml(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!Qi)return hl(t),null}else 2*Le()-r.renderingStartTime>yd&&n!==536870912&&(t.flags|=128,a=!0,ml(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Le(),e.sibling=null,o=Mo.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||Qi?No(t,o):(n=o,ge(To,t),ge(Mo,n),Eo===null&&(Eo=t)),Qi&&Gi(t,r.treeForkCount),e}return hl(t),null;case 22:case 23:return jo(t),wo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(hl(t),t.subtreeFlags&6&&(t.flags|=8192)):hl(t),n=t.updateQueue,n!==null&&pl(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&he(za),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),pa(Ta),hl(t),null;case 25:return null;case 30:return t.flags|=33554432,hl(t),null}throw Error(i(156,t.tag))}function _l(e,t){switch(Ji(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pa(Ta),xe(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ce(t),null;case 31:if(t.memoizedState!==null){if(jo(t),t.alternate===null)throw Error(i(340));oa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(jo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));oa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Po(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return xe(),null;case 10:return pa(t.type),null;case 22:case 23:return jo(t),wo(),e!==null&&he(za),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return pa(Ta),null;case 25:return null;default:return null}}function vl(e,t){switch(Ji(t),t.tag){case 3:pa(Ta),xe();break;case 26:case 27:case 5:Ce(t);break;case 4:xe();break;case 31:t.memoizedState!==null&&jo(t);break;case 13:jo(t);break;case 19:Po(t);break;case 10:pa(t.type);break;case 22:case 23:jo(t),wo(),e!==null&&he(za);break;case 24:pa(Ta)}}function yl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){_f(t,t.return,e)}}function bl(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){_f(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){_f(t,t.return,e)}}function xl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{yo(t,n)}catch(t){_f(e,e.return,t)}}}function Sl(e,t,n){n.props=yc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){_f(e,t,n)}}function Cl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=fi(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=zp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Bp(e);f(e.child,!1,rm,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){_f(e,t,n)}}function wl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){_f(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){_f(e,t,n)}else n.current=null}}function Tl(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n title`))),sp(r,t,n),r[yt]=e,Mt(r),t=r;break a;case`link`:if(o=Xm(`link`,`href`,a).get(t+(n.href||``))){for(s=0;sg&&(o=g,g=h,h=o);var _=Br(s,h),v=Br(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,z.T=null,n=Dd,Dd=null;var o=Cd,s=Td;if(Sd=0,wd=Cd=null,Td=0,Qu&6)throw Error(i(331));var c=Qu;if(Qu|=4,qu(o.current),zu(o,o.current,s,n),Qu=c,jf(0,!1),qe&&typeof qe.onPostCommitFiberRoot==`function`)try{qe.onPostCommitFiberRoot(Ke,o)}catch{}return!0}finally{ue.p=a,z.T=r,pf(e,t)}}function gf(e,t,n){t=Fi(n,t),t=Tc(e.stateNode,t,2),e=fo(e,t,2),e!==null&&(lt(e,2),Af(e))}function _f(e,t,n){if(e.tag===3)gf(e,e,n);else for(;t!==null;){if(t.tag===3){gf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(xd===null||!xd.has(r))){e=Fi(n,e),n=Ec(2),r=fo(t,n,2),r!==null&&(Dc(n,r,t,e),lt(r,2),Af(r));break}}t=t.return}}function vf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Zu;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(od=!0,i.add(n),e=yf.bind(null,e,t,n),t.then(e,e))}function yf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,$u===e&&(td&n)===n&&(cd===4||cd===3&&(td&62914560)===td&&300>Le()-_d?Qu&2?dd|=n:Wd(e,0):dd|=n,pd===td&&(pd=0)),Af(e)}function bf(e,t){t===0&&(t=st()),e=xi(e,t),e!==null&&(lt(e,t),Af(e))}function xf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),bf(e,n)}function Sf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),bf(e,n)}function Cf(e,t){return Ne(e,t)}var wf=null,Tf=null,Ef=!1,Df=!1,Of=!1,kf=0;function Af(e){e!==Tf&&e.next===null&&(Tf===null?wf=Tf=e:Tf=Tf.next=e),Df=!0,Ef||(Ef=!0,Lf())}function jf(e,t){if(!Of&&Df){Of=!0;do for(var n=!1,r=wf;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ye(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,If(r,a))}else a=td,a=rt(r,r===$u?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||it(r,a)||(n=!0,If(r,a))}r=r.next}while(n);Of=!1}}function Mf(){Nf()}function Nf(){Df=Ef=!1;var e=0;kf!==0&&bp()&&(e=kf);for(var t=Le(),n=null,r=wf;r!==null;){var i=r.next,a=Pf(r,t);a===0?(r.next=null,n===null?wf=i:n.next=i,i===null&&(Tf=n)):(n=r,(e!==0||a&3)&&(Df=!0)),r=i}Sd!==0&&Sd!==5||jf(e,!1),kf!==0&&(kf=0)}function Pf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&up(d)&&(c=c.responseEnd,o+=u*(cih){s.length=o;break}f=new Promise(Ip.bind(f)),s.push(f)}}}if(0`u`?null:document;function Am(e,t,n){var r=km;if(r&&typeof t==`string`&&t){var i=$t(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),wm.has(i)||(wm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),sp(t,`link`,e),Mt(t),r.head.appendChild(t)))}}function jm(e){Em.D(e),Am(`dns-prefetch`,e,null)}function Mm(e,t){Em.C(e,t),Am(`preconnect`,e,t)}function Nm(e,t,n){Em.L(e,t,n);var r=km;if(r&&e&&t){var i=`link[rel="preload"][as="`+$t(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+$t(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+$t(n.imageSizes)+`"]`)):i+=`[href="`+$t(e)+`"]`;var a=i;switch(t){case`style`:a=zm(e);break;case`script`:a=Um(e)}if(!(Cm.has(a)||(e=T({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Cm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Bm(a))||t===`script`&&r.querySelector(Wm(a))))){var o=r.createElement(`link`);sp(o,`link`,e),t===`style`&&(o[Et]=!0,o.onload=o.onerror=function(){Nt(o)}),Mt(o),r.head.appendChild(o)}}}function Pm(e,t){Em.m(e,t);var n=km;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+$t(r)+`"][href="`+$t(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Um(e)}if(!Cm.has(a)&&(e=T({rel:`modulepreload`,href:e},t),Cm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Wm(a)))return}r=n.createElement(`link`),sp(r,`link`,e),Mt(r),n.head.appendChild(r)}}}function Fm(e,t,n){Em.S(e,t,n);var r=km;if(r&&e){var i=jt(r).hoistableStyles,a=zm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Bm(a)))s.loading=5;else{e=T({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Cm.get(a))&&qm(e,n);var c=o=r.createElement(`link`);Mt(c),sp(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Km(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Im(e,t){Em.X(e,t);var n=km;if(n&&e){var r=jt(n).hoistableScripts,i=Um(e),a=r.get(i);a||(a=n.querySelector(Wm(i)),a||(e=T({src:e,async:!0},t),(t=Cm.get(i))&&Jm(e,t),a=n.createElement(`script`),Mt(a),sp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Lm(e,t){Em.M(e,t);var n=km;if(n&&e){var r=jt(n).hoistableScripts,i=Um(e),a=r.get(i);a||(a=n.querySelector(Wm(i)),a||(e=T({src:e,async:!0,type:`module`},t),(t=Cm.get(i))&&Jm(e,t),a=n.createElement(`script`),Mt(a),sp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Rm(e,t,n,r){var a=(a=B.current)?Tm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=zm(n.href),t=jt(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=zm(n.href);var o=jt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Bm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=Cm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Cm.set(e,o)),Hm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Um(n),t=jt(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function zm(e){return`href="`+$t(e)+`"`}function Bm(e){return`link[rel="stylesheet"][`+e+`]`}function Vm(e){return T({},e,{"data-precedence":e.precedence,precedence:null})}function Hm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Et]){r.loading=1;return}}else t=e.createElement(`link`),t[Et]=!0,t.onload=t.onerror=Nt.bind(null,t),sp(t,`link`,n),Mt(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Um(e){return`[src="`+$t(e)+`"]`}function Wm(e){return`script[async]`+e}function Gm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+$t(n.href)+`"]`);if(r)return t.instance=r,Mt(r),r;var a=T({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Mt(r),sp(r,`style`,a),Km(r,n.precedence,e),t.instance=r;case`stylesheet`:a=zm(n.href);var o=e.querySelector(Bm(a));if(o)return t.state.loading|=4,t.instance=o,Mt(o),o;r=Vm(n),(a=Cm.get(a))&&qm(r,a),o=(e.ownerDocument||e).createElement(`link`),Mt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),sp(o,`link`,r),t.state.loading|=4,Km(o,n.precedence,e),t.instance=o;case`script`:return o=Um(n.src),(a=e.querySelector(Wm(o)))?(t.instance=a,Mt(a),a):(r=n,(a=Cm.get(o))&&(r=T({},n),Jm(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Mt(a),sp(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Km(r,n.precedence,e));return t.instance}function Km(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Qm(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function $m(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function eh(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function th(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function nh(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=th(t),e.suspenseyImages.push(t)),e=ch.bind(e),t.decode().then(e,e))}function rh(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=zm(r.href),a=t.querySelector(Bm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=sh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Mt(a);return}a=t.ownerDocument||t,r=Vm(r),(i=Cm.get(i))&&qm(r,i),a=a.createElement(`link`),Mt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),sp(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=sh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var ih=0;function ah(e,t){return e.stylesheets&&e.count===0&&uh(e,e.stylesheets),0ih?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function oh(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)uh(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function sh(){this.count--,oh(this)}function ch(){this.imgCount--,oh(this)}var lh=null;function uh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,lh=new Map,t.forEach(dh,e),lh=null,sh.call(e))}function dh(e,t){if(!(t.state.loading&4)){var n=lh.get(e);if(n)var r=n.get(null);else{n=new Map,lh.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Uee()}))(),Gee=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z`}))]]),Kee=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M228,104a12,12,0,0,1-24,0V69l-59.51,59.51a12,12,0,0,1-17-17L187,52H152a12,12,0,0,1,0-24h64a12,12,0,0,1,12,12Zm-44,24a12,12,0,0,0-12,12v64H52V84h64a12,12,0,0,0,0-24H48A20,20,0,0,0,28,80V208a20,20,0,0,0,20,20H176a20,20,0,0,0,20-20V140A12,12,0,0,0,184,128Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M184,80V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H176A8,8,0,0,1,184,80Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M192,136v72a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V80A16,16,0,0,1,48,64h72a8,8,0,0,1,0,16H48V208H176V136a8,8,0,0,1,16,0Zm32-96a8,8,0,0,0-8-8H152a8,8,0,0,0-5.66,13.66L172.69,72l-42.35,42.34a8,8,0,0,0,11.32,11.32L184,83.31l26.34,26.35A8,8,0,0,0,224,104Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M222,104a6,6,0,0,1-12,0V54.49l-69.75,69.75a6,6,0,0,1-8.48-8.48L201.51,46H152a6,6,0,0,1,0-12h64a6,6,0,0,1,6,6Zm-38,26a6,6,0,0,0-6,6v72a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h72a6,6,0,0,0,0-12H48A14,14,0,0,0,34,80V208a14,14,0,0,0,14,14H176a14,14,0,0,0,14-14V136A6,6,0,0,0,184,130Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M220,104a4,4,0,0,1-8,0V49.66l-73.16,73.17a4,4,0,0,1-5.66-5.66L206.34,44H152a4,4,0,0,1,0-8h64a4,4,0,0,1,4,4Zm-36,28a4,4,0,0,0-4,4v72a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4h72a4,4,0,0,0,0-8H48A12,12,0,0,0,36,80V208a12,12,0,0,0,12,12H176a12,12,0,0,0,12-12V136A4,4,0,0,0,184,132Z`}))]]),qee=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M220,48V96a12,12,0,0,1-24,0V77l-35.51,35.52a12,12,0,0,1-17-17L179,60H160a12,12,0,0,1,0-24h48A12,12,0,0,1,220,48ZM95.51,143.51,60,179V160a12,12,0,0,0-24,0v48a12,12,0,0,0,12,12H96a12,12,0,0,0,0-24H77l35.52-35.51a12,12,0,0,0-17-17ZM208,148a12,12,0,0,0-12,12v19l-35.51-35.52a12,12,0,0,0-17,17L179,196H160a12,12,0,0,0,0,24h48a12,12,0,0,0,12-12V160A12,12,0,0,0,208,148ZM77,60H96a12,12,0,0,0,0-24H48A12,12,0,0,0,36,48V96a12,12,0,0,0,24,0V77l35.51,35.52a12,12,0,0,0,17-17Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,48V208H48V48Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M216,48V96a8,8,0,0,1-16,0V67.31l-42.34,42.35a8,8,0,0,1-11.32-11.32L188.69,56H160a8,8,0,0,1,0-16h48A8,8,0,0,1,216,48ZM98.34,146.34,56,188.69V160a8,8,0,0,0-16,0v48a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16H67.31l42.35-42.34a8,8,0,0,0-11.32-11.32ZM208,152a8,8,0,0,0-8,8v28.69l-42.34-42.35a8,8,0,0,0-11.32,11.32L188.69,200H160a8,8,0,0,0,0,16h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152ZM67.31,56H96a8,8,0,0,0,0-16H48a8,8,0,0,0-8,8V96a8,8,0,0,0,16,0V67.31l42.34,42.35a8,8,0,0,0,11.32-11.32Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M109.66,146.34a8,8,0,0,1,0,11.32L83.31,184l18.35,18.34A8,8,0,0,1,96,216H48a8,8,0,0,1-8-8V160a8,8,0,0,1,13.66-5.66L72,172.69l26.34-26.35A8,8,0,0,1,109.66,146.34ZM83.31,72l18.35-18.34A8,8,0,0,0,96,40H48a8,8,0,0,0-8,8V96a8,8,0,0,0,13.66,5.66L72,83.31l26.34,26.35a8,8,0,0,0,11.32-11.32ZM208,40H160a8,8,0,0,0-5.66,13.66L172.69,72,146.34,98.34a8,8,0,0,0,11.32,11.32L184,83.31l18.34,18.35A8,8,0,0,0,216,96V48A8,8,0,0,0,208,40Zm3.06,112.61a8,8,0,0,0-8.72,1.73L184,172.69l-26.34-26.35a8,8,0,0,0-11.32,11.32L172.69,184l-18.35,18.34A8,8,0,0,0,160,216h48a8,8,0,0,0,8-8V160A8,8,0,0,0,211.06,152.61Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M214,48V96a6,6,0,0,1-12,0V62.48l-45.76,45.76a6,6,0,0,1-8.48-8.48L193.52,54H160a6,6,0,0,1,0-12h48A6,6,0,0,1,214,48ZM99.76,147.76,54,193.52V160a6,6,0,0,0-12,0v48a6,6,0,0,0,6,6H96a6,6,0,0,0,0-12H62.48l45.76-45.76a6,6,0,0,0-8.48-8.48ZM208,154a6,6,0,0,0-6,6v33.52l-45.76-45.76a6,6,0,0,0-8.48,8.48L193.52,202H160a6,6,0,0,0,0,12h48a6,6,0,0,0,6-6V160A6,6,0,0,0,208,154ZM62.48,54H96a6,6,0,0,0,0-12H48a6,6,0,0,0-6,6V96a6,6,0,0,0,12,0V62.48l45.76,45.76a6,6,0,0,0,8.48-8.48Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,48V96a8,8,0,0,1-16,0V67.31l-42.34,42.35a8,8,0,0,1-11.32-11.32L188.69,56H160a8,8,0,0,1,0-16h48A8,8,0,0,1,216,48ZM98.34,146.34,56,188.69V160a8,8,0,0,0-16,0v48a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16H67.31l42.35-42.34a8,8,0,0,0-11.32-11.32ZM208,152a8,8,0,0,0-8,8v28.69l-42.34-42.35a8,8,0,0,0-11.32,11.32L188.69,200H160a8,8,0,0,0,0,16h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152ZM67.31,56H96a8,8,0,0,0,0-16H48a8,8,0,0,0-8,8V96a8,8,0,0,0,16,0V67.31l42.34,42.35a8,8,0,0,0,11.32-11.32Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M212,48V96a4,4,0,0,1-8,0V57.66l-49.17,49.17a4,4,0,0,1-5.66-5.66L198.34,52H160a4,4,0,0,1,0-8h48A4,4,0,0,1,212,48ZM101.17,149.17,52,198.34V160a4,4,0,0,0-8,0v48a4,4,0,0,0,4,4H96a4,4,0,0,0,0-8H57.66l49.17-49.17a4,4,0,0,0-5.66-5.66ZM208,156a4,4,0,0,0-4,4v38.34l-49.17-49.17a4,4,0,0,0-5.66,5.66L198.34,204H160a4,4,0,0,0,0,8h48a4,4,0,0,0,4-4V160A4,4,0,0,0,208,156ZM57.66,52H96a4,4,0,0,0,0-8H48a4,4,0,0,0-4,4V96a4,4,0,0,0,8,0V57.66l49.17,49.17a4,4,0,0,0,5.66-5.66Z`}))]]),Jee=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M237.24,213.21C216.12,203,204,180.64,204,152V134.73a19.94,19.94,0,0,0-12.62-18.59l-24.86-9.81a4,4,0,0,1-2.26-5.14l21.33-53A32,32,0,0,0,167.17,6,32.13,32.13,0,0,0,126.25,24.2l-.07.18-21,53.09a3.94,3.94,0,0,1-2.14,2.2,3.89,3.89,0,0,1-3,.06L74.6,69.43A19.89,19.89,0,0,0,52.87,74C31.06,96.43,20,122.68,20,152a115.46,115.46,0,0,0,32.29,80.3A12,12,0,0,0,61,236H232a12,12,0,0,0,5.24-22.79ZM68.19,92.73,91.06,102A28,28,0,0,0,127.5,86.31l20.95-53a8.32,8.32,0,0,1,10.33-4.81,8,8,0,0,1,4.61,10.57,1.17,1.17,0,0,0,0,.11L142,92.29a28.05,28.05,0,0,0,15.68,36.33L180,137.45V152c0,1,0,2.07.05,3.1l-122.44-49A101.91,101.91,0,0,1,68.19,92.73ZM116.74,212a83.73,83.73,0,0,1-22.09-39,12,12,0,0,0-23.25,6,110.27,110.27,0,0,0,14.49,33H66.25A91.53,91.53,0,0,1,44,152a84,84,0,0,1,3.41-24.11l136.67,54.66A86.58,86.58,0,0,0,198.66,212Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M192.8,165.12,43.93,105.57A110.88,110.88,0,0,1,61.47,82.38a8,8,0,0,1,8.67-1.81L95.52,90.85a16,16,0,0,0,20.82-9l21-53.1c4.15-10,15.47-15.33,25.63-11.53a20,20,0,0,1,11.51,26.39L153.13,96.71a16,16,0,0,0,8.93,20.75L187,127.3a8,8,0,0,1,5,7.43V152A104.58,104.58,0,0,0,192.8,165.12Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M235.5,216.81c-22.56-11-35.5-34.58-35.5-64.8V134.73a15.94,15.94,0,0,0-10.09-14.87L165,110a8,8,0,0,1-4.48-10.34l21.32-53a28,28,0,0,0-16.1-37,28.14,28.14,0,0,0-35.82,16,.61.61,0,0,0,0,.12L108.9,79a8,8,0,0,1-10.37,4.49L73.11,73.14A15.89,15.89,0,0,0,55.74,76.8C34.68,98.45,24,123.75,24,152a111.45,111.45,0,0,0,31.18,77.53A8,8,0,0,0,61,232H232a8,8,0,0,0,3.5-15.19ZM67.14,88l25.41,10.3a24,24,0,0,0,31.23-13.45l21-53c2.56-6.11,9.47-9.27,15.43-7a12,12,0,0,1,6.88,15.92L145.69,93.76a24,24,0,0,0,13.43,31.14L184,134.73V152c0,.33,0,.66,0,1L55.77,101.71A108.84,108.84,0,0,1,67.14,88Zm48,128a87.53,87.53,0,0,1-24.34-42,8,8,0,0,0-15.49,4,105.16,105.16,0,0,0,18.36,38H64.44A95.54,95.54,0,0,1,40,152a85.9,85.9,0,0,1,7.73-36.29l137.8,55.12c3,18,10.56,33.48,21.89,45.16Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M235.29,216.7C212.86,205.69,200,182.12,200,152V134.69a15.94,15.94,0,0,0-10.09-14.87l-28.65-11.46A8,8,0,0,1,156.79,98l22.32-56.67C184,28.79,178,14.21,165.34,9.51a24,24,0,0,0-30.7,13.71L112.25,80.08a8,8,0,0,1-10.41,4.5L73.11,73.08a15.91,15.91,0,0,0-17.38,3.66C34.68,98.4,24,123.71,24,152a111.53,111.53,0,0,0,31.15,77.53A8.06,8.06,0,0,0,61,232H232a8,8,0,0,0,8-7.51A8.21,8.21,0,0,0,235.29,216.7ZM115.11,216a87.52,87.52,0,0,1-24.26-41.71,8.21,8.21,0,0,0-9.25-6.18A8,8,0,0,0,75.28,178a105.33,105.33,0,0,0,18.36,38H64.44A95.62,95.62,0,0,1,40,152a85.92,85.92,0,0,1,7.73-36.3l137.8,55.13c3,18.06,10.55,33.5,21.89,45.19Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M234.62,218.6C211.35,207.29,198,183,198,152V134.7a14,14,0,0,0-8.82-13l-24.89-9.83a10,10,0,0,1-5.59-13L180,45.9a26,26,0,0,0-15-34.33c-12.95-4.83-27.88,1.84-33.31,15l-21,53.11a10,10,0,0,1-13,5.61L72.37,75a13.9,13.9,0,0,0-15.2,3.19C36.49,99.42,26,124.26,26,152a109.53,109.53,0,0,0,30.62,76.16A6,6,0,0,0,61,230H232a6,6,0,0,0,2.62-11.4ZM65.77,86.52a2,2,0,0,1,2.12-.43l25.4,10.29a22,22,0,0,0,28.63-12.32l21-53c3-7.13,11-10.81,18-8.21a14,14,0,0,1,8,18.54l-21.36,53.1A22.05,22.05,0,0,0,159.86,123l24.88,9.83A2,2,0,0,1,186,134.7V152c0,1.34,0,2.65.08,4L52.74,102.61A110.07,110.07,0,0,1,65.77,86.52ZM114.33,218a89.6,89.6,0,0,1-25.5-43.5,6,6,0,1,0-11.62,3A102.87,102.87,0,0,0,97.81,218H63.56A97.56,97.56,0,0,1,38,152a87.42,87.42,0,0,1,8.71-38.86L187.35,169.4c3.15,19.92,11.77,36.66,25,48.6Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M235.5,216.81c-22.56-11-35.5-34.58-35.5-64.8V134.73a15.94,15.94,0,0,0-10.09-14.87L165,110a8,8,0,0,1-4.48-10.34l21.32-53a28,28,0,0,0-16.1-37,28.14,28.14,0,0,0-35.82,16,.61.61,0,0,0,0,.12L108.9,79a8,8,0,0,1-10.37,4.49L73.11,73.14A15.89,15.89,0,0,0,55.74,76.8C34.68,98.45,24,123.75,24,152a111.45,111.45,0,0,0,31.18,77.53A8,8,0,0,0,61,232H232a8,8,0,0,0,3.5-15.19ZM67.14,88l25.41,10.3a24,24,0,0,0,31.23-13.45l21-53c2.56-6.11,9.47-9.27,15.43-7a12,12,0,0,1,6.88,15.92L145.69,93.76a24,24,0,0,0,13.43,31.14L184,134.73V152c0,.33,0,.66,0,1L55.77,101.71A108.84,108.84,0,0,1,67.14,88Zm48,128a87.53,87.53,0,0,1-24.34-42,8,8,0,0,0-15.49,4,105.16,105.16,0,0,0,18.36,38H64.44A95.54,95.54,0,0,1,40,152a85.9,85.9,0,0,1,7.73-36.29l137.8,55.12c3,18,10.56,33.48,21.89,45.16Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M233.75,220.4C209.76,208.75,196,183.82,196,152V134.72a12,12,0,0,0-7.56-11.15l-24.89-9.83a12,12,0,0,1-6.71-15.55l21.33-53a23.88,23.88,0,0,0-31.93-31A24.72,24.72,0,0,0,133.62,27.3l-21,53.1A12,12,0,0,1,97,87.13L71.63,76.84a12,12,0,0,0-13,2.73C38.3,100.45,28,124.82,28,152a107.5,107.5,0,0,0,30.07,74.77A4,4,0,0,0,61,228H232a4,4,0,0,0,1.75-7.6ZM64.34,85.15a3.94,3.94,0,0,1,4.3-.89L94,94.55a20,20,0,0,0,26-11.2l21-53C144.39,22.19,153.61,18,161.58,21a16,16,0,0,1,9.19,21.16L149.41,95.22a20,20,0,0,0,11.18,26l24.9,9.83a4,4,0,0,1,2.51,3.72V152c0,2.36.08,4.69.22,7l-138.5-55.4A110.84,110.84,0,0,1,64.34,85.15ZM113.56,220A91.35,91.35,0,0,1,86.9,175a4,4,0,0,0-7.75,2,100.21,100.21,0,0,0,23.09,43H62.68A99.5,99.5,0,0,1,36,152a89.37,89.37,0,0,1,9.73-41.4L189.13,168c3.22,22,13.23,40.09,28.8,52Z`}))]]),Yee=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,96l-80,80L48,96Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z`}))]]),Xee=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M176,128,96,208V48Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z`}))]]),Zee=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216.49,168.49a12,12,0,0,1-17,0L128,97,56.49,168.49a12,12,0,0,1-17-17l80-80a12,12,0,0,1,17,0l80,80A12,12,0,0,1,216.49,168.49Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,160H48l80-80Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M213.66,154.34l-80-80a8,8,0,0,0-11.32,0l-80,80A8,8,0,0,0,48,168H208a8,8,0,0,0,5.66-13.66ZM67.31,152,128,91.31,188.69,152Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M215.39,163.06A8,8,0,0,1,208,168H48a8,8,0,0,1-5.66-13.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,215.39,163.06Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M210.83,162.83a4,4,0,0,1-5.66,0L128,85.66,50.83,162.83a4,4,0,0,1-5.66-5.66l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,210.83,162.83Z`}))]]),Qee=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,196h-4V40a12,12,0,0,0-12-12H152a12,12,0,0,0-12,12V76H96A12,12,0,0,0,84,88v36H48a12,12,0,0,0-12,12v60H32a12,12,0,0,0,0,24H224a12,12,0,0,0,0-24ZM164,52h32V196H164Zm-56,48h32v96H108ZM60,148H84v48H60Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,40V208H152V40Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M224,200h-8V40a8,8,0,0,0-8-8H152a8,8,0,0,0-8,8V80H96a8,8,0,0,0-8,8v40H48a8,8,0,0,0-8,8v64H32a8,8,0,0,0,0,16H224a8,8,0,0,0,0-16ZM160,48h40V200H160ZM104,96h40V200H104ZM56,144H88v56H56Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,208a8,8,0,0,1-8,8H32a8,8,0,0,1,0-16h8V136a8,8,0,0,1,8-8H72a8,8,0,0,1,8,8v64H96V88a8,8,0,0,1,8-8h32a8,8,0,0,1,8,8V200h16V40a8,8,0,0,1,8-8h40a8,8,0,0,1,8,8V200h8A8,8,0,0,1,232,208Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,202H214V40a6,6,0,0,0-6-6H152a6,6,0,0,0-6,6V82H96a6,6,0,0,0-6,6v42H48a6,6,0,0,0-6,6v66H32a6,6,0,0,0,0,12H224a6,6,0,0,0,0-12ZM158,46h44V202H158ZM102,94h44V202H102ZM54,142H90v60H54Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,200h-8V40a8,8,0,0,0-8-8H152a8,8,0,0,0-8,8V80H96a8,8,0,0,0-8,8v40H48a8,8,0,0,0-8,8v64H32a8,8,0,0,0,0,16H224a8,8,0,0,0,0-16ZM160,48h40V200H160ZM104,96h40V200H104ZM56,144H88v56H56Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,204H212V40a4,4,0,0,0-4-4H152a4,4,0,0,0-4,4V84H96a4,4,0,0,0-4,4v44H48a4,4,0,0,0-4,4v68H32a4,4,0,0,0,0,8H224a4,4,0,0,0,0-8ZM156,44h48V204H156ZM100,92h48V204H100ZM52,140H92v64H52Z`}))]]),$ee=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M236,208a12,12,0,0,1-12,12H32a12,12,0,0,1-12-12V48a12,12,0,0,1,24,0v85.55L88.1,95a12,12,0,0,1,15.1-.57l56.22,42.16L216.1,87A12,12,0,1,1,231.9,105l-64,56a12,12,0,0,1-15.1.57L96.58,119.44,44,165.45V196H224A12,12,0,0,1,236,208Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,64V208H32V48H208A16,16,0,0,1,224,64Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M232,208a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V48a8,8,0,0,1,16,0v94.37L90.73,98a8,8,0,0,1,10.07-.38l58.81,44.11L218.73,90a8,8,0,1,1,10.54,12l-64,56a8,8,0,0,1-10.07.38L96.39,114.29,40,163.63V200H224A8,8,0,0,1,232,208Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM200,176a8,8,0,0,1,0,16H56a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v62.92l34.88-29.07a8,8,0,0,1,9.56-.51l43,28.69,43.41-36.18a8,8,0,0,1,10.24,12.3l-48,40a8,8,0,0,1-9.56.51l-43-28.69L64,155.75V176Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M230,208a6,6,0,0,1-6,6H32a6,6,0,0,1-6-6V48a6,6,0,0,1,12,0v98.78l54.05-47.3a6,6,0,0,1,7.55-.28l60.11,45.08,60.34-52.8a6,6,0,0,1,7.9,9l-64,56a6,6,0,0,1-7.55.28L96.29,111.72,38,162.72V202H224A6,6,0,0,1,230,208Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,208a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V48a8,8,0,0,1,16,0v94.37L90.73,98a8,8,0,0,1,10.07-.38l58.81,44.11L218.73,90a8,8,0,1,1,10.54,12l-64,56a8,8,0,0,1-10.07.38L96.39,114.29,40,163.63V200H224A8,8,0,0,1,232,208Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M228,208a4,4,0,0,1-4,4H32a4,4,0,0,1-4-4V48a4,4,0,0,1,8,0V151.19L93.37,101a4,4,0,0,1,5-.19l61.41,46.05L221.37,93a4,4,0,0,1,5.26,6l-64,56a4,4,0,0,1-5,.19l-61.41-46L36,161.81V204H224A4,4,0,0,1,228,208Z`}))]]),ete=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,20A108,108,0,0,0,31.85,177.23L21,209.66A20,20,0,0,0,46.34,235l32.43-10.81A108,108,0,1,0,128,20Zm0,192a84,84,0,0,1-42.06-11.27,12,12,0,0,0-6-1.62,12.1,12.1,0,0,0-3.8.62l-29.79,9.93,9.93-29.79a12,12,0,0,0-1-9.81A84,84,0,1,1,128,212Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,128A96,96,0,0,1,79.93,211.11h0L42.54,223.58a8,8,0,0,1-10.12-10.12l12.47-37.39h0A96,96,0,1,1,224,128Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-6.54-.67L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,128A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24-20.24l11.35-34.05A104,104,0,1,1,232,128Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,26A102,102,0,0,0,38.35,176.69L26.73,211.56a14,14,0,0,0,17.71,17.71l34.87-11.62A102,102,0,1,0,128,26Zm0,192a90,90,0,0,1-45.06-12.08,6.09,6.09,0,0,0-3-.81,6.2,6.2,0,0,0-1.9.31L40.65,217.88a2,2,0,0,1-2.53-2.53L50.58,178a6,6,0,0,0-.5-4.91A90,90,0,1,1,128,218Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-6.54-.67L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,28A100,100,0,0,0,40.53,176.5l-11.9,35.69a12,12,0,0,0,15.18,15.18l35.69-11.9A100,100,0,1,0,128,28Zm0,192a92,92,0,0,1-46.07-12.35,4.05,4.05,0,0,0-2-.54,3.93,3.93,0,0,0-1.27.21L41.28,219.78a4,4,0,0,1-5.06-5.06l12.46-37.38a4,4,0,0,0-.33-3.27A92,92,0,1,1,128,220Z`}))]]),tte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z`}))]]),nte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z`}))]]),rte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M71.68,97.22,34.74,128l36.94,30.78a12,12,0,1,1-15.36,18.44l-48-40a12,12,0,0,1,0-18.44l48-40A12,12,0,0,1,71.68,97.22Zm176,21.56-48-40a12,12,0,1,0-15.36,18.44L221.26,128l-36.94,30.78a12,12,0,1,0,15.36,18.44l48-40a12,12,0,0,0,0-18.44ZM164.1,28.72a12,12,0,0,0-15.38,7.18l-64,176a12,12,0,0,0,7.18,15.37A11.79,11.79,0,0,0,96,228a12,12,0,0,0,11.28-7.9l64-176A12,12,0,0,0,164.1,28.72Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M240,128l-48,40H64L16,128,64,88H192Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M69.12,94.15,28.5,128l40.62,33.85a8,8,0,1,1-10.24,12.29l-48-40a8,8,0,0,1,0-12.29l48-40a8,8,0,0,1,10.24,12.3Zm176,27.7-48-40a8,8,0,1,0-10.24,12.3L227.5,128l-40.62,33.85a8,8,0,1,0,10.24,12.29l48-40a8,8,0,0,0,0-12.29ZM162.73,32.48a8,8,0,0,0-10.25,4.79l-64,176a8,8,0,0,0,4.79,10.26A8.14,8.14,0,0,0,96,224a8,8,0,0,0,7.52-5.27l64-176A8,8,0,0,0,162.73,32.48Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM92.8,145.6a8,8,0,1,1-9.6,12.8l-32-24a8,8,0,0,1,0-12.8l32-24a8,8,0,0,1,9.6,12.8L69.33,128Zm58.89-71.4-32,112a8,8,0,1,1-15.38-4.4l32-112a8,8,0,0,1,15.38,4.4Zm53.11,60.2-32,24a8,8,0,0,1-9.6-12.8L186.67,128,163.2,110.4a8,8,0,1,1,9.6-12.8l32,24a8,8,0,0,1,0,12.8Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M67.84,92.61,25.37,128l42.47,35.39a6,6,0,1,1-7.68,9.22l-48-40a6,6,0,0,1,0-9.22l48-40a6,6,0,0,1,7.68,9.22Zm176,30.78-48-40a6,6,0,1,0-7.68,9.22L230.63,128l-42.47,35.39a6,6,0,1,0,7.68,9.22l48-40a6,6,0,0,0,0-9.22Zm-81.79-89A6,6,0,0,0,154.36,38l-64,176A6,6,0,0,0,94,221.64a6.15,6.15,0,0,0,2,.36,6,6,0,0,0,5.64-3.95l64-176A6,6,0,0,0,162.05,34.36Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M69.12,94.15,28.5,128l40.62,33.85a8,8,0,1,1-10.24,12.29l-48-40a8,8,0,0,1,0-12.29l48-40a8,8,0,0,1,10.24,12.3Zm176,27.7-48-40a8,8,0,1,0-10.24,12.3L227.5,128l-40.62,33.85a8,8,0,1,0,10.24,12.29l48-40a8,8,0,0,0,0-12.29ZM162.73,32.48a8,8,0,0,0-10.25,4.79l-64,176a8,8,0,0,0,4.79,10.26A8.14,8.14,0,0,0,96,224a8,8,0,0,0,7.52-5.27l64-176A8,8,0,0,0,162.73,32.48Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M66.56,91.07,22.25,128l44.31,36.93A4,4,0,0,1,64,172a3.94,3.94,0,0,1-2.56-.93l-48-40a4,4,0,0,1,0-6.14l48-40a4,4,0,0,1,5.12,6.14Zm176,33.86-48-40a4,4,0,1,0-5.12,6.14L233.75,128l-44.31,36.93a4,4,0,1,0,5.12,6.14l48-40a4,4,0,0,0,0-6.14ZM161.37,36.24a4,4,0,0,0-5.13,2.39l-64,176a4,4,0,0,0,2.39,5.13A4.12,4.12,0,0,0,96,220a4,4,0,0,0,3.76-2.63l64-176A4,4,0,0,0,161.37,36.24Z`}))]]),ite=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,40V168H168V88H88V40Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z`}))]]),ate=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M156,88H100a12,12,0,0,0-12,12v56a12,12,0,0,0,12,12h56a12,12,0,0,0,12-12V100A12,12,0,0,0,156,88Zm-12,56H112V112h32Zm88-4H220V116h12a12,12,0,0,0,0-24H220V56a20,20,0,0,0-20-20H164V24a12,12,0,0,0-24,0V36H116V24a12,12,0,0,0-24,0V36H56A20,20,0,0,0,36,56V92H24a12,12,0,0,0,0,24H36v24H24a12,12,0,0,0,0,24H36v36a20,20,0,0,0,20,20H92v12a12,12,0,0,0,24,0V220h24v12a12,12,0,0,0,24,0V220h36a20,20,0,0,0,20-20V164h12a12,12,0,0,0,0-24Zm-36,56H60V60H196Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M200,48H56a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8H200a8,8,0,0,0,8-8V56A8,8,0,0,0,200,48ZM152,152H104V104h48Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M152,96H104a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V104A8,8,0,0,0,152,96Zm-8,48H112V112h32Zm88,0H216V112h16a8,8,0,0,0,0-16H216V56a16,16,0,0,0-16-16H160V24a8,8,0,0,0-16,0V40H112V24a8,8,0,0,0-16,0V40H56A16,16,0,0,0,40,56V96H24a8,8,0,0,0,0,16H40v32H24a8,8,0,0,0,0,16H40v40a16,16,0,0,0,16,16H96v16a8,8,0,0,0,16,0V216h32v16a8,8,0,0,0,16,0V216h40a16,16,0,0,0,16-16V160h16a8,8,0,0,0,0-16Zm-32,56H56V56H200v95.87s0,.09,0,.13,0,.09,0,.13V200Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M104,104h48v48H104Zm136,48a8,8,0,0,1-8,8H216v40a16,16,0,0,1-16,16H160v16a8,8,0,0,1-16,0V216H112v16a8,8,0,0,1-16,0V216H56a16,16,0,0,1-16-16V160H24a8,8,0,0,1,0-16H40V112H24a8,8,0,0,1,0-16H40V56A16,16,0,0,1,56,40H96V24a8,8,0,0,1,16,0V40h32V24a8,8,0,0,1,16,0V40h40a16,16,0,0,1,16,16V96h16a8,8,0,0,1,0,16H216v32h16A8,8,0,0,1,240,152ZM168,96a8,8,0,0,0-8-8H96a8,8,0,0,0-8,8v64a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M152,98H104a6,6,0,0,0-6,6v48a6,6,0,0,0,6,6h48a6,6,0,0,0,6-6V104A6,6,0,0,0,152,98Zm-6,48H110V110h36Zm86,0H214V110h18a6,6,0,0,0,0-12H214V56a14,14,0,0,0-14-14H158V24a6,6,0,0,0-12,0V42H110V24a6,6,0,0,0-12,0V42H56A14,14,0,0,0,42,56V98H24a6,6,0,0,0,0,12H42v36H24a6,6,0,0,0,0,12H42v42a14,14,0,0,0,14,14H98v18a6,6,0,0,0,12,0V214h36v18a6,6,0,0,0,12,0V214h42a14,14,0,0,0,14-14V158h18a6,6,0,0,0,0-12Zm-30,54a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H200a2,2,0,0,1,2,2Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M152,96H104a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V104A8,8,0,0,0,152,96Zm-8,48H112V112h32Zm88,0H216V112h16a8,8,0,0,0,0-16H216V56a16,16,0,0,0-16-16H160V24a8,8,0,0,0-16,0V40H112V24a8,8,0,0,0-16,0V40H56A16,16,0,0,0,40,56V96H24a8,8,0,0,0,0,16H40v32H24a8,8,0,0,0,0,16H40v40a16,16,0,0,0,16,16H96v16a8,8,0,0,0,16,0V216h32v16a8,8,0,0,0,16,0V216h40a16,16,0,0,0,16-16V160h16a8,8,0,0,0,0-16Zm-32,56H56V56H200v95.87s0,.09,0,.13,0,.09,0,.13V200Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M152,100H104a4,4,0,0,0-4,4v48a4,4,0,0,0,4,4h48a4,4,0,0,0,4-4V104A4,4,0,0,0,152,100Zm-4,48H108V108h40Zm84,0H212V108h20a4,4,0,0,0,0-8H212V56a12,12,0,0,0-12-12H156V24a4,4,0,0,0-8,0V44H108V24a4,4,0,0,0-8,0V44H56A12,12,0,0,0,44,56v44H24a4,4,0,0,0,0,8H44v40H24a4,4,0,0,0,0,8H44v44a12,12,0,0,0,12,12h44v20a4,4,0,0,0,8,0V212h40v20a4,4,0,0,0,8,0V212h44a12,12,0,0,0,12-12V156h20a4,4,0,0,0,0-8Zm-28,52a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H200a4,4,0,0,1,4,4Z`}))]]),ote=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,36H48A28,28,0,0,0,20,64V172a28,28,0,0,0,28,28h68v12H96a12,12,0,0,0,0,24h64a12,12,0,0,0,0-24H140V200h68a28,28,0,0,0,28-28V64A28,28,0,0,0,208,36ZM48,60H208a4,4,0,0,1,4,4v72H44V64A4,4,0,0,1,48,60ZM208,176H48a4,4,0,0,1-4-4V160H212v12A4,4,0,0,1,208,176Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,64v88H32V64A16,16,0,0,1,48,48H208A16,16,0,0,1,224,64Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M208,40H48A24,24,0,0,0,24,64V176a24,24,0,0,0,24,24h72v16H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16H136V200h72a24,24,0,0,0,24-24V64A24,24,0,0,0,208,40ZM48,56H208a8,8,0,0,1,8,8v80H40V64A8,8,0,0,1,48,56ZM208,184H48a8,8,0,0,1-8-8V160H216v16A8,8,0,0,1,208,184Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,40H48A24,24,0,0,0,24,64V176a24,24,0,0,0,24,24h72v16H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16H136V200h72a24,24,0,0,0,24-24V64A24,24,0,0,0,208,40Zm0,144H48a8,8,0,0,1-8-8V160H216v16A8,8,0,0,1,208,184Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,42H48A22,22,0,0,0,26,64V176a22,22,0,0,0,22,22h74v20H96a6,6,0,0,0,0,12h64a6,6,0,0,0,0-12H134V198h74a22,22,0,0,0,22-22V64A22,22,0,0,0,208,42ZM48,54H208a10,10,0,0,1,10,10v82H38V64A10,10,0,0,1,48,54ZM208,186H48a10,10,0,0,1-10-10V158H218v18A10,10,0,0,1,208,186Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,40H48A24,24,0,0,0,24,64V176a24,24,0,0,0,24,24h72v16H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16H136V200h72a24,24,0,0,0,24-24V64A24,24,0,0,0,208,40ZM48,56H208a8,8,0,0,1,8,8v80H40V64A8,8,0,0,1,48,56ZM208,184H48a8,8,0,0,1-8-8V160H216v16A8,8,0,0,1,208,184Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,44H48A20,20,0,0,0,28,64V176a20,20,0,0,0,20,20h76v24H96a4,4,0,0,0,0,8h64a4,4,0,0,0,0-8H132V196h76a20,20,0,0,0,20-20V64A20,20,0,0,0,208,44ZM48,52H208a12,12,0,0,1,12,12v84H36V64A12,12,0,0,1,48,52ZM208,188H48a12,12,0,0,1-12-12V156H220v20A12,12,0,0,1,208,188Z`}))]]),ste=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M238.16,113.89,142.1,17.83a20,20,0,0,0-28.21,0l-96,96.06a20,20,0,0,0,0,28.22l96.05,96.06h0a20,20,0,0,0,28.21,0l96-96.06a20,20,0,0,0,0-28.22ZM128,218.33,37.68,128,128,37.67,218.32,128Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M229.67,133.62l-96,96a7.94,7.94,0,0,1-11.24,0l-96-96a7.94,7.94,0,0,1,0-11.24l96.05-96a7.94,7.94,0,0,1,11.24,0l96,96.05A7.94,7.94,0,0,1,229.67,133.62Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M235.33,116.72,139.28,20.66a16,16,0,0,0-22.56,0l-96,96.06a16,16,0,0,0,0,22.56l96.05,96.06h0a16,16,0,0,0,22.56,0l96.05-96.06a16,16,0,0,0,0-22.56ZM128,224h0L32,128,128,32,224,128Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M240,128a15.85,15.85,0,0,1-4.67,11.28l-96.05,96.06a16,16,0,0,1-22.56,0h0l-96-96.06a16,16,0,0,1,0-22.56l96.05-96.06a16,16,0,0,1,22.56,0l96.05,96.06A15.85,15.85,0,0,1,240,128Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M233.92,118.14,137.86,22.08a14,14,0,0,0-19.72,0L22.08,118.14a14,14,0,0,0,0,19.72l96.06,96.06h0a14,14,0,0,0,19.72,0l96-96.06a13.94,13.94,0,0,0,0-19.72Zm-8.49,11.24-96.05,96.06a2,2,0,0,1-2.76,0L30.57,129.38a2,2,0,0,1,0-2.76l96.05-96.06a2,2,0,0,1,2.76,0l96.05,96.06a2,2,0,0,1,0,2.76Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M235.33,116.72,139.28,20.66a16,16,0,0,0-22.56,0l-96,96.06a16,16,0,0,0,0,22.56l96.05,96.06h0a16,16,0,0,0,22.56,0l96.05-96.06a16,16,0,0,0,0-22.56ZM128,224h0L32,128,128,32,224,128Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232.5,119.55,136.45,23.49a12,12,0,0,0-16.9,0l-96,96.06a12,12,0,0,0,0,16.9l96.05,96.06a12,12,0,0,0,16.9,0l96.05-96.06a12,12,0,0,0,0-16.9Zm-5.66,11.24-96.05,96.06a4,4,0,0,1-5.58,0l-96-96.06a3.94,3.94,0,0,1,0-5.58l96.05-96.06a4,4,0,0,1,5.58,0l96.05,96.06a3.94,3.94,0,0,1,0,5.58Z`}))]]),cte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M108,60A16,16,0,1,1,92,44,16,16,0,0,1,108,60Zm56,16a16,16,0,1,0-16-16A16,16,0,0,0,164,76ZM92,112a16,16,0,1,0,16,16A16,16,0,0,0,92,112Zm72,0a16,16,0,1,0,16,16A16,16,0,0,0,164,112ZM92,180a16,16,0,1,0,16,16A16,16,0,0,0,92,180Zm72,0a16,16,0,1,0,16,16A16,16,0,0,0,164,180Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,32V224a16,16,0,0,1-16,16H64a16,16,0,0,1-16-16V32A16,16,0,0,1,64,16H192A16,16,0,0,1,208,32Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M104,60A12,12,0,1,1,92,48,12,12,0,0,1,104,60Zm60,12a12,12,0,1,0-12-12A12,12,0,0,0,164,72ZM92,116a12,12,0,1,0,12,12A12,12,0,0,0,92,116Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,116ZM92,184a12,12,0,1,0,12,12A12,12,0,0,0,92,184Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,184Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M192,16H64A16,16,0,0,0,48,32V224a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V32A16,16,0,0,0,192,16ZM100,200a12,12,0,1,1,12-12A12,12,0,0,1,100,200Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,100,140Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,100,80Zm56,120a12,12,0,1,1,12-12A12,12,0,0,1,156,200Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,156,140Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,156,80Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M102,60A10,10,0,1,1,92,50,10,10,0,0,1,102,60Zm62,10a10,10,0,1,0-10-10A10,10,0,0,0,164,70ZM92,118a10,10,0,1,0,10,10A10,10,0,0,0,92,118Zm72,0a10,10,0,1,0,10,10A10,10,0,0,0,164,118ZM92,186a10,10,0,1,0,10,10A10,10,0,0,0,92,186Zm72,0a10,10,0,1,0,10,10A10,10,0,0,0,164,186Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M104,60A12,12,0,1,1,92,48,12,12,0,0,1,104,60Zm60,12a12,12,0,1,0-12-12A12,12,0,0,0,164,72ZM92,116a12,12,0,1,0,12,12A12,12,0,0,0,92,116Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,116ZM92,184a12,12,0,1,0,12,12A12,12,0,0,0,92,184Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,184Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M100,60a8,8,0,1,1-8-8A8,8,0,0,1,100,60Zm64,8a8,8,0,1,0-8-8A8,8,0,0,0,164,68ZM92,120a8,8,0,1,0,8,8A8,8,0,0,0,92,120Zm72,0a8,8,0,1,0,8,8A8,8,0,0,0,164,120ZM92,188a8,8,0,1,0,8,8A8,8,0,0,0,92,188Zm72,0a8,8,0,1,0,8,8A8,8,0,0,0,164,188Z`}))]]),lte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M144,128a16,16,0,1,1-16-16A16,16,0,0,1,144,128ZM60,112a16,16,0,1,0,16,16A16,16,0,0,0,60,112Zm136,0a16,16,0,1,0,16,16A16,16,0,0,0,196,112Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M240,96v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V96A16,16,0,0,1,32,80H224A16,16,0,0,1,240,96Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V96A16,16,0,0,0,224,80ZM60,140a12,12,0,1,1,12-12A12,12,0,0,1,60,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,196,140Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M138,128a10,10,0,1,1-10-10A10,10,0,0,1,138,128ZM60,118a10,10,0,1,0,10,10A10,10,0,0,0,60,118Zm136,0a10,10,0,1,0,10,10A10,10,0,0,0,196,118Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M136,128a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-76-8a8,8,0,1,0,8,8A8,8,0,0,0,60,120Zm136,0a8,8,0,1,0,8,8A8,8,0,0,0,196,120Z`}))]]),ute=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M251,123.13c-.37-.81-9.13-20.26-28.48-39.61C196.63,57.67,164,44,128,44S59.37,57.67,33.51,83.52C14.16,102.87,5.4,122.32,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212s68.63-13.66,94.48-39.51c19.36-19.35,28.12-38.79,28.49-39.61A12.08,12.08,0,0,0,251,123.13Zm-46.06,33C183.47,177.27,157.59,188,128,188s-55.47-10.73-76.91-31.88A130.36,130.36,0,0,1,29.52,128,130.45,130.45,0,0,1,51.09,99.89C72.54,78.73,98.41,68,128,68s55.46,10.73,76.91,31.89A130.36,130.36,0,0,1,226.48,128,130.45,130.45,0,0,1,204.91,156.12ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M245.48,125.57c-.34-.78-8.66-19.23-27.24-37.81C201,70.54,171.38,50,128,50S55,70.54,37.76,87.76c-18.58,18.58-26.9,37-27.24,37.81a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206s73-20.53,90.24-37.75c18.58-18.58,26.9-37,27.24-37.8A6,6,0,0,0,245.48,125.57ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.77,134.77,0,0,1,22.69,128,134.56,134.56,0,0,1,46.55,95.94C69.22,73.42,96.62,62,128,62s58.78,11.42,81.45,33.94A134.56,134.56,0,0,1,233.31,128C226.94,140.21,195,194,128,194Zm0-112a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M243.66,126.38c-.34-.76-8.52-18.89-26.83-37.2C199.87,72.22,170.7,52,128,52S56.13,72.22,39.17,89.18c-18.31,18.31-26.49,36.44-26.83,37.2a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17s71.87-20.21,88.83-37.17c18.31-18.31,26.49-36.43,26.83-37.2A4.08,4.08,0,0,0,243.66,126.38Zm-32.7,35c-23.07,23-51,34.62-83,34.62s-59.89-11.65-83-34.62A135.71,135.71,0,0,1,20.44,128,135.69,135.69,0,0,1,45,94.62C68.11,71.65,96,60,128,60s59.89,11.65,83,34.62A135.79,135.79,0,0,1,235.56,128,135.71,135.71,0,0,1,211,161.38ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Z`}))]]),dte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M222.14,69.17,186.83,33.86A19.86,19.86,0,0,0,172.69,28H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V83.31A19.86,19.86,0,0,0,222.14,69.17ZM164,204H92V160h72Zm40,0H188V156a20,20,0,0,0-20-20H88a20,20,0,0,0-20,20v48H52V52H171l33,33ZM164,84a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h56A12,12,0,0,1,164,84Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,83.31V208a8,8,0,0,1-8,8H176V152a8,8,0,0,0-8-8H88a8,8,0,0,0-8,8v64H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H172.69a8,8,0,0,1,5.65,2.34l35.32,35.32A8,8,0,0,1,216,83.31Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM168,208H88V152h80Zm40,0H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM208,208H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M217.9,73.42,182.58,38.1a13.9,13.9,0,0,0-9.89-4.1H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V83.31A13.9,13.9,0,0,0,217.9,73.42ZM170,210H86V152a2,2,0,0,1,2-2h80a2,2,0,0,1,2,2Zm40-2a2,2,0,0,1-2,2H182V152a14,14,0,0,0-14-14H88a14,14,0,0,0-14,14v58H48a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H172.69a2,2,0,0,1,1.41.58L209.42,81.9a2,2,0,0,1,.58,1.41ZM158,72a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h56A6,6,0,0,1,158,72Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM168,208H88V152h80Zm40,0H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216.49,74.83,181.17,39.51A11.93,11.93,0,0,0,172.69,36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V83.31A11.93,11.93,0,0,0,216.49,74.83ZM172,212H84V152a4,4,0,0,1,4-4h80a4,4,0,0,1,4,4Zm40-4a4,4,0,0,1-4,4H180V152a12,12,0,0,0-12-12H88a12,12,0,0,0-12,12v60H48a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H172.69a4,4,0,0,1,2.82,1.17l35.32,35.32A4,4,0,0,1,212,83.31ZM156,72a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h56A4,4,0,0,1,156,72Z`}))]]),fte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,68H132L105.33,48a20.12,20.12,0,0,0-12-4H40A20,20,0,0,0,20,64V200a20,20,0,0,0,20,20H216.89A19.13,19.13,0,0,0,236,200.89V88A20,20,0,0,0,216,68Zm-4,128H44V68H92l28.8,21.6A12,12,0,0,0,128,92h84Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,88V200.89a7.11,7.11,0,0,1-7.11,7.11H40a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H93.33a8,8,0,0,1,4.8,1.6L128,80h88A8,8,0,0,1,224,88Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M216,72H130.67L102.93,51.2a16.12,16.12,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V200a16,16,0,0,0,16,16H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72Zm0,128H40V64H93.33L123.2,86.4A8,8,0,0,0,128,88h88Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,88V200.89A15.13,15.13,0,0,1,216.89,216H40a16,16,0,0,1-16-16V64A16,16,0,0,1,40,48H93.33a16.12,16.12,0,0,1,9.6,3.2L130.67,72H216A16,16,0,0,1,232,88Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,74H130L101.73,52.8a14,14,0,0,0-8.4-2.8H40A14,14,0,0,0,26,64V200a14,14,0,0,0,14,14H216.89A13.12,13.12,0,0,0,230,200.89V88A14,14,0,0,0,216,74Zm2,126.89a1.11,1.11,0,0,1-1.11,1.11H40a2,2,0,0,1-2-2V64a2,2,0,0,1,2-2H93.33a2,2,0,0,1,1.2.4L124.4,84.8A6,6,0,0,0,128,86h88a2,2,0,0,1,2,2Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,72H130.67L102.93,51.2a16.12,16.12,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V200a16,16,0,0,0,16,16H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72Zm0,128H40V64H93.33L123.2,86.4A8,8,0,0,0,128,88h88Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,76H129.33l-28.8-21.6a12.05,12.05,0,0,0-7.2-2.4H40A12,12,0,0,0,28,64V200a12,12,0,0,0,12,12H216.89A11.12,11.12,0,0,0,228,200.89V88A12,12,0,0,0,216,76Zm4,124.89a3.12,3.12,0,0,1-3.11,3.11H40a4,4,0,0,1-4-4V64a4,4,0,0,1,4-4H93.33a4,4,0,0,1,2.4.8L125.6,83.2a4,4,0,0,0,2.4.8h88a4,4,0,0,1,4,4Z`}))]]),pte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M209.88,69.83A115.19,115.19,0,0,0,128,36h-.41C63.85,36.22,12,88.76,12,153.13V176a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V152A115.25,115.25,0,0,0,209.88,69.83ZM220,172H127.32l46.44-65A12,12,0,1,0,154.24,93L97.82,172H36V153.13c0-1.72,0-3.43.14-5.13H56a12,12,0,0,0,0-24H40.62c10.91-33.39,40-58.52,75.38-63.21V80a12,12,0,0,0,24,0V60.8A92,92,0,0,1,215.66,124H200a12,12,0,0,0,0,24h19.9c.06,1.33.1,2.66.1,4Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,152v24a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V153.13C24,95.65,70.15,48.2,127.63,48A104,104,0,0,1,232,152Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M207.06,72.67A111.24,111.24,0,0,0,128,40h-.4C66.07,40.21,16,91,16,153.13V176a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V152A111.25,111.25,0,0,0,207.06,72.67ZM224,176H119.71l54.76-75.3a8,8,0,0,0-12.94-9.42L99.92,176H32V153.13c0-3.08.15-6.12.43-9.13H56a8,8,0,0,0,0-16H35.27c10.32-38.86,44-68.24,84.73-71.66V80a8,8,0,0,0,16,0V56.33A96.14,96.14,0,0,1,221,128H200a8,8,0,0,0,0,16h23.67c.21,2.65.33,5.31.33,8Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M240,152v24a16,16,0,0,1-16,16H115.93a4,4,0,0,1-3.24-6.35L174.27,101a8.21,8.21,0,0,0-1.37-11.3,8,8,0,0,0-11.37,1.61l-72,99.06A4,4,0,0,1,86.25,192H32a16,16,0,0,1-16-16V153.13c0-1.79,0-3.57.13-5.33a4,4,0,0,1,4-3.8H48a8,8,0,0,0,8-8.53A8.17,8.17,0,0,0,47.73,128H23.92a4,4,0,0,1-3.87-5c12-43.84,49.66-77.13,95.52-82.28a4,4,0,0,1,4.43,4V72a8,8,0,0,0,8.53,8A8.17,8.17,0,0,0,136,71.73V44.67a4,4,0,0,1,4.43-4A112.18,112.18,0,0,1,236.23,123a4,4,0,0,1-3.88,5H208.27a8.17,8.17,0,0,0-8.25,7.47,8,8,0,0,0,8,8.53h27.92a4,4,0,0,1,4,3.86C240,149.23,240,150.61,240,152Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M205.65,74.08A109.26,109.26,0,0,0,128,42h-.39C67.17,42.21,18,92.06,18,153.13V176a14,14,0,0,0,14,14H224a14,14,0,0,0,14-14V152A109.3,109.3,0,0,0,205.65,74.08ZM226,176a2,2,0,0,1-2,2H115.78l57.07-78.47a6,6,0,0,0-9.7-7.06L100.94,178H32a2,2,0,0,1-2-2V153.13A102.36,102.36,0,0,1,30.62,142H56a6,6,0,0,0,0-12H32.71C42.6,88.4,78.53,56.86,122,54.19V80a6,6,0,0,0,12,0V54.19A98.05,98.05,0,0,1,223.53,130H200a6,6,0,0,0,0,12h25.5c.33,3.3.5,6.64.5,10Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M207.06,72.67A111.24,111.24,0,0,0,128,40h-.4C66.07,40.21,16,91,16,153.13V176a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V152A111.25,111.25,0,0,0,207.06,72.67ZM224,176H119.71l54.76-75.3a8,8,0,0,0-12.94-9.42L99.92,176H32V153.13c0-3.08.15-6.12.43-9.13H56a8,8,0,0,0,0-16H35.27c10.32-38.86,44-68.24,84.73-71.66V80a8,8,0,0,0,16,0V56.33A96.14,96.14,0,0,1,221,128H200a8,8,0,0,0,0,16h23.67c.21,2.65.33,5.31.33,8Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M204.23,75.5A107.37,107.37,0,0,0,127.62,44C68.28,44.21,20,93.16,20,153.13V176a12,12,0,0,0,12,12H224a12,12,0,0,0,12-12V152A107.25,107.25,0,0,0,204.23,75.5ZM228,176a4,4,0,0,1-4,4H111.85l59.38-81.65a4,4,0,1,0-6.46-4.7L102,180H32a4,4,0,0,1-4-4V153.13A103.42,103.42,0,0,1,28.84,140H56a4,4,0,0,0,0-8H30.21C39.59,87.66,77.84,53.93,124,52.09V80a4,4,0,0,0,8,0V52.08A100.08,100.08,0,0,1,226,132H200a4,4,0,0,0,0,8h27.29a101.6,101.6,0,0,1,.71,12Z`}))]]),mte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M236,64a36,36,0,1,0-48,33.94V112a4,4,0,0,1-4,4H96a27.8,27.8,0,0,0-4,.29V97.94a36,36,0,1,0-24,0v60.12a36,36,0,1,0,24,0V144a4,4,0,0,1,4-4h88a28,28,0,0,0,28-28V97.94A36.07,36.07,0,0,0,236,64ZM80,52A12,12,0,1,1,68,64,12,12,0,0,1,80,52Zm0,152a12,12,0,1,1,12-12A12,12,0,0,1,80,204ZM200,76a12,12,0,1,1,12-12A12,12,0,0,1,200,76Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,64a24,24,0,1,1-24-24A24,24,0,0,1,224,64Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M232,64a32,32,0,1,0-40,31v17a8,8,0,0,1-8,8H96a23.84,23.84,0,0,0-8,1.38V95a32,32,0,1,0-16,0v66a32,32,0,1,0,16,0V144a8,8,0,0,1,8-8h88a24,24,0,0,0,24-24V95A32.06,32.06,0,0,0,232,64ZM64,64A16,16,0,1,1,80,80,16,16,0,0,1,64,64ZM96,192a16,16,0,1,1-16-16A16,16,0,0,1,96,192ZM200,80a16,16,0,1,1,16-16A16,16,0,0,1,200,80Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,64a32,32,0,1,0-40,31v17a8,8,0,0,1-8,8H96a23.84,23.84,0,0,0-8,1.38V95a32,32,0,1,0-16,0v66a32,32,0,1,0,16,0V144a8,8,0,0,1,8-8h88a24,24,0,0,0,24-24V95A32.06,32.06,0,0,0,232,64ZM64,64A16,16,0,1,1,80,80,16,16,0,0,1,64,64ZM96,192a16,16,0,1,1-16-16A16,16,0,0,1,96,192Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M230,64a30,30,0,1,0-36,29.4V112a10,10,0,0,1-10,10H96a21.84,21.84,0,0,0-10,2.42v-31a30,30,0,1,0-12,0v69.2a30,30,0,1,0,12,0V144a10,10,0,0,1,10-10h88a22,22,0,0,0,22-22V93.4A30.05,30.05,0,0,0,230,64ZM62,64A18,18,0,1,1,80,82,18,18,0,0,1,62,64ZM98,192a18,18,0,1,1-18-18A18,18,0,0,1,98,192ZM200,82a18,18,0,1,1,18-18A18,18,0,0,1,200,82Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,64a32,32,0,1,0-40,31v17a8,8,0,0,1-8,8H96a23.84,23.84,0,0,0-8,1.38V95a32,32,0,1,0-16,0v66a32,32,0,1,0,16,0V144a8,8,0,0,1,8-8h88a24,24,0,0,0,24-24V95A32.06,32.06,0,0,0,232,64ZM64,64A16,16,0,1,1,80,80,16,16,0,0,1,64,64ZM96,192a16,16,0,1,1-16-16A16,16,0,0,1,96,192ZM200,80a16,16,0,1,1,16-16A16,16,0,0,1,200,80Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M228,64a28,28,0,1,0-32,27.71V112a12,12,0,0,1-12,12H96a19.91,19.91,0,0,0-12,4V91.71a28,28,0,1,0-8,0v72.58a28,28,0,1,0,8,0V144a12,12,0,0,1,12-12h88a20,20,0,0,0,20-20V91.71A28,28,0,0,0,228,64ZM60,64A20,20,0,1,1,80,84,20,20,0,0,1,60,64Zm40,128a20,20,0,1,1-20-20A20,20,0,0,1,100,192ZM200,84a20,20,0,1,1,20-20A20,20,0,0,1,200,84Z`}))]]),hte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M212.62,75.17A63.7,63.7,0,0,0,206.39,26,12,12,0,0,0,196,20a63.71,63.71,0,0,0-50,24H126A63.71,63.71,0,0,0,76,20a12,12,0,0,0-10.39,6,63.7,63.7,0,0,0-6.23,49.17A61.5,61.5,0,0,0,52,104v8a60.1,60.1,0,0,0,45.76,58.28A43.66,43.66,0,0,0,92,192v4H76a20,20,0,0,1-20-20,44.05,44.05,0,0,0-44-44,12,12,0,0,0,0,24,20,20,0,0,1,20,20,44.05,44.05,0,0,0,44,44H92v12a12,12,0,0,0,24,0V192a20,20,0,0,1,40,0v40a12,12,0,0,0,24,0V192a43.66,43.66,0,0,0-5.76-21.72A60.1,60.1,0,0,0,220,112v-8A61.5,61.5,0,0,0,212.62,75.17ZM196,112a36,36,0,0,1-36,36H112a36,36,0,0,1-36-36v-8a37.87,37.87,0,0,1,6.13-20.12,11.65,11.65,0,0,0,1.58-11.49,39.9,39.9,0,0,1-.4-27.72,39.87,39.87,0,0,1,26.41,17.8A12,12,0,0,0,119.82,68h32.35a12,12,0,0,0,10.11-5.53,39.84,39.84,0,0,1,26.41-17.8,39.9,39.9,0,0,1-.4,27.72,12,12,0,0,0,1.61,11.53A37.85,37.85,0,0,1,196,104Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,104v8a48,48,0,0,1-48,48H136a32,32,0,0,1,32,32v40H104V192a32,32,0,0,1,32-32H112a48,48,0,0,1-48-48v-8a49.28,49.28,0,0,1,8.51-27.3A51.92,51.92,0,0,1,76,32a52,52,0,0,1,43.83,24h32.34A52,52,0,0,1,196,32a51.92,51.92,0,0,1,3.49,44.7A49.28,49.28,0,0,1,208,104Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M208.3,75.68A59.74,59.74,0,0,0,202.93,28,8,8,0,0,0,196,24a59.75,59.75,0,0,0-48,24H124A59.75,59.75,0,0,0,76,24a8,8,0,0,0-6.93,4,59.78,59.78,0,0,0-5.38,47.68A58.14,58.14,0,0,0,56,104v8a56.06,56.06,0,0,0,48.44,55.47A39.8,39.8,0,0,0,96,192v8H72a24,24,0,0,1-24-24A40,40,0,0,0,8,136a8,8,0,0,0,0,16,24,24,0,0,1,24,24,40,40,0,0,0,40,40H96v16a8,8,0,0,0,16,0V192a24,24,0,0,1,48,0v40a8,8,0,0,0,16,0V192a39.8,39.8,0,0,0-8.44-24.53A56.06,56.06,0,0,0,216,112v-8A58,58,0,0,0,208.3,75.68ZM200,112a40,40,0,0,1-40,40H112a40,40,0,0,1-40-40v-8a41.74,41.74,0,0,1,6.9-22.48A8,8,0,0,0,80,73.83a43.81,43.81,0,0,1,.79-33.58,43.88,43.88,0,0,1,32.32,20.06A8,8,0,0,0,119.82,64h32.35a8,8,0,0,0,6.74-3.69,43.87,43.87,0,0,1,32.32-20.06A43.81,43.81,0,0,1,192,73.83a8.09,8.09,0,0,0,1,7.65A41.76,41.76,0,0,1,200,104Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,104v8a56.06,56.06,0,0,1-48.44,55.47A39.8,39.8,0,0,1,176,192v40a8,8,0,0,1-8,8H104a8,8,0,0,1-8-8V216H72a40,40,0,0,1-40-40A24,24,0,0,0,8,152a8,8,0,0,1,0-16,40,40,0,0,1,40,40,24,24,0,0,0,24,24H96v-8a39.8,39.8,0,0,1,8.44-24.53A56.06,56.06,0,0,1,56,112v-8a58.14,58.14,0,0,1,7.69-28.32A59.78,59.78,0,0,1,69.07,28,8,8,0,0,1,76,24a59.75,59.75,0,0,1,48,24h24a59.75,59.75,0,0,1,48-24,8,8,0,0,1,6.93,4,59.74,59.74,0,0,1,5.37,47.68A58,58,0,0,1,216,104Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M206.13,75.92A57.79,57.79,0,0,0,201.2,29a6,6,0,0,0-5.2-3,57.77,57.77,0,0,0-47,24H123A57.77,57.77,0,0,0,76,26a6,6,0,0,0-5.2,3,57.79,57.79,0,0,0-4.93,46.92A55.88,55.88,0,0,0,58,104v8a54.06,54.06,0,0,0,50.45,53.87A37.85,37.85,0,0,0,98,192v10H72a26,26,0,0,1-26-26A38,38,0,0,0,8,138a6,6,0,0,0,0,12,26,26,0,0,1,26,26,38,38,0,0,0,38,38H98v18a6,6,0,0,0,12,0V192a26,26,0,0,1,52,0v40a6,6,0,0,0,12,0V192a37.85,37.85,0,0,0-10.45-26.13A54.06,54.06,0,0,0,214,112v-8A55.88,55.88,0,0,0,206.13,75.92ZM202,112a42,42,0,0,1-42,42H112a42,42,0,0,1-42-42v-8a43.86,43.86,0,0,1,7.3-23.69,6,6,0,0,0,.81-5.76,45.85,45.85,0,0,1,1.43-36.42,45.85,45.85,0,0,1,35.23,21.1A6,6,0,0,0,119.83,62h32.34a6,6,0,0,0,5.06-2.76,45.83,45.83,0,0,1,35.23-21.11,45.85,45.85,0,0,1,1.43,36.42,6,6,0,0,0,.79,5.74A43.78,43.78,0,0,1,202,104Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208.31,75.68A59.78,59.78,0,0,0,202.93,28,8,8,0,0,0,196,24a59.75,59.75,0,0,0-48,24H124A59.75,59.75,0,0,0,76,24a8,8,0,0,0-6.93,4,59.78,59.78,0,0,0-5.38,47.68A58.14,58.14,0,0,0,56,104v8a56.06,56.06,0,0,0,48.44,55.47A39.8,39.8,0,0,0,96,192v8H72a24,24,0,0,1-24-24A40,40,0,0,0,8,136a8,8,0,0,0,0,16,24,24,0,0,1,24,24,40,40,0,0,0,40,40H96v16a8,8,0,0,0,16,0V192a24,24,0,0,1,48,0v40a8,8,0,0,0,16,0V192a39.8,39.8,0,0,0-8.44-24.53A56.06,56.06,0,0,0,216,112v-8A58.14,58.14,0,0,0,208.31,75.68ZM200,112a40,40,0,0,1-40,40H112a40,40,0,0,1-40-40v-8a41.74,41.74,0,0,1,6.9-22.48A8,8,0,0,0,80,73.83a43.81,43.81,0,0,1,.79-33.58,43.88,43.88,0,0,1,32.32,20.06A8,8,0,0,0,119.82,64h32.35a8,8,0,0,0,6.74-3.69,43.87,43.87,0,0,1,32.32-20.06A43.81,43.81,0,0,1,192,73.83a8.09,8.09,0,0,0,1,7.65A41.72,41.72,0,0,1,200,104Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M203.94,76.16A55.73,55.73,0,0,0,199.46,30,4,4,0,0,0,196,28a55.78,55.78,0,0,0-46,24H122A55.78,55.78,0,0,0,76,28a4,4,0,0,0-3.46,2,55.73,55.73,0,0,0-4.48,46.16A53.78,53.78,0,0,0,60,104v8a52.06,52.06,0,0,0,52,52h1.41A36,36,0,0,0,100,192v12H72a28,28,0,0,1-28-28A36,36,0,0,0,8,140a4,4,0,0,0,0,8,28,28,0,0,1,28,28,36,36,0,0,0,36,36h28v20a4,4,0,0,0,8,0V192a28,28,0,0,1,56,0v40a4,4,0,0,0,8,0V192a36,36,0,0,0-13.41-28H160a52.06,52.06,0,0,0,52-52v-8A53.78,53.78,0,0,0,203.94,76.16ZM204,112a44.05,44.05,0,0,1-44,44H112a44.05,44.05,0,0,1-44-44v-8a45.76,45.76,0,0,1,7.71-24.89,4,4,0,0,0,.53-3.84,47.82,47.82,0,0,1,2.1-39.21,47.8,47.8,0,0,1,38.12,22.1A4,4,0,0,0,119.83,60h32.34a4,4,0,0,0,3.37-1.84,47.8,47.8,0,0,1,38.12-22.1,47.82,47.82,0,0,1,2.1,39.21,4,4,0,0,0,.53,3.83A45.85,45.85,0,0,1,204,104Z`}))]]),gte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M188,84a32,32,0,0,0-8,1V60a32,32,0,0,0-43.21-30A32,32,0,0,0,76,44v1A32,32,0,0,0,36,76v76a92,92,0,0,0,184,0V116A32,32,0,0,0,188,84Zm8,68a68,68,0,0,1-136,0V76a8,8,0,0,1,16,0v40a12,12,0,0,0,24,0V44a8,8,0,0,1,16,0v64a12,12,0,0,0,24,0V60a8,8,0,0,1,16,0v65.4A52.09,52.09,0,0,0,116,176a12,12,0,0,0,24,0,28,28,0,0,1,28-28,12,12,0,0,0,12-12V116a8,8,0,0,1,16,0Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,116v36a80,80,0,0,1-160,0V76a20,20,0,0,1,40,0V44a20,20,0,0,1,40,0V60a20,20,0,0,1,40,0v56a20,20,0,0,1,40,0Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M188,88a27.75,27.75,0,0,0-12,2.71V60a28,28,0,0,0-41.36-24.6A28,28,0,0,0,80,44v6.71A27.75,27.75,0,0,0,68,48,28,28,0,0,0,40,76v76a88,88,0,0,0,176,0V116A28,28,0,0,0,188,88Zm12,64a72,72,0,0,1-144,0V76a12,12,0,0,1,24,0v44a8,8,0,0,0,16,0V44a12,12,0,0,1,24,0v68a8,8,0,0,0,16,0V60a12,12,0,0,1,24,0v68.67A48.08,48.08,0,0,0,120,176a8,8,0,0,0,16,0,32,32,0,0,1,32-32,8,8,0,0,0,8-8V116a12,12,0,0,1,24,0Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,104v48a88,88,0,0,1-176,0V64a16,16,0,0,1,32,0v56a8,8,0,0,0,16,0V32a16,16,0,0,1,32,0v80a8,8,0,0,0,16,0V48a16,16,0,0,1,32,0v80.67A48.08,48.08,0,0,0,128,176a8,8,0,0,0,16,0,32,32,0,0,1,32-32,8,8,0,0,0,8-8V104a16,16,0,0,1,32,0Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M188,90a25.8,25.8,0,0,0-14,4.11V60a26,26,0,0,0-40.59-21.51A26,26,0,0,0,82,44V54.11A26,26,0,0,0,42,76v76a86,86,0,0,0,172,0V116A26,26,0,0,0,188,90Zm14,62a74,74,0,0,1-148,0V76a14,14,0,0,1,28,0v44a6,6,0,0,0,12,0V44a14,14,0,0,1,28,0v68a6,6,0,0,0,12,0V60a14,14,0,0,1,28,0v70.39A46.07,46.07,0,0,0,122,176a6,6,0,0,0,12,0,34,34,0,0,1,34-34,6,6,0,0,0,6-6V116a14,14,0,0,1,28,0Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M188,88a27.75,27.75,0,0,0-12,2.71V60a28,28,0,0,0-41.36-24.6A28,28,0,0,0,80,44v6.71A27.75,27.75,0,0,0,68,48,28,28,0,0,0,40,76v76a88,88,0,0,0,176,0V116A28,28,0,0,0,188,88Zm12,64a72,72,0,0,1-144,0V76a12,12,0,0,1,24,0v44a8,8,0,0,0,16,0V44a12,12,0,0,1,24,0v68a8,8,0,0,0,16,0V60a12,12,0,0,1,24,0v68.67A48.08,48.08,0,0,0,120,176a8,8,0,0,0,16,0,32,32,0,0,1,32-32,8,8,0,0,0,8-8V116a12,12,0,0,1,24,0Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M188,92a23.9,23.9,0,0,0-16,6.13V60a24,24,0,0,0-40.07-17.8A24,24,0,0,0,84,44V58.13A24,24,0,0,0,44,76v76a84,84,0,0,0,168,0V116A24,24,0,0,0,188,92Zm16,60a76,76,0,0,1-152,0V76a16,16,0,0,1,32,0v44a4,4,0,0,0,8,0V44a16,16,0,0,1,32,0v68a4,4,0,0,0,8,0V60a16,16,0,0,1,32,0v72.18A44.06,44.06,0,0,0,124,176a4,4,0,0,0,8,0,36,36,0,0,1,36-36,4,4,0,0,0,4-4V116a16,16,0,0,1,32,0Z`}))]]),_te=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M184.63,23.14a12,12,0,0,1,15-8A72.34,72.34,0,0,1,228.4,32a12,12,0,0,1-16.58,17.35,48.31,48.31,0,0,0-19.2-11.2A12,12,0,0,1,184.63,23.14ZM232.85,167.8A92,92,0,0,1,64.31,190l-40-69.32A32,32,0,0,1,36,77a31.72,31.72,0,0,1,7.54-3.14A32,32,0,0,1,88.65,32.45a32,32,0,0,1,53,3.55l14.53,25.17A32,32,0,0,1,206.35,68l17.31,30A91.38,91.38,0,0,1,232.85,167.8Zm-30-57.81L185.57,80a8,8,0,0,0-13.86,8h0l6.68,11.57a12,12,0,0,1-3.18,15.59,28,28,0,0,0-6.41,38.1,12,12,0,1,1-19.86,13.46,52.05,52.05,0,0,1,3.9-63.4L120.9,48A8,8,0,0,0,107,56l24.25,42a12,12,0,1,1-20.78,12L79.33,56a8,8,0,0,0-13.85,8L99,122a12,12,0,0,1-20.78,12L58.93,100.67a8,8,0,1,0-13.85,8L85.1,178a68,68,0,0,0,117.78-68ZM50.46,198a12,12,0,1,0-20.78,12,132.79,132.79,0,0,0,20,26.38,12,12,0,1,0,17.17-16.76A109.2,109.2,0,0,1,50.46,198Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M184,213.27A80,80,0,0,1,74.7,184l-40-69.32a20,20,0,0,1,34.64-20L55.08,70A20,20,0,0,1,89.73,50l6.92,12h0a20,20,0,0,1,34.64-20l30,52A20,20,0,0,1,196,74l17.31,30A80,80,0,0,1,184,213.27Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M220.17,100,202.86,70a28,28,0,0,0-38.24-10.25,27.69,27.69,0,0,0-9,8.34L138.2,38a28,28,0,0,0-48.48,0A28,28,0,0,0,48.15,74l1.59,2.76A27.67,27.67,0,0,0,38,80.41a28,28,0,0,0-10.24,38.25l40,69.32a87.47,87.47,0,0,0,53.43,41,88.56,88.56,0,0,0,22.92,3,88,88,0,0,0,76.06-132Zm-6.66,62.64A72,72,0,0,1,81.62,180l-40-69.32a12,12,0,0,1,20.78-12L81.63,132a8,8,0,1,0,13.85-8L62,66A12,12,0,1,1,82.78,54L114,108a8,8,0,1,0,13.85-8L103.57,58h0a12,12,0,1,1,20.78-12l33.42,57.9a48,48,0,0,0-5.54,60.6,8,8,0,0,0,13.24-9A32,32,0,0,1,172.78,112a8,8,0,0,0,2.13-10.4L168.23,90A12,12,0,1,1,189,78l17.31,30A71.56,71.56,0,0,1,213.51,162.62ZM184.25,31.71A8,8,0,0,1,194,26a59.62,59.62,0,0,1,36.53,28l.33.57a8,8,0,1,1-13.85,8l-.33-.57a43.67,43.67,0,0,0-26.8-20.5A8,8,0,0,1,184.25,31.71ZM80.89,237a8,8,0,0,1-11.23,1.33A119.56,119.56,0,0,1,40.06,204a8,8,0,0,1,13.86-8,103.67,103.67,0,0,0,25.64,29.72A8,8,0,0,1,80.89,237Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M219.31,98.46A88,88,0,1,1,67.08,186.77h0L26.15,115.88a16,16,0,0,1,27.69-16L72.4,132a8,8,0,0,0,13.86-8L47,56A16,16,0,0,1,74.69,40L114,108a8,8,0,1,0,13.85-8l-30-52a16,16,0,0,1,27.71-16L166,102.12A48.25,48.25,0,0,0,152,136a47.59,47.59,0,0,0,9.6,28.8,8,8,0,1,0,12.79-9.61A32,32,0,0,1,181,110.26a8,8,0,0,0,2.17-10.43L171.71,80a16,16,0,0,1,27.71-16l19.89,34.46Zm-29.37-57A43.74,43.74,0,0,1,216.74,62l.33.57a8,8,0,0,0,13.86-8L230.6,54a59.64,59.64,0,0,0-36.54-28,8,8,0,0,0-4.12,15.46ZM79.58,225.72A103.58,103.58,0,0,1,53.93,196a8,8,0,0,0-13.86,8,119.56,119.56,0,0,0,29.6,34.28,8,8,0,0,0,9.91-12.56Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M218.44,101,201.13,71a26,26,0,0,0-45.58,1L136.47,39a26,26,0,0,0-46.14,2.19A26,26,0,0,0,49.88,73l3.29,5.7a26,26,0,0,0-23.69,39L69.5,187a85.44,85.44,0,0,0,52.21,40.08,86.71,86.71,0,0,0,22.4,3,86,86,0,0,0,74.33-129Zm-3,62.16A74,74,0,0,1,79.89,181l-40-69.32a14,14,0,0,1,24.25-14L83.36,131a6,6,0,0,0,10.39-6L60.27,67A14,14,0,1,1,84.52,53l31.17,54a6,6,0,0,0,5.2,3,5.9,5.9,0,0,0,3-.81,6,6,0,0,0,2.2-8.2L101.83,59a14,14,0,0,1,24.25-14l34.2,59.23a46,46,0,0,0-6.4,59.13,6,6,0,0,0,9.94-6.73,34,34,0,0,1,7.76-46.26,6,6,0,0,0,1.6-7.8L166.49,91a14,14,0,1,1,24.25-14l17.31,30A73.53,73.53,0,0,1,215.44,163.14ZM186.18,32.22A6,6,0,0,1,193.52,28a57.59,57.59,0,0,1,35.32,27l.33.57a6,6,0,1,1-10.39,6l-.33-.57a45.69,45.69,0,0,0-28-21.43A6,6,0,0,1,186.18,32.22ZM79.32,235.71a6,6,0,0,1-8.42,1A117.79,117.79,0,0,1,41.79,203a6,6,0,0,1,10.4-6,105.48,105.48,0,0,0,26.14,30.29A6,6,0,0,1,79.32,235.71Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M220.17,100,202.86,70a28,28,0,0,0-38.24-10.25,27.69,27.69,0,0,0-9,8.34L138.2,38a28,28,0,0,0-48.48,0A28,28,0,0,0,48.15,74l1.59,2.76A27.67,27.67,0,0,0,38,80.41a28,28,0,0,0-10.24,38.25l40,69.32a87.47,87.47,0,0,0,53.43,41,88.56,88.56,0,0,0,22.92,3,88,88,0,0,0,76.06-132Zm-6.66,62.64A72,72,0,0,1,81.62,180l-40-69.32a12,12,0,0,1,20.78-12L81.63,132a8,8,0,1,0,13.85-8L62,66A12,12,0,1,1,82.78,54L114,108a8,8,0,1,0,13.85-8L103.57,58h0a12,12,0,1,1,20.78-12l33.42,57.9a48,48,0,0,0-5.54,60.6,8,8,0,0,0,13.24-9A32,32,0,0,1,172.78,112a8,8,0,0,0,2.13-10.4L168.23,90A12,12,0,1,1,189,78l17.31,30A71.56,71.56,0,0,1,213.51,162.62ZM184.25,31.71A8,8,0,0,1,194,26a59.62,59.62,0,0,1,36.53,28l.33.57a8,8,0,1,1-13.85,8l-.33-.57a43.67,43.67,0,0,0-26.8-20.5A8,8,0,0,1,184.25,31.71ZM80.89,237a8,8,0,0,1-11.23,1.33A119.56,119.56,0,0,1,40.06,204a8,8,0,0,1,13.86-8,103.67,103.67,0,0,0,25.64,29.72A8,8,0,0,1,80.89,237Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216.71,102,199.4,72a24,24,0,0,0-43.57,4.52L134.74,40a24,24,0,0,0-43.69,4.9A24,24,0,0,0,51.61,72l5.31,9.19a24,24,0,0,0-25.71,35.47l40,69.32a83.4,83.4,0,0,0,51,39.14,84.45,84.45,0,0,0,21.88,2.9,84,84,0,0,0,72.6-126Zm.67,61.67A76,76,0,0,1,78.16,182l-40-69.32a16,16,0,0,1,27.71-16L85.09,130A4,4,0,0,0,92,126L58.54,68A16,16,0,1,1,86.25,52l31.17,54a4,4,0,1,0,6.93-4L100.1,60a16,16,0,0,1,27.72-16l35,60.63a44,44,0,0,0-7.28,57.61,4,4,0,1,0,6.62-4.49,36,36,0,0,1,8.22-49,4,4,0,0,0,1.07-5.2L164.76,92a16,16,0,1,1,27.71-16l17.31,30A75.52,75.52,0,0,1,217.38,163.65ZM188.12,32.74A4,4,0,0,1,193,29.9,55.65,55.65,0,0,1,227.11,56l.33.58A4,4,0,0,1,226,62a4,4,0,0,1-5.47-1.46l-.33-.57A47.62,47.62,0,0,0,191,37.63,4,4,0,0,1,188.12,32.74ZM77.75,234.48A4,4,0,0,1,74.61,236a4,4,0,0,1-2.47-.86A115.55,115.55,0,0,1,43.53,202a4,4,0,1,1,6.92-4,107.72,107.72,0,0,0,26.64,30.86A4,4,0,0,1,77.75,234.48Z`}))]]),vte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,36H48A20,20,0,0,0,28,56V200a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V56A20,20,0,0,0,208,36Zm-4,24v56H52V60ZM52,196V140H204v56ZM160,88a16,16,0,1,1,16,16A16,16,0,0,1,160,88Zm32,80a16,16,0,1,1-16-16A16,16,0,0,1,192,168Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,152v48a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V152a8,8,0,0,1,8-8H208A8,8,0,0,1,216,152ZM208,48H48a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8H208a8,8,0,0,0,8-8V56A8,8,0,0,0,208,48Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M208,136H48a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V152A16,16,0,0,0,208,136Zm0,64H48V152H208v48Zm0-160H48A16,16,0,0,0,32,56v48a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V56A16,16,0,0,0,208,40Zm0,64H48V56H208v48ZM192,80a12,12,0,1,1-12-12A12,12,0,0,1,192,80Zm0,96a12,12,0,1,1-12-12A12,12,0,0,1,192,176Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,40H48A16,16,0,0,0,32,56v48a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V56A16,16,0,0,0,208,40ZM180,92a12,12,0,1,1,12-12A12,12,0,0,1,180,92Z`}),h.createElement(`path`,{d:`M208,136H48a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V152A16,16,0,0,0,208,136Zm-28,52a12,12,0,1,1,12-12A12,12,0,0,1,180,188Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,138H48a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V152A14,14,0,0,0,208,138Zm2,62a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2ZM208,42H48A14,14,0,0,0,34,56v48a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V56A14,14,0,0,0,208,42Zm2,62a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2ZM190,80a10,10,0,1,1-10-10A10,10,0,0,1,190,80Zm0,96a10,10,0,1,1-10-10A10,10,0,0,1,190,176Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,136H48a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V152A16,16,0,0,0,208,136Zm0,64H48V152H208v48Zm0-160H48A16,16,0,0,0,32,56v48a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V56A16,16,0,0,0,208,40Zm0,64H48V56H208v48ZM192,80a12,12,0,1,1-12-12A12,12,0,0,1,192,80Zm0,96a12,12,0,1,1-12-12A12,12,0,0,1,192,176Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,140H48a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V152A12,12,0,0,0,208,140Zm4,60a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4ZM208,44H48A12,12,0,0,0,36,56v48a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V56A12,12,0,0,0,208,44Zm4,60a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Zm-24,72a8,8,0,1,1-8-8A8,8,0,0,1,188,176Zm0-96a8,8,0,1,1-8-8A8,8,0,0,1,188,80Z`}))]]),yte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M204,75.64V40a20,20,0,0,0-20-20H72A20,20,0,0,0,52,40V76a20.1,20.1,0,0,0,8,16l48,36L60,164a20.1,20.1,0,0,0-8,16v36a20,20,0,0,0,20,20H184a20,20,0,0,0,20-20V180.36a20.13,20.13,0,0,0-7.94-16L147.9,128l48.16-36.4A20.13,20.13,0,0,0,204,75.64ZM180,212H76V182l52-39,52,39.33Zm0-138.35L128,113,76,74V44H180Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M188.82,82,128,128,67.2,82.4A8,8,0,0,1,64,76V40a8,8,0,0,1,8-8H184a8,8,0,0,1,8,8V75.64A8,8,0,0,1,188.82,82ZM64,180v36a8,8,0,0,0,8,8H184a8,8,0,0,0,8-8V180.36a8,8,0,0,0-3.18-6.38L128,128,67.2,173.6A8,8,0,0,0,64,180Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M200,75.64V40a16,16,0,0,0-16-16H72A16,16,0,0,0,56,40V76a16.07,16.07,0,0,0,6.4,12.8L114.67,128,62.4,167.2A16.07,16.07,0,0,0,56,180v36a16,16,0,0,0,16,16H184a16,16,0,0,0,16-16V180.36a16.09,16.09,0,0,0-6.35-12.77L141.27,128l52.38-39.59A16.09,16.09,0,0,0,200,75.64ZM184,216H72V180l56-42,56,42.35Zm0-140.36L128,118,72,76V40H184Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M200,75.64V40a16,16,0,0,0-16-16H72A16,16,0,0,0,56,40V76a16.08,16.08,0,0,0,6.41,12.8L114.67,128,62.4,167.2A16.07,16.07,0,0,0,56,180v36a16,16,0,0,0,16,16H184a16,16,0,0,0,16-16V180.36a16,16,0,0,0-6.36-12.77L141.26,128l52.38-39.59A16.05,16.05,0,0,0,200,75.64Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M198,75.64V40a14,14,0,0,0-14-14H72A14,14,0,0,0,58,40V76a14.06,14.06,0,0,0,5.6,11.2L118,128,63.6,168.8A14.06,14.06,0,0,0,58,180v36a14,14,0,0,0,14,14H184a14,14,0,0,0,14-14V180.36a14.08,14.08,0,0,0-5.56-11.17L138,128l54.49-41.19A14.08,14.08,0,0,0,198,75.64ZM186,180.36V216a2,2,0,0,1-2,2H72a2,2,0,0,1-2-2V180a2,2,0,0,1,.8-1.6L128,135.51l57.22,43.25A2,2,0,0,1,186,180.36Zm0-104.72a2,2,0,0,1-.79,1.6L128,120.49,70.8,77.6A2,2,0,0,1,70,76V40a2,2,0,0,1,2-2H184a2,2,0,0,1,2,2Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M200,75.64V40a16,16,0,0,0-16-16H72A16,16,0,0,0,56,40V76a16.07,16.07,0,0,0,6.4,12.8L114.67,128,62.4,167.2A16.07,16.07,0,0,0,56,180v36a16,16,0,0,0,16,16H184a16,16,0,0,0,16-16V180.36a16.09,16.09,0,0,0-6.35-12.77L141.27,128l52.38-39.6A16.05,16.05,0,0,0,200,75.64ZM184,216H72V180l56-42,56,42.35Zm0-140.36L128,118,72,76V40H184Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M196,75.64V40a12,12,0,0,0-12-12H72A12,12,0,0,0,60,40V76a12,12,0,0,0,4.8,9.6L121.33,128,64.8,170.4A12,12,0,0,0,60,180v36a12,12,0,0,0,12,12H184a12,12,0,0,0,12-12V180.36a12.05,12.05,0,0,0-4.76-9.57L134.63,128l56.61-42.79A12.05,12.05,0,0,0,196,75.64Zm-8,104.72V216a4,4,0,0,1-4,4H72a4,4,0,0,1-4-4V180a4,4,0,0,1,1.6-3.2L128,133l58.42,44.16A4,4,0,0,1,188,180.36Zm0-104.72a4,4,0,0,1-1.59,3.19L128,123,69.6,79.2A4,4,0,0,1,68,76V40a4,4,0,0,1,4-4H184a4,4,0,0,1,4,4Z`}))]]),bte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z`}))]]),xte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,156h-4V72a28,28,0,0,0-28-28H56A28,28,0,0,0,28,72v84H24a12,12,0,0,0-12,12v24a28,28,0,0,0,28,28H216a28,28,0,0,0,28-28V168A12,12,0,0,0,232,156ZM52,72a4,4,0,0,1,4-4H200a4,4,0,0,1,4,4v84H52ZM220,192a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V180H220ZM156,96a12,12,0,0,1-12,12H112a12,12,0,0,1,0-24h32A12,12,0,0,1,156,96Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,72V176H40V72A16,16,0,0,1,56,56H200A16,16,0,0,1,216,72Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M232,168h-8V72a24,24,0,0,0-24-24H56A24,24,0,0,0,32,72v96H24a8,8,0,0,0-8,8v16a24,24,0,0,0,24,24H216a24,24,0,0,0,24-24V176A8,8,0,0,0,232,168ZM48,72a8,8,0,0,1,8-8H200a8,8,0,0,1,8,8v96H48ZM224,192a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8v-8H224ZM152,88a8,8,0,0,1-8,8H112a8,8,0,0,1,0-16h32A8,8,0,0,1,152,88Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,168h-8V72a24,24,0,0,0-24-24H56A24,24,0,0,0,32,72v96H24a8,8,0,0,0-8,8v16a24,24,0,0,0,24,24H216a24,24,0,0,0,24-24V176A8,8,0,0,0,232,168ZM112,72h32a8,8,0,0,1,0,16H112a8,8,0,0,1,0-16ZM224,192a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8v-8H224Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,170H222V72a22,22,0,0,0-22-22H56A22,22,0,0,0,34,72v98H24a6,6,0,0,0-6,6v16a22,22,0,0,0,22,22H216a22,22,0,0,0,22-22V176A6,6,0,0,0,232,170ZM46,72A10,10,0,0,1,56,62H200a10,10,0,0,1,10,10v98H46ZM226,192a10,10,0,0,1-10,10H40a10,10,0,0,1-10-10V182H226ZM150,88a6,6,0,0,1-6,6H112a6,6,0,0,1,0-12h32A6,6,0,0,1,150,88Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,168h-8V72a24,24,0,0,0-24-24H56A24,24,0,0,0,32,72v96H24a8,8,0,0,0-8,8v16a24,24,0,0,0,24,24H216a24,24,0,0,0,24-24V176A8,8,0,0,0,232,168ZM48,72a8,8,0,0,1,8-8H200a8,8,0,0,1,8,8v96H48ZM224,192a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8v-8H224ZM152,88a8,8,0,0,1-8,8H112a8,8,0,0,1,0-16h32A8,8,0,0,1,152,88Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,172H220V72a20,20,0,0,0-20-20H56A20,20,0,0,0,36,72V172H24a4,4,0,0,0-4,4v16a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V176A4,4,0,0,0,232,172ZM44,72A12,12,0,0,1,56,60H200a12,12,0,0,1,12,12V172H44ZM228,192a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V180H228ZM148,88a4,4,0,0,1-4,4H112a4,4,0,0,1,0-8h32A4,4,0,0,1,148,88Z`}))]]),Ste=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M219.71,117.38a12,12,0,0,0-7.25-8.52L161.28,88.39l10.59-70.61a12,12,0,0,0-20.64-10l-112,120a12,12,0,0,0,4.31,19.33l51.18,20.47L84.13,238.22a12,12,0,0,0,20.64,10l112-120A12,12,0,0,0,219.71,117.38ZM113.6,203.55l6.27-41.77a12,12,0,0,0-7.41-12.92L68.74,131.37,142.4,52.45l-6.27,41.77a12,12,0,0,0,7.41,12.92l43.72,17.49Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M96,240l16-80L48,136,160,16,144,96l64,24Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M215.79,118.17a8,8,0,0,0-5-5.66L153.18,90.9l14.66-73.33a8,8,0,0,0-13.69-7l-112,120a8,8,0,0,0,3,13l57.63,21.61L88.16,238.43a8,8,0,0,0,13.69,7l112-120A8,8,0,0,0,215.79,118.17ZM109.37,214l10.47-52.38a8,8,0,0,0-5-9.06L62,132.71l84.62-90.66L136.16,94.43a8,8,0,0,0,5,9.06l52.8,19.8Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M213.85,125.46l-112,120a8,8,0,0,1-13.69-7l14.66-73.33L45.19,143.49a8,8,0,0,1-3-13l112-120a8,8,0,0,1,13.69,7L153.18,90.9l57.63,21.61a8,8,0,0,1,3,12.95Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M213.84,118.63a6,6,0,0,0-3.73-4.25L150.88,92.17l15-75a6,6,0,0,0-10.27-5.27l-112,120a6,6,0,0,0,2.28,9.71l59.23,22.21-15,75a6,6,0,0,0,3.14,6.52A6.07,6.07,0,0,0,96,246a6,6,0,0,0,4.39-1.91l112-120A6,6,0,0,0,213.84,118.63ZM106,220.46l11.85-59.28a6,6,0,0,0-3.77-6.8l-55.6-20.85,91.46-98L138.12,94.82a6,6,0,0,0,3.77,6.8l55.6,20.85Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M215.79,118.17a8,8,0,0,0-5-5.66L153.18,90.9l14.66-73.33a8,8,0,0,0-13.69-7l-112,120a8,8,0,0,0,3,13l57.63,21.61L88.16,238.43a8,8,0,0,0,13.69,7l112-120A8,8,0,0,0,215.79,118.17ZM109.37,214l10.47-52.38a8,8,0,0,0-5-9.06L62,132.71l84.62-90.66L136.16,94.43a8,8,0,0,0,5,9.06l52.8,19.8Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M211.89,119.09a4,4,0,0,0-2.49-2.84l-60.81-22.8,15.33-76.67a4,4,0,0,0-6.84-3.51l-112,120a4,4,0,0,0-1,3.64,4,4,0,0,0,2.49,2.84l60.81,22.8L92.08,239.22a4,4,0,0,0,6.84,3.51l112-120A4,4,0,0,0,211.89,119.09ZM102.68,227l13.24-66.2a4,4,0,0,0-2.52-4.53L55,134.36,153.32,29l-13.24,66.2a4,4,0,0,0,2.52,4.53L201,121.64Z`}))]]),Cte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z`}))]]),wte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,52H24A20,20,0,0,0,4,72V200a12,12,0,0,0,24,0V188H48v12a12,12,0,0,0,24,0V188H92v12a12,12,0,0,0,24,0V188h24v12a12,12,0,0,0,24,0V188h20v12a12,12,0,0,0,24,0V188h20v12a12,12,0,0,0,24,0V72A20,20,0,0,0,232,52ZM28,76H228v88H28Zm92,64V100a12,12,0,0,0-12-12H56a12,12,0,0,0-12,12v40a12,12,0,0,0,12,12h52A12,12,0,0,0,120,140ZM96,128H68V112H96Zm52,24h52a12,12,0,0,0,12-12V100a12,12,0,0,0-12-12H148a12,12,0,0,0-12,12v40A12,12,0,0,0,148,152Zm12-40h28v16H160Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,64H24a8,8,0,0,0-8,8V176H240V72A8,8,0,0,0,232,64ZM112,144H48V96h64Zm96,0H144V96h64Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M232,56H24A16,16,0,0,0,8,72V200a8,8,0,0,0,16,0V184H40v16a8,8,0,0,0,16,0V184H72v16a8,8,0,0,0,16,0V184h16v16a8,8,0,0,0,16,0V184h16v16a8,8,0,0,0,16,0V184h16v16a8,8,0,0,0,16,0V184h16v16a8,8,0,0,0,16,0V184h16v16a8,8,0,0,0,16,0V72A16,16,0,0,0,232,56ZM24,72H232v96H24Zm88,80a8,8,0,0,0,8-8V96a8,8,0,0,0-8-8H48a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8ZM56,104h48v32H56Zm88,48h64a8,8,0,0,0,8-8V96a8,8,0,0,0-8-8H144a8,8,0,0,0-8,8v48A8,8,0,0,0,144,152Zm8-48h48v32H152Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,56H24A16,16,0,0,0,8,72V200a8,8,0,0,0,16,0V184H40v16a8,8,0,0,0,16,0V184H72v16a8,8,0,0,0,16,0V184h16v16a8,8,0,0,0,16,0V184h16v16a8,8,0,0,0,16,0V184h16v16a8,8,0,0,0,16,0V184h16v16a8,8,0,0,0,16,0V184h16v16a8,8,0,0,0,16,0V72A16,16,0,0,0,232,56ZM208,96v48H144V96Zm-96,0v48H48V96Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,58H24A14,14,0,0,0,10,72V200a6,6,0,0,0,12,0V182H42v18a6,6,0,0,0,12,0V182H74v18a6,6,0,0,0,12,0V182h20v18a6,6,0,0,0,12,0V182h20v18a6,6,0,0,0,12,0V182h20v18a6,6,0,0,0,12,0V182h20v18a6,6,0,0,0,12,0V182h20v18a6,6,0,0,0,12,0V72A14,14,0,0,0,232,58ZM22,72a2,2,0,0,1,2-2H232a2,2,0,0,1,2,2v98H22Zm90,78a6,6,0,0,0,6-6V96a6,6,0,0,0-6-6H48a6,6,0,0,0-6,6v48a6,6,0,0,0,6,6ZM54,102h52v36H54Zm90,48h64a6,6,0,0,0,6-6V96a6,6,0,0,0-6-6H144a6,6,0,0,0-6,6v48A6,6,0,0,0,144,150Zm6-48h52v36H150Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,56H24A16,16,0,0,0,8,72V200a8,8,0,0,0,16,0V184H40v16a8,8,0,0,0,16,0V184H72v16a8,8,0,0,0,16,0V184h16v16a8,8,0,0,0,16,0V184h16v16a8,8,0,0,0,16,0V184h16v16a8,8,0,0,0,16,0V184h16v16a8,8,0,0,0,16,0V184h16v16a8,8,0,0,0,16,0V72A16,16,0,0,0,232,56ZM24,72H232v96H24Zm88,80a8,8,0,0,0,8-8V96a8,8,0,0,0-8-8H48a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8ZM56,104h48v32H56Zm88,48h64a8,8,0,0,0,8-8V96a8,8,0,0,0-8-8H144a8,8,0,0,0-8,8v48A8,8,0,0,0,144,152Zm8-48h48v32H152Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,60H24A12,12,0,0,0,12,72V200a4,4,0,0,0,8,0V180H44v20a4,4,0,0,0,8,0V180H76v20a4,4,0,0,0,8,0V180h24v20a4,4,0,0,0,8,0V180h24v20a4,4,0,0,0,8,0V180h24v20a4,4,0,0,0,8,0V180h24v20a4,4,0,0,0,8,0V180h24v20a4,4,0,0,0,8,0V72A12,12,0,0,0,232,60ZM20,72a4,4,0,0,1,4-4H232a4,4,0,0,1,4,4V172H20Zm92,76a4,4,0,0,0,4-4V96a4,4,0,0,0-4-4H48a4,4,0,0,0-4,4v48a4,4,0,0,0,4,4ZM52,100h56v40H52Zm92,48h64a4,4,0,0,0,4-4V96a4,4,0,0,0-4-4H144a4,4,0,0,0-4,4v48A4,4,0,0,0,144,148Zm4-48h56v40H148Z`}))]]),Tte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M230.14,70.54,185.46,25.85a20,20,0,0,0-28.29,0L33.86,149.17A19.85,19.85,0,0,0,28,163.31V208a20,20,0,0,0,20,20H92.69a19.86,19.86,0,0,0,14.14-5.86L230.14,98.82a20,20,0,0,0,0-28.28ZM91,204H52V165l84-84,39,39ZM192,103,153,64l18.34-18.34,39,39Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M221.66,90.34,192,120,136,64l29.66-29.66a8,8,0,0,1,11.31,0L221.66,79A8,8,0,0,1,221.66,90.34Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM192,108.68,147.31,64l24-24L216,84.68Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M225.9,74.78,181.21,30.09a14,14,0,0,0-19.8,0L38.1,153.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H92.69a13.94,13.94,0,0,0,9.9-4.1L225.9,94.58a14,14,0,0,0,0-19.8ZM94.1,209.41a2,2,0,0,1-1.41.59H48a2,2,0,0,1-2-2V163.31a2,2,0,0,1,.59-1.41L136,72.48,183.51,120ZM217.41,86.1,192,111.51,144.49,64,169.9,38.58a2,2,0,0,1,2.83,0l44.68,44.69a2,2,0,0,1,0,2.83Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L133.17,61.17h0L39.52,154.83A11.9,11.9,0,0,0,36,163.31V208a12,12,0,0,0,12,12H92.69a12,12,0,0,0,8.48-3.51L224.48,93.17a12,12,0,0,0,0-17Zm-129,134.63A4,4,0,0,1,92.69,212H48a4,4,0,0,1-4-4V163.31a4,4,0,0,1,1.17-2.83L136,69.65,186.34,120ZM218.83,87.51,192,114.34,141.66,64l26.82-26.83a4,4,0,0,1,5.66,0l44.69,44.68a4,4,0,0,1,0,5.66Z`}))]]),Ete=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M248.59,58.67c-6.31-10.87-23-21.06-66.16-9.71A95.94,95.94,0,0,0,32,128q0,3.6.26,7.14C.56,166.86,1.1,186.4,7.44,197.33,13.4,207.61,25.3,212,40.68,212c9.79,0,21-1.78,32.95-4.91A95.94,95.94,0,0,0,224,128c0-2.41-.09-4.79-.27-7.16,14.31-14.38,23.86-28.21,27-40C253.55,70.42,251.12,63,248.59,58.67ZM128,56a72.11,72.11,0,0,1,70.19,56C184,124.73,165,138.59,141.92,151.86c-21.74,12.49-43.55,22.36-63.09,28.65A72,72,0,0,1,128,56ZM28.19,185.29c-.61-1.07-.17-8.22,10.67-21.71A95.77,95.77,0,0,0,52.35,187C35.12,189.61,28.85,186.41,28.19,185.29ZM128,200a71.66,71.66,0,0,1-22.56-3.64,394.1,394.1,0,0,0,48.42-23.69A388.11,388.11,0,0,0,198.43,143,72.12,72.12,0,0,1,128,200ZM227.57,74.65c-1.28,4.78-4.81,10.87-10.39,17.8A95.74,95.74,0,0,0,203.68,69c15.83-2.37,23.17,0,24.15,1.71C228,71,228.21,72.28,227.57,74.65Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M245.11,60.68c-7.65-13.19-27.84-16.16-58.5-8.66A95.93,95.93,0,0,0,32,128a98,98,0,0,0,.78,12.31C5.09,169,5.49,186,10.9,195.32,16,204.16,26.64,208,40.64,208a124.11,124.11,0,0,0,28.79-4A95.93,95.93,0,0,0,224,128a97.08,97.08,0,0,0-.77-12.25c12.5-13,20.82-25.35,23.65-35.92C248.83,72.51,248.24,66.07,245.11,60.68ZM128,48a80.11,80.11,0,0,1,78,62.2c-17.06,16.06-40.15,32.53-62.07,45.13C116.38,171.14,92.48,181,73.42,186.4A79.94,79.94,0,0,1,128,48ZM24.74,187.29c-1.46-2.51-.65-7.24,2.22-13a79.05,79.05,0,0,1,10.29-15.05,96,96,0,0,0,18,31.32C38,193.46,27.24,191.61,24.74,187.29ZM128,208a79.45,79.45,0,0,1-38.56-9.94,370,370,0,0,0,62.43-28.86c21.58-12.39,40.68-25.82,56.07-39.08A80.07,80.07,0,0,1,128,208ZM231.42,75.69c-1.7,6.31-6.19,13.53-12.63,21.13a95.69,95.69,0,0,0-18-31.35c14.21-2.35,27.37-2.17,30.5,3.24C232.19,70.28,232.24,72.63,231.42,75.69Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M245.11,60.68c-7.65-13.19-27.85-16.16-58.5-8.66A96,96,0,0,0,32.81,140.3C5.09,169,5.49,186,10.9,195.32,16,204.16,26.64,208,40.64,208a124.11,124.11,0,0,0,28.79-4,96,96,0,0,0,153.78-88.25c12.51-13,20.83-25.35,23.66-35.92C248.83,72.51,248.24,66.07,245.11,60.68Zm-13.69,15c-6.11,22.78-48.65,57.31-87.52,79.64-67.81,39-113.62,41.52-119.16,32-1.46-2.51-.65-7.24,2.22-13a80.06,80.06,0,0,1,10.28-15.05,95.53,95.53,0,0,0,6.23,14.18,4,4,0,0,0,4,2.12,122.14,122.14,0,0,0,16.95-3.32c21.23-5.55,46.63-16.48,71.52-30.78s47-30.66,62.45-46.15A122.74,122.74,0,0,0,209.7,82.45a4,4,0,0,0,.17-4.52,96.26,96.26,0,0,0-9.1-12.46c14.21-2.35,27.37-2.17,30.5,3.24C232.19,70.28,232.24,72.63,231.42,75.69Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M243.39,61.68c-7.24-12.48-27-15-57.24-7.49A93.92,93.92,0,0,0,34.05,128a94.5,94.5,0,0,0,.9,13c-21.86,22.38-29.56,40.78-22.29,53.32,4.5,7.76,14,11.69,27.86,11.69a116.38,116.38,0,0,0,25-3.16c1.45-.32,2.92-.68,4.41-1a93.95,93.95,0,0,0,151.19-86.89c12.65-13,21.11-25.32,23.86-35.6C246.76,72.53,246.24,66.59,243.39,61.68ZM128,46a82.12,82.12,0,0,1,80.19,64.94c-16,15.3-38.14,31.67-63.3,46.12C117.49,172.82,92.79,183,72.85,188.6A82,82,0,0,1,128,46ZM23,188.3c-3.52-6.07,2.31-18.56,15-33a94,94,0,0,0,21.07,36.62C39.42,195.74,26.39,194.08,23,188.3ZM128,210a81.41,81.41,0,0,1-43.35-12.45c20.68-6.71,43.56-17.06,66.22-30.08,22.83-13.12,43.13-27.67,59.05-41.91,0,.81.06,1.62.06,2.44A82.08,82.08,0,0,1,128,210ZM233.35,76.21c-1.88,7-7.28,15.49-15.36,24.61a93.92,93.92,0,0,0-21.1-36.7c15.82-3.05,32-3.49,36.12,3.58C234.2,69.75,234.31,72.62,233.35,76.21Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M245.11,60.68c-7.65-13.19-27.84-16.16-58.5-8.66A95.93,95.93,0,0,0,32,128a98,98,0,0,0,.78,12.31C5.09,169,5.49,186,10.9,195.32,16,204.16,26.64,208,40.64,208a124.11,124.11,0,0,0,28.79-4A95.93,95.93,0,0,0,224,128a97.08,97.08,0,0,0-.77-12.25c12.5-13,20.82-25.35,23.65-35.92C248.83,72.51,248.24,66.07,245.11,60.68ZM128,48a80.11,80.11,0,0,1,78,62.2c-17.06,16.06-40.15,32.53-62.07,45.13C116.38,171.14,92.48,181,73.42,186.4A79.94,79.94,0,0,1,128,48ZM24.74,187.29c-1.46-2.51-.65-7.24,2.22-13a79.05,79.05,0,0,1,10.29-15.05,96,96,0,0,0,18,31.32C38,193.46,27.24,191.61,24.74,187.29ZM128,208a79.45,79.45,0,0,1-38.56-9.94,370,370,0,0,0,62.43-28.86c21.58-12.39,40.68-25.82,56.07-39.08A80.07,80.07,0,0,1,128,208ZM231.42,75.69c-1.7,6.31-6.19,13.53-12.63,21.13a95.69,95.69,0,0,0-18-31.35c14.21-2.35,27.37-2.17,30.5,3.24C232.19,70.28,232.24,72.63,231.42,75.69Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M241.66,62.68c-6.73-11.58-26.58-13.8-56-6.3A92,92,0,0,0,37,141.7c-21.38,21.69-29.44,40-22.68,51.62,4.13,7.11,13,10.71,26,10.71A115.25,115.25,0,0,0,65,200.9c1.74-.39,3.52-.82,5.32-1.28A92,92,0,0,0,220,128a92.84,92.84,0,0,0-1-13.73c12.77-13,21.31-25.28,24-35.47C244.69,72.54,244.23,67.12,241.66,62.68ZM128,44a84.13,84.13,0,0,1,82.38,67.56c-16.17,15.69-38.8,32.48-64.49,47.24-27.31,15.69-52.81,26.25-73.61,32A84,84,0,0,1,128,44ZM21.25,189.3C17,182,23.75,167.7,39,151.24A92,92,0,0,0,63,193.09C40.86,198,25.47,196.58,21.25,189.3ZM128,212a83.58,83.58,0,0,1-48-15.1c21.58-6.58,45.83-17.37,69.85-31.16,24.25-13.94,45.61-29.46,61.83-44.44.18,2.21.3,4.44.3,6.7A84.1,84.1,0,0,1,128,212ZM235.28,76.73c-2.13,8-8.58,17.65-18.25,28.06a92.07,92.07,0,0,0-24.12-41.92c21.85-4.82,37.59-3.46,41.83,3.83C236.2,69.23,236.39,72.6,235.28,76.73Z`}))]]),Dte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z`}))]]),Ote=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M72,104a16,16,0,1,1,16,16A16,16,0,0,1,72,104Zm96,16a16,16,0,1,0-16-16A16,16,0,0,0,168,120Zm68-40V192a36,36,0,0,1-36,36H56a36,36,0,0,1-36-36V80A36,36,0,0,1,56,44h60V16a12,12,0,0,1,24,0V44h60A36,36,0,0,1,236,80Zm-24,0a12,12,0,0,0-12-12H56A12,12,0,0,0,44,80V192a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12Zm-12,82a30,30,0,0,1-30,30H86a30,30,0,0,1,0-60h84A30,30,0,0,1,200,162Zm-80-6v12h16V156ZM86,168H96V156H86a6,6,0,0,0,0,12Zm90-6a6,6,0,0,0-6-6H160v12h10A6,6,0,0,0,176,162Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M200,56H56A24,24,0,0,0,32,80V192a24,24,0,0,0,24,24H200a24,24,0,0,0,24-24V80A24,24,0,0,0,200,56ZM164,184H92a20,20,0,0,1,0-40h72a20,20,0,0,1,0,40Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48Zm16,144a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V80A16,16,0,0,1,56,64H200a16,16,0,0,1,16,16ZM72,108a12,12,0,1,1,12,12A12,12,0,0,1,72,108Zm88,0a12,12,0,1,1,12,12A12,12,0,0,1,160,108Zm4,28H92a28,28,0,0,0,0,56h72a28,28,0,0,0,0-56Zm-24,16v24H116V152ZM80,164a12,12,0,0,1,12-12h8v24H92A12,12,0,0,1,80,164Zm84,12h-8V152h8a12,12,0,0,1,0,24Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48ZM172,96a12,12,0,1,1-12,12A12,12,0,0,1,172,96ZM96,184H80a16,16,0,0,1,0-32H96ZM84,120a12,12,0,1,1,12-12A12,12,0,0,1,84,120Zm60,64H112V152h32Zm32,0H160V152h16a16,16,0,0,1,0,32Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M200,50H134V16a6,6,0,0,0-12,0V50H56A30,30,0,0,0,26,80V192a30,30,0,0,0,30,30H200a30,30,0,0,0,30-30V80A30,30,0,0,0,200,50Zm18,142a18,18,0,0,1-18,18H56a18,18,0,0,1-18-18V80A18,18,0,0,1,56,62H200a18,18,0,0,1,18,18ZM74,108a10,10,0,1,1,10,10A10,10,0,0,1,74,108Zm88,0a10,10,0,1,1,10,10A10,10,0,0,1,162,108Zm2,30H92a26,26,0,0,0,0,52h72a26,26,0,0,0,0-52Zm-22,12v28H114V150ZM78,164a14,14,0,0,1,14-14h10v28H92A14,14,0,0,1,78,164Zm86,14H154V150h10a14,14,0,0,1,0,28Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48Zm16,144a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V80A16,16,0,0,1,56,64H200a16,16,0,0,1,16,16Zm-52-56H92a28,28,0,0,0,0,56h72a28,28,0,0,0,0-56Zm-24,16v24H116V152ZM80,164a12,12,0,0,1,12-12h8v24H92A12,12,0,0,1,80,164Zm84,12h-8V152h8a12,12,0,0,1,0,24ZM72,108a12,12,0,1,1,12,12A12,12,0,0,1,72,108Zm88,0a12,12,0,1,1,12,12A12,12,0,0,1,160,108Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M200,52H132V16a4,4,0,0,0-8,0V52H56A28,28,0,0,0,28,80V192a28,28,0,0,0,28,28H200a28,28,0,0,0,28-28V80A28,28,0,0,0,200,52Zm20,140a20,20,0,0,1-20,20H56a20,20,0,0,1-20-20V80A20,20,0,0,1,56,60H200a20,20,0,0,1,20,20ZM76,108a8,8,0,1,1,8,8A8,8,0,0,1,76,108Zm88,0a8,8,0,1,1,8,8A8,8,0,0,1,164,108Zm0,32H92a24,24,0,0,0,0,48h72a24,24,0,0,0,0-48Zm-20,8v32H112V148ZM76,164a16,16,0,0,1,16-16h12v32H92A16,16,0,0,1,76,164Zm88,16H152V148h12a16,16,0,0,1,0,32Z`}))]]),kte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M199,125.31l-49.88-18.39L130.69,57a19.92,19.92,0,0,0-37.38,0L74.92,106.92,25,125.31a19.92,19.92,0,0,0,0,37.38l49.88,18.39L93.31,231a19.92,19.92,0,0,0,37.38,0l18.39-49.88L199,162.69a19.92,19.92,0,0,0,0-37.38Zm-63.38,35.16a12,12,0,0,0-7.11,7.11L112,212.28l-16.47-44.7a12,12,0,0,0-7.11-7.11L43.72,144l44.7-16.47a12,12,0,0,0,7.11-7.11L112,75.72l16.47,44.7a12,12,0,0,0,7.11,7.11L180.28,144ZM140,40a12,12,0,0,1,12-12h12V16a12,12,0,0,1,24,0V28h12a12,12,0,0,1,0,24H188V64a12,12,0,0,1-24,0V52H152A12,12,0,0,1,140,40ZM252,88a12,12,0,0,1-12,12h-4v4a12,12,0,0,1-24,0v-4h-4a12,12,0,0,1,0-24h4V72a12,12,0,0,1,24,0v4h4A12,12,0,0,1,252,88Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M194.82,151.43l-55.09,20.3-20.3,55.09a7.92,7.92,0,0,1-14.86,0l-20.3-55.09-55.09-20.3a7.92,7.92,0,0,1,0-14.86l55.09-20.3,20.3-55.09a7.92,7.92,0,0,1,14.86,0l20.3,55.09,55.09,20.3A7.92,7.92,0,0,1,194.82,151.43Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,144a15.78,15.78,0,0,1-10.42,14.94L146,178l-19,51.62a15.92,15.92,0,0,1-29.88,0L78,178l-51.62-19a15.92,15.92,0,0,1,0-29.88L78,110l19-51.62a15.92,15.92,0,0,1,29.88,0L146,110l51.62,19A15.78,15.78,0,0,1,208,144ZM152,48h16V64a8,8,0,0,0,16,0V48h16a8,8,0,0,0,0-16H184V16a8,8,0,0,0-16,0V32H152a8,8,0,0,0,0,16Zm88,32h-8V72a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0V96h8a8,8,0,0,0,0-16Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M196.89,130.94,144.4,111.6,125.06,59.11a13.92,13.92,0,0,0-26.12,0L79.6,111.6,27.11,130.94a13.92,13.92,0,0,0,0,26.12L79.6,176.4l19.34,52.49a13.92,13.92,0,0,0,26.12,0L144.4,176.4l52.49-19.34a13.92,13.92,0,0,0,0-26.12Zm-4.15,14.86-55.08,20.3a6,6,0,0,0-3.56,3.56l-20.3,55.08a1.92,1.92,0,0,1-3.6,0L89.9,169.66a6,6,0,0,0-3.56-3.56L31.26,145.8a1.92,1.92,0,0,1,0-3.6l55.08-20.3a6,6,0,0,0,3.56-3.56l20.3-55.08a1.92,1.92,0,0,1,3.6,0l20.3,55.08a6,6,0,0,0,3.56,3.56l55.08,20.3a1.92,1.92,0,0,1,0,3.6ZM146,40a6,6,0,0,1,6-6h18V16a6,6,0,0,1,12,0V34h18a6,6,0,0,1,0,12H182V64a6,6,0,0,1-12,0V46H152A6,6,0,0,1,146,40ZM246,88a6,6,0,0,1-6,6H230v10a6,6,0,0,1-12,0V94H208a6,6,0,0,1,0-12h10V72a6,6,0,0,1,12,0V82h10A6,6,0,0,1,246,88Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M196.2,132.81l-53.36-19.65L123.19,59.8a11.93,11.93,0,0,0-22.38,0L81.16,113.16,27.8,132.81a11.93,11.93,0,0,0,0,22.38l53.36,19.65,19.65,53.36a11.93,11.93,0,0,0,22.38,0l19.65-53.36,53.36-19.65a11.93,11.93,0,0,0,0-22.38Zm-2.77,14.87L138.35,168a4,4,0,0,0-2.37,2.37l-20.3,55.08a3.92,3.92,0,0,1-7.36,0L88,170.35A4,4,0,0,0,85.65,168l-55.08-20.3a3.92,3.92,0,0,1,0-7.36L85.65,120A4,4,0,0,0,88,117.65l20.3-55.08a3.92,3.92,0,0,1,7.36,0L136,117.65a4,4,0,0,0,2.37,2.37l55.08,20.3a3.92,3.92,0,0,1,0,7.36ZM148,40a4,4,0,0,1,4-4h20V16a4,4,0,0,1,8,0V36h20a4,4,0,0,1,0,8H180V64a4,4,0,0,1-8,0V44H152A4,4,0,0,1,148,40Zm96,48a4,4,0,0,1-4,4H228v12a4,4,0,0,1-8,0V92H208a4,4,0,0,1,0-8h12V72a4,4,0,0,1,8,0V84h12A4,4,0,0,1,244,88Z`}))]]),Ate=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M100,36H56A20,20,0,0,0,36,56v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,100,36ZM96,96H60V60H96ZM200,36H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Zm-4,60H160V60h36Zm-96,40H56a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,100,136Zm-4,60H60V160H96Zm104-60H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,200,136Zm-4,60H160V160h36Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M112,56v48a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h48A8,8,0,0,1,112,56Zm88-8H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V56A8,8,0,0,0,200,48Zm-96,96H56a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,104,144Zm96,0H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,200,144Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M200,136H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48ZM104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M120,56v48a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40h48A16,16,0,0,1,120,56Zm80-16H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm-96,96H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm96,0H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M104,42H56A14,14,0,0,0,42,56v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,104,42Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm-98,34H56a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,104,138Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,200,138Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M104,44H56A12,12,0,0,0,44,56v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,104,44Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm92-60H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4ZM104,140H56a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,104,140Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm92-60H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,200,140Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Z`}))]]),jte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M234.36,170A12,12,0,0,1,230,186.37l-96,56a12,12,0,0,1-12.1,0l-96-56a12,12,0,0,1,12.09-20.74l90,52.48L218,165.63A12,12,0,0,1,234.36,170ZM218,117.63,128,170.11,38.05,117.63A12,12,0,0,0,26,138.37l96,56a12,12,0,0,0,12.1,0l96-56A12,12,0,0,0,218,117.63ZM20,80a12,12,0,0,1,6-10.37l96-56a12.06,12.06,0,0,1,12.1,0l96,56a12,12,0,0,1,0,20.74l-96,56a12,12,0,0,1-12.1,0l-96-56A12,12,0,0,1,20,80Zm35.82,0L128,122.11,200.18,80,128,37.89Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,80l-96,56L32,80l96-56Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M230.91,172A8,8,0,0,1,228,182.91l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,36,169.09l92,53.65,92-53.65A8,8,0,0,1,230.91,172ZM220,121.09l-92,53.65L36,121.09A8,8,0,0,0,28,134.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,121.09ZM24,80a8,8,0,0,1,4-6.91l96-56a8,8,0,0,1,8.06,0l96,56a8,8,0,0,1,0,13.82l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,24,80Zm23.88,0L128,126.74,208.12,80,128,33.26Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M220,169.09l-92,53.65L36,169.09A8,8,0,0,0,28,182.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,169.09Z`}),h.createElement(`path`,{d:`M220,121.09l-92,53.65L36,121.09A8,8,0,0,0,28,134.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,121.09Z`}),h.createElement(`path`,{d:`M28,86.91l96,56a8,8,0,0,0,8.06,0l96-56a8,8,0,0,0,0-13.82l-96-56a8,8,0,0,0-8.06,0l-96,56a8,8,0,0,0,0,13.82Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M229.18,173a6,6,0,0,1-2.16,8.2l-96,56a6,6,0,0,1-6,0l-96-56a6,6,0,0,1,6-10.36l93,54.23,93-54.23A6,6,0,0,1,229.18,173ZM221,122.82l-93,54.23L35,122.82a6,6,0,0,0-6,10.36l96,56a6,6,0,0,0,6,0l96-56a6,6,0,0,0-6-10.36ZM26,80a6,6,0,0,1,3-5.18l96-56a6,6,0,0,1,6,0l96,56a6,6,0,0,1,0,10.36l-96,56a6,6,0,0,1-6,0l-96-56A6,6,0,0,1,26,80Zm17.91,0L128,129.05,212.09,80,128,31Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M230.91,172A8,8,0,0,1,228,182.91l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,36,169.09l92,53.65,92-53.65A8,8,0,0,1,230.91,172ZM220,121.09l-92,53.65L36,121.09A8,8,0,0,0,28,134.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,121.09ZM24,80a8,8,0,0,1,4-6.91l96-56a8,8,0,0,1,8.06,0l96,56a8,8,0,0,1,0,13.82l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,24,80Zm23.88,0L128,126.74,208.12,80,128,33.26Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M227.45,174a4,4,0,0,1-1.44,5.48l-96,56a4,4,0,0,1-4,0l-96-56a4,4,0,0,1,4-6.92l94,54.83,94-54.83A4,4,0,0,1,227.45,174ZM222,124.54l-94,54.83L34,124.54a4,4,0,0,0-4,6.92l96,56a4,4,0,0,0,4,0l96-56a4,4,0,0,0-4-6.92ZM28,80a4,4,0,0,1,2-3.46l96-56a4,4,0,0,1,4,0l96,56a4,4,0,0,1,0,6.92l-96,56a4,4,0,0,1-4,0l-96-56A4,4,0,0,1,28,80Zm11.94,0L128,131.37,216.06,80,128,28.63Z`}))]]),Mte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm40-112v56a12,12,0,0,1-12,12H100a12,12,0,0,1-12-12V100a12,12,0,0,1,12-12h56A12,12,0,0,1,168,100Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,32a96,96,0,1,0,96,96A96,96,0,0,0,128,32Zm32,128H96V96h64Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216ZM160,88H96a8,8,0,0,0-8,8v64a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V96A8,8,0,0,0,160,88Zm-8,64H104V104h48Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm32,132a4,4,0,0,1-4,4H100a4,4,0,0,1-4-4V100a4,4,0,0,1,4-4h56a4,4,0,0,1,4,4Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218ZM160,90H96a6,6,0,0,0-6,6v64a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V96A6,6,0,0,0,160,90Zm-6,64H102V102h52Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216ZM160,88H96a8,8,0,0,0-8,8v64a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V96A8,8,0,0,0,160,88Zm-8,64H104V104h48Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220ZM160,92H96a4,4,0,0,0-4,4v64a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V96A4,4,0,0,0,160,92Zm-4,64H100V100h56Z`}))]]),Nte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,44H32A12,12,0,0,0,20,56V192a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A12,12,0,0,0,224,44ZM44,116H76v24H44Zm56,0H212v24H100ZM212,68V92H44V68ZM44,164H76v24H44Zm56,24V164H212v24Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M88,104v96H32V104Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM40,112H80v32H40Zm56,0H216v32H96ZM216,64V96H40V64ZM40,160H80v32H40Zm176,32H96V160H216v32Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM40,112H80v32H40Zm56,0H216v32H96ZM40,160H80v32H40Zm176,32H96V160H216v32Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,50H32a6,6,0,0,0-6,6V192a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A6,6,0,0,0,224,50ZM38,110H82v36H38Zm56,0H218v36H94ZM218,62V98H38V62ZM38,192V158H82v36H40A2,2,0,0,1,38,192Zm178,2H94V158H218v34A2,2,0,0,1,216,194Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM40,112H80v32H40Zm56,0H216v32H96ZM216,64V96H40V64ZM40,160H80v32H40Zm176,32H96V160H216v32Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,52H32a4,4,0,0,0-4,4V192a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A4,4,0,0,0,224,52ZM36,108H84v40H36Zm56,0H220v40H92ZM220,60v40H36V60ZM36,192V156H84v40H40A4,4,0,0,1,36,192Zm180,4H92V156H220v36A4,4,0,0,1,216,196Z`}))]]),Pte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z`}))]]),Fte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,28H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V48A20,20,0,0,0,208,28Zm-4,24v92H179.31a19.86,19.86,0,0,0-14.14,5.86L147,168H109L90.83,149.86A19.86,19.86,0,0,0,76.69,144H52V52ZM52,204V168H75l18.14,18.14A19.86,19.86,0,0,0,107.31,192h41.38a19.86,19.86,0,0,0,14.14-5.86L181,168h23v36Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,48V160H179.31a8,8,0,0,0-5.66,2.34l-19.31,19.32a8,8,0,0,1-5.66,2.34H107.31a8,8,0,0,1-5.66-2.34L82.34,162.34A8,8,0,0,0,76.68,160H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm0,16V152h-28.7A15.86,15.86,0,0,0,168,156.69L148.69,176H107.31L88,156.68A15.89,15.89,0,0,0,76.69,152H48V48Zm0,160H48V168H76.69L96,187.32A15.89,15.89,0,0,0,107.31,192h41.38A15.86,15.86,0,0,0,160,187.31L179.31,168H208v40Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm0,176H48V168H76.69L96,187.32A15.89,15.89,0,0,0,107.31,192h41.38A15.86,15.86,0,0,0,160,187.31L179.31,168H208v40Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,34H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V48A14,14,0,0,0,208,34ZM48,46H208a2,2,0,0,1,2,2V154H179.31a13.94,13.94,0,0,0-9.9,4.1L150.1,177.41a2,2,0,0,1-1.41.59H107.31a2,2,0,0,1-1.41-.58L86.59,158.1a13.94,13.94,0,0,0-9.9-4.1H46V48A2,2,0,0,1,48,46ZM208,210H48a2,2,0,0,1-2-2V166H76.69a2,2,0,0,1,1.41.58L97.41,185.9a13.94,13.94,0,0,0,9.9,4.1h41.38a13.94,13.94,0,0,0,9.9-4.1l19.31-19.31a2,2,0,0,1,1.41-.59H210v42A2,2,0,0,1,208,210Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm0,16V152h-28.7A15.86,15.86,0,0,0,168,156.69L148.69,176H107.31L88,156.69A15.86,15.86,0,0,0,76.69,152H48V48Zm0,160H48V168H76.69L96,187.31A15.86,15.86,0,0,0,107.31,192h41.38A15.86,15.86,0,0,0,160,187.31L179.31,168H208v40Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V48A12,12,0,0,0,208,36ZM48,44H208a4,4,0,0,1,4,4V156H179.31a12,12,0,0,0-8.48,3.51l-19.32,19.32a4,4,0,0,1-2.82,1.17H107.31a4,4,0,0,1-2.82-1.17L85.17,159.51A12,12,0,0,0,76.69,156H44V48A4,4,0,0,1,48,44ZM208,212H48a4,4,0,0,1-4-4V164H76.69a4,4,0,0,1,2.82,1.17l19.32,19.32a12,12,0,0,0,8.48,3.51h41.38a12,12,0,0,0,8.48-3.51l19.32-19.32a4,4,0,0,1,2.82-1.17H212v44A4,4,0,0,1,208,212Z`}))]]),Ite=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M160,116h48a20,20,0,0,0,20-20V48a20,20,0,0,0-20-20H160a20,20,0,0,0-20,20V60H128a28,28,0,0,0-28,28v28H76v-4A20,20,0,0,0,56,92H24A20,20,0,0,0,4,112v32a20,20,0,0,0,20,20H56a20,20,0,0,0,20-20v-4h24v28a28,28,0,0,0,28,28h12v12a20,20,0,0,0,20,20h48a20,20,0,0,0,20-20V160a20,20,0,0,0-20-20H160a20,20,0,0,0-20,20v12H128a4,4,0,0,1-4-4V88a4,4,0,0,1,4-4h12V96A20,20,0,0,0,160,116ZM52,140H28V116H52Zm112,24h40v40H164Zm0-112h40V92H164Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M64,112v32a8,8,0,0,1-8,8H24a8,8,0,0,1-8-8V112a8,8,0,0,1,8-8H56A8,8,0,0,1,64,112ZM208,40H160a8,8,0,0,0-8,8V96a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V48A8,8,0,0,0,208,40Zm0,112H160a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M160,112h48a16,16,0,0,0,16-16V48a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16V64H128a24,24,0,0,0-24,24v32H72v-8A16,16,0,0,0,56,96H24A16,16,0,0,0,8,112v32a16,16,0,0,0,16,16H56a16,16,0,0,0,16-16v-8h32v32a24,24,0,0,0,24,24h16v16a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V160a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16v16H128a8,8,0,0,1-8-8V88a8,8,0,0,1,8-8h16V96A16,16,0,0,0,160,112ZM56,144H24V112H56v32Zm104,16h48v48H160Zm0-112h48V96H160Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M144,96V80H128a8,8,0,0,0-8,8v80a8,8,0,0,0,8,8h16V160a16,16,0,0,1,16-16h48a16,16,0,0,1,16,16v48a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V192H128a24,24,0,0,1-24-24V136H72v8a16,16,0,0,1-16,16H24A16,16,0,0,1,8,144V112A16,16,0,0,1,24,96H56a16,16,0,0,1,16,16v8h32V88a24,24,0,0,1,24-24h16V48a16,16,0,0,1,16-16h48a16,16,0,0,1,16,16V96a16,16,0,0,1-16,16H160A16,16,0,0,1,144,96Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M160,110h48a14,14,0,0,0,14-14V48a14,14,0,0,0-14-14H160a14,14,0,0,0-14,14V66H128a22,22,0,0,0-22,22v34H70V112A14,14,0,0,0,56,98H24a14,14,0,0,0-14,14v32a14,14,0,0,0,14,14H56a14,14,0,0,0,14-14V134h36v34a22,22,0,0,0,22,22h18v18a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V160a14,14,0,0,0-14-14H160a14,14,0,0,0-14,14v18H128a10,10,0,0,1-10-10V88a10,10,0,0,1,10-10h18V96A14,14,0,0,0,160,110ZM58,144a2,2,0,0,1-2,2H24a2,2,0,0,1-2-2V112a2,2,0,0,1,2-2H56a2,2,0,0,1,2,2Zm100,16a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2v48a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2Zm0-112a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2V96a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M160,112h48a16,16,0,0,0,16-16V48a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16V64H128a24,24,0,0,0-24,24v32H72v-8A16,16,0,0,0,56,96H24A16,16,0,0,0,8,112v32a16,16,0,0,0,16,16H56a16,16,0,0,0,16-16v-8h32v32a24,24,0,0,0,24,24h16v16a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V160a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16v16H128a8,8,0,0,1-8-8V88a8,8,0,0,1,8-8h16V96A16,16,0,0,0,160,112ZM56,144H24V112H56v32Zm104,16h48v48H160Zm0-112h48V96H160Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M160,108h48a12,12,0,0,0,12-12V48a12,12,0,0,0-12-12H160a12,12,0,0,0-12,12V68H128a20,20,0,0,0-20,20v36H68V112a12,12,0,0,0-12-12H24a12,12,0,0,0-12,12v32a12,12,0,0,0,12,12H56a12,12,0,0,0,12-12V132h40v36a20,20,0,0,0,20,20h20v20a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V160a12,12,0,0,0-12-12H160a12,12,0,0,0-12,12v20H128a12,12,0,0,1-12-12V88a12,12,0,0,1,12-12h20V96A12,12,0,0,0,160,108ZM60,144a4,4,0,0,1-4,4H24a4,4,0,0,1-4-4V112a4,4,0,0,1,4-4H56a4,4,0,0,1,4,4Zm96,16a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4v48a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4Zm0-112a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V96a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4Z`}))]]),Lte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-12-80V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm-6-82V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm-4-84V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z`}))]]),Rte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z`}))]]),zte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z`}))]]),ov=(0,h.createContext)({color:`currentColor`,size:`1em`,weight:`regular`,mirrored:!1}),sv=h.forwardRef((e,t)=>{let{alt:n,color:r,size:i,weight:a,mirrored:o,children:s,weights:c,...l}=e,{color:u=`currentColor`,size:d,weight:f=`regular`,mirrored:p=!1,...m}=h.useContext(ov);return h.createElement(`svg`,{ref:t,xmlns:`http://www.w3.org/2000/svg`,width:i??d,height:i??d,fill:r??u,viewBox:`0 0 256 256`,transform:o||p?`scale(-1, 1)`:void 0,...m,...l},!!n&&h.createElement(`title`,null,n),s,c.get(a??f))});sv.displayName=`IconBase`;var cv=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:Gee}));cv.displayName=`ArrowClockwiseIcon`;var Bte=cv,lv=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:Kee}));lv.displayName=`ArrowSquareOutIcon`;var uv=lv,dv=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:qee}));dv.displayName=`ArrowsOutIcon`;var Vte=dv,fv=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:Jee}));fv.displayName=`BroomIcon`;var pv=fv,mv=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:Yee}));mv.displayName=`CaretDownIcon`;var hv=mv,gv=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:Xee}));gv.displayName=`CaretRightIcon`;var _v=gv,vv=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:Zee}));vv.displayName=`CaretUpIcon`;var Hte=vv,yv=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:Qee}));yv.displayName=`ChartBarIcon`;var bv=yv,xv=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:$ee}));xv.displayName=`ChartLineIcon`;var Ute=xv,Sv=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:ete}));Sv.displayName=`ChatCircleIcon`;var Cv=Sv,wv=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:tte}));wv.displayName=`CheckIcon`;var Tv=wv,Ev=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:nte}));Ev.displayName=`CheckCircleIcon`;var Dv=Ev,Ov=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:rte}));Ov.displayName=`CodeIcon`;var kv=Ov,Av=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:ite}));Av.displayName=`CopyIcon`;var jv=Av,Mv=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:ate}));Mv.displayName=`CpuIcon`;var Nv=Mv,Pv=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:ote}));Pv.displayName=`DesktopIcon`;var Fv=Pv,Iv=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:ste}));Iv.displayName=`DiamondIcon`;var Lv=Iv,Rv=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:cte}));Rv.displayName=`DotsSixVerticalIcon`;var zv=Rv,Bv=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:lte}));Bv.displayName=`DotsThreeIcon`;var Vv=Bv,Hv=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:ute}));Hv.displayName=`EyeIcon`;var Uv=Hv,Wv=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:dte}));Wv.displayName=`FloppyDiskIcon`;var Gv=Wv,Kv=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:fte}));Kv.displayName=`FolderSimpleIcon`;var qv=Kv,Jv=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:pte}));Jv.displayName=`GaugeIcon`;var Yv=Jv,Xv=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:mte}));Xv.displayName=`GitBranchIcon`;var Zv=Xv,Qv=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:hte}));Qv.displayName=`GithubLogoIcon`;var $v=Qv,ey=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:gte}));ey.displayName=`HandPalmIcon`;var ty=ey,ny=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:_te}));ny.displayName=`HandWavingIcon`;var ry=ny,iy=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:vte}));iy.displayName=`HardDrivesIcon`;var ay=iy,oy=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:yte}));oy.displayName=`HourglassIcon`;var sy=oy,cy=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:bte}));cy.displayName=`InfoIcon`;var ly=cy,uy=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:xte}));uy.displayName=`LaptopIcon`;var dy=uy,fy=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:Ste}));fy.displayName=`LightningIcon`;var py=fy,my=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:Cte}));my.displayName=`MagnifyingGlassIcon`;var hy=my,gy=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:wte}));gy.displayName=`MemoryIcon`;var _y=gy,vy=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:Tte}));vy.displayName=`PencilSimpleIcon`;var Wte=vy,yy=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:Ete}));yy.displayName=`PlanetIcon`;var Gte=yy,by=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:Dte}));by.displayName=`PlusIcon`;var Kte=by,xy=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:Ote}));xy.displayName=`RobotIcon`;var qte=xy,Sy=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:kte}));Sy.displayName=`SparkleIcon`;var Cy=Sy,wy=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:Ate}));wy.displayName=`SquaresFourIcon`;var Ty=wy,Ey=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:jte}));Ey.displayName=`StackIcon`;var Dy=Ey,Oy=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:Mte}));Oy.displayName=`StopCircleIcon`;var Jte=Oy,ky=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:Nte}));ky.displayName=`TableIcon`;var Yte=ky,Ay=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:Pte}));Ay.displayName=`TrashIcon`;var jy=Ay,My=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:Fte}));My.displayName=`TrayIcon`;var Xte=My,Ny=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:Ite}));Ny.displayName=`TreeStructureIcon`;var Zte=Ny,Py=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:Lte}));Py.displayName=`WarningCircleIcon`;var Qte=Py,Fy=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:Rte}));Fy.displayName=`XIcon`;var Iy=Fy,Ly=h.forwardRef((e,t)=>h.createElement(sv,{ref:t,...e,weights:zte}));Ly.displayName=`XCircleIcon`;var $te=Ly,Ry={dark:{accent:`#CBA6F7`,bg:`#1E1E2E`,crit:`#F38BA8`,dim:`#A6ADC8`,faint:`#A6ADC8`,fg:`#CDD6F4`,finished:`#A6ADC8`,"finished-bg":`#323345`,"flow-canvas":`#0E0E16`,"flow-line":`#272738`,"flow-muted":`#7F849C`,"flow-panel":`#101019`,idle:`#89B4FA`,"idle-bg":`#2E354D`,line:`#45475A`,"md-code":`#CDD6F4`,"md-code-bg":`#11111B`,"md-heading":`#CBA6F7`,"md-link":`#89B4FA`,"md-quote":`#A6ADC8`,"md-rule":`#A6ADC8`,"md-strike":`#A6ADC8`,"md-table-border":`#A6ADC8`,"md-task":`#A6E3A1`,mid:`#BAC2DE`,observation:`#94E2D5`,"on-accent":`#1E1E2E`,pane:`#181825`,rail:`#585B70`,raise:`#313244`,stuck:`#F38BA8`,"stuck-bg":`#3E2E40`,tool:`#89DCEB`,waiting:`#F9E2AF`,"waiting-bar":`#F9E2AF`,"waiting-bg":`#3F3B41`,warn:`#FAB387`,working:`#A6E3A1`,"working-bg":`#323C3F`},latte:{base:`#EFF1F5`,blue:`#1E66F5`,crust:`#DCE0E8`,flamingo:`#DD7878`,green:`#40A02B`,lavender:`#7287FD`,mantle:`#E6E9EF`,maroon:`#E64553`,mauve:`#8839EF`,overlay0:`#9CA0B0`,overlay1:`#8C8FA1`,overlay2:`#7C7F93`,peach:`#FE640B`,pink:`#EA76CB`,red:`#D20F39`,rosewater:`#DC8A78`,sapphire:`#209FB5`,sky:`#04A5E5`,subtext0:`#6C6F85`,subtext1:`#5C5F77`,surface0:`#CCD0DA`,surface1:`#BCC0CC`,surface2:`#ACB0BE`,teal:`#179299`,text:`#4C4F69`,yellow:`#DF8E1D`},light:{accent:`#7E35DE`,bg:`#EFF1F5`,crit:`#C50E36`,dim:`#5C5F77`,faint:`#5C5F77`,fg:`#4C4F69`,finished:`#5C5F77`,"finished-bg":`#D9DBE2`,"flow-canvas":`#EFF1F5`,"flow-line":`#BCC0CC`,"flow-muted":`#5C5F77`,"flow-panel":`#E6E9EF`,idle:`#1A5AD8`,"idle-bg":`#D0DCF5`,line:`#BCC0CC`,"md-code":`#4C4F69`,"md-code-bg":`#DCE0E8`,"md-heading":`#7E35DE`,"md-link":`#1A5AD8`,"md-quote":`#5C5F77`,"md-rule":`#5C5F77`,"md-strike":`#5C5F77`,"md-table-border":`#5C5F77`,"md-task":`#2D701E`,mid:`#5C5F77`,observation:`#116D73`,"on-accent":`#EFF1F5`,pane:`#E6E9EF`,rail:`#ACB0BE`,raise:`#CCD0DA`,stuck:`#C50E36`,"stuck-bg":`#EBCFD9`,tool:`#036A93`,waiting:`#8A5812`,"waiting-bar":`#DF8E1D`,"waiting-bg":`#EDE2D5`,warn:`#AA4307`,working:`#2D701E`,"working-bg":`#D5E5D7`},mocha:{base:`#1E1E2E`,blue:`#89B4FA`,crust:`#11111B`,flamingo:`#F2CDCD`,green:`#A6E3A1`,lavender:`#B4BEFE`,mantle:`#181825`,maroon:`#EBA0AC`,mauve:`#CBA6F7`,overlay0:`#6C7086`,overlay1:`#7F849C`,overlay2:`#9399B2`,peach:`#FAB387`,pink:`#F5C2E7`,red:`#F38BA8`,rosewater:`#F5E0DC`,sapphire:`#74C7EC`,sky:`#89DCEB`,subtext0:`#A6ADC8`,subtext1:`#BAC2DE`,surface0:`#313244`,surface1:`#45475A`,surface2:`#585B70`,teal:`#94E2D5`,text:`#CDD6F4`,yellow:`#F9E2AF`}},zy={light:Ry.latte,dark:Ry.mocha},By={light:Ry.light,dark:Ry.dark};function Vy(e,t,n){let r=(e,t)=>parseInt(e.slice(1+t*2,3+t*2),16);return`#`+[0,1,2].map(i=>Math.round(r(e,i)*n+r(t,i)*(1-n)).toString(16).padStart(2,`0`)).join(``)}var Hy={light:{ground:zy.light.mantle,raised:zy.light.base,inset:zy.light.crust,hover:Vy(zy.light.surface0,zy.light.base,.5),border:zy.light.surface0,borderSoft:zy.light.crust,controlBorder:zy.light.overlay2,text:By.light.fg,muted:By.light.dim,faint:zy.light.overlay0},dark:{ground:zy.dark.crust,raised:zy.dark.base,inset:zy.dark.mantle,hover:zy.dark.surface0,border:zy.dark.surface0,borderSoft:By.dark[`flow-line`],controlBorder:zy.dark.overlay0,text:By.dark.fg,muted:By.dark.dim,faint:zy.dark.overlay1}},Uy={light:{brand:By.light.accent,success:By.light.working,warning:By.light.waiting,danger:By.light.stuck,info:By.light.idle},dark:{brand:By.dark.accent,success:By.dark.working,warning:By.dark.waiting,danger:By.dark.stuck,info:By.dark.idle}},Wy={light:[`#b64c1a`,`#1c989f`,`#a40987`,`#0781b4`,`#3d37e6`,`#b75a5b`],dark:[`#c97338`,`#049b8c`,`#b1389a`,`#069eb1`,`#6e74f5`,`#c97276`]},Gy={micro:11,small:12,body:14,title:16,section:22,page:28},Ky={sans:`"IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif`,mono:`"IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace`},qy=6;function Jy(e){return Array.from({length:10},(t,n)=>nqy?wn(e,(n-qy)*.12):e)}var ene=[Hy.dark.text,Hy.dark.text,Hy.dark.muted,Hy.dark.faint,Hy.dark.controlBorder,Hy.dark.hover,Hy.dark.raised,Hy.dark.ground,wn(Hy.dark.ground,.2),wn(Hy.dark.ground,.4)],Yy=Object.keys(Uy.light),tne=Object.fromEntries(Yy.flatMap(e=>[[`${e}Light`,Jy(Uy.light[e])],[`${e}Dark`,Jy(Uy.dark[e])],[e,Sn({name:e,light:`${e}Light`,dark:`${e}Dark`})]]));function Xy(e,t){let[n,r]=[_n(e),_n(t)];return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function nne(e){return Xy(e,`#000000`)>Xy(e,`#ffffff`)?`#000000`:`#ffffff`}function rne(e){return Object.fromEntries(Yy.map(t=>[`--driga-${t}-contrast`,nne(Uy[e][t])]))}function ine(e,t){let n=Hy[e];return Vy(t===`neutral`?n.faint:Uy[e][t],n.raised,.12)}var ane=[...Yy,`neutral`];function one(e){return Object.fromEntries(ane.map(t=>[`--driga-tint-${t}`,ine(e,t)]))}function Zy(e){let t=Hy[e];return{"--mantine-color-body":t.ground,"--mantine-color-text":t.text,"--mantine-color-dimmed":t.muted,"--mantine-color-default":t.raised,"--mantine-color-default-hover":t.hover,"--mantine-color-default-border":t.controlBorder,"--driga-ground":t.ground,"--driga-raised":t.raised,"--driga-inset":t.inset,"--driga-hover":t.hover,"--driga-border":t.border,"--driga-border-soft":t.borderSoft,"--driga-control-border":t.controlBorder,"--driga-text":t.text,"--driga-muted":t.muted,"--driga-faint":t.faint,...rne(e),...one(e)}}var sne=()=>({variables:{"--mantine-color-error":`var(--mantine-color-danger-filled)`},light:Zy(`light`),dark:Zy(`dark`)}),cne=e=>{let t=On(e);return(e.variant===`filled`||e.variant===void 0)&&Yy.includes(e.color)?{...t,color:`var(--driga-${e.color}-contrast)`}:t},lne=Cr({primaryColor:`brand`,primaryShade:qy,colors:{dark:ene,...tne},variantColorResolver:cne,fontFamily:Ky.sans,fontFamilyMonospace:Ky.mono,headings:{fontFamily:Ky.sans,fontWeight:`600`},fontSizes:{xs:`${Gy.small/16}rem`,sm:`${Gy.small/16}rem`,md:`${Gy.body/16}rem`,lg:`${Gy.title/16}rem`,xl:`${Gy.section/16}rem`},defaultRadius:`sm`,cursorType:`pointer`,respectReducedMotion:!0,other:{labstackTones:{neutral:`gray`,info:`info`,success:`success`,warning:`warning`,danger:`danger`}},components:{Card:{defaultProps:{withBorder:!0,radius:`md`,padding:`sm`},styles:{root:{background:`var(--driga-raised)`,borderColor:`var(--driga-border)`}}},Paper:{styles:{root:{background:`var(--driga-raised)`,borderColor:`var(--driga-border)`}}},Table:{defaultProps:{highlightOnHover:!0,stickyHeader:!0,verticalSpacing:6,horizontalSpacing:`xs`,fz:`xs`},styles:{thead:{background:`var(--driga-inset)`},th:{color:`var(--driga-muted)`,fontWeight:500},td:{borderColor:`var(--driga-border-soft)`},tr:{borderColor:`var(--driga-border-soft)`}}},Badge:{defaultProps:{variant:`light`,radius:`sm`},styles:{root:{textTransform:`none`,fontWeight:600}}},Button:{defaultProps:{size:`xs`}},ActionIcon:{defaultProps:{variant:`subtle`,color:`gray`}},Tooltip:{defaultProps:{withArrow:!0,openDelay:300}},Modal:{defaultProps:{closeButtonProps:{"aria-label":`Close`}}},Drawer:{defaultProps:{closeButtonProps:{"aria-label":`Close`}}},ScrollArea:{defaultProps:{offsetScrollbars:`present`}}}}),une={size:16,weight:`regular`};function dne(){return document.querySelector(`meta[name="driga-style-nonce"]`)?.content??``}function fne({scheme:e,children:t}){return(0,H.jsx)(Sr,{theme:lne,cssVariablesResolver:sne,defaultColorScheme:`auto`,forceColorScheme:e,getStyleNonce:dne,children:(0,H.jsx)(ov.Provider,{value:une,children:t})})}var pne=()=>Ue({opened:!1,empty:!1,selected:-1,listId:``,query:``,registeredActions:new Set}),mne=e=>We(e);function Qy(e,t){let n=t.getState();t.setState({...n,...e(t.getState())})}function $y(e){Qy(()=>({opened:!0,selected:-1}),e)}function eb(e){Qy(()=>({opened:!1}),e)}function tb(e){Qy(e=>({opened:!e.opened,selected:e.opened?e.selected:-1}),e)}function nb(e,t){t.updateState(t=>({...t,selected:e}))}function hne(e,t){t.updateState(t=>({...t,listId:e}))}function rb(e,t=document){let n=t.querySelector(e);if(n)return n;let r=t instanceof ShadowRoot?t.host.children:t.children;for(let t=0;t{n.registeredActions.delete(e)}}function bne(e,t){Qy(()=>({query:e}),t),Promise.resolve().then(()=>{ib(0,t),Qy(e=>({empty:e.query.trim().length>0&&e.registeredActions.size===0||!1}),t)})}function xne({clearQuery:e},t){t.updateState(t=>({...t,selected:-1,query:e?``:t.query,empty:!e&&t.empty}))}var ab={open:$y,close:eb,toggle:tb,updateState:Qy,setSelectedAction:nb,setListId:hne,selectAction:ib,selectNextAction:gne,selectPreviousAction:_ne,triggerSelectedAction:vne,registerAction:yne,setQuery:bne,clearSpotlightState:xne};function Sne(){let e=pne();return[e,{open:()=>$y(e),close:()=>eb(e),toggle:()=>tb(e)}]}var[ob,sb]=Sne(),{open:Cne,close:wne,toggle:Tne}=sb;function cb(e){let t=e;return t.group!==void 0&&Array.isArray(t.actions)}var[Ene,lb]=wt(`Spotlight component was not found in tree`),ub={root:`m_d2b315db`,content:`m_3cd250e0`,body:`m_d2abce9b`,search:`m_f366a061`,actionsList:`m_6e463822`,action:`m_d49bb8ef`,actionBody:`m_3d475731`,actionSection:`m_832642f6`,actionLabel:`m_6c2a1345`,actionDescription:`m_a6d9d78d`,empty:`m_82f78f74`,footer:`m_ddcaf054`,actionsGroup:`m_5a3e5f7b`},Dne={dimmedSections:!0,highlightQuery:!1},db=W(e=>{let{className:t,style:n,classNames:r,styles:i,id:a,description:o,label:s,leftSection:c,rightSection:l,children:u,dimmedSections:d,highlightQuery:f,highlightColor:p,closeSpotlightOnTrigger:m,onClick:h,onMouseDown:g,keywords:_,vars:v,...y}=U(`SpotlightAction`,Dne,e),b=lb(),x={classNames:r,styles:i},S=f&&typeof s==`string`?(0,H.jsx)(rh,{component:`span`,highlight:b.query,color:p,...b.getStyles(`actionLabel`,x),children:s}):(0,H.jsx)(`span`,{...b.getStyles(`actionLabel`,x),children:s});return(0,H.jsx)($c,{"data-action":!0,...b.getStyles(`action`,{className:t,style:n,...x}),...y,onMouseDown:e=>{e.preventDefault(),g?.(e)},onClick:e=>{h?.(e),(m??b.closeOnActionTrigger)&&ab.close(b.store)},tabIndex:-1,children:u||(0,H.jsxs)(H.Fragment,{children:[c&&(0,H.jsx)(G,{component:`span`,mod:{position:`left`,dimmed:d},...b.getStyles(`actionSection`,x),children:c}),(0,H.jsxs)(`span`,{...b.getStyles(`actionBody`,x),children:[S,(0,H.jsx)(`span`,{...b.getStyles(`actionDescription`,x),children:o})]}),l&&(0,H.jsx)(G,{component:`span`,mod:{position:`right`,dimmed:d},...b.getStyles(`actionSection`,x),children:l})]})})});db.classes=ub,db.displayName=`@mantine/spotlight/SpotlightAction`;var fb=W(e=>{let{className:t,style:n,styles:r,classNames:i,label:a,children:o,...s}=U(`SpotlightActionsGroup`,null,e),c=lb();return(0,H.jsx)(G,{...c.getStyles(`actionsGroup`,{className:t,style:n,classNames:i,styles:r}),...s,__vars:{"--spotlight-label":`'${a?.replace(/\\/g,`\\\\`).replace(/'/g,`\\'`)}'`},children:o})});fb.classes=ub,fb.displayName=`@mantine/core/SpotlightActionsGroup`;var pb=W(e=>{let{className:t,style:n,id:r,children:i,vars:a,classNames:o,styles:s,...c}=U(`SpotlightActionsList`,null,e),l=lb(),u=`mantine-${(0,h.useId)().replace(/:/g,``)}`,d=r||u;return(0,h.useEffect)(()=>(ab.setListId(d,l.store),()=>ab.setListId(``,l.store)),[]),(0,H.jsx)(Yc.Autosize,{...l.getStyles(`actionsList`,{className:t,style:n,classNames:o,styles:s}),type:`scroll`,scrollbarSize:`var(--spotlight-actions-list-padding)`,offsetScrollbars:`y`,id:d,...c,children:i})});pb.classes=ub,pb.displayName=`@mantine/spotlight/SpotlightActionsList`;var mb=W(e=>{let{className:t,style:n,classNames:r,styles:i,...a}=U(`SpotlightEmpty`,null,e),o=lb();return(0,H.jsx)(G,{...o.getStyles(`empty`,{classNames:r,styles:i,className:t,style:n}),...a})});mb.classes=ub,mb.displayName=`@mantine/spotlight/SpotlightEmpty`;var hb=W(e=>{let{className:t,style:n,classNames:r,styles:i,...a}=U(`SpotlightFooter`,null,e),o=lb();return(0,H.jsx)(G,{...o.getStyles(`footer`,{className:t,classNames:r,style:n,styles:i}),...a})});hb.classes=ub,hb.displayName=`@mantine/spotlight/SpotlightFooter`;function One(e,t){if(!e)return[];let n=()=>ab.open(t);return Array.isArray(e)?e.map(e=>[e,n]):[[e,n]]}var kne={size:600,yOffset:80,zIndex:Mt(`max`),overlayProps:{backgroundOpacity:.35,blur:7},transitionProps:{duration:200,transition:`pop`},store:ob,clearQueryOnClose:!0,closeOnActionTrigger:!0,shortcut:`mod + K`,maxHeight:400},gb=W(e=>{let t=U(`SpotlightRoot`,kne,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,store:c,children:l,query:u,onQueryChange:d,transitionProps:f,clearQueryOnClose:p,shortcut:m,tagsToIgnore:h,triggerOnContentEditable:g,disabled:_,onSpotlightOpen:v,onSpotlightClose:y,forceOpened:b,closeOnActionTrigger:x,maxHeight:S,scrollable:C,attributes:w,...E}=t,{opened:D,query:O}=mne(c),k=typeof u==`string`?u:O,A=e=>{d?.(e),ab.setQuery(e,c)},j=zr({name:`Spotlight`,classes:ub,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:w}),{resolvedClassNames:M,resolvedStyles:N}=wr({classNames:n,styles:a,props:t});return ve(One(m,c),h,g),T(()=>{D?v?.():y?.()},[D]),_?null:(0,H.jsx)(Ene,{value:{getStyles:j,query:k,setQuery:A,store:c,closeOnActionTrigger:x},children:(0,H.jsx)(gg,{...E,withCloseButton:!1,opened:D||!!b,padding:0,onClose:()=>ab.close(c),className:r,style:i,classNames:M,styles:N,attributes:w,transitionProps:{...f,onExited:()=>{p&&A(``),ab.clearSpotlightState({clearQuery:p},c),f?.onExited?.()}},__vars:{"--spotlight-max-height":C?V(S):void 0},__staticSelector:`Spotlight`,"data-scrollable":C||void 0,children:l})})});gb.classes=ub,gb.displayName=`@mantine/spotlight/SpotlightRoot`;var Ane={size:`lg`},_b=W(e=>{let{classNames:t,styles:n,onKeyDown:r,onChange:i,vars:a,value:o,attributes:s,...c}=U(`SpotlightSearch`,Ane,e),l=lb(),u=l.getStyles(`search`),[d,f]=(0,h.useState)(!1),p=e=>{r?.(e),!d&&(e.nativeEvent.code===`ArrowDown`&&(e.preventDefault(),ab.selectNextAction(l.store)),e.nativeEvent.code===`ArrowUp`&&(e.preventDefault(),ab.selectPreviousAction(l.store)),(e.nativeEvent.code===`Enter`||e.nativeEvent.code===`NumpadEnter`)&&(e.preventDefault(),ab.triggerSelectedAction(l.store)))};return(0,H.jsx)(hf,{...u,classNames:[{input:u.className},t],styles:[{input:u.style},n],...c,value:o??l.query,onChange:e=>{l.setQuery(e.currentTarget.value),i?.(e)},onKeyDown:p,onCompositionStart:()=>f(!0),onCompositionEnd:()=>f(!1)})});_b.classes=ub,_b.displayName=`@mantine/spotlight/SpotlightSearch`;function jne(e){return Array.isArray(e)?e.map(e=>e.trim()).join(`,`).toLowerCase().trim():typeof e==`string`?e.toLowerCase().trim():``}function Mne(e){return e.reduce((e,t)=>`actions`in t?[...e,...t.actions.map(e=>({...e,group:t.group}))]:[...e,t],[])}function Nne(e){let t={},n=[];return e.forEach(e=>{e.group?(t[e.group]||(t[e.group]={pushed:!1,data:{group:e.group,actions:[]}}),t[e.group].data.actions.push(e),t[e.group].pushed||(t[e.group].pushed=!0,n.push(t[e.group].data))):n.push(e)}),n}var Pne=(e,t)=>{let n=e.trim().toLowerCase(),r=[[],[]];return Mne(t).forEach(e=>{e.label?.toLowerCase().includes(n)?r[0].push(e):(e.description?.toLowerCase().includes(n)||jne(e.keywords).includes(n))&&r[1].push(e)}),Nne(r.flat())};function vb(e,t){if(!Array.isArray(e))return[];let n=0;return e.reduce((e,r)=>{if(n>=t)return e;if(cb(r)){let i=vb(r.actions,t-n);e.push({group:r.group,actions:i}),n+=i.length}else e.push(r),n+=1;return e},[])}var Fne={size:600,yOffset:80,limit:1/0,zIndex:Mt(`max`),overlayProps:{backgroundOpacity:.35,blur:7},transitionProps:{duration:200,transition:`pop`},store:ob,filter:Pne,clearQueryOnClose:!0,closeOnActionTrigger:!0,shortcut:`mod + K`},yb=W(e=>{let{searchProps:t,filter:n,query:r,onQueryChange:i,actions:a,nothingFound:o,highlightQuery:s,limit:c,scrollAreaProps:l,...u}=U(`Spotlight`,Fne,e),[d,f]=oe({value:r,defaultValue:``,finalValue:``,onChange:i}),p=vb(n(d,a),c).map(e=>{if(cb(e)){let t=e.actions.map(({id:e,...t})=>(0,H.jsx)(db,{highlightQuery:s,...t},e));return(0,H.jsx)(fb,{label:e.group,children:t},e.group)}return(0,H.jsx)(db,{highlightQuery:s,...e},e.id)});return(0,H.jsxs)(gb,{...u,query:d,onQueryChange:f,children:[(0,H.jsx)(_b,{...t}),p.length>0&&(0,H.jsx)(pb,{...l,children:p}),p.length===0&&o&&(0,H.jsx)(mb,{children:o})]})});yb.classes=ub,yb.displayName=`@mantine/spotlight/Spotlight`,yb.Search=_b,yb.ActionsList=pb,yb.Action=db,yb.Empty=mb,yb.ActionsGroup=fb,yb.Footer=hb,yb.Root=gb,yb.open=sb.open,yb.close=sb.close,yb.toggle=sb.toggle;function bb(e){let t=(0,h.useId)();return`${e??t}`}var xb=typeof window<`u`?h.useLayoutEffect:h.useEffect;function Sb(e){let t=(0,h.useRef)(e);return xb(()=>{t.current=e},[e]),(0,h.useCallback)((...e)=>t.current?.(...e),[t])}function Cb(...e){return Sb(t=>{e.forEach(e=>{if(e)switch(typeof e){case`function`:e(t);break;case`object`:e.current=t}})})}function wb(e,t=`Assertion error`){if(!e)throw Error(t)}(0,h.createContext)(null);var Tb;function Ine(){return Tb===void 0&&(Tb=typeof matchMedia==`function`&&!!matchMedia(`(pointer:coarse)`).matches),Tb}function Lne({expandHitTargets:e,axis:t,rect:n}){let r=e?Ine()?t.resizeTargetMinimumSize.coarse:t.resizeTargetMinimumSize.fine:0;if(n.width{this.removeListener(e,t)}}emit(e,t){let n=this.#e[e];if(n!==void 0){if(n.length===1){n[0].call(null,t);return}let e,r=Array.from(n);for(let n=0;n=0&&n.splice(e,1)}}},Db={cursorFlags:0,state:`inactive`},Ob=new Eb;function kb(){return Db}function Ab(e){return Ob.addListener(`change`,e)}function zne(e,t=[],n,r=!1){let i=Db,a={...Db};a.cursorFlags=e,a.state===`active`&&(a.didPointerMove||=r,a.previews=t,n&&(a.previewLayoutMap=n)),Db=a,Ob.emit(`change`,{prev:i,next:a})}function jb(e){let t=Db;Db=e,t.state===`active`&&e.state!==`active`&&t.didPointerMove&&t.hitRegions.forEach(({separator:e})=>{e&&e.element.ownerDocument.activeElement===e.element&&e.element.blur()}),Ob.emit(`change`,{prev:t,next:e})}function Bne(e){Db.state!==`active`||!Db.previews.some(t=>t.separator===e)||jb({...Db,previews:Db.previews.map(t=>t.separator===e?{...t}:t)})}function Vne(e){if(Db.state===`inactive`)return;let t=Db.hitRegions.filter(t=>t.axis!==e),n=Db.state===`active`&&Db.previews.some(t=>t.axis===e);if(t.length!==Db.hitRegions.length||n){if(t.length===0)jb({cursorFlags:0,state:`inactive`});else if(Db.state===`active`){let n=new Map(Db.initialLayoutMap),r=new Map(Db.previewLayoutMap);n.delete(e),r.delete(e),jb({...Db,cursorFlags:0,hitRegions:t,initialLayoutMap:n,previewLayoutMap:r,previews:Db.previews.filter(t=>t.axis!==e)})}else jb({...Db,hitRegions:t})}}var Hne=e=>e,Mb=()=>{},Nb=1,Pb=2,Fb=4,Ib=8,Lb=3,Rb=12,zb;function Bb(){return zb===void 0&&(zb=!1,typeof window<`u`&&(window.navigator.userAgent.includes(`Chrome`)||window.navigator.userAgent.includes(`Firefox`))&&(zb=!0)),zb}function Une({cursorFlags:e,axes:t,state:n}){let r=0,i=0;switch(n){case`active`:case`hover`:t.forEach(e=>{if(!e.mutableState.disableCursor)switch(e.orientation){case`horizontal`:r++;break;case`vertical`:i++}})}if(r!==0||i!==0){if(n===`active`&&e&&Bb()){let t=(e&Nb)!==0,n=(e&Pb)!==0,r=(e&Fb)!==0,i=(e&Ib)!==0;if(t)return r?`se-resize`:i?`ne-resize`:`e-resize`;if(n)return r?`sw-resize`:i?`nw-resize`:`w-resize`;if(r)return`s-resize`;if(i)return`n-resize`}return Bb()?r>0&&i>0?`move`:r>0?`ew-resize`:`ns-resize`:r>0&&i>0?`grab`:r>0?`col-resize`:`row-resize`}}var Vb=new WeakMap;function Hb(e){if(!e.defaultView||!e.adoptedStyleSheets)return;let{prevStyle:t,styleSheet:n}=Vb.get(e)??{};n===void 0&&(n=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets&&(Object.isExtensible(e.adoptedStyleSheets)?e.adoptedStyleSheets.push(n):e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]));let r=kb();switch(r.state!==`inactive`&&r.ownerDocument!==e&&(r={cursorFlags:0,state:`inactive`}),r.state){case`active`:case`hover`:{let e=Une({cursorFlags:r.cursorFlags,axes:r.hitRegions.map(e=>e.axis),state:r.state}),i=`*, *:hover {cursor: ${e} !important; }`;if(t===i)return;t=i,e?n.cssRules.length===0?n.insertRule(i):n.replaceSync(i):n.cssRules.length===1&&n.deleteRule(0);break}case`inactive`:t=void 0,n.cssRules.length===1&&n.deleteRule(0)}Vb.set(e,{prevStyle:t,styleSheet:n})}function Ub(e){return e.state===`inactive`?void 0:e.ownerDocument}function Wne({next:e,prev:t}){let n=Ub(t),r=Ub(e);n&&n!==r&&Hb(n),r&&Hb(r)}function Wb({axis:e}){let{layoutStrategy:t,orientation:n,items:r}=e;return t?t.calculateAvailableSize():r.reduce((e,t)=>(e+=n===`horizontal`?t.element.offsetWidth:t.element.offsetHeight,e),0)}function Gb(e,t){let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_DISCONNECTED?0:n&Node.DOCUMENT_POSITION_FOLLOWING?-1:n&Node.DOCUMENT_POSITION_PRECEDING?1:0}function Kb(e,t){return Array.from(t).sort((t,n)=>{let r=e===`horizontal`?Gne(t,n):Kne(t,n);return r===0?Gb(t.element,n.element):r})}function Gne(e,t){let n=e.element.offsetLeft-t.element.offsetLeft;return n===0?e.element.offsetWidth-t.element.offsetWidth:n}function Kne(e,t){let n=e.element.offsetTop-t.element.offsetTop;return n===0?e.element.offsetHeight-t.element.offsetHeight:n}function qb(e){return typeof e==`object`&&!!e&&`nodeType`in e&&e.nodeType===Node.ELEMENT_NODE}function Jb(e,t){return{x:e.x>=t.left&&e.x<=t.right?0:Math.min(Math.abs(e.x-t.left),Math.abs(e.x-t.right)),y:e.y>=t.top&&e.y<=t.bottom?0:Math.min(Math.abs(e.y-t.top),Math.abs(e.y-t.bottom))}}function qne({orientation:e,rects:t,targetRect:n}){let r={x:n.x+n.width/2,y:n.y+n.height/2},i,a=Number.MAX_VALUE;for(let n of t){let{x:t,y:o}=Jb(r,n),s=e===`horizontal`?t:o;s!e.hasAttribute(`data-resize-preview`)).map(e=>({element:e}))).map(({element:e})=>e),c=[],l=!1,u=!1,d=-1,f,p=-1,m=0,h,g=[];{let e=-1;for(let t of s)t.hasAttribute(`data-panel`)&&(e++,t.hasAttribute(`data-disabled`)||(m++,d===-1&&(d=e),p=e))}if(n||m>1){let r=-1;for(let m of s)if(m.hasAttribute(`data-panel`)){r++;let o=a.find(e=>e.element===m);if(o){if(h){let a=h.element.getBoundingClientRect(),s=m.getBoundingClientRect(),_;if(u){let e=i===`horizontal`?new DOMRect(a.right,a.top,0,a.height):new DOMRect(a.left,a.bottom,a.width,0),t=i===`horizontal`?new DOMRect(s.left,s.top,0,s.height):new DOMRect(s.left,s.top,s.width,0);switch(g.length){case 0:_=[e,t];break;case 1:{let n=g[0];_=[n,qne({orientation:i,rects:[a,s],targetRect:n.element.getBoundingClientRect()})===a?t:e];break}default:_=g}}else _=g.length?g:[i===`horizontal`?new DOMRect(a.right,s.top,s.left-a.right,s.height):new DOMRect(s.left,a.bottom,s.width,s.top-a.bottom)];for(let i of _){let a=Lne({expandHitTargets:e,axis:t,rect:`width`in i?i:i.element.getBoundingClientRect()});(n||!l&&!(r<=d||r>p))&&(f??=Wb({axis:t}),c.push({axis:t,axisSize:f,items:[h,o],separator:`width`in i?void 0:i,rect:a})),l=!1}}u=!1,h=o,g=[]}}else if(m.hasAttribute(`data-separator`)){m.ariaDisabled!==null&&(l=!0);let e=o.find(e=>e.element===m);e?g.push(e):(h=void 0,g=[])}else u=!0}return c}function Jne(e,t){let n=getComputedStyle(e);return t*parseFloat(n.fontSize)}function Yne(e,t){let n=getComputedStyle(e.ownerDocument.documentElement);return t*parseFloat(n.fontSize)}function Xne(e){return e/100*window.innerHeight}function Zne(e){return e/100*window.innerWidth}function Xb({axisSize:e,itemElement:t,styleProp:n}){let r,[i,a]=Rne(n);switch(a){case`%`:r=i/100*e;break;case`px`:r=i;break;case`rem`:r=Yne(t,i);break;case`em`:r=Jne(t,i);break;case`vh`:r=Xne(i);break;case`vw`:r=Zne(i)}return r}function Zb(e){return parseFloat(e.toFixed(3))}function Qb(e){let{items:t}=e,n=Wb({axis:e});return n===0?t.map(e=>({groupResizeBehavior:e.constraintProps.groupResizeBehavior,collapsedSize:0,collapsible:e.constraintProps.collapsible===!0,defaultSize:void 0,disabled:e.constraintProps.disabled,minSize:0,maxSize:100,itemId:e.id})):t.map(e=>{let{element:t,constraintProps:r}=e,i=0;r.collapsedSize!==void 0&&(i=Zb(Xb({axisSize:n,itemElement:t,styleProp:r.collapsedSize})/n*100));let a;r.collapsedThreshold!==void 0&&(a=Zb(Xb({axisSize:n,itemElement:t,styleProp:r.collapsedThreshold})/n*100));let o;r.defaultSize!==void 0&&(o=Zb(Xb({axisSize:n,itemElement:t,styleProp:r.defaultSize})/n*100));let s=0;r.minSize!==void 0&&(s=Zb(Xb({axisSize:n,itemElement:t,styleProp:r.minSize})/n*100));let c=100;return r.maxSize!==void 0&&(c=Zb(Xb({axisSize:n,itemElement:t,styleProp:r.maxSize})/n*100)),{groupResizeBehavior:r.groupResizeBehavior,collapsedSize:i,collapsedThreshold:a,collapsible:r.collapsible===!0,defaultSize:o,disabled:r.disabled,minSize:s,maxSize:c,itemId:e.id}})}var $b=new Map,ex=new Eb,tx=0,nx=[],rx;function ix(){tx++}function ax(){for(let e=0;e{n.axis.id===e&&t(n)})}function dx(e,t,n){let r=$b.get(e);$b=new Map($b),$b.set(e,t);let i={axis:e,isUserInteraction:n?.isUserInteraction===!0,prev:r,next:t};tx>0?nx.push(i):ex.emit(`axisChange`,i)}function fx(e,{pointerId:t,pointerType:n}){return t===e.pointerId||n===`pen`&&e.pointerType===`pen`}function px(e,t,n={}){return e.ownerDocument===t&&(n.pointerId===void 0||fx(e,n))}function $ne(e,t){if(e.length!==t.length)return!1;for(let n=0;nt?1:-1}function gx({overrideDisabledItems:e,itemConstraints:t,prevSize:n,size:r}){let{collapsedSize:i=0,collapsedThreshold:a,collapsible:o,disabled:s,maxSize:c=100,minSize:l=0}=t;if(s&&!e)return n;if(hx(r,l)<0){if(o){let e=a??(l-i)/2,t=hx(n,i)<=0,o=t?i+e:l-e,s=hx(r,o);r=hx(r,i)<=0||s<0||a!==void 0&&t&&s===0?i:l}else r=l}return r=Math.min(c,r),r=Zb(r),r}function _x({delta:e,initialLayout:t,itemConstraints:n,pivotIndices:r,prevLayout:i,trigger:a}){if(mx(e,0))return t;let o=a===`imperative-api`,s=n.map(({itemId:e})=>t[e]),c=n.map(({itemId:e})=>i[e]),l=[...s],[u,d]=r;wb(u!=null,`Invalid first pivot index`),wb(d!=null,`Invalid second pivot index`);let f=0;switch(a){case`keyboard`:{let t=e<0?d:u,r=n[t];wb(r,`Panel constraints not found for index ${t}`);let{collapsedSize:i=0,collapsible:a,minSize:o=0}=r;if(a){let n=s[t];if(wb(n!=null,`Previous layout not found for panel index ${t}`),mx(n,i)){let t=o-n;hx(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{let t=e<0?u:d,r=n[t];wb(r,`No panel constraints found for index ${t}`);let{collapsedSize:i=0,collapsible:a,minSize:o=0}=r;if(a){let n=s[t];if(wb(n!=null,`Previous layout not found for panel index ${t}`),mx(n,o)){let t=n-i;hx(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}break;default:{let t=e<0?d:u,r=n[t];wb(r,`Panel constraints not found for index ${t}`);let i=s[t],{collapsedSize:a,collapsedThreshold:o,collapsible:c,minSize:l}=r;if(c&&hx(i,l)<0){let t=l-a,n=o??t/2;if(hx(i+Math.abs(e),l)<0){let r=hx(Math.abs(e),n);e=r>0||r===0&&o===void 0&&e<0?e<0?-t:t:0}}break}}{let t=e<0?1:-1,r=e<0?d:u,i=0;for(;;){let e=s[r];wb(e!=null,`Previous layout not found for panel index ${r}`);let a=gx({overrideDisabledItems:o,itemConstraints:n[r],prevSize:e,size:100})-e;if(i+=a,r+=t,r<0||r>=n.length)break}let a=Math.min(Math.abs(e),Math.abs(i));e=e<0?0-a:a}{let t=e<0?u:d;for(;t>=0&&t=0))break;e<0?t--:t++}}if($ne(c,l))return i;{let t=e<0?d:u,r=s[t];wb(r!=null,`Previous layout not found for panel index ${t}`);let i=r+f,a=gx({overrideDisabledItems:o,itemConstraints:n[t],prevSize:r,size:i});if(l[t]=a,!mx(a,i)){let t=i-a,r=e<0?d:u;for(;r>=0&&r0?r--:r++}}}return mx(Object.values(l).reduce((e,t)=>t+e,0),100,.1)?l.reduce((e,t,r)=>(e[n[r].itemId]=t,e),{}):i}function vx(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(t[n]===void 0||hx(e[n],t[n])!==0)return!1;return!0}function yx(e){ix();try{ere(e)}finally{ox()}}function ere({commit:e,event:t,hitRegions:n,initialLayoutMap:r,mountedAxes:i,pointerDownAtPoint:a,prevCursorFlags:o}){let s=0,c=kb(),l=c.state===`active`?c.previews:[],u=new Map(c.state===`active`?c.previewLayoutMap:void 0);n.forEach(n=>{let{axis:o,axisSize:c}=n,{orientation:d,items:f}=o;if(e&&o.resizePreviewMode!==`separator`)return;let{disableCursor:p}=o.mutableState,m=0;m=a?d===`horizontal`?(t.clientX-a.x)/c*100:(t.clientY-a.y)/c*100:d===`horizontal`?t.clientX<0?-100:100:t.clientY<0?-100:100;let h=r.get(o),g=i.get(o);if(!h||!g)return;let{defaultLayoutDeferred:_,derivedItemConstraints:v,axisSize:y,layout:b,separatorToItems:x}=g;if(v&&b&&x){let t=o.resizePreviewMode===`separator`?u.get(o)??b:b,r=_x({delta:m,initialLayout:h,itemConstraints:v,pivotIndices:n.items.map(e=>f.indexOf(e)),prevLayout:t,trigger:`mouse-or-touch`});if(o.resizePreviewMode===`separator`&&!e&&!vx(r,t)){u.set(o,r);let e=0,t=f.map(t=>(e+=r[t.id]-h[t.id],c/100*e));l=l.map(e=>{if(e.axis!==o)return e;let n=t[e.itemIndex];return n===e.offset?e:{...e,offset:n}})}if(vx(r,t)&&m!==0&&!p)switch(d){case`horizontal`:s|=m<0?Nb:Pb;break;case`vertical`:s|=m<0?Fb:Ib}(o.resizePreviewMode!==`separator`||e)&&!vx(r,b)&&dx(n.axis,{defaultLayoutDeferred:_,derivedItemConstraints:v,axisSize:y,layout:r,requestedAxisSize:y,requestedLayout:r,separatorToItems:x})}});let d=0;t.movementX===0?d|=o&Lb:d|=s&Lb,t.movementY===0?d|=o&Rb:d|=s&Rb;let f=c.state===`active`&&(t.clientX!==c.pointerDownAtPoint.x||t.clientY!==c.pointerDownAtPoint.y);zne(d,l,u,f)}function bx(e,t){let n=kb();if(n.state!==`active`||!px(n,e,t))return;let r=lx();ix();try{yx({commit:!0,event:t,hitRegions:n.hitRegions,initialLayoutMap:n.initialLayoutMap,mountedAxes:r,pointerDownAtPoint:n.pointerDownAtPoint,prevCursorFlags:n.cursorFlags}),ax(),jb({cursorFlags:0,state:`inactive`}),n.hitRegions.length>0&&(t.preventDefault?.(),n.hitRegions.forEach(e=>{if(!r.has(e.axis))return;let t=cx(e.axis.id,!0);dx(e.axis,t,{isUserInteraction:!0})}))}finally{ox()}}function xx(e){if(e.defaultPrevented)return;let{clientX:t,clientY:n,movementX:r,movementY:i}=e;bx(e.currentTarget,{clientX:t,clientY:n,movementX:r,movementY:i})}function tre(e,t,n){let r,i={x:1/0,y:1/0};for(let a of t){let t=Jb(n,a.rect);switch(e){case`horizontal`:(t.xt.x&&e.yt.y}function Ox(e){try{return e.matches(`:modal`)}catch{return!1}}function sre({axisElement:e,hitRegion:t,pointerEventTarget:n}){if(qb(n)){let t=n.closest(`dialog`);if(t&&!t.contains(e)&&Ox(t))return!1}if(!qb(n)||n.contains(e)||e.contains(n))return!0;if(rre(n,e)>0){let r=n;for(;r;){if(r.contains(e))return!0;if(Dx(r.getBoundingClientRect(),t))return!1;r=r.parentElement}}return!0}function kx(e,t,n){let r=[];return t.forEach((t,i)=>{if(i.disabled||i.element.ownerDocument!==n)return;let a=Yb({axis:i}),o=tre(i.orientation,a,{x:e.clientX,y:e.clientY});o&&o.distance.x<=0&&o.distance.y<=0&&sre({axisElement:i.element,hitRegion:o.hitRegion.rect,pointerEventTarget:e.target})&&r.push(o.hitRegion)}),r}function Ax({layout:e,itemConstraints:t}){let n=t.map(({itemId:t})=>e[t]),r=[...n],i=r.reduce((e,t)=>e+t,0);if(Object.keys(e).length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${Object.values(e).map(e=>`${e}%`).join(`, `)}`);if(!mx(i,100)&&r.length>0)for(let e=0;e(e[t[r].itemId]=n,e),{})}function jx({axisId:e,itemId:t}){let n=()=>{let t=lx();for(let[n,{defaultLayoutDeferred:r,derivedItemConstraints:i,layout:a,axisSize:o,separatorToItems:s}]of t)if(n.id===e)return{defaultLayoutDeferred:r,derivedItemConstraints:i,axis:n,axisSize:o,layout:a,separatorToItems:s};throw Error(`Group ${e} not found`)},r=()=>{let e=n().derivedItemConstraints.find(e=>e.itemId===t);if(e!==void 0)return e;throw Error(`Panel constraints not found for Panel ${t}`)},i=()=>{let e=n().axis.items.find(e=>e.id===t);if(e!==void 0)return e;throw Error(`Layout not found for Panel ${t}`)},a=()=>{let e=n().layout[t];if(e!==void 0)return e;throw Error(`Layout not found for Panel ${t}`)},o=({nextSize:e,items:n,prevLayout:r,derivedItemConstraints:i})=>{let o=a(),s=n.findIndex(e=>e.id===t),c=s===0,l=s===n.length-1;if(l&&e{let n=i[t];return n?.collapsible&&mx(n.collapsedSize,r[n.itemId])}))){let e=n.slice(0,s).reduce((e,t)=>e+r[t.id],0);return{...r,[t]:Zb(100-e)}}return _x({delta:l?o-e:e-o,initialLayout:r,itemConstraints:i,pivotIndices:l?[s-1,s]:[s,s+1],prevLayout:r,trigger:`imperative-api`})},s=e=>{if(e===a())return;let{defaultLayoutDeferred:t,derivedItemConstraints:r,axis:i,axisSize:s,layout:c,separatorToItems:l}=n(),u=Ax({layout:o({nextSize:e,items:i.items,prevLayout:c,derivedItemConstraints:r}),itemConstraints:r});vx(c,u)||dx(i,{defaultLayoutDeferred:t,derivedItemConstraints:r,axisSize:s,layout:u,requestedAxisSize:s,requestedLayout:u,separatorToItems:l})};return{collapse:()=>{let{collapsible:e,collapsedSize:t}=r(),{mutableValues:n}=i(),o=a();e&&o!==t&&(n.expandToSize=o,s(t))},expand:()=>{let{collapsible:e,collapsedSize:t,minSize:n}=r(),{mutableValues:o}=i(),c=a();if(e&&c===t){let e=o.expandToSize??n;e===0&&(e=1),s(e)}},getSize:()=>{let{axis:e}=n(),r=a(),{element:o}=i();return{asPercentage:r,inPixels:e.layoutStrategy?e.layoutStrategy.getItemSizeInPixels(t):e.orientation===`horizontal`?o.offsetWidth:o.offsetHeight}},isCollapsed:()=>{let{collapsible:e,collapsedSize:t}=r(),n=a();return e&&mx(t,n)},resize:e=>{let{axis:t}=n(),{element:r}=i(),a=Wb({axis:t}),o=Zb(Xb({axisSize:a,itemElement:r,styleProp:e})/a*100);s(o)}}}function Mx(e){e.defaultPrevented||kx(e,lx(),e.currentTarget).forEach(t=>{if(t.separator&&!t.separator.disableDoubleClick){let n=t.items.find(e=>e.constraintProps.defaultSize!==void 0);if(n){let r=n.constraintProps.defaultSize,i=jx({axisId:t.axis.id,itemId:n.id});i&&r!==void 0&&(i.resize(r),e.preventDefault())}}})}function Nx(e){let t=lx();for(let[n]of t)if(n.separators.some(t=>t.element===e))return n;throw Error(`Could not find parent Group for separator element`)}function Px({axisId:e}){let t=()=>{let t=lx();for(let[n,r]of t)if(n.id===e)return{axis:n,...r};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){let{defaultLayoutDeferred:e,layout:n}=t();return e?{}:n},setLayout(e){let{defaultLayoutDeferred:n,derivedItemConstraints:r,axis:i,axisSize:a,layout:o,separatorToItems:s}=t(),c=Ax({layout:e,itemConstraints:r});return n?o:(vx(o,c)||dx(i,{defaultLayoutDeferred:n,derivedItemConstraints:r,axisSize:a,layout:c,requestedAxisSize:a,requestedLayout:c,separatorToItems:s}),c)}}}function Fx(e,t){let n=Nx(e),r=cx(n.id,!0),i=n.separators.find(t=>t.element===e);wb(i,`Matching separator not found`);let a=r.separatorToItems.get(i);wb(a,`Matching panels not found`);let o=a.map(e=>n.items.indexOf(e)),s=Px({axisId:n.id}).getLayout(),c=Ax({layout:_x({delta:t,initialLayout:s,itemConstraints:r.derivedItemConstraints,pivotIndices:o,prevLayout:s,trigger:`keyboard`}),itemConstraints:r.derivedItemConstraints});vx(s,c)||dx(n,{defaultLayoutDeferred:r.defaultLayoutDeferred,derivedItemConstraints:r.derivedItemConstraints,axisSize:r.axisSize,layout:c,requestedAxisSize:r.axisSize,requestedLayout:c,separatorToItems:r.separatorToItems},{isUserInteraction:!0})}function Ix(e){if(e.defaultPrevented)return;let t=e.currentTarget,n=Nx(t);if(!(n.disabled||n.separators.find(e=>e.element===t)?.disabled))switch(e.key){case`ArrowDown`:e.preventDefault(),n.orientation===`vertical`&&Fx(t,5);break;case`ArrowLeft`:e.preventDefault(),n.orientation===`horizontal`&&Fx(t,-5);break;case`ArrowRight`:e.preventDefault(),n.orientation===`horizontal`&&Fx(t,5);break;case`ArrowUp`:e.preventDefault(),n.orientation===`vertical`&&Fx(t,-5);break;case`End`:e.preventDefault(),Fx(t,100);break;case`Enter`:{e.preventDefault();let{derivedItemConstraints:r,layout:i,separatorToItems:a}=cx(n.id,!0),o=n.separators.find(e=>e.element===t);wb(o,`Matching separator not found`);let s=a.get(o);wb(s,`Matching panels not found`);let c=s[0],l=r.find(e=>e.itemId===c.id);if(wb(l,`Panel metadata not found`),l.collapsible){let e=i[c.id];Fx(t,(l.collapsedSize===e?n.mutableState.expandedItemSizes[c.id]??l.minSize:l.collapsedSize)-e)}break}case`F6`:{e.preventDefault();let t=n.separators.map(e=>e.element),r=Array.from(t).findIndex(t=>t===e.currentTarget);wb(r!==null,`Index not found`),t[e.shiftKey?r>0?r-1:t.length-1:r+1{let n=r.get(t);t.resizePreviewMode===`separator`&&n&&!vx(e,n.layout)&&dx(t,{...n,layout:e,requestedAxisSize:n.axisSize,requestedLayout:e})}),ax(),jb({cursorFlags:0,state:`inactive`}),n.hitRegions.forEach(e=>{if(!r.has(e.axis))return;let t=cx(e.axis.id,!0);dx(e.axis,t,{isUserInteraction:!0})})}finally{ox()}return!0}function Rx(e){let t=kb();if(t.state!==`active`)return;let n=t.hitRegions.flatMap(({separator:e})=>e?[e.element]:[]);!n.some(t=>t===e.target)||n.some(t=>t.hasPointerCapture?.(e.pointerId))||Lx(e.currentTarget,e)}function zx(e){Lx(e.currentTarget,e)}function Bx(e,t){let{element:n,orientation:r,items:i}=e,a=n.getBoundingClientRect(),o=r===`horizontal`;return Yb({expandHitTargets:!1,axis:e,includeDisabled:!0}).map(({items:r,rect:s,separator:c},l)=>{let u=i.indexOf(r[0]),d=o?s.left+s.width/2:s.top+s.height/2;return{active:t.some(t=>{if(t.axis!==e||t.items[0]!==r[0])return!1;if(c||t.separator)return t.separator===c;let n=o?t.rect.left+t.rect.width/2:t.rect.top+t.rect.height/2;return mx(d,n)}),axis:e,key:c?`separator-${c.id}`:`panel-${r[0].id}-${l}`,offset:0,itemIndex:u,rect:new DOMRect((o&&!c?d:s.left)-a.left-n.clientLeft+n.scrollLeft,(!o&&!c?d:s.top)-a.top-n.clientTop+n.scrollTop,o&&!c?0:s.width,!o&&!c?0:s.height),separator:c}})}function Vx(e){if(e.defaultPrevented||e.pointerType===`mouse`&&e.button>0)return;let t=kb();if(t.state===`active`){fx(t,e)&&Lx(t.ownerDocument,t);return}let n=lx(),r=kx(e,n,e.currentTarget);if(r.length===0)return;let i=new Map,a=!1;r.forEach(e=>{e.separator&&(a||(a=!0,e.separator.element.focus({focusVisible:!1,preventScroll:!0})));let t=n.get(e.axis);t&&i.set(e.axis,t.layout)});let o=Array.from(i.keys()).flatMap(e=>e.resizePreviewMode===`separator`?Bx(e,r):[]);jb({cursorFlags:0,didPointerMove:!1,hitRegions:r,initialLayoutMap:i,ownerDocument:e.currentTarget,pointerDownAtPoint:{x:e.clientX,y:e.clientY},pointerId:e.pointerId,pointerType:e.pointerType,previewLayoutMap:new Map(i),previews:o,state:`active`}),e.preventDefault()}function Hx(e){let t=e.currentTarget,n=lx(),r=kb();if(r.state===`active`){if(!px(r,t,e))return;yx({commit:!1,event:e,hitRegions:r.hitRegions,initialLayoutMap:r.initialLayoutMap,mountedAxes:n,prevCursorFlags:r.cursorFlags})}}function Ux(e){if(e.defaultPrevented)return;let t=e.currentTarget,n=kb(),r=lx();switch(n.state){case`active`:if(!px(n,t,e))return;if(e.buttons===0){Lx(t,e);return}for(let t of n.hitRegions)if(t.separator){let{element:n}=t.separator;n.isConnected&&!n.hasPointerCapture?.(e.pointerId)&&n.setPointerCapture?.(e.pointerId)}yx({commit:!1,event:e,hitRegions:n.hitRegions,initialLayoutMap:n.initialLayoutMap,mountedAxes:r,pointerDownAtPoint:n.pointerDownAtPoint,prevCursorFlags:n.cursorFlags});break;default:{let i=kx(e,r,t);i.length===0?n.state!==`inactive`&&jb({cursorFlags:0,state:`inactive`}):jb({cursorFlags:0,hitRegions:i,ownerDocument:t,state:`hover`});break}}}function Wx(e){if(e.relatedTarget instanceof HTMLIFrameElement){let t=kb();t.state===`hover`&&t.ownerDocument===e.currentTarget&&jb({cursorFlags:0,state:`inactive`})}}function Gx(e){e.defaultPrevented||e.pointerType===`mouse`&&e.button>0||bx(e.currentTarget,e)}function Kx(e){e.target===e.currentTarget&&Lx(e.currentTarget.document)}function qx(e){Lx(e.currentTarget.document)}function cre(e){let t=0,n=0,r={};for(let i of e)if(i.defaultSize!==void 0){t++;let e=Zb(i.defaultSize);n+=e,r[i.itemId]=e}else r[i.itemId]=void 0;let i=e.length-t;if(i!==0){let t=Zb((100-n)/i);for(let n of e)n.defaultSize===void 0&&(r[n.itemId]=t)}return r}function lre(e,t){let n=e.map(e=>e.id),r=Object.keys(t);if(n.length!==r.length)return!1;for(let e of n)if(!r.includes(e))return!1;return!0}function Jx({axis:e,itemConstraints:t}){let n=e.items.map(({id:e})=>e).join(`,`),r=e.mutableState.defaultLayout;return e.mutableState.layouts[n]??(r&&lre(e.items,r)?r:cre(t))}function Yx({itemIds:e,layout:t}){return Ax({layout:t,itemConstraints:e.map(e=>({collapsedSize:0,collapsible:!1,defaultSize:void 0,disabled:void 0,itemId:e,maxSize:100,minSize:0}))})}function ure(e,t,n){if(!n[0])return;let r=e.items.find(e=>e.element===t);if(!r||!r.onResize)return;let i=Wb({axis:e}),a=e.orientation===`horizontal`?r.element.offsetWidth:r.element.offsetHeight,o=r.mutableValues.prevSize,s={asPercentage:Zb(a/i*100),inPixels:a};r.mutableValues.prevSize=s,r.onResize(s,r.id,o)}function Xx(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function dre(e,t){return e.length===t.length&&e.every((e,n)=>Xx(e,t[n]))}function fre({axis:e,nextAxisSize:t,prevAxisSize:n,prevLayout:r}){if(n<=0||t<=0||n===t)return r;let i=0,a=0,o=!1,s=new Map,c=[];for(let l of e.items){let e=r[l.id]??0;switch(l.constraintProps.groupResizeBehavior){case`preserve-pixel-size`:{o=!0;let r=Zb(e/100*n/t*100);s.set(l.id,r),i+=r;break}default:c.push(l.id),a+=e}}if(!o||c.length===0)return r;let l=100-i,u={...r};if(s.forEach((e,t)=>{u[t]=e}),a>0)for(let e of c)u[e]=Zb((r[e]??0)/a*l);else{let e=Zb(l/c.length);for(let t of c)u[t]=e}return u}var Zx=new Map,Qx=!1;function pre(e){let t=!0;wb(e.element.ownerDocument.defaultView,`Cannot register an unmounted Group`);let n=e.element.ownerDocument.defaultView.ResizeObserver,r=new Set,i=new Set,a=new n(n=>{let r;ix();try{for(let i of n){let{borderBoxSize:n,target:a}=i;if(a===e.element){if(t){let t=Wb({axis:e});if(t===0)break;let n=cx(e.id);if(!n)break;let r=Qb(e),i=n.requestedAxisSize,a=n.requestedLayout;n.defaultLayoutDeferred&&(i=t,a=Yx({itemIds:e.items.map(({id:e})=>e),layout:Jx({axis:e,itemConstraints:r})}));let o=Ax({layout:fre({axis:e,nextAxisSize:t,prevAxisSize:i,prevLayout:a}),itemConstraints:r});if(!n.defaultLayoutDeferred&&vx(n.layout,o)&&dre(n.derivedItemConstraints,r)&&n.axisSize===t)continue;dx(e,{defaultLayoutDeferred:!1,derivedItemConstraints:r,axisSize:t,layout:o,requestedAxisSize:i,requestedLayout:a,separatorToItems:n.separatorToItems})}}else try{ure(e,a,n)}catch(e){r??={error:e}}}}finally{ox()}if(r)throw r.error});a.observe(e.element),e.items.forEach(e=>{wb(!r.has(e.id),`Panel ids must be unique; id "${e.id}" was used more than once`),r.add(e.id),e.onResize&&a.observe(e.element)});let o=Wb({axis:e}),s=Qb(e),c=Jx({axis:e,itemConstraints:s}),l=Ax({layout:c,itemConstraints:s}),u=e.element.ownerDocument,d=u.defaultView;Zx.set(u,(Zx.get(u)??0)+1);let f=new Map;return Yb({axis:e,includeDisabled:!0}).forEach(e=>{e.separator&&f.set(e.separator,e.items)}),dx(e,{defaultLayoutDeferred:o===0,derivedItemConstraints:s,axisSize:o,layout:l,requestedAxisSize:o,requestedLayout:Yx({itemIds:e.items.map(({id:e})=>e),layout:c}),separatorToItems:f}),e.separators.forEach(e=>{wb(!i.has(e.id),`Separator ids must be unique; id "${e.id}" was used more than once`),i.add(e.id),e.element.addEventListener(`keydown`,Ix)}),Qx||(Qx=!0,Ab(Wne)),Zx.get(u)===1&&(u.addEventListener(`contextmenu`,xx,!0),u.addEventListener(`dblclick`,Mx,!0),u.addEventListener(`lostpointercapture`,Rx,!0),u.addEventListener(`pointercancel`,zx,!0),u.addEventListener(`pointerdown`,Vx,!0),u.addEventListener(`pointerleave`,Hx),u.addEventListener(`pointermove`,Ux),u.addEventListener(`pointerout`,Wx),u.addEventListener(`pointerup`,Gx,!0),d?.addEventListener(`blur`,Kx),d?.addEventListener(`pagehide`,qx)),function(){t=!1,Zx.set(u,Math.max(0,(Zx.get(u)??0)-1)),Qne(e),Vne(e),e.separators.forEach(e=>{e.element.removeEventListener(`keydown`,Ix)}),Zx.get(u)||(u.removeEventListener(`contextmenu`,xx,!0),u.removeEventListener(`dblclick`,Mx,!0),u.removeEventListener(`lostpointercapture`,Rx,!0),u.removeEventListener(`pointercancel`,zx,!0),u.removeEventListener(`pointerdown`,Vx,!0),u.removeEventListener(`pointerleave`,Hx),u.removeEventListener(`pointermove`,Ux),u.removeEventListener(`pointerout`,Wx),u.removeEventListener(`pointerup`,Gx,!0),d?.removeEventListener(`blur`,Kx),d?.removeEventListener(`pagehide`,qx)),a.disconnect()}}function mre({derivedItemConstraints:e,axis:t,layout:n,prevLayout:r,requestedLayout:i}){let a=t.items.map(({id:e})=>e).join(`,`);t.mutableState.layouts[a]=i,r&&e.forEach(e=>{if(e.collapsible){let i=mx(e.collapsedSize,n[e.itemId]),a=mx(e.collapsedSize,r[e.itemId]);i&&!a&&(t.mutableState.expandedItemSizes[e.itemId]=r[e.itemId])}})}function hre(){let[e,t]=(0,h.useState)({});return[e,(0,h.useCallback)(()=>t({}),[])]}function $x(e){let t=(0,h.useRef)({...e});return xb(()=>{for(let n in e)t.current[n]=e[n]},[e]),t.current}var eS=(0,h.createContext)(null);function gre({layout:e,itemConstraints:t,itemId:n,itemIndex:r}){let i,a,o=e[n],s=t.find(e=>e.itemId===n);if(s){let c=s.maxSize,l=s.collapsible?s.collapsedSize:s.minSize,u=[r,r+1];a=Ax({layout:_x({delta:l-o,initialLayout:e,itemConstraints:t,pivotIndices:u,prevLayout:e}),itemConstraints:t})[n],i=Ax({layout:_x({delta:c-o,initialLayout:e,itemConstraints:t,pivotIndices:u,prevLayout:e}),itemConstraints:t})[n]}return{valueControls:n,valueMax:i,valueMin:a,valueNow:o}}function _re({attributes:e,axisId:t,axisOrientation:n,children:r,className:i,disableCursor:a,disabled:o,disableDoubleClick:s,elementRef:c,id:l,isSharedHitRegion:u,preview:d,registerSeparator:f,requiredStyle:p,style:m,styleDefaults:g,tabIndex:_=0,updateSeparatorProps:v}){let y=$x({disabled:o,disableDoubleClick:s,children:r,className:i,preview:d,style:m}),[b,x]=(0,h.useState)({}),[S,C]=(0,h.useState)(`inactive`),[w,T]=(0,h.useState)(!1),E=(0,h.useRef)(null),D=(0,h.useRef)(null),O=Cb(E,c),k=n===`horizontal`?`vertical`:`horizontal`;xb(()=>{let e=E.current;if(e!==null){let n={disabled:y.disabled,disableDoubleClick:y.disableDoubleClick,element:e,id:l,get children(){return y.children},get className(){return y.className},get preview(){return y.preview},get style(){return y.style}};D.current=n;let r=f(n),i=Ab(e=>{C(e.next.state!==`inactive`&&e.next.hitRegions.some(e=>e.separator===n||(u?.(e)??!1))?e.next.state:`inactive`)}),a=ux(t,e=>{let{derivedItemConstraints:t,layout:r,separatorToItems:i}=e.next,a=i.get(n);if(a){let n=a[0],i=t.findIndex(e=>e.itemId===n.id),{layoutStrategy:o}=e.axis;x({...gre({layout:r,itemConstraints:t,itemId:n.id,itemIndex:i}),...o?.getItemAriaControls&&{valueControls:o.getItemAriaControls(n.id)}})}});return()=>{D.current=null,i(),a(),r()}}},[t,l,u,f,y]),xb(()=>{let e=D.current;e&&Bne(e)},[d]),(0,h.useEffect)(()=>{v(l,{disabled:o,disableDoubleClick:s})},[o,s,l,v]);let A;o&&!a&&(A=`not-allowed`);let j;if(o)j=`disabled`;else switch(S){case`active`:j=`active`;break;default:j=w?`focus`:S}return(0,H.jsx)(`div`,{...e,"aria-controls":b.valueControls,"aria-disabled":o||void 0,"aria-orientation":k,"aria-valuemax":b.valueMax,"aria-valuemin":b.valueMin,"aria-valuenow":b.valueNow,children:r,className:i,"data-separator":j,"data-testid":l,id:l,onBlur:()=>T(!1),onFocus:()=>T(!0),ref:O,role:`separator`,style:{...g,cursor:A,...m,...p,touchAction:`none`},tabIndex:o?void 0:_})}function vre(e){for(let t=1;t0)return!1;return!0}function yre({separator:e}){let{element:t}=e,n=(0,h.useRef)(null);return xb(()=>{let e=t.cloneNode(!0),r=[t,...t.querySelectorAll(`*`)],i=[e,...e.querySelectorAll(`*`)],a=t.ownerDocument.defaultView;return r.forEach((e,t)=>{let n=i[t];if(n instanceof a.HTMLElement||n instanceof a.SVGElement){let t=a.getComputedStyle(e);for(let e=0;ee.remove()},[t]),(0,H.jsx)(`div`,{ref:n,style:{height:`100%`,opacity:.65,pointerEvents:`none`,width:`100%`}})}function tS(){let e=(0,h.useContext)(eS);return wb(e,`Group Context not found; did you render a Panel or Separator outside of a Group?`),e}function nS(e){let{registerOverlay:t}=tS(),n=(0,h.useRef)(e);Xx(n.current,e)||(n.current=e);let r=n.current;return xb(()=>t(r),[t,r]),null}nS.displayName=`SeparatorOverlay`;function bre({active:e,orientation:t,style:n,...r}){let i;switch(t){case`horizontal`:i={height:`100%`,minWidth:`1px`};break;case`vertical`:i={minHeight:`1px`,width:`100%`}}return(0,H.jsx)(`div`,{...r,"data-separator-overlay":e?`active`:`inactive`,style:{...i,...n,flexShrink:0,pointerEvents:`none`}})}function xre({overlay:e,preview:t}){let{axis:n,offset:r,rect:i,separator:a}=t,o=n.orientation===`horizontal`,s=a?.preview,c=e;return(0,h.isValidElement)(s)&&s.type===nS&&(c=s.props,s=void 0),s??(c?s=(0,H.jsx)(bre,{...c,active:t.active,orientation:n.orientation}):a&&(s=(0,H.jsx)(yre,{separator:a}))),(0,H.jsx)(`div`,{"aria-hidden":`true`,"data-resize-preview":!0,inert:!0,style:{height:i.height,left:i.left,pointerEvents:`none`,position:`absolute`,top:i.top,transform:o?`translateX(${r}px)`:`translateY(${r}px)`,width:i.width},children:s})}function Sre(e){return Array.from(e).sort(Gb)}function Cre(e,t){let n=(0,h.useRef)({getLayout:()=>({}),setLayout:Hne});(0,h.useImperativeHandle)(t,()=>n.current,[]),xb(()=>{Object.assign(n.current,Px({axisId:e}))})}function wre({groupId:e,resizePreviewMode:t}){let[n,r]=(0,h.useState)([]),i=(0,h.useRef)(n);return xb(()=>{let n=n=>{let a=sx(e),o=t===`separator`&&n.state===`active`?n.previews.filter(e=>e.axis===a&&(e.active||!mx(e.offset,0))):[],s=i.current;s.length===o.length&&o.every((e,t)=>e===s[t])||(i.current=o,r(o))};if(t!==`separator`){n(kb());return}let a=Ab(({next:e})=>n(e));return n(kb()),a},[e,t]),n}function rS({children:e,className:t,defaultLayout:n,disableCursor:r,disabled:i,elementRef:a,groupRef:o,id:s,onLayoutChange:c,onLayoutChanged:l,orientation:u=`horizontal`,resizePreviewMode:d=`panel`,resizeTargetMinimumSize:f={coarse:20,fine:10},style:p,...m}){let g=(0,h.useRef)({onLayoutChange:{},onLayoutChanged:{}}),_=Sb(e=>{vx(g.current.onLayoutChange,e)||(g.current.onLayoutChange=e,c?.(e))}),v=Sb((e,t,n)=>{vx(g.current.onLayoutChanged,e)||(g.current.onLayoutChanged=e,l?.(e,{isUserInteraction:t,requestedLayout:n}))}),y=bb(s),[b,x]=(0,h.useState)(),S=wre({groupId:y,resizePreviewMode:d}),C=(0,h.useRef)(null),[w,T]=hre(),E=(0,h.useRef)([]),D=(0,h.useRef)({lastExpandedPanelSizes:{},layouts:{},panels:[],separators:[]}),O=Cb(C,a);Cre(y,o);let k=Sb((e,t)=>{let r=cx(e);if(r)return{flexGrow:r.layout[t]??1};if(n?.[t])return{flexGrow:n?.[t]}}),A=$x({defaultLayout:n,disableCursor:r,resizeTargetMinimumSize:f}),j=(0,h.useMemo)(()=>({get disableCursor(){return!!A.disableCursor},getPanelStyles:k,id:y,orientation:u,registerPanel:e=>{let t=D.current;return t.panels=Kb(u,[...t.panels,e]),T(),()=>{t.panels=t.panels.filter(t=>t!==e),T()}},registerOverlay:e=>(x(e),()=>{x(void 0)}),registerSeparator:e=>{let t=D.current;return t.separators=Kb(u,[...t.separators,e]),T(),()=>{t.separators=t.separators.filter(t=>t!==e),T()}},updatePanelProps:(e,{disabled:t})=>{let n=D.current.panels.find(t=>t.id===e);n&&(n.constraintProps.disabled=t);let r=sx(y),i=cx(y);r&&i&&dx(r,{...i,derivedItemConstraints:Qb(r)})},updateSeparatorProps:(e,{disabled:t,disableDoubleClick:n})=>{let r=D.current.separators.find(t=>t.id===e);r&&(r.disabled=t,r.disableDoubleClick=n)}}),[k,y,T,u,A]),M=(0,h.useRef)(null);return xb(()=>{let e=C.current;if(e===null)return;let t=D.current;t.panels=Kb(u,t.panels),t.separators=Kb(u,t.separators),E.current=Sre([...t.panels.map(({element:e})=>e),...t.separators.map(({element:e})=>e)]);let n;if(A.defaultLayout!==void 0&&Object.keys(A.defaultLayout).length===t.panels.length){n={};for(let e of t.panels){let t=A.defaultLayout[e.id];t!==void 0&&(n[e.id]=t)}}let r={disabled:!!i,element:e,id:y,mutableState:{defaultLayout:n,disableCursor:!!A.disableCursor,expandedItemSizes:D.current.lastExpandedPanelSizes,layouts:D.current.layouts},orientation:u,items:t.panels,resizePreviewMode:d,get resizeTargetMinimumSize(){return A.resizeTargetMinimumSize},separators:t.separators};M.current=r;let a=pre(r),{defaultLayoutDeferred:o,derivedItemConstraints:s,layout:c,requestedLayout:l}=cx(r.id,!0);if(!o&&s.length>0)try{try{_(c)}finally{v(c,!1,l)}}catch(e){throw M.current=null,a(),e}let f=ux(y,e=>{let{defaultLayoutDeferred:t,derivedItemConstraints:n,layout:i,requestedLayout:a}=e.next;if(t||n.length===0)return;mre({derivedItemConstraints:n,axis:r,layout:i,prevLayout:e.prev?.layout,requestedLayout:a});let o=kb(),s=o.state!==`active`||!o.hitRegions.some(e=>e.axis===r);try{_(i)}finally{s&&v(i,e.isUserInteraction,a)}});return()=>{M.current=null,a(),f()}},[i,y,v,_,u,w,d,A]),xb(()=>{vre(E.current)||T()}),(0,h.useEffect)(()=>{let e=M.current;e&&(e.mutableState.defaultLayout=n,e.mutableState.disableCursor=!!r)}),(0,H.jsx)(eS.Provider,{value:j,children:(0,H.jsxs)(`div`,{...m,className:t,"data-group":!0,"data-testid":y,id:y,ref:O,style:{height:`100%`,width:`100%`,overflow:`hidden`,position:d===`separator`?`relative`:void 0,...p,display:`flex`,flexDirection:u===`horizontal`?`row`:`column`,flexWrap:`nowrap`,touchAction:u===`horizontal`?`pan-y`:`pan-x`},children:[e,S.map(e=>(0,H.jsx)(xre,{overlay:b,preview:e},e.key))]})})}rS.displayName=`Group`;function iS(e,t){return`react-resizable-panels:${[e,...t].join(`:`)}`}function aS({id:e,panelIds:t,storage:n}){let r=iS(e,[]),i=n.getItem(r);if(i)try{let e=JSON.parse(i);if(t){let n=e[t.join(`,`)];if(n&&Array.isArray(n.layout)&&t.length===n.layout.length){let e={};for(let r=0;rr.getItem(s),()=>r.getItem(s)),l=(0,h.useMemo)(()=>{if(c){let e=JSON.parse(c),t=Object.values(e);if(Array.from(t).every(e=>typeof e==`number`))return e}},[c]),u=(0,h.useMemo)(()=>{if(!l)return aS({id:o,panelIds:n,storage:r})},[l,o,n,r]),d=l??u,f=(0,h.useRef)(null),p=(0,h.useCallback)(()=>{let e=f.current;e&&(f.current=null,clearTimeout(e))},[]);(0,h.useLayoutEffect)(()=>()=>{p()},[p]);let m=(0,h.useCallback)((e,n)=>{if(t&&!n.isUserInteraction)return;p();let i=n.requestedLayout??e,s;s=a?iS(o,Object.keys(i)):iS(o,[]);try{r.setItem(s,JSON.stringify(i))}catch(e){console.error(e)}},[p,a,o,t,r]);return{defaultLayout:d,onLayoutChange:(0,h.useCallback)(t=>{p(),e===0?m(t,{isUserInteraction:!1}):f.current=setTimeout(()=>{m(t,{isUserInteraction:!1})},e)},[p,e,m]),onLayoutChanged:m}}function sS(){return function(){}}function cS(e,t){let{id:n}=tS(),r=(0,h.useRef)({collapse:Mb,expand:Mb,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:Mb});(0,h.useImperativeHandle)(t,()=>r.current,[]),xb(()=>{Object.assign(r.current,jx({axisId:n,itemId:e}))})}function lS({children:e,className:t,collapsedSize:n=`0%`,collapsedThreshold:r,collapsible:i=!1,defaultSize:a,disabled:o,elementRef:s,groupResizeBehavior:c=`preserve-relative-size`,id:l,maxSize:u=`100%`,minSize:d=`0%`,onResize:f,panelRef:p,style:m,...g}){let _=!!l,v=bb(l),y=$x({disabled:o}),b=(0,h.useRef)(null),x=Cb(b,s),{getPanelStyles:S,id:C,orientation:w,registerPanel:T,updatePanelProps:E}=tS(),D=f!==null,O=Sb((e,t,n)=>{f?.(e,l,n)});xb(()=>{let e=b.current;if(e!==null){let t={element:e,id:v,idIsStable:_,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:D?O:void 0,constraintProps:{groupResizeBehavior:c,collapsedSize:n,collapsedThreshold:r,collapsible:i,defaultSize:a,disabled:y.disabled,maxSize:u,minSize:d}};return T(t)}},[c,n,r,i,a,D,v,_,u,d,O,T,y]),(0,h.useEffect)(()=>{E(v,{disabled:o})},[o,v,E]),cS(v,p);let k=()=>{let e=S(C,v);if(e)return JSON.stringify(e)},A=(0,h.useSyncExternalStore)(e=>ux(C,e),k,k),j;return j=A?JSON.parse(A):a===void 0?{flexGrow:1}:{flexGrow:void 0,flexShrink:void 0,flexBasis:a},(0,H.jsx)(`div`,{...g,"data-disabled":o||void 0,"data-panel":!0,"data-testid":v,id:v,ref:x,style:{...uS,display:`flex`,flexBasis:0,flexShrink:1,overflow:`visible`,...j},children:(0,H.jsx)(`div`,{className:t,style:{maxHeight:`100%`,maxWidth:`100%`,flexGrow:1,overflow:`auto`,...m,touchAction:w===`horizontal`?`pan-y`:`pan-x`},children:e})})}lS.displayName=`Panel`;var uS={minHeight:0,maxHeight:`100%`,height:`auto`,minWidth:0,maxWidth:`100%`,width:`auto`,border:`none`,borderWidth:0,padding:0,margin:0};function dS(){return(0,h.useRef)(null)}var fS={flexBasis:`auto`},pS={flexGrow:0,flexShrink:0};function mS({children:e,className:t,disabled:n,disableDoubleClick:r,elementRef:i,id:a,preview:o,style:s,...c}){let l=bb(a),{disableCursor:u,id:d,orientation:f,registerSeparator:p,updateSeparatorProps:m}=tS();return(0,H.jsx)(_re,{attributes:c,axisId:d,axisOrientation:f,className:t,disableCursor:u,disabled:n,disableDoubleClick:r,elementRef:i,id:l,preview:o,registerSeparator:p,requiredStyle:pS,style:s,styleDefaults:fS,updateSeparatorProps:m,children:e})}mS.displayName=`Separator`;function hS(e){return{...e,dashboard:{...e.dashboard,panels:e.dashboard.panels??[],variables:e.dashboard.variables??[]},results:(e.results??[]).map(e=>e.frame?{...e,frame:{...e.frame,columns:e.frame.columns??[],rows:e.frame.rows??[]}}:e)}}function gS(e){return e?e.rows.map(t=>Object.fromEntries(e.columns.map((e,n)=>[e.name,t[n]??null]))):[]}var _S=function(e,t){return _S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},_S(e,t)};function vS(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);_S(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var yS=`12px sans-serif`,bS=20,xS=100,SS=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function CS(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n=0)s=o*n.length;else for(var c=0;c=Ore&&(PS=0),PS++}function IS(){var e=[...arguments];typeof console<`u`&&console.error.apply(console,e)}function LS(e){if(typeof e!=`object`||!e)return e;var t=e,n=OS.call(e);if(n===`[object Array]`){if(!hC(e)){t=[];for(var r=0,i=e.length;r`u`&&typeof self<`u`?CC.worker=!0:!CC.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(CC.node=!0,CC.svgSupported=!0):wC(navigator.userAgent,CC);function wC(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);if(r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(`.`)[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<`u`,t.touchEventsSupported=`ontouchstart`in window&&!n.ie&&!n.edge,t.pointerEventsSupported=`onpointerdown`in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<`u`){var s=document.documentElement.style;t.transform3dSupported=(n.ie&&`transition`in s||n.edge||`WebKitCSSMatrix`in window&&`m11`in new WebKitCSSMatrix||`MozPerspective`in s)&&!(`OTransition`in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}var TC=`.`,EC=`___EC__COMPONENT__CONTAINER___`,DC=`___EC__EXTENDED_CLASS___`;function OC(e){var t={main:``,sub:``};if(e){var n=e.split(TC);t.main=n[0]||``,t.sub=n[1]||``}return t}function kC(e){dC(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function AC(e){return!!(e&&e[DC])}function jC(e,t){e.$constructor=e,e.extend=function(e){var t=this,n;return MC(t)?n=function(e){vS(t,e);function t(){return e.apply(this,arguments)||this}return t}(t):(n=function(){(e.$constructor||t).apply(this,arguments)},jre(n,this)),J(n.prototype,e),n[DC]=!0,n.extend=this.extend,n.superCall=IC,n.superApply=LC,n.superClass=t,n}}function MC(e){return XS(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function NC(e,t){e.extend=t.extend}var PC=Math.round(Math.random()*10);function FC(e){var t=[`__\0is_clz`,PC++].join(`_`);e.prototype[t]=!0,e.isInstance=function(e){return!!(e&&e[t])}}function IC(e,t){var n=[...arguments].slice(2);return this.superClass.prototype[t].apply(e,n)}function LC(e,t,n){return this.superClass.prototype[t].apply(e,n)}function RC(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){kC(r),e.prototype.type=r;var i=OC(r);if(!i.sub)t[i.main]=e;else if(i.sub!==EC){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[EC]&&(i=n?i[n]:null),r&&!i)throw Error(n?`Component `+e+`.`+(n||``)+` is used but not imported.`:e+`.type should be specified.`);return i},e.getClassesByMainType=function(e){var n=OC(e),r=[],i=t[n.main];return i&&i[EC]?Y(i,function(e,t){t!==EC&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[OC(e).main]},e.getAllClassMainTypes=function(){var e=[];return Y(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[OC(e).main];return n&&n[EC]};function n(e){var n=t[e.main];return n&&n[EC]||(n=t[e.main]={},n[EC]=!0),n}}function zC(e,t){for(var n=0;n=0||i&&BS(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var BC=zC([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),VC=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return BC(this,e,t)},e}(),HC=function(e,t){return HC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},HC(e,t)};function UC(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);HC(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var WC=function(){function e(e){this.value=e}return e}(),GC=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new WC(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),KC=function(){function e(e){this._list=new GC,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(r[e]==null){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new WC(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),qC=new KC(50);function JC(e){if(typeof e==`string`){var t=qC.get(e);return t&&t.image}return e}function YC(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=qC.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!ZC(t)&&a.pending.push(o)):(t=TS.loadImage(e,XC,XC),t.__zrImageSrc=e,qC.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}return e}function XC(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;tu||d>f||p>m||h>g)return!1;var _=!(u=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},e.prototype.contain=function(t,n){return e.contain(this,t,n)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(e){Nw(this,e)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},e.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},e.applyTransform=function(e,t,n){if(!n)e!==t&&Nw(e,t);else if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var r=n[0],i=n[3],a=n[4],o=n[5];e.x=t.x*r+a,e.y=t.y*i+o,e.width=t.width*r,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height)}else{Sw.x=ww.x=t.x,Sw.y=Tw.y=t.y,Cw.x=Tw.x=t.x+t.width,Cw.y=ww.y=t.y+t.height,Sw.transform(n),Tw.transform(n),Cw.transform(n),ww.transform(n),e.x=vw(Sw.x,Cw.x,ww.x,Tw.x),e.y=vw(Sw.y,Cw.y,ww.y,Tw.y);var s=yw(Sw.x,Cw.x,ww.x,Tw.x),c=yw(Sw.y,Cw.y,ww.y,Tw.y);e.width=s-e.x,e.height=c-e.y}},e.calculateTransform=function(e,t,n){var r=n.width/t.width,i=n.height/t.height;return e=$C(e||[]),nw(e,e,sw(Fw,-t.x,-t.y)),Rre(e,e,sw(Fw,r,i)),nw(e,e,sw(Fw,n.x,n.y)),e},e}(),jw=Aw.create,Mw=Aw.set,Nw=Aw.copy,Pw=Aw.calculateTransform,Gre=Aw.applyTransform,Kre=Aw.contain,qre=new Aw(0,0,0,0),Jre=new Aw(0,0,0,0),Fw=[];function Iw(e,t,n,r,i,a,o,s){var c=bw(t-n),l=bw(r-e),u=vw(c,l),d=xw[i],f=xw[1-i],p=Wre[i];t=l||!Ew.bidirectional)&&(Dw[d]=-l,Dw[f]=0,Ew.useDir&&Ew.calcDirMTV())))}function Lw(){var e=0,t=new _w,n=new _w,r={minTv:new _w,maxTv:new _w,useDir:!1,dirMinTv:new _w,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=yw(0,i.touchThreshold)),r.negativeSize=!1,a&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&i.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),e=i.direction,r.bidirectional=i.bidirectional==null||!!i.bidirectional,r.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=r.minTv,o=r.dirMinTv,s=a.y*a.y+a.x*a.x,c=Math.sin(e),l=Math.cos(e),u=c*a.y+l*a.x;i(u)?i(a.x)&&i(a.y)&&o.set(0,0):(n.x=s*l/u,n.y=s*c/u,i(n.x)&&i(n.y)?o.set(0,0):(r.bidirectional||t.dot(n)>0)&&n.len()=Vw)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=TS.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?Bw=Vw:i>2&&Bw++,t}}var Bw=0,Vw=5;function Hw(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=Yre(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function Uw(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=TS.measureText(t,e.font).width,n.put(t,r)),r}function Ww(e,t,n,r){var i=Uw(Rw(t),e),a=Jw(t);return new Aw(Kw(0,i,n),qw(0,a,r),i,a)}function Gw(e,t,n,r){var i=((e||``)+``).split(` -`);if(i.length===1)return Ww(i[0],t,n,r);for(var a=new Aw(0,0,0,0),o=0;o=0?parseFloat(e)/100*t:parseFloat(e):e}function Xw(e,t,n){var r=t.position||`inside`,i=t.distance==null?5:t.distance,a=n.height,o=n.width,s=a/2,c=n.x,l=n.y,u=`left`,d=`top`;if(r instanceof Array)c+=Yw(r[0],n.width),l+=Yw(r[1],n.height),u=null,d=null;else switch(r){case`left`:c-=i,l+=s,u=`right`,d=`middle`;break;case`right`:c+=i+o,l+=s,d=`middle`;break;case`top`:c+=o/2,l-=i,u=`center`,d=`bottom`;break;case`bottom`:c+=o/2,l+=a+i,u=`center`;break;case`inside`:c+=o/2,l+=s,u=`center`,d=`middle`;break;case`insideLeft`:c+=i,l+=s,d=`middle`;break;case`insideRight`:c+=o-i,l+=s,u=`right`,d=`middle`;break;case`insideTop`:c+=o/2,l+=i,u=`center`;break;case`insideBottom`:c+=o/2,l+=a-i,u=`center`,d=`bottom`;break;case`insideTopLeft`:c+=i,l+=i;break;case`insideTopRight`:c+=o-i,l+=i,u=`right`;break;case`insideBottomLeft`:c+=i,l+=a-i,d=`bottom`;break;case`insideBottomRight`:c+=o-i,l+=a-i,u=`right`,d=`bottom`}return e||={},e.x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var Zw=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Xre(e,t,n,r,i,a){if(!n)e.text=``,e.isTruncated=!1;else{var o=(t+``).split(` -`);a=Qw(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l=s;l++)c-=s;var u=Uw(o,n);return u>c&&(n=``,u=0),c=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=c,i.containerWidth=e,i}function $w(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r)e.textLine=``,e.isTruncated=!1;else{var o=Uw(a,t);if(o<=r)e.textLine=t,e.isTruncated=!1;else{for(var s=0;;s++){if(o<=i||s>=n.maxIterations){t+=n.ellipsis;break}var c=s===0?Zre(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,c),o=Uw(a,t)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}}}function Zre(e,t,n){for(var r=0,i=0,a=e.length;ig&&p){var y=Math.floor(g/f);m||=_.length>y,_=_.slice(0,y),v=_.length*f}if(i&&u&&h!=null)for(var b=Qw(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)$w(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=Rw(l),S=0;S<_.length;S++)w=Math.max(Uw(T,_[S]),w);h??=w;var E=h;return C+=c,E+=s,{lines:_,height:g,outerWidth:E,outerHeight:C,lineHeight:f,calculatedLineHeight:d,contentWidth:w,contentHeight:v,width:h,isTruncated:m}}var $re=function(){function e(){}return e}(),eT=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),eie=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function tie(e,t,n,r,i){var a=new eie,o=oT(e);if(!o)return a;var s=t.padding,c=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,u=t.width;u==null&&n!=null&&(u=n-c);var d=t.height;d==null&&r!=null&&(d=r-l);for(var f=t.overflow,p=(f===`break`||f===`breakAll`)&&u!=null?{width:u,accumWidth:0,breakAll:f===`breakAll`}:null,m=Zw.lastIndex=0,h;(h=Zw.exec(o))!=null;){var g=h.index;g>m&&tT(a,o.substring(m,g),t,p),tT(a,h[2],t,p,h[1]),m=Zw.lastIndex}md){var F=a.lines.length;O>0?(T.tokens=T.tokens.slice(0,O),C(T,D,E),a.lines=a.lines.slice(0,w+1)):a.lines=a.lines.slice(0,w),a.isTruncated=a.isTruncated||a.lines.length0&&m+r.accumWidth>r.width&&(u=t.split(` -`),l=!0),r.accumWidth=m}else{var h=nT(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||=t.split(` -`);for(var g=Rw(c),_=0;_=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var rie=WS(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function iie(e){return!nie(e)||!!rie[e]}function nT(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=Rw(t),f=0;fn:i+u+m>n)?u?(s||c)&&(h?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=p,l+=m,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m)):(u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p))}}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function rT(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=t.width*2,s=t.height*2;Aw.set(iT,Kw(n,o,i),qw(r,s,a),o,s),Aw.intersect(t,iT,null,aT);var c=aT.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=Kw(c.x,c.width,i,!0),e.baseY=qw(c.y,c.height,a,!0)}}var iT=new Aw(0,0,0,0),aT={outIntersectRect:{},clamp:!0};function oT(e){return e==null?e=``:e+=``}function aie(e){var t=oT(e.text),n=e.font;return sT(e,Uw(Rw(n),t),Jw(n),null)}function sT(e,t,n,r){var i=new Aw(Kw(e.x||0,t,e.textAlign),qw(e.y||0,n,e.textBaseline),t,n),a=r??(cT(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function cT(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var lT=$C,uT=5e-5;function dT(e){return e>uT||e<-uT}var fT=[],pT=[],mT=QC(),hT=Math.abs,gT=function(){function e(){}return e.prototype.getLocalTransform=function(e){return _T(this,e)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return dT(this.rotation)||dT(this.x)||dT(this.y)||dT(this.scaleX-1)||dT(this.scaleY-1)||dT(this.skewX)||dT(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n||=QC(),t?this.getLocalTransform(n):lT(n),e&&(t?tw(n,e,n):ew(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||QC(),iw(this.invTransform,n)):n&&(lT(n),this.invTransform=null)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(fT);var n=fT[0]<0?-1:1,r=fT[1]<0?-1:1,i=((fT[0]-n)*t+n)/fT[0]||0,a=((fT[1]-r)*t+r)/fT[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||QC(),tw(pT,e.invTransform,t),t=pT);var n=this.originX,r=this.originY;(n||r)&&(mT[4]=n,mT[5]=r,tw(pT,t,mT),pT[4]-=n,pT[5]-=r,t=pT),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&mw(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&mw(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&hT(e[0]-1)>1e-10&&hT(e[3]-1)>1e-10?Math.sqrt(hT(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){bT(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&rw(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e}(),_T=gT.getLocalTransform;function vT(){return new gT}var yT=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function bT(e,t){return Are(e,t,yT)}var xT={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(2**(-10*(e-1)))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-xT.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?xT.bounceIn(e*2)*.5:xT.bounceOut(e*2-1)*.5+.5}},ST=Math.pow,CT=Math.sqrt,wT=1e-8,TT=1e-4,ET=CT(3),DT=1/3,OT=aw(),kT=aw(),AT=aw();function jT(e){return e>-wT&&ewT||e<-wT}function NT(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function PT(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function FT(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(jT(u)&&jT(d)){if(jT(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}}else{var h=d*d-4*u*f;if(jT(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=CT(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-ST(-y,DT):ST(y,DT),b=b<0?-ST(-b,DT):ST(b,DT);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*CT(u*u*u)),S=Math.acos(x)/3,C=CT(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+ET*Math.sin(S)))/(3*o),T=(-s+C*(w-ET*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function IT(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(jT(o)){if(MT(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(jT(u))i[0]=-a/(2*o);else if(u>0){var d=CT(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function LT(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function oie(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;OT[0]=c,OT[1]=l;for(var v=0;v<1;v+=.05)kT[0]=NT(e,n,i,o,v),kT[1]=NT(t,r,a,s,v),g=pw(OT,kT),g=0&&g=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(jT(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=CT(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function BT(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function VT(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function lie(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;OT[0]=o,OT[1]=s;for(var f=0;f<1;f+=.05){kT[0]=RT(e,n,i,f),kT[1]=RT(t,r,a,f);var p=pw(OT,kT);p=0&&p=1?1:FT(0,r,a,1,e,s)&&NT(0,i,o,1,s[0])}}}var fie=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||bC,this.ondestroy=e.ondestroy||bC,this.onrestart=e.onrestart||bC,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused)this._pausedTime+=t;else{var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1){if(this.loop){var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}else return!0}return!1}},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=XS(e)?e:xT[e]||HT(e)},e}(),UT={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function WT(e){return e=Math.round(e),e<0?0:e>255?255:e}function pie(e){return e=Math.round(e),e<0?0:e>360?360:e}function GT(e){return e<0?0:e>1?1:e}function KT(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?WT(parseFloat(t)/100*255):WT(parseInt(t,10))}function qT(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?GT(parseFloat(t)/100):GT(parseFloat(t))}function JT(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function YT(e,t,n){return e+(t-e)*n}function XT(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function ZT(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var QT=new KC(20),$T=null;function eE(e,t){$T&&ZT($T,t),$T=QT.put(e,$T||t.slice())}function tE(e,t){if(e){t||=[];var n=QT.get(e);if(n)return ZT(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in UT)return ZT(t,UT[r]),eE(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){XT(t,0,0,0,1);return}return XT(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),eE(e,t),t}if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){XT(t,0,0,0,1);return}return XT(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),eE(e,t),t}}else{var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?XT(t,+l[0],+l[1],+l[2],1):XT(t,0,0,0,1);u=qT(l.pop());case`rgb`:if(l.length>=3)return XT(t,KT(l[0]),KT(l[1]),KT(l[2]),l.length===3?u:qT(l[3])),eE(e,t),t;XT(t,0,0,0,1);return;case`hsla`:if(l.length!==4){XT(t,0,0,0,1);return}return l[3]=qT(l[3]),nE(l,t),eE(e,t),t;case`hsl`:if(l.length!==3){XT(t,0,0,0,1);return}return nE(l,t),eE(e,t),t;default:return}}XT(t,0,0,0,1)}}}function nE(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=qT(e[1]),i=qT(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],XT(t,WT(JT(o,a,n+1/3)*255),WT(JT(o,a,n)*255),WT(JT(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function rE(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function iE(e,t){var n=tE(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return lE(n,n.length===4?`rgba`:`rgb`)}}function aE(e,t,n){if(t&&t.length&&e>=0&&e<=1){n||=[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],c=r-i;return n[0]=WT(YT(o[0],s[0],c)),n[1]=WT(YT(o[1],s[1],c)),n[2]=WT(YT(o[2],s[2],c)),n[3]=GT(YT(o[3],s[3],c)),n}}function oE(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=tE(t[i]),s=tE(t[a]),c=r-i,l=lE([WT(YT(o[0],s[0],c)),WT(YT(o[1],s[1],c)),WT(YT(o[2],s[2],c)),GT(YT(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}function sE(e,t,n,r){var i=tE(e);if(e)return i=rE(i),t!=null&&(i[0]=pie(XS(t)?t(i[0]):t)),n!=null&&(i[1]=qT(XS(n)?n(i[1]):n)),r!=null&&(i[2]=qT(XS(r)?r(i[2]):r)),lE(nE(i),`rgba`)}function cE(e,t){var n=tE(e);if(n&&t!=null)return n[3]=GT(t),lE(n,`rgba`)}function lE(e,t){if(e&&e.length){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function uE(e,t){var n=tE(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var dE=new KC(100);function fE(e){if(ZS(e)){var t=dE.get(e);return t||(t=iE(e,-.1),dE.put(e,t)),t}if(iC(e)){var n=J({},e);return n.colorStops=US(e.colorStops,function(e){return{offset:e.offset,color:iE(e.color,-.1)}}),n}return e}var pE=Math.round;function mE(e){var t;if(!e||e===`transparent`)e=`none`;else if(typeof e==`string`&&e.indexOf(`rgba`)>-1){var n=tE(e);n&&(e=`rgb(`+n[0]+`,`+n[1]+`,`+n[2]+`)`,t=n[3])}return{color:e,opacity:t??1}}var hE=1e-4;function gE(e){return e-hE}function _E(e){return pE(e*1e3)/1e3}function vE(e){return pE(e*1e4)/1e4}function yE(e){return`matrix(`+_E(e[0])+`,`+_E(e[1])+`,`+_E(e[2])+`,`+_E(e[3])+`,`+vE(e[4])+`,`+vE(e[5])+`)`}var bE={left:`start`,right:`end`,center:`middle`,middle:`middle`};function xE(e,t,n){return n===`top`?e+=t/2:n===`bottom`&&(e-=t/2),e}function SE(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function CE(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(`,`)}function wE(e){return e&&!!e.image}function TE(e){return e&&!!e.svgElement}function EE(e){return wE(e)||TE(e)}function DE(e){return e.type===`linear`}function OE(e){return e.type===`radial`}function kE(e){return e&&(e.type===`linear`||e.type===`radial`)}function AE(e){return`url(#`+e+`)`}function jE(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function ME(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*xC,i=sC(e.scaleX,1),a=sC(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,c=[];return(t||n)&&c.push(`translate(`+t+`px,`+n+`px)`),r&&c.push(`rotate(`+r+`)`),(i!==1||a!==1)&&c.push(`scale(`+i+`,`+a+`)`),(o||s)&&c.push(`skew(`+pE(o*xC)+`deg, `+pE(s*xC)+`deg)`),c.join(` `)}var NE=(function(){return typeof Buffer<`u`&&typeof Buffer.from==`function`?function(e){return Buffer.from(e).toString(`base64`)}:typeof btoa==`function`&&typeof unescape==`function`&&typeof encodeURIComponent==`function`?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null}})(),PE=Array.prototype.slice;function FE(e,t,n){return(t-e)*n+e}function IE(e,t,n,r){for(var i=t.length,a=0;ar?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so)r.length=o;else for(var s=a;s=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=ZE,s=t;if(HS(t)){var c=WE(t);o=c,(c===1&&!$S(t[0])||c===2&&!$S(t[0][0]))&&(a=!0)}else if($S(t)&&!aC(t))o=GE;else if(ZS(t)){if(!isNaN(+t))o=GE;else{var l=tE(t);l&&(s=l,o=JE)}}else if(iC(t)){var u=J({},s);u.colorStops=US(t.colorStops,function(e){return{offset:e.offset,color:tE(e.color)}}),DE(t)?o=YE:OE(t)&&(o=XE),s=u}i===0?this.valType=o:(o!==this.valType||o===ZE)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=XS(n)?n:xT[n]||HT(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=$E(r),c=QE(r),l=0;l=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;lt);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?eD:e[s];if(($E(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if($E(i))i===KE?IE(g,f[r],p[r],h):LE(g,f[r],p[r],h);else if(QE(i)){var _=f[r],v=p[r],y=i===YE;e[s]={type:y?`linear`:`radial`,x:FE(_.x,v.x,h),y:FE(_.y,v.y,h),colorStops:US(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:FE(e.offset,n.offset,h),color:UE(IE([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=FE(_.x2,v.x2,h),e[s].y2=FE(_.y2,v.y2,h)):e[s].r=FE(_.r,v.r,h)}else if(c)IE(g,f[r],p[r],h),n||(e[s]=UE(g));else{var b=FE(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===GE?e[n]=e[n]+r:t===JE?(tE(e[n],eD),RE(eD,eD,r,1),e[n]=UE(eD)):t===KE?RE(e[n],e[n],r,1):t===qE&&zE(e[n],e[n],r,1)},e}(),nD=function(){function e(e,t,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r?IS(`Can' use additive animation on looped animation.`):(this._additiveAnimators=r,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,qS(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a0&&s.addKeyframe(0,HE(c),r),this._trackKeys.push(o)}s.addKeyframe(e,HE(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}(),rD=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o=0:n.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y===`auto`)&&(y=this.getInsideTextFill()),(b==null||b===`auto`)&&(b=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y===`auto`)&&(y=this.getOutsideFill()),(b==null||b===`auto`)&&(b=this.getOutsideStroke(y),x=!0)),y||=`#000`,(y!==g.fill||b!==g.stroke||x!==g.autoStroke||a!==g.align||o!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=b,g.autoStroke=x,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?cD:sD},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&tE(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,lE(n,`rgba`)},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){e===`textConfig`?this.setTextConfig(t):e===`textContent`?this.setTextContent(t):e===`clipPath`?this.setClipPath(t):e===`extra`?(this.extra=this.extra||{},J(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(eC(e))for(var n=qS(e),r=0;r0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(uD,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===uD;if(this.hasState()||!i){var a=this.currentStates,o=this.stateTransition;if(!(BS(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],!s&&!i)IS(`State `+e+` not exists.`);else{i||this.saveCurrentToNormalState(s);var c=this._textContent,l=wD(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,ED(this,n,o),o);var u=this._textGuide;return c&&c.useState(e,t,n,!!l),u&&u.useState(e,t,n,!!l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),s}}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=BS(r,e),a=BS(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f0||i.force&&!o.length){var C=void 0,w=void 0,T=void 0;if(s){w={},f&&(C={});for(var b=0;b0}var DD=`__zr_style_`+Math.round(Math.random()*10),OD={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},kD={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};OD[DD]=!0;var AD=[`z`,`z2`,`invisible`],mie=[`invisible`],jD=function(e){UC(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=qS(t),r=0;r1e-4)s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;else{if(zD[0]=LD(i)*n+e,zD[1]=ID(i)*r+t,BD[0]=LD(a)*n+e,BD[1]=ID(a)*r+t,l(s,zD,BD),u(c,zD,BD),i%=RD,i<0&&(i+=RD),a%=RD,a<0&&(a+=RD),i>a&&!o?a+=RD:ii&&(VD[0]=LD(p)*n+e,VD[1]=ID(p)*r+t,l(s,VD,s),u(c,VD,c))}}var GD={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},KD=[],qD=[],JD=[],YD=[],XD=[],ZD=[],QD=Math.min,$D=Math.max,eO=Math.cos,tO=Math.sin,nO=Math.abs,rO=Math.PI,iO=rO*2,aO=typeof Float32Array<`u`,oO=[];function sO(e){return Math.round(e/rO*1e8)/1e8%2*rO}function yie(e,t){var n=sO(e[0]);n<0&&(n+=iO);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=iO?i=n+iO:t&&n-i>=iO?i=n-iO:!t&&n>i?i=n+(iO-sO(n-i)):t&&n0&&(this._ux=nO(n/aD/e)||0,this._uy=nO(n/aD/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(GD.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=nO(e-this._xi),r=nO(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(GD.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(GD.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(GD.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),oO[0]=r,oO[1]=i,yie(oO,a),r=oO[0],i=oO[1];var o=i-r;return this.addData(GD.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=eO(i)*n+e,this._yi=tO(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(GD.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(GD.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&aO&&(this.data=new Float32Array(t));for(var n=0;n0&&a))for(var o=0;ol.length&&(this._expandData(),l=this.data);for(var u=0;u0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){JD[0]=JD[1]=XD[0]=XD[1]=Number.MAX_VALUE,YD[0]=YD[1]=ZD[0]=ZD[1]=-Number.MAX_VALUE;for(var e=this.data,t=0,n=0,r=0,i=0,a=0;an||nO(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case GD.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=sie(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case GD.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=uie(i,a,y,b,h,g,10),i=h,a=g;break;case GD.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=eO(D)*T+C,s=tO(D)*E+w),m=$D(T,E)*QD(iO,Math.abs(O)),i=eO(k)*T+C,a=tO(k)*E+w;break;case GD.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case GD.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x0&&(e.lineTo(y,b),v=0),S){case GD.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case GD.L:u=n[x++],d=n[x++];var w=nO(u-c),T=nO(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case GD.C:var k=n[x++],A=n[x++],j=n[x++],M=n[x++],N=n[x++],P=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;LT(c,k,j,N,D,KD),LT(l,A,M,P,D,qD),e.bezierCurveTo(KD[1],qD[1],KD[2],qD[2],KD[3],qD[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,M,N,P),c=N,l=P;break;case GD.Q:var k=n[x++],A=n[x++],j=n[x++],M=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;VT(c,k,j,D,KD),VT(l,A,M,D,qD),e.quadraticCurveTo(KD[1],qD[1],KD[2],qD[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,M),c=j,l=M;break;case GD.A:var F=n[x++],ee=n[x++],I=n[x++],te=n[x++],L=n[x++],ne=n[x++],re=n[x++],ie=!n[x++],ae=I>te?I:te,oe=nO(I-te)>.001,se=L+ne,R=!1;if(f){var E=p[g++];h+E>_&&(se=L+ne*(_-h)/E,R=!0),h+=E}if(oe&&e.ellipse?e.ellipse(F,ee,I,te,re,L,se,ie):e.arc(F,ee,ae,L,se,ie),R)break lo;C&&(o=eO(L)*I+F,s=tO(L)*te+ee),c=eO(se)*I+F,l=tO(se)*te+ee;break;case GD.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var ce=n[x++],le=n[x++];if(f){var E=p[g++];if(h+E>_){var z=_-h;e.moveTo(u,d),e.lineTo(u+QD(z,ce),d),z-=ce,z>0&&e.lineTo(u+ce,d+QD(z,le)),z-=le,z>0&&e.lineTo(u+$D(ce-z,0),d+le),z-=ce,z>0&&e.lineTo(u,d+$D(le-z,0));break lo}h+=E}e.rect(u,d,ce,le);break;case GD.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=GD,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function lO(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||oe+s&&a>n+s||at+d&&u>r+d&&u>a+d&&u>s+d||ue+d&&l>n+d&&l>i+d&&l>o+d||lt+l&&c>r+l&&c>a+l||ce+l&&s>n+l&&s>i+l||sn||u+li&&(i+=fO);var f=Math.atan2(c,s);return f<0&&(f+=fO),f>=r&&f<=i||f+fO>=r&&f+fO<=i}function pO(e,t,n,r,i,a){if(a>t&&a>r||ai?s:0}var mO=cO.CMD,hO=Math.PI*2,Cie=1e-4;function wie(e,t){return Math.abs(e-t)t&&l>r&&l>a&&l>s||l1&&Tie(),p=NT(t,r,a,s,_O[0]),f>1&&(m=NT(t,r,a,s,_O[1]))),f===2?g<_O[0]?d+=pt&&s>r&&s>a||s=0&&l<=1){for(var u=0,d=RT(t,r,a,l),f=0;fn||s<-n)return 0;var c=Math.sqrt(n*n-s*s);gO[0]=-c,gO[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=hO-1e-4){r=0,i=hO;var u=a?1:-1;return o>=gO[0]+e&&o<=gO[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=hO,i+=hO);for(var f=0,p=0;p<2;p++){var m=gO[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=hO+h),(h>=r&&h<=i||h+hO>=r&&h+hO<=i)&&(h>Math.PI/2&&h1&&(n||(s+=pO(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case mO.M:u=a[m++],d=a[m++],c=u,l=d;break;case mO.L:if(n){if(lO(c,l,a[m],a[m+1],t,r,i))return!0}else s+=pO(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case mO.C:if(n){if(bie(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Eie(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case mO.Q:if(n){if(xie(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Die(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case mO.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=pO(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(Sie(_,v,b,x,x+S,C,t,w,i))return!0}else s+=Oie(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case mO.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(lO(u,d,f,d,t,r,i)||lO(f,d,f,p,t,r,i)||lO(f,p,u,p,t,r,i)||lO(u,p,u,d,t,r,i))return!0}else s+=pO(f,d,f,p,r,i),s+=pO(u,p,u,d,r,i);break;case mO.Z:if(n){if(lO(c,l,u,d,t,r,i))return!0}else s+=pO(c,l,u,d,r,i);c=u,l=d}}return!n&&!wie(l,d)&&(s+=pO(c,l,u,d,r,i)||0),s!==0}function kie(e,t,n){return vO(e,0,!1,t,n)}function Aie(e,t,n,r){return vO(e,t,!0,n,r)}var yO=zS({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},OD),jie={style:zS({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},kD.style)},bO=yT.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),xO=function(e){UC(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s.5?sD:t>.2?lD:cD}if(e)return cD}return sD},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(ZS(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==uE(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new cO(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),Aie(a,o/s,e,t)))return!0}if(this.hasFill())return kie(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:J(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return vC(yO,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=J({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){if(e.prototype._applyStateObj.call(this,t,n,r,i,a,o),this.__inHover!==1){var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=J({},r.shape),J(c,n.shape)):(c=J({},i?this.shape:r.shape),J(c,n.shape)):s&&(c=r.shape),c){if(a){this.shape=J({},this.shape);for(var l={},u=qS(c),d=0;di&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5),e.closePath()}var wO=Math.round;function TO(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s&&(wO(r*2)===wO(i*2)&&(e.x1=e.x2=DO(r,s,!0)),wO(a*2)===wO(o*2)&&(e.y1=e.y2=DO(a,s,!0))),e}}function EO(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s&&(e.x=DO(r,s,!0),e.y=DO(i,s,!0),e.width=Math.max(DO(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(DO(i+o,s,!1)-e.y,o===0?0:1)),e}}function DO(e,t,n){if(!t)return e;var r=wO(e*2);return(r+wO(t))%2==0?r/2:(r+(n?1:-1))/2}var Lie=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Rie={},OO=function(e){UC(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Lie},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=EO(Rie,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?Iie(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(xO);OO.prototype.type=`rect`;var kO={fill:`#000`},AO=2,jO={},zie={style:zS({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},kD.style)},MO=function(e){UC(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=kO,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,T=0;T=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(s-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&HO(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=BO(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(SO),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=zO(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=RO(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=AO,_=!0,m.stroke):null),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=cC(s.opacity,t.opacity,1),FO(p,s),y&&(p.lineWidth=cC(s.lineWidth,t.lineWidth,g),p.lineDash=sC(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(sT(p,e.contentWidth,e.contentHeight,_?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(OO),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=sC(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(CO),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=sC(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=cC(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return IO(e)&&(t=[e.fontStyle,e.fontWeight,PO(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&fC(t)||e.textFont||e.font},t}(jD),Bie={left:!0,right:1,center:1},Vie={top:1,bottom:1,middle:1},NO=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function PO(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function FO(e,t){for(var n=0;n0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}var tk=Kie;function Kie(e,t,n){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`}return nk(e,t,n)}function nk(e,t,n){return ZS(e)?rk(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function qie(e){return ZS(e)&&rk(e)}function rk(e){return!!Uie(e).match(/%$/)}function ik(e,t,n){return isNaN(t)?n?``+e:+e:(t=GO(KO(0,t),WO),e=(+e).toFixed(t),n?e:+e)}function ak(e){return e.sort(function(e,t){return e-t}),e}function ok(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(JO(e*t)/t===e)return n}return Jie(e)}function Jie(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`);return KO(0,(a<0?0:i-1-a)-r)}function sk(e,t,n){var r=qO(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=QO(2*qO(n||1)*qO(r))/$O,a=QO(qO(t))/$O,o=KO(0,XO(-i+a));return isFinite(o)||(o=NaN),o}function ck(e,t){var n=KO(ok(e),ok(t)),r=e+t;return n>WO?r:ik(r,n)}var lk=ZO(2,53)-1;function uk(e){var t=Wie*2;return(e%t+t)%t}function dk(e){return e>-UO&&e=10&&t++,t}function hk(e,t){var n=mk(e),r=ZO(10,n),i=e/r;return e=(t===2?1:t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,ik(e,-n)}function gk(e){e.sort(function(e,t){return s(e,t,0)?-1:1});for(var t=-1/0,n=1,r=0;r0?e.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx=this._end)&&(this.item=this._list[this._idx],this.key=this._idx+=this._step,!0)},e})();function Wk(){return[1/0,-1/0]}function Gk(e,t){Jk(t)&&(te[1]&&(e[1]=t))}function Kk(e,t){Jk(t)&&te[1]&&(e[1]=t)}function vae(e,t){Yk(t[0],t[1])&&(t[0]e[1]&&(e[1]=t[1]))}function Jk(e){return e!=null&&isFinite(e)}function Yk(e,t){return Jk(e)&&Jk(t)&&e<=t}function yae(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function Xk(e){Yk(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function Zk(){var e=`__ec_once_`+bae++;return function(t,n){Z(t,e)||(t[e]=1,n())}}var bae=vk();function Qk(e,t,n){var r=_C(),i=0;Y(e,function(a){var o=t(a),s=r.get(o)||0;n&&n(a,s),!s&&!n&&(e[i++]=a),r.set(o,s+1)}),n||(e.length=i)}function xae(e){return e.value+``}function Sae(e){return e+``}function $k(e,t){return sC(t,!0)?e.seriesIndex+2:0}function eA(e,t,n){var r=e.getData().count();return{progressiveRender:n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,large:e.get(`large`)&&r>=e.get(`largeThreshold`),modDataCount:e.get(`progressiveChunkMode`)===`mod`?e.getData().count():null}}function tA(e,t){return{seriesType:e,overallReset:t}}function nA(e){return{overallReset:e}}var rA=Lk(),Cae=function(e,t,n,r){if(r){var i=rA(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=rA(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},iA=`series`,aA=_C([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),oA=`original`,sA=`arrayRows`,cA=`objectRows`,lA=`keyedColumns`,uA=`typedArray`,wae=`unknown`,dA=`column`,fA=`Roam`,Tae=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],pA=function(){function e(e){Y(Tae,function(t){this[t]=JS(e[t],e)},this)}return e}();function mA(e,t){return t.mainType===`series`?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var hA=1,gA={},_A=Lk(),vA=Lk(),yA=[`emphasis`,`blur`,`select`],bA=[`normal`,`emphasis`,`blur`,`select`],xA=`highlight`,SA=`downplay`,CA=`select`,wA=`unselect`,TA=`toggleSelect`,EA=`selectchanged`;function DA(e){return e!=null&&e!==`none`}function OA(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function kA(e){OA(e,`emphasis`,2)}function AA(e){e.hoverState===2&&OA(e,`normal`,0)}function jA(e){OA(e,`blur`,1)}function MA(e){e.hoverState===1&&OA(e,`normal`,0)}function Eae(e){e.selected=!0}function Dae(e){e.selected=!1}function NA(e,t,n){t(e,n)}function PA(e,t,n){NA(e,t,n),e.isGroup&&e.traverse(function(e){NA(e,t,n)})}function FA(e,t){switch(t){case`emphasis`:e.hoverState=2;break;case`normal`:e.hoverState=0;break;case`blur`:e.hoverState=1;break;case`select`:e.selected=!0}}function Oae(e,t,n,r){for(var i=e.style,a={},o=0;o=0,a=!1;if(e instanceof xO){var o=_A(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(DA(s)||DA(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=J({},r),l=J({},l),l.fill=s):!DA(l.fill)&&DA(s)?(a=!0,r=J({},r),l=J({},l),l.fill=fE(s)):!DA(l.stroke)&&DA(c)&&(a||(r=J({},r),l=J({},l)),l.stroke=fE(c)),r.style=l}}if(r&&r.z2==null){a||(r=J({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function Aae(e,t,n){if(n&&n.z2==null){n=J({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function jae(e,t,n){var r=BS(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:Oae(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=J({},n),o=J({opacity:r?i:a.opacity*.1},o),n.style=o),n}function IA(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return kae(this,e,t,n);if(e===`blur`)return jae(this,e,n);if(e===`select`)return Aae(this,e,n)}return n}function LA(e){e.stateProxy=IA;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=IA),n&&(n.stateProxy=IA)}function RA(e,t){!KA(e,t)&&!e.__highByOuter&&PA(e,kA)}function zA(e,t){!KA(e,t)&&!e.__highByOuter&&PA(e,AA)}function BA(e,t){e.__highByOuter|=1<<(t||0),PA(e,kA)}function VA(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&PA(e,AA)}function HA(e){PA(e,jA)}function UA(e){PA(e,MA)}function WA(e){PA(e,Eae)}function GA(e){PA(e,Dae)}function KA(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function qA(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=vA(i),o=mA(e,i),s=t===`series`;!s&&r.push(o),a.isBlured&&(o.group.traverse(function(e){MA(e)}),s&&n.push(i)),a.isBlured=!1}),Y(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function JA(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function QA(e,t,n){nj(e,!0),PA(e,LA),Rae(e,t,n)}function Lae(e){nj(e,!1)}function $A(e,t,n,r){r?Lae(e):QA(e,t,n)}function Rae(e,t,n){var r=rA(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var ej=[`emphasis`,`blur`,`select`],zae={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function tj(e,t,n,r){n||=`itemStyle`;for(var i=0;i1&&(o*=cj(m),s*=cj(m));var h=(i===a?-1:1)*cj((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+uj(d)*g-lj(d)*_,y=(t+r)/2+lj(d)*g+uj(d)*_,b=mj([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=mj(x,S);if(pj(x,S)<=-1&&(C=dj),pj(x,S)>=1&&(C=0),C<0){var w=Math.round(C/dj*1e6)/1e6;C=dj*2+w%2*dj}u.addData(l,v,y,o,s,b,C,d,a)}var Gae=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Kae=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function qae(e){var t=new cO;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=cO.CMD,c=e.match(Gae);if(!c)return t;for(var l=0;l=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=BS(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=BS(n,e);return r<0||(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;nA*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function toe(e){var t;if(X(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function noe(e,t){var n,r=kj(t.r,0),i=kj(t.r0||0,0),a=r>0;if(a||i>0){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=Dj(c-s),p=f>Cj&&f%Cj;if(p>jj&&(f=p),!(r>jj))e.moveTo(l,u);else if(f>Cj-jj)e.moveTo(l+r*Tj(s),u+r*wj(s)),e.arc(l,u,r,s,c,!d),i>jj&&(e.moveTo(l+i*Tj(c),u+i*wj(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*Tj(s),j=r*wj(s),M=i*Tj(c),N=i*wj(c),P=f>jj;if(P){var F=t.cornerRadius;F&&(n=toe(F),m=n[0],h=n[1],g=n[2],_=n[3]);var ee=Dj(r-i)/2;if(v=Aj(ee,g),y=Aj(ee,_),b=Aj(ee,m),x=Aj(ee,h),w=S=kj(v,y),T=C=kj(b,x),(S>jj||C>jj)&&(E=r*Tj(c),D=r*wj(c),O=i*Tj(s),k=i*wj(s),fjj){var oe=Aj(g,w),se=Aj(_,w),R=Mj(O,k,A,j,r,oe,d),ce=Mj(E,D,M,N,r,se,d);e.moveTo(l+R.cx+R.x0,u+R.cy+R.y0),w0&&e.arc(l+R.cx,u+R.cy,oe,Ej(R.y0,R.x0),Ej(R.y1,R.x1),!d),e.arc(l,u,r,Ej(R.cy+R.y1,R.cx+R.x1),Ej(ce.cy+ce.y1,ce.cx+ce.x1),!d),se>0&&e.arc(l+ce.cx,u+ce.cy,se,Ej(ce.y1,ce.x1),Ej(ce.y0,ce.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>jj)||!P)e.lineTo(l+M,u+N);else if(T>jj){var oe=Aj(m,T),se=Aj(h,T),R=Mj(M,N,E,D,i,-se,d),ce=Mj(A,j,O,k,i,-oe,d);e.lineTo(l+R.cx+R.x0,u+R.cy+R.y0),T0&&e.arc(l+R.cx,u+R.cy,se,Ej(R.y0,R.x0),Ej(R.y1,R.x1),!d),e.arc(l,u,i,Ej(R.cy+R.y1,R.cx+R.x1),Ej(ce.cy+ce.y1,ce.cx+ce.x1),d),oe>0&&e.arc(l+ce.cx,u+ce.cy,oe,Ej(ce.y1,ce.x1),Ej(ce.y0,ce.x0),!d))}else e.lineTo(l+M,u+N),e.arc(l,u,i,c,s,d)}e.closePath()}}}var roe=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),Nj=function(e){UC(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new roe},t.prototype.buildPath=function(e,t){noe(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(xO);Nj.prototype.type=`sector`;var ioe=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Pj=function(e){UC(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new ioe},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(xO);Pj.prototype.type=`ring`;function aoe(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f=2){if(r){var a=aoe(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;sYj[1]){if(i=!1,Xj.negativeSize||n)return i;var s=qj(Yj[0]-Jj[1]),c=qj(Jj[0]-Yj[1]);Kj(s,c)>Qj.len()&&(s=c||!Xj.bidirectional)&&(_w.scale(Zj,o,-c*r),Xj.useDir&&Xj.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function nM(e,t,n,r,i,a){tM(`update`,e,t,n,r,i,a)}function rM(e,t,n,r,i,a){tM(`enter`,e,t,n,r,i,a)}function iM(e){if(!e.__zr)return!0;for(var t=0;tHj,BezierCurve:()=>Vj,BoundingRect:()=>Aw,Circle:()=>bj,CompoundPath:()=>Uj,Ellipse:()=>xj,Group:()=>yj,HOVER_LAYER_FOR_INCREMENTAL:()=>2,HOVER_LAYER_FROM_THRESHOLD:()=>1,HOVER_LAYER_NO:()=>0,Image:()=>CO,IncrementalDisplayable:()=>hoe,Line:()=>Rj,LinearGradient:()=>Gj,OrientedBoundingRect:()=>$j,Path:()=>xO,Point:()=>_w,Polygon:()=>Ij,Polyline:()=>Lj,RadialGradient:()=>foe,Rect:()=>OO,Ring:()=>Pj,Sector:()=>Nj,Text:()=>MO,WH:()=>dM,XY:()=>uM,applyTransform:()=>SM,calcZ2Range:()=>VM,clipPointsByRect:()=>Coe,clipRectByRect:()=>EM,createIcon:()=>DM,decomposeTransform:()=>GM,ensureCopyRect:()=>RM,ensureCopyTransform:()=>zM,expandOrShrinkRect:()=>AM,extendPath:()=>yoe,extendShape:()=>voe,getCurrentCanvasPainter:()=>qM,getShapeClass:()=>mM,getTransform:()=>xM,groupTransition:()=>TM,initProps:()=>rM,isBoundingRectAxisAligned:()=>IM,isElementRemoved:()=>iM,lineLineIntersect:()=>OM,linePolygonIntersect:()=>woe,makeImage:()=>gM,makePath:()=>hM,mergePath:()=>boe,payloadDisableAnimation:()=>WM,registerShape:()=>pM,removeElement:()=>aM,removeElementWithFadeOut:()=>sM,resizePath:()=>vM,retrieveZInfo:()=>BM,setTooltipConfig:()=>NM,subPixelOptimize:()=>bM,subPixelOptimizeLine:()=>yM,subPixelOptimizeRect:()=>xoe,transformDirection:()=>CM,traverseElements:()=>FM,traverseUpdateZ:()=>HM,updateProps:()=>nM}),lM={},uM=[`x`,`y`],dM=[`width`,`height`];function voe(e){return xO.extend(e)}var fM=Yae;function yoe(e,t){return fM(e,t)}function pM(e,t){lM[e]=t}function mM(e){if(lM.hasOwnProperty(e))return lM[e]}function hM(e,t,n,r){var i=Jae(e,t);return n&&(r===`center`&&(n=_M(n,i.getBoundingRect())),vM(i,n)),i}function gM(e,t,n){var r=new CO({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(_M(t,i))}}});return r}function _M(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var boe=Xae;function vM(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function yM(e,t){return TO(e,e,{lineWidth:t}),e}function xoe(e,t){return EO(e,e,t),e}var bM=DO;function xM(e,t){for(var n=$C([]);e&&e!==t;)tw(n,e.getLocalTransform(),n),e=e.parent;return n}function SM(e,t,n){return t&&!HS(t)&&(t=gT.getLocalTransform(t)),n&&(t=iw([],t)),mw([],e,t)}function CM(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:qO(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:qO(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=SM(a,t,n),qO(a[0])>qO(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function wM(e){return!e.isGroup}function Soe(e){return e.shape!=null}function TM(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){wM(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Soe(e)&&(t.shape=LS(e.shape)),t}var a=r(e);t.traverse(function(e){if(wM(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),nM(e,r,n,rA(e).dataIndex)}}})}function Coe(e,t){return US(e,function(e){var n=e[0];n=KO(n,t.x),n=GO(n,t.x+t.width);var r=e[1];return r=KO(r,t.y),r=GO(r,t.y+t.height),[n,r]})}function EM(e,t){var n=KO(e.x,t.x),r=GO(e.x+e.width,t.x+t.width),i=KO(e.y,t.y),a=GO(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function DM(e,t,n){var r=J({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),zS(i,n),new CO(r)):hM(e.replace(`path://`,``),r,n,`center`)}function woe(e,t,n,r,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=kM(p,m,u,d)/f;return!(g<0||g>1)}function kM(e,t,n,r){return e*r-n*t}function Toe(e){return e<=1e-6&&e>=-1e-6}function AM(e,t,n,r,i){return t==null||($S(t)?jM[0]=jM[1]=jM[2]=jM[3]=t:(jM[0]=t[0],jM[1]=t[1],jM[2]=t[2],jM[3]=t[3]),r&&(jM[0]=KO(0,jM[0]),jM[1]=KO(0,jM[1]),jM[2]=KO(0,jM[2]),jM[3]=KO(0,jM[3])),n&&(jM[0]=-jM[0],jM[1]=-jM[1],jM[2]=-jM[2],jM[3]=-jM[3]),MM(e,jM,`x`,`width`,3,1,i&&i[0]||0),MM(e,jM,`y`,`height`,0,2,i&&i[1]||0)),e}var jM=[0,0,0,0];function MM(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=KO(0,GO(o,c)),e[r]=0?-t[i]:t[a]>=0?c+t[a]:qO(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function NM(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=ZS(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&Y(qS(c),function(e){Z(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=rA(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:zS({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function PM(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function FM(e,t){if(e){if(X(e))for(var n=0;nt&&(t=r),rt&&(n=t=0),{min:n,max:t}}function HM(e,t,n){UM(e,t,n,-1/0)}function UM(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f1)for(var o=0;ol&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};FN=(e={},e[sA+`_`+dA]={pure:!0,appendData:i},e[sA+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[cA]={pure:!0,appendData:i},e[lA]={pure:!0,appendData:function(e){var t=this._data;Y(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[oA]={appendData:i},e[uA]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;tt},gte:function(e,t){return e>=t}};(function(){function e(e,t){$S(t)||wk(``),this._opFn=Koe[e],this._rvalFloat=_k(t)}return e.prototype.evaluate=function(e){return $S(e)?this._opFn(e,this._rvalFloat):this._opFn(_k(e),this._rvalFloat)},e})();var qoe=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=$S(e)?e:_k(e),r=$S(t)?t:_k(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=ZS(e),s=ZS(t);o&&(n=s?e:0),s&&(r=o?t:0)}return nr?-this._resultLT:0},e}();(function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=_k(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=_k(e)===this._rvalFloat)}return this._isEQ?t:!t},e})();function XN(e){var t=``,n=-1/0,r=-1/0,i=1/0,a=1/0;return e&&(e.g!=null&&(t+=`G`+e.g,n=e.g),e.ge!=null&&(t+=`GE`+e.ge,r=e.ge),e.l!=null&&(t+=`L`+e.l,i=e.l),e.le!=null&&(t+=`LE`+e.le,a=e.le)),{key:t,g:n,ge:r,l:i,le:a}}function ZN(e,t){return t>e.g&&t>=e.ge&&t`u`?Array:Uint32Array,Yoe=typeof Uint16Array>`u`?Array:Uint16Array,QN=typeof Int32Array>`u`?Array:Int32Array,$N=typeof Float64Array>`u`?Array:Float64Array,eP={float:$N,int:QN,ordinal:Array,number:Array,time:$N},tP;function nP(e){return e>65535?Joe:Yoe}function Xoe(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function rP(e,t,n,r,i){var a=eP[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;lh[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=US(a,function(e){return e.property}),l=0;lg[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&ne)i=a-1;else return a}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f){if(i===1)for(var h=0;h=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;he[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}}return sg[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(nP(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;fc&&(c=l,u=v))}T>0&&To&&(m=o-l);for(var h=0;hp&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);ul-p&&(s=l-p,o.length=s);for(var m=0;mu[1]&&(u[1]=g),d[f++]=_}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();id&&(d=p))}return o[c]=[u,d]},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return YN(e[r],this._dimensions[r])}tP={arrayRows:e,objectRows:function(e,t,n,r){return YN(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return YN(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),Zoe=Lk(),Qoe={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},aP=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||=cP(this.source))},e.prototype.getSourceDimensionIndex=function(e){return sC(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=AN(this.source),n=!lP(e),r=``,i=[],a=0,o=0;a30}var uP=eC,dP=US,$oe=typeof Int32Array>`u`?Array:Int32Array,ese=`e\0\0`,fP=-1,tse=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],nse=[`_approximateExtent`],pP,mP,hP,gP,_P,vP,yP,bP=function(){function e(e,t){this.type=`list`,this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=[`cloneShallow`,`downSample`,`minmaxDownSample`,`lttbDownSample`,`map`],this.CHANGABLE_METHODS=[`filterSelf`,`selectRange`],this.DOWNSAMPLE_METHODS=[`downSample`,`minmaxDownSample`,`lttbDownSample`];var n,r=!1;oP(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),X(i)?i=i.slice():uP(i)&&(i=J({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,uP(t)?J(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){uP(e)?J(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?J(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){Cae(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){Y(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:dP(this.dimensions,this._getDimInfo,this),this.hostModel),_P(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];XS(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(lC(arguments)))})},e.internalField=function(){pP=function(e){var t=e._invertedIndicesMap;Y(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new $oe(a.categories.length);for(var s=0;s1&&(s+=`__ec__`+l),r[t]=s}}}(),e}();function xP(e,t){xN(e)||(e=CN(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=_C(),a=[],o=rse(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&lP(o),c=r===e.dimensionsDefine,l=c?cP(e):sP(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=_C(u),f=new QN(o),p=0;p0&&(e.name+=t-1)}),new aP({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function rse(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return Y(t,function(e){var t;eC(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function ise(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var SP={},CP={},wP=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(SP,!0),this._normalMasterList=n(CP,!1);function n(n,r){var i=[];return Y(n,function(n,r){var a=n.create(e,t);i=i.concat(a||[])}),i}},e.prototype.update=function(e,t){Y(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){e===`matrix`||e===`calendar`?SP[e]=t:CP[e]=t},e.get=function(e){return CP[e]||SP[e]},e}();function ase(e){return!!SP[e]}var ose=_C();function TP(e){var t=e.getShallow(`coord`,!0),n=1;if(t==null){var r=ose.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}function sse(e,t){var n=e.getShallow(`coordinateSystem`),r=e.getShallow(`coordinateSystemUsage`,!0),i=0;if(n){var a=e.mainType===`series`;r??=a?`data`:`box`,r===`data`?(i=1,a||(i=0)):r===`box`&&(i=2,!a&&!ase(n)&&(i=0))}return{coordSysType:n,kind:i}}function cse(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys;e.allowNotFound;var a=sse(t,!0),o=a.kind,s=a.coordSysType;if(i&&o!==1&&(o=1,s=n),o===0||s!==n)return 0;var c=r(n,t);return c?(o===1?t.coordinateSystem=c:t.boxCoordinateSystem=c,o):0}var lse=function(){function e(e){this.coordSysDims=[],this.axisMap=_C(),this.categoryAxisMap=_C(),this.coordSysName=e}return e}();function use(e){var t=e.get(`coordinateSystem`),n=new lse(t),r=dse[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var dse={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,Bk).models[0],a=e.getReferringComponents(`yAxis`,Bk).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),EP(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),EP(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,Bk).models[0];t.coordSysDims=[`single`],n.set(`single`,i),EP(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,Bk).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),EP(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),EP(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();Y(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),EP(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,Bk).models[0];t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}};function EP(e){return e.get(`type`)===`category`}function fse(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;pse(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f,p=!0;function m(e){return e.type!==`ordinal`&&e.type!==`time`}if(Y(a,function(e,t){ZS(e)&&(a[t]=e={name:e}),m(e)||(p=!1)}),Y(a,function(e,t){c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),u||!m(e)||p&&(e.coordDim===`x`||e.coordDim===`angle`)||i&&i!==e.coordDim||(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,g=u.type,_=0;Y(a,function(e){e.coordDim===h&&_++});var v={name:d,coordDim:h,coordDimIndex:_,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:f,coordDim:f,coordDimIndex:_+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(v.storeDimIndex=s.ensureCalculationDimension(f,g),y.storeDimIndex=s.ensureCalculationDimension(d,g)),o.appendCalculationDimension(v),o.appendCalculationDimension(y)):(a.push(v),a.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function pse(e){return!oP(e.schema)}function DP(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function OP(e,t){return DP(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function mse(e,t){var n=e.get(`coordinateSystem`),r=wP.get(n),i;return t&&t.coordSysDims&&(i=US(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=Woe(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function hse(e,t,n){var r,i;return n&&Y(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function kP(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=CN(e)):(i=r.getSource(),a=i.sourceFormat===oA);var o=use(t),s=mse(t,o),c=n.useEncodeDefaulter,l=XS(c)?c:c?YS(Loe,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=xP(i,u),f=hse(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=fse(t,{schema:d,store:p}),h=new bP(d,t);h.setCalculationInfo(m);var g=f!=null&&gse(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function gse(e){if(e.sourceFormat===`original`)return!X(Ak(_se(e.data||[])))}function _se(e){for(var t=0;t=0&&n.push(e)}),n}}function MP(e,t){return RS(RS({},e,!0),t,!0)}var NP=Math.log(2);function PP(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){Y(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function HP(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?FP(s,o):FP(o,s))}function UP(e){return e.nodeName.toUpperCase()===`CANVAS`}var WP=/([&<>"'])/g,GP={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function KP(e){return e==null?``:(e+``).replace(WP,function(e,t){return GP[t]})}var qP={time:{month:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthAbbr:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],dayOfWeek:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],dayOfWeekAbbr:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`]},legend:{selector:{all:`All`,inverse:`Inv`}},toolbox:{brush:{title:{rect:`Box Select`,polygon:`Lasso Select`,lineX:`Horizontally Select`,lineY:`Vertically Select`,keep:`Keep Selections`,clear:`Clear Selections`}},dataView:{title:`Data View`,lang:[`Data View`,`Close`,`Refresh`]},dataZoom:{title:{zoom:`Zoom`,back:`Zoom Reset`}},magicType:{title:{line:`Switch to Line Chart`,bar:`Switch to Bar Chart`,stack:`Stack`,tiled:`Tile`}},restore:{title:`Restore`},saveAsImage:{title:`Save as Image`,lang:[`Right Click to Save Image`]}},series:{typeNames:{pie:`Pie chart`,bar:`Bar chart`,line:`Line chart`,scatter:`Scatter plot`,effectScatter:`Ripple scatter plot`,radar:`Radar chart`,tree:`Tree`,treemap:`Treemap`,boxplot:`Boxplot`,candlestick:`Candlestick`,k:`K line chart`,heatmap:`Heat map`,map:`Map`,parallel:`Parallel coordinate map`,lines:`Line graph`,graph:`Relationship graph`,sankey:`Sankey diagram`,funnel:`Funnel chart`,gauge:`Gauge`,pictorialBar:`Pictorial bar`,themeRiver:`Theme River Map`,sunburst:`Sunburst`,custom:`Custom chart`,chart:`Chart`}},aria:{general:{withTitle:`This is a chart about "{title}"`,withoutTitle:`This is a chart`},series:{single:{prefix:``,withName:` with type {seriesType} named {seriesName}.`,withoutName:` with type {seriesType}.`},multiple:{prefix:`. It consists of {seriesCount} series count.`,withName:` The {seriesId} series is a {seriesType} representing {seriesName}.`,withoutName:` The {seriesId} series is a {seriesType}.`,separator:{middle:``,end:``}}},data:{allData:`The data is as follows: `,partialData:`The first {displayCnt} items are: `,withName:`the data for {name} is {value}`,withoutName:`{value}`,separator:{middle:`, `,end:`. `}}}},JP={time:{month:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`],monthAbbr:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],dayOfWeek:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`],dayOfWeekAbbr:[`日`,`一`,`二`,`三`,`四`,`五`,`六`]},legend:{selector:{all:`全选`,inverse:`反选`}},toolbox:{brush:{title:{rect:`矩形选择`,polygon:`圈选`,lineX:`横向选择`,lineY:`纵向选择`,keep:`保持选择`,clear:`清除选择`}},dataView:{title:`数据视图`,lang:[`数据视图`,`关闭`,`刷新`]},dataZoom:{title:{zoom:`区域缩放`,back:`区域缩放还原`}},magicType:{title:{line:`切换为折线图`,bar:`切换为柱状图`,stack:`切换为堆叠`,tiled:`切换为平铺`}},restore:{title:`还原`},saveAsImage:{title:`保存为图片`,lang:[`右键另存为图片`]}},series:{typeNames:{pie:`饼图`,bar:`柱状图`,line:`折线图`,scatter:`散点图`,effectScatter:`涟漪散点图`,radar:`雷达图`,tree:`树图`,treemap:`矩形树图`,boxplot:`箱型图`,candlestick:`K线图`,k:`K线图`,heatmap:`热力图`,map:`地图`,parallel:`平行坐标图`,lines:`线图`,graph:`关系图`,sankey:`桑基图`,funnel:`漏斗图`,gauge:`仪表盘图`,pictorialBar:`象形柱图`,themeRiver:`主题河流图`,sunburst:`旭日图`,custom:`自定义图表`,chart:`图表`}},aria:{general:{withTitle:`这是一个关于“{title}”的图表。`,withoutTitle:`这是一个图表,`},series:{single:{prefix:``,withName:`图表类型是{seriesType},表示{seriesName}。`,withoutName:`图表类型是{seriesType}。`},multiple:{prefix:`它由{seriesCount}个图表系列组成。`,withName:`第{seriesId}个系列是一个表示{seriesName}的{seriesType},`,withoutName:`第{seriesId}个系列是一个{seriesType},`,separator:{middle:`;`,end:`。`}}},data:{allData:`其数据是——`,partialData:`其中,前{displayCnt}项是——`,withName:`{name}的数据是{value}`,withoutName:`{value}`,separator:{middle:`,`,end:``}}}},YP=`ZH`,XP=`EN`,ZP=XP,QP={},$P={},eF=CC.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||ZP).toUpperCase().indexOf(YP)>-1?YP:ZP}():ZP;function tF(e,t){e=e.toUpperCase(),$P[e]=new dN(t),QP[e]=t}function nF(e){if(ZS(e)){var t=QP[e.toUpperCase()]||{};return e===YP||e===XP?LS(t):RS(LS(t),LS(QP[ZP]),!1)}return RS(LS(e),LS(QP[ZP]),!1)}function rF(e){return $P[e]}function iF(){return $P[ZP]}tF(XP,qP),tF(YP,JP);var aF=null;function oF(){return aF}function sF(e,t){var n=oF(),r=t.breakOption,i=t.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,e)),i}function cF(e){var t=e.brk;return t?t.breaks:[]}function lF(e){var t=e.brk;return t?t.hasBreaks():!1}var uF=1e3,dF=uF*60,fF=dF*60,pF=fF*24,mF=pF*365,hF={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},gF={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},_F=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,vF=`{yyyy}-{MM}-{dd}`,yF={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:vF,hour:vF+` `+gF.hour,minute:vF+` `+gF.minute,second:vF+` `+gF.second,millisecond:_F},bF=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],xF=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function SF(e){return!ZS(e)&&!XS(e)?CF(e):e}function CF(e){e||={};var t={},n=!0;return Y(bF,function(t){n&&=e[t]==null}),Y(bF,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=bF[s],l=eC(a)&&!X(a)?a[c]:a,u=void 0;X(l)?(u=l.slice(),o=u[0]||``):ZS(l)?(o=l,u=[o]):(o==null?o=gF[r]:hF[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function wF(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function TF(e){switch(e){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return e}}function EF(e){return e===TF(e)}function bse(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function DF(e,t,n,r){var i=fk(e),a=i[AF(n)](),o=i[jF(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[MF(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[NF(n)](),d=(u-1)%12+1,f=i[PF(n)](),p=i[FF(n)](),m=i[IF(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof dN?r:rF(r||eF)||iF()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,wF(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,wF(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,wF(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,wF(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,wF(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,wF(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,wF(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,wF(m,3)).replace(/{S}/g,m+``)}function xse(e,t,n,r,i){var a=null;if(ZS(n))a=n;else if(XS(n)){var o={time:e.time,level:e.time?e.time.level:0},s=oF();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=n(e.value,t,o)}else{var c=e.time;if(c){var l=n[c.lowerTimeUnit][c.upperTimeUnit];a=l[Math.min(c.level,l.length-1)]||``}else{var u=OF(e.value,i);a=n[u][u][0]}}return DF(new Date(e.value),a,i,r)}function OF(e,t){var n=fk(e),r=n[jF(t)]()+1,i=n[MF(t)](),a=n[NF(t)](),o=n[PF(t)](),s=n[FF(t)](),c=n[IF(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function kF(e,t,n){switch(t){case`year`:e[LF(n)](0);case`month`:e[RF(n)](1);case`day`:e[zF(n)](0);case`hour`:e[BF(n)](0);case`minute`:e[VF(n)](0);case`second`:e[HF(n)](0)}return e}function AF(e){return e?`getUTCFullYear`:`getFullYear`}function jF(e){return e?`getUTCMonth`:`getMonth`}function MF(e){return e?`getUTCDate`:`getDate`}function NF(e){return e?`getUTCHours`:`getHours`}function PF(e){return e?`getUTCMinutes`:`getMinutes`}function FF(e){return e?`getUTCSeconds`:`getSeconds`}function IF(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function Sse(e){return e?`setUTCFullYear`:`setFullYear`}function LF(e){return e?`setUTCMonth`:`setMonth`}function RF(e){return e?`setUTCDate`:`setDate`}function zF(e){return e?`setUTCHours`:`setHours`}function BF(e){return e?`setUTCMinutes`:`setMinutes`}function VF(e){return e?`setUTCSeconds`:`setSeconds`}function HF(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function UF(e){if(!Xie(e))return ZS(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function WF(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var GF=uC;function KF(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&fC(e)?e:`-`}function a(e){return xk(e)}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?fk(e):e;if(!isNaN(+c))return DF(c,r,n);if(s)return`-`}if(t===`ordinal`)return QS(e)?i(e):$S(e)&&a(e)?e+``:`-`;var l=_k(e);return a(l)?UF(l):QS(e)?i(e):typeof e==`boolean`?e+``:`-`}var qF=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],JF=function(e,t){return`{`+e+(t??``)+`}`};function YF(e,t,n){X(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a`:``:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function XF(e,t){return t||=`transparent`,ZS(e)?e:eC(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var ZF=Y,wse=[`left`,`right`,`top`,`bottom`,`width`,`height`],QF=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function $F(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}var eI=$F;YS($F,`vertical`),YS($F,`horizontal`);function Tse(e,t){return{left:e.getShallow(`left`,t),top:e.getShallow(`top`,t),right:e.getShallow(`right`,t),bottom:e.getShallow(`bottom`,t),width:e.getShallow(`width`,t),height:e.getShallow(`height`,t)}}function tI(e,t,n){n=GF(n||0);var r=t.width,i=t.height,a=tk(e.left,r),o=tk(e.top,i),s=tk(e.right,r),c=tk(e.bottom,i),l=tk(e.width,r),u=tk(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new Aw((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}var nI={rect:1,point:2};function rI(e,t,n){var r,i,a,o=e.boxCoordinateSystem,s;if(o){var c=TP(e),l=c.coord,u=c.from;if(o.dataToLayout){a=nI.rect,s=u;var d=o.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=nI.point,s=u,i=o.dataToPoint(l))}return a??=nI.rect,a===nI.rect&&(r||={x:0,y:0,width:t.getWidth(),height:t.getHeight()},i=[r.x+r.width/2,r.y+r.height/2]),{type:a,refContainer:r,refPoint:i,boxCoordFrom:s}}function Ese(e,t,n,r,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],c=i&&i.boundingMode||`all`;if(a||=e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var l;if(c===`raw`)l=e.type===`group`?new Aw(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();l=l.clone(),l.applyTransform(u)}var d=tI(zS({width:l.width,height:l.height},t),n,r),f=o?d.x-l.x:0,p=s?d.y-l.y:0;return c===`raw`?(a.x=f,a.y=p):(a.x+=f,a.y+=p),a===e&&e.markRedraw(),!0}function iI(e){var t=e.layoutMode||e.constructor.layoutMode;return eC(t)?t:t?{type:t}:null}function aI(e,t,n){var r=n&&n.ignoreSize;!X(r)&&(r=[r,r]);var i=o(QF[0],0),a=o(QF[1],1);c(QF[0],e,i),c(QF[1],e,a);function o(n,i){var a={},o=0,c={},l=0,u=2;if(ZF(n,function(t){c[t]=e[t]}),ZF(n,function(e){Z(t,e)&&(a[e]=c[e]=t[e]),s(a,e)&&o++,s(c,e)&&l++}),r[i])return s(t,n[1])?c[n[2]]=null:s(t,n[2])&&(c[n[1]]=null),c;if(l===u||!o)return c;if(o>=u)return a;for(var d=0;d=0;o--)a=RS(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return Vk(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return Tse(this,!1)},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),t}(dN);NC(sI,dN),RC(sI),yse(sI),jP(sI,kse);function kse(e){var t=[];return Y(sI.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=US(t,function(e){return OC(e).main}),e!==`dataset`&&BS(t,`dataset`)<=0&&t.unshift(`dataset`),t}var cI=Lk(),Ase=Lk(),lI=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=Dk(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return dI(this,cI,r,i,e,t,n)},e.prototype.clearColorPalette=function(){Mse(this,cI)},e}();function uI(e,t,n,r){return dI(e,Ase,Dk(e.get([`aria`,`decal`,`decals`])),null,t,n,r)}function jse(e,t){for(var n=e.length,r=0;rt)return e[r];return e[n-1]}function dI(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:jse(r,o);if(u||=n,u&&u.length){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function Mse(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Nse=/\{@(.+?)\}/g,fI=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t||=`normal`;var o=this.getData(n),s=this.getDataParams(e,n);if(a&&(s.value=a.interpolatedValue),r!=null&&X(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),XS(i))return s.status=t,s.dimensionIndex=r,i(s);if(ZS(i))return YF(i,s).replace(Nse,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=KN(o,e,i);if(a&&X(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return KN(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function pI(e){var t,n;return eC(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function mI(e){return new Pse(e)}var Pse=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(this._dueEnd=t?t._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f1&&r>0?s:o}};return a;function o(){return t=e?null:a9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+`_`+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(vI(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=nC(o)?uA:oA,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=sC(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=sC(u.sourceHeader,d.sourceHeader),m=sC(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[SN(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[SN(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&yI(``);var i,a=[],o=[];return Y(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&yI(``),a.push(t),o.push(e._getVersionSign())}),n?i=Hse(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[wN(a[0])]),{sourceList:i,upstreamSignList:o}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||n>0&&!e.noHeader;return Y(e.blocks,function(e){var n=kI(e);n>=t&&(t=n+ +(r&&(!n||DI(e)&&!e.noHeader)))}),t}return 0}function qse(e,t,n,r){var i=t.noHeader,a=Yse(kI(t)),o=[],s=t.blocks||[];dC(!s||X(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(Z(l,c)){var u=new qoe(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}Y(s,function(n,i){var s=t.valueFormatter,c=OI(n)(s?J(J({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):jI(r,o.join(``),i?n:a.html);if(i)return d;var f=KF(t.header,`ordinal`,e.useUTC),p=wI(r,e.renderMode).nameStyle,m=CI(r);return e.renderMode===`richText`?MI(e,f,p)+a.richText+d:jI(r,`
`+KP(f)+`
`+d,n)}function Jse(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=X(e)?e:[e],US(e,function(e,t){return KF(e,X(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||Q.color.secondary,i),f=a?``:KF(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=wI(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:MI(e,f,v))+(o?``:Qse(e,m,h,g,y)):jI(r,(s?``:d)+(a?``:Xse(f,!s,v))+(o?``:Zse(m,h,g,y)),n)}}function AI(e,t,n,r,i,a){if(e)return OI(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function Yse(e){return{html:Kse[e],richText:TI[e]}}function jI(e,t,n){var r=`
`,i=`margin: `+n+`px 0 0`,a=CI(e);return`
`+t+r+`
`}function Xse(e,t,n){var r=t?`margin-left:2px`:``;return``+KP(e)+``}function Zse(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=X(e)?e:[e],``+US(e,function(e){return KP(e)}).join(`  `)+``}function MI(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Qse(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(X(t)?t.join(` `):t,a)}function $se(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return XF(n)}function NI(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var PI=function(){function e(){this.richTextStyles={},this._nextStyleNameId=vk()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=Cse({color:t,type:e,renderMode:n,markerId:r});return ZS(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};X(t)?Y(t,function(e){return J(n,e)}):J(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function ece(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=t.getRawValue(n),c=X(s),l=$se(t,n),u,d,f,p;if(o>1||c&&!o){var m=tce(s,t,n,a,l);u=m.inlineValues,d=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=u=KN(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=Pk(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return EI(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[EI(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!fC(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function tce(e,t,n,r,i){var a=t.getData(),o=WS(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||=r&&r.tooltip!==!1&&r.displayName!=null},!1),s=[],c=[],l=[];r.length?Y(r,function(e){u(KN(a,n,e),e)}):Y(e,u);function u(e,t){var n=a.getDimensionInfo(t);n&&n.otherDims.tooltip!==!1&&(o?l.push(EI(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return{inlineValues:s,inlineValueTypes:c,blocks:l}}var FI=Lk();function II(e,t){return e.getName(t)||e.getId(t)}var LI=function(e){vS(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=mI({count:rce,reset:ice}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(FI(this).sourceManager=new Wse(this)).prepareSource();var r=this.getInitialData(e,n);zI(r,this),this.dataTask.context.data=r,FI(this).dataBeforeProcessed=r,RI(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=iI(this),r=n?oI(e):{},i=this.subType;sI.hasClass(i)&&(i+=`Series`),RS(e,t.getTheme().get(this.subType)),RS(e,this.getDefaultOption()),Ok(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&aI(e,r,n)},t.prototype.mergeOption=function(e,t){e=RS(this.option,e,!0),this.fillDataTextStyle(e.data);var n=iI(this);n&&aI(this.option,e,n);var r=FI(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);zI(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,FI(this).dataBeforeProcessed=i,RI(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!nC(e))for(var t=[`show`],n=0;n=0&&u<0)&&(l=v,u=_,d=0),_===u&&(c[d++]=m))}return c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return ece({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(CC.node&&!(e&&e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=lI.prototype.getColorFromPalette.call(this,e,t,n);return i||=r.getColorFromPalette(e,t,n),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get(`progressive`)},t.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var a=0;a=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[II(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0||e&&e.enabled:!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(a&&o){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){eC(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c0&&this._innerSelect(e,t)}},t.registerClass=function(e){return sI.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type=`series.__base__`,e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol=`circle`,e.visualStyleAccessPath=`itemStyle`,e.visualDrawType=`fill`}(),t}(sI);VS(LI,fI),VS(LI,lI),NC(LI,sI);function RI(e){var t=e.name;Pk(e)||(e.name=nce(e)||t)}function nce(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return Y(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function rce(e){return e.model.getRawData().count()}function ice(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),ace}function ace(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function zI(e,t){Y(Lre(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,YS(oce,t))})}function oce(e,t){var n=BI(e);return n&&n.setOutputEnd((t||this).count()),t}function BI(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var sce=xO.extend({type:`triangle`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),cce={line:Rj,rect:OO,roundRect:OO,square:OO,circle:bj,diamond:xO.extend({type:`diamond`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),pin:xO.extend({type:`pin`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),c=r-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,d=Math.sin(l),f=Math.cos(l),p=o*.6,m=o*.7;e.moveTo(n-u,c+s),e.arc(n,c,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(n+u-d*p,c+s+f*p,n,r-m,n,r),e.bezierCurveTo(n,r-m,n-u+d*p,c+s+f*p,n-u,c+s),e.closePath()}}),arrow:xO.extend({type:`arrow`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),triangle:sce},lce={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},VI={};Y(cce,function(e,t){VI[t]=new e});var uce=xO.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Xw(e,t,n),i=this.shape;return i&&i.symbolType===`pin`&&t.position===`inside`&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!==`none`){var i=VI[r];i||=(r=`rect`,VI[r]),lce[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function dce(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||Q.color.neutral00,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function HI(e,t,n,r,i,a,o){var s=e.indexOf(`empty`)===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var c=e.indexOf(`image://`)===0?gM(e.slice(8),new Aw(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?hM(e.slice(7),{},new Aw(t,n,r,i),o?`center`:`cover`):new uce({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=dce,a&&c.setColor(a),c}function UI(e){return X(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function WI(e,t){if(e!=null)return X(e)||(e=[e,e]),[tk(e[0],t[0])||0,tk(sC(e[1],e[0]),t[1])||0]}var fce=function(e){vS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e){return kP(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new yj,n=HI(`line`,0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual(`symbol`),i=this.getData().getVisual(`symbolRotate`),a=r===`none`?`circle`:r,o=e.itemHeight*.8,s=HI(a,(e.itemWidth-o)/2,(e.itemHeight-o)/2,o,o,e.itemStyle.fill);return t.add(s),s.setStyle(e.itemStyle),s.rotation=(e.iconRotate===`inherit`?i:e.iconRotate||0)*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),a.indexOf(`empty`)>-1&&(s.style.stroke=s.style.fill,s.style.fill=Q.color.neutral00,s.style.lineWidth=2),t},t.type=`series.line`,t.dependencies=[`grid`,`polar`],t.defaultOption={z:3,coordinateSystem:`cartesian2d`,legendHoverLink:!0,clip:!0,label:{position:`top`},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:`solid`},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:`emptyCircle`,symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:`auto`,connectNulls:!1,sampling:`none`,animationEasing:`linear`,progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:`clone`},triggerLineEvent:!1,triggerEvent:!1},t}(LI);function GI(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=KN(e,t,n[0]);return i==null?null:i+``}if(r){for(var a=[],o=0;o=0&&r.push(t[a])}return r.join(` `)}var qI=function(e){vS(t,e);function t(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return t.prototype._createSymbol=function(e,t,n,r,i,a){this.removeAll();var o=HI(e,-1,-1,2,2,null,a);o.attr({z2:sC(i,100),culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=pce,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){BA(this.childAt(0))},t.prototype.downplay=function(){VA(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?`move`:n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var a=e.getItemVisual(n,`symbol`)||`circle`,o=e.hostModel,s=t.getSymbolSize(e,n),c=t.getSymbolZ2(e,n),l=a!==this._symbolType,u=i&&i.disableAnimation;if(l){var d=e.getItemVisual(n,`symbolKeepAspect`);this._createSymbol(a,e,n,s,c,d)}else{var f=this.childAt(0);f.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?f.attr(p):nM(f,p,o,n),cM(f)}if(this._updateCommon(e,n,s,r,i),l){var f=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,rM(f,p,o,n)}}u&&this.childAt(0).stopAnimation(`leave`)},t.prototype._updateCommon=function(e,t,n,r,i){var a=this.childAt(0),o=e.hostModel,s,c,l,u,d,f,p,m,h;if(r&&(s=r.emphasisItemStyle,c=r.blurItemStyle,l=r.selectItemStyle,u=r.focus,d=r.blurScope,p=r.labelStatesModels,m=r.hoverScale,h=r.cursorStyle,f=r.emphasisDisabled),!r||e.hasItemOption){var g=r&&r.itemModel?r.itemModel:e.getItemModel(t),_=g.getModel(`emphasis`);s=_.getModel(`itemStyle`).getItemStyle(),l=g.getModel([`select`,`itemStyle`]).getItemStyle(),c=g.getModel([`blur`,`itemStyle`]).getItemStyle(),u=_.get(`focus`),d=_.get(`blurScope`),f=_.get(`disabled`),p=ZM(g),m=_.getShallow(`scale`),h=g.getShallow(`cursor`)}var v=e.getItemVisual(t,`symbolRotate`);a.attr(`rotation`,(v||0)*Math.PI/180||0);var y=WI(e.getItemVisual(t,`symbolOffset`),n);y&&(a.x=y[0],a.y=y[1]),h&&a.attr(`cursor`,h);var b=e.getItemVisual(t,`style`),x=b.fill;if(a instanceof CO){var S=a.style;a.useStyle(J({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},b))}else a.__isEmptyBrush?a.useStyle(J({},b)):a.useStyle(b),a.style.decal=null,a.setColor(x,i&&i.symbolInnerColor),a.style.strokeNoScale=!0;var C=e.getItemVisual(t,`liftZ`),w=this._z2;C==null?w!=null&&(a.z2=w,this._z2=null):w??(this._z2=a.z2,a.z2+=C);var T=i&&i.useNameLabel;XM(a,p,{labelFetcher:o,labelDataIndex:t,defaultText:E,inheritColor:x,defaultOpacity:b.opacity});function E(t){return T?e.getName(t):GI(e,t)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=a.ensureState(`emphasis`);D.style=s,a.ensureState(`select`).style=l,a.ensureState(`blur`).style=c;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;D.scaleX=this._sizeX*O,D.scaleY=this._sizeY*O,this.setSymbolScale(1),$A(this,u,d,f)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=rA(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&aM(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();aM(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return UI(e.getItemVisual(t,`symbolSize`))},t.getSymbolZ2=function(e,t){return e.getItemVisual(t,`z2`)},t}(yj);function pce(e,t){this.parent.drift(e,t)}function JI(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r&&r.isIgnore&&r.isIgnore(n))&&!(r&&r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,`symbol`)!==`none`}function YI(e){return e!=null&&!eC(e)&&(e={isIgnore:e}),e||{}}function XI(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{emphasisItemStyle:n.getModel(`itemStyle`).getItemStyle(),blurItemStyle:t.getModel([`blur`,`itemStyle`]).getItemStyle(),selectItemStyle:t.getModel([`select`,`itemStyle`]).getItemStyle(),focus:n.get(`focus`),blurScope:n.get(`blurScope`),emphasisDisabled:n.get(`disabled`),hoverScale:n.get(`scale`),labelStatesModels:ZM(t),cursorStyle:t.get(`cursor`)}}function ZI(e,t,n,r,i,a,o){var s=new e(t,n,r,i);return s.setPosition(a),t.setItemGraphicEl(n,s),o.add(s),s}var QI=function(){function e(e){this.group=new yj,this._SymbolCtor=e||qI}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=YI(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=this._seriesScope=XI(e),c={disableAnimation:o},l=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=l(r);JI(e,i,r,t)&&ZI(a,e,r,s,c,i,n)}).update(function(u,d){var f=i.getItemGraphicEl(d),p=l(u);if(!JI(e,p,u,t))n.remove(f);else{var m=e.getItemVisual(u,`symbol`)||`circle`,h=f&&f.getSymbolType&&f.getSymbolType();if(!f||h&&h!==m)n.remove(f),f=new a(e,u,s,c),f.setPosition(p);else{f.updateData(e,u,s,c);var g={x:p[0],y:p[1]};o?f.attr(g):nM(f,g,r)}n.add(f),e.setItemGraphicEl(u,f)}}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=l,this._data=e},e.prototype.updateLayout=function(e){var t=this._data;if(t)for(var n=this,r=t.getStore(),i=0,a=r.count();i0?n=r[0]:r[1]<0&&(n=r[1]),n}function eL(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo(`stackedOverDimension`),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}function tL(e,t){return!isFinite(e)||!isFinite(t)}var hce=typeof Float32Array<`u`?Float32Array:void 0,gce=typeof Float64Array<`u`?Float64Array:void 0;function nL(e){return rL({ctor:hce},e).arr}function rL(e,t){var n=e.arr,r=e.ctor;if(t>lk&&(t=lk),!n||e.typed&&n.length=i||h<0)break;if(tL(_,v)){if(c){h+=a;continue}break}if(h===n)e[a>0?`moveTo`:`lineTo`](_,v),d=_,f=v;else{var y=_-l,b=v-u;if(y*y+b*b<.5){h+=a;continue}if(o>0){for(var x=h+a,S=t[x*2],C=t[x*2+1];S===_&&C===v&&g=r||tL(S,C))p=_,m=v;else{E=S-l,D=C-u;var A=_-l,j=S-_,M=v-u,N=C-v,P=void 0,F=void 0;if(s===`x`){P=Math.abs(A),F=Math.abs(j);var ee=E>0?1:-1;p=_-ee*P*o,m=v,O=_+ee*F*o,k=v}else if(s===`y`){P=Math.abs(M),F=Math.abs(N);var I=D>0?1:-1;p=_,m=v-I*P*o,O=_,k=v+I*F*o}else P=Math.sqrt(A*A+M*M),F=Math.sqrt(j*j+N*N),T=F/(F+P),p=_-E*o*(1-T),m=v-D*o*(1-T),O=_+E*o*T,k=v+D*o*T,O=iL(O,aL(S,_)),k=iL(k,aL(C,v)),O=aL(O,iL(S,_)),k=aL(k,iL(C,v)),E=O-_,D=k-v,p=_-E*P/F,m=v-D*P/F,p=iL(p,aL(l,_)),m=iL(m,aL(u,v)),p=aL(p,iL(l,_)),m=aL(m,iL(u,v)),E=_-p,D=v-m,O=_+E*F/P,k=v+D*F/P}e.bezierCurveTo(d,f,p,m,_,v),d=O,f=k}else e.lineTo(_,v)}l=_,u=v,h+=a}return g}var sL=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),yce=function(e){vS(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polyline`,n}return t.prototype.getDefaultStyle=function(){return{stroke:Q.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new sL},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&tL(n[i*2-2],n[i*2-1]);i--);for(;r=0){var _=o?(d-a)*g+a:(u-i)*g+i;return o?[e,_]:[_,e]}i=u,a=d;break;case r.C:u=n[c++],d=n[c++],f=n[c++],p=n[c++],m=n[c++],h=n[c++];var v=o?FT(i,u,f,m,e,s):FT(a,d,p,h,e,s);if(v>0)for(var y=0;y=0){var _=o?NT(a,d,p,h,b):NT(i,u,f,m,b);return o?[e,_]:[_,e]}}i=m,a=h}}},t}(xO),bce=function(e){vS(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(sL),xce=function(e){vS(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polygon`,n}return t.prototype.getDefaultShape=function(){return new bce},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,a=n.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;a>0&&tL(n[a*2-2],n[a*2-1]);a--);for(;i=0,a=e.fill||Q.color.neutral99;bL(r,t);var o=r.textFill==null;return i?o&&(r.textFill=n.insideFill||Q.color.neutral00,!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=a),r.textStrokeWidth??=2):(o&&(r.textFill=e.fill||n.outsideFill||Q.color.neutral00),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,Y(t.rich,function(e){bL(e,e)}),r}function bL(e,t){t&&(Z(t,`fill`)&&(e.textFill=t.fill),Z(t,`stroke`)&&(e.textStroke=t.fill),Z(t,`lineWidth`)&&(e.textStrokeWidth=t.lineWidth),Z(t,`font`)&&(e.font=t.font),Z(t,`fontStyle`)&&(e.fontStyle=t.fontStyle),Z(t,`fontWeight`)&&(e.fontWeight=t.fontWeight),Z(t,`fontSize`)&&(e.fontSize=t.fontSize),Z(t,`fontFamily`)&&(e.fontFamily=t.fontFamily),Z(t,`align`)&&(e.textAlign=t.align),Z(t,`verticalAlign`)&&(e.textVerticalAlign=t.verticalAlign),Z(t,`lineHeight`)&&(e.textLineHeight=t.lineHeight),Z(t,`width`)&&(e.textWidth=t.width),Z(t,`height`)&&(e.textHeight=t.height),Z(t,`backgroundColor`)&&(e.textBackgroundColor=t.backgroundColor),Z(t,`padding`)&&(e.textPadding=t.padding),Z(t,`borderColor`)&&(e.textBorderColor=t.borderColor),Z(t,`borderWidth`)&&(e.textBorderWidth=t.borderWidth),Z(t,`borderRadius`)&&(e.textBorderRadius=t.borderRadius),Z(t,`shadowColor`)&&(e.textBoxShadowColor=t.shadowColor),Z(t,`shadowBlur`)&&(e.textBoxShadowBlur=t.shadowBlur),Z(t,`shadowOffsetX`)&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Z(t,`shadowOffsetY`)&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Z(t,`textShadowColor`)&&(e.textShadowColor=t.textShadowColor),Z(t,`textShadowBlur`)&&(e.textShadowBlur=t.textShadowBlur),Z(t,`textShadowOffsetX`)&&(e.textShadowOffsetX=t.textShadowOffsetX),Z(t,`textShadowOffsetY`)&&(e.textShadowOffsetY=t.textShadowOffsetY))}var xL=function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();RC(xL);var Oce=0,SL=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++Oce,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&US(r,kce);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!ZS(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var r=this._getOrCreateMap();return t=r.get(e),t??(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||=_C(this.categories)},e}();function kce(e){return eC(e)&&e.value!=null?e.value:e+``}var CL=qS({needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1});function wL(e,t,n){var r;e||={};var i=oF();if(i){var a=i.createBreakScaleMapper(t,n);a.hasBreaks()&&(Y(CL,function(t){a[t]&&(e[t]=JS(a[t],a))}),r=a)}return r??jce(e,n),{brk:r,mapper:e}}function TL(e,t){Y(CL,function(n){e[n]=t[n]})}function EL(e,t){e.freeze=bC}function DL(e){return e.getExtentUnsafe(0,2)}function OL(e,t){return e.getExtentUnsafe(1,t)||e.getExtentUnsafe(0,t)}function Ace(e){var t=OL(e,3);return t[1]-t[0]}function kL(e){var t=e.getExtentUnsafe(0,3);return t[1]-t[0]}function jce(e,t){var n=e||{},r=[];return n._extents=r,r[0]=t?t.slice():Wk(),J(n,Mce),n}var Mce={needTransform:function(){return!1},normalize:function(e){var t=this._extents[1]||this._extents[0];return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},scale:function(e){var t=this._extents[1]||this._extents[0];return e*(t[1]-t[0])+t[0]},transformIn:function(e){return e},transformOut:function(e){return e},contain:function(e){var t=OL(this,null);return e>=t[0]&&e<=t[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){AL(this._extents,0,e,t)},setExtent2:function(e,t,n){var r=this._extents;r[e]||(r[e]=r[0].slice()),AL(r,e,t,n)},freeze:function(){}};function AL(e,t,n,r){Yk(n,r)&&(e[t][0]=n,e[t][1]=r)}function jL(e){return ML(e)||PL(e)}function ML(e){return e.type===`interval`}function NL(e){return e.type===`time`}function PL(e){return e.type===`log`}function FL(e){return e.type===`ordinal`}function IL(e){var t=mk(e),n=ZO(10,t),r=JO(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,ik(r*n,-t)}function LL(e){return ok(e)+2}function RL(e,t){return QO(e)/QO(t)}function zL(e,t,n){var r=n&&n.lookup;if(r){for(var i=0;i1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==r[0]&&c(r[0],!0,!0);for(var s=i;s<=r[1];s+=o)c(s,!1,s===r[0]||s===r[1]);s-o!==r[1]&&c(r[1],!0,!0);function c(e,t,r){n({value:e,offInterval:t},r)}}var WL=function(e){vS(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,TL(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new SL({}),X(i)&&(i=new SL({categories:US(i,function(e){return eC(e)?e.value:e})})),r._ordinalMeta=i;var a=wL(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,EL(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:ZS(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=JO(e),e},t.prototype.getTicks=function(){var e=[];return UL(this,0,function(t){e.push(t)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null)this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;else{for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=GO(a,t.length);i=0&&e=0&&e=0&&eo[0]&&mi[1]||!isFinite(p)||!isFinite(i[1]))break}else{if(m>f)break;p=GO(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=ik(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=ik(p+h*n,a))}if(l.length>0&&p===l[l.length-1].value)break;if(l.length>u)return[]}var g=l.length?l[l.length-1].value:i[1];return r[1]>g&&l.push({value:e.expandToNicedExtent?ik(g+n,a):r[1]}),c&&o.pruneTicksByBreak(e.pruneByBreak,l,s.breaks,function(e){return e.value},t.interval,r),c&&e.breakTicks!==`none`&&o.addBreaksToTicks(l,s.breaks,r),l},t.prototype.getMinorTicks=function(e){return GL(this,e,cF(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=ok(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),UF(ik(e.value,n,!0))},t.type=`interval`,t}(xL);xL.registerClass(KL);var qL=function(e,t,n,r){for(;n>>1;e[i][1]16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function QL(e){var t=30*pF;return e/=t,e>6?6:e>3?3:e>2?2:1}function $L(e){return e/=fF,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function eR(e,t){return e/=t?dF:uF,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function tR(e){return KO(hk(e,!0),1)}function nR(e,t,n){var r=Math.max(0,BS(bF,t)-1);return kF(new Date(e),bF[r],n).getTime()}function rR(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(e,t){return Math.max(0,Math.round((t-e)/i))}}function iR(e,t,n,r,i,a){var o=xF,s=0;function c(e,t,n,i,o,c,l){for(var u=rR(o,e),d=t,f=new Date(d);d3e3));)if(f[o](f[i]()+e),d=f.getTime(),a){var p=a.calcNiceTickMultiple(d,u);p>0&&(f[o](f[i]()+p*e),d=f.getTime())}l.push({value:d,notAdd:d>r[1]})}function l(e,i,a){var o=[],s=!i.length;if(!XL(TF(e),r[0],r[1],n)){s&&(i=[{value:nR(r[0],e,n)},{value:r[1]}]);for(var l=0;l=r[0]&&u<=r[1]&&c(f,u,d,p,m,h,o),e===`year`&&a.length>1&&l===0&&a.unshift({value:a[0].value-f})}}for(var l=0;l=r[0]&&v<=r[1]&&f++)}var y=i/t;if(f>y*1.5&&p>y/1.5||(u.push(g),f>y||e===o[m]))break}d=[]}}for(var b=GS(US(u,function(e){return GS(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),x=b.length-1,S=[],m=0;mr[0])&&S.unshift({value:r[0],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),(!D||D.values&&(a=s);var c=YL.length,l=Math.min(qL(YL,a,0,c),c-1),u=YL[l][1],d=YL[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})};xL.registerClass(JL);var oR=0,sR=1,cR=2,lR=function(e){vS(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=KL.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[oR]=i[sR]=a[oR]=a[sR]=NaN,TL(r,t.mapperMethods);var s=oF(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},cR,l),r.powStub=new KL({breakParsed:l.original}),r.intervalStub=new KL({breakParsed:l.transformed}),EL(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=oF(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return US(i.getTicks(e||{}),function(e){var i=e.value,o=zL(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,cF(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return GL(this,e,cF(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,t){return this.intervalStub.getLabel(e,t)},t.type=`log`,t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(RL(e,this.base))},scale:function(e){return zL(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=RL(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return uR.depth=n,dR.lookup=this._lookup,zL(n===2?e:this.intervalStub.transformOut(e,uR),this.base,dR)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!Yk(t,n)||t<=0||n<=0)){var r=fR,i=fR;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[oR]=t,r[sR]=n);var o=this.base;this.intervalStub.setExtent2(e,i[oR]=RL(t,o),i[sR]=RL(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return Yk(t[0],t[1])&&xk(e)&&e<=0&&(e=t[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,t){return t===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,t)}},t}(xL);xL.registerClass(lR);var uR={},dR={},fR=[],pR={value:1,category:1,time:1,log:1},mR=Lk();function hR(e){var t=e.get(`type`);return(t==null||!Z(pR,t)&&!xL.getClass(t))&&(t=`value`),t}function gR(e,t,n){var r=oF(),i;switch(r&&(i=DR(e,t,n)),t){case`category`:return new WL({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:Wk()});case`time`:return new JL({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new lR({logBase:e.get(`logBase`),breakOption:i});case`value`:return new KL({breakOption:i});default:return new((xL.getClass(t))||KL)({})}}function _R(e,t,n){var r=n?OL(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return Yk(i,a)?i===t||a===t?2:it?1:3:3}function vR(e){mR(e).noOnMyZero=!0}function yR(e){return mR(e).noOnMyZero}function bR(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=SF(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}if(ZS(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};if(XS(t)){if(e.type===`category`)return function(n,r){return t(xR(e,n),n.value-e.scale.getExtent()[0],null)};var r=oF();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(xR(e,n),i,a)}}return function(t){return e.scale.getLabel(t)}}function xR(e,t){var n=e.scale;return FL(n)?n.getLabel(t):t.value}function SR(e){return e.get(`interval`)??`auto`}function CR(e){return e.type===`category`&&SR(e.getLabelModel())===0}function wR(e,t){var n={};return Y(e.mapDimensionsAll(t),function(t){n[OP(e,t)]=!0}),qS(n)}function TR(e){return e===`middle`||e===`center`}function ER(e){return e.getShallow(`show`)}function DR(e,t,n){var r=e.get(`breaks`,!0);if(r!=null)return!oF()||!n||!OR(t)?void 0:r}function OR(e){return e!==`category`}function kR(e,t,n,r,i,a){var o=PL(e),s=o?e.intervalStub:e;if(s.setExtent(r[0],r[1]),o){var c=e.powStub,l={depth:2},u=e.transformOut(r[0],l),d=e.transformOut(r[1],l),f=VL(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function AR(e,t){return FL(e)?e.getRawOrdinalNumber(t.value):t.value}function jR(e,t){return FL(e)&&!!t.get(`boundaryGap`)}function MR(e,t){if(e.length===t.length){for(var n=0;nt){a?n.push(o(a,c,t)):i&&n.push(o(i,c,0),o(i,c,t));break}else i&&=(n.push(o(i,c,0)),null),n.push(c),a=c}return n}function zR(e,t,n){var r=e.getVisual(`visualMeta`);if(r&&r.length&&e.count()&&t.type===`cartesian2d`){for(var i,a,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i===`x`||i===`y`){a=r[o];break}}if(a){var c=t.getAxis(i),l=US(a.stops,function(e){return{coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}}),u=l.length,d=a.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),d.reverse());var f=RR(l,i===`x`?n.getWidth():n.getHeight()),p=f.length;if(!p&&u)return l[0].coord<0?d[1]?d[1]:l[u-1].color:d[0]?d[0]:l[0].color;var m=10,h=f[0].coord-m,g=f[p-1].coord+m,_=g-h;if(_<.001)return`transparent`;Y(f,function(e){e.offset=(e.coord-h)/_}),f.push({offset:p?f[p-1].offset:.5,color:d[1]||`transparent`}),f.unshift({offset:p?f[0].offset:.5,color:d[0]||`transparent`});var v=new Gj(0,0,0,0,f,!0);return v[i]=h,v[i+`2`]=g,v}}}function BR(e,t,n){var r=e.get(`showAllSymbol`),i=r===`auto`;if(!r||i){var a=n.getAxesByScale(`ordinal`)[0];if(a&&!(i&&VR(a,t))){var o=t.mapDimension(a.dim),s={};return Y(a.getViewLabels(),function(e){e.tick.offInterval||(s[AR(a.scale,e.tick)]=1)}),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function VR(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;or)return!1;return!0}function HR(e){for(var t=e.length/2;t>0&&tL(e[t*2-2],e[t*2-1]);t--);return t-1}function UR(e,t){return[e[t*2],e[t*2+1]]}function WR(e,t,n){for(var r=e.length/2,i=n===`x`?0:1,a,o,s=0,c=-1,l=0;l=t||a>=t&&o<=t){c=l;break}s=l,a=o}}return{range:[s,c],t:(t-a)/(o-a)}}function GR(e){if(e.get([`endLabel`,`show`]))return!0;for(var t=0;t0&&e.get([`emphasis`,`lineStyle`,`width`])===`bolder`){var M=f.getState(`emphasis`).style;M.lineWidth=+f.style.lineWidth+1}rA(f).seriesIndex=e.seriesIndex,$A(f,k,A,j);var N=FR(e.get(`smooth`)),P=e.get(`smoothMonotone`);if(f.setShape({smooth:N,smoothMonotone:P,connectNulls:x}),p){var F=a.getCalculationInfo(`stackedOnSeries`),ee=0;p.useStyle(zS(s.getAreaStyle(),{fill:E,opacity:.7,lineJoin:`bevel`,decal:a.getVisual(`style`).decal})),F&&(ee=FR(F.get(`smooth`))),p.setShape({smooth:N,stackedOnSmooth:ee,smoothMonotone:P,connectNulls:x}),tj(p,e,`areaStyle`),rA(p).seriesIndex=e.seriesIndex,$A(p,k,A,j)}var I=this._changePolyState;a.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=I)}),this._polyline.onHoverStateChange=I,this._data=a,this._coordSys=r,this._stackedOnPoints=y,this._points=c,this._step=w,this._valueOrigin=_;var te=e.get(`triggerEvent`),L=e.get(`triggerLineEvent`),ne=L===!0||te===!0||te===`line`,re=L===!0||te===!0||te===`area`;this.packEventData(e,f,ne),p&&this.packEventData(e,p,re)},t.prototype.packEventData=function(e,t,n){rA(t).eventData=n?{componentType:`series`,componentSubType:`line`,componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:`line`,selfType:t===this._polygon?`area`:`line`}:null},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=Ik(i,r);if(this._changePolyState(`emphasis`),!(a instanceof Array)&&a!=null&&a>=0){var o=i.getLayout(`points`),s=i.getItemGraphicEl(a);if(!s){var c=o[a*2],l=o[a*2+1];if(tL(c,l)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,l))return;var u=e.get(`zlevel`)||0,d=e.get(`z`)||0;s=new qI(i,a),s.x=c,s.y=l,s.setZ(u,d);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=u,f.z=d,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else uL.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=Ik(i,r);if(this._changePolyState(`normal`),a!=null&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else uL.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;FA(this._polyline,e),t&&FA(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new yce({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new xce({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,a=t.getBaseAxis(),o=a.inverse;t.type===`cartesian2d`?(r=a.isHorizontal(),i=!1):t.type===`polar`&&(r=a.dim===`angle`,i=!0);var s=e.hostModel,c=s.get(`animationDuration`);XS(c)&&(c=c(null));var l=s.get(`animationDelay`)||0,u=XS(l)?l(null):l;e.eachItemGraphicEl(function(e,a){var s=e;if(s){var d=[e.x,e.y],f=void 0,p=void 0,m=void 0;if(n){if(i){var h=n,g=t.pointToCoord(d);r?(f=h.startAngle,p=h.endAngle,m=-g[1]/180*Math.PI):(f=h.r0,p=h.r,m=g[0])}else{var _=n;r?(f=_.x,p=_.x+_.width,m=e.x):(f=_.y+_.height,p=_.y,m=e.y)}}var v=p===f?0:(m-f)/(p-f);o&&(v=1-v);var y=XS(l)?l(a):c*v+u,b=s.getSymbolPath(),x=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:y}),b.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel(`endLabel`);if(GR(e)){var i=e.getData(),a=this._polyline,o=i.getLayout(`points`);if(!o){a.removeTextContent(),this._endLabel=null;return}var s=this._endLabel;s||(s=this._endLabel=new MO({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var c=HR(o);c>=0&&(XM(a,ZM(e,`endLabel`),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(e,t,n){return n==null?GI(i,e):KI(i,n)},enableTextSetter:!0},qR(r,t)),a.textConfig.position=null)}else this._endLabel&&=(this._polyline.removeTextContent(),null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,a,o){var s=this._endLabel,c=this._polyline;if(s){e<1&&r.originalX==null&&(r.originalX=s.x,r.originalY=s.y);var l=n.getLayout(`points`),u=n.hostModel,d=u.get(`connectNulls`),f=a.get(`precision`),p=a.get(`distance`)||0,m=o.getBaseAxis(),h=m.isHorizontal(),g=m.inverse,_=t.shape,v=g?h?_.x:_.y+_.height:h?_.x+_.width:_.y,y=(h?p:0)*(g?-1:1),b=(h?0:-p)*(g?-1:1),x=h?`x`:`y`,S=WR(l,v,x),C=S.range,w=C[1]-C[0],T=void 0;if(w>=1){if(w>1&&!d){var E=UR(l,C[0]);s.attr({x:E[0]+y,y:E[1]+b}),i&&(T=u.getRawValue(C[0]))}else{var E=c.getPointOn(v,x);E&&s.attr({x:E[0]+y,y:E[1]+b});var D=u.getRawValue(C[0]),O=u.getRawValue(C[1]);i&&(T=_ae(n,f,D,O,S.t))}r.lastFrameIndex=C[0]}else{var k=e===1||r.lastFrameIndex>0?C[0]:0,E=UR(l,k);i&&(T=u.getRawValue(k)),s.attr({x:E[0]+y,y:E[1]+b})}if(i){var A=aN(s);typeof A.setLabelText==`function`&&A.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,a,o){var s=this._polyline,c=this._polygon,l=e.hostModel,u=vce(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,a),d=u.current,f=u.stackedOnCurrent,p=u.next,m=u.stackedOnNext;if(i&&(f=LR(u.stackedOnCurrent,u.current,n,i,o),d=LR(u.current,null,n,i,o),m=LR(u.stackedOnNext,u.next,n,i,o),p=LR(u.next,null,n,i,o)),PR(d,p)>3e3||c&&PR(f,m)>3e3)s.stopAnimation(),s.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m}));else{s.shape.__points=u.current,s.shape.points=d;var h={shape:{points:p}};u.current!==d&&(h.shape.__points=u.next),s.stopAnimation(),nM(s,h,l),c&&(c.setShape({points:d,stackedOnPoints:f}),c.stopAnimation(),nM(c,{shape:{stackedOnPoints:m}},l),s.shape.points!==c.shape.points&&(c.shape.points=s.shape.points));for(var g=[],_=u.status,v=0;v<_.length;v++)if(_[v].cmd===`=`){var y=e.getItemGraphicEl(_[v].idx1);y&&g.push({el:y,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during(function(){c&&c.dirtyShape();for(var e=s.shape.__points,t=0;tt&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;ZS(i)?p=XR[i]:XS(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,ZR))}}}}}function $R(e){e.registerChartView(JR),e.registerSeriesModel(fce),e.registerLayout(YR(`line`,!0)),e.registerVisual({seriesType:`line`,reset:function(e){var t=e.getData(),n=e.getModel(`lineStyle`).getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual(`style`).fill),t.setVisual(`legendLineStyle`,n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,QR(`line`))}var ez=Lk(),tz=Lk(),nz={estimate:1,determine:2};function rz(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function iz(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:US(oz(n,r),function(t,n){return{formattedLabel:bR(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?sz(e,t):uz(e)}function az(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:oz(i,r)}:e.type===`category`?lz(e,t):{ticks:r.getTicks(n)}}function oz(e,t){var n=t.getExtent(),r=[];return Y(e,function(e){e=t.parse(e),e>=n[0]&&e<=n[1]&&r.push(e)}),Qk(r,Sae,null),ak(r),US(r,function(e){return{value:e}})}function sz(e,t){var n=e.getLabelModel(),r=cz(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function cz(e,t,n){var r=fz(e),i=SR(t),a=n.kind===nz.estimate;if(!a){var o=mz(r,i);if(o)return o}var s,c;XS(i)?s=xz(e,i,!1):(c=i===`auto`?gz(e,n):i,s=xz(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return hz(r,i,l),!0}):hz(r,i,l),l}function lz(e,t){var n=dz(e),r=SR(t),i=mz(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),XS(r))a=xz(e,r,!0);else if(r===`auto`){var s=cz(e,e.getLabelModel(),rz(nz.determine));o=s.labelCategoryInterval,a=US(s.labels,function(e){return e.tick})}else o=r,a=xz(e,o,!0);return hz(n,r,{ticks:a,tickCategoryInterval:o})}function uz(e){var t=e.scale.getTicks(),n=bR(e);return{labels:US(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}var dz=pz(`axisTick`),fz=pz(`axisLabel`);function pz(e){return function(t){return tz(t)[e]||(tz(t)[e]={list:[]})}}function mz(e,t){for(var n=0;nu&&(l=Math.max(1,Math.floor(c/u)));for(var d=s[0],f=e.dataToCoord(d+1)-e.dataToCoord(d),p=Math.abs(f*Math.cos(a)),m=Math.abs(f*Math.sin(a)),h=0,g=0;d<=s[1];d+=l){var _=0,v=0,y=Gw(i({value:d}),r.font,`center`,`top`);_=y.width*1.3,v=y.height*1.3,h=Math.max(h,_,7),g=Math.max(g,v,7)}var b=h/p,x=g/m;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(b,x)));return n===nz.estimate?(t.out.noPxChangeTryDetermine.push(JS(vz,null,e,S,c)),S):yz(e,S,c)??S}function vz(e,t,n){return yz(e,t,n)==null}function yz(e,t,n){var r=ez(e.model),i=e.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-n)<=1&&a>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function bz(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get(`rotate`)||0,font:t.getFont()}}function xz(e,t,n){var r=bR(e),i=e.scale,a=[],o=XS(t);return UL(i,o?0:t,function(e,s){var c=i.getLabel(e);if(o){var l=!!t(e.value,c);if(e.offInterval=!l,!l&&!s)return}a.push(n?e:{formattedLabel:r(e),rawLabel:c,tick:e})}),a}var Sz=Lk();function Cz(e){Sz(e).prepare={}}function wz(e){Sz(e).fullUpdate={}}function Tz(e){return Sz(e).prepare}function Ez(e){return Sz(e).fullUpdate}var Dz=Zk(),Oz=Lk(),kz=Lk();function Az(e,t){var n=e.model,r=Oz(Ez(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function jz(e,t){return Pz(Az(e,t))}function Mz(e,t){var n=[];return Nz(e.model.ecModel,function(e){for(var r=0;r0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),xk(n)&&n>0&&xk(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*qz,e.w2=e.w*n/r)}var Zz=[0,1],Qz=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),ek(e,Zz,$z(this),t)},e.prototype.coordToData=function(e,t){var n=ek(e,$z(this),Zz,t);return this.scale.scale(n)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=US(az(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(AR(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=eB(this,n,r);return US(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(FL(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),US(this.scale.getMinorTicks(e),function(e){return US(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=rz(nz.determine),iz(this,e).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){return Jz(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=rz(nz.determine),_z(this,e)},e}();function $z(e){var t=e.getExtent();if(e.onBand){var n=(t[1]-t[0])/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}function eB(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=Jz(e).w;if(!i)return!1;Y(t,function(e){e.coord-=i/2});var a=e.scale.getExtent(),o=t[r-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var tB=function(e){vS(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(Qz),nB=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],rB=1,iB=2,aB=rB|iB;function oB(e,t,n){n||=aB,t?e.dirty|=n:e.dirty&=~n}function sB(e,t){return t||=aB,e.dirty==null||!!(e.dirty&t)}function cB(e){if(e)return sB(e)&&Nce(e,e.label,e),e}function Nce(e,t,n){var r=t.getComputedTransform();e.transform=zM(e.transform,r);var i=e.localRect=RM(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=n&&n.marginForce,c=n&&n.minMarginForce,l=n&&n.marginDefault,u=a.__marginType;u==null&&l&&(o=l,u=oN.textMargin);for(var d=0;d<4;d++)lB[d]=u===oN.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===oN.textMargin&&AM(i,lB,!1,!1);var f=e.rect=RM(e.rect,i);return r&&f.applyTransform(r),u===oN.minMargin&&AM(f,lB,!1,!1),e.axisAligned=IM(r),(e.label=e.label||{}).ignore=t.ignore,oB(e,!1),oB(e,!0,iB),e}var lB=[0,0,0,0];function Pce(e,t,n){return e.transform=zM(e.transform,n),e.localRect=RM(e.localRect,t),e.rect=RM(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=IM(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function Fce(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var n=e.transform;n&&(n[4]+=t.x,n[5]+=t.y);var r=e.rect;r&&(r.x+=t.x,r.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,n)}}function uB(e,t){for(var n=0;n.1?`x`:`y`,u=a.transGroup[l];if(o.sort(function(e,t){return Math.abs(e.label[l]-u)-Math.abs(t.label[l]-u)}),c&&s){var d=i.getExtent(),f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-f;s.union(new Aw(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var vB=QC(),yB=new Aw(0,0,0,0),bB=function(e,t,n,r,i,a){if(TR(e.nameLocation)){var o=a.stOccupiedRect;o&&xB(Pce({},o,a.transGroup.transform),r,i)}else SB(a.labelInfoList,a.dirVec,r,i)};function xB(e,t,n){var r=new _w;fB(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&Fce(t,r)}function SB(e,t,n,r){for(var i=_w.dot(r,t)>=0,a=0,o=e.length;a0?`top`:`bottom`,i=`center`):dk(r-mB)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r0?`right`:`left`:n>0?`left`:`right`),{rotation:r,textAlign:i,textVerticalAlign:a}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),Hce=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],Uce={axisLine:function(e,t,n,r,i,a,o){var s=r.get([`axisLine`,`show`]);if(s===`auto`&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),s){var c=r.axis.getExtent(),l=a.transform,u=[c[0],0],d=[c[1],0],f=u[0]>d[0];l&&(mw(u,u,l),mw(d,d,l));var p=J({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get([`axisLine`,`breakLine`])&&lF(r.axis.scale))pB().buildAxisBreakLine(r,i,a,m);else{var h=new Rj(J({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));yM(h.shape,h.style.lineWidth),h.anid=`line`,i.add(h)}var g=r.get([`axisLine`,`symbol`]);if(g!=null){var _=r.get([`axisLine`,`symbolSize`]);ZS(g)&&(g=[g,g]),(ZS(_)||$S(_))&&(_=[_,_]);var v=WI(r.get([`axisLine`,`symbolOffset`])||0,_),y=_[0],b=_[1];Y([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(t,n){if(g[n]!==`none`&&g[n]!=null){var r=HI(g[n],-y/2,-b/2,y,b,p.stroke,!0),a=t.r+t.offset,o=f?d:u;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,a,o,s){DB(t,i,s)&&wB(e,t,n,r,i,a,o,nz.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){DB(t,i,s)&&wB(e,t,n,r,i,a,o,nz.determine);var c=qce(e,i,a,r);Kce(e,t.labelLayoutList,c),Jce(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var l=e.axisName;if(jB(l)){var u=e.nameLocation,d=e.nameDirection,f=r.getModel(`nameTextStyle`),p=r.get(`nameGap`)||0,m=r.axis.getExtent(),h=r.axis.inverse?-1:1,g=new _w(0,0),_=new _w(0,0);u===`start`?(g.x=m[0]-h*p,_.x=-h):u===`end`?(g.x=m[1]+h*p,_.x=h):(g.x=(m[0]+m[1])/2,g.y=e.labelOffset+d*p,_.y=d);var v=QC();_.transform(rw(v,v,e.rotation));var y=r.get(`nameRotate`);y!=null&&(y=y*mB/180);var b,x;TR(u)?b=CB.innerTextLayout(e.rotation,y??e.rotation,d):(b=Wce(e.rotation,u,y||0,m),x=e.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(b.rotation)),!isFinite(x)&&(x=null)));var S=f.getFont(),C=r.get(`nameTruncate`,!0)||{},w=C.ellipsis,T=oC(e.raw.nameTruncateMaxWidth,C.maxWidth,x),E=s.nameMarginLevel||0,D=new MO({x:g.x,y:g.y,rotation:b.rotation,silent:CB.isLabelSilent(r),style:QM(f,{text:l,font:S,overflow:`truncate`,width:T,ellipsis:w,fill:f.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:f.get(`align`)||b.textAlign,verticalAlign:f.get(`verticalAlign`)||b.textVerticalAlign}),z2:1});if(NM({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=CB.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,rA(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=cB({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:TR(u)?zce[E]:Bce[E]});if(c.nameLocation=u,i.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&k){var A=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,k,_,A)}}}};function wB(e,t,n,r,i,a,o,s){OB(t)||Yce(e,t,i,s,r,o);var c=t.labelLayoutList;Xce(e,r,c,a),$ce(r,e.rotation,c);var l=e.optionHideOverlap;Gce(r,c,l),l&&Ice(GS(c,function(e){return e&&!e.label.ignore})),Vce(e,n,r,c)}function Wce(e,t,n,r){var i=uk(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return dk(i-mB/2)?(o=c?`bottom`:`top`,a=`center`):dk(i-mB*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=imB/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function Gce(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(CR(r))return;function a(e,a,o){var s=cB(t[a]),c=cB(t[o]),l=r.scale;if(s&&c){if(e==null){if(!n&&i)return;var u=hB(s.label).labelInfo.tick;if(NL(l)&&u.notNice||FL(l)&&u.offInterval){TB(s.label);return}}if(e===!1||s.suggestIgnore)TB(s.label);else if(c.suggestIgnore)TB(c.label);else{var d=.1;if(!n){var f=[0,0,0,0];s=uB({marginForce:f},s),c=uB({marginForce:f},c)}fB(s,c,null,{touchThreshold:d})&&TB(e?c.label:s.label)}}}var o=e.get([`axisLabel`,`showMinLabel`]),s=e.get([`axisLabel`,`showMaxLabel`]),c=t.length;a(o,0,1),a(s,c-1,c-2)}function Kce(e,t,n){e.showMinorTicks||Y(t,function(e){if(e&&e.label.ignore)for(var t=0;t0&&u[1]>0&&!d[0]&&(u[0]=0),u[0]<0&&u[1]<0&&!d[1]&&(u[1]=0));var y=!1;u[0]>u[1]&&(u.reverse(),y=!0);var b=FB(e,t.get(`startValue`,!0)),x=b!=null;!xk(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),xk(b)&&(x||!_||v)&&(bu[1]&&!d[1]&&(u[1]=b,d[1]=!0)),PB(this._i={scale:e,dataMM:l,noZoomEffMM:u,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:v,tggAxInv:y,ctnShp:i},u)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,r=e.zoomFixMM,i=e.fixMM,a={fixMM:i,zoomFixMM:r,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},o=a.effMM;return t[0]!=null&&(o[0]=t[0],i[0]=r[0]=!0),t[1]!=null&&(o[1]=t[1],i[1]=r[1]=!0),PB(e,o),a},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},e}();function PB(e,t){var n=e.scale,r=e.dataMM;n.sanitize&&(t[0]=n.sanitize(t[0],r),t[1]=n.sanitize(t[1],r),Xk(t))}function FB(e,t){return t==null?null:aC(t)?NaN:e.parse(t)}function ole(e,t){var n;if(FL(e))n=[0,0];else{var r=t.get(`boundaryGap`);typeof r==`boolean`&&(r=null),n=X(r)?r:[r,r]}return[IB(n[0]),IB(n[1])]}function IB(e){return Yw(typeof e==`boolean`?0:e,1)||0}function LB(e){var t=ile(e.scale);return t.extent||=Wk(),t}function sle(e,t){LB(e).dimIdxInCoord=t.get(e.dim)}function RB(e,t){var n=e.scale,r=e.model,i=e.dim;n.rawExtentInfo||cle(n,e,i,r,t)}function cle(e,t,n,r,i){var a=LB(t),o=a.extent,s=!1;Fz(t,function(r){if(r.boxCoordinateSystem){var i=TP(r).coord,c=a.dimIdxInCoord;if(c>=0&&X(i)){var l=i[c];l!=null&&!X(l)&&Gk(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;Y(wR(u,n),function(e){vae(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=dle(e,t,r);zB(e,new NB(e,r,o,s,c),i),a.extent=null}function lle(e,t){var n=e.scale;zB(n,new NB(n,e.model,t,!1,!1),ale)}function zB(e,t,n){e.rawExtentInfo=t,t.from=n}function ule(e,t){BB.set(e,t)}var BB=_C();function VB(e,t,n,r,i){e.rawExtentInfo||lle({scale:e,model:t},i||Wk());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),r&&a.tggAxInv&&n&&!n.get(`legacyMinMaxDontInverseAxis`)&&(r.inverse=!r.inverse),a}function dle(e,t,n){var r=jR(e,n),i=n.get(`containShape`,!0);if(i==null&&!r&&(i=!0),!i)return!1;var a=!1;return zz(t,function(e){a=!!BB.get(e)||a}),a}function fle(e,t,n,r){if(n.ctnShp){var i;if(zz(e,function(t){var n=BB.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],Kk(i,a[0]),qk(i,a[1]),vR(e))}}),i){var a=t.getExtent();if(FL(t))e.onBand||t.setExtent2(1,GO(a[0],a[0]+i[0]),KO(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=GO(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=KO(o[1],t.transformOut(t.transformIn(o[1],null)+i[1],null))),(o[0]a[1])&&t.setExtent2(1,o[0],o[1])}}}}function ple(){Vz(`liPosMinGap`,mle)}function mle(e,t,n){var r=_C(),i=n.serUids,a=n.liPosMinGap,o,s=t.axis,c=s.scale,l=c.needTransform(),u=c.getFilter?c.getFilter():null,d=XN(u);function f(n){Lz(e,t.sers,function(e){var t=e.getRawData(),r=t.getDimensionIndex(t.mapDimension(s.dim));r>=0&&n(r,e,t.getStore())})}var p=0;if(f(function(e,t,n){r.set(t.uid,1),i&&i.hasKey(t.uid)||(o=!0),p+=n.count()}),i&&i.keys().length===r.keys().length||(o=!0),!o&&a!=null)t.liPosMinGap=a;else{rL(HB,p);var m=0;f(function(e,t,n){for(var r=0,i=n.count();r0&&v0?-2:-1,n.serUids=r}}var HB=rL({ctor:gce},50);function hle(e){return function(t,n){var r=Jz(t,{fromStat:{key:e}});if(xk(r.w2))return[-r.w2/2,r.w2/2]}}function UB(e,t){return e+`|&`+t}function gle(e){return ple(),{liPosMinGap:!FL(e.scale)}}function _le(e,t,n,r){Gz(e,{key:t,seriesType:n,coordSysType:r,getMetrics:gle})}function vle(e){return e.scale.rawExtentInfo.makeRenderInfo().startValue}var WB={left:0,right:0,top:0,bottom:0},GB=[`25%`,`25%`],KB=`cartesian2d`,yle=function(e){vS(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=oI(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&aI(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&aI(this.option.outerBounds,t.outerBounds)},t.type=`grid`,t.dependencies=[`xAxis`,`yAxis`],t.layoutMode=`box`,t.defaultOption={show:!1,z:0,left:`15%`,top:65,right:`10%`,bottom:80,containLabel:!1,outerBoundsMode:`auto`,outerBounds:WB,outerBoundsContain:`all`,outerBoundsClampWidth:GB[0],outerBoundsClampHeight:GB[1],backgroundColor:Q.color.transparent,borderWidth:1,borderColor:Q.color.neutral30},t}(sI),ble=Zk(),qB=`__ec_stack_`;function JB(e){return e.get(`stack`)||qB+e.seriesIndex}function xle(e){if(FL(e.axis.scale)){for(var t=Jz(e.axis),n=[],r=0;ro&&(o=a),o!==u&&(t.width=o,n-=o+l*o,r--)}}),u=(n-c)/(r+(r-1)*l),u=KO(u,0);var d=0,f;Y(o,function(e){var t=s[e];t.width||=u,f=t,d+=t.width*(1+l)}),f&&(d-=f.width*l);var p={},m=-d/2;return Y(o,function(e){var n=s[e];p[e]=p[e]||{bandWidth:t,offset:m,width:n.width},m+=n.width*(1+l)}),p}function wle(e){return{seriesType:e,overallReset:function(t){var n=UB(e,KB);Rz(t,n,function(t){var r=Sle(t,e);Iz(t,n,function(e){var t=r.columnMap[JB(e)];e.getData().setLayout({bandWidth:t.bandWidth,offset:t.offset,size:t.width})})})}}}function Tle(e){return{seriesType:e,plan:cL(),reset:function(e){if(ele(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=DP(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=i.toGlobalCoord(i.dataToCoord(vle(i))),p=XB(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r=e.count,i=p&&nL(r*3),c=p&&s&&nL(r*3),l=p&&nL(r),v=n.master.getRect(),y=d?v.width:v.height,b,x=t.getStore(),S=0;(b=e.next())!=null;){var C=x.get(u?h:a,b),w=x.get(o,b),T=f,E=void 0;u&&(E=+C-x.get(a,b));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);u&&(T=n.dataToPoint([E,w])[0]),D=T,O=j[1]+_,k=j[0]-T,A=g,qO(k)s){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u??(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=+!r.getBaseAxis().isHorizontal();a[l]+=s+c/2}return a}return[NaN,NaN]},t.prototype.__requireStartValue=function(e){return this.getBaseAxis()!==e},t.type=`series.__base_bar__`,t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:`mod`,defaultBarGap:`10%`},t}(LI);LI.registerClass(ZB);var Ole=function(e){vS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return kP(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},t.prototype.getProgressive=function(){return this.get(`large`)?this.get(`progressive`):!1},t.prototype.__preparePipelineContext=function(e,t){var n=eA(this,e,t);return n.progressiveRender&&(n.large=!0),n},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=MP(ZB.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:`rgba(180, 180, 180, 0.2)`,borderColor:null,borderWidth:0,borderType:`solid`,borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:Q.color.primary,borderWidth:2}},realtimeSort:!1}),t}(ZB),QB=`\0__throttleOriginMethod`,$B=`\0__throttleRate`,eV=`\0__throttleType`;function tV(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t||=0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){var e=[...arguments];r=new Date().getTime(),c=this,l=e;var f=u||t,p=u||n;u=null,s=r-(p?i:a)-f,clearTimeout(o),p?o=setTimeout(d,f):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&=(clearTimeout(o),null)},f.debounceNextCall=function(e){u=e},f}function nV(e,t,n,r){var i=e[t];if(i){var a=i[QB]||i,o=i[eV];if(i[$B]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=tV(a,n,r===`debounce`),i[QB]=a,i[eV]=r,i[$B]=n}return i}}function rV(e,t){var n=e[t];n&&n[QB]&&(n.clear&&n.clear(),e[t]=n[QB])}var kle=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),iV=function(e){vS(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new kle},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=(a-i)*.5,s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=Math.PI*2,f=u?l-cMath.PI/2&&ua)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&=(e.getZr().off(`rendered`,this._onRendered),null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){sM(t,e,rA(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(uL),lV={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=sV(t.x,e.x),s=cV(t.x+t.width,i),c=sV(t.y,e.y),l=cV(t.y+t.height,a),u=si?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=cV(t.r,e.r),a=sV(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},uV={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new OO({shape:J({},r),z2:1});if(l.__dataIndex=n,l.name=`item`,a){var u=l.shape,d=i?`height`:`width`;u[d]=0}return l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?iV:Nj,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=Ale(hV(i),{isRoundCap:l===iV}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?nM:rM)(u,{shape:p},a)}return u}};function Ple(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function dV(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?nM:rM)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?nM:rM)(n,{shape:l},u,i)}function fV(e,t){for(var n=0;n0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function Lle(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function hV(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function gV(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(!s){var l=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,l)}else if(!a.get(`roundCap`)){var u=e.shape;J(u,Mle(r.getModel(`itemStyle`),u,!0)),e.setShape(u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=s?o?i.r>=i.r0?`endArc`:`startArc`:i.endAngle>=i.startAngle?`endAngle`:`startAngle`:o?Hle(i,a.coordinateSystem):Ule(i,a.coordinateSystem),p=ZM(r);XM(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:GI(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`||null,jle(e,h===`outside`?f:h,hV(o),r.get([`label`,`rotate`]))}koe(m,p,a.getRawValue(n),function(e){return KI(t,e)});var g=r.getModel([`emphasis`]);$A(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),tj(e,r),Lle(i)&&(e.style.fill=`none`,e.style.stroke=`none`,Y(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function Rle(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=e.get([`itemStyle`,`borderWidth`])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var zle=function(){function e(){}return e}(),_V=function(e){vS(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new zle},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c=0?n:null},30,!1);function Ble(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}function bV(e,t,n){if(gL(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}function Vle(e,t,n){return new(e.type===`polar`?Nj:OO)({shape:bV(t,n,e),silent:!0,z2:0})}function Hle(e,t){return e.height===0?t.getOtherAxis(t.getBaseAxis()).inverse?`bottom`:`top`:e.height>0?`bottom`:`top`}function Ule(e,t){return e.width===0?t.getOtherAxis(t.getBaseAxis()).inverse?`left`:`right`:e.width>=0?`right`:`left`}function Wle(e){e.registerChartView(Nle),e.registerSeriesModel(Ole),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,wle(`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Tle(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,QR(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})}),Dle(e)}function xV(e,t,n,r,i){var a=e+t;n.isSilent(a)||r.eachComponent({mainType:`series`,subType:`pie`},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&wV(e,i,t,n)}else{wV(e,t,t,n);var a=Yle(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&qle.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function Yle(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function Xle(e,t,n,r){e.addEventListener(t,n,r)}function Zle(e,t,n,r){e.removeEventListener(t,n,r)}var OV=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function kV(e){return e.which===2||e.which===3}var Qle=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a1&&r&&r.length>1){var a=AV(r)/AV(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=$le(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}},MV=`silent`;function eue(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:tue}}function tue(){OV(this.event)}var nue=function(e){UC(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(rD),NV=function(){function e(e,t){this.x=e,this.y=t}return e}(),rue=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],PV=new Aw(0,0,0,0),FV=function(e){UC(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new NV(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new nue,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new Kle(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(Y(rue,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=LV(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new NV(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new NV(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e||={};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=eue(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new NV(e,t);if(IV(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new Aw(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u===n||u.ignore||u.ignoreCoarsePointer||u.parent&&u.parent.ignoreCoarsePointer||(PV.copy(u.getBoundingRect()),u.transform&&PV.applyTransform(u.transform),PV.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function iue(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return!i||MV}return!1}function IV(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=iue(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==MV)){t.target=o;break}}}function LV(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var RV=32,zV=7;function aue(e){for(var t=0;e>=RV;)t|=e&1,e>>=1;return e+t}function BV(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function oue(e,t,n){for(n--;t>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function HV(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;cs&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function UV(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;cs&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function sue(e,t){var n=zV,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]=zV||m>=zV);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else{for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-HV(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c=zV||g>=zV);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;cs&&(c=s),VV(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}}var GV=!1;function KV(){GV||(GV=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function qV(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var cue=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=qV}return e.prototype.traverse=function(e,t){for(var n=0;n=0&&this._roots.splice(r,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),JV=CC.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function YV(){return new Date().getTime()}var lue=function(e){UC(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=YV()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)&&(r.ondestroy(),this.removeClip(r)),r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(JV(t),!e._paused&&e.update())}JV(t)},t.prototype.start=function(){this._running||(this._time=YV(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=YV(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=YV()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new nD(e,t.loop);return this.addAnimator(n),n},t}(rD),uue=300,XV=CC.domSupported,ZV=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:US(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),QV={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},$V=!1;function eH(e){var t=e.pointerType;return t===`pen`||t===`touch`}function due(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function tH(e){e&&(e.zrByTouch=!0)}function fue(e,t){return DV(e.dom,new pue(e,t),!0)}function nH(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var pue=function(){function e(e,t){this.stopPropagation=bC,this.stopImmediatePropagation=bC,this.preventDefault=bC,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),rH={mousedown:function(e){e=DV(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=DV(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger(`mousemove`,e)},mouseup:function(e){e=DV(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=DV(this.dom,e);var t=e.toElement||e.relatedTarget;nH(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){$V=!0,e=DV(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){$V||(e=DV(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=DV(this.dom,e),tH(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),rH.mousemove.call(this,e),rH.mousedown.call(this,e)},touchmove:function(e){e=DV(this.dom,e),tH(e),this.handler.processGesture(e,`change`),rH.mousemove.call(this,e)},touchend:function(e){e=DV(this.dom,e),tH(e),this.handler.processGesture(e,`end`),rH.mouseup.call(this,e),+new Date-this.__lastTouchMoment0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(e){this._disposed||(e||={},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t=0;o--)r[o]&&!Fk(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[yH],e},t.prototype.setTheme=function(e){this._theme=new dN(e),this._resetOption(`recreate`,null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i=t:n===`max`?e<=t:e===t}function Pue(e,t){return e.join(`,`)===t.join(`,`)}var wH=Y,TH=eC,EH=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function DH(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=EH.length;n0?e[n-1].seriesModel:null)}),Wue(e))})}function Wue(e){Y(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=ck(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var VH=function(){function e(){this.group=new yj,this.uid=AP(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();jC(VH),RC(VH);var HH=Lk(),UH={itemStyle:zC(uN,!0),lineStyle:zC(lN,!0)},Gue={lineStyle:`stroke`,itemStyle:`fill`};function WH(e,t){return e.visualStyleMapper||UH[t]||(console.warn(`Unknown style type '`+t+`'.`),UH.itemStyle)}function GH(e,t){return e.visualDrawType||Gue[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var Kue={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=WH(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=GH(e,r),c=a[s],l=XS(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||XS(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||XS(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=J({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},KH=new dN,que={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=WH(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){KH.option=n[r];var o=i(KH);J(e.ensureUniqueItemVisual(t,`style`),o),KH.option.decal&&(e.setItemVisual(t,`decal`,KH.option.decal),KH.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},Jue={performRawSeries:!0,overallReset:function(e){var t=_C();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();HH(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=HH(e).scope,a=GH(e,e.visualStyleAccessPath||`itemStyle`);r.each(function(e){var t=r.getRawIndex(e);n[t]=e}),t.each(function(o){var s=n[o];if(r.getItemVisual(s,`colorFromPalette`)){var c=r.ensureUniqueItemVisual(s,`style`),l=t.getName(o)||o+``,u=t.count();c[a]=e.getColorFromPalette(l,i,u)}})}})}},qH=Math.PI;function Yue(e,t){t||={},zS(t,{text:`loading`,textColor:Q.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:Q.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new yj,r=new OO({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new MO({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new OO({style:{fill:`none`},textContent:i,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new Hj({shape:{startAngle:-qH/2,endAngle:-qH/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:`round`,lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:qH*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:qH*3/2}).delay(300).start(`circularInOut`),n.add(o)),n.resize=function(){var n=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-s*2-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:l}),a.setShape({x:c-s,y:l-s,width:s*2,height:s*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var JH=function(){function e(e,t,n,r){this._stageTaskMap=_C(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid);e.pipelineContext=n.context=e.__preparePipelineContext?e.__preparePipelineContext(t,n):eA(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=_C();t.eachSeries(function(t){var i=e.painter.type===`canvas`&&t.getProgressive(),a=t.uid;r.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(t,t.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;Y(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});dC(!(r.reset&&r.overallReset),``),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;Y(e,function(e,s){if(!(r.visualType&&r.visualType!==e.visualType)){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}});function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=_C(),s=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l);function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||mI({plan:ede,reset:tde,count:rde}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||mI({reset:Xue});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=_C(),c=e.seriesType,l=e.getTargetSeries,u=e.dirtyOnOverallProgress,d=!1;dC(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):Y(n.getSeries(),f);function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,mI({reset:Zue,onDirty:$ue})));n.context={model:e,dirtyOnOverallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return XS(e)&&(e={overallReset:e,seriesType:ide(e)}),e.uid=AP(`stageHandler`),t&&(e.visualType=t),e},e}();function Xue(e){e.overallReset(e.ecModel,e.api,e.payload)}function Zue(e){return e.dirtyOnOverallProgress&&Que}function Que(){this.agent.dirty(),this.getDownstream().dirty()}function $ue(){this.agent&&this.agent.dirty()}function ede(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function tde(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Dk(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?US(t,function(e,t){return YH(t)}):nde}var nde=YH(0);function YH(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),aU=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],oU=aU.concat([`symbolKeepAspect`]),ode={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual(`legendIcon`,e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o=0&&pU(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function mU(e,t,n){for(var r=t.type===`radial`?_de(e,t,n):gde(e,t,n),i=t.colorStops,a=0;a0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:$S(e)?[e]:X(e)?e:null}function _U(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&yde(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=US(n,function(e){return e/i}),r/=i)}return[n,r]}var bde=new cO(!0);function vU(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function yU(e){return typeof e==`string`&&e!==`none`}function bU(e){var t=e.fill;return t!=null&&t!==`none`}function xU(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function SU(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function CU(e,t,n){var r=YC(t.image,t.__image,n);if(ZC(r)){var i=e.createPattern(r,t.repeat||`repeat`);if(typeof DOMMatrix==`function`&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*xC),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function xde(e,t,n,r,i){var a,o=vU(n),s=bU(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||bde,f=t.__dirty;if(!r){var p=n.fill,m=n.stroke,h=s&&!!p.colorStops,g=o&&!!m.colorStops,_=s&&!!p.image,v=o&&!!m.image,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0;(h||g)&&(C=t.getBoundingRect()),h&&(y=f?mU(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?mU(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?CU(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?CU(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),h?e.fillStyle=y:_&&(x?e.fillStyle=x:s=!1),g?e.strokeStyle=b:v&&(S?e.strokeStyle=S:o=!1)}var w=t.getGlobalScale();d.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,E;e.setLineDash&&n.lineDash&&(a=_U(t),T=a[0],E=a[1]);var D=!0;(u||f&4)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,l?c:1),T&&(e.setLineDash(T),e.lineDashOffset=E),r?(i.batchFill=s,i.batchStroke=o):n.strokeFirst?(o&&SU(e,n),s&&xU(e,n)):(s&&xU(e,n),o&&SU(e,n)),T&&e.setLineDash([])}function Sde(e,t,n){var r=t.__image=YC(n.image,t.__image,t,t.onload);if(r&&ZC(r)){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var l=n.sx,u=n.sy,d=o-l,f=s-u;e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function Cde(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=_U(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(vU(n)&&e.strokeText(i,n.x,n.y),bU(n)&&e.fillText(i,n.x,n.y)):(bU(n)&&e.fillText(i,n.x,n.y),vU(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var wU=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],TU=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function EU(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){NU(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?OD.opacity:o}(r||t.blend!==n.blend)&&(a||=(NU(e,i),!0),e.globalCompositeOperation=t.blend||OD.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[XU]){if(this._disposed)this.id;else{var r,i,a;if(eC(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[XU]=!0,EW(this),!this._model||t){var o=new Aue(this._api),s=this._theme,c=this._model=new bH;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},NW);var l={seriesTransition:a,optionChanged:!0};if(n)this[QU]={silent:r,updateParams:l},this[XU]=!1,this.getZr().wakeUp();else{try{cW(this),dW.update.call(this,null,l)}catch(e){throw this[QU]=null,this[XU]=!1,e}this._ssr||this._zr.flush(),this[QU]=null,this[XU]=!1,hW.call(this,r),gW.call(this,r)}}}},t.prototype.setTheme=function(e,t){if(!this[XU]){if(this._disposed)this.id;else{var n=this._model;if(n){var r=t&&t.silent,i=null;this[QU]&&(r??=this[QU].silent,i=this[QU].updateParams,this[QU]=null),this[XU]=!0,EW(this);try{this._updateTheme(e),n.setTheme(this._theme),cW(this),dW.update.call(this,{type:`setTheme`},i)}catch(e){throw this[XU]=!1,e}this[XU]=!1,hW.call(this,r),gW.call(this,r)}}}},t.prototype._updateTheme=function(e){ZS(e)&&(e=FW[e]),e&&(e=LS(e),e&&BH(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||CC.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e||={},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e||={},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return Y(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed)this.id;else{e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;Y(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return Y(r,function(e){e.group.ignore=!1}),a}},t.prototype.getConnectedDataURL=function(e){if(this._disposed)this.id;else{var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(RW[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();Y(LW,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(LS(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=d,s*=d,c*=d,l*=d;var f=c-o,p=l-s,m=TS.createCanvas(),h=uH(m,{renderer:t?`svg`:`canvas`});if(h.resize({width:f,height:p}),t){var g=``;return Y(u,function(e){var t=e.left-o,n=e.top-s;g+=``+e.dom+``}),h.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&h.painter.setBackgroundColor(e.connectedBackgroundColor),h.refreshImmediately(),h.painter.toDataURL()}return e.connectedBackgroundColor&&h.add(new OO({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),Y(u,function(e){var t=new CO({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});h.add(t)}),h.refreshImmediately(),m.toDataURL(`image/`+(e&&e.type||`png`))}return this.getDataURL(e)}},t.prototype.convertToPixel=function(e,t,n){return fW(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return fW(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return fW(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed)this.id;else{var n=this._model,r;return Y(Rk(n,e),function(e,n){n.indexOf(`Models`)>=0&&Y(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r||=!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(r||=a.containPoint(t,e))}},this)},this),!!r}},t.prototype.getVisual=function(e,t){var n=this._model,r=Rk(n,e,{defaultMainType:`series`}),i=r.seriesModel.getData(),a=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?i.indexOfRawIndex(r.dataIndex):null;return a==null?cU(i,t):sU(i,a,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;Y(qde,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&lU(i,function(e){var t=rA(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}if(t.eventData)return a=J({},t.eventData),!0},!0),a){var o=a.componentType,s=a.componentIndex;(o===`markLine`||o===`markPoint`||o===`markArea`)&&(o=`series`,s=a.seriesIndex);var c=o&&s!=null&&r.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:l},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;Y(jW,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),Gle(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,this.getDom()&&Uk(this.getDom(),zW,``);var e=this,t=e._api,n=e._model;Y(e._componentsViews,function(e){e.dispose(n,t)}),Y(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete LW[e.id]}},t.prototype.resize=function(e){if(!this[XU]){if(this._disposed)this.id;else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[QU]&&(r??=this[QU].silent,n=!0,this[QU]=null),this[XU]=!0,EW(this);try{n&&cW(this),dW.update.call(this,{type:`resize`,animation:J({duration:0},e&&e.animation)})}catch(e){throw this[XU]=!1,e}this[XU]=!1,hW.call(this,r),gW.call(this,r)}}}},t.prototype.showLoading=function(e,t){if(this._disposed)this.id;else if(eC(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),IW[e]){var n=IW[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=J({},e);return t.type=AW[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)this.id;else if(eC(t)||(t={silent:!!t}),kW[e.type]&&this._model){if(this[XU])this._pendingActions.push(e);else{var n=t.silent;mW.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&CC.browser.weChat&&this._throttledZrFlush(),hW.call(this,n),gW.call(this,n)}}},t.prototype.updateLabelLayout=function(){uU.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)this.id;else{var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){cW=function(e){Cz(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),lW(e,!0),lW(e,!1),t.plan()},lW=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;csC(t.get(`hoverLayerThreshold`),hH.hoverLayerThreshold)&&!CC.node&&!CC.worker;(e._usingTHL||a)&&(t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){var t=e.states.emphasis;t&&t.hoverLayer!==2&&(t.hoverLayer=+!!a)})}}),e._usingTHL=a)}}function a(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function o(e,t){if(!e.preventAutoZ){var n=BM(e);t.eachRendered(function(e){return HM(e,n.z,n.zlevel),!0})}}function s(e,t){t.eachRendered(function(e){if(!iM(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function c(e,t){var n=e.getModel(`stateAnimation`),i=e.isAnimationEnabled(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(iM(e))return;if(e instanceof xO&&Vae(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&r(e)}})}SW=function(e){return new(function(t){vS(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}return n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){BA(t,n),wW(e)},n.prototype.leaveEmphasis=function(t,n){VA(t,n),wW(e)},n.prototype.enterBlur=function(t){HA(t),wW(e)},n.prototype.leaveBlur=function(t){UA(t),wW(e)},n.prototype.enterSelect=function(t){WA(t),wW(e)},n.prototype.leaveSelect=function(t){GA(t),wW(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n.prototype.getECUpdateCycleVersion=function(){return e[ZU]},n.prototype.usingTHL=function(){return e._usingTHL},n}(pA))(e)},CW=function(e){function t(e,t){for(var n=0;n=0)){KW.push(n);var o=JH.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function JW(e,t){IW[e]=t}function tfe(e,t,n){var r=ude(`registerMap`);r&&r(e,t,n)}var nfe=Vse;GW(KU,Kue),GW(JU,que),GW(JU,Jue),GW(KU,ode),GW(JU,sde),GW(YU,jde),VW(BH),HW(Fde,Hue),JW(`default`,Yue),WW({type:xA,event:xA,update:xA},bC),WW({type:SA,event:SA,update:SA},bC),WW({type:CA,event:EA,update:CA,action:bC,refineEvent:YW,publishNonRefinedEvent:!0}),WW({type:wA,event:EA,update:wA,action:bC,refineEvent:YW,publishNonRefinedEvent:!0}),WW({type:TA,event:EA,update:TA,action:bC,refineEvent:YW,publishNonRefinedEvent:!0});function YW(e,t,n,r){return{eventContent:{selected:Iae(n),isFromClick:t.isFromClick||!1}}}BW(`default`,{}),BW(`dark`,iU);var XW=[],rfe={registerPreprocessor:VW,registerProcessor:HW,registerPostInit:Zde,registerPostUpdate:Qde,registerUpdateLifecycle:UW,registerAction:WW,registerCoordinateSystem:$de,registerLayout:efe,registerVisual:GW,registerTransform:nfe,registerLoading:JW,registerMap:tfe,registerImpl:lde,PRIORITY:Wde,ComponentModel:sI,ComponentView:VH,SeriesModel:LI,ChartView:uL,registerComponentModel:function(e){sI.registerClass(e)},registerComponentView:function(e){VH.registerClass(e)},registerSeriesModel:function(e){LI.registerClass(e)},registerChartView:function(e){uL.registerClass(e)},registerCustomSeries:function(e,t){dde(e,t)},registerSubTypeDefaulter:function(e,t){sI.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){bue(e,t)}};function ZW(e){X(e)?Y(e,function(e){ZW(e)}):BS(XW,e)>=0||(XW.push(e),XS(e)&&(e={install:e}),e.install(rfe))}var ife=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),QW=function(e){vS(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,Bk).models[0]},t.type=`cartesian2dAxis`,t}(sI);VS(QW,ife);var $W={show:!0,z:0,inverse:!1,name:``,nameLocation:`end`,nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:`...`,placeholder:`.`},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:`auto`,onZeroAxisIndex:null,lineStyle:{color:Q.color.axisLine,width:1,type:`solid`},symbol:[`none`,`none`],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:Q.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Q.color.axisSplitLine,width:1,type:`solid`}},splitArea:{show:!1,areaStyle:{color:[Q.color.backgroundTint,Q.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Q.color.neutral00,borderColor:Q.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:`auto`}},afe=RS({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},$W),eG=RS({boundaryGap:[0,0],axisLine:{show:`auto`},axisTick:{show:`auto`},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Q.color.axisMinorSplitLine,width:1}}},$W),ofe={category:afe,value:eG,time:RS({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},eG),log:zS({logBase:10},eG)};function tG(e,t,n,r){Y(pR,function(i,a){var o=RS(RS({},ofe[a],!0),r,!0),s=function(e){vS(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+a,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=iI(this),r=n?oI(e):{};RS(e,t.getTheme().get(a+`Axis`)),RS(e,this.getDefaultOption()),e.type=nG(e),n&&aI(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=SL.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){var t=pB();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,nG)}function nG(e){return e.type||(e.data?`category`:`value`)}var sfe=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return US(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),GS(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),rG=[`x`,`y`];function iG(e){return(e.type===`interval`||e.type===`time`)&&!lF(e)}var cfe=function(e){vS(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=KB,t.dimensions=rG,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(iG(e)&&iG(t)){var n=OL(e,null),r=OL(t,null),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(o&&s){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s,u=i[0]-n[0]*c,d=i[1]-r[0]*l,f=this._transform=[c,0,0,l,u,d];this._invTransform=iw([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis(`x`).containData(e[0])&&this.getAxis(`y`).containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new Aw(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n||=[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return mw(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t||=[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t,n){if(n||=[],this._invTransform)return mw(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e||=0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new Aw(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(sfe);function lfe(e,t){var n=e.scale,r=e.model,i=VB(n,r,r.ecModel,e,null),a=PL(n),o=PL(t)?t.intervalStub:t,s=a?n.intervalStub:n,c=n.base,l=o.getTicks(),u=o.getTicks({expandToNicedExtent:!0}),d=l.length-1,f,p,m;if(d===1)f=p=0,m=1;else if(d===2){var h=qO(l[0].value-l[1].value),g=qO(l[1].value-l[2].value);f=p=0,h===g?m=2:(m=1,h=C[1])return!0})):b[1]?(T=C[1],A(function(){if(P(),k=ik(O-E*m,D),j(),w<=C[0])return!0})):A(function(){k=ik(XO(C[0]/E)*E,D),O=ik(YO(C[1]/E)*E,D);var e=JO((O-k)/E);if(e<=m){var t=m-e,n=void 0,r=i.incl0||a;if(r&&C[0]===0)n=[0,t];else if(r&&C[1]===0)n=[t,0];else{var o=YO(t/2);n=t%2==0?[o,o]:w+T=C[1])return!0}})}kR(n,b,S,[w,T],x,{interval:E,intervalCount:m,intervalPrecision:D,niceExtent:[k,O]})}function aG(e,t){var n=PL(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=BL(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?dfe(r,t):ufe(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=LL(d)),i[0]||(s[0]=ik(YO(s[0]/u)*u,l)),i[1]||(s[1]=ik(XO(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),kR(e,i,o,s,a,c)}function ufe(e,t){var n=HL(t.splitNumber,5),r=kL(e),i=t.minInterval,a=t.maxInterval,o=hk(r/n,!0);i!=null&&oa&&(o=a);var s=LL(o),c=e.getExtent(),l=[ik(XO(c[0]/o)*o,s),ik(YO(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function dfe(e,t){var n=HL(t.splitNumber,10),r=e.getExtent(),i=kL(e),a=KO(pk(i),1);n/i*a<=.5&&(a*=10);var o=LL(a),s=[ik(XO(r[0]/a)*a,o),ik(YO(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function oG(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;ffe(t,n,r,i,null)}function ffe(e,t,n,r,i){var a=VB(e,t,r,n,i),o=ML(e)||NL(e);pfe(e,{splitNumber:t.get(`splitNumber`),fixMinMax:a.fixMM,userInterval:t.get(`interval`),minInterval:o?t.get(`minInterval`):null,maxInterval:o?t.get(`maxInterval`):null,rawExtentResult:a}),n&&r&&fle(n,e,a,r)}function pfe(e,t){mfe[e.type](e,t)}var mfe={interval:aG,log:aG,time:aR,ordinal:bC},sG=[[3,1],[0,2]],hfe=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=rG,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;Y(this._axesList,function(e){RB(e,1);var t=e.scale;FL(t)&&t.setSortInfo(e.model.get(`categorySortInfo`))});function r(e){for(var t=qS(e),n=[],r=t.length-1;r>=0;r--){var i=e[+t[r]];i.__alignTo?n.push(i):oG(i)}Y(n,function(e){_fe(e,e.__alignTo)?oG(e):lfe(e,e.__alignTo.scale)})}r(n.x),r(n.y);var i={};Y(n.x,function(e){cG(n,`y`,e,i)}),Y(n.y,function(e){cG(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=rI(e,t),i=this._rect=tI(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(dG(a,i),!n){var c=hG(i,o,a,s,t),l=void 0;if(s)pG?(pG(this._axesList,i),dG(a,i)):l=mG(i.clone(),`axisLabel`,null,i,a,c,r);else{var u=_G(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=mG(d,f,p,i,a,c,r))}gG(i,a,nz.determine,null,l,r),Y(this._coordsList,function(e){e.calcAffineTransform()})}},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}eC(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r=0;i--){var a=e[+t[i]];jL(a.scale)&&DR(a.model,a.type,!0)==null&&(a.model.get(`alignTicks`)&&a.model.get(`interval`)==null?r.push(a):n=a)}n||=r.pop(),n&&Y(r,function(e){e.__alignTo=n})}function _fe(e,t){return lF(e.scale)||lF(t.scale)||t.scale.getTicks().length<2}function vfe(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim===`x`?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=e.dim===`x`?function(e){return e-t}:function(e){return r-e+t}}function dG(e,t){Y(e.x,function(e){return fG(e,t.x,t.width)}),Y(e.y,function(e){return fG(e,t.y,t.height)})}function fG(e,t,n){var r=[0,n],i=+!!e.inverse;e.setExtent(r[i],r[1-i]),vfe(e,t)}var pG;function mG(e,t,n,r,i,a,o){gG(r,i,nz.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=KS(s,function(e){return e>0})==null;return AM(r,s,!0,!0,n),dG(i,r),c;function l(e){Y(i[uM[e]],function(t){if(ER(t.model)){var n=a.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i0&&!aC(t)&&t>1e-4&&(e/=t),e}}function hG(e,t,n,r,i){var a=new _B(vG);return Y(n,function(n){return Y(n,function(n){if(ER(n.model)){var o=!r;n.axisBuilder=nle(e,t,n.model,i,a,o)}})}),a}function gG(e,t,n,r,i,a){var o=n===nz.determine;Y(t,function(t){return Y(t,function(t){ER(t.model)&&(rle(t.axisBuilder,e,t.model),t.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};c(0),c(1);function c(t){s[uM[1-t]]=e[dM[t]]<=a.refContainer[dM[t]]*.5?0:1-t==1?2:1}Y(t,function(e,t){return Y(e,function(e){ER(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function _G(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():(i==null||i===`auto`)&&(r=tI(e.get(`outerBounds`,!0)||WB,n.refContainer));var a=e.get(`outerBoundsContain`,!0),o=a==null||a===`auto`||BS([`all`,`axisLabel`],a)<0?`all`:a,s=[nk(sC(e.get(`outerBoundsClampWidth`,!0),GB[0]),t.width),nk(sC(e.get(`outerBoundsClampHeight`,!0),GB[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var vG=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;bB(e,t,n,r,i,a),TR(e.nameLocation)||Y(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&SB(e.labelInfoList,e.dirVec,r,i)})};function yG(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return bG(n,e,t),n.seriesInvolved&&SG(n,e),n}function bG(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];Y(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=kG(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(Y(n.getAxes(),YS(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&Y(f.baseAxes,YS(p,!d||`cross`,u)),d&&Y(f.otherAxes,YS(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(f&&(f!==`auto`||r||OG(d))){s??=d.get(`triggerTooltip`),d=r?xG(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=kG(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:OG(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=CG(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function xG(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};Y(s,function(e){c[e]=LS(o.get(e))}),c.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(c.type=`line`);var l=c.label||={};if(l.show??=!1,i===`cross`&&(l.show=o.get([`label`,`show`])??!0,!a)){var u=c.lineStyle=o.get(`crossStyle`);u&&zS(l,u.textStyle)}return e.model.getModel(`axisPointer`,new dN(c,n,r))}function SG(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);n&&n.model&&r!==`none`&&r!==!1&&r!==`item`&&i!==!1&&t.get([`axisPointer`,`show`],!0)!==!1&&Y(e.coordSysAxesInfo[kG(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount??=0,e.seriesDataCount+=t.getData().count())})})}function CG(e,t){for(var n=t.model,r=t.dim,i=0;i=0||e===t}function TG(e){var t=EG(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=OG(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent();(o==null||o>c[1])&&(o=c[1]),o3?1.4:i>1?1.2:1.1,c=r>0?s:1/s;this._checkTriggerMoveZoom(this,`zoom`,`zoomOnMouseWheel`,e,{scale:c,originX:a,originY:o,isAvailableBehavior:null})}if(n){var l=Math.abs(r),u=(r>0?1:-1)*(l>3?.4:l>1?.15:.05);this._checkTriggerMoveZoom(this,`scrollMove`,`moveOnMouseWheel`,e,{scrollDelta:u,originX:a,originY:o,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(WG(this._zr,`globalPan`)||JG(e))){var t=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,`zoom`,null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,t,n,r,i){e._checkPointer(r,i.originX,i.originY)&&(OV(r.event),r.__ecRoamConsumed=!0,tK(e,t,n,r,i))},t}(rD);function JG(e){return e.__ecRoamConsumed}var YG=Lk();function XG(e){var t=YG(e);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function ZG(e,t,n,r){for(var i=XG(e).roam,a=i[t]=i[t]||[],o=0;o1e-6;KK[0]=o?(i[0]-r.x)/a:i[0],KK[1]=o?(i[1]-r.y)/a:i[1],mw(KK,KK,e.mtRawInv);var s=HK(e,KK);qK(t,s,a),Y(n,function(e){e!==t&&qK(e,s.slice(),a)})}var KK=[];function qK(e,t,n){var r=e.option;r.center=t,r.zoom=n}function JK(e,t){if(t){var n=t.min||0,r=t.max||1/0;e=Math.max(Math.min(r,e),n)}return e}function YK(e,t,n,r,i,a,o,s){if(!LK(e)){n.disable();return}n.enable(sC(e.get(`roam`),o),{api:t,zInfo:{component:e},triggerInfo:{roamTrigger:e.get(`roamTrigger`),isInSelf:r,isInClip:function(e,t,n){return!i||i.contain(t,n)}}});function c(n){var r=e.mainType,i=WM(zS({type:$K(r,e.subType,fA)},n));s&&(i.componentType=r),i[r+`Id`]=e.id,t.dispatchAction(i)}n.off(`pan`).off(`zoom`).on(`pan`,function(e){a&&a(`pan`),c({dx:e.dx,dy:e.dy})}).on(`zoom`,function(e){a&&a(`zoom`),c({zoom:e.scale,originX:e.originX,originY:e.originY})})}function XK(e){return function(t,n,r){return ZK.copy(e.getBoundingRect()),ZK.applyTransform(e.getComputedTransform()),ZK.contain(n,r)}}var ZK=new Aw(0,0,0,0);function QK(e,t,n){var r=$K(t,n,fA);e.registerAction({type:r,event:r,update:`none`},function(e,r,i){r.eachComponent(Hk(e,t,n),function(t){IK(e,t),RK(e,t,r,i)})})}function $K(e,t,n){return(e===`series`?t===`map`?`geo`:t:e)+n}function eq(e,t,n,r,i,a,o){var s=new aK(null,WK(e.ecModel,t));return gK(s,n,r,i,a),o?_K(s,o.x,o.y,o.width,o.height):_K(s,n,r,i,a),hK(s,e),s}var tq=Lk();function nq(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:`data`}),e.datas=e.mainData=null,lq(t,n,e),Y(n,function(n){Y(t.TRANSFERABLE_METHODS,function(t){n.wrapMethod(t,YS(rq,e))})}),t.wrapMethod(`cloneShallow`,YS(aq,e)),Y(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,YS(iq,e))}),dC(n[t.dataType]===t)}function rq(e,t){if(cq(this)){var n=J({},tq(this).datas);n[this.dataType]=t,lq(t,n,e)}else uq(t,this.dataType,tq(this).mainData,e);return t}function iq(e,t){return e.struct&&e.struct.update(),t}function aq(e,t){return Y(tq(t).datas,function(n,r){n!==t&&uq(n.cloneShallow(),r,t,e)}),t}function oq(e){var t=tq(this).mainData;return e==null||t==null?t:tq(t).datas[e]}function sq(){var e=tq(this).mainData;return e==null?[{data:e}]:US(qS(tq(e).datas),function(t){return{type:t,data:tq(e).datas[t]}})}function cq(e){return tq(e).mainData===e}function lq(e,t,n){tq(e).datas={},Y(t,function(t,r){uq(t,r,e,n)})}function uq(e,t,n,r){tq(n).datas[t]=e,tq(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=oq,e.getLinkedDataAll=sq}var dq=Y,fq=eC,pq=-1,mq=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=LS(t);this.type=r,this.mappingMethod=n,this._normalizeData=Eq[n];var a=e.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],n===`piecewise`?(_q(i),hq(i)):n===`category`?i.categories?gq(i):_q(i,!0):(dC(n!==`linear`||i.dataExtent),_q(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return JS(this._normalizeData,this)},e.listVisualTypes=function(){return qS(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){eC(e)?Y(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,a=X(t)?[]:eC(t)?{}:(i=!0,null);return e.eachVisual(t,function(e,t){var o=n.call(r,e,t);i?a=o:a[t]=o}),a},e.retrieveVisuals=function(t){var n={},r;return t&&dq(e.visualHandlers,function(e,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(e){if(X(e))e=e.slice();else if(fq(e)){var t=[];dq(e,function(e,n){t.push(n)}),e=t}else return[];return e.sort(function(e,t){return t===`color`&&e!==`color`&&e.indexOf(`color`)===0?1:-1}),e},e.dependsOn=function(e,t){return t===`color`?!!(e&&e.indexOf(t)===0):e===t},e.findPieceIndex=function(e,t,n){for(var r,i=1/0,a=0,o=t.length;a=0;a--)r[a]??(delete n[t[a]],t.pop())}function _q(e,t){var n=e.visual,r=[];eC(n)?dq(n,function(e){r.push(e)}):n!=null&&r.push(n),!t&&r.length===1&&!{color:1,symbol:1}.hasOwnProperty(e.type)&&(r[1]=r[0]),Tq(e,r)}function vq(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r(`color`,e(n(`color`),i))},_normalizedToVisual:Cq([0,1])}}function yq(e){var t=this.option.visual;return t[Math.round(ek(e,[0,1],[0,t.length-1],!0))]||{}}function bq(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function xq(e){var t=this.option.visual;return t[this.option.loop&&e!==pq?e%t.length:e]}function Sq(){return this.option.visual[0]}function Cq(e){return{linear:function(t){return ek(t,e,this.option.visual,!0)},category:xq,piecewise:function(t,n){var r=wq.call(this,n);return r??=ek(t,e,this.option.visual,!0),r},fixed:Sq}}function wq(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[mq.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function Tq(e,t){return e.visual=t,e.type===`color`&&(e.parsedVisual=US(t,function(e){return tE(e)||[0,0,0,1]})),t}var Eq={linear:function(e){return ek(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=mq.findPieceIndex(e,t,!0);if(n!=null)return ek(n,[0,t.length-1],[0,1],!0)},category:function(e){return(this.option.categories?this.option.categoryMap[e]:e)??pq},fixed:bC};function Dq(e,t,n){return e?t<=n:t=0&&e.call(t,n[i],i)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,r=n.length,i=0;i=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},e.prototype.breadthFirstTraverse=function(e,t,n,r){if(t instanceof Aq||(t=this._nodesMap[Oq(t)]),t){for(var i=n===`out`?`outEdges`:n===`in`?`inEdges`:`edges`,a=0;a=0&&n.node2.dataIndex>=0});for(var i=0,a=r.length;i=0&&!e.hasKey(p)&&(e.set(p,!0),a.push(f.node1))}for(s=0;s=0&&!e.hasKey(v)&&(e.set(v,!0),o.push(_.node2))}}}return{edge:e.keys(),node:t.keys()}},e}(),jq=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=n??-1}return e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var e=_C(),t=_C();e.set(this.dataIndex,!0);for(var n=[this.node1],r=[this.node2],i=0;i=0&&!e.hasKey(u)&&(e.set(u,!0),n.push(l.node1))}for(i=0;i=0&&!e.hasKey(m)&&(e.set(m,!0),r.push(p.node2))}return{edge:e.keys(),node:t.keys()}},e}();function Mq(e,t){return{getValue:function(n){var r=this[e][t];return r.getStore().get(r.getDimensionIndex(n||`value`),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}VS(Aq,Mq(`hostGraph`,`data`)),VS(jq,Mq(`hostGraph`,`edgeData`));function Nq(e,t,n,r,i){for(var a=new kq(r),o=0;o `+f)),l++)}var p=n.get(`coordinateSystem`),m;if(p===`cartesian2d`||p===`polar`||p===`matrix`)m=kP(e,n);else{var h=wP.get(p),g=h&&h.dimensions||[];BS(g,`value`)<0&&g.concat([`value`]);var _=xP(e,{coordDimensions:g,encodeDefine:n.getEncode()}).dimensions;m=new bP(_,n),m.initData(e)}var v=new bP([`value`],n);return v.initData(c,s),i&&i(m,v),nq({mainData:m,struct:a,structAttr:`graph`,datas:{node:m,edge:v},datasAttr:{node:`data`,edge:`edgeData`}}),a.update(),a}var Pq=Rj.prototype,Fq=Vj.prototype,Iq=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){vS(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Iq);function Lq(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var Rq=function(e){vS(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-line`,n}return t.prototype.getDefaultStyle=function(){return{stroke:Q.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new Iq},t.prototype.buildPath=function(e,t){Lq(t)?Pq.buildPath.call(this,e,t):Fq.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return Lq(this.shape)?Pq.pointAt.call(this,e):Fq.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=Lq(t)?[t.x2-t.x1,t.y2-t.y1]:Fq.tangentAt.call(this,e);return dw(n,n)},t}(xO),zq=[`fromSymbol`,`toSymbol`];function Bq(e){return`_`+e+`Type`}function Vq(e,t,n){var r=t.getItemVisual(n,e);if(!r||r===`none`)return r;var i=t.getItemVisual(n,e+`Size`),a=t.getItemVisual(n,e+`Rotate`),o=t.getItemVisual(n,e+`Offset`),s=t.getItemVisual(n,e+`KeepAspect`),c=UI(i),l=WI(o||0,c);return r+c+l+(a||``)+(s||``)}function Hq(e,t,n){var r=t.getItemVisual(n,e);if(r&&r!==`none`){var i=t.getItemVisual(n,e+`Size`),a=t.getItemVisual(n,e+`Rotate`),o=t.getItemVisual(n,e+`Offset`),s=t.getItemVisual(n,e+`KeepAspect`),c=UI(i),l=WI(o||0,c),u=HI(r,-c[0]/2+l[0],-c[1]/2+l[1],c[0],c[1],null,s);return u.__specifiedRotation=a==null||isNaN(a)?void 0:a*Math.PI/180||0,u.name=e,u}}function Uq(e){var t=new Rq({name:`line`,subPixelOptimize:!0});return Wq(t.shape,e),t}function Wq(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var Gq=function(e){vS(t,e);function t(t,n,r){var i=e.call(this)||this;return i._createLine(t,n,r),i}return t.prototype._createLine=function(e,t,n){var r=e.hostModel,i=e.getItemLayout(t),a=e.getItemVisual(t,`z2`),o=Uq(i);o.shape.percent=0,rM(o,{z2:sC(a,0),shape:{percent:1}},r,t),this.add(o),Y(zq,function(n){var r=Hq(n,e,t);this.add(r),this[Bq(n)]=Vq(n,e,t)},this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel,i=this.childOfName(`line`),a=e.getItemLayout(t),o={shape:{}};Wq(o.shape,a),nM(i,o,r,t),Y(zq,function(n){var r=Vq(n,e,t),i=Bq(n);if(this[i]!==r){this.remove(this.childOfName(n));var a=Hq(n,e,t);this.add(a)}this[i]=r},this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var r=e.hostModel,i=this.childOfName(`line`),a=n&&n.emphasisLineStyle,o=n&&n.blurLineStyle,s=n&&n.selectLineStyle,c=n&&n.labelStatesModels,l=n&&n.emphasisDisabled,u=n&&n.focus,d=n&&n.blurScope;if(!n||e.hasItemOption){var f=e.getItemModel(t),p=f.getModel(`emphasis`);a=p.getModel(`lineStyle`).getLineStyle(),o=f.getModel([`blur`,`lineStyle`]).getLineStyle(),s=f.getModel([`select`,`lineStyle`]).getLineStyle(),l=p.get(`disabled`),u=p.get(`focus`),d=p.get(`blurScope`),c=ZM(f)}var m=e.getItemVisual(t,`style`),h=m.stroke;i.useStyle(m),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState(`emphasis`).style=a,i.ensureState(`blur`).style=o,i.ensureState(`select`).style=s,Y(zq,function(e){var t=this.childOfName(e);if(t){t.setColor(h),t.style.opacity=m.opacity;for(var n=0;n0&&(y[0]=-y[0],y[1]=-y[1]);var x=v[0]<0?-1:1;if(r.__position!==`start`&&r.__position!==`end`){var S=-Math.atan2(v[1],v[0]);l[0].8?`left`:u[0]<-.8?`right`:`center`,p=u[1]>.8?`top`:u[1]<-.8?`bottom`:`middle`;break;case`start`:r.x=-u[0]*h+c[0],r.y=-u[1]*g+c[1],f=u[0]>.8?`right`:u[0]<-.8?`left`:`center`,p=u[1]>.8?`bottom`:u[1]<-.8?`top`:`middle`;break;case`insideStartTop`:case`insideStart`:case`insideStartBottom`:r.x=h*x+c[0],r.y=c[1]+C,f=v[0]<0?`right`:`left`,r.originX=-h*x,r.originY=-C;break;case`insideMiddleTop`:case`insideMiddle`:case`insideMiddleBottom`:case`middle`:r.x=b[0],r.y=b[1]+C,f=`center`,r.originY=-C;break;case`insideEndTop`:case`insideEnd`:case`insideEndBottom`:r.x=-h*x+l[0],r.y=l[1]+C,f=v[0]>=0?`right`:`left`,r.originX=h*x,r.originY=-C}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||p,align:r.__align||f})}},t}(yj),Kq=function(){function e(e){this.group=new yj,this._LineCtor=e||Gq}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=e,i||r.removeAll();var a=Jq(e);e.diff(i).add(function(n){t._doAdd(e,n,a)}).update(function(n,r){t._doUpdate(i,e,r,n,a)}).remove(function(e){r.remove(i.getItemGraphicEl(e))}).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Jq(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[];function r(e){!e.isGroup&&!qq(e)&&(e.incremental=n,e.ensureState(`emphasis`).hoverLayer=2)}for(var i=e.start;i0}function Jq(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{lineStyle:t.getModel(`lineStyle`).getLineStyle(),emphasisLineStyle:n.getModel([`lineStyle`]).getLineStyle(),blurLineStyle:t.getModel([`blur`,`lineStyle`]).getLineStyle(),selectLineStyle:t.getModel([`select`,`lineStyle`]).getLineStyle(),emphasisDisabled:n.get(`disabled`),blurScope:n.get(`blurScope`),focus:n.get(`focus`),labelStatesModels:ZM(t)}}function Yq(e){return isNaN(e[0])||isNaN(e[1])}function Xq(e){return e&&!Yq(e[0])&&!Yq(e[1])}function Zq(e,t,n,r,i,a){e||=0;var o=ck(n[1],-n[0]);if(i!=null&&(i=$q(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),r===`all`){var s=Math.abs(ck(t[1],-t[0]));s=$q(s,[0,o]),i=a=$q(s,[i,a]),r=0}t[0]=$q(t[0],n),t[1]=$q(t[1],n);var c=Qq(t,r);t[r]+=e;var l=i||0,u=n.slice();c.sign<0?u[0]=ck(u[0],l):u[1]=ck(u[1],-l),t[r]=$q(t[r],u);var d=Qq(t,r);return i!=null&&(d.sign!==c.sign||d.spana&&(t[1-r]=ck(t[r],d.sign*a)),t}function Qq(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function $q(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}var eJ=`sankey`,tJ=function(e){vS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=e.levels||[];this.levelModels=[];for(var a=this.levelModels,o=0;o=0&&(a[i[o].depth]=new dN(i[o],this,t));return Nq(r,n,this,!0,s).data;function s(e,t){e.wrapMethod(`getItemModel`,function(e,t){var n=e.parentModel,r=n.getData().getItemLayout(t);if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e}),t.wrapMethod(`getItemModel`,function(e,t){var n=e.parentModel,r=n.getGraph().getEdgeByIndex(t).node1.getLayout();if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e})}},t.prototype.setNodePosition=function(e,t){var n=(this.option.data||this.option.nodes)[e];n.localX=t[0],n.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function r(e){return isNaN(e)||e==null}if(n===`edge`){var i=this.getDataParams(e,n),a=i.data,o=i.value;return EI(`nameValue`,{name:a.source+` -- `+a.target,value:o,noValue:r(o)})}var s=this.getGraph().getNodeByIndex(e).getLayout().value,c=this.getDataParams(e,n).data.name;return EI(`nameValue`,{name:c==null?null:c+``,value:s,noValue:r(s)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);return r.value==null&&n===`node`&&(r.value=this.getGraph().getNodeByIndex(t).getLayout().value),r},t.prototype.__ownRoamView=function(){return this.coordinateSystem},t.type=`series.`+eJ,t.layoutMode=`box`,t.defaultOption={z:2,coordinateSystemUsage:`box`,left:`5%`,top:`5%`,right:`20%`,bottom:`5%`,orient:`horizontal`,nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:`global`,center:null,zoom:1,label:{show:!0,position:`right`,fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:`justify`,lineStyle:{color:Q.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:Q.color.primary}},animationEasing:`linear`,animationDuration:1e3},t}(LI),nJ=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),rJ=function(e){vS(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new nJ},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),t.orient===`vertical`?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){BA(this)},t.prototype.downplay=function(){VA(this)},t}(xO),iJ=function(e){vS(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=eJ,t._mainGroup=new yj,t}return t.prototype.init=function(e,t){this._controller=new qG(t.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},t.prototype.render=function(e,t,n){var r=e.getGraph(),i=this._mainGroup,a=e.layoutInfo,o=a.width,s=a.height,c=e.getData(),l=e.getData(`edge`),u=e.get(`orient`);i.removeAll(),i.x=a.x,i.y=a.y,this._updateViewCoordSys(e,n),YK(e,n,this._controller,XK(i),null),r.eachEdge(function(t){var n=new rJ,r=rA(n);r.dataIndex=t.dataIndex,r.seriesIndex=e.seriesIndex,r.dataType=`edge`;var a=t.getModel(),c=a.getModel(`lineStyle`),d=c.get(`curveness`),f=t.node1.getLayout(),p=t.node1.getModel(),m=p.get(`localX`),h=p.get(`localY`),g=t.node2.getLayout(),_=t.node2.getModel(),v=_.get(`localX`),y=_.get(`localY`),b=t.getLayout(),x,S,C,w,T,E,D,O;n.shape.extent=Math.max(1,b.dy),n.shape.orient=u,u===`vertical`?(x=(m==null?f.x:m*o)+b.sy,S=(h==null?f.y:h*s)+f.dy,C=(v==null?g.x:v*o)+b.ty,w=y==null?g.y:y*s,T=x,E=S*(1-d)+w*d,D=C,O=S*d+w*(1-d)):(x=(m==null?f.x:m*o)+f.dx,S=(h==null?f.y:h*s)+b.sy,C=v==null?g.x:v*o,w=(y==null?g.y:y*s)+b.ty,T=x*(1-d)+C*d,E=S,D=x*d+C*(1-d),O=w),n.setShape({x1:x,y1:S,x2:C,y2:w,cpx1:T,cpy1:E,cpx2:D,cpy2:O}),n.useStyle(c.getItemStyle()),aJ(n.style,u,t);var k=``+a.get(`value`),A=ZM(a,`edgeLabel`);XM(n,A,{labelFetcher:{getFormattedLabel:function(t,n,r,i,a,o){return e.getFormattedLabel(t,n,`edge`,i,cC(a,A.normal&&A.normal.get(`formatter`),k),o)}},labelDataIndex:t.dataIndex,defaultText:k}),n.setTextConfig({position:`inside`});var j=a.getModel(`emphasis`);tj(n,a,`lineStyle`,function(e){var n=e.getItemStyle();return aJ(n,u,t),n}),i.add(n),l.setItemGraphicEl(t.dataIndex,n);var M=j.get(`focus`);$A(n,M===`adjacency`?t.getAdjacentDataIndices():M===`trajectory`?t.getTrajectoryDataIndices():M,j.get(`blurScope`),j.get(`disabled`))}),r.eachNode(function(t){var n=t.getLayout(),r=t.getModel(),a=r.get(`localX`),l=r.get(`localY`),u=r.getModel(`emphasis`),d=r.get([`itemStyle`,`borderRadius`])||0,f=new OO({shape:{x:a==null?n.x:a*o,y:l==null?n.y:l*s,width:n.dx,height:n.dy,r:d},style:r.getModel(`itemStyle`).getItemStyle(),z2:10});XM(f,ZM(r),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(t,n,`node`)}},labelDataIndex:t.dataIndex,defaultText:t.id}),f.disableLabelAnimation=!0,f.setStyle(`fill`,t.getVisual(`color`)),f.setStyle(`decal`,t.getVisual(`style`).decal),tj(f,r),i.add(f),c.setItemGraphicEl(t.dataIndex,f),rA(f).dataType=`node`;var p=u.get(`focus`);$A(f,p===`adjacency`?t.getAdjacentDataIndices():p===`trajectory`?t.getTrajectoryDataIndices():p,u.get(`blurScope`),u.get(`disabled`))}),c.eachItemGraphicEl(function(t,r){c.getItemModel(r).get(`draggable`)&&(t.drift=function(t,i){this.shape.x+=t,this.shape.y+=i,this.dirty(),n.dispatchAction({type:`dragNode`,seriesId:e.id,dataIndex:c.getRawIndex(r),localX:this.shape.x/o,localY:this.shape.y/s})},t.draggable=!0,t.cursor=`move`)}),!this._data&&e.isAnimationEnabled()&&i.setClipPath(oJ(i.getBoundingRect(),e,function(){i.removeClipPath()})),this._data=e.getData(),this._firstRender=!1},t.prototype.__updateOnOwnRoam=function(e,t,n){MK(this.group,2,t.coordinateSystem,null)},t.prototype.dispose=function(){this._controller&&this._controller.dispose()},t.prototype._updateViewCoordSys=function(e,t){var n=e.layoutInfo,r=e.coordinateSystem=eq(e,t,n.x,n.y,n.width,n.height);MK(this.group,2,r,this._firstRender?null:e)},t.type=eJ,t}(uL);function aJ(e,t,n){switch(e.fill){case`source`:e.fill=n.node1.getVisual(`color`),e.decal=n.node1.getVisual(`style`).decal;break;case`target`:e.fill=n.node2.getVisual(`color`),e.decal=n.node2.getVisual(`style`).decal;break;case`gradient`:var r=n.node1.getVisual(`color`),i=n.node2.getVisual(`color`);ZS(r)&&ZS(i)&&(e.fill=new Gj(0,0,+(t===`horizontal`),+(t===`vertical`),[{color:r,offset:0},{color:i,offset:1}]))}}function oJ(e,t,n){var r=new OO({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return rM(r,{shape:{width:e.width+20}},t,n),r}var sJ=tA(eJ,cJ);function cJ(e,t){e.eachSeriesByType(eJ,function(e){var n=e.get(`nodeWidth`),r=e.get(`nodeGap`),i=rI(e,t).refContainer,a=tI(e.getBoxLayoutParams(),i);e.layoutInfo=a;var o=a.width,s=a.height,c=e.getGraph(),l=c.nodes,u=c.edges;uJ(l),lJ(l,u,n,r,o,s,GS(l,function(e){return e.getLayout().value===0}).length===0?e.get(`layoutIterations`):0,e.get(`orient`),e.get(`nodeAlign`))})}function lJ(e,t,n,r,i,a,o,s,c){dJ(e,t,n,i,a,s,c),gJ(e,t,a,i,r,o,s),kJ(e,s)}function uJ(e){Y(e,function(e){var t=DJ(e.outEdges,EJ),n=DJ(e.inEdges,EJ),r=e.getValue()||0,i=Math.max(t,n,r);e.setLayout({value:i},!0)})}function dJ(e,t,n,r,i,a,o){for(var s=[],c=[],l=[],u=[],d=0,f=0;f=0;_&&g.depth>p&&(p=g.depth),h.setLayout({depth:_?g.depth:d},!0),a===`vertical`?h.setLayout({dy:n},!0):h.setLayout({dx:n},!0);for(var v=0;vd-1?p:d-1;o&&o!==`left`&&pJ(e,o,a,C),hJ(e,a===`vertical`?(i-n)/C:(r-n)/C,a)}function fJ(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function pJ(e,t,n,r){if(t===`right`){for(var i=[],a=e,o=0;a.length;){for(var s=0;s0;a--)c*=.99,bJ(s,c,o),yJ(s,i,n,r,o),OJ(s,c,o),yJ(s,i,n,r,o)}function _J(e,t){var n=[],r=t===`vertical`?`y`:`x`,i=gae(e,function(e){return e.getLayout()[r]});return ak(i.keys),Y(i.keys,function(e){n.push(i.buckets.get(e))}),n}function vJ(e,t,n,r,i,a){var o=1/0;Y(e,function(e){var t=e.length,s=0;Y(e,function(e){s+=e.getLayout().value});var c=a===`vertical`?(r-(t-1)*i)/s:(n-(t-1)*i)/s;c0&&(o=s.getLayout()[a]+c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),l=s.getLayout()[a]+s.getLayout()[d]+t;var p=i===`vertical`?r:n;if(c=l-t-p,c>0){o=s.getLayout()[a]-c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0),l=o;for(var f=u-2;f>=0;--f)s=e[f],c=s.getLayout()[a]+s.getLayout()[d]+t-l,c>0&&(o=s.getLayout()[a]-c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),l=s.getLayout()[a]}})}function bJ(e,t,n){Y(e.slice().reverse(),function(e){Y(e,function(e){if(e.outEdges.length){var r=DJ(e.outEdges,xJ,n)/DJ(e.outEdges,EJ);if(isNaN(r)){var i=e.outEdges.length;r=i?DJ(e.outEdges,SJ,n)/i:0}if(n===`vertical`){var a=e.getLayout().x+(r-TJ(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-TJ(e,n))*t;e.setLayout({y:o},!0)}}})})}function xJ(e,t){return TJ(e.node2,t)*e.getValue()}function SJ(e,t){return TJ(e.node2,t)}function CJ(e,t){return TJ(e.node1,t)*e.getValue()}function wJ(e,t){return TJ(e.node1,t)}function TJ(e,t){return t===`vertical`?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function EJ(e){return e.getValue()}function DJ(e,t,n){for(var r=0,i=e.length,a=-1;++aa&&(a=t)}),Y(n,function(t){var n=new mq({type:`color`,mappingMethod:`linear`,dataExtent:[i,a],visual:e.get(`color`)}).mapValueToVisual(t.getLayout().value),r=t.getModel().get([`itemStyle`,`color`]);r==null?(t.setVisual(`color`,n),t.setVisual(`style`,{fill:n})):(t.setVisual(`color`,r),t.setVisual(`style`,{fill:r}))})}r.length&&Y(r,function(e){var t=e.getModel().get(`lineStyle`);e.setVisual(`style`,t)})})}function MJ(e){e.registerChartView(iJ),e.registerSeriesModel(tJ),e.registerLayout(sJ),e.registerVisual(AJ),e.registerAction({type:`dragNode`,event:`dragnode`,update:`update`},function(e,t){t.eachComponent({mainType:iA,subType:eJ,query:e},function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])})}),QK(e,iA,eJ)}var NJ=256,PJ=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=TS.createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,r,i,a){var o=this._getBrush(),s=this._getGradient(i,`inRange`),c=this._getGradient(i,`outOfRange`),l=this.pointSize+this.blurSize,u=this.canvas,d=u.getContext(`2d`),f=e.length;u.width=t,u.height=n;for(var p=0;p0){var E=a(v)?s:c;v>0&&(v=v*w+C),b[x++]=E[T],b[x++]=E[T+1],b[x++]=E[T+2],b[x++]=E[T+3]*v*256}else x+=4}return d.putImageData(y,0,0),u},e.prototype._getBrush=function(){var e=this._brushCanvas||=TS.createCanvas(),t=this.pointSize+this.blurSize,n=t*2;e.width=n,e.height=n;var r=e.getContext(`2d`);return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor=Q.color.neutral99,r.beginPath(),r.arc(-t,t,this.pointSize,0,Math.PI*2,!0),r.closePath(),r.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,r=n[t]||(n[t]=new Uint8ClampedArray(1024)),i=[0,0,0,0],a=0,o=0;o<256;o++)e[t](o/255,!0,i),r[a++]=i[0],r[a++]=i[1],r[a++]=i[2],r[a++]=i[3];return r},e}();function FJ(e,t,n){var r=e[1]-e[0];t=US(t,function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}});var i=t.length,a=0;return function(e){for(var r=a;r=0;r--){var o=t[r].interval;if(o[0]<=e&&e<=o[1]){a=r;break}}return r>=0&&r=t[0]&&e<=t[1]}}var LJ=function(e){vS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r;t.eachComponent(`visualMap`,function(t){t.eachTargetSeries(function(n){n===e&&(r=t)})}),this._progressiveEls=null,this.group.removeAll();var i=e.coordinateSystem;i.type===`cartesian2d`||i.type===`calendar`||i.type===`matrix`?this._renderOnGridLike(e,n,0,e.getData().count()):_L(i)&&this._renderOnGeo(i,e,r,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,r){var i=t.coordinateSystem;i&&(_L(i)?this.render(t,n,r):(this._progressiveEls=[],this._renderOnGridLike(t,r,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){FM(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,t,n,r,i){var a=e.coordinateSystem,o=gL(a,`cartesian2d`),s=gL(a,`matrix`),c,l,u,d;if(o){var f=a.getAxis(`x`),p=a.getAxis(`y`);c=Jz(f).w+.5,l=Jz(p).w+.5,u=f.scale.getExtent(),d=p.scale.getExtent()}for(var m=this.group,h=e.getData(),g=e.getModel([`emphasis`,`itemStyle`]).getItemStyle(),_=e.getModel([`blur`,`itemStyle`]).getItemStyle(),v=e.getModel([`select`,`itemStyle`]).getItemStyle(),y=e.get([`itemStyle`,`borderRadius`]),b=ZM(e),x=e.getModel(`emphasis`),S=x.get(`focus`),C=x.get(`blurScope`),w=x.get(`disabled`),T=o||s?[h.mapDimension(`x`),h.mapDimension(`y`),h.mapDimension(`value`)]:[h.mapDimension(`time`),h.mapDimension(`value`)],E=n;Eu[1]||Ad[1])continue;var j=a.dataToPoint([k,A]);D=new OO({shape:{x:j[0]-c/2,y:j[1]-l/2,width:c,height:l},style:O})}else if(s){var M=a.dataToLayout([h.get(T[0],E),h.get(T[1],E)]).rect;if(aC(M.x))continue;D=new OO({z2:1,shape:M,style:O})}else{if(isNaN(h.get(T[1],E)))continue;var N=a.dataToLayout([h.get(T[0],E)]),M=N.contentRect||N.rect;if(aC(M.x)||aC(M.y))continue;D=new OO({z2:1,shape:M,style:O})}if(h.hasItemOption){var P=h.getItemModel(E),F=P.getModel(`emphasis`);g=F.getModel(`itemStyle`).getItemStyle(),_=P.getModel([`blur`,`itemStyle`]).getItemStyle(),v=P.getModel([`select`,`itemStyle`]).getItemStyle(),y=P.get([`itemStyle`,`borderRadius`]),S=F.get(`focus`),C=F.get(`blurScope`),w=F.get(`disabled`),b=ZM(P)}D.shape.r=y;var ee=e.getRawValue(E),I=`-`;ee&&ee[2]!=null&&(I=ee[2]+``),XM(D,b,{labelFetcher:e,labelDataIndex:E,defaultOpacity:O.opacity,defaultText:I}),D.ensureState(`emphasis`).style=g,D.ensureState(`blur`).style=_,D.ensureState(`select`).style=v,$A(D,S,C,w),D.incremental=$k(e,i),i&&(D.states.emphasis.hoverLayer=2),m.add(D),h.setItemGraphicEl(E,D),this._progressiveEls&&this._progressiveEls.push(D)}},t.prototype._renderOnGeo=function(e,t,n,r){var i=n.targetVisuals.inRange,a=n.targetVisuals.outOfRange,o=t.getData(),s=this._hmLayer||this._hmLayer||new PJ;s.blurSize=t.get(`blurSize`),s.pointSize=t.get(`pointSize`),s.minOpacity=t.get(`minOpacity`),s.maxOpacity=t.get(`maxOpacity`);var c=e.getViewRect().clone(),l=e.getRoamTransform();c.applyTransform(l);var u=Math.max(c.x,0),d=Math.max(c.y,0),f=Math.min(c.width+c.x,r.getWidth()),p=Math.min(c.height+c.y,r.getHeight()),m=f-u,h=p-d,g=[o.mapDimension(`lng`),o.mapDimension(`lat`),o.mapDimension(`value`)],_=o.mapArray(g,function(t,n,r){var i=e.dataToPoint([t,n]);return i[0]-=u,i[1]-=d,i.push(r),i}),v=n.getExtent(),y=n.type===`visualMap.continuous`?IJ(v,n.option.range):FJ(v,n.getPieceList(),n.option.selected);s.update(_,m,h,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:a.color.getColorMapper()},y);var b=new CO({style:{width:m,height:h,x:u,y:d,image:s.canvas},silent:!0});this.group.add(b)},t.type=`heatmap`,t}(uL),RJ=function(e){vS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return kP(null,this,{generateCoord:`value`})},t.prototype.preventIncremental=function(){var e=wP.get(this.get(`coordinateSystem`));if(e&&e.dimensions)return e.dimensions[0]===`lng`&&e.dimensions[1]===`lat`},t.type=`series.heatmap`,t.dependencies=[`grid`,`geo`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:Q.color.primary}}},t}(LI);function zJ(e){e.registerChartView(LJ),e.registerSeriesModel(RJ)}var BJ={color:`fill`,borderColor:`stroke`},VJ={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},HJ=Lk(),UJ=function(e){vS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get(`zlevel`,!0),this.currentZ=this.get(`z`,!0)},t.prototype.getInitialData=function(e,t){return kP(null,this)},t.prototype.getDataParams=function(t,n,r){var i=e.prototype.getDataParams.call(this,t,n);return r&&(i.info=HJ(r).info),i},t.type=`series.custom`,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,legendHoverLink:!0,clip:!1},t}(LI);function WJ(e,t){return t||=[0,0],US([`x`,`y`],function(n,r){var i=this.getAxis(n),a=t[r],o=e[r]/2;return i.type===`category`?Jz(i).w:Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function GJ(e){var t=e.master.getRect();return{coordSys:{type:`cartesian2d`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:JS(WJ,e)}}}function KJ(e,t){return t||=[0,0],US([0,1],function(n){var r=t[n],i=e[n]/2,a=[],o=[];return a[n]=r-i,o[n]=r+i,a[1-n]=o[1-n]=t[1-n],Math.abs(this.dataToPoint(a)[n]-this.dataToPoint(o)[n])},this)}function qJ(e){var t=e.view,n=t.getBoundingRect();return{coordSys:{type:`geo`,x:n.x,y:n.y,width:n.width,height:n.height,zoom:sK(t)},api:{coord:function(t){return e.dataToPoint(t)},size:JS(KJ,e)}}}function JJ(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return n.type===`category`?Jz(n).w:Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function YJ(e){var t=e.getRect();return{coordSys:{type:`singleAxis`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:JS(JJ,e)}}}function XJ(e,t){return t||=[0,0],US([`Radius`,`Angle`],function(n,r){var i=`get`+n+`Axis`,a=this[i](),o=t[r],s=e[r]/2,c=a.type===`category`?Jz(a).w:Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return n===`Angle`&&(c=c*Math.PI/180),c},this)}function ZJ(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:`polar`,cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=t.dataToRadius(r[0]),a=n.dataToAngle(r[1]),o=e.coordToPoint([i,a]);return o.push(i,a*Math.PI/180),o},size:JS(XJ,e)}}}function QJ(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:`calendar`,x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)},layout:function(t,n){return e.dataToLayout(t,n)}}}}function $J(e){var t=e.getRect();return{coordSys:{type:`matrix`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t,n){return e.dataToPoint(t,n)},layout:function(t,n){return e.dataToLayout(t,n)}}}}var eY={position:[`x`,`y`],scale:[`scaleX`,`scaleY`],origin:[`originX`,`originY`]},tY=qS(eY);WS(yT,function(e,t){return e[t]=1,e},{}),yT.join(`, `);var nY=[``,`style`,`shape`,`extra`],rY=Lk();function iY(e,t,n,r,i){var a=e+`Animation`,o=eM(e,r,i)||{},s=rY(t).userDuring;return o.duration>0&&(o.during=s?JS(mY,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),J(o,n[a]),o}function aY(e,t,n,r){r||={};var i=r.dataIndex,a=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),c=rY(e),l=t.style;c.userDuring=t.during;var u={},d={};if(vY(e,t,d),e.type===`compound`)for(var f=e.shape.paths,p=t.shape.paths,m=0;m0&&e.animateFrom(g,_)}else uY(e,t,i||0,n,u)}oY(e,t),l?e.dirty():e.markRedraw()}function oY(e,t){for(var n=rY(e).leaveToProps,r=0;r0&&e.animateFrom(i,a)}}function dY(e,t){Z(t,`silent`)&&(e.silent=t.silent),Z(t,`ignore`)&&(e.ignore=t.ignore),e instanceof jD&&Z(t,`invisible`)&&(e.invisible=t.invisible),e instanceof xO&&Z(t,`autoBatch`)&&(e.autoBatch=t.autoBatch)}var fY={},pY={setTransform:function(e,t){return fY.el[e]=t,this},getTransform:function(e){return fY.el[e]},setShape:function(e,t){var n=fY.el,r=n.shape||={};return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=fY.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=fY.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=fY.el.style;if(t)return t[e]},setExtra:function(e,t){var n=fY.el.extra||(fY.el.extra={});return n[e]=t,this},getExtra:function(e){var t=fY.el.extra;if(t)return t[e]}};function mY(){var e=this,t=e.el;if(t){var n=rY(t).userDuring,r=e.userDuring;n===r?(fY.el=t,r(pY)):e.el=e.userDuring=null}}function hY(e,t,n,r){var i=n[e];if(i){var a=t[e],o;if(a){var s=n.transition,c=i.transition;if(c){if(!o&&(o=r[e]={}),cY(c))J(o,a);else for(var l=Dk(c),u=0;u=0){!o&&(o=r[e]={});for(var p=qS(a),u=0;u=0)){var f=e.getAnimationStyleProps(),p=f?f.style:null;if(p){!a&&(a=r.style={});for(var m=qS(n),l=0;l=0?t.getStore().get(i,n):void 0}var a=t.get(r.name,n),o=r&&r.ordinalMeta;return o?o.categories[a]:a}function C(n,r){r??=u;var i=t.getItemVisual(r,`style`),a=i&&i.fill,o=i&&i.opacity,s=y(r,EY).getItemStyle();a!=null&&(s.fill=a),o!=null&&(s.opacity=o);var c={inheritColor:ZS(a)?a:Q.color.neutral99},l=b(r,EY),d=QM(l,null,c,!1,!0);d.text=l.getShallow(`show`)?sC(e.getFormattedLabel(r,EY),GI(t,r)):null;var f=$M(l,c,!1);return E(n,s),s=yL(s,d,f),n&&T(s,n),s.legacy=!0,s}function w(n,r){r??=u;var i=y(r,TY).getItemStyle(),a=b(r,TY),o=QM(a,null,null,!0,!0);o.text=a.getShallow(`show`)?cC(e.getFormattedLabel(r,TY),e.getFormattedLabel(r,EY),GI(t,r)):null;var s=$M(a,null,!0);return E(n,i),i=yL(i,o,s),n&&T(i,n),i.legacy=!0,i}function T(e,t){for(var n in t)Z(t,n)&&(e[n]=t[n])}function E(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function D(e,n){if(n??=u,Z(BJ,e)){var r=t.getItemVisual(n,`style`);return r?r[BJ[e]]:null}if(Z(VJ,e))return t.getItemVisual(n,e)}function O(e){if(o.type===`cartesian2d`)return xle(zS({axis:o.getBaseAxis()},e))}function k(){return n.getCurrentSeriesIndices()}function A(e){return iN(e,n)}}function KY(e){var t={};return Y(e.dimensions,function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim,a=t[i]=t[i]||[];a[r.coordDimIndex]=e.getDimensionIndex(n)}}),t}function qY(e,t,n,r,i,a,o){if(!r)a.remove(t);else{var s=JY(e,t,n,r,i,a);return s&&o.setItemGraphicEl(n,s),s&&$A(s,r.focus,r.blurScope,r.emphasisDisabled),s}}function JY(e,t,n,r,i,a){var o=-1,s=t;t&&YY(t,r,i)&&(o=BS(a.childrenRef(),t),t=null);var c=!t,l=t;l?l.clearStates():(l=BY(r),s&&RY(s,l)),r.morph===!1?l.disableMorphing=!0:l.disableMorphing&&(l.disableMorphing=!1),r.tooltipDisabled&&(l.tooltipDisabled=!0),PY.normal.cfg=PY.normal.conOpt=PY.emphasis.cfg=PY.emphasis.conOpt=PY.blur.cfg=PY.blur.conOpt=PY.select.cfg=PY.select.conOpt=null,PY.isLegacy=!1,ZY(l,n,r,i,c,PY),XY(l,n,r,i,c),VY(e,l,n,r,PY,i,c),Z(r,`info`)&&(HJ(l).info=r.info);for(var u=0;u=0?a.replaceAt(l,o):a.add(l),l}function YY(e,t,n){var r=HJ(e),i=t.type,a=t.shape,o=t.style;return n.isUniversalTransitionEnabled()||i!=null&&i!==r.customGraphicType||i===`path`&&cX(a)&&sX(a)!==r.customPathData||i===`image`&&Z(o,`image`)&&o.image!==r.customImagePath}function XY(e,t,n,r,i){var a=n.clipPath;if(a===!1)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&YY(o,a,r)&&(o=null),o||(o=BY(a),e.setClipPath(o)),VY(null,o,t,a,null,r,i)}}function ZY(e,t,n,r,i,a){if(!(e.isGroup||e.type===`compoundPath`)){QY(n,null,a),QY(n,TY,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,c=a.blur.conOpt,l=a.select.conOpt;if(o!=null||s!=null||l!=null||c!=null){var u=e.getTextContent();if(o===!1)u&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:`text`},u?u.clearStates():(u=BY(o),e.setTextContent(u)),VY(null,u,t,o,null,r,i);for(var d=o&&o.style,f=0;f=u;p--)nX(t,t.childAt(p),i)}}}function nX(e,t,n){t&&sY(t,HJ(e).option,n)}function rX(e){new mN(e.oldChildren,e.newChildren,iX,iX,e).add(aX).update(aX).remove(oX).execute()}function iX(e,t){return(e&&e.name)??NY+t}function aX(e,t){var n=this.context,r=e==null?null:n.newChildren[e],i=t==null?null:n.oldChildren[t];JY(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function oX(e){var t=this.context,n=t.oldChildren[e];n&&sY(n,HJ(n).option,t.seriesModel)}function sX(e){return e&&(e.pathData||e.d)}function cX(e){return e&&(Z(e,`pathData`)||Z(e,`d`))}function lX(e){e.registerChartView(zY),e.registerSeriesModel(UJ)}var uX=Lk(),dX=LS,fX=JS,pX=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==i||this._lastStatus!==a){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`)o&&o.hide(),s&&s.hide();else{o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new yj,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=YS(mX,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}vX(o,t,!0),this._renderHandle(i)}}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&Jz(r).w>o)return!0;if(a){var s=EG(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=uX(e).pointerEl=new _oe[i.type](dX(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=uX(e).labelEl=new MO(dX(t.label));e.add(i),gX(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=uX(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=uX(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),gX(i,r))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`)r&&n.remove(r),this._handle=null;else{var o;this._handle||(o=!0,r=this._handle=DM(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){OV(e.event)},onmousedown:fX(this._onHandleDragMove,this,0,0),drift:fX(this._onHandleDragMove,this),ondragend:fX(this._onHandleDragEnd,this)}),n.add(r)),vX(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);X(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,nV(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}}},e.prototype._moveHandleToValue=function(e,t){mX(this._axisPointerModel,!t&&this._moveAnimation,this._handle,_X(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(_X(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(_X(r)),uX(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),rV(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function mX(e,t,n,r){hX(uX(n).lastProp,r)||(uX(n).lastProp=r,t?nM(n,r,e):(n.stopAnimation(),n.attr(r)))}function hX(e,t){if(eC(e)&&eC(t)){var n=!0;return Y(t,function(t,r){n&&=hX(e[r],t)}),!!n}return e===t}function gX(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function _X(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function vX(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function yX(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function bX(e,t,n,r,i){var a=SX(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=GF(o.get(`padding`)||0),c=o.getFont(),l=Gw(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),xX(u,d,f,r);var h=o.get(`backgroundColor`);h&&h!==`auto`||(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:QM(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function xX(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function SX(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:xR(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};Y(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),ZS(o)?a=o.replace(`{value}`,a):XS(o)&&(a=o(s))}return a}function CX(e,t,n){var r=QC();return rw(r,r,n.rotation),nw(r,r,n.position),SM([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function wX(e,t,n,r,i,a){var o=CB.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),bX(t,r,i,a,{position:CX(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function TX(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function EX(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function DX(e,t,n){return Jz(e,{fromStat:{sers:US(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function OX(e,t,n){return[KO(GO(t[0],t[1]),e-n/2),GO(e+n/2,KO(t[0],t[1]))]}var kX=function(e){vS(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=a.getGlobalExtent(),l=AX(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=yX(r),f=jX[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}wX(t,e,MB(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=MB(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=CX(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=AX(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=GO(o[1],l[c]),l[c]=KO(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(pX);function AX(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var jX={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:TX([t,r[0]],[t,r[1]],MX(e))}},shadow:function(e,t,n,r,i,a){var o=DX(e,i,a),s=r[1]-r[0],c=OX(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:EX([l,r[0]],[u-l,s],MX(e))}}};function MX(e){return e.dim===`x`?0:1}var NX=function(e){vS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`axisPointer`,t.defaultOption={show:`auto`,z:50,type:`line`,snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:Q.color.border,width:1,type:`dashed`},shadowStyle:{color:Q.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:Q.color.neutral00,padding:[5,7,5,7],backgroundColor:Q.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:`M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z`,size:45,margin:50,color:Q.color.accent40,throttle:40}},t}(sI),PX=Lk(),FX=Y;function IX(e,t,n){if(!CC.node){var r=t.getZr();PX(r).records||(PX(r).records={}),LX(r,t);var i=PX(r).records[e]||(PX(r).records[e]={});i.handler=n}}function LX(e,t){if(PX(e).initialized)return;PX(e).initialized=!0,n(`click`,YS(BX,`click`)),n(`mousemove`,YS(BX,`mousemove`)),n(`mousewheel`,YS(BX,`mousewheel`)),n(`globalout`,zX);function n(n,r){e.on(n,function(n){var i=VX(t);FX(PX(e).records,function(e){e&&r(e,n,i.dispatchAction)}),RX(i.pendings,t)})}}function RX(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function zX(e,t,n){e.handler(`leave`,null,n)}function BX(e,t,n,r){t.handler(e,n,r)}function VX(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function HX(e,t){if(!CC.node){var n=t.getZr();(PX(n).records||{})[e]&&(PX(n).records[e]=null)}}var UX=function(e){vS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click|mousewheel`;IX(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){HX(`axisPointer`,t)},t.prototype.dispose=function(e,t){HX(`axisPointer`,t)},t.type=`axisPointer`,t}(VH);function WX(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=Ik(a,e);if(o==null||o<0||X(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint){if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(US(c.dimensions,function(e){return a.mapDimension(e)}),o))||[]}else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}var GX=Lk();function KX(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||JS(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){nZ(i)&&(i=WX({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=nZ(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||nZ(i),f={},p={},m={list:[],map:{}},h={showPointer:YS(YX,p),showTooltip:YS(XX,m)};Y(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);Y(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=eZ(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&qX(e,o,h,!1,f)}})});var g={};return Y(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&Y(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,tZ(t),tZ(e)))),g[e.key]=a}})}),Y(g,function(e,t){qX(u[t],e,h,!0,f)}),ZX(p,u,f),QX(m,i,e,o),$X(u,o,n),f}}function qX(e,t,n,r,i){var a=e.axis;if(!a.scale.isBlank()&&a.containData(t)){if(!e.involveSeries)n.showPointer(e,t);else{var o=JX(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&J(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}}function JX(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return Y(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.indicesOfNearest(r,l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(xk(u)){var p=e-u,m=Math.abs(p);m<=o&&((m=0&&s<0)&&(o=m,s=p,i=u,a.length=0),Y(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function YX(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function XX(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(t.triggerTooltip&&i.length){var c=t.coordSys.model,l=kG(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function ZX(e,t,n){var r=n.axesInfo=[];Y(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function QX(e,t,n,r){if(nZ(t)||!e.list.length)r({type:`hideTip`});else{var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}}function $X(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=GX(r)[i]||{},o=GX(r)[i]={};Y(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&Y(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}Y(a,function(e,t){!o[t]&&c.push(l(e))}),Y(o,function(e,t){!a[t]&&s.push(l(e))}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function eZ(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function tZ(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function nZ(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function rZ(e){jG.registerAxisPointerClass(`CartesianAxisPointer`,kX),e.registerComponentModel(NX),e.registerComponentView(UX),e.registerPreprocessor(function(e){if(e){e.axisPointer&&e.axisPointer.length!==0||(e.axisPointer={});var t=e.axisPointer.link;t&&!X(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=yG(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},KX)}function iZ(e){ZW(HG),ZW(rZ)}var aZ=[`x`,`y`,`radius`,`angle`,`single`],oZ=Lk(),sZ=[`cartesian2d`,`polar`,`singleAxis`];function cZ(e){return BS(sZ,e.get(`coordinateSystem`))>=0}function lZ(e){return e+`Axis`}function uZ(e,t){var n=_C(),r=[],i=_C();e.eachComponent({mainType:`dataZoom`,query:t},function(e){i.get(e.uid)||s(e)});var a;do a=!1,e.eachComponent(`dataZoom`,o);while(a);function o(e){!i.get(e.uid)&&c(e)&&(s(e),a=!0)}function s(e){i.set(e.uid,!0),r.push(e),l(e)}function c(e){var t=!1;return e.eachTargetAxis(function(e,r){var i=n.get(e);i&&i[r]&&(t=!0)}),t}function l(e){e.eachTargetAxis(function(e,t){(n.get(e)||n.set(e,[]))[t]=!0})}return r}function dZ(e){var t=e.ecModel,n={infoList:[],infoMap:_C()};return e.eachTargetAxis(function(e,r){var i=t.getComponent(lZ(e),r);if(i){var a=i.getCoordSysModel();if(a){var o=a.uid,s=n.infoMap.get(o);s||(s={model:a,axisModels:[]},n.infoList.push(s),n.infoMap.set(o,s)),s.axisModels.push(i)}}}),n}function fZ(e){var t=oZ(Tz(e));return t.axisProxyMap||=_C()}function pZ(e){if(e)return fZ(e.ecModel).get(e.uid)}function mZ(e,t){fZ(e.ecModel).set(e.uid,t)}function hZ(e,t){var n=t.getAxisModel().axis.__alignTo;return n&&e.getAxisProxy(n.dim,n.model.componentIndex)?pZ(n.model):null}var gZ=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),_Z=function(e){vS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=[`percent`,`percent`],n}return t.prototype.init=function(e,t,n){var r=vZ(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=vZ(e);RS(this.option,e,!0),RS(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;Y([[`start`,`startValue`],[`end`,`endValue`]],function(e,r){this._rangePropMode[r]===`value`&&(t[e[0]]=n[e[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get(`orient`,!0),t=this._targetAxisInfoMap=_C();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||`horizontal`,this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each(function(e){e.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return Y(aZ,function(n){var r=this.getReferringComponents(lZ(n),pae);if(r.specified){t=!0;var i=new gZ;Y(r.models,function(e){i.add(e.componentIndex)}),e.set(n,i)}},this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i=t===`vertical`?`y`:`x`,a=n.findComponents({mainType:i+`Axis`});o(a,i)}if(r){var a=n.findComponents({mainType:`singleAxis`,filter:function(e){return e.get(`orient`,!0)===t}});o(a,`single`)}function o(t,n){var i=t[0];if(i){var a=new gZ;if(a.add(i.componentIndex),e.set(n,a),r=!1,n===`x`||n===`y`){var o=i.getReferringComponents(`grid`,Bk).models[0];o&&Y(t,function(e){i.componentIndex!==e.componentIndex&&o===e.getReferringComponents(`grid`,Bk).models[0]&&a.add(e.componentIndex)})}}}r&&Y(aZ,function(t){if(r){var i=n.findComponents({mainType:lZ(t),filter:function(e){return e.get(`type`,!0)===`category`}});if(i[0]){var a=new gZ;a.add(i[0].componentIndex),e.set(t,a),r=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){!e&&(e=t)},this),e===`y`?`vertical`:`horizontal`},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty(`throttle`)&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get(`rangeMode`);Y([[`start`,`startValue`],[`end`,`endValue`]],function(r,i){var a=e[r[0]]!=null,o=e[r[1]]!=null;a&&!o?t[i]=`percent`:!a&&o?t[i]=`value`:n?t[i]=n[i]:a&&(t[i]=`percent`)})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(t,n){e??=this.ecModel.getComponent(lZ(t),n)},this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(n,r){Y(n.indexList,function(n){e.call(t,r,n)})})},t.prototype.getAxisProxy=function(e,t){return pZ(this.getAxisModel(e,t))},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(lZ(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;Y([[`start`,`startValue`],[`end`,`endValue`]],function(r){(e[r[0]]!=null||e[r[1]]!=null)&&(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;Y([`start`,`startValue`,`end`,`endValue`],function(n){t[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getWindow().percent},t.prototype.getValueRange=function(e,t){if(e==null&&t==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getWindow().value}else return this.getAxisProxy(e,t).getWindow().value},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return pZ(e);for(var t,n=this._targetAxisInfoMap.keys(),r=0;ra[1];if(u&&!d&&!f)return!0;u&&(i=!0),d&&(t=!0),f&&(n=!0)}return i&&t&&n})}else Y(r,function(n){if(i===`empty`)e.setData(t=t.map(n,function(e){return o(e)?e:NaN}));else{var r={};r[n]=a,t.selectRange(r)}});Y(r,function(e){t.setApproximateExtent(a,e)})}});function o(e){return e>=a[0]&&e<=a[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._extent;Y([`min`,`max`],function(r){var i=t.get(r+`Span`),a=t.get(r+`ValueSpan`);a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a==null?i!=null&&(a=ek(i,[0,100],n,!0)-n[0]):i=ek(n[0]+a,n,[0,100],!0),e[r+`Span`]=i,e[r+`ValueSpan`]=a},this)},e}(),xZ={dirtyOnOverallProgress:!0,getTargetSeries:function(e){function t(t){e.eachComponent(`dataZoom`,function(n){n.eachTargetAxis(function(r,i){t(r,i,e.getComponent(lZ(r),i),n)})})}var n=[];t(function(t,r,i,a){if(!pZ(i)){var o=new bZ(t,r,a,e);n.push(o),mZ(i,o)}});var r=_C();return Y(n,function(e){Y(e.getTargetSeriesModels(),function(e){r.set(e.uid,e)})}),r},overallReset:function(e,t){e.eachComponent(`dataZoom`,function(e){var n=[];e.eachTargetAxis(function(t,r){var i=e.getAxisProxy(t,r),a=hZ(e,i);a?n.push([i,a]):i.reset(e,null)}),Y(n,function(t){t[0].reset(e,t[1].getWindow().percentInverted)}),e.eachTargetAxis(function(n,r){e.getAxisProxy(n,r).filterData(e,t)})}),e.eachComponent(`dataZoom`,function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getWindow(),r=n.percent,i=n.value;e.setCalculatedRange({start:r[0],end:r[1],startValue:i[0],endValue:i[1]})}})}};function SZ(e){e.registerAction(`dataZoom`,function(e,t){Y(uZ(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var CZ=Zk();function wZ(e){CZ(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,xZ),SZ(e),e.registerSubTypeDefaulter(`dataZoom`,function(){return`slider`})})}function TZ(e,t){var n=GF(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new OO({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}var EZ=function(e){vS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`tooltip`,t.dependencies=[`axisPointer`],t.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click|mousewheel`,alwaysShowContent:!1,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:Q.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Q.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:Q.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:Q.color.tertiary,fontSize:14}},t}(sI);function DZ(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function OZ(e){if(CC.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`
`}function bfe(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(i=` `+e/2+`s `+r,a=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(CC.transformSupported?``+PZ+i:`,left`+i+`,top`+i)),NZ+`:`+a}function LZ(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!CC.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=CC.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+PZ+`:`+o+`;`:[[`top`,0],[`left`,0],[kZ,o]]}function xfe(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=sC(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),Y([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function Sfe(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=NI(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(bfe(a,n,r)),o&&i.push(`background-color:`+o),Y([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=WF(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(xfe(d)),f!=null&&i.push(`padding:`+GF(f).join(`px `)+`px`),i.join(`;`)+`;`}function RZ(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&RP(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var Cfe=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,CC.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(ZS(i)?document.querySelector(i):rC(i)?i:XS(i)&&i(e.getDom()));RZ(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler;DV(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=MZ(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=FZ+Sfe(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+LZ(i[0],i[1],!0)+(`border-color:`+XF(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null)a.innerHTML=``;else{var o=``;if(ZS(i)&&n.get(`trigger`)===`item`&&!DZ(n)&&(o=yfe(n,r,i)),ZS(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,X(e)||(e=[e]);for(var s=0;s=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(e.get(`trigger`)!==`axis`&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(r.from!==this.uid&&!CC.node&&n.getDom()){var i=UZ(r,n);this._ticket=``;var a=r.dataByCoordSys,o=Afe(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=Tfe;c.x=r.x,c.y=r.y,c.update(),rA(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=WX(r,t),u=l.point[0],d=l.point[1];u!=null&&d!=null&&this._tryShow({offsetX:u,offsetY:d,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide(UZ(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(i!=null&&a!=null&&o!=null){var s=t.getSeriesByIndex(i);if(s&&HZ([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(rA(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;lU(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(rA(e).dataIndex==null?rA(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=JS(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=HZ([t.tooltipOption],r),o=this._renderMode,s=[],c=EI(`section`,{blocks:[],noHeader:!0}),l=[],u=new PI;Y(e,function(e){Y(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value,a=t.axis,d=a.scale.parse(i);if(t&&i!=null){var f=SX(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=EI(`section`,{header:f,noHeader:!fC(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),Y(e.seriesDataIndices,function(i){var a=n.getSeriesByIndex(i.seriesIndex),c=i.dataIndexInside,m=a.getDataParams(c);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=xR(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,XF(m.color),o);var h=pI(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=HZ([a],r).get(`valueFormatter`);p.blocks.push(_?J({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=AI(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?` - -`:`
`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=rA(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=HZ([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(m==null||m===`item`){var h=s.getDataParams(c,l),g=new PI;h.marker=g.makeTooltipMarker(`item`,XF(h.color),d);var _=pI(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?AI(y?J({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=rA(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(ZS(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=LS(a),a.content=KP(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=HZ(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new PI;this._showOrMove(d,function(){var n=LS(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,e.get(`showContent`)&&e.get(`show`)){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u){if(ZS(u)){var p=e.ecModel.get(`useUTC`),m=X(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=DF(m.axisValue,d,p)),d=YF(d,n,!0)}else if(XS(u)){var g=JS(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u}l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||X(t))return{color:r||i};if(!X(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),XS(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),X(t))n=tk(t[0],s),r=tk(t[1],c);else if(eC(t)){var p=t;p.width=l[0],p.height=l[1];var m=tI(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(ZS(t)&&o){var h=kfe(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=Dfe(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=WZ(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=WZ(d)?l[1]/2:d===`bottom`?l[1]:0),DZ(e)){var h=Ofe(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&Y(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&Y(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&Y(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&Y(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){!CC.node&&t.getDom()&&(rV(this,`_updatePosition`),this._tooltipContent.dispose(),HX(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(VH);function HZ(e,t,n){var r=t.ecModel,i;n?(i=new dN(n,r,r),i=new dN(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof dN&&(o=o.get(`tooltip`,!0)),ZS(o)&&(o={formatter:o}),o&&(i=new dN(o,i,r)))}return i}function UZ(e,t){return e.dispatchAction||JS(t.dispatchAction,t)}function Dfe(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function Ofe(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function kfe(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function WZ(e){return e===`center`||e===`middle`}function Afe(e,t,n){var r=zk(e).queryOptionMap,i=r.keys()[0];if(i&&i!==`series`){var a=Vk(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=rA(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function jfe(e){ZW(rZ),e.registerComponentModel(EZ),e.registerComponentView(Efe),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},bC),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},bC)}var GZ=Y;function KZ(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function qZ(e,t,n){var r={};return GZ(t,function(t){var a=r[t]=i();GZ(e[t],function(e,r){if(mq.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new mq(i),r===`opacity`&&(i=LS(i),i.type=`colorAlpha`,a.__hidden.__alphaForOpacity=new mq(i))}})}),r;function i(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}}function Mfe(e,t,n){var r;Y(n,function(e){t.hasOwnProperty(e)&&KZ(t[e])&&(r=!0)}),r&&Y(n,function(n){t.hasOwnProperty(n)&&KZ(t[n])?e[n]=LS(t[n]):delete e[n]})}function Nfe(e,t,n,r){var i={};return Y(e,function(e){i[e]=mq.prepareVisualTypes(t[e])}),{progress:function(e,a){var o;r!=null&&(o=a.getDimensionIndex(r));function s(e){return sU(a,l,e)}function c(e,t){cde(a,l,e,t)}for(var l,u=a.getStore();(l=e.next())!=null;){var d=a.getRawDataItem(l);if(!(d&&d.visualMap===!1))for(var f=r==null?l:u.get(o,l),p=n(f),m=t[p],h=i[p],g=0,_=h.length;g<_;g++){var v=h[g];m[v]&&m[v].applyVisual(f,s,c)}}}}}function JZ(e,t){if(!e)return!1;for(var n=X(e)?e:[e],r=0;r=0&&(s[o]=+s[o].toFixed(f)),[s,d]}var eQ={min:YS($Z,`min`),max:YS($Z,`max`),average:YS($Z,`average`),median:YS($Z,`median`)};function tQ(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,i=r&&r.dimensions;if(!Ffe(t)&&!X(t.coord)&&X(i)){var a=nQ(t,n,r,e);if(t=LS(t),t.type&&eQ[t.type]&&a.baseAxis&&a.valueAxis){var o=BS(i,a.baseAxis.dim),s=BS(i,a.valueAxis.dim),c=eQ[t.type](n,a.valueAxis.dim,a.baseDataDim,a.valueDataDim,o,s);t.coord=c[0],t.value=c[1]}else t.coord=[t.xAxis==null?t.radiusAxis:t.xAxis,t.yAxis==null?t.angleAxis:t.yAxis]}if(t.coord==null||!X(i)){t.coord=[];var l=e.getBaseAxis();if(l&&t.type&&eQ[t.type]){var u=r.getOtherAxis(l);u&&(t.value=aQ(n,n.mapDimension(u.dim),t.type))}}else for(var d=t.coord,f=0;f<2;f++)eQ[d[f]]&&(d[f]=aQ(n,n.mapDimension(i[f]),d[f]));return t}}function nQ(e,t,n,r){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex==null?e.valueDim:t.getDimension(e.valueIndex),i.valueAxis=n.getAxis(Ife(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function Ife(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function rQ(e,t){return e&&e.containData&&t.coord&&!QZ(t)?e.containData(t.coord):!0}function Lfe(e,t,n){return e&&e.containZone&&t.coord&&n.coord&&!QZ(t)&&!QZ(n)?e.containZone(t.coord,n.coord):!0}function iQ(e,t){return e?function(e,n,r,i){return YN(i<2?e.coord&&e.coord[i]:e.value,t[i])}:function(e,n,r,i){return YN(e.value,t[i])}}function aQ(e,t,n){if(n===`average`){var r=0,i=0;return e.each(t,function(e,t){isNaN(e)||(r+=e,i++)}),r/i}return n===`median`?e.getMedian(t):e.getDataExtent(t)[+(n===`max`)]}var oQ=Lk(),sQ=function(e){vS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this.markerGroupMap=_C()},t.prototype.render=function(e,t,n){var r=this,i=this.markerGroupMap;i.each(function(e){oQ(e).keep=!1}),t.eachSeries(function(e){var i=ZZ.getMarkerModelFromSeries(e,r.type);i&&r.renderSeries(e,i,t,n)}),i.each(function(e){!oQ(e).keep&&r.group.remove(e.group)}),Rfe(t,i,this.type)},t.prototype.markKeep=function(e){oQ(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;Y(e,function(e){var r=ZZ.getMarkerModelFromSeries(e,n.type);r&&r.getData().eachItemGraphicEl(function(e){e&&(t?HA(e):UA(e))})})},t.type=`marker`,t}(VH);function Rfe(e,t,n){e.eachSeries(function(e){var r=ZZ.getMarkerModelFromSeries(e,n),i=t.get(e.id);if(r&&i&&i.group){var a=BM(r),o=a.z,s=a.zlevel;HM(i.group,o,s)}})}function cQ(e,t,n){var r=t.coordinateSystem,i=n.getWidth(),a=n.getHeight(),o=r&&r.getArea&&r.getArea();e.each(function(n){var s=e.getItemModel(n),c=s.get(`relativeTo`)===`coordinate`,l=c?o?o.width:0:i,u=c?o?o.height:0:a,d=c&&o?o.x:0,f=c&&o?o.y:0,p,m=tk(s.get(`x`),l)+d,h=tk(s.get(`y`),u)+f;if(!isNaN(m)&&!isNaN(h))p=[m,h];else if(t.getMarkerPosition)p=t.getMarkerPosition(e.getValues(e.dimensions,n));else if(r){var g=e.get(r.dimensions[0],n),_=e.get(r.dimensions[1],n);p=r.dataToPoint([g,_])}isNaN(m)||(p[0]=m),isNaN(h)||(p[1]=h),e.setItemLayout(n,p)})}var zfe=function(e){vS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=ZZ.getMarkerModelFromSeries(e,`markPoint`);t&&(cQ(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,new QI),l=Bfe(i,e,t);t.setData(l),cQ(t.getData(),e,r),l.each(function(e){var n=l.getItemModel(e),r=n.getShallow(`symbol`),i=n.getShallow(`symbolSize`),a=n.getShallow(`symbolRotate`),s=n.getShallow(`symbolOffset`),c=n.getShallow(`symbolKeepAspect`);if(XS(r)||XS(i)||XS(a)||XS(s)){var u=t.getRawValue(e),d=t.getDataParams(e);XS(r)&&(r=r(u,d)),XS(i)&&(i=i(u,d)),XS(a)&&(a=a(u,d)),XS(s)&&(s=s(u,d))}var f=n.getModel(`itemStyle`).getItemStyle(),p=n.get(`z2`),m=cU(o,`color`);f.fill||=m,l.setItemVisual(e,{z2:sC(p,0),symbol:r,symbolSize:i,symbolRotate:a,symbolOffset:s,symbolKeepAspect:c,style:f})}),c.updateData(l),this.group.add(c.group),l.eachItemGraphicEl(function(e){e.traverse(function(e){rA(e).dataModel=t})}),this.markKeep(c),c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markPoint`,t}(sQ);function Bfe(e,t,n){var r=e?US(e&&e.dimensions,function(e){var n=t.getData();return J(J({},n.getDimensionInfo(n.mapDimension(e))||{}),{name:e,ordinalMeta:null})}):[{name:`value`,type:`float`}],i=new bP(r,n),a=US(n.get(`data`),YS(tQ,t));e&&(a=GS(a,YS(rQ,e)));var o=iQ(!!e,r);return i.initData(a,null,o),i}function Vfe(e){e.registerComponentModel(Pfe),e.registerComponentView(zfe),e.registerPreprocessor(function(e){JZ(e.series,`markPoint`)&&(e.markPoint=e.markPoint||{})})}var Hfe=function(e){vS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type=`markLine`,t.defaultOption={z:5,symbol:[`circle`,`arrow`],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:`item`},label:{show:!0,position:`end`,distance:5},lineStyle:{type:`dashed`},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:`linear`},t}(ZZ),lQ=Lk(),Ufe=function(e,t,n,r){var i=e.getData(),a;if(X(r))a=r;else{var o=r.type;if(o===`min`||o===`max`||o===`average`||o===`median`||r.xAxis!=null||r.yAxis!=null){var s=void 0,c=void 0;if(r.yAxis!=null||r.xAxis!=null)s=t.getAxis(r.yAxis==null?`x`:`y`),c=oC(r.yAxis,r.xAxis);else{var l=nQ(r,i,t,e);s=l.valueAxis,c=aQ(i,OP(i,l.valueDataDim),o)}var u=s.dim===`x`?0:1,d=1-u,f=LS(r),p={coord:[]};f.type=null,f.coord=[],f.coord[d]=-1/0,p.coord[d]=1/0;var m=n.get(`precision`);m>=0&&$S(c)&&(c=+c.toFixed(Math.min(m,20))),f.coord[u]=p.coord[u]=c,a=[f,p,{type:o,valueIndex:r.valueIndex,value:c}]}else a=[]}var h=[tQ(e,a[0]),tQ(e,a[1]),J({},a[2])];return h[2].type=h[2].type||null,RS(h[2],h[0]),RS(h[2],h[1]),h};function uQ(e){return!isNaN(e)&&!isFinite(e)}function dQ(e,t,n,r){var i=1-e,a=r.dimensions[e];return uQ(t[i])&&uQ(n[i])&&t[e]===n[e]&&r.getAxis(a).containData(t[e])}function Wfe(e,t){if(e.type===`cartesian2d`){var n=t[0].coord,r=t[1].coord;if(n&&r&&(dQ(1,n,r,e)||dQ(0,n,r,e)))return!0}return rQ(e,t[0])&&rQ(e,t[1])}function fQ(e,t,n,r,i){var a=r.coordinateSystem,o=e.getItemModel(t),s,c=tk(o.get(`x`),i.getWidth()),l=tk(o.get(`y`),i.getHeight());if(!isNaN(c)&&!isNaN(l))s=[c,l];else{if(r.getMarkerPosition)s=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var u=a.dimensions,d=e.get(u[0],t),f=e.get(u[1],t);s=a.dataToPoint([d,f])}if(gL(a,`cartesian2d`)){var p=a.getAxis(`x`),m=a.getAxis(`y`),u=a.dimensions;uQ(e.get(u[0],t))?s[0]=p.toGlobalCoord(p.getExtent()[+!n]):uQ(e.get(u[1],t))&&(s[1]=m.toGlobalCoord(m.getExtent()[+!n]))}isNaN(c)||(s[0]=c),isNaN(l)||(s[1]=l)}e.setItemLayout(t,s)}var Gfe=function(e){vS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=ZZ.getMarkerModelFromSeries(e,`markLine`);if(t){var r=t.getData(),i=lQ(t).from,a=lQ(t).to;i.each(function(t){fQ(i,t,!0,e,n),fQ(a,t,!1,e,n)}),r.each(function(e){r.setItemLayout(e,[i.getItemLayout(e),a.getItemLayout(e)])}),this.markerGroupMap.get(e.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,new Kq);this.group.add(c.group);var l=Kfe(i,e,t),u=l.from,d=l.to,f=l.line;lQ(t).from=u,lQ(t).to=d,t.setData(f);var p=t.get(`symbol`),m=t.get(`symbolSize`),h=t.get(`symbolRotate`),g=t.get(`symbolOffset`);X(p)||(p=[p,p]),X(m)||(m=[m,m]),X(h)||(h=[h,h]),X(g)||(g=[g,g]),l.from.each(function(e){_(u,e,!0),_(d,e,!1)}),f.each(function(e){var t=f.getItemModel(e),n=t.getModel(`lineStyle`).getLineStyle();f.setItemLayout(e,[u.getItemLayout(e),d.getItemLayout(e)]);var r=t.get(`z2`);n.stroke??=u.getItemVisual(e,`style`).fill,f.setItemVisual(e,{z2:sC(r,0),fromSymbolKeepAspect:u.getItemVisual(e,`symbolKeepAspect`),fromSymbolOffset:u.getItemVisual(e,`symbolOffset`),fromSymbolRotate:u.getItemVisual(e,`symbolRotate`),fromSymbolSize:u.getItemVisual(e,`symbolSize`),fromSymbol:u.getItemVisual(e,`symbol`),toSymbolKeepAspect:d.getItemVisual(e,`symbolKeepAspect`),toSymbolOffset:d.getItemVisual(e,`symbolOffset`),toSymbolRotate:d.getItemVisual(e,`symbolRotate`),toSymbolSize:d.getItemVisual(e,`symbolSize`),toSymbol:d.getItemVisual(e,`symbol`),style:n})}),c.updateData(f),l.line.eachItemGraphicEl(function(e){rA(e).dataModel=t,e.traverse(function(e){rA(e).dataModel=t})});function _(t,n,i){var a=t.getItemModel(n);fQ(t,n,i,e,r);var s=a.getModel(`itemStyle`).getItemStyle();s.fill??=cU(o,`color`),t.setItemVisual(n,{symbolKeepAspect:a.get(`symbolKeepAspect`),symbolOffset:sC(a.get(`symbolOffset`,!0),g[+!i]),symbolRotate:sC(a.get(`symbolRotate`,!0),h[+!i]),symbolSize:sC(a.get(`symbolSize`),m[+!i]),symbol:sC(a.get(`symbol`,!0),p[+!i]),style:s})}this.markKeep(c),c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markLine`,t}(sQ);function Kfe(e,t,n){var r=e?US(e&&e.dimensions,function(e){var n=t.getData();return J(J({},n.getDimensionInfo(n.mapDimension(e))||{}),{name:e,ordinalMeta:null})}):[{name:`value`,type:`float`}],i=new bP(r,n),a=new bP(r,n),o=new bP([],n),s=US(n.get(`data`),YS(Ufe,t,e,n));e&&(s=GS(s,YS(Wfe,e)));var c=iQ(!!e,r);return i.initData(US(s,function(e){return e[0]}),null,c),a.initData(US(s,function(e){return e[1]}),null,c),o.initData(US(s,function(e){return e[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}function qfe(e){e.registerComponentModel(Hfe),e.registerComponentView(Gfe),e.registerPreprocessor(function(e){JZ(e.series,`markLine`)&&(e.markLine=e.markLine||{})})}var Jfe=function(e){vS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type=`markArea`,t.defaultOption={z:1,tooltip:{trigger:`item`},animation:!1,label:{show:!0,position:`top`},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:`top`}}},t}(ZZ),pQ=Lk(),Yfe=function(e,t,n,r){var i=r[0],a=r[1];if(i&&a){var o=tQ(e,i),s=tQ(e,a),c=o.coord,l=s.coord;c[0]=oC(c[0],-1/0),c[1]=oC(c[1],-1/0),l[0]=oC(l[0],1/0),l[1]=oC(l[1],1/0);var u=kre([{},o,s]);return u.coord=[o.coord,s.coord],u.x0=o.x,u.y0=o.y,u.x1=s.x,u.y1=s.y,u}};function mQ(e){return!isNaN(e)&&!isFinite(e)}function hQ(e,t,n,r){var i=1-e;return mQ(t[i])&&mQ(n[i])}function Xfe(e,t){var n=t.coord[0],r=t.coord[1],i={coord:n,x:t.x0,y:t.y0},a={coord:r,x:t.x1,y:t.y1};return gL(e,`cartesian2d`)?n&&r&&(hQ(1,n,r,e)||hQ(0,n,r,e))?!0:Lfe(e,i,a):rQ(e,i)||rQ(e,a)}function gQ(e,t,n,r,i){var a=r.coordinateSystem,o=e.getItemModel(t),s,c=tk(o.get(n[0]),i.getWidth()),l=tk(o.get(n[1]),i.getHeight());if(!isNaN(c)&&!isNaN(l))s=[c,l];else{if(r.getMarkerPosition){var u=e.getValues([`x0`,`y0`],t),d=e.getValues([`x1`,`y1`],t),f=a.clampData(u),p=a.clampData(d),m=[];m[0]=n[0]===`x0`?f[0]>p[0]?d[0]:u[0]:f[0]>p[0]?u[0]:d[0],m[1]=n[1]===`y0`?f[1]>p[1]?d[1]:u[1]:f[1]>p[1]?u[1]:d[1],s=r.getMarkerPosition(m,n,!0)}else{var h=e.get(n[0],t),g=e.get(n[1],t),_=[h,g];a.clampData&&a.clampData(_,_),s=a.dataToPoint(_,!0)}if(gL(a,`cartesian2d`)){var v=a.getAxis(`x`),y=a.getAxis(`y`),h=e.get(n[0],t),g=e.get(n[1],t);mQ(h)?s[0]=v.toGlobalCoord(v.getExtent()[n[0]===`x0`?0:1]):mQ(g)&&(s[1]=y.toGlobalCoord(y.getExtent()[n[1]===`y0`?0:1]))}isNaN(c)||(s[0]=c),isNaN(l)||(s[1]=l)}return s}var _Q=[[`x0`,`y0`],[`x1`,`y0`],[`x1`,`y1`],[`x0`,`y1`]],Zfe=function(e){vS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=ZZ.getMarkerModelFromSeries(e,`markArea`);if(t){var r=t.getData();r.each(function(t){var i=US(_Q,function(i){return gQ(r,t,i,e,n)});r.setItemLayout(t,i),r.getItemGraphicEl(t).setShape(`points`,i)})}},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,{group:new yj});this.group.add(c.group),this.markKeep(c);var l=Qfe(i,e,t);t.setData(l),l.each(function(t){var n=US(_Q,function(n){return gQ(l,t,n,e,r)}),a=i.getAxis(`x`).scale,s=i.getAxis(`y`).scale,c=a.getExtent(),u=s.getExtent(),d=[a.parse(l.get(`x0`,t)),a.parse(l.get(`x1`,t))],f=[s.parse(l.get(`y0`,t)),s.parse(l.get(`y1`,t))];ak(d),ak(f);var p=c[0]>d[1]||c[1]f[1]||u[1]=0},t.prototype.getOrient=function(){return this.get(`orient`)===`vertical`?{index:1,name:`vertical`}:{index:0,name:`horizontal`}},t.type=`legend.plain`,t.dependencies=[`series`],t.defaultOption={z:4,show:!0,orient:`horizontal`,left:`center`,bottom:Q.size.m,align:`auto`,backgroundColor:Q.color.transparent,borderColor:Q.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:Q.color.disabled,inactiveBorderColor:Q.color.disabled,inactiveBorderWidth:`auto`,itemStyle:{color:`inherit`,opacity:`inherit`,borderColor:`inherit`,borderWidth:`auto`,borderCap:`inherit`,borderJoin:`inherit`,borderDashOffset:`inherit`,borderMiterLimit:`inherit`},lineStyle:{width:`auto`,color:`inherit`,inactiveColor:Q.color.disabled,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:Q.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:Q.color.tertiary,borderWidth:1,borderColor:Q.color.border},emphasis:{selectorLabel:{show:!0,color:Q.color.quaternary}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(sI),yQ=YS,bQ=Y,xQ=yj,SQ=function(e){vS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new xQ),this.group.add(this._selectorGroup=new xQ),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);i&&i!==`auto`||(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=rI(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=tI(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=tI(zS({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=TZ(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=_C(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),bQ(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===` -`)){var p=new xQ;p.newline=!0,s.add(p)}else{var m=n.getSeriesByName(f)[0];if(!c.get(f)){if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,yQ(CQ,f,null,r,d)).on(`mouseover`,yQ(wQ,m.name,null,r,d)).on(`mouseout`,yQ(TQ,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=rA(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=tE(h.fill);_&&_[3]===0&&(_[3]=.2,h=J(J({},h),{fill:lE(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,yQ(CQ,null,f,r,d)).on(`mouseover`,yQ(wQ,null,f,r,d)).on(`mouseout`,yQ(TQ,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=rA(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this)}}},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};rA(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();bQ(e,function(e){var r=e.type,i=new MO({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),XM(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),QA(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=tpe(c,r,o,s,d,m,u),y=new xQ,b=r.getModel(`textStyle`);if(XS(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(npe({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;ZS(w)&&w?T=w.replace(`{name}`,t??``):XS(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new MO({style:QM(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new OO({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&NM({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),QA(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();eI(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){eI(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(VH);function tpe(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),bQ(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:BU(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function npe(e){var t=e.icon||`roundRect`,n=HI(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=Q.color.neutral00,n.style.lineWidth=2),n}function CQ(e,t,n,r){TQ(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),wQ(e,t,n,r)}function wQ(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function TQ(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function EQ(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),DQ(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){Y(i,function(t,n){e[t?`select`:`unSelect`](n)}),DQ(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function DQ(e,t){var n=t||{};return Y(e.getData(),function(t){var r=t.get(`name`);if(r!==` -`&&r!==``){var i=e.isSelected(r);n[r]=Z(n,r)?n[r]&&i:i}}),n}function rpe(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,YS(EQ,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,YS(EQ,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,YS(EQ,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,YS(EQ,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,YS(EQ,`unSelect`))}var ipe=nA(ape);function ape(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;nn[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=sC(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new OO({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&nM(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;Y([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,ZS(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=jQ[i],o=MQ[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(SQ);function cpe(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function lpe(e){ZW(OQ),e.registerComponentModel(ope),e.registerComponentView(spe),cpe(e)}function upe(e){ZW(OQ),ZW(lpe)}var dpe=function(e){vS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.inside`,t.defaultOption=MP(_Z.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(_Z),NQ=Lk();function fpe(e,t,n){NQ(e).coordSysRecordMap.each(function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)})}function ppe(e,t){for(var n=NQ(e).coordSysRecordMap,r=n.keys(),i=0;ia[i+r]&&(r=n),o&&=t.get(`preventDefaultMouseMove`,!0),s=sC(t.get(`cursorGrab`,!0),s),c=sC(t.get(`cursorGrabbing`,!0),c)}),{controlType:r,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:n,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint},cursorGrab:s,cursorGrabbing:c}}}function vpe(e){e.registerUpdateLifecycle(`coordsys:aftercreate`,function(e,t){var n=NQ(t),r=n.coordSysRecordMap||=_C();r.each(function(e){e.dataZoomInfoMap=null}),e.eachComponent({mainType:`dataZoom`,subType:`inside`},function(e){Y(dZ(e).infoList,function(n){var i=n.model.uid,a=r.get(i)||r.set(i,mpe(t,n.model));(a.dataZoomInfoMap||=_C()).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})})}),r.each(function(e){var n=e.controller,i,a=e.dataZoomInfoMap;if(a){var o=a.keys()[0];o!=null&&(i=a.get(o))}if(!i)PQ(r,e);else{var s=_pe(a,e,t);n.enable(s.controlType,s.opt),nV(e,`dispatchAction`,i.model.get(`throttle`,!0),`fixRate`)}})})}var ype=function(e){vS(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataZoom.inside`,t}return t.prototype.render=function(t,n,r){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),fpe(r,t,{pan:JS(FQ.pan,this),zoom:JS(FQ.zoom,this),scrollMove:JS(FQ.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){ppe(this.api,this.dataZoomModel),this.range=null},t.type=`dataZoom.inside`,t}(yZ),FQ={zoom:function(e,t,n,r){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=LQ[t](null,[r.originX,r.originY],o,n,e),c=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],l=Math.max(1/r.scale,0);a[0]=(a[0]-c)*l+c,a[1]=(a[1]-c)*l+c;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Zq(0,a,[0,100],0,u.minSpan,u.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:IQ(function(e,t,n,r,i,a){var o=LQ[r]([a.oldX,a.oldY],[a.newX,a.newY],t,i,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:IQ(function(e,t,n,r,i,a){return LQ[r]([0,0],[a.scrollDelta,a.scrollDelta],t,i,n).signal*(e[1]-e[0])*a.scrollDelta})};function IQ(e){return function(t,n,r,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s&&(Zq(e(o,s,t,n,r,i),o,[0,100],`all`),this.range=o,a[0]!==o[0]||a[1]!==o[1]))return o}}var LQ={grid:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem.getRect();return e||=[0,0],a.dim===`x`?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem,c=s.getRadiusAxis().getExtent(),l=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType===`radiusAxis`?(o.pixel=t[0]-e[0],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,n,r,i){var a=n.axis,o=i.model.coordinateSystem.getRect(),s={};return e||=[0,0],a.orient===`horizontal`?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function bpe(e){wZ(e),e.registerComponentModel(dpe),e.registerComponentView(ype),vpe(e)}var xpe=function(e){vS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.slider`,t.layoutMode=`box`,t.defaultOption=MP(_Z.defaultOption,{show:!0,right:`ph`,top:`ph`,width:`ph`,height:`ph`,left:null,bottom:null,borderColor:Q.color.accent10,borderRadius:0,backgroundColor:Q.color.transparent,dataBackground:{lineStyle:{color:Q.color.accent30,width:.5},areaStyle:{color:Q.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:Q.color.accent40,width:.5},areaStyle:{color:Q.color.accent20,opacity:.3}},fillerColor:`rgba(135,175,274,0.2)`,handleIcon:`path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z`,handleSize:`100%`,handleStyle:{color:Q.color.neutral00,borderColor:Q.color.accent20},moveHandleSize:7,moveHandleIcon:`path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z`,moveHandleStyle:{color:Q.color.accent40,opacity:.5},showDetail:!0,showDataShadow:`auto`,realtime:!0,zoomLock:!1,textStyle:{color:Q.color.tertiary},brushSelect:!0,brushStyle:{color:Q.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:Q.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t}(_Z),RQ=OO,Spe=1,zQ=30,Cpe=7,BQ=`horizontal`,VQ=`vertical`,wpe=5,Tpe=[`line`,`bar`,`candlestick`,`scatter`],Epe={easing:`cubicOut`,duration:100,delay:0},Dpe=function(e){vS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(e,t){this.api=t,this._onBrush=JS(this._onBrush,this),this._onBrushEnd=JS(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){e.prototype.render.apply(this,arguments),nV(this,`_dispatchZoomAction`,t.get(`throttle`),`fixRate`),this._orient=t.getOrient(),t.get(`show`)===!1?this.group.removeAll():t.noTarget()?(this._clear(),this.group.removeAll()):(i&&i.type===`dataZoom`&&i.from===this.uid||this._buildView(),this._updateView())},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){rV(this,`_dispatchZoomAction`);var e=this.api.getZr();e.off(`mousemove`,this._onBrush),e.off(`mouseup`,this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new yj;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get(`brushSelect`)?Cpe:0,r=rI(e,t).refContainer,i=this._findCoordRect(),a=e.get(`defaultLocationEdgeGap`,!0)||0,o=this._orient===BQ?{right:r.width-i.x-i.width,top:r.height-zQ-a-n,width:i.width,height:zQ}:{right:a,top:i.y,width:zQ,height:i.height},s=oI(e.option);Y([`right`,`top`,`width`,`height`],function(e){s[e]===`ph`&&(s[e]=o[e])});var c=tI(s,r);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===VQ&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get(`inverse`),a=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n===BQ&&!i?{scaleY:o?1:-1,scaleX:1}:n===BQ&&i?{scaleY:o?1:-1,scaleX:-1}:n===VQ&&!i?{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2});var s=e.getBoundingRect([a]),c=isNaN(s.x)?0:s.x,l=isNaN(s.y)?0:s.y;e.x=t.x-c,e.y=t.y-l,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get(`brushSelect`);n.add(new RQ({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get(`backgroundColor`)},z2:-40}));var i=new RQ({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:`transparent`},z2:0,onclick:JS(this._onClickPanel,this)}),a=this.api.getZr();r?(i.on(`mousedown`,this._onBrushStart,this),i.cursor=`crosshair`,a.on(`mousemove`,this._onBrush),a.on(`mouseup`,this._onBrushEnd)):(a.off(`mousemove`,this._onBrush),a.off(`mouseup`,this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var t=this._size,n=this._shadowSize||[],r=e.series,i=r.getRawData(),a=r.getShadowDim&&r.getShadowDim(),o=a&&i.getDimensionInfo(a)?r.getShadowDim():e.otherDim;if(o==null)return;var s=this._shadowPolygonPts,c=this._shadowPolylinePts;if(i!==this._shadowData||o!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var l=i.getDataExtent(e.thisDim),u=i.getDataExtent(o),d=(u[1]-u[0])*.3;u=[u[0]-d,u[1]+d];var f=[0,t[1]],p=[0,t[0]],m=[[t[0],0],[0,0]],h=[],g=p[1]/Math.max(1,i.count()-1),_=t[0]/(l[1]-l[0]),v=e.thisAxis.type===`time`,y=-g,b=Math.round(i.count()/t[0]),x;i.each([e.thisDim,o],function(e,t,n){if(b>0&&n%b)v||(y+=g);else{y=v?(+e-l[0])*_:y+g;var r=t==null||isNaN(t)||t===``,i=r?0:ek(t,u,f,!0);r&&!x&&n?(m.push([m[m.length-1][0],0]),h.push([h[h.length-1][0],0])):!r&&x&&(m.push([y,0]),h.push([y,0])),r||(m.push([y,i]),h.push([y,i])),x=r}}),s=this._shadowPolygonPts=m,c=this._shadowPolylinePts=h}this._shadowData=i,this._shadowDim=o,this._shadowSize=[t[0],t[1]];var S=this.dataZoomModel;function C(e){var t=S.getModel(e?`selectedDataBackground`:`dataBackground`),n=new yj,r=new Ij({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel(`areaStyle`).getAreaStyle(),silent:!0,z2:-20}),i=new Lj({shape:{points:c},segmentIgnoreThreshold:1,style:t.getModel(`lineStyle`).getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}for(var w=0;w<3;w++){var T=C(w===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get(`showDataShadow`);if(t!==!1){var n,r=this.ecModel;return e.eachTargetAxis(function(i,a){Y(e.getAxisProxy(i,a).getTargetSeriesModels(),function(e){if(!n&&!(t!==!0&&BS(Tpe,e.get(`type`))<0)){var o=r.getComponent(lZ(i),a).axis,s=Ope(i),c,l=e.coordinateSystem;s!=null&&l.getOtherAxis&&(c=l.getOtherAxis(o).inverse),s=e.getData().mapDimension(s),n={thisAxis:o,series:e,thisDim:e.getData().mapDimension(i),otherDim:s,otherAxisInverse:c}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=this._displayables.sliderGroup,a=this._size,o=this.dataZoomModel,s=this.api,c=o.get(`borderRadius`)||0,l=o.get(`brushSelect`),u=t.filler=new RQ({silent:l,style:{fill:o.get(`fillerColor`)},textConfig:{position:`inside`}});i.add(u),i.add(new RQ({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:c},style:{stroke:o.get(`dataBackgroundColor`)||o.get(`borderColor`),lineWidth:Spe,fill:Q.color.transparent}})),Y([0,1],function(t){var a=o.get(`handleIcon`);!VI[a]&&a.indexOf(`path://`)<0&&a.indexOf(`image://`)<0&&(a=`path://`+a);var s=HI(a,-1,0,2,2,null,!0);s.attr({cursor:kpe(this._orient),draggable:!0,drift:JS(this._onDragMove,this,t),ondragend:JS(this._onDragEnd,this),onmouseover:JS(this._onOverDataInfoTriggerArea,this,!0),onmouseout:JS(this._onOverDataInfoTriggerArea,this,!1),z2:5});var c=s.getBoundingRect(),l=o.get(`handleSize`);this._handleHeight=tk(l,this._size[1]),this._handleWidth=c.width/c.height*this._handleHeight,s.setStyle(o.getModel(`handleStyle`).getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState(`emphasis`).style=o.getModel([`emphasis`,`handleStyle`]).getItemStyle(),QA(s);var u=o.get(`handleColor`);u!=null&&(s.style.fill=u),i.add(n[t]=s);var d=o.getModel(`textStyle`),f=(o.get(`handleLabel`)||{}).show||!1;e.add(r[t]=new MO({silent:!0,invisible:!f,style:QM(d,{x:0,y:0,text:``,verticalAlign:`middle`,align:`center`,fill:d.getTextColor(),font:d.getFont()}),z2:10}))},this);var d=u;if(l){var f=tk(o.get(`moveHandleSize`),a[1]),p=t.moveHandle=new OO({style:o.getModel(`moveHandleStyle`).getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:f}}),m=f*.8,h=t.moveHandleIcon=HI(o.get(`moveHandleIcon`),-m/2,-m/2,m,m,Q.color.neutral00,!0);h.silent=!0,h.y=a[1]+f/2-.5,p.ensureState(`emphasis`).style=o.getModel([`emphasis`,`moveHandleStyle`]).getItemStyle();var g=Math.min(a[1]/2,Math.max(f,10));d=t.moveZone=new OO({invisible:!0,shape:{y:a[1]-g,height:f+g}}),d.on(`mouseover`,function(){s.enterEmphasis(p)}).on(`mouseout`,function(){s.leaveEmphasis(p)}),i.add(p),i.add(h),i.add(d)}d.attr({draggable:!0,cursor:`grab`,drift:JS(this._onActualMoveZoneDrift,this),ondragstart:JS(this._onActualMoveZoneDragStart,this),ondragend:JS(this._onActualMoveZoneDragEnd,this),onmouseover:JS(this._onOverDataInfoTriggerArea,this,!0),onmouseout:JS(this._onOverDataInfoTriggerArea,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[ek(e[0],[0,100],t,!0),ek(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];Zq(t,r,i,n.get(`zoomLock`)?`all`:e,a.minSpan==null?null:ek(a.minSpan,o,i,!0),a.maxSpan==null?null:ek(a.maxSpan,o,i,!0));var s=this._range,c=this._range=ak([ek(r[0],i,o,!0),ek(r[1],i,o,!0)]);return!s||s[0]!==c[0]||s[1]!==c[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=ak(n.slice()),i=this._size;Y([0,1],function(e){var r=t.handles[e],a=this._handleHeight;r.attr({scaleX:a/2,scaleY:a/2,x:n[e]+(e?-1:1),y:i[1]/2-a/2})},this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var a={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(a),t.moveZone.setShape(a),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr(`x`,a.x+a.width/2));for(var o=t.dataShadowSegs,s=[0,r[0],r[1],i[0]],c=0;ct[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,a=this._updateInterval(`all`,n[0]-i);this._updateView(),a&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new _w(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr(`ignore`,!0);var n=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),i=[0,100],a=this._handleEnds=[n.x,n.x+n.width],o=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();Zq(0,a,r,0,o.minSpan==null?null:ek(o.minSpan,i,r,!0),o.maxSpan==null?null:ek(o.maxSpan,i,r,!0)),this._range=ak([ek(a[0],r,i,!0),ek(a[1],r,i,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(OV(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new RQ({silent:!0,style:r.getModel(`brushStyle`).getItemStyle()}),n.sliderGroup.add(i)),i.attr(`ignore`,!1);var a=this._brushStart,o=this._displayables.sliderGroup,s=o.transformCoordToLocal(e,t),c=o.transformCoordToLocal(a.x,a.y),l=this._size;s[0]=Math.max(Math.min(l[0],s[0]),0),i.setShape({x:c[0],y:0,width:s[0]-c[0],height:l[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:`dataZoom`,from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?Epe:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=dZ(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),i=this.api.getHeight();e={x:r*.2,y:i*.2,width:r*.6,height:i*.6}}return e},t.type=`dataZoom.slider`,t}(yZ);function HQ(e,t,n,r){var i=e.get(`labelFormatter`),a=e.get(`labelPrecision`);(a==null||a===`auto`)&&(a=n.valuePrecision);var o=n.value[t],s=o==null||isNaN(o)?``:FL(r)||NL(r)?r.getLabel({value:Math.round(o)}):isFinite(a)?ik(o,a,!0):o+``;return XS(i)?i(o,s):ZS(i)?i.replace(`{value}`,s):s}function Ope(e){return{x:`y`,y:`x`,radius:`angle`,angle:`radius`}[e]}function kpe(e){return e===`vertical`?`ns-resize`:`ew-resize`}function Ape(e){e.registerComponentModel(xpe),e.registerComponentView(Dpe),wZ(e)}function jpe(e){ZW(bpe),ZW(Ape)}var UQ={get:function(e,t,n){var r=LS((Mpe[e]||{})[t]);return n&&X(r)?r[r.length-1]:r}},Mpe={color:{active:[`#006edd`,`#e0ffff`],inactive:[Q.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:[`circle`,`roundRect`,`diamond`],inactive:[`none`]},symbolSize:{active:[10,50],inactive:[0,0]}},WQ=mq.mapVisual,Npe=mq.eachVisual,Ppe=X,GQ=Y,Fpe=ak,Ipe=ek,KQ=function(e){vS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=[`inRange`,`outOfRange`],n.replacableOptionKeys=[`inRange`,`outOfRange`,`target`,`controller`,`color`],n.layoutMode={type:`box`,ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&Mfe(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel(`textStyle`),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=JS(e,this),this.controllerVisuals=qZ(this.option.controller,t,e),this.targetVisuals=qZ(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this,t=this.option.seriesTargets;if(t){var n=[];return GQ(t,function(t){if(t.seriesIndex!=null)n.push(t.seriesIndex);else if(t.seriesId!=null){var r;e.ecModel.eachSeries(function(e){e.id===t.seriesId&&(r=e)}),r&&n.push(r.componentIndex)}}),n}var r=this.option.seriesId,i=this.option.seriesIndex;i==null&&r==null&&(i=`all`);var a=Vk(this.ecModel,`series`,{index:i,id:r},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return US(a,function(e){return e.componentIndex})},t.prototype.eachTargetSeries=function(e,t){Y(this.getTargetSeriesIndices(),function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)},this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries(function(n){n===e&&(t=!0)}),t},t.prototype.formatValueText=function(e,t,n){var r=this.option,i=r.precision,a=this.dataBound,o=r.formatter,s;n||=[`<`,`>`],X(e)&&(e=e.slice(),s=!0);var c=t?e:s?[l(e[0]),l(e[1])]:l(e);return ZS(o)?o.replace(`{value}`,s?c[0]:c).replace(`{value2}`,s?c[1]:c):XS(o)?s?o(e[0],e[1]):o(e):s?e[0]===a[0]?n[0]+` `+c[1]:e[1]===a[1]?n[1]+` `+c[0]:c[0]+` - `+c[1]:c;function l(e){return e===a[0]?`min`:e===a[1]?`max`:(+e).toFixed(Math.min(i,20))}},t.prototype.resetExtent=function(){var e=this.option,t=Fpe([e.min,e.max]);this._dataExtent=t},t.prototype.getDimension=function(e){var t=this,n=this.option.seriesTargets;if(n){var r=KS(n,function(n){return n.seriesIndex!=null&&n.seriesIndex===e||n.seriesId!=null&&n.seriesId===t.ecModel.getSeriesByIndex(e).id});if(r)return r.dimension}return this.option.dimension},t.prototype.getDataDimensionIndex=function(e){var t=e.hostModel.seriesIndex,n=this.getDimension(t);if(n!=null)return e.getDimensionIndex(n);for(var r=e.dimensions,i=r.length-1;i>=0;i--){var a=r[i],o=e.getDimensionInfo(a);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||={},i=t.controller||={};RS(r,n),RS(i,n);var a=this.isCategory();o.call(this,r),o.call(this,i),s.call(this,r,`inRange`,`outOfRange`),c.call(this,i);function o(n){Ppe(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get(`gradientColor`)}}function s(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},GQ(r,function(e,t){if(mq.isValidType(t)){var n=UQ.get(t,`inactive`,a);n!=null&&(i[t]=n,t===`color`&&!i.hasOwnProperty(`opacity`)&&!i.hasOwnProperty(`colorAlpha`)&&(i.opacity=[0,0]))}}))}function c(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get(`inactiveColor`),i=this.getItemSymbol()||`roundRect`;GQ(this.stateList,function(o){var s=this.itemSize,c=e[o];c||=e[o]={color:a?r:[r]},c.symbol??(c.symbol=t&&LS(t)||(a?i:[i])),c.symbolSize??(c.symbolSize=n&&LS(n)||(a?s[0]:[s[0],s[0]])),c.symbol=WQ(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;Npe(l,function(e){e>u&&(u=e)}),c.symbolSize=WQ(l,function(e){return Ipe(e,[0,u],[0,s[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get(`itemWidth`)),parseFloat(this.get(`itemHeight`))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type=`visualMap`,t.dependencies=[`series`],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:`vertical`,backgroundColor:Q.color.transparent,borderColor:Q.color.borderTint,contentColor:Q.color.theme[0],inactiveColor:Q.color.disabled,borderWidth:0,padding:Q.size.m,textGap:10,precision:0,textStyle:{color:Q.color.secondary}},t}(sI),qQ=[20,140],Lpe=function(e){vS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod=`linear`,e.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=qQ[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=qQ[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):X(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),Y(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=ak((this.get(`range`)||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]=n[1]||e<=t[1])?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},t.prototype.getVisualMeta=function(e){var t=JQ(this,`outOfRange`,this.getExtent()),n=JQ(this,`inRange`,this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,c=t.length;oe[1])break;r.push({color:this.getControllerVisual(o,`color`,t),offset:a/n})}return r.push({color:this.getControllerVisual(e[1],`color`,t),offset:1}),r},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get(`inverse`);return new yj(t===`horizontal`&&!n?{scaleX:e===`bottom`?1:-1,rotation:Math.PI/2}:t===`horizontal`&&n?{scaleX:e===`bottom`?-1:1,rotation:-Math.PI/2}:t===`vertical`&&!n?{scaleX:e===`left`?1:-1,scaleY:-1}:{scaleX:e===`left`?1:-1})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent(),c=this._applyTransform(`left`,n.mainGroup);Rpe([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=$Q(e[l],[0,o[1]],s,!0),f=this.getControllerVisual(d,`symbolSize`);u.scaleX=u.scaleY=f/o[0],u.x=o[0]-f/2;var p=SM(n.handleLabelPoints[l],xM(u,this.group));if(this._orient===`horizontal`){var m=c===`left`||c===`top`?(o[0]-f)/2:(o[0]-f)/-2;p[1]+=m}a[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:`middle`,align:this._orient===`vertical`?this._applyTransform(`left`,n.mainGroup):`center`})},this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],c=this._shapes,l=c.indicator;if(l){l.attr(`invisible`,!1);var u=this.getControllerVisual(e,`color`,{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,`symbolSize`),f=$Q(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=SM(c.indicatorLabelPoint,xM(l,this.group)),g=c.indicatorLabel;g.attr(`invisible`,!1);var _=this._applyTransform(`left`,c.mainGroup),v=this._orient===`horizontal`;g.setStyle({text:(n||``)+i.formatValueText(t),verticalAlign:v?_:`middle`,align:v?`center`:_});var y={x:p,y:f,style:{fill:u}},b={style:{x:h[0],y:h[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:`cubicInOut`,additive:!0};l.x=m.x,l.y=m.y,l.animateTo(y,x),g.animateTo(b,x)}else l.attr(y),g.attr(b);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;Ci[1]&&(l[1]=1/0),t&&(l[0]===-1/0?this._showIndicator(c,l[1],`< `,o):l[1]===1/0?this._showIndicator(c,l[0],`> `,o):this._showIndicator(c,c,`≈ `,o));var u=this._hoverLinkDataIndices,d=[];(t||r$(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=dae(u,d);this._dispatchHighDown(`downplay`,QQ(f[0],n)),this._dispatchHighDown(`highlight`,QQ(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(lU(e.target,function(e){var n=rA(e);if(n.dataIndex!=null)return t=n,!0},!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr(`invisible`,!0),e.indicatorLabel&&e.indicatorLabel.attr(`invisible`,!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function Kpe(e,t,n,r){for(var i=t.targetVisuals[r],a=mq.prepareVisualTypes(i),o={color:cU(e.getData(),`color`)},s=0,c=a.length;s0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(Upe,Wpe),Y(Gpe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(qpe))}function Jpe(e){e.registerComponentModel(Lpe),e.registerComponentView(Vpe),c$(e)}var Ype=function(e){vS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],Xpe[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(e,t){r===`categories`?(e.mappingMethod=`category`,e.categories=LS(i)):(e.dataExtent=this.getExtent(),e.mappingMethod=`piecewise`,e.pieceList=US(this._pieceList,function(e){return e=LS(e),t!==`inRange`&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=mq.listVisualTypes(),i=this.isCategory();Y(t.pieces,function(e){Y(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),Y(n,function(e,n){var r=!1;Y(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&Y(this.stateList,function(e){(t[e]||(t[e]={}))[n]=UQ.get(n,e===`inRange`?`active`:`inactive`,i)})},this);function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,Y(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),n.selectedMode===`single`){var a=!1;Y(r,function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get(`itemSymbol`)},t.prototype.getSelectedMapKey=function(e){return this._mode===`categories`?e.value+``:e.index+``},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?`pieces`:this.option.categories?`categories`:`splitNumber`},t.prototype.setSelected=function(e){this.option.selected=LS(e)},t.prototype.getValueState=function(e){var t=mq.findPieceIndex(e,this._pieceList);return t==null?`outOfRange`:this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries(function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(t,r){mq.findPieceIndex(t,n)===e&&i.push(r)},this),t.push({seriesId:r.id,dataIndex:i})},this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(e.value!=null)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var t=[],n=[``,``],r=this;function i(i,a){var o=r.getRepresentValue({interval:i});a||=r.getValueState(o);var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}var a=this._pieceList.slice();if(!a.length)a.push({interval:[-1/0,1/0]});else{var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),o=a[a.length-1].interval[1],o!==1/0&&a.push({interval:[o,1/0]})}var s=-1/0;return Y(a,function(e){var t=e.interval;t&&(t[0]>s&&i([s,t[0]],`outOfRange`),i(t.slice()),s=t[1])},this),{stops:t,outerColors:n}},t.type=`visualMap.piecewise`,t.defaultOption=MP(KQ.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:`auto`,itemWidth:20,itemHeight:14,itemSymbol:`roundRect`,pieces:null,categories:null,splitNumber:5,selectedMode:`multiple`,itemGap:10,hoverLink:!0}),t}(KQ),Xpe={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o`,`≥`][t[0]]];e.text=e.text||this.formatValueText(e.value==null?e.interval:e.value,!1,n)},this)}};function l$(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}var Zpe=function(e){vS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get(`textGap`),r=t.textStyleModel,i=this._getItemAlign(),a=t.itemSize,o=this._getViewData(),s=o.endsText,c=oC(t.get(`showLabel`,!0),!s),l=!t.get(`selectedMode`);s&&this._renderEndsText(e,s[0],a,c,i),Y(o.viewPieceList,function(o){var s=o.piece,u=new yj;u.onclick=JS(this._onItemClick,this,s),this._enableHoverLink(u,o.indexInModelPieceList);var d=t.getRepresentValue(s);if(this._createItemSymbol(u,d,[0,0,a[0],a[1]],l),c){var f=this.visualMapModel.getValueState(d),p=r.get(`align`)||i;u.add(new MO({style:QM(r,{x:p===`right`?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:r.get(`verticalAlign`)||`middle`,align:p,opacity:sC(r.get(`opacity`),f===`outOfRange`?.5:1)}),silent:l}))}e.add(u)},this),s&&this._renderEndsText(e,s[1],a,c,i),eI(t.get(`orient`),e,t.get(`itemGap`)),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on(`mouseover`,function(){return r(`highlight`)}).on(`mouseout`,function(){return r(`downplay`)});var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:QQ(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return ZQ(e,this.api,e.itemSize);var n=t.align;return n&&n!==`auto`||(n=`left`),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new yj,o=this.visualMapModel.textStyleModel;a.add(new MO({style:QM(o,{x:r?i===`right`?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:`middle`,align:r?i:`center`,text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=US(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get(`text`),r=e.get(`orient`),i=e.get(`inverse`);return(r===`horizontal`?i:!i)?t.reverse():n&&=n.slice().reverse(),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var i=HI(this.getControllerVisual(t,`symbol`),n[0],n[1],n[2],n[3],this.getControllerVisual(t,`color`));i.silent=r,e.add(i)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=LS(n.selected),a=t.getSelectedMapKey(e);r===`single`||r===!0?(i[a]=!0,Y(i,function(e,t){i[t]=t===a})):i[a]=!i[a],this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type=`visualMap.piecewise`,t}(YQ);function Qpe(e){e.registerComponentModel(Ype),e.registerComponentView(Zpe),c$(e)}function $pe(e){ZW(Jpe),ZW(Qpe)}var eme={label:{enabled:!0},decal:{show:!1}},u$=Lk(),d$=Lk(),tme=nA(nme);function nme(e,t){var n=e.getModel(`aria`);if(!n.get(`enabled`))return;var r=d$(e).scope||(d$(e).scope={}),i=LS(eme);RS(i.label,e.getLocaleModel().get(`aria`),!1),RS(n.option,i,!1),a(),o();function a(){if(n.getModel(`decal`).get(`show`)){var t=_C();e.eachSeries(function(e){e.isColorBySeries()||(u$(e).scope=t.get(e.type)||t.set(e.type,{}))}),e.eachSeries(function(t){if(XS(t.enableAriaDecal)){t.enableAriaDecal();return}var n=t.getData();if(t.isColorBySeries()){var i=uI(t.ecModel,t.name,r,e.getSeriesCount()),a=n.getVisual(`decal`);n.setVisual(`decal`,u(a,i))}else{var o=t.getRawData(),s={},c=u$(t).scope;n.each(function(e){var t=n.getRawIndex(e);s[t]=e});var l=o.count();o.each(function(e){var r=s[e],i=o.getName(e)||e+``,a=uI(t.ecModel,i,c,l),d=n.getItemVisual(r,`decal`);n.setItemVisual(r,`decal`,u(d,a))})}function u(e,t){var n=e?J(J({},t),e):t;return n.dirty=!0,n}})}}function o(){var r=t.getZr().dom;if(r){var i=e.getLocaleModel().get(`aria`),a=n.getModel(`label`);if(a.option=zS(a.option,i),a.get(`enabled`)){if(r.setAttribute(`role`,`img`),a.get(`description`))r.setAttribute(`aria-label`,a.get(`description`));else{var o=e.getSeriesCount(),u=a.get([`data`,`maxCount`])||10,d=a.get([`series`,`maxCount`])||10,f=Math.min(o,d),p;if(!(o<1)){var m=c();p=m?s(a.get([`general`,`withTitle`]),{title:m}):a.get([`general`,`withoutTitle`]);var h=[],g=o>1?a.get([`series`,`multiple`,`prefix`]):a.get([`series`,`single`,`prefix`]);p+=s(g,{seriesCount:o}),e.eachSeries(function(e,t){if(t1?a.get([`series`,`multiple`,r]):a.get([`series`,`single`,r]),n=s(n,{seriesId:e.seriesIndex,seriesName:e.get(`name`),seriesType:l(e.subType)});var i=e.getData();if(i.count()>u){var c=a.get([`data`,`partialData`]);n+=s(c,{displayCnt:u})}else n+=a.get([`data`,`allData`]);for(var d=a.get([`data`,`separator`,`middle`]),p=a.get([`data`,`separator`,`end`]),m=a.get([`data`,`excludeDimensionId`]),g=[],_=0;_=h$:-c>=h$),f=c>0?c%h$:c%h$+h$,p=!1;p=d?!0:!gE(u)&&f>=m$==!!l;var m=e+n*p$(a),h=t+r*f$(a);this._start&&this._add(`M`,m,h);var g=Math.round(i*ame);if(d){var _=1/this._p,v=(l?1:-1)*(h$-_);this._add(`A`,n,r,g,1,+l,e+n*p$(a+v),t+r*f$(a+v)),_>.01&&this._add(`A`,n,r,g,0,+l,m,h)}else{var y=e+n*p$(o),b=t+r*f$(o);this._add(`A`,n,r,g,+p,+l,y,b)}},e.prototype.rect=function(e,t,n,r){this._add(`M`,e,t),this._add(`l`,n,0),this._add(`l`,0,r),this._add(`l`,-n,0),this._add(`Z`)},e.prototype.closePath=function(){this._d.length>0&&this._add(`Z`)},e.prototype._add=function(e,t,n,r,i,a,o,s,c){for(var l=[],u=this._p,d=1;d`}function hme(e){return``}function C$(e,t){t||={};var n=t.newline?` -`:``;function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return mme(i,a)+(i===`style`?o||``:KP(o))+(t?``+n+US(t,function(e){return r(e)}).join(n)+n:``)+hme(i)}return r(e)}function gme(e,t,n){n||={};var r=n.newline?` -`:``,i=` {`+r,a=r+`}`,o=US(qS(e),function(t){return t+i+US(qS(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=US(qS(t),function(e){return`@keyframes `+e+i+US(qS(t[e]),function(n){return n+i+US(qS(t[e][n]),function(r){var i=t[e][n][r];return r===`d`&&(i=`path("`+i+`")`),r+`:`+i+`;`}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?``:[``].join(r)}function w$(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function T$(e,t,n,r){return S$(`svg`,`root`,{width:e,height:t,xmlns:y$,"xmlns:xlink":b$,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var _me=0;function E$(){return _me++}var D$={cubicIn:`0.32,0,0.67,0`,cubicOut:`0.33,1,0.68,1`,cubicInOut:`0.65,0,0.35,1`,quadraticIn:`0.11,0,0.5,0`,quadraticOut:`0.5,1,0.89,1`,quadraticInOut:`0.45,0,0.55,1`,quarticIn:`0.5,0,0.75,0`,quarticOut:`0.25,1,0.5,1`,quarticInOut:`0.76,0,0.24,1`,quinticIn:`0.64,0,0.78,0`,quinticOut:`0.22,1,0.36,1`,quinticInOut:`0.83,0,0.17,1`,sinusoidalIn:`0.12,0,0.39,0`,sinusoidalOut:`0.61,1,0.88,1`,sinusoidalInOut:`0.37,0,0.63,1`,exponentialIn:`0.7,0,0.84,0`,exponentialOut:`0.16,1,0.3,1`,exponentialInOut:`0.87,0,0.13,1`,circularIn:`0.55,0,1,0.45`,circularOut:`0,0.55,0.45,1`,circularInOut:`0.85,0,0.15,1`},O$=`transform-origin`;function vme(e,t,n){var r=J({},e.shape);J(r,t),e.buildPath(n,r);var i=new g$;return i.reset(jE(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function yme(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[O$]=n+`px `+r+`px`)}var bme={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function k$(e,t){var n=t.zrId+`-ani-`+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function xme(e,t,n){var r=e.shape.paths,i={},a,o;if(Y(r,function(e){var t=w$(n.zrId);t.animation=!0,j$(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=qS(r),l=c.length;if(l){o=c[l-1];var u=r[o];for(var d in u){var f=u[d];i[d]=i[d]||{d:``},i[d].d+=f.d||``}for(var p in s){var m=s[p].animation;m.indexOf(o)>=0&&(a=m)}}}),a){t.d=!1;var s=k$(i,n);return a.replace(o,s)}}function A$(e){return ZS(e)?D$[e]?`cubic-bezier(`+D$[e]+`)`:HT(e)?e:``:``}function j$(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof Uj){var s=xme(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var c={},l=0;l0}).length)return k$(l,n)+` `+i[0]+` both`}for(var g in c){var s=h(c[g]);s&&o.push(s)}if(o.length){var _=n.zrId+`-cls-`+E$();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function Sme(e,t,n){if(!e.ignore){if(e.isSilent()){var r={"pointer-events":`none`};M$(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,c=e.currentStates.indexOf(`select`)>=0&&s||o;c&&(a=fE(c))}var l=i.lineWidth;if(l){var u=!i.strokeNoScale&&e.transform?e.transform[0]:1;l/=u}var r={cursor:`pointer`};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),l&&(r[`stroke-width`]=l),M$(r,t,n,!0)}}}function M$(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+E$(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var N$=Math.round;function P$(e){return e&&ZS(e.src)}function F$(e){return e&&XS(e.toDataURL)}function I$(e,t,n,r){ume(function(i,a){var o=i===`fill`||i===`stroke`;o&&kE(a)?W$(t,e,i,r):o&&EE(a)?G$(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),kme(n,e,r)}function L$(e,t){var n=xue(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[pme+`silent`]=`true`))}function R$(e){return gE(e[0]-1)&&gE(e[1])&&gE(e[2])&&gE(e[3]-1)}function Cme(e){return gE(e[4])&&gE(e[5])}function z$(e,t,n){if(t&&!(Cme(t)&&R$(t))){var r=n?10:1e4;e.transform=R$(t)?`translate(`+N$(t[4]*r)/r+` `+N$(t[5]*r)/r+`)`:yE(t)}}function B$(e,t,n){for(var r=e.points,i=[],a=0;a`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;dC(f,g),dC(p,g)}else if(f==null||p==null){var _=function(e,t){if(e){var n=e.elm,r=f||t.width,i=p||t.height;e.tag===`pattern`&&(l?(i=1,r/=a.width):u&&(r=1,i/=a.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute(`width`,r),n.setAttribute(`height`,i))}},v=YC(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=S$(`image`,`img`,{href:m,width:f,height:p}),o.width=f,o.height=p}else i.svgElement&&(d=LS(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(d){var y,b;c?y=b=1:l?(b=1,y=o.width/a.width):u?(y=1,b=o.height/a.height):o.patternUnits=`userSpaceOnUse`,y!=null&&!isNaN(y)&&(o.width=y),b!=null&&!isNaN(b)&&(o.height=b);var x=ME(i);x&&(o.patternTransform=x);var S=S$(`pattern`,``,o,[d]),C=C$(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=S$(`pattern`,T,o,[d])),t[n]=AE(T)}}function Ame(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){a=n.zrId+`-c`+n.clipPathIdx++;var o={id:a};r[e.id]=a,i[a]=S$(`clipPath`,a,o,[H$(e,n)])}t[`clip-path`]=AE(a)}function K$(e){return document.createTextNode(e)}function q$(e,t,n){e.insertBefore(t,n)}function J$(e,t){e.removeChild(t)}function Y$(e,t){e.appendChild(t)}function X$(e){return e.parentNode}function Z$(e){return e.nextSibling}function Q$(e,t){e.textContent=t}var $$=58,jme=120,Mme=S$(``,``);function e1(e){return e===void 0}function t1(e){return e!==void 0}function Nme(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;a!==void 0&&(r[a]=i)}return r}function n1(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function r1(e){var t,n=e.children,r=e.tag;if(t1(r)){var i=e.elm=x$(r);if(o1(Mme,e),X(n))for(t=0;ta?(m=n[c+1]==null?null:n[c+1].elm,i1(e,m,n,i,c)):a1(e,t,r,a))}function s1(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(o1(e,t),e1(t.text)?t1(r)&&t1(i)?r!==i&&Pme(n,r,i):t1(i)?(t1(e.text)&&Q$(n,``),i1(n,null,i,0,i.length-1)):t1(r)?a1(n,r,0,r.length-1):t1(e.text)&&Q$(n,``):e.text!==t.text&&(t1(r)&&a1(n,r,0,r.length-1),Q$(n,t.text)))}function Fme(e,t){if(n1(e,t))s1(e,t);else{var n=e.elm,r=X$(n);r1(t),r!==null&&(q$(r,t.elm,Z$(n)),a1(r,[e],0,0))}return t}var Ime=0,Lme=function(){function e(e,t,n){if(this.type=`svg`,this.configLayer=Rme(`configLayer`),this.storage=t,this._opts=n=J({},n),this.root=e,this._id=`zr`+Ime++,this._oldVNode=T$(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement(`div`);r.style.cssText=`position:relative;overflow:hidden`;var i=this._svgDom=this._oldVNode.elm=x$(`svg`);o1(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=`position:absolute;left:0;top:0;user-select:none`,Fme(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return U$(e,w$(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=w$(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=zme(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=S$(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=US(qS(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(S$(`defs`,`defs`,{},c)),e.animation){var l=gme(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=S$(`style`,`stl`,{},[],l);a.push(u)}}return T$(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},C$(this.renderToVNode({animation:sC(e.cssAnimation,!0),emphasis:sC(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:sC(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r=e.length,i=[],a=0,o,s,c=0,l=0;l=0&&!(d&&s&&d[m]===s[m]);m--);for(var h=p-1;h>m;h--)a--,o=i[a-1];for(var g=m+1;g=a}}}for(var l=u1(this),u=l.startIdx;u=0)&&(a=!0)}),a||i.__dirty){var o=n._opts.useDirtyRect&&!l1(i)?i.createRepaintRects(e,t,n._width,n._height):null,s=n._i.layerStack[0],c=!0;if(i.__dirty){c=!1,i.__dirty=!1;var l=i.zlevel===s.zl&&i.zlevel2===s.zl2?n._backgroundColor:null;i.clear(!1,l,o)}v1(i,function(t){var a=n._paintPerCursor(i,t,e,o,c);r&&=a})}},w1),CC.wxa&&b1(this._i,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),r},e.prototype._paintPerCursor=function(e,t,n,r,i){var a=e.ctx;if(r){if(!r.length)t.drawIdx=t.endIdx;else for(var o=this.dpr,s=0;s=t.endIdx},e.prototype._paintPerCursorInRect=function(e,t,n,r,i){for(var a={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},o=e.ctx,s=l1(e),c=s&&TS.getTime(),l=t.drawIdx,u=t.notClearIdx,d=u>=0?Math.min(u,l):l;d15){d++;break}}}IU(o,a),t.drawIdx=Math.max(d,l)},e.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},e.prototype._ensureLayer=function(e,t,n){t||=0;var r=this._singleCanvas;r&&!this._needsManuallyCompositing&&(e=p1,t=0);var i=y1(this._i,e)[t];return i||(i=g1(`zr_`+e+`.`+t,this,e,t),this._layerConfig[e]&&RS(i,this._layerConfig[e],!0),(n||r&&e!==p1)&&(i.virtual=!0),this._insertLayer(i,e,t,!1),i.initContext()),i},e.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},e.prototype._insertLayer=function(e,t,n,r){var i=this._i,a=i.layers,o=i.layerStack,s=this._domRoot,c=null;if(!(a[t]&&a[t][n])&&Hme(e)){for(var l=o.length,u=0;u0&&(c=y1(i,o[u-1].zl)[o[u-1].zl2]),o.splice(u,0,{zl:t,zl2:n}),y1(i,t)[n]=e,!r&&!e.virtual){if(c){var d=c.dom;d.nextSibling?s.insertBefore(e.dom,d.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom)}e.painter||=this}},e.prototype.eachLayer=function(e,t){return b1(this._i,function(n,r){e.call(t,n,r)})},e.prototype.eachBuiltinLayer=function(e,t){return b1(this._i,function(n,r){e.call(t,n,r)},x1)},e.prototype.eachOtherLayer=function(e,t){return b1(this._i,function(n,r){e.call(t,n,r)},S1)},e.prototype.getLayers=function(){var e={};return b1(this._i,function(t,n,r){e[t.id]=t}),e},e.prototype._updateLayerStatus=function(e,t){var n=this;if(n._singleCanvas)for(var r=1;r=0;a--){var o=i.get(r[a]);if(!o.used)t.__dirty=!0,i.removeKey(r[a]),r.splice(a,1);else{var s=o.endIdxNew;(l1(t)?s=0;r--){var i=t[r];if(i.zl===e){var a=n[e][i.zl2];if(a.__builtin__)continue;if(t.splice(r,1),n[e][i.zl2]=void 0,!a.virtual){var o=a.dom.parentNode;o&&o.removeChild(a.dom)}}}},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display=`none`;var r=this._opts,i=this.root;e!=null&&(r.width=e),t!=null&&(r.height=t),e=gU(i,0,r),t=gU(i,1,r),n.style.display=``,(this._width!==e||t!==this._height)&&(n.style.width=e+`px`,n.style.height=t+`px`,b1(this._i,function(n){n.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer(p1).resize(e,t)}return this},e.prototype.clearLayer=function(e){Y(this._i.layers[e],function(e){e&&!e.__builtin__&&e.clear()})},e.prototype.dispose=function(){this.root.innerHTML=``,this.root=this.storage=this._domRoot=this._i=null},e.prototype.getRenderedCanvas=function(e){if(e||={},this._singleCanvas&&!this._compositeManually)return this._i.layers[p1][0].dom;var t=new d1(`image`,this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;b1(this._i,function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else{for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o=this.storage.getDisplayList(!0),s=0,c=o.length;s=1024&&t=10||t===0?E1.format(e):Jme.format(e)} ${T1[t]}`}function O1(e){let t=Math.round(e/1e3);if(t<60)return`${t}s`;let n=Math.round(t/60);if(n<60)return`${n}m`;let r=Math.floor(n/60);return r<24?`${r}h ${n%60}m`:`${Math.floor(r/24)}d ${r%24}h`}function k1(e,t=Date.now()){let n=Date.parse(e);return Number.isNaN(n)?`–`:`${O1(Math.max(0,t-n))} ago`}function A1(e){let t=Date.parse(e);return Number.isNaN(t)?e:`${Qme.format(t)} UTC`}function j1(e,t){switch(t){case`bytes`:return D1(e);case`duration`:return O1(e);case`percent`:return`${E1.format(e)}%`;case`usd`:return e<10?Xme.format(e):Zme.format(e);default:return Number.isInteger(e)?E1.format(e):Yme.format(e)}}function M1(e,t){return e==null||e===``?`–`:t.type===`number`&&typeof e==`number`?j1(e,t.unit):t.type===`time`&&typeof e==`string`?k1(e):t.type===`bool`?e?`yes`:`no`:String(e)}function N1(e,t){return`${E1.format(e)} ${t}${e===1?``:t.endsWith(`s`)?`es`:`s`}`}function P1(e){let t=e.replace(/_bytes$|_at$/,``).replaceAll(`_`,` `);return t.charAt(0).toUpperCase()+t.slice(1)}ZW([Wle,$R,MJ,zJ,lX,Vfe,qfe,$fe,iZ,jfe,jpe,upe,$pe,ime,qme,Bme]);function $me(e){let t=Hy[e],n=Uy[e];return{scheme:e,text:t.text,muted:t.muted,line:t.controlBorder,grid:t.borderSoft,surface:t.raised,inset:t.inset,border:t.border,brand:n.brand,series:Wy[e],states:{working:n.success,waiting:n.warning,stuck:n.danger,idle:n.info,finished:t.controlBorder}}}function F1(e,t){return e.series[t]??e.muted}function I1(e){return e.replace(/[&<>"']/g,e=>({"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`})[e])}var L1=e=>({color:e.muted,fontFamily:Ky.mono,fontSize:Gy.micro});function R1(e,t={}){return{confine:!0,backgroundColor:e.inset,borderColor:e.border,borderWidth:1,borderRadius:6,padding:[6,10],textStyle:{color:e.text,fontSize:Gy.small,fontFamily:Ky.sans},extraCssText:`box-shadow: none;`,...t}}function z1(e,t,n){return`
${I1(t)}${I1(n)}
`}function B1(e,t){if(t.viz===`bar`){let t=e.columns[1]?.unit,n=e.rows.map(e=>({name:String(e[0]??`–`)||`–`,n:Number(e[1]??0)}));if(!n.length)return``;let r=n.reduce((e,t)=>t.n>e.n?t:e),i=n.reduce((e,t)=>e+t.n,0);return`${r.name} most, ${j1(r.n,t)} of ${j1(i,t)}`}if(t.viz!==`timeseries`)return``;let n=e.columns[2]?.unit,r=new Map,i=-1/0;for(let t of e.rows)typeof t[2]==`number`&&(r.set(String(t[1]??``),t[2]),i=Math.max(i,t[2]));if(!r.size)return``;if(r.size===1)return`${j1([...r.values()][0],n)} now, peak ${j1(i,n)}`;let[a,o]=[...r.entries()].reduce((e,t)=>t[1]>e[1]?t:e);return`${a} highest now at ${j1(o,n)}`}function ehe(e,t){let n=new Map;for(let t of e.rows){let e=Date.parse(String(t[0])),r=typeof t[2]==`number`?t[2]:null;if(Number.isNaN(e)||r===null)continue;let i=String(t[1]??``);n.has(i)||n.set(i,[]),n.get(i).push([e,r])}return[...n.entries()].map(([e,n])=>({name:e||P1(t.measure??`value`),points:n}))}function the(e,t,n,r,i=`hour`){let a=r??n.brand,o=e.map((e,t)=>[t,e]);return{animation:!1,aria:{enabled:!0,label:{description:`${t} over the last ${i}`}},grid:{left:1,right:3,top:3,bottom:3},xAxis:{type:`value`,show:!1,min:0,max:Math.max(1,e.length-1)},yAxis:{type:`value`,show:!1,scale:!0},series:[{type:`line`,data:o,showSymbol:!1,connectNulls:!1,smooth:.3,silent:!0,lineStyle:{width:1.5,color:a},areaStyle:{color:{type:`linear`,x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:Dn(a,.32)},{offset:1,color:Dn(a,0)}]}},markPoint:{symbol:`circle`,symbolSize:4,silent:!0,label:{show:!1},itemStyle:{color:a},data:nhe(o)}}]}}function nhe(e){for(let t=e.length-1;t>=0;t--)if(e[t][1]!==null)return[{coord:e[t]}];return[]}function rhe(e,t){return{animation:!1,textStyle:{color:t.text,fontFamily:Ky.sans,fontSize:Gy.small},aria:{enabled:!0,label:{description:e.description}},tooltip:R1(t,{trigger:`item`,formatter:e=>e.data?.tip??``}),series:[{type:`sankey`,left:e.left??100,right:e.right??350,top:8,bottom:8,nodeWidth:12,nodeGap:12,nodeAlign:`justify`,layoutIterations:0,draggable:!1,lineStyle:{color:`gradient`,opacity:.22,curveness:.5},emphasis:{focus:`adjacency`,lineStyle:{opacity:.5}},label:{fontFamily:Ky.mono,fontSize:Gy.small,color:t.text,width:e.labelWidth??340,overflow:`truncate`,formatter:e=>e.data?.text??``,rich:e.rich},data:e.nodes,links:e.links}]}}function ihe(e,t){if(e!==`bytes`||!(t>0))return{};for(let e=1;e<=1024**5;e*=1024)for(let n of[1,2,4,8,16,32,64,128,256,512]){let r=n*e;if(t/r<=5)return{interval:r,max:Math.ceil(t/r)*r}}return{}}var ahe=[`click`];function V1({option:e,label:t,height:n,small:r,onEvent:i}){let a=Yn(`dark`),o=(0,h.useRef)(null),s=(0,h.useRef)(null),c=(0,h.useRef)(i);return c.current=i,(0,h.useEffect)(()=>{if(!o.current)return;let e=Yde(o.current,void 0,{renderer:r?`svg`:`canvas`});s.current=e;for(let t of ahe)e.on(t,e=>c.current?.(t,e));let t=new ResizeObserver(()=>e.resize());return t.observe(o.current),()=>{t.disconnect(),e.dispose(),s.current=null}},[r]),(0,h.useEffect)(()=>{s.current?.setOption(e($me(a)),{notMerge:!0})},[e,a,r]),(0,H.jsx)(`div`,{ref:o,role:`img`,"aria-label":t,style:{height:n??`100%`,width:`100%`,minHeight:r?0:80}})}var H1={axisLine:{show:!1},axisTick:{show:!1}},U1=e=>new Date(e).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`});function ohe(e,t,n){return typeof e.color==`number`?F1(n,e.color):e.color===`brand`?n.brand:e.color===void 0?t===0?n.brand:F1(n,t):n.states[e.color]}function she(e,t){let{series:n,from:r,to:i,format:a,waits:o=[],events:s=[],peak:c=!0}=e,l=n.length>1,u=n.reduce((e,t)=>t.points.reduce((e,t)=>Math.max(e,t[1]),e),0),d=n[0],f=e=>{if(!d?.points.length)return 0;let t=d.points[0];for(let n of d.points)Math.abs(n[0]-e)e.length?[`
${I1(U1(e[0].value[0]))}
`,...e.map(e=>z1(e.color,e.seriesName,a(e.value[1])))].join(``):``}),xAxis:{type:`time`,min:r,max:i,...H1,axisLabel:{...L1(t),hideOverlap:!0,formatter:e=>U1(e)},splitLine:{show:!1}},yAxis:{type:`value`,...ihe(e.unit,u),...H1,axisLabel:{...L1(t),formatter:e=>a(e)},splitLine:{lineStyle:{color:t.grid}}},series:n.map((e,n)=>{let r=ohe(e,n,t);return{type:`line`,name:e.name,data:e.points,showSymbol:!1,smooth:!1,sampling:`lttb`,lineStyle:{width:1.5,color:r},itemStyle:{color:r},areaStyle:n===0?{color:{type:`linear`,x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:Dn(r,.28)},{offset:1,color:Dn(r,0)}]}}:void 0,emphasis:{disabled:!0},markLine:n===0&&c&&e.points.length?{silent:!0,symbol:`none`,lineStyle:{color:t.muted,type:`dashed`,width:1},label:{formatter:`peak ${a(u)}`,position:`insideStartTop`,fontFamily:Ky.mono,fontSize:Gy.micro,color:t.muted},data:[{type:`max`,name:`peak`}]}:void 0,markArea:n===0&&o.length?{silent:!0,itemStyle:{color:Dn(t.states.waiting,.1)},label:{show:!0,position:`insideBottom`,fontFamily:Ky.mono,fontSize:Gy.micro,color:t.muted},data:o.map(e=>[{name:e.label,xAxis:e.from},{xAxis:e.to}])}:void 0,markPoint:n===0&&s.length?{symbol:`circle`,symbolSize:8,itemStyle:{color:t.brand,borderColor:t.surface,borderWidth:2},label:{show:!0,position:`top`,formatter:`{b}`,fontFamily:Ky.mono,fontSize:Gy.micro,color:t.text,backgroundColor:t.inset,borderColor:t.border,borderWidth:1,padding:[2,5],borderRadius:3},data:s.map(e=>({name:e.label,coord:[e.at,f(e.at)]}))}:void 0}})}}function che(e,t){let{rows:n,cols:r,values:i,format:a,unit:o}=e,s=i.flatMap((e,t)=>e.map((e,n)=>[n,t,e])),c=s.reduce((e,t)=>Math.max(e,t[2]),1);return{animation:!1,aria:{enabled:!0,label:{description:e.label}},tooltip:R1(t,{trigger:`item`,formatter:e=>`${I1(n[e.value[1]])} · ${I1(r[e.value[0]])}
${I1(a(e.value[2]))} ${I1(o)}`}),grid:{left:4,right:4,top:4,bottom:4},xAxis:{type:`category`,data:r,...H1,axisLabel:{...L1(t),interval:2},splitLine:{show:!1}},yAxis:{type:`category`,data:n,inverse:!0,...H1,axisLabel:{...L1(t),fontSize:Gy.small,color:t.text},splitLine:{show:!1}},visualMap:{show:!1,min:0,max:c,inRange:{color:[Dn(t.brand,.08),Dn(t.brand,.45),t.brand]}},series:[{type:`heatmap`,data:s,itemStyle:{borderColor:t.surface,borderWidth:2,borderRadius:2},emphasis:{itemStyle:{borderColor:t.text}}}]}}function lhe(e,t){let{lanes:n,from:r,to:i,now:a}=e,o=n.flatMap((e,n)=>e.segments.map(r=>({value:[n,r.from,r.to,r.state],name:e.name,itemStyle:{color:t.states[r.state]}}))),s=(e,n)=>{let r=n.value(0),i=n.coord([n.value(1),r]),a=n.coord([n.value(2),r]),o=n.size([0,1])[1]*.5,s=e.coordSys,c=EM({x:i[0],y:i[1]-o/2,width:Math.max(2,a[0]-i[0]),height:o},s);return c?{type:`rect`,shape:{...c,r:2},style:{fill:t.states[n.value(3)]},transition:[]}:null},c=e=>i-e<(i-r)*.06;return{animation:!1,aria:{enabled:!0,label:{description:e.label}},tooltip:R1(t,{trigger:`item`,formatter:e=>z1(e.color,e.name,`${e.value[3]} · ${O1(e.value[2]-e.value[1])}`)}),grid:{left:4,right:36,top:6,bottom:4},xAxis:{type:`time`,min:r,max:i,...H1,axisLabel:{...L1(t),hideOverlap:!0,showMaxLabel:!1,formatter:e=>c(e)?``:U1(e)},splitLine:{lineStyle:{color:t.grid}}},yAxis:{type:`category`,data:n.map(e=>e.name),inverse:!0,...H1,axisLabel:{...L1(t),fontSize:Gy.small,color:t.text,width:150,overflow:`truncate`},splitLine:{show:!1}},series:[{type:`custom`,renderItem:s,encode:{x:[1,2],y:0},data:o,markLine:{silent:!0,symbol:`none`,lineStyle:{color:t.text,width:1},label:{formatter:`now`,position:`end`,fontFamily:Ky.mono,fontSize:Gy.micro,color:t.muted},data:[{xAxis:a}]}}]}}var uhe=[8,30,55,80,100];function dhe({rows:e,cols:t,values:n,format:r,unit:i,label:a,rowHeight:o=22}){let s=(0,h.useCallback)(o=>che({rows:e,cols:t,values:n,format:r,unit:i,label:a},o),[e,t,n,r,i,a]);return(0,H.jsxs)(o_,{gap:4,children:[(0,H.jsx)(V1,{option:s,label:a,height:e.length*o+32}),(0,H.jsxs)(K,{justify:`flex-end`,gap:6,"aria-hidden":!0,children:[(0,H.jsx)(q,{size:`xs`,c:`dimmed`,lh:1,children:`fewer`}),uhe.map(e=>(0,H.jsx)(G,{w:12,h:10,style:{borderRadius:2,background:`color-mix(in srgb, var(--mantine-color-brand-filled) ${e}%, var(--driga-raised))`}},e)),(0,H.jsxs)(q,{size:`xs`,c:`dimmed`,lh:1,children:[`more `,i]})]})]})}var fhe={icon:bv,direction:`neutral`},phe={"summary:sum:need_you":{icon:ry,attention:`waiting`,target:`inbox`,direction:`down-good`},"summary:sum:to_review":{icon:Uv,attention:`review`,target:`inbox`,direction:`neutral`},"summary:sum:attention_stuck":{icon:sy,attention:`stuck`,target:`stuck`,direction:`down-good`},"summary:sum:leftover_bytes":{icon:Zte,target:`leftover`,direction:`down-good`,countNouns:{leftover:[`tree`,`trees`]}},"cleanup:sum:size_bytes":{icon:pv,target:`reclaim`,direction:`down-good`},"local_activity:max:mem_used_bytes":{icon:_y,target:`memory`,direction:`down-good`,sublabel:`local-machine`},"local_activity:max:cpu_percent":{icon:Nv,direction:`down-good`,sublabel:`local-machine`},"local_activity:max:disk_used_bytes":{icon:ay,direction:`down-good`,sublabel:`local-machine`},"local_activity:max:load1":{icon:Yv,direction:`down-good`,sublabel:`local-machine`},"local_activity:max:swap_used_bytes":{icon:_y,direction:`down-good`,sublabel:`local-machine`},"local_activity:max:events":{icon:bv,direction:`neutral`,sublabel:`local-machine`},"summary:sum:machines_reachable":{icon:Dy,direction:`up-good`}};function W1(e){return phe[`${e.source}:${e.measure??`count`}`]??fhe}function mhe(e,t){let n=e.caption?.split(`:`).at(-1),r=n?W1(e).countNouns?.[n]:void 0;return`${j1(t)}${r?` ${r[t===1?0:1]}`:``}`}var G1=[`waiting`,`stuck`,`working`,`idle`,`finished`],K1=[`working`,`waiting`,`stuck`,`idle`],q1={working:`working`,waiting:`waiting`,stuck:`stuck`,idle:`idle`,finished:`finished`},J1={claude:`Claude Code`,codex:`Codex`,gemini:`Gemini`,copilot:`Copilot`,agy:`agy`};function Y1(e){return e&&Object.hasOwn(J1,e)?e:void 0}function X1(e){let t=Y1(e);return t?J1[t]:e??``}var Z1=[`waiting`,`review`,`stuck`],Q1={waiting:{label:`Need you`,tone:`warning`,icon:ry,key:`1`,hint:`Filter the inbox to what needs you`,target:`inbox`},review:{label:`To review`,tone:`info`,icon:Uv,key:`2`,hint:`Filter the inbox to what finished`,target:`inbox`},stuck:{label:`Stuck`,tone:`danger`,icon:sy,key:`3`,hint:`Show the stuck sessions on Home`,target:`stuck`}},$1=[`stuck`,`waiting`,`working`,`idle`];function e0(e){return $1.find(t=>e.sessions[t]>0)??null}function t0(e,t){return t>0?Math.round(e/t*100):0}function hhe(e,t){let n=$1.filter(t=>e.sessions[t]>0).map(t=>`${e.sessions[t]} ${t}`),r=e.reachable?n.length?n:[`no sessions`]:[`unreachable`];return[...e.local?[`this machine`]:[],...r,`seen ${k1(e.seenAt,t)}`].join(` · `)}function ghe(e,t){return[e.name,hhe(e,t),`${D1(e.memory.used)} of ${D1(e.memory.total)}`].join(` · `)}function _he(e){let t=e.flatMap(e=>e.reachable?e0(e)===`stuck`?[`${e.name} stuck`]:e0(e)===`waiting`?[`${e.name} waiting`]:[]:[`${e.name} unreachable`]);return t.length?t.join(` · `):`all working or idle`}function n0(e){return`Fleet: ${e.length} machine${e.length===1?``:`s`} · ${_he(e)}`}function vhe(e){return e.trend.length<2||e.trend[0]===null||e.trend[e.trend.length-1]===null?`not enough history for an hour’s change`:e.delta===0?`steady over the last hour`:`${e.delta>0?`up`:`down`} ${Math.abs(e.delta)} in the last hour`}function yhe(e){let t=new Map(e.results.map(e=>[e.id,e])),n=e=>typeof e==`number`&&Number.isFinite(e)?e:null;return e.dashboard.panels.filter(e=>e.viz===`stat`||e.viz===`gauge`).map(e=>{let r=t.get(e.id),i=r?.status===`ok`;return{id:e.id,title:r?.title||e.title,viz:e.viz,panel:e,value:i?n(r.frame?.rows[0]?.[0]):null,unit:e.unit??r?.frame?.columns[0]?.unit,total:i?n(r.total):null,caption:i&&e.caption?n(r.caption):null,trend:i?r.trend:void 0,max:e.max,error:r?.status===`error`?r.message??`This panel could not run.`:void 0,behavior:W1(e)}})}var bhe={attention:{waiting:[],review:[],stuck:[]},polls:{}};function r0(e,t){return e.machines.map(n=>{let r=Object.fromEntries(K1.map(t=>[t,e.sessions.filter(e=>e.machine===n.id&&e.state===t).length]));return{id:n.id,name:n.name,local:n.local,reachable:n.reachable,sessions:r,memory:{used:n.memoryUsed,total:n.memoryTotal},polls:t[n.id]??[],seenAt:n.lastSeen}})}function xhe(e,t,n){let r=t?r0(t,n.polls):[];return{tiles:yhe(e).map(e=>e.behavior.attention?{...e,trend:n.attention[e.behavior.attention]}:e),localMachine:r.find(t=>t.local||t.id===e.local_machine)?.name??e.local_machine??`this machine`,machines:r,checkedAt:e.observed_at}}function She(e,t){return Object.fromEntries(t.filter(t=>(e.polls[t.id]?.length??0)>1).map(t=>{let n=e.polls[t.id],r=n.map((e,t)=>({state:e===`quiet`?null:e,label:`poll ${t+1} of ${n.length} · ${e===`offline`?`unreachable`:e===`quiet`?`no sessions`:e}`}));return[t.id,{cells:r,from:`${n.length} polls`,to:`now`,label:`${t.name}, last ${n.length} polls`}]}))}function i0(e){if(!e)return bhe;let t=e.history.attention??[],n={};for(let t of e.history.polls??[])(n[t.machine_id]??=[]).push(t.state);return{attention:Object.fromEntries(Z1.map(e=>[e,t.map(t=>t[e])])),polls:n}}function Che(){return(0,H.jsxs)(o_,{align:`center`,justify:`center`,gap:6,style:{flex:1},py:`xl`,children:[(0,H.jsx)(E_,{variant:`light`,color:`gray`,radius:`xl`,size:36,children:(0,H.jsx)(Fv,{size:18,"aria-hidden":!0})}),(0,H.jsx)(q,{fw:600,fz:`md`,children:`No machines yet`}),(0,H.jsx)(q,{fz:`sm`,c:`dimmed`,ta:`center`,maw:420,style:{textWrap:`pretty`},children:`Start an agent in a terminal on this machine, or pair another one; the fleet appears here within a few seconds.`})]})}var a0={working:`success`,waiting:`warning`,stuck:`danger`,idle:`info`,finished:`neutral`};function o0(e){return e===`neutral`?`var(--driga-control-border)`:`var(--mantine-color-${e}-filled)`}function s0(e){return o0(a0[e])}function c0(e){let t=e.startsWith(`~`),n=e.replace(/^~/,``);return{state:Object.hasOwn(q1,n)?n:void 0,label:n,inferred:t}}function l0({state:e,variant:t=`dot`,label:n,inferred:r,evidence:i,pulse:a,tone:o}){let s=o??(e?a0[e]:`neutral`),c=(n??(e?q1[e]:``)).replace(/^~/,``),l=i?.trim(),u=r?`${c}, inferred`:c,d=o0(s),f=e===`finished`?(0,H.jsx)(Dv,{size:12,weight:`regular`,"aria-hidden":!0,style:{color:`var(--driga-muted)`,flex:`none`}}):(0,H.jsx)(G,{"aria-hidden":!0,className:a&&e===`waiting`?`w-pulse`:void 0,style:{width:6,height:6,borderRadius:`50%`,flex:`none`,background:e===`idle`?`transparent`:d,boxShadow:e===`idle`?`inset 0 0 0 1.5px ${d}`:void 0}}),p=t===`pill`?(0,H.jsx)(bm,{variant:`light`,color:s===`neutral`?`gray`:s,size:`md`,radius:`sm`,fw:500,lts:`0.04em`,leftSection:f,"aria-label":u,"aria-description":l,title:l?void 0:u,tabIndex:l?0:void 0,styles:{root:{textTransform:`none`,background:`var(--driga-tint-${s})`,color:`var(--driga-text)`,boxShadow:`inset 0 0 0 1px ${d}`,border:r?`1px dashed var(--driga-muted)`:void 0,paddingInline:6},label:{fontSize:`var(--mantine-font-size-xs)`}},children:c}):(0,H.jsxs)(K,{role:`img`,gap:6,wrap:`nowrap`,"aria-label":u,"aria-description":l,title:l?void 0:u,tabIndex:l?0:void 0,style:{display:`inline-flex`},children:[f,(0,H.jsx)(q,{size:`xs`,fw:500,lh:1.2,style:{whiteSpace:`nowrap`,borderBottom:r&&l?`1px dashed var(--driga-faint)`:void 0},children:r&&c!==`unknown`?`~${c}`:c})]});return l?(0,H.jsx)(Bg,{label:l,multiline:!0,w:280,events:{hover:!0,focus:!0,touch:!0},children:p}):p}var u0={waiting:{label:`waiting`,tone:a0.waiting,rank:0},stuck:{label:`stuck`,tone:a0.stuck,rank:1},working:{label:`working`,tone:a0.working,rank:2},idle:{label:`idle`,tone:a0.idle,rank:3},finished:{label:`finished`,tone:a0.finished,rank:4}};function d0(e){return[...e].sort((e,t)=>Number(!!t.local)-Number(!!e.local)||e.name.localeCompare(t.name))}function f0(e,t){return u0[e.state].rank-u0[t.state].rank||e.title.localeCompare(t.title)}function whe(){return{waiting:0,stuck:0,working:0,idle:0,finished:0}}function The(e){let t=whe();for(let n of e)t[n.state]++;return t}function p0(e){return e.filter(e=>e.state===`waiting`||e.state===`stuck`).length}function Ehe({machines:e,projects:t,sessions:n}){let r=new Map(t.map(e=>[e.id,e]));return d0(e).map(e=>{let t=n.filter(t=>t.machine===e.id),i=new Map;for(let e of t)i.set(e.project,[...i.get(e.project)??[],e]);return{machine:e,projects:[...i.entries()].map(([e,t])=>({project:r.get(e)??{id:e,name:e,repo:``},sessions:t.sort(f0),memory:t.reduce((e,t)=>e+t.memory,0),waiting:t.some(e=>e.state===`waiting`)})).sort((e,t)=>e.project.name.localeCompare(t.project.name)),memory:t.reduce((e,t)=>e+t.memory,0),counts:The(t)}})}function Dhe(e){let t=new Map(e.map(e=>[e,new Map])),n=new Map;for(let r of e)for(let e of new Set(r.files??[])){let i=JSON.stringify([r.machine,r.project,e]),a=n.get(i)??[];for(let n of a)for(let[i,a]of[[r,n],[n,r]]){let n=t.get(i),r=n.get(a)??[];r.push(e),n.set(a,r)}a.push(r),n.set(i,a)}return new Map([...t].map(([e,t])=>[e,[...t].map(([e,t])=>({with:e,files:t}))]))}function m0(e){return JSON.stringify([e.machine,e.id])}function Ohe(e){try{let t=JSON.parse(e);if(Array.isArray(t)&&t.length===2&&t.every(e=>typeof e==`string`))return{kind:`session`,machine:t[0],id:t[1]}}catch{}return null}var h0=class{data;groups;machines;projects;sessions=new Map;childrenByParent=new Map;projectMembers=new Map;shared;constructor(e){this.data=e;for(let t of e.sessions){this.sessions.set(m0(t),t);let e=this.projectMembers.get(t.project)??[];if(e.push(t),this.projectMembers.set(t.project,e),t.parent){let e=m0({machine:t.machine,id:t.parent}),n=this.childrenByParent.get(e)??[];n.push(t),this.childrenByParent.set(e,n)}}for(let e of this.childrenByParent.values())e.sort(f0);this.groups=Ehe(e),this.machines=d0(e.machines),this.projects=[...this.projectMembers.keys()].map(e=>this.project(e)??{id:e,name:e,repo:``}).sort((e,t)=>e.name.localeCompare(t.name)),this.shared=Dhe(e.sessions)}session(e,t){if(t!==void 0)return this.sessions.get(m0({machine:t,id:e}));let n=this.data.sessions.filter(t=>t.id===e);return n.length===1?n[0]:void 0}machine(e){return this.data.machines.find(t=>t.id===e)}project(e){return this.data.projects.find(t=>t.id===e)}projectSessions(e){return this.projectMembers.get(e)??[]}projectMachines(e){let t=new Set(this.projectSessions(e).map(e=>e.machine));return this.machines.filter(e=>t.has(e.id))}parent(e){return e.parent?this.session(e.parent,e.machine):void 0}children(e){return this.childrenByParent.get(m0(e))??[]}roots(e,t){return this.projectSessions(t).filter(t=>t.machine===e&&!this.parent(t)).sort(f0)}overlaps(e){return this.shared.get(this.session(e.id,e.machine))??[]}branch(e){let t=[],n=(e,r,i)=>{let a=m0(e);if(i.has(a))return;t.push({session:e,depth:r});let o=new Set(i).add(a);for(let t of this.children(e))n(t,r+1,o)};return n(e,0,new Set),t}};function khe(e){let t=(e.turns??[]).slice(-30);return{ok:t.filter(e=>e===`ok`).length,waited:t.filter(e=>e===`waited`).length,failed:t.filter(e=>e===`failed`).length,total:t.length}}function Ahe(e){let t=(e.turns??[]).slice(-30),n=30-t.length,r={ok:`working`,waited:`waiting`,failed:`stuck`};return Array.from({length:30},(e,i)=>ie.project)).size;return(0,H.jsxs)(K,{justify:`space-between`,wrap:`nowrap`,gap:`sm`,style:{flex:`none`},children:[(0,H.jsxs)(K,{gap:`sm`,wrap:`nowrap`,align:`baseline`,style:{minWidth:0},children:[(0,H.jsx)(k_,{order:1,fz:28,fw:650,lh:1.2,style:{letterSpacing:`-0.02em`},children:`Fleet`}),(0,H.jsxs)(q,{ff:`monospace`,fz:`xs`,c:`dimmed`,style:{whiteSpace:`nowrap`},children:[N1(e.length,`machine`),` · `,N1(i,`project`),` · `,N1(t.length,`session`)]}),r>0&&(0,H.jsxs)(q,{ff:`monospace`,fz:`xs`,fw:600,c:`warning`,style:{whiteSpace:`nowrap`},children:[`· `,r,` need you`]})]}),(0,H.jsx)(K,{gap:`xs`,wrap:`nowrap`,children:n})]})}function _0(e,[t,n]=[.7,.9]){return e>=n?`danger`:e>=t?`warning`:`brand`}function v0({value:e,max:t,format:n,label:r,thresholds:i=[.7,.9],size:a=4,caption:o=!0}){let s=t>0?Math.min(1,Math.max(0,e/t)):0,c=Math.round(s*100),l=_0(s,i),u=`${r}: ${n(e)} of ${n(t)}, ${c}%`;return(0,H.jsxs)(o_,{gap:4,children:[o&&(0,H.jsxs)(K,{justify:o===`percent`?`flex-end`:`space-between`,gap:`xs`,wrap:`nowrap`,"aria-hidden":!0,children:[o!==`percent`&&(0,H.jsxs)(q,{size:`xs`,ff:`monospace`,lh:1.2,style:{whiteSpace:`nowrap`},children:[n(e),` `,(0,H.jsxs)(q,{span:!0,c:`dimmed`,ff:`monospace`,fz:`inherit`,children:[`/ `,n(t)]})]}),(0,H.jsxs)(q,{size:`xs`,ff:`monospace`,c:l===`brand`?`dimmed`:l,lh:1.2,children:[c,`%`]})]}),(0,H.jsxs)(G,{pos:`relative`,py:2,children:[(0,H.jsx)(Ng.Root,{size:a,styles:{root:{background:`var(--driga-border)`}},children:(0,H.jsx)(Ng.Section,{value:s*100,color:l,"aria-label":u})}),i.map(e=>(0,H.jsx)(G,{"aria-hidden":!0,pos:`absolute`,top:0,h:a+4,w:1,left:`${e*100}%`,style:{background:`var(--driga-control-border)`}},e))]})]})}var y0={light:Ry.latte,dark:Ry.mocha},Phe={light:{claude:y0.light.peach,codex:y0.light.teal,gemini:y0.light.sapphire,copilot:y0.light.sky,agy:y0.light.pink},dark:{claude:y0.dark.peach,codex:y0.dark.teal,gemini:y0.dark.sapphire,copilot:y0.dark.sky,agy:y0.dark.pink}};function Fhe(e,t){let n=Y1(t);if(!n)return{tint:`var(--driga-tint-neutral)`,ring:`var(--driga-border)`,ink:`var(--driga-muted)`};let r=Phe[e][n];return{tint:Dn(r,.16),ring:Dn(r,.4),ink:e===`dark`?r:wn(r,.3)}}var Ihe={claude:Cy,codex:kv,gemini:Lv,copilot:$v,agy:Gte};function b0({agent:e,name:t,waiting:n,size:r=20}){let i=Fhe(Yn(`dark`),e),a=Y1(e),o=a?Ihe[a]:qte,s=`${X1(e)||`agent`}${n?`, waiting on you`:``}`,c=(0,H.jsx)(G,{"aria-hidden":!0,style:{width:r,height:r,borderRadius:`50%`,background:i.tint,boxShadow:`inset 0 0 0 1px ${i.ring}`,color:i.ink,display:`grid`,placeItems:`center`,flex:`none`},children:(0,H.jsx)(o,{size:Math.round(r*.6),weight:`regular`})}),l=n?(0,H.jsx)(ch,{color:`warning`,size:7,offset:1,withBorder:!0,children:c}):c;return t?(0,H.jsxs)(K,{gap:6,wrap:`nowrap`,title:s,style:{display:`inline-flex`},children:[l,(0,H.jsx)(q,{size:`xs`,lh:1.2,style:{whiteSpace:`nowrap`},children:X1(e)||`agent`}),n&&(0,H.jsx)(`span`,{className:`sr-only`,children:`, waiting on you`})]}):(0,H.jsx)(G,{role:`img`,"aria-label":s,title:s,style:{display:`inline-flex`,flex:`none`},children:l})}function Lhe({segments:e,total:t,marker:n,format:r,label:i,size:a=8}){let o=Yn(`dark`),s=t??e.reduce((e,t)=>e+t.value,0),c=e=>s>0?Math.round(Math.min(100,e/s*100)*100)/100:0,l=(e,t)=>e.color===`brand`?`var(--mantine-color-brand-filled)`:typeof e.color==`string`?s0(e.color):Wy[o][e.color??t]??`var(--driga-faint)`,u=n?c(n.value):0;return(0,H.jsxs)(o_,{gap:6,children:[(0,H.jsxs)(G,{pos:`relative`,pt:n?18:0,children:[(0,H.jsx)(Ng.Root,{size:a,styles:{root:{background:`var(--driga-border)`}},children:e.map((e,t)=>(0,H.jsx)(Ng.Section,{value:c(e.value),color:l(e,t),"aria-label":`${e.label}: ${r(e.value)}`,style:{boxShadow:`inset -1px 0 0 var(--driga-raised)`}},e.label))}),n&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(G,{"aria-hidden":!0,pos:`absolute`,bottom:-3,h:a+6,w:2,left:`${u}%`,style:{background:`var(--driga-text)`,transform:`translateX(-1px)`,borderRadius:1}}),(0,H.jsx)(q,{"aria-hidden":!0,pos:`absolute`,top:0,size:`xs`,ff:`monospace`,c:`dimmed`,lh:1,style:u>75?{right:0,whiteSpace:`nowrap`}:{left:`${u}%`,transform:`translateX(-50%)`,whiteSpace:`nowrap`},children:n.label})]})]}),(0,H.jsxs)(K,{gap:`md`,role:`list`,"aria-label":i,children:[e.map((e,t)=>(0,H.jsxs)(K,{role:`listitem`,gap:6,wrap:`nowrap`,children:[(0,H.jsx)(Vm,{size:8,color:l(e,t),withShadow:!1,"aria-hidden":!0}),(0,H.jsx)(q,{size:`xs`,lh:1.2,children:e.label}),(0,H.jsx)(q,{size:`xs`,ff:`monospace`,c:`dimmed`,lh:1.2,children:r(e.value)})]},e.label)),n&&(0,H.jsxs)(q,{role:`listitem`,size:`xs`,c:`dimmed`,lh:1.2,children:[n.label,` at `,r(n.value)]})]})]})}function x0({n:e,unit:t,size:n=28,total:r,lineHeight:i=1.1}){if(typeof e!=`number`)return(0,H.jsx)(q,{ff:`monospace`,fz:n,fw:600,lh:i,c:`dimmed`,children:`—`});let[a,o]=S0(j1(e,t));if(typeof r==`number`){let[a,o]=S0(j1(r,t)),[s]=S0(t===`bytes`?Rhe(e,r):j1(e,t));return(0,H.jsxs)(q,{ff:`monospace`,fz:n,fw:600,lh:i,style:{fontVariantNumeric:`tabular-nums`},children:[s,(0,H.jsxs)(q,{span:!0,ff:`monospace`,fz:`0.6em`,fw:500,c:`dimmed`,mx:3,children:[`/ `,a]}),o&&(0,H.jsx)(q,{span:!0,ff:`monospace`,fz:`0.6em`,fw:500,c:`dimmed`,children:o})]})}return(0,H.jsxs)(q,{ff:`monospace`,fz:n,fw:600,lh:i,style:{fontVariantNumeric:`tabular-nums`},children:[a,o&&(0,H.jsx)(q,{span:!0,ff:`monospace`,fz:`0.6em`,fw:500,c:`dimmed`,ml:3,children:o})]})}function Rhe(e,t){let n=e/1024**Math.max(0,Math.min(4,Math.floor(Math.log(Math.max(t,1))/Math.log(1024))));return n>=10?String(Math.round(n)):n.toFixed(1)}function S0(e){let t=/^([$]?[\d.,]+)\s*(.*)$/.exec(e);return t?[t[1],t[2]]:[e,``]}function C0({trend:e,title:t,color:n,window:r=`hour`}){let i=(0,h.useCallback)(i=>the(e,t,i,n,r),[e,t,n,r]);return(0,H.jsx)(V1,{option:i,label:`${t} over the last ${r}`,small:!0})}function zhe(e){let t=new Map;for(let n of e){let e=n.state===`offline`?`unseen`:n.state?q1[n.state]:`quiet`;t.set(e,(t.get(e)??0)+1)}return[...t.entries()].map(([e,t])=>`${t} ${e}`).join(`, `)}function w0({cells:e,label:t,summary:n,from:r,to:i,height:a=12}){let[o,s]=(0,h.useState)(null),c=(0,h.useRef)(null),l=t=>{if(!c.current||!e.length)return;let n=c.current.getBoundingClientRect();n.width<=0?s(null):s(Math.min(e.length-1,Math.max(0,Math.floor((t.clientX-n.left)/n.width*e.length))))},u=n??zhe(e);return(0,H.jsxs)(o_,{gap:2,children:[(0,H.jsx)(Bg.Floating,{label:o===null?u:e[o]?.label??u,offset:10,children:(0,H.jsx)(G,{ref:c,role:`img`,"aria-label":`${t}: ${u}`,onMouseMove:l,onMouseLeave:()=>s(null),style:{display:`flex`,gap:1,height:a,cursor:`default`},children:e.map((e,t)=>(0,H.jsx)(`div`,{className:`w-cell`,"data-state":e.state??void 0,style:o===t?{outline:`1px solid var(--driga-text)`,outlineOffset:0}:void 0},t))})}),(r||i)&&(0,H.jsxs)(K,{justify:`space-between`,gap:`xs`,"aria-hidden":!0,children:[(0,H.jsx)(q,{size:`xs`,ff:`monospace`,c:`dimmed`,lh:1,children:r}),(0,H.jsx)(q,{size:`xs`,ff:`monospace`,c:`dimmed`,lh:1,children:i})]})]})}var Bhe={desktop:Fv,laptop:dy,server:ay};function Vhe({data:e,selection:t,onSelect:n,onOpen:r,onReply:i,width:a=320}){let o=new h0(e),s=t&&(t.kind===`session`?o.session(t.id,t.machine):t.kind===`machine`?o.machine(t.id):o.project(t.id));return(0,H.jsx)(Im,{role:`group`,"aria-label":`Inspector`,w:{base:`100%`,lg:a},padding:`sm`,style:{flex:`none`,display:`flex`,flexDirection:`column`,minHeight:0},children:(0,H.jsx)(Yc,{type:`auto`,scrollbarSize:4,style:{flex:1,minHeight:0},children:!t||!s?(0,H.jsx)(Hhe,{}):t.kind===`session`?(0,H.jsx)(Uhe,{session:s,relationships:o,onSelect:n,onOpen:r,onReply:i}):t.kind===`machine`?(0,H.jsx)(Whe,{group:o.groups.find(e=>e.machine.id===t.id),onSelect:n}):(0,H.jsx)(Ghe,{project:s,relationships:o,onSelect:n})})})}function Hhe(){return(0,H.jsxs)(o_,{align:`center`,justify:`center`,gap:4,py:`xl`,px:`sm`,children:[(0,H.jsx)(q,{fw:600,fz:`sm`,children:`Nothing selected`}),(0,H.jsx)(q,{fz:`xs`,c:`dimmed`,ta:`center`,style:{textWrap:`pretty`},children:`Select a session or a machine to see its details and actions here.`})]})}function T0({children:e}){return(0,H.jsx)(q,{fz:`xs`,fw:600,c:`dimmed`,children:e})}function E0({session:e,onSelect:t,extra:n}){return(0,H.jsx)($c,{className:`fleet-row-title`,onClick:()=>t({kind:`session`,id:e.id,machine:e.machine}),px:4,py:2,children:(0,H.jsxs)(K,{gap:6,wrap:`nowrap`,children:[(0,H.jsx)(Vm,{size:6,color:o0(u0[e.state].tone),withShadow:!1,"aria-hidden":!0,style:{flex:`none`}}),(0,H.jsx)(q,{fz:`xs`,truncate:!0,title:e.title,children:e.title}),(0,H.jsx)(q,{fz:`xs`,c:`dimmed`,ff:`monospace`,style:{flex:`none`},children:n??e.label??u0[e.state].label})]})})}function Uhe({session:e,relationships:t,onSelect:n,onOpen:r,onReply:i}){let a=t.project(e.project),o=t.machine(e.machine),s=t.children(e),c=t.parent(e),l=t.overlaps(e),u=e=>l.filter(t=>t.files.includes(e)).map(e=>e.with),d=Math.max(0,Date.now()-Date.parse(e.lastActivity));return(0,H.jsxs)(o_,{gap:`sm`,children:[(0,H.jsxs)(K,{gap:`xs`,wrap:`nowrap`,justify:`space-between`,children:[(0,H.jsx)(l0,{variant:`pill`,state:e.state,label:e.label,inferred:e.inferred,evidence:e.evidence}),(0,H.jsxs)(q,{ff:`monospace`,fz:`xs`,c:`dimmed`,children:[`#`,e.id]})]}),(0,H.jsx)(k_,{order:2,fz:`md`,lh:1.3,style:{textWrap:`balance`,letterSpacing:`-0.01em`},children:e.title}),(0,H.jsxs)(K,{gap:8,wrap:`wrap`,children:[(0,H.jsx)(b0,{agent:e.agent,name:!0,size:16}),(0,H.jsx)(q,{ff:`monospace`,fz:`xs`,c:`dimmed`,children:a?.name??e.project}),e.branch&&(0,H.jsxs)(K,{gap:3,wrap:`nowrap`,children:[(0,H.jsx)(Zv,{size:12,"aria-hidden":!0}),(0,H.jsx)(q,{ff:`monospace`,fz:`xs`,c:`dimmed`,children:e.branch})]}),(0,H.jsx)(q,{ff:`monospace`,fz:`xs`,c:`dimmed`,children:o?.name??e.machine})]}),e.waiting&&(0,H.jsxs)(K,{className:`w-needs-you`,gap:8,wrap:`nowrap`,align:`flex-start`,px:`xs`,py:6,role:`status`,children:[(0,H.jsx)(ty,{size:16,"aria-hidden":!0,style:{color:`var(--mantine-color-warning-filled)`,flex:`none`,marginTop:1}}),(0,H.jsxs)(o_,{gap:2,children:[(0,H.jsx)(q,{fz:`xs`,fw:600,children:`Needs you`}),(0,H.jsx)(q,{fz:`xs`,style:{overflowWrap:`anywhere`},children:e.waiting})]})]}),e.evidence&&(0,H.jsx)(q,{fz:`xs`,c:`dimmed`,children:e.evidence}),o&&!o.reachable&&(0,H.jsxs)(q,{fz:`xs`,c:`dimmed`,children:[`Last known: `,o.name,` was last seen `,k1(o.lastSeen),`.`]}),e.lastTool&&(0,H.jsxs)(q,{ff:`monospace`,fz:`xs`,className:`w-inset`,truncate:!0,title:`${e.lastTool} · ${k1(e.lastActivity)}`,style:{display:`block`},children:[e.lastTool,` · `,k1(e.lastActivity)]}),(0,H.jsxs)(K,{gap:6,children:[!!e.turns?.length&&(0,H.jsx)(bm,{variant:`default`,size:`xs`,ff:`monospace`,children:N1(e.turns.length,`turn`)}),!!e.files?.length&&(0,H.jsx)(bm,{variant:`default`,size:`xs`,ff:`monospace`,children:N1(e.files.length,`file`)}),(0,H.jsx)(bm,{variant:`default`,size:`xs`,ff:`monospace`,children:D1(e.memory)})]}),e.turns&&e.turns.length>0&&(0,H.jsx)(w0,{cells:Ahe(e),label:`Last 30 turns`,summary:jhe(e),height:8,to:`turn ${Math.min(30,e.turns.length)}`,from:e.turns.length>30?`turn ${e.turns.length-29}`:`turn 1`}),e.files&&e.files.length>0&&(0,H.jsxs)(o_,{gap:2,children:[(0,H.jsx)(T0,{children:`Files`}),e.files.map(e=>{let t=u(e);return(0,H.jsxs)(K,{gap:6,wrap:`nowrap`,justify:`space-between`,children:[(0,H.jsx)(q,{ff:`monospace`,fz:`xs`,truncate:!0,title:e,children:e}),t.length>0&&(0,H.jsxs)(bm,{color:`danger`,variant:`light`,size:`xs`,style:{flex:`none`,background:`var(--driga-tint-danger)`,color:`var(--driga-text)`},title:`Also edited by ${t.map(e=>e.title).join(`, `)}`,children:[`also #`,t.map(e=>e.id).join(`, #`)]})]},e)})]}),s.length>0&&(0,H.jsxs)(o_,{gap:2,children:[(0,H.jsx)(T0,{children:`Subagents`}),s.map(e=>(0,H.jsx)(E0,{session:e,onSelect:n},`${e.machine}/${e.id}`))]}),c&&(0,H.jsxs)(o_,{gap:2,children:[(0,H.jsx)(T0,{children:`Spawned by`}),(0,H.jsx)(E0,{session:c,onSelect:n})]}),(0,H.jsxs)(K,{gap:`xs`,mt:4,children:[e.state===`waiting`&&(0,H.jsx)(km,{onClick:()=>i(e),children:`Reply`}),(0,H.jsx)(km,{variant:`default`,onClick:()=>r(e),children:`Open`})]}),(0,H.jsxs)(q,{fz:`xs`,c:`dimmed`,ff:`monospace`,title:e.started?`Started ${A1(e.started)}`:void 0,children:[e.started?`started ${k1(e.started)} · `:``,`quiet `,O1(d)]})]})}function Whe({group:e,onSelect:t}){let{machine:n,counts:r}=e,i=Bhe[n.kind??`desktop`],a=n.memoryTotal>0?Math.round(n.memoryUsed/n.memoryTotal*100):0,o=G1.reduce((e,t)=>e+r[t],0);return(0,H.jsxs)(o_,{gap:`sm`,children:[(0,H.jsxs)(K,{gap:6,wrap:`nowrap`,children:[(0,H.jsx)(i,{size:16,"aria-hidden":!0}),(0,H.jsx)(k_,{order:2,fz:`md`,ff:`monospace`,lh:1.6,children:n.name}),n.local&&(0,H.jsx)(bm,{variant:`default`,size:`xs`,children:`local`})]}),(0,H.jsxs)(K,{gap:4,wrap:`nowrap`,children:[(0,H.jsx)(Vm,{size:7,color:n.reachable?`var(--mantine-color-success-filled)`:`transparent`,withShadow:!1,"aria-hidden":!0,style:{border:n.reachable?void 0:`1px solid var(--driga-muted)`}}),(0,H.jsx)(q,{fz:`xs`,ff:`monospace`,c:`dimmed`,title:A1(n.lastSeen),children:Nhe(n)})]}),(0,H.jsxs)(o_,{gap:4,children:[(0,H.jsx)(T0,{children:`Memory`}),(0,H.jsxs)(K,{gap:8,wrap:`nowrap`,align:`baseline`,children:[(0,H.jsx)(x0,{n:n.memoryUsed,unit:`bytes`,total:n.memoryTotal,size:22}),(0,H.jsxs)(q,{ff:`monospace`,fz:`xs`,c:`dimmed`,children:[a,`% used`,n.reachable?``:`, last known`]})]}),(0,H.jsx)(Ng,{value:a,size:4,color:`var(--driga-control-border)`,"aria-label":`Memory used ${a}%`}),n.memoryByRole&&n.memoryByRole.length>0&&(0,H.jsx)(Lhe,{label:`Agent memory on ${n.name} by owner`,segments:n.memoryByRole,total:n.memoryTotal,format:D1,size:6})]}),n.cpuPercent!==void 0&&(0,H.jsxs)(o_,{gap:4,children:[(0,H.jsx)(T0,{children:`CPU`}),(0,H.jsx)(v0,{value:n.cpuPercent,max:100,format:e=>`${Math.round(e)}%`,label:`CPU on ${n.name}`})]}),!!n.diskTotal&&n.diskFree!==void 0&&(0,H.jsxs)(o_,{gap:4,children:[(0,H.jsx)(T0,{children:`Disk`}),(0,H.jsx)(v0,{value:Math.max(0,n.diskTotal-n.diskFree),max:n.diskTotal,format:D1,label:`Disk on ${n.name}`})]}),(0,H.jsxs)(o_,{gap:2,children:[(0,H.jsx)(T0,{children:`Sessions`}),o===0&&(0,H.jsx)(q,{fz:`xs`,c:`dimmed`,children:`None`}),G1.filter(e=>r[e]>0).map(e=>(0,H.jsxs)(K,{gap:6,wrap:`nowrap`,children:[(0,H.jsx)(Vm,{size:6,color:o0(u0[e].tone),withShadow:!1,"aria-hidden":!0}),(0,H.jsxs)(q,{fz:`xs`,ff:`monospace`,children:[r[e],` `,u0[e].label]})]},e))]}),e.projects.length>0&&(0,H.jsxs)(o_,{gap:2,children:[(0,H.jsx)(T0,{children:`Projects`}),e.projects.map(e=>(0,H.jsx)($c,{className:`fleet-row-title`,px:4,py:2,onClick:()=>t({kind:`project`,id:e.project.id}),children:(0,H.jsxs)(K,{gap:6,wrap:`nowrap`,justify:`space-between`,children:[(0,H.jsx)(q,{fz:`xs`,ff:`monospace`,children:e.project.name}),(0,H.jsxs)(q,{fz:`xs`,ff:`monospace`,c:`dimmed`,children:[N1(e.sessions.length,`session`),` · `,D1(e.memory)]})]})},e.project.id))]}),(0,H.jsxs)(o_,{gap:2,children:[(0,H.jsx)(T0,{children:`Leftover`}),(0,H.jsx)(q,{fz:`xs`,ff:`monospace`,children:n.leftover?`${N1(n.leftover.processes,`process`)} · ${D1(n.leftover.memory)} reclaimable`:`none`})]})]})}function Ghe({project:e,relationships:t,onSelect:n}){let r=t.projectMachines(e.id),i=t.projectSessions(e.id);return(0,H.jsxs)(o_,{gap:`sm`,children:[(0,H.jsx)(k_,{order:2,fz:`md`,ff:`monospace`,lh:1.6,children:e.name}),e.repo&&(0,H.jsx)(q,{ff:`monospace`,fz:`xs`,c:`dimmed`,truncate:!0,title:e.repo,children:e.repo}),(0,H.jsxs)(o_,{gap:2,children:[(0,H.jsx)(T0,{children:`Machines`}),(0,H.jsx)(q,{fz:`xs`,ff:`monospace`,children:r.length?r.map(e=>e.name).join(` · `):`none`})]}),(0,H.jsxs)(o_,{gap:2,children:[(0,H.jsx)(T0,{children:`Sessions`}),i.map(e=>(0,H.jsx)(E0,{session:e,onSelect:n,extra:`${e.label??u0[e.state].label} · ${t.machine(e.machine)?.name??e.machine}`},`${e.machine}/${e.id}`))]})]})}function D0({value:e,max:t,format:n,label:r,caption:i,thresholds:a,size:o=44,thickness:s=4}){let c=t>0?Math.min(1,Math.max(0,e/t)):0,l=Math.round(c*100),u=_0(c,a),d=i??`${n(e)} / ${n(t)}`,f=o*.9-3*Math.min(s||12,o/4),p=Math.min(11,Math.max(0,f)*.85/((o>36?4:3)*.7));return(0,H.jsxs)(K,{gap:`sm`,wrap:`nowrap`,children:[(0,H.jsx)(Wg,{size:o,thickness:s,rootColor:`var(--driga-border)`,sections:[{value:l,color:u}],role:`img`,"aria-label":`${r}: ${d}, ${l}%`,style:{flex:`none`},label:(0,H.jsxs)(q,{ta:`center`,fz:p,ff:`monospace`,fw:400,lh:1,"aria-hidden":!0,children:[l,o>36&&`%`]})}),(0,H.jsxs)(o_,{gap:2,style:{minWidth:0},"aria-hidden":!0,children:[(0,H.jsx)(q,{size:`sm`,fw:500,lh:1.2,truncate:!0,title:r,children:r}),(0,H.jsx)(q,{size:`xs`,c:`dimmed`,ff:`monospace`,lh:1.2,style:{whiteSpace:`nowrap`},children:d})]})]})}var Khe={desktop:Fv,laptop:dy,server:ay};function qhe({machine:e,selected:t,onSelect:n,onOpen:r,onReclaim:i}){let a=Date.now(),o=Khe[e.kind??`desktop`],s=a-Date.parse(e.lastSeen),c=!e.reachable&&s>6e5,l=()=>r?.(e),u=e=>{e.target.closest(`button, a`)||l()},d=e=>{e.key===`Enter`&&e.target===e.currentTarget&&(e.preventDefault(),l())},f=e.leftover.trees===0?`nothing left over`:`${e.leftover.trees} leftover · ${D1(e.leftover.bytes)} reclaimable`,p=(0,H.jsxs)(o_,{gap:8,children:[(0,H.jsxs)(K,{justify:`space-between`,wrap:`nowrap`,gap:`sm`,children:[(0,H.jsxs)(K,{gap:6,wrap:`nowrap`,style:{minWidth:0},children:[(0,H.jsx)(o,{size:16,"aria-hidden":!0,style:{color:`var(--driga-muted)`,flex:`none`}}),(0,H.jsx)(q,{size:`md`,fw:600,ff:`monospace`,lh:1.2,truncate:!0,title:e.name,style:{minWidth:0},children:e.name}),e.local&&(0,H.jsx)(bm,{size:`xs`,variant:`default`,fw:500,styles:{root:{textTransform:`none`,flex:`none`}},children:`local`}),e.tls&&(0,H.jsx)(bm,{size:`xs`,variant:`default`,fw:500,styles:{root:{textTransform:`none`,flex:`none`}},children:`mTLS`})]}),(0,H.jsxs)(K,{gap:6,wrap:`nowrap`,style:{flex:`none`},title:A1(e.lastSeen),children:[(0,H.jsx)(G,{"aria-hidden":!0,style:{width:6,height:6,borderRadius:`50%`,background:e.reachable?`var(--mantine-color-success-filled)`:`transparent`,boxShadow:e.reachable?void 0:`inset 0 0 0 1.5px var(--driga-faint)`}}),(0,H.jsx)(q,{size:`xs`,lh:1.2,c:c?`danger`:`dimmed`,fw:c?500:void 0,style:{whiteSpace:`nowrap`},children:e.reachable?`reachable`:`last seen ${O1(s)} ago`})]})]}),e.cpuPercent!==void 0&&(0,H.jsxs)(o_,{gap:4,children:[(0,H.jsx)(q,{size:`xs`,c:`dimmed`,children:`CPU`}),(0,H.jsx)(v0,{value:e.cpuPercent,max:100,format:e=>`${Math.round(e)}%`,label:`CPU on ${e.name}`,caption:`percent`})]}),e.diskTotal&&e.diskFree!==void 0?(0,H.jsxs)(K,{gap:`sm`,wrap:`wrap`,role:`group`,"aria-label":`Pressure`,children:[(0,H.jsx)(D0,{value:e.memUsed,max:e.memTotal,format:D1,label:`Memory`,caption:D1(e.memUsed),size:36}),(0,H.jsx)(D0,{value:Math.max(0,e.diskTotal-e.diskFree),max:e.diskTotal,format:D1,label:`Disk`,caption:D1(e.diskTotal-e.diskFree),size:36})]}):(0,H.jsx)(v0,{value:e.memUsed,max:e.memTotal,format:D1,label:`Memory on ${e.name}`}),(0,H.jsxs)(K,{gap:10,wrap:`nowrap`,role:`group`,"aria-label":K1.map(t=>`${e.sessions[t]} ${q1[t]}`).join(`, `),children:[K1.map(t=>(0,H.jsxs)(K,{gap:3,wrap:`nowrap`,title:q1[t],children:[(0,H.jsx)(G,{"aria-hidden":!0,style:{width:6,height:6,borderRadius:`50%`,background:e.sessions[t]>0?s0(t):`transparent`,boxShadow:e.sessions[t]>0?void 0:`inset 0 0 0 1.5px ${s0(t)}`,opacity:e.sessions[t]>0?1:.5}}),(0,H.jsx)(q,{size:`xs`,ff:`monospace`,lh:1,c:e.sessions[t]>0?void 0:`dimmed`,children:e.sessions[t]})]},t)),!e.reachable&&(0,H.jsx)(q,{size:`xs`,ff:`monospace`,c:`dimmed`,lh:1,children:`last known`})]}),e.strip&&(0,H.jsx)(w0,{cells:e.strip.cells,label:e.strip.label,from:e.strip.from,to:e.strip.to,height:10}),(0,H.jsxs)(K,{justify:`space-between`,wrap:`nowrap`,gap:`xs`,children:[(0,H.jsx)(q,{size:`xs`,c:`dimmed`,ff:`monospace`,lh:1.2,truncate:!0,title:f,style:{minWidth:0},children:f}),!n&&i&&e.leftover.trees>0&&(0,H.jsx)(km,{size:`compact-xs`,variant:`subtle`,color:`gray`,leftSection:(0,H.jsx)(pv,{size:12}),onClick:()=>i(e),style:{flex:`none`},children:`Reclaim`})]})]}),m=e.reachable?void 0:`dashed`;return n?(0,H.jsx)(il,{component:`button`,type:`button`,withBorder:!0,radius:`md`,p:`sm`,className:`w-row w-card`,"data-clickable":``,"aria-pressed":!!t,onClick:()=>n(e),style:{borderStyle:m,textAlign:`left`,width:`100%`,cursor:`pointer`},children:p}):(0,H.jsx)(il,{withBorder:!0,radius:`md`,p:`sm`,className:`w-row w-card`,"data-clickable":r?``:void 0,"data-selected":t?`true`:void 0,tabIndex:r?0:void 0,onClick:r?u:void 0,onKeyDown:r?d:void 0,style:{borderStyle:m},children:p})}function Jhe({groups:e,strips:t,selected:n,onSelect:r}){return(0,H.jsx)(e_,{minColWidth:280,autoFlow:`auto-fit`,spacing:`sm`,component:`ul`,"aria-label":`Machines`,m:0,p:0,style:{flex:`none`,listStyle:`none`,maxHeight:`min(40vh, 18rem)`,overflowY:`auto`},children:e.map(e=>(0,H.jsx)(`li`,{style:{minWidth:0},children:(0,H.jsx)(qhe,{machine:Mhe(e,t?.[e.machine.id]),selected:n===e.machine.id,onSelect:e=>r(n===e.id?null:e.id??null)})},e.machine.id))})}function Yhe(e){return Math.max(360,26*e+48)}function Xhe(e){let t=e.dataType===`edge`?e.data?.target:e.name;if(!t)return null;let[n,r]=[t.slice(0,2),t.slice(2)];return n===`m:`||n===`l:`?{kind:`machine`,id:r}:n===`p:`?{kind:`project`,id:r}:n===`s:`?Ohe(r):null}function O0(e){return e.replace(/[{}|]/g,` `)}function Zhe(e,t){let n={...t.states,brand:t.brand,machine:t.line,leftover:t.muted},r=new h0(e),{groups:i,machines:a,projects:o}=r,s=e.sessions.reduce((e,t)=>e+t.memory,0)+a.reduce((e,t)=>e+(t.leftover?.memory??0),0),c=Math.max(1,s/200),l=[],u=[],d={color:`gradient`,opacity:.22},f={color:n.waiting,opacity:.4};for(let e of i){let r=e.machine,i=e.projects.reduce((e,t)=>e+t.sessions.length,0);l.push({name:`m:${r.id}`,depth:0,text:O0(r.name),tip:`${I1(r.name)}${r.local?` · local`:``}
${r.reachable?`reachable`:`unreachable · last seen ${I1(k1(r.lastSeen))}`}
${I1(D1(r.memoryUsed))} of ${I1(D1(r.memoryTotal))} used · ${N1(i,`session`)}`,itemStyle:{color:n.machine,borderColor:r.reachable?n.machine:t.muted,borderWidth:1,borderType:r.reachable?`solid`:`dashed`},label:{position:`left`,fontFamily:Ky.sans,fontSize:Gy.small+1,fontWeight:600,color:t.text}})}for(let e of o){let i=r.projectMachines(e.id),a=r.projectSessions(e.id);l.push({name:`p:${e.id}`,depth:1,text:O0(e.name),tip:`${I1(e.name)}
${I1(e.repo)}
on ${I1(i.map(e=>e.name).join(`, `))} · ${N1(a.length,`session`)} · ${I1(D1(a.reduce((e,t)=>e+t.memory,0)))}`,itemStyle:{color:Dn(n.brand,.55)},label:{fontFamily:Ky.sans,fontSize:Gy.small,color:t.text}})}for(let e of i){let r=e.machine;r.leftover&&(l.push({name:`l:${r.id}`,depth:1,text:O0(`leftover · ${N1(r.leftover.processes,`proc`)} · ${D1(r.leftover.memory)}`),tip:`Leftover on ${I1(r.name)}
${N1(r.leftover.processes,`process`)} no session owns · ${I1(D1(r.leftover.memory))} reclaimable`,itemStyle:{color:`transparent`,borderColor:n.leftover,borderWidth:1,borderType:`dashed`},label:{fontFamily:Ky.mono,fontSize:Gy.small,color:t.muted}}),u.push({source:`m:${r.id}`,target:`l:${r.id}`,value:Math.max(r.leftover.memory,c),tip:`${I1(r.name)} → leftover: ${I1(D1(r.leftover.memory))}`,lineStyle:{color:n.leftover,opacity:.14}}))}for(let e of o)for(let t of i){let i=t.projects.find(t=>t.project.id===e.id);if(i){u.push({source:`m:${t.machine.id}`,target:`p:${e.id}`,value:Math.max(i.memory,c),tip:`${I1(t.machine.name)} → ${I1(e.name)}: ${I1(D1(i.memory))} in ${N1(i.sessions.length,`session`)}`,lineStyle:i.waiting?f:d});for(let a of i.sessions){let i=r.children(a).length,o=r.overlaps(a),s=`${i?` {dim|↳${i}}`:``}${o.length?` {bang|!}`:``}`;l.push({name:`s:${m0(a)}`,depth:2,text:`${O0(a.title)}${s}{dim| · ${O0(a.agent)} · ${D1(a.memory)}}`,tip:[`${I1(a.title)}`,`${I1(a.label??u0[a.state].label)}${a.inferred?` (inferred)`:``} · ${I1(X1(a.agent))}${a.branch?` · ${I1(a.branch)}`:``}`,`${I1(e.name)} on ${I1(t.machine.name)} · ${I1(D1(a.memory))}`,a.lastTool?`${I1(a.lastTool)} · ${I1(k1(a.lastActivity))}`:``,a.waiting?I1(a.waiting):``,i?N1(i,`subagent`):``,...o.map(e=>`also editing ${I1(e.files.map(e=>e.slice(e.lastIndexOf(`/`)+1)).join(`, `))} with ${I1(e.with.title)}`)].filter(Boolean).join(`
`),itemStyle:{color:n[a.state]}}),u.push({source:`p:${e.id}`,target:`s:${m0(a)}`,value:Math.max(a.memory,c),tip:`${I1(e.name)} → ${I1(a.title)}: ${I1(D1(a.memory))}`,lineStyle:a.state===`waiting`?f:d})}}}let p=p0(e.sessions);return rhe({nodes:l,links:u,description:`Fleet flow: ${N1(a.length,`machine`)}, ${N1(o.length,`project`)}, ${N1(e.sessions.length,`session`)}, ${p} needing you. Link width is memory, with a minimum width for visibility; node colour is state.`,rich:{dim:{color:t.muted,fontFamily:Ky.mono,fontSize:Gy.small},bang:{color:n.stuck,fontWeight:700,fontFamily:Ky.mono,fontSize:Gy.small}}},t)}var Qhe={desktop:Fv,laptop:dy,server:ay},k0=20;function $he({data:e,selected:t,onSelect:n,onOpen:r,onReply:i}){let a=new h0(e),o=a.groups,[s,c]=(0,h.useState)(new Set),l=e=>c(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}),u=(e,n)=>t?.kind===e&&t.id===n,d=e=>a.branch(e).map(({session:e,depth:a})=>(0,H.jsx)(nge,{session:e,level:a+2,selected:u(`session`,e.id)&&(!t?.machine||t.machine===e.machine),onSelect:n,onOpen:r,onReply:i},m0(e)));return(0,H.jsx)(C_.ScrollContainer,{minWidth:1032,type:`native`,children:(0,H.jsxs)(C_,{"aria-label":`Fleet tree`,layout:`fixed`,children:[(0,H.jsx)(C_.Thead,{children:(0,H.jsxs)(C_.Tr,{children:[(0,H.jsx)(C_.Th,{w:100,children:`State`}),(0,H.jsx)(C_.Th,{children:`Name`}),(0,H.jsx)(C_.Th,{w:120,children:`Agent`}),(0,H.jsx)(C_.Th,{w:100,children:`Branch`}),(0,H.jsx)(C_.Th,{w:124,ta:`right`,children:`Memory`}),(0,H.jsx)(C_.Th,{w:96,ta:`right`,children:`Last activity`}),(0,H.jsx)(C_.Th,{w:144,children:(0,H.jsx)(tl,{children:`Actions`})})]})}),(0,H.jsx)(C_.Tbody,{children:o.map(e=>{let t=!s.has(e.machine.id);return[(0,H.jsx)(ege,{group:e,open:t,selected:u(`machine`,e.machine.id),onToggle:()=>l(e.machine.id),onSelect:n},e.machine.id),...t?e.projects.flatMap(t=>[(0,H.jsx)(tge,{group:t,selected:u(`project`,t.project.id),onSelect:n},`${e.machine.id}/${t.project.id}`),...a.roots(e.machine.id,t.project.id).flatMap(d)]):[]]})})]})})}function ege({group:e,open:t,selected:n,onToggle:r,onSelect:i}){let a=e.machine,o=Qhe[a.kind??`desktop`],s=e.projects.reduce((e,t)=>e+t.sessions.length,0);return(0,H.jsxs)(C_.Tr,{className:`fleet-row`,"data-selected":n,children:[(0,H.jsx)(C_.Td,{children:(0,H.jsxs)(K,{gap:4,wrap:`nowrap`,children:[(0,H.jsx)(Vm,{size:7,color:a.reachable?`var(--mantine-color-success-filled)`:`transparent`,withShadow:!1,"aria-hidden":!0,style:{border:a.reachable?void 0:`1px solid var(--driga-muted)`,flex:`none`}}),(0,H.jsx)(q,{fz:`xs`,ff:`monospace`,c:`dimmed`,truncate:!0,title:a.reachable?`reachable`:`last seen ${k1(a.lastSeen)}`,children:a.reachable?`reachable`:`seen ${k1(a.lastSeen)}`})]})}),(0,H.jsx)(C_.Td,{children:(0,H.jsxs)(K,{gap:4,wrap:`nowrap`,children:[(0,H.jsx)(lu,{size:`sm`,"aria-label":`${t?`Collapse`:`Expand`} ${a.name}`,"aria-expanded":t,onClick:r,children:t?(0,H.jsx)(hv,{size:14}):(0,H.jsx)(_v,{size:14})}),(0,H.jsx)(o,{size:14,"aria-hidden":!0,style:{flex:`none`}}),(0,H.jsx)($c,{className:`fleet-row-title`,miw:0,onClick:()=>i({kind:`machine`,id:a.id}),"aria-pressed":n,children:(0,H.jsx)(q,{fz:`sm`,fw:600,ff:`monospace`,truncate:!0,title:a.name,children:a.name})}),a.local&&(0,H.jsx)(bm,{size:`xs`,variant:`default`,style:{flex:`none`},children:`local`}),(0,H.jsx)(q,{fz:`xs`,c:`dimmed`,ff:`monospace`,style:{flex:`none`,whiteSpace:`nowrap`},children:N1(s,`session`)})]})}),(0,H.jsx)(C_.Td,{}),(0,H.jsx)(C_.Td,{}),(0,H.jsx)(C_.Td,{ta:`right`,children:(0,H.jsxs)(q,{fz:`xs`,ff:`monospace`,style:{whiteSpace:`nowrap`},children:[D1(a.memoryUsed),(0,H.jsxs)(q,{span:!0,fz:`xs`,ff:`monospace`,c:`dimmed`,children:[` / `,D1(a.memoryTotal)]})]})}),(0,H.jsx)(C_.Td,{}),(0,H.jsx)(C_.Td,{})]})}function tge({group:e,selected:t,onSelect:n}){return(0,H.jsxs)(C_.Tr,{className:`fleet-row`,"data-selected":t,children:[(0,H.jsx)(C_.Td,{}),(0,H.jsx)(C_.Td,{children:(0,H.jsxs)(K,{gap:4,wrap:`nowrap`,pl:k0,children:[(0,H.jsx)(qv,{size:14,"aria-hidden":!0,style:{flex:`none`}}),(0,H.jsx)($c,{className:`fleet-row-title`,miw:0,onClick:()=>n({kind:`project`,id:e.project.id}),"aria-pressed":t,children:(0,H.jsx)(q,{fz:`sm`,fw:500,ff:`monospace`,truncate:!0,title:e.project.name,children:e.project.name})}),(0,H.jsx)(q,{fz:`xs`,c:`dimmed`,ff:`monospace`,style:{flex:`none`,whiteSpace:`nowrap`},children:N1(e.sessions.length,`session`)})]})}),(0,H.jsx)(C_.Td,{}),(0,H.jsx)(C_.Td,{}),(0,H.jsx)(C_.Td,{ta:`right`,children:(0,H.jsx)(q,{fz:`xs`,ff:`monospace`,c:`dimmed`,children:D1(e.memory)})}),(0,H.jsx)(C_.Td,{}),(0,H.jsx)(C_.Td,{})]})}function nge({session:e,level:t,selected:n,onSelect:r,onOpen:i,onReply:a}){return(0,H.jsxs)(C_.Tr,{className:`fleet-row`,"data-selected":n,children:[(0,H.jsx)(C_.Td,{children:(0,H.jsx)(l0,{state:e.state,label:e.label,inferred:e.inferred,evidence:e.evidence})}),(0,H.jsx)(C_.Td,{children:(0,H.jsxs)(K,{gap:4,wrap:`nowrap`,pl:k0*t,style:{minWidth:0},children:[t>2&&(0,H.jsx)(q,{fz:`xs`,c:`dimmed`,"aria-hidden":!0,style:{flex:`none`},children:`↳`}),(0,H.jsx)($c,{className:`fleet-row-title`,onClick:()=>r({kind:`session`,id:e.id,machine:e.machine}),"aria-pressed":n,style:{minWidth:0},children:(0,H.jsx)(q,{fz:`sm`,truncate:!0,title:e.title,children:e.title})}),(0,H.jsxs)(q,{fz:`xs`,c:`dimmed`,ff:`monospace`,style:{flex:`none`,whiteSpace:`nowrap`},children:[`#`,e.id]})]})}),(0,H.jsx)(C_.Td,{children:(0,H.jsx)(b0,{agent:e.agent,name:!0,size:16})}),(0,H.jsx)(C_.Td,{children:e.branch&&(0,H.jsxs)(K,{gap:3,wrap:`nowrap`,children:[(0,H.jsx)(Zv,{size:12,"aria-hidden":!0,style:{flex:`none`}}),(0,H.jsx)(q,{fz:`xs`,ff:`monospace`,truncate:!0,title:e.branch,children:e.branch})]})}),(0,H.jsx)(C_.Td,{ta:`right`,children:(0,H.jsx)(q,{fz:`xs`,ff:`monospace`,children:D1(e.memory)})}),(0,H.jsx)(C_.Td,{ta:`right`,children:(0,H.jsx)(q,{fz:`xs`,ff:`monospace`,c:`dimmed`,title:A1(e.lastActivity),children:k1(e.lastActivity)})}),(0,H.jsx)(C_.Td,{children:(0,H.jsxs)(K,{gap:2,wrap:`nowrap`,justify:`flex-end`,className:`fleet-row-actions`,children:[e.state===`waiting`&&(0,H.jsx)(km,{size:`compact-xs`,variant:`subtle`,style:{flex:`none`,whiteSpace:`nowrap`},"aria-label":`Reply to ${e.title}`,onClick:()=>a(e),children:`Reply`}),(0,H.jsx)(km,{size:`compact-xs`,variant:`subtle`,color:`gray`,style:{flex:`none`,whiteSpace:`nowrap`},"aria-label":`Open ${e.title}`,onClick:()=>i(e),children:`Open`})]})})]})}var rge=[{value:`flow`,label:`Flow`},{value:`tree`,label:`Tree`}];function ige({machines:e,projects:t,sessions:n,strips:r,selected:i,defaultSelected:a,onSelect:o,onOpen:s,onReply:c,mode:l,defaultMode:u,onModeChange:d}){let f=(0,h.useMemo)(()=>({machines:e,projects:t,sessions:n}),[e,t,n]),[p,m]=oe({value:i,defaultValue:a,finalValue:null,onChange:o}),[g,_]=oe({value:l,defaultValue:u,finalValue:`flow`,onChange:d}),v=(0,h.useMemo)(()=>new h0(f).groups,[f]),y=p?.kind===`machine`&&e.some(e=>e.id===p.id)?p.id:null;(0,h.useEffect)(()=>{p?.kind===`machine`&&!e.some(e=>e.id===p.id)&&m(null)},[e,p,m]);let b=(0,h.useMemo)(()=>y?{machines:f.machines.filter(e=>e.id===y),projects:f.projects,sessions:f.sessions.filter(e=>e.machine===y)}:f,[f,y]),x=(0,h.useCallback)(e=>Zhe(b,e),[b]),S=(0,h.useCallback)((e,t)=>{let n=Xhe(t);n&&m(n)},[m]);return e.length?(0,H.jsxs)(o_,{gap:`sm`,h:`100%`,style:{minHeight:0},children:[(0,H.jsx)(g0,{...f,children:(0,H.jsx)(qg,{size:`xs`,value:g,onChange:e=>_(e),data:rge,"aria-label":`View`})}),(0,H.jsx)(Jhe,{groups:v,strips:r,selected:y,onSelect:e=>m(e?{kind:`machine`,id:e}:null)}),(0,H.jsxs)(xf,{className:`fleet-body`,direction:{base:`column`,lg:`row`},align:`stretch`,wrap:`nowrap`,gap:`sm`,role:`region`,"aria-label":`Fleet`,tabIndex:0,children:[(0,H.jsx)(Im,{padding:`sm`,className:`fleet-chart`,role:`region`,"aria-label":`Fleet flow`,tabIndex:0,children:g===`flow`?(0,H.jsxs)(o_,{gap:4,style:{flex:1,minHeight:0},children:[b.sessions.length?(0,H.jsx)(G,{style:{flex:1,minHeight:Yhe(b.sessions.length),display:`flex`,flexDirection:`column`},children:(0,H.jsx)(V1,{option:x,label:`Fleet flow from machines through projects to sessions`,height:`100%`,onEvent:S})}):(0,H.jsx)(q,{fz:`sm`,c:`dimmed`,py:`xl`,ta:`center`,children:`No sessions on this machine right now.`}),(0,H.jsx)(q,{ff:`monospace`,fz:`xs`,c:`dimmed`,style:{flex:`none`},children:`width = memory (minimum shown) · colour = state`})]}):(0,H.jsx)($he,{data:b,selected:p,onSelect:m,onOpen:s,onReply:c})}),(0,H.jsx)(Vhe,{data:f,selection:p,onSelect:m,onOpen:s,onReply:c})]})]}):(0,H.jsxs)(o_,{gap:`sm`,h:`100%`,children:[(0,H.jsx)(g0,{...f}),(0,H.jsx)(Che,{})]})}var age={name:`Fleet`,panels:[{id:`machines`,title:`Machines`,viz:`table`,source:`machines`,limit:200},{id:`sessions`,title:`Sessions`,viz:`table`,source:`sessions`,limit:200},{id:`flow`,title:`Flow`,viz:`table`,source:`flow`,columns:[`id`,`parent_id`,`started_at`,`ended_at`,`last_tool`,`reason`,`machine_id`],limit:200},{id:`orphans`,title:`Leftover`,viz:`table`,source:`orphans`,limit:200},{id:`projects`,title:`Projects`,viz:`table`,source:`projects`,limit:200},{id:`memory`,title:`Memory by role`,viz:`table`,source:`memory`,limit:200},{id:`heatmap`,title:`Tool calls by project`,viz:`timeseries`,source:`activity_heatmap`,by:`project`,measure:`sum:tool_calls`}]},A0=e=>e==null?``:String(e),j0=e=>typeof e==`number`?e:0,M0=e=>typeof e==`number`?e:void 0,N0=(e,t)=>JSON.stringify([A0(e),A0(t)]);function oge(e){try{let t=JSON.parse(A0(e));return Array.isArray(t)?t.filter(e=>typeof e==`string`):[]}catch{return[]}}function sge(e){let t=c0(e);return t.state?{state:t.state,inferred:t.inferred}:t.label===`dead`?{state:`stuck`,label:`dead`,inferred:!0}:{state:`idle`,label:t.label||void 0,inferred:!0}}function P0(e,t){let n=t=>gS(e.results.find(e=>e.id===t)?.frame),r=Date.parse(e.observed_at)||Date.now(),i=new Map;for(let e of n(`orphans`)){let t=i.get(A0(e.machine_id))??{trees:0,processes:0,memory:0};i.set(A0(e.machine_id),{trees:t.trees+1,processes:t.processes+j0(e.processes),memory:t.memory+j0(e.rss_bytes)})}let a=new Map;for(let e of n(`memory`)){let t=[A0(e.agent),A0(e.role)].filter(Boolean).join(` · `);a.set(A0(e.machine),[...a.get(A0(e.machine))??[],{label:t,value:j0(e.rss_bytes)}])}let o=n(`machines`).map(e=>{let t=A0(e.machine_id),n=A0(e.machine),o=A0(e.state);return{id:t,name:n,kind:A0(e.os)===`linux`?`server`:`desktop`,local:o===`local`,reachable:o===`local`||o===`live`,lastSeen:new Date(r-j0(e.last_seen)).toISOString(),memoryUsed:j0(e.mem_used_bytes),memoryTotal:j0(e.mem_total_bytes),cpuPercent:typeof e.cpu_percent==`number`?e.cpu_percent:void 0,diskFree:M0(e.disk_free_bytes),diskTotal:M0(e.disk_total_bytes),leftover:i.get(t),memoryByRole:a.get(n)}}),s=[];for(let e of n(`projects`)){let t=A0(e.project);t&&!s.some(e=>e.id===t)&&s.push({id:t,name:t,repo:A0(e.path)})}let c=new Map(n(`flow`).map(e=>[N0(e.machine_id,e.id),e])),l=new Map;for(let e of gS(t?.results[0]?.frame))e.kind===`waiting`&&A0(e.session_id)&&A0(e.session_id)!==`0`&&l.set(N0(e.machine_id,e.session_id),[e.reason||`waiting`,e.tool,e.detail].filter(Boolean).join(` · `));let u=n(`sessions`).map(t=>{let n=A0(t.id),r=N0(t.machine_id,n),i=c.get(r),a=sge(A0(t.label));return{id:n,title:A0(t.title)||`Session ${n}`,state:a.state,label:a.label,inferred:a.inferred||t.inferred===!0,evidence:A0(t.evidence)||void 0,agent:A0(t.agent),project:A0(t.project),machine:A0(t.machine_id),branch:A0(t.branch)||void 0,memory:j0(t.mem_bytes),turns:A0(t.turns).split(`,`).filter(e=>[`ok`,`waited`,`failed`].includes(e)),files:oge(t.edited),parent:i&&A0(i.parent_id)&&A0(i.parent_id)!==`0`?A0(i.parent_id):void 0,lastTool:A0(i?.last_tool)||void 0,lastActivity:A0(t.last_activity_at)||e.observed_at,started:A0(i?.started_at)||void 0,waiting:a.state===`waiting`?l.get(r)??(A0(i?.reason)||void 0):void 0}});for(let e of u)e.project&&!s.some(t=>t.id===e.project)&&s.push({id:e.project,name:e.project,repo:``});return{machines:o,projects:s,sessions:u}}function cge({fragment:e,inbox:t,act:n}){let r=(0,h.useMemo)(()=>e?P0(e,t):null,[e,t]),i=(0,h.useMemo)(()=>i0(e),[e]),a=(0,h.useMemo)(()=>r?She(i,r0(r,i.polls)):{},[i,r]),{projects:o,cols:s,values:c}=(0,h.useMemo)(()=>{let t=gS(e?.results.find(e=>e.id===`heatmap`)?.frame),n=[...new Set(t.map(e=>String(e.series)))],r=[...new Set(t.map(e=>String(e.ts)))].sort(),i=new Map(t.map(e=>[JSON.stringify([e.series,e.ts]),Number(e.value??0)]));return{projects:n,cols:r.map(e=>new Date(e).toLocaleTimeString([],{hour:`2-digit`,hour12:!1})),values:n.map(e=>r.map(t=>i.get(JSON.stringify([e,t]))??0))}},[e]);if(!r)return(0,H.jsx)(q,{size:`sm`,c:`dimmed`,children:`Loading…`});let l=e=>{let t=Number(e.id);n&&Number.isSafeInteger(t)&&t>0&&n({kind:`jump`,row:{session_id:t,machine_id:e.machine}})};return(0,H.jsxs)(o_,{gap:`sm`,style:{flex:1,minHeight:0,overflowY:`auto`},children:[(0,H.jsx)(G,{style:{flex:1,minHeight:600},children:(0,H.jsx)(ige,{...r,strips:a,onSelect:()=>void 0,onOpen:l,onReply:l})}),o.length>0&&(0,H.jsxs)(G,{py:`sm`,children:[(0,H.jsx)(q,{size:`xs`,fw:600,c:`dimmed`,mb:6,children:`Tool calls by project · last 24 hours`}),(0,H.jsx)(dhe,{rows:o,cols:s,values:c,format:String,unit:`tool calls`,label:`Tool calls by project, last 24 hours`})]})]})}var F0=(0,h.createContext)({});function I0(){return(0,h.useContext)(F0)}var lge={jump:`Open pane`,ack:`Mark reviewed`,open:`Open`,stop:`Stop`,kill:`Kill`,force_kill:`Force kill`,cleanup:`Remove`,summarize:`Summarize`};function L0(e){return lge[e]}function R0(e,t,n){let r=!t.machine_id||t.machine_id===n;switch(e){case`orphans`:return r&&t.verified===!0&&t.young!==!0?[`kill`,`force_kill`]:[];case`cleanup`:return t.status===`ready`?[`cleanup`]:[];case`sessions`:case`flow`:return r&&t.label!==`ended`&&t.label!==`dead`?[`jump`,`stop`]:[];case`projects`:return r&&t.path?[`summarize`]:[];default:return[]}}var z0=class extends Error{status;constructor(e,t){super(e),this.status=t}};async function B0(e,t,n){let r=await fetch(e,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t),signal:n});if(!r.ok)throw new z0((await r.text()).trim()||`${r.status}`,r.status);return r.json()}async function V0(e,t){let n=await fetch(e,{signal:t});if(!n.ok)throw new z0((await n.text()).trim()||`${n.status}`,n.status);return n.json()}var H0={reset:(e,t)=>B0(`/app/api/reset`,{id:e,base_version:t}).then(hS),catalog:()=>B0(`/app/api/catalog`,{}).then(e=>e.widgets),replace:(e,t,n,r,i)=>B0(`/app/api/replace`,{id:e,dashboard:t,base_version:n,vars:r,message:i}).then(hS),list:()=>B0(`/app/api/list`,{}).then(e=>e.dashboards),open:(e,t,n)=>B0(`/app/api/open`,{id:e,vars:t},n).then(hS),run:(e,t,n)=>B0(`/app/api/run`,{dashboard:e,vars:t},n).then(hS),create:(e,t)=>B0(`/app/api/create`,{dashboard:e,message:t}).then(hS),delete:e=>B0(`/app/api/delete`,{id:e}),edit:(e,t,n,r,i)=>B0(`/app/api/edit`,{id:e,operations:t,base_version:n,vars:r,message:i}).then(hS)};async function U0(e,t){try{let n=await B0(`/app/confirm`,{message:e,request:t});return n.confirmed===!0?n:{confirmed:!1}}catch{return{confirmed:!1}}}async function W0(e){return(await U0(e)).confirmed}async function uge(e,t){let n=await U0(e,t);return!n.confirmed||typeof n.token!=`string`||n.token.length===0?!1:(await G0({...t,token:n.token}),!0)}function G0(e){return B0(`/app/action`,e)}var K0={history:()=>V0(`/chat/api/history`),create:()=>B0(`/chat/api/new`,{}),send:(e,t,n)=>B0(`/chat/api/send`,{id:e,text:t,context:n}),stop:e=>B0(`/chat/api/stop`,{id:e}),decide:(e,t,n)=>B0(`/chat/api/decide`,{id:e,action:t,allow:n}),decideSimilar:(e,t)=>B0(`/chat/api/decide`,{id:e,action:t,allow:!0,similar:!0}),answerSimilar:e=>B0(`/chat/api/prompt-answer`,{id:e,allow:!0,similar:!0}),revokeGrant:e=>B0(`/chat/api/grant-revoke`,{id:e}),grantHistory:()=>V0(`/chat/api/grant-history`).then(e=>e??[]),setMode:(e,t)=>B0(`/chat/api/mode`,{id:e,mode:t}),bursts:()=>V0(`/chat/api/prompt-bursts`).then(e=>e??[]),decideBurst:(e,t,n)=>B0(`/chat/api/burst-decide`,{id:e,members:t,allow:n}),prompts:()=>V0(`/chat/api/prompts`).then(e=>e??[]),answer:(e,t)=>B0(`/chat/api/prompt-answer`,{id:e,allow:t}),wait:(e,t,n)=>V0(`/chat/api/wait?id=${encodeURIComponent(e)}&after=${t}`,n)};function dge(e){return fge(e)||typeof e==`function`||pge(e)}function fge(e){return typeof e==`function`&&(()=>{let t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function pge(e){return typeof e==`object`&&typeof e.$$typeof==`symbol`&&[`react.memo`,`react.forward_ref`].includes(e.$$typeof.description)}function q0(e,t){return e==null?null:dge(e)?h.createElement(e,t):e}function mge(e){if(`cell`in e&&e.cell){let t=e.cell,n=t.column.columnDef,r=t,i=n;return r.getIsAggregated?.()?q0(i.aggregatedCell??n.cell,t.getContext()):r.getIsPlaceholder?.()?null:q0(n.cell,t.getContext())}return`header`in e&&e.header?q0(e.header.column.columnDef.header,e.header.getContext()):`footer`in e&&e.footer?q0(e.footer.column.columnDef.footer,e.footer.getContext()):null}function hge({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0)n=e.nextSub;else{for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}}while(1)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(1)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function gge(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var J0=[],Y0=0,{link:X0,unlink:_ge,propagate:vge,checkDirty:Z0,shallowPropagate:Q0}=hge({update(e){return e._update()},notify(e){J0[e2++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,r2(e))}}),$0=0,e2=0,t2,n2=0;function yge(e){try{++n2,e()}finally{--n2||i2()}}function r2(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=_ge(n,e)}function i2(){if(!(n2>0)){for(;$0{i.get(),n.current?(t2=void 0,t.next?.(i._snapshot)):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=t2,o=t?.compare??Object.is;if(n)t2=i,++Y0,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=5);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{t2=a,n&&(i.flags&=-5),r2(i)}}};return n?(i.flags=17,i.get=function(){let e=i.flags;if(e&16||e&32&&Z0(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Q0(e)}}else e&32&&(i.flags=e&-33);return t2!==void 0&&X0(i,t2,Y0),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(vge(e),Q0(e),i2())}},i}function xge(e){let t=()=>{let t=t2;t2=n,++Y0,n.depsTail=void 0,n.flags=6;try{return e()}finally{t2=t,n.flags&=-5,r2(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){let e=this.flags;e&16||e&32&&Z0(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,r2(this)}};return t(),n}function a2(e,t){if(Object.is(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!t.has(n)||!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();let n=o2(e);if(n.length!==o2(t).length)return!1;for(let r=0;r{var t=m();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),Cge=o(((e,t)=>{t.exports=Sge()})),wge=o((e=>{var t=m(),n=Cge();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),Tge=o(((e,t)=>{t.exports=wge()}))();function Ege(e,t){return e===t}function s2(e,t=e=>e,n){let r=n?.compare??Ege,i=(0,h.useCallback)(t=>{let{unsubscribe:n}=e.subscribe(t);return n},[e]),a=(0,h.useCallback)(()=>e.get(),[e]);return(0,Tge.useSyncExternalStoreWithSelector)(i,a,a,t,r)}function Dge(e){let t=s2(e.source,e.selector,{compare:a2});return typeof e.children==`function`?e.children(t):e.children}function Oge(e){let t=e;return Object.defineProperty(e,"state",{get(){return e.get()}}),`set`in e&&(t.setState=e.set.bind(e)),t}function kge(e){let{createAtom:t,batch:n}=e,r=t(0);return{createOptionsStore:!1,wrapExternalAtoms:!1,addSubscription:()=>{throw Error(`Feature not supported in current reactivity implementation`)},unmount:()=>{throw Error(`Feature not supported in current reactivity implementation`)},schedule:e.schedule??(e=>queueMicrotask(e)),batch:n,untrack:e=>e(),createReadonlyAtom:(e,n)=>{let i=n?.compare??Object.is,a=!1,o,s=()=>{let t=e();return a&&i(o,t)||(o=t,a=!0),o},c=t(()=>(r.get(),s()),{compare:i});return{get:s,subscribe:c.subscribe.bind(c)}},createWritableAtom:(e,n)=>t(e,{compare:n?.compare}),commit:()=>{r.set(e=>e+1)}}}function Age(e,t=Object.is){let n=!1,r;return{get:e.get,markCommitted:e=>{r=e,n=!0},subscribe:i=>e.subscribe(e=>{n&&t(r,e)||i(e)})}}function jge(){return kge({createAtom:bge,batch:yge})}function c2(e,t){return typeof e==`function`?e(t):e}function l2(e){if(Array.isArray(e))return e.map(l2);if(e&&typeof e==`object`){let t=Object.getPrototypeOf(e);if(t!==Object.prototype&&t!==null)return e;let n=t===null?u2():{},r=Object.keys(e);for(let t=0;t{(t.options.atoms?.[e]??t.baseAtoms[e]).set(e=>c2(n,e))}}function f2(e){if(typeof e!=`object`||!e)return!1;if(Array.isArray(e))return!0;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function p2(e){return Reflect.ownKeys(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}var Pge=3;function Fge(e,t){return m2(e,t,Pge)}function m2(e,t,n){if(Object.is(e,t))return!0;if(n<=0||!f2(e)||!f2(t)||(Array.isArray(e)||Array.isArray(t))&&(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length))return!1;let r=p2(e),i=p2(t);if(r.length!==i.length)return!1;let a=e,o=t;for(let e=0;e{let t=c2(n,e);return r(e,t)?e:t})}function Lge(e){return e instanceof Function}function Rge(e,t){let n=[],r=e=>{e.forEach(e=>{n.push(e);let i=t(e);i.length&&r(i)})};return r(e),n}var zge=({fn:e,memoDeps:t,onAfterCompare:n,onAfterUpdate:r,onBeforeCompare:i,onBeforeUpdate:a})=>{let o=[],s;return c=>{i?.();let l=t?.(c),u=!l||l.length!==o?.length;if(!u&&l){for(let e=0;e{t?e():t=!0}}function g2({feature:e,fnName:t,objectId:n,onAfterUpdate:r,table:i,...a}){let o={onAfterUpdate:r?()=>{let{schedule:e,untrack:t}=i._reactivity;e(()=>t(()=>r()))}:void 0};return zge({...a,...o})}function _2(e,t=`_`){let[n,r]=e.replace(t,` `).split(` `);return{fnKey:r,fnName:`${n}.${r}`,parentName:n}}function v2(e,t,n){for(let[r,{fn:i,memoDeps:a}]of Object.entries(n)){let{fnKey:n,fnName:o}=_2(r);t[n]=a?g2({memoDeps:a,fn:i,fnName:o,table:t,feature:e}):i}}function y2(e,t,n,r){for(let[i,{fn:a,memoDeps:o}]of Object.entries(r)){let{fnKey:r,fnName:s}=_2(i);if(o){let i=`_memo_${r}`;t[r]=function(...t){if(!this[i]){let t=this;this[i]=g2({memoDeps:e=>o(t,e),fn:(...e)=>a(t,...e),fnName:s,objectId:t.id,table:n,feature:e})}return this[i](...t)}}else t[r]=function(...e){return a(this,...e)}}}function Bge(e){return e.row.getValue(e.column.id)}function Vge(e){return e.getValue()??e.table.options.renderFallbackValue}function Hge(e){return{table:e.table,column:e.column,row:e.row,cell:e,getValue:()=>e.getValue(),renderValue:()=>e.renderValue()}}var Uge={assignCellPrototype:(e,t)=>{y2(`coreCellsFeature`,e,t,{cell_getValue:{fn:e=>Bge(e)},cell_renderValue:{fn:e=>Vge(e)},cell_getContext:{fn:e=>Hge(e),memoDeps:e=>[e]}})}};function Wge(e){if(!e._columnPrototype){e._columnPrototype={table:e};let t=Object.values(e._features);for(let n=0;n{let n=t;for(let t=0;te[i.accessorKey]}if(!s)throw Error();let l=Wge(e),u=Object.create(l);u.accessorFn=c,u.columnDef=i,u.columns=[],u.depth=n,u.id=`${String(s)}`,u.parent=r;let d=e._columnInstanceInitFns;for(let e=0;ee.getFlatColumns())]}function $ge(e){if(e.columns.length){let t=e.columns.flatMap(e=>e.getLeafColumns());return x2(e.table,t)}return[e]}function e_e(e){return{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>e.renderValue()?.toString?.()??null,...Object.values(e._features).reduce((e,t)=>Object.assign(e,t.getDefaultColumnDef?.()),{}),...e.options.defaultColumn}}function C2(e,t,n,r=0){let i=Array(t.length);for(let a=0;ae.getFlatColumns())}function r_e(e){let t=u2(),n=e.getAllFlatColumns();for(let e=0;ee.getLeafColumns()))}function a_e(e){let t=u2(),n=e.getAllLeafColumns();for(let e=0;e{y2(`coreColumnsFeature`,e,t,{column_getFlatColumns:{fn:e=>Qge(e),memoDeps:e=>[e.table.options.columns]},column_getLeafColumns:{fn:e=>$ge(e),memoDeps:e=>[e.table.atoms.columnOrder?.get(),e.table.atoms.grouping?.get(),e.table.options.columns,e.table.options.groupedColumnMode]}})},constructTableAPIs:e=>{v2(`coreColumnsFeature`,e,{table_getDefaultColumnDef:{fn:()=>e_e(e),memoDeps:()=>[e.options.defaultColumn]},table_getAllColumns:{fn:()=>t_e(e),memoDeps:()=>[e.options.columns]},table_getAllFlatColumns:{fn:()=>n_e(e),memoDeps:()=>[e.options.columns]},table_getAllFlatColumnsById:{fn:()=>r_e(e),memoDeps:()=>[e.options.columns]},table_getAllLeafColumns:{fn:()=>i_e(e),memoDeps:()=>[e.atoms.columnOrder?.get(),e.atoms.grouping?.get(),e.options.columns,e.options.groupedColumnMode]},table_getAllLeafColumnsById:{fn:()=>a_e(e),memoDeps:()=>[e.getAllLeafColumns()]},table_getColumn:{fn:t=>o_e(e,t)}})}};function c_e(e){if(!e._headerPrototype){e._headerPrototype={table:e};let t=Object.values(e._features);for(let n=0;n0&&E2(s,t-1,n,r,i,a)}function D2(e){for(let t=0;te.id),e)}function g_e(e){return[...e.getHeaderGroups()].reverse()}function __e(e){let t=e.getHeaderGroups(),n=[];for(let e=0;e{y2(`coreHeadersFeature`,e,t,{header_getLeafHeaders:{fn:e=>p_e(e),memoDeps:e=>[e.column.table.options.columns]},header_getContext:{fn:e=>m_e(e),memoDeps:e=>[e.column.table.options.columns]}})},constructTableAPIs:e=>{v2(`coreHeadersFeature`,e,{table_getHeaderGroups:{fn:()=>h_e(e),memoDeps:()=>[e.options.columns,e.atoms.columnOrder?.get(),e.atoms.grouping?.get(),e.atoms.columnPinning?.get(),e.atoms.columnVisibility?.get(),e.options.groupedColumnMode]},table_getFooterGroups:{fn:()=>g_e(e),memoDeps:()=>[e.getHeaderGroups()]},table_getFlatHeaders:{fn:()=>__e(e),memoDeps:()=>[e.getHeaderGroups()]},table_getLeafHeaders:{fn:()=>v_e(e),memoDeps:()=>[e.getHeaderGroups()]}})}};function b_e(e){if(!e._rowPrototype){e._rowPrototype={table:e};let t=Object.values(e._features);for(let n=0;n{let s=b_e(e),c=Object.create(s);c._displayIndexCache=-1,c._uniqueValuesCache=u2(),c._valuesCache=u2(),c.depth=i,c.id=t,c.index=r,c.original=n,c.parentId=o,c.subRows=a??[];let l=e._rowInstanceInitFns;for(let e=0;eg2({feature:`coreRowModelsFeature`,table:e,fnName:`table.getCoreRowModel`,memoDeps:()=>[e.options.data],fn:()=>C_e(e,e.options.data),onAfterUpdate:h2(()=>{Yge(e),S2(e),Xge(e),Zge(e)})})}function k2(e,t,n,r=0,i){let a=[];for(let o=0;o{v2(`coreRowModelsFeature`,e,{table_getCoreRowModel:{fn:()=>w_e(e)},table_getPreFilteredRowModel:{fn:()=>T_e(e)},table_getFilteredRowModel:{fn:()=>E_e(e)},table_getPreGroupedRowModel:{fn:()=>D_e(e)},table_getGroupedRowModel:{fn:()=>O_e(e)},table_getPreSortedRowModel:{fn:()=>k_e(e)},table_getSortedRowModel:{fn:()=>A_e(e)},table_getPreExpandedRowModel:{fn:()=>j_e(e)},table_getExpandedRowModel:{fn:()=>M_e(e)},table_getPrePaginatedRowModel:{fn:()=>N_e(e)},table_getPaginatedRowModel:{fn:()=>P_e(e)},table_getRowModel:{fn:()=>F_e(e)}})}};function L_e(e){if(!e._cellPrototype){e._cellPrototype={table:e};let t=Object.values(e._features);for(let n=0;ne.subRows)}function G_e(e){let t=e.getCoreRowModel().flatRows,n=0;for(let e=0;e{y2(`coreRowsFeature`,e,t,{row_getDisplayIndex:{fn:e=>z_e(e)},row_getAllCellsByColumnId:{fn:e=>Y_e(e),memoDeps:e=>[e.getAllCells()]},row_getAllCells:{fn:e=>J_e(e),memoDeps:e=>[e.table.getAllLeafColumns()]},row_getLeafRows:{fn:e=>W_e(e),memoDeps:e=>[e.subRows]},row_getParentRow:{fn:e=>K_e(e)},row_getParentRows:{fn:e=>q_e(e)},row_getUniqueValues:{fn:(e,t)=>H_e(e,t)},row_getValue:{fn:(e,t)=>V_e(e,t)},row_renderValue:{fn:(e,t)=>U_e(e,t)}})},constructTableAPIs:e=>{v2(`coreRowsFeature`,e,{table_getRowsInDisplayOrder:{fn:()=>B_e(e),memoDeps:()=>[e.getPrePaginatedRowModel().rows,e.options.paginateExpandedRows,e.options.paginateExpandedRows===!1?e.atoms.expanded?.get():void 0]},table_getRowId:{fn:(t,n,r)=>X_e(t,e,n,r)},table_getRow:{fn:(t,n)=>Z_e(e,t,n)},table_getMaxSubRowDepth:{fn:()=>G_e(e),memoDeps:()=>[e.getCoreRowModel()]}})}};function A2(e,t,n=(e,t)=>e===t){let r=t===void 0?e.options.state:t;e._reactivity.batch(()=>{if(r)for(let t in r){let i=e.baseAtoms[t];if(!i)continue;let a=r[t],o=a===void 0?e.initialState[t]:a;n(e._reactivity.untrack(()=>i.get()),o)||i.set(()=>o)}})}function j2(e,t,n=(e,t)=>e===t){e._reactivity.batch(()=>{A2(e,t,n),e._reactivity.commit?.()})}function $_e(e){let t=l2(e.initialState);e._reactivity.batch(()=>{let n=Object.keys(t);for(let r=0;rr):e.options=r,n?.syncExternalState!==!1&&j2(e,r.state??null)}var tve={coreCellsFeature:Uge,coreColumnsFeature:s_e,coreHeadersFeature:y_e,coreRowModelsFeature:I_e,coreRowsFeature:Q_e,coreTablesFeature:{constructTableAPIs:e=>{v2(`coreTablesFeature`,e,{table_reset:{fn:()=>$_e(e)},table_setOptions:{fn:t=>M2(e,t)}})}}};function nve(e){return e}function rve(e,t={}){return Object.values(e).forEach(e=>{t=e.getInitialState?.(t)??t}),l2(t)}function ive(e){let t=e.features.coreReactivityFeature,{aggregationFns:n,columnMeta:r,coreRowModel:i,expandedRowModel:a,facetedMinMaxValues:o,facetedRowModel:s,facetedUniqueValues:c,filterFns:l,filterMeta:u,filteredRowModel:d,groupedRowModel:f,paginatedRowModel:p,sortFns:m,sortedRowModel:h,tableMeta:g,..._}=e.features,v={_cellInstanceInitFns:[],_columnInstanceInitFns:[],_features:{...tve,..._},_headerGroupInstanceInitFns:[],_headerInstanceInitFns:[],_reactivity:t,_rowInstanceInitFns:[],_rowModelFns:{aggregationFns:n,filterFns:l,sortFns:m},_rowModels:{},atoms:{},baseAtoms:{}},y=Object.values(v._features),b={...y.reduce((e,t)=>Object.assign(e,t.getDefaultTableOptions?.(v)),{}),...e};if(t.wrapExternalAtoms&&b.atoms)for(let[e,n]of Object.entries(b.atoms)){let r=n,i=t.createWritableAtom(r.get(),{debugName:`externalAtom/${e}`});b.atoms[e]=i;let a=!1,o=r.subscribe(e=>{a||i.set(e)}),s=i.subscribe(e=>{a=!0,r.set(e),a=!1});t.addSubscription(o),t.addSubscription(s)}t.createOptionsStore?(v.optionsStore=t.createWritableAtom(b,{debugName:`table/optionsStore`}),Object.defineProperty(v,"options",{configurable:!0,enumerable:!0,get(){return v.optionsStore.get()},set(e){v.optionsStore.set(()=>e)}})):v.options=b,v.initialState=rve(v._features,v.options.initialState);let x=Object.keys(v.initialState);for(let e=0;e{let e=v.options,t=e.atoms?.[n],r=t?t.get():v.baseAtoms[n].get();if(t)return r;let i=e.state;if(i&&d2(i,n)){let e=i[n];return e===void 0?v.initialState[n]:e}return r},{debugName:`table/atoms/${n}`})}A2(v),v.store=Oge(t.createReadonlyAtom(()=>{let e={};for(let t=0;t{let i=e.getValue(r),a=n.getValue(r),o=t.resolveDataValue;return o&&(i=o(i),a=o(a)),t.sort(i,a,e,n,r)},e);return t}var ove=N2({resolveDataValue:e=>cve(e).toLowerCase(),sort:(e,t)=>lve(e,t)}),P2=N2({sort:(e,t)=>sve(e,t)});function sve(e,t){return e===t?0:e>t?1:-1}function cve(e){return typeof e==`number`?isNaN(e)||e===1/0||e===-1/0?``:String(e):typeof e==`string`?e:``}function lve(e,t){let n=0,r=0,i=e.length,a=t.length;for(;n=48&&e<=57}function I2(e,t,n){let r=t+1;for(;ro)return 1;if(o>a)return-1}return o>s?1:s>o?-1:0}function dve(e,t,n,r,i,a){let o=t;for(;oi?1:i>t?-1:0}let u=parseInt(e.slice(t,n),10),d=parseInt(r.slice(i,a),10);return u>d?1:d>u?-1:0}function L2(e,t,n){let r=0;for(let i=t;i1)){r=`alphanumeric`;break}}if(!r&&i&&(r=`text`),r){let e=t?.[r];if(e||r===`alphanumeric`&&(e=t?.text),e)return e}return P2}function H2(e){let t=e.table.getFilteredRowModel().flatRows.slice(0,10);for(let n=0;n{let o=a.findIndex(t=>t.id===e.id),s=o===-1?void 0:a[o],c=[],l,u=i?t:r===`desc`,d=!!(a.length&&J2(e)&&n);return l=d?s?`toggle`:`add`:s?`toggle`:`replace`,l===`toggle`&&(i||r||(l=`remove`)),l===`add`?(c=[...a,{id:e.id,desc:u}],c.splice(0,c.length-(e.table.options.maxMultiSortColCount??2**53-1))):c=l===`toggle`?d?a.map(t=>t.id===e.id?{...t,desc:u}:t):[{id:e.id,desc:u}]:l===`remove`?d?a.filter(t=>t.id!==e.id):[]:[{id:e.id,desc:u}],c})}function G2(e){return e.columnDef.sortDescFirst??e.table.options.sortDescFirst??H2(e)===`desc`?`desc`:`asc`}function K2(e,t){let n=G2(e),r=Y2(e);return r?r!==n&&(e.table.options.enableSortingRemoval??!0)&&(!t||(e.table.options.enableMultiRemove??!0))?!1:r===`desc`?`asc`:`desc`:n}function q2(e){return(e.columnDef.enableSorting??!0)&&(e.table.options.enableSorting??!0)&&!!e.accessorFn}function J2(e){return e.columnDef.enableMultiSort??e.table.options.enableMultiSort??!!e.accessorFn}function Y2(e){let t=e.table.atoms.sorting?.get()?.find(t=>t.id===e.id);return t?t.desc?`desc`:`asc`:!1}function mve(e){return e.table.atoms.sorting?.get()?.findIndex(t=>t.id===e.id)??-1}function hve(e){z2(e.table,t=>t.length?t.filter(t=>t.id!==e.id):[])}function gve(e){let t=q2(e);return n=>{t&&W2(e,void 0,J2(e)?e.table.options.isMultiSortEvent?.(n):!1)}}var _ve={getInitialState(e){return{sorting:fve(),...e}},getDefaultColumnDef(){return{sortFn:`auto`,sortUndefined:1}},getDefaultTableOptions(e){return{autoResetSorting:!1,onSortingChange:Nge(`sorting`,e),isMultiSortEvent:e=>e.shiftKey}},assignColumnPrototype(e,t){y2(`rowSortingFeature`,e,t,{column_getAutoSortFn:{fn:e=>V2(e)},column_getAutoSortDir:{fn:e=>H2(e)},column_getSortFn:{fn:e=>U2(e)},column_toggleSorting:{fn:(e,t,n)=>W2(e,t,n)},column_getFirstSortDir:{fn:e=>G2(e)},column_getNextSortingOrder:{fn:(e,t)=>K2(e,t)},column_getCanSort:{fn:e=>q2(e)},column_getCanMultiSort:{fn:e=>J2(e)},column_getIsSorted:{fn:e=>Y2(e)},column_getSortIndex:{fn:e=>mve(e)},column_clearSorting:{fn:e=>hve(e)},column_getToggleSortingHandler:{fn:e=>gve(e)}})},constructTableAPIs(e){v2(`rowSortingFeature`,e,{table_autoResetSorting:{fn:()=>pve(e)},table_setSorting:{fn:t=>z2(e,t)},table_resetSorting:{fn:t=>B2(e,t)}})}};function vve(){return e=>{let t=e;return g2({feature:`rowSortingFeature`,table:t,fnName:`table.getSortedRowModel`,memoDeps:()=>[t.atoms.sorting?.get(),t.getPreSortedRowModel()],fn:()=>yve(t),onAfterUpdate:h2(()=>S2(t))})}}function yve(e){let t=e.getPreSortedRowModel(),n=e.atoms.sorting?.get();if(!t.rows.length||!n?.length)return t;let r=[],i=n.filter(t=>{let n=e.getColumn(t.id);return n?q2(n):!1});if(!i.length)return t;let a=[];for(let t=0;t{for(let n=0;n{let t=e.slice();t.sort(o);let n=!1;for(let i=0;i`u`?h.useEffect:h.useLayoutEffect;function xve(e,t){let[{table:n,rootSource:r}]=(0,h.useState)(()=>{let t=ive({...e,features:{coreReactivityFeature:jge(),...e.features}});return t.Subscribe=(e=>Dge({...e,source:e.source??t.store})),t.FlexRender=mge,{table:t,rootSource:Age(t.store,a2)}}),i=n;M2(i,t=>({...t,...e}),{syncExternalState:!1});let a=i.options.state,o=r.get(),s=s2(r,t,{compare:a2});return bve(()=>{r.markCommitted(o),j2(i,a??null,a2)}),(0,h.useMemo)(()=>({...n,options:e,state:s}),[n,e,s])}function Sve(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Cve=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,wve=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Tve={};function X2(e,t){return((t||Tve).jsx?wve:Cve).test(e)}var Eve=/[ \t\n\f\r]/g;function Dve(e){return typeof e==`object`?e.type===`text`&&Z2(e.value):Z2(e)}function Z2(e){return e.replace(Eve,``)===``}var Q2=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Q2.prototype.normal={},Q2.prototype.property={},Q2.prototype.space=void 0;function $2(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Q2(n,r,t)}function e4(e){return e.toLowerCase()}var t4=class{constructor(e,t){this.attribute=t,this.property=e}};t4.prototype.attribute=``,t4.prototype.booleanish=!1,t4.prototype.boolean=!1,t4.prototype.commaOrSpaceSeparated=!1,t4.prototype.commaSeparated=!1,t4.prototype.defined=!1,t4.prototype.mustUseProperty=!1,t4.prototype.number=!1,t4.prototype.overloadedBoolean=!1,t4.prototype.property=``,t4.prototype.spaceSeparated=!1,t4.prototype.space=void 0;var n4=s({boolean:()=>r4,booleanish:()=>i4,commaOrSpaceSeparated:()=>c4,commaSeparated:()=>s4,number:()=>$,overloadedBoolean:()=>a4,spaceSeparated:()=>o4}),Ove=0,r4=l4(),i4=l4(),a4=l4(),$=l4(),o4=l4(),s4=l4(),c4=l4();function l4(){return 2**++Ove}var u4=Object.keys(n4),d4=class extends t4{constructor(e,t,n,r){let i=-1;if(super(e,t),f4(this,`space`,r),typeof n==`number`)for(;++i4&&n.slice(0,4)===`data`&&Nve.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(b4,Ive);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!b4.test(e)){let n=e.replace(Mve,Fve);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=d4}return new i(r,t)}function Fve(e){return`-`+e.toLowerCase()}function Ive(e){return e.charAt(1).toUpperCase()}var Lve=$2([m4,kve,_4,v4,y4],`html`),x4=$2([m4,Ave,_4,v4,y4],`svg`);function Rve(e){return e.join(` `).trim()}var zve=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(` -`);u=~n?e.length-n:u+e.length}function p(){var e={line:l,column:u};return function(t){return t.position=new m(e),_(),t}}function m(e){this.start=e,this.end={line:l,column:u},this.source=t.source}m.prototype.content=e;function h(n){var r=Error(t.source+`:`+l+`:`+u+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=u,r.source=e,!t.silent)throw r}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function _(){g(i)}function v(e){var t;for(e||=[];t=y();)t!==!1&&e.push(t);return e}function y(){var t=p();if(e.charAt(0)==`/`&&e.charAt(1)==`*`){for(var n=2;e.charAt(n)!=``&&(e.charAt(n)!=`*`||e.charAt(n+1)!=`/`);)++n;if(n+=2,e.charAt(n-1)===``)return h(`End of comment missing`);var r=e.slice(2,n-2);return u+=2,f(r),e=e.slice(n),u+=2,t({type:`comment`,comment:r})}}function b(){var e=p(),t=g(a);if(t){if(y(),!g(o))return h(`property missing ':'`);var r=g(s),i=e({type:`declaration`,property:d(t[0].replace(n,``)),value:r?d(r[0].replace(n,``)):``});return g(c),i}}function x(){var e=[];v(e);for(var t;t=b();)t!==!1&&(e.push(t),v(e));return e}return _(),x()}function d(e){return e?e.replace(l,``):``}t.exports=u})),Bve=o(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var i=r(zve());function a(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=(0,i.default)(e),a=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:i}=e;a?t(r,i,e):i&&(n||={},n[r]=i)}),n}})),Vve=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),Hve=o(((e,t,n)=>{var r=(n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(Bve()),i=Vve();function a(e,t){var n={};return!e||typeof e!=`string`||(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}a.default=a,t.exports=a})),S4=w4(`end`),C4=w4(`start`);function w4(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function Uve(e){let t=C4(e),n=S4(e);if(t&&n)return{start:t,end:n}}function T4(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?D4(e.position):`start`in e||`end`in e?D4(e):`line`in e||`column`in e?E4(e):``}function E4(e){return O4(e&&e.line)+`:`+O4(e&&e.column)}function D4(e){return E4(e&&e.start)+`-`+E4(e&&e.end)}function O4(e){return e&&typeof e==`number`?e:1}var k4=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=T4(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};k4.prototype.file=``,k4.prototype.name=``,k4.prototype.reason=``,k4.prototype.message=``,k4.prototype.stack=``,k4.prototype.column=void 0,k4.prototype.line=void 0,k4.prototype.ancestors=void 0,k4.prototype.cause=void 0,k4.prototype.fatal=void 0,k4.prototype.place=void 0,k4.prototype.ruleId=void 0,k4.prototype.source=void 0;var Wve=l(Hve(),1),A4={}.hasOwnProperty,Gve=new Map,Kve=/[A-Z]/g,qve=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),Jve=new Set([`td`,`th`]),j4=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function Yve(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=rye(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=nye(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?x4:Lve,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=M4(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function M4(e,t,n){if(t.type===`element`)return Xve(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return Zve(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return $ve(e,t,n);if(t.type===`mdxjsEsm`)return Qve(e,t);if(t.type===`root`)return eye(e,t,n);if(t.type===`text`)return tye(e,t)}function Xve(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=x4,e.schema=i),e.ancestors.push(t);let a=I4(e,t.tagName,!1),o=iye(e,t),s=F4(e,t);return qve.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!Dve(e)})),N4(e,o,a,t),P4(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Zve(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}L4(e,t.position)}function Qve(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);L4(e,t.position)}function $ve(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=x4,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:I4(e,t.name,!0),o=aye(e,t),s=F4(e,t);return N4(e,o,a,t),P4(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function eye(e,t,n){let r={};return P4(r,F4(e,t)),e.create(t,e.Fragment,r,n)}function tye(e,t){return t.value}function N4(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function P4(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function nye(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function rye(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=C4(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function iye(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&A4.call(t.properties,i)){let a=oye(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&Jve.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function aye(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else L4(e,t.position)}else{let i=r.name,a;if(r.value&&typeof r.value==`object`){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else L4(e,t.position)}else a=r.value===null||r.value;n[i]=a}return n}function F4(e,t){let n=[],r=-1,i=e.passKeys?new Map:Gve;for(;++ri?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(W4(e,e.length,0,t),e):t}var K4={}.hasOwnProperty;function q4(e){let t={},n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function Y4(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var X4=a3(/[A-Za-z]/),Z4=a3(/[\dA-Za-z]/),hye=a3(/[#-'*+\--9=?A-Z^-~]/);function Q4(e){return e!==null&&(e<32||e===127)}var $4=a3(/\d/),gye=a3(/[\dA-Fa-f]/),_ye=a3(/[!-/:-@[-`{-~]/);function e3(e){return e!==null&&e<-2}function t3(e){return e!==null&&(e<0||e===32)}function n3(e){return e===-2||e===-1||e===32}var r3=a3(/\p{P}|\p{S}/u),i3=a3(/\s/);function a3(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function o3(e){let t=[],n=-1,r=0,i=0;for(;++n55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function s3(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return n3(r)?(e.enter(n),s(r)):t(r)}function s(r){return n3(r)&&a++0&&n3(t)?(e.enter(r),c(t)):l(t)}function c(t){return n3(t)&&o=i?t(e):n(e)}}var vye={tokenize:yye};function yye(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null)e.consume(n);else return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),s3(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null)e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);else return e3(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var l3=class{constructor(){this.index=new Map,this.map=[]}add(e,t,n){u3(this,e,t,n,!1)}addBefore(e,t,n){u3(this,e,t,n,!0)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function u3(e,t,n,r,i){if(n===0&&r.length===0)return;let a=e.index.get(t);if(a){a[1]+=n,i?(r.push(...a[2]),a[2]=r):a[2].push(...r);return}let o=[t,n,r];e.map.push(o),e.index.set(t,o)}var bye={tokenize:xye},d3={tokenize:Sye};function xye(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(ro))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;er;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Sye(e,t,n){return s3(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function f3(e){if(e===null||t3(e)||i3(e))return 1;if(r3(e))return 2}function p3(e,t,n){let r=[],i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,o={...e[i][1].end},s={...e[n][1].start};h3(o,-a),h3(s,a);let c={type:a>1?`strongSequence`:`emphasisSequence`,start:o,end:{...e[i][1].end}},l={type:a>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:s},u={type:a>1?`strongText`:`emphasisText`,start:{...e[i][1].end},end:{...e[n][1].start}},d={type:a>1?`strong`:`emphasis`,start:{...c.start},end:{...l.end}};e[i][1].end={...c.start},e[n][1].start={...l.end},r=[],e[i][1].end.offset-e[i][1].start.offset&&(r=G4(r,[[`enter`,e[i][1],t],[`exit`,e[i][1],t]])),r=G4(r,[[`enter`,d,t],[`enter`,c,t],[`exit`,c,t],[`enter`,u,t]]),r=G4(r,p3(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),r=G4(r,[[`exit`,u,t],[`enter`,l,t],[`exit`,l,t],[`exit`,d,t]]);let f=0;e[n][1].end.offset-e[n][1].start.offset&&(f=2,r=G4(r,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])),W4(e,i-1,n-i+3,r),n=i+r.length-f-2;break}}for(n=-1;++n0&&n3(t)?s3(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||e3(t)?e.check(b3,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||e3(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),n3(t)?s3(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),n3(t)?s3(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||e3(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}var S3={name:`codeIndented`,tokenize:Iye},Fye={partial:!0,tokenize:Lye};function Iye(e,t,n){return r;function r(t){return e.enter(`codeIndented`),c3(e,i,n,`linePrefix`,4,4)(t)}function i(t){return t===null?o(t):e3(t)?e.attempt(Fye,i,o)(t):(e.enter(`codeFlowValue`),a(t))}function a(t){return t===null||e3(t)?(e.exit(`codeFlowValue`),i(t)):(e.consume(t),a)}function o(n){return e.exit(`codeIndented`),t(n)}}function Lye(e,t,n){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):e3(o)?(e.enter(`lineEnding`),e.consume(o),e.exit(`lineEnding`),i):c3(e,t,a,`linePrefix`,4,4)(o)}function a(e){return e3(e)?i(e):n(e)}}var Rye={name:`codeText`,previous:Bye,resolve:zye,tokenize:Vye};function zye(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&C3(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),C3(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),C3(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0)){if(e=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function T3(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||Q4(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||e3(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||t3(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):e3(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||e3(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!n3(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function D3(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):e3(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),s3(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||e3(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function O3(e,t){let n;return r;function r(i){return e3(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):n3(i)?s3(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var Yye={name:`definition`,tokenize:Zye},Xye={partial:!0,tokenize:Qye};function Zye(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return E3.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=Y4(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return t3(t)?O3(e,l)(t):l(t)}function l(t){return T3(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(Xye,d,d)(t)}function d(t){return n3(t)?s3(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||e3(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function Qye(e,t,n){return r;function r(t){return t3(t)?O3(e,i)(t):n(t)}function i(t){return D3(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return n3(t)?s3(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||e3(e)?t(e):n(e)}}var $ye={name:`hardBreakEscape`,tokenize:ebe};function ebe(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return e3(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var tbe={name:`headingAtx`,resolve:nbe,tokenize:rbe};function nbe(e,t){let n=e.length-2,r=3;if(e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r){let i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`};W4(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])}return e}function rbe(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||t3(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||e3(n)?(e.exit(`atxHeading`),t(n)):n3(n)?s3(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||t3(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var ibe=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),k3=[`pre`,`script`,`style`,`textarea`],abe={concrete:!0,name:`htmlFlow`,resolveTo:sbe,tokenize:cbe},obe={partial:!0,tokenize:lbe};function sbe(e){let t=e.length;for(;t--&&(e[t][0]!==`enter`||e[t][1].type!==`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function cbe(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:ee):X4(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):X4(a)?(e.consume(a),i=4,r.interrupt?t:ee):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:ee):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return X4(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||t3(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&k3.includes(l)?(i=1,r.interrupt?t(s):O(s)):ibe.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||Z4(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return n3(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||X4(t)?(e.consume(t),b):n3(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||Z4(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):n3(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):n3(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||e3(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||t3(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||n3(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||e3(t)?O(t):n3(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),M):t===60&&i===1?(e.consume(t),N):t===62&&i===4?(e.consume(t),I):t===63&&i===3?(e.consume(t),ee):t===93&&i===5?(e.consume(t),F):e3(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(obe,te,k)(t)):t===null||e3(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(b3,A,te)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||e3(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function M(t){return t===45?(e.consume(t),ee):O(t)}function N(t){return t===47?(e.consume(t),o=``,P):O(t)}function P(t){if(t===62){let n=o.toLowerCase();return k3.includes(n)?(e.consume(t),I):O(t)}return X4(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),P):O(t)}function F(t){return t===93?(e.consume(t),ee):O(t)}function ee(t){return t===62?(e.consume(t),I):t===45&&i===2?(e.consume(t),ee):O(t)}function I(t){return t===null||e3(t)?(e.exit(`htmlFlowData`),te(t)):(e.consume(t),I)}function te(n){return e.exit(`htmlFlow`),t(n)}}function lbe(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(g3,t,n)}}var ube={name:`htmlText`,tokenize:dbe};function dbe(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):X4(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):X4(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):e3(t)?(o=d,N(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?M(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):e3(t)?(o=h,N(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?M(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?M(t):e3(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):e3(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return X4(t)?(e.consume(t),S):n(t)}function S(t){return t===45||Z4(t)?(e.consume(t),S):C(t)}function C(t){return e3(t)?(o=C,N(t)):n3(t)?(e.consume(t),C):M(t)}function w(t){return t===45||Z4(t)?(e.consume(t),w):t===47||t===62||t3(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||X4(t)?(e.consume(t),E):e3(t)?(o=T,N(t)):n3(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||Z4(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):e3(t)?(o=D,N(t)):n3(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):e3(t)?(o=O,N(t)):n3(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,j):t===null?n(t):e3(t)?(o=k,N(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||t3(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||t3(e)?T(e):n(e)}function M(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function N(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),P}function P(t){return n3(t)?s3(e,F,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):F(t)}function F(t){return e.enter(`htmlTextData`),o(t)}}var A3={name:`labelEnd`,resolveAll:hbe,resolveTo:gbe,tokenize:_be},fbe={tokenize:vbe},pbe={tokenize:ybe},mbe={tokenize:bbe};function hbe(e){let t=-1,n=[];for(;++t0&&i[i.length-1]._balanced;)i.pop();a=i[i.length-1]}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(Y4(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(fbe,u,o?u:d)(t):t===91?e.attempt(pbe,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(mbe,u,d)(t)}function u(e){return i.pop(),t(e)}function d(e){return a._balanced=!0,n(e)}}function vbe(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return t3(t)?O3(e,a)(t):a(t)}function a(t){return t===41?u(t):T3(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return t3(t)?O3(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?D3(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return t3(t)?O3(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function ybe(e,t,n){let r=this;return i;function i(t){return E3.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(Y4(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function bbe(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var xbe={name:`labelStartImage`,resolveAll:A3.resolveAll,tokenize:Sbe};function Sbe(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),o}function o(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelImage`),s):n(t)}function s(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var Cbe={name:`labelStartLink`,resolveAll:A3.resolveAll,tokenize:wbe};function wbe(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelLink`),o}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var j3={name:`lineEnding`,tokenize:Tbe};function Tbe(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),s3(e,t,`linePrefix`)}}var M3={name:`thematicBreak`,tokenize:Ebe};function Ebe(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||e3(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),n3(t)?s3(e,s,`whitespace`)(t):s(t))}}var N3={continuation:{tokenize:Abe},exit:Mbe,name:`list`,tokenize:kbe},Dbe={partial:!0,tokenize:Nbe},Obe={partial:!0,tokenize:jbe};function kbe(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:$4(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(M3,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return $4(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(g3,r.interrupt?n:u,e.attempt(Dbe,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return n3(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function Abe(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(g3,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,s3(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!n3(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Obe,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,s3(e,e.attempt(N3,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function jbe(e,t,n){let r=this;return s3(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function Mbe(e){e.exit(this.containerState.type)}function Nbe(e,t,n){let r=this;return s3(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!n3(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var P3={name:`setextUnderline`,resolveTo:Pbe,tokenize:Fbe};function Pbe(e,t){let n=new l3,r=e.length,i,a,o;for(;r--;)if(e[r][0]===`enter`){if(e[r][1].type===`content`){i=r;break}e[r][1].type===`paragraph`&&(a=r)}else e[r][1].type===`content`&&n.add(r,1,[]),!o&&e[r][1].type===`definition`&&(o=r);let s={type:`setextHeading`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type=`setextHeadingText`,o?(n.add(a,0,[[`enter`,s,t]]),n.add(o+1,0,[[`exit`,e[i][1],t]]),e[i][1].end={...e[o][1].end}):e[i][1]=s,n.add(e.length,0,[[`exit`,s,t]]),n.consume(e),e}function Fbe(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),n3(t)?s3(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||e3(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var Ibe={tokenize:Lbe};function Lbe(e){let t=this,n=e.attempt(g3,r,e.attempt(this.parser.constructs.flowInitial,i,s3(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Wye,i)),`linePrefix`)));return n;function r(r){if(r===null)e.consume(r);else return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null)e.consume(r);else return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var Rbe={resolveAll:I3()},zbe=F3(`string`),Bbe=F3(`text`);function F3(e){return{resolveAll:I3(e===`text`?Vbe:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null)t.consume(e);else return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++iXbe,contentInitial:()=>Wbe,disable:()=>Zbe,document:()=>Ube,flow:()=>Kbe,flowInitial:()=>Gbe,insideSpan:()=>Ybe,string:()=>qbe,text:()=>Jbe}),Ube={42:N3,43:N3,45:N3,48:N3,49:N3,50:N3,51:N3,52:N3,53:N3,54:N3,55:N3,56:N3,57:N3,62:_3},Wbe={91:Yye},Gbe={[-2]:S3,[-1]:S3,32:S3},Kbe={35:tbe,42:M3,45:[P3,M3],60:abe,61:P3,95:M3,96:x3,126:x3},qbe={38:y3,92:v3},Jbe={[-5]:j3,[-4]:j3,[-3]:j3,33:xbe,38:y3,42:m3,60:[Tye,ube],91:Cbe,92:[$ye,v3],93:A3,95:m3,96:Rye},Ybe={null:[m3,Rbe]},Xbe={null:[42,95]},Zbe={null:[]};function Qbe(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=G4(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=p3(a,l.events,l),l.events):[]}function f(e,t){return exe(p(e),t)}function p(e){return $be(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){for(;r._index-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function exe(e,t){let n=-1,r=[],i;for(;++n0&&i(t.beforeEnter,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),R3.call(n,e[p][1].type)&&n[e[p][1].type].call({...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),e[p][0]===`exit`&&t.afterExit.length>0&&i(t.afterExit,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||V3).call(o,void 0,e[0])}for(r.position={start:z3(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:z3(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},p=-1;++p0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function mxe(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function hxe(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function gxe(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=o3(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function _xe(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function vxe(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function H3(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function yxe(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return H3(e,t);let i={src:o3(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function bxe(e,t){let n={src:o3(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function xxe(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Sxe(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return H3(e,t);let i={href:o3(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Cxe(e,t){let n={href:o3(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function wxe(e,t,n){let r=e.all(t),i=n?Txe(n):U3(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s1}function Exe(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=C4(t.children[1]),o=S4(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function jxe(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(K3(t.slice(i),i>0,!1)),a.join(``)}function K3(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===W3||t===G3;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===W3||t===G3;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function Pxe(e,t){let n={type:`text`,value:Nxe(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Fxe(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var Ixe={blockquote:dxe,break:fxe,code:pxe,delete:mxe,emphasis:hxe,footnoteReference:gxe,heading:_xe,html:vxe,imageReference:yxe,image:bxe,inlineCode:xxe,linkReference:Sxe,link:Cxe,listItem:wxe,list:Exe,paragraph:Dxe,root:Oxe,strong:kxe,table:Axe,tableCell:Mxe,tableRow:jxe,text:Pxe,thematicBreak:Fxe,toml:q3,yaml:q3,definition:q3,footnoteDefinition:q3};function q3(){}var{defineProperty:Lxe}=Object,J3=typeof self==`object`?self:globalThis,Y3=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new J3[e](t)},Rxe=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o){let i=r(t),a=r(n);i===`__proto__`?Lxe(e,i,{value:a,configurable:!0,enumerable:!0,writable:!0}):e[i]=a}return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(typeof J3[e]==`function`?Y3(e,t):Error(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}case`-0`:return-0}return n(Y3(a,o),i)};return r},X3=e=>Rxe(new Map,e)(0),Z3=``,{toString:zxe}={},{keys:Bxe,is:Vxe}=Object,Q3=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=zxe.call(e).slice(8,-1);switch(n){case`Array`:return[1,Z3];case`Object`:return[2,Z3];case`Date`:return[3,Z3];case`RegExp`:return[4,Z3];case`Map`:return[5,Z3];case`Set`:return[6,Z3];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:e instanceof Error?[7,e.name||`Error`]:[2,n]},$3=([e,t])=>e===0&&(t===`function`||t===`symbol`),Hxe=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=o=>{if(n.has(o))return n.get(o);let[s,c]=Q3(o);switch(s){case 0:{let t=o;switch(c){case`bigint`:s=8,t=o.toString();break;case`number`:if(!o&&Vxe(o,-0))return r.push([`-0`])-1;break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+c);t=null;break;case`undefined`:return i([-1],o)}return i([s,t],o)}case 1:{if(c){let e=o;return c===`DataView`?e=new Uint8Array(o.buffer):c===`ArrayBuffer`&&(e=new Uint8Array(o)),i([c,[...e]],o)}let e=[],t=i([s,e],o);for(let t of o)e.push(a(t));return t}case 2:{if(c)switch(c){case`BigInt`:return i([c,o.toString()],o);case`Boolean`:case`Number`:case`String`:return i([c,o.valueOf()],o)}if(t&&`toJSON`in o)return a(o.toJSON());let n=[],r=i([s,n],o);for(let t of Bxe(o))(e||!$3(Q3(o[t])))&&n.push([a(t),a(o[t])]);return r}case 3:return i([s,isNaN(o.getTime())?Z3:o.toISOString()],o);case 4:{let{source:e,flags:t}=o;return i([s,{source:e,flags:t}],o)}case 5:{let t=[],n=i([s,t],o);for(let[n,r]of o)(e||!($3(Q3(n))||$3(Q3(r))))&&t.push([a(n),a(r)]);return n}case 6:{let t=[],n=i([s,t],o);for(let n of o)(e||!$3(Q3(n)))&&t.push(a(n));return n}}let{message:l}=o;return i([s,{name:c,message:l}],o)};return a},e6=(e,{json:t,lossy:n}={})=>{let r=[];return Hxe(!(t||n),!!t,new Map,r)(e),r},t6=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?X3(e6(e,t)):structuredClone(e):(e,t)=>X3(e6(e,t));function Uxe(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function Wxe(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function Gxe(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||Uxe,r=e.options.footnoteBackLabel||Wxe,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...t6(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:` -`},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:` -`}]}}var n6=(function(e){if(e==null)return Yxe;if(typeof e==`function`)return r6(e);if(typeof e==`object`)return Array.isArray(e)?Kxe(e):qxe(e);if(typeof e==`string`)return Jxe(e);throw Error(`Expected function, string, or object as test`)});function Kxe(e){let t=[],n=-1;for(;++n`:``))+`)`})}return o;function o(){let r=!a||l(e,t,n[n.length-1]||void 0),o=i6;if(s&&r&&(o=o6(s(e,n,t)),o[0]===!1))return o;if(`children`in e&&e.children){let t=e;if(t.children&&o[0]!==`skip`){let e=(i?-1:t.children.length)+u,r=[...n,t];for(;e>-1&&e0&&n.push({type:`text`,value:` -`}),n}function u6(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function d6(e,t){let n=tSe(e,t),r=n.one(e,void 0),i=Gxe(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:` -`},i)),a}function oSe(e,t){return e&&`run`in e?async function(n,r){let i=d6(n,{file:r,...t});await e.run(i,r)}:function(n,r){return d6(n,{file:r,...e||t})}}function f6(e){if(e)throw e}var sSe=o(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});ft.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var m6={basename:uSe,dirname:dSe,extname:fSe,join:pSe,sep:`/`};function uSe(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);h6(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function dSe(e){if(h6(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function fSe(e){h6(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}}else n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function pSe(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function hSe(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1}i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function h6(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var gSe={cwd:_Se};function _Se(){return`/`}function g6(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function vSe(e){if(typeof e==`string`)e=new URL(e);else if(!g6(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return ySe(e)}function ySe(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n0){let[r,...a]=t,o=n[i][1];p6(o)&&p6(r)&&(r=(0,S6.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function C6(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function w6(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function T6(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function E6(e){if(!p6(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function D6(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function O6(e){return wSe(e)?e:new v6(e)}function wSe(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function TSe(e){return typeof e==`string`||ESe(e)}function ESe(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var k6=[],A6={allowDangerousHtml:!0},DSe=/^(https?|ircs?|mailto|xmpp)$/i,OSe=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function kSe(e){let t=ASe(e),n=jSe(e);return MSe(t.runSync(t.parse(n),n),e)}function ASe(e){let t=e.rehypePlugins||k6,n=e.remarkPlugins||k6,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...A6}:A6;return CSe().use(uxe).use(n).use(oSe,r).use(t)}function jSe(e){let t=e.children||``,n=new v6;return typeof t==`string`?n.value=t:``+t,n}function MSe(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||NSe;for(let e of OSe)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return s6(e,l),Yve(e,{Fragment:H.Fragment,components:i,ignoreInvalidStyle:!0,jsx:H.jsx,jsxs:H.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in R4)if(Object.hasOwn(R4,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=R4[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function NSe(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||DSe.test(e.slice(0,t))?e:``}function j6(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function PSe(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function FSe(e,t,n){let r=n6((n||{}).ignore||[]),i=ISe(t),a=-1;for(;++a0?{type:`text`,value:i}:void 0),i===!1)o.lastIndex=n+1;else{if(c!==n&&f({type:`text`,value:e.value.slice(c,n)}),Array.isArray(i))for(let e of i)f(e);else i&&f(i);c=n+d[0].length,l=!0}if(!o.global)break;d=o.exec(e.value)}return l?(c?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=j6(e,`(`),a=j6(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function F6(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||i3(n)||r3(n))&&(!t||n!==47)}I6.peek=aCe;function ZSe(){this.buffer()}function QSe(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function $Se(){this.buffer()}function eCe(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function tCe(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Y4(this.sliceSerialize(e)).toLowerCase(),n.label=t}function nCe(e){this.exit(e)}function rCe(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Y4(this.sliceSerialize(e)).toLowerCase(),n.label=t}function iCe(e){this.exit(e)}function aCe(){return`[`}function I6(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function oCe(){return{enter:{gfmFootnoteCallString:ZSe,gfmFootnoteCall:QSe,gfmFootnoteDefinitionLabelString:$Se,gfmFootnoteDefinition:eCe},exit:{gfmFootnoteCallString:tCe,gfmFootnoteCall:nCe,gfmFootnoteDefinitionLabelString:rCe,gfmFootnoteDefinition:iCe}}}function sCe(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:I6},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?` -`:` `)+r.indentLines(r.containerFlow(e,a.current()),t?L6:cCe))),s(),o}}function cCe(e,t,n){return t===0?e:L6(e,t,n)}function L6(e,t,n){return(n?``:` `)+e}var lCe=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];R6.attention=mCe,R6.peek=hCe;function uCe(){return{canContainEols:[`delete`],enter:{strikethrough:fCe},exit:{strikethrough:pCe}}}function dCe(){return{handlers:{delete:R6},unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:lCe}]}}function fCe(e){this.enter({type:`delete`,children:[],position:void 0},e)}function pCe(e){this.exit(e)}function R6(e,t,n,r){let i=n.createTracker(r),a=n.stack.includes(`strikethrough`)?`~`:`~~`,o=n.enter(`strikethrough`),s=i.move(a);return s+=n.containerPhrasing(e,{...i.current(),before:s,after:`~`}),s+=i.move(a),o(),s}function mCe(){return{construct:`strikethrough`,markers:[`~`],sizes:[2,1]}}function hCe(){return`~`}function gCe(e){return e.length}function _Ce(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||gCe,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++ul&&(l=e[u].length);++ac[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++dc[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),xCe);return i(),o}function xCe(e,t,n){return`>`+(n?``:` `)+e}function SCe(e,t){return B6(e,t.inConstruct,!0)&&!B6(e,t.notInConstruct,!1)}function B6(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++ro&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function wCe(e,t){return!(t.options.fences!==!1||!e.value||e.lang||!/[^\n\r ]/.test(e.value)||/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(e.value))}function TCe(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function ECe(e,t,n,r){let i=TCe(n),a=e.value||``;if(wCe(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,DCe);return e(),t}let o=n.createTracker(r),s=i.repeat(Math.max(CCe(a,i)+1,3)),c=n.enter(`codeFenced`),l=i==="`"?`GraveAccent`:`Tilde`,u=o.move(s);if(e.lang){let t=n.enter(`codeFencedLang${l}`);u+=o.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...o.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${l}`);u+=o.move(` `),u+=o.move(n.safe(e.meta,{before:u,after:` -`,encode:["`"],...o.current()})),t()}return u+=o.move(` -`),a&&(u+=o.move(a+` -`)),u+=o.move(s),c(),u}function DCe(e,t,n){return(n?``:` `)+e}function H6(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function OCe(e,t,n,r){let i=H6(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:` -`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function kCe(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}U6.attention=ACe,U6.peek=jCe;function U6(e,t,n,r){let i=n.enter(`phrasing`),a=n.containerPhrasing({type:`root`,children:[e]},r);return i(),a}function ACe(e,t){return{construct:`emphasis`,markers:kCe(t)===`*`?[`*`,`_`]:[`_`,`*`],sizes:[1]}}function jCe(e,t,n){return n.options.emphasis||`*`}function MCe(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function NCe(e,t){let n=!1;return s6(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&z4(e)&&(t.options.setext||n))}function PCe(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(NCe(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:` -`,after:` -`});return r(),t(),o+` -`+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(` -`))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:` -`,...a.current()}),u=l.charCodeAt(0);return(u===9||u===32)&&(l=MCe(u)+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}W6.peek=FCe;function W6(e){return e.value||``}function FCe(){return`<`}G6.peek=ICe;function G6(e,t,n,r){let i=H6(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function ICe(){return`!`}K6.peek=LCe;function K6(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=u.filter(function(e){return e!==`phrasing`}),o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function LCe(){return`!`}q6.peek=RCe;function q6(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^\n\r ]/.test(r)&&(/^[\n\r ]/.test(r)&&/[\n\r ]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a\u007F]/.test(e.url))}Y6.peek=zCe;function Y6(e,t,n,r){let i=H6(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r);if(J6(e,n)){let t=n.stack;n.stack=t.filter(function(e){return e!==`phrasing`});let r=n.enter(`autolink`),i=o.move(`<`);return i+=o.move(n.containerPhrasing(e,{before:i,after:`>`,...o.current()})),i+=o.move(`>`),r(),n.stack=t,i}let s=n.enter(`link`),c=n.enter(`label`),l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function zCe(e,t,n){return J6(e,n)?`<`:`[`}X6.peek=BCe;function X6(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=u.filter(function(e){return e!==`phrasing`}),o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function BCe(){return`[`}function Z6(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function VCe(e){let t=Z6(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function HCe(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Q6(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function UCe(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?HCe(n):Z6(n),s=e.ordered?o===`.`?`)`:`.`:VCe(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if(o!==`*`&&o!==`-`||!t||t.children&&t.children[0]||n.stack[n.stack.length-1]!==`list`||n.stack[n.stack.length-2]!==`listItem`||n.stack[n.stack.length-3]!==`list`||n.stack[n.stack.length-4]!==`listItem`||n.indexStack[n.indexStack.length-1]!==0||n.indexStack[n.indexStack.length-2]!==0||n.indexStack[n.indexStack.length-3]!==0||(c=!0),Q6(n)===o&&t){let t=-1;for(;++t-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function KCe(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}function qCe(e,t,n,r){if(!e.children.some(function(e){return yCe(e)}))return n.containerFlow(e,r);let i=n.enter(`phrasing`),a=n.containerPhrasing(e,r);return i(),a}function JCe(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}$6.attention=YCe,$6.peek=XCe;function $6(e,t,n,r){let i=n.enter(`phrasing`),a=n.containerPhrasing({type:`root`,children:[e]},r);return i(),a}function YCe(e,t){return{construct:`strong`,markers:JCe(t)===`*`?[`*`,`_`]:[`_`,`*`],sizes:[2]}}function XCe(e,t,n){return n.options.strong||`*`}function ZCe(e,t,n,r){let i=t?t.children:[],a=i.indexOf(e);return n.safe(e.value,{...r,afterNode:i[a+1],beforeNode:i[a-1]})}function QCe(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function $Ce(e,t,n){let r=(Q6(n)+(n.options.ruleSpaces?` `:``)).repeat(QCe(n));return n.options.ruleSpaces?r.slice(0,-1):r}var e8={blockquote:bCe,break:V6,code:ECe,definition:OCe,emphasis:U6,hardBreak:V6,heading:PCe,html:W6,image:G6,imageReference:K6,inlineCode:q6,link:Y6,linkReference:X6,list:UCe,listItem:GCe,paragraph:KCe,root:qCe,strong:$6,text:ZCe,thematicBreak:$Ce};function ewe(){return{enter:{table:twe,tableData:n8,tableHeader:n8,tableRow:rwe},exit:{codeText:iwe,table:nwe,tableData:t8,tableHeader:t8,tableRow:t8}}}function twe(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function nwe(e){this.exit(e),this.data.inTable=void 0}function rwe(e){this.enter({type:`tableRow`,children:[]},e)}function t8(e){this.exit(e)}function n8(e){this.enter({type:`tableCell`,children:[]},e)}function iwe(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,awe));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function awe(e,t){return t===`|`?t:e}function owe(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:` -`,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(` -`))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return _Ce(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var wwe={tokenize:Mwe,partial:!0};function Twe(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:kwe,continuation:{tokenize:Awe},exit:jwe}},text:{91:{name:`gfmFootnoteCall`,tokenize:Owe},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:Ewe,resolveTo:Dwe}}}}function Ewe(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=Y4(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function Dwe(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function Owe(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||t3(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(Y4(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return t3(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function kwe(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||t3(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=Y4(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return t3(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),s3(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function Awe(e,t,n){return e.check(g3,t,e.attempt(wwe,t,n))}function jwe(e){e.exit(`gfmFootnoteDefinition`)}function Mwe(e,t,n){let r=this;return s3(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function Nwe(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=f3(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var Pwe=class{constructor(){this.map=[],this.index=new Map}add(e,t,n){Fwe(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function Fwe(e,t,n,r){if(n===0&&r.length===0)return;let i=e.index.get(t);if(i){i[1]+=n,i[2].push(...r);return}let a=[t,n,r];e.map.push(a),e.index.set(t,a)}function Iwe(e,t){let n=!1,r=[];for(;t-1;){let{type:e}=r.events[t][1];if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124||(o=!0,a+=1),u(e)}function u(t){return t===null?n(t):e3(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):n3(t)?s3(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||t3(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,n3(t)?s3(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return n3(t)?s3(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||e3(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return n3(t)?s3(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||e3(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||e3(n)?(e.exit(`tableRow`),t(n)):n3(n)?s3(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||t3(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function zwe(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new Pwe;for(;++nn[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},y8(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function v8(e,t,n,r,i){let a=[],o=y8(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function y8(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var Bwe={name:`tasklistCheck`,tokenize:Hwe};function Vwe(){return{text:{91:Bwe}}}function Hwe(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return t3(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return e3(r)?t(r):n3(r)?e.check({tokenize:Uwe},t,n)(r):n(r)}}function Uwe(e,t,n){return s3(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function Wwe(e){return q4([hwe(),Twe(),Nwe(e),Lwe(),Vwe()])}var Gwe={};function Kwe(e){let t=this,n=e||Gwe,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(Wwe(n)),a.push(dwe()),o.push(fwe(n))}function qwe({items:e,format:t,label:n,max:r,onSelect:i,ranked:a}){let o=r??Math.max(0,...e.map(e=>e.value));return(0,H.jsx)(o_,{gap:4,role:`list`,"aria-label":n,children:e.map((e,n)=>{let r=o>0?`${Math.max(0,Math.min(100,e.value/o*100))}%`:`0%`,s=(0,H.jsxs)(K,{gap:`sm`,wrap:`nowrap`,align:`center`,className:i?`w-row`:void 0,"data-clickable":i?``:void 0,style:{borderRadius:`var(--mantine-radius-sm)`},children:[(0,H.jsxs)(G,{pos:`relative`,style:{flex:1,minWidth:0,height:28},children:[(0,H.jsx)(G,{"aria-hidden":!0,className:`w-bar`,pos:`absolute`,top:0,left:0,h:`100%`,w:r,style:{borderRadius:`var(--mantine-radius-sm)`,transition:`width 300ms ease-out`}}),(0,H.jsxs)(K,{pos:`relative`,gap:8,h:28,px:8,wrap:`nowrap`,style:{minWidth:0},children:[a&&(0,H.jsx)(q,{size:`xs`,ff:`monospace`,c:`dimmed`,w:16,style:{flex:`none`},children:n+1}),(0,H.jsx)(q,{size:`sm`,fw:500,truncate:!0,title:e.label,style:{minWidth:0},children:e.label}),e.sub&&(0,H.jsx)(q,{size:`xs`,c:`dimmed`,truncate:!0,title:e.sub,style:{minWidth:0,flex:`0 1 auto`},children:e.sub})]})]}),(0,H.jsx)(q,{size:`sm`,ff:`monospace`,ta:`right`,style:{flex:`none`,minWidth:64,whiteSpace:`nowrap`},children:t(e.value)})]});return(0,H.jsx)(G,{role:`listitem`,children:i?(0,H.jsx)($c,{w:`100%`,onClick:()=>i(e.id),children:s}):s},e.id)})})}var Jwe={empty:{color:`gray`,icon:Xte},"all-clear":{color:`success`,icon:Dv},error:{color:`danger`,icon:Qte}};function Ywe(e){return new Date(e).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`})}function Xwe(e){let t=/^(.+?[.!?])\s+(.+)$/s.exec(e.trim());return t?{title:t[1],caption:t[2]}:{title:e.trim()}}function b8({kind:e=`empty`,title:t,caption:n,checkedAt:r,onRetry:i,command:a,action:o}){let{color:s,icon:c}=Jwe[e];return(0,H.jsxs)(K,{mih:56,px:`sm`,py:6,gap:`sm`,wrap:`nowrap`,role:e===`error`?`alert`:`status`,children:[(0,H.jsx)(E_,{variant:`light`,color:s,radius:`xl`,size:28,"aria-hidden":!0,styles:{root:{background:`var(--driga-tint-${e===`empty`?`neutral`:s})`}},children:(0,H.jsx)(c,{size:16})}),(0,H.jsxs)(o_,{gap:2,style:{flex:1,minWidth:0},children:[(0,H.jsx)(q,{size:`md`,fw:500,lh:1.2,children:t}),(n||r||a)&&(0,H.jsxs)(K,{gap:6,wrap:`wrap`,children:[n&&(0,H.jsx)(q,{size:`xs`,c:`dimmed`,lh:1.3,children:n}),r&&(0,H.jsxs)(q,{size:`xs`,c:`dimmed`,ff:`monospace`,lh:1.3,title:A1(r),children:[n?`· `:``,`checked `,Ywe(r)]}),a&&(0,H.jsx)(q,{size:`xs`,ff:`monospace`,className:`w-inset`,lh:1.3,style:{display:`inline-block`},children:a})]})]}),i&&(0,H.jsx)(km,{size:`compact-xs`,variant:`subtle`,color:`gray`,leftSection:(0,H.jsx)(Bte,{size:12}),onClick:i,style:{flex:`none`},children:`Retry`}),o&&(0,H.jsx)(km,{size:`compact-xs`,variant:`subtle`,onClick:o.onClick,style:{flex:`none`},children:o.label})]})}var x8=[],Zwe=[`1h`,`6h`,`24h`];function Qwe({id:e,title:t,info:n,caption:r,range:i,onRange:a,series:o=x8,from:s=0,to:c=0,unit:l,waits:u,events:d,peak:f,option:p,state:m=`ready`,message:g,onRetry:_,actions:v,children:y,height:b=200,headingOrder:x=3,headerClassName:S}){let C=(0,h.useId)(),w=e?`panel-${e}`:C,T=(0,h.useCallback)(e=>j1(e,l),[l]),E=n?`${t}: ${n}`:t,D=m===`empty`?x8:o,O=(0,h.useCallback)(e=>p?p(e):she({series:D,from:s,to:c,unit:l,format:T,waits:u,events:d,peak:f,label:E},e),[p,D,s,c,l,T,u,d,f,E]),k=b===`fill`,A=k?void 0:b,j;j=y||(m===`loading`?(0,H.jsx)(G,{role:`img`,"aria-label":`Loading chart`,style:k?{flex:1}:void 0,children:(0,H.jsx)(r_,{h:A??`100%`,radius:`sm`})}):m===`error`?(0,H.jsx)(G,{h:A,style:{display:`flex`,alignItems:`center`,flex:k?1:void 0},children:(0,H.jsx)(b8,{kind:`error`,title:g??`This chart could not load.`,caption:`The last reading is not shown; it could be stale.`,onRetry:_})}):(0,H.jsxs)(G,{pos:`relative`,h:A,style:k?{flex:1,minHeight:0}:void 0,children:[(0,H.jsx)(V1,{option:O,label:E,height:k?`100%`:b}),m===`empty`&&(0,H.jsx)(q,{size:`xs`,c:`dimmed`,pos:`absolute`,top:`50%`,left:`50%`,style:{transform:`translate(-50%, -50%)`,whiteSpace:`nowrap`},children:g??(i?`no samples in the last ${i}`:`no samples`)})]}));let M=v&&(v.table||v.ask||v.remove);return(0,H.jsxs)(Im,{component:`article`,"aria-labelledby":w,h:k?`100%`:void 0,style:{display:`flex`,flexDirection:`column`,minHeight:0,gap:6},children:[(0,H.jsxs)(K,{justify:`space-between`,wrap:`nowrap`,gap:`sm`,className:S,style:{flex:`none`},children:[(0,H.jsxs)(K,{gap:6,wrap:`nowrap`,style:{minWidth:0},children:[(0,H.jsx)(k_,{order:x,id:w,fz:`md`,fw:600,lh:1.2,lineClamp:1,title:t,style:{letterSpacing:`-0.01em`,flex:`0 1 auto`},children:t}),n&&(0,H.jsx)(Bg,{label:n,multiline:!0,maw:320,children:(0,H.jsx)(lu,{size:`xs`,"aria-label":`About ${t}`,children:(0,H.jsx)(ly,{size:14})})}),r&&(0,H.jsx)(q,{size:`xs`,c:`dimmed`,ff:`monospace`,truncate:!0,title:r,style:{minWidth:0},visibleFrom:`sm`,children:r})]}),(0,H.jsxs)(K,{gap:4,wrap:`nowrap`,style:{flex:`none`},children:[i&&a&&(0,H.jsx)(qg,{size:`xs`,value:i,onChange:e=>a(e),data:Zwe,"aria-label":`${t} range`,styles:{label:{fontFamily:`var(--mantine-font-family-monospace)`,paddingInline:8}}}),M&&(0,H.jsxs)(ng,{position:`bottom-end`,withinPortal:!0,shadow:`md`,width:180,children:[(0,H.jsx)(ng.Target,{children:(0,H.jsx)(lu,{size:`sm`,"aria-label":`More for ${t}`,children:(0,H.jsx)(Vv,{size:18})})}),(0,H.jsxs)(ng.Dropdown,{children:[v.table&&(0,H.jsx)(ng.Item,{leftSection:y?(0,H.jsx)(Ute,{}):(0,H.jsx)(Yte,{}),onClick:v.table,children:y?`Show as chart`:`Show as table`}),v.ask&&(0,H.jsx)(ng.Item,{leftSection:(0,H.jsx)(Cv,{}),onClick:v.ask,children:`Ask Chat about it`}),v.remove&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(ng.Divider,{}),(0,H.jsx)(ng.Item,{color:`danger`,leftSection:(0,H.jsx)(jy,{}),onClick:v.remove,children:`Remove`})]})]})]})]})]}),(0,H.jsx)(G,{style:{flex:1,minHeight:0,display:`flex`,flexDirection:`column`},children:j})]})}var $we={permission:`warning`,question:`warning`,waiting:`warning`,stuck:`danger`,finished:`info`,machine:`warning`},eTe={permission:`Approve`,question:`Answer`,waiting:`Reply`,finished:`Mark reviewed`,stuck:null,machine:`Reclaim`};function tTe(e){let t=Math.max(0,Math.round(e/1e3));return t<60?`${t}s`:t<3600?`${Math.floor(t/60)}m ${t%60}s`:O1(e)}function nTe(e,t){switch(e.kind){case`permission`:return`needs approval`;case`question`:return`asks a question`;case`waiting`:return`waits on you`;case`finished`:return e.turns&&e.turns>1?`finished · ${e.turns} turns`:`finished`;case`stuck`:return`quiet ${O1(t-Date.parse(e.since??e.at))}${e.quietExpected?`, expected ${O1(e.quietExpected)}`:``}`;case`machine`:return`machine`}}function S8({entry:e,selected:t,onApprove:n,onDeny:r,onOpen:i,onDismiss:a,armed:o=!0}){let s=Date.now(),c=$we[e.kind],l=eTe[e.kind],u=e.since?tTe(s-Date.parse(e.since)):null,d=[e.project,e.branch,e.machine].filter(Boolean).join(` · `),f=()=>i?.(e),p=t=>{t.target===t.currentTarget&&(t.key===`Enter`||t.key===`o`?(t.preventDefault(),f()):t.key===`a`&&l&&n&&o?(t.preventDefault(),n(e)):t.key===`x`&&a&&(t.preventDefault(),a(e)))},m=e=>{e.target.closest(`button, a`)||f()},h=(e,t)=>(0,H.jsxs)(K,{gap:6,wrap:`nowrap`,children:[e,(0,H.jsx)(yh,{size:`xs`,children:t})]}),g=t=>(0,H.jsxs)(H.Fragment,{children:[t,(0,H.jsxs)(tl,{children:[` · `,e.title]})]});return(0,H.jsx)(G,{className:`w-row`,"data-kind":e.kind,"data-clickable":i?``:void 0,"data-selected":t?`true`:void 0,tabIndex:i?0:void 0,onClick:i?m:void 0,onKeyDown:i?p:void 0,px:`sm`,py:8,style:{borderLeft:`3px solid var(--mantine-color-${c}-filled)`,borderRadius:`var(--mantine-radius-sm)`,background:`var(--driga-raised)`},children:(0,H.jsxs)(K,{gap:`sm`,wrap:`wrap`,align:`flex-start`,children:[(0,H.jsx)(G,{pt:2,style:{flex:`none`},children:e.kind===`machine`||!e.agent?(0,H.jsx)(G,{role:`img`,"aria-label":e.machine?`machine ${e.machine}`:`machine`,style:{width:20,height:20,borderRadius:`50%`,background:`var(--driga-inset)`,display:`grid`,placeItems:`center`,color:`var(--driga-muted)`},children:(0,H.jsx)(Fv,{size:12})}):(0,H.jsx)(b0,{agent:e.agent,waiting:e.kind===`permission`||e.kind===`question`||e.kind===`waiting`})}),(0,H.jsxs)(o_,{gap:4,style:{flex:`1 1 220px`,minWidth:0},children:[(0,H.jsxs)(K,{gap:6,wrap:`nowrap`,align:`baseline`,style:{minWidth:0},children:[(0,H.jsx)(q,{size:`md`,fw:500,lh:1.2,truncate:!0,title:e.title,style:{minWidth:0,flex:`0 1 auto`},children:e.title}),(0,H.jsx)(q,{size:`xs`,c:`dimmed`,lh:1.2,style:{whiteSpace:`nowrap`,flex:`none`},children:nTe(e,s)})]}),e.reason&&(0,H.jsx)(q,{size:`xs`,ff:e.kind===`question`||e.kind===`machine`?void 0:`monospace`,className:`w-inset`,lh:1.4,truncate:!0,title:e.reason,style:{display:`block`,maxWidth:`100%`,alignSelf:`flex-start`},children:e.reason}),d&&(0,H.jsx)(q,{size:`xs`,c:`dimmed`,ff:`monospace`,lh:1.2,truncate:!0,title:d,children:d}),e.review&&(0,H.jsxs)(K,{gap:6,wrap:`wrap`,children:[e.review.files>0&&(0,H.jsx)(q,{size:`xs`,c:`dimmed`,lh:1.2,style:{whiteSpace:`nowrap`},children:N1(e.review.files,`file`)}),!e.review.files&&!e.review.uncommitted&&!e.review.unpushed&&(e.review.checkout?(0,H.jsx)(Bg,{label:(0,H.jsx)(q,{size:`xs`,ff:`monospace`,children:e.review.checkout}),children:(0,H.jsx)(`span`,{className:`w-chip`,"data-tone":`neutral`,children:`clean`})}):(0,H.jsx)(q,{size:`xs`,c:`dimmed`,lh:1.2,style:{whiteSpace:`nowrap`},children:`no checkout`})),e.review.uncommitted>0&&(0,H.jsxs)(`span`,{className:`w-chip`,"data-tone":`warning`,children:[(0,H.jsx)(G,{"aria-hidden":!0,style:{width:5,height:5,borderRadius:`50%`,background:`var(--mantine-color-warning-filled)`}}),e.review.uncommitted,` uncommitted`]}),e.review.unpushed>0&&(0,H.jsxs)(`span`,{className:`w-chip`,"data-tone":`neutral`,children:[e.review.unpushed,` unpushed`]})]})]}),(0,H.jsxs)(o_,{gap:2,align:`flex-end`,w:96,style:{flex:`none`},children:[(0,H.jsx)(q,{size:`xs`,ff:`monospace`,lh:1.2,title:A1(e.at),style:{whiteSpace:`nowrap`},children:k1(e.at,s)}),u&&(0,H.jsxs)(K,{gap:4,wrap:`nowrap`,children:[(0,H.jsx)(G,{"aria-hidden":!0,className:e.kind===`permission`||e.kind===`question`||e.kind===`waiting`?`w-pulse`:void 0,style:{width:6,height:6,borderRadius:`50%`,background:`var(--mantine-color-${c}-filled)`,flex:`none`}}),(0,H.jsxs)(q,{size:`xs`,ff:`monospace`,lh:1.2,style:{whiteSpace:`nowrap`},children:[e.kind===`stuck`?`quiet`:`waiting`,` `,u]})]})]}),(n||r||i||a)&&(0,H.jsxs)(K,{gap:4,wrap:`nowrap`,className:`w-actions`,style:{flex:`none`},children:[l&&n&&(0,H.jsx)(Bg,{label:h(l,`a`),children:(0,H.jsx)(km,{size:`compact-xs`,variant:`light`,disabled:!o,onClick:()=>n(e),children:g(l)})}),e.kind===`permission`&&r&&(0,H.jsx)(km,{size:`compact-xs`,variant:`default`,disabled:!o,onClick:()=>r(e),children:g(`Deny`)}),i&&(0,H.jsx)(Bg,{label:h(`Open`,`o`),children:(0,H.jsx)(km,{size:`compact-xs`,variant:`subtle`,color:`gray`,onClick:f,children:g(`Open`)})}),a&&(0,H.jsx)(Bg,{label:h(`Dismiss`,`x`),children:(0,H.jsx)(lu,{size:`sm`,variant:`subtle`,color:`gray`,"aria-label":`Dismiss ${e.title}`,onClick:()=>a(e),children:(0,H.jsx)(Iy,{size:14})})})]})]})})}var rTe=[`working`,`waiting`,`stuck`,`idle`];function iTe(e){return e.map(e=>{let t=[];for(let n of[...e.segments].sort((e,t)=>e.from-t.from)){let e=t[t.length-1];e&&e.state===n.state&&e.to>=n.from?e.to=Math.max(e.to,n.to):t.push({...n})}return{...e,segments:t}})}function aTe({lanes:e,from:t,to:n,now:r,label:i,laneHeight:a=26,onSelect:o}){let s=(0,h.useMemo)(()=>iTe(e),[e]),c=(0,h.useCallback)(e=>lhe({lanes:s,from:t,to:n,now:r,label:i},e),[s,t,n,r,i]),l=(0,h.useCallback)((e,t)=>{let n=Array.isArray(t.value)?s[Number(t.value[0])]:void 0;n&&o?.(n.id)},[s,o]);return(0,H.jsxs)(o_,{gap:6,children:[(0,H.jsx)(V1,{option:c,label:i,height:s.length*a+36,onEvent:o?l:void 0}),(0,H.jsx)(K,{gap:`md`,"aria-hidden":!0,children:rTe.map(e=>(0,H.jsx)(l0,{state:e},e))})]})}var oTe={jump:uv,open:uv,ack:Tv,stop:Jte,kill:$te,force_kill:py,cleanup:jy,summarize:Cy},sTe=new Set([`stop`,`kill`,`force_kill`,`cleanup`]);function C8(e){return e.find(e=>e===`jump`||e===`open`)}function w8(e,t,n){let r=C8(e);if(!n||!r)return{};let i=()=>void n({kind:r,row:t});return{title:L0(r),className:`row-act`,onClick:e=>{e.target.closest(`button, a, [role=menu]`)||i()}}}function T8({kinds:e,row:t,act:n,label:r}){if(e.length===0)return null;let i=C8(e),a=e.filter(e=>e!==i),o=e=>{let r=oTe[e];return(0,H.jsx)(ng.Item,{color:sTe.has(e)?`danger`:void 0,leftSection:(0,H.jsx)(r,{}),onClick:()=>void n({kind:e,row:t}),children:L0(e)},e)};return(0,H.jsxs)(ng,{position:`bottom-end`,withinPortal:!0,shadow:`md`,width:180,children:[(0,H.jsx)(ng.Target,{children:(0,H.jsx)(lu,{className:`row-menu`,style:{flex:`none`},"aria-label":`Actions for ${r}`,onClick:e=>e.stopPropagation(),children:(0,H.jsx)(Vv,{size:18})})}),(0,H.jsxs)(ng.Dropdown,{children:[i&&o(i),i&&a.length>0&&(0,H.jsx)(ng.Divider,{}),a.map(o)]})]})}var cTe={s:120,m:240,l:420};function lTe(e){let t=e.viz===`stat`||e.viz===`gauge`?`s`:e.viz===`inbox`?`l`:`m`;return cTe[e.height??t]}function E8({panel:e,result:t,act:n,fill:r}){let i=I0(),a=n??i.act,o=r?0:lTe(e),s=t?.title||e.title;if(e.viz===`timeseries`)return(0,H.jsx)(dTe,{panel:e,result:t,fill:r,height:o,title:s});let c;c=e.viz===`text`?(0,H.jsx)(Yc,{style:{flex:1},type:`auto`,viewportProps:k8,children:(0,H.jsx)(q,{component:`div`,size:`sm`,className:`markdown`,children:(0,H.jsx)(kSe,{remarkPlugins:[Kwe],components:{img:()=>null},children:e.content??``})})}):t?t.status===`error`?(0,H.jsx)(b8,{kind:`error`,title:t.message??`This panel could not run.`}):e.viz===`inbox`&&(i.prompts?.length||i.bursts?.length||i.grantHistory?.length||i.inboxFilter)?(0,H.jsx)(j8,{frame:t.frame??{columns:[],rows:[]},act:a,prompts:i.prompts,answer:i.answer,filter:i.inboxFilter}):!t.frame||t.status===`empty`?(0,H.jsx)(uTe,{panel:e,message:t.message}):(0,H.jsx)(pTe,{panel:e,result:t,frame:t.frame,act:a,filter:i.inboxFilter}):(0,H.jsx)(q,{size:`sm`,c:`dimmed`,children:`Loading…`});let l=e.viz===`bar`&&t?.frame?B1(t.frame,e):``;return(0,H.jsxs)(Im,{component:`article`,"aria-labelledby":`panel-${e.id}`,h:r?`100%`:void 0,style:{display:`flex`,flexDirection:`column`,minHeight:0},children:[(0,H.jsxs)(K,{gap:6,wrap:`nowrap`,mb:6,className:`panel-handle`,children:[(0,H.jsx)(k_,{order:2,id:`panel-${e.id}`,fz:`md`,fw:600,lineClamp:1,style:{letterSpacing:`-0.01em`,flex:`0 1 auto`,maxWidth:`75%`},title:s,children:s}),e.viz===`inbox`&&i.inboxFilter&&(0,H.jsxs)(Cg,{withRemoveButton:!0,onRemove:i.clearInboxFilter,removeButtonProps:{"aria-label":`Clear inbox filter`},children:[`Showing: `,{waiting:`Need you`,review:`To review`,stuck:`Stuck`}[i.inboxFilter]]}),e.description&&(0,H.jsx)(Bg,{label:e.description,multiline:!0,maw:320,children:(0,H.jsx)(lu,{size:`xs`,"aria-label":`About ${e.title}`,children:(0,H.jsx)(ly,{size:14})})}),l&&(0,H.jsx)(q,{size:`xs`,c:`dimmed`,truncate:!0,ml:`auto`,ta:`right`,style:{flex:`1 1 0`,minWidth:0},title:l,children:l})]}),(0,H.jsx)(G,{style:{flex:1,minHeight:r?0:Math.min(o,120),display:`flex`,flexDirection:`column`},children:c})]})}function uTe({panel:e,message:t}){let{title:n,caption:r}=Xwe(t??(e.viz===`inbox`?`Nothing needs you right now.`:`Nothing matches right now.`));return(0,H.jsx)(b8,{kind:e.viz===`inbox`?`all-clear`:`empty`,title:n,caption:r})}function dTe({panel:e,result:t,fill:n,height:r,title:i}){let a=I0(),[o,s]=(0,h.useState)(!1),c=t?.frame,l=(0,h.useMemo)(()=>c?ehe(c,e):[],[c,e]),u=(0,h.useMemo)(()=>l.map((e,t)=>({name:e.name,points:e.points,color:t})),[l]),d=l.flatMap(e=>e.points.map(e=>e[0])),f=c?.columns[2]?.unit,p=t?t.status===`error`?`error`:l.length?`ready`:`empty`:`loading`,m=p===`error`?t?.message??`This panel could not run.`:p===`empty`?t?.message??`Nothing matches right now.`:void 0;return(0,H.jsx)(Qwe,{id:e.id,title:i,info:e.description,caption:c&&p===`ready`?B1(c,e):void 0,series:u,from:d.length?Math.min(...d):0,to:d.length?Math.max(...d):0,unit:f,state:p,message:m,actions:{table:p===`ready`?()=>s(e=>!e):void 0,ask:a.ask?()=>a.ask(`Tell me about "${i}" right now.`):void 0},height:n?`fill`:r-48,headingOrder:2,headerClassName:`panel-handle`,children:o&&c?(0,H.jsx)(D8,{frame:fTe(c,e),source:e.source}):void 0})}function fTe(e,t){if(t.viz!==`timeseries`)return e;let n=new Set(e.rows.map(e=>e[1])).size>1,r=n?e.columns:[e.columns[0],e.columns[2]],i=[...e.rows].reverse().map(e=>n?e:[e[0],e[2]]);return{columns:r.map(e=>e.name===`value`?{...e,name:t.measure?.split(`:`).pop()||`value`}:e.name===`ts`?{...e,name:`time`}:e),rows:i}}function pTe({panel:e,result:t,frame:n,act:r,filter:i}){switch(e.viz){case`stat`:return(0,H.jsx)(mTe,{frame:n,trend:t.trend,title:e.title,total:t.total,caption:t.caption});case`gauge`:return(0,H.jsx)(hTe,{frame:n,max:e.max,title:e.title});case`bar`:return(0,H.jsx)(gTe,{frame:n,title:e.title});case`inbox`:return(0,H.jsx)(j8,{frame:n,act:r,filter:i});case`list`:return(0,H.jsx)(bTe,{frame:n,source:e.source,act:r});case`cards`:return(0,H.jsx)(xTe,{frame:n,source:e.source,act:r});case`timeline`:return(0,H.jsx)(CTe,{frame:n,act:r,title:e.title});default:return(0,H.jsx)(D8,{frame:n,source:e.source,act:r})}}function mTe({frame:e,trend:t,title:n,total:r,caption:i}){return(0,H.jsxs)(o_,{gap:4,style:{flex:1},children:[(0,H.jsxs)(K,{gap:6,align:`baseline`,children:[(0,H.jsx)(x0,{n:e.rows[0]?.[0]??null,unit:e.columns[0]?.unit,total:r}),i!=null&&(0,H.jsxs)(q,{ff:`monospace`,size:`sm`,c:`dimmed`,children:[`· `,j1(i)]})]}),t&&t.length>1&&(0,H.jsx)(G,{style:{flex:1,minHeight:24},children:(0,H.jsx)(C0,{trend:t,title:n})})]})}function hTe({frame:e,max:t,title:n}){let r=Number(e.rows[0]?.[0]??0),i=t??100,a=e.columns[0]?.unit;return(0,H.jsxs)(o_,{gap:6,children:[(0,H.jsx)(x0,{n:r,unit:a}),(0,H.jsx)(v0,{value:r,max:i,format:e=>j1(e,a),label:n,caption:!1}),(0,H.jsxs)(q,{size:`xs`,c:`dimmed`,children:[`of `,j1(i,a)]})]})}function gTe({frame:e,title:t}){let n=e.columns[1]?.unit,r=e.rows.map((e,t)=>({id:`${t}`,label:String(e[0]??`–`)||`–`,value:Number(e[1]??0)}));return(0,H.jsx)(Yc,{style:{flex:1},type:`auto`,viewportProps:k8,children:(0,H.jsx)(qwe,{items:r,format:e=>j1(e,n),label:t})})}var _Te=nve({rowSortingFeature:_ve,sortedRowModel:vve(),sortFns:{basic:P2,alphanumeric:ove}});function vTe({v:e,column:t,row:n}){if((t.name===`label`||t.name===`state`)&&typeof e==`string`&&e){let t=c0(e),r=t.inferred||n?.inferred===!0,i=(0,H.jsx)(l0,{state:t.state,label:t.label,inferred:r}),a=typeof n?.evidence==`string`&&n.evidence?n.evidence:r?`Inferred from process and file activity, not reported by the agent.`:``;return a?(0,H.jsx)(Bg,{label:a,multiline:!0,maw:320,children:i}):i}let r=M1(e,t);return t.type===`time`&&typeof e==`string`?(0,H.jsx)(q,{span:!0,fz:`inherit`,title:A1(e),children:r}):t.type===`number`?(0,H.jsx)(q,{span:!0,ff:`monospace`,fz:`inherit`,children:r}):t.name===`title`||t.name===`branch`?(0,H.jsx)(q,{fz:`inherit`,truncate:!0,maw:t.name===`title`?240:140,title:r,children:r}):(0,H.jsx)(H.Fragment,{children:r})}function D8({frame:e,source:t,act:n}){let{local:r}=I0(),[i,a]=(0,h.useState)([]),o=(0,h.useMemo)(()=>e.rows.map(t=>yTe(e.columns,t)),[e]),s=xve({features:_Te,data:o,columns:(0,h.useMemo)(()=>e.columns.filter(e=>!e.hidden).map(e=>({id:e.name,accessorFn:t=>t[e.name],header:P1(e.name),sortFn:e.type===`number`?`basic`:`alphanumeric`,sortDescFirst:e.type===`number`,cell:({row:t})=>(0,H.jsx)(vTe,{v:t.original[e.name],column:e,row:t.original}),meta:{column:e}})),[e.columns]),state:{sorting:i},onSortingChange:a}),c=e=>n?R0(t,e,r):[],l=!!n&&o.some(e=>c(e).length>0);return(0,H.jsx)(Yc,{style:{flex:1},type:`auto`,"aria-label":`Table`,viewportProps:k8,children:(0,H.jsxs)(C_,{miw:420,children:[(0,H.jsx)(C_.Thead,{children:s.getHeaderGroups().map(e=>(0,H.jsxs)(C_.Tr,{children:[e.headers.map(e=>{let t=e.column.columnDef.meta.column,n=e.column.getIsSorted();return(0,H.jsx)(C_.Th,{ta:t.type===`number`?`right`:void 0,"aria-sort":n===`asc`?`ascending`:n===`desc`?`descending`:`none`,style:{whiteSpace:`nowrap`},children:(0,H.jsxs)($c,{onClick:e.column.getToggleSortingHandler(),fz:`xs`,fw:500,c:`dimmed`,children:[(0,H.jsx)(s.FlexRender,{header:e}),n===`asc`?(0,H.jsx)(Hte,{size:10}):n===`desc`?(0,H.jsx)(hv,{size:10}):null]})},e.id)}),l&&(0,H.jsx)(C_.Th,{w:36,children:(0,H.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]},e.id))}),(0,H.jsx)(C_.Tbody,{children:s.getRowModel().rows.map(e=>(0,H.jsxs)(C_.Tr,{...w8(c(e.original),e.original,n),children:[e.getAllCells().map(e=>{let t=e.column.columnDef.meta.column;return(0,H.jsx)(C_.Td,{ta:t.type===`number`?`right`:void 0,style:{whiteSpace:`nowrap`,maxWidth:320,overflow:`hidden`,textOverflow:`ellipsis`},children:(0,H.jsx)(s.FlexRender,{cell:e})},e.id)}),l&&(0,H.jsx)(C_.Td,{ta:`right`,py:0,children:(0,H.jsx)(T8,{kinds:c(e.original),row:e.original,act:n,label:O8(e.original)})})]},e.id))})]})})}function O8(e){return String(e.title||e.signature||e.project||e.path||e.id||`this row`)}var k8={tabIndex:0};function yTe(e,t){return Object.fromEntries(e.map((e,n)=>[e.name,t[n]??null]))}function bTe({frame:e,source:t,act:n}){let{local:r}=I0(),[i,...a]=e.columns.filter(e=>!e.hidden);return(0,H.jsx)(Yc,{style:{flex:1},type:`auto`,viewportProps:k8,children:(0,H.jsx)(o_,{gap:0,children:gS(e).map((e,o)=>{let s=n?R0(t,e,r):[];return(0,H.jsxs)(K,{justify:`space-between`,wrap:`nowrap`,py:6,px:4,style:{borderBottom:`1px solid var(--driga-border-soft)`},...w8(s,e,n),className:`row-hover ${w8(s,e,n).className??``}`,children:[(0,H.jsx)(q,{size:`sm`,fw:500,truncate:!0,style:{minWidth:0},title:i?M1(e[i.name],i):void 0,children:i?M1(e[i.name],i):``}),(0,H.jsxs)(K,{gap:`xs`,wrap:`nowrap`,children:[(0,H.jsx)(q,{size:`xs`,c:`dimmed`,ff:`monospace`,children:a.map(t=>M1(e[t.name],t)).join(` · `)}),s.length>0&&(0,H.jsx)(T8,{kinds:s,row:e,act:n,label:O8(e)})]})]},o)})})})}function A8(e,t){let n=String(e.kind??``),r=n===`waiting`,i=Number(e.session_id)>0?`Session ${e.session_id}`:``;if(!r&&n!==`finished`)return{id:String(e.id),kind:`machine`,title:`${P1(n)} on ${String(e.machine??`a machine`)}`,reason:String(e.summary??``)||void 0,machine:void 0,at:String(e.occurred_at??``)};let a={id:String(e.id),title:String(e.title||e.summary||i),agent:String(e.agent??``)||void 0,project:String(e.project??``)||void 0,branch:String(e.branch??``)||void 0,machine:String(e.machine??``)||void 0,at:String(e.occurred_at??``)};if(r){let n=String(e.reason??``);return{...a,kind:n===`permission`?`permission`:n===`question`?`question`:`waiting`,reason:[e.tool,e.detail].filter(Boolean).join(` · `)||void 0,since:typeof e.waited==`number`?new Date(t-e.waited).toISOString():void 0}}let o=String(e.summary??``);return{...a,kind:`finished`,turns:typeof e.turns==`number`?e.turns:void 0,reason:o&&o!==`turn finished`?o:e.last_commit?`last commit: ${e.last_commit}`:void 0,review:{files:Number(e.files??0),uncommitted:Number(e.dirty??0),unpushed:Number(e.unpushed??0),checkout:String(e.checkout??``)||void 0}}}function j8({frame:e,act:t,prompts:n,answer:r,filter:i}){let a=I0(),{stuck:o}=a,s=Date.now();if(i===`stuck`)return o?.rows.length?(0,H.jsx)(D8,{frame:o,source:`sessions`,act:t}):(0,H.jsx)(b8,{kind:`empty`,title:`No session looks stuck.`});let c=(a.bursts??[]).filter(e=>e.members.length>1),l=new Set(c.flatMap(e=>e.members.map(e=>e.id))),u=n?.filter(e=>!l.has(e.id))??[],d=gS(e),f=d.filter(e=>e.kind===`waiting`),p=d.filter(e=>e.kind!==`waiting`&&e.kind!==`finished`),m=d.filter(e=>e.kind===`finished`),h=e=>t&&Number(e.session_id)>0?()=>void t({kind:`jump`,row:e}):void 0,g=e=>t&&!e.ack_pending?()=>void t({kind:`ack`,row:e}):void 0,_=(e,t,n,r,i)=>r>0&&(0,H.jsxs)(o_,{gap:6,children:[(0,H.jsx)(G,{children:(0,H.jsx)(l0,{variant:`pill`,state:t,tone:n,label:`${e} · ${r}`})}),i]}),v=i!==`review`,y=i!==`waiting`;return(0,H.jsx)(Yc,{style:{flex:1},type:`auto`,viewportProps:k8,children:(0,H.jsxs)(o_,{gap:`sm`,children:[v&&_(`Permission prompts`,`waiting`,`warning`,u.length+c.length,(0,H.jsxs)(H.Fragment,{children:[c.map(e=>(0,H.jsx)(TTe,{burst:e,answer:r,decide:a.decideBurst},e.id)),u.map(e=>(0,H.jsx)(M8,{prompt:e,answer:r},e.id))]})),v&&_(`Needs you`,`waiting`,`warning`,f.length,f.map(e=>(0,H.jsx)(S8,{entry:A8(e,s),onOpen:h(e)},String(e.id)))),v&&_(`Machines`,`waiting`,`warning`,p.length,p.map(e=>(0,H.jsx)(S8,{entry:A8(e,s),onDismiss:g(e)},String(e.id)))),a.grantHistory?.map(e=>(0,H.jsxs)(il,{withBorder:!0,p:`xs`,radius:`md`,children:[(0,H.jsxs)(q,{size:`xs`,children:[e.attribution,` · `,e.session??e.conversation,` · `,e.time]}),(0,H.jsx)(km,{size:`compact-xs`,variant:`subtle`,disabled:e.revoked,onClick:()=>void a.revokeGrant?.(e.grant_id),children:e.revoked?`Grant revoked`:`Revoke grant`})]},`${e.grant_id}/${e.action_id??e.prompt_id}`)),y&&_(`To review`,`finished`,`info`,m.length,m.map(e=>(0,H.jsx)(S8,{entry:A8(e,s),onApprove:g(e),onOpen:h(e)},String(e.id))))]})})}function xTe({frame:e,source:t,act:n}){let{local:r}=I0(),[i,...a]=e.columns.filter(e=>!e.hidden);return(0,H.jsx)(Yc,{style:{flex:1},type:`auto`,viewportProps:k8,children:(0,H.jsx)(G,{style:{display:`grid`,gridTemplateColumns:`repeat(auto-fill, minmax(220px, 1fr))`,gap:10},children:gS(e).map((e,o)=>{let s=n?R0(t,e,r):[];return(0,H.jsxs)(il,{p:`sm`,withBorder:!0,style:{background:`var(--driga-inset)`},children:[(0,H.jsx)(q,{size:`sm`,fw:600,truncate:!0,mb:6,title:i?M1(e[i.name],i):void 0,children:i?M1(e[i.name],i):``}),(0,H.jsx)(e_,{cols:2,spacing:12,verticalSpacing:2,children:a.map(t=>{let n=e[t.name];if(n===null||n===``||n===void 0)return null;let r=typeof n==`number`&&n>0&&t.unit===`count`;return(0,H.jsxs)(K,{justify:`space-between`,gap:6,wrap:`nowrap`,children:[(0,H.jsx)(q,{size:`xs`,c:`dimmed`,truncate:!0,title:P1(t.name),children:P1(t.name)}),(0,H.jsx)(q,{size:`xs`,ff:`monospace`,c:r?`warning`:void 0,truncate:!0,title:M1(n,t),children:M1(n,t)})]},t.name)})}),s.length>0&&(0,H.jsx)(K,{justify:`flex-end`,mt:4,children:(0,H.jsx)(T8,{kinds:s,row:e,act:n,label:O8(e)})})]},o)})})})}function STe(e,t){return gS(e).map(n=>{let r=Date.parse(String(n.started_at))||t,i=Date.parse(String(n.ended_at??``))||t,a=c0(String(n.label??``)),o=n.ended_at?`finished`:a.state&&a.state!==`waiting`?a.state:`working`,s=(e.spans??[]).filter(e=>e.session_id===n.id&&e.machine_id===n.machine_id).map(e=>({from:Date.parse(String(e.from))||r,to:Date.parse(String(e.to??``))||t})).sort((e,t)=>e.from-t.from),c=[],l=r;for(let e of s){let t=Math.max(l,r,e.from),n=Math.min(i,e.to);n<=t||(t>l&&c.push({from:l,to:t,state:o}),c.push({from:t,to:n,state:`waiting`}),l=n)}return lDate.now(),[e]),i=(0,h.useMemo)(()=>STe(e,r),[e,r]),a=i.flatMap(e=>e.segments.map(e=>e.from)),o=a.length?Math.min(...a):r-36e5,s=new Map(gS(e).map(e=>[JSON.stringify([e.machine_id,e.id]),e]));return(0,H.jsx)(Yc,{style:{flex:1},type:`auto`,viewportProps:k8,children:(0,H.jsx)(aTe,{lanes:i,from:o,to:r,now:r,label:n,onSelect:t?e=>{let n=s.get(e);n&&t({kind:`jump`,row:{...n,session_id:n.id}})}:void 0})})}function M8({prompt:e,answer:t}){let n=I0(),[r,i]=(0,h.useState)(!1),[a,o]=(0,h.useState)(!1);(0,h.useEffect)(()=>{i(!1);let e=window.setTimeout(()=>i(!0),600);return()=>window.clearTimeout(e)},[e.id,JSON.stringify(e.input)]);let s=async n=>{if(t){o(!0);try{await t(e,n)}finally{o(!1)}}},c=wTe(e),l={id:e.id,kind:`permission`,title:e.session,agent:`claude`,reason:c?`${e.tool}(${c})`:e.tool,project:e.cwd,at:e.created_at,since:e.created_at};return(0,H.jsxs)(o_,{gap:4,children:[(0,H.jsx)(S8,{entry:l,armed:r&&!a,onApprove:t?()=>void s(!0):void 0,onDeny:t?()=>void s(!1):void 0}),(0,H.jsx)(q,{component:`pre`,size:`xs`,ff:`monospace`,style:{whiteSpace:`pre-wrap`,overflowWrap:`anywhere`},children:JSON.stringify(e.input,null,2)}),e.grant_eligible&&n.answerSimilar&&(0,H.jsxs)(o_,{gap:4,children:[(0,H.jsx)(q,{size:`xs`,ff:`monospace`,style:{overflowWrap:`anywhere`},children:e.grant_pattern}),(0,H.jsxs)(q,{size:`xs`,c:`dimmed`,children:[`Expires `,e.grant_expires_at]}),(0,H.jsx)(km,{size:`compact-xs`,variant:`light`,disabled:!r||a,onClick:()=>{o(!0),n.answerSimilar(e).finally(()=>o(!1))},children:`Allow similar for this session`})]})]})}function wTe(e){let t=e.input??{};for(let e of[`command`,`file_path`,`url`,`pattern`])if(typeof t[e]==`string`)return String(t[e]);return``}function TTe({burst:e,answer:t,decide:n}){let r=`${e.id}/${e.members.map(e=>`${e.id}:${e.input_hash}`).join(`/`)}`,[i,a]=(0,h.useState)(!1),[o,s]=(0,h.useState)(!1),[c,l]=(0,h.useState)(),u=(0,h.useRef)(r);u.current=r;let d=(0,h.useRef)(!1);(0,h.useEffect)(()=>{a(!1),s(!1),l(void 0),d.current=!1;let e=window.setTimeout(()=>a(!0),600);return()=>window.clearTimeout(e)},[r]);let f=async()=>{if(!i||d.current||!n)return;d.current=!0,s(!0);let t=e.members.map(e=>e.id),a=r;try{await n(e.id,t,!0)}catch(e){u.current===a&&l(e.message)}finally{u.current===a&&(d.current=!1,s(!1))}};return(0,H.jsx)(il,{withBorder:!0,p:`xs`,radius:`md`,style:{background:`var(--driga-raised)`},children:(0,H.jsxs)(o_,{gap:`xs`,children:[(0,H.jsxs)(q,{size:`sm`,fw:600,children:[e.members.length,` permission prompts · `,e.session]}),(0,H.jsxs)(q,{size:`xs`,c:`dimmed`,style:{overflowWrap:`anywhere`},children:[`in `,e.cwd]}),e.members.map(e=>(0,H.jsx)(M8,{prompt:e.prompt,answer:t},`${e.id}/${e.input_hash}`)),n&&(0,H.jsxs)(km,{disabled:!i||o,onClick:()=>void f(),children:[`Allow all `,e.members.length]}),c&&(0,H.jsx)(q,{size:`xs`,c:`danger`,role:`alert`,children:c})]})})}var ETe={stat:3,gauge:3,timeseries:6,bar:6,table:12,list:6,inbox:8,cards:12,timeline:12,text:6};function N8({fragment:e,onVars:t,act:n,compact:r,stacked:i,bare:a}){let{dashboard:o}=e,s=new Map(e.results.map(e=>[e.id,e])),c=e.vars??{};return(0,H.jsxs)(o_,{gap:`sm`,p:a?0:r?`xs`:`md`,children:[!a&&(0,H.jsxs)(K,{justify:`space-between`,align:`flex-end`,gap:`xs`,children:[(0,H.jsxs)(G,{children:[(0,H.jsx)(k_,{order:1,fz:`md`,fw:600,children:o.name}),o.description&&!r&&(0,H.jsx)(q,{size:`sm`,c:`dimmed`,children:o.description})]}),(0,H.jsxs)(K,{gap:`xs`,children:[t&&o.variables?.map(n=>(0,H.jsx)(Jg,{size:`xs`,w:140,label:n.name,placeholder:`All`,clearable:!0,data:e.options?.[n.name]??[],value:c[n.name]||null,onChange:e=>t({...c,[n.name]:e??``})},n.name)),(0,H.jsxs)(q,{size:`xs`,c:`dimmed`,title:A1(e.observed_at),children:[`observed `,k1(e.observed_at)]})]})]}),(0,H.jsx)(G,{style:{display:`grid`,gridTemplateColumns:`repeat(12, minmax(0, 1fr))`,gap:12,gridAutoFlow:`row dense`},children:o.panels.map(e=>{let t=i?12:Math.min(12,e.grid?.w??e.width??ETe[e.viz]);return(0,H.jsx)(G,{style:{gridColumn:`span ${t}`,minWidth:0},children:(0,H.jsx)(E8,{panel:e,result:s.get(e.id),act:n})},e.id)})})]})}var P8=new Set([`create_dashboard`,`edit_dashboard`,`replace_dashboard`,`restore_dashboard_version`]);function F8(e,t){if(e.viz===`text`){let t=(e.content??``).split(` -`).filter(e=>/^\s*\|/.test(e)&&!/^\s*\|[\s:|-]+\|\s*$/.test(e)).length;return t>1?`table, ${t-1} rows`:`note`}if(!t)return`loading`;if(t.status===`error`)return t.message??`failed`;if(t.status===`empty`||!t.frame?.rows.length)return t.message??`nothing right now`;let n=t.frame;if(e.viz===`stat`||e.viz===`gauge`){let e=n.rows[0]?.[0],r=n.columns[0]?.unit;return typeof e==`number`?typeof t.total==`number`?`${j1(e,r)} of ${j1(t.total,r)}`:j1(e,r):`no reading`}return e.viz===`bar`||e.viz===`timeseries`?B1(n,e)||`${n.rows.length} points`:`${n.rows.length} ${n.rows.length===1?`row`:`rows`}`}function DTe(e){let t=e.filter(e=>e.status===`error`).length;return t?`${t} failed`:``}function OTe(e,t){let n=e=>t?.panels.find(t=>t.id===e)?.title??e;return e.tool===`create_dashboard`?[`Created`]:e.tool===`replace_dashboard`?[`Replaced`]:e.tool===`restore_dashboard_version`?[`Restored version ${e.input.version??`?`}`]:(e.input.operations??[]).map(e=>{switch(e.op){case`add`:return`Added ${e.panel.title}`;case`update`:return`Changed ${e.panel?.title??n(e.id)}`;case`remove`:return`Removed ${n(e.id)}`;case`move`:return`Moved ${n(e.id)}`;case`layout`:return`Moved panels`;case`rename`:return`Renamed to ${e.name}`}})}function kTe({text:e,open:t,onOpen:n}){let[r,i]=(0,h.useState)(!!t),a=(0,h.useRef)(!1);(0,h.useEffect)(()=>{a.current||i(!!t)},[t]);let[o,s]=(0,h.useState)(!1),[c,l]=(0,h.useState)(!1),[u,d]=(0,h.useState)(null),[f,p]=(0,h.useState)(null),[m,g]=(0,h.useState)(null);if((0,h.useEffect)(()=>{let t=new AbortController;g(null),p(null),s(!1);let n;try{n=JSON.parse(e)}catch{g(`This card could not be read.`);return}if(d(n),n.error)return;let r=n.input?.dashboard,i=n.saved?.id??n.input?.id;if(!r&&!i)g(`This card names no dashboard.`);else return(i&&(P8.has(n.tool)||n.tool===`open_dashboard`)?H0.open(i,n.input?.vars,t.signal):H0.run(r,n.input?.vars,t.signal)).then(e=>{t.signal.aborted||p(e)},e=>{t.signal.aborted||(s(e instanceof z0&&e.status===404),g(e.message))}),()=>t.abort()},[e]),m&&u&&o&&(u.saved||u.input.id))return(0,H.jsxs)(q,{size:`sm`,c:`dimmed`,children:[u.input.dashboard?.name??`This dashboard`,` was deleted since.`]});if(m)return(0,H.jsx)(q,{size:`sm`,c:`danger`,children:m});if(u?.error)return(0,H.jsx)(il,{withBorder:!0,radius:`md`,p:`sm`,style:{background:`var(--driga-raised)`},children:(0,H.jsxs)(o_,{gap:4,children:[(0,H.jsx)(q,{size:`sm`,fw:600,children:u.status===`unknown`?`Outcome unknown: ${u.input.dashboard?.name??u.input.id??`dashboard`}`:P8.has(u.tool)?`Draft rejected: ${u.input.dashboard?.name??u.input.id??`dashboard`}`:`These panels could not run`}),(0,H.jsx)(q,{size:`xs`,c:`dimmed`,style:{overflowWrap:`anywhere`},children:u.error})]})});if(!u||!f)return(0,H.jsx)(q,{size:`sm`,c:`dimmed`,children:`Loading panels…`});let _=f.dashboard,v=P8.has(u.tool)&&!!(u.saved??f.id),y=new Map(f.results.map(e=>[e.id,e])),b=_.panels,x=v?OTe(u):[],S=v?u.saved?.version??f.version:void 0,C=DTe(f.results),w=v?`Saved ${_.name}`:_.name;return(0,H.jsxs)(il,{withBorder:!0,radius:`md`,p:`sm`,style:{background:`var(--driga-raised)`},children:[(0,H.jsxs)(o_,{gap:6,children:[(0,H.jsxs)(K,{gap:4,wrap:`nowrap`,children:[(0,H.jsx)($c,{"aria-expanded":r,onClick:()=>{a.current=!0,i(e=>!e)},style:{flex:1,minWidth:0},children:(0,H.jsxs)(K,{gap:6,wrap:`nowrap`,children:[r?(0,H.jsx)(hv,{size:14,"aria-hidden":!0}):(0,H.jsx)(_v,{size:14,"aria-hidden":!0}),v?(0,H.jsx)(Gv,{size:16,"aria-hidden":!0}):(0,H.jsx)(bv,{size:16,"aria-hidden":!0}),(0,H.jsx)(q,{size:`sm`,fw:600,truncate:!0,title:w,children:w}),S?(0,H.jsxs)(q,{size:`xs`,c:`dimmed`,style:{whiteSpace:`nowrap`},children:[`version `,S]}):null,C&&(0,H.jsx)(q,{size:`xs`,c:`danger`,style:{whiteSpace:`nowrap`},children:C})]})}),v&&(0,H.jsx)(Bg,{label:`Open dashboard`,children:(0,H.jsx)(lu,{size:`sm`,"aria-label":`Open dashboard`,onClick:()=>n(f.id),children:(0,H.jsx)(Ty,{size:16})})}),(0,H.jsx)(Bg,{label:`Full screen`,children:(0,H.jsx)(lu,{size:`sm`,"aria-label":`Full screen`,onClick:()=>l(!0),children:(0,H.jsx)(Vte,{size:16})})})]}),x.length>0&&(0,H.jsx)(K,{gap:4,children:x.map(e=>(0,H.jsx)(bm,{size:`sm`,variant:`light`,color:`gray`,tt:`none`,children:e},e))}),r?(0,H.jsx)(N8,{fragment:f,compact:!0,stacked:!0,bare:!0}):(0,H.jsxs)(o_,{gap:2,component:`ul`,m:0,p:0,style:{listStyle:`none`},children:[b.slice(0,6).map(e=>{let t=y.get(e.id);return(0,H.jsxs)(K,{component:`li`,gap:8,wrap:`nowrap`,justify:`space-between`,children:[(0,H.jsx)(q,{size:`xs`,truncate:!0,title:t?.title||e.title,children:t?.title||e.title}),(0,H.jsx)(q,{size:`xs`,c:t?.status===`error`?`danger`:`dimmed`,ff:`monospace`,truncate:!0,ta:`right`,style:{maxWidth:`55%`},title:F8(e,t),children:F8(e,t)})]},e.id)}),b.length>6&&(0,H.jsxs)(q,{component:`li`,size:`xs`,c:`dimmed`,children:[`and `,b.length-6,` more`]})]})]}),(0,H.jsx)(gg,{opened:c,onClose:()=>l(!1),fullScreen:!0,title:w,radius:0,children:(0,H.jsx)(N8,{fragment:f})})]})}function ATe(e){let t=(e??``).trim();return t!==``&&![`{}`,`[]`,`null`,`""`,`"{}"`,`"[]"`].includes(t)}function jTe({conversation:e,action:t}){let n=t.status===`pending`,[r,i]=(0,h.useState)(!1),[a,o]=(0,h.useState)(!1),[s,c]=(0,h.useState)(null),l=(0,h.useRef)(!1),u=`${e}/${t.id}/${t.status}`,d=(0,h.useRef)(u);d.current=u,(0,h.useEffect)(()=>{l.current=!1,i(!1),c(null),o(!1)},[u]);let f=async(n,r=!1)=>{let a=u;if(!l.current){l.current=!0,i(!0),c(null);try{r?await K0.decideSimilar(e,t.id):await K0.decide(e,t.id,n)}catch(e){if(d.current!==a)return;c(e.message),l.current=!1,i(!1)}}};return(0,H.jsxs)(il,{withBorder:!0,p:`xs`,radius:`md`,style:{background:`var(--driga-raised)`,borderColor:n?`var(--mantine-color-warning-filled)`:void 0},children:[(0,H.jsxs)(q,{size:`xs`,ff:`monospace`,style:{overflowWrap:`anywhere`},children:[t.tool,` · `,t.status]}),(0,H.jsx)(q,{size:`sm`,fw:600,style:{overflowWrap:`anywhere`},children:t.command?.summary??t.title}),t.command?(0,H.jsxs)(o_,{gap:4,mt:`xs`,children:[(0,H.jsxs)(q,{size:`xs`,children:[t.command.class,` · `,t.command.boundary]}),(0,H.jsx)(q,{component:`pre`,size:`xs`,ff:`monospace`,style:{whiteSpace:`pre-wrap`,overflowWrap:`anywhere`},children:t.command.requested.script??JSON.stringify(t.command.requested.argv)}),t.command.effective.map((e,t)=>(0,H.jsxs)(q,{size:`xs`,ff:`monospace`,style:{overflowWrap:`anywhere`},children:[`Effective: `,JSON.stringify(e)]},t)),(0,H.jsxs)(q,{size:`xs`,c:`dimmed`,children:[`Timeout: `,t.command.requested.timeout_seconds,`s`]}),t.command.error&&(0,H.jsx)(q,{role:`alert`,size:`xs`,c:`danger`,children:t.command.error}),[{label:`${t.command.count} process targets`,rows:t.command.targets},...[`stopped`,`vanished`,`skipped`,`survivors`].map(e=>({label:e,rows:t.command[e]??[]}))].filter(e=>e.rows.length>0).map(e=>(0,H.jsx)(Rf,{variant:`contained`,transitionDuration:0,children:(0,H.jsxs)(Rf.Item,{value:`targets`,children:[(0,H.jsx)(Rf.Control,{"aria-label":`Inspect ${e.label}`,children:e.label}),(0,H.jsx)(Rf.Panel,{children:(0,H.jsx)(G,{mah:300,tabIndex:0,"aria-label":e.label,style:{overflowY:`auto`},children:(0,H.jsx)(o_,{gap:`xs`,children:e.rows.map(e=>(0,H.jsxs)(G,{children:[(0,H.jsxs)(q,{size:`xs`,fw:600,children:[`PID `,e.pid,` · `,e.owner,` · `,D1(e.memory_bytes)]}),(0,H.jsxs)(q,{size:`xs`,ff:`monospace`,style:{overflowWrap:`anywhere`},children:[e.started_at,` · `,e.executable,` -`,JSON.stringify(e.argv),` · `,e.command_line,e.reason&&` · ${e.reason}`]})]},e.pid))})})})]})},e.label))]}):(0,H.jsx)(q,{component:`pre`,size:`xs`,ff:`monospace`,my:`xs`,style:{whiteSpace:`pre-wrap`,overflowWrap:`anywhere`},children:JSON.stringify(t.input,null,2)}),t.delegated&&(0,H.jsxs)(q,{component:`pre`,size:`xs`,ff:`monospace`,style:{whiteSpace:`pre-wrap`,overflowWrap:`anywhere`},children:[t.delegated.tool,` · `,t.delegated.cwd,` -`,JSON.stringify(t.delegated.input,null,2)]}),t.directory&&(0,H.jsxs)(q,{size:`xs`,c:`dimmed`,style:{overflowWrap:`anywhere`},children:[`in `,t.directory]}),t.decided_by&&(0,H.jsxs)(q,{size:`xs`,c:`dimmed`,children:[`Decided by `,t.decided_by]}),ATe(t.result)&&(0,H.jsx)(q,{size:`xs`,c:`dimmed`,mt:2,style:{overflowWrap:`anywhere`},children:t.result}),t.grant_id&&(0,H.jsx)(km,{size:`compact-xs`,variant:`subtle`,disabled:a,onClick:()=>{let e=u;K0.revokeGrant(t.grant_id).then(()=>{d.current===e&&o(!0)},t=>{d.current===e&&c(t.message)})},children:a?`Grant revoked`:`Revoke grant`}),n&&t.grant_eligible&&(0,H.jsxs)(o_,{gap:4,mt:`xs`,children:[(0,H.jsx)(q,{size:`xs`,ff:`monospace`,style:{overflowWrap:`anywhere`},children:t.grant_pattern}),(0,H.jsxs)(q,{size:`xs`,c:`dimmed`,children:[`Expires `,t.grant_expires_at]}),(0,H.jsx)(km,{variant:`light`,disabled:r,onClick:()=>void f(!0,!0),children:`Allow similar for this conversation`})]}),n&&(0,H.jsxs)(K,{gap:6,mt:`xs`,children:[(0,H.jsx)(km,{disabled:r||!!t.command?.error,"aria-label":`Allow ${t.title}`,onClick:()=>void f(!0),children:`Allow`}),(0,H.jsx)(km,{variant:`default`,disabled:r,"aria-label":`Deny ${t.title}`,onClick:()=>void f(!1),children:`Deny`})]}),s&&(0,H.jsx)(q,{size:`xs`,c:`danger`,role:`alert`,children:s})]})}function MTe({inbox:e,act:t,ask:n}){let r=e?.result?.frame?.rows.filter(t=>t[e.result.frame.columns.findIndex(e=>e.name===`kind`)]===`waiting`).length??0,{prompts:i=[],inboxFilter:a}=I0(),o=(e?.result?.frame?.rows.length??0)+i.length,s=[r?`What needs me first, and why?`:`Is anything stuck?`,`What finished since I was away, and is it safe to merge?`,`Make a dashboard for the project I am working on`,`Which processes can I reclaim?`];return(0,H.jsxs)(o_,{gap:`sm`,children:[r||i.length?(0,H.jsxs)(q,{size:`sm`,c:`dimmed`,children:[i.length>0&&`${i.length} permission ${i.length===1?`prompt`:`prompts`} to answer. `,r?`${r} ${r===1?`session needs`:`sessions need`} you.`:``]}):(0,H.jsx)(b8,{kind:`all-clear`,title:`Nothing is waiting on you.`}),e&&!e.listed&&(o>0||a)&&(0,H.jsx)(E8,{panel:e.panel,result:e.result,act:t}),(0,H.jsx)(o_,{gap:6,align:`flex-start`,children:s.map(e=>(0,H.jsx)(km,{variant:`default`,radius:`xl`,leftSection:(0,H.jsx)(Cy,{}),onClick:()=>n(e),styles:{label:{whiteSpace:`normal`,textAlign:`left`,lineHeight:1.35,overflow:`visible`}},h:`auto`,py:6,children:e},e))})]})}function NTe(e){let t=[],n=null;for(let r of e)r.role===`user`?(n&&t.push(n),n=null,t.push(r)):r.role===`assistant`?(n&&t.push(n),n=r):t.push(r);return n&&t.push(n),t}var PTe={claude:`Claude Code`,codex:`Codex`,copilot:`GitHub Copilot CLI`};function FTe({inbox:e,act:t,ask:n,onOpen:r,onClose:i}){let[a,o]=(0,h.useState)(null),[s,c]=(0,h.useState)(`loading`),[l,u]=(0,h.useState)([]),[d,f]=(0,h.useState)(new Map),[p,m]=(0,h.useState)(!1),[g,_]=(0,h.useState)(),[v,y]=(0,h.useState)(null),[b,x]=(0,h.useState)(),[S,C]=(0,h.useState)(Date.now),[w,T]=(0,h.useState)(!1),[E,D]=(0,h.useState)(!1),O=(0,h.useRef)(!1),[k,A]=(0,h.useState)(``),[j,M]=(0,h.useState)(null),[N,P]=(0,h.useState)(``),F=(0,h.useRef)(null),ee=(0,h.useRef)(null),I=(0,h.useRef)(!1);(0,h.useEffect)(()=>{n&&(A(n.text),ee.current?.focus())},[n]),(0,h.useEffect)(()=>{let e=!0;return K0.history().then(t=>{e&&(c(t.length?`loading`:`empty`),t.length&&!I.current&&o(e=>e??t[0].id))},()=>{e&&c(`unavailable`)}),()=>{e=!1}},[]),(0,h.useEffect)(()=>{if(_(void 0),!a)return;let e=new AbortController,t=0,n=new Map,r=[],i=e=>{let t=n.get(e.id);if(n.set(e.id,e),t?.created_at===e.created_at)return;t&&r.splice(r.indexOf(e.id),1);let i=0,a=r.length;for(;i>>1;n.get(r[t]).created_at.localeCompare(e.created_at)<=0?i=t+1:a=t}r.splice(i,0,e.id)},o=()=>u(r.map(e=>n.get(e))),s=e=>{_(e.conversation.agent),y(e.mode),x(e.until),C(Date.now()),e.reset&&(n.clear(),r.length=0,e.messages.forEach(i),f(new Map(e.actions.map(e=>[e.id,e]))),t=e.cursor);for(let r of e.events??[])if(!(r.seq<=t)){if(t=r.seq,r.action&&f(e=>new Map(e).set(r.action.id,r.action)),r.kind===`delta`&&r.message_id){let e=n.get(r.message_id);e&&n.set(e.id,{...e,text:e.text+(r.text??``),html:``})}r.message&&i(r.message)}e.cursor>t&&(t=e.cursor),m(!!e.active),o()};return(async()=>{for(;!e.signal.aborted;)try{let n=await K0.wait(a,t,e.signal);if(e.signal.aborted)return;s(n),M(null)}catch{if(e.signal.aborted)return;M(`Reconnecting…`),await new Promise(e=>setTimeout(e,1e3))}})(),()=>e.abort()},[a]),(0,h.useEffect)(()=>{if(v!==`full auto`)return;let e=setInterval(()=>C(Date.now()),1e3);return()=>clearInterval(e)},[v]),(0,h.useEffect)(()=>{F.current?.scrollTo({top:F.current.scrollHeight})},[l]);let te=async e=>{if(!a||O.current)return!1;O.current=!0,D(!0),M(null),T(!1);try{return await K0.setMode(a,e),!0}catch(e){return M(e.message),!1}finally{O.current=!1,D(!1)}},L=async()=>{(v!==`full auto`||await te(`confirm`))&&i?.()},ne={confirm:`Confirm`,auto:`Auto`,"full auto":`Full auto`},re=v?`Mode: ${ne[v]}`:!a&&s===`empty`?`Mode: Confirm`:!a&&s===`unavailable`?`Mode unavailable`:`Loading mode…`;v===`full auto`&&b&&(re+=` · ${Math.max(0,Math.ceil((Date.parse(b)-S)/6e4))}m left`);let ie=async e=>{let t=e.trim();if(t&&!I.current){I.current=!0,A(``);try{let e=a;e||(e=(await K0.create()).id,o(e)),await K0.send(e,t,{page:`/app/`}),P(t)}catch(e){A(e=>e||t),M(e.message)}finally{I.current=!1}}},ae=N&&!p?(0,H.jsx)(km,{size:`compact-xs`,variant:`default`,onClick:()=>void ie(N),children:`Retry`}):null,oe=NTe(l),se=e=>(e.role===`user`||e.role===`assistant`)&&!e.text.trim()&&e.status!==`streaming`&&e.status!==`queued`,R=oe.findIndex(se),ce=oe.map(e=>e.role).lastIndexOf(`assistant`),le=oe.map(e=>e.role).lastIndexOf(`panel`);return(0,H.jsxs)(o_,{component:`section`,"aria-label":`Chat`,h:`100%`,gap:0,children:[(0,H.jsxs)(K,{justify:`space-between`,px:`md`,py:`sm`,style:{borderBottom:`1px solid var(--driga-border)`},children:[(0,H.jsxs)(K,{gap:8,align:`baseline`,wrap:`nowrap`,children:[(0,H.jsx)(k_,{order:2,fz:`sm`,fw:600,children:`Chat`}),(0,H.jsx)(q,{size:`xs`,c:v===`full auto`?`danger`:`dimmed`,fw:v===`full auto`?600:void 0,"aria-label":`Current trust mode`,style:{whiteSpace:`nowrap`},children:re})]}),i&&(0,H.jsx)(lu,{"aria-label":`Close chat`,disabled:E,onClick:()=>void L(),children:(0,H.jsx)(Iy,{})})]}),g&&(0,H.jsx)(q,{size:`xs`,c:`dimmed`,px:`md`,py:4,"aria-label":`Assistant provider`,children:PTe[g]??`Assistant`}),(0,H.jsx)(Yc,{viewportRef:F,style:{flex:1},type:`auto`,children:(0,H.jsxs)(o_,{gap:`sm`,p:`md`,children:[l.every(se)&&(0,H.jsx)(MTe,{inbox:e,act:t,ask:e=>void ie(e)}),oe.map((e,t)=>{if((e.role===`user`||e.role===`assistant`)&&!e.text.trim())return e.status===`streaming`||e.status===`queued`?null:e.role===`assistant`&&e.status===`error`&&t===ce?(0,H.jsx)(b8,{kind:`error`,title:`This reply failed`,caption:`The error is in the service's log.`,command:`driga service logs`,onRetry:N&&!p?()=>void ie(N):void 0},e.id):t===R?(0,H.jsxs)(q,{size:`xs`,c:`dimmed`,children:[`Earlier messages aren't kept. Set `,(0,H.jsx)(q,{span:!0,ff:`monospace`,fz:`inherit`,children:`capture_text = "snippets"`}),` to keep Chat history.`]},e.id):null;if(e.role===`panel`)return e.text?(0,H.jsx)(kTe,{text:e.text,open:t===le,onOpen:r},e.id):null;if(e.role===`tool`)return(0,H.jsxs)(K,{gap:4,c:`dimmed`,children:[(0,H.jsx)(Tv,{size:12}),(0,H.jsx)(q,{size:`xs`,ff:`monospace`,children:e.text.replace(/^mcp__driga__/,``)})]},e.id);if(e.role===`action`){let t=d.get(e.id);return t&&a?(0,H.jsx)(jTe,{conversation:a,action:t},e.id):null}if(e.role===`user`)return(0,H.jsx)(il,{px:`sm`,py:6,radius:`lg`,maw:`85%`,style:{alignSelf:`flex-end`,background:`var(--driga-hover)`,whiteSpace:`pre-wrap`},children:(0,H.jsx)(q,{size:`sm`,children:e.text})},e.id);let n=e.role===`assistant`&&e.status===`error`&&t===ce;return(0,H.jsxs)(G,{"aria-live":e.role===`assistant`&&t===ce?`polite`:void 0,"aria-atomic":!1,fz:`sm`,className:`markdown`,c:n?`danger`:void 0,children:[e.html?(0,H.jsx)(`div`,{dangerouslySetInnerHTML:{__html:e.html}}):(0,H.jsx)(q,{size:`sm`,c:`inherit`,children:e.text}),n&&ae&&(0,H.jsx)(G,{mt:4,children:ae})]},e.id)}),p&&(0,H.jsx)(q,{size:`xs`,c:`dimmed`,children:`Working…`}),j&&(0,H.jsx)(q,{size:`xs`,c:`danger`,children:j})]})}),(0,H.jsxs)(G,{component:`form`,p:`sm`,style:{borderTop:`1px solid var(--driga-border)`},onSubmit:e=>{e.preventDefault(),ie(k)},children:[(0,H.jsx)(gh,{ref:ee,"aria-label":`Ask or act`,autosize:!0,minRows:2,maxRows:8,value:k,placeholder:`Ask about your agents, or tell Driga what to show`,onChange:e=>A(e.currentTarget.value),onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),ie(k))}}),(0,H.jsxs)(K,{justify:`space-between`,mt:8,children:[(0,H.jsx)(K,{gap:4,"aria-label":`Trust mode`,children:[`confirm`,`auto`,`full auto`].map(e=>(0,H.jsx)(km,{size:`compact-xs`,variant:v===e?`light`:`default`,color:e===`full auto`?`danger`:void 0,"aria-pressed":v===e,disabled:!a||!v||E,onClick:()=>e===`full auto`?T(!0):void te(e),children:ne[e]},e))}),p?(0,H.jsx)(km,{variant:`default`,onClick:()=>a&&void K0.stop(a),children:`Stop`}):(0,H.jsx)(km,{type:`submit`,disabled:!k.trim(),children:`Send`})]})]}),w&&(0,H.jsxs)(gg,{opened:!0,onClose:()=>T(!1),title:`Enable Full auto?`,centered:!0,children:[(0,H.jsx)(q,{size:`sm`,children:`Full auto runs reads and sandboxed Other commands automatically for 30 minutes. Process and Destructive commands still ask.`}),(0,H.jsxs)(K,{justify:`flex-end`,mt:`md`,children:[(0,H.jsx)(km,{variant:`default`,onClick:()=>T(!1),children:`Cancel`}),(0,H.jsx)(km,{color:`danger`,onClick:()=>void te(`full auto`),children:`Enable Full auto`})]})]})]})}function ITe(){var e=[...arguments];return(0,h.useMemo)(()=>t=>{e.forEach(e=>e(t))},e)}var I8=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function L8(e){let t=Object.prototype.toString.call(e);return t===`[object Window]`||t===`[object global]`}function R8(e){return`nodeType`in e}function z8(e){return e?L8(e)?e:R8(e)?e.ownerDocument?.defaultView??window:window:window}function B8(e){let{Document:t}=z8(e);return e instanceof t}function V8(e){return!L8(e)&&e instanceof z8(e).HTMLElement}function H8(e){return e instanceof z8(e).SVGElement}function U8(e){return e?L8(e)?e.document:R8(e)?B8(e)?e:V8(e)||H8(e)?e.ownerDocument:document:document:document}var W8=I8?h.useLayoutEffect:h.useEffect;function G8(e){let t=(0,h.useRef)(e);return W8(()=>{t.current=e}),(0,h.useCallback)(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function LTe(){let e=(0,h.useRef)(null);return[(0,h.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,h.useCallback)(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[])]}function K8(e,t){t===void 0&&(t=[e]);let n=(0,h.useRef)(e);return W8(()=>{n.current!==e&&(n.current=e)},t),n}function q8(e,t){let n=(0,h.useRef)();return(0,h.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function J8(e){let t=G8(e),n=(0,h.useRef)(null);return[n,(0,h.useCallback)(e=>{e!==n.current&&t?.(e,n.current),n.current=e},[])]}function Y8(e){let t=(0,h.useRef)();return(0,h.useEffect)(()=>{t.current=e},[e]),t.current}var X8={};function Z8(e,t){return(0,h.useMemo)(()=>{if(t)return t;let n=X8[e]==null?0:X8[e]+1;return X8[e]=n,e+`-`+n},[e,t])}function Q8(e){return function(t){return[...arguments].slice(1).reduce((t,n)=>{let r=Object.entries(n);for(let[n,i]of r){let r=t[n];r!=null&&(t[n]=r+e*i)}return t},{...t})}}var $8=Q8(1),e5=Q8(-1);function RTe(e){return`clientX`in e&&`clientY`in e}function t5(e){if(!e)return!1;let{KeyboardEvent:t}=z8(e.target);return t&&e instanceof t}function zTe(e){if(!e)return!1;let{TouchEvent:t}=z8(e.target);return t&&e instanceof t}function n5(e){if(zTe(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return RTe(e)?{x:e.clientX,y:e.clientY}:null}var r5=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return`translate3d(`+(t?Math.round(t):0)+`px, `+(n?Math.round(n):0)+`px, 0)`}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return`scaleX(`+t+`) scaleY(`+n+`)`}},Transform:{toString(e){if(e)return[r5.Translate.toString(e),r5.Scale.toString(e)].join(` `)}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+` `+n+`ms `+r}}}),i5=`a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]`;function BTe(e){return e.matches(i5)?e:e.querySelector(i5)}var VTe={display:`none`};function HTe(e){let{id:t,value:n}=e;return h.createElement(`div`,{id:t,style:VTe},n)}function UTe(e){let{id:t,announcement:n,ariaLiveType:r=`assertive`}=e;return h.createElement(`div`,{id:t,style:{position:`fixed`,top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:`hidden`,clip:`rect(0 0 0 0)`,clipPath:`inset(100%)`,whiteSpace:`nowrap`},role:`status`,"aria-live":r,"aria-atomic":!0},n)}function WTe(){let[e,t]=(0,h.useState)(``);return{announce:(0,h.useCallback)(e=>{e!=null&&t(e)},[]),announcement:e}}var a5=(0,h.createContext)(null);function GTe(e){let t=(0,h.useContext)(a5);(0,h.useEffect)(()=>{if(!t)throw Error(`useDndMonitor must be used within a children of `);return t(e)},[e,t])}function KTe(){let[e]=(0,h.useState)(()=>new Set),t=(0,h.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,h.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>e[n]?.call(e,r))},[e]),t]}var qTe={draggable:` - To pick up a draggable item, press the space bar. - While dragging, use the arrow keys to move the item. - Press space again to drop the item in its new position, or press escape to cancel. - `},JTe={onDragStart(e){let{active:t}=e;return`Picked up draggable item `+t.id+`.`},onDragOver(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was moved over droppable area `+n.id+`.`:`Draggable item `+t.id+` is no longer over a droppable area.`},onDragEnd(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was dropped over droppable area `+n.id:`Draggable item `+t.id+` was dropped.`},onDragCancel(e){let{active:t}=e;return`Dragging was cancelled. Draggable item `+t.id+` was dropped.`}};function YTe(e){let{announcements:t=JTe,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=qTe}=e,{announce:a,announcement:o}=WTe(),s=Z8(`DndLiveRegion`),[c,l]=(0,h.useState)(!1);if((0,h.useEffect)(()=>{l(!0)},[]),GTe((0,h.useMemo)(()=>({onDragStart(e){let{active:n}=e;a(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&a(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;a(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;a(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;a(t.onDragCancel({active:n,over:r}))}}),[a,t])),!c)return null;let u=h.createElement(h.Fragment,null,h.createElement(HTe,{id:r,value:i.draggable}),h.createElement(UTe,{id:s,announcement:o}));return n?(0,Ae.createPortal)(u,n):u}var o5;(function(e){e.DragStart=`dragStart`,e.DragMove=`dragMove`,e.DragEnd=`dragEnd`,e.DragCancel=`dragCancel`,e.DragOver=`dragOver`,e.RegisterDroppable=`registerDroppable`,e.SetDroppableDisabled=`setDroppableDisabled`,e.UnregisterDroppable=`unregisterDroppable`})(o5||={});function s5(){}function c5(e,t){return(0,h.useMemo)(()=>({sensor:e,options:t??{}}),[e,t])}function XTe(){var e=[...arguments];return(0,h.useMemo)(()=>[...e].filter(e=>e!=null),[...e])}var l5=Object.freeze({x:0,y:0});function u5(e,t){return Math.sqrt((e.x-t.x)**2+(e.y-t.y)**2)}function d5(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function ZTe(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function f5(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function p5(e,t){if(!e||e.length===0)return null;let[n]=e;return t?n[t]:n}function m5(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}var QTe=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=m5(t,t.left,t.top),a=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=u5(m5(r),i);a.push({id:t,data:{droppableContainer:e,value:n}})}}return a.sort(d5)},$Te=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=f5(t),a=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=f5(r),o=i.reduce((e,t,r)=>e+u5(n[r],t),0),s=Number((o/4).toFixed(4));a.push({id:t,data:{droppableContainer:e,value:s}})}}return a.sort(d5)};function eEe(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),o=i-r,s=a-n;if(r{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=[];for(let e of r){let{id:r}=e,a=n.get(r);if(a){let n=eEe(a,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(ZTe)};function nEe(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function h5(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:l5}function rEe(e){return function(t){return[...arguments].slice(1).reduce((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}var iEe=rEe(1);function aEe(e){if(e.startsWith(`matrix3d(`)){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith(`matrix(`)){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function oEe(e,t,n){let r=aEe(t);if(!r)return e;let{scaleX:i,scaleY:a,x:o,y:s}=r,c=e.left-o-(1-i)*parseFloat(n),l=e.top-s-(1-a)*parseFloat(n.slice(n.indexOf(` `)+1)),u=i?e.width/i:e.width,d=a?e.height/a:e.height;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c}}var sEe={ignoreTransform:!1};function g5(e,t){t===void 0&&(t=sEe);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=z8(e).getComputedStyle(e);t&&(n=oEe(n,t,r))}let{top:r,left:i,width:a,height:o,bottom:s,right:c}=n;return{top:r,left:i,width:a,height:o,bottom:s,right:c}}function _5(e){return g5(e,{ignoreTransform:!0})}function cEe(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function lEe(e,t){return t===void 0&&(t=z8(e).getComputedStyle(e)),t.position===`fixed`}function uEe(e,t){t===void 0&&(t=z8(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return[`overflow`,`overflowX`,`overflowY`].some(e=>{let r=t[e];return typeof r==`string`&&n.test(r)})}function v5(e,t){let n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(B8(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!V8(i)||H8(i)||n.includes(i))return n;let a=z8(e).getComputedStyle(i);return i!==e&&uEe(i,a)&&n.push(i),lEe(i,a)?n:r(i.parentNode)}return e?r(e):n}function y5(e){let[t]=v5(e,1);return t??null}function b5(e){return!I8||!e?null:L8(e)?e:R8(e)?B8(e)||e===U8(e).scrollingElement?window:V8(e)?e:null:null}function x5(e){return L8(e)?e.scrollX:e.scrollLeft}function S5(e){return L8(e)?e.scrollY:e.scrollTop}function C5(e){return{x:x5(e),y:S5(e)}}var w5;(function(e){e[e.Forward=1]=`Forward`,e[e.Backward=-1]=`Backward`})(w5||={});function T5(e){return!I8||!e?!1:e===document.scrollingElement}function E5(e){let t={x:0,y:0},n=T5(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}var dEe={x:.2,y:.2};function fEe(e,t,n,r,i){let{top:a,left:o,right:s,bottom:c}=n;r===void 0&&(r=10),i===void 0&&(i=dEe);let{isTop:l,isBottom:u,isLeft:d,isRight:f}=E5(e),p={x:0,y:0},m={x:0,y:0},h={height:t.height*i.y,width:t.width*i.x};return!l&&a<=t.top+h.height?(p.y=w5.Backward,m.y=r*Math.abs((t.top+h.height-a)/h.height)):!u&&c>=t.bottom-h.height&&(p.y=w5.Forward,m.y=r*Math.abs((t.bottom-h.height-c)/h.height)),!f&&s>=t.right-h.width?(p.x=w5.Forward,m.x=r*Math.abs((t.right-h.width-s)/h.width)):!d&&o<=t.left+h.width&&(p.x=w5.Backward,m.x=r*Math.abs((t.left+h.width-o)/h.width)),{direction:p,speed:m}}function pEe(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function D5(e){return e.reduce((e,t)=>$8(e,C5(t)),l5)}function mEe(e){return e.reduce((e,t)=>e+x5(t),0)}function hEe(e){return e.reduce((e,t)=>e+S5(t),0)}function gEe(e,t){if(t===void 0&&(t=g5),!e)return;let{top:n,left:r,bottom:i,right:a}=t(e);y5(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:`center`,inline:`center`})}var _Ee=[[`x`,[`left`,`right`],mEe],[`y`,[`top`,`bottom`],hEe]],O5=class{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let n=v5(t),r=D5(n);this.rect={...e},this.width=e.width,this.height=e.height;for(let[e,t,i]of _Ee)for(let a of t)Object.defineProperty(this,a,{get:()=>{let t=i(n),o=r[e]-t;return this.rect[a]+o},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}},k5=class{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>this.target?.removeEventListener(...e))},this.target=e}add(e,t,n){var r;(r=this.target)==null||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}};function vEe(e){let{EventTarget:t}=z8(e);return e instanceof t?e:U8(e)}function A5(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return typeof t==`number`?Math.sqrt(n**2+r**2)>t:`x`in t&&`y`in t?n>t.x&&r>t.y:`x`in t?n>t.x:`y`in t&&r>t.y}var j5;(function(e){e.Click=`click`,e.DragStart=`dragstart`,e.Keydown=`keydown`,e.ContextMenu=`contextmenu`,e.Resize=`resize`,e.SelectionChange=`selectionchange`,e.VisibilityChange=`visibilitychange`})(j5||={});function M5(e){e.preventDefault()}function yEe(e){e.stopPropagation()}var N5;(function(e){e.Space=`Space`,e.Down=`ArrowDown`,e.Right=`ArrowRight`,e.Left=`ArrowLeft`,e.Up=`ArrowUp`,e.Esc=`Escape`,e.Enter=`Enter`,e.Tab=`Tab`})(N5||={});var P5={start:[N5.Space,N5.Enter],cancel:[N5.Esc],end:[N5.Space,N5.Enter,N5.Tab]},bEe=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case N5.Right:return{...n,x:n.x+25};case N5.Left:return{...n,x:n.x-25};case N5.Down:return{...n,y:n.y+25};case N5.Up:return{...n,y:n.y-25}}},F5=class{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new k5(U8(t)),this.windowListeners=new k5(z8(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(j5.Resize,this.handleCancel),this.windowListeners.add(j5.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(j5.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&gEe(n),t(l5)}handleKeyDown(e){if(t5(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:i=P5,coordinateGetter:a=bEe,scrollBehavior:o=`smooth`}=r,{code:s}=e;if(i.end.includes(s)){this.handleEnd(e);return}if(i.cancel.includes(s)){this.handleCancel(e);return}let{collisionRect:c}=n.current,l=c?{x:c.left,y:c.top}:l5;this.referenceCoordinates||=l;let u=a(e,{active:t,context:n.current,currentCoordinates:l});if(u){let t=e5(u,l),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(let n of i){let i=e.code,{isTop:a,isRight:s,isLeft:c,isBottom:l,maxScroll:d,minScroll:f}=E5(n),p=pEe(n),m={x:Math.min(i===N5.Right?p.right-p.width/2:p.right,Math.max(i===N5.Right?p.left:p.left+p.width/2,u.x)),y:Math.min(i===N5.Down?p.bottom-p.height/2:p.bottom,Math.max(i===N5.Down?p.top:p.top+p.height/2,u.y))},h=i===N5.Right&&!s||i===N5.Left&&!c,g=i===N5.Down&&!l||i===N5.Up&&!a;if(h&&m.x!==u.x){let e=n.scrollLeft+t.x,a=i===N5.Right&&e<=d.x||i===N5.Left&&e>=f.x;if(a&&!t.y){n.scrollTo({left:e,behavior:o});return}r.x=a?n.scrollLeft-e:i===N5.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:o});break}if(g&&m.y!==u.y){let e=n.scrollTop+t.y,a=i===N5.Down&&e<=d.y||i===N5.Up&&e>=f.y;if(a&&!t.x){n.scrollTo({top:e,behavior:o});return}r.y=a?n.scrollTop-e:i===N5.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:o});break}}this.handleMove(e,$8(e5(u,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};F5.activators=[{eventName:`onKeyDown`,handler:(e,t,n)=>{let{keyboardCodes:r=P5,onActivation:i}=t,{active:a}=n,{code:o}=e.nativeEvent;if(r.start.includes(o)){let t=a.activatorNode.current;return t&&e.target!==t?!1:(e.preventDefault(),i?.({event:e.nativeEvent}),!0)}return!1}}];function I5(e){return!!(e&&`distance`in e)}function L5(e){return!!(e&&`delay`in e)}var R5=class{constructor(e,t,n){n===void 0&&(n=vEe(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:r}=e,{target:i}=r;this.props=e,this.events=t,this.document=U8(i),this.documentListeners=new k5(this.document),this.listeners=new k5(n),this.windowListeners=new k5(z8(i)),this.initialCoordinates=n5(r)??l5,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(j5.Resize,this.handleCancel),this.windowListeners.add(j5.DragStart,M5),this.windowListeners.add(j5.VisibilityChange,this.handleCancel),this.windowListeners.add(j5.ContextMenu,M5),this.documentListeners.add(j5.Keydown,this.handleKeydown),t){if(n!=null&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(L5(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(I5(t)){this.handlePending(t);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){let{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(j5.Click,yEe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(j5.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){let{activated:t,initialCoordinates:n,props:r}=this,{onMove:i,options:{activationConstraint:a}}=r;if(!n)return;let o=n5(e)??l5,s=e5(n,o);if(!t&&a){if(I5(a)){if(a.tolerance!=null&&A5(s,a.tolerance))return this.handleCancel();if(A5(s,a.distance))return this.handleStart()}if(L5(a)&&A5(s,a.tolerance))return this.handleCancel();this.handlePending(a,s)}else e.cancelable&&e.preventDefault(),i(o)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===N5.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}},xEe={cancel:{name:`pointercancel`},move:{name:`pointermove`},end:{name:`pointerup`}},z5=class extends R5{constructor(e){let{event:t}=e,n=U8(t.target);super(e,xEe,n)}};z5.activators=[{eventName:`onPointerDown`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];var SEe={move:{name:`mousemove`},end:{name:`mouseup`}},B5;(function(e){e[e.RightClick=2]=`RightClick`})(B5||={});var CEe=class extends R5{constructor(e){super(e,SEe,U8(e.event.target))}};CEe.activators=[{eventName:`onMouseDown`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==B5.RightClick&&(r?.({event:n}),!0)}}];var V5={cancel:{name:`touchcancel`},move:{name:`touchmove`},end:{name:`touchend`}},wEe=class extends R5{constructor(e){super(e,V5)}static setup(){return window.addEventListener(V5.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(V5.move.name,e)};function e(){}}};wEe.activators=[{eventName:`onTouchStart`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:i}=n;return i.length>1?!1:(r?.({event:n}),!0)}}];var H5;(function(e){e[e.Pointer=0]=`Pointer`,e[e.DraggableRect=1]=`DraggableRect`})(H5||={});var U5;(function(e){e[e.TreeOrder=0]=`TreeOrder`,e[e.ReversedTreeOrder=1]=`ReversedTreeOrder`})(U5||={});function TEe(e){let{acceleration:t,activator:n=H5.Pointer,canScroll:r,draggingRect:i,enabled:a,interval:o=5,order:s=U5.TreeOrder,pointerCoordinates:c,scrollableAncestors:l,scrollableAncestorRects:u,delta:d,threshold:f}=e,p=DEe({delta:d,disabled:!a}),[m,g]=LTe(),_=(0,h.useRef)({x:0,y:0}),v=(0,h.useRef)({x:0,y:0}),y=(0,h.useMemo)(()=>{switch(n){case H5.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case H5.DraggableRect:return i}},[n,i,c]),b=(0,h.useRef)(null),x=(0,h.useCallback)(()=>{let e=b.current;if(!e)return;let t=_.current.x*v.current.x,n=_.current.y*v.current.y;e.scrollBy(t,n)},[]),S=(0,h.useMemo)(()=>s===U5.TreeOrder?[...l].reverse():l,[s,l]);(0,h.useEffect)(()=>{if(!a||!l.length||!y)g();else{for(let e of S){if(r?.(e)===!1)continue;let n=l.indexOf(e),i=u[n];if(!i)continue;let{direction:a,speed:s}=fEe(e,i,y,t,f);for(let e of[`x`,`y`])p[e][a[e]]||(s[e]=0,a[e]=0);if(s.x>0||s.y>0){g(),b.current=e,m(x,o),_.current=s,v.current=a;return}}_.current={x:0,y:0},v.current={x:0,y:0},g()}},[t,x,r,g,a,o,JSON.stringify(y),JSON.stringify(p),m,l,S,u,JSON.stringify(f)])}var EEe={x:{[w5.Backward]:!1,[w5.Forward]:!1},y:{[w5.Backward]:!1,[w5.Forward]:!1}};function DEe(e){let{delta:t,disabled:n}=e,r=Y8(t);return q8(e=>{if(n||!r||!e)return EEe;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[w5.Backward]:e.x[w5.Backward]||i.x===-1,[w5.Forward]:e.x[w5.Forward]||i.x===1},y:{[w5.Backward]:e.y[w5.Backward]||i.y===-1,[w5.Forward]:e.y[w5.Forward]||i.y===1}}},[n,t,r])}function OEe(e,t){let n=t==null?void 0:e.get(t),r=n?n.node.current:null;return q8(e=>t==null?null:r??e??null,[r,t])}function kEe(e,t){return(0,h.useMemo)(()=>e.reduce((e,n)=>{let{sensor:r}=n,i=r.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}));return[...e,...i]},[]),[e,t])}var W5;(function(e){e[e.Always=0]=`Always`,e[e.BeforeDragging=1]=`BeforeDragging`,e[e.WhileDragging=2]=`WhileDragging`})(W5||={});var G5;(function(e){e.Optimized=`optimized`})(G5||={});var K5=new Map;function AEe(e,t){let{dragging:n,dependencies:r,config:i}=t,[a,o]=(0,h.useState)(null),{frequency:s,measure:c,strategy:l}=i,u=(0,h.useRef)(e),d=_(),f=K8(d),p=(0,h.useCallback)(function(e){e===void 0&&(e=[]),!f.current&&o(t=>t===null?e:t.concat(e.filter(e=>!t.includes(e))))},[f]),m=(0,h.useRef)(null),g=q8(t=>{if(d&&!n)return K5;if(!t||t===K5||u.current!==e||a!=null){let t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new O5(c(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,a,n,d,c]);return(0,h.useEffect)(()=>{u.current=e},[e]),(0,h.useEffect)(()=>{d||p()},[n,d]),(0,h.useEffect)(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),(0,h.useEffect)(()=>{d||typeof s!=`number`||m.current!==null||(m.current=setTimeout(()=>{p(),m.current=null},s))},[s,d,p,...r]),{droppableRects:g,measureDroppableContainers:p,measuringScheduled:a!=null};function _(){switch(l){case W5.Always:return!1;case W5.BeforeDragging:return n;default:return!n}}}function q5(e,t){return q8(n=>e?n||(typeof t==`function`?t(e):e):null,[t,e])}function jEe(e,t){return q5(e,t)}function MEe(e){let{callback:t,disabled:n}=e,r=G8(t),i=(0,h.useMemo)(()=>{if(n||typeof window>`u`||window.MutationObserver===void 0)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,h.useEffect)(()=>()=>i?.disconnect(),[i]),i}function J5(e){let{callback:t,disabled:n}=e,r=G8(t),i=(0,h.useMemo)(()=>{if(n||typeof window>`u`||window.ResizeObserver===void 0)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,h.useEffect)(()=>()=>i?.disconnect(),[i]),i}function NEe(e){return new O5(g5(e),e)}function Y5(e,t,n){t===void 0&&(t=NEe);let[r,i]=(0,h.useState)(null);function a(){i(r=>{if(!e)return null;if(e.isConnected===!1)return r??n??null;let i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i})}let o=MEe({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if(t===`childList`&&r instanceof HTMLElement&&r.contains(e)){a();break}}}}),s=J5({callback:a});return W8(()=>{a(),e?(s?.observe(e),o?.observe(document.body,{childList:!0,subtree:!0})):(s?.disconnect(),o?.disconnect())},[e]),r}function PEe(e){return h5(e,q5(e))}var X5=[];function FEe(e){let t=(0,h.useRef)(e),n=q8(n=>e?n&&n!==X5&&e&&t.current&&e.parentNode===t.current.parentNode?n:v5(e):X5,[e]);return(0,h.useEffect)(()=>{t.current=e},[e]),n}function IEe(e){let[t,n]=(0,h.useState)(null),r=(0,h.useRef)(e),i=(0,h.useCallback)(e=>{let t=b5(e.target);t&&n(e=>e?(e.set(t,C5(t)),new Map(e)):null)},[]);return(0,h.useEffect)(()=>{let t=r.current;if(e!==t){a(t);let o=e.map(e=>{let t=b5(e);return t?(t.addEventListener(`scroll`,i,{passive:!0}),[t,C5(t)]):null}).filter(e=>e!=null);n(o.length?new Map(o):null),r.current=e}return()=>{a(e),a(t)};function a(e){e.forEach(e=>{b5(e)?.removeEventListener(`scroll`,i)})}},[i,e]),(0,h.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>$8(e,t),l5):D5(e):l5,[e,t])}function Z5(e,t){t===void 0&&(t=[]);let n=(0,h.useRef)(null);return(0,h.useEffect)(()=>{n.current=null},t),(0,h.useEffect)(()=>{let t=e!==l5;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?e5(e,n.current):l5}function LEe(e){(0,h.useEffect)(()=>{if(!I8)return;let t=e.map(e=>{let{sensor:t}=e;return t.setup==null?void 0:t.setup()});return()=>{for(let e of t)e?.()}},e.map(e=>{let{sensor:t}=e;return t}))}function REe(e,t){return(0,h.useMemo)(()=>e.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[e,t])}function Q5(e){return(0,h.useMemo)(()=>e?cEe(e):null,[e])}var $5=[];function zEe(e,t){t===void 0&&(t=g5);let[n]=e,r=Q5(n?z8(n):null),[i,a]=(0,h.useState)($5);function o(){a(()=>e.length?e.map(e=>T5(e)?r:new O5(t(e),e)):$5)}let s=J5({callback:o});return W8(()=>{s?.disconnect(),o(),e.forEach(e=>s?.observe(e))},[e]),i}function BEe(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return V8(t)?t:e}function VEe(e){let{measure:t}=e,[n,r]=(0,h.useState)(null),i=J5({callback:(0,h.useCallback)(e=>{for(let{target:n}of e)if(V8(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),[a,o]=J8((0,h.useCallback)(e=>{let n=BEe(e);i?.disconnect(),n&&i?.observe(n),r(n?t(n):null)},[t,i]));return(0,h.useMemo)(()=>({nodeRef:a,rect:n,setRef:o}),[n,a,o])}var HEe=[{sensor:z5,options:{}},{sensor:F5,options:{}}],UEe={current:{}},e7={draggable:{measure:_5},droppable:{measure:_5,strategy:W5.WhileDragging,frequency:G5.Optimized},dragOverlay:{measure:g5}},t7=class extends Map{get(e){return e==null?void 0:super.get(e)??void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){return this.get(e)?.node.current??void 0}},WEe={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new t7,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:s5},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:e7,measureDroppableContainers:s5,windowRect:null,measuringScheduled:!1},GEe={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:``},dispatch:s5,draggableNodes:new Map,over:null,measureDroppableContainers:s5},n7=(0,h.createContext)(GEe),r7=(0,h.createContext)(WEe);function KEe(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new t7}}}function qEe(e,t){switch(t.type){case o5.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case o5.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case o5.DragEnd:case o5.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case o5.RegisterDroppable:{let{element:n}=t,{id:r}=n,i=new t7(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case o5.SetDroppableDisabled:{let{id:n,key:r,disabled:i}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;let o=new t7(e.droppable.containers);return o.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case o5.UnregisterDroppable:{let{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let a=new t7(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function JEe(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:i}=(0,h.useContext)(n7),a=Y8(r),o=Y8(n?.id);return(0,h.useEffect)(()=>{if(!t&&!r&&a&&o!=null){if(!t5(a)||document.activeElement===a.target)return;let e=i.get(o);if(!e)return;let{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=BTe(e);if(t){t.focus();break}}})}},[r,t,i,o,a]),null}function YEe(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}function XEe(e){return(0,h.useMemo)(()=>({draggable:{...e7.draggable,...e?.draggable},droppable:{...e7.droppable,...e?.droppable},dragOverlay:{...e7.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function ZEe(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e,a=(0,h.useRef)(!1),{x:o,y:s}=typeof i==`boolean`?{x:i,y:i}:i;W8(()=>{if(!o&&!s||!t){a.current=!1;return}if(a.current||!r)return;let e=t?.node.current;if(!e||e.isConnected===!1)return;let i=h5(n(e),r);if(o||(i.x=0),s||(i.y=0),a.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=y5(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,o,s,r,n])}var i7=(0,h.createContext)({...l5,scaleX:1,scaleY:1}),a7;(function(e){e[e.Uninitialized=0]=`Uninitialized`,e[e.Initializing=1]=`Initializing`,e[e.Initialized=2]=`Initialized`})(a7||={});var QEe=(0,h.memo)(function(e){let{id:t,accessibility:n,autoScroll:r=!0,children:i,sensors:a=HEe,collisionDetection:o=tEe,measuring:s,modifiers:c,...l}=e,[u,d]=(0,h.useReducer)(qEe,void 0,KEe),[f,p]=KTe(),[m,g]=(0,h.useState)(a7.Uninitialized),_=m===a7.Initialized,{draggable:{active:v,nodes:y,translate:b},droppable:{containers:x}}=u,S=v==null?null:y.get(v),C=(0,h.useRef)({initial:null,translated:null}),w=(0,h.useMemo)(()=>v==null?null:{id:v,data:S?.data??UEe,rect:C},[v,S]),T=(0,h.useRef)(null),[E,D]=(0,h.useState)(null),[O,k]=(0,h.useState)(null),A=K8(l,Object.values(l)),j=Z8(`DndDescribedBy`,t),M=(0,h.useMemo)(()=>x.getEnabled(),[x]),N=XEe(s),{droppableRects:P,measureDroppableContainers:F,measuringScheduled:ee}=AEe(M,{dragging:_,dependencies:[b.x,b.y],config:N.droppable}),I=OEe(y,v),te=(0,h.useMemo)(()=>O?n5(O):null,[O]),L=ke(),ne=jEe(I,N.draggable.measure);ZEe({activeNode:v==null?null:y.get(v),config:L.layoutShiftCompensation,initialRect:ne,measure:N.draggable.measure});let re=Y5(I,N.draggable.measure,ne),ie=Y5(I?I.parentElement:null),ae=(0,h.useRef)({activatorEvent:null,active:null,activeNode:I,collisionRect:null,collisions:null,droppableRects:P,draggableNodes:y,draggingNode:null,draggingNodeRect:null,droppableContainers:x,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),oe=x.getNodeFor(ae.current.over?.id),se=VEe({measure:N.dragOverlay.measure}),R=se.nodeRef.current??I,ce=_?se.rect??re:null,le=!!(se.nodeRef.current&&se.rect),z=PEe(le?null:re),ue=Q5(R?z8(R):null),de=FEe(_?oe??I:null),fe=zEe(de),pe=YEe(c,{transform:{x:b.x-z.x,y:b.y-z.y,scaleX:1,scaleY:1},activatorEvent:O,active:w,activeNodeRect:re,containerNodeRect:ie,draggingNodeRect:ce,over:ae.current.over,overlayNodeRect:se.rect,scrollableAncestors:de,scrollableAncestorRects:fe,windowRect:ue}),me=te?$8(te,b):null,he=IEe(de),ge=Z5(he),_e=Z5(he,[re]),ve=$8(pe,ge),B=ce?iEe(ce,pe):null,ye=w&&B?o({active:w,collisionRect:B,droppableRects:P,droppableContainers:M,pointerCoordinates:me}):null,be=p5(ye,`id`),[xe,Se]=(0,h.useState)(null),Ce=nEe(le?pe:$8(pe,_e),xe?.rect??null,re),we=(0,h.useRef)(null),Te=(0,h.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(T.current==null)return;let i=y.get(T.current);if(!i)return;let a=e.nativeEvent,o=new n({active:T.current,activeNode:i,event:a,options:r,context:ae,onAbort(e){if(!y.get(e))return;let{onDragAbort:t}=A.current,n={id:e};t?.(n),f({type:`onDragAbort`,event:n})},onPending(e,t,n,r){if(!y.get(e))return;let{onDragPending:i}=A.current,a={id:e,constraint:t,initialCoordinates:n,offset:r};i?.(a),f({type:`onDragPending`,event:a})},onStart(e){let t=T.current;if(t==null)return;let n=y.get(t);if(!n)return;let{onDragStart:r}=A.current,i={activatorEvent:a,active:{id:t,data:n.data,rect:C}};(0,Ae.unstable_batchedUpdates)(()=>{r?.(i),g(a7.Initializing),d({type:o5.DragStart,initialCoordinates:e,active:t}),f({type:`onDragStart`,event:i}),D(we.current),k(a)})},onMove(e){d({type:o5.DragMove,coordinates:e})},onEnd:s(o5.DragEnd),onCancel:s(o5.DragCancel)});we.current=o;function s(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=ae.current,o=null;if(t&&i){let{cancelDrop:s}=A.current;o={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===o5.DragEnd&&typeof s==`function`&&await Promise.resolve(s(o))&&(e=o5.DragCancel)}T.current=null,(0,Ae.unstable_batchedUpdates)(()=>{d({type:e}),g(a7.Uninitialized),Se(null),D(null),k(null),we.current=null;let t=e===o5.DragEnd?`onDragEnd`:`onDragCancel`;if(o){let e=A.current[t];e?.(o),f({type:t,event:o})}})}}},[y]),Ee=kEe(a,(0,h.useCallback)((e,t)=>(n,r)=>{let i=n.nativeEvent,a=y.get(r);if(T.current!==null||!a||i.dndKit||i.defaultPrevented)return;let o={active:a};e(n,t.options,o)===!0&&(i.dndKit={capturedBy:t.sensor},T.current=r,Te(n,t))},[y,Te]));LEe(a),W8(()=>{re&&m===a7.Initializing&&g(a7.Initialized)},[re,m]),(0,h.useEffect)(()=>{let{onDragMove:e}=A.current,{active:t,activatorEvent:n,collisions:r,over:i}=ae.current;if(!t||!n)return;let a={active:t,activatorEvent:n,collisions:r,delta:{x:ve.x,y:ve.y},over:i};(0,Ae.unstable_batchedUpdates)(()=>{e?.(a),f({type:`onDragMove`,event:a})})},[ve.x,ve.y]),(0,h.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=ae.current;if(!e||T.current==null||!t||!i)return;let{onDragOver:a}=A.current,o=r.get(be),s=o&&o.rect.current?{id:o.id,rect:o.rect.current,data:o.data,disabled:o.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,Ae.unstable_batchedUpdates)(()=>{Se(s),a?.(c),f({type:`onDragOver`,event:c})})},[be]),W8(()=>{ae.current={activatorEvent:O,active:w,activeNode:I,collisionRect:B,collisions:ye,droppableRects:P,draggableNodes:y,draggingNode:R,draggingNodeRect:ce,droppableContainers:x,over:xe,scrollableAncestors:de,scrollAdjustedTranslate:ve},C.current={initial:ce,translated:B}},[w,I,ye,B,y,R,ce,P,x,xe,de,ve]),TEe({...L,delta:b,draggingRect:B,pointerCoordinates:me,scrollableAncestors:de,scrollableAncestorRects:fe});let De=(0,h.useMemo)(()=>({active:w,activeNode:I,activeNodeRect:re,activatorEvent:O,collisions:ye,containerNodeRect:ie,dragOverlay:se,draggableNodes:y,droppableContainers:x,droppableRects:P,over:xe,measureDroppableContainers:F,scrollableAncestors:de,scrollableAncestorRects:fe,measuringConfiguration:N,measuringScheduled:ee,windowRect:ue}),[w,I,re,O,ye,ie,se,y,x,P,xe,F,de,fe,N,ee,ue]),Oe=(0,h.useMemo)(()=>({activatorEvent:O,activators:Ee,active:w,activeNodeRect:re,ariaDescribedById:{draggable:j},dispatch:d,draggableNodes:y,over:xe,measureDroppableContainers:F}),[O,Ee,w,re,d,j,y,xe,F]);return h.createElement(a5.Provider,{value:p},h.createElement(n7.Provider,{value:Oe},h.createElement(r7.Provider,{value:De},h.createElement(i7.Provider,{value:Ce},i)),h.createElement(JEe,{disabled:n?.restoreFocus===!1})),h.createElement(YTe,{...n,hiddenTextDescribedById:j}));function ke(){let e=E?.autoScrollEnabled===!1,t=typeof r==`object`?r.enabled===!1:r===!1,n=_&&!e&&!t;return typeof r==`object`?{...r,enabled:n}:{enabled:n}}}),$Ee=(0,h.createContext)(null),o7=`button`,eDe=`Draggable`;function tDe(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e,a=Z8(eDe),{activators:o,activatorEvent:s,active:c,activeNodeRect:l,ariaDescribedById:u,draggableNodes:d,over:f}=(0,h.useContext)(n7),{role:p=o7,roleDescription:m=`draggable`,tabIndex:g=0}=i??{},_=c?.id===t,v=(0,h.useContext)(_?i7:$Ee),[y,b]=J8(),[x,S]=J8(),C=REe(o,t),w=K8(n);return W8(()=>(d.set(t,{id:t,key:a,node:y,activatorNode:x,data:w}),()=>{let e=d.get(t);e&&e.key===a&&d.delete(t)}),[d,t]),{active:c,activatorEvent:s,activeNodeRect:l,attributes:(0,h.useMemo)(()=>({role:p,tabIndex:g,"aria-disabled":r,"aria-pressed":_&&p===o7?!0:void 0,"aria-roledescription":m,"aria-describedby":u.draggable}),[r,p,g,_,m,u.draggable]),isDragging:_,listeners:r?void 0:C,node:y,over:f,setNodeRef:b,setActivatorNodeRef:S,transform:v}}function nDe(){return(0,h.useContext)(r7)}var rDe=`Droppable`,iDe={timeout:25};function aDe(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e,a=Z8(rDe),{active:o,dispatch:s,over:c,measureDroppableContainers:l}=(0,h.useContext)(n7),u=(0,h.useRef)({disabled:n}),d=(0,h.useRef)(!1),f=(0,h.useRef)(null),p=(0,h.useRef)(null),{disabled:m,updateMeasurementsFor:g,timeout:_}={...iDe,...i},v=K8(g??r),y=J5({callback:(0,h.useCallback)(()=>{d.current?(p.current!=null&&clearTimeout(p.current),p.current=setTimeout(()=>{l(Array.isArray(v.current)?v.current:[v.current]),p.current=null},_)):d.current=!0},[_]),disabled:m||!o}),[b,x]=J8((0,h.useCallback)((e,t)=>{y&&(t&&(y.unobserve(t),d.current=!1),e&&y.observe(e))},[y])),S=K8(t);return(0,h.useEffect)(()=>{y&&b.current&&(y.disconnect(),d.current=!1,y.observe(b.current))},[b,y]),(0,h.useEffect)(()=>(s({type:o5.RegisterDroppable,element:{id:r,key:a,disabled:n,node:b,rect:f,data:S}}),()=>s({type:o5.UnregisterDroppable,key:a,id:r})),[r]),(0,h.useEffect)(()=>{n!==u.current.disabled&&(s({type:o5.SetDroppableDisabled,id:r,key:a,disabled:n}),u.current.disabled=n)},[r,a,n,s]),{active:o,rect:f,isOver:c?.id===r,node:b,over:c,setNodeRef:x}}function s7(e,t,n){let r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function oDe(e,t){return e.reduce((e,n,r)=>{let i=t.get(n);return i&&(e[r]=i),e},Array(e.length))}function c7(e){return e!==null&&e>=0}function sDe(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{let{rects:t,activeNodeRect:n,activeIndex:r,overIndex:i,index:a}=e,o=t[r]??n;if(!o)return null;let s=uDe(t,a,r);if(a===r){let e=t[i];return e?{x:rr&&a<=i?{x:-o.width-s,y:0,...l7}:a=i?{x:o.width+s,y:0,...l7}:{x:0,y:0,...l7}};function uDe(e,t,n){let r=e[t],i=e[t-1],a=e[t+1];return!r||!i&&!a?0:n{let{rects:t,activeIndex:n,overIndex:r,index:i}=e,a=s7(t,r,n),o=t[i],s=a[i];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},d7={scaleX:1,scaleY:1},dDe=e=>{let{activeIndex:t,activeNodeRect:n,index:r,rects:i,overIndex:a}=e,o=i[t]??n;if(!o)return null;if(r===t){let e=i[a];return e?{x:0,y:tt&&r<=a?{x:0,y:-o.height-s,...d7}:r=a?{x:0,y:o.height+s,...d7}:{x:0,y:0,...d7}};function fDe(e,t,n){let r=e[t],i=e[t-1],a=e[t+1];return r?nr.map(e=>typeof e==`object`&&`id`in e?e.id:e),[r]),m=o!=null,g=o?p.indexOf(o.id):-1,_=l?p.indexOf(l.id):-1,v=(0,h.useRef)(p),y=!sDe(p,v.current),b=_!==-1&&g===-1||y,x=cDe(a);W8(()=>{y&&m&&u(p)},[y,p,m,u]),(0,h.useEffect)(()=>{v.current=p},[p]);let S=(0,h.useMemo)(()=>({activeIndex:g,containerId:d,disabled:x,disableTransforms:b,items:p,overIndex:_,useDragOverlay:f,sortedRects:oDe(p,c),strategy:i}),[g,d,x.draggable,x.droppable,b,p,_,c,f,i]);return h.createElement(p7.Provider,{value:S},t)}var pDe=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return s7(n,r,i).indexOf(t)},mDe=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:a,newIndex:o,previousItems:s,previousContainerId:c,transition:l}=e;return!l||!r||s!==a&&i===o?!1:n?!0:o!==i&&t===c},hDe={duration:200,easing:`ease`},h7=`transform`,gDe=r5.Transition.toString({property:h7,duration:0,easing:`linear`}),_De={roleDescription:`sortable`};function vDe(e){let{disabled:t,index:n,node:r,rect:i}=e,[a,o]=(0,h.useState)(null),s=(0,h.useRef)(n);return W8(()=>{if(!t&&n!==s.current&&r.current){let e=i.current;if(e){let t=g5(r.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&o(n)}}n!==s.current&&(s.current=n)},[t,n,r,i]),(0,h.useEffect)(()=>{a&&o(null)},[a]),a}function yDe(e){let{animateLayoutChanges:t=mDe,attributes:n,disabled:r,data:i,getNewIndex:a=pDe,id:o,strategy:s,resizeObserverConfig:c,transition:l=hDe}=e,{items:u,containerId:d,activeIndex:f,disabled:p,disableTransforms:m,sortedRects:g,overIndex:_,useDragOverlay:v,strategy:y}=(0,h.useContext)(p7),b=bDe(r,p),x=u.indexOf(o),S=(0,h.useMemo)(()=>({sortable:{containerId:d,index:x,items:u},...i}),[d,i,x,u]),C=(0,h.useMemo)(()=>u.slice(u.indexOf(o)),[u,o]),{rect:w,node:T,isOver:E,setNodeRef:D}=aDe({id:o,data:S,disabled:b.droppable,resizeObserverConfig:{updateMeasurementsFor:C,...c}}),{active:O,activatorEvent:k,activeNodeRect:A,attributes:j,setNodeRef:M,listeners:N,isDragging:P,over:F,setActivatorNodeRef:ee,transform:I}=tDe({id:o,data:S,attributes:{..._De,...n},disabled:b.draggable}),te=ITe(D,M),L=!!O,ne=L&&!m&&c7(f)&&c7(_),re=!v&&P,ie=ne?(re&&ne?I:null)??(s??y)({rects:g,activeNodeRect:A,activeIndex:f,overIndex:_,index:x}):null,ae=c7(f)&&c7(_)?a({id:o,items:u,activeIndex:f,overIndex:_}):x,oe=O?.id,se=(0,h.useRef)({activeId:oe,items:u,newIndex:ae,containerId:d}),R=u!==se.current.items,ce=t({active:O,containerId:d,isDragging:P,isSorting:L,id:o,index:x,items:u,newIndex:se.current.newIndex,previousItems:se.current.items,previousContainerId:se.current.containerId,transition:l,wasDragging:se.current.activeId!=null}),le=vDe({disabled:!ce,index:x,node:T,rect:w});return(0,h.useEffect)(()=>{L&&se.current.newIndex!==ae&&(se.current.newIndex=ae),d!==se.current.containerId&&(se.current.containerId=d),u!==se.current.items&&(se.current.items=u)},[L,ae,d,u]),(0,h.useEffect)(()=>{if(oe===se.current.activeId)return;if(oe!=null&&se.current.activeId==null){se.current.activeId=oe;return}let e=setTimeout(()=>{se.current.activeId=oe},50);return()=>clearTimeout(e)},[oe]),{active:O,activeIndex:f,attributes:j,data:S,rect:w,index:x,newIndex:ae,items:u,isOver:E,isSorting:L,isDragging:P,listeners:N,node:T,overIndex:_,over:F,setNodeRef:te,setActivatorNodeRef:ee,setDroppableNodeRef:D,setDraggableNodeRef:M,transform:le??ie,transition:z()};function z(){if(le||R&&se.current.newIndex===x)return gDe;if(!(re&&!t5(k)||!l)&&(L||ce))return r5.Transition.toString({...l,property:h7})}}function bDe(e,t){return typeof e==`boolean`?{draggable:e,droppable:!1}:{draggable:e?.draggable??t.draggable,droppable:e?.droppable??t.droppable}}function g7(e){if(!e)return!1;let t=e.data.current;return!!(t&&`sortable`in t&&typeof t.sortable==`object`&&`containerId`in t.sortable&&`items`in t.sortable&&`index`in t.sortable)}var xDe=[N5.Down,N5.Right,N5.Up,N5.Left],SDe=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:i,droppableContainers:a,over:o,scrollableAncestors:s}}=t;if(xDe.includes(e.code)){if(e.preventDefault(),!n||!r)return;let t=[];a.getEnabled().forEach(n=>{if(!n||n!=null&&n.disabled)return;let a=i.get(n.id);if(a)switch(e.code){case N5.Down:r.topa.top&&t.push(n);break;case N5.Left:r.left>a.left&&t.push(n);break;case N5.Right:r.left1&&(l=c[1].id),l!=null){let e=a.get(n.id),t=a.get(l),o=t?i.get(t.id):null,c=t?.node.current;if(c&&o&&e&&t){let n=v5(c).some((e,t)=>s[t]!==e),i=_7(e,t),a=CDe(e,t),l=n||!i?{x:0,y:0}:{x:a?r.width-o.width:0,y:a?r.height-o.height:0},u={x:o.left,y:o.top};return l.x&&l.y?u:e5(u,l)}}}};function _7(e,t){return!g7(e)||!g7(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function CDe(e,t){return!g7(e)||!g7(t)||!_7(e,t)?!1:e.data.current.sortable.index0?`more`:`less`} than ${r} ago${n===`good`?`, good`:n===`bad`?`, worse`:``}`}function TDe({delta:e,amount:t,polarity:n,window:r=`1h`}){let i=e>0?`▲`:e<0?`▼`:null,a=wDe(e,t,n,r);return(0,H.jsxs)(q,{component:`span`,fz:12,ff:`monospace`,lh:1.4,px:5,title:a,style:{display:`inline-flex`,alignItems:`center`,gap:4,borderRadius:`var(--mantine-radius-sm)`,background:`var(--driga-tint-neutral)`,whiteSpace:`nowrap`,fontVariantNumeric:`tabular-nums`},children:[(0,H.jsxs)(`span`,{"aria-hidden":`true`,children:[i&&`${i} `,e===0?`steady`:t,r&&` · ${r}`]}),(0,H.jsx)(tl,{children:a})]})}var EDe={waiting:`warning`,review:`info`,stuck:`danger`};function DDe(e,t){return t===`neutral`||Math.abs(e)<1e-9?`neutral`:e>0==(t===`up-good`)?`good`:`bad`}function ODe({label:e,sublabel:t,icon:n,value:r,unit:i,total:a,caption:o,detail:s,delta:c,direction:l=`neutral`,trend:u,attention:d,description:f,tooltip:p,selected:m,onClick:g,shortcut:_,size:v=`board`,menu:y,children:b,visual:x,menuItem:S,visibleFrom:C,hiddenFrom:w}){let T=Yn(`dark`),[E,D]=(0,h.useState)(!1),O=r===null||r===0,k=d&&typeof r==`number`&&r>0?EDe[d]:void 0,A=v===`header`,j=c&&!O?(0,H.jsx)(TDe,{delta:c.change,amount:j1(Math.abs(c.change),i),polarity:DDe(c.change,l),window:c.window}):null,M=u&&u.length>1&&!O?(0,H.jsx)(C0,{trend:u,title:e,color:Uy[T][k??`brand`]}):null,N=S?ng.Item:g?$c:G,P=(0,H.jsx)(N,{className:`w-tile`,"data-size":v,"data-clickable":g?``:void 0,"data-selected":m?`true`:void 0,"data-attention":k,"aria-pressed":!S&&g&&m!==void 0?m:void 0,"aria-keyshortcuts":_,onClick:g,onContextMenu:e=>{y?.length&&(e.preventDefault(),D(!0))},title:f,px:A?8:`sm`,py:A?1:`sm`,children:x??(0,H.jsxs)(o_,{gap:A?2:4,children:[(0,H.jsxs)(K,{gap:6,wrap:`nowrap`,c:k||`var(--driga-faint)`,children:[n&&(0,H.jsx)(n,{size:14,"aria-hidden":!0,style:{flex:`none`}}),(0,H.jsxs)(q,{size:`xs`,fw:500,tt:`uppercase`,lts:`0.04em`,c:k?`var(--driga-text)`:`dimmed`,lh:A?1.25:1.2,truncate:!0,title:t?`${e} · ${t}`:e,style:{whiteSpace:`nowrap`},children:[e,t&&(0,H.jsxs)(H.Fragment,{children:[` · `,(0,H.jsx)(q,{span:!0,fz:`xs`,fw:500,ff:`monospace`,tt:`none`,lts:0,lh:`inherit`,c:`dimmed`,children:t})]})]})]}),(0,H.jsxs)(K,{gap:6,wrap:`nowrap`,align:`center`,children:[k&&(0,H.jsx)(Vm,{size:6,color:`var(--mantine-color-${k}-filled)`,withShadow:!1,"aria-hidden":!0,className:d===`waiting`?`w-pulse`:void 0,style:{flex:`none`}}),(0,H.jsx)(G,{c:O?`dimmed`:void 0,style:{whiteSpace:`nowrap`},children:(0,H.jsx)(x0,{n:r,unit:i,total:a,size:A?20:22,lineHeight:A?1.2:1.1})}),o&&(0,H.jsxs)(q,{fz:12,ff:`monospace`,c:`dimmed`,lh:1.2,style:{whiteSpace:`nowrap`},children:[`· `,o]}),s&&(0,H.jsxs)(tl,{children:[` `,s]}),A&&M&&(0,H.jsx)(G,{w:72,h:20,"aria-hidden":!0,style:{flex:`none`},children:M}),A&&j&&(0,H.jsx)(G,{visibleFrom:`lg`,children:j})]}),!A&&(j||M)&&(0,H.jsxs)(K,{justify:`space-between`,wrap:`nowrap`,gap:6,h:24,children:[j??(0,H.jsx)(`span`,{}),M&&(0,H.jsx)(G,{h:24,style:{flex:`1 1 48px`,minWidth:40,maxWidth:96},children:M})]}),A?(0,H.jsx)(G,{h:3,"aria-hidden":!b||void 0,children:b}):b]})});return(0,H.jsxs)(G,{className:`w-tile-box`,visibleFrom:C,hiddenFrom:w,style:A?{display:`inline-block`}:void 0,children:[p?(0,H.jsx)(Bg,{label:p,events:{hover:!0,focus:!0,touch:!0},children:P}):P,y&&y.length>0&&(0,H.jsxs)(ng,{opened:E,onChange:D,position:`bottom-end`,withinPortal:!S,shadow:`md`,width:200,children:[(0,H.jsx)(ng.Target,{children:(0,H.jsx)(lu,{className:`w-tile-menu`,size:18,"aria-label":`More for ${e}`,children:(0,H.jsx)(Vv,{size:14})})}),(0,H.jsx)(ng.Dropdown,{children:y.map(e=>{let t=e.icon,n=(0,H.jsx)(ng.Item,{disabled:e.disabled,leftSection:t?(0,H.jsx)(t,{}):void 0,onClick:e.onClick,children:e.label},e.label);return e.hint?(0,H.jsx)(Bg,{label:e.hint,events:{hover:!0,focus:!0,touch:!0},children:(0,H.jsx)(G,{tabIndex:0,children:n})},e.label):n})})]})]})}function kDe(){return(0,H.jsxs)(K,{gap:8,wrap:`nowrap`,"aria-label":`Driga`,role:`img`,children:[(0,H.jsx)(`img`,{src:`/static/brand/murmur.svg`,width:24,height:24,alt:``}),(0,H.jsx)(`span`,{className:`wordmark`,"aria-hidden":`true`})]})}var v7={tile:`_tile_1nf1e_4`,slot:`_slot_1nf1e_15`,drag:`_drag_1nf1e_22`,measuring:`_measuring_1nf1e_26`,more:`_more_1nf1e_27`};function ADe(){return(0,H.jsx)(Gm,{orientation:`vertical`,h:24,color:`var(--driga-border)`,style:{alignSelf:`center`}})}function jDe({m:e,now:t}){let n=e0(e),r=e.reachable?n?s0(n):`var(--driga-faint)`:`transparent`;return(0,H.jsx)(Bg,{label:ghe(e,t),events:{hover:!0,focus:!1,touch:!0},children:(0,H.jsx)(G,{w:8,h:8,"aria-hidden":!0,style:{borderRadius:`50%`,background:r,flex:`none`,boxShadow:e.reachable?void 0:`inset 0 0 0 1.5px var(--driga-faint)`,outline:e.local?`1px solid var(--mantine-color-brand-filled)`:void 0,outlineOffset:1}})})}var MDe=8,y7=6;function NDe(e,t,n,r,i,a){return[{label:`Show on Home`,icon:Ty,onClick:()=>t(e)},...n?[{label:`Ask Chat about it`,icon:Cv,onClick:()=>n(e.title)}]:[],...r?[{label:`Remove from header`,disabled:i||a,hint:i?`The header needs one widget`:void 0,onClick:()=>r(e.id)}]:[]]}function PDe({tile:e,enabled:t,children:n}){let{setNodeRef:r,setActivatorNodeRef:i,attributes:a,listeners:o,transform:s,transition:c}=yDe({id:e.id,disabled:!t});return(0,H.jsxs)(G,{ref:r,"data-header-tile":e.id,"data-reorderable":t||void 0,className:v7.slot,onPointerDown:e=>{e.target.closest(`.w-tile`)&&o?.onPointerDown?.(e)},style:{transition:c,transform:s?`translate3d(${s.x}px, ${s.y}px, 0)`:void 0,zIndex:s?1:void 0},children:[n,t&&(0,H.jsx)(lu,{ref:i,className:v7.drag,size:16,...a,...o,"aria-label":`Reorder ${e.title}`,children:(0,H.jsx)(zv,{size:12})})]})}function b7({id:e,onWidth:t,children:n}){let{ref:r,width:i}=le({box:`border-box`});return(0,h.useLayoutEffect)(()=>{i>0&&t(e,Math.ceil(i))},[e,i,t]),(0,H.jsx)(G,{ref:r,className:v7.slot,children:n})}function FDe({data:e,filter:t,chatOpen:n,onFilter:r,onOpenFleet:i,onSearch:a,onToggleChat:o,onShow:s,onAsk:c,search:l,editor:u,busy:d,onRemove:f,onMove:p}){let{ref:m,width:g}=le(),_=XTe(c5(z5,{activationConstraint:{distance:6}}),c5(F5,{coordinateGetter:SDe})),v=e?.tiles??[],[y,b]=(0,h.useState)({}),x=(0,h.useCallback)((e,t)=>{b(n=>n[e]===t?n:{...n,[e]:t})},[]),S=Array.from({length:Math.max(1,v.length)},(e,t)=>`+${t+1}`),C=Math.max(0,...S.map(e=>y[e]??0)),w=0,T=0;for(let e=0;eMath.floor(g))break;T=n,w=e+1}let E=v.slice(w),D=(n,i=!1,a=!1)=>{let o=n.behavior.attention,l=n.trend,u=l?.[0],m=l?.[l.length-1],h=typeof u==`number`&&typeof m==`number`&&l.length>1?{change:m-u,window:`1h`}:void 0,g=n.viz===`gauge`&&n.value!==null,_=n.value===null?null:g?t0(n.value,n.max??100):n.total==null?null:t0(n.value,n.total),y=(n.viz===`stat`||g)&&_!==null,b=n.error??(o?`${Q1[o].hint} · ${vhe({count:n.value??0,trend:l??[],delta:h?.change??0})}`:n.panel.description??n.title),S=(0,H.jsx)(ODe,{menuItem:i,size:`header`,label:n.title,sublabel:n.behavior.sublabel?e?.localMachine:void 0,icon:n.behavior.icon,value:n.value,unit:n.unit,total:g?void 0:n.total??void 0,caption:n.caption==null?void 0:mhe(n.panel,n.caption),trend:y?void 0:l,delta:y?void 0:h,direction:n.behavior.direction,attention:o,selected:o?t===o:void 0,shortcut:!a&&o?Q1[o].key:void 0,tooltip:a?void 0:b,onClick:a?void 0:()=>o?r(o):s(n.panel),menu:a?void 0:NDe(n.panel,s,c,f,v.length===1,d),children:y&&(0,H.jsx)(Ng,{size:`xs`,value:_,color:g?_0(_/100):_0(_/100,[.9,.9]),"aria-label":`${_}% of ${n.title.toLowerCase()} used`,styles:{root:{background:`var(--driga-border)`}}})});return a?(0,H.jsx)(b7,{id:n.id,onWidth:x,children:S},n.id):(0,H.jsx)(PDe,{tile:n,enabled:!!p&&!d,children:S},n.id)},O=e?.machines??[];return(0,H.jsxs)(K,{h:`100%`,gap:8,wrap:`nowrap`,"data-header-row":!0,"data-header-ready":v.every(e=>y[e.id])&&S.every(e=>y[e]),children:[(0,H.jsx)(kDe,{}),e&&(0,H.jsx)(ADe,{}),(0,H.jsxs)(G,{ref:m,style:{flex:1,minWidth:C,position:`relative`},children:[(0,H.jsx)(QEe,{sensors:_,collisionDetection:QTe,onDragEnd:({active:e,over:t})=>{if(!t||e.id===t.id||!p||d)return;let n=v.findIndex(t=>t.id===e.id),r=v.findIndex(e=>e.id===t.id);if(n<0||r<0)return;let i=s7(v,n,r);p(String(e.id),i[r+1]?.id)},children:(0,H.jsx)(m7,{items:v.map(e=>e.id),strategy:lDe,children:(0,H.jsxs)(K,{gap:y7,wrap:`nowrap`,children:[v.slice(0,w).map(e=>D(e)),E.length>0&&(0,H.jsxs)(ng,{position:`bottom-end`,width:`auto`,withinPortal:!0,shadow:`md`,children:[(0,H.jsx)(ng.Target,{children:(0,H.jsxs)(km,{className:v7.more,miw:C||void 0,variant:`subtle`,size:`compact-sm`,"aria-label":`+${E.length}`,children:[`+`,E.length]})}),(0,H.jsx)(ng.Dropdown,{mah:`70vh`,style:{overflowY:`auto`},children:(0,H.jsx)(m7,{items:E.map(e=>e.id),strategy:dDe,children:E.map(e=>D(e,!0))})})]})]})})}),(0,H.jsxs)(G,{className:v7.measuring,"aria-hidden":`true`,inert:!0,children:[v.map(e=>D(e,!1,!0)),S.map(e=>(0,H.jsx)(b7,{id:e,onWidth:x,children:(0,H.jsx)(km,{component:`div`,className:v7.more,variant:`subtle`,size:`compact-sm`,children:e})},e))]})]}),u,e&&(0,H.jsx)(Bg,{label:n0(O),children:(0,H.jsx)($c,{className:v7.tile,px:8,h:32,onClick:i,"aria-label":n0(O),"aria-keyshortcuts":`g f`,children:(0,H.jsxs)(K,{gap:6,wrap:`nowrap`,children:[O.slice(0,MDe).map(e=>(0,H.jsx)(jDe,{m:e,now:Date.now()},e.id)),O.length===0&&(0,H.jsx)(Dy,{size:16,"aria-hidden":!0}),(0,H.jsx)(q,{fz:12,ff:`monospace`,c:`dimmed`,children:O.length})]})})}),l??(0,H.jsx)($c,{className:`search-button`,onClick:a,"aria-keyshortcuts":`Meta+K`,title:`Search sessions and dashboards (⌘K)`,children:(0,H.jsxs)(K,{gap:8,wrap:`nowrap`,children:[(0,H.jsx)(hy,{size:16,"aria-hidden":!0}),(0,H.jsx)(tl,{children:`Search`}),(0,H.jsx)(yh,{size:`xs`,"aria-hidden":!0,children:`⌘K`})]})}),(0,H.jsx)(Bg,{label:n?`Hide Chat`:`Show Chat`,children:(0,H.jsx)(lu,{size:`lg`,variant:n?`light`:`subtle`,color:n?`brand`:`gray`,"aria-pressed":n,"aria-label":`Chat`,onClick:o,children:(0,H.jsx)(Cv,{size:20})})})]})}function x7(e){let{margin:t,containerPadding:n,containerWidth:r,cols:i}=e;return(r-t[0]*(i-1)-n[0]*2)/i}function S7(e,t,n){return Number.isFinite(e)?Math.round(t*e+Math.max(0,e-1)*n):e}function C7(e,t,n,r,i,a,o){let{margin:s,containerPadding:c,rowHeight:l}=e,u=x7(e),d,f,p,m;if(o?(d=Math.round(o.width),f=Math.round(o.height)):(d=S7(r,u,s[0]),f=S7(i,l,s[1])),a?(p=Math.round(a.top),m=Math.round(a.left)):o?(p=Math.round(o.top),m=Math.round(o.left)):(p=Math.round((l+s[1])*n+c[1]),m=Math.round((u+s[0])*t+c[0])),!a&&!o){if(Number.isFinite(r)){let e=Math.round((u+s[0])*(t+r)+c[0])-m-d;e!==s[0]&&(d+=e-s[0])}if(Number.isFinite(i)){let e=Math.round((l+s[1])*(n+i)+c[1])-p-f;e!==s[1]&&(f+=e-s[1])}}return{top:p,left:m,width:d,height:f}}function IDe(e,t,n,r,i){let{margin:a,containerPadding:o,cols:s,rowHeight:c,maxRows:l}=e,u=x7(e),d=Math.round((n-o[0])/(u+a[0])),f=Math.round((t-o[1])/(c+a[1]));return d=T7(d,0,s-r),f=T7(f,0,l-i),{x:d,y:f}}function w7(e,t,n){let{margin:r,containerPadding:i,rowHeight:a}=e,o=x7(e);return{x:Math.round((n-i[0])/(o+r[0])),y:Math.round((t-i[1])/(a+r[1]))}}function LDe(e,t,n){let{margin:r,rowHeight:i}=e,a=x7(e);return{w:Math.max(1,Math.round((t+r[0])/(a+r[0]))),h:Math.max(1,Math.round((n+r[1])/(i+r[1])))}}function T7(e,t,n){return Math.max(Math.min(e,n),t)}function E7(e,t){return!(e.i===t.i||e.x+e.w<=t.x||e.x>=t.x+t.w||e.y+e.h<=t.y||e.y>=t.y+t.h)}function D7(e,t){for(let n=0;nE7(e,t))}function RDe(e,t){return t===`horizontal`?A7(e):t===`vertical`||t===`wrap`?k7(e):[...e]}function k7(e){return[...e].sort((e,t)=>e.y===t.y?e.x-t.x:e.y-t.y)}function A7(e){return[...e].sort((e,t)=>e.x===t.x?e.y-t.y:e.x-t.x)}function j7(e){let t=0;for(let n=0;nt&&(t=e)}}return t}function M7(e,t){for(let n=0;ne.static===!0)}function P7(e){return{i:e.i,x:e.x,y:e.y,w:e.w,h:e.h,minW:e.minW,maxW:e.maxW,minH:e.minH,maxH:e.maxH,moved:!!e.moved,static:!!e.static,isDraggable:e.isDraggable,isResizable:e.isResizable,resizeHandles:e.resizeHandles,constraints:e.constraints,isBounded:e.isBounded}}function F7(e){let t=Array(e.length);for(let n=0;nt.cols&&(i.x=t.cols-i.w),i.x<0&&(i.x=0,i.w=t.cols),i.y===1/0&&(i.y=j7(n)),!i.static)n.push(i);else for(;D7(n,i);)i.y++}}return e}function L7(e,t,n,r,i,a,o,s,c){if(t.static&&t.isDraggable!==!0||t.y===r&&t.x===n)return[...e];let l=t.x,u=t.y;typeof n==`number`&&(t.x=n),typeof r==`number`&&(t.y=r),t.moved=!0;let d=RDe(e,o);(o===`vertical`&&typeof r==`number`?u>=r:o===`horizontal`&&typeof n==`number`&&l>=n)&&(d=d.reverse());let f=O7(d,t),p=f.length>0;if(p&&c)return F7(e);if(p&&a)return t.x=l,t.y=u,t.moved=!1,e;let m=[...e];for(let e=0;et.y,d=l!==void 0&&t.x+t.w>l.x;if(!l)return L7(e,n,o?a.x:void 0,s?a.y:void 0,r,c,i);if(u&&s)return L7(e,n,void 0,n.y+1,r,c,i);if(u&&i===null){let r=n.y;return t.y=r,n.y=r+t.h,[...e]}if(d&&o)return L7(e,t,n.x,void 0,r,c,i)}let l=o?n.x+1:void 0,u=s?n.y+1:void 0;return l===void 0&&u===void 0?[...e]:L7(e,n,l,u,r,c,i)}function z7(e,t,n){return Math.max(t,Math.min(n,e))}var B7=[{name:`gridBounds`,constrainPosition(e,t,n,{cols:r,maxRows:i}){return{x:z7(t,0,Math.max(0,r-e.w)),y:z7(n,0,Math.max(0,i-e.h))}},constrainSize(e,t,n,r,{cols:i,maxRows:a}){let o=r===`w`||r===`nw`||r===`sw`?e.x+e.w:i-e.x,s=r===`n`||r===`nw`||r===`ne`?e.y+e.h:a-e.y;return{w:z7(t,1,Math.max(1,o)),h:z7(n,1,Math.max(1,s))}}},{name:`minMaxSize`,constrainSize(e,t,n){return{w:z7(t,e.minW??1,e.maxW??1/0),h:z7(n,e.minH??1,e.maxH??1/0)}}}];function V7(e,t,n,r,i){let a={x:n,y:r};for(let n of e)n.constrainPosition&&(a=n.constrainPosition(t,a.x,a.y,i));if(t.constraints)for(let e of t.constraints)e.constrainPosition&&(a=e.constrainPosition(t,a.x,a.y,i));return a}function VDe(e,t,n,r,i,a){let o={w:n,h:r};for(let n of e)n.constrainSize&&(o=n.constrainSize(t,o.w,o.h,i,a));if(t.constraints)for(let e of t.constraints)e.constrainSize&&(o=e.constrainSize(t,o.w,o.h,i,a));return o}function H7({top:e,left:t,width:n,height:r}){let i=`translate(${t}px,${e}px)`;return{transform:i,WebkitTransform:i,MozTransform:i,msTransform:i,OTransform:i,width:`${n}px`,height:`${r}px`,position:`absolute`}}function HDe({top:e,left:t,width:n,height:r}){return{top:`${e}px`,left:`${t}px`,width:`${n}px`,height:`${r}px`,position:`absolute`}}function U7(e){return e*100+`%`}function UDe(e,t,n,r){return e+n>r?t:n}function W7(e,t,n){return e<0?t:n}function WDe(e){return Math.max(0,e)}function G7(e){return Math.max(0,e)}var K7=(e,t,n)=>{let{left:r,height:i,width:a}=t,o=e.top-(i-e.height);return{left:r,width:a,height:W7(o,e.height,i),top:G7(o)}},q7=(e,t,n)=>{let{top:r,left:i,height:a,width:o}=t;return{top:r,height:a,width:UDe(e.left,e.width,o,n),left:WDe(i)}},J7=(e,t,n)=>{let{top:r,height:i,width:a}=t,o=e.left+e.width-a;return o<0?{height:i,width:e.left+e.width,top:G7(r),left:0}:{height:i,width:a,top:G7(r),left:o}},Y7=(e,t,n)=>{let{top:r,left:i,height:a,width:o}=t;return{width:o,left:i,height:W7(r,e.height,a),top:G7(r)}},GDe={n:K7,ne:(e,t,n)=>K7(e,q7(e,t,n)),e:q7,se:(e,t,n)=>Y7(e,q7(e,t,n)),s:Y7,sw:(e,t,n)=>Y7(e,J7(e,t)),w:J7,nw:(e,t,n)=>K7(e,J7(e,t))};function KDe(e,t,n,r){let i=GDe[e];return i?i(t,{...t,...n},r):n}var qDe={type:`transform`,scale:1,calcStyle(e){return H7(e)}},JDe={cols:12,rowHeight:150,margin:[10,10],containerPadding:null,maxRows:1/0},YDe={enabled:!0,bounded:!1,threshold:3},XDe={enabled:!0,handles:[`se`]},ZDe={enabled:!1,defaultItem:{w:1,h:1},touchEnabled:!0,touchDragSource:`[data-rgl-draggable]`};function X7(e,t,n,r,i){let a=r===`x`?`w`:`h`;t[r]+=1;let o=e.findIndex(e=>e.i===t.i),s=i??N7(e).length>0;for(let i=o+1;it.y+t.h)break;E7(t,o)&&X7(e,o,n+t[a],r,s)}}t[r]=n}function QDe(e,t,n,r){for(t.x=Math.max(t.x,0),t.y=Math.max(t.y,0),t.y=Math.min(r,t.y);t.y>0&&!D7(e,t);)t.y--;let i;for(;(i=D7(e,t))!==void 0;)X7(n,t,i.y+i.h,`y`);return t.y=Math.max(t.y,0),t}function $De(e,t,n,r){for(t.x=Math.max(t.x,0),t.y=Math.max(t.y,0);t.x>0&&!D7(e,t);)t.x--;let i;for(;(i=D7(e,t))!==void 0;)if(X7(r,t,i.x+i.w,`x`),t.x+t.w>n)for(t.x=n-t.w,t.y++;t.x>0&&!D7(e,t);)t.x--;return t.x=Math.max(t.x,0),t}var Z7={type:`vertical`,allowOverlap:!1,compact(e,t){let n=N7(e),r=j7(n),i=k7(e),a=Array(e.length);for(let t=0;te[t]-e[n])}function n9(e,t){let n=t9(e),r=n[0];if(r===void 0)throw Error(`No breakpoints defined`);for(let i=1;ie[a]&&(r=a)}return r}function r9(e,t){let n=t[e];if(n===void 0)throw Error(`ResponsiveReactGridLayout: \`cols\` entry for breakpoint ${String(e)} is missing!`);return n}function i9(e,t,n,r,i,a){let o=e[n];if(o)return F7(o);let s=e[r],c=t9(t),l=c.slice(c.indexOf(n));for(let t=0;t{(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):(n=typeof globalThis<`u`?globalThis:n||self,r(n[`fast-equals`]={}))})(n,(function(e){function t(e){return function(t,n,r,i,a,o,s){return e(t,n,s)}}function n(e){return function(t,n,r,i){if(!t||!n||typeof t!=`object`||typeof n!=`object`)return e(t,n,r,i);var a=i.get(t),o=i.get(n);if(a&&o)return a===n&&o===t;i.set(t,n),i.set(n,t);var s=e(t,n,r,i);return i.delete(t),i.delete(n),s}}function r(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n}function i(e){return e.constructor===Object||e.constructor==null}function a(e){return typeof e.then==`function`}function o(e,t){return e===t||e!==e&&t!==t}var s=Object.prototype.toString;function c(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,c=e.areObjectsEqual,l=e.areRegExpsEqual,u=e.areSetsEqual,d=e.createIsNestedEqual,f=d(p);function p(e,d,p){if(e===d)return!0;if(!e||!d||typeof e!=`object`||typeof d!=`object`)return e!==e&&d!==d;if(i(e)&&i(d))return c(e,d,f,p);var m=Array.isArray(e),h=Array.isArray(d);if(m||h)return m===h&&t(e,d,f,p);var g=s.call(e);return g===s.call(d)?g===`[object Date]`?n(e,d,f,p):g===`[object RegExp]`?l(e,d,f,p):g===`[object Map]`?r(e,d,f,p):g===`[object Set]`?u(e,d,f,p):g===`[object Object]`||g===`[object Arguments]`?a(e)||a(d)?!1:c(e,d,f,p):g===`[object Boolean]`||g===`[object Number]`||g===`[object String]`?o(e.valueOf(),d.valueOf()):!1:!1}return p}function l(e,t,n,r){var i=e.length;if(t.length!==i)return!1;for(;i-->0;)if(!n(e[i],t[i],i,i,e,t,r))return!1;return!0}var u=n(l);function d(e,t){return o(e.valueOf(),t.valueOf())}function f(e,t,n,r){var i=e.size===t.size;if(!i)return!1;if(!e.size)return!0;var a={},o=0;return e.forEach(function(s,c){if(i){var l=!1,u=0;t.forEach(function(i,d){!l&&!a[u]&&(l=n(c,d,o,u,e,t,r)&&n(s,i,c,d,e,t,r))&&(a[u]=!0),u++}),o++,i=l}}),i}var p=n(f),m=`_owner`,h=Object.prototype.hasOwnProperty;function g(e,t,n,r){var i=Object.keys(e),a=i.length;if(Object.keys(t).length!==a)return!1;for(var o;a-->0;){if(o=i[a],o===m){var s=!!e.$$typeof,c=!!t.$$typeof;if((s||c)&&s!==c)return!1}if(!h.call(t,o)||!n(e[o],t[o],o,o,e,t,r))return!1}return!0}var _=n(g);function v(e,t){return e.source===t.source&&e.flags===t.flags}function y(e,t,n,r){var i=e.size===t.size;if(!i)return!1;if(!e.size)return!0;var a={};return e.forEach(function(o,s){if(i){var c=!1,l=0;t.forEach(function(i,u){!c&&!a[l]&&(c=n(o,i,s,u,e,t,r))&&(a[l]=!0),l++}),i=c}}),i}var b=n(y),x=Object.freeze({areArraysEqual:l,areDatesEqual:d,areMapsEqual:f,areObjectsEqual:g,areRegExpsEqual:v,areSetsEqual:y,createIsNestedEqual:t}),S=Object.freeze({areArraysEqual:u,areDatesEqual:d,areMapsEqual:p,areObjectsEqual:_,areRegExpsEqual:v,areSetsEqual:b,createIsNestedEqual:t}),C=c(x);function w(e,t){return C(e,t,void 0)}var T=c(r(x,{createIsNestedEqual:function(){return o}}));function E(e,t){return T(e,t,void 0)}var D=c(S);function O(e,t){return D(e,t,new WeakMap)}var k=c(r(S,{createIsNestedEqual:function(){return o}}));function A(e,t){return k(e,t,new WeakMap)}function j(e){return c(r(x,e(x)))}function M(e){var t=c(r(S,e(S)));return(function(e,n,r){return r===void 0&&(r=new WeakMap),t(e,n,r)})}e.circularDeepEqual=O,e.circularShallowEqual=A,e.createCustomCircularEqual=M,e.createCustomEqual=j,e.deepEqual=w,e.sameValueZeroEqual=o,e.shallowEqual=E,Object.defineProperty(e,"__esModule",{value:!0})}))}));function iOe(e){let t=typeof globalThis.getComputedStyle==`function`?globalThis.getComputedStyle(e):null;if(!t)return e.clientWidth;let n=e=>{let t=Number.parseFloat(e);return Number.isFinite(t)?t:0},r=Number.parseFloat(t.width);return Number.isFinite(r)?Math.max(0,r):Math.max(0,e.clientWidth-n(t.paddingLeft)-n(t.paddingRight))}function aOe(e={}){let{measureBeforeMount:t=!1,initialWidth:n=1280,debounceTimeout:r}=e,[i,a]=(0,h.useState)(n),[o,s]=(0,h.useState)(!t),c=(0,h.useRef)(null),l=(0,h.useRef)(null),u=(0,h.useCallback)(()=>{let e=c.current;if(e){let t=Math.round(iOe(e));a(e=>e===t?e:t),o||s(!0)}},[o]);return(0,h.useEffect)(()=>{let e=c.current;if(e){if(u(),typeof ResizeObserver<`u`){let t=null,n;return l.current=new ResizeObserver(e=>{let i=e[0];if(i){let e=Math.round(i.contentRect.width);if(r&&r>0){window.clearTimeout(n),n=window.setTimeout(()=>{a(t=>t===e?t:e),n=void 0},r);return}t!==null&&cancelAnimationFrame(t),t=requestAnimationFrame(()=>{a(t=>t===e?t:e),t=null})}}),l.current.observe(e),()=>{t!==null&&cancelAnimationFrame(t),window.clearTimeout(n),n=void 0,l.current&&=(l.current.disconnect(),null)}}return()=>{l.current&&=(l.current.disconnect(),null)}}},[u,r]),{width:i,mounted:o,containerRef:c,measureWidth:u}}var o9=l(I_(),1);function s9(e,t){for(let n=0,r=e.length;n`u`)return``;let t=window.document?.documentElement?.style;if(!t||e in t)return``;for(let n=0;nt===e.identifier)||e.changedTouches&&s9(e.changedTouches,e=>t===e.identifier)}function vOe(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function yOe(){return typeof __webpack_nonce__<`u`?__webpack_nonce__:void 0}function bOe(e,t){if(!e)return;let n=e.getElementById(`react-draggable-style-el`);if(!n){n=e.createElement(`style`),n.type=`text/css`,n.id=`react-draggable-style-el`;let r=t??yOe();r&&n.setAttribute(`nonce`,r),n.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} -`,n.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} -`,e.getElementsByTagName(`head`)[0].appendChild(n)}e.body&&xOe(e.body,`react-draggable-transparent-selection`)}function y9(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{b9(e)}):b9(e)}function b9(e){if(e)try{e.body&&SOe(e.body,`react-draggable-transparent-selection`);let t=e.selection;if(t)t.empty();else{let t=(e.defaultView||window).getSelection();t&&t.type!==`Caret`&&t.removeAllRanges()}}catch{}}function xOe(e,t){e.classList?e.classList.add(t):e.className.match(RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function SOe(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(RegExp(`(?:^|\\s)${t}(?!\\S)`,`g`),``)}function COe(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:r}=e.props;r=typeof r==`string`?r:EOe(r);let i=T9(e);if(typeof r==`string`){let{ownerDocument:e}=i,t=e.defaultView;if(!t)throw Error(`Cannot resolve the owner window of the draggable node.`);let n;if(n=r===`parent`?i.parentNode:i.getRootNode().querySelector(r),!(n instanceof t.HTMLElement))throw Error(`Bounds selector "`+r+`" could not find an element.`);let a=n,o=t.getComputedStyle(i),s=t.getComputedStyle(a);r={left:-i.offsetLeft+u9(s.paddingLeft)+u9(o.marginLeft),top:-i.offsetTop+u9(s.paddingTop)+u9(o.marginTop),right:pOe(a)-dOe(i)-i.offsetLeft+u9(s.paddingRight)-u9(o.marginRight),bottom:fOe(a)-uOe(i)-i.offsetTop+u9(s.paddingBottom)-u9(o.marginBottom)}}return l9(r.right)&&(t=Math.min(t,r.right)),l9(r.bottom)&&(n=Math.min(n,r.bottom)),l9(r.left)&&(t=Math.max(t,r.left)),l9(r.top)&&(n=Math.max(n,r.top)),[t,n]}function x9(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]}function wOe(e){return e.props.axis===`both`||e.props.axis===`x`}function TOe(e){return e.props.axis===`both`||e.props.axis===`y`}function S9(e,t,n){let r=typeof t==`number`?_Oe(e,t):null;if(typeof t==`number`&&!r)return null;let i=T9(n),a=n.props.offsetParent||i.offsetParent||i.ownerDocument.body;return mOe(r||e,a,n.props.scale)}function C9(e,t,n){let r=!l9(e.lastX),i=T9(e);return r?{node:i,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:i,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function w9(e,t){let n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function EOe(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function T9(e){let t=e.findDOMNode();if(!t)throw Error(`: Unmounted during event!`);return t}var E9=typeof process<`u`&&{}.DRAGGABLE_DEBUG?console.log.bind(console):function(){},D9={touch:{start:`touchstart`,move:`touchmove`,stop:`touchend`},mouse:{start:`mousedown`,move:`mousemove`,stop:`mouseup`}},O9=D9.mouse,k9=class extends h.Component{constructor(){super(...arguments),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,this.touchIdentifier=null,this.mounted=!1,this.handleDragStart=e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&(typeof e.button==`number`&&e.button!==0||e.ctrlKey))return!1;let t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw Error(` not mounted on DragStart!`);let{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!h9(e.target,this.props.handle,t)||this.props.cancel&&h9(e.target,this.props.cancel,t))return;e.type===`touchstart`&&!this.props.allowMobileScroll&&e.preventDefault();let r=vOe(e);this.touchIdentifier=r;let i=S9(e,r,this);if(i==null)return;let{x:a,y:o}=i,s=C9(this,a,o);E9(`DraggableCore: handleDragStart: %j`,s),E9(`calling`,this.props.onStart),this.props.onStart(e,s)!==!1&&this.mounted!==!1&&(this.props.enableUserSelectHack&&bOe(n,this.props.nonce),this.dragging=!0,this.lastX=a,this.lastY=o,g9(n,O9.move,this.handleDrag),g9(n,O9.stop,this.handleDragStop))},this.handleDrag=e=>{let t=S9(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=x9(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}let i=C9(this,n,r);if(E9(`DraggableCore: handleDrag: %j`,i),this.props.onDrag(e,i)===!1||this.mounted===!1)try{this.handleDragStop(new MouseEvent(`mouseup`))}catch{let e=document.createEvent(`MouseEvents`);e.initMouseEvent(`mouseup`,!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(e)}else this.lastX=n,this.lastY=r},this.handleDragStop=e=>{if(!this.dragging)return;let t=S9(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=r-this.lastY||0;[e,t]=x9(this.props.grid,e,t),n=this.lastX+e,r=this.lastY+t}let i=C9(this,n,r);if(this.props.onStop(e,i)===!1||this.mounted===!1)return!1;let a=this.findDOMNode();a&&this.props.enableUserSelectHack&&y9(a.ownerDocument),E9(`DraggableCore: handleDragStop: %j`,i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,a&&(E9(`DraggableCore: Removing handlers`),_9(a.ownerDocument,O9.move,this.handleDrag),_9(a.ownerDocument,O9.stop,this.handleDragStop))},this.onMouseDown=e=>(O9=D9.mouse,this.handleDragStart(e)),this.onMouseUp=e=>(O9=D9.mouse,this.handleDragStop(e)),this.onTouchStart=e=>(O9=D9.touch,this.handleDragStart(e)),this.onTouchEnd=e=>(O9=D9.touch,this.handleDragStop(e))}componentDidMount(){this.mounted=!0;let e=this.findDOMNode();e&&g9(e,D9.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;let e=this.findDOMNode();if(e){let{ownerDocument:t}=e;_9(t,D9.mouse.move,this.handleDrag),_9(t,D9.touch.move,this.handleDrag),_9(t,D9.mouse.stop,this.handleDragStop),_9(t,D9.touch.stop,this.handleDragStop),_9(e,D9.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&y9(t)}}findDOMNode(){if(this.props?.nodeRef)return this.props.nodeRef.current;let e=Ae.default;return typeof e.findDOMNode==`function`?e.findDOMNode(this):(E9(`react-draggable: ReactDOM.findDOMNode is not available in React 19+. You must provide a nodeRef prop. See: https://github.com/react-grid-layout/react-draggable#noderef`),null)}render(){return h.cloneElement(h.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};k9.displayName=`DraggableCore`,k9.propTypes={allowAnyClick:o9.default.bool,allowMobileScroll:o9.default.bool,children:o9.default.node.isRequired,disabled:o9.default.bool,enableUserSelectHack:o9.default.bool,offsetParent:function(e,t){if(e[t]&&e[t].nodeType!==1)throw Error(`Draggable's offsetParent must be a DOM Node.`)},grid:o9.default.arrayOf(o9.default.number),handle:o9.default.string,cancel:o9.default.string,nodeRef:o9.default.object,nonce:o9.default.string,onStart:o9.default.func,onDrag:o9.default.func,onStop:o9.default.func,onMouseDown:o9.default.func,scale:o9.default.number,className:d9,style:d9,transform:d9},k9.defaultProps={allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1};var A9=class extends h.Component{constructor(e){super(e),this.onDragStart=(e,t)=>{if(E9(`Draggable: onDragStart: %j`,t),this.props.onStart(e,w9(this,t))===!1)return!1;this.setState({dragging:!0,dragged:!0})},this.onDrag=(e,t)=>{if(!this.state.dragging)return!1;E9(`Draggable: onDrag: %j`,t);let n=w9(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){let{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;let[i,a]=COe(this,r.x,r.y);r.x=i,r.y=a,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(this.props.onDrag(e,n)===!1)return!1;this.setState(r)},this.onDragStop=(e,t)=>{if(!this.state.dragging||this.props.onStop(e,w9(this,t))===!1)return!1;E9(`Draggable: onDragStop: %j`,t);let n={dragging:!1,slackX:0,slackY:0};if(this.props.position){let{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)},this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},e.position&&!(e.onDrag||e.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}static getDerivedStateFromProps({position:e},{prevPropsPosition:t}){return e&&(!t||e.x!==t.x||e.y!==t.y)?(E9(`Draggable: getDerivedStateFromProps %j`,{position:e,prevPropsPosition:t}),{x:e.x,y:e.y,prevPropsPosition:{...e}}):null}componentDidMount(){window.SVGElement!==void 0&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){if(this.props?.nodeRef)return this.props.nodeRef.current;let e=Ae.default;return typeof e.findDOMNode==`function`?e.findDOMNode(this):null}render(){let{axis:e,bounds:t,children:n,defaultPosition:r,defaultClassName:i,defaultClassNameDragging:a,defaultClassNameDragged:o,position:s,positionOffset:c,scale:l,...u}=this.props,d={},f=null,p=!s||this.state.dragging,m=s||r,g={x:wOe(this)&&p?this.state.x:m.x,y:TOe(this)&&p?this.state.y:m.y};this.state.isElementSVG?f=gOe(g,c):d=hOe(g,c);let _=h.Children.only(n),v=tn(_.props.className||``,i,{[a]:this.state.dragging,[o]:this.state.dragged});return h.createElement(k9,{...u,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop},h.cloneElement(_,{className:v,style:{..._.props.style,...d},transform:f}))}};A9.displayName=`Draggable`,A9.propTypes={...k9.propTypes,axis:o9.default.oneOf([`both`,`x`,`y`,`none`]),bounds:o9.default.oneOfType([o9.default.shape({left:o9.default.number,right:o9.default.number,top:o9.default.number,bottom:o9.default.number}),o9.default.string,o9.default.oneOf([!1])]),defaultClassName:o9.default.string,defaultClassNameDragging:o9.default.string,defaultClassNameDragged:o9.default.string,defaultPosition:o9.default.shape({x:o9.default.number,y:o9.default.number}),positionOffset:o9.default.shape({x:o9.default.oneOfType([o9.default.number,o9.default.string]),y:o9.default.oneOfType([o9.default.number,o9.default.string])}),position:o9.default.shape({x:o9.default.number,y:o9.default.number}),className:d9,style:d9,transform:d9},A9.defaultProps={...k9.defaultProps,axis:`both`,bounds:!1,defaultClassName:`react-draggable`,defaultClassNameDragging:`react-draggable-dragging`,defaultClassNameDragged:`react-draggable-dragged`,defaultPosition:{x:0,y:0},scale:1};var DOe=o(((e,t)=>{function n(e){var t,r,i=``;if(typeof e==`string`||typeof e==`number`)i+=e;else if(typeof e==`object`){if(Array.isArray(e)){var a=e.length;for(t=0;t{var n=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,c=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},l=(e,t,n,o)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let c of a(t))!s.call(e,c)&&c!==n&&r(e,c,{get:()=>t[c],enumerable:!(o=i(t,c))||o.enumerable});return e},u=(e,t,i)=>(i=e==null?{}:n(o(e)),l(t||!e||!e.__esModule?r(i,`default`,{value:e,enumerable:!0}):i,e)),d=e=>l(r({},`__esModule`,{value:!0}),e),f={};c(f,{DraggableCore:()=>Ce,default:()=>we}),t.exports=d(f);var p=u(m()),h=u(I_()),g=u(ke()),_=DOe();function v(e,t){for(let n=0,r=e.length;n`u`)return``;let t=window.document?.documentElement?.style;if(!t||e in t)return``;for(let n=0;nt===e.identifier)||e.changedTouches&&v(e.changedTouches,e=>t===e.identifier)}function ie(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function ae(){return typeof __webpack_nonce__<`u`?__webpack_nonce__:void 0}function oe(e,t){if(!e)return;let n=e.getElementById(`react-draggable-style-el`);if(!n){n=e.createElement(`style`),n.type=`text/css`,n.id=`react-draggable-style-el`;let r=t??ae();r&&n.setAttribute(`nonce`,r),n.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} -`,n.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} -`,e.getElementsByTagName(`head`)[0].appendChild(n)}e.body&&ce(e.body,`react-draggable-transparent-selection`)}function se(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{R(e)}):R(e)}function R(e){if(e)try{e.body&&le(e.body,`react-draggable-transparent-selection`);let t=e.selection;if(t)t.empty();else{let t=(e.defaultView||window).getSelection();t&&t.type!==`Caret`&&t.removeAllRanges()}}catch{}}function ce(e,t){e.classList?e.classList.add(t):e.className.match(RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function le(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(RegExp(`(?:^|\\s)${t}(?!\\S)`,`g`),``)}function z(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:r}=e.props;r=typeof r==`string`?r:ge(r);let i=_e(e);if(typeof r==`string`){let{ownerDocument:e}=i,t=e.defaultView;if(!t)throw Error(`Cannot resolve the owner window of the draggable node.`);let n;if(n=r===`parent`?i.parentNode:i.getRootNode().querySelector(r),!(n instanceof t.HTMLElement))throw Error(`Bounds selector "`+r+`" could not find an element.`);let a=n,o=t.getComputedStyle(i),s=t.getComputedStyle(a);r={left:-i.offsetLeft+x(s.paddingLeft)+x(o.marginLeft),top:-i.offsetTop+x(s.paddingTop)+x(o.marginTop),right:ee(a)-P(i)-i.offsetLeft+x(s.paddingRight)-x(o.marginRight),bottom:F(a)-N(i)-i.offsetTop+x(s.paddingBottom)-x(o.marginBottom)}}return b(r.right)&&(t=Math.min(t,r.right)),b(r.bottom)&&(n=Math.min(n,r.bottom)),b(r.left)&&(t=Math.max(t,r.left)),b(r.top)&&(n=Math.max(n,r.top)),[t,n]}function ue(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]}function de(e){return e.props.axis===`both`||e.props.axis===`x`}function fe(e){return e.props.axis===`both`||e.props.axis===`y`}function pe(e,t,n){let r=typeof t==`number`?re(e,t):null;if(typeof t==`number`&&!r)return null;let i=_e(n),a=n.props.offsetParent||i.offsetParent||i.ownerDocument.body;return I(r||e,a,n.props.scale)}function me(e,t,n){let r=!b(e.lastX),i=_e(e);return r?{node:i,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:i,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function he(e,t){let n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function ge(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function _e(e){let t=e.findDOMNode();if(!t)throw Error(`: Unmounted during event!`);return t}var ve=u(m()),B=u(I_()),ye=u(ke()),be=typeof process<`u`&&{}.DRAGGABLE_DEBUG?console.log.bind(console):function(){},xe={touch:{start:`touchstart`,move:`touchmove`,stop:`touchend`},mouse:{start:`mousedown`,move:`mousemove`,stop:`mouseup`}},Se=xe.mouse,Ce=class extends ve.Component{constructor(){super(...arguments),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,this.touchIdentifier=null,this.mounted=!1,this.handleDragStart=e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&(typeof e.button==`number`&&e.button!==0||e.ctrlKey))return!1;let t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw Error(` not mounted on DragStart!`);let{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!A(e.target,this.props.handle,t)||this.props.cancel&&A(e.target,this.props.cancel,t))return;e.type===`touchstart`&&!this.props.allowMobileScroll&&e.preventDefault();let r=ie(e);this.touchIdentifier=r;let i=pe(e,r,this);if(i==null)return;let{x:a,y:o}=i,s=me(this,a,o);be(`DraggableCore: handleDragStart: %j`,s),be(`calling`,this.props.onStart),this.props.onStart(e,s)!==!1&&this.mounted!==!1&&(this.props.enableUserSelectHack&&oe(n,this.props.nonce),this.dragging=!0,this.lastX=a,this.lastY=o,j(n,Se.move,this.handleDrag),j(n,Se.stop,this.handleDragStop))},this.handleDrag=e=>{let t=pe(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=ue(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}let i=me(this,n,r);if(be(`DraggableCore: handleDrag: %j`,i),this.props.onDrag(e,i)===!1||this.mounted===!1)try{this.handleDragStop(new MouseEvent(`mouseup`))}catch{let e=document.createEvent(`MouseEvents`);e.initMouseEvent(`mouseup`,!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(e)}else this.lastX=n,this.lastY=r},this.handleDragStop=e=>{if(!this.dragging)return;let t=pe(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=r-this.lastY||0;[e,t]=ue(this.props.grid,e,t),n=this.lastX+e,r=this.lastY+t}let i=me(this,n,r);if(this.props.onStop(e,i)===!1||this.mounted===!1)return!1;let a=this.findDOMNode();a&&this.props.enableUserSelectHack&&se(a.ownerDocument),be(`DraggableCore: handleDragStop: %j`,i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,a&&(be(`DraggableCore: Removing handlers`),M(a.ownerDocument,Se.move,this.handleDrag),M(a.ownerDocument,Se.stop,this.handleDragStop))},this.onMouseDown=e=>(Se=xe.mouse,this.handleDragStart(e)),this.onMouseUp=e=>(Se=xe.mouse,this.handleDragStop(e)),this.onTouchStart=e=>(Se=xe.touch,this.handleDragStart(e)),this.onTouchEnd=e=>(Se=xe.touch,this.handleDragStop(e))}componentDidMount(){this.mounted=!0;let e=this.findDOMNode();e&&j(e,xe.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;let e=this.findDOMNode();if(e){let{ownerDocument:t}=e;M(t,xe.mouse.move,this.handleDrag),M(t,xe.touch.move,this.handleDrag),M(t,xe.mouse.stop,this.handleDragStop),M(t,xe.touch.stop,this.handleDragStop),M(e,xe.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&se(t)}}findDOMNode(){if(this.props?.nodeRef)return this.props.nodeRef.current;let e=ye.default;return typeof e.findDOMNode==`function`?e.findDOMNode(this):(be(`react-draggable: ReactDOM.findDOMNode is not available in React 19+. You must provide a nodeRef prop. See: https://github.com/react-grid-layout/react-draggable#noderef`),null)}render(){return ve.cloneElement(ve.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};Ce.displayName=`DraggableCore`,Ce.propTypes={allowAnyClick:B.default.bool,allowMobileScroll:B.default.bool,children:B.default.node.isRequired,disabled:B.default.bool,enableUserSelectHack:B.default.bool,offsetParent:function(e,t){if(e[t]&&e[t].nodeType!==1)throw Error(`Draggable's offsetParent must be a DOM Node.`)},grid:B.default.arrayOf(B.default.number),handle:B.default.string,cancel:B.default.string,nodeRef:B.default.object,nonce:B.default.string,onStart:B.default.func,onDrag:B.default.func,onStop:B.default.func,onMouseDown:B.default.func,scale:B.default.number,className:S,style:S,transform:S},Ce.defaultProps={allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1};var we=class extends p.Component{constructor(e){super(e),this.onDragStart=(e,t)=>{if(be(`Draggable: onDragStart: %j`,t),this.props.onStart(e,he(this,t))===!1)return!1;this.setState({dragging:!0,dragged:!0})},this.onDrag=(e,t)=>{if(!this.state.dragging)return!1;be(`Draggable: onDrag: %j`,t);let n=he(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){let{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;let[i,a]=z(this,r.x,r.y);r.x=i,r.y=a,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(this.props.onDrag(e,n)===!1)return!1;this.setState(r)},this.onDragStop=(e,t)=>{if(!this.state.dragging||this.props.onStop(e,he(this,t))===!1)return!1;be(`Draggable: onDragStop: %j`,t);let n={dragging:!1,slackX:0,slackY:0};if(this.props.position){let{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)},this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},e.position&&!(e.onDrag||e.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}static getDerivedStateFromProps({position:e},{prevPropsPosition:t}){return e&&(!t||e.x!==t.x||e.y!==t.y)?(be(`Draggable: getDerivedStateFromProps %j`,{position:e,prevPropsPosition:t}),{x:e.x,y:e.y,prevPropsPosition:{...e}}):null}componentDidMount(){window.SVGElement!==void 0&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){if(this.props?.nodeRef)return this.props.nodeRef.current;let e=g.default;return typeof e.findDOMNode==`function`?e.findDOMNode(this):null}render(){let{axis:e,bounds:t,children:n,defaultPosition:r,defaultClassName:i,defaultClassNameDragging:a,defaultClassNameDragged:o,position:s,positionOffset:c,scale:l,...u}=this.props,d={},f=null,m=!s||this.state.dragging,h=s||r,g={x:de(this)&&m?this.state.x:h.x,y:fe(this)&&m?this.state.y:h.y};this.state.isElementSVG?f=L(g,c):d=te(g,c);let v=p.Children.only(n),y=(0,_.clsx)(v.props.className||``,i,{[a]:this.state.dragging,[o]:this.state.dragged});return p.createElement(Ce,{...u,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop},p.cloneElement(v,{className:y,style:{...v.props.style,...d},transform:f}))}};we.displayName=`Draggable`,we.propTypes={...Ce.propTypes,axis:h.default.oneOf([`both`,`x`,`y`,`none`]),bounds:h.default.oneOfType([h.default.shape({left:h.default.number,right:h.default.number,top:h.default.number,bottom:h.default.number}),h.default.string,h.default.oneOf([!1])]),defaultClassName:h.default.string,defaultClassNameDragging:h.default.string,defaultClassNameDragged:h.default.string,defaultPosition:h.default.shape({x:h.default.number,y:h.default.number}),positionOffset:h.default.shape({x:h.default.oneOfType([h.default.number,h.default.string]),y:h.default.oneOfType([h.default.number,h.default.string])}),position:h.default.shape({x:h.default.number,y:h.default.number}),className:S,style:S,transform:S},we.defaultProps={...Ce.defaultProps,axis:`both`,bounds:!1,defaultClassName:`react-draggable`,defaultClassNameDragging:`react-draggable-dragging`,defaultClassNameDragged:`react-draggable-dragged`,defaultPosition:{x:0,y:0},scale:1},0&&(t.exports={DraggableCore:Ce})})),j9=o(((e,t)=>{var n=OOe(),r=n.DraggableCore,i=n.default||n;t.exports=i,t.exports.default=i,t.exports.DraggableCore=r})),kOe=o((e=>{e.__esModule=!0,e.cloneElement=c;var t=n(m());function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t{e.__esModule=!0,e.resizableProps=void 0;var t=n(I_());j9();function n(e){return e&&e.__esModule?e:{default:e}}e.resizableProps={axis:t.default.oneOf([`both`,`x`,`y`,`none`]),className:t.default.string,children:t.default.element.isRequired,draggableOpts:t.default.shape({allowAnyClick:t.default.bool,cancel:t.default.string,children:t.default.node,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:typeof Element<`u`?t.default.instanceOf(Element):t.default.any,grid:t.default.arrayOf(t.default.number),handle:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number}),height:function(){var e=[...arguments];let n=e[0];return n.axis===`both`||n.axis===`y`?t.default.number.isRequired(...e):t.default.number(...e)},handle:t.default.oneOfType([t.default.node,t.default.func]),handleSize:t.default.arrayOf(t.default.number),lockAspectRatio:t.default.bool,maxConstraints:t.default.arrayOf(t.default.number),minConstraints:t.default.arrayOf(t.default.number),onResizeStop:t.default.func,onResizeStart:t.default.func,onResize:t.default.func,resizeHandles:t.default.arrayOf(t.default.oneOf([`s`,`w`,`e`,`n`,`sw`,`nw`,`se`,`ne`])),transformScale:t.default.number,width:function(){var e=[...arguments];let n=e[0];return n.axis===`both`||n.axis===`x`?t.default.number.isRequired(...e):t.default.number(...e)}}})),N9=o((e=>{e.__esModule=!0,e.default=void 0;var t=o(m()),n=j9(),r=kOe(),i=M9(),a=[`children`,`className`,`draggableOpts`,`width`,`height`,`handle`,`handleSize`,`lockAspectRatio`,`axis`,`minConstraints`,`maxConstraints`,`onResize`,`onResizeStop`,`onResizeStart`,`resizeHandles`,`transformScale`];function o(e,t){if(typeof WeakMap==`function`)var n=new WeakMap,r=new WeakMap;return(o=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(e===null||typeof e!=`object`&&typeof e!=`function`)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(let t in e)t!=="default"&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;tMath.abs(i*n)?t=e/n:e=t*n}let o=e,s=t,c=this.slack||[0,0],l=c[0],u=c[1];return e+=l,t+=u,r&&(e=Math.max(r[0],e),t=Math.max(r[1],t)),i&&(e=Math.min(i[0],e),t=Math.min(i[1],t)),this.slack=[l+(o-e),u+(s-t)],[e,t]}resizeHandler(e,t){return(n,r)=>{let i=r.node,a=r.deltaX,o=r.deltaY;e===`onResizeStart`&&this.resetData();let s=(this.props.axis===`both`||this.props.axis===`x`)&&t!==`n`&&t!==`s`,c=(this.props.axis===`both`||this.props.axis===`y`)&&t!==`e`&&t!==`w`;if(!s&&!c)return;let l=t[0],u=t[t.length-1],d=i.getBoundingClientRect();if(this.lastHandleRect!=null){if(u===`w`){let e=d.left-this.lastHandleRect.left;a+=e}if(l===`n`){let e=d.top-this.lastHandleRect.top;o+=e}}this.lastHandleRect=d,u===`w`&&(a=-a),l===`n`&&(o=-o);let f=this.lastSize?.width??this.props.width,p=this.lastSize?.height??this.props.height,m=f+(s?a/this.props.transformScale:0),h=p+(c?o/this.props.transformScale:0);var g=this.runConstraints(m,h);if(m=g[0],h=g[1],e===`onResizeStop`&&this.lastSize){var _=this.lastSize;m=_.width,h=_.height}let v=m!==f||h!==p;e!==`onResizeStop`&&(this.lastSize={width:m,height:h});let y=typeof this.props[e]==`function`?this.props[e]:null;y&&(e!==`onResize`||v)&&(n.persist==null||n.persist(),y(n,{node:i,size:{width:m,height:h},handle:t})),e===`onResizeStop`&&this.resetData()}}renderResizeHandle(e,n){let r=this.props.handle;if(!r)return t.createElement(`span`,{className:`react-resizable-handle react-resizable-handle-`+e,ref:n});if(typeof r==`function`)return r(e,n);let i=typeof r.type==`string`,a=u({ref:n},i?{}:{handleAxis:e});return t.cloneElement(r,a)}render(){let e=this.props,i=e.children,o=e.className,l=e.draggableOpts;e.width,e.height,e.handle,e.handleSize,e.lockAspectRatio,e.axis,e.minConstraints,e.maxConstraints,e.onResize,e.onResizeStop,e.onResizeStart;let d=e.resizeHandles;e.transformScale;let f=c(e,a);return(0,r.cloneElement)(i,u(u({},f),{},{className:(o?o+` `:``)+`react-resizable`,children:[...t.Children.toArray(i.props.children),...d.map(e=>{let r=this.handleRefs[e]??(this.handleRefs[e]=t.createRef());return t.createElement(n.DraggableCore,s({},l,{nodeRef:r,key:`resizableHandle-`+e,onStop:this.resizeHandler(`onResizeStop`,e),onStart:this.resizeHandler(`onResizeStart`,e),onDrag:this.resizeHandler(`onResize`,e)}),this.renderResizeHandle(e,r))})]}))}};e.default=h,h.propTypes=i.resizableProps,h.defaultProps={axis:`both`,handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:[`se`],transformScale:1}})),AOe=o((e=>{e.__esModule=!0,e.default=void 0;var t=s(m()),n=o(I_()),r=o(N9()),i=M9(),a=[`handle`,`handleSize`,`onResize`,`onResizeStart`,`onResizeStop`,`draggableOpts`,`minConstraints`,`maxConstraints`,`lockAspectRatio`,`axis`,`width`,`height`,`resizeHandles`,`style`,`transformScale`];function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(typeof WeakMap==`function`)var n=new WeakMap,r=new WeakMap;return(s=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(e===null||typeof e!=`object`&&typeof e!=`function`)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(let t in e)t!=="default"&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let n=t.size;this.props.onResize?(e.persist==null||e.persist(),this.setState(n,()=>this.props.onResize&&this.props.onResize(e,t))):this.setState(n)}}static getDerivedStateFromProps(e,t){return t.propsWidth!==e.width||t.propsHeight!==e.height?{width:e.width,height:e.height,propsWidth:e.width,propsHeight:e.height}:null}render(){let e=this.props,n=e.handle,i=e.handleSize;e.onResize;let o=e.onResizeStart,s=e.onResizeStop,l=e.draggableOpts,d=e.minConstraints,f=e.maxConstraints,p=e.lockAspectRatio,m=e.axis;e.width,e.height;let g=e.resizeHandles,_=e.style,v=e.transformScale,y=h(e,a);return t.createElement(r.default,{axis:m,draggableOpts:l,handle:n,handleSize:i,height:this.state.height,lockAspectRatio:p,maxConstraints:f,minConstraints:d,onResizeStart:o,onResize:this.onResize,onResizeStop:s,resizeHandles:g,transformScale:v,width:this.state.width},t.createElement(`div`,c({},y,{style:u(u({},_),{},{width:this.state.width+`px`,height:this.state.height+`px`})})))}};e.default=g,g.propTypes=u(u({},i.resizableProps),{},{children:n.default.element})})),jOe=o(((e,t)=>{t.exports=function(){throw Error(`Don't instantiate Resizable directly! Use require('react-resizable').Resizable`)},t.exports.Resizable=N9().default,t.exports.ResizableBox=AOe().default}))(),P9=rOe(),F9=50,I9=12;function MOe(e){let t=e;for(;t;){let e=window.getComputedStyle(t).overflowY;if((e===`auto`||e===`scroll`)&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return null}function NOe(e){let t=MOe(e),n=null,r=0,i=0,a=!1;function o(){let e=t;if(!e)return;let s=e.getBoundingClientRect(),{clientHeight:c,scrollTop:l,scrollHeight:u}=e,{scrollLeft:d,scrollWidth:f,clientWidth:p}=e,m=0,h=0;i0?m=-I9:i>s.bottom-F9&&l+c0?h=-I9:r>s.right-F9&&d+p({cols:n,containerPadding:a,containerWidth:r,margin:i,maxRows:s,rowHeight:o}),[n,a,r,i,s,o]),ye=(0,h.useMemo)(()=>({cols:n,maxRows:s,containerWidth:r,containerHeight:0,rowHeight:o,margin:i,layout:[]}),[n,s,r,o,i]),be=(0,h.useCallback)(e=>({...ye,containerHeight:e??ye.containerHeight,layout:fe.current}),[ye]),xe=(0,h.useMemo)(()=>ee??{i:M,x:w,y:T,w:E,h:D,minW:O,maxW:k,minH:A,maxH:j},[ee,M,w,T,E,D,O,k,A,j]),Se=(0,h.useCallback)(e=>{if(_?.calcStyle)return _.calcStyle(e);if(p)return H7(e);let t=HDe(e);return m?{...t,left:U7(e.left/r),width:U7(e.width/r)}:t},[_,p,m,r]),Ce=(0,h.useCallback)((e,{node:t})=>{if(!te)return;let{offsetParent:n}=t;if(!n)return;let r=n.getBoundingClientRect(),i=t.getBoundingClientRect(),a=i.left/g,o=r.left/g,s=i.top/g,c=r.top/g,l;if(_?.calcDragPosition){let t=e;l=_.calcDragPosition(t.clientX,t.clientY,t.clientX-i.left,t.clientY-i.top)}else l={left:a-o+n.scrollLeft,top:s-c+n.scrollTop};if(z.current=l,ve.current||=NOe(t instanceof HTMLElement?t:null),v>0){let t=e;ge.current={x:t.clientX,y:t.clientY},he.current=!0,_e.current=!1,se(!0);return}se(!0);let u=w7(B,l.top,l.left),{x:d,y:f}=V7(F,xe,u.x,u.y,be());te(M,d,f,{e,node:t,newPosition:l})},[te,g,B,_,v,F,xe,be,M]),we=(0,h.useCallback)((e,{node:t,deltaX:n,deltaY:a})=>{if(!L||!oe)return;let s=e;if(he.current&&!_e.current){let n=s.clientX-ge.current.x,r=s.clientY-ge.current.y;if(Math.hypot(n,r){if(!ne||!oe)return;ve.current?.stop(),ve.current=null;let n=he.current;if(he.current=!1,_e.current=!1,ge.current={x:0,y:0},n){se(!1),z.current={left:0,top:0};return}let{left:r,top:i}=z.current,a={top:i,left:r};se(!1),z.current={left:0,top:0};let o=w7(B,i,r),{x:s,y:c}=V7(F,xe,o.x,o.y,be());ne(M,s,c,{e,node:t,newPosition:a})},[ne,oe,B,F,xe,be,M]);pe.current=Ce,me.current=we;let Ee=(0,h.useCallback)((e,{node:t,size:n,handle:i},a,o)=>{let s=o===`onResizeStart`?re:o===`onResize`?ie:ae;if(!s)return;let c;c=t?KDe(i,a,n,r):{...n,top:a.top,left:a.left},ue.current=c;let l=t?.offsetParent?.clientHeight??0,u=LDe(B,c.width,c.height),{w:d,h:f}=VDe(F,xe,u.w,u.h,i,be(l));s(M,d,f,{e:e.nativeEvent??e,node:t,size:c,handle:i})},[re,ie,ae,r,B,M,F,xe,be]),De=(0,h.useCallback)((e,t)=>{ce(!0);let n=C7(B,w,T,E,D),r={...t,handle:t.handle};Ee(e,r,n,`onResizeStart`)},[Ee,B,w,T,E,D]),Oe=(0,h.useCallback)((e,t)=>{let n=C7(B,w,T,E,D),r={...t,handle:t.handle};Ee(e,r,n,`onResize`)},[Ee,B,w,T,E,D]),ke=(0,h.useCallback)((e,t)=>{ce(!1),ue.current={top:0,left:0,width:0,height:0};let n=C7(B,w,T,E,D),r={...t,handle:t.handle};Ee(e,r,n,`onResizeStop`)},[Ee,B,w,T,E,D]);(0,h.useEffect)(()=>{if(!y)return;let e=le.current;if(!e)return;let t=de.current||{left:0,top:0},n=oe&&(y.left!==t.left||y.top!==t.top);if(!oe){let t={node:e,deltaX:y.left,deltaY:y.top,lastX:0,lastY:0,x:y.left,y:y.top};pe.current?.(y.e,t)}else if(n){let t={node:e,deltaX:y.left-z.current.left,deltaY:y.top-z.current.top,lastX:z.current.left,lastY:z.current.top,x:y.left,y:y.top};me.current?.(y.e,t)}de.current=y},[y,oe,M]);let Ae=C7(B,w,T,E,D,oe?z.current:null,R?ue.current:null),je=h.Children.only(t),Me=x7(B),Ne=[S7(O,Me,i[0]),S7(A,o,i[1])],Pe=[S7(k,Me,i[0]),S7(j,o,i[1])],Fe=je.props,Ie=Fe.className,Le=Fe.style,Re=h.cloneElement(je,{ref:le,className:tn(`react-grid-item`,Ie,b,{static:f,resizing:R,"react-draggable":c,"react-draggable-dragging":oe,dropping:!!y,cssTransforms:p}),style:{...x,...Le,...Se(Ae)}}),ze=P;return Re=(0,H.jsx)(jOe.Resizable,{draggableOpts:{disabled:!l},className:l?void 0:`react-resizable-hide`,width:Ae.width,height:Ae.height,minConstraints:Ne,maxConstraints:Pe,onResizeStart:De,onResize:Oe,onResizeStop:ke,transformScale:g,resizeHandles:N,handle:ze,children:Re}),Re=(0,H.jsx)(k9,{disabled:!c,onStart:Ce,onDrag:we,onStop:Te,handle:S,cancel:`.react-resizable-handle`+(C?`,`+C:``),scale:g,allowMobileScroll:d,nodeRef:le,children:Re}),Re}var L9=h.memo(POe,(e,t)=>e.x===t.x&&e.y===t.y&&e.w===t.w&&e.h===t.h&&e.minW===t.minW&&e.maxW===t.maxW&&e.minH===t.minH&&e.maxH===t.maxH&&e.cols===t.cols&&e.containerWidth===t.containerWidth&&e.rowHeight===t.rowHeight&&e.maxRows===t.maxRows&&e.margin===t.margin&&e.containerPadding===t.containerPadding&&e.transformScale===t.transformScale&&e.isDraggable===t.isDraggable&&e.isResizable===t.isResizable&&e.isBounded===t.isBounded&&e.allowMobileScroll===t.allowMobileScroll&&e.useCSSTransforms===t.useCSSTransforms&&e.usePercentages===t.usePercentages&&e.children===t.children&&e.onDrag===t.onDrag&&e.onDragStop===t.onDragStop&&e.onResize===t.onResize&&e.onResizeStop===t.onResizeStop&&e.droppingPosition===t.droppingPosition);L9.displayName=`GridItem`;function R9(e){let{clientX:t,clientY:n,gridElement:r,droppingItem:i,event:a,dragOffsetX:o=0,dragOffsetY:s=0,transformScale:c,cols:l,margin:u,maxRows:d,rowHeight:f,width:p,containerPadding:m}=e,h=r.getBoundingClientRect(),g={cols:l,margin:u,maxRows:d,rowHeight:f,containerWidth:p,containerPadding:m},_=x7(g),v=S7(i.w,_,u[0]),y=S7(i.h,f,u[1]),b=v/2,x=y/2,S=r.scrollLeft??0,C=r.scrollTop??0,w=t-h.left+S+o-b,T=n-h.top+C+s-x,E=Math.max(0,w),D=Math.max(0,T);return{newDroppingPosition:{left:E/c,top:D/c,e:a},calculatedXY:IDe(g,D,E,i.w,i.h)}}var z9=()=>{},B9=`react-grid-layout`,V9=!1;try{V9=/firefox/i.test(navigator.userAgent)}catch{}function FOe(e,t){let n=h.Children.toArray(e),r=h.Children.toArray(t);if(n.length!==r.length)return!1;for(let e=0;e{if(!h.isValidElement(t)||t.key===null)return;let n=String(t.key);a.add(n);let r=e.find(e=>e.i===n);if(r)i.push(P7(r));else{let e=t.props[`data-grid`];e?i.push({i:n,x:e.x??0,y:e.y??0,w:e.w??1,h:e.h??1,minW:e.minW,maxW:e.maxW,minH:e.minH,maxH:e.maxH,static:e.static,isDraggable:e.isDraggable,isResizable:e.isResizable,resizeHandles:e.resizeHandles,isBounded:e.isBounded}):i.push({i:n,x:0,y:j7(i),w:1,h:1})}});let o=I7(i,{cols:n});return r.compact(o,n)}function U9(e){let{children:t,width:n,gridConfig:r,dragConfig:i,resizeConfig:a,dropConfig:o,positionStrategy:s=qDe,compactor:c,constraints:l=B7,layout:u=[],droppingItem:d,autoSize:f=!0,className:p=``,style:m={},innerRef:g,onLayoutChange:_=z9,onDragStart:v=z9,onDrag:y=z9,onDragStop:b=z9,onResizeStart:x=z9,onResize:S=z9,onResizeStop:C=z9,onDrop:w=z9,onDropDragOver:T=z9}=e,E=(0,h.useMemo)(()=>({...JDe,...r}),[r]),D=(0,h.useMemo)(()=>({...YDe,...i}),[i]),O=(0,h.useMemo)(()=>({...XDe,...a}),[a]),k=(0,h.useMemo)(()=>({...ZDe,...o}),[o]),{cols:A,rowHeight:j,maxRows:M,margin:N,containerPadding:P}=E,{enabled:F,bounded:ee,handle:I,cancel:te,threshold:L,allowMobileScroll:ne}=D,{enabled:re,handles:ie,handleComponent:ae}=O,{enabled:oe,defaultItem:se,onDragOver:R,touchEnabled:ce=!0,touchDragSource:le=`[data-rgl-draggable]`}=k,z=c??e9(`vertical`),ue=z.type,de=z.allowOverlap,fe=z.preventCollision??!1,pe=(0,h.useMemo)(()=>d??{i:`__dropping-elem__`,...se},[d,se]),me=s.type===`transform`,he=s.scale,ge=P??N,[_e,ve]=(0,h.useState)(!1),[B,ye]=(0,h.useState)(()=>H9(u,t,A,z)),[be,xe]=(0,h.useState)(null),[Se,Ce]=(0,h.useState)(!1),[we,Te]=(0,h.useState)(null),[Ee,De]=(0,h.useState)(),Oe=(0,h.useRef)(void 0);Oe.current=Ee;let ke=(0,h.useRef)(null),Ae=(0,h.useRef)(null),je=(0,h.useRef)(null),Me=(0,h.useRef)(0),Ne=(0,h.useRef)(B),Pe=(0,h.useRef)(u),Fe=(0,h.useRef)(t),Ie=(0,h.useRef)(ue),Le=(0,h.useRef)(null),Re=(0,h.useRef)(!1),ze=(0,h.useRef)(null),Be=(0,h.useRef)(null);Be.current=we;let Ve=(0,h.useRef)(w);(0,h.useLayoutEffect)(()=>{Ve.current=w});let He=(0,h.useRef)(B);He.current=B,(0,h.useEffect)(()=>{ve(!0),(0,P9.deepEqual)(B,u)||_(B)},[]),(0,h.useEffect)(()=>{if(be||we)return;let e=!(0,P9.deepEqual)(u,Pe.current),n=!FOe(t,Fe.current),r=ue!==Ie.current;if(e||n||r){let n=H9(e?u:B,t,A,z);(0,P9.deepEqual)(n,B)||ye(n)}Pe.current=u,Fe.current=t,Ie.current=ue},[u,t,A,ue,z,be,we,B]),(0,h.useEffect)(()=>{if(!be&&!we&&!(0,P9.deepEqual)(B,Ne.current)){Ne.current=B;let e=B.filter(e=>e.i!==pe.i);_(e)}},[B,be,we,_,pe.i]);let Ue=(0,h.useMemo)(()=>{if(!f)return;let e=j7(B),t=ge[1];return e*j+(e-1)*N[1]+t*2+`px`},[f,B,j,N,ge]),We=(0,h.useCallback)((e,t,n,r)=>{let i=He.current,a=M7(i,e);if(!a)return;let o={w:a.w,h:a.h,x:a.x,y:a.y,i:e};ke.current=P7(a),je.current=i,xe(o),v(i,a,a,null,r.e,r.node)},[v]),Ge=(0,h.useCallback)((e,t,n,r)=>{let i=He.current,a=ke.current,o=M7(i,e);if(!o)return;let s={w:o.w,h:o.h,x:o.x,y:o.y,i:e},c=L7(i,o,t,n,!0,fe,ue,A,de);y(c,a,o,s,r.e,r.node),ye(z.compact(c,A)),xe(s)},[fe,ue,A,de,z,y]),Ke=(0,h.useCallback)((e,t,n,r)=>{if(!ke.current)return;let i=He.current,a=ke.current,o=M7(i,e);if(!o)return;let s=L7(i,o,t,n,!0,fe,ue,A,de),c=z.compact(s,A);b(c,a,o,null,r.e,r.node);let l=je.current;ke.current=null,je.current=null,xe(null),ye(c),l&&!(0,P9.deepEqual)(l,c)&&_(c)},[fe,ue,A,de,z,b,_]),qe=(0,h.useCallback)((e,t,n,r)=>{let i=He.current,a=M7(i,e);a&&(Ae.current=P7(a),je.current=i,Ce(!0),x(i,a,a,null,r.e,r.node))},[x]),Je=(0,h.useCallback)((e,t,n,r)=>{let i=He.current,a=Ae.current,{handle:o}=r,s=!1,c,l,[u,d]=BDe(i,e,e=>(c=e.x,l=e.y,[`sw`,`w`,`nw`,`n`,`ne`].includes(o)&&([`sw`,`nw`,`w`].includes(o)&&(c=e.x+(e.w-t),t=e.x!==c&&c<0?e.w:t,c=c<0?0:c),[`ne`,`n`,`nw`].includes(o)&&(l=e.y+(e.h-n),n=e.y!==l&&l<0?e.h:n,l=l<0?0:l),s=!0),fe&&!de&&O7(i,{...e,w:t,h:n,x:c??e.x,y:l??e.y}).filter(t=>t.i!==e.i).length>0&&(l=e.y,n=e.h,c=e.x,t=e.w,s=!1),e.w=t,e.h=n,(o===`n`||o===`nw`||o===`ne`)&&(e.y=l??e.y),e));if(!d)return;let f=u;s&&c!==void 0&&l!==void 0&&(f=L7(u,d,c,l,!0,fe,ue,A,de));let p={w:d.w,h:d.h,x:d.x,y:d.y,i:e,static:!0};S(f,a,d,p,r.e,r.node);let m=z.compact(f,A);if(o===`n`||o===`nw`||o===`ne`){let t=m.find(t=>t.i===e);t&&(t.y=d.y)}ye(m),xe(p)},[fe,ue,A,de,z,S]),Ye=(0,h.useCallback)((e,t,n,r)=>{let i=He.current,a=Ae.current,o=M7(i,e),s=z.compact(i,A);C(s,a,o??null,null,r.e,r.node);let c=je.current;Ae.current=null,je.current=null,xe(null),Ce(!1),ye(s),c&&!(0,P9.deepEqual)(c,s)&&_(s)},[A,z,C,_]),Xe=(0,h.useCallback)((e,t,n,r)=>{if(r)Oe.current&&(Oe.current.left!==t.left||Oe.current.top!==t.top)&&(De(t),ye(t=>t.map(t=>t.i===e.i&&(t.x!==n.x||t.y!==n.y)?{...t,x:n.x,y:n.y}:t)));else{Te((0,H.jsx)(`div`,{},e.i)),De(t);let r=He.current.filter(t=>t.i!==e.i);ye([...r,{...e,x:n.x,y:n.y,static:!1,isDraggable:!0}])}},[]),Ze=(0,h.useCallback)((e,t,r)=>{let i=Le.current;if(!i)return;let{newDroppingPosition:a,calculatedXY:o}=R9({clientX:e,clientY:t,gridElement:i,droppingItem:pe,event:r,transformScale:he,cols:A,margin:N,maxRows:M,rowHeight:j,width:n,containerPadding:ge});Xe(pe,a,o,!!Be.current)},[pe,he,A,N,M,j,n,ge,Xe]),Qe=(0,h.useCallback)(()=>{let e=He.current;if(!e.some(e=>e.i===pe.i)){Te(null),xe(null),De(void 0);return}let t=z.compact(e.filter(e=>e.i!==pe.i),A);ye(t),Te(null),xe(null),De(void 0)},[pe.i,A,z]),$e=(0,h.useCallback)(e=>{if(e.preventDefault(),e.stopPropagation(),V9&&!e.nativeEvent.target?.classList.contains(B9))return!1;let t=R?R(e.nativeEvent):T(e);if(t===!1)return we&&Qe(),!1;let{dragOffsetX:r=0,dragOffsetY:i=0,...a}=t??{},o={...pe,...a},{newDroppingPosition:s,calculatedXY:c}=R9({clientX:e.clientX,clientY:e.clientY,gridElement:e.currentTarget,droppingItem:o,event:e.nativeEvent,dragOffsetX:r,dragOffsetY:i,transformScale:he,cols:A,margin:N,maxRows:M,rowHeight:j,width:n,containerPadding:ge});Xe(o,s,c,!!we)},[we,pe,R,T,Qe,Xe,he,A,N,M,j,n,ge]),et=(0,h.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),Me.current--,Me.current<0&&(Me.current=0),Me.current===0&&Qe()},[Qe]),tt=(0,h.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),Me.current++},[]),nt=(0,h.useCallback)(e=>{let t=He.current,n=t.find(e=>e.i===pe.i);Qe(),Ve.current(t,n,e)},[pe.i,Qe]),rt=(0,h.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),Me.current=0,nt(e.nativeEvent)},[nt]);(0,h.useEffect)(()=>{if(!oe||!ce)return;let e=Le.current;if(!e)return;let t=(t,n)=>{let r=document.elementFromPoint(t,n);return r?e.contains(r):!1},n=e=>e instanceof HTMLElement&&e.closest(le)!==null,r=e=>{let t=e.changedTouches;if(!t||t.length===0)return;let n=ze.current;if(n===null)return t[0];for(let e=0;e{if(!n(e.target)||ze.current!==null)return;e.preventDefault();let t=e.changedTouches?.[0];t&&(ze.current=t.identifier,Re.current=!0)},a=e=>{if(!Re.current)return;e.preventDefault();let n=r(e);n&&(t(n.clientX,n.clientY)?Ze(n.clientX,n.clientY,e):Be.current&&Qe())},o=e=>{if(!Re.current)return;e.preventDefault();let n=r(e);Re.current=!1,ze.current=null,n&&(t(n.clientX,n.clientY)?nt(e):Qe())},s=()=>{Re.current&&(Re.current=!1,ze.current=null,Qe())},c={passive:!1};return document.addEventListener(`touchstart`,i,c),document.addEventListener(`touchmove`,a,c),document.addEventListener(`touchend`,o,c),document.addEventListener(`touchcancel`,s,c),()=>{document.removeEventListener(`touchstart`,i,c),document.removeEventListener(`touchmove`,a,c),document.removeEventListener(`touchend`,o,c),document.removeEventListener(`touchcancel`,s,c)}},[oe,ce,le,Ze,Qe,nt,pe.i]);let it=(0,h.useCallback)((e,t)=>{if(!e||!e.key)return null;let r=M7(B,String(e.key));if(!r)return null;let i=typeof r.isDraggable==`boolean`?r.isDraggable:!r.static&&F,a=typeof r.isResizable==`boolean`?r.isResizable:!r.static&&re,o=r.resizeHandles||[...ie],c=i&&ee&&r.isBounded!==!1,u=ae;return(0,H.jsx)(L9,{containerWidth:n,cols:A,margin:N,containerPadding:ge,maxRows:M,rowHeight:j,cancel:te,handle:I,onDragStart:We,onDrag:Ge,onDragStop:Ke,onResizeStart:qe,onResize:Je,onResizeStop:Ye,isDraggable:i,isResizable:a,isBounded:c,allowMobileScroll:ne,useCSSTransforms:me&&_e,usePercentages:!_e,transformScale:he,positionStrategy:s,dragThreshold:L,w:r.w,h:r.h,x:r.x,y:r.y,i:r.i,minH:r.minH,minW:r.minW,maxH:r.maxH,maxW:r.maxW,static:r.static,droppingPosition:t?Ee:void 0,resizeHandles:o,resizeHandle:u,constraints:l,layoutItem:r,layout:B,children:e},r.i)},[B,n,A,N,ge,M,j,te,I,We,Ge,Ke,qe,Je,Ye,F,re,ee,me,_e,he,s,L,Ee,ie,ae,l]),at=()=>be?(0,H.jsx)(L9,{w:be.w,h:be.h,x:be.x,y:be.y,i:be.i,className:`react-grid-placeholder ${Se?`placeholder-resizing`:``}`,containerWidth:n,cols:A,margin:N,containerPadding:ge,maxRows:M,rowHeight:j,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:me,transformScale:he,constraints:l,layout:B,children:(0,H.jsx)(`div`,{})}):null,ot=(0,h.useCallback)(e=>{Le.current=e,typeof g==`function`?g(e):g&&`current`in g&&(g.current=e)},[g]),st=tn(B9,p),ct={height:Ue,...m};return(0,H.jsxs)(`div`,{ref:ot,className:st,style:ct,onDrop:oe?rt:void 0,onDragLeave:oe?et:void 0,onDragEnter:oe?tt:void 0,onDragOver:oe?$e:void 0,children:[h.Children.map(t,e=>h.isValidElement(e)?it(e):null),oe&&we&&it(we,!0),at()]})}var IOe={lg:1200,md:996,sm:768,xs:480,xxs:0},LOe={lg:12,md:10,sm:6,xs:4,xxs:2},W9=()=>{};function ROe(e,t,n,r,i=!1){let a=[];h.Children.forEach(t,t=>{if(!h.isValidElement(t)||t.key===null)return;let n=String(t.key),r=t.props[`data-grid`],o=e.find(e=>e.i===n);o?i&&r?a.push({...o,i:n,w:r.w??o.w,h:r.h??o.h,minW:r.minW??o.minW,maxW:r.maxW??o.maxW,minH:r.minH??o.minH,maxH:r.maxH??o.maxH}):a.push({...o,i:n}):r?a.push({i:n,x:r.x??0,y:r.y??0,w:r.w??1,h:r.h??1,minW:r.minW,maxW:r.maxW,minH:r.minH,maxH:r.maxH,static:r.static,isDraggable:r.isDraggable,isResizable:r.isResizable,resizeHandles:r.resizeHandles,isBounded:r.isBounded}):a.push({i:n,x:0,y:j7(a),w:1,h:1})});let o=I7(a,{cols:n});return r.compact(o,n)}function zOe(e){let{children:t,width:n,breakpoint:r,breakpoints:i=IOe,cols:a=LOe,layouts:o={},rowHeight:s=150,maxRows:c=1/0,margin:l=[10,10],containerPadding:u=null,compactor:d,onBreakpointChange:f=W9,onLayoutChange:p=W9,onWidthChange:m=W9,...g}=e,_=d??e9(`vertical`),v=_.type,y=_.allowOverlap,b=(0,h.useMemo)(()=>r??n9(i,n),[]),x=(0,h.useMemo)(()=>r9(b,a),[b,a]),S=(0,h.useMemo)(()=>i9(o,i,b,b,x,v),[]),[C,w]=(0,h.useState)(b),[T,E]=(0,h.useState)(x),[D,O]=(0,h.useState)(S),[k,A]=(0,h.useState)(o),j=(0,h.useRef)(n),M=(0,h.useRef)(r),N=(0,h.useRef)(i),P=(0,h.useRef)(a),F=(0,h.useRef)(o),ee=(0,h.useRef)(v),I=(0,h.useRef)(k);(0,h.useEffect)(()=>{I.current=k},[k]);let te=(0,h.useMemo)(()=>(0,P9.deepEqual)(o,F.current)?null:i9(o,i,C,C,T,_),[o,i,C,T,_]),L=te??D;(0,h.useEffect)(()=>{te!==null&&(O(te),A(o),I.current=o,F.current=o)},[te,o]),(0,h.useEffect)(()=>{if(v!==ee.current){let e=_.compact(F7(L),T),t={...I.current,[C]:e};O(e),A(t),I.current=t,p(e,t),ee.current=v}},[v,_,L,T,y,C,p]),(0,h.useEffect)(()=>{let e=n!==j.current,o=r!==M.current,s=!(0,P9.deepEqual)(i,N.current),c=!(0,P9.deepEqual)(a,P.current);if(e||o||s||c){let e=r??n9(i,n),o=r9(e,a),d=C;if(d!==e||s||c){let n={...I.current};n[d]||(n[d]=F7(D));let r=i9(n,i,e,d,o,_),a=!n[e];r=ROe(r,t,o,_,a),n[e]=r,w(e),E(o),O(r),A(n),I.current=n,f(e,o),p(r,n)}let h=a9(l,e),g=u?a9(u,e):null;m(n,h,o,g),j.current=n,M.current=r,N.current=i,P.current=a}},[n,r,i,a,C,T,D,t,_,v,y,l,u,f,p,m]);let ne=(0,h.useCallback)(e=>{let t={...I.current,[C]:e};O(e),A(t),I.current=t,p(e,t)},[C,p]),re=(0,h.useMemo)(()=>a9(l,C),[l,C]),ie=(0,h.useMemo)(()=>u===null?null:a9(u,C),[u,C]),ae=(0,h.useMemo)(()=>({cols:T,rowHeight:s,maxRows:c,margin:re,containerPadding:ie}),[T,s,c,re,ie]);return(0,H.jsx)(U9,{...g,width:n,gridConfig:ae,compactor:_,onLayoutChange:ne,layout:L,children:t})}var BOe=h.forwardRef(function(e,t){let{innerRef:n,...r}=e,i=n??t;return(0,H.jsx)(zOe,{...r,innerRef:i})});BOe.displayName=`ResponsiveGridLayout`;var G9=36,VOe={s:2,m:7,l:12},HOe={stat:3,gauge:3,timeseries:6,bar:6,table:12,list:6,inbox:8,cards:12,timeline:12,text:6};function UOe(e){return{w:Math.min(12,e.width??HOe[e.viz]),h:VOe[e.height??(e.viz===`stat`||e.viz===`gauge`?`s`:e.viz===`inbox`?`l`:`m`)]}}var K9=12,q9=48,J9=58;function WOe(e,t,n,r){if(t?.status===`empty`||t?.frame&&t.frame.rows.length===0)return 2;let i=t?.frame?.rows.length;if(i===void 0)return;let a;switch(e.viz){case`table`:a=90+31*i;break;case`list`:a=J9+33*i;break;case`inbox`:{let e=t?.frame?.columns.findIndex(e=>e.name===`kind`)??-1,n=e<0?i:t.frame.rows.filter(t=>t[e]===`waiting`).length;a=142+72*n+36*(i-n);break}case`cards`:{let e=Math.max(1,Math.floor(r*n/12/230));a=J9+160*Math.ceil(i/e);break}case`stat`:return 2;case`gauge`:return 3;default:return}return Math.max(2,Math.ceil((a+K9)/q9))}function GOe(e){let t=[],n=(e,n,r,i)=>t.every(t=>e+r<=t.x||t.x+t.w<=e||n+i<=t.y||t.y+t.h<=n);for(let n of e)n.grid&&t.push({i:n.id,...n.grid});for(let r of e){if(r.grid)continue;let{w:e,h:i}=UOe(r),a;for(let t=0;!a;t++)for(let r=0;r+e<=12&&!a;r++)n(r,t,e,i)&&(a={x:r,y:t});t.push({i:r.id,...a,w:e,h:i})}return t}function KOe(e,t,n,r,i){let a=e.map(e=>({...e,h:Math.min(Math.max(e.h,12),WOe(t.get(e.i),n.get(e.i),e.w,r)??e.h)})),o=(e,t)=>e.x!a.some(n=>n!==e&&o({...e,...t},n)),c=()=>{for(let e of[...a].sort((e,t)=>e.y-t.y||e.x-t.x))for(;e.y>0&&a.every(t=>t===e||t.y>e.y||!o({...e,y:e.y-1},t));)e.y--},l=()=>Math.max(0,...a.map(e=>e.y+e.h)),u=[];for(let e of[...a].sort((e,t)=>e.y-t.y||e.x-t.x)){for(;u.some(t=>o(e,t));)e.y++;u.push(e)}c();let d=new Set([`bar`,`timeseries`,`timeline`]),f=e=>d.has(t.get(e.i).viz)?4:Math.min(5,e.h),p=new Map(e.map((e,t)=>[e.i,t]));for(;l()>i;){let e=a.filter(e=>e.h>f(e)).sort((e,t)=>p.get(t.i)-p.get(e.i))[0]??a.filter(e=>e.h>3).sort((e,t)=>t.h-e.h)[0];if(!e)break;e.h--,c()}for(let e of a){for(;e.x>0&&s(e,{x:e.x-1,w:1});)e.x--,e.w++;for(;e.x+e.w<12&&s(e,{x:e.x+e.w,w:1});)e.w++}let m=Math.max(i,l());for(let e of[...a].sort((e,t)=>e.y-t.y))for(;e.y+e.h{let e=t.current;if(!e)return;let n=()=>r({height:e.clientHeight,width:e.clientWidth});n();let i=new ResizeObserver(n);return i.observe(e),()=>i.disconnect()},[e]),{ref:t,...n}}function JOe({fragment:e,editing:t,act:n,onLayout:r,onRemove:i}){let{inboxFilter:a}=I0(),{width:o,containerRef:s,mounted:c}=aOe(),l=qOe(t),u=new Map(e.results.map(e=>[e.id,e])),d=new Map(e.dashboard.panels.map(e=>[e.id,e])),f=t?[]:e.dashboard.panels.filter(e=>u.get(e.id)?.status===`empty`&&!(e.viz===`inbox`&&a)),p=t?e.dashboard.panels:e.dashboard.panels.filter(e=>!f.includes(e)),m=Math.max(1,Math.floor((l.height+K9)/q9)),h=KOe(GOe(p),d,u,l.width,m),g=e=>{l.ref.current=e,s.current=e},_=l.height>0&&l.width>0;if(!t){let e=Math.max(1,...h.map(e=>e.y+e.h));return(0,H.jsxs)(H.Fragment,{children:[f.length>0&&(0,H.jsx)(YOe,{panels:f,results:u}),(0,H.jsx)(G,{ref:g,style:{flex:1,minHeight:0,display:`grid`,gridTemplateColumns:`repeat(12, minmax(0, 1fr))`,gap:K9,gridTemplateRows:`repeat(${e}, minmax(${G9}px, 1fr))`},children:_&&h.map(e=>(0,H.jsx)(G,{style:{minWidth:0,minHeight:0,gridColumn:`${e.x+1} / span ${e.w}`,gridRow:`${e.y+1} / span ${e.h}`},children:(0,H.jsx)(E8,{panel:d.get(e.i),result:u.get(e.i),act:n,fill:!0})},e.i))})]})}let v=e=>{e.some(e=>{let t=h.find(t=>t.i===e.i);return!t||t.x!==e.x||t.y!==e.y||t.w!==e.w||t.h!==e.h})&&r(Object.fromEntries(e.map(e=>[e.i,{x:e.x,y:e.y,w:e.w,h:e.h}])))};return(0,H.jsx)(G,{ref:g,className:`editing`,style:{flex:1,minHeight:0,overflow:`auto`},children:_&&c&&(0,H.jsx)(U9,{width:o,layout:h,gridConfig:{cols:12,rowHeight:G9,margin:[K9,K9],containerPadding:[0,0]},dragConfig:{enabled:!0,handle:`.panel-handle`},resizeConfig:{enabled:!0},onDragStop:e=>v(e),onResizeStop:e=>v(e),children:h.map(e=>(0,H.jsxs)(`div`,{style:{position:`relative`},children:[(0,H.jsx)(E8,{panel:d.get(e.i),result:u.get(e.i),fill:!0}),(0,H.jsx)(lu,{variant:`default`,pos:`absolute`,top:8,right:8,"aria-label":`Remove ${d.get(e.i).title}`,onClick:()=>{W0(`Remove ${d.get(e.i).title} from this dashboard?`).then(t=>{t&&i(e.i)})},children:(0,H.jsx)(Iy,{})})]},e.i))})})}function YOe({panels:e,results:t}){return(0,H.jsx)(K,{role:`group`,gap:`lg`,mb:8,px:2,"aria-label":`Nothing to show`,children:e.map(e=>(0,H.jsx)(Bg,{label:t.get(e.id)?.message??e.empty??`Nothing matches right now.`,multiline:!0,maw:300,children:(0,H.jsxs)(K,{id:`panel-${e.id}`,gap:6,wrap:`nowrap`,c:`dimmed`,children:[(0,H.jsx)(Dv,{"aria-hidden":!0}),(0,H.jsxs)(q,{size:`sm`,id:`panel-${e.id}`,children:[e.title,`: `,(0,H.jsx)(q,{span:!0,c:`dimmed`,size:`sm`,children:`none`})]})]})},e.id))})}function XOe({panels:e,busy:t,onAdd:n,onReset:r,onAsk:i}){let[a,o]=(0,h.useState)([]),[s,c]=(0,h.useState)(``),[l,u]=(0,h.useState)(``),d=async()=>{u(``);try{o(await H0.catalog())}catch(e){o([]),u(e.message)}},f=am({onDropdownOpen:()=>{f.focusSearchInput(),d()},onDropdownClose:e=>{f.resetSelectedOption(),c(``),e===`keyboard`&&f.focusTarget()}}),p=a.filter(t=>!e.some(e=>e.id===t.id)),m=p.filter(e=>e.title.toLowerCase().includes(s.toLowerCase())),g=e.length>=16;return(0,h.useEffect)(()=>{f.dropdownOpened&&f.selectFirstOption()},[a,s,f.dropdownOpened]),(0,H.jsxs)(K,{gap:2,wrap:`nowrap`,style:{flex:`none`},children:[(0,H.jsxs)(cm,{store:f,width:280,position:`bottom-end`,withinPortal:!0,onOptionSubmit:e=>{let r=p.find(t=>t.id===e);r&&!g&&!t&&n(r),f.closeDropdown()},children:[(0,H.jsx)(cm.Target,{targetType:`button`,withExpandedAttribute:!0,children:(0,H.jsx)(lu,{variant:`subtle`,"aria-label":`Add widget`,disabled:t,onClick:()=>f.toggleDropdown(),children:(0,H.jsx)(Kte,{})})}),(0,H.jsxs)(cm.Dropdown,{children:[(0,H.jsx)(cm.Search,{"aria-label":`Find a widget`,placeholder:`Find a widget`,value:s,onChange:e=>{c(e.currentTarget.value)}}),(0,H.jsxs)(cm.Options,{mah:320,style:{overflowY:`auto`},children:[m.map(e=>(0,H.jsx)(cm.Option,{value:e.id,disabled:g||t,children:e.title},e.id)),m.length===0&&(0,H.jsx)(cm.Empty,{children:l||`No matching widgets`})]}),g&&(0,H.jsx)(q,{size:`xs`,c:`dimmed`,p:`xs`,children:`The header shows at most 16 widgets`}),(0,H.jsx)(km,{variant:`subtle`,fullWidth:!0,size:`xs`,onClick:()=>{f.closeDropdown(),i(`Add a header widget that shows `)},children:`Ask Chat for another…`})]})]}),(0,H.jsxs)(ng,{withinPortal:!0,position:`bottom-end`,children:[(0,H.jsx)(ng.Target,{children:(0,H.jsx)(lu,{variant:`subtle`,"aria-label":`Header options`,disabled:t,children:(0,H.jsx)(Vv,{})})}),(0,H.jsx)(ng.Dropdown,{children:(0,H.jsx)(ng.Item,{onClick:r,children:`Reset header`})})]})]})}var ZOe={name:`Search`,panels:[{id:`live`,title:`Live`,viz:`table`,source:`sessions`},{id:`ended`,title:`Ended`,viz:`table`,source:`history`}]},Y9=(e,t)=>{let n=Date.parse(String(t??``));return n?`${O1(Math.max(0,e-n))} ago`:``};function QOe(e,t,n,r,i){let a=e=>Date.parse(String(e.last_activity_at??``))||0,o=e=>String(e.title||`Session ${e.id}`),s=e=>[e.project,e.branch,e.agent,e.machine,e.state].filter(e=>typeof e==`string`&&e!==``);return[{group:`Live sessions`,actions:[...e].sort((e,t)=>a(t)-a(e)).map(e=>({id:`live-${e.machine_id}-${e.id}`,label:o(e),description:[e.project,e.branch,e.agent,e.machine,a(e)?`active ${Y9(n,e.last_activity_at)}`:``].filter(Boolean).join(` · `),keywords:s(e),leftSection:(0,H.jsx)(uv,{size:16,"aria-hidden":!0}),rightSection:e.label?(0,H.jsx)(l0,{...c0(String(e.label)),inferred:e.inferred===!0||String(e.label).startsWith(`~`)}):void 0,onClick:()=>void r({kind:`jump`,row:{...e,session_id:e.id}})}))},{group:`Ended sessions`,actions:t.map(e=>({id:`ended-${e.machine_id}-${e.id}`,label:o(e),description:[e.project,e.branch,e.agent,e.machine,`ended ${Y9(n,e.ended_at)}`].filter(Boolean).join(` · `),keywords:s(e),leftSection:e.resume?(0,H.jsx)(jv,{size:16,"aria-hidden":!0}):(0,H.jsx)(Cv,{size:16,"aria-hidden":!0}),rightSection:(0,H.jsx)(q,{className:`search-hint`,size:`xs`,c:`var(--driga-text)`,style:{whiteSpace:`nowrap`},children:e.resume?`Copy resume command`:`Ask Chat`}),onClick:()=>i(e)}))}].filter(e=>e.actions.length>0)}var $Oe=(e,t)=>{let n=e.toLowerCase().split(/\s+/).filter(Boolean);if(n.length===0)return t;let r=e=>{let t=[e.label,e.description,...Array.isArray(e.keywords)?e.keywords:[e.keywords]].filter(Boolean).join(` `).toLowerCase();return n.every(e=>t.includes(e))},i=[];for(let e of t){if(!cb(e)){r(e)&&i.push(e);continue}let t=e.actions.filter(r);t.length&&i.push({...e,actions:t})}return i};function eke({list:e,act:t,ask:n,open:r,onFleet:i,say:a}){let[o,s]=(0,h.useState)({live:[],ended:[]}),[c,l]=(0,h.useState)(!1),u=(e,t)=>gS(e.results.find(e=>e.id===t)?.frame??{columns:[],rows:[]}),d=()=>H0.run(ZOe).then(e=>{s({live:u(e,`live`),ended:u(e,`ended`)}),l(!1)},()=>l(!0)),f=e=>{let t=String(e.title||`Session ${e.id}`);typeof e.resume!=`string`||!e.resume?n(`Tell me about session ${e.id}, "${t}": what it did and what it left uncommitted.`):navigator.clipboard?.writeText(e.resume).then(()=>a(`Copied the command that resumes ${t}. Paste it in a terminal.`),()=>a(`Couldn't copy. Resume with: ${e.resume}`))},p={group:`Dashboards`,actions:e.map(e=>({id:`dashboard-${e.id}`,label:e.name,leftSection:(0,H.jsx)(Ty,{size:16,"aria-hidden":!0}),onClick:()=>r(e.id)}))},m={group:`Pages`,actions:i?[{id:`page-fleet`,label:`Fleet`,description:`Every machine, project and session, and where the memory goes`,keywords:[`machines`,`sessions`],leftSection:(0,H.jsx)(Dy,{size:16,"aria-hidden":!0}),onClick:i}]:[]};return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)($c,{className:`search-button`,onClick:sb.open,"aria-keyshortcuts":`Meta+K`,title:`Search sessions and dashboards (⌘K)`,children:(0,H.jsxs)(K,{gap:8,wrap:`nowrap`,children:[(0,H.jsx)(hy,{size:16,"aria-hidden":!0}),(0,H.jsx)(q,{size:`sm`,c:`dimmed`,visibleFrom:`lg`,children:`Search`}),(0,H.jsx)(tl,{hiddenFrom:`lg`,children:`Search`}),(0,H.jsx)(yh,{size:`xs`,visibleFrom:`lg`,"aria-hidden":!0,children:`⌘K`})]})}),(0,H.jsx)(yb,{title:`Search sessions and dashboards`,styles:{actionDescription:{color:`var(--driga-text)`,opacity:1},actionSection:{opacity:1}},shortcut:[`mod + K`],filter:$Oe,onSpotlightOpen:()=>void d(),limit:40,highlightQuery:!0,scrollable:!0,maxHeight:480,actions:[...QOe(o.live,o.ended,Date.now(),t,f),...p.actions.length?[p]:[],...m.actions.length?[m]:[]],nothingFound:c?`Driga can't reach its service, so there is nothing to search.`:`No session or dashboard matches. Sessions that ended more than two weeks ago aren't listed.`,searchProps:{"aria-label":`Search sessions and dashboards`,leftSection:(0,H.jsx)(hy,{size:18,"aria-hidden":!0}),placeholder:`Search sessions by title, project, branch, agent or machine`}})]})}var X9=5e3,Z9=`header`,Q9=`home`,tke={name:`Inbox`,panels:[{id:`inbox`,title:`Inbox`,viz:`inbox`,source:`inbox`}]},$9={at:0,failed:!1};function nke({id:e,vars:t,onError:n,onMissing:r}){let[i,a]=(0,h.useState)(null),[o,s]=(0,h.useState)(null),[c,l]=(0,h.useState)(null),[u,d]=(0,h.useState)({id:e,navigation:0,fragment:null,fresh:$9}),[f,p]=(0,h.useState)([]),[m,g]=(0,h.useState)([]),[_,v]=(0,h.useState)([]),[y,b]=(0,h.useState)([]),[x,S]=(0,h.useState)(!1),C=(0,h.useRef)({scope:{id:e,vars:t,mutations:0,reconcile:!1,navigation:0},generation:0,refreshing:-1,request:null,editing:!1,headerMutations:0}),w=(0,h.useRef)({onError:n,onMissing:r});w.current={onError:n,onMissing:r};let T=C.current;(T.scope.id!==e||T.scope.vars!==t)&&(T.scope={id:e,vars:t,mutations:0,reconcile:!1,navigation:T.scope.navigation+Number(T.scope.id!==e)},T.generation++);let E=u.navigation===T.scope.navigation?u.fragment:null,D=u.navigation===T.scope.navigation?u.fresh:$9,O=(0,h.useCallback)(async(n=!1)=>{let r=C.current;if(r.scope.id!==e||r.scope.vars!==t||r.scope.mutations>0||r.headerMutations>0||r.editing&&!n||!n&&r.refreshing===r.generation)return;let i=r.scope,o=++r.generation;r.request?.abort();let c=new AbortController;r.request=c,r.refreshing=o;let u=()=>r.generation===o&&r.scope===i,f=(e,t)=>e.then(e=>{u()&&t(e)},()=>void 0),m=async()=>{try{let n=await H0.open(e,t,c.signal);u()&&d({id:e,navigation:i.navigation,fragment:n,fresh:{at:Date.now(),failed:!1}})}catch(t){if(!u())return;d(t=>({id:e,navigation:i.navigation,fragment:t.navigation===i.navigation?t.fragment:null,fresh:{at:t.navigation===i.navigation?t.fresh.at:0,failed:!0}})),w.current.onError(t.message),e!==`home`&&w.current.onMissing()}};try{K0.bursts().then(e=>{u()&&g(e)},()=>void 0),K0.grantHistory().then(e=>{u()&&p(e)},()=>void 0),K0.prompts().then(e=>{u()&&v(e)},()=>void 0),await Promise.all([m(),f(H0.open(Z9,void 0,c.signal),a),f(H0.run(tke,void 0,c.signal),s),f(H0.run(age,void 0,c.signal),l)])}finally{r.request===c&&(r.request=null),r.refreshing===o&&(r.refreshing=-1)}},[e,t]),k=(0,h.useRef)(()=>O(!0));return k.current=()=>O(!0),(0,h.useEffect)(()=>(O(!0),()=>{C.current.generation++,C.current.request?.abort()}),[O]),(0,h.useEffect)(()=>{if(x)return;let e=window.setInterval(()=>{document.visibilityState===`visible`&&O()},X9);return()=>window.clearInterval(e)},[O,x]),(0,h.useEffect)(()=>{let e=!0;return H0.list().then(t=>{e&&b(t.filter(e=>e.id!==Z9))},()=>void 0),()=>{e=!1}},[E?.id,E?.version]),{fragment:E,header:i,inbox:o,fleet:c,prompts:_,bursts:m,grantHistory:f,list:y,fresh:D,editing:x,setEditing:(0,h.useCallback)(e=>{let t=C.current,n=typeof e==`function`?e(t.editing):e;n!==t.editing&&(t.editing=n,t.generation++,S(n))},[]),refresh:()=>O(!0),edit:async(e,t,n,r)=>{let i=C.current,o=i.scope;i.generation++,o.mutations++;try{let s=await H0.edit(e,n,t,e===`header`?void 0:o.vars,r);return i.scope===o?(e===`header`?a(s):e===o.id&&d({id:o.id,navigation:o.navigation,fragment:s,fresh:{at:Date.now(),failed:!1}}),s):void 0}catch(e){i.scope===o&&(w.current.onError(e.message),o.reconcile=!0)}finally{o.mutations--,i.scope===o&&(i.generation++,o.reconcile&&o.mutations===0&&(o.reconcile=!1,O(!0)))}},mutateHeader:async e=>{let t=C.current;if(t.headerMutations>0)return;let n=t.scope;t.headerMutations++,t.generation++;try{let t=await e();return a(t),t}catch(e){let t=e instanceof Error&&`status`in e&&e.status===409;try{a(await H0.open(Z9)),w.current.onError(t?`Header changed elsewhere; reloaded`:e.message)}catch(e){w.current.onError(e.message)}}finally{t.headerMutations--,t.generation++,t.scope!==n&&k.current()}},forgetPrompt:e=>{C.current.generation++,v(t=>t.filter(t=>t.id!==e)),g(t=>t.map(t=>({...t,members:t.members.filter(t=>t.id!==e)})).filter(e=>e.members.length>0))}}}function rke(){return new URLSearchParams(location.search).get(`dashboard`)||`home`}function ike(){return new URLSearchParams(location.search).get(`page`)===`fleet`?`fleet`:`board`}var ake={inbox:`inbox`,stuck:`stuck`,leftover:`orphans`,reclaim:`orphans`,memory:`machine_memory`};function oke(e){let t=document.getElementById(`panel-${e}`),n=t?.closest(`.mantine-Card-root`)??t;n&&(n.scrollIntoView({behavior:`smooth`,block:`nearest`}),n.classList.add(`panel-shown`),window.setTimeout(()=>n.classList.remove(`panel-shown`),1600))}function ske(e){try{return localStorage.getItem(e)}catch{return null}}function cke(e,t){try{localStorage.setItem(e,t)}catch{}}function lke(e){return e instanceof HTMLElement&&(e.isContentEditable||/^(input|textarea|select)$/i.test(e.tagName))}function uke(){let[e,t]=(0,h.useState)(rke),[n,r]=(0,h.useState)(ike),[i,a]=(0,h.useState)({}),[o,s]=(0,h.useState)(null),[c,l]=(0,h.useState)(null),[u,d]=(0,h.useState)(()=>ske(`driga-chat-open`)!==`false`),[f,p]=(0,h.useState)(null),m=e=>at.show({message:e,autoClose:4e3,closeButtonProps:{"aria-label":`Dismiss`}}),{fragment:g,header:_,inbox:v,fleet:y,prompts:b,bursts:x,grantHistory:S,list:C,fresh:w,editing:T,setEditing:E,refresh:D,edit:O,mutateHeader:k,forgetPrompt:A}=nke({id:e,vars:i,onError:m,onMissing:()=>t(Q9)});(0,h.useEffect)(()=>{cke(`driga-chat-open`,String(u))},[u]);let j=dS(),M=oS({id:`driga-split`,panelIds:[`board`,`chat`],onlySaveAfterUserInteractions:!0});(0,h.useEffect)(()=>{let e=j.current;e&&(u&&e.isCollapsed()&&e.expand(),!u&&!e.isCollapsed()&&e.collapse())},[u,j]),(0,h.useEffect)(()=>{history.replaceState(null,``,n===`fleet`?`/app/?page=fleet`:e===`home`?`/app/`:`/app/?dashboard=${encodeURIComponent(e)}`)},[e,n]);let N=(0,h.useMemo)(()=>y?P0(y,v):null,[y,v]),P=(0,h.useMemo)(()=>i0(_),[_]),F=(0,h.useMemo)(()=>_?xhe(_,N,P):null,[_,N,P]);(0,h.useEffect)(()=>{if(!o||e!==`home`||n!==`board`||g?.id!==`home`)return;let t=()=>document.getElementById(`panel-${o}`)?(oke(o),s(null),!0):!1;if(t())return;let r=new MutationObserver(()=>{t()&&r.disconnect()});return r.observe(document.body,{childList:!0,subtree:!0}),()=>r.disconnect()},[o,e,n,g]);let ee=e=>{E(!1),a({}),t(e),r(`board`)},I=(0,h.useCallback)(()=>{E(!1),r(`fleet`)},[]),te=t=>{(e!==`home`||n!==`board`)&&ee(Q9),s(ake[t])},L=async t=>{try{let r=g?.id===`home`?g:await H0.open(Q9),i=r.dashboard.panels.find(e=>e.source===t.source&&(e.measure??`count`)===(t.measure??`count`));if(!i){let e=t.id;for(let n=2;r.dashboard.panels.some(t=>t.id===e);n++)e=`${t.id}_${n}`;let n={...Object.fromEntries((_?.dashboard.variables??[]).map(e=>[e.name,e.default??``])),..._?.vars},a=t.title;for(let e of Object.keys(n).sort((e,t)=>t.length-e.length))a=a.replaceAll(`$${e}`,n[e]||`all ${e}s`);if(i={...t,id:e,title:a,...t.where?{where:t.where.flatMap(e=>{if(!e.value.startsWith(`$`))return[e];let t=n[e.value.slice(1)];return t?[{...e,value:t}]:[]})}:{}},!await O(`home`,r.version??0,[{op:`add`,panel:i}],`Added a header widget to Home`))return}(e!==`home`||n!==`board`)&&ee(Q9),s(i.id)}catch(e){m(e.message)}},ne=e=>l(t=>t===e?null:e),re=e=>{d(!0),p({text:e,at:Date.now()})},[ie,ae]=(0,h.useState)(!1),oe=(0,h.useRef)(!1),se=async(e,t,n)=>{if(!oe.current){oe.current=!0,ae(!0);try{let r=await k(e);if(!r)return;let i=at.show({autoClose:8e3,closeButtonProps:{"aria-label":`Dismiss`},message:(0,H.jsxs)(K,{gap:`sm`,wrap:`nowrap`,children:[n,(0,H.jsx)(km,{size:`compact-xs`,variant:`subtle`,onClick:()=>{oe.current||(at.hide(i),se(()=>H0.replace(Z9,t,r.version??0,void 0,`Undid a header edit`),structuredClone(r.dashboard),`Header restored`))},children:`Undo`})]})})}finally{oe.current=!1,ae(!1)}}},R=(e,t)=>{_&&se(()=>H0.edit(Z9,e,_.version??0,void 0,t),structuredClone(_.dashboard),t)},ce=()=>{_&&se(()=>H0.reset(Z9,_.version??0),structuredClone(_.dashboard),`Header reset`)},le=async({kind:e,row:t})=>{let n=t.machine_id,r=Number(t.session_id??t.id),i=String(t.title??t.signature??t.project??t.path??t.id??``),a=async(e,t)=>{let n=await uge(e,t);return n||m(`Cancelled`),n};try{switch(e){case`jump`:case`open`:await G0({action:`jump`,session_id:r,machine:n}),m(`Opened the session's pane`);return;case`ack`:{let e=typeof t.ids==`string`&&t.ids?t.ids.split(`,`):[t.id];for(let t of e)await G0({action:`ack_inbox`,id:t,machine:n});m(e.length>1?`Acknowledged ${e.length} turns`:`Acknowledged`);break}case`stop`:if(!await a(`Stop ${i}? Its agent and the processes it started are ended.`,{action:`kill`,session_id:r,machine:n}))return;m(`Stopped ${i}`);break;case`kill`:case`force_kill`:{let r=e===`force_kill`;if(!await a(`${r?`Force kill`:`Kill`} the ${i} process tree? ${r?`Processes get SIGKILL without a chance to clean up.`:`Processes get SIGTERM first.`}`,{action:`kill`,id:t.id,machine:n,force:r}))return;m(`Killed ${i}`);break}case`cleanup`:if(!await a(`Remove ${i}? Driga checks it again before removing it.`,{action:`cleanup`,id:t.id,machine:n}))return;m(`Removed ${i}`);break;case`summarize`:await G0({action:`summarize`,project:t.path,machine:n}),m(`Summarizing ${i}`);return}D()}catch(e){m(e.message)}},z=async(e,t)=>{try{await K0.answer(e.id,t),A(e.id),m(t?`Allowed ${e.tool}`:`Denied ${e.tool}`)}catch(e){m(e.message)}},ue=async(e,t,n)=>{try{await K0.decideBurst(e,t,n),t.forEach(A)}catch(e){throw D(),e}},de=async e=>{try{await K0.answerSimilar(e.id),A(e.id),D()}catch(e){m(e.message)}},fe=async e=>{try{await K0.revokeGrant(e),D()}catch(e){m(e.message)}},pe=async()=>{if(!g?.id)return;let e=g.dashboard.name;if(!await W0(`Delete the ${e} dashboard and its history?`))m(`Cancelled`);else try{await H0.delete(g.id),g.id===`home`?D():ee(Q9),m(g.id===`home`?`Home is back to the default`:`Deleted ${e}`)}catch(e){m(e.message)}},me=y?.results.find(e=>e.id===`sessions`)?.frame,he=gS(me),ge={clearInboxFilter:()=>l(null),stuck:me?{...me,rows:me.rows.filter((e,t)=>he[t].state===`stuck`||he[t].label===`stuck`)}:void 0,act:le,local:(g??_)?.local_machine,prompts:b,bursts:x,decideBurst:ue,answer:z,answerSimilar:de,grantHistory:S,revokeGrant:fe,inboxFilter:c,ask:re};(0,h.useEffect)(()=>{window.drigaCommand=(e,t)=>{e===`reload`?D():e===`back`?history.back():e===`forward`?history.forward():e===`find`?sb.open():e===`view`&&t===`fleet`?I():e===`view`&&t===`inbox`?(l(null),te(`inbox`)):e===`openSession`&&t&&typeof t==`object`&&`session_id`in t&&typeof t.session_id==`number`&&le({kind:`jump`,row:t})}}),(0,h.useEffect)(()=>{let e=-1/0,t=t=>{if(t.metaKey||t.ctrlKey||t.altKey||lke(t.target)||document.querySelector(`[aria-modal="true"]`)){e=-1/0;return}let n=performance.now()-e<800;if(e=-1/0,t.key===`g`){e=performance.now();return}if(t.key===`f`&&n){I();return}let r=Z1[Number(t.key)-1];r&&(t.preventDefault(),l(e=>e===r?null:r))};return document.addEventListener(`keydown`,t),()=>document.removeEventListener(`keydown`,t)},[I]);let _e=v?.dashboard.panels[0],ve=n===`fleet`?!1:!g||g.dashboard.panels.some(e=>e.viz===`inbox`),B=_e?{panel:_e,result:v.results[0],listed:!!ve}:void 0,ye=g?.dashboard;return(0,H.jsx)(F0.Provider,{value:ge,children:(0,H.jsxs)(Op,{header:{height:56},padding:0,children:[(0,H.jsx)(Op.Header,{px:`md`,style:{background:`color-mix(in srgb, var(--driga-ground) 88%, transparent)`,backdropFilter:`blur(10px)`,borderColor:`var(--driga-border)`},children:(0,H.jsx)(FDe,{data:F,filter:c,chatOpen:u,onFilter:ne,onOpenFleet:I,onSearch:sb.open,onToggleChat:()=>d(e=>!e),onShow:e=>void L(e),busy:ie,onRemove:e=>R([{op:`remove`,id:e}],`Removed a header widget`),onMove:(e,t)=>R([{op:`move`,id:e,...t?{before:t}:{}}],`Reordered header widgets`),editor:_&&(0,H.jsx)(XOe,{panels:_.dashboard.panels,busy:ie,onAdd:e=>R([{op:`add`,panel:e}],`Added a header widget`),onReset:ce,onAsk:re}),onAsk:e=>re(`Tell me about "${e}" right now.`),search:(0,H.jsx)(eke,{list:C,act:le,say:m,open:ee,onFleet:I,ask:re})})}),(0,H.jsx)(Op.Main,{style:{height:`100dvh`,display:`flex`},children:(0,H.jsxs)(rS,{orientation:`horizontal`,id:`driga-split`,defaultLayout:M.defaultLayout,onLayoutChanged:M.onLayoutChanged,style:{flex:1,minWidth:0},children:[(0,H.jsx)(lS,{id:`board`,minSize:360,style:{display:`flex`,flexDirection:`column`,minWidth:0},children:n===`fleet`?(0,H.jsx)(G,{px:`md`,pt:`sm`,pb:`md`,style:{flex:1,minHeight:0,display:`flex`,flexDirection:`column`},children:(0,H.jsx)(cge,{fragment:y,inbox:v,act:le})}):(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(K,{justify:`space-between`,wrap:`nowrap`,gap:`sm`,px:`md`,pt:`sm`,pb:8,children:[(0,H.jsxs)(G,{style:{minWidth:0},children:[(0,H.jsx)(k_,{order:1,fz:28,fw:650,lh:1.2,style:{letterSpacing:`-0.02em`},children:ye?.name??`Loading…`}),w.failed&&w.at>0?(0,H.jsxs)(q,{size:`xs`,c:`warning`,truncate:!0,role:`status`,title:`Not updated since ${new Date(w.at).toLocaleTimeString([],{timeStyle:`medium`})}. Retrying; check driga service status.`,children:[`Not updated since `,new Date(w.at).toLocaleTimeString([],{timeStyle:`medium`}),`. Retrying; check `,(0,H.jsx)(q,{span:!0,size:`xs`,ff:`monospace`,children:`driga service status`}),`.`]}):w.failed?(0,H.jsxs)(q,{size:`xs`,c:`warning`,role:`status`,children:[`Driga can't reach its service. Retrying every `,X9/1e3,`s.`]}):ye?.description&&(0,H.jsx)(q,{size:`xs`,c:`dimmed`,truncate:!0,title:ye.description,children:ye.description})]}),(0,H.jsxs)(K,{gap:`xs`,wrap:`nowrap`,children:[ye?.variables?.map(e=>(0,H.jsx)(Jg,{size:`xs`,w:140,"aria-label":e.name,placeholder:`All ${e.name}s`,clearable:!0,data:g?.options?.[e.name]??[],value:i[e.name]||null,onChange:t=>a(n=>({...n,[e.name]:t??``}))},e.name)),C.length>1&&(0,H.jsx)(Jg,{size:`xs`,w:170,"aria-label":`Dashboard`,allowDeselect:!1,data:C.map(e=>({value:e.id,label:e.name})),value:e,onChange:e=>e&&ee(e)}),T&&(0,H.jsx)(km,{variant:`light`,color:`danger`,onClick:()=>void pe(),children:e===`home`?`Reset Home`:`Delete dashboard`}),(0,H.jsx)(km,{variant:T?`filled`:`default`,leftSection:(0,H.jsx)(Wte,{}),"aria-pressed":T,onClick:()=>E(e=>!e),children:T?`Done`:`Edit`})]})]}),T&&(0,H.jsx)(q,{size:`xs`,c:`dimmed`,px:`md`,pb:6,children:`Drag panels by their title, resize from the corner, or ask Chat to change any of it.`}),(0,H.jsx)(G,{px:`md`,pb:`md`,style:{flex:1,minHeight:0,display:`flex`,flexDirection:`column`},children:g?(0,H.jsx)(JOe,{fragment:g,editing:T,act:le,onLayout:e=>{g&&O(g.id,g.version??0,[{op:`layout`,grids:e}],`Moved panels`)},onRemove:e=>{g&&O(g.id,g.version??0,[{op:`remove`,id:e}],`Removed a panel`)}}):(0,H.jsx)(q,{size:`sm`,c:`dimmed`,children:`Loading…`})})]})}),(0,H.jsx)(mS,{className:`split-handle`,"aria-label":`Resize Chat`}),(0,H.jsx)(lS,{id:`chat`,inert:!u,panelRef:j,defaultSize:400,minSize:300,maxSize:`65`,collapsible:!0,collapsedSize:0,onResize:e=>{let t=e.inPixels>0;t!==u&&d(t)},style:{background:`var(--driga-inset)`,borderLeft:`1px solid var(--driga-border)`,minWidth:0},children:(0,H.jsx)(FTe,{inbox:B,act:le,ask:f,onOpen:ee,onClose:()=>d(!1)})})]})})]})})}(0,Wee.createRoot)(document.getElementById(`root`)).render((0,H.jsx)(h.StrictMode,{children:(0,H.jsxs)(fne,{children:[(0,H.jsx)(av,{position:`bottom-center`}),(0,H.jsx)(uke,{})]})})); \ No newline at end of file diff --git a/internal/web/app/assets/index-HjvYL5aJ.js b/internal/web/app/assets/index-HjvYL5aJ.js new file mode 100644 index 0000000..eb705e2 --- /dev/null +++ b/internal/web/app/assets/index-HjvYL5aJ.js @@ -0,0 +1,107 @@ +var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;li[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function u(e,t,n){return t===void 0&&n===void 0?e:t!==void 0&&n===void 0?Math.max(e,t):Math.min(t===void 0&&n!==void 0?e:Math.max(e,t),n)}function d(e=`mantine-`){return`${e}${Math.random().toString(36).slice(2,11)}`}function f(e,t){if(e===t||Number.isNaN(e)&&Number.isNaN(t))return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=Object.keys(e),{length:r}=n;if(r!==Object.keys(t).length)return!1;for(let i=0;i{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var j=/\/+/g;function M(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function N(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function P(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,P(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+M(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(j,`$&/`)+`/`),P(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(j,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u{t.exports=p()})),h=l(m(),1);function g(e){let t=(0,h.useRef)(e);return(0,h.useEffect)(()=>{t.current=e}),(0,h.useMemo)(()=>((...e)=>t.current?.(...e)),[])}function _(e,t){let{delay:n,flushOnUnmount:r,leading:i,maxWait:a}=typeof t==`number`?{delay:t,flushOnUnmount:!1,leading:!1,maxWait:void 0}:t,o=g(e),s=(0,h.useRef)(0),c=(0,h.useRef)(0),l=(0,h.useRef)(null),u=(0,h.useMemo)(()=>{let e=Object.assign((...t)=>{window.clearTimeout(s.current),l.current=t;let r=e._isFirstCall;e._isFirstCall=!1;function u(){window.clearTimeout(s.current),window.clearTimeout(c.current),s.current=0,c.current=0,e._isFirstCall=!0,e._hasPendingCallback=!1}function d(){a!==void 0&&c.current===0&&(c.current=window.setTimeout(()=>{if(c.current=0,s.current!==0&&e._hasPendingCallback){let e=l.current;u(),o(...e)}},a))}if(i&&r){o(...t),e.flush=()=>{s.current!==0&&u()},e.cancel=()=>{u()},s.current=window.setTimeout(()=>{u()},n),d();return}if(i&&!r){e._hasPendingCallback=!0,e.flush=()=>{s.current!==0&&(u(),o(...t))},e.cancel=()=>{u()},s.current=window.setTimeout(()=>{u()},n),d();return}e._hasPendingCallback=!0;let f=()=>{s.current!==0&&(u(),o(...t))};e.flush=f,e.cancel=()=>{u()},s.current=window.setTimeout(f,n),d()},{flush:()=>{},cancel:()=>{},isPending:()=>e._hasPendingCallback,_isFirstCall:!0,_hasPendingCallback:!1});return e},[o,n,i,a]);return(0,h.useEffect)(()=>()=>{r?u.flush():u.cancel()},[u,r]),u}var v=[`mousedown`,`touchstart`];function y(e,t,n,r=!0,i=!1){let a=(0,h.useRef)(null),o=t||v,s=(0,h.useEffectEvent)(t=>{let{target:r}=t??{};if(!document.body.contains(r)&&r?.tagName!==`HTML`)return;let i=t.composedPath();Array.isArray(n)?n.every(e=>!!e&&!i.includes(e))&&e(t):a.current&&!i.includes(a.current)&&e(t)}),c=o.join(`,`);return(0,h.useEffect)(()=>{if(!r)return;let e=c.split(`,`);return e.forEach(e=>document.addEventListener(e,s,i)),()=>{e.forEach(e=>document.removeEventListener(e,s,i))}},[c,r,i]),a}function b(e,t){if(typeof t==`boolean`)return t;if(typeof window<`u`&&`matchMedia`in window)try{return window.matchMedia(e).matches}catch{return!1}return!1}function x(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){let[r,i]=(0,h.useState)(n?t:b(e));return(0,h.useEffect)(()=>{try{if(`matchMedia`in window){let t=window.matchMedia(e);i(t.matches);let n=e=>i(e.matches);return t.addEventListener(`change`,n),()=>{t.removeEventListener(`change`,n)}}}catch{return}},[e]),r||!1}function S(e,t){return x(`(prefers-color-scheme: dark)`,e===`dark`,t)?`dark`:`light`}var C=typeof document<`u`?h.useLayoutEffect:h.useEffect;function w(e,t){return e.length!==t.length||t.some((t,n)=>!Object.is(t,e[n]))}function T(e,t){let n=(0,h.useRef)(!1),r=(0,h.useRef)(null),i=(0,h.useRef)(void 0),a={};(0,h.useEffect)(()=>{let o=r.current===a,s=i.current;if(r.current=a,i.current=t,!n.current)n.current=!0;else if(!o&&!(t&&s&&!w(s,t)))return e()},t)}function E({opened:e,shouldReturnFocus:t=!0}){let n=(0,h.useRef)(null),r=()=>{n.current&&`focus`in n.current&&typeof n.current.focus==`function`&&n.current?.focus({preventScroll:!0})};return T(()=>{let i=-1,a=e=>{e.key===`Tab`&&window.clearTimeout(i)};if(document.addEventListener(`keydown`,a),e)n.current=document.activeElement;else if(t){let e=document.activeElement;i=window.setTimeout(()=>{let t=document.activeElement;(t===null||t===document.body||t===e)&&r()},10)}return()=>{window.clearTimeout(i),document.removeEventListener(`keydown`,a)}},[e,t]),r}var D=/input|select|textarea|button|object/,O=`a, input, select, textarea, button, object, [tabindex]`;function k(e){return e.style.display===`none`}function A(e){if(e.getAttribute(`aria-hidden`)||e.getAttribute(`hidden`)||e.getAttribute(`type`)===`hidden`)return!1;let t=e;for(;t&&t!==document.body&&t.nodeType!==11;){if(k(t))return!1;t=t.parentNode}return!0}function j(e){let t=e.getAttribute(`tabindex`);return t===null&&(t=void 0),parseInt(t,10)}function M(e){let t=e.nodeName.toLowerCase(),n=!Number.isNaN(j(e));return(D.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&A(e)}function N(e){let t=j(e);return(Number.isNaN(t)||t>=0)&&M(e)}function P(e){return Array.from(e.querySelectorAll(O)).filter(N)}function F(e,t){let n=P(e);if(!n.length){t.preventDefault();return}let r=n[t.shiftKey?0:n.length-1],i=e.getRootNode(),a=r===i.activeElement||e===i.activeElement,o=i.activeElement;if(o.tagName===`INPUT`&&o.getAttribute(`type`)===`radio`&&(a=n.filter(e=>e.getAttribute(`type`)===`radio`&&e.getAttribute(`name`)===o.getAttribute(`name`)).includes(r)),!a)return;t.preventDefault();let s=n[t.shiftKey?n.length-1:0];s&&s.focus()}function ee(e=!0){let t=(0,h.useRef)(null),n=e=>{let t=e.querySelector(`[data-autofocus]`);if(!t){let n=Array.from(e.querySelectorAll(O));t=n.find(N)||n.find(M)||null,!t&&M(e)&&(t=e)}t?t.focus({preventScroll:!0}):console.warn(`[@mantine/hooks/use-focus-trap] Failed to find focusable element within provided node`,e)},r=(0,h.useCallback)(r=>{e&&(r===null?t.current=null:t.current!==r&&(setTimeout(()=>{r.getRootNode()?n(r):console.warn(`[@mantine/hooks/use-focus-trap] Ref node is not part of the dom`,r)}),t.current=r))},[e]);return(0,h.useEffect)(()=>{if(!e)return;t.current&&setTimeout(()=>{t.current&&n(t.current)});let r=e=>{e.key===`Tab`&&t.current&&F(t.current,e)};return document.addEventListener(`keydown`,r),()=>document.removeEventListener(`keydown`,r)},[e]),r}var I=e=>(e+1)%1e6;function L(){let[,e]=(0,h.useReducer)(I,0);return e}function R(e){let t=(0,h.useId)(),[n,r]=(0,h.useState)(`mantine-${t.replace(/:/g,``)}`),i=(0,h.useRef)(!1);return C(()=>{i.current||(i.current=!0,r(d()))},[]),typeof e==`string`?e:n}function te(e,t,n){let r=(0,h.useEffectEvent)(t);(0,h.useEffect)(()=>(window.addEventListener(e,r,n),()=>window.removeEventListener(e,r,n)),[e])}function ne(e,t){if(typeof e==`function`)return e(t);typeof e==`object`&&e&&`current`in e&&(e.current=t)}function re(...e){let t=new Map;return n=>{if(e.forEach(e=>{let r=ne(e,n);r&&t.set(e,r)}),t.size>0)return()=>{e.forEach(e=>{let n=t.get(e);n&&typeof n==`function`?n():ne(e,null)}),t.clear()}}}function ie(...e){return(0,h.useCallback)(re(...e),e)}function ae({value:e,defaultValue:t,finalValue:n,onChange:r=()=>{}}){let[i,a]=(0,h.useState)(t===void 0?n:t);return e===void 0?[i,(e,...t)=>{a(e),r?.(e,...t)},!1]:[e,r,!0]}function oe(e,t){return x(`(prefers-reduced-motion: reduce)`,e,t)}var z={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function se(e){let t=(0,h.useRef)(0),[n,r]=(0,h.useState)(z),i=(0,h.useRef)(null);return[(0,h.useCallback)(n=>{i.current&&=(i.current.disconnect(),null),t.current&&cancelAnimationFrame(t.current),n&&(i.current=new ResizeObserver(e=>{let n=e[0];n&&(cancelAnimationFrame(t.current),t.current=requestAnimationFrame(()=>{let e=n.borderBoxSize?.[0]||n.contentBoxSize?.[0];if(e){let t=e.inlineSize,i=e.blockSize;r({width:t,height:i,x:n.contentRect.x,y:n.contentRect.y,top:n.contentRect.top,left:n.contentRect.left,bottom:n.contentRect.bottom,right:n.contentRect.right})}else r(n.contentRect)}))}),i.current.observe(n,e))},[e]),n]}function ce(e){let[t,{width:n,height:r}]=se(e);return{ref:t,width:n,height:r}}function B(e,t){if(!e||!t)return!1;if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;ne.trim()),n={alt:t.includes(`alt`),ctrl:t.includes(`ctrl`),meta:t.includes(`meta`),mod:t.includes(`mod`),shift:t.includes(`shift`)},r=[`alt`,`ctrl`,`meta`,`shift`,`mod`],i=t.find(e=>!r.includes(e));return{...n,key:i===`[plus]`?`+`:i}}function me(e,t,n){let{alt:r,ctrl:i,meta:a,mod:o,shift:s,key:c}=e,{altKey:l,ctrlKey:u,metaKey:d,shiftKey:f,key:p,code:m}=t;if(r!==l)return!1;if(o){if(!u&&!d)return!1}else if(i!==u||a!==d)return!1;return s===f&&!!(c&&(n?fe(m)===fe(c):fe(p??m)===fe(c)))}function he(e,t){return n=>me(pe(e),n,t)}function ge(e,t,n=!1){return e.target instanceof HTMLElement?(n||!e.target.isContentEditable)&&!t.includes(e.target.tagName):!0}function _e(e,t=[`INPUT`,`TEXTAREA`,`SELECT`],n=!1){let r=(0,h.useEffectEvent)(r=>{e.forEach(([e,i,a])=>{let{preventDefault:o=!0,usePhysicalKeys:s=!1}=a||{};he(e,s)(r)&&ge(r,t,n)&&(o&&r.preventDefault(),i(r))})});(0,h.useEffect)(()=>(document.documentElement.addEventListener(`keydown`,r),()=>document.documentElement.removeEventListener(`keydown`,r)),[])}function V(e,t,n={autoInvoke:!1}){let r=(0,h.useRef)(null),i=g(e),a=(0,h.useCallback)((...e)=>{r.current||=window.setTimeout(()=>{i(...e),r.current=null},t)},[t]),o=(0,h.useCallback)(()=>{r.current&&=(window.clearTimeout(r.current),null)},[]);return(0,h.useEffect)(()=>(n.autoInvoke&&a(),o),[o,a]),{start:a,clear:o}}function ve(e){let t=(0,h.useRef)(void 0);return(0,h.useEffect)(()=>{t.current=e},[e]),t.current}function ye(e,t,n){let r=(0,h.useRef)(null);(0,h.useEffect)(()=>{r.current&&=(r.current.disconnect(),null);let i=typeof n==`function`?n():n;return i&&(r.current=new MutationObserver(e),r.current.observe(i,t)),()=>{r.current&&=(r.current.disconnect(),null)}},[e,t,n])}function be(){let[e,t]=(0,h.useState)(!1);return(0,h.useEffect)(()=>t(!0),[]),e}var xe=[`mouse`,`touch`],Se=10;function Ce(e,t={}){let{threshold:n=400,events:r=xe,cancelOnMove:i=!1,onStart:a,onFinish:o,onCancel:s}=t,c=(0,h.useRef)(!1),l=(0,h.useRef)(!1),u=(0,h.useRef)(-1),d=(0,h.useRef)(null);(0,h.useEffect)(()=>()=>window.clearTimeout(u.current),[]);let f=r.join(`,`);return(0,h.useMemo)(()=>{if(typeof e!=`function`)return{};let t=i!==!1,f=i===!0?Se:i===!1?0:i,p=t=>{(Ee(t)||Te(t))&&(a&&a(t),d.current=we(t),l.current=!0,u.current=window.setTimeout(()=>{e(t),c.current=!0},n))},m=e=>{(Ee(e)||Te(e))&&(c.current?o&&o(e):l.current&&s&&s(e),c.current=!1,l.current=!1,d.current=null,u.current!==-1&&(window.clearTimeout(u.current),u.current=-1))},h=e=>{if(!t||!l.current||c.current)return;let n=we(e);if(!n||!d.current)return;let r=n.x-d.current.x,i=n.y-d.current.y;Math.sqrt(r*r+i*i)>f&&m(e)},g={};return r.includes(`mouse`)&&(g.onMouseDown=p,g.onMouseUp=m,g.onMouseLeave=m,t&&(g.onMouseMove=h)),r.includes(`touch`)&&(g.onTouchStart=p,g.onTouchEnd=m,g.onTouchCancel=m,t&&(g.onTouchMove=h)),g},[e,n,s,o,a,i,f])}function we(e){if(Te(e)){let t=e.touches[0]??e.changedTouches[0];return t?{x:t.clientX,y:t.clientY}:null}return{x:e.clientX,y:e.clientY}}function Te(e){return window.TouchEvent?e.nativeEvent instanceof TouchEvent:`touches`in e.nativeEvent}function Ee(e){return e.nativeEvent instanceof MouseEvent}var De=o((e=>{var t=m();function n(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=De()})),ke=l(Oe(),1);function Ae(e){if(!e||typeof e==`string`)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function je(e){return e.current?e.current.scrollHeight:`auto`}function Me(e){return typeof e==`number`&&e>0}function Ne({transitionDuration:e,transitionTimingFunction:t=`ease`,onTransitionEnd:n,onTransitionStart:r,expanded:i,keepMounted:a}){let o={height:0,overflow:`hidden`,...a?{}:{display:`none`}},s=(0,h.useEffectEvent)(()=>r?.()),c=(0,h.useEffectEvent)(()=>n?.()),l=(0,h.useRef)(null),[u,d]=(0,h.useState)(i?{}:o),[f,p]=(0,h.useState)(i?`entered`:`exited`),m=e=>{(0,ke.flushSync)(()=>d(e))},g=e=>{m(t=>({...t,...e}))},_=n=>{let r=e??Ae(n);return{transition:`height ${r}ms ${t}, opacity ${r}ms ${t}`}},v=(0,h.useRef)(0);T(()=>{v.current+=1;let t=v.current,n=()=>v.current===t;e!==0&&s(),i?window.requestAnimationFrame(()=>{n()&&l.current&&((0,ke.flushSync)(()=>p(`entering`)),g({willChange:`height`,display:`block`,overflow:`hidden`}),window.requestAnimationFrame(()=>{if(!n()||!l.current)return;let e=je(l);Me(e)?g({..._(e),height:e}):(m({}),p(`entered`),c())}))}):window.requestAnimationFrame(()=>{if(!n()||!l.current)return;(0,ke.flushSync)(()=>p(`exiting`));let e=je(l);Me(e)?(g({..._(e),willChange:`height`,height:e}),window.requestAnimationFrame(()=>{n()&&l.current&&g({height:0,overflow:`hidden`})})):(m(o),p(`exited`),c())})},[i]);let y=e=>{if(e.target===l.current&&e.propertyName===`height`){if(i){let e=je(l);e===u.height?m({}):g({height:e}),p(`entered`),c()}else u.height===0&&(m(o),p(`exited`),c())}};return{state:f,getCollapseProps:e=>({"aria-hidden":!i,inert:!i,ref:re(l,e?.ref),onTransitionEnd:y,style:{boxSizing:`border-box`,...e?.style,...u}})}}function Pe(e){if(!e||typeof e==`string`)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Fe(e){return e.current?e.current.scrollWidth:`auto`}function Ie({transitionDuration:e,transitionTimingFunction:t=`ease`,onTransitionEnd:n,onTransitionStart:r,expanded:i,keepMounted:a}){let o={width:0,overflow:`hidden`,...a?{}:{display:`none`}},s=(0,h.useEffectEvent)(()=>r?.()),c=(0,h.useEffectEvent)(()=>n?.()),l=(0,h.useRef)(null),[u,d]=(0,h.useState)(i?{}:o),[f,p]=(0,h.useState)(i?`entered`:`exited`),m=e=>{(0,ke.flushSync)(()=>d(e))},g=e=>{m(t=>({...t,...e}))},_=n=>{let r=e??Pe(n);return{transition:`width ${r}ms ${t}, opacity ${r}ms ${t}`}},v=(0,h.useRef)(0);T(()=>{v.current+=1;let t=v.current,n=()=>v.current===t;e!==0&&s(),i?window.requestAnimationFrame(()=>{n()&&l.current&&((0,ke.flushSync)(()=>p(`entering`)),g({willChange:`width`,display:`block`,overflow:`hidden`}),window.requestAnimationFrame(()=>{if(!n()||!l.current)return;let e=Fe(l);Me(e)?g({..._(e),width:e}):(m({}),p(`entered`),c())}))}):window.requestAnimationFrame(()=>{if(!n()||!l.current)return;(0,ke.flushSync)(()=>p(`exiting`));let e=Fe(l);Me(e)?(g({..._(e),willChange:`width`,width:e}),window.requestAnimationFrame(()=>{n()&&l.current&&g({width:0,overflow:`hidden`})})):(m(o),p(`exited`),c())})},[i]);let y=e=>{if(e.target===l.current&&e.propertyName===`width`){if(i){let e=Fe(l);e===u.width?m({}):g({width:e}),p(`entered`),c()}else u.width===0&&(m(o),p(`exited`),c())}};return{state:f,getCollapseProps:e=>({"aria-hidden":!i,inert:!i,ref:re(l,e?.ref),onTransitionEnd:y,style:{boxSizing:`border-box`,...e?.style,...u}})}}var Le=100;function Re(e){return e>0?1:e<0?-1:0}function ze(e){let t=e??0;return typeof t==`number`?[t,t]:t}function Be(){return{isActive:!1,pointerId:-1,startXY:[0,0],prevXY:[0,0],startTimestamp:0,prevTimestamp:0,thresholdMet:!1,firstFired:!1,lockedAxis:null,canceled:!1,lastVelocity:[0,0]}}function Ve(e,t={}){let[n,r]=(0,h.useState)(!1),i=(0,h.useRef)(e);i.current=e;let a=(0,h.useRef)(t);a.current=t;let o=(0,h.useRef)(Be()),s=(0,h.useRef)(null);return{ref:(0,h.useCallback)(e=>{if(!e)return;let t=new AbortController,n=e=>{let t=a.current,n=o.current;if(t.axis===`x`)return[e[0],0];if(t.axis===`y`)return[0,e[1]];if(t.axis===`lock`){if(n.lockedAxis===null){let r=t.axisThreshold??1;(Math.abs(e[0])>r||Math.abs(e[1])>r)&&(n.lockedAxis=Math.abs(e[0])>=Math.abs(e[1])?`x`:`y`)}if(n.lockedAxis===`x`)return[e[0],0];if(n.lockedAxis===`y`)return[0,e[1]]}return e},c=()=>{let e=o.current;e.isActive=!1,e.pointerId=-1,e.thresholdMet=!1,e.firstFired=!1,e.lockedAxis=null,e.canceled=!1,r(!1),document.body.style.userSelect=``,document.body.style.webkitUserSelect=``,s.current?.abort(),s.current=null},l=()=>{o.current.isActive&&(o.current.canceled=!0,c())},u=()=>{r(!0),document.body.style.userSelect=`none`,document.body.style.webkitUserSelect=`none`},d=e=>{if(a.current.enabled===!1||e.button!==0||o.current.isActive)return;let t=o.current;t.isActive=!0,t.pointerId=e.pointerId,t.startXY=[e.clientX,e.clientY],t.prevXY=[e.clientX,e.clientY],t.startTimestamp=e.timeStamp,t.prevTimestamp=e.timeStamp,t.thresholdMet=!1,t.firstFired=!1,t.lockedAxis=null,t.canceled=!1,t.lastVelocity=[0,0];let[n,r]=ze(a.current.threshold);n===0&&r===0&&(t.thresholdMet=!0,t.firstFired=!0,u(),i.current({xy:[e.clientX,e.clientY],initial:[e.clientX,e.clientY],movement:[0,0],delta:[0,0],distance:[0,0],direction:[0,0],velocity:[0,0],elapsedTime:0,first:!0,last:!1,active:!0,tap:!1,canceled:!1,cancel:l,event:e})),s.current?.abort(),s.current=new AbortController;let c=s.current.signal;document.addEventListener(`pointermove`,f,{signal:c}),document.addEventListener(`pointerup`,p,{signal:c}),document.addEventListener(`pointercancel`,m,{signal:c})},f=e=>{let t=o.current;if(!t.isActive||e.pointerId!==t.pointerId)return;let r=[e.clientX-t.startXY[0],e.clientY-t.startXY[1]];if(!t.thresholdMet){let[n,i]=ze(a.current.threshold);if(Math.abs(r[0])0?[Math.abs(d[0])/f,Math.abs(d[1])/f]:t.lastVelocity;t.lastVelocity=p;let m=!t.firstFired;t.firstFired=!0,t.prevXY=[e.clientX,e.clientY],t.prevTimestamp=e.timeStamp,i.current({xy:[e.clientX,e.clientY],initial:[...t.startXY],movement:s,delta:d,distance:[Math.abs(s[0]),Math.abs(s[1])],direction:[Re(d[0]),Re(d[1])],velocity:p,elapsedTime:e.timeStamp-t.startTimestamp,first:m,last:!1,active:!0,tap:!1,canceled:!1,cancel:l,event:e})},p=e=>{let t=o.current;if(!t.isActive||e.pointerId!==t.pointerId)return;let r=a.current;if(!t.thresholdMet){if(r.filterTaps){let a=[e.clientX-t.startXY[0],e.clientY-t.startXY[1]],o=n(a),s=[Math.abs(o[0]),Math.abs(o[1])],c=Math.max(s[0],s[1])<(r.tapThreshold??3);i.current({xy:[e.clientX,e.clientY],initial:[...t.startXY],movement:o,delta:o,distance:s,direction:[Re(o[0]),Re(o[1])],velocity:[0,0],elapsedTime:e.timeStamp-t.startTimestamp,first:!0,last:!0,active:!1,tap:c,canceled:!1,cancel:l,event:e})}c();return}let s=[e.clientX-t.startXY[0],e.clientY-t.startXY[1]],u=n(s),d=[Math.abs(u[0]),Math.abs(u[1])],f=[e.clientX-t.prevXY[0],e.clientY-t.prevXY[1]],p=n(f),m=e.timeStamp-t.prevTimestamp>Le?[0,0]:t.lastVelocity,h=Math.max(d[0],d[1]),g=r.filterTaps===!0&&h<(r.tapThreshold??3);i.current({xy:[e.clientX,e.clientY],initial:[...t.startXY],movement:u,delta:p,distance:d,direction:[Re(p[0]),Re(p[1])],velocity:m,elapsedTime:e.timeStamp-t.startTimestamp,first:!t.firstFired,last:!0,active:!1,tap:g,canceled:!1,cancel:l,event:e}),c()},m=e=>{let t=o.current;if(!t.isActive||e.pointerId!==t.pointerId)return;let r=[e.clientX-t.startXY[0],e.clientY-t.startXY[1]],a=n(r);i.current({xy:[e.clientX,e.clientY],initial:[...t.startXY],movement:a,delta:[0,0],distance:[Math.abs(a[0]),Math.abs(a[1])],direction:[0,0],velocity:[0,0],elapsedTime:e.timeStamp-t.startTimestamp,first:!t.firstFired,last:!0,active:!1,tap:!1,canceled:!0,cancel:l,event:e}),c()};return e.addEventListener(`pointerdown`,d,{signal:t.signal}),()=>{t.abort(),s.current?.abort(),s.current=null,o.current.isActive&&(o.current.isActive=!1,r(!1),document.body.style.userSelect=``,document.body.style.webkitUserSelect=``)}},[]),active:n}}function He(e){let t=e,n=!1,r=new Set;return{getState(){return t},updateState(e){t=typeof e==`function`?e(t):e},setState(e){this.updateState(e),r.forEach(e=>e(t))},initialize(e){n||=(t=e,!0)},subscribe(e){return r.add(e),()=>r.delete(e)}}}function Ue(e){return(0,h.useSyncExternalStore)(e.subscribe,()=>e.getState(),()=>e.getState())}var We=0;function Ge(e,t,n){let r=[],i=[],a=new Map;for(let n of e){let e=n.position||t,r=a.get(e);r?r.push(n):a.set(e,[n])}for(let e of a.values())e.sort((e,t)=>(t.priority??0)-(e.priority??0)||(e.__sequence??0)-(t.__sequence??0)),e.forEach((e,t)=>{tUe(e);function Je(e,t){let n=e.getState(),r=t([...n.notifications,...n.queue]);for(let e of r)e.__sequence===void 0&&(e.__sequence=We,We+=1);let i=Ge(r,n.defaultPosition,n.limit);e.setState({notifications:i.notifications,queue:i.queue,limit:n.limit,defaultPosition:n.defaultPosition})}function Ye(e,t=Ke){let n=e.id||d();return Je(t,t=>e.id&&t.some(t=>t.id===e.id)?t:[...t,{...e,id:n}]),n}function Xe(e,t=Ke){return Je(t,t=>t.filter(t=>t.id!==e||(t.onClose?.(t),!1))),e}function Ze(e,t=Ke){return Je(t,t=>t.map(t=>t.id===e.id?{...t,...e}:t)),e.id}function Qe(e,t){return typeof e==`function`?e(t):e}function $e(e,t){let n=t.getState();return[...n.notifications,...n.queue].some(t=>t.id===e.id)?Ze(e,t):Ye(e,t)}var et=new WeakMap;function tt(e,t,n=Ke){let r=t.id||d(),i=et.get(n)||new Map,a={};et.set(n,i),i.set(r,a),$e({loading:!0,autoClose:!1,...t.loading,id:r},n);let o=e=>{i.get(r)===a&&(i.delete(r),$e({...t.loading,loading:!1,autoClose:void 0,...e,id:r},n))};return e.then(e=>o({color:`teal`,...Qe(t.success,e)}),e=>o({color:`red`,...Qe(t.error,e)})),e}function nt(e=Ke){Je(e,()=>[])}function rt(e=Ke){let{defaultPosition:t,limit:n}=e.getState();Je(e,e=>Ge(e,t,n).notifications)}var it={show:Ye,hide:Xe,update:Ze,promise:tt,clean:nt,cleanQueue:rt,updateState:Je},at=[`bottom-center`,`bottom-left`,`bottom-right`,`top-center`,`top-left`,`top-right`];function ot(e,t){return e.reduce((e,n)=>(e[n.position||t].push(n),e),at.reduce((e,t)=>(e[t]=[],e),{}))}var st={left:`translateX(-100%)`,right:`translateX(100%)`,"top-center":`translateY(-100%)`,"bottom-center":`translateY(100%)`},ct={left:`translateX(0)`,right:`translateX(0)`,"top-center":`translateY(0)`,"bottom-center":`translateY(0)`};function lt({state:e,maxHeight:t,position:n,transitionDuration:r}){let[i,a]=n.split(`-`),o=a===`center`?`${i}-center`:a,s={opacity:0,maxHeight:t,transform:st[o],transitionDuration:`${r}ms, ${r}ms, ${r}ms`,transitionTimingFunction:`cubic-bezier(.51,.3,0,1.21), cubic-bezier(.51,.3,0,1.21), linear`,transitionProperty:`opacity, transform, max-height`},c={opacity:1,transform:ct[o]},l={opacity:0,maxHeight:0,transform:st[o]},u={entering:c,entered:c,exiting:l,exited:l};return{...s,...u[e]}}function ut(e,t){return typeof t==`number`?t:t===!1||e===!1?!1:e}function dt(e){return Object.keys(e)}function ft(e){return e&&typeof e==`object`&&!Array.isArray(e)}function pt(e,t){let n={...e},r=t;return ft(e)&&ft(t)&&Object.keys(t).forEach(t=>{ft(r[t])&&t in e?n[t]=pt(n[t],r[t]):n[t]=r[t]}),n}function mt(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function ht(e){return typeof e!=`string`||!e.includes(`var(--mantine-scale)`)?e:e.match(/^calc\((.*?)\)$/)?.[1].split(`*`)[0].trim()}function gt(e){let t=ht(e);return typeof t==`number`?t:typeof t==`string`?t.includes(`calc`)||t.includes(`var`)?t:t.includes(`px`)?Number(t.replace(`px`,``)):t.includes(`rem`)?Number(t.replace(`rem`,``))*16:t.includes(`em`)?Number(t.replace(`em`,``))*16:Number(t):NaN}function _t(e){return e===`0rem`?`0rem`:`calc(${e} * var(--mantine-scale))`}function vt(e,{shouldScale:t=!1}={}){function n(r){if(r===0||r===`0`)return`0${e}`;if(typeof r==`number`){let n=`${r/16}${e}`;return t?_t(n):n}if(typeof r==`string`){if(r===``||r.startsWith(`calc(`)||r.startsWith(`clamp(`)||r.includes(`rgba(`))return r;if(r.includes(`,`))return r.split(`,`).map(e=>n(e)).join(`,`);if(r.includes(` `))return r.split(` `).map(e=>n(e)).join(` `);let i=r.replace(`px`,``);if(!Number.isNaN(Number(i))){let n=`${Number(i)/16}${e}`;return t?_t(n):n}}return r}return n}var H=vt(`rem`,{shouldScale:!0}),yt=vt(`em`);function bt(e){return Object.keys(e).reduce((t,n)=>(e[n]!==void 0&&(t[n]=e[n]),t),{})}function xt(e){if(typeof e==`number`)return!0;if(typeof e==`string`){if(e.startsWith(`calc(`)||e.startsWith(`var(`)||e.includes(` `)&&e.trim()!==``)return!0;let t=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(e=>t.test(e))}return!1}function St(e){return Array.isArray(e)||e===null?!1:typeof e==`object`&&e.type!==h.Fragment}function Ct(e){let t=(0,h.createContext)(null);return[t,()=>{let n=(0,h.use)(t);if(n===null)throw Error(e);return n}]}function wt(e,t){return n=>{if(typeof n!=`string`||n.trim().length===0)throw Error(t);return`${e}-${n}`}}function Tt(e,t){let n=e;for(;(n=n.parentElement)&&!n.matches(t););return n}function Et(e,t,n){for(let n=e-1;n>=0;--n)if(!t[n].disabled)return n;if(n){for(let e=t.length-1;e>-1;--e)if(!t[e].disabled)return e}return e}function Dt(e,t,n){for(let n=e+1;n{n?.(s);let c=Array.from(Tt(s.currentTarget,e)?.querySelectorAll(t)||[]).filter(t=>Ot(s.currentTarget,t,e)),l=c.findIndex(e=>s.currentTarget===e),u=Dt(l,c,r),d=Et(l,c,r),f=a===`rtl`?d:u,p=a===`rtl`?u:d;switch(s.key){case`ArrowRight`:o===`horizontal`&&(s.stopPropagation(),s.preventDefault(),c[f].focus(),i&&c[f].click());break;case`ArrowLeft`:o===`horizontal`&&(s.stopPropagation(),s.preventDefault(),c[p].focus(),i&&c[p].click());break;case`ArrowUp`:o===`vertical`&&(s.stopPropagation(),s.preventDefault(),c[d].focus(),i&&c[d].click());break;case`ArrowDown`:o===`vertical`&&(s.stopPropagation(),s.preventDefault(),c[u].focus(),i&&c[u].click());break;case`Home`:s.stopPropagation(),s.preventDefault(),c[Dt(-1,c,!1)]?.focus();break;case`End`:s.stopPropagation(),s.preventDefault(),c[Et(c.length,c,!1)]?.focus()}}}var At={app:100,modal:200,popover:300,overlay:400,max:9999};function jt(e){return At[e]}var Mt=()=>{};function Nt(e,t={active:!0}){return typeof e!=`function`||!t.active?t.onKeyDown||Mt:n=>{n.key===`Escape`&&(e(n),t.onTrigger?.())}}function Pt(e,t=`size`,n=!0){if(e!==void 0)return xt(e)?n?H(e):e:`var(--${t}-${e})`}function Ft(e){return Pt(e,`mantine-spacing`)}function It(e){return e===void 0?`var(--mantine-radius-default)`:Pt(e,`mantine-radius`)}function Lt(e){return Pt(e,`mantine-font-size`)}function Rt(e){return Pt(e,`mantine-line-height`,!1)}function zt(e){if(e)return Pt(e,`mantine-shadow`,!1)}function Bt(e,t){return n=>{e?.(n),t?.(n)}}function Vt(e,t){return e in t?gt(t[e]):gt(e)}function Ht(e,t){let n=e.map(e=>({value:e,px:Vt(e,t)}));return n.sort((e,t)=>e.px-t.px),n}function Ut(e){return typeof e==`object`&&e?`base`in e?e.base:void 0:e}function Wt(e,t,n){return n?Array.from(Tt(n,t)?.querySelectorAll(e)||[]).findIndex(e=>e===n):null}function Gt(){return`development`}function Kt(e){return e?.props?.ref}function qt(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`bigint`}function Jt(e,t=document){let n=t.querySelector(e);if(n)return n;let r=t.querySelectorAll(`*`);for(let t=0;t{Object.entries(e).forEach(([e,n])=>{t[e]?t[e]=en(t[e],n):t[e]=n})}),t}function rn({theme:e,classNames:t,props:n,stylesCtx:r}){return nn((Array.isArray(t)?t:[t]).map(t=>typeof t==`function`?t(e,n,r):t||tn))}function an({theme:e,styles:t,props:n,stylesCtx:r}){let i=Array.isArray(t)?t:[t],a={};for(let t of i)typeof t==`function`?Object.assign(a,t(e,n,r)):t&&Object.assign(a,t);return a}function on(e){return e===`auto`||e===`dark`||e===`light`}function sn({key:e=`mantine-color-scheme-value`}={}){let t;return{get:t=>{if(typeof window>`u`)return t;try{let n=window.localStorage.getItem(e);return on(n)?n:t}catch{return t}},set:t=>{try{window.localStorage.setItem(e,t)}catch(e){console.warn(`[@mantine/core] Local storage color scheme manager was unable to save color scheme.`,e)}},subscribe:n=>{t=t=>{t.storageArea===window.localStorage&&t.key===e&&on(t.newValue)&&n(t.newValue)},window.addEventListener(`storage`,t)},unsubscribe:()=>{window.removeEventListener(`storage`,t)},clear:()=>{window.localStorage.removeItem(e)}}}function cn(e,t){return typeof e.primaryShade==`number`?e.primaryShade:t===`dark`?e.primaryShade.dark:e.primaryShade.light}function ln(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function un(e){let t=e.replace(`#`,``);if(t.length===3){let e=t.split(``);t=[e[0],e[0],e[1],e[1],e[2],e[2]].join(``)}if(t.length===8){let e=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:e}}let n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:n&255,a:1}}function dn(e){let[t,n,r,i]=e.replace(/[^0-9,./]/g,``).split(/[/,]/).map(Number);return{r:t,g:n,b:r,a:i===void 0?1:i}}function fn(e){let t=e.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!t)return{r:0,g:0,b:0,a:1};let n=parseInt(t[1],10),r=parseInt(t[2],10)/100,i=parseInt(t[3],10)/100,a=t[5]?parseFloat(t[5]):void 0,o=(1-Math.abs(2*i-1))*r,s=n/60,c=o*(1-Math.abs(s%2-1)),l=i-o/2,u,d,f;return s>=0&&s<1?(u=o,d=c,f=0):s>=1&&s<2?(u=c,d=o,f=0):s>=2&&s<3?(u=0,d=o,f=c):s>=3&&s<4?(u=0,d=c,f=o):s>=4&&s<5?(u=c,d=0,f=o):(u=o,d=0,f=c),{r:Math.round((u+l)*255),g:Math.round((d+l)*255),b:Math.round((f+l)*255),a:a||1}}function pn(e){return ln(e)?un(e):e.startsWith(`rgb`)?dn(e):e.startsWith(`hsl`)?fn(e):{r:0,g:0,b:0,a:1}}function mn(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function hn(e){let t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function gn(e){if(e.startsWith(`oklch(`))return(hn(e)||0)/100;let{r:t,g:n,b:r}=pn(e),i=t/255,a=n/255,o=r/255,s=mn(i),c=mn(a),l=mn(o);return .2126*s+.7152*c+.0722*l}function _n(e,t=.179){return!e.startsWith(`var(`)&&gn(e)>t}function vn({color:e,theme:t,colorScheme:n}){if(typeof e!=`string`)throw Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e===`bright`)return{color:e,value:n===`dark`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:_n(n===`dark`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-bright`};if(e===`dimmed`)return{color:e,value:n===`dark`?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:_n(n===`dark`?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:`--mantine-color-dimmed`};if(e===`white`||e===`black`)return{color:e,value:e===`white`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:_n(e===`white`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};let[r,i]=e.split(`.`),a=i?Number(i):void 0,o=r in t.colors;if(o){let e=a===void 0?t.colors[r][cn(t,n||`light`)]:t.colors[r][a];return{color:r,value:e,shade:a,isThemeColor:o,isLight:_n(e,t.luminanceThreshold),variable:i?`--mantine-color-${r}-${a}`:`--mantine-color-${r}-filled`}}return{color:e,value:e,isThemeColor:o,isLight:_n(e,t.luminanceThreshold),shade:a,variable:void 0}}function yn(e,t){let n=vn({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}function bn(e){return Array.isArray(e)?e:Array(10).fill(e)}function xn(e){let t=bn(Array.from({length:10}).map((t,n)=>`var(--mantine-color-${e.name}-${n})`));return Object.defineProperty(t,"mantine-virtual-color",{enumerable:!1,writable:!1,configurable:!1,value:!0}),Object.defineProperty(t,"dark",{enumerable:!1,writable:!1,configurable:!1,value:e.dark}),Object.defineProperty(t,"light",{enumerable:!1,writable:!1,configurable:!1,value:e.light}),Object.defineProperty(t,"name",{enumerable:!1,writable:!1,configurable:!1,value:e.name}),t}function Sn(e){return!!e&&typeof e==`object`&&`mantine-virtual-color`in e}function Cn(e,t){if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, black ${t*100}%)`;let{r:n,g:r,b:i,a}=pn(e),o=1-t,s=e=>Math.round(e*o);return`rgba(${s(n)}, ${s(r)}, ${s(i)}, ${a})`}function wn(e,t){let n={from:e?.from||t.defaultGradient.from,to:e?.to||t.defaultGradient.to,deg:e?.deg??t.defaultGradient.deg??0},r=yn(n.from,t),i=yn(n.to,t);return`linear-gradient(${n.deg}deg, ${r} 0%, ${i} 100%)`}function Tn(e,t){if(typeof e!=`string`||t>1||t<0)return`rgba(0, 0, 0, 1)`;if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, transparent ${(1-t)*100}%)`;if(e.startsWith(`oklch`))return e.includes(`/`)?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(`)`,` / ${t})`);let{r:n,g:r,b:i}=pn(e);return`rgba(${n}, ${r}, ${i}, ${t})`}var En=Tn,Dn=({color:e,theme:t,variant:n,gradient:r,autoContrast:i})=>{let a=vn({color:e,theme:t}),o=typeof i==`boolean`?i:t.autoContrast;if(n===`none`)return{background:`transparent`,hover:`transparent`,color:`inherit`,border:`none`};if(n===`filled`){let n=a.isThemeColor&&a.shade===void 0&&Sn(t.colors[a.color]),r=o?n?`var(--mantine-color-${a.color}-contrast)`:a.isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`:`var(--mantine-color-white)`;return a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:r,border:`${H(1)} solid transparent`}:{background:`var(--mantine-color-${a.color}-${a.shade})`,hover:`var(--mantine-color-${a.color}-${a.shade===9?8:a.shade+1})`,color:r,border:`${H(1)} solid transparent`}:{background:e,hover:Cn(e,.1),color:r,border:`${H(1)} solid transparent`}}if(n===`light`){if(a.isThemeColor){if(a.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${H(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:n,hover:Cn(n,.1),color:`var(--mantine-color-${a.color}-light-color)`,border:`${H(1)} solid transparent`}}return{background:Tn(e,.1),hover:Tn(e,.12),color:e,border:`${H(1)} solid transparent`}}if(n===`outline`)return a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${H(1)} solid var(--mantine-color-${e}-outline)`}:{background:`transparent`,hover:Tn(t.colors[a.color][a.shade],.05),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${H(1)} solid var(--mantine-color-${a.color}-${a.shade})`}:{background:`transparent`,hover:Tn(e,.05),color:e,border:`${H(1)} solid ${e}`};if(n===`subtle`){if(a.isThemeColor){if(a.shade===void 0)return{background:`transparent`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${H(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:`transparent`,hover:Tn(n,.12),color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${H(1)} solid transparent`}}return{background:`transparent`,hover:Tn(e,.12),color:e,border:`${H(1)} solid transparent`}}return n===`transparent`?a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${e}-light-color)`,border:`${H(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${H(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:e,border:`${H(1)} solid transparent`}:n===`white`?a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-white)`,hover:Cn(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${H(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:Cn(t.white,.01),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${H(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:Cn(t.white,.01),color:e,border:`${H(1)} solid transparent`}:n===`gradient`?{background:wn(r,t),hover:wn(r,t),color:`var(--mantine-color-white)`,border:`none`}:n==="default"?{background:`var(--mantine-color-default)`,hover:`var(--mantine-color-default-hover)`,color:`var(--mantine-color-default-color)`,border:`${H(1)} solid var(--mantine-color-default-border)`}:{}};function On(e,t){if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, white ${t*100}%)`;let{r:n,g:r,b:i,a}=pn(e),o=e=>Math.round(e+(255-e)*t);return`rgba(${o(n)}, ${o(r)}, ${o(i)}, ${a})`}function kn({color:e,theme:t,autoContrast:n,colorScheme:r}){return(typeof n==`boolean`?n:t.autoContrast)&&vn({color:e||t.primaryColor,theme:t,colorScheme:r}).isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`}function An(e,t,n){return kn({color:n===`dark`?e.dark:e.light,theme:t,colorScheme:n,autoContrast:!0})}function jn(e,t){let n=e.colors[e.primaryColor];return Sn(n)?e.autoContrast?An(n,e,t):`var(--mantine-color-white)`:kn({color:n[cn(e,t)],theme:e,autoContrast:null})}function Mn(e,t){return typeof e==`boolean`?e:t.autoContrast}var Nn=(0,h.createContext)(null);function Pn(){let e=(0,h.use)(Nn);if(!e)throw Error(`[@mantine/core] MantineProvider was not found in tree`);return e}function Fn(){return Pn().cssVariablesResolver}function In(){return Pn().classNamesPrefix}function Ln(){return Pn().getStyleNonce}function Rn(){return Pn().withStaticClasses}function zn(){return Pn().headless}function Bn(){return Pn().stylesTransform?.sx}function Vn(){return Pn().stylesTransform?.styles}function Hn(){return Pn().env||`default`}function Un(){return Pn().deduplicateInlineStyles}function Wn(e){let t=document.createElement(`style`);return t.setAttribute(`data-mantine-styles`,`inline`),t.innerHTML=`*, *::before, *::after {transition: none !important;}`,t.setAttribute(`data-mantine-disable-transition`,`true`),e&&t.setAttribute(`nonce`,e),document.head.appendChild(t),()=>document.querySelectorAll(`[data-mantine-disable-transition]`).forEach(e=>e.remove())}function Gn({keepTransitions:e}={}){let t=(0,h.useRef)(Mt),n=(0,h.useRef)(-1),r=(0,h.use)(Nn),i=Ln(),a=(0,h.useRef)(i?.());if(!r)throw Error(`[@mantine/core] MantineProvider was not found in tree`);let o=i=>{r.setColorScheme(i),t.current=e?()=>{}:Wn(a.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current?.()},10)},s=()=>{r.clearColorScheme(),t.current=e?()=>{}:Wn(a.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current?.()},10)},c=S(`light`,{getInitialValueInEffect:!1}),l=r.colorScheme===`auto`?c:r.colorScheme,u=(0,h.useCallback)(()=>o(l===`light`?`dark`:`light`),[o,l]);return(0,h.useEffect)(()=>()=>{t.current?.(),window.clearTimeout(n.current)},[]),{colorScheme:r.colorScheme,setColorScheme:o,clearColorScheme:s,toggleColorScheme:u}}function Kn(e,t){let n=typeof window<`u`&&`matchMedia`in window&&window.matchMedia(`(prefers-color-scheme: dark)`)?.matches,r=e===`auto`?n?`dark`:`light`:e;t()?.setAttribute(`data-mantine-color-scheme`,r)}function qn({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:r}){let i=(0,h.useRef)(null),[a,o]=(0,h.useState)(()=>e.get(t)),s=r||a,c=(0,h.useCallback)(t=>{r||(Kn(t,n),o(t),e.set(t))},[e.set,s,r]),l=(0,h.useCallback)(()=>{o(t),Kn(t,n),e.clear()},[e.clear,t]);return(0,h.useEffect)(()=>(e.subscribe(c),e.unsubscribe),[e.subscribe,e.unsubscribe]),C(()=>{Kn(e.get(t),n)},[]),(0,h.useEffect)(()=>{if(r)return Kn(r,n),()=>{};r===void 0&&Kn(a,n),typeof window<`u`&&`matchMedia`in window&&(i.current=window.matchMedia(`(prefers-color-scheme: dark)`));let e=e=>{a===`auto`&&Kn(e.matches?`dark`:`light`,n)};return i.current?.addEventListener(`change`,e),()=>i.current?.removeEventListener(`change`,e)},[a,r]),{colorScheme:s,setColorScheme:c,clearColorScheme:l}}function Jn(e,t={getInitialValueInEffect:!0}){let n=S(e,t),{colorScheme:r}=Gn();return r===`auto`?n:r}var Yn=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Xn=o(((e,t)=>{t.exports=Yn()})),Zn={dark:[`#C9C9C9`,`#b8b8b8`,`#828282`,`#696969`,`#424242`,`#3b3b3b`,`#2e2e2e`,`#242424`,`#1f1f1f`,`#141414`],gray:[`#f8f9fa`,`#f1f3f5`,`#e9ecef`,`#dee2e6`,`#ced4da`,`#adb5bd`,`#868e96`,`#495057`,`#343a40`,`#212529`],red:[`#fff5f5`,`#ffe3e3`,`#ffc9c9`,`#ffa8a8`,`#ff8787`,`#ff6b6b`,`#fa5252`,`#f03e3e`,`#e03131`,`#c92a2a`],pink:[`#fff0f6`,`#ffdeeb`,`#fcc2d7`,`#faa2c1`,`#f783ac`,`#f06595`,`#e64980`,`#d6336c`,`#c2255c`,`#a61e4d`],grape:[`#f8f0fc`,`#f3d9fa`,`#eebefa`,`#e599f7`,`#da77f2`,`#cc5de8`,`#be4bdb`,`#ae3ec9`,`#9c36b5`,`#862e9c`],violet:[`#f3f0ff`,`#e5dbff`,`#d0bfff`,`#b197fc`,`#9775fa`,`#845ef7`,`#7950f2`,`#7048e8`,`#6741d9`,`#5f3dc4`],indigo:[`#edf2ff`,`#dbe4ff`,`#bac8ff`,`#91a7ff`,`#748ffc`,`#5c7cfa`,`#4c6ef5`,`#4263eb`,`#3b5bdb`,`#364fc7`],blue:[`#e7f5ff`,`#d0ebff`,`#a5d8ff`,`#74c0fc`,`#4dabf7`,`#339af0`,`#228be6`,`#1c7ed6`,`#1971c2`,`#1864ab`],cyan:[`#e3fafc`,`#c5f6fa`,`#99e9f2`,`#66d9e8`,`#3bc9db`,`#22b8cf`,`#15aabf`,`#1098ad`,`#0c8599`,`#0b7285`],teal:[`#e6fcf5`,`#c3fae8`,`#96f2d7`,`#63e6be`,`#38d9a9`,`#20c997`,`#12b886`,`#0ca678`,`#099268`,`#087f5b`],green:[`#ebfbee`,`#d3f9d8`,`#b2f2bb`,`#8ce99a`,`#69db7c`,`#51cf66`,`#40c057`,`#37b24d`,`#2f9e44`,`#2b8a3e`],lime:[`#f4fce3`,`#e9fac8`,`#d8f5a2`,`#c0eb75`,`#a9e34b`,`#94d82d`,`#82c91e`,`#74b816`,`#66a80f`,`#5c940d`],yellow:[`#fff9db`,`#fff3bf`,`#ffec99`,`#ffe066`,`#ffd43b`,`#fcc419`,`#fab005`,`#f59f00`,`#f08c00`,`#e67700`],orange:[`#fff4e6`,`#ffe8cc`,`#ffd8a8`,`#ffc078`,`#ffa94d`,`#ff922b`,`#fd7e14`,`#f76707`,`#e8590c`,`#d9480f`]},Qn=`-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji`,$n={scale:1,fontSmoothing:!0,focusRing:`auto`,white:`#fff`,black:`#000`,colors:Zn,primaryShade:{light:6,dark:8},primaryColor:`blue`,variantColorResolver:Dn,autoContrast:!1,luminanceThreshold:.3,fontFamily:Qn,fontFamilyMonospace:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace`,respectReducedMotion:!1,cursorType:`default`,defaultGradient:{from:`blue`,to:`cyan`,deg:45},defaultRadius:`md`,activeClassName:`mantine-active`,focusClassName:``,headings:{fontFamily:Qn,fontWeight:`700`,textWrap:`wrap`,sizes:{h1:{fontSize:H(34),lineHeight:`1.3`},h2:{fontSize:H(26),lineHeight:`1.35`},h3:{fontSize:H(22),lineHeight:`1.4`},h4:{fontSize:H(18),lineHeight:`1.45`},h5:{fontSize:H(16),lineHeight:`1.5`},h6:{fontSize:H(14),lineHeight:`1.5`}}},fontSizes:{xs:H(12),sm:H(14),md:H(16),lg:H(18),xl:H(20)},lineHeights:{xs:`1.4`,sm:`1.45`,md:`1.55`,lg:`1.6`,xl:`1.65`},fontWeights:{regular:`400`,medium:`600`,bold:`700`},radius:{xs:H(2),sm:H(4),md:H(8),lg:H(16),xl:H(32)},spacing:{xs:H(10),sm:H(12),md:H(16),lg:H(20),xl:H(32)},breakpoints:{xs:`36em`,sm:`48em`,md:`62em`,lg:`75em`,xl:`88em`},shadows:{xs:`0 ${H(1)} ${H(3)} rgba(0, 0, 0, 0.05), 0 ${H(1)} ${H(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${H(1)} ${H(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${H(10)} ${H(15)} ${H(-5)}, rgba(0, 0, 0, 0.04) 0 ${H(7)} ${H(7)} ${H(-5)}`,md:`0 ${H(1)} ${H(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${H(20)} ${H(25)} ${H(-5)}, rgba(0, 0, 0, 0.04) 0 ${H(10)} ${H(10)} ${H(-5)}`,lg:`0 ${H(1)} ${H(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${H(28)} ${H(23)} ${H(-7)}, rgba(0, 0, 0, 0.04) 0 ${H(12)} ${H(12)} ${H(-7)}`,xl:`0 ${H(1)} ${H(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${H(36)} ${H(28)} ${H(-7)}, rgba(0, 0, 0, 0.04) 0 ${H(17)} ${H(17)} ${H(-7)}`},other:{},components:{}},er=`[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color`,tr=`[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }`;function nr(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function rr(e){if(!(e.primaryColor in e.colors))throw Error(er);if(typeof e.primaryShade==`object`&&(!nr(e.primaryShade.dark)||!nr(e.primaryShade.light))||typeof e.primaryShade==`number`&&!nr(e.primaryShade))throw Error(tr)}function ir(e,t){if(!t)return rr(e),e;let n=pt(e,t);return t.fontFamily&&!t.headings?.fontFamily&&(n.headings={...n.headings,fontFamily:t.fontFamily}),rr(n),n}var U=Xn(),ar=(0,h.createContext)(null),or=()=>(0,h.use)(ar)||$n;function sr(){let e=(0,h.use)(ar);if(!e)throw Error(`@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app`);return e}function cr({theme:e,children:t,inherit:n=!0}){let r=or(),i=(0,h.useMemo)(()=>ir(n?r:$n,e),[e,r,n]);return(0,U.jsx)(ar,{value:i,children:t})}cr.displayName=`@mantine/core/MantineThemeProvider`;function lr(e){return Object.entries(e).map(([e,t])=>`${e}: ${t};`).join(``)}function ur(e,t){let n=t?[t]:[`:root`,`:host`],r=lr(e.variables),i=r?`${n.join(`, `)}{${r}}`:``,a=lr(e.dark),o=lr(e.light),s=e=>n.map(t=>t===`:host`?`${t}([data-mantine-color-scheme="${e}"])`:`${t}[data-mantine-color-scheme="${e}"]`).join(`, `);return`${i}\n\n${a?`${s(`dark`)}{${a}}`:``}\n\n${o?`${s(`light`)}{${o}}`:``}`}function dr({theme:e,color:t,colorScheme:n,name:r=t,withColorValues:i=!0}){if(!e.colors[t])return{};if(n===`light`){let n=cn(e,`light`),a={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${n===9?8:n+1})`,[`--mantine-color-${r}-light`]:`var(--mantine-color-${r}-1)`,[`--mantine-color-${r}-light-hover`]:`var(--mantine-color-${r}-2)`,[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-9)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-outline-hover`]:En(e.colors[t][n],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...a}:a}let a=cn(e,`dark`),o={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${a===9?8:a+1})`,[`--mantine-color-${r}-light`]:Cn(e.colors[t][9],.5),[`--mantine-color-${r}-light-hover`]:Cn(e.colors[t][9],.3),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-0)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(a-4,0)})`,[`--mantine-color-${r}-outline-hover`]:En(e.colors[t][Math.max(a-4,0)],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...o}:o}function fr(e,t,n){dt(t).forEach(r=>Object.assign(e,{[`--mantine-${n}-${r}`]:t[r]}))}var pr=e=>{let t=cn(e,`light`),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:H(e.defaultRadius),r={variables:{"--mantine-z-index-app":`100`,"--mantine-z-index-modal":`200`,"--mantine-z-index-popover":`300`,"--mantine-z-index-overlay":`400`,"--mantine-z-index-max":`9999`,"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-webkit-font-smoothing":e.fontSmoothing?`antialiased`:`unset`,"--mantine-moz-font-smoothing":e.fontSmoothing?`grayscale`:`unset`,"--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-color-scheme":`light`,"--mantine-primary-color-contrast":jn(e,`light`),"--mantine-color-bright":`var(--mantine-color-black)`,"--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":`var(--mantine-color-red-6)`,"--mantine-color-success":`var(--mantine-color-teal-8)`,"--mantine-color-placeholder":`var(--mantine-color-gray-5)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":`var(--mantine-color-white)`,"--mantine-color-default-hover":`var(--mantine-color-gray-0)`,"--mantine-color-default-color":`var(--mantine-color-black)`,"--mantine-color-default-border":`var(--mantine-color-gray-4)`,"--mantine-color-dimmed":`var(--mantine-color-gray-6)`,"--mantine-color-disabled":`var(--mantine-color-gray-2)`,"--mantine-color-disabled-color":`var(--mantine-color-gray-5)`,"--mantine-color-disabled-border":`var(--mantine-color-gray-3)`},dark:{"--mantine-color-scheme":`dark`,"--mantine-primary-color-contrast":jn(e,`dark`),"--mantine-color-bright":`var(--mantine-color-white)`,"--mantine-color-text":`var(--mantine-color-dark-0)`,"--mantine-color-body":`var(--mantine-color-dark-7)`,"--mantine-color-error":`var(--mantine-color-red-8)`,"--mantine-color-success":`var(--mantine-color-teal-8)`,"--mantine-color-placeholder":`var(--mantine-color-dark-3)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":`var(--mantine-color-dark-6)`,"--mantine-color-default-hover":`var(--mantine-color-dark-5)`,"--mantine-color-default-color":`var(--mantine-color-white)`,"--mantine-color-default-border":`var(--mantine-color-dark-4)`,"--mantine-color-dimmed":`var(--mantine-color-dark-2)`,"--mantine-color-disabled":`var(--mantine-color-dark-6)`,"--mantine-color-disabled-color":`var(--mantine-color-dark-3)`,"--mantine-color-disabled-border":`var(--mantine-color-dark-4)`}};fr(r.variables,e.breakpoints,`breakpoint`),fr(r.variables,e.spacing,`spacing`),fr(r.variables,e.fontSizes,`font-size`),fr(r.variables,e.lineHeights,`line-height`),fr(r.variables,e.shadows,`shadow`),fr(r.variables,e.radius,`radius`),fr(r.variables,e.fontWeights,`font-weight`),e.colors[e.primaryColor].forEach((t,n)=>{r.variables[`--mantine-primary-color-${n}`]=`var(--mantine-color-${e.primaryColor}-${n})`}),dt(e.colors).forEach(t=>{let n=e.colors[t];Sn(n)?(Object.assign(r.light,dr({theme:e,name:n.name,color:n.light,colorScheme:`light`,withColorValues:!0})),Object.assign(r.dark,dr({theme:e,name:n.name,color:n.dark,colorScheme:`dark`,withColorValues:!0})),r.light[`--mantine-color-${n.name}-contrast`]=An(n,e,`light`),r.dark[`--mantine-color-${n.name}-contrast`]=An(n,e,`dark`)):(n.forEach((e,n)=>{r.variables[`--mantine-color-${t}-${n}`]=e}),Object.assign(r.light,dr({theme:e,color:t,colorScheme:`light`,withColorValues:!1})),Object.assign(r.dark,dr({theme:e,color:t,colorScheme:`dark`,withColorValues:!1})))});let i=e.headings.sizes;return dt(i).forEach(t=>{r.variables[`--mantine-${t}-font-size`]=i[t].fontSize,r.variables[`--mantine-${t}-line-height`]=i[t].lineHeight,r.variables[`--mantine-${t}-font-weight`]=i[t].fontWeight||e.headings.fontWeight}),r};function mr(){let e=sr(),t=Ln(),n=dt(e.breakpoints).reduce((t,n)=>{let r=e.breakpoints[n].includes(`px`),i=gt(e.breakpoints[n]);return`${t}@media (max-width: ${r?`${i-.1}px`:yt(i-.1)}) {.mantine-visible-from-${n} {display: none !important;}}@media (min-width: ${r?`${i}px`:yt(i)}) {.mantine-hidden-from-${n} {display: none !important;}}`},``);return(0,U.jsx)(`style`,{"data-mantine-styles":`classes`,nonce:t?.(),dangerouslySetInnerHTML:{__html:n}})}function hr({theme:e,generator:t}){let n=pr(e),r=t?.(e);return r?pt(n,r):n}var gr=pr($n);function _r(e){let t={variables:{},light:{},dark:{}};return dt(e.variables).forEach(n=>{gr.variables[n]!==e.variables[n]&&(t.variables[n]=e.variables[n])}),dt(e.light).forEach(n=>{gr.light[n]!==e.light[n]&&(t.light[n]=e.light[n])}),dt(e.dark).forEach(n=>{gr.dark[n]!==e.dark[n]&&(t.dark[n]=e.dark[n])}),t}function vr(e){return ur({variables:{},dark:{"--mantine-color-scheme":`dark`},light:{"--mantine-color-scheme":`light`}},e)}function yr({cssVariablesSelector:e,deduplicateCssVariables:t}){let n=sr(),r=Ln(),i=hr({theme:n,generator:Fn()}),a=(e===void 0||e===`:root`||e===`:host`)&&t,o=ur(a?_r(i):i,e);return o?(0,U.jsx)(`style`,{"data-mantine-styles":!0,nonce:r?.(),dangerouslySetInnerHTML:{__html:`${o}${a?``:vr(e)}`}}):null}yr.displayName=`@mantine/CssVariables`;function br({respectReducedMotion:e,getRootElement:t}){C(()=>{e&&t()?.setAttribute(`data-respect-reduced-motion`,`true`)},[e])}function xr({theme:e,children:t,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:i=!0,deduplicateCssVariables:a=!0,withCssVariables:o=!0,cssVariablesSelector:s,classNamesPrefix:c=`mantine`,colorSchemeManager:l=sn(),defaultColorScheme:u=`light`,getRootElement:d=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:p,stylesTransform:m,env:h,deduplicateInlineStyles:g=!1}){let{colorScheme:_,setColorScheme:v,clearColorScheme:y}=qn({defaultColorScheme:u,forceColorScheme:p,manager:l,getRootElement:d});return br({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:d}),(0,U.jsx)(Nn,{value:{colorScheme:_,setColorScheme:v,clearColorScheme:y,getRootElement:d,classNamesPrefix:c,getStyleNonce:n,cssVariablesResolver:f,cssVariablesSelector:s??`:root`,withStaticClasses:r,stylesTransform:m,env:h,deduplicateInlineStyles:g},children:(0,U.jsxs)(cr,{theme:e,children:[o&&(0,U.jsx)(yr,{cssVariablesSelector:s,deduplicateCssVariables:a}),i&&(0,U.jsx)(mr,{}),t]})})}xr.displayName=`@mantine/core/MantineProvider`;function W(e,t,n){let r=sr(),i=(Array.isArray(e)?e:[e]).filter(Boolean),a={};for(let e of i){let t=r.components[e]?.defaultProps,n=typeof t==`function`?t(r):t;n&&(a={...a,...n})}return{...t,...a,...bt(n)}}function Sr(e){return e}function Cr({classNames:e,styles:t,props:n,stylesCtx:r}){let i=sr();return{resolvedClassNames:e===void 0?void 0:rn({theme:i,classNames:e,props:n,stylesCtx:r||void 0}),resolvedStyles:t===void 0?void 0:an({theme:i,styles:t,props:n,stylesCtx:r||void 0})}}var wr={always:`mantine-focus-always`,auto:`mantine-focus-auto`,never:`mantine-focus-never`};function Tr({theme:e,options:t,unstyled:n}){return en(t?.focusable&&!n&&(e.focusClassName||wr[e.focusRing]),t?.active&&!n&&e.activeClassName)}function Er(e,t,n=1){if(Object.is(e,t))return!0;if(n===0||typeof e!=`object`||typeof t!=`object`||e===null||t===null)return!1;if(Array.isArray(e)||Array.isArray(t)){if(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)return!1;for(let r=0;r`${t}-${e}-${n}`)}function Mr({options:e,classes:t,selector:n,unstyled:r}){return e?.variant&&!r?t[`${n}--${e.variant}`]:void 0}function Nr({theme:e,options:t,themeName:n,selector:r,classNamesPrefix:i,resolvedClassNames:a,resolvedThemeClassNames:o,classes:s,unstyled:c,className:l,rootSelector:u,props:d,stylesCtx:f,withStaticClasses:p,headless:m,transformedStyles:h}){return en(Tr({theme:e,options:t,unstyled:c||m}),o.map(e=>e[r]),Mr({options:t,classes:s,selector:r,unstyled:c||m}),a[r],Or({selector:r,stylesCtx:f,theme:e,classNames:h,props:d}),Dr({selector:r,stylesCtx:f,options:t,props:d,theme:e}),kr({rootSelector:u,selector:r,className:l}),Ar({selector:r,classes:s,unstyled:c||m}),p&&!m&&jr({themeName:n,classNamesPrefix:i,selector:r,withStaticClass:t?.withStaticClass}),t?.className)}function Pr({style:e,theme:t}){return Array.isArray(e)?e.reduce((e,n)=>({...e,...Pr({style:n,theme:t})}),{}):typeof e==`function`?e(t):e??{}}function Fr({theme:e,selector:t,options:n,props:r,stylesCtx:i,rootSelector:a,withStylesTransform:o,resolvedStyles:s,resolvedThemeStyles:c,resolvedVars:l,resolvedRootStyle:u}){return{...c[t],...s[t],...!o&&an({theme:e,styles:n?.styles,props:n?.props||r,stylesCtx:i})[t],...l[t],...a===t?u:null,...Pr({style:n?.style,theme:e})}}function Ir(e){return e.reduce((e,t)=>(t&&Object.keys(t).forEach(n=>{e[n]={...e[n],...bt(t[n])}}),e),{})}function Lr({props:e,stylesCtx:t,themeName:n,theme:r}){let i=Vn()?.();return{getTransformedStyles:a=>i?[...a.map(n=>i(n,{props:e,theme:r,ctx:t})),...n.map(n=>i(r.components[n]?.styles,{props:e,theme:r,ctx:t}))].filter(Boolean):[],withStylesTransform:!!i}}function Rr({name:e,classes:t,props:n,stylesCtx:r,className:i,style:a,rootSelector:o=`root`,unstyled:s,classNames:c,styles:l,vars:u,varsResolver:d,attributes:f,stable:p}){let m=sr(),h=In(),g=Rn(),_=zn(),v=(Array.isArray(e)?e:[e]).filter(e=>e),{withStylesTransform:y,getTransformedStyles:b}=Lr({props:n,stylesCtx:r,themeName:v,theme:m}),x=rn({theme:m,classNames:c,props:n,stylesCtx:r}),S=v.map(e=>rn({theme:m,classNames:m.components[e]?.classNames,props:n,stylesCtx:r})),C=y?{}:an({theme:m,styles:l,props:n,stylesCtx:r}),w={};if(!y)for(let e of v){let t=an({theme:m,styles:m.components[e]?.styles,props:n,stylesCtx:r});for(let e of Object.keys(t))w[e]={...w[e],...t[e]}}let T=Ir([_?{}:d?.(m,n,r),...v.map(e=>m.components?.[e]?.vars?.(m,n,r)),u?.(m,n,r)]),E=Pr({style:a,theme:m});return zr((e,a)=>({...f?.[e],className:Nr({theme:m,options:a,themeName:v,selector:e,classNamesPrefix:h,resolvedClassNames:x,resolvedThemeClassNames:S,classes:t,unstyled:s,className:i,rootSelector:o,props:n,stylesCtx:r,withStaticClasses:g,headless:_,transformedStyles:b([a?.styles,l])}),style:Fr({theme:m,selector:e,options:a,props:n,stylesCtx:r,rootSelector:o,withStylesTransform:y,resolvedStyles:C,resolvedThemeStyles:w,resolvedVars:T,resolvedRootStyle:E})}),!!p,[m,h,g,_,y?n:null,t,s,i,o,f,r,x,S,C,w,T,E])}function zr(e,t,n){let r=(0,h.useRef)(null);return t?(r.current&&Er(r.current.deps,n,3)||(r.current={deps:n,getStyles:e}),r.current.getStyles):e}function Br(e){return dt(e).reduce((t,n)=>e[n]===void 0?t:`${t}${mt(n)}:${e[n]};`,``).trim()}function Vr({selector:e,styles:t,media:n,container:r}){let i=t?Br(t):``,a=Array.isArray(n)?n.map(t=>`@media${t.query}{${e}{${Br(t.styles)}}}`):[],o=Array.isArray(r)?r.map(t=>`@container ${t.query}{${e}{${Br(t.styles)}}}`):[];return`${i?`${e}{${i}}`:``}${a.join(``)}${o.join(``)}`.trim()}function Hr(e){let t=5381;for(let n=0;n>>0).toString(36)}function Ur({deduplicate:e,...t}){let n=Ln(),r=Vr(t);return e?(0,U.jsx)(`style`,{href:`mantine-${Hr(r)}`,precedence:`mantine`,nonce:n?.(),children:r}):(0,U.jsx)(`style`,{"data-mantine-styles":`inline`,nonce:n?.(),dangerouslySetInnerHTML:{__html:r}})}function Wr(e){let t=5381;for(let n=0;n>>0).toString(36)}function Gr(e,t){return`__mdi__-${Wr(`${e?Br(e):``}|${Array.isArray(t)?t.map(e=>`${e.query}:${Br(e.styles)}`).join(`|`):``}`)}`}function Kr(e){let{m:t,mx:n,my:r,mt:i,mb:a,ml:o,mr:s,me:c,ms:l,mis:u,mie:d,p:f,px:p,py:m,pt:h,pb:g,pl:_,pr:v,pe:y,ps:b,pis:x,pie:S,bd:C,bdrs:w,bg:T,c:E,opacity:D,ff:O,fz:k,fw:A,lts:j,ta:M,lh:N,fs:P,tt:F,td:ee,w:I,miw:L,maw:R,h:te,mih:ne,mah:re,bgsz:ie,bgp:ae,bgr:oe,bga:z,pos:se,top:ce,left:B,bottom:le,right:ue,inset:de,display:fe,flex:pe,hiddenFrom:me,visibleFrom:he,lightHidden:ge,darkHidden:_e,sx:V,...ve}=e;return{styleProps:bt({m:t,mx:n,my:r,mt:i,mb:a,ml:o,mr:s,me:c,ms:l,mis:u,mie:d,p:f,px:p,py:m,pt:h,pb:g,pl:_,pr:v,pis:x,pie:S,pe:y,ps:b,bd:C,bg:T,c:E,opacity:D,ff:O,fz:k,fw:A,lts:j,ta:M,lh:N,fs:P,tt:F,td:ee,w:I,miw:L,maw:R,h:te,mih:ne,mah:re,bgsz:ie,bgp:ae,bgr:oe,bga:z,pos:se,top:ce,left:B,bottom:le,right:ue,inset:de,display:fe,flex:pe,bdrs:w,hiddenFrom:me,visibleFrom:he,lightHidden:ge,darkHidden:_e,sx:V}),rest:ve}}var qr={m:{type:`spacing`,property:`margin`},mt:{type:`spacing`,property:`marginTop`},mb:{type:`spacing`,property:`marginBottom`},ml:{type:`spacing`,property:`marginLeft`},mr:{type:`spacing`,property:`marginRight`},ms:{type:`spacing`,property:`marginInlineStart`},me:{type:`spacing`,property:`marginInlineEnd`},mis:{type:`spacing`,property:`marginInlineStart`},mie:{type:`spacing`,property:`marginInlineEnd`},mx:{type:`spacing`,property:`marginInline`},my:{type:`spacing`,property:`marginBlock`},p:{type:`spacing`,property:`padding`},pt:{type:`spacing`,property:`paddingTop`},pb:{type:`spacing`,property:`paddingBottom`},pl:{type:`spacing`,property:`paddingLeft`},pr:{type:`spacing`,property:`paddingRight`},ps:{type:`spacing`,property:`paddingInlineStart`},pe:{type:`spacing`,property:`paddingInlineEnd`},pis:{type:`spacing`,property:`paddingInlineStart`},pie:{type:`spacing`,property:`paddingInlineEnd`},px:{type:`spacing`,property:`paddingInline`},py:{type:`spacing`,property:`paddingBlock`},bd:{type:`border`,property:`border`},bdrs:{type:`radius`,property:`borderRadius`},bg:{type:`color`,property:`background`},c:{type:`textColor`,property:`color`},opacity:{type:`identity`,property:`opacity`},ff:{type:`fontFamily`,property:`fontFamily`},fz:{type:`fontSize`,property:`fontSize`},fw:{type:`identity`,property:`fontWeight`},lts:{type:`size`,property:`letterSpacing`},ta:{type:`identity`,property:`textAlign`},lh:{type:`lineHeight`,property:`lineHeight`},fs:{type:`identity`,property:`fontStyle`},tt:{type:`identity`,property:`textTransform`},td:{type:`identity`,property:`textDecoration`},w:{type:`spacing`,property:`width`},miw:{type:`spacing`,property:`minWidth`},maw:{type:`spacing`,property:`maxWidth`},h:{type:`spacing`,property:`height`},mih:{type:`spacing`,property:`minHeight`},mah:{type:`spacing`,property:`maxHeight`},bgsz:{type:`size`,property:`backgroundSize`},bgp:{type:`identity`,property:`backgroundPosition`},bgr:{type:`identity`,property:`backgroundRepeat`},bga:{type:`identity`,property:`backgroundAttachment`},pos:{type:`identity`,property:`position`},top:{type:`size`,property:`top`},left:{type:`size`,property:`left`},bottom:{type:`size`,property:`bottom`},right:{type:`size`,property:`right`},inset:{type:`size`,property:`inset`},display:{type:`identity`,property:`display`},flex:{type:`identity`,property:`flex`}};function Jr(e,t){let n=vn({color:e,theme:t});return n.color===`dimmed`?`var(--mantine-color-dimmed)`:n.color===`bright`?`var(--mantine-color-bright)`:n.variable?`var(${n.variable})`:n.color}function Yr(e,t){let n=vn({color:e,theme:t});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:Jr(e,t)}function Xr(e,t){if(typeof e==`number`)return H(e);if(typeof e==`string`){let[n,r,...i]=e.split(` `).filter(e=>e.trim()!==``),a=`${H(n)}`;return r&&(a+=` ${r}`),i.length>0&&(a+=` ${Jr(i.join(` `),t)}`),a.trim()}return e}var Zr={text:`var(--mantine-font-family)`,mono:`var(--mantine-font-family-monospace)`,monospace:`var(--mantine-font-family-monospace)`,heading:`var(--mantine-font-family-headings)`,headings:`var(--mantine-font-family-headings)`};function Qr(e){return typeof e==`string`&&e in Zr?Zr[e]:e}var $r=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function ei(e,t){return typeof e==`string`&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e==`string`&&$r.includes(e)?`var(--mantine-${e}-font-size)`:typeof e==`number`||typeof e==`string`?H(e):e}function ti(e){return e}var ni=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function ri(e,t){return typeof e==`string`&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e==`string`&&ni.includes(e)?`var(--mantine-${e}-line-height)`:e}function ii(e,t){return typeof e==`string`&&e in t.radius?`var(--mantine-radius-${e})`:typeof e==`number`||typeof e==`string`?H(e):e}function ai(e){return typeof e==`number`?H(e):e}function oi(e,t){if(typeof e==`number`)return H(e);if(typeof e==`string`){let n=e.replace(`-`,``);if(!(n in t.spacing))return H(e);let r=`--mantine-spacing-${n}`;return e.startsWith(`-`)?`calc(var(${r}) * -1)`:`var(${r})`}return e}var si={color:Jr,textColor:Yr,fontSize:ei,spacing:oi,radius:ii,identity:ti,size:ai,lineHeight:ri,fontFamily:Qr,border:Xr};function ci(e){return e.replace(`(min-width: `,``).replace(`em)`,``)}function li({media:e,...t}){let n=Object.keys(e).sort((e,t)=>Number(ci(e))-Number(ci(t))).map(t=>({query:t,styles:e[t]}));return{...t,media:n}}function ui(e){if(typeof e!=`object`||!e)return!1;let t=Object.keys(e);return t.length!==1||t[0]!==`base`}function di(e){return typeof e==`object`&&e?`base`in e?e.base:void 0:e}function fi(e){return typeof e==`object`&&e?dt(e).filter(e=>e!==`base`):[]}function pi(e,t){return typeof e==`object`&&e&&t in e?e[t]:e}function mi({styleProps:e,data:t,theme:n}){return li(dt(e).reduce((r,i)=>{if(i===`hiddenFrom`||i===`visibleFrom`||i===`sx`)return r;let a=t[i],o=Array.isArray(a.property)?a.property:[a.property],s=di(e[i]);if(!ui(e[i]))return o.forEach(e=>{r.inlineStyles[e]=si[a.type](s,n)}),r;r.hasResponsiveStyles=!0;let c=fi(e[i]);return o.forEach(t=>{s!=null&&(r.styles[t]=si[a.type](s,n)),c.forEach(o=>{let s=`(min-width: ${n.breakpoints[o]})`;r.media[s]={...r.media[s],[t]:si[a.type](pi(e[i],o),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function hi(){return`__m__-${(0,h.useId)().replace(/[:«»]/g,``)}`}function gi(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...gi(n,t)}),{}):typeof e==`function`?e(t):e??{}}function _i(e){return e}var vi=_i;function yi(e){return e}function G(e){let t=e;return t.extend=yi,t.withProps=e=>{let n=n=>(0,U.jsx)(t,{...e,...n});return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t}function bi(e){return G(e)}function xi(e){let t=e;return t.withProps=e=>{let n=n=>(0,U.jsx)(t,{...e,...n});return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t.extend=yi,t}function Si(e){return`data-${(e.startsWith(`data-`)?e.slice(5):e).replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase()}`}function Ci(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r===void 0||r===``||r===!1||r===null||(t[Si(n)]=e[n]),t},{})}function wi(e){return e?typeof e==`string`?{[Si(e)]:!0}:Array.isArray(e)?[...e].reduce((e,t)=>({...e,...wi(t)}),{}):Ci(e):null}function Ti(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...Ti(n,t)}),{}):typeof e==`function`?e(t):e??{}}function Ei({theme:e,style:t,vars:n,styleProps:r}){let i=Ti(t,e),a=Ti(n,e);return{...i,...a,...r}}function Di({component:e,style:t,__vars:n,className:r,variant:i,mod:a,size:o,hiddenFrom:s,visibleFrom:c,lightHidden:l,darkHidden:u,renderRoot:d,__size:f,ref:p,...m}){let h=sr(),g=e||`div`,{styleProps:_,rest:v}=Kr(m),y=Bn()?.()?.(_.sx),b=hi(),x=mi({styleProps:_,theme:h,data:qr}),S=Un(),C=S&&x.hasResponsiveStyles?Gr(x.styles,x.media):b,w={ref:p,style:Ei({theme:h,style:t,vars:n,styleProps:x.inlineStyles}),className:en(r,y,{[C]:x.hasResponsiveStyles,"mantine-light-hidden":l,"mantine-dark-hidden":u,[`mantine-hidden-from-${s}`]:s,[`mantine-visible-from-${c}`]:c}),"data-variant":i,"data-size":xt(o)?void 0:o||void 0,size:f,...wi(a),...v};return(0,U.jsxs)(U.Fragment,{children:[x.hasResponsiveStyles&&(0,U.jsx)(Ur,{selector:`.${C}`,styles:x.styles,media:x.media,deduplicate:S}),typeof d==`function`?d(w):(0,U.jsx)(g,{...w})]})}Di.displayName=`@mantine/core/Box`;var K=vi(Di),Oi=(0,h.createContext)({dir:`ltr`,toggleDirection:()=>{},setDirection:()=>{}});function ki(){return(0,h.use)(Oi)}var Ai={transitionDuration:200,transitionTimingFunction:`ease`,animateOpacity:!0,orientation:`vertical`,keepMounted:!0,keepMountedMode:`activity`},ji=G(e=>{let{children:t,expanded:n,transitionDuration:r,transitionTimingFunction:i,style:a,onTransitionEnd:o,onTransitionStart:s,animateOpacity:c,keepMounted:l,keepMountedMode:u,ref:d,orientation:f,...p}=W(`Collapse`,Ai,e),m=Hn(),g=sr(),_=oe(),v=g.respectReducedMotion&&_?0:r,y=(f===`horizontal`?Ie:Ne)({expanded:n,transitionDuration:v,transitionTimingFunction:i,onTransitionEnd:o,onTransitionStart:s,keepMounted:!1});if(v===0)return l===!0&&(u===`display-none`||m!==`test`)?u===`display-none`?(0,U.jsx)(K,{...p,style:{...gi(a,g),...n?{}:{display:`none`}},ref:d,children:t}):(0,U.jsx)(h.Activity,{mode:n?`visible`:`hidden`,children:(0,U.jsx)(K,{...p,style:a,ref:d,children:t})}):n?(0,U.jsx)(K,{...p,style:a,ref:d,children:t}):null;let b=y.state===`exited`,x;return x=l===!1?b?null:t:l===!0?u===`display-none`?t:(0,U.jsx)(h.Activity,{mode:b?`hidden`:`visible`,children:t}):t,(0,U.jsx)(K,{...p,...y.getCollapseProps({style:{opacity:n||!c?1:0,transition:c?`opacity ${v}ms ${i}`:`none`,...gi(a,g),...l&&u===`display-none`&&b?{display:`none`}:{}},ref:d}),children:x})});ji.displayName=`@mantine/core/Collapse`;var[Mi,Ni]=Ct(`ScrollArea.Root component was not found in tree`);function Pi(e,t){let n=(0,h.useEffectEvent)(t);C(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e])}function Fi(e){let{style:t,...n}=e,r=Ni(),[i,a]=(0,h.useState)(0),[o,s]=(0,h.useState)(0),c=!!(i&&o);return Pi(r.scrollbarX,()=>{let e=r.scrollbarX?.offsetHeight||0;r.onCornerHeightChange(e),s(e)}),Pi(r.scrollbarY,()=>{let e=r.scrollbarY?.offsetWidth||0;r.onCornerWidthChange(e),a(e)}),c?(0,U.jsx)(`div`,{...n,style:{...t,width:i,height:o}}):null}function Ii(e){let t=Ni(),n=!!(t.scrollbarX&&t.scrollbarY);return t.type!==`scroll`&&n?(0,U.jsx)(Fi,{...e}):null}var Li={scrollHideDelay:1e3,type:`hover`};function Ri(e){let{type:t,scrollHideDelay:n,scrollbars:r,getStyles:i,ref:a,...o}=W(`ScrollAreaRoot`,Li,e),[s,c]=(0,h.useState)(null),[l,u]=(0,h.useState)(null),[d,f]=(0,h.useState)(null),[p,m]=(0,h.useState)(null),[g,_]=(0,h.useState)(null),[v,y]=(0,h.useState)(0),[b,x]=(0,h.useState)(0),[S,C]=(0,h.useState)(!1),[w,T]=(0,h.useState)(!1),E=ie(a,c);return(0,U.jsx)(Mi,{value:{type:t,scrollHideDelay:n,scrollArea:s,viewport:l,onViewportChange:u,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:m,scrollbarXEnabled:S,onScrollbarXEnabledChange:C,scrollbarY:g,onScrollbarYChange:_,scrollbarYEnabled:w,onScrollbarYEnabledChange:T,onCornerWidthChange:y,onCornerHeightChange:x,getStyles:i},children:(0,U.jsx)(K,{...o,ref:E,__vars:{"--sa-corner-width":r===`xy`?`${v}px`:`0px`,"--sa-corner-height":r===`xy`?`${b}px`:`0px`}})})}Ri.displayName=`@mantine/core/ScrollAreaRoot`;function zi(e,t){let n=e/t;return Number.isNaN(n)?0:n}function Bi(e){let t=zi(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function Vi(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Hi(e,[t,n]){return Math.min(n,Math.max(t,e))}function Ui(e,t,n=`ltr`){let r=Bi(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,c=Hi(e,n===`ltr`?[0,o]:[o*-1,0]);return Vi([0,o],[0,s])(c)}function Wi(e,t,n,r=`ltr`){let i=Bi(n),a=i/2,o=t||a,s=i-o,c=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r===`ltr`?[0,u]:[u*-1,0];return Vi([c,l],d)(e)}function Gi(e,t){return e>0&&e{e?.(r),n!==!1&&r.defaultPrevented||t?.(r)}}var[Ji,Yi]=Ct(`ScrollAreaScrollbar was not found in tree`);function Xi(e){let{sizes:t,hasThumb:n,onThumbChange:r,onThumbPointerUp:i,onThumbPointerDown:a,onThumbPositionChange:o,onDragScroll:s,onWheelScroll:c,onResize:l,ref:u,...d}=e,f=Ni(),[p,m]=(0,h.useState)(null),v=ie(u,m),y=(0,h.useRef)(null),b=(0,h.useRef)(``),x=t.content-t.viewport,S=(0,h.useEffectEvent)(e=>c(e,x)),C=g(o),w=_(l,10),T=e=>{if(y.current){let t=e.clientX-y.current.left,n=e.clientY-y.current.top;s({x:t,y:n})}};return(0,h.useEffect)(()=>{if(!p)return;let e=e=>S(e);return p.addEventListener(`wheel`,e,{passive:!1}),()=>p.removeEventListener(`wheel`,e)},[p]),(0,h.useEffect)(C,[t,C]),Pi(p,w),Pi(f.content,w),(0,U.jsx)(Ji,{value:{scrollbar:p,hasThumb:n,onThumbChange:g(r),onThumbPointerUp:g(i),onThumbPositionChange:C,onThumbPointerDown:g(a)},children:(0,U.jsx)(`div`,{...d,ref:v,"data-mantine-scrollbar":!0,style:{position:`absolute`,...d.style},onPointerDown:qi(e.onPointerDown,e=>{e.preventDefault(),e.button===0&&(e.target.setPointerCapture(e.pointerId),y.current=p.getBoundingClientRect(),b.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect=`none`,T(e))}),onPointerMove:qi(e.onPointerMove,T),onPointerUp:qi(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(e.preventDefault(),t.releasePointerCapture(e.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=b.current,y.current=null}})})}var Zi=e=>{let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,o=Ni(),[s,c]=(0,h.useState)(),l=(0,h.useRef)(null),u=ie(i,l,o.onScrollbarXChange);return(0,h.useEffect)(()=>{l.current&&c(getComputedStyle(l.current))},[l]),(0,U.jsx)(Xi,{"data-orientation":`horizontal`,...a,ref:u,sizes:t,style:{...r,"--sa-thumb-width":`${Bi(t)}px`},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),Gi(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&s&&n({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:Ki(s.paddingLeft),paddingEnd:Ki(s.paddingRight)}})}})};Zi.displayName=`@mantine/core/ScrollAreaScrollbarX`;function Qi(e){let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,o=Ni(),[s,c]=(0,h.useState)(),l=(0,h.useRef)(null),u=ie(i,l,o.onScrollbarYChange);return(0,h.useEffect)(()=>{l.current&&c(window.getComputedStyle(l.current))},[]),(0,U.jsx)(Xi,{...a,"data-orientation":`vertical`,ref:u,sizes:t,style:{"--sa-thumb-height":`${Bi(t)}px`,...r},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),Gi(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&s&&n({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:Ki(s.paddingTop),paddingEnd:Ki(s.paddingBottom)}})}})}Qi.displayName=`@mantine/core/ScrollAreaScrollbarY`;function $i(e){let{orientation:t=`vertical`,...n}=e,{dir:r}=ki(),i=Ni(),a=(0,h.useRef)(null),o=(0,h.useRef)(0),[s,c]=(0,h.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=zi(s.viewport,s.content),u={...n,sizes:s,onSizesChange:c,hasThumb:l>0&&l<1,onThumbChange:e=>{a.current=e},onThumbPointerUp:()=>{o.current=0},onThumbPointerDown:e=>{o.current=e}},d=(e,t)=>Wi(e,o.current,s,t);return t===`horizontal`?(0,U.jsx)(Zi,{...u,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollLeft,t=Ui(e,s,r);a.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,r))}}):t===`vertical`?(0,U.jsx)(Qi,{...u,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollTop,t=Ui(e,s);s.scrollbar.size===0?a.current.style.setProperty(`--thumb-opacity`,`0`):a.current.style.setProperty(`--thumb-opacity`,`1`),a.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}}):null}$i.displayName=`@mantine/core/ScrollAreaScrollbarVisible`;function ea(e){let t=Ni(),{forceMount:n,...r}=e,[i,a]=(0,h.useState)(!1),o=e.orientation===`horizontal`,s=_(()=>{if(t.viewport){let e=t.viewport.offsetWidth{let{scrollArea:e}=r,t=0;if(e){let n=()=>{window.clearTimeout(t),a(!0)},i=()=>{t=window.setTimeout(()=>a(!1),r.scrollHideDelay)};return e.addEventListener(`pointerenter`,n),e.addEventListener(`pointerleave`,i),()=>{window.clearTimeout(t),e.removeEventListener(`pointerenter`,n),e.removeEventListener(`pointerleave`,i)}}},[r.scrollArea,r.scrollHideDelay]),t||i?(0,U.jsx)(ea,{"data-state":i?`visible`:`hidden`,...n}):null}ta.displayName=`@mantine/core/ScrollAreaScrollbarHover`;function na(e){let{forceMount:t,...n}=e,r=Ni(),i=e.orientation===`horizontal`,[a,o]=(0,h.useState)(`hidden`),s=_(()=>o(`idle`),100);return(0,h.useEffect)(()=>{if(a===`idle`){let e=window.setTimeout(()=>o(`hidden`),r.scrollHideDelay);return()=>window.clearTimeout(e)}},[a,r.scrollHideDelay]),(0,h.useEffect)(()=>{let{viewport:e}=r,t=i?`scrollLeft`:`scrollTop`;if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(o(`scrolling`),s()),n=r};return e.addEventListener(`scroll`,r),()=>e.removeEventListener(`scroll`,r)}},[r.viewport,i,s]),t||a!==`hidden`?(0,U.jsx)($i,{"data-state":a===`hidden`?`hidden`:`visible`,...n,onPointerEnter:qi(e.onPointerEnter,()=>o(`interacting`)),onPointerLeave:qi(e.onPointerLeave,()=>o(`idle`))}):null}function ra(e){let{forceMount:t,...n}=e,r=Ni(),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=r,o=e.orientation===`horizontal`;return(0,h.useEffect)(()=>(o?i(!0):a(!0),()=>{o?i(!1):a(!1)}),[o,i,a]),r.type===`hover`?(0,U.jsx)(ta,{...n,forceMount:t}):r.type===`scroll`?(0,U.jsx)(na,{...n,forceMount:t}):r.type===`auto`?(0,U.jsx)(ea,{...n,forceMount:t}):r.type===`always`?(0,U.jsx)($i,{...n}):null}ra.displayName=`@mantine/core/ScrollAreaScrollbar`;function ia(e,t=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(r)}function aa(e){let{style:t,ref:n,...r}=e,i=Ni(),a=Yi(),{onThumbPositionChange:o}=a,s=ie(n,a.onThumbChange),c=(0,h.useRef)(void 0),l=_(()=>{c.current&&=(c.current(),void 0)},100);return(0,h.useEffect)(()=>{let{viewport:e}=i;if(e){let t=()=>{if(l(),!c.current){let t=ia(e,o);c.current=t,o()}};return o(),e.addEventListener(`scroll`,t),()=>e.removeEventListener(`scroll`,t)}},[i.viewport,l,o]),(0,U.jsx)(`div`,{"data-state":a.hasThumb?`visible`:`hidden`,...r,ref:s,style:{width:`var(--sa-thumb-width)`,height:`var(--sa-thumb-height)`,...t},onPointerDownCapture:qi(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;a.onThumbPointerDown({x:n,y:r})}),onPointerUp:qi(e.onPointerUp,a.onThumbPointerUp)})}aa.displayName=`@mantine/core/ScrollAreaThumb`;function oa(e){let{forceMount:t,...n}=e,r=Yi();return t||r.hasThumb?(0,U.jsx)(aa,{...n}):null}oa.displayName=`@mantine/core/ScrollAreaThumb`;function sa({children:e,style:t,ref:n,onWheel:r,...i}){let a=Ni(),o=ie(n,a.onViewportChange),s=e=>{if(r?.(e),a.scrollbarXEnabled&&a.viewport&&e.shiftKey){let{scrollTop:t,scrollHeight:n,clientHeight:r,scrollWidth:i,clientWidth:o}=a.viewport,s=t<1,c=t>=n-r-1;i>o&&(s||c)&&e.stopPropagation()}};return(0,U.jsx)(K,{...i,ref:o,onWheel:s,"data-scrollarea-viewport":!0,style:{overflowX:a.scrollbarXEnabled?`scroll`:`hidden`,overflowY:a.scrollbarYEnabled?`scroll`:`hidden`,...t},children:(0,U.jsx)(`div`,{...a.getStyles(`content`),ref:a.onContentChange,children:e})})}sa.displayName=`@mantine/core/ScrollAreaViewport`;var ca={root:`m_d57069b5`,content:`m_b1336c6`,viewport:`m_c0783ff9`,viewportInner:`m_f8f631dd`,scrollbar:`m_c44ba933`,thumb:`m_d8b5e363`,corner:`m_21657268`};function la(){return typeof window<`u`}function ua(e){return pa(e)?(e.nodeName||``).toLowerCase():`#document`}function da(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function fa(e){return((pa(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function pa(e){return la()?e instanceof Node||e instanceof da(e).Node:!1}function ma(e){return la()?e instanceof Element||e instanceof da(e).Element:!1}function ha(e){return la()?e instanceof HTMLElement||e instanceof da(e).HTMLElement:!1}function ga(e){return!la()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof da(e).ShadowRoot}function _a(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Oa(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function va(e){return/^(table|td|th)$/.test(ua(e))}function ya(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var ba=/transform|translate|scale|rotate|perspective|filter/,xa=/paint|layout|strict|content/,Sa=e=>!!e&&e!==`none`,Ca;function wa(e){let t=ma(e)?Oa(e):e;return Sa(t.transform)||Sa(t.translate)||Sa(t.scale)||Sa(t.rotate)||Sa(t.perspective)||!Ea()&&(Sa(t.backdropFilter)||Sa(t.filter))||ba.test(t.willChange||``)||xa.test(t.contain||``)}function Ta(e){let t=Aa(e);for(;ha(t)&&!Da(t);){if(wa(t))return t;if(ya(t))return null;t=Aa(t)}return null}function Ea(){return Ca??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Ca}function Da(e){return/^(html|body|#document)$/.test(ua(e))}function Oa(e){return da(e).getComputedStyle(e)}function ka(e){return ma(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Aa(e){if(ua(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ga(e)&&e.host||fa(e);return ga(t)?t.host:t}function ja(e){let t=Aa(e);return Da(t)?(e.ownerDocument||e).body:ha(t)&&_a(t)?t:ja(t)}function Ma(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=ja(e),i=r===e.ownerDocument?.body,a=da(r);if(i){let e=Na(a);return t.concat(a,a.visualViewport||[],_a(r)?r:[],e&&n?Ma(e):[])}return t.concat(r,Ma(r,[],n))}function Na(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var Pa=[`top`,`right`,`bottom`,`left`],Fa=Math.min,Ia=Math.max,La=Math.round,Ra=Math.floor,za=e=>({x:e,y:e}),Ba={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Va(e,t,n){return Ia(e,Fa(t,n))}function Ha(e,t){return typeof e==`function`?e(t):e}function Ua(e){return e.split(`-`)[0]}function Wa(e){return e.split(`-`)[1]}function Ga(e){return e===`x`?`y`:`x`}function Ka(e){return e===`y`?`height`:`width`}function qa(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Ja(e){return Ga(qa(e))}function Ya(e,t,n){n===void 0&&(n=!1);let r=Wa(e),i=Ja(e),a=Ka(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=io(o)),[o,io(o)]}function Xa(e){let t=io(e);return[Za(e),t,Za(t)]}function Za(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Qa=[`left`,`right`],$a=[`right`,`left`],eo=[`top`,`bottom`],to=[`bottom`,`top`];function no(e,t,n){switch(e){case`top`:case`bottom`:return n?t?$a:Qa:t?Qa:$a;case`left`:case`right`:return t?eo:to;default:return[]}}function ro(e,t,n,r){let i=Wa(e),a=no(Ua(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Za)))),a}function io(e){let t=Ua(e);return Ba[t]+e.slice(t.length)}function ao(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function oo(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:ao(e)}function so(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function co(){let e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function lo(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+`/`+n}).join(` `):navigator.userAgent}function uo(){return/apple/i.test(navigator.vendor)}function fo(){return co().toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints}function po(){return lo().includes(`jsdom/`)}var mo=`data-floating-ui-focusable`,ho=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`;function go(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function _o(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&ga(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function vo(e){return`composedPath`in e?e.composedPath()[0]:e.target}function yo(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function bo(e){return e.matches(`html,body`)}function xo(e){return e?.ownerDocument||document}function So(e){return ha(e)&&e.matches(ho)}function Co(e){if(!e||po())return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function wo(e){return e?e.hasAttribute(mo)?e:e.querySelector(`[`+mo+`]`)||e:null}function To(e,t,n){return n===void 0&&(n=!0),e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...To(e,t.id,n)])}function Eo(e){return`nativeEvent`in e}function Do(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}var Oo=typeof document<`u`?h.useLayoutEffect:function(){},ko={...h};function Ao(e){let t=h.useRef(e);return Oo(()=>{t.current=e}),t}var jo=ko.useInsertionEffect||(e=>e());function Mo(e){let t=h.useRef(()=>{});return jo(()=>{t.current=e}),h.useCallback(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function No(e,t,n){let{reference:r,floating:i}=e,a=qa(t),o=Ja(t),s=Ka(o),c=Ua(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=Wa(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Po(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Ha(t,e),p=oo(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=so(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=so(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Fo=50,Io=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Po},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=No(l,r,c),f=r,p=0,m={};for(let n=0;n({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Ha(e,t)||{};if(l==null)return{};let d=oo(u),f={x:n,y:r},p=Ja(i),m=Ka(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;C&&await(o.isElement==null?void 0:o.isElement(S))||(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Fa(d[_],T),D=Fa(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=Va(E,k,O),j=!c.arrow&&Wa(i)!=null&&k!==A&&a.reference[m]/2-(ke<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===qa(t)||T.every(e=>qa(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=qa(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function zo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Bo(e){return Pa.some(t=>e[t]>=0)}var Vo=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Ha(e,t);switch(i){case`referenceHidden`:{let e=zo(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Bo(e)}}}case`escaped`:{let e=zo(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Bo(e)}}}default:return{}}}}};function Ho(e){let t=Fa(...e.map(e=>e.left)),n=Fa(...e.map(e=>e.top)),r=Ia(...e.map(e=>e.right)),i=Ia(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function Uo(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;er.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>so(Ho(e)))}var Wo=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:a,strategy:o}=t,{padding:s=2,x:c,y:l}=Ha(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]);if(!u.length)return{};let d=Uo(u),f=so(Ho(u)),p=oo(s);function m(){if(d.length===2&&(d[0].left>d[1].right||d[1].left>d[0].right)&&c!=null&&l!=null)return d.find(e=>c>e.left-p.left&&ce.top-p.top&&l=2){if(qa(n)===`y`){let e=d[0],t=d[d.length-1],r=Ua(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left;return so({x:o,y:i,width:(r?e.right:t.right)-o,height:a-i})}let e=Ua(n)===`left`,t=Ia(...d.map(e=>e.right)),r=Fa(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===r:n.right===t),a=i[0].top,o=i[i.length-1].bottom;return so({x:r,y:a,width:t-r,height:o-a})}return f}let h=await a.getElementRects({reference:{getBoundingClientRect:m},floating:r.floating,strategy:o});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},Go=new Set([`left`,`top`]);async function Ko(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Ua(n),s=Wa(n),c=qa(n)===`y`,l=Go.has(o)?-1:1,u=a&&c?-1:1,d=Ha(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var qo=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Ko(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Jo=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Ha(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=qa(i),p=Ga(f),m=u[p],h=u[f],g=(e,t)=>Va(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Yo=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Ha(e,t),u={x:n,y:r},d=qa(i),f=Ga(d),p=u[f],m=u[d],h=Ha(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;pn&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Go.has(Ua(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);mr&&(m=r)}return{[f]:p,[d]:m}}}},Xo=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=Ha(e,t),c=await i.detectOverflow(t,s),l=Ua(n),u=Wa(n),d=qa(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Fa(p-c[m],g),y=Fa(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*Ia(c.left,c.right):S=p-2*Ia(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Zo(e){let t=Oa(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ha(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=La(n)!==a||La(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Qo(e){return ma(e)?e:e.contextElement}function $o(e){let t=Qo(e);if(!ha(t))return za(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Zo(t),o=(a?La(n.width):n.width)/r,s=(a?La(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var es=za(0);function ts(e){let t=da(e);return!Ea()||!t.visualViewport?es:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ns(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===da(e)}function rs(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Qo(e),o=za(1);t&&(r?ma(r)&&(o=$o(r)):o=$o(e));let s=ns(a,n,r)?ts(a):za(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=da(a),t=ma(r)?da(r):r,n=e,i=Na(n);for(;i&&t!==n;){let e=$o(i),t=i.getBoundingClientRect(),r=Oa(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=da(i),i=Na(n)}}return so({width:u,height:d,x:c,y:l})}function is(e,t){let n=ka(e).scrollLeft;return t?t.left+n:rs(fa(e)).left+n}function as(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-is(e,n),y:n.top+t.scrollTop}}function os(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=fa(r),s=t?ya(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=za(1),u=za(0),d=ha(r);if((d||!a)&&((ua(r)!==`body`||_a(o))&&(c=ka(r)),d)){let e=rs(r);l=$o(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?as(o,c):za(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function ss(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function cs(e){let t=ka(e),n=e.ownerDocument.body,r=Ia(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Ia(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+is(e),o=-t.scrollTop;return Oa(n).direction===`rtl`&&(a+=Ia(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var ls=25;function us(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=da(e),a=fa(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!Ea()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(is(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=ls&&(s-=o)}return{width:s,height:c,x:l,y:u}}function ds(e,t){let n=rs(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=$o(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function fs(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=us(e,n,t);else if(t===`document`)r=cs(fa(e));else if(ma(t))r=ds(t,n);else{let n=ts(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return so(r)}function ps(e,t){let n=t.get(e);if(n)return n;let r=Ma(e,[],!1).filter(e=>ma(e)&&ua(e)!==`body`),i=null,a=Oa(e).position===`fixed`,o=a?Aa(e):e;for(;ma(o)&&!Da(o);){let e=Oa(o),t=wa(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Aa(o)}return t.set(e,r),r}function ms(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?ya(t)?[]:ps(t,this._c):[].concat(n),r],o=fs(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=da(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Ts(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Qo(e),u=i||a?[...l?Ma(l):[],...t?Ma(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?ws(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?rs(e):null;c&&g();function g(){let t=rs(e);h&&!Cs(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Es=qo,Ds=Jo,Os=Ro,ks=Xo,As=Vo,js=Lo,Ms=Wo,Ns=Yo,Ps=(e,t,n)=>{let r=new Map,i=n??{},a={...Ss,...i.platform,_c:r};return Io(e,t,{...i,platform:a})},Fs=typeof document<`u`?h.useLayoutEffect:function(){};function Is(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Is(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Is(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Ls(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Rs(e,t){let n=Ls(e);return Math.round(t*n)/n}function zs(e){let t=h.useRef(e);return Fs(()=>{t.current=e}),t}function Bs(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=h.useState(r);Is(f,r)||p(r);let[m,g]=h.useState(null),[_,v]=h.useState(null),y=h.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),b=h.useCallback(e=>{e!==w.current&&(w.current=e,v(e))},[]),x=a||m,S=o||_,C=h.useRef(null),w=h.useRef(null),T=h.useRef(u),E=c!=null,D=zs(c),O=zs(i),k=zs(l),A=h.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),Ps(C.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!Is(T.current,t)&&(T.current=t,ke.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);Fs(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let j=h.useRef(!1);Fs(()=>(j.current=!0,()=>{j.current=!1}),[]),Fs(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(D.current)return D.current(x,S,A);A()}},[x,S,A,D,E]);let M=h.useMemo(()=>({reference:C,floating:w,setReference:y,setFloating:b}),[y,b]),N=h.useMemo(()=>({reference:x,floating:S}),[x,S]),P=h.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=Rs(N.floating,u.x),r=Rs(N.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Ls(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,u.x,u.y]);return h.useMemo(()=>({...u,update:A,refs:M,elements:N,floatingStyles:P}),[u,A,M,N,P])}var Vs=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:js({element:r.current,padding:i}).fn(n):r?js({element:r,padding:i}).fn(n):{}}}},Hs=(e,t)=>{let n=Es(e);return{name:n.name,fn:n.fn,options:[e,t]}},Us=(e,t)=>{let n=Ds(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ws=(e,t)=>({fn:Ns(e).fn,options:[e,t]}),Gs=(e,t)=>{let n=Os(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ks=(e,t)=>{let n=ks(e);return{name:n.name,fn:n.fn,options:[e,t]}},qs=(e,t)=>{let n=As(e);return{name:n.name,fn:n.fn,options:[e,t]}},Js=(e,t)=>{let n=Ms(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ys=(e,t)=>{let n=Vs(e);return{name:n.name,fn:n.fn,options:[e,t]}};function Xs(e){let t=h.useRef(void 0),n=h.useCallback(t=>{let n=e.map(e=>{if(e!=null){if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>e?.())}},e);return h.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var Zs=`data-floating-ui-focusable`,Qs=`active`,$s=`selected`,ec=`ArrowLeft`,tc=`ArrowRight`,nc=`ArrowUp`,rc=`ArrowDown`,ic=[ec,tc],ac=[nc,rc];[...ic,...ac];var oc={...h},sc=!1,cc=0,lc=()=>`floating-ui-`+Math.random().toString(36).slice(2,6)+cc++;function uc(){let[e,t]=h.useState(()=>sc?lc():void 0);return Oo(()=>{e??t(lc())},[]),h.useEffect(()=>{sc=!0},[]),e}var dc=oc.useId||uc;function fc(){let e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}var pc=h.createContext(null),mc=h.createContext(null),hc=()=>h.useContext(pc)?.id||null,gc=()=>h.useContext(mc);function _c(e){return`data-floating-ui-`+e}function vc(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}var yc=_c(`safe-polygon`);function bc(e,t,n){if(n&&!Do(n))return 0;if(typeof e==`number`)return e;if(typeof e==`function`){let n=e();return typeof n==`number`?n:n?.[t]}return e?.[t]}function xc(e){return typeof e==`function`?e():e}function Sc(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,dataRef:i,events:a,elements:o}=e,{enabled:s=!0,delay:c=0,handleClose:l=null,mouseOnly:u=!1,restMs:d=0,move:f=!0}=t,p=gc(),m=hc(),g=Ao(l),_=Ao(c),v=Ao(n),y=Ao(d),b=h.useRef(),x=h.useRef(-1),S=h.useRef(),C=h.useRef(-1),w=h.useRef(!0),T=h.useRef(!1),E=h.useRef(()=>{}),D=h.useRef(!1),O=Mo(()=>{let e=i.current.openEvent?.type;return e?.includes(`mouse`)&&e!==`mousedown`});h.useEffect(()=>{if(!s)return;function e(e){let{open:t}=e;t||(vc(x),vc(C),w.current=!0,D.current=!1)}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[s,a]),h.useEffect(()=>{if(!s||!g.current||!n)return;function e(e){O()&&r(!1,e,`hover`)}let t=xo(o.floating).documentElement;return t.addEventListener(`mouseleave`,e),()=>{t.removeEventListener(`mouseleave`,e)}},[o.floating,n,r,s,g,O]);let k=h.useCallback(function(e,t,n){t===void 0&&(t=!0),n===void 0&&(n=`hover`);let i=bc(_.current,`close`,b.current);i&&!S.current?(vc(x),x.current=window.setTimeout(()=>r(!1,e,n),i)):t&&(vc(x),r(!1,e,n))},[_,r]),A=Mo(()=>{E.current(),S.current=void 0}),j=Mo(()=>{if(T.current){let e=xo(o.floating).body;e.style.pointerEvents=``,e.removeAttribute(yc),T.current=!1}}),M=Mo(()=>i.current.openEvent?[`click`,`mousedown`].includes(i.current.openEvent.type):!1);h.useEffect(()=>{if(!s)return;function e(e){if(vc(x),w.current=!1,u&&!Do(b.current)||xc(y.current)>0&&!bc(_.current,`open`))return;let t=bc(_.current,`open`,b.current);t?x.current=window.setTimeout(()=>{v.current||r(!0,e,`hover`)},t):n||r(!0,e,`hover`)}function t(e){if(M()){j();return}E.current();let t=xo(o.floating);if(vc(C),D.current=!1,g.current&&i.current.floatingContext){n||vc(x),S.current=g.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){j(),A(),M()||k(e,!0,`safe-polygon`)}});let r=S.current;t.addEventListener(`mousemove`,r),E.current=()=>{t.removeEventListener(`mousemove`,r)}}else b.current===`touch`&&_o(o.floating,e.relatedTarget)||k(e)}function a(e){M()||i.current.floatingContext&&(g.current==null||g.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){j(),A(),M()||k(e)}})(e))}function c(){vc(x)}function l(e){M()||k(e,!1)}if(ma(o.domReference)){let r=o.domReference,i=o.floating;return n&&r.addEventListener(`mouseleave`,a),f&&r.addEventListener(`mousemove`,e,{once:!0}),r.addEventListener(`mouseenter`,e),r.addEventListener(`mouseleave`,t),i&&(i.addEventListener(`mouseleave`,a),i.addEventListener(`mouseenter`,c),i.addEventListener(`mouseleave`,l)),()=>{n&&r.removeEventListener(`mouseleave`,a),f&&r.removeEventListener(`mousemove`,e),r.removeEventListener(`mouseenter`,e),r.removeEventListener(`mouseleave`,t),i&&(i.removeEventListener(`mouseleave`,a),i.removeEventListener(`mouseenter`,c),i.removeEventListener(`mouseleave`,l))}}},[o,s,e,u,f,k,A,j,r,n,v,p,_,g,i,M,y]),Oo(()=>{var e;if(s&&n&&(e=g.current)!=null&&(e=e.__options)!=null&&e.blockPointerEvents&&O()){T.current=!0;let e=o.floating;if(ma(o.domReference)&&e){var t;let n=xo(o.floating).body;n.setAttribute(yc,``);let r=o.domReference,i=p==null||(t=p.nodesRef.current.find(e=>e.id===m))==null||(t=t.context)==null?void 0:t.elements.floating;return i&&(i.style.pointerEvents=``),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,e.style.pointerEvents=`auto`,()=>{n.style.pointerEvents=``,r.style.pointerEvents=``,e.style.pointerEvents=``}}}},[s,n,m,o,p,g,O]),Oo(()=>{n||(b.current=void 0,D.current=!1,A(),j())},[n,A,j]),h.useEffect(()=>()=>{A(),vc(x),vc(C),j()},[s,o.domReference,A,j]);let N=h.useMemo(()=>{function e(e){b.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function i(){!w.current&&!v.current&&r(!0,t,`hover`)}u&&!Do(b.current)||n||xc(y.current)===0||D.current&&e.movementX**2+e.movementY**2<2||(vc(C),b.current===`touch`?i():(D.current=!0,C.current=window.setTimeout(i,xc(y.current))))}}},[u,r,n,v,y]);return h.useMemo(()=>s?{reference:N}:{},[s,N])}var Cc=()=>{},wc=h.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:Cc,setState:Cc,isInstantPhase:!1}),Tc=()=>h.useContext(wc);function Ec(e){let{children:t,delay:n,timeoutMs:r=0}=e,[i,a]=h.useReducer((e,t)=>({...e,...t}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),o=h.useRef(null),s=h.useCallback(e=>{a({currentId:e})},[]);return Oo(()=>{i.currentId?o.current===null?o.current=i.currentId:i.isInstantPhase||a({isInstantPhase:!0}):(i.isInstantPhase&&a({isInstantPhase:!1}),o.current=null)},[i.currentId,i.isInstantPhase]),(0,U.jsx)(wc.Provider,{value:h.useMemo(()=>({...i,setState:a,setCurrentId:s}),[i,s]),children:t})}function Dc(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,floatingId:i}=e,{id:a,enabled:o=!0}=t,s=a??i,c=Tc(),{currentId:l,setCurrentId:u,initialDelay:d,setState:f,timeoutMs:p}=c;return Oo(()=>{o&&l&&(f({delay:{open:1,close:bc(d,`close`)}}),l!==s&&r(!1))},[o,s,r,f,l,d]),Oo(()=>{function e(){r(!1),f({delay:d,currentId:null})}if(o&&l&&!n&&l===s){if(p){let t=window.setTimeout(e,p);return()=>{clearTimeout(t)}}e()}},[o,n,f,l,s,r,d,p]),Oo(()=>{o&&u!==Cc&&n&&u(s)},[o,n,u,s]),c}function Oc(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&ga(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function kc(e){return`composedPath`in e?e.composedPath()[0]:e.target}var Ac={pointerdown:`onPointerDown`,mousedown:`onMouseDown`,click:`onClick`},jc={pointerdown:`onPointerDownCapture`,mousedown:`onMouseDownCapture`,click:`onClickCapture`},Mc=e=>({escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0});function Nc(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,elements:i,dataRef:a}=e,{enabled:o=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:l=`pointerdown`,referencePress:u=!1,referencePressEvent:d=`pointerdown`,ancestorScroll:f=!1,bubbles:p,capture:m}=t,g=gc(),_=Mo(typeof c==`function`?c:()=>!1),v=typeof c==`function`?_:c,y=h.useRef(!1),{escapeKey:b,outsidePress:x}=Mc(p),{escapeKey:S,outsidePress:C}=Mc(m),w=h.useRef(!1),T=Mo(e=>{if(!n||!o||!s||e.key!==`Escape`||w.current)return;let t=a.current.floatingContext?.nodeId,i=g?To(g.nodesRef.current,t):[];if(!b&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach(t=>{var n;(n=t.context)!=null&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles&&(e=!1)}),!e)return}r(!1,Eo(e)?e.nativeEvent:e,`escape-key`)}),E=Mo(e=>{var t;let n=()=>{var t;T(e),(t=vo(e))==null||t.removeEventListener(`keydown`,n)};(t=vo(e))==null||t.addEventListener(`keydown`,n)}),D=Mo(e=>{let t=a.current.insideReactTree;a.current.insideReactTree=!1;let n=y.current;if(y.current=!1,l===`click`&&n||t||typeof v==`function`&&!v(e))return;let o=vo(e),s=`[`+_c(`inert`)+`]`,c=xo(i.floating).querySelectorAll(s),u=ma(o)?o:null;for(;u&&!Da(u);){let e=Aa(u);if(Da(e)||!ma(e))break;u=e}if(c.length&&ma(o)&&!bo(o)&&!_o(o,i.floating)&&Array.from(c).every(e=>!_o(u,e)))return;if(ha(o)&&A){let t=Da(o),n=Oa(o),r=/auto|scroll/,i=t||r.test(n.overflowX),a=t||r.test(n.overflowY),s=i&&o.clientWidth>0&&o.scrollWidth>o.clientWidth,c=a&&o.clientHeight>0&&o.scrollHeight>o.clientHeight,l=n.direction===`rtl`,u=c&&(l?e.offsetX<=o.offsetWidth-o.clientWidth:e.offsetX>o.clientWidth),d=s&&e.offsetY>o.clientHeight;if(u||d)return}let d=a.current.floatingContext?.nodeId,f=g&&To(g.nodesRef.current,d).some(t=>yo(e,t.context?.elements.floating));if(yo(e,i.floating)||yo(e,i.domReference)||f)return;let p=g?To(g.nodesRef.current,d):[];if(p.length>0){let e=!0;if(p.forEach(t=>{var n;(n=t.context)!=null&&n.open&&!t.context.dataRef.current.__outsidePressBubbles&&(e=!1)}),!e)return}r(!1,e,`outside-press`)}),O=Mo(e=>{var t;let n=()=>{var t;D(e),(t=vo(e))==null||t.removeEventListener(l,n)};(t=vo(e))==null||t.addEventListener(l,n)});h.useEffect(()=>{if(!n||!o)return;a.current.__escapeKeyBubbles=b,a.current.__outsidePressBubbles=x;let e=-1;function t(e){r(!1,e,`ancestor-scroll`)}function c(){window.clearTimeout(e),w.current=!0}function u(){e=window.setTimeout(()=>{w.current=!1},Ea()?5:0)}let d=xo(i.floating);s&&(d.addEventListener(`keydown`,S?E:T,S),d.addEventListener(`compositionstart`,c),d.addEventListener(`compositionend`,u)),v&&d.addEventListener(l,C?O:D,C);let p=[];return f&&(ma(i.domReference)&&(p=Ma(i.domReference)),ma(i.floating)&&(p=p.concat(Ma(i.floating))),!ma(i.reference)&&i.reference&&i.reference.contextElement&&(p=p.concat(Ma(i.reference.contextElement)))),p=p.filter(e=>e!==d.defaultView?.visualViewport),p.forEach(e=>{e.addEventListener(`scroll`,t)}),()=>{s&&(d.removeEventListener(`keydown`,S?E:T,S),d.removeEventListener(`compositionstart`,c),d.removeEventListener(`compositionend`,u)),v&&d.removeEventListener(l,C?O:D,C),p.forEach(e=>{e.removeEventListener(`scroll`,t)}),window.clearTimeout(e)}},[a,i,s,v,l,n,r,f,o,b,x,T,S,E,D,C,O]),h.useEffect(()=>{a.current.insideReactTree=!1},[a,v,l]);let k=h.useMemo(()=>({onKeyDown:T,...u&&{[Ac[d]]:e=>{r(!1,e.nativeEvent,`reference-press`)},...d!==`click`&&{onClick(e){r(!1,e.nativeEvent,`reference-press`)}}}}),[T,r,u,d]),A=h.useMemo(()=>{function e(e){e.button===0&&(y.current=!0)}return{onKeyDown:T,onMouseDown:e,onMouseUp:e,[jc[l]]:()=>{a.current.insideReactTree=!0}}},[T,l,a]);return h.useMemo(()=>o?{reference:k,floating:A}:{},[o,k,A])}function Pc(e){let{open:t=!1,onOpenChange:n,elements:r}=e,i=dc(),a=h.useRef({}),[o]=h.useState(()=>fc()),s=hc()!=null,[c,l]=h.useState(r.reference),u=Mo((e,t,r)=>{a.current.openEvent=e?t:void 0,o.emit(`openchange`,{open:e,event:t,reason:r,nested:s}),n?.(e,t,r)}),d=h.useMemo(()=>({setPositionReference:l}),[]),f=h.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return h.useMemo(()=>({dataRef:a,open:t,onOpenChange:u,elements:f,events:o,floatingId:i,refs:d}),[t,u,f,o,i,d])}function Fc(e){let{elements:t,...n}=e===void 0?{}:e,{nodeId:r}=n,i=Pc({...n,elements:{reference:t?.reference??null,floating:t?.floating??null}}),a=n.rootContext||i,o=a.elements,[s,c]=h.useState(null),[l,u]=h.useState(null),d=o?.domReference||s,f=h.useRef(null),p=gc();Oo(()=>{d&&(f.current=d)},[d]);let m=Bs({...n,elements:{...o,...l&&{reference:l}}}),g=h.useCallback(e=>{let t=ma(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),m.refs.setReference(t)},[m.refs]),_=h.useCallback(e=>{(ma(e)||e===null)&&(f.current=e,c(e)),(ma(m.refs.reference.current)||m.refs.reference.current===null||e!==null&&!ma(e))&&m.refs.setReference(e)},[m.refs]),v=h.useMemo(()=>({...m.refs,setReference:_,setPositionReference:g,domReference:f}),[m.refs,_,g]),y=h.useMemo(()=>({...m.elements,domReference:d}),[m.elements,d]),b=h.useMemo(()=>({...m,...a,refs:v,elements:y,nodeId:r}),[m,v,y,r,a]);return Oo(()=>{a.dataRef.current.floatingContext=b;let e=p?.nodesRef.current.find(e=>e.id===r);e&&(e.context=b)}),h.useMemo(()=>({...m,context:b,refs:v,elements:y}),[m,v,y,b])}function Ic(){return fo()&&uo()}function Lc(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,events:i,dataRef:a,elements:o}=e,{enabled:s=!0,visibleOnly:c=!0}=t,l=h.useRef(!1),u=h.useRef(-1),d=h.useRef(!0);h.useEffect(()=>{if(!s)return;let e=da(o.domReference);function t(){!n&&ha(o.domReference)&&o.domReference===go(xo(o.domReference))&&(l.current=!0)}function r(){d.current=!0}function i(){d.current=!1}return e.addEventListener(`blur`,t),Ic()&&(e.addEventListener(`keydown`,r,!0),e.addEventListener(`pointerdown`,i,!0)),()=>{e.removeEventListener(`blur`,t),Ic()&&(e.removeEventListener(`keydown`,r,!0),e.removeEventListener(`pointerdown`,i,!0))}},[o.domReference,n,s]),h.useEffect(()=>{if(!s)return;function e(e){let{reason:t}=e;(t===`reference-press`||t===`escape-key`)&&(l.current=!0)}return i.on(`openchange`,e),()=>{i.off(`openchange`,e)}},[i,s]),h.useEffect(()=>()=>{vc(u)},[]);let f=h.useMemo(()=>({onMouseLeave(){l.current=!1},onFocus(e){if(l.current)return;let t=vo(e.nativeEvent);if(c&&ma(t)){if(Ic()&&!e.relatedTarget){if(!d.current&&!So(t))return}else if(!Co(t))return}r(!0,e.nativeEvent,`focus`)},onBlur(e){l.current=!1;let t=e.relatedTarget,n=e.nativeEvent,i=ma(t)&&t.hasAttribute(_c(`focus-guard`))&&t.getAttribute(`data-type`)===`outside`;u.current=window.setTimeout(()=>{let e=go(o.domReference?o.domReference.ownerDocument:document);!t&&e===o.domReference||_o(a.current.floatingContext?.refs.floating.current,e)||_o(o.domReference,e)||i||r(!1,n,`focus`)})}}),[a,o.domReference,r,c]);return h.useMemo(()=>s?{reference:f}:{},[s,f])}function Rc(e,t,n){let r=new Map,i=n===`item`,a=e;if(i&&e){let{[Qs]:t,[$s]:n,...r}=e;a=r}return{...n===`floating`&&{tabIndex:-1,[Zs]:``},...a,...t.map(t=>{let r=t?t[n]:null;return typeof r==`function`?e?r(e):null:r}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,a]=t;if(!(i&&[Qs,$s].includes(n))){if(n.indexOf(`on`)===0){if(r.has(n)||r.set(n,[]),typeof a==`function`){var o;(o=r.get(n))==null||o.push(a),e[n]=function(){var e=[...arguments];return r.get(n)?.map(t=>t(...e)).find(e=>e!==void 0)}}}else e[n]=a}}),e),{})}}function zc(e){e===void 0&&(e=[]);let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),r=e.map(e=>e?.item),i=h.useCallback(t=>Rc(t,e,`reference`),t),a=h.useCallback(t=>Rc(t,e,`floating`),n),o=h.useCallback(t=>Rc(t,e,`item`),r);return h.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}var Bc=new Map([[`select`,`listbox`],[`combobox`,`listbox`],[`label`,!1]]);function Vc(e,t){t===void 0&&(t={});let{open:n,elements:r,floatingId:i}=e,{enabled:a=!0,role:o=`dialog`}=t,s=dc(),c=r.domReference?.id||s,l=h.useMemo(()=>wo(r.floating)?.id||i,[r.floating,i]),u=Bc.get(o)??o,d=hc()!=null,f=h.useMemo(()=>u===`tooltip`||o===`label`?{[`aria-`+(o===`label`?`labelledby`:`describedby`)]:n?l:void 0}:{"aria-expanded":n?`true`:`false`,"aria-haspopup":u===`alertdialog`?`dialog`:u,"aria-controls":n?l:void 0,...u===`listbox`&&{role:`combobox`},...u===`menu`&&{id:c},...u===`menu`&&d&&{role:`menuitem`},...o===`select`&&{"aria-autocomplete":`none`},...o===`combobox`&&{"aria-autocomplete":`list`}},[u,l,d,n,c,o]),p=h.useMemo(()=>{let e={id:l,...u&&{role:u}};return u===`tooltip`||o===`label`?e:{...e,...u===`menu`&&{"aria-labelledby":c}}},[u,l,c,o]),m=h.useCallback(e=>{let{active:t,selected:n}=e,r={role:`option`,...t&&{id:l+`-fui-option`}};switch(o){case`select`:case`combobox`:return{...r,"aria-selected":n}}return{}},[l,o]);return h.useMemo(()=>a?{reference:f,floating:p,item:m}:{},[a,f,p,m])}function Hc(e,t,n){return n===void 0&&(n=!0),e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...Hc(e,t.id,n)])}function Uc(e,t){let[n,r]=e,i=!1,a=t.length;for(let e=0,o=a-1;e=r!=l>=r&&n<=(c-a)*(r-s)/(l-s)+a&&(i=!i)}return i}function Wc(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Gc(e){e===void 0&&(e={});let{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,i={current:-1},a=!1,o=null,s=null,c=typeof performance<`u`?performance.now():0;function l(e,t){let n=performance.now(),r=n-c;if(o===null||s===null||r===0)return o=e,s=t,c=n,null;let i=e-o,a=t-s,l=Math.sqrt(i*i+a*a)/r;return o=e,s=t,c=n,l}let u=e=>{let{x:n,y:o,placement:s,elements:c,onClose:u,nodeId:d,tree:f}=e;return function(e){function p(){vc(i),u()}if(vc(i),!c.domReference||!c.floating||s==null||n==null||o==null)return;let{clientX:m,clientY:h}=e,g=[m,h],_=kc(e),v=e.type===`mouseleave`,y=Oc(c.floating,_),b=Oc(c.domReference,_),x=c.domReference.getBoundingClientRect(),S=c.floating.getBoundingClientRect(),C=s.split(`-`)[0],w=n>S.right-S.width/2,T=o>S.bottom-S.height/2,E=Wc(g,x),D=S.width>x.width,O=S.height>x.height,k=(D?x:S).left,A=(D?x:S).right,j=(O?x:S).top,M=(O?x:S).bottom;if(y&&(a=!0,!v))return;if(b&&(a=!1),b&&!v){a=!0;return}if(v&&ma(e.relatedTarget)&&Oc(c.floating,e.relatedTarget)||f&&Hc(f.nodesRef.current,d).length)return;if(C===`top`&&o>=x.bottom-1||C===`bottom`&&o<=x.top+1||C===`left`&&n>=x.right-1||C===`right`&&n<=x.left+1)return p();let N=[];switch(C){case`top`:N=[[k,x.top+1],[k,S.bottom-1],[A,S.bottom-1],[A,x.top+1]];break;case`bottom`:N=[[k,S.top+1],[k,x.bottom-1],[A,x.bottom-1],[A,S.top+1]];break;case`left`:N=[[S.right-1,M],[S.right-1,j],[x.left+1,j],[x.left+1,M]];break;case`right`:N=[[x.right-1,M],[x.right-1,j],[S.left+1,j],[S.left+1,M]]}function P(e){let[n,r]=e;switch(C){case`top`:return[[D?n+t/2:w?n+t*4:n-t*4,r+t+1],[D?n-t/2:w?n+t*4:n-t*4,r+t+1],[S.left,w||D?S.bottom-t:S.top],[S.right,w?D?S.bottom-t:S.top:S.bottom-t]];case`bottom`:return[[D?n+t/2:w?n+t*4:n-t*4,r-t],[D?n-t/2:w?n+t*4:n-t*4,r-t],[S.left,w||D?S.top+t:S.bottom],[S.right,w?D?S.top+t:S.bottom:S.top+t]];case`left`:{let e=[n+t+1,O?r+t/2:T?r+t*4:r-t*4],i=[n+t+1,O?r-t/2:T?r+t*4:r-t*4];return[[T||O?S.right-t:S.left,S.top],[T?O?S.right-t:S.left:S.right-t,S.bottom],e,i]}case`right`:return[[n-t,O?r+t/2:T?r+t*4:r-t*4],[n-t,O?r-t/2:T?r+t*4:r-t*4],[T||O?S.left+t:S.right,S.top],[T?O?S.left+t:S.right:S.left+t,S.bottom]]}}if(!Uc([m,h],N)){if(a&&!E)return p();if(!v&&r){let t=l(e.clientX,e.clientY);if(t!==null&&t<.1)return p()}Uc([m,h],P([n,o]))?!a&&r&&(i.current=window.setTimeout(p,40)):p()}}};return u.__options={blockPointerEvents:n},u}var Kc={scrollHideDelay:1e3,type:`hover`,scrollbars:`xy`},qc=Qt((e,{scrollbarSize:t,overscrollBehavior:n,scrollbars:r})=>{let i=n;return n&&r&&(r===`x`?i=`${n} auto`:r===`y`&&(i=`auto ${n}`)),{root:{"--scrollarea-scrollbar-size":H(t),"--scrollarea-over-scroll-behavior":i}}}),Jc=G(e=>{let t=W(`ScrollArea`,Kc,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,scrollbarSize:s,vars:c,type:l,scrollHideDelay:u,viewportProps:d,viewportRef:f,onScrollPositionChange:p,children:m,offsetScrollbars:g,scrollbars:_,onBottomReached:v,onTopReached:y,onLeftReached:b,onRightReached:x,overscrollBehavior:S,startScrollPosition:w,verticalScrollbarPosition:T,attributes:E,...D}=t,[O,k]=(0,h.useState)(!1),[A,j]=(0,h.useState)(!1),[M,N]=(0,h.useState)(!1),P=(0,h.useRef)(!0),F=(0,h.useRef)(!1),ee=(0,h.useRef)(!0),I=(0,h.useRef)(!1),L=Rr({name:`ScrollArea`,props:t,classes:ca,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:E,vars:c,varsResolver:qc}),R=(0,h.useRef)(null),[te,ne]=(0,h.useState)(null),re=Xs([f,R,(0,h.useCallback)(e=>{ne(t=>t===e?t:e)},[])]);return Pi(g===`present`?te:null,()=>{let e=R.current;e&&(j(e.scrollHeight>e.clientHeight),N(e.scrollWidth>e.clientWidth))}),C(()=>{w&&R.current&&R.current.scrollTo({left:w.x??0,top:w.y??0})},[]),(0,U.jsxs)(Ri,{getStyles:L,type:l===`never`?`always`:l,scrollHideDelay:u,scrollbars:_,...L(`root`),...D,children:[(0,U.jsx)(sa,{...d,...L(`viewport`,{style:d?.style}),ref:re,"data-offset-scrollbars":g===!0?`xy`:g||void 0,"data-scrollbars":_||void 0,"data-vertical-scrollbar-position":T||void 0,"data-horizontal-hidden":g===`present`&&!M?`true`:void 0,"data-vertical-hidden":g===`present`&&!A?`true`:void 0,onScroll:e=>{d?.onScroll?.(e),p?.({x:e.currentTarget.scrollLeft,y:e.currentTarget.scrollTop});let{scrollTop:t,scrollHeight:n,clientHeight:r,scrollLeft:i,scrollWidth:a,clientWidth:o}=e.currentTarget,s=t-(n-r)>=-.8,c=t===0;s&&!F.current&&v?.(),c&&!P.current&&y?.(),F.current=s,P.current=c;let l=i-(a-o)>=-.8,u=i===0;l&&!I.current&&x?.(),u&&!ee.current&&b?.(),I.current=l,ee.current=u},children:m}),(_===`xy`||_===`x`)&&(0,U.jsx)(ra,{...L(`scrollbar`),orientation:`horizontal`,"data-vertical-scrollbar-position":T||void 0,"data-hidden":l===`never`||g===`present`&&!M||void 0,forceMount:!0,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),children:(0,U.jsx)(oa,{...L(`thumb`)})}),(_===`xy`||_===`y`)&&(0,U.jsx)(ra,{...L(`scrollbar`),orientation:`vertical`,"data-vertical-scrollbar-position":T||void 0,"data-hidden":l===`never`||g===`present`&&!A||void 0,forceMount:!0,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),children:(0,U.jsx)(oa,{...L(`thumb`)})}),(0,U.jsx)(Ii,{...L(`corner`),"data-vertical-scrollbar-position":T||void 0,"data-hovered":O||void 0,"data-hidden":l===`never`||void 0})]})});Jc.displayName=`@mantine/core/ScrollArea`;var Yc=G(e=>{let{children:t,classNames:n,styles:r,scrollbarSize:i,scrollHideDelay:a,type:o,dir:s,offsetScrollbars:c,overscrollBehavior:l,viewportRef:u,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:m,scrollbars:g,style:_,vars:v,onBottomReached:y,onTopReached:b,startScrollPosition:x,verticalScrollbarPosition:S,onOverflowChange:C,...w}=W(`ScrollAreaAutosize`,Kc,e),T=(0,h.useRef)(null),[E,D]=(0,h.useState)(null),O=Xs([u,T,(0,h.useCallback)(e=>{D(t=>t===e?t:e)},[])]),k=(0,h.useRef)(!1),A=(0,h.useRef)(!1),j=(0,h.useEffectEvent)(()=>{let e=T.current;if(!e||!C)return;let t=e.scrollHeight>e.clientHeight;t!==k.current&&(A.current?C(t):(A.current=!0,t&&C(!0)),k.current=t)});return Pi(C?E:null,j),(0,U.jsx)(K,{...w,variant:p,style:[{display:`flex`,overflow:`hidden`},_],children:(0,U.jsx)(K,{style:{display:`flex`,flexDirection:`column`,flex:1,overflow:`hidden`,...g===`y`&&{minWidth:0},...g===`x`&&{minHeight:0},...g===`xy`&&{minWidth:0,minHeight:0},...g===!1&&{minWidth:0,minHeight:0}},children:(0,U.jsx)(Jc,{classNames:n,styles:r,scrollHideDelay:a,scrollbarSize:i,type:o,dir:s,offsetScrollbars:c,overscrollBehavior:l,viewportRef:O,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:m,vars:v,scrollbars:g,onBottomReached:y,onTopReached:b,startScrollPosition:x,verticalScrollbarPosition:S,"data-autosize":`true`,children:t})})})});Jc.classes=ca,Jc.varsResolver=qc,Yc.displayName=`@mantine/core/ScrollAreaAutosize`,Yc.classes=ca,Jc.Autosize=Yc;var Xc={root:`m_87cf2631`},Zc={__staticSelector:`UnstyledButton`},Qc=xi(e=>{let t=W(`UnstyledButton`,Zc,e),{className:n,component:r=`button`,__staticSelector:i,unstyled:a,classNames:o,styles:s,style:c,attributes:l,...u}=t,d=Rr({name:i,props:t,classes:Xc,className:n,style:c,classNames:o,styles:s,unstyled:a,attributes:l});return(0,U.jsx)(K,{...d(`root`,{focusable:!0}),component:r,type:r===`button`?`button`:void 0,...u})});Qc.classes=Xc,Qc.displayName=`@mantine/core/UnstyledButton`;var $c={root:`m_515a97f8`},el=G(e=>{let t=W(`VisuallyHidden`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,...l}=t,u=Rr({name:`VisuallyHidden`,classes:$c,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c});return(0,U.jsx)(K,{component:`span`,...u(`root`),...l})});el.classes=$c,el.displayName=`@mantine/core/VisuallyHidden`;var tl={root:`m_1b7284a3`},nl=Qt((e,{radius:t,shadow:n})=>({root:{"--paper-radius":t===void 0?void 0:It(t),"--paper-shadow":zt(n)}})),rl=xi(e=>{let t=W(`Paper`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,withBorder:s,vars:c,radius:l,shadow:u,variant:d,mod:f,attributes:p,...m}=t,h=Rr({name:`Paper`,props:t,classes:tl,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:c,varsResolver:nl});return(0,U.jsx)(K,{mod:[{withBorder:s},f],...h(`root`),variant:d,...m})});rl.classes=tl,rl.varsResolver=nl,rl.displayName=`@mantine/core/Paper`;function il(e,t,n,r){return e===`center`||r===`center`?{top:t}:e===`end`?{bottom:n}:e===`start`?{top:n}:{}}function al(e,t,n,r,i){return e===`center`||r===`center`?{left:t}:e===`end`?{[i===`ltr`?`right`:`left`]:n}:e===`start`?{[i===`ltr`?`left`:`right`]:n}:{}}var ol={bottom:`borderTopLeftRadius`,left:`borderTopRightRadius`,right:`borderBottomLeftRadius`,top:`borderBottomRightRadius`};function sl({position:e,arrowSize:t,dir:n}){let[r,i]=e.split(`-`);if(!i)return;let a={width:t,height:t,position:`absolute`};if(r===`bottom`){let e=i===`start`,r=e?n===`ltr`?`left`:`right`:n===`ltr`?`right`:`left`;return{...a,top:-t,[r]:0,clipPath:e===(n===`rtl`)?`polygon(100% 0%, 0% 100%, 100% 100%)`:`polygon(0% 0%, 0% 100%, 100% 100%)`}}if(r===`top`){let e=i===`start`,r=e?n===`ltr`?`left`:`right`:n===`ltr`?`right`:`left`;return{...a,bottom:-t,[r]:0,clipPath:e===(n===`rtl`)?`polygon(0% 0%, 100% 0%, 100% 100%)`:`polygon(0% 0%, 100% 0%, 0% 100%)`}}if(r===`left`)return{...a,right:-t,[i===`start`?`top`:`bottom`]:0,clipPath:i===`start`?`polygon(0% 0%, 100% 0%, 0% 100%)`:`polygon(0% 0%, 0% 100%, 100% 100%)`};if(r===`right`)return{...a,left:-t,[i===`start`?`top`:`bottom`]:0,clipPath:i===`start`?`polygon(0% 0%, 100% 0%, 100% 100%)`:`polygon(100% 0%, 0% 100%, 100% 100%)`}}function cl({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,arrowX:a,arrowY:o,dir:s}){if(i===`merge`){let n=sl({position:e,arrowSize:t,dir:s});if(n)return n}let[c,l=`center`]=e.split(`-`),u={width:t,height:t,transform:`rotate(45deg)`,position:`absolute`,[ol[c]]:r},d=-t/2;return c===`left`?{...u,...il(l,o,n,i),right:d,borderLeftColor:`transparent`,borderBottomColor:`transparent`,clipPath:`polygon(100% 0, 0 0, 100% 100%)`}:c===`right`?{...u,...il(l,o,n,i),left:d,borderRightColor:`transparent`,borderTopColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 100%)`}:c===`top`?{...u,...al(l,a,n,i,s),bottom:d,borderTopColor:`transparent`,borderLeftColor:`transparent`,clipPath:`polygon(0 100%, 100% 100%, 100% 0)`}:c===`bottom`?{...u,...al(l,a,n,i,s),top:d,borderBottomColor:`transparent`,borderRightColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 0)`}:{}}function ll({position:e,dir:t}){let[n,r]=e.split(`-`);if(!r)return;let i=r===`start`&&t===`ltr`||r===`end`&&t===`rtl`;if(n===`bottom`)return i?{borderTopLeftRadius:0}:{borderTopRightRadius:0};if(n===`top`)return i?{borderBottomLeftRadius:0}:{borderBottomRightRadius:0};if(n===`left`)return r===`start`?{borderTopRightRadius:0}:{borderBottomRightRadius:0};if(n===`right`)return r===`start`?{borderTopLeftRadius:0}:{borderBottomLeftRadius:0}}function ul({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,visible:a,arrowX:o,arrowY:s,style:c,...l}){let{dir:u}=ki();return a?(0,U.jsx)(`div`,{role:`presentation`,...l,style:{...c,...cl({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,dir:u,arrowX:o,arrowY:s})}}):null}ul.displayName=`@mantine/core/FloatingArrow`;function dl(e,t){if(e===`rtl`&&(t.includes(`right`)||t.includes(`left`))){let[e,n]=t.split(`-`),r=e===`right`?`left`:`right`;return n===void 0?r:`${r}-${n}`}return t}function fl({open:e,close:t,openDelay:n,closeDelay:r}){let i=(0,h.useRef)(-1),a=(0,h.useRef)(-1),o=()=>{window.clearTimeout(i.current),window.clearTimeout(a.current)};return(0,h.useEffect)(()=>o,[]),{openDropdown:()=>{o(),n===0||n===void 0?e():i.current=window.setTimeout(e,n)},closeDropdown:()=>{o(),r===0||r===void 0?t():a.current=window.setTimeout(t,r)}}}var pl={root:`m_9814e45f`},ml={zIndex:jt(`modal`)},hl=Qt((e,{gradient:t,color:n,backgroundOpacity:r,blur:i,radius:a,zIndex:o})=>({root:{"--overlay-bg":t||(n!==void 0||r!==void 0)&&Tn(n||`#000`,r??.6)||void 0,"--overlay-filter":i?`blur(${H(i)})`:void 0,"--overlay-radius":a===void 0?void 0:It(a),"--overlay-z-index":o?.toString()}})),gl=xi(e=>{let t=W(`Overlay`,ml,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,fixed:c,center:l,children:u,radius:d,zIndex:f,gradient:p,blur:m,color:h,backgroundOpacity:g,mod:_,attributes:v,...y}=t,b=Rr({name:`Overlay`,props:t,classes:pl,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:v,vars:s,varsResolver:hl});return(0,U.jsx)(K,{...b(`root`),mod:[{center:l,fixed:c},_],...y,children:u})});gl.classes=pl,gl.varsResolver=hl,gl.displayName=`@mantine/core/Overlay`;function _l(e){let t=document.createElement(`div`);return t.setAttribute(`data-portal`,`true`),typeof e.className==`string`&&t.classList.add(...e.className.split(` `).filter(Boolean)),typeof e.style==`object`&&Object.assign(t.style,e.style),typeof e.id==`string`&&t.setAttribute(`id`,e.id),t}var vl=null;function yl({target:e,reuseTargetNode:t,...n}){if(e)return typeof e==`string`?document.querySelector(e)||_l(n):e;if(t){if(vl){if(document.body.contains(vl))return vl;vl=null}let e=document.querySelector(`[data-mantine-shared-portal-node]`);if(e)return vl=e,e;let t=_l(n);return t.setAttribute(`data-mantine-shared-portal-node`,`true`),document.body.appendChild(t),vl=t,t}return _l(n)}var bl={reuseTargetNode:!0},xl=G(e=>{let{children:t,target:n,reuseTargetNode:r,ref:i,...a}=W(`Portal`,bl,e),[o,s]=(0,h.useState)(!1),c=(0,h.useRef)(null);return C(()=>(s(!0),c.current=yl({target:n,reuseTargetNode:r,...a}),ne(i,c.current),!n&&!r&&c.current&&document.body.appendChild(c.current),()=>{!n&&!r&&c.current&&document.body.removeChild(c.current)}),[n]),!o||!c.current?null:(0,ke.createPortal)((0,U.jsx)(U.Fragment,{children:t}),c.current)});xl.displayName=`@mantine/core/Portal`;var Sl=G(({withinPortal:e=!0,children:t,...n})=>Hn()===`test`||!e?(0,U.jsx)(U.Fragment,{children:t}):(0,U.jsx)(xl,{...n,children:t}));Sl.displayName=`@mantine/core/OptionalPortal`;var Cl=e=>({in:{opacity:1,transform:`scale(1)`},out:{opacity:0,transform:`scale(.9) translateY(${e===`bottom`?10:-10}px)`},transitionProperty:`transform, opacity`}),wl={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:`opacity`},"fade-up":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(30px)`},transitionProperty:`opacity, transform`},"fade-down":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(-30px)`},transitionProperty:`opacity, transform`},"fade-left":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(30px)`},transitionProperty:`opacity, transform`},"fade-right":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(-30px)`},transitionProperty:`opacity, transform`},scale:{in:{opacity:1,transform:`scale(1)`},out:{opacity:0,transform:`scale(0)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"scale-y":{in:{opacity:1,transform:`scaleY(1)`},out:{opacity:0,transform:`scaleY(0)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"scale-x":{in:{opacity:1,transform:`scaleX(1)`},out:{opacity:0,transform:`scaleX(0)`},common:{transformOrigin:`left`},transitionProperty:`transform, opacity`},"skew-up":{in:{opacity:1,transform:`translateY(0) skew(0deg, 0deg)`},out:{opacity:0,transform:`translateY(-20px) skew(-10deg, -5deg)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"skew-down":{in:{opacity:1,transform:`translateY(0) skew(0deg, 0deg)`},out:{opacity:0,transform:`translateY(20px) skew(-10deg, -5deg)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"rotate-left":{in:{opacity:1,transform:`translateY(0) rotate(0deg)`},out:{opacity:0,transform:`translateY(20px) rotate(-5deg)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"rotate-right":{in:{opacity:1,transform:`translateY(0) rotate(0deg)`},out:{opacity:0,transform:`translateY(20px) rotate(5deg)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"slide-down":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(-100%)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"slide-up":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(100%)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"slide-left":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(100%)`},common:{transformOrigin:`left`},transitionProperty:`transform, opacity`},"slide-right":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(-100%)`},common:{transformOrigin:`right`},transitionProperty:`transform, opacity`},pop:{...Cl(`bottom`),common:{transformOrigin:`center center`}},"pop-bottom-left":{...Cl(`bottom`),common:{transformOrigin:`bottom left`}},"pop-bottom-right":{...Cl(`bottom`),common:{transformOrigin:`bottom right`}},"pop-top-left":{...Cl(`top`),common:{transformOrigin:`top left`}},"pop-top-right":{...Cl(`top`),common:{transformOrigin:`top right`}}},Tl={entering:`in`,entered:`in`,exiting:`out`,exited:`out`,"pre-exiting":`out`,"pre-entering":`out`};function El({transition:e,state:t,duration:n,timingFunction:r}){let i={WebkitBackfaceVisibility:`hidden`,transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof e==`string`?e in wl?{transitionProperty:wl[e].transitionProperty,...i,...wl[e].common,...wl[e][Tl[t]]}:{}:{transitionProperty:e.transitionProperty,...i,...e.common,...e[Tl[t]]}}function Dl({duration:e,exitDuration:t,timingFunction:n,mounted:r,onEnter:i,onExit:a,onEntered:o,onExited:s,enterDelay:c,exitDelay:l}){let u=sr(),d=oe(),f=u.respectReducedMotion?d:!1,[p,m]=(0,h.useState)(f?0:e),[g,_]=(0,h.useState)(r?`entered`:`exited`),v=(0,h.useRef)(-1),y=(0,h.useRef)(-1),b=(0,h.useRef)(-1);function x(){window.clearTimeout(v.current),window.clearTimeout(y.current),cancelAnimationFrame(b.current),b.current=-1}let S=n=>{x();let r=n?i:a,c=n?o:s,l=f?0:n?e:t;if(m(l),l===0)typeof r==`function`&&r(),typeof c==`function`&&c(),_(n?`entered`:`exited`);else{let e=requestAnimationFrame(()=>{ke.flushSync(()=>{_(n?`pre-entering`:`pre-exiting`)}),b.current===e&&(b.current=requestAnimationFrame(()=>{typeof r==`function`&&r(),_(n?`entering`:`exiting`),v.current=window.setTimeout(()=>{typeof c==`function`&&c(),_(n?`entered`:`exited`)},l)}))});b.current=e}},C=e=>{x(),typeof(e?c:l)==`number`?y.current=window.setTimeout(()=>{S(e)},e?c:l):S(e)};return T(()=>{C(r)},[r]),(0,h.useEffect)(()=>()=>{x()},[]),{transitionDuration:p,transitionStatus:g,transitionTimingFunction:n||`ease`}}function Ol({keepMounted:e,keepMountedMode:t=`activity`,transition:n=`fade`,duration:r=250,exitDuration:i=r,mounted:a,children:o,timingFunction:s=`ease`,onExit:c,onEntered:l,onEnter:u,onExited:d,enterDelay:f,exitDelay:p}){let m=Hn(),{transitionDuration:g,transitionStatus:_,transitionTimingFunction:v}=Dl({mounted:a,exitDuration:i,duration:r,timingFunction:s,onExit:c,onEntered:l,onEnter:u,onExited:d,enterDelay:f,exitDelay:p});if(m===`test`)return a?(0,U.jsx)(U.Fragment,{children:o({})}):e?o({display:`none`}):null;if(g===0)return e?t===`display-none`?a?(0,U.jsx)(U.Fragment,{children:o({})}):o({display:`none`}):(0,U.jsx)(h.Activity,{mode:a?`visible`:`hidden`,children:o({})}):a?(0,U.jsx)(U.Fragment,{children:o({})}):null;let y=_===`exited`;if(e){let e=o(y?t===`display-none`?{display:`none`}:{}:El({transition:n,duration:g,state:_,timingFunction:v}));return t===`display-none`?e:(0,U.jsx)(h.Activity,{mode:y?`hidden`:`visible`,children:e})}return y?null:(0,U.jsx)(U.Fragment,{children:o(El({transition:n,duration:g,state:_,timingFunction:v}))})}Ol.displayName=`@mantine/core/Transition`;var kl={duration:100,transition:`fade`};function Al(e,t){return{...kl,...t,...e}}var[jl,Ml]=Ct(`Popover component was not found in the tree`);function Nl({childProps:e,disabled:t,opened:n,longPressDelay:r=500,setReference:i,open:a}){let o=(0,h.useRef)(!1),s=(0,h.useRef)(!1),c=(0,h.useRef)(null),l=(0,h.useRef)(t);l.current=t;let u=(e,t,n)=>{i({getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t,toJSON:()=>void 0}),contextElement:n}),a()},d=Bt(e.onMouseDown,e=>{t||e.button===2&&e.stopPropagation()}),f=Bt(e.onContextMenu,e=>{t||e.defaultPrevented||(e.preventDefault(),!s.current&&(u(e.clientX,e.clientY,e.currentTarget),o.current&&(s.current=!0)))}),p=Ce(e=>{if(l.current||s.current)return;let t=e,n=t.touches[0]??t.changedTouches[0];n&&(u(n.clientX,n.clientY,c.current),s.current=!0)},{threshold:r,events:[`touch`],cancelOnMove:!0,onStart:e=>{o.current=!0,s.current=!1,c.current=e.currentTarget},onFinish:e=>{o.current=!1,s.current=!1,l.current||e.preventDefault()},onCancel:()=>{o.current=!1,s.current=!1}});return{onContextMenu:f,onMouseDown:d,onTouchStart:Bt(e.onTouchStart,p.onTouchStart),onTouchEnd:Bt(e.onTouchEnd,p.onTouchEnd),onTouchCancel:Bt(e.onTouchCancel,p.onTouchCancel),onTouchMove:Bt(e.onTouchMove,p.onTouchMove),style:t?e.style:{...e.style,WebkitTouchCallout:`none`,WebkitUserSelect:`none`,userSelect:`none`},"data-expanded":n?!0:void 0}}function Pl(e){let{children:t,disabled:n,longPressDelay:r}=W(`PopoverContextMenu`,null,e),i=Zt(t);if(!i)throw Error(`Popover.ContextMenu component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let a=Ml(),o=Nl({childProps:i.props,disabled:n||a.disabled,opened:a.opened,longPressDelay:r,setReference:a.reference,open:()=>{a.opened||a.onToggle()}});return(0,h.cloneElement)(i,o)}Pl.displayName=`@mantine/core/PopoverContextMenu`;function Fl({children:e,active:t=!0,refProp:n=`ref`,innerRef:r}){let i=ie(ee(t),r),a=Zt(e);return a?(0,h.cloneElement)(a,{[n]:i}):e}function Il(e){return(0,U.jsx)(el,{tabIndex:-1,"data-autofocus":!0,...e})}Fl.displayName=`@mantine/core/FocusTrap`,Il.displayName=`@mantine/core/FocusTrapInitialFocus`,Fl.InitialFocus=Il;var Ll={dropdown:`m_38a85659`,arrow:`m_a31dc6c1`,overlay:`m_3d7bc908`},Rl=G(e=>{let t=W(`PopoverDropdown`,null,e),{className:n,style:r,vars:i,children:a,onKeyDownCapture:o,variant:s,classNames:c,styles:l,ref:u,...d}=t,f=Ml(),{dir:p}=ki(),m=f.arrowPosition===`merge`&&f.withArrow?ll({position:f.placement,dir:p}):void 0,h=E({opened:f.opened,shouldReturnFocus:f.returnFocus}),g=f.withRoles?{"aria-labelledby":f.getTargetId(),id:f.getDropdownId(),role:`dialog`,tabIndex:-1}:{},_=ie(u,f.floating);return f.disabled?null:(0,U.jsx)(Sl,{...f.portalProps,withinPortal:f.withinPortal,children:(0,U.jsx)(Ol,{mounted:f.opened,...f.transitionProps,transition:f.transitionProps?.transition||`fade`,duration:f.transitionProps?.duration??150,keepMounted:f.keepMounted,keepMountedMode:f.keepMountedMode,exitDuration:typeof f.transitionProps?.exitDuration==`number`?f.transitionProps.exitDuration:f.transitionProps?.duration,children:e=>(0,U.jsx)(Fl,{active:f.trapFocus&&f.opened,innerRef:_,children:(0,U.jsxs)(K,{...g,...d,variant:s,onKeyDownCapture:Nt(()=>{f.onClose?.(),f.onDismiss?.()},{active:f.closeOnEscape,onTrigger:h,onKeyDown:o}),"data-position":f.placement,"data-fixed":f.floatingStrategy===`fixed`||void 0,...f.getStyles(`dropdown`,{className:n,props:t,classNames:c,styles:l,style:[{...e,...m,zIndex:f.zIndex,top:f.y??0,left:f.x??0,width:f.width===`target`?void 0:H(f.width),...f.referenceHidden?{display:`none`}:null},f.resolvedStyles?.dropdown,l?.dropdown,r]}),children:[a,(0,U.jsx)(ul,{ref:f.arrowRef,arrowX:f.arrowX,arrowY:f.arrowY,visible:f.withArrow,position:f.placement,arrowSize:f.arrowSize,arrowRadius:f.arrowRadius,arrowOffset:f.arrowOffset,arrowPosition:f.arrowPosition,...f.getStyles(`arrow`,{props:t,classNames:c,styles:l})})]})})})})});Rl.classes=Ll,Rl.displayName=`@mantine/core/PopoverDropdown`;var zl={refProp:`ref`,popupType:`dialog`},Bl=G(e=>{let{children:t,refProp:n,popupType:r,ref:i,...a}=W(`PopoverTarget`,zl,e),o=Zt(t);if(!o)throw Error(`Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let s=a,c=Ml(),l=ie(c.reference,Kt(o),i),u=c.withRoles?{"aria-haspopup":r,"aria-expanded":c.opened,"aria-controls":c.opened?c.getDropdownId():void 0,id:c.getTargetId()}:{},d=o.props;return(0,h.cloneElement)(o,{...s,...u,...c.targetProps,className:en(c.targetProps.className,s.className,d.className),[n]:l,...c.controlled?null:{onClick:e=>{c.onToggle(),d.onClick?.(e)}}})});Bl.displayName=`@mantine/core/PopoverTarget`;function Vl(e){if(e===void 0)return{shift:!0,flip:!0};let t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function Hl(e,t,n,r){let i=Vl(e.middlewares),a=[Hs(e.offset),qs()];if(i.flip&&!n){let e=typeof i.flip==`boolean`?{}:i.flip,t=r?{fallbackStrategy:`initialPlacement`,...e}:e;a.push(Gs(t))}if(i.shift){let t=typeof i.shift==`boolean`?{}:i.shift;a.push(Us(n=>{let r=n.placement.startsWith(`top`)||n.placement.startsWith(`bottom`);return{limiter:Ws(),padding:5,...e.width===`target`&&r?{mainAxis:!1}:null,...t}}))}return i.inline&&a.push(typeof i.inline==`boolean`?Js():Js(i.inline)),a.push(Ys({element:e.arrowRef,padding:e.arrowOffset})),(i.size||e.width===`target`)&&a.push(Ks({...typeof i.size==`boolean`?{}:i.size,apply({rects:n,availableWidth:r,availableHeight:a,...o}){let s=t().refs.floating.current?.style??{};i.size&&(typeof i.size==`object`&&i.size.apply?i.size.apply({rects:n,availableWidth:r,availableHeight:a,...o}):Object.assign(s,{maxWidth:`${r}px`,maxHeight:`${a}px`})),e.width===`target`&&Object.assign(s,{width:`${n.reference.width}px`})}})),a}function Ul(e){let[t,n]=ae({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),r=(0,h.useRef)(t),i=(0,h.useRef)(!1),[a,o]=(0,h.useState)(null),s=e.preventPositionChangeWhenVisible!==!1,c=(0,h.useRef)(t);t!==c.current&&(c.current=t,t&&a!==null&&o(null));let l=(0,h.useRef)(e.position);e.position!==l.current&&(l.current=e.position,i.current=!1,a!==null&&o(null));let u=(0,h.useCallback)(()=>o(null),[]),d=()=>{t&&!e.disabled&&n(!1)},f=()=>{e.disabled||n(!t)},p=Fc({open:t,strategy:e.strategy,placement:s?a??e.position:e.position,middleware:Hl(e,()=>p,s&&a!==null,s),whileElementsMounted:e.keepMounted?void 0:Ts});(0,h.useEffect)(()=>{if(!e.keepMounted)return;let n=p.refs.reference.current,r=p.refs.floating.current;if(t&&n&&r)return Ts(n,r,p.update)},[e.keepMounted,t,p.update,p.elements.reference,p.elements.floating]),C(()=>{if(!t){i.current=!1;return}if(!s||a!==null)return;let e=p.refs.floating.current;e&&e.offsetHeight!==0&&e.offsetWidth!==0&&(i.current?p.isPositioned&&o(p.placement):(i.current=!0,p.update()))},[s,t,p.isPositioned,p.placement,a,p.update]);let m=(0,h.useRef)(p.placement);return C(()=>{m.current!==p.placement&&(m.current=p.placement,e.onPositionChange?.(p.placement))},[p.placement]),T(()=>{t!==r.current&&(t?e.onOpen?.():e.onClose?.()),r.current=t},[t,e.onClose,e.onOpen]),{floating:p,controlled:typeof e.opened==`boolean`,opened:t,onClose:d,onToggle:f,resetLockedPlacement:u}}var Wl={position:`bottom`,offset:8,transitionProps:{transition:`fade`,duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:`side`,closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,hideDetached:!0,preventPositionChangeWhenVisible:!0,clickOutsideEvents:[`mousedown`,`touchstart`],clickOutsideCapture:!1,zIndex:jt(`popover`),__staticSelector:`Popover`,width:`max-content`},Gl=Qt((e,{radius:t,shadow:n})=>({dropdown:{"--popover-radius":t===void 0?void 0:It(t),"--popover-shadow":zt(n)}}));function Kl(e){let t=W(`Popover`,Wl,e),{children:n,position:r,offset:i,onPositionChange:a,opened:o,transitionProps:s,onExitTransitionEnd:c,onEnterTransitionEnd:l,width:u,middlewares:d,withArrow:f,arrowSize:p,arrowOffset:m,arrowRadius:g,arrowPosition:_,unstyled:v,classNames:b,styles:x,closeOnClickOutside:S,withinPortal:C,portalProps:w,closeOnEscape:T,clickOutsideEvents:E,clickOutsideCapture:D,trapFocus:O,onClose:k,onDismiss:A,onOpen:j,onChange:M,zIndex:N,radius:P,shadow:F,id:ee,defaultOpened:I,__staticSelector:L,withRoles:te,disabled:ne,returnFocus:re,variant:ie,keepMounted:ae,keepMountedMode:oe,vars:z,floatingStrategy:se,withOverlay:ce,overlayProps:B,hideDetached:le,attributes:ue,preventPositionChangeWhenVisible:de,...fe}=t,pe=Rr({name:L,props:t,classes:Ll,classNames:b,styles:x,unstyled:v,attributes:ue,rootSelector:`dropdown`,vars:z,varsResolver:Gl}),{resolvedStyles:me}=Cr({classNames:b,styles:x,props:t}),he=(0,h.useRef)(null),[ge,_e]=(0,h.useState)(null),[V,ve]=(0,h.useState)(null),{dir:ye}=ki(),be=Hn(),xe=R(ee),Se=Ul({middlewares:d,width:u,position:dl(ye,r),offset:typeof i==`number`?i+(f?p/2:0):i,arrowRef:he,arrowOffset:m,onPositionChange:a,opened:o,defaultOpened:I,onChange:M,onOpen:j,onClose:k,onDismiss:A,strategy:se,disabled:ne,preventPositionChangeWhenVisible:de,keepMounted:ae});y(()=>{S&&(Se.onClose(),A?.())},E,[ge,V],!0,D);let Ce=(0,h.useCallback)(e=>{_e(e),Se.floating.refs.setReference(e)},[Se.floating.refs.setReference]),we=(0,h.useCallback)(e=>{ve(e),Se.floating.refs.setFloating(e)},[Se.floating.refs.setFloating]),Te=(0,h.useCallback)(()=>{s?.onExited?.(),c?.(),Se.resetLockedPlacement()},[s?.onExited,c,Se.resetLockedPlacement]),Ee=(0,h.useCallback)(()=>{s?.onEntered?.(),l?.()},[s?.onEntered,l]);return(0,U.jsxs)(jl,{value:{returnFocus:re,disabled:ne,controlled:Se.controlled,reference:Ce,floating:we,x:Se.floating.x,y:Se.floating.y,arrowX:Se.floating?.middlewareData?.arrow?.x,arrowY:Se.floating?.middlewareData?.arrow?.y,opened:Se.opened,arrowRef:he,transitionProps:{...s,onExited:Te,onEntered:Ee},width:u,withArrow:f,arrowSize:p,arrowOffset:m,arrowRadius:g,arrowPosition:_,placement:Se.floating.placement,trapFocus:O,withinPortal:C,portalProps:w,zIndex:N,radius:P,shadow:F,closeOnEscape:T,onDismiss:A,onClose:Se.onClose,onToggle:Se.onToggle,getTargetId:()=>xe,getDropdownId:()=>`${xe}-dropdown`,withRoles:te,targetProps:fe,__staticSelector:L,classNames:b,styles:x,unstyled:v,variant:ie,keepMounted:ae,keepMountedMode:oe,getStyles:pe,resolvedStyles:me,floatingStrategy:se,referenceHidden:le&&be!==`test`?Se.floating.middlewareData.hide?.referenceHidden:!1},children:[n,ce&&(0,U.jsx)(Ol,{transition:`fade`,mounted:Se.opened,duration:s?.duration||250,exitDuration:s?.exitDuration||250,children:e=>(0,U.jsx)(Sl,{withinPortal:C,children:(0,U.jsx)(gl,{...B,...pe(`overlay`,{className:B?.className,style:[e,B?.style]})})})})]})}Kl.Target=Bl,Kl.Dropdown=Rl,Kl.ContextMenu=Pl,Kl.varsResolver=Gl,Kl.displayName=`@mantine/core/Popover`,Kl.extend=e=>e,Kl.withProps=e=>{let t=t=>(0,U.jsx)(Kl,{...e,...t});return t.extend=Kl.extend,t.displayName=`WithProps(${Kl.displayName})`,t};var ql={root:`m_5ae2e3c`,barsLoader:`m_7a2bd4cd`,bar:`m_870bb79`,"bars-loader-animation":`m_5d2b3b9d`,dotsLoader:`m_4e3f22d7`,dot:`m_870c4af`,"loader-dots-animation":`m_aac34a1`,ovalLoader:`m_b34414df`,"oval-loader-animation":`m_f8e89c4b`},Jl=({className:e,...t})=>(0,U.jsxs)(K,{component:`span`,className:en(ql.barsLoader,e),...t,children:[(0,U.jsx)(`span`,{className:ql.bar}),(0,U.jsx)(`span`,{className:ql.bar}),(0,U.jsx)(`span`,{className:ql.bar})]});Jl.displayName=`@mantine/core/Bars`;var Yl=({className:e,...t})=>(0,U.jsxs)(K,{component:`span`,className:en(ql.dotsLoader,e),...t,children:[(0,U.jsx)(`span`,{className:ql.dot}),(0,U.jsx)(`span`,{className:ql.dot}),(0,U.jsx)(`span`,{className:ql.dot})]});Yl.displayName=`@mantine/core/Dots`;var Xl=({className:e,...t})=>(0,U.jsx)(K,{component:`span`,className:en(ql.ovalLoader,e),...t});Xl.displayName=`@mantine/core/Oval`;var Zl={bars:Jl,oval:Xl,dots:Yl},Ql={loaders:Zl,type:`oval`},$l=Qt((e,{size:t,color:n})=>({root:{"--loader-size":Pt(t,`loader-size`),"--loader-color":n?yn(n,e):void 0}})),eu=G(e=>{let t=W(`Loader`,Ql,e),{size:n,color:r,type:i,vars:a,className:o,style:s,classNames:c,styles:l,unstyled:u,loaders:d,variant:f,children:p,attributes:m,...h}=t,g=Rr({name:`Loader`,props:t,classes:ql,className:o,style:s,classNames:c,styles:l,unstyled:u,attributes:m,vars:a,varsResolver:$l});return p?(0,U.jsx)(K,{...g(`root`),...h,children:p}):(0,U.jsx)(K,{...g(`root`),component:d[i],variant:f,size:n,...h})});eu.defaultLoaders=Zl,eu.classes=ql,eu.varsResolver=$l,eu.displayName=`@mantine/core/Loader`;var tu={root:`m_8d3f4000`,icon:`m_8d3afb97`,loader:`m_302b9fb1`,group:`m_1a0f1b21`,groupSection:`m_437b6484`},nu={orientation:`horizontal`},ru=Qt((e,{borderWidth:t})=>({group:{"--ai-border-width":H(t)}})),iu=G(e=>{let t=W(`ActionIconGroup`,nu,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,orientation:s,vars:c,borderWidth:l,variant:u,mod:d,attributes:f,...p}=t,m=Rr({name:`ActionIconGroup`,props:t,classes:tu,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:c,varsResolver:ru,rootSelector:`group`});return(0,U.jsx)(K,{...m(`group`),variant:u,mod:[{orientation:s},d],role:`group`,...p})});iu.classes=tu,iu.varsResolver=ru,iu.displayName=`@mantine/core/ActionIconGroup`;var au=Qt((e,{radius:t,color:n,gradient:r,variant:i,autoContrast:a,size:o})=>{let s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:a});return{groupSection:{"--section-height":Pt(o,`section-height`),"--section-padding-x":Pt(o,`section-padding-x`),"--section-fz":Lt(o),"--section-radius":t===void 0?void 0:It(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),ou=G(e=>{let t=W(`ActionIconGroupSection`,null,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,vars:s,variant:c,gradient:l,radius:u,autoContrast:d,attributes:f,...p}=t,m=Rr({name:`ActionIconGroupSection`,props:t,classes:tu,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:au,rootSelector:`groupSection`});return(0,U.jsx)(K,{...m(`groupSection`),variant:c,...p})});ou.classes=tu,ou.varsResolver=au,ou.displayName=`@mantine/core/ActionIconGroupSection`;var su=Qt((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o})=>{let s=e.variantColorResolver({color:a||e.primaryColor,theme:e,gradient:i,variant:r||`filled`,autoContrast:o});return{root:{"--ai-size":Pt(t,`ai-size`),"--ai-radius":n===void 0?void 0:It(n),"--ai-bg":a||r?s.background:void 0,"--ai-hover":a||r?s.hover:void 0,"--ai-hover-color":a||r?s.hoverColor:void 0,"--ai-color":s.color,"--ai-bd":a||r?s.border:void 0}}}),cu=xi(e=>{let t=W(`ActionIcon`,null,e),{className:n,unstyled:r,variant:i,classNames:a,styles:o,style:s,loading:c,loaderProps:l,size:u,color:d,radius:f,__staticSelector:p,gradient:m,vars:h,children:g,disabled:_,"data-disabled":v,autoContrast:y,mod:b,attributes:x,...S}=t,C=Rr({name:[`ActionIcon`,p],props:t,className:n,style:s,classes:tu,classNames:a,styles:o,unstyled:r,attributes:x,vars:h,varsResolver:su});return(0,U.jsxs)(Qc,{...C(`root`,{active:!_&&!c&&!v}),"aria-busy":c||void 0,...S,unstyled:r,variant:i,size:u,disabled:_||c,mod:[{loading:c,disabled:_||v},b],children:[typeof c==`boolean`&&(0,U.jsx)(Ol,{mounted:c,transition:`slide-down`,duration:150,children:e=>(0,U.jsx)(K,{component:`span`,...C(`loader`,{style:e}),"aria-hidden":!0,children:(0,U.jsx)(eu,{color:`var(--ai-color)`,size:`calc(var(--ai-size) * 0.55)`,...l})})}),(0,U.jsx)(K,{component:`span`,mod:{loading:c},...C(`icon`),children:g})]})});cu.classes=tu,cu.varsResolver=su,cu.displayName=`@mantine/core/ActionIcon`,cu.Group=iu,cu.GroupSection=ou;function lu({size:e=`var(--cb-icon-size, 70%)`,style:t,...n}){return(0,U.jsx)(`svg`,{viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{...t,width:e,height:e},...n,children:(0,U.jsx)(`path`,{d:`M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}lu.displayName=`@mantine/core/CloseIcon`;var uu={root:`m_86a44da5`,"root--subtle":`m_220c80f2`},du={variant:`subtle`},fu=Qt((e,{size:t,radius:n,iconSize:r})=>({root:{"--cb-size":Pt(t,`cb-size`),"--cb-radius":n===void 0?void 0:It(n),"--cb-icon-size":H(r)}})),pu=xi(e=>{let t=W(`CloseButton`,du,e),{iconSize:n,children:r,vars:i,radius:a,className:o,classNames:s,style:c,styles:l,unstyled:u,"data-disabled":d,disabled:f,variant:p,icon:m,mod:h,attributes:g,__staticSelector:_,...v}=t,y=Rr({name:_||`CloseButton`,props:t,className:o,style:c,classes:uu,classNames:s,styles:l,unstyled:u,attributes:g,vars:i,varsResolver:fu});return(0,U.jsxs)(Qc,{...v,unstyled:u,variant:p,disabled:f,mod:[{disabled:f||d},h],...y(`root`,{variant:p,active:!f&&!d}),children:[m||(0,U.jsx)(lu,{}),r]})});pu.classes=uu,pu.varsResolver=fu,pu.displayName=`@mantine/core/CloseButton`;function mu(e){return h.Children.toArray(e).filter(Boolean)}var hu={root:`m_4081bf90`},gu={preventGrowOverflow:!0,gap:`md`,align:`center`,justify:`flex-start`,wrap:`wrap`},_u=Qt((e,{grow:t,preventGrowOverflow:n,gap:r,align:i,justify:a,wrap:o},{childWidth:s})=>({root:{"--group-child-width":t&&n?s:void 0,"--group-gap":Ft(r),"--group-align":i,"--group-justify":a,"--group-wrap":o}})),q=G(e=>{let t=W(`Group`,gu,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,children:s,gap:c,align:l,justify:u,wrap:d,grow:f,preventGrowOverflow:p,vars:m,variant:h,__size:g,mod:_,attributes:v,...y}=t,b=mu(s),x=b.length,S=Ft(c??`md`),C=Rr({name:`Group`,props:t,stylesCtx:{childWidth:`calc(${100/x}% - (${S} - ${S} / ${x}))`},className:r,style:i,classes:hu,classNames:n,styles:a,unstyled:o,attributes:v,vars:m,varsResolver:_u});return(0,U.jsx)(K,{...C(`root`),variant:h,mod:[{grow:f},_],size:g,...y,children:b})});q.classes=hu,q.varsResolver=_u,q.displayName=`@mantine/core/Group`;var[vu,yu]=Ct(`ModalBase component was not found in tree`);function bu({opened:e,transitionDuration:t}){let[n,r]=(0,h.useState)(e),i=(0,h.useRef)(-1),a=oe()?0:t;return(0,h.useEffect)(()=>(e?(r(!0),window.clearTimeout(i.current)):a===0?r(!1):i.current=window.setTimeout(()=>r(!1),a),()=>window.clearTimeout(i.current)),[e,a]),n}function xu({id:e,transitionProps:t,opened:n,trapFocus:r,closeOnEscape:i,onClose:a,returnFocus:o,handledEscapeEvents:s}){let c=R(e),[l,u]=(0,h.useState)(!1),[d,f]=(0,h.useState)(!1),p=bu({opened:n,transitionDuration:typeof t?.duration==`number`?t?.duration:200});return te(`keydown`,e=>{e.key===`Escape`&&i&&!e.isComposing&&n&&!s?.has(e)&&e.target?.getAttribute(`data-mantine-stop-propagation`)!==`true`&&(s?.add(e),a())},{capture:!0}),E({opened:n,shouldReturnFocus:r&&o}),{_id:c,titleMounted:l,bodyMounted:d,shouldLockScroll:p,setTitleMounted:u,setBodyMounted:f}}var Su=function(){return Su=Object.assign||function(e){for(var t,n=1,r=arguments.length;n`u`)return Zu;var t=$u(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},td=Xu(),nd=`data-scroll-locked`,rd=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),` + .${Du} { + overflow: hidden ${r}; + padding-right: ${s}px ${r}; + } + body[${nd}] { + overflow: hidden ${r}; + overscroll-behavior: contain; + ${[t&&`position: relative ${r};`,n===`margin`&&` + padding-left: ${i}px; + padding-top: ${a}px; + padding-right: ${o}px; + margin-left:0; + margin-top:0; + margin-right: ${s}px ${r}; + `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)} + } + + .${Tu} { + right: ${s}px ${r}; + } + + .${Eu} { + margin-right: ${s}px ${r}; + } + + .${Tu} .${Tu} { + right: 0 ${r}; + } + + .${Eu} .${Eu} { + margin-right: 0 ${r}; + } + + body[${nd}] { + ${Ou}: ${s}px; + } +`},id=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},ad=function(){h.useEffect(function(){return document.body.setAttribute(nd,(id()+1).toString()),function(){var e=id()-1;e<=0?document.body.removeAttribute(nd):document.body.setAttribute(nd,e.toString())}},[])},od=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;ad();var a=h.useMemo(function(){return ed(i)},[i]);return h.createElement(td,{styles:rd(a,!t,i,n?``:`!important`)})},sd=!1;if(typeof window<`u`)try{var cd=Object.defineProperty({},"passive",{get:function(){return sd=!0,!0}});window.addEventListener(`test`,cd,cd),window.removeEventListener(`test`,cd,cd)}catch{sd=!1}var ld=sd?{passive:!1}:!1,ud=function(e){return e.tagName===`TEXTAREA`},dd=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!ud(e)&&n[t]===`visible`)},fd=function(e){return dd(e,`overflowY`)},pd=function(e){return dd(e,`overflowX`)},md=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),_d(e,r)){var i=vd(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},hd=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},gd=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},_d=function(e,t){return e===`v`?fd(t):pd(t)},vd=function(e,t){return e===`v`?hd(t):gd(t)},yd=function(e,t){return e===`h`&&t===`rtl`?-1:1},bd=function(e,t,n,r,i){var a=yd(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=vd(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&_d(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},xd=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Sd=function(e){return[e.deltaX,e.deltaY]},Cd=function(e){return e&&`current`in e?e.current:e},wd=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Td=function(e){return` + .block-interactivity-${e} {pointer-events: none;} + .allow-interactivity-${e} {pointer-events: all;} +`},Ed=0,Dd=[];function Od(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),i=h.useState(Ed++)[0],a=h.useState(Xu)[0],o=h.useRef(e);h.useEffect(function(){o.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=wu([e.lockRef.current],(e.shards||[]).map(Cd),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=h.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=xd(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=md(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=md(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return bd(h,t,e,h===`h`?s:c,!0)},[]),c=h.useCallback(function(e){var n=e;if(Dd.length&&Dd[Dd.length-1]===a){var r=`deltaY`in n?Sd(n):xd(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&wd(e.delta,r)})[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var c=(o.current.shards||[]).map(Cd).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=h.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:kd(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=h.useCallback(function(e){n.current=xd(e),r.current=void 0},[]),d=h.useCallback(function(t){l(t.type,Sd(t),t.target,s(t,e.lockRef.current))},[]),f=h.useCallback(function(t){l(t.type,xd(t),t.target,s(t,e.lockRef.current))},[]);h.useEffect(function(){return Dd.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,ld),document.addEventListener(`touchmove`,c,ld),document.addEventListener(`touchstart`,u,ld),function(){Dd=Dd.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,ld),document.removeEventListener(`touchmove`,c,ld),document.removeEventListener(`touchstart`,u,ld)}},[]);var p=e.removeScrollBar,m=e.inert;return h.createElement(h.Fragment,null,m?h.createElement(a,{styles:Td(i)}):null,p?h.createElement(od,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function kd(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Ad=Bu(Vu,Od),jd=h.forwardRef(function(e,t){return h.createElement(Uu,Su({},e,{ref:t,sideCar:Ad}))});jd.classNames=Uu.classNames;function Md({keepMounted:e,keepMountedMode:t=`activity`,opened:n,onClose:r,id:i,transitionProps:a,onExitTransitionEnd:o,onEnterTransitionEnd:s,trapFocus:c,closeOnEscape:l,returnFocus:u,closeOnClickOutside:d,withinPortal:f,portalProps:p,lockScroll:m,children:h,zIndex:g,shadow:_,padding:v,__vars:y,unstyled:b,removeScrollProps:x,__handledEscapeEvents:S,...C}){let{_id:w,titleMounted:T,bodyMounted:E,shouldLockScroll:D,setTitleMounted:O,setBodyMounted:k}=xu({id:i,transitionProps:a,opened:n,trapFocus:c,closeOnEscape:l,onClose:r,returnFocus:u,handledEscapeEvents:S}),{key:A,...j}=x||{};return(0,U.jsx)(Sl,{...p,withinPortal:f,children:(0,U.jsx)(vu,{value:{opened:n,onClose:r,closeOnClickOutside:d,onExitTransitionEnd:o,onEnterTransitionEnd:s,transitionProps:{...a,keepMounted:e,keepMountedMode:t},getTitleId:()=>`${w}-title`,getBodyId:()=>`${w}-body`,titleMounted:T,bodyMounted:E,setTitleMounted:O,setBodyMounted:k,trapFocus:c,closeOnEscape:l,zIndex:g,unstyled:b},children:(0,U.jsx)(jd,{enabled:D&&m,...j,children:(0,U.jsx)(K,{...C,id:w,__vars:{...y,"--mb-z-index":(g||jt(`modal`)).toString(),"--mb-shadow":zt(_),"--mb-padding":Ft(v)},children:h})},A)})})}Md.displayName=`@mantine/core/ModalBase`;function Nd(){let e=yu();return(0,h.useEffect)(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}var Pd={title:`m_615af6c9`,header:`m_b5489c3c`,inner:`m_60c222c7`,content:`m_fd1ab0aa`,close:`m_606cb269`,body:`m_5df29311`};function Fd({className:e,...t}){let n=Nd(),r=yu();return(0,U.jsx)(K,{id:n,className:en({[Pd.body]:!r.unstyled},e),...t})}Fd.displayName=`@mantine/core/ModalBaseBody`;function Id({className:e,onClick:t,...n}){let r=yu();return(0,U.jsx)(pu,{...n,onClick:e=>{r.onClose(),t?.(e)},className:en({[Pd.close]:!r.unstyled},e),unstyled:r.unstyled})}Id.displayName=`@mantine/core/ModalBaseCloseButton`;function Ld({transitionProps:e,className:t,innerProps:n,onKeyDown:r,style:i,ref:a,...o}){let s=yu();return(0,U.jsx)(Ol,{mounted:s.opened,transition:`pop`,...s.transitionProps,onExited:()=>{s.onExitTransitionEnd?.(),s.transitionProps?.onExited?.()},onEntered:()=>{s.onEnterTransitionEnd?.(),s.transitionProps?.onEntered?.()},...e,children:e=>(0,U.jsx)(`div`,{...n,className:en({[Pd.inner]:!s.unstyled},n.className),children:(0,U.jsx)(Fl,{active:s.opened&&s.trapFocus,innerRef:a,children:(0,U.jsx)(rl,{...o,component:`section`,role:`dialog`,tabIndex:-1,"aria-modal":!0,"aria-describedby":s.bodyMounted?s.getBodyId():void 0,"aria-labelledby":s.titleMounted?s.getTitleId():void 0,style:[i,e],className:en({[Pd.content]:!s.unstyled},t),unstyled:s.unstyled,children:o.children})})})})}Ld.displayName=`@mantine/core/ModalBaseContent`;function Rd({className:e,...t}){let n=yu();return(0,U.jsx)(K,{component:`header`,className:en({[Pd.header]:!n.unstyled},e),...t})}Rd.displayName=`@mantine/core/ModalBaseHeader`;var zd={duration:200,timingFunction:`ease`,transition:`fade`};function Bd(e){let t=yu();return{...zd,...t.transitionProps,...e}}function Vd({onClick:e,transitionProps:t,style:n,visible:r,...i}){let a=yu(),o=Bd(t);return(0,U.jsx)(Ol,{mounted:r===void 0?a.opened:r,...o,transition:`fade`,children:t=>(0,U.jsx)(gl,{fixed:!0,style:[n,t],zIndex:a.zIndex,unstyled:a.unstyled,onClick:t=>{e?.(t),a.closeOnClickOutside&&a.onClose()},...i})})}Vd.displayName=`@mantine/core/ModalBaseOverlay`;function Hd(){let e=yu();return(0,h.useEffect)(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}function Ud({className:e,...t}){let n=Hd(),r=yu();return(0,U.jsx)(K,{component:`h2`,className:en({[Pd.title]:!r.unstyled},e),id:n,...t})}Ud.displayName=`@mantine/core/ModalBaseTitle`;function Wd({children:e}){return(0,U.jsx)(U.Fragment,{children:e})}var Gd=(0,h.createContext)({size:`sm`}),Kd=G(e=>{let t=W(`InputClearButton`,null,e),{size:n,variant:r,vars:i,classNames:a,styles:o,...s}=t,c=(0,h.use)(Gd),{resolvedClassNames:l,resolvedStyles:u}=Cr({classNames:a,styles:o,props:t});return(0,U.jsx)(pu,{variant:r||`transparent`,size:n||c?.size||`sm`,classNames:l,styles:u,__staticSelector:`InputClearButton`,style:{pointerEvents:`all`,background:`var(--input-bg)`,...s.style},...s})});Kd.displayName=`@mantine/core/InputClearButton`;var qd={xs:7,sm:8,md:10,lg:12,xl:15};function Jd({__clearable:e,__clearSection:t,rightSection:n,__defaultRightSection:r,size:i=`sm`,__clearSectionMode:a=`both`}){let o=e&&t;return a===`rightSection`?n===null?null:n||r:a===`clear`?n===null?null:o||r:o&&(n||r)?(0,U.jsxs)(`div`,{"data-combined-clear-section":!0,style:{display:`flex`,gap:2,alignItems:`center`,paddingInlineEnd:qd[i]},children:[o,n||r]}):n===null?null:n||o||r}var Yd=(0,h.createContext)({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0}),Xd={wrapper:`m_6c018570`,input:`m_8fb7ebe7`,bottomSection:`m_93f4ed57`,section:`m_82577fc2`,placeholder:`m_88bacfd0`,root:`m_46b77525`,label:`m_8fdc1311`,required:`m_78a94662`,error:`m_8f816625`,success:`m_9d9d40e0`,description:`m_fe47ce59`},Zd=Qt((e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${Lt(t)} - ${H(2)})`}})),Qd=G(e=>{let t=W(`InputDescription`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:c,__inheritStyles:l=!0,attributes:u,...d}=W(`InputDescription`,null,t),f=(0,h.use)(Yd),p=Rr({name:[`InputWrapper`,c],props:t,classes:Xd,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,rootSelector:`description`,vars:s,varsResolver:Zd}),m=l&&f?.getStyles||p;return(0,U.jsx)(K,{component:`p`,...m(`description`,f?.getStyles?{className:r,style:i}:void 0),...d})});Qd.classes=Xd,Qd.varsResolver=Zd,Qd.displayName=`@mantine/core/InputDescription`;var $d=Qt((e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${Lt(t)} - ${H(2)})`}})),ef=G(e=>{let t=W(`InputError`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,__staticSelector:l,__inheritStyles:u=!0,...d}=t,f=Rr({name:[`InputWrapper`,l],props:t,classes:Xd,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c,rootSelector:`error`,vars:s,varsResolver:$d}),p=(0,h.use)(Yd),m=u&&p?.getStyles||f;return(0,U.jsx)(K,{component:`p`,...m(`error`,p?.getStyles?{className:r,style:i}:void 0),...d})});ef.classes=Xd,ef.varsResolver=$d,ef.displayName=`@mantine/core/InputError`;var tf={labelElement:`label`},nf=Qt((e,{size:t})=>({label:{"--input-label-size":Lt(t),"--input-asterisk-color":void 0}})),rf=G(e=>{let t=W(`InputLabel`,tf,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,labelElement:c,required:l,htmlFor:u,onMouseDown:d,children:f,__staticSelector:p,mod:m,attributes:g,..._}=t,v=Rr({name:[`InputWrapper`,p],props:t,classes:Xd,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:g,rootSelector:`label`,vars:s,varsResolver:nf}),y=(0,h.use)(Yd),b=y?.getStyles||v,x=_.component||c,S=typeof x!=`string`||x===`label`;return(0,U.jsxs)(K,{...b(`label`,y?.getStyles?{className:r,style:i}:void 0),component:c,htmlFor:S?u:void 0,mod:[{required:l},m],onMouseDown:e=>{d?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault()},..._,children:[f,l&&(0,U.jsx)(`span`,{...b(`required`),"aria-hidden":!0,children:` *`})]})});rf.classes=Xd,rf.varsResolver=nf,rf.displayName=`@mantine/core/InputLabel`;var af=G(e=>{let t=W(`InputPlaceholder`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:c,error:l,mod:u,attributes:d,...f}=t,p=Rr({name:[`InputPlaceholder`,c],props:t,classes:Xd,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,rootSelector:`placeholder`});return(0,U.jsx)(K,{...p(`placeholder`),mod:[{error:!!l},u],component:`span`,...f})});af.classes=Xd,af.displayName=`@mantine/core/InputPlaceholder`;var of=Qt((e,{size:t})=>({success:{"--input-success-size":t===void 0?void 0:`calc(${Lt(t)} - ${H(2)})`}})),sf=G(e=>{let t=W(`InputSuccess`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,__staticSelector:l,__inheritStyles:u=!0,...d}=t,f=Rr({name:[`InputWrapper`,l],props:t,classes:Xd,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c,rootSelector:`success`,vars:s,varsResolver:of}),p=(0,h.use)(Yd),m=u&&p?.getStyles||f;return(0,U.jsx)(K,{component:`p`,...m(`success`,p?.getStyles?{className:r,style:i}:void 0),...d})});sf.classes=Xd,sf.varsResolver=of,sf.displayName=`@mantine/core/InputSuccess`;function cf(e,{hasDescription:t,hasError:n}){let r=e.findIndex(e=>e===`input`),i=e.slice(0,r),a=e.slice(r+1),o=t&&i.includes(`description`)||n&&i.includes(`error`);return{offsetBottom:t&&a.includes(`description`)||n&&a.includes(`error`),offsetTop:o}}var lf={labelElement:`label`,inputContainer:e=>e,inputWrapperOrder:[`label`,`description`,`input`,`error`]},uf=Qt((e,{size:t})=>({label:{"--input-label-size":Lt(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${Lt(t)} - ${H(2)})`},success:{"--input-success-size":t===void 0?void 0:`calc(${Lt(t)} - ${H(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${Lt(t)} - ${H(2)})`}})),df=G(e=>{let t=W(`InputWrapper`,lf,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,size:c,variant:l,__staticSelector:u,inputContainer:d,inputWrapperOrder:f,label:p,error:m,success:g,description:_,labelProps:v,descriptionProps:y,errorProps:b,successProps:x,labelElement:S,children:C,withAsterisk:w,id:T,required:E,__stylesApiProps:D,mod:O,attributes:k,...A}=t,j=Rr({name:[`InputWrapper`,u],props:D||t,classes:Xd,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:k,vars:s,varsResolver:uf}),M={size:c,variant:l,__staticSelector:u},N=R(T),P=typeof w==`boolean`?w:E,F=b?.id||`${N}-error`,ee=x?.id||`${N}-success`,I=y?.id||`${N}-description`,L=N,te=!!m&&typeof m!=`boolean`,ne=!!g&&typeof g!=`boolean`&&!m,re=!!_,ie=te&&f.includes(`error`),ae=ne&&f.includes(`error`),oe=re&&f.includes(`description`),z=`${ie?F:``} ${ae?ee:``} ${oe?I:``}`,se=z.trim().length>0?z.trim():void 0,ce=v?.id||`${N}-label`,B=p&&(0,U.jsx)(rf,{labelElement:S,id:ce,htmlFor:L,required:P,...M,...v,children:p},`label`),le=re&&(0,U.jsx)(Qd,{...y,...M,size:y?.size||M.size,id:y?.id||I,children:_},`description`),ue=(0,U.jsx)(h.Fragment,{children:d(C)},`input`),de=te&&(0,h.createElement)(ef,{...b,...M,size:b?.size||M.size,key:`error`,id:b?.id||F},m),fe=ne&&(0,h.createElement)(sf,{...x,...M,size:x?.size||M.size,key:`success`,id:x?.id||ee},g),pe=f.map(e=>{switch(e){case`label`:return B;case`input`:return ue;case`description`:return le;case`error`:return de||fe;default:return null}});return(0,U.jsx)(Yd,{value:{getStyles:j,describedBy:se,inputId:L,labelId:B&&f.includes(`label`)?ce:void 0,...cf(f,{hasDescription:re,hasError:te||ne})},children:(0,U.jsx)(K,{variant:l,size:c,mod:[{error:!!m,success:!!g&&!m},O],id:S===`label`?void 0:T,...j(`root`),...A,children:pe})})});df.classes=Xd,df.varsResolver=uf,df.displayName=`@mantine/core/InputWrapper`;var ff={variant:`default`,leftSectionPointerEvents:`none`,rightSectionPointerEvents:`none`,withAria:!0,withErrorStyles:!0,withSuccessStyles:!0,size:`sm`,loading:!1,loadingPosition:`right`},pf=Qt((e,t,n)=>({wrapper:{"--input-margin-top":n.offsetTop?`calc(var(--mantine-spacing-xs) / 2)`:void 0,"--input-margin-bottom":n.offsetBottom?`calc(var(--mantine-spacing-xs) / 2)`:void 0,"--input-height":Pt(t.size,`input-height`),"--input-fz":Lt(t.size),"--input-radius":t.radius===void 0?void 0:It(t.radius),"--input-left-section-width":t.leftSectionWidth===void 0?void 0:H(t.leftSectionWidth),"--input-right-section-width":t.rightSectionWidth===void 0?void 0:H(t.rightSectionWidth),"--input-padding-y":t.multiline?Pt(t.size,`input-padding-y`):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}})),mf=xi(e=>{let t=W(`Input`,ff,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,required:s,__staticSelector:c,__stylesApiProps:l,size:u,wrapperProps:d,error:f,success:p,disabled:m,leftSection:g,leftSectionProps:_,leftSectionWidth:v,rightSection:y,rightSectionProps:b,rightSectionWidth:x,rightSectionPointerEvents:S,leftSectionPointerEvents:C,variant:w,vars:T,pointer:E,multiline:D,radius:O,id:k,withAria:A,withErrorStyles:j,withSuccessStyles:M,mod:N,inputSize:P,attributes:F,__clearSection:ee,__clearable:I,__clearSectionMode:L,__defaultRightSection:R,loading:te,loadingPosition:ne,__bottomSection:re,__bottomSectionProps:ie,rootRef:ae,dir:oe,...z}=t,{styleProps:se,rest:ce}=Kr(z),B=(0,h.use)(Yd),le={offsetBottom:B?.offsetBottom,offsetTop:B?.offsetTop},ue=Rr({name:[`Input`,c],props:l||t,classes:Xd,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:F,stylesCtx:le,rootSelector:`wrapper`,vars:T,varsResolver:pf}),de=A?{required:s,disabled:m,"aria-invalid":f?!0:void 0,"aria-describedby":B?.describedBy,id:B?.inputId||k}:{},fe=te?(0,U.jsx)(eu,{size:ne===`left`?`calc(var(--input-left-section-size) / 2)`:`calc(var(--input-right-section-size) / 2)`}):null,pe=te&&ne===`left`?fe:g,me=Jd({__clearable:I,__clearSection:ee,rightSection:te&&ne===`right`?fe:y,__defaultRightSection:R,size:u,__clearSectionMode:L});return(0,U.jsx)(Gd,{value:{size:u||`sm`},children:(0,U.jsxs)(K,{ref:ae,dir:oe,...ue(`wrapper`),...se,...d,mod:[{error:!!f&&j,success:!!p&&!f&&M,pointer:E,disabled:m,multiline:D,withRightSection:!!me,withLeftSection:!!pe,withBottomSection:!!re},N],variant:w,size:u,children:[pe&&(0,U.jsx)(`div`,{..._,"data-position":`left`,...ue(`section`,{className:_?.className,style:_?.style}),children:pe}),(0,U.jsx)(K,{component:`input`,...ce,...de,required:s,mod:{disabled:m,error:!!f&&j,success:!!p&&!f&&M},variant:w,__size:P,...ue(`input`)}),re&&(0,U.jsx)(`div`,{...ie,...ue(`bottomSection`,{className:ie?.className,style:ie?.style}),children:re}),me&&(0,U.jsx)(`div`,{...b,"data-position":`right`,...ue(`section`,{className:b?.className,style:b?.style}),children:me})]})})});mf.classes=Xd,mf.varsResolver=pf,mf.Wrapper=df,mf.Label=rf,mf.Error=ef,mf.Success=sf,mf.Description=Qd,mf.Placeholder=af,mf.ClearButton=Kd,mf.displayName=`@mantine/core/Input`;function hf(e,t,n){let r=W([`Input`,`InputWrapper`,e],t,n),{label:i,description:a,error:o,success:s,required:c,classNames:l,styles:u,className:d,unstyled:f,__staticSelector:p,__stylesApiProps:m,errorProps:h,successProps:g,labelProps:_,descriptionProps:v,wrapperProps:y,id:b,size:x,style:S,inputContainer:C,inputWrapperOrder:w,withAsterisk:T,variant:E,vars:D,mod:O,attributes:k,...A}=r,{styleProps:j,rest:M}=Kr(A),N={label:i,description:a,error:o,success:s,required:c,classNames:l,className:d,__staticSelector:p,__stylesApiProps:m||r,errorProps:h,successProps:g,labelProps:_,descriptionProps:v,unstyled:f,styles:u,size:x,style:S,inputContainer:C,inputWrapperOrder:w,withAsterisk:T,variant:E,id:b,mod:O,attributes:k,...y};return{...M,classNames:l,styles:u,unstyled:f,wrapperProps:{...N,...j},inputProps:{required:c,classNames:l,styles:u,unstyled:f,size:x,__staticSelector:p,__stylesApiProps:m||r,error:o,success:s,variant:E,id:b,attributes:k}}}var gf={__staticSelector:`InputBase`,withAria:!0,size:`sm`},_f=xi(e=>{let{inputProps:t,wrapperProps:n,...r}=hf(`InputBase`,gf,e);return(0,U.jsx)(mf.Wrapper,{...n,children:(0,U.jsx)(mf,{...t,...r})})});_f.classes={...mf.classes,...mf.Wrapper.classes},_f.displayName=`@mantine/core/InputBase`;var vf={gap:{type:`spacing`,property:`gap`},rowGap:{type:`spacing`,property:`rowGap`},columnGap:{type:`spacing`,property:`columnGap`},align:{type:`identity`,property:`alignItems`},justify:{type:`identity`,property:`justifyContent`},wrap:{type:`identity`,property:`flexWrap`},direction:{type:`identity`,property:`flexDirection`}},yf={root:`m_8bffd616`},bf=xi(e=>{let t=W(`Flex`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,gap:c,rowGap:l,columnGap:u,align:d,justify:f,wrap:p,direction:m,attributes:h,...g}=t,_=Rr({name:`Flex`,classes:yf,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s}),v=sr(),y=hi(),b=mi({styleProps:{gap:c,rowGap:l,columnGap:u,align:d,justify:f,wrap:p,direction:m},theme:v,data:vf}),x=Un(),S=x&&b.hasResponsiveStyles?Gr(b.styles,b.media):y;return(0,U.jsxs)(U.Fragment,{children:[b.hasResponsiveStyles&&(0,U.jsx)(Ur,{selector:`.${S}`,styles:b.styles,media:b.media,deduplicate:x}),(0,U.jsx)(K,{..._(`root`,{className:S,style:bt(b.inlineStyles)}),...g})]})});bf.classes=yf,bf.displayName=`@mantine/core/Flex`;function xf(e,t){if(!t||!e)return!1;let n=t.parentNode;for(;n!=null;){if(n===e)return!0;n=n.parentNode}return!1}function Sf({target:e,parent:t,ref:n,displayAfterTransitionEnd:r,onTransitionStart:i,onTransitionEnd:a}){let o=(0,h.useRef)(-1),s=(0,h.useRef)(e),[c,l]=(0,h.useState)(!1),[u,d]=(0,h.useState)(typeof r==`boolean`&&r),f=()=>{if(!e||!t||!n.current)return;let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),a=t.offsetWidth===0?1:i.width/t.offsetWidth,o=t.offsetHeight===0?1:i.height/t.offsetHeight,s=window.getComputedStyle(e),c=window.getComputedStyle(t),l=Ki(s.borderTopWidth)+Ki(c.borderTopWidth),u=Ki(s.borderLeftWidth)+Ki(c.borderLeftWidth),d={top:(r.top-i.top)/o-l,left:(r.left-i.left)/a-u,width:r.width/a,height:r.height/o};n.current.style.transform=`translateY(${d.top}px) translateX(${d.left}px)`,n.current.style.width=`${d.width}px`,n.current.style.height=`${d.height}px`},p=()=>{window.clearTimeout(o.current),n.current&&(n.current.style.transitionDuration=`0ms`),f(),o.current=window.setTimeout(()=>{n.current&&(n.current.style.transitionDuration=``)},30)},m=(0,h.useRef)(null),g=(0,h.useRef)(null);return(0,h.useEffect)(()=>{if(c&&s.current!==e&&i&&i(),s.current=e,f(),e)return m.current=new ResizeObserver(p),m.current.observe(e),t&&(g.current=new ResizeObserver(p),g.current.observe(t)),()=>{m.current?.disconnect(),g.current?.disconnect()}},[t,e]),(0,h.useEffect)(()=>{if(t){let e=e=>{xf(e.target,t)&&(p(),d(!1))};return t.addEventListener(`transitionend`,e),()=>{t.removeEventListener(`transitionend`,e)}}},[t]),(0,h.useEffect)(()=>{if(n.current&&a){let e=e=>{e.propertyName===`transform`&&a()};return n.current.addEventListener(`transitionend`,e),()=>{n.current?.removeEventListener(`transitionend`,e)}}},[a]),V(()=>{Gt()!==`test`&&l(!0)},20,{autoInvoke:!0}),ye(e=>{e.forEach(e=>{e.type===`attributes`&&e.attributeName===`dir`&&p()})},{attributes:!0,attributeFilter:[`dir`]},()=>document.documentElement),{initialized:c,hidden:u}}var Cf={root:`m_96b553a6`},wf=Qt((e,{transitionDuration:t},{shouldReduceMotion:n})=>({root:{"--transition-duration":e.respectReducedMotion&&n?`0ms`:typeof t==`number`?`${t}ms`:t||`150ms`}})),Tf=G(e=>{let t=W(`FloatingIndicator`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,target:c,parent:l,transitionDuration:u,mod:d,displayAfterTransitionEnd:f,onTransitionStart:p,onTransitionEnd:m,attributes:g,ref:_,...v}=t,y=Rr({name:`FloatingIndicator`,classes:Cf,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:g,vars:s,varsResolver:wf,stylesCtx:{shouldReduceMotion:oe()}}),b=(0,h.useRef)(null),{initialized:x,hidden:S}=Sf({target:c,parent:l,ref:b,displayAfterTransitionEnd:f,onTransitionStart:p,onTransitionEnd:m}),C=ie(_,b);return!c||!l?null:(0,U.jsx)(K,{ref:C,mod:[{initialized:x,hidden:S},d],...y(`root`),...v})});Tf.displayName=`@mantine/core/FloatingIndicator`,Tf.classes=Cf,Tf.varsResolver=wf;var[Ef,Df]=Ct(`Accordion component was not found in the tree`);function Of({style:e,size:t=16,...n}){return(0,U.jsx)(`svg`,{viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{...e,width:H(t),height:H(t),display:`block`},...n,children:(0,U.jsx)(`path`,{d:`M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}Of.displayName=`@mantine/core/AccordionChevron`;var[kf,Af]=Ct(`Accordion.Item component was not found in the tree`),jf={root:`m_9bdbb667`,panel:`m_df78851f`,content:`m_4ba554d4`,itemTitle:`m_8fa820a0`,control:`m_4ba585b8`,"control--default":`m_6939a5e9`,"control--contained":`m_4271d21b`,label:`m_df3ffa0f`,chevron:`m_3f35ae96`,icon:`m_9bd771fe`,item:`m_9bd7b098`,"item--default":`m_fe19b709`,"item--contained":`m_1f921b3b`,"item--filled":`m_2cdf939a`,"item--separated":`m_9f59b069`},Mf=G(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,chevron:o,icon:s,onClick:c,onKeyDown:l,children:u,disabled:d,mod:f,...p}=W(`AccordionControl`,null,e),{value:m}=Af(),h=Df(),g=h.isItemActive(m),_=typeof h.order==`number`,v=`h${h.order}`,y=(0,U.jsxs)(Qc,{...h.getStyles(`control`,{className:n,classNames:t,style:r,styles:i,variant:h.variant}),unstyled:h.unstyled,mod:[`accordion-control`,{active:g,"chevron-position":h.chevronPosition,disabled:d},f],onClick:e=>{c?.(e),h.onChange(m)},type:`button`,disabled:d,"aria-expanded":g,"aria-controls":h.getRegionId(m),id:h.getControlId(m),onKeyDown:kt({siblingSelector:`[data-accordion-control]`,parentSelector:`[data-accordion]`,activateOnFocus:!1,loop:h.loop,orientation:`vertical`,onKeyDown:l}),...p,children:[(0,U.jsx)(K,{component:`span`,mod:{rotate:!h.disableChevronRotation&&g,position:h.chevronPosition},...h.getStyles(`chevron`,{classNames:t,styles:i}),children:o||h.chevron}),(0,U.jsx)(`span`,{...h.getStyles(`label`,{classNames:t,styles:i}),children:u}),s&&(0,U.jsx)(K,{component:`span`,mod:{"chevron-position":h.chevronPosition},...h.getStyles(`icon`,{classNames:t,styles:i}),children:s})]});return _?(0,U.jsx)(v,{...h.getStyles(`itemTitle`,{classNames:t,styles:i}),children:y}):y});Mf.displayName=`@mantine/core/AccordionControl`,Mf.classes=jf;var Nf=G(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,value:o,mod:s,...c}=W(`AccordionItem`,null,e),l=Df();return(0,U.jsx)(kf,{value:{value:o},children:(0,U.jsx)(K,{mod:[{active:l.isItemActive(o)},s],...l.getStyles(`item`,{className:n,classNames:t,styles:i,style:r,variant:l.variant}),...c})})});Nf.displayName=`@mantine/core/AccordionItem`,Nf.classes=jf;var Pf=G(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,keepMounted:s,keepMountedMode:c,...l}=W(`AccordionPanel`,null,e),{value:u}=Af(),d=Df();return(0,U.jsx)(ji,{...d.getStyles(`panel`,{className:n,classNames:t,style:r,styles:i}),expanded:d.isItemActive(u),transitionDuration:d.transitionDuration??200,role:`region`,id:d.getRegionId(u),"aria-labelledby":d.getControlId(u),keepMounted:s??d.keepMounted,keepMountedMode:c??d.keepMountedMode,...l,children:(0,U.jsx)(`div`,{...d.getStyles(`content`,{classNames:t,styles:i}),children:o})})});Pf.displayName=`@mantine/core/AccordionPanel`,Pf.classes=jf;var Ff={multiple:!1,loop:!0,disableChevronRotation:!1,disableCollapse:!1,chevronPosition:`right`,variant:`default`,chevronSize:`auto`,chevronIconSize:16,keepMountedMode:`activity`},If=Qt((e,{transitionDuration:t,chevronSize:n,radius:r})=>({root:{"--accordion-transition-duration":t===void 0?void 0:`${t}ms`,"--accordion-chevron-size":n===void 0?void 0:H(n),"--accordion-radius":r===void 0?void 0:It(r)}})),Lf=bi(e=>{let t=W(`Accordion`,Ff,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,multiple:l,value:u,defaultValue:d,onChange:f,id:p,loop:m,transitionDuration:h,disableChevronRotation:g,disableCollapse:_,chevronPosition:v,chevronSize:y,order:b,chevron:x,variant:S,radius:C,chevronIconSize:w,attributes:T,keepMounted:E,keepMountedMode:D,...O}=t,k=R(p),[A,j]=ae({value:u,defaultValue:d,finalValue:l?[]:null,onChange:f}),M=e=>Array.isArray(A)?A.includes(e):e===A,N=e=>{if(!Array.isArray(A)&&_&&e===A)return;let t=Array.isArray(A)?A.includes(e)?A.filter(t=>t!==e):[...A,e]:e===A?null:e;j(t)},P=Rr({name:`Accordion`,classes:jf,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:T,vars:s,varsResolver:If});return(0,U.jsx)(Ef,{value:{isItemActive:M,onChange:N,getControlId:wt(`${k}-control`,`Accordion.Item component was rendered with invalid value or without value`),getRegionId:wt(`${k}-panel`,`Accordion.Item component was rendered with invalid value or without value`),chevron:x===null?null:x||(0,U.jsx)(Of,{size:w}),transitionDuration:h,disableChevronRotation:g,chevronPosition:v,order:b,loop:m,getStyles:P,variant:S,unstyled:o,keepMounted:E,keepMountedMode:D},children:(0,U.jsx)(K,{...P(`root`),id:k,...O,variant:S,"data-accordion":!0,children:c})})});Lf.classes=jf,Lf.varsResolver=If,Lf.displayName=`@mantine/core/Accordion`,Lf.Item=Nf,Lf.Panel=Pf,Lf.Control=Mf,Lf.Chevron=Of;var Rf={root:`m_b6d8b162`};function zf(e){if(e===`start`)return`start`;if(e===`end`||e)return`end`}var Bf={inherit:!1},Vf=Qt((e,{variant:t,lineClamp:n,gradient:r,size:i,textWrap:a})=>({root:{"--text-fz":Lt(i),"--text-lh":Rt(i),"--text-gradient":t===`gradient`?wn(r,e):void 0,"--text-line-clamp":typeof n==`number`?n.toString():void 0,"--text-text-wrap":a}})),J=xi(e=>{let t=W(`Text`,Bf,e),{lineClamp:n,truncate:r,inline:i,inherit:a,gradient:o,span:s,textWrap:c,__staticSelector:l,vars:u,className:d,style:f,classNames:p,styles:m,unstyled:h,variant:g,mod:_,size:v,attributes:y,...b}=t,x=Rr({name:[`Text`,l],props:t,classes:Rf,className:d,style:f,classNames:p,styles:m,unstyled:h,attributes:y,vars:u,varsResolver:Vf});return(0,U.jsx)(K,{...x(`root`,{focusable:!0}),component:s?`span`:`p`,variant:g,mod:[{truncate:zf(r),lineClamp:typeof n==`number`,inline:i,inherit:a},_],size:v,...b})});J.classes=Rf,J.varsResolver=Vf,J.displayName=`@mantine/core/Text`;var[Hf,Uf]=Ct(`AppShell was not found in tree`);function Wf({size:e,min:t,max:n,viewportMax:r}){let i=Math.min(n??1/0,r);return Math.max(Math.min(t??0,i),Math.min(e,i))}function Gf(e,t){return t!==void 0&&ed.axis===`horizontal`?window.innerWidth:window.innerHeight,[m,g]=(0,h.useState)(0),[_,v]=(0,h.useState)(void 0),y=()=>p()/u.scale,b=e=>{let t=e.getBoundingClientRect();return((d.axis===`horizontal`?t.width:t.height)-Yf(e,d.safeAreaVariable))/u.scale},x=t=>{let r=n.rootRef.current;if(!r)return;let i=H(t);r.style.setProperty(d.sizeVariable,i),n.resizeOffsets[e]&&r.style.setProperty(d.offsetVariable,i),n.mode===`static`&&d.gridWidthVariable&&r.style.setProperty(d.gridWidthVariable,i)},S=()=>{let e=n.rootRef.current;e&&(e.style.removeProperty(d.sizeVariable),e.style.removeProperty(d.offsetVariable),d.gridWidthVariable&&e.style.removeProperty(d.gridWidthVariable))},w=()=>{s.current?.abort(),s.current=null,o.current=null;let e=c.current;c.current=null,e&&(ep(`user-select`,e.userSelect),ep(`-webkit-user-select`,e.webkitUserSelect),ep(`cursor`,e.cursor))},T=()=>{r?.reportCollapse(e,Gf(a.current.startSize,f.collapseThreshold)),r?.endResize(e,null)},E=t=>{if(t.pointerId!==o.current)return;a.current.moved=!0;let n=Jf({section:e,deltaX:t.clientX-a.current.startX,deltaY:t.clientY-a.current.startY,dir:l})/u.scale,s=a.current.startSize+n,c=Wf({size:s,min:f.min,max:f.max,viewportMax:y()});a.current.size=c,x(c),i.current?.setAttribute(`aria-valuenow`,String(Math.round(c))),r?.previewResize(e,c),r?.reportCollapse(e,Gf(s,f.collapseThreshold))},D=t=>{t.pointerId===o.current&&(w(),a.current.moved?r?.endResize(e,a.current.size):r?.endResize(e,null))},O=e=>{e.pointerId===o.current&&(w(),S(),T())},k=e=>{e.key===`Escape`&&(e.preventDefault(),w(),S(),i.current?.setAttribute(`aria-valuenow`,String(Math.round(a.current.startSize))),T())},A=()=>{let t=r?.[e].size;if(t!==void 0)return t;let n=i.current?.parentElement;return n?b(n):0},j=t=>{r?.initCollapse(e,Gf(A(),f.collapseThreshold)),r?.reportCollapse(e,Gf(t,f.collapseThreshold)),r?.endResize(e,Wf({size:t,min:f.min,max:f.max,viewportMax:y()}))},M=t=>{let n=t.shiftKey?Qf:Zf;if(t.key===`Home`){t.preventDefault(),j(f.min??0);return}if(t.key===`End`){t.preventDefault(),j(f.max??y());return}let r=$f[t.key];if(!r)return;let i=Jf({section:e,...r,dir:l});i!==0&&(t.preventDefault(),j(A()+i*n))},N=()=>{S(),r?.[e].reset()},P=t=>{if(t.button!==0||s.current!==null)return;let n=i.current?.parentElement;if(!n)return;let l=b(n);a.current={startSize:l,startX:t.clientX,startY:t.clientY,size:l,moved:!1},o.current=t.pointerId,r?.initCollapse(e,Gf(l,f.collapseThreshold));let u=new AbortController;s.current=u;let{signal:p}=u;c.current={userSelect:document.body.style.getPropertyValue(`user-select`),webkitUserSelect:document.body.style.getPropertyValue(`-webkit-user-select`),cursor:document.body.style.getPropertyValue(`cursor`)},document.body.style.setProperty(`user-select`,`none`),document.body.style.setProperty(`-webkit-user-select`,`none`),document.body.style.setProperty(`cursor`,d.axis===`horizontal`?`col-resize`:`row-resize`),r?.startResize(e),document.addEventListener(`pointermove`,E,{signal:p}),document.addEventListener(`pointerup`,D,{signal:p}),document.addEventListener(`pointercancel`,O,{signal:p}),document.addEventListener(`keydown`,k,{signal:p})};if(C(()=>{r&&r.activeSection!==e&&S()},[r?.activeSection,r?.[e].size]),C(()=>{g(p());let e=()=>g(p());return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[d.axis]),C(()=>{r?.[e].size===void 0&&v(A())},[r?.[e].size,m]),C(()=>()=>{let e=s.current!==null;w(),S(),e&&T()},[]),!r?.[e].enabled)return null;let F=m/u.scale,ee=Math.min(f.max??F,F),I=r[e].size,L=I!==void 0&&m>0?Math.min(I,F):I??_;return(0,U.jsx)(K,{ref:i,role:`separator`,tabIndex:0,"aria-label":f.label??Xf[e],"aria-controls":t,"aria-orientation":d.orientation,"aria-valuemin":f.min??0,"aria-valuemax":Math.round(ee),"aria-valuenow":L===void 0?void 0:Math.round(L),onPointerDown:P,onKeyDown:M,onDoubleClick:N,mod:{section:e,orientation:d.orientation,active:r[e].active},...n.getStyles(`resizeHandle`)})}tp.displayName=`@mantine/core/AppShellResizeHandle`;var np={root:`m_89ab340`,navbar:`m_45252eee`,aside:`m_9cdde9a`,header:`m_3b16f56b`,main:`m_8983817`,footer:`m_3840c879`,section:`m_6dcfc7c7`,resizeHandle:`m_3b25945a`},rp=G(e=>{let{classNames:t,className:n,style:r,styles:i,unstyled:a,vars:o,withBorder:s,zIndex:c,mod:l,...u}=W(`AppShellAside`,null,e),d=Uf(),f=R(u.id);if(d.disabled)return null;let p=d.resize?.aside.enabled??!1,m=d.getStyles(`aside`,{className:en({[jd.classNames.zeroRight]:d.offsetScrollbars},n),classNames:t,styles:i,style:r});if(!p)return(0,U.jsx)(K,{component:`aside`,mod:[{"with-border":s??d.withBorder},l],...m,...u,__vars:{"--app-shell-aside-z-index":`calc(${c??d.zIndex} + 1)`}});let{children:h,dangerouslySetInnerHTML:g,..._}=u;return(0,U.jsxs)(K,{component:`aside`,mod:[{"with-border":s??d.withBorder},l],...m,..._,__vars:{"--app-shell-aside-z-index":`calc(${c??d.zIndex} + 1)`},id:f,children:[g?(0,U.jsx)(`div`,{style:{display:`contents`},dangerouslySetInnerHTML:g}):h,(0,U.jsx)(tp,{section:`aside`,sectionId:f})]})});rp.classes=np,rp.displayName=`@mantine/core/AppShellAside`;var ip=G(e=>{let{classNames:t,className:n,style:r,styles:i,unstyled:a,vars:o,withBorder:s,zIndex:c,mod:l,...u}=W(`AppShellFooter`,null,e),d=Uf(),f=R(u.id);if(d.disabled)return null;let p=d.resize?.footer.enabled??!1,m=d.getStyles(`footer`,{className:en({[jd.classNames.zeroRight]:d.offsetScrollbars},n),classNames:t,styles:i,style:r});if(!p)return(0,U.jsx)(K,{component:`footer`,mod:[{"with-border":s??d.withBorder},l],...m,...u,__vars:{"--app-shell-footer-z-index":(c??d.zIndex)?.toString()}});let{children:h,dangerouslySetInnerHTML:g,..._}=u;return(0,U.jsxs)(K,{component:`footer`,mod:[{"with-border":s??d.withBorder},l],...m,..._,__vars:{"--app-shell-footer-z-index":(c??d.zIndex)?.toString()},id:f,children:[g?(0,U.jsx)(`div`,{style:{display:`contents`},dangerouslySetInnerHTML:g}):h,(0,U.jsx)(tp,{section:`footer`,sectionId:f})]})});ip.classes=np,ip.displayName=`@mantine/core/AppShellFooter`;var ap=G(e=>{let{classNames:t,className:n,style:r,styles:i,unstyled:a,vars:o,withBorder:s,zIndex:c,mod:l,...u}=W(`AppShellHeader`,null,e),d=Uf(),f=R(u.id);if(d.disabled)return null;let p=d.resize?.header.enabled??!1,m=d.getStyles(`header`,{className:en({[jd.classNames.zeroRight]:d.offsetScrollbars},n),classNames:t,styles:i,style:r});if(!p)return(0,U.jsx)(K,{component:`header`,mod:[{"with-border":s??d.withBorder},l],...m,...u,__vars:{"--app-shell-header-z-index":(c??d.zIndex)?.toString()}});let{children:h,dangerouslySetInnerHTML:g,..._}=u;return(0,U.jsxs)(K,{component:`header`,mod:[{"with-border":s??d.withBorder},l],...m,..._,__vars:{"--app-shell-header-z-index":(c??d.zIndex)?.toString()},id:f,children:[g?(0,U.jsx)(`div`,{style:{display:`contents`},dangerouslySetInnerHTML:g}):h,(0,U.jsx)(tp,{section:`header`,sectionId:f})]})});ap.classes=np,ap.displayName=`@mantine/core/AppShellHeader`;var op=G(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`AppShellMain`,null,e),s=Uf();return(0,U.jsx)(K,{component:`main`,...s.getStyles(`main`,{className:n,style:r,classNames:t,styles:i}),...o})});op.classes=np,op.displayName=`@mantine/core/AppShellMain`;var sp=G(e=>{let{classNames:t,className:n,style:r,styles:i,unstyled:a,vars:o,withBorder:s,zIndex:c,mod:l,...u}=W(`AppShellNavbar`,null,e),d=Uf(),f=R(u.id);if(d.disabled)return null;let p=d.resize?.navbar.enabled??!1,m=d.getStyles(`navbar`,{className:n,classNames:t,styles:i,style:r});if(!p)return(0,U.jsx)(K,{component:`nav`,mod:[{"with-border":s??d.withBorder},l],...m,...u,__vars:{"--app-shell-navbar-z-index":`calc(${c??d.zIndex} + 1)`}});let{children:h,dangerouslySetInnerHTML:g,..._}=u;return(0,U.jsxs)(K,{component:`nav`,mod:[{"with-border":s??d.withBorder},l],...m,..._,__vars:{"--app-shell-navbar-z-index":`calc(${c??d.zIndex} + 1)`},id:f,children:[g?(0,U.jsx)(`div`,{style:{display:`contents`},dangerouslySetInnerHTML:g}):h,(0,U.jsx)(tp,{section:`navbar`,sectionId:f})]})});sp.classes=np,sp.displayName=`@mantine/core/AppShellNavbar`;var cp=xi(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,grow:o,mod:s,...c}=W(`AppShellSection`,null,e),l=Uf();return(0,U.jsx)(K,{mod:[{grow:o},s],...l.getStyles(`section`,{className:n,style:r,classNames:t,styles:i}),...c})});cp.classes=np,cp.displayName=`@mantine/core/AppShellSection`;function lp(e){return typeof e==`object`?e.base:e}function up(e,t){return`min(${H(e)}, ${t===`horizontal`?`100vw`:`100dvh`})`}function dp(e){let t=typeof e==`object`&&!!e&&e.base!==void 0&&Object.keys(e).length===1;return typeof e==`number`||typeof e==`string`||t}function fp(e){return!(typeof e!=`object`||!e||Object.keys(e).length===1&&`base`in e)}function pp({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,aside:r,theme:i,mode:a,resizedSize:o,resizable:s}){let c=r?.width,l=`translateX(var(--app-shell-aside-width))`,u=`translateX(calc(var(--app-shell-aside-width) * -1))`;if(r?.breakpoint!==void 0&&!r?.collapsed?.mobile&&(n[r?.breakpoint]=n[r?.breakpoint]||{},a===`fixed`?(n[r?.breakpoint][`--app-shell-aside-width`]=`100%`,n[r?.breakpoint][`--app-shell-aside-offset`]=`0px`):(n[r?.breakpoint][`--app-shell-aside-width`]=`0px`,n[r?.breakpoint][`--app-shell-aside-offset`]=`0px`),s&&(n[r.breakpoint][`--app-shell-aside-resize-handle-display`]=`none`)),o!==void 0){let t=up(o,`horizontal`);e[`--app-shell-aside-width`]=t,e[`--app-shell-aside-offset`]=t,a===`static`&&(e[`--app-shell-aside-grid-width`]=t)}else{if(dp(c)){let t=H(lp(c));e[`--app-shell-aside-width`]=t,e[`--app-shell-aside-offset`]=t}fp(c)&&(c.base!==void 0&&(e[`--app-shell-aside-width`]=H(c.base),e[`--app-shell-aside-offset`]=H(c.base)),dt(c).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-aside-width`]=H(c[e]),t[e][`--app-shell-aside-offset`]=H(c[e]))}))}if(r?.breakpoint!==void 0&&a===`static`&&(t[r.breakpoint]=t[r.breakpoint]||{},t[r.breakpoint][`--app-shell-aside-position`]=`sticky`,t[r.breakpoint][`--app-shell-aside-grid-row`]=`2`,t[r.breakpoint][`--app-shell-aside-grid-column`]=`3`,t[r.breakpoint][`--app-shell-main-column-end`]=`3`),r?.collapsed?.desktop){let e=r.breakpoint;t[e]=t[e]||{},t[e][`--app-shell-aside-transform`]=l,t[e][`--app-shell-aside-transform-rtl`]=u,a===`fixed`?t[e][`--app-shell-aside-offset`]=`0px !important`:(t[e][`--app-shell-aside-width`]=`0px`,t[e][`--app-shell-aside-display`]=`none`,t[e][`--app-shell-main-column-end`]=`-1`),t[e][`--app-shell-aside-scroll-locked-visibility`]=`hidden`,s&&(t[e][`--app-shell-aside-resize-handle-display`]=`none`)}if(r?.collapsed?.mobile){let e=Vt(r.breakpoint,i.breakpoints)-.1;n[e]=n[e]||{},a===`fixed`?(n[e][`--app-shell-aside-width`]=`100%`,n[e][`--app-shell-aside-offset`]=`0px`):n[e][`--app-shell-aside-width`]=`0px`,n[e][`--app-shell-aside-transform`]=l,n[e][`--app-shell-aside-transform-rtl`]=u,n[e][`--app-shell-aside-scroll-locked-visibility`]=`hidden`,s&&(n[e][`--app-shell-aside-resize-handle-display`]=`none`)}}function mp({baseStyles:e,minMediaStyles:t,footer:n,mode:r,resizedSize:i,resizable:a}){let o=n?.height,s=r===`static`?!0:n?.offset??!0;if(r===`static`&&n&&(e[`--app-shell-footer-position`]=`sticky`,e[`--app-shell-footer-grid-column`]=`1 / -1`,e[`--app-shell-footer-grid-row`]=`3`),i!==void 0){let t=up(i,`vertical`);e[`--app-shell-footer-height`]=t,s&&(e[`--app-shell-footer-offset`]=t)}else{if(dp(o)){let t=H(lp(o));e[`--app-shell-footer-height`]=t,s&&(e[`--app-shell-footer-offset`]=t)}fp(o)&&(o.base!==void 0&&(e[`--app-shell-footer-height`]=H(o.base),s&&(e[`--app-shell-footer-offset`]=H(o.base))),dt(o).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-footer-height`]=H(o[e]),s&&(t[e][`--app-shell-footer-offset`]=H(o[e])))}))}n?.collapsed&&(e[`--app-shell-footer-transform`]=`translateY(var(--app-shell-footer-height))`,r===`fixed`&&(e[`--app-shell-footer-offset`]=`0px !important`),a&&(e[`--app-shell-footer-resize-handle-display`]=`none`))}function hp({baseStyles:e,minMediaStyles:t,header:n,mode:r,resizedSize:i,resizable:a}){let o=n?.height,s=r===`static`?!0:n?.offset??!0;if(r===`static`&&n&&(e[`--app-shell-header-position`]=`sticky`,e[`--app-shell-header-grid-column`]=`1 / -1`,e[`--app-shell-header-grid-row`]=`1`),i!==void 0){let t=up(i,`vertical`);e[`--app-shell-header-height`]=t,s&&(e[`--app-shell-header-offset`]=t)}else{if(dp(o)){let t=H(lp(o));e[`--app-shell-header-height`]=t,s&&(e[`--app-shell-header-offset`]=t)}fp(o)&&(o.base!==void 0&&(e[`--app-shell-header-height`]=H(o.base),s&&(e[`--app-shell-header-offset`]=H(o.base))),dt(o).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-header-height`]=H(o[e]),s&&(t[e][`--app-shell-header-offset`]=H(o[e])))}))}n?.collapsed&&(e[`--app-shell-header-transform`]=`translateY(calc(var(--app-shell-header-height) * -1))`,r===`fixed`&&(e[`--app-shell-header-offset`]=`0px !important`),a&&(e[`--app-shell-header-resize-handle-display`]=`none`))}function gp({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,navbar:r,theme:i,mode:a,resizedSize:o,resizable:s}){let c=r?.width,l=`translateX(calc(var(--app-shell-navbar-width) * -1))`,u=`translateX(var(--app-shell-navbar-width))`;if(r?.breakpoint!==void 0&&!r?.collapsed?.mobile&&(n[r?.breakpoint]=n[r?.breakpoint]||{},n[r?.breakpoint][`--app-shell-navbar-offset`]=`0px`,n[r?.breakpoint][`--app-shell-navbar-width`]=`100%`,a===`static`&&(n[r?.breakpoint][`--app-shell-navbar-grid-width`]=`0px`),s&&(n[r.breakpoint][`--app-shell-navbar-resize-handle-display`]=`none`)),o!==void 0){let t=up(o,`horizontal`);e[`--app-shell-navbar-width`]=t,e[`--app-shell-navbar-offset`]=t,a===`static`&&(e[`--app-shell-navbar-grid-width`]=t)}else{if(dp(c)){let t=H(lp(c));e[`--app-shell-navbar-width`]=t,e[`--app-shell-navbar-offset`]=t,a===`static`&&(e[`--app-shell-navbar-grid-width`]=t)}fp(c)&&(c.base!==void 0&&(e[`--app-shell-navbar-width`]=H(c.base),e[`--app-shell-navbar-offset`]=H(c.base),a===`static`&&(e[`--app-shell-navbar-grid-width`]=H(c.base))),dt(c).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-navbar-width`]=H(c[e]),t[e][`--app-shell-navbar-offset`]=H(c[e]),a===`static`&&(t[e][`--app-shell-navbar-grid-width`]=H(c[e])))}))}if(r?.breakpoint!==void 0&&a===`static`&&(t[r.breakpoint]=t[r.breakpoint]||{},t[r.breakpoint][`--app-shell-navbar-position`]=`sticky`,t[r.breakpoint][`--app-shell-navbar-grid-row`]=`2`,t[r.breakpoint][`--app-shell-navbar-grid-column`]=`1`,t[r.breakpoint][`--app-shell-main-column-start`]=`2`),r?.collapsed?.desktop){let e=r.breakpoint;t[e]=t[e]||{},t[e][`--app-shell-navbar-transform`]=l,t[e][`--app-shell-navbar-transform-rtl`]=u,a===`fixed`?t[e][`--app-shell-navbar-offset`]=`0px !important`:(t[e][`--app-shell-navbar-width`]=`0px`,t[e][`--app-shell-navbar-display`]=`none`,t[e][`--app-shell-main-column-start`]=`1`),s&&(t[e][`--app-shell-navbar-resize-handle-display`]=`none`)}if(r?.collapsed?.mobile){let e=Vt(r.breakpoint,i.breakpoints)-.1;n[e]=n[e]||{},n[e][`--app-shell-navbar-width`]=`100%`,n[e][`--app-shell-navbar-offset`]=`0px`,a===`static`&&(n[e][`--app-shell-navbar-grid-width`]=`0px`),n[e][`--app-shell-navbar-transform`]=l,n[e][`--app-shell-navbar-transform-rtl`]=u,s&&(n[e][`--app-shell-navbar-resize-handle-display`]=`none`)}}function _p(e){return Number(e)===0?`0px`:Ft(e)}function vp({padding:e,baseStyles:t,minMediaStyles:n}){dp(e)&&(t[`--app-shell-padding`]=_p(lp(e))),fp(e)&&(e.base&&(t[`--app-shell-padding`]=_p(e.base)),dt(e).forEach(t=>{t!==`base`&&(n[t]=n[t]||{},n[t][`--app-shell-padding`]=_p(e[t]))}))}function yp({navbar:e,header:t,footer:n,aside:r,padding:i,theme:a,mode:o,resize:s}){let c={},l={},u={};o===`static`&&(u[`--app-shell-main-grid-column`]=`1 / -1`,u[`--app-shell-main-grid-row`]=`2`),gp({baseStyles:u,minMediaStyles:c,maxMediaStyles:l,navbar:e,theme:a,mode:o,resizedSize:s?.sizes.navbar,resizable:s?.enabled.navbar}),pp({baseStyles:u,minMediaStyles:c,maxMediaStyles:l,aside:r,theme:a,mode:o,resizedSize:s?.sizes.aside,resizable:s?.enabled.aside}),hp({baseStyles:u,minMediaStyles:c,header:t,mode:o,resizedSize:s?.sizes.header,resizable:s?.enabled.header}),mp({baseStyles:u,minMediaStyles:c,footer:n,mode:o,resizedSize:s?.sizes.footer,resizable:s?.enabled.footer}),vp({baseStyles:u,minMediaStyles:c,padding:i});let d=Ht(dt(c),a.breakpoints).map(e=>({query:`(min-width: ${yt(e.px)})`,styles:c[e.value]})),f=Ht(dt(l),a.breakpoints).map(e=>({query:`(max-width: ${yt(e.px)})`,styles:l[e.value]}));return{baseStyles:u,media:[...d,...f]}}function bp({navbar:e,header:t,aside:n,footer:r,padding:i,mode:a,selector:o,resize:s}){let c=sr(),l=Pn(),{media:u,baseStyles:d}=yp({navbar:e,header:t,footer:r,aside:n,padding:i,theme:c,mode:a,resize:s});return(0,U.jsx)(Ur,{media:u,styles:d,selector:o||l.cssVariablesSelector})}function xp(e){return e>=128||e===45||e===95||e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function Sp(e){return e>=48&&e<=57}function Cp(e){let t=``;for(let n=0;n=1&&r<=31||r===127||n===0&&Sp(r)||n===1&&Sp(r)&&e.charCodeAt(0)===45?t+=`\\${r.toString(16)} `:n===0&&e.length===1&&r===45?t+=`\\${i}`:xp(r)?t+=i:t+=`\\${i}`}return t}function wp({transitionDuration:e,disabled:t,resizeKey:n}){let[r,i]=(0,h.useState)(!0),[a,o]=(0,h.useState)({key:n,active:!1}),s=(0,h.useRef)(-1),c=(0,h.useRef)(-1);return a.key!==n&&o({key:n,active:!0}),(0,h.useEffect)(()=>{if(!a.active)return;let t=window.setTimeout(()=>(0,h.startTransition)(()=>{o(e=>({...e,active:!1}))}),e||0);return()=>window.clearTimeout(t)},[a,e]),te(`resize`,()=>{i(!0),clearTimeout(s.current),s.current=window.setTimeout(()=>(0,h.startTransition)(()=>{i(!1)}),200)}),C(()=>{i(!0),clearTimeout(c.current),c.current=window.setTimeout(()=>(0,h.startTransition)(()=>{i(!1)}),e||0)},[t,e]),r||a.active}var Tp={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:`ease`,zIndex:jt(`app`),mode:`fixed`},Ep=Qt((e,{transitionDuration:t,transitionTimingFunction:n})=>({root:{"--app-shell-transition-duration":`${t}ms`,"--app-shell-transition-timing-function":n,"--app-shell-resize-handle-size":void 0}})),Dp=G(e=>{let t=W(`AppShell`,Tp,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,navbar:c,withBorder:l,padding:u,transitionDuration:d,transitionTimingFunction:f,header:p,zIndex:m,layout:g,disabled:_,aside:v,footer:y,offsetScrollbars:b=!0,mode:x,mod:S,attributes:C,id:w,resize:T,ref:E,...D}=t,O=Rr({name:`AppShell`,classes:np,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:C,vars:s,varsResolver:Ep}),k=wp({disabled:_,transitionDuration:d,resizeKey:T?qf.map(e=>T.sizes[e]).join(`|`):void 0}),A=R(w),j=(0,h.useRef)(null),M=T?{sizes:T.sizes,enabled:{navbar:T.navbar.enabled,aside:T.aside.enabled,header:T.header.enabled,footer:T.footer.enabled}}:void 0,N={navbar:!0,aside:!0,header:x===`static`?!0:p?.offset??!0,footer:x===`static`?!0:y?.offset??!0};return(0,U.jsxs)(Hf,{value:{getStyles:O,withBorder:l,zIndex:m,disabled:_,offsetScrollbars:b,mode:x,resize:T,rootRef:j,resizeOffsets:N},children:[(0,U.jsx)(bp,{navbar:c,header:p,aside:v,footer:y,padding:u,mode:x,resize:M,selector:T||x===`static`?`#${Cp(A)}`:void 0}),(0,U.jsx)(K,{...O(`root`),id:A,ref:ie(E,j),mod:[{resizing:k||T?.activeSection!=null,layout:g,disabled:_,mode:x},S],...D})]})});Dp.classes=np,Dp.varsResolver=Ep,Dp.displayName=`@mantine/core/AppShell`,Dp.Navbar=sp,Dp.Header=ap,Dp.Main=op,Dp.Aside=rp,Dp.Footer=ip,Dp.Section=cp;function Op(e){return typeof e==`string`?{value:e,label:e}:typeof e==`object`&&`value`in e&&!(`label`in e)?{value:e.value,label:`${e.value}`,disabled:e.disabled}:typeof e==`object`&&`group`in e?{group:e.group,items:e.items.map(e=>Op(e))}:typeof e==`number`||typeof e==`bigint`||typeof e==`boolean`?{value:e,label:`${e}`}:e}function kp(e){return e?e.map(e=>Op(e)):[]}function Ap(e){return e.reduce((e,t)=>`group`in t?{...e,...Ap(t.items)}:(e[`${t.value}`]=t,e),{})}var jp={dropdown:`m_88b62a41`,search:`m_985517d8`,options:`m_b2821a6e`,option:`m_92253aa5`,empty:`m_2530cd1d`,header:`m_858f94bd`,footer:`m_82b967cb`,group:`m_254f3e4f`,groupLabel:`m_2bb2e9e5`,chevron:`m_2943220b`,optionsDropdownOption:`m_390b5f4`,optionsDropdownCheckIcon:`m_8ee53fc2`,optionsDropdownCheckPlaceholder:`m_a530ee0a`},Mp={error:null},Np=Qt((e,{size:t,color:n})=>({chevron:{"--combobox-chevron-size":Pt(t,`combobox-chevron-size`),"--combobox-chevron-color":n?yn(n,e):void 0}})),Pp=G(e=>{let t=W(`ComboboxChevron`,Mp,e),{size:n,error:r,style:i,className:a,classNames:o,styles:s,unstyled:c,vars:l,attributes:u,mod:d,...f}=t,p=Rr({name:`ComboboxChevron`,classes:jp,props:t,style:i,className:a,classNames:o,styles:s,unstyled:c,vars:l,varsResolver:Np,attributes:u,rootSelector:`chevron`});return(0,U.jsx)(K,{component:`svg`,...f,...p(`chevron`),size:n,viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,mod:[`combobox-chevron`,{error:r},d],children:(0,U.jsx)(`path`,{d:`M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})});Pp.classes=jp,Pp.varsResolver=Np,Pp.displayName=`@mantine/core/ComboboxChevron`;var[Fp,Ip]=Ct(`Combobox component was not found in tree`);function Lp({onMouseDown:e,onClick:t,onClear:n,...r}){return(0,U.jsx)(mf.ClearButton,{tabIndex:-1,"aria-hidden":!0,...r,onMouseDown:t=>{t.preventDefault(),e?.(t)},onClick:e=>{n(),t?.(e)}})}Lp.displayName=`@mantine/core/ComboboxClearButton`;var Rp=G(e=>{let{classNames:t,styles:n,className:r,style:i,hidden:a,...o}=W(`ComboboxDropdown`,null,e),s=Ip();return(0,U.jsx)(Kl.Dropdown,{...o,role:`presentation`,"data-hidden":a||void 0,"data-floating-height":s.floatingHeight||void 0,...s.getStyles(`dropdown`,{className:r,style:i,classNames:t,styles:n})})});Rp.classes=jp,Rp.displayName=`@mantine/core/ComboboxDropdown`;var zp={refProp:`ref`},Bp=G(e=>{let{children:t,refProp:n,ref:r}=W(`ComboboxDropdownTarget`,zp,e);if(Ip(),!St(t))throw Error(`Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);return(0,U.jsx)(Kl.Target,{ref:r,refProp:n,children:t})});Bp.displayName=`@mantine/core/ComboboxDropdownTarget`;var Vp=G(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`ComboboxEmpty`,null,e),s=Ip();return(0,U.jsx)(K,{...s.getStyles(`empty`,{className:n,classNames:t,styles:i,style:r}),...o})});Vp.classes=jp,Vp.displayName=`@mantine/core/ComboboxEmpty`;function Hp({onKeyDown:e,onClick:t,withKeyboardNavigation:n,withAriaAttributes:r,withExpandedAttribute:i,targetType:a,autoComplete:o}){let s=Ip(),[c,l]=(0,h.useState)(null),u=t=>{if(e?.(t),!s.readOnly&&n){if(t.nativeEvent.isComposing)return;if(t.nativeEvent.code===`ArrowDown`&&(t.preventDefault(),s.store.dropdownOpened?l(s.store.selectNextOption()):(s.store.openDropdown(`keyboard`),l(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex(`selected`,{scrollIntoView:!0}))),t.nativeEvent.code===`ArrowUp`&&(t.preventDefault(),s.store.dropdownOpened?l(s.store.selectPreviousOption()):(s.store.openDropdown(`keyboard`),l(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex(`selected`,{scrollIntoView:!0}))),t.nativeEvent.code===`Enter`||t.nativeEvent.code===`NumpadEnter`){if(t.nativeEvent.keyCode===229)return;let e=s.store.getSelectedOptionIndex();s.store.dropdownOpened&&e!==-1?(t.preventDefault(),s.store.clickSelectedOption()):a===`button`&&(t.preventDefault(),s.store.openDropdown(`keyboard`))}t.key===`Escape`&&s.store.closeDropdown(`keyboard`),t.nativeEvent.code===`Space`&&a===`button`&&(t.preventDefault(),s.store.toggleDropdown(`keyboard`))}},d=r?{...i?{role:`combobox`}:{},"aria-haspopup":`listbox`,"aria-expanded":i?!!(s.store.listId&&s.store.dropdownOpened):void 0,"aria-controls":s.store.dropdownOpened&&s.store.listId?s.store.listId:void 0,"aria-activedescendant":s.store.dropdownOpened&&c||void 0,autoComplete:o,"data-expanded":s.store.dropdownOpened||void 0,"data-mantine-stop-propagation":s.store.dropdownOpened||void 0}:{},f=e=>{a===`button`&&e.currentTarget.focus(),t?.(e)};return{...d,onKeyDown:u,onClick:f}}var Up={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},Wp=G(e=>{let{children:t,refProp:n,withKeyboardNavigation:r,withAriaAttributes:i,withExpandedAttribute:a,targetType:o,autoComplete:s,ref:c,...l}=W(`ComboboxEventsTarget`,Up,e),u=Zt(t);if(!u)throw Error(`Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let d=Ip(),f=Hp({targetType:o,withAriaAttributes:i,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:u.props.onKeyDown,onClick:u.props.onClick,autoComplete:s});return(0,h.cloneElement)(u,{...f,...l,[n]:ie(c,d.store.targetRef,Kt(u))})});Wp.displayName=`@mantine/core/ComboboxEventsTarget`;var Gp=G(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`ComboboxFooter`,null,e),s=Ip();return(0,U.jsx)(K,{...s.getStyles(`footer`,{className:n,classNames:t,style:r,styles:i}),...o,onMouseDown:e=>{e.preventDefault()}})});Gp.classes=jp,Gp.displayName=`@mantine/core/ComboboxFooter`;var Kp=G(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,label:s,id:c,...l}=W(`ComboboxGroup`,null,e),u=Ip(),d=R(c),f=s!=null&&s!==!1&&s!==``;return(0,U.jsxs)(K,{role:`group`,"aria-labelledby":f?d:void 0,...u.getStyles(`group`,{className:n,classNames:t,style:r,styles:i}),...l,children:[f&&(0,U.jsx)(`div`,{id:d,...u.getStyles(`groupLabel`,{classNames:t,styles:i}),children:s}),o]})});Kp.classes=jp,Kp.displayName=`@mantine/core/ComboboxGroup`;var qp=G(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`ComboboxHeader`,null,e),s=Ip();return(0,U.jsx)(K,{...s.getStyles(`header`,{className:n,classNames:t,style:r,styles:i}),...o,onMouseDown:e=>{e.preventDefault()}})});qp.classes=jp,qp.displayName=`@mantine/core/ComboboxHeader`;function Jp({value:e,valuesDivider:t=`,`,...n}){return(0,U.jsx)(`input`,{type:`hidden`,value:Array.isArray(e)?e.join(t):e?`${e}`:``,...n})}Jp.displayName=`@mantine/core/ComboboxHiddenInput`;var Yp=G(e=>{let t=W(`ComboboxOption`,null,e),{classNames:n,className:r,style:i,styles:a,vars:o,onClick:s,id:c,active:l,onMouseDown:u,onMouseOver:d,disabled:f,selected:p,mod:m,...g}=t,_=Ip(),v=(0,h.useId)(),y=c||v;return(0,U.jsx)(K,{..._.getStyles(`option`,{className:r,classNames:n,styles:a,style:i}),"aria-disabled":f||void 0,...g,id:y,mod:[`combobox-option`,{"combobox-active":l,"combobox-disabled":f,"combobox-selected":p},m],role:`option`,onClick:e=>{f?e.preventDefault():(_.onOptionSubmit?.(t.value,t),s?.(e))},onMouseDown:e=>{e.preventDefault(),u?.(e)},onMouseOver:e=>{_.resetSelectionOnOptionHover&&_.store.resetSelectedOption(),d?.(e)}})});Yp.classes=jp,Yp.displayName=`@mantine/core/ComboboxOption`;var Xp=G(e=>{let{classNames:t,className:n,style:r,styles:i,id:a,onMouseDown:o,labelledBy:s,...c}=W(`ComboboxOptions`,null,e),l=Ip(),u=R(a);return(0,h.useEffect)(()=>{l.store.setListId(u)},[u]),(0,U.jsx)(K,{...l.getStyles(`options`,{className:n,style:r,classNames:t,styles:i}),...c,id:u,role:`listbox`,"aria-labelledby":s,onMouseDown:e=>{e.preventDefault(),o?.(e)}})});Xp.classes=jp,Xp.displayName=`@mantine/core/ComboboxOptions`;var Zp={withAriaAttributes:!0,withKeyboardNavigation:!0},Qp=G(e=>{let{classNames:t,styles:n,unstyled:r,vars:i,withAriaAttributes:a,onKeyDown:o,onClick:s,withKeyboardNavigation:c,size:l,ref:u,...d}=W(`ComboboxSearch`,Zp,e),f=Ip(),p=f.getStyles(`search`),m=Hp({targetType:`input`,withAriaAttributes:a,withKeyboardNavigation:c,withExpandedAttribute:!1,onKeyDown:o,onClick:s,autoComplete:`off`});return(0,U.jsx)(mf,{ref:ie(u,f.store.searchRef),classNames:[{input:p.className},t],styles:[{input:p.style},n],size:l||f.size,...m,...d,__staticSelector:`Combobox`})});Qp.classes=jp,Qp.displayName=`@mantine/core/ComboboxSearch`;var $p={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},em=G(e=>{let{children:t,refProp:n,withKeyboardNavigation:r,withAriaAttributes:i,withExpandedAttribute:a,targetType:o,autoComplete:s,ref:c,...l}=W(`ComboboxTarget`,$p,e),u=Zt(t);if(!u)throw Error(`Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let d=Ip(),f=Hp({targetType:o,withAriaAttributes:i,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:u.props.onKeyDown,onClick:u.props.onClick,autoComplete:s}),p=(0,h.cloneElement)(u,{...f,...l});return(0,U.jsx)(Kl.Target,{refProp:n,ref:ie(c,d.store.targetRef),children:p})});em.displayName=`@mantine/core/ComboboxTarget`;function tm(e,t,n){for(let n=e-1;n>=0;--n)if(!t[n].hasAttribute(`data-combobox-disabled`))return n;if(n){for(let e=t.length-1;e>-1;--e)if(!t[e].hasAttribute(`data-combobox-disabled`))return e}return e}function nm(e,t,n){for(let n=e+1;n{s||(c(!0),i?.(e))},[c,i,s]),v=(0,h.useCallback)((e=`unknown`)=>{s&&(c(!1),r?.(e))},[c,r,s]),y=(0,h.useCallback)((e=`unknown`)=>{s?v(e):_(e)},[v,_,s]),b=(0,h.useCallback)(()=>{let e=Xt(f.current);Jt(`#${l.current} [data-combobox-selected]`,e)?.removeAttribute(`data-combobox-selected`)},[]),x=(0,h.useCallback)(e=>{let t=Xt(f.current),n=Jt(`#${l.current}`,t),r=n?Yt(`[data-combobox-option]`,n):null;if(!r)return null;let i=e>=r.length?0:e<0?r.length-1:e;return u.current=i,r?.[i]&&!r[i].hasAttribute(`data-combobox-disabled`)?(b(),r[i].setAttribute(`data-combobox-selected`,`true`),r[i].scrollIntoView({block:`nearest`,behavior:o}),r[i].id):null},[o,b]),S=(0,h.useCallback)(()=>{let e=Xt(f.current),t=Jt(`#${l.current} [data-combobox-active]`,e);if(t){let n=Yt(`#${l.current} [data-combobox-option]`,e).findIndex(e=>e===t);return x(n)}return x(0)},[x]),C=(0,h.useCallback)(()=>{let e=Xt(f.current),t=Yt(`#${l.current} [data-combobox-option]`,e);return x(nm(u.current,t,a))},[x,a]),w=(0,h.useCallback)(()=>{let e=Xt(f.current),t=Yt(`#${l.current} [data-combobox-option]`,e);return x(tm(u.current,t,a))},[x,a]),T=(0,h.useCallback)(()=>{let e=Xt(f.current),t=Yt(`#${l.current} [data-combobox-option]`,e);return x(rm(t))},[x]),E=(0,h.useCallback)((e=`selected`,t)=>{if(typeof e==`number`){u.current=e;let n=Xt(f.current),r=Yt(`#${l.current} [data-combobox-option]`,n);t?.scrollIntoView&&r[e]?.scrollIntoView({block:`nearest`,behavior:o})}else g.current=window.setTimeout(()=>{let n=Xt(f.current),r=Yt(`#${l.current} [data-combobox-option]`,n),i=r.findIndex(t=>t.hasAttribute(`data-combobox-${e}`));u.current=i,t?.scrollIntoView&&r[i]?.scrollIntoView({block:`nearest`,behavior:o})},0)},[]),D=(0,h.useCallback)(()=>{u.current=-1,b()},[b]),O=(0,h.useCallback)(()=>{let e=Xt(f.current);(Yt(`#${l.current} [data-combobox-option]`,e)?.[u.current])?.click()},[]),k=(0,h.useCallback)(e=>{l.current=e},[]),A=(0,h.useCallback)(()=>{p.current=window.setTimeout(()=>d.current?.focus(),0)},[]),j=(0,h.useCallback)(()=>{m.current=window.setTimeout(()=>f.current?.focus(),0)},[]),M=(0,h.useCallback)(()=>u.current,[]);return(0,h.useEffect)(()=>()=>{window.clearTimeout(p.current),window.clearTimeout(m.current),window.clearTimeout(g.current)},[]),{dropdownOpened:s,openDropdown:_,closeDropdown:v,toggleDropdown:y,selectedOptionIndex:u.current,getSelectedOptionIndex:M,selectOption:x,selectFirstOption:T,selectActiveOption:S,selectNextOption:C,selectPreviousOption:w,resetSelectedOption:D,updateSelectedOptionIndex:E,listId:l.current,setListId:k,clickSelectedOption:O,searchRef:d,focusSearchInput:A,targetRef:f,focusTarget:j}}var am={keepMounted:!0,keepMountedMode:`display-none`,withinPortal:!0,resetSelectionOnOptionHover:!1,width:`target`,transitionProps:{transition:`fade`,duration:0},size:`sm`},om=Qt((e,{size:t,dropdownPadding:n})=>({options:{"--combobox-option-fz":Lt(t),"--combobox-option-padding":Pt(t,`combobox-option-padding`)},dropdown:{"--combobox-padding":n===void 0?void 0:H(n),"--combobox-option-fz":Lt(t),"--combobox-option-padding":Pt(t,`combobox-option-padding`)}})),sm=e=>{let t=W(`Combobox`,am,e),{classNames:n,styles:r,unstyled:i,children:a,store:o,vars:s,onOptionSubmit:c,onClose:l,size:u,dropdownPadding:d,resetSelectionOnOptionHover:f,__staticSelector:p,readOnly:m,attributes:h,floatingHeight:g,middlewares:_,...v}=t,y=g===`viewport`?{..._,flip:!1,size:{...typeof _?.size==`object`?_.size:{},padding:typeof _?.size==`object`&&_.size.padding!==void 0?_.size.padding:10,apply:({availableHeight:e,availableWidth:t,elements:n,...r})=>{n.floating.style.setProperty(`--combobox-floating-max-height`,`${e}px`);let i=_?.size;typeof i==`object`&&i.apply?i.apply({availableHeight:e,availableWidth:t,elements:n,...r}):i&&Object.assign(n.floating.style,{maxWidth:`${t}px`,maxHeight:`${e}px`})}}}:_,b=im(),x=o||b,S=Rr({name:p||`Combobox`,classes:jp,props:t,classNames:n,styles:r,unstyled:i,attributes:h,vars:s,varsResolver:om}),C=()=>{l?.(),x.closeDropdown()};return(0,U.jsx)(Fp,{value:{getStyles:S,store:x,onOptionSubmit:c,size:u,resetSelectionOnOptionHover:f,readOnly:m,floatingHeight:g},children:(0,U.jsx)(Kl,{opened:x.dropdownOpened,...v,middlewares:y,onChange:e=>!e&&C(),withRoles:!1,unstyled:i,children:a})})};sm.extend=e=>e,sm.classes=jp,sm.varsResolver=om,sm.displayName=`@mantine/core/Combobox`,sm.Target=em,sm.Dropdown=Rp,sm.Options=Xp,sm.Option=Yp,sm.Search=Qp,sm.Empty=Vp,sm.Chevron=Pp,sm.Footer=Gp,sm.Header=qp,sm.EventsTarget=Wp,sm.DropdownTarget=Bp,sm.Group=Kp,sm.ClearButton=Lp,sm.HiddenInput=Jp;function cm({size:e,style:t,...n}){let r=e===void 0?t:{width:H(e),height:H(e),...t};return(0,U.jsx)(`svg`,{viewBox:`0 0 10 7`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:r,"aria-hidden":!0,...n,children:(0,U.jsx)(`path`,{d:`M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}function lm(e){return`group`in e}function um({options:e,search:t,limit:n}){let r=t.trim().toLowerCase(),i=[];for(let a=0;a0)return!1;return!0}function fm(e,t=new Set){if(Array.isArray(e))for(let n of e)if(lm(n))fm(n.items,t);else{if(n.value===void 0)throw Error(`[@mantine/core] Each option must have value property`);if(t.has(n.value))throw Error(`[@mantine/core] Duplicate options are not supported. Option with value "${n.value}" was provided more than once`);t.add(n.value)}}function pm(e,t){return Array.isArray(e)?e.includes(t):e===t}function mm({data:e,withCheckIcon:t,withAlignedLabels:n,value:r,checkIconPosition:i,unstyled:a,renderOption:o}){if(!lm(e)){let s=pm(r,e.value),c=t&&(s?(0,U.jsx)(cm,{className:jp.optionsDropdownCheckIcon}):n?(0,U.jsx)(`div`,{className:jp.optionsDropdownCheckPlaceholder}):null),l=(0,U.jsxs)(U.Fragment,{children:[i===`left`&&c,(0,U.jsx)(`span`,{children:e.label}),i===`right`&&c]});return(0,U.jsx)(sm.Option,{value:e.value,disabled:e.disabled,className:en({[jp.optionsDropdownOption]:!a}),"data-reverse":i===`right`||void 0,"data-checked":s||void 0,"aria-selected":s,active:s,children:typeof o==`function`?o({option:e,checked:s}):l})}let s=e.items.map(e=>(0,U.jsx)(mm,{data:e,value:r,unstyled:a,withCheckIcon:t,withAlignedLabels:n,checkIconPosition:i,renderOption:o},`${e.value}`));return(0,U.jsx)(sm.Group,{label:e.group,children:s})}function hm({data:e,hidden:t,hiddenWhenEmpty:n,filter:r,search:i,limit:a,maxDropdownHeight:o,floatingHeight:s,withScrollArea:c=!0,filterOptions:l=!0,withCheckIcon:u=!1,withAlignedLabels:d=!1,value:f,checkIconPosition:p,nothingFoundMessage:m,unstyled:h,labelId:g,renderOption:_,scrollAreaProps:v,"aria-label":y}){let b=Ip();fm(e);let x=typeof i==`string`?(r||um)({options:e,search:l?i:``,limit:a??1/0}):e,S=dm(x),C=x.map((e,t)=>(0,U.jsx)(mm,{data:e,withCheckIcon:u,withAlignedLabels:d,value:f,checkIconPosition:p,unstyled:h,renderOption:_},lm(e)?`group-${typeof e.group==`string`?e.group:t}`:`${e.value}`));return(0,U.jsx)(sm.Dropdown,{hidden:t||n&&S,"data-composed":!0,children:(0,U.jsxs)(sm.Options,{labelledBy:g,"aria-label":y,children:[c?(0,U.jsx)(Jc.Autosize,{mah:(s??b.floatingHeight)===`viewport`?`var(--combobox-floating-options-max-height)`:o??220,type:`scroll`,scrollbarSize:`var(--combobox-padding)`,offsetScrollbars:`y`,...v,children:C}):C,S&&m&&(0,U.jsx)(sm.Empty,{children:m})]})})}function gm({id:e,label:t,labelProps:n,inputWrapperOrder:r}){if(t&&(!r||r.includes(`label`)))return n?.id||`${e}-label`}var _m={root:`m_347db0ec`,"root--dot":`m_fbd81e3d`,label:`m_5add502a`,section:`m_91fdda9b`},vm=Qt((e,{radius:t,color:n,gradient:r,variant:i,size:a,autoContrast:o,circle:s})=>{let c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:o});return{root:{"--badge-height":Pt(a,`badge-height`),"--badge-padding-x":Pt(a,`badge-padding-x`),"--badge-fz":Pt(a,`badge-fz`),"--badge-radius":s||t===void 0?void 0:It(t),"--badge-bg":n||i?c.background:void 0,"--badge-color":n||i?c.color:void 0,"--badge-bd":n||i?c.border:void 0,"--badge-dot-color":i===`dot`?yn(n,e):void 0}}}),ym=xi(e=>{let t=W(`Badge`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,radius:c,color:l,gradient:u,leftSection:d,rightSection:f,children:p,variant:m,fullWidth:h,autoContrast:g,circle:_,mod:v,attributes:y,...b}=t,x=Rr({name:`Badge`,props:t,classes:_m,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:y,vars:s,varsResolver:vm});return(0,U.jsxs)(K,{variant:m,mod:[{block:h,circle:_,"with-right-section":!!f,"with-left-section":!!d},v],...x(`root`,{variant:m}),...b,children:[d&&(0,U.jsx)(`span`,{...x(`section`),"data-position":`left`,children:d}),(0,U.jsx)(`span`,{...x(`label`),children:p}),f&&(0,U.jsx)(`span`,{...x(`section`),"data-position":`right`,children:f})]})});ym.classes=_m,ym.varsResolver=vm,ym.displayName=`@mantine/core/Badge`;var bm={root:`m_77c9d27d`,inner:`m_80f1301b`,label:`m_811560b9`,section:`m_a74036a`,loader:`m_a25b86ee`,group:`m_80d6d844`,groupSection:`m_70be2a01`},xm={orientation:`horizontal`},Sm=Qt((e,{borderWidth:t})=>({group:{"--button-border-width":H(t)}})),Cm=G(e=>{let t=W(`ButtonGroup`,xm,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,orientation:s,vars:c,borderWidth:l,mod:u,attributes:d,...f}=W(`ButtonGroup`,xm,e),p=Rr({name:`ButtonGroup`,props:t,classes:bm,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:c,varsResolver:Sm,rootSelector:`group`});return(0,U.jsx)(K,{...p(`group`),mod:[{orientation:s},u],role:`group`,...f})});Cm.classes=bm,Cm.varsResolver=Sm,Cm.displayName=`@mantine/core/ButtonGroup`;var wm=Qt((e,{radius:t,color:n,gradient:r,variant:i,autoContrast:a,size:o})=>{let s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:a});return{groupSection:{"--section-height":Pt(o,`section-height`),"--section-padding-x":Pt(o,`section-padding-x`),"--section-fz":o?.includes(`compact`)?Lt(o.replace(`compact-`,``)):Lt(o),"--section-radius":t===void 0?void 0:It(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),Tm=G(e=>{let t=W(`ButtonGroupSection`,null,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,vars:s,gradient:c,radius:l,autoContrast:u,attributes:d,...f}=t,p=Rr({name:`ButtonGroupSection`,props:t,classes:bm,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:wm,rootSelector:`groupSection`});return(0,U.jsx)(K,{...p(`groupSection`),...f})});Tm.classes=bm,Tm.varsResolver=wm,Tm.displayName=`@mantine/core/ButtonGroupSection`;var Em={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${H(1)}))`},out:{opacity:0,transform:`translate(-50%, -200%)`},common:{transformOrigin:`center`},transitionProperty:`transform, opacity`},Dm=Qt((e,{radius:t,color:n,gradient:r,variant:i,size:a,justify:o,autoContrast:s})=>{let c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:s});return{root:{"--button-justify":o,"--button-height":Pt(a,`button-height`),"--button-padding-x":Pt(a,`button-padding-x`),"--button-fz":a?.includes(`compact`)?Lt(a.replace(`compact-`,``)):Lt(a),"--button-radius":t===void 0?void 0:It(t),"--button-bg":n||i?c.background:void 0,"--button-hover":n||i?c.hover:void 0,"--button-color":c.color,"--button-bd":n||i?c.border:void 0,"--button-hover-color":n||i?c.hoverColor:void 0}}}),Om=xi(e=>{let t=W(`Button`,null,e),{style:n,vars:r,className:i,color:a,disabled:o,children:s,leftSection:c,rightSection:l,fullWidth:u,variant:d,radius:f,loading:p,loaderProps:m,gradient:h,classNames:g,styles:_,unstyled:v,"data-disabled":y,autoContrast:b,mod:x,attributes:S,...C}=t,w=Rr({name:`Button`,props:t,classes:bm,className:i,style:n,classNames:g,styles:_,unstyled:v,attributes:S,vars:r,varsResolver:Dm}),T=!!c,E=!!l;return(0,U.jsxs)(Qc,{...w(`root`,{active:!o&&!p&&!y}),unstyled:v,variant:d,disabled:o||p,mod:[{disabled:o||y,loading:p,block:u,"with-left-section":T,"with-right-section":E},x],...C,children:[typeof p==`boolean`&&(0,U.jsx)(Ol,{mounted:p,transition:Em,duration:150,children:e=>(0,U.jsx)(K,{component:`span`,...w(`loader`,{style:e}),"aria-hidden":!0,children:(0,U.jsx)(eu,{color:`var(--button-color)`,size:`calc(var(--button-height) / 1.8)`,...m})})}),(0,U.jsxs)(`span`,{...w(`inner`),children:[c&&(0,U.jsx)(K,{component:`span`,...w(`section`),mod:{position:`left`},children:c}),(0,U.jsx)(K,{component:`span`,mod:{loading:p},...w(`label`),children:s}),l&&(0,U.jsx)(K,{component:`span`,...w(`section`),mod:{position:`right`},children:l})]})]})});Om.classes=bm,Om.varsResolver=Dm,Om.displayName=`@mantine/core/Button`,Om.Group=Cm,Om.GroupSection=Tm;var[km,Am]=Ct(`Card component was not found in tree`),jm={root:`m_e615b15f`,section:`m_599a2148`},Mm=xi(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,withBorder:o,inheritPadding:s,mod:c,...l}=W(`CardSection`,null,e),u=Am();return(0,U.jsx)(K,{mod:[{"with-border":o,"inherit-padding":s},c],...u.getStyles(`section`,{className:n,style:r,styles:i,classNames:t}),...l})});Mm.classes=jm,Mm.displayName=`@mantine/core/CardSection`;var Nm=Qt((e,{padding:t})=>({root:{"--card-padding":Ft(t)}})),Pm={orientation:`vertical`},Fm=xi(e=>{let t=W(`Card`,Pm,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,padding:l,attributes:u,orientation:d,...f}=t,p=Rr({name:`Card`,props:t,classes:jm,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s,varsResolver:Nm}),m=h.Children.toArray(c),g=m.map((e,t)=>typeof e==`object`&&e&&`type`in e&&(e.type===Mm||e.type?.displayName===`@mantine/core/CardSection`)?(0,h.cloneElement)(e,{"data-orientation":d,"data-first-section":t===0||void 0,"data-last-section":t===m.length-1||void 0}):e);return(0,U.jsx)(km,{value:{getStyles:p},children:(0,U.jsx)(rl,{unstyled:o,"data-orientation":d,...p(`root`),...f,children:g})})});Fm.classes=jm,Fm.varsResolver=Nm,Fm.displayName=`@mantine/core/Card`,Fm.Section=Mm;function Im(e){let t=e.currentTarget;return Xt(t).activeElement!==t}var Lm={root:`m_de3d2490`,colorOverlay:`m_862f3d1b`,shadowOverlay:`m_98ae7f22`,alphaOverlay:`m_95709ac0`,childrenOverlay:`m_93e74e3`},Rm={withShadow:!0},zm=Qt((e,{radius:t,size:n})=>({root:{"--cs-radius":t===void 0?void 0:It(t),"--cs-size":H(n)}})),Bm=xi(e=>{let t=W(`ColorSwatch`,Rm,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:c,radius:l,withShadow:u,children:d,attributes:f,...p}=W(`ColorSwatch`,Rm,t),m=Rr({name:`ColorSwatch`,props:t,classes:Lm,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:zm});return(0,U.jsxs)(K,{...m(`root`,{focusable:!0}),...p,children:[(0,U.jsx)(`span`,{...m(`alphaOverlay`)}),u&&(0,U.jsx)(`span`,{...m(`shadowOverlay`)}),(0,U.jsx)(`span`,{...m(`colorOverlay`,{style:{backgroundColor:c}})}),(0,U.jsx)(`span`,{...m(`childrenOverlay`),children:d})]})});Bm.classes=Lm,Bm.varsResolver=zm,Bm.displayName=`@mantine/core/ColorSwatch`;var Vm={root:`m_3eebeb36`,label:`m_9e365f20`},Hm={orientation:`horizontal`},Um=Qt((e,{color:t,variant:n,size:r})=>({root:{"--divider-color":t?yn(t,e):void 0,"--divider-border-style":n,"--divider-size":Pt(r,`divider-size`)}})),Wm=G(e=>{let t=W(`Divider`,Hm,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:c,orientation:l,label:u,labelPosition:d,mod:f,attributes:p,...m}=t,h=Rr({name:`Divider`,classes:Vm,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:s,varsResolver:Um});return(0,U.jsx)(K,{mod:[{orientation:l,withLabel:!!u},f],role:`separator`,"aria-orientation":l,...h(`root`),...m,children:u&&(0,U.jsx)(K,{component:`span`,mod:{position:d},...h(`label`),children:u})})});Wm.classes=Vm,Wm.varsResolver=Um,Wm.displayName=`@mantine/core/Divider`;function Gm({color:e,theme:t,defaultShade:n}){let r=vn({color:e,theme:t});return r.isThemeColor?r.shade===void 0?`var(--mantine-color-${r.color}-${n})`:`var(${r.variable})`:e}var Km={root:`m_bcb3f3c2`},qm={color:`yellow`},Jm=Qt((e,{color:t})=>({root:{"--mark-bg-dark":Gm({color:t,theme:e,defaultShade:5}),"--mark-bg-light":Gm({color:t,theme:e,defaultShade:2})}})),Ym=G(e=>{let t=W(`Mark`,qm,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:c,variant:l,attributes:u,...d}=t,f=Rr({name:`Mark`,props:t,className:r,style:i,classes:Km,classNames:n,styles:a,unstyled:o,attributes:u,vars:s,varsResolver:Jm});return(0,U.jsx)(K,{component:`mark`,variant:l,...f(`root`),...d})});Ym.classes=Km,Ym.varsResolver=Jm,Ym.displayName=`@mantine/core/Mark`;function Xm(e){return e.replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`)}function Zm(e){return e.normalize(`NFD`).replace(/\p{M}/gu,``)}function Qm(e){let t=``,n=[],r=0;for(;ra&&i.push({chunk:e.slice(a,c),highlighted:!1}),i.push({chunk:e.slice(c,l),highlighted:!0}),a=l,o[0].length===0&&(t.lastIndex+=1)}return ae)}function eh(e,t,n={}){if(t==null)return[{chunk:e,highlighted:!1}];let{wholeWord:r=!1,caseInsensitive:i=!0,accentInsensitive:a=!0}=n,o=e=>a?Zm(Xm(e)):Xm(e),s=Array.isArray(t)?t.map(o):o(t);if(!(Array.isArray(s)?s.filter(e=>e.trim().length>0).length>0:s.trim()!==``))return[{chunk:e,highlighted:!1}];let c=typeof s==`string`?s.trim():s.filter(e=>e.trim().length!==0).map(e=>e.trim()).sort((e,t)=>t.length-e.length).join(`|`),l=r?`(?({chunk:e,highlighted:t%2==1})).filter(({chunk:e})=>e)}var th={color:`yellow`,wholeWord:!1,caseInsensitive:!0,accentInsensitive:!0},nh=xi(e=>{let{unstyled:t,children:n,highlight:r,highlightStyles:i,color:a,wholeWord:o,caseInsensitive:s,accentInsensitive:c,...l}=W(`Highlight`,th,e),u=Array.isArray(r)&&typeof r[0]==`object`,d=new Map,f=e=>{let t=e;return s&&(t=t.toLowerCase()),c&&(t=Zm(t)),t},p;p=u?r.map(e=>(e.color&&d.set(f(e.text),e.color),e.text)):Array.isArray(r)?r:[r];let m=eh(n,p,{wholeWord:o,caseInsensitive:s,accentInsensitive:c});return(0,U.jsx)(J,{unstyled:t,...l,__staticSelector:`Highlight`,children:m.map(({chunk:e,highlighted:n},r)=>n?(0,U.jsx)(Ym,{unstyled:t,color:d.get(f(e))||a,style:i,"data-highlight":e,children:e},r):(0,U.jsx)(`span`,{children:e},r))})});nh.classes=J.classes,nh.displayName=`@mantine/core/Highlight`;function rh(e=`top-end`,t=0){let n={"--indicator-top":void 0,"--indicator-bottom":void 0,"--indicator-left":void 0,"--indicator-right":void 0,"--indicator-translate-x":void 0,"--indicator-translate-y":void 0},r=typeof t==`number`?t:t.x,i=typeof t==`number`?t:t.y,a=H(r),o=H(i),[s,c]=e.split(`-`);return s===`top`&&(n[`--indicator-top`]=o,n[`--indicator-translate-y`]=`-50%`),s===`middle`&&(n[`--indicator-top`]=`50%`,n[`--indicator-translate-y`]=`-50%`),s===`bottom`&&(n[`--indicator-bottom`]=o,n[`--indicator-translate-y`]=`50%`),c===`start`&&(n[`--indicator-left`]=a,n[`--indicator-translate-x`]=`-50%`),c===`center`&&(n[`--indicator-left`]=`50%`,n[`--indicator-translate-x`]=`-50%`),c===`end`&&(n[`--indicator-right`]=a,n[`--indicator-translate-x`]=`50%`),n}var ih={root:`m_e5262200`,indicator:`m_760d1fb1`,processing:`m_885901b1`},ah={position:`top-end`,offset:0,showZero:!0},oh=Qt((e,{color:t,position:n,offset:r,size:i,radius:a,zIndex:o,autoContrast:s})=>({root:{"--indicator-color":t?yn(t,e):void 0,"--indicator-text-color":Mn(s,e)?kn({color:t,theme:e,autoContrast:s}):void 0,"--indicator-size":H(i),"--indicator-radius":a===void 0?void 0:It(a),"--indicator-z-index":o?.toString(),...rh(n,r)}})),sh=G(e=>{let t=W(`Indicator`,ah,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,position:l,offset:u,inline:d,label:f,radius:p,color:m,withBorder:h,disabled:g,processing:_,zIndex:v,autoContrast:y,maxValue:b,showZero:x,mod:S,attributes:C,...w}=t,T=Rr({name:`Indicator`,classes:ih,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:C,vars:s,varsResolver:oh}),E=!x&&(f===0||f===`0`),D=b!==void 0&&typeof f==`number`&&f>b?`${b}+`:f;return(0,U.jsxs)(K,{...T(`root`),mod:[{inline:d},S],...w,children:[!g&&!E&&(0,U.jsx)(K,{mod:{"with-label":!!f,"with-border":h,processing:_},...T(`indicator`),children:D}),c]})});sh.classes=ih,sh.varsResolver=oh,sh.displayName=`@mantine/core/Indicator`;var ch=[`borderBottomWidth`,`borderLeftWidth`,`borderRightWidth`,`borderTopWidth`,`boxSizing`,`fontFamily`,`fontSize`,`fontStyle`,`fontWeight`,`letterSpacing`,`lineHeight`,`paddingBottom`,`paddingLeft`,`paddingRight`,`paddingTop`,`tabSize`,`textIndent`,`textRendering`,`textTransform`,`width`,`wordBreak`,`wordSpacing`,`scrollbarGutter`],lh={"min-height":`0`,"max-height":`none`,height:`0`,visibility:`hidden`,overflow:`hidden`,position:`absolute`,"z-index":`-1000`,top:`0`,right:`0`,display:`block`};function uh(e){Object.keys(lh).forEach(t=>{e.style.setProperty(t,lh[t],`important`)})}function dh(e){let t=window.getComputedStyle(e);if(t===null)return null;let n={};for(let e of ch)n[e]=t[e];return n.boxSizing===``?null:{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)}}var fh=null;function ph(e,t,n=1,r=1/0){fh||(fh=document.createElement(`textarea`),fh.setAttribute(`tabindex`,`-1`),fh.setAttribute(`aria-hidden`,`true`),fh.setAttribute(`aria-label`,`autosize measurement`),uh(fh)),fh.parentNode===null&&document.body.appendChild(fh);let{paddingSize:i,borderSize:a,sizingStyle:o}=e,{boxSizing:s}=o;Object.keys(o).forEach(e=>{fh.style[e]=o[e]}),uh(fh),fh.value=t;let c=s===`border-box`?fh.scrollHeight+a:fh.scrollHeight-i;fh.value=t,c=s===`border-box`?fh.scrollHeight+a:fh.scrollHeight-i,fh.value=`x`;let l=fh.scrollHeight-i,u=l*n;s===`border-box`&&(u=u+i+a),c=Math.max(u,c);let d=l*r;return s===`border-box`&&(d=d+i+a),c=Math.min(d,c),[c,l]}function mh({maxRows:e,minRows:t,onChange:n,ref:r,...i}){let a=i.value!==void 0,o=(0,h.useRef)(null),s=ie(o,r),c=(0,h.useRef)(0),l=(0,h.useRef)(0),u=()=>{let n=o.current;if(!n)return;let r=dh(n);if(!r)return;let[i]=ph(r,n.value||n.placeholder||`x`,t,e);c.current!==i&&(c.current=i,n.style.setProperty(`height`,`${i}px`,`important`))},d=(0,h.useEffectEvent)(u),f=e=>{a||u(),n?.(e)};return(0,h.useLayoutEffect)(u),(0,h.useEffect)(()=>{let e=()=>u();return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),(0,h.useEffect)(()=>{let e=o.current;if(!e||typeof ResizeObserver>`u`)return;l.current=e.offsetWidth;let t=0,n=new ResizeObserver(()=>{o.current&&o.current.offsetWidth!==l.current&&(l.current=o.current.offsetWidth,cancelAnimationFrame(t),t=requestAnimationFrame(d))});return n.observe(e),()=>{cancelAnimationFrame(t),n.disconnect()}},[]),(0,h.useEffect)(()=>{let e=()=>u();return document.fonts.addEventListener(`loadingdone`,e),()=>document.fonts.removeEventListener(`loadingdone`,e)},[]),(0,h.useEffect)(()=>{let e=e=>{if(o.current?.form===e.target&&!a){let e=o.current.value;requestAnimationFrame(()=>{o.current&&e!==o.current.value&&u()})}};return document.body.addEventListener(`reset`,e),()=>document.body.removeEventListener(`reset`,e)},[a]),(0,U.jsx)(`textarea`,{rows:t,...i,onChange:f,ref:s})}var hh=G(e=>{let{autosize:t,maxRows:n,minRows:r,__staticSelector:i,resize:a,bottomSection:o,bottomSectionProps:s,...c}=W([`Input`,`InputWrapper`,`Textarea`],null,e),l=t&&Gt()!==`test`,u=l?{maxRows:n,minRows:r}:{};return(0,U.jsx)(_f,{component:l?mh:`textarea`,...c,__staticSelector:i||`Textarea`,__bottomSection:o,__bottomSectionProps:s,multiline:!0,"data-no-overflow":t&&n===void 0||void 0,__vars:{"--input-resize":a},...u})});hh.classes=_f.classes,hh.displayName=`@mantine/core/Textarea`;var gh={root:`m_dc6f14e2`},_h=Qt((e,{size:t})=>({root:{"--kbd-fz":Pt(t,`kbd-fz`)}})),vh=G(e=>{let t=W(`Kbd`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,...l}=t,u=Rr({name:`Kbd`,classes:gh,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c,vars:s,varsResolver:_h});return(0,U.jsx)(K,{component:`kbd`,...u(`root`),...l})});vh.classes=gh,vh.varsResolver=_h,vh.displayName=`@mantine/core/Kbd`;var[yh,bh]=Ct(`Menu component was not found in the tree`),xh=(0,h.createContext)(null);function Sh(e){let{value:t,defaultValue:n,onChange:r,children:i}=W(`MenuCheckboxGroup`,null,e),[a,o]=ae({value:t,defaultValue:n,finalValue:[],onChange:r}),s=(0,h.useCallback)(e=>{o(a.includes(e)?a.filter(t=>t!==e):[...a,e])},[a,o]);return(0,U.jsx)(xh,{value:{values:a,onChange:s},children:i})}Sh.displayName=`@mantine/core/MenuCheckboxGroup`;var Ch=(0,h.createContext)(null);function wh({role:e,checked:t,indicator:n,onSelect:r,color:i,closeMenuOnClick:a,rightSection:o,children:s,disabled:c,dataDisabled:l,className:u,style:d,styles:f,classNames:p,buttonRef:m,others:g}){let _=bh(),v=(0,h.use)(Ch),y=sr(),{dir:b}=ki(),x=(0,h.useRef)(null),S=Bt(g.onClick,()=>{l||(r(),a&&_.closeDropdownImmediately())}),C=Bt(g.onMouseMove,()=>{if(!_.hasSearch)return;let e=x.current?.closest(`[data-menu-dropdown]`);e&&e.querySelectorAll(`[data-menu-active]`).forEach(t=>{t!==x.current&&t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}),w=Bt(g.onKeyDown,e=>{e.key===`ArrowLeft`&&v&&(v.close(),v.focusParentItem())}),T=i?y.variantColorResolver({color:i,theme:y,variant:`light`}):void 0,E=i?vn({color:i,theme:y}):null,D=_.alignItemsLabels!==`none`||t;return(0,U.jsxs)(Qc,{onMouseDown:e=>e.preventDefault(),...g,unstyled:_.unstyled,tabIndex:_.menuItemTabIndex,..._.getStyles(`item`,{className:u,style:d,styles:f,classNames:p}),ref:ie(x,m),role:e,"aria-checked":t,disabled:c,"data-menu-item":!0,"data-checked":t||void 0,"data-disabled":c||l||void 0,"data-mantine-stop-propagation":!0,onClick:S,onMouseMove:C,onKeyDown:kt({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:_.loop,dir:b,orientation:`vertical`,onKeyDown:w}),__vars:{"--menu-item-color":E?.isThemeColor&&E?.shade===void 0?`var(--mantine-color-${E.color}-6)`:T?.color,"--menu-item-hover":T?.hover},children:[D&&(0,U.jsx)(`div`,{..._.getStyles(`itemIndicator`,{styles:f,classNames:p}),"data-checked":t||void 0,children:t?n:null}),s&&(0,U.jsx)(`div`,{..._.getStyles(`itemLabel`,{styles:f,classNames:p}),"data-menu-item-label":!0,children:s}),o&&(0,U.jsx)(`div`,{..._.getStyles(`itemSection`,{styles:f,classNames:p}),"data-position":`right`,children:o})]})}var Th={dropdown:`m_dc9b7c9f`,label:`m_9bfac126`,divider:`m_efdf90cb`,item:`m_99ac2aa1`,search:`m_ef8769b6`,itemLabel:`m_5476e0d3`,itemIndicator:`m_8395186e`,itemSection:`m_8b75e504`,chevron:`m_b85b0bed`},Eh=G(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:o,closeMenuOnClick:s,rightSection:c,children:l,disabled:u,"data-disabled":d,value:f,checked:p,defaultChecked:m,onChange:g,checkIcon:_,ref:v,...y}=W(`MenuCheckboxItem`,null,e),b=bh(),x=(0,h.use)(xh),S=x&&f!==void 0?x.values.includes(f):void 0,[C,w]=ae({value:p??S,defaultValue:m,finalValue:!1,onChange:g}),T=_??b.checkIcon??(0,U.jsx)(cm,{size:10});return(0,U.jsx)(wh,{role:`menuitemcheckbox`,checked:C,indicator:T,onSelect:()=>{g?w(!C):x&&f!==void 0?x.onChange(f):w(!C)},color:o,closeMenuOnClick:s,rightSection:c,disabled:u,dataDisabled:d,className:n,style:r,styles:i,classNames:t,buttonRef:v,others:y,children:l})});Eh.classes=Th,Eh.displayName=`@mantine/core/MenuCheckboxItem`;function Dh(e){let{children:t,disabled:n,longPressDelay:r}=W(`MenuContextMenu`,null,e),i=Zt(t);if(!i)throw Error(`Menu.ContextMenu component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let a=bh(),o=Ml(),s=Nl({childProps:i.props,disabled:n||o.disabled,opened:a.opened,longPressDelay:r,setReference:o.reference,open:()=>a.openDropdown()});return(0,h.cloneElement)(i,s)}Dh.displayName=`@mantine/core/MenuContextMenu`;var Oh=G(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`MenuDivider`,null,e),s=bh();return(0,U.jsx)(K,{...s.getStyles(`divider`,{className:n,style:r,styles:i,classNames:t}),...o})});Oh.classes=Th,Oh.displayName=`@mantine/core/MenuDivider`;var kh=500;function Ah(e){return((e.querySelector(`[data-menu-item-label]`)??e).textContent??``).trim().toLowerCase()}function jh(e){return e.length>1&&e.split(``).every(t=>t===e[0])}function Mh({enabled:e,opened:t,getDropdown:n}){let r=(0,h.useRef)({buffer:``,timeoutId:null});return(0,h.useEffect)(()=>{if(t&&e)return;let n=r.current;n.timeoutId!==null&&(window.clearTimeout(n.timeoutId),n.timeoutId=null),n.buffer=``},[t,e]),(0,h.useEffect)(()=>()=>{let{timeoutId:e}=r.current;e!==null&&window.clearTimeout(e)},[]),t=>{if(!e||t.defaultPrevented||t.ctrlKey||t.metaKey||t.altKey||t.key.length!==1||t.key===` `)return;let i=t.target;if(i&&(i.tagName===`INPUT`||i.tagName===`TEXTAREA`||i.tagName===`SELECT`||i.isContentEditable))return;let a=n();if(!a)return;let o=Array.from(a.querySelectorAll(`[data-menu-item]:not([data-disabled])`)).filter(e=>e.closest(`[data-menu-dropdown]`)===a);if(o.length===0)return;let s=r.current;s.buffer=(s.buffer+t.key).toLowerCase(),s.timeoutId!==null&&window.clearTimeout(s.timeoutId),s.timeoutId=window.setTimeout(()=>{s.buffer=``,s.timeoutId=null},kh);let c=document.activeElement,l=c?o.indexOf(c):-1,u=null;if(s.buffer.length===1||jh(s.buffer)){let e=s.buffer[0],t=l+1;for(let n=0;n{let{classNames:t,className:n,style:r,styles:i,vars:a,onMouseEnter:o,onMouseLeave:s,onKeyDown:c,children:l,ref:u,...d}=W(`MenuDropdown`,null,e),f=(0,h.useRef)(null),p=bh(),m=Mh({enabled:!p.hasSearch,opened:p.opened,getDropdown:()=>f.current}),g=Bt(c,e=>{m(e),e.defaultPrevented||p.hasSearch||e.key!==`ArrowUp`&&e.key!==`ArrowDown`||(e.preventDefault(),f.current?.querySelectorAll(`[data-menu-item]:not(:disabled)`)[0]?.focus())}),_=Bt(o,()=>(p.trigger===`hover`||p.trigger===`click-hover`)&&p.openDropdown()),v=Bt(s,()=>(p.trigger===`hover`||p.trigger===`click-hover`)&&p.closeDropdown());return(0,U.jsxs)(Kl.Dropdown,{...d,onMouseEnter:_,onMouseLeave:v,role:`menu`,"aria-orientation":`vertical`,ref:ie(u,f),...p.getStyles(`dropdown`,{className:n,style:r,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:g,children:[p.withInitialFocusPlaceholder&&!p.hasSearch&&(0,U.jsx)(`div`,{role:`presentation`,tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),l]})});Nh.classes=Th,Nh.displayName=`@mantine/core/MenuDropdown`;var Ph=xi(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:o,closeMenuOnClick:s,leftSection:c,rightSection:l,children:u,disabled:d,"data-disabled":f,ref:p,...m}=W(`MenuItem`,null,e),g=bh(),_=(0,h.use)(Ch),v=sr(),{dir:y}=ki(),b=(0,h.useRef)(null),x=m,S=Bt(x.onClick,()=>{f||(typeof s==`boolean`?s&&g.closeDropdownImmediately():g.closeOnItemClick&&g.closeDropdownImmediately())}),C=Bt(x.onMouseMove,()=>{if(!g.hasSearch)return;let e=b.current?.closest(`[data-menu-dropdown]`);e&&e.querySelectorAll(`[data-menu-active]`).forEach(t=>{t!==b.current&&t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}),w=o?v.variantColorResolver({color:o,theme:v,variant:`light`}):void 0,T=o?vn({color:o,theme:v}):null,E=Bt(x.onKeyDown,e=>{e.key===`ArrowLeft`&&_&&(_.close(),_.focusParentItem())});return(0,U.jsxs)(Qc,{onMouseDown:e=>e.preventDefault(),...m,unstyled:g.unstyled,tabIndex:g.menuItemTabIndex,...g.getStyles(`item`,{className:n,style:r,styles:i,classNames:t}),ref:ie(b,p),role:`menuitem`,disabled:d,"data-menu-item":!0,"data-disabled":d||f||void 0,"data-mantine-stop-propagation":!0,onClick:S,onMouseMove:C,onKeyDown:kt({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:g.loop,dir:y,orientation:`vertical`,onKeyDown:E}),__vars:{"--menu-item-color":T?.isThemeColor&&T?.shade===void 0?`var(--mantine-color-${T.color}-6)`:w?.color,"--menu-item-hover":w?.hover},children:[g.alignItemsLabels===`all`&&(0,U.jsx)(`div`,{...g.getStyles(`itemIndicator`,{styles:i,classNames:t}),"data-placeholder":!0}),c&&(0,U.jsx)(`div`,{...g.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`left`,children:c}),u&&(0,U.jsx)(`div`,{...g.getStyles(`itemLabel`,{styles:i,classNames:t}),"data-menu-item-label":!0,children:u}),l&&(0,U.jsx)(`div`,{...g.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`right`,children:l})]})});Ph.classes=Th,Ph.displayName=`@mantine/core/MenuItem`;var Fh=G(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`MenuLabel`,null,e),s=bh();return(0,U.jsx)(K,{...s.getStyles(`label`,{className:n,style:r,styles:i,classNames:t}),...o})});Fh.classes=Th,Fh.displayName=`@mantine/core/MenuLabel`;var Ih=(0,h.createContext)(null);function Lh(e){let{value:t,defaultValue:n,onChange:r,children:i}=W(`MenuRadioGroup`,null,e),[a,o]=ae({value:t,defaultValue:n,finalValue:null,onChange:r});return(0,U.jsx)(Ih,{value:{value:a,onChange:e=>o(e)},children:i})}Lh.displayName=`@mantine/core/MenuRadioGroup`;function Rh({size:e,style:t,...n}){return(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 5 5`,style:{width:H(e),height:H(e),...t},"aria-hidden":!0,...n,children:(0,U.jsx)(`circle`,{cx:`2.5`,cy:`2.5`,r:`2.5`,fill:`currentColor`})})}var zh=G(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:o,closeMenuOnClick:s,rightSection:c,children:l,disabled:u,"data-disabled":d,value:f,checked:p,onChange:m,checkIcon:g,ref:_,...v}=W(`MenuRadioItem`,null,e),y=bh(),b=(0,h.use)(Ih),x=p??(b?b.value===f:!1),S=g??y.checkIcon??(0,U.jsx)(Rh,{size:5});return(0,U.jsx)(wh,{role:`menuitemradio`,checked:x,indicator:S,onSelect:()=>{x||(m?m(f):b&&b.onChange(f))},color:o,closeMenuOnClick:s,rightSection:c,disabled:u,dataDisabled:d,className:n,style:r,styles:i,classNames:t,buttonRef:_,others:v,children:l})});zh.classes=Th,zh.displayName=`@mantine/core/MenuRadioItem`;var Bh=`[data-menu-item]:not([data-disabled])`,Vh=`[data-menu-active]`;function Hh(e){return e?.closest(`[data-menu-dropdown]`)}function Uh(e){return e?Array.from(e.querySelectorAll(Bh)).filter(t=>t.closest(`[data-menu-dropdown]`)===e):[]}function Wh(e){e&&e.querySelectorAll(Vh).forEach(t=>{t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}function Gh(e,t){Wh(t),e&&(e.setAttribute(`data-menu-active`,`true`),e.scrollIntoView({block:`nearest`}))}function Kh(e){return e.findIndex(e=>e.hasAttribute(`data-menu-active`))}var qh={clearSearchOnClose:!0},Jh=G(e=>{let{classNames:t,styles:n,onKeyDown:r,onChange:i,size:a,clearSearchOnClose:o,ref:s,...c}=W(`MenuSearch`,qh,e),l=bh(),u=(0,h.useRef)(null),d=ie(s,u),f=(0,h.useRef)(i);f.current=i,(0,h.useEffect)(()=>l.registerSearch(),[l.registerSearch]),(0,h.useEffect)(()=>{o?l.searchExitClearRef.current=()=>{f.current?.({currentTarget:{value:``}})}:l.searchExitClearRef.current=null},[o,l.searchExitClearRef]),(0,h.useEffect)(()=>{l.opened||Wh(Hh(u.current))},[l.opened]);let p=Bt(i,e=>{Wh(Hh(e.currentTarget))}),m=Bt(r,e=>{if(e.defaultPrevented)return;let t=Hh(e.currentTarget),n=Uh(t);if(e.key===`ArrowDown`){if(e.preventDefault(),n.length===0)return;let r=Kh(n);Gh(n[r>=n.length-1?l.loop?0:r:r+1]??null,t)}else if(e.key===`ArrowUp`){if(e.preventDefault(),n.length===0)return;let r=Kh(n);Gh(n[r<=0?r===-1||l.loop?n.length-1:0:r-1]??null,t)}else if(e.key===`Home`)e.preventDefault(),n.length>0&&Gh(n[0],t);else if(e.key===`End`)e.preventDefault(),n.length>0&&Gh(n[n.length-1],t);else if(e.key===`Enter`){if(e.nativeEvent.isComposing||e.nativeEvent.keyCode===229)return;let t=n[Kh(n)];t&&(e.preventDefault(),t.hasAttribute(`data-sub-menu-item`)?(t.focus(),t.dispatchEvent(new KeyboardEvent(`keydown`,{key:`ArrowRight`,bubbles:!0}))):t.click())}}),g=l.getStyles(`search`);return(0,U.jsx)(mf,{"data-autofocus":!0,"data-mantine-stop-propagation":!0,type:`search`,size:a,...c,ref:d,classNames:[{input:g.className},t],styles:[{input:g.style},n],onKeyDown:m,onChange:p,__staticSelector:`Menu`})});Jh.classes=Th,Jh.displayName=`@mantine/core/MenuSearch`;var Yh=G(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,onMouseEnter:o,onMouseLeave:s,onPointerEnter:c,onPointerLeave:l,onKeyDown:u,children:d,ref:f,...p}=W(`MenuSubDropdown`,null,e),m=(0,h.useRef)(null),g=bh(),_=(0,h.use)(Ch),v=Mh({enabled:!g.hasSearch,opened:_?.opened??!1,getDropdown:()=>m.current}),y=Bt(u,e=>{v(e),e.ctrlKey||e.metaKey||e.altKey||e.key.length!==1||e.key===` `||e.stopPropagation()}),b=_?.getFloatingProps({onMouseEnter:o,onMouseLeave:s,onPointerEnter:c,onPointerLeave:l});return(0,U.jsx)(Kl.Dropdown,{...p,...b,role:`menu`,"aria-orientation":`vertical`,ref:ie(f,m,_?.setFloating),...g.getStyles(`dropdown`,{className:n,style:r,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:y,children:d})});Yh.classes=Th,Yh.displayName=`@mantine/core/MenuSubDropdown`;var Xh=xi(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:o,leftSection:s,rightSection:c,children:l,disabled:u,"data-disabled":d,closeMenuOnClick:f,ref:p,...m}=W(`MenuSubItem`,null,e),g=bh(),_=(0,h.use)(Ch),v=sr(),{dir:y}=ki(),b=(0,h.useRef)(null),x=m,S=o?v.variantColorResolver({color:o,theme:v,variant:`light`}):void 0,C=o?vn({color:o,theme:v}):null,w=Bt(x.onKeyDown,e=>{e.key===`ArrowRight`&&(_?.open(),_?.focusFirstItem()),e.key===`ArrowLeft`&&_?.parentContext&&(_.parentContext.close(),_.parentContext.focusParentItem())}),T=Bt(x.onClick,()=>{!d&&f&&g.closeDropdownImmediately()}),E=Bt(x.onMouseMove,()=>{if(!g.hasSearch)return;let e=b.current?.closest(`[data-menu-dropdown]`);e&&e.querySelectorAll(`[data-menu-active]`).forEach(t=>{t!==b.current&&t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}),D=_?.getReferenceProps({onMouseEnter:x.onMouseEnter,onMouseLeave:x.onMouseLeave,onPointerEnter:x.onPointerEnter,onPointerLeave:x.onPointerLeave});return(0,U.jsxs)(Qc,{onMouseDown:e=>e.preventDefault(),...m,...D,unstyled:g.unstyled,tabIndex:g.menuItemTabIndex,...g.getStyles(`item`,{className:n,style:r,styles:i,classNames:t}),ref:ie(b,p,_?.setReference),role:`menuitem`,disabled:u,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":u||d||void 0,"data-mantine-stop-propagation":!0,onClick:T,onMouseMove:E,onKeyDown:kt({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:g.loop,dir:y,orientation:`vertical`,onKeyDown:w}),__vars:{"--menu-item-color":C?.isThemeColor&&C?.shade===void 0?`var(--mantine-color-${C.color}-6)`:S?.color,"--menu-item-hover":S?.hover},children:[g.alignItemsLabels===`all`&&(0,U.jsx)(`div`,{...g.getStyles(`itemIndicator`,{styles:i,classNames:t}),"data-placeholder":!0}),s&&(0,U.jsx)(`div`,{...g.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`left`,children:s}),l&&(0,U.jsx)(`div`,{...g.getStyles(`itemLabel`,{styles:i,classNames:t}),"data-menu-item-label":!0,children:l}),(0,U.jsx)(`div`,{...g.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`right`,children:c||(0,U.jsx)(Of,{...g.getStyles(`chevron`),size:14})})]})});Xh.classes=Th,Xh.displayName=`@mantine/core/MenuSubItem`;function Zh({children:e,refProp:t}){if(!St(e))throw Error(`Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);return bh(),(0,U.jsx)(Kl.Target,{refProp:t,popupType:`menu`,children:e})}Zh.displayName=`@mantine/core/MenuSubTarget`;var Qh={offset:0,position:`right-start`,safeAreaPolygon:!0,transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function $h(e){let{children:t,closeDelay:n,openDelay:r,position:i,safeAreaPolygon:a,opened:o,onChange:s,...c}=W(`MenuSub`,Qh,e),l=R(),[u,d]=ae({value:o,finalValue:!1,onChange:s}),f=(0,h.use)(Ch),p=bh(),{dir:m}=ki(),g=dl(m,i),_=f?.registerOpenSub??p.registerOpenSub,v=(0,h.useRef)(null),y=(0,h.useCallback)(e=>{let t=v.current;return t&&t!==e&&t(),v.current=e,()=>{v.current===e&&(v.current=null)}},[]),b=(0,h.useRef)(d);b.current=d;let x=(0,h.useCallback)(()=>b.current(!0),[]),S=(0,h.useCallback)(()=>b.current(!1),[]);(0,h.useEffect)(()=>{if(u)return _(S)},[u,_,S]);let{context:C,refs:w}=Fc({placement:g,open:u,onOpenChange:e=>{e?x():S()}}),{getReferenceProps:T,getFloatingProps:E}=zc([Sc(C,{handleClose:a?Gc(typeof a==`object`?a:void 0):void 0,delay:{open:r,close:n}})]);return(0,U.jsx)(Ch,{value:{opened:u,close:S,open:x,focusFirstItem:()=>window.setTimeout(()=>{document.getElementById(`${l}-dropdown`)?.querySelectorAll(`[data-menu-item]:not([data-disabled])`)[0]?.focus()},16),focusParentItem:()=>window.setTimeout(()=>{document.getElementById(`${l}-target`)?.focus()},16),parentContext:f,setReference:w.setReference,setFloating:w.setFloating,getReferenceProps:T,getFloatingProps:E,registerOpenSub:y},children:(0,U.jsx)(Kl,{opened:u,onChange:e=>e?x():S(),withArrow:!1,id:l,position:i,...c,withinPortal:!1,children:t})})}$h.extend=e=>e,$h.displayName=`@mantine/core/MenuSub`,$h.Target=Zh,$h.Dropdown=Yh,$h.Item=Xh;var eee={refProp:`ref`};function eg(e){let{children:t,refProp:n,...r}=W(`MenuTarget`,eee,e),i=Zt(t);if(!i)throw Error(`Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let a=bh(),o=i.props,s=Bt(o.onClick,()=>{a.trigger===`click`?a.toggleDropdown():a.trigger===`click-hover`&&(a.setOpenedViaClick(!0),a.opened||a.openDropdown())}),c=Bt(o.onMouseEnter,()=>(a.trigger===`hover`||a.trigger===`click-hover`)&&a.openDropdown()),l=Bt(o.onMouseLeave,()=>{(a.trigger===`hover`||a.trigger===`click-hover`&&!a.openedViaClick)&&a.closeDropdown()});return(0,U.jsx)(Kl.Target,{refProp:n,popupType:`menu`,...r,children:(0,h.cloneElement)(i,{onClick:s,onMouseEnter:c,onMouseLeave:l,"data-expanded":a.opened?!0:void 0})})}eg.displayName=`@mantine/core/MenuTarget`;var tee={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:[`mousedown`,`touchstart`,`keydown`],loop:!0,trigger:`click`,openDelay:0,closeDelay:100,menuItemTabIndex:-1,alignItemsLabels:`with-indicators`},tg=G(e=>{let t=W(`Menu`,tee,e),{children:n,onOpen:r,onClose:i,opened:a,defaultOpened:o,trapFocus:s,onChange:c,closeOnItemClick:l,loop:u,closeOnEscape:d,trigger:f,openDelay:p,closeDelay:m,classNames:g,styles:_,unstyled:v,variant:y,vars:b,menuItemTabIndex:x,keepMounted:S,withInitialFocusPlaceholder:C,attributes:w,onExitTransitionEnd:T,alignItemsLabels:E,checkIcon:D,...O}=t,k=Rr({name:`Menu`,classes:Th,props:t,classNames:g,styles:_,unstyled:v,attributes:w}),[A,j]=ae({value:a,defaultValue:o,finalValue:!1,onChange:c}),[M,N]=(0,h.useState)(!1),P=()=>{j(!1),N(!1),A&&i?.()},F=()=>{j(!0),!A&&r?.()},ee=()=>{A?P():F()},{openDropdown:I,closeDropdown:L}=fl({open:F,close:P,closeDelay:m,openDelay:p}),R=(0,h.useRef)(null),te=(0,h.useCallback)(e=>{let t=R.current;return t&&t!==e&&t(),R.current=e,()=>{R.current===e&&(R.current=null)}},[]),ne=(0,h.useRef)(0),[re,ie]=(0,h.useState)(!1),oe=(0,h.useCallback)(()=>(ne.current+=1,ne.current===1&&ie(!0),()=>{--ne.current,ne.current===0&&ie(!1)}),[]),z=(0,h.useRef)(null),se=()=>{z.current?.(),T?.()},ce=e=>Wt(`[data-menu-item]`,`[data-menu-dropdown]`,e),{resolvedClassNames:B,resolvedStyles:le}=Cr({classNames:g,styles:_,props:t});return(0,U.jsx)(yh,{value:{getStyles:k,opened:A,toggleDropdown:ee,getItemIndex:ce,openedViaClick:M,setOpenedViaClick:N,closeOnItemClick:l,closeDropdown:f===`click`?P:L,openDropdown:f===`click`?F:I,closeDropdownImmediately:P,loop:u,trigger:f,unstyled:v,menuItemTabIndex:x,withInitialFocusPlaceholder:C,registerOpenSub:te,hasSearch:re,registerSearch:oe,searchExitClearRef:z,alignItemsLabels:E,checkIcon:D},children:(0,U.jsx)(Kl,{returnFocus:!0,...O,opened:A,onChange:ee,defaultOpened:o,trapFocus:!S&&s,closeOnEscape:d,__staticSelector:`Menu`,classNames:B,styles:le,unstyled:v,variant:y,keepMounted:S,onExitTransitionEnd:se,children:n})})});tg.displayName=`@mantine/core/Menu`,tg.classes=Th,tg.Item=Ph,tg.Label=Fh,tg.Dropdown=Nh,tg.Target=eg,tg.Divider=Oh,tg.Search=Jh,tg.Sub=$h,tg.CheckboxItem=Eh,tg.CheckboxGroup=Sh,tg.RadioItem=zh,tg.RadioGroup=Lh,tg.ContextMenu=Dh;var[nee,ng]=Ct(`Modal component was not found in tree`),rg={root:`m_9df02822`,content:`m_54c44539`,inner:`m_1f958f16`,header:`m_d0e2b9cd`},ig=G(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`ModalBody`,null,e),s=ng();return(0,U.jsx)(Fd,{...s.getStyles(`body`,{classNames:t,style:r,styles:i,className:n}),...o})});ig.classes=rg,ig.displayName=`@mantine/core/ModalBody`;var ag=G(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`ModalCloseButton`,null,e),s=ng();return(0,U.jsx)(Id,{...s.getStyles(`close`,{classNames:t,style:r,styles:i,className:n}),...o})});ag.classes=rg,ag.displayName=`@mantine/core/ModalCloseButton`;var og=G(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,__hidden:s,...c}=W(`ModalContent`,null,e),l=ng(),u=l.scrollAreaComponent||Wd;return(0,U.jsx)(Ld,{...l.getStyles(`content`,{className:n,style:r,styles:i,classNames:t}),innerProps:l.getStyles(`inner`,{className:n,style:r,styles:i,classNames:t}),"data-full-screen":l.fullScreen||void 0,"data-modal-content":!0,"data-hidden":s||void 0,...c,children:(0,U.jsx)(u,{style:{maxHeight:l.fullScreen?`100dvh`:`calc(100dvh - (${H(l.yOffset)} * 2))`},children:o})})});og.classes=rg,og.displayName=`@mantine/core/ModalContent`;var sg=G(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`ModalHeader`,null,e),s=ng();return(0,U.jsx)(Rd,{...s.getStyles(`header`,{classNames:t,style:r,styles:i,className:n}),...o})});sg.classes=rg,sg.displayName=`@mantine/core/ModalHeader`;var cg=G(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`ModalOverlay`,null,e),s=ng();return(0,U.jsx)(Vd,{...s.getStyles(`overlay`,{classNames:t,style:r,styles:i,className:n}),...o})});cg.classes=rg,cg.displayName=`@mantine/core/ModalOverlay`;var ree={__staticSelector:`Modal`,closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:jt(`modal`),transitionProps:{duration:200,transition:`fade-down`},yOffset:`5dvh`},lg=Qt((e,{radius:t,size:n,yOffset:r,xOffset:i})=>({root:{"--modal-radius":t===void 0?void 0:It(t),"--modal-size":Pt(n,`modal-size`),"--modal-y-offset":H(r),"--modal-x-offset":H(i)}})),ug=G(e=>{let t=W(`ModalRoot`,ree,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,yOffset:c,scrollAreaComponent:l,radius:u,fullScreen:d,centered:f,xOffset:p,__staticSelector:m,attributes:h,...g}=t,_=Rr({name:m,classes:rg,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:lg});return(0,U.jsx)(nee,{value:{yOffset:c,scrollAreaComponent:l,getStyles:_,fullScreen:d},children:(0,U.jsx)(Md,{..._(`root`),"data-full-screen":d||void 0,"data-centered":f||void 0,"data-offset-scrollbars":l===Jc.Autosize||void 0,unstyled:o,...g})})});ug.classes=rg,ug.varsResolver=lg,ug.displayName=`@mantine/core/ModalRoot`;var dg=(0,h.createContext)(null);function fg({children:e}){let[t,n]=(0,h.useState)([]),[r,i]=(0,h.useState)(jt(`modal`)),[a]=(0,h.useState)(()=>new WeakSet);return(0,U.jsx)(dg,{value:{stack:t,addModal:(e,t)=>{n(t=>[...new Set([...t,e])]),i(e=>typeof t==`number`&&typeof e==`number`?Math.max(e,t):e)},removeModal:e=>n(t=>t.filter(t=>t!==e)),getZIndex:e=>`calc(${r} + ${t.indexOf(e)} + 1)`,currentId:t[t.length-1],maxZIndex:r,handledEscapeEvents:a},children:e})}fg.displayName=`@mantine/core/ModalStack`;var pg=G(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`ModalTitle`,null,e),s=ng();return(0,U.jsx)(Ud,{...s.getStyles(`title`,{classNames:t,style:r,styles:i,className:n}),...o})});pg.classes=rg,pg.displayName=`@mantine/core/ModalTitle`;var iee={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:jt(`modal`),transitionProps:{duration:200,transition:`fade-down`},withOverlay:!0,withCloseButton:!0},mg=G(e=>{let{title:t,withOverlay:n,overlayProps:r,withCloseButton:i,closeButtonProps:a,children:o,radius:s,opened:c,stackId:l,zIndex:u,...d}=W(`Modal`,iee,e),f=(0,h.use)(dg),p=!!t||i,m=f&&l?{closeOnEscape:f.currentId===l,trapFocus:f.currentId===l,zIndex:f.getZIndex(l),__handledEscapeEvents:f.handledEscapeEvents}:{},g=n===!1?!1:l&&f?f.currentId===l:c;return(0,h.useEffect)(()=>{f&&l&&(c?f.addModal(l,u||jt(`modal`)):f.removeModal(l))},[c,l,u]),(0,U.jsxs)(ug,{radius:s,opened:c,zIndex:f&&l?f.getZIndex(l):u,...d,...m,children:[n&&(0,U.jsx)(cg,{visible:g,transitionProps:f&&l?{duration:0}:void 0,...r}),(0,U.jsxs)(og,{radius:s,__hidden:f&&l&&c?l!==f.currentId:!1,children:[p&&(0,U.jsxs)(sg,{children:[t&&(0,U.jsx)(pg,{children:t}),i&&(0,U.jsx)(ag,{...a})]}),(0,U.jsx)(ig,{children:o})]})]})});mg.classes=rg,mg.displayName=`@mantine/core/Modal`,mg.Root=ug,mg.Overlay=cg,mg.Content=og,mg.Body=ig,mg.Header=sg,mg.Title=pg,mg.CloseButton=ag,mg.Stack=fg;var hg=(0,h.createContext)(null),gg={root:`m_7cda1cd6`,"root--default":`m_44da308b`,"root--contrast":`m_e3a01f8`,label:`m_1e0e6180`,remove:`m_ae386778`,group:`m_1dcfd90b`},_g=(0,h.createContext)(null),vg=Qt((e,{gap:t},{size:n})=>({group:{"--pg-gap":t===void 0?Pt(n,`pg-gap`):Pt(t)}})),yg=G(e=>{let t=W(`PillGroup`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,size:c,disabled:l,attributes:u,...d}=t,f=(0,h.use)(hg)?.size||c||void 0,p=Rr({name:`PillGroup`,classes:gg,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s,varsResolver:vg,stylesCtx:{size:f},rootSelector:`group`});return(0,U.jsx)(_g,{value:{size:f,disabled:l},children:(0,U.jsx)(K,{size:f,...p(`group`),...d})})});yg.classes=gg,yg.varsResolver=vg,yg.displayName=`@mantine/core/PillGroup`;var aee={variant:`default`},bg=Qt((e,{radius:t},{size:n})=>({root:{"--pill-fz":Pt(n,`pill-fz`),"--pill-height":Pt(n,`pill-height`),"--pill-radius":t===void 0?void 0:It(t)}})),xg=G(e=>{let t=W(`Pill`,aee,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,variant:c,children:l,withRemoveButton:u,onRemove:d,removeButtonProps:f,radius:p,size:m,disabled:g,mod:_,attributes:v,...y}=t,b=(0,h.use)(_g),x=(0,h.use)(hg),S=m||b?.size||void 0,C=x?.variant===`filled`?`contrast`:c||`default`,w=Rr({name:`Pill`,classes:gg,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:v,vars:s,varsResolver:bg,stylesCtx:{size:S}});return(0,U.jsxs)(K,{component:`span`,variant:C,size:S,...w(`root`,{variant:C}),mod:[{"with-remove":u&&!g,disabled:g||b?.disabled},_],...y,children:[(0,U.jsx)(`span`,{...w(`label`),children:l}),u&&(0,U.jsx)(pu,{variant:`transparent`,radius:p,tabIndex:-1,"aria-hidden":!0,unstyled:o,...f,...w(`remove`,{className:f?.className,style:f?.style}),onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),f?.onMouseDown?.(e)},onClick:e=>{e.stopPropagation(),d?.(),f?.onClick?.(e)}})]})});xg.classes=gg,xg.varsResolver=bg,xg.displayName=`@mantine/core/Pill`,xg.Group=yg;function oee(e,t){let n=t.trim().toLowerCase();if(n===``)return;let r=Object.values(e).filter(e=>!e.disabled&&e.label.trim().toLowerCase()===n);return r.length===1?r[0]:void 0}var Sg={root:`m_a513464`,icon:`m_a4ceffb`,loader:`m_b0920b15`,body:`m_a49ed24`,title:`m_3feedf16`,description:`m_3d733a3a`,closeButton:`m_919a4d88`},see={withCloseButton:!0},Cg=Qt((e,{radius:t,color:n})=>({root:{"--notification-radius":t===void 0?void 0:It(t),"--notification-color":n?yn(n,e):void 0}})),wg=G(e=>{let t=W(`Notification`,see,e),{className:n,color:r,radius:i,loading:a,withCloseButton:o,withBorder:s,title:c,icon:l,children:u,onClose:d,closeButtonProps:f,classNames:p,style:m,styles:h,unstyled:g,vars:_,mod:v,loaderProps:y,role:b,attributes:x,...S}=t,C=Rr({name:`Notification`,classes:Sg,props:t,className:n,style:m,classNames:p,styles:h,unstyled:g,attributes:x,vars:_,varsResolver:Cg});return(0,U.jsxs)(K,{...C(`root`),mod:[{withIcon:!!l||a,withBorder:s},v],role:b||`alert`,...S,children:[l&&!a&&(0,U.jsx)(`div`,{...C(`icon`),children:l}),a&&(0,U.jsx)(eu,{size:28,color:r,...C(`loader`),...y}),(0,U.jsxs)(`div`,{...C(`body`),children:[c&&(0,U.jsx)(`div`,{...C(`title`),children:c}),(0,U.jsx)(K,{...C(`description`),mod:{withTitle:!!c},children:u})]}),o&&(0,U.jsx)(pu,{iconSize:16,color:`gray`,...f,unstyled:g,onClick:e=>{f?.onClick?.(e),d?.()},...C(`closeButton`)})]})});wg.classes=Sg,wg.varsResolver=Cg,wg.displayName=`@mantine/core/Notification`;var[cee,Tg]=Ct(`Progress.Root component was not found in tree`),Eg={root:`m_db6d6462`,section:`m_2242eb65`,"stripes-animation":`m_81a374bd`,"stripes-animation-vertical":`m_e0fb7a86`,label:`m_91e40b74`},Dg=G(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`ProgressLabel`,null,e),s=Tg();return(0,U.jsx)(K,{...s.getStyles(`label`,{className:n,style:r,classNames:t,styles:i}),...o})});Dg.classes=Eg,Dg.displayName=`@mantine/core/ProgressLabel`;var Og=Qt((e,{size:t,radius:n,transitionDuration:r})=>({root:{"--progress-size":Pt(t,`progress-size`),"--progress-radius":n===void 0?void 0:It(n),"--progress-transition-duration":typeof r==`number`?`${r}ms`:void 0}})),kg=G(e=>{let t=W(`ProgressRoot`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,autoContrast:c,transitionDuration:l,orientation:u,attributes:d,mod:f,...p}=t,m=Rr({name:`Progress`,classes:Eg,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:Og});return(0,U.jsx)(cee,{value:{getStyles:m,autoContrast:c},children:(0,U.jsx)(K,{mod:[{orientation:u},f],...m(`root`),...p})})});kg.classes=Eg,kg.varsResolver=Og,kg.displayName=`@mantine/core/ProgressRoot`;var lee={withAria:!0},Ag=G(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,value:o,withAria:s,color:c,striped:l,animated:u,mod:d,...f}=W(`ProgressSection`,lee,e),p=Tg(),m=sr(),h=s?{role:`progressbar`,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":o,"aria-valuetext":`${o}%`}:{};return(0,U.jsx)(K,{...p.getStyles(`section`,{className:n,classNames:t,styles:i,style:r}),...f,...h,mod:[{striped:l||u,animated:u},d],__vars:{"--progress-section-size":`${o}%`,"--progress-section-color":yn(c,m),"--progress-label-color":Mn(p.autoContrast,m)?kn({color:c,theme:m,autoContrast:p.autoContrast}):void 0}})});Ag.classes=Eg,Ag.displayName=`@mantine/core/ProgressSection`;var jg=G(e=>{let t=W(`Progress`,null,e),{value:n,classNames:r,styles:i,vars:a,color:o,striped:s,animated:c,"aria-label":l,...u}=t,{resolvedClassNames:d,resolvedStyles:f}=Cr({classNames:r,styles:i,props:t});return(0,U.jsx)(kg,{classNames:d,styles:f,vars:a,...u,children:(0,U.jsx)(Ag,{value:n,color:o,striped:s,animated:c,"aria-label":l})})});jg.classes=Eg,jg.displayName=`@mantine/core/Progress`,jg.Section=Ag,jg.Root=kg,jg.Label=Dg;function uee({offset:e,position:t,defaultOpened:n}){let[r,i]=(0,h.useState)(n),a=(0,h.useRef)(null),{x:o,y:s,elements:c,refs:l,update:u,placement:d}=Fc({placement:t,middleware:[Us({crossAxis:!0,padding:5,rootBoundary:`document`})]}),f=d.includes(`right`)?e:t.includes(`left`)?e*-1:0,p=d.includes(`bottom`)?e:t.includes(`top`)?e*-1:0,m=(0,h.useCallback)(({clientX:e,clientY:t})=>{Number.isFinite(e)&&Number.isFinite(t)&&l.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:e,y:t,left:e+f,top:t+p,right:e,bottom:t}}})},[c.reference]);return(0,h.useEffect)(()=>{if(l.floating.current){let e=a.current;e.addEventListener(`mousemove`,m);let t=Ma(l.floating.current);return t.forEach(e=>{e.addEventListener(`scroll`,u)}),()=>{e.removeEventListener(`mousemove`,m),t.forEach(e=>{e.removeEventListener(`scroll`,u)})}}},[c.reference,l.floating.current,u,m,r]),{handleMouseMove:m,x:o,y:s,opened:r,setOpened:i,boundaryRef:a,floating:l.setFloating}}var Mg={tooltip:`m_1b3c8819`,arrow:`m_f898399f`},dee={refProp:`ref`,withinPortal:!0,offset:10,position:`right`,zIndex:jt(`popover`)},Ng=Qt((e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:It(t),"--tooltip-bg":n?yn(n,e):void 0,"--tooltip-color":n?`var(--mantine-color-white)`:void 0}})),Pg=G(e=>{let t=W(`TooltipFloating`,dee,e),{children:n,refProp:r,withinPortal:i,style:a,className:o,classNames:s,styles:c,unstyled:l,radius:u,color:d,label:f,offset:p,position:m,multiline:g,zIndex:_,disabled:v,defaultOpened:y,variant:b,vars:x,portalProps:S,attributes:C,ref:w,...T}=t,E=sr(),D=Rr({name:`TooltipFloating`,props:t,classes:Mg,className:o,style:a,classNames:s,styles:c,unstyled:l,attributes:C,rootSelector:`tooltip`,vars:x,varsResolver:Ng}),{handleMouseMove:O,x:k,y:A,opened:j,boundaryRef:M,floating:N,setOpened:P}=uee({offset:p,position:m,defaultOpened:y}),F=Zt(n);if(!F)throw Error(`[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported`);let ee=ie(M,Kt(F),w),I=F.props,L=e=>{I.onMouseEnter?.(e),O(e),P(!0)},R=e=>{I.onMouseLeave?.(e),P(!1)};return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Sl,{...S,withinPortal:i,children:(0,U.jsx)(K,{...T,...D(`tooltip`,{style:{...gi(a,E),zIndex:_,display:!v&&j?`block`:`none`,top:Number.isFinite(A)?Math.round(A):``,left:Number.isFinite(k)?Math.round(k):``}}),variant:b,ref:N,mod:{multiline:g},children:f})}),(0,h.cloneElement)(F,{...I,[r]:ee,onMouseEnter:L,onMouseLeave:R})]})});Pg.classes=Mg,Pg.varsResolver=Ng,Pg.displayName=`@mantine/core/TooltipFloating`;var Fg=(0,h.createContext)({withinGroup:!1}),fee={openDelay:0,closeDelay:0};function Ig(e){let{openDelay:t,closeDelay:n,children:r}=W(`TooltipGroup`,fee,e);return(0,U.jsx)(Fg,{value:{withinGroup:!0},children:(0,U.jsx)(Ec,{delay:{open:t,close:n},children:r})})}Ig.displayName=`@mantine/core/TooltipGroup`,Ig.extend=e=>e;function pee(e){if(e===void 0)return{shift:!0,flip:!0};let t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function mee(e){let t=pee(e.middlewares),n=[Hs(e.offset),qs()];return t.shift&&n.push(Us(typeof t.shift==`boolean`?{padding:8}:{padding:8,...t.shift})),t.flip&&n.push(typeof t.flip==`boolean`?Gs():Gs(t.flip)),n.push(Ys({element:e.arrowRef,padding:e.arrowOffset})),t.inline?n.push(typeof t.inline==`boolean`?Js():Js(t.inline)):e.inline&&n.push(Js()),n}function hee(e){let[t,n]=(0,h.useState)(e.defaultOpened),r=typeof e.opened==`boolean`,i=!e.disabled&&(r?e.opened:t);(0,h.useEffect)(()=>{e.disabled&&n(!1)},[e.disabled]);let a=(0,h.use)(Fg).withinGroup,o=R(),s=Hn(),c=(0,h.useCallback)(e=>{n(e),e&&b(o)},[o]),{x:l,y:u,context:d,refs:f,placement:p,middlewareData:{arrow:{x:m,y:g}={},hide:_}}=Fc({strategy:e.strategy,placement:e.position,open:i,onOpenChange:c,middleware:mee(e),whileElementsMounted:Ts}),{delay:v,currentId:y,setCurrentId:b}=Dc(d,{id:o}),{getReferenceProps:x,getFloatingProps:S}=zc([Sc(d,{enabled:!e.disabled&&e.events?.hover,delay:a?v:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events?.touch,handleClose:e.interactive?Gc():null}),Lc(d,{enabled:!e.disabled&&e.events?.focus,visibleOnly:!0}),Vc(d,{role:`tooltip`}),Nc(d,{enabled:e.opened===void 0})]),w=(0,h.useRef)(p);C(()=>{w.current!==p&&(w.current=p,e.onPositionChange?.(p))},[p]);let T=i&&y&&y!==o;return{x:l,y:u,arrowX:m,arrowY:g,reference:f.setReference,floating:f.setFloating,getFloatingProps:S,getReferenceProps:x,isGroupPhase:T,opened:i,placement:p,referenceHidden:e.hideDetached&&s!==`test`?_?.referenceHidden:!1}}var gee={position:`top`,refProp:`ref`,withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:`side`,offset:5,transitionProps:{duration:100,transition:`fade`},events:{hover:!0,focus:!1,touch:!1},zIndex:jt(`popover`),middlewares:{flip:!0,shift:!0,inline:!1},hideDetached:!0},Lg=Qt((e,{radius:t,color:n,variant:r,autoContrast:i})=>{let a=e.variantColorResolver({theme:e,color:n||e.primaryColor,autoContrast:i,variant:r||`filled`});return{tooltip:{"--tooltip-radius":t===void 0?void 0:It(t),"--tooltip-bg":n?a.background:void 0,"--tooltip-color":n?a.color:void 0}}}),Rg=G(e=>{let t=W(`Tooltip`,gee,e),{children:n,position:r,refProp:i,label:a,openDelay:o,closeDelay:s,onPositionChange:c,opened:l,defaultOpened:u,withinPortal:d,radius:f,color:p,classNames:m,styles:g,unstyled:_,style:v,className:y,withArrow:b,arrowSize:x,arrowOffset:S,arrowRadius:C,arrowPosition:w,offset:T,transitionProps:E,multiline:D,events:O,interactive:k,zIndex:A,disabled:j,onClick:M,onMouseEnter:N,onMouseLeave:P,inline:F,variant:ee,keepMounted:I,vars:L,portalProps:R,mod:te,floatingStrategy:ne,middlewares:re,autoContrast:ae,attributes:oe,target:z,hideDetached:se,ref:ce,...B}=t,{dir:le}=ki(),ue=(0,h.useRef)(null),de=hee({position:dl(le,r),closeDelay:s,openDelay:o,onPositionChange:c,opened:l,defaultOpened:u,disabled:j,events:O,interactive:k,arrowRef:ue,arrowOffset:S,offset:typeof T==`number`?T+(b?x/2:0):T,inline:F,strategy:ne,middlewares:re,hideDetached:se});(0,h.useEffect)(()=>{let e=z instanceof HTMLElement?z:typeof z==`string`?document.querySelector(z):z?.current||null;e&&de.reference(e)},[z,de]);let fe=Rr({name:`Tooltip`,props:t,classes:Mg,className:y,style:v,classNames:m,styles:g,unstyled:_,attributes:oe,rootSelector:`tooltip`,vars:L,varsResolver:Lg}),pe=Zt(n);if(!z&&!pe)throw Error(`[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported`);let me=fe(`tooltip`),he=k&&!j&&!!de.opened,ge=w===`merge`&&b?ll({position:de.placement,dir:le}):void 0;if(z){let e=Al(E,{duration:100,transition:`fade`});return(0,U.jsx)(U.Fragment,{children:(0,U.jsx)(Sl,{...R,withinPortal:d,children:(0,U.jsx)(Ol,{...e,keepMounted:I,mounted:!j&&!!de.opened,duration:de.isGroupPhase?10:e.duration,children:e=>(0,U.jsxs)(K,{...B,"data-fixed":ne===`fixed`||void 0,variant:ee,mod:[{multiline:D,interactive:he},te],...me,...de.getFloatingProps({ref:de.floating,className:me.className,style:{...me.style,...e,...ge,zIndex:A,top:de.y??0,left:de.x??0,...de.referenceHidden?{display:`none`}:null}}),children:[a,(0,U.jsx)(ul,{ref:ue,arrowX:de.arrowX,arrowY:de.arrowY,visible:b,position:de.placement,arrowSize:x,arrowOffset:S,arrowRadius:C,arrowPosition:w,...fe(`arrow`)})]})})})})}let _e=pe.props,V=ie(de.reference,Kt(pe),ce),ve=Al(E,{duration:100,transition:`fade`});return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Sl,{...R,withinPortal:d,children:(0,U.jsx)(Ol,{...ve,keepMounted:I,mounted:!j&&!!de.opened,duration:de.isGroupPhase?10:ve.duration,children:e=>(0,U.jsxs)(K,{...B,"data-fixed":ne===`fixed`||void 0,variant:ee,mod:[{multiline:D,interactive:he},te],...de.getFloatingProps({ref:de.floating,className:fe(`tooltip`).className,style:{...fe(`tooltip`).style,...e,...ge,zIndex:A,top:de.y??0,left:de.x??0,...de.referenceHidden?{display:`none`}:null}}),children:[a,(0,U.jsx)(ul,{ref:ue,arrowX:de.arrowX,arrowY:de.arrowY,visible:b,position:de.placement,arrowSize:x,arrowOffset:S,arrowRadius:C,arrowPosition:w,...fe(`arrow`)})]})})}),(0,h.cloneElement)(pe,de.getReferenceProps({onClick:M,onMouseEnter:N,onMouseLeave:P,onMouseMove:t.onMouseMove,onPointerDown:t.onPointerDown,onPointerEnter:t.onPointerEnter,..._e,className:en(y,_e.className),[i]:V}))]})});Rg.classes=Mg,Rg.varsResolver=Lg,Rg.displayName=`@mantine/core/Tooltip`,Rg.Floating=Pg,Rg.Group=Ig;function _ee({size:e,thickness:t,sum:n,value:r,root:i,offset:a}){let o=(e*.9-t*2)/2,s=Math.PI*o*2/100,c=i||r===void 0?`${(100-n)*s}, ${n*s}`:`${r*s}, ${(100-r)*s}`;return{strokeWidth:Number.isNaN(t)?12:t,cx:e/2||0,cy:e/2||0,r:o||0,transform:i?`scale(1, -1) translate(0, -${e})`:void 0,strokeDasharray:c,strokeDashoffset:i?0:a||0}}function zg({size:e,value:t,offset:n,sum:r,thickness:i,root:a,color:o,lineRoundCaps:s,tooltip:c,getStyles:l,display:u,...d}){let f=sr();return(0,U.jsx)(Rg.Floating,{disabled:!c,label:c,children:(0,U.jsx)(K,{component:`circle`,...d,...l(`curve`),__vars:{"--curve-color":o?yn(o,f):void 0},fill:`none`,strokeLinecap:s?`round`:`butt`,..._ee({sum:r,size:e,thickness:i,value:t,offset:n,root:a})})})}zg.displayName=`@mantine/core/Curve`;function vee({size:e,thickness:t,sections:n,renderRoundedLineCaps:r,rootColor:i,sectionGap:a=0}){let o=n.reduce((e,t)=>e+t.value,0),s=Math.PI*((e*.9-t*2)/2)*2,c=s,l=[],u=[],d=a/360*100;for(let e=0;e2){u.push({...l[0],lineRoundCaps:r}),u.push({...l[l.length-2],lineRoundCaps:r});for(let e=1;e<=l.length-3;e+=1)u.push({...l[e],lineRoundCaps:!1})}else u.push({...l[0],lineRoundCaps:r});return u}var Bg={root:`m_b32e4812`,svg:`m_d43b5134`,curve:`m_b1ca1fbf`,label:`m_b23f9dc4`};function yee(e,t){return Math.min(e||12,(t||120)/4)}var bee={size:120,thickness:12,startAngle:270},Vg=Qt((e,{size:t,thickness:n,transitionDuration:r,startAngle:i})=>({root:{"--rp-size":H(t),"--rp-label-offset":H(n*2),"--rp-transition-duration":r?`${r}ms`:void 0},svg:{"--rp-start-angle":`${i}deg`}})),Hg=G(e=>{let t=W(`RingProgress`,bee,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,label:c,sections:l,size:u,thickness:d,roundCaps:f,rootColor:p,transitionDuration:m,sectionGap:g,startAngle:_,attributes:v,...y}=t,b=Rr({name:`RingProgress`,classes:Bg,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:v,vars:s,varsResolver:Vg}),x=yee(d,u),S=vee({size:u,thickness:x,sections:l,renderRoundedLineCaps:f,rootColor:p,sectionGap:g}).map(({data:e,sum:t,root:n,lineRoundCaps:r,offset:i},a)=>(0,h.createElement)(zg,{...e,key:a,size:u,thickness:x,sum:t,offset:i,color:e?.color,root:n,lineRoundCaps:r,getStyles:b}));return(0,U.jsxs)(K,{...b(`root`),size:u,...y,children:[(0,U.jsx)(`svg`,{...b(`svg`),viewBox:`0 0 ${u} ${u}`,children:S}),c&&(0,U.jsx)(`div`,{...b(`label`),children:c})]})});Hg.classes=Bg,Hg.varsResolver=Vg,Hg.displayName=`@mantine/core/RingProgress`;var Ug={root:`m_cf365364`,indicator:`m_9e182ccd`,label:`m_1738fcb2`,input:`m_1714d588`,control:`m_69686b9b`,innerLabel:`m_78882f40`},xee={withItemsBorders:!0},Wg=Qt((e,{radius:t,color:n,transitionDuration:r,size:i,transitionTimingFunction:a})=>({root:{"--sc-radius":t===void 0?void 0:It(t),"--sc-color":n?yn(n,e):void 0,"--sc-shadow":n?void 0:`var(--mantine-shadow-xs)`,"--sc-transition-duration":r===void 0?void 0:`${r}ms`,"--sc-transition-timing-function":a,"--sc-padding":Pt(i,`sc-padding`),"--sc-font-size":Lt(i)}})),Gg=bi(e=>{let t=W(`SegmentedControl`,xee,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,data:c,value:l,defaultValue:u,onChange:d,size:f,name:p,disabled:m,readOnly:g,fullWidth:_,orientation:v,radius:y,color:b,transitionDuration:x,transitionTimingFunction:S,variant:C,autoContrast:w,withItemsBorders:T,mod:E,attributes:D,ref:O,...k}=t,A=Rr({name:`SegmentedControl`,props:t,classes:Ug,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:D,vars:s,varsResolver:Wg}),j=sr(),M=c.map(e=>qt(e)?{label:`${e}`,value:e}:e),N=be(),[P,F]=(0,h.useState)(0),[ee,I]=(0,h.useState)(null),[L,te]=(0,h.useState)({}),ne=(e,t)=>{e!==null&&L[t]!==e&&(L[t]=e,te({...L}))},[re,oe]=ae({value:l,defaultValue:u,finalValue:Array.isArray(c)?M.find(e=>!e.disabled)?.value??c[0]?.value??null:null,onChange:d}),z=R(p),se=M.map(e=>`${e.value}`),ce=M.map(e=>(0,h.createElement)(K,{...A(`control`),mod:{active:re===e.value,orientation:v},key:`${e.value}`},(0,h.createElement)(`input`,{...A(`input`),disabled:m||e.disabled,type:`radio`,name:z,value:`${e.value}`,id:`${z}-${e.value}`,checked:re===e.value,onChange:()=>!g&&oe(e.value),"data-focus-ring":j.focusRing,key:`${e.value}-input`}),(0,h.createElement)(K,{component:`label`,...A(`label`),mod:{active:re===e.value&&!(m||e.disabled),disabled:m||e.disabled,"read-only":g},htmlFor:`${z}-${e.value}`,ref:t=>ne(t,`${e.value}`),__vars:{"--sc-label-color":b===void 0?void 0:kn({color:b,theme:j,autoContrast:w})},key:`${e.value}-label`},(0,U.jsx)(`span`,{...A(`innerLabel`),children:e.label})))),B=ie(O,I);return ue(()=>{F(e=>e+1)},[c.length]),ue(()=>{te(e=>{let t={};return se.forEach(n=>{n in e&&(t[n]=e[n])}),Object.keys(t).length===Object.keys(e).length?e:t})},[se]),c.length===0?null:(0,U.jsxs)(K,{...A(`root`),variant:C,size:f,ref:B,mod:[{"full-width":_,orientation:v,initialized:N,"with-items-borders":T},E],...k,role:`radiogroup`,"data-disabled":m,children:[re!==void 0&&(0,U.jsx)(Tf,{target:L[`${re}`],parent:ee,component:`span`,transitionDuration:`var(--sc-transition-duration)`,...A(`indicator`)},P),ce]})});Gg.classes=Ug,Gg.varsResolver=Wg,Gg.displayName=`@mantine/core/SegmentedControl`;var See={size:`sm`,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:`left`,openOnFocus:!0},Kg=bi(e=>{let t=W([`Input`,`InputWrapper`,`Select`],See,e),{classNames:n,styles:r,unstyled:i,vars:a,dropdownOpened:o,defaultDropdownOpened:s,onDropdownClose:c,onDropdownOpen:l,onFocus:u,onBlur:d,onClick:f,onChange:p,data:m,value:g,defaultValue:_,selectFirstOptionOnChange:v,selectFirstOptionOnDropdownOpen:y,onOptionSubmit:b,comboboxProps:x,readOnly:S,disabled:C,filter:w,limit:T,withScrollArea:E,maxDropdownHeight:D,floatingHeight:O,size:k,searchable:A,rightSection:j,checkIconPosition:M,withCheckIcon:N,withAlignedLabels:P,nothingFoundMessage:F,name:ee,form:I,searchValue:L,defaultSearchValue:te,onSearchChange:ne,allowDeselect:re,error:ie,rightSectionPointerEvents:oe,id:z,clearable:se,clearSectionMode:ce,clearButtonProps:B,hiddenInputProps:le,renderOption:ue,onClear:de,autoComplete:fe,scrollAreaProps:pe,__defaultRightSection:me,__clearSection:he,__clearable:ge,chevronColor:_e,autoSelectOnBlur:V,openOnFocus:ye,attributes:be,...xe}=t,Se=(0,h.useMemo)(()=>kp(m),[m]),Ce=(0,h.useRef)({}),we=(0,h.useMemo)(()=>Ap(Se),[Se]),Te=R(z),Ee=gm({id:Te,label:xe.label,labelProps:xe.labelProps,inputWrapperOrder:xe.inputWrapperOrder}),[De,Oe,ke]=ae({value:g,defaultValue:_,finalValue:null,onChange:p}),Ae=De==null?void 0:`${De}`in we?we[`${De}`]:Ce.current[`${De}`],je=ve(Ae),[Me,Ne,Pe]=ae({value:L,defaultValue:te,finalValue:Ae?Ae.label:``,onChange:ne}),Fe=im({opened:o,defaultOpened:s,onDropdownOpen:()=>{l?.(),y?Fe.selectFirstOption():Fe.updateSelectedOptionIndex(`active`,{scrollIntoView:!0})},onDropdownClose:()=>{c?.(),setTimeout(Fe.resetSelectedOption,0)}}),Ie=e=>{Ne(e),Fe.resetSelectedOption()},{resolvedClassNames:Le,resolvedStyles:Re}=Cr({props:t,styles:r,classNames:n});(0,h.useEffect)(()=>{v&&Fe.selectFirstOption()},[v,Me]),(0,h.useEffect)(()=>{g===null&&Ie(``),g!=null&&Ae&&(je?.value!==Ae.value||je?.label!==Ae.label)&&Ie(Ae.label)},[g,Ae]),(0,h.useEffect)(()=>{!ke&&!Pe&&Ie(De==null?``:`${De}`in we?we[`${De}`]?.label:Ce.current[`${De}`]?.label||``)},[we,De]),(0,h.useEffect)(()=>{De&&`${De}`in we&&(Ce.current[`${De}`]=we[`${De}`])},[we,De]);let ze=(0,U.jsx)(sm.ClearButton,{...B,onClear:()=>{Oe(null,null),Ie(``),de?.()}}),Be=se&&De!=null&&!C&&!S;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(sm,{store:Fe,__staticSelector:`Select`,classNames:Le,styles:Re,unstyled:i,readOnly:S,size:k,attributes:be,floatingHeight:O,keepMounted:V,onOptionSubmit:e=>{b?.(e);let t=re&&`${we[e].value}`==`${De}`?null:we[e],n=t?t.value:null;n!==De&&Oe(n,t),!ke&&Ie(n==null?``:t?.label||``),Fe.closeDropdown()},...x,children:[(0,U.jsx)(sm.Target,{targetType:A?`input`:`button`,autoComplete:fe,withExpandedAttribute:!0,children:(0,U.jsx)(_f,{id:Te,__defaultRightSection:(0,U.jsx)(sm.Chevron,{size:k,error:ie,unstyled:i,color:_e}),__clearSection:ze,__clearable:Be,__clearSectionMode:ce,rightSection:j,rightSectionPointerEvents:oe||`none`,...xe,size:k,__staticSelector:`Select`,disabled:C,readOnly:S||!A,value:Me,onChange:e=>{if(Im(e)){if(!S){let t=oee(we,e.currentTarget.value);t&&`${t.value}`!=`${De}`&&(Oe(t.value,t),!ke&&Ie(t.label))}}else Ie(e.currentTarget.value),Fe.openDropdown(),v&&Fe.selectFirstOption()},onFocus:e=>{ye&&A&&Fe.openDropdown(),u?.(e)},onBlur:e=>{V&&Fe.clickSelectedOption(),Fe.closeDropdown();let t=De!=null&&(`${De}`in we?we[`${De}`]:Ce.current[`${De}`]);Ie(t&&t.label||``),d?.(e)},onClick:e=>{A?Fe.openDropdown():Fe.toggleDropdown(),f?.(e)},classNames:Le,styles:Re,unstyled:i,pointer:!A,error:ie,attributes:be})}),(0,U.jsx)(hm,{data:Se,hidden:S||C,filter:w,search:Me,limit:T,hiddenWhenEmpty:!F,withScrollArea:E,maxDropdownHeight:D,filterOptions:!!A&&Ae?.label!==Me,value:De,checkIconPosition:M,withCheckIcon:N,withAlignedLabels:P,nothingFoundMessage:F,unstyled:i,labelId:Ee,"aria-label":Ee?void 0:xe[`aria-label`],renderOption:ue,scrollAreaProps:pe})]}),(0,U.jsx)(sm.HiddenInput,{value:De,name:ee,form:I,disabled:C,...le})]})});Kg.classes={..._f.classes,...sm.classes},Kg.displayName=`@mantine/core/Select`;function qg(e){if(e!==void 0)return typeof e==`number`?H(e):e}function Cee({spacing:e,verticalSpacing:t,cols:n,minColWidth:r,autoRows:i,selector:a}){let o=sr(),s=t===void 0?e:t,c=r!==void 0,l=bt({"--sg-spacing-x":Ft(Ut(e)),"--sg-spacing-y":Ft(Ut(s)),"--sg-auto-rows":i,...c?{"--sg-min-col-width":qg(r)}:{"--sg-cols":Ut(n)?.toString()}}),u=dt(o.breakpoints).reduce((t,r)=>(t[r]||(t[r]={}),typeof e==`object`&&e[r]!==void 0&&(t[r][`--sg-spacing-x`]=Ft(e[r])),typeof s==`object`&&s[r]!==void 0&&(t[r][`--sg-spacing-y`]=Ft(s[r])),!c&&typeof n==`object`&&n[r]!==void 0&&(t[r][`--sg-cols`]=n[r]),t),{}),d=Ht(dt(u),o.breakpoints).filter(e=>dt(u[e.value]).length>0).map(e=>({query:`(min-width: ${o.breakpoints[e.value]})`,styles:u[e.value]}));return(0,U.jsx)(Ur,{styles:l,media:d,selector:a})}function Jg(e){return typeof e==`object`&&e?dt(e):[]}function wee(e){return e.sort((e,t)=>gt(e)-gt(t))}function Tee({spacing:e,verticalSpacing:t,cols:n,minColWidth:r}){return wee(Array.from(new Set([...Jg(e),...Jg(t),...r===void 0?Jg(n):[]])))}function Yg({spacing:e,verticalSpacing:t,cols:n,minColWidth:r,autoRows:i,selector:a}){let o=t===void 0?e:t,s=r!==void 0,c=bt({"--sg-spacing-x":Ft(Ut(e)),"--sg-spacing-y":Ft(Ut(o)),"--sg-auto-rows":i,...s?{"--sg-min-col-width":qg(r)}:{"--sg-cols":Ut(n)?.toString()}}),l=Tee({spacing:e,verticalSpacing:t,cols:n,minColWidth:r}),u=l.reduce((t,r)=>(t[r]||(t[r]={}),typeof e==`object`&&e[r]!==void 0&&(t[r][`--sg-spacing-x`]=Ft(e[r])),typeof o==`object`&&o[r]!==void 0&&(t[r][`--sg-spacing-y`]=Ft(o[r])),!s&&typeof n==`object`&&n[r]!==void 0&&(t[r][`--sg-cols`]=n[r]),t),{}),d=l.map(e=>({query:`simple-grid (min-width: ${e})`,styles:u[e]}));return(0,U.jsx)(Ur,{styles:c,container:d,selector:a})}var Xg={container:`m_925c2d2c`,root:`m_2415a157`},Zg={cols:1,spacing:`md`,type:`media`},Qg=G(e=>{let t=W(`SimpleGrid`,Zg,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,cols:c,verticalSpacing:l,spacing:u,type:d,minColWidth:f,autoFlow:p,autoRows:m,attributes:h,...g}=t,_=Rr({name:`SimpleGrid`,classes:Xg,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s}),v=hi(),y=f===void 0?void 0:p||`auto-fill`;return d===`container`?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Yg,{...t,selector:`.${v}`}),(0,U.jsx)(`div`,{..._(`container`),children:(0,U.jsx)(K,{..._(`root`,{className:v}),...g,"data-auto-cols":y})})]}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Cee,{...t,selector:`.${v}`}),(0,U.jsx)(K,{..._(`root`,{className:v}),...g,"data-auto-cols":y})]})});Qg.classes=Xg,Qg.displayName=`@mantine/core/SimpleGrid`;var $g={root:`m_18320242`,"skeleton-fade":`m_299c329c`},Eee={visible:!0,animate:!0},e_=Qt((e,{width:t,height:n,radius:r,circle:i})=>({root:{"--skeleton-height":H(n),"--skeleton-width":H(i?n:t),"--skeleton-radius":i?`1000px`:r===void 0?void 0:It(r)}})),t_=G(e=>{let t=W(`Skeleton`,Eee,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,width:c,height:l,circle:u,visible:d,radius:f,animate:p,mod:m,attributes:h,...g}=t,_=Rr({name:`Skeleton`,classes:$g,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:e_});return(0,U.jsx)(K,{..._(`root`),mod:[{visible:d,animate:p},m],...g})});t_.classes=$g,t_.varsResolver=e_,t_.displayName=`@mantine/core/Skeleton`;var n_={root:`m_6d731127`},Dee={gap:`md`,align:`stretch`,justify:`flex-start`},r_=Qt((e,{gap:t,align:n,justify:r})=>({root:{"--stack-gap":Ft(t),"--stack-align":n,"--stack-justify":r}})),i_=G(e=>{let t=W(`Stack`,Dee,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,align:c,justify:l,gap:u,variant:d,attributes:f,...p}=t,m=Rr({name:`Stack`,props:t,classes:n_,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:r_});return(0,U.jsx)(K,{...m(`root`),variant:d,...p})});i_.classes=n_,i_.varsResolver=r_,i_.displayName=`@mantine/core/Stack`;var[a_,o_]=Ct(`Table component was not found in the tree`),s_={table:`m_b23fa0ef`,th:`m_4e7aa4f3`,tr:`m_4e7aa4fd`,td:`m_4e7aa4ef`,tbody:`m_b2404537`,thead:`m_b242d975`,caption:`m_9e5a3ac7`,scrollContainer:`m_a100c15`,scrollContainerInner:`m_62259741`};function c_(e,t){if(!t)return;let n={};return t.columnBorder&&e.withColumnBorders&&(n[`data-with-column-border`]=!0),t.rowBorder&&e.withRowBorders&&(n[`data-with-row-border`]=!0),t.striped&&e.striped&&(n[`data-striped`]=e.striped),t.highlightOnHover&&e.highlightOnHover&&(n[`data-hover`]=!0),t.captionSide&&e.captionSide&&(n[`data-side`]=e.captionSide),t.stickyHeader&&e.stickyHeader&&(n[`data-sticky`]=!0),n}function l_(e,t){let n=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,r=G(r=>{let i=W(n,{},r),{classNames:a,className:o,style:s,styles:c,...l}=i,u=o_();return(0,U.jsx)(K,{component:e,...c_(u,t),...u.getStyles(e,{className:o,classNames:a,style:s,styles:c,props:i}),...l})});return r.displayName=`@mantine/core/${n}`,r.classes=s_,r}var u_=l_(`th`,{columnBorder:!0}),d_=l_(`td`,{columnBorder:!0}),f_=l_(`tr`,{rowBorder:!0,striped:!0,highlightOnHover:!0}),p_=l_(`thead`,{stickyHeader:!0}),m_=l_(`tbody`),h_=l_(`tfoot`),g_=l_(`caption`,{captionSide:!0}),Oee={type:`scrollarea`},__=Qt((e,{minWidth:t,maxHeight:n,type:r})=>({scrollContainer:{"--table-min-width":H(t),"--table-max-height":H(n),"--table-overflow":r===`native`?`auto`:void 0}})),v_=G(e=>{let t=W(`TableScrollContainer`,Oee,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,minWidth:l,maxHeight:u,type:d,scrollAreaProps:f,attributes:p,...m}=t,h=Rr({name:`TableScrollContainer`,classes:s_,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:s,varsResolver:__,rootSelector:`scrollContainer`});return(0,U.jsx)(K,{component:d===`scrollarea`?Jc:`div`,...d===`scrollarea`?u?{offsetScrollbars:`xy`,...f}:{offsetScrollbars:`x`,...f}:{},...h(`scrollContainer`),...m,children:(0,U.jsx)(`div`,{...h(`scrollContainerInner`),children:c})})});v_.classes=s_,v_.varsResolver=__,v_.displayName=`@mantine/core/TableScrollContainer`;function y_({data:e}){return(0,U.jsxs)(U.Fragment,{children:[e.caption&&(0,U.jsx)(g_,{children:e.caption}),e.head&&(0,U.jsx)(p_,{children:(0,U.jsx)(f_,{children:e.head.map((e,t)=>(0,U.jsx)(u_,{children:e},t))})}),e.body&&(0,U.jsx)(m_,{children:e.body.map((e,t)=>(0,U.jsx)(f_,{children:e.map((e,t)=>(0,U.jsx)(d_,{children:e},t))},t))}),e.foot&&(0,U.jsx)(h_,{children:(0,U.jsx)(f_,{children:e.foot.map((e,t)=>(0,U.jsx)(u_,{children:e},t))})})]})}y_.displayName=`@mantine/core/TableDataRenderer`;var kee={withRowBorders:!0,verticalSpacing:7},b_=Qt((e,{layout:t,captionSide:n,horizontalSpacing:r,verticalSpacing:i,borderColor:a,stripedColor:o,highlightOnHoverColor:s,striped:c,highlightOnHover:l,stickyHeaderOffset:u,stickyHeader:d})=>({table:{"--table-layout":t,"--table-caption-side":n,"--table-horizontal-spacing":Ft(r),"--table-vertical-spacing":Ft(i),"--table-border-color":a?yn(a,e):void 0,"--table-striped-color":c&&o?yn(o,e):void 0,"--table-highlight-on-hover-color":l&&s?yn(s,e):void 0,"--table-sticky-header-offset":d?H(u):void 0}})),x_=G(e=>{let t=W(`Table`,kee,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,horizontalSpacing:c,verticalSpacing:l,captionSide:u,stripedColor:d,highlightOnHoverColor:f,striped:p,highlightOnHover:m,withColumnBorders:g,withRowBorders:_,withTableBorder:v,borderColor:y,layout:b,data:x,children:S,stickyHeader:C,stickyHeaderOffset:w,mod:T,tabularNums:E,attributes:D,...O}=t,k=Rr({name:`Table`,props:t,className:r,style:i,classes:s_,classNames:n,styles:a,unstyled:o,attributes:D,rootSelector:`table`,vars:s,varsResolver:b_,stable:!0}),A=p===!0?`odd`:p||void 0,j=u||`bottom`,M=(0,h.useMemo)(()=>({getStyles:k,stickyHeader:C,striped:A,highlightOnHover:m,withColumnBorders:g,withRowBorders:_,captionSide:j}),[k,C,A,m,g,_,j]);return(0,U.jsx)(a_,{value:M,children:(0,U.jsx)(K,{component:`table`,mod:[{withTableBorder:v,tabularNums:E},T],...k(`table`),...O,children:S||!!x&&(0,U.jsx)(y_,{data:x})})})});x_.classes=s_,x_.varsResolver=b_,x_.displayName=`@mantine/core/Table`,x_.Td=d_,x_.Th=u_,x_.Tr=f_,x_.Thead=p_,x_.Tbody=m_,x_.Tfoot=h_,x_.Caption=g_,x_.ScrollContainer=v_,x_.DataRenderer=y_;var S_={root:`m_7341320d`},C_=Qt((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o})=>{let s=e.variantColorResolver({color:a||e.primaryColor,theme:e,gradient:i,variant:r||`filled`,autoContrast:o});return{root:{"--ti-size":Pt(t,`ti-size`),"--ti-radius":n===void 0?void 0:It(n),"--ti-bg":a||r?s.background:void 0,"--ti-color":a||r?s.color:void 0,"--ti-bd":a||r?s.border:void 0}}}),w_=G(e=>{let t=W(`ThemeIcon`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,autoContrast:c,attributes:l,...u}=t,d=Rr({name:`ThemeIcon`,classes:S_,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:l,vars:s,varsResolver:C_});return(0,U.jsx)(K,{...d(`root`),...u})});w_.classes=S_,w_.varsResolver=C_,w_.displayName=`@mantine/core/ThemeIcon`;var Aee=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],jee=[`xs`,`sm`,`md`,`lg`,`xl`];function Mee(e,t){let n=t===void 0?`h${e}`:t;return Aee.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:jee.includes(n)?{fontSize:`var(--mantine-font-size-${n})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:H(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var T_={root:`m_8a5d1357`},Nee={order:1},E_=Qt((e,{order:t,size:n,lineClamp:r,textWrap:i})=>{let a=Mee(t||1,n);return{root:{"--title-fw":a.fontWeight,"--title-lh":a.lineHeight,"--title-fz":a.fontSize,"--title-line-clamp":typeof r==`number`?r.toString():void 0,"--title-text-wrap":i}}}),D_=G(e=>{let t=W(`Title`,Nee,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,order:s,vars:c,size:l,variant:u,lineClamp:d,textWrap:f,mod:p,attributes:m,...h}=t,g=Rr({name:`Title`,props:t,classes:T_,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:m,vars:c,varsResolver:E_});return[1,2,3,4,5,6].includes(s)?(0,U.jsx)(K,{...g(`root`),component:`h${s}`,variant:u,mod:[{order:s,lineClamp:typeof d==`number`},p],size:l,...h}):null});D_.classes=T_,D_.varsResolver=E_,D_.displayName=`@mantine/core/Title`;var Pee=120,Fee=4,Iee=new Set([`classNames`,`styles`,`unstyled`,`vars`,`attributes`,`variant`,`color`,`radius`,`icon`,`title`,`loading`,`withBorder`,`withCloseButton`,`closeButtonProps`,`className`,`style`,`role`,`ref`,`children`,`mod`]);function Lee(e){let{rest:t}=Kr(e);return Object.fromEntries(Object.entries(t).filter(([e,t])=>!Iee.has(e)&&t!==void 0))}function O_({data:e,onHide:t,autoClose:n,transitionDuration:r,allowDragDismiss:i,allowScrollDismiss:a,paused:o,withAutoCloseProgress:s,progressProps:c,onHoverStart:l,onHoverEnd:u,onExpandRequest:d,ref:f,style:p,renderNotification:m,layout:g,stackIndex:_,stackSize:v,stackPosition:y,stackExpanded:b,stackExpandedOffset:x,transitionState:S,...C}){let[w,E]=(0,h.useState)(0),[D,O]=(0,h.useState)(!1),[k,A]=(0,h.useState)(1),[j,M]=(0,h.useState)(!1),N=sr(),{autoClose:P,message:F,allowClose:ee,position:I,style:L,withCloseButton:R,renderNotification:te,onOpen:ne,priority:re,withAutoCloseProgress:ae,__sequence:oe,...z}=e,se=ut(n,e.autoClose),[ce,B]=(0,h.useState)({running:!1,cycle:0}),le=(e.withAutoCloseProgress??s)&&typeof se==`number`,ue=(0,h.useRef)(-1),de=(0,h.useRef)(-1),fe=(0,h.useRef)(-1),pe=(0,h.useRef)(null),me=(0,h.useRef)(!1),he=(0,h.useRef)(!1),ge=(0,h.useRef)(!1),_e=(0,h.useRef)(0),V=ee===!1,ve=()=>{let e=me.current||he.current;e&&!ge.current?(ge.current=!0,l?.()):!e&&ge.current&&(ge.current=!1,u?.())},ye=(0,h.useEffectEvent)(()=>{ge.current&&(ge.current=!1,u?.())});(0,h.useEffect)(()=>()=>ye(),[]);let be=()=>{window.clearTimeout(ue.current),B(e=>e.running?{...e,running:!1}:e)},xe=()=>window.clearTimeout(de.current),Se=()=>window.clearTimeout(fe.current),Ce=e=>{_e.current=e,E(e)},we=()=>{t(e.id),be(),xe(),Se()},Te=(0,h.useRef)(o);(0,h.useEffect)(()=>{Te.current=o});let Ee=()=>{D||Ne||me.current||he.current||Te.current||typeof se!=`number`||(be(),ue.current=window.setTimeout(we,se),B(e=>({running:!0,cycle:e.cycle+1})))},De=e=>e*((pe.current?.offsetWidth??440)+40),Oe=(e,t)=>{let n=pe.current?.offsetWidth??440;return Math.abs(e)>n*.35||t>.5},ke=()=>{Se(),M(!1),Ce(0)},Ae=e=>{A(e),O(!0),M(!1),Ce(De(e)),be(),xe(),Se(),de.current=window.setTimeout(we,r)},je=()=>{Se(),fe.current=window.setTimeout(()=>{M(!1),Ce(0),Ee()},Pee)},{ref:Me,active:Ne}=Ve(e=>{if(!D){if(e.first&&be(),e.last){if(e.tap||e.canceled){Ce(0),Ee();return}let t=e.movement[0],n=t===0?e.direction[0]===-1?-1:1:t>0?1:-1;Oe(t,e.velocity[0])?Ae(n):(Ce(0),Ee())}else Ce(e.movement[0])}},{axis:`x`,threshold:5,filterTaps:!0,enabled:i&&!V&&!D}),Pe=ie(f,pe,Me),Fe=gi(p,N),Ie=gi(L,N),Le={...Fe,...Ie},Re=typeof Le.opacity==`number`?Le.opacity:1,ze=D?0:1-Math.min(Math.abs(w)/200,1)*.6,Be=Le.transitionDuration??`${r}ms, ${r}ms, ${r}ms`,He=g===`stacked`,Ue=He&&_!==void 0&&_>0,We=Ue&&!b,Ge=S===`exiting`||S===`exited`,Ke=y?.startsWith(`top`)?1:-1,qe=Math.min(_??0,Fee),Je=We?qe*10*Ke:0,Ye=He?(_||0)*30:0,Xe=Ne||j,Ze=()=>He?Ge?`translateY(${b?x||0:Je}px) var(--notifications-state-transform) translate3d(var(--notifications-swipe-offset), 0, 0)`:b?`translateY(${x||0}px) translate3d(var(--notifications-swipe-offset), 0, 0)`:Ue?`scale(${1-qe*.03}) translateY(${Je}px)`:`var(--notifications-state-transform) translate3d(var(--notifications-swipe-offset), 0, 0)`:`var(--notifications-state-transform) translate3d(var(--notifications-swipe-offset), 0, 0)`,Qe={...Le,...He?{maxHeight:void 0}:{},"--notifications-state-transform":typeof Le.transform==`string`?Le.transform:`translateX(0)`,"--notifications-state-opacity":String(Re),"--notifications-swipe-offset":`${w}px`,"--notifications-swipe-opacity":String(ze),transform:Ze(),opacity:`calc(var(--notifications-state-opacity) * var(--notifications-swipe-opacity))`,transitionDuration:Xe?`0ms, 0ms, 0ms`:Be,cursor:`default`,touchAction:`pan-y`,...He?{gridArea:`1 / 1`,zIndex:(v||5)-(_??0),pointerEvents:We?`none`:void 0,alignSelf:Ke===1?`start`:`end`,transitionProperty:Xe?`none`:`transform, opacity`,transitionDuration:`${r}ms, ${r}ms`,transitionTimingFunction:`cubic-bezier(.51,.3,0,1.21), ease`,transitionDelay:Xe||Ge?`0ms`:`${Ye}ms`}:{}},$e=()=>{me.current=!0,be(),ve()},et=()=>{me.current=!1,j||(ke(),Ee()),ve()},tt=He?()=>{he.current=!0,be(),ve()}:void 0,nt=He?()=>{he.current=!1,j||Ee(),ve()}:void 0,rt=e=>{He&&(e.pointerType===`touch`||e.pointerType===`pen`)&&d?.()},it=(0,h.useEffectEvent)(e=>{if(D||Ne)return;let t=e.currentTarget===document;if(!t&&!me.current)return;let{deltaX:n,deltaY:r}=e;if(Math.abs(n)<=Math.abs(r)||n===0||!a||V)return;t||(e.preventDefault(),e.stopPropagation()),be(),M(!0);let i=_e.current-n,o=i>0?1:-1;Oe(i,0)?Ae(o):(Ce(i),je())});(0,h.useEffect)(()=>{if(j)return document.addEventListener(`wheel`,it,{passive:!1}),()=>document.removeEventListener(`wheel`,it,{passive:!1})},[j]),(0,h.useEffect)(()=>{let e=()=>{D&&Ce(De(k))};return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[k,D]),(0,h.useEffect)(()=>{let e=pe.current;if(e)return e.addEventListener(`wheel`,it,{passive:!1}),()=>e.removeEventListener(`wheel`,it,{passive:!1})},[]),(0,h.useEffect)(()=>()=>{xe(),Se()},[]),(0,h.useEffect)(()=>{e.onOpen?.(e)},[]);let at=(0,h.useRef)(S);(0,h.useEffect)(()=>{let t=at.current===`exiting`;at.current=S,S===`entering`&&t&&(xe(),D?(O(!1),M(!1),Ce(0)):Ee(),e.onOpen?.(e))},[S]),(0,h.useEffect)(()=>(Ee(),be),[se,Ne,D]),T(()=>{le&&Ee()},[le]),(0,h.useEffect)(()=>(o?be():Ee(),be),[o]);let ot={...C,...z},st={style:Qe,inert:We,onMouseEnter:e=>{ot.onMouseEnter?.(e),$e()},onMouseLeave:e=>{ot.onMouseLeave?.(e),et()},onFocusCapture:e=>{ot.onFocusCapture?.(e),tt?.()},onBlurCapture:e=>{ot.onBlurCapture?.(e),nt?.()},onPointerDownCapture:e=>{ot.onPointerDownCapture?.(e),rt(e)}};if(m){let t=[C.className,z.className].filter(Boolean).join(` `);return(0,U.jsx)(`div`,{ref:Pe,role:z.role||C.role||`alert`,...Lee(ot),className:t||void 0,...st,children:m(e)})}return(0,U.jsxs)(wg,{ref:Pe,...C,...z,...st,withCloseButton:!V&&R,onClose:we,children:[F,le&&(0,U.jsx)(`div`,{"aria-hidden":!0,...c,"data-paused":!ce.running||void 0,style:{...c.style,"--notifications-progress-duration":`${se}ms`}},ce.cycle)]})}O_.displayName=`@mantine/notifications/NotificationContainer`;var k_={root:`m_b37d9ac7`,notification:`m_5ed0edd0`,progress:`m_836192`,"notifications-progress":`m_5f780017`,"notifications-progress-fade-in":`m_bb245a60`};function A_(){return A_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),zee=o(((e,t)=>{var n=Ree();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),P_=o(((e,t)=>{t.exports=zee()()})),F_={disabled:!1},I_=h.createContext(null),Bee=function(e){return e.scrollTop},L_=`unmounted`,R_=`exited`,z_=`entering`,B_=`entered`,V_=`exiting`,H_=function(e){N_(t,e);function t(t,n){var r=e.call(this,t,n)||this,i=n,a=i&&!i.isMounting?t.enter:t.appear,o;return r.appearStatus=null,t.in?a?(o=R_,r.appearStatus=z_):o=B_:o=t.unmountOnExit||t.mountOnEnter?L_:R_,r.state={status:o},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:R_}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==`entering`&&n!==`entered`&&(t=z_):(n===`entering`||n===`entered`)&&(t=V_)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=n=r=e,n,r;return e!=null&&typeof e!=`number`&&(t=e.exit,n=e.enter,r=e.appear===void 0?n:e.appear),{exit:t,enter:n,appear:r}},n.updateStatus=function(e,t){if(e===void 0&&(e=!1),t!==null){if(this.cancelNextCallback(),t===`entering`){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:ke.default.findDOMNode(this);n&&Bee(n)}this.performEnter(e)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:L_})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[ke.default.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;!e&&!n||F_.disabled?this.safeSetState({status:B_},function(){t.props.onEntered(a)}):(this.props.onEnter(a,o),this.safeSetState({status:z_},function(){t.props.onEntering(a,o),t.onTransitionEnd(c,function(){t.safeSetState({status:B_},function(){t.props.onEntered(a,o)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:ke.default.findDOMNode(this);!t||F_.disabled?this.safeSetState({status:R_},function(){e.props.onExited(r)}):(this.props.onExit(r),this.safeSetState({status:V_},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:R_},function(){e.props.onExited(r)})})}))},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:ke.default.findDOMNode(this),r=e==null&&!this.props.addEndListener;if(!n||r)setTimeout(this.nextCallback,0);else{if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}e!=null&&setTimeout(this.nextCallback,e)}},n.render=function(){var e=this.state.status;if(e===`unmounted`)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=j_(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return h.createElement(I_.Provider,{value:null},typeof n==`function`?n(e,r):h.cloneElement(h.Children.only(n),r))},t}(h.Component);H_.contextType=I_,H_.propTypes={};function U_(){}H_.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:U_,onEntering:U_,onEntered:U_,onExit:U_,onExiting:U_,onExited:U_},H_.UNMOUNTED=L_,H_.EXITED=R_,H_.ENTERING=z_,H_.ENTERED=B_,H_.EXITING=V_;function W_(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function G_(e,t){var n=function(e){return t&&(0,h.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&h.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function K_(e,t){e||={},t||={};function n(n){return n in t?t[n]:e[n]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var o,s={};for(var c in t){if(r[c])for(o=0;o({root:{"--notifications-z-index":t?.toString(),"--notifications-container-width":H(n)}})),rv=G(e=>{let t=W(`Notifications`,Vee,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,position:l,autoClose:u,transitionDuration:d,allowDragDismiss:f,allowScrollDismiss:p,containerWidth:m,notificationMaxHeight:g,limit:_,zIndex:v,store:y,portalProps:b,withinPortal:x,pauseResetOnHover:S,renderNotification:C,layout:w,withAutoCloseProgress:E,...D}=t,O=sr(),k=qe(y),A=L(),j=oe(),M=(0,h.useRef)({}),N=(0,h.useRef)(0),[P,F]=(0,h.useState)({}),[ee,I]=(0,h.useState)({}),[R,te]=(0,h.useState)({}),[ne,re]=(0,h.useState)(null),ie=(0,h.useRef)({}),ae=Object.values(P).reduce((e,t)=>e+(t??0),0)+Object.values(R).filter(Boolean).length,z=(0,h.useCallback)(e=>F(t=>({...t,[e]:(t[e]??0)+1})),[]),se=(0,h.useCallback)(e=>F(t=>({...t,[e]:Math.max(0,(t[e]??0)-1)})),[]),ce=(0,h.useCallback)(e=>w===`stacked`?{onMouseEnter:()=>te(t=>({...t,[e]:!0})),onMouseLeave:()=>te(t=>({...t,[e]:!1}))}:{},[w]),B=(0,h.useCallback)(e=>re(e),[]);(0,h.useEffect)(()=>{if(w!==`stacked`)return;let e=ie.current;return at.forEach(t=>{(P[t]??0)>0||R[t]||ne===t?(window.clearTimeout(e[t]),I(e=>e[t]?e:{...e,[t]:!0})):e[t]=window.setTimeout(()=>{I(e=>e[t]?{...e,[t]:!1}:e)},200)}),()=>at.forEach(t=>window.clearTimeout(e[t]))},[P,R,ne,w]),(0,h.useEffect)(()=>{if(!ne)return;let e=e=>{let t=e.target;t!==null&&Object.values(M.current).some(e=>e?.contains(t))||re(null)};return document.addEventListener(`pointerdown`,e),()=>document.removeEventListener(`pointerdown`,e)},[ne]);let le=ot(k.notifications,l),ue=ne?le[ne].length:0;(0,h.useEffect)(()=>{(w!==`stacked`||ne!==null&&ue===0)&&re(null)},[ue,ne,w]),(0,h.useEffect)(()=>{w!==`stacked`&&te(e=>Object.values(e).some(Boolean)?{}:e)},[w]);let de=(0,h.useRef)(null),fe=(0,h.useRef)({}),pe=(0,h.useRef)(new WeakMap),me=(0,h.useCallback)((e,t)=>{let n=t.offsetHeight;return fe.current[e]!==n&&(fe.current[e]=n,!0)},[]);(0,h.useEffect)(()=>{if(w!==`stacked`||typeof ResizeObserver>`u`)return;let e=new ResizeObserver(e=>{let t=!1;e.forEach(e=>{let n=pe.current.get(e.target);n&&me(n,e.target)&&(t=!0)}),t&&A()});return de.current=e,Object.values(M.current).forEach(t=>t&&e.observe(t)),()=>{e.disconnect(),de.current=null}},[w,A,me]);let he=(0,h.useRef)({}),ge=(0,h.useCallback)(e=>(he.current[e]||(he.current[e]=t=>{let n=M.current[e];n&&n!==t&&(de.current?.unobserve(n),pe.current.delete(n)),t?(M.current[e]=t,pe.current.set(t,e),me(e,t),de.current?.observe(t)):(delete M.current[e],delete he.current[e],delete fe.current[e])}),he.current[e]),[me]),_e=O.respectReducedMotion&&j?1:d,V=Rr({name:`Notifications`,classes:k_,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c,vars:s,varsResolver:nv});(0,h.useEffect)(()=>{y?.updateState(e=>({...e,limit:_||5,defaultPosition:l}))},[_,l]),T(()=>{k.notifications.length>N.current&&setTimeout(()=>A(),0),N.current=k.notifications.length},[k.notifications]);let ve=at.reduce((e,t)=>{let n=le[t].length,r=Array(n).fill(0),i=w===`stacked`&&!!ee[t],a=w===`stacked`?[...le[t]].sort((e,t)=>(t.priority??0)-(e.priority??0)||(t.__sequence??0)-(e.__sequence??0)):le[t];if(i&&n>0){let e=t.startsWith(`top`)?1:-1,i=0;for(let t=0;t{let{style:o,...s}=e;return(0,U.jsx)($_,{timeout:_e,onEnter:()=>M.current[s.id].offsetHeight,nodeRef:{current:M.current[s.id]},children:e=>(0,U.jsx)(O_,{ref:ge(s.id),data:s,onHide:e=>Xe(e,y),autoClose:u,transitionDuration:_e,allowDragDismiss:f,allowScrollDismiss:p,paused:S===`all`&&ae>0||w===`stacked`&&!i&&a>0,onHoverStart:()=>z(t),onHoverEnd:()=>se(t),onExpandRequest:()=>B(t),renderNotification:`renderNotification`in s?s.renderNotification:C,layout:w,withAutoCloseProgress:E,progressProps:V(`progress`),stackIndex:a,stackSize:n,stackPosition:t,stackExpanded:i,stackExpandedOffset:r[a],transitionState:e,...V(`notification`,{style:{...lt({state:e,position:t,transitionDuration:_e,maxHeight:g}),...o}})})},s.id)}),e},{});return(0,U.jsxs)(Sl,{withinPortal:x,...b,children:[(0,U.jsx)(K,{...V(`root`),"data-position":`top-center`,"data-layout":w,...D,children:(0,U.jsx)(Q_,{...ce(`top-center`),children:ve[`top-center`]})}),(0,U.jsx)(K,{...V(`root`),"data-position":`top-left`,"data-layout":w,...D,children:(0,U.jsx)(Q_,{...ce(`top-left`),children:ve[`top-left`]})}),(0,U.jsx)(K,{...V(`root`,{className:jd.classNames.fullWidth}),"data-position":`top-right`,"data-layout":w,...D,children:(0,U.jsx)(Q_,{...ce(`top-right`),children:ve[`top-right`]})}),(0,U.jsx)(K,{...V(`root`,{className:jd.classNames.fullWidth}),"data-position":`bottom-right`,"data-layout":w,...D,children:(0,U.jsx)(Q_,{...ce(`bottom-right`),children:ve[`bottom-right`]})}),(0,U.jsx)(K,{...V(`root`),"data-position":`bottom-left`,"data-layout":w,...D,children:(0,U.jsx)(Q_,{...ce(`bottom-left`),children:ve[`bottom-left`]})}),(0,U.jsx)(K,{...V(`root`),"data-position":`bottom-center`,"data-layout":w,...D,children:(0,U.jsx)(Q_,{...ce(`bottom-center`),children:ve[`bottom-center`]})})]})});rv.classes=k_,rv.varsResolver=nv,rv.displayName=`@mantine/notifications/Notifications`,rv.show=it.show,rv.hide=it.hide,rv.update=it.update,rv.promise=it.promise,rv.clean=it.clean,rv.cleanQueue=it.cleanQueue,rv.updateState=it.updateState;var Hee=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-Tt&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Uee=o(((e,t)=>{t.exports=Hee()})),Wee=o((e=>{var t=Uee(),n=m(),r=Oe();function i(e){var t=`https://react.dev/errors/`+e;if(1fe||(e.current=de[fe],de[fe]=null,fe--)}function he(e,t){fe++,de[fe]=e.current,e.current=t}var ge=pe(null),_e=pe(null),V=pe(null),ve=pe(null);function ye(e,t){switch(he(V,t),he(_e,e),he(ge,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?mp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=mp(t),e=hp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}me(ge),he(ge,e)}function be(){me(ge),me(_e),me(V)}function xe(e){var t=e.memoizedState;t!==null&&(dh._currentValue=t.memoizedState,he(ve,e)),t=ge.current;var n=hp(t,e.type);t!==n&&(he(_e,e),he(ge,n))}function Se(e){_e.current===e&&(me(ge),me(_e)),ve.current===e&&(me(ve),dh._currentValue=ue)}var Ce,we;function Te(e){if(Ce===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ce=t&&t[1]||``,we=-1)`:-1i||c[r]!==l[i]){var u=` +`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Ee=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Te(n):``}function ke(e,t){switch(e.tag){case 26:case 27:case 5:return Te(e.type);case 16:return Te(`Lazy`);case 13:return e.child!==t&&t!==null?Te(`Suspense Fallback`):Te(`Suspense`);case 19:return Te(`SuspenseList`);case 0:case 15:return De(e.type,!1);case 11:return De(e.type.render,!1);case 1:return De(e.type,!0);case 31:return Te(`Activity`);case 30:return Te(`ViewTransition`);default:return``}}function Ae(e){try{var t=``,n=null;do t+=ke(e,n),n=e,e=e.return;while(e);return t}catch(e){return` +Error generating stack: `+e.message+` +`+e.stack}}var je=Object.prototype.hasOwnProperty,Me=t.unstable_scheduleCallback,Ne=t.unstable_cancelCallback,Pe=t.unstable_shouldYield,Fe=t.unstable_requestPaint,Ie=t.unstable_now,Le=t.unstable_getCurrentPriorityLevel,Re=t.unstable_ImmediatePriority,ze=t.unstable_UserBlockingPriority,Be=t.unstable_NormalPriority,Ve=t.unstable_LowPriority,He=t.unstable_IdlePriority,Ue=t.log,We=t.unstable_setDisableYieldValue,Ge=null,Ke=null;function qe(e){if(typeof Ue==`function`&&We(e),Ke&&typeof Ke.setStrictMode==`function`)try{Ke.setStrictMode(Ge,e)}catch{}}var Je=Math.clz32?Math.clz32:Ze,Ye=Math.log,Xe=Math.LN2;function Ze(e){return e>>>=0,e===0?32:31-(Ye(e)/Xe|0)|0}var Qe=256,$e=262144,et=4194304;function tt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function nt(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=tt(n))):i=tt(o):i=tt(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=tt(n))):i=tt(o)):i=tt(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function rt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function it(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0n;n++)t.push(e);return t}function ct(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function lt(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0=sr),ur=` `,dr=!1;function fr(e,t){switch(e){case`keyup`:return ar.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function pr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var mr=!1;function hr(e,t){switch(e){case`compositionend`:return pr(t);case`keypress`:return t.which===32?(dr=!0,ur):null;case`textInput`:return e=t.data,e===ur&&dr?null:e;default:return null}}function gr(e,t){if(mr)return e===`compositionend`||!or&&fr(e,t)?(e=kn(),On=Dn=En=null,mr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Rr(n)}}function Br(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Br(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Lr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Lr(e.document)}return t}function Hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Ur=Cn&&`documentMode`in document&&11>=document.documentMode,Wr=null,Gr=null,Kr=null,qr=!1;function Jr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;qr||Wr==null||Wr!==Lr(r)||(r=Wr,`selectionStart`in r&&Hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Kr&&Ir(Kr,r)||(Kr=r,r=Zf(Gr,`onSelect`),0>=o,i-=o,Hi=1<<32-Je(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Zi&&Wi(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Zi&&Wi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Zi&&Wi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Zi&&Wi(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===k&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case D:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===k){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),to(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===L&&Ja(l)===r.type){n(e,r.sibling),c=a(r,o.props),to(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===k?(c=ki(o.props.children,e.mode,c,o.key),to(c,o),c.return=e,e=c):(c=Oi(o.type,o.key,o.props,null,e.mode,c),to(c,o),c.return=e,e=c)}return s(e);case O:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Mi(o,e.mode,c),c.return=e,e=c}return s(e);case L:return o=Ja(o),_(e,r,o,c)}if(ce(o))return h(e,r,o,c);if(oe(o)){if(l=oe(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,eo(o),c);if(o.$$typeof===N)return _(e,r,ya(e,o),c);no(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Ai(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{$a=0;var i=_(e,t,n,r);return Qa=null,i}catch(t){if(t===Ha||t===Wa)throw t;var a=Ti(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var io=ro(!0),ao=ro(!1),oo=!1;function so(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function co(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function lo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function uo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Zu&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Si(e),xi(e,null,n),t}return yi(e,r,t,n),Si(e)}function fo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,dt(e,n)}}function po(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var mo=!1;function ho(){if(mo){var e=Na;if(e!==null)throw e}}function go(e,t,n,r){mo=!1;var i=e.updateQueue;oo=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(ed&f)===f:(r&f)===f){f!==0&&f===Ma&&(mo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=T({},d,f);break a;case 2:oo=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),cd|=o,e.lanes=o,e.memoizedState=d}}function _o(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function vo(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=B.T,s={};s.types=o===null?null:o.types,B.T=s,oc(e,!1,t,n);try{var c=i(),l=B.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?ac(e,t,Ia(c,r),Nd(e)):ac(e,t,r,Nd(e))}catch(n){ac(e,t,{then:function(){},status:`rejected`,reason:n},Nd())}finally{le.p=a,o!==null&&s.types!==null&&(o.types=s.types),B.T=o}}function Ys(){}function Xs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Zs(e).queue;Js(e,a,t,ue,n===null?Ys:function(){return Qs(e),n(r)})}function Zs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ue,baseState:ue,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ss,lastRenderedState:ue},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ss,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Qs(e){var t=Zs(e);t.next===null&&(t=e.alternate.memoizedState),ac(e,t.next.queue,{},Nd())}function $s(){return va(dh)}function ec(){return ns().memoizedState}function tc(){return ns().memoizedState}function nc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Nd();e=lo(n);var r=uo(t,e,n);r!==null&&(Id(r,t,n),fo(r,t,n)),t={cache:Ta()},e.payload=t;return}t=t.return}}function rc(e,t,n){var r=Nd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},sc(e)?cc(t,n):(n=G(e,t,n,r),n!==null&&(Id(n,e,r),lc(n,t,r)))}function ic(e,t,n){ac(e,t,n,Nd())}function ac(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(sc(e))cc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Fr(s,o))return yi(e,t,i,0),Qu===null&&vi(),!1}catch{}if(n=G(e,t,i,r),n!==null)return Id(n,e,r),lc(n,t,r),!0}return!1}function oc(e,t,n,r){if(r={lane:2,revertLane:Lf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},sc(e)){if(t)throw Error(i(479))}else t=G(e,n,r,2),t!==null&&Id(t,e,2)}function sc(e){var t=e.alternate;return e===Io||t!==null&&t===Io}function cc(e,t){Bo=zo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function lc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,dt(e,n)}}var uc={readContext:va,use:as,useCallback:Ko,useContext:Ko,useEffect:Ko,useImperativeHandle:Ko,useLayoutEffect:Ko,useInsertionEffect:Ko,useMemo:Ko,useReducer:Ko,useRef:Ko,useState:Ko,useDebugValue:Ko,useDeferredValue:Ko,useTransition:Ko,useSyncExternalStore:Ko,useId:Ko,useHostTransitionStatus:Ko,useFormState:Ko,useActionState:Ko,useOptimistic:Ko,useMemoCache:Ko,useCacheRefresh:Ko,useEffectEvent:Ko},dc={readContext:va,use:as,useCallback:function(e,t){return ts().memoizedState=[e,t===void 0?null:t],e},useContext:va,useEffect:Fs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Ns(4194308,4,Vs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ns(4194308,4,e,t)},useInsertionEffect:function(e,t){Ns(4,2,e,t)},useMemo:function(e,t){var n=ts();t=t===void 0?null:t;var r=e();if(Vo){qe(!0);try{e()}finally{qe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ts();if(n!==void 0){var i=n(t);if(Vo){qe(!0);try{n(t)}finally{qe(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=rc.bind(null,Io,e),[r.memoizedState,e]},useRef:function(e){var t=ts();return e={current:e},t.memoizedState=e},useState:function(e){e=_s(e);var t=e.queue,n=ic.bind(null,Io,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Us,useDeferredValue:function(e,t){return Ks(ts(),e,t)},useTransition:function(){var e=_s(!1);return e=Js.bind(null,Io,e.queue,!0,!1),ts().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Io,a=ts();if(Zi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Qu===null)throw Error(i(349));ed&127||fs(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Fs(ms.bind(null,r,o,e),[e]),r.flags|=2048,js(9,{destroy:void 0},ps.bind(null,r,o,n,t),null),n},useId:function(){var e=ts(),t=Qu.identifierPrefix;if(Zi){var n=Ui,r=Hi;n=(r&~(1<<32-Je(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Ho++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[vt]=t,o[H]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(op(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&ll(t)}}return ml(t),t.subtreeFlags&=-33554433,ul(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&ll(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=V.current,ia(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Yi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[vt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||rp(e.nodeValue,n)),e||ta(t,!0)}else e=pp(e).createTextNode(r),e[vt]=t,t.stateNode=e}return ml(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=ia(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[vt]=t}else aa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ml(t),e=!1}else n=oa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Ao(t),t):(Ao(t),null);if(t.flags&128)throw Error(i(558))}return ml(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=ia(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[vt]=t}else aa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ml(t),a=!1}else a=oa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Ao(t),t):(Ao(t),null)}return Ao(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),fl(t,t.updateQueue),ml(t),null);case 4:return be(),e===null&&qf(t.stateNode.containerInfo),t.flags|=67108864,ml(t),null;case 10:return fa(t.type),ml(t),null;case 19:if(No(t),r=t.memoizedState,r===null)return ml(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)pl(r,!1);else{if(sd!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Po(e),o!==null){for(t.flags|=128,pl(r,!1),e=o.updateQueue,t.updateQueue=e,fl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)K(n,e),n=n.sibling;return Mo(t,jo.current&1|2),Zi&&Wi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ie()>vd&&(t.flags|=128,a=!0,pl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Po(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,fl(t,e),pl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!Zi)return ml(t),null}else 2*Ie()-r.renderingStartTime>vd&&n!==536870912&&(t.flags|=128,a=!0,pl(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ie(),e.sibling=null,o=jo.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||Zi?Mo(t,o):(n=o,he(wo,t),he(jo,n),To===null&&(To=t)),Zi&&Wi(t,r.treeForkCount),e}return ml(t),null;case 22:case 23:return Ao(t),Co(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(ml(t),t.subtreeFlags&6&&(t.flags|=8192)):ml(t),n=t.updateQueue,n!==null&&fl(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&me(Ra),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),fa(wa),ml(t),null;case 25:return null;case 30:return t.flags|=33554432,ml(t),null}throw Error(i(156,t.tag))}function gl(e,t){switch(qi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fa(wa),be(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Se(t),null;case 31:if(t.memoizedState!==null){if(Ao(t),t.alternate===null)throw Error(i(340));aa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ao(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));aa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return No(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return be(),null;case 10:return fa(t.type),null;case 22:case 23:return Ao(t),Co(),e!==null&&me(Ra),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fa(wa),null;case 25:return null;default:return null}}function _l(e,t){switch(qi(t),t.tag){case 3:fa(wa),be();break;case 26:case 27:case 5:Se(t);break;case 4:be();break;case 31:t.memoizedState!==null&&Ao(t);break;case 13:Ao(t);break;case 19:No(t);break;case 10:fa(t.type);break;case 22:case 23:Ao(t),Co(),e!==null&&me(Ra);break;case 24:fa(wa)}}function vl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){gf(t,t.return,e)}}function yl(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){gf(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){gf(t,t.return,e)}}function bl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{vo(t,n)}catch(t){gf(e,e.return,t)}}}function xl(e,t,n){n.props=vc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){gf(e,t,n)}}function Sl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=di(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Rp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new zp(e);f(e.child,!1,nm,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){gf(e,t,n)}}function Cl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){gf(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){gf(e,t,n)}else n.current=null}}function wl(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n title`))),op(r,t,n),r[vt]=e,jt(r),t=r;break a;case`link`:if(o=Ym(`link`,`href`,a).get(t+(n.href||``))){for(s=0;sg&&(o=g,g=h,h=o);var _=zr(s,h),v=zr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,B.T=null,n=Ed,Ed=null;var o=Sd,s=wd;if(xd=0,Cd=Sd=null,wd=0,Zu&6)throw Error(i(331));var c=Zu;if(Zu|=4,Ku(o.current),Ru(o,o.current,s,n),Zu=c,Af(0,!1),Ke&&typeof Ke.onPostCommitFiberRoot==`function`)try{Ke.onPostCommitFiberRoot(Ge,o)}catch{}return!0}finally{le.p=a,B.T=r,ff(e,t)}}function hf(e,t,n){t=Pi(n,t),t=wc(e.stateNode,t,2),e=uo(e,t,2),e!==null&&(ct(e,2),kf(e))}function gf(e,t,n){if(e.tag===3)hf(e,e,n);else for(;t!==null;){if(t.tag===3){hf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(bd===null||!bd.has(r))){e=Pi(n,e),n=Tc(2),r=uo(t,n,2),r!==null&&(Ec(n,r,t,e),ct(r,2),kf(r));break}}t=t.return}}function _f(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Xu;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(ad=!0,i.add(n),e=vf.bind(null,e,t,n),t.then(e,e))}function vf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Qu===e&&(ed&n)===n&&(sd===4||sd===3&&(ed&62914560)===ed&&300>Ie()-gd?Zu&2?ud|=n:Ud(e,0):ud|=n,fd===ed&&(fd=0)),kf(e)}function yf(e,t){t===0&&(t=ot()),e=bi(e,t),e!==null&&(ct(e,t),kf(e))}function bf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),yf(e,n)}function xf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),yf(e,n)}function Sf(e,t){return Me(e,t)}var Cf=null,wf=null,Tf=!1,Ef=!1,Df=!1,Of=0;function kf(e){e!==wf&&e.next===null&&(wf===null?Cf=wf=e:wf=wf.next=e),Ef=!0,Tf||(Tf=!0,If())}function Af(e,t){if(!Df&&Ef){Df=!0;do for(var n=!1,r=Cf;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Je(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Ff(r,a))}else a=ed,a=nt(r,r===Qu?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||rt(r,a)||(n=!0,Ff(r,a))}r=r.next}while(n);Df=!1}}function jf(){Mf()}function Mf(){Ef=Tf=!1;var e=0;Of!==0&&yp()&&(e=Of);for(var t=Ie(),n=null,r=Cf;r!==null;){var i=r.next,a=Nf(r,t);a===0?(r.next=null,n===null?Cf=i:n.next=i,i===null&&(wf=n)):(n=r,(e!==0||a&3)&&(Ef=!0)),r=i}xd!==0&&xd!==5||Af(e,!1),Of!==0&&(Of=0)}function Nf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&lp(d)&&(c=c.responseEnd,o+=u*(crh){s.length=o;break}f=new Promise(Fp.bind(f)),s.push(f)}}}if(0`u`?null:document;function km(e,t,n){var r=Om;if(r&&typeof t==`string`&&t){var i=Qt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Cm.has(i)||(Cm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),op(t,`link`,e),jt(t),r.head.appendChild(t)))}}function Am(e){Tm.D(e),km(`dns-prefetch`,e,null)}function jm(e,t){Tm.C(e,t),km(`preconnect`,e,t)}function Mm(e,t,n){Tm.L(e,t,n);var r=Om;if(r&&e&&t){var i=`link[rel="preload"][as="`+Qt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Qt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Qt(n.imageSizes)+`"]`)):i+=`[href="`+Qt(e)+`"]`;var a=i;switch(t){case`style`:a=Rm(e);break;case`script`:a=Hm(e)}if(!(Sm.has(a)||(e=T({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Sm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(zm(a))||t===`script`&&r.querySelector(Um(a))))){var o=r.createElement(`link`);op(o,`link`,e),t===`style`&&(o[Tt]=!0,o.onload=o.onerror=function(){Mt(o)}),jt(o),r.head.appendChild(o)}}}function Nm(e,t){Tm.m(e,t);var n=Om;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Qt(r)+`"][href="`+Qt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Hm(e)}if(!Sm.has(a)&&(e=T({rel:`modulepreload`,href:e},t),Sm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Um(a)))return}r=n.createElement(`link`),op(r,`link`,e),jt(r),n.head.appendChild(r)}}}function Pm(e,t,n){Tm.S(e,t,n);var r=Om;if(r&&e){var i=At(r).hoistableStyles,a=Rm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(zm(a)))s.loading=5;else{e=T({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Sm.get(a))&&Km(e,n);var c=o=r.createElement(`link`);jt(c),op(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Gm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Fm(e,t){Tm.X(e,t);var n=Om;if(n&&e){var r=At(n).hoistableScripts,i=Hm(e),a=r.get(i);a||(a=n.querySelector(Um(i)),a||(e=T({src:e,async:!0},t),(t=Sm.get(i))&&qm(e,t),a=n.createElement(`script`),jt(a),op(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Im(e,t){Tm.M(e,t);var n=Om;if(n&&e){var r=At(n).hoistableScripts,i=Hm(e),a=r.get(i);a||(a=n.querySelector(Um(i)),a||(e=T({src:e,async:!0,type:`module`},t),(t=Sm.get(i))&&qm(e,t),a=n.createElement(`script`),jt(a),op(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Lm(e,t,n,r){var a=(a=V.current)?wm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Rm(n.href),t=At(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Rm(n.href);var o=At(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(zm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=Sm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Sm.set(e,o)),Vm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Hm(n),t=At(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Rm(e){return`href="`+Qt(e)+`"`}function zm(e){return`link[rel="stylesheet"][`+e+`]`}function Bm(e){return T({},e,{"data-precedence":e.precedence,precedence:null})}function Vm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Tt]){r.loading=1;return}}else t=e.createElement(`link`),t[Tt]=!0,t.onload=t.onerror=Mt.bind(null,t),op(t,`link`,n),jt(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Hm(e){return`[src="`+Qt(e)+`"]`}function Um(e){return`script[async]`+e}function Wm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Qt(n.href)+`"]`);if(r)return t.instance=r,jt(r),r;var a=T({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),jt(r),op(r,`style`,a),Gm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Rm(n.href);var o=e.querySelector(zm(a));if(o)return t.state.loading|=4,t.instance=o,jt(o),o;r=Bm(n),(a=Sm.get(a))&&Km(r,a),o=(e.ownerDocument||e).createElement(`link`),jt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),op(o,`link`,r),t.state.loading|=4,Gm(o,n.precedence,e),t.instance=o;case`script`:return o=Hm(n.src),(a=e.querySelector(Um(o)))?(t.instance=a,jt(a),a):(r=n,(a=Sm.get(o))&&(r=T({},n),qm(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),jt(a),op(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Gm(r,n.precedence,e));return t.instance}function Gm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Zm(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Qm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function $m(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function eh(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function th(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=eh(t),e.suspenseyImages.push(t)),e=sh.bind(e),t.decode().then(e,e))}function nh(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Rm(r.href),a=t.querySelector(zm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=oh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,jt(a);return}a=t.ownerDocument||t,r=Bm(r),(i=Sm.get(i))&&Km(r,i),a=a.createElement(`link`),jt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),op(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=oh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var rh=0;function ih(e,t){return e.stylesheets&&e.count===0&&lh(e,e.stylesheets),0rh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function ah(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)lh(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function oh(){this.count--,ah(this)}function sh(){this.imgCount--,ah(this)}var ch=null;function lh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ch=new Map,t.forEach(uh,e),ch=null,oh.call(e))}function uh(e,t){if(!(t.state.loading&4)){var n=ch.get(e);if(n)var r=n.get(null);else{n=new Map,ch.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Wee()}))(),Kee=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z`}))]]),qee=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M228,104a12,12,0,0,1-24,0V69l-59.51,59.51a12,12,0,0,1-17-17L187,52H152a12,12,0,0,1,0-24h64a12,12,0,0,1,12,12Zm-44,24a12,12,0,0,0-12,12v64H52V84h64a12,12,0,0,0,0-24H48A20,20,0,0,0,28,80V208a20,20,0,0,0,20,20H176a20,20,0,0,0,20-20V140A12,12,0,0,0,184,128Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M184,80V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H176A8,8,0,0,1,184,80Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M192,136v72a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V80A16,16,0,0,1,48,64h72a8,8,0,0,1,0,16H48V208H176V136a8,8,0,0,1,16,0Zm32-96a8,8,0,0,0-8-8H152a8,8,0,0,0-5.66,13.66L172.69,72l-42.35,42.34a8,8,0,0,0,11.32,11.32L184,83.31l26.34,26.35A8,8,0,0,0,224,104Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M222,104a6,6,0,0,1-12,0V54.49l-69.75,69.75a6,6,0,0,1-8.48-8.48L201.51,46H152a6,6,0,0,1,0-12h64a6,6,0,0,1,6,6Zm-38,26a6,6,0,0,0-6,6v72a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h72a6,6,0,0,0,0-12H48A14,14,0,0,0,34,80V208a14,14,0,0,0,14,14H176a14,14,0,0,0,14-14V136A6,6,0,0,0,184,130Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M220,104a4,4,0,0,1-8,0V49.66l-73.16,73.17a4,4,0,0,1-5.66-5.66L206.34,44H152a4,4,0,0,1,0-8h64a4,4,0,0,1,4,4Zm-36,28a4,4,0,0,0-4,4v72a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4h72a4,4,0,0,0,0-8H48A12,12,0,0,0,36,80V208a12,12,0,0,0,12,12H176a12,12,0,0,0,12-12V136A4,4,0,0,0,184,132Z`}))]]),Jee=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M220,48V96a12,12,0,0,1-24,0V77l-35.51,35.52a12,12,0,0,1-17-17L179,60H160a12,12,0,0,1,0-24h48A12,12,0,0,1,220,48ZM95.51,143.51,60,179V160a12,12,0,0,0-24,0v48a12,12,0,0,0,12,12H96a12,12,0,0,0,0-24H77l35.52-35.51a12,12,0,0,0-17-17ZM208,148a12,12,0,0,0-12,12v19l-35.51-35.52a12,12,0,0,0-17,17L179,196H160a12,12,0,0,0,0,24h48a12,12,0,0,0,12-12V160A12,12,0,0,0,208,148ZM77,60H96a12,12,0,0,0,0-24H48A12,12,0,0,0,36,48V96a12,12,0,0,0,24,0V77l35.51,35.52a12,12,0,0,0,17-17Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,48V208H48V48Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M216,48V96a8,8,0,0,1-16,0V67.31l-42.34,42.35a8,8,0,0,1-11.32-11.32L188.69,56H160a8,8,0,0,1,0-16h48A8,8,0,0,1,216,48ZM98.34,146.34,56,188.69V160a8,8,0,0,0-16,0v48a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16H67.31l42.35-42.34a8,8,0,0,0-11.32-11.32ZM208,152a8,8,0,0,0-8,8v28.69l-42.34-42.35a8,8,0,0,0-11.32,11.32L188.69,200H160a8,8,0,0,0,0,16h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152ZM67.31,56H96a8,8,0,0,0,0-16H48a8,8,0,0,0-8,8V96a8,8,0,0,0,16,0V67.31l42.34,42.35a8,8,0,0,0,11.32-11.32Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M109.66,146.34a8,8,0,0,1,0,11.32L83.31,184l18.35,18.34A8,8,0,0,1,96,216H48a8,8,0,0,1-8-8V160a8,8,0,0,1,13.66-5.66L72,172.69l26.34-26.35A8,8,0,0,1,109.66,146.34ZM83.31,72l18.35-18.34A8,8,0,0,0,96,40H48a8,8,0,0,0-8,8V96a8,8,0,0,0,13.66,5.66L72,83.31l26.34,26.35a8,8,0,0,0,11.32-11.32ZM208,40H160a8,8,0,0,0-5.66,13.66L172.69,72,146.34,98.34a8,8,0,0,0,11.32,11.32L184,83.31l18.34,18.35A8,8,0,0,0,216,96V48A8,8,0,0,0,208,40Zm3.06,112.61a8,8,0,0,0-8.72,1.73L184,172.69l-26.34-26.35a8,8,0,0,0-11.32,11.32L172.69,184l-18.35,18.34A8,8,0,0,0,160,216h48a8,8,0,0,0,8-8V160A8,8,0,0,0,211.06,152.61Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M214,48V96a6,6,0,0,1-12,0V62.48l-45.76,45.76a6,6,0,0,1-8.48-8.48L193.52,54H160a6,6,0,0,1,0-12h48A6,6,0,0,1,214,48ZM99.76,147.76,54,193.52V160a6,6,0,0,0-12,0v48a6,6,0,0,0,6,6H96a6,6,0,0,0,0-12H62.48l45.76-45.76a6,6,0,0,0-8.48-8.48ZM208,154a6,6,0,0,0-6,6v33.52l-45.76-45.76a6,6,0,0,0-8.48,8.48L193.52,202H160a6,6,0,0,0,0,12h48a6,6,0,0,0,6-6V160A6,6,0,0,0,208,154ZM62.48,54H96a6,6,0,0,0,0-12H48a6,6,0,0,0-6,6V96a6,6,0,0,0,12,0V62.48l45.76,45.76a6,6,0,0,0,8.48-8.48Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,48V96a8,8,0,0,1-16,0V67.31l-42.34,42.35a8,8,0,0,1-11.32-11.32L188.69,56H160a8,8,0,0,1,0-16h48A8,8,0,0,1,216,48ZM98.34,146.34,56,188.69V160a8,8,0,0,0-16,0v48a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16H67.31l42.35-42.34a8,8,0,0,0-11.32-11.32ZM208,152a8,8,0,0,0-8,8v28.69l-42.34-42.35a8,8,0,0,0-11.32,11.32L188.69,200H160a8,8,0,0,0,0,16h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152ZM67.31,56H96a8,8,0,0,0,0-16H48a8,8,0,0,0-8,8V96a8,8,0,0,0,16,0V67.31l42.34,42.35a8,8,0,0,0,11.32-11.32Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M212,48V96a4,4,0,0,1-8,0V57.66l-49.17,49.17a4,4,0,0,1-5.66-5.66L198.34,52H160a4,4,0,0,1,0-8h48A4,4,0,0,1,212,48ZM101.17,149.17,52,198.34V160a4,4,0,0,0-8,0v48a4,4,0,0,0,4,4H96a4,4,0,0,0,0-8H57.66l49.17-49.17a4,4,0,0,0-5.66-5.66ZM208,156a4,4,0,0,0-4,4v38.34l-49.17-49.17a4,4,0,0,0-5.66,5.66L198.34,204H160a4,4,0,0,0,0,8h48a4,4,0,0,0,4-4V160A4,4,0,0,0,208,156ZM57.66,52H96a4,4,0,0,0,0-8H48a4,4,0,0,0-4,4V96a4,4,0,0,0,8,0V57.66l49.17,49.17a4,4,0,0,0,5.66-5.66Z`}))]]),Yee=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M237.24,213.21C216.12,203,204,180.64,204,152V134.73a19.94,19.94,0,0,0-12.62-18.59l-24.86-9.81a4,4,0,0,1-2.26-5.14l21.33-53A32,32,0,0,0,167.17,6,32.13,32.13,0,0,0,126.25,24.2l-.07.18-21,53.09a3.94,3.94,0,0,1-2.14,2.2,3.89,3.89,0,0,1-3,.06L74.6,69.43A19.89,19.89,0,0,0,52.87,74C31.06,96.43,20,122.68,20,152a115.46,115.46,0,0,0,32.29,80.3A12,12,0,0,0,61,236H232a12,12,0,0,0,5.24-22.79ZM68.19,92.73,91.06,102A28,28,0,0,0,127.5,86.31l20.95-53a8.32,8.32,0,0,1,10.33-4.81,8,8,0,0,1,4.61,10.57,1.17,1.17,0,0,0,0,.11L142,92.29a28.05,28.05,0,0,0,15.68,36.33L180,137.45V152c0,1,0,2.07.05,3.1l-122.44-49A101.91,101.91,0,0,1,68.19,92.73ZM116.74,212a83.73,83.73,0,0,1-22.09-39,12,12,0,0,0-23.25,6,110.27,110.27,0,0,0,14.49,33H66.25A91.53,91.53,0,0,1,44,152a84,84,0,0,1,3.41-24.11l136.67,54.66A86.58,86.58,0,0,0,198.66,212Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M192.8,165.12,43.93,105.57A110.88,110.88,0,0,1,61.47,82.38a8,8,0,0,1,8.67-1.81L95.52,90.85a16,16,0,0,0,20.82-9l21-53.1c4.15-10,15.47-15.33,25.63-11.53a20,20,0,0,1,11.51,26.39L153.13,96.71a16,16,0,0,0,8.93,20.75L187,127.3a8,8,0,0,1,5,7.43V152A104.58,104.58,0,0,0,192.8,165.12Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M235.5,216.81c-22.56-11-35.5-34.58-35.5-64.8V134.73a15.94,15.94,0,0,0-10.09-14.87L165,110a8,8,0,0,1-4.48-10.34l21.32-53a28,28,0,0,0-16.1-37,28.14,28.14,0,0,0-35.82,16,.61.61,0,0,0,0,.12L108.9,79a8,8,0,0,1-10.37,4.49L73.11,73.14A15.89,15.89,0,0,0,55.74,76.8C34.68,98.45,24,123.75,24,152a111.45,111.45,0,0,0,31.18,77.53A8,8,0,0,0,61,232H232a8,8,0,0,0,3.5-15.19ZM67.14,88l25.41,10.3a24,24,0,0,0,31.23-13.45l21-53c2.56-6.11,9.47-9.27,15.43-7a12,12,0,0,1,6.88,15.92L145.69,93.76a24,24,0,0,0,13.43,31.14L184,134.73V152c0,.33,0,.66,0,1L55.77,101.71A108.84,108.84,0,0,1,67.14,88Zm48,128a87.53,87.53,0,0,1-24.34-42,8,8,0,0,0-15.49,4,105.16,105.16,0,0,0,18.36,38H64.44A95.54,95.54,0,0,1,40,152a85.9,85.9,0,0,1,7.73-36.29l137.8,55.12c3,18,10.56,33.48,21.89,45.16Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M235.29,216.7C212.86,205.69,200,182.12,200,152V134.69a15.94,15.94,0,0,0-10.09-14.87l-28.65-11.46A8,8,0,0,1,156.79,98l22.32-56.67C184,28.79,178,14.21,165.34,9.51a24,24,0,0,0-30.7,13.71L112.25,80.08a8,8,0,0,1-10.41,4.5L73.11,73.08a15.91,15.91,0,0,0-17.38,3.66C34.68,98.4,24,123.71,24,152a111.53,111.53,0,0,0,31.15,77.53A8.06,8.06,0,0,0,61,232H232a8,8,0,0,0,8-7.51A8.21,8.21,0,0,0,235.29,216.7ZM115.11,216a87.52,87.52,0,0,1-24.26-41.71,8.21,8.21,0,0,0-9.25-6.18A8,8,0,0,0,75.28,178a105.33,105.33,0,0,0,18.36,38H64.44A95.62,95.62,0,0,1,40,152a85.92,85.92,0,0,1,7.73-36.3l137.8,55.13c3,18.06,10.55,33.5,21.89,45.19Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M234.62,218.6C211.35,207.29,198,183,198,152V134.7a14,14,0,0,0-8.82-13l-24.89-9.83a10,10,0,0,1-5.59-13L180,45.9a26,26,0,0,0-15-34.33c-12.95-4.83-27.88,1.84-33.31,15l-21,53.11a10,10,0,0,1-13,5.61L72.37,75a13.9,13.9,0,0,0-15.2,3.19C36.49,99.42,26,124.26,26,152a109.53,109.53,0,0,0,30.62,76.16A6,6,0,0,0,61,230H232a6,6,0,0,0,2.62-11.4ZM65.77,86.52a2,2,0,0,1,2.12-.43l25.4,10.29a22,22,0,0,0,28.63-12.32l21-53c3-7.13,11-10.81,18-8.21a14,14,0,0,1,8,18.54l-21.36,53.1A22.05,22.05,0,0,0,159.86,123l24.88,9.83A2,2,0,0,1,186,134.7V152c0,1.34,0,2.65.08,4L52.74,102.61A110.07,110.07,0,0,1,65.77,86.52ZM114.33,218a89.6,89.6,0,0,1-25.5-43.5,6,6,0,1,0-11.62,3A102.87,102.87,0,0,0,97.81,218H63.56A97.56,97.56,0,0,1,38,152a87.42,87.42,0,0,1,8.71-38.86L187.35,169.4c3.15,19.92,11.77,36.66,25,48.6Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M235.5,216.81c-22.56-11-35.5-34.58-35.5-64.8V134.73a15.94,15.94,0,0,0-10.09-14.87L165,110a8,8,0,0,1-4.48-10.34l21.32-53a28,28,0,0,0-16.1-37,28.14,28.14,0,0,0-35.82,16,.61.61,0,0,0,0,.12L108.9,79a8,8,0,0,1-10.37,4.49L73.11,73.14A15.89,15.89,0,0,0,55.74,76.8C34.68,98.45,24,123.75,24,152a111.45,111.45,0,0,0,31.18,77.53A8,8,0,0,0,61,232H232a8,8,0,0,0,3.5-15.19ZM67.14,88l25.41,10.3a24,24,0,0,0,31.23-13.45l21-53c2.56-6.11,9.47-9.27,15.43-7a12,12,0,0,1,6.88,15.92L145.69,93.76a24,24,0,0,0,13.43,31.14L184,134.73V152c0,.33,0,.66,0,1L55.77,101.71A108.84,108.84,0,0,1,67.14,88Zm48,128a87.53,87.53,0,0,1-24.34-42,8,8,0,0,0-15.49,4,105.16,105.16,0,0,0,18.36,38H64.44A95.54,95.54,0,0,1,40,152a85.9,85.9,0,0,1,7.73-36.29l137.8,55.12c3,18,10.56,33.48,21.89,45.16Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M233.75,220.4C209.76,208.75,196,183.82,196,152V134.72a12,12,0,0,0-7.56-11.15l-24.89-9.83a12,12,0,0,1-6.71-15.55l21.33-53a23.88,23.88,0,0,0-31.93-31A24.72,24.72,0,0,0,133.62,27.3l-21,53.1A12,12,0,0,1,97,87.13L71.63,76.84a12,12,0,0,0-13,2.73C38.3,100.45,28,124.82,28,152a107.5,107.5,0,0,0,30.07,74.77A4,4,0,0,0,61,228H232a4,4,0,0,0,1.75-7.6ZM64.34,85.15a3.94,3.94,0,0,1,4.3-.89L94,94.55a20,20,0,0,0,26-11.2l21-53C144.39,22.19,153.61,18,161.58,21a16,16,0,0,1,9.19,21.16L149.41,95.22a20,20,0,0,0,11.18,26l24.9,9.83a4,4,0,0,1,2.51,3.72V152c0,2.36.08,4.69.22,7l-138.5-55.4A110.84,110.84,0,0,1,64.34,85.15ZM113.56,220A91.35,91.35,0,0,1,86.9,175a4,4,0,0,0-7.75,2,100.21,100.21,0,0,0,23.09,43H62.68A99.5,99.5,0,0,1,36,152a89.37,89.37,0,0,1,9.73-41.4L189.13,168c3.22,22,13.23,40.09,28.8,52Z`}))]]),Xee=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,96l-80,80L48,96Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z`}))]]),Zee=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M176,128,96,208V48Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z`}))]]),Qee=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216.49,168.49a12,12,0,0,1-17,0L128,97,56.49,168.49a12,12,0,0,1-17-17l80-80a12,12,0,0,1,17,0l80,80A12,12,0,0,1,216.49,168.49Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,160H48l80-80Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M213.66,154.34l-80-80a8,8,0,0,0-11.32,0l-80,80A8,8,0,0,0,48,168H208a8,8,0,0,0,5.66-13.66ZM67.31,152,128,91.31,188.69,152Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M215.39,163.06A8,8,0,0,1,208,168H48a8,8,0,0,1-5.66-13.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,215.39,163.06Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M210.83,162.83a4,4,0,0,1-5.66,0L128,85.66,50.83,162.83a4,4,0,0,1-5.66-5.66l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,210.83,162.83Z`}))]]),$ee=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,196h-4V40a12,12,0,0,0-12-12H152a12,12,0,0,0-12,12V76H96A12,12,0,0,0,84,88v36H48a12,12,0,0,0-12,12v60H32a12,12,0,0,0,0,24H224a12,12,0,0,0,0-24ZM164,52h32V196H164Zm-56,48h32v96H108ZM60,148H84v48H60Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,40V208H152V40Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M224,200h-8V40a8,8,0,0,0-8-8H152a8,8,0,0,0-8,8V80H96a8,8,0,0,0-8,8v40H48a8,8,0,0,0-8,8v64H32a8,8,0,0,0,0,16H224a8,8,0,0,0,0-16ZM160,48h40V200H160ZM104,96h40V200H104ZM56,144H88v56H56Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,208a8,8,0,0,1-8,8H32a8,8,0,0,1,0-16h8V136a8,8,0,0,1,8-8H72a8,8,0,0,1,8,8v64H96V88a8,8,0,0,1,8-8h32a8,8,0,0,1,8,8V200h16V40a8,8,0,0,1,8-8h40a8,8,0,0,1,8,8V200h8A8,8,0,0,1,232,208Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,202H214V40a6,6,0,0,0-6-6H152a6,6,0,0,0-6,6V82H96a6,6,0,0,0-6,6v42H48a6,6,0,0,0-6,6v66H32a6,6,0,0,0,0,12H224a6,6,0,0,0,0-12ZM158,46h44V202H158ZM102,94h44V202H102ZM54,142H90v60H54Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,200h-8V40a8,8,0,0,0-8-8H152a8,8,0,0,0-8,8V80H96a8,8,0,0,0-8,8v40H48a8,8,0,0,0-8,8v64H32a8,8,0,0,0,0,16H224a8,8,0,0,0,0-16ZM160,48h40V200H160ZM104,96h40V200H104ZM56,144H88v56H56Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,204H212V40a4,4,0,0,0-4-4H152a4,4,0,0,0-4,4V84H96a4,4,0,0,0-4,4v44H48a4,4,0,0,0-4,4v68H32a4,4,0,0,0,0,8H224a4,4,0,0,0,0-8ZM156,44h48V204H156ZM100,92h48V204H100ZM52,140H92v64H52Z`}))]]),ete=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M236,208a12,12,0,0,1-12,12H32a12,12,0,0,1-12-12V48a12,12,0,0,1,24,0v85.55L88.1,95a12,12,0,0,1,15.1-.57l56.22,42.16L216.1,87A12,12,0,1,1,231.9,105l-64,56a12,12,0,0,1-15.1.57L96.58,119.44,44,165.45V196H224A12,12,0,0,1,236,208Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,64V208H32V48H208A16,16,0,0,1,224,64Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M232,208a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V48a8,8,0,0,1,16,0v94.37L90.73,98a8,8,0,0,1,10.07-.38l58.81,44.11L218.73,90a8,8,0,1,1,10.54,12l-64,56a8,8,0,0,1-10.07.38L96.39,114.29,40,163.63V200H224A8,8,0,0,1,232,208Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM200,176a8,8,0,0,1,0,16H56a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v62.92l34.88-29.07a8,8,0,0,1,9.56-.51l43,28.69,43.41-36.18a8,8,0,0,1,10.24,12.3l-48,40a8,8,0,0,1-9.56.51l-43-28.69L64,155.75V176Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M230,208a6,6,0,0,1-6,6H32a6,6,0,0,1-6-6V48a6,6,0,0,1,12,0v98.78l54.05-47.3a6,6,0,0,1,7.55-.28l60.11,45.08,60.34-52.8a6,6,0,0,1,7.9,9l-64,56a6,6,0,0,1-7.55.28L96.29,111.72,38,162.72V202H224A6,6,0,0,1,230,208Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,208a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V48a8,8,0,0,1,16,0v94.37L90.73,98a8,8,0,0,1,10.07-.38l58.81,44.11L218.73,90a8,8,0,1,1,10.54,12l-64,56a8,8,0,0,1-10.07.38L96.39,114.29,40,163.63V200H224A8,8,0,0,1,232,208Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M228,208a4,4,0,0,1-4,4H32a4,4,0,0,1-4-4V48a4,4,0,0,1,8,0V151.19L93.37,101a4,4,0,0,1,5-.19l61.41,46.05L221.37,93a4,4,0,0,1,5.26,6l-64,56a4,4,0,0,1-5,.19l-61.41-46L36,161.81V204H224A4,4,0,0,1,228,208Z`}))]]),tte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,20A108,108,0,0,0,31.85,177.23L21,209.66A20,20,0,0,0,46.34,235l32.43-10.81A108,108,0,1,0,128,20Zm0,192a84,84,0,0,1-42.06-11.27,12,12,0,0,0-6-1.62,12.1,12.1,0,0,0-3.8.62l-29.79,9.93,9.93-29.79a12,12,0,0,0-1-9.81A84,84,0,1,1,128,212Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,128A96,96,0,0,1,79.93,211.11h0L42.54,223.58a8,8,0,0,1-10.12-10.12l12.47-37.39h0A96,96,0,1,1,224,128Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-6.54-.67L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,128A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24-20.24l11.35-34.05A104,104,0,1,1,232,128Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,26A102,102,0,0,0,38.35,176.69L26.73,211.56a14,14,0,0,0,17.71,17.71l34.87-11.62A102,102,0,1,0,128,26Zm0,192a90,90,0,0,1-45.06-12.08,6.09,6.09,0,0,0-3-.81,6.2,6.2,0,0,0-1.9.31L40.65,217.88a2,2,0,0,1-2.53-2.53L50.58,178a6,6,0,0,0-.5-4.91A90,90,0,1,1,128,218Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-6.54-.67L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,28A100,100,0,0,0,40.53,176.5l-11.9,35.69a12,12,0,0,0,15.18,15.18l35.69-11.9A100,100,0,1,0,128,28Zm0,192a92,92,0,0,1-46.07-12.35,4.05,4.05,0,0,0-2-.54,3.93,3.93,0,0,0-1.27.21L41.28,219.78a4,4,0,0,1-5.06-5.06l12.46-37.38a4,4,0,0,0-.33-3.27A92,92,0,1,1,128,220Z`}))]]),nte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z`}))]]),rte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z`}))]]),ite=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M71.68,97.22,34.74,128l36.94,30.78a12,12,0,1,1-15.36,18.44l-48-40a12,12,0,0,1,0-18.44l48-40A12,12,0,0,1,71.68,97.22Zm176,21.56-48-40a12,12,0,1,0-15.36,18.44L221.26,128l-36.94,30.78a12,12,0,1,0,15.36,18.44l48-40a12,12,0,0,0,0-18.44ZM164.1,28.72a12,12,0,0,0-15.38,7.18l-64,176a12,12,0,0,0,7.18,15.37A11.79,11.79,0,0,0,96,228a12,12,0,0,0,11.28-7.9l64-176A12,12,0,0,0,164.1,28.72Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M240,128l-48,40H64L16,128,64,88H192Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M69.12,94.15,28.5,128l40.62,33.85a8,8,0,1,1-10.24,12.29l-48-40a8,8,0,0,1,0-12.29l48-40a8,8,0,0,1,10.24,12.3Zm176,27.7-48-40a8,8,0,1,0-10.24,12.3L227.5,128l-40.62,33.85a8,8,0,1,0,10.24,12.29l48-40a8,8,0,0,0,0-12.29ZM162.73,32.48a8,8,0,0,0-10.25,4.79l-64,176a8,8,0,0,0,4.79,10.26A8.14,8.14,0,0,0,96,224a8,8,0,0,0,7.52-5.27l64-176A8,8,0,0,0,162.73,32.48Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM92.8,145.6a8,8,0,1,1-9.6,12.8l-32-24a8,8,0,0,1,0-12.8l32-24a8,8,0,0,1,9.6,12.8L69.33,128Zm58.89-71.4-32,112a8,8,0,1,1-15.38-4.4l32-112a8,8,0,0,1,15.38,4.4Zm53.11,60.2-32,24a8,8,0,0,1-9.6-12.8L186.67,128,163.2,110.4a8,8,0,1,1,9.6-12.8l32,24a8,8,0,0,1,0,12.8Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M67.84,92.61,25.37,128l42.47,35.39a6,6,0,1,1-7.68,9.22l-48-40a6,6,0,0,1,0-9.22l48-40a6,6,0,0,1,7.68,9.22Zm176,30.78-48-40a6,6,0,1,0-7.68,9.22L230.63,128l-42.47,35.39a6,6,0,1,0,7.68,9.22l48-40a6,6,0,0,0,0-9.22Zm-81.79-89A6,6,0,0,0,154.36,38l-64,176A6,6,0,0,0,94,221.64a6.15,6.15,0,0,0,2,.36,6,6,0,0,0,5.64-3.95l64-176A6,6,0,0,0,162.05,34.36Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M69.12,94.15,28.5,128l40.62,33.85a8,8,0,1,1-10.24,12.29l-48-40a8,8,0,0,1,0-12.29l48-40a8,8,0,0,1,10.24,12.3Zm176,27.7-48-40a8,8,0,1,0-10.24,12.3L227.5,128l-40.62,33.85a8,8,0,1,0,10.24,12.29l48-40a8,8,0,0,0,0-12.29ZM162.73,32.48a8,8,0,0,0-10.25,4.79l-64,176a8,8,0,0,0,4.79,10.26A8.14,8.14,0,0,0,96,224a8,8,0,0,0,7.52-5.27l64-176A8,8,0,0,0,162.73,32.48Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M66.56,91.07,22.25,128l44.31,36.93A4,4,0,0,1,64,172a3.94,3.94,0,0,1-2.56-.93l-48-40a4,4,0,0,1,0-6.14l48-40a4,4,0,0,1,5.12,6.14Zm176,33.86-48-40a4,4,0,1,0-5.12,6.14L233.75,128l-44.31,36.93a4,4,0,1,0,5.12,6.14l48-40a4,4,0,0,0,0-6.14ZM161.37,36.24a4,4,0,0,0-5.13,2.39l-64,176a4,4,0,0,0,2.39,5.13A4.12,4.12,0,0,0,96,220a4,4,0,0,0,3.76-2.63l64-176A4,4,0,0,0,161.37,36.24Z`}))]]),ate=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,40V168H168V88H88V40Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z`}))]]),ote=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M156,88H100a12,12,0,0,0-12,12v56a12,12,0,0,0,12,12h56a12,12,0,0,0,12-12V100A12,12,0,0,0,156,88Zm-12,56H112V112h32Zm88-4H220V116h12a12,12,0,0,0,0-24H220V56a20,20,0,0,0-20-20H164V24a12,12,0,0,0-24,0V36H116V24a12,12,0,0,0-24,0V36H56A20,20,0,0,0,36,56V92H24a12,12,0,0,0,0,24H36v24H24a12,12,0,0,0,0,24H36v36a20,20,0,0,0,20,20H92v12a12,12,0,0,0,24,0V220h24v12a12,12,0,0,0,24,0V220h36a20,20,0,0,0,20-20V164h12a12,12,0,0,0,0-24Zm-36,56H60V60H196Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M200,48H56a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8H200a8,8,0,0,0,8-8V56A8,8,0,0,0,200,48ZM152,152H104V104h48Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M152,96H104a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V104A8,8,0,0,0,152,96Zm-8,48H112V112h32Zm88,0H216V112h16a8,8,0,0,0,0-16H216V56a16,16,0,0,0-16-16H160V24a8,8,0,0,0-16,0V40H112V24a8,8,0,0,0-16,0V40H56A16,16,0,0,0,40,56V96H24a8,8,0,0,0,0,16H40v32H24a8,8,0,0,0,0,16H40v40a16,16,0,0,0,16,16H96v16a8,8,0,0,0,16,0V216h32v16a8,8,0,0,0,16,0V216h40a16,16,0,0,0,16-16V160h16a8,8,0,0,0,0-16Zm-32,56H56V56H200v95.87s0,.09,0,.13,0,.09,0,.13V200Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M104,104h48v48H104Zm136,48a8,8,0,0,1-8,8H216v40a16,16,0,0,1-16,16H160v16a8,8,0,0,1-16,0V216H112v16a8,8,0,0,1-16,0V216H56a16,16,0,0,1-16-16V160H24a8,8,0,0,1,0-16H40V112H24a8,8,0,0,1,0-16H40V56A16,16,0,0,1,56,40H96V24a8,8,0,0,1,16,0V40h32V24a8,8,0,0,1,16,0V40h40a16,16,0,0,1,16,16V96h16a8,8,0,0,1,0,16H216v32h16A8,8,0,0,1,240,152ZM168,96a8,8,0,0,0-8-8H96a8,8,0,0,0-8,8v64a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M152,98H104a6,6,0,0,0-6,6v48a6,6,0,0,0,6,6h48a6,6,0,0,0,6-6V104A6,6,0,0,0,152,98Zm-6,48H110V110h36Zm86,0H214V110h18a6,6,0,0,0,0-12H214V56a14,14,0,0,0-14-14H158V24a6,6,0,0,0-12,0V42H110V24a6,6,0,0,0-12,0V42H56A14,14,0,0,0,42,56V98H24a6,6,0,0,0,0,12H42v36H24a6,6,0,0,0,0,12H42v42a14,14,0,0,0,14,14H98v18a6,6,0,0,0,12,0V214h36v18a6,6,0,0,0,12,0V214h42a14,14,0,0,0,14-14V158h18a6,6,0,0,0,0-12Zm-30,54a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H200a2,2,0,0,1,2,2Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M152,96H104a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V104A8,8,0,0,0,152,96Zm-8,48H112V112h32Zm88,0H216V112h16a8,8,0,0,0,0-16H216V56a16,16,0,0,0-16-16H160V24a8,8,0,0,0-16,0V40H112V24a8,8,0,0,0-16,0V40H56A16,16,0,0,0,40,56V96H24a8,8,0,0,0,0,16H40v32H24a8,8,0,0,0,0,16H40v40a16,16,0,0,0,16,16H96v16a8,8,0,0,0,16,0V216h32v16a8,8,0,0,0,16,0V216h40a16,16,0,0,0,16-16V160h16a8,8,0,0,0,0-16Zm-32,56H56V56H200v95.87s0,.09,0,.13,0,.09,0,.13V200Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M152,100H104a4,4,0,0,0-4,4v48a4,4,0,0,0,4,4h48a4,4,0,0,0,4-4V104A4,4,0,0,0,152,100Zm-4,48H108V108h40Zm84,0H212V108h20a4,4,0,0,0,0-8H212V56a12,12,0,0,0-12-12H156V24a4,4,0,0,0-8,0V44H108V24a4,4,0,0,0-8,0V44H56A12,12,0,0,0,44,56v44H24a4,4,0,0,0,0,8H44v40H24a4,4,0,0,0,0,8H44v44a12,12,0,0,0,12,12h44v20a4,4,0,0,0,8,0V212h40v20a4,4,0,0,0,8,0V212h44a12,12,0,0,0,12-12V156h20a4,4,0,0,0,0-8Zm-28,52a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H200a4,4,0,0,1,4,4Z`}))]]),ste=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,36H48A28,28,0,0,0,20,64V172a28,28,0,0,0,28,28h68v12H96a12,12,0,0,0,0,24h64a12,12,0,0,0,0-24H140V200h68a28,28,0,0,0,28-28V64A28,28,0,0,0,208,36ZM48,60H208a4,4,0,0,1,4,4v72H44V64A4,4,0,0,1,48,60ZM208,176H48a4,4,0,0,1-4-4V160H212v12A4,4,0,0,1,208,176Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,64v88H32V64A16,16,0,0,1,48,48H208A16,16,0,0,1,224,64Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M208,40H48A24,24,0,0,0,24,64V176a24,24,0,0,0,24,24h72v16H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16H136V200h72a24,24,0,0,0,24-24V64A24,24,0,0,0,208,40ZM48,56H208a8,8,0,0,1,8,8v80H40V64A8,8,0,0,1,48,56ZM208,184H48a8,8,0,0,1-8-8V160H216v16A8,8,0,0,1,208,184Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,40H48A24,24,0,0,0,24,64V176a24,24,0,0,0,24,24h72v16H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16H136V200h72a24,24,0,0,0,24-24V64A24,24,0,0,0,208,40Zm0,144H48a8,8,0,0,1-8-8V160H216v16A8,8,0,0,1,208,184Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,42H48A22,22,0,0,0,26,64V176a22,22,0,0,0,22,22h74v20H96a6,6,0,0,0,0,12h64a6,6,0,0,0,0-12H134V198h74a22,22,0,0,0,22-22V64A22,22,0,0,0,208,42ZM48,54H208a10,10,0,0,1,10,10v82H38V64A10,10,0,0,1,48,54ZM208,186H48a10,10,0,0,1-10-10V158H218v18A10,10,0,0,1,208,186Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,40H48A24,24,0,0,0,24,64V176a24,24,0,0,0,24,24h72v16H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16H136V200h72a24,24,0,0,0,24-24V64A24,24,0,0,0,208,40ZM48,56H208a8,8,0,0,1,8,8v80H40V64A8,8,0,0,1,48,56ZM208,184H48a8,8,0,0,1-8-8V160H216v16A8,8,0,0,1,208,184Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,44H48A20,20,0,0,0,28,64V176a20,20,0,0,0,20,20h76v24H96a4,4,0,0,0,0,8h64a4,4,0,0,0,0-8H132V196h76a20,20,0,0,0,20-20V64A20,20,0,0,0,208,44ZM48,52H208a12,12,0,0,1,12,12v84H36V64A12,12,0,0,1,48,52ZM208,188H48a12,12,0,0,1-12-12V156H220v20A12,12,0,0,1,208,188Z`}))]]),cte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M238.16,113.89,142.1,17.83a20,20,0,0,0-28.21,0l-96,96.06a20,20,0,0,0,0,28.22l96.05,96.06h0a20,20,0,0,0,28.21,0l96-96.06a20,20,0,0,0,0-28.22ZM128,218.33,37.68,128,128,37.67,218.32,128Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M229.67,133.62l-96,96a7.94,7.94,0,0,1-11.24,0l-96-96a7.94,7.94,0,0,1,0-11.24l96.05-96a7.94,7.94,0,0,1,11.24,0l96,96.05A7.94,7.94,0,0,1,229.67,133.62Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M235.33,116.72,139.28,20.66a16,16,0,0,0-22.56,0l-96,96.06a16,16,0,0,0,0,22.56l96.05,96.06h0a16,16,0,0,0,22.56,0l96.05-96.06a16,16,0,0,0,0-22.56ZM128,224h0L32,128,128,32,224,128Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M240,128a15.85,15.85,0,0,1-4.67,11.28l-96.05,96.06a16,16,0,0,1-22.56,0h0l-96-96.06a16,16,0,0,1,0-22.56l96.05-96.06a16,16,0,0,1,22.56,0l96.05,96.06A15.85,15.85,0,0,1,240,128Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M233.92,118.14,137.86,22.08a14,14,0,0,0-19.72,0L22.08,118.14a14,14,0,0,0,0,19.72l96.06,96.06h0a14,14,0,0,0,19.72,0l96-96.06a13.94,13.94,0,0,0,0-19.72Zm-8.49,11.24-96.05,96.06a2,2,0,0,1-2.76,0L30.57,129.38a2,2,0,0,1,0-2.76l96.05-96.06a2,2,0,0,1,2.76,0l96.05,96.06a2,2,0,0,1,0,2.76Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M235.33,116.72,139.28,20.66a16,16,0,0,0-22.56,0l-96,96.06a16,16,0,0,0,0,22.56l96.05,96.06h0a16,16,0,0,0,22.56,0l96.05-96.06a16,16,0,0,0,0-22.56ZM128,224h0L32,128,128,32,224,128Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232.5,119.55,136.45,23.49a12,12,0,0,0-16.9,0l-96,96.06a12,12,0,0,0,0,16.9l96.05,96.06a12,12,0,0,0,16.9,0l96.05-96.06a12,12,0,0,0,0-16.9Zm-5.66,11.24-96.05,96.06a4,4,0,0,1-5.58,0l-96-96.06a3.94,3.94,0,0,1,0-5.58l96.05-96.06a4,4,0,0,1,5.58,0l96.05,96.06a3.94,3.94,0,0,1,0,5.58Z`}))]]),lte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M108,60A16,16,0,1,1,92,44,16,16,0,0,1,108,60Zm56,16a16,16,0,1,0-16-16A16,16,0,0,0,164,76ZM92,112a16,16,0,1,0,16,16A16,16,0,0,0,92,112Zm72,0a16,16,0,1,0,16,16A16,16,0,0,0,164,112ZM92,180a16,16,0,1,0,16,16A16,16,0,0,0,92,180Zm72,0a16,16,0,1,0,16,16A16,16,0,0,0,164,180Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,32V224a16,16,0,0,1-16,16H64a16,16,0,0,1-16-16V32A16,16,0,0,1,64,16H192A16,16,0,0,1,208,32Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M104,60A12,12,0,1,1,92,48,12,12,0,0,1,104,60Zm60,12a12,12,0,1,0-12-12A12,12,0,0,0,164,72ZM92,116a12,12,0,1,0,12,12A12,12,0,0,0,92,116Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,116ZM92,184a12,12,0,1,0,12,12A12,12,0,0,0,92,184Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,184Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M192,16H64A16,16,0,0,0,48,32V224a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V32A16,16,0,0,0,192,16ZM100,200a12,12,0,1,1,12-12A12,12,0,0,1,100,200Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,100,140Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,100,80Zm56,120a12,12,0,1,1,12-12A12,12,0,0,1,156,200Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,156,140Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,156,80Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M102,60A10,10,0,1,1,92,50,10,10,0,0,1,102,60Zm62,10a10,10,0,1,0-10-10A10,10,0,0,0,164,70ZM92,118a10,10,0,1,0,10,10A10,10,0,0,0,92,118Zm72,0a10,10,0,1,0,10,10A10,10,0,0,0,164,118ZM92,186a10,10,0,1,0,10,10A10,10,0,0,0,92,186Zm72,0a10,10,0,1,0,10,10A10,10,0,0,0,164,186Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M104,60A12,12,0,1,1,92,48,12,12,0,0,1,104,60Zm60,12a12,12,0,1,0-12-12A12,12,0,0,0,164,72ZM92,116a12,12,0,1,0,12,12A12,12,0,0,0,92,116Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,116ZM92,184a12,12,0,1,0,12,12A12,12,0,0,0,92,184Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,184Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M100,60a8,8,0,1,1-8-8A8,8,0,0,1,100,60Zm64,8a8,8,0,1,0-8-8A8,8,0,0,0,164,68ZM92,120a8,8,0,1,0,8,8A8,8,0,0,0,92,120Zm72,0a8,8,0,1,0,8,8A8,8,0,0,0,164,120ZM92,188a8,8,0,1,0,8,8A8,8,0,0,0,92,188Zm72,0a8,8,0,1,0,8,8A8,8,0,0,0,164,188Z`}))]]),ute=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M144,128a16,16,0,1,1-16-16A16,16,0,0,1,144,128ZM60,112a16,16,0,1,0,16,16A16,16,0,0,0,60,112Zm136,0a16,16,0,1,0,16,16A16,16,0,0,0,196,112Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M240,96v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V96A16,16,0,0,1,32,80H224A16,16,0,0,1,240,96Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V96A16,16,0,0,0,224,80ZM60,140a12,12,0,1,1,12-12A12,12,0,0,1,60,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,196,140Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M138,128a10,10,0,1,1-10-10A10,10,0,0,1,138,128ZM60,118a10,10,0,1,0,10,10A10,10,0,0,0,60,118Zm136,0a10,10,0,1,0,10,10A10,10,0,0,0,196,118Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M136,128a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-76-8a8,8,0,1,0,8,8A8,8,0,0,0,60,120Zm136,0a8,8,0,1,0,8,8A8,8,0,0,0,196,120Z`}))]]),dte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M251,123.13c-.37-.81-9.13-20.26-28.48-39.61C196.63,57.67,164,44,128,44S59.37,57.67,33.51,83.52C14.16,102.87,5.4,122.32,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212s68.63-13.66,94.48-39.51c19.36-19.35,28.12-38.79,28.49-39.61A12.08,12.08,0,0,0,251,123.13Zm-46.06,33C183.47,177.27,157.59,188,128,188s-55.47-10.73-76.91-31.88A130.36,130.36,0,0,1,29.52,128,130.45,130.45,0,0,1,51.09,99.89C72.54,78.73,98.41,68,128,68s55.46,10.73,76.91,31.89A130.36,130.36,0,0,1,226.48,128,130.45,130.45,0,0,1,204.91,156.12ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M245.48,125.57c-.34-.78-8.66-19.23-27.24-37.81C201,70.54,171.38,50,128,50S55,70.54,37.76,87.76c-18.58,18.58-26.9,37-27.24,37.81a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206s73-20.53,90.24-37.75c18.58-18.58,26.9-37,27.24-37.8A6,6,0,0,0,245.48,125.57ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.77,134.77,0,0,1,22.69,128,134.56,134.56,0,0,1,46.55,95.94C69.22,73.42,96.62,62,128,62s58.78,11.42,81.45,33.94A134.56,134.56,0,0,1,233.31,128C226.94,140.21,195,194,128,194Zm0-112a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M243.66,126.38c-.34-.76-8.52-18.89-26.83-37.2C199.87,72.22,170.7,52,128,52S56.13,72.22,39.17,89.18c-18.31,18.31-26.49,36.44-26.83,37.2a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17s71.87-20.21,88.83-37.17c18.31-18.31,26.49-36.43,26.83-37.2A4.08,4.08,0,0,0,243.66,126.38Zm-32.7,35c-23.07,23-51,34.62-83,34.62s-59.89-11.65-83-34.62A135.71,135.71,0,0,1,20.44,128,135.69,135.69,0,0,1,45,94.62C68.11,71.65,96,60,128,60s59.89,11.65,83,34.62A135.79,135.79,0,0,1,235.56,128,135.71,135.71,0,0,1,211,161.38ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Z`}))]]),fte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M222.14,69.17,186.83,33.86A19.86,19.86,0,0,0,172.69,28H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V83.31A19.86,19.86,0,0,0,222.14,69.17ZM164,204H92V160h72Zm40,0H188V156a20,20,0,0,0-20-20H88a20,20,0,0,0-20,20v48H52V52H171l33,33ZM164,84a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h56A12,12,0,0,1,164,84Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,83.31V208a8,8,0,0,1-8,8H176V152a8,8,0,0,0-8-8H88a8,8,0,0,0-8,8v64H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H172.69a8,8,0,0,1,5.65,2.34l35.32,35.32A8,8,0,0,1,216,83.31Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM168,208H88V152h80Zm40,0H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM208,208H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M217.9,73.42,182.58,38.1a13.9,13.9,0,0,0-9.89-4.1H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V83.31A13.9,13.9,0,0,0,217.9,73.42ZM170,210H86V152a2,2,0,0,1,2-2h80a2,2,0,0,1,2,2Zm40-2a2,2,0,0,1-2,2H182V152a14,14,0,0,0-14-14H88a14,14,0,0,0-14,14v58H48a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H172.69a2,2,0,0,1,1.41.58L209.42,81.9a2,2,0,0,1,.58,1.41ZM158,72a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h56A6,6,0,0,1,158,72Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM168,208H88V152h80Zm40,0H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216.49,74.83,181.17,39.51A11.93,11.93,0,0,0,172.69,36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V83.31A11.93,11.93,0,0,0,216.49,74.83ZM172,212H84V152a4,4,0,0,1,4-4h80a4,4,0,0,1,4,4Zm40-4a4,4,0,0,1-4,4H180V152a12,12,0,0,0-12-12H88a12,12,0,0,0-12,12v60H48a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H172.69a4,4,0,0,1,2.82,1.17l35.32,35.32A4,4,0,0,1,212,83.31ZM156,72a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h56A4,4,0,0,1,156,72Z`}))]]),pte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,68H132L105.33,48a20.12,20.12,0,0,0-12-4H40A20,20,0,0,0,20,64V200a20,20,0,0,0,20,20H216.89A19.13,19.13,0,0,0,236,200.89V88A20,20,0,0,0,216,68Zm-4,128H44V68H92l28.8,21.6A12,12,0,0,0,128,92h84Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,88V200.89a7.11,7.11,0,0,1-7.11,7.11H40a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H93.33a8,8,0,0,1,4.8,1.6L128,80h88A8,8,0,0,1,224,88Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M216,72H130.67L102.93,51.2a16.12,16.12,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V200a16,16,0,0,0,16,16H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72Zm0,128H40V64H93.33L123.2,86.4A8,8,0,0,0,128,88h88Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,88V200.89A15.13,15.13,0,0,1,216.89,216H40a16,16,0,0,1-16-16V64A16,16,0,0,1,40,48H93.33a16.12,16.12,0,0,1,9.6,3.2L130.67,72H216A16,16,0,0,1,232,88Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,74H130L101.73,52.8a14,14,0,0,0-8.4-2.8H40A14,14,0,0,0,26,64V200a14,14,0,0,0,14,14H216.89A13.12,13.12,0,0,0,230,200.89V88A14,14,0,0,0,216,74Zm2,126.89a1.11,1.11,0,0,1-1.11,1.11H40a2,2,0,0,1-2-2V64a2,2,0,0,1,2-2H93.33a2,2,0,0,1,1.2.4L124.4,84.8A6,6,0,0,0,128,86h88a2,2,0,0,1,2,2Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,72H130.67L102.93,51.2a16.12,16.12,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V200a16,16,0,0,0,16,16H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72Zm0,128H40V64H93.33L123.2,86.4A8,8,0,0,0,128,88h88Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,76H129.33l-28.8-21.6a12.05,12.05,0,0,0-7.2-2.4H40A12,12,0,0,0,28,64V200a12,12,0,0,0,12,12H216.89A11.12,11.12,0,0,0,228,200.89V88A12,12,0,0,0,216,76Zm4,124.89a3.12,3.12,0,0,1-3.11,3.11H40a4,4,0,0,1-4-4V64a4,4,0,0,1,4-4H93.33a4,4,0,0,1,2.4.8L125.6,83.2a4,4,0,0,0,2.4.8h88a4,4,0,0,1,4,4Z`}))]]),mte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M209.88,69.83A115.19,115.19,0,0,0,128,36h-.41C63.85,36.22,12,88.76,12,153.13V176a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V152A115.25,115.25,0,0,0,209.88,69.83ZM220,172H127.32l46.44-65A12,12,0,1,0,154.24,93L97.82,172H36V153.13c0-1.72,0-3.43.14-5.13H56a12,12,0,0,0,0-24H40.62c10.91-33.39,40-58.52,75.38-63.21V80a12,12,0,0,0,24,0V60.8A92,92,0,0,1,215.66,124H200a12,12,0,0,0,0,24h19.9c.06,1.33.1,2.66.1,4Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,152v24a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V153.13C24,95.65,70.15,48.2,127.63,48A104,104,0,0,1,232,152Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M207.06,72.67A111.24,111.24,0,0,0,128,40h-.4C66.07,40.21,16,91,16,153.13V176a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V152A111.25,111.25,0,0,0,207.06,72.67ZM224,176H119.71l54.76-75.3a8,8,0,0,0-12.94-9.42L99.92,176H32V153.13c0-3.08.15-6.12.43-9.13H56a8,8,0,0,0,0-16H35.27c10.32-38.86,44-68.24,84.73-71.66V80a8,8,0,0,0,16,0V56.33A96.14,96.14,0,0,1,221,128H200a8,8,0,0,0,0,16h23.67c.21,2.65.33,5.31.33,8Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M240,152v24a16,16,0,0,1-16,16H115.93a4,4,0,0,1-3.24-6.35L174.27,101a8.21,8.21,0,0,0-1.37-11.3,8,8,0,0,0-11.37,1.61l-72,99.06A4,4,0,0,1,86.25,192H32a16,16,0,0,1-16-16V153.13c0-1.79,0-3.57.13-5.33a4,4,0,0,1,4-3.8H48a8,8,0,0,0,8-8.53A8.17,8.17,0,0,0,47.73,128H23.92a4,4,0,0,1-3.87-5c12-43.84,49.66-77.13,95.52-82.28a4,4,0,0,1,4.43,4V72a8,8,0,0,0,8.53,8A8.17,8.17,0,0,0,136,71.73V44.67a4,4,0,0,1,4.43-4A112.18,112.18,0,0,1,236.23,123a4,4,0,0,1-3.88,5H208.27a8.17,8.17,0,0,0-8.25,7.47,8,8,0,0,0,8,8.53h27.92a4,4,0,0,1,4,3.86C240,149.23,240,150.61,240,152Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M205.65,74.08A109.26,109.26,0,0,0,128,42h-.39C67.17,42.21,18,92.06,18,153.13V176a14,14,0,0,0,14,14H224a14,14,0,0,0,14-14V152A109.3,109.3,0,0,0,205.65,74.08ZM226,176a2,2,0,0,1-2,2H115.78l57.07-78.47a6,6,0,0,0-9.7-7.06L100.94,178H32a2,2,0,0,1-2-2V153.13A102.36,102.36,0,0,1,30.62,142H56a6,6,0,0,0,0-12H32.71C42.6,88.4,78.53,56.86,122,54.19V80a6,6,0,0,0,12,0V54.19A98.05,98.05,0,0,1,223.53,130H200a6,6,0,0,0,0,12h25.5c.33,3.3.5,6.64.5,10Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M207.06,72.67A111.24,111.24,0,0,0,128,40h-.4C66.07,40.21,16,91,16,153.13V176a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V152A111.25,111.25,0,0,0,207.06,72.67ZM224,176H119.71l54.76-75.3a8,8,0,0,0-12.94-9.42L99.92,176H32V153.13c0-3.08.15-6.12.43-9.13H56a8,8,0,0,0,0-16H35.27c10.32-38.86,44-68.24,84.73-71.66V80a8,8,0,0,0,16,0V56.33A96.14,96.14,0,0,1,221,128H200a8,8,0,0,0,0,16h23.67c.21,2.65.33,5.31.33,8Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M204.23,75.5A107.37,107.37,0,0,0,127.62,44C68.28,44.21,20,93.16,20,153.13V176a12,12,0,0,0,12,12H224a12,12,0,0,0,12-12V152A107.25,107.25,0,0,0,204.23,75.5ZM228,176a4,4,0,0,1-4,4H111.85l59.38-81.65a4,4,0,1,0-6.46-4.7L102,180H32a4,4,0,0,1-4-4V153.13A103.42,103.42,0,0,1,28.84,140H56a4,4,0,0,0,0-8H30.21C39.59,87.66,77.84,53.93,124,52.09V80a4,4,0,0,0,8,0V52.08A100.08,100.08,0,0,1,226,132H200a4,4,0,0,0,0,8h27.29a101.6,101.6,0,0,1,.71,12Z`}))]]),hte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M236,64a36,36,0,1,0-48,33.94V112a4,4,0,0,1-4,4H96a27.8,27.8,0,0,0-4,.29V97.94a36,36,0,1,0-24,0v60.12a36,36,0,1,0,24,0V144a4,4,0,0,1,4-4h88a28,28,0,0,0,28-28V97.94A36.07,36.07,0,0,0,236,64ZM80,52A12,12,0,1,1,68,64,12,12,0,0,1,80,52Zm0,152a12,12,0,1,1,12-12A12,12,0,0,1,80,204ZM200,76a12,12,0,1,1,12-12A12,12,0,0,1,200,76Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,64a24,24,0,1,1-24-24A24,24,0,0,1,224,64Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M232,64a32,32,0,1,0-40,31v17a8,8,0,0,1-8,8H96a23.84,23.84,0,0,0-8,1.38V95a32,32,0,1,0-16,0v66a32,32,0,1,0,16,0V144a8,8,0,0,1,8-8h88a24,24,0,0,0,24-24V95A32.06,32.06,0,0,0,232,64ZM64,64A16,16,0,1,1,80,80,16,16,0,0,1,64,64ZM96,192a16,16,0,1,1-16-16A16,16,0,0,1,96,192ZM200,80a16,16,0,1,1,16-16A16,16,0,0,1,200,80Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,64a32,32,0,1,0-40,31v17a8,8,0,0,1-8,8H96a23.84,23.84,0,0,0-8,1.38V95a32,32,0,1,0-16,0v66a32,32,0,1,0,16,0V144a8,8,0,0,1,8-8h88a24,24,0,0,0,24-24V95A32.06,32.06,0,0,0,232,64ZM64,64A16,16,0,1,1,80,80,16,16,0,0,1,64,64ZM96,192a16,16,0,1,1-16-16A16,16,0,0,1,96,192Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M230,64a30,30,0,1,0-36,29.4V112a10,10,0,0,1-10,10H96a21.84,21.84,0,0,0-10,2.42v-31a30,30,0,1,0-12,0v69.2a30,30,0,1,0,12,0V144a10,10,0,0,1,10-10h88a22,22,0,0,0,22-22V93.4A30.05,30.05,0,0,0,230,64ZM62,64A18,18,0,1,1,80,82,18,18,0,0,1,62,64ZM98,192a18,18,0,1,1-18-18A18,18,0,0,1,98,192ZM200,82a18,18,0,1,1,18-18A18,18,0,0,1,200,82Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,64a32,32,0,1,0-40,31v17a8,8,0,0,1-8,8H96a23.84,23.84,0,0,0-8,1.38V95a32,32,0,1,0-16,0v66a32,32,0,1,0,16,0V144a8,8,0,0,1,8-8h88a24,24,0,0,0,24-24V95A32.06,32.06,0,0,0,232,64ZM64,64A16,16,0,1,1,80,80,16,16,0,0,1,64,64ZM96,192a16,16,0,1,1-16-16A16,16,0,0,1,96,192ZM200,80a16,16,0,1,1,16-16A16,16,0,0,1,200,80Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M228,64a28,28,0,1,0-32,27.71V112a12,12,0,0,1-12,12H96a19.91,19.91,0,0,0-12,4V91.71a28,28,0,1,0-8,0v72.58a28,28,0,1,0,8,0V144a12,12,0,0,1,12-12h88a20,20,0,0,0,20-20V91.71A28,28,0,0,0,228,64ZM60,64A20,20,0,1,1,80,84,20,20,0,0,1,60,64Zm40,128a20,20,0,1,1-20-20A20,20,0,0,1,100,192ZM200,84a20,20,0,1,1,20-20A20,20,0,0,1,200,84Z`}))]]),gte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M212.62,75.17A63.7,63.7,0,0,0,206.39,26,12,12,0,0,0,196,20a63.71,63.71,0,0,0-50,24H126A63.71,63.71,0,0,0,76,20a12,12,0,0,0-10.39,6,63.7,63.7,0,0,0-6.23,49.17A61.5,61.5,0,0,0,52,104v8a60.1,60.1,0,0,0,45.76,58.28A43.66,43.66,0,0,0,92,192v4H76a20,20,0,0,1-20-20,44.05,44.05,0,0,0-44-44,12,12,0,0,0,0,24,20,20,0,0,1,20,20,44.05,44.05,0,0,0,44,44H92v12a12,12,0,0,0,24,0V192a20,20,0,0,1,40,0v40a12,12,0,0,0,24,0V192a43.66,43.66,0,0,0-5.76-21.72A60.1,60.1,0,0,0,220,112v-8A61.5,61.5,0,0,0,212.62,75.17ZM196,112a36,36,0,0,1-36,36H112a36,36,0,0,1-36-36v-8a37.87,37.87,0,0,1,6.13-20.12,11.65,11.65,0,0,0,1.58-11.49,39.9,39.9,0,0,1-.4-27.72,39.87,39.87,0,0,1,26.41,17.8A12,12,0,0,0,119.82,68h32.35a12,12,0,0,0,10.11-5.53,39.84,39.84,0,0,1,26.41-17.8,39.9,39.9,0,0,1-.4,27.72,12,12,0,0,0,1.61,11.53A37.85,37.85,0,0,1,196,104Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,104v8a48,48,0,0,1-48,48H136a32,32,0,0,1,32,32v40H104V192a32,32,0,0,1,32-32H112a48,48,0,0,1-48-48v-8a49.28,49.28,0,0,1,8.51-27.3A51.92,51.92,0,0,1,76,32a52,52,0,0,1,43.83,24h32.34A52,52,0,0,1,196,32a51.92,51.92,0,0,1,3.49,44.7A49.28,49.28,0,0,1,208,104Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M208.3,75.68A59.74,59.74,0,0,0,202.93,28,8,8,0,0,0,196,24a59.75,59.75,0,0,0-48,24H124A59.75,59.75,0,0,0,76,24a8,8,0,0,0-6.93,4,59.78,59.78,0,0,0-5.38,47.68A58.14,58.14,0,0,0,56,104v8a56.06,56.06,0,0,0,48.44,55.47A39.8,39.8,0,0,0,96,192v8H72a24,24,0,0,1-24-24A40,40,0,0,0,8,136a8,8,0,0,0,0,16,24,24,0,0,1,24,24,40,40,0,0,0,40,40H96v16a8,8,0,0,0,16,0V192a24,24,0,0,1,48,0v40a8,8,0,0,0,16,0V192a39.8,39.8,0,0,0-8.44-24.53A56.06,56.06,0,0,0,216,112v-8A58,58,0,0,0,208.3,75.68ZM200,112a40,40,0,0,1-40,40H112a40,40,0,0,1-40-40v-8a41.74,41.74,0,0,1,6.9-22.48A8,8,0,0,0,80,73.83a43.81,43.81,0,0,1,.79-33.58,43.88,43.88,0,0,1,32.32,20.06A8,8,0,0,0,119.82,64h32.35a8,8,0,0,0,6.74-3.69,43.87,43.87,0,0,1,32.32-20.06A43.81,43.81,0,0,1,192,73.83a8.09,8.09,0,0,0,1,7.65A41.76,41.76,0,0,1,200,104Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,104v8a56.06,56.06,0,0,1-48.44,55.47A39.8,39.8,0,0,1,176,192v40a8,8,0,0,1-8,8H104a8,8,0,0,1-8-8V216H72a40,40,0,0,1-40-40A24,24,0,0,0,8,152a8,8,0,0,1,0-16,40,40,0,0,1,40,40,24,24,0,0,0,24,24H96v-8a39.8,39.8,0,0,1,8.44-24.53A56.06,56.06,0,0,1,56,112v-8a58.14,58.14,0,0,1,7.69-28.32A59.78,59.78,0,0,1,69.07,28,8,8,0,0,1,76,24a59.75,59.75,0,0,1,48,24h24a59.75,59.75,0,0,1,48-24,8,8,0,0,1,6.93,4,59.74,59.74,0,0,1,5.37,47.68A58,58,0,0,1,216,104Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M206.13,75.92A57.79,57.79,0,0,0,201.2,29a6,6,0,0,0-5.2-3,57.77,57.77,0,0,0-47,24H123A57.77,57.77,0,0,0,76,26a6,6,0,0,0-5.2,3,57.79,57.79,0,0,0-4.93,46.92A55.88,55.88,0,0,0,58,104v8a54.06,54.06,0,0,0,50.45,53.87A37.85,37.85,0,0,0,98,192v10H72a26,26,0,0,1-26-26A38,38,0,0,0,8,138a6,6,0,0,0,0,12,26,26,0,0,1,26,26,38,38,0,0,0,38,38H98v18a6,6,0,0,0,12,0V192a26,26,0,0,1,52,0v40a6,6,0,0,0,12,0V192a37.85,37.85,0,0,0-10.45-26.13A54.06,54.06,0,0,0,214,112v-8A55.88,55.88,0,0,0,206.13,75.92ZM202,112a42,42,0,0,1-42,42H112a42,42,0,0,1-42-42v-8a43.86,43.86,0,0,1,7.3-23.69,6,6,0,0,0,.81-5.76,45.85,45.85,0,0,1,1.43-36.42,45.85,45.85,0,0,1,35.23,21.1A6,6,0,0,0,119.83,62h32.34a6,6,0,0,0,5.06-2.76,45.83,45.83,0,0,1,35.23-21.11,45.85,45.85,0,0,1,1.43,36.42,6,6,0,0,0,.79,5.74A43.78,43.78,0,0,1,202,104Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208.31,75.68A59.78,59.78,0,0,0,202.93,28,8,8,0,0,0,196,24a59.75,59.75,0,0,0-48,24H124A59.75,59.75,0,0,0,76,24a8,8,0,0,0-6.93,4,59.78,59.78,0,0,0-5.38,47.68A58.14,58.14,0,0,0,56,104v8a56.06,56.06,0,0,0,48.44,55.47A39.8,39.8,0,0,0,96,192v8H72a24,24,0,0,1-24-24A40,40,0,0,0,8,136a8,8,0,0,0,0,16,24,24,0,0,1,24,24,40,40,0,0,0,40,40H96v16a8,8,0,0,0,16,0V192a24,24,0,0,1,48,0v40a8,8,0,0,0,16,0V192a39.8,39.8,0,0,0-8.44-24.53A56.06,56.06,0,0,0,216,112v-8A58.14,58.14,0,0,0,208.31,75.68ZM200,112a40,40,0,0,1-40,40H112a40,40,0,0,1-40-40v-8a41.74,41.74,0,0,1,6.9-22.48A8,8,0,0,0,80,73.83a43.81,43.81,0,0,1,.79-33.58,43.88,43.88,0,0,1,32.32,20.06A8,8,0,0,0,119.82,64h32.35a8,8,0,0,0,6.74-3.69,43.87,43.87,0,0,1,32.32-20.06A43.81,43.81,0,0,1,192,73.83a8.09,8.09,0,0,0,1,7.65A41.72,41.72,0,0,1,200,104Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M203.94,76.16A55.73,55.73,0,0,0,199.46,30,4,4,0,0,0,196,28a55.78,55.78,0,0,0-46,24H122A55.78,55.78,0,0,0,76,28a4,4,0,0,0-3.46,2,55.73,55.73,0,0,0-4.48,46.16A53.78,53.78,0,0,0,60,104v8a52.06,52.06,0,0,0,52,52h1.41A36,36,0,0,0,100,192v12H72a28,28,0,0,1-28-28A36,36,0,0,0,8,140a4,4,0,0,0,0,8,28,28,0,0,1,28,28,36,36,0,0,0,36,36h28v20a4,4,0,0,0,8,0V192a28,28,0,0,1,56,0v40a4,4,0,0,0,8,0V192a36,36,0,0,0-13.41-28H160a52.06,52.06,0,0,0,52-52v-8A53.78,53.78,0,0,0,203.94,76.16ZM204,112a44.05,44.05,0,0,1-44,44H112a44.05,44.05,0,0,1-44-44v-8a45.76,45.76,0,0,1,7.71-24.89,4,4,0,0,0,.53-3.84,47.82,47.82,0,0,1,2.1-39.21,47.8,47.8,0,0,1,38.12,22.1A4,4,0,0,0,119.83,60h32.34a4,4,0,0,0,3.37-1.84,47.8,47.8,0,0,1,38.12-22.1,47.82,47.82,0,0,1,2.1,39.21,4,4,0,0,0,.53,3.83A45.85,45.85,0,0,1,204,104Z`}))]]),_te=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M188,84a32,32,0,0,0-8,1V60a32,32,0,0,0-43.21-30A32,32,0,0,0,76,44v1A32,32,0,0,0,36,76v76a92,92,0,0,0,184,0V116A32,32,0,0,0,188,84Zm8,68a68,68,0,0,1-136,0V76a8,8,0,0,1,16,0v40a12,12,0,0,0,24,0V44a8,8,0,0,1,16,0v64a12,12,0,0,0,24,0V60a8,8,0,0,1,16,0v65.4A52.09,52.09,0,0,0,116,176a12,12,0,0,0,24,0,28,28,0,0,1,28-28,12,12,0,0,0,12-12V116a8,8,0,0,1,16,0Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,116v36a80,80,0,0,1-160,0V76a20,20,0,0,1,40,0V44a20,20,0,0,1,40,0V60a20,20,0,0,1,40,0v56a20,20,0,0,1,40,0Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M188,88a27.75,27.75,0,0,0-12,2.71V60a28,28,0,0,0-41.36-24.6A28,28,0,0,0,80,44v6.71A27.75,27.75,0,0,0,68,48,28,28,0,0,0,40,76v76a88,88,0,0,0,176,0V116A28,28,0,0,0,188,88Zm12,64a72,72,0,0,1-144,0V76a12,12,0,0,1,24,0v44a8,8,0,0,0,16,0V44a12,12,0,0,1,24,0v68a8,8,0,0,0,16,0V60a12,12,0,0,1,24,0v68.67A48.08,48.08,0,0,0,120,176a8,8,0,0,0,16,0,32,32,0,0,1,32-32,8,8,0,0,0,8-8V116a12,12,0,0,1,24,0Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,104v48a88,88,0,0,1-176,0V64a16,16,0,0,1,32,0v56a8,8,0,0,0,16,0V32a16,16,0,0,1,32,0v80a8,8,0,0,0,16,0V48a16,16,0,0,1,32,0v80.67A48.08,48.08,0,0,0,128,176a8,8,0,0,0,16,0,32,32,0,0,1,32-32,8,8,0,0,0,8-8V104a16,16,0,0,1,32,0Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M188,90a25.8,25.8,0,0,0-14,4.11V60a26,26,0,0,0-40.59-21.51A26,26,0,0,0,82,44V54.11A26,26,0,0,0,42,76v76a86,86,0,0,0,172,0V116A26,26,0,0,0,188,90Zm14,62a74,74,0,0,1-148,0V76a14,14,0,0,1,28,0v44a6,6,0,0,0,12,0V44a14,14,0,0,1,28,0v68a6,6,0,0,0,12,0V60a14,14,0,0,1,28,0v70.39A46.07,46.07,0,0,0,122,176a6,6,0,0,0,12,0,34,34,0,0,1,34-34,6,6,0,0,0,6-6V116a14,14,0,0,1,28,0Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M188,88a27.75,27.75,0,0,0-12,2.71V60a28,28,0,0,0-41.36-24.6A28,28,0,0,0,80,44v6.71A27.75,27.75,0,0,0,68,48,28,28,0,0,0,40,76v76a88,88,0,0,0,176,0V116A28,28,0,0,0,188,88Zm12,64a72,72,0,0,1-144,0V76a12,12,0,0,1,24,0v44a8,8,0,0,0,16,0V44a12,12,0,0,1,24,0v68a8,8,0,0,0,16,0V60a12,12,0,0,1,24,0v68.67A48.08,48.08,0,0,0,120,176a8,8,0,0,0,16,0,32,32,0,0,1,32-32,8,8,0,0,0,8-8V116a12,12,0,0,1,24,0Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M188,92a23.9,23.9,0,0,0-16,6.13V60a24,24,0,0,0-40.07-17.8A24,24,0,0,0,84,44V58.13A24,24,0,0,0,44,76v76a84,84,0,0,0,168,0V116A24,24,0,0,0,188,92Zm16,60a76,76,0,0,1-152,0V76a16,16,0,0,1,32,0v44a4,4,0,0,0,8,0V44a16,16,0,0,1,32,0v68a4,4,0,0,0,8,0V60a16,16,0,0,1,32,0v72.18A44.06,44.06,0,0,0,124,176a4,4,0,0,0,8,0,36,36,0,0,1,36-36,4,4,0,0,0,4-4V116a16,16,0,0,1,32,0Z`}))]]),vte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M184.63,23.14a12,12,0,0,1,15-8A72.34,72.34,0,0,1,228.4,32a12,12,0,0,1-16.58,17.35,48.31,48.31,0,0,0-19.2-11.2A12,12,0,0,1,184.63,23.14ZM232.85,167.8A92,92,0,0,1,64.31,190l-40-69.32A32,32,0,0,1,36,77a31.72,31.72,0,0,1,7.54-3.14A32,32,0,0,1,88.65,32.45a32,32,0,0,1,53,3.55l14.53,25.17A32,32,0,0,1,206.35,68l17.31,30A91.38,91.38,0,0,1,232.85,167.8Zm-30-57.81L185.57,80a8,8,0,0,0-13.86,8h0l6.68,11.57a12,12,0,0,1-3.18,15.59,28,28,0,0,0-6.41,38.1,12,12,0,1,1-19.86,13.46,52.05,52.05,0,0,1,3.9-63.4L120.9,48A8,8,0,0,0,107,56l24.25,42a12,12,0,1,1-20.78,12L79.33,56a8,8,0,0,0-13.85,8L99,122a12,12,0,0,1-20.78,12L58.93,100.67a8,8,0,1,0-13.85,8L85.1,178a68,68,0,0,0,117.78-68ZM50.46,198a12,12,0,1,0-20.78,12,132.79,132.79,0,0,0,20,26.38,12,12,0,1,0,17.17-16.76A109.2,109.2,0,0,1,50.46,198Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M184,213.27A80,80,0,0,1,74.7,184l-40-69.32a20,20,0,0,1,34.64-20L55.08,70A20,20,0,0,1,89.73,50l6.92,12h0a20,20,0,0,1,34.64-20l30,52A20,20,0,0,1,196,74l17.31,30A80,80,0,0,1,184,213.27Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M220.17,100,202.86,70a28,28,0,0,0-38.24-10.25,27.69,27.69,0,0,0-9,8.34L138.2,38a28,28,0,0,0-48.48,0A28,28,0,0,0,48.15,74l1.59,2.76A27.67,27.67,0,0,0,38,80.41a28,28,0,0,0-10.24,38.25l40,69.32a87.47,87.47,0,0,0,53.43,41,88.56,88.56,0,0,0,22.92,3,88,88,0,0,0,76.06-132Zm-6.66,62.64A72,72,0,0,1,81.62,180l-40-69.32a12,12,0,0,1,20.78-12L81.63,132a8,8,0,1,0,13.85-8L62,66A12,12,0,1,1,82.78,54L114,108a8,8,0,1,0,13.85-8L103.57,58h0a12,12,0,1,1,20.78-12l33.42,57.9a48,48,0,0,0-5.54,60.6,8,8,0,0,0,13.24-9A32,32,0,0,1,172.78,112a8,8,0,0,0,2.13-10.4L168.23,90A12,12,0,1,1,189,78l17.31,30A71.56,71.56,0,0,1,213.51,162.62ZM184.25,31.71A8,8,0,0,1,194,26a59.62,59.62,0,0,1,36.53,28l.33.57a8,8,0,1,1-13.85,8l-.33-.57a43.67,43.67,0,0,0-26.8-20.5A8,8,0,0,1,184.25,31.71ZM80.89,237a8,8,0,0,1-11.23,1.33A119.56,119.56,0,0,1,40.06,204a8,8,0,0,1,13.86-8,103.67,103.67,0,0,0,25.64,29.72A8,8,0,0,1,80.89,237Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M219.31,98.46A88,88,0,1,1,67.08,186.77h0L26.15,115.88a16,16,0,0,1,27.69-16L72.4,132a8,8,0,0,0,13.86-8L47,56A16,16,0,0,1,74.69,40L114,108a8,8,0,1,0,13.85-8l-30-52a16,16,0,0,1,27.71-16L166,102.12A48.25,48.25,0,0,0,152,136a47.59,47.59,0,0,0,9.6,28.8,8,8,0,1,0,12.79-9.61A32,32,0,0,1,181,110.26a8,8,0,0,0,2.17-10.43L171.71,80a16,16,0,0,1,27.71-16l19.89,34.46Zm-29.37-57A43.74,43.74,0,0,1,216.74,62l.33.57a8,8,0,0,0,13.86-8L230.6,54a59.64,59.64,0,0,0-36.54-28,8,8,0,0,0-4.12,15.46ZM79.58,225.72A103.58,103.58,0,0,1,53.93,196a8,8,0,0,0-13.86,8,119.56,119.56,0,0,0,29.6,34.28,8,8,0,0,0,9.91-12.56Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M218.44,101,201.13,71a26,26,0,0,0-45.58,1L136.47,39a26,26,0,0,0-46.14,2.19A26,26,0,0,0,49.88,73l3.29,5.7a26,26,0,0,0-23.69,39L69.5,187a85.44,85.44,0,0,0,52.21,40.08,86.71,86.71,0,0,0,22.4,3,86,86,0,0,0,74.33-129Zm-3,62.16A74,74,0,0,1,79.89,181l-40-69.32a14,14,0,0,1,24.25-14L83.36,131a6,6,0,0,0,10.39-6L60.27,67A14,14,0,1,1,84.52,53l31.17,54a6,6,0,0,0,5.2,3,5.9,5.9,0,0,0,3-.81,6,6,0,0,0,2.2-8.2L101.83,59a14,14,0,0,1,24.25-14l34.2,59.23a46,46,0,0,0-6.4,59.13,6,6,0,0,0,9.94-6.73,34,34,0,0,1,7.76-46.26,6,6,0,0,0,1.6-7.8L166.49,91a14,14,0,1,1,24.25-14l17.31,30A73.53,73.53,0,0,1,215.44,163.14ZM186.18,32.22A6,6,0,0,1,193.52,28a57.59,57.59,0,0,1,35.32,27l.33.57a6,6,0,1,1-10.39,6l-.33-.57a45.69,45.69,0,0,0-28-21.43A6,6,0,0,1,186.18,32.22ZM79.32,235.71a6,6,0,0,1-8.42,1A117.79,117.79,0,0,1,41.79,203a6,6,0,0,1,10.4-6,105.48,105.48,0,0,0,26.14,30.29A6,6,0,0,1,79.32,235.71Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M220.17,100,202.86,70a28,28,0,0,0-38.24-10.25,27.69,27.69,0,0,0-9,8.34L138.2,38a28,28,0,0,0-48.48,0A28,28,0,0,0,48.15,74l1.59,2.76A27.67,27.67,0,0,0,38,80.41a28,28,0,0,0-10.24,38.25l40,69.32a87.47,87.47,0,0,0,53.43,41,88.56,88.56,0,0,0,22.92,3,88,88,0,0,0,76.06-132Zm-6.66,62.64A72,72,0,0,1,81.62,180l-40-69.32a12,12,0,0,1,20.78-12L81.63,132a8,8,0,1,0,13.85-8L62,66A12,12,0,1,1,82.78,54L114,108a8,8,0,1,0,13.85-8L103.57,58h0a12,12,0,1,1,20.78-12l33.42,57.9a48,48,0,0,0-5.54,60.6,8,8,0,0,0,13.24-9A32,32,0,0,1,172.78,112a8,8,0,0,0,2.13-10.4L168.23,90A12,12,0,1,1,189,78l17.31,30A71.56,71.56,0,0,1,213.51,162.62ZM184.25,31.71A8,8,0,0,1,194,26a59.62,59.62,0,0,1,36.53,28l.33.57a8,8,0,1,1-13.85,8l-.33-.57a43.67,43.67,0,0,0-26.8-20.5A8,8,0,0,1,184.25,31.71ZM80.89,237a8,8,0,0,1-11.23,1.33A119.56,119.56,0,0,1,40.06,204a8,8,0,0,1,13.86-8,103.67,103.67,0,0,0,25.64,29.72A8,8,0,0,1,80.89,237Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216.71,102,199.4,72a24,24,0,0,0-43.57,4.52L134.74,40a24,24,0,0,0-43.69,4.9A24,24,0,0,0,51.61,72l5.31,9.19a24,24,0,0,0-25.71,35.47l40,69.32a83.4,83.4,0,0,0,51,39.14,84.45,84.45,0,0,0,21.88,2.9,84,84,0,0,0,72.6-126Zm.67,61.67A76,76,0,0,1,78.16,182l-40-69.32a16,16,0,0,1,27.71-16L85.09,130A4,4,0,0,0,92,126L58.54,68A16,16,0,1,1,86.25,52l31.17,54a4,4,0,1,0,6.93-4L100.1,60a16,16,0,0,1,27.72-16l35,60.63a44,44,0,0,0-7.28,57.61,4,4,0,1,0,6.62-4.49,36,36,0,0,1,8.22-49,4,4,0,0,0,1.07-5.2L164.76,92a16,16,0,1,1,27.71-16l17.31,30A75.52,75.52,0,0,1,217.38,163.65ZM188.12,32.74A4,4,0,0,1,193,29.9,55.65,55.65,0,0,1,227.11,56l.33.58A4,4,0,0,1,226,62a4,4,0,0,1-5.47-1.46l-.33-.57A47.62,47.62,0,0,0,191,37.63,4,4,0,0,1,188.12,32.74ZM77.75,234.48A4,4,0,0,1,74.61,236a4,4,0,0,1-2.47-.86A115.55,115.55,0,0,1,43.53,202a4,4,0,1,1,6.92-4,107.72,107.72,0,0,0,26.64,30.86A4,4,0,0,1,77.75,234.48Z`}))]]),yte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,36H48A20,20,0,0,0,28,56V200a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V56A20,20,0,0,0,208,36Zm-4,24v56H52V60ZM52,196V140H204v56ZM160,88a16,16,0,1,1,16,16A16,16,0,0,1,160,88Zm32,80a16,16,0,1,1-16-16A16,16,0,0,1,192,168Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,152v48a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V152a8,8,0,0,1,8-8H208A8,8,0,0,1,216,152ZM208,48H48a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8H208a8,8,0,0,0,8-8V56A8,8,0,0,0,208,48Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M208,136H48a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V152A16,16,0,0,0,208,136Zm0,64H48V152H208v48Zm0-160H48A16,16,0,0,0,32,56v48a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V56A16,16,0,0,0,208,40Zm0,64H48V56H208v48ZM192,80a12,12,0,1,1-12-12A12,12,0,0,1,192,80Zm0,96a12,12,0,1,1-12-12A12,12,0,0,1,192,176Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,40H48A16,16,0,0,0,32,56v48a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V56A16,16,0,0,0,208,40ZM180,92a12,12,0,1,1,12-12A12,12,0,0,1,180,92Z`}),h.createElement(`path`,{d:`M208,136H48a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V152A16,16,0,0,0,208,136Zm-28,52a12,12,0,1,1,12-12A12,12,0,0,1,180,188Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,138H48a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V152A14,14,0,0,0,208,138Zm2,62a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2ZM208,42H48A14,14,0,0,0,34,56v48a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V56A14,14,0,0,0,208,42Zm2,62a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2ZM190,80a10,10,0,1,1-10-10A10,10,0,0,1,190,80Zm0,96a10,10,0,1,1-10-10A10,10,0,0,1,190,176Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,136H48a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V152A16,16,0,0,0,208,136Zm0,64H48V152H208v48Zm0-160H48A16,16,0,0,0,32,56v48a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V56A16,16,0,0,0,208,40Zm0,64H48V56H208v48ZM192,80a12,12,0,1,1-12-12A12,12,0,0,1,192,80Zm0,96a12,12,0,1,1-12-12A12,12,0,0,1,192,176Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,140H48a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V152A12,12,0,0,0,208,140Zm4,60a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4ZM208,44H48A12,12,0,0,0,36,56v48a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V56A12,12,0,0,0,208,44Zm4,60a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Zm-24,72a8,8,0,1,1-8-8A8,8,0,0,1,188,176Zm0-96a8,8,0,1,1-8-8A8,8,0,0,1,188,80Z`}))]]),bte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M204,75.64V40a20,20,0,0,0-20-20H72A20,20,0,0,0,52,40V76a20.1,20.1,0,0,0,8,16l48,36L60,164a20.1,20.1,0,0,0-8,16v36a20,20,0,0,0,20,20H184a20,20,0,0,0,20-20V180.36a20.13,20.13,0,0,0-7.94-16L147.9,128l48.16-36.4A20.13,20.13,0,0,0,204,75.64ZM180,212H76V182l52-39,52,39.33Zm0-138.35L128,113,76,74V44H180Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M188.82,82,128,128,67.2,82.4A8,8,0,0,1,64,76V40a8,8,0,0,1,8-8H184a8,8,0,0,1,8,8V75.64A8,8,0,0,1,188.82,82ZM64,180v36a8,8,0,0,0,8,8H184a8,8,0,0,0,8-8V180.36a8,8,0,0,0-3.18-6.38L128,128,67.2,173.6A8,8,0,0,0,64,180Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M200,75.64V40a16,16,0,0,0-16-16H72A16,16,0,0,0,56,40V76a16.07,16.07,0,0,0,6.4,12.8L114.67,128,62.4,167.2A16.07,16.07,0,0,0,56,180v36a16,16,0,0,0,16,16H184a16,16,0,0,0,16-16V180.36a16.09,16.09,0,0,0-6.35-12.77L141.27,128l52.38-39.59A16.09,16.09,0,0,0,200,75.64ZM184,216H72V180l56-42,56,42.35Zm0-140.36L128,118,72,76V40H184Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M200,75.64V40a16,16,0,0,0-16-16H72A16,16,0,0,0,56,40V76a16.08,16.08,0,0,0,6.41,12.8L114.67,128,62.4,167.2A16.07,16.07,0,0,0,56,180v36a16,16,0,0,0,16,16H184a16,16,0,0,0,16-16V180.36a16,16,0,0,0-6.36-12.77L141.26,128l52.38-39.59A16.05,16.05,0,0,0,200,75.64Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M198,75.64V40a14,14,0,0,0-14-14H72A14,14,0,0,0,58,40V76a14.06,14.06,0,0,0,5.6,11.2L118,128,63.6,168.8A14.06,14.06,0,0,0,58,180v36a14,14,0,0,0,14,14H184a14,14,0,0,0,14-14V180.36a14.08,14.08,0,0,0-5.56-11.17L138,128l54.49-41.19A14.08,14.08,0,0,0,198,75.64ZM186,180.36V216a2,2,0,0,1-2,2H72a2,2,0,0,1-2-2V180a2,2,0,0,1,.8-1.6L128,135.51l57.22,43.25A2,2,0,0,1,186,180.36Zm0-104.72a2,2,0,0,1-.79,1.6L128,120.49,70.8,77.6A2,2,0,0,1,70,76V40a2,2,0,0,1,2-2H184a2,2,0,0,1,2,2Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M200,75.64V40a16,16,0,0,0-16-16H72A16,16,0,0,0,56,40V76a16.07,16.07,0,0,0,6.4,12.8L114.67,128,62.4,167.2A16.07,16.07,0,0,0,56,180v36a16,16,0,0,0,16,16H184a16,16,0,0,0,16-16V180.36a16.09,16.09,0,0,0-6.35-12.77L141.27,128l52.38-39.6A16.05,16.05,0,0,0,200,75.64ZM184,216H72V180l56-42,56,42.35Zm0-140.36L128,118,72,76V40H184Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M196,75.64V40a12,12,0,0,0-12-12H72A12,12,0,0,0,60,40V76a12,12,0,0,0,4.8,9.6L121.33,128,64.8,170.4A12,12,0,0,0,60,180v36a12,12,0,0,0,12,12H184a12,12,0,0,0,12-12V180.36a12.05,12.05,0,0,0-4.76-9.57L134.63,128l56.61-42.79A12.05,12.05,0,0,0,196,75.64Zm-8,104.72V216a4,4,0,0,1-4,4H72a4,4,0,0,1-4-4V180a4,4,0,0,1,1.6-3.2L128,133l58.42,44.16A4,4,0,0,1,188,180.36Zm0-104.72a4,4,0,0,1-1.59,3.19L128,123,69.6,79.2A4,4,0,0,1,68,76V40a4,4,0,0,1,4-4H184a4,4,0,0,1,4,4Z`}))]]),xte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z`}))]]),Ste=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,156h-4V72a28,28,0,0,0-28-28H56A28,28,0,0,0,28,72v84H24a12,12,0,0,0-12,12v24a28,28,0,0,0,28,28H216a28,28,0,0,0,28-28V168A12,12,0,0,0,232,156ZM52,72a4,4,0,0,1,4-4H200a4,4,0,0,1,4,4v84H52ZM220,192a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V180H220ZM156,96a12,12,0,0,1-12,12H112a12,12,0,0,1,0-24h32A12,12,0,0,1,156,96Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,72V176H40V72A16,16,0,0,1,56,56H200A16,16,0,0,1,216,72Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M232,168h-8V72a24,24,0,0,0-24-24H56A24,24,0,0,0,32,72v96H24a8,8,0,0,0-8,8v16a24,24,0,0,0,24,24H216a24,24,0,0,0,24-24V176A8,8,0,0,0,232,168ZM48,72a8,8,0,0,1,8-8H200a8,8,0,0,1,8,8v96H48ZM224,192a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8v-8H224ZM152,88a8,8,0,0,1-8,8H112a8,8,0,0,1,0-16h32A8,8,0,0,1,152,88Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,168h-8V72a24,24,0,0,0-24-24H56A24,24,0,0,0,32,72v96H24a8,8,0,0,0-8,8v16a24,24,0,0,0,24,24H216a24,24,0,0,0,24-24V176A8,8,0,0,0,232,168ZM112,72h32a8,8,0,0,1,0,16H112a8,8,0,0,1,0-16ZM224,192a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8v-8H224Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,170H222V72a22,22,0,0,0-22-22H56A22,22,0,0,0,34,72v98H24a6,6,0,0,0-6,6v16a22,22,0,0,0,22,22H216a22,22,0,0,0,22-22V176A6,6,0,0,0,232,170ZM46,72A10,10,0,0,1,56,62H200a10,10,0,0,1,10,10v98H46ZM226,192a10,10,0,0,1-10,10H40a10,10,0,0,1-10-10V182H226ZM150,88a6,6,0,0,1-6,6H112a6,6,0,0,1,0-12h32A6,6,0,0,1,150,88Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,168h-8V72a24,24,0,0,0-24-24H56A24,24,0,0,0,32,72v96H24a8,8,0,0,0-8,8v16a24,24,0,0,0,24,24H216a24,24,0,0,0,24-24V176A8,8,0,0,0,232,168ZM48,72a8,8,0,0,1,8-8H200a8,8,0,0,1,8,8v96H48ZM224,192a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8v-8H224ZM152,88a8,8,0,0,1-8,8H112a8,8,0,0,1,0-16h32A8,8,0,0,1,152,88Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,172H220V72a20,20,0,0,0-20-20H56A20,20,0,0,0,36,72V172H24a4,4,0,0,0-4,4v16a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V176A4,4,0,0,0,232,172ZM44,72A12,12,0,0,1,56,60H200a12,12,0,0,1,12,12V172H44ZM228,192a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V180H228ZM148,88a4,4,0,0,1-4,4H112a4,4,0,0,1,0-8h32A4,4,0,0,1,148,88Z`}))]]),Cte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M219.71,117.38a12,12,0,0,0-7.25-8.52L161.28,88.39l10.59-70.61a12,12,0,0,0-20.64-10l-112,120a12,12,0,0,0,4.31,19.33l51.18,20.47L84.13,238.22a12,12,0,0,0,20.64,10l112-120A12,12,0,0,0,219.71,117.38ZM113.6,203.55l6.27-41.77a12,12,0,0,0-7.41-12.92L68.74,131.37,142.4,52.45l-6.27,41.77a12,12,0,0,0,7.41,12.92l43.72,17.49Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M96,240l16-80L48,136,160,16,144,96l64,24Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M215.79,118.17a8,8,0,0,0-5-5.66L153.18,90.9l14.66-73.33a8,8,0,0,0-13.69-7l-112,120a8,8,0,0,0,3,13l57.63,21.61L88.16,238.43a8,8,0,0,0,13.69,7l112-120A8,8,0,0,0,215.79,118.17ZM109.37,214l10.47-52.38a8,8,0,0,0-5-9.06L62,132.71l84.62-90.66L136.16,94.43a8,8,0,0,0,5,9.06l52.8,19.8Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M213.85,125.46l-112,120a8,8,0,0,1-13.69-7l14.66-73.33L45.19,143.49a8,8,0,0,1-3-13l112-120a8,8,0,0,1,13.69,7L153.18,90.9l57.63,21.61a8,8,0,0,1,3,12.95Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M213.84,118.63a6,6,0,0,0-3.73-4.25L150.88,92.17l15-75a6,6,0,0,0-10.27-5.27l-112,120a6,6,0,0,0,2.28,9.71l59.23,22.21-15,75a6,6,0,0,0,3.14,6.52A6.07,6.07,0,0,0,96,246a6,6,0,0,0,4.39-1.91l112-120A6,6,0,0,0,213.84,118.63ZM106,220.46l11.85-59.28a6,6,0,0,0-3.77-6.8l-55.6-20.85,91.46-98L138.12,94.82a6,6,0,0,0,3.77,6.8l55.6,20.85Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M215.79,118.17a8,8,0,0,0-5-5.66L153.18,90.9l14.66-73.33a8,8,0,0,0-13.69-7l-112,120a8,8,0,0,0,3,13l57.63,21.61L88.16,238.43a8,8,0,0,0,13.69,7l112-120A8,8,0,0,0,215.79,118.17ZM109.37,214l10.47-52.38a8,8,0,0,0-5-9.06L62,132.71l84.62-90.66L136.16,94.43a8,8,0,0,0,5,9.06l52.8,19.8Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M211.89,119.09a4,4,0,0,0-2.49-2.84l-60.81-22.8,15.33-76.67a4,4,0,0,0-6.84-3.51l-112,120a4,4,0,0,0-1,3.64,4,4,0,0,0,2.49,2.84l60.81,22.8L92.08,239.22a4,4,0,0,0,6.84,3.51l112-120A4,4,0,0,0,211.89,119.09ZM102.68,227l13.24-66.2a4,4,0,0,0-2.52-4.53L55,134.36,153.32,29l-13.24,66.2a4,4,0,0,0,2.52,4.53L201,121.64Z`}))]]),wte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z`}))]]),Tte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,52H24A20,20,0,0,0,4,72V200a12,12,0,0,0,24,0V188H48v12a12,12,0,0,0,24,0V188H92v12a12,12,0,0,0,24,0V188h24v12a12,12,0,0,0,24,0V188h20v12a12,12,0,0,0,24,0V188h20v12a12,12,0,0,0,24,0V72A20,20,0,0,0,232,52ZM28,76H228v88H28Zm92,64V100a12,12,0,0,0-12-12H56a12,12,0,0,0-12,12v40a12,12,0,0,0,12,12h52A12,12,0,0,0,120,140ZM96,128H68V112H96Zm52,24h52a12,12,0,0,0,12-12V100a12,12,0,0,0-12-12H148a12,12,0,0,0-12,12v40A12,12,0,0,0,148,152Zm12-40h28v16H160Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,64H24a8,8,0,0,0-8,8V176H240V72A8,8,0,0,0,232,64ZM112,144H48V96h64Zm96,0H144V96h64Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M232,56H24A16,16,0,0,0,8,72V200a8,8,0,0,0,16,0V184H40v16a8,8,0,0,0,16,0V184H72v16a8,8,0,0,0,16,0V184h16v16a8,8,0,0,0,16,0V184h16v16a8,8,0,0,0,16,0V184h16v16a8,8,0,0,0,16,0V184h16v16a8,8,0,0,0,16,0V184h16v16a8,8,0,0,0,16,0V72A16,16,0,0,0,232,56ZM24,72H232v96H24Zm88,80a8,8,0,0,0,8-8V96a8,8,0,0,0-8-8H48a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8ZM56,104h48v32H56Zm88,48h64a8,8,0,0,0,8-8V96a8,8,0,0,0-8-8H144a8,8,0,0,0-8,8v48A8,8,0,0,0,144,152Zm8-48h48v32H152Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,56H24A16,16,0,0,0,8,72V200a8,8,0,0,0,16,0V184H40v16a8,8,0,0,0,16,0V184H72v16a8,8,0,0,0,16,0V184h16v16a8,8,0,0,0,16,0V184h16v16a8,8,0,0,0,16,0V184h16v16a8,8,0,0,0,16,0V184h16v16a8,8,0,0,0,16,0V184h16v16a8,8,0,0,0,16,0V72A16,16,0,0,0,232,56ZM208,96v48H144V96Zm-96,0v48H48V96Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,58H24A14,14,0,0,0,10,72V200a6,6,0,0,0,12,0V182H42v18a6,6,0,0,0,12,0V182H74v18a6,6,0,0,0,12,0V182h20v18a6,6,0,0,0,12,0V182h20v18a6,6,0,0,0,12,0V182h20v18a6,6,0,0,0,12,0V182h20v18a6,6,0,0,0,12,0V182h20v18a6,6,0,0,0,12,0V72A14,14,0,0,0,232,58ZM22,72a2,2,0,0,1,2-2H232a2,2,0,0,1,2,2v98H22Zm90,78a6,6,0,0,0,6-6V96a6,6,0,0,0-6-6H48a6,6,0,0,0-6,6v48a6,6,0,0,0,6,6ZM54,102h52v36H54Zm90,48h64a6,6,0,0,0,6-6V96a6,6,0,0,0-6-6H144a6,6,0,0,0-6,6v48A6,6,0,0,0,144,150Zm6-48h52v36H150Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,56H24A16,16,0,0,0,8,72V200a8,8,0,0,0,16,0V184H40v16a8,8,0,0,0,16,0V184H72v16a8,8,0,0,0,16,0V184h16v16a8,8,0,0,0,16,0V184h16v16a8,8,0,0,0,16,0V184h16v16a8,8,0,0,0,16,0V184h16v16a8,8,0,0,0,16,0V184h16v16a8,8,0,0,0,16,0V72A16,16,0,0,0,232,56ZM24,72H232v96H24Zm88,80a8,8,0,0,0,8-8V96a8,8,0,0,0-8-8H48a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8ZM56,104h48v32H56Zm88,48h64a8,8,0,0,0,8-8V96a8,8,0,0,0-8-8H144a8,8,0,0,0-8,8v48A8,8,0,0,0,144,152Zm8-48h48v32H152Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M232,60H24A12,12,0,0,0,12,72V200a4,4,0,0,0,8,0V180H44v20a4,4,0,0,0,8,0V180H76v20a4,4,0,0,0,8,0V180h24v20a4,4,0,0,0,8,0V180h24v20a4,4,0,0,0,8,0V180h24v20a4,4,0,0,0,8,0V180h24v20a4,4,0,0,0,8,0V180h24v20a4,4,0,0,0,8,0V72A12,12,0,0,0,232,60ZM20,72a4,4,0,0,1,4-4H232a4,4,0,0,1,4,4V172H20Zm92,76a4,4,0,0,0,4-4V96a4,4,0,0,0-4-4H48a4,4,0,0,0-4,4v48a4,4,0,0,0,4,4ZM52,100h56v40H52Zm92,48h64a4,4,0,0,0,4-4V96a4,4,0,0,0-4-4H144a4,4,0,0,0-4,4v48A4,4,0,0,0,144,148Zm4-48h56v40H148Z`}))]]),Ete=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M230.14,70.54,185.46,25.85a20,20,0,0,0-28.29,0L33.86,149.17A19.85,19.85,0,0,0,28,163.31V208a20,20,0,0,0,20,20H92.69a19.86,19.86,0,0,0,14.14-5.86L230.14,98.82a20,20,0,0,0,0-28.28ZM91,204H52V165l84-84,39,39ZM192,103,153,64l18.34-18.34,39,39Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M221.66,90.34,192,120,136,64l29.66-29.66a8,8,0,0,1,11.31,0L221.66,79A8,8,0,0,1,221.66,90.34Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM192,108.68,147.31,64l24-24L216,84.68Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M225.9,74.78,181.21,30.09a14,14,0,0,0-19.8,0L38.1,153.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H92.69a13.94,13.94,0,0,0,9.9-4.1L225.9,94.58a14,14,0,0,0,0-19.8ZM94.1,209.41a2,2,0,0,1-1.41.59H48a2,2,0,0,1-2-2V163.31a2,2,0,0,1,.59-1.41L136,72.48,183.51,120ZM217.41,86.1,192,111.51,144.49,64,169.9,38.58a2,2,0,0,1,2.83,0l44.68,44.69a2,2,0,0,1,0,2.83Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L133.17,61.17h0L39.52,154.83A11.9,11.9,0,0,0,36,163.31V208a12,12,0,0,0,12,12H92.69a12,12,0,0,0,8.48-3.51L224.48,93.17a12,12,0,0,0,0-17Zm-129,134.63A4,4,0,0,1,92.69,212H48a4,4,0,0,1-4-4V163.31a4,4,0,0,1,1.17-2.83L136,69.65,186.34,120ZM218.83,87.51,192,114.34,141.66,64l26.82-26.83a4,4,0,0,1,5.66,0l44.69,44.68a4,4,0,0,1,0,5.66Z`}))]]),Dte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M248.59,58.67c-6.31-10.87-23-21.06-66.16-9.71A95.94,95.94,0,0,0,32,128q0,3.6.26,7.14C.56,166.86,1.1,186.4,7.44,197.33,13.4,207.61,25.3,212,40.68,212c9.79,0,21-1.78,32.95-4.91A95.94,95.94,0,0,0,224,128c0-2.41-.09-4.79-.27-7.16,14.31-14.38,23.86-28.21,27-40C253.55,70.42,251.12,63,248.59,58.67ZM128,56a72.11,72.11,0,0,1,70.19,56C184,124.73,165,138.59,141.92,151.86c-21.74,12.49-43.55,22.36-63.09,28.65A72,72,0,0,1,128,56ZM28.19,185.29c-.61-1.07-.17-8.22,10.67-21.71A95.77,95.77,0,0,0,52.35,187C35.12,189.61,28.85,186.41,28.19,185.29ZM128,200a71.66,71.66,0,0,1-22.56-3.64,394.1,394.1,0,0,0,48.42-23.69A388.11,388.11,0,0,0,198.43,143,72.12,72.12,0,0,1,128,200ZM227.57,74.65c-1.28,4.78-4.81,10.87-10.39,17.8A95.74,95.74,0,0,0,203.68,69c15.83-2.37,23.17,0,24.15,1.71C228,71,228.21,72.28,227.57,74.65Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M245.11,60.68c-7.65-13.19-27.84-16.16-58.5-8.66A95.93,95.93,0,0,0,32,128a98,98,0,0,0,.78,12.31C5.09,169,5.49,186,10.9,195.32,16,204.16,26.64,208,40.64,208a124.11,124.11,0,0,0,28.79-4A95.93,95.93,0,0,0,224,128a97.08,97.08,0,0,0-.77-12.25c12.5-13,20.82-25.35,23.65-35.92C248.83,72.51,248.24,66.07,245.11,60.68ZM128,48a80.11,80.11,0,0,1,78,62.2c-17.06,16.06-40.15,32.53-62.07,45.13C116.38,171.14,92.48,181,73.42,186.4A79.94,79.94,0,0,1,128,48ZM24.74,187.29c-1.46-2.51-.65-7.24,2.22-13a79.05,79.05,0,0,1,10.29-15.05,96,96,0,0,0,18,31.32C38,193.46,27.24,191.61,24.74,187.29ZM128,208a79.45,79.45,0,0,1-38.56-9.94,370,370,0,0,0,62.43-28.86c21.58-12.39,40.68-25.82,56.07-39.08A80.07,80.07,0,0,1,128,208ZM231.42,75.69c-1.7,6.31-6.19,13.53-12.63,21.13a95.69,95.69,0,0,0-18-31.35c14.21-2.35,27.37-2.17,30.5,3.24C232.19,70.28,232.24,72.63,231.42,75.69Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M245.11,60.68c-7.65-13.19-27.85-16.16-58.5-8.66A96,96,0,0,0,32.81,140.3C5.09,169,5.49,186,10.9,195.32,16,204.16,26.64,208,40.64,208a124.11,124.11,0,0,0,28.79-4,96,96,0,0,0,153.78-88.25c12.51-13,20.83-25.35,23.66-35.92C248.83,72.51,248.24,66.07,245.11,60.68Zm-13.69,15c-6.11,22.78-48.65,57.31-87.52,79.64-67.81,39-113.62,41.52-119.16,32-1.46-2.51-.65-7.24,2.22-13a80.06,80.06,0,0,1,10.28-15.05,95.53,95.53,0,0,0,6.23,14.18,4,4,0,0,0,4,2.12,122.14,122.14,0,0,0,16.95-3.32c21.23-5.55,46.63-16.48,71.52-30.78s47-30.66,62.45-46.15A122.74,122.74,0,0,0,209.7,82.45a4,4,0,0,0,.17-4.52,96.26,96.26,0,0,0-9.1-12.46c14.21-2.35,27.37-2.17,30.5,3.24C232.19,70.28,232.24,72.63,231.42,75.69Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M243.39,61.68c-7.24-12.48-27-15-57.24-7.49A93.92,93.92,0,0,0,34.05,128a94.5,94.5,0,0,0,.9,13c-21.86,22.38-29.56,40.78-22.29,53.32,4.5,7.76,14,11.69,27.86,11.69a116.38,116.38,0,0,0,25-3.16c1.45-.32,2.92-.68,4.41-1a93.95,93.95,0,0,0,151.19-86.89c12.65-13,21.11-25.32,23.86-35.6C246.76,72.53,246.24,66.59,243.39,61.68ZM128,46a82.12,82.12,0,0,1,80.19,64.94c-16,15.3-38.14,31.67-63.3,46.12C117.49,172.82,92.79,183,72.85,188.6A82,82,0,0,1,128,46ZM23,188.3c-3.52-6.07,2.31-18.56,15-33a94,94,0,0,0,21.07,36.62C39.42,195.74,26.39,194.08,23,188.3ZM128,210a81.41,81.41,0,0,1-43.35-12.45c20.68-6.71,43.56-17.06,66.22-30.08,22.83-13.12,43.13-27.67,59.05-41.91,0,.81.06,1.62.06,2.44A82.08,82.08,0,0,1,128,210ZM233.35,76.21c-1.88,7-7.28,15.49-15.36,24.61a93.92,93.92,0,0,0-21.1-36.7c15.82-3.05,32-3.49,36.12,3.58C234.2,69.75,234.31,72.62,233.35,76.21Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M245.11,60.68c-7.65-13.19-27.84-16.16-58.5-8.66A95.93,95.93,0,0,0,32,128a98,98,0,0,0,.78,12.31C5.09,169,5.49,186,10.9,195.32,16,204.16,26.64,208,40.64,208a124.11,124.11,0,0,0,28.79-4A95.93,95.93,0,0,0,224,128a97.08,97.08,0,0,0-.77-12.25c12.5-13,20.82-25.35,23.65-35.92C248.83,72.51,248.24,66.07,245.11,60.68ZM128,48a80.11,80.11,0,0,1,78,62.2c-17.06,16.06-40.15,32.53-62.07,45.13C116.38,171.14,92.48,181,73.42,186.4A79.94,79.94,0,0,1,128,48ZM24.74,187.29c-1.46-2.51-.65-7.24,2.22-13a79.05,79.05,0,0,1,10.29-15.05,96,96,0,0,0,18,31.32C38,193.46,27.24,191.61,24.74,187.29ZM128,208a79.45,79.45,0,0,1-38.56-9.94,370,370,0,0,0,62.43-28.86c21.58-12.39,40.68-25.82,56.07-39.08A80.07,80.07,0,0,1,128,208ZM231.42,75.69c-1.7,6.31-6.19,13.53-12.63,21.13a95.69,95.69,0,0,0-18-31.35c14.21-2.35,27.37-2.17,30.5,3.24C232.19,70.28,232.24,72.63,231.42,75.69Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M241.66,62.68c-6.73-11.58-26.58-13.8-56-6.3A92,92,0,0,0,37,141.7c-21.38,21.69-29.44,40-22.68,51.62,4.13,7.11,13,10.71,26,10.71A115.25,115.25,0,0,0,65,200.9c1.74-.39,3.52-.82,5.32-1.28A92,92,0,0,0,220,128a92.84,92.84,0,0,0-1-13.73c12.77-13,21.31-25.28,24-35.47C244.69,72.54,244.23,67.12,241.66,62.68ZM128,44a84.13,84.13,0,0,1,82.38,67.56c-16.17,15.69-38.8,32.48-64.49,47.24-27.31,15.69-52.81,26.25-73.61,32A84,84,0,0,1,128,44ZM21.25,189.3C17,182,23.75,167.7,39,151.24A92,92,0,0,0,63,193.09C40.86,198,25.47,196.58,21.25,189.3ZM128,212a83.58,83.58,0,0,1-48-15.1c21.58-6.58,45.83-17.37,69.85-31.16,24.25-13.94,45.61-29.46,61.83-44.44.18,2.21.3,4.44.3,6.7A84.1,84.1,0,0,1,128,212ZM235.28,76.73c-2.13,8-8.58,17.65-18.25,28.06a92.07,92.07,0,0,0-24.12-41.92c21.85-4.82,37.59-3.46,41.83,3.83C236.2,69.23,236.39,72.6,235.28,76.73Z`}))]]),Ote=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z`}))]]),kte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M72,104a16,16,0,1,1,16,16A16,16,0,0,1,72,104Zm96,16a16,16,0,1,0-16-16A16,16,0,0,0,168,120Zm68-40V192a36,36,0,0,1-36,36H56a36,36,0,0,1-36-36V80A36,36,0,0,1,56,44h60V16a12,12,0,0,1,24,0V44h60A36,36,0,0,1,236,80Zm-24,0a12,12,0,0,0-12-12H56A12,12,0,0,0,44,80V192a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12Zm-12,82a30,30,0,0,1-30,30H86a30,30,0,0,1,0-60h84A30,30,0,0,1,200,162Zm-80-6v12h16V156ZM86,168H96V156H86a6,6,0,0,0,0,12Zm90-6a6,6,0,0,0-6-6H160v12h10A6,6,0,0,0,176,162Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M200,56H56A24,24,0,0,0,32,80V192a24,24,0,0,0,24,24H200a24,24,0,0,0,24-24V80A24,24,0,0,0,200,56ZM164,184H92a20,20,0,0,1,0-40h72a20,20,0,0,1,0,40Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48Zm16,144a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V80A16,16,0,0,1,56,64H200a16,16,0,0,1,16,16ZM72,108a12,12,0,1,1,12,12A12,12,0,0,1,72,108Zm88,0a12,12,0,1,1,12,12A12,12,0,0,1,160,108Zm4,28H92a28,28,0,0,0,0,56h72a28,28,0,0,0,0-56Zm-24,16v24H116V152ZM80,164a12,12,0,0,1,12-12h8v24H92A12,12,0,0,1,80,164Zm84,12h-8V152h8a12,12,0,0,1,0,24Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48ZM172,96a12,12,0,1,1-12,12A12,12,0,0,1,172,96ZM96,184H80a16,16,0,0,1,0-32H96ZM84,120a12,12,0,1,1,12-12A12,12,0,0,1,84,120Zm60,64H112V152h32Zm32,0H160V152h16a16,16,0,0,1,0,32Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M200,50H134V16a6,6,0,0,0-12,0V50H56A30,30,0,0,0,26,80V192a30,30,0,0,0,30,30H200a30,30,0,0,0,30-30V80A30,30,0,0,0,200,50Zm18,142a18,18,0,0,1-18,18H56a18,18,0,0,1-18-18V80A18,18,0,0,1,56,62H200a18,18,0,0,1,18,18ZM74,108a10,10,0,1,1,10,10A10,10,0,0,1,74,108Zm88,0a10,10,0,1,1,10,10A10,10,0,0,1,162,108Zm2,30H92a26,26,0,0,0,0,52h72a26,26,0,0,0,0-52Zm-22,12v28H114V150ZM78,164a14,14,0,0,1,14-14h10v28H92A14,14,0,0,1,78,164Zm86,14H154V150h10a14,14,0,0,1,0,28Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48Zm16,144a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V80A16,16,0,0,1,56,64H200a16,16,0,0,1,16,16Zm-52-56H92a28,28,0,0,0,0,56h72a28,28,0,0,0,0-56Zm-24,16v24H116V152ZM80,164a12,12,0,0,1,12-12h8v24H92A12,12,0,0,1,80,164Zm84,12h-8V152h8a12,12,0,0,1,0,24ZM72,108a12,12,0,1,1,12,12A12,12,0,0,1,72,108Zm88,0a12,12,0,1,1,12,12A12,12,0,0,1,160,108Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M200,52H132V16a4,4,0,0,0-8,0V52H56A28,28,0,0,0,28,80V192a28,28,0,0,0,28,28H200a28,28,0,0,0,28-28V80A28,28,0,0,0,200,52Zm20,140a20,20,0,0,1-20,20H56a20,20,0,0,1-20-20V80A20,20,0,0,1,56,60H200a20,20,0,0,1,20,20ZM76,108a8,8,0,1,1,8,8A8,8,0,0,1,76,108Zm88,0a8,8,0,1,1,8,8A8,8,0,0,1,164,108Zm0,32H92a24,24,0,0,0,0,48h72a24,24,0,0,0,0-48Zm-20,8v32H112V148ZM76,164a16,16,0,0,1,16-16h12v32H92A16,16,0,0,1,76,164Zm88,16H152V148h12a16,16,0,0,1,0,32Z`}))]]),Ate=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M199,125.31l-49.88-18.39L130.69,57a19.92,19.92,0,0,0-37.38,0L74.92,106.92,25,125.31a19.92,19.92,0,0,0,0,37.38l49.88,18.39L93.31,231a19.92,19.92,0,0,0,37.38,0l18.39-49.88L199,162.69a19.92,19.92,0,0,0,0-37.38Zm-63.38,35.16a12,12,0,0,0-7.11,7.11L112,212.28l-16.47-44.7a12,12,0,0,0-7.11-7.11L43.72,144l44.7-16.47a12,12,0,0,0,7.11-7.11L112,75.72l16.47,44.7a12,12,0,0,0,7.11,7.11L180.28,144ZM140,40a12,12,0,0,1,12-12h12V16a12,12,0,0,1,24,0V28h12a12,12,0,0,1,0,24H188V64a12,12,0,0,1-24,0V52H152A12,12,0,0,1,140,40ZM252,88a12,12,0,0,1-12,12h-4v4a12,12,0,0,1-24,0v-4h-4a12,12,0,0,1,0-24h4V72a12,12,0,0,1,24,0v4h4A12,12,0,0,1,252,88Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M194.82,151.43l-55.09,20.3-20.3,55.09a7.92,7.92,0,0,1-14.86,0l-20.3-55.09-55.09-20.3a7.92,7.92,0,0,1,0-14.86l55.09-20.3,20.3-55.09a7.92,7.92,0,0,1,14.86,0l20.3,55.09,55.09,20.3A7.92,7.92,0,0,1,194.82,151.43Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,144a15.78,15.78,0,0,1-10.42,14.94L146,178l-19,51.62a15.92,15.92,0,0,1-29.88,0L78,178l-51.62-19a15.92,15.92,0,0,1,0-29.88L78,110l19-51.62a15.92,15.92,0,0,1,29.88,0L146,110l51.62,19A15.78,15.78,0,0,1,208,144ZM152,48h16V64a8,8,0,0,0,16,0V48h16a8,8,0,0,0,0-16H184V16a8,8,0,0,0-16,0V32H152a8,8,0,0,0,0,16Zm88,32h-8V72a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0V96h8a8,8,0,0,0,0-16Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M196.89,130.94,144.4,111.6,125.06,59.11a13.92,13.92,0,0,0-26.12,0L79.6,111.6,27.11,130.94a13.92,13.92,0,0,0,0,26.12L79.6,176.4l19.34,52.49a13.92,13.92,0,0,0,26.12,0L144.4,176.4l52.49-19.34a13.92,13.92,0,0,0,0-26.12Zm-4.15,14.86-55.08,20.3a6,6,0,0,0-3.56,3.56l-20.3,55.08a1.92,1.92,0,0,1-3.6,0L89.9,169.66a6,6,0,0,0-3.56-3.56L31.26,145.8a1.92,1.92,0,0,1,0-3.6l55.08-20.3a6,6,0,0,0,3.56-3.56l20.3-55.08a1.92,1.92,0,0,1,3.6,0l20.3,55.08a6,6,0,0,0,3.56,3.56l55.08,20.3a1.92,1.92,0,0,1,0,3.6ZM146,40a6,6,0,0,1,6-6h18V16a6,6,0,0,1,12,0V34h18a6,6,0,0,1,0,12H182V64a6,6,0,0,1-12,0V46H152A6,6,0,0,1,146,40ZM246,88a6,6,0,0,1-6,6H230v10a6,6,0,0,1-12,0V94H208a6,6,0,0,1,0-12h10V72a6,6,0,0,1,12,0V82h10A6,6,0,0,1,246,88Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M196.2,132.81l-53.36-19.65L123.19,59.8a11.93,11.93,0,0,0-22.38,0L81.16,113.16,27.8,132.81a11.93,11.93,0,0,0,0,22.38l53.36,19.65,19.65,53.36a11.93,11.93,0,0,0,22.38,0l19.65-53.36,53.36-19.65a11.93,11.93,0,0,0,0-22.38Zm-2.77,14.87L138.35,168a4,4,0,0,0-2.37,2.37l-20.3,55.08a3.92,3.92,0,0,1-7.36,0L88,170.35A4,4,0,0,0,85.65,168l-55.08-20.3a3.92,3.92,0,0,1,0-7.36L85.65,120A4,4,0,0,0,88,117.65l20.3-55.08a3.92,3.92,0,0,1,7.36,0L136,117.65a4,4,0,0,0,2.37,2.37l55.08,20.3a3.92,3.92,0,0,1,0,7.36ZM148,40a4,4,0,0,1,4-4h20V16a4,4,0,0,1,8,0V36h20a4,4,0,0,1,0,8H180V64a4,4,0,0,1-8,0V44H152A4,4,0,0,1,148,40Zm96,48a4,4,0,0,1-4,4H228v12a4,4,0,0,1-8,0V92H208a4,4,0,0,1,0-8h12V72a4,4,0,0,1,8,0V84h12A4,4,0,0,1,244,88Z`}))]]),jte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M100,36H56A20,20,0,0,0,36,56v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,100,36ZM96,96H60V60H96ZM200,36H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Zm-4,60H160V60h36Zm-96,40H56a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,100,136Zm-4,60H60V160H96Zm104-60H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,200,136Zm-4,60H160V160h36Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M112,56v48a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h48A8,8,0,0,1,112,56Zm88-8H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V56A8,8,0,0,0,200,48Zm-96,96H56a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,104,144Zm96,0H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,200,144Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M200,136H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48ZM104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M120,56v48a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40h48A16,16,0,0,1,120,56Zm80-16H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm-96,96H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm96,0H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M104,42H56A14,14,0,0,0,42,56v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,104,42Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm-98,34H56a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,104,138Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,200,138Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M104,44H56A12,12,0,0,0,44,56v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,104,44Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm92-60H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4ZM104,140H56a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,104,140Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm92-60H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,200,140Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Z`}))]]),Mte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M234.36,170A12,12,0,0,1,230,186.37l-96,56a12,12,0,0,1-12.1,0l-96-56a12,12,0,0,1,12.09-20.74l90,52.48L218,165.63A12,12,0,0,1,234.36,170ZM218,117.63,128,170.11,38.05,117.63A12,12,0,0,0,26,138.37l96,56a12,12,0,0,0,12.1,0l96-56A12,12,0,0,0,218,117.63ZM20,80a12,12,0,0,1,6-10.37l96-56a12.06,12.06,0,0,1,12.1,0l96,56a12,12,0,0,1,0,20.74l-96,56a12,12,0,0,1-12.1,0l-96-56A12,12,0,0,1,20,80Zm35.82,0L128,122.11,200.18,80,128,37.89Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,80l-96,56L32,80l96-56Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M230.91,172A8,8,0,0,1,228,182.91l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,36,169.09l92,53.65,92-53.65A8,8,0,0,1,230.91,172ZM220,121.09l-92,53.65L36,121.09A8,8,0,0,0,28,134.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,121.09ZM24,80a8,8,0,0,1,4-6.91l96-56a8,8,0,0,1,8.06,0l96,56a8,8,0,0,1,0,13.82l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,24,80Zm23.88,0L128,126.74,208.12,80,128,33.26Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M220,169.09l-92,53.65L36,169.09A8,8,0,0,0,28,182.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,169.09Z`}),h.createElement(`path`,{d:`M220,121.09l-92,53.65L36,121.09A8,8,0,0,0,28,134.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,121.09Z`}),h.createElement(`path`,{d:`M28,86.91l96,56a8,8,0,0,0,8.06,0l96-56a8,8,0,0,0,0-13.82l-96-56a8,8,0,0,0-8.06,0l-96,56a8,8,0,0,0,0,13.82Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M229.18,173a6,6,0,0,1-2.16,8.2l-96,56a6,6,0,0,1-6,0l-96-56a6,6,0,0,1,6-10.36l93,54.23,93-54.23A6,6,0,0,1,229.18,173ZM221,122.82l-93,54.23L35,122.82a6,6,0,0,0-6,10.36l96,56a6,6,0,0,0,6,0l96-56a6,6,0,0,0-6-10.36ZM26,80a6,6,0,0,1,3-5.18l96-56a6,6,0,0,1,6,0l96,56a6,6,0,0,1,0,10.36l-96,56a6,6,0,0,1-6,0l-96-56A6,6,0,0,1,26,80Zm17.91,0L128,129.05,212.09,80,128,31Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M230.91,172A8,8,0,0,1,228,182.91l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,36,169.09l92,53.65,92-53.65A8,8,0,0,1,230.91,172ZM220,121.09l-92,53.65L36,121.09A8,8,0,0,0,28,134.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,121.09ZM24,80a8,8,0,0,1,4-6.91l96-56a8,8,0,0,1,8.06,0l96,56a8,8,0,0,1,0,13.82l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,24,80Zm23.88,0L128,126.74,208.12,80,128,33.26Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M227.45,174a4,4,0,0,1-1.44,5.48l-96,56a4,4,0,0,1-4,0l-96-56a4,4,0,0,1,4-6.92l94,54.83,94-54.83A4,4,0,0,1,227.45,174ZM222,124.54l-94,54.83L34,124.54a4,4,0,0,0-4,6.92l96,56a4,4,0,0,0,4,0l96-56a4,4,0,0,0-4-6.92ZM28,80a4,4,0,0,1,2-3.46l96-56a4,4,0,0,1,4,0l96,56a4,4,0,0,1,0,6.92l-96,56a4,4,0,0,1-4,0l-96-56A4,4,0,0,1,28,80Zm11.94,0L128,131.37,216.06,80,128,28.63Z`}))]]),Nte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm40-112v56a12,12,0,0,1-12,12H100a12,12,0,0,1-12-12V100a12,12,0,0,1,12-12h56A12,12,0,0,1,168,100Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,32a96,96,0,1,0,96,96A96,96,0,0,0,128,32Zm32,128H96V96h64Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216ZM160,88H96a8,8,0,0,0-8,8v64a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V96A8,8,0,0,0,160,88Zm-8,64H104V104h48Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm32,132a4,4,0,0,1-4,4H100a4,4,0,0,1-4-4V100a4,4,0,0,1,4-4h56a4,4,0,0,1,4,4Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218ZM160,90H96a6,6,0,0,0-6,6v64a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V96A6,6,0,0,0,160,90Zm-6,64H102V102h52Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216ZM160,88H96a8,8,0,0,0-8,8v64a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V96A8,8,0,0,0,160,88Zm-8,64H104V104h48Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220ZM160,92H96a4,4,0,0,0-4,4v64a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V96A4,4,0,0,0,160,92Zm-4,64H100V100h56Z`}))]]),Pte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,44H32A12,12,0,0,0,20,56V192a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A12,12,0,0,0,224,44ZM44,116H76v24H44Zm56,0H212v24H100ZM212,68V92H44V68ZM44,164H76v24H44Zm56,24V164H212v24Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M88,104v96H32V104Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM40,112H80v32H40Zm56,0H216v32H96ZM216,64V96H40V64ZM40,160H80v32H40Zm176,32H96V160H216v32Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM40,112H80v32H40Zm56,0H216v32H96ZM40,160H80v32H40Zm176,32H96V160H216v32Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,50H32a6,6,0,0,0-6,6V192a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A6,6,0,0,0,224,50ZM38,110H82v36H38Zm56,0H218v36H94ZM218,62V98H38V62ZM38,192V158H82v36H40A2,2,0,0,1,38,192Zm178,2H94V158H218v34A2,2,0,0,1,216,194Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM40,112H80v32H40Zm56,0H216v32H96ZM216,64V96H40V64ZM40,160H80v32H40Zm176,32H96V160H216v32Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,52H32a4,4,0,0,0-4,4V192a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A4,4,0,0,0,224,52ZM36,108H84v40H36Zm56,0H220v40H92ZM220,60v40H36V60ZM36,192V156H84v40H40A4,4,0,0,1,36,192Zm180,4H92V156H220v36A4,4,0,0,1,216,196Z`}))]]),Fte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z`}))]]),Ite=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,28H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V48A20,20,0,0,0,208,28Zm-4,24v92H179.31a19.86,19.86,0,0,0-14.14,5.86L147,168H109L90.83,149.86A19.86,19.86,0,0,0,76.69,144H52V52ZM52,204V168H75l18.14,18.14A19.86,19.86,0,0,0,107.31,192h41.38a19.86,19.86,0,0,0,14.14-5.86L181,168h23v36Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,48V160H179.31a8,8,0,0,0-5.66,2.34l-19.31,19.32a8,8,0,0,1-5.66,2.34H107.31a8,8,0,0,1-5.66-2.34L82.34,162.34A8,8,0,0,0,76.68,160H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm0,16V152h-28.7A15.86,15.86,0,0,0,168,156.69L148.69,176H107.31L88,156.68A15.89,15.89,0,0,0,76.69,152H48V48Zm0,160H48V168H76.69L96,187.32A15.89,15.89,0,0,0,107.31,192h41.38A15.86,15.86,0,0,0,160,187.31L179.31,168H208v40Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm0,176H48V168H76.69L96,187.32A15.89,15.89,0,0,0,107.31,192h41.38A15.86,15.86,0,0,0,160,187.31L179.31,168H208v40Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,34H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V48A14,14,0,0,0,208,34ZM48,46H208a2,2,0,0,1,2,2V154H179.31a13.94,13.94,0,0,0-9.9,4.1L150.1,177.41a2,2,0,0,1-1.41.59H107.31a2,2,0,0,1-1.41-.58L86.59,158.1a13.94,13.94,0,0,0-9.9-4.1H46V48A2,2,0,0,1,48,46ZM208,210H48a2,2,0,0,1-2-2V166H76.69a2,2,0,0,1,1.41.58L97.41,185.9a13.94,13.94,0,0,0,9.9,4.1h41.38a13.94,13.94,0,0,0,9.9-4.1l19.31-19.31a2,2,0,0,1,1.41-.59H210v42A2,2,0,0,1,208,210Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm0,16V152h-28.7A15.86,15.86,0,0,0,168,156.69L148.69,176H107.31L88,156.69A15.86,15.86,0,0,0,76.69,152H48V48Zm0,160H48V168H76.69L96,187.31A15.86,15.86,0,0,0,107.31,192h41.38A15.86,15.86,0,0,0,160,187.31L179.31,168H208v40Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V48A12,12,0,0,0,208,36ZM48,44H208a4,4,0,0,1,4,4V156H179.31a12,12,0,0,0-8.48,3.51l-19.32,19.32a4,4,0,0,1-2.82,1.17H107.31a4,4,0,0,1-2.82-1.17L85.17,159.51A12,12,0,0,0,76.69,156H44V48A4,4,0,0,1,48,44ZM208,212H48a4,4,0,0,1-4-4V164H76.69a4,4,0,0,1,2.82,1.17l19.32,19.32a12,12,0,0,0,8.48,3.51h41.38a12,12,0,0,0,8.48-3.51l19.32-19.32a4,4,0,0,1,2.82-1.17H212v44A4,4,0,0,1,208,212Z`}))]]),Lte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M160,116h48a20,20,0,0,0,20-20V48a20,20,0,0,0-20-20H160a20,20,0,0,0-20,20V60H128a28,28,0,0,0-28,28v28H76v-4A20,20,0,0,0,56,92H24A20,20,0,0,0,4,112v32a20,20,0,0,0,20,20H56a20,20,0,0,0,20-20v-4h24v28a28,28,0,0,0,28,28h12v12a20,20,0,0,0,20,20h48a20,20,0,0,0,20-20V160a20,20,0,0,0-20-20H160a20,20,0,0,0-20,20v12H128a4,4,0,0,1-4-4V88a4,4,0,0,1,4-4h12V96A20,20,0,0,0,160,116ZM52,140H28V116H52Zm112,24h40v40H164Zm0-112h40V92H164Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M64,112v32a8,8,0,0,1-8,8H24a8,8,0,0,1-8-8V112a8,8,0,0,1,8-8H56A8,8,0,0,1,64,112ZM208,40H160a8,8,0,0,0-8,8V96a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V48A8,8,0,0,0,208,40Zm0,112H160a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M160,112h48a16,16,0,0,0,16-16V48a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16V64H128a24,24,0,0,0-24,24v32H72v-8A16,16,0,0,0,56,96H24A16,16,0,0,0,8,112v32a16,16,0,0,0,16,16H56a16,16,0,0,0,16-16v-8h32v32a24,24,0,0,0,24,24h16v16a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V160a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16v16H128a8,8,0,0,1-8-8V88a8,8,0,0,1,8-8h16V96A16,16,0,0,0,160,112ZM56,144H24V112H56v32Zm104,16h48v48H160Zm0-112h48V96H160Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M144,96V80H128a8,8,0,0,0-8,8v80a8,8,0,0,0,8,8h16V160a16,16,0,0,1,16-16h48a16,16,0,0,1,16,16v48a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V192H128a24,24,0,0,1-24-24V136H72v8a16,16,0,0,1-16,16H24A16,16,0,0,1,8,144V112A16,16,0,0,1,24,96H56a16,16,0,0,1,16,16v8h32V88a24,24,0,0,1,24-24h16V48a16,16,0,0,1,16-16h48a16,16,0,0,1,16,16V96a16,16,0,0,1-16,16H160A16,16,0,0,1,144,96Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M160,110h48a14,14,0,0,0,14-14V48a14,14,0,0,0-14-14H160a14,14,0,0,0-14,14V66H128a22,22,0,0,0-22,22v34H70V112A14,14,0,0,0,56,98H24a14,14,0,0,0-14,14v32a14,14,0,0,0,14,14H56a14,14,0,0,0,14-14V134h36v34a22,22,0,0,0,22,22h18v18a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V160a14,14,0,0,0-14-14H160a14,14,0,0,0-14,14v18H128a10,10,0,0,1-10-10V88a10,10,0,0,1,10-10h18V96A14,14,0,0,0,160,110ZM58,144a2,2,0,0,1-2,2H24a2,2,0,0,1-2-2V112a2,2,0,0,1,2-2H56a2,2,0,0,1,2,2Zm100,16a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2v48a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2Zm0-112a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2V96a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M160,112h48a16,16,0,0,0,16-16V48a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16V64H128a24,24,0,0,0-24,24v32H72v-8A16,16,0,0,0,56,96H24A16,16,0,0,0,8,112v32a16,16,0,0,0,16,16H56a16,16,0,0,0,16-16v-8h32v32a24,24,0,0,0,24,24h16v16a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V160a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16v16H128a8,8,0,0,1-8-8V88a8,8,0,0,1,8-8h16V96A16,16,0,0,0,160,112ZM56,144H24V112H56v32Zm104,16h48v48H160Zm0-112h48V96H160Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M160,108h48a12,12,0,0,0,12-12V48a12,12,0,0,0-12-12H160a12,12,0,0,0-12,12V68H128a20,20,0,0,0-20,20v36H68V112a12,12,0,0,0-12-12H24a12,12,0,0,0-12,12v32a12,12,0,0,0,12,12H56a12,12,0,0,0,12-12V132h40v36a20,20,0,0,0,20,20h20v20a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V160a12,12,0,0,0-12-12H160a12,12,0,0,0-12,12v20H128a12,12,0,0,1-12-12V88a12,12,0,0,1,12-12h20V96A12,12,0,0,0,160,108ZM60,144a4,4,0,0,1-4,4H24a4,4,0,0,1-4-4V112a4,4,0,0,1,4-4H56a4,4,0,0,1,4,4Zm96,16a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4v48a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4Zm0-112a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V96a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4Z`}))]]),Rte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-12-80V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm-6-82V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm-4-84V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z`}))]]),zte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z`}))]]),Bte=new Map([[`bold`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z`}))],[`duotone`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),h.createElement(`path`,{d:`M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`}))],[`fill`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`light`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z`}))],[`regular`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`}))],[`thin`,h.createElement(h.Fragment,null,h.createElement(`path`,{d:`M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z`}))]]),iv=(0,h.createContext)({color:`currentColor`,size:`1em`,weight:`regular`,mirrored:!1}),av=h.forwardRef((e,t)=>{let{alt:n,color:r,size:i,weight:a,mirrored:o,children:s,weights:c,...l}=e,{color:u=`currentColor`,size:d,weight:f=`regular`,mirrored:p=!1,...m}=h.useContext(iv);return h.createElement(`svg`,{ref:t,xmlns:`http://www.w3.org/2000/svg`,width:i??d,height:i??d,fill:r??u,viewBox:`0 0 256 256`,transform:o||p?`scale(-1, 1)`:void 0,...m,...l},!!n&&h.createElement(`title`,null,n),s,c.get(a??f))});av.displayName=`IconBase`;var ov=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:Kee}));ov.displayName=`ArrowClockwiseIcon`;var Vte=ov,sv=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:qee}));sv.displayName=`ArrowSquareOutIcon`;var cv=sv,lv=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:Jee}));lv.displayName=`ArrowsOutIcon`;var Hte=lv,uv=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:Yee}));uv.displayName=`BroomIcon`;var dv=uv,fv=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:Xee}));fv.displayName=`CaretDownIcon`;var pv=fv,mv=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:Zee}));mv.displayName=`CaretRightIcon`;var hv=mv,gv=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:Qee}));gv.displayName=`CaretUpIcon`;var Ute=gv,_v=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:$ee}));_v.displayName=`ChartBarIcon`;var vv=_v,yv=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:ete}));yv.displayName=`ChartLineIcon`;var Wte=yv,bv=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:tte}));bv.displayName=`ChatCircleIcon`;var xv=bv,Sv=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:nte}));Sv.displayName=`CheckIcon`;var Cv=Sv,wv=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:rte}));wv.displayName=`CheckCircleIcon`;var Tv=wv,Ev=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:ite}));Ev.displayName=`CodeIcon`;var Dv=Ev,Ov=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:ate}));Ov.displayName=`CopyIcon`;var kv=Ov,Av=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:ote}));Av.displayName=`CpuIcon`;var jv=Av,Mv=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:ste}));Mv.displayName=`DesktopIcon`;var Nv=Mv,Pv=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:cte}));Pv.displayName=`DiamondIcon`;var Fv=Pv,Iv=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:lte}));Iv.displayName=`DotsSixVerticalIcon`;var Lv=Iv,Rv=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:ute}));Rv.displayName=`DotsThreeIcon`;var zv=Rv,Bv=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:dte}));Bv.displayName=`EyeIcon`;var Vv=Bv,Hv=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:fte}));Hv.displayName=`FloppyDiskIcon`;var Uv=Hv,Wv=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:pte}));Wv.displayName=`FolderSimpleIcon`;var Gv=Wv,Kv=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:mte}));Kv.displayName=`GaugeIcon`;var qv=Kv,Jv=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:hte}));Jv.displayName=`GitBranchIcon`;var Yv=Jv,Xv=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:gte}));Xv.displayName=`GithubLogoIcon`;var Zv=Xv,Qv=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:_te}));Qv.displayName=`HandPalmIcon`;var $v=Qv,ey=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:vte}));ey.displayName=`HandWavingIcon`;var ty=ey,ny=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:yte}));ny.displayName=`HardDrivesIcon`;var ry=ny,iy=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:bte}));iy.displayName=`HourglassIcon`;var ay=iy,oy=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:xte}));oy.displayName=`InfoIcon`;var sy=oy,cy=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:Ste}));cy.displayName=`LaptopIcon`;var ly=cy,uy=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:Cte}));uy.displayName=`LightningIcon`;var dy=uy,fy=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:wte}));fy.displayName=`MagnifyingGlassIcon`;var py=fy,my=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:Tte}));my.displayName=`MemoryIcon`;var hy=my,gy=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:Ete}));gy.displayName=`PencilSimpleIcon`;var Gte=gy,_y=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:Dte}));_y.displayName=`PlanetIcon`;var Kte=_y,vy=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:Ote}));vy.displayName=`PlusIcon`;var qte=vy,yy=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:kte}));yy.displayName=`RobotIcon`;var Jte=yy,by=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:Ate}));by.displayName=`SparkleIcon`;var xy=by,Sy=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:jte}));Sy.displayName=`SquaresFourIcon`;var Cy=Sy,wy=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:Mte}));wy.displayName=`StackIcon`;var Ty=wy,Ey=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:Nte}));Ey.displayName=`StopCircleIcon`;var Yte=Ey,Dy=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:Pte}));Dy.displayName=`TableIcon`;var Xte=Dy,Oy=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:Fte}));Oy.displayName=`TrashIcon`;var ky=Oy,Ay=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:Ite}));Ay.displayName=`TrayIcon`;var Zte=Ay,jy=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:Lte}));jy.displayName=`TreeStructureIcon`;var Qte=jy,My=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:Rte}));My.displayName=`WarningCircleIcon`;var $te=My,Ny=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:zte}));Ny.displayName=`XIcon`;var Py=Ny,Fy=h.forwardRef((e,t)=>h.createElement(av,{ref:t,...e,weights:Bte}));Fy.displayName=`XCircleIcon`;var ene=Fy,Iy={dark:{accent:`#CBA6F7`,bg:`#1E1E2E`,crit:`#F38BA8`,dim:`#A6ADC8`,faint:`#A6ADC8`,fg:`#CDD6F4`,finished:`#A6ADC8`,"finished-bg":`#323345`,"flow-canvas":`#0E0E16`,"flow-line":`#272738`,"flow-muted":`#7F849C`,"flow-panel":`#101019`,idle:`#89B4FA`,"idle-bg":`#2E354D`,line:`#45475A`,"md-code":`#CDD6F4`,"md-code-bg":`#11111B`,"md-heading":`#CBA6F7`,"md-link":`#89B4FA`,"md-quote":`#A6ADC8`,"md-rule":`#A6ADC8`,"md-strike":`#A6ADC8`,"md-table-border":`#A6ADC8`,"md-task":`#A6E3A1`,mid:`#BAC2DE`,observation:`#94E2D5`,"on-accent":`#1E1E2E`,pane:`#181825`,rail:`#585B70`,raise:`#313244`,stuck:`#F38BA8`,"stuck-bg":`#3E2E40`,tool:`#89DCEB`,waiting:`#F9E2AF`,"waiting-bar":`#F9E2AF`,"waiting-bg":`#3F3B41`,warn:`#FAB387`,working:`#A6E3A1`,"working-bg":`#323C3F`},latte:{base:`#EFF1F5`,blue:`#1E66F5`,crust:`#DCE0E8`,flamingo:`#DD7878`,green:`#40A02B`,lavender:`#7287FD`,mantle:`#E6E9EF`,maroon:`#E64553`,mauve:`#8839EF`,overlay0:`#9CA0B0`,overlay1:`#8C8FA1`,overlay2:`#7C7F93`,peach:`#FE640B`,pink:`#EA76CB`,red:`#D20F39`,rosewater:`#DC8A78`,sapphire:`#209FB5`,sky:`#04A5E5`,subtext0:`#6C6F85`,subtext1:`#5C5F77`,surface0:`#CCD0DA`,surface1:`#BCC0CC`,surface2:`#ACB0BE`,teal:`#179299`,text:`#4C4F69`,yellow:`#DF8E1D`},light:{accent:`#7E35DE`,bg:`#EFF1F5`,crit:`#C50E36`,dim:`#5C5F77`,faint:`#5C5F77`,fg:`#4C4F69`,finished:`#5C5F77`,"finished-bg":`#D9DBE2`,"flow-canvas":`#EFF1F5`,"flow-line":`#BCC0CC`,"flow-muted":`#5C5F77`,"flow-panel":`#E6E9EF`,idle:`#1A5AD8`,"idle-bg":`#D0DCF5`,line:`#BCC0CC`,"md-code":`#4C4F69`,"md-code-bg":`#DCE0E8`,"md-heading":`#7E35DE`,"md-link":`#1A5AD8`,"md-quote":`#5C5F77`,"md-rule":`#5C5F77`,"md-strike":`#5C5F77`,"md-table-border":`#5C5F77`,"md-task":`#2D701E`,mid:`#5C5F77`,observation:`#116D73`,"on-accent":`#EFF1F5`,pane:`#E6E9EF`,rail:`#ACB0BE`,raise:`#CCD0DA`,stuck:`#C50E36`,"stuck-bg":`#EBCFD9`,tool:`#036A93`,waiting:`#8A5812`,"waiting-bar":`#DF8E1D`,"waiting-bg":`#EDE2D5`,warn:`#AA4307`,working:`#2D701E`,"working-bg":`#D5E5D7`},mocha:{base:`#1E1E2E`,blue:`#89B4FA`,crust:`#11111B`,flamingo:`#F2CDCD`,green:`#A6E3A1`,lavender:`#B4BEFE`,mantle:`#181825`,maroon:`#EBA0AC`,mauve:`#CBA6F7`,overlay0:`#6C7086`,overlay1:`#7F849C`,overlay2:`#9399B2`,peach:`#FAB387`,pink:`#F5C2E7`,red:`#F38BA8`,rosewater:`#F5E0DC`,sapphire:`#74C7EC`,sky:`#89DCEB`,subtext0:`#A6ADC8`,subtext1:`#BAC2DE`,surface0:`#313244`,surface1:`#45475A`,surface2:`#585B70`,teal:`#94E2D5`,text:`#CDD6F4`,yellow:`#F9E2AF`}},Ly={light:Iy.latte,dark:Iy.mocha},Ry={light:Iy.light,dark:Iy.dark};function zy(e,t,n){let r=(e,t)=>parseInt(e.slice(1+t*2,3+t*2),16);return`#`+[0,1,2].map(i=>Math.round(r(e,i)*n+r(t,i)*(1-n)).toString(16).padStart(2,`0`)).join(``)}var By={light:{ground:Ly.light.mantle,raised:Ly.light.base,inset:Ly.light.crust,hover:zy(Ly.light.surface0,Ly.light.base,.5),border:Ly.light.surface0,borderSoft:Ly.light.crust,controlBorder:Ly.light.overlay2,text:Ry.light.fg,muted:Ry.light.dim,faint:Ly.light.overlay0},dark:{ground:Ly.dark.crust,raised:Ly.dark.base,inset:Ly.dark.mantle,hover:Ly.dark.surface0,border:Ly.dark.surface0,borderSoft:Ry.dark[`flow-line`],controlBorder:Ly.dark.overlay0,text:Ry.dark.fg,muted:Ry.dark.dim,faint:Ly.dark.overlay1}},Vy={light:{brand:Ry.light.accent,success:Ry.light.working,warning:Ry.light.waiting,danger:Ry.light.stuck,info:Ry.light.idle},dark:{brand:Ry.dark.accent,success:Ry.dark.working,warning:Ry.dark.waiting,danger:Ry.dark.stuck,info:Ry.dark.idle}},Hy={light:[`#b64c1a`,`#1c989f`,`#a40987`,`#0781b4`,`#3d37e6`,`#b75a5b`],dark:[`#c97338`,`#049b8c`,`#b1389a`,`#069eb1`,`#6e74f5`,`#c97276`]},Uy={micro:11,small:12,body:14,title:16,section:22,page:28},Wy={sans:`"IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif`,mono:`"IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace`},Gy=6;function Ky(e){return Array.from({length:10},(t,n)=>nGy?Cn(e,(n-Gy)*.12):e)}var tne=[By.dark.text,By.dark.text,By.dark.muted,By.dark.faint,By.dark.controlBorder,By.dark.hover,By.dark.raised,By.dark.ground,Cn(By.dark.ground,.2),Cn(By.dark.ground,.4)],qy=Object.keys(Vy.light),nne=Object.fromEntries(qy.flatMap(e=>[[`${e}Light`,Ky(Vy.light[e])],[`${e}Dark`,Ky(Vy.dark[e])],[e,xn({name:e,light:`${e}Light`,dark:`${e}Dark`})]]));function Jy(e,t){let[n,r]=[gn(e),gn(t)];return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function rne(e){return Jy(e,`#000000`)>Jy(e,`#ffffff`)?`#000000`:`#ffffff`}function ine(e){return Object.fromEntries(qy.map(t=>[`--driga-${t}-contrast`,rne(Vy[e][t])]))}function ane(e,t){let n=By[e];return zy(t===`neutral`?n.faint:Vy[e][t],n.raised,.12)}var one=[...qy,`neutral`];function sne(e){return Object.fromEntries(one.map(t=>[`--driga-tint-${t}`,ane(e,t)]))}function Yy(e){let t=By[e];return{"--mantine-color-body":t.ground,"--mantine-color-text":t.text,"--mantine-color-dimmed":t.muted,"--mantine-color-default":t.raised,"--mantine-color-default-hover":t.hover,"--mantine-color-default-border":t.controlBorder,"--driga-ground":t.ground,"--driga-raised":t.raised,"--driga-inset":t.inset,"--driga-hover":t.hover,"--driga-border":t.border,"--driga-border-soft":t.borderSoft,"--driga-control-border":t.controlBorder,"--driga-text":t.text,"--driga-muted":t.muted,"--driga-faint":t.faint,...ine(e),...sne(e)}}var cne=()=>({variables:{"--mantine-color-error":`var(--mantine-color-danger-filled)`},light:Yy(`light`),dark:Yy(`dark`)}),lne=e=>{let t=Dn(e);return(e.variant===`filled`||e.variant===void 0)&&qy.includes(e.color)?{...t,color:`var(--driga-${e.color}-contrast)`}:t},une=Sr({primaryColor:`brand`,primaryShade:Gy,colors:{dark:tne,...nne},variantColorResolver:lne,fontFamily:Wy.sans,fontFamilyMonospace:Wy.mono,headings:{fontFamily:Wy.sans,fontWeight:`600`},fontSizes:{xs:`${Uy.small/16}rem`,sm:`${Uy.small/16}rem`,md:`${Uy.body/16}rem`,lg:`${Uy.title/16}rem`,xl:`${Uy.section/16}rem`},defaultRadius:`sm`,cursorType:`pointer`,respectReducedMotion:!0,other:{labstackTones:{neutral:`gray`,info:`info`,success:`success`,warning:`warning`,danger:`danger`}},components:{Card:{defaultProps:{withBorder:!0,radius:`md`,padding:`sm`},styles:{root:{background:`var(--driga-raised)`,borderColor:`var(--driga-border)`}}},Paper:{styles:{root:{background:`var(--driga-raised)`,borderColor:`var(--driga-border)`}}},Table:{defaultProps:{highlightOnHover:!0,stickyHeader:!0,verticalSpacing:6,horizontalSpacing:`xs`,fz:`xs`},styles:{thead:{background:`var(--driga-inset)`},th:{color:`var(--driga-muted)`,fontWeight:500},td:{borderColor:`var(--driga-border-soft)`},tr:{borderColor:`var(--driga-border-soft)`}}},Badge:{defaultProps:{variant:`light`,radius:`sm`},styles:{root:{textTransform:`none`,fontWeight:600}}},Button:{defaultProps:{size:`xs`}},ActionIcon:{defaultProps:{variant:`subtle`,color:`gray`}},Tooltip:{defaultProps:{withArrow:!0,openDelay:300}},Modal:{defaultProps:{closeButtonProps:{"aria-label":`Close`}}},Drawer:{defaultProps:{closeButtonProps:{"aria-label":`Close`}}},ScrollArea:{defaultProps:{offsetScrollbars:`present`}}}}),dne={size:16,weight:`regular`};function fne(){return document.querySelector(`meta[name="driga-style-nonce"]`)?.content??``}function pne({scheme:e,children:t}){return(0,U.jsx)(xr,{theme:une,cssVariablesResolver:cne,defaultColorScheme:`auto`,forceColorScheme:e,getStyleNonce:fne,children:(0,U.jsx)(iv.Provider,{value:dne,children:t})})}var mne=()=>He({opened:!1,empty:!1,selected:-1,listId:``,query:``,registeredActions:new Set}),hne=e=>Ue(e);function Xy(e,t){let n=t.getState();t.setState({...n,...e(t.getState())})}function Zy(e){Xy(()=>({opened:!0,selected:-1}),e)}function Qy(e){Xy(()=>({opened:!1}),e)}function $y(e){Xy(e=>({opened:!e.opened,selected:e.opened?e.selected:-1}),e)}function eb(e,t){t.updateState(t=>({...t,selected:e}))}function gne(e,t){t.updateState(t=>({...t,listId:e}))}function tb(e,t=document){let n=t.querySelector(e);if(n)return n;let r=t instanceof ShadowRoot?t.host.children:t.children;for(let t=0;t{n.registeredActions.delete(e)}}function xne(e,t){Xy(()=>({query:e}),t),Promise.resolve().then(()=>{nb(0,t),Xy(e=>({empty:e.query.trim().length>0&&e.registeredActions.size===0||!1}),t)})}function Sne({clearQuery:e},t){t.updateState(t=>({...t,selected:-1,query:e?``:t.query,empty:!e&&t.empty}))}var rb={open:Zy,close:Qy,toggle:$y,updateState:Xy,setSelectedAction:eb,setListId:gne,selectAction:nb,selectNextAction:_ne,selectPreviousAction:vne,triggerSelectedAction:yne,registerAction:bne,setQuery:xne,clearSpotlightState:Sne};function Cne(){let e=mne();return[e,{open:()=>Zy(e),close:()=>Qy(e),toggle:()=>$y(e)}]}var[ib,ab]=Cne(),{open:wne,close:Tne,toggle:Ene}=ab;function ob(e){let t=e;return t.group!==void 0&&Array.isArray(t.actions)}var[Dne,sb]=Ct(`Spotlight component was not found in tree`),cb={root:`m_d2b315db`,content:`m_3cd250e0`,body:`m_d2abce9b`,search:`m_f366a061`,actionsList:`m_6e463822`,action:`m_d49bb8ef`,actionBody:`m_3d475731`,actionSection:`m_832642f6`,actionLabel:`m_6c2a1345`,actionDescription:`m_a6d9d78d`,empty:`m_82f78f74`,footer:`m_ddcaf054`,actionsGroup:`m_5a3e5f7b`},One={dimmedSections:!0,highlightQuery:!1},lb=G(e=>{let{className:t,style:n,classNames:r,styles:i,id:a,description:o,label:s,leftSection:c,rightSection:l,children:u,dimmedSections:d,highlightQuery:f,highlightColor:p,closeSpotlightOnTrigger:m,onClick:h,onMouseDown:g,keywords:_,vars:v,...y}=W(`SpotlightAction`,One,e),b=sb(),x={classNames:r,styles:i},S=f&&typeof s==`string`?(0,U.jsx)(nh,{component:`span`,highlight:b.query,color:p,...b.getStyles(`actionLabel`,x),children:s}):(0,U.jsx)(`span`,{...b.getStyles(`actionLabel`,x),children:s});return(0,U.jsx)(Qc,{"data-action":!0,...b.getStyles(`action`,{className:t,style:n,...x}),...y,onMouseDown:e=>{e.preventDefault(),g?.(e)},onClick:e=>{h?.(e),(m??b.closeOnActionTrigger)&&rb.close(b.store)},tabIndex:-1,children:u||(0,U.jsxs)(U.Fragment,{children:[c&&(0,U.jsx)(K,{component:`span`,mod:{position:`left`,dimmed:d},...b.getStyles(`actionSection`,x),children:c}),(0,U.jsxs)(`span`,{...b.getStyles(`actionBody`,x),children:[S,(0,U.jsx)(`span`,{...b.getStyles(`actionDescription`,x),children:o})]}),l&&(0,U.jsx)(K,{component:`span`,mod:{position:`right`,dimmed:d},...b.getStyles(`actionSection`,x),children:l})]})})});lb.classes=cb,lb.displayName=`@mantine/spotlight/SpotlightAction`;var ub=G(e=>{let{className:t,style:n,styles:r,classNames:i,label:a,children:o,...s}=W(`SpotlightActionsGroup`,null,e),c=sb();return(0,U.jsx)(K,{...c.getStyles(`actionsGroup`,{className:t,style:n,classNames:i,styles:r}),...s,__vars:{"--spotlight-label":`'${a?.replace(/\\/g,`\\\\`).replace(/'/g,`\\'`)}'`},children:o})});ub.classes=cb,ub.displayName=`@mantine/core/SpotlightActionsGroup`;var db=G(e=>{let{className:t,style:n,id:r,children:i,vars:a,classNames:o,styles:s,...c}=W(`SpotlightActionsList`,null,e),l=sb(),u=`mantine-${(0,h.useId)().replace(/:/g,``)}`,d=r||u;return(0,h.useEffect)(()=>(rb.setListId(d,l.store),()=>rb.setListId(``,l.store)),[]),(0,U.jsx)(Jc.Autosize,{...l.getStyles(`actionsList`,{className:t,style:n,classNames:o,styles:s}),type:`scroll`,scrollbarSize:`var(--spotlight-actions-list-padding)`,offsetScrollbars:`y`,id:d,...c,children:i})});db.classes=cb,db.displayName=`@mantine/spotlight/SpotlightActionsList`;var fb=G(e=>{let{className:t,style:n,classNames:r,styles:i,...a}=W(`SpotlightEmpty`,null,e),o=sb();return(0,U.jsx)(K,{...o.getStyles(`empty`,{classNames:r,styles:i,className:t,style:n}),...a})});fb.classes=cb,fb.displayName=`@mantine/spotlight/SpotlightEmpty`;var pb=G(e=>{let{className:t,style:n,classNames:r,styles:i,...a}=W(`SpotlightFooter`,null,e),o=sb();return(0,U.jsx)(K,{...o.getStyles(`footer`,{className:t,classNames:r,style:n,styles:i}),...a})});pb.classes=cb,pb.displayName=`@mantine/spotlight/SpotlightFooter`;function kne(e,t){if(!e)return[];let n=()=>rb.open(t);return Array.isArray(e)?e.map(e=>[e,n]):[[e,n]]}var Ane={size:600,yOffset:80,zIndex:jt(`max`),overlayProps:{backgroundOpacity:.35,blur:7},transitionProps:{duration:200,transition:`pop`},store:ib,clearQueryOnClose:!0,closeOnActionTrigger:!0,shortcut:`mod + K`,maxHeight:400},mb=G(e=>{let t=W(`SpotlightRoot`,Ane,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,store:c,children:l,query:u,onQueryChange:d,transitionProps:f,clearQueryOnClose:p,shortcut:m,tagsToIgnore:h,triggerOnContentEditable:g,disabled:_,onSpotlightOpen:v,onSpotlightClose:y,forceOpened:b,closeOnActionTrigger:x,maxHeight:S,scrollable:C,attributes:w,...E}=t,{opened:D,query:O}=hne(c),k=typeof u==`string`?u:O,A=e=>{d?.(e),rb.setQuery(e,c)},j=Rr({name:`Spotlight`,classes:cb,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:w}),{resolvedClassNames:M,resolvedStyles:N}=Cr({classNames:n,styles:a,props:t});return _e(kne(m,c),h,g),T(()=>{D?v?.():y?.()},[D]),_?null:(0,U.jsx)(Dne,{value:{getStyles:j,query:k,setQuery:A,store:c,closeOnActionTrigger:x},children:(0,U.jsx)(mg,{...E,withCloseButton:!1,opened:D||!!b,padding:0,onClose:()=>rb.close(c),className:r,style:i,classNames:M,styles:N,attributes:w,transitionProps:{...f,onExited:()=>{p&&A(``),rb.clearSpotlightState({clearQuery:p},c),f?.onExited?.()}},__vars:{"--spotlight-max-height":C?H(S):void 0},__staticSelector:`Spotlight`,"data-scrollable":C||void 0,children:l})})});mb.classes=cb,mb.displayName=`@mantine/spotlight/SpotlightRoot`;var jne={size:`lg`},hb=G(e=>{let{classNames:t,styles:n,onKeyDown:r,onChange:i,vars:a,value:o,attributes:s,...c}=W(`SpotlightSearch`,jne,e),l=sb(),u=l.getStyles(`search`),[d,f]=(0,h.useState)(!1),p=e=>{r?.(e),!d&&(e.nativeEvent.code===`ArrowDown`&&(e.preventDefault(),rb.selectNextAction(l.store)),e.nativeEvent.code===`ArrowUp`&&(e.preventDefault(),rb.selectPreviousAction(l.store)),(e.nativeEvent.code===`Enter`||e.nativeEvent.code===`NumpadEnter`)&&(e.preventDefault(),rb.triggerSelectedAction(l.store)))};return(0,U.jsx)(mf,{...u,classNames:[{input:u.className},t],styles:[{input:u.style},n],...c,value:o??l.query,onChange:e=>{l.setQuery(e.currentTarget.value),i?.(e)},onKeyDown:p,onCompositionStart:()=>f(!0),onCompositionEnd:()=>f(!1)})});hb.classes=cb,hb.displayName=`@mantine/spotlight/SpotlightSearch`;function Mne(e){return Array.isArray(e)?e.map(e=>e.trim()).join(`,`).toLowerCase().trim():typeof e==`string`?e.toLowerCase().trim():``}function Nne(e){return e.reduce((e,t)=>`actions`in t?[...e,...t.actions.map(e=>({...e,group:t.group}))]:[...e,t],[])}function Pne(e){let t={},n=[];return e.forEach(e=>{e.group?(t[e.group]||(t[e.group]={pushed:!1,data:{group:e.group,actions:[]}}),t[e.group].data.actions.push(e),t[e.group].pushed||(t[e.group].pushed=!0,n.push(t[e.group].data))):n.push(e)}),n}var Fne=(e,t)=>{let n=e.trim().toLowerCase(),r=[[],[]];return Nne(t).forEach(e=>{e.label?.toLowerCase().includes(n)?r[0].push(e):(e.description?.toLowerCase().includes(n)||Mne(e.keywords).includes(n))&&r[1].push(e)}),Pne(r.flat())};function gb(e,t){if(!Array.isArray(e))return[];let n=0;return e.reduce((e,r)=>{if(n>=t)return e;if(ob(r)){let i=gb(r.actions,t-n);e.push({group:r.group,actions:i}),n+=i.length}else e.push(r),n+=1;return e},[])}var Ine={size:600,yOffset:80,limit:1/0,zIndex:jt(`max`),overlayProps:{backgroundOpacity:.35,blur:7},transitionProps:{duration:200,transition:`pop`},store:ib,filter:Fne,clearQueryOnClose:!0,closeOnActionTrigger:!0,shortcut:`mod + K`},_b=G(e=>{let{searchProps:t,filter:n,query:r,onQueryChange:i,actions:a,nothingFound:o,highlightQuery:s,limit:c,scrollAreaProps:l,...u}=W(`Spotlight`,Ine,e),[d,f]=ae({value:r,defaultValue:``,finalValue:``,onChange:i}),p=gb(n(d,a),c).map(e=>{if(ob(e)){let t=e.actions.map(({id:e,...t})=>(0,U.jsx)(lb,{highlightQuery:s,...t},e));return(0,U.jsx)(ub,{label:e.group,children:t},e.group)}return(0,U.jsx)(lb,{highlightQuery:s,...e},e.id)});return(0,U.jsxs)(mb,{...u,query:d,onQueryChange:f,children:[(0,U.jsx)(hb,{...t}),p.length>0&&(0,U.jsx)(db,{...l,children:p}),p.length===0&&o&&(0,U.jsx)(fb,{children:o})]})});_b.classes=cb,_b.displayName=`@mantine/spotlight/Spotlight`,_b.Search=hb,_b.ActionsList=db,_b.Action=lb,_b.Empty=fb,_b.ActionsGroup=ub,_b.Footer=pb,_b.Root=mb,_b.open=ab.open,_b.close=ab.close,_b.toggle=ab.toggle;function vb(e){let t=(0,h.useId)();return`${e??t}`}var yb=typeof window<`u`?h.useLayoutEffect:h.useEffect;function bb(e){let t=(0,h.useRef)(e);return yb(()=>{t.current=e},[e]),(0,h.useCallback)((...e)=>t.current?.(...e),[t])}function xb(...e){return bb(t=>{e.forEach(e=>{if(e)switch(typeof e){case`function`:e(t);break;case`object`:e.current=t}})})}function Sb(e,t=`Assertion error`){if(!e)throw Error(t)}(0,h.createContext)(null);var Cb;function Lne(){return Cb===void 0&&(Cb=typeof matchMedia==`function`&&!!matchMedia(`(pointer:coarse)`).matches),Cb}function Rne({expandHitTargets:e,axis:t,rect:n}){let r=e?Lne()?t.resizeTargetMinimumSize.coarse:t.resizeTargetMinimumSize.fine:0;if(n.width{this.removeListener(e,t)}}emit(e,t){let n=this.#e[e];if(n!==void 0){if(n.length===1){n[0].call(null,t);return}let e,r=Array.from(n);for(let n=0;n=0&&n.splice(e,1)}}},Tb={cursorFlags:0,state:`inactive`},Eb=new wb;function Db(){return Tb}function Ob(e){return Eb.addListener(`change`,e)}function Bne(e,t=[],n,r=!1){let i=Tb,a={...Tb};a.cursorFlags=e,a.state===`active`&&(a.didPointerMove||=r,a.previews=t,n&&(a.previewLayoutMap=n)),Tb=a,Eb.emit(`change`,{prev:i,next:a})}function kb(e){let t=Tb;Tb=e,t.state===`active`&&e.state!==`active`&&t.didPointerMove&&t.hitRegions.forEach(({separator:e})=>{e&&e.element.ownerDocument.activeElement===e.element&&e.element.blur()}),Eb.emit(`change`,{prev:t,next:e})}function Vne(e){Tb.state!==`active`||!Tb.previews.some(t=>t.separator===e)||kb({...Tb,previews:Tb.previews.map(t=>t.separator===e?{...t}:t)})}function Hne(e){if(Tb.state===`inactive`)return;let t=Tb.hitRegions.filter(t=>t.axis!==e),n=Tb.state===`active`&&Tb.previews.some(t=>t.axis===e);if(t.length!==Tb.hitRegions.length||n){if(t.length===0)kb({cursorFlags:0,state:`inactive`});else if(Tb.state===`active`){let n=new Map(Tb.initialLayoutMap),r=new Map(Tb.previewLayoutMap);n.delete(e),r.delete(e),kb({...Tb,cursorFlags:0,hitRegions:t,initialLayoutMap:n,previewLayoutMap:r,previews:Tb.previews.filter(t=>t.axis!==e)})}else kb({...Tb,hitRegions:t})}}var Une=e=>e,Ab=()=>{},jb=1,Mb=2,Nb=4,Pb=8,Fb=3,Ib=12,Lb;function Rb(){return Lb===void 0&&(Lb=!1,typeof window<`u`&&(window.navigator.userAgent.includes(`Chrome`)||window.navigator.userAgent.includes(`Firefox`))&&(Lb=!0)),Lb}function Wne({cursorFlags:e,axes:t,state:n}){let r=0,i=0;switch(n){case`active`:case`hover`:t.forEach(e=>{if(!e.mutableState.disableCursor)switch(e.orientation){case`horizontal`:r++;break;case`vertical`:i++}})}if(r!==0||i!==0){if(n===`active`&&e&&Rb()){let t=(e&jb)!==0,n=(e&Mb)!==0,r=(e&Nb)!==0,i=(e&Pb)!==0;if(t)return r?`se-resize`:i?`ne-resize`:`e-resize`;if(n)return r?`sw-resize`:i?`nw-resize`:`w-resize`;if(r)return`s-resize`;if(i)return`n-resize`}return Rb()?r>0&&i>0?`move`:r>0?`ew-resize`:`ns-resize`:r>0&&i>0?`grab`:r>0?`col-resize`:`row-resize`}}var zb=new WeakMap;function Bb(e){if(!e.defaultView||!e.adoptedStyleSheets)return;let{prevStyle:t,styleSheet:n}=zb.get(e)??{};n===void 0&&(n=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets&&(Object.isExtensible(e.adoptedStyleSheets)?e.adoptedStyleSheets.push(n):e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]));let r=Db();switch(r.state!==`inactive`&&r.ownerDocument!==e&&(r={cursorFlags:0,state:`inactive`}),r.state){case`active`:case`hover`:{let e=Wne({cursorFlags:r.cursorFlags,axes:r.hitRegions.map(e=>e.axis),state:r.state}),i=`*, *:hover {cursor: ${e} !important; }`;if(t===i)return;t=i,e?n.cssRules.length===0?n.insertRule(i):n.replaceSync(i):n.cssRules.length===1&&n.deleteRule(0);break}case`inactive`:t=void 0,n.cssRules.length===1&&n.deleteRule(0)}zb.set(e,{prevStyle:t,styleSheet:n})}function Vb(e){return e.state===`inactive`?void 0:e.ownerDocument}function Gne({next:e,prev:t}){let n=Vb(t),r=Vb(e);n&&n!==r&&Bb(n),r&&Bb(r)}function Hb({axis:e}){let{layoutStrategy:t,orientation:n,items:r}=e;return t?t.calculateAvailableSize():r.reduce((e,t)=>(e+=n===`horizontal`?t.element.offsetWidth:t.element.offsetHeight,e),0)}function Ub(e,t){let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_DISCONNECTED?0:n&Node.DOCUMENT_POSITION_FOLLOWING?-1:n&Node.DOCUMENT_POSITION_PRECEDING?1:0}function Wb(e,t){return Array.from(t).sort((t,n)=>{let r=e===`horizontal`?Kne(t,n):qne(t,n);return r===0?Ub(t.element,n.element):r})}function Kne(e,t){let n=e.element.offsetLeft-t.element.offsetLeft;return n===0?e.element.offsetWidth-t.element.offsetWidth:n}function qne(e,t){let n=e.element.offsetTop-t.element.offsetTop;return n===0?e.element.offsetHeight-t.element.offsetHeight:n}function Gb(e){return typeof e==`object`&&!!e&&`nodeType`in e&&e.nodeType===Node.ELEMENT_NODE}function Kb(e,t){return{x:e.x>=t.left&&e.x<=t.right?0:Math.min(Math.abs(e.x-t.left),Math.abs(e.x-t.right)),y:e.y>=t.top&&e.y<=t.bottom?0:Math.min(Math.abs(e.y-t.top),Math.abs(e.y-t.bottom))}}function Jne({orientation:e,rects:t,targetRect:n}){let r={x:n.x+n.width/2,y:n.y+n.height/2},i,a=Number.MAX_VALUE;for(let n of t){let{x:t,y:o}=Kb(r,n),s=e===`horizontal`?t:o;s!e.hasAttribute(`data-resize-preview`)).map(e=>({element:e}))).map(({element:e})=>e),c=[],l=!1,u=!1,d=-1,f,p=-1,m=0,h,g=[];{let e=-1;for(let t of s)t.hasAttribute(`data-panel`)&&(e++,t.hasAttribute(`data-disabled`)||(m++,d===-1&&(d=e),p=e))}if(n||m>1){let r=-1;for(let m of s)if(m.hasAttribute(`data-panel`)){r++;let o=a.find(e=>e.element===m);if(o){if(h){let a=h.element.getBoundingClientRect(),s=m.getBoundingClientRect(),_;if(u){let e=i===`horizontal`?new DOMRect(a.right,a.top,0,a.height):new DOMRect(a.left,a.bottom,a.width,0),t=i===`horizontal`?new DOMRect(s.left,s.top,0,s.height):new DOMRect(s.left,s.top,s.width,0);switch(g.length){case 0:_=[e,t];break;case 1:{let n=g[0];_=[n,Jne({orientation:i,rects:[a,s],targetRect:n.element.getBoundingClientRect()})===a?t:e];break}default:_=g}}else _=g.length?g:[i===`horizontal`?new DOMRect(a.right,s.top,s.left-a.right,s.height):new DOMRect(s.left,a.bottom,s.width,s.top-a.bottom)];for(let i of _){let a=Rne({expandHitTargets:e,axis:t,rect:`width`in i?i:i.element.getBoundingClientRect()});(n||!l&&!(r<=d||r>p))&&(f??=Hb({axis:t}),c.push({axis:t,axisSize:f,items:[h,o],separator:`width`in i?void 0:i,rect:a})),l=!1}}u=!1,h=o,g=[]}}else if(m.hasAttribute(`data-separator`)){m.ariaDisabled!==null&&(l=!0);let e=o.find(e=>e.element===m);e?g.push(e):(h=void 0,g=[])}else u=!0}return c}function Yne(e,t){let n=getComputedStyle(e);return t*parseFloat(n.fontSize)}function Xne(e,t){let n=getComputedStyle(e.ownerDocument.documentElement);return t*parseFloat(n.fontSize)}function Zne(e){return e/100*window.innerHeight}function Qne(e){return e/100*window.innerWidth}function Jb({axisSize:e,itemElement:t,styleProp:n}){let r,[i,a]=zne(n);switch(a){case`%`:r=i/100*e;break;case`px`:r=i;break;case`rem`:r=Xne(t,i);break;case`em`:r=Yne(t,i);break;case`vh`:r=Zne(i);break;case`vw`:r=Qne(i)}return r}function Yb(e){return parseFloat(e.toFixed(3))}function Xb(e){let{items:t}=e,n=Hb({axis:e});return n===0?t.map(e=>({groupResizeBehavior:e.constraintProps.groupResizeBehavior,collapsedSize:0,collapsible:e.constraintProps.collapsible===!0,defaultSize:void 0,disabled:e.constraintProps.disabled,minSize:0,maxSize:100,itemId:e.id})):t.map(e=>{let{element:t,constraintProps:r}=e,i=0;r.collapsedSize!==void 0&&(i=Yb(Jb({axisSize:n,itemElement:t,styleProp:r.collapsedSize})/n*100));let a;r.collapsedThreshold!==void 0&&(a=Yb(Jb({axisSize:n,itemElement:t,styleProp:r.collapsedThreshold})/n*100));let o;r.defaultSize!==void 0&&(o=Yb(Jb({axisSize:n,itemElement:t,styleProp:r.defaultSize})/n*100));let s=0;r.minSize!==void 0&&(s=Yb(Jb({axisSize:n,itemElement:t,styleProp:r.minSize})/n*100));let c=100;return r.maxSize!==void 0&&(c=Yb(Jb({axisSize:n,itemElement:t,styleProp:r.maxSize})/n*100)),{groupResizeBehavior:r.groupResizeBehavior,collapsedSize:i,collapsedThreshold:a,collapsible:r.collapsible===!0,defaultSize:o,disabled:r.disabled,minSize:s,maxSize:c,itemId:e.id}})}var Zb=new Map,Qb=new wb,$b=0,ex=[],tx;function nx(){$b++}function rx(){for(let e=0;e{n.axis.id===e&&t(n)})}function lx(e,t,n){let r=Zb.get(e);Zb=new Map(Zb),Zb.set(e,t);let i={axis:e,isUserInteraction:n?.isUserInteraction===!0,prev:r,next:t};$b>0?ex.push(i):Qb.emit(`axisChange`,i)}function ux(e,{pointerId:t,pointerType:n}){return t===e.pointerId||n===`pen`&&e.pointerType===`pen`}function dx(e,t,n={}){return e.ownerDocument===t&&(n.pointerId===void 0||ux(e,n))}function ere(e,t){if(e.length!==t.length)return!1;for(let n=0;nt?1:-1}function mx({overrideDisabledItems:e,itemConstraints:t,prevSize:n,size:r}){let{collapsedSize:i=0,collapsedThreshold:a,collapsible:o,disabled:s,maxSize:c=100,minSize:l=0}=t;if(s&&!e)return n;if(px(r,l)<0){if(o){let e=a??(l-i)/2,t=px(n,i)<=0,o=t?i+e:l-e,s=px(r,o);r=px(r,i)<=0||s<0||a!==void 0&&t&&s===0?i:l}else r=l}return r=Math.min(c,r),r=Yb(r),r}function hx({delta:e,initialLayout:t,itemConstraints:n,pivotIndices:r,prevLayout:i,trigger:a}){if(fx(e,0))return t;let o=a===`imperative-api`,s=n.map(({itemId:e})=>t[e]),c=n.map(({itemId:e})=>i[e]),l=[...s],[u,d]=r;Sb(u!=null,`Invalid first pivot index`),Sb(d!=null,`Invalid second pivot index`);let f=0;switch(a){case`keyboard`:{let t=e<0?d:u,r=n[t];Sb(r,`Panel constraints not found for index ${t}`);let{collapsedSize:i=0,collapsible:a,minSize:o=0}=r;if(a){let n=s[t];if(Sb(n!=null,`Previous layout not found for panel index ${t}`),fx(n,i)){let t=o-n;px(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{let t=e<0?u:d,r=n[t];Sb(r,`No panel constraints found for index ${t}`);let{collapsedSize:i=0,collapsible:a,minSize:o=0}=r;if(a){let n=s[t];if(Sb(n!=null,`Previous layout not found for panel index ${t}`),fx(n,o)){let t=n-i;px(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}break;default:{let t=e<0?d:u,r=n[t];Sb(r,`Panel constraints not found for index ${t}`);let i=s[t],{collapsedSize:a,collapsedThreshold:o,collapsible:c,minSize:l}=r;if(c&&px(i,l)<0){let t=l-a,n=o??t/2;if(px(i+Math.abs(e),l)<0){let r=px(Math.abs(e),n);e=r>0||r===0&&o===void 0&&e<0?e<0?-t:t:0}}break}}{let t=e<0?1:-1,r=e<0?d:u,i=0;for(;;){let e=s[r];Sb(e!=null,`Previous layout not found for panel index ${r}`);let a=mx({overrideDisabledItems:o,itemConstraints:n[r],prevSize:e,size:100})-e;if(i+=a,r+=t,r<0||r>=n.length)break}let a=Math.min(Math.abs(e),Math.abs(i));e=e<0?0-a:a}{let t=e<0?u:d;for(;t>=0&&t=0))break;e<0?t--:t++}}if(ere(c,l))return i;{let t=e<0?d:u,r=s[t];Sb(r!=null,`Previous layout not found for panel index ${t}`);let i=r+f,a=mx({overrideDisabledItems:o,itemConstraints:n[t],prevSize:r,size:i});if(l[t]=a,!fx(a,i)){let t=i-a,r=e<0?d:u;for(;r>=0&&r0?r--:r++}}}return fx(Object.values(l).reduce((e,t)=>t+e,0),100,.1)?l.reduce((e,t,r)=>(e[n[r].itemId]=t,e),{}):i}function gx(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(t[n]===void 0||px(e[n],t[n])!==0)return!1;return!0}function _x(e){nx();try{tre(e)}finally{ix()}}function tre({commit:e,event:t,hitRegions:n,initialLayoutMap:r,mountedAxes:i,pointerDownAtPoint:a,prevCursorFlags:o}){let s=0,c=Db(),l=c.state===`active`?c.previews:[],u=new Map(c.state===`active`?c.previewLayoutMap:void 0);n.forEach(n=>{let{axis:o,axisSize:c}=n,{orientation:d,items:f}=o;if(e&&o.resizePreviewMode!==`separator`)return;let{disableCursor:p}=o.mutableState,m=0;m=a?d===`horizontal`?(t.clientX-a.x)/c*100:(t.clientY-a.y)/c*100:d===`horizontal`?t.clientX<0?-100:100:t.clientY<0?-100:100;let h=r.get(o),g=i.get(o);if(!h||!g)return;let{defaultLayoutDeferred:_,derivedItemConstraints:v,axisSize:y,layout:b,separatorToItems:x}=g;if(v&&b&&x){let t=o.resizePreviewMode===`separator`?u.get(o)??b:b,r=hx({delta:m,initialLayout:h,itemConstraints:v,pivotIndices:n.items.map(e=>f.indexOf(e)),prevLayout:t,trigger:`mouse-or-touch`});if(o.resizePreviewMode===`separator`&&!e&&!gx(r,t)){u.set(o,r);let e=0,t=f.map(t=>(e+=r[t.id]-h[t.id],c/100*e));l=l.map(e=>{if(e.axis!==o)return e;let n=t[e.itemIndex];return n===e.offset?e:{...e,offset:n}})}if(gx(r,t)&&m!==0&&!p)switch(d){case`horizontal`:s|=m<0?jb:Mb;break;case`vertical`:s|=m<0?Nb:Pb}(o.resizePreviewMode!==`separator`||e)&&!gx(r,b)&&lx(n.axis,{defaultLayoutDeferred:_,derivedItemConstraints:v,axisSize:y,layout:r,requestedAxisSize:y,requestedLayout:r,separatorToItems:x})}});let d=0;t.movementX===0?d|=o&Fb:d|=s&Fb,t.movementY===0?d|=o&Ib:d|=s&Ib;let f=c.state===`active`&&(t.clientX!==c.pointerDownAtPoint.x||t.clientY!==c.pointerDownAtPoint.y);Bne(d,l,u,f)}function vx(e,t){let n=Db();if(n.state!==`active`||!dx(n,e,t))return;let r=sx();nx();try{_x({commit:!0,event:t,hitRegions:n.hitRegions,initialLayoutMap:n.initialLayoutMap,mountedAxes:r,pointerDownAtPoint:n.pointerDownAtPoint,prevCursorFlags:n.cursorFlags}),rx(),kb({cursorFlags:0,state:`inactive`}),n.hitRegions.length>0&&(t.preventDefault?.(),n.hitRegions.forEach(e=>{if(!r.has(e.axis))return;let t=ox(e.axis.id,!0);lx(e.axis,t,{isUserInteraction:!0})}))}finally{ix()}}function yx(e){if(e.defaultPrevented)return;let{clientX:t,clientY:n,movementX:r,movementY:i}=e;vx(e.currentTarget,{clientX:t,clientY:n,movementX:r,movementY:i})}function nre(e,t,n){let r,i={x:1/0,y:1/0};for(let a of t){let t=Kb(n,a.rect);switch(e){case`horizontal`:(t.xt.x&&e.yt.y}function Ex(e){try{return e.matches(`:modal`)}catch{return!1}}function cre({axisElement:e,hitRegion:t,pointerEventTarget:n}){if(Gb(n)){let t=n.closest(`dialog`);if(t&&!t.contains(e)&&Ex(t))return!1}if(!Gb(n)||n.contains(e)||e.contains(n))return!0;if(ire(n,e)>0){let r=n;for(;r;){if(r.contains(e))return!0;if(Tx(r.getBoundingClientRect(),t))return!1;r=r.parentElement}}return!0}function Dx(e,t,n){let r=[];return t.forEach((t,i)=>{if(i.disabled||i.element.ownerDocument!==n)return;let a=qb({axis:i}),o=nre(i.orientation,a,{x:e.clientX,y:e.clientY});o&&o.distance.x<=0&&o.distance.y<=0&&cre({axisElement:i.element,hitRegion:o.hitRegion.rect,pointerEventTarget:e.target})&&r.push(o.hitRegion)}),r}function Ox({layout:e,itemConstraints:t}){let n=t.map(({itemId:t})=>e[t]),r=[...n],i=r.reduce((e,t)=>e+t,0);if(Object.keys(e).length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${Object.values(e).map(e=>`${e}%`).join(`, `)}`);if(!fx(i,100)&&r.length>0)for(let e=0;e(e[t[r].itemId]=n,e),{})}function kx({axisId:e,itemId:t}){let n=()=>{let t=sx();for(let[n,{defaultLayoutDeferred:r,derivedItemConstraints:i,layout:a,axisSize:o,separatorToItems:s}]of t)if(n.id===e)return{defaultLayoutDeferred:r,derivedItemConstraints:i,axis:n,axisSize:o,layout:a,separatorToItems:s};throw Error(`Group ${e} not found`)},r=()=>{let e=n().derivedItemConstraints.find(e=>e.itemId===t);if(e!==void 0)return e;throw Error(`Panel constraints not found for Panel ${t}`)},i=()=>{let e=n().axis.items.find(e=>e.id===t);if(e!==void 0)return e;throw Error(`Layout not found for Panel ${t}`)},a=()=>{let e=n().layout[t];if(e!==void 0)return e;throw Error(`Layout not found for Panel ${t}`)},o=({nextSize:e,items:n,prevLayout:r,derivedItemConstraints:i})=>{let o=a(),s=n.findIndex(e=>e.id===t),c=s===0,l=s===n.length-1;if(l&&e{let n=i[t];return n?.collapsible&&fx(n.collapsedSize,r[n.itemId])}))){let e=n.slice(0,s).reduce((e,t)=>e+r[t.id],0);return{...r,[t]:Yb(100-e)}}return hx({delta:l?o-e:e-o,initialLayout:r,itemConstraints:i,pivotIndices:l?[s-1,s]:[s,s+1],prevLayout:r,trigger:`imperative-api`})},s=e=>{if(e===a())return;let{defaultLayoutDeferred:t,derivedItemConstraints:r,axis:i,axisSize:s,layout:c,separatorToItems:l}=n(),u=Ox({layout:o({nextSize:e,items:i.items,prevLayout:c,derivedItemConstraints:r}),itemConstraints:r});gx(c,u)||lx(i,{defaultLayoutDeferred:t,derivedItemConstraints:r,axisSize:s,layout:u,requestedAxisSize:s,requestedLayout:u,separatorToItems:l})};return{collapse:()=>{let{collapsible:e,collapsedSize:t}=r(),{mutableValues:n}=i(),o=a();e&&o!==t&&(n.expandToSize=o,s(t))},expand:()=>{let{collapsible:e,collapsedSize:t,minSize:n}=r(),{mutableValues:o}=i(),c=a();if(e&&c===t){let e=o.expandToSize??n;e===0&&(e=1),s(e)}},getSize:()=>{let{axis:e}=n(),r=a(),{element:o}=i();return{asPercentage:r,inPixels:e.layoutStrategy?e.layoutStrategy.getItemSizeInPixels(t):e.orientation===`horizontal`?o.offsetWidth:o.offsetHeight}},isCollapsed:()=>{let{collapsible:e,collapsedSize:t}=r(),n=a();return e&&fx(t,n)},resize:e=>{let{axis:t}=n(),{element:r}=i(),a=Hb({axis:t}),o=Yb(Jb({axisSize:a,itemElement:r,styleProp:e})/a*100);s(o)}}}function Ax(e){e.defaultPrevented||Dx(e,sx(),e.currentTarget).forEach(t=>{if(t.separator&&!t.separator.disableDoubleClick){let n=t.items.find(e=>e.constraintProps.defaultSize!==void 0);if(n){let r=n.constraintProps.defaultSize,i=kx({axisId:t.axis.id,itemId:n.id});i&&r!==void 0&&(i.resize(r),e.preventDefault())}}})}function jx(e){let t=sx();for(let[n]of t)if(n.separators.some(t=>t.element===e))return n;throw Error(`Could not find parent Group for separator element`)}function Mx({axisId:e}){let t=()=>{let t=sx();for(let[n,r]of t)if(n.id===e)return{axis:n,...r};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){let{defaultLayoutDeferred:e,layout:n}=t();return e?{}:n},setLayout(e){let{defaultLayoutDeferred:n,derivedItemConstraints:r,axis:i,axisSize:a,layout:o,separatorToItems:s}=t(),c=Ox({layout:e,itemConstraints:r});return n?o:(gx(o,c)||lx(i,{defaultLayoutDeferred:n,derivedItemConstraints:r,axisSize:a,layout:c,requestedAxisSize:a,requestedLayout:c,separatorToItems:s}),c)}}}function Nx(e,t){let n=jx(e),r=ox(n.id,!0),i=n.separators.find(t=>t.element===e);Sb(i,`Matching separator not found`);let a=r.separatorToItems.get(i);Sb(a,`Matching panels not found`);let o=a.map(e=>n.items.indexOf(e)),s=Mx({axisId:n.id}).getLayout(),c=Ox({layout:hx({delta:t,initialLayout:s,itemConstraints:r.derivedItemConstraints,pivotIndices:o,prevLayout:s,trigger:`keyboard`}),itemConstraints:r.derivedItemConstraints});gx(s,c)||lx(n,{defaultLayoutDeferred:r.defaultLayoutDeferred,derivedItemConstraints:r.derivedItemConstraints,axisSize:r.axisSize,layout:c,requestedAxisSize:r.axisSize,requestedLayout:c,separatorToItems:r.separatorToItems},{isUserInteraction:!0})}function Px(e){if(e.defaultPrevented)return;let t=e.currentTarget,n=jx(t);if(!(n.disabled||n.separators.find(e=>e.element===t)?.disabled))switch(e.key){case`ArrowDown`:e.preventDefault(),n.orientation===`vertical`&&Nx(t,5);break;case`ArrowLeft`:e.preventDefault(),n.orientation===`horizontal`&&Nx(t,-5);break;case`ArrowRight`:e.preventDefault(),n.orientation===`horizontal`&&Nx(t,5);break;case`ArrowUp`:e.preventDefault(),n.orientation===`vertical`&&Nx(t,-5);break;case`End`:e.preventDefault(),Nx(t,100);break;case`Enter`:{e.preventDefault();let{derivedItemConstraints:r,layout:i,separatorToItems:a}=ox(n.id,!0),o=n.separators.find(e=>e.element===t);Sb(o,`Matching separator not found`);let s=a.get(o);Sb(s,`Matching panels not found`);let c=s[0],l=r.find(e=>e.itemId===c.id);if(Sb(l,`Panel metadata not found`),l.collapsible){let e=i[c.id];Nx(t,(l.collapsedSize===e?n.mutableState.expandedItemSizes[c.id]??l.minSize:l.collapsedSize)-e)}break}case`F6`:{e.preventDefault();let t=n.separators.map(e=>e.element),r=Array.from(t).findIndex(t=>t===e.currentTarget);Sb(r!==null,`Index not found`),t[e.shiftKey?r>0?r-1:t.length-1:r+1{let n=r.get(t);t.resizePreviewMode===`separator`&&n&&!gx(e,n.layout)&&lx(t,{...n,layout:e,requestedAxisSize:n.axisSize,requestedLayout:e})}),rx(),kb({cursorFlags:0,state:`inactive`}),n.hitRegions.forEach(e=>{if(!r.has(e.axis))return;let t=ox(e.axis.id,!0);lx(e.axis,t,{isUserInteraction:!0})})}finally{ix()}return!0}function Ix(e){let t=Db();if(t.state!==`active`)return;let n=t.hitRegions.flatMap(({separator:e})=>e?[e.element]:[]);!n.some(t=>t===e.target)||n.some(t=>t.hasPointerCapture?.(e.pointerId))||Fx(e.currentTarget,e)}function Lx(e){Fx(e.currentTarget,e)}function Rx(e,t){let{element:n,orientation:r,items:i}=e,a=n.getBoundingClientRect(),o=r===`horizontal`;return qb({expandHitTargets:!1,axis:e,includeDisabled:!0}).map(({items:r,rect:s,separator:c},l)=>{let u=i.indexOf(r[0]),d=o?s.left+s.width/2:s.top+s.height/2;return{active:t.some(t=>{if(t.axis!==e||t.items[0]!==r[0])return!1;if(c||t.separator)return t.separator===c;let n=o?t.rect.left+t.rect.width/2:t.rect.top+t.rect.height/2;return fx(d,n)}),axis:e,key:c?`separator-${c.id}`:`panel-${r[0].id}-${l}`,offset:0,itemIndex:u,rect:new DOMRect((o&&!c?d:s.left)-a.left-n.clientLeft+n.scrollLeft,(!o&&!c?d:s.top)-a.top-n.clientTop+n.scrollTop,o&&!c?0:s.width,!o&&!c?0:s.height),separator:c}})}function zx(e){if(e.defaultPrevented||e.pointerType===`mouse`&&e.button>0)return;let t=Db();if(t.state===`active`){ux(t,e)&&Fx(t.ownerDocument,t);return}let n=sx(),r=Dx(e,n,e.currentTarget);if(r.length===0)return;let i=new Map,a=!1;r.forEach(e=>{e.separator&&(a||(a=!0,e.separator.element.focus({focusVisible:!1,preventScroll:!0})));let t=n.get(e.axis);t&&i.set(e.axis,t.layout)});let o=Array.from(i.keys()).flatMap(e=>e.resizePreviewMode===`separator`?Rx(e,r):[]);kb({cursorFlags:0,didPointerMove:!1,hitRegions:r,initialLayoutMap:i,ownerDocument:e.currentTarget,pointerDownAtPoint:{x:e.clientX,y:e.clientY},pointerId:e.pointerId,pointerType:e.pointerType,previewLayoutMap:new Map(i),previews:o,state:`active`}),e.preventDefault()}function Bx(e){let t=e.currentTarget,n=sx(),r=Db();if(r.state===`active`){if(!dx(r,t,e))return;_x({commit:!1,event:e,hitRegions:r.hitRegions,initialLayoutMap:r.initialLayoutMap,mountedAxes:n,prevCursorFlags:r.cursorFlags})}}function Vx(e){if(e.defaultPrevented)return;let t=e.currentTarget,n=Db(),r=sx();switch(n.state){case`active`:if(!dx(n,t,e))return;if(e.buttons===0){Fx(t,e);return}for(let t of n.hitRegions)if(t.separator){let{element:n}=t.separator;n.isConnected&&!n.hasPointerCapture?.(e.pointerId)&&n.setPointerCapture?.(e.pointerId)}_x({commit:!1,event:e,hitRegions:n.hitRegions,initialLayoutMap:n.initialLayoutMap,mountedAxes:r,pointerDownAtPoint:n.pointerDownAtPoint,prevCursorFlags:n.cursorFlags});break;default:{let i=Dx(e,r,t);i.length===0?n.state!==`inactive`&&kb({cursorFlags:0,state:`inactive`}):kb({cursorFlags:0,hitRegions:i,ownerDocument:t,state:`hover`});break}}}function Hx(e){if(e.relatedTarget instanceof HTMLIFrameElement){let t=Db();t.state===`hover`&&t.ownerDocument===e.currentTarget&&kb({cursorFlags:0,state:`inactive`})}}function Ux(e){e.defaultPrevented||e.pointerType===`mouse`&&e.button>0||vx(e.currentTarget,e)}function Wx(e){e.target===e.currentTarget&&Fx(e.currentTarget.document)}function Gx(e){Fx(e.currentTarget.document)}function lre(e){let t=0,n=0,r={};for(let i of e)if(i.defaultSize!==void 0){t++;let e=Yb(i.defaultSize);n+=e,r[i.itemId]=e}else r[i.itemId]=void 0;let i=e.length-t;if(i!==0){let t=Yb((100-n)/i);for(let n of e)n.defaultSize===void 0&&(r[n.itemId]=t)}return r}function ure(e,t){let n=e.map(e=>e.id),r=Object.keys(t);if(n.length!==r.length)return!1;for(let e of n)if(!r.includes(e))return!1;return!0}function Kx({axis:e,itemConstraints:t}){let n=e.items.map(({id:e})=>e).join(`,`),r=e.mutableState.defaultLayout;return e.mutableState.layouts[n]??(r&&ure(e.items,r)?r:lre(t))}function qx({itemIds:e,layout:t}){return Ox({layout:t,itemConstraints:e.map(e=>({collapsedSize:0,collapsible:!1,defaultSize:void 0,disabled:void 0,itemId:e,maxSize:100,minSize:0}))})}function dre(e,t,n){if(!n[0])return;let r=e.items.find(e=>e.element===t);if(!r||!r.onResize)return;let i=Hb({axis:e}),a=e.orientation===`horizontal`?r.element.offsetWidth:r.element.offsetHeight,o=r.mutableValues.prevSize,s={asPercentage:Yb(a/i*100),inPixels:a};r.mutableValues.prevSize=s,r.onResize(s,r.id,o)}function Jx(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function fre(e,t){return e.length===t.length&&e.every((e,n)=>Jx(e,t[n]))}function pre({axis:e,nextAxisSize:t,prevAxisSize:n,prevLayout:r}){if(n<=0||t<=0||n===t)return r;let i=0,a=0,o=!1,s=new Map,c=[];for(let l of e.items){let e=r[l.id]??0;switch(l.constraintProps.groupResizeBehavior){case`preserve-pixel-size`:{o=!0;let r=Yb(e/100*n/t*100);s.set(l.id,r),i+=r;break}default:c.push(l.id),a+=e}}if(!o||c.length===0)return r;let l=100-i,u={...r};if(s.forEach((e,t)=>{u[t]=e}),a>0)for(let e of c)u[e]=Yb((r[e]??0)/a*l);else{let e=Yb(l/c.length);for(let t of c)u[t]=e}return u}var Yx=new Map,Xx=!1;function mre(e){let t=!0;Sb(e.element.ownerDocument.defaultView,`Cannot register an unmounted Group`);let n=e.element.ownerDocument.defaultView.ResizeObserver,r=new Set,i=new Set,a=new n(n=>{let r;nx();try{for(let i of n){let{borderBoxSize:n,target:a}=i;if(a===e.element){if(t){let t=Hb({axis:e});if(t===0)break;let n=ox(e.id);if(!n)break;let r=Xb(e),i=n.requestedAxisSize,a=n.requestedLayout;n.defaultLayoutDeferred&&(i=t,a=qx({itemIds:e.items.map(({id:e})=>e),layout:Kx({axis:e,itemConstraints:r})}));let o=Ox({layout:pre({axis:e,nextAxisSize:t,prevAxisSize:i,prevLayout:a}),itemConstraints:r});if(!n.defaultLayoutDeferred&&gx(n.layout,o)&&fre(n.derivedItemConstraints,r)&&n.axisSize===t)continue;lx(e,{defaultLayoutDeferred:!1,derivedItemConstraints:r,axisSize:t,layout:o,requestedAxisSize:i,requestedLayout:a,separatorToItems:n.separatorToItems})}}else try{dre(e,a,n)}catch(e){r??={error:e}}}}finally{ix()}if(r)throw r.error});a.observe(e.element),e.items.forEach(e=>{Sb(!r.has(e.id),`Panel ids must be unique; id "${e.id}" was used more than once`),r.add(e.id),e.onResize&&a.observe(e.element)});let o=Hb({axis:e}),s=Xb(e),c=Kx({axis:e,itemConstraints:s}),l=Ox({layout:c,itemConstraints:s}),u=e.element.ownerDocument,d=u.defaultView;Yx.set(u,(Yx.get(u)??0)+1);let f=new Map;return qb({axis:e,includeDisabled:!0}).forEach(e=>{e.separator&&f.set(e.separator,e.items)}),lx(e,{defaultLayoutDeferred:o===0,derivedItemConstraints:s,axisSize:o,layout:l,requestedAxisSize:o,requestedLayout:qx({itemIds:e.items.map(({id:e})=>e),layout:c}),separatorToItems:f}),e.separators.forEach(e=>{Sb(!i.has(e.id),`Separator ids must be unique; id "${e.id}" was used more than once`),i.add(e.id),e.element.addEventListener(`keydown`,Px)}),Xx||(Xx=!0,Ob(Gne)),Yx.get(u)===1&&(u.addEventListener(`contextmenu`,yx,!0),u.addEventListener(`dblclick`,Ax,!0),u.addEventListener(`lostpointercapture`,Ix,!0),u.addEventListener(`pointercancel`,Lx,!0),u.addEventListener(`pointerdown`,zx,!0),u.addEventListener(`pointerleave`,Bx),u.addEventListener(`pointermove`,Vx),u.addEventListener(`pointerout`,Hx),u.addEventListener(`pointerup`,Ux,!0),d?.addEventListener(`blur`,Wx),d?.addEventListener(`pagehide`,Gx)),function(){t=!1,Yx.set(u,Math.max(0,(Yx.get(u)??0)-1)),$ne(e),Hne(e),e.separators.forEach(e=>{e.element.removeEventListener(`keydown`,Px)}),Yx.get(u)||(u.removeEventListener(`contextmenu`,yx,!0),u.removeEventListener(`dblclick`,Ax,!0),u.removeEventListener(`lostpointercapture`,Ix,!0),u.removeEventListener(`pointercancel`,Lx,!0),u.removeEventListener(`pointerdown`,zx,!0),u.removeEventListener(`pointerleave`,Bx),u.removeEventListener(`pointermove`,Vx),u.removeEventListener(`pointerout`,Hx),u.removeEventListener(`pointerup`,Ux,!0),d?.removeEventListener(`blur`,Wx),d?.removeEventListener(`pagehide`,Gx)),a.disconnect()}}function hre({derivedItemConstraints:e,axis:t,layout:n,prevLayout:r,requestedLayout:i}){let a=t.items.map(({id:e})=>e).join(`,`);t.mutableState.layouts[a]=i,r&&e.forEach(e=>{if(e.collapsible){let i=fx(e.collapsedSize,n[e.itemId]),a=fx(e.collapsedSize,r[e.itemId]);i&&!a&&(t.mutableState.expandedItemSizes[e.itemId]=r[e.itemId])}})}function gre(){let[e,t]=(0,h.useState)({});return[e,(0,h.useCallback)(()=>t({}),[])]}function Zx(e){let t=(0,h.useRef)({...e});return yb(()=>{for(let n in e)t.current[n]=e[n]},[e]),t.current}var Qx=(0,h.createContext)(null);function _re({layout:e,itemConstraints:t,itemId:n,itemIndex:r}){let i,a,o=e[n],s=t.find(e=>e.itemId===n);if(s){let c=s.maxSize,l=s.collapsible?s.collapsedSize:s.minSize,u=[r,r+1];a=Ox({layout:hx({delta:l-o,initialLayout:e,itemConstraints:t,pivotIndices:u,prevLayout:e}),itemConstraints:t})[n],i=Ox({layout:hx({delta:c-o,initialLayout:e,itemConstraints:t,pivotIndices:u,prevLayout:e}),itemConstraints:t})[n]}return{valueControls:n,valueMax:i,valueMin:a,valueNow:o}}function vre({attributes:e,axisId:t,axisOrientation:n,children:r,className:i,disableCursor:a,disabled:o,disableDoubleClick:s,elementRef:c,id:l,isSharedHitRegion:u,preview:d,registerSeparator:f,requiredStyle:p,style:m,styleDefaults:g,tabIndex:_=0,updateSeparatorProps:v}){let y=Zx({disabled:o,disableDoubleClick:s,children:r,className:i,preview:d,style:m}),[b,x]=(0,h.useState)({}),[S,C]=(0,h.useState)(`inactive`),[w,T]=(0,h.useState)(!1),E=(0,h.useRef)(null),D=(0,h.useRef)(null),O=xb(E,c),k=n===`horizontal`?`vertical`:`horizontal`;yb(()=>{let e=E.current;if(e!==null){let n={disabled:y.disabled,disableDoubleClick:y.disableDoubleClick,element:e,id:l,get children(){return y.children},get className(){return y.className},get preview(){return y.preview},get style(){return y.style}};D.current=n;let r=f(n),i=Ob(e=>{C(e.next.state!==`inactive`&&e.next.hitRegions.some(e=>e.separator===n||(u?.(e)??!1))?e.next.state:`inactive`)}),a=cx(t,e=>{let{derivedItemConstraints:t,layout:r,separatorToItems:i}=e.next,a=i.get(n);if(a){let n=a[0],i=t.findIndex(e=>e.itemId===n.id),{layoutStrategy:o}=e.axis;x({..._re({layout:r,itemConstraints:t,itemId:n.id,itemIndex:i}),...o?.getItemAriaControls&&{valueControls:o.getItemAriaControls(n.id)}})}});return()=>{D.current=null,i(),a(),r()}}},[t,l,u,f,y]),yb(()=>{let e=D.current;e&&Vne(e)},[d]),(0,h.useEffect)(()=>{v(l,{disabled:o,disableDoubleClick:s})},[o,s,l,v]);let A;o&&!a&&(A=`not-allowed`);let j;if(o)j=`disabled`;else switch(S){case`active`:j=`active`;break;default:j=w?`focus`:S}return(0,U.jsx)(`div`,{...e,"aria-controls":b.valueControls,"aria-disabled":o||void 0,"aria-orientation":k,"aria-valuemax":b.valueMax,"aria-valuemin":b.valueMin,"aria-valuenow":b.valueNow,children:r,className:i,"data-separator":j,"data-testid":l,id:l,onBlur:()=>T(!1),onFocus:()=>T(!0),ref:O,role:`separator`,style:{...g,cursor:A,...m,...p,touchAction:`none`},tabIndex:o?void 0:_})}function yre(e){for(let t=1;t0)return!1;return!0}function bre({separator:e}){let{element:t}=e,n=(0,h.useRef)(null);return yb(()=>{let e=t.cloneNode(!0),r=[t,...t.querySelectorAll(`*`)],i=[e,...e.querySelectorAll(`*`)],a=t.ownerDocument.defaultView;return r.forEach((e,t)=>{let n=i[t];if(n instanceof a.HTMLElement||n instanceof a.SVGElement){let t=a.getComputedStyle(e);for(let e=0;ee.remove()},[t]),(0,U.jsx)(`div`,{ref:n,style:{height:`100%`,opacity:.65,pointerEvents:`none`,width:`100%`}})}function $x(){let e=(0,h.useContext)(Qx);return Sb(e,`Group Context not found; did you render a Panel or Separator outside of a Group?`),e}function eS(e){let{registerOverlay:t}=$x(),n=(0,h.useRef)(e);Jx(n.current,e)||(n.current=e);let r=n.current;return yb(()=>t(r),[t,r]),null}eS.displayName=`SeparatorOverlay`;function xre({active:e,orientation:t,style:n,...r}){let i;switch(t){case`horizontal`:i={height:`100%`,minWidth:`1px`};break;case`vertical`:i={minHeight:`1px`,width:`100%`}}return(0,U.jsx)(`div`,{...r,"data-separator-overlay":e?`active`:`inactive`,style:{...i,...n,flexShrink:0,pointerEvents:`none`}})}function Sre({overlay:e,preview:t}){let{axis:n,offset:r,rect:i,separator:a}=t,o=n.orientation===`horizontal`,s=a?.preview,c=e;return(0,h.isValidElement)(s)&&s.type===eS&&(c=s.props,s=void 0),s??(c?s=(0,U.jsx)(xre,{...c,active:t.active,orientation:n.orientation}):a&&(s=(0,U.jsx)(bre,{separator:a}))),(0,U.jsx)(`div`,{"aria-hidden":`true`,"data-resize-preview":!0,inert:!0,style:{height:i.height,left:i.left,pointerEvents:`none`,position:`absolute`,top:i.top,transform:o?`translateX(${r}px)`:`translateY(${r}px)`,width:i.width},children:s})}function Cre(e){return Array.from(e).sort(Ub)}function wre(e,t){let n=(0,h.useRef)({getLayout:()=>({}),setLayout:Une});(0,h.useImperativeHandle)(t,()=>n.current,[]),yb(()=>{Object.assign(n.current,Mx({axisId:e}))})}function Tre({groupId:e,resizePreviewMode:t}){let[n,r]=(0,h.useState)([]),i=(0,h.useRef)(n);return yb(()=>{let n=n=>{let a=ax(e),o=t===`separator`&&n.state===`active`?n.previews.filter(e=>e.axis===a&&(e.active||!fx(e.offset,0))):[],s=i.current;s.length===o.length&&o.every((e,t)=>e===s[t])||(i.current=o,r(o))};if(t!==`separator`){n(Db());return}let a=Ob(({next:e})=>n(e));return n(Db()),a},[e,t]),n}function tS({children:e,className:t,defaultLayout:n,disableCursor:r,disabled:i,elementRef:a,groupRef:o,id:s,onLayoutChange:c,onLayoutChanged:l,orientation:u=`horizontal`,resizePreviewMode:d=`panel`,resizeTargetMinimumSize:f={coarse:20,fine:10},style:p,...m}){let g=(0,h.useRef)({onLayoutChange:{},onLayoutChanged:{}}),_=bb(e=>{gx(g.current.onLayoutChange,e)||(g.current.onLayoutChange=e,c?.(e))}),v=bb((e,t,n)=>{gx(g.current.onLayoutChanged,e)||(g.current.onLayoutChanged=e,l?.(e,{isUserInteraction:t,requestedLayout:n}))}),y=vb(s),[b,x]=(0,h.useState)(),S=Tre({groupId:y,resizePreviewMode:d}),C=(0,h.useRef)(null),[w,T]=gre(),E=(0,h.useRef)([]),D=(0,h.useRef)({lastExpandedPanelSizes:{},layouts:{},panels:[],separators:[]}),O=xb(C,a);wre(y,o);let k=bb((e,t)=>{let r=ox(e);if(r)return{flexGrow:r.layout[t]??1};if(n?.[t])return{flexGrow:n?.[t]}}),A=Zx({defaultLayout:n,disableCursor:r,resizeTargetMinimumSize:f}),j=(0,h.useMemo)(()=>({get disableCursor(){return!!A.disableCursor},getPanelStyles:k,id:y,orientation:u,registerPanel:e=>{let t=D.current;return t.panels=Wb(u,[...t.panels,e]),T(),()=>{t.panels=t.panels.filter(t=>t!==e),T()}},registerOverlay:e=>(x(e),()=>{x(void 0)}),registerSeparator:e=>{let t=D.current;return t.separators=Wb(u,[...t.separators,e]),T(),()=>{t.separators=t.separators.filter(t=>t!==e),T()}},updatePanelProps:(e,{disabled:t})=>{let n=D.current.panels.find(t=>t.id===e);n&&(n.constraintProps.disabled=t);let r=ax(y),i=ox(y);r&&i&&lx(r,{...i,derivedItemConstraints:Xb(r)})},updateSeparatorProps:(e,{disabled:t,disableDoubleClick:n})=>{let r=D.current.separators.find(t=>t.id===e);r&&(r.disabled=t,r.disableDoubleClick=n)}}),[k,y,T,u,A]),M=(0,h.useRef)(null);return yb(()=>{let e=C.current;if(e===null)return;let t=D.current;t.panels=Wb(u,t.panels),t.separators=Wb(u,t.separators),E.current=Cre([...t.panels.map(({element:e})=>e),...t.separators.map(({element:e})=>e)]);let n;if(A.defaultLayout!==void 0&&Object.keys(A.defaultLayout).length===t.panels.length){n={};for(let e of t.panels){let t=A.defaultLayout[e.id];t!==void 0&&(n[e.id]=t)}}let r={disabled:!!i,element:e,id:y,mutableState:{defaultLayout:n,disableCursor:!!A.disableCursor,expandedItemSizes:D.current.lastExpandedPanelSizes,layouts:D.current.layouts},orientation:u,items:t.panels,resizePreviewMode:d,get resizeTargetMinimumSize(){return A.resizeTargetMinimumSize},separators:t.separators};M.current=r;let a=mre(r),{defaultLayoutDeferred:o,derivedItemConstraints:s,layout:c,requestedLayout:l}=ox(r.id,!0);if(!o&&s.length>0)try{try{_(c)}finally{v(c,!1,l)}}catch(e){throw M.current=null,a(),e}let f=cx(y,e=>{let{defaultLayoutDeferred:t,derivedItemConstraints:n,layout:i,requestedLayout:a}=e.next;if(t||n.length===0)return;hre({derivedItemConstraints:n,axis:r,layout:i,prevLayout:e.prev?.layout,requestedLayout:a});let o=Db(),s=o.state!==`active`||!o.hitRegions.some(e=>e.axis===r);try{_(i)}finally{s&&v(i,e.isUserInteraction,a)}});return()=>{M.current=null,a(),f()}},[i,y,v,_,u,w,d,A]),yb(()=>{yre(E.current)||T()}),(0,h.useEffect)(()=>{let e=M.current;e&&(e.mutableState.defaultLayout=n,e.mutableState.disableCursor=!!r)}),(0,U.jsx)(Qx.Provider,{value:j,children:(0,U.jsxs)(`div`,{...m,className:t,"data-group":!0,"data-testid":y,id:y,ref:O,style:{height:`100%`,width:`100%`,overflow:`hidden`,position:d===`separator`?`relative`:void 0,...p,display:`flex`,flexDirection:u===`horizontal`?`row`:`column`,flexWrap:`nowrap`,touchAction:u===`horizontal`?`pan-y`:`pan-x`},children:[e,S.map(e=>(0,U.jsx)(Sre,{overlay:b,preview:e},e.key))]})})}tS.displayName=`Group`;function nS(e,t){return`react-resizable-panels:${[e,...t].join(`:`)}`}function rS({id:e,panelIds:t,storage:n}){let r=nS(e,[]),i=n.getItem(r);if(i)try{let e=JSON.parse(i);if(t){let n=e[t.join(`,`)];if(n&&Array.isArray(n.layout)&&t.length===n.layout.length){let e={};for(let r=0;rr.getItem(s),()=>r.getItem(s)),l=(0,h.useMemo)(()=>{if(c){let e=JSON.parse(c),t=Object.values(e);if(Array.from(t).every(e=>typeof e==`number`))return e}},[c]),u=(0,h.useMemo)(()=>{if(!l)return rS({id:o,panelIds:n,storage:r})},[l,o,n,r]),d=l??u,f=(0,h.useRef)(null),p=(0,h.useCallback)(()=>{let e=f.current;e&&(f.current=null,clearTimeout(e))},[]);(0,h.useLayoutEffect)(()=>()=>{p()},[p]);let m=(0,h.useCallback)((e,n)=>{if(t&&!n.isUserInteraction)return;p();let i=n.requestedLayout??e,s;s=a?nS(o,Object.keys(i)):nS(o,[]);try{r.setItem(s,JSON.stringify(i))}catch(e){console.error(e)}},[p,a,o,t,r]);return{defaultLayout:d,onLayoutChange:(0,h.useCallback)(t=>{p(),e===0?m(t,{isUserInteraction:!1}):f.current=setTimeout(()=>{m(t,{isUserInteraction:!1})},e)},[p,e,m]),onLayoutChanged:m}}function aS(){return function(){}}function oS(e,t){let{id:n}=$x(),r=(0,h.useRef)({collapse:Ab,expand:Ab,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:Ab});(0,h.useImperativeHandle)(t,()=>r.current,[]),yb(()=>{Object.assign(r.current,kx({axisId:n,itemId:e}))})}function sS({children:e,className:t,collapsedSize:n=`0%`,collapsedThreshold:r,collapsible:i=!1,defaultSize:a,disabled:o,elementRef:s,groupResizeBehavior:c=`preserve-relative-size`,id:l,maxSize:u=`100%`,minSize:d=`0%`,onResize:f,panelRef:p,style:m,...g}){let _=!!l,v=vb(l),y=Zx({disabled:o}),b=(0,h.useRef)(null),x=xb(b,s),{getPanelStyles:S,id:C,orientation:w,registerPanel:T,updatePanelProps:E}=$x(),D=f!==null,O=bb((e,t,n)=>{f?.(e,l,n)});yb(()=>{let e=b.current;if(e!==null){let t={element:e,id:v,idIsStable:_,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:D?O:void 0,constraintProps:{groupResizeBehavior:c,collapsedSize:n,collapsedThreshold:r,collapsible:i,defaultSize:a,disabled:y.disabled,maxSize:u,minSize:d}};return T(t)}},[c,n,r,i,a,D,v,_,u,d,O,T,y]),(0,h.useEffect)(()=>{E(v,{disabled:o})},[o,v,E]),oS(v,p);let k=()=>{let e=S(C,v);if(e)return JSON.stringify(e)},A=(0,h.useSyncExternalStore)(e=>cx(C,e),k,k),j;return j=A?JSON.parse(A):a===void 0?{flexGrow:1}:{flexGrow:void 0,flexShrink:void 0,flexBasis:a},(0,U.jsx)(`div`,{...g,"data-disabled":o||void 0,"data-panel":!0,"data-testid":v,id:v,ref:x,style:{...cS,display:`flex`,flexBasis:0,flexShrink:1,overflow:`visible`,...j},children:(0,U.jsx)(`div`,{className:t,style:{maxHeight:`100%`,maxWidth:`100%`,flexGrow:1,overflow:`auto`,...m,touchAction:w===`horizontal`?`pan-y`:`pan-x`},children:e})})}sS.displayName=`Panel`;var cS={minHeight:0,maxHeight:`100%`,height:`auto`,minWidth:0,maxWidth:`100%`,width:`auto`,border:`none`,borderWidth:0,padding:0,margin:0};function lS(){return(0,h.useRef)(null)}var uS={flexBasis:`auto`},dS={flexGrow:0,flexShrink:0};function fS({children:e,className:t,disabled:n,disableDoubleClick:r,elementRef:i,id:a,preview:o,style:s,...c}){let l=vb(a),{disableCursor:u,id:d,orientation:f,registerSeparator:p,updateSeparatorProps:m}=$x();return(0,U.jsx)(vre,{attributes:c,axisId:d,axisOrientation:f,className:t,disableCursor:u,disabled:n,disableDoubleClick:r,elementRef:i,id:l,preview:o,registerSeparator:p,requiredStyle:dS,style:s,styleDefaults:uS,updateSeparatorProps:m,children:e})}fS.displayName=`Separator`;function pS(e){return{...e,dashboard:{...e.dashboard,panels:e.dashboard.panels??[],variables:e.dashboard.variables??[]},results:(e.results??[]).map(e=>e.frame?{...e,frame:{...e.frame,columns:e.frame.columns??[],rows:e.frame.rows??[]}}:e)}}function mS(e){return e?e.rows.map(t=>Object.fromEntries(e.columns.map((e,n)=>[e.name,t[n]??null]))):[]}var hS=function(e,t){return hS=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},hS(e,t)};function gS(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);hS(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var _S=`12px sans-serif`,vS=20,yS=100,bS=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function xS(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n=0)s=o*n.length;else for(var c=0;c=kre&&(MS=0),MS++}function PS(){var e=[...arguments];typeof console<`u`&&console.error.apply(console,e)}function FS(e){if(typeof e!=`object`||!e)return e;var t=e,n=ES.call(e);if(n===`[object Array]`){if(!pC(e)){t=[];for(var r=0,i=e.length;r`u`&&typeof self<`u`?SC.worker=!0:!SC.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(SC.node=!0,SC.svgSupported=!0):CC(navigator.userAgent,SC);function CC(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);if(r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(`.`)[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<`u`,t.touchEventsSupported=`ontouchstart`in window&&!n.ie&&!n.edge,t.pointerEventsSupported=`onpointerdown`in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<`u`){var s=document.documentElement.style;t.transform3dSupported=(n.ie&&`transition`in s||n.edge||`WebKitCSSMatrix`in window&&`m11`in new WebKitCSSMatrix||`MozPerspective`in s)&&!(`OTransition`in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}var wC=`.`,TC=`___EC__COMPONENT__CONTAINER___`,EC=`___EC__EXTENDED_CLASS___`;function DC(e){var t={main:``,sub:``};if(e){var n=e.split(wC);t.main=n[0]||``,t.sub=n[1]||``}return t}function OC(e){lC(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function kC(e){return!!(e&&e[EC])}function AC(e,t){e.$constructor=e,e.extend=function(e){var t=this,n;return jC(t)?n=function(e){gS(t,e);function t(){return e.apply(this,arguments)||this}return t}(t):(n=function(){(e.$constructor||t).apply(this,arguments)},Mre(n,this)),Y(n.prototype,e),n[EC]=!0,n.extend=this.extend,n.superCall=FC,n.superApply=IC,n.superClass=t,n}}function jC(e){return JS(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function MC(e,t){e.extend=t.extend}var NC=Math.round(Math.random()*10);function PC(e){var t=[`__\0is_clz`,NC++].join(`_`);e.prototype[t]=!0,e.isInstance=function(e){return!!(e&&e[t])}}function FC(e,t){var n=[...arguments].slice(2);return this.superClass.prototype[t].apply(e,n)}function IC(e,t,n){return this.superClass.prototype[t].apply(e,n)}function LC(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){OC(r),e.prototype.type=r;var i=DC(r);if(!i.sub)t[i.main]=e;else if(i.sub!==TC){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[TC]&&(i=n?i[n]:null),r&&!i)throw Error(n?`Component `+e+`.`+(n||``)+` is used but not imported.`:e+`.type should be specified.`);return i},e.getClassesByMainType=function(e){var n=DC(e),r=[],i=t[n.main];return i&&i[TC]?X(i,function(e,t){t!==TC&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[DC(e).main]},e.getAllClassMainTypes=function(){var e=[];return X(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[DC(e).main];return n&&n[TC]};function n(e){var n=t[e.main];return n&&n[TC]||(n=t[e.main]={},n[TC]=!0),n}}function RC(e,t){for(var n=0;n=0||i&&RS(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var zC=RC([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),BC=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return zC(this,e,t)},e}(),VC=function(e,t){return VC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},VC(e,t)};function HC(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);VC(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var UC=function(){function e(e){this.value=e}return e}(),WC=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new UC(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),GC=function(){function e(e){this._list=new WC,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(r[e]==null){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new UC(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),KC=new GC(50);function qC(e){if(typeof e==`string`){var t=KC.get(e);return t&&t.image}return e}function JC(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=KC.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!XC(t)&&a.pending.push(o)):(t=CS.loadImage(e,YC,YC),t.__zrImageSrc=e,KC.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}return e}function YC(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;tu||d>f||p>m||h>g)return!1;var _=!(u=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},e.prototype.contain=function(t,n){return e.contain(this,t,n)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(e){Mw(this,e)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},e.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},e.applyTransform=function(e,t,n){if(!n)e!==t&&Mw(e,t);else if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var r=n[0],i=n[3],a=n[4],o=n[5];e.x=t.x*r+a,e.y=t.y*i+o,e.width=t.width*r,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height)}else{xw.x=Cw.x=t.x,xw.y=ww.y=t.y,Sw.x=ww.x=t.x+t.width,Sw.y=Cw.y=t.y+t.height,xw.transform(n),ww.transform(n),Sw.transform(n),Cw.transform(n),e.x=_w(xw.x,Sw.x,Cw.x,ww.x),e.y=_w(xw.y,Sw.y,Cw.y,ww.y);var s=vw(xw.x,Sw.x,Cw.x,ww.x),c=vw(xw.y,Sw.y,Cw.y,ww.y);e.width=s-e.x,e.height=c-e.y}},e.calculateTransform=function(e,t,n){var r=n.width/t.width,i=n.height/t.height;return e=QC(e||[]),tw(e,e,ow(Pw,-t.x,-t.y)),zre(e,e,ow(Pw,r,i)),tw(e,e,ow(Pw,n.x,n.y)),e},e}(),Aw=kw.create,jw=kw.set,Mw=kw.copy,Nw=kw.calculateTransform,Kre=kw.applyTransform,qre=kw.contain,Jre=new kw(0,0,0,0),Yre=new kw(0,0,0,0),Pw=[];function Fw(e,t,n,r,i,a,o,s){var c=yw(t-n),l=yw(r-e),u=_w(c,l),d=bw[i],f=bw[1-i],p=Gre[i];t=l||!Tw.bidirectional)&&(Ew[d]=-l,Ew[f]=0,Tw.useDir&&Tw.calcDirMTV())))}function Iw(){var e=0,t=new gw,n=new gw,r={minTv:new gw,maxTv:new gw,useDir:!1,dirMinTv:new gw,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=vw(0,i.touchThreshold)),r.negativeSize=!1,a&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&i.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),e=i.direction,r.bidirectional=i.bidirectional==null||!!i.bidirectional,r.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=r.minTv,o=r.dirMinTv,s=a.y*a.y+a.x*a.x,c=Math.sin(e),l=Math.cos(e),u=c*a.y+l*a.x;i(u)?i(a.x)&&i(a.y)&&o.set(0,0):(n.x=s*l/u,n.y=s*c/u,i(n.x)&&i(n.y)?o.set(0,0):(r.bidirectional||t.dot(n)>0)&&n.len()=Bw)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=CS.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?zw=Bw:i>2&&zw++,t}}var zw=0,Bw=5;function Vw(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=Xre(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function Hw(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=CS.measureText(t,e.font).width,n.put(t,r)),r}function Uw(e,t,n,r){var i=Hw(Lw(t),e),a=qw(t);return new kw(Gw(0,i,n),Kw(0,a,r),i,a)}function Ww(e,t,n,r){var i=((e||``)+``).split(` +`);if(i.length===1)return Uw(i[0],t,n,r);for(var a=new kw(0,0,0,0),o=0;o=0?parseFloat(e)/100*t:parseFloat(e):e}function Yw(e,t,n){var r=t.position||`inside`,i=t.distance==null?5:t.distance,a=n.height,o=n.width,s=a/2,c=n.x,l=n.y,u=`left`,d=`top`;if(r instanceof Array)c+=Jw(r[0],n.width),l+=Jw(r[1],n.height),u=null,d=null;else switch(r){case`left`:c-=i,l+=s,u=`right`,d=`middle`;break;case`right`:c+=i+o,l+=s,d=`middle`;break;case`top`:c+=o/2,l-=i,u=`center`,d=`bottom`;break;case`bottom`:c+=o/2,l+=a+i,u=`center`;break;case`inside`:c+=o/2,l+=s,u=`center`,d=`middle`;break;case`insideLeft`:c+=i,l+=s,d=`middle`;break;case`insideRight`:c+=o-i,l+=s,u=`right`,d=`middle`;break;case`insideTop`:c+=o/2,l+=i,u=`center`;break;case`insideBottom`:c+=o/2,l+=a-i,u=`center`,d=`bottom`;break;case`insideTopLeft`:c+=i,l+=i;break;case`insideTopRight`:c+=o-i,l+=i,u=`right`;break;case`insideBottomLeft`:c+=i,l+=a-i,d=`bottom`;break;case`insideBottomRight`:c+=o-i,l+=a-i,u=`right`,d=`bottom`}return e||={},e.x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var Xw=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Zre(e,t,n,r,i,a){if(!n)e.text=``,e.isTruncated=!1;else{var o=(t+``).split(` +`);a=Zw(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l=s;l++)c-=s;var u=Hw(o,n);return u>c&&(n=``,u=0),c=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=c,i.containerWidth=e,i}function Qw(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r)e.textLine=``,e.isTruncated=!1;else{var o=Hw(a,t);if(o<=r)e.textLine=t,e.isTruncated=!1;else{for(var s=0;;s++){if(o<=i||s>=n.maxIterations){t+=n.ellipsis;break}var c=s===0?Qre(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,c),o=Hw(a,t)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}}}function Qre(e,t,n){for(var r=0,i=0,a=e.length;ig&&p){var y=Math.floor(g/f);m||=_.length>y,_=_.slice(0,y),v=_.length*f}if(i&&u&&h!=null)for(var b=Zw(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)Qw(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=Lw(l),S=0;S<_.length;S++)w=Math.max(Hw(T,_[S]),w);h??=w;var E=h;return C+=c,E+=s,{lines:_,height:g,outerWidth:E,outerHeight:C,lineHeight:f,calculatedLineHeight:d,contentWidth:w,contentHeight:v,width:h,isTruncated:m}}var eie=function(){function e(){}return e}(),$w=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),tie=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function nie(e,t,n,r,i){var a=new tie,o=aT(e);if(!o)return a;var s=t.padding,c=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,u=t.width;u==null&&n!=null&&(u=n-c);var d=t.height;d==null&&r!=null&&(d=r-l);for(var f=t.overflow,p=(f===`break`||f===`breakAll`)&&u!=null?{width:u,accumWidth:0,breakAll:f===`breakAll`}:null,m=Xw.lastIndex=0,h;(h=Xw.exec(o))!=null;){var g=h.index;g>m&&eT(a,o.substring(m,g),t,p),eT(a,h[2],t,p,h[1]),m=Xw.lastIndex}md){var F=a.lines.length;O>0?(T.tokens=T.tokens.slice(0,O),C(T,D,E),a.lines=a.lines.slice(0,w+1)):a.lines=a.lines.slice(0,w),a.isTruncated=a.isTruncated||a.lines.length0&&m+r.accumWidth>r.width&&(u=t.split(` +`),l=!0),r.accumWidth=m}else{var h=tT(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||=t.split(` +`);for(var g=Lw(c),_=0;_=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var iie=HS(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function aie(e){return!rie(e)||!!iie[e]}function tT(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=Lw(t),f=0;fn:i+u+m>n)?u?(s||c)&&(h?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=p,l+=m,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m)):(u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p))}}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function nT(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=t.width*2,s=t.height*2;kw.set(rT,Gw(n,o,i),Kw(r,s,a),o,s),kw.intersect(t,rT,null,iT);var c=iT.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=Gw(c.x,c.width,i,!0),e.baseY=Kw(c.y,c.height,a,!0)}}var rT=new kw(0,0,0,0),iT={outIntersectRect:{},clamp:!0};function aT(e){return e==null?e=``:e+=``}function oie(e){var t=aT(e.text),n=e.font;return oT(e,Hw(Lw(n),t),qw(n),null)}function oT(e,t,n,r){var i=new kw(Gw(e.x||0,t,e.textAlign),Kw(e.y||0,n,e.textBaseline),t,n),a=r??(sT(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function sT(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var cT=QC,lT=5e-5;function uT(e){return e>lT||e<-lT}var dT=[],fT=[],pT=ZC(),mT=Math.abs,hT=function(){function e(){}return e.prototype.getLocalTransform=function(e){return gT(this,e)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return uT(this.rotation)||uT(this.x)||uT(this.y)||uT(this.scaleX-1)||uT(this.scaleY-1)||uT(this.skewX)||uT(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n||=ZC(),t?this.getLocalTransform(n):cT(n),e&&(t?ew(n,e,n):$C(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||ZC(),rw(this.invTransform,n)):n&&(cT(n),this.invTransform=null)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(dT);var n=dT[0]<0?-1:1,r=dT[1]<0?-1:1,i=((dT[0]-n)*t+n)/dT[0]||0,a=((dT[1]-r)*t+r)/dT[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||ZC(),ew(fT,e.invTransform,t),t=fT);var n=this.originX,r=this.originY;(n||r)&&(pT[4]=n,pT[5]=r,ew(fT,t,pT),fT[4]-=n,fT[5]-=r,t=fT),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&pw(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&pw(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&mT(e[0]-1)>1e-10&&mT(e[3]-1)>1e-10?Math.sqrt(mT(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){yT(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&nw(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e}(),gT=hT.getLocalTransform;function _T(){return new hT}var vT=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function yT(e,t){return jre(e,t,vT)}var bT={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(2**(-10*(e-1)))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-bT.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?bT.bounceIn(e*2)*.5:bT.bounceOut(e*2-1)*.5+.5}},xT=Math.pow,ST=Math.sqrt,CT=1e-8,wT=1e-4,TT=ST(3),ET=1/3,DT=iw(),OT=iw(),kT=iw();function AT(e){return e>-CT&&eCT||e<-CT}function MT(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function NT(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function PT(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(AT(u)&&AT(d)){if(AT(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}}else{var h=d*d-4*u*f;if(AT(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=ST(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-xT(-y,ET):xT(y,ET),b=b<0?-xT(-b,ET):xT(b,ET);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*ST(u*u*u)),S=Math.acos(x)/3,C=ST(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+TT*Math.sin(S)))/(3*o),T=(-s+C*(w-TT*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function FT(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(AT(o)){if(jT(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(AT(u))i[0]=-a/(2*o);else if(u>0){var d=ST(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function IT(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function sie(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;DT[0]=c,DT[1]=l;for(var v=0;v<1;v+=.05)OT[0]=MT(e,n,i,o,v),OT[1]=MT(t,r,a,s,v),g=fw(DT,OT),g=0&&g=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(AT(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=ST(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function zT(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function BT(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function uie(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;DT[0]=o,DT[1]=s;for(var f=0;f<1;f+=.05){OT[0]=LT(e,n,i,f),OT[1]=LT(t,r,a,f);var p=fw(DT,OT);p=0&&p=1?1:PT(0,r,a,1,e,s)&&MT(0,i,o,1,s[0])}}}var pie=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||yC,this.ondestroy=e.ondestroy||yC,this.onrestart=e.onrestart||yC,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused)this._pausedTime+=t;else{var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1){if(this.loop){var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}else return!0}return!1}},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=JS(e)?e:bT[e]||VT(e)},e}(),HT={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function UT(e){return e=Math.round(e),e<0?0:e>255?255:e}function mie(e){return e=Math.round(e),e<0?0:e>360?360:e}function WT(e){return e<0?0:e>1?1:e}function GT(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?UT(parseFloat(t)/100*255):UT(parseInt(t,10))}function KT(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?WT(parseFloat(t)/100):WT(parseFloat(t))}function qT(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function JT(e,t,n){return e+(t-e)*n}function YT(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function XT(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var ZT=new GC(20),QT=null;function $T(e,t){QT&&XT(QT,t),QT=ZT.put(e,QT||t.slice())}function eE(e,t){if(e){t||=[];var n=ZT.get(e);if(n)return XT(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in HT)return XT(t,HT[r]),$T(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){YT(t,0,0,0,1);return}return YT(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),$T(e,t),t}if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){YT(t,0,0,0,1);return}return YT(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),$T(e,t),t}}else{var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?YT(t,+l[0],+l[1],+l[2],1):YT(t,0,0,0,1);u=KT(l.pop());case`rgb`:if(l.length>=3)return YT(t,GT(l[0]),GT(l[1]),GT(l[2]),l.length===3?u:KT(l[3])),$T(e,t),t;YT(t,0,0,0,1);return;case`hsla`:if(l.length!==4){YT(t,0,0,0,1);return}return l[3]=KT(l[3]),tE(l,t),$T(e,t),t;case`hsl`:if(l.length!==3){YT(t,0,0,0,1);return}return tE(l,t),$T(e,t),t;default:return}}YT(t,0,0,0,1)}}}function tE(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=KT(e[1]),i=KT(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],YT(t,UT(qT(o,a,n+1/3)*255),UT(qT(o,a,n)*255),UT(qT(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function nE(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function rE(e,t){var n=eE(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return cE(n,n.length===4?`rgba`:`rgb`)}}function iE(e,t,n){if(t&&t.length&&e>=0&&e<=1){n||=[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],c=r-i;return n[0]=UT(JT(o[0],s[0],c)),n[1]=UT(JT(o[1],s[1],c)),n[2]=UT(JT(o[2],s[2],c)),n[3]=WT(JT(o[3],s[3],c)),n}}function aE(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=eE(t[i]),s=eE(t[a]),c=r-i,l=cE([UT(JT(o[0],s[0],c)),UT(JT(o[1],s[1],c)),UT(JT(o[2],s[2],c)),WT(JT(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}function oE(e,t,n,r){var i=eE(e);if(e)return i=nE(i),t!=null&&(i[0]=mie(JS(t)?t(i[0]):t)),n!=null&&(i[1]=KT(JS(n)?n(i[1]):n)),r!=null&&(i[2]=KT(JS(r)?r(i[2]):r)),cE(tE(i),`rgba`)}function sE(e,t){var n=eE(e);if(n&&t!=null)return n[3]=WT(t),cE(n,`rgba`)}function cE(e,t){if(e&&e.length){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function lE(e,t){var n=eE(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var uE=new GC(100);function dE(e){if(YS(e)){var t=uE.get(e);return t||(t=rE(e,-.1),uE.put(e,t)),t}if(nC(e)){var n=Y({},e);return n.colorStops=VS(e.colorStops,function(e){return{offset:e.offset,color:rE(e.color,-.1)}}),n}return e}var fE=Math.round;function pE(e){var t;if(!e||e===`transparent`)e=`none`;else if(typeof e==`string`&&e.indexOf(`rgba`)>-1){var n=eE(e);n&&(e=`rgb(`+n[0]+`,`+n[1]+`,`+n[2]+`)`,t=n[3])}return{color:e,opacity:t??1}}var mE=1e-4;function hE(e){return e-mE}function gE(e){return fE(e*1e3)/1e3}function _E(e){return fE(e*1e4)/1e4}function vE(e){return`matrix(`+gE(e[0])+`,`+gE(e[1])+`,`+gE(e[2])+`,`+gE(e[3])+`,`+_E(e[4])+`,`+_E(e[5])+`)`}var yE={left:`start`,right:`end`,center:`middle`,middle:`middle`};function bE(e,t,n){return n===`top`?e+=t/2:n===`bottom`&&(e-=t/2),e}function xE(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function SE(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(`,`)}function CE(e){return e&&!!e.image}function wE(e){return e&&!!e.svgElement}function TE(e){return CE(e)||wE(e)}function EE(e){return e.type===`linear`}function DE(e){return e.type===`radial`}function OE(e){return e&&(e.type===`linear`||e.type===`radial`)}function kE(e){return`url(#`+e+`)`}function AE(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function jE(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*bC,i=aC(e.scaleX,1),a=aC(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,c=[];return(t||n)&&c.push(`translate(`+t+`px,`+n+`px)`),r&&c.push(`rotate(`+r+`)`),(i!==1||a!==1)&&c.push(`scale(`+i+`,`+a+`)`),(o||s)&&c.push(`skew(`+fE(o*bC)+`deg, `+fE(s*bC)+`deg)`),c.join(` `)}var ME=(function(){return typeof Buffer<`u`&&typeof Buffer.from==`function`?function(e){return Buffer.from(e).toString(`base64`)}:typeof btoa==`function`&&typeof unescape==`function`&&typeof encodeURIComponent==`function`?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null}})(),NE=Array.prototype.slice;function PE(e,t,n){return(t-e)*n+e}function FE(e,t,n,r){for(var i=t.length,a=0;ar?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so)r.length=o;else for(var s=a;s=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=XE,s=t;if(BS(t)){var c=UE(t);o=c,(c===1&&!ZS(t[0])||c===2&&!ZS(t[0][0]))&&(a=!0)}else if(ZS(t)&&!rC(t))o=WE;else if(YS(t)){if(!isNaN(+t))o=WE;else{var l=eE(t);l&&(s=l,o=qE)}}else if(nC(t)){var u=Y({},s);u.colorStops=VS(t.colorStops,function(e){return{offset:e.offset,color:eE(e.color)}}),EE(t)?o=JE:DE(t)&&(o=YE),s=u}i===0?this.valType=o:(o!==this.valType||o===XE)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=JS(n)?n:bT[n]||VT(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=QE(r),c=ZE(r),l=0;l=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;lt);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?$E:e[s];if((QE(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(QE(i))i===GE?FE(g,f[r],p[r],h):IE(g,f[r],p[r],h);else if(ZE(i)){var _=f[r],v=p[r],y=i===JE;e[s]={type:y?`linear`:`radial`,x:PE(_.x,v.x,h),y:PE(_.y,v.y,h),colorStops:VS(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:PE(e.offset,n.offset,h),color:HE(FE([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=PE(_.x2,v.x2,h),e[s].y2=PE(_.y2,v.y2,h)):e[s].r=PE(_.r,v.r,h)}else if(c)FE(g,f[r],p[r],h),n||(e[s]=HE(g));else{var b=PE(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===WE?e[n]=e[n]+r:t===qE?(eE(e[n],$E),LE($E,$E,r,1),e[n]=HE($E)):t===GE?LE(e[n],e[n],r,1):t===KE&&RE(e[n],e[n],r,1)},e}(),tD=function(){function e(e,t,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r?PS(`Can' use additive animation on looped animation.`):(this._additiveAnimators=r,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,GS(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a0&&s.addKeyframe(0,VE(c),r),this._trackKeys.push(o)}s.addKeyframe(e,VE(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}(),nD=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o=0:n.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y===`auto`)&&(y=this.getInsideTextFill()),(b==null||b===`auto`)&&(b=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y===`auto`)&&(y=this.getOutsideFill()),(b==null||b===`auto`)&&(b=this.getOutsideStroke(y),x=!0)),y||=`#000`,(y!==g.fill||b!==g.stroke||x!==g.autoStroke||a!==g.align||o!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=b,g.autoStroke=x,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?sD:oD},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&eE(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,cE(n,`rgba`)},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){e===`textConfig`?this.setTextConfig(t):e===`textContent`?this.setTextContent(t):e===`clipPath`?this.setClipPath(t):e===`extra`?(this.extra=this.extra||{},Y(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(QS(e))for(var n=GS(e),r=0;r0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(lD,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===lD;if(this.hasState()||!i){var a=this.currentStates,o=this.stateTransition;if(!(RS(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],!s&&!i)PS(`State `+e+` not exists.`);else{i||this.saveCurrentToNormalState(s);var c=this._textContent,l=CD(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,TD(this,n,o),o);var u=this._textGuide;return c&&c.useState(e,t,n,!!l),u&&u.useState(e,t,n,!!l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),s}}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=RS(r,e),a=RS(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f0||i.force&&!o.length){var C=void 0,w=void 0,T=void 0;if(s){w={},f&&(C={});for(var b=0;b0}var ED=`__zr_style_`+Math.round(Math.random()*10),DD={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},OD={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};DD[ED]=!0;var kD=[`z`,`z2`,`invisible`],hie=[`invisible`],AD=function(e){HC(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=GS(t),r=0;r1e-4)s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;else{if(RD[0]=ID(i)*n+e,RD[1]=FD(i)*r+t,zD[0]=ID(a)*n+e,zD[1]=FD(a)*r+t,l(s,RD,zD),u(c,RD,zD),i%=LD,i<0&&(i+=LD),a%=LD,a<0&&(a+=LD),i>a&&!o?a+=LD:ii&&(BD[0]=ID(p)*n+e,BD[1]=FD(p)*r+t,l(s,BD,s),u(c,BD,c))}}var WD={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},GD=[],KD=[],qD=[],JD=[],YD=[],XD=[],ZD=Math.min,QD=Math.max,$D=Math.cos,eO=Math.sin,tO=Math.abs,nO=Math.PI,rO=nO*2,iO=typeof Float32Array<`u`,aO=[];function oO(e){return Math.round(e/nO*1e8)/1e8%2*nO}function bie(e,t){var n=oO(e[0]);n<0&&(n+=rO);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=rO?i=n+rO:t&&n-i>=rO?i=n-rO:!t&&n>i?i=n+(rO-oO(n-i)):t&&n0&&(this._ux=tO(n/iD/e)||0,this._uy=tO(n/iD/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(WD.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=tO(e-this._xi),r=tO(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(WD.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(WD.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(WD.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),aO[0]=r,aO[1]=i,bie(aO,a),r=aO[0],i=aO[1];var o=i-r;return this.addData(WD.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=$D(i)*n+e,this._yi=eO(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(WD.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(WD.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&iO&&(this.data=new Float32Array(t));for(var n=0;n0&&a))for(var o=0;ol.length&&(this._expandData(),l=this.data);for(var u=0;u0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){qD[0]=qD[1]=YD[0]=YD[1]=Number.MAX_VALUE,JD[0]=JD[1]=XD[0]=XD[1]=-Number.MAX_VALUE;for(var e=this.data,t=0,n=0,r=0,i=0,a=0;an||tO(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case WD.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=cie(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case WD.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=die(i,a,y,b,h,g,10),i=h,a=g;break;case WD.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=$D(D)*T+C,s=eO(D)*E+w),m=QD(T,E)*ZD(rO,Math.abs(O)),i=$D(k)*T+C,a=eO(k)*E+w;break;case WD.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case WD.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x0&&(e.lineTo(y,b),v=0),S){case WD.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case WD.L:u=n[x++],d=n[x++];var w=tO(u-c),T=tO(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case WD.C:var k=n[x++],A=n[x++],j=n[x++],M=n[x++],N=n[x++],P=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;IT(c,k,j,N,D,GD),IT(l,A,M,P,D,KD),e.bezierCurveTo(GD[1],KD[1],GD[2],KD[2],GD[3],KD[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,M,N,P),c=N,l=P;break;case WD.Q:var k=n[x++],A=n[x++],j=n[x++],M=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;BT(c,k,j,D,GD),BT(l,A,M,D,KD),e.quadraticCurveTo(GD[1],KD[1],GD[2],KD[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,M),c=j,l=M;break;case WD.A:var F=n[x++],ee=n[x++],I=n[x++],L=n[x++],R=n[x++],te=n[x++],ne=n[x++],re=!n[x++],ie=I>L?I:L,ae=tO(I-L)>.001,oe=R+te,z=!1;if(f){var E=p[g++];h+E>_&&(oe=R+te*(_-h)/E,z=!0),h+=E}if(ae&&e.ellipse?e.ellipse(F,ee,I,L,ne,R,oe,re):e.arc(F,ee,ie,R,oe,re),z)break lo;C&&(o=$D(R)*I+F,s=eO(R)*L+ee),c=$D(oe)*I+F,l=eO(oe)*L+ee;break;case WD.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var se=n[x++],ce=n[x++];if(f){var E=p[g++];if(h+E>_){var B=_-h;e.moveTo(u,d),e.lineTo(u+ZD(B,se),d),B-=se,B>0&&e.lineTo(u+se,d+ZD(B,ce)),B-=ce,B>0&&e.lineTo(u+QD(se-B,0),d+ce),B-=se,B>0&&e.lineTo(u,d+QD(ce-B,0));break lo}h+=E}e.rect(u,d,se,ce);break;case WD.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=WD,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function cO(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||oe+s&&a>n+s||at+d&&u>r+d&&u>a+d&&u>s+d||ue+d&&l>n+d&&l>i+d&&l>o+d||lt+l&&c>r+l&&c>a+l||ce+l&&s>n+l&&s>i+l||sn||u+li&&(i+=dO);var f=Math.atan2(c,s);return f<0&&(f+=dO),f>=r&&f<=i||f+dO>=r&&f+dO<=i}function fO(e,t,n,r,i,a){if(a>t&&a>r||ai?s:0}var pO=sO.CMD,mO=Math.PI*2,wie=1e-4;function Tie(e,t){return Math.abs(e-t)t&&l>r&&l>a&&l>s||l1&&Eie(),p=MT(t,r,a,s,gO[0]),f>1&&(m=MT(t,r,a,s,gO[1]))),f===2?gt&&s>r&&s>a||s=0&&l<=1){for(var u=0,d=LT(t,r,a,l),f=0;fn||s<-n)return 0;var c=Math.sqrt(n*n-s*s);hO[0]=-c,hO[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=mO-1e-4){r=0,i=mO;var u=a?1:-1;return o>=hO[0]+e&&o<=hO[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=mO,i+=mO);for(var f=0,p=0;p<2;p++){var m=hO[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=mO+h),(h>=r&&h<=i||h+mO>=r&&h+mO<=i)&&(h>Math.PI/2&&h1&&(n||(s+=fO(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case pO.M:u=a[m++],d=a[m++],c=u,l=d;break;case pO.L:if(n){if(cO(c,l,a[m],a[m+1],t,r,i))return!0}else s+=fO(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case pO.C:if(n){if(xie(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Die(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case pO.Q:if(n){if(Sie(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Oie(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case pO.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=fO(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(Cie(_,v,b,x,x+S,C,t,w,i))return!0}else s+=kie(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case pO.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(cO(u,d,f,d,t,r,i)||cO(f,d,f,p,t,r,i)||cO(f,p,u,p,t,r,i)||cO(u,p,u,d,t,r,i))return!0}else s+=fO(f,d,f,p,r,i),s+=fO(u,p,u,d,r,i);break;case pO.Z:if(n){if(cO(c,l,u,d,t,r,i))return!0}else s+=fO(c,l,u,d,r,i);c=u,l=d}}return!n&&!Tie(l,d)&&(s+=fO(c,l,u,d,r,i)||0),s!==0}function Aie(e,t,n){return _O(e,0,!1,t,n)}function jie(e,t,n,r){return _O(e,t,!0,n,r)}var vO=LS({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},DD),Mie={style:LS({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},OD.style)},yO=vT.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),bO=function(e){HC(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s.5?oD:t>.2?cD:sD}if(e)return sD}return oD},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(YS(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==lE(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new sO(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),jie(a,o/s,e,t)))return!0}if(this.hasFill())return Aie(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:Y(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return gC(vO,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=Y({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){if(e.prototype._applyStateObj.call(this,t,n,r,i,a,o),this.__inHover!==1){var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=Y({},r.shape),Y(c,n.shape)):(c=Y({},i?this.shape:r.shape),Y(c,n.shape)):s&&(c=r.shape),c){if(a){this.shape=Y({},this.shape);for(var l={},u=GS(c),d=0;di&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5),e.closePath()}var CO=Math.round;function wO(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s&&(CO(r*2)===CO(i*2)&&(e.x1=e.x2=EO(r,s,!0)),CO(a*2)===CO(o*2)&&(e.y1=e.y2=EO(a,s,!0))),e}}function TO(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s&&(e.x=EO(r,s,!0),e.y=EO(i,s,!0),e.width=Math.max(EO(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(EO(i+o,s,!1)-e.y,o===0?0:1)),e}}function EO(e,t,n){if(!t)return e;var r=CO(e*2);return(r+CO(t))%2==0?r/2:(r+(n?1:-1))/2}var Rie=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),zie={},DO=function(e){HC(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Rie},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=TO(zie,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?Lie(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(bO);DO.prototype.type=`rect`;var OO={fill:`#000`},kO=2,AO={},Bie={style:LS({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},OD.style)},jO=function(e){HC(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=OO,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,T=0;T=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(s-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&VO(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=zO(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(xO),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=RO(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=LO(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=kO,_=!0,m.stroke):null),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=oC(s.opacity,t.opacity,1),PO(p,s),y&&(p.lineWidth=oC(s.lineWidth,t.lineWidth,g),p.lineDash=aC(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(oT(p,e.contentWidth,e.contentHeight,_?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(DO),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=aC(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(SO),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=aC(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=oC(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return FO(e)&&(t=[e.fontStyle,e.fontWeight,NO(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&uC(t)||e.textFont||e.font},t}(AD),Vie={left:!0,right:1,center:1},Hie={top:1,bottom:1,middle:1},MO=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function NO(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function PO(e,t){for(var n=0;n0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}var ek=qie;function qie(e,t,n){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`}return tk(e,t,n)}function tk(e,t,n){return YS(e)?nk(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function Jie(e){return YS(e)&&nk(e)}function nk(e){return!!Wie(e).match(/%$/)}function rk(e,t,n){return isNaN(t)?n?``+e:+e:(t=WO(GO(0,t),UO),e=(+e).toFixed(t),n?e:+e)}function ik(e){return e.sort(function(e,t){return e-t}),e}function ak(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(qO(e*t)/t===e)return n}return Yie(e)}function Yie(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`);return GO(0,(a<0?0:i-1-a)-r)}function ok(e,t,n){var r=KO(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=ZO(2*KO(n||1)*KO(r))/QO,a=ZO(KO(t))/QO,o=GO(0,YO(-i+a));return isFinite(o)||(o=NaN),o}function sk(e,t){var n=GO(ak(e),ak(t)),r=e+t;return n>UO?r:rk(r,n)}var ck=XO(2,53)-1;function lk(e){var t=Gie*2;return(e%t+t)%t}function uk(e){return e>-HO&&e=10&&t++,t}function mk(e,t){var n=pk(e),r=XO(10,n),i=e/r;return e=(t===2?1:t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,rk(e,-n)}function hk(e){e.sort(function(e,t){return s(e,t,0)?-1:1});for(var t=-1/0,n=1,r=0;r0?e.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx=this._end)&&(this.item=this._list[this._idx],this.key=this._idx+=this._step,!0)},e})();function Uk(){return[1/0,-1/0]}function Wk(e,t){qk(t)&&(te[1]&&(e[1]=t))}function Gk(e,t){qk(t)&&te[1]&&(e[1]=t)}function yae(e,t){Jk(t[0],t[1])&&(t[0]e[1]&&(e[1]=t[1]))}function qk(e){return e!=null&&isFinite(e)}function Jk(e,t){return qk(e)&&qk(t)&&e<=t}function bae(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function Yk(e){Jk(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function Xk(){var e=`__ec_once_`+xae++;return function(t,n){vC(t,e)||(t[e]=1,n())}}var xae=_k();function Zk(e,t,n){var r=hC(),i=0;X(e,function(a){var o=t(a),s=r.get(o)||0;n&&n(a,s),!s&&!n&&(e[i++]=a),r.set(o,s+1)}),n||(e.length=i)}function Sae(e){return e.value+``}function Cae(e){return e+``}function Qk(e,t){return aC(t,!0)?e.seriesIndex+2:0}function $k(e,t,n){var r=e.getData().count();return{progressiveRender:n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,large:e.get(`large`)&&r>=e.get(`largeThreshold`),modDataCount:e.get(`progressiveChunkMode`)===`mod`?e.getData().count():null}}function eA(e,t){return{seriesType:e,overallReset:t}}function tA(e){return{overallReset:e}}var nA=Ik(),wae=function(e,t,n,r){if(r){var i=nA(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=nA(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},rA=`series`,iA=hC([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),aA=`original`,oA=`arrayRows`,sA=`objectRows`,cA=`keyedColumns`,lA=`typedArray`,Tae=`unknown`,uA=`column`,dA=`Roam`,Eae=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],fA=function(){function e(e){X(Eae,function(t){this[t]=KS(e[t],e)},this)}return e}();function pA(e,t){return t.mainType===`series`?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var mA=1,hA={},gA=Ik(),_A=Ik(),vA=[`emphasis`,`blur`,`select`],yA=[`normal`,`emphasis`,`blur`,`select`],bA=`highlight`,xA=`downplay`,SA=`select`,CA=`unselect`,wA=`toggleSelect`,TA=`selectchanged`;function EA(e){return e!=null&&e!==`none`}function DA(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function OA(e){DA(e,`emphasis`,2)}function kA(e){e.hoverState===2&&DA(e,`normal`,0)}function AA(e){DA(e,`blur`,1)}function jA(e){e.hoverState===1&&DA(e,`normal`,0)}function Dae(e){e.selected=!0}function Oae(e){e.selected=!1}function MA(e,t,n){t(e,n)}function NA(e,t,n){MA(e,t,n),e.isGroup&&e.traverse(function(e){MA(e,t,n)})}function PA(e,t){switch(t){case`emphasis`:e.hoverState=2;break;case`normal`:e.hoverState=0;break;case`blur`:e.hoverState=1;break;case`select`:e.selected=!0}}function kae(e,t,n,r){for(var i=e.style,a={},o=0;o=0,a=!1;if(e instanceof bO){var o=gA(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(EA(s)||EA(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=Y({},r),l=Y({},l),l.fill=s):!EA(l.fill)&&EA(s)?(a=!0,r=Y({},r),l=Y({},l),l.fill=dE(s)):!EA(l.stroke)&&EA(c)&&(a||(r=Y({},r),l=Y({},l)),l.stroke=dE(c)),r.style=l}}if(r&&r.z2==null){a||(r=Y({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function jae(e,t,n){if(n&&n.z2==null){n=Y({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function Mae(e,t,n){var r=RS(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:kae(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=Y({},n),o=Y({opacity:r?i:a.opacity*.1},o),n.style=o),n}function FA(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return Aae(this,e,t,n);if(e===`blur`)return Mae(this,e,n);if(e===`select`)return jae(this,e,n)}return n}function IA(e){e.stateProxy=FA;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=FA),n&&(n.stateProxy=FA)}function LA(e,t){!GA(e,t)&&!e.__highByOuter&&NA(e,OA)}function RA(e,t){!GA(e,t)&&!e.__highByOuter&&NA(e,kA)}function zA(e,t){e.__highByOuter|=1<<(t||0),NA(e,OA)}function BA(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&NA(e,kA)}function VA(e){NA(e,AA)}function HA(e){NA(e,jA)}function UA(e){NA(e,Dae)}function WA(e){NA(e,Oae)}function GA(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function KA(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=_A(i),o=pA(e,i),s=t===`series`;!s&&r.push(o),a.isBlured&&(o.group.traverse(function(e){jA(e)}),s&&n.push(i)),a.isBlured=!1}),X(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function qA(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function ZA(e,t,n){tj(e,!0),NA(e,IA),zae(e,t,n)}function Rae(e){tj(e,!1)}function QA(e,t,n,r){r?Rae(e):ZA(e,t,n)}function zae(e,t,n){var r=nA(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var $A=[`emphasis`,`blur`,`select`],Bae={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function ej(e,t,n,r){n||=`itemStyle`;for(var i=0;i<$A.length;i++){var a=$A[i],o=t.getModel([a,n]),s=e.ensureState(a);s.style=r?r(o):o[Bae[n]]()}}function tj(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function nj(e){return!!(e&&e.__highDownDispatcher)}function Vae(e){var t=hA[e];return t==null&&mA<=32&&(t=hA[e]=mA++),t}function rj(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function ij(e){var t=e.type;return t===`highlight`||t===`downplay`}function Hae(e){var t=gA(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var aj=sO.CMD,Uae=[[],[],[]],oj=Math.sqrt,Wae=Math.atan2;function Gae(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=aj.M,d=aj.C,f=aj.L,p=aj.R,m=aj.A,h=aj.Q;for(o=0,s=0;o1&&(o*=sj(m),s*=sj(m));var h=(i===a?-1:1)*sj((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+lj(d)*g-cj(d)*_,y=(t+r)/2+cj(d)*g+lj(d)*_,b=pj([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=pj(x,S);if(fj(x,S)<=-1&&(C=uj),fj(x,S)>=1&&(C=0),C<0){var w=Math.round(C/uj*1e6)/1e6;C=uj*2+w%2*uj}u.addData(l,v,y,o,s,b,C,d,a)}var Kae=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,qae=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Jae(e){var t=new sO;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=sO.CMD,c=e.match(Kae);if(!c)return t;for(var l=0;l=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=RS(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=RS(n,e);return r<0||(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;nA*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function noe(e){var t;if(Z(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function roe(e,t){var n,r=Oj(t.r,0),i=Oj(t.r0||0,0),a=r>0;if(a||i>0){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=Ej(c-s),p=f>Sj&&f%Sj;if(p>Aj&&(f=p),!(r>Aj))e.moveTo(l,u);else if(f>Sj-Aj)e.moveTo(l+r*wj(s),u+r*Cj(s)),e.arc(l,u,r,s,c,!d),i>Aj&&(e.moveTo(l+i*wj(c),u+i*Cj(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*wj(s),j=r*Cj(s),M=i*wj(c),N=i*Cj(c),P=f>Aj;if(P){var F=t.cornerRadius;F&&(n=noe(F),m=n[0],h=n[1],g=n[2],_=n[3]);var ee=Ej(r-i)/2;if(v=kj(ee,g),y=kj(ee,_),b=kj(ee,m),x=kj(ee,h),w=S=Oj(v,y),T=C=Oj(b,x),(S>Aj||C>Aj)&&(E=r*wj(c),D=r*Cj(c),O=i*wj(s),k=i*Cj(s),fAj){var ae=kj(g,w),oe=kj(_,w),z=jj(O,k,A,j,r,ae,d),se=jj(E,D,M,N,r,oe,d);e.moveTo(l+z.cx+z.x0,u+z.cy+z.y0),w0&&e.arc(l+z.cx,u+z.cy,ae,Tj(z.y0,z.x0),Tj(z.y1,z.x1),!d),e.arc(l,u,r,Tj(z.cy+z.y1,z.cx+z.x1),Tj(se.cy+se.y1,se.cx+se.x1),!d),oe>0&&e.arc(l+se.cx,u+se.cy,oe,Tj(se.y1,se.x1),Tj(se.y0,se.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>Aj)||!P)e.lineTo(l+M,u+N);else if(T>Aj){var ae=kj(m,T),oe=kj(h,T),z=jj(M,N,E,D,i,-oe,d),se=jj(A,j,O,k,i,-ae,d);e.lineTo(l+z.cx+z.x0,u+z.cy+z.y0),T0&&e.arc(l+z.cx,u+z.cy,oe,Tj(z.y0,z.x0),Tj(z.y1,z.x1),!d),e.arc(l,u,i,Tj(z.cy+z.y1,z.cx+z.x1),Tj(se.cy+se.y1,se.cx+se.x1),d),ae>0&&e.arc(l+se.cx,u+se.cy,ae,Tj(se.y1,se.x1),Tj(se.y0,se.x0),!d))}else e.lineTo(l+M,u+N),e.arc(l,u,i,c,s,d)}e.closePath()}}}var ioe=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),Mj=function(e){HC(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new ioe},t.prototype.buildPath=function(e,t){roe(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(bO);Mj.prototype.type=`sector`;var aoe=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Nj=function(e){HC(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new aoe},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(bO);Nj.prototype.type=`ring`;function ooe(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f=2){if(r){var a=ooe(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;sJj[1]){if(i=!1,Yj.negativeSize||n)return i;var s=Kj(Jj[0]-qj[1]),c=Kj(qj[0]-Jj[1]);Gj(s,c)>Zj.len()&&(s=c||!Yj.bidirectional)&&(gw.scale(Xj,o,-c*r),Yj.useDir&&Yj.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function tM(e,t,n,r,i,a){eM(`update`,e,t,n,r,i,a)}function nM(e,t,n,r,i,a){eM(`enter`,e,t,n,r,i,a)}function rM(e){if(!e.__zr)return!0;for(var t=0;tVj,BezierCurve:()=>Bj,BoundingRect:()=>kw,Circle:()=>yj,CompoundPath:()=>Hj,Ellipse:()=>bj,Group:()=>vj,HOVER_LAYER_FOR_INCREMENTAL:()=>2,HOVER_LAYER_FROM_THRESHOLD:()=>1,HOVER_LAYER_NO:()=>0,Image:()=>SO,IncrementalDisplayable:()=>goe,Line:()=>Lj,LinearGradient:()=>Wj,OrientedBoundingRect:()=>Qj,Path:()=>bO,Point:()=>gw,Polygon:()=>Fj,Polyline:()=>Ij,RadialGradient:()=>poe,Rect:()=>DO,Ring:()=>Nj,Sector:()=>Mj,Text:()=>jO,WH:()=>uM,XY:()=>lM,applyTransform:()=>xM,calcZ2Range:()=>BM,clipPointsByRect:()=>woe,clipRectByRect:()=>TM,createIcon:()=>EM,decomposeTransform:()=>WM,ensureCopyRect:()=>LM,ensureCopyTransform:()=>RM,expandOrShrinkRect:()=>kM,extendPath:()=>boe,extendShape:()=>yoe,getCurrentCanvasPainter:()=>KM,getShapeClass:()=>pM,getTransform:()=>bM,groupTransition:()=>wM,initProps:()=>nM,isBoundingRectAxisAligned:()=>FM,isElementRemoved:()=>rM,lineLineIntersect:()=>DM,linePolygonIntersect:()=>Toe,makeImage:()=>hM,makePath:()=>mM,mergePath:()=>xoe,payloadDisableAnimation:()=>UM,registerShape:()=>fM,removeElement:()=>iM,removeElementWithFadeOut:()=>oM,resizePath:()=>_M,retrieveZInfo:()=>zM,setTooltipConfig:()=>MM,subPixelOptimize:()=>yM,subPixelOptimizeLine:()=>vM,subPixelOptimizeRect:()=>Soe,transformDirection:()=>SM,traverseElements:()=>PM,traverseUpdateZ:()=>VM,updateProps:()=>tM}),cM={},lM=[`x`,`y`],uM=[`width`,`height`];function yoe(e){return bO.extend(e)}var dM=Xae;function boe(e,t){return dM(e,t)}function fM(e,t){cM[e]=t}function pM(e){if(cM.hasOwnProperty(e))return cM[e]}function mM(e,t,n,r){var i=Yae(e,t);return n&&(r===`center`&&(n=gM(n,i.getBoundingRect())),_M(i,n)),i}function hM(e,t,n){var r=new SO({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(gM(t,i))}}});return r}function gM(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var xoe=Zae;function _M(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function vM(e,t){return wO(e,e,{lineWidth:t}),e}function Soe(e,t){return TO(e,e,t),e}var yM=EO;function bM(e,t){for(var n=QC([]);e&&e!==t;)ew(n,e.getLocalTransform(),n),e=e.parent;return n}function xM(e,t,n){return t&&!BS(t)&&(t=hT.getLocalTransform(t)),n&&(t=rw([],t)),pw([],e,t)}function SM(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:KO(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:KO(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=xM(a,t,n),KO(a[0])>KO(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function CM(e){return!e.isGroup}function Coe(e){return e.shape!=null}function wM(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){CM(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Coe(e)&&(t.shape=FS(e.shape)),t}var a=r(e);t.traverse(function(e){if(CM(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),tM(e,r,n,nA(e).dataIndex)}}})}function woe(e,t){return VS(e,function(e){var n=e[0];n=GO(n,t.x),n=WO(n,t.x+t.width);var r=e[1];return r=GO(r,t.y),r=WO(r,t.y+t.height),[n,r]})}function TM(e,t){var n=GO(e.x,t.x),r=WO(e.x+e.width,t.x+t.width),i=GO(e.y,t.y),a=WO(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function EM(e,t,n){var r=Y({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),LS(i,n),new SO(r)):mM(e.replace(`path://`,``),r,n,`center`)}function Toe(e,t,n,r,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=OM(p,m,u,d)/f;return!(g<0||g>1)}function OM(e,t,n,r){return e*r-n*t}function Eoe(e){return e<=1e-6&&e>=-1e-6}function kM(e,t,n,r,i){return t==null||(ZS(t)?AM[0]=AM[1]=AM[2]=AM[3]=t:(AM[0]=t[0],AM[1]=t[1],AM[2]=t[2],AM[3]=t[3]),r&&(AM[0]=GO(0,AM[0]),AM[1]=GO(0,AM[1]),AM[2]=GO(0,AM[2]),AM[3]=GO(0,AM[3])),n&&(AM[0]=-AM[0],AM[1]=-AM[1],AM[2]=-AM[2],AM[3]=-AM[3]),jM(e,AM,`x`,`width`,3,1,i&&i[0]||0),jM(e,AM,`y`,`height`,0,2,i&&i[1]||0)),e}var AM=[0,0,0,0];function jM(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=GO(0,WO(o,c)),e[r]=0?-t[i]:t[a]>=0?c+t[a]:KO(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function MM(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=YS(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&X(GS(c),function(e){vC(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=nA(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:LS({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function NM(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function PM(e,t){if(e){if(Z(e))for(var n=0;nt&&(t=r),rt&&(n=t=0),{min:n,max:t}}function VM(e,t,n){HM(e,t,n,-1/0)}function HM(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f1)for(var o=0;ol&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};PN=(e={},e[oA+`_`+uA]={pure:!0,appendData:i},e[oA+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[sA]={pure:!0,appendData:i},e[cA]={pure:!0,appendData:function(e){var t=this._data;X(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[aA]={appendData:i},e[lA]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;tt},gte:function(e,t){return e>=t}};(function(){function e(e,t){ZS(t)||Ck(``),this._opFn=qoe[e],this._rvalFloat=gk(t)}return e.prototype.evaluate=function(e){return ZS(e)?this._opFn(e,this._rvalFloat):this._opFn(gk(e),this._rvalFloat)},e})();var Joe=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=ZS(e)?e:gk(e),r=ZS(t)?t:gk(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=YS(e),s=YS(t);o&&(n=s?e:0),s&&(r=o?t:0)}return nr?-this._resultLT:0},e}();(function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=gk(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=gk(e)===this._rvalFloat)}return this._isEQ?t:!t},e})();function YN(e){var t=``,n=-1/0,r=-1/0,i=1/0,a=1/0;return e&&(e.g!=null&&(t+=`G`+e.g,n=e.g),e.ge!=null&&(t+=`GE`+e.ge,r=e.ge),e.l!=null&&(t+=`L`+e.l,i=e.l),e.le!=null&&(t+=`LE`+e.le,a=e.le)),{key:t,g:n,ge:r,l:i,le:a}}function XN(e,t){return t>e.g&&t>=e.ge&&t`u`?Array:Uint32Array,Xoe=typeof Uint16Array>`u`?Array:Uint16Array,ZN=typeof Int32Array>`u`?Array:Int32Array,QN=typeof Float64Array>`u`?Array:Float64Array,$N={float:QN,int:ZN,ordinal:Array,number:Array,time:QN},eP;function tP(e){return e>65535?Yoe:Xoe}function Zoe(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function nP(e,t,n,r,i){var a=$N[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;lh[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=VS(a,function(e){return e.property}),l=0;lg[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&ne)i=a-1;else return a}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f){if(i===1)for(var h=0;h=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;he[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}}return sg[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(tP(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;fc&&(c=l,u=v))}T>0&&To&&(m=o-l);for(var h=0;hp&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);ul-p&&(s=l-p,o.length=s);for(var m=0;mu[1]&&(u[1]=g),d[f++]=_}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();id&&(d=p))}return o[c]=[u,d]},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return JN(e[r],this._dimensions[r])}eP={arrayRows:e,objectRows:function(e,t,n,r){return JN(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return JN(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),Qoe=Ik(),$oe={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},iP=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||=sP(this.source))},e.prototype.getSourceDimensionIndex=function(e){return aC(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=kN(this.source),n=!cP(e),r=``,i=[],a=0,o=0;a30}var lP=QS,uP=VS,ese=typeof Int32Array>`u`?Array:Int32Array,tse=`e\0\0`,dP=-1,nse=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],rse=[`_approximateExtent`],fP,pP,mP,hP,gP,_P,vP,yP=function(){function e(e,t){this.type=`list`,this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=[`cloneShallow`,`downSample`,`minmaxDownSample`,`lttbDownSample`,`map`],this.CHANGABLE_METHODS=[`filterSelf`,`selectRange`],this.DOWNSAMPLE_METHODS=[`downSample`,`minmaxDownSample`,`lttbDownSample`];var n,r=!1;aP(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),Z(i)?i=i.slice():lP(i)&&(i=Y({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,lP(t)?Y(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){lP(e)?Y(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?Y(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){wae(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){X(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:uP(this.dimensions,this._getDimInfo,this),this.hostModel),gP(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];JS(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(sC(arguments)))})},e.internalField=function(){fP=function(e){var t=e._invertedIndicesMap;X(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new ese(a.categories.length);for(var s=0;s1&&(s+=`__ec__`+l),r[t]=s}}}(),e}();function bP(e,t){bN(e)||(e=SN(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=hC(),a=[],o=ise(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&cP(o),c=r===e.dimensionsDefine,l=c?sP(e):oP(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=hC(u),f=new ZN(o),p=0;p0&&(e.name+=t-1)}),new iP({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function ise(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return X(t,function(e){var t;QS(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function ase(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var xP={},SP={},CP=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(xP,!0),this._normalMasterList=n(SP,!1);function n(n,r){var i=[];return X(n,function(n,r){var a=n.create(e,t);i=i.concat(a||[])}),i}},e.prototype.update=function(e,t){X(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){e===`matrix`||e===`calendar`?xP[e]=t:SP[e]=t},e.get=function(e){return SP[e]||xP[e]},e}();function ose(e){return!!xP[e]}var sse=hC();function wP(e){var t=e.getShallow(`coord`,!0),n=1;if(t==null){var r=sse.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}function cse(e,t){var n=e.getShallow(`coordinateSystem`),r=e.getShallow(`coordinateSystemUsage`,!0),i=0;if(n){var a=e.mainType===`series`;r??=a?`data`:`box`,r===`data`?(i=1,a||(i=0)):r===`box`&&(i=2,!a&&!ose(n)&&(i=0))}return{coordSysType:n,kind:i}}function lse(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys;e.allowNotFound;var a=cse(t,!0),o=a.kind,s=a.coordSysType;if(i&&o!==1&&(o=1,s=n),o===0||s!==n)return 0;var c=r(n,t);return c?(o===1?t.coordinateSystem=c:t.boxCoordinateSystem=c,o):0}var use=function(){function e(e){this.coordSysDims=[],this.axisMap=hC(),this.categoryAxisMap=hC(),this.coordSysName=e}return e}();function dse(e){var t=e.get(`coordinateSystem`),n=new use(t),r=fse[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var fse={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,zk).models[0],a=e.getReferringComponents(`yAxis`,zk).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),TP(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),TP(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,zk).models[0];t.coordSysDims=[`single`],n.set(`single`,i),TP(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,zk).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),TP(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),TP(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();X(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),TP(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,zk).models[0];t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}};function TP(e){return e.get(`type`)===`category`}function pse(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;mse(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f,p=!0;function m(e){return e.type!==`ordinal`&&e.type!==`time`}if(X(a,function(e,t){YS(e)&&(a[t]=e={name:e}),m(e)||(p=!1)}),X(a,function(e,t){c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),u||!m(e)||p&&(e.coordDim===`x`||e.coordDim===`angle`)||i&&i!==e.coordDim||(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,g=u.type,_=0;X(a,function(e){e.coordDim===h&&_++});var v={name:d,coordDim:h,coordDimIndex:_,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:f,coordDim:f,coordDimIndex:_+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(v.storeDimIndex=s.ensureCalculationDimension(f,g),y.storeDimIndex=s.ensureCalculationDimension(d,g)),o.appendCalculationDimension(v),o.appendCalculationDimension(y)):(a.push(v),a.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function mse(e){return!aP(e.schema)}function EP(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function DP(e,t){return EP(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function hse(e,t){var n=e.get(`coordinateSystem`),r=CP.get(n),i;return t&&t.coordSysDims&&(i=VS(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=Goe(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function gse(e,t,n){var r,i;return n&&X(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function OP(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=SN(e)):(i=r.getSource(),a=i.sourceFormat===aA);var o=dse(t),s=hse(t,o),c=n.useEncodeDefaulter,l=JS(c)?c:c?qS(Roe,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=bP(i,u),f=gse(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=pse(t,{schema:d,store:p}),h=new yP(d,t);h.setCalculationInfo(m);var g=f!=null&&_se(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function _se(e){if(e.sourceFormat===`original`)return!Z(kk(vse(e.data||[])))}function vse(e){for(var t=0;t=0&&n.push(e)}),n}}function AP(e,t){return IS(IS({},e,!0),t,!0)}var jP=Math.log(2);function MP(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){X(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function BP(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?NP(s,o):NP(o,s))}function VP(e){return e.nodeName.toUpperCase()===`CANVAS`}var HP=/([&<>"'])/g,UP={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function WP(e){return e==null?``:(e+``).replace(HP,function(e,t){return UP[t]})}var GP={time:{month:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthAbbr:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],dayOfWeek:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],dayOfWeekAbbr:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`]},legend:{selector:{all:`All`,inverse:`Inv`}},toolbox:{brush:{title:{rect:`Box Select`,polygon:`Lasso Select`,lineX:`Horizontally Select`,lineY:`Vertically Select`,keep:`Keep Selections`,clear:`Clear Selections`}},dataView:{title:`Data View`,lang:[`Data View`,`Close`,`Refresh`]},dataZoom:{title:{zoom:`Zoom`,back:`Zoom Reset`}},magicType:{title:{line:`Switch to Line Chart`,bar:`Switch to Bar Chart`,stack:`Stack`,tiled:`Tile`}},restore:{title:`Restore`},saveAsImage:{title:`Save as Image`,lang:[`Right Click to Save Image`]}},series:{typeNames:{pie:`Pie chart`,bar:`Bar chart`,line:`Line chart`,scatter:`Scatter plot`,effectScatter:`Ripple scatter plot`,radar:`Radar chart`,tree:`Tree`,treemap:`Treemap`,boxplot:`Boxplot`,candlestick:`Candlestick`,k:`K line chart`,heatmap:`Heat map`,map:`Map`,parallel:`Parallel coordinate map`,lines:`Line graph`,graph:`Relationship graph`,sankey:`Sankey diagram`,funnel:`Funnel chart`,gauge:`Gauge`,pictorialBar:`Pictorial bar`,themeRiver:`Theme River Map`,sunburst:`Sunburst`,custom:`Custom chart`,chart:`Chart`}},aria:{general:{withTitle:`This is a chart about "{title}"`,withoutTitle:`This is a chart`},series:{single:{prefix:``,withName:` with type {seriesType} named {seriesName}.`,withoutName:` with type {seriesType}.`},multiple:{prefix:`. It consists of {seriesCount} series count.`,withName:` The {seriesId} series is a {seriesType} representing {seriesName}.`,withoutName:` The {seriesId} series is a {seriesType}.`,separator:{middle:``,end:``}}},data:{allData:`The data is as follows: `,partialData:`The first {displayCnt} items are: `,withName:`the data for {name} is {value}`,withoutName:`{value}`,separator:{middle:`, `,end:`. `}}}},KP={time:{month:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`],monthAbbr:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],dayOfWeek:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`],dayOfWeekAbbr:[`日`,`一`,`二`,`三`,`四`,`五`,`六`]},legend:{selector:{all:`全选`,inverse:`反选`}},toolbox:{brush:{title:{rect:`矩形选择`,polygon:`圈选`,lineX:`横向选择`,lineY:`纵向选择`,keep:`保持选择`,clear:`清除选择`}},dataView:{title:`数据视图`,lang:[`数据视图`,`关闭`,`刷新`]},dataZoom:{title:{zoom:`区域缩放`,back:`区域缩放还原`}},magicType:{title:{line:`切换为折线图`,bar:`切换为柱状图`,stack:`切换为堆叠`,tiled:`切换为平铺`}},restore:{title:`还原`},saveAsImage:{title:`保存为图片`,lang:[`右键另存为图片`]}},series:{typeNames:{pie:`饼图`,bar:`柱状图`,line:`折线图`,scatter:`散点图`,effectScatter:`涟漪散点图`,radar:`雷达图`,tree:`树图`,treemap:`矩形树图`,boxplot:`箱型图`,candlestick:`K线图`,k:`K线图`,heatmap:`热力图`,map:`地图`,parallel:`平行坐标图`,lines:`线图`,graph:`关系图`,sankey:`桑基图`,funnel:`漏斗图`,gauge:`仪表盘图`,pictorialBar:`象形柱图`,themeRiver:`主题河流图`,sunburst:`旭日图`,custom:`自定义图表`,chart:`图表`}},aria:{general:{withTitle:`这是一个关于“{title}”的图表。`,withoutTitle:`这是一个图表,`},series:{single:{prefix:``,withName:`图表类型是{seriesType},表示{seriesName}。`,withoutName:`图表类型是{seriesType}。`},multiple:{prefix:`它由{seriesCount}个图表系列组成。`,withName:`第{seriesId}个系列是一个表示{seriesName}的{seriesType},`,withoutName:`第{seriesId}个系列是一个{seriesType},`,separator:{middle:`;`,end:`。`}}},data:{allData:`其数据是——`,partialData:`其中,前{displayCnt}项是——`,withName:`{name}的数据是{value}`,withoutName:`{value}`,separator:{middle:`,`,end:``}}}},qP=`ZH`,JP=`EN`,YP=JP,XP={},ZP={},QP=SC.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||YP).toUpperCase().indexOf(qP)>-1?qP:YP}():YP;function $P(e,t){e=e.toUpperCase(),ZP[e]=new uN(t),XP[e]=t}function eF(e){if(YS(e)){var t=XP[e.toUpperCase()]||{};return e===qP||e===JP?FS(t):IS(FS(t),FS(XP[YP]),!1)}return IS(FS(e),FS(XP[YP]),!1)}function tF(e){return ZP[e]}function nF(){return ZP[YP]}$P(JP,GP),$P(qP,KP);var rF=null;function iF(){return rF}function aF(e,t){var n=iF(),r=t.breakOption,i=t.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,e)),i}function oF(e){var t=e.brk;return t?t.breaks:[]}function sF(e){var t=e.brk;return t?t.hasBreaks():!1}var cF=1e3,lF=cF*60,uF=lF*60,dF=uF*24,fF=dF*365,pF={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},mF={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},hF=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,gF=`{yyyy}-{MM}-{dd}`,_F={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:gF,hour:gF+` `+mF.hour,minute:gF+` `+mF.minute,second:gF+` `+mF.second,millisecond:hF},vF=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],yF=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function bF(e){return!YS(e)&&!JS(e)?xF(e):e}function xF(e){e||={};var t={},n=!0;return X(vF,function(t){n&&=e[t]==null}),X(vF,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=vF[s],l=QS(a)&&!Z(a)?a[c]:a,u=void 0;Z(l)?(u=l.slice(),o=u[0]||``):YS(l)?(o=l,u=[o]):(o==null?o=mF[r]:pF[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function SF(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function CF(e){switch(e){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return e}}function wF(e){return e===CF(e)}function Sse(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function TF(e,t,n,r){var i=dk(e),a=i[OF(n)](),o=i[kF(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[AF(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[jF(n)](),d=(u-1)%12+1,f=i[MF(n)](),p=i[NF(n)](),m=i[PF(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof uN?r:tF(r||QP)||nF()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,SF(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,SF(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,SF(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,SF(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,SF(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,SF(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,SF(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,SF(m,3)).replace(/{S}/g,m+``)}function Cse(e,t,n,r,i){var a=null;if(YS(n))a=n;else if(JS(n)){var o={time:e.time,level:e.time?e.time.level:0},s=iF();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=n(e.value,t,o)}else{var c=e.time;if(c){var l=n[c.lowerTimeUnit][c.upperTimeUnit];a=l[Math.min(c.level,l.length-1)]||``}else{var u=EF(e.value,i);a=n[u][u][0]}}return TF(new Date(e.value),a,i,r)}function EF(e,t){var n=dk(e),r=n[kF(t)]()+1,i=n[AF(t)](),a=n[jF(t)](),o=n[MF(t)](),s=n[NF(t)](),c=n[PF(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function DF(e,t,n){switch(t){case`year`:e[FF(n)](0);case`month`:e[IF(n)](1);case`day`:e[LF(n)](0);case`hour`:e[RF(n)](0);case`minute`:e[zF(n)](0);case`second`:e[BF(n)](0)}return e}function OF(e){return e?`getUTCFullYear`:`getFullYear`}function kF(e){return e?`getUTCMonth`:`getMonth`}function AF(e){return e?`getUTCDate`:`getDate`}function jF(e){return e?`getUTCHours`:`getHours`}function MF(e){return e?`getUTCMinutes`:`getMinutes`}function NF(e){return e?`getUTCSeconds`:`getSeconds`}function PF(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function wse(e){return e?`setUTCFullYear`:`setFullYear`}function FF(e){return e?`setUTCMonth`:`setMonth`}function IF(e){return e?`setUTCDate`:`setDate`}function LF(e){return e?`setUTCHours`:`setHours`}function RF(e){return e?`setUTCMinutes`:`setMinutes`}function zF(e){return e?`setUTCSeconds`:`setSeconds`}function BF(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function VF(e){if(!Zie(e))return YS(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function HF(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var UF=cC;function WF(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&uC(e)?e:`-`}function a(e){return bk(e)}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?dk(e):e;if(!isNaN(+c))return TF(c,r,n);if(s)return`-`}if(t===`ordinal`)return XS(e)?i(e):ZS(e)&&a(e)?e+``:`-`;var l=gk(e);return a(l)?VF(l):XS(e)?i(e):typeof e==`boolean`?e+``:`-`}var GF=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],KF=function(e,t){return`{`+e+(t??``)+`}`};function qF(e,t,n){Z(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a`:``:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function JF(e,t){return t||=`transparent`,YS(e)?e:QS(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var YF=X,Ese=[`left`,`right`,`top`,`bottom`,`width`,`height`],XF=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function ZF(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}var QF=ZF;qS(ZF,`vertical`),qS(ZF,`horizontal`);function Dse(e,t){return{left:e.getShallow(`left`,t),top:e.getShallow(`top`,t),right:e.getShallow(`right`,t),bottom:e.getShallow(`bottom`,t),width:e.getShallow(`width`,t),height:e.getShallow(`height`,t)}}function $F(e,t,n){n=UF(n||0);var r=t.width,i=t.height,a=ek(e.left,r),o=ek(e.top,i),s=ek(e.right,r),c=ek(e.bottom,i),l=ek(e.width,r),u=ek(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new kw((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}var eI={rect:1,point:2};function tI(e,t,n){var r,i,a,o=e.boxCoordinateSystem,s;if(o){var c=wP(e),l=c.coord,u=c.from;if(o.dataToLayout){a=eI.rect,s=u;var d=o.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=eI.point,s=u,i=o.dataToPoint(l))}return a??=eI.rect,a===eI.rect&&(r||={x:0,y:0,width:t.getWidth(),height:t.getHeight()},i=[r.x+r.width/2,r.y+r.height/2]),{type:a,refContainer:r,refPoint:i,boxCoordFrom:s}}function Ose(e,t,n,r,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],c=i&&i.boundingMode||`all`;if(a||=e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var l;if(c===`raw`)l=e.type===`group`?new kw(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();l=l.clone(),l.applyTransform(u)}var d=$F(LS({width:l.width,height:l.height},t),n,r),f=o?d.x-l.x:0,p=s?d.y-l.y:0;return c===`raw`?(a.x=f,a.y=p):(a.x+=f,a.y+=p),a===e&&e.markRedraw(),!0}function nI(e){var t=e.layoutMode||e.constructor.layoutMode;return QS(t)?t:t?{type:t}:null}function rI(e,t,n){var r=n&&n.ignoreSize;!Z(r)&&(r=[r,r]);var i=o(XF[0],0),a=o(XF[1],1);c(XF[0],e,i),c(XF[1],e,a);function o(n,i){var a={},o=0,c={},l=0,u=2;if(YF(n,function(t){c[t]=e[t]}),YF(n,function(e){vC(t,e)&&(a[e]=c[e]=t[e]),s(a,e)&&o++,s(c,e)&&l++}),r[i])return s(t,n[1])?c[n[2]]=null:s(t,n[2])&&(c[n[1]]=null),c;if(l===u||!o)return c;if(o>=u)return a;for(var d=0;d=0;o--)a=IS(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return Bk(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return Dse(this,!1)},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),t}(uN);MC(aI,uN),LC(aI),bse(aI),xse(aI,jse);function jse(e){var t=[];return X(aI.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=VS(t,function(e){return DC(e).main}),e!==`dataset`&&RS(t,`dataset`)<=0&&t.unshift(`dataset`),t}var oI=Ik(),Mse=Ik(),sI=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=Ek(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return lI(this,oI,r,i,e,t,n)},e.prototype.clearColorPalette=function(){Pse(this,oI)},e}();function cI(e,t,n,r){return lI(e,Mse,Ek(e.get([`aria`,`decal`,`decals`])),null,t,n,r)}function Nse(e,t){for(var n=e.length,r=0;rt)return e[r];return e[n-1]}function lI(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:Nse(r,o);if(u||=n,u&&u.length){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function Pse(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Fse=/\{@(.+?)\}/g,uI=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t||=`normal`;var o=this.getData(n),s=this.getDataParams(e,n);if(a&&(s.value=a.interpolatedValue),r!=null&&Z(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),JS(i))return s.status=t,s.dimensionIndex=r,i(s);if(YS(i))return qF(i,s).replace(Fse,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=GN(o,e,i);if(a&&Z(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return GN(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function dI(e){var t,n;return QS(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function fI(e){return new Ise(e)}var Ise=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(this._dueEnd=t?t._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f1&&r>0?s:o}};return a;function o(){return t=e?null:a9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+`_`+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(gI(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=eC(o)?lA:aA,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=aC(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=aC(u.sourceHeader,d.sourceHeader),m=aC(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[xN(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[xN(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&_I(``);var i,a=[],o=[];return X(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&_I(``),a.push(t),o.push(e._getVersionSign())}),n?i=Wse(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[CN(a[0])]),{sourceList:i,upstreamSignList:o}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||n>0&&!e.noHeader;return X(e.blocks,function(e){var n=EI(e);n>=t&&(t=n+ +(r&&(!n||wI(e)&&!e.noHeader)))}),t}return 0}function Xse(e,t,n,r){var i=t.noHeader,a=Qse(EI(t)),o=[],s=t.blocks||[];lC(!s||Z(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(vC(l,c)){var u=new Joe(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}X(s,function(n,i){var s=t.valueFormatter,c=TI(n)(s?Y(Y({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):OI(r,o.join(``),i?n:a.html);if(i)return d;var f=WF(t.header,`ordinal`,e.useUTC),p=SI(r,e.renderMode).nameStyle,m=xI(r);return e.renderMode===`richText`?kI(e,f,p)+a.richText+d:OI(r,`
`+WP(f)+`
`+d,n)}function Zse(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=Z(e)?e:[e],VS(e,function(e,t){return WF(e,Z(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||Q.color.secondary,i),f=a?``:WF(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=SI(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:kI(e,f,v))+(o?``:tce(e,m,h,g,y)):OI(r,(s?``:d)+(a?``:$se(f,!s,v))+(o?``:ece(m,h,g,y)),n)}}function DI(e,t,n,r,i,a){if(e)return TI(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function Qse(e){return{html:Jse[e],richText:Yse[e]}}function OI(e,t,n){var r=`
`,i=`margin: `+n+`px 0 0`,a=xI(e);return`
`+t+r+`
`}function $se(e,t,n){var r=t?`margin-left:2px`:``;return``+WP(e)+``}function ece(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=Z(e)?e:[e],``+VS(e,function(e){return WP(e)}).join(`  `)+``}function kI(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function tce(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(Z(t)?t.join(` `):t,a)}function nce(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return JF(n)}function AI(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var jI=function(){function e(){this.richTextStyles={},this._nextStyleNameId=_k()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=Tse({color:t,type:e,renderMode:n,markerId:r});return YS(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};Z(t)?X(t,function(e){return Y(n,e)}):Y(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function rce(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=t.getRawValue(n),c=Z(s),l=nce(t,n),u,d,f,p;if(o>1||c&&!o){var m=ice(s,t,n,a,l);u=m.inlineValues,d=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=u=GN(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=Nk(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return CI(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[CI(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!uC(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function ice(e,t,n,r,i){var a=t.getData(),o=HS(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||=r&&r.tooltip!==!1&&r.displayName!=null},!1),s=[],c=[],l=[];r.length?X(r,function(e){u(GN(a,n,e),e)}):X(e,u);function u(e,t){var n=a.getDimensionInfo(t);n&&n.otherDims.tooltip!==!1&&(o?l.push(CI(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return{inlineValues:s,inlineValueTypes:c,blocks:l}}var MI=Ik();function NI(e,t){return e.getName(t)||e.getId(t)}var PI=function(e){gS(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=fI({count:oce,reset:sce}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(MI(this).sourceManager=new Kse(this)).prepareSource();var r=this.getInitialData(e,n);II(r,this),this.dataTask.context.data=r,MI(this).dataBeforeProcessed=r,FI(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=nI(this),r=n?iI(e):{},i=this.subType;aI.hasClass(i)&&(i+=`Series`),IS(e,t.getTheme().get(this.subType)),IS(e,this.getDefaultOption()),Dk(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&rI(e,r,n)},t.prototype.mergeOption=function(e,t){e=IS(this.option,e,!0),this.fillDataTextStyle(e.data);var n=nI(this);n&&rI(this.option,e,n);var r=MI(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);II(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,MI(this).dataBeforeProcessed=i,FI(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!eC(e))for(var t=[`show`],n=0;n=0&&u<0)&&(l=v,u=_,d=0),_===u&&(c[d++]=m))}return c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return rce({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(SC.node&&!(e&&e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=sI.prototype.getColorFromPalette.call(this,e,t,n);return i||=r.getColorFromPalette(e,t,n),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get(`progressive`)},t.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var a=0;a=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[NI(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0||e&&e.enabled:!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(a&&o){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){QS(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c0&&this._innerSelect(e,t)}},t.registerClass=function(e){return aI.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type=`series.__base__`,e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol=`circle`,e.visualStyleAccessPath=`itemStyle`,e.visualDrawType=`fill`}(),t}(aI);zS(PI,uI),zS(PI,sI),MC(PI,aI);function FI(e){var t=e.name;Nk(e)||(e.name=ace(e)||t)}function ace(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return X(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function oce(e){return e.model.getRawData().count()}function sce(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),cce}function cce(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function II(e,t){X(Rre(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,qS(lce,t))})}function lce(e,t){var n=LI(e);return n&&n.setOutputEnd((t||this).count()),t}function LI(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var uce=bO.extend({type:`triangle`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),dce={line:Lj,rect:DO,roundRect:DO,square:DO,circle:yj,diamond:bO.extend({type:`diamond`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),pin:bO.extend({type:`pin`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),c=r-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,d=Math.sin(l),f=Math.cos(l),p=o*.6,m=o*.7;e.moveTo(n-u,c+s),e.arc(n,c,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(n+u-d*p,c+s+f*p,n,r-m,n,r),e.bezierCurveTo(n,r-m,n-u+d*p,c+s+f*p,n-u,c+s),e.closePath()}}),arrow:bO.extend({type:`arrow`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),triangle:uce},fce={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},RI={};X(dce,function(e,t){RI[t]=new e});var pce=bO.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Yw(e,t,n),i=this.shape;return i&&i.symbolType===`pin`&&t.position===`inside`&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!==`none`){var i=RI[r];i||=(r=`rect`,RI[r]),fce[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function mce(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||Q.color.neutral00,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function zI(e,t,n,r,i,a,o){var s=e.indexOf(`empty`)===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var c=e.indexOf(`image://`)===0?hM(e.slice(8),new kw(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?mM(e.slice(7),{},new kw(t,n,r,i),o?`center`:`cover`):new pce({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=mce,a&&c.setColor(a),c}function BI(e){return Z(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function VI(e,t){if(e!=null)return Z(e)||(e=[e,e]),[ek(e[0],t[0])||0,ek(aC(e[1],e[0]),t[1])||0]}var hce=function(e){gS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e){return OP(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new vj,n=zI(`line`,0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual(`symbol`),i=this.getData().getVisual(`symbolRotate`),a=r===`none`?`circle`:r,o=e.itemHeight*.8,s=zI(a,(e.itemWidth-o)/2,(e.itemHeight-o)/2,o,o,e.itemStyle.fill);return t.add(s),s.setStyle(e.itemStyle),s.rotation=(e.iconRotate===`inherit`?i:e.iconRotate||0)*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),a.indexOf(`empty`)>-1&&(s.style.stroke=s.style.fill,s.style.fill=Q.color.neutral00,s.style.lineWidth=2),t},t.type=`series.line`,t.dependencies=[`grid`,`polar`],t.defaultOption={z:3,coordinateSystem:`cartesian2d`,legendHoverLink:!0,clip:!0,label:{position:`top`},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:`solid`},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:`emptyCircle`,symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:`auto`,connectNulls:!1,sampling:`none`,animationEasing:`linear`,progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:`clone`},triggerLineEvent:!1,triggerEvent:!1},t}(PI);function HI(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=GN(e,t,n[0]);return i==null?null:i+``}if(r){for(var a=[],o=0;o=0&&r.push(t[a])}return r.join(` `)}var WI=function(e){gS(t,e);function t(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return t.prototype._createSymbol=function(e,t,n,r,i,a){this.removeAll();var o=zI(e,-1,-1,2,2,null,a);o.attr({z2:aC(i,100),culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=gce,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){zA(this.childAt(0))},t.prototype.downplay=function(){BA(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?`move`:n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var a=e.getItemVisual(n,`symbol`)||`circle`,o=e.hostModel,s=t.getSymbolSize(e,n),c=t.getSymbolZ2(e,n),l=a!==this._symbolType,u=i&&i.disableAnimation;if(l){var d=e.getItemVisual(n,`symbolKeepAspect`);this._createSymbol(a,e,n,s,c,d)}else{var f=this.childAt(0);f.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?f.attr(p):tM(f,p,o,n),sM(f)}if(this._updateCommon(e,n,s,r,i),l){var f=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,nM(f,p,o,n)}}u&&this.childAt(0).stopAnimation(`leave`)},t.prototype._updateCommon=function(e,t,n,r,i){var a=this.childAt(0),o=e.hostModel,s,c,l,u,d,f,p,m,h;if(r&&(s=r.emphasisItemStyle,c=r.blurItemStyle,l=r.selectItemStyle,u=r.focus,d=r.blurScope,p=r.labelStatesModels,m=r.hoverScale,h=r.cursorStyle,f=r.emphasisDisabled),!r||e.hasItemOption){var g=r&&r.itemModel?r.itemModel:e.getItemModel(t),_=g.getModel(`emphasis`);s=_.getModel(`itemStyle`).getItemStyle(),l=g.getModel([`select`,`itemStyle`]).getItemStyle(),c=g.getModel([`blur`,`itemStyle`]).getItemStyle(),u=_.get(`focus`),d=_.get(`blurScope`),f=_.get(`disabled`),p=XM(g),m=_.getShallow(`scale`),h=g.getShallow(`cursor`)}var v=e.getItemVisual(t,`symbolRotate`);a.attr(`rotation`,(v||0)*Math.PI/180||0);var y=VI(e.getItemVisual(t,`symbolOffset`),n);y&&(a.x=y[0],a.y=y[1]),h&&a.attr(`cursor`,h);var b=e.getItemVisual(t,`style`),x=b.fill;if(a instanceof SO){var S=a.style;a.useStyle(Y({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},b))}else a.__isEmptyBrush?a.useStyle(Y({},b)):a.useStyle(b),a.style.decal=null,a.setColor(x,i&&i.symbolInnerColor),a.style.strokeNoScale=!0;var C=e.getItemVisual(t,`liftZ`),w=this._z2;C==null?w!=null&&(a.z2=w,this._z2=null):w??(this._z2=a.z2,a.z2+=C);var T=i&&i.useNameLabel;YM(a,p,{labelFetcher:o,labelDataIndex:t,defaultText:E,inheritColor:x,defaultOpacity:b.opacity});function E(t){return T?e.getName(t):HI(e,t)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=a.ensureState(`emphasis`);D.style=s,a.ensureState(`select`).style=l,a.ensureState(`blur`).style=c;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;D.scaleX=this._sizeX*O,D.scaleY=this._sizeY*O,this.setSymbolScale(1),QA(this,u,d,f)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=nA(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&iM(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();iM(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return BI(e.getItemVisual(t,`symbolSize`))},t.getSymbolZ2=function(e,t){return e.getItemVisual(t,`z2`)},t}(vj);function gce(e,t){this.parent.drift(e,t)}function GI(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r&&r.isIgnore&&r.isIgnore(n))&&!(r&&r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,`symbol`)!==`none`}function KI(e){return e!=null&&!QS(e)&&(e={isIgnore:e}),e||{}}function qI(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{emphasisItemStyle:n.getModel(`itemStyle`).getItemStyle(),blurItemStyle:t.getModel([`blur`,`itemStyle`]).getItemStyle(),selectItemStyle:t.getModel([`select`,`itemStyle`]).getItemStyle(),focus:n.get(`focus`),blurScope:n.get(`blurScope`),emphasisDisabled:n.get(`disabled`),hoverScale:n.get(`scale`),labelStatesModels:XM(t),cursorStyle:t.get(`cursor`)}}function JI(e,t,n,r,i,a,o){var s=new e(t,n,r,i);return s.setPosition(a),t.setItemGraphicEl(n,s),o.add(s),s}var YI=function(){function e(e){this.group=new vj,this._SymbolCtor=e||WI}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=KI(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=this._seriesScope=qI(e),c={disableAnimation:o},l=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=l(r);GI(e,i,r,t)&&JI(a,e,r,s,c,i,n)}).update(function(u,d){var f=i.getItemGraphicEl(d),p=l(u);if(!GI(e,p,u,t))n.remove(f);else{var m=e.getItemVisual(u,`symbol`)||`circle`,h=f&&f.getSymbolType&&f.getSymbolType();if(!f||h&&h!==m)n.remove(f),f=new a(e,u,s,c),f.setPosition(p);else{f.updateData(e,u,s,c);var g={x:p[0],y:p[1]};o?f.attr(g):tM(f,g,r)}n.add(f),e.setItemGraphicEl(u,f)}}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=l,this._data=e},e.prototype.updateLayout=function(e){var t=this._data;if(t)for(var n=this,r=t.getStore(),i=0,a=r.count();i0?n=r[0]:r[1]<0&&(n=r[1]),n}function ZI(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo(`stackedOverDimension`),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}function QI(e,t){return!isFinite(e)||!isFinite(t)}var vce=typeof Float32Array<`u`?Float32Array:void 0,yce=typeof Float64Array<`u`?Float64Array:void 0;function $I(e){return eL({ctor:vce},e).arr}function eL(e,t){var n=e.arr,r=e.ctor;if(t>ck&&(t=ck),!n||e.typed&&n.length=i||h<0)break;if(QI(_,v)){if(c){h+=a;continue}break}if(h===n)e[a>0?`moveTo`:`lineTo`](_,v),d=_,f=v;else{var y=_-l,b=v-u;if(y*y+b*b<.5){h+=a;continue}if(o>0){for(var x=h+a,S=t[x*2],C=t[x*2+1];S===_&&C===v&&g=r||QI(S,C))p=_,m=v;else{E=S-l,D=C-u;var A=_-l,j=S-_,M=v-u,N=C-v,P=void 0,F=void 0;if(s===`x`){P=Math.abs(A),F=Math.abs(j);var ee=E>0?1:-1;p=_-ee*P*o,m=v,O=_+ee*F*o,k=v}else if(s===`y`){P=Math.abs(M),F=Math.abs(N);var I=D>0?1:-1;p=_,m=v-I*P*o,O=_,k=v+I*F*o}else P=Math.sqrt(A*A+M*M),F=Math.sqrt(j*j+N*N),T=F/(F+P),p=_-E*o*(1-T),m=v-D*o*(1-T),O=_+E*o*T,k=v+D*o*T,O=tL(O,nL(S,_)),k=tL(k,nL(C,v)),O=nL(O,tL(S,_)),k=nL(k,tL(C,v)),E=O-_,D=k-v,p=_-E*P/F,m=v-D*P/F,p=tL(p,nL(l,_)),m=tL(m,nL(u,v)),p=nL(p,tL(l,_)),m=nL(m,tL(u,v)),E=_-p,D=v-m,O=_+E*F/P,k=v+D*F/P}e.bezierCurveTo(d,f,p,m,_,v),d=O,f=k}else e.lineTo(_,v)}l=_,u=v,h+=a}return g}var iL=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),Sce=function(e){gS(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polyline`,n}return t.prototype.getDefaultStyle=function(){return{stroke:Q.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new iL},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&QI(n[i*2-2],n[i*2-1]);i--);for(;r=0){var _=o?(d-a)*g+a:(u-i)*g+i;return o?[e,_]:[_,e]}i=u,a=d;break;case r.C:u=n[c++],d=n[c++],f=n[c++],p=n[c++],m=n[c++],h=n[c++];var v=o?PT(i,u,f,m,e,s):PT(a,d,p,h,e,s);if(v>0)for(var y=0;y=0){var _=o?MT(a,d,p,h,b):MT(i,u,f,m,b);return o?[e,_]:[_,e]}}i=m,a=h}}},t}(bO),Cce=function(e){gS(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(iL),wce=function(e){gS(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polygon`,n}return t.prototype.getDefaultShape=function(){return new Cce},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,a=n.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;a>0&&QI(n[a*2-2],n[a*2-1]);a--);for(;i=0,a=e.fill||Q.color.neutral99;_L(r,t);var o=r.textFill==null;return i?o&&(r.textFill=n.insideFill||Q.color.neutral00,!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=a),r.textStrokeWidth??=2):(o&&(r.textFill=e.fill||n.outsideFill||Q.color.neutral00),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,X(t.rich,function(e){_L(e,e)}),r}function _L(e,t){t&&(vC(t,`fill`)&&(e.textFill=t.fill),vC(t,`stroke`)&&(e.textStroke=t.fill),vC(t,`lineWidth`)&&(e.textStrokeWidth=t.lineWidth),vC(t,`font`)&&(e.font=t.font),vC(t,`fontStyle`)&&(e.fontStyle=t.fontStyle),vC(t,`fontWeight`)&&(e.fontWeight=t.fontWeight),vC(t,`fontSize`)&&(e.fontSize=t.fontSize),vC(t,`fontFamily`)&&(e.fontFamily=t.fontFamily),vC(t,`align`)&&(e.textAlign=t.align),vC(t,`verticalAlign`)&&(e.textVerticalAlign=t.verticalAlign),vC(t,`lineHeight`)&&(e.textLineHeight=t.lineHeight),vC(t,`width`)&&(e.textWidth=t.width),vC(t,`height`)&&(e.textHeight=t.height),vC(t,`backgroundColor`)&&(e.textBackgroundColor=t.backgroundColor),vC(t,`padding`)&&(e.textPadding=t.padding),vC(t,`borderColor`)&&(e.textBorderColor=t.borderColor),vC(t,`borderWidth`)&&(e.textBorderWidth=t.borderWidth),vC(t,`borderRadius`)&&(e.textBorderRadius=t.borderRadius),vC(t,`shadowColor`)&&(e.textBoxShadowColor=t.shadowColor),vC(t,`shadowBlur`)&&(e.textBoxShadowBlur=t.shadowBlur),vC(t,`shadowOffsetX`)&&(e.textBoxShadowOffsetX=t.shadowOffsetX),vC(t,`shadowOffsetY`)&&(e.textBoxShadowOffsetY=t.shadowOffsetY),vC(t,`textShadowColor`)&&(e.textShadowColor=t.textShadowColor),vC(t,`textShadowBlur`)&&(e.textShadowBlur=t.textShadowBlur),vC(t,`textShadowOffsetX`)&&(e.textShadowOffsetX=t.textShadowOffsetX),vC(t,`textShadowOffsetY`)&&(e.textShadowOffsetY=t.textShadowOffsetY))}var vL=function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();LC(vL);var jce=0,yL=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++jce,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&VS(r,Mce);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!YS(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var r=this._getOrCreateMap();return t=r.get(e),t??(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||=hC(this.categories)},e}();function Mce(e){return QS(e)&&e.value!=null?e.value:e+``}var bL=GS({needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1});function xL(e,t,n){var r;e||={};var i=iF();if(i){var a=i.createBreakScaleMapper(t,n);a.hasBreaks()&&(X(bL,function(t){a[t]&&(e[t]=KS(a[t],a))}),r=a)}return r??Pce(e,n),{brk:r,mapper:e}}function SL(e,t){X(bL,function(n){e[n]=t[n]})}function CL(e,t){e.freeze=yC}function wL(e){return e.getExtentUnsafe(0,2)}function TL(e,t){return e.getExtentUnsafe(1,t)||e.getExtentUnsafe(0,t)}function Nce(e){var t=TL(e,3);return t[1]-t[0]}function EL(e){var t=e.getExtentUnsafe(0,3);return t[1]-t[0]}function Pce(e,t){var n=e||{},r=[];return n._extents=r,r[0]=t?t.slice():Uk(),Y(n,Fce),n}var Fce={needTransform:function(){return!1},normalize:function(e){var t=this._extents[1]||this._extents[0];return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},scale:function(e){var t=this._extents[1]||this._extents[0];return e*(t[1]-t[0])+t[0]},transformIn:function(e){return e},transformOut:function(e){return e},contain:function(e){var t=TL(this,null);return e>=t[0]&&e<=t[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){DL(this._extents,0,e,t)},setExtent2:function(e,t,n){var r=this._extents;r[e]||(r[e]=r[0].slice()),DL(r,e,t,n)},freeze:function(){}};function DL(e,t,n,r){Jk(n,r)&&(e[t][0]=n,e[t][1]=r)}function OL(e){return kL(e)||jL(e)}function kL(e){return e.type===`interval`}function AL(e){return e.type===`time`}function jL(e){return e.type===`log`}function ML(e){return e.type===`ordinal`}function NL(e){var t=pk(e),n=XO(10,t),r=qO(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,rk(r*n,-t)}function PL(e){return ak(e)+2}function FL(e,t){return ZO(e)/ZO(t)}function IL(e,t,n){var r=n&&n.lookup;if(r){for(var i=0;i1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==r[0]&&c(r[0],!0,!0);for(var s=i;s<=r[1];s+=o)c(s,!1,s===r[0]||s===r[1]);s-o!==r[1]&&c(r[1],!0,!0);function c(e,t,r){n({value:e,offInterval:t},r)}}var VL=function(e){gS(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,SL(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new yL({}),Z(i)&&(i=new yL({categories:VS(i,function(e){return QS(e)?e.value:e})})),r._ordinalMeta=i;var a=xL(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,CL(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:YS(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=qO(e),e},t.prototype.getTicks=function(){var e=[];return BL(this,0,function(t){e.push(t)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null)this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;else{for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=WO(a,t.length);i=0&&e=0&&e=0&&eo[0]&&mi[1]||!isFinite(p)||!isFinite(i[1]))break}else{if(m>f)break;p=WO(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=rk(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=rk(p+h*n,a))}if(l.length>0&&p===l[l.length-1].value)break;if(l.length>u)return[]}var g=l.length?l[l.length-1].value:i[1];return r[1]>g&&l.push({value:e.expandToNicedExtent?rk(g+n,a):r[1]}),c&&o.pruneTicksByBreak(e.pruneByBreak,l,s.breaks,function(e){return e.value},t.interval,r),c&&e.breakTicks!==`none`&&o.addBreaksToTicks(l,s.breaks,r),l},t.prototype.getMinorTicks=function(e){return HL(this,e,oF(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=ak(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),VF(rk(e.value,n,!0))},t.type=`interval`,t}(vL);vL.registerClass(UL);var WL=function(e,t,n,r){for(;n>>1;e[i][1]16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function YL(e){var t=30*dF;return e/=t,e>6?6:e>3?3:e>2?2:1}function XL(e){return e/=uF,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function ZL(e,t){return e/=t?lF:cF,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function QL(e){return GO(mk(e,!0),1)}function $L(e,t,n){var r=Math.max(0,RS(vF,t)-1);return DF(new Date(e),vF[r],n).getTime()}function eR(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(e,t){return Math.max(0,Math.round((t-e)/i))}}function tR(e,t,n,r,i,a){var o=yF,s=0;function c(e,t,n,i,o,c,l){for(var u=eR(o,e),d=t,f=new Date(d);d3e3));)if(f[o](f[i]()+e),d=f.getTime(),a){var p=a.calcNiceTickMultiple(d,u);p>0&&(f[o](f[i]()+p*e),d=f.getTime())}l.push({value:d,notAdd:d>r[1]})}function l(e,i,a){var o=[],s=!i.length;if(!qL(CF(e),r[0],r[1],n)){s&&(i=[{value:$L(r[0],e,n)},{value:r[1]}]);for(var l=0;l=r[0]&&u<=r[1]&&c(f,u,d,p,m,h,o),e===`year`&&a.length>1&&l===0&&a.unshift({value:a[0].value-f})}}for(var l=0;l=r[0]&&v<=r[1]&&f++)}var y=i/t;if(f>y*1.5&&p>y/1.5||(u.push(g),f>y||e===o[m]))break}d=[]}}for(var b=US(VS(u,function(e){return US(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),x=b.length-1,S=[],m=0;mr[0])&&S.unshift({value:r[0],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),(!D||D.values&&(a=s);var c=KL.length,l=Math.min(WL(KL,a,0,c),c-1),u=KL[l][1],d=KL[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})};vL.registerClass(GL);var rR=0,iR=1,aR=2,oR=function(e){gS(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=UL.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[rR]=i[iR]=a[rR]=a[iR]=NaN,SL(r,t.mapperMethods);var s=iF(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},aR,l),r.powStub=new UL({breakParsed:l.original}),r.intervalStub=new UL({breakParsed:l.transformed}),CL(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=iF(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return VS(i.getTicks(e||{}),function(e){var i=e.value,o=IL(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,oF(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return HL(this,e,oF(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,t){return this.intervalStub.getLabel(e,t)},t.type=`log`,t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(FL(e,this.base))},scale:function(e){return IL(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=FL(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return sR.depth=n,cR.lookup=this._lookup,IL(n===2?e:this.intervalStub.transformOut(e,sR),this.base,cR)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!Jk(t,n)||t<=0||n<=0)){var r=lR,i=lR;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[rR]=t,r[iR]=n);var o=this.base;this.intervalStub.setExtent2(e,i[rR]=FL(t,o),i[iR]=FL(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return Jk(t[0],t[1])&&bk(e)&&e<=0&&(e=t[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,t){return t===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,t)}},t}(vL);vL.registerClass(oR);var sR={},cR={},lR=[],uR={value:1,category:1,time:1,log:1},dR=Ik();function fR(e){var t=e.get(`type`);return(t==null||!vC(uR,t)&&!vL.getClass(t))&&(t=`value`),t}function pR(e,t,n){var r=iF(),i;switch(r&&(i=wR(e,t,n)),t){case`category`:return new VL({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:Uk()});case`time`:return new GL({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new oR({logBase:e.get(`logBase`),breakOption:i});case`value`:return new UL({breakOption:i});default:return new((vL.getClass(t))||UL)({})}}function mR(e,t,n){var r=n?TL(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return Jk(i,a)?i===t||a===t?2:it?1:3:3}function hR(e){dR(e).noOnMyZero=!0}function gR(e){return dR(e).noOnMyZero}function _R(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=bF(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}if(YS(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};if(JS(t)){if(e.type===`category`)return function(n,r){return t(vR(e,n),n.value-e.scale.getExtent()[0],null)};var r=iF();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(vR(e,n),i,a)}}return function(t){return e.scale.getLabel(t)}}function vR(e,t){var n=e.scale;return ML(n)?n.getLabel(t):t.value}function yR(e){return e.get(`interval`)??`auto`}function bR(e){return e.type===`category`&&yR(e.getLabelModel())===0}function xR(e,t){var n={};return X(e.mapDimensionsAll(t),function(t){n[DP(e,t)]=!0}),GS(n)}function SR(e){return e===`middle`||e===`center`}function CR(e){return e.getShallow(`show`)}function wR(e,t,n){var r=e.get(`breaks`,!0);if(r!=null)return!iF()||!n||!TR(t)?void 0:r}function TR(e){return e!==`category`}function ER(e,t,n,r,i,a){var o=jL(e),s=o?e.intervalStub:e;if(s.setExtent(r[0],r[1]),o){var c=e.powStub,l={depth:2},u=e.transformOut(r[0],l),d=e.transformOut(r[1],l),f=RL(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function DR(e,t){return ML(e)?e.getRawOrdinalNumber(t.value):t.value}function OR(e,t){return ML(e)&&!!t.get(`boundaryGap`)}function kR(e,t){if(e.length===t.length){for(var n=0;nt){a?n.push(o(a,c,t)):i&&n.push(o(i,c,0),o(i,c,t));break}else i&&=(n.push(o(i,c,0)),null),n.push(c),a=c}return n}function IR(e,t,n){var r=e.getVisual(`visualMeta`);if(r&&r.length&&e.count()&&t.type===`cartesian2d`){for(var i,a,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i===`x`||i===`y`){a=r[o];break}}if(a){var c=t.getAxis(i),l=VS(a.stops,function(e){return{coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}}),u=l.length,d=a.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),d.reverse());var f=FR(l,i===`x`?n.getWidth():n.getHeight()),p=f.length;if(!p&&u)return l[0].coord<0?d[1]?d[1]:l[u-1].color:d[0]?d[0]:l[0].color;var m=10,h=f[0].coord-m,g=f[p-1].coord+m,_=g-h;if(_<.001)return`transparent`;X(f,function(e){e.offset=(e.coord-h)/_}),f.push({offset:p?f[p-1].offset:.5,color:d[1]||`transparent`}),f.unshift({offset:p?f[0].offset:.5,color:d[0]||`transparent`});var v=new Wj(0,0,0,0,f,!0);return v[i]=h,v[i+`2`]=g,v}}}function LR(e,t,n){var r=e.get(`showAllSymbol`),i=r===`auto`;if(!r||i){var a=n.getAxesByScale(`ordinal`)[0];if(a&&!(i&&RR(a,t))){var o=t.mapDimension(a.dim),s={};return X(a.getViewLabels(),function(e){e.tick.offInterval||(s[DR(a.scale,e.tick)]=1)}),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function RR(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;or)return!1;return!0}function zR(e){for(var t=e.length/2;t>0&&QI(e[t*2-2],e[t*2-1]);t--);return t-1}function BR(e,t){return[e[t*2],e[t*2+1]]}function VR(e,t,n){for(var r=e.length/2,i=n===`x`?0:1,a,o,s=0,c=-1,l=0;l=t||a>=t&&o<=t){c=l;break}s=l,a=o}}return{range:[s,c],t:(t-a)/(o-a)}}function HR(e){if(e.get([`endLabel`,`show`]))return!0;for(var t=0;t0&&e.get([`emphasis`,`lineStyle`,`width`])===`bolder`){var M=f.getState(`emphasis`).style;M.lineWidth=+f.style.lineWidth+1}nA(f).seriesIndex=e.seriesIndex,QA(f,k,A,j);var N=MR(e.get(`smooth`)),P=e.get(`smoothMonotone`);if(f.setShape({smooth:N,smoothMonotone:P,connectNulls:x}),p){var F=a.getCalculationInfo(`stackedOnSeries`),ee=0;p.useStyle(LS(s.getAreaStyle(),{fill:E,opacity:.7,lineJoin:`bevel`,decal:a.getVisual(`style`).decal})),F&&(ee=MR(F.get(`smooth`))),p.setShape({smooth:N,stackedOnSmooth:ee,smoothMonotone:P,connectNulls:x}),ej(p,e,`areaStyle`),nA(p).seriesIndex=e.seriesIndex,QA(p,k,A,j)}var I=this._changePolyState;a.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=I)}),this._polyline.onHoverStateChange=I,this._data=a,this._coordSys=r,this._stackedOnPoints=y,this._points=c,this._step=w,this._valueOrigin=_;var L=e.get(`triggerEvent`),R=e.get(`triggerLineEvent`),te=R===!0||L===!0||L===`line`,ne=R===!0||L===!0||L===`area`;this.packEventData(e,f,te),p&&this.packEventData(e,p,ne)},t.prototype.packEventData=function(e,t,n){nA(t).eventData=n?{componentType:`series`,componentSubType:`line`,componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:`line`,selfType:t===this._polygon?`area`:`line`}:null},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=Fk(i,r);if(this._changePolyState(`emphasis`),!(a instanceof Array)&&a!=null&&a>=0){var o=i.getLayout(`points`),s=i.getItemGraphicEl(a);if(!s){var c=o[a*2],l=o[a*2+1];if(QI(c,l)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,l))return;var u=e.get(`zlevel`)||0,d=e.get(`z`)||0;s=new WI(i,a),s.x=c,s.y=l,s.setZ(u,d);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=u,f.z=d,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else sL.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=Fk(i,r);if(this._changePolyState(`normal`),a!=null&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else sL.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;PA(this._polyline,e),t&&PA(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new Sce({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new wce({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,a=t.getBaseAxis(),o=a.inverse;t.type===`cartesian2d`?(r=a.isHorizontal(),i=!1):t.type===`polar`&&(r=a.dim===`angle`,i=!0);var s=e.hostModel,c=s.get(`animationDuration`);JS(c)&&(c=c(null));var l=s.get(`animationDelay`)||0,u=JS(l)?l(null):l;e.eachItemGraphicEl(function(e,a){var s=e;if(s){var d=[e.x,e.y],f=void 0,p=void 0,m=void 0;if(n){if(i){var h=n,g=t.pointToCoord(d);r?(f=h.startAngle,p=h.endAngle,m=-g[1]/180*Math.PI):(f=h.r0,p=h.r,m=g[0])}else{var _=n;r?(f=_.x,p=_.x+_.width,m=e.x):(f=_.y+_.height,p=_.y,m=e.y)}}var v=p===f?0:(m-f)/(p-f);o&&(v=1-v);var y=JS(l)?l(a):c*v+u,b=s.getSymbolPath(),x=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:y}),b.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel(`endLabel`);if(HR(e)){var i=e.getData(),a=this._polyline,o=i.getLayout(`points`);if(!o){a.removeTextContent(),this._endLabel=null;return}var s=this._endLabel;s||(s=this._endLabel=new jO({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var c=zR(o);c>=0&&(YM(a,XM(e,`endLabel`),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(e,t,n){return n==null?HI(i,e):UI(i,n)},enableTextSetter:!0},WR(r,t)),a.textConfig.position=null)}else this._endLabel&&=(this._polyline.removeTextContent(),null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,a,o){var s=this._endLabel,c=this._polyline;if(s){e<1&&r.originalX==null&&(r.originalX=s.x,r.originalY=s.y);var l=n.getLayout(`points`),u=n.hostModel,d=u.get(`connectNulls`),f=a.get(`precision`),p=a.get(`distance`)||0,m=o.getBaseAxis(),h=m.isHorizontal(),g=m.inverse,_=t.shape,v=g?h?_.x:_.y+_.height:h?_.x+_.width:_.y,y=(h?p:0)*(g?-1:1),b=(h?0:-p)*(g?-1:1),x=h?`x`:`y`,S=VR(l,v,x),C=S.range,w=C[1]-C[0],T=void 0;if(w>=1){if(w>1&&!d){var E=BR(l,C[0]);s.attr({x:E[0]+y,y:E[1]+b}),i&&(T=u.getRawValue(C[0]))}else{var E=c.getPointOn(v,x);E&&s.attr({x:E[0]+y,y:E[1]+b});var D=u.getRawValue(C[0]),O=u.getRawValue(C[1]);i&&(T=vae(n,f,D,O,S.t))}r.lastFrameIndex=C[0]}else{var k=e===1||r.lastFrameIndex>0?C[0]:0,E=BR(l,k);i&&(T=u.getRawValue(k)),s.attr({x:E[0]+y,y:E[1]+b})}if(i){var A=iN(s);typeof A.setLabelText==`function`&&A.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,a,o){var s=this._polyline,c=this._polygon,l=e.hostModel,u=xce(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,a),d=u.current,f=u.stackedOnCurrent,p=u.next,m=u.stackedOnNext;if(i&&(f=PR(u.stackedOnCurrent,u.current,n,i,o),d=PR(u.current,null,n,i,o),m=PR(u.stackedOnNext,u.next,n,i,o),p=PR(u.next,null,n,i,o)),jR(d,p)>3e3||c&&jR(f,m)>3e3)s.stopAnimation(),s.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m}));else{s.shape.__points=u.current,s.shape.points=d;var h={shape:{points:p}};u.current!==d&&(h.shape.__points=u.next),s.stopAnimation(),tM(s,h,l),c&&(c.setShape({points:d,stackedOnPoints:f}),c.stopAnimation(),tM(c,{shape:{stackedOnPoints:m}},l),s.shape.points!==c.shape.points&&(c.shape.points=s.shape.points));for(var g=[],_=u.status,v=0;v<_.length;v++)if(_[v].cmd===`=`){var y=e.getItemGraphicEl(_[v].idx1);y&&g.push({el:y,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during(function(){c&&c.dirtyShape();for(var e=s.shape.__points,t=0;tt&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;YS(i)?p=qR[i]:JS(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,JR))}}}}}function XR(e){e.registerChartView(GR),e.registerSeriesModel(hce),e.registerLayout(KR(`line`,!0)),e.registerVisual({seriesType:`line`,reset:function(e){var t=e.getData(),n=e.getModel(`lineStyle`).getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual(`style`).fill),t.setVisual(`legendLineStyle`,n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,YR(`line`))}var ZR=Ik(),QR=Ik(),$R={estimate:1,determine:2};function ez(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function tz(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:VS(rz(n,r),function(t,n){return{formattedLabel:_R(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?iz(e,t):sz(e)}function nz(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:rz(i,r)}:e.type===`category`?oz(e,t):{ticks:r.getTicks(n)}}function rz(e,t){var n=t.getExtent(),r=[];return X(e,function(e){e=t.parse(e),e>=n[0]&&e<=n[1]&&r.push(e)}),Zk(r,Cae,null),ik(r),VS(r,function(e){return{value:e}})}function iz(e,t){var n=e.getLabelModel(),r=az(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function az(e,t,n){var r=lz(e),i=yR(t),a=n.kind===$R.estimate;if(!a){var o=dz(r,i);if(o)return o}var s,c;JS(i)?s=vz(e,i,!1):(c=i===`auto`?pz(e,n):i,s=vz(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return fz(r,i,l),!0}):fz(r,i,l),l}function oz(e,t){var n=cz(e),r=yR(t),i=dz(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),JS(r))a=vz(e,r,!0);else if(r===`auto`){var s=az(e,e.getLabelModel(),ez($R.determine));o=s.labelCategoryInterval,a=VS(s.labels,function(e){return e.tick})}else o=r,a=vz(e,o,!0);return fz(n,r,{ticks:a,tickCategoryInterval:o})}function sz(e){var t=e.scale.getTicks(),n=_R(e);return{labels:VS(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}var cz=uz(`axisTick`),lz=uz(`axisLabel`);function uz(e){return function(t){return QR(t)[e]||(QR(t)[e]={list:[]})}}function dz(e,t){for(var n=0;nu&&(l=Math.max(1,Math.floor(c/u)));for(var d=s[0],f=e.dataToCoord(d+1)-e.dataToCoord(d),p=Math.abs(f*Math.cos(a)),m=Math.abs(f*Math.sin(a)),h=0,g=0;d<=s[1];d+=l){var _=0,v=0,y=Ww(i({value:d}),r.font,`center`,`top`);_=y.width*1.3,v=y.height*1.3,h=Math.max(h,_,7),g=Math.max(g,v,7)}var b=h/p,x=g/m;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(b,x)));return n===$R.estimate?(t.out.noPxChangeTryDetermine.push(KS(hz,null,e,S,c)),S):gz(e,S,c)??S}function hz(e,t,n){return gz(e,t,n)==null}function gz(e,t,n){var r=ZR(e.model),i=e.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-n)<=1&&a>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function _z(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get(`rotate`)||0,font:t.getFont()}}function vz(e,t,n){var r=_R(e),i=e.scale,a=[],o=JS(t);return BL(i,o?0:t,function(e,s){var c=i.getLabel(e);if(o){var l=!!t(e.value,c);if(e.offInterval=!l,!l&&!s)return}a.push(n?e:{formattedLabel:r(e),rawLabel:c,tick:e})}),a}var yz=Ik();function bz(e){yz(e).prepare={}}function xz(e){yz(e).fullUpdate={}}function Sz(e){return yz(e).prepare}function Cz(e){return yz(e).fullUpdate}var wz=Xk(),Tz=Ik(),Ez=Ik();function Dz(e,t){var n=e.model,r=Tz(Cz(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function Oz(e,t){return jz(Dz(e,t))}function kz(e,t){var n=[];return Az(e.model.ecModel,function(e){for(var r=0;r0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),bk(n)&&n>0&&bk(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*Wz,e.w2=e.w*n/r)}var Jz=[0,1],Yz=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),$O(e,Jz,Xz(this),t)},e.prototype.coordToData=function(e,t){var n=$O(e,Xz(this),Jz,t);return this.scale.scale(n)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=VS(nz(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(DR(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=Zz(this,n,r);return VS(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(ML(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),VS(this.scale.getMinorTicks(e),function(e){return VS(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=ez($R.determine),tz(this,e).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){return Gz(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=ez($R.determine),mz(this,e)},e}();function Xz(e){var t=e.getExtent();if(e.onBand){var n=(t[1]-t[0])/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}function Zz(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=Gz(e).w;if(!i)return!1;X(t,function(e){e.coord-=i/2});var a=e.scale.getExtent(),o=t[r-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var Qz=function(e){gS(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(Yz),$z=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],eB=1,tB=2,nB=eB|tB;function rB(e,t,n){n||=nB,t?e.dirty|=n:e.dirty&=~n}function iB(e,t){return t||=nB,e.dirty==null||!!(e.dirty&t)}function aB(e){if(e)return iB(e)&&Ice(e,e.label,e),e}function Ice(e,t,n){var r=t.getComputedTransform();e.transform=RM(e.transform,r);var i=e.localRect=LM(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=n&&n.marginForce,c=n&&n.minMarginForce,l=n&&n.marginDefault,u=a.__marginType;u==null&&l&&(o=l,u=aN.textMargin);for(var d=0;d<4;d++)oB[d]=u===aN.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===aN.textMargin&&kM(i,oB,!1,!1);var f=e.rect=LM(e.rect,i);return r&&f.applyTransform(r),u===aN.minMargin&&kM(f,oB,!1,!1),e.axisAligned=FM(r),(e.label=e.label||{}).ignore=t.ignore,rB(e,!1),rB(e,!0,tB),e}var oB=[0,0,0,0];function Lce(e,t,n){return e.transform=RM(e.transform,n),e.localRect=LM(e.localRect,t),e.rect=LM(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=FM(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function Rce(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var n=e.transform;n&&(n[4]+=t.x,n[5]+=t.y);var r=e.rect;r&&(r.x+=t.x,r.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,n)}}function sB(e,t){for(var n=0;n<$z.length;n++){var r=$z[n];e[r]??(e[r]=t[r])}return aB(e)}function cB(e){var t=e.obb;return(!t||iB(e,tB))&&(e.obb=t||=new Qj,t.fromBoundingRect(e.localRect,e.transform),rB(e,!1,tB)),t}function zce(e){var t=[];e.sort(function(e,t){return+!!t.suggestIgnore-!!e.suggestIgnore||t.priority-e.priority});function n(e){if(!e.ignore){var t=e.ensureState(`emphasis`);t.ignore??=!1}e.ignore=!0}for(var r=0;r.1?`x`:`y`,u=a.transGroup[l];if(o.sort(function(e,t){return Math.abs(e.label[l]-u)-Math.abs(t.label[l]-u)}),c&&s){var d=i.getExtent(),f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-f;s.union(new kw(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var hB=ZC(),gB=new kw(0,0,0,0),_B=function(e,t,n,r,i,a){if(SR(e.nameLocation)){var o=a.stOccupiedRect;o&&vB(Lce({},o,a.transGroup.transform),r,i)}else yB(a.labelInfoList,a.dirVec,r,i)};function vB(e,t,n){var r=new gw;lB(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&Rce(t,r)}function yB(e,t,n,r){for(var i=gw.dot(r,t)>=0,a=0,o=e.length;a0?`top`:`bottom`,i=`center`):uk(r-dB)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r0?`right`:`left`:n>0?`left`:`right`),{rotation:r,textAlign:i,textVerticalAlign:a}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),Gce=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],Kce={axisLine:function(e,t,n,r,i,a,o){var s=r.get([`axisLine`,`show`]);if(s===`auto`&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),s){var c=r.axis.getExtent(),l=a.transform,u=[c[0],0],d=[c[1],0],f=u[0]>d[0];l&&(pw(u,u,l),pw(d,d,l));var p=Y({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get([`axisLine`,`breakLine`])&&sF(r.axis.scale))uB().buildAxisBreakLine(r,i,a,m);else{var h=new Lj(Y({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));vM(h.shape,h.style.lineWidth),h.anid=`line`,i.add(h)}var g=r.get([`axisLine`,`symbol`]);if(g!=null){var _=r.get([`axisLine`,`symbolSize`]);YS(g)&&(g=[g,g]),(YS(_)||ZS(_))&&(_=[_,_]);var v=VI(r.get([`axisLine`,`symbolOffset`])||0,_),y=_[0],b=_[1];X([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(t,n){if(g[n]!==`none`&&g[n]!=null){var r=zI(g[n],-y/2,-b/2,y,b,p.stroke,!0),a=t.r+t.offset,o=f?d:u;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,a,o,s){wB(t,i,s)&&xB(e,t,n,r,i,a,o,$R.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){wB(t,i,s)&&xB(e,t,n,r,i,a,o,$R.determine);var c=Xce(e,i,a,r);Yce(e,t.labelLayoutList,c),Zce(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var l=e.axisName;if(OB(l)){var u=e.nameLocation,d=e.nameDirection,f=r.getModel(`nameTextStyle`),p=r.get(`nameGap`)||0,m=r.axis.getExtent(),h=r.axis.inverse?-1:1,g=new gw(0,0),_=new gw(0,0);u===`start`?(g.x=m[0]-h*p,_.x=-h):u===`end`?(g.x=m[1]+h*p,_.x=h):(g.x=(m[0]+m[1])/2,g.y=e.labelOffset+d*p,_.y=d);var v=ZC();_.transform(nw(v,v,e.rotation));var y=r.get(`nameRotate`);y!=null&&(y=y*dB/180);var b,x;SR(u)?b=bB.innerTextLayout(e.rotation,y??e.rotation,d):(b=qce(e.rotation,u,y||0,m),x=e.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(b.rotation)),!isFinite(x)&&(x=null)));var S=f.getFont(),C=r.get(`nameTruncate`,!0)||{},w=C.ellipsis,T=iC(e.raw.nameTruncateMaxWidth,C.maxWidth,x),E=s.nameMarginLevel||0,D=new jO({x:g.x,y:g.y,rotation:b.rotation,silent:bB.isLabelSilent(r),style:ZM(f,{text:l,font:S,overflow:`truncate`,width:T,ellipsis:w,fill:f.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:f.get(`align`)||b.textAlign,verticalAlign:f.get(`verticalAlign`)||b.textVerticalAlign}),z2:1});if(MM({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=bB.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,nA(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=aB({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:SR(u)?Hce[E]:Uce[E]});if(c.nameLocation=u,i.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&k){var A=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,k,_,A)}}}};function xB(e,t,n,r,i,a,o,s){TB(t)||Qce(e,t,i,s,r,o);var c=t.labelLayoutList;$ce(e,r,c,a),nle(r,e.rotation,c);var l=e.optionHideOverlap;Jce(r,c,l),l&&zce(US(c,function(e){return e&&!e.label.ignore})),Wce(e,n,r,c)}function qce(e,t,n,r){var i=lk(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return uk(i-dB/2)?(o=c?`bottom`:`top`,a=`center`):uk(i-dB*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=idB/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function Jce(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(bR(r))return;function a(e,a,o){var s=aB(t[a]),c=aB(t[o]),l=r.scale;if(s&&c){if(e==null){if(!n&&i)return;var u=fB(s.label).labelInfo.tick;if(AL(l)&&u.notNice||ML(l)&&u.offInterval){SB(s.label);return}}if(e===!1||s.suggestIgnore)SB(s.label);else if(c.suggestIgnore)SB(c.label);else{var d=.1;if(!n){var f=[0,0,0,0];s=sB({marginForce:f},s),c=sB({marginForce:f},c)}lB(s,c,null,{touchThreshold:d})&&SB(e?c.label:s.label)}}}var o=e.get([`axisLabel`,`showMinLabel`]),s=e.get([`axisLabel`,`showMaxLabel`]),c=t.length;a(o,0,1),a(s,c-1,c-2)}function Yce(e,t,n){e.showMinorTicks||X(t,function(e){if(e&&e.label.ignore)for(var t=0;t0&&u[1]>0&&!d[0]&&(u[0]=0),u[0]<0&&u[1]<0&&!d[1]&&(u[1]=0));var y=!1;u[0]>u[1]&&(u.reverse(),y=!0);var b=MB(e,t.get(`startValue`,!0)),x=b!=null;!bk(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),bk(b)&&(x||!_||v)&&(bu[1]&&!d[1]&&(u[1]=b,d[1]=!0)),jB(this._i={scale:e,dataMM:l,noZoomEffMM:u,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:v,tggAxInv:y,ctnShp:i},u)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,r=e.zoomFixMM,i=e.fixMM,a={fixMM:i,zoomFixMM:r,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},o=a.effMM;return t[0]!=null&&(o[0]=t[0],i[0]=r[0]=!0),t[1]!=null&&(o[1]=t[1],i[1]=r[1]=!0),jB(e,o),a},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},e}();function jB(e,t){var n=e.scale,r=e.dataMM;n.sanitize&&(t[0]=n.sanitize(t[0],r),t[1]=n.sanitize(t[1],r),Yk(t))}function MB(e,t){return t==null?null:rC(t)?NaN:e.parse(t)}function lle(e,t){var n;if(ML(e))n=[0,0];else{var r=t.get(`boundaryGap`);typeof r==`boolean`&&(r=null),n=Z(r)?r:[r,r]}return[NB(n[0]),NB(n[1])]}function NB(e){return Jw(typeof e==`boolean`?0:e,1)||0}function PB(e){var t=sle(e.scale);return t.extent||=Uk(),t}function ule(e,t){PB(e).dimIdxInCoord=t.get(e.dim)}function FB(e,t){var n=e.scale,r=e.model,i=e.dim;n.rawExtentInfo||dle(n,e,i,r,t)}function dle(e,t,n,r,i){var a=PB(t),o=a.extent,s=!1;Mz(t,function(r){if(r.boxCoordinateSystem){var i=wP(r).coord,c=a.dimIdxInCoord;if(c>=0&&Z(i)){var l=i[c];l!=null&&!Z(l)&&Wk(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;X(xR(u,n),function(e){yae(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=mle(e,t,r);IB(e,new AB(e,r,o,s,c),i),a.extent=null}function fle(e,t){var n=e.scale;IB(n,new AB(n,e.model,t,!1,!1),cle)}function IB(e,t,n){e.rawExtentInfo=t,t.from=n}function ple(e,t){LB.set(e,t)}var LB=hC();function RB(e,t,n,r,i){e.rawExtentInfo||fle({scale:e,model:t},i||Uk());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),r&&a.tggAxInv&&n&&!n.get(`legacyMinMaxDontInverseAxis`)&&(r.inverse=!r.inverse),a}function mle(e,t,n){var r=OR(e,n),i=n.get(`containShape`,!0);if(i==null&&!r&&(i=!0),!i)return!1;var a=!1;return Iz(t,function(e){a=!!LB.get(e)||a}),a}function hle(e,t,n,r){if(n.ctnShp){var i;if(Iz(e,function(t){var n=LB.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],Gk(i,a[0]),Kk(i,a[1]),hR(e))}}),i){var a=t.getExtent();if(ML(t))e.onBand||t.setExtent2(1,WO(a[0],a[0]+i[0]),GO(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=WO(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=GO(o[1],t.transformOut(t.transformIn(o[1],null)+i[1],null))),(o[0]a[1])&&t.setExtent2(1,o[0],o[1])}}}}function gle(){Rz(`liPosMinGap`,_le)}function _le(e,t,n){var r=hC(),i=n.serUids,a=n.liPosMinGap,o,s=t.axis,c=s.scale,l=c.needTransform(),u=c.getFilter?c.getFilter():null,d=YN(u);function f(n){Pz(e,t.sers,function(e){var t=e.getRawData(),r=t.getDimensionIndex(t.mapDimension(s.dim));r>=0&&n(r,e,t.getStore())})}var p=0;if(f(function(e,t,n){r.set(t.uid,1),i&&i.hasKey(t.uid)||(o=!0),p+=n.count()}),i&&i.keys().length===r.keys().length||(o=!0),!o&&a!=null)t.liPosMinGap=a;else{eL(zB,p);var m=0;f(function(e,t,n){for(var r=0,i=n.count();r0&&v0?-2:-1,n.serUids=r}}var zB=eL({ctor:yce},50);function vle(e){return function(t,n){var r=Gz(t,{fromStat:{key:e}});if(bk(r.w2))return[-r.w2/2,r.w2/2]}}function BB(e,t){return e+`|&`+t}function yle(e){return gle(),{liPosMinGap:!ML(e.scale)}}function ble(e,t,n,r){Hz(e,{key:t,seriesType:n,coordSysType:r,getMetrics:yle})}function xle(e){return e.scale.rawExtentInfo.makeRenderInfo().startValue}var VB={left:0,right:0,top:0,bottom:0},HB=[`25%`,`25%`],UB=`cartesian2d`,Sle=function(e){gS(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=iI(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&rI(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&rI(this.option.outerBounds,t.outerBounds)},t.type=`grid`,t.dependencies=[`xAxis`,`yAxis`],t.layoutMode=`box`,t.defaultOption={show:!1,z:0,left:`15%`,top:65,right:`10%`,bottom:80,containLabel:!1,outerBoundsMode:`auto`,outerBounds:VB,outerBoundsContain:`all`,outerBoundsClampWidth:HB[0],outerBoundsClampHeight:HB[1],backgroundColor:Q.color.transparent,borderWidth:1,borderColor:Q.color.neutral30},t}(aI),Cle=Xk(),WB=`__ec_stack_`;function GB(e){return e.get(`stack`)||WB+e.seriesIndex}function wle(e){if(ML(e.axis.scale)){for(var t=Gz(e.axis),n=[],r=0;ro&&(o=a),o!==u&&(t.width=o,n-=o+l*o,r--)}}),u=(n-c)/(r+(r-1)*l),u=GO(u,0);var d=0,f;X(o,function(e){var t=s[e];t.width||=u,f=t,d+=t.width*(1+l)}),f&&(d-=f.width*l);var p={},m=-d/2;return X(o,function(e){var n=s[e];p[e]=p[e]||{bandWidth:t,offset:m,width:n.width},m+=n.width*(1+l)}),p}function Dle(e){return{seriesType:e,overallReset:function(t){var n=BB(e,UB);Fz(t,n,function(t){var r=Tle(t,e);Nz(t,n,function(e){var t=r.columnMap[GB(e)];e.getData().setLayout({bandWidth:t.bandWidth,offset:t.offset,size:t.width})})})}}}function Ole(e){return{seriesType:e,plan:aL(),reset:function(e){if(rle(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=EP(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=i.toGlobalCoord(i.dataToCoord(xle(i))),p=qB(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r=e.count,i=p&&$I(r*3),c=p&&s&&$I(r*3),l=p&&$I(r),v=n.master.getRect(),y=d?v.width:v.height,b,x=t.getStore(),S=0;(b=e.next())!=null;){var C=x.get(u?h:a,b),w=x.get(o,b),T=f,E=void 0;u&&(E=+C-x.get(a,b));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);u&&(T=n.dataToPoint([E,w])[0]),D=T,O=j[1]+_,k=j[0]-T,A=g,KO(k)s){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u??(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=+!r.getBaseAxis().isHorizontal();a[l]+=s+c/2}return a}return[NaN,NaN]},t.prototype.__requireStartValue=function(e){return this.getBaseAxis()!==e},t.type=`series.__base_bar__`,t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:`mod`,defaultBarGap:`10%`},t}(PI);PI.registerClass(JB);var jle=function(e){gS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return OP(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},t.prototype.getProgressive=function(){return this.get(`large`)?this.get(`progressive`):!1},t.prototype.__preparePipelineContext=function(e,t){var n=$k(this,e,t);return n.progressiveRender&&(n.large=!0),n},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=AP(JB.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:`rgba(180, 180, 180, 0.2)`,borderColor:null,borderWidth:0,borderType:`solid`,borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:Q.color.primary,borderWidth:2}},realtimeSort:!1}),t}(JB),YB=`\0__throttleOriginMethod`,XB=`\0__throttleRate`,ZB=`\0__throttleType`;function QB(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t||=0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){var e=[...arguments];r=new Date().getTime(),c=this,l=e;var f=u||t,p=u||n;u=null,s=r-(p?i:a)-f,clearTimeout(o),p?o=setTimeout(d,f):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&=(clearTimeout(o),null)},f.debounceNextCall=function(e){u=e},f}function $B(e,t,n,r){var i=e[t];if(i){var a=i[YB]||i,o=i[ZB];if(i[XB]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=QB(a,n,r===`debounce`),i[YB]=a,i[ZB]=r,i[XB]=n}return i}}function eV(e,t){var n=e[t];n&&n[YB]&&(n.clear&&n.clear(),e[t]=n[YB])}var Mle=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),tV=function(e){gS(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new Mle},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=(a-i)*.5,s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=Math.PI*2,f=u?l-cMath.PI/2&&ua)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&=(e.getZr().off(`rendered`,this._onRendered),null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){oM(t,e,nA(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(sL),oV={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=iV(t.x,e.x),s=aV(t.x+t.width,i),c=iV(t.y,e.y),l=aV(t.y+t.height,a),u=si?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=aV(t.r,e.r),a=iV(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},sV={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new DO({shape:Y({},r),z2:1});if(l.__dataIndex=n,l.name=`item`,a){var u=l.shape,d=i?`height`:`width`;u[d]=0}return l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?tV:Mj,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=Nle(fV(i),{isRoundCap:l===tV}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?tM:nM)(u,{shape:p},a)}return u}};function Lle(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function cV(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?tM:nM)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?tM:nM)(n,{shape:l},u,i)}function lV(e,t){for(var n=0;n0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function Ble(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function fV(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function pV(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(!s){var l=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,l)}else if(!a.get(`roundCap`)){var u=e.shape;Y(u,Fle(r.getModel(`itemStyle`),u,!0)),e.setShape(u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=s?o?i.r>=i.r0?`endArc`:`startArc`:i.endAngle>=i.startAngle?`endAngle`:`startAngle`:o?Gle(i,a.coordinateSystem):Kle(i,a.coordinateSystem),p=XM(r);YM(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:HI(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`||null,Ple(e,h===`outside`?f:h,fV(o),r.get([`label`,`rotate`]))}Aoe(m,p,a.getRawValue(n),function(e){return UI(t,e)});var g=r.getModel([`emphasis`]);QA(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),ej(e,r),Ble(i)&&(e.style.fill=`none`,e.style.stroke=`none`,X(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function Vle(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=e.get([`itemStyle`,`borderWidth`])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var Hle=function(){function e(){}return e}(),mV=function(e){gS(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new Hle},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c=0?n:null},30,!1);function Ule(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}function _V(e,t,n){if(pL(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}function Wle(e,t,n){return new(e.type===`polar`?Mj:DO)({shape:_V(t,n,e),silent:!0,z2:0})}function Gle(e,t){return e.height===0?t.getOtherAxis(t.getBaseAxis()).inverse?`bottom`:`top`:e.height>0?`bottom`:`top`}function Kle(e,t){return e.width===0?t.getOtherAxis(t.getBaseAxis()).inverse?`left`:`right`:e.width>=0?`right`:`left`}function qle(e){e.registerChartView(Ile),e.registerSeriesModel(jle),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Dle(`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Ole(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,YR(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})}),Ale(e)}function vV(e,t,n,r,i){var a=e+t;n.isSilent(a)||r.eachComponent({mainType:`series`,subType:`pie`},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&xV(e,i,t,n)}else{xV(e,t,t,n);var a=Qle(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&Xle.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function Qle(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function $le(e,t,n,r){e.addEventListener(t,n,r)}function eue(e,t,n,r){e.removeEventListener(t,n,r)}var TV=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function EV(e){return e.which===2||e.which===3}var tue=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a1&&r&&r.length>1){var a=DV(r)/DV(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=nue(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}},kV=`silent`;function rue(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:iue}}function iue(){TV(this.event)}var aue=function(e){HC(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(nD),AV=function(){function e(e,t){this.x=e,this.y=t}return e}(),oue=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],jV=new kw(0,0,0,0),MV=function(e){HC(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new AV(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new aue,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new Yle(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(X(oue,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=PV(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new AV(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new AV(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e||={};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=rue(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new AV(e,t);if(NV(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new kw(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u===n||u.ignore||u.ignoreCoarsePointer||u.parent&&u.parent.ignoreCoarsePointer||(jV.copy(u.getBoundingRect()),u.transform&&jV.applyTransform(u.transform),jV.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function sue(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return!i||kV}return!1}function NV(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=sue(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==kV)){t.target=o;break}}}function PV(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var FV=32,IV=7;function cue(e){for(var t=0;e>=FV;)t|=e&1,e>>=1;return e+t}function LV(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function lue(e,t,n){for(n--;t>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function zV(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;cs&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function BV(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;cs&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function uue(e,t){var n=IV,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]=IV||m>=IV);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else{for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-zV(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c=IV||g>=IV);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;cs&&(c=s),RV(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}}var HV=!1;function UV(){HV||(HV=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function WV(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var due=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=WV}return e.prototype.traverse=function(e,t){for(var n=0;n=0&&this._roots.splice(r,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),GV=SC.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function KV(){return new Date().getTime()}var fue=function(e){HC(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=KV()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)&&(r.ondestroy(),this.removeClip(r)),r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(GV(t),!e._paused&&e.update())}GV(t)},t.prototype.start=function(){this._running||(this._time=KV(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=KV(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=KV()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new tD(e,t.loop);return this.addAnimator(n),n},t}(nD),pue=300,qV=SC.domSupported,JV=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:VS(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),YV={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},XV=!1;function ZV(e){var t=e.pointerType;return t===`pen`||t===`touch`}function mue(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function QV(e){e&&(e.zrByTouch=!0)}function hue(e,t){return wV(e.dom,new gue(e,t),!0)}function $V(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var gue=function(){function e(e,t){this.stopPropagation=yC,this.stopImmediatePropagation=yC,this.preventDefault=yC,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),eH={mousedown:function(e){e=wV(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=wV(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger(`mousemove`,e)},mouseup:function(e){e=wV(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=wV(this.dom,e);var t=e.toElement||e.relatedTarget;$V(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){XV=!0,e=wV(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){XV||(e=wV(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=wV(this.dom,e),QV(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),eH.mousemove.call(this,e),eH.mousedown.call(this,e)},touchmove:function(e){e=wV(this.dom,e),QV(e),this.handler.processGesture(e,`change`),eH.mousemove.call(this,e)},touchend:function(e){e=wV(this.dom,e),QV(e),this.handler.processGesture(e,`end`),eH.mouseup.call(this,e),+new Date-this.__lastTouchMoment0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(e){this._disposed||(e||={},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t=0;o--)r[o]&&!Pk(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[gH],e},t.prototype.setTheme=function(e){this._theme=new uN(e),this._resetOption(`recreate`,null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i=t:n===`max`?e<=t:e===t}function Lue(e,t){return e.join(`,`)===t.join(`,`)}var xH=X,SH=QS,CH=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function wH(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=CH.length;n0?e[n-1].seriesModel:null)}),que(e))})}function que(e){X(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=sk(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var RH=function(){function e(){this.group=new vj,this.uid=kP(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();AC(RH),LC(RH);var zH=Ik(),BH={itemStyle:RC(lN,!0),lineStyle:RC(cN,!0)},Jue={lineStyle:`stroke`,itemStyle:`fill`};function VH(e,t){return e.visualStyleMapper||BH[t]||(console.warn(`Unknown style type '`+t+`'.`),BH.itemStyle)}function HH(e,t){return e.visualDrawType||Jue[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var Yue={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=VH(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=HH(e,r),c=a[s],l=JS(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||JS(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||JS(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=Y({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},UH=new uN,Xue={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=VH(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){UH.option=n[r];var o=i(UH);Y(e.ensureUniqueItemVisual(t,`style`),o),UH.option.decal&&(e.setItemVisual(t,`decal`,UH.option.decal),UH.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},Zue={performRawSeries:!0,overallReset:function(e){var t=hC();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();zH(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=zH(e).scope,a=HH(e,e.visualStyleAccessPath||`itemStyle`);r.each(function(e){var t=r.getRawIndex(e);n[t]=e}),t.each(function(o){var s=n[o];if(r.getItemVisual(s,`colorFromPalette`)){var c=r.ensureUniqueItemVisual(s,`style`),l=t.getName(o)||o+``,u=t.count();c[a]=e.getColorFromPalette(l,i,u)}})}})}},WH=Math.PI;function Que(e,t){t||={},LS(t,{text:`loading`,textColor:Q.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:Q.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new vj,r=new DO({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new jO({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new DO({style:{fill:`none`},textContent:i,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new Vj({shape:{startAngle:-WH/2,endAngle:-WH/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:`round`,lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:WH*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:WH*3/2}).delay(300).start(`circularInOut`),n.add(o)),n.resize=function(){var n=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-s*2-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:l}),a.setShape({x:c-s,y:l-s,width:s*2,height:s*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var GH=function(){function e(e,t,n,r){this._stageTaskMap=hC(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid);e.pipelineContext=n.context=e.__preparePipelineContext?e.__preparePipelineContext(t,n):$k(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=hC();t.eachSeries(function(t){var i=e.painter.type===`canvas`&&t.getProgressive(),a=t.uid;r.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(t,t.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;X(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});lC(!(r.reset&&r.overallReset),``),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;X(e,function(e,s){if(!(r.visualType&&r.visualType!==e.visualType)){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}});function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=hC(),s=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l);function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||fI({plan:rde,reset:ide,count:ode}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||fI({reset:$ue});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=hC(),c=e.seriesType,l=e.getTargetSeries,u=e.dirtyOnOverallProgress,d=!1;lC(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):X(n.getSeries(),f);function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,fI({reset:ede,onDirty:nde})));n.context={model:e,dirtyOnOverallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return JS(e)&&(e={overallReset:e,seriesType:sde(e)}),e.uid=kP(`stageHandler`),t&&(e.visualType=t),e},e}();function $ue(e){e.overallReset(e.ecModel,e.api,e.payload)}function ede(e){return e.dirtyOnOverallProgress&&tde}function tde(){this.agent.dirty(),this.getDownstream().dirty()}function nde(){this.agent&&this.agent.dirty()}function rde(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function ide(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Ek(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?VS(t,function(e,t){return KH(t)}):ade}var ade=KH(0);function KH(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),nU=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],rU=nU.concat([`symbolKeepAspect`]),lde={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual(`legendIcon`,e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o=0&&uU(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function dU(e,t,n){for(var r=t.type===`radial`?bde(e,t,n):yde(e,t,n),i=t.colorStops,a=0;a0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:ZS(e)?[e]:Z(e)?e:null}function mU(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&Sde(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=VS(n,function(e){return e/i}),r/=i)}return[n,r]}var Cde=new sO(!0);function hU(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function gU(e){return typeof e==`string`&&e!==`none`}function _U(e){var t=e.fill;return t!=null&&t!==`none`}function vU(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function yU(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function bU(e,t,n){var r=JC(t.image,t.__image,n);if(XC(r)){var i=e.createPattern(r,t.repeat||`repeat`);if(typeof DOMMatrix==`function`&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*bC),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function wde(e,t,n,r,i){var a,o=hU(n),s=_U(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||Cde,f=t.__dirty;if(!r){var p=n.fill,m=n.stroke,h=s&&!!p.colorStops,g=o&&!!m.colorStops,_=s&&!!p.image,v=o&&!!m.image,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0;(h||g)&&(C=t.getBoundingRect()),h&&(y=f?dU(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?dU(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?bU(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?bU(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),h?e.fillStyle=y:_&&(x?e.fillStyle=x:s=!1),g?e.strokeStyle=b:v&&(S?e.strokeStyle=S:o=!1)}var w=t.getGlobalScale();d.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,E;e.setLineDash&&n.lineDash&&(a=mU(t),T=a[0],E=a[1]);var D=!0;(u||f&4)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,l?c:1),T&&(e.setLineDash(T),e.lineDashOffset=E),r?(i.batchFill=s,i.batchStroke=o):n.strokeFirst?(o&&yU(e,n),s&&vU(e,n)):(s&&vU(e,n),o&&yU(e,n)),T&&e.setLineDash([])}function Tde(e,t,n){var r=t.__image=JC(n.image,t.__image,t,t.onload);if(r&&XC(r)){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var l=n.sx,u=n.sy,d=o-l,f=s-u;e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function Ede(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=mU(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(hU(n)&&e.strokeText(i,n.x,n.y),_U(n)&&e.fillText(i,n.x,n.y)):(_U(n)&&e.fillText(i,n.x,n.y),hU(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var xU=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],SU=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function CU(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){AU(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?DD.opacity:o}(r||t.blend!==n.blend)&&(a||=(AU(e,i),!0),e.globalCompositeOperation=t.blend||DD.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[qU]){if(this._disposed)this.id;else{var r,i,a;if(QS(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[qU]=!0,CW(this),!this._model||t){var o=new Nue(this._api),s=this._theme,c=this._model=new _H;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},AW);var l={seriesTransition:a,optionChanged:!0};if(n)this[YU]={silent:r,updateParams:l},this[qU]=!1,this.getZr().wakeUp();else{try{aW(this),cW.update.call(this,null,l)}catch(e){throw this[YU]=null,this[qU]=!1,e}this._ssr||this._zr.flush(),this[YU]=null,this[qU]=!1,fW.call(this,r),pW.call(this,r)}}}},t.prototype.setTheme=function(e,t){if(!this[qU]){if(this._disposed)this.id;else{var n=this._model;if(n){var r=t&&t.silent,i=null;this[YU]&&(r??=this[YU].silent,i=this[YU].updateParams,this[YU]=null),this[qU]=!0,CW(this);try{this._updateTheme(e),n.setTheme(this._theme),aW(this),cW.update.call(this,{type:`setTheme`},i)}catch(e){throw this[qU]=!1,e}this[qU]=!1,fW.call(this,r),pW.call(this,r)}}}},t.prototype._updateTheme=function(e){YS(e)&&(e=MW[e]),e&&(e=FS(e),e&&LH(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||SC.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e||={},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e||={},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return X(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed)this.id;else{e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;X(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return X(r,function(e){e.group.ignore=!1}),a}},t.prototype.getConnectedDataURL=function(e){if(this._disposed)this.id;else{var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(FW[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();X(PW,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(FS(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=d,s*=d,c*=d,l*=d;var f=c-o,p=l-s,m=CS.createCanvas(),h=sH(m,{renderer:t?`svg`:`canvas`});if(h.resize({width:f,height:p}),t){var g=``;return X(u,function(e){var t=e.left-o,n=e.top-s;g+=``+e.dom+``}),h.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&h.painter.setBackgroundColor(e.connectedBackgroundColor),h.refreshImmediately(),h.painter.toDataURL()}return e.connectedBackgroundColor&&h.add(new DO({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),X(u,function(e){var t=new SO({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});h.add(t)}),h.refreshImmediately(),m.toDataURL(`image/`+(e&&e.type||`png`))}return this.getDataURL(e)}},t.prototype.convertToPixel=function(e,t,n){return lW(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return lW(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return lW(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed)this.id;else{var n=this._model,r;return X(Lk(n,e),function(e,n){n.indexOf(`Models`)>=0&&X(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r||=!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(r||=a.containPoint(t,e))}},this)},this),!!r}},t.prototype.getVisual=function(e,t){var n=this._model,r=Lk(n,e,{defaultMainType:`series`}),i=r.seriesModel.getData(),a=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?i.indexOfRawIndex(r.dataIndex):null;return a==null?aU(i,t):iU(i,a,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;X(Xde,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&oU(i,function(e){var t=nA(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}if(t.eventData)return a=Y({},t.eventData),!0},!0),a){var o=a.componentType,s=a.componentIndex;(o===`markLine`||o===`markPoint`||o===`markArea`)&&(o=`series`,s=a.seriesIndex);var c=o&&s!=null&&r.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:l},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;X(OW,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),Jle(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,this.getDom()&&Hk(this.getDom(),IW,``);var e=this,t=e._api,n=e._model;X(e._componentsViews,function(e){e.dispose(n,t)}),X(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete PW[e.id]}},t.prototype.resize=function(e){if(!this[qU]){if(this._disposed)this.id;else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[YU]&&(r??=this[YU].silent,n=!0,this[YU]=null),this[qU]=!0,CW(this);try{n&&aW(this),cW.update.call(this,{type:`resize`,animation:Y({duration:0},e&&e.animation)})}catch(e){throw this[qU]=!1,e}this[qU]=!1,fW.call(this,r),pW.call(this,r)}}}},t.prototype.showLoading=function(e,t){if(this._disposed)this.id;else if(QS(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),NW[e]){var n=NW[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=Y({},e);return t.type=DW[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)this.id;else if(QS(t)||(t={silent:!!t}),EW[e.type]&&this._model){if(this[qU])this._pendingActions.push(e);else{var n=t.silent;dW.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&SC.browser.weChat&&this._throttledZrFlush(),fW.call(this,n),pW.call(this,n)}}},t.prototype.updateLabelLayout=function(){sU.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)this.id;else{var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){aW=function(e){bz(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),oW(e,!0),oW(e,!1),t.plan()},oW=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;caC(t.get(`hoverLayerThreshold`),fH.hoverLayerThreshold)&&!SC.node&&!SC.worker;(e._usingTHL||a)&&(t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){var t=e.states.emphasis;t&&t.hoverLayer!==2&&(t.hoverLayer=+!!a)})}}),e._usingTHL=a)}}function a(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function o(e,t){if(!e.preventAutoZ){var n=zM(e);t.eachRendered(function(e){return VM(e,n.z,n.zlevel),!0})}}function s(e,t){t.eachRendered(function(e){if(!rM(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function c(e,t){var n=e.getModel(`stateAnimation`),i=e.isAnimationEnabled(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(rM(e))return;if(e instanceof bO&&Hae(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&r(e)}})}yW=function(e){return new(function(t){gS(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}return n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){zA(t,n),xW(e)},n.prototype.leaveEmphasis=function(t,n){BA(t,n),xW(e)},n.prototype.enterBlur=function(t){VA(t),xW(e)},n.prototype.leaveBlur=function(t){HA(t),xW(e)},n.prototype.enterSelect=function(t){UA(t),xW(e)},n.prototype.leaveSelect=function(t){WA(t),xW(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n.prototype.getECUpdateCycleVersion=function(){return e[JU]},n.prototype.usingTHL=function(){return e._usingTHL},n}(fA))(e)},bW=function(e){function t(e,t){for(var n=0;n=0)){UW.push(n);var o=GH.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function GW(e,t){NW[e]=t}function ife(e,t,n){var r=pde(`registerMap`);r&&r(e,t,n)}var afe=Use;HW(UU,Yue),HW(GU,Xue),HW(GU,Zue),HW(UU,lde),HW(GU,ude),HW(KU,Pde),RW(LH),zW(Rde,Gue),GW(`default`,Que),VW({type:bA,event:bA,update:bA},yC),VW({type:xA,event:xA,update:xA},yC),VW({type:SA,event:TA,update:SA,action:yC,refineEvent:KW,publishNonRefinedEvent:!0}),VW({type:CA,event:TA,update:CA,action:yC,refineEvent:KW,publishNonRefinedEvent:!0}),VW({type:wA,event:TA,update:wA,action:yC,refineEvent:KW,publishNonRefinedEvent:!0});function KW(e,t,n,r){return{eventContent:{selected:Lae(n),isFromClick:t.isFromClick||!1}}}LW(`default`,{}),LW(`dark`,tU);var qW=[],ofe={registerPreprocessor:RW,registerProcessor:zW,registerPostInit:efe,registerPostUpdate:tfe,registerUpdateLifecycle:BW,registerAction:VW,registerCoordinateSystem:nfe,registerLayout:rfe,registerVisual:HW,registerTransform:afe,registerLoading:GW,registerMap:ife,registerImpl:fde,PRIORITY:qde,ComponentModel:aI,ComponentView:RH,SeriesModel:PI,ChartView:sL,registerComponentModel:function(e){aI.registerClass(e)},registerComponentView:function(e){RH.registerClass(e)},registerSeriesModel:function(e){PI.registerClass(e)},registerChartView:function(e){sL.registerClass(e)},registerCustomSeries:function(e,t){mde(e,t)},registerSubTypeDefaulter:function(e,t){aI.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Cue(e,t)}};function JW(e){Z(e)?X(e,function(e){JW(e)}):RS(qW,e)>=0||(qW.push(e),JS(e)&&(e={install:e}),e.install(ofe))}var sfe=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),YW=function(e){gS(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,zk).models[0]},t.type=`cartesian2dAxis`,t}(aI);zS(YW,sfe);var XW={show:!0,z:0,inverse:!1,name:``,nameLocation:`end`,nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:`...`,placeholder:`.`},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:`auto`,onZeroAxisIndex:null,lineStyle:{color:Q.color.axisLine,width:1,type:`solid`},symbol:[`none`,`none`],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:Q.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Q.color.axisSplitLine,width:1,type:`solid`}},splitArea:{show:!1,areaStyle:{color:[Q.color.backgroundTint,Q.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Q.color.neutral00,borderColor:Q.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:`auto`}},cfe=IS({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},XW),ZW=IS({boundaryGap:[0,0],axisLine:{show:`auto`},axisTick:{show:`auto`},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Q.color.axisMinorSplitLine,width:1}}},XW),lfe={category:cfe,value:ZW,time:IS({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},ZW),log:LS({logBase:10},ZW)};function QW(e,t,n,r){X(uR,function(i,a){var o=IS(IS({},lfe[a],!0),r,!0),s=function(e){gS(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+a,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=nI(this),r=n?iI(e):{};IS(e,t.getTheme().get(a+`Axis`)),IS(e,this.getDefaultOption()),e.type=$W(e),n&&rI(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=yL.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){var t=uB();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,$W)}function $W(e){return e.type||(e.data?`category`:`value`)}var ufe=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return VS(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),US(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),eG=[`x`,`y`];function tG(e){return(e.type===`interval`||e.type===`time`)&&!sF(e)}var dfe=function(e){gS(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=UB,t.dimensions=eG,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(tG(e)&&tG(t)){var n=TL(e,null),r=TL(t,null),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(o&&s){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s,u=i[0]-n[0]*c,d=i[1]-r[0]*l,f=this._transform=[c,0,0,l,u,d];this._invTransform=rw([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis(`x`).containData(e[0])&&this.getAxis(`y`).containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new kw(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n||=[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return pw(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t||=[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t,n){if(n||=[],this._invTransform)return pw(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e||=0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new kw(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(ufe);function ffe(e,t){var n=e.scale,r=e.model,i=RB(n,r,r.ecModel,e,null),a=jL(n),o=jL(t)?t.intervalStub:t,s=a?n.intervalStub:n,c=n.base,l=o.getTicks(),u=o.getTicks({expandToNicedExtent:!0}),d=l.length-1,f,p,m;if(d===1)f=p=0,m=1;else if(d===2){var h=KO(l[0].value-l[1].value),g=KO(l[1].value-l[2].value);f=p=0,h===g?m=2:(m=1,h=C[1])return!0})):b[1]?(T=C[1],A(function(){if(P(),k=rk(O-E*m,D),j(),w<=C[0])return!0})):A(function(){k=rk(YO(C[0]/E)*E,D),O=rk(JO(C[1]/E)*E,D);var e=qO((O-k)/E);if(e<=m){var t=m-e,n=void 0,r=i.incl0||a;if(r&&C[0]===0)n=[0,t];else if(r&&C[1]===0)n=[t,0];else{var o=JO(t/2);n=t%2==0?[o,o]:w+T=C[1])return!0}})}ER(n,b,S,[w,T],x,{interval:E,intervalCount:m,intervalPrecision:D,niceExtent:[k,O]})}function nG(e,t){var n=jL(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=LL(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?mfe(r,t):pfe(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=PL(d)),i[0]||(s[0]=rk(JO(s[0]/u)*u,l)),i[1]||(s[1]=rk(YO(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),ER(e,i,o,s,a,c)}function pfe(e,t){var n=zL(t.splitNumber,5),r=EL(e),i=t.minInterval,a=t.maxInterval,o=mk(r/n,!0);i!=null&&oa&&(o=a);var s=PL(o),c=e.getExtent(),l=[rk(YO(c[0]/o)*o,s),rk(JO(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function mfe(e,t){var n=zL(t.splitNumber,10),r=e.getExtent(),i=EL(e),a=GO(fk(i),1);n/i*a<=.5&&(a*=10);var o=PL(a),s=[rk(YO(r[0]/a)*a,o),rk(JO(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function rG(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;hfe(t,n,r,i,null)}function hfe(e,t,n,r,i){var a=RB(e,t,r,n,i),o=kL(e)||AL(e);gfe(e,{splitNumber:t.get(`splitNumber`),fixMinMax:a.fixMM,userInterval:t.get(`interval`),minInterval:o?t.get(`minInterval`):null,maxInterval:o?t.get(`maxInterval`):null,rawExtentResult:a}),n&&r&&hle(n,e,a,r)}function gfe(e,t){_fe[e.type](e,t)}var _fe={interval:nG,log:nG,time:nR,ordinal:yC},iG=[[3,1],[0,2]],vfe=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=eG,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;X(this._axesList,function(e){FB(e,1);var t=e.scale;ML(t)&&t.setSortInfo(e.model.get(`categorySortInfo`))});function r(e){for(var t=GS(e),n=[],r=t.length-1;r>=0;r--){var i=e[+t[r]];i.__alignTo?n.push(i):rG(i)}X(n,function(e){bfe(e,e.__alignTo)?rG(e):ffe(e,e.__alignTo.scale)})}r(n.x),r(n.y);var i={};X(n.x,function(e){aG(n,`y`,e,i)}),X(n.y,function(e){aG(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=tI(e,t),i=this._rect=$F(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(cG(a,i),!n){var c=fG(i,o,a,s,t),l=void 0;if(s)uG?(uG(this._axesList,i),cG(a,i)):l=dG(i.clone(),`axisLabel`,null,i,a,c,r);else{var u=mG(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=dG(d,f,p,i,a,c,r))}pG(i,a,$R.determine,null,l,r),X(this._coordsList,function(e){e.calcAffineTransform()})}},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}QS(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r=0;i--){var a=e[+t[i]];OL(a.scale)&&wR(a.model,a.type,!0)==null&&(a.model.get(`alignTicks`)&&a.model.get(`interval`)==null?r.push(a):n=a)}n||=r.pop(),n&&X(r,function(e){e.__alignTo=n})}function bfe(e,t){return sF(e.scale)||sF(t.scale)||t.scale.getTicks().length<2}function xfe(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim===`x`?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=e.dim===`x`?function(e){return e-t}:function(e){return r-e+t}}function cG(e,t){X(e.x,function(e){return lG(e,t.x,t.width)}),X(e.y,function(e){return lG(e,t.y,t.height)})}function lG(e,t,n){var r=[0,n],i=+!!e.inverse;e.setExtent(r[i],r[1-i]),xfe(e,t)}var uG;function dG(e,t,n,r,i,a,o){pG(r,i,$R.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=WS(s,function(e){return e>0})==null;return kM(r,s,!0,!0,n),cG(i,r),c;function l(e){X(i[lM[e]],function(t){if(CR(t.model)){var n=a.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i0&&!rC(t)&&t>1e-4&&(e/=t),e}}function fG(e,t,n,r,i){var a=new mB(hG);return X(n,function(n){return X(n,function(n){if(CR(n.model)){var o=!r;n.axisBuilder=ale(e,t,n.model,i,a,o)}})}),a}function pG(e,t,n,r,i,a){var o=n===$R.determine;X(t,function(t){return X(t,function(t){CR(t.model)&&(ole(t.axisBuilder,e,t.model),t.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};c(0),c(1);function c(t){s[lM[1-t]]=e[uM[t]]<=a.refContainer[uM[t]]*.5?0:1-t==1?2:1}X(t,function(e,t){return X(e,function(e){CR(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function mG(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():(i==null||i===`auto`)&&(r=$F(e.get(`outerBounds`,!0)||VB,n.refContainer));var a=e.get(`outerBoundsContain`,!0),o=a==null||a===`auto`||RS([`all`,`axisLabel`],a)<0?`all`:a,s=[tk(aC(e.get(`outerBoundsClampWidth`,!0),HB[0]),t.width),tk(aC(e.get(`outerBoundsClampHeight`,!0),HB[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var hG=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;_B(e,t,n,r,i,a),SR(e.nameLocation)||X(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&yB(e.labelInfoList,e.dirVec,r,i)})};function gG(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return _G(n,e,t),n.seriesInvolved&&yG(n,e),n}function _G(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];X(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=EG(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(X(n.getAxes(),qS(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&X(f.baseAxes,qS(p,!d||`cross`,u)),d&&X(f.otherAxes,qS(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(f&&(f!==`auto`||r||TG(d))){s??=d.get(`triggerTooltip`),d=r?vG(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=EG(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:TG(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=bG(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function vG(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};X(s,function(e){c[e]=FS(o.get(e))}),c.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(c.type=`line`);var l=c.label||={};if(l.show??=!1,i===`cross`&&(l.show=o.get([`label`,`show`])??!0,!a)){var u=c.lineStyle=o.get(`crossStyle`);u&&LS(l,u.textStyle)}return e.model.getModel(`axisPointer`,new uN(c,n,r))}function yG(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);n&&n.model&&r!==`none`&&r!==!1&&r!==`item`&&i!==!1&&t.get([`axisPointer`,`show`],!0)!==!1&&X(e.coordSysAxesInfo[EG(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount??=0,e.seriesDataCount+=t.getData().count())})})}function bG(e,t){for(var n=t.model,r=t.dim,i=0;i=0||e===t}function SG(e){var t=CG(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=TG(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent();(o==null||o>c[1])&&(o=c[1]),o3?1.4:i>1?1.2:1.1,c=r>0?s:1/s;this._checkTriggerMoveZoom(this,`zoom`,`zoomOnMouseWheel`,e,{scale:c,originX:a,originY:o,isAvailableBehavior:null})}if(n){var l=Math.abs(r),u=(r>0?1:-1)*(l>3?.4:l>1?.15:.05);this._checkTriggerMoveZoom(this,`scrollMove`,`moveOnMouseWheel`,e,{scrollDelta:u,originX:a,originY:o,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(VG(this._zr,`globalPan`)||GG(e))){var t=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,`zoom`,null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,t,n,r,i){e._checkPointer(r,i.originX,i.originY)&&(TV(r.event),r.__ecRoamConsumed=!0,QG(e,t,n,r,i))},t}(nD);function GG(e){return e.__ecRoamConsumed}var KG=Ik();function qG(e){var t=KG(e);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function JG(e,t,n,r){for(var i=qG(e).roam,a=i[t]=i[t]||[],o=0;o1e-6;UK[0]=o?(i[0]-r.x)/a:i[0],UK[1]=o?(i[1]-r.y)/a:i[1],pw(UK,UK,e.mtRawInv);var s=zK(e,UK);WK(t,s,a),X(n,function(e){e!==t&&WK(e,s.slice(),a)})}var UK=[];function WK(e,t,n){var r=e.option;r.center=t,r.zoom=n}function GK(e,t){if(t){var n=t.min||0,r=t.max||1/0;e=Math.max(Math.min(r,e),n)}return e}function KK(e,t,n,r,i,a,o,s){if(!PK(e)){n.disable();return}n.enable(aC(e.get(`roam`),o),{api:t,zInfo:{component:e},triggerInfo:{roamTrigger:e.get(`roamTrigger`),isInSelf:r,isInClip:function(e,t,n){return!i||i.contain(t,n)}}});function c(n){var r=e.mainType,i=UM(LS({type:XK(r,e.subType,dA)},n));s&&(i.componentType=r),i[r+`Id`]=e.id,t.dispatchAction(i)}n.off(`pan`).off(`zoom`).on(`pan`,function(e){a&&a(`pan`),c({dx:e.dx,dy:e.dy})}).on(`zoom`,function(e){a&&a(`zoom`),c({zoom:e.scale,originX:e.originX,originY:e.originY})})}function qK(e){return function(t,n,r){return JK.copy(e.getBoundingRect()),JK.applyTransform(e.getComputedTransform()),JK.contain(n,r)}}var JK=new kw(0,0,0,0);function YK(e,t,n){var r=XK(t,n,dA);e.registerAction({type:r,event:r,update:`none`},function(e,r,i){r.eachComponent(Vk(e,t,n),function(t){NK(e,t),FK(e,t,r,i)})})}function XK(e,t,n){return(e===`series`?t===`map`?`geo`:t:e)+n}function ZK(e,t,n,r,i,a,o){var s=new nK(null,VK(e.ecModel,t));return pK(s,n,r,i,a),o?mK(s,o.x,o.y,o.width,o.height):mK(s,n,r,i,a),fK(s,e),s}var QK=Ik();function $K(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:`data`}),e.datas=e.mainData=null,oq(t,n,e),X(n,function(n){X(t.TRANSFERABLE_METHODS,function(t){n.wrapMethod(t,qS(eq,e))})}),t.wrapMethod(`cloneShallow`,qS(nq,e)),X(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,qS(tq,e))}),lC(n[t.dataType]===t)}function eq(e,t){if(aq(this)){var n=Y({},QK(this).datas);n[this.dataType]=t,oq(t,n,e)}else sq(t,this.dataType,QK(this).mainData,e);return t}function tq(e,t){return e.struct&&e.struct.update(),t}function nq(e,t){return X(QK(t).datas,function(n,r){n!==t&&sq(n.cloneShallow(),r,t,e)}),t}function rq(e){var t=QK(this).mainData;return e==null||t==null?t:QK(t).datas[e]}function iq(){var e=QK(this).mainData;return e==null?[{data:e}]:VS(GS(QK(e).datas),function(t){return{type:t,data:QK(e).datas[t]}})}function aq(e){return QK(e).mainData===e}function oq(e,t,n){QK(e).datas={},X(t,function(t,r){sq(t,r,e,n)})}function sq(e,t,n,r){QK(n).datas[t]=e,QK(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=rq,e.getLinkedDataAll=iq}var cq=X,lq=QS,uq=-1,dq=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=FS(t);this.type=r,this.mappingMethod=n,this._normalizeData=Cq[n];var a=e.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],n===`piecewise`?(mq(i),fq(i)):n===`category`?i.categories?pq(i):mq(i,!0):(lC(n!==`linear`||i.dataExtent),mq(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return KS(this._normalizeData,this)},e.listVisualTypes=function(){return GS(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){QS(e)?X(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,a=Z(t)?[]:QS(t)?{}:(i=!0,null);return e.eachVisual(t,function(e,t){var o=n.call(r,e,t);i?a=o:a[t]=o}),a},e.retrieveVisuals=function(t){var n={},r;return t&&cq(e.visualHandlers,function(e,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(e){if(Z(e))e=e.slice();else if(lq(e)){var t=[];cq(e,function(e,n){t.push(n)}),e=t}else return[];return e.sort(function(e,t){return t===`color`&&e!==`color`&&e.indexOf(`color`)===0?1:-1}),e},e.dependsOn=function(e,t){return t===`color`?!!(e&&e.indexOf(t)===0):e===t},e.findPieceIndex=function(e,t,n){for(var r,i=1/0,a=0,o=t.length;a=0;a--)r[a]??(delete n[t[a]],t.pop())}function mq(e,t){var n=e.visual,r=[];QS(n)?cq(n,function(e){r.push(e)}):n!=null&&r.push(n),!t&&r.length===1&&!{color:1,symbol:1}.hasOwnProperty(e.type)&&(r[1]=r[0]),Sq(e,r)}function hq(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r(`color`,e(n(`color`),i))},_normalizedToVisual:bq([0,1])}}function gq(e){var t=this.option.visual;return t[Math.round($O(e,[0,1],[0,t.length-1],!0))]||{}}function _q(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function vq(e){var t=this.option.visual;return t[this.option.loop&&e!==uq?e%t.length:e]}function yq(){return this.option.visual[0]}function bq(e){return{linear:function(t){return $O(t,e,this.option.visual,!0)},category:vq,piecewise:function(t,n){var r=xq.call(this,n);return r??=$O(t,e,this.option.visual,!0),r},fixed:yq}}function xq(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[dq.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function Sq(e,t){return e.visual=t,e.type===`color`&&(e.parsedVisual=VS(t,function(e){return eE(e)||[0,0,0,1]})),t}var Cq={linear:function(e){return $O(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=dq.findPieceIndex(e,t,!0);if(n!=null)return $O(n,[0,t.length-1],[0,1],!0)},category:function(e){return(this.option.categories?this.option.categoryMap[e]:e)??uq},fixed:yC};function wq(e,t,n){return e?t<=n:t=0&&e.call(t,n[i],i)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,r=n.length,i=0;i=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},e.prototype.breadthFirstTraverse=function(e,t,n,r){if(t instanceof Dq||(t=this._nodesMap[Tq(t)]),t){for(var i=n===`out`?`outEdges`:n===`in`?`inEdges`:`edges`,a=0;a=0&&n.node2.dataIndex>=0});for(var i=0,a=r.length;i=0&&!e.hasKey(p)&&(e.set(p,!0),a.push(f.node1))}for(s=0;s=0&&!e.hasKey(v)&&(e.set(v,!0),o.push(_.node2))}}}return{edge:e.keys(),node:t.keys()}},e}(),Oq=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=n??-1}return e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var e=hC(),t=hC();e.set(this.dataIndex,!0);for(var n=[this.node1],r=[this.node2],i=0;i=0&&!e.hasKey(u)&&(e.set(u,!0),n.push(l.node1))}for(i=0;i=0&&!e.hasKey(m)&&(e.set(m,!0),r.push(p.node2))}return{edge:e.keys(),node:t.keys()}},e}();function kq(e,t){return{getValue:function(n){var r=this[e][t];return r.getStore().get(r.getDimensionIndex(n||`value`),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}zS(Dq,kq(`hostGraph`,`data`)),zS(Oq,kq(`hostGraph`,`edgeData`));function Aq(e,t,n,r,i){for(var a=new Eq(r),o=0;o `+f)),l++)}var p=n.get(`coordinateSystem`),m;if(p===`cartesian2d`||p===`polar`||p===`matrix`)m=OP(e,n);else{var h=CP.get(p),g=h&&h.dimensions||[];RS(g,`value`)<0&&g.concat([`value`]);var _=bP(e,{coordDimensions:g,encodeDefine:n.getEncode()}).dimensions;m=new yP(_,n),m.initData(e)}var v=new yP([`value`],n);return v.initData(c,s),i&&i(m,v),$K({mainData:m,struct:a,structAttr:`graph`,datas:{node:m,edge:v},datasAttr:{node:`data`,edge:`edgeData`}}),a.update(),a}var jq=Lj.prototype,Mq=Bj.prototype,Nq=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){gS(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Nq);function Pq(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var Fq=function(e){gS(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-line`,n}return t.prototype.getDefaultStyle=function(){return{stroke:Q.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new Nq},t.prototype.buildPath=function(e,t){Pq(t)?jq.buildPath.call(this,e,t):Mq.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return Pq(this.shape)?jq.pointAt.call(this,e):Mq.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=Pq(t)?[t.x2-t.x1,t.y2-t.y1]:Mq.tangentAt.call(this,e);return uw(n,n)},t}(bO),Iq=[`fromSymbol`,`toSymbol`];function Lq(e){return`_`+e+`Type`}function Rq(e,t,n){var r=t.getItemVisual(n,e);if(!r||r===`none`)return r;var i=t.getItemVisual(n,e+`Size`),a=t.getItemVisual(n,e+`Rotate`),o=t.getItemVisual(n,e+`Offset`),s=t.getItemVisual(n,e+`KeepAspect`),c=BI(i),l=VI(o||0,c);return r+c+l+(a||``)+(s||``)}function zq(e,t,n){var r=t.getItemVisual(n,e);if(r&&r!==`none`){var i=t.getItemVisual(n,e+`Size`),a=t.getItemVisual(n,e+`Rotate`),o=t.getItemVisual(n,e+`Offset`),s=t.getItemVisual(n,e+`KeepAspect`),c=BI(i),l=VI(o||0,c),u=zI(r,-c[0]/2+l[0],-c[1]/2+l[1],c[0],c[1],null,s);return u.__specifiedRotation=a==null||isNaN(a)?void 0:a*Math.PI/180||0,u.name=e,u}}function Bq(e){var t=new Fq({name:`line`,subPixelOptimize:!0});return Vq(t.shape,e),t}function Vq(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var Hq=function(e){gS(t,e);function t(t,n,r){var i=e.call(this)||this;return i._createLine(t,n,r),i}return t.prototype._createLine=function(e,t,n){var r=e.hostModel,i=e.getItemLayout(t),a=e.getItemVisual(t,`z2`),o=Bq(i);o.shape.percent=0,nM(o,{z2:aC(a,0),shape:{percent:1}},r,t),this.add(o),X(Iq,function(n){var r=zq(n,e,t);this.add(r),this[Lq(n)]=Rq(n,e,t)},this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel,i=this.childOfName(`line`),a=e.getItemLayout(t),o={shape:{}};Vq(o.shape,a),tM(i,o,r,t),X(Iq,function(n){var r=Rq(n,e,t),i=Lq(n);if(this[i]!==r){this.remove(this.childOfName(n));var a=zq(n,e,t);this.add(a)}this[i]=r},this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var r=e.hostModel,i=this.childOfName(`line`),a=n&&n.emphasisLineStyle,o=n&&n.blurLineStyle,s=n&&n.selectLineStyle,c=n&&n.labelStatesModels,l=n&&n.emphasisDisabled,u=n&&n.focus,d=n&&n.blurScope;if(!n||e.hasItemOption){var f=e.getItemModel(t),p=f.getModel(`emphasis`);a=p.getModel(`lineStyle`).getLineStyle(),o=f.getModel([`blur`,`lineStyle`]).getLineStyle(),s=f.getModel([`select`,`lineStyle`]).getLineStyle(),l=p.get(`disabled`),u=p.get(`focus`),d=p.get(`blurScope`),c=XM(f)}var m=e.getItemVisual(t,`style`),h=m.stroke;i.useStyle(m),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState(`emphasis`).style=a,i.ensureState(`blur`).style=o,i.ensureState(`select`).style=s,X(Iq,function(e){var t=this.childOfName(e);if(t){t.setColor(h),t.style.opacity=m.opacity;for(var n=0;n0&&(y[0]=-y[0],y[1]=-y[1]);var x=v[0]<0?-1:1;if(r.__position!==`start`&&r.__position!==`end`){var S=-Math.atan2(v[1],v[0]);l[0].8?`left`:u[0]<-.8?`right`:`center`,p=u[1]>.8?`top`:u[1]<-.8?`bottom`:`middle`;break;case`start`:r.x=-u[0]*h+c[0],r.y=-u[1]*g+c[1],f=u[0]>.8?`right`:u[0]<-.8?`left`:`center`,p=u[1]>.8?`bottom`:u[1]<-.8?`top`:`middle`;break;case`insideStartTop`:case`insideStart`:case`insideStartBottom`:r.x=h*x+c[0],r.y=c[1]+C,f=v[0]<0?`right`:`left`,r.originX=-h*x,r.originY=-C;break;case`insideMiddleTop`:case`insideMiddle`:case`insideMiddleBottom`:case`middle`:r.x=b[0],r.y=b[1]+C,f=`center`,r.originY=-C;break;case`insideEndTop`:case`insideEnd`:case`insideEndBottom`:r.x=-h*x+l[0],r.y=l[1]+C,f=v[0]>=0?`right`:`left`,r.originX=h*x,r.originY=-C}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||p,align:r.__align||f})}},t}(vj),Uq=function(){function e(e){this.group=new vj,this._LineCtor=e||Hq}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=e,i||r.removeAll();var a=Gq(e);e.diff(i).add(function(n){t._doAdd(e,n,a)}).update(function(n,r){t._doUpdate(i,e,r,n,a)}).remove(function(e){r.remove(i.getItemGraphicEl(e))}).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Gq(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[];function r(e){!e.isGroup&&!Wq(e)&&(e.incremental=n,e.ensureState(`emphasis`).hoverLayer=2)}for(var i=e.start;i0}function Gq(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{lineStyle:t.getModel(`lineStyle`).getLineStyle(),emphasisLineStyle:n.getModel([`lineStyle`]).getLineStyle(),blurLineStyle:t.getModel([`blur`,`lineStyle`]).getLineStyle(),selectLineStyle:t.getModel([`select`,`lineStyle`]).getLineStyle(),emphasisDisabled:n.get(`disabled`),blurScope:n.get(`blurScope`),focus:n.get(`focus`),labelStatesModels:XM(t)}}function Kq(e){return isNaN(e[0])||isNaN(e[1])}function qq(e){return e&&!Kq(e[0])&&!Kq(e[1])}function Jq(e,t,n,r,i,a){e||=0;var o=sk(n[1],-n[0]);if(i!=null&&(i=Xq(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),r===`all`){var s=Math.abs(sk(t[1],-t[0]));s=Xq(s,[0,o]),i=a=Xq(s,[i,a]),r=0}t[0]=Xq(t[0],n),t[1]=Xq(t[1],n);var c=Yq(t,r);t[r]+=e;var l=i||0,u=n.slice();c.sign<0?u[0]=sk(u[0],l):u[1]=sk(u[1],-l),t[r]=Xq(t[r],u);var d=Yq(t,r);return i!=null&&(d.sign!==c.sign||d.spana&&(t[1-r]=sk(t[r],d.sign*a)),t}function Yq(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function Xq(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}var Zq=`sankey`,Qq=function(e){gS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=e.levels||[];this.levelModels=[];for(var a=this.levelModels,o=0;o=0&&(a[i[o].depth]=new uN(i[o],this,t));return Aq(r,n,this,!0,s).data;function s(e,t){e.wrapMethod(`getItemModel`,function(e,t){var n=e.parentModel,r=n.getData().getItemLayout(t);if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e}),t.wrapMethod(`getItemModel`,function(e,t){var n=e.parentModel,r=n.getGraph().getEdgeByIndex(t).node1.getLayout();if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e})}},t.prototype.setNodePosition=function(e,t){var n=(this.option.data||this.option.nodes)[e];n.localX=t[0],n.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function r(e){return isNaN(e)||e==null}if(n===`edge`){var i=this.getDataParams(e,n),a=i.data,o=i.value;return CI(`nameValue`,{name:a.source+` -- `+a.target,value:o,noValue:r(o)})}var s=this.getGraph().getNodeByIndex(e).getLayout().value,c=this.getDataParams(e,n).data.name;return CI(`nameValue`,{name:c==null?null:c+``,value:s,noValue:r(s)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);return r.value==null&&n===`node`&&(r.value=this.getGraph().getNodeByIndex(t).getLayout().value),r},t.prototype.__ownRoamView=function(){return this.coordinateSystem},t.type=`series.`+Zq,t.layoutMode=`box`,t.defaultOption={z:2,coordinateSystemUsage:`box`,left:`5%`,top:`5%`,right:`20%`,bottom:`5%`,orient:`horizontal`,nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:`global`,center:null,zoom:1,label:{show:!0,position:`right`,fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:`justify`,lineStyle:{color:Q.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:Q.color.primary}},animationEasing:`linear`,animationDuration:1e3},t}(PI),$q=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),eJ=function(e){gS(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new $q},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),t.orient===`vertical`?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){zA(this)},t.prototype.downplay=function(){BA(this)},t}(bO),tJ=function(e){gS(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Zq,t._mainGroup=new vj,t}return t.prototype.init=function(e,t){this._controller=new WG(t.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},t.prototype.render=function(e,t,n){var r=e.getGraph(),i=this._mainGroup,a=e.layoutInfo,o=a.width,s=a.height,c=e.getData(),l=e.getData(`edge`),u=e.get(`orient`);i.removeAll(),i.x=a.x,i.y=a.y,this._updateViewCoordSys(e,n),KK(e,n,this._controller,qK(i),null),r.eachEdge(function(t){var n=new eJ,r=nA(n);r.dataIndex=t.dataIndex,r.seriesIndex=e.seriesIndex,r.dataType=`edge`;var a=t.getModel(),c=a.getModel(`lineStyle`),d=c.get(`curveness`),f=t.node1.getLayout(),p=t.node1.getModel(),m=p.get(`localX`),h=p.get(`localY`),g=t.node2.getLayout(),_=t.node2.getModel(),v=_.get(`localX`),y=_.get(`localY`),b=t.getLayout(),x,S,C,w,T,E,D,O;n.shape.extent=Math.max(1,b.dy),n.shape.orient=u,u===`vertical`?(x=(m==null?f.x:m*o)+b.sy,S=(h==null?f.y:h*s)+f.dy,C=(v==null?g.x:v*o)+b.ty,w=y==null?g.y:y*s,T=x,E=S*(1-d)+w*d,D=C,O=S*d+w*(1-d)):(x=(m==null?f.x:m*o)+f.dx,S=(h==null?f.y:h*s)+b.sy,C=v==null?g.x:v*o,w=(y==null?g.y:y*s)+b.ty,T=x*(1-d)+C*d,E=S,D=x*d+C*(1-d),O=w),n.setShape({x1:x,y1:S,x2:C,y2:w,cpx1:T,cpy1:E,cpx2:D,cpy2:O}),n.useStyle(c.getItemStyle()),nJ(n.style,u,t);var k=``+a.get(`value`),A=XM(a,`edgeLabel`);YM(n,A,{labelFetcher:{getFormattedLabel:function(t,n,r,i,a,o){return e.getFormattedLabel(t,n,`edge`,i,oC(a,A.normal&&A.normal.get(`formatter`),k),o)}},labelDataIndex:t.dataIndex,defaultText:k}),n.setTextConfig({position:`inside`});var j=a.getModel(`emphasis`);ej(n,a,`lineStyle`,function(e){var n=e.getItemStyle();return nJ(n,u,t),n}),i.add(n),l.setItemGraphicEl(t.dataIndex,n);var M=j.get(`focus`);QA(n,M===`adjacency`?t.getAdjacentDataIndices():M===`trajectory`?t.getTrajectoryDataIndices():M,j.get(`blurScope`),j.get(`disabled`))}),r.eachNode(function(t){var n=t.getLayout(),r=t.getModel(),a=r.get(`localX`),l=r.get(`localY`),u=r.getModel(`emphasis`),d=r.get([`itemStyle`,`borderRadius`])||0,f=new DO({shape:{x:a==null?n.x:a*o,y:l==null?n.y:l*s,width:n.dx,height:n.dy,r:d},style:r.getModel(`itemStyle`).getItemStyle(),z2:10});YM(f,XM(r),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(t,n,`node`)}},labelDataIndex:t.dataIndex,defaultText:t.id}),f.disableLabelAnimation=!0,f.setStyle(`fill`,t.getVisual(`color`)),f.setStyle(`decal`,t.getVisual(`style`).decal),ej(f,r),i.add(f),c.setItemGraphicEl(t.dataIndex,f),nA(f).dataType=`node`;var p=u.get(`focus`);QA(f,p===`adjacency`?t.getAdjacentDataIndices():p===`trajectory`?t.getTrajectoryDataIndices():p,u.get(`blurScope`),u.get(`disabled`))}),c.eachItemGraphicEl(function(t,r){c.getItemModel(r).get(`draggable`)&&(t.drift=function(t,i){this.shape.x+=t,this.shape.y+=i,this.dirty(),n.dispatchAction({type:`dragNode`,seriesId:e.id,dataIndex:c.getRawIndex(r),localX:this.shape.x/o,localY:this.shape.y/s})},t.draggable=!0,t.cursor=`move`)}),!this._data&&e.isAnimationEnabled()&&i.setClipPath(rJ(i.getBoundingRect(),e,function(){i.removeClipPath()})),this._data=e.getData(),this._firstRender=!1},t.prototype.__updateOnOwnRoam=function(e,t,n){kK(this.group,2,t.coordinateSystem,null)},t.prototype.dispose=function(){this._controller&&this._controller.dispose()},t.prototype._updateViewCoordSys=function(e,t){var n=e.layoutInfo,r=e.coordinateSystem=ZK(e,t,n.x,n.y,n.width,n.height);kK(this.group,2,r,this._firstRender?null:e)},t.type=Zq,t}(sL);function nJ(e,t,n){switch(e.fill){case`source`:e.fill=n.node1.getVisual(`color`),e.decal=n.node1.getVisual(`style`).decal;break;case`target`:e.fill=n.node2.getVisual(`color`),e.decal=n.node2.getVisual(`style`).decal;break;case`gradient`:var r=n.node1.getVisual(`color`),i=n.node2.getVisual(`color`);YS(r)&&YS(i)&&(e.fill=new Wj(0,0,+(t===`horizontal`),+(t===`vertical`),[{color:r,offset:0},{color:i,offset:1}]))}}function rJ(e,t,n){var r=new DO({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return nM(r,{shape:{width:e.width+20}},t,n),r}var iJ=eA(Zq,aJ);function aJ(e,t){e.eachSeriesByType(Zq,function(e){var n=e.get(`nodeWidth`),r=e.get(`nodeGap`),i=tI(e,t).refContainer,a=$F(e.getBoxLayoutParams(),i);e.layoutInfo=a;var o=a.width,s=a.height,c=e.getGraph(),l=c.nodes,u=c.edges;sJ(l),oJ(l,u,n,r,o,s,US(l,function(e){return e.getLayout().value===0}).length===0?e.get(`layoutIterations`):0,e.get(`orient`),e.get(`nodeAlign`))})}function oJ(e,t,n,r,i,a,o,s,c){cJ(e,t,n,i,a,s,c),pJ(e,t,a,i,r,o,s),EJ(e,s)}function sJ(e){X(e,function(e){var t=wJ(e.outEdges,CJ),n=wJ(e.inEdges,CJ),r=e.getValue()||0,i=Math.max(t,n,r);e.setLayout({value:i},!0)})}function cJ(e,t,n,r,i,a,o){for(var s=[],c=[],l=[],u=[],d=0,f=0;f=0;_&&g.depth>p&&(p=g.depth),h.setLayout({depth:_?g.depth:d},!0),a===`vertical`?h.setLayout({dy:n},!0):h.setLayout({dx:n},!0);for(var v=0;vd-1?p:d-1;o&&o!==`left`&&uJ(e,o,a,C),fJ(e,a===`vertical`?(i-n)/C:(r-n)/C,a)}function lJ(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function uJ(e,t,n,r){if(t===`right`){for(var i=[],a=e,o=0;a.length;){for(var s=0;s0;a--)c*=.99,_J(s,c,o),gJ(s,i,n,r,o),TJ(s,c,o),gJ(s,i,n,r,o)}function mJ(e,t){var n=[],r=t===`vertical`?`y`:`x`,i=_ae(e,function(e){return e.getLayout()[r]});return ik(i.keys),X(i.keys,function(e){n.push(i.buckets.get(e))}),n}function hJ(e,t,n,r,i,a){var o=1/0;X(e,function(e){var t=e.length,s=0;X(e,function(e){s+=e.getLayout().value});var c=a===`vertical`?(r-(t-1)*i)/s:(n-(t-1)*i)/s;c0&&(o=s.getLayout()[a]+c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),l=s.getLayout()[a]+s.getLayout()[d]+t;var p=i===`vertical`?r:n;if(c=l-t-p,c>0){o=s.getLayout()[a]-c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0),l=o;for(var f=u-2;f>=0;--f)s=e[f],c=s.getLayout()[a]+s.getLayout()[d]+t-l,c>0&&(o=s.getLayout()[a]-c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),l=s.getLayout()[a]}})}function _J(e,t,n){X(e.slice().reverse(),function(e){X(e,function(e){if(e.outEdges.length){var r=wJ(e.outEdges,vJ,n)/wJ(e.outEdges,CJ);if(isNaN(r)){var i=e.outEdges.length;r=i?wJ(e.outEdges,yJ,n)/i:0}if(n===`vertical`){var a=e.getLayout().x+(r-SJ(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-SJ(e,n))*t;e.setLayout({y:o},!0)}}})})}function vJ(e,t){return SJ(e.node2,t)*e.getValue()}function yJ(e,t){return SJ(e.node2,t)}function bJ(e,t){return SJ(e.node1,t)*e.getValue()}function xJ(e,t){return SJ(e.node1,t)}function SJ(e,t){return t===`vertical`?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function CJ(e){return e.getValue()}function wJ(e,t,n){for(var r=0,i=e.length,a=-1;++aa&&(a=t)}),X(n,function(t){var n=new dq({type:`color`,mappingMethod:`linear`,dataExtent:[i,a],visual:e.get(`color`)}).mapValueToVisual(t.getLayout().value),r=t.getModel().get([`itemStyle`,`color`]);r==null?(t.setVisual(`color`,n),t.setVisual(`style`,{fill:n})):(t.setVisual(`color`,r),t.setVisual(`style`,{fill:r}))})}r.length&&X(r,function(e){var t=e.getModel().get(`lineStyle`);e.setVisual(`style`,t)})})}function kJ(e){e.registerChartView(tJ),e.registerSeriesModel(Qq),e.registerLayout(iJ),e.registerVisual(DJ),e.registerAction({type:`dragNode`,event:`dragnode`,update:`update`},function(e,t){t.eachComponent({mainType:rA,subType:Zq,query:e},function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])})}),YK(e,rA,Zq)}var AJ=256,jJ=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=CS.createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,r,i,a){var o=this._getBrush(),s=this._getGradient(i,`inRange`),c=this._getGradient(i,`outOfRange`),l=this.pointSize+this.blurSize,u=this.canvas,d=u.getContext(`2d`),f=e.length;u.width=t,u.height=n;for(var p=0;p0){var E=a(v)?s:c;v>0&&(v=v*w+C),b[x++]=E[T],b[x++]=E[T+1],b[x++]=E[T+2],b[x++]=E[T+3]*v*256}else x+=4}return d.putImageData(y,0,0),u},e.prototype._getBrush=function(){var e=this._brushCanvas||=CS.createCanvas(),t=this.pointSize+this.blurSize,n=t*2;e.width=n,e.height=n;var r=e.getContext(`2d`);return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor=Q.color.neutral99,r.beginPath(),r.arc(-t,t,this.pointSize,0,Math.PI*2,!0),r.closePath(),r.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,r=n[t]||(n[t]=new Uint8ClampedArray(1024)),i=[0,0,0,0],a=0,o=0;o<256;o++)e[t](o/255,!0,i),r[a++]=i[0],r[a++]=i[1],r[a++]=i[2],r[a++]=i[3];return r},e}();function MJ(e,t,n){var r=e[1]-e[0];t=VS(t,function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}});var i=t.length,a=0;return function(e){for(var r=a;r=0;r--){var o=t[r].interval;if(o[0]<=e&&e<=o[1]){a=r;break}}return r>=0&&r=t[0]&&e<=t[1]}}var PJ=function(e){gS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r;t.eachComponent(`visualMap`,function(t){t.eachTargetSeries(function(n){n===e&&(r=t)})}),this._progressiveEls=null,this.group.removeAll();var i=e.coordinateSystem;i.type===`cartesian2d`||i.type===`calendar`||i.type===`matrix`?this._renderOnGridLike(e,n,0,e.getData().count()):mL(i)&&this._renderOnGeo(i,e,r,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,r){var i=t.coordinateSystem;i&&(mL(i)?this.render(t,n,r):(this._progressiveEls=[],this._renderOnGridLike(t,r,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){PM(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,t,n,r,i){var a=e.coordinateSystem,o=pL(a,`cartesian2d`),s=pL(a,`matrix`),c,l,u,d;if(o){var f=a.getAxis(`x`),p=a.getAxis(`y`);c=Gz(f).w+.5,l=Gz(p).w+.5,u=f.scale.getExtent(),d=p.scale.getExtent()}for(var m=this.group,h=e.getData(),g=e.getModel([`emphasis`,`itemStyle`]).getItemStyle(),_=e.getModel([`blur`,`itemStyle`]).getItemStyle(),v=e.getModel([`select`,`itemStyle`]).getItemStyle(),y=e.get([`itemStyle`,`borderRadius`]),b=XM(e),x=e.getModel(`emphasis`),S=x.get(`focus`),C=x.get(`blurScope`),w=x.get(`disabled`),T=o||s?[h.mapDimension(`x`),h.mapDimension(`y`),h.mapDimension(`value`)]:[h.mapDimension(`time`),h.mapDimension(`value`)],E=n;Eu[1]||Ad[1])continue;var j=a.dataToPoint([k,A]);D=new DO({shape:{x:j[0]-c/2,y:j[1]-l/2,width:c,height:l},style:O})}else if(s){var M=a.dataToLayout([h.get(T[0],E),h.get(T[1],E)]).rect;if(rC(M.x))continue;D=new DO({z2:1,shape:M,style:O})}else{if(isNaN(h.get(T[1],E)))continue;var N=a.dataToLayout([h.get(T[0],E)]),M=N.contentRect||N.rect;if(rC(M.x)||rC(M.y))continue;D=new DO({z2:1,shape:M,style:O})}if(h.hasItemOption){var P=h.getItemModel(E),F=P.getModel(`emphasis`);g=F.getModel(`itemStyle`).getItemStyle(),_=P.getModel([`blur`,`itemStyle`]).getItemStyle(),v=P.getModel([`select`,`itemStyle`]).getItemStyle(),y=P.get([`itemStyle`,`borderRadius`]),S=F.get(`focus`),C=F.get(`blurScope`),w=F.get(`disabled`),b=XM(P)}D.shape.r=y;var ee=e.getRawValue(E),I=`-`;ee&&ee[2]!=null&&(I=ee[2]+``),YM(D,b,{labelFetcher:e,labelDataIndex:E,defaultOpacity:O.opacity,defaultText:I}),D.ensureState(`emphasis`).style=g,D.ensureState(`blur`).style=_,D.ensureState(`select`).style=v,QA(D,S,C,w),D.incremental=Qk(e,i),i&&(D.states.emphasis.hoverLayer=2),m.add(D),h.setItemGraphicEl(E,D),this._progressiveEls&&this._progressiveEls.push(D)}},t.prototype._renderOnGeo=function(e,t,n,r){var i=n.targetVisuals.inRange,a=n.targetVisuals.outOfRange,o=t.getData(),s=this._hmLayer||this._hmLayer||new jJ;s.blurSize=t.get(`blurSize`),s.pointSize=t.get(`pointSize`),s.minOpacity=t.get(`minOpacity`),s.maxOpacity=t.get(`maxOpacity`);var c=e.getViewRect().clone(),l=e.getRoamTransform();c.applyTransform(l);var u=Math.max(c.x,0),d=Math.max(c.y,0),f=Math.min(c.width+c.x,r.getWidth()),p=Math.min(c.height+c.y,r.getHeight()),m=f-u,h=p-d,g=[o.mapDimension(`lng`),o.mapDimension(`lat`),o.mapDimension(`value`)],_=o.mapArray(g,function(t,n,r){var i=e.dataToPoint([t,n]);return i[0]-=u,i[1]-=d,i.push(r),i}),v=n.getExtent(),y=n.type===`visualMap.continuous`?NJ(v,n.option.range):MJ(v,n.getPieceList(),n.option.selected);s.update(_,m,h,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:a.color.getColorMapper()},y);var b=new SO({style:{width:m,height:h,x:u,y:d,image:s.canvas},silent:!0});this.group.add(b)},t.type=`heatmap`,t}(sL),FJ=function(e){gS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return OP(null,this,{generateCoord:`value`})},t.prototype.preventIncremental=function(){var e=CP.get(this.get(`coordinateSystem`));if(e&&e.dimensions)return e.dimensions[0]===`lng`&&e.dimensions[1]===`lat`},t.type=`series.heatmap`,t.dependencies=[`grid`,`geo`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:Q.color.primary}}},t}(PI);function IJ(e){e.registerChartView(PJ),e.registerSeriesModel(FJ)}var LJ={color:`fill`,borderColor:`stroke`},RJ={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},zJ=Ik(),BJ=function(e){gS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get(`zlevel`,!0),this.currentZ=this.get(`z`,!0)},t.prototype.getInitialData=function(e,t){return OP(null,this)},t.prototype.getDataParams=function(t,n,r){var i=e.prototype.getDataParams.call(this,t,n);return r&&(i.info=zJ(r).info),i},t.type=`series.custom`,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,legendHoverLink:!0,clip:!1},t}(PI);function VJ(e,t){return t||=[0,0],VS([`x`,`y`],function(n,r){var i=this.getAxis(n),a=t[r],o=e[r]/2;return i.type===`category`?Gz(i).w:Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function HJ(e){var t=e.master.getRect();return{coordSys:{type:`cartesian2d`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:KS(VJ,e)}}}function UJ(e,t){return t||=[0,0],VS([0,1],function(n){var r=t[n],i=e[n]/2,a=[],o=[];return a[n]=r-i,o[n]=r+i,a[1-n]=o[1-n]=t[1-n],Math.abs(this.dataToPoint(a)[n]-this.dataToPoint(o)[n])},this)}function WJ(e){var t=e.view,n=t.getBoundingRect();return{coordSys:{type:`geo`,x:n.x,y:n.y,width:n.width,height:n.height,zoom:iK(t)},api:{coord:function(t){return e.dataToPoint(t)},size:KS(UJ,e)}}}function GJ(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return n.type===`category`?Gz(n).w:Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function KJ(e){var t=e.getRect();return{coordSys:{type:`singleAxis`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:KS(GJ,e)}}}function qJ(e,t){return t||=[0,0],VS([`Radius`,`Angle`],function(n,r){var i=`get`+n+`Axis`,a=this[i](),o=t[r],s=e[r]/2,c=a.type===`category`?Gz(a).w:Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return n===`Angle`&&(c=c*Math.PI/180),c},this)}function JJ(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:`polar`,cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=t.dataToRadius(r[0]),a=n.dataToAngle(r[1]),o=e.coordToPoint([i,a]);return o.push(i,a*Math.PI/180),o},size:KS(qJ,e)}}}function YJ(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:`calendar`,x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)},layout:function(t,n){return e.dataToLayout(t,n)}}}}function XJ(e){var t=e.getRect();return{coordSys:{type:`matrix`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t,n){return e.dataToPoint(t,n)},layout:function(t,n){return e.dataToLayout(t,n)}}}}var ZJ={position:[`x`,`y`],scale:[`scaleX`,`scaleY`],origin:[`originX`,`originY`]},QJ=GS(ZJ);HS(vT,function(e,t){return e[t]=1,e},{}),vT.join(`, `);var $J=[``,`style`,`shape`,`extra`],eY=Ik();function tY(e,t,n,r,i){var a=e+`Animation`,o=$j(e,r,i)||{},s=eY(t).userDuring;return o.duration>0&&(o.during=s?KS(dY,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),Y(o,n[a]),o}function nY(e,t,n,r){r||={};var i=r.dataIndex,a=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),c=eY(e),l=t.style;c.userDuring=t.during;var u={},d={};if(hY(e,t,d),e.type===`compound`)for(var f=e.shape.paths,p=t.shape.paths,m=0;m0&&e.animateFrom(g,_)}else sY(e,t,i||0,n,u)}rY(e,t),l?e.dirty():e.markRedraw()}function rY(e,t){for(var n=eY(e).leaveToProps,r=0;r<$J.length;r++){var i=$J[r],a=i?t[i]:t;a&&a.leaveTo&&(n||=eY(e).leaveToProps={},i&&(n[i]=n[i]||{}),Y(i?n[i]:n,a.leaveTo))}}function iY(e,t,n,r){if(e){var i=e.parent,a=eY(e).leaveToProps;if(a){var o=tY(`update`,e,t,n,0);o.done=function(){i&&i.remove(e),r&&r()},e.animateTo(a,o)}else i&&i.remove(e),r&&r()}}function aY(e){return e===`all`}function oY(e,t,n){var r=t.style;if(!e.isGroup&&r){if(n){e.useStyle({});for(var i=e.animators,a=0;a0&&e.animateFrom(i,a)}}function cY(e,t){vC(t,`silent`)&&(e.silent=t.silent),vC(t,`ignore`)&&(e.ignore=t.ignore),e instanceof AD&&vC(t,`invisible`)&&(e.invisible=t.invisible),e instanceof bO&&vC(t,`autoBatch`)&&(e.autoBatch=t.autoBatch)}var lY={},uY={setTransform:function(e,t){return lY.el[e]=t,this},getTransform:function(e){return lY.el[e]},setShape:function(e,t){var n=lY.el,r=n.shape||={};return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=lY.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=lY.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=lY.el.style;if(t)return t[e]},setExtra:function(e,t){var n=lY.el.extra||(lY.el.extra={});return n[e]=t,this},getExtra:function(e){var t=lY.el.extra;if(t)return t[e]}};function dY(){var e=this,t=e.el;if(t){var n=eY(t).userDuring,r=e.userDuring;n===r?(lY.el=t,r(uY)):e.el=e.userDuring=null}}function fY(e,t,n,r){var i=n[e];if(i){var a=t[e],o;if(a){var s=n.transition,c=i.transition;if(c){if(!o&&(o=r[e]={}),aY(c))Y(o,a);else for(var l=Ek(c),u=0;u=0){!o&&(o=r[e]={});for(var p=GS(a),u=0;u=0)){var f=e.getAnimationStyleProps(),p=f?f.style:null;if(p){!a&&(a=r.style={});for(var m=GS(n),l=0;l=0?t.getStore().get(i,n):void 0}var a=t.get(r.name,n),o=r&&r.ordinalMeta;return o?o.categories[a]:a}function C(n,r){r??=u;var i=t.getItemVisual(r,`style`),a=i&&i.fill,o=i&&i.opacity,s=y(r,CY).getItemStyle();a!=null&&(s.fill=a),o!=null&&(s.opacity=o);var c={inheritColor:YS(a)?a:Q.color.neutral99},l=b(r,CY),d=ZM(l,null,c,!1,!0);d.text=l.getShallow(`show`)?aC(e.getFormattedLabel(r,CY),HI(t,r)):null;var f=QM(l,c,!1);return E(n,s),s=gL(s,d,f),n&&T(s,n),s.legacy=!0,s}function w(n,r){r??=u;var i=y(r,SY).getItemStyle(),a=b(r,SY),o=ZM(a,null,null,!0,!0);o.text=a.getShallow(`show`)?oC(e.getFormattedLabel(r,SY),e.getFormattedLabel(r,CY),HI(t,r)):null;var s=QM(a,null,!0);return E(n,i),i=gL(i,o,s),n&&T(i,n),i.legacy=!0,i}function T(e,t){for(var n in t)vC(t,n)&&(e[n]=t[n])}function E(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function D(e,n){if(n??=u,vC(LJ,e)){var r=t.getItemVisual(n,`style`);return r?r[LJ[e]]:null}if(vC(RJ,e))return t.getItemVisual(n,e)}function O(e){if(o.type===`cartesian2d`)return wle(LS({axis:o.getBaseAxis()},e))}function k(){return n.getCurrentSeriesIndices()}function A(e){return rN(e,n)}}function UY(e){var t={};return X(e.dimensions,function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim,a=t[i]=t[i]||[];a[r.coordDimIndex]=e.getDimensionIndex(n)}}),t}function WY(e,t,n,r,i,a,o){if(!r)a.remove(t);else{var s=GY(e,t,n,r,i,a);return s&&o.setItemGraphicEl(n,s),s&&QA(s,r.focus,r.blurScope,r.emphasisDisabled),s}}function GY(e,t,n,r,i,a){var o=-1,s=t;t&&KY(t,r,i)&&(o=RS(a.childrenRef(),t),t=null);var c=!t,l=t;l?l.clearStates():(l=LY(r),s&&FY(s,l)),r.morph===!1?l.disableMorphing=!0:l.disableMorphing&&(l.disableMorphing=!1),r.tooltipDisabled&&(l.tooltipDisabled=!0),jY.normal.cfg=jY.normal.conOpt=jY.emphasis.cfg=jY.emphasis.conOpt=jY.blur.cfg=jY.blur.conOpt=jY.select.cfg=jY.select.conOpt=null,jY.isLegacy=!1,JY(l,n,r,i,c,jY),qY(l,n,r,i,c),RY(e,l,n,r,jY,i,c),vC(r,`info`)&&(zJ(l).info=r.info);for(var u=0;u=0?a.replaceAt(l,o):a.add(l),l}function KY(e,t,n){var r=zJ(e),i=t.type,a=t.shape,o=t.style;return n.isUniversalTransitionEnabled()||i!=null&&i!==r.customGraphicType||i===`path`&&aX(a)&&iX(a)!==r.customPathData||i===`image`&&vC(o,`image`)&&o.image!==r.customImagePath}function qY(e,t,n,r,i){var a=n.clipPath;if(a===!1)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&KY(o,a,r)&&(o=null),o||(o=LY(a),e.setClipPath(o)),RY(null,o,t,a,null,r,i)}}function JY(e,t,n,r,i,a){if(!(e.isGroup||e.type===`compoundPath`)){YY(n,null,a),YY(n,SY,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,c=a.blur.conOpt,l=a.select.conOpt;if(o!=null||s!=null||l!=null||c!=null){var u=e.getTextContent();if(o===!1)u&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:`text`},u?u.clearStates():(u=LY(o),e.setTextContent(u)),RY(null,u,t,o,null,r,i);for(var d=o&&o.style,f=0;f=u;p--)$Y(t,t.childAt(p),i)}}}function $Y(e,t,n){t&&iY(t,zJ(e).option,n)}function eX(e){new pN(e.oldChildren,e.newChildren,tX,tX,e).add(nX).update(nX).remove(rX).execute()}function tX(e,t){return(e&&e.name)??AY+t}function nX(e,t){var n=this.context,r=e==null?null:n.newChildren[e],i=t==null?null:n.oldChildren[t];GY(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function rX(e){var t=this.context,n=t.oldChildren[e];n&&iY(n,zJ(n).option,t.seriesModel)}function iX(e){return e&&(e.pathData||e.d)}function aX(e){return e&&(vC(e,`pathData`)||vC(e,`d`))}function oX(e){e.registerChartView(IY),e.registerSeriesModel(BJ)}var sX=Ik(),cX=FS,lX=KS,uX=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==i||this._lastStatus!==a){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`)o&&o.hide(),s&&s.hide();else{o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new vj,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=qS(dX,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}hX(o,t,!0),this._renderHandle(i)}}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&Gz(r).w>o)return!0;if(a){var s=CG(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=sX(e).pointerEl=new voe[i.type](cX(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=sX(e).labelEl=new jO(cX(t.label));e.add(i),pX(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=sX(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=sX(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),pX(i,r))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`)r&&n.remove(r),this._handle=null;else{var o;this._handle||(o=!0,r=this._handle=EM(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){TV(e.event)},onmousedown:lX(this._onHandleDragMove,this,0,0),drift:lX(this._onHandleDragMove,this),ondragend:lX(this._onHandleDragEnd,this)}),n.add(r)),hX(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);Z(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,$B(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}}},e.prototype._moveHandleToValue=function(e,t){dX(this._axisPointerModel,!t&&this._moveAnimation,this._handle,mX(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(mX(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(mX(r)),sX(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),eV(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function dX(e,t,n,r){fX(sX(n).lastProp,r)||(sX(n).lastProp=r,t?tM(n,r,e):(n.stopAnimation(),n.attr(r)))}function fX(e,t){if(QS(e)&&QS(t)){var n=!0;return X(t,function(t,r){n&&=fX(e[r],t)}),!!n}return e===t}function pX(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function mX(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function hX(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function gX(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function _X(e,t,n,r,i){var a=yX(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=UF(o.get(`padding`)||0),c=o.getFont(),l=Ww(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),vX(u,d,f,r);var h=o.get(`backgroundColor`);h&&h!==`auto`||(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:ZM(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function vX(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function yX(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:vR(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};X(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),YS(o)?a=o.replace(`{value}`,a):JS(o)&&(a=o(s))}return a}function bX(e,t,n){var r=ZC();return nw(r,r,n.rotation),tw(r,r,n.position),xM([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function xX(e,t,n,r,i,a){var o=bB.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),_X(t,r,i,a,{position:bX(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function SX(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function CX(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function wX(e,t,n){return Gz(e,{fromStat:{sers:VS(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function TX(e,t,n){return[GO(WO(t[0],t[1]),e-n/2),WO(e+n/2,GO(t[0],t[1]))]}var EX=function(e){gS(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=a.getGlobalExtent(),l=DX(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=gX(r),f=OX[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}xX(t,e,kB(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=kB(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=bX(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=DX(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=WO(o[1],l[c]),l[c]=GO(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(uX);function DX(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var OX={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:SX([t,r[0]],[t,r[1]],kX(e))}},shadow:function(e,t,n,r,i,a){var o=wX(e,i,a),s=r[1]-r[0],c=TX(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:CX([l,r[0]],[u-l,s],kX(e))}}};function kX(e){return e.dim===`x`?0:1}var AX=function(e){gS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`axisPointer`,t.defaultOption={show:`auto`,z:50,type:`line`,snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:Q.color.border,width:1,type:`dashed`},shadowStyle:{color:Q.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:Q.color.neutral00,padding:[5,7,5,7],backgroundColor:Q.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:`M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z`,size:45,margin:50,color:Q.color.accent40,throttle:40}},t}(aI),jX=Ik(),MX=X;function NX(e,t,n){if(!SC.node){var r=t.getZr();jX(r).records||(jX(r).records={}),PX(r,t);var i=jX(r).records[e]||(jX(r).records[e]={});i.handler=n}}function PX(e,t){if(jX(e).initialized)return;jX(e).initialized=!0,n(`click`,qS(LX,`click`)),n(`mousemove`,qS(LX,`mousemove`)),n(`mousewheel`,qS(LX,`mousewheel`)),n(`globalout`,IX);function n(n,r){e.on(n,function(n){var i=RX(t);MX(jX(e).records,function(e){e&&r(e,n,i.dispatchAction)}),FX(i.pendings,t)})}}function FX(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function IX(e,t,n){e.handler(`leave`,null,n)}function LX(e,t,n,r){t.handler(e,n,r)}function RX(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function zX(e,t){if(!SC.node){var n=t.getZr();(jX(n).records||{})[e]&&(jX(n).records[e]=null)}}var BX=function(e){gS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click|mousewheel`;NX(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){zX(`axisPointer`,t)},t.prototype.dispose=function(e,t){zX(`axisPointer`,t)},t.type=`axisPointer`,t}(RH);function VX(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=Fk(a,e);if(o==null||o<0||Z(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint){if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(VS(c.dimensions,function(e){return a.mapDimension(e)}),o))||[]}else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}var HX=Ik();function UX(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||KS(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){$X(i)&&(i=VX({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=$X(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||$X(i),f={},p={},m={list:[],map:{}},h={showPointer:qS(KX,p),showTooltip:qS(qX,m)};X(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);X(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=ZX(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&WX(e,o,h,!1,f)}})});var g={};return X(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&X(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,QX(t),QX(e)))),g[e.key]=a}})}),X(g,function(e,t){WX(u[t],e,h,!0,f)}),JX(p,u,f),YX(m,i,e,o),XX(u,o,n),f}}function WX(e,t,n,r,i){var a=e.axis;if(!a.scale.isBlank()&&a.containData(t)){if(!e.involveSeries)n.showPointer(e,t);else{var o=GX(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&Y(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}}function GX(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return X(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.indicesOfNearest(r,l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(bk(u)){var p=e-u,m=Math.abs(p);m<=o&&((m=0&&s<0)&&(o=m,s=p,i=u,a.length=0),X(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function KX(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function qX(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(t.triggerTooltip&&i.length){var c=t.coordSys.model,l=EG(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function JX(e,t,n){var r=n.axesInfo=[];X(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function YX(e,t,n,r){if($X(t)||!e.list.length)r({type:`hideTip`});else{var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}}function XX(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=HX(r)[i]||{},o=HX(r)[i]={};X(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&X(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}X(a,function(e,t){!o[t]&&c.push(l(e))}),X(o,function(e,t){!a[t]&&s.push(l(e))}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function ZX(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function QX(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function $X(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function eZ(e){OG.registerAxisPointerClass(`CartesianAxisPointer`,EX),e.registerComponentModel(AX),e.registerComponentView(BX),e.registerPreprocessor(function(e){if(e){e.axisPointer&&e.axisPointer.length!==0||(e.axisPointer={});var t=e.axisPointer.link;t&&!Z(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=gG(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},UX)}function tZ(e){JW(zG),JW(eZ)}var nZ=[`x`,`y`,`radius`,`angle`,`single`],rZ=Ik(),iZ=[`cartesian2d`,`polar`,`singleAxis`];function aZ(e){return RS(iZ,e.get(`coordinateSystem`))>=0}function oZ(e){return e+`Axis`}function sZ(e,t){var n=hC(),r=[],i=hC();e.eachComponent({mainType:`dataZoom`,query:t},function(e){i.get(e.uid)||s(e)});var a;do a=!1,e.eachComponent(`dataZoom`,o);while(a);function o(e){!i.get(e.uid)&&c(e)&&(s(e),a=!0)}function s(e){i.set(e.uid,!0),r.push(e),l(e)}function c(e){var t=!1;return e.eachTargetAxis(function(e,r){var i=n.get(e);i&&i[r]&&(t=!0)}),t}function l(e){e.eachTargetAxis(function(e,t){(n.get(e)||n.set(e,[]))[t]=!0})}return r}function cZ(e){var t=e.ecModel,n={infoList:[],infoMap:hC()};return e.eachTargetAxis(function(e,r){var i=t.getComponent(oZ(e),r);if(i){var a=i.getCoordSysModel();if(a){var o=a.uid,s=n.infoMap.get(o);s||(s={model:a,axisModels:[]},n.infoList.push(s),n.infoMap.set(o,s)),s.axisModels.push(i)}}}),n}function lZ(e){var t=rZ(Sz(e));return t.axisProxyMap||=hC()}function uZ(e){if(e)return lZ(e.ecModel).get(e.uid)}function dZ(e,t){lZ(e.ecModel).set(e.uid,t)}function fZ(e,t){var n=t.getAxisModel().axis.__alignTo;return n&&e.getAxisProxy(n.dim,n.model.componentIndex)?uZ(n.model):null}var pZ=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),mZ=function(e){gS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=[`percent`,`percent`],n}return t.prototype.init=function(e,t,n){var r=hZ(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=hZ(e);IS(this.option,e,!0),IS(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;X([[`start`,`startValue`],[`end`,`endValue`]],function(e,r){this._rangePropMode[r]===`value`&&(t[e[0]]=n[e[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get(`orient`,!0),t=this._targetAxisInfoMap=hC();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||`horizontal`,this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each(function(e){e.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return X(nZ,function(n){var r=this.getReferringComponents(oZ(n),mae);if(r.specified){t=!0;var i=new pZ;X(r.models,function(e){i.add(e.componentIndex)}),e.set(n,i)}},this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i=t===`vertical`?`y`:`x`,a=n.findComponents({mainType:i+`Axis`});o(a,i)}if(r){var a=n.findComponents({mainType:`singleAxis`,filter:function(e){return e.get(`orient`,!0)===t}});o(a,`single`)}function o(t,n){var i=t[0];if(i){var a=new pZ;if(a.add(i.componentIndex),e.set(n,a),r=!1,n===`x`||n===`y`){var o=i.getReferringComponents(`grid`,zk).models[0];o&&X(t,function(e){i.componentIndex!==e.componentIndex&&o===e.getReferringComponents(`grid`,zk).models[0]&&a.add(e.componentIndex)})}}}r&&X(nZ,function(t){if(r){var i=n.findComponents({mainType:oZ(t),filter:function(e){return e.get(`type`,!0)===`category`}});if(i[0]){var a=new pZ;a.add(i[0].componentIndex),e.set(t,a),r=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){!e&&(e=t)},this),e===`y`?`vertical`:`horizontal`},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty(`throttle`)&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get(`rangeMode`);X([[`start`,`startValue`],[`end`,`endValue`]],function(r,i){var a=e[r[0]]!=null,o=e[r[1]]!=null;a&&!o?t[i]=`percent`:!a&&o?t[i]=`value`:n?t[i]=n[i]:a&&(t[i]=`percent`)})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(t,n){e??=this.ecModel.getComponent(oZ(t),n)},this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(n,r){X(n.indexList,function(n){e.call(t,r,n)})})},t.prototype.getAxisProxy=function(e,t){return uZ(this.getAxisModel(e,t))},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(oZ(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;X([[`start`,`startValue`],[`end`,`endValue`]],function(r){(e[r[0]]!=null||e[r[1]]!=null)&&(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;X([`start`,`startValue`,`end`,`endValue`],function(n){t[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getWindow().percent},t.prototype.getValueRange=function(e,t){if(e==null&&t==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getWindow().value}else return this.getAxisProxy(e,t).getWindow().value},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return uZ(e);for(var t,n=this._targetAxisInfoMap.keys(),r=0;ra[1];if(u&&!d&&!f)return!0;u&&(i=!0),d&&(t=!0),f&&(n=!0)}return i&&t&&n})}else X(r,function(n){if(i===`empty`)e.setData(t=t.map(n,function(e){return o(e)?e:NaN}));else{var r={};r[n]=a,t.selectRange(r)}});X(r,function(e){t.setApproximateExtent(a,e)})}});function o(e){return e>=a[0]&&e<=a[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._extent;X([`min`,`max`],function(r){var i=t.get(r+`Span`),a=t.get(r+`ValueSpan`);a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a==null?i!=null&&(a=$O(i,[0,100],n,!0)-n[0]):i=$O(n[0]+a,n,[0,100],!0),e[r+`Span`]=i,e[r+`ValueSpan`]=a},this)},e}(),vZ={dirtyOnOverallProgress:!0,getTargetSeries:function(e){function t(t){e.eachComponent(`dataZoom`,function(n){n.eachTargetAxis(function(r,i){t(r,i,e.getComponent(oZ(r),i),n)})})}var n=[];t(function(t,r,i,a){if(!uZ(i)){var o=new _Z(t,r,a,e);n.push(o),dZ(i,o)}});var r=hC();return X(n,function(e){X(e.getTargetSeriesModels(),function(e){r.set(e.uid,e)})}),r},overallReset:function(e,t){e.eachComponent(`dataZoom`,function(e){var n=[];e.eachTargetAxis(function(t,r){var i=e.getAxisProxy(t,r),a=fZ(e,i);a?n.push([i,a]):i.reset(e,null)}),X(n,function(t){t[0].reset(e,t[1].getWindow().percentInverted)}),e.eachTargetAxis(function(n,r){e.getAxisProxy(n,r).filterData(e,t)})}),e.eachComponent(`dataZoom`,function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getWindow(),r=n.percent,i=n.value;e.setCalculatedRange({start:r[0],end:r[1],startValue:i[0],endValue:i[1]})}})}};function yZ(e){e.registerAction(`dataZoom`,function(e,t){X(sZ(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var bZ=Xk();function xZ(e){bZ(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,vZ),yZ(e),e.registerSubTypeDefaulter(`dataZoom`,function(){return`slider`})})}function SZ(e,t){var n=UF(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new DO({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}var CZ=function(e){gS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`tooltip`,t.dependencies=[`axisPointer`],t.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click|mousewheel`,alwaysShowContent:!1,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:Q.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Q.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:Q.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:Q.color.tertiary,fontSize:14}},t}(aI);function wZ(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function TZ(e){if(SC.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`
`}function Cfe(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(i=` `+e/2+`s `+r,a=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(SC.transformSupported?``+jZ+i:`,left`+i+`,top`+i)),AZ+`:`+a}function PZ(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!SC.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=SC.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+jZ+`:`+o+`;`:[[`top`,0],[`left`,0],[EZ,o]]}function wfe(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=aC(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),X([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function Tfe(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=AI(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(Cfe(a,n,r)),o&&i.push(`background-color:`+o),X([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=HF(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(wfe(d)),f!=null&&i.push(`padding:`+UF(f).join(`px `)+`px`),i.join(`;`)+`;`}function FZ(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&IP(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var Efe=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,SC.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(YS(i)?document.querySelector(i):tC(i)?i:JS(i)&&i(e.getDom()));FZ(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler;wV(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=kZ(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=MZ+Tfe(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+PZ(i[0],i[1],!0)+(`border-color:`+JF(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null)a.innerHTML=``;else{var o=``;if(YS(i)&&n.get(`trigger`)===`item`&&!wZ(n)&&(o=Sfe(n,r,i)),YS(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,Z(e)||(e=[e]);for(var s=0;s=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(e.get(`trigger`)!==`axis`&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(r.from!==this.uid&&!SC.node&&n.getDom()){var i=BZ(r,n);this._ticket=``;var a=r.dataByCoordSys,o=Nfe(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=Ofe;c.x=r.x,c.y=r.y,c.update(),nA(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=VX(r,t),u=l.point[0],d=l.point[1];u!=null&&d!=null&&this._tryShow({offsetX:u,offsetY:d,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide(BZ(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(i!=null&&a!=null&&o!=null){var s=t.getSeriesByIndex(i);if(s&&zZ([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(nA(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;oU(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(nA(e).dataIndex==null?nA(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=KS(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=zZ([t.tooltipOption],r),o=this._renderMode,s=[],c=CI(`section`,{blocks:[],noHeader:!0}),l=[],u=new jI;X(e,function(e){X(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value,a=t.axis,d=a.scale.parse(i);if(t&&i!=null){var f=yX(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=CI(`section`,{header:f,noHeader:!uC(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),X(e.seriesDataIndices,function(i){var a=n.getSeriesByIndex(i.seriesIndex),c=i.dataIndexInside,m=a.getDataParams(c);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=vR(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,JF(m.color),o);var h=dI(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=zZ([a],r).get(`valueFormatter`);p.blocks.push(_?Y({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=DI(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?` + +`:`
`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=nA(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=zZ([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(m==null||m===`item`){var h=s.getDataParams(c,l),g=new jI;h.marker=g.makeTooltipMarker(`item`,JF(h.color),d);var _=dI(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?DI(y?Y({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=nA(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(YS(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=FS(a),a.content=WP(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=zZ(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new jI;this._showOrMove(d,function(){var n=FS(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,e.get(`showContent`)&&e.get(`show`)){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u){if(YS(u)){var p=e.ecModel.get(`useUTC`),m=Z(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=TF(m.axisValue,d,p)),d=qF(d,n,!0)}else if(JS(u)){var g=KS(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u}l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||Z(t))return{color:r||i};if(!Z(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),JS(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),Z(t))n=ek(t[0],s),r=ek(t[1],c);else if(QS(t)){var p=t;p.width=l[0],p.height=l[1];var m=$F(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(YS(t)&&o){var h=Mfe(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=Afe(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=VZ(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=VZ(d)?l[1]/2:d===`bottom`?l[1]:0),wZ(e)){var h=jfe(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&X(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&X(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&X(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&X(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){!SC.node&&t.getDom()&&(eV(this,`_updatePosition`),this._tooltipContent.dispose(),zX(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(RH);function zZ(e,t,n){var r=t.ecModel,i;n?(i=new uN(n,r,r),i=new uN(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof uN&&(o=o.get(`tooltip`,!0)),YS(o)&&(o={formatter:o}),o&&(i=new uN(o,i,r)))}return i}function BZ(e,t){return e.dispatchAction||KS(t.dispatchAction,t)}function Afe(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function jfe(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function Mfe(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function VZ(e){return e===`center`||e===`middle`}function Nfe(e,t,n){var r=Rk(e).queryOptionMap,i=r.keys()[0];if(i&&i!==`series`){var a=Bk(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=nA(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function Pfe(e){JW(eZ),e.registerComponentModel(CZ),e.registerComponentView(kfe),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},yC),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},yC)}var HZ=X;function UZ(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function WZ(e,t,n){var r={};return HZ(t,function(t){var a=r[t]=i();HZ(e[t],function(e,r){if(dq.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new dq(i),r===`opacity`&&(i=FS(i),i.type=`colorAlpha`,a.__hidden.__alphaForOpacity=new dq(i))}})}),r;function i(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}}function Ffe(e,t,n){var r;X(n,function(e){t.hasOwnProperty(e)&&UZ(t[e])&&(r=!0)}),r&&X(n,function(n){t.hasOwnProperty(n)&&UZ(t[n])?e[n]=FS(t[n]):delete e[n]})}function Ife(e,t,n,r){var i={};return X(e,function(e){i[e]=dq.prepareVisualTypes(t[e])}),{progress:function(e,a){var o;r!=null&&(o=a.getDimensionIndex(r));function s(e){return iU(a,l,e)}function c(e,t){dde(a,l,e,t)}for(var l,u=a.getStore();(l=e.next())!=null;){var d=a.getRawDataItem(l);if(!(d&&d.visualMap===!1))for(var f=r==null?l:u.get(o,l),p=n(f),m=t[p],h=i[p],g=0,_=h.length;g<_;g++){var v=h[g];m[v]&&m[v].applyVisual(f,s,c)}}}}}function GZ(e,t){if(!e)return!1;for(var n=Z(e)?e:[e],r=0;r=0&&(s[o]=+s[o].toFixed(f)),[s,d]}var ZZ={min:qS(XZ,`min`),max:qS(XZ,`max`),average:qS(XZ,`average`),median:qS(XZ,`median`)};function QZ(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,i=r&&r.dimensions;if(!Rfe(t)&&!Z(t.coord)&&Z(i)){var a=$Z(t,n,r,e);if(t=FS(t),t.type&&ZZ[t.type]&&a.baseAxis&&a.valueAxis){var o=RS(i,a.baseAxis.dim),s=RS(i,a.valueAxis.dim),c=ZZ[t.type](n,a.valueAxis.dim,a.baseDataDim,a.valueDataDim,o,s);t.coord=c[0],t.value=c[1]}else t.coord=[t.xAxis==null?t.radiusAxis:t.xAxis,t.yAxis==null?t.angleAxis:t.yAxis]}if(t.coord==null||!Z(i)){t.coord=[];var l=e.getBaseAxis();if(l&&t.type&&ZZ[t.type]){var u=r.getOtherAxis(l);u&&(t.value=nQ(n,n.mapDimension(u.dim),t.type))}}else for(var d=t.coord,f=0;f<2;f++)ZZ[d[f]]&&(d[f]=nQ(n,n.mapDimension(i[f]),d[f]));return t}}function $Z(e,t,n,r){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex==null?e.valueDim:t.getDimension(e.valueIndex),i.valueAxis=n.getAxis(zfe(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function zfe(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function eQ(e,t){return e&&e.containData&&t.coord&&!YZ(t)?e.containData(t.coord):!0}function Bfe(e,t,n){return e&&e.containZone&&t.coord&&n.coord&&!YZ(t)&&!YZ(n)?e.containZone(t.coord,n.coord):!0}function tQ(e,t){return e?function(e,n,r,i){return JN(i<2?e.coord&&e.coord[i]:e.value,t[i])}:function(e,n,r,i){return JN(e.value,t[i])}}function nQ(e,t,n){if(n===`average`){var r=0,i=0;return e.each(t,function(e,t){isNaN(e)||(r+=e,i++)}),r/i}return n===`median`?e.getMedian(t):e.getDataExtent(t)[+(n===`max`)]}var rQ=Ik(),iQ=function(e){gS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this.markerGroupMap=hC()},t.prototype.render=function(e,t,n){var r=this,i=this.markerGroupMap;i.each(function(e){rQ(e).keep=!1}),t.eachSeries(function(e){var i=JZ.getMarkerModelFromSeries(e,r.type);i&&r.renderSeries(e,i,t,n)}),i.each(function(e){!rQ(e).keep&&r.group.remove(e.group)}),Vfe(t,i,this.type)},t.prototype.markKeep=function(e){rQ(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;X(e,function(e){var r=JZ.getMarkerModelFromSeries(e,n.type);r&&r.getData().eachItemGraphicEl(function(e){e&&(t?VA(e):HA(e))})})},t.type=`marker`,t}(RH);function Vfe(e,t,n){e.eachSeries(function(e){var r=JZ.getMarkerModelFromSeries(e,n),i=t.get(e.id);if(r&&i&&i.group){var a=zM(r),o=a.z,s=a.zlevel;VM(i.group,o,s)}})}function aQ(e,t,n){var r=t.coordinateSystem,i=n.getWidth(),a=n.getHeight(),o=r&&r.getArea&&r.getArea();e.each(function(n){var s=e.getItemModel(n),c=s.get(`relativeTo`)===`coordinate`,l=c?o?o.width:0:i,u=c?o?o.height:0:a,d=c&&o?o.x:0,f=c&&o?o.y:0,p,m=ek(s.get(`x`),l)+d,h=ek(s.get(`y`),u)+f;if(!isNaN(m)&&!isNaN(h))p=[m,h];else if(t.getMarkerPosition)p=t.getMarkerPosition(e.getValues(e.dimensions,n));else if(r){var g=e.get(r.dimensions[0],n),_=e.get(r.dimensions[1],n);p=r.dataToPoint([g,_])}isNaN(m)||(p[0]=m),isNaN(h)||(p[1]=h),e.setItemLayout(n,p)})}var Hfe=function(e){gS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=JZ.getMarkerModelFromSeries(e,`markPoint`);t&&(aQ(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,new YI),l=Ufe(i,e,t);t.setData(l),aQ(t.getData(),e,r),l.each(function(e){var n=l.getItemModel(e),r=n.getShallow(`symbol`),i=n.getShallow(`symbolSize`),a=n.getShallow(`symbolRotate`),s=n.getShallow(`symbolOffset`),c=n.getShallow(`symbolKeepAspect`);if(JS(r)||JS(i)||JS(a)||JS(s)){var u=t.getRawValue(e),d=t.getDataParams(e);JS(r)&&(r=r(u,d)),JS(i)&&(i=i(u,d)),JS(a)&&(a=a(u,d)),JS(s)&&(s=s(u,d))}var f=n.getModel(`itemStyle`).getItemStyle(),p=n.get(`z2`),m=aU(o,`color`);f.fill||=m,l.setItemVisual(e,{z2:aC(p,0),symbol:r,symbolSize:i,symbolRotate:a,symbolOffset:s,symbolKeepAspect:c,style:f})}),c.updateData(l),this.group.add(c.group),l.eachItemGraphicEl(function(e){e.traverse(function(e){nA(e).dataModel=t})}),this.markKeep(c),c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markPoint`,t}(iQ);function Ufe(e,t,n){var r=e?VS(e&&e.dimensions,function(e){var n=t.getData();return Y(Y({},n.getDimensionInfo(n.mapDimension(e))||{}),{name:e,ordinalMeta:null})}):[{name:`value`,type:`float`}],i=new yP(r,n),a=VS(n.get(`data`),qS(QZ,t));e&&(a=US(a,qS(eQ,e)));var o=tQ(!!e,r);return i.initData(a,null,o),i}function Wfe(e){e.registerComponentModel(Lfe),e.registerComponentView(Hfe),e.registerPreprocessor(function(e){GZ(e.series,`markPoint`)&&(e.markPoint=e.markPoint||{})})}var Gfe=function(e){gS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type=`markLine`,t.defaultOption={z:5,symbol:[`circle`,`arrow`],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:`item`},label:{show:!0,position:`end`,distance:5},lineStyle:{type:`dashed`},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:`linear`},t}(JZ),oQ=Ik(),Kfe=function(e,t,n,r){var i=e.getData(),a;if(Z(r))a=r;else{var o=r.type;if(o===`min`||o===`max`||o===`average`||o===`median`||r.xAxis!=null||r.yAxis!=null){var s=void 0,c=void 0;if(r.yAxis!=null||r.xAxis!=null)s=t.getAxis(r.yAxis==null?`x`:`y`),c=iC(r.yAxis,r.xAxis);else{var l=$Z(r,i,t,e);s=l.valueAxis,c=nQ(i,DP(i,l.valueDataDim),o)}var u=s.dim===`x`?0:1,d=1-u,f=FS(r),p={coord:[]};f.type=null,f.coord=[],f.coord[d]=-1/0,p.coord[d]=1/0;var m=n.get(`precision`);m>=0&&ZS(c)&&(c=+c.toFixed(Math.min(m,20))),f.coord[u]=p.coord[u]=c,a=[f,p,{type:o,valueIndex:r.valueIndex,value:c}]}else a=[]}var h=[QZ(e,a[0]),QZ(e,a[1]),Y({},a[2])];return h[2].type=h[2].type||null,IS(h[2],h[0]),IS(h[2],h[1]),h};function sQ(e){return!isNaN(e)&&!isFinite(e)}function cQ(e,t,n,r){var i=1-e,a=r.dimensions[e];return sQ(t[i])&&sQ(n[i])&&t[e]===n[e]&&r.getAxis(a).containData(t[e])}function qfe(e,t){if(e.type===`cartesian2d`){var n=t[0].coord,r=t[1].coord;if(n&&r&&(cQ(1,n,r,e)||cQ(0,n,r,e)))return!0}return eQ(e,t[0])&&eQ(e,t[1])}function lQ(e,t,n,r,i){var a=r.coordinateSystem,o=e.getItemModel(t),s,c=ek(o.get(`x`),i.getWidth()),l=ek(o.get(`y`),i.getHeight());if(!isNaN(c)&&!isNaN(l))s=[c,l];else{if(r.getMarkerPosition)s=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var u=a.dimensions,d=e.get(u[0],t),f=e.get(u[1],t);s=a.dataToPoint([d,f])}if(pL(a,`cartesian2d`)){var p=a.getAxis(`x`),m=a.getAxis(`y`),u=a.dimensions;sQ(e.get(u[0],t))?s[0]=p.toGlobalCoord(p.getExtent()[+!n]):sQ(e.get(u[1],t))&&(s[1]=m.toGlobalCoord(m.getExtent()[+!n]))}isNaN(c)||(s[0]=c),isNaN(l)||(s[1]=l)}e.setItemLayout(t,s)}var Jfe=function(e){gS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=JZ.getMarkerModelFromSeries(e,`markLine`);if(t){var r=t.getData(),i=oQ(t).from,a=oQ(t).to;i.each(function(t){lQ(i,t,!0,e,n),lQ(a,t,!1,e,n)}),r.each(function(e){r.setItemLayout(e,[i.getItemLayout(e),a.getItemLayout(e)])}),this.markerGroupMap.get(e.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,new Uq);this.group.add(c.group);var l=Yfe(i,e,t),u=l.from,d=l.to,f=l.line;oQ(t).from=u,oQ(t).to=d,t.setData(f);var p=t.get(`symbol`),m=t.get(`symbolSize`),h=t.get(`symbolRotate`),g=t.get(`symbolOffset`);Z(p)||(p=[p,p]),Z(m)||(m=[m,m]),Z(h)||(h=[h,h]),Z(g)||(g=[g,g]),l.from.each(function(e){_(u,e,!0),_(d,e,!1)}),f.each(function(e){var t=f.getItemModel(e),n=t.getModel(`lineStyle`).getLineStyle();f.setItemLayout(e,[u.getItemLayout(e),d.getItemLayout(e)]);var r=t.get(`z2`);n.stroke??=u.getItemVisual(e,`style`).fill,f.setItemVisual(e,{z2:aC(r,0),fromSymbolKeepAspect:u.getItemVisual(e,`symbolKeepAspect`),fromSymbolOffset:u.getItemVisual(e,`symbolOffset`),fromSymbolRotate:u.getItemVisual(e,`symbolRotate`),fromSymbolSize:u.getItemVisual(e,`symbolSize`),fromSymbol:u.getItemVisual(e,`symbol`),toSymbolKeepAspect:d.getItemVisual(e,`symbolKeepAspect`),toSymbolOffset:d.getItemVisual(e,`symbolOffset`),toSymbolRotate:d.getItemVisual(e,`symbolRotate`),toSymbolSize:d.getItemVisual(e,`symbolSize`),toSymbol:d.getItemVisual(e,`symbol`),style:n})}),c.updateData(f),l.line.eachItemGraphicEl(function(e){nA(e).dataModel=t,e.traverse(function(e){nA(e).dataModel=t})});function _(t,n,i){var a=t.getItemModel(n);lQ(t,n,i,e,r);var s=a.getModel(`itemStyle`).getItemStyle();s.fill??=aU(o,`color`),t.setItemVisual(n,{symbolKeepAspect:a.get(`symbolKeepAspect`),symbolOffset:aC(a.get(`symbolOffset`,!0),g[+!i]),symbolRotate:aC(a.get(`symbolRotate`,!0),h[+!i]),symbolSize:aC(a.get(`symbolSize`),m[+!i]),symbol:aC(a.get(`symbol`,!0),p[+!i]),style:s})}this.markKeep(c),c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markLine`,t}(iQ);function Yfe(e,t,n){var r=e?VS(e&&e.dimensions,function(e){var n=t.getData();return Y(Y({},n.getDimensionInfo(n.mapDimension(e))||{}),{name:e,ordinalMeta:null})}):[{name:`value`,type:`float`}],i=new yP(r,n),a=new yP(r,n),o=new yP([],n),s=VS(n.get(`data`),qS(Kfe,t,e,n));e&&(s=US(s,qS(qfe,e)));var c=tQ(!!e,r);return i.initData(VS(s,function(e){return e[0]}),null,c),a.initData(VS(s,function(e){return e[1]}),null,c),o.initData(VS(s,function(e){return e[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}function Xfe(e){e.registerComponentModel(Gfe),e.registerComponentView(Jfe),e.registerPreprocessor(function(e){GZ(e.series,`markLine`)&&(e.markLine=e.markLine||{})})}var Zfe=function(e){gS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type=`markArea`,t.defaultOption={z:1,tooltip:{trigger:`item`},animation:!1,label:{show:!0,position:`top`},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:`top`}}},t}(JZ),uQ=Ik(),Qfe=function(e,t,n,r){var i=r[0],a=r[1];if(i&&a){var o=QZ(e,i),s=QZ(e,a),c=o.coord,l=s.coord;c[0]=iC(c[0],-1/0),c[1]=iC(c[1],-1/0),l[0]=iC(l[0],1/0),l[1]=iC(l[1],1/0);var u=Are([{},o,s]);return u.coord=[o.coord,s.coord],u.x0=o.x,u.y0=o.y,u.x1=s.x,u.y1=s.y,u}};function dQ(e){return!isNaN(e)&&!isFinite(e)}function fQ(e,t,n,r){var i=1-e;return dQ(t[i])&&dQ(n[i])}function $fe(e,t){var n=t.coord[0],r=t.coord[1],i={coord:n,x:t.x0,y:t.y0},a={coord:r,x:t.x1,y:t.y1};return pL(e,`cartesian2d`)?n&&r&&(fQ(1,n,r,e)||fQ(0,n,r,e))?!0:Bfe(e,i,a):eQ(e,i)||eQ(e,a)}function pQ(e,t,n,r,i){var a=r.coordinateSystem,o=e.getItemModel(t),s,c=ek(o.get(n[0]),i.getWidth()),l=ek(o.get(n[1]),i.getHeight());if(!isNaN(c)&&!isNaN(l))s=[c,l];else{if(r.getMarkerPosition){var u=e.getValues([`x0`,`y0`],t),d=e.getValues([`x1`,`y1`],t),f=a.clampData(u),p=a.clampData(d),m=[];m[0]=n[0]===`x0`?f[0]>p[0]?d[0]:u[0]:f[0]>p[0]?u[0]:d[0],m[1]=n[1]===`y0`?f[1]>p[1]?d[1]:u[1]:f[1]>p[1]?u[1]:d[1],s=r.getMarkerPosition(m,n,!0)}else{var h=e.get(n[0],t),g=e.get(n[1],t),_=[h,g];a.clampData&&a.clampData(_,_),s=a.dataToPoint(_,!0)}if(pL(a,`cartesian2d`)){var v=a.getAxis(`x`),y=a.getAxis(`y`),h=e.get(n[0],t),g=e.get(n[1],t);dQ(h)?s[0]=v.toGlobalCoord(v.getExtent()[n[0]===`x0`?0:1]):dQ(g)&&(s[1]=y.toGlobalCoord(y.getExtent()[n[1]===`y0`?0:1]))}isNaN(c)||(s[0]=c),isNaN(l)||(s[1]=l)}return s}var mQ=[[`x0`,`y0`],[`x1`,`y0`],[`x1`,`y1`],[`x0`,`y1`]],epe=function(e){gS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=JZ.getMarkerModelFromSeries(e,`markArea`);if(t){var r=t.getData();r.each(function(t){var i=VS(mQ,function(i){return pQ(r,t,i,e,n)});r.setItemLayout(t,i),r.getItemGraphicEl(t).setShape(`points`,i)})}},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,{group:new vj});this.group.add(c.group),this.markKeep(c);var l=tpe(i,e,t);t.setData(l),l.each(function(t){var n=VS(mQ,function(n){return pQ(l,t,n,e,r)}),a=i.getAxis(`x`).scale,s=i.getAxis(`y`).scale,c=a.getExtent(),u=s.getExtent(),d=[a.parse(l.get(`x0`,t)),a.parse(l.get(`x1`,t))],f=[s.parse(l.get(`y0`,t)),s.parse(l.get(`y1`,t))];ik(d),ik(f);var p=c[0]>d[1]||c[1]f[1]||u[1]=0},t.prototype.getOrient=function(){return this.get(`orient`)===`vertical`?{index:1,name:`vertical`}:{index:0,name:`horizontal`}},t.type=`legend.plain`,t.dependencies=[`series`],t.defaultOption={z:4,show:!0,orient:`horizontal`,left:`center`,bottom:Q.size.m,align:`auto`,backgroundColor:Q.color.transparent,borderColor:Q.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:Q.color.disabled,inactiveBorderColor:Q.color.disabled,inactiveBorderWidth:`auto`,itemStyle:{color:`inherit`,opacity:`inherit`,borderColor:`inherit`,borderWidth:`auto`,borderCap:`inherit`,borderJoin:`inherit`,borderDashOffset:`inherit`,borderMiterLimit:`inherit`},lineStyle:{width:`auto`,color:`inherit`,inactiveColor:Q.color.disabled,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:Q.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:Q.color.tertiary,borderWidth:1,borderColor:Q.color.border},emphasis:{selectorLabel:{show:!0,color:Q.color.quaternary}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(aI),gQ=qS,_Q=X,vQ=vj,yQ=function(e){gS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new vQ),this.group.add(this._selectorGroup=new vQ),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);i&&i!==`auto`||(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=tI(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=$F(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=$F(LS({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=SZ(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=hC(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),_Q(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===` +`)){var p=new vQ;p.newline=!0,s.add(p)}else{var m=n.getSeriesByName(f)[0];if(!c.get(f)){if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,gQ(bQ,f,null,r,d)).on(`mouseover`,gQ(xQ,m.name,null,r,d)).on(`mouseout`,gQ(SQ,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=nA(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=eE(h.fill);_&&_[3]===0&&(_[3]=.2,h=Y(Y({},h),{fill:cE(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,gQ(bQ,null,f,r,d)).on(`mouseover`,gQ(xQ,null,f,r,d)).on(`mouseout`,gQ(SQ,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=nA(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this)}}},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};nA(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();_Q(e,function(e){var r=e.type,i=new jO({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),YM(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),ZA(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=ipe(c,r,o,s,d,m,u),y=new vQ,b=r.getModel(`textStyle`);if(JS(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(ape({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;YS(w)&&w?T=w.replace(`{name}`,t??``):JS(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new jO({style:ZM(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new DO({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&MM({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),ZA(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();QF(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){QF(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(RH);function ipe(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),_Q(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:LU(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function ape(e){var t=e.icon||`roundRect`,n=zI(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=Q.color.neutral00,n.style.lineWidth=2),n}function bQ(e,t,n,r){SQ(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),xQ(e,t,n,r)}function xQ(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function SQ(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function CQ(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),wQ(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){X(i,function(t,n){e[t?`select`:`unSelect`](n)}),wQ(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function wQ(e,t){var n=t||{};return X(e.getData(),function(t){var r=t.get(`name`);if(r!==` +`&&r!==``){var i=e.isSelected(r);n[r]=vC(n,r)?n[r]&&i:i}}),n}function ope(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,qS(CQ,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,qS(CQ,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,qS(CQ,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,qS(CQ,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,qS(CQ,`unSelect`))}var spe=tA(cpe);function cpe(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;nn[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=aC(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new DO({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&tM(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;X([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,YS(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=OQ[i],o=kQ[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(yQ);function dpe(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function fpe(e){JW(TQ),e.registerComponentModel(lpe),e.registerComponentView(upe),dpe(e)}function ppe(e){JW(TQ),JW(fpe)}var mpe=function(e){gS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.inside`,t.defaultOption=AP(mZ.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(mZ),AQ=Ik();function hpe(e,t,n){AQ(e).coordSysRecordMap.each(function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)})}function gpe(e,t){for(var n=AQ(e).coordSysRecordMap,r=n.keys(),i=0;ia[i+r]&&(r=n),o&&=t.get(`preventDefaultMouseMove`,!0),s=aC(t.get(`cursorGrab`,!0),s),c=aC(t.get(`cursorGrabbing`,!0),c)}),{controlType:r,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:n,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint},cursorGrab:s,cursorGrabbing:c}}}function xpe(e){e.registerUpdateLifecycle(`coordsys:aftercreate`,function(e,t){var n=AQ(t),r=n.coordSysRecordMap||=hC();r.each(function(e){e.dataZoomInfoMap=null}),e.eachComponent({mainType:`dataZoom`,subType:`inside`},function(e){X(cZ(e).infoList,function(n){var i=n.model.uid,a=r.get(i)||r.set(i,_pe(t,n.model));(a.dataZoomInfoMap||=hC()).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})})}),r.each(function(e){var n=e.controller,i,a=e.dataZoomInfoMap;if(a){var o=a.keys()[0];o!=null&&(i=a.get(o))}if(!i)jQ(r,e);else{var s=bpe(a,e,t);n.enable(s.controlType,s.opt),$B(e,`dispatchAction`,i.model.get(`throttle`,!0),`fixRate`)}})})}var Spe=function(e){gS(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataZoom.inside`,t}return t.prototype.render=function(t,n,r){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),hpe(r,t,{pan:KS(MQ.pan,this),zoom:KS(MQ.zoom,this),scrollMove:KS(MQ.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){gpe(this.api,this.dataZoomModel),this.range=null},t.type=`dataZoom.inside`,t}(gZ),MQ={zoom:function(e,t,n,r){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=PQ[t](null,[r.originX,r.originY],o,n,e),c=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],l=Math.max(1/r.scale,0);a[0]=(a[0]-c)*l+c,a[1]=(a[1]-c)*l+c;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Jq(0,a,[0,100],0,u.minSpan,u.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:NQ(function(e,t,n,r,i,a){var o=PQ[r]([a.oldX,a.oldY],[a.newX,a.newY],t,i,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:NQ(function(e,t,n,r,i,a){return PQ[r]([0,0],[a.scrollDelta,a.scrollDelta],t,i,n).signal*(e[1]-e[0])*a.scrollDelta})};function NQ(e){return function(t,n,r,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s&&(Jq(e(o,s,t,n,r,i),o,[0,100],`all`),this.range=o,a[0]!==o[0]||a[1]!==o[1]))return o}}var PQ={grid:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem.getRect();return e||=[0,0],a.dim===`x`?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem,c=s.getRadiusAxis().getExtent(),l=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType===`radiusAxis`?(o.pixel=t[0]-e[0],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,n,r,i){var a=n.axis,o=i.model.coordinateSystem.getRect(),s={};return e||=[0,0],a.orient===`horizontal`?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function Cpe(e){xZ(e),e.registerComponentModel(mpe),e.registerComponentView(Spe),xpe(e)}var wpe=function(e){gS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.slider`,t.layoutMode=`box`,t.defaultOption=AP(mZ.defaultOption,{show:!0,right:`ph`,top:`ph`,width:`ph`,height:`ph`,left:null,bottom:null,borderColor:Q.color.accent10,borderRadius:0,backgroundColor:Q.color.transparent,dataBackground:{lineStyle:{color:Q.color.accent30,width:.5},areaStyle:{color:Q.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:Q.color.accent40,width:.5},areaStyle:{color:Q.color.accent20,opacity:.3}},fillerColor:`rgba(135,175,274,0.2)`,handleIcon:`path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z`,handleSize:`100%`,handleStyle:{color:Q.color.neutral00,borderColor:Q.color.accent20},moveHandleSize:7,moveHandleIcon:`path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z`,moveHandleStyle:{color:Q.color.accent40,opacity:.5},showDetail:!0,showDataShadow:`auto`,realtime:!0,zoomLock:!1,textStyle:{color:Q.color.tertiary},brushSelect:!0,brushStyle:{color:Q.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:Q.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t}(mZ),FQ=DO,Tpe=1,IQ=30,Epe=7,LQ=`horizontal`,RQ=`vertical`,Dpe=5,Ope=[`line`,`bar`,`candlestick`,`scatter`],kpe={easing:`cubicOut`,duration:100,delay:0},Ape=function(e){gS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(e,t){this.api=t,this._onBrush=KS(this._onBrush,this),this._onBrushEnd=KS(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){e.prototype.render.apply(this,arguments),$B(this,`_dispatchZoomAction`,t.get(`throttle`),`fixRate`),this._orient=t.getOrient(),t.get(`show`)===!1?this.group.removeAll():t.noTarget()?(this._clear(),this.group.removeAll()):(i&&i.type===`dataZoom`&&i.from===this.uid||this._buildView(),this._updateView())},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){eV(this,`_dispatchZoomAction`);var e=this.api.getZr();e.off(`mousemove`,this._onBrush),e.off(`mouseup`,this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new vj;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get(`brushSelect`)?Epe:0,r=tI(e,t).refContainer,i=this._findCoordRect(),a=e.get(`defaultLocationEdgeGap`,!0)||0,o=this._orient===LQ?{right:r.width-i.x-i.width,top:r.height-IQ-a-n,width:i.width,height:IQ}:{right:a,top:i.y,width:IQ,height:i.height},s=iI(e.option);X([`right`,`top`,`width`,`height`],function(e){s[e]===`ph`&&(s[e]=o[e])});var c=$F(s,r);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===RQ&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get(`inverse`),a=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n===LQ&&!i?{scaleY:o?1:-1,scaleX:1}:n===LQ&&i?{scaleY:o?1:-1,scaleX:-1}:n===RQ&&!i?{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2});var s=e.getBoundingRect([a]),c=isNaN(s.x)?0:s.x,l=isNaN(s.y)?0:s.y;e.x=t.x-c,e.y=t.y-l,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get(`brushSelect`);n.add(new FQ({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get(`backgroundColor`)},z2:-40}));var i=new FQ({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:`transparent`},z2:0,onclick:KS(this._onClickPanel,this)}),a=this.api.getZr();r?(i.on(`mousedown`,this._onBrushStart,this),i.cursor=`crosshair`,a.on(`mousemove`,this._onBrush),a.on(`mouseup`,this._onBrushEnd)):(a.off(`mousemove`,this._onBrush),a.off(`mouseup`,this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var t=this._size,n=this._shadowSize||[],r=e.series,i=r.getRawData(),a=r.getShadowDim&&r.getShadowDim(),o=a&&i.getDimensionInfo(a)?r.getShadowDim():e.otherDim;if(o==null)return;var s=this._shadowPolygonPts,c=this._shadowPolylinePts;if(i!==this._shadowData||o!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var l=i.getDataExtent(e.thisDim),u=i.getDataExtent(o),d=(u[1]-u[0])*.3;u=[u[0]-d,u[1]+d];var f=[0,t[1]],p=[0,t[0]],m=[[t[0],0],[0,0]],h=[],g=p[1]/Math.max(1,i.count()-1),_=t[0]/(l[1]-l[0]),v=e.thisAxis.type===`time`,y=-g,b=Math.round(i.count()/t[0]),x;i.each([e.thisDim,o],function(e,t,n){if(b>0&&n%b)v||(y+=g);else{y=v?(+e-l[0])*_:y+g;var r=t==null||isNaN(t)||t===``,i=r?0:$O(t,u,f,!0);r&&!x&&n?(m.push([m[m.length-1][0],0]),h.push([h[h.length-1][0],0])):!r&&x&&(m.push([y,0]),h.push([y,0])),r||(m.push([y,i]),h.push([y,i])),x=r}}),s=this._shadowPolygonPts=m,c=this._shadowPolylinePts=h}this._shadowData=i,this._shadowDim=o,this._shadowSize=[t[0],t[1]];var S=this.dataZoomModel;function C(e){var t=S.getModel(e?`selectedDataBackground`:`dataBackground`),n=new vj,r=new Fj({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel(`areaStyle`).getAreaStyle(),silent:!0,z2:-20}),i=new Ij({shape:{points:c},segmentIgnoreThreshold:1,style:t.getModel(`lineStyle`).getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}for(var w=0;w<3;w++){var T=C(w===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get(`showDataShadow`);if(t!==!1){var n,r=this.ecModel;return e.eachTargetAxis(function(i,a){X(e.getAxisProxy(i,a).getTargetSeriesModels(),function(e){if(!n&&!(t!==!0&&RS(Ope,e.get(`type`))<0)){var o=r.getComponent(oZ(i),a).axis,s=jpe(i),c,l=e.coordinateSystem;s!=null&&l.getOtherAxis&&(c=l.getOtherAxis(o).inverse),s=e.getData().mapDimension(s),n={thisAxis:o,series:e,thisDim:e.getData().mapDimension(i),otherDim:s,otherAxisInverse:c}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=this._displayables.sliderGroup,a=this._size,o=this.dataZoomModel,s=this.api,c=o.get(`borderRadius`)||0,l=o.get(`brushSelect`),u=t.filler=new FQ({silent:l,style:{fill:o.get(`fillerColor`)},textConfig:{position:`inside`}});i.add(u),i.add(new FQ({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:c},style:{stroke:o.get(`dataBackgroundColor`)||o.get(`borderColor`),lineWidth:Tpe,fill:Q.color.transparent}})),X([0,1],function(t){var a=o.get(`handleIcon`);!RI[a]&&a.indexOf(`path://`)<0&&a.indexOf(`image://`)<0&&(a=`path://`+a);var s=zI(a,-1,0,2,2,null,!0);s.attr({cursor:Mpe(this._orient),draggable:!0,drift:KS(this._onDragMove,this,t),ondragend:KS(this._onDragEnd,this),onmouseover:KS(this._onOverDataInfoTriggerArea,this,!0),onmouseout:KS(this._onOverDataInfoTriggerArea,this,!1),z2:5});var c=s.getBoundingRect(),l=o.get(`handleSize`);this._handleHeight=ek(l,this._size[1]),this._handleWidth=c.width/c.height*this._handleHeight,s.setStyle(o.getModel(`handleStyle`).getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState(`emphasis`).style=o.getModel([`emphasis`,`handleStyle`]).getItemStyle(),ZA(s);var u=o.get(`handleColor`);u!=null&&(s.style.fill=u),i.add(n[t]=s);var d=o.getModel(`textStyle`),f=(o.get(`handleLabel`)||{}).show||!1;e.add(r[t]=new jO({silent:!0,invisible:!f,style:ZM(d,{x:0,y:0,text:``,verticalAlign:`middle`,align:`center`,fill:d.getTextColor(),font:d.getFont()}),z2:10}))},this);var d=u;if(l){var f=ek(o.get(`moveHandleSize`),a[1]),p=t.moveHandle=new DO({style:o.getModel(`moveHandleStyle`).getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:f}}),m=f*.8,h=t.moveHandleIcon=zI(o.get(`moveHandleIcon`),-m/2,-m/2,m,m,Q.color.neutral00,!0);h.silent=!0,h.y=a[1]+f/2-.5,p.ensureState(`emphasis`).style=o.getModel([`emphasis`,`moveHandleStyle`]).getItemStyle();var g=Math.min(a[1]/2,Math.max(f,10));d=t.moveZone=new DO({invisible:!0,shape:{y:a[1]-g,height:f+g}}),d.on(`mouseover`,function(){s.enterEmphasis(p)}).on(`mouseout`,function(){s.leaveEmphasis(p)}),i.add(p),i.add(h),i.add(d)}d.attr({draggable:!0,cursor:`grab`,drift:KS(this._onActualMoveZoneDrift,this),ondragstart:KS(this._onActualMoveZoneDragStart,this),ondragend:KS(this._onActualMoveZoneDragEnd,this),onmouseover:KS(this._onOverDataInfoTriggerArea,this,!0),onmouseout:KS(this._onOverDataInfoTriggerArea,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[$O(e[0],[0,100],t,!0),$O(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];Jq(t,r,i,n.get(`zoomLock`)?`all`:e,a.minSpan==null?null:$O(a.minSpan,o,i,!0),a.maxSpan==null?null:$O(a.maxSpan,o,i,!0));var s=this._range,c=this._range=ik([$O(r[0],i,o,!0),$O(r[1],i,o,!0)]);return!s||s[0]!==c[0]||s[1]!==c[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=ik(n.slice()),i=this._size;X([0,1],function(e){var r=t.handles[e],a=this._handleHeight;r.attr({scaleX:a/2,scaleY:a/2,x:n[e]+(e?-1:1),y:i[1]/2-a/2})},this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var a={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(a),t.moveZone.setShape(a),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr(`x`,a.x+a.width/2));for(var o=t.dataShadowSegs,s=[0,r[0],r[1],i[0]],c=0;ct[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,a=this._updateInterval(`all`,n[0]-i);this._updateView(),a&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new gw(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr(`ignore`,!0);var n=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),i=[0,100],a=this._handleEnds=[n.x,n.x+n.width],o=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();Jq(0,a,r,0,o.minSpan==null?null:$O(o.minSpan,i,r,!0),o.maxSpan==null?null:$O(o.maxSpan,i,r,!0)),this._range=ik([$O(a[0],r,i,!0),$O(a[1],r,i,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(TV(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new FQ({silent:!0,style:r.getModel(`brushStyle`).getItemStyle()}),n.sliderGroup.add(i)),i.attr(`ignore`,!1);var a=this._brushStart,o=this._displayables.sliderGroup,s=o.transformCoordToLocal(e,t),c=o.transformCoordToLocal(a.x,a.y),l=this._size;s[0]=Math.max(Math.min(l[0],s[0]),0),i.setShape({x:c[0],y:0,width:s[0]-c[0],height:l[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:`dataZoom`,from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?kpe:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=cZ(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),i=this.api.getHeight();e={x:r*.2,y:i*.2,width:r*.6,height:i*.6}}return e},t.type=`dataZoom.slider`,t}(gZ);function zQ(e,t,n,r){var i=e.get(`labelFormatter`),a=e.get(`labelPrecision`);(a==null||a===`auto`)&&(a=n.valuePrecision);var o=n.value[t],s=o==null||isNaN(o)?``:ML(r)||AL(r)?r.getLabel({value:Math.round(o)}):isFinite(a)?rk(o,a,!0):o+``;return JS(i)?i(o,s):YS(i)?i.replace(`{value}`,s):s}function jpe(e){return{x:`y`,y:`x`,radius:`angle`,angle:`radius`}[e]}function Mpe(e){return e===`vertical`?`ns-resize`:`ew-resize`}function Npe(e){e.registerComponentModel(wpe),e.registerComponentView(Ape),xZ(e)}function Ppe(e){JW(Cpe),JW(Npe)}var BQ={get:function(e,t,n){var r=FS((Fpe[e]||{})[t]);return n&&Z(r)?r[r.length-1]:r}},Fpe={color:{active:[`#006edd`,`#e0ffff`],inactive:[Q.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:[`circle`,`roundRect`,`diamond`],inactive:[`none`]},symbolSize:{active:[10,50],inactive:[0,0]}},VQ=dq.mapVisual,Ipe=dq.eachVisual,Lpe=Z,HQ=X,Rpe=ik,zpe=$O,UQ=function(e){gS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=[`inRange`,`outOfRange`],n.replacableOptionKeys=[`inRange`,`outOfRange`,`target`,`controller`,`color`],n.layoutMode={type:`box`,ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&Ffe(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel(`textStyle`),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=KS(e,this),this.controllerVisuals=WZ(this.option.controller,t,e),this.targetVisuals=WZ(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this,t=this.option.seriesTargets;if(t){var n=[];return HQ(t,function(t){if(t.seriesIndex!=null)n.push(t.seriesIndex);else if(t.seriesId!=null){var r;e.ecModel.eachSeries(function(e){e.id===t.seriesId&&(r=e)}),r&&n.push(r.componentIndex)}}),n}var r=this.option.seriesId,i=this.option.seriesIndex;i==null&&r==null&&(i=`all`);var a=Bk(this.ecModel,`series`,{index:i,id:r},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return VS(a,function(e){return e.componentIndex})},t.prototype.eachTargetSeries=function(e,t){X(this.getTargetSeriesIndices(),function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)},this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries(function(n){n===e&&(t=!0)}),t},t.prototype.formatValueText=function(e,t,n){var r=this.option,i=r.precision,a=this.dataBound,o=r.formatter,s;n||=[`<`,`>`],Z(e)&&(e=e.slice(),s=!0);var c=t?e:s?[l(e[0]),l(e[1])]:l(e);return YS(o)?o.replace(`{value}`,s?c[0]:c).replace(`{value2}`,s?c[1]:c):JS(o)?s?o(e[0],e[1]):o(e):s?e[0]===a[0]?n[0]+` `+c[1]:e[1]===a[1]?n[1]+` `+c[0]:c[0]+` - `+c[1]:c;function l(e){return e===a[0]?`min`:e===a[1]?`max`:(+e).toFixed(Math.min(i,20))}},t.prototype.resetExtent=function(){var e=this.option,t=Rpe([e.min,e.max]);this._dataExtent=t},t.prototype.getDimension=function(e){var t=this,n=this.option.seriesTargets;if(n){var r=WS(n,function(n){return n.seriesIndex!=null&&n.seriesIndex===e||n.seriesId!=null&&n.seriesId===t.ecModel.getSeriesByIndex(e).id});if(r)return r.dimension}return this.option.dimension},t.prototype.getDataDimensionIndex=function(e){var t=e.hostModel.seriesIndex,n=this.getDimension(t);if(n!=null)return e.getDimensionIndex(n);for(var r=e.dimensions,i=r.length-1;i>=0;i--){var a=r[i],o=e.getDimensionInfo(a);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||={},i=t.controller||={};IS(r,n),IS(i,n);var a=this.isCategory();o.call(this,r),o.call(this,i),s.call(this,r,`inRange`,`outOfRange`),c.call(this,i);function o(n){Lpe(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get(`gradientColor`)}}function s(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},HQ(r,function(e,t){if(dq.isValidType(t)){var n=BQ.get(t,`inactive`,a);n!=null&&(i[t]=n,t===`color`&&!i.hasOwnProperty(`opacity`)&&!i.hasOwnProperty(`colorAlpha`)&&(i.opacity=[0,0]))}}))}function c(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get(`inactiveColor`),i=this.getItemSymbol()||`roundRect`;HQ(this.stateList,function(o){var s=this.itemSize,c=e[o];c||=e[o]={color:a?r:[r]},c.symbol??(c.symbol=t&&FS(t)||(a?i:[i])),c.symbolSize??(c.symbolSize=n&&FS(n)||(a?s[0]:[s[0],s[0]])),c.symbol=VQ(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;Ipe(l,function(e){e>u&&(u=e)}),c.symbolSize=VQ(l,function(e){return zpe(e,[0,u],[0,s[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get(`itemWidth`)),parseFloat(this.get(`itemHeight`))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type=`visualMap`,t.dependencies=[`series`],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:`vertical`,backgroundColor:Q.color.transparent,borderColor:Q.color.borderTint,contentColor:Q.color.theme[0],inactiveColor:Q.color.disabled,borderWidth:0,padding:Q.size.m,textGap:10,precision:0,textStyle:{color:Q.color.secondary}},t}(aI),WQ=[20,140],Bpe=function(e){gS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod=`linear`,e.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=WQ[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=WQ[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):Z(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),X(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=ik((this.get(`range`)||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]=n[1]||e<=t[1])?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},t.prototype.getVisualMeta=function(e){var t=GQ(this,`outOfRange`,this.getExtent()),n=GQ(this,`inRange`,this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,c=t.length;oe[1])break;r.push({color:this.getControllerVisual(o,`color`,t),offset:a/n})}return r.push({color:this.getControllerVisual(e[1],`color`,t),offset:1}),r},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get(`inverse`);return new vj(t===`horizontal`&&!n?{scaleX:e===`bottom`?1:-1,rotation:Math.PI/2}:t===`horizontal`&&n?{scaleX:e===`bottom`?-1:1,rotation:-Math.PI/2}:t===`vertical`&&!n?{scaleX:e===`left`?1:-1,scaleY:-1}:{scaleX:e===`left`?1:-1})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent(),c=this._applyTransform(`left`,n.mainGroup);Vpe([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=XQ(e[l],[0,o[1]],s,!0),f=this.getControllerVisual(d,`symbolSize`);u.scaleX=u.scaleY=f/o[0],u.x=o[0]-f/2;var p=xM(n.handleLabelPoints[l],bM(u,this.group));if(this._orient===`horizontal`){var m=c===`left`||c===`top`?(o[0]-f)/2:(o[0]-f)/-2;p[1]+=m}a[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:`middle`,align:this._orient===`vertical`?this._applyTransform(`left`,n.mainGroup):`center`})},this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],c=this._shapes,l=c.indicator;if(l){l.attr(`invisible`,!1);var u=this.getControllerVisual(e,`color`,{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,`symbolSize`),f=XQ(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=xM(c.indicatorLabelPoint,bM(l,this.group)),g=c.indicatorLabel;g.attr(`invisible`,!1);var _=this._applyTransform(`left`,c.mainGroup),v=this._orient===`horizontal`;g.setStyle({text:(n||``)+i.formatValueText(t),verticalAlign:v?_:`middle`,align:v?`center`:_});var y={x:p,y:f,style:{fill:u}},b={style:{x:h[0],y:h[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:`cubicInOut`,additive:!0};l.x=m.x,l.y=m.y,l.animateTo(y,x),g.animateTo(b,x)}else l.attr(y),g.attr(b);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;Ci[1]&&(l[1]=1/0),t&&(l[0]===-1/0?this._showIndicator(c,l[1],`< `,o):l[1]===1/0?this._showIndicator(c,l[0],`> `,o):this._showIndicator(c,c,`≈ `,o));var u=this._hoverLinkDataIndices,d=[];(t||e$(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=fae(u,d);this._dispatchHighDown(`downplay`,YQ(f[0],n)),this._dispatchHighDown(`highlight`,YQ(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(oU(e.target,function(e){var n=nA(e);if(n.dataIndex!=null)return t=n,!0},!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr(`invisible`,!0),e.indicatorLabel&&e.indicatorLabel.attr(`invisible`,!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function Ype(e,t,n,r){for(var i=t.targetVisuals[r],a=dq.prepareVisualTypes(i),o={color:aU(e.getData(),`color`)},s=0,c=a.length;s0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(Kpe,qpe),X(Jpe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(Xpe))}function Zpe(e){e.registerComponentModel(Bpe),e.registerComponentView(Wpe),a$(e)}var Qpe=function(e){gS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],$pe[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(e,t){r===`categories`?(e.mappingMethod=`category`,e.categories=FS(i)):(e.dataExtent=this.getExtent(),e.mappingMethod=`piecewise`,e.pieceList=VS(this._pieceList,function(e){return e=FS(e),t!==`inRange`&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=dq.listVisualTypes(),i=this.isCategory();X(t.pieces,function(e){X(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),X(n,function(e,n){var r=!1;X(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&X(this.stateList,function(e){(t[e]||(t[e]={}))[n]=BQ.get(n,e===`inRange`?`active`:`inactive`,i)})},this);function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,X(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),n.selectedMode===`single`){var a=!1;X(r,function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get(`itemSymbol`)},t.prototype.getSelectedMapKey=function(e){return this._mode===`categories`?e.value+``:e.index+``},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?`pieces`:this.option.categories?`categories`:`splitNumber`},t.prototype.setSelected=function(e){this.option.selected=FS(e)},t.prototype.getValueState=function(e){var t=dq.findPieceIndex(e,this._pieceList);return t==null?`outOfRange`:this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries(function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(t,r){dq.findPieceIndex(t,n)===e&&i.push(r)},this),t.push({seriesId:r.id,dataIndex:i})},this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(e.value!=null)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var t=[],n=[``,``],r=this;function i(i,a){var o=r.getRepresentValue({interval:i});a||=r.getValueState(o);var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}var a=this._pieceList.slice();if(!a.length)a.push({interval:[-1/0,1/0]});else{var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),o=a[a.length-1].interval[1],o!==1/0&&a.push({interval:[o,1/0]})}var s=-1/0;return X(a,function(e){var t=e.interval;t&&(t[0]>s&&i([s,t[0]],`outOfRange`),i(t.slice()),s=t[1])},this),{stops:t,outerColors:n}},t.type=`visualMap.piecewise`,t.defaultOption=AP(UQ.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:`auto`,itemWidth:20,itemHeight:14,itemSymbol:`roundRect`,pieces:null,categories:null,splitNumber:5,selectedMode:`multiple`,itemGap:10,hoverLink:!0}),t}(UQ),$pe={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o`,`≥`][t[0]]];e.text=e.text||this.formatValueText(e.value==null?e.interval:e.value,!1,n)},this)}};function o$(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}var eme=function(e){gS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get(`textGap`),r=t.textStyleModel,i=this._getItemAlign(),a=t.itemSize,o=this._getViewData(),s=o.endsText,c=iC(t.get(`showLabel`,!0),!s),l=!t.get(`selectedMode`);s&&this._renderEndsText(e,s[0],a,c,i),X(o.viewPieceList,function(o){var s=o.piece,u=new vj;u.onclick=KS(this._onItemClick,this,s),this._enableHoverLink(u,o.indexInModelPieceList);var d=t.getRepresentValue(s);if(this._createItemSymbol(u,d,[0,0,a[0],a[1]],l),c){var f=this.visualMapModel.getValueState(d),p=r.get(`align`)||i;u.add(new jO({style:ZM(r,{x:p===`right`?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:r.get(`verticalAlign`)||`middle`,align:p,opacity:aC(r.get(`opacity`),f===`outOfRange`?.5:1)}),silent:l}))}e.add(u)},this),s&&this._renderEndsText(e,s[1],a,c,i),QF(t.get(`orient`),e,t.get(`itemGap`)),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on(`mouseover`,function(){return r(`highlight`)}).on(`mouseout`,function(){return r(`downplay`)});var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:YQ(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return JQ(e,this.api,e.itemSize);var n=t.align;return n&&n!==`auto`||(n=`left`),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new vj,o=this.visualMapModel.textStyleModel;a.add(new jO({style:ZM(o,{x:r?i===`right`?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:`middle`,align:r?i:`center`,text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=VS(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get(`text`),r=e.get(`orient`),i=e.get(`inverse`);return(r===`horizontal`?i:!i)?t.reverse():n&&=n.slice().reverse(),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var i=zI(this.getControllerVisual(t,`symbol`),n[0],n[1],n[2],n[3],this.getControllerVisual(t,`color`));i.silent=r,e.add(i)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=FS(n.selected),a=t.getSelectedMapKey(e);r===`single`||r===!0?(i[a]=!0,X(i,function(e,t){i[t]=t===a})):i[a]=!i[a],this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type=`visualMap.piecewise`,t}(KQ);function tme(e){e.registerComponentModel(Qpe),e.registerComponentView(eme),a$(e)}function nme(e){JW(Zpe),JW(tme)}var rme={label:{enabled:!0},decal:{show:!1}},s$=Ik(),c$=Ik(),ime=tA(ame);function ame(e,t){var n=e.getModel(`aria`);if(!n.get(`enabled`))return;var r=c$(e).scope||(c$(e).scope={}),i=FS(rme);IS(i.label,e.getLocaleModel().get(`aria`),!1),IS(n.option,i,!1),a(),o();function a(){if(n.getModel(`decal`).get(`show`)){var t=hC();e.eachSeries(function(e){e.isColorBySeries()||(s$(e).scope=t.get(e.type)||t.set(e.type,{}))}),e.eachSeries(function(t){if(JS(t.enableAriaDecal)){t.enableAriaDecal();return}var n=t.getData();if(t.isColorBySeries()){var i=cI(t.ecModel,t.name,r,e.getSeriesCount()),a=n.getVisual(`decal`);n.setVisual(`decal`,u(a,i))}else{var o=t.getRawData(),s={},c=s$(t).scope;n.each(function(e){var t=n.getRawIndex(e);s[t]=e});var l=o.count();o.each(function(e){var r=s[e],i=o.getName(e)||e+``,a=cI(t.ecModel,i,c,l),d=n.getItemVisual(r,`decal`);n.setItemVisual(r,`decal`,u(d,a))})}function u(e,t){var n=e?Y(Y({},t),e):t;return n.dirty=!0,n}})}}function o(){var r=t.getZr().dom;if(r){var i=e.getLocaleModel().get(`aria`),a=n.getModel(`label`);if(a.option=LS(a.option,i),a.get(`enabled`)){if(r.setAttribute(`role`,`img`),a.get(`description`))r.setAttribute(`aria-label`,a.get(`description`));else{var o=e.getSeriesCount(),u=a.get([`data`,`maxCount`])||10,d=a.get([`series`,`maxCount`])||10,f=Math.min(o,d),p;if(!(o<1)){var m=c();p=m?s(a.get([`general`,`withTitle`]),{title:m}):a.get([`general`,`withoutTitle`]);var h=[],g=o>1?a.get([`series`,`multiple`,`prefix`]):a.get([`series`,`single`,`prefix`]);p+=s(g,{seriesCount:o}),e.eachSeries(function(e,t){if(t1?a.get([`series`,`multiple`,r]):a.get([`series`,`single`,r]),n=s(n,{seriesId:e.seriesIndex,seriesName:e.get(`name`),seriesType:l(e.subType)});var i=e.getData();if(i.count()>u){var c=a.get([`data`,`partialData`]);n+=s(c,{displayCnt:u})}else n+=a.get([`data`,`allData`]);for(var d=a.get([`data`,`separator`,`middle`]),p=a.get([`data`,`separator`,`end`]),m=a.get([`data`,`excludeDimensionId`]),g=[],_=0;_=f$:-c>=f$),f=c>0?c%f$:c%f$+f$,p=!1;p=d?!0:!hE(u)&&f>=d$==!!l;var m=e+n*u$(a),h=t+r*l$(a);this._start&&this._add(`M`,m,h);var g=Math.round(i*cme);if(d){var _=1/this._p,v=(l?1:-1)*(f$-_);this._add(`A`,n,r,g,1,+l,e+n*u$(a+v),t+r*l$(a+v)),_>.01&&this._add(`A`,n,r,g,0,+l,m,h)}else{var y=e+n*u$(o),b=t+r*l$(o);this._add(`A`,n,r,g,+p,+l,y,b)}},e.prototype.rect=function(e,t,n,r){this._add(`M`,e,t),this._add(`l`,n,0),this._add(`l`,0,r),this._add(`l`,-n,0),this._add(`Z`)},e.prototype.closePath=function(){this._d.length>0&&this._add(`Z`)},e.prototype._add=function(e,t,n,r,i,a,o,s,c){for(var l=[],u=this._p,d=1;d`}function vme(e){return``}function b$(e,t){t||={};var n=t.newline?` +`:``;function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return _me(i,a)+(i===`style`?o||``:WP(o))+(t?``+n+VS(t,function(e){return r(e)}).join(n)+n:``)+vme(i)}return r(e)}function yme(e,t,n){n||={};var r=n.newline?` +`:``,i=` {`+r,a=r+`}`,o=VS(GS(e),function(t){return t+i+VS(GS(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=VS(GS(t),function(e){return`@keyframes `+e+i+VS(GS(t[e]),function(n){return n+i+VS(GS(t[e][n]),function(r){var i=t[e][n][r];return r===`d`&&(i=`path("`+i+`")`),r+`:`+i+`;`}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?``:[``].join(r)}function x$(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function S$(e,t,n,r){return y$(`svg`,`root`,{width:e,height:t,xmlns:g$,"xmlns:xlink":_$,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var bme=0;function C$(){return bme++}var w$={cubicIn:`0.32,0,0.67,0`,cubicOut:`0.33,1,0.68,1`,cubicInOut:`0.65,0,0.35,1`,quadraticIn:`0.11,0,0.5,0`,quadraticOut:`0.5,1,0.89,1`,quadraticInOut:`0.45,0,0.55,1`,quarticIn:`0.5,0,0.75,0`,quarticOut:`0.25,1,0.5,1`,quarticInOut:`0.76,0,0.24,1`,quinticIn:`0.64,0,0.78,0`,quinticOut:`0.22,1,0.36,1`,quinticInOut:`0.83,0,0.17,1`,sinusoidalIn:`0.12,0,0.39,0`,sinusoidalOut:`0.61,1,0.88,1`,sinusoidalInOut:`0.37,0,0.63,1`,exponentialIn:`0.7,0,0.84,0`,exponentialOut:`0.16,1,0.3,1`,exponentialInOut:`0.87,0,0.13,1`,circularIn:`0.55,0,1,0.45`,circularOut:`0,0.55,0.45,1`,circularInOut:`0.85,0,0.15,1`},T$=`transform-origin`;function xme(e,t,n){var r=Y({},e.shape);Y(r,t),e.buildPath(n,r);var i=new p$;return i.reset(AE(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function Sme(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[T$]=n+`px `+r+`px`)}var Cme={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function E$(e,t){var n=t.zrId+`-ani-`+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function wme(e,t,n){var r=e.shape.paths,i={},a,o;if(X(r,function(e){var t=x$(n.zrId);t.animation=!0,O$(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=GS(r),l=c.length;if(l){o=c[l-1];var u=r[o];for(var d in u){var f=u[d];i[d]=i[d]||{d:``},i[d].d+=f.d||``}for(var p in s){var m=s[p].animation;m.indexOf(o)>=0&&(a=m)}}}),a){t.d=!1;var s=E$(i,n);return a.replace(o,s)}}function D$(e){return YS(e)?w$[e]?`cubic-bezier(`+w$[e]+`)`:VT(e)?e:``:``}function O$(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof Hj){var s=wme(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var c={},l=0;l0}).length)return E$(l,n)+` `+i[0]+` both`}for(var g in c){var s=h(c[g]);s&&o.push(s)}if(o.length){var _=n.zrId+`-cls-`+C$();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function Tme(e,t,n){if(!e.ignore){if(e.isSilent()){var r={"pointer-events":`none`};k$(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,c=e.currentStates.indexOf(`select`)>=0&&s||o;c&&(a=dE(c))}var l=i.lineWidth;if(l){var u=!i.strokeNoScale&&e.transform?e.transform[0]:1;l/=u}var r={cursor:`pointer`};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),l&&(r[`stroke-width`]=l),k$(r,t,n,!0)}}}function k$(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+C$(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var A$=Math.round;function j$(e){return e&&YS(e.src)}function M$(e){return e&&JS(e.toDataURL)}function N$(e,t,n,r){pme(function(i,a){var o=i===`fill`||i===`stroke`;o&&OE(a)?V$(t,e,i,r):o&&TE(a)?H$(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),Mme(n,e,r)}function P$(e,t){var n=wue(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[gme+`silent`]=`true`))}function F$(e){return hE(e[0]-1)&&hE(e[1])&&hE(e[2])&&hE(e[3]-1)}function Eme(e){return hE(e[4])&&hE(e[5])}function I$(e,t,n){if(t&&!(Eme(t)&&F$(t))){var r=n?10:1e4;e.transform=F$(t)?`translate(`+A$(t[4]*r)/r+` `+A$(t[5]*r)/r+`)`:vE(t)}}function L$(e,t,n){for(var r=e.points,i=[],a=0;a`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;lC(f,g),lC(p,g)}else if(f==null||p==null){var _=function(e,t){if(e){var n=e.elm,r=f||t.width,i=p||t.height;e.tag===`pattern`&&(l?(i=1,r/=a.width):u&&(r=1,i/=a.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute(`width`,r),n.setAttribute(`height`,i))}},v=JC(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=y$(`image`,`img`,{href:m,width:f,height:p}),o.width=f,o.height=p}else i.svgElement&&(d=FS(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(d){var y,b;c?y=b=1:l?(b=1,y=o.width/a.width):u?(y=1,b=o.height/a.height):o.patternUnits=`userSpaceOnUse`,y!=null&&!isNaN(y)&&(o.width=y),b!=null&&!isNaN(b)&&(o.height=b);var x=jE(i);x&&(o.patternTransform=x);var S=y$(`pattern`,``,o,[d]),C=b$(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=y$(`pattern`,T,o,[d])),t[n]=kE(T)}}function Nme(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){a=n.zrId+`-c`+n.clipPathIdx++;var o={id:a};r[e.id]=a,i[a]=y$(`clipPath`,a,o,[z$(e,n)])}t[`clip-path`]=kE(a)}function U$(e){return document.createTextNode(e)}function W$(e,t,n){e.insertBefore(t,n)}function G$(e,t){e.removeChild(t)}function K$(e,t){e.appendChild(t)}function q$(e){return e.parentNode}function J$(e){return e.nextSibling}function Y$(e,t){e.textContent=t}var X$=58,Pme=120,Fme=y$(``,``);function Z$(e){return e===void 0}function Q$(e){return e!==void 0}function Ime(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;a!==void 0&&(r[a]=i)}return r}function $$(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function e1(e){var t,n=e.children,r=e.tag;if(Q$(r)){var i=e.elm=v$(r);if(r1(Fme,e),Z(n))for(t=0;ta?(m=n[c+1]==null?null:n[c+1].elm,t1(e,m,n,i,c)):n1(e,t,r,a))}function i1(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(r1(e,t),Z$(t.text)?Q$(r)&&Q$(i)?r!==i&&Lme(n,r,i):Q$(i)?(Q$(e.text)&&Y$(n,``),t1(n,null,i,0,i.length-1)):Q$(r)?n1(n,r,0,r.length-1):Q$(e.text)&&Y$(n,``):e.text!==t.text&&(Q$(r)&&n1(n,r,0,r.length-1),Y$(n,t.text)))}function Rme(e,t){if($$(e,t))i1(e,t);else{var n=e.elm,r=q$(n);e1(t),r!==null&&(W$(r,t.elm,J$(n)),n1(r,[e],0,0))}return t}var zme=0,Bme=function(){function e(e,t,n){if(this.type=`svg`,this.configLayer=Vme(`configLayer`),this.storage=t,this._opts=n=Y({},n),this.root=e,this._id=`zr`+zme++,this._oldVNode=S$(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement(`div`);r.style.cssText=`position:relative;overflow:hidden`;var i=this._svgDom=this._oldVNode.elm=v$(`svg`);r1(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=`position:absolute;left:0;top:0;user-select:none`,Rme(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return B$(e,x$(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=x$(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=Hme(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=y$(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=VS(GS(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(y$(`defs`,`defs`,{},c)),e.animation){var l=yme(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=y$(`style`,`stl`,{},[],l);a.push(u)}}return S$(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},b$(this.renderToVNode({animation:aC(e.cssAnimation,!0),emphasis:aC(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:aC(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r=e.length,i=[],a=0,o,s,c=0,l=0;l=0&&!(d&&s&&d[m]===s[m]);m--);for(var h=p-1;h>m;h--)a--,o=i[a-1];for(var g=m+1;g=a}}}for(var l=s1(this),u=l.startIdx;u=0)&&(a=!0)}),a||i.__dirty){var o=n._opts.useDirtyRect&&!o1(i)?i.createRepaintRects(e,t,n._width,n._height):null,s=n._i.layerStack[0],c=!0;if(i.__dirty){c=!1,i.__dirty=!1;var l=i.zlevel===s.zl&&i.zlevel2===s.zl2?n._backgroundColor:null;i.clear(!1,l,o)}h1(i,function(t){var a=n._paintPerCursor(i,t,e,o,c);r&&=a})}},x1),SC.wxa&&_1(this._i,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),r},e.prototype._paintPerCursor=function(e,t,n,r,i){var a=e.ctx;if(r){if(!r.length)t.drawIdx=t.endIdx;else for(var o=this.dpr,s=0;s=t.endIdx},e.prototype._paintPerCursorInRect=function(e,t,n,r,i){for(var a={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},o=e.ctx,s=o1(e),c=s&&CS.getTime(),l=t.drawIdx,u=t.notClearIdx,d=u>=0?Math.min(u,l):l;d15){d++;break}}}NU(o,a),t.drawIdx=Math.max(d,l)},e.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},e.prototype._ensureLayer=function(e,t,n){t||=0;var r=this._singleCanvas;r&&!this._needsManuallyCompositing&&(e=u1,t=0);var i=g1(this._i,e)[t];return i||(i=p1(`zr_`+e+`.`+t,this,e,t),this._layerConfig[e]&&IS(i,this._layerConfig[e],!0),(n||r&&e!==u1)&&(i.virtual=!0),this._insertLayer(i,e,t,!1),i.initContext()),i},e.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},e.prototype._insertLayer=function(e,t,n,r){var i=this._i,a=i.layers,o=i.layerStack,s=this._domRoot,c=null;if(!(a[t]&&a[t][n])&&Gme(e)){for(var l=o.length,u=0;u0&&(c=g1(i,o[u-1].zl)[o[u-1].zl2]),o.splice(u,0,{zl:t,zl2:n}),g1(i,t)[n]=e,!r&&!e.virtual){if(c){var d=c.dom;d.nextSibling?s.insertBefore(e.dom,d.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom)}e.painter||=this}},e.prototype.eachLayer=function(e,t){return _1(this._i,function(n,r){e.call(t,n,r)})},e.prototype.eachBuiltinLayer=function(e,t){return _1(this._i,function(n,r){e.call(t,n,r)},v1)},e.prototype.eachOtherLayer=function(e,t){return _1(this._i,function(n,r){e.call(t,n,r)},y1)},e.prototype.getLayers=function(){var e={};return _1(this._i,function(t,n,r){e[t.id]=t}),e},e.prototype._updateLayerStatus=function(e,t){var n=this;if(n._singleCanvas)for(var r=1;r=0;a--){var o=i.get(r[a]);if(!o.used)t.__dirty=!0,i.removeKey(r[a]),r.splice(a,1);else{var s=o.endIdxNew;(o1(t)?s=0;r--){var i=t[r];if(i.zl===e){var a=n[e][i.zl2];if(a.__builtin__)continue;if(t.splice(r,1),n[e][i.zl2]=void 0,!a.virtual){var o=a.dom.parentNode;o&&o.removeChild(a.dom)}}}},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display=`none`;var r=this._opts,i=this.root;e!=null&&(r.width=e),t!=null&&(r.height=t),e=pU(i,0,r),t=pU(i,1,r),n.style.display=``,(this._width!==e||t!==this._height)&&(n.style.width=e+`px`,n.style.height=t+`px`,_1(this._i,function(n){n.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer(u1).resize(e,t)}return this},e.prototype.clearLayer=function(e){X(this._i.layers[e],function(e){e&&!e.__builtin__&&e.clear()})},e.prototype.dispose=function(){this.root.innerHTML=``,this.root=this.storage=this._domRoot=this._i=null},e.prototype.getRenderedCanvas=function(e){if(e||={},this._singleCanvas&&!this._compositeManually)return this._i.layers[u1][0].dom;var t=new c1(`image`,this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;_1(this._i,function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else{for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o=this.storage.getDisplayList(!0),s=0,c=o.length;s=1024&&t=10||t===0?C1.format(e):Zme.format(e)} ${S1[t]}`}function T1(e){let t=Math.round(e/1e3);if(t<60)return`${t}s`;let n=Math.round(t/60);if(n<60)return`${n}m`;let r=Math.floor(n/60);return r<24?`${r}h ${n%60}m`:`${Math.floor(r/24)}d ${r%24}h`}function E1(e,t=Date.now()){let n=Date.parse(e);return Number.isNaN(n)?`–`:`${T1(Math.max(0,t-n))} ago`}function D1(e){let t=Date.parse(e);return Number.isNaN(t)?e:`${the.format(t)} UTC`}function O1(e,t){switch(t){case`bytes`:return w1(e);case`duration`:return T1(e);case`percent`:return`${C1.format(e)}%`;case`usd`:return e<10?$me.format(e):ehe.format(e);default:return Number.isInteger(e)?C1.format(e):Qme.format(e)}}function k1(e,t){return e==null||e===``?`–`:t.type===`number`&&typeof e==`number`?O1(e,t.unit):t.type===`time`&&typeof e==`string`?E1(e):t.type===`bool`?e?`yes`:`no`:String(e)}function A1(e,t){return`${C1.format(e)} ${t}${e===1?``:t.endsWith(`s`)?`es`:`s`}`}function j1(e){let t=e.replace(/_bytes$|_at$/,``).replaceAll(`_`,` `);return t.charAt(0).toUpperCase()+t.slice(1)}JW([qle,XR,kJ,IJ,oX,Wfe,Xfe,npe,tZ,Pfe,Ppe,ppe,nme,sme,Xme,Ume]);function nhe(e){let t=By[e],n=Vy[e];return{scheme:e,text:t.text,muted:t.muted,line:t.controlBorder,grid:t.borderSoft,surface:t.raised,inset:t.inset,border:t.border,brand:n.brand,series:Hy[e],states:{working:n.success,waiting:n.warning,stuck:n.danger,idle:n.info,finished:t.controlBorder}}}function M1(e,t){return e.series[t]??e.muted}function N1(e){return e.replace(/[&<>"']/g,e=>({"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`})[e])}var P1=e=>({color:e.muted,fontFamily:Wy.mono,fontSize:Uy.micro});function F1(e,t={}){return{confine:!0,backgroundColor:e.inset,borderColor:e.border,borderWidth:1,borderRadius:6,padding:[6,10],textStyle:{color:e.text,fontSize:Uy.small,fontFamily:Wy.sans},extraCssText:`box-shadow: none;`,...t}}function I1(e,t,n){return`
${N1(t)}${N1(n)}
`}function L1(e,t){if(t.viz===`bar`){let t=e.columns[1]?.unit,n=e.rows.map(e=>({name:String(e[0]??`–`)||`–`,n:Number(e[1]??0)}));if(!n.length)return``;let r=n.reduce((e,t)=>t.n>e.n?t:e),i=n.reduce((e,t)=>e+t.n,0);return`${r.name} most, ${O1(r.n,t)} of ${O1(i,t)}`}if(t.viz!==`timeseries`)return``;let n=e.columns[2]?.unit,r=new Map,i=-1/0;for(let t of e.rows)typeof t[2]==`number`&&(r.set(String(t[1]??``),t[2]),i=Math.max(i,t[2]));if(!r.size)return``;if(r.size===1)return`${O1([...r.values()][0],n)} now, peak ${O1(i,n)}`;let[a,o]=[...r.entries()].reduce((e,t)=>t[1]>e[1]?t:e);return`${a} highest now at ${O1(o,n)}`}function rhe(e,t){let n=new Map;for(let t of e.rows){let e=Date.parse(String(t[0])),r=typeof t[2]==`number`?t[2]:null;if(Number.isNaN(e)||r===null)continue;let i=String(t[1]??``);n.has(i)||n.set(i,[]),n.get(i).push([e,r])}return[...n.entries()].map(([e,n])=>({name:e||j1(t.measure??`value`),points:n}))}function ihe(e,t,n,r,i=`hour`){let a=r??n.brand,o=e.map((e,t)=>[t,e]);return{animation:!1,aria:{enabled:!0,label:{description:`${t} over the last ${i}`}},grid:{left:1,right:3,top:3,bottom:3},xAxis:{type:`value`,show:!1,min:0,max:Math.max(1,e.length-1)},yAxis:{type:`value`,show:!1,scale:!0},series:[{type:`line`,data:o,showSymbol:!1,connectNulls:!1,smooth:.3,silent:!0,lineStyle:{width:1.5,color:a},areaStyle:{color:{type:`linear`,x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:En(a,.32)},{offset:1,color:En(a,0)}]}},markPoint:{symbol:`circle`,symbolSize:4,silent:!0,label:{show:!1},itemStyle:{color:a},data:ahe(o)}}]}}function ahe(e){for(let t=e.length-1;t>=0;t--)if(e[t][1]!==null)return[{coord:e[t]}];return[]}function ohe(e,t){return{animation:!1,textStyle:{color:t.text,fontFamily:Wy.sans,fontSize:Uy.small},aria:{enabled:!0,label:{description:e.description}},tooltip:F1(t,{trigger:`item`,formatter:e=>e.data?.tip??``}),series:[{type:`sankey`,left:e.left??100,right:e.right??350,top:8,bottom:8,nodeWidth:12,nodeGap:12,nodeAlign:`justify`,layoutIterations:0,draggable:!1,lineStyle:{color:`gradient`,opacity:.22,curveness:.5},emphasis:{focus:`adjacency`,lineStyle:{opacity:.5}},label:{fontFamily:Wy.mono,fontSize:Uy.small,color:t.text,width:e.labelWidth??340,overflow:`truncate`,formatter:e=>e.data?.text??``,rich:e.rich},data:e.nodes,links:e.links}]}}function she(e,t){if(e!==`bytes`||!(t>0))return{};for(let e=1;e<=1024**5;e*=1024)for(let n of[1,2,4,8,16,32,64,128,256,512]){let r=n*e;if(t/r<=5)return{interval:r,max:Math.ceil(t/r)*r}}return{}}var che=[`click`];function R1({option:e,label:t,height:n,small:r,onEvent:i}){let a=Jn(`dark`),o=(0,h.useRef)(null),s=(0,h.useRef)(null),c=(0,h.useRef)(i);return c.current=i,(0,h.useEffect)(()=>{if(!o.current)return;let e=Qde(o.current,void 0,{renderer:r?`svg`:`canvas`});s.current=e;for(let t of che)e.on(t,e=>c.current?.(t,e));let t=new ResizeObserver(()=>e.resize());return t.observe(o.current),()=>{t.disconnect(),e.dispose(),s.current=null}},[r]),(0,h.useEffect)(()=>{s.current?.setOption(e(nhe(a)),{notMerge:!0})},[e,a,r]),(0,U.jsx)(`div`,{ref:o,role:`img`,"aria-label":t,style:{height:n??`100%`,width:`100%`,minHeight:r?0:80}})}var z1={axisLine:{show:!1},axisTick:{show:!1}},B1=e=>new Date(e).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`});function lhe(e,t,n){return typeof e.color==`number`?M1(n,e.color):e.color===`brand`?n.brand:e.color===void 0?t===0?n.brand:M1(n,t):n.states[e.color]}function uhe(e,t){let{series:n,from:r,to:i,format:a,waits:o=[],events:s=[],peak:c=!0}=e,l=n.length>1,u=n.reduce((e,t)=>t.points.reduce((e,t)=>Math.max(e,t[1]),e),0),d=n[0],f=e=>{if(!d?.points.length)return 0;let t=d.points[0];for(let n of d.points)Math.abs(n[0]-e)e.length?[`
${N1(B1(e[0].value[0]))}
`,...e.map(e=>I1(e.color,e.seriesName,a(e.value[1])))].join(``):``}),xAxis:{type:`time`,min:r,max:i,...z1,axisLabel:{...P1(t),hideOverlap:!0,formatter:e=>B1(e)},splitLine:{show:!1}},yAxis:{type:`value`,...she(e.unit,u),...z1,axisLabel:{...P1(t),formatter:e=>a(e)},splitLine:{lineStyle:{color:t.grid}}},series:n.map((e,n)=>{let r=lhe(e,n,t);return{type:`line`,name:e.name,data:e.points,showSymbol:!1,smooth:!1,sampling:`lttb`,lineStyle:{width:1.5,color:r},itemStyle:{color:r},areaStyle:n===0?{color:{type:`linear`,x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:En(r,.28)},{offset:1,color:En(r,0)}]}}:void 0,emphasis:{disabled:!0},markLine:n===0&&c&&e.points.length?{silent:!0,symbol:`none`,lineStyle:{color:t.muted,type:`dashed`,width:1},label:{formatter:`peak ${a(u)}`,position:`insideStartTop`,fontFamily:Wy.mono,fontSize:Uy.micro,color:t.muted},data:[{type:`max`,name:`peak`}]}:void 0,markArea:n===0&&o.length?{silent:!0,itemStyle:{color:En(t.states.waiting,.1)},label:{show:!0,position:`insideBottom`,fontFamily:Wy.mono,fontSize:Uy.micro,color:t.muted},data:o.map(e=>[{name:e.label,xAxis:e.from},{xAxis:e.to}])}:void 0,markPoint:n===0&&s.length?{symbol:`circle`,symbolSize:8,itemStyle:{color:t.brand,borderColor:t.surface,borderWidth:2},label:{show:!0,position:`top`,formatter:`{b}`,fontFamily:Wy.mono,fontSize:Uy.micro,color:t.text,backgroundColor:t.inset,borderColor:t.border,borderWidth:1,padding:[2,5],borderRadius:3},data:s.map(e=>({name:e.label,coord:[e.at,f(e.at)]}))}:void 0}})}}function dhe(e,t){let{rows:n,cols:r,values:i,format:a,unit:o}=e,s=i.flatMap((e,t)=>e.map((e,n)=>[n,t,e])),c=s.reduce((e,t)=>Math.max(e,t[2]),1);return{animation:!1,aria:{enabled:!0,label:{description:e.label}},tooltip:F1(t,{trigger:`item`,formatter:e=>`${N1(n[e.value[1]])} · ${N1(r[e.value[0]])}
${N1(a(e.value[2]))} ${N1(o)}`}),grid:{left:4,right:4,top:4,bottom:4},xAxis:{type:`category`,data:r,...z1,axisLabel:{...P1(t),interval:2},splitLine:{show:!1}},yAxis:{type:`category`,data:n,inverse:!0,...z1,axisLabel:{...P1(t),fontSize:Uy.small,color:t.text},splitLine:{show:!1}},visualMap:{show:!1,min:0,max:c,inRange:{color:[En(t.brand,.08),En(t.brand,.45),t.brand]}},series:[{type:`heatmap`,data:s,itemStyle:{borderColor:t.surface,borderWidth:2,borderRadius:2},emphasis:{itemStyle:{borderColor:t.text}}}]}}function fhe(e,t){let{lanes:n,from:r,to:i,now:a}=e,o=n.flatMap((e,n)=>e.segments.map(r=>({value:[n,r.from,r.to,r.state],name:e.name,itemStyle:{color:t.states[r.state]}}))),s=(e,n)=>{let r=n.value(0),i=n.coord([n.value(1),r]),a=n.coord([n.value(2),r]),o=n.size([0,1])[1]*.5,s=e.coordSys,c=TM({x:i[0],y:i[1]-o/2,width:Math.max(2,a[0]-i[0]),height:o},s);return c?{type:`rect`,shape:{...c,r:2},style:{fill:t.states[n.value(3)]},transition:[]}:null},c=e=>i-e<(i-r)*.06;return{animation:!1,aria:{enabled:!0,label:{description:e.label}},tooltip:F1(t,{trigger:`item`,formatter:e=>I1(e.color,e.name,`${e.value[3]} · ${T1(e.value[2]-e.value[1])}`)}),grid:{left:4,right:36,top:6,bottom:4},xAxis:{type:`time`,min:r,max:i,...z1,axisLabel:{...P1(t),hideOverlap:!0,showMaxLabel:!1,formatter:e=>c(e)?``:B1(e)},splitLine:{lineStyle:{color:t.grid}}},yAxis:{type:`category`,data:n.map(e=>e.name),inverse:!0,...z1,axisLabel:{...P1(t),fontSize:Uy.small,color:t.text,width:150,overflow:`truncate`},splitLine:{show:!1}},series:[{type:`custom`,renderItem:s,encode:{x:[1,2],y:0},data:o,markLine:{silent:!0,symbol:`none`,lineStyle:{color:t.text,width:1},label:{formatter:`now`,position:`end`,fontFamily:Wy.mono,fontSize:Uy.micro,color:t.muted},data:[{xAxis:a}]}}]}}var phe=[8,30,55,80,100];function mhe({rows:e,cols:t,values:n,format:r,unit:i,label:a,rowHeight:o=22}){let s=(0,h.useCallback)(o=>dhe({rows:e,cols:t,values:n,format:r,unit:i,label:a},o),[e,t,n,r,i,a]);return(0,U.jsxs)(i_,{gap:4,children:[(0,U.jsx)(R1,{option:s,label:a,height:e.length*o+32}),(0,U.jsxs)(q,{justify:`flex-end`,gap:6,"aria-hidden":!0,children:[(0,U.jsx)(J,{size:`xs`,c:`dimmed`,lh:1,children:`fewer`}),phe.map(e=>(0,U.jsx)(K,{w:12,h:10,style:{borderRadius:2,background:`color-mix(in srgb, var(--mantine-color-brand-filled) ${e}%, var(--driga-raised))`}},e)),(0,U.jsxs)(J,{size:`xs`,c:`dimmed`,lh:1,children:[`more `,i]})]})]})}var hhe={icon:vv,direction:`neutral`},ghe={"summary:sum:need_you":{icon:ty,attention:`waiting`,target:`inbox`,direction:`down-good`},"summary:sum:to_review":{icon:Vv,attention:`review`,target:`inbox`,direction:`neutral`},"summary:sum:attention_stuck":{icon:ay,attention:`stuck`,target:`stuck`,direction:`down-good`},"summary:sum:leftover_bytes":{icon:Qte,target:`leftover`,direction:`down-good`,countNouns:{leftover:[`tree`,`trees`]}},"cleanup:sum:size_bytes":{icon:dv,target:`reclaim`,direction:`down-good`},"local_activity:max:mem_used_bytes":{icon:hy,target:`memory`,direction:`down-good`,sublabel:`local-machine`},"local_activity:max:cpu_percent":{icon:jv,direction:`down-good`,sublabel:`local-machine`},"local_activity:max:disk_used_bytes":{icon:ry,direction:`down-good`,sublabel:`local-machine`},"local_activity:max:load1":{icon:qv,direction:`down-good`,sublabel:`local-machine`},"local_activity:max:swap_used_bytes":{icon:hy,direction:`down-good`,sublabel:`local-machine`},"local_activity:max:events":{icon:vv,direction:`neutral`,sublabel:`local-machine`},"summary:sum:machines_reachable":{icon:Ty,direction:`up-good`}};function V1(e){return ghe[`${e.source}:${e.measure??`count`}`]??hhe}function _he(e,t){let n=e.caption?.split(`:`).at(-1),r=n?V1(e).countNouns?.[n]:void 0;return`${O1(t)}${r?` ${r[t===1?0:1]}`:``}`}var H1=[`waiting`,`stuck`,`working`,`idle`,`finished`],U1=[`working`,`waiting`,`stuck`,`idle`],W1={working:`working`,waiting:`waiting`,stuck:`stuck`,idle:`idle`,finished:`finished`},G1={claude:`Claude Code`,codex:`Codex`,gemini:`Gemini`,copilot:`Copilot`,agy:`agy`};function K1(e){return e&&Object.hasOwn(G1,e)?e:void 0}function q1(e){let t=K1(e);return t?G1[t]:e??``}var J1=[`waiting`,`review`,`stuck`],Y1={waiting:{label:`Need you`,tone:`warning`,icon:ty,key:`1`,hint:`Filter the inbox to what needs you`,target:`inbox`},review:{label:`To review`,tone:`info`,icon:Vv,key:`2`,hint:`Filter the inbox to what finished`,target:`inbox`},stuck:{label:`Stuck`,tone:`danger`,icon:ay,key:`3`,hint:`Show the stuck sessions on Home`,target:`stuck`}},X1=[`stuck`,`waiting`,`working`,`idle`];function Z1(e){return X1.find(t=>e.sessions[t]>0)??null}function Q1(e,t){return t>0?Math.round(e/t*100):0}function vhe(e,t){let n=X1.filter(t=>e.sessions[t]>0).map(t=>`${e.sessions[t]} ${t}`),r=e.reachable?n.length?n:[`no sessions`]:[`unreachable`];return[...e.local?[`this machine`]:[],...r,`seen ${E1(e.seenAt,t)}`].join(` · `)}function yhe(e,t){return[e.name,vhe(e,t),`${w1(e.memory.used)} of ${w1(e.memory.total)}`].join(` · `)}function bhe(e){let t=e.flatMap(e=>e.reachable?Z1(e)===`stuck`?[`${e.name} stuck`]:Z1(e)===`waiting`?[`${e.name} waiting`]:[]:[`${e.name} unreachable`]);return t.length?t.join(` · `):`all working or idle`}function $1(e){return`Fleet: ${e.length} machine${e.length===1?``:`s`} · ${bhe(e)}`}function xhe(e){return e.trend.length<2||e.trend[0]===null||e.trend[e.trend.length-1]===null?`not enough history for an hour’s change`:e.delta===0?`steady over the last hour`:`${e.delta>0?`up`:`down`} ${Math.abs(e.delta)} in the last hour`}function She(e){let t=new Map(e.results.map(e=>[e.id,e])),n=e=>typeof e==`number`&&Number.isFinite(e)?e:null;return e.dashboard.panels.filter(e=>e.viz===`stat`||e.viz===`gauge`).map(e=>{let r=t.get(e.id),i=r?.status===`ok`;return{id:e.id,title:r?.title||e.title,viz:e.viz,panel:e,value:i?n(r.frame?.rows[0]?.[0]):null,unit:e.unit??r?.frame?.columns[0]?.unit,total:i?n(r.total):null,caption:i&&e.caption?n(r.caption):null,trend:i?r.trend:void 0,max:e.max,error:r?.status===`error`?r.message??`This panel could not run.`:void 0,behavior:V1(e)}})}var Che={attention:{waiting:[],review:[],stuck:[]},polls:{}};function e0(e,t){return e.machines.map(n=>{let r=Object.fromEntries(U1.map(t=>[t,e.sessions.filter(e=>e.machine===n.id&&e.state===t).length]));return{id:n.id,name:n.name,local:n.local,reachable:n.reachable,sessions:r,memory:{used:n.memoryUsed,total:n.memoryTotal},polls:t[n.id]??[],seenAt:n.lastSeen}})}function whe(e,t,n){let r=t?e0(t,n.polls):[];return{tiles:She(e).map(e=>e.behavior.attention?{...e,trend:n.attention[e.behavior.attention]}:e),localMachine:r.find(t=>t.local||t.id===e.local_machine)?.name??e.local_machine??`this machine`,machines:r,checkedAt:e.observed_at}}function The(e,t){return Object.fromEntries(t.filter(t=>(e.polls[t.id]?.length??0)>1).map(t=>{let n=e.polls[t.id],r=n.map((e,t)=>({state:e===`quiet`?null:e,label:`poll ${t+1} of ${n.length} · ${e===`offline`?`unreachable`:e===`quiet`?`no sessions`:e}`}));return[t.id,{cells:r,from:`${n.length} polls`,to:`now`,label:`${t.name}, last ${n.length} polls`}]}))}function t0(e){if(!e)return Che;let t=e.history.attention??[],n={};for(let t of e.history.polls??[])(n[t.machine_id]??=[]).push(t.state);return{attention:Object.fromEntries(J1.map(e=>[e,t.map(t=>t[e])])),polls:n}}function Ehe(){return(0,U.jsxs)(i_,{align:`center`,justify:`center`,gap:6,style:{flex:1},py:`xl`,children:[(0,U.jsx)(w_,{variant:`light`,color:`gray`,radius:`xl`,size:36,children:(0,U.jsx)(Nv,{size:18,"aria-hidden":!0})}),(0,U.jsx)(J,{fw:600,fz:`md`,children:`No machines yet`}),(0,U.jsx)(J,{fz:`sm`,c:`dimmed`,ta:`center`,maw:420,style:{textWrap:`pretty`},children:`Start an agent in a terminal on this machine, or pair another one; the fleet appears here within a few seconds.`})]})}var n0={working:`success`,waiting:`warning`,stuck:`danger`,idle:`info`,finished:`neutral`};function r0(e){return e===`neutral`?`var(--driga-control-border)`:`var(--mantine-color-${e}-filled)`}function i0(e){return r0(n0[e])}function a0(e){let t=e.startsWith(`~`),n=e.replace(/^~/,``);return{state:Object.hasOwn(W1,n)?n:void 0,label:n,inferred:t}}function o0({state:e,variant:t=`dot`,label:n,inferred:r,evidence:i,pulse:a,tone:o}){let s=o??(e?n0[e]:`neutral`),c=(n??(e?W1[e]:``)).replace(/^~/,``),l=i?.trim(),u=r?`${c}, inferred`:c,d=r0(s),f=e===`finished`?(0,U.jsx)(Tv,{size:12,weight:`regular`,"aria-hidden":!0,style:{color:`var(--driga-muted)`,flex:`none`}}):(0,U.jsx)(K,{"aria-hidden":!0,className:a&&e===`waiting`?`w-pulse`:void 0,style:{width:6,height:6,borderRadius:`50%`,flex:`none`,background:e===`idle`?`transparent`:d,boxShadow:e===`idle`?`inset 0 0 0 1.5px ${d}`:void 0}}),p=t===`pill`?(0,U.jsx)(ym,{variant:`light`,color:s===`neutral`?`gray`:s,size:`md`,radius:`sm`,fw:500,lts:`0.04em`,leftSection:f,"aria-label":u,"aria-description":l,title:l?void 0:u,tabIndex:l?0:void 0,styles:{root:{textTransform:`none`,background:`var(--driga-tint-${s})`,color:`var(--driga-text)`,boxShadow:`inset 0 0 0 1px ${d}`,border:r?`1px dashed var(--driga-muted)`:void 0,paddingInline:6},label:{fontSize:`var(--mantine-font-size-xs)`}},children:c}):(0,U.jsxs)(q,{role:`img`,gap:6,wrap:`nowrap`,"aria-label":u,"aria-description":l,title:l?void 0:u,tabIndex:l?0:void 0,style:{display:`inline-flex`},children:[f,(0,U.jsx)(J,{size:`xs`,fw:500,lh:1.2,style:{whiteSpace:`nowrap`,borderBottom:r&&l?`1px dashed var(--driga-faint)`:void 0},children:r&&c!==`unknown`?`~${c}`:c})]});return l?(0,U.jsx)(Rg,{label:l,multiline:!0,w:280,events:{hover:!0,focus:!0,touch:!0},children:p}):p}var s0={waiting:{label:`waiting`,tone:n0.waiting,rank:0},stuck:{label:`stuck`,tone:n0.stuck,rank:1},working:{label:`working`,tone:n0.working,rank:2},idle:{label:`idle`,tone:n0.idle,rank:3},finished:{label:`finished`,tone:n0.finished,rank:4}};function c0(e){return[...e].sort((e,t)=>Number(!!t.local)-Number(!!e.local)||e.name.localeCompare(t.name))}function l0(e,t){return s0[e.state].rank-s0[t.state].rank||e.title.localeCompare(t.title)}function Dhe(){return{waiting:0,stuck:0,working:0,idle:0,finished:0}}function Ohe(e){let t=Dhe();for(let n of e)t[n.state]++;return t}function u0(e){return e.filter(e=>e.state===`waiting`||e.state===`stuck`).length}function khe({machines:e,projects:t,sessions:n}){let r=new Map(t.map(e=>[e.id,e]));return c0(e).map(e=>{let t=n.filter(t=>t.machine===e.id),i=new Map;for(let e of t)i.set(e.project,[...i.get(e.project)??[],e]);return{machine:e,projects:[...i.entries()].map(([e,t])=>({project:r.get(e)??{id:e,name:e,repo:``},sessions:t.sort(l0),memory:t.reduce((e,t)=>e+t.memory,0),waiting:t.some(e=>e.state===`waiting`)})).sort((e,t)=>e.project.name.localeCompare(t.project.name)),memory:t.reduce((e,t)=>e+t.memory,0),counts:Ohe(t)}})}function Ahe(e){let t=new Map(e.map(e=>[e,new Map])),n=new Map;for(let r of e)for(let e of new Set(r.files??[])){let i=JSON.stringify([r.machine,r.project,e]),a=n.get(i)??[];for(let n of a)for(let[i,a]of[[r,n],[n,r]]){let n=t.get(i),r=n.get(a)??[];r.push(e),n.set(a,r)}a.push(r),n.set(i,a)}return new Map([...t].map(([e,t])=>[e,[...t].map(([e,t])=>({with:e,files:t}))]))}function d0(e){return JSON.stringify([e.machine,e.id])}function jhe(e){try{let t=JSON.parse(e);if(Array.isArray(t)&&t.length===2&&t.every(e=>typeof e==`string`))return{kind:`session`,machine:t[0],id:t[1]}}catch{}return null}var f0=class{data;groups;machines;projects;sessions=new Map;childrenByParent=new Map;projectMembers=new Map;shared;constructor(e){this.data=e;for(let t of e.sessions){this.sessions.set(d0(t),t);let e=this.projectMembers.get(t.project)??[];if(e.push(t),this.projectMembers.set(t.project,e),t.parent){let e=d0({machine:t.machine,id:t.parent}),n=this.childrenByParent.get(e)??[];n.push(t),this.childrenByParent.set(e,n)}}for(let e of this.childrenByParent.values())e.sort(l0);this.groups=khe(e),this.machines=c0(e.machines),this.projects=[...this.projectMembers.keys()].map(e=>this.project(e)??{id:e,name:e,repo:``}).sort((e,t)=>e.name.localeCompare(t.name)),this.shared=Ahe(e.sessions)}session(e,t){if(t!==void 0)return this.sessions.get(d0({machine:t,id:e}));let n=this.data.sessions.filter(t=>t.id===e);return n.length===1?n[0]:void 0}machine(e){return this.data.machines.find(t=>t.id===e)}project(e){return this.data.projects.find(t=>t.id===e)}projectSessions(e){return this.projectMembers.get(e)??[]}projectMachines(e){let t=new Set(this.projectSessions(e).map(e=>e.machine));return this.machines.filter(e=>t.has(e.id))}parent(e){return e.parent?this.session(e.parent,e.machine):void 0}children(e){return this.childrenByParent.get(d0(e))??[]}roots(e,t){return this.projectSessions(t).filter(t=>t.machine===e&&!this.parent(t)).sort(l0)}overlaps(e){return this.shared.get(this.session(e.id,e.machine))??[]}branch(e){let t=[],n=(e,r,i)=>{let a=d0(e);if(i.has(a))return;t.push({session:e,depth:r});let o=new Set(i).add(a);for(let t of this.children(e))n(t,r+1,o)};return n(e,0,new Set),t}};function Mhe(e){let t=(e.turns??[]).slice(-30);return{ok:t.filter(e=>e===`ok`).length,waited:t.filter(e=>e===`waited`).length,failed:t.filter(e=>e===`failed`).length,total:t.length}}function Nhe(e){let t=(e.turns??[]).slice(-30),n=30-t.length,r={ok:`working`,waited:`waiting`,failed:`stuck`};return Array.from({length:30},(e,i)=>ie.project)).size;return(0,U.jsxs)(q,{justify:`space-between`,wrap:`nowrap`,gap:`sm`,style:{flex:`none`},children:[(0,U.jsxs)(q,{gap:`sm`,wrap:`nowrap`,align:`baseline`,style:{minWidth:0},children:[(0,U.jsx)(D_,{order:1,fz:28,fw:650,lh:1.2,style:{letterSpacing:`-0.02em`},children:`Fleet`}),(0,U.jsxs)(J,{ff:`monospace`,fz:`xs`,c:`dimmed`,style:{whiteSpace:`nowrap`},children:[A1(e.length,`machine`),` · `,A1(i,`project`),` · `,A1(t.length,`session`)]}),r>0&&(0,U.jsxs)(J,{ff:`monospace`,fz:`xs`,fw:600,c:`warning`,style:{whiteSpace:`nowrap`},children:[`· `,r,` need you`]})]}),(0,U.jsx)(q,{gap:`xs`,wrap:`nowrap`,children:n})]})}function m0(e,[t,n]=[.7,.9]){return e>=n?`danger`:e>=t?`warning`:`brand`}function h0({value:e,max:t,format:n,label:r,thresholds:i=[.7,.9],size:a=4,caption:o=!0}){let s=t>0?Math.min(1,Math.max(0,e/t)):0,c=Math.round(s*100),l=m0(s,i),u=`${r}: ${n(e)} of ${n(t)}, ${c}%`;return(0,U.jsxs)(i_,{gap:4,children:[o&&(0,U.jsxs)(q,{justify:o===`percent`?`flex-end`:`space-between`,gap:`xs`,wrap:`nowrap`,"aria-hidden":!0,children:[o!==`percent`&&(0,U.jsxs)(J,{size:`xs`,ff:`monospace`,lh:1.2,style:{whiteSpace:`nowrap`},children:[n(e),` `,(0,U.jsxs)(J,{span:!0,c:`dimmed`,ff:`monospace`,fz:`inherit`,children:[`/ `,n(t)]})]}),(0,U.jsxs)(J,{size:`xs`,ff:`monospace`,c:l===`brand`?`dimmed`:l,lh:1.2,children:[c,`%`]})]}),(0,U.jsxs)(K,{pos:`relative`,py:2,children:[(0,U.jsx)(jg.Root,{size:a,styles:{root:{background:`var(--driga-border)`}},children:(0,U.jsx)(jg.Section,{value:s*100,color:l,"aria-label":u})}),i.map(e=>(0,U.jsx)(K,{"aria-hidden":!0,pos:`absolute`,top:0,h:a+4,w:1,left:`${e*100}%`,style:{background:`var(--driga-control-border)`}},e))]})]})}var g0={light:Iy.latte,dark:Iy.mocha},Lhe={light:{claude:g0.light.peach,codex:g0.light.teal,gemini:g0.light.sapphire,copilot:g0.light.sky,agy:g0.light.pink},dark:{claude:g0.dark.peach,codex:g0.dark.teal,gemini:g0.dark.sapphire,copilot:g0.dark.sky,agy:g0.dark.pink}};function Rhe(e,t){let n=K1(t);if(!n)return{tint:`var(--driga-tint-neutral)`,ring:`var(--driga-border)`,ink:`var(--driga-muted)`};let r=Lhe[e][n];return{tint:En(r,.16),ring:En(r,.4),ink:e===`dark`?r:Cn(r,.3)}}var zhe={claude:xy,codex:Dv,gemini:Fv,copilot:Zv,agy:Kte};function _0({agent:e,name:t,waiting:n,size:r=20}){let i=Rhe(Jn(`dark`),e),a=K1(e),o=a?zhe[a]:Jte,s=`${q1(e)||`agent`}${n?`, waiting on you`:``}`,c=(0,U.jsx)(K,{"aria-hidden":!0,style:{width:r,height:r,borderRadius:`50%`,background:i.tint,boxShadow:`inset 0 0 0 1px ${i.ring}`,color:i.ink,display:`grid`,placeItems:`center`,flex:`none`},children:(0,U.jsx)(o,{size:Math.round(r*.6),weight:`regular`})}),l=n?(0,U.jsx)(sh,{color:`warning`,size:7,offset:1,withBorder:!0,children:c}):c;return t?(0,U.jsxs)(q,{gap:6,wrap:`nowrap`,title:s,style:{display:`inline-flex`},children:[l,(0,U.jsx)(J,{size:`xs`,lh:1.2,style:{whiteSpace:`nowrap`},children:q1(e)||`agent`}),n&&(0,U.jsx)(`span`,{className:`sr-only`,children:`, waiting on you`})]}):(0,U.jsx)(K,{role:`img`,"aria-label":s,title:s,style:{display:`inline-flex`,flex:`none`},children:l})}function Bhe({segments:e,total:t,marker:n,format:r,label:i,size:a=8}){let o=Jn(`dark`),s=t??e.reduce((e,t)=>e+t.value,0),c=e=>s>0?Math.round(Math.min(100,e/s*100)*100)/100:0,l=(e,t)=>e.color===`brand`?`var(--mantine-color-brand-filled)`:typeof e.color==`string`?i0(e.color):Hy[o][e.color??t]??`var(--driga-faint)`,u=n?c(n.value):0;return(0,U.jsxs)(i_,{gap:6,children:[(0,U.jsxs)(K,{pos:`relative`,pt:n?18:0,children:[(0,U.jsx)(jg.Root,{size:a,styles:{root:{background:`var(--driga-border)`}},children:e.map((e,t)=>(0,U.jsx)(jg.Section,{value:c(e.value),color:l(e,t),"aria-label":`${e.label}: ${r(e.value)}`,style:{boxShadow:`inset -1px 0 0 var(--driga-raised)`}},e.label))}),n&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(K,{"aria-hidden":!0,pos:`absolute`,bottom:-3,h:a+6,w:2,left:`${u}%`,style:{background:`var(--driga-text)`,transform:`translateX(-1px)`,borderRadius:1}}),(0,U.jsx)(J,{"aria-hidden":!0,pos:`absolute`,top:0,size:`xs`,ff:`monospace`,c:`dimmed`,lh:1,style:u>75?{right:0,whiteSpace:`nowrap`}:{left:`${u}%`,transform:`translateX(-50%)`,whiteSpace:`nowrap`},children:n.label})]})]}),(0,U.jsxs)(q,{gap:`md`,role:`list`,"aria-label":i,children:[e.map((e,t)=>(0,U.jsxs)(q,{role:`listitem`,gap:6,wrap:`nowrap`,children:[(0,U.jsx)(Bm,{size:8,color:l(e,t),withShadow:!1,"aria-hidden":!0}),(0,U.jsx)(J,{size:`xs`,lh:1.2,children:e.label}),(0,U.jsx)(J,{size:`xs`,ff:`monospace`,c:`dimmed`,lh:1.2,children:r(e.value)})]},e.label)),n&&(0,U.jsxs)(J,{role:`listitem`,size:`xs`,c:`dimmed`,lh:1.2,children:[n.label,` at `,r(n.value)]})]})]})}function v0({n:e,unit:t,size:n=28,total:r,lineHeight:i=1.1}){if(typeof e!=`number`)return(0,U.jsx)(J,{ff:`monospace`,fz:n,fw:600,lh:i,c:`dimmed`,children:`—`});let[a,o]=y0(O1(e,t));if(typeof r==`number`){let[a,o]=y0(O1(r,t)),[s]=y0(t===`bytes`?Vhe(e,r):O1(e,t));return(0,U.jsxs)(J,{ff:`monospace`,fz:n,fw:600,lh:i,style:{fontVariantNumeric:`tabular-nums`},children:[s,(0,U.jsxs)(J,{span:!0,ff:`monospace`,fz:`0.6em`,fw:500,c:`dimmed`,mx:3,children:[`/ `,a]}),o&&(0,U.jsx)(J,{span:!0,ff:`monospace`,fz:`0.6em`,fw:500,c:`dimmed`,children:o})]})}return(0,U.jsxs)(J,{ff:`monospace`,fz:n,fw:600,lh:i,style:{fontVariantNumeric:`tabular-nums`},children:[a,o&&(0,U.jsx)(J,{span:!0,ff:`monospace`,fz:`0.6em`,fw:500,c:`dimmed`,ml:3,children:o})]})}function Vhe(e,t){let n=e/1024**Math.max(0,Math.min(4,Math.floor(Math.log(Math.max(t,1))/Math.log(1024))));return n>=10?String(Math.round(n)):n.toFixed(1)}function y0(e){let t=/^([$]?[\d.,]+)\s*(.*)$/.exec(e);return t?[t[1],t[2]]:[e,``]}function b0({trend:e,title:t,color:n,window:r=`hour`}){let i=(0,h.useCallback)(i=>ihe(e,t,i,n,r),[e,t,n,r]);return(0,U.jsx)(R1,{option:i,label:`${t} over the last ${r}`,small:!0})}function Hhe(e){let t=new Map;for(let n of e){let e=n.state===`offline`?`unseen`:n.state?W1[n.state]:`quiet`;t.set(e,(t.get(e)??0)+1)}return[...t.entries()].map(([e,t])=>`${t} ${e}`).join(`, `)}function x0({cells:e,label:t,summary:n,from:r,to:i,height:a=12}){let[o,s]=(0,h.useState)(null),c=(0,h.useRef)(null),l=t=>{if(!c.current||!e.length)return;let n=c.current.getBoundingClientRect();n.width<=0?s(null):s(Math.min(e.length-1,Math.max(0,Math.floor((t.clientX-n.left)/n.width*e.length))))},u=n??Hhe(e);return(0,U.jsxs)(i_,{gap:2,children:[(0,U.jsx)(Rg.Floating,{label:o===null?u:e[o]?.label??u,offset:10,children:(0,U.jsx)(K,{ref:c,role:`img`,"aria-label":`${t}: ${u}`,onMouseMove:l,onMouseLeave:()=>s(null),style:{display:`flex`,gap:1,height:a,cursor:`default`},children:e.map((e,t)=>(0,U.jsx)(`div`,{className:`w-cell`,"data-state":e.state??void 0,style:o===t?{outline:`1px solid var(--driga-text)`,outlineOffset:0}:void 0},t))})}),(r||i)&&(0,U.jsxs)(q,{justify:`space-between`,gap:`xs`,"aria-hidden":!0,children:[(0,U.jsx)(J,{size:`xs`,ff:`monospace`,c:`dimmed`,lh:1,children:r}),(0,U.jsx)(J,{size:`xs`,ff:`monospace`,c:`dimmed`,lh:1,children:i})]})]})}var Uhe={desktop:Nv,laptop:ly,server:ry};function Whe({data:e,selection:t,onSelect:n,onOpen:r,onReply:i,width:a=320}){let o=new f0(e),s=t&&(t.kind===`session`?o.session(t.id,t.machine):t.kind===`machine`?o.machine(t.id):o.project(t.id));return(0,U.jsx)(Fm,{role:`group`,"aria-label":`Inspector`,w:{base:`100%`,lg:a},padding:`sm`,style:{flex:`none`,display:`flex`,flexDirection:`column`,minHeight:0},children:(0,U.jsx)(Jc,{type:`auto`,scrollbarSize:4,style:{flex:1,minHeight:0},children:!t||!s?(0,U.jsx)(Ghe,{}):t.kind===`session`?(0,U.jsx)(Khe,{session:s,relationships:o,onSelect:n,onOpen:r,onReply:i}):t.kind===`machine`?(0,U.jsx)(qhe,{group:o.groups.find(e=>e.machine.id===t.id),onSelect:n}):(0,U.jsx)(Jhe,{project:s,relationships:o,onSelect:n})})})}function Ghe(){return(0,U.jsxs)(i_,{align:`center`,justify:`center`,gap:4,py:`xl`,px:`sm`,children:[(0,U.jsx)(J,{fw:600,fz:`sm`,children:`Nothing selected`}),(0,U.jsx)(J,{fz:`xs`,c:`dimmed`,ta:`center`,style:{textWrap:`pretty`},children:`Select a session or a machine to see its details and actions here.`})]})}function S0({children:e}){return(0,U.jsx)(J,{fz:`xs`,fw:600,c:`dimmed`,children:e})}function C0({session:e,onSelect:t,extra:n}){return(0,U.jsx)(Qc,{className:`fleet-row-title`,onClick:()=>t({kind:`session`,id:e.id,machine:e.machine}),px:4,py:2,children:(0,U.jsxs)(q,{gap:6,wrap:`nowrap`,children:[(0,U.jsx)(Bm,{size:6,color:r0(s0[e.state].tone),withShadow:!1,"aria-hidden":!0,style:{flex:`none`}}),(0,U.jsx)(J,{fz:`xs`,truncate:!0,title:e.title,children:e.title}),(0,U.jsx)(J,{fz:`xs`,c:`dimmed`,ff:`monospace`,style:{flex:`none`},children:n??e.label??s0[e.state].label})]})})}function Khe({session:e,relationships:t,onSelect:n,onOpen:r,onReply:i}){let a=t.project(e.project),o=t.machine(e.machine),s=t.children(e),c=t.parent(e),l=t.overlaps(e),u=e=>l.filter(t=>t.files.includes(e)).map(e=>e.with),d=Math.max(0,Date.now()-Date.parse(e.lastActivity));return(0,U.jsxs)(i_,{gap:`sm`,children:[(0,U.jsxs)(q,{gap:`xs`,wrap:`nowrap`,justify:`space-between`,children:[(0,U.jsx)(o0,{variant:`pill`,state:e.state,label:e.label,inferred:e.inferred,evidence:e.evidence}),(0,U.jsxs)(J,{ff:`monospace`,fz:`xs`,c:`dimmed`,children:[`#`,e.id]})]}),(0,U.jsx)(D_,{order:2,fz:`md`,lh:1.3,style:{textWrap:`balance`,letterSpacing:`-0.01em`},children:e.title}),(0,U.jsxs)(q,{gap:8,wrap:`wrap`,children:[(0,U.jsx)(_0,{agent:e.agent,name:!0,size:16}),(0,U.jsx)(J,{ff:`monospace`,fz:`xs`,c:`dimmed`,children:a?.name??e.project}),e.branch&&(0,U.jsxs)(q,{gap:3,wrap:`nowrap`,children:[(0,U.jsx)(Yv,{size:12,"aria-hidden":!0}),(0,U.jsx)(J,{ff:`monospace`,fz:`xs`,c:`dimmed`,children:e.branch})]}),(0,U.jsx)(J,{ff:`monospace`,fz:`xs`,c:`dimmed`,children:o?.name??e.machine})]}),e.waiting&&(0,U.jsxs)(q,{className:`w-needs-you`,gap:8,wrap:`nowrap`,align:`flex-start`,px:`xs`,py:6,role:`status`,children:[(0,U.jsx)($v,{size:16,"aria-hidden":!0,style:{color:`var(--mantine-color-warning-filled)`,flex:`none`,marginTop:1}}),(0,U.jsxs)(i_,{gap:2,children:[(0,U.jsx)(J,{fz:`xs`,fw:600,children:`Needs you`}),(0,U.jsx)(J,{fz:`xs`,style:{overflowWrap:`anywhere`},children:e.waiting})]})]}),e.evidence&&(0,U.jsx)(J,{fz:`xs`,c:`dimmed`,children:e.evidence}),o&&!o.reachable&&(0,U.jsxs)(J,{fz:`xs`,c:`dimmed`,children:[`Last known: `,o.name,` was last seen `,E1(o.lastSeen),`.`]}),e.lastTool&&(0,U.jsxs)(J,{ff:`monospace`,fz:`xs`,className:`w-inset`,truncate:!0,title:`${e.lastTool} · ${E1(e.lastActivity)}`,style:{display:`block`},children:[e.lastTool,` · `,E1(e.lastActivity)]}),(0,U.jsxs)(q,{gap:6,children:[!!e.turns?.length&&(0,U.jsx)(ym,{variant:`default`,size:`xs`,ff:`monospace`,children:A1(e.turns.length,`turn`)}),!!e.files?.length&&(0,U.jsx)(ym,{variant:`default`,size:`xs`,ff:`monospace`,children:A1(e.files.length,`file`)}),(0,U.jsx)(ym,{variant:`default`,size:`xs`,ff:`monospace`,children:w1(e.memory)})]}),e.turns&&e.turns.length>0&&(0,U.jsx)(x0,{cells:Nhe(e),label:`Last 30 turns`,summary:Phe(e),height:8,to:`turn ${Math.min(30,e.turns.length)}`,from:e.turns.length>30?`turn ${e.turns.length-29}`:`turn 1`}),e.files&&e.files.length>0&&(0,U.jsxs)(i_,{gap:2,children:[(0,U.jsx)(S0,{children:`Files`}),e.files.map(e=>{let t=u(e);return(0,U.jsxs)(q,{gap:6,wrap:`nowrap`,justify:`space-between`,children:[(0,U.jsx)(J,{ff:`monospace`,fz:`xs`,truncate:!0,title:e,children:e}),t.length>0&&(0,U.jsxs)(ym,{color:`danger`,variant:`light`,size:`xs`,style:{flex:`none`,background:`var(--driga-tint-danger)`,color:`var(--driga-text)`},title:`Also edited by ${t.map(e=>e.title).join(`, `)}`,children:[`also #`,t.map(e=>e.id).join(`, #`)]})]},e)})]}),s.length>0&&(0,U.jsxs)(i_,{gap:2,children:[(0,U.jsx)(S0,{children:`Subagents`}),s.map(e=>(0,U.jsx)(C0,{session:e,onSelect:n},`${e.machine}/${e.id}`))]}),c&&(0,U.jsxs)(i_,{gap:2,children:[(0,U.jsx)(S0,{children:`Spawned by`}),(0,U.jsx)(C0,{session:c,onSelect:n})]}),(0,U.jsxs)(q,{gap:`xs`,mt:4,children:[e.state===`waiting`&&(0,U.jsx)(Om,{onClick:()=>i(e),children:`Reply`}),(0,U.jsx)(Om,{variant:`default`,onClick:()=>r(e),children:`Open`})]}),(0,U.jsxs)(J,{fz:`xs`,c:`dimmed`,ff:`monospace`,title:e.started?`Started ${D1(e.started)}`:void 0,children:[e.started?`started ${E1(e.started)} · `:``,`quiet `,T1(d)]})]})}function qhe({group:e,onSelect:t}){let{machine:n,counts:r}=e,i=Uhe[n.kind??`desktop`],a=n.memoryTotal>0?Math.round(n.memoryUsed/n.memoryTotal*100):0,o=H1.reduce((e,t)=>e+r[t],0);return(0,U.jsxs)(i_,{gap:`sm`,children:[(0,U.jsxs)(q,{gap:6,wrap:`nowrap`,children:[(0,U.jsx)(i,{size:16,"aria-hidden":!0}),(0,U.jsx)(D_,{order:2,fz:`md`,ff:`monospace`,lh:1.6,children:n.name}),n.local&&(0,U.jsx)(ym,{variant:`default`,size:`xs`,children:`local`})]}),(0,U.jsxs)(q,{gap:4,wrap:`nowrap`,children:[(0,U.jsx)(Bm,{size:7,color:n.reachable?`var(--mantine-color-success-filled)`:`transparent`,withShadow:!1,"aria-hidden":!0,style:{border:n.reachable?void 0:`1px solid var(--driga-muted)`}}),(0,U.jsx)(J,{fz:`xs`,ff:`monospace`,c:`dimmed`,title:D1(n.lastSeen),children:Ihe(n)})]}),(0,U.jsxs)(i_,{gap:4,children:[(0,U.jsx)(S0,{children:`Memory`}),(0,U.jsxs)(q,{gap:8,wrap:`nowrap`,align:`baseline`,children:[(0,U.jsx)(v0,{n:n.memoryUsed,unit:`bytes`,total:n.memoryTotal,size:22}),(0,U.jsxs)(J,{ff:`monospace`,fz:`xs`,c:`dimmed`,children:[a,`% used`,n.reachable?``:`, last known`]})]}),(0,U.jsx)(jg,{value:a,size:4,color:`var(--driga-control-border)`,"aria-label":`Memory used ${a}%`}),n.memoryByRole&&n.memoryByRole.length>0&&(0,U.jsx)(Bhe,{label:`Agent memory on ${n.name} by owner`,segments:n.memoryByRole,total:n.memoryTotal,format:w1,size:6})]}),n.cpuPercent!==void 0&&(0,U.jsxs)(i_,{gap:4,children:[(0,U.jsx)(S0,{children:`CPU`}),(0,U.jsx)(h0,{value:n.cpuPercent,max:100,format:e=>`${Math.round(e)}%`,label:`CPU on ${n.name}`})]}),!!n.diskTotal&&n.diskFree!==void 0&&(0,U.jsxs)(i_,{gap:4,children:[(0,U.jsx)(S0,{children:`Disk`}),(0,U.jsx)(h0,{value:Math.max(0,n.diskTotal-n.diskFree),max:n.diskTotal,format:w1,label:`Disk on ${n.name}`})]}),(0,U.jsxs)(i_,{gap:2,children:[(0,U.jsx)(S0,{children:`Sessions`}),o===0&&(0,U.jsx)(J,{fz:`xs`,c:`dimmed`,children:`None`}),H1.filter(e=>r[e]>0).map(e=>(0,U.jsxs)(q,{gap:6,wrap:`nowrap`,children:[(0,U.jsx)(Bm,{size:6,color:r0(s0[e].tone),withShadow:!1,"aria-hidden":!0}),(0,U.jsxs)(J,{fz:`xs`,ff:`monospace`,children:[r[e],` `,s0[e].label]})]},e))]}),e.projects.length>0&&(0,U.jsxs)(i_,{gap:2,children:[(0,U.jsx)(S0,{children:`Projects`}),e.projects.map(e=>(0,U.jsx)(Qc,{className:`fleet-row-title`,px:4,py:2,onClick:()=>t({kind:`project`,id:e.project.id}),children:(0,U.jsxs)(q,{gap:6,wrap:`nowrap`,justify:`space-between`,children:[(0,U.jsx)(J,{fz:`xs`,ff:`monospace`,children:e.project.name}),(0,U.jsxs)(J,{fz:`xs`,ff:`monospace`,c:`dimmed`,children:[A1(e.sessions.length,`session`),` · `,w1(e.memory)]})]})},e.project.id))]}),(0,U.jsxs)(i_,{gap:2,children:[(0,U.jsx)(S0,{children:`Leftover`}),(0,U.jsx)(J,{fz:`xs`,ff:`monospace`,children:n.leftover?`${A1(n.leftover.processes,`process`)} · ${w1(n.leftover.memory)} reclaimable`:`none`})]})]})}function Jhe({project:e,relationships:t,onSelect:n}){let r=t.projectMachines(e.id),i=t.projectSessions(e.id);return(0,U.jsxs)(i_,{gap:`sm`,children:[(0,U.jsx)(D_,{order:2,fz:`md`,ff:`monospace`,lh:1.6,children:e.name}),e.repo&&(0,U.jsx)(J,{ff:`monospace`,fz:`xs`,c:`dimmed`,truncate:!0,title:e.repo,children:e.repo}),(0,U.jsxs)(i_,{gap:2,children:[(0,U.jsx)(S0,{children:`Machines`}),(0,U.jsx)(J,{fz:`xs`,ff:`monospace`,children:r.length?r.map(e=>e.name).join(` · `):`none`})]}),(0,U.jsxs)(i_,{gap:2,children:[(0,U.jsx)(S0,{children:`Sessions`}),i.map(e=>(0,U.jsx)(C0,{session:e,onSelect:n,extra:`${e.label??s0[e.state].label} · ${t.machine(e.machine)?.name??e.machine}`},`${e.machine}/${e.id}`))]})]})}function w0({value:e,max:t,format:n,label:r,caption:i,thresholds:a,size:o=44,thickness:s=4}){let c=t>0?Math.min(1,Math.max(0,e/t)):0,l=Math.round(c*100),u=m0(c,a),d=i??`${n(e)} / ${n(t)}`,f=o*.9-3*Math.min(s||12,o/4),p=Math.min(11,Math.max(0,f)*.85/((o>36?4:3)*.7));return(0,U.jsxs)(q,{gap:`sm`,wrap:`nowrap`,children:[(0,U.jsx)(Hg,{size:o,thickness:s,rootColor:`var(--driga-border)`,sections:[{value:l,color:u}],role:`img`,"aria-label":`${r}: ${d}, ${l}%`,style:{flex:`none`},label:(0,U.jsxs)(J,{ta:`center`,fz:p,ff:`monospace`,fw:400,lh:1,"aria-hidden":!0,children:[l,o>36&&`%`]})}),(0,U.jsxs)(i_,{gap:2,style:{minWidth:0},"aria-hidden":!0,children:[(0,U.jsx)(J,{size:`sm`,fw:500,lh:1.2,truncate:!0,title:r,children:r}),(0,U.jsx)(J,{size:`xs`,c:`dimmed`,ff:`monospace`,lh:1.2,style:{whiteSpace:`nowrap`},children:d})]})]})}var Yhe={desktop:Nv,laptop:ly,server:ry};function Xhe({machine:e,selected:t,onSelect:n,onOpen:r,onReclaim:i}){let a=Date.now(),o=Yhe[e.kind??`desktop`],s=a-Date.parse(e.lastSeen),c=!e.reachable&&s>6e5,l=()=>r?.(e),u=e=>{e.target.closest(`button, a`)||l()},d=e=>{e.key===`Enter`&&e.target===e.currentTarget&&(e.preventDefault(),l())},f=e.leftover.trees===0?`nothing left over`:`${e.leftover.trees} leftover · ${w1(e.leftover.bytes)} reclaimable`,p=(0,U.jsxs)(i_,{gap:8,children:[(0,U.jsxs)(q,{justify:`space-between`,wrap:`nowrap`,gap:`sm`,children:[(0,U.jsxs)(q,{gap:6,wrap:`nowrap`,style:{minWidth:0},children:[(0,U.jsx)(o,{size:16,"aria-hidden":!0,style:{color:`var(--driga-muted)`,flex:`none`}}),(0,U.jsx)(J,{size:`md`,fw:600,ff:`monospace`,lh:1.2,truncate:!0,title:e.name,style:{minWidth:0},children:e.name}),e.local&&(0,U.jsx)(ym,{size:`xs`,variant:`default`,fw:500,styles:{root:{textTransform:`none`,flex:`none`}},children:`local`}),e.tls&&(0,U.jsx)(ym,{size:`xs`,variant:`default`,fw:500,styles:{root:{textTransform:`none`,flex:`none`}},children:`mTLS`})]}),(0,U.jsxs)(q,{gap:6,wrap:`nowrap`,style:{flex:`none`},title:D1(e.lastSeen),children:[(0,U.jsx)(K,{"aria-hidden":!0,style:{width:6,height:6,borderRadius:`50%`,background:e.reachable?`var(--mantine-color-success-filled)`:`transparent`,boxShadow:e.reachable?void 0:`inset 0 0 0 1.5px var(--driga-faint)`}}),(0,U.jsx)(J,{size:`xs`,lh:1.2,c:c?`danger`:`dimmed`,fw:c?500:void 0,style:{whiteSpace:`nowrap`},children:e.reachable?`reachable`:`last seen ${T1(s)} ago`})]})]}),e.cpuPercent!==void 0&&(0,U.jsxs)(i_,{gap:4,children:[(0,U.jsx)(J,{size:`xs`,c:`dimmed`,children:`CPU`}),(0,U.jsx)(h0,{value:e.cpuPercent,max:100,format:e=>`${Math.round(e)}%`,label:`CPU on ${e.name}`,caption:`percent`})]}),e.diskTotal&&e.diskFree!==void 0?(0,U.jsxs)(q,{gap:`sm`,wrap:`wrap`,role:`group`,"aria-label":`Pressure`,children:[(0,U.jsx)(w0,{value:e.memUsed,max:e.memTotal,format:w1,label:`Memory`,caption:w1(e.memUsed),size:36}),(0,U.jsx)(w0,{value:Math.max(0,e.diskTotal-e.diskFree),max:e.diskTotal,format:w1,label:`Disk`,caption:w1(e.diskTotal-e.diskFree),size:36})]}):(0,U.jsx)(h0,{value:e.memUsed,max:e.memTotal,format:w1,label:`Memory on ${e.name}`}),(0,U.jsxs)(q,{gap:10,wrap:`nowrap`,role:`group`,"aria-label":U1.map(t=>`${e.sessions[t]} ${W1[t]}`).join(`, `),children:[U1.map(t=>(0,U.jsxs)(q,{gap:3,wrap:`nowrap`,title:W1[t],children:[(0,U.jsx)(K,{"aria-hidden":!0,style:{width:6,height:6,borderRadius:`50%`,background:e.sessions[t]>0?i0(t):`transparent`,boxShadow:e.sessions[t]>0?void 0:`inset 0 0 0 1.5px ${i0(t)}`,opacity:e.sessions[t]>0?1:.5}}),(0,U.jsx)(J,{size:`xs`,ff:`monospace`,lh:1,c:e.sessions[t]>0?void 0:`dimmed`,children:e.sessions[t]})]},t)),!e.reachable&&(0,U.jsx)(J,{size:`xs`,ff:`monospace`,c:`dimmed`,lh:1,children:`last known`})]}),e.strip&&(0,U.jsx)(x0,{cells:e.strip.cells,label:e.strip.label,from:e.strip.from,to:e.strip.to,height:10}),(0,U.jsxs)(q,{justify:`space-between`,wrap:`nowrap`,gap:`xs`,children:[(0,U.jsx)(J,{size:`xs`,c:`dimmed`,ff:`monospace`,lh:1.2,truncate:!0,title:f,style:{minWidth:0},children:f}),!n&&i&&e.leftover.trees>0&&(0,U.jsx)(Om,{size:`compact-xs`,variant:`subtle`,color:`gray`,leftSection:(0,U.jsx)(dv,{size:12}),onClick:()=>i(e),style:{flex:`none`},children:`Reclaim`})]})]}),m=e.reachable?void 0:`dashed`;return n?(0,U.jsx)(rl,{component:`button`,type:`button`,withBorder:!0,radius:`md`,p:`sm`,className:`w-row w-card`,"data-clickable":``,"aria-pressed":!!t,onClick:()=>n(e),style:{borderStyle:m,textAlign:`left`,width:`100%`,cursor:`pointer`},children:p}):(0,U.jsx)(rl,{withBorder:!0,radius:`md`,p:`sm`,className:`w-row w-card`,"data-clickable":r?``:void 0,"data-selected":t?`true`:void 0,tabIndex:r?0:void 0,onClick:r?u:void 0,onKeyDown:r?d:void 0,style:{borderStyle:m},children:p})}function Zhe({groups:e,strips:t,selected:n,onSelect:r}){return(0,U.jsx)(Qg,{minColWidth:280,autoFlow:`auto-fit`,spacing:`sm`,component:`ul`,"aria-label":`Machines`,m:0,p:0,style:{flex:`none`,listStyle:`none`,maxHeight:`min(40vh, 18rem)`,overflowY:`auto`},children:e.map(e=>(0,U.jsx)(`li`,{style:{minWidth:0},children:(0,U.jsx)(Xhe,{machine:Fhe(e,t?.[e.machine.id]),selected:n===e.machine.id,onSelect:e=>r(n===e.id?null:e.id??null)})},e.machine.id))})}function Qhe(e){return Math.max(360,26*e+48)}function $he(e){let t=e.dataType===`edge`?e.data?.target:e.name;if(!t)return null;let[n,r]=[t.slice(0,2),t.slice(2)];return n===`m:`||n===`l:`?{kind:`machine`,id:r}:n===`p:`?{kind:`project`,id:r}:n===`s:`?jhe(r):null}function T0(e){return e.replace(/[{}|]/g,` `)}function ege(e,t){let n={...t.states,brand:t.brand,machine:t.line,leftover:t.muted},r=new f0(e),{groups:i,machines:a,projects:o}=r,s=e.sessions.reduce((e,t)=>e+t.memory,0)+a.reduce((e,t)=>e+(t.leftover?.memory??0),0),c=Math.max(1,s/200),l=[],u=[],d={color:`gradient`,opacity:.22},f={color:n.waiting,opacity:.4};for(let e of i){let r=e.machine,i=e.projects.reduce((e,t)=>e+t.sessions.length,0);l.push({name:`m:${r.id}`,depth:0,text:T0(r.name),tip:`${N1(r.name)}${r.local?` · local`:``}
${r.reachable?`reachable`:`unreachable · last seen ${N1(E1(r.lastSeen))}`}
${N1(w1(r.memoryUsed))} of ${N1(w1(r.memoryTotal))} used · ${A1(i,`session`)}`,itemStyle:{color:n.machine,borderColor:r.reachable?n.machine:t.muted,borderWidth:1,borderType:r.reachable?`solid`:`dashed`},label:{position:`left`,fontFamily:Wy.sans,fontSize:Uy.small+1,fontWeight:600,color:t.text}})}for(let e of o){let i=r.projectMachines(e.id),a=r.projectSessions(e.id);l.push({name:`p:${e.id}`,depth:1,text:T0(e.name),tip:`${N1(e.name)}
${N1(e.repo)}
on ${N1(i.map(e=>e.name).join(`, `))} · ${A1(a.length,`session`)} · ${N1(w1(a.reduce((e,t)=>e+t.memory,0)))}`,itemStyle:{color:En(n.brand,.55)},label:{fontFamily:Wy.sans,fontSize:Uy.small,color:t.text}})}for(let e of i){let r=e.machine;r.leftover&&(l.push({name:`l:${r.id}`,depth:1,text:T0(`leftover · ${A1(r.leftover.processes,`proc`)} · ${w1(r.leftover.memory)}`),tip:`Leftover on ${N1(r.name)}
${A1(r.leftover.processes,`process`)} no session owns · ${N1(w1(r.leftover.memory))} reclaimable`,itemStyle:{color:`transparent`,borderColor:n.leftover,borderWidth:1,borderType:`dashed`},label:{fontFamily:Wy.mono,fontSize:Uy.small,color:t.muted}}),u.push({source:`m:${r.id}`,target:`l:${r.id}`,value:Math.max(r.leftover.memory,c),tip:`${N1(r.name)} → leftover: ${N1(w1(r.leftover.memory))}`,lineStyle:{color:n.leftover,opacity:.14}}))}for(let e of o)for(let t of i){let i=t.projects.find(t=>t.project.id===e.id);if(i){u.push({source:`m:${t.machine.id}`,target:`p:${e.id}`,value:Math.max(i.memory,c),tip:`${N1(t.machine.name)} → ${N1(e.name)}: ${N1(w1(i.memory))} in ${A1(i.sessions.length,`session`)}`,lineStyle:i.waiting?f:d});for(let a of i.sessions){let i=r.children(a).length,o=r.overlaps(a),s=`${i?` {dim|↳${i}}`:``}${o.length?` {bang|!}`:``}`;l.push({name:`s:${d0(a)}`,depth:2,text:`${T0(a.title)}${s}{dim| · ${T0(a.agent)} · ${w1(a.memory)}}`,tip:[`${N1(a.title)}`,`${N1(a.label??s0[a.state].label)}${a.inferred?` (inferred)`:``} · ${N1(q1(a.agent))}${a.branch?` · ${N1(a.branch)}`:``}`,`${N1(e.name)} on ${N1(t.machine.name)} · ${N1(w1(a.memory))}`,a.lastTool?`${N1(a.lastTool)} · ${N1(E1(a.lastActivity))}`:``,a.waiting?N1(a.waiting):``,i?A1(i,`subagent`):``,...o.map(e=>`also editing ${N1(e.files.map(e=>e.slice(e.lastIndexOf(`/`)+1)).join(`, `))} with ${N1(e.with.title)}`)].filter(Boolean).join(`
`),itemStyle:{color:n[a.state]}}),u.push({source:`p:${e.id}`,target:`s:${d0(a)}`,value:Math.max(a.memory,c),tip:`${N1(e.name)} → ${N1(a.title)}: ${N1(w1(a.memory))}`,lineStyle:a.state===`waiting`?f:d})}}}let p=u0(e.sessions);return ohe({nodes:l,links:u,description:`Fleet flow: ${A1(a.length,`machine`)}, ${A1(o.length,`project`)}, ${A1(e.sessions.length,`session`)}, ${p} needing you. Link width is memory, with a minimum width for visibility; node colour is state.`,rich:{dim:{color:t.muted,fontFamily:Wy.mono,fontSize:Uy.small},bang:{color:n.stuck,fontWeight:700,fontFamily:Wy.mono,fontSize:Uy.small}}},t)}var tge={desktop:Nv,laptop:ly,server:ry},E0=20;function nge({data:e,selected:t,onSelect:n,onOpen:r,onReply:i}){let a=new f0(e),o=a.groups,[s,c]=(0,h.useState)(new Set),l=e=>c(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}),u=(e,n)=>t?.kind===e&&t.id===n,d=e=>a.branch(e).map(({session:e,depth:a})=>(0,U.jsx)(age,{session:e,level:a+2,selected:u(`session`,e.id)&&(!t?.machine||t.machine===e.machine),onSelect:n,onOpen:r,onReply:i},d0(e)));return(0,U.jsx)(x_.ScrollContainer,{minWidth:1032,type:`native`,children:(0,U.jsxs)(x_,{"aria-label":`Fleet tree`,layout:`fixed`,children:[(0,U.jsx)(x_.Thead,{children:(0,U.jsxs)(x_.Tr,{children:[(0,U.jsx)(x_.Th,{w:100,children:`State`}),(0,U.jsx)(x_.Th,{children:`Name`}),(0,U.jsx)(x_.Th,{w:120,children:`Agent`}),(0,U.jsx)(x_.Th,{w:100,children:`Branch`}),(0,U.jsx)(x_.Th,{w:124,ta:`right`,children:`Memory`}),(0,U.jsx)(x_.Th,{w:96,ta:`right`,children:`Last activity`}),(0,U.jsx)(x_.Th,{w:144,children:(0,U.jsx)(el,{children:`Actions`})})]})}),(0,U.jsx)(x_.Tbody,{children:o.map(e=>{let t=!s.has(e.machine.id);return[(0,U.jsx)(rge,{group:e,open:t,selected:u(`machine`,e.machine.id),onToggle:()=>l(e.machine.id),onSelect:n},e.machine.id),...t?e.projects.flatMap(t=>[(0,U.jsx)(ige,{group:t,selected:u(`project`,t.project.id),onSelect:n},`${e.machine.id}/${t.project.id}`),...a.roots(e.machine.id,t.project.id).flatMap(d)]):[]]})})]})})}function rge({group:e,open:t,selected:n,onToggle:r,onSelect:i}){let a=e.machine,o=tge[a.kind??`desktop`],s=e.projects.reduce((e,t)=>e+t.sessions.length,0);return(0,U.jsxs)(x_.Tr,{className:`fleet-row`,"data-selected":n,children:[(0,U.jsx)(x_.Td,{children:(0,U.jsxs)(q,{gap:4,wrap:`nowrap`,children:[(0,U.jsx)(Bm,{size:7,color:a.reachable?`var(--mantine-color-success-filled)`:`transparent`,withShadow:!1,"aria-hidden":!0,style:{border:a.reachable?void 0:`1px solid var(--driga-muted)`,flex:`none`}}),(0,U.jsx)(J,{fz:`xs`,ff:`monospace`,c:`dimmed`,truncate:!0,title:a.reachable?`reachable`:`last seen ${E1(a.lastSeen)}`,children:a.reachable?`reachable`:`seen ${E1(a.lastSeen)}`})]})}),(0,U.jsx)(x_.Td,{children:(0,U.jsxs)(q,{gap:4,wrap:`nowrap`,children:[(0,U.jsx)(cu,{size:`sm`,"aria-label":`${t?`Collapse`:`Expand`} ${a.name}`,"aria-expanded":t,onClick:r,children:t?(0,U.jsx)(pv,{size:14}):(0,U.jsx)(hv,{size:14})}),(0,U.jsx)(o,{size:14,"aria-hidden":!0,style:{flex:`none`}}),(0,U.jsx)(Qc,{className:`fleet-row-title`,miw:0,onClick:()=>i({kind:`machine`,id:a.id}),"aria-pressed":n,children:(0,U.jsx)(J,{fz:`sm`,fw:600,ff:`monospace`,truncate:!0,title:a.name,children:a.name})}),a.local&&(0,U.jsx)(ym,{size:`xs`,variant:`default`,style:{flex:`none`},children:`local`}),(0,U.jsx)(J,{fz:`xs`,c:`dimmed`,ff:`monospace`,style:{flex:`none`,whiteSpace:`nowrap`},children:A1(s,`session`)})]})}),(0,U.jsx)(x_.Td,{}),(0,U.jsx)(x_.Td,{}),(0,U.jsx)(x_.Td,{ta:`right`,children:(0,U.jsxs)(J,{fz:`xs`,ff:`monospace`,style:{whiteSpace:`nowrap`},children:[w1(a.memoryUsed),(0,U.jsxs)(J,{span:!0,fz:`xs`,ff:`monospace`,c:`dimmed`,children:[` / `,w1(a.memoryTotal)]})]})}),(0,U.jsx)(x_.Td,{}),(0,U.jsx)(x_.Td,{})]})}function ige({group:e,selected:t,onSelect:n}){return(0,U.jsxs)(x_.Tr,{className:`fleet-row`,"data-selected":t,children:[(0,U.jsx)(x_.Td,{}),(0,U.jsx)(x_.Td,{children:(0,U.jsxs)(q,{gap:4,wrap:`nowrap`,pl:E0,children:[(0,U.jsx)(Gv,{size:14,"aria-hidden":!0,style:{flex:`none`}}),(0,U.jsx)(Qc,{className:`fleet-row-title`,miw:0,onClick:()=>n({kind:`project`,id:e.project.id}),"aria-pressed":t,children:(0,U.jsx)(J,{fz:`sm`,fw:500,ff:`monospace`,truncate:!0,title:e.project.name,children:e.project.name})}),(0,U.jsx)(J,{fz:`xs`,c:`dimmed`,ff:`monospace`,style:{flex:`none`,whiteSpace:`nowrap`},children:A1(e.sessions.length,`session`)})]})}),(0,U.jsx)(x_.Td,{}),(0,U.jsx)(x_.Td,{}),(0,U.jsx)(x_.Td,{ta:`right`,children:(0,U.jsx)(J,{fz:`xs`,ff:`monospace`,c:`dimmed`,children:w1(e.memory)})}),(0,U.jsx)(x_.Td,{}),(0,U.jsx)(x_.Td,{})]})}function age({session:e,level:t,selected:n,onSelect:r,onOpen:i,onReply:a}){return(0,U.jsxs)(x_.Tr,{className:`fleet-row`,"data-selected":n,children:[(0,U.jsx)(x_.Td,{children:(0,U.jsx)(o0,{state:e.state,label:e.label,inferred:e.inferred,evidence:e.evidence})}),(0,U.jsx)(x_.Td,{children:(0,U.jsxs)(q,{gap:4,wrap:`nowrap`,pl:E0*t,style:{minWidth:0},children:[t>2&&(0,U.jsx)(J,{fz:`xs`,c:`dimmed`,"aria-hidden":!0,style:{flex:`none`},children:`↳`}),(0,U.jsx)(Qc,{className:`fleet-row-title`,onClick:()=>r({kind:`session`,id:e.id,machine:e.machine}),"aria-pressed":n,style:{minWidth:0},children:(0,U.jsx)(J,{fz:`sm`,truncate:!0,title:e.title,children:e.title})}),(0,U.jsxs)(J,{fz:`xs`,c:`dimmed`,ff:`monospace`,style:{flex:`none`,whiteSpace:`nowrap`},children:[`#`,e.id]})]})}),(0,U.jsx)(x_.Td,{children:(0,U.jsx)(_0,{agent:e.agent,name:!0,size:16})}),(0,U.jsx)(x_.Td,{children:e.branch&&(0,U.jsxs)(q,{gap:3,wrap:`nowrap`,children:[(0,U.jsx)(Yv,{size:12,"aria-hidden":!0,style:{flex:`none`}}),(0,U.jsx)(J,{fz:`xs`,ff:`monospace`,truncate:!0,title:e.branch,children:e.branch})]})}),(0,U.jsx)(x_.Td,{ta:`right`,children:(0,U.jsx)(J,{fz:`xs`,ff:`monospace`,children:w1(e.memory)})}),(0,U.jsx)(x_.Td,{ta:`right`,children:(0,U.jsx)(J,{fz:`xs`,ff:`monospace`,c:`dimmed`,title:D1(e.lastActivity),children:E1(e.lastActivity)})}),(0,U.jsx)(x_.Td,{children:(0,U.jsxs)(q,{gap:2,wrap:`nowrap`,justify:`flex-end`,className:`fleet-row-actions`,children:[e.state===`waiting`&&(0,U.jsx)(Om,{size:`compact-xs`,variant:`subtle`,style:{flex:`none`,whiteSpace:`nowrap`},"aria-label":`Reply to ${e.title}`,onClick:()=>a(e),children:`Reply`}),(0,U.jsx)(Om,{size:`compact-xs`,variant:`subtle`,color:`gray`,style:{flex:`none`,whiteSpace:`nowrap`},"aria-label":`Open ${e.title}`,onClick:()=>i(e),children:`Open`})]})})]})}var oge=[{value:`flow`,label:`Flow`},{value:`tree`,label:`Tree`}];function sge({machines:e,projects:t,sessions:n,strips:r,selected:i,defaultSelected:a,onSelect:o,onOpen:s,onReply:c,mode:l,defaultMode:u,onModeChange:d}){let f=(0,h.useMemo)(()=>({machines:e,projects:t,sessions:n}),[e,t,n]),[p,m]=ae({value:i,defaultValue:a,finalValue:null,onChange:o}),[g,_]=ae({value:l,defaultValue:u,finalValue:`flow`,onChange:d}),v=(0,h.useMemo)(()=>new f0(f).groups,[f]),y=p?.kind===`machine`&&e.some(e=>e.id===p.id)?p.id:null;(0,h.useEffect)(()=>{p?.kind===`machine`&&!e.some(e=>e.id===p.id)&&m(null)},[e,p,m]);let b=(0,h.useMemo)(()=>y?{machines:f.machines.filter(e=>e.id===y),projects:f.projects,sessions:f.sessions.filter(e=>e.machine===y)}:f,[f,y]),x=(0,h.useCallback)(e=>ege(b,e),[b]),S=(0,h.useCallback)((e,t)=>{let n=$he(t);n&&m(n)},[m]);return e.length?(0,U.jsxs)(i_,{gap:`sm`,h:`100%`,style:{minHeight:0},children:[(0,U.jsx)(p0,{...f,children:(0,U.jsx)(Gg,{size:`xs`,value:g,onChange:e=>_(e),data:oge,"aria-label":`View`})}),(0,U.jsx)(Zhe,{groups:v,strips:r,selected:y,onSelect:e=>m(e?{kind:`machine`,id:e}:null)}),(0,U.jsxs)(bf,{className:`fleet-body`,direction:{base:`column`,lg:`row`},align:`stretch`,wrap:`nowrap`,gap:`sm`,role:`region`,"aria-label":`Fleet`,tabIndex:0,children:[(0,U.jsx)(Fm,{padding:`sm`,className:`fleet-chart`,role:`region`,"aria-label":`Fleet flow`,tabIndex:0,children:g===`flow`?(0,U.jsxs)(i_,{gap:4,style:{flex:1,minHeight:0},children:[b.sessions.length?(0,U.jsx)(K,{style:{flex:1,minHeight:Qhe(b.sessions.length),display:`flex`,flexDirection:`column`},children:(0,U.jsx)(R1,{option:x,label:`Fleet flow from machines through projects to sessions`,height:`100%`,onEvent:S})}):(0,U.jsx)(J,{fz:`sm`,c:`dimmed`,py:`xl`,ta:`center`,children:`No sessions on this machine right now.`}),(0,U.jsx)(J,{ff:`monospace`,fz:`xs`,c:`dimmed`,style:{flex:`none`},children:`width = memory (minimum shown) · colour = state`})]}):(0,U.jsx)(nge,{data:b,selected:p,onSelect:m,onOpen:s,onReply:c})}),(0,U.jsx)(Whe,{data:f,selection:p,onSelect:m,onOpen:s,onReply:c})]})]}):(0,U.jsxs)(i_,{gap:`sm`,h:`100%`,children:[(0,U.jsx)(p0,{...f}),(0,U.jsx)(Ehe,{})]})}var cge={name:`Fleet`,panels:[{id:`machines`,title:`Machines`,viz:`table`,source:`machines`,limit:200},{id:`sessions`,title:`Sessions`,viz:`table`,source:`sessions`,limit:200},{id:`flow`,title:`Flow`,viz:`table`,source:`flow`,columns:[`id`,`parent_id`,`started_at`,`ended_at`,`last_tool`,`reason`,`machine_id`],limit:200},{id:`orphans`,title:`Leftover`,viz:`table`,source:`orphans`,limit:200},{id:`projects`,title:`Projects`,viz:`table`,source:`projects`,limit:200},{id:`memory`,title:`Memory by role`,viz:`table`,source:`memory`,limit:200},{id:`heatmap`,title:`Tool calls by project`,viz:`timeseries`,source:`activity_heatmap`,by:`project`,measure:`sum:tool_calls`}]},D0=e=>e==null?``:String(e),O0=e=>typeof e==`number`?e:0,k0=e=>typeof e==`number`?e:void 0,A0=(e,t)=>JSON.stringify([D0(e),D0(t)]);function lge(e){try{let t=JSON.parse(D0(e));return Array.isArray(t)?t.filter(e=>typeof e==`string`):[]}catch{return[]}}function uge(e){let t=a0(e);return t.state?{state:t.state,inferred:t.inferred}:t.label===`dead`?{state:`stuck`,label:`dead`,inferred:!0}:{state:`idle`,label:t.label||void 0,inferred:!0}}function j0(e,t){let n=t=>mS(e.results.find(e=>e.id===t)?.frame),r=Date.parse(e.observed_at)||Date.now(),i=new Map;for(let e of n(`orphans`)){let t=i.get(D0(e.machine_id))??{trees:0,processes:0,memory:0};i.set(D0(e.machine_id),{trees:t.trees+1,processes:t.processes+O0(e.processes),memory:t.memory+O0(e.rss_bytes)})}let a=new Map;for(let e of n(`memory`)){let t=[D0(e.agent),D0(e.role)].filter(Boolean).join(` · `);a.set(D0(e.machine),[...a.get(D0(e.machine))??[],{label:t,value:O0(e.rss_bytes)}])}let o=n(`machines`).map(e=>{let t=D0(e.machine_id),n=D0(e.machine),o=D0(e.state);return{id:t,name:n,kind:D0(e.os)===`linux`?`server`:`desktop`,local:o===`local`,reachable:o===`local`||o===`live`,lastSeen:new Date(r-O0(e.last_seen)).toISOString(),memoryUsed:O0(e.mem_used_bytes),memoryTotal:O0(e.mem_total_bytes),cpuPercent:typeof e.cpu_percent==`number`?e.cpu_percent:void 0,diskFree:k0(e.disk_free_bytes),diskTotal:k0(e.disk_total_bytes),leftover:i.get(t),memoryByRole:a.get(n)}}),s=[];for(let e of n(`projects`)){let t=D0(e.project);t&&!s.some(e=>e.id===t)&&s.push({id:t,name:t,repo:D0(e.path)})}let c=new Map(n(`flow`).map(e=>[A0(e.machine_id,e.id),e])),l=new Map;for(let e of mS(t?.results[0]?.frame))e.kind===`waiting`&&D0(e.session_id)&&D0(e.session_id)!==`0`&&l.set(A0(e.machine_id,e.session_id),[e.reason||`waiting`,e.tool,e.detail].filter(Boolean).join(` · `));let u=n(`sessions`).map(t=>{let n=D0(t.id),r=A0(t.machine_id,n),i=c.get(r),a=uge(D0(t.label));return{id:n,title:D0(t.title)||`Session ${n}`,state:a.state,label:a.label,inferred:a.inferred||t.inferred===!0,evidence:D0(t.evidence)||void 0,agent:D0(t.agent),project:D0(t.project),machine:D0(t.machine_id),branch:D0(t.branch)||void 0,memory:O0(t.mem_bytes),turns:D0(t.turns).split(`,`).filter(e=>[`ok`,`waited`,`failed`].includes(e)),files:lge(t.edited),parent:i&&D0(i.parent_id)&&D0(i.parent_id)!==`0`?D0(i.parent_id):void 0,lastTool:D0(i?.last_tool)||void 0,lastActivity:D0(t.last_activity_at)||e.observed_at,started:D0(i?.started_at)||void 0,waiting:a.state===`waiting`?l.get(r)??(D0(i?.reason)||void 0):void 0}});for(let e of u)e.project&&!s.some(t=>t.id===e.project)&&s.push({id:e.project,name:e.project,repo:``});return{machines:o,projects:s,sessions:u}}function dge({fragment:e,inbox:t,act:n}){let r=(0,h.useMemo)(()=>e?j0(e,t):null,[e,t]),i=(0,h.useMemo)(()=>t0(e),[e]),a=(0,h.useMemo)(()=>r?The(i,e0(r,i.polls)):{},[i,r]),{projects:o,cols:s,values:c}=(0,h.useMemo)(()=>{let t=mS(e?.results.find(e=>e.id===`heatmap`)?.frame),n=[...new Set(t.map(e=>String(e.series)))],r=[...new Set(t.map(e=>String(e.ts)))].sort(),i=new Map(t.map(e=>[JSON.stringify([e.series,e.ts]),Number(e.value??0)]));return{projects:n,cols:r.map(e=>new Date(e).toLocaleTimeString([],{hour:`2-digit`,hour12:!1})),values:n.map(e=>r.map(t=>i.get(JSON.stringify([e,t]))??0))}},[e]);if(!r)return(0,U.jsx)(J,{size:`sm`,c:`dimmed`,children:`Loading…`});let l=e=>{let t=Number(e.id);n&&Number.isSafeInteger(t)&&t>0&&n({kind:`jump`,row:{session_id:t,machine_id:e.machine}})};return(0,U.jsxs)(i_,{gap:`sm`,style:{flex:1,minHeight:0,overflowY:`auto`},children:[(0,U.jsx)(K,{style:{flex:1,minHeight:600},children:(0,U.jsx)(sge,{...r,strips:a,onSelect:()=>void 0,onOpen:l,onReply:l})}),o.length>0&&(0,U.jsxs)(K,{py:`sm`,children:[(0,U.jsx)(J,{size:`xs`,fw:600,c:`dimmed`,mb:6,children:`Tool calls by project · last 24 hours`}),(0,U.jsx)(mhe,{rows:o,cols:s,values:c,format:String,unit:`tool calls`,label:`Tool calls by project, last 24 hours`})]})]})}var M0=(0,h.createContext)({});function N0(){return(0,h.useContext)(M0)}var fge={jump:`Open pane`,ack:`Mark reviewed`,open:`Open`,stop:`Stop`,kill:`Kill`,force_kill:`Force kill`,cleanup:`Remove`,summarize:`Summarize`};function P0(e){return fge[e]}function F0(e,t,n){let r=!t.machine_id||t.machine_id===n;switch(e){case`orphans`:return r&&t.verified===!0&&t.young!==!0?[`kill`,`force_kill`]:[];case`cleanup`:return t.status===`ready`?[`cleanup`]:[];case`sessions`:case`flow`:return r&&t.label!==`ended`&&t.label!==`dead`?[`jump`,`stop`]:[];case`projects`:return r&&t.path?[`summarize`]:[];default:return[]}}var I0=class extends Error{status;constructor(e,t){super(e),this.status=t}};async function L0(e,t,n){let r=await fetch(e,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t),signal:n});if(!r.ok)throw new I0((await r.text()).trim()||`${r.status}`,r.status);return r.json()}async function R0(e,t){let n=await fetch(e,{signal:t});if(!n.ok)throw new I0((await n.text()).trim()||`${n.status}`,n.status);return n.json()}var z0={reset:(e,t)=>L0(`/app/api/reset`,{id:e,base_version:t}).then(pS),catalog:()=>L0(`/app/api/catalog`,{}).then(e=>e.widgets),replace:(e,t,n,r,i)=>L0(`/app/api/replace`,{id:e,dashboard:t,base_version:n,vars:r,message:i}).then(pS),list:()=>L0(`/app/api/list`,{}).then(e=>e.dashboards),open:(e,t,n)=>L0(`/app/api/open`,{id:e,vars:t},n).then(pS),run:(e,t,n)=>L0(`/app/api/run`,{dashboard:e,vars:t},n).then(pS),create:(e,t)=>L0(`/app/api/create`,{dashboard:e,message:t}).then(pS),delete:e=>L0(`/app/api/delete`,{id:e}),edit:(e,t,n,r,i)=>L0(`/app/api/edit`,{id:e,operations:t,base_version:n,vars:r,message:i}).then(pS)};async function B0(e,t){try{let n=await L0(`/app/confirm`,{message:e,request:t});return n.confirmed===!0?n:{confirmed:!1}}catch{return{confirmed:!1}}}async function V0(e){return(await B0(e)).confirmed}async function pge(e,t){let n=await B0(e,t);return!n.confirmed||typeof n.token!=`string`||n.token.length===0?!1:(await H0({...t,token:n.token}),!0)}function H0(e){return L0(`/app/action`,e)}var U0={history:()=>R0(`/chat/api/history`),create:()=>L0(`/chat/api/new`,{}),send:(e,t,n)=>L0(`/chat/api/send`,{id:e,text:t,context:n}),stop:e=>L0(`/chat/api/stop`,{id:e}),decide:(e,t,n)=>L0(`/chat/api/decide`,{id:e,action:t,allow:n}),decideSimilar:(e,t)=>L0(`/chat/api/decide`,{id:e,action:t,allow:!0,similar:!0}),answerSimilar:e=>L0(`/chat/api/prompt-answer`,{id:e,allow:!0,similar:!0}),revokeGrant:e=>L0(`/chat/api/grant-revoke`,{id:e}),grantHistory:()=>R0(`/chat/api/grant-history`).then(e=>e??[]),setMode:(e,t)=>L0(`/chat/api/mode`,{id:e,mode:t}),bursts:()=>R0(`/chat/api/prompt-bursts`).then(e=>e??[]),decideBurst:(e,t,n)=>L0(`/chat/api/burst-decide`,{id:e,members:t,allow:n}),prompts:()=>R0(`/chat/api/prompts`).then(e=>e??[]),answer:(e,t)=>L0(`/chat/api/prompt-answer`,{id:e,allow:t}),wait:(e,t,n)=>R0(`/chat/api/wait?id=${encodeURIComponent(e)}&after=${t}`,n)};function mge(e){return hge(e)||typeof e==`function`||gge(e)}function hge(e){return typeof e==`function`&&(()=>{let t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function gge(e){return typeof e==`object`&&typeof e.$$typeof==`symbol`&&[`react.memo`,`react.forward_ref`].includes(e.$$typeof.description)}function W0(e,t){return e==null?null:mge(e)?h.createElement(e,t):e}function _ge(e){if(`cell`in e&&e.cell){let t=e.cell,n=t.column.columnDef,r=t,i=n;return r.getIsAggregated?.()?W0(i.aggregatedCell??n.cell,t.getContext()):r.getIsPlaceholder?.()?null:W0(n.cell,t.getContext())}return`header`in e&&e.header?W0(e.header.column.columnDef.header,e.header.getContext()):`footer`in e&&e.footer?W0(e.footer.column.columnDef.footer,e.footer.getContext()):null}function vge({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0)n=e.nextSub;else{for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}}while(1)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(1)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function yge(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var G0=[],K0=0,{link:q0,unlink:bge,propagate:xge,checkDirty:J0,shallowPropagate:Y0}=vge({update(e){return e._update()},notify(e){G0[Z0++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,e2(e))}}),X0=0,Z0=0,Q0,$0=0;function Sge(e){try{++$0,e()}finally{--$0||t2()}}function e2(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=bge(n,e)}function t2(){if(!($0>0)){for(;X0{i.get(),n.current?(Q0=void 0,t.next?.(i._snapshot)):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=Q0,o=t?.compare??Object.is;if(n)Q0=i,++K0,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=5);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{Q0=a,n&&(i.flags&=-5),e2(i)}}};return n?(i.flags=17,i.get=function(){let e=i.flags;if(e&16||e&32&&J0(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Y0(e)}}else e&32&&(i.flags=e&-33);return Q0!==void 0&&q0(i,Q0,K0),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(xge(e),Y0(e),t2())}},i}function wge(e){let t=()=>{let t=Q0;Q0=n,++K0,n.depsTail=void 0,n.flags=6;try{return e()}finally{Q0=t,n.flags&=-5,e2(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){let e=this.flags;e&16||e&32&&J0(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,e2(this)}};return t(),n}function n2(e,t){if(Object.is(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!t.has(n)||!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();let n=r2(e);if(n.length!==r2(t).length)return!1;for(let r=0;r{var t=m();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),Ege=o(((e,t)=>{t.exports=Tge()})),Dge=o((e=>{var t=m(),n=Ege();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),Oge=o(((e,t)=>{t.exports=Dge()}))();function kge(e,t){return e===t}function i2(e,t=e=>e,n){let r=n?.compare??kge,i=(0,h.useCallback)(t=>{let{unsubscribe:n}=e.subscribe(t);return n},[e]),a=(0,h.useCallback)(()=>e.get(),[e]);return(0,Oge.useSyncExternalStoreWithSelector)(i,a,a,t,r)}function Age(e){let t=i2(e.source,e.selector,{compare:n2});return typeof e.children==`function`?e.children(t):e.children}function jge(e){let t=e;return Object.defineProperty(e,"state",{get(){return e.get()}}),`set`in e&&(t.setState=e.set.bind(e)),t}function Mge(e){let{createAtom:t,batch:n}=e,r=t(0);return{createOptionsStore:!1,wrapExternalAtoms:!1,addSubscription:()=>{throw Error(`Feature not supported in current reactivity implementation`)},unmount:()=>{throw Error(`Feature not supported in current reactivity implementation`)},schedule:e.schedule??(e=>queueMicrotask(e)),batch:n,untrack:e=>e(),createReadonlyAtom:(e,n)=>{let i=n?.compare??Object.is,a=!1,o,s=()=>{let t=e();return a&&i(o,t)||(o=t,a=!0),o},c=t(()=>(r.get(),s()),{compare:i});return{get:s,subscribe:c.subscribe.bind(c)}},createWritableAtom:(e,n)=>t(e,{compare:n?.compare}),commit:()=>{r.set(e=>e+1)}}}function Nge(e,t=Object.is){let n=!1,r;return{get:e.get,markCommitted:e=>{r=e,n=!0},subscribe:i=>e.subscribe(e=>{n&&t(r,e)||i(e)})}}function Pge(){return Mge({createAtom:Cge,batch:Sge})}function a2(e,t){return typeof e==`function`?e(t):e}function o2(e){if(Array.isArray(e))return e.map(o2);if(e&&typeof e==`object`){let t=Object.getPrototypeOf(e);if(t!==Object.prototype&&t!==null)return e;let n=t===null?s2():{},r=Object.keys(e);for(let t=0;t{(t.options.atoms?.[e]??t.baseAtoms[e]).set(e=>a2(n,e))}}function l2(e){if(typeof e!=`object`||!e)return!1;if(Array.isArray(e))return!0;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function u2(e){return Reflect.ownKeys(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}var Lge=3;function Rge(e,t){return d2(e,t,Lge)}function d2(e,t,n){if(Object.is(e,t))return!0;if(n<=0||!l2(e)||!l2(t)||(Array.isArray(e)||Array.isArray(t))&&(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length))return!1;let r=u2(e),i=u2(t);if(r.length!==i.length)return!1;let a=e,o=t;for(let e=0;e{let t=a2(n,e);return r(e,t)?e:t})}function Bge(e){return e instanceof Function}function Vge(e,t){let n=[],r=e=>{e.forEach(e=>{n.push(e);let i=t(e);i.length&&r(i)})};return r(e),n}var Hge=({fn:e,memoDeps:t,onAfterCompare:n,onAfterUpdate:r,onBeforeCompare:i,onBeforeUpdate:a})=>{let o=[],s;return c=>{i?.();let l=t?.(c),u=!l||l.length!==o?.length;if(!u&&l){for(let e=0;e{t?e():t=!0}}function p2({feature:e,fnName:t,objectId:n,onAfterUpdate:r,table:i,...a}){let o={onAfterUpdate:r?()=>{let{schedule:e,untrack:t}=i._reactivity;e(()=>t(()=>r()))}:void 0};return Hge({...a,...o})}function m2(e,t=`_`){let[n,r]=e.replace(t,` `).split(` `);return{fnKey:r,fnName:`${n}.${r}`,parentName:n}}function h2(e,t,n){for(let[r,{fn:i,memoDeps:a}]of Object.entries(n)){let{fnKey:n,fnName:o}=m2(r);t[n]=a?p2({memoDeps:a,fn:i,fnName:o,table:t,feature:e}):i}}function g2(e,t,n,r){for(let[i,{fn:a,memoDeps:o}]of Object.entries(r)){let{fnKey:r,fnName:s}=m2(i);if(o){let i=`_memo_${r}`;t[r]=function(...t){if(!this[i]){let t=this;this[i]=p2({memoDeps:e=>o(t,e),fn:(...e)=>a(t,...e),fnName:s,objectId:t.id,table:n,feature:e})}return this[i](...t)}}else t[r]=function(...e){return a(this,...e)}}}function Uge(e){return e.row.getValue(e.column.id)}function Wge(e){return e.getValue()??e.table.options.renderFallbackValue}function Gge(e){return{table:e.table,column:e.column,row:e.row,cell:e,getValue:()=>e.getValue(),renderValue:()=>e.renderValue()}}var Kge={assignCellPrototype:(e,t)=>{g2(`coreCellsFeature`,e,t,{cell_getValue:{fn:e=>Uge(e)},cell_renderValue:{fn:e=>Wge(e)},cell_getContext:{fn:e=>Gge(e),memoDeps:e=>[e]}})}};function qge(e){if(!e._columnPrototype){e._columnPrototype={table:e};let t=Object.values(e._features);for(let n=0;n{let n=t;for(let t=0;te[i.accessorKey]}if(!s)throw Error();let l=qge(e),u=Object.create(l);u.accessorFn=c,u.columnDef=i,u.columns=[],u.depth=n,u.id=`${String(s)}`,u.parent=r;let d=e._columnInstanceInitFns;for(let e=0;ee.getFlatColumns())]}function n_e(e){if(e.columns.length){let t=e.columns.flatMap(e=>e.getLeafColumns());return v2(e.table,t)}return[e]}function r_e(e){return{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>e.renderValue()?.toString?.()??null,...Object.values(e._features).reduce((e,t)=>Object.assign(e,t.getDefaultColumnDef?.()),{}),...e.options.defaultColumn}}function b2(e,t,n,r=0){let i=Array(t.length);for(let a=0;ae.getFlatColumns())}function o_e(e){let t=s2(),n=e.getAllFlatColumns();for(let e=0;ee.getLeafColumns()))}function c_e(e){let t=s2(),n=e.getAllLeafColumns();for(let e=0;e{g2(`coreColumnsFeature`,e,t,{column_getFlatColumns:{fn:e=>t_e(e),memoDeps:e=>[e.table.options.columns]},column_getLeafColumns:{fn:e=>n_e(e),memoDeps:e=>[e.table.atoms.columnOrder?.get(),e.table.atoms.grouping?.get(),e.table.options.columns,e.table.options.groupedColumnMode]}})},constructTableAPIs:e=>{h2(`coreColumnsFeature`,e,{table_getDefaultColumnDef:{fn:()=>r_e(e),memoDeps:()=>[e.options.defaultColumn]},table_getAllColumns:{fn:()=>i_e(e),memoDeps:()=>[e.options.columns]},table_getAllFlatColumns:{fn:()=>a_e(e),memoDeps:()=>[e.options.columns]},table_getAllFlatColumnsById:{fn:()=>o_e(e),memoDeps:()=>[e.options.columns]},table_getAllLeafColumns:{fn:()=>s_e(e),memoDeps:()=>[e.atoms.columnOrder?.get(),e.atoms.grouping?.get(),e.options.columns,e.options.groupedColumnMode]},table_getAllLeafColumnsById:{fn:()=>c_e(e),memoDeps:()=>[e.getAllLeafColumns()]},table_getColumn:{fn:t=>l_e(e,t)}})}};function d_e(e){if(!e._headerPrototype){e._headerPrototype={table:e};let t=Object.values(e._features);for(let n=0;n0&&C2(s,t-1,n,r,i,a)}function w2(e){for(let t=0;te.id),e)}function y_e(e){return[...e.getHeaderGroups()].reverse()}function b_e(e){let t=e.getHeaderGroups(),n=[];for(let e=0;e{g2(`coreHeadersFeature`,e,t,{header_getLeafHeaders:{fn:e=>g_e(e),memoDeps:e=>[e.column.table.options.columns]},header_getContext:{fn:e=>__e(e),memoDeps:e=>[e.column.table.options.columns]}})},constructTableAPIs:e=>{h2(`coreHeadersFeature`,e,{table_getHeaderGroups:{fn:()=>v_e(e),memoDeps:()=>[e.options.columns,e.atoms.columnOrder?.get(),e.atoms.grouping?.get(),e.atoms.columnPinning?.get(),e.atoms.columnVisibility?.get(),e.options.groupedColumnMode]},table_getFooterGroups:{fn:()=>y_e(e),memoDeps:()=>[e.getHeaderGroups()]},table_getFlatHeaders:{fn:()=>b_e(e),memoDeps:()=>[e.getHeaderGroups()]},table_getLeafHeaders:{fn:()=>x_e(e),memoDeps:()=>[e.getHeaderGroups()]}})}};function C_e(e){if(!e._rowPrototype){e._rowPrototype={table:e};let t=Object.values(e._features);for(let n=0;n{let s=C_e(e),c=Object.create(s);c._displayIndexCache=-1,c._uniqueValuesCache=s2(),c._valuesCache=s2(),c.depth=i,c.id=t,c.index=r,c.original=n,c.parentId=o,c.subRows=a??[];let l=e._rowInstanceInitFns;for(let e=0;ep2({feature:`coreRowModelsFeature`,table:e,fnName:`table.getCoreRowModel`,memoDeps:()=>[e.options.data],fn:()=>E_e(e,e.options.data),onAfterUpdate:f2(()=>{Qge(e),y2(e),$ge(e),e_e(e)})})}function E2(e,t,n,r=0,i){let a=[];for(let o=0;o{h2(`coreRowModelsFeature`,e,{table_getCoreRowModel:{fn:()=>D_e(e)},table_getPreFilteredRowModel:{fn:()=>O_e(e)},table_getFilteredRowModel:{fn:()=>k_e(e)},table_getPreGroupedRowModel:{fn:()=>A_e(e)},table_getGroupedRowModel:{fn:()=>j_e(e)},table_getPreSortedRowModel:{fn:()=>M_e(e)},table_getSortedRowModel:{fn:()=>N_e(e)},table_getPreExpandedRowModel:{fn:()=>P_e(e)},table_getExpandedRowModel:{fn:()=>F_e(e)},table_getPrePaginatedRowModel:{fn:()=>I_e(e)},table_getPaginatedRowModel:{fn:()=>L_e(e)},table_getRowModel:{fn:()=>R_e(e)}})}};function B_e(e){if(!e._cellPrototype){e._cellPrototype={table:e};let t=Object.values(e._features);for(let n=0;ne.subRows)}function J_e(e){let t=e.getCoreRowModel().flatRows,n=0;for(let e=0;e{g2(`coreRowsFeature`,e,t,{row_getDisplayIndex:{fn:e=>H_e(e)},row_getAllCellsByColumnId:{fn:e=>Q_e(e),memoDeps:e=>[e.getAllCells()]},row_getAllCells:{fn:e=>Z_e(e),memoDeps:e=>[e.table.getAllLeafColumns()]},row_getLeafRows:{fn:e=>q_e(e),memoDeps:e=>[e.subRows]},row_getParentRow:{fn:e=>Y_e(e)},row_getParentRows:{fn:e=>X_e(e)},row_getUniqueValues:{fn:(e,t)=>G_e(e,t)},row_getValue:{fn:(e,t)=>W_e(e,t)},row_renderValue:{fn:(e,t)=>K_e(e,t)}})},constructTableAPIs:e=>{h2(`coreRowsFeature`,e,{table_getRowsInDisplayOrder:{fn:()=>U_e(e),memoDeps:()=>[e.getPrePaginatedRowModel().rows,e.options.paginateExpandedRows,e.options.paginateExpandedRows===!1?e.atoms.expanded?.get():void 0]},table_getRowId:{fn:(t,n,r)=>$_e(t,e,n,r)},table_getRow:{fn:(t,n)=>eve(e,t,n)},table_getMaxSubRowDepth:{fn:()=>J_e(e),memoDeps:()=>[e.getCoreRowModel()]}})}};function D2(e,t,n=(e,t)=>e===t){let r=t===void 0?e.options.state:t;e._reactivity.batch(()=>{if(r)for(let t in r){let i=e.baseAtoms[t];if(!i)continue;let a=r[t],o=a===void 0?e.initialState[t]:a;n(e._reactivity.untrack(()=>i.get()),o)||i.set(()=>o)}})}function O2(e,t,n=(e,t)=>e===t){e._reactivity.batch(()=>{D2(e,t,n),e._reactivity.commit?.()})}function nve(e){let t=o2(e.initialState);e._reactivity.batch(()=>{let n=Object.keys(t);for(let r=0;rr):e.options=r,n?.syncExternalState!==!1&&O2(e,r.state??null)}var ive={coreCellsFeature:Kge,coreColumnsFeature:u_e,coreHeadersFeature:S_e,coreRowModelsFeature:z_e,coreRowsFeature:tve,coreTablesFeature:{constructTableAPIs:e=>{h2(`coreTablesFeature`,e,{table_reset:{fn:()=>nve(e)},table_setOptions:{fn:t=>k2(e,t)}})}}};function ave(e){return e}function ove(e,t={}){return Object.values(e).forEach(e=>{t=e.getInitialState?.(t)??t}),o2(t)}function sve(e){let t=e.features.coreReactivityFeature,{aggregationFns:n,columnMeta:r,coreRowModel:i,expandedRowModel:a,facetedMinMaxValues:o,facetedRowModel:s,facetedUniqueValues:c,filterFns:l,filterMeta:u,filteredRowModel:d,groupedRowModel:f,paginatedRowModel:p,sortFns:m,sortedRowModel:h,tableMeta:g,..._}=e.features,v={_cellInstanceInitFns:[],_columnInstanceInitFns:[],_features:{...ive,..._},_headerGroupInstanceInitFns:[],_headerInstanceInitFns:[],_reactivity:t,_rowInstanceInitFns:[],_rowModelFns:{aggregationFns:n,filterFns:l,sortFns:m},_rowModels:{},atoms:{},baseAtoms:{}},y=Object.values(v._features),b={...y.reduce((e,t)=>Object.assign(e,t.getDefaultTableOptions?.(v)),{}),...e};if(t.wrapExternalAtoms&&b.atoms)for(let[e,n]of Object.entries(b.atoms)){let r=n,i=t.createWritableAtom(r.get(),{debugName:`externalAtom/${e}`});b.atoms[e]=i;let a=!1,o=r.subscribe(e=>{a||i.set(e)}),s=i.subscribe(e=>{a=!0,r.set(e),a=!1});t.addSubscription(o),t.addSubscription(s)}t.createOptionsStore?(v.optionsStore=t.createWritableAtom(b,{debugName:`table/optionsStore`}),Object.defineProperty(v,"options",{configurable:!0,enumerable:!0,get(){return v.optionsStore.get()},set(e){v.optionsStore.set(()=>e)}})):v.options=b,v.initialState=ove(v._features,v.options.initialState);let x=Object.keys(v.initialState);for(let e=0;e{let e=v.options,t=e.atoms?.[n],r=t?t.get():v.baseAtoms[n].get();if(t)return r;let i=e.state;if(i&&c2(i,n)){let e=i[n];return e===void 0?v.initialState[n]:e}return r},{debugName:`table/atoms/${n}`})}D2(v),v.store=jge(t.createReadonlyAtom(()=>{let e={};for(let t=0;t{let i=e.getValue(r),a=n.getValue(r),o=t.resolveDataValue;return o&&(i=o(i),a=o(a)),t.sort(i,a,e,n,r)},e);return t}var lve=A2({resolveDataValue:e=>dve(e).toLowerCase(),sort:(e,t)=>fve(e,t)}),j2=A2({sort:(e,t)=>uve(e,t)});function uve(e,t){return e===t?0:e>t?1:-1}function dve(e){return typeof e==`number`?isNaN(e)||e===1/0||e===-1/0?``:String(e):typeof e==`string`?e:``}function fve(e,t){let n=0,r=0,i=e.length,a=t.length;for(;n=48&&e<=57}function N2(e,t,n){let r=t+1;for(;ro)return 1;if(o>a)return-1}return o>s?1:s>o?-1:0}function mve(e,t,n,r,i,a){let o=t;for(;oi?1:i>t?-1:0}let u=parseInt(e.slice(t,n),10),d=parseInt(r.slice(i,a),10);return u>d?1:d>u?-1:0}function P2(e,t,n){let r=0;for(let i=t;i1)){r=`alphanumeric`;break}}if(!r&&i&&(r=`text`),r){let e=t?.[r];if(e||r===`alphanumeric`&&(e=t?.text),e)return e}return j2}function z2(e){let t=e.table.getFilteredRowModel().flatRows.slice(0,10);for(let n=0;n{let o=a.findIndex(t=>t.id===e.id),s=o===-1?void 0:a[o],c=[],l,u=i?t:r===`desc`,d=!!(a.length&&G2(e)&&n);return l=d?s?`toggle`:`add`:s?`toggle`:`replace`,l===`toggle`&&(i||r||(l=`remove`)),l===`add`?(c=[...a,{id:e.id,desc:u}],c.splice(0,c.length-(e.table.options.maxMultiSortColCount??2**53-1))):c=l===`toggle`?d?a.map(t=>t.id===e.id?{...t,desc:u}:t):[{id:e.id,desc:u}]:l===`remove`?d?a.filter(t=>t.id!==e.id):[]:[{id:e.id,desc:u}],c})}function H2(e){return e.columnDef.sortDescFirst??e.table.options.sortDescFirst??z2(e)===`desc`?`desc`:`asc`}function U2(e,t){let n=H2(e),r=K2(e);return r?r!==n&&(e.table.options.enableSortingRemoval??!0)&&(!t||(e.table.options.enableMultiRemove??!0))?!1:r===`desc`?`asc`:`desc`:n}function W2(e){return(e.columnDef.enableSorting??!0)&&(e.table.options.enableSorting??!0)&&!!e.accessorFn}function G2(e){return e.columnDef.enableMultiSort??e.table.options.enableMultiSort??!!e.accessorFn}function K2(e){let t=e.table.atoms.sorting?.get()?.find(t=>t.id===e.id);return t?t.desc?`desc`:`asc`:!1}function _ve(e){return e.table.atoms.sorting?.get()?.findIndex(t=>t.id===e.id)??-1}function vve(e){I2(e.table,t=>t.length?t.filter(t=>t.id!==e.id):[])}function yve(e){let t=W2(e);return n=>{t&&V2(e,void 0,G2(e)?e.table.options.isMultiSortEvent?.(n):!1)}}var bve={getInitialState(e){return{sorting:hve(),...e}},getDefaultColumnDef(){return{sortFn:`auto`,sortUndefined:1}},getDefaultTableOptions(e){return{autoResetSorting:!1,onSortingChange:Ige(`sorting`,e),isMultiSortEvent:e=>e.shiftKey}},assignColumnPrototype(e,t){g2(`rowSortingFeature`,e,t,{column_getAutoSortFn:{fn:e=>R2(e)},column_getAutoSortDir:{fn:e=>z2(e)},column_getSortFn:{fn:e=>B2(e)},column_toggleSorting:{fn:(e,t,n)=>V2(e,t,n)},column_getFirstSortDir:{fn:e=>H2(e)},column_getNextSortingOrder:{fn:(e,t)=>U2(e,t)},column_getCanSort:{fn:e=>W2(e)},column_getCanMultiSort:{fn:e=>G2(e)},column_getIsSorted:{fn:e=>K2(e)},column_getSortIndex:{fn:e=>_ve(e)},column_clearSorting:{fn:e=>vve(e)},column_getToggleSortingHandler:{fn:e=>yve(e)}})},constructTableAPIs(e){h2(`rowSortingFeature`,e,{table_autoResetSorting:{fn:()=>gve(e)},table_setSorting:{fn:t=>I2(e,t)},table_resetSorting:{fn:t=>L2(e,t)}})}};function xve(){return e=>{let t=e;return p2({feature:`rowSortingFeature`,table:t,fnName:`table.getSortedRowModel`,memoDeps:()=>[t.atoms.sorting?.get(),t.getPreSortedRowModel()],fn:()=>Sve(t),onAfterUpdate:f2(()=>y2(t))})}}function Sve(e){let t=e.getPreSortedRowModel(),n=e.atoms.sorting?.get();if(!t.rows.length||!n?.length)return t;let r=[],i=n.filter(t=>{let n=e.getColumn(t.id);return n?W2(n):!1});if(!i.length)return t;let a=[];for(let t=0;t{for(let n=0;n{let t=e.slice();t.sort(o);let n=!1;for(let i=0;i`u`?h.useEffect:h.useLayoutEffect;function wve(e,t){let[{table:n,rootSource:r}]=(0,h.useState)(()=>{let t=sve({...e,features:{coreReactivityFeature:Pge(),...e.features}});return t.Subscribe=(e=>Age({...e,source:e.source??t.store})),t.FlexRender=_ge,{table:t,rootSource:Nge(t.store,n2)}}),i=n;k2(i,t=>({...t,...e}),{syncExternalState:!1});let a=i.options.state,o=r.get(),s=i2(r,t,{compare:n2});return Cve(()=>{r.markCommitted(o),O2(i,a??null,n2)}),(0,h.useMemo)(()=>({...n,options:e,state:s}),[n,e,s])}function Tve(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Eve=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Dve=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ove={};function q2(e,t){return((t||Ove).jsx?Dve:Eve).test(e)}var kve=/[ \t\n\f\r]/g;function Ave(e){return typeof e==`object`?e.type===`text`&&J2(e.value):J2(e)}function J2(e){return e.replace(kve,``)===``}var Y2=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Y2.prototype.normal={},Y2.prototype.property={},Y2.prototype.space=void 0;function X2(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Y2(n,r,t)}function Z2(e){return e.toLowerCase()}var Q2=class{constructor(e,t){this.attribute=t,this.property=e}};Q2.prototype.attribute=``,Q2.prototype.booleanish=!1,Q2.prototype.boolean=!1,Q2.prototype.commaOrSpaceSeparated=!1,Q2.prototype.commaSeparated=!1,Q2.prototype.defined=!1,Q2.prototype.mustUseProperty=!1,Q2.prototype.number=!1,Q2.prototype.overloadedBoolean=!1,Q2.prototype.property=``,Q2.prototype.spaceSeparated=!1,Q2.prototype.space=void 0;var $2=s({boolean:()=>e4,booleanish:()=>t4,commaOrSpaceSeparated:()=>a4,commaSeparated:()=>i4,number:()=>$,overloadedBoolean:()=>n4,spaceSeparated:()=>r4}),jve=0,e4=o4(),t4=o4(),n4=o4(),$=o4(),r4=o4(),i4=o4(),a4=o4();function o4(){return 2**++jve}var s4=Object.keys($2),c4=class extends Q2{constructor(e,t,n,r){let i=-1;if(super(e,t),l4(this,`space`,r),typeof n==`number`)for(;++i4&&n.slice(0,4)===`data`&&Ive.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(_4,zve);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!_4.test(e)){let n=e.replace(Fve,Rve);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=c4}return new i(r,t)}function Rve(e){return`-`+e.toLowerCase()}function zve(e){return e.charAt(1).toUpperCase()}var Bve=X2([d4,Mve,m4,h4,g4],`html`),v4=X2([d4,Nve,m4,h4,g4],`svg`);function Vve(e){return e.join(` `).trim()}var Hve=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(` +`);u=~n?e.length-n:u+e.length}function p(){var e={line:l,column:u};return function(t){return t.position=new m(e),_(),t}}function m(e){this.start=e,this.end={line:l,column:u},this.source=t.source}m.prototype.content=e;function h(n){var r=Error(t.source+`:`+l+`:`+u+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=u,r.source=e,!t.silent)throw r}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function _(){g(i)}function v(e){var t;for(e||=[];t=y();)t!==!1&&e.push(t);return e}function y(){var t=p();if(e.charAt(0)==`/`&&e.charAt(1)==`*`){for(var n=2;e.charAt(n)!=``&&(e.charAt(n)!=`*`||e.charAt(n+1)!=`/`);)++n;if(n+=2,e.charAt(n-1)===``)return h(`End of comment missing`);var r=e.slice(2,n-2);return u+=2,f(r),e=e.slice(n),u+=2,t({type:`comment`,comment:r})}}function b(){var e=p(),t=g(a);if(t){if(y(),!g(o))return h(`property missing ':'`);var r=g(s),i=e({type:`declaration`,property:d(t[0].replace(n,``)),value:r?d(r[0].replace(n,``)):``});return g(c),i}}function x(){var e=[];v(e);for(var t;t=b();)t!==!1&&(e.push(t),v(e));return e}return _(),x()}function d(e){return e?e.replace(l,``):``}t.exports=u})),Uve=o(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var i=r(Hve());function a(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=(0,i.default)(e),a=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:i}=e;a?t(r,i,e):i&&(n||={},n[r]=i)}),n}})),Wve=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),Gve=o(((e,t,n)=>{var r=(n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(Uve()),i=Wve();function a(e,t){var n={};return!e||typeof e!=`string`||(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}a.default=a,t.exports=a})),y4=x4(`end`),b4=x4(`start`);function x4(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function Kve(e){let t=b4(e),n=y4(e);if(t&&n)return{start:t,end:n}}function S4(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?w4(e.position):`start`in e||`end`in e?w4(e):`line`in e||`column`in e?C4(e):``}function C4(e){return T4(e&&e.line)+`:`+T4(e&&e.column)}function w4(e){return C4(e&&e.start)+`-`+C4(e&&e.end)}function T4(e){return e&&typeof e==`number`?e:1}var E4=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=S4(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};E4.prototype.file=``,E4.prototype.name=``,E4.prototype.reason=``,E4.prototype.message=``,E4.prototype.stack=``,E4.prototype.column=void 0,E4.prototype.line=void 0,E4.prototype.ancestors=void 0,E4.prototype.cause=void 0,E4.prototype.fatal=void 0,E4.prototype.place=void 0,E4.prototype.ruleId=void 0,E4.prototype.source=void 0;var qve=l(Gve(),1),D4={}.hasOwnProperty,Jve=new Map,Yve=/[A-Z]/g,Xve=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),Zve=new Set([`td`,`th`]),O4=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function Qve(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=oye(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=aye(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?v4:Bve,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=k4(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function k4(e,t,n){if(t.type===`element`)return $ve(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return eye(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return nye(e,t,n);if(t.type===`mdxjsEsm`)return tye(e,t);if(t.type===`root`)return rye(e,t,n);if(t.type===`text`)return iye(e,t)}function $ve(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=v4,e.schema=i),e.ancestors.push(t);let a=N4(e,t.tagName,!1),o=sye(e,t),s=M4(e,t);return Xve.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!Ave(e)})),A4(e,o,a,t),j4(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function eye(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}P4(e,t.position)}function tye(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);P4(e,t.position)}function nye(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=v4,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:N4(e,t.name,!0),o=cye(e,t),s=M4(e,t);return A4(e,o,a,t),j4(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function rye(e,t,n){let r={};return j4(r,M4(e,t)),e.create(t,e.Fragment,r,n)}function iye(e,t){return t.value}function A4(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function j4(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function aye(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function oye(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=b4(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function sye(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&D4.call(t.properties,i)){let a=lye(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&Zve.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function cye(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else P4(e,t.position)}else{let i=r.name,a;if(r.value&&typeof r.value==`object`){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else P4(e,t.position)}else a=r.value===null||r.value;n[i]=a}return n}function M4(e,t){let n=[],r=-1,i=e.passKeys?new Map:Jve;for(;++ri?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(V4(e,e.length,0,t),e):t}var U4={}.hasOwnProperty;function W4(e){let t={},n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function K4(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var q4=n3(/[A-Za-z]/),J4=n3(/[\dA-Za-z]/),vye=n3(/[#-'*+\--9=?A-Z^-~]/);function Y4(e){return e!==null&&(e<32||e===127)}var X4=n3(/\d/),yye=n3(/[\dA-Fa-f]/),bye=n3(/[!-/:-@[-`{-~]/);function Z4(e){return e!==null&&e<-2}function Q4(e){return e!==null&&(e<0||e===32)}function $4(e){return e===-2||e===-1||e===32}var e3=n3(/\p{P}|\p{S}/u),t3=n3(/\s/);function n3(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function r3(e){let t=[],n=-1,r=0,i=0;for(;++n55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function i3(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return $4(r)?(e.enter(n),s(r)):t(r)}function s(r){return $4(r)&&a++0&&$4(t)?(e.enter(r),c(t)):l(t)}function c(t){return $4(t)&&o=i?t(e):n(e)}}var xye={tokenize:Sye};function Sye(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null)e.consume(n);else return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),i3(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null)e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);else return Z4(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var o3=class{constructor(){this.index=new Map,this.map=[]}add(e,t,n){s3(this,e,t,n,!1)}addBefore(e,t,n){s3(this,e,t,n,!0)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function s3(e,t,n,r,i){if(n===0&&r.length===0)return;let a=e.index.get(t);if(a){a[1]+=n,i?(r.push(...a[2]),a[2]=r):a[2].push(...r);return}let o=[t,n,r];e.map.push(o),e.index.set(t,o)}var Cye={tokenize:wye},c3={tokenize:Tye};function wye(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(ro))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;er;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Tye(e,t,n){return i3(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function l3(e){if(e===null||Q4(e)||t3(e))return 1;if(e3(e))return 2}function u3(e,t,n){let r=[],i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,o={...e[i][1].end},s={...e[n][1].start};f3(o,-a),f3(s,a);let c={type:a>1?`strongSequence`:`emphasisSequence`,start:o,end:{...e[i][1].end}},l={type:a>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:s},u={type:a>1?`strongText`:`emphasisText`,start:{...e[i][1].end},end:{...e[n][1].start}},d={type:a>1?`strong`:`emphasis`,start:{...c.start},end:{...l.end}};e[i][1].end={...c.start},e[n][1].start={...l.end},r=[],e[i][1].end.offset-e[i][1].start.offset&&(r=H4(r,[[`enter`,e[i][1],t],[`exit`,e[i][1],t]])),r=H4(r,[[`enter`,d,t],[`enter`,c,t],[`exit`,c,t],[`enter`,u,t]]),r=H4(r,u3(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),r=H4(r,[[`exit`,u,t],[`enter`,l,t],[`exit`,l,t],[`exit`,d,t]]);let f=0;e[n][1].end.offset-e[n][1].start.offset&&(f=2,r=H4(r,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])),V4(e,i-1,n-i+3,r),n=i+r.length-f-2;break}}for(n=-1;++n0&&$4(t)?i3(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||Z4(t)?e.check(v3,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||Z4(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),$4(t)?i3(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),$4(t)?i3(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||Z4(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}var b3={name:`codeIndented`,tokenize:Rye},Lye={partial:!0,tokenize:zye};function Rye(e,t,n){return r;function r(t){return e.enter(`codeIndented`),a3(e,i,n,`linePrefix`,4,4)(t)}function i(t){return t===null?o(t):Z4(t)?e.attempt(Lye,i,o)(t):(e.enter(`codeFlowValue`),a(t))}function a(t){return t===null||Z4(t)?(e.exit(`codeFlowValue`),i(t)):(e.consume(t),a)}function o(n){return e.exit(`codeIndented`),t(n)}}function zye(e,t,n){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):Z4(o)?(e.enter(`lineEnding`),e.consume(o),e.exit(`lineEnding`),i):a3(e,t,a,`linePrefix`,4,4)(o)}function a(e){return Z4(e)?i(e):n(e)}}var Bye={name:`codeText`,previous:Hye,resolve:Vye,tokenize:Uye};function Vye(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&x3(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),x3(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),x3(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0)){if(e=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function C3(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||Y4(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||Z4(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||Q4(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):Z4(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||Z4(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!$4(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function T3(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):Z4(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i3(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||Z4(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function E3(e,t){let n;return r;function r(i){return Z4(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):$4(i)?i3(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var Zye={name:`definition`,tokenize:$ye},Qye={partial:!0,tokenize:ebe};function $ye(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return w3.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=K4(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return Q4(t)?E3(e,l)(t):l(t)}function l(t){return C3(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(Qye,d,d)(t)}function d(t){return $4(t)?i3(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||Z4(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function ebe(e,t,n){return r;function r(t){return Q4(t)?E3(e,i)(t):n(t)}function i(t){return T3(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return $4(t)?i3(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||Z4(e)?t(e):n(e)}}var tbe={name:`hardBreakEscape`,tokenize:nbe};function nbe(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return Z4(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var rbe={name:`headingAtx`,resolve:ibe,tokenize:abe};function ibe(e,t){let n=e.length-2,r=3;if(e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r){let i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`};V4(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])}return e}function abe(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||Q4(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||Z4(n)?(e.exit(`atxHeading`),t(n)):$4(n)?i3(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||Q4(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var obe=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),D3=[`pre`,`script`,`style`,`textarea`],sbe={concrete:!0,name:`htmlFlow`,resolveTo:lbe,tokenize:ube},cbe={partial:!0,tokenize:dbe};function lbe(e){let t=e.length;for(;t--&&(e[t][0]!==`enter`||e[t][1].type!==`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function ube(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:ee):q4(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):q4(a)?(e.consume(a),i=4,r.interrupt?t:ee):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:ee):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return q4(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||Q4(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&D3.includes(l)?(i=1,r.interrupt?t(s):O(s)):obe.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||J4(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return $4(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||q4(t)?(e.consume(t),b):$4(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||J4(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):$4(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):$4(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||Z4(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||Q4(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||$4(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||Z4(t)?O(t):$4(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),M):t===60&&i===1?(e.consume(t),N):t===62&&i===4?(e.consume(t),I):t===63&&i===3?(e.consume(t),ee):t===93&&i===5?(e.consume(t),F):Z4(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(cbe,L,k)(t)):t===null||Z4(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(v3,A,L)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||Z4(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function M(t){return t===45?(e.consume(t),ee):O(t)}function N(t){return t===47?(e.consume(t),o=``,P):O(t)}function P(t){if(t===62){let n=o.toLowerCase();return D3.includes(n)?(e.consume(t),I):O(t)}return q4(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),P):O(t)}function F(t){return t===93?(e.consume(t),ee):O(t)}function ee(t){return t===62?(e.consume(t),I):t===45&&i===2?(e.consume(t),ee):O(t)}function I(t){return t===null||Z4(t)?(e.exit(`htmlFlowData`),L(t)):(e.consume(t),I)}function L(n){return e.exit(`htmlFlow`),t(n)}}function dbe(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(m3,t,n)}}var fbe={name:`htmlText`,tokenize:pbe};function pbe(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):q4(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):q4(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):Z4(t)?(o=d,N(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?M(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):Z4(t)?(o=h,N(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?M(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?M(t):Z4(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):Z4(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return q4(t)?(e.consume(t),S):n(t)}function S(t){return t===45||J4(t)?(e.consume(t),S):C(t)}function C(t){return Z4(t)?(o=C,N(t)):$4(t)?(e.consume(t),C):M(t)}function w(t){return t===45||J4(t)?(e.consume(t),w):t===47||t===62||Q4(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||q4(t)?(e.consume(t),E):Z4(t)?(o=T,N(t)):$4(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||J4(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):Z4(t)?(o=D,N(t)):$4(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):Z4(t)?(o=O,N(t)):$4(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,j):t===null?n(t):Z4(t)?(o=k,N(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||Q4(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||Q4(e)?T(e):n(e)}function M(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function N(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),P}function P(t){return $4(t)?i3(e,F,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):F(t)}function F(t){return e.enter(`htmlTextData`),o(t)}}var O3={name:`labelEnd`,resolveAll:_be,resolveTo:vbe,tokenize:ybe},mbe={tokenize:bbe},hbe={tokenize:xbe},gbe={tokenize:Sbe};function _be(e){let t=-1,n=[];for(;++t0&&i[i.length-1]._balanced;)i.pop();a=i[i.length-1]}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(K4(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(mbe,u,o?u:d)(t):t===91?e.attempt(hbe,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(gbe,u,d)(t)}function u(e){return i.pop(),t(e)}function d(e){return a._balanced=!0,n(e)}}function bbe(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return Q4(t)?E3(e,a)(t):a(t)}function a(t){return t===41?u(t):C3(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return Q4(t)?E3(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?T3(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return Q4(t)?E3(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function xbe(e,t,n){let r=this;return i;function i(t){return w3.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(K4(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function Sbe(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var Cbe={name:`labelStartImage`,resolveAll:O3.resolveAll,tokenize:wbe};function wbe(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),o}function o(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelImage`),s):n(t)}function s(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var Tbe={name:`labelStartLink`,resolveAll:O3.resolveAll,tokenize:Ebe};function Ebe(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelLink`),o}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var k3={name:`lineEnding`,tokenize:Dbe};function Dbe(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),i3(e,t,`linePrefix`)}}var A3={name:`thematicBreak`,tokenize:Obe};function Obe(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||Z4(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),$4(t)?i3(e,s,`whitespace`)(t):s(t))}}var j3={continuation:{tokenize:Mbe},exit:Pbe,name:`list`,tokenize:jbe},kbe={partial:!0,tokenize:Fbe},Abe={partial:!0,tokenize:Nbe};function jbe(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:X4(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(A3,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return X4(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(m3,r.interrupt?n:u,e.attempt(kbe,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return $4(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function Mbe(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(m3,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,i3(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!$4(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Abe,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,i3(e,e.attempt(j3,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function Nbe(e,t,n){let r=this;return i3(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function Pbe(e){e.exit(this.containerState.type)}function Fbe(e,t,n){let r=this;return i3(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!$4(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var M3={name:`setextUnderline`,resolveTo:Ibe,tokenize:Lbe};function Ibe(e,t){let n=new o3,r=e.length,i,a,o;for(;r--;)if(e[r][0]===`enter`){if(e[r][1].type===`content`){i=r;break}e[r][1].type===`paragraph`&&(a=r)}else e[r][1].type===`content`&&n.add(r,1,[]),!o&&e[r][1].type===`definition`&&(o=r);let s={type:`setextHeading`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type=`setextHeadingText`,o?(n.add(a,0,[[`enter`,s,t]]),n.add(o+1,0,[[`exit`,e[i][1],t]]),e[i][1].end={...e[o][1].end}):e[i][1]=s,n.add(e.length,0,[[`exit`,s,t]]),n.consume(e),e}function Lbe(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),$4(t)?i3(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||Z4(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var Rbe={tokenize:zbe};function zbe(e){let t=this,n=e.attempt(m3,r,e.attempt(this.parser.constructs.flowInitial,i,i3(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Kye,i)),`linePrefix`)));return n;function r(r){if(r===null)e.consume(r);else return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null)e.consume(r);else return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var Bbe={resolveAll:P3()},Vbe=N3(`string`),Hbe=N3(`text`);function N3(e){return{resolveAll:P3(e===`text`?Ube:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null)t.consume(e);else return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++iQbe,contentInitial:()=>Kbe,disable:()=>$be,document:()=>Gbe,flow:()=>Jbe,flowInitial:()=>qbe,insideSpan:()=>Zbe,string:()=>Ybe,text:()=>Xbe}),Gbe={42:j3,43:j3,45:j3,48:j3,49:j3,50:j3,51:j3,52:j3,53:j3,54:j3,55:j3,56:j3,57:j3,62:h3},Kbe={91:Zye},qbe={[-2]:b3,[-1]:b3,32:b3},Jbe={35:rbe,42:A3,45:[M3,A3],60:sbe,61:M3,95:A3,96:y3,126:y3},Ybe={38:_3,92:g3},Xbe={[-5]:k3,[-4]:k3,[-3]:k3,33:Cbe,38:_3,42:d3,60:[p3,fbe],91:Tbe,92:[tbe,g3],93:O3,95:d3,96:Bye},Zbe={null:[d3,Bbe]},Qbe={null:[42,95]},$be={null:[]};function exe(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=H4(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=u3(a,l.events,l),l.events):[]}function f(e,t){return nxe(p(e),t)}function p(e){return txe(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){for(;r._index-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function nxe(e,t){let n=-1,r=[],i;for(;++n0&&i(t.beforeEnter,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),I3.call(n,e[p][1].type)&&n[e[p][1].type].call({...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),e[p][0]===`exit`&&t.afterExit.length>0&&i(t.afterExit,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||z3).call(o,void 0,e[0])}for(r.position={start:L3(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:L3(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},p=-1;++p0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function gxe(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function _xe(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function vxe(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=r3(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function yxe(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function bxe(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function B3(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function xxe(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return B3(e,t);let i={src:r3(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Sxe(e,t){let n={src:r3(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Cxe(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function wxe(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return B3(e,t);let i={href:r3(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Txe(e,t){let n={href:r3(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Exe(e,t,n){let r=e.all(t),i=n?Dxe(n):V3(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s1}function Oxe(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=b4(t.children[1]),o=y4(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Nxe(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(W3(t.slice(i),i>0,!1)),a.join(``)}function W3(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===H3||t===U3;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===H3||t===U3;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function Ixe(e,t){let n={type:`text`,value:Fxe(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Lxe(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var Rxe={blockquote:pxe,break:mxe,code:hxe,delete:gxe,emphasis:_xe,footnoteReference:vxe,heading:yxe,html:bxe,imageReference:xxe,image:Sxe,inlineCode:Cxe,linkReference:wxe,link:Txe,listItem:Exe,list:Oxe,paragraph:kxe,root:Axe,strong:jxe,table:Mxe,tableCell:Pxe,tableRow:Nxe,text:Ixe,thematicBreak:Lxe,toml:G3,yaml:G3,definition:G3,footnoteDefinition:G3};function G3(){}var{defineProperty:zxe}=Object,K3=typeof self==`object`?self:globalThis,q3=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new K3[e](t)},Bxe=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o){let i=r(t),a=r(n);i===`__proto__`?zxe(e,i,{value:a,configurable:!0,enumerable:!0,writable:!0}):e[i]=a}return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(typeof K3[e]==`function`?q3(e,t):Error(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}case`-0`:return-0}return n(q3(a,o),i)};return r},J3=e=>Bxe(new Map,e)(0),Y3=``,{toString:Vxe}={},{keys:Hxe,is:Uxe}=Object,X3=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=Vxe.call(e).slice(8,-1);switch(n){case`Array`:return[1,Y3];case`Object`:return[2,Y3];case`Date`:return[3,Y3];case`RegExp`:return[4,Y3];case`Map`:return[5,Y3];case`Set`:return[6,Y3];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:e instanceof Error?[7,e.name||`Error`]:[2,n]},Z3=([e,t])=>e===0&&(t===`function`||t===`symbol`),Wxe=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=o=>{if(n.has(o))return n.get(o);let[s,c]=X3(o);switch(s){case 0:{let t=o;switch(c){case`bigint`:s=8,t=o.toString();break;case`number`:if(!o&&Uxe(o,-0))return r.push([`-0`])-1;break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+c);t=null;break;case`undefined`:return i([-1],o)}return i([s,t],o)}case 1:{if(c){let e=o;return c===`DataView`?e=new Uint8Array(o.buffer):c===`ArrayBuffer`&&(e=new Uint8Array(o)),i([c,[...e]],o)}let e=[],t=i([s,e],o);for(let t of o)e.push(a(t));return t}case 2:{if(c)switch(c){case`BigInt`:return i([c,o.toString()],o);case`Boolean`:case`Number`:case`String`:return i([c,o.valueOf()],o)}if(t&&`toJSON`in o)return a(o.toJSON());let n=[],r=i([s,n],o);for(let t of Hxe(o))(e||!Z3(X3(o[t])))&&n.push([a(t),a(o[t])]);return r}case 3:return i([s,isNaN(o.getTime())?Y3:o.toISOString()],o);case 4:{let{source:e,flags:t}=o;return i([s,{source:e,flags:t}],o)}case 5:{let t=[],n=i([s,t],o);for(let[n,r]of o)(e||!(Z3(X3(n))||Z3(X3(r))))&&t.push([a(n),a(r)]);return n}case 6:{let t=[],n=i([s,t],o);for(let n of o)(e||!Z3(X3(n)))&&t.push(a(n));return n}}let{message:l}=o;return i([s,{name:c,message:l}],o)};return a},Q3=(e,{json:t,lossy:n}={})=>{let r=[];return Wxe(!(t||n),!!t,new Map,r)(e),r},$3=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?J3(Q3(e,t)):structuredClone(e):(e,t)=>J3(Q3(e,t));function Gxe(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function Kxe(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function qxe(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||Gxe,r=e.options.footnoteBackLabel||Kxe,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...$3(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:` +`},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:` +`}]}}var e6=(function(e){if(e==null)return Zxe;if(typeof e==`function`)return t6(e);if(typeof e==`object`)return Array.isArray(e)?Jxe(e):Yxe(e);if(typeof e==`string`)return Xxe(e);throw Error(`Expected function, string, or object as test`)});function Jxe(e){let t=[],n=-1;for(;++n`:``))+`)`})}return o;function o(){let r=!a||l(e,t,n[n.length-1]||void 0),o=n6;if(s&&r&&(o=i6(s(e,n,t)),o[0]===!1))return o;if(`children`in e&&e.children){let t=e;if(t.children&&o[0]!==`skip`){let e=(i?-1:t.children.length)+u,r=[...n,t];for(;e>-1&&e0&&n.push({type:`text`,value:` +`}),n}function c6(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function l6(e,t){let n=rSe(e,t),r=n.one(e,void 0),i=qxe(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:` +`},i)),a}function cSe(e,t){return e&&`run`in e?async function(n,r){let i=l6(n,{file:r,...t});await e.run(i,r)}:function(n,r){return l6(n,{file:r,...e||t})}}function u6(e){if(e)throw e}var lSe=o(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});ft.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var f6={basename:fSe,dirname:pSe,extname:mSe,join:hSe,sep:`/`};function fSe(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);p6(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function pSe(e){if(p6(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function mSe(e){p6(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}}else n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function hSe(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function _Se(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1}i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function p6(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var vSe={cwd:ySe};function ySe(){return`/`}function m6(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function bSe(e){if(typeof e==`string`)e=new URL(e);else if(!m6(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return xSe(e)}function xSe(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n0){let[r,...a]=t,o=n[i][1];d6(o)&&d6(r)&&(r=(0,b6.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function x6(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function S6(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function C6(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function w6(e){if(!d6(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function T6(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function E6(e){return ESe(e)?e:new g6(e)}function ESe(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function DSe(e){return typeof e==`string`||OSe(e)}function OSe(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var D6=[],O6={allowDangerousHtml:!0},kSe=/^(https?|ircs?|mailto|xmpp)$/i,ASe=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function jSe(e){let t=MSe(e),n=NSe(e);return PSe(t.runSync(t.parse(n),n),e)}function MSe(e){let t=e.rehypePlugins||D6,n=e.remarkPlugins||D6,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...O6}:O6;return TSe().use(fxe).use(n).use(cSe,r).use(t)}function NSe(e){let t=e.children||``,n=new g6;return typeof t==`string`?n.value=t:``+t,n}function PSe(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||FSe;for(let e of ASe)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return a6(e,l),Qve(e,{Fragment:U.Fragment,components:i,ignoreInvalidStyle:!0,jsx:U.jsx,jsxs:U.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in F4)if(Object.hasOwn(F4,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=F4[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function FSe(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||kSe.test(e.slice(0,t))?e:``}function k6(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function ISe(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function LSe(e,t,n){let r=e6((n||{}).ignore||[]),i=RSe(t),a=-1;for(;++a0?{type:`text`,value:i}:void 0),i===!1)o.lastIndex=n+1;else{if(c!==n&&f({type:`text`,value:e.value.slice(c,n)}),Array.isArray(i))for(let e of i)f(e);else i&&f(i);c=n+d[0].length,l=!0}if(!o.global)break;d=o.exec(e.value)}return l?(c?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=k6(e,`(`),a=k6(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function N6(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||t3(n)||e3(n))&&(!t||n!==47)}P6.peek=sCe;function $Se(){this.buffer()}function eCe(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function tCe(){this.buffer()}function nCe(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function rCe(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=K4(this.sliceSerialize(e)).toLowerCase(),n.label=t}function iCe(e){this.exit(e)}function aCe(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=K4(this.sliceSerialize(e)).toLowerCase(),n.label=t}function oCe(e){this.exit(e)}function sCe(){return`[`}function P6(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function cCe(){return{enter:{gfmFootnoteCallString:$Se,gfmFootnoteCall:eCe,gfmFootnoteDefinitionLabelString:tCe,gfmFootnoteDefinition:nCe},exit:{gfmFootnoteCallString:rCe,gfmFootnoteCall:iCe,gfmFootnoteDefinitionLabelString:aCe,gfmFootnoteDefinition:oCe}}}function lCe(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:P6},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?` +`:` `)+r.indentLines(r.containerFlow(e,a.current()),t?F6:uCe))),s(),o}}function uCe(e,t,n){return t===0?e:F6(e,t,n)}function F6(e,t,n){return(n?``:` `)+e}var dCe=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];I6.attention=gCe,I6.peek=_Ce;function fCe(){return{canContainEols:[`delete`],enter:{strikethrough:mCe},exit:{strikethrough:hCe}}}function pCe(){return{handlers:{delete:I6},unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:dCe}]}}function mCe(e){this.enter({type:`delete`,children:[],position:void 0},e)}function hCe(e){this.exit(e)}function I6(e,t,n,r){let i=n.createTracker(r),a=n.stack.includes(`strikethrough`)?`~`:`~~`,o=n.enter(`strikethrough`),s=i.move(a);return s+=n.containerPhrasing(e,{...i.current(),before:s,after:`~`}),s+=i.move(a),o(),s}function gCe(){return{construct:`strikethrough`,markers:[`~`],sizes:[2,1]}}function _Ce(){return`~`}function vCe(e){return e.length}function yCe(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||vCe,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++ul&&(l=e[u].length);++ac[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++dc[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),CCe);return i(),o}function CCe(e,t,n){return`>`+(n?``:` `)+e}function wCe(e,t){return R6(e,t.inConstruct,!0)&&!R6(e,t.notInConstruct,!1)}function R6(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++ro&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function ECe(e,t){return!(t.options.fences!==!1||!e.value||e.lang||!/[^\n\r ]/.test(e.value)||/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(e.value))}function DCe(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function OCe(e,t,n,r){let i=DCe(n),a=e.value||``;if(ECe(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,kCe);return e(),t}let o=n.createTracker(r),s=i.repeat(Math.max(TCe(a,i)+1,3)),c=n.enter(`codeFenced`),l=i==="`"?`GraveAccent`:`Tilde`,u=o.move(s);if(e.lang){let t=n.enter(`codeFencedLang${l}`);u+=o.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...o.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${l}`);u+=o.move(` `),u+=o.move(n.safe(e.meta,{before:u,after:` +`,encode:["`"],...o.current()})),t()}return u+=o.move(` +`),a&&(u+=o.move(a+` +`)),u+=o.move(s),c(),u}function kCe(e,t,n){return(n?``:` `)+e}function B6(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function ACe(e,t,n,r){let i=B6(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:` +`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function jCe(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}V6.attention=MCe,V6.peek=NCe;function V6(e,t,n,r){let i=n.enter(`phrasing`),a=n.containerPhrasing({type:`root`,children:[e]},r);return i(),a}function MCe(e,t){return{construct:`emphasis`,markers:jCe(t)===`*`?[`*`,`_`]:[`_`,`*`],sizes:[1]}}function NCe(e,t,n){return n.options.emphasis||`*`}function PCe(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function FCe(e,t){let n=!1;return a6(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&I4(e)&&(t.options.setext||n))}function ICe(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(FCe(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:` +`,after:` +`});return r(),t(),o+` +`+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(` +`))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:` +`,...a.current()}),u=l.charCodeAt(0);return(u===9||u===32)&&(l=PCe(u)+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}H6.peek=LCe;function H6(e){return e.value||``}function LCe(){return`<`}U6.peek=RCe;function U6(e,t,n,r){let i=B6(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function RCe(){return`!`}W6.peek=zCe;function W6(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=u.filter(function(e){return e!==`phrasing`}),o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function zCe(){return`!`}G6.peek=BCe;function G6(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^\n\r ]/.test(r)&&(/^[\n\r ]/.test(r)&&/[\n\r ]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a\u007F]/.test(e.url))}q6.peek=VCe;function q6(e,t,n,r){let i=B6(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r);if(K6(e,n)){let t=n.stack;n.stack=t.filter(function(e){return e!==`phrasing`});let r=n.enter(`autolink`),i=o.move(`<`);return i+=o.move(n.containerPhrasing(e,{before:i,after:`>`,...o.current()})),i+=o.move(`>`),r(),n.stack=t,i}let s=n.enter(`link`),c=n.enter(`label`),l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function VCe(e,t,n){return K6(e,n)?`<`:`[`}J6.peek=HCe;function J6(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=u.filter(function(e){return e!==`phrasing`}),o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function HCe(){return`[`}function Y6(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function UCe(e){let t=Y6(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function WCe(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function X6(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function GCe(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?WCe(n):Y6(n),s=e.ordered?o===`.`?`)`:`.`:UCe(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if(o!==`*`&&o!==`-`||!t||t.children&&t.children[0]||n.stack[n.stack.length-1]!==`list`||n.stack[n.stack.length-2]!==`listItem`||n.stack[n.stack.length-3]!==`list`||n.stack[n.stack.length-4]!==`listItem`||n.indexStack[n.indexStack.length-1]!==0||n.indexStack[n.indexStack.length-2]!==0||n.indexStack[n.indexStack.length-3]!==0||(c=!0),X6(n)===o&&t){let t=-1;for(;++t-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function JCe(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}function YCe(e,t,n,r){if(!e.children.some(function(e){return xCe(e)}))return n.containerFlow(e,r);let i=n.enter(`phrasing`),a=n.containerPhrasing(e,r);return i(),a}function XCe(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Z6.attention=ZCe,Z6.peek=QCe;function Z6(e,t,n,r){let i=n.enter(`phrasing`),a=n.containerPhrasing({type:`root`,children:[e]},r);return i(),a}function ZCe(e,t){return{construct:`strong`,markers:XCe(t)===`*`?[`*`,`_`]:[`_`,`*`],sizes:[2]}}function QCe(e,t,n){return n.options.strong||`*`}function $Ce(e,t,n,r){let i=t?t.children:[],a=i.indexOf(e);return n.safe(e.value,{...r,afterNode:i[a+1],beforeNode:i[a-1]})}function ewe(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function twe(e,t,n){let r=(X6(n)+(n.options.ruleSpaces?` `:``)).repeat(ewe(n));return n.options.ruleSpaces?r.slice(0,-1):r}var Q6={blockquote:SCe,break:z6,code:OCe,definition:ACe,emphasis:V6,hardBreak:z6,heading:ICe,html:H6,image:U6,imageReference:W6,inlineCode:G6,link:q6,linkReference:J6,list:GCe,listItem:qCe,paragraph:JCe,root:YCe,strong:Z6,text:$Ce,thematicBreak:twe};function nwe(){return{enter:{table:rwe,tableData:e8,tableHeader:e8,tableRow:awe},exit:{codeText:owe,table:iwe,tableData:$6,tableHeader:$6,tableRow:$6}}}function rwe(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function iwe(e){this.exit(e),this.data.inTable=void 0}function awe(e){this.enter({type:`tableRow`,children:[]},e)}function $6(e){this.exit(e)}function e8(e){this.enter({type:`tableCell`,children:[]},e)}function owe(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,swe));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function swe(e,t){return t===`|`?t:e}function cwe(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:` +`,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(` +`))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return yCe(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var Ewe={tokenize:Pwe,partial:!0};function Dwe(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:jwe,continuation:{tokenize:Mwe},exit:Nwe}},text:{91:{name:`gfmFootnoteCall`,tokenize:Awe},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:Owe,resolveTo:kwe}}}}function Owe(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=K4(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function kwe(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function Awe(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||Q4(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(K4(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return Q4(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function jwe(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||Q4(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=K4(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return Q4(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),i3(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function Mwe(e,t,n){return e.check(m3,t,e.attempt(Ewe,t,n))}function Nwe(e){e.exit(`gfmFootnoteDefinition`)}function Pwe(e,t,n){let r=this;return i3(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function Fwe(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=l3(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var Iwe=class{constructor(){this.map=[],this.index=new Map}add(e,t,n){Lwe(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function Lwe(e,t,n,r){if(n===0&&r.length===0)return;let i=e.index.get(t);if(i){i[1]+=n,i[2].push(...r);return}let a=[t,n,r];e.map.push(a),e.index.set(t,a)}function Rwe(e,t){let n=!1,r=[];for(;t-1;){let{type:e}=r.events[t][1];if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124||(o=!0,a+=1),u(e)}function u(t){return t===null?n(t):Z4(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):$4(t)?i3(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||Q4(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,$4(t)?i3(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return $4(t)?i3(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||Z4(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return $4(t)?i3(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||Z4(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||Z4(n)?(e.exit(`tableRow`),t(n)):$4(n)?i3(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||Q4(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function Vwe(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new Iwe;for(;++nn[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},_8(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function g8(e,t,n,r,i){let a=[],o=_8(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function _8(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var Hwe={name:`tasklistCheck`,tokenize:Wwe};function Uwe(){return{text:{91:Hwe}}}function Wwe(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return Q4(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return Z4(r)?t(r):$4(r)?e.check({tokenize:Gwe},t,n)(r):n(r)}}function Gwe(e,t,n){return i3(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function Kwe(e){return W4([_we(),Dwe(),Fwe(e),zwe(),Uwe()])}var qwe={};function Jwe(e){let t=this,n=e||qwe,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(Kwe(n)),a.push(pwe()),o.push(mwe(n))}function Ywe({items:e,format:t,label:n,max:r,onSelect:i,ranked:a}){let o=r??Math.max(0,...e.map(e=>e.value));return(0,U.jsx)(i_,{gap:4,role:`list`,"aria-label":n,children:e.map((e,n)=>{let r=o>0?`${Math.max(0,Math.min(100,e.value/o*100))}%`:`0%`,s=(0,U.jsxs)(q,{gap:`sm`,wrap:`nowrap`,align:`center`,className:i?`w-row`:void 0,"data-clickable":i?``:void 0,style:{borderRadius:`var(--mantine-radius-sm)`},children:[(0,U.jsxs)(K,{pos:`relative`,style:{flex:1,minWidth:0,height:28},children:[(0,U.jsx)(K,{"aria-hidden":!0,className:`w-bar`,pos:`absolute`,top:0,left:0,h:`100%`,w:r,style:{borderRadius:`var(--mantine-radius-sm)`,transition:`width 300ms ease-out`}}),(0,U.jsxs)(q,{pos:`relative`,gap:8,h:28,px:8,wrap:`nowrap`,style:{minWidth:0},children:[a&&(0,U.jsx)(J,{size:`xs`,ff:`monospace`,c:`dimmed`,w:16,style:{flex:`none`},children:n+1}),(0,U.jsx)(J,{size:`sm`,fw:500,truncate:!0,title:e.label,style:{minWidth:0},children:e.label}),e.sub&&(0,U.jsx)(J,{size:`xs`,c:`dimmed`,truncate:!0,title:e.sub,style:{minWidth:0,flex:`0 1 auto`},children:e.sub})]})]}),(0,U.jsx)(J,{size:`sm`,ff:`monospace`,ta:`right`,style:{flex:`none`,minWidth:64,whiteSpace:`nowrap`},children:t(e.value)})]});return(0,U.jsx)(K,{role:`listitem`,children:i?(0,U.jsx)(Qc,{w:`100%`,onClick:()=>i(e.id),children:s}):s},e.id)})})}var Xwe={empty:{color:`gray`,icon:Zte},"all-clear":{color:`success`,icon:Tv},error:{color:`danger`,icon:$te}};function Zwe(e){return new Date(e).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`})}function Qwe(e){let t=/^(.+?[.!?])\s+(.+)$/s.exec(e.trim());return t?{title:t[1],caption:t[2]}:{title:e.trim()}}function v8({kind:e=`empty`,title:t,caption:n,checkedAt:r,onRetry:i,command:a,action:o}){let{color:s,icon:c}=Xwe[e];return(0,U.jsxs)(q,{mih:56,px:`sm`,py:6,gap:`sm`,wrap:`nowrap`,role:e===`error`?`alert`:`status`,children:[(0,U.jsx)(w_,{variant:`light`,color:s,radius:`xl`,size:28,"aria-hidden":!0,styles:{root:{background:`var(--driga-tint-${e===`empty`?`neutral`:s})`}},children:(0,U.jsx)(c,{size:16})}),(0,U.jsxs)(i_,{gap:2,style:{flex:1,minWidth:0},children:[(0,U.jsx)(J,{size:`md`,fw:500,lh:1.2,children:t}),(n||r||a)&&(0,U.jsxs)(q,{gap:6,wrap:`wrap`,children:[n&&(0,U.jsx)(J,{size:`xs`,c:`dimmed`,lh:1.3,children:n}),r&&(0,U.jsxs)(J,{size:`xs`,c:`dimmed`,ff:`monospace`,lh:1.3,title:D1(r),children:[n?`· `:``,`checked `,Zwe(r)]}),a&&(0,U.jsx)(J,{size:`xs`,ff:`monospace`,className:`w-inset`,lh:1.3,style:{display:`inline-block`},children:a})]})]}),i&&(0,U.jsx)(Om,{size:`compact-xs`,variant:`subtle`,color:`gray`,leftSection:(0,U.jsx)(Vte,{size:12}),onClick:i,style:{flex:`none`},children:`Retry`}),o&&(0,U.jsx)(Om,{size:`compact-xs`,variant:`subtle`,onClick:o.onClick,style:{flex:`none`},children:o.label})]})}var y8=[],$we=[`1h`,`6h`,`24h`];function eTe({id:e,title:t,info:n,caption:r,range:i,onRange:a,series:o=y8,from:s=0,to:c=0,unit:l,waits:u,events:d,peak:f,option:p,state:m=`ready`,message:g,onRetry:_,actions:v,children:y,height:b=200,headingOrder:x=3,headerClassName:S}){let C=(0,h.useId)(),w=e?`panel-${e}`:C,T=(0,h.useCallback)(e=>O1(e,l),[l]),E=n?`${t}: ${n}`:t,D=m===`empty`?y8:o,O=(0,h.useCallback)(e=>p?p(e):uhe({series:D,from:s,to:c,unit:l,format:T,waits:u,events:d,peak:f,label:E},e),[p,D,s,c,l,T,u,d,f,E]),k=b===`fill`,A=k?void 0:b,j;j=y||(m===`loading`?(0,U.jsx)(K,{role:`img`,"aria-label":`Loading chart`,style:k?{flex:1}:void 0,children:(0,U.jsx)(t_,{h:A??`100%`,radius:`sm`})}):m===`error`?(0,U.jsx)(K,{h:A,style:{display:`flex`,alignItems:`center`,flex:k?1:void 0},children:(0,U.jsx)(v8,{kind:`error`,title:g??`This chart could not load.`,caption:`The last reading is not shown; it could be stale.`,onRetry:_})}):(0,U.jsxs)(K,{pos:`relative`,h:A,style:k?{flex:1,minHeight:0}:void 0,children:[(0,U.jsx)(R1,{option:O,label:E,height:k?`100%`:b}),m===`empty`&&(0,U.jsx)(J,{size:`xs`,c:`dimmed`,pos:`absolute`,top:`50%`,left:`50%`,style:{transform:`translate(-50%, -50%)`,whiteSpace:`nowrap`},children:g??(i?`no samples in the last ${i}`:`no samples`)})]}));let M=v&&(v.table||v.ask||v.remove);return(0,U.jsxs)(Fm,{component:`article`,"aria-labelledby":w,h:k?`100%`:void 0,style:{display:`flex`,flexDirection:`column`,minHeight:0,gap:6},children:[(0,U.jsxs)(q,{justify:`space-between`,wrap:`nowrap`,gap:`sm`,className:S,style:{flex:`none`},children:[(0,U.jsxs)(q,{gap:6,wrap:`nowrap`,style:{minWidth:0},children:[(0,U.jsx)(D_,{order:x,id:w,fz:`md`,fw:600,lh:1.2,lineClamp:1,title:t,style:{letterSpacing:`-0.01em`,flex:`0 1 auto`},children:t}),n&&(0,U.jsx)(Rg,{label:n,multiline:!0,maw:320,children:(0,U.jsx)(cu,{size:`xs`,"aria-label":`About ${t}`,children:(0,U.jsx)(sy,{size:14})})}),r&&(0,U.jsx)(J,{size:`xs`,c:`dimmed`,ff:`monospace`,truncate:!0,title:r,style:{minWidth:0},visibleFrom:`sm`,children:r})]}),(0,U.jsxs)(q,{gap:4,wrap:`nowrap`,style:{flex:`none`},children:[i&&a&&(0,U.jsx)(Gg,{size:`xs`,value:i,onChange:e=>a(e),data:$we,"aria-label":`${t} range`,styles:{label:{fontFamily:`var(--mantine-font-family-monospace)`,paddingInline:8}}}),M&&(0,U.jsxs)(tg,{position:`bottom-end`,withinPortal:!0,shadow:`md`,width:180,children:[(0,U.jsx)(tg.Target,{children:(0,U.jsx)(cu,{size:`sm`,"aria-label":`More for ${t}`,children:(0,U.jsx)(zv,{size:18})})}),(0,U.jsxs)(tg.Dropdown,{children:[v.table&&(0,U.jsx)(tg.Item,{leftSection:y?(0,U.jsx)(Wte,{}):(0,U.jsx)(Xte,{}),onClick:v.table,children:y?`Show as chart`:`Show as table`}),v.ask&&(0,U.jsx)(tg.Item,{leftSection:(0,U.jsx)(xv,{}),onClick:v.ask,children:`Ask Chat about it`}),v.remove&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(tg.Divider,{}),(0,U.jsx)(tg.Item,{color:`danger`,leftSection:(0,U.jsx)(ky,{}),onClick:v.remove,children:`Remove`})]})]})]})]})]}),(0,U.jsx)(K,{style:{flex:1,minHeight:0,display:`flex`,flexDirection:`column`},children:j})]})}var tTe={permission:`warning`,question:`warning`,waiting:`warning`,stuck:`danger`,finished:`info`,machine:`warning`},nTe={permission:`Approve`,question:`Answer`,waiting:`Reply`,finished:`Mark reviewed`,stuck:null,machine:`Reclaim`};function rTe(e){let t=Math.max(0,Math.round(e/1e3));return t<60?`${t}s`:t<3600?`${Math.floor(t/60)}m ${t%60}s`:T1(e)}function iTe(e,t){switch(e.kind){case`permission`:return`needs approval`;case`question`:return`asks a question`;case`waiting`:return`waits on you`;case`finished`:return e.turns&&e.turns>1?`finished · ${e.turns} turns`:`finished`;case`stuck`:return`quiet ${T1(t-Date.parse(e.since??e.at))}${e.quietExpected?`, expected ${T1(e.quietExpected)}`:``}`;case`machine`:return`machine`}}function b8({entry:e,selected:t,onApprove:n,onDeny:r,onOpen:i,onDismiss:a,armed:o=!0}){let s=Date.now(),c=tTe[e.kind],l=nTe[e.kind],u=e.since?rTe(s-Date.parse(e.since)):null,d=[e.project,e.branch,e.machine].filter(Boolean).join(` · `),f=()=>i?.(e),p=t=>{t.target===t.currentTarget&&(t.key===`Enter`||t.key===`o`?(t.preventDefault(),f()):t.key===`a`&&l&&n&&o?(t.preventDefault(),n(e)):t.key===`x`&&a&&(t.preventDefault(),a(e)))},m=e=>{e.target.closest(`button, a`)||f()},h=(e,t)=>(0,U.jsxs)(q,{gap:6,wrap:`nowrap`,children:[e,(0,U.jsx)(vh,{size:`xs`,children:t})]}),g=t=>(0,U.jsxs)(U.Fragment,{children:[t,(0,U.jsxs)(el,{children:[` · `,e.title]})]});return(0,U.jsx)(K,{className:`w-row`,"data-kind":e.kind,"data-clickable":i?``:void 0,"data-selected":t?`true`:void 0,tabIndex:i?0:void 0,onClick:i?m:void 0,onKeyDown:i?p:void 0,px:`sm`,py:8,style:{borderLeft:`3px solid var(--mantine-color-${c}-filled)`,borderRadius:`var(--mantine-radius-sm)`,background:`var(--driga-raised)`},children:(0,U.jsxs)(q,{gap:`sm`,wrap:`wrap`,align:`flex-start`,children:[(0,U.jsx)(K,{pt:2,style:{flex:`none`},children:e.kind===`machine`||!e.agent?(0,U.jsx)(K,{role:`img`,"aria-label":e.machine?`machine ${e.machine}`:`machine`,style:{width:20,height:20,borderRadius:`50%`,background:`var(--driga-inset)`,display:`grid`,placeItems:`center`,color:`var(--driga-muted)`},children:(0,U.jsx)(Nv,{size:12})}):(0,U.jsx)(_0,{agent:e.agent,waiting:e.kind===`permission`||e.kind===`question`||e.kind===`waiting`})}),(0,U.jsxs)(i_,{gap:4,style:{flex:`1 1 220px`,minWidth:0},children:[(0,U.jsxs)(q,{gap:6,wrap:`nowrap`,align:`baseline`,style:{minWidth:0},children:[(0,U.jsx)(J,{size:`md`,fw:500,lh:1.2,truncate:!0,title:e.title,style:{minWidth:0,flex:`0 1 auto`},children:e.title}),(0,U.jsx)(J,{size:`xs`,c:`dimmed`,lh:1.2,style:{whiteSpace:`nowrap`,flex:`none`},children:iTe(e,s)})]}),e.reason&&(0,U.jsx)(J,{size:`xs`,ff:e.kind===`question`||e.kind===`machine`?void 0:`monospace`,className:`w-inset`,lh:1.4,truncate:!0,title:e.reason,style:{display:`block`,maxWidth:`100%`,alignSelf:`flex-start`},children:e.reason}),d&&(0,U.jsx)(J,{size:`xs`,c:`dimmed`,ff:`monospace`,lh:1.2,truncate:!0,title:d,children:d}),e.review&&(0,U.jsxs)(q,{gap:6,wrap:`wrap`,children:[e.review.files>0&&(0,U.jsx)(J,{size:`xs`,c:`dimmed`,lh:1.2,style:{whiteSpace:`nowrap`},children:A1(e.review.files,`file`)}),!e.review.files&&!e.review.uncommitted&&!e.review.unpushed&&(e.review.checkout?(0,U.jsx)(Rg,{label:(0,U.jsx)(J,{size:`xs`,ff:`monospace`,children:e.review.checkout}),children:(0,U.jsx)(`span`,{className:`w-chip`,"data-tone":`neutral`,children:`clean`})}):(0,U.jsx)(J,{size:`xs`,c:`dimmed`,lh:1.2,style:{whiteSpace:`nowrap`},children:`no checkout`})),e.review.uncommitted>0&&(0,U.jsxs)(`span`,{className:`w-chip`,"data-tone":`warning`,children:[(0,U.jsx)(K,{"aria-hidden":!0,style:{width:5,height:5,borderRadius:`50%`,background:`var(--mantine-color-warning-filled)`}}),e.review.uncommitted,` uncommitted`]}),e.review.unpushed>0&&(0,U.jsxs)(`span`,{className:`w-chip`,"data-tone":`neutral`,children:[e.review.unpushed,` unpushed`]})]})]}),(0,U.jsxs)(i_,{gap:2,align:`flex-end`,w:96,style:{flex:`none`},children:[(0,U.jsx)(J,{size:`xs`,ff:`monospace`,lh:1.2,title:D1(e.at),style:{whiteSpace:`nowrap`},children:E1(e.at,s)}),u&&(0,U.jsxs)(q,{gap:4,wrap:`nowrap`,children:[(0,U.jsx)(K,{"aria-hidden":!0,className:e.kind===`permission`||e.kind===`question`||e.kind===`waiting`?`w-pulse`:void 0,style:{width:6,height:6,borderRadius:`50%`,background:`var(--mantine-color-${c}-filled)`,flex:`none`}}),(0,U.jsxs)(J,{size:`xs`,ff:`monospace`,lh:1.2,style:{whiteSpace:`nowrap`},children:[e.kind===`stuck`?`quiet`:`waiting`,` `,u]})]})]}),(n||r||i||a)&&(0,U.jsxs)(q,{gap:4,wrap:`nowrap`,className:`w-actions`,style:{flex:`none`},children:[l&&n&&(0,U.jsx)(Rg,{label:h(l,`a`),children:(0,U.jsx)(Om,{size:`compact-xs`,variant:`light`,disabled:!o,onClick:()=>n(e),children:g(l)})}),e.kind===`permission`&&r&&(0,U.jsx)(Om,{size:`compact-xs`,variant:`default`,disabled:!o,onClick:()=>r(e),children:g(`Deny`)}),i&&(0,U.jsx)(Rg,{label:h(`Open`,`o`),children:(0,U.jsx)(Om,{size:`compact-xs`,variant:`subtle`,color:`gray`,onClick:f,children:g(`Open`)})}),a&&(0,U.jsx)(Rg,{label:h(`Dismiss`,`x`),children:(0,U.jsx)(cu,{size:`sm`,variant:`subtle`,color:`gray`,"aria-label":`Dismiss ${e.title}`,onClick:()=>a(e),children:(0,U.jsx)(Py,{size:14})})})]})]})})}var aTe=[`working`,`waiting`,`stuck`,`idle`];function oTe(e){return e.map(e=>{let t=[];for(let n of[...e.segments].sort((e,t)=>e.from-t.from)){let e=t[t.length-1];e&&e.state===n.state&&e.to>=n.from?e.to=Math.max(e.to,n.to):t.push({...n})}return{...e,segments:t}})}function sTe({lanes:e,from:t,to:n,now:r,label:i,laneHeight:a=26,onSelect:o}){let s=(0,h.useMemo)(()=>oTe(e),[e]),c=(0,h.useCallback)(e=>fhe({lanes:s,from:t,to:n,now:r,label:i},e),[s,t,n,r,i]),l=(0,h.useCallback)((e,t)=>{let n=Array.isArray(t.value)?s[Number(t.value[0])]:void 0;n&&o?.(n.id)},[s,o]);return(0,U.jsxs)(i_,{gap:6,children:[(0,U.jsx)(R1,{option:c,label:i,height:s.length*a+36,onEvent:o?l:void 0}),(0,U.jsx)(q,{gap:`md`,"aria-hidden":!0,children:aTe.map(e=>(0,U.jsx)(o0,{state:e},e))})]})}var cTe={jump:cv,open:cv,ack:Cv,stop:Yte,kill:ene,force_kill:dy,cleanup:ky,summarize:xy},lTe=new Set([`stop`,`kill`,`force_kill`,`cleanup`]);function x8(e){return e.find(e=>e===`jump`||e===`open`)}function S8(e,t,n){let r=x8(e);if(!n||!r)return{};let i=()=>void n({kind:r,row:t});return{title:P0(r),className:`row-act`,onClick:e=>{e.target.closest(`button, a, [role=menu]`)||i()}}}function C8({kinds:e,row:t,act:n,label:r}){if(e.length===0)return null;let i=x8(e),a=e.filter(e=>e!==i),o=e=>{let r=cTe[e];return(0,U.jsx)(tg.Item,{color:lTe.has(e)?`danger`:void 0,leftSection:(0,U.jsx)(r,{}),onClick:()=>void n({kind:e,row:t}),children:P0(e)},e)};return(0,U.jsxs)(tg,{position:`bottom-end`,withinPortal:!0,shadow:`md`,width:180,children:[(0,U.jsx)(tg.Target,{children:(0,U.jsx)(cu,{className:`row-menu`,style:{flex:`none`},"aria-label":`Actions for ${r}`,onClick:e=>e.stopPropagation(),children:(0,U.jsx)(zv,{size:18})})}),(0,U.jsxs)(tg.Dropdown,{children:[i&&o(i),i&&a.length>0&&(0,U.jsx)(tg.Divider,{}),a.map(o)]})]})}var uTe={s:120,m:240,l:420};function dTe(e){let t=e.viz===`stat`||e.viz===`gauge`?`s`:e.viz===`inbox`?`l`:`m`;return uTe[e.height??t]}function w8({panel:e,result:t,act:n,fill:r}){let i=N0(),a=n??i.act,o=r?0:dTe(e),s=t?.title||e.title;if(e.viz===`timeseries`)return(0,U.jsx)(pTe,{panel:e,result:t,fill:r,height:o,title:s});let c;c=e.viz===`text`?(0,U.jsx)(Jc,{style:{flex:1},type:`auto`,viewportProps:D8,children:(0,U.jsx)(J,{component:`div`,size:`sm`,className:`markdown`,children:(0,U.jsx)(jSe,{remarkPlugins:[Jwe],components:{img:()=>null},children:e.content??``})})}):t?t.status===`error`?(0,U.jsx)(v8,{kind:`error`,title:t.message??`This panel could not run.`}):e.viz===`inbox`&&(i.prompts?.length||i.bursts?.length||i.grantHistory?.length||i.inboxFilter)?(0,U.jsx)(k8,{frame:t.frame??{columns:[],rows:[]},act:a,prompts:i.prompts,answer:i.answer,filter:i.inboxFilter}):!t.frame||t.status===`empty`?(0,U.jsx)(fTe,{panel:e,message:t.message}):(0,U.jsx)(hTe,{panel:e,result:t,frame:t.frame,act:a,filter:i.inboxFilter}):(0,U.jsx)(J,{size:`sm`,c:`dimmed`,children:`Loading…`});let l=e.viz===`bar`&&t?.frame?L1(t.frame,e):``;return(0,U.jsxs)(Fm,{component:`article`,"aria-labelledby":`panel-${e.id}`,h:r?`100%`:void 0,style:{display:`flex`,flexDirection:`column`,minHeight:0},children:[(0,U.jsxs)(q,{gap:6,wrap:`nowrap`,mb:6,className:`panel-handle`,children:[(0,U.jsx)(D_,{order:2,id:`panel-${e.id}`,fz:`md`,fw:600,lineClamp:1,style:{letterSpacing:`-0.01em`,flex:`0 1 auto`,maxWidth:`75%`},title:s,children:s}),e.viz===`inbox`&&i.inboxFilter&&(0,U.jsxs)(xg,{withRemoveButton:!0,onRemove:i.clearInboxFilter,removeButtonProps:{"aria-label":`Clear inbox filter`},children:[`Showing: `,{waiting:`Need you`,review:`To review`,stuck:`Stuck`}[i.inboxFilter]]}),e.description&&(0,U.jsx)(Rg,{label:e.description,multiline:!0,maw:320,children:(0,U.jsx)(cu,{size:`xs`,"aria-label":`About ${e.title}`,children:(0,U.jsx)(sy,{size:14})})}),l&&(0,U.jsx)(J,{size:`xs`,c:`dimmed`,truncate:!0,ml:`auto`,ta:`right`,style:{flex:`1 1 0`,minWidth:0},title:l,children:l})]}),(0,U.jsx)(K,{style:{flex:1,minHeight:r?0:Math.min(o,120),display:`flex`,flexDirection:`column`},children:c})]})}function fTe({panel:e,message:t}){let{title:n,caption:r}=Qwe(t??(e.viz===`inbox`?`Nothing needs you right now.`:`Nothing matches right now.`));return(0,U.jsx)(v8,{kind:e.viz===`inbox`?`all-clear`:`empty`,title:n,caption:r})}function pTe({panel:e,result:t,fill:n,height:r,title:i}){let a=N0(),[o,s]=(0,h.useState)(!1),c=t?.frame,l=(0,h.useMemo)(()=>c?rhe(c,e):[],[c,e]),u=(0,h.useMemo)(()=>l.map((e,t)=>({name:e.name,points:e.points,color:t})),[l]),d=l.flatMap(e=>e.points.map(e=>e[0])),f=c?.columns[2]?.unit,p=t?t.status===`error`?`error`:l.length?`ready`:`empty`:`loading`,m=p===`error`?t?.message??`This panel could not run.`:p===`empty`?t?.message??`Nothing matches right now.`:void 0;return(0,U.jsx)(eTe,{id:e.id,title:i,info:e.description,caption:c&&p===`ready`?L1(c,e):void 0,series:u,from:d.length?Math.min(...d):0,to:d.length?Math.max(...d):0,unit:f,state:p,message:m,actions:{table:p===`ready`?()=>s(e=>!e):void 0,ask:a.ask?()=>a.ask(`Tell me about "${i}" right now.`):void 0},height:n?`fill`:r-48,headingOrder:2,headerClassName:`panel-handle`,children:o&&c?(0,U.jsx)(T8,{frame:mTe(c,e),source:e.source}):void 0})}function mTe(e,t){if(t.viz!==`timeseries`)return e;let n=new Set(e.rows.map(e=>e[1])).size>1,r=n?e.columns:[e.columns[0],e.columns[2]],i=[...e.rows].reverse().map(e=>n?e:[e[0],e[2]]);return{columns:r.map(e=>e.name===`value`?{...e,name:t.measure?.split(`:`).pop()||`value`}:e.name===`ts`?{...e,name:`time`}:e),rows:i}}function hTe({panel:e,result:t,frame:n,act:r,filter:i}){switch(e.viz){case`stat`:return(0,U.jsx)(gTe,{frame:n,trend:t.trend,title:e.title,total:t.total,caption:t.caption});case`gauge`:return(0,U.jsx)(_Te,{frame:n,max:e.max,title:e.title});case`bar`:return(0,U.jsx)(vTe,{frame:n,title:e.title});case`inbox`:return(0,U.jsx)(k8,{frame:n,act:r,filter:i});case`list`:return(0,U.jsx)(STe,{frame:n,source:e.source,act:r});case`cards`:return(0,U.jsx)(CTe,{frame:n,source:e.source,act:r});case`timeline`:return(0,U.jsx)(TTe,{frame:n,act:r,title:e.title});default:return(0,U.jsx)(T8,{frame:n,source:e.source,act:r})}}function gTe({frame:e,trend:t,title:n,total:r,caption:i}){return(0,U.jsxs)(i_,{gap:4,style:{flex:1},children:[(0,U.jsxs)(q,{gap:6,align:`baseline`,children:[(0,U.jsx)(v0,{n:e.rows[0]?.[0]??null,unit:e.columns[0]?.unit,total:r}),i!=null&&(0,U.jsxs)(J,{ff:`monospace`,size:`sm`,c:`dimmed`,children:[`· `,O1(i)]})]}),t&&t.length>1&&(0,U.jsx)(K,{style:{flex:1,minHeight:24},children:(0,U.jsx)(b0,{trend:t,title:n})})]})}function _Te({frame:e,max:t,title:n}){let r=Number(e.rows[0]?.[0]??0),i=t??100,a=e.columns[0]?.unit;return(0,U.jsxs)(i_,{gap:6,children:[(0,U.jsx)(v0,{n:r,unit:a}),(0,U.jsx)(h0,{value:r,max:i,format:e=>O1(e,a),label:n,caption:!1}),(0,U.jsxs)(J,{size:`xs`,c:`dimmed`,children:[`of `,O1(i,a)]})]})}function vTe({frame:e,title:t}){let n=e.columns[1]?.unit,r=e.rows.map((e,t)=>({id:`${t}`,label:String(e[0]??`–`)||`–`,value:Number(e[1]??0)}));return(0,U.jsx)(Jc,{style:{flex:1},type:`auto`,viewportProps:D8,children:(0,U.jsx)(Ywe,{items:r,format:e=>O1(e,n),label:t})})}var yTe=ave({rowSortingFeature:bve,sortedRowModel:xve(),sortFns:{basic:j2,alphanumeric:lve}});function bTe({v:e,column:t,row:n}){if((t.name===`label`||t.name===`state`)&&typeof e==`string`&&e){let t=a0(e),r=t.inferred||n?.inferred===!0,i=(0,U.jsx)(o0,{state:t.state,label:t.label,inferred:r}),a=typeof n?.evidence==`string`&&n.evidence?n.evidence:r?`Inferred from process and file activity, not reported by the agent.`:``;return a?(0,U.jsx)(Rg,{label:a,multiline:!0,maw:320,children:i}):i}let r=k1(e,t);return t.type===`time`&&typeof e==`string`?(0,U.jsx)(J,{span:!0,fz:`inherit`,title:D1(e),children:r}):t.type===`number`?(0,U.jsx)(J,{span:!0,ff:`monospace`,fz:`inherit`,children:r}):t.name===`title`||t.name===`branch`?(0,U.jsx)(J,{fz:`inherit`,truncate:!0,maw:t.name===`title`?240:140,title:r,children:r}):(0,U.jsx)(U.Fragment,{children:r})}function T8({frame:e,source:t,act:n}){let{local:r}=N0(),[i,a]=(0,h.useState)([]),o=(0,h.useMemo)(()=>e.rows.map(t=>xTe(e.columns,t)),[e]),s=wve({features:yTe,data:o,columns:(0,h.useMemo)(()=>e.columns.filter(e=>!e.hidden).map(e=>({id:e.name,accessorFn:t=>t[e.name],header:j1(e.name),sortFn:e.type===`number`?`basic`:`alphanumeric`,sortDescFirst:e.type===`number`,cell:({row:t})=>(0,U.jsx)(bTe,{v:t.original[e.name],column:e,row:t.original}),meta:{column:e}})),[e.columns]),state:{sorting:i},onSortingChange:a}),c=e=>n?F0(t,e,r):[],l=!!n&&o.some(e=>c(e).length>0);return(0,U.jsx)(Jc,{style:{flex:1},type:`auto`,"aria-label":`Table`,viewportProps:D8,children:(0,U.jsxs)(x_,{miw:420,children:[(0,U.jsx)(x_.Thead,{children:s.getHeaderGroups().map(e=>(0,U.jsxs)(x_.Tr,{children:[e.headers.map(e=>{let t=e.column.columnDef.meta.column,n=e.column.getIsSorted();return(0,U.jsx)(x_.Th,{ta:t.type===`number`?`right`:void 0,"aria-sort":n===`asc`?`ascending`:n===`desc`?`descending`:`none`,style:{whiteSpace:`nowrap`},children:(0,U.jsxs)(Qc,{onClick:e.column.getToggleSortingHandler(),fz:`xs`,fw:500,c:`dimmed`,children:[(0,U.jsx)(s.FlexRender,{header:e}),n===`asc`?(0,U.jsx)(Ute,{size:10}):n===`desc`?(0,U.jsx)(pv,{size:10}):null]})},e.id)}),l&&(0,U.jsx)(x_.Th,{w:36,children:(0,U.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]},e.id))}),(0,U.jsx)(x_.Tbody,{children:s.getRowModel().rows.map(e=>(0,U.jsxs)(x_.Tr,{...S8(c(e.original),e.original,n),children:[e.getAllCells().map(e=>{let t=e.column.columnDef.meta.column;return(0,U.jsx)(x_.Td,{ta:t.type===`number`?`right`:void 0,style:{whiteSpace:`nowrap`,maxWidth:320,overflow:`hidden`,textOverflow:`ellipsis`},children:(0,U.jsx)(s.FlexRender,{cell:e})},e.id)}),l&&(0,U.jsx)(x_.Td,{ta:`right`,py:0,children:(0,U.jsx)(C8,{kinds:c(e.original),row:e.original,act:n,label:E8(e.original)})})]},e.id))})]})})}function E8(e){return String(e.title||e.signature||e.project||e.path||e.id||`this row`)}var D8={tabIndex:0};function xTe(e,t){return Object.fromEntries(e.map((e,n)=>[e.name,t[n]??null]))}function STe({frame:e,source:t,act:n}){let{local:r}=N0(),[i,...a]=e.columns.filter(e=>!e.hidden);return(0,U.jsx)(Jc,{style:{flex:1},type:`auto`,viewportProps:D8,children:(0,U.jsx)(i_,{gap:0,children:mS(e).map((e,o)=>{let s=n?F0(t,e,r):[];return(0,U.jsxs)(q,{justify:`space-between`,wrap:`nowrap`,py:6,px:4,style:{borderBottom:`1px solid var(--driga-border-soft)`},...S8(s,e,n),className:`row-hover ${S8(s,e,n).className??``}`,children:[(0,U.jsx)(J,{size:`sm`,fw:500,truncate:!0,style:{minWidth:0},title:i?k1(e[i.name],i):void 0,children:i?k1(e[i.name],i):``}),(0,U.jsxs)(q,{gap:`xs`,wrap:`nowrap`,children:[(0,U.jsx)(J,{size:`xs`,c:`dimmed`,ff:`monospace`,children:a.map(t=>k1(e[t.name],t)).join(` · `)}),s.length>0&&(0,U.jsx)(C8,{kinds:s,row:e,act:n,label:E8(e)})]})]},o)})})})}function O8(e,t){let n=String(e.kind??``),r=n===`waiting`,i=Number(e.session_id)>0?`Session ${e.session_id}`:``;if(!r&&n!==`finished`)return{id:String(e.id),kind:`machine`,title:`${j1(n)} on ${String(e.machine??`a machine`)}`,reason:String(e.summary??``)||void 0,machine:void 0,at:String(e.occurred_at??``)};let a={id:String(e.id),title:String(e.title||e.summary||i),agent:String(e.agent??``)||void 0,project:String(e.project??``)||void 0,branch:String(e.branch??``)||void 0,machine:String(e.machine??``)||void 0,at:String(e.occurred_at??``)};if(r){let n=String(e.reason??``);return{...a,kind:n===`permission`?`permission`:n===`question`?`question`:`waiting`,reason:[e.tool,e.detail].filter(Boolean).join(` · `)||void 0,since:typeof e.waited==`number`?new Date(t-e.waited).toISOString():void 0}}let o=String(e.summary??``);return{...a,kind:`finished`,turns:typeof e.turns==`number`?e.turns:void 0,reason:o&&o!==`turn finished`?o:e.last_commit?`last commit: ${e.last_commit}`:void 0,review:{files:Number(e.files??0),uncommitted:Number(e.dirty??0),unpushed:Number(e.unpushed??0),checkout:String(e.checkout??``)||void 0}}}function k8({frame:e,act:t,prompts:n,answer:r,filter:i}){let a=N0(),{stuck:o}=a,s=Date.now();if(i===`stuck`)return o?.rows.length?(0,U.jsx)(T8,{frame:o,source:`sessions`,act:t}):(0,U.jsx)(v8,{kind:`empty`,title:`No session looks stuck.`});let c=(a.bursts??[]).filter(e=>e.members.length>1),l=new Set(c.flatMap(e=>e.members.map(e=>e.id))),u=n?.filter(e=>!l.has(e.id))??[],d=mS(e),f=d.filter(e=>e.kind===`waiting`),p=d.filter(e=>e.kind!==`waiting`&&e.kind!==`finished`),m=d.filter(e=>e.kind===`finished`),h=e=>t&&Number(e.session_id)>0?()=>void t({kind:`jump`,row:e}):void 0,g=e=>t&&!e.ack_pending?()=>void t({kind:`ack`,row:e}):void 0,_=(e,t,n,r,i)=>r>0&&(0,U.jsxs)(i_,{gap:6,children:[(0,U.jsx)(K,{children:(0,U.jsx)(o0,{variant:`pill`,state:t,tone:n,label:`${e} · ${r}`})}),i]}),v=i!==`review`,y=i!==`waiting`;return(0,U.jsx)(Jc,{style:{flex:1},type:`auto`,viewportProps:D8,children:(0,U.jsxs)(i_,{gap:`sm`,children:[v&&_(`Permission prompts`,`waiting`,`warning`,u.length+c.length,(0,U.jsxs)(U.Fragment,{children:[c.map(e=>(0,U.jsx)(DTe,{burst:e,answer:r,decide:a.decideBurst},e.id)),u.map(e=>(0,U.jsx)(A8,{prompt:e,answer:r},e.id))]})),v&&_(`Needs you`,`waiting`,`warning`,f.length,f.map(e=>(0,U.jsx)(b8,{entry:O8(e,s),onOpen:h(e)},String(e.id)))),v&&_(`Machines`,`waiting`,`warning`,p.length,p.map(e=>(0,U.jsx)(b8,{entry:O8(e,s),onDismiss:g(e)},String(e.id)))),a.grantHistory?.map(e=>(0,U.jsxs)(rl,{withBorder:!0,p:`xs`,radius:`md`,children:[(0,U.jsxs)(J,{size:`xs`,children:[e.attribution,` · `,e.session??e.conversation,` · `,e.time]}),(0,U.jsx)(Om,{size:`compact-xs`,variant:`subtle`,disabled:e.revoked,onClick:()=>void a.revokeGrant?.(e.grant_id),children:e.revoked?`Grant revoked`:`Revoke grant`})]},`${e.grant_id}/${e.action_id??e.prompt_id}`)),y&&_(`To review`,`finished`,`info`,m.length,m.map(e=>(0,U.jsx)(b8,{entry:O8(e,s),onApprove:g(e),onOpen:h(e)},String(e.id))))]})})}function CTe({frame:e,source:t,act:n}){let{local:r}=N0(),[i,...a]=e.columns.filter(e=>!e.hidden);return(0,U.jsx)(Jc,{style:{flex:1},type:`auto`,viewportProps:D8,children:(0,U.jsx)(K,{style:{display:`grid`,gridTemplateColumns:`repeat(auto-fill, minmax(220px, 1fr))`,gap:10},children:mS(e).map((e,o)=>{let s=n?F0(t,e,r):[];return(0,U.jsxs)(rl,{p:`sm`,withBorder:!0,style:{background:`var(--driga-inset)`},children:[(0,U.jsx)(J,{size:`sm`,fw:600,truncate:!0,mb:6,title:i?k1(e[i.name],i):void 0,children:i?k1(e[i.name],i):``}),(0,U.jsx)(Qg,{cols:2,spacing:12,verticalSpacing:2,children:a.map(t=>{let n=e[t.name];if(n===null||n===``||n===void 0)return null;let r=typeof n==`number`&&n>0&&t.unit===`count`;return(0,U.jsxs)(q,{justify:`space-between`,gap:6,wrap:`nowrap`,children:[(0,U.jsx)(J,{size:`xs`,c:`dimmed`,truncate:!0,title:j1(t.name),children:j1(t.name)}),(0,U.jsx)(J,{size:`xs`,ff:`monospace`,c:r?`warning`:void 0,truncate:!0,title:k1(n,t),children:k1(n,t)})]},t.name)})}),s.length>0&&(0,U.jsx)(q,{justify:`flex-end`,mt:4,children:(0,U.jsx)(C8,{kinds:s,row:e,act:n,label:E8(e)})})]},o)})})})}function wTe(e,t){return mS(e).map(n=>{let r=Date.parse(String(n.started_at))||t,i=Date.parse(String(n.ended_at??``))||t,a=a0(String(n.label??``)),o=n.ended_at?`finished`:a.state&&a.state!==`waiting`?a.state:`working`,s=(e.spans??[]).filter(e=>e.session_id===n.id&&e.machine_id===n.machine_id).map(e=>({from:Date.parse(String(e.from))||r,to:Date.parse(String(e.to??``))||t})).sort((e,t)=>e.from-t.from),c=[],l=r;for(let e of s){let t=Math.max(l,r,e.from),n=Math.min(i,e.to);n<=t||(t>l&&c.push({from:l,to:t,state:o}),c.push({from:t,to:n,state:`waiting`}),l=n)}return lDate.now(),[e]),i=(0,h.useMemo)(()=>wTe(e,r),[e,r]),a=i.flatMap(e=>e.segments.map(e=>e.from)),o=a.length?Math.min(...a):r-36e5,s=new Map(mS(e).map(e=>[JSON.stringify([e.machine_id,e.id]),e]));return(0,U.jsx)(Jc,{style:{flex:1},type:`auto`,viewportProps:D8,children:(0,U.jsx)(sTe,{lanes:i,from:o,to:r,now:r,label:n,onSelect:t?e=>{let n=s.get(e);n&&t({kind:`jump`,row:{...n,session_id:n.id}})}:void 0})})}function A8({prompt:e,answer:t}){let n=N0(),[r,i]=(0,h.useState)(!1),[a,o]=(0,h.useState)(!1);(0,h.useEffect)(()=>{i(!1);let e=window.setTimeout(()=>i(!0),600);return()=>window.clearTimeout(e)},[e.id,JSON.stringify(e.input)]);let s=async n=>{if(t){o(!0);try{await t(e,n)}finally{o(!1)}}},c=ETe(e),l={id:e.id,kind:`permission`,title:e.session,agent:`claude`,reason:c?`${e.tool}(${c})`:e.tool,project:e.cwd,at:e.created_at,since:e.created_at};return(0,U.jsxs)(i_,{gap:4,children:[(0,U.jsx)(b8,{entry:l,armed:r&&!a,onApprove:t?()=>void s(!0):void 0,onDeny:t?()=>void s(!1):void 0}),(0,U.jsx)(J,{component:`pre`,size:`xs`,ff:`monospace`,style:{whiteSpace:`pre-wrap`,overflowWrap:`anywhere`},children:JSON.stringify(e.input,null,2)}),e.grant_eligible&&n.answerSimilar&&(0,U.jsxs)(i_,{gap:4,children:[(0,U.jsx)(J,{size:`xs`,ff:`monospace`,style:{overflowWrap:`anywhere`},children:e.grant_pattern}),(0,U.jsxs)(J,{size:`xs`,c:`dimmed`,children:[`Expires `,e.grant_expires_at]}),(0,U.jsx)(Om,{size:`compact-xs`,variant:`light`,disabled:!r||a,onClick:()=>{o(!0),n.answerSimilar(e).finally(()=>o(!1))},children:`Allow similar for this session`})]})]})}function ETe(e){let t=e.input??{};for(let e of[`command`,`file_path`,`url`,`pattern`])if(typeof t[e]==`string`)return String(t[e]);return``}function DTe({burst:e,answer:t,decide:n}){let r=`${e.id}/${e.members.map(e=>`${e.id}:${e.input_hash}`).join(`/`)}`,[i,a]=(0,h.useState)(!1),[o,s]=(0,h.useState)(!1),[c,l]=(0,h.useState)(),u=(0,h.useRef)(r);u.current=r;let d=(0,h.useRef)(!1);(0,h.useEffect)(()=>{a(!1),s(!1),l(void 0),d.current=!1;let e=window.setTimeout(()=>a(!0),600);return()=>window.clearTimeout(e)},[r]);let f=async()=>{if(!i||d.current||!n)return;d.current=!0,s(!0);let t=e.members.map(e=>e.id),a=r;try{await n(e.id,t,!0)}catch(e){u.current===a&&l(e.message)}finally{u.current===a&&(d.current=!1,s(!1))}};return(0,U.jsx)(rl,{withBorder:!0,p:`xs`,radius:`md`,style:{background:`var(--driga-raised)`},children:(0,U.jsxs)(i_,{gap:`xs`,children:[(0,U.jsxs)(J,{size:`sm`,fw:600,children:[e.members.length,` permission prompts · `,e.session]}),(0,U.jsxs)(J,{size:`xs`,c:`dimmed`,style:{overflowWrap:`anywhere`},children:[`in `,e.cwd]}),e.members.map(e=>(0,U.jsx)(A8,{prompt:e.prompt,answer:t},`${e.id}/${e.input_hash}`)),n&&(0,U.jsxs)(Om,{disabled:!i||o,onClick:()=>void f(),children:[`Allow all `,e.members.length]}),c&&(0,U.jsx)(J,{size:`xs`,c:`danger`,role:`alert`,children:c})]})})}var OTe={stat:3,gauge:3,timeseries:6,bar:6,table:12,list:6,inbox:8,cards:12,timeline:12,text:6};function j8({fragment:e,onVars:t,act:n,compact:r,stacked:i,bare:a}){let{dashboard:o}=e,s=new Map(e.results.map(e=>[e.id,e])),c=e.vars??{};return(0,U.jsxs)(i_,{gap:`sm`,p:a?0:r?`xs`:`md`,children:[!a&&(0,U.jsxs)(q,{justify:`space-between`,align:`flex-end`,gap:`xs`,children:[(0,U.jsxs)(K,{children:[(0,U.jsx)(D_,{order:1,fz:`md`,fw:600,children:o.name}),o.description&&!r&&(0,U.jsx)(J,{size:`sm`,c:`dimmed`,children:o.description})]}),(0,U.jsxs)(q,{gap:`xs`,children:[t&&o.variables?.map(n=>(0,U.jsx)(Kg,{size:`xs`,w:140,label:n.name,placeholder:`All`,clearable:!0,data:e.options?.[n.name]??[],value:c[n.name]||null,onChange:e=>t({...c,[n.name]:e??``})},n.name)),(0,U.jsxs)(J,{size:`xs`,c:`dimmed`,title:D1(e.observed_at),children:[`observed `,E1(e.observed_at)]})]})]}),(0,U.jsx)(K,{style:{display:`grid`,gridTemplateColumns:`repeat(12, minmax(0, 1fr))`,gap:12,gridAutoFlow:`row dense`},children:o.panels.map(e=>{let t=i?12:Math.min(12,e.grid?.w??e.width??OTe[e.viz]);return(0,U.jsx)(K,{style:{gridColumn:`span ${t}`,minWidth:0},children:(0,U.jsx)(w8,{panel:e,result:s.get(e.id),act:n})},e.id)})})]})}var M8=new Set([`create_dashboard`,`edit_dashboard`,`replace_dashboard`,`restore_dashboard_version`]);function N8(e,t){if(e.viz===`text`){let t=(e.content??``).split(` +`).filter(e=>/^\s*\|/.test(e)&&!/^\s*\|[\s:|-]+\|\s*$/.test(e)).length;return t>1?`table, ${t-1} rows`:`note`}if(!t)return`loading`;if(t.status===`error`)return t.message??`failed`;if(t.status===`empty`||!t.frame?.rows.length)return t.message??`nothing right now`;let n=t.frame;if(e.viz===`stat`||e.viz===`gauge`){let e=n.rows[0]?.[0],r=n.columns[0]?.unit;return typeof e==`number`?typeof t.total==`number`?`${O1(e,r)} of ${O1(t.total,r)}`:O1(e,r):`no reading`}return e.viz===`bar`||e.viz===`timeseries`?L1(n,e)||`${n.rows.length} points`:`${n.rows.length} ${n.rows.length===1?`row`:`rows`}`}function kTe(e){let t=e.filter(e=>e.status===`error`).length;return t?`${t} failed`:``}function ATe(e,t){let n=e=>t?.panels.find(t=>t.id===e)?.title??e;return e.tool===`create_dashboard`?[`Created`]:e.tool===`replace_dashboard`?[`Replaced`]:e.tool===`restore_dashboard_version`?[`Restored version ${e.input.version??`?`}`]:(e.input.operations??[]).map(e=>{switch(e.op){case`add`:return`Added ${e.panel.title}`;case`update`:return`Changed ${e.panel?.title??n(e.id)}`;case`remove`:return`Removed ${n(e.id)}`;case`move`:return`Moved ${n(e.id)}`;case`layout`:return`Moved panels`;case`rename`:return`Renamed to ${e.name}`}})}function jTe({text:e,open:t,onOpen:n}){let[r,i]=(0,h.useState)(!!t),a=(0,h.useRef)(!1);(0,h.useEffect)(()=>{a.current||i(!!t)},[t]);let[o,s]=(0,h.useState)(!1),[c,l]=(0,h.useState)(!1),[u,d]=(0,h.useState)(null),[f,p]=(0,h.useState)(null),[m,g]=(0,h.useState)(null);if((0,h.useEffect)(()=>{let t=new AbortController;g(null),p(null),s(!1);let n;try{n=JSON.parse(e)}catch{g(`This card could not be read.`);return}if(d(n),n.error)return;let r=n.input?.dashboard,i=n.saved?.id??n.input?.id;if(!r&&!i)g(`This card names no dashboard.`);else return(i&&(M8.has(n.tool)||n.tool===`open_dashboard`)?z0.open(i,n.input?.vars,t.signal):z0.run(r,n.input?.vars,t.signal)).then(e=>{t.signal.aborted||p(e)},e=>{t.signal.aborted||(s(e instanceof I0&&e.status===404),g(e.message))}),()=>t.abort()},[e]),m&&u&&o&&(u.saved||u.input.id))return(0,U.jsxs)(J,{size:`sm`,c:`dimmed`,children:[u.input.dashboard?.name??`This dashboard`,` was deleted since.`]});if(m)return(0,U.jsx)(J,{size:`sm`,c:`danger`,children:m});if(u?.error)return(0,U.jsx)(rl,{withBorder:!0,radius:`md`,p:`sm`,style:{background:`var(--driga-raised)`},children:(0,U.jsxs)(i_,{gap:4,children:[(0,U.jsx)(J,{size:`sm`,fw:600,children:u.status===`unknown`?`Outcome unknown: ${u.input.dashboard?.name??u.input.id??`dashboard`}`:M8.has(u.tool)?`Draft rejected: ${u.input.dashboard?.name??u.input.id??`dashboard`}`:`These panels could not run`}),(0,U.jsx)(J,{size:`xs`,c:`dimmed`,style:{overflowWrap:`anywhere`},children:u.error})]})});if(!u||!f)return(0,U.jsx)(J,{size:`sm`,c:`dimmed`,children:`Loading panels…`});let _=f.dashboard,v=M8.has(u.tool)&&!!(u.saved??f.id),y=new Map(f.results.map(e=>[e.id,e])),b=_.panels,x=v?ATe(u):[],S=v?u.saved?.version??f.version:void 0,C=kTe(f.results),w=v?`Saved ${_.name}`:_.name;return(0,U.jsxs)(rl,{withBorder:!0,radius:`md`,p:`sm`,style:{background:`var(--driga-raised)`},children:[(0,U.jsxs)(i_,{gap:6,children:[(0,U.jsxs)(q,{gap:4,wrap:`nowrap`,children:[(0,U.jsx)(Qc,{"aria-expanded":r,onClick:()=>{a.current=!0,i(e=>!e)},style:{flex:1,minWidth:0},children:(0,U.jsxs)(q,{gap:6,wrap:`nowrap`,children:[r?(0,U.jsx)(pv,{size:14,"aria-hidden":!0}):(0,U.jsx)(hv,{size:14,"aria-hidden":!0}),v?(0,U.jsx)(Uv,{size:16,"aria-hidden":!0}):(0,U.jsx)(vv,{size:16,"aria-hidden":!0}),(0,U.jsx)(J,{size:`sm`,fw:600,truncate:!0,title:w,children:w}),S?(0,U.jsxs)(J,{size:`xs`,c:`dimmed`,style:{whiteSpace:`nowrap`},children:[`version `,S]}):null,C&&(0,U.jsx)(J,{size:`xs`,c:`danger`,style:{whiteSpace:`nowrap`},children:C})]})}),v&&(0,U.jsx)(Rg,{label:`Open dashboard`,children:(0,U.jsx)(cu,{size:`sm`,"aria-label":`Open dashboard`,onClick:()=>n(f.id),children:(0,U.jsx)(Cy,{size:16})})}),(0,U.jsx)(Rg,{label:`Full screen`,children:(0,U.jsx)(cu,{size:`sm`,"aria-label":`Full screen`,onClick:()=>l(!0),children:(0,U.jsx)(Hte,{size:16})})})]}),x.length>0&&(0,U.jsx)(q,{gap:4,children:x.map(e=>(0,U.jsx)(ym,{size:`sm`,variant:`light`,color:`gray`,tt:`none`,children:e},e))}),r?(0,U.jsx)(j8,{fragment:f,compact:!0,stacked:!0,bare:!0}):(0,U.jsxs)(i_,{gap:2,component:`ul`,m:0,p:0,style:{listStyle:`none`},children:[b.slice(0,6).map(e=>{let t=y.get(e.id);return(0,U.jsxs)(q,{component:`li`,gap:8,wrap:`nowrap`,justify:`space-between`,children:[(0,U.jsx)(J,{size:`xs`,truncate:!0,title:t?.title||e.title,children:t?.title||e.title}),(0,U.jsx)(J,{size:`xs`,c:t?.status===`error`?`danger`:`dimmed`,ff:`monospace`,truncate:!0,ta:`right`,style:{maxWidth:`55%`},title:N8(e,t),children:N8(e,t)})]},e.id)}),b.length>6&&(0,U.jsxs)(J,{component:`li`,size:`xs`,c:`dimmed`,children:[`and `,b.length-6,` more`]})]})]}),(0,U.jsx)(mg,{opened:c,onClose:()=>l(!1),fullScreen:!0,title:w,radius:0,children:(0,U.jsx)(j8,{fragment:f})})]})}function MTe(e){let t=(e??``).trim();return t!==``&&![`{}`,`[]`,`null`,`""`,`"{}"`,`"[]"`].includes(t)}function NTe({conversation:e,action:t}){let n=t.status===`pending`,[r,i]=(0,h.useState)(!1),[a,o]=(0,h.useState)(!1),[s,c]=(0,h.useState)(null),l=(0,h.useRef)(!1),u=`${e}/${t.id}/${t.status}`,d=(0,h.useRef)(u);d.current=u,(0,h.useEffect)(()=>{l.current=!1,i(!1),c(null),o(!1)},[u]);let f=async(n,r=!1)=>{let a=u;if(!l.current){l.current=!0,i(!0),c(null);try{r?await U0.decideSimilar(e,t.id):await U0.decide(e,t.id,n)}catch(e){if(d.current!==a)return;c(e.message),l.current=!1,i(!1)}}};return(0,U.jsxs)(rl,{withBorder:!0,p:`xs`,radius:`md`,style:{background:`var(--driga-raised)`,borderColor:n?`var(--mantine-color-warning-filled)`:void 0},children:[(0,U.jsxs)(J,{size:`xs`,ff:`monospace`,style:{overflowWrap:`anywhere`},children:[t.tool,` · `,t.status]}),(0,U.jsx)(J,{size:`sm`,fw:600,style:{overflowWrap:`anywhere`},children:t.command?.summary??t.title}),t.command?(0,U.jsxs)(i_,{gap:4,mt:`xs`,children:[(0,U.jsxs)(J,{size:`xs`,children:[t.command.class,` · `,t.command.boundary]}),(0,U.jsx)(J,{component:`pre`,size:`xs`,ff:`monospace`,style:{whiteSpace:`pre-wrap`,overflowWrap:`anywhere`},children:t.command.requested.script??JSON.stringify(t.command.requested.argv)}),t.command.effective.map((e,t)=>(0,U.jsxs)(J,{size:`xs`,ff:`monospace`,style:{overflowWrap:`anywhere`},children:[`Effective: `,JSON.stringify(e)]},t)),(0,U.jsxs)(J,{size:`xs`,c:`dimmed`,children:[`Timeout: `,t.command.requested.timeout_seconds,`s`]}),t.command.error&&(0,U.jsx)(J,{role:`alert`,size:`xs`,c:`danger`,children:t.command.error}),[{label:`${t.command.count} process targets`,rows:t.command.targets},...[`stopped`,`vanished`,`skipped`,`survivors`].map(e=>({label:e,rows:t.command[e]??[]}))].filter(e=>e.rows.length>0).map(e=>(0,U.jsx)(Lf,{variant:`contained`,transitionDuration:0,children:(0,U.jsxs)(Lf.Item,{value:`targets`,children:[(0,U.jsx)(Lf.Control,{"aria-label":`Inspect ${e.label}`,children:e.label}),(0,U.jsx)(Lf.Panel,{children:(0,U.jsx)(K,{mah:300,tabIndex:0,"aria-label":e.label,style:{overflowY:`auto`},children:(0,U.jsx)(i_,{gap:`xs`,children:e.rows.map(e=>(0,U.jsxs)(K,{children:[(0,U.jsxs)(J,{size:`xs`,fw:600,children:[`PID `,e.pid,` · `,e.owner,` · `,w1(e.memory_bytes)]}),(0,U.jsxs)(J,{size:`xs`,ff:`monospace`,style:{overflowWrap:`anywhere`},children:[e.started_at,` · `,e.executable,` +`,JSON.stringify(e.argv),` · `,e.command_line,e.reason&&` · ${e.reason}`]})]},e.pid))})})})]})},e.label))]}):(0,U.jsx)(J,{component:`pre`,size:`xs`,ff:`monospace`,my:`xs`,style:{whiteSpace:`pre-wrap`,overflowWrap:`anywhere`},children:JSON.stringify(t.input,null,2)}),t.delegated&&(0,U.jsxs)(J,{component:`pre`,size:`xs`,ff:`monospace`,style:{whiteSpace:`pre-wrap`,overflowWrap:`anywhere`},children:[t.delegated.tool,` · `,t.delegated.cwd,` +`,JSON.stringify(t.delegated.input,null,2)]}),t.directory&&(0,U.jsxs)(J,{size:`xs`,c:`dimmed`,style:{overflowWrap:`anywhere`},children:[`in `,t.directory]}),t.decided_by&&(0,U.jsxs)(J,{size:`xs`,c:`dimmed`,children:[`Decided by `,t.decided_by]}),MTe(t.result)&&(0,U.jsx)(J,{size:`xs`,c:`dimmed`,mt:2,style:{overflowWrap:`anywhere`},children:t.result}),t.grant_id&&(0,U.jsx)(Om,{size:`compact-xs`,variant:`subtle`,disabled:a,onClick:()=>{let e=u;U0.revokeGrant(t.grant_id).then(()=>{d.current===e&&o(!0)},t=>{d.current===e&&c(t.message)})},children:a?`Grant revoked`:`Revoke grant`}),n&&t.grant_eligible&&(0,U.jsxs)(i_,{gap:4,mt:`xs`,children:[(0,U.jsx)(J,{size:`xs`,ff:`monospace`,style:{overflowWrap:`anywhere`},children:t.grant_pattern}),(0,U.jsxs)(J,{size:`xs`,c:`dimmed`,children:[`Expires `,t.grant_expires_at]}),(0,U.jsx)(Om,{variant:`light`,disabled:r,onClick:()=>void f(!0,!0),children:`Allow similar for this conversation`})]}),n&&(0,U.jsxs)(q,{gap:6,mt:`xs`,children:[(0,U.jsx)(Om,{disabled:r||!!t.command?.error,"aria-label":`Allow ${t.title}`,onClick:()=>void f(!0),children:`Allow`}),(0,U.jsx)(Om,{variant:`default`,disabled:r,"aria-label":`Deny ${t.title}`,onClick:()=>void f(!1),children:`Deny`})]}),s&&(0,U.jsx)(J,{size:`xs`,c:`danger`,role:`alert`,children:s})]})}function PTe({inbox:e,act:t,ask:n}){let r=e?.result?.frame?.rows.filter(t=>t[e.result.frame.columns.findIndex(e=>e.name===`kind`)]===`waiting`).length??0,{prompts:i=[],inboxFilter:a}=N0(),o=(e?.result?.frame?.rows.length??0)+i.length,s=[r?`What needs me first, and why?`:`Is anything stuck?`,`What finished since I was away, and is it safe to merge?`,`Make a dashboard for the project I am working on`,`Which processes can I reclaim?`];return(0,U.jsxs)(i_,{gap:`sm`,children:[r||i.length?(0,U.jsxs)(J,{size:`sm`,c:`dimmed`,children:[i.length>0&&`${i.length} permission ${i.length===1?`prompt`:`prompts`} to answer. `,r?`${r} ${r===1?`session needs`:`sessions need`} you.`:``]}):(0,U.jsx)(v8,{kind:`all-clear`,title:`Nothing is waiting on you.`}),e&&!e.listed&&(o>0||a)&&(0,U.jsx)(w8,{panel:e.panel,result:e.result,act:t}),(0,U.jsx)(i_,{gap:6,align:`flex-start`,children:s.map(e=>(0,U.jsx)(Om,{variant:`default`,radius:`xl`,leftSection:(0,U.jsx)(xy,{}),onClick:()=>n(e),styles:{label:{whiteSpace:`normal`,textAlign:`left`,lineHeight:1.35,overflow:`visible`}},h:`auto`,py:6,children:e},e))})]})}function FTe(e){let t=[],n=null;for(let r of e)r.role===`user`?(n&&t.push(n),n=null,t.push(r)):r.role===`assistant`?(n&&t.push(n),n=r):t.push(r);return n&&t.push(n),t}var ITe={claude:`Claude Code`,codex:`Codex`,copilot:`GitHub Copilot CLI`};function LTe({inbox:e,act:t,ask:n,onOpen:r,onClose:i,ref:a}){let[o,s]=(0,h.useState)(null),[c,l]=(0,h.useState)(`loading`),[u,d]=(0,h.useState)([]),[f,p]=(0,h.useState)(new Map),[m,g]=(0,h.useState)(!1),[_,v]=(0,h.useState)(),[y,b]=(0,h.useState)(null),[x,S]=(0,h.useState)(),[C,w]=(0,h.useState)(Date.now),[T,E]=(0,h.useState)(!1),[D,O]=(0,h.useState)(!1),k=(0,h.useRef)(!1),[A,j]=(0,h.useState)(``),[M,N]=(0,h.useState)(null),[P,F]=(0,h.useState)(``),ee=(0,h.useRef)(null),I=(0,h.useRef)(null),L=(0,h.useRef)(!1);(0,h.useEffect)(()=>{n&&(j(n.text),I.current?.focus())},[n]),(0,h.useEffect)(()=>{let e=!0;return U0.history().then(t=>{e&&(l(t.length?`loading`:`empty`),t.length&&!L.current&&s(e=>e??t[0].id))},()=>{e&&l(`unavailable`)}),()=>{e=!1}},[]),(0,h.useEffect)(()=>{if(v(void 0),!o)return;let e=new AbortController,t=0,n=new Map,r=[],i=e=>{let t=n.get(e.id);if(n.set(e.id,e),t?.created_at===e.created_at)return;t&&r.splice(r.indexOf(e.id),1);let i=0,a=r.length;for(;i>>1;n.get(r[t]).created_at.localeCompare(e.created_at)<=0?i=t+1:a=t}r.splice(i,0,e.id)},a=()=>d(r.map(e=>n.get(e))),s=e=>{v(e.conversation.agent),b(e.mode),S(e.until),w(Date.now()),e.reset&&(n.clear(),r.length=0,e.messages.forEach(i),p(new Map(e.actions.map(e=>[e.id,e]))),t=e.cursor);for(let r of e.events??[])if(!(r.seq<=t)){if(t=r.seq,r.action&&p(e=>new Map(e).set(r.action.id,r.action)),r.kind===`delta`&&r.message_id){let e=n.get(r.message_id);e&&n.set(e.id,{...e,text:e.text+(r.text??``),html:``})}r.message&&i(r.message)}e.cursor>t&&(t=e.cursor),g(!!e.active),a()};return(async()=>{for(;!e.signal.aborted;)try{let n=await U0.wait(o,t,e.signal);if(e.signal.aborted)return;s(n),N(null)}catch{if(e.signal.aborted)return;N(`Reconnecting…`),await new Promise(e=>setTimeout(e,1e3))}})(),()=>e.abort()},[o]),(0,h.useEffect)(()=>{if(y!==`full auto`)return;let e=setInterval(()=>w(Date.now()),1e3);return()=>clearInterval(e)},[y]),(0,h.useEffect)(()=>{ee.current?.scrollTo({top:ee.current.scrollHeight})},[u]);let R=async e=>{if(!o||k.current)return!1;k.current=!0,O(!0),N(null),E(!1);try{return await U0.setMode(o,e),!0}catch(e){return N(e.message),!1}finally{k.current=!1,O(!1)}},te=(0,h.useRef)(!1),ne=async()=>{if(te.current||k.current)return!1;if(o&&!y||!o&&c!==`empty`)return N(`Chat's trust mode is not available yet. Wait for it to load before closing.`),!1;te.current=!0;try{return o&&!await R(`confirm`)?!1:(i?.(),!0)}finally{te.current=!1}};(0,h.useImperativeHandle)(a,()=>({close:ne}));let re={confirm:`Confirm`,auto:`Auto`,"full auto":`Full auto`},ie=y?`Mode: ${re[y]}`:!o&&c===`empty`?`Mode: Confirm`:!o&&c===`unavailable`?`Mode unavailable`:`Loading mode…`;y===`full auto`&&x&&(ie+=` · ${Math.max(0,Math.ceil((Date.parse(x)-C)/6e4))}m left`);let ae=async e=>{let t=e.trim();if(t&&!L.current){L.current=!0,j(``);try{let e=o;e||(e=(await U0.create()).id,s(e)),await U0.send(e,t,{page:`/app/`}),F(t)}catch(e){j(e=>e||t),N(e.message)}finally{L.current=!1}}},oe=P&&!m?(0,U.jsx)(Om,{size:`compact-xs`,variant:`default`,onClick:()=>void ae(P),children:`Retry`}):null,z=FTe(u),se=e=>(e.role===`user`||e.role===`assistant`)&&!e.text.trim()&&e.status!==`streaming`&&e.status!==`queued`,ce=z.findIndex(se),B=z.map(e=>e.role).lastIndexOf(`assistant`),le=z.map(e=>e.role).lastIndexOf(`panel`);return(0,U.jsxs)(i_,{component:`section`,"aria-label":`Chat`,h:`100%`,gap:0,children:[(0,U.jsxs)(q,{justify:`space-between`,px:`md`,py:`sm`,style:{borderBottom:`1px solid var(--driga-border)`},children:[(0,U.jsxs)(q,{gap:8,align:`baseline`,wrap:`nowrap`,children:[(0,U.jsx)(D_,{order:2,fz:`sm`,fw:600,children:`Chat`}),(0,U.jsx)(J,{size:`xs`,c:y===`full auto`?`danger`:`dimmed`,fw:y===`full auto`?600:void 0,"aria-label":`Current trust mode`,style:{whiteSpace:`nowrap`},children:ie})]}),i&&(0,U.jsx)(cu,{"aria-label":`Close chat`,disabled:D,onClick:()=>void ne(),children:(0,U.jsx)(Py,{})})]}),_&&(0,U.jsx)(J,{size:`xs`,c:`dimmed`,px:`md`,py:4,"aria-label":`Assistant provider`,children:ITe[_]??`Assistant`}),(0,U.jsx)(Jc,{viewportRef:ee,style:{flex:1},type:`auto`,children:(0,U.jsxs)(i_,{gap:`sm`,p:`md`,children:[u.every(se)&&(0,U.jsx)(PTe,{inbox:e,act:t,ask:e=>void ae(e)}),z.map((e,t)=>{if((e.role===`user`||e.role===`assistant`)&&!e.text.trim())return e.status===`streaming`||e.status===`queued`?null:e.role===`assistant`&&e.status===`error`&&t===B?(0,U.jsx)(v8,{kind:`error`,title:`This reply failed`,caption:`The error is in the service's log.`,command:`driga service logs`,onRetry:P&&!m?()=>void ae(P):void 0},e.id):t===ce?(0,U.jsxs)(J,{size:`xs`,c:`dimmed`,children:[`Earlier messages aren't kept. Set `,(0,U.jsx)(J,{span:!0,ff:`monospace`,fz:`inherit`,children:`capture_text = "snippets"`}),` to keep Chat history.`]},e.id):null;if(e.role===`panel`)return e.text?(0,U.jsx)(jTe,{text:e.text,open:t===le,onOpen:r},e.id):null;if(e.role===`tool`)return(0,U.jsxs)(q,{gap:4,c:`dimmed`,children:[(0,U.jsx)(Cv,{size:12}),(0,U.jsx)(J,{size:`xs`,ff:`monospace`,children:e.text.replace(/^mcp__driga__/,``)})]},e.id);if(e.role===`action`){let t=f.get(e.id);return t&&o?(0,U.jsx)(NTe,{conversation:o,action:t},e.id):null}if(e.role===`user`)return(0,U.jsx)(rl,{px:`sm`,py:6,radius:`lg`,maw:`85%`,style:{alignSelf:`flex-end`,background:`var(--driga-hover)`,whiteSpace:`pre-wrap`},children:(0,U.jsx)(J,{size:`sm`,children:e.text})},e.id);let n=e.role===`assistant`&&e.status===`error`&&t===B;return(0,U.jsxs)(K,{"aria-live":e.role===`assistant`&&t===B?`polite`:void 0,"aria-atomic":!1,fz:`sm`,className:`markdown`,c:n?`danger`:void 0,children:[e.html?(0,U.jsx)(`div`,{dangerouslySetInnerHTML:{__html:e.html}}):(0,U.jsx)(J,{size:`sm`,c:`inherit`,children:e.text}),n&&oe&&(0,U.jsx)(K,{mt:4,children:oe})]},e.id)}),m&&(0,U.jsx)(J,{size:`xs`,c:`dimmed`,children:`Working…`}),M&&(0,U.jsx)(J,{size:`xs`,c:`danger`,children:M})]})}),(0,U.jsxs)(K,{component:`form`,p:`sm`,style:{borderTop:`1px solid var(--driga-border)`},onSubmit:e=>{e.preventDefault(),ae(A)},children:[(0,U.jsx)(hh,{ref:I,"aria-label":`Ask or act`,autosize:!0,minRows:2,maxRows:8,value:A,placeholder:`Ask about your agents, or tell Driga what to show`,onChange:e=>j(e.currentTarget.value),onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),ae(A))}}),(0,U.jsxs)(q,{justify:`space-between`,mt:8,children:[(0,U.jsx)(q,{gap:4,"aria-label":`Trust mode`,children:[`confirm`,`auto`,`full auto`].map(e=>(0,U.jsx)(Om,{size:`compact-xs`,variant:y===e?`light`:`default`,color:e===`full auto`?`danger`:void 0,"aria-pressed":y===e,disabled:!o||!y||D,onClick:()=>e===`full auto`?E(!0):void R(e),children:re[e]},e))}),m?(0,U.jsx)(Om,{variant:`default`,onClick:()=>o&&void U0.stop(o),children:`Stop`}):(0,U.jsx)(Om,{type:`submit`,disabled:!A.trim(),children:`Send`})]})]}),T&&(0,U.jsxs)(mg,{opened:!0,onClose:()=>E(!1),title:`Enable Full auto?`,centered:!0,children:[(0,U.jsx)(J,{size:`sm`,children:`Full auto runs reads and sandboxed Other commands automatically for 30 minutes. Process and Destructive commands still ask.`}),(0,U.jsxs)(q,{justify:`flex-end`,mt:`md`,children:[(0,U.jsx)(Om,{variant:`default`,onClick:()=>E(!1),children:`Cancel`}),(0,U.jsx)(Om,{color:`danger`,onClick:()=>void R(`full auto`),children:`Enable Full auto`})]})]})]})}function RTe(){var e=[...arguments];return(0,h.useMemo)(()=>t=>{e.forEach(e=>e(t))},e)}var P8=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function F8(e){let t=Object.prototype.toString.call(e);return t===`[object Window]`||t===`[object global]`}function I8(e){return`nodeType`in e}function L8(e){return e?F8(e)?e:I8(e)?e.ownerDocument?.defaultView??window:window:window}function R8(e){let{Document:t}=L8(e);return e instanceof t}function z8(e){return!F8(e)&&e instanceof L8(e).HTMLElement}function B8(e){return e instanceof L8(e).SVGElement}function V8(e){return e?F8(e)?e.document:I8(e)?R8(e)?e:z8(e)||B8(e)?e.ownerDocument:document:document:document}var H8=P8?h.useLayoutEffect:h.useEffect;function U8(e){let t=(0,h.useRef)(e);return H8(()=>{t.current=e}),(0,h.useCallback)(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function zTe(){let e=(0,h.useRef)(null);return[(0,h.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,h.useCallback)(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[])]}function W8(e,t){t===void 0&&(t=[e]);let n=(0,h.useRef)(e);return H8(()=>{n.current!==e&&(n.current=e)},t),n}function G8(e,t){let n=(0,h.useRef)();return(0,h.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function K8(e){let t=U8(e),n=(0,h.useRef)(null);return[n,(0,h.useCallback)(e=>{e!==n.current&&t?.(e,n.current),n.current=e},[])]}function q8(e){let t=(0,h.useRef)();return(0,h.useEffect)(()=>{t.current=e},[e]),t.current}var J8={};function Y8(e,t){return(0,h.useMemo)(()=>{if(t)return t;let n=J8[e]==null?0:J8[e]+1;return J8[e]=n,e+`-`+n},[e,t])}function X8(e){return function(t){return[...arguments].slice(1).reduce((t,n)=>{let r=Object.entries(n);for(let[n,i]of r){let r=t[n];r!=null&&(t[n]=r+e*i)}return t},{...t})}}var Z8=X8(1),Q8=X8(-1);function BTe(e){return`clientX`in e&&`clientY`in e}function $8(e){if(!e)return!1;let{KeyboardEvent:t}=L8(e.target);return t&&e instanceof t}function VTe(e){if(!e)return!1;let{TouchEvent:t}=L8(e.target);return t&&e instanceof t}function e5(e){if(VTe(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return BTe(e)?{x:e.clientX,y:e.clientY}:null}var t5=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return`translate3d(`+(t?Math.round(t):0)+`px, `+(n?Math.round(n):0)+`px, 0)`}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return`scaleX(`+t+`) scaleY(`+n+`)`}},Transform:{toString(e){if(e)return[t5.Translate.toString(e),t5.Scale.toString(e)].join(` `)}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+` `+n+`ms `+r}}}),n5=`a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]`;function HTe(e){return e.matches(n5)?e:e.querySelector(n5)}var UTe={display:`none`};function WTe(e){let{id:t,value:n}=e;return h.createElement(`div`,{id:t,style:UTe},n)}function GTe(e){let{id:t,announcement:n,ariaLiveType:r=`assertive`}=e;return h.createElement(`div`,{id:t,style:{position:`fixed`,top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:`hidden`,clip:`rect(0 0 0 0)`,clipPath:`inset(100%)`,whiteSpace:`nowrap`},role:`status`,"aria-live":r,"aria-atomic":!0},n)}function KTe(){let[e,t]=(0,h.useState)(``);return{announce:(0,h.useCallback)(e=>{e!=null&&t(e)},[]),announcement:e}}var r5=(0,h.createContext)(null);function qTe(e){let t=(0,h.useContext)(r5);(0,h.useEffect)(()=>{if(!t)throw Error(`useDndMonitor must be used within a children of `);return t(e)},[e,t])}function JTe(){let[e]=(0,h.useState)(()=>new Set),t=(0,h.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,h.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>e[n]?.call(e,r))},[e]),t]}var YTe={draggable:` + To pick up a draggable item, press the space bar. + While dragging, use the arrow keys to move the item. + Press space again to drop the item in its new position, or press escape to cancel. + `},XTe={onDragStart(e){let{active:t}=e;return`Picked up draggable item `+t.id+`.`},onDragOver(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was moved over droppable area `+n.id+`.`:`Draggable item `+t.id+` is no longer over a droppable area.`},onDragEnd(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was dropped over droppable area `+n.id:`Draggable item `+t.id+` was dropped.`},onDragCancel(e){let{active:t}=e;return`Dragging was cancelled. Draggable item `+t.id+` was dropped.`}};function ZTe(e){let{announcements:t=XTe,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=YTe}=e,{announce:a,announcement:o}=KTe(),s=Y8(`DndLiveRegion`),[c,l]=(0,h.useState)(!1);if((0,h.useEffect)(()=>{l(!0)},[]),qTe((0,h.useMemo)(()=>({onDragStart(e){let{active:n}=e;a(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&a(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;a(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;a(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;a(t.onDragCancel({active:n,over:r}))}}),[a,t])),!c)return null;let u=h.createElement(h.Fragment,null,h.createElement(WTe,{id:r,value:i.draggable}),h.createElement(GTe,{id:s,announcement:o}));return n?(0,ke.createPortal)(u,n):u}var i5;(function(e){e.DragStart=`dragStart`,e.DragMove=`dragMove`,e.DragEnd=`dragEnd`,e.DragCancel=`dragCancel`,e.DragOver=`dragOver`,e.RegisterDroppable=`registerDroppable`,e.SetDroppableDisabled=`setDroppableDisabled`,e.UnregisterDroppable=`unregisterDroppable`})(i5||={});function a5(){}function o5(e,t){return(0,h.useMemo)(()=>({sensor:e,options:t??{}}),[e,t])}function QTe(){var e=[...arguments];return(0,h.useMemo)(()=>[...e].filter(e=>e!=null),[...e])}var s5=Object.freeze({x:0,y:0});function c5(e,t){return Math.sqrt((e.x-t.x)**2+(e.y-t.y)**2)}function l5(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function $Te(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function u5(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function d5(e,t){if(!e||e.length===0)return null;let[n]=e;return t?n[t]:n}function f5(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}var eEe=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=f5(t,t.left,t.top),a=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=c5(f5(r),i);a.push({id:t,data:{droppableContainer:e,value:n}})}}return a.sort(l5)},tEe=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=u5(t),a=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=u5(r),o=i.reduce((e,t,r)=>e+c5(n[r],t),0),s=Number((o/4).toFixed(4));a.push({id:t,data:{droppableContainer:e,value:s}})}}return a.sort(l5)};function nEe(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),o=i-r,s=a-n;if(r{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=[];for(let e of r){let{id:r}=e,a=n.get(r);if(a){let n=nEe(a,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort($Te)};function iEe(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function p5(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:s5}function aEe(e){return function(t){return[...arguments].slice(1).reduce((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}var oEe=aEe(1);function sEe(e){if(e.startsWith(`matrix3d(`)){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith(`matrix(`)){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function cEe(e,t,n){let r=sEe(t);if(!r)return e;let{scaleX:i,scaleY:a,x:o,y:s}=r,c=e.left-o-(1-i)*parseFloat(n),l=e.top-s-(1-a)*parseFloat(n.slice(n.indexOf(` `)+1)),u=i?e.width/i:e.width,d=a?e.height/a:e.height;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c}}var lEe={ignoreTransform:!1};function m5(e,t){t===void 0&&(t=lEe);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=L8(e).getComputedStyle(e);t&&(n=cEe(n,t,r))}let{top:r,left:i,width:a,height:o,bottom:s,right:c}=n;return{top:r,left:i,width:a,height:o,bottom:s,right:c}}function h5(e){return m5(e,{ignoreTransform:!0})}function uEe(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function dEe(e,t){return t===void 0&&(t=L8(e).getComputedStyle(e)),t.position===`fixed`}function fEe(e,t){t===void 0&&(t=L8(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return[`overflow`,`overflowX`,`overflowY`].some(e=>{let r=t[e];return typeof r==`string`&&n.test(r)})}function g5(e,t){let n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(R8(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!z8(i)||B8(i)||n.includes(i))return n;let a=L8(e).getComputedStyle(i);return i!==e&&fEe(i,a)&&n.push(i),dEe(i,a)?n:r(i.parentNode)}return e?r(e):n}function _5(e){let[t]=g5(e,1);return t??null}function v5(e){return!P8||!e?null:F8(e)?e:I8(e)?R8(e)||e===V8(e).scrollingElement?window:z8(e)?e:null:null}function y5(e){return F8(e)?e.scrollX:e.scrollLeft}function b5(e){return F8(e)?e.scrollY:e.scrollTop}function x5(e){return{x:y5(e),y:b5(e)}}var S5;(function(e){e[e.Forward=1]=`Forward`,e[e.Backward=-1]=`Backward`})(S5||={});function C5(e){return!P8||!e?!1:e===document.scrollingElement}function w5(e){let t={x:0,y:0},n=C5(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}var pEe={x:.2,y:.2};function mEe(e,t,n,r,i){let{top:a,left:o,right:s,bottom:c}=n;r===void 0&&(r=10),i===void 0&&(i=pEe);let{isTop:l,isBottom:u,isLeft:d,isRight:f}=w5(e),p={x:0,y:0},m={x:0,y:0},h={height:t.height*i.y,width:t.width*i.x};return!l&&a<=t.top+h.height?(p.y=S5.Backward,m.y=r*Math.abs((t.top+h.height-a)/h.height)):!u&&c>=t.bottom-h.height&&(p.y=S5.Forward,m.y=r*Math.abs((t.bottom-h.height-c)/h.height)),!f&&s>=t.right-h.width?(p.x=S5.Forward,m.x=r*Math.abs((t.right-h.width-s)/h.width)):!d&&o<=t.left+h.width&&(p.x=S5.Backward,m.x=r*Math.abs((t.left+h.width-o)/h.width)),{direction:p,speed:m}}function hEe(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function T5(e){return e.reduce((e,t)=>Z8(e,x5(t)),s5)}function gEe(e){return e.reduce((e,t)=>e+y5(t),0)}function _Ee(e){return e.reduce((e,t)=>e+b5(t),0)}function vEe(e,t){if(t===void 0&&(t=m5),!e)return;let{top:n,left:r,bottom:i,right:a}=t(e);_5(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:`center`,inline:`center`})}var yEe=[[`x`,[`left`,`right`],gEe],[`y`,[`top`,`bottom`],_Ee]],E5=class{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let n=g5(t),r=T5(n);this.rect={...e},this.width=e.width,this.height=e.height;for(let[e,t,i]of yEe)for(let a of t)Object.defineProperty(this,a,{get:()=>{let t=i(n),o=r[e]-t;return this.rect[a]+o},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}},D5=class{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>this.target?.removeEventListener(...e))},this.target=e}add(e,t,n){var r;(r=this.target)==null||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}};function bEe(e){let{EventTarget:t}=L8(e);return e instanceof t?e:V8(e)}function O5(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return typeof t==`number`?Math.sqrt(n**2+r**2)>t:`x`in t&&`y`in t?n>t.x&&r>t.y:`x`in t?n>t.x:`y`in t&&r>t.y}var k5;(function(e){e.Click=`click`,e.DragStart=`dragstart`,e.Keydown=`keydown`,e.ContextMenu=`contextmenu`,e.Resize=`resize`,e.SelectionChange=`selectionchange`,e.VisibilityChange=`visibilitychange`})(k5||={});function A5(e){e.preventDefault()}function xEe(e){e.stopPropagation()}var j5;(function(e){e.Space=`Space`,e.Down=`ArrowDown`,e.Right=`ArrowRight`,e.Left=`ArrowLeft`,e.Up=`ArrowUp`,e.Esc=`Escape`,e.Enter=`Enter`,e.Tab=`Tab`})(j5||={});var M5={start:[j5.Space,j5.Enter],cancel:[j5.Esc],end:[j5.Space,j5.Enter,j5.Tab]},SEe=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case j5.Right:return{...n,x:n.x+25};case j5.Left:return{...n,x:n.x-25};case j5.Down:return{...n,y:n.y+25};case j5.Up:return{...n,y:n.y-25}}},N5=class{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new D5(V8(t)),this.windowListeners=new D5(L8(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(k5.Resize,this.handleCancel),this.windowListeners.add(k5.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(k5.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&vEe(n),t(s5)}handleKeyDown(e){if($8(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:i=M5,coordinateGetter:a=SEe,scrollBehavior:o=`smooth`}=r,{code:s}=e;if(i.end.includes(s)){this.handleEnd(e);return}if(i.cancel.includes(s)){this.handleCancel(e);return}let{collisionRect:c}=n.current,l=c?{x:c.left,y:c.top}:s5;this.referenceCoordinates||=l;let u=a(e,{active:t,context:n.current,currentCoordinates:l});if(u){let t=Q8(u,l),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(let n of i){let i=e.code,{isTop:a,isRight:s,isLeft:c,isBottom:l,maxScroll:d,minScroll:f}=w5(n),p=hEe(n),m={x:Math.min(i===j5.Right?p.right-p.width/2:p.right,Math.max(i===j5.Right?p.left:p.left+p.width/2,u.x)),y:Math.min(i===j5.Down?p.bottom-p.height/2:p.bottom,Math.max(i===j5.Down?p.top:p.top+p.height/2,u.y))},h=i===j5.Right&&!s||i===j5.Left&&!c,g=i===j5.Down&&!l||i===j5.Up&&!a;if(h&&m.x!==u.x){let e=n.scrollLeft+t.x,a=i===j5.Right&&e<=d.x||i===j5.Left&&e>=f.x;if(a&&!t.y){n.scrollTo({left:e,behavior:o});return}r.x=a?n.scrollLeft-e:i===j5.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:o});break}if(g&&m.y!==u.y){let e=n.scrollTop+t.y,a=i===j5.Down&&e<=d.y||i===j5.Up&&e>=f.y;if(a&&!t.x){n.scrollTo({top:e,behavior:o});return}r.y=a?n.scrollTop-e:i===j5.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:o});break}}this.handleMove(e,Z8(Q8(u,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};N5.activators=[{eventName:`onKeyDown`,handler:(e,t,n)=>{let{keyboardCodes:r=M5,onActivation:i}=t,{active:a}=n,{code:o}=e.nativeEvent;if(r.start.includes(o)){let t=a.activatorNode.current;return t&&e.target!==t?!1:(e.preventDefault(),i?.({event:e.nativeEvent}),!0)}return!1}}];function P5(e){return!!(e&&`distance`in e)}function F5(e){return!!(e&&`delay`in e)}var I5=class{constructor(e,t,n){n===void 0&&(n=bEe(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:r}=e,{target:i}=r;this.props=e,this.events=t,this.document=V8(i),this.documentListeners=new D5(this.document),this.listeners=new D5(n),this.windowListeners=new D5(L8(i)),this.initialCoordinates=e5(r)??s5,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(k5.Resize,this.handleCancel),this.windowListeners.add(k5.DragStart,A5),this.windowListeners.add(k5.VisibilityChange,this.handleCancel),this.windowListeners.add(k5.ContextMenu,A5),this.documentListeners.add(k5.Keydown,this.handleKeydown),t){if(n!=null&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(F5(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(P5(t)){this.handlePending(t);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){let{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(k5.Click,xEe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(k5.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){let{activated:t,initialCoordinates:n,props:r}=this,{onMove:i,options:{activationConstraint:a}}=r;if(!n)return;let o=e5(e)??s5,s=Q8(n,o);if(!t&&a){if(P5(a)){if(a.tolerance!=null&&O5(s,a.tolerance))return this.handleCancel();if(O5(s,a.distance))return this.handleStart()}if(F5(a)&&O5(s,a.tolerance))return this.handleCancel();this.handlePending(a,s)}else e.cancelable&&e.preventDefault(),i(o)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===j5.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}},CEe={cancel:{name:`pointercancel`},move:{name:`pointermove`},end:{name:`pointerup`}},L5=class extends I5{constructor(e){let{event:t}=e,n=V8(t.target);super(e,CEe,n)}};L5.activators=[{eventName:`onPointerDown`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];var wEe={move:{name:`mousemove`},end:{name:`mouseup`}},R5;(function(e){e[e.RightClick=2]=`RightClick`})(R5||={});var TEe=class extends I5{constructor(e){super(e,wEe,V8(e.event.target))}};TEe.activators=[{eventName:`onMouseDown`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==R5.RightClick&&(r?.({event:n}),!0)}}];var z5={cancel:{name:`touchcancel`},move:{name:`touchmove`},end:{name:`touchend`}},EEe=class extends I5{constructor(e){super(e,z5)}static setup(){return window.addEventListener(z5.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(z5.move.name,e)};function e(){}}};EEe.activators=[{eventName:`onTouchStart`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:i}=n;return i.length>1?!1:(r?.({event:n}),!0)}}];var B5;(function(e){e[e.Pointer=0]=`Pointer`,e[e.DraggableRect=1]=`DraggableRect`})(B5||={});var V5;(function(e){e[e.TreeOrder=0]=`TreeOrder`,e[e.ReversedTreeOrder=1]=`ReversedTreeOrder`})(V5||={});function DEe(e){let{acceleration:t,activator:n=B5.Pointer,canScroll:r,draggingRect:i,enabled:a,interval:o=5,order:s=V5.TreeOrder,pointerCoordinates:c,scrollableAncestors:l,scrollableAncestorRects:u,delta:d,threshold:f}=e,p=kEe({delta:d,disabled:!a}),[m,g]=zTe(),_=(0,h.useRef)({x:0,y:0}),v=(0,h.useRef)({x:0,y:0}),y=(0,h.useMemo)(()=>{switch(n){case B5.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case B5.DraggableRect:return i}},[n,i,c]),b=(0,h.useRef)(null),x=(0,h.useCallback)(()=>{let e=b.current;if(!e)return;let t=_.current.x*v.current.x,n=_.current.y*v.current.y;e.scrollBy(t,n)},[]),S=(0,h.useMemo)(()=>s===V5.TreeOrder?[...l].reverse():l,[s,l]);(0,h.useEffect)(()=>{if(!a||!l.length||!y)g();else{for(let e of S){if(r?.(e)===!1)continue;let n=l.indexOf(e),i=u[n];if(!i)continue;let{direction:a,speed:s}=mEe(e,i,y,t,f);for(let e of[`x`,`y`])p[e][a[e]]||(s[e]=0,a[e]=0);if(s.x>0||s.y>0){g(),b.current=e,m(x,o),_.current=s,v.current=a;return}}_.current={x:0,y:0},v.current={x:0,y:0},g()}},[t,x,r,g,a,o,JSON.stringify(y),JSON.stringify(p),m,l,S,u,JSON.stringify(f)])}var OEe={x:{[S5.Backward]:!1,[S5.Forward]:!1},y:{[S5.Backward]:!1,[S5.Forward]:!1}};function kEe(e){let{delta:t,disabled:n}=e,r=q8(t);return G8(e=>{if(n||!r||!e)return OEe;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[S5.Backward]:e.x[S5.Backward]||i.x===-1,[S5.Forward]:e.x[S5.Forward]||i.x===1},y:{[S5.Backward]:e.y[S5.Backward]||i.y===-1,[S5.Forward]:e.y[S5.Forward]||i.y===1}}},[n,t,r])}function AEe(e,t){let n=t==null?void 0:e.get(t),r=n?n.node.current:null;return G8(e=>t==null?null:r??e??null,[r,t])}function jEe(e,t){return(0,h.useMemo)(()=>e.reduce((e,n)=>{let{sensor:r}=n,i=r.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}));return[...e,...i]},[]),[e,t])}var H5;(function(e){e[e.Always=0]=`Always`,e[e.BeforeDragging=1]=`BeforeDragging`,e[e.WhileDragging=2]=`WhileDragging`})(H5||={});var U5;(function(e){e.Optimized=`optimized`})(U5||={});var W5=new Map;function MEe(e,t){let{dragging:n,dependencies:r,config:i}=t,[a,o]=(0,h.useState)(null),{frequency:s,measure:c,strategy:l}=i,u=(0,h.useRef)(e),d=_(),f=W8(d),p=(0,h.useCallback)(function(e){e===void 0&&(e=[]),!f.current&&o(t=>t===null?e:t.concat(e.filter(e=>!t.includes(e))))},[f]),m=(0,h.useRef)(null),g=G8(t=>{if(d&&!n)return W5;if(!t||t===W5||u.current!==e||a!=null){let t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new E5(c(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,a,n,d,c]);return(0,h.useEffect)(()=>{u.current=e},[e]),(0,h.useEffect)(()=>{d||p()},[n,d]),(0,h.useEffect)(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),(0,h.useEffect)(()=>{d||typeof s!=`number`||m.current!==null||(m.current=setTimeout(()=>{p(),m.current=null},s))},[s,d,p,...r]),{droppableRects:g,measureDroppableContainers:p,measuringScheduled:a!=null};function _(){switch(l){case H5.Always:return!1;case H5.BeforeDragging:return n;default:return!n}}}function G5(e,t){return G8(n=>e?n||(typeof t==`function`?t(e):e):null,[t,e])}function NEe(e,t){return G5(e,t)}function PEe(e){let{callback:t,disabled:n}=e,r=U8(t),i=(0,h.useMemo)(()=>{if(n||typeof window>`u`||window.MutationObserver===void 0)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,h.useEffect)(()=>()=>i?.disconnect(),[i]),i}function K5(e){let{callback:t,disabled:n}=e,r=U8(t),i=(0,h.useMemo)(()=>{if(n||typeof window>`u`||window.ResizeObserver===void 0)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,h.useEffect)(()=>()=>i?.disconnect(),[i]),i}function FEe(e){return new E5(m5(e),e)}function q5(e,t,n){t===void 0&&(t=FEe);let[r,i]=(0,h.useState)(null);function a(){i(r=>{if(!e)return null;if(e.isConnected===!1)return r??n??null;let i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i})}let o=PEe({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if(t===`childList`&&r instanceof HTMLElement&&r.contains(e)){a();break}}}}),s=K5({callback:a});return H8(()=>{a(),e?(s?.observe(e),o?.observe(document.body,{childList:!0,subtree:!0})):(s?.disconnect(),o?.disconnect())},[e]),r}function IEe(e){return p5(e,G5(e))}var J5=[];function LEe(e){let t=(0,h.useRef)(e),n=G8(n=>e?n&&n!==J5&&e&&t.current&&e.parentNode===t.current.parentNode?n:g5(e):J5,[e]);return(0,h.useEffect)(()=>{t.current=e},[e]),n}function REe(e){let[t,n]=(0,h.useState)(null),r=(0,h.useRef)(e),i=(0,h.useCallback)(e=>{let t=v5(e.target);t&&n(e=>e?(e.set(t,x5(t)),new Map(e)):null)},[]);return(0,h.useEffect)(()=>{let t=r.current;if(e!==t){a(t);let o=e.map(e=>{let t=v5(e);return t?(t.addEventListener(`scroll`,i,{passive:!0}),[t,x5(t)]):null}).filter(e=>e!=null);n(o.length?new Map(o):null),r.current=e}return()=>{a(e),a(t)};function a(e){e.forEach(e=>{v5(e)?.removeEventListener(`scroll`,i)})}},[i,e]),(0,h.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>Z8(e,t),s5):T5(e):s5,[e,t])}function Y5(e,t){t===void 0&&(t=[]);let n=(0,h.useRef)(null);return(0,h.useEffect)(()=>{n.current=null},t),(0,h.useEffect)(()=>{let t=e!==s5;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?Q8(e,n.current):s5}function zEe(e){(0,h.useEffect)(()=>{if(!P8)return;let t=e.map(e=>{let{sensor:t}=e;return t.setup==null?void 0:t.setup()});return()=>{for(let e of t)e?.()}},e.map(e=>{let{sensor:t}=e;return t}))}function BEe(e,t){return(0,h.useMemo)(()=>e.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[e,t])}function X5(e){return(0,h.useMemo)(()=>e?uEe(e):null,[e])}var Z5=[];function VEe(e,t){t===void 0&&(t=m5);let[n]=e,r=X5(n?L8(n):null),[i,a]=(0,h.useState)(Z5);function o(){a(()=>e.length?e.map(e=>C5(e)?r:new E5(t(e),e)):Z5)}let s=K5({callback:o});return H8(()=>{s?.disconnect(),o(),e.forEach(e=>s?.observe(e))},[e]),i}function HEe(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return z8(t)?t:e}function UEe(e){let{measure:t}=e,[n,r]=(0,h.useState)(null),i=K5({callback:(0,h.useCallback)(e=>{for(let{target:n}of e)if(z8(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),[a,o]=K8((0,h.useCallback)(e=>{let n=HEe(e);i?.disconnect(),n&&i?.observe(n),r(n?t(n):null)},[t,i]));return(0,h.useMemo)(()=>({nodeRef:a,rect:n,setRef:o}),[n,a,o])}var WEe=[{sensor:L5,options:{}},{sensor:N5,options:{}}],GEe={current:{}},Q5={draggable:{measure:h5},droppable:{measure:h5,strategy:H5.WhileDragging,frequency:U5.Optimized},dragOverlay:{measure:m5}},$5=class extends Map{get(e){return e==null?void 0:super.get(e)??void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){return this.get(e)?.node.current??void 0}},KEe={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new $5,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:a5},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Q5,measureDroppableContainers:a5,windowRect:null,measuringScheduled:!1},qEe={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:``},dispatch:a5,draggableNodes:new Map,over:null,measureDroppableContainers:a5},e7=(0,h.createContext)(qEe),t7=(0,h.createContext)(KEe);function JEe(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new $5}}}function YEe(e,t){switch(t.type){case i5.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case i5.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case i5.DragEnd:case i5.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case i5.RegisterDroppable:{let{element:n}=t,{id:r}=n,i=new $5(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case i5.SetDroppableDisabled:{let{id:n,key:r,disabled:i}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;let o=new $5(e.droppable.containers);return o.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case i5.UnregisterDroppable:{let{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let a=new $5(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function XEe(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:i}=(0,h.useContext)(e7),a=q8(r),o=q8(n?.id);return(0,h.useEffect)(()=>{if(!t&&!r&&a&&o!=null){if(!$8(a)||document.activeElement===a.target)return;let e=i.get(o);if(!e)return;let{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=HTe(e);if(t){t.focus();break}}})}},[r,t,i,o,a]),null}function ZEe(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}function QEe(e){return(0,h.useMemo)(()=>({draggable:{...Q5.draggable,...e?.draggable},droppable:{...Q5.droppable,...e?.droppable},dragOverlay:{...Q5.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function $Ee(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e,a=(0,h.useRef)(!1),{x:o,y:s}=typeof i==`boolean`?{x:i,y:i}:i;H8(()=>{if(!o&&!s||!t){a.current=!1;return}if(a.current||!r)return;let e=t?.node.current;if(!e||e.isConnected===!1)return;let i=p5(n(e),r);if(o||(i.x=0),s||(i.y=0),a.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=_5(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,o,s,r,n])}var n7=(0,h.createContext)({...s5,scaleX:1,scaleY:1}),r7;(function(e){e[e.Uninitialized=0]=`Uninitialized`,e[e.Initializing=1]=`Initializing`,e[e.Initialized=2]=`Initialized`})(r7||={});var eDe=(0,h.memo)(function(e){let{id:t,accessibility:n,autoScroll:r=!0,children:i,sensors:a=WEe,collisionDetection:o=rEe,measuring:s,modifiers:c,...l}=e,[u,d]=(0,h.useReducer)(YEe,void 0,JEe),[f,p]=JTe(),[m,g]=(0,h.useState)(r7.Uninitialized),_=m===r7.Initialized,{draggable:{active:v,nodes:y,translate:b},droppable:{containers:x}}=u,S=v==null?null:y.get(v),C=(0,h.useRef)({initial:null,translated:null}),w=(0,h.useMemo)(()=>v==null?null:{id:v,data:S?.data??GEe,rect:C},[v,S]),T=(0,h.useRef)(null),[E,D]=(0,h.useState)(null),[O,k]=(0,h.useState)(null),A=W8(l,Object.values(l)),j=Y8(`DndDescribedBy`,t),M=(0,h.useMemo)(()=>x.getEnabled(),[x]),N=QEe(s),{droppableRects:P,measureDroppableContainers:F,measuringScheduled:ee}=MEe(M,{dragging:_,dependencies:[b.x,b.y],config:N.droppable}),I=AEe(y,v),L=(0,h.useMemo)(()=>O?e5(O):null,[O]),R=Oe(),te=NEe(I,N.draggable.measure);$Ee({activeNode:v==null?null:y.get(v),config:R.layoutShiftCompensation,initialRect:te,measure:N.draggable.measure});let ne=q5(I,N.draggable.measure,te),re=q5(I?I.parentElement:null),ie=(0,h.useRef)({activatorEvent:null,active:null,activeNode:I,collisionRect:null,collisions:null,droppableRects:P,draggableNodes:y,draggingNode:null,draggingNodeRect:null,droppableContainers:x,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ae=x.getNodeFor(ie.current.over?.id),oe=UEe({measure:N.dragOverlay.measure}),z=oe.nodeRef.current??I,se=_?oe.rect??ne:null,ce=!!(oe.nodeRef.current&&oe.rect),B=IEe(ce?null:ne),le=X5(z?L8(z):null),ue=LEe(_?ae??I:null),de=VEe(ue),fe=ZEe(c,{transform:{x:b.x-B.x,y:b.y-B.y,scaleX:1,scaleY:1},activatorEvent:O,active:w,activeNodeRect:ne,containerNodeRect:re,draggingNodeRect:se,over:ie.current.over,overlayNodeRect:oe.rect,scrollableAncestors:ue,scrollableAncestorRects:de,windowRect:le}),pe=L?Z8(L,b):null,me=REe(ue),he=Y5(me),ge=Y5(me,[ne]),_e=Z8(fe,he),V=se?oEe(se,fe):null,ve=w&&V?o({active:w,collisionRect:V,droppableRects:P,droppableContainers:M,pointerCoordinates:pe}):null,ye=d5(ve,`id`),[be,xe]=(0,h.useState)(null),Se=iEe(ce?fe:Z8(fe,ge),be?.rect??null,ne),Ce=(0,h.useRef)(null),we=(0,h.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(T.current==null)return;let i=y.get(T.current);if(!i)return;let a=e.nativeEvent,o=new n({active:T.current,activeNode:i,event:a,options:r,context:ie,onAbort(e){if(!y.get(e))return;let{onDragAbort:t}=A.current,n={id:e};t?.(n),f({type:`onDragAbort`,event:n})},onPending(e,t,n,r){if(!y.get(e))return;let{onDragPending:i}=A.current,a={id:e,constraint:t,initialCoordinates:n,offset:r};i?.(a),f({type:`onDragPending`,event:a})},onStart(e){let t=T.current;if(t==null)return;let n=y.get(t);if(!n)return;let{onDragStart:r}=A.current,i={activatorEvent:a,active:{id:t,data:n.data,rect:C}};(0,ke.unstable_batchedUpdates)(()=>{r?.(i),g(r7.Initializing),d({type:i5.DragStart,initialCoordinates:e,active:t}),f({type:`onDragStart`,event:i}),D(Ce.current),k(a)})},onMove(e){d({type:i5.DragMove,coordinates:e})},onEnd:s(i5.DragEnd),onCancel:s(i5.DragCancel)});Ce.current=o;function s(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=ie.current,o=null;if(t&&i){let{cancelDrop:s}=A.current;o={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===i5.DragEnd&&typeof s==`function`&&await Promise.resolve(s(o))&&(e=i5.DragCancel)}T.current=null,(0,ke.unstable_batchedUpdates)(()=>{d({type:e}),g(r7.Uninitialized),xe(null),D(null),k(null),Ce.current=null;let t=e===i5.DragEnd?`onDragEnd`:`onDragCancel`;if(o){let e=A.current[t];e?.(o),f({type:t,event:o})}})}}},[y]),Te=jEe(a,(0,h.useCallback)((e,t)=>(n,r)=>{let i=n.nativeEvent,a=y.get(r);if(T.current!==null||!a||i.dndKit||i.defaultPrevented)return;let o={active:a};e(n,t.options,o)===!0&&(i.dndKit={capturedBy:t.sensor},T.current=r,we(n,t))},[y,we]));zEe(a),H8(()=>{ne&&m===r7.Initializing&&g(r7.Initialized)},[ne,m]),(0,h.useEffect)(()=>{let{onDragMove:e}=A.current,{active:t,activatorEvent:n,collisions:r,over:i}=ie.current;if(!t||!n)return;let a={active:t,activatorEvent:n,collisions:r,delta:{x:_e.x,y:_e.y},over:i};(0,ke.unstable_batchedUpdates)(()=>{e?.(a),f({type:`onDragMove`,event:a})})},[_e.x,_e.y]),(0,h.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=ie.current;if(!e||T.current==null||!t||!i)return;let{onDragOver:a}=A.current,o=r.get(ye),s=o&&o.rect.current?{id:o.id,rect:o.rect.current,data:o.data,disabled:o.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,ke.unstable_batchedUpdates)(()=>{xe(s),a?.(c),f({type:`onDragOver`,event:c})})},[ye]),H8(()=>{ie.current={activatorEvent:O,active:w,activeNode:I,collisionRect:V,collisions:ve,droppableRects:P,draggableNodes:y,draggingNode:z,draggingNodeRect:se,droppableContainers:x,over:be,scrollableAncestors:ue,scrollAdjustedTranslate:_e},C.current={initial:se,translated:V}},[w,I,ve,V,y,z,se,P,x,be,ue,_e]),DEe({...R,delta:b,draggingRect:V,pointerCoordinates:pe,scrollableAncestors:ue,scrollableAncestorRects:de});let Ee=(0,h.useMemo)(()=>({active:w,activeNode:I,activeNodeRect:ne,activatorEvent:O,collisions:ve,containerNodeRect:re,dragOverlay:oe,draggableNodes:y,droppableContainers:x,droppableRects:P,over:be,measureDroppableContainers:F,scrollableAncestors:ue,scrollableAncestorRects:de,measuringConfiguration:N,measuringScheduled:ee,windowRect:le}),[w,I,ne,O,ve,re,oe,y,x,P,be,F,ue,de,N,ee,le]),De=(0,h.useMemo)(()=>({activatorEvent:O,activators:Te,active:w,activeNodeRect:ne,ariaDescribedById:{draggable:j},dispatch:d,draggableNodes:y,over:be,measureDroppableContainers:F}),[O,Te,w,ne,d,j,y,be,F]);return h.createElement(r5.Provider,{value:p},h.createElement(e7.Provider,{value:De},h.createElement(t7.Provider,{value:Ee},h.createElement(n7.Provider,{value:Se},i)),h.createElement(XEe,{disabled:n?.restoreFocus===!1})),h.createElement(ZTe,{...n,hiddenTextDescribedById:j}));function Oe(){let e=E?.autoScrollEnabled===!1,t=typeof r==`object`?r.enabled===!1:r===!1,n=_&&!e&&!t;return typeof r==`object`?{...r,enabled:n}:{enabled:n}}}),tDe=(0,h.createContext)(null),i7=`button`,nDe=`Draggable`;function rDe(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e,a=Y8(nDe),{activators:o,activatorEvent:s,active:c,activeNodeRect:l,ariaDescribedById:u,draggableNodes:d,over:f}=(0,h.useContext)(e7),{role:p=i7,roleDescription:m=`draggable`,tabIndex:g=0}=i??{},_=c?.id===t,v=(0,h.useContext)(_?n7:tDe),[y,b]=K8(),[x,S]=K8(),C=BEe(o,t),w=W8(n);return H8(()=>(d.set(t,{id:t,key:a,node:y,activatorNode:x,data:w}),()=>{let e=d.get(t);e&&e.key===a&&d.delete(t)}),[d,t]),{active:c,activatorEvent:s,activeNodeRect:l,attributes:(0,h.useMemo)(()=>({role:p,tabIndex:g,"aria-disabled":r,"aria-pressed":_&&p===i7?!0:void 0,"aria-roledescription":m,"aria-describedby":u.draggable}),[r,p,g,_,m,u.draggable]),isDragging:_,listeners:r?void 0:C,node:y,over:f,setNodeRef:b,setActivatorNodeRef:S,transform:v}}function iDe(){return(0,h.useContext)(t7)}var aDe=`Droppable`,oDe={timeout:25};function sDe(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e,a=Y8(aDe),{active:o,dispatch:s,over:c,measureDroppableContainers:l}=(0,h.useContext)(e7),u=(0,h.useRef)({disabled:n}),d=(0,h.useRef)(!1),f=(0,h.useRef)(null),p=(0,h.useRef)(null),{disabled:m,updateMeasurementsFor:g,timeout:_}={...oDe,...i},v=W8(g??r),y=K5({callback:(0,h.useCallback)(()=>{d.current?(p.current!=null&&clearTimeout(p.current),p.current=setTimeout(()=>{l(Array.isArray(v.current)?v.current:[v.current]),p.current=null},_)):d.current=!0},[_]),disabled:m||!o}),[b,x]=K8((0,h.useCallback)((e,t)=>{y&&(t&&(y.unobserve(t),d.current=!1),e&&y.observe(e))},[y])),S=W8(t);return(0,h.useEffect)(()=>{y&&b.current&&(y.disconnect(),d.current=!1,y.observe(b.current))},[b,y]),(0,h.useEffect)(()=>(s({type:i5.RegisterDroppable,element:{id:r,key:a,disabled:n,node:b,rect:f,data:S}}),()=>s({type:i5.UnregisterDroppable,key:a,id:r})),[r]),(0,h.useEffect)(()=>{n!==u.current.disabled&&(s({type:i5.SetDroppableDisabled,id:r,key:a,disabled:n}),u.current.disabled=n)},[r,a,n,s]),{active:o,rect:f,isOver:c?.id===r,node:b,over:c,setNodeRef:x}}function a7(e,t,n){let r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function cDe(e,t){return e.reduce((e,n,r)=>{let i=t.get(n);return i&&(e[r]=i),e},Array(e.length))}function o7(e){return e!==null&&e>=0}function lDe(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{let{rects:t,activeNodeRect:n,activeIndex:r,overIndex:i,index:a}=e,o=t[r]??n;if(!o)return null;let s=fDe(t,a,r);if(a===r){let e=t[i];return e?{x:rr&&a<=i?{x:-o.width-s,y:0,...s7}:a=i?{x:o.width+s,y:0,...s7}:{x:0,y:0,...s7}};function fDe(e,t,n){let r=e[t],i=e[t-1],a=e[t+1];return!r||!i&&!a?0:n{let{rects:t,activeIndex:n,overIndex:r,index:i}=e,a=a7(t,r,n),o=t[i],s=a[i];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},l7={scaleX:1,scaleY:1},pDe=e=>{let{activeIndex:t,activeNodeRect:n,index:r,rects:i,overIndex:a}=e,o=i[t]??n;if(!o)return null;if(r===t){let e=i[a];return e?{x:0,y:tt&&r<=a?{x:0,y:-o.height-s,...l7}:r=a?{x:0,y:o.height+s,...l7}:{x:0,y:0,...l7}};function mDe(e,t,n){let r=e[t],i=e[t-1],a=e[t+1];return r?nr.map(e=>typeof e==`object`&&`id`in e?e.id:e),[r]),m=o!=null,g=o?p.indexOf(o.id):-1,_=l?p.indexOf(l.id):-1,v=(0,h.useRef)(p),y=!lDe(p,v.current),b=_!==-1&&g===-1||y,x=uDe(a);H8(()=>{y&&m&&u(p)},[y,p,m,u]),(0,h.useEffect)(()=>{v.current=p},[p]);let S=(0,h.useMemo)(()=>({activeIndex:g,containerId:d,disabled:x,disableTransforms:b,items:p,overIndex:_,useDragOverlay:f,sortedRects:cDe(p,c),strategy:i}),[g,d,x.draggable,x.droppable,b,p,_,c,f,i]);return h.createElement(d7.Provider,{value:S},t)}var hDe=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return a7(n,r,i).indexOf(t)},gDe=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:a,newIndex:o,previousItems:s,previousContainerId:c,transition:l}=e;return!l||!r||s!==a&&i===o?!1:n?!0:o!==i&&t===c},_De={duration:200,easing:`ease`},p7=`transform`,vDe=t5.Transition.toString({property:p7,duration:0,easing:`linear`}),yDe={roleDescription:`sortable`};function bDe(e){let{disabled:t,index:n,node:r,rect:i}=e,[a,o]=(0,h.useState)(null),s=(0,h.useRef)(n);return H8(()=>{if(!t&&n!==s.current&&r.current){let e=i.current;if(e){let t=m5(r.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&o(n)}}n!==s.current&&(s.current=n)},[t,n,r,i]),(0,h.useEffect)(()=>{a&&o(null)},[a]),a}function xDe(e){let{animateLayoutChanges:t=gDe,attributes:n,disabled:r,data:i,getNewIndex:a=hDe,id:o,strategy:s,resizeObserverConfig:c,transition:l=_De}=e,{items:u,containerId:d,activeIndex:f,disabled:p,disableTransforms:m,sortedRects:g,overIndex:_,useDragOverlay:v,strategy:y}=(0,h.useContext)(d7),b=SDe(r,p),x=u.indexOf(o),S=(0,h.useMemo)(()=>({sortable:{containerId:d,index:x,items:u},...i}),[d,i,x,u]),C=(0,h.useMemo)(()=>u.slice(u.indexOf(o)),[u,o]),{rect:w,node:T,isOver:E,setNodeRef:D}=sDe({id:o,data:S,disabled:b.droppable,resizeObserverConfig:{updateMeasurementsFor:C,...c}}),{active:O,activatorEvent:k,activeNodeRect:A,attributes:j,setNodeRef:M,listeners:N,isDragging:P,over:F,setActivatorNodeRef:ee,transform:I}=rDe({id:o,data:S,attributes:{...yDe,...n},disabled:b.draggable}),L=RTe(D,M),R=!!O,te=R&&!m&&o7(f)&&o7(_),ne=!v&&P,re=te?(ne&&te?I:null)??(s??y)({rects:g,activeNodeRect:A,activeIndex:f,overIndex:_,index:x}):null,ie=o7(f)&&o7(_)?a({id:o,items:u,activeIndex:f,overIndex:_}):x,ae=O?.id,oe=(0,h.useRef)({activeId:ae,items:u,newIndex:ie,containerId:d}),z=u!==oe.current.items,se=t({active:O,containerId:d,isDragging:P,isSorting:R,id:o,index:x,items:u,newIndex:oe.current.newIndex,previousItems:oe.current.items,previousContainerId:oe.current.containerId,transition:l,wasDragging:oe.current.activeId!=null}),ce=bDe({disabled:!se,index:x,node:T,rect:w});return(0,h.useEffect)(()=>{R&&oe.current.newIndex!==ie&&(oe.current.newIndex=ie),d!==oe.current.containerId&&(oe.current.containerId=d),u!==oe.current.items&&(oe.current.items=u)},[R,ie,d,u]),(0,h.useEffect)(()=>{if(ae===oe.current.activeId)return;if(ae!=null&&oe.current.activeId==null){oe.current.activeId=ae;return}let e=setTimeout(()=>{oe.current.activeId=ae},50);return()=>clearTimeout(e)},[ae]),{active:O,activeIndex:f,attributes:j,data:S,rect:w,index:x,newIndex:ie,items:u,isOver:E,isSorting:R,isDragging:P,listeners:N,node:T,overIndex:_,over:F,setNodeRef:L,setActivatorNodeRef:ee,setDroppableNodeRef:D,setDraggableNodeRef:M,transform:ce??re,transition:B()};function B(){if(ce||z&&oe.current.newIndex===x)return vDe;if(!(ne&&!$8(k)||!l)&&(R||se))return t5.Transition.toString({...l,property:p7})}}function SDe(e,t){return typeof e==`boolean`?{draggable:e,droppable:!1}:{draggable:e?.draggable??t.draggable,droppable:e?.droppable??t.droppable}}function m7(e){if(!e)return!1;let t=e.data.current;return!!(t&&`sortable`in t&&typeof t.sortable==`object`&&`containerId`in t.sortable&&`items`in t.sortable&&`index`in t.sortable)}var CDe=[j5.Down,j5.Right,j5.Up,j5.Left],wDe=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:i,droppableContainers:a,over:o,scrollableAncestors:s}}=t;if(CDe.includes(e.code)){if(e.preventDefault(),!n||!r)return;let t=[];a.getEnabled().forEach(n=>{if(!n||n!=null&&n.disabled)return;let a=i.get(n.id);if(a)switch(e.code){case j5.Down:r.topa.top&&t.push(n);break;case j5.Left:r.left>a.left&&t.push(n);break;case j5.Right:r.left1&&(l=c[1].id),l!=null){let e=a.get(n.id),t=a.get(l),o=t?i.get(t.id):null,c=t?.node.current;if(c&&o&&e&&t){let n=g5(c).some((e,t)=>s[t]!==e),i=h7(e,t),a=TDe(e,t),l=n||!i?{x:0,y:0}:{x:a?r.width-o.width:0,y:a?r.height-o.height:0},u={x:o.left,y:o.top};return l.x&&l.y?u:Q8(u,l)}}}};function h7(e,t){return!m7(e)||!m7(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function TDe(e,t){return!m7(e)||!m7(t)||!h7(e,t)?!1:e.data.current.sortable.index0?`more`:`less`} than ${r} ago${n===`good`?`, good`:n===`bad`?`, worse`:``}`}function DDe({delta:e,amount:t,polarity:n,window:r=`1h`}){let i=e>0?`▲`:e<0?`▼`:null,a=EDe(e,t,n,r);return(0,U.jsxs)(J,{component:`span`,fz:12,ff:`monospace`,lh:1.4,px:5,title:a,style:{display:`inline-flex`,alignItems:`center`,gap:4,borderRadius:`var(--mantine-radius-sm)`,background:`var(--driga-tint-neutral)`,whiteSpace:`nowrap`,fontVariantNumeric:`tabular-nums`},children:[(0,U.jsxs)(`span`,{"aria-hidden":`true`,children:[i&&`${i} `,e===0?`steady`:t,r&&` · ${r}`]}),(0,U.jsx)(el,{children:a})]})}var ODe={waiting:`warning`,review:`info`,stuck:`danger`};function kDe(e,t){return t===`neutral`||Math.abs(e)<1e-9?`neutral`:e>0==(t===`up-good`)?`good`:`bad`}function ADe({label:e,sublabel:t,icon:n,value:r,unit:i,total:a,caption:o,detail:s,delta:c,direction:l=`neutral`,trend:u,attention:d,description:f,tooltip:p,selected:m,onClick:g,shortcut:_,size:v=`board`,menu:y,children:b,visual:x,menuItem:S,visibleFrom:C,hiddenFrom:w}){let T=Jn(`dark`),[E,D]=(0,h.useState)(!1),O=r===null||r===0,k=d&&typeof r==`number`&&r>0?ODe[d]:void 0,A=v===`header`,j=c&&!O?(0,U.jsx)(DDe,{delta:c.change,amount:O1(Math.abs(c.change),i),polarity:kDe(c.change,l),window:c.window}):null,M=u&&u.length>1&&!O?(0,U.jsx)(b0,{trend:u,title:e,color:Vy[T][k??`brand`]}):null,N=S?tg.Item:g?Qc:K,P=(0,U.jsx)(N,{className:`w-tile`,"data-size":v,"data-clickable":g?``:void 0,"data-selected":m?`true`:void 0,"data-attention":k,"aria-pressed":!S&&g&&m!==void 0?m:void 0,"aria-keyshortcuts":_,onClick:g,onContextMenu:e=>{y?.length&&(e.preventDefault(),D(!0))},title:f,px:A?8:`sm`,py:A?1:`sm`,children:x??(0,U.jsxs)(i_,{gap:A?2:4,children:[(0,U.jsxs)(q,{gap:6,wrap:`nowrap`,c:k||`var(--driga-faint)`,children:[n&&(0,U.jsx)(n,{size:14,"aria-hidden":!0,style:{flex:`none`}}),(0,U.jsxs)(J,{size:`xs`,fw:500,tt:`uppercase`,lts:`0.04em`,c:k?`var(--driga-text)`:`dimmed`,lh:A?1.25:1.2,truncate:!0,title:t?`${e} · ${t}`:e,style:{whiteSpace:`nowrap`},children:[e,t&&(0,U.jsxs)(U.Fragment,{children:[` · `,(0,U.jsx)(J,{span:!0,fz:`xs`,fw:500,ff:`monospace`,tt:`none`,lts:0,lh:`inherit`,c:`dimmed`,children:t})]})]})]}),(0,U.jsxs)(q,{gap:6,wrap:`nowrap`,align:`center`,children:[k&&(0,U.jsx)(Bm,{size:6,color:`var(--mantine-color-${k}-filled)`,withShadow:!1,"aria-hidden":!0,className:d===`waiting`?`w-pulse`:void 0,style:{flex:`none`}}),(0,U.jsx)(K,{c:O?`dimmed`:void 0,style:{whiteSpace:`nowrap`},children:(0,U.jsx)(v0,{n:r,unit:i,total:a,size:A?20:22,lineHeight:A?1.2:1.1})}),o&&(0,U.jsxs)(J,{fz:12,ff:`monospace`,c:`dimmed`,lh:1.2,style:{whiteSpace:`nowrap`},children:[`· `,o]}),s&&(0,U.jsxs)(el,{children:[` `,s]}),A&&M&&(0,U.jsx)(K,{w:72,h:20,"aria-hidden":!0,style:{flex:`none`},children:M}),A&&j&&(0,U.jsx)(K,{visibleFrom:`lg`,children:j})]}),!A&&(j||M)&&(0,U.jsxs)(q,{justify:`space-between`,wrap:`nowrap`,gap:6,h:24,children:[j??(0,U.jsx)(`span`,{}),M&&(0,U.jsx)(K,{h:24,style:{flex:`1 1 48px`,minWidth:40,maxWidth:96},children:M})]}),A?(0,U.jsx)(K,{h:3,"aria-hidden":!b||void 0,children:b}):b]})});return(0,U.jsxs)(K,{className:`w-tile-box`,visibleFrom:C,hiddenFrom:w,style:A?{display:`inline-block`}:void 0,children:[p?(0,U.jsx)(Rg,{label:p,events:{hover:!0,focus:!0,touch:!0},children:P}):P,y&&y.length>0&&(0,U.jsxs)(tg,{opened:E,onChange:D,position:`bottom-end`,withinPortal:!S,shadow:`md`,width:200,children:[(0,U.jsx)(tg.Target,{children:(0,U.jsx)(cu,{className:`w-tile-menu`,size:18,"aria-label":`More for ${e}`,children:(0,U.jsx)(zv,{size:14})})}),(0,U.jsx)(tg.Dropdown,{children:y.map(e=>{let t=e.icon,n=(0,U.jsx)(tg.Item,{disabled:e.disabled,leftSection:t?(0,U.jsx)(t,{}):void 0,onClick:e.onClick,children:e.label},e.label);return e.hint?(0,U.jsx)(Rg,{label:e.hint,events:{hover:!0,focus:!0,touch:!0},children:(0,U.jsx)(K,{tabIndex:0,children:n})},e.label):n})})]})]})}function jDe(){return(0,U.jsxs)(q,{gap:8,wrap:`nowrap`,"aria-label":`Driga`,role:`img`,children:[(0,U.jsx)(`img`,{src:`/static/brand/murmur.svg`,width:24,height:24,alt:``}),(0,U.jsx)(`span`,{className:`wordmark`,"aria-hidden":`true`})]})}var g7={tile:`_tile_1nf1e_4`,slot:`_slot_1nf1e_15`,drag:`_drag_1nf1e_22`,measuring:`_measuring_1nf1e_26`,more:`_more_1nf1e_27`};function MDe(){return(0,U.jsx)(Wm,{orientation:`vertical`,h:24,color:`var(--driga-border)`,style:{alignSelf:`center`}})}function NDe({m:e,now:t}){let n=Z1(e),r=e.reachable?n?i0(n):`var(--driga-faint)`:`transparent`;return(0,U.jsx)(Rg,{label:yhe(e,t),events:{hover:!0,focus:!1,touch:!0},children:(0,U.jsx)(K,{w:8,h:8,"aria-hidden":!0,style:{borderRadius:`50%`,background:r,flex:`none`,boxShadow:e.reachable?void 0:`inset 0 0 0 1.5px var(--driga-faint)`,outline:e.local?`1px solid var(--mantine-color-brand-filled)`:void 0,outlineOffset:1}})})}var PDe=8,_7=6;function FDe(e,t,n,r,i,a){return[{label:`Show on Home`,icon:Cy,onClick:()=>t(e)},...n?[{label:`Ask Chat about it`,icon:xv,onClick:()=>n(e.title)}]:[],...r?[{label:`Remove from header`,disabled:i||a,hint:i?`The header needs one widget`:void 0,onClick:()=>r(e.id)}]:[]]}function IDe({tile:e,enabled:t,children:n}){let{setNodeRef:r,setActivatorNodeRef:i,attributes:a,listeners:o,transform:s,transition:c}=xDe({id:e.id,disabled:!t});return(0,U.jsxs)(K,{ref:r,"data-header-tile":e.id,"data-reorderable":t||void 0,className:g7.slot,onPointerDown:e=>{e.target.closest(`.w-tile`)&&o?.onPointerDown?.(e)},style:{transition:c,transform:s?`translate3d(${s.x}px, ${s.y}px, 0)`:void 0,zIndex:s?1:void 0},children:[n,t&&(0,U.jsx)(cu,{ref:i,className:g7.drag,size:16,...a,...o,"aria-label":`Reorder ${e.title}`,children:(0,U.jsx)(Lv,{size:12})})]})}function v7({id:e,onWidth:t,children:n}){let{ref:r,width:i}=ce({box:`border-box`});return(0,h.useLayoutEffect)(()=>{i>0&&t(e,Math.ceil(i))},[e,i,t]),(0,U.jsx)(K,{ref:r,className:g7.slot,children:n})}function LDe({data:e,filter:t,chatOpen:n,onFilter:r,onOpenFleet:i,onSearch:a,onToggleChat:o,onShow:s,onAsk:c,search:l,editor:u,busy:d,onRemove:f,onMove:p}){let{ref:m,width:g}=ce(),_=QTe(o5(L5,{activationConstraint:{distance:6}}),o5(N5,{coordinateGetter:wDe})),v=e?.tiles??[],[y,b]=(0,h.useState)({}),x=(0,h.useCallback)((e,t)=>{b(n=>n[e]===t?n:{...n,[e]:t})},[]),S=Array.from({length:Math.max(1,v.length)},(e,t)=>`+${t+1}`),C=Math.max(0,...S.map(e=>y[e]??0)),w=0,T=0;for(let e=0;eMath.floor(g))break;T=n,w=e+1}let E=v.slice(w),D=(n,i=!1,a=!1)=>{let o=n.behavior.attention,l=n.trend,u=l?.[0],m=l?.[l.length-1],h=typeof u==`number`&&typeof m==`number`&&l.length>1?{change:m-u,window:`1h`}:void 0,g=n.viz===`gauge`&&n.value!==null,_=n.value===null?null:g?Q1(n.value,n.max??100):n.total==null?null:Q1(n.value,n.total),y=(n.viz===`stat`||g)&&_!==null,b=n.error??(o?`${Y1[o].hint} · ${xhe({count:n.value??0,trend:l??[],delta:h?.change??0})}`:n.panel.description??n.title),S=(0,U.jsx)(ADe,{menuItem:i,size:`header`,label:n.title,sublabel:n.behavior.sublabel?e?.localMachine:void 0,icon:n.behavior.icon,value:n.value,unit:n.unit,total:g?void 0:n.total??void 0,caption:n.caption==null?void 0:_he(n.panel,n.caption),trend:y?void 0:l,delta:y?void 0:h,direction:n.behavior.direction,attention:o,selected:o?t===o:void 0,shortcut:!a&&o?Y1[o].key:void 0,tooltip:a?void 0:b,onClick:a?void 0:()=>o?r(o):s(n.panel),menu:a?void 0:FDe(n.panel,s,c,f,v.length===1,d),children:y&&(0,U.jsx)(jg,{size:`xs`,value:_,color:g?m0(_/100):m0(_/100,[.9,.9]),"aria-label":`${_}% of ${n.title.toLowerCase()} used`,styles:{root:{background:`var(--driga-border)`}}})});return a?(0,U.jsx)(v7,{id:n.id,onWidth:x,children:S},n.id):(0,U.jsx)(IDe,{tile:n,enabled:!!p&&!d,children:S},n.id)},O=e?.machines??[];return(0,U.jsxs)(q,{h:`100%`,gap:8,wrap:`nowrap`,"data-header-row":!0,"data-header-ready":v.every(e=>y[e.id])&&S.every(e=>y[e]),children:[(0,U.jsx)(jDe,{}),e&&(0,U.jsx)(MDe,{}),(0,U.jsxs)(K,{ref:m,style:{flex:1,minWidth:C,position:`relative`},children:[(0,U.jsx)(eDe,{sensors:_,collisionDetection:eEe,onDragEnd:({active:e,over:t})=>{if(!t||e.id===t.id||!p||d)return;let n=v.findIndex(t=>t.id===e.id),r=v.findIndex(e=>e.id===t.id);if(n<0||r<0)return;let i=a7(v,n,r);p(String(e.id),i[r+1]?.id)},children:(0,U.jsx)(f7,{items:v.map(e=>e.id),strategy:dDe,children:(0,U.jsxs)(q,{gap:_7,wrap:`nowrap`,children:[v.slice(0,w).map(e=>D(e)),E.length>0&&(0,U.jsxs)(tg,{position:`bottom-end`,width:`auto`,withinPortal:!0,shadow:`md`,children:[(0,U.jsx)(tg.Target,{children:(0,U.jsxs)(Om,{className:g7.more,miw:C||void 0,variant:`subtle`,size:`compact-sm`,"aria-label":`+${E.length}`,children:[`+`,E.length]})}),(0,U.jsx)(tg.Dropdown,{mah:`70vh`,style:{overflowY:`auto`},children:(0,U.jsx)(f7,{items:E.map(e=>e.id),strategy:pDe,children:E.map(e=>D(e,!0))})})]})]})})}),(0,U.jsxs)(K,{className:g7.measuring,"aria-hidden":`true`,inert:!0,children:[v.map(e=>D(e,!1,!0)),S.map(e=>(0,U.jsx)(v7,{id:e,onWidth:x,children:(0,U.jsx)(Om,{component:`div`,className:g7.more,variant:`subtle`,size:`compact-sm`,children:e})},e))]})]}),u,e&&(0,U.jsx)(Rg,{label:$1(O),children:(0,U.jsx)(Qc,{className:g7.tile,px:8,h:32,onClick:i,"aria-label":$1(O),"aria-keyshortcuts":`g f`,children:(0,U.jsxs)(q,{gap:6,wrap:`nowrap`,children:[O.slice(0,PDe).map(e=>(0,U.jsx)(NDe,{m:e,now:Date.now()},e.id)),O.length===0&&(0,U.jsx)(Ty,{size:16,"aria-hidden":!0}),(0,U.jsx)(J,{fz:12,ff:`monospace`,c:`dimmed`,children:O.length})]})})}),l??(0,U.jsx)(Qc,{className:`search-button`,onClick:a,"aria-keyshortcuts":`Meta+K`,title:`Search sessions and dashboards (⌘K)`,children:(0,U.jsxs)(q,{gap:8,wrap:`nowrap`,children:[(0,U.jsx)(py,{size:16,"aria-hidden":!0}),(0,U.jsx)(el,{children:`Search`}),(0,U.jsx)(vh,{size:`xs`,"aria-hidden":!0,children:`⌘K`})]})}),(0,U.jsx)(Rg,{label:n?`Hide Chat`:`Show Chat`,children:(0,U.jsx)(cu,{size:`lg`,variant:n?`light`:`subtle`,color:n?`brand`:`gray`,"aria-pressed":n,"aria-label":`Chat`,onClick:o,children:(0,U.jsx)(xv,{size:20})})})]})}function y7(e){let{margin:t,containerPadding:n,containerWidth:r,cols:i}=e;return(r-t[0]*(i-1)-n[0]*2)/i}function b7(e,t,n){return Number.isFinite(e)?Math.round(t*e+Math.max(0,e-1)*n):e}function x7(e,t,n,r,i,a,o){let{margin:s,containerPadding:c,rowHeight:l}=e,u=y7(e),d,f,p,m;if(o?(d=Math.round(o.width),f=Math.round(o.height)):(d=b7(r,u,s[0]),f=b7(i,l,s[1])),a?(p=Math.round(a.top),m=Math.round(a.left)):o?(p=Math.round(o.top),m=Math.round(o.left)):(p=Math.round((l+s[1])*n+c[1]),m=Math.round((u+s[0])*t+c[0])),!a&&!o){if(Number.isFinite(r)){let e=Math.round((u+s[0])*(t+r)+c[0])-m-d;e!==s[0]&&(d+=e-s[0])}if(Number.isFinite(i)){let e=Math.round((l+s[1])*(n+i)+c[1])-p-f;e!==s[1]&&(f+=e-s[1])}}return{top:p,left:m,width:d,height:f}}function RDe(e,t,n,r,i){let{margin:a,containerPadding:o,cols:s,rowHeight:c,maxRows:l}=e,u=y7(e),d=Math.round((n-o[0])/(u+a[0])),f=Math.round((t-o[1])/(c+a[1]));return d=C7(d,0,s-r),f=C7(f,0,l-i),{x:d,y:f}}function S7(e,t,n){let{margin:r,containerPadding:i,rowHeight:a}=e,o=y7(e);return{x:Math.round((n-i[0])/(o+r[0])),y:Math.round((t-i[1])/(a+r[1]))}}function zDe(e,t,n){let{margin:r,rowHeight:i}=e,a=y7(e);return{w:Math.max(1,Math.round((t+r[0])/(a+r[0]))),h:Math.max(1,Math.round((n+r[1])/(i+r[1])))}}function C7(e,t,n){return Math.max(Math.min(e,n),t)}function w7(e,t){return!(e.i===t.i||e.x+e.w<=t.x||e.x>=t.x+t.w||e.y+e.h<=t.y||e.y>=t.y+t.h)}function T7(e,t){for(let n=0;nw7(e,t))}function BDe(e,t){return t===`horizontal`?O7(e):t===`vertical`||t===`wrap`?D7(e):[...e]}function D7(e){return[...e].sort((e,t)=>e.y===t.y?e.x-t.x:e.y-t.y)}function O7(e){return[...e].sort((e,t)=>e.x===t.x?e.y-t.y:e.x-t.x)}function k7(e){let t=0;for(let n=0;nt&&(t=e)}}return t}function A7(e,t){for(let n=0;ne.static===!0)}function M7(e){return{i:e.i,x:e.x,y:e.y,w:e.w,h:e.h,minW:e.minW,maxW:e.maxW,minH:e.minH,maxH:e.maxH,moved:!!e.moved,static:!!e.static,isDraggable:e.isDraggable,isResizable:e.isResizable,resizeHandles:e.resizeHandles,constraints:e.constraints,isBounded:e.isBounded}}function N7(e){let t=Array(e.length);for(let n=0;nt.cols&&(i.x=t.cols-i.w),i.x<0&&(i.x=0,i.w=t.cols),i.y===1/0&&(i.y=k7(n)),!i.static)n.push(i);else for(;T7(n,i);)i.y++}}return e}function F7(e,t,n,r,i,a,o,s,c){if(t.static&&t.isDraggable!==!0||t.y===r&&t.x===n)return[...e];let l=t.x,u=t.y;typeof n==`number`&&(t.x=n),typeof r==`number`&&(t.y=r),t.moved=!0;let d=BDe(e,o);(o===`vertical`&&typeof r==`number`?u>=r:o===`horizontal`&&typeof n==`number`&&l>=n)&&(d=d.reverse());let f=E7(d,t),p=f.length>0;if(p&&c)return N7(e);if(p&&a)return t.x=l,t.y=u,t.moved=!1,e;let m=[...e];for(let e=0;et.y,d=l!==void 0&&t.x+t.w>l.x;if(!l)return F7(e,n,o?a.x:void 0,s?a.y:void 0,r,c,i);if(u&&s)return F7(e,n,void 0,n.y+1,r,c,i);if(u&&i===null){let r=n.y;return t.y=r,n.y=r+t.h,[...e]}if(d&&o)return F7(e,t,n.x,void 0,r,c,i)}let l=o?n.x+1:void 0,u=s?n.y+1:void 0;return l===void 0&&u===void 0?[...e]:F7(e,n,l,u,r,c,i)}function L7(e,t,n){return Math.max(t,Math.min(n,e))}var R7=[{name:`gridBounds`,constrainPosition(e,t,n,{cols:r,maxRows:i}){return{x:L7(t,0,Math.max(0,r-e.w)),y:L7(n,0,Math.max(0,i-e.h))}},constrainSize(e,t,n,r,{cols:i,maxRows:a}){let o=r===`w`||r===`nw`||r===`sw`?e.x+e.w:i-e.x,s=r===`n`||r===`nw`||r===`ne`?e.y+e.h:a-e.y;return{w:L7(t,1,Math.max(1,o)),h:L7(n,1,Math.max(1,s))}}},{name:`minMaxSize`,constrainSize(e,t,n){return{w:L7(t,e.minW??1,e.maxW??1/0),h:L7(n,e.minH??1,e.maxH??1/0)}}}];function z7(e,t,n,r,i){let a={x:n,y:r};for(let n of e)n.constrainPosition&&(a=n.constrainPosition(t,a.x,a.y,i));if(t.constraints)for(let e of t.constraints)e.constrainPosition&&(a=e.constrainPosition(t,a.x,a.y,i));return a}function UDe(e,t,n,r,i,a){let o={w:n,h:r};for(let n of e)n.constrainSize&&(o=n.constrainSize(t,o.w,o.h,i,a));if(t.constraints)for(let e of t.constraints)e.constrainSize&&(o=e.constrainSize(t,o.w,o.h,i,a));return o}function B7({top:e,left:t,width:n,height:r}){let i=`translate(${t}px,${e}px)`;return{transform:i,WebkitTransform:i,MozTransform:i,msTransform:i,OTransform:i,width:`${n}px`,height:`${r}px`,position:`absolute`}}function WDe({top:e,left:t,width:n,height:r}){return{top:`${e}px`,left:`${t}px`,width:`${n}px`,height:`${r}px`,position:`absolute`}}function V7(e){return e*100+`%`}function GDe(e,t,n,r){return e+n>r?t:n}function H7(e,t,n){return e<0?t:n}function KDe(e){return Math.max(0,e)}function U7(e){return Math.max(0,e)}var W7=(e,t,n)=>{let{left:r,height:i,width:a}=t,o=e.top-(i-e.height);return{left:r,width:a,height:H7(o,e.height,i),top:U7(o)}},G7=(e,t,n)=>{let{top:r,left:i,height:a,width:o}=t;return{top:r,height:a,width:GDe(e.left,e.width,o,n),left:KDe(i)}},K7=(e,t,n)=>{let{top:r,height:i,width:a}=t,o=e.left+e.width-a;return o<0?{height:i,width:e.left+e.width,top:U7(r),left:0}:{height:i,width:a,top:U7(r),left:o}},q7=(e,t,n)=>{let{top:r,left:i,height:a,width:o}=t;return{width:o,left:i,height:H7(r,e.height,a),top:U7(r)}},qDe={n:W7,ne:(e,t,n)=>W7(e,G7(e,t,n)),e:G7,se:(e,t,n)=>q7(e,G7(e,t,n)),s:q7,sw:(e,t,n)=>q7(e,K7(e,t)),w:K7,nw:(e,t,n)=>W7(e,K7(e,t))};function JDe(e,t,n,r){let i=qDe[e];return i?i(t,{...t,...n},r):n}var YDe={type:`transform`,scale:1,calcStyle(e){return B7(e)}},XDe={cols:12,rowHeight:150,margin:[10,10],containerPadding:null,maxRows:1/0},ZDe={enabled:!0,bounded:!1,threshold:3},QDe={enabled:!0,handles:[`se`]},$De={enabled:!1,defaultItem:{w:1,h:1},touchEnabled:!0,touchDragSource:`[data-rgl-draggable]`};function J7(e,t,n,r,i){let a=r===`x`?`w`:`h`;t[r]+=1;let o=e.findIndex(e=>e.i===t.i),s=i??j7(e).length>0;for(let i=o+1;it.y+t.h)break;w7(t,o)&&J7(e,o,n+t[a],r,s)}}t[r]=n}function eOe(e,t,n,r){for(t.x=Math.max(t.x,0),t.y=Math.max(t.y,0),t.y=Math.min(r,t.y);t.y>0&&!T7(e,t);)t.y--;let i;for(;(i=T7(e,t))!==void 0;)J7(n,t,i.y+i.h,`y`);return t.y=Math.max(t.y,0),t}function tOe(e,t,n,r){for(t.x=Math.max(t.x,0),t.y=Math.max(t.y,0);t.x>0&&!T7(e,t);)t.x--;let i;for(;(i=T7(e,t))!==void 0;)if(J7(r,t,i.x+i.w,`x`),t.x+t.w>n)for(t.x=n-t.w,t.y++;t.x>0&&!T7(e,t);)t.x--;return t.x=Math.max(t.x,0),t}var Y7={type:`vertical`,allowOverlap:!1,compact(e,t){let n=j7(e),r=k7(n),i=D7(e),a=Array(e.length);for(let t=0;te[t]-e[n])}function e9(e,t){let n=$7(e),r=n[0];if(r===void 0)throw Error(`No breakpoints defined`);for(let i=1;ie[a]&&(r=a)}return r}function t9(e,t){let n=t[e];if(n===void 0)throw Error(`ResponsiveReactGridLayout: \`cols\` entry for breakpoint ${String(e)} is missing!`);return n}function n9(e,t,n,r,i,a){let o=e[n];if(o)return N7(o);let s=e[r],c=$7(t),l=c.slice(c.indexOf(n));for(let t=0;t{(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):(n=typeof globalThis<`u`?globalThis:n||self,r(n[`fast-equals`]={}))})(n,(function(e){function t(e){return function(t,n,r,i,a,o,s){return e(t,n,s)}}function n(e){return function(t,n,r,i){if(!t||!n||typeof t!=`object`||typeof n!=`object`)return e(t,n,r,i);var a=i.get(t),o=i.get(n);if(a&&o)return a===n&&o===t;i.set(t,n),i.set(n,t);var s=e(t,n,r,i);return i.delete(t),i.delete(n),s}}function r(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n}function i(e){return e.constructor===Object||e.constructor==null}function a(e){return typeof e.then==`function`}function o(e,t){return e===t||e!==e&&t!==t}var s=Object.prototype.toString;function c(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,c=e.areObjectsEqual,l=e.areRegExpsEqual,u=e.areSetsEqual,d=e.createIsNestedEqual,f=d(p);function p(e,d,p){if(e===d)return!0;if(!e||!d||typeof e!=`object`||typeof d!=`object`)return e!==e&&d!==d;if(i(e)&&i(d))return c(e,d,f,p);var m=Array.isArray(e),h=Array.isArray(d);if(m||h)return m===h&&t(e,d,f,p);var g=s.call(e);return g===s.call(d)?g===`[object Date]`?n(e,d,f,p):g===`[object RegExp]`?l(e,d,f,p):g===`[object Map]`?r(e,d,f,p):g===`[object Set]`?u(e,d,f,p):g===`[object Object]`||g===`[object Arguments]`?a(e)||a(d)?!1:c(e,d,f,p):g===`[object Boolean]`||g===`[object Number]`||g===`[object String]`?o(e.valueOf(),d.valueOf()):!1:!1}return p}function l(e,t,n,r){var i=e.length;if(t.length!==i)return!1;for(;i-->0;)if(!n(e[i],t[i],i,i,e,t,r))return!1;return!0}var u=n(l);function d(e,t){return o(e.valueOf(),t.valueOf())}function f(e,t,n,r){var i=e.size===t.size;if(!i)return!1;if(!e.size)return!0;var a={},o=0;return e.forEach(function(s,c){if(i){var l=!1,u=0;t.forEach(function(i,d){!l&&!a[u]&&(l=n(c,d,o,u,e,t,r)&&n(s,i,c,d,e,t,r))&&(a[u]=!0),u++}),o++,i=l}}),i}var p=n(f),m=`_owner`,h=Object.prototype.hasOwnProperty;function g(e,t,n,r){var i=Object.keys(e),a=i.length;if(Object.keys(t).length!==a)return!1;for(var o;a-->0;){if(o=i[a],o===m){var s=!!e.$$typeof,c=!!t.$$typeof;if((s||c)&&s!==c)return!1}if(!h.call(t,o)||!n(e[o],t[o],o,o,e,t,r))return!1}return!0}var _=n(g);function v(e,t){return e.source===t.source&&e.flags===t.flags}function y(e,t,n,r){var i=e.size===t.size;if(!i)return!1;if(!e.size)return!0;var a={};return e.forEach(function(o,s){if(i){var c=!1,l=0;t.forEach(function(i,u){!c&&!a[l]&&(c=n(o,i,s,u,e,t,r))&&(a[l]=!0),l++}),i=c}}),i}var b=n(y),x=Object.freeze({areArraysEqual:l,areDatesEqual:d,areMapsEqual:f,areObjectsEqual:g,areRegExpsEqual:v,areSetsEqual:y,createIsNestedEqual:t}),S=Object.freeze({areArraysEqual:u,areDatesEqual:d,areMapsEqual:p,areObjectsEqual:_,areRegExpsEqual:v,areSetsEqual:b,createIsNestedEqual:t}),C=c(x);function w(e,t){return C(e,t,void 0)}var T=c(r(x,{createIsNestedEqual:function(){return o}}));function E(e,t){return T(e,t,void 0)}var D=c(S);function O(e,t){return D(e,t,new WeakMap)}var k=c(r(S,{createIsNestedEqual:function(){return o}}));function A(e,t){return k(e,t,new WeakMap)}function j(e){return c(r(x,e(x)))}function M(e){var t=c(r(S,e(S)));return(function(e,n,r){return r===void 0&&(r=new WeakMap),t(e,n,r)})}e.circularDeepEqual=O,e.circularShallowEqual=A,e.createCustomCircularEqual=M,e.createCustomEqual=j,e.deepEqual=w,e.sameValueZeroEqual=o,e.shallowEqual=E,Object.defineProperty(e,"__esModule",{value:!0})}))}));function oOe(e){let t=typeof globalThis.getComputedStyle==`function`?globalThis.getComputedStyle(e):null;if(!t)return e.clientWidth;let n=e=>{let t=Number.parseFloat(e);return Number.isFinite(t)?t:0},r=Number.parseFloat(t.width);return Number.isFinite(r)?Math.max(0,r):Math.max(0,e.clientWidth-n(t.paddingLeft)-n(t.paddingRight))}function sOe(e={}){let{measureBeforeMount:t=!1,initialWidth:n=1280,debounceTimeout:r}=e,[i,a]=(0,h.useState)(n),[o,s]=(0,h.useState)(!t),c=(0,h.useRef)(null),l=(0,h.useRef)(null),u=(0,h.useCallback)(()=>{let e=c.current;if(e){let t=Math.round(oOe(e));a(e=>e===t?e:t),o||s(!0)}},[o]);return(0,h.useEffect)(()=>{let e=c.current;if(e){if(u(),typeof ResizeObserver<`u`){let t=null,n;return l.current=new ResizeObserver(e=>{let i=e[0];if(i){let e=Math.round(i.contentRect.width);if(r&&r>0){window.clearTimeout(n),n=window.setTimeout(()=>{a(t=>t===e?t:e),n=void 0},r);return}t!==null&&cancelAnimationFrame(t),t=requestAnimationFrame(()=>{a(t=>t===e?t:e),t=null})}}),l.current.observe(e),()=>{t!==null&&cancelAnimationFrame(t),window.clearTimeout(n),n=void 0,l.current&&=(l.current.disconnect(),null)}}return()=>{l.current&&=(l.current.disconnect(),null)}}},[u,r]),{width:i,mounted:o,containerRef:c,measureWidth:u}}var i9=l(P_(),1);function a9(e,t){for(let n=0,r=e.length;n`u`)return``;let t=window.document?.documentElement?.style;if(!t||e in t)return``;for(let n=0;nt===e.identifier)||e.changedTouches&&a9(e.changedTouches,e=>t===e.identifier)}function bOe(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function xOe(){return typeof __webpack_nonce__<`u`?__webpack_nonce__:void 0}function SOe(e,t){if(!e)return;let n=e.getElementById(`react-draggable-style-el`);if(!n){n=e.createElement(`style`),n.type=`text/css`,n.id=`react-draggable-style-el`;let r=t??xOe();r&&n.setAttribute(`nonce`,r),n.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} +`,n.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} +`,e.getElementsByTagName(`head`)[0].appendChild(n)}e.body&&COe(e.body,`react-draggable-transparent-selection`)}function _9(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{v9(e)}):v9(e)}function v9(e){if(e)try{e.body&&wOe(e.body,`react-draggable-transparent-selection`);let t=e.selection;if(t)t.empty();else{let t=(e.defaultView||window).getSelection();t&&t.type!==`Caret`&&t.removeAllRanges()}}catch{}}function COe(e,t){e.classList?e.classList.add(t):e.className.match(RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function wOe(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(RegExp(`(?:^|\\s)${t}(?!\\S)`,`g`),``)}function TOe(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:r}=e.props;r=typeof r==`string`?r:OOe(r);let i=C9(e);if(typeof r==`string`){let{ownerDocument:e}=i,t=e.defaultView;if(!t)throw Error(`Cannot resolve the owner window of the draggable node.`);let n;if(n=r===`parent`?i.parentNode:i.getRootNode().querySelector(r),!(n instanceof t.HTMLElement))throw Error(`Bounds selector "`+r+`" could not find an element.`);let a=n,o=t.getComputedStyle(i),s=t.getComputedStyle(a);r={left:-i.offsetLeft+c9(s.paddingLeft)+c9(o.marginLeft),top:-i.offsetTop+c9(s.paddingTop)+c9(o.marginTop),right:hOe(a)-pOe(i)-i.offsetLeft+c9(s.paddingRight)-c9(o.marginRight),bottom:mOe(a)-fOe(i)-i.offsetTop+c9(s.paddingBottom)-c9(o.marginBottom)}}return s9(r.right)&&(t=Math.min(t,r.right)),s9(r.bottom)&&(n=Math.min(n,r.bottom)),s9(r.left)&&(t=Math.max(t,r.left)),s9(r.top)&&(n=Math.max(n,r.top)),[t,n]}function y9(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]}function EOe(e){return e.props.axis===`both`||e.props.axis===`x`}function DOe(e){return e.props.axis===`both`||e.props.axis===`y`}function b9(e,t,n){let r=typeof t==`number`?yOe(e,t):null;if(typeof t==`number`&&!r)return null;let i=C9(n),a=n.props.offsetParent||i.offsetParent||i.ownerDocument.body;return gOe(r||e,a,n.props.scale)}function x9(e,t,n){let r=!s9(e.lastX),i=C9(e);return r?{node:i,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:i,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function S9(e,t){let n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function OOe(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function C9(e){let t=e.findDOMNode();if(!t)throw Error(`: Unmounted during event!`);return t}var w9=typeof process<`u`&&{}.DRAGGABLE_DEBUG?console.log.bind(console):function(){},T9={touch:{start:`touchstart`,move:`touchmove`,stop:`touchend`},mouse:{start:`mousedown`,move:`mousemove`,stop:`mouseup`}},E9=T9.mouse,D9=class extends h.Component{constructor(){super(...arguments),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,this.touchIdentifier=null,this.mounted=!1,this.handleDragStart=e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&(typeof e.button==`number`&&e.button!==0||e.ctrlKey))return!1;let t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw Error(` not mounted on DragStart!`);let{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!p9(e.target,this.props.handle,t)||this.props.cancel&&p9(e.target,this.props.cancel,t))return;e.type===`touchstart`&&!this.props.allowMobileScroll&&e.preventDefault();let r=bOe(e);this.touchIdentifier=r;let i=b9(e,r,this);if(i==null)return;let{x:a,y:o}=i,s=x9(this,a,o);w9(`DraggableCore: handleDragStart: %j`,s),w9(`calling`,this.props.onStart),this.props.onStart(e,s)!==!1&&this.mounted!==!1&&(this.props.enableUserSelectHack&&SOe(n,this.props.nonce),this.dragging=!0,this.lastX=a,this.lastY=o,m9(n,E9.move,this.handleDrag),m9(n,E9.stop,this.handleDragStop))},this.handleDrag=e=>{let t=b9(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=y9(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}let i=x9(this,n,r);if(w9(`DraggableCore: handleDrag: %j`,i),this.props.onDrag(e,i)===!1||this.mounted===!1)try{this.handleDragStop(new MouseEvent(`mouseup`))}catch{let e=document.createEvent(`MouseEvents`);e.initMouseEvent(`mouseup`,!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(e)}else this.lastX=n,this.lastY=r},this.handleDragStop=e=>{if(!this.dragging)return;let t=b9(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=r-this.lastY||0;[e,t]=y9(this.props.grid,e,t),n=this.lastX+e,r=this.lastY+t}let i=x9(this,n,r);if(this.props.onStop(e,i)===!1||this.mounted===!1)return!1;let a=this.findDOMNode();a&&this.props.enableUserSelectHack&&_9(a.ownerDocument),w9(`DraggableCore: handleDragStop: %j`,i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,a&&(w9(`DraggableCore: Removing handlers`),h9(a.ownerDocument,E9.move,this.handleDrag),h9(a.ownerDocument,E9.stop,this.handleDragStop))},this.onMouseDown=e=>(E9=T9.mouse,this.handleDragStart(e)),this.onMouseUp=e=>(E9=T9.mouse,this.handleDragStop(e)),this.onTouchStart=e=>(E9=T9.touch,this.handleDragStart(e)),this.onTouchEnd=e=>(E9=T9.touch,this.handleDragStop(e))}componentDidMount(){this.mounted=!0;let e=this.findDOMNode();e&&m9(e,T9.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;let e=this.findDOMNode();if(e){let{ownerDocument:t}=e;h9(t,T9.mouse.move,this.handleDrag),h9(t,T9.touch.move,this.handleDrag),h9(t,T9.mouse.stop,this.handleDragStop),h9(t,T9.touch.stop,this.handleDragStop),h9(e,T9.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&_9(t)}}findDOMNode(){if(this.props?.nodeRef)return this.props.nodeRef.current;let e=ke.default;return typeof e.findDOMNode==`function`?e.findDOMNode(this):(w9(`react-draggable: ReactDOM.findDOMNode is not available in React 19+. You must provide a nodeRef prop. See: https://github.com/react-grid-layout/react-draggable#noderef`),null)}render(){return h.cloneElement(h.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};D9.displayName=`DraggableCore`,D9.propTypes={allowAnyClick:i9.default.bool,allowMobileScroll:i9.default.bool,children:i9.default.node.isRequired,disabled:i9.default.bool,enableUserSelectHack:i9.default.bool,offsetParent:function(e,t){if(e[t]&&e[t].nodeType!==1)throw Error(`Draggable's offsetParent must be a DOM Node.`)},grid:i9.default.arrayOf(i9.default.number),handle:i9.default.string,cancel:i9.default.string,nodeRef:i9.default.object,nonce:i9.default.string,onStart:i9.default.func,onDrag:i9.default.func,onStop:i9.default.func,onMouseDown:i9.default.func,scale:i9.default.number,className:l9,style:l9,transform:l9},D9.defaultProps={allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1};var O9=class extends h.Component{constructor(e){super(e),this.onDragStart=(e,t)=>{if(w9(`Draggable: onDragStart: %j`,t),this.props.onStart(e,S9(this,t))===!1)return!1;this.setState({dragging:!0,dragged:!0})},this.onDrag=(e,t)=>{if(!this.state.dragging)return!1;w9(`Draggable: onDrag: %j`,t);let n=S9(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){let{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;let[i,a]=TOe(this,r.x,r.y);r.x=i,r.y=a,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(this.props.onDrag(e,n)===!1)return!1;this.setState(r)},this.onDragStop=(e,t)=>{if(!this.state.dragging||this.props.onStop(e,S9(this,t))===!1)return!1;w9(`Draggable: onDragStop: %j`,t);let n={dragging:!1,slackX:0,slackY:0};if(this.props.position){let{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)},this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},e.position&&!(e.onDrag||e.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}static getDerivedStateFromProps({position:e},{prevPropsPosition:t}){return e&&(!t||e.x!==t.x||e.y!==t.y)?(w9(`Draggable: getDerivedStateFromProps %j`,{position:e,prevPropsPosition:t}),{x:e.x,y:e.y,prevPropsPosition:{...e}}):null}componentDidMount(){window.SVGElement!==void 0&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){if(this.props?.nodeRef)return this.props.nodeRef.current;let e=ke.default;return typeof e.findDOMNode==`function`?e.findDOMNode(this):null}render(){let{axis:e,bounds:t,children:n,defaultPosition:r,defaultClassName:i,defaultClassNameDragging:a,defaultClassNameDragged:o,position:s,positionOffset:c,scale:l,...u}=this.props,d={},f=null,p=!s||this.state.dragging,m=s||r,g={x:EOe(this)&&p?this.state.x:m.x,y:DOe(this)&&p?this.state.y:m.y};this.state.isElementSVG?f=vOe(g,c):d=_Oe(g,c);let _=h.Children.only(n),v=en(_.props.className||``,i,{[a]:this.state.dragging,[o]:this.state.dragged});return h.createElement(D9,{...u,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop},h.cloneElement(_,{className:v,style:{..._.props.style,...d},transform:f}))}};O9.displayName=`Draggable`,O9.propTypes={...D9.propTypes,axis:i9.default.oneOf([`both`,`x`,`y`,`none`]),bounds:i9.default.oneOfType([i9.default.shape({left:i9.default.number,right:i9.default.number,top:i9.default.number,bottom:i9.default.number}),i9.default.string,i9.default.oneOf([!1])]),defaultClassName:i9.default.string,defaultClassNameDragging:i9.default.string,defaultClassNameDragged:i9.default.string,defaultPosition:i9.default.shape({x:i9.default.number,y:i9.default.number}),positionOffset:i9.default.shape({x:i9.default.oneOfType([i9.default.number,i9.default.string]),y:i9.default.oneOfType([i9.default.number,i9.default.string])}),position:i9.default.shape({x:i9.default.number,y:i9.default.number}),className:l9,style:l9,transform:l9},O9.defaultProps={...D9.defaultProps,axis:`both`,bounds:!1,defaultClassName:`react-draggable`,defaultClassNameDragging:`react-draggable-dragging`,defaultClassNameDragged:`react-draggable-dragged`,defaultPosition:{x:0,y:0},scale:1};var kOe=o(((e,t)=>{function n(e){var t,r,i=``;if(typeof e==`string`||typeof e==`number`)i+=e;else if(typeof e==`object`){if(Array.isArray(e)){var a=e.length;for(t=0;t{var n=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,c=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},l=(e,t,n,o)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let c of a(t))!s.call(e,c)&&c!==n&&r(e,c,{get:()=>t[c],enumerable:!(o=i(t,c))||o.enumerable});return e},u=(e,t,i)=>(i=e==null?{}:n(o(e)),l(t||!e||!e.__esModule?r(i,`default`,{value:e,enumerable:!0}):i,e)),d=e=>l(r({},`__esModule`,{value:!0}),e),f={};c(f,{DraggableCore:()=>Se,default:()=>Ce}),t.exports=d(f);var p=u(m()),h=u(P_()),g=u(Oe()),_=kOe();function v(e,t){for(let n=0,r=e.length;n`u`)return``;let t=window.document?.documentElement?.style;if(!t||e in t)return``;for(let n=0;nt===e.identifier)||e.changedTouches&&v(e.changedTouches,e=>t===e.identifier)}function re(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function ie(){return typeof __webpack_nonce__<`u`?__webpack_nonce__:void 0}function ae(e,t){if(!e)return;let n=e.getElementById(`react-draggable-style-el`);if(!n){n=e.createElement(`style`),n.type=`text/css`,n.id=`react-draggable-style-el`;let r=t??ie();r&&n.setAttribute(`nonce`,r),n.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} +`,n.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} +`,e.getElementsByTagName(`head`)[0].appendChild(n)}e.body&&se(e.body,`react-draggable-transparent-selection`)}function oe(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{z(e)}):z(e)}function z(e){if(e)try{e.body&&ce(e.body,`react-draggable-transparent-selection`);let t=e.selection;if(t)t.empty();else{let t=(e.defaultView||window).getSelection();t&&t.type!==`Caret`&&t.removeAllRanges()}}catch{}}function se(e,t){e.classList?e.classList.add(t):e.className.match(RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function ce(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(RegExp(`(?:^|\\s)${t}(?!\\S)`,`g`),``)}function B(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:r}=e.props;r=typeof r==`string`?r:he(r);let i=ge(e);if(typeof r==`string`){let{ownerDocument:e}=i,t=e.defaultView;if(!t)throw Error(`Cannot resolve the owner window of the draggable node.`);let n;if(n=r===`parent`?i.parentNode:i.getRootNode().querySelector(r),!(n instanceof t.HTMLElement))throw Error(`Bounds selector "`+r+`" could not find an element.`);let a=n,o=t.getComputedStyle(i),s=t.getComputedStyle(a);r={left:-i.offsetLeft+x(s.paddingLeft)+x(o.marginLeft),top:-i.offsetTop+x(s.paddingTop)+x(o.marginTop),right:ee(a)-P(i)-i.offsetLeft+x(s.paddingRight)-x(o.marginRight),bottom:F(a)-N(i)-i.offsetTop+x(s.paddingBottom)-x(o.marginBottom)}}return b(r.right)&&(t=Math.min(t,r.right)),b(r.bottom)&&(n=Math.min(n,r.bottom)),b(r.left)&&(t=Math.max(t,r.left)),b(r.top)&&(n=Math.max(n,r.top)),[t,n]}function le(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]}function ue(e){return e.props.axis===`both`||e.props.axis===`x`}function de(e){return e.props.axis===`both`||e.props.axis===`y`}function fe(e,t,n){let r=typeof t==`number`?ne(e,t):null;if(typeof t==`number`&&!r)return null;let i=ge(n),a=n.props.offsetParent||i.offsetParent||i.ownerDocument.body;return I(r||e,a,n.props.scale)}function pe(e,t,n){let r=!b(e.lastX),i=ge(e);return r?{node:i,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:i,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function me(e,t){let n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function he(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function ge(e){let t=e.findDOMNode();if(!t)throw Error(`: Unmounted during event!`);return t}var _e=u(m()),V=u(P_()),ve=u(Oe()),ye=typeof process<`u`&&{}.DRAGGABLE_DEBUG?console.log.bind(console):function(){},be={touch:{start:`touchstart`,move:`touchmove`,stop:`touchend`},mouse:{start:`mousedown`,move:`mousemove`,stop:`mouseup`}},xe=be.mouse,Se=class extends _e.Component{constructor(){super(...arguments),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,this.touchIdentifier=null,this.mounted=!1,this.handleDragStart=e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&(typeof e.button==`number`&&e.button!==0||e.ctrlKey))return!1;let t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw Error(` not mounted on DragStart!`);let{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!A(e.target,this.props.handle,t)||this.props.cancel&&A(e.target,this.props.cancel,t))return;e.type===`touchstart`&&!this.props.allowMobileScroll&&e.preventDefault();let r=re(e);this.touchIdentifier=r;let i=fe(e,r,this);if(i==null)return;let{x:a,y:o}=i,s=pe(this,a,o);ye(`DraggableCore: handleDragStart: %j`,s),ye(`calling`,this.props.onStart),this.props.onStart(e,s)!==!1&&this.mounted!==!1&&(this.props.enableUserSelectHack&&ae(n,this.props.nonce),this.dragging=!0,this.lastX=a,this.lastY=o,j(n,xe.move,this.handleDrag),j(n,xe.stop,this.handleDragStop))},this.handleDrag=e=>{let t=fe(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=le(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}let i=pe(this,n,r);if(ye(`DraggableCore: handleDrag: %j`,i),this.props.onDrag(e,i)===!1||this.mounted===!1)try{this.handleDragStop(new MouseEvent(`mouseup`))}catch{let e=document.createEvent(`MouseEvents`);e.initMouseEvent(`mouseup`,!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(e)}else this.lastX=n,this.lastY=r},this.handleDragStop=e=>{if(!this.dragging)return;let t=fe(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=r-this.lastY||0;[e,t]=le(this.props.grid,e,t),n=this.lastX+e,r=this.lastY+t}let i=pe(this,n,r);if(this.props.onStop(e,i)===!1||this.mounted===!1)return!1;let a=this.findDOMNode();a&&this.props.enableUserSelectHack&&oe(a.ownerDocument),ye(`DraggableCore: handleDragStop: %j`,i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,a&&(ye(`DraggableCore: Removing handlers`),M(a.ownerDocument,xe.move,this.handleDrag),M(a.ownerDocument,xe.stop,this.handleDragStop))},this.onMouseDown=e=>(xe=be.mouse,this.handleDragStart(e)),this.onMouseUp=e=>(xe=be.mouse,this.handleDragStop(e)),this.onTouchStart=e=>(xe=be.touch,this.handleDragStart(e)),this.onTouchEnd=e=>(xe=be.touch,this.handleDragStop(e))}componentDidMount(){this.mounted=!0;let e=this.findDOMNode();e&&j(e,be.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;let e=this.findDOMNode();if(e){let{ownerDocument:t}=e;M(t,be.mouse.move,this.handleDrag),M(t,be.touch.move,this.handleDrag),M(t,be.mouse.stop,this.handleDragStop),M(t,be.touch.stop,this.handleDragStop),M(e,be.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&oe(t)}}findDOMNode(){if(this.props?.nodeRef)return this.props.nodeRef.current;let e=ve.default;return typeof e.findDOMNode==`function`?e.findDOMNode(this):(ye(`react-draggable: ReactDOM.findDOMNode is not available in React 19+. You must provide a nodeRef prop. See: https://github.com/react-grid-layout/react-draggable#noderef`),null)}render(){return _e.cloneElement(_e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};Se.displayName=`DraggableCore`,Se.propTypes={allowAnyClick:V.default.bool,allowMobileScroll:V.default.bool,children:V.default.node.isRequired,disabled:V.default.bool,enableUserSelectHack:V.default.bool,offsetParent:function(e,t){if(e[t]&&e[t].nodeType!==1)throw Error(`Draggable's offsetParent must be a DOM Node.`)},grid:V.default.arrayOf(V.default.number),handle:V.default.string,cancel:V.default.string,nodeRef:V.default.object,nonce:V.default.string,onStart:V.default.func,onDrag:V.default.func,onStop:V.default.func,onMouseDown:V.default.func,scale:V.default.number,className:S,style:S,transform:S},Se.defaultProps={allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1};var Ce=class extends p.Component{constructor(e){super(e),this.onDragStart=(e,t)=>{if(ye(`Draggable: onDragStart: %j`,t),this.props.onStart(e,me(this,t))===!1)return!1;this.setState({dragging:!0,dragged:!0})},this.onDrag=(e,t)=>{if(!this.state.dragging)return!1;ye(`Draggable: onDrag: %j`,t);let n=me(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){let{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;let[i,a]=B(this,r.x,r.y);r.x=i,r.y=a,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(this.props.onDrag(e,n)===!1)return!1;this.setState(r)},this.onDragStop=(e,t)=>{if(!this.state.dragging||this.props.onStop(e,me(this,t))===!1)return!1;ye(`Draggable: onDragStop: %j`,t);let n={dragging:!1,slackX:0,slackY:0};if(this.props.position){let{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)},this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},e.position&&!(e.onDrag||e.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}static getDerivedStateFromProps({position:e},{prevPropsPosition:t}){return e&&(!t||e.x!==t.x||e.y!==t.y)?(ye(`Draggable: getDerivedStateFromProps %j`,{position:e,prevPropsPosition:t}),{x:e.x,y:e.y,prevPropsPosition:{...e}}):null}componentDidMount(){window.SVGElement!==void 0&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){if(this.props?.nodeRef)return this.props.nodeRef.current;let e=g.default;return typeof e.findDOMNode==`function`?e.findDOMNode(this):null}render(){let{axis:e,bounds:t,children:n,defaultPosition:r,defaultClassName:i,defaultClassNameDragging:a,defaultClassNameDragged:o,position:s,positionOffset:c,scale:l,...u}=this.props,d={},f=null,m=!s||this.state.dragging,h=s||r,g={x:ue(this)&&m?this.state.x:h.x,y:de(this)&&m?this.state.y:h.y};this.state.isElementSVG?f=R(g,c):d=L(g,c);let v=p.Children.only(n),y=(0,_.clsx)(v.props.className||``,i,{[a]:this.state.dragging,[o]:this.state.dragged});return p.createElement(Se,{...u,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop},p.cloneElement(v,{className:y,style:{...v.props.style,...d},transform:f}))}};Ce.displayName=`Draggable`,Ce.propTypes={...Se.propTypes,axis:h.default.oneOf([`both`,`x`,`y`,`none`]),bounds:h.default.oneOfType([h.default.shape({left:h.default.number,right:h.default.number,top:h.default.number,bottom:h.default.number}),h.default.string,h.default.oneOf([!1])]),defaultClassName:h.default.string,defaultClassNameDragging:h.default.string,defaultClassNameDragged:h.default.string,defaultPosition:h.default.shape({x:h.default.number,y:h.default.number}),positionOffset:h.default.shape({x:h.default.oneOfType([h.default.number,h.default.string]),y:h.default.oneOfType([h.default.number,h.default.string])}),position:h.default.shape({x:h.default.number,y:h.default.number}),className:S,style:S,transform:S},Ce.defaultProps={...Se.defaultProps,axis:`both`,bounds:!1,defaultClassName:`react-draggable`,defaultClassNameDragging:`react-draggable-dragging`,defaultClassNameDragged:`react-draggable-dragged`,defaultPosition:{x:0,y:0},scale:1},0&&(t.exports={DraggableCore:Se})})),k9=o(((e,t)=>{var n=AOe(),r=n.DraggableCore,i=n.default||n;t.exports=i,t.exports.default=i,t.exports.DraggableCore=r})),jOe=o((e=>{e.__esModule=!0,e.cloneElement=c;var t=n(m());function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t{e.__esModule=!0,e.resizableProps=void 0;var t=n(P_());k9();function n(e){return e&&e.__esModule?e:{default:e}}e.resizableProps={axis:t.default.oneOf([`both`,`x`,`y`,`none`]),className:t.default.string,children:t.default.element.isRequired,draggableOpts:t.default.shape({allowAnyClick:t.default.bool,cancel:t.default.string,children:t.default.node,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:typeof Element<`u`?t.default.instanceOf(Element):t.default.any,grid:t.default.arrayOf(t.default.number),handle:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number}),height:function(){var e=[...arguments];let n=e[0];return n.axis===`both`||n.axis===`y`?t.default.number.isRequired(...e):t.default.number(...e)},handle:t.default.oneOfType([t.default.node,t.default.func]),handleSize:t.default.arrayOf(t.default.number),lockAspectRatio:t.default.bool,maxConstraints:t.default.arrayOf(t.default.number),minConstraints:t.default.arrayOf(t.default.number),onResizeStop:t.default.func,onResizeStart:t.default.func,onResize:t.default.func,resizeHandles:t.default.arrayOf(t.default.oneOf([`s`,`w`,`e`,`n`,`sw`,`nw`,`se`,`ne`])),transformScale:t.default.number,width:function(){var e=[...arguments];let n=e[0];return n.axis===`both`||n.axis===`x`?t.default.number.isRequired(...e):t.default.number(...e)}}})),j9=o((e=>{e.__esModule=!0,e.default=void 0;var t=o(m()),n=k9(),r=jOe(),i=A9(),a=[`children`,`className`,`draggableOpts`,`width`,`height`,`handle`,`handleSize`,`lockAspectRatio`,`axis`,`minConstraints`,`maxConstraints`,`onResize`,`onResizeStop`,`onResizeStart`,`resizeHandles`,`transformScale`];function o(e,t){if(typeof WeakMap==`function`)var n=new WeakMap,r=new WeakMap;return(o=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(e===null||typeof e!=`object`&&typeof e!=`function`)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(let t in e)t!=="default"&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;tMath.abs(i*n)?t=e/n:e=t*n}let o=e,s=t,c=this.slack||[0,0],l=c[0],u=c[1];return e+=l,t+=u,r&&(e=Math.max(r[0],e),t=Math.max(r[1],t)),i&&(e=Math.min(i[0],e),t=Math.min(i[1],t)),this.slack=[l+(o-e),u+(s-t)],[e,t]}resizeHandler(e,t){return(n,r)=>{let i=r.node,a=r.deltaX,o=r.deltaY;e===`onResizeStart`&&this.resetData();let s=(this.props.axis===`both`||this.props.axis===`x`)&&t!==`n`&&t!==`s`,c=(this.props.axis===`both`||this.props.axis===`y`)&&t!==`e`&&t!==`w`;if(!s&&!c)return;let l=t[0],u=t[t.length-1],d=i.getBoundingClientRect();if(this.lastHandleRect!=null){if(u===`w`){let e=d.left-this.lastHandleRect.left;a+=e}if(l===`n`){let e=d.top-this.lastHandleRect.top;o+=e}}this.lastHandleRect=d,u===`w`&&(a=-a),l===`n`&&(o=-o);let f=this.lastSize?.width??this.props.width,p=this.lastSize?.height??this.props.height,m=f+(s?a/this.props.transformScale:0),h=p+(c?o/this.props.transformScale:0);var g=this.runConstraints(m,h);if(m=g[0],h=g[1],e===`onResizeStop`&&this.lastSize){var _=this.lastSize;m=_.width,h=_.height}let v=m!==f||h!==p;e!==`onResizeStop`&&(this.lastSize={width:m,height:h});let y=typeof this.props[e]==`function`?this.props[e]:null;y&&(e!==`onResize`||v)&&(n.persist==null||n.persist(),y(n,{node:i,size:{width:m,height:h},handle:t})),e===`onResizeStop`&&this.resetData()}}renderResizeHandle(e,n){let r=this.props.handle;if(!r)return t.createElement(`span`,{className:`react-resizable-handle react-resizable-handle-`+e,ref:n});if(typeof r==`function`)return r(e,n);let i=typeof r.type==`string`,a=u({ref:n},i?{}:{handleAxis:e});return t.cloneElement(r,a)}render(){let e=this.props,i=e.children,o=e.className,l=e.draggableOpts;e.width,e.height,e.handle,e.handleSize,e.lockAspectRatio,e.axis,e.minConstraints,e.maxConstraints,e.onResize,e.onResizeStop,e.onResizeStart;let d=e.resizeHandles;e.transformScale;let f=c(e,a);return(0,r.cloneElement)(i,u(u({},f),{},{className:(o?o+` `:``)+`react-resizable`,children:[...t.Children.toArray(i.props.children),...d.map(e=>{let r=this.handleRefs[e]??(this.handleRefs[e]=t.createRef());return t.createElement(n.DraggableCore,s({},l,{nodeRef:r,key:`resizableHandle-`+e,onStop:this.resizeHandler(`onResizeStop`,e),onStart:this.resizeHandler(`onResizeStart`,e),onDrag:this.resizeHandler(`onResize`,e)}),this.renderResizeHandle(e,r))})]}))}};e.default=h,h.propTypes=i.resizableProps,h.defaultProps={axis:`both`,handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:[`se`],transformScale:1}})),MOe=o((e=>{e.__esModule=!0,e.default=void 0;var t=s(m()),n=o(P_()),r=o(j9()),i=A9(),a=[`handle`,`handleSize`,`onResize`,`onResizeStart`,`onResizeStop`,`draggableOpts`,`minConstraints`,`maxConstraints`,`lockAspectRatio`,`axis`,`width`,`height`,`resizeHandles`,`style`,`transformScale`];function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(typeof WeakMap==`function`)var n=new WeakMap,r=new WeakMap;return(s=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(e===null||typeof e!=`object`&&typeof e!=`function`)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(let t in e)t!=="default"&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let n=t.size;this.props.onResize?(e.persist==null||e.persist(),this.setState(n,()=>this.props.onResize&&this.props.onResize(e,t))):this.setState(n)}}static getDerivedStateFromProps(e,t){return t.propsWidth!==e.width||t.propsHeight!==e.height?{width:e.width,height:e.height,propsWidth:e.width,propsHeight:e.height}:null}render(){let e=this.props,n=e.handle,i=e.handleSize;e.onResize;let o=e.onResizeStart,s=e.onResizeStop,l=e.draggableOpts,d=e.minConstraints,f=e.maxConstraints,p=e.lockAspectRatio,m=e.axis;e.width,e.height;let g=e.resizeHandles,_=e.style,v=e.transformScale,y=h(e,a);return t.createElement(r.default,{axis:m,draggableOpts:l,handle:n,handleSize:i,height:this.state.height,lockAspectRatio:p,maxConstraints:f,minConstraints:d,onResizeStart:o,onResize:this.onResize,onResizeStop:s,resizeHandles:g,transformScale:v,width:this.state.width},t.createElement(`div`,c({},y,{style:u(u({},_),{},{width:this.state.width+`px`,height:this.state.height+`px`})})))}};e.default=g,g.propTypes=u(u({},i.resizableProps),{},{children:n.default.element})})),NOe=o(((e,t)=>{t.exports=function(){throw Error(`Don't instantiate Resizable directly! Use require('react-resizable').Resizable`)},t.exports.Resizable=j9().default,t.exports.ResizableBox=MOe().default}))(),M9=aOe(),N9=50,P9=12;function POe(e){let t=e;for(;t;){let e=window.getComputedStyle(t).overflowY;if((e===`auto`||e===`scroll`)&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return null}function FOe(e){let t=POe(e),n=null,r=0,i=0,a=!1;function o(){let e=t;if(!e)return;let s=e.getBoundingClientRect(),{clientHeight:c,scrollTop:l,scrollHeight:u}=e,{scrollLeft:d,scrollWidth:f,clientWidth:p}=e,m=0,h=0;i0?m=-P9:i>s.bottom-N9&&l+c0?h=-P9:r>s.right-N9&&d+p({cols:n,containerPadding:a,containerWidth:r,margin:i,maxRows:s,rowHeight:o}),[n,a,r,i,s,o]),ve=(0,h.useMemo)(()=>({cols:n,maxRows:s,containerWidth:r,containerHeight:0,rowHeight:o,margin:i,layout:[]}),[n,s,r,o,i]),ye=(0,h.useCallback)(e=>({...ve,containerHeight:e??ve.containerHeight,layout:de.current}),[ve]),be=(0,h.useMemo)(()=>ee??{i:M,x:w,y:T,w:E,h:D,minW:O,maxW:k,minH:A,maxH:j},[ee,M,w,T,E,D,O,k,A,j]),xe=(0,h.useCallback)(e=>{if(_?.calcStyle)return _.calcStyle(e);if(p)return B7(e);let t=WDe(e);return m?{...t,left:V7(e.left/r),width:V7(e.width/r)}:t},[_,p,m,r]),Se=(0,h.useCallback)((e,{node:t})=>{if(!L)return;let{offsetParent:n}=t;if(!n)return;let r=n.getBoundingClientRect(),i=t.getBoundingClientRect(),a=i.left/g,o=r.left/g,s=i.top/g,c=r.top/g,l;if(_?.calcDragPosition){let t=e;l=_.calcDragPosition(t.clientX,t.clientY,t.clientX-i.left,t.clientY-i.top)}else l={left:a-o+n.scrollLeft,top:s-c+n.scrollTop};if(B.current=l,_e.current||=FOe(t instanceof HTMLElement?t:null),v>0){let t=e;he.current={x:t.clientX,y:t.clientY},me.current=!0,ge.current=!1,oe(!0);return}oe(!0);let u=S7(V,l.top,l.left),{x:d,y:f}=z7(F,be,u.x,u.y,ye());L(M,d,f,{e,node:t,newPosition:l})},[L,g,V,_,v,F,be,ye,M]),Ce=(0,h.useCallback)((e,{node:t,deltaX:n,deltaY:a})=>{if(!R||!ae)return;let s=e;if(me.current&&!ge.current){let n=s.clientX-he.current.x,r=s.clientY-he.current.y;if(Math.hypot(n,r){if(!te||!ae)return;_e.current?.stop(),_e.current=null;let n=me.current;if(me.current=!1,ge.current=!1,he.current={x:0,y:0},n){oe(!1),B.current={left:0,top:0};return}let{left:r,top:i}=B.current,a={top:i,left:r};oe(!1),B.current={left:0,top:0};let o=S7(V,i,r),{x:s,y:c}=z7(F,be,o.x,o.y,ye());te(M,s,c,{e,node:t,newPosition:a})},[te,ae,V,F,be,ye,M]);fe.current=Se,pe.current=Ce;let Te=(0,h.useCallback)((e,{node:t,size:n,handle:i},a,o)=>{let s=o===`onResizeStart`?ne:o===`onResize`?re:ie;if(!s)return;let c;c=t?JDe(i,a,n,r):{...n,top:a.top,left:a.left},le.current=c;let l=t?.offsetParent?.clientHeight??0,u=zDe(V,c.width,c.height),{w:d,h:f}=UDe(F,be,u.w,u.h,i,ye(l));s(M,d,f,{e:e.nativeEvent??e,node:t,size:c,handle:i})},[ne,re,ie,r,V,M,F,be,ye]),Ee=(0,h.useCallback)((e,t)=>{se(!0);let n=x7(V,w,T,E,D),r={...t,handle:t.handle};Te(e,r,n,`onResizeStart`)},[Te,V,w,T,E,D]),De=(0,h.useCallback)((e,t)=>{let n=x7(V,w,T,E,D),r={...t,handle:t.handle};Te(e,r,n,`onResize`)},[Te,V,w,T,E,D]),Oe=(0,h.useCallback)((e,t)=>{se(!1),le.current={top:0,left:0,width:0,height:0};let n=x7(V,w,T,E,D),r={...t,handle:t.handle};Te(e,r,n,`onResizeStop`)},[Te,V,w,T,E,D]);(0,h.useEffect)(()=>{if(!y)return;let e=ce.current;if(!e)return;let t=ue.current||{left:0,top:0},n=ae&&(y.left!==t.left||y.top!==t.top);if(!ae){let t={node:e,deltaX:y.left,deltaY:y.top,lastX:0,lastY:0,x:y.left,y:y.top};fe.current?.(y.e,t)}else if(n){let t={node:e,deltaX:y.left-B.current.left,deltaY:y.top-B.current.top,lastX:B.current.left,lastY:B.current.top,x:y.left,y:y.top};pe.current?.(y.e,t)}ue.current=y},[y,ae,M]);let ke=x7(V,w,T,E,D,ae?B.current:null,z?le.current:null),Ae=h.Children.only(t),je=y7(V),Me=[b7(O,je,i[0]),b7(A,o,i[1])],Ne=[b7(k,je,i[0]),b7(j,o,i[1])],Pe=Ae.props,Fe=Pe.className,Ie=Pe.style,Le=h.cloneElement(Ae,{ref:ce,className:en(`react-grid-item`,Fe,b,{static:f,resizing:z,"react-draggable":c,"react-draggable-dragging":ae,dropping:!!y,cssTransforms:p}),style:{...x,...Ie,...xe(ke)}}),Re=P;return Le=(0,U.jsx)(NOe.Resizable,{draggableOpts:{disabled:!l},className:l?void 0:`react-resizable-hide`,width:ke.width,height:ke.height,minConstraints:Me,maxConstraints:Ne,onResizeStart:Ee,onResize:De,onResizeStop:Oe,transformScale:g,resizeHandles:N,handle:Re,children:Le}),Le=(0,U.jsx)(D9,{disabled:!c,onStart:Se,onDrag:Ce,onStop:we,handle:S,cancel:`.react-resizable-handle`+(C?`,`+C:``),scale:g,allowMobileScroll:d,nodeRef:ce,children:Le}),Le}var F9=h.memo(IOe,(e,t)=>e.x===t.x&&e.y===t.y&&e.w===t.w&&e.h===t.h&&e.minW===t.minW&&e.maxW===t.maxW&&e.minH===t.minH&&e.maxH===t.maxH&&e.cols===t.cols&&e.containerWidth===t.containerWidth&&e.rowHeight===t.rowHeight&&e.maxRows===t.maxRows&&e.margin===t.margin&&e.containerPadding===t.containerPadding&&e.transformScale===t.transformScale&&e.isDraggable===t.isDraggable&&e.isResizable===t.isResizable&&e.isBounded===t.isBounded&&e.allowMobileScroll===t.allowMobileScroll&&e.useCSSTransforms===t.useCSSTransforms&&e.usePercentages===t.usePercentages&&e.children===t.children&&e.onDrag===t.onDrag&&e.onDragStop===t.onDragStop&&e.onResize===t.onResize&&e.onResizeStop===t.onResizeStop&&e.droppingPosition===t.droppingPosition);F9.displayName=`GridItem`;function I9(e){let{clientX:t,clientY:n,gridElement:r,droppingItem:i,event:a,dragOffsetX:o=0,dragOffsetY:s=0,transformScale:c,cols:l,margin:u,maxRows:d,rowHeight:f,width:p,containerPadding:m}=e,h=r.getBoundingClientRect(),g={cols:l,margin:u,maxRows:d,rowHeight:f,containerWidth:p,containerPadding:m},_=y7(g),v=b7(i.w,_,u[0]),y=b7(i.h,f,u[1]),b=v/2,x=y/2,S=r.scrollLeft??0,C=r.scrollTop??0,w=t-h.left+S+o-b,T=n-h.top+C+s-x,E=Math.max(0,w),D=Math.max(0,T);return{newDroppingPosition:{left:E/c,top:D/c,e:a},calculatedXY:RDe(g,D,E,i.w,i.h)}}var L9=()=>{},R9=`react-grid-layout`,z9=!1;try{z9=/firefox/i.test(navigator.userAgent)}catch{}function LOe(e,t){let n=h.Children.toArray(e),r=h.Children.toArray(t);if(n.length!==r.length)return!1;for(let e=0;e{if(!h.isValidElement(t)||t.key===null)return;let n=String(t.key);a.add(n);let r=e.find(e=>e.i===n);if(r)i.push(M7(r));else{let e=t.props[`data-grid`];e?i.push({i:n,x:e.x??0,y:e.y??0,w:e.w??1,h:e.h??1,minW:e.minW,maxW:e.maxW,minH:e.minH,maxH:e.maxH,static:e.static,isDraggable:e.isDraggable,isResizable:e.isResizable,resizeHandles:e.resizeHandles,isBounded:e.isBounded}):i.push({i:n,x:0,y:k7(i),w:1,h:1})}});let o=P7(i,{cols:n});return r.compact(o,n)}function V9(e){let{children:t,width:n,gridConfig:r,dragConfig:i,resizeConfig:a,dropConfig:o,positionStrategy:s=YDe,compactor:c,constraints:l=R7,layout:u=[],droppingItem:d,autoSize:f=!0,className:p=``,style:m={},innerRef:g,onLayoutChange:_=L9,onDragStart:v=L9,onDrag:y=L9,onDragStop:b=L9,onResizeStart:x=L9,onResize:S=L9,onResizeStop:C=L9,onDrop:w=L9,onDropDragOver:T=L9}=e,E=(0,h.useMemo)(()=>({...XDe,...r}),[r]),D=(0,h.useMemo)(()=>({...ZDe,...i}),[i]),O=(0,h.useMemo)(()=>({...QDe,...a}),[a]),k=(0,h.useMemo)(()=>({...$De,...o}),[o]),{cols:A,rowHeight:j,maxRows:M,margin:N,containerPadding:P}=E,{enabled:F,bounded:ee,handle:I,cancel:L,threshold:R,allowMobileScroll:te}=D,{enabled:ne,handles:re,handleComponent:ie}=O,{enabled:ae,defaultItem:oe,onDragOver:z,touchEnabled:se=!0,touchDragSource:ce=`[data-rgl-draggable]`}=k,B=c??Q7(`vertical`),le=B.type,ue=B.allowOverlap,de=B.preventCollision??!1,fe=(0,h.useMemo)(()=>d??{i:`__dropping-elem__`,...oe},[d,oe]),pe=s.type===`transform`,me=s.scale,he=P??N,[ge,_e]=(0,h.useState)(!1),[V,ve]=(0,h.useState)(()=>B9(u,t,A,B)),[ye,be]=(0,h.useState)(null),[xe,Se]=(0,h.useState)(!1),[Ce,we]=(0,h.useState)(null),[Te,Ee]=(0,h.useState)(),De=(0,h.useRef)(void 0);De.current=Te;let Oe=(0,h.useRef)(null),ke=(0,h.useRef)(null),Ae=(0,h.useRef)(null),je=(0,h.useRef)(0),Me=(0,h.useRef)(V),Ne=(0,h.useRef)(u),Pe=(0,h.useRef)(t),Fe=(0,h.useRef)(le),Ie=(0,h.useRef)(null),Le=(0,h.useRef)(!1),Re=(0,h.useRef)(null),ze=(0,h.useRef)(null);ze.current=Ce;let Be=(0,h.useRef)(w);(0,h.useLayoutEffect)(()=>{Be.current=w});let Ve=(0,h.useRef)(V);Ve.current=V,(0,h.useEffect)(()=>{_e(!0),(0,M9.deepEqual)(V,u)||_(V)},[]),(0,h.useEffect)(()=>{if(ye||Ce)return;let e=!(0,M9.deepEqual)(u,Ne.current),n=!LOe(t,Pe.current),r=le!==Fe.current;if(e||n||r){let n=B9(e?u:V,t,A,B);(0,M9.deepEqual)(n,V)||ve(n)}Ne.current=u,Pe.current=t,Fe.current=le},[u,t,A,le,B,ye,Ce,V]),(0,h.useEffect)(()=>{if(!ye&&!Ce&&!(0,M9.deepEqual)(V,Me.current)){Me.current=V;let e=V.filter(e=>e.i!==fe.i);_(e)}},[V,ye,Ce,_,fe.i]);let He=(0,h.useMemo)(()=>{if(!f)return;let e=k7(V),t=he[1];return e*j+(e-1)*N[1]+t*2+`px`},[f,V,j,N,he]),Ue=(0,h.useCallback)((e,t,n,r)=>{let i=Ve.current,a=A7(i,e);if(!a)return;let o={w:a.w,h:a.h,x:a.x,y:a.y,i:e};Oe.current=M7(a),Ae.current=i,be(o),v(i,a,a,null,r.e,r.node)},[v]),We=(0,h.useCallback)((e,t,n,r)=>{let i=Ve.current,a=Oe.current,o=A7(i,e);if(!o)return;let s={w:o.w,h:o.h,x:o.x,y:o.y,i:e},c=F7(i,o,t,n,!0,de,le,A,ue);y(c,a,o,s,r.e,r.node),ve(B.compact(c,A)),be(s)},[de,le,A,ue,B,y]),Ge=(0,h.useCallback)((e,t,n,r)=>{if(!Oe.current)return;let i=Ve.current,a=Oe.current,o=A7(i,e);if(!o)return;let s=F7(i,o,t,n,!0,de,le,A,ue),c=B.compact(s,A);b(c,a,o,null,r.e,r.node);let l=Ae.current;Oe.current=null,Ae.current=null,be(null),ve(c),l&&!(0,M9.deepEqual)(l,c)&&_(c)},[de,le,A,ue,B,b,_]),Ke=(0,h.useCallback)((e,t,n,r)=>{let i=Ve.current,a=A7(i,e);a&&(ke.current=M7(a),Ae.current=i,Se(!0),x(i,a,a,null,r.e,r.node))},[x]),qe=(0,h.useCallback)((e,t,n,r)=>{let i=Ve.current,a=ke.current,{handle:o}=r,s=!1,c,l,[u,d]=HDe(i,e,e=>(c=e.x,l=e.y,[`sw`,`w`,`nw`,`n`,`ne`].includes(o)&&([`sw`,`nw`,`w`].includes(o)&&(c=e.x+(e.w-t),t=e.x!==c&&c<0?e.w:t,c=c<0?0:c),[`ne`,`n`,`nw`].includes(o)&&(l=e.y+(e.h-n),n=e.y!==l&&l<0?e.h:n,l=l<0?0:l),s=!0),de&&!ue&&E7(i,{...e,w:t,h:n,x:c??e.x,y:l??e.y}).filter(t=>t.i!==e.i).length>0&&(l=e.y,n=e.h,c=e.x,t=e.w,s=!1),e.w=t,e.h=n,(o===`n`||o===`nw`||o===`ne`)&&(e.y=l??e.y),e));if(!d)return;let f=u;s&&c!==void 0&&l!==void 0&&(f=F7(u,d,c,l,!0,de,le,A,ue));let p={w:d.w,h:d.h,x:d.x,y:d.y,i:e,static:!0};S(f,a,d,p,r.e,r.node);let m=B.compact(f,A);if(o===`n`||o===`nw`||o===`ne`){let t=m.find(t=>t.i===e);t&&(t.y=d.y)}ve(m),be(p)},[de,le,A,ue,B,S]),Je=(0,h.useCallback)((e,t,n,r)=>{let i=Ve.current,a=ke.current,o=A7(i,e),s=B.compact(i,A);C(s,a,o??null,null,r.e,r.node);let c=Ae.current;ke.current=null,Ae.current=null,be(null),Se(!1),ve(s),c&&!(0,M9.deepEqual)(c,s)&&_(s)},[A,B,C,_]),Ye=(0,h.useCallback)((e,t,n,r)=>{if(r)De.current&&(De.current.left!==t.left||De.current.top!==t.top)&&(Ee(t),ve(t=>t.map(t=>t.i===e.i&&(t.x!==n.x||t.y!==n.y)?{...t,x:n.x,y:n.y}:t)));else{we((0,U.jsx)(`div`,{},e.i)),Ee(t);let r=Ve.current.filter(t=>t.i!==e.i);ve([...r,{...e,x:n.x,y:n.y,static:!1,isDraggable:!0}])}},[]),Xe=(0,h.useCallback)((e,t,r)=>{let i=Ie.current;if(!i)return;let{newDroppingPosition:a,calculatedXY:o}=I9({clientX:e,clientY:t,gridElement:i,droppingItem:fe,event:r,transformScale:me,cols:A,margin:N,maxRows:M,rowHeight:j,width:n,containerPadding:he});Ye(fe,a,o,!!ze.current)},[fe,me,A,N,M,j,n,he,Ye]),Ze=(0,h.useCallback)(()=>{let e=Ve.current;if(!e.some(e=>e.i===fe.i)){we(null),be(null),Ee(void 0);return}let t=B.compact(e.filter(e=>e.i!==fe.i),A);ve(t),we(null),be(null),Ee(void 0)},[fe.i,A,B]),Qe=(0,h.useCallback)(e=>{if(e.preventDefault(),e.stopPropagation(),z9&&!e.nativeEvent.target?.classList.contains(R9))return!1;let t=z?z(e.nativeEvent):T(e);if(t===!1)return Ce&&Ze(),!1;let{dragOffsetX:r=0,dragOffsetY:i=0,...a}=t??{},o={...fe,...a},{newDroppingPosition:s,calculatedXY:c}=I9({clientX:e.clientX,clientY:e.clientY,gridElement:e.currentTarget,droppingItem:o,event:e.nativeEvent,dragOffsetX:r,dragOffsetY:i,transformScale:me,cols:A,margin:N,maxRows:M,rowHeight:j,width:n,containerPadding:he});Ye(o,s,c,!!Ce)},[Ce,fe,z,T,Ze,Ye,me,A,N,M,j,n,he]),$e=(0,h.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),je.current--,je.current<0&&(je.current=0),je.current===0&&Ze()},[Ze]),et=(0,h.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),je.current++},[]),tt=(0,h.useCallback)(e=>{let t=Ve.current,n=t.find(e=>e.i===fe.i);Ze(),Be.current(t,n,e)},[fe.i,Ze]),nt=(0,h.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),je.current=0,tt(e.nativeEvent)},[tt]);(0,h.useEffect)(()=>{if(!ae||!se)return;let e=Ie.current;if(!e)return;let t=(t,n)=>{let r=document.elementFromPoint(t,n);return r?e.contains(r):!1},n=e=>e instanceof HTMLElement&&e.closest(ce)!==null,r=e=>{let t=e.changedTouches;if(!t||t.length===0)return;let n=Re.current;if(n===null)return t[0];for(let e=0;e{if(!n(e.target)||Re.current!==null)return;e.preventDefault();let t=e.changedTouches?.[0];t&&(Re.current=t.identifier,Le.current=!0)},a=e=>{if(!Le.current)return;e.preventDefault();let n=r(e);n&&(t(n.clientX,n.clientY)?Xe(n.clientX,n.clientY,e):ze.current&&Ze())},o=e=>{if(!Le.current)return;e.preventDefault();let n=r(e);Le.current=!1,Re.current=null,n&&(t(n.clientX,n.clientY)?tt(e):Ze())},s=()=>{Le.current&&(Le.current=!1,Re.current=null,Ze())},c={passive:!1};return document.addEventListener(`touchstart`,i,c),document.addEventListener(`touchmove`,a,c),document.addEventListener(`touchend`,o,c),document.addEventListener(`touchcancel`,s,c),()=>{document.removeEventListener(`touchstart`,i,c),document.removeEventListener(`touchmove`,a,c),document.removeEventListener(`touchend`,o,c),document.removeEventListener(`touchcancel`,s,c)}},[ae,se,ce,Xe,Ze,tt,fe.i]);let rt=(0,h.useCallback)((e,t)=>{if(!e||!e.key)return null;let r=A7(V,String(e.key));if(!r)return null;let i=typeof r.isDraggable==`boolean`?r.isDraggable:!r.static&&F,a=typeof r.isResizable==`boolean`?r.isResizable:!r.static&&ne,o=r.resizeHandles||[...re],c=i&&ee&&r.isBounded!==!1,u=ie;return(0,U.jsx)(F9,{containerWidth:n,cols:A,margin:N,containerPadding:he,maxRows:M,rowHeight:j,cancel:L,handle:I,onDragStart:Ue,onDrag:We,onDragStop:Ge,onResizeStart:Ke,onResize:qe,onResizeStop:Je,isDraggable:i,isResizable:a,isBounded:c,allowMobileScroll:te,useCSSTransforms:pe&&ge,usePercentages:!ge,transformScale:me,positionStrategy:s,dragThreshold:R,w:r.w,h:r.h,x:r.x,y:r.y,i:r.i,minH:r.minH,minW:r.minW,maxH:r.maxH,maxW:r.maxW,static:r.static,droppingPosition:t?Te:void 0,resizeHandles:o,resizeHandle:u,constraints:l,layoutItem:r,layout:V,children:e},r.i)},[V,n,A,N,he,M,j,L,I,Ue,We,Ge,Ke,qe,Je,F,ne,ee,pe,ge,me,s,R,Te,re,ie,l]),it=()=>ye?(0,U.jsx)(F9,{w:ye.w,h:ye.h,x:ye.x,y:ye.y,i:ye.i,className:`react-grid-placeholder ${xe?`placeholder-resizing`:``}`,containerWidth:n,cols:A,margin:N,containerPadding:he,maxRows:M,rowHeight:j,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:pe,transformScale:me,constraints:l,layout:V,children:(0,U.jsx)(`div`,{})}):null,at=(0,h.useCallback)(e=>{Ie.current=e,typeof g==`function`?g(e):g&&`current`in g&&(g.current=e)},[g]),ot=en(R9,p),st={height:He,...m};return(0,U.jsxs)(`div`,{ref:at,className:ot,style:st,onDrop:ae?nt:void 0,onDragLeave:ae?$e:void 0,onDragEnter:ae?et:void 0,onDragOver:ae?Qe:void 0,children:[h.Children.map(t,e=>h.isValidElement(e)?rt(e):null),ae&&Ce&&rt(Ce,!0),it()]})}var ROe={lg:1200,md:996,sm:768,xs:480,xxs:0},zOe={lg:12,md:10,sm:6,xs:4,xxs:2},H9=()=>{};function BOe(e,t,n,r,i=!1){let a=[];h.Children.forEach(t,t=>{if(!h.isValidElement(t)||t.key===null)return;let n=String(t.key),r=t.props[`data-grid`],o=e.find(e=>e.i===n);o?i&&r?a.push({...o,i:n,w:r.w??o.w,h:r.h??o.h,minW:r.minW??o.minW,maxW:r.maxW??o.maxW,minH:r.minH??o.minH,maxH:r.maxH??o.maxH}):a.push({...o,i:n}):r?a.push({i:n,x:r.x??0,y:r.y??0,w:r.w??1,h:r.h??1,minW:r.minW,maxW:r.maxW,minH:r.minH,maxH:r.maxH,static:r.static,isDraggable:r.isDraggable,isResizable:r.isResizable,resizeHandles:r.resizeHandles,isBounded:r.isBounded}):a.push({i:n,x:0,y:k7(a),w:1,h:1})});let o=P7(a,{cols:n});return r.compact(o,n)}function VOe(e){let{children:t,width:n,breakpoint:r,breakpoints:i=ROe,cols:a=zOe,layouts:o={},rowHeight:s=150,maxRows:c=1/0,margin:l=[10,10],containerPadding:u=null,compactor:d,onBreakpointChange:f=H9,onLayoutChange:p=H9,onWidthChange:m=H9,...g}=e,_=d??Q7(`vertical`),v=_.type,y=_.allowOverlap,b=(0,h.useMemo)(()=>r??e9(i,n),[]),x=(0,h.useMemo)(()=>t9(b,a),[b,a]),S=(0,h.useMemo)(()=>n9(o,i,b,b,x,v),[]),[C,w]=(0,h.useState)(b),[T,E]=(0,h.useState)(x),[D,O]=(0,h.useState)(S),[k,A]=(0,h.useState)(o),j=(0,h.useRef)(n),M=(0,h.useRef)(r),N=(0,h.useRef)(i),P=(0,h.useRef)(a),F=(0,h.useRef)(o),ee=(0,h.useRef)(v),I=(0,h.useRef)(k);(0,h.useEffect)(()=>{I.current=k},[k]);let L=(0,h.useMemo)(()=>(0,M9.deepEqual)(o,F.current)?null:n9(o,i,C,C,T,_),[o,i,C,T,_]),R=L??D;(0,h.useEffect)(()=>{L!==null&&(O(L),A(o),I.current=o,F.current=o)},[L,o]),(0,h.useEffect)(()=>{if(v!==ee.current){let e=_.compact(N7(R),T),t={...I.current,[C]:e};O(e),A(t),I.current=t,p(e,t),ee.current=v}},[v,_,R,T,y,C,p]),(0,h.useEffect)(()=>{let e=n!==j.current,o=r!==M.current,s=!(0,M9.deepEqual)(i,N.current),c=!(0,M9.deepEqual)(a,P.current);if(e||o||s||c){let e=r??e9(i,n),o=t9(e,a),d=C;if(d!==e||s||c){let n={...I.current};n[d]||(n[d]=N7(D));let r=n9(n,i,e,d,o,_),a=!n[e];r=BOe(r,t,o,_,a),n[e]=r,w(e),E(o),O(r),A(n),I.current=n,f(e,o),p(r,n)}let h=r9(l,e),g=u?r9(u,e):null;m(n,h,o,g),j.current=n,M.current=r,N.current=i,P.current=a}},[n,r,i,a,C,T,D,t,_,v,y,l,u,f,p,m]);let te=(0,h.useCallback)(e=>{let t={...I.current,[C]:e};O(e),A(t),I.current=t,p(e,t)},[C,p]),ne=(0,h.useMemo)(()=>r9(l,C),[l,C]),re=(0,h.useMemo)(()=>u===null?null:r9(u,C),[u,C]),ie=(0,h.useMemo)(()=>({cols:T,rowHeight:s,maxRows:c,margin:ne,containerPadding:re}),[T,s,c,ne,re]);return(0,U.jsx)(V9,{...g,width:n,gridConfig:ie,compactor:_,onLayoutChange:te,layout:R,children:t})}var HOe=h.forwardRef(function(e,t){let{innerRef:n,...r}=e,i=n??t;return(0,U.jsx)(VOe,{...r,innerRef:i})});HOe.displayName=`ResponsiveGridLayout`;var U9=36,UOe={s:2,m:7,l:12},WOe={stat:3,gauge:3,timeseries:6,bar:6,table:12,list:6,inbox:8,cards:12,timeline:12,text:6};function GOe(e){return{w:Math.min(12,e.width??WOe[e.viz]),h:UOe[e.height??(e.viz===`stat`||e.viz===`gauge`?`s`:e.viz===`inbox`?`l`:`m`)]}}var W9=12,G9=48,K9=58;function KOe(e,t,n,r){if(t?.status===`empty`||t?.frame&&t.frame.rows.length===0)return 2;let i=t?.frame?.rows.length;if(i===void 0)return;let a;switch(e.viz){case`table`:a=90+31*i;break;case`list`:a=K9+33*i;break;case`inbox`:{let e=t?.frame?.columns.findIndex(e=>e.name===`kind`)??-1,n=e<0?i:t.frame.rows.filter(t=>t[e]===`waiting`).length;a=142+72*n+36*(i-n);break}case`cards`:{let e=Math.max(1,Math.floor(r*n/12/230));a=K9+160*Math.ceil(i/e);break}case`stat`:return 2;case`gauge`:return 3;default:return}return Math.max(2,Math.ceil((a+W9)/G9))}function qOe(e){let t=[],n=(e,n,r,i)=>t.every(t=>e+r<=t.x||t.x+t.w<=e||n+i<=t.y||t.y+t.h<=n);for(let n of e)n.grid&&t.push({i:n.id,...n.grid});for(let r of e){if(r.grid)continue;let{w:e,h:i}=GOe(r),a;for(let t=0;!a;t++)for(let r=0;r+e<=12&&!a;r++)n(r,t,e,i)&&(a={x:r,y:t});t.push({i:r.id,...a,w:e,h:i})}return t}function JOe(e,t,n,r,i){let a=e.map(e=>({...e,h:Math.min(Math.max(e.h,12),KOe(t.get(e.i),n.get(e.i),e.w,r)??e.h)})),o=(e,t)=>e.x!a.some(n=>n!==e&&o({...e,...t},n)),c=()=>{for(let e of[...a].sort((e,t)=>e.y-t.y||e.x-t.x))for(;e.y>0&&a.every(t=>t===e||t.y>e.y||!o({...e,y:e.y-1},t));)e.y--},l=()=>Math.max(0,...a.map(e=>e.y+e.h)),u=[];for(let e of[...a].sort((e,t)=>e.y-t.y||e.x-t.x)){for(;u.some(t=>o(e,t));)e.y++;u.push(e)}c();let d=new Set([`bar`,`timeseries`,`timeline`]),f=e=>d.has(t.get(e.i).viz)?4:Math.min(5,e.h),p=new Map(e.map((e,t)=>[e.i,t]));for(;l()>i;){let e=a.filter(e=>e.h>f(e)).sort((e,t)=>p.get(t.i)-p.get(e.i))[0]??a.filter(e=>e.h>3).sort((e,t)=>t.h-e.h)[0];if(!e)break;e.h--,c()}for(let e of a){for(;e.x>0&&s(e,{x:e.x-1,w:1});)e.x--,e.w++;for(;e.x+e.w<12&&s(e,{x:e.x+e.w,w:1});)e.w++}let m=Math.max(i,l());for(let e of[...a].sort((e,t)=>e.y-t.y))for(;e.y+e.h{let e=t.current;if(!e)return;let n=()=>r({height:e.clientHeight,width:e.clientWidth});n();let i=new ResizeObserver(n);return i.observe(e),()=>i.disconnect()},[e]),{ref:t,...n}}function XOe({fragment:e,editing:t,act:n,onLayout:r,onRemove:i}){let{inboxFilter:a}=N0(),{width:o,containerRef:s,mounted:c}=sOe(),l=YOe(t),u=new Map(e.results.map(e=>[e.id,e])),d=new Map(e.dashboard.panels.map(e=>[e.id,e])),f=t?[]:e.dashboard.panels.filter(e=>u.get(e.id)?.status===`empty`&&!(e.viz===`inbox`&&a)),p=t?e.dashboard.panels:e.dashboard.panels.filter(e=>!f.includes(e)),m=Math.max(1,Math.floor((l.height+W9)/G9)),h=JOe(qOe(p),d,u,l.width,m),g=e=>{l.ref.current=e,s.current=e},_=l.height>0&&l.width>0;if(!t){let e=Math.max(1,...h.map(e=>e.y+e.h));return(0,U.jsxs)(U.Fragment,{children:[f.length>0&&(0,U.jsx)(ZOe,{panels:f,results:u}),(0,U.jsx)(K,{ref:g,style:{flex:1,minHeight:0,display:`grid`,gridTemplateColumns:`repeat(12, minmax(0, 1fr))`,gap:W9,gridTemplateRows:`repeat(${e}, minmax(${U9}px, 1fr))`},children:_&&h.map(e=>(0,U.jsx)(K,{style:{minWidth:0,minHeight:0,gridColumn:`${e.x+1} / span ${e.w}`,gridRow:`${e.y+1} / span ${e.h}`},children:(0,U.jsx)(w8,{panel:d.get(e.i),result:u.get(e.i),act:n,fill:!0})},e.i))})]})}let v=e=>{e.some(e=>{let t=h.find(t=>t.i===e.i);return!t||t.x!==e.x||t.y!==e.y||t.w!==e.w||t.h!==e.h})&&r(Object.fromEntries(e.map(e=>[e.i,{x:e.x,y:e.y,w:e.w,h:e.h}])))};return(0,U.jsx)(K,{ref:g,className:`editing`,style:{flex:1,minHeight:0,overflow:`auto`},children:_&&c&&(0,U.jsx)(V9,{width:o,layout:h,gridConfig:{cols:12,rowHeight:U9,margin:[W9,W9],containerPadding:[0,0]},dragConfig:{enabled:!0,handle:`.panel-handle`},resizeConfig:{enabled:!0},onDragStop:e=>v(e),onResizeStop:e=>v(e),children:h.map(e=>(0,U.jsxs)(`div`,{style:{position:`relative`},children:[(0,U.jsx)(w8,{panel:d.get(e.i),result:u.get(e.i),fill:!0}),(0,U.jsx)(cu,{variant:`default`,pos:`absolute`,top:8,right:8,"aria-label":`Remove ${d.get(e.i).title}`,onClick:()=>{V0(`Remove ${d.get(e.i).title} from this dashboard?`).then(t=>{t&&i(e.i)})},children:(0,U.jsx)(Py,{})})]},e.i))})})}function ZOe({panels:e,results:t}){return(0,U.jsx)(q,{role:`group`,gap:`lg`,mb:8,px:2,"aria-label":`Nothing to show`,children:e.map(e=>(0,U.jsx)(Rg,{label:t.get(e.id)?.message??e.empty??`Nothing matches right now.`,multiline:!0,maw:300,children:(0,U.jsxs)(q,{id:`panel-${e.id}`,gap:6,wrap:`nowrap`,c:`dimmed`,children:[(0,U.jsx)(Tv,{"aria-hidden":!0}),(0,U.jsxs)(J,{size:`sm`,id:`panel-${e.id}`,children:[e.title,`: `,(0,U.jsx)(J,{span:!0,c:`dimmed`,size:`sm`,children:`none`})]})]})},e.id))})}function QOe({panels:e,busy:t,onAdd:n,onReset:r,onAsk:i}){let[a,o]=(0,h.useState)([]),[s,c]=(0,h.useState)(``),[l,u]=(0,h.useState)(``),d=async()=>{u(``);try{o(await z0.catalog())}catch(e){o([]),u(e.message)}},f=im({onDropdownOpen:()=>{f.focusSearchInput(),d()},onDropdownClose:e=>{f.resetSelectedOption(),c(``),e===`keyboard`&&f.focusTarget()}}),p=a.filter(t=>!e.some(e=>e.id===t.id)),m=p.filter(e=>e.title.toLowerCase().includes(s.toLowerCase())),g=e.length>=16;return(0,h.useEffect)(()=>{f.dropdownOpened&&f.selectFirstOption()},[a,s,f.dropdownOpened]),(0,U.jsxs)(q,{gap:2,wrap:`nowrap`,style:{flex:`none`},children:[(0,U.jsxs)(sm,{store:f,width:280,position:`bottom-end`,withinPortal:!0,onOptionSubmit:e=>{let r=p.find(t=>t.id===e);r&&!g&&!t&&n(r),f.closeDropdown()},children:[(0,U.jsx)(sm.Target,{targetType:`button`,withExpandedAttribute:!0,children:(0,U.jsx)(cu,{variant:`subtle`,"aria-label":`Add widget`,disabled:t,onClick:()=>f.toggleDropdown(),children:(0,U.jsx)(qte,{})})}),(0,U.jsxs)(sm.Dropdown,{children:[(0,U.jsx)(sm.Search,{"aria-label":`Find a widget`,placeholder:`Find a widget`,value:s,onChange:e=>{c(e.currentTarget.value)}}),(0,U.jsxs)(sm.Options,{mah:320,style:{overflowY:`auto`},children:[m.map(e=>(0,U.jsx)(sm.Option,{value:e.id,disabled:g||t,children:e.title},e.id)),m.length===0&&(0,U.jsx)(sm.Empty,{children:l||`No matching widgets`})]}),g&&(0,U.jsx)(J,{size:`xs`,c:`dimmed`,p:`xs`,children:`The header shows at most 16 widgets`}),(0,U.jsx)(Om,{variant:`subtle`,fullWidth:!0,size:`xs`,onClick:()=>{f.closeDropdown(),i(`Add a header widget that shows `)},children:`Ask Chat for another…`})]})]}),(0,U.jsxs)(tg,{withinPortal:!0,position:`bottom-end`,children:[(0,U.jsx)(tg.Target,{children:(0,U.jsx)(cu,{variant:`subtle`,"aria-label":`Header options`,disabled:t,children:(0,U.jsx)(zv,{})})}),(0,U.jsx)(tg.Dropdown,{children:(0,U.jsx)(tg.Item,{onClick:r,children:`Reset header`})})]})]})}var $Oe={name:`Search`,panels:[{id:`live`,title:`Live`,viz:`table`,source:`sessions`},{id:`ended`,title:`Ended`,viz:`table`,source:`history`}]},q9=(e,t)=>{let n=Date.parse(String(t??``));return n?`${T1(Math.max(0,e-n))} ago`:``};function eke(e,t,n,r,i){let a=e=>Date.parse(String(e.last_activity_at??``))||0,o=e=>String(e.title||`Session ${e.id}`),s=e=>[e.project,e.branch,e.agent,e.machine,e.state].filter(e=>typeof e==`string`&&e!==``);return[{group:`Live sessions`,actions:[...e].sort((e,t)=>a(t)-a(e)).map(e=>({id:`live-${e.machine_id}-${e.id}`,label:o(e),description:[e.project,e.branch,e.agent,e.machine,a(e)?`active ${q9(n,e.last_activity_at)}`:``].filter(Boolean).join(` · `),keywords:s(e),leftSection:(0,U.jsx)(cv,{size:16,"aria-hidden":!0}),rightSection:e.label?(0,U.jsx)(o0,{...a0(String(e.label)),inferred:e.inferred===!0||String(e.label).startsWith(`~`)}):void 0,onClick:()=>void r({kind:`jump`,row:{...e,session_id:e.id}})}))},{group:`Ended sessions`,actions:t.map(e=>({id:`ended-${e.machine_id}-${e.id}`,label:o(e),description:[e.project,e.branch,e.agent,e.machine,`ended ${q9(n,e.ended_at)}`].filter(Boolean).join(` · `),keywords:s(e),leftSection:e.resume?(0,U.jsx)(kv,{size:16,"aria-hidden":!0}):(0,U.jsx)(xv,{size:16,"aria-hidden":!0}),rightSection:(0,U.jsx)(J,{className:`search-hint`,size:`xs`,c:`var(--driga-text)`,style:{whiteSpace:`nowrap`},children:e.resume?`Copy resume command`:`Ask Chat`}),onClick:()=>i(e)}))}].filter(e=>e.actions.length>0)}var tke=(e,t)=>{let n=e.toLowerCase().split(/\s+/).filter(Boolean);if(n.length===0)return t;let r=e=>{let t=[e.label,e.description,...Array.isArray(e.keywords)?e.keywords:[e.keywords]].filter(Boolean).join(` `).toLowerCase();return n.every(e=>t.includes(e))},i=[];for(let e of t){if(!ob(e)){r(e)&&i.push(e);continue}let t=e.actions.filter(r);t.length&&i.push({...e,actions:t})}return i};function nke({list:e,act:t,ask:n,open:r,onFleet:i,say:a}){let[o,s]=(0,h.useState)({live:[],ended:[]}),[c,l]=(0,h.useState)(!1),u=(e,t)=>mS(e.results.find(e=>e.id===t)?.frame??{columns:[],rows:[]}),d=()=>z0.run($Oe).then(e=>{s({live:u(e,`live`),ended:u(e,`ended`)}),l(!1)},()=>l(!0)),f=e=>{let t=String(e.title||`Session ${e.id}`);if(typeof e.resume!=`string`||!e.resume){n(`Tell me about session ${e.id}, "${t}": what it did and what it left uncommitted.`);return}let r=()=>a(`Couldn't copy. Resume with: ${e.resume}`);if(!navigator.clipboard?.writeText)r();else try{navigator.clipboard.writeText(e.resume).then(()=>a(`Copied the command that resumes ${t}. Paste it in a terminal.`),r)}catch{r()}},p={group:`Dashboards`,actions:e.map(e=>({id:`dashboard-${e.id}`,label:e.name,leftSection:(0,U.jsx)(Cy,{size:16,"aria-hidden":!0}),onClick:()=>r(e.id)}))},m={group:`Pages`,actions:i?[{id:`page-fleet`,label:`Fleet`,description:`Every machine, project and session, and where the memory goes`,keywords:[`machines`,`sessions`],leftSection:(0,U.jsx)(Ty,{size:16,"aria-hidden":!0}),onClick:i}]:[]};return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Qc,{className:`search-button`,onClick:ab.open,"aria-keyshortcuts":`Meta+K`,title:`Search sessions and dashboards (⌘K)`,children:(0,U.jsxs)(q,{gap:8,wrap:`nowrap`,children:[(0,U.jsx)(py,{size:16,"aria-hidden":!0}),(0,U.jsx)(J,{size:`sm`,c:`dimmed`,visibleFrom:`lg`,children:`Search`}),(0,U.jsx)(el,{hiddenFrom:`lg`,children:`Search`}),(0,U.jsx)(vh,{size:`xs`,visibleFrom:`lg`,"aria-hidden":!0,children:`⌘K`})]})}),(0,U.jsx)(_b,{title:`Search sessions and dashboards`,styles:{actionDescription:{color:`var(--driga-text)`,opacity:1},actionSection:{opacity:1}},shortcut:[`mod + K`],filter:tke,onSpotlightOpen:()=>void d(),limit:40,highlightQuery:!0,scrollable:!0,maxHeight:480,actions:[...eke(o.live,o.ended,Date.now(),t,f),...p.actions.length?[p]:[],...m.actions.length?[m]:[]],nothingFound:c?`Driga can't reach its service, so there is nothing to search.`:`No session or dashboard matches. Sessions that ended more than two weeks ago aren't listed.`,searchProps:{"aria-label":`Search sessions and dashboards`,leftSection:(0,U.jsx)(py,{size:18,"aria-hidden":!0}),placeholder:`Search sessions by title, project, branch, agent or machine`}})]})}var J9=5e3,Y9=`header`,X9=`home`,rke={name:`Inbox`,panels:[{id:`inbox`,title:`Inbox`,viz:`inbox`,source:`inbox`}]},Z9={at:0,failed:!1};function ike({id:e,vars:t,onError:n,onMissing:r}){let[i,a]=(0,h.useState)(null),[o,s]=(0,h.useState)(null),[c,l]=(0,h.useState)(null),[u,d]=(0,h.useState)({id:e,navigation:0,fragment:null,fresh:Z9}),[f,p]=(0,h.useState)([]),[m,g]=(0,h.useState)([]),[_,v]=(0,h.useState)([]),[y,b]=(0,h.useState)([]),[x,S]=(0,h.useState)(!1),C=(0,h.useRef)({scope:{id:e,vars:t,mutations:0,reconcile:!1,navigation:0},generation:0,refreshing:-1,request:null,editing:!1,headerMutations:0}),w=(0,h.useRef)({onError:n,onMissing:r});w.current={onError:n,onMissing:r};let T=C.current;(T.scope.id!==e||T.scope.vars!==t)&&(T.scope={id:e,vars:t,mutations:0,reconcile:!1,navigation:T.scope.navigation+Number(T.scope.id!==e)},T.generation++);let E=u.navigation===T.scope.navigation?u.fragment:null,D=u.navigation===T.scope.navigation?u.fresh:Z9,O=(0,h.useCallback)(async(n=!1)=>{let r=C.current;if(r.scope.id!==e||r.scope.vars!==t||r.scope.mutations>0||r.headerMutations>0||r.editing&&!n||!n&&r.refreshing===r.generation)return;let i=r.scope,o=++r.generation;r.request?.abort();let c=new AbortController;r.request=c,r.refreshing=o;let u=()=>r.generation===o&&r.scope===i,f=(e,t)=>e.then(e=>{u()&&t(e)},()=>void 0),m=async()=>{try{let n=await z0.open(e,t,c.signal);u()&&d({id:e,navigation:i.navigation,fragment:n,fresh:{at:Date.now(),failed:!1}})}catch(t){if(!u())return;d(t=>({id:e,navigation:i.navigation,fragment:t.navigation===i.navigation?t.fragment:null,fresh:{at:t.navigation===i.navigation?t.fresh.at:0,failed:!0}})),w.current.onError(t.message),e!==`home`&&t instanceof I0&&t.status===404&&w.current.onMissing()}};try{U0.bursts().then(e=>{u()&&g(e)},()=>void 0),U0.grantHistory().then(e=>{u()&&p(e)},()=>void 0),U0.prompts().then(e=>{u()&&v(e)},()=>void 0),await Promise.all([m(),f(z0.open(Y9,void 0,c.signal),a),f(z0.run(rke,void 0,c.signal),s),f(z0.run(cge,void 0,c.signal),l)])}finally{r.request===c&&(r.request=null),r.refreshing===o&&(r.refreshing=-1)}},[e,t]),k=(0,h.useRef)(()=>O(!0));return k.current=()=>O(!0),(0,h.useEffect)(()=>(O(!0),()=>{C.current.generation++,C.current.request?.abort()}),[O]),(0,h.useEffect)(()=>{if(x)return;let e=window.setInterval(()=>{document.visibilityState===`visible`&&O()},J9);return()=>window.clearInterval(e)},[O,x]),(0,h.useEffect)(()=>{let e=!0;return z0.list().then(t=>{e&&b(t.filter(e=>e.id!==Y9))},()=>void 0),()=>{e=!1}},[E?.id,E?.version]),{fragment:E,header:i,inbox:o,fleet:c,prompts:_,bursts:m,grantHistory:f,list:y,fresh:D,editing:x,setEditing:(0,h.useCallback)(e=>{let t=C.current,n=typeof e==`function`?e(t.editing):e;n!==t.editing&&(t.editing=n,t.generation++,S(n))},[]),refresh:()=>O(!0),edit:async(e,t,n,r)=>{let i=C.current,o=i.scope;i.generation++,o.mutations++;try{let s=await z0.edit(e,n,t,e===`header`?void 0:o.vars,r);return i.scope===o?(e===`header`?a(s):e===o.id&&d({id:o.id,navigation:o.navigation,fragment:s,fresh:{at:Date.now(),failed:!1}}),s):void 0}catch(e){i.scope===o&&(w.current.onError(e.message),o.reconcile=!0)}finally{o.mutations--,i.scope===o&&(i.generation++,o.reconcile&&o.mutations===0&&(o.reconcile=!1,O(!0)))}},mutateHeader:async e=>{let t=C.current;if(t.headerMutations>0)return;let n=t.scope;t.headerMutations++,t.generation++;try{let t=await e();return a(t),t}catch(e){let t=e instanceof Error&&`status`in e&&e.status===409;try{a(await z0.open(Y9)),w.current.onError(t?`Header changed elsewhere; reloaded`:e.message)}catch(e){w.current.onError(e.message)}}finally{t.headerMutations--,t.generation++,t.scope!==n&&k.current()}},forgetPrompt:e=>{C.current.generation++,v(t=>t.filter(t=>t.id!==e)),g(t=>t.map(t=>({...t,members:t.members.filter(t=>t.id!==e)})).filter(e=>e.members.length>0))}}}function Q9(){return new URLSearchParams(location.search).get(`dashboard`)||`home`}function $9(){return new URLSearchParams(location.search).get(`page`)===`fleet`?`fleet`:`board`}var ake={inbox:`inbox`,stuck:`stuck`,leftover:`orphans`,reclaim:`orphans`,memory:`machine_memory`};function oke(e){let t=document.getElementById(`panel-${e}`),n=t?.closest(`.mantine-Card-root`)??t;n&&(n.scrollIntoView({behavior:`smooth`,block:`nearest`}),n.classList.add(`panel-shown`),window.setTimeout(()=>n.classList.remove(`panel-shown`),1600))}function ske(e){try{return localStorage.getItem(e)}catch{return null}}function cke(e,t){try{localStorage.setItem(e,t)}catch{}}function lke(e){return e instanceof HTMLElement&&(e.isContentEditable||/^(input|textarea|select)$/i.test(e.tagName))}function uke(){let[e,t]=(0,h.useState)(Q9),[n,r]=(0,h.useState)($9),[i,a]=(0,h.useState)({}),[o,s]=(0,h.useState)(null),[c,l]=(0,h.useState)(null),[u,d]=(0,h.useState)(()=>ske(`driga-chat-open`)!==`false`),[f,p]=(0,h.useState)(null),m=e=>it.show({message:e,autoClose:4e3,closeButtonProps:{"aria-label":`Dismiss`}}),{fragment:g,header:_,inbox:v,fleet:y,prompts:b,bursts:x,grantHistory:S,list:C,fresh:w,editing:T,setEditing:E,refresh:D,edit:O,mutateHeader:k,forgetPrompt:A}=ike({id:e,vars:i,onError:m,onMissing:()=>{n===`board`&&history.replaceState(null,``,`/app/`),t(X9)}});(0,h.useEffect)(()=>{cke(`driga-chat-open`,String(u))},[u]);let j=lS(),M=(0,h.useRef)(null),N=()=>{M.current?.close()},P=iS({id:`driga-split`,panelIds:[`board`,`chat`],onlySaveAfterUserInteractions:!0});(0,h.useEffect)(()=>{let e=j.current;e&&(u&&e.isCollapsed()&&e.expand(),!u&&!e.isCollapsed()&&e.collapse())},[u,j]),(0,h.useEffect)(()=>{let e=()=>{E(!1),a({}),t(Q9()),r($9())};return window.addEventListener(`popstate`,e),()=>window.removeEventListener(`popstate`,e)},[E]),(0,h.useEffect)(()=>{let t=n===`fleet`?`/app/?page=fleet`:e===`home`?`/app/`:`/app/?dashboard=${encodeURIComponent(e)}`;location.pathname+location.search!==t&&history.pushState(null,``,t)},[e,n]);let F=(0,h.useMemo)(()=>y?j0(y,v):null,[y,v]),ee=(0,h.useMemo)(()=>t0(_),[_]),I=(0,h.useMemo)(()=>_?whe(_,F,ee):null,[_,F,ee]);(0,h.useEffect)(()=>{if(!o||e!==`home`||n!==`board`||g?.id!==`home`)return;let t=()=>document.getElementById(`panel-${o}`)?(oke(o),s(null),!0):!1;if(t())return;let r=new MutationObserver(()=>{t()&&r.disconnect()});return r.observe(document.body,{childList:!0,subtree:!0}),()=>r.disconnect()},[o,e,n,g]);let L=e=>{E(!1),a({}),t(e),r(`board`)},R=(0,h.useCallback)(()=>{E(!1),r(`fleet`)},[]),te=t=>{(e!==`home`||n!==`board`)&&L(X9),s(ake[t])},ne=async t=>{try{let r=g?.id===`home`?g:await z0.open(X9),i=r.dashboard.panels.find(e=>e.source===t.source&&(e.measure??`count`)===(t.measure??`count`));if(!i){let e=t.id;for(let n=2;r.dashboard.panels.some(t=>t.id===e);n++)e=`${t.id}_${n}`;let n={...Object.fromEntries((_?.dashboard.variables??[]).map(e=>[e.name,e.default??``])),..._?.vars},a=t.title;for(let e of Object.keys(n).sort((e,t)=>t.length-e.length))a=a.replaceAll(`$${e}`,n[e]||`all ${e}s`);if(i={...t,id:e,title:a,...t.where?{where:t.where.flatMap(e=>{if(!e.value.startsWith(`$`))return[e];let t=n[e.value.slice(1)];return t?[{...e,value:t}]:[]})}:{}},!await O(`home`,r.version??0,[{op:`add`,panel:i}],`Added a header widget to Home`))return}(e!==`home`||n!==`board`)&&L(X9),s(i.id)}catch(e){m(e.message)}},re=e=>l(t=>t===e?null:e),ie=e=>{d(!0),p({text:e,at:Date.now()})},[ae,oe]=(0,h.useState)(!1),z=(0,h.useRef)(!1),se=async(e,t,n)=>{if(!z.current){z.current=!0,oe(!0);try{let r=await k(e);if(!r)return;let i=it.show({autoClose:8e3,closeButtonProps:{"aria-label":`Dismiss`},message:(0,U.jsxs)(q,{gap:`sm`,wrap:`nowrap`,children:[n,(0,U.jsx)(Om,{size:`compact-xs`,variant:`subtle`,onClick:()=>{z.current||(it.hide(i),se(()=>z0.replace(Y9,t,r.version??0,void 0,`Undid a header edit`),structuredClone(r.dashboard),`Header restored`))},children:`Undo`})]})})}finally{z.current=!1,oe(!1)}}},ce=(e,t)=>{_&&se(()=>z0.edit(Y9,e,_.version??0,void 0,t),structuredClone(_.dashboard),t)},B=()=>{_&&se(()=>z0.reset(Y9,_.version??0),structuredClone(_.dashboard),`Header reset`)},le=async({kind:e,row:t})=>{let n=t.machine_id,r=Number(t.session_id??t.id),i=String(t.title??t.signature??t.project??t.path??t.id??``),a=async(e,t)=>{let n=await pge(e,t);return n||m(`Cancelled`),n};try{switch(e){case`jump`:case`open`:await H0({action:`jump`,session_id:r,machine:n}),m(`Opened the session's pane`);return;case`ack`:{let e=typeof t.ids==`string`&&t.ids?t.ids.split(`,`):[t.id];for(let t of e)await H0({action:`ack_inbox`,id:t,machine:n});m(e.length>1?`Acknowledged ${e.length} turns`:`Acknowledged`);break}case`stop`:if(!await a(`Stop ${i}? Its agent and the processes it started are ended.`,{action:`kill`,session_id:r,machine:n}))return;m(`Stopped ${i}`);break;case`kill`:case`force_kill`:{let r=e===`force_kill`;if(!await a(`${r?`Force kill`:`Kill`} the ${i} process tree? ${r?`Processes get SIGKILL without a chance to clean up.`:`Processes get SIGTERM first.`}`,{action:`kill`,id:t.id,machine:n,force:r}))return;m(`Killed ${i}`);break}case`cleanup`:if(!await a(`Remove ${i}? Driga checks it again before removing it.`,{action:`cleanup`,id:t.id,machine:n}))return;m(`Removed ${i}`);break;case`summarize`:await H0({action:`summarize`,project:t.path,machine:n}),m(`Summarizing ${i}`);return}D()}catch(e){m(e.message)}},ue=async(e,t)=>{try{await U0.answer(e.id,t),A(e.id),m(t?`Allowed ${e.tool}`:`Denied ${e.tool}`)}catch(e){m(e.message)}},de=async(e,t,n)=>{try{await U0.decideBurst(e,t,n),t.forEach(A)}catch(e){throw D(),e}},fe=async e=>{try{await U0.answerSimilar(e.id),A(e.id),D()}catch(e){m(e.message)}},pe=async e=>{try{await U0.revokeGrant(e),D()}catch(e){m(e.message)}},me=async()=>{if(!g?.id)return;let e=g.dashboard.name;if(!await V0(`Delete the ${e} dashboard and its history?`))m(`Cancelled`);else try{await z0.delete(g.id),g.id===`home`?D():L(X9),m(g.id===`home`?`Home is back to the default`:`Deleted ${e}`)}catch(e){m(e.message)}},he=y?.results.find(e=>e.id===`sessions`)?.frame,ge=mS(he),_e={clearInboxFilter:()=>l(null),stuck:he?{...he,rows:he.rows.filter((e,t)=>ge[t].state===`stuck`||ge[t].label===`stuck`)}:void 0,act:le,local:(g??_)?.local_machine,prompts:b,bursts:x,decideBurst:de,answer:ue,answerSimilar:fe,grantHistory:S,revokeGrant:pe,inboxFilter:c,ask:ie};(0,h.useEffect)(()=>{window.drigaCommand=(e,t)=>{e===`reload`?D():e===`back`?history.back():e===`forward`?history.forward():e===`find`?ab.open():e===`view`&&t===`fleet`?R():e===`view`&&t===`inbox`?(l(null),te(`inbox`)):e===`openSession`&&t&&typeof t==`object`&&`session_id`in t&&typeof t.session_id==`number`&&le({kind:`jump`,row:t})}}),(0,h.useEffect)(()=>{let e=-1/0,t=t=>{if(t.metaKey||t.ctrlKey||t.altKey||lke(t.target)||document.querySelector(`[aria-modal="true"]`)){e=-1/0;return}let n=performance.now()-e<800;if(e=-1/0,t.key===`g`){e=performance.now();return}if(t.key===`f`&&n){R();return}let r=J1[Number(t.key)-1];r&&(t.preventDefault(),l(e=>e===r?null:r))};return document.addEventListener(`keydown`,t),()=>document.removeEventListener(`keydown`,t)},[R]);let V=v?.dashboard.panels[0],ve=n===`fleet`?!1:!g||g.dashboard.panels.some(e=>e.viz===`inbox`),ye=V?{panel:V,result:v.results[0],listed:!!ve}:void 0,be=g?.dashboard;return(0,U.jsx)(M0.Provider,{value:_e,children:(0,U.jsxs)(Dp,{header:{height:56},padding:0,children:[(0,U.jsx)(Dp.Header,{px:`md`,style:{background:`color-mix(in srgb, var(--driga-ground) 88%, transparent)`,backdropFilter:`blur(10px)`,borderColor:`var(--driga-border)`},children:(0,U.jsx)(LDe,{data:I,filter:c,chatOpen:u,onFilter:re,onOpenFleet:R,onSearch:ab.open,onToggleChat:()=>u?N():d(!0),onShow:e=>void ne(e),busy:ae,onRemove:e=>ce([{op:`remove`,id:e}],`Removed a header widget`),onMove:(e,t)=>ce([{op:`move`,id:e,...t?{before:t}:{}}],`Reordered header widgets`),editor:_&&(0,U.jsx)(QOe,{panels:_.dashboard.panels,busy:ae,onAdd:e=>ce([{op:`add`,panel:e}],`Added a header widget`),onReset:B,onAsk:ie}),onAsk:e=>ie(`Tell me about "${e}" right now.`),search:(0,U.jsx)(nke,{list:C,act:le,say:m,open:L,onFleet:R,ask:ie})})}),(0,U.jsx)(Dp.Main,{style:{height:`100dvh`,display:`flex`},children:(0,U.jsxs)(tS,{orientation:`horizontal`,id:`driga-split`,defaultLayout:P.defaultLayout,onLayoutChanged:P.onLayoutChanged,style:{flex:1,minWidth:0},children:[(0,U.jsx)(sS,{id:`board`,minSize:360,style:{display:`flex`,flexDirection:`column`,minWidth:0},children:n===`fleet`?(0,U.jsx)(K,{px:`md`,pt:`sm`,pb:`md`,style:{flex:1,minHeight:0,display:`flex`,flexDirection:`column`},children:(0,U.jsx)(dge,{fragment:y,inbox:v,act:le})}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(q,{justify:`space-between`,wrap:`nowrap`,gap:`sm`,px:`md`,pt:`sm`,pb:8,children:[(0,U.jsxs)(K,{style:{minWidth:0},children:[(0,U.jsx)(D_,{order:1,fz:28,fw:650,lh:1.2,style:{letterSpacing:`-0.02em`},children:be?.name??`Loading…`}),w.failed&&w.at>0?(0,U.jsxs)(J,{size:`xs`,c:`warning`,truncate:!0,role:`status`,title:`Not updated since ${new Date(w.at).toLocaleTimeString([],{timeStyle:`medium`})}. Retrying; check driga service status.`,children:[`Not updated since `,new Date(w.at).toLocaleTimeString([],{timeStyle:`medium`}),`. Retrying; check `,(0,U.jsx)(J,{span:!0,size:`xs`,ff:`monospace`,children:`driga service status`}),`.`]}):w.failed?(0,U.jsxs)(J,{size:`xs`,c:`warning`,role:`status`,children:[`Driga can't reach its service. Retrying every `,J9/1e3,`s.`]}):be?.description&&(0,U.jsx)(J,{size:`xs`,c:`dimmed`,truncate:!0,title:be.description,children:be.description})]}),(0,U.jsxs)(q,{gap:`xs`,wrap:`nowrap`,children:[be?.variables?.map(e=>(0,U.jsx)(Kg,{size:`xs`,w:140,"aria-label":e.name,placeholder:`All ${e.name}s`,clearable:!0,data:g?.options?.[e.name]??[],value:i[e.name]||null,onChange:t=>a(n=>({...n,[e.name]:t??``}))},e.name)),C.length>1&&(0,U.jsx)(Kg,{size:`xs`,w:170,"aria-label":`Dashboard`,allowDeselect:!1,data:C.map(e=>({value:e.id,label:e.name})),value:e,onChange:e=>e&&L(e)}),T&&(0,U.jsx)(Om,{variant:`light`,color:`danger`,onClick:()=>void me(),children:e===`home`?`Reset Home`:`Delete dashboard`}),(0,U.jsx)(Om,{variant:T?`filled`:`default`,leftSection:(0,U.jsx)(Gte,{}),"aria-pressed":T,onClick:()=>E(e=>!e),children:T?`Done`:`Edit`})]})]}),T&&(0,U.jsx)(J,{size:`xs`,c:`dimmed`,px:`md`,pb:6,children:`Drag panels by their title, resize from the corner, or ask Chat to change any of it.`}),(0,U.jsx)(K,{px:`md`,pb:`md`,style:{flex:1,minHeight:0,display:`flex`,flexDirection:`column`},children:g?(0,U.jsx)(XOe,{fragment:g,editing:T,act:le,onLayout:e=>{g&&O(g.id,g.version??0,[{op:`layout`,grids:e}],`Moved panels`)},onRemove:e=>{g&&O(g.id,g.version??0,[{op:`remove`,id:e}],`Removed a panel`)}}):(0,U.jsx)(J,{size:`sm`,c:`dimmed`,children:`Loading…`})})]})}),(0,U.jsx)(fS,{className:`split-handle`,"aria-label":`Resize Chat`}),(0,U.jsx)(sS,{id:`chat`,inert:!u,"aria-hidden":!u,panelRef:j,defaultSize:400,minSize:300,maxSize:`65`,collapsible:!0,collapsedSize:0,onResize:e=>{e.inPixels>0?u||d(!0):u&&M.current?.close().then(e=>{e||requestAnimationFrame(()=>j.current?.expand())})},style:{background:`var(--driga-inset)`,borderLeft:`1px solid var(--driga-border)`,minWidth:0,visibility:u?`visible`:`hidden`},children:(0,U.jsx)(LTe,{ref:M,inbox:ye,act:le,ask:f,onOpen:L,onClose:()=>d(!1)})})]})})]})})}(0,Gee.createRoot)(document.getElementById(`root`)).render((0,U.jsx)(h.StrictMode,{children:(0,U.jsxs)(pne,{children:[(0,U.jsx)(rv,{position:`bottom-center`}),(0,U.jsx)(uke,{})]})})); \ No newline at end of file diff --git a/internal/web/app/index.html b/internal/web/app/index.html index 22f7485..39250a5 100644 --- a/internal/web/app/index.html +++ b/internal/web/app/index.html @@ -1,4 +1,4 @@ -Driga +Driga
diff --git a/ui/src/host/App.audit.test.tsx b/ui/src/host/App.audit.test.tsx new file mode 100644 index 0000000..c45d9e3 --- /dev/null +++ b/ui/src/host/App.audit.test.tsx @@ -0,0 +1,130 @@ +// @vitest-environment happy-dom +import { MantineProvider } from "@mantine/core"; +import { act, type ReactNode } from "react"; +import { createRoot, type Root } from "react-dom/client"; +import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; +import type { Fragment } from "../panels/types"; +import { PanelView } from "../panels/PanelView"; +import { useHost } from "../panels/host"; +import { App } from "./App"; + +const api = vi.hoisted(() => ({ open: vi.fn(), run: vi.fn(), list: vi.fn(), prompts: vi.fn(), bursts:vi.fn(), grantHistory:vi.fn(), edit: vi.fn(), history: vi.fn(), wait: vi.fn(), setMode: vi.fn() })); +vi.mock("./api", async importOriginal => ({ + ...await importOriginal(), + dashboards: { open: api.open, run: api.run, list: api.list, edit: api.edit }, + chat: { history: api.history, wait: api.wait, setMode: api.setMode, bursts:api.bursts, grantHistory:api.grantHistory, prompts: api.prompts }, action: vi.fn(), confirmedAction: vi.fn(), confirm: vi.fn(), +})); +vi.mock("./ClustersHeader", () => ({ ClustersHeader: ({ onToggleChat, search, data }: { onToggleChat: () => void; search: ReactNode; data: { checkedAt: string } | null }) => <>{data?.checkedAt}{search} })); +vi.mock("./Search", () => ({ Search: ({ open }: { open: (id: string) => void }) => <> })); +vi.mock("./Dashboard", () => ({ Dashboard: ({ fragment, onRemove }: { fragment: Fragment; onRemove: (id: string) => void }) => <>{useHost().inboxFilter}
{fragment.id}
{fragment.results[0]?.message} })); +vi.mock("../fleet/FleetPage", () => ({ FleetPage: () =>
Fleet
})); +vi.mock("react-resizable-panels", async () => { + const { useRef } = await import("react"); + const Box = ({ children, id, inert }: { children: ReactNode; id?: string; inert?: boolean }) =>
{children}
; + return { Group: Box, Panel: Box, Separator: () =>
, useDefaultLayout: () => ({}), usePanelRef: () => useRef({ isCollapsed: () => false, collapse: vi.fn(), expand: vi.fn() }) }; +}); + +const fragment = (id: string): Fragment => ({ id, version: 1, dashboard: { name: id, panels: [] }, results: [], observed_at: "2026-03-14T15:00:00Z", history: { attention: [], polls: [] } }); +function deferred() { + let resolve!: (value: T) => void; + let reject!: (error: Error) => void; + const promise = new Promise((yes, no) => { resolve = yes; reject = no; }); + return { promise, resolve, reject }; +} +let root: Root; +let container: HTMLDivElement; +const click = async (label: string) => { + const button = [...container.querySelectorAll("button")].find(b => b.textContent === label)!; + await act(async () => { button.click(); }); +}; +const key = async (value: string) => { await act(async () => { document.dispatchEvent(new KeyboardEvent("keydown", { key: value, bubbles: true })); }); }; +async function mount() { await act(async () => { root.render(); }); } + +beforeEach(() => { + vi.clearAllMocks(); + (globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true; + history.replaceState(null, "", "/app/"); + localStorage.clear(); + api.open.mockImplementation((id: string) => Promise.resolve(fragment(id))); + api.run.mockResolvedValue(fragment("run")); + api.list.mockResolvedValue([]); + api.history.mockResolvedValue([]); + api.wait.mockImplementation(() => new Promise(() => {})); + api.setMode.mockResolvedValue({}); + HTMLElement.prototype.scrollTo = vi.fn(); + Object.defineProperty(document, "fonts", { configurable: true, value: new EventTarget() }); + api.prompts.mockResolvedValue([]); api.bursts.mockResolvedValue([]); api.grantHistory.mockResolvedValue([]); + container = document.createElement("div"); + document.body.append(container); + root = createRoot(container); +}); +afterEach(async () => { await act(async () => root.unmount()); container.remove(); }); + +it("native Back returns from Fleet to the previous dashboard", async () => { + await mount(); + await click("Other dashboard"); + await key("g"); await key("f"); + expect(container.querySelector('[data-testid="fleet"]')).not.toBeNull(); + await act(async () => { + (window as unknown as { drigaCommand: (name: string) => void }).drigaCommand("back"); + await new Promise(resolve => setTimeout(resolve, 20)); + }); + expect(container.querySelector('[data-testid="dashboard"]')?.textContent).toBe("other"); +}); + +it("closing full-auto Chat with the header returns to Confirm", async () => { + api.history.mockResolvedValue([{id: "conversation"}]); + api.wait.mockResolvedValueOnce({conversation: {id: "conversation", agent: "claude"}, messages: [], actions: [], events: [], cursor: 0, reset: true, active: false, mode: "full auto", until: "2099-01-01T00:00:00Z"}); + await mount(); + expect(container.textContent).toContain("Mode: Full auto"); + await click("Toggle Chat"); + expect(api.setMode).toHaveBeenCalledWith("conversation", "confirm"); +}); + +it.each(["history", "state"])("cannot hide Chat while its %s is unresolved", async pending => { + if (pending === "history") api.history.mockImplementation(() => new Promise(() => {})); + else api.history.mockResolvedValue([{ id: "conversation" }]); + await mount(); + await click("Toggle Chat"); + expect(container.querySelector("#chat")?.hasAttribute("inert")).toBe(false); +}); + +it("cannot hide Chat while Full auto is being enabled", async () => { + api.history.mockResolvedValue([{ id: "conversation" }]); + api.wait.mockResolvedValueOnce({ conversation: { id: "conversation", agent: "claude" }, messages: [], actions: [], events: [], cursor: 0, reset: true, active: false, mode: "confirm" }); + const enabling = deferred(); + api.setMode.mockReturnValue(enabling.promise); + await mount(); + await click("Full auto"); + await act(async () => { [...document.querySelectorAll("button")].find(button => button.textContent === "Enable Full auto")!.click(); }); + expect(api.setMode).toHaveBeenCalledWith("conversation", "full auto"); + await click("Toggle Chat"); + expect(container.querySelector("#chat")?.hasAttribute("inert")).toBe(false); + await act(async () => enabling.resolve()); + await click("Toggle Chat"); + expect(api.setMode).toHaveBeenLastCalledWith("conversation", "confirm"); + expect(container.querySelector("#chat")?.hasAttribute("inert")).toBe(true); +}); + +it("keeps a saved dashboard selected during a transient refresh failure", async () => { + await mount(); + await click("Other dashboard"); + expect(container.querySelector('[data-testid="dashboard"]')?.textContent).toBe("other"); + api.open.mockImplementation((id: string) => id === "other" ? Promise.reject(new Error("temporary service failure")) : Promise.resolve(fragment(id))); + await act(async () => { (window as unknown as { drigaCommand: (name: string) => void }).drigaCommand("reload"); }); + expect(container.querySelector('[data-testid="dashboard"]')?.textContent).toBe("other"); + expect(location.search).toBe("?dashboard=other"); +}); + +it("Back passes a deleted dashboard without recreating its history entry", async () => { + history.replaceState(null, "", "/app/?dashboard=previous"); + await mount(); + await click("Other dashboard"); + await click("Home dashboard"); + const { APIError } = await import("./api"); + api.open.mockImplementation((id: string) => id === "other" ? Promise.reject(new APIError("missing", 404)) : Promise.resolve(fragment(id))); + await act(async () => { history.back(); await new Promise(resolve => setTimeout(resolve, 40)); }); + expect(container.querySelector('[data-testid="dashboard"]')?.textContent).toBe("home"); + await act(async () => { history.back(); await new Promise(resolve => setTimeout(resolve, 40)); }); + expect(container.querySelector('[data-testid="dashboard"]')?.textContent).toBe("previous"); +}); diff --git a/ui/src/host/App.stories.tsx b/ui/src/host/App.stories.tsx index 26f71bd..98e650f 100644 --- a/ui/src/host/App.stories.tsx +++ b/ui/src/host/App.stories.tsx @@ -176,3 +176,138 @@ export const NotificationSession: Story = { await waitFor(() => expect(notificationRequest).toHaveBeenCalledWith("/app/action", { action: "jump", session_id: 11, machine: "studio-id" })); }, }; + + +export const BackAndForward: Story = { + play: async ({ canvas }) => { + await expect(await canvas.findByRole("heading", { name: "Home", level: 1 })).toBeVisible(); + await userEvent.click(canvas.getByRole("button", { name: /^Fleet: 3 machines/ })); + await expect(await canvas.findByRole("heading", { name: "Fleet", level: 1 })).toBeVisible(); + desktopCommand("back", undefined); + await expect(await canvas.findByRole("heading", { name: "Home", level: 1 })).toBeVisible(); + desktopCommand("forward", undefined); + await expect(await canvas.findByRole("heading", { name: "Fleet", level: 1 })).toBeVisible(); + }, +}; + +const closeRequests = fn(); +const fullAutoChat = { ...answered, mode: "full auto" as const, until: "2099-01-01T00:00:00Z" }; +export const HeaderClosesFullAuto: Story = { + parameters: { makeService: () => fakeService({ chat: fullAutoChat, onRequest: closeRequests }) }, + play: async ({ canvas }) => { + await waitFor(() => expect(canvas.getByLabelText("Current trust mode")).toHaveTextContent("Full auto")); + await userEvent.click(canvas.getByRole("button", { name: "Chat" })); + await waitFor(() => expect(closeRequests).toHaveBeenCalledWith("/chat/api/mode", { id: fullAutoChat.conversation.id, mode: "confirm" })); + await expect(canvas.getByRole("button", { name: "Chat" })).toHaveAttribute("aria-pressed", "false"); + }, +}; +export const FailedHeaderCloseStaysOpen: Story = { + parameters: { makeService: () => { + const service = fakeService({ chat: fullAutoChat }); + return (input: RequestInfo | URL, init?: RequestInit) => String(input).includes("/chat/api/mode") ? Promise.resolve(new Response("Could not change mode", { status: 503 })) : service(input, init); + } }, + play: async ({ canvas }) => { + await waitFor(() => expect(canvas.getByLabelText("Current trust mode")).toHaveTextContent("Full auto")); + await userEvent.click(canvas.getByRole("button", { name: "Chat" })); + await expect(await canvas.findByText("Could not change mode")).toBeVisible(); + await expect(canvas.getByRole("button", { name: "Chat" })).toHaveAttribute("aria-pressed", "true"); + }, +}; + + +export const SavedDashboardUnavailable: Story = { + parameters: { makeService: () => { + const service = fakeService({ open: { saved: { ...fragments.home, dashboard: { ...fragments.home.dashboard, name: "Saved board" } } } }); + let reads = 0; + return (input: RequestInfo | URL, init?: RequestInit) => { + const body = init?.body ? JSON.parse(String(init.body)) : {}; + if (String(input).includes("/app/api/open") && body.id === "saved" && ++reads > 1) return Promise.resolve(new Response("Temporary failure", { status: 503 })); + return service(input, init); + }; + } }, + beforeEach: () => { history.replaceState(null, "", "/app/?dashboard=saved"); }, + play: async ({ canvas }) => { + await expect(await canvas.findByRole("heading", { name: "Saved board", level: 1 })).toBeVisible(); + desktopCommand("reload", undefined); + await expect(await canvas.findByText(/Not updated since/)).toBeVisible(); + await expect(canvas.getByRole("heading", { name: "Saved board", level: 1 })).toBeVisible(); + }, +}; +export const MissingDashboardReturnsHome: Story = { + beforeEach: () => { history.replaceState(null, "", "/app/?dashboard=missing"); }, + play: async ({ canvas }) => { await expect(await canvas.findByRole("heading", { name: "Home", level: 1 })).toBeVisible(); }, +}; + + +export const KeyboardCollapseClosesFullAuto: Story = { + parameters: { makeService: () => fakeService({ chat: fullAutoChat, onRequest: closeRequests }) }, + play: async ({ canvas }) => { + await waitFor(() => expect(canvas.getByLabelText("Current trust mode")).toHaveTextContent("Full auto")); + const separator = canvas.getByRole("separator", { name: "Resize Chat" }); + separator.focus(); + await userEvent.keyboard("{End}"); + await waitFor(() => expect(closeRequests).toHaveBeenCalledWith("/chat/api/mode", { id: fullAutoChat.conversation.id, mode: "confirm" })); + await waitFor(() => expect(canvas.getByRole("button", { name: "Chat" })).toHaveAttribute("aria-pressed", "false")); + }, +}; +export const FailedKeyboardCollapseStaysOpen: Story = { + parameters: FailedHeaderCloseStaysOpen.parameters, + play: async ({ canvas }) => { + await waitFor(() => expect(canvas.getByLabelText("Current trust mode")).toHaveTextContent("Full auto")); + canvas.getByRole("separator", { name: "Resize Chat" }).focus(); + await userEvent.keyboard("{End}"); + await expect(await canvas.findByText("Could not change mode")).toBeVisible(); + await expect(canvas.getByRole("button", { name: "Chat" })).toHaveAttribute("aria-pressed", "true"); + await expect(canvas.getByLabelText("Current trust mode")).toBeVisible(); + }, +}; + +export const CloseWhileHistoryLoads: Story = { + parameters: { makeService: () => { + const service = fakeService({ chat: fullAutoChat }); + return (input: RequestInfo | URL, init?: RequestInit) => String(input).includes("/chat/api/history") ? new Promise(() => undefined) : service(input, init); + } }, + play: async ({ canvas }) => { + await expect(await canvas.findByRole("heading", { name: "Home", level: 1 })).toBeVisible(); + await userEvent.click(canvas.getByRole("button", { name: "Chat" })); + await expect(canvas.getByRole("button", { name: "Chat" })).toHaveAttribute("aria-pressed", "true"); + }, +}; +export const CloseWhileEnablingFullAuto: Story = { + parameters: { makeService: () => { + const service = fakeService({ chat: answered }); + return (input: RequestInfo | URL, init?: RequestInit) => String(input).includes("/chat/api/mode") ? new Promise(() => undefined) : service(input, init); + } }, + play: async ({ canvas }) => { + await waitFor(() => expect(canvas.getByLabelText("Current trust mode")).toHaveTextContent("Confirm")); + await userEvent.click(canvas.getByRole("button", { name: "Full auto" })); + const dialog = await screen.findByRole("dialog", { name: "Enable Full auto?" }); + await userEvent.click(within(dialog).getByRole("button", { name: "Enable Full auto" })); + await userEvent.click(canvas.getByRole("button", { name: "Chat" })); + await expect(canvas.getByRole("button", { name: "Chat" })).toHaveAttribute("aria-pressed", "true"); + }, +}; + +export const BackPastDeletedDashboard: Story = { + beforeEach: () => { history.replaceState(null, "", "/app/?dashboard=previous"); }, + parameters: { makeService: () => { + const service = fakeService({ open: { previous: { ...fragments.home, dashboard: { ...fragments.home.dashboard, name: "Previous board" } } } }); + return (input: RequestInfo | URL, init?: RequestInit) => { + const body = init?.body ? JSON.parse(String(init.body)) : {}; + if (String(input).includes("/app/api/open") && body.id === "deleted") return Promise.resolve(new Response("Dashboard missing", { status: 404 })); + return service(input, init); + }; + } }, + play: async ({ canvas }) => { + await expect(await canvas.findByRole("heading", { name: "Previous board", level: 1 })).toBeVisible(); + // The middle entry was saved before its dashboard was deleted elsewhere. + history.pushState(null, "", "/app/?dashboard=deleted"); + history.pushState(null, "", "/app/"); + window.dispatchEvent(new PopStateEvent("popstate")); + await expect(await canvas.findByRole("heading", { name: "Home", level: 1 })).toBeVisible(); + desktopCommand("back", undefined); + await waitFor(() => expect(location.search).toBe("")); + desktopCommand("back", undefined); + await expect(await canvas.findByRole("heading", { name: "Previous board", level: 1 })).toBeVisible(); + }, +}; diff --git a/ui/src/host/App.test.tsx b/ui/src/host/App.test.tsx index 6ec145d..85b2232 100644 --- a/ui/src/host/App.test.tsx +++ b/ui/src/host/App.test.tsx @@ -9,7 +9,8 @@ import { useHost } from "../panels/host"; import { App } from "./App"; const api = vi.hoisted(() => ({ open: vi.fn(), run: vi.fn(), list: vi.fn(), prompts: vi.fn(), bursts:vi.fn(), grantHistory:vi.fn(), edit: vi.fn() })); -vi.mock("./api", () => ({ +vi.mock("./api", async importOriginal => ({ + ...await importOriginal(), dashboards: { open: api.open, run: api.run, list: api.list, edit: api.edit }, chat: { bursts:api.bursts, grantHistory:api.grantHistory, prompts: api.prompts }, action: vi.fn(), confirmedAction: vi.fn(), confirm: vi.fn(), })); diff --git a/ui/src/host/App.tsx b/ui/src/host/App.tsx index 20b4721..3d5b830 100644 --- a/ui/src/host/App.tsx +++ b/ui/src/host/App.tsx @@ -15,7 +15,7 @@ import { rows, type Dashboard as DashboardSpec, type Panel, type Prompt } from " import "../panels/panels.css"; import "./host.css"; import { action, confirmedAction, chat, confirm, dashboards, type Operation } from "./api"; -import { Chat } from "./Chat"; +import { Chat, type ChatHandle } from "./Chat"; import { ClustersHeader } from "./ClustersHeader"; import { Dashboard } from "./Dashboard"; import { attentionKinds, headerOf, type AttentionKind, type HeaderTarget } from "./Header"; @@ -70,11 +70,17 @@ export function App() { const [chatOpen, setChatOpen] = useState(() => remembered("driga-chat-open") !== "false"); const [ask, setAsk] = useState<{ text: string; at: number } | null>(null); const say = (message: string) => notifications.show({ message, autoClose: 4000, closeButtonProps: { "aria-label": "Dismiss" } }); - const { fragment, header, inbox, fleet, prompts, bursts, grantHistory, list, fresh, editing, setEditing, refresh: load, edit, mutateHeader, forgetPrompt } = useDashboardRefresh({ id, vars, onError: say, onMissing: () => setId(homeID) }); + const { fragment, header, inbox, fleet, prompts, bursts, grantHistory, list, fresh, editing, setEditing, refresh: load, edit, mutateHeader, forgetPrompt } = useDashboardRefresh({ id, vars, onError: say, onMissing: () => { + // Replace a dead dashboard entry so Back can continue past it. + if (page === "board") history.replaceState(null, "", "/app/"); + setId(homeID); + } }); useEffect(() => { remember("driga-chat-open", String(chatOpen)); }, [chatOpen]); // Chat and the board share the window; dragging the line between them // sets Chat's width, which is remembered. Hiding Chat collapses its pane. const chatPane = usePanelRef(); + const chatControl = useRef(null); + const closeChat = () => { void chatControl.current?.close(); }; const split = useDefaultLayout({ id: "driga-split", panelIds: ["board", "chat"], onlySaveAfterUserInteractions: true }); useEffect(() => { const pane = chatPane.current; @@ -82,7 +88,15 @@ export function App() { if (chatOpen && pane.isCollapsed()) pane.expand(); if (!chatOpen && !pane.isCollapsed()) pane.collapse(); }, [chatOpen, chatPane]); - useEffect(() => { history.replaceState(null, "", page === "fleet" ? "/app/?page=fleet" : id === homeID ? "/app/" : `/app/?dashboard=${encodeURIComponent(id)}`); }, [id, page]); + useEffect(() => { + const restore = () => { setEditing(false); setVars({}); setId(initial()); setPage(initialPage()); }; + window.addEventListener("popstate", restore); + return () => window.removeEventListener("popstate", restore); + }, [setEditing]); + useEffect(() => { + const url = page === "fleet" ? "/app/?page=fleet" : id === homeID ? "/app/" : `/app/?dashboard=${encodeURIComponent(id)}`; + if (location.pathname + location.search !== url) history.pushState(null, "", url); + }, [id, page]); // The header reads the server's reconciled counts, the fleet and history. const fleetData = useMemo(() => fleet ? fleetOf(fleet, inbox) : null, [fleet, inbox]); @@ -254,7 +268,7 @@ export function App() { return - setChatOpen(o => !o)} + chatOpen ? closeChat() : setChatOpen(true)} onShow={panel => void showOnHome(panel)} busy={headerBusy} onRemove={pid => editHeader([{ op: "remove", id: pid }], "Removed a header widget")} onMove={(pid, before) => editHeader([{ op: "move", id: pid, ...(before ? { before } : {}) }], "Reordered header widgets")} editor={header && editHeader([{ op: "add", panel }], "Added a header widget")} onReset={resetHeader} onAsk={askChat} />} @@ -294,11 +308,20 @@ export function App() { } - { const shown = size.inPixels > 0; if (shown !== chatOpen) setChatOpen(shown); }} - style={{ background: "var(--driga-inset)", borderLeft: "1px solid var(--driga-border)", minWidth: 0 }}> + { + if (size.inPixels > 0) { if (!chatOpen) setChatOpen(true); } + else if (chatOpen) { + // A failed reset must reveal Chat and its error again. Expanding + // inside ResizeObserver would start another resize while it drains. + void chatControl.current?.close().then(closed => { + if (!closed) requestAnimationFrame(() => chatPane.current?.expand()); + }); + } + }} + style={{ background: "var(--driga-inset)", borderLeft: "1px solid var(--driga-border)", minWidth: 0, visibility: chatOpen ? "visible" : "hidden" }}> {/* Chat stays mounted while collapsed, so a draft and the conversation survive. */} - setChatOpen(false)} /> + setChatOpen(false)} /> diff --git a/ui/src/host/Chat.tsx b/ui/src/host/Chat.tsx index ba208a7..19e97a1 100644 --- a/ui/src/host/Chat.tsx +++ b/ui/src/host/Chat.tsx @@ -1,6 +1,6 @@ import { Accordion, ActionIcon, Box, Button, Group, Modal, Paper, ScrollArea, Stack, Text, Textarea, Title } from "@mantine/core"; import { Check, Sparkle, X } from "@phosphor-icons/react"; -import { useEffect, useRef, useState } from "react"; +import { useEffect, useImperativeHandle, type Ref, useRef, useState } from "react"; import { bytes } from "../panels/format"; import { useHost } from "../panels/host"; import { PanelView, type Act } from "../panels/PanelView"; @@ -110,7 +110,10 @@ export function answerLast(messages: ChatMessage[]): ChatMessage[] { const assistantNames: Record = { claude: "Claude Code", codex: "Codex", copilot: "GitHub Copilot CLI" }; -export function Chat({ inbox, act, ask, onOpen, onClose }: { +export type ChatHandle = { close: () => Promise }; + +export function Chat({ inbox, act, ask, onOpen, onClose, ref }: { + ref?: Ref; inbox?: { panel: Panel; result?: Result; listed: boolean }; act?: Act; /** ask puts a question in the compose box for the user to send. */ ask: { text: string; at: number } | null; @@ -209,10 +212,24 @@ export function Chat({ inbox, act, ask, onOpen, onClose }: { catch (e) { setProblem((e as Error).message); return false; } finally { changingMode.current = false; setModeBusy(false); } }; + const closing = useRef(false); const close = async () => { - if (mode === "full auto" && !await setTrustMode("confirm")) return; - onClose?.(); + if (closing.current || changingMode.current) return false; + if ((id && !mode) || (!id && historyStatus !== "empty")) { + setProblem("Chat's trust mode is not available yet. Wait for it to load before closing."); + return false; + } + closing.current = true; + try { + // The server may have changed since the last poll. A known conversation + // must acknowledge Confirm before it can disappear, even if the last + // poll already reported Confirm. + if (id && !await setTrustMode("confirm")) return false; + onClose?.(); + return true; + } finally { closing.current = false; } }; + useImperativeHandle(ref, () => ({ close })); const modeLabels: Record = { confirm: "Confirm", auto: "Auto", "full auto": "Full auto" }; let modeLabel = mode ? `Mode: ${modeLabels[mode]}` : !id && historyStatus === "empty" ? "Mode: Confirm" : !id && historyStatus === "unavailable" ? "Mode unavailable" : "Loading mode…"; if (mode === "full auto" && until) modeLabel += ` · ${Math.max(0, Math.ceil((Date.parse(until) - now) / 60_000))}m left`; diff --git a/ui/src/host/Search.audit.test.tsx b/ui/src/host/Search.audit.test.tsx new file mode 100644 index 0000000..bc0a639 --- /dev/null +++ b/ui/src/host/Search.audit.test.tsx @@ -0,0 +1,49 @@ +// @vitest-environment happy-dom +import { MantineProvider } from "@mantine/core"; +import type { SpotlightActionData, SpotlightActionGroupData } from "@mantine/spotlight"; +import { act } from "react"; +import { createRoot } from "react-dom/client"; +import { expect, test, vi } from "vitest"; +import type { Fragment } from "../panels/types"; +import { Search } from "./Search"; + +const api = vi.hoisted(() => ({ run: vi.fn() })); +vi.mock("./api", () => ({ dashboards: api })); +vi.mock("@mantine/spotlight", async importOriginal => { + const actual = await importOriginal(); + const { useEffect } = await import("react"); + return { ...actual, spotlight: { open: vi.fn() }, Spotlight: ({ actions, onSpotlightOpen }: { actions: (SpotlightActionData | SpotlightActionGroupData)[]; onSpotlightOpen: () => void }) => { + useEffect(() => { onSpotlightOpen(); }, []); + const list = actions.flatMap(a => actual.isActionsGroup(a) ? a.actions : [a]); + return
{list.map(a => )}
; + } }; +}); + +test("copying a resume command remains safe when clipboard access is unavailable", async () => { + (globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true; + const fragment: Fragment = { + dashboard: { name: "Search", panels: [] }, observed_at: "2026-03-14T15:00:00Z", history: { attention: [], polls: [] }, + results: [{ id: "ended", status: "ok", frame: { columns: ["id", "title", "resume"].map(name => ({ name, type: "string" })), rows: [["2", "Resume this session", "cd /repo && codex resume recorded-session"]] } }], + }; + api.run.mockResolvedValue(fragment); + const original = Object.getOwnPropertyDescriptor(navigator, "clipboard"); + Object.defineProperty(navigator, "clipboard", { configurable: true, value: undefined }); + const say = vi.fn(); + const errors: unknown[] = []; + const onError = (event: ErrorEvent) => { errors.push(event.error); event.preventDefault(); }; + window.addEventListener("error", onError); + const container = document.createElement("div"); document.body.append(container); + const root = createRoot(container); + try { + await act(async () => { root.render( {}} ask={() => {}} open={() => {}} say={say} />); }); + const button = [...container.querySelectorAll("button")].find(b => b.textContent === "Resume this session"); + expect(button).toBeDefined(); + await act(async () => { button!.click(); }); + expect(errors).toEqual([]); + expect(say).toHaveBeenCalledWith(expect.stringContaining("cd /repo && codex resume recorded-session")); + } finally { + await act(async () => root.unmount()); container.remove(); + window.removeEventListener("error", onError); + if (original) Object.defineProperty(navigator, "clipboard", original); else Reflect.deleteProperty(navigator, "clipboard"); + } +}); diff --git a/ui/src/host/Search.stories.tsx b/ui/src/host/Search.stories.tsx index 3b24028..1b70cfc 100644 --- a/ui/src/host/Search.stories.tsx +++ b/ui/src/host/Search.stories.tsx @@ -79,3 +79,13 @@ export const ServiceUnreachable: Story = { await expect(await within(dialog).findByText(/can't reach its service/)).toBeVisible(); }, }; + + +export const ClipboardRejected: Story = { + beforeEach: () => { spyOn(navigator.clipboard, "writeText").mockRejectedValue(new Error("Clipboard unavailable")); }, + play: async ({ canvas, args }) => { + const dialog = await search(canvas); + await userEvent.click(await within(dialog).findByRole("button", { name: /Split the payments service/ })); + await waitFor(() => expect(args.say).toHaveBeenCalledWith("Couldn't copy. Resume with: cd '/home/dev/src/harbor' && codex resume 'd4e5f6'")); + }, +}; diff --git a/ui/src/host/Search.tsx b/ui/src/host/Search.tsx index 79ef0eb..13215b8 100644 --- a/ui/src/host/Search.tsx +++ b/ui/src/host/Search.tsx @@ -76,7 +76,10 @@ export function Search({ list, act, ask, open, onFleet, say }: { list: Summary[] const resume = (r: Row) => { const title = String(r.title || `Session ${r.id}`); if (typeof r.resume !== "string" || !r.resume) { ask(`Tell me about session ${r.id}, "${title}": what it did and what it left uncommitted.`); return; } - navigator.clipboard?.writeText(r.resume).then(() => say(`Copied the command that resumes ${title}. Paste it in a terminal.`), () => say(`Couldn't copy. Resume with: ${r.resume}`)); + const fallback = () => say(`Couldn't copy. Resume with: ${r.resume}`); + if (!navigator.clipboard?.writeText) { fallback(); return; } + try { void navigator.clipboard.writeText(r.resume).then(() => say(`Copied the command that resumes ${title}. Paste it in a terminal.`), fallback); } + catch { fallback(); } }; const boards: SpotlightActionGroupData = { group: "Dashboards", actions: list.map(d => ({ id: `dashboard-${d.id}`, label: d.name, leftSection: , onClick: () => open(d.id) })) }; const pages: SpotlightActionGroupData = { group: "Pages", actions: onFleet ? [{ id: "page-fleet", label: "Fleet", description: "Every machine, project and session, and where the memory goes", keywords: ["machines", "sessions"], leftSection: , onClick: onFleet }] : [] }; diff --git a/ui/src/host/useDashboardRefresh.test.tsx b/ui/src/host/useDashboardRefresh.test.tsx index 448100a..b2f6be6 100644 --- a/ui/src/host/useDashboardRefresh.test.tsx +++ b/ui/src/host/useDashboardRefresh.test.tsx @@ -6,7 +6,8 @@ import type { Fragment, Prompt } from "../panels/types"; import { useDashboardRefresh } from "./useDashboardRefresh"; const api = vi.hoisted(() => ({ open: vi.fn(), run: vi.fn(), list: vi.fn(), prompts: vi.fn(), bursts:vi.fn(), grantHistory: vi.fn().mockResolvedValue([]), edit: vi.fn() })); -vi.mock("./api", () => ({ dashboards: api, chat: { prompts: api.prompts, grantHistory: api.grantHistory, bursts: api.bursts } })); +vi.mock("./api", async importOriginal => ({ + ...await importOriginal(), dashboards: api, chat: { prompts: api.prompts, grantHistory: api.grantHistory, bursts: api.bursts } })); const fragment = (id: string, version = 1): Fragment => ({ id, version, dashboard: { name: id, panels: [] }, results: [], history: { attention: [], polls: [] }, observed_at: "2026-03-14T15:00:00Z" }); const deferred = () => { let resolve!: (value: T) => void; diff --git a/ui/src/host/useDashboardRefresh.ts b/ui/src/host/useDashboardRefresh.ts index 845eb13..11a357c 100644 --- a/ui/src/host/useDashboardRefresh.ts +++ b/ui/src/host/useDashboardRefresh.ts @@ -1,7 +1,7 @@ import { useCallback, useEffect, useRef, useState } from "react"; import { fleetSpec } from "../fleet/FleetSpec"; import type { Dashboard, Fragment, Prompt, PromptBurst } from "../panels/types"; -import { chat, dashboards, type Operation, type Summary, type GrantDecision } from "./api"; +import { APIError, chat, dashboards, type Operation, type Summary, type GrantDecision } from "./api"; export const refreshMs = 5000; export const headerID = "header"; @@ -57,7 +57,7 @@ export function useDashboardRefresh({ id, vars, onError, onMissing }: Scope & { if (!current()) return; setSelected(s => ({ id, navigation: scope.navigation, fragment: s.navigation === scope.navigation ? s.fragment : null, fresh: { at: s.navigation === scope.navigation ? s.fresh.at : 0, failed: true } })); callbacks.current.onError((e as Error).message); - if (id !== homeID) callbacks.current.onMissing(); + if (id !== homeID && e instanceof APIError && e.status === 404) callbacks.current.onMissing(); } }; try {