actshield 0.9.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- actshield/__init__.py +439 -0
- actshield/__main__.py +46 -0
- actshield/agents/__init__.py +12 -0
- actshield/agents/agent.py +200 -0
- actshield/agents/identity.py +114 -0
- actshield/api/__init__.py +34 -0
- actshield/api/models.py +198 -0
- actshield/api/server.py +669 -0
- actshield/api/service.py +599 -0
- actshield/approval/__init__.py +15 -0
- actshield/approval/approval.py +164 -0
- actshield/cli/__init__.py +8 -0
- actshield/cli/graph.py +49 -0
- actshield/cli/main.py +802 -0
- actshield/cli/shell.py +406 -0
- actshield/cli/theme.py +110 -0
- actshield/client.py +757 -0
- actshield/config.py +88 -0
- actshield/context/__init__.py +14 -0
- actshield/context/context.py +161 -0
- actshield/context/provenance.py +108 -0
- actshield/context/taint.py +48 -0
- actshield/decisions/decision.py +74 -0
- actshield/delegation/__init__.py +11 -0
- actshield/delegation/authority.py +63 -0
- actshield/delegation/delegation.py +180 -0
- actshield/demo.py +139 -0
- actshield/doctor.py +94 -0
- actshield/drift/__init__.py +27 -0
- actshield/drift/drift_engine.py +149 -0
- actshield/drift/drift_models.py +63 -0
- actshield/evaluation/__init__.py +1 -0
- actshield/evaluation/cases/__init__.py +1 -0
- actshield/evaluation/eval_suite.py +254 -0
- actshield/forensics/__init__.py +53 -0
- actshield/forensics/access_graph.py +216 -0
- actshield/forensics/authority_graph.py +186 -0
- actshield/forensics/delegation_graph.py +119 -0
- actshield/forensics/explanation.py +254 -0
- actshield/forensics/models.py +488 -0
- actshield/forensics/queries.py +367 -0
- actshield/forensics/serializers.py +68 -0
- actshield/forensics/service.py +310 -0
- actshield/forensics/snapshots.py +174 -0
- actshield/gates/__init__.py +13 -0
- actshield/gates/gate_models.py +46 -0
- actshield/gates/security_gate.py +191 -0
- actshield/gateway/__init__.py +13 -0
- actshield/gateway/http.py +191 -0
- actshield/gateway/mcp.py +292 -0
- actshield/incidents/__init__.py +25 -0
- actshield/incidents/incident.py +94 -0
- actshield/incidents/incident_engine.py +163 -0
- actshield/incidents/incident_rules.py +116 -0
- actshield/incidents/incident_state.py +58 -0
- actshield/integrations/__init__.py +24 -0
- actshield/integrations/ai_secura.py +169 -0
- actshield/integrations/ai_secura_analysis.py +236 -0
- actshield/integrations/apiris.py +122 -0
- actshield/integrations/few_shot.py +104 -0
- actshield/integrations/ollama_adapter.py +538 -0
- actshield/integrations/prompts/__init__.py +1 -0
- actshield/integrations/prompts/examples/__init__.py +1 -0
- actshield/integrations/security_packet.py +82 -0
- actshield/llm_config.py +89 -0
- actshield/offensive/__init__.py +95 -0
- actshield/offensive/adaptive/__init__.py +22 -0
- actshield/offensive/adaptive/adaptive_engine.py +165 -0
- actshield/offensive/adaptive/attack_selector.py +51 -0
- actshield/offensive/adaptive/boundary_search.py +99 -0
- actshield/offensive/adaptive/campaign_memory.py +123 -0
- actshield/offensive/adaptive/feedback.py +84 -0
- actshield/offensive/adaptive/mutation_planner.py +57 -0
- actshield/offensive/attack.py +78 -0
- actshield/offensive/campaign.py +219 -0
- actshield/offensive/corpus.py +155 -0
- actshield/offensive/engine.py +466 -0
- actshield/offensive/evaluator.py +116 -0
- actshield/offensive/evidence.py +63 -0
- actshield/offensive/generator.py +128 -0
- actshield/offensive/mutation.py +101 -0
- actshield/offensive/results.py +77 -0
- actshield/offensive/safety.py +80 -0
- actshield/offensive/strategies/__init__.py +22 -0
- actshield/offensive/strategies/authority_escalation.py +100 -0
- actshield/offensive/strategies/base.py +34 -0
- actshield/offensive/strategies/context_manipulation.py +100 -0
- actshield/offensive/strategies/data_exfiltration.py +100 -0
- actshield/offensive/strategies/delegation_attacks.py +100 -0
- actshield/offensive/strategies/mcp_attacks.py +100 -0
- actshield/offensive/strategies/prompt_injection.py +100 -0
- actshield/offensive/strategies/tool_poisoning.py +100 -0
- actshield/offensive/target.py +113 -0
- actshield/offensive/vulnerable_target.py +121 -0
- actshield/persistence/__init__.py +18 -0
- actshield/persistence/siem.py +102 -0
- actshield/persistence/storage.py +240 -0
- actshield/policy/__init__.py +12 -0
- actshield/policy/evaluator.py +294 -0
- actshield/policy/intent.py +113 -0
- actshield/policy/policy.py +48 -0
- actshield/posture/__init__.py +26 -0
- actshield/posture/posture_engine.py +186 -0
- actshield/posture/posture_models.py +152 -0
- actshield/posture/posture_rules.py +137 -0
- actshield/providers/__init__.py +32 -0
- actshield/providers/anthropic_provider.py +146 -0
- actshield/providers/base.py +160 -0
- actshield/providers/gemini_provider.py +133 -0
- actshield/providers/null_provider.py +40 -0
- actshield/providers/ollama_provider.py +135 -0
- actshield/providers/openai_provider.py +142 -0
- actshield/providers/registry.py +244 -0
- actshield/py.typed +0 -0
- actshield/response/__init__.py +14 -0
- actshield/response/response_actions.py +39 -0
- actshield/response/response_audit.py +32 -0
- actshield/response/response_engine.py +139 -0
- actshield/risk/models.py +104 -0
- actshield/serve.py +117 -0
- actshield/static/404.html +1 -0
- actshield/static/__next.__PAGE__.txt +24 -0
- actshield/static/__next._full.txt +20 -0
- actshield/static/__next._tree.txt +4 -0
- actshield/static/_next/static/Yp_swxN-C9UoCRNOwkYnY/_buildManifest.js +11 -0
- actshield/static/_next/static/Yp_swxN-C9UoCRNOwkYnY/_clientMiddlewareManifest.js +1 -0
- actshield/static/_next/static/Yp_swxN-C9UoCRNOwkYnY/_ssgManifest.js +1 -0
- actshield/static/_next/static/chunks/09kny2eqjc2or.js +1 -0
- actshield/static/_next/static/chunks/0c1zba1u9whdp.js +1 -0
- actshield/static/_next/static/chunks/0cz1d0mv5g_q7.js +1 -0
- actshield/static/_next/static/chunks/0dbjjeg01x25o.js +1 -0
- actshield/static/_next/static/chunks/0duobs55ne238.js +1 -0
- actshield/static/_next/static/chunks/0iaz41l6068e4.js +1 -0
- actshield/static/_next/static/chunks/0mjhyv72x2idp.js +1 -0
- actshield/static/_next/static/chunks/0nelpqfu_ciq6.js +1 -0
- actshield/static/_next/static/chunks/0p1bci9ch797v.js +1 -0
- actshield/static/_next/static/chunks/0tld_ygho5tgm.js +1 -0
- actshield/static/_next/static/chunks/0w1-y7oni66j9.js +1 -0
- actshield/static/_next/static/chunks/10537zyl427zj.js +1 -0
- actshield/static/_next/static/chunks/11pc_jkl3aggn.js +1 -0
- actshield/static/_next/static/chunks/16k7nw0b3t8ys.js +1 -0
- actshield/static/_next/static/chunks/19mx3mg6lkumu.js +1 -0
- actshield/static/_next/static/chunks/1_8p47b-kxg2a.js +1 -0
- actshield/static/_next/static/chunks/1dszjozwfqegx.js +1 -0
- actshield/static/_next/static/chunks/1h43jcb90-m2r.js +22 -0
- actshield/static/_next/static/chunks/1ly04cvt_wh_j.js +1 -0
- actshield/static/_next/static/chunks/1odxrypuwuwp_.js +1 -0
- actshield/static/_next/static/chunks/1oes4c35qz5ku.js +1 -0
- actshield/static/_next/static/chunks/1ow883jl4ln-r.js +16 -0
- actshield/static/_next/static/chunks/1po7bna1as8tc.js +1 -0
- actshield/static/_next/static/chunks/1rsh0og8ifkzx.js +1 -0
- actshield/static/_next/static/chunks/1v0lwzv-859z_.js +1 -0
- actshield/static/_next/static/chunks/25iat2epwx25a.js +1 -0
- actshield/static/_next/static/chunks/25uvt4s2f39a4.js +1 -0
- actshield/static/_next/static/chunks/27t_qfc-3_lzs.js +1 -0
- actshield/static/_next/static/chunks/28bkmy8mez7gm.js +1 -0
- actshield/static/_next/static/chunks/2b6brmw_drw1p.js +1 -0
- actshield/static/_next/static/chunks/2fnhtxi4j6vge.js +1 -0
- actshield/static/_next/static/chunks/2p087eftxemg4.js +6 -0
- actshield/static/_next/static/chunks/2s8pao_z8pgtq.js +1 -0
- actshield/static/_next/static/chunks/2yj7ooc2c-zpg.js +1 -0
- actshield/static/_next/static/chunks/3-mrrr8udt5tk.js +1 -0
- actshield/static/_next/static/chunks/310vm2bl3xxpt.js +31 -0
- actshield/static/_next/static/chunks/35mvsv251jx1r.css +3 -0
- actshield/static/_next/static/chunks/370vf0oetlsx9.js +1 -0
- actshield/static/_next/static/chunks/3e-2m72tyo556.js +1 -0
- actshield/static/_next/static/chunks/3fntmmi971322.js +1 -0
- actshield/static/_next/static/chunks/3fzw-g0hycl2c.js +1 -0
- actshield/static/_next/static/chunks/3lopq3lhmcjxg.js +129 -0
- actshield/static/_next/static/chunks/3mpe2jejel0v2.css +1 -0
- actshield/static/_next/static/chunks/3t8o4f2lzr2sf.js +1 -0
- actshield/static/_next/static/chunks/3y-v1neyllne5.js +1 -0
- actshield/static/_next/static/chunks/43oiwy8mx6cs1.js +1 -0
- actshield/static/_next/static/chunks/turbopack-23wzuebcy_lxm.js +1 -0
- actshield/static/_next/static/media/1bffadaabf893a1e-s.3-6t-g6q0vh0a.woff2 +0 -0
- actshield/static/_next/static/media/2bbe8d2671613f1f-s.0k62hbripvv8p.woff2 +0 -0
- actshield/static/_next/static/media/2c55a0e60120577a-s.0-dom-5bn10r2.woff2 +0 -0
- actshield/static/_next/static/media/5476f68d60460930-s.2uwcyprjm3xu3.woff2 +0 -0
- actshield/static/_next/static/media/83afe278b6a6bb3c-s.p.2bn3s6zvc0dyp.woff2 +0 -0
- actshield/static/_next/static/media/9c72aa0f40e4eef8-s.1y4-pdgsjb-pw.woff2 +0 -0
- actshield/static/_next/static/media/ad66f9afd8947f86-s.3lvt2whj97whp.woff2 +0 -0
- actshield/static/_next/static/media/favicon.2vob68tjqpejf.ico +0 -0
- actshield/static/_not-found/__next._full.txt +17 -0
- actshield/static/_not-found/__next._not-found/__PAGE__.txt +23 -0
- actshield/static/_not-found/__next._tree.txt +3 -0
- actshield/static/_not-found.html +1 -0
- actshield/static/_not-found.txt +17 -0
- actshield/static/access/matrix/__next._full.txt +24 -0
- actshield/static/access/matrix/__next._tree.txt +4 -0
- actshield/static/access/matrix/__next.access/matrix/__PAGE__.txt +30 -0
- actshield/static/access/matrix.html +1 -0
- actshield/static/access/matrix.txt +24 -0
- actshield/static/activity/__next._full.txt +22 -0
- actshield/static/activity/__next._tree.txt +4 -0
- actshield/static/activity/__next.activity/__PAGE__.txt +27 -0
- actshield/static/activity.html +1 -0
- actshield/static/activity.txt +22 -0
- actshield/static/agents/__next._full.txt +22 -0
- actshield/static/agents/__next._tree.txt +4 -0
- actshield/static/agents/__next.agents/__PAGE__.txt +27 -0
- actshield/static/agents.html +1 -0
- actshield/static/agents.txt +22 -0
- actshield/static/ai-secura/__next._full.txt +22 -0
- actshield/static/ai-secura/__next._tree.txt +4 -0
- actshield/static/ai-secura/__next.ai-secura/__PAGE__.txt +27 -0
- actshield/static/ai-secura.html +1 -0
- actshield/static/ai-secura.txt +22 -0
- actshield/static/api/__next._full.txt +22 -0
- actshield/static/api/__next._tree.txt +4 -0
- actshield/static/api/__next.api/__PAGE__.txt +27 -0
- actshield/static/api.html +15 -0
- actshield/static/api.txt +22 -0
- actshield/static/apiris/__next._full.txt +22 -0
- actshield/static/apiris/__next._tree.txt +4 -0
- actshield/static/apiris/__next.apiris/__PAGE__.txt +27 -0
- actshield/static/apiris.html +1 -0
- actshield/static/apiris.txt +22 -0
- actshield/static/attack-graph/__next._full.txt +23 -0
- actshield/static/attack-graph/__next._tree.txt +5 -0
- actshield/static/attack-graph/__next.attack-graph/__PAGE__.txt +28 -0
- actshield/static/attack-graph.html +2 -0
- actshield/static/attack-graph.txt +23 -0
- actshield/static/campaigns/__next._full.txt +22 -0
- actshield/static/campaigns/__next._tree.txt +4 -0
- actshield/static/campaigns/__next.campaigns/__PAGE__.txt +27 -0
- actshield/static/campaigns.html +1 -0
- actshield/static/campaigns.txt +22 -0
- actshield/static/context/__next._full.txt +22 -0
- actshield/static/context/__next._tree.txt +4 -0
- actshield/static/context/__next.context/__PAGE__.txt +27 -0
- actshield/static/context.html +1 -0
- actshield/static/context.txt +22 -0
- actshield/static/dashboard/__next._full.txt +22 -0
- actshield/static/dashboard/__next._tree.txt +4 -0
- actshield/static/dashboard/__next.dashboard/__PAGE__.txt +27 -0
- actshield/static/dashboard.html +1 -0
- actshield/static/dashboard.txt +22 -0
- actshield/static/delegations/__next._full.txt +22 -0
- actshield/static/delegations/__next._tree.txt +4 -0
- actshield/static/delegations/__next.delegations/__PAGE__.txt +27 -0
- actshield/static/delegations.html +1 -0
- actshield/static/delegations.txt +22 -0
- actshield/static/demo/__next._full.txt +22 -0
- actshield/static/demo/__next._tree.txt +4 -0
- actshield/static/demo/__next.demo/__PAGE__.txt +27 -0
- actshield/static/demo.html +1 -0
- actshield/static/demo.txt +22 -0
- actshield/static/drift/__next._full.txt +22 -0
- actshield/static/drift/__next._tree.txt +4 -0
- actshield/static/drift/__next.drift/__PAGE__.txt +27 -0
- actshield/static/drift.html +1 -0
- actshield/static/drift.txt +22 -0
- actshield/static/favicon.ico +0 -0
- actshield/static/file.svg +1 -0
- actshield/static/forensics/__next._full.txt +22 -0
- actshield/static/forensics/__next._tree.txt +4 -0
- actshield/static/forensics/__next.forensics/__PAGE__.txt +27 -0
- actshield/static/forensics.html +1 -0
- actshield/static/forensics.txt +22 -0
- actshield/static/globe.svg +1 -0
- actshield/static/incidents/__next._full.txt +22 -0
- actshield/static/incidents/__next._tree.txt +4 -0
- actshield/static/incidents/__next.incidents/__PAGE__.txt +27 -0
- actshield/static/incidents.html +1 -0
- actshield/static/incidents.txt +22 -0
- actshield/static/index.html +3 -0
- actshield/static/index.txt +20 -0
- actshield/static/logo.png +0 -0
- actshield/static/metrics/__next._full.txt +22 -0
- actshield/static/metrics/__next._tree.txt +4 -0
- actshield/static/metrics/__next.metrics/__PAGE__.txt +27 -0
- actshield/static/metrics.html +1 -0
- actshield/static/metrics.txt +22 -0
- actshield/static/next.svg +1 -0
- actshield/static/offensive/__next._full.txt +22 -0
- actshield/static/offensive/__next._tree.txt +4 -0
- actshield/static/offensive/__next.offensive/__PAGE__.txt +27 -0
- actshield/static/offensive.html +1 -0
- actshield/static/offensive.txt +22 -0
- actshield/static/policies/__next._full.txt +22 -0
- actshield/static/policies/__next._tree.txt +4 -0
- actshield/static/policies/__next.policies/__PAGE__.txt +27 -0
- actshield/static/policies.html +1 -0
- actshield/static/policies.txt +22 -0
- actshield/static/posture/__next._full.txt +22 -0
- actshield/static/posture/__next._tree.txt +4 -0
- actshield/static/posture/__next.posture/__PAGE__.txt +27 -0
- actshield/static/posture.html +1 -0
- actshield/static/posture.txt +22 -0
- actshield/static/regressions/__next._full.txt +22 -0
- actshield/static/regressions/__next._tree.txt +4 -0
- actshield/static/regressions/__next.regressions/__PAGE__.txt +27 -0
- actshield/static/regressions.html +1 -0
- actshield/static/regressions.txt +22 -0
- actshield/static/reports/__next._full.txt +22 -0
- actshield/static/reports/__next._tree.txt +4 -0
- actshield/static/reports/__next.reports/__PAGE__.txt +27 -0
- actshield/static/reports.html +1 -0
- actshield/static/reports.txt +22 -0
- actshield/static/resources/__next._full.txt +22 -0
- actshield/static/resources/__next._tree.txt +4 -0
- actshield/static/resources/__next.resources/__PAGE__.txt +27 -0
- actshield/static/resources.html +1 -0
- actshield/static/resources.txt +22 -0
- actshield/static/security-gates/__next._full.txt +22 -0
- actshield/static/security-gates/__next._tree.txt +4 -0
- actshield/static/security-gates/__next.security-gates/__PAGE__.txt +27 -0
- actshield/static/security-gates.html +1 -0
- actshield/static/security-gates.txt +22 -0
- actshield/static/settings/__next._full.txt +22 -0
- actshield/static/settings/__next._tree.txt +4 -0
- actshield/static/settings/__next.settings/__PAGE__.txt +27 -0
- actshield/static/settings.html +1 -0
- actshield/static/settings.txt +22 -0
- actshield/static/tasks/__next._full.txt +22 -0
- actshield/static/tasks/__next._tree.txt +4 -0
- actshield/static/tasks/__next.tasks/__PAGE__.txt +27 -0
- actshield/static/tasks.html +1 -0
- actshield/static/tasks.txt +22 -0
- actshield/static/threats/__next._full.txt +22 -0
- actshield/static/threats/__next._tree.txt +4 -0
- actshield/static/threats/__next.threats/__PAGE__.txt +27 -0
- actshield/static/threats.html +1 -0
- actshield/static/threats.txt +22 -0
- actshield/static/tools/__next._full.txt +22 -0
- actshield/static/tools/__next._tree.txt +4 -0
- actshield/static/tools/__next.tools/__PAGE__.txt +27 -0
- actshield/static/tools.html +1 -0
- actshield/static/tools.txt +22 -0
- actshield/static/traces/__next._full.txt +22 -0
- actshield/static/traces/__next._tree.txt +4 -0
- actshield/static/traces/__next.traces/__PAGE__.txt +27 -0
- actshield/static/traces.html +1 -0
- actshield/static/traces.txt +22 -0
- actshield/static/vercel.svg +1 -0
- actshield/static/window.svg +1 -0
- actshield/tasks/__init__.py +6 -0
- actshield/tasks/task.py +143 -0
- actshield/threatmodel/__init__.py +70 -0
- actshield/threatmodel/actors.py +210 -0
- actshield/threatmodel/analyzer.py +131 -0
- actshield/threatmodel/assets.py +167 -0
- actshield/threatmodel/boundaries.py +165 -0
- actshield/threatmodel/exporters.py +49 -0
- actshield/threatmodel/mitigations.py +209 -0
- actshield/threatmodel/models.py +80 -0
- actshield/threatmodel/report.py +341 -0
- actshield/threatmodel/scenarios.py +212 -0
- actshield/threatmodel/scoring.py +66 -0
- actshield/threatmodel/threats.py +387 -0
- actshield/tools/__init__.py +20 -0
- actshield/tools/interceptor.py +256 -0
- actshield/tools/tool.py +71 -0
- actshield/tracing/__init__.py +38 -0
- actshield/tracing/correlation.py +173 -0
- actshield/tracing/events.py +75 -0
- actshield/tracing/tracer.py +305 -0
- actshield/watch.py +129 -0
- actshield-0.9.0.dist-info/METADATA +57 -0
- actshield-0.9.0.dist-info/RECORD +366 -0
- actshield-0.9.0.dist-info/WHEEL +5 -0
- actshield-0.9.0.dist-info/entry_points.txt +4 -0
- actshield-0.9.0.dist-info/top_level.txt +2 -0
- agentguard/__init__.py +39 -0
- agentguard/__main__.py +8 -0
- agentguard/py.typed +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,63676,e=>{"use strict";var t=e.i(56420);let s={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};s.node;let a=(0,t.default)(s);e.s(["X",0,a],63676)},61763,e=>{"use strict";var t=e.i(43476),s=e.i(71645),a=e.i(56420);let r={name:"scroll-text",size:24,node:[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]};r.node;let l=(0,a.default)(r);var n=e.i(37757),i=e.i(68442),d=e.i(32471),o=e.i(49744),c=e.i(72854),x=e.i(3469);let m=[{policy_id:"pol_no_pii_export",name:"No PII Export",description:"Block any action that would send PII data to external systems or untrusted agents.",enabled:!0,priority:1,action:"BLOCK",triggers:["export_pii","upload_s3","send_email"],conditions:["resource.sensitivity == CRITICAL","destination.trusted == false"],matched_count_24h:3,last_triggered:"2026-09-19T10:30:00Z",tags:["data-protection","critical"]},{policy_id:"pol_hitl_customer_access",name:"HITL on Customer Data Access",description:"Require human approval before any agent reads from the customers table.",enabled:!0,priority:2,action:"HITL",triggers:["read_db:customers"],conditions:["resource.name == customers","agent.trust_level < HIGH"],matched_count_24h:1,last_triggered:"2026-09-19T09:11:00Z",tags:["customer-data","hitl"]},{policy_id:"pol_no_untrusted_mcp",name:"Block Untrusted MCP Servers",description:"Prevent any agent from calling tools hosted on unverified external MCP servers.",enabled:!0,priority:3,action:"BLOCK",triggers:["mcp_tool_call"],conditions:["tool.server.trusted == false"],matched_count_24h:1,last_triggered:"2026-09-19T10:45:00Z",tags:["mcp","supply-chain"]},{policy_id:"pol_delegation_depth",name:"Delegation Depth Limit",description:"HITL review required when delegation depth reaches or exceeds 3.",enabled:!0,priority:4,action:"HITL",triggers:["delegation_chain"],conditions:["delegation.depth >= 3"],matched_count_24h:0,last_triggered:null,tags:["delegation","containment"]},{policy_id:"pol_monitor_external_calls",name:"Monitor All External API Calls",description:"Log and monitor any HTTP call to an external service — do not block but alert.",enabled:!0,priority:5,action:"MONITOR",triggers:["http_call"],conditions:["destination.internal == false"],matched_count_24h:7,last_triggered:"2026-09-19T11:05:00Z",tags:["monitoring","egress"]},{policy_id:"pol_allow_internal_read",name:"Allow Internal DB Reads (Permitted Agents)",description:"Permitted agents may read from internal database tables that are not marked CRITICAL.",enabled:!0,priority:10,action:"ALLOW",triggers:["read_db"],conditions:["resource.sensitivity != CRITICAL","agent.id in [orchestrator_v2, data_agent, report_agent]"],matched_count_24h:128,last_triggered:"2026-09-19T11:10:00Z",tags:["baseline","allow"]}];e.s(["default",0,function(){let[e,a]=(0,s.useState)(""),[r,p]=(0,s.useState)("ALL"),[h,u]=(0,s.useState)(null),b=m.filter(e=>"BLOCK"===e.action).length,g=m.filter(e=>"HITL"===e.action).length,f=m.reduce((e,t)=>e+t.matched_count_24h,0),j=m.filter(t=>{let s=t.name.toLowerCase().includes(e.toLowerCase())||t.description.toLowerCase().includes(e.toLowerCase())||t.policy_id.toLowerCase().includes(e.toLowerCase()),a="ALL"===r||t.action===r;return s&&a}),N=[{key:"name",header:"Policy Rule",render:e=>(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)("div",{className:"w-7 h-7 rounded-md bg-slate-100 flex items-center justify-center text-slate-600 border border-slate-200",children:(0,t.jsx)(l,{size:13})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"font-semibold text-xs text-slate-900",children:e.name}),(0,t.jsx)("div",{className:"text-[11px] font-mono text-slate-500",children:e.policy_id})]})]})},{key:"action",header:"Enforcement Action",width:"130px",render:e=>(0,t.jsx)(c.StatusBadge,{status:e.action})},{key:"priority",header:"Priority",width:"90px",render:e=>(0,t.jsxs)("span",{className:"font-mono text-xs text-slate-600 font-semibold bg-slate-100 px-2 py-0.5 rounded border border-slate-200",children:["P",e.priority]})},{key:"triggers",header:"Target Triggers",render:e=>(0,t.jsx)("div",{className:"flex flex-wrap gap-1 max-w-xs",children:e.triggers.map(e=>(0,t.jsx)("span",{className:"font-mono text-[11px] px-1.5 py-0.2 rounded bg-slate-100 text-slate-700 border border-slate-200",children:e},e))})},{key:"matched_count_24h",header:"Matches (24h)",width:"120px",render:e=>(0,t.jsx)("span",{className:"font-mono text-xs text-slate-700",children:e.matched_count_24h})},{key:"enabled",header:"State",width:"100px",render:e=>(0,t.jsx)("span",{className:`text-[11px] font-medium px-2 py-0.5 rounded border ${e.enabled?"bg-emerald-50 text-emerald-700 border-emerald-200":"bg-slate-100 text-slate-500 border-slate-200"}`,children:e.enabled?"Active":"Disabled"})}];return(0,t.jsxs)("div",{className:"p-8 space-y-6 max-w-7xl mx-auto",children:[(0,t.jsx)(n.PageHeader,{title:"Security Policies",subtitle:"Deterministic rules and invariants enforced automatically with zero AI hallucination",badge:"Zero-Trust Engine"}),(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[(0,t.jsx)(i.MetricCard,{label:"Active Policies",value:m.filter(e=>e.enabled).length}),(0,t.jsx)(i.MetricCard,{label:"Block Rules",value:b,status:"BLOCK"}),(0,t.jsx)(i.MetricCard,{label:"HITL Guardrails",value:g,status:"HITL"}),(0,t.jsx)(i.MetricCard,{label:"Trigger Matches (24h)",value:f,status:"ALLOW"})]}),(0,t.jsxs)("div",{className:"bg-white border border-slate-200 rounded-lg p-5 shadow-xs space-y-4",children:[(0,t.jsx)(d.FilterBar,{searchQuery:e,onSearchChange:a,searchPlaceholder:"Search policies by name, ID, or trigger...",filters:[{key:"action",label:"Action",options:[{label:"All Actions",value:"ALL"},{label:"Block",value:"BLOCK"},{label:"HITL",value:"HITL"},{label:"Allow",value:"ALLOW"},{label:"Monitor",value:"MONITOR"}],value:r,onChange:p}],activeCount:"ALL"!==r||e?1:0,onReset:()=>{a(""),p("ALL")}}),(0,t.jsx)(o.DataTable,{columns:N,data:j,keyField:"policy_id",onRowClick:e=>u(e),emptyMessage:"No security policies matched your filter criteria."})]}),(0,t.jsx)(x.DetailDrawer,{isOpen:!!h,onClose:()=>u(null),title:h?h.name:"",subtitle:h?`ID: ${h.policy_id} • Priority P${h.priority}`:"",badge:h?(0,t.jsx)(c.StatusBadge,{status:h.action}):null,children:h&&(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"bg-slate-50 border border-slate-200 rounded-lg p-3.5 space-y-2",children:[(0,t.jsx)("div",{className:"text-[11px] font-semibold uppercase tracking-wider text-slate-500",children:"Policy Intent"}),(0,t.jsx)("p",{className:"text-xs text-slate-800 leading-relaxed",children:h.description})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-[11px] font-semibold uppercase tracking-wider text-slate-500 mb-2",children:"Attached Triggers"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-1.5",children:h.triggers.map(e=>(0,t.jsx)("span",{className:"font-mono text-xs px-2 py-0.5 rounded bg-blue-50 text-blue-800 border border-blue-200 font-medium",children:e},e))})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-[11px] font-semibold uppercase tracking-wider text-slate-500 mb-2",children:"Predicate Expressions"}),(0,t.jsx)("div",{className:"space-y-1.5",children:h.conditions.map((e,s)=>(0,t.jsxs)("div",{className:"p-2.5 bg-slate-900 text-slate-100 rounded-md font-mono text-xs border border-slate-800 flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-slate-500",children:"IF:"}),(0,t.jsx)("span",{className:"text-sky-300",children:e})]},s))})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-[11px] font-semibold uppercase tracking-wider text-slate-500 mb-2",children:"Tags"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-1.5",children:h.tags.map(e=>(0,t.jsxs)("span",{className:"text-xs px-2 py-0.5 rounded bg-slate-100 text-slate-700 border border-slate-200",children:["#",e]},e))})]}),(0,t.jsxs)("div",{className:"border-t border-slate-200 pt-4 grid grid-cols-2 gap-3 text-xs",children:[(0,t.jsxs)("div",{className:"p-3 bg-slate-50 border border-slate-200 rounded-lg text-center",children:[(0,t.jsx)("div",{className:"text-[10px] text-slate-500 uppercase",children:"Matches (24h)"}),(0,t.jsx)("div",{className:"text-base font-bold font-mono text-slate-800",children:h.matched_count_24h})]}),(0,t.jsxs)("div",{className:"p-3 bg-slate-50 border border-slate-200 rounded-lg text-center",children:[(0,t.jsx)("div",{className:"text-[10px] text-slate-500 uppercase",children:"Last Fired"}),(0,t.jsx)("div",{className:"text-xs font-mono text-slate-700 mt-1",children:h.last_triggered?new Date(h.last_triggered).toLocaleTimeString():"Never"})]})]})]})})]})}],61763)},49744,e=>{"use strict";var t=e.i(43476),s=e.i(71645),a=e.i(56420);let r={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};r.node;let l=(0,a.default)(r);var n=e.i(67927);let i={name:"inbox",size:24,node:[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]};i.node;let d=(0,a.default)(i);e.s(["DataTable",0,function({columns:e,data:a,keyExtractor:r,keyField:i,onRowClick:o,selectedKey:c,emptyMessage:x="No records found",emptySubtext:m="Try adjusting your filters or search query.",pageSize:p=15,isLoading:h=!1}){let[u,b]=s.default.useState(1),g=Math.max(1,Math.ceil(a.length/p)),f=a.slice((u-1)*p,u*p);return s.default.useEffect(()=>{b(1)},[a.length]),(0,t.jsxs)("div",{className:"bg-white border border-slate-200 rounded-lg shadow-sm overflow-hidden flex flex-col",children:[(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full text-left border-collapse text-xs",children:[(0,t.jsx)("thead",{children:(0,t.jsx)("tr",{className:"bg-slate-50 border-b border-slate-200",children:e.map(e=>(0,t.jsx)("th",{style:{width:e.width},className:`px-3.5 py-2.5 font-semibold text-slate-600 uppercase tracking-wider text-[10px] ${"right"===e.align?"text-right":"center"===e.align?"text-center":"text-left"}`,children:e.header},e.key))})}),(0,t.jsx)("tbody",{className:"divide-y divide-slate-100",children:h?(0,t.jsx)("tr",{children:(0,t.jsxs)("td",{colSpan:e.length,className:"py-12 text-center text-slate-400",children:[(0,t.jsx)("div",{className:"inline-block animate-spin rounded-full h-5 w-5 border-2 border-slate-300 border-t-sky-600 mb-2"}),(0,t.jsx)("div",{className:"text-xs",children:"Loading telemetry records…"})]})}):0===f.length?(0,t.jsx)("tr",{children:(0,t.jsxs)("td",{colSpan:e.length,className:"py-12 text-center",children:[(0,t.jsx)(d,{size:28,className:"mx-auto text-slate-300 mb-2"}),(0,t.jsx)("div",{className:"text-sm font-semibold text-slate-700",children:x}),(0,t.jsx)("div",{className:"text-xs text-slate-400 mt-0.5",children:m})]})}):f.map((s,a)=>{let l=r?r(s,a):i&&s[i]?String(s[i]):String(s.id||s.key||a),n=c===l;return(0,t.jsx)("tr",{onClick:()=>o&&o(s),className:`transition-colors ${n?"bg-sky-50/80 font-medium":"hover:bg-slate-50/80"} ${o?"cursor-pointer":""}`,children:e.map(e=>{let r=s[e.key],l=e.render?e.render(s,a):r;return(0,t.jsx)("td",{className:`px-3.5 py-2.5 text-slate-700 ${e.mono?"font-mono text-[11px]":""} ${"right"===e.align?"text-right":"center"===e.align?"text-center":"text-left"}`,children:l},e.key)})},l)})})]})}),a.length>p&&(0,t.jsxs)("div",{className:"px-4 py-2.5 border-t border-slate-200 bg-slate-50 flex items-center justify-between text-xs text-slate-500",children:[(0,t.jsxs)("div",{children:["Showing ",(0,t.jsx)("span",{className:"font-medium text-slate-800",children:(u-1)*p+1})," to"," ",(0,t.jsx)("span",{className:"font-medium text-slate-800",children:Math.min(u*p,a.length)})," ","of ",(0,t.jsx)("span",{className:"font-medium text-slate-800",children:a.length})," records"]}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("button",{onClick:()=>b(e=>Math.max(1,e-1)),disabled:1===u,className:"p-1 rounded border border-slate-200 bg-white text-slate-600 disabled:opacity-40 disabled:cursor-not-allowed hover:bg-slate-50 transition-colors",children:(0,t.jsx)(l,{size:14})}),(0,t.jsxs)("span",{className:"px-2 font-mono text-[11px]",children:[u," / ",g]}),(0,t.jsx)("button",{onClick:()=>b(e=>Math.min(g,e+1)),disabled:u===g,className:"p-1 rounded border border-slate-200 bg-white text-slate-600 disabled:opacity-40 disabled:cursor-not-allowed hover:bg-slate-50 transition-colors",children:(0,t.jsx)(n.ChevronRight,{size:14})})]})]})]})}],49744)},3469,e=>{"use strict";var t=e.i(43476),s=e.i(63676);e.s(["DetailDrawer",0,function({isOpen:e,onClose:a,title:r,subtitle:l,badge:n,children:i,footer:d,width:o="w-full md:w-[480px]"}){return e?(0,t.jsxs)("div",{className:"fixed inset-y-0 right-0 z-50 flex",children:[(0,t.jsx)("div",{className:"fixed inset-0 bg-slate-900/20 backdrop-blur-[1px] transition-opacity",onClick:a}),(0,t.jsxs)("div",{className:`relative ${o} bg-white shadow-2xl border-l border-slate-200 flex flex-col h-full z-10 transition-transform`,children:[(0,t.jsxs)("div",{className:"px-5 py-4 border-b border-slate-200 flex items-start justify-between gap-3 bg-slate-50/50",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("h2",{className:"text-base font-semibold text-slate-900 truncate",children:r}),n]}),l&&(0,t.jsx)("p",{className:"text-xs text-slate-500 font-mono mt-0.5 truncate",children:l})]}),(0,t.jsx)("button",{onClick:a,className:"p-1 rounded-md text-slate-400 hover:text-slate-700 hover:bg-slate-100 transition-colors",children:(0,t.jsx)(s.X,{size:18})})]}),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto p-5 space-y-5 text-sm text-slate-700",children:i}),d&&(0,t.jsx)("div",{className:"px-5 py-3 border-t border-slate-200 bg-slate-50 flex items-center justify-end gap-2",children:d})]})]}):null}])},32471,e=>{"use strict";var t=e.i(43476),s=e.i(66595),a=e.i(95925);e.s(["FilterBar",0,function({searchQuery:e,onSearchChange:r,searchPlaceholder:l="Search records…",dropdowns:n,filters:i,onReset:d,activeCount:o,totalCount:c,actions:x}){let m=i||n;return(0,t.jsxs)("div",{className:"bg-white border border-slate-200 rounded-lg p-3 mb-4 shadow-sm flex flex-col md:flex-row md:items-center justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2.5 flex-1",children:[r&&(0,t.jsxs)("div",{className:"relative flex-1 min-w-[200px] max-w-sm",children:[(0,t.jsx)(s.Search,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-slate-400"}),(0,t.jsx)("input",{type:"text",value:e??"",onChange:e=>r(e.target.value),placeholder:l,className:"w-full pl-8 pr-3 py-1.5 text-xs bg-slate-50 border border-slate-200 rounded-md text-slate-800 placeholder:text-slate-400 focus:bg-white focus:outline-none focus:border-sky-500 focus:ring-1 focus:ring-sky-500 transition-all"})]}),m&&m.map(e=>(0,t.jsx)("div",{className:"flex items-center gap-1.5",children:(0,t.jsx)("select",{value:e.value,onChange:t=>e.onChange(t.target.value),className:"text-xs bg-slate-50 border border-slate-200 rounded-md px-2.5 py-1.5 text-slate-700 font-medium focus:bg-white focus:outline-none focus:border-sky-500 focus:ring-1 focus:ring-sky-500 transition-all cursor-pointer",children:e.options.map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value))})},e.key||e.name||e.label)),d&&(0,t.jsxs)("button",{onClick:d,className:"flex items-center gap-1 text-xs text-slate-500 hover:text-slate-800 px-2 py-1.5 rounded hover:bg-slate-100 transition-colors",title:"Reset Filters",children:[(0,t.jsx)(a.RotateCcw,{size:12}),(0,t.jsx)("span",{children:"Reset"})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3 self-end md:self-auto text-xs text-slate-500",children:[void 0!==c&&(0,t.jsx)("span",{className:"font-mono text-slate-600",children:void 0!==o&&o!==c?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("strong",{className:"text-slate-900",children:o})," of ",c]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("strong",{className:"text-slate-900",children:c})," total"]})}),x]})]})}])},68442,e=>{"use strict";var t=e.i(43476);e.s(["MetricCard",0,function({label:e,value:s,subtext:a,trend:r,status:l="neutral",icon:n,badge:i}){return(0,t.jsxs)("div",{className:`bg-white rounded-lg border border-slate-200 p-4 shadow-sm ${{healthy:"border-l-4 border-l-emerald-500",warning:"border-l-4 border-l-amber-500",critical:"border-l-4 border-l-red-500",neutral:"border-l-4 border-l-slate-300"}["ALLOW"===l||"MONITOR"===l||"healthy"===l?"healthy":"HITL"===l||"warning"===l?"warning":"BLOCK"===l||"critical"===l?"critical":"neutral"]} flex flex-col justify-between`,children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 mb-2",children:[(0,t.jsx)("span",{className:"text-[11px] font-medium tracking-wider uppercase text-slate-500",children:e}),n&&(0,t.jsx)(n,{size:16,className:"text-slate-400"}),i&&(0,t.jsx)("span",{className:"text-[10px] font-semibold px-1.5 py-0.5 rounded bg-slate-100 text-slate-700",children:i})]}),(0,t.jsxs)("div",{className:"flex items-baseline justify-between gap-2 mt-1",children:[(0,t.jsx)("div",{className:"text-2xl font-bold tracking-tight text-slate-900 font-mono",children:s}),r&&(0,t.jsx)("span",{className:`text-xs font-medium ${r.isNeutral?"text-slate-500":r.isPositive?"text-emerald-700":"text-red-700"}`,children:r.value})]}),a&&(0,t.jsx)("div",{className:"mt-2 text-xs text-slate-500 truncate",children:a})]})}])},37757,e=>{"use strict";var t=e.i(43476),s=e.i(71645),a=e.i(22016),r=e.i(67927);e.s(["PageHeader",0,function({title:e,description:l,subtitle:n,breadcrumbs:i,actions:d,badge:o}){let c=l||n;return(0,t.jsxs)("div",{className:"mb-6 pb-4 border-b border-slate-200",children:[i&&i.length>0&&(0,t.jsx)("nav",{className:"flex items-center gap-1.5 text-xs text-slate-500 mb-2",children:i.map((e,l)=>{let n=l===i.length-1;return(0,t.jsxs)(s.default.Fragment,{children:[l>0&&(0,t.jsx)(r.ChevronRight,{size:12,className:"text-slate-400"}),e.href&&!n?(0,t.jsx)(a.default,{href:e.href,className:"hover:text-slate-800 transition-colors",children:e.label}):(0,t.jsx)("span",{className:n?"text-slate-900 font-medium":"",children:e.label})]},l)})}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)("h1",{className:"text-xl font-semibold text-slate-900 tracking-tight",children:e}),o&&(0,t.jsx)("div",{children:o})]}),c&&(0,t.jsx)("p",{className:"mt-1 text-xs text-slate-500 max-w-3xl leading-relaxed",children:c})]}),d&&(0,t.jsx)("div",{className:"flex items-center gap-2 flex-shrink-0",children:d})]})]})}])},72854,e=>{"use strict";var t=e.i(43476);function s({decision:e,status:a}){let r=(e||a||"").toUpperCase();return"BLOCK"===r||"DENY"===r||"BLOCKED"===r?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-semibold bg-red-50 text-red-700 border border-red-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-red-600"}),"BLOCK"]}):"ALLOW"===r||"ALLOWED"===r?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-semibold bg-emerald-50 text-emerald-700 border border-emerald-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-600"}),"ALLOW"]}):"HITL"===r||"APPROVAL_REQUIRED"===r?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-semibold bg-amber-50 text-amber-700 border border-amber-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-600"}),"HITL"]}):"MONITOR"===r||"AUDIT"===r?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-semibold bg-blue-50 text-blue-700 border border-blue-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-blue-600"}),"MONITOR"]}):(0,t.jsx)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-medium bg-slate-100 text-slate-700 border border-slate-200",children:e||a||"UNKNOWN"})}e.s(["DecisionBadge",0,s,"SeverityBadge",0,function({severity:e}){let s=(e||"").toUpperCase();return"CRITICAL"===s?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-semibold bg-red-50 text-red-700 border border-red-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-red-600"}),"CRITICAL"]}):"HIGH"===s?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-semibold bg-orange-50 text-orange-700 border border-orange-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-orange-600"}),"HIGH"]}):"MEDIUM"===s?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-semibold bg-amber-50 text-amber-700 border border-amber-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-600"}),"MEDIUM"]}):"LOW"===s?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-medium bg-blue-50 text-blue-700 border border-blue-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-blue-600"}),"LOW"]}):(0,t.jsx)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-medium bg-slate-100 text-slate-600 border border-slate-200",children:e||"INFO"})},"StatusBadge",0,s,"TaintBadge",0,function({taint:e}){let s=(e||"").toUpperCase();return"TAINTED"===s||"CRITICAL"===s?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-semibold bg-red-50 text-red-700 border border-red-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-red-600"}),"TAINTED"]}):"CLEAN"===s||"TRUSTED"===s||"NONE"===s?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-medium bg-emerald-50 text-emerald-700 border border-emerald-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500"}),"CLEAN"]}):(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-medium bg-amber-50 text-amber-700 border border-amber-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-500"}),e||"UNASSESSED"]})},"TrustBadge",0,function({trust:e}){let s=(e||"").toUpperCase();return"HIGH"===s||"TRUSTED"===s?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-medium bg-emerald-50 text-emerald-700 border border-emerald-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500"}),e]}):"MEDIUM"===s?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-medium bg-blue-50 text-blue-700 border border-blue-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-blue-500"}),"MEDIUM"]}):"LOW"===s||"UNTRUSTED"===s?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-medium bg-red-50 text-red-700 border border-red-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-red-500"}),e]}):(0,t.jsx)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-medium bg-slate-100 text-slate-700 border border-slate-200",children:e||"UNKNOWN"})}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,67927,56420,e=>{"use strict";var t=e.i(71645);let r=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},a=(0,t.createContext)({}),n=(0,t.forwardRef)(({color:e,size:n,width:l,height:i,strokeWidth:o,absoluteStrokeWidth:d,nonScalingStroke:c,className:u="",children:p,iconNode:m=[],icon:x={node:m,aliases:[],size:24},...h},f)=>{let{size:b=24,strokeWidth:g=2,absoluteStrokeWidth:y=!1,nonScalingStroke:v=!1,color:j="currentColor",className:N=""}=(0,t.useContext)(a)??{},w=!!p||(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(h),[k,C,S=[]]=function(e,t={}){return function(e,t={}){let a=t.attributeNames??{},n=e=>a[e]??e,l=e.size??e.width??s.width,i=e.size??e.height??s.height,o=e.aliases?.filter(e=>"string"==typeof e&&""!==e.trim()).map(e=>`lucide-${e}`)??[],d=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(" ").filter(Boolean)??[],u=!1===t.includeDefaultClasses?r(...c):r("lucide",...d,...c),p=t.absoluteStrokeWidth?Number(t.strokeWidth??s["stroke-width"])*Number(e.size??e.width??s.width)/Number(t.size??t.width??s.width):t.strokeWidth??s["stroke-width"];return["svg",{...Object.entries(s).reduce((e,[t,r])=>(e[n(t)]=r,e),{}),..."color"in t&&t.color&&{[n("stroke")]:t.color},..."size"in t&&null!=t.size&&{[n("width")]:t.size,[n("height")]:t.size},..."width"in t&&null!=t.width&&{[n("width")]:t.width},..."height"in t&&null!=t.height&&{[n("height")]:t.height},[n("stroke-width")]:p,...u&&{[n("class")]:u},[n("viewBox")]:`0 0 ${l} ${i}`,...!1===t.hasA11yProp?{[n("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map(e=>{let[r,s,a]=e,l=t.nonScalingStroke?{[n("vector-effect")]:"non-scaling-stroke",...s}:s;return a?[r,l,a]:[r,l]})]}(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(x,{color:e??j,width:l??n??b,height:i??n??b,strokeWidth:o??g,absoluteStrokeWidth:d??y,nonScalingStroke:c??v,className:r(N,u),hasA11yProp:w,attributes:h});return(0,t.createElement)(k,{ref:f,...C},[...S.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(p)?p:[p]])});function l(e,r=[],s=[]){let a,i="string"==typeof e?function(e,t,r=[]){if(null==t)throw Error("[lucide]: iconNode is required when icon name is used");return{name:e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),size:24,node:t,...r.length>0?{aliases:r}:{}}}(e,r,s):e,o=(0,t.forwardRef)(({className:e,...r},s)=>(0,t.createElement)(n,{ref:s,icon:i,className:e,...r}));return i.name&&(o.displayName=(a=(e=>{let t="",r=!1;for(let s of e){if("-"===s||"_"===s||s<=" "){r=t.length>0;continue}0===t.length?t+=s.toLowerCase():t+=r?s.toUpperCase():s,r=!1}return t})(i.name)).charAt(0).toUpperCase()+a.slice(1)),o}e.s(["default",0,l],56420);let i={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};i.node;let o=l(i);e.s(["ChevronRight",0,o],67927)},51757,e=>{"use strict";var t=e.i(56420);let r={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};r.node;let s=(0,t.default)(r);e.s(["CheckCircle2",0,s],51757)},83967,e=>{"use strict";var t=e.i(56420);let r={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]};r.node;let s=(0,t.default)(r);e.s(["XCircle",0,s],83967)},41120,e=>{"use strict";var t=e.i(56420);let r={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]};r.node;let s=(0,t.default)(r);e.s(["RefreshCw",0,s],41120)},4139,e=>{"use strict";var t=e.i(56420);let r={name:"terminal",size:24,node:[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]};r.node;let s=(0,t.default)(r);e.s(["Terminal",0,s],4139)},53138,e=>{"use strict";var t=e.i(56420);let r={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};r.node;let s=(0,t.default)(r);e.s(["AlertTriangle",0,s],53138)},22016,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var s={default:function(){return b},useLinkStatus:function(){return y}};for(var a in s)Object.defineProperty(r,a,{enumerable:!0,get:s[a]});let n=e.r(90809),l=e.r(43476),i=n._(e.r(71645)),o=e.r(95057),d=e.r(8372),c=e.r(18581),u=e.r(18967),p=e.r(5550),m=e.r(88540),x=e.r(91949),h=e.r(73668),f=e.r(9396);function b(t){var r;let s,a,n,[b,y]=(0,i.useOptimistic)(x.IDLE_LINK_STATUS),v=(0,i.useRef)(null),{href:j,as:N,children:w,prefetch:k=null,passHref:C,replace:S,shallow:E,scroll:_,onClick:O,onMouseEnter:L,onTouchStart:A,legacyBehavior:P=!1,onNavigate:T,transitionTypes:R,ref:I,unstable_dynamicOnHover:M,...z}=t;s=w,P&&("string"==typeof s||"number"==typeof s)&&(s=(0,l.jsx)("a",{children:s}));let D=i.default.useContext(d.AppRouterContext),U=!1!==k,$=!1===k?"none":!0===k?"full":"auto",B="none"!==$?"auto"===$?f.FetchStrategy.PPR:f.FetchStrategy.Full:f.FetchStrategy.PPR,W="string"==typeof(r=N||j)?r:(0,o.formatUrl)(r);if(P){if(s?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=i.default.Children.only(s)}let K=P?a&&"object"==typeof a&&a.ref:I,F,H=i.default.useCallback(e=>(null!==D&&(v.current=(0,x.mountLinkInstance)(e,W,D,B,U,y,F)),()=>{v.current&&((0,x.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,x.unmountPrefetchableInstance)(e)}),[U,W,D,B,y,F]),G={ref:(0,c.useMergedRef)(H,K),onClick(t){P||"function"!=typeof O||O(t),P&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!D||t.defaultPrevented||function(t,r,s,a,n,l,o,d="none"){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,h.isLocalURL)(r)){a&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:p}=e.r(99781);i.default.startTransition(()=>{p(r,a?"replace":"push",!1===n?m.ScrollBehavior.NoScroll:m.ScrollBehavior.Default,s.current,o,d)})}}(t,W,v,S,_,T,R,$)},onMouseEnter(e){P||"function"!=typeof L||L(e),P&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),D&&U&&(0,x.onNavigationIntent)(e.currentTarget,!0===M)},onTouchStart:function(e){P||"function"!=typeof A||A(e),P&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),D&&U&&(0,x.onNavigationIntent)(e.currentTarget,!0===M)}};return(0,u.isAbsoluteUrl)(W)?G.href=W:P&&!C&&("a"!==a.type||"href"in a.props)||(G.href=(0,p.addBasePath)(W)),n=P?i.default.cloneElement(a,G):(0,l.jsx)("a",{...z,...G,children:s}),(0,l.jsx)(g.Provider,{value:b,children:n})}let g=(0,i.createContext)(x.IDLE_LINK_STATUS),y=()=>(0,i.useContext)(g);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return a}});let s=e.r(71645);function a(e,t){let r=(0,s.useRef)(null),a=(0,s.useRef)(null);return(0,s.useCallback)(s=>{if(null===s){let e=r.current;e&&(r.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(r.current=n(e,s)),t&&(a.current=n(t,s))},[e,t])}function n(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18967,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var s={DecodeError:function(){return b},MiddlewareNotFoundError:function(){return j},MissingStaticPage:function(){return v},NormalizeError:function(){return g},PageNotFoundError:function(){return y},SP:function(){return h},ST:function(){return f},WEB_VITALS:function(){return n},execOnce:function(){return l},getDisplayName:function(){return u},getLocationOrigin:function(){return d},getURL:function(){return c},isAbsoluteUrl:function(){return o},isResSent:function(){return p},loadGetInitialProps:function(){return x},normalizeRepeatedSlashes:function(){return m},stringifyError:function(){return N}};for(var a in s)Object.defineProperty(r,a,{enumerable:!0,get:s[a]});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function l(e){let t,r=!1;return(...s)=>(r||(r=!0,t=e(...s)),t)}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&i.test(e)};function d(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=d();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function p(e){return e.finished||e.headersSent}function m(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function x(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await x(t.Component,t.ctx)}:{};let s=await e.getInitialProps(t);if(r&&p(r))return s;if(!s)throw Object.defineProperty(Error(`"${u(e)}.getInitialProps()" should resolve to an object. But found "${s}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return s}let h="u">typeof performance,f=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class b extends Error{}class g extends Error{}class y extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class v extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class j extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function N(e){return JSON.stringify({message:e.message,stack:e.stack})}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return n}});let s=e.r(18967),a=e.r(52817);function n(e){if(!(0,s.isAbsoluteUrl)(e))return!0;try{let t=(0,s.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,a.hasBasePath)(r.pathname)}catch(e){return!1}}},98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s={assign:function(){return o},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return i}};for(var a in s)Object.defineProperty(r,a,{enumerable:!0,get:s[a]});function n(e){let t={};for(let[r,s]of e.entries()){let e=t[r];void 0===e?t[r]=s:Array.isArray(e)?e.push(s):t[r]=[e,s]}return t}function l(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;for(let[r,s]of Object.entries(e))if(Array.isArray(s))for(let e of s)t.append(r,l(e));else t.set(r,l(s));return t}function o(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,s]of r.entries())e.append(t,s)}return e}},95057,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var s={formatUrl:function(){return i},formatWithValidation:function(){return d},urlObjectKeys:function(){return o}};for(var a in s)Object.defineProperty(r,a,{enumerable:!0,get:s[a]});let n=e.r(90809)._(e.r(98183)),l=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,s=e.protocol||"",a=e.pathname||"",i=e.hash||"",o=e.query||"",d=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?d=t+e.host:r&&(d=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(d+=":"+e.port)),o&&"object"==typeof o&&(o=String(n.urlQueryToSearchParams(o)));let c=e.search||o&&`?${o}`||"";return s&&!s.endsWith(":")&&(s+=":"),e.slashes||(!s||l.test(s))&&!1!==d?(d="//"+(d||""),a&&"/"!==a[0]&&(a="/"+a)):d||(d=""),i&&"#"!==i[0]&&(i="#"+i),c&&"?"!==c[0]&&(c="?"+c),a=a.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${s}${d}${a}${c}${i}`}let o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function d(e){return i(e)}},31829,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(51757),a=e.i(83967),n=e.i(41120),l=e.i(53138),i=e.i(4139),o=e.i(37757),d=e.i(68442),c=e.i(72854),u=e.i(49744);let p={status:"PASSED",passed:!0,overall_verdict:"PASS",campaign_name:"phase9_continuous_security_pipeline",evaluated_at:new Date().toISOString(),unauthorized_db_calls:0,bypassed_attacks:0,open_regressions:0,prevention_rate:100,summary:"CI/CD Security Gate PASSED: All 6 checks satisfied.",checks:[{name:"Zero Unauthorized DB Calls",rule_name:"zero_unauthorized_db_calls",passed:!0,value:0,observed_value:0,threshold:0,description:"No sensitive DB operations executed without authorization"},{name:"Zero Bypasses",rule_name:"zero_bypasses",passed:!0,value:0,observed_value:0,threshold:0,description:"All attack variants were blocked or contained"},{name:"Prevention Rate >= 95%",rule_name:"minimum_block_rate",passed:!0,value:"100%",observed_value:"100%",threshold:"95%",description:"Empirical block rate over full offensive campaign"},{name:"No Failed Replays",rule_name:"zero_failed_replays",passed:!0,value:0,observed_value:0,threshold:0,description:"All secured regression replays confirmed BLOCK"},{name:"Open Regressions <= 0",rule_name:"zero_open_regressions",passed:!0,value:0,observed_value:0,threshold:0,description:"Outstanding regression count within acceptable limit"},{name:"Min Posture Score >= 75.0",rule_name:"minimum_posture_score",passed:!0,value:"98.0",observed_value:"98.0",threshold:"75.0",description:"Runtime security posture score satisfies minimum threshold"}]};e.s(["default",0,function(){let[e,m]=(0,r.useState)(p),[x,h]=(0,r.useState)(!1),f=async()=>{h(!0);try{let e=await fetch("/api/v1/security-gates");if(e.ok){let t=await e.json();m(t)}}catch{}finally{h(!1)}};(0,r.useEffect)(()=>{f()},[]);let b=e.checks??p.checks??[],g=b.filter(e=>e.passed).length,y=b.filter(e=>!e.passed).length,v=0===y,j=[{key:"name",header:"Gate Rule Criteria",render:e=>(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[e.passed?(0,t.jsx)(s.CheckCircle2,{size:16,className:"text-emerald-600 flex-shrink-0"}):(0,t.jsx)(a.XCircle,{size:16,className:"text-red-600 flex-shrink-0"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"font-semibold text-xs text-slate-900",children:e.name||e.rule_name}),(0,t.jsx)("div",{className:"text-[11px] text-slate-500",children:e.description})]})]})},{key:"observed_value",header:"Observed Value",width:"140px",render:e=>(0,t.jsx)("span",{className:"font-mono text-xs font-semibold text-slate-800",children:String(e.observed_value??e.value??"0")})},{key:"threshold",header:"Pass Threshold",width:"140px",render:e=>(0,t.jsx)("span",{className:"font-mono text-xs text-slate-500",children:String(e.threshold)})},{key:"passed",header:"Verdict",width:"120px",render:e=>(0,t.jsx)(c.StatusBadge,{status:e.passed?"ALLOW":"BLOCK"})}];return(0,t.jsxs)("div",{className:"p-8 space-y-6 max-w-7xl mx-auto",children:[(0,t.jsx)(o.PageHeader,{title:"CI/CD Security Gates",subtitle:"Automated release gating criteria evaluating bypasses, regression fixture replays, and posture baselines",badge:"CI/CD Enforcement",actions:(0,t.jsxs)("button",{onClick:f,disabled:x,className:"flex items-center gap-1.5 px-3 py-1.5 bg-white border border-slate-200 rounded-md text-xs font-medium text-slate-700 hover:bg-slate-50 transition-colors shadow-2xs",children:[(0,t.jsx)(n.RefreshCw,{size:13,className:x?"animate-spin":""}),(0,t.jsx)("span",{children:"Evaluate Gate"})]})}),(0,t.jsx)("div",{className:`p-4 rounded-lg border flex items-start justify-between ${v?"bg-emerald-50/80 border-emerald-200":"bg-red-50/80 border-red-200"}`,children:(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[v?(0,t.jsx)(s.CheckCircle2,{size:18,className:"text-emerald-700 mt-0.5"}):(0,t.jsx)(l.AlertTriangle,{size:18,className:"text-red-700 mt-0.5"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-xs font-semibold uppercase tracking-wider text-slate-700",children:"CI/CD Pipeline Decision"}),(0,t.jsx)("div",{className:"text-base font-bold text-slate-900 mt-0.5",children:v?"RELEASE APPROVED — All Security Gate Criteria Satisfied":"RELEASE BLOCKED — Security Criteria Violated"}),(0,t.jsxs)("p",{className:"text-xs text-slate-600 mt-1",children:["Evaluated pipeline build against deterministic invariants. Exit code: ",(0,t.jsx)("span",{className:"font-mono",children:v?"0 (SUCCESS)":"1 (FAILURE)"})]})]})]})}),(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[(0,t.jsx)(d.MetricCard,{label:"Total Gate Checks",value:b.length}),(0,t.jsx)(d.MetricCard,{label:"Passed Criteria",value:`${g} / ${b.length}`,status:"ALLOW"}),(0,t.jsx)(d.MetricCard,{label:"Failed Criteria",value:y,status:y>0?"BLOCK":"ALLOW"}),(0,t.jsx)(d.MetricCard,{label:"Prevention Rate",value:`${e.prevention_rate??100}%`,status:"ALLOW"})]}),(0,t.jsxs)("div",{className:"bg-white border border-slate-200 rounded-lg p-5 shadow-xs space-y-4",children:[(0,t.jsx)("div",{className:"text-xs font-semibold uppercase tracking-wider text-slate-500",children:"Criteria Evaluation Matrix"}),(0,t.jsx)(u.DataTable,{columns:j,data:b,keyField:"rule_name",emptyMessage:"No gate criteria defined."})]}),(0,t.jsxs)("div",{className:"bg-white border border-slate-200 rounded-lg p-5 shadow-xs space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-xs font-semibold uppercase tracking-wider text-slate-500",children:[(0,t.jsx)(i.Terminal,{size:14,className:"text-slate-600"}),(0,t.jsx)("span",{children:"CI/CD Pipeline Integration (GitHub Actions / GitLab CI)"})]}),(0,t.jsxs)("div",{className:"bg-slate-900 text-slate-100 rounded-lg p-4 font-mono text-xs space-y-1.5 border border-slate-800",children:[(0,t.jsx)("div",{className:"text-slate-500",children:"# Step in deployment pipeline: fail build if gates do not pass"}),(0,t.jsx)("div",{className:"text-emerald-400",children:"python -m agentguard security-gate --strict --json-output gate_result.json"})]})]})]})}])},49744,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(56420);let a={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};a.node;let n=(0,s.default)(a);var l=e.i(67927);let i={name:"inbox",size:24,node:[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]};i.node;let o=(0,s.default)(i);e.s(["DataTable",0,function({columns:e,data:s,keyExtractor:a,keyField:i,onRowClick:d,selectedKey:c,emptyMessage:u="No records found",emptySubtext:p="Try adjusting your filters or search query.",pageSize:m=15,isLoading:x=!1}){let[h,f]=r.default.useState(1),b=Math.max(1,Math.ceil(s.length/m)),g=s.slice((h-1)*m,h*m);return r.default.useEffect(()=>{f(1)},[s.length]),(0,t.jsxs)("div",{className:"bg-white border border-slate-200 rounded-lg shadow-sm overflow-hidden flex flex-col",children:[(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full text-left border-collapse text-xs",children:[(0,t.jsx)("thead",{children:(0,t.jsx)("tr",{className:"bg-slate-50 border-b border-slate-200",children:e.map(e=>(0,t.jsx)("th",{style:{width:e.width},className:`px-3.5 py-2.5 font-semibold text-slate-600 uppercase tracking-wider text-[10px] ${"right"===e.align?"text-right":"center"===e.align?"text-center":"text-left"}`,children:e.header},e.key))})}),(0,t.jsx)("tbody",{className:"divide-y divide-slate-100",children:x?(0,t.jsx)("tr",{children:(0,t.jsxs)("td",{colSpan:e.length,className:"py-12 text-center text-slate-400",children:[(0,t.jsx)("div",{className:"inline-block animate-spin rounded-full h-5 w-5 border-2 border-slate-300 border-t-sky-600 mb-2"}),(0,t.jsx)("div",{className:"text-xs",children:"Loading telemetry records…"})]})}):0===g.length?(0,t.jsx)("tr",{children:(0,t.jsxs)("td",{colSpan:e.length,className:"py-12 text-center",children:[(0,t.jsx)(o,{size:28,className:"mx-auto text-slate-300 mb-2"}),(0,t.jsx)("div",{className:"text-sm font-semibold text-slate-700",children:u}),(0,t.jsx)("div",{className:"text-xs text-slate-400 mt-0.5",children:p})]})}):g.map((r,s)=>{let n=a?a(r,s):i&&r[i]?String(r[i]):String(r.id||r.key||s),l=c===n;return(0,t.jsx)("tr",{onClick:()=>d&&d(r),className:`transition-colors ${l?"bg-sky-50/80 font-medium":"hover:bg-slate-50/80"} ${d?"cursor-pointer":""}`,children:e.map(e=>{let a=r[e.key],n=e.render?e.render(r,s):a;return(0,t.jsx)("td",{className:`px-3.5 py-2.5 text-slate-700 ${e.mono?"font-mono text-[11px]":""} ${"right"===e.align?"text-right":"center"===e.align?"text-center":"text-left"}`,children:n},e.key)})},n)})})]})}),s.length>m&&(0,t.jsxs)("div",{className:"px-4 py-2.5 border-t border-slate-200 bg-slate-50 flex items-center justify-between text-xs text-slate-500",children:[(0,t.jsxs)("div",{children:["Showing ",(0,t.jsx)("span",{className:"font-medium text-slate-800",children:(h-1)*m+1})," to"," ",(0,t.jsx)("span",{className:"font-medium text-slate-800",children:Math.min(h*m,s.length)})," ","of ",(0,t.jsx)("span",{className:"font-medium text-slate-800",children:s.length})," records"]}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("button",{onClick:()=>f(e=>Math.max(1,e-1)),disabled:1===h,className:"p-1 rounded border border-slate-200 bg-white text-slate-600 disabled:opacity-40 disabled:cursor-not-allowed hover:bg-slate-50 transition-colors",children:(0,t.jsx)(n,{size:14})}),(0,t.jsxs)("span",{className:"px-2 font-mono text-[11px]",children:[h," / ",b]}),(0,t.jsx)("button",{onClick:()=>f(e=>Math.min(b,e+1)),disabled:h===b,className:"p-1 rounded border border-slate-200 bg-white text-slate-600 disabled:opacity-40 disabled:cursor-not-allowed hover:bg-slate-50 transition-colors",children:(0,t.jsx)(l.ChevronRight,{size:14})})]})]})]})}],49744)},68442,e=>{"use strict";var t=e.i(43476);e.s(["MetricCard",0,function({label:e,value:r,subtext:s,trend:a,status:n="neutral",icon:l,badge:i}){return(0,t.jsxs)("div",{className:`bg-white rounded-lg border border-slate-200 p-4 shadow-sm ${{healthy:"border-l-4 border-l-emerald-500",warning:"border-l-4 border-l-amber-500",critical:"border-l-4 border-l-red-500",neutral:"border-l-4 border-l-slate-300"}["ALLOW"===n||"MONITOR"===n||"healthy"===n?"healthy":"HITL"===n||"warning"===n?"warning":"BLOCK"===n||"critical"===n?"critical":"neutral"]} flex flex-col justify-between`,children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 mb-2",children:[(0,t.jsx)("span",{className:"text-[11px] font-medium tracking-wider uppercase text-slate-500",children:e}),l&&(0,t.jsx)(l,{size:16,className:"text-slate-400"}),i&&(0,t.jsx)("span",{className:"text-[10px] font-semibold px-1.5 py-0.5 rounded bg-slate-100 text-slate-700",children:i})]}),(0,t.jsxs)("div",{className:"flex items-baseline justify-between gap-2 mt-1",children:[(0,t.jsx)("div",{className:"text-2xl font-bold tracking-tight text-slate-900 font-mono",children:r}),a&&(0,t.jsx)("span",{className:`text-xs font-medium ${a.isNeutral?"text-slate-500":a.isPositive?"text-emerald-700":"text-red-700"}`,children:a.value})]}),s&&(0,t.jsx)("div",{className:"mt-2 text-xs text-slate-500 truncate",children:s})]})}])},37757,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(22016),a=e.i(67927);e.s(["PageHeader",0,function({title:e,description:n,subtitle:l,breadcrumbs:i,actions:o,badge:d}){let c=n||l;return(0,t.jsxs)("div",{className:"mb-6 pb-4 border-b border-slate-200",children:[i&&i.length>0&&(0,t.jsx)("nav",{className:"flex items-center gap-1.5 text-xs text-slate-500 mb-2",children:i.map((e,n)=>{let l=n===i.length-1;return(0,t.jsxs)(r.default.Fragment,{children:[n>0&&(0,t.jsx)(a.ChevronRight,{size:12,className:"text-slate-400"}),e.href&&!l?(0,t.jsx)(s.default,{href:e.href,className:"hover:text-slate-800 transition-colors",children:e.label}):(0,t.jsx)("span",{className:l?"text-slate-900 font-medium":"",children:e.label})]},n)})}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)("h1",{className:"text-xl font-semibold text-slate-900 tracking-tight",children:e}),d&&(0,t.jsx)("div",{children:d})]}),c&&(0,t.jsx)("p",{className:"mt-1 text-xs text-slate-500 max-w-3xl leading-relaxed",children:c})]}),o&&(0,t.jsx)("div",{className:"flex items-center gap-2 flex-shrink-0",children:o})]})]})}])},72854,e=>{"use strict";var t=e.i(43476);function r({decision:e,status:s}){let a=(e||s||"").toUpperCase();return"BLOCK"===a||"DENY"===a||"BLOCKED"===a?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-semibold bg-red-50 text-red-700 border border-red-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-red-600"}),"BLOCK"]}):"ALLOW"===a||"ALLOWED"===a?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-semibold bg-emerald-50 text-emerald-700 border border-emerald-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-600"}),"ALLOW"]}):"HITL"===a||"APPROVAL_REQUIRED"===a?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-semibold bg-amber-50 text-amber-700 border border-amber-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-600"}),"HITL"]}):"MONITOR"===a||"AUDIT"===a?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-semibold bg-blue-50 text-blue-700 border border-blue-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-blue-600"}),"MONITOR"]}):(0,t.jsx)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-medium bg-slate-100 text-slate-700 border border-slate-200",children:e||s||"UNKNOWN"})}e.s(["DecisionBadge",0,r,"SeverityBadge",0,function({severity:e}){let r=(e||"").toUpperCase();return"CRITICAL"===r?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-semibold bg-red-50 text-red-700 border border-red-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-red-600"}),"CRITICAL"]}):"HIGH"===r?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-semibold bg-orange-50 text-orange-700 border border-orange-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-orange-600"}),"HIGH"]}):"MEDIUM"===r?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-semibold bg-amber-50 text-amber-700 border border-amber-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-600"}),"MEDIUM"]}):"LOW"===r?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-medium bg-blue-50 text-blue-700 border border-blue-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-blue-600"}),"LOW"]}):(0,t.jsx)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-medium bg-slate-100 text-slate-600 border border-slate-200",children:e||"INFO"})},"StatusBadge",0,r,"TaintBadge",0,function({taint:e}){let r=(e||"").toUpperCase();return"TAINTED"===r||"CRITICAL"===r?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-semibold bg-red-50 text-red-700 border border-red-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-red-600"}),"TAINTED"]}):"CLEAN"===r||"TRUSTED"===r||"NONE"===r?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-medium bg-emerald-50 text-emerald-700 border border-emerald-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500"}),"CLEAN"]}):(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-medium bg-amber-50 text-amber-700 border border-amber-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-500"}),e||"UNASSESSED"]})},"TrustBadge",0,function({trust:e}){let r=(e||"").toUpperCase();return"HIGH"===r||"TRUSTED"===r?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-medium bg-emerald-50 text-emerald-700 border border-emerald-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500"}),e]}):"MEDIUM"===r?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-medium bg-blue-50 text-blue-700 border border-blue-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-blue-500"}),"MEDIUM"]}):"LOW"===r||"UNTRUSTED"===r?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-medium bg-red-50 text-red-700 border border-red-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-red-500"}),e]}):(0,t.jsx)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-medium bg-slate-100 text-slate-700 border border-slate-200",children:e||"UNKNOWN"})}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59798,e=>{"use strict";var t=e.i(71645),r=e.i(27241),i=e.i(61764),n=e.i(52734);function a(e,t){var n,a,o=(0,r.useAppSelector)(t=>(0,i.selectXAxisSettings)(t,e)),l=(0,r.useAppSelector)(e=>(0,i.selectYAxisSettings)(e,t)),s=null!=(n=null==o?void 0:o.allowDataOverflow)?n:i.implicitXAxis.allowDataOverflow,c=null!=(a=null==l?void 0:l.allowDataOverflow)?a:i.implicitYAxis.allowDataOverflow;return{needClip:s||c,needClipX:s,needClipY:c}}e.s(["GraphicalItemClipPath",0,function(e){var o=e.xAxisId,l=e.yAxisId,s=e.clipPathId,c=(0,n.usePlotArea)(),u=a(o,l),f=u.needClipX,p=u.needClipY,h=u.needClip,y=(0,r.useAppSelector)(e=>(0,i.selectXAxisRange)(e,o,!1)),d=(0,r.useAppSelector)(e=>(0,i.selectYAxisRange)(e,l,!1));if(!h||!c)return null;var v=c.x,m=c.y,b=c.width,g=c.height,x=f&&y?Math.min(y[0],y[1]):v-b/2,O=p&&d?Math.min(d[0],d[1]):m-g/2,w=f&&y?Math.abs(y[1]-y[0]):2*b,_=p&&d?Math.abs(d[1]-d[0]):2*g;return t.createElement("clipPath",{id:"clipPath-".concat(s)},t.createElement("rect",{x:x,y:O,width:w,height:_}))},"useNeedsClip",0,a])},85183,93230,72526,57563,20669,51587,35709,e=>{"use strict";var t=e.i(71645),r=e.i(7670),i=e.i(92200);function n(){}function a(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function o(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}let l="[object RegExp]",s="[object String]",c="[object Number]",u="[object Boolean]",f="[object Arguments]",p="[object Symbol]",h="[object Date]",y="[object Map]",d="[object Set]",v="[object Array]",m="[object ArrayBuffer]",b="[object Object]",g="[object DataView]",x="[object Uint8Array]",O="[object Uint8ClampedArray]",w="[object Uint16Array]",_="[object Uint32Array]",j="[object Int8Array]",A="[object Int16Array]",P="[object Int32Array]",k="[object Float32Array]",S="[object Float64Array]",E="object"==typeof globalThis&&globalThis||"object"==typeof window&&window||"object"==typeof self&&self||e.g||function(){return this}();function T(e){return void 0!==E.Buffer&&E.Buffer.isBuffer(e)}function N(e){if(!e||"object"!=typeof e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&"[object Object]"===Object.prototype.toString.call(e)}var C=e.i(97704),D=e.i(97865),I=e.i(9516),M=e.i(494),L=e.i(94395),z=e.i(73393),B=e.i(68431),R=e.i(62728),$=function(e){var t=e.width,r=e.height,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(i%180+180)%180*Math.PI/180,a=Math.atan(r/t);return Math.abs(n>a&&n<Math.PI-a?r/Math.sin(n):t/Math.cos(n))};function X(e,t){if(t<1)return[];if(1===t)return e;for(var r=[],i=0;i<e.length;i+=t){var n=e[i];void 0!==n&&r.push(n)}return r}function Y(e,t,r,i,n){if(e*t<e*i||e*t>e*n)return!1;var a=r();return e*(t-e*a/2-i)>=0&&e*(t+e*a/2-n)<=0}function G(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function F(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?G(Object(r),!0).forEach(function(t){var i,n,a;i=e,n=t,a=r[t],(n=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(n))in i?Object.defineProperty(i,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[n]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function V(e,t,r){var i,n,a,o,l,s,c=e.tick,u=e.ticks,f=e.viewBox,p=e.minTickGap,h=e.orientation,y=e.interval,d=e.tickFormatter,v=e.unit,m=e.angle;if(!u||!u.length||!c)return[];if((0,L.isNumber)(y)||R.Global.isSsr)return null!=(s=X(u,((0,L.isNumber)(y)?y:0)+1))?s:[];var b="top"===h||"bottom"===h?"width":"height",g=v&&"width"===b?(0,B.getStringSize)(v,{fontSize:t,letterSpacing:r}):{width:0,height:0},x=(e,i)=>{var n,a="function"==typeof d?d(e.value,i):e.value;return"width"===b?(n=(0,B.getStringSize)(a,{fontSize:t,letterSpacing:r}),$({width:n.width+g.width,height:n.height+g.height},m)):(0,B.getStringSize)(a,{fontSize:t,letterSpacing:r})[b]},O=u[0],w=u[1],_=u.length>=2&&null!=O&&null!=w?(0,L.mathSign)(w.coordinate-O.coordinate):1,j=(i="width"===b,n=f.x,a=f.y,o=f.width,l=f.height,1===_?{start:i?n:a,end:i?n+o:a+l}:{start:i?n+o:a+l,end:i?n:a});return"equidistantPreserveStart"===y?function(e,t,r,i,n){for(var a,o=(i||[]).slice(),l=t.start,s=t.end,c=0,u=1,f=l;u<=o.length;)if(a=function(){var t,a=null==i?void 0:i[c];if(void 0===a)return{v:X(i,u)};var o=c,p=()=>(void 0===t&&(t=r(a,o)),t),h=a.coordinate,y=0===c||Y(e,h,p,f,s);y||(c=0,f=l,u+=1),y&&(f=h+e*(p()/2+n),c+=u)}())return a.v;return[]}(_,j,x,u,p):"equidistantPreserveEnd"===y?function(e,t,r,i,n){var a=(i||[]).slice().length;if(0===a)return[];for(var o=t.start,l=t.end,s=1;s<=a;s++){for(var c,u=(a-1)%s,f=o,p=!0,h=u;h<a&&(0===(c=function(){var t,a=i[h];if(null==a)return 0;var o=h,s=()=>(void 0===t&&(t=r(a,o)),t),c=a.coordinate,y=h===u||Y(e,c,s,f,l);if(!y)return p=!1,1;y&&(f=c+e*(s()/2+n))}())||1!==c);h+=s);if(p){for(var y=[],d=u;d<a;d+=s){var v=i[d];null!=v&&y.push(v)}return y}}return[]}(_,j,x,u,p):("preserveStart"===y||"preserveStartEnd"===y?function(e,t,r,i,n,a){var o=(i||[]).slice(),l=o.length,s=t.start,c=t.end;if(a){var u=i[l-1];if(null!=u){var f=r(u,l-1),p=e*(u.coordinate+e*f/2-c);o[l-1]=u=F(F({},u),{},{tickCoord:p>0?u.coordinate-p*e:u.coordinate}),null!=u.tickCoord&&Y(e,u.tickCoord,()=>f,s,c)&&(c=u.tickCoord-e*(f/2+n),o[l-1]=F(F({},u),{},{isShow:!0}))}}for(var h=a?l-1:l,y=function(t){var i,a=o[t];if(null==a)return 1;var l=a,u=()=>(void 0===i&&(i=r(a,t)),i);if(0===t){var f=e*(l.coordinate-e*u()/2-s);o[t]=l=F(F({},l),{},{tickCoord:f<0?l.coordinate-f*e:l.coordinate})}else o[t]=l=F(F({},l),{},{tickCoord:l.coordinate});null!=l.tickCoord&&Y(e,l.tickCoord,u,s,c)&&(s=l.tickCoord+e*(u()/2+n),o[t]=F(F({},l),{},{isShow:!0}))},d=0;d<h;d++)if(y(d))continue;return o}(_,j,x,u,p,"preserveStartEnd"===y):function(e,t,r,i,n){for(var a=(i||[]).slice(),o=a.length,l=t.start,s=t.end,c=function(t){var i,c=a[t];if(null==c)return 1;var u=c,f=()=>(void 0===i&&(i=r(c,t)),i);if(t===o-1){var p=e*(u.coordinate+e*f()/2-s);a[t]=u=F(F({},u),{},{tickCoord:p>0?u.coordinate-p*e:u.coordinate})}else a[t]=u=F(F({},u),{},{tickCoord:u.coordinate});null!=u.tickCoord&&Y(e,u.tickCoord,f,l,s)&&(s=u.tickCoord-e*(f()/2+n),a[t]=F(F({},u),{},{isShow:!0}))},u=o-1;u>=0;u--)if(c(u))continue;return a}(_,j,x,u,p)).filter(e=>e.isShow)}var U=e.i(57999),Z=e.i(51883),H=e.i(29601),W=e.i(18457),q=e.i(51161),K=e.i(43637),J=e.i(27241),Q=["axisLine","width","height","className","hide","ticks","axisType","axisId"];function ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var i,n,a,o,l=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(i=a.call(r)).done)&&(l.push(i.value),l.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return et(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?et(e,t):void 0}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function et(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function er(){return(er=Object.assign.bind()).apply(null,arguments)}function ei(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function en(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ei(Object(r),!0).forEach(function(t){var i,n,a;i=e,n=t,a=r[t],(n=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(n))in i?Object.defineProperty(i,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[n]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ei(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var ea={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd",zIndex:W.DefaultZIndexes.axis};function eo(e){var n=e.x,a=e.y,o=e.width,l=e.height,s=e.orientation,c=e.mirror,u=e.axisLine,f=e.otherSvgProps;if(!u)return null;var p=en(en(en({},f),(0,U.svgPropertiesNoEvents)(u)),{},{fill:"none"});if("top"===s||"bottom"===s){var h=+("top"===s&&!c||"bottom"===s&&c);p=en(en({},p),{},{x1:n,y1:a+h*l,x2:n+o,y2:a+h*l})}else{var y=+("left"===s&&!c||"right"===s&&c);p=en(en({},p),{},{x1:n+y*o,y1:a,x2:n+y*o,y2:a+l})}return t.createElement("line",er({},p,{className:(0,r.clsx)("recharts-cartesian-axis-line",(0,i.default)(u,"className"))}))}function el(e){var i,n=e.option,a=e.tickProps,o=e.value,l=(0,r.clsx)(a.className,"recharts-cartesian-axis-tick-value");if(t.isValidElement(n))i=t.cloneElement(n,en(en({},a),{},{className:l}));else if("function"==typeof n)i=n(en(en({},a),{},{className:l}));else{var s="recharts-cartesian-axis-tick-value";"boolean"!=typeof n&&(s=(0,r.clsx)(s,(0,q.getClassNameFromUnknown)(n))),i=t.createElement(I.Text,er({},a,{className:s}),o)}return i}function es(e){var r=e.ticks,i=e.axisType,f=e.axisId,E=(0,J.useAppDispatch)(),D=(0,t.useRef)(null);return(0,t.useEffect)(()=>{if(null!=f&&null!=i){var e,t=r.map(e=>({value:e.value,coordinate:e.coordinate,offset:e.offset,index:e.index})),I=D.current;null!=I&&I.axisId===f&&I.axisType===i&&(e=I.ticks,function e(t,r,i,n,f,E,D){let I=D(t,r,i,n,f,E);if(void 0!==I)return I;if(typeof t==typeof r)switch(typeof t){case"bigint":case"string":case"boolean":case"symbol":case"undefined":case"function":return t===r;case"number":return t===r||Object.is(t,r)}return function t(r,i,n,f){if(Object.is(r,i))return!0;let E=o(r),D=o(i);if("[object Arguments]"===E&&(E=b),"[object Arguments]"===D&&(D=b),E!==D)return!1;switch(E){case s:return r.toString()===i.toString();case c:return(0,C.eq)(r.valueOf(),i.valueOf());case u:case h:case p:return Object.is(r.valueOf(),i.valueOf());case l:return r.source===i.source&&r.flags===i.flags;case"[object Function]":return r===i}let I=(n=n??new Map).get(r),M=n.get(i);if(null!=I&&null!=M)return I===i;n.set(r,i),n.set(i,r);try{switch(E){case y:if(r.size!==i.size)return!1;for(let[t,a]of r.entries())if(!i.has(t)||!e(a,i.get(t),t,r,i,n,f))return!1;return!0;case d:{if(r.size!==i.size)return!1;let t=Array.from(r.values()),a=Array.from(i.values());for(let o=0;o<t.length;o++){let l=t[o],s=a.findIndex(t=>e(l,t,void 0,r,i,n,f));if(-1===s)return!1;a.splice(s,1)}return!0}case v:case x:case O:case w:case _:case"[object BigUint64Array]":case j:case A:case P:case"[object BigInt64Array]":case k:case S:if(T(r)!==T(i)||r.length!==i.length)return!1;for(let t=0;t<r.length;t++)if(!e(r[t],i[t],t,r,i,n,f))return!1;return!0;case m:if(r.byteLength!==i.byteLength)return!1;return t(new Uint8Array(r),new Uint8Array(i),n,f);case g:if(r.byteLength!==i.byteLength||r.byteOffset!==i.byteOffset)return!1;return t(new Uint8Array(r),new Uint8Array(i),n,f);case"[object Error]":return r.name===i.name&&r.message===i.message;case b:{if(!(t(r.constructor,i.constructor,n,f)||N(r)&&N(i)))return!1;let o=[...Object.keys(r),...a(r)],l=[...Object.keys(i),...a(i)];if(o.length!==l.length)return!1;for(let t=0;t<o.length;t++){let a=o[t],l=r[a];if(!Object.hasOwn(i,a))return!1;let s=i[a];if(!e(l,s,a,r,i,n,f))return!1}return!0}default:return!1}}finally{n.delete(r),n.delete(i)}}(t,r,E,D)}(e,t,void 0,void 0,void 0,void 0,n))||(D.current={ticks:t,axisId:f,axisType:i},E((0,K.setRenderedTicks)({ticks:t,axisId:f,axisType:i})))}},[E,r,f,i]),(0,t.useEffect)(()=>null==f||null==i?L.noop:()=>{E((0,K.removeRenderedTicks)({axisId:f,axisType:i}))},[E,f,i]),null}var ec=(0,t.forwardRef)((e,n)=>{var a=e.ticks,o=e.tick,l=e.tickLine,s=e.stroke,c=e.tickFormatter,u=e.unit,f=e.padding,p=e.tickTextProps,h=e.orientation,y=e.mirror,d=e.x,v=e.y,m=e.width,b=e.height,g=e.tickSize,x=e.tickMargin,O=e.fontSize,w=e.letterSpacing,_=e.getTicksConfig,j=e.events,A=e.axisType,P=e.axisId,k=V(en(en({},_),{},{ticks:void 0===a?[]:a}),O,w),S=(0,U.svgPropertiesNoEvents)(_),E=(0,U.svgPropertiesNoEventsFromUnknown)(o),T=(0,I.isValidTextAnchor)(S.textAnchor)?S.textAnchor:function(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}(h,y),N=function(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}(h,y),C={};"object"==typeof l&&(C=l);var M=en(en({},S),{},{fill:"none"},C),B=k.map(e=>en({entry:e},function(e,t,r,i,n,a,o,l,s){var c,u,f,p,h,y,d=l?-1:1,v=e.tickSize||o,m=(0,L.isNumber)(e.tickCoord)?e.tickCoord:e.coordinate;switch(a){case"top":c=u=e.coordinate,y=(f=(p=r+!l*n)-d*v)-d*s,h=m;break;case"left":f=p=e.coordinate,h=(c=(u=t+!l*i)-d*v)-d*s,y=m;break;case"right":f=p=e.coordinate,h=(c=(u=t+l*i)+d*v)+d*s,y=m;break;default:c=u=e.coordinate,y=(f=(p=r+l*n)+d*v)+d*s,h=m}return{line:{x1:c,y1:f,x2:u,y2:p},tick:{x:h,y:y}}}(e,d,v,m,b,h,g,y,x))),R=B.map(e=>{var n=e.entry,a=e.line;return t.createElement(D.Layer,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(n.value,"-").concat(n.coordinate,"-").concat(n.tickCoord)},l&&t.createElement("line",er({},M,a,{className:(0,r.clsx)("recharts-cartesian-axis-tick-line",(0,i.default)(l,"className"))})))}),$=B.map((e,r)=>{var i,n,a=e.entry,l=e.tick,h=en(en(en(en({verticalAnchor:N},S),{},{textAnchor:T,stroke:"none",fill:s},l),{},{index:r,payload:a,visibleTicksCount:k.length,tickFormatter:c,padding:f},p),{},{angle:null!=(i=null!=(n=null==p?void 0:p.angle)?n:S.angle)?i:0}),y=en(en({},h),E);return t.createElement(D.Layer,er({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(a.value,"-").concat(a.coordinate,"-").concat(a.tickCoord)},(0,z.adaptEventsOfChild)(j,a,r)),o&&t.createElement(el,{option:o,tickProps:y,value:"".concat("function"==typeof c?c(a.value,r):a.value).concat(u||"")}))});return t.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(A,"-ticks")},t.createElement(es,{ticks:k,axisId:P,axisType:A}),$.length>0&&t.createElement(H.ZIndexLayer,{zIndex:W.DefaultZIndexes.label},t.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(A,"-tick-labels"),ref:n},$)),R.length>0&&t.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(A,"-tick-lines")},R))}),eu=(0,t.forwardRef)((e,i)=>{var n=e.axisLine,a=e.width,o=e.height,l=e.className,s=e.hide,c=e.ticks,u=e.axisType,f=e.axisId,p=function(e,t){if(null==e)return{};var r,i,n=function(e,t){if(null==e)return{};var r={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;r[i]=e[i]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(e,Q),h=ee((0,t.useState)(""),2),y=h[0],d=h[1],v=ee((0,t.useState)(""),2),m=v[0],b=v[1],g=(0,t.useRef)(null);(0,t.useImperativeHandle)(i,()=>({getCalculatedWidth:()=>{var t;return(e=>{var t=e.ticks,r=e.label,i=e.labelGapWithTick,n=e.tickSize,a=e.tickMargin,o=0;if(t){Array.from(t).forEach(e=>{if(e){var t=e.getBoundingClientRect();t.width>o&&(o=t.width)}});var l=r?r.getBoundingClientRect().width:0;return Math.round(o+((void 0===n?0:n)+(void 0===a?0:a))+l+(r?void 0===i?5:i:0))}return 0})({ticks:g.current,label:null==(t=e.labelRef)?void 0:t.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})},getCalculatedHeight:()=>{var t;return(e=>{var t=e.ticks,r=e.label,i=e.labelGapWithTick,n=e.tickSize,a=e.tickMargin,o=0;if(t){Array.from(t).forEach(e=>{if(e){var t=e.getBoundingClientRect();t.height>o&&(o=t.height)}});var l=r?r.getBoundingClientRect().height:0;return Math.round(o+((void 0===n?0:n)+(void 0===a?0:a))+l+(r?void 0===i?5:i:0))}return 0})({ticks:g.current,label:null==(t=e.labelRef)?void 0:t.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var x=(0,t.useCallback)(e=>{if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value");g.current=t;var r=t[0];if(r){var i=window.getComputedStyle(r),n=i.fontSize,a=i.letterSpacing;(n!==y||a!==m)&&(d(n),b(a))}}},[y,m]);return s||null!=a&&a<=0||null!=o&&o<=0?null:t.createElement(H.ZIndexLayer,{zIndex:e.zIndex},t.createElement(D.Layer,{className:(0,r.clsx)("recharts-cartesian-axis",l)},t.createElement(eo,{x:e.x,y:e.y,width:a,height:o,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:(0,U.svgPropertiesNoEvents)(e)}),t.createElement(ec,{ref:x,axisType:u,events:p,fontSize:y,getTicksConfig:e,height:e.height,letterSpacing:m,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:c,unit:e.unit,width:e.width,x:e.x,y:e.y,axisId:f}),t.createElement(M.CartesianLabelContextProvider,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},t.createElement(M.CartesianLabelFromLabelProp,{label:e.label,labelRef:e.labelRef}),e.children)))}),ef=t.forwardRef((e,r)=>{var i=(0,Z.resolveDefaultProps)(e,ea);return t.createElement(eu,er({},i,{ref:r}))});ef.displayName="CartesianAxis";var ep=e.i(29194),eh=e.i(61764),ey=e.i(41088),ed=e.i(75337),ev=e.i(20135),em=["domain","range"],eb=["domain","range"];function eg(e,t){if(null==e)return{};var r,i,n=function(e,t){if(null==e)return{};var r={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;r[i]=e[i]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ex(e,t){return e===t||!!(Array.isArray(e)&&2===e.length&&Array.isArray(t))&&2===t.length&&e[0]===t[0]&&e[1]===t[1]}function eO(e,t){if(e===t)return!0;var r=e.domain,i=e.range,n=eg(e,em),a=t.domain,o=t.range,l=eg(t,eb);return!!ex(r,a)&&!!ex(i,o)&&(0,ev.propsAreEqual)(n,l)}var ew=e.i(46710),e_=e.i(6393),ej=["type"],eA=["dangerouslySetInnerHTML","ticks","scale"],eP=["id","scale"];function ek(){return(ek=Object.assign.bind()).apply(null,arguments)}function eS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function eE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eS(Object(r),!0).forEach(function(t){var i,n,a;i=e,n=t,a=r[t],(n=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(n))in i?Object.defineProperty(i,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[n]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eS(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function eT(e,t){if(null==e)return{};var r,i,n=function(e,t){if(null==e)return{};var r={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;r[i]=e[i]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eN(e){var r=(0,J.useAppDispatch)(),i=(0,t.useRef)(null),n=(0,ew.useCartesianChartLayout)(),a=e.type,o=eT(e,ej),l=(0,e_.getAxisTypeBasedOnLayout)(n,"xAxis",a),s=(0,t.useMemo)(()=>{if(null!=l)return eE(eE({},o),{},{type:l})},[o,l]);return(0,t.useLayoutEffect)(()=>{null!=s&&(null===i.current?r((0,ep.addXAxis)(s)):i.current!==s&&r((0,ep.replaceXAxis)({prev:i.current,next:s})),i.current=s)},[s,r]),(0,t.useLayoutEffect)(()=>()=>{i.current&&(r((0,ep.removeXAxis)(i.current)),i.current=null)},[r]),null}var eC=e=>{var i=e.xAxisId,n=e.className,a=e.height,o=e.label,l=(0,t.useRef)(null),s=(0,t.useRef)(null),c=(0,J.useAppSelector)(ey.selectAxisViewBox),u=(0,ed.useIsPanorama)(),f=(0,J.useAppDispatch)(),p="xAxis",h=(0,J.useAppSelector)(e=>(0,eh.selectTicksOfAxis)(e,p,i,u)),y=(0,J.useAppSelector)(e=>(0,eh.selectXAxisSize)(e,i)),d=(0,J.useAppSelector)(e=>(0,eh.selectXAxisPosition)(e,i)),v=(0,J.useAppSelector)(e=>(0,eh.selectXAxisSettingsNoDefaults)(e,i));if((0,t.useLayoutEffect)(()=>{if(!("auto"!==a||!y||(0,M.isLabelContentAFunction)(o)||(0,t.isValidElement)(o))&&null!=v){var e=l.current;if(e){var r=e.getCalculatedHeight();Math.round(y.height)!==Math.round(r)&&f((0,ep.updateXAxisHeight)({id:i,height:r}))}}},[h,y,f,o,i,a,v]),null==y||null==d||null==v)return null;e.dangerouslySetInnerHTML,e.ticks,e.scale;var m=eT(e,eA);v.id,v.scale;var b=eT(v,eP);return t.createElement(ef,ek({},m,b,{ref:l,labelRef:s,x:d.x,y:d.y,width:y.width,height:y.height,className:(0,r.clsx)("recharts-".concat(p," ").concat(p),n),viewBox:c,ticks:h,axisType:p,axisId:i}))},eD={allowDataOverflow:eh.implicitXAxis.allowDataOverflow,allowDecimals:eh.implicitXAxis.allowDecimals,allowDuplicatedCategory:eh.implicitXAxis.allowDuplicatedCategory,angle:eh.implicitXAxis.angle,axisLine:ea.axisLine,height:eh.implicitXAxis.height,hide:!1,includeHidden:eh.implicitXAxis.includeHidden,interval:eh.implicitXAxis.interval,label:!1,minTickGap:eh.implicitXAxis.minTickGap,mirror:eh.implicitXAxis.mirror,orientation:eh.implicitXAxis.orientation,padding:eh.implicitXAxis.padding,reversed:eh.implicitXAxis.reversed,scale:eh.implicitXAxis.scale,tick:eh.implicitXAxis.tick,tickCount:eh.implicitXAxis.tickCount,tickLine:ea.tickLine,tickSize:ea.tickSize,type:eh.implicitXAxis.type,niceTicks:eh.implicitXAxis.niceTicks,xAxisId:0},eI=t.memo(e=>{var r=(0,Z.resolveDefaultProps)(e,eD);return t.createElement(t.Fragment,null,t.createElement(eN,{allowDataOverflow:r.allowDataOverflow,allowDecimals:r.allowDecimals,allowDuplicatedCategory:r.allowDuplicatedCategory,angle:r.angle,dataKey:r.dataKey,domain:r.domain,height:r.height,hide:r.hide,id:r.xAxisId,includeHidden:r.includeHidden,interval:r.interval,minTickGap:r.minTickGap,mirror:r.mirror,name:r.name,orientation:r.orientation,padding:r.padding,reversed:r.reversed,scale:r.scale,tick:r.tick,tickCount:r.tickCount,tickFormatter:r.tickFormatter,ticks:r.ticks,type:r.type,unit:r.unit,niceTicks:r.niceTicks}),t.createElement(eC,r))},eO);eI.displayName="XAxis",e.s(["XAxis",0,eI],85183);var eM=["type"],eL=["dangerouslySetInnerHTML","ticks","scale"],ez=["id","scale"];function eB(){return(eB=Object.assign.bind()).apply(null,arguments)}function eR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function e$(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eR(Object(r),!0).forEach(function(t){var i,n,a;i=e,n=t,a=r[t],(n=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(n))in i?Object.defineProperty(i,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[n]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eR(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function eX(e,t){if(null==e)return{};var r,i,n=function(e,t){if(null==e)return{};var r={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;r[i]=e[i]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eY(e){var r=(0,J.useAppDispatch)(),i=(0,t.useRef)(null),n=(0,ew.useCartesianChartLayout)(),a=e.type,o=eX(e,eM),l=(0,e_.getAxisTypeBasedOnLayout)(n,"yAxis",a),s=(0,t.useMemo)(()=>{if(null!=l)return e$(e$({},o),{},{type:l})},[l,o]);return(0,t.useLayoutEffect)(()=>{null!=s&&(null===i.current?r((0,ep.addYAxis)(s)):i.current!==s&&r((0,ep.replaceYAxis)({prev:i.current,next:s})),i.current=s)},[s,r]),(0,t.useLayoutEffect)(()=>()=>{i.current&&(r((0,ep.removeYAxis)(i.current)),i.current=null)},[r]),null}function eG(e){var i=e.yAxisId,n=e.className,a=e.width,o=e.label,l=(0,t.useRef)(null),s=(0,t.useRef)(null),c=(0,J.useAppSelector)(ey.selectAxisViewBox),u=(0,ed.useIsPanorama)(),f=(0,J.useAppDispatch)(),p="yAxis",h=(0,J.useAppSelector)(e=>(0,eh.selectYAxisSize)(e,i)),y=(0,J.useAppSelector)(e=>(0,eh.selectYAxisPosition)(e,i)),d=(0,J.useAppSelector)(e=>(0,eh.selectTicksOfAxis)(e,p,i,u)),v=(0,J.useAppSelector)(e=>(0,eh.selectYAxisSettingsNoDefaults)(e,i));if((0,t.useLayoutEffect)(()=>{if(!("auto"!==a||!h||(0,M.isLabelContentAFunction)(o)||(0,t.isValidElement)(o))&&null!=v){var e=l.current;if(e){var r=e.getCalculatedWidth();Math.round(h.width)!==Math.round(r)&&f((0,ep.updateYAxisWidth)({id:i,width:r}))}}},[d,h,f,o,i,a,v]),null==h||null==y||null==v)return null;e.dangerouslySetInnerHTML,e.ticks,e.scale;var m=eX(e,eL);v.id,v.scale;var b=eX(v,ez);return t.createElement(ef,eB({},m,b,{ref:l,labelRef:s,x:y.x,y:y.y,tickTextProps:"auto"===a?{width:void 0}:{width:a},width:h.width,height:h.height,className:(0,r.clsx)("recharts-".concat(p," ").concat(p),n),viewBox:c,ticks:d,axisType:p,axisId:i}))}var eF={allowDataOverflow:eh.implicitYAxis.allowDataOverflow,allowDecimals:eh.implicitYAxis.allowDecimals,allowDuplicatedCategory:eh.implicitYAxis.allowDuplicatedCategory,angle:eh.implicitYAxis.angle,axisLine:ea.axisLine,hide:!1,includeHidden:eh.implicitYAxis.includeHidden,interval:eh.implicitYAxis.interval,label:!1,minTickGap:eh.implicitYAxis.minTickGap,mirror:eh.implicitYAxis.mirror,orientation:eh.implicitYAxis.orientation,padding:eh.implicitYAxis.padding,reversed:eh.implicitYAxis.reversed,scale:eh.implicitYAxis.scale,tick:eh.implicitYAxis.tick,tickCount:eh.implicitYAxis.tickCount,tickLine:ea.tickLine,tickSize:ea.tickSize,type:eh.implicitYAxis.type,niceTicks:eh.implicitYAxis.niceTicks,width:eh.implicitYAxis.width,yAxisId:0},eV=t.memo(e=>{var r=(0,Z.resolveDefaultProps)(e,eF);return t.createElement(t.Fragment,null,t.createElement(eY,{interval:r.interval,id:r.yAxisId,scale:r.scale,type:r.type,domain:r.domain,allowDataOverflow:r.allowDataOverflow,dataKey:r.dataKey,allowDuplicatedCategory:r.allowDuplicatedCategory,allowDecimals:r.allowDecimals,tickCount:r.tickCount,padding:r.padding,includeHidden:r.includeHidden,reversed:r.reversed,ticks:r.ticks,width:r.width,orientation:r.orientation,mirror:r.mirror,hide:r.hide,unit:r.unit,name:r.name,angle:r.angle,minTickGap:r.minTickGap,tick:r.tick,tickFormatter:r.tickFormatter,niceTicks:r.niceTicks}),t.createElement(eG,r))},eO);eV.displayName="YAxis",e.s(["YAxis",0,eV],93230);var eU=e.i(29071),eZ=e.i(79812),eH=e.i(22075),eW=(0,t.createContext)({grid:{stroke:"#ccc",fill:"none"}});eW.Provider;var eq=["x1","y1","x2","y2","key"],eK=["offset"],eJ=["xAxisId","yAxisId"],eQ=["xAxisId","yAxisId"];function e0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function e1(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?e0(Object(r),!0).forEach(function(t){var i,n,a;i=e,n=t,a=r[t],(n=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(n))in i?Object.defineProperty(i,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[n]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e0(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function e2(){return(e2=Object.assign.bind()).apply(null,arguments)}function e3(e,t){if(null==e)return{};var r,i,n=function(e,t){if(null==e)return{};var r={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;r[i]=e[i]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var e6=e=>{var r=e.fill;if(!r||"none"===r)return null;var i=e.fillOpacity,n=e.x,a=e.y,o=e.width,l=e.height,s=e.ry;return t.createElement("rect",{x:n,y:a,ry:s,width:o,height:l,stroke:"none",fill:r,fillOpacity:i,className:"recharts-cartesian-grid-bg"})};function e5(e){var r=e.option,i=e.lineItemProps;if(t.isValidElement(r))n=t.cloneElement(r,i);else if("function"==typeof r)n=r(i);else{var n,a,o=i.x1,l=i.y1,s=i.x2,c=i.y2,u=i.key,f=e3(i,eq),p=null!=(a=(0,U.svgPropertiesNoEvents)(f))?a:{},h=(p.offset,e3(p,eK)),y=Array.isArray(h.strokeDasharray)?h.strokeDasharray.join(","):h.strokeDasharray;n=t.createElement("line",e2({},h,{strokeDasharray:y,x1:o,y1:l,x2:s,y2:c,fill:"none",key:u}))}return n}function e7(e){var r=e.x,i=e.width,n=e.horizontal,a=void 0===n||n,o=e.horizontalPoints;if(!a||!o||!o.length)return null;e.xAxisId,e.yAxisId;var l=e3(e,eJ),s=o.map((e,n)=>{var o=e1(e1({},l),{},{x1:r,y1:e,x2:r+i,y2:e,key:"line-".concat(n),index:n});return t.createElement(e5,{key:"line-".concat(n),option:a,lineItemProps:o})});return t.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function e4(e){var r=e.y,i=e.height,n=e.vertical,a=void 0===n||n,o=e.verticalPoints;if(!a||!o||!o.length)return null;e.xAxisId,e.yAxisId;var l=e3(e,eQ),s=o.map((e,n)=>{var o=e1(e1({},l),{},{x1:e,y1:r,x2:e,y2:r+i,key:"line-".concat(n),index:n});return t.createElement(e5,{option:a,lineItemProps:o,key:"line-".concat(n)})});return t.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function e9(e){var r=e.horizontalFill,i=e.fillOpacity,n=e.x,a=e.y,o=e.width,l=e.height,s=e.horizontalPoints,c=e.horizontal;if(!(void 0===c||c)||!r||!r.length||null==s)return null;var u=s.map(e=>Math.round(e+a-a)).sort((e,t)=>e-t);a!==u[0]&&u.unshift(0);var f=u.map((e,s)=>{var c=u[s+1],f=null==c?a+l-e:c-e;if(f<=0)return null;var p=s%r.length;return t.createElement("rect",{key:"react-".concat(s),y:e,x:n,height:f,width:o,stroke:"none",fill:r[p],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return t.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function e8(e){var r=e.vertical,i=e.verticalFill,n=e.fillOpacity,a=e.x,o=e.y,l=e.width,s=e.height,c=e.verticalPoints;if(!(void 0===r||r)||!i||!i.length)return null;var u=c.map(e=>Math.round(e+a-a)).sort((e,t)=>e-t);a!==u[0]&&u.unshift(0);var f=u.map((e,r)=>{var c=u[r+1],f=null==c?a+l-e:c-e;if(f<=0)return null;var p=r%i.length;return t.createElement("rect",{key:"react-".concat(r),x:e,y:o,width:f,height:s,stroke:"none",fill:i[p],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return t.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var te=(e,t)=>{var r=e.xAxis,i=e.width,n=e.height,a=e.offset;return(0,eZ.getCoordinatesOfGrid)(V(e1(e1(e1({},ea),r),{},{ticks:(0,eZ.getTicksOfAxis)(r,!0),viewBox:{x:0,y:0,width:i,height:n}})),a.left,a.left+a.width,t)},tt=(e,t)=>{var r=e.yAxis,i=e.width,n=e.height,a=e.offset;return(0,eZ.getCoordinatesOfGrid)(V(e1(e1(e1({},ea),r),{},{ticks:(0,eZ.getTicksOfAxis)(r,!0),viewBox:{x:0,y:0,width:i,height:n}})),a.top,a.top+a.height,t)},tr={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:W.DefaultZIndexes.grid};function ti(e){var r,i,n,a,o,l,s=(0,ew.useChartWidth)(),c=(0,ew.useChartHeight)(),u=(0,ew.useOffsetInternal)(),f=e1(e1({},(0,Z.resolveDefaultProps)(e,tr)),{},{x:(0,L.isNumber)(e.x)?e.x:u.left,y:(0,L.isNumber)(e.y)?e.y:u.top,width:(0,L.isNumber)(e.width)?e.width:u.width,height:(0,L.isNumber)(e.height)?e.height:u.height}),p=f.xAxisId,h=f.yAxisId,y=f.x,d=f.y,v=f.width,m=f.height,b=f.syncWithTicks,g=f.horizontalValues,x=f.verticalValues,O=(0,ed.useIsPanorama)(),w=(0,J.useAppSelector)(e=>(0,eh.selectAxisPropsNeededForCartesianGridTicksGenerator)(e,"xAxis",p,O)),_=(0,J.useAppSelector)(e=>(0,eh.selectAxisPropsNeededForCartesianGridTicksGenerator)(e,"yAxis",h,O)),j=(0,t.useContext)(eW),A={stroke:null!=(r=f.stroke)?r:j.grid.stroke,strokeWidth:null!=(i=f.strokeWidth)?i:j.grid.strokeWidth,strokeOpacity:null!=(n=f.strokeOpacity)?n:j.grid.strokeOpacity,strokeDasharray:null!=(a=f.strokeDasharray)?a:j.grid.strokeDasharray};if(!(0,eH.isPositiveNumber)(v)||!(0,eH.isPositiveNumber)(m)||!(0,L.isNumber)(y)||!(0,L.isNumber)(d))return null;var P=f.verticalCoordinatesGenerator||te,k=f.horizontalCoordinatesGenerator||tt,S=f.horizontalPoints,E=f.verticalPoints;if((!S||!S.length)&&"function"==typeof k){var T=g&&g.length,N=k({yAxis:_?e1(e1({},_),{},{ticks:T?g:_.ticks}):void 0,width:null!=s?s:v,height:null!=c?c:m,offset:u},!!T||b);(0,eU.warn)(Array.isArray(N),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof N,"]")),Array.isArray(N)&&(S=N)}if((!E||!E.length)&&"function"==typeof P){var C=x&&x.length,D=P({xAxis:w?e1(e1({},w),{},{ticks:C?x:w.ticks}):void 0,width:null!=s?s:v,height:null!=c?c:m,offset:u},!!C||b);(0,eU.warn)(Array.isArray(D),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof D,"]")),Array.isArray(D)&&(E=D)}return t.createElement(H.ZIndexLayer,{zIndex:f.zIndex},t.createElement("g",{className:"recharts-cartesian-grid"},t.createElement(e6,{fill:null!=(o=f.fill)?o:j.grid.fill,fillOpacity:null!=(l=f.fillOpacity)?l:j.grid.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),t.createElement(e9,e2({},f,{horizontalPoints:S})),t.createElement(e8,e2({},f,{verticalPoints:E})),t.createElement(e7,e2({},f,A,{offset:u,horizontalPoints:S,xAxis:w,yAxis:_})),t.createElement(e4,e2({},f,A,{offset:u,verticalPoints:E,xAxis:w,yAxis:_}))))}ti.displayName="CartesianGrid",e.s(["CartesianGrid",0,ti],72526);var tn=e.i(53229);function ta(){return(ta=Object.assign.bind()).apply(null,arguments)}function to(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function tl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?to(Object(r),!0).forEach(function(t){var i,n,a;i=e,n=t,a=r[t],(n=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(n))in i?Object.defineProperty(i,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[n]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):to(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ts(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function tc(e){return Array.isArray(e)&&(0,L.isNumOrStr)(e[0])&&(0,L.isNumOrStr)(e[1])?e.join(" ~ "):e}var tu={margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},tf={display:"block",paddingTop:4,paddingBottom:4,color:"#000"},tp={};e.s(["DefaultTooltipContent",0,e=>{var i=e.separator,n=void 0===i?" : ":i,a=e.contentStyle,o=e.itemStyle,l=e.labelStyle,s=e.payload,c=e.formatter,u=e.itemSorter,f=e.wrapperClassName,p=e.labelClassName,h=e.label,y=e.labelFormatter,d=e.accessibilityLayer,v=tl(tl({},tu),a),m=tl({margin:0},void 0===l?tp:l),b=!(0,L.isNullish)(h),g=b?h:"",x=(0,r.clsx)("recharts-default-tooltip",f),O=(0,r.clsx)("recharts-tooltip-label",p);return b&&y&&null!=s&&(g=y(h,s)),t.createElement("div",ta({className:x,style:v},void 0!==d&&d?{role:"status","aria-live":"assertive"}:{}),t.createElement("p",{className:O,style:m},t.isValidElement(g)?g:"".concat(g)),(()=>{if(s&&s.length){var e=(null==u?s:(0,tn.default)(s,u)).map((e,r)=>{if(!e||"none"===e.type)return null;var i=e.formatter||c||tc,a=e.value,l=e.name,u=a,f=l,p=i(a,l,e,r,s);if(Array.isArray(p)){var h=function(e){if(Array.isArray(e))return e}(p)||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,n,a,o=[],l=!0,s=!1;try{n=(t=t.call(e)).next,!1;for(;!(l=(r=n.call(t)).done)&&(o.push(r.value),2!==o.length);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw i}}return o}}(p)||function(e){if(e){if("string"==typeof e)return ts(e,2);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ts(e,2):void 0}}(p)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();u=h[0],f=h[1]}else{if(null==p)return null;u=p}var y=tl(tl({},tf),{},{color:e.color||tf.color},o);return t.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(r),style:y},(0,L.isNumOrStr)(f)?t.createElement("span",{className:"recharts-tooltip-item-name"},f):null,(0,L.isNumOrStr)(f)?t.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,t.createElement("span",{className:"recharts-tooltip-item-value"},u),t.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))});return t.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null})())}],57563);var th="recharts-tooltip-wrapper",ty={visibility:"hidden"};function td(e){var t=e.allowEscapeViewBox,r=e.coordinate,i=e.key,n=e.offset,a=e.position,o=e.reverseDirection,l=e.tooltipDimension,s=e.viewBox,c=e.viewBoxDimension;if(a&&(0,L.isNumber)(a[i]))return a[i];var u=r[i]-l-(n>0?n:0),f=r[i]+n;if(t[i])return o[i]?u:f;var p=s[i];return null==p?0:o[i]?u<p?Math.max(f,p):Math.max(u,p):null==c?0:f+l>p+c?Math.max(u,p):Math.max(f,p)}var tv=e.i(4259);function tm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function tb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tm(Object(r),!0).forEach(function(t){var i,n,a;i=e,n=t,a=r[t],(n=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(n))in i?Object.defineProperty(i,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[n]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tm(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function tg(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}var tx=t.memo(function(e){var i,n,a,o,l,s,c,u,f,p,h,y,d,v,m,b,g,x,O,w,_,j,A,P,k,S,E,T=(0,tv.usePrefersReducedMotion)(),N=function(e){if(Array.isArray(e))return e}(_=t.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}})))||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,n,a,o=[],l=!0,s=!1;try{n=(t=t.call(e)).next,!1;for(;!(l=(r=n.call(t)).done)&&(o.push(r.value),2!==o.length);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw i}}return o}}(_)||function(e){if(e){if("string"==typeof e)return tg(e,2);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?tg(e,2):void 0}}(_)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),C=N[0],D=N[1];t.useEffect(()=>{var t=t=>{if("Escape"===t.key){var r,i,n,a;D({dismissed:!0,dismissedAtCoordinate:{x:null!=(r=null==(i=e.coordinate)?void 0:i.x)?r:0,y:null!=(n=null==(a=e.coordinate)?void 0:a.y)?n:0}})}};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[null==(j=e.coordinate)?void 0:j.x,null==(A=e.coordinate)?void 0:A.y]),C.dismissed&&((null!=(P=null==(k=e.coordinate)?void 0:k.x)?P:0)!==C.dismissedAtCoordinate.x||(null!=(S=null==(E=e.coordinate)?void 0:E.y)?S:0)!==C.dismissedAtCoordinate.y)&&D(tb(tb({},C),{},{dismissed:!1}));var I=(y=(i={allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:"number"==typeof e.offset?e.offset:e.offset.x,offsetTop:"number"==typeof e.offset?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:e.lastBoundingBox,useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}).allowEscapeViewBox,d=i.coordinate,v=i.offsetTop,m=i.offsetLeft,b=i.position,g=i.reverseDirection,x=i.tooltipBox,O=i.useTranslate3d,w=i.viewBox,x&&x.height>0&&x.width>0&&d?(a=(n={translateX:p=td({allowEscapeViewBox:y,coordinate:d,key:"x",offset:m,position:b,reverseDirection:g,tooltipDimension:x.width,viewBox:w,viewBoxDimension:w.width}),translateY:h=td({allowEscapeViewBox:y,coordinate:d,key:"y",offset:v,position:b,reverseDirection:g,tooltipDimension:x.height,viewBox:w,viewBoxDimension:w.height}),useTranslate3d:O}).translateX,o=n.translateY,f={transform:n.useTranslate3d?"translate3d(".concat(a,"px, ").concat(o,"px, 0)"):"translate(".concat(a,"px, ").concat(o,"px)")}):f=ty,{cssProperties:f,cssClasses:(s=(l={translateX:p,translateY:h,coordinate:d}).coordinate,c=l.translateX,u=l.translateY,(0,r.clsx)(th,{["".concat(th,"-right")]:(0,L.isNumber)(c)&&s&&(0,L.isNumber)(s.x)&&c>=s.x,["".concat(th,"-left")]:(0,L.isNumber)(c)&&s&&(0,L.isNumber)(s.x)&&c<s.x,["".concat(th,"-bottom")]:(0,L.isNumber)(u)&&s&&(0,L.isNumber)(s.y)&&u>=s.y,["".concat(th,"-top")]:(0,L.isNumber)(u)&&s&&(0,L.isNumber)(s.y)&&u<s.y}))}),M=I.cssClasses,z=I.cssProperties,B=e.hasPortalFromProps?{}:tb(tb({transition:function(e){if((!e.prefersReducedMotion||"auto"!==e.isAnimationActive)&&e.isAnimationActive&&e.active){var t="string"==typeof e.animationEasing?e.animationEasing:"ease";return"transform ".concat(e.animationDuration,"ms ").concat(t)}}({prefersReducedMotion:T,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},z),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),R=tb(tb({},B),{},{visibility:!C.dismissed&&e.active&&e.hasPayload?"visible":"hidden"},e.wrapperStyle);return t.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:M,style:R,ref:e.innerRef},e.children)});function tO(e){return e}e.s(["TooltipBoundingBox",0,tx],20669);var tw=e.i(32780),t_=e.i(36248);function tj(e){return null==e||"object"!=typeof e&&"function"!=typeof e}function tA(e,t,r,i=new Map,n){let a=n?.(e,t,r,i);if(void 0!==a)return a;if(tj(e))return e;if(i.has(e))return i.get(e);if(Array.isArray(e)){let t=Array(e.length);i.set(e,t);for(let a=0;a<e.length;a++)t[a]=tA(e[a],a,r,i,n);return Object.hasOwn(e,"index")&&(t.index=e.index),Object.hasOwn(e,"input")&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;for(let[a,o]of(i.set(e,t),e))t.set(a,tA(o,a,r,i,n));return t}if(e instanceof Set){let t=new Set;for(let a of(i.set(e,t),e))t.add(tA(a,void 0,r,i,n));return t}if(T(e))return e.subarray();if(ArrayBuffer.isView(e)&&!(e instanceof DataView)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);i.set(e,t);for(let a=0;a<e.length;a++)t[a]=tA(e[a],a,r,i,n);return t}if(e instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return i.set(e,t),tP(t,e,r,i,n),t}if("u">typeof File&&e instanceof File){let t=new File([e],e.name,{type:e.type});return i.set(e,t),tP(t,e,r,i,n),t}if("u">typeof Blob&&e instanceof Blob){let t=new Blob([e],{type:e.type});return i.set(e,t),tP(t,e,r,i,n),t}if(e instanceof Error){let t=structuredClone(e);return i.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,tP(t,e,r,i,n),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return i.set(e,t),tP(t,e,r,i,n),t}if(e instanceof Number){let t=new Number(e.valueOf());return i.set(e,t),tP(t,e,r,i,n),t}if(e instanceof String){let t=new String(e.valueOf());return i.set(e,t),tP(t,e,r,i,n),t}if("object"==typeof e&&function(e){switch(o(e)){case f:case v:case m:case g:case u:case h:case k:case S:case j:case A:case P:case y:case c:case b:case l:case d:case s:case p:case x:case O:case w:case _:return!0;default:return!1}}(e)){let t=Object.create(Object.getPrototypeOf(e));return i.set(e,t),tP(t,e,r,i,n),t}return e}function tP(e,t,r=e,i,n){let o=[...Object.keys(t),...a(t)];for(let a=0;a<o.length;a++){let l=o[a],s=Object.getOwnPropertyDescriptor(e,l);(null==s||s.writable)&&(e[l]=tA(t[l],l,r,i,n))}}var tk=e.i(65242);function tS(e,t,r,i,n=!1){if(t===e)return!0;switch(typeof t){case"object":return function(e,t,r,i,n=!1){if(null==t)return!0;if(Array.isArray(t))return tE(e,t,r,i);if(t instanceof Map){var a,l,s,c,u=e,f=t,p=r,h=i;if(0===f.size)return!0;if(!(u instanceof Map))return!1;for(let[e,t]of f.entries())if(!1===p(u.get(e),t,e,u,f,h))return!1;return!0}if(t instanceof Set){return a=e,l=t,s=r,c=i,0===l.size||a instanceof Set&&tE([...a],[...l],s,c)}let y=Object.keys(t);if(null==e)return n&&0===y.length;if(n)tj(e)&&(e=Object(e));else{let t=o(e);if("[object Object]"!==t&&"[object Arguments]"!==t)return!1}if(0===y.length)return!0;if(i?.has(t))return i.get(t)===e;i?.set(t,e);try{for(let n=0;n<y.length;n++){let a=y[n];if(!(a in e)||void 0===t[a]&&void 0!==e[a]||null===t[a]&&null!==e[a]||!r(e[a],t[a],a,e,t,i))return!1}return!0}finally{i?.delete(t)}}(e,t,r,i,n);case"function":if(Object.keys(t).length>0)return tS(e,{...t},r,i,n);return(0,C.eq)(e,t);default:if(!(0,tk.isObject)(e))return(0,C.eq)(e,t);if(n){if("string"==typeof t)return""===t;return!0}return(0,C.eq)(e,t)}}function tE(e,t,r,i){if(0===t.length)return!0;if(!Array.isArray(e))return!1;let n=new Set;for(let a=0;a<t.length;a++){let o=t[a],l=!1;for(let s=0;s<e.length;s++){if(n.has(s))continue;let c=e[s],u=!1;if(r(c,o,a,e,t,i)&&(u=!0),u){n.add(s),l=!0;break}}if(!l)return!1}return!0}function tT(e,t){return function e(t,r,i){return"function"!=typeof i?e(t,r,()=>void 0):tS(t,r,function e(t,r,n,a,o,l){let s=i(t,r,n,a,o,l);return void 0!==s?!!s:tS(t,r,e,l,!1)},new Map,!0)}(e,t,()=>void 0)}var tN=e.i(1346),tC=e.i(3511),tD=e.i(31693),tI=e.i(25222);function tM(e){return 0===e?0:e}function tL(e,t=tO){var r;return(0,tw.isArrayLike)(e)?(function(e,t){let r=new Map;for(let i=0;i<e.length;i++){let n=e[i],a=t(n,i,e);r.has(a)||r.set(a,n)}return Array.from(r.values())})(Array.from(e),(r=function(e){var t,r;if(null==e)return tO;switch(typeof e){case"function":return e;case"object":if(Array.isArray(e)&&2===e.length)return function(e,t){var r,i,n;switch(typeof e){case"object":Object.is(e?.valueOf(),-0)&&(e="-0");break;case"number":e=(0,tN.toKey)(e)}return i=r=t,n=(e,t,i,n)=>{let a;if(void 0!==a)return a;if("object"==typeof r){if("[object Object]"===o(r)&&"function"!=typeof r.constructor){let e={};return n.set(r,e),tP(e,r,i,n),e}switch(Object.prototype.toString.call(r)){case c:case s:case u:{let e=new r.constructor(r?.valueOf());return tP(e,r),e}case f:{let e={};return tP(e,r),e.length=r.length,e[Symbol.iterator]=r[Symbol.iterator],e}default:return}}},t=tA(i,void 0,i,new Map,n),function(r){let i=(0,t_.get)(r,e);return void 0===i?function(e,t){let r;if(0===(r=Array.isArray(t)?t:"string"==typeof t&&(0,tC.isDeepKey)(t)&&!(t in Object(e))?(0,tD.toPath)(t):[t]).length)return!1;let i=e;for(let e=0;e<r.length;e++){var n;let t=(0,tN.toKey)(r[e]);if((null==i||!Object.hasOwn(i,t))&&!((Array.isArray(i)||null!==(n=i)&&"object"==typeof n&&"[object Arguments]"===o(n))&&(0,tI.isIndex)(t)&&Number(t)<i.length))return!1;i=i[t]}return!0}(r,e):void 0===t?void 0===i:tT(i,t)}}(e[0],e[1]);return t=tA(r=t=e,void 0,r,new Map,void 0),e=>tT(e,t);default:return function(t){return(0,t_.get)(t,e)}}}(t),function(...e){return r.apply(this,e.slice(0,1))})).map(tM):[]}function tz(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function tB(e,t){return Math.abs(e.height-t.height)>1||Math.abs(e.left-t.left)>1||Math.abs(e.top-t.top)>1||Math.abs(e.width-t.width)>1}function tR(e){var t=e.getBoundingClientRect();return{height:t.height,left:t.left,top:t.top,width:t.width}}e.s(["getUniqPayload",0,function(e,t,r){return!0===t?tL(e,r):"function"==typeof t?tL(e,t):e}],51587),e.s(["useElementOffset",0,function(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=function(e){if(Array.isArray(e))return e}(e=(0,t.useState)({height:0,left:0,top:0,width:0}))||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,n,a,o=[],l=!0,s=!1;try{n=(t=t.call(e)).next,!1;for(;!(l=(r=n.call(t)).done)&&(o.push(r.value),2!==o.length);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw i}}return o}}(e)||function(e){if(e){if("string"==typeof e)return tz(e,2);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?tz(e,2):void 0}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=i[0],a=i[1],o=(0,t.useRef)(null),l=(0,t.useRef)(n);l.current=n;var s=(0,t.useCallback)(e=>{if(null!=o.current&&(o.current.disconnect(),o.current=null),null!=e){var t=tR(e);if(tB(t,l.current)&&a(t),"u">typeof ResizeObserver){var r=new ResizeObserver(()=>{var t=tR(e);tB(t,l.current)&&a(t)});r.observe(e),o.current=r}}},[...r]);return(0,t.useEffect)(()=>()=>{var e;null==(e=o.current)||e.disconnect()},[]),[n,s]}],35709)},33369,e=>{"use strict";var t=e.i(71645),r=e.i(70778),i=e.i(98596),n=e.i(22273),a=e.i(62327),o=e.i(49776),l=e.i(48973),s=e.i(51883);function c(){return(c=Object.assign.bind()).apply(null,arguments)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}var f=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){var i,n,a;i=e,n=t,a=r[t],(n=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(n))in i?Object.defineProperty(i,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[n]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:{top:5,right:5,bottom:5,left:5},responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},e.i(73257).initialEventSettingsState),p=(0,t.forwardRef)(function(e,u){var p,h=(0,s.resolveDefaultProps)(e.categoricalChartProps,f),y=e.chartName,d=e.defaultTooltipEventType,v=e.validateTooltipEventTypes,m=e.tooltipPayloadSearcher,b=e.categoricalChartProps;return t.createElement(r.RechartsStoreProvider,{preloadedState:{options:{chartName:y,defaultTooltipEventType:d,validateTooltipEventTypes:v,tooltipPayloadSearcher:m,eventEmitter:void 0}},reduxStoreName:null!=(p=b.id)?p:y},t.createElement(i.ChartDataContextProvider,{chartData:b.data}),t.createElement(n.ReportMainChartProps,{layout:h.layout,margin:h.margin}),t.createElement(o.ReportEventSettings,{throttleDelay:h.throttleDelay,throttledEvents:h.throttledEvents}),t.createElement(a.ReportChartProps,{baseValue:h.baseValue,accessibilityLayer:h.accessibilityLayer,barCategoryGap:h.barCategoryGap,maxBarSize:h.maxBarSize,stackOffset:h.stackOffset,barGap:h.barGap,barSize:h.barSize,syncId:h.syncId,syncMethod:h.syncMethod,className:h.className,reverseStackOrder:h.reverseStackOrder}),t.createElement(l.CategoricalChart,c({},h,{ref:u})))});e.s(["CartesianChart",0,p])},34239,e=>{"use strict";var t,r,i,n,a,o,l,s=e.i(71645),c=e.i(74080),u=e.i(57563),f=e.i(20669),p=e.i(51587),h=e.i(46710),y=e.i(39305),d=e.i(35709),v=e.i(7670),m=e.i(73393),b=e.i(72733),g=e.i(42203),x=e.i(57741),O=e.i(29905),w=e.i(68970);function _(e){var t=e.cx,r=e.cy,i=e.radius,n=e.startAngle,a=e.endAngle;return{points:[(0,w.polarToCartesian)(t,r,i,n),(0,w.polarToCartesian)(t,r,i,a)],cx:t,cy:r,radius:i,startAngle:n,endAngle:a}}var j=e.i(94395),A=e.i(51883),P=e.i(43404),k=e.i(36536);function S(){return(S=Object.assign.bind()).apply(null,arguments)}function E(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var T=e=>{var t=e.cx,r=e.cy,i=e.radius,n=e.angle,a=e.sign,o=e.isExternal,l=e.cornerRadius,s=e.cornerIsExternal,c=l*(o?1:-1)+i,u=Math.asin(l/c)/w.RADIAN,f=s?n:n+a*u,p=(0,w.polarToCartesian)(t,r,c,f);return{center:p,circleTangency:(0,w.polarToCartesian)(t,r,i,f),lineTangency:(0,w.polarToCartesian)(t,r,c*Math.cos(u*w.RADIAN),s?n-a*u:n),theta:u}},N=e=>{var n=e.cx,a=e.cy,o=e.innerRadius,l=e.outerRadius,s=e.startAngle,c=e.endAngle,u=(0,j.mathSign)(c-s)*Math.min(Math.abs(c-s),359.999),f=s+u,p=(0,w.polarToCartesian)(n,a,l,s),h=(0,w.polarToCartesian)(n,a,l,f),y=(0,k.roundTemplateLiteral)(t||(t=E(["M ",",","\n A ",",",",0,\n ",",",",\n ",",","\n "])),p.x,p.y,l,l,+(Math.abs(u)>180),+(s>f),h.x,h.y);if(o>0){var d=(0,w.polarToCartesian)(n,a,o,s),v=(0,w.polarToCartesian)(n,a,o,f);y+=(0,k.roundTemplateLiteral)(r||(r=E(["L ",",","\n A ",",",",0,\n ",",",",\n ",","," Z"])),v.x,v.y,o,o,+(Math.abs(u)>180),+(s<=f),d.x,d.y)}else y+=(0,k.roundTemplateLiteral)(i||(i=E(["L ",","," Z"])),n,a);return y},C={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},D=e=>{var t,r=(0,A.resolveDefaultProps)(e,C),i=r.cx,c=r.cy,u=r.innerRadius,f=r.outerRadius,p=r.cornerRadius,h=r.forceCornerRadius,y=r.cornerIsExternal,d=r.startAngle,m=r.endAngle,b=r.className;if(f<u||d===m)return null;var g=(0,v.clsx)("recharts-sector",b),x=f-u,O=(0,j.getPercentValue)(p,x,0,!0);return t=O>0&&360>Math.abs(d-m)?(e=>{var t=e.cx,r=e.cy,i=e.innerRadius,s=e.outerRadius,c=e.cornerRadius,u=e.forceCornerRadius,f=e.cornerIsExternal,p=e.startAngle,h=e.endAngle,y=(0,j.mathSign)(h-p),d=T({cx:t,cy:r,radius:s,angle:p,sign:y,cornerRadius:c,cornerIsExternal:f}),v=d.circleTangency,m=d.lineTangency,b=d.theta,g=T({cx:t,cy:r,radius:s,angle:h,sign:-y,cornerRadius:c,cornerIsExternal:f}),x=g.circleTangency,O=g.lineTangency,w=g.theta,_=f?Math.abs(p-h):Math.abs(p-h)-b-w;if(_<0)return u?(0,k.roundTemplateLiteral)(n||(n=E(["M ",",","\n a",",",",0,0,1,",",0\n a",",",",0,0,1,",",0\n "])),m.x,m.y,c,c,2*c,c,c,-(2*c)):N({cx:t,cy:r,innerRadius:i,outerRadius:s,startAngle:p,endAngle:h});var A=(0,k.roundTemplateLiteral)(a||(a=E(["M ",",","\n A",",",",0,0,",",",",","\n A",",",",0,",",",",",",","\n A",",",",0,0,",",",",","\n "])),m.x,m.y,c,c,+(y<0),v.x,v.y,s,s,+(_>180),+(y<0),x.x,x.y,c,c,+(y<0),O.x,O.y);if(i>0){var P=T({cx:t,cy:r,radius:i,angle:p,sign:y,isExternal:!0,cornerRadius:c,cornerIsExternal:f}),S=P.circleTangency,C=P.lineTangency,D=P.theta,I=T({cx:t,cy:r,radius:i,angle:h,sign:-y,isExternal:!0,cornerRadius:c,cornerIsExternal:f}),M=I.circleTangency,L=I.lineTangency,z=I.theta,B=f?Math.abs(p-h):Math.abs(p-h)-D-z;if(B<0&&0===c)return"".concat(A,"L").concat(t,",").concat(r,"Z");A+=(0,k.roundTemplateLiteral)(o||(o=E(["L",",","\n A",",",",0,0,",",",",","\n A",",",",0,",",",",",",","\n A",",",",0,0,",",",",","Z"])),L.x,L.y,c,c,+(y<0),M.x,M.y,i,i,+(B>180),+(y>0),S.x,S.y,c,c,+(y<0),C.x,C.y)}else A+=(0,k.roundTemplateLiteral)(l||(l=E(["L",",","Z"])),t,r);return A})({cx:i,cy:c,innerRadius:u,outerRadius:f,cornerRadius:Math.min(O,x/2),forceCornerRadius:h,cornerIsExternal:y,startAngle:d,endAngle:m}):N({cx:i,cy:c,innerRadius:u,outerRadius:f,startAngle:d,endAngle:m}),s.createElement("path",S({},(0,P.svgPropertiesAndEvents)(r),{className:g,d:t}))},I=e.i(27241),M=e.i(79812),L=e.i(61764),z=e.i(76735);function B(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?B(Object(r),!0).forEach(function(t){var i,n,a;i=e,n=t,a=r[t],(n=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(n))in i?Object.defineProperty(i,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[n]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var $=e.i(75502),X=e.i(57999),Y=e.i(29601),G=e.i(18457);function F(){return(F=Object.assign.bind()).apply(null,arguments)}function V(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function U(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?V(Object(r),!0).forEach(function(t){var i,n,a;i=e,n=t,a=r[t],(n=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(n))in i?Object.defineProperty(i,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[n]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Z(e){var t=e.cursor,r=e.cursorComp,i=e.cursorProps;return(0,s.isValidElement)(t)?(0,s.cloneElement)(t,i):(0,s.createElement)(r,i)}function H(e){var t,r,i,n,a=e.coordinate,o=e.payload,l=e.index,c=e.offset,u=e.tooltipAxisBandSize,f=e.layout,p=e.cursor,h=e.tooltipEventType,y=e.chartName;if(!p||!a||"ScatterChart"!==y&&"axis"!==h)return null;if("ScatterChart"===y)r=a,i=g.Cross,n=G.DefaultZIndexes.cursorLine;else if("BarChart"===y)r=(0,x.getCursorRectangle)(f,a,c,u),i=O.Rectangle,n=G.DefaultZIndexes.cursorRectangle;else if("radial"===f&&(0,m.isPolarCoordinate)(a)){var d=_(a),j=d.cx,A=d.cy,P=d.radius;r={cx:j,cy:A,startAngle:d.startAngle,endAngle:d.endAngle,innerRadius:P,outerRadius:P},i=D,n=G.DefaultZIndexes.cursorLine}else r={points:function(e,t,r){if("horizontal"===e)return[{x:t.x,y:r.top},{x:t.x,y:r.top+r.height}];if("vertical"===e)return[{x:r.left,y:t.y},{x:r.left+r.width,y:t.y}];if((0,m.isPolarCoordinate)(t)){if("centric"===e){var i=t.cx,n=t.cy,a=t.innerRadius,o=t.outerRadius,l=t.angle,s=(0,w.polarToCartesian)(i,n,a,l),c=(0,w.polarToCartesian)(i,n,o,l);return[{x:s.x,y:s.y},{x:c.x,y:c.y}]}return _(t)}}(f,a,c)},i=b.Curve,n=G.DefaultZIndexes.cursorLine;var k="object"==typeof p&&"className"in p?p.className:void 0,S=U(U(U(U({stroke:"#ccc",pointerEvents:"none"},c),r),(0,X.svgPropertiesNoEventsFromUnknown)(p)),{},{payload:o,payloadIndex:l,className:(0,v.clsx)("recharts-tooltip-cursor",k)});return s.createElement(Y.ZIndexLayer,{zIndex:null!=(t=e.zIndex)?t:n},s.createElement(Z,{cursor:p,cursorComp:i,cursorProps:S}))}function W(e){var t,r,i,n=(t=(0,I.useAppSelector)(L.selectTooltipAxis),r=(0,I.useAppSelector)(z.selectTooltipAxisTicks),i=(0,I.useAppSelector)(z.selectTooltipAxisScale),t&&i?(0,M.getBandSizeOfAxis)(R(R({},t),{},{scale:i}),r):(0,M.getBandSizeOfAxis)(void 0,r)),a=(0,h.useOffsetInternal)(),o=(0,h.useChartLayout)(),l=(0,$.useChartName)();return null==n||null==a||null==o||null==l?null:s.createElement(H,F({},e,{offset:a,layout:o,tooltipAxisBandSize:n,chartName:l}))}var q=e.i(99638),K=e.i(98982),J=e.i(6613),Q=e.i(99475);function ee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function et(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(r),!0).forEach(function(t){var i,n,a;i=e,n=t,a=r[t],(n=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(n))in i?Object.defineProperty(i,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[n]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ee(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function er(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function ei(e){return e.dataKey}var en=[],ea={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};e.s(["Tooltip",0,function(e){var t,r,i,n=(0,A.resolveDefaultProps)(e,ea),a=n.active,o=n.allowEscapeViewBox,l=n.animationDuration,v=n.animationEasing,m=n.content,b=n.filterNull,g=n.isAnimationActive,x=n.offset,O=n.payloadUniqBy,w=n.position,_=n.reverseDirection,j=n.useTranslate3d,P=n.wrapperStyle,k=n.cursor,S=n.shared,E=n.trigger,T=n.defaultIndex,N=n.portal,C=n.axisId,D=(0,I.useAppDispatch)(),M="number"==typeof T?String(T):T;(0,s.useEffect)(()=>{D((0,K.setTooltipSettingsState)({shared:S,trigger:E,axisId:C,active:a,defaultIndex:M}))},[D,S,E,C,a,M]);var L=(0,h.useViewBox)(),z=(0,y.useAccessibilityLayer)(),B=(0,Q.useTooltipEventType)(S),R=null!=(r=(0,I.useAppSelector)(e=>(0,$.selectIsTooltipActive)(e,B,E,M)))?r:{},X=R.activeIndex,Y=R.isActive,G=(0,I.useAppSelector)(e=>(0,$.selectTooltipPayload)(e,B,E,M)),F=(0,I.useAppSelector)(e=>(0,$.selectActiveLabel)(e,B,E,M)),V=(0,I.useAppSelector)(e=>(0,$.selectActiveCoordinate)(e,B,E,M)),U=(0,q.useTooltipPortal)(),Z=null!=(i=null!=a?a:Y)&&i,H=function(e){if(Array.isArray(e))return e}(t=(0,d.useElementOffset)([G,Z]))||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,n,a,o=[],l=!0,s=!1;try{n=(t=t.call(e)).next,!1;for(;!(l=(r=n.call(t)).done)&&(o.push(r.value),2!==o.length);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw i}}return o}}(t)||function(e){if(e){if("string"==typeof e)return er(e,2);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?er(e,2):void 0}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),ee=H[0],eo=H[1],el="axis"===B?F:void 0;(0,J.useTooltipChartSynchronisation)(B,E,V,el,X,Z);var es=null!=N?N:U;if(null==es||null==L||null==B)return null;var ec=null!=G?G:en;Z||(ec=en),b&&ec.length&&(ec=(0,p.getUniqPayload)(ec.filter(e=>null!=e.value&&(!0!==e.hide||n.includeHidden)),O,ei));var eu=ec.length>0,ef=et(et({},n),{},{payload:ec,label:el,active:Z,activeIndex:X,coordinate:V,accessibilityLayer:z}),ep=s.createElement(f.TooltipBoundingBox,{allowEscapeViewBox:o,animationDuration:l,animationEasing:v,isAnimationActive:g,active:Z,coordinate:V,hasPayload:eu,offset:x,position:w,reverseDirection:_,useTranslate3d:j,viewBox:L,wrapperStyle:P,lastBoundingBox:ee,innerRef:eo,hasPortalFromProps:!!N},s.isValidElement(m)?s.cloneElement(m,ef):"function"==typeof m?s.createElement(m,ef):s.createElement(u.DefaultTooltipContent,ef));return s.createElement(s.Fragment,null,(0,c.createPortal)(ep,es),Z&&s.createElement(W,{cursor:k,tooltipEventType:B,coordinate:V,payload:ec,index:X}))}],34239)},42203,57741,e=>{"use strict";var t=e.i(71645),r=e.i(7670),i=e.i(94395),n=e.i(43404),a=["x","y","top","left","width","height","className"];function o(){return(o=Object.assign.bind()).apply(null,arguments)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}e.s(["Cross",0,e=>{var s=e.x,c=void 0===s?0:s,u=e.y,f=void 0===u?0:u,p=e.top,h=void 0===p?0:p,y=e.left,d=void 0===y?0:y,v=e.width,m=void 0===v?0:v,b=e.height,g=void 0===b?0:b,x=e.className,O=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){var i,n,a;i=e,n=t,a=r[t],(n=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(n))in i?Object.defineProperty(i,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[n]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({x:c,y:f,top:h,left:d,width:m,height:g},function(e,t){if(null==e)return{};var r,i,n=function(e,t){if(null==e)return{};var r={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;r[i]=e[i]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(e,a));return(0,i.isNumber)(c)&&(0,i.isNumber)(f)&&(0,i.isNumber)(m)&&(0,i.isNumber)(g)&&(0,i.isNumber)(h)&&(0,i.isNumber)(d)?t.createElement("path",o({},(0,n.svgPropertiesAndEvents)(O),{className:(0,r.clsx)("recharts-cross",x),d:"M".concat(c,",").concat(h,"v").concat(g,"M").concat(d,",").concat(f,"h").concat(m)})):null}],42203),e.s(["getCursorRectangle",0,function(e,t,r,i){var n=i/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?t.x-n:r.left+.5,y:"horizontal"===e?r.top+.5:t.y-n,width:"horizontal"===e?i:r.width-1,height:"horizontal"===e?r.height-1:i}}],57741)},72733,16888,e=>{"use strict";var t=e.i(71645),r=e.i(62990),i=e.i(75058);function n(e){this._context=e}function a(e){return new n(e)}n.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};let o=Math.PI,l=2*o,s=l-1e-6;function c(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}class u{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?c:function(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return c;let r=10**t;return function(e){this._+=e[0];for(let t=1,i=e.length;t<i;++t)this._+=Math.round(arguments[t]*r)/r+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,r,i){this._append`Q${+e},${+t},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(e,t,r,i,n,a){this._append`C${+e},${+t},${+r},${+i},${this._x1=+n},${this._y1=+a}`}arcTo(e,t,r,i,n){if(e*=1,t*=1,r*=1,i*=1,(n*=1)<0)throw Error(`negative radius: ${n}`);let a=this._x1,l=this._y1,s=r-e,c=i-t,u=a-e,f=l-t,p=u*u+f*f;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(p>1e-6)if(Math.abs(f*s-c*u)>1e-6&&n){let h=r-a,y=i-l,d=s*s+c*c,v=Math.sqrt(d),m=Math.sqrt(p),b=n*Math.tan((o-Math.acos((d+p-(h*h+y*y))/(2*v*m)))/2),g=b/m,x=b/v;Math.abs(g-1)>1e-6&&this._append`L${e+g*u},${t+g*f}`,this._append`A${n},${n},0,0,${+(f*h>u*y)},${this._x1=e+x*s},${this._y1=t+x*c}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,r,i,n,a){if(e*=1,t*=1,r*=1,a=!!a,r<0)throw Error(`negative radius: ${r}`);let c=r*Math.cos(i),u=r*Math.sin(i),f=e+c,p=t+u,h=1^a,y=a?i-n:n-i;null===this._x1?this._append`M${f},${p}`:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-p)>1e-6)&&this._append`L${f},${p}`,r&&(y<0&&(y=y%l+l),y>s?this._append`A${r},${r},0,1,${h},${e-c},${t-u}A${r},${r},0,1,${h},${this._x1=f},${this._y1=p}`:y>1e-6&&this._append`A${r},${r},0,${+(y>=o)},${h},${this._x1=e+r*Math.cos(n)},${this._y1=t+r*Math.sin(n)}`)}rect(e,t,r,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${r*=1}v${+i}h${-r}Z`}toString(){return this._}}function f(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(null==r)t=null;else{let e=Math.floor(r);if(!(e>=0))throw RangeError(`invalid digits: ${r}`);t=e}return e},()=>new u(t)}function p(e){return e[0]}function h(e){return e[1]}function y(e,t){var n=(0,i.default)(!0),o=null,l=a,s=null,c=f(u);function u(i){var a,u,f,p=(i=(0,r.default)(i)).length,h=!1;for(null==o&&(s=l(f=c())),a=0;a<=p;++a)!(a<p&&n(u=i[a],a,i))===h&&((h=!h)?s.lineStart():s.lineEnd()),h&&s.point(+e(u,a,i),+t(u,a,i));if(f)return s=null,f+""||null}return e="function"==typeof e?e:void 0===e?p:(0,i.default)(e),t="function"==typeof t?t:void 0===t?h:(0,i.default)(t),u.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.default)(+t),u):e},u.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,i.default)(+e),u):t},u.defined=function(e){return arguments.length?(n="function"==typeof e?e:(0,i.default)(!!e),u):n},u.curve=function(e){return arguments.length?(l=e,null!=o&&(s=l(o)),u):l},u.context=function(e){return arguments.length?(null==e?o=s=null:s=l(o=e),u):o},u}function d(e,t,n){var o=null,l=(0,i.default)(!0),s=null,c=a,u=null,d=f(v);function v(i){var a,f,p,h,y,v=(i=(0,r.default)(i)).length,m=!1,b=Array(v),g=Array(v);for(null==s&&(u=c(y=d())),a=0;a<=v;++a){if(!(a<v&&l(h=i[a],a,i))===m)if(m=!m)f=a,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),p=a-1;p>=f;--p)u.point(b[p],g[p]);u.lineEnd(),u.areaEnd()}m&&(b[a]=+e(h,a,i),g[a]=+t(h,a,i),u.point(o?+o(h,a,i):b[a],n?+n(h,a,i):g[a]))}if(y)return u=null,y+""||null}function m(){return y().defined(l).curve(c).context(s)}return e="function"==typeof e?e:void 0===e?p:(0,i.default)(+e),t="function"==typeof t?t:void 0===t?(0,i.default)(0):(0,i.default)(+t),n="function"==typeof n?n:void 0===n?h:(0,i.default)(+n),v.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.default)(+t),o=null,v):e},v.x0=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.default)(+t),v):e},v.x1=function(e){return arguments.length?(o=null==e?null:"function"==typeof e?e:(0,i.default)(+e),v):o},v.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,i.default)(+e),n=null,v):t},v.y0=function(e){return arguments.length?(t="function"==typeof e?e:(0,i.default)(+e),v):t},v.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:(0,i.default)(+e),v):n},v.lineX0=v.lineY0=function(){return m().x(e).y(t)},v.lineY1=function(){return m().x(e).y(n)},v.lineX1=function(){return m().x(o).y(t)},v.defined=function(e){return arguments.length?(l="function"==typeof e?e:(0,i.default)(!!e),v):l},v.curve=function(e){return arguments.length?(c=e,null!=s&&(u=c(s)),v):c},v.context=function(e){return arguments.length?(null==e?s=u=null:u=c(s=e),v):s},v}function v(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function m(e){this._context=e}function b(){}function g(e){this._context=e}function x(e){this._context=e}u.prototype,e.s(["withPath",0,f],16888),m.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:v(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:v(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},g.prototype={areaStart:b,areaEnd:b,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:v(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},x.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:v(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class O{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function w(e){this._context=e}w.prototype={areaStart:b,areaEnd:b,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e*=1,t*=1,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function _(e,t,r){var i=e._x1-e._x0,n=t-e._x1,a=(e._y1-e._y0)/(i||n<0&&-0),o=(r-e._y1)/(n||i<0&&-0);return((a<0?-1:1)+(o<0?-1:1))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs((a*n+o*i)/(i+n)))||0}function j(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function A(e,t,r){var i=e._x0,n=e._y0,a=e._x1,o=e._y1,l=(a-i)/3;e._context.bezierCurveTo(i+l,n+l*t,a-l,o-l*r,a,o)}function P(e){this._context=e}function k(e){this._context=new S(e)}function S(e){this._context=e}function E(e){this._context=e}function T(e){var t,r,i=e.length-1,n=Array(i),a=Array(i),o=Array(i);for(n[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<i-1;++t)n[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(n[i-1]=2,a[i-1]=7,o[i-1]=8*e[i-1]+e[i],t=1;t<i;++t)r=n[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(n[i-1]=o[i-1]/a[i-1],t=i-2;t>=0;--t)n[t]=(o[t]-n[t+1])/a[t];for(a[i-1]=(e[i]+n[i-1])/2,t=0;t<i-1;++t)a[t]=2*e[t+1]-n[t+1];return[n,a]}function N(e,t){this._context=e,this._t=t}P.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:A(this,this._t0,j(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(t*=1,(e*=1)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,A(this,j(this,r=_(this,e,t)),r);break;default:A(this,this._t0,r=_(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}},(k.prototype=Object.create(P.prototype)).point=function(e,t){P.prototype.point.call(this,t,e)},S.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,i,n,a){this._context.bezierCurveTo(t,e,i,r,a,n)}},E.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===r)this._context.lineTo(e[1],t[1]);else for(var i=T(e),n=T(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(i[0][a],n[0][a],i[1][a],n[1][a],e[o],t[o]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},N.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}}this._x=e,this._y=t}};var C=e.i(7670),D=e.i(73393),I=e.i(94395),M=e.i(22075),L=e.i(57999),z=e.i(46710);function B(){return(B=Object.assign.bind()).apply(null,arguments)}function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function $(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?R(Object(r),!0).forEach(function(t){var i,n,a;i=e,n=t,a=r[t],(n=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(n))in i?Object.defineProperty(i,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[n]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var X={curveBasisClosed:function(e){return new g(e)},curveBasisOpen:function(e){return new x(e)},curveBasis:function(e){return new m(e)},curveBumpX:function(e){return new O(e,!0)},curveBumpY:function(e){return new O(e,!1)},curveLinearClosed:function(e){return new w(e)},curveLinear:a,curveMonotoneX:function(e){return new P(e)},curveMonotoneY:function(e){return new k(e)},curveNatural:function(e){return new E(e)},curveStep:function(e){return new N(e,.5)},curveStepAfter:function(e){return new N(e,1)},curveStepBefore:function(e){return new N(e,0)}},Y=e=>(0,M.isWellBehavedNumber)(e.x)&&(0,M.isWellBehavedNumber)(e.y),G=e=>null!=e.base&&Y(e.base)&&Y(e),F=e=>e.x,V=e=>e.y;e.s(["Curve",0,e=>{var r=e.className,i=e.points,n=e.path,o=e.pathRef,l=(0,z.useChartLayout)();if((!i||!i.length)&&!n)return null;var s={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||l,connectNulls:e.connectNulls},c=i&&i.length?(e=>{var t=e.type,r=e.points,i=void 0===r?[]:r,n=e.baseLine,o=e.layout,l=e.connectNulls,s=void 0!==l&&l,c=((e,t)=>{if("function"==typeof e)return e;var r="curve".concat((0,I.upperFirst)(e));if(("curveMonotone"===r||"curveBump"===r)&&t){var i=X["".concat(r).concat("vertical"===t?"Y":"X")];if(i)return i}return X[r]||a})(void 0===t?"linear":t,o),u=s?i.filter(Y):i;if(Array.isArray(n)){var f=i.map((e,t)=>$($({},e),{},{base:n[t]}));return("vertical"===o?d().y(V).x1(F).x0(e=>e.base.x):d().x(F).y1(V).y0(e=>e.base.y)).defined(G).curve(c)(s?f.filter(G):f)}return("vertical"===o&&(0,I.isNumber)(n)?d().y(V).x1(F).x0(n):(0,I.isNumber)(n)?d().x(F).y1(V).y0(n):y().x(F).y(V)).defined(Y).curve(c)(u)})(s):n;return t.createElement("path",B({},(0,L.svgPropertiesNoEvents)(e),(0,D.adaptEventHandlers)(e),{className:(0,C.clsx)("recharts-curve",r),d:null===c?void 0:c,ref:o}))}],72733)},29905,e=>{"use strict";var t,r,i,n,a,o,l,s,c,u,f=e.i(71645),p=e.i(7670),h=e.i(51883),y=e.i(66576),d=e.i(94395),v=e.i(40657),m=e.i(43404),b=e.i(36536),g=["radius"],x=["radius"];function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach(function(t){var i,n,a;i=e,n=t,a=r[t],(n=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(n))in i?Object.defineProperty(i,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[n]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _(){return(_=Object.assign.bind()).apply(null,arguments)}function j(e,t){if(null==e)return{};var r,i,n=function(e,t){if(null==e)return{};var r={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;r[i]=e[i]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function P(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var k=(e,f,p,h,y)=>{var d=(0,b.round)(p),v=(0,b.round)(h),m=Math.min(Math.abs(d)/2,Math.abs(v)/2),g=v>=0?1:-1,x=d>=0?1:-1,O=+(v>=0&&d>=0||v<0&&d<0);if(m>0&&Array.isArray(y)){for(var w=[0,0,0,0],_=0;_<4;_++){var j,A,k=null!=(A=y[_])?A:0;w[_]=k>m?m:k}j=(0,b.roundTemplateLiteral)(t||(t=P(["M",",",""])),e,f+g*w[0]),w[0]>0&&(j+=(0,b.roundTemplateLiteral)(r||(r=P(["A ",",",",0,0,",",",",",""])),w[0],w[0],O,e+x*w[0],f)),j+=(0,b.roundTemplateLiteral)(i||(i=P(["L ",",",""])),e+p-x*w[1],f),w[1]>0&&(j+=(0,b.roundTemplateLiteral)(n||(n=P(["A ",",",",0,0,",",\n ",",",""])),w[1],w[1],O,e+p,f+g*w[1])),j+=(0,b.roundTemplateLiteral)(a||(a=P(["L ",",",""])),e+p,f+h-g*w[2]),w[2]>0&&(j+=(0,b.roundTemplateLiteral)(o||(o=P(["A ",",",",0,0,",",\n ",",",""])),w[2],w[2],O,e+p-x*w[2],f+h)),j+=(0,b.roundTemplateLiteral)(l||(l=P(["L ",",",""])),e+x*w[3],f+h),w[3]>0&&(j+=(0,b.roundTemplateLiteral)(s||(s=P(["A ",",",",0,0,",",\n ",",",""])),w[3],w[3],O,e,f+h-g*w[3])),j+="Z"}else if(m>0&&y===+y&&y>0){var S=Math.min(m,y);j=(0,b.roundTemplateLiteral)(c||(c=P(["M ",",","\n A ",",",",0,0,",",",",","\n L ",",","\n A ",",",",0,0,",",",",","\n L ",",","\n A ",",",",0,0,",",",",","\n L ",",","\n A ",",",",0,0,",",",","," Z"])),e,f+g*S,S,S,O,e+x*S,f,e+p-x*S,f,S,S,O,e+p,f+g*S,e+p,f+h-g*S,S,S,O,e+p-x*S,f+h,e+x*S,f+h,S,S,O,e,f+h-g*S)}else j=(0,b.roundTemplateLiteral)(u||(u=P(["M ",","," h "," v "," h "," Z"])),e,f,p,h,-p);return j},S={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"};e.s(["Rectangle",0,e=>{let t,r;var i,n=(0,h.resolveDefaultProps)(e,S),a=(0,f.useRef)(null),o=function(e){if(Array.isArray(e))return e}(i=(0,f.useState)(-1))||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,n,a,o=[],l=!0,s=!1;try{n=(t=t.call(e)).next,!1;for(;!(l=(r=n.call(t)).done)&&(o.push(r.value),2!==o.length);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw i}}return o}}(i)||function(e){if(e){if("string"==typeof e)return A(e,2);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?A(e,2):void 0}}(i)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),l=o[0],s=o[1];(0,f.useEffect)(()=>{if(a.current&&a.current.getTotalLength)try{var e=a.current.getTotalLength();e&&s(e)}catch(e){}},[]);var c=n.x,u=n.y,O=n.width,P=n.height,E=n.radius,T=n.className,N=n.animationEasing,C=n.animationDuration,D=n.animationBegin,I=n.isAnimationActive,M=n.isUpdateAnimationActive,L=(0,f.useRef)(O),z=(0,f.useRef)(P),B=(0,f.useRef)(c),R=(0,f.useRef)(u),$=(0,f.useMemo)(()=>({x:c,y:u,width:O,height:P,radius:E}),[c,u,O,P,E]),X=(0,v.useAnimationId)($,"rectangle-");if(c!==+c||u!==+u||O!==+O||P!==+P||0===O||0===P)return null;var Y=(0,p.clsx)("recharts-rectangle",T);if(!M){var G=(0,m.svgPropertiesAndEvents)(n),F=(G.radius,j(G,g));return f.createElement("path",_({},F,{x:(0,b.round)(c),y:(0,b.round)(u),width:(0,b.round)(O),height:(0,b.round)(P),radius:"number"==typeof E?E:void 0,className:Y,d:k(c,u,O,P,E)}))}var V=L.current,U=z.current,Z=B.current,H=R.current,W="0px ".concat(-1===l?1:l,"px"),q="".concat(l,"px ").concat(l,"px"),K=(t=["strokeDasharray"],r="string"==typeof N?N:S.animationEasing,t.map(e=>"".concat(e.replace(/([A-Z])/g,e=>"-".concat(e.toLowerCase()))," ").concat(C,"ms ").concat(r)).join(","));return f.createElement(y.JavascriptAnimate,{animationId:X,key:X,canBegin:l>0,duration:C,easing:N,isActive:M,begin:D},e=>{var t,r=(0,d.interpolate)(V,O,e),i=(0,d.interpolate)(U,P,e),o=(0,d.interpolate)(Z,c,e),l=(0,d.interpolate)(H,u,e);a.current&&(L.current=r,z.current=i,B.current=o,R.current=l),t=I?e>0?{transition:K,strokeDasharray:q}:{strokeDasharray:W}:{strokeDasharray:q};var s=(0,m.svgPropertiesAndEvents)(n),p=(s.radius,j(s,x));return f.createElement("path",_({},p,{radius:"number"==typeof E?E:void 0,className:Y,d:k(o,l,r,i,E),ref:a,style:w(w({},t),n.style)}))})}],29905)},42221,e=>{"use strict";var t=e.i(29194);e.s(["selectXAxisIdFromGraphicalItemId",0,function(e,r){var i,n;return null!=(i=null==(n=e.graphicalItems.cartesianItems.find(e=>e.id===r))?void 0:n.xAxisId)?i:t.defaultAxisId},"selectYAxisIdFromGraphicalItemId",0,function(e,r){var i,n;return null!=(i=null==(n=e.graphicalItems.cartesianItems.find(e=>e.id===r))?void 0:n.yAxisId)?i:t.defaultAxisId}])},18519,e=>{"use strict";var t=e.i(71645),r=e.i(97865);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){var i,n,a;i=e,n=t,a=r[t],(n=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(n))in i?Object.defineProperty(i,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[n]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}e.s(["Shape",0,function(e){var i,a,o=e.option,l=e.DefaultShape,s=e.shapeProps,c=e.activeClassName,u=e.inActiveClassName,f=function(e){if("index"in e){var t=e.index;return"number"==typeof t||"string"==typeof t?t:void 0}}(s);return a=(0,t.isValidElement)(o)?(0,t.cloneElement)(o,(i=(0,t.isValidElement)(o)?o.props:o,n(n({},s),i))):o===l?t.createElement(l,s):"function"==typeof o?o(s,f):"object"==typeof o?t.createElement(l,n(n({},s),o)):t.createElement(l,s),"isActive"in s&&!0===s.isActive?t.createElement(r.Layer,{className:void 0===c?"recharts-active-shape":c},a):t.createElement(r.Layer,{className:void 0===u?"recharts-shape":u},a)}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,79996,47238,e=>{"use strict";function t(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function r(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function n(){}var i="\\s*([+-]?\\d+)\\s*",a="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",s="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,o=RegExp(`^rgb\\(${i},${i},${i}\\)$`),u=RegExp(`^rgb\\(${s},${s},${s}\\)$`),c=RegExp(`^rgba\\(${i},${i},${i},${a}\\)$`),f=RegExp(`^rgba\\(${s},${s},${s},${a}\\)$`),d=RegExp(`^hsl\\(${a},${s},${s}\\)$`),h=RegExp(`^hsla\\(${a},${s},${s},${a}\\)$`),x={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function b(){return this.rgb().formatHex()}function p(){return this.rgb().formatRgb()}function g(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=l.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?m(t):3===r?new w(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?y(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?y(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=o.exec(e))?new w(t[1],t[2],t[3],1):(t=u.exec(e))?new w(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=c.exec(e))?y(t[1],t[2],t[3],t[4]):(t=f.exec(e))?y(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=d.exec(e))?P(t[1],t[2]/100,t[3]/100,1):(t=h.exec(e))?P(t[1],t[2]/100,t[3]/100,t[4]):x.hasOwnProperty(e)?m(x[e]):"transparent"===e?new w(NaN,NaN,NaN,0):null}function m(e){return new w(e>>16&255,e>>8&255,255&e,1)}function y(e,t,r,n){return n<=0&&(e=t=r=NaN),new w(e,t,r,n)}function v(e,t,r,i){var a;return 1==arguments.length?((a=e)instanceof n||(a=g(a)),a)?new w((a=a.rgb()).r,a.g,a.b,a.opacity):new w:new w(e,t,r,null==i?1:i)}function w(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function N(){return`#${$(this.r)}${$(this.g)}${$(this.b)}`}function j(){let e=O(this.opacity);return`${1===e?"rgb(":"rgba("}${k(this.r)}, ${k(this.g)}, ${k(this.b)}${1===e?")":`, ${e})`}`}function O(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function k(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function $(e){return((e=k(e))<16?"0":"")+e.toString(16)}function P(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new S(e,t,r,n)}function E(e){if(e instanceof S)return new S(e.h,e.s,e.l,e.opacity);if(e instanceof n||(e=g(e)),!e)return new S;if(e instanceof S)return e;var t=(e=e.rgb()).r/255,r=e.g/255,i=e.b/255,a=Math.min(t,r,i),s=Math.max(t,r,i),l=NaN,o=s-a,u=(s+a)/2;return o?(l=t===s?(r-i)/o+(r<i)*6:r===s?(i-t)/o+2:(t-r)/o+4,o/=u<.5?s+a:2-s-a,l*=60):o=u>0&&u<1?0:l,new S(l,o,u,e.opacity)}function S(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function D(e){return(e=(e||0)%360)<0?e+360:e}function M(e){return Math.max(0,Math.min(1,e||0))}function I(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}t(n,g,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:b,formatHex:b,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return E(this).formatHsl()},formatRgb:p,toString:p}),t(w,v,r(n,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new w(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new w(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new w(k(this.r),k(this.g),k(this.b),O(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:N,formatHex:N,formatHex8:function(){return`#${$(this.r)}${$(this.g)}${$(this.b)}${$((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:j,toString:j})),t(S,function(e,t,r,n){return 1==arguments.length?E(e):new S(e,t,r,null==n?1:n)},r(n,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new S(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new S(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new w(I(e>=240?e-240:e+120,i,n),I(e,i,n),I(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new S(D(this.h),M(this.s),M(this.l),O(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=O(this.opacity);return`${1===e?"hsl(":"hsla("}${D(this.h)}, ${100*M(this.s)}%, ${100*M(this.l)}%${1===e?")":`, ${e})`}`}})),e.s(["default",0,g,"rgb",0,v],47238),e.s(["color",0,g],79996)},68593,e=>{"use strict";e.s(["default",0,function(e,t){return e*=1,t*=1,function(r){return e*(1-r)+t*r}}])},52491,e=>{"use strict";var t=e.i(68593);e.s(["interpolateNumber",()=>t.default])},65445,625,e=>{"use strict";var t=e.i(47238);function r(e,t,r,n,i){var a=e*e,s=a*e;return((1-3*e+3*a-s)*t+(4-6*a+3*s)*r+(1+3*e+3*a-3*s)*n+s*i)/6}let n=e=>()=>e;function i(e,t){var r=t-e;return r?function(t){return e+t*r}:n(isNaN(e)?t:e)}e.s(["default",0,n],625);let a=function e(r){var a,s=1==(a=+r)?i:function(e,t){var r,i,s;return t-e?(r=e,i=t,r=Math.pow(r,s=a),i=Math.pow(i,s)-r,s=1/s,function(e){return Math.pow(r+e*i,s)}):n(isNaN(e)?t:e)};function l(e,r){var n=s((e=(0,t.rgb)(e)).r,(r=(0,t.rgb)(r)).r),a=s(e.g,r.g),l=s(e.b,r.b),o=i(e.opacity,r.opacity);return function(t){return e.r=n(t),e.g=a(t),e.b=l(t),e.opacity=o(t),e+""}}return l.gamma=e,l}(1);function s(e){return function(r){var n,i,a=r.length,s=Array(a),l=Array(a),o=Array(a);for(n=0;n<a;++n)i=(0,t.rgb)(r[n]),s[n]=i.r||0,l[n]=i.g||0,o[n]=i.b||0;return s=e(s),l=e(l),o=e(o),i.opacity=1,function(e){return i.r=s(e),i.g=l(e),i.b=o(e),i+""}}}s(function(e){var t=e.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),a=e[i],s=e[i+1],l=i>0?e[i-1]:2*a-s,o=i<t-1?e[i+2]:2*s-a;return r((n-i/t)*t,l,a,s,o)}}),s(function(e){var t=e.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*t),a=e[(i+t-1)%t],s=e[i%t],l=e[(i+1)%t],o=e[(i+2)%t];return r((n-i/t)*t,a,s,l,o)}}),e.s(["default",0,a],65445)},35204,e=>{"use strict";var t=e.i(68593),r=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,n=RegExp(r.source,"g");e.s(["default",0,function(e,i){var a,s,l,o,u,c=r.lastIndex=n.lastIndex=0,f=-1,d=[],h=[];for(e+="",i+="";(l=r.exec(e))&&(o=n.exec(i));)(u=o.index)>c&&(u=i.slice(c,u),d[f]?d[f]+=u:d[++f]=u),(l=l[0])===(o=o[0])?d[f]?d[f]+=o:d[++f]=o:(d[++f]=null,h.push({i:f,x:(0,t.default)(l,o)})),c=n.lastIndex;return c<i.length&&(u=i.slice(c),d[f]?d[f]+=u:d[++f]=u),d.length<2?h[0]?(a=h[0].x,function(e){return a(e)+""}):(s=i,function(){return s}):(i=h.length,function(e){for(var t,r=0;r<i;++r)d[(t=h[r]).i]=t.x(e);return d.join("")})}])},86031,38279,41818,e=>{"use strict";var t=e.i(71645),r=e.i(7670),n=e.i(73393),i=e.i(57999),a=e.i(94395);function s(){return(s=Object.assign.bind()).apply(null,arguments)}var l=e=>{var l=e.cx,o=e.cy,u=e.r,c=e.className,f=(0,r.clsx)("recharts-dot",c);return(0,a.isNumber)(l)&&(0,a.isNumber)(o)&&(0,a.isNumber)(u)?t.createElement("circle",s({},(0,i.svgPropertiesNoEvents)(e),(0,n.adaptEventHandlers)(e),{className:f,cx:l,cy:o,r:u})):null};e.s(["Dot",0,l],38279);var o=e.i(97865),u=e.i(81977),c=e.i(43404),f=e.i(29601),d=e.i(18457),h=["points"];function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach(function(t){var n,i,a;n=e,i=t,a=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function p(){return(p=Object.assign.bind()).apply(null,arguments)}function g(e){var n=e.option,i=e.dotProps,a=e.className;if((0,t.isValidElement)(n))return(0,t.cloneElement)(n,i);if("function"==typeof n)return n(i);var s=(0,r.clsx)(a,"boolean"!=typeof n?n.className:""),o=null!=i?i:{},u=(o.points,function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(o,h));return t.createElement(l,p({},u,{className:s}))}e.s(["Dots",0,function(e){var r=e.points,n=e.dot,i=e.className,a=e.dotClassName,s=e.dataKey,l=e.baseProps,h=e.needClip,x=e.clipPathId,m=e.zIndex,y=void 0===m?d.DefaultZIndexes.scatter:m;if(null==r||!n&&1!==r.length)return null;var v=(0,u.isClipDot)(n),w=(0,c.svgPropertiesAndEventsFromUnknown)(n),N=r.map((e,i)=>{var o,u,c=b(b(b({r:3},l),w),{},{index:i,cx:null!=(o=e.x)?o:void 0,cy:null!=(u=e.y)?u:void 0,dataKey:s,value:e.value,payload:e.payload,points:r});return t.createElement(g,{key:"dot-".concat(i),option:n,dotProps:c,className:a})}),j={};return h&&null!=x&&(j.clipPath="url(#clipPath-".concat(v?"":"dots-").concat(x,")")),t.createElement(f.ZIndexLayer,{zIndex:y},t.createElement(o.Layer,p({className:i},j),N))}],86031);var m=e.i(27241),y=e.i(76735),v=e.i(52734);function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach(function(t){var n,i,a;n=e,i=t,a=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var j=e=>{var r,a=e.point,s=e.childIndex,u=e.mainColor,c=e.activeDot,f=e.dataKey,d=e.clipPath;if(!1===c||null==a.x||null==a.y)return null;var h=N(N(N({},{index:s,dataKey:f,cx:a.x,cy:a.y,r:4,fill:null!=u?u:"none",strokeWidth:2,stroke:"#fff",payload:a.payload,value:a.value}),(0,i.svgPropertiesNoEventsFromUnknown)(c)),(0,n.adaptEventHandlers)(c));return r=(0,t.isValidElement)(c)?(0,t.cloneElement)(c,h):"function"==typeof c?c(h):t.createElement(l,h),t.createElement(o.Layer,{className:"recharts-active-dot",clipPath:d},r)};e.s(["ActivePoints",0,function(e){var r=e.points,n=e.mainColor,i=e.activeDot,s=e.itemDataKey,l=e.clipPath,o=e.zIndex,u=void 0===o?d.DefaultZIndexes.activeDot:o,c=(0,m.useAppSelector)(y.selectActiveTooltipIndex),h=(0,v.useActiveTooltipDataPoints)();if(null==r||null==h)return null;var x=r.find(e=>h.includes(e.payload));return(0,a.isNullish)(x)?null:t.createElement(f.ZIndexLayer,{zIndex:u},t.createElement(j,{point:x,childIndex:Number(c),mainColor:n,dataKey:s,activeDot:i,clipPath:l}))}],41818)},81583,e=>{"use strict";var t=e.i(57999);e.s(["getRadiusAndStrokeWidthFromDot",0,function(e){var r=(0,t.svgPropertiesNoEventsFromUnknown)(e);if(null!=r){var n=r.r,i=r.strokeWidth,a=Number(n),s=Number(i);return(Number.isNaN(a)||a<0)&&(a=3),(Number.isNaN(s)||s<0)&&(s=2),{r:a,strokeWidth:s}}return{r:3,strokeWidth:2}}])},55838,(e,t,r)=>{"use strict";var n=e.r(71645),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,s=n.useEffect,l=n.useLayoutEffect,o=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return l(function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})},[e,r,t]),s(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),o(r),r};r.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},2239,(e,t,r)=>{"use strict";e.i(47167),t.exports=e.r(55838)},52822,(e,t,r)=>{"use strict";var n=e.r(71645),i=e.r(2239),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=i.useSyncExternalStore,l=n.useRef,o=n.useEffect,u=n.useMemo,c=n.useDebugValue;r.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var f=l(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;var h=s(e,(f=u(function(){function e(e){if(!o){if(o=!0,s=e,e=n(e),void 0!==i&&d.hasValue){var t=d.value;if(i(t,e))return l=t}return l=e}if(t=l,a(s,e))return t;var r=n(e);return void 0!==i&&i(t,r)?(s=e,t):(s=e,l=r)}var s,l,o=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,r,n,i]))[0],f[1]);return o(function(){d.hasValue=!0,d.value=h},[h]),c(h),h}},30224,(e,t,r)=>{"use strict";e.i(47167),t.exports=e.r(52822)},68442,e=>{"use strict";var t=e.i(43476);e.s(["MetricCard",0,function({label:e,value:r,subtext:n,trend:i,status:a="neutral",icon:s,badge:l}){return(0,t.jsxs)("div",{className:`bg-white rounded-lg border border-slate-200 p-4 shadow-sm ${{healthy:"border-l-4 border-l-emerald-500",warning:"border-l-4 border-l-amber-500",critical:"border-l-4 border-l-red-500",neutral:"border-l-4 border-l-slate-300"}["ALLOW"===a||"MONITOR"===a||"healthy"===a?"healthy":"HITL"===a||"warning"===a?"warning":"BLOCK"===a||"critical"===a?"critical":"neutral"]} flex flex-col justify-between`,children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 mb-2",children:[(0,t.jsx)("span",{className:"text-[11px] font-medium tracking-wider uppercase text-slate-500",children:e}),s&&(0,t.jsx)(s,{size:16,className:"text-slate-400"}),l&&(0,t.jsx)("span",{className:"text-[10px] font-semibold px-1.5 py-0.5 rounded bg-slate-100 text-slate-700",children:l})]}),(0,t.jsxs)("div",{className:"flex items-baseline justify-between gap-2 mt-1",children:[(0,t.jsx)("div",{className:"text-2xl font-bold tracking-tight text-slate-900 font-mono",children:r}),i&&(0,t.jsx)("span",{className:`text-xs font-medium ${i.isNeutral?"text-slate-500":i.isPositive?"text-emerald-700":"text-red-700"}`,children:i.value})]}),n&&(0,t.jsx)("div",{className:"mt-2 text-xs text-slate-500 truncate",children:n})]})}])},37757,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(22016),i=e.i(67927);e.s(["PageHeader",0,function({title:e,description:a,subtitle:s,breadcrumbs:l,actions:o,badge:u}){let c=a||s;return(0,t.jsxs)("div",{className:"mb-6 pb-4 border-b border-slate-200",children:[l&&l.length>0&&(0,t.jsx)("nav",{className:"flex items-center gap-1.5 text-xs text-slate-500 mb-2",children:l.map((e,a)=>{let s=a===l.length-1;return(0,t.jsxs)(r.default.Fragment,{children:[a>0&&(0,t.jsx)(i.ChevronRight,{size:12,className:"text-slate-400"}),e.href&&!s?(0,t.jsx)(n.default,{href:e.href,className:"hover:text-slate-800 transition-colors",children:e.label}):(0,t.jsx)("span",{className:s?"text-slate-900 font-medium":"",children:e.label})]},a)})}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)("h1",{className:"text-xl font-semibold text-slate-900 tracking-tight",children:e}),u&&(0,t.jsx)("div",{children:u})]}),c&&(0,t.jsx)("p",{className:"mt-1 text-xs text-slate-500 max-w-3xl leading-relaxed",children:c})]}),o&&(0,t.jsx)("div",{className:"flex items-center gap-2 flex-shrink-0",children:o})]})]})}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,51757,e=>{"use strict";var t=e.i(56420);let s={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};s.node;let a=(0,t.default)(s);e.s(["CheckCircle2",0,a],51757)},63676,e=>{"use strict";var t=e.i(56420);let s={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};s.node;let a=(0,t.default)(s);e.s(["X",0,a],63676)},66121,e=>{"use strict";var t=e.i(43476),s=e.i(71645),a=e.i(37757),r=e.i(32471),l=e.i(49744),n=e.i(72854),d=e.i(3469),i=e.i(51757),o=e.i(95925);let c=[{id:"INC-1049",name:"Authority Escalation & Privilege Expansion Attempt",severity:"HIGH",agent:"research-agent-001",detection:"Monotonic Delegation Invariant",state:"CONTAINED",started_at:"15:14:10",updated_at:"15:17:22",summary:"Sub-agent research-agent-001 attempted to invoke customer_db.read without delegator authority grant.",attack_path:["Orchestrator Grant (search-only)","Research Agent","Target Tool (customer_db.read)"],evidence:'Intercepted ToolRequest req_8849b on trace trc_ae604. Agent missing required capability "pii_access".',remediation_actions:["Authority quarantined","Monotonic boundary asserted","Security event emitted to SIEM"],regression_status:"PASS (Automated replay fixture generated)"},{id:"INC-1048",name:"Indirect Prompt Injection via Untrusted MCP Server",severity:"CRITICAL",agent:"orchestrator-001",detection:"Taint Sink Enforcement Gate",state:"CLOSED",started_at:"14:22:05",updated_at:"14:45:00",summary:"External MCP tool returned adversarial payload containing override directives targeting customer database.",attack_path:["External MCP (mcp://search.io)","MCP Gateway (tagged TAINTED)","Orchestrator Ingestion","Sink Gate (BLOCKED)"],evidence:"Matched MITRE ATLAS AML.T0051 signature in context payload ctx_005. 0 database calls executed.",remediation_actions:["External MCP source quarantined","Taint propagation containment verified","Policy baseline validated"],regression_status:"PASS (Zero bypasses on 42 replays)"},{id:"INC-1047",name:"Taint Lineage Sanitization Anomaly",severity:"MEDIUM",agent:"analysis-agent-001",detection:"Context Sanitization Tracker",state:"CLOSED",started_at:"11:05:30",updated_at:"11:30:15",summary:"Context payload passed through custom parser without expected schema validation hash.",attack_path:["Internal Feed","Custom Parser","Analysis Agent"],evidence:"Sanitization record missing cryptographic signature.",remediation_actions:["Schema validation rule updated","Audit record signed"],regression_status:"PASS"}];e.s(["default",0,function(){let[e,x]=(0,s.useState)(""),[m,p]=(0,s.useState)("ALL"),[u,b]=(0,s.useState)("ALL"),[h,g]=(0,s.useState)(c[0]),[f,j]=(0,s.useState)(!1),N=(0,s.useMemo)(()=>c.filter(t=>{if(e){let s=e.toLowerCase();if(!(t.id.toLowerCase().includes(s)||t.name.toLowerCase().includes(s)||t.agent.toLowerCase().includes(s)||t.detection.toLowerCase().includes(s)))return!1}return("ALL"===m||t.severity===m)&&("ALL"===u||t.state===u)}),[e,m,u]),v=[{key:"id",header:"Incident ID",mono:!0,width:"120px",render:e=>(0,t.jsx)("span",{className:"font-semibold text-slate-900 hover:text-sky-700 underline decoration-slate-300",children:e.id})},{key:"severity",header:"Severity",width:"110px",render:e=>(0,t.jsx)(n.SeverityBadge,{severity:e.severity})},{key:"name",header:"Incident Title",render:e=>(0,t.jsx)("span",{className:"font-semibold text-slate-900",children:e.name})},{key:"agent",header:"Offending Agent",render:e=>(0,t.jsx)("span",{className:"font-mono text-[11px] text-slate-700 bg-slate-100 px-1.5 py-0.5 rounded",children:e.agent})},{key:"detection",header:"Detection Rule",render:e=>(0,t.jsx)("span",{className:"text-slate-600 font-medium",children:e.detection})},{key:"state",header:"Lifecycle State",width:"130px",render:e=>(0,t.jsx)("span",{className:`px-2 py-0.5 rounded text-[10px] font-bold ${"CLOSED"===e.state?"bg-emerald-50 text-emerald-800 border border-emerald-200":"CONTAINED"===e.state?"bg-blue-50 text-blue-800 border border-blue-200":"bg-amber-50 text-amber-800 border border-amber-200"}`,children:e.state})},{key:"started_at",header:"Started",mono:!0,width:"90px",render:e=>(0,t.jsx)("span",{className:"text-slate-500",children:e.started_at})},{key:"updated_at",header:"Updated",mono:!0,align:"right",width:"90px",render:e=>(0,t.jsx)("span",{className:"text-slate-400",children:e.updated_at})}];return(0,t.jsxs)("div",{className:"max-w-[1600px] mx-auto",children:[(0,t.jsx)(a.PageHeader,{title:"Security Incidents",description:"7-stage deterministic incident lifecycle state machine (DETECTED → TRIAGED → INVESTIGATING → CONTAINED → REMEDIATED → VALIDATED → CLOSED) with immutable evidence logs.",breadcrumbs:[{label:"Investigation",href:"/dashboard"},{label:"Incidents"}]}),(0,t.jsx)(r.FilterBar,{searchQuery:e,onSearchChange:x,searchPlaceholder:"Search incidents…",totalCount:c.length,activeCount:N.length,onReset:()=>{x(""),p("ALL"),b("ALL")},dropdowns:[{name:"severity",label:"Severity",value:m,onChange:p,options:[{label:"All Severities",value:"ALL"},{label:"CRITICAL",value:"CRITICAL"},{label:"HIGH",value:"HIGH"},{label:"MEDIUM",value:"MEDIUM"}]},{name:"state",label:"Lifecycle State",value:u,onChange:b,options:[{label:"All States",value:"ALL"},{label:"CONTAINED",value:"CONTAINED"},{label:"CLOSED",value:"CLOSED"},{label:"INVESTIGATING",value:"INVESTIGATING"}]}]}),(0,t.jsx)(l.DataTable,{columns:v,data:N,keyExtractor:e=>e.id,onRowClick:e=>{g(e),j(!0)},selectedKey:h?.id}),(0,t.jsx)(d.DetailDrawer,{isOpen:f,onClose:()=>j(!1),title:`Incident: ${h?.id}`,subtitle:h?.name,badge:h&&(0,t.jsx)(n.SeverityBadge,{severity:h.severity}),children:h&&(0,t.jsxs)("div",{className:"space-y-5 text-xs",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider block mb-2",children:"Incident State Machine Status"}),(0,t.jsxs)("div",{className:"p-3 bg-slate-50 border border-slate-200 rounded-lg flex items-center justify-between text-[11px] font-semibold",children:[(0,t.jsx)("span",{className:"text-slate-600",children:"Current Phase:"}),(0,t.jsx)("span",{className:"px-2 py-0.5 rounded bg-blue-50 text-blue-800 border border-blue-200 font-mono",children:h.state})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider block mb-1",children:"Executive Summary"}),(0,t.jsx)("p",{className:"text-slate-700 leading-relaxed bg-white p-3 border border-slate-200 rounded-lg",children:h.summary})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider block mb-1.5",children:"Causal Attack Path"}),(0,t.jsx)("div",{className:"bg-slate-50 border border-slate-200 rounded-lg p-3 space-y-1.5 font-mono text-[11px]",children:h.attack_path.map((e,s)=>(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"w-4 h-4 rounded-full bg-slate-200 text-slate-700 flex items-center justify-center text-[9px] font-bold",children:s+1}),(0,t.jsx)("span",{children:e})]},s))})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider block mb-1",children:"Forensic Evidence"}),(0,t.jsx)("pre",{className:"p-3 bg-slate-900 text-slate-100 rounded-lg text-[11px] font-mono whitespace-pre-wrap leading-relaxed",children:h.evidence})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider block mb-1.5",children:"Automated Response Actions Taken"}),(0,t.jsx)("div",{className:"space-y-1",children:h.remediation_actions.map((e,s)=>(0,t.jsxs)("div",{className:"flex items-center gap-2 p-2 rounded bg-emerald-50 text-emerald-900 border border-emerald-200 text-[11px]",children:[(0,t.jsx)(i.CheckCircle2,{size:13,className:"text-emerald-700 flex-shrink-0"}),(0,t.jsx)("span",{children:e})]},s))})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider block mb-1",children:"Offensive Regression Status"}),(0,t.jsxs)("div",{className:"p-2.5 rounded bg-slate-50 border border-slate-200 font-mono text-slate-800 text-[11px] flex items-center gap-2",children:[(0,t.jsx)(o.RotateCcw,{size:12,className:"text-slate-500"}),(0,t.jsx)("span",{children:h.regression_status})]})]})]})})]})}])},49744,e=>{"use strict";var t=e.i(43476),s=e.i(71645),a=e.i(56420);let r={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};r.node;let l=(0,a.default)(r);var n=e.i(67927);let d={name:"inbox",size:24,node:[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]};d.node;let i=(0,a.default)(d);e.s(["DataTable",0,function({columns:e,data:a,keyExtractor:r,keyField:d,onRowClick:o,selectedKey:c,emptyMessage:x="No records found",emptySubtext:m="Try adjusting your filters or search query.",pageSize:p=15,isLoading:u=!1}){let[b,h]=s.default.useState(1),g=Math.max(1,Math.ceil(a.length/p)),f=a.slice((b-1)*p,b*p);return s.default.useEffect(()=>{h(1)},[a.length]),(0,t.jsxs)("div",{className:"bg-white border border-slate-200 rounded-lg shadow-sm overflow-hidden flex flex-col",children:[(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full text-left border-collapse text-xs",children:[(0,t.jsx)("thead",{children:(0,t.jsx)("tr",{className:"bg-slate-50 border-b border-slate-200",children:e.map(e=>(0,t.jsx)("th",{style:{width:e.width},className:`px-3.5 py-2.5 font-semibold text-slate-600 uppercase tracking-wider text-[10px] ${"right"===e.align?"text-right":"center"===e.align?"text-center":"text-left"}`,children:e.header},e.key))})}),(0,t.jsx)("tbody",{className:"divide-y divide-slate-100",children:u?(0,t.jsx)("tr",{children:(0,t.jsxs)("td",{colSpan:e.length,className:"py-12 text-center text-slate-400",children:[(0,t.jsx)("div",{className:"inline-block animate-spin rounded-full h-5 w-5 border-2 border-slate-300 border-t-sky-600 mb-2"}),(0,t.jsx)("div",{className:"text-xs",children:"Loading telemetry records…"})]})}):0===f.length?(0,t.jsx)("tr",{children:(0,t.jsxs)("td",{colSpan:e.length,className:"py-12 text-center",children:[(0,t.jsx)(i,{size:28,className:"mx-auto text-slate-300 mb-2"}),(0,t.jsx)("div",{className:"text-sm font-semibold text-slate-700",children:x}),(0,t.jsx)("div",{className:"text-xs text-slate-400 mt-0.5",children:m})]})}):f.map((s,a)=>{let l=r?r(s,a):d&&s[d]?String(s[d]):String(s.id||s.key||a),n=c===l;return(0,t.jsx)("tr",{onClick:()=>o&&o(s),className:`transition-colors ${n?"bg-sky-50/80 font-medium":"hover:bg-slate-50/80"} ${o?"cursor-pointer":""}`,children:e.map(e=>{let r=s[e.key],l=e.render?e.render(s,a):r;return(0,t.jsx)("td",{className:`px-3.5 py-2.5 text-slate-700 ${e.mono?"font-mono text-[11px]":""} ${"right"===e.align?"text-right":"center"===e.align?"text-center":"text-left"}`,children:l},e.key)})},l)})})]})}),a.length>p&&(0,t.jsxs)("div",{className:"px-4 py-2.5 border-t border-slate-200 bg-slate-50 flex items-center justify-between text-xs text-slate-500",children:[(0,t.jsxs)("div",{children:["Showing ",(0,t.jsx)("span",{className:"font-medium text-slate-800",children:(b-1)*p+1})," to"," ",(0,t.jsx)("span",{className:"font-medium text-slate-800",children:Math.min(b*p,a.length)})," ","of ",(0,t.jsx)("span",{className:"font-medium text-slate-800",children:a.length})," records"]}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("button",{onClick:()=>h(e=>Math.max(1,e-1)),disabled:1===b,className:"p-1 rounded border border-slate-200 bg-white text-slate-600 disabled:opacity-40 disabled:cursor-not-allowed hover:bg-slate-50 transition-colors",children:(0,t.jsx)(l,{size:14})}),(0,t.jsxs)("span",{className:"px-2 font-mono text-[11px]",children:[b," / ",g]}),(0,t.jsx)("button",{onClick:()=>h(e=>Math.min(g,e+1)),disabled:b===g,className:"p-1 rounded border border-slate-200 bg-white text-slate-600 disabled:opacity-40 disabled:cursor-not-allowed hover:bg-slate-50 transition-colors",children:(0,t.jsx)(n.ChevronRight,{size:14})})]})]})]})}],49744)},3469,e=>{"use strict";var t=e.i(43476),s=e.i(63676);e.s(["DetailDrawer",0,function({isOpen:e,onClose:a,title:r,subtitle:l,badge:n,children:d,footer:i,width:o="w-full md:w-[480px]"}){return e?(0,t.jsxs)("div",{className:"fixed inset-y-0 right-0 z-50 flex",children:[(0,t.jsx)("div",{className:"fixed inset-0 bg-slate-900/20 backdrop-blur-[1px] transition-opacity",onClick:a}),(0,t.jsxs)("div",{className:`relative ${o} bg-white shadow-2xl border-l border-slate-200 flex flex-col h-full z-10 transition-transform`,children:[(0,t.jsxs)("div",{className:"px-5 py-4 border-b border-slate-200 flex items-start justify-between gap-3 bg-slate-50/50",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("h2",{className:"text-base font-semibold text-slate-900 truncate",children:r}),n]}),l&&(0,t.jsx)("p",{className:"text-xs text-slate-500 font-mono mt-0.5 truncate",children:l})]}),(0,t.jsx)("button",{onClick:a,className:"p-1 rounded-md text-slate-400 hover:text-slate-700 hover:bg-slate-100 transition-colors",children:(0,t.jsx)(s.X,{size:18})})]}),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto p-5 space-y-5 text-sm text-slate-700",children:d}),i&&(0,t.jsx)("div",{className:"px-5 py-3 border-t border-slate-200 bg-slate-50 flex items-center justify-end gap-2",children:i})]})]}):null}])},32471,e=>{"use strict";var t=e.i(43476),s=e.i(66595),a=e.i(95925);e.s(["FilterBar",0,function({searchQuery:e,onSearchChange:r,searchPlaceholder:l="Search records…",dropdowns:n,filters:d,onReset:i,activeCount:o,totalCount:c,actions:x}){let m=d||n;return(0,t.jsxs)("div",{className:"bg-white border border-slate-200 rounded-lg p-3 mb-4 shadow-sm flex flex-col md:flex-row md:items-center justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2.5 flex-1",children:[r&&(0,t.jsxs)("div",{className:"relative flex-1 min-w-[200px] max-w-sm",children:[(0,t.jsx)(s.Search,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-slate-400"}),(0,t.jsx)("input",{type:"text",value:e??"",onChange:e=>r(e.target.value),placeholder:l,className:"w-full pl-8 pr-3 py-1.5 text-xs bg-slate-50 border border-slate-200 rounded-md text-slate-800 placeholder:text-slate-400 focus:bg-white focus:outline-none focus:border-sky-500 focus:ring-1 focus:ring-sky-500 transition-all"})]}),m&&m.map(e=>(0,t.jsx)("div",{className:"flex items-center gap-1.5",children:(0,t.jsx)("select",{value:e.value,onChange:t=>e.onChange(t.target.value),className:"text-xs bg-slate-50 border border-slate-200 rounded-md px-2.5 py-1.5 text-slate-700 font-medium focus:bg-white focus:outline-none focus:border-sky-500 focus:ring-1 focus:ring-sky-500 transition-all cursor-pointer",children:e.options.map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value))})},e.key||e.name||e.label)),i&&(0,t.jsxs)("button",{onClick:i,className:"flex items-center gap-1 text-xs text-slate-500 hover:text-slate-800 px-2 py-1.5 rounded hover:bg-slate-100 transition-colors",title:"Reset Filters",children:[(0,t.jsx)(a.RotateCcw,{size:12}),(0,t.jsx)("span",{children:"Reset"})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3 self-end md:self-auto text-xs text-slate-500",children:[void 0!==c&&(0,t.jsx)("span",{className:"font-mono text-slate-600",children:void 0!==o&&o!==c?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("strong",{className:"text-slate-900",children:o})," of ",c]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("strong",{className:"text-slate-900",children:c})," total"]})}),x]})]})}])},37757,e=>{"use strict";var t=e.i(43476),s=e.i(71645),a=e.i(22016),r=e.i(67927);e.s(["PageHeader",0,function({title:e,description:l,subtitle:n,breadcrumbs:d,actions:i,badge:o}){let c=l||n;return(0,t.jsxs)("div",{className:"mb-6 pb-4 border-b border-slate-200",children:[d&&d.length>0&&(0,t.jsx)("nav",{className:"flex items-center gap-1.5 text-xs text-slate-500 mb-2",children:d.map((e,l)=>{let n=l===d.length-1;return(0,t.jsxs)(s.default.Fragment,{children:[l>0&&(0,t.jsx)(r.ChevronRight,{size:12,className:"text-slate-400"}),e.href&&!n?(0,t.jsx)(a.default,{href:e.href,className:"hover:text-slate-800 transition-colors",children:e.label}):(0,t.jsx)("span",{className:n?"text-slate-900 font-medium":"",children:e.label})]},l)})}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)("h1",{className:"text-xl font-semibold text-slate-900 tracking-tight",children:e}),o&&(0,t.jsx)("div",{children:o})]}),c&&(0,t.jsx)("p",{className:"mt-1 text-xs text-slate-500 max-w-3xl leading-relaxed",children:c})]}),i&&(0,t.jsx)("div",{className:"flex items-center gap-2 flex-shrink-0",children:i})]})]})}])},72854,e=>{"use strict";var t=e.i(43476);function s({decision:e,status:a}){let r=(e||a||"").toUpperCase();return"BLOCK"===r||"DENY"===r||"BLOCKED"===r?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-semibold bg-red-50 text-red-700 border border-red-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-red-600"}),"BLOCK"]}):"ALLOW"===r||"ALLOWED"===r?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-semibold bg-emerald-50 text-emerald-700 border border-emerald-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-600"}),"ALLOW"]}):"HITL"===r||"APPROVAL_REQUIRED"===r?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-semibold bg-amber-50 text-amber-700 border border-amber-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-600"}),"HITL"]}):"MONITOR"===r||"AUDIT"===r?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-semibold bg-blue-50 text-blue-700 border border-blue-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-blue-600"}),"MONITOR"]}):(0,t.jsx)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-medium bg-slate-100 text-slate-700 border border-slate-200",children:e||a||"UNKNOWN"})}e.s(["DecisionBadge",0,s,"SeverityBadge",0,function({severity:e}){let s=(e||"").toUpperCase();return"CRITICAL"===s?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-semibold bg-red-50 text-red-700 border border-red-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-red-600"}),"CRITICAL"]}):"HIGH"===s?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-semibold bg-orange-50 text-orange-700 border border-orange-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-orange-600"}),"HIGH"]}):"MEDIUM"===s?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-semibold bg-amber-50 text-amber-700 border border-amber-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-600"}),"MEDIUM"]}):"LOW"===s?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-medium bg-blue-50 text-blue-700 border border-blue-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-blue-600"}),"LOW"]}):(0,t.jsx)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-medium bg-slate-100 text-slate-600 border border-slate-200",children:e||"INFO"})},"StatusBadge",0,s,"TaintBadge",0,function({taint:e}){let s=(e||"").toUpperCase();return"TAINTED"===s||"CRITICAL"===s?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-semibold bg-red-50 text-red-700 border border-red-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-red-600"}),"TAINTED"]}):"CLEAN"===s||"TRUSTED"===s||"NONE"===s?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-medium bg-emerald-50 text-emerald-700 border border-emerald-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500"}),"CLEAN"]}):(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-medium bg-amber-50 text-amber-700 border border-amber-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-500"}),e||"UNASSESSED"]})},"TrustBadge",0,function({trust:e}){let s=(e||"").toUpperCase();return"HIGH"===s||"TRUSTED"===s?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-medium bg-emerald-50 text-emerald-700 border border-emerald-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500"}),e]}):"MEDIUM"===s?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-medium bg-blue-50 text-blue-700 border border-blue-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-blue-500"}),"MEDIUM"]}):"LOW"===s||"UNTRUSTED"===s?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-medium bg-red-50 text-red-700 border border-red-200",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-red-500"}),e]}):(0,t.jsx)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-[11px] font-medium bg-slate-100 text-slate-700 border border-slate-200",children:e||"UNKNOWN"})}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,75225,e=>{"use strict";e.s(["Bar",()=>ez,"computeBarRectangles",()=>ew],75225);var t=e.i(71645),a=e.i(7670),r=e.i(97865),i=e.i(22787),n=e.i(69212),l=e.i(94395),o=e.i(81977),s=e.i(79812),c=e.i(73393),u=e.i(39840),d=e.i(94585),p=e.i(844),m=e.i(45542),f=e.i(59798),h=e.i(46710),v=e.i(61849),y=e.i(61764),x=e.i(92860),I=e.i(41088),g=e.i(77320),b=e.i(10439);function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}var S=(e,t,a)=>{var r=null!=a?a:e;if(!(0,l.isNullish)(r))return(0,l.getPercentValue)(r,t,0)},E=e.i(22075);function O(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function P(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?O(Object(a),!0).forEach(function(t){var r,i,n;r=e,i=t,n=a[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var r=a.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[i]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):O(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var k=e.i(91526),C=e.i(42221),B=(0,v.createSelector)([y.selectUnfilteredCartesianItems,(e,t)=>t],(e,t)=>e.filter(e=>"bar"===e.type).find(e=>e.id===t)),w=(0,v.createSelector)([B],e=>null==e?void 0:e.maxBarSize),z=(0,v.createSelector)([h.selectChartLayout,y.selectUnfilteredCartesianItems,C.selectXAxisIdFromGraphicalItemId,C.selectYAxisIdFromGraphicalItemId,(e,t,a)=>a],(e,t,a,r,i)=>t.filter(t=>"horizontal"===e?t.xAxisId===a:t.yAxisId===r).filter(e=>e.isPanorama===i).filter(e=>!1===e.hide).filter(e=>"bar"===e.type)),D=(0,v.createSelector)([z,g.selectRootBarSize,(e,t)=>{var a=(0,h.selectChartLayout)(e),r=(0,C.selectXAxisIdFromGraphicalItemId)(e,t),i=(0,C.selectYAxisIdFromGraphicalItemId)(e,t);if(null!=r&&null!=i)return"horizontal"===a?(0,y.selectCartesianAxisSize)(e,"xAxis",r):(0,y.selectCartesianAxisSize)(e,"yAxis",i)}],(e,t,a)=>{var r=e.filter(b.isStacked),i=e.filter(e=>null==e.stackId);return[...Object.entries(r.reduce((e,t)=>{var a=e[t.stackId];return null==a&&(a=[]),a.push(t),e[t.stackId]=a,e},{})).map(e=>{var r,i=function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,r,i,n,l=[],o=!0,s=!1;try{i=(t=t.call(e)).next,!1;for(;!(o=(a=i.call(t)).done)&&(l.push(a.value),2!==l.length);o=!0);}catch(e){s=!0,r=e}finally{try{if(!o&&null!=t.return&&(n=t.return(),Object(n)!==n))return}finally{if(s)throw r}}return l}}(e)||function(e){if(e){if("string"==typeof e)return A(e,2);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?A(e,2):void 0}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=i[0],l=i[1];return{stackId:n,dataKeys:l.map(e=>e.dataKey),barSize:S(t,a,null==(r=l[0])?void 0:r.barSize)}}),...i.map(e=>({stackId:void 0,dataKeys:[e.dataKey].filter(e=>null!=e),barSize:S(t,a,e.barSize)}))]}),j=(e,t,a)=>{var r,i,n=(0,h.selectChartLayout)(e),l=(0,C.selectXAxisIdFromGraphicalItemId)(e,t),o=(0,C.selectYAxisIdFromGraphicalItemId)(e,t);if(null!=l&&null!=o)return"horizontal"===n?(r=(0,y.selectAxisWithScale)(e,"xAxis",l,a),i=(0,y.selectTicksOfGraphicalItem)(e,"xAxis",l,a)):(r=(0,y.selectAxisWithScale)(e,"yAxis",o,a),i=(0,y.selectTicksOfGraphicalItem)(e,"yAxis",o,a)),(0,s.getBandSizeOfAxis)(r,i)},M=(0,v.createSelector)([D,g.selectRootMaxBarSize,g.selectBarGap,g.selectBarCategoryGap,(e,t,a)=>{var r,i,n,o,c=B(e,t);if(null==c)return 0;var u=(0,C.selectXAxisIdFromGraphicalItemId)(e,t),d=(0,C.selectYAxisIdFromGraphicalItemId)(e,t);if(null==u||null==d)return 0;var p=(0,h.selectChartLayout)(e),m=(0,g.selectRootMaxBarSize)(e),f=c.maxBarSize,v=(0,l.isNullish)(f)?m:f;return"horizontal"===p?(n=(0,y.selectAxisWithScale)(e,"xAxis",u,a),o=(0,y.selectTicksOfGraphicalItem)(e,"xAxis",u,a)):(n=(0,y.selectAxisWithScale)(e,"yAxis",d,a),o=(0,y.selectTicksOfGraphicalItem)(e,"yAxis",d,a)),null!=(r=null!=(i=(0,s.getBandSizeOfAxis)(n,o,!0))?i:v)?r:0},j,w],(e,t,a,r,i,n,o)=>{var s=function(e,t,a,r,i){var n,o,s=r.length;if(!(s<1)){var c=(0,l.getPercentValue)(e,a,0,!0),u=[];if((0,E.isWellBehavedNumber)(null==(n=r[0])?void 0:n.barSize)){var d=!1,p=a/s,m=r.reduce((e,t)=>e+(t.barSize||0),0);(m+=(s-1)*c)>=a&&(m-=(s-1)*c,c=0),m>=a&&p>0&&(d=!0,p*=.9,m=s*p);var f={offset:Math.round((a-m)/2)-c,size:0};o=r.reduce((e,t)=>{var a,r={stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:f.offset+f.size+c,size:d?p:null!=(a=t.barSize)?a:0}},i=[...e,r];return f=r.position,i},u)}else{var h=(0,l.getPercentValue)(t,a,0,!0);a-2*h-(s-1)*c<=0&&(c=0);var v=(a-2*h-(s-1)*c)/s;v>1&&(v=Math.round(v));var y=(0,E.isWellBehavedNumber)(i)?Math.min(v,i):v;o=r.reduce((e,t,a)=>[...e,{stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:h+s*(v-y)/2+(y+c)*a,size:y}}],u)}return o}}(a,r,i!==n?i:n,e,(0,l.isNullish)(o)?t:o);return i!==n&&null!=s&&(s=s.map(e=>P(P({},e),{},{position:P(P({},e.position),{},{offset:e.position.offset-i/2})}))),s}),T=(0,v.createSelector)([M,B],(e,t)=>{if(null!=e&&null!=t){var a=e.find(e=>e.stackId===t.stackId&&null!=t.dataKey&&e.dataKeys.includes(t.dataKey));if(null!=a)return a.position}}),K=(0,v.createSelector)([(e,t,a)=>{var r=(0,h.selectChartLayout)(e),i=(0,C.selectXAxisIdFromGraphicalItemId)(e,t),n=(0,C.selectYAxisIdFromGraphicalItemId)(e,t);if(null!=i&&null!=n)return"horizontal"===r?(0,y.selectStackGroups)(e,"yAxis",n,a):(0,y.selectStackGroups)(e,"xAxis",i,a)},B],(e,t)=>{var a=(0,k.getStackSeriesIdentifier)(t);if(!e||null==a||null==t)return;var r=t.stackId;if(null!=r){var i=e[r];if(i){var n=i.stackedData;if(n)return n.find(e=>e.key===a)}}}),L=(0,v.createSelector)([I.selectChartOffsetInternal,I.selectAxisViewBox,(e,t,a)=>{var r=(0,C.selectXAxisIdFromGraphicalItemId)(e,t);if(null!=r)return(0,y.selectAxisWithScale)(e,"xAxis",r,a)},(e,t,a)=>{var r=(0,C.selectYAxisIdFromGraphicalItemId)(e,t);if(null!=r)return(0,y.selectAxisWithScale)(e,"yAxis",r,a)},(e,t,a)=>{var r=(0,C.selectXAxisIdFromGraphicalItemId)(e,t);if(null!=r)return(0,y.selectTicksOfGraphicalItem)(e,"xAxis",r,a)},(e,t,a)=>{var r=(0,C.selectYAxisIdFromGraphicalItemId)(e,t);if(null!=r)return(0,y.selectTicksOfGraphicalItem)(e,"yAxis",r,a)},T,h.selectChartLayout,x.selectChartDataWithIndexesIfNotInPanoramaPosition3,j,K,B,(e,t,a,r)=>r],(e,t,a,r,i,n,l,o,s,c,u,d,p)=>{var m,f=s.chartData,h=s.dataStartIndex,v=s.dataEndIndex;if(null!=d&&null!=l&&null!=t&&("horizontal"===o||"vertical"===o)&&null!=a&&null!=r&&null!=i&&null!=n&&null!=c){var y=d.data;if(null!=(m=null!=y&&y.length>0?y:null==f?void 0:f.slice(h,v+1)))return ew({layout:o,barSettings:d,pos:l,parentViewBox:t,bandSize:c,xAxis:a,yAxis:r,xAxisTicks:i,yAxisTicks:n,stackedData:u,displayedData:m,offset:e,cells:p,dataStartIndex:h})}}),N=e.i(27241),G=e.i(75337),F=e.i(76735),R=e.i(95146),W=e.i(51883),V=e.i(15549),U=e.i(91187),X=e.i(57999),Y=e.i(30174),Z=e.i(8436),q=e.i(29601),$=e.i(18457),H=e.i(20135),J=(e.i(19346),(e,t)=>t),Q=(e,t,a)=>a,_=(0,v.createSelector)([J,y.selectUnfilteredCartesianItems,Q],(e,t,a)=>t.filter(e=>"bar"===e.type).filter(t=>t.stackId===e).filter(e=>e.isPanorama===a).filter(e=>!e.hide)),ee=(0,v.createSelector)([_],e=>e.map(e=>e.id)),et=(0,v.createSelector)([e=>e,J,Q],(e,t,a)=>{var r=ee(e,t,a),i=[];return r.forEach(t=>{var r=L(e,t,a,void 0);null==r||r.forEach(e=>{var t=e.originalDataIndex;i[t]=((e,t)=>{if(!e)return t;if(!t)return e;var a=Math.min(e.x,e.x+e.width,t.x,t.x+t.width),r=Math.min(e.y,e.y+e.height,t.y,t.y+t.height);return{x:a,y:r,width:Math.max(e.x,e.x+e.width,t.x,t.x+t.width)-a,height:Math.max(e.y,e.y+e.height,t.y,t.y+t.height)-r}})(i[t],e)})}),i}),ea=e.i(29905),er=["index"];function ei(){return(ei=Object.assign.bind()).apply(null,arguments)}var en=(0,t.createContext)(void 0),el=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),eo=e=>{var a=e.index,i=function(e,t){if(null==e)return{};var a,r,i=function(e,t){if(null==e)return{};var a={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;a[r]=e[r]}return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],-1===t.indexOf(a)&&({}).propertyIsEnumerable.call(e,a)&&(i[a]=e[a])}return i}(e,er),n=(e=>{var a=(0,t.useContext)(en);if(null!=a){var r=a.stackId;return"url(#".concat(el(r,e),")")}})(a);return t.createElement(r.Layer,ei({className:"recharts-bar-stack-layer",clipPath:n},i))};H.propsAreEqual;var es=["onMouseEnter","onMouseLeave","onClick"],ec=["value","background","tooltipPosition"],eu=["id"],ed=["onMouseEnter","onClick","onMouseLeave"];function ep(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,i,n,l,o=[],s=!0,c=!1;try{if(n=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;s=!1}else for(;!(s=(r=n.call(a)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(c)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return em(e,t);var a=({}).toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?em(e,t):void 0}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function em(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}function ef(){return(ef=Object.assign.bind()).apply(null,arguments)}function eh(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function ev(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?eh(Object(a),!0).forEach(function(t){var r,i,n;r=e,i=t,n=a[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var r=a.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[i]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):eh(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function ey(e,t){if(null==e)return{};var a,r,i=function(e,t){if(null==e)return{};var a={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;a[r]=e[r]}return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],-1===t.indexOf(a)&&({}).propertyIsEnumerable.call(e,a)&&(i[a]=e[a])}return i}var ex=t.memo(e=>{var a=e.dataKey,r=e.stroke,i=e.strokeWidth,n=e.fill,o=e.name,c=e.hide,u=e.unit,d=e.formatter,m=e.tooltipType,f=e.id,h={dataDefinedOnItem:void 0,getPosition:l.noop,settings:{stroke:r,strokeWidth:i,fill:n,dataKey:a,nameKey:void 0,name:(0,s.getTooltipNameProp)(o,a),hide:c,type:m,color:n,unit:u,formatter:d,graphicalItemId:f}};return t.createElement(p.SetTooltipEntrySettings,{tooltipEntrySettings:h})});function eI(e){var a,r=(0,N.useAppSelector)(F.selectActiveTooltipIndex),i=e.data,n=e.dataKey,l=e.background,o=e.allOtherBarProps,s=o.onMouseEnter,p=o.onMouseLeave,m=o.onClick,f=ey(o,es),h=(0,d.useMouseEnterItemDispatch)(s,n,o.id),v=(0,d.useMouseLeaveItemDispatch)(p),y=(0,d.useMouseClickItemDispatch)(m,n,o.id);if(!l||null==i)return null;var x=(0,X.svgPropertiesNoEventsFromUnknown)(l);return t.createElement(q.ZIndexLayer,{zIndex:(a=$.DefaultZIndexes.barBackground,l&&"object"==typeof l&&"zIndex"in l&&"number"==typeof l.zIndex&&(0,E.isWellBehavedNumber)(l.zIndex)?l.zIndex:a)},i.map((e,a)=>{e.value;var i=e.background,o=(e.tooltipPosition,ey(e,ec));if(!i)return null;var s=h(e,e.originalDataIndex),d=v(e,e.originalDataIndex),p=y(e,e.originalDataIndex),m=ev(ev(ev(ev(ev({option:l,isActive:String(e.originalDataIndex)===r},o),{},{fill:"#eee"},i),x),(0,c.adaptEventsOfChild)(f,e,a)),{},{onMouseEnter:s,onMouseLeave:d,onClick:p,dataKey:n,index:a,className:"recharts-bar-background-rectangle"});return t.createElement(u.BarRectangle,ef({key:"background-bar-".concat(a)},m))}))}function eg(e){var a=e.showLabels,r=e.children,i=e.rects,l=null==i?void 0:i.map(e=>{var t={x:e.x,y:e.y,width:e.width,lowerWidth:e.width,upperWidth:e.width,height:e.height};return ev(ev({},t),{},{value:e.value,payload:e.payload,parentViewBox:e.parentViewBox,viewBox:t,fill:e.fill})});return t.createElement(n.CartesianLabelListContextProvider,{value:a?l:void 0},r)}function eb(e){var a,r=e.shape,i=e.activeBar,n=e.baseProps,l=e.entry,o=e.index,s=e.dataKey,c=(0,N.useAppSelector)(F.selectActiveTooltipIndex),d=(0,N.useAppSelector)(F.selectActiveTooltipDataKey),p=i&&String(l.originalDataIndex)===c&&(null==d||s===d),m=null!=c&&(String(l.originalDataIndex)!==c||null!=d&&s!==d),f=ep((0,t.useState)(!1),2),h=f[0],v=f[1],y=ep((0,t.useState)(!1),2),x=y[0],I=y[1];(0,t.useEffect)(()=>{var e;return p?(v(!0),e=requestAnimationFrame(()=>{I(!0)})):(I(!1),m&&v(!1)),()=>{cancelAnimationFrame(e)}},[p,m]);var g=(0,t.useCallback)(()=>{p||v(!1)},[p]),b=p&&x,A=p||h;a=p?!0===i?r:i:r;var S=t.createElement(u.BarRectangle,ef({},n,{name:String(n.name)},l,{isActive:b,option:a,index:o,dataKey:s,animationElapsedTime:e.animationElapsedTime,isAnimating:e.isAnimating,isEntrance:e.isEntrance,onTransitionEnd:g}));return A?t.createElement(q.ZIndexLayer,{zIndex:$.DefaultZIndexes.activeBar},t.createElement(eo,{index:l.originalDataIndex},S)):S}function eA(e){var a=e.shape,r=e.baseProps,i=e.entry,n=e.index,l=e.dataKey;return t.createElement(u.BarRectangle,ef({},r,{name:String(r.name)},i,{isActive:!1,option:a,index:n,dataKey:l,animationElapsedTime:e.animationElapsedTime,isAnimating:e.isAnimating,isEntrance:e.isEntrance}))}function eS(e){var a,r=e.data,i=e.props,n=e.animationElapsedTime,l=e.isAnimating,o=e.isEntrance,s=null!=(a=(0,X.svgPropertiesNoEvents)(i))?a:{},u=s.id,p=ey(s,eu),m=i.shape,f=i.dataKey,h=i.activeBar,v=i.onMouseEnter,y=i.onClick,x=i.onMouseLeave,I=ey(i,ed),g=(0,d.useMouseEnterItemDispatch)(v,f,u),b=(0,d.useMouseLeaveItemDispatch)(x),A=(0,d.useMouseClickItemDispatch)(y,f,u);return r?t.createElement(t.Fragment,null,r.map((e,a)=>t.createElement(eo,ef({index:e.originalDataIndex,key:"rectangle-".concat(null==e?void 0:e.x,"-").concat(null==e?void 0:e.y,"-").concat(null==e?void 0:e.value,"-").concat(a),className:"recharts-bar-rectangle"},(0,c.adaptEventsOfChild)(I,e,a),{onMouseEnter:g(e,e.originalDataIndex),onMouseLeave:b(e,e.originalDataIndex),onClick:A(e,e.originalDataIndex)}),h?t.createElement(eb,{shape:m,activeBar:h,baseProps:p,entry:e,index:a,dataKey:f,animationElapsedTime:n,isAnimating:l,isEntrance:o}):t.createElement(eA,{shape:m,baseProps:p,entry:e,index:a,dataKey:f,animationElapsedTime:n,isAnimating:l,isEntrance:o})))):null}function eE(e){var a=e.props,i=e.previousRectanglesRef,l=a.data,o=a.isAnimationActive,s=a.animationBegin,c=a.animationDuration,u=a.animationEasing,d=a.animationInterpolateFn,p=a.layout,m=(0,Y.useAnimationCallbacks)(a.onAnimationStart,a.onAnimationEnd),f=m.isAnimating,h=m.handleAnimationStart,v=m.handleAnimationEnd;return t.createElement(eg,{showLabels:!f,rects:l},t.createElement(Y.AnimatedItems,{animationInput:l,animationIdPrefix:"recharts-bar-",items:l,previousItemsRef:i,isAnimationActive:o,animationBegin:s,animationDuration:c,animationEasing:u,onAnimationStart:h,onAnimationEnd:v,animationInterpolateFn:d,animationMatchBy:a.animationMatchBy,layout:p},(e,i,n)=>t.createElement(r.Layer,null,t.createElement(eS,{props:a,data:e,animationElapsedTime:i,isAnimating:f||i<1,isEntrance:n}))),t.createElement(n.LabelListFromLabelProp,{label:a.label}),a.children)}function eO(e){var a=(0,t.useRef)(null);return t.createElement(eE,{previousRectanglesRef:a,props:e})}var eP=(e,t)=>{var a=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:a,errorVal:(0,s.getValueByDataKey)(e,t)}};class ek extends t.PureComponent{render(){var e=this.props,i=e.hide,n=e.data,l=e.dataKey,o=e.className,s=e.xAxisId,c=e.yAxisId,u=e.needClip,d=e.background,p=e.id;if(i||null==n)return null;var m=(0,a.clsx)("recharts-bar",o);return t.createElement(r.Layer,{className:m,id:p},u&&t.createElement("defs",null,t.createElement(f.GraphicalItemClipPath,{clipPathId:p,xAxisId:s,yAxisId:c})),t.createElement(r.Layer,{className:"recharts-bar-rectangles",clipPath:u?"url(#clipPath-".concat(p,")"):void 0},t.createElement(eI,{data:n,dataKey:l,background:d,allOtherBarProps:this.props}),t.createElement(eO,this.props)))}}var eC={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",animationInterpolateFn:(e,t,a)=>null==e?[]:1===t?e.flatMap(e=>"removed"===e.status?[]:[e.next]):e.flatMap(e=>{if("removed"===e.status)return"horizontal"===a?[ev(ev({},e.prev),{},{height:(0,l.interpolate)(e.prev.height,0,t),y:(0,l.interpolate)(e.prev.y,e.prev.y+e.prev.height,t)})]:[ev(ev({},e.prev),{},{width:(0,l.interpolate)(e.prev.width,0,t)})];if("matched"===e.status)return[ev(ev({},e.next),{},{x:(0,l.interpolate)(e.prev.x,e.next.x,t),y:(0,l.interpolate)(e.prev.y,e.next.y,t),width:(0,l.interpolate)(e.prev.width,e.next.width,t),height:(0,l.interpolate)(e.prev.height,e.next.height,t)})];var r=e.next;return"horizontal"===a?[ev(ev({},r),{},{height:(0,l.interpolate)(0,r.height,t),y:(0,l.interpolate)(r.stackedBarStart,r.y,t)})]:[ev(ev({},r),{},{width:(0,l.interpolate)(0,r.width,t),x:(0,l.interpolate)(r.stackedBarStart,r.x,t)})]}),animationMatchBy:Z.matchAppend,background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:0,shape:u.defaultBarShape,xAxisId:0,yAxisId:0,zIndex:$.DefaultZIndexes.bar};function eB(e){var a,r=e.xAxisId,n=e.yAxisId,l=e.hide,s=e.legendType,c=e.minPointSize,u=e.activeBar,d=e.animationBegin,p=e.animationDuration,v=e.animationEasing,y=e.isAnimationActive,x=(0,f.useNeedsClip)(r,n).needClip,I=(0,h.useChartLayout)(),g=(0,G.useIsPanorama)(),b=(0,o.findAllByType)(e.children,i.Cell),A=(0,N.useAppSelector)(t=>L(t,e.id,g,b));if("vertical"!==I&&"horizontal"!==I)return null;var S=null==A?void 0:A[0];return a=null==S||null==S.height||null==S.width?0:"vertical"===I?S.height/2:S.width/2,t.createElement(m.SetErrorBarContext,{xAxisId:r,yAxisId:n,data:A,dataPointFormatter:eP,errorBarOffset:a},t.createElement(ek,ef({},e,{layout:I,needClip:x,data:A,xAxisId:r,yAxisId:n,hide:l,legendType:s,minPointSize:c,activeBar:u,animationBegin:d,animationDuration:p,animationEasing:v,isAnimationActive:y})))}function ew(e){var t=e.layout,a=e.barSettings,r=a.dataKey,i=a.minPointSize,n=a.hasCustomShape,o=e.pos,c=e.bandSize,d=e.xAxis,p=e.yAxis,m=e.xAxisTicks,f=e.yAxisTicks,h=e.stackedData,v=e.displayedData,y=e.offset,x=e.cells,I=e.parentViewBox,g=e.dataStartIndex,b="horizontal"===t?p:d,A=h?b.scale.domain():null,S=(0,s.getBaseValueOfBar)({numericAxis:b}),E=b.scale.map(S);return v.map((e,a)=>{if(h){var v=h[a+g];if(null==v)return null;O=(0,s.truncateByDomain)(v,A)}else Array.isArray(O=(0,s.getValueByDataKey)(e,r))||(O=[S,O]);var b=(0,u.minPointSizeCallback)(i,0)(O[1],a);if("horizontal"===t){var O,P,k,C,B,w,z,D=p.scale.map(O[0]),j=p.scale.map(O[1]);if(null==D||null==j)return null;P=(0,s.getCateCoordinateOfBar)({axis:d,ticks:m,bandSize:c,offset:o.offset,entry:e,index:a}),k=null!=(z=null!=j?j:D)?z:void 0,C=o.size;var M=D-j;if(B=(0,l.isNan)(M)?0:M,w={x:P,y:y.top,width:C,height:y.height},Math.abs(b)>0&&Math.abs(B)<Math.abs(b)){var T=(0,l.mathSign)(B||b)*(Math.abs(b)-Math.abs(B));k-=T,B+=T}}else{var K=d.scale.map(O[0]),L=d.scale.map(O[1]);if(null==K||null==L)return null;if(P=K,k=(0,s.getCateCoordinateOfBar)({axis:p,ticks:f,bandSize:c,offset:o.offset,entry:e,index:a}),C=L-K,B=o.size,w={x:y.left,y:k,width:y.width,height:B},Math.abs(b)>0&&Math.abs(C)<Math.abs(b)){var N=(0,l.mathSign)(C||b)*(Math.abs(b)-Math.abs(C));C+=N}}return null!=P&&null!=k&&null!=C&&null!=B&&(n||0!==C&&0!==B)?ev(ev({},e),{},{stackedBarStart:E,x:P,y:k,width:C,height:B,value:h?O:O[1],payload:e,background:w,tooltipPosition:{x:P+C/2,y:k+B/2},parentViewBox:I,originalDataIndex:a},x&&x[a]&&x[a].props):null}).filter(Boolean)}var ez=t.memo(function(e){var a,r,i=(0,W.resolveDefaultProps)(e,eC),n=(a=i.stackId,null!=(r=(0,t.useContext)(en))?r.stackId:null!=a?(0,s.getNormalizedStackId)(a):void 0),l=(0,G.useIsPanorama)();return t.createElement(V.RegisterGraphicalItemId,{id:i.id,type:"bar"},e=>{var a,r,o,c;return t.createElement(t.Fragment,null,t.createElement(R.SetLegendPayload,{legendPayload:(a=i.dataKey,r=i.name,o=i.fill,c=i.legendType,[{inactive:i.hide,dataKey:a,type:c,color:o,value:(0,s.getTooltipNameProp)(r,a),payload:i}])}),t.createElement(ex,{dataKey:i.dataKey,stroke:i.stroke,strokeWidth:i.strokeWidth,fill:i.fill,name:i.name,hide:i.hide,unit:i.unit,formatter:i.formatter,tooltipType:i.tooltipType,id:e}),t.createElement(U.SetCartesianGraphicalItem,{type:"bar",id:e,data:void 0,xAxisId:i.xAxisId,yAxisId:i.yAxisId,zAxisId:0,dataKey:i.dataKey,stackId:n,hide:i.hide,barSize:i.barSize,minPointSize:i.minPointSize,maxBarSize:i.maxBarSize,isPanorama:l,hasCustomShape:null!=i.shape&&i.shape!==u.defaultBarShape}),t.createElement(q.ZIndexLayer,{zIndex:i.zIndex},t.createElement(eB,ef({},i,{id:e}))))})},H.propsAreEqual);ez.displayName="Bar"},9694,22787,39840,94585,e=>{"use strict";var t=e.i(71645),a=e.i(25949),r=e.i(33369),i=["axis","item"],n=(0,t.forwardRef)((e,n)=>t.createElement(r.CartesianChart,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:i,tooltipPayloadSearcher:a.arrayTooltipSearcher,categoricalChartProps:e,ref:n}));e.s(["BarChart",0,n],9694);var l=e=>null;l.displayName="Cell",e.s(["Cell",0,l],22787);var o=e.i(29905),s=e.i(18519),c=e.i(94395),u=["option"],d=o.Rectangle;e.s(["BarRectangle",0,function(e){var a=e.option,r=function(e,t){if(null==e)return{};var a,r,i=function(e,t){if(null==e)return{};var a={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;a[r]=e[r]}return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],-1===t.indexOf(a)&&({}).propertyIsEnumerable.call(e,a)&&(i[a]=e[a])}return i}(e,u);return t.createElement(s.Shape,{option:a,DefaultShape:d,shapeProps:r,activeClassName:"recharts-active-bar",inActiveClassName:"recharts-inactive-bar"})},"defaultBarShape",0,d,"minPointSizeCallback",0,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(a,r)=>{if((0,c.isNumber)(e))return e;var i=(0,c.isNumber)(a)||(0,c.isNullish)(a);return i?e(a,r):(i||function(e,t){if(!e)throw Error("Invariant failed")}(!1,"minPointSize callback function received a value with type of ".concat(typeof a,". Currently only numbers or null/undefined are supported.")),t)}}],39840);var p=e.i(27241),m=e.i(98982);e.s(["useMouseClickItemDispatch",0,(e,t,a)=>{var r=(0,p.useAppDispatch)();return(i,n)=>l=>{null==e||e(i,n,l),r((0,m.setActiveClickItemIndex)({activeIndex:String(n),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:a}))}},"useMouseEnterItemDispatch",0,(e,t,a)=>{var r=(0,p.useAppDispatch)();return(i,n)=>l=>{null==e||e(i,n,l),r((0,m.setActiveMouseOverItemIndex)({activeIndex:String(n),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:a}))}},"useMouseLeaveItemDispatch",0,e=>{var t=(0,p.useAppDispatch)();return(a,r)=>i=>{null==e||e(a,r,i),t((0,m.mouseLeaveItem)())}}],94585)},45542,e=>{"use strict";var t=e.i(71645),a=["children"],r=(0,t.createContext)({data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0});e.s(["SetErrorBarContext",0,function(e){var i=e.children,n=function(e,t){if(null==e)return{};var a,r,i=function(e,t){if(null==e)return{};var a={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;a[r]=e[r]}return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],-1===t.indexOf(a)&&({}).propertyIsEnumerable.call(e,a)&&(i[a]=e[a])}return i}(e,a);return t.createElement(r.Provider,{value:n},i)}])}]);
|