import{r as L,c as Wi,g as oe,R as P}from"./vendor-D6aTFYy9.js";/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var mg={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gg=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),k=(e,t)=>{const r=L.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:u="",children:c,...s},f)=>L.createElement("svg",{ref:f,...mg,width:i,height:i,stroke:n,strokeWidth:o?Number(a)*24/Number(i):a,className:["lucide",`lucide-${gg(e)}`,u].join(" "),...s},[...t.map(([l,h])=>L.createElement(l,h)),...Array.isArray(c)?c:[c]]));return r.displayName=`${e}`,r};/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const C7=k("Activity",[["path",{d:"M22 12h-4l-3 9L9 3l-3 9H2",key:"d5dnw9"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const I7=k("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const D7=k("AlertOctagon",[["polygon",{points:"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2",key:"h1p8hx"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const N7=k("AlertTriangle",[["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-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const L7=k("AlignLeft",[["line",{x1:"21",x2:"3",y1:"6",y2:"6",key:"1fp77t"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}],["line",{x1:"17",x2:"3",y1:"18",y2:"18",key:"1awlsn"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const R7=k("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const B7=k("ArrowDownRight",[["path",{d:"m7 7 10 10",key:"1fmybs"}],["path",{d:"M17 7v10H7",key:"6fjiku"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const z7=k("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const F7=k("ArrowLeftRight",[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const W7=k("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const U7=k("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const H7=k("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const q7=k("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const K7=k("Award",[["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}],["path",{d:"M15.477 12.89 17 22l-5-3-5 3 1.523-9.11",key:"em7aur"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const V7=k("BadgeCheck",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const G7=k("Banknote",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M6 12h.01M18 12h.01",key:"113zkx"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const X7=k("BarChart2",[["line",{x1:"18",x2:"18",y1:"20",y2:"10",key:"1xfpm4"}],["line",{x1:"12",x2:"12",y1:"20",y2:"4",key:"be30l9"}],["line",{x1:"6",x2:"6",y1:"20",y2:"14",key:"1r4le6"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Y7=k("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Z7=k("BarChart",[["line",{x1:"12",x2:"12",y1:"20",y2:"10",key:"1vz5eb"}],["line",{x1:"18",x2:"18",y1:"20",y2:"4",key:"cun8e5"}],["line",{x1:"6",x2:"6",y1:"20",y2:"16",key:"hq0ia6"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const J7=k("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Q7=k("BookOpen",[["path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z",key:"vv98re"}],["path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z",key:"1cyq3y"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const eB=k("Book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tB=k("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rB=k("Box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nB=k("Braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const iB=k("Briefcase",[["rect",{width:"20",height:"14",x:"2",y:"7",rx:"2",ry:"2",key:"eto64e"}],["path",{d:"M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"zwj3tp"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const aB=k("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const oB=k("Building",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const uB=k("Calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cB=k("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sB=k("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lB=k("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fB=k("CheckCircle2",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hB=k("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pB=k("CheckSquare",[["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}],["path",{d:"M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11",key:"1jnkn4"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const dB=k("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yB=k("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vB=k("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mB=k("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gB=k("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bB=k("CircleDot",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xB=k("CircleUser",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wB=k("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const OB=k("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const AB=k("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const PB=k("Command",[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const SB=k("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _B=k("Cpu",[["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"9",y:"9",width:"6",height:"6",key:"o3kz5p"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $B=k("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const kB=k("Crop",[["path",{d:"M6 2v14a2 2 0 0 0 2 2h14",key:"ron5a4"}],["path",{d:"M18 22V8a2 2 0 0 0-2-2H2",key:"7s9ehn"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const TB=k("DatabaseZap",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 15 21.84",key:"14ibmq"}],["path",{d:"M21 5V8",key:"1marbg"}],["path",{d:"M21 12L18 17H22L19 22",key:"zafso"}],["path",{d:"M3 12A9 3 0 0 0 14.59 14.87",key:"1y4wr8"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const MB=k("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const jB=k("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const EB=k("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const CB=k("Droplets",[["path",{d:"M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z",key:"1ptgy4"}],["path",{d:"M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97",key:"1sl1rz"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const IB=k("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const DB=k("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const NB=k("Factory",[["path",{d:"M2 20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8l-7 5V8l-7 5V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"159hny"}],["path",{d:"M17 18h1",key:"uldtlt"}],["path",{d:"M12 18h1",key:"s9uhes"}],["path",{d:"M7 18h1",key:"1neino"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const LB=k("FileMinus",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M9 15h6",key:"cctwl0"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const RB=k("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const BB=k("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zB=k("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const FB=k("Fingerprint",[["path",{d:"M2 12C2 6.5 6.5 2 12 2a10 10 0 0 1 8 4",key:"1jc9o5"}],["path",{d:"M5 19.5C5.5 18 6 15 6 12c0-.7.12-1.37.34-2",key:"1mxgy1"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2c0 .47 0 1.17-.02 2",key:"1fgabc"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const WB=k("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const UB=k("Grid3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const HB=k("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qB=k("HelpCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const KB=k("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const VB=k("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const GB=k("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const XB=k("Inbox",[["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"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const YB=k("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ZB=k("Keyboard",[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const JB=k("Landmark",[["line",{x1:"3",x2:"21",y1:"22",y2:"22",key:"j8o0r"}],["line",{x1:"6",x2:"6",y1:"18",y2:"11",key:"10tf0k"}],["line",{x1:"10",x2:"10",y1:"18",y2:"11",key:"54lgf6"}],["line",{x1:"14",x2:"14",y1:"18",y2:"11",key:"380y"}],["line",{x1:"18",x2:"18",y1:"18",y2:"11",key:"1kevvc"}],["polygon",{points:"12 2 20 7 4 7",key:"jkujk7"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const QB=k("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const e9=k("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const t9=k("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const r9=k("List",[["line",{x1:"8",x2:"21",y1:"6",y2:"6",key:"7ey8pc"}],["line",{x1:"8",x2:"21",y1:"12",y2:"12",key:"rjfblc"}],["line",{x1:"8",x2:"21",y1:"18",y2:"18",key:"c3b1m8"}],["line",{x1:"3",x2:"3.01",y1:"6",y2:"6",key:"1g7gq3"}],["line",{x1:"3",x2:"3.01",y1:"12",y2:"12",key:"1pjlvk"}],["line",{x1:"3",x2:"3.01",y1:"18",y2:"18",key:"28t2mc"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const n9=k("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const i9=k("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const a9=k("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const o9=k("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const u9=k("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const c9=k("MapPin",[["path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z",key:"2oe9fu"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const s9=k("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const l9=k("Maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const f9=k("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const h9=k("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const p9=k("Minimize",[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3",key:"hohbtr"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3",key:"5jw1f3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3",key:"198tvr"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3",key:"ph8mxp"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const d9=k("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const y9=k("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const v9=k("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const m9=k("MoreHorizontal",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const g9=k("MoreVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const b9=k("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const x9=k("PackagePlus",[["path",{d:"M16 16h6",key:"100bgy"}],["path",{d:"M19 13v6",key:"85cyf1"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const w9=k("PackageSearch",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const O9=k("Package",[["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const A9=k("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const P9=k("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const S9=k("PanelLeftOpen",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _9=k("PanelsTopLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $9=k("Pen",[["path",{d:"M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z",key:"5qss01"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const k9=k("Pencil",[["path",{d:"M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z",key:"5qss01"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const T9=k("Percent",[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const M9=k("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const j9=k("PieChart",[["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}],["path",{d:"M22 12A10 10 0 0 0 12 2v10z",key:"1rfc4y"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const E9=k("Pipette",[["path",{d:"m2 22 1-1h3l9-9",key:"1sre89"}],["path",{d:"M3 21v-3l9-9",key:"hpe2y6"}],["path",{d:"m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1 0 1 1-3 3l-3.8-3.8a2.1 2.1 0 1 1 3-3l.4.4Z",key:"196du1"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const C9=k("PlayCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const I9=k("Play",[["polygon",{points:"5 3 19 12 5 21 5 3",key:"191637"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const D9=k("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const N9=k("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const L9=k("Printer",[["polyline",{points:"6 9 6 2 18 2 18 9",key:"1306q4"}],["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["rect",{width:"12",height:"8",x:"6",y:"14",key:"5ipwut"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const R9=k("QrCode",[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const B9=k("Receipt",[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 17.5v-11",key:"1jc1ny"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const z9=k("RefreshCw",[["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"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const F9=k("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const W9=k("Ruler",[["path",{d:"M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z",key:"icamh8"}],["path",{d:"m14.5 12.5 2-2",key:"inckbg"}],["path",{d:"m11.5 9.5 2-2",key:"fmmyf7"}],["path",{d:"m8.5 6.5 2-2",key:"vc6u1g"}],["path",{d:"m17.5 15.5 2-2",key:"wo5hmg"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const U9=k("Save",[["path",{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z",key:"1owoqh"}],["polyline",{points:"17 21 17 13 7 13 7 21",key:"1md35c"}],["polyline",{points:"7 3 7 8 15 8",key:"8nz8an"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const H9=k("Scale",[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const q9=k("Scissors",[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const K9=k("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const V9=k("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const G9=k("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const X9=k("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Y9=k("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Z9=k("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const J9=k("ShoppingBag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Q9=k("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ez=k("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tz=k("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rz=k("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z",key:"1lpok0"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nz=k("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const iz=k("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const az=k("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const oz=k("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const uz=k("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cz=k("TimerOff",[["path",{d:"M10 2h4",key:"n1abiw"}],["path",{d:"M4.6 11a8 8 0 0 0 1.7 8.7 8 8 0 0 0 8.7 1.7",key:"10he05"}],["path",{d:"M7.4 7.4a8 8 0 0 1 10.3 1 8 8 0 0 1 .9 10.2",key:"15f7sh"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M12 12v-2",key:"fwoke6"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sz=k("Timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lz=k("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fz=k("Trello",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["rect",{width:"3",height:"9",x:"7",y:"7",key:"14n3xi"}],["rect",{width:"3",height:"5",x:"14",y:"7",key:"s4azjd"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hz=k("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pz=k("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const dz=k("Truck",[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yz=k("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vz=k("UploadCloud",[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M12 12v9",key:"192myk"}],["path",{d:"m16 16-4-4-4 4",key:"119tzi"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mz=k("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gz=k("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bz=k("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xz=k("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wz=k("Wallet",[["path",{d:"M21 12V7H5a2 2 0 0 1 0-4h14v4",key:"195gfw"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h16v-5",key:"195n9w"}],["path",{d:"M18 12a2 2 0 0 0 0 4h4v-4Z",key:"vllfpd"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Oz=k("Warehouse",[["path",{d:"M22 8.35V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8.35A2 2 0 0 1 3.26 6.5l8-3.2a2 2 0 0 1 1.48 0l8 3.2A2 2 0 0 1 22 8.35Z",key:"gksnxg"}],["path",{d:"M6 18h12",key:"9pbo8z"}],["path",{d:"M6 14h12",key:"4cwo0f"}],["rect",{width:"12",height:"12",x:"6",y:"10",key:"apd30q"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Az=k("Workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Pz=k("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Sz=k("XCircle",[["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"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _z=k("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $z=k("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const kz=k("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Tz=k("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);function wd(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=wd(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function J(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=wd(e))&&(n&&(n+=" "),n+=t);return n}var bg=Array.isArray,We=bg,xg=typeof Wi=="object"&&Wi&&Wi.Object===Object&&Wi,Od=xg,wg=Od,Og=typeof self=="object"&&self&&self.Object===Object&&self,Ag=wg||Og||Function("return this")(),mt=Ag,Pg=mt,Sg=Pg.Symbol,Ti=Sg,vl=Ti,Ad=Object.prototype,_g=Ad.hasOwnProperty,$g=Ad.toString,kn=vl?vl.toStringTag:void 0;function kg(e){var t=_g.call(e,kn),r=e[kn];try{e[kn]=void 0;var n=!0}catch{}var i=$g.call(e);return n&&(t?e[kn]=r:delete e[kn]),i}var Tg=kg,Mg=Object.prototype,jg=Mg.toString;function Eg(e){return jg.call(e)}var Cg=Eg,ml=Ti,Ig=Tg,Dg=Cg,Ng="[object Null]",Lg="[object Undefined]",gl=ml?ml.toStringTag:void 0;function Rg(e){return e==null?e===void 0?Lg:Ng:gl&&gl in Object(e)?Ig(e):Dg(e)}var Et=Rg;function Bg(e){return e!=null&&typeof e=="object"}var Ct=Bg,zg=Et,Fg=Ct,Wg="[object Symbol]";function Ug(e){return typeof e=="symbol"||Fg(e)&&zg(e)==Wg}var pn=Ug,Hg=We,qg=pn,Kg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Vg=/^\w*$/;function Gg(e,t){if(Hg(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||qg(e)?!0:Vg.test(e)||!Kg.test(e)||t!=null&&e in Object(t)}var os=Gg;function Xg(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ht=Xg;const dn=oe(Ht);var Yg=Et,Zg=Ht,Jg="[object AsyncFunction]",Qg="[object Function]",e0="[object GeneratorFunction]",t0="[object Proxy]";function r0(e){if(!Zg(e))return!1;var t=Yg(e);return t==Qg||t==e0||t==Jg||t==t0}var us=r0;const V=oe(us);var n0=mt,i0=n0["__core-js_shared__"],a0=i0,tu=a0,bl=function(){var e=/[^.]+$/.exec(tu&&tu.keys&&tu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function o0(e){return!!bl&&bl in e}var u0=o0,c0=Function.prototype,s0=c0.toString;function l0(e){if(e!=null){try{return s0.call(e)}catch{}try{return e+""}catch{}}return""}var Pd=l0,f0=us,h0=u0,p0=Ht,d0=Pd,y0=/[\\^$.*+?()[\]{}|]/g,v0=/^\[object .+?Constructor\]$/,m0=Function.prototype,g0=Object.prototype,b0=m0.toString,x0=g0.hasOwnProperty,w0=RegExp("^"+b0.call(x0).replace(y0,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function O0(e){if(!p0(e)||h0(e))return!1;var t=f0(e)?w0:v0;return t.test(d0(e))}var A0=O0;function P0(e,t){return e==null?void 0:e[t]}var S0=P0,_0=A0,$0=S0;function k0(e,t){var r=$0(e,t);return _0(r)?r:void 0}var br=k0,T0=br,M0=T0(Object,"create"),so=M0,xl=so;function j0(){this.__data__=xl?xl(null):{},this.size=0}var E0=j0;function C0(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var I0=C0,D0=so,N0="__lodash_hash_undefined__",L0=Object.prototype,R0=L0.hasOwnProperty;function B0(e){var t=this.__data__;if(D0){var r=t[e];return r===N0?void 0:r}return R0.call(t,e)?t[e]:void 0}var z0=B0,F0=so,W0=Object.prototype,U0=W0.hasOwnProperty;function H0(e){var t=this.__data__;return F0?t[e]!==void 0:U0.call(t,e)}var q0=H0,K0=so,V0="__lodash_hash_undefined__";function G0(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=K0&&t===void 0?V0:t,this}var X0=G0,Y0=E0,Z0=I0,J0=z0,Q0=q0,eb=X0;function yn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}yn.prototype.clear=Y0;yn.prototype.delete=Z0;yn.prototype.get=J0;yn.prototype.has=Q0;yn.prototype.set=eb;var tb=yn;function rb(){this.__data__=[],this.size=0}var nb=rb;function ib(e,t){return e===t||e!==e&&t!==t}var cs=ib,ab=cs;function ob(e,t){for(var r=e.length;r--;)if(ab(e[r][0],t))return r;return-1}var lo=ob,ub=lo,cb=Array.prototype,sb=cb.splice;function lb(e){var t=this.__data__,r=ub(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():sb.call(t,r,1),--this.size,!0}var fb=lb,hb=lo;function pb(e){var t=this.__data__,r=hb(t,e);return r<0?void 0:t[r][1]}var db=pb,yb=lo;function vb(e){return yb(this.__data__,e)>-1}var mb=vb,gb=lo;function bb(e,t){var r=this.__data__,n=gb(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var xb=bb,wb=nb,Ob=fb,Ab=db,Pb=mb,Sb=xb;function vn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}vn.prototype.clear=wb;vn.prototype.delete=Ob;vn.prototype.get=Ab;vn.prototype.has=Pb;vn.prototype.set=Sb;var fo=vn,_b=br,$b=mt,kb=_b($b,"Map"),ss=kb,wl=tb,Tb=fo,Mb=ss;function jb(){this.size=0,this.__data__={hash:new wl,map:new(Mb||Tb),string:new wl}}var Eb=jb;function Cb(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Ib=Cb,Db=Ib;function Nb(e,t){var r=e.__data__;return Db(t)?r[typeof t=="string"?"string":"hash"]:r.map}var ho=Nb,Lb=ho;function Rb(e){var t=Lb(this,e).delete(e);return this.size-=t?1:0,t}var Bb=Rb,zb=ho;function Fb(e){return zb(this,e).get(e)}var Wb=Fb,Ub=ho;function Hb(e){return Ub(this,e).has(e)}var qb=Hb,Kb=ho;function Vb(e,t){var r=Kb(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Gb=Vb,Xb=Eb,Yb=Bb,Zb=Wb,Jb=qb,Qb=Gb;function mn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}mn.prototype.clear=Xb;mn.prototype.delete=Yb;mn.prototype.get=Zb;mn.prototype.has=Jb;mn.prototype.set=Qb;var ls=mn,Sd=ls,e1="Expected a function";function fs(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(e1);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(fs.Cache||Sd),r}fs.Cache=Sd;var _d=fs;const t1=oe(_d);var r1=_d,n1=500;function i1(e){var t=r1(e,function(n){return r.size===n1&&r.clear(),n}),r=t.cache;return t}var a1=i1,o1=a1,u1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c1=/\\(\\)?/g,s1=o1(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(u1,function(r,n,i,a){t.push(i?a.replace(c1,"$1"):n||r)}),t}),l1=s1;function f1(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var hs=f1,Ol=Ti,h1=hs,p1=We,d1=pn,Al=Ol?Ol.prototype:void 0,Pl=Al?Al.toString:void 0;function $d(e){if(typeof e=="string")return e;if(p1(e))return h1(e,$d)+"";if(d1(e))return Pl?Pl.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var y1=$d,v1=y1;function m1(e){return e==null?"":v1(e)}var kd=m1,g1=We,b1=os,x1=l1,w1=kd;function O1(e,t){return g1(e)?e:b1(e,t)?[e]:x1(w1(e))}var Td=O1,A1=pn;function P1(e){if(typeof e=="string"||A1(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var po=P1,S1=Td,_1=po;function $1(e,t){t=S1(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[_1(t[r++])];return r&&r==n?e:void 0}var ps=$1,k1=ps;function T1(e,t,r){var n=e==null?void 0:k1(e,t);return n===void 0?r:n}var Md=T1;const Ge=oe(Md);function M1(e){return e==null}var j1=M1;const Z=oe(j1);var E1=Et,C1=We,I1=Ct,D1="[object String]";function N1(e){return typeof e=="string"||!C1(e)&&I1(e)&&E1(e)==D1}var L1=N1;const pr=oe(L1);var jd={exports:{}},ue={};/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ds=Symbol.for("react.element"),ys=Symbol.for("react.portal"),yo=Symbol.for("react.fragment"),vo=Symbol.for("react.strict_mode"),mo=Symbol.for("react.profiler"),go=Symbol.for("react.provider"),bo=Symbol.for("react.context"),R1=Symbol.for("react.server_context"),xo=Symbol.for("react.forward_ref"),wo=Symbol.for("react.suspense"),Oo=Symbol.for("react.suspense_list"),Ao=Symbol.for("react.memo"),Po=Symbol.for("react.lazy"),B1=Symbol.for("react.offscreen"),Ed;Ed=Symbol.for("react.module.reference");function nt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ds:switch(e=e.type,e){case yo:case mo:case vo:case wo:case Oo:return e;default:switch(e=e&&e.$$typeof,e){case R1:case bo:case xo:case Po:case Ao:case go:return e;default:return t}}case ys:return t}}}ue.ContextConsumer=bo;ue.ContextProvider=go;ue.Element=ds;ue.ForwardRef=xo;ue.Fragment=yo;ue.Lazy=Po;ue.Memo=Ao;ue.Portal=ys;ue.Profiler=mo;ue.StrictMode=vo;ue.Suspense=wo;ue.SuspenseList=Oo;ue.isAsyncMode=function(){return!1};ue.isConcurrentMode=function(){return!1};ue.isContextConsumer=function(e){return nt(e)===bo};ue.isContextProvider=function(e){return nt(e)===go};ue.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ds};ue.isForwardRef=function(e){return nt(e)===xo};ue.isFragment=function(e){return nt(e)===yo};ue.isLazy=function(e){return nt(e)===Po};ue.isMemo=function(e){return nt(e)===Ao};ue.isPortal=function(e){return nt(e)===ys};ue.isProfiler=function(e){return nt(e)===mo};ue.isStrictMode=function(e){return nt(e)===vo};ue.isSuspense=function(e){return nt(e)===wo};ue.isSuspenseList=function(e){return nt(e)===Oo};ue.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===yo||e===mo||e===vo||e===wo||e===Oo||e===B1||typeof e=="object"&&e!==null&&(e.$$typeof===Po||e.$$typeof===Ao||e.$$typeof===go||e.$$typeof===bo||e.$$typeof===xo||e.$$typeof===Ed||e.getModuleId!==void 0)};ue.typeOf=nt;jd.exports=ue;var z1=jd.exports,F1=Et,W1=Ct,U1="[object Number]";function H1(e){return typeof e=="number"||W1(e)&&F1(e)==U1}var Cd=H1;const q1=oe(Cd);var K1=Cd;function V1(e){return K1(e)&&e!=+e}var G1=V1;const gn=oe(G1);var Ne=function(t){return t===0?0:t>0?1:-1},ar=function(t){return pr(t)&&t.indexOf("%")===t.length-1},B=function(t){return q1(t)&&!gn(t)},X1=function(t){return Z(t)},$e=function(t){return B(t)||pr(t)},Y1=0,xr=function(t){var r=++Y1;return"".concat(t||"").concat(r)},Le=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!B(t)&&!pr(t))return n;var a;if(ar(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return gn(a)&&(a=n),i&&a>r&&(a=r),a},Bt=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},Z1=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},ve=function(t,r){return B(t)&&B(r)?function(n){return t+n*(r-t)}:function(){return r}};function ia(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Ge(n,t))===r})}var J1=function(t,r){return B(t)&&B(r)?t-r:pr(t)&&pr(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Dr(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function Mu(e){"@babel/helpers - typeof";return Mu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mu(e)}var Q1=["viewBox","children"],ex=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Sl=["points","pathLength"],ru={svg:Q1,polygon:Sl,polyline:Sl},vs=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],aa=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(L.isValidElement(t)&&(n=t.props),!dn(n))return null;var i={};return Object.keys(n).forEach(function(a){vs.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},tx=function(t,r,n){return function(i){return t(r,n,i),null}},dr=function(t,r,n){if(!dn(t)||Mu(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];vs.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=tx(o,r,n))}),i},rx=["children"],nx=["children"];function _l(e,t){if(e==null)return{};var r=ix(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ix(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ju(e){"@babel/helpers - typeof";return ju=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ju(e)}var $l={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},_t=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},kl=null,nu=null,ms=function e(t){if(t===kl&&Array.isArray(nu))return nu;var r=[];return L.Children.forEach(t,function(n){Z(n)||(z1.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),nu=r,kl=t,r};function Xe(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return _t(i)}):n=[_t(t)],ms(e).forEach(function(i){var a=Ge(i,"type.displayName")||Ge(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Ke(e,t){var r=Xe(e,t);return r&&r[0]}var Tl=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!B(n)||n<=0||!B(i)||i<=0)},ax=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],ox=function(t){return t&&t.type&&pr(t.type)&&ax.indexOf(t.type)>=0},Id=function(t){return t&&ju(t)==="object"&&"clipDot"in t},ux=function(t,r,n,i){var a,o=(a=ru==null?void 0:ru[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!V(t)&&(i&&o.includes(r)||ex.includes(r))||n&&vs.includes(r)},q=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(L.isValidElement(t)&&(i=t.props),!dn(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;ux((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},Eu=function e(t,r){if(t===r)return!0;var n=L.Children.count(t);if(n!==L.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Ml(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!Ml(a,o))return!1}return!0},Ml=function(t,r){if(Z(t)&&Z(r))return!0;if(!Z(t)&&!Z(r)){var n=t.props||{},i=n.children,a=_l(n,rx),o=r.props||{},u=o.children,c=_l(o,nx);return i&&u?Dr(a,c)&&Eu(i,u):!i&&!u?Dr(a,c):!1}return!1},jl=function(t,r){var n=[],i={};return ms(t).forEach(function(a,o){if(ox(a))n.push(a);else if(a){var u=_t(a.type),c=r[u]||{},s=c.handler,f=c.once;if(s&&(!f||!i[u])){var l=s(a,u,o);n.push(l),i[u]=!0}}}),n},cx=function(t){var r=t&&t.type;return r&&$l[r]?$l[r]:null},sx=function(t,r){return ms(r).indexOf(t)},lx=["children","width","height","viewBox","className","style","title","desc"];function Cu(){return Cu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cu.apply(this,arguments)}function fx(e,t){if(e==null)return{};var r=hx(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hx(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Iu(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,c=e.desc,s=fx(e,lx),f=i||{width:r,height:n,x:0,y:0},l=J("recharts-surface",a);return P.createElement("svg",Cu({},q(s,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),P.createElement("title",null,u),P.createElement("desc",null,c),t)}var px=["children","className"];function Du(){return Du=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Du.apply(this,arguments)}function dx(e,t){if(e==null)return{};var r=yx(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yx(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var ee=P.forwardRef(function(e,t){var r=e.children,n=e.className,i=dx(e,px),a=J("recharts-layer",n);return P.createElement("g",Du({className:a},q(i,!0),{ref:t}),r)}),st=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]};function vx(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n<i;)a[n]=e[n+t];return a}var mx=vx,gx=mx;function bx(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:gx(e,t,r)}var xx=bx,wx="\\ud800-\\udfff",Ox="\\u0300-\\u036f",Ax="\\ufe20-\\ufe2f",Px="\\u20d0-\\u20ff",Sx=Ox+Ax+Px,_x="\\ufe0e\\ufe0f",$x="\\u200d",kx=RegExp("["+$x+wx+Sx+_x+"]");function Tx(e){return kx.test(e)}var Dd=Tx;function Mx(e){return e.split("")}var jx=Mx,Nd="\\ud800-\\udfff",Ex="\\u0300-\\u036f",Cx="\\ufe20-\\ufe2f",Ix="\\u20d0-\\u20ff",Dx=Ex+Cx+Ix,Nx="\\ufe0e\\ufe0f",Lx="["+Nd+"]",Nu="["+Dx+"]",Lu="\\ud83c[\\udffb-\\udfff]",Rx="(?:"+Nu+"|"+Lu+")",Ld="[^"+Nd+"]",Rd="(?:\\ud83c[\\udde6-\\uddff]){2}",Bd="[\\ud800-\\udbff][\\udc00-\\udfff]",Bx="\\u200d",zd=Rx+"?",Fd="["+Nx+"]?",zx="(?:"+Bx+"(?:"+[Ld,Rd,Bd].join("|")+")"+Fd+zd+")*",Fx=Fd+zd+zx,Wx="(?:"+[Ld+Nu+"?",Nu,Rd,Bd,Lx].join("|")+")",Ux=RegExp(Lu+"(?="+Lu+")|"+Wx+Fx,"g");function Hx(e){return e.match(Ux)||[]}var qx=Hx,Kx=jx,Vx=Dd,Gx=qx;function Xx(e){return Vx(e)?Gx(e):Kx(e)}var Yx=Xx,Zx=xx,Jx=Dd,Qx=Yx,e2=kd;function t2(e){return function(t){t=e2(t);var r=Jx(t)?Qx(t):void 0,n=r?r[0]:t.charAt(0),i=r?Zx(r,1).join(""):t.slice(1);return n[e]()+i}}var r2=t2,n2=r2,i2=n2("toUpperCase"),a2=i2;const So=oe(a2);function fe(e){return function(){return e}}const Wd=Math.cos,oa=Math.sin,ft=Math.sqrt,ua=Math.PI,_o=2*ua,Ru=Math.PI,Bu=2*Ru,tr=1e-6,o2=Bu-tr;function Ud(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function u2(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Ud;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class c2{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Ud:u2(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,c=n-t,s=i-r,f=o-t,l=u-r,h=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>tr)if(!(Math.abs(l*c-s*f)>tr)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,v=i-u,y=c*c+s*s,d=p*p+v*v,g=Math.sqrt(y),x=Math.sqrt(h),w=a*Math.tan((Ru-Math.acos((y+h-d)/(2*g*x)))/2),O=w/x,m=w/g;Math.abs(O-1)>tr&&this._append`L${t+O*f},${r+O*l}`,this._append`A${a},${a},0,0,${+(l*p>f*v)},${this._x1=t+m*c},${this._y1=r+m*s}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),c=n*Math.sin(i),s=t+u,f=r+c,l=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${s},${f}`:(Math.abs(this._x1-s)>tr||Math.abs(this._y1-f)>tr)&&this._append`L${s},${f}`,n&&(h<0&&(h=h%Bu+Bu),h>o2?this._append`A${n},${n},0,1,${l},${t-u},${r-c}A${n},${n},0,1,${l},${this._x1=s},${this._y1=f}`:h>tr&&this._append`A${n},${n},0,${+(h>=Ru)},${l},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function gs(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new c2(t)}function bs(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Hd(e){this._context=e}Hd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,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);break}}};function $o(e){return new Hd(e)}function qd(e){return e[0]}function Kd(e){return e[1]}function Vd(e,t){var r=fe(!0),n=null,i=$o,a=null,o=gs(u);e=typeof e=="function"?e:e===void 0?qd:fe(e),t=typeof t=="function"?t:t===void 0?Kd:fe(t);function u(c){var s,f=(c=bs(c)).length,l,h=!1,p;for(n==null&&(a=i(p=o())),s=0;s<=f;++s)!(s<f&&r(l=c[s],s,c))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(l,s,c),+t(l,s,c));if(p)return a=null,p+""||null}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:fe(+c),u):e},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:fe(+c),u):t},u.defined=function(c){return arguments.length?(r=typeof c=="function"?c:fe(!!c),u):r},u.curve=function(c){return arguments.length?(i=c,n!=null&&(a=i(n)),u):i},u.context=function(c){return arguments.length?(c==null?n=a=null:a=i(n=c),u):n},u}function Ui(e,t,r){var n=null,i=fe(!0),a=null,o=$o,u=null,c=gs(s);e=typeof e=="function"?e:e===void 0?qd:fe(+e),t=typeof t=="function"?t:fe(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?Kd:fe(+r);function s(l){var h,p,v,y=(l=bs(l)).length,d,g=!1,x,w=new Array(y),O=new Array(y);for(a==null&&(u=o(x=c())),h=0;h<=y;++h){if(!(h<y&&i(d=l[h],h,l))===g)if(g=!g)p=h,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),v=h-1;v>=p;--v)u.point(w[v],O[v]);u.lineEnd(),u.areaEnd()}g&&(w[h]=+e(d,h,l),O[h]=+t(d,h,l),u.point(n?+n(d,h,l):w[h],r?+r(d,h,l):O[h]))}if(x)return u=null,x+""||null}function f(){return Vd().defined(i).curve(o).context(a)}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:fe(+l),n=null,s):e},s.x0=function(l){return arguments.length?(e=typeof l=="function"?l:fe(+l),s):e},s.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:fe(+l),s):n},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:fe(+l),r=null,s):t},s.y0=function(l){return arguments.length?(t=typeof l=="function"?l:fe(+l),s):t},s.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:fe(+l),s):r},s.lineX0=s.lineY0=function(){return f().x(e).y(t)},s.lineY1=function(){return f().x(e).y(r)},s.lineX1=function(){return f().x(n).y(t)},s.defined=function(l){return arguments.length?(i=typeof l=="function"?l:fe(!!l),s):i},s.curve=function(l){return arguments.length?(o=l,a!=null&&(u=o(a)),s):o},s.context=function(l){return arguments.length?(l==null?a=u=null:u=o(a=l),s):a},s}class Gd{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function s2(e){return new Gd(e,!0)}function l2(e){return new Gd(e,!1)}const xs={draw(e,t){const r=ft(t/ua);e.moveTo(r,0),e.arc(0,0,r,0,_o)}},f2={draw(e,t){const r=ft(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},Xd=ft(1/3),h2=Xd*2,p2={draw(e,t){const r=ft(t/h2),n=r*Xd;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},d2={draw(e,t){const r=ft(t),n=-r/2;e.rect(n,n,r,r)}},y2=.8908130915292852,Yd=oa(ua/10)/oa(7*ua/10),v2=oa(_o/10)*Yd,m2=-Wd(_o/10)*Yd,g2={draw(e,t){const r=ft(t*y2),n=v2*r,i=m2*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=_o*a/5,u=Wd(o),c=oa(o);e.lineTo(c*r,-u*r),e.lineTo(u*n-c*i,c*n+u*i)}e.closePath()}},iu=ft(3),b2={draw(e,t){const r=-ft(t/(iu*3));e.moveTo(0,r*2),e.lineTo(-iu*r,-r),e.lineTo(iu*r,-r),e.closePath()}},Ye=-.5,Ze=ft(3)/2,zu=1/ft(12),x2=(zu/2+1)*3,w2={draw(e,t){const r=ft(t/x2),n=r/2,i=r*zu,a=n,o=r*zu+r,u=-a,c=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,c),e.lineTo(Ye*n-Ze*i,Ze*n+Ye*i),e.lineTo(Ye*a-Ze*o,Ze*a+Ye*o),e.lineTo(Ye*u-Ze*c,Ze*u+Ye*c),e.lineTo(Ye*n+Ze*i,Ye*i-Ze*n),e.lineTo(Ye*a+Ze*o,Ye*o-Ze*a),e.lineTo(Ye*u+Ze*c,Ye*c-Ze*u),e.closePath()}};function O2(e,t){let r=null,n=gs(i);e=typeof e=="function"?e:fe(e||xs),t=typeof t=="function"?t:fe(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:fe(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:fe(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function ca(){}function sa(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 Zd(e){this._context=e}Zd.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:sa(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,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:sa(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function A2(e){return new Zd(e)}function Jd(e){this._context=e}Jd.prototype={areaStart:ca,areaEnd:ca,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);break}}},point:function(e,t){switch(e=+e,t=+t,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:sa(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function P2(e){return new Jd(e)}function Qd(e){this._context=e}Qd.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,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,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:sa(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function S2(e){return new Qd(e)}function ey(e){this._context=e}ey.prototype={areaStart:ca,areaEnd:ca,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function _2(e){return new ey(e)}function El(e){return e<0?-1:1}function Cl(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(El(a)+El(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function Il(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function au(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function la(e){this._context=e}la.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:au(this,this._t0,Il(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===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,au(this,Il(this,r=Cl(this,e,t)),r);break;default:au(this,this._t0,r=Cl(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function ty(e){this._context=new ry(e)}(ty.prototype=Object.create(la.prototype)).point=function(e,t){la.prototype.point.call(this,t,e)};function ry(e){this._context=e}ry.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,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function $2(e){return new la(e)}function k2(e){return new ty(e)}function ny(e){this._context=e}ny.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]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Dl(e),i=Dl(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&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)}};function Dl(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function T2(e){return new ny(e)}function ko(e,t){this._context=e,this._t=t}ko.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&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,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)}break}}this._x=e,this._y=t}};function M2(e){return new ko(e,.5)}function j2(e){return new ko(e,0)}function E2(e){return new ko(e,1)}function Br(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Fu(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function C2(e,t){return e[t]}function I2(e){const t=[];return t.key=e,t}function D2(){var e=fe([]),t=Fu,r=Br,n=C2;function i(a){var o=Array.from(e.apply(this,arguments),I2),u,c=o.length,s=-1,f;for(const l of a)for(u=0,++s;u<c;++u)(o[u][s]=[0,+n(l,o[u].key,s,a)]).data=l;for(u=0,f=bs(t(o));u<c;++u)o[f[u]].index=u;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:fe(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:fe(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Fu:typeof a=="function"?a:fe(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Br,i):r},i}function N2(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Br(e,t)}}function L2(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,u=0;o<i;++o)u+=e[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}Br(e,t)}}function R2(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,c=0,s=0;u<o;++u){for(var f=e[t[u]],l=f[n][1]||0,h=f[n-1][1]||0,p=(l-h)/2,v=0;v<u;++v){var y=e[t[v]],d=y[n][1]||0,g=y[n-1][1]||0;p+=d-g}c+=l,s+=p*l}i[n-1][1]+=i[n-1][0]=r,c&&(r-=s/c)}i[n-1][1]+=i[n-1][0]=r,Br(e,t)}}function Kn(e){"@babel/helpers - typeof";return Kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kn(e)}var B2=["type","size","sizeType"];function Wu(){return Wu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wu.apply(this,arguments)}function Nl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ll(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nl(Object(r),!0).forEach(function(n){z2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function z2(e,t,r){return t=F2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F2(e){var t=W2(e,"string");return Kn(t)=="symbol"?t:t+""}function W2(e,t){if(Kn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Kn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function U2(e,t){if(e==null)return{};var r=H2(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function H2(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var iy={symbolCircle:xs,symbolCross:f2,symbolDiamond:p2,symbolSquare:d2,symbolStar:g2,symbolTriangle:b2,symbolWye:w2},q2=Math.PI/180,K2=function(t){var r="symbol".concat(So(t));return iy[r]||xs},V2=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*q2;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},G2=function(t,r){iy["symbol".concat(So(t))]=r},ws=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,u=o===void 0?"area":o,c=U2(t,B2),s=Ll(Ll({},c),{},{type:n,size:a,sizeType:u}),f=function(){var d=K2(n),g=O2().type(d).size(V2(a,u,n));return g()},l=s.className,h=s.cx,p=s.cy,v=q(s,!0);return h===+h&&p===+p&&a===+a?P.createElement("path",Wu({},v,{className:J("recharts-symbols",l),transform:"translate(".concat(h,", ").concat(p,")"),d:f()})):null};ws.registerSymbol=G2;function zr(e){"@babel/helpers - typeof";return zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zr(e)}function Uu(){return Uu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Uu.apply(this,arguments)}function Rl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function X2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rl(Object(r),!0).forEach(function(n){Vn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Y2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Z2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,oy(n.key),n)}}function J2(e,t,r){return t&&Z2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q2(e,t,r){return t=fa(t),ew(e,ay()?Reflect.construct(t,r||[],fa(e).constructor):t.apply(e,r))}function ew(e,t){if(t&&(zr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tw(e)}function tw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ay(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ay=function(){return!!e})()}function fa(e){return fa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fa(e)}function rw(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hu(e,t)}function Hu(e,t){return Hu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Hu(e,t)}function Vn(e,t,r){return t=oy(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oy(e){var t=nw(e,"string");return zr(t)=="symbol"?t:t+""}function nw(e,t){if(zr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Je=32,Os=function(e){function t(){return Y2(this,t),Q2(this,t,arguments)}return rw(t,e),J2(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Je/2,o=Je/6,u=Je/3,c=n.inactive?i:n.color;if(n.type==="plainline")return P.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Je,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return P.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(a,"h").concat(u,`
            A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,`
            H`).concat(Je,"M").concat(2*u,",").concat(a,`
            A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return P.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(Je/8,"h").concat(Je,"v").concat(Je*3/4,"h").concat(-Je,"z"),className:"recharts-legend-icon"});if(P.isValidElement(n.legendIcon)){var s=X2({},n);return delete s.legendIcon,P.cloneElement(n.legendIcon,s)}return P.createElement(ws,{fill:c,cx:a,cy:a,size:Je,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,u=i.layout,c=i.formatter,s=i.inactiveColor,f={x:0,y:0,width:Je,height:Je},l={display:u==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,v){var y=p.formatter||c,d=J(Vn(Vn({"recharts-legend-item":!0},"legend-item-".concat(v),!0),"inactive",p.inactive));if(p.type==="none")return null;var g=V(p.value)?null:p.value;st(!V(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=p.inactive?s:p.color;return P.createElement("li",Uu({className:d,style:l,key:"legend-item-".concat(v)},dr(n.props,p,v)),P.createElement(Iu,{width:o,height:o,viewBox:f,style:h},n.renderIcon(p)),P.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},y?y(g,p,v):g))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return P.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])}(L.PureComponent);Vn(Os,"displayName","Legend");Vn(Os,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var iw=fo;function aw(){this.__data__=new iw,this.size=0}var ow=aw;function uw(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var cw=uw;function sw(e){return this.__data__.get(e)}var lw=sw;function fw(e){return this.__data__.has(e)}var hw=fw,pw=fo,dw=ss,yw=ls,vw=200;function mw(e,t){var r=this.__data__;if(r instanceof pw){var n=r.__data__;if(!dw||n.length<vw-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new yw(n)}return r.set(e,t),this.size=r.size,this}var gw=mw,bw=fo,xw=ow,ww=cw,Ow=lw,Aw=hw,Pw=gw;function bn(e){var t=this.__data__=new bw(e);this.size=t.size}bn.prototype.clear=xw;bn.prototype.delete=ww;bn.prototype.get=Ow;bn.prototype.has=Aw;bn.prototype.set=Pw;var uy=bn,Sw="__lodash_hash_undefined__";function _w(e){return this.__data__.set(e,Sw),this}var $w=_w;function kw(e){return this.__data__.has(e)}var Tw=kw,Mw=ls,jw=$w,Ew=Tw;function ha(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Mw;++t<r;)this.add(e[t])}ha.prototype.add=ha.prototype.push=jw;ha.prototype.has=Ew;var cy=ha;function Cw(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var sy=Cw;function Iw(e,t){return e.has(t)}var ly=Iw,Dw=cy,Nw=sy,Lw=ly,Rw=1,Bw=2;function zw(e,t,r,n,i,a){var o=r&Rw,u=e.length,c=t.length;if(u!=c&&!(o&&c>u))return!1;var s=a.get(e),f=a.get(t);if(s&&f)return s==t&&f==e;var l=-1,h=!0,p=r&Bw?new Dw:void 0;for(a.set(e,t),a.set(t,e);++l<u;){var v=e[l],y=t[l];if(n)var d=o?n(y,v,l,t,e,a):n(v,y,l,e,t,a);if(d!==void 0){if(d)continue;h=!1;break}if(p){if(!Nw(t,function(g,x){if(!Lw(p,x)&&(v===g||i(v,g,r,n,a)))return p.push(x)})){h=!1;break}}else if(!(v===y||i(v,y,r,n,a))){h=!1;break}}return a.delete(e),a.delete(t),h}var fy=zw,Fw=mt,Ww=Fw.Uint8Array,Uw=Ww;function Hw(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var qw=Hw;function Kw(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var As=Kw,Bl=Ti,zl=Uw,Vw=cs,Gw=fy,Xw=qw,Yw=As,Zw=1,Jw=2,Qw="[object Boolean]",eO="[object Date]",tO="[object Error]",rO="[object Map]",nO="[object Number]",iO="[object RegExp]",aO="[object Set]",oO="[object String]",uO="[object Symbol]",cO="[object ArrayBuffer]",sO="[object DataView]",Fl=Bl?Bl.prototype:void 0,ou=Fl?Fl.valueOf:void 0;function lO(e,t,r,n,i,a,o){switch(r){case sO:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case cO:return!(e.byteLength!=t.byteLength||!a(new zl(e),new zl(t)));case Qw:case eO:case nO:return Vw(+e,+t);case tO:return e.name==t.name&&e.message==t.message;case iO:case oO:return e==t+"";case rO:var u=Xw;case aO:var c=n&Zw;if(u||(u=Yw),e.size!=t.size&&!c)return!1;var s=o.get(e);if(s)return s==t;n|=Jw,o.set(e,t);var f=Gw(u(e),u(t),n,i,a,o);return o.delete(e),f;case uO:if(ou)return ou.call(e)==ou.call(t)}return!1}var fO=lO;function hO(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var hy=hO,pO=hy,dO=We;function yO(e,t,r){var n=t(e);return dO(e)?n:pO(n,r(e))}var vO=yO;function mO(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}var gO=mO;function bO(){return[]}var xO=bO,wO=gO,OO=xO,AO=Object.prototype,PO=AO.propertyIsEnumerable,Wl=Object.getOwnPropertySymbols,SO=Wl?function(e){return e==null?[]:(e=Object(e),wO(Wl(e),function(t){return PO.call(e,t)}))}:OO,_O=SO;function $O(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var kO=$O,TO=Et,MO=Ct,jO="[object Arguments]";function EO(e){return MO(e)&&TO(e)==jO}var CO=EO,Ul=CO,IO=Ct,py=Object.prototype,DO=py.hasOwnProperty,NO=py.propertyIsEnumerable,LO=Ul(function(){return arguments}())?Ul:function(e){return IO(e)&&DO.call(e,"callee")&&!NO.call(e,"callee")},Ps=LO,pa={exports:{}};function RO(){return!1}var BO=RO;pa.exports;(function(e,t){var r=mt,n=BO,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,u=o?r.Buffer:void 0,c=u?u.isBuffer:void 0,s=c||n;e.exports=s})(pa,pa.exports);var dy=pa.exports,zO=9007199254740991,FO=/^(?:0|[1-9]\d*)$/;function WO(e,t){var r=typeof e;return t=t??zO,!!t&&(r=="number"||r!="symbol"&&FO.test(e))&&e>-1&&e%1==0&&e<t}var Ss=WO,UO=9007199254740991;function HO(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=UO}var _s=HO,qO=Et,KO=_s,VO=Ct,GO="[object Arguments]",XO="[object Array]",YO="[object Boolean]",ZO="[object Date]",JO="[object Error]",QO="[object Function]",eA="[object Map]",tA="[object Number]",rA="[object Object]",nA="[object RegExp]",iA="[object Set]",aA="[object String]",oA="[object WeakMap]",uA="[object ArrayBuffer]",cA="[object DataView]",sA="[object Float32Array]",lA="[object Float64Array]",fA="[object Int8Array]",hA="[object Int16Array]",pA="[object Int32Array]",dA="[object Uint8Array]",yA="[object Uint8ClampedArray]",vA="[object Uint16Array]",mA="[object Uint32Array]",pe={};pe[sA]=pe[lA]=pe[fA]=pe[hA]=pe[pA]=pe[dA]=pe[yA]=pe[vA]=pe[mA]=!0;pe[GO]=pe[XO]=pe[uA]=pe[YO]=pe[cA]=pe[ZO]=pe[JO]=pe[QO]=pe[eA]=pe[tA]=pe[rA]=pe[nA]=pe[iA]=pe[aA]=pe[oA]=!1;function gA(e){return VO(e)&&KO(e.length)&&!!pe[qO(e)]}var bA=gA;function xA(e){return function(t){return e(t)}}var yy=xA,da={exports:{}};da.exports;(function(e,t){var r=Od,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,u=function(){try{var c=i&&i.require&&i.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();e.exports=u})(da,da.exports);var wA=da.exports,OA=bA,AA=yy,Hl=wA,ql=Hl&&Hl.isTypedArray,PA=ql?AA(ql):OA,vy=PA,SA=kO,_A=Ps,$A=We,kA=dy,TA=Ss,MA=vy,jA=Object.prototype,EA=jA.hasOwnProperty;function CA(e,t){var r=$A(e),n=!r&&_A(e),i=!r&&!n&&kA(e),a=!r&&!n&&!i&&MA(e),o=r||n||i||a,u=o?SA(e.length,String):[],c=u.length;for(var s in e)(t||EA.call(e,s))&&!(o&&(s=="length"||i&&(s=="offset"||s=="parent")||a&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||TA(s,c)))&&u.push(s);return u}var IA=CA,DA=Object.prototype;function NA(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||DA;return e===r}var LA=NA;function RA(e,t){return function(r){return e(t(r))}}var my=RA,BA=my,zA=BA(Object.keys,Object),FA=zA,WA=LA,UA=FA,HA=Object.prototype,qA=HA.hasOwnProperty;function KA(e){if(!WA(e))return UA(e);var t=[];for(var r in Object(e))qA.call(e,r)&&r!="constructor"&&t.push(r);return t}var VA=KA,GA=us,XA=_s;function YA(e){return e!=null&&XA(e.length)&&!GA(e)}var Mi=YA,ZA=IA,JA=VA,QA=Mi;function eP(e){return QA(e)?ZA(e):JA(e)}var To=eP,tP=vO,rP=_O,nP=To;function iP(e){return tP(e,nP,rP)}var aP=iP,Kl=aP,oP=1,uP=Object.prototype,cP=uP.hasOwnProperty;function sP(e,t,r,n,i,a){var o=r&oP,u=Kl(e),c=u.length,s=Kl(t),f=s.length;if(c!=f&&!o)return!1;for(var l=c;l--;){var h=u[l];if(!(o?h in t:cP.call(t,h)))return!1}var p=a.get(e),v=a.get(t);if(p&&v)return p==t&&v==e;var y=!0;a.set(e,t),a.set(t,e);for(var d=o;++l<c;){h=u[l];var g=e[h],x=t[h];if(n)var w=o?n(x,g,h,t,e,a):n(g,x,h,e,t,a);if(!(w===void 0?g===x||i(g,x,r,n,a):w)){y=!1;break}d||(d=h=="constructor")}if(y&&!d){var O=e.constructor,m=t.constructor;O!=m&&"constructor"in e&&"constructor"in t&&!(typeof O=="function"&&O instanceof O&&typeof m=="function"&&m instanceof m)&&(y=!1)}return a.delete(e),a.delete(t),y}var lP=sP,fP=br,hP=mt,pP=fP(hP,"DataView"),dP=pP,yP=br,vP=mt,mP=yP(vP,"Promise"),gP=mP,bP=br,xP=mt,wP=bP(xP,"Set"),gy=wP,OP=br,AP=mt,PP=OP(AP,"WeakMap"),SP=PP,qu=dP,Ku=ss,Vu=gP,Gu=gy,Xu=SP,by=Et,xn=Pd,Vl="[object Map]",_P="[object Object]",Gl="[object Promise]",Xl="[object Set]",Yl="[object WeakMap]",Zl="[object DataView]",$P=xn(qu),kP=xn(Ku),TP=xn(Vu),MP=xn(Gu),jP=xn(Xu),rr=by;(qu&&rr(new qu(new ArrayBuffer(1)))!=Zl||Ku&&rr(new Ku)!=Vl||Vu&&rr(Vu.resolve())!=Gl||Gu&&rr(new Gu)!=Xl||Xu&&rr(new Xu)!=Yl)&&(rr=function(e){var t=by(e),r=t==_P?e.constructor:void 0,n=r?xn(r):"";if(n)switch(n){case $P:return Zl;case kP:return Vl;case TP:return Gl;case MP:return Xl;case jP:return Yl}return t});var EP=rr,uu=uy,CP=fy,IP=fO,DP=lP,Jl=EP,Ql=We,ef=dy,NP=vy,LP=1,tf="[object Arguments]",rf="[object Array]",Hi="[object Object]",RP=Object.prototype,nf=RP.hasOwnProperty;function BP(e,t,r,n,i,a){var o=Ql(e),u=Ql(t),c=o?rf:Jl(e),s=u?rf:Jl(t);c=c==tf?Hi:c,s=s==tf?Hi:s;var f=c==Hi,l=s==Hi,h=c==s;if(h&&ef(e)){if(!ef(t))return!1;o=!0,f=!1}if(h&&!f)return a||(a=new uu),o||NP(e)?CP(e,t,r,n,i,a):IP(e,t,c,r,n,i,a);if(!(r&LP)){var p=f&&nf.call(e,"__wrapped__"),v=l&&nf.call(t,"__wrapped__");if(p||v){var y=p?e.value():e,d=v?t.value():t;return a||(a=new uu),i(y,d,r,n,a)}}return h?(a||(a=new uu),DP(e,t,r,n,i,a)):!1}var zP=BP,FP=zP,af=Ct;function xy(e,t,r,n,i){return e===t?!0:e==null||t==null||!af(e)&&!af(t)?e!==e&&t!==t:FP(e,t,r,n,xy,i)}var $s=xy,WP=uy,UP=$s,HP=1,qP=2;function KP(e,t,r,n){var i=r.length,a=i,o=!n;if(e==null)return!a;for(e=Object(e);i--;){var u=r[i];if(o&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){u=r[i];var c=u[0],s=e[c],f=u[1];if(o&&u[2]){if(s===void 0&&!(c in e))return!1}else{var l=new WP;if(n)var h=n(s,f,c,e,t,l);if(!(h===void 0?UP(f,s,HP|qP,n,l):h))return!1}}return!0}var VP=KP,GP=Ht;function XP(e){return e===e&&!GP(e)}var wy=XP,YP=wy,ZP=To;function JP(e){for(var t=ZP(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,YP(i)]}return t}var QP=JP;function eS(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Oy=eS,tS=VP,rS=QP,nS=Oy;function iS(e){var t=rS(e);return t.length==1&&t[0][2]?nS(t[0][0],t[0][1]):function(r){return r===e||tS(r,e,t)}}var aS=iS;function oS(e,t){return e!=null&&t in Object(e)}var uS=oS,cS=Td,sS=Ps,lS=We,fS=Ss,hS=_s,pS=po;function dS(e,t,r){t=cS(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=pS(t[n]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&hS(i)&&fS(o,i)&&(lS(e)||sS(e)))}var yS=dS,vS=uS,mS=yS;function gS(e,t){return e!=null&&mS(e,t,vS)}var bS=gS,xS=$s,wS=Md,OS=bS,AS=os,PS=wy,SS=Oy,_S=po,$S=1,kS=2;function TS(e,t){return AS(e)&&PS(t)?SS(_S(e),t):function(r){var n=wS(r,e);return n===void 0&&n===t?OS(r,e):xS(t,n,$S|kS)}}var MS=TS;function jS(e){return e}var wn=jS;function ES(e){return function(t){return t==null?void 0:t[e]}}var CS=ES,IS=ps;function DS(e){return function(t){return IS(t,e)}}var NS=DS,LS=CS,RS=NS,BS=os,zS=po;function FS(e){return BS(e)?LS(zS(e)):RS(e)}var WS=FS,US=aS,HS=MS,qS=wn,KS=We,VS=WS;function GS(e){return typeof e=="function"?e:e==null?qS:typeof e=="object"?KS(e)?HS(e[0],e[1]):US(e):VS(e)}var gt=GS;function XS(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var Ay=XS;function YS(e){return e!==e}var ZS=YS;function JS(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var QS=JS,e_=Ay,t_=ZS,r_=QS;function n_(e,t,r){return t===t?r_(e,t,r):e_(e,t_,r)}var i_=n_,a_=i_;function o_(e,t){var r=e==null?0:e.length;return!!r&&a_(e,t,0)>-1}var u_=o_;function c_(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}var s_=c_;function l_(){}var f_=l_,cu=gy,h_=f_,p_=As,d_=1/0,y_=cu&&1/p_(new cu([,-0]))[1]==d_?function(e){return new cu(e)}:h_,v_=y_,m_=cy,g_=u_,b_=s_,x_=ly,w_=v_,O_=As,A_=200;function P_(e,t,r){var n=-1,i=g_,a=e.length,o=!0,u=[],c=u;if(r)o=!1,i=b_;else if(a>=A_){var s=t?null:w_(e);if(s)return O_(s);o=!1,i=x_,c=new m_}else c=t?[]:u;e:for(;++n<a;){var f=e[n],l=t?t(f):f;if(f=r||f!==0?f:0,o&&l===l){for(var h=c.length;h--;)if(c[h]===l)continue e;t&&c.push(l),u.push(f)}else i(c,l,r)||(c!==u&&c.push(l),u.push(f))}return u}var S_=P_,__=gt,$_=S_;function k_(e,t){return e&&e.length?$_(e,__(t)):[]}var T_=k_;const of=oe(T_);function Py(e,t,r){return t===!0?of(e,r):V(t)?of(e,t):e}function Fr(e){"@babel/helpers - typeof";return Fr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fr(e)}var M_=["ref"];function uf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uf(Object(r),!0).forEach(function(n){Mo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function j_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cf(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_y(n.key),n)}}function E_(e,t,r){return t&&cf(e.prototype,t),r&&cf(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function C_(e,t,r){return t=ya(t),I_(e,Sy()?Reflect.construct(t,r||[],ya(e).constructor):t.apply(e,r))}function I_(e,t){if(t&&(Fr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return D_(e)}function D_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Sy=function(){return!!e})()}function ya(e){return ya=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ya(e)}function N_(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yu(e,t)}function Yu(e,t){return Yu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Yu(e,t)}function Mo(e,t,r){return t=_y(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _y(e){var t=L_(e,"string");return Fr(t)=="symbol"?t:t+""}function L_(e,t){if(Fr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function R_(e,t){if(e==null)return{};var r=B_(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function B_(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function z_(e){return e.value}function F_(e,t){if(P.isValidElement(e))return P.cloneElement(e,t);if(typeof e=="function")return P.createElement(e,t);t.ref;var r=R_(t,M_);return P.createElement(Os,r)}var sf=1,Nr=function(e){function t(){var r;j_(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=C_(this,t,[].concat(i)),Mo(r,"lastBoundingBox",{width:-1,height:-1}),r}return N_(t,e),E_(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>sf||Math.abs(i.height-this.lastBoundingBox.height)>sf)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?bt({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,c=i.margin,s=i.chartWidth,f=i.chartHeight,l,h;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();l={left:((s||0)-p.width)/2}}else l=o==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(u==="middle"){var v=this.getBBoxSnapshot();h={top:((f||0)-v.height)/2}}else h=u==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return bt(bt({},l),h)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,u=i.height,c=i.wrapperStyle,s=i.payloadUniqBy,f=i.payload,l=bt(bt({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(c)),c);return P.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(p){n.wrapperNode=p}},F_(a,bt(bt({},this.props),{},{payload:Py(f,s,z_)})))}}],[{key:"getWithHeight",value:function(n,i){var a=bt(bt({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&B(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])}(L.PureComponent);Mo(Nr,"displayName","Legend");Mo(Nr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var lf=Ti,W_=Ps,U_=We,ff=lf?lf.isConcatSpreadable:void 0;function H_(e){return U_(e)||W_(e)||!!(ff&&e&&e[ff])}var q_=H_,K_=hy,V_=q_;function $y(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=V_),i||(i=[]);++a<o;){var u=e[a];t>0&&r(u)?t>1?$y(u,t-1,r,n,i):K_(i,u):n||(i[i.length]=u)}return i}var ky=$y;function G_(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),u=o.length;u--;){var c=o[e?u:++i];if(r(a[c],c,a)===!1)break}return t}}var X_=G_,Y_=X_,Z_=Y_(),J_=Z_,Q_=J_,e$=To;function t$(e,t){return e&&Q_(e,t,e$)}var Ty=t$,r$=Mi;function n$(e,t){return function(r,n){if(r==null)return r;if(!r$(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++a<i)&&n(o[a],a,o)!==!1;);return r}}var i$=n$,a$=Ty,o$=i$,u$=o$(a$),ks=u$,c$=ks,s$=Mi;function l$(e,t){var r=-1,n=s$(e)?Array(e.length):[];return c$(e,function(i,a,o){n[++r]=t(i,a,o)}),n}var My=l$;function f$(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var h$=f$,hf=pn;function p$(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=e===e,a=hf(e),o=t!==void 0,u=t===null,c=t===t,s=hf(t);if(!u&&!s&&!a&&e>t||a&&o&&c&&!u&&!s||n&&o&&c||!r&&c||!i)return 1;if(!n&&!a&&!s&&e<t||s&&r&&i&&!n&&!a||u&&r&&i||!o&&i||!c)return-1}return 0}var d$=p$,y$=d$;function v$(e,t,r){for(var n=-1,i=e.criteria,a=t.criteria,o=i.length,u=r.length;++n<o;){var c=y$(i[n],a[n]);if(c){if(n>=u)return c;var s=r[n];return c*(s=="desc"?-1:1)}}return e.index-t.index}var m$=v$,su=hs,g$=ps,b$=gt,x$=My,w$=h$,O$=yy,A$=m$,P$=wn,S$=We;function _$(e,t,r){t.length?t=su(t,function(a){return S$(a)?function(o){return g$(o,a.length===1?a[0]:a)}:a}):t=[P$];var n=-1;t=su(t,O$(b$));var i=x$(e,function(a,o,u){var c=su(t,function(s){return s(a)});return{criteria:c,index:++n,value:a}});return w$(i,function(a,o){return A$(a,o,r)})}var $$=_$;function k$(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var T$=k$,M$=T$,pf=Math.max;function j$(e,t,r){return t=pf(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=pf(n.length-t,0),o=Array(a);++i<a;)o[i]=n[t+i];i=-1;for(var u=Array(t+1);++i<t;)u[i]=n[i];return u[t]=r(o),M$(e,this,u)}}var E$=j$;function C$(e){return function(){return e}}var I$=C$,D$=br,N$=function(){try{var e=D$(Object,"defineProperty");return e({},"",{}),e}catch{}}(),jy=N$,L$=I$,df=jy,R$=wn,B$=df?function(e,t){return df(e,"toString",{configurable:!0,enumerable:!1,value:L$(t),writable:!0})}:R$,z$=B$,F$=800,W$=16,U$=Date.now;function H$(e){var t=0,r=0;return function(){var n=U$(),i=W$-(n-r);if(r=n,i>0){if(++t>=F$)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var q$=H$,K$=z$,V$=q$,G$=V$(K$),X$=G$,Y$=wn,Z$=E$,J$=X$;function Q$(e,t){return J$(Z$(e,t,Y$),e+"")}var ek=Q$,tk=cs,rk=Mi,nk=Ss,ik=Ht;function ak(e,t,r){if(!ik(r))return!1;var n=typeof t;return(n=="number"?rk(r)&&nk(t,r.length):n=="string"&&t in r)?tk(r[t],e):!1}var jo=ak,ok=ky,uk=$$,ck=ek,yf=jo,sk=ck(function(e,t){if(e==null)return[];var r=t.length;return r>1&&yf(e,t[0],t[1])?t=[]:r>2&&yf(t[0],t[1],t[2])&&(t=[t[0]]),uk(e,ok(t,1),[])}),lk=sk;const Ts=oe(lk);function Gn(e){"@babel/helpers - typeof";return Gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gn(e)}function Zu(){return Zu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zu.apply(this,arguments)}function fk(e,t){return yk(e)||dk(e,t)||pk(e,t)||hk()}function hk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pk(e,t){if(e){if(typeof e=="string")return vf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vf(e,t)}}function vf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function dk(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function yk(e){if(Array.isArray(e))return e}function mf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function lu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mf(Object(r),!0).forEach(function(n){vk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vk(e,t,r){return t=mk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mk(e){var t=gk(e,"string");return Gn(t)=="symbol"?t:t+""}function gk(e,t){if(Gn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bk(e){return Array.isArray(e)&&$e(e[0])&&$e(e[1])?e.join(" ~ "):e}var xk=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,u=o===void 0?{}:o,c=t.labelStyle,s=c===void 0?{}:c,f=t.payload,l=t.formatter,h=t.itemSorter,p=t.wrapperClassName,v=t.labelClassName,y=t.label,d=t.labelFormatter,g=t.accessibilityLayer,x=g===void 0?!1:g,w=function(){if(f&&f.length){var T={padding:0,margin:0},E=(h?Ts(f,h):f).map(function(I,C){if(I.type==="none")return null;var D=lu({display:"block",paddingTop:4,paddingBottom:4,color:I.color||"#000"},u),N=I.formatter||l||bk,z=I.value,F=I.name,K=z,X=F;if(N&&K!=null&&X!=null){var U=N(z,F,I,C,f);if(Array.isArray(U)){var Y=fk(U,2);K=Y[0],X=Y[1]}else K=U}return P.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(C),style:D},$e(X)?P.createElement("span",{className:"recharts-tooltip-item-name"},X):null,$e(X)?P.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,P.createElement("span",{className:"recharts-tooltip-item-value"},K),P.createElement("span",{className:"recharts-tooltip-item-unit"},I.unit||""))});return P.createElement("ul",{className:"recharts-tooltip-item-list",style:T},E)}return null},O=lu({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),m=lu({margin:0},s),b=!Z(y),A=b?y:"",S=J("recharts-default-tooltip",p),_=J("recharts-tooltip-label",v);b&&d&&f!==void 0&&f!==null&&(A=d(y,f));var M=x?{role:"status","aria-live":"assertive"}:{};return P.createElement("div",Zu({className:S,style:O},M),P.createElement("p",{className:_,style:m},P.isValidElement(A)?A:"".concat(A)),w())};function Xn(e){"@babel/helpers - typeof";return Xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xn(e)}function qi(e,t,r){return t=wk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wk(e){var t=Ok(e,"string");return Xn(t)=="symbol"?t:t+""}function Ok(e,t){if(Xn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Tn="recharts-tooltip-wrapper",Ak={visibility:"hidden"};function Pk(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return J(Tn,qi(qi(qi(qi({},"".concat(Tn,"-right"),B(r)&&t&&B(t.x)&&r>=t.x),"".concat(Tn,"-left"),B(r)&&t&&B(t.x)&&r<t.x),"".concat(Tn,"-bottom"),B(n)&&t&&B(t.y)&&n>=t.y),"".concat(Tn,"-top"),B(n)&&t&&B(t.y)&&n<t.y))}function gf(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,u=e.tooltipDimension,c=e.viewBox,s=e.viewBoxDimension;if(a&&B(a[n]))return a[n];var f=r[n]-u-i,l=r[n]+i;if(t[n])return o[n]?f:l;if(o[n]){var h=f,p=c[n];return h<p?Math.max(l,c[n]):Math.max(f,c[n])}var v=l+u,y=c[n]+s;return v>y?Math.max(f,c[n]):Math.max(l,c[n])}function Sk(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function _k(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,c=e.viewBox,s,f,l;return o.height>0&&o.width>0&&r?(f=gf({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),l=gf({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),s=Sk({translateX:f,translateY:l,useTranslate3d:u})):s=Ak,{cssProperties:s,cssClasses:Pk({translateX:f,translateY:l,coordinate:r})}}function Wr(e){"@babel/helpers - typeof";return Wr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wr(e)}function bf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bf(Object(r),!0).forEach(function(n){Qu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kk(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Cy(n.key),n)}}function Tk(e,t,r){return t&&kk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mk(e,t,r){return t=va(t),jk(e,Ey()?Reflect.construct(t,r||[],va(e).constructor):t.apply(e,r))}function jk(e,t){if(t&&(Wr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ek(e)}function Ek(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ey(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ey=function(){return!!e})()}function va(e){return va=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},va(e)}function Ck(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ju(e,t)}function Ju(e,t){return Ju=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ju(e,t)}function Qu(e,t,r){return t=Cy(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cy(e){var t=Ik(e,"string");return Wr(t)=="symbol"?t:t+""}function Ik(e,t){if(Wr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var wf=1,Dk=function(e){function t(){var r;$k(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Mk(this,t,[].concat(i)),Qu(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Qu(r,"handleKeyDown",function(o){if(o.key==="Escape"){var u,c,s,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(c=r.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&u!==void 0?u:0,y:(s=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&s!==void 0?s:0}})}}),r}return Ck(t,e),Tk(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>wf||Math.abs(n.height-this.state.lastBoundingBox.height)>wf)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,c=i.animationEasing,s=i.children,f=i.coordinate,l=i.hasPayload,h=i.isAnimationActive,p=i.offset,v=i.position,y=i.reverseDirection,d=i.useTranslate3d,g=i.viewBox,x=i.wrapperStyle,w=_k({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:p,position:v,reverseDirection:y,tooltipBox:this.state.lastBoundingBox,useTranslate3d:d,viewBox:g}),O=w.cssClasses,m=w.cssProperties,b=xf(xf({transition:h&&a?"transform ".concat(u,"ms ").concat(c):void 0},m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&l?"visible":"hidden",position:"absolute",top:0,left:0},x);return P.createElement("div",{tabIndex:-1,className:O,style:b,ref:function(S){n.wrapperNode=S}},s)}}])}(L.PureComponent),Nk=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},It={isSsr:Nk()};function Ur(e){"@babel/helpers - typeof";return Ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ur(e)}function Of(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Af(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Of(Object(r),!0).forEach(function(n){Ms(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Of(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rk(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Dy(n.key),n)}}function Bk(e,t,r){return t&&Rk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zk(e,t,r){return t=ma(t),Fk(e,Iy()?Reflect.construct(t,r||[],ma(e).constructor):t.apply(e,r))}function Fk(e,t){if(t&&(Ur(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wk(e)}function Wk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Iy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Iy=function(){return!!e})()}function ma(e){return ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ma(e)}function Uk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ec(e,t)}function ec(e,t){return ec=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ec(e,t)}function Ms(e,t,r){return t=Dy(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dy(e){var t=Hk(e,"string");return Ur(t)=="symbol"?t:t+""}function Hk(e,t){if(Ur(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ur(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function qk(e){return e.dataKey}function Kk(e,t){return P.isValidElement(e)?P.cloneElement(e,t):typeof e=="function"?P.createElement(e,t):P.createElement(xk,t)}var xt=function(e){function t(){return Lk(this,t),zk(this,t,arguments)}return Uk(t,e),Bk(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,c=i.animationEasing,s=i.content,f=i.coordinate,l=i.filterNull,h=i.isAnimationActive,p=i.offset,v=i.payload,y=i.payloadUniqBy,d=i.position,g=i.reverseDirection,x=i.useTranslate3d,w=i.viewBox,O=i.wrapperStyle,m=v??[];l&&m.length&&(m=Py(v.filter(function(A){return A.value!=null&&(A.hide!==!0||n.props.includeHidden)}),y,qk));var b=m.length>0;return P.createElement(Dk,{allowEscapeViewBox:o,animationDuration:u,animationEasing:c,isAnimationActive:h,active:a,coordinate:f,hasPayload:b,offset:p,position:d,reverseDirection:g,useTranslate3d:x,viewBox:w,wrapperStyle:O},Kk(s,Af(Af({},this.props),{},{payload:m})))}}])}(L.PureComponent);Ms(xt,"displayName","Tooltip");Ms(xt,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!It.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Vk=mt,Gk=function(){return Vk.Date.now()},Xk=Gk,Yk=/\s/;function Zk(e){for(var t=e.length;t--&&Yk.test(e.charAt(t)););return t}var Jk=Zk,Qk=Jk,eT=/^\s+/;function tT(e){return e&&e.slice(0,Qk(e)+1).replace(eT,"")}var rT=tT,nT=rT,Pf=Ht,iT=pn,Sf=NaN,aT=/^[-+]0x[0-9a-f]+$/i,oT=/^0b[01]+$/i,uT=/^0o[0-7]+$/i,cT=parseInt;function sT(e){if(typeof e=="number")return e;if(iT(e))return Sf;if(Pf(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Pf(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=nT(e);var r=oT.test(e);return r||uT.test(e)?cT(e.slice(2),r?2:8):aT.test(e)?Sf:+e}var Ny=sT,lT=Ht,fu=Xk,_f=Ny,fT="Expected a function",hT=Math.max,pT=Math.min;function dT(e,t,r){var n,i,a,o,u,c,s=0,f=!1,l=!1,h=!0;if(typeof e!="function")throw new TypeError(fT);t=_f(t)||0,lT(r)&&(f=!!r.leading,l="maxWait"in r,a=l?hT(_f(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h);function p(b){var A=n,S=i;return n=i=void 0,s=b,o=e.apply(S,A),o}function v(b){return s=b,u=setTimeout(g,t),f?p(b):o}function y(b){var A=b-c,S=b-s,_=t-A;return l?pT(_,a-S):_}function d(b){var A=b-c,S=b-s;return c===void 0||A>=t||A<0||l&&S>=a}function g(){var b=fu();if(d(b))return x(b);u=setTimeout(g,y(b))}function x(b){return u=void 0,h&&n?p(b):(n=i=void 0,o)}function w(){u!==void 0&&clearTimeout(u),s=0,n=c=i=u=void 0}function O(){return u===void 0?o:x(fu())}function m(){var b=fu(),A=d(b);if(n=arguments,i=this,c=b,A){if(u===void 0)return v(c);if(l)return clearTimeout(u),u=setTimeout(g,t),p(c)}return u===void 0&&(u=setTimeout(g,t)),o}return m.cancel=w,m.flush=O,m}var yT=dT,vT=yT,mT=Ht,gT="Expected a function";function bT(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(gT);return mT(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),vT(e,t,{leading:n,maxWait:t,trailing:i})}var xT=bT;const Ly=oe(xT);function Yn(e){"@babel/helpers - typeof";return Yn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yn(e)}function $f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ki(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$f(Object(r),!0).forEach(function(n){wT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$f(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wT(e,t,r){return t=OT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OT(e){var t=AT(e,"string");return Yn(t)=="symbol"?t:t+""}function AT(e,t){if(Yn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PT(e,t){return kT(e)||$T(e,t)||_T(e,t)||ST()}function ST(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _T(e,t){if(e){if(typeof e=="string")return kf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return kf(e,t)}}function kf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $T(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function kT(e){if(Array.isArray(e))return e}var Mz=L.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,u=e.height,c=u===void 0?"100%":u,s=e.minWidth,f=s===void 0?0:s,l=e.minHeight,h=e.maxHeight,p=e.children,v=e.debounce,y=v===void 0?0:v,d=e.id,g=e.className,x=e.onResize,w=e.style,O=w===void 0?{}:w,m=L.useRef(null),b=L.useRef();b.current=x,L.useImperativeHandle(t,function(){return Object.defineProperty(m.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),m.current},configurable:!0})});var A=L.useState({containerWidth:i.width,containerHeight:i.height}),S=PT(A,2),_=S[0],M=S[1],$=L.useCallback(function(E,I){M(function(C){var D=Math.round(E),N=Math.round(I);return C.containerWidth===D&&C.containerHeight===N?C:{containerWidth:D,containerHeight:N}})},[]);L.useEffect(function(){var E=function(F){var K,X=F[0].contentRect,U=X.width,Y=X.height;$(U,Y),(K=b.current)===null||K===void 0||K.call(b,U,Y)};y>0&&(E=Ly(E,y,{trailing:!0,leading:!1}));var I=new ResizeObserver(E),C=m.current.getBoundingClientRect(),D=C.width,N=C.height;return $(D,N),I.observe(m.current),function(){I.disconnect()}},[$,y]);var T=L.useMemo(function(){var E=_.containerWidth,I=_.containerHeight;if(E<0||I<0)return null;st(ar(o)||ar(c),`The width(%s) and height(%s) are both fixed numbers,
       maybe you don't need to use a ResponsiveContainer.`,o,c),st(!r||r>0,"The aspect(%s) must be greater than zero.",r);var C=ar(o)?E:o,D=ar(c)?I:c;r&&r>0&&(C?D=C/r:D&&(C=D*r),h&&D>h&&(D=h)),st(C>0||D>0,`The width(%s) and height(%s) of chart should be greater than 0,
       please check the style of container, or the props width(%s) and height(%s),
       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
       height and width.`,C,D,o,c,f,l,r);var N=!Array.isArray(p)&&_t(p.type).endsWith("Chart");return P.Children.map(p,function(z){return P.isValidElement(z)?L.cloneElement(z,Ki({width:C,height:D},N?{style:Ki({height:"100%",width:"100%",maxHeight:D,maxWidth:C},z.props.style)}:{})):z})},[r,p,c,h,l,f,_,o]);return P.createElement("div",{id:d?"".concat(d):void 0,className:J("recharts-responsive-container",g),style:Ki(Ki({},O),{},{width:o,height:c,minWidth:f,minHeight:l,maxHeight:h}),ref:m},T)}),js=function(t){return null};js.displayName="Cell";function Zn(e){"@babel/helpers - typeof";return Zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zn(e)}function Tf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tf(Object(r),!0).forEach(function(n){TT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TT(e,t,r){return t=MT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MT(e){var t=jT(e,"string");return Zn(t)=="symbol"?t:t+""}function jT(e,t){if(Zn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _r={widthCache:{},cacheCount:0},ET=2e3,CT={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Mf="recharts_measurement_span";function IT(e){var t=tc({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Bn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||It.isSsr)return{width:0,height:0};var n=IT(r),i=JSON.stringify({text:t,copyStyle:n});if(_r.widthCache[i])return _r.widthCache[i];try{var a=document.getElementById(Mf);a||(a=document.createElement("span"),a.setAttribute("id",Mf),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=tc(tc({},CT),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),c={width:u.width,height:u.height};return _r.widthCache[i]=c,++_r.cacheCount>ET&&(_r.cacheCount=0,_r.widthCache={}),c}catch{return{width:0,height:0}}},DT=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Jn(e){"@babel/helpers - typeof";return Jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jn(e)}function ga(e,t){return BT(e)||RT(e,t)||LT(e,t)||NT()}function NT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LT(e,t){if(e){if(typeof e=="string")return jf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jf(e,t)}}function jf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function RT(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function BT(e){if(Array.isArray(e))return e}function zT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ef(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,WT(n.key),n)}}function FT(e,t,r){return t&&Ef(e.prototype,t),r&&Ef(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function WT(e){var t=UT(e,"string");return Jn(t)=="symbol"?t:t+""}function UT(e,t){if(Jn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Cf=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,If=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,HT=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,qT=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Ry={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},KT=Object.keys(Ry),Mr="NaN";function VT(e,t){return e*Ry[t]}var Vi=function(){function e(t,r){zT(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!HT.test(r)&&(this.num=NaN,this.unit=""),KT.includes(r)&&(this.num=VT(t,r),this.unit="px")}return FT(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=qT.exec(r))!==null&&n!==void 0?n:[],a=ga(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])}();function By(e){if(e.includes(Mr))return Mr;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=Cf.exec(t))!==null&&r!==void 0?r:[],i=ga(n,4),a=i[1],o=i[2],u=i[3],c=Vi.parse(a??""),s=Vi.parse(u??""),f=o==="*"?c.multiply(s):c.divide(s);if(f.isNaN())return Mr;t=t.replace(Cf,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,h=(l=If.exec(t))!==null&&l!==void 0?l:[],p=ga(h,4),v=p[1],y=p[2],d=p[3],g=Vi.parse(v??""),x=Vi.parse(d??""),w=y==="+"?g.add(x):g.subtract(x);if(w.isNaN())return Mr;t=t.replace(If,w.toString())}return t}var Df=/\(([^()]*)\)/;function GT(e){for(var t=e;t.includes("(");){var r=Df.exec(t),n=ga(r,2),i=n[1];t=t.replace(Df,By(i))}return t}function XT(e){var t=e.replace(/\s+/g,"");return t=GT(t),t=By(t),t}function YT(e){try{return XT(e)}catch{return Mr}}function hu(e){var t=YT(e.slice(5,-1));return t===Mr?"":t}var ZT=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],JT=["dx","dy","angle","className","breakAll"];function rc(){return rc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rc.apply(this,arguments)}function Nf(e,t){if(e==null)return{};var r=QT(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function QT(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Lf(e,t){return nM(e)||rM(e,t)||tM(e,t)||eM()}function eM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tM(e,t){if(e){if(typeof e=="string")return Rf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Rf(e,t)}}function Rf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function rM(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function nM(e){if(Array.isArray(e))return e}var zy=/[ \f\n\r\t\v\u2028\u2029]+/,Fy=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];Z(r)||(n?a=r.toString().split(""):a=r.toString().split(zy));var o=a.map(function(c){return{word:c,width:Bn(c,i).width}}),u=n?0:Bn(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},iM=function(t,r,n,i,a){var o=t.maxLines,u=t.children,c=t.style,s=t.breakAll,f=B(o),l=u,h=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return C.reduce(function(D,N){var z=N.word,F=N.width,K=D[D.length-1];if(K&&(i==null||a||K.width+F+n<Number(i)))K.words.push(z),K.width+=F+n;else{var X={words:[z],width:F};D.push(X)}return D},[])},p=h(r),v=function(C){return C.reduce(function(D,N){return D.width>N.width?D:N})};if(!f)return p;for(var y="…",d=function(C){var D=l.slice(0,C),N=Fy({breakAll:s,style:c,children:D+y}).wordsWithComputedWidth,z=h(N),F=z.length>o||v(z).width>Number(i);return[F,z]},g=0,x=l.length-1,w=0,O;g<=x&&w<=l.length-1;){var m=Math.floor((g+x)/2),b=m-1,A=d(b),S=Lf(A,2),_=S[0],M=S[1],$=d(m),T=Lf($,1),E=T[0];if(!_&&!E&&(g=m+1),_&&E&&(x=m-1),!_&&E){O=M;break}w++}return O||p},Bf=function(t){var r=Z(t)?[]:t.toString().split(zy);return[{words:r}]},aM=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!It.isSsr){var c,s,f=Fy({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,h=f.spaceWidth;c=l,s=h}else return Bf(i);return iM({breakAll:o,children:i,maxLines:u,style:a},c,s,r,n)}return Bf(i)},zf="#808080",yr=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,u=o===void 0?"1em":o,c=t.capHeight,s=c===void 0?"0.71em":c,f=t.scaleToFit,l=f===void 0?!1:f,h=t.textAnchor,p=h===void 0?"start":h,v=t.verticalAnchor,y=v===void 0?"end":v,d=t.fill,g=d===void 0?zf:d,x=Nf(t,ZT),w=L.useMemo(function(){return aM({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:l,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,l,x.style,x.width]),O=x.dx,m=x.dy,b=x.angle,A=x.className,S=x.breakAll,_=Nf(x,JT);if(!$e(n)||!$e(a))return null;var M=n+(B(O)?O:0),$=a+(B(m)?m:0),T;switch(y){case"start":T=hu("calc(".concat(s,")"));break;case"middle":T=hu("calc(".concat((w.length-1)/2," * -").concat(u," + (").concat(s," / 2))"));break;default:T=hu("calc(".concat(w.length-1," * -").concat(u,")"));break}var E=[];if(l){var I=w[0].width,C=x.width;E.push("scale(".concat((B(C)?C/I:1)/I,")"))}return b&&E.push("rotate(".concat(b,", ").concat(M,", ").concat($,")")),E.length&&(_.transform=E.join(" ")),P.createElement("text",rc({},q(_,!0),{x:M,y:$,className:J("recharts-text",A),textAnchor:p,fill:g.includes("url")?zf:g}),w.map(function(D,N){var z=D.words.join(S?"":" ");return P.createElement("tspan",{x:M,dy:N===0?T:u,key:"".concat(z,"-").concat(N)},z)}))};function Wt(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function oM(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Es(e){let t,r,n;e.length!==2?(t=Wt,r=(u,c)=>Wt(e(u),c),n=(u,c)=>e(u)-c):(t=e===Wt||e===oM?e:uM,r=e,n=e);function i(u,c,s=0,f=u.length){if(s<f){if(t(c,c)!==0)return f;do{const l=s+f>>>1;r(u[l],c)<0?s=l+1:f=l}while(s<f)}return s}function a(u,c,s=0,f=u.length){if(s<f){if(t(c,c)!==0)return f;do{const l=s+f>>>1;r(u[l],c)<=0?s=l+1:f=l}while(s<f)}return s}function o(u,c,s=0,f=u.length){const l=i(u,c,s,f-1);return l>s&&n(u[l-1],c)>-n(u[l],c)?l-1:l}return{left:i,center:o,right:a}}function uM(){return 0}function Wy(e){return e===null?NaN:+e}function*cM(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const sM=Es(Wt),ji=sM.right;Es(Wy).center;class Ff extends Map{constructor(t,r=hM){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(Wf(this,t))}has(t){return super.has(Wf(this,t))}set(t,r){return super.set(lM(this,t),r)}delete(t){return super.delete(fM(this,t))}}function Wf({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function lM({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function fM({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function hM(e){return e!==null&&typeof e=="object"?e.valueOf():e}function pM(e=Wt){if(e===Wt)return Uy;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function Uy(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const dM=Math.sqrt(50),yM=Math.sqrt(10),vM=Math.sqrt(2);function ba(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=dM?10:a>=yM?5:a>=vM?2:1;let u,c,s;return i<0?(s=Math.pow(10,-i)/o,u=Math.round(e*s),c=Math.round(t*s),u/s<e&&++u,c/s>t&&--c,s=-s):(s=Math.pow(10,i)*o,u=Math.round(e/s),c=Math.round(t/s),u*s<e&&++u,c*s>t&&--c),c<u&&.5<=r&&r<2?ba(e,t,r*2):[u,c,s]}function nc(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?ba(t,e,r):ba(e,t,r);if(!(a>=i))return[];const u=a-i+1,c=new Array(u);if(n)if(o<0)for(let s=0;s<u;++s)c[s]=(a-s)/-o;else for(let s=0;s<u;++s)c[s]=(a-s)*o;else if(o<0)for(let s=0;s<u;++s)c[s]=(i+s)/-o;else for(let s=0;s<u;++s)c[s]=(i+s)*o;return c}function ic(e,t,r){return t=+t,e=+e,r=+r,ba(e,t,r)[2]}function ac(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?ic(t,e,r):ic(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Uf(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Hf(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function Hy(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?Uy:pM(i);n>r;){if(n-r>600){const c=n-r+1,s=t-r+1,f=Math.log(c),l=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*l*(c-l)/c)*(s-c/2<0?-1:1),p=Math.max(r,Math.floor(t-s*l/c+h)),v=Math.min(n,Math.floor(t+(c-s)*l/c+h));Hy(e,t,p,v,i)}const a=e[t];let o=r,u=n;for(Mn(e,r,t),i(e[n],a)>0&&Mn(e,r,n);o<u;){for(Mn(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?Mn(e,r,u):(++u,Mn(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function Mn(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function mM(e,t,r){if(e=Float64Array.from(cM(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Hf(e);if(t>=1)return Uf(e);var n,i=(n-1)*t,a=Math.floor(i),o=Uf(Hy(e,a).subarray(0,a+1)),u=Hf(e.subarray(a+1));return o+(u-o)*(i-a)}}function gM(e,t,r=Wy){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),u=+r(e[a+1],a+1,e);return o+(u-o)*(i-a)}}function bM(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function it(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Dt(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const oc=Symbol("implicit");function Cs(){var e=new Ff,t=[],r=[],n=oc;function i(a){let o=e.get(a);if(o===void 0){if(n!==oc)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Ff;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Cs(t,r).unknown(n)},it.apply(i,arguments),i}function Qn(){var e=Cs().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,c=0,s=0,f=.5;delete e.unknown;function l(){var h=t().length,p=i<n,v=p?i:n,y=p?n:i;a=(y-v)/Math.max(1,h-c+s*2),u&&(a=Math.floor(a)),v+=(y-v-a*(h-c))*f,o=a*(1-c),u&&(v=Math.round(v),o=Math.round(o));var d=bM(h).map(function(g){return v+a*g});return r(p?d.reverse():d)}return e.domain=function(h){return arguments.length?(t(h),l()):t()},e.range=function(h){return arguments.length?([n,i]=h,n=+n,i=+i,l()):[n,i]},e.rangeRound=function(h){return[n,i]=h,n=+n,i=+i,u=!0,l()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(h){return arguments.length?(u=!!h,l()):u},e.padding=function(h){return arguments.length?(c=Math.min(1,s=+h),l()):c},e.paddingInner=function(h){return arguments.length?(c=Math.min(1,h),l()):c},e.paddingOuter=function(h){return arguments.length?(s=+h,l()):s},e.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),l()):f},e.copy=function(){return Qn(t(),[n,i]).round(u).paddingInner(c).paddingOuter(s).align(f)},it.apply(l(),arguments)}function qy(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return qy(t())},e}function zn(){return qy(Qn.apply(null,arguments).paddingInner(1))}function Is(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Ky(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Ei(){}var ei=.7,xa=1/ei,Lr="\\s*([+-]?\\d+)\\s*",ti="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",dt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xM=/^#([0-9a-f]{3,8})$/,wM=new RegExp(`^rgb\\(${Lr},${Lr},${Lr}\\)$`),OM=new RegExp(`^rgb\\(${dt},${dt},${dt}\\)$`),AM=new RegExp(`^rgba\\(${Lr},${Lr},${Lr},${ti}\\)$`),PM=new RegExp(`^rgba\\(${dt},${dt},${dt},${ti}\\)$`),SM=new RegExp(`^hsl\\(${ti},${dt},${dt}\\)$`),_M=new RegExp(`^hsla\\(${ti},${dt},${dt},${ti}\\)$`),qf={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Is(Ei,ri,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Kf,formatHex:Kf,formatHex8:$M,formatHsl:kM,formatRgb:Vf,toString:Vf});function Kf(){return this.rgb().formatHex()}function $M(){return this.rgb().formatHex8()}function kM(){return Vy(this).formatHsl()}function Vf(){return this.rgb().formatRgb()}function ri(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=xM.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Gf(t):r===3?new Fe(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Gi(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Gi(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=wM.exec(e))?new Fe(t[1],t[2],t[3],1):(t=OM.exec(e))?new Fe(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=AM.exec(e))?Gi(t[1],t[2],t[3],t[4]):(t=PM.exec(e))?Gi(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=SM.exec(e))?Zf(t[1],t[2]/100,t[3]/100,1):(t=_M.exec(e))?Zf(t[1],t[2]/100,t[3]/100,t[4]):qf.hasOwnProperty(e)?Gf(qf[e]):e==="transparent"?new Fe(NaN,NaN,NaN,0):null}function Gf(e){return new Fe(e>>16&255,e>>8&255,e&255,1)}function Gi(e,t,r,n){return n<=0&&(e=t=r=NaN),new Fe(e,t,r,n)}function TM(e){return e instanceof Ei||(e=ri(e)),e?(e=e.rgb(),new Fe(e.r,e.g,e.b,e.opacity)):new Fe}function uc(e,t,r,n){return arguments.length===1?TM(e):new Fe(e,t,r,n??1)}function Fe(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Is(Fe,uc,Ky(Ei,{brighter(e){return e=e==null?xa:Math.pow(xa,e),new Fe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ei:Math.pow(ei,e),new Fe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Fe(lr(this.r),lr(this.g),lr(this.b),wa(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:Xf,formatHex:Xf,formatHex8:MM,formatRgb:Yf,toString:Yf}));function Xf(){return`#${or(this.r)}${or(this.g)}${or(this.b)}`}function MM(){return`#${or(this.r)}${or(this.g)}${or(this.b)}${or((isNaN(this.opacity)?1:this.opacity)*255)}`}function Yf(){const e=wa(this.opacity);return`${e===1?"rgb(":"rgba("}${lr(this.r)}, ${lr(this.g)}, ${lr(this.b)}${e===1?")":`, ${e})`}`}function wa(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function lr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function or(e){return e=lr(e),(e<16?"0":"")+e.toString(16)}function Zf(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ct(e,t,r,n)}function Vy(e){if(e instanceof ct)return new ct(e.h,e.s,e.l,e.opacity);if(e instanceof Ei||(e=ri(e)),!e)return new ct;if(e instanceof ct)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,u=a-i,c=(a+i)/2;return u?(t===a?o=(r-n)/u+(r<n)*6:r===a?o=(n-t)/u+2:o=(t-r)/u+4,u/=c<.5?a+i:2-a-i,o*=60):u=c>0&&c<1?0:o,new ct(o,u,c,e.opacity)}function jM(e,t,r,n){return arguments.length===1?Vy(e):new ct(e,t,r,n??1)}function ct(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Is(ct,jM,Ky(Ei,{brighter(e){return e=e==null?xa:Math.pow(xa,e),new ct(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ei:Math.pow(ei,e),new ct(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 Fe(pu(e>=240?e-240:e+120,i,n),pu(e,i,n),pu(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new ct(Jf(this.h),Xi(this.s),Xi(this.l),wa(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(){const e=wa(this.opacity);return`${e===1?"hsl(":"hsla("}${Jf(this.h)}, ${Xi(this.s)*100}%, ${Xi(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Jf(e){return e=(e||0)%360,e<0?e+360:e}function Xi(e){return Math.max(0,Math.min(1,e||0))}function pu(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Ds=e=>()=>e;function EM(e,t){return function(r){return e+r*t}}function CM(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function IM(e){return(e=+e)==1?Gy:function(t,r){return r-t?CM(t,r,e):Ds(isNaN(t)?r:t)}}function Gy(e,t){var r=t-e;return r?EM(e,r):Ds(isNaN(e)?t:e)}const Qf=function e(t){var r=IM(t);function n(i,a){var o=r((i=uc(i)).r,(a=uc(a)).r),u=r(i.g,a.g),c=r(i.b,a.b),s=Gy(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=u(f),i.b=c(f),i.opacity=s(f),i+""}}return n.gamma=e,n}(1);function DM(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function NM(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function LM(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=On(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(u){for(o=0;o<n;++o)a[o]=i[o](u);return a}}function RM(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Oa(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function BM(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=On(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var cc=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,du=new RegExp(cc.source,"g");function zM(e){return function(){return e}}function FM(e){return function(t){return e(t)+""}}function WM(e,t){var r=cc.lastIndex=du.lastIndex=0,n,i,a,o=-1,u=[],c=[];for(e=e+"",t=t+"";(n=cc.exec(e))&&(i=du.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,c.push({i:o,x:Oa(n,i)})),r=du.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?c[0]?FM(c[0].x):zM(t):(t=c.length,function(s){for(var f=0,l;f<t;++f)u[(l=c[f]).i]=l.x(s);return u.join("")})}function On(e,t){var r=typeof t,n;return t==null||r==="boolean"?Ds(t):(r==="number"?Oa:r==="string"?(n=ri(t))?(t=n,Qf):WM:t instanceof ri?Qf:t instanceof Date?RM:NM(t)?DM:Array.isArray(t)?LM:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?BM:Oa)(e,t)}function Ns(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function UM(e,t){t===void 0&&(t=e,e=On);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}function HM(e){return function(){return e}}function Aa(e){return+e}var eh=[0,1];function Re(e){return e}function sc(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:HM(isNaN(t)?NaN:.5)}function qM(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function KM(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=sc(i,n),a=r(o,a)):(n=sc(n,i),a=r(a,o)),function(u){return a(n(u))}}function VM(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=sc(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var c=ji(e,u,1,n)-1;return a[c](i[c](u))}}function Ci(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Eo(){var e=eh,t=eh,r=On,n,i,a,o=Re,u,c,s;function f(){var h=Math.min(e.length,t.length);return o!==Re&&(o=qM(e[0],e[h-1])),u=h>2?VM:KM,c=s=null,l}function l(h){return h==null||isNaN(h=+h)?a:(c||(c=u(e.map(n),t,r)))(n(o(h)))}return l.invert=function(h){return o(i((s||(s=u(t,e.map(n),Oa)))(h)))},l.domain=function(h){return arguments.length?(e=Array.from(h,Aa),f()):e.slice()},l.range=function(h){return arguments.length?(t=Array.from(h),f()):t.slice()},l.rangeRound=function(h){return t=Array.from(h),r=Ns,f()},l.clamp=function(h){return arguments.length?(o=h?!0:Re,f()):o!==Re},l.interpolate=function(h){return arguments.length?(r=h,f()):r},l.unknown=function(h){return arguments.length?(a=h,l):a},function(h,p){return n=h,i=p,f()}}function Ls(){return Eo()(Re,Re)}function GM(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Pa(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Hr(e){return e=Pa(Math.abs(e)),e?e[1]:NaN}function XM(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],c=0;i>0&&u>0&&(c+u+1>n&&(u=Math.max(1,n-c)),a.push(r.substring(i-=u,i+u)),!((c+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function YM(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var ZM=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ni(e){if(!(t=ZM.exec(e)))throw new Error("invalid format: "+e);var t;return new Rs({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}ni.prototype=Rs.prototype;function Rs(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Rs.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function JM(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var Xy;function QM(e,t){var r=Pa(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(Xy=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Pa(e,Math.max(0,t+a-1))[0]}function th(e,t){var r=Pa(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const rh={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:GM,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>th(e*100,t),r:th,s:QM,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function nh(e){return e}var ih=Array.prototype.map,ah=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ej(e){var t=e.grouping===void 0||e.thousands===void 0?nh:XM(ih.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?nh:YM(ih.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function s(l){l=ni(l);var h=l.fill,p=l.align,v=l.sign,y=l.symbol,d=l.zero,g=l.width,x=l.comma,w=l.precision,O=l.trim,m=l.type;m==="n"?(x=!0,m="g"):rh[m]||(w===void 0&&(w=12),O=!0,m="g"),(d||h==="0"&&p==="=")&&(d=!0,h="0",p="=");var b=y==="$"?r:y==="#"&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",A=y==="$"?n:/[%p]/.test(m)?o:"",S=rh[m],_=/[defgprs%]/.test(m);w=w===void 0?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function M($){var T=b,E=A,I,C,D;if(m==="c")E=S($)+E,$="";else{$=+$;var N=$<0||1/$<0;if($=isNaN($)?c:S(Math.abs($),w),O&&($=JM($)),N&&+$==0&&v!=="+"&&(N=!1),T=(N?v==="("?v:u:v==="-"||v==="("?"":v)+T,E=(m==="s"?ah[8+Xy/3]:"")+E+(N&&v==="("?")":""),_){for(I=-1,C=$.length;++I<C;)if(D=$.charCodeAt(I),48>D||D>57){E=(D===46?i+$.slice(I+1):$.slice(I))+E,$=$.slice(0,I);break}}}x&&!d&&($=t($,1/0));var z=T.length+$.length+E.length,F=z<g?new Array(g-z+1).join(h):"";switch(x&&d&&($=t(F+$,F.length?g-E.length:1/0),F=""),p){case"<":$=T+$+E+F;break;case"=":$=T+F+$+E;break;case"^":$=F.slice(0,z=F.length>>1)+T+$+E+F.slice(z);break;default:$=F+T+$+E;break}return a($)}return M.toString=function(){return l+""},M}function f(l,h){var p=s((l=ni(l),l.type="f",l)),v=Math.max(-8,Math.min(8,Math.floor(Hr(h)/3)))*3,y=Math.pow(10,-v),d=ah[8+v/3];return function(g){return p(y*g)+d}}return{format:s,formatPrefix:f}}var Yi,Bs,Yy;tj({thousands:",",grouping:[3],currency:["$",""]});function tj(e){return Yi=ej(e),Bs=Yi.format,Yy=Yi.formatPrefix,Yi}function rj(e){return Math.max(0,-Hr(Math.abs(e)))}function nj(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Hr(t)/3)))*3-Hr(Math.abs(e)))}function ij(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Hr(t)-Hr(e))+1}function Zy(e,t,r,n){var i=ac(e,t,r),a;switch(n=ni(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=nj(i,o))&&(n.precision=a),Yy(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=ij(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=rj(i))&&(n.precision=a-(n.type==="%")*2);break}}return Bs(n)}function qt(e){var t=e.domain;return e.ticks=function(r){var n=t();return nc(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return Zy(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],u=n[a],c,s,f=10;for(u<o&&(s=o,o=u,u=s,s=i,i=a,a=s);f-- >0;){if(s=ic(o,u,r),s===c)return n[i]=o,n[a]=u,t(n);if(s>0)o=Math.floor(o/s)*s,u=Math.ceil(u/s)*s;else if(s<0)o=Math.ceil(o*s)/s,u=Math.floor(u*s)/s;else break;c=s}return e},e}function Sa(){var e=Ls();return e.copy=function(){return Ci(e,Sa())},it.apply(e,arguments),qt(e)}function Jy(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Aa),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Jy(e).unknown(t)},e=arguments.length?Array.from(e,Aa):[0,1],qt(r)}function Qy(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function oh(e){return Math.log(e)}function uh(e){return Math.exp(e)}function aj(e){return-Math.log(-e)}function oj(e){return-Math.exp(-e)}function uj(e){return isFinite(e)?+("1e"+e):e<0?0:e}function cj(e){return e===10?uj:e===Math.E?Math.exp:t=>Math.pow(e,t)}function sj(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function ch(e){return(t,r)=>-e(-t,r)}function zs(e){const t=e(oh,uh),r=t.domain;let n=10,i,a;function o(){return i=sj(n),a=cj(n),r()[0]<0?(i=ch(i),a=ch(a),e(aj,oj)):e(oh,uh),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const c=r();let s=c[0],f=c[c.length-1];const l=f<s;l&&([s,f]=[f,s]);let h=i(s),p=i(f),v,y;const d=u==null?10:+u;let g=[];if(!(n%1)&&p-h<d){if(h=Math.floor(h),p=Math.ceil(p),s>0){for(;h<=p;++h)for(v=1;v<n;++v)if(y=h<0?v/a(-h):v*a(h),!(y<s)){if(y>f)break;g.push(y)}}else for(;h<=p;++h)for(v=n-1;v>=1;--v)if(y=h>0?v/a(-h):v*a(h),!(y<s)){if(y>f)break;g.push(y)}g.length*2<d&&(g=nc(s,f,d))}else g=nc(h,p,Math.min(p-h,d)).map(a);return l?g.reverse():g},t.tickFormat=(u,c)=>{if(u==null&&(u=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=ni(c)).precision==null&&(c.trim=!0),c=Bs(c)),u===1/0)return c;const s=Math.max(1,n*u/t.ticks().length);return f=>{let l=f/a(Math.round(i(f)));return l*n<n-.5&&(l*=n),l<=s?c(f):""}},t.nice=()=>r(Qy(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function ev(){const e=zs(Eo()).domain([1,10]);return e.copy=()=>Ci(e,ev()).base(e.base()),it.apply(e,arguments),e}function sh(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function lh(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Fs(e){var t=1,r=e(sh(t),lh(t));return r.constant=function(n){return arguments.length?e(sh(t=+n),lh(t)):t},qt(r)}function tv(){var e=Fs(Eo());return e.copy=function(){return Ci(e,tv()).constant(e.constant())},it.apply(e,arguments)}function fh(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function lj(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function fj(e){return e<0?-e*e:e*e}function Ws(e){var t=e(Re,Re),r=1;function n(){return r===1?e(Re,Re):r===.5?e(lj,fj):e(fh(r),fh(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},qt(t)}function Us(){var e=Ws(Eo());return e.copy=function(){return Ci(e,Us()).exponent(e.exponent())},it.apply(e,arguments),e}function hj(){return Us.apply(null,arguments).exponent(.5)}function hh(e){return Math.sign(e)*e*e}function pj(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function rv(){var e=Ls(),t=[0,1],r=!1,n;function i(a){var o=pj(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(hh(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Aa)).map(hh)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return rv(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},it.apply(i,arguments),qt(i)}function nv(){var e=[],t=[],r=[],n;function i(){var o=0,u=Math.max(1,t.length);for(r=new Array(u-1);++o<u;)r[o-1]=gM(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[ji(r,o)]}return a.invertExtent=function(o){var u=t.indexOf(o);return u<0?[NaN,NaN]:[u>0?r[u-1]:e[0],u<r.length?r[u]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let u of o)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(Wt),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return nv().domain(e).range(t).unknown(n)},it.apply(a,arguments)}function iv(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(c){return c!=null&&c<=c?i[ji(n,c,0,r)]:a}function u(){var c=-1;for(n=new Array(r);++c<r;)n[c]=((c+1)*t-(c-r)*e)/(r+1);return o}return o.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,u()):[e,t]},o.range=function(c){return arguments.length?(r=(i=Array.from(c)).length-1,u()):i.slice()},o.invertExtent=function(c){var s=i.indexOf(c);return s<0?[NaN,NaN]:s<1?[e,n[0]]:s>=r?[n[r-1],t]:[n[s-1],n[s]]},o.unknown=function(c){return arguments.length&&(a=c),o},o.thresholds=function(){return n.slice()},o.copy=function(){return iv().domain([e,t]).range(i).unknown(a)},it.apply(qt(o),arguments)}function av(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[ji(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return av().domain(e).range(t).unknown(r)},it.apply(i,arguments)}const yu=new Date,vu=new Date;function ke(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const c=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return c;let s;do c.push(s=new Date(+a)),t(a,u),e(a);while(s<a&&a<o);return c},i.filter=a=>ke(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(yu.setTime(+a),vu.setTime(+o),e(yu),e(vu),Math.floor(r(yu,vu))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const _a=ke(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);_a.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ke(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):_a);_a.range;const At=1e3,et=At*60,Pt=et*60,kt=Pt*24,Hs=kt*7,ph=kt*30,mu=kt*365,ur=ke(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*At)},(e,t)=>(t-e)/At,e=>e.getUTCSeconds());ur.range;const qs=ke(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*At)},(e,t)=>{e.setTime(+e+t*et)},(e,t)=>(t-e)/et,e=>e.getMinutes());qs.range;const Ks=ke(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*et)},(e,t)=>(t-e)/et,e=>e.getUTCMinutes());Ks.range;const Vs=ke(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*At-e.getMinutes()*et)},(e,t)=>{e.setTime(+e+t*Pt)},(e,t)=>(t-e)/Pt,e=>e.getHours());Vs.range;const Gs=ke(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Pt)},(e,t)=>(t-e)/Pt,e=>e.getUTCHours());Gs.range;const Ii=ke(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*et)/kt,e=>e.getDate()-1);Ii.range;const Co=ke(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/kt,e=>e.getUTCDate()-1);Co.range;const ov=ke(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/kt,e=>Math.floor(e/kt));ov.range;function wr(e){return ke(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*et)/Hs)}const Io=wr(0),$a=wr(1),dj=wr(2),yj=wr(3),qr=wr(4),vj=wr(5),mj=wr(6);Io.range;$a.range;dj.range;yj.range;qr.range;vj.range;mj.range;function Or(e){return ke(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/Hs)}const Do=Or(0),ka=Or(1),gj=Or(2),bj=Or(3),Kr=Or(4),xj=Or(5),wj=Or(6);Do.range;ka.range;gj.range;bj.range;Kr.range;xj.range;wj.range;const Xs=ke(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Xs.range;const Ys=ke(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Ys.range;const Tt=ke(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Tt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ke(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Tt.range;const Mt=ke(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Mt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ke(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Mt.range;function uv(e,t,r,n,i,a){const o=[[ur,1,At],[ur,5,5*At],[ur,15,15*At],[ur,30,30*At],[a,1,et],[a,5,5*et],[a,15,15*et],[a,30,30*et],[i,1,Pt],[i,3,3*Pt],[i,6,6*Pt],[i,12,12*Pt],[n,1,kt],[n,2,2*kt],[r,1,Hs],[t,1,ph],[t,3,3*ph],[e,1,mu]];function u(s,f,l){const h=f<s;h&&([s,f]=[f,s]);const p=l&&typeof l.range=="function"?l:c(s,f,l),v=p?p.range(s,+f+1):[];return h?v.reverse():v}function c(s,f,l){const h=Math.abs(f-s)/l,p=Es(([,,d])=>d).right(o,h);if(p===o.length)return e.every(ac(s/mu,f/mu,l));if(p===0)return _a.every(Math.max(ac(s,f,l),1));const[v,y]=o[h/o[p-1][2]<o[p][2]/h?p-1:p];return v.every(y)}return[u,c]}const[Oj,Aj]=uv(Mt,Ys,Do,ov,Gs,Ks),[Pj,Sj]=uv(Tt,Xs,Io,Ii,Vs,qs);function gu(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function bu(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function jn(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function _j(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,c=e.shortMonths,s=En(i),f=Cn(i),l=En(a),h=Cn(a),p=En(o),v=Cn(o),y=En(u),d=Cn(u),g=En(c),x=Cn(c),w={a:N,A:z,b:F,B:K,c:null,d:bh,e:bh,f:Xj,g:aE,G:uE,H:Kj,I:Vj,j:Gj,L:cv,m:Yj,M:Zj,p:X,q:U,Q:Oh,s:Ah,S:Jj,u:Qj,U:eE,V:tE,w:rE,W:nE,x:null,X:null,y:iE,Y:oE,Z:cE,"%":wh},O={a:Y,A:he,b:xe,B:Ue,c:null,d:xh,e:xh,f:hE,g:OE,G:PE,H:sE,I:lE,j:fE,L:lv,m:pE,M:dE,p:Xt,q:Be,Q:Oh,s:Ah,S:yE,u:vE,U:mE,V:gE,w:bE,W:xE,x:null,X:null,y:wE,Y:AE,Z:SE,"%":wh},m={a:M,A:$,b:T,B:E,c:I,d:mh,e:mh,f:Wj,g:vh,G:yh,H:gh,I:gh,j:Rj,L:Fj,m:Lj,M:Bj,p:_,q:Nj,Q:Hj,s:qj,S:zj,u:jj,U:Ej,V:Cj,w:Mj,W:Ij,x:C,X:D,y:vh,Y:yh,Z:Dj,"%":Uj};w.x=b(r,w),w.X=b(n,w),w.c=b(t,w),O.x=b(r,O),O.X=b(n,O),O.c=b(t,O);function b(W,Q){return function(te){var R=[],ge=-1,re=0,Ae=W.length,Pe,ze,Nt;for(te instanceof Date||(te=new Date(+te));++ge<Ae;)W.charCodeAt(ge)===37&&(R.push(W.slice(re,ge)),(ze=dh[Pe=W.charAt(++ge)])!=null?Pe=W.charAt(++ge):ze=Pe==="e"?" ":"0",(Nt=Q[Pe])&&(Pe=Nt(te,ze)),R.push(Pe),re=ge+1);return R.push(W.slice(re,ge)),R.join("")}}function A(W,Q){return function(te){var R=jn(1900,void 0,1),ge=S(R,W,te+="",0),re,Ae;if(ge!=te.length)return null;if("Q"in R)return new Date(R.Q);if("s"in R)return new Date(R.s*1e3+("L"in R?R.L:0));if(Q&&!("Z"in R)&&(R.Z=0),"p"in R&&(R.H=R.H%12+R.p*12),R.m===void 0&&(R.m="q"in R?R.q:0),"V"in R){if(R.V<1||R.V>53)return null;"w"in R||(R.w=1),"Z"in R?(re=bu(jn(R.y,0,1)),Ae=re.getUTCDay(),re=Ae>4||Ae===0?ka.ceil(re):ka(re),re=Co.offset(re,(R.V-1)*7),R.y=re.getUTCFullYear(),R.m=re.getUTCMonth(),R.d=re.getUTCDate()+(R.w+6)%7):(re=gu(jn(R.y,0,1)),Ae=re.getDay(),re=Ae>4||Ae===0?$a.ceil(re):$a(re),re=Ii.offset(re,(R.V-1)*7),R.y=re.getFullYear(),R.m=re.getMonth(),R.d=re.getDate()+(R.w+6)%7)}else("W"in R||"U"in R)&&("w"in R||(R.w="u"in R?R.u%7:"W"in R?1:0),Ae="Z"in R?bu(jn(R.y,0,1)).getUTCDay():gu(jn(R.y,0,1)).getDay(),R.m=0,R.d="W"in R?(R.w+6)%7+R.W*7-(Ae+5)%7:R.w+R.U*7-(Ae+6)%7);return"Z"in R?(R.H+=R.Z/100|0,R.M+=R.Z%100,bu(R)):gu(R)}}function S(W,Q,te,R){for(var ge=0,re=Q.length,Ae=te.length,Pe,ze;ge<re;){if(R>=Ae)return-1;if(Pe=Q.charCodeAt(ge++),Pe===37){if(Pe=Q.charAt(ge++),ze=m[Pe in dh?Q.charAt(ge++):Pe],!ze||(R=ze(W,te,R))<0)return-1}else if(Pe!=te.charCodeAt(R++))return-1}return R}function _(W,Q,te){var R=s.exec(Q.slice(te));return R?(W.p=f.get(R[0].toLowerCase()),te+R[0].length):-1}function M(W,Q,te){var R=p.exec(Q.slice(te));return R?(W.w=v.get(R[0].toLowerCase()),te+R[0].length):-1}function $(W,Q,te){var R=l.exec(Q.slice(te));return R?(W.w=h.get(R[0].toLowerCase()),te+R[0].length):-1}function T(W,Q,te){var R=g.exec(Q.slice(te));return R?(W.m=x.get(R[0].toLowerCase()),te+R[0].length):-1}function E(W,Q,te){var R=y.exec(Q.slice(te));return R?(W.m=d.get(R[0].toLowerCase()),te+R[0].length):-1}function I(W,Q,te){return S(W,t,Q,te)}function C(W,Q,te){return S(W,r,Q,te)}function D(W,Q,te){return S(W,n,Q,te)}function N(W){return o[W.getDay()]}function z(W){return a[W.getDay()]}function F(W){return c[W.getMonth()]}function K(W){return u[W.getMonth()]}function X(W){return i[+(W.getHours()>=12)]}function U(W){return 1+~~(W.getMonth()/3)}function Y(W){return o[W.getUTCDay()]}function he(W){return a[W.getUTCDay()]}function xe(W){return c[W.getUTCMonth()]}function Ue(W){return u[W.getUTCMonth()]}function Xt(W){return i[+(W.getUTCHours()>=12)]}function Be(W){return 1+~~(W.getUTCMonth()/3)}return{format:function(W){var Q=b(W+="",w);return Q.toString=function(){return W},Q},parse:function(W){var Q=A(W+="",!1);return Q.toString=function(){return W},Q},utcFormat:function(W){var Q=b(W+="",O);return Q.toString=function(){return W},Q},utcParse:function(W){var Q=A(W+="",!0);return Q.toString=function(){return W},Q}}}var dh={"-":"",_:" ",0:"0"},je=/^\s*\d+/,$j=/^%/,kj=/[\\^$*+?|[\]().{}]/g;function ne(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function Tj(e){return e.replace(kj,"\\$&")}function En(e){return new RegExp("^(?:"+e.map(Tj).join("|")+")","i")}function Cn(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function Mj(e,t,r){var n=je.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function jj(e,t,r){var n=je.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function Ej(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function Cj(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function Ij(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function yh(e,t,r){var n=je.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function vh(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Dj(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function Nj(e,t,r){var n=je.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function Lj(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function mh(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function Rj(e,t,r){var n=je.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function gh(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function Bj(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function zj(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Fj(e,t,r){var n=je.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function Wj(e,t,r){var n=je.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Uj(e,t,r){var n=$j.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function Hj(e,t,r){var n=je.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function qj(e,t,r){var n=je.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function bh(e,t){return ne(e.getDate(),t,2)}function Kj(e,t){return ne(e.getHours(),t,2)}function Vj(e,t){return ne(e.getHours()%12||12,t,2)}function Gj(e,t){return ne(1+Ii.count(Tt(e),e),t,3)}function cv(e,t){return ne(e.getMilliseconds(),t,3)}function Xj(e,t){return cv(e,t)+"000"}function Yj(e,t){return ne(e.getMonth()+1,t,2)}function Zj(e,t){return ne(e.getMinutes(),t,2)}function Jj(e,t){return ne(e.getSeconds(),t,2)}function Qj(e){var t=e.getDay();return t===0?7:t}function eE(e,t){return ne(Io.count(Tt(e)-1,e),t,2)}function sv(e){var t=e.getDay();return t>=4||t===0?qr(e):qr.ceil(e)}function tE(e,t){return e=sv(e),ne(qr.count(Tt(e),e)+(Tt(e).getDay()===4),t,2)}function rE(e){return e.getDay()}function nE(e,t){return ne($a.count(Tt(e)-1,e),t,2)}function iE(e,t){return ne(e.getFullYear()%100,t,2)}function aE(e,t){return e=sv(e),ne(e.getFullYear()%100,t,2)}function oE(e,t){return ne(e.getFullYear()%1e4,t,4)}function uE(e,t){var r=e.getDay();return e=r>=4||r===0?qr(e):qr.ceil(e),ne(e.getFullYear()%1e4,t,4)}function cE(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ne(t/60|0,"0",2)+ne(t%60,"0",2)}function xh(e,t){return ne(e.getUTCDate(),t,2)}function sE(e,t){return ne(e.getUTCHours(),t,2)}function lE(e,t){return ne(e.getUTCHours()%12||12,t,2)}function fE(e,t){return ne(1+Co.count(Mt(e),e),t,3)}function lv(e,t){return ne(e.getUTCMilliseconds(),t,3)}function hE(e,t){return lv(e,t)+"000"}function pE(e,t){return ne(e.getUTCMonth()+1,t,2)}function dE(e,t){return ne(e.getUTCMinutes(),t,2)}function yE(e,t){return ne(e.getUTCSeconds(),t,2)}function vE(e){var t=e.getUTCDay();return t===0?7:t}function mE(e,t){return ne(Do.count(Mt(e)-1,e),t,2)}function fv(e){var t=e.getUTCDay();return t>=4||t===0?Kr(e):Kr.ceil(e)}function gE(e,t){return e=fv(e),ne(Kr.count(Mt(e),e)+(Mt(e).getUTCDay()===4),t,2)}function bE(e){return e.getUTCDay()}function xE(e,t){return ne(ka.count(Mt(e)-1,e),t,2)}function wE(e,t){return ne(e.getUTCFullYear()%100,t,2)}function OE(e,t){return e=fv(e),ne(e.getUTCFullYear()%100,t,2)}function AE(e,t){return ne(e.getUTCFullYear()%1e4,t,4)}function PE(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Kr(e):Kr.ceil(e),ne(e.getUTCFullYear()%1e4,t,4)}function SE(){return"+0000"}function wh(){return"%"}function Oh(e){return+e}function Ah(e){return Math.floor(+e/1e3)}var $r,hv,pv;_E({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function _E(e){return $r=_j(e),hv=$r.format,$r.parse,pv=$r.utcFormat,$r.utcParse,$r}function $E(e){return new Date(e)}function kE(e){return e instanceof Date?+e:+new Date(+e)}function Zs(e,t,r,n,i,a,o,u,c,s){var f=Ls(),l=f.invert,h=f.domain,p=s(".%L"),v=s(":%S"),y=s("%I:%M"),d=s("%I %p"),g=s("%a %d"),x=s("%b %d"),w=s("%B"),O=s("%Y");function m(b){return(c(b)<b?p:u(b)<b?v:o(b)<b?y:a(b)<b?d:n(b)<b?i(b)<b?g:x:r(b)<b?w:O)(b)}return f.invert=function(b){return new Date(l(b))},f.domain=function(b){return arguments.length?h(Array.from(b,kE)):h().map($E)},f.ticks=function(b){var A=h();return e(A[0],A[A.length-1],b??10)},f.tickFormat=function(b,A){return A==null?m:s(A)},f.nice=function(b){var A=h();return(!b||typeof b.range!="function")&&(b=t(A[0],A[A.length-1],b??10)),b?h(Qy(A,b)):f},f.copy=function(){return Ci(f,Zs(e,t,r,n,i,a,o,u,c,s))},f}function TE(){return it.apply(Zs(Pj,Sj,Tt,Xs,Io,Ii,Vs,qs,ur,hv).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function ME(){return it.apply(Zs(Oj,Aj,Mt,Ys,Do,Co,Gs,Ks,ur,pv).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function No(){var e=0,t=1,r,n,i,a,o=Re,u=!1,c;function s(l){return l==null||isNaN(l=+l)?c:o(i===0?.5:(l=(a(l)-r)*i,u?Math.max(0,Math.min(1,l)):l))}s.domain=function(l){return arguments.length?([e,t]=l,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),s):[e,t]},s.clamp=function(l){return arguments.length?(u=!!l,s):u},s.interpolator=function(l){return arguments.length?(o=l,s):o};function f(l){return function(h){var p,v;return arguments.length?([p,v]=h,o=l(p,v),s):[o(0),o(1)]}}return s.range=f(On),s.rangeRound=f(Ns),s.unknown=function(l){return arguments.length?(c=l,s):c},function(l){return a=l,r=l(e),n=l(t),i=r===n?0:1/(n-r),s}}function Kt(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function dv(){var e=qt(No()(Re));return e.copy=function(){return Kt(e,dv())},Dt.apply(e,arguments)}function yv(){var e=zs(No()).domain([1,10]);return e.copy=function(){return Kt(e,yv()).base(e.base())},Dt.apply(e,arguments)}function vv(){var e=Fs(No());return e.copy=function(){return Kt(e,vv()).constant(e.constant())},Dt.apply(e,arguments)}function Js(){var e=Ws(No());return e.copy=function(){return Kt(e,Js()).exponent(e.exponent())},Dt.apply(e,arguments)}function jE(){return Js.apply(null,arguments).exponent(.5)}function mv(){var e=[],t=Re;function r(n){if(n!=null&&!isNaN(n=+n))return t((ji(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Wt),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>mM(e,a/n))},r.copy=function(){return mv(t).domain(e)},Dt.apply(r,arguments)}function Lo(){var e=0,t=.5,r=1,n=1,i,a,o,u,c,s=Re,f,l=!1,h;function p(y){return isNaN(y=+y)?h:(y=.5+((y=+f(y))-a)*(n*y<n*a?u:c),s(l?Math.max(0,Math.min(1,y)):y))}p.domain=function(y){return arguments.length?([e,t,r]=y,i=f(e=+e),a=f(t=+t),o=f(r=+r),u=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,p):[e,t,r]},p.clamp=function(y){return arguments.length?(l=!!y,p):l},p.interpolator=function(y){return arguments.length?(s=y,p):s};function v(y){return function(d){var g,x,w;return arguments.length?([g,x,w]=d,s=UM(y,[g,x,w]),p):[s(0),s(.5),s(1)]}}return p.range=v(On),p.rangeRound=v(Ns),p.unknown=function(y){return arguments.length?(h=y,p):h},function(y){return f=y,i=y(e),a=y(t),o=y(r),u=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function gv(){var e=qt(Lo()(Re));return e.copy=function(){return Kt(e,gv())},Dt.apply(e,arguments)}function bv(){var e=zs(Lo()).domain([.1,1,10]);return e.copy=function(){return Kt(e,bv()).base(e.base())},Dt.apply(e,arguments)}function xv(){var e=Fs(Lo());return e.copy=function(){return Kt(e,xv()).constant(e.constant())},Dt.apply(e,arguments)}function Qs(){var e=Ws(Lo());return e.copy=function(){return Kt(e,Qs()).exponent(e.exponent())},Dt.apply(e,arguments)}function EE(){return Qs.apply(null,arguments).exponent(.5)}const Ph=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Qn,scaleDiverging:gv,scaleDivergingLog:bv,scaleDivergingPow:Qs,scaleDivergingSqrt:EE,scaleDivergingSymlog:xv,scaleIdentity:Jy,scaleImplicit:oc,scaleLinear:Sa,scaleLog:ev,scaleOrdinal:Cs,scalePoint:zn,scalePow:Us,scaleQuantile:nv,scaleQuantize:iv,scaleRadial:rv,scaleSequential:dv,scaleSequentialLog:yv,scaleSequentialPow:Js,scaleSequentialQuantile:mv,scaleSequentialSqrt:jE,scaleSequentialSymlog:vv,scaleSqrt:hj,scaleSymlog:tv,scaleThreshold:av,scaleTime:TE,scaleUtc:ME,tickFormat:Zy},Symbol.toStringTag,{value:"Module"}));var CE=pn;function IE(e,t,r){for(var n=-1,i=e.length;++n<i;){var a=e[n],o=t(a);if(o!=null&&(u===void 0?o===o&&!CE(o):r(o,u)))var u=o,c=a}return c}var Ro=IE;function DE(e,t){return e>t}var wv=DE,NE=Ro,LE=wv,RE=wn;function BE(e){return e&&e.length?NE(e,RE,LE):void 0}var zE=BE;const zt=oe(zE);function FE(e,t){return e<t}var Ov=FE,WE=Ro,UE=Ov,HE=wn;function qE(e){return e&&e.length?WE(e,HE,UE):void 0}var KE=qE;const Bo=oe(KE);var VE=hs,GE=gt,XE=My,YE=We;function ZE(e,t){var r=YE(e)?VE:XE;return r(e,GE(t))}var JE=ZE,QE=ky,eC=JE;function tC(e,t){return QE(eC(e,t),1)}var rC=tC;const nC=oe(rC);var iC=$s;function aC(e,t){return iC(e,t)}var oC=aC;const Ut=oe(oC);var An=1e9,uC={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},tl,ye=!0,tt="[DecimalError] ",fr=tt+"Invalid argument: ",el=tt+"Exponent out of range: ",Pn=Math.floor,nr=Math.pow,cC=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ve,Te=1e7,de=7,Av=9007199254740991,Ta=Pn(Av/de),H={};H.absoluteValue=H.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};H.comparedTo=H.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};H.decimalPlaces=H.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*de;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};H.dividedBy=H.div=function(e){return $t(this,new this.constructor(e))};H.dividedToIntegerBy=H.idiv=function(e){var t=this,r=t.constructor;return se($t(t,new r(e),0,1),r.precision)};H.equals=H.eq=function(e){return!this.cmp(e)};H.exponent=function(){return Oe(this)};H.greaterThan=H.gt=function(e){return this.cmp(e)>0};H.greaterThanOrEqualTo=H.gte=function(e){return this.cmp(e)>=0};H.isInteger=H.isint=function(){return this.e>this.d.length-2};H.isNegative=H.isneg=function(){return this.s<0};H.isPositive=H.ispos=function(){return this.s>0};H.isZero=function(){return this.s===0};H.lessThan=H.lt=function(e){return this.cmp(e)<0};H.lessThanOrEqualTo=H.lte=function(e){return this.cmp(e)<1};H.logarithm=H.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Ve))throw Error(tt+"NaN");if(r.s<1)throw Error(tt+(r.s?"NaN":"-Infinity"));return r.eq(Ve)?new n(0):(ye=!1,t=$t(ii(r,a),ii(e,a),a),ye=!0,se(t,i))};H.minus=H.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?_v(t,e):Pv(t,(e.s=-e.s,e))};H.modulo=H.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(tt+"NaN");return r.s?(ye=!1,t=$t(r,e,0,1).times(e),ye=!0,r.minus(t)):se(new n(r),i)};H.naturalExponential=H.exp=function(){return Sv(this)};H.naturalLogarithm=H.ln=function(){return ii(this)};H.negated=H.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};H.plus=H.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Pv(t,e):_v(t,(e.s=-e.s,e))};H.precision=H.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(fr+e);if(t=Oe(i)+1,n=i.d.length-1,r=n*de+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};H.squareRoot=H.sqrt=function(){var e,t,r,n,i,a,o,u=this,c=u.constructor;if(u.s<1){if(!u.s)return new c(0);throw Error(tt+"NaN")}for(e=Oe(u),ye=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=ht(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Pn((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new c(t)):n=new c(i.toString()),r=c.precision,i=o=r+3;;)if(a=n,n=a.plus($t(u,a,o+2)).times(.5),ht(a.d).slice(0,o)===(t=ht(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(se(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return ye=!0,se(n,r)};H.times=H.mul=function(e){var t,r,n,i,a,o,u,c,s,f=this,l=f.constructor,h=f.d,p=(e=new l(e)).d;if(!f.s||!e.s)return new l(0);for(e.s*=f.s,r=f.e+e.e,c=h.length,s=p.length,c<s&&(a=h,h=p,p=a,o=c,c=s,s=o),a=[],o=c+s,n=o;n--;)a.push(0);for(n=s;--n>=0;){for(t=0,i=c+n;i>n;)u=a[i]+p[n]*h[i-n-1]+t,a[i--]=u%Te|0,t=u/Te|0;a[i]=(a[i]+t)%Te|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,ye?se(e,l.precision):e};H.toDecimalPlaces=H.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(vt(e,0,An),t===void 0?t=n.rounding:vt(t,0,8),se(r,e+Oe(r)+1,t))};H.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=vr(n,!0):(vt(e,0,An),t===void 0?t=i.rounding:vt(t,0,8),n=se(new i(n),e+1,t),r=vr(n,!0,e+1)),r};H.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?vr(i):(vt(e,0,An),t===void 0?t=a.rounding:vt(t,0,8),n=se(new a(i),e+Oe(i)+1,t),r=vr(n.abs(),!1,e+Oe(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};H.toInteger=H.toint=function(){var e=this,t=e.constructor;return se(new t(e),Oe(e)+1,t.rounding)};H.toNumber=function(){return+this};H.toPower=H.pow=function(e){var t,r,n,i,a,o,u=this,c=u.constructor,s=12,f=+(e=new c(e));if(!e.s)return new c(Ve);if(u=new c(u),!u.s){if(e.s<1)throw Error(tt+"Infinity");return u}if(u.eq(Ve))return u;if(n=c.precision,e.eq(Ve))return se(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=Av){for(i=new c(Ve),t=Math.ceil(n/de+4),ye=!1;r%2&&(i=i.times(u),_h(i.d,t)),r=Pn(r/2),r!==0;)u=u.times(u),_h(u.d,t);return ye=!0,e.s<0?new c(Ve).div(i):se(i,n)}}else if(a<0)throw Error(tt+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,ye=!1,i=e.times(ii(u,n+s)),ye=!0,i=Sv(i),i.s=a,i};H.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Oe(i),n=vr(i,r<=a.toExpNeg||r>=a.toExpPos)):(vt(e,1,An),t===void 0?t=a.rounding:vt(t,0,8),i=se(new a(i),e,t),r=Oe(i),n=vr(i,e<=r||r<=a.toExpNeg,e)),n};H.toSignificantDigits=H.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(vt(e,1,An),t===void 0?t=n.rounding:vt(t,0,8)),se(new n(r),e,t)};H.toString=H.valueOf=H.val=H.toJSON=H[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Oe(e),r=e.constructor;return vr(e,t<=r.toExpNeg||t>=r.toExpPos)};function Pv(e,t){var r,n,i,a,o,u,c,s,f=e.constructor,l=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),ye?se(t,l):t;if(c=e.d,s=t.d,o=e.e,i=t.e,c=c.slice(),a=o-i,a){for(a<0?(n=c,a=-a,u=s.length):(n=s,i=o,u=c.length),o=Math.ceil(l/de),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=c.length,a=s.length,u-a<0&&(a=u,n=s,s=c,c=n),r=0;a;)r=(c[--a]=c[a]+s[a]+r)/Te|0,c[a]%=Te;for(r&&(c.unshift(r),++i),u=c.length;c[--u]==0;)c.pop();return t.d=c,t.e=i,ye?se(t,l):t}function vt(e,t,r){if(e!==~~e||e<t||e>r)throw Error(fr+e)}function ht(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=de-n.length,r&&(a+=Rt(r)),a+=n;o=e[t],n=o+"",r=de-n.length,r&&(a+=Rt(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var $t=function(){function e(n,i){var a,o=0,u=n.length;for(n=n.slice();u--;)a=n[u]*i+o,n[u]=a%Te|0,o=a/Te|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,c;if(a!=o)c=a>o?1:-1;else for(u=c=0;u<a;u++)if(n[u]!=i[u]){c=n[u]>i[u]?1:-1;break}return c}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*Te+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,c,s,f,l,h,p,v,y,d,g,x,w,O,m,b,A,S,_=n.constructor,M=n.s==i.s?1:-1,$=n.d,T=i.d;if(!n.s)return new _(n);if(!i.s)throw Error(tt+"Division by zero");for(c=n.e-i.e,A=T.length,m=$.length,p=new _(M),v=p.d=[],s=0;T[s]==($[s]||0);)++s;if(T[s]>($[s]||0)&&--c,a==null?x=a=_.precision:o?x=a+(Oe(n)-Oe(i))+1:x=a,x<0)return new _(0);if(x=x/de+2|0,s=0,A==1)for(f=0,T=T[0],x++;(s<m||f)&&x--;s++)w=f*Te+($[s]||0),v[s]=w/T|0,f=w%T|0;else{for(f=Te/(T[0]+1)|0,f>1&&(T=e(T,f),$=e($,f),A=T.length,m=$.length),O=A,y=$.slice(0,A),d=y.length;d<A;)y[d++]=0;S=T.slice(),S.unshift(0),b=T[0],T[1]>=Te/2&&++b;do f=0,u=t(T,y,A,d),u<0?(g=y[0],A!=d&&(g=g*Te+(y[1]||0)),f=g/b|0,f>1?(f>=Te&&(f=Te-1),l=e(T,f),h=l.length,d=y.length,u=t(l,y,h,d),u==1&&(f--,r(l,A<h?S:T,h))):(f==0&&(u=f=1),l=T.slice()),h=l.length,h<d&&l.unshift(0),r(y,l,d),u==-1&&(d=y.length,u=t(T,y,A,d),u<1&&(f++,r(y,A<d?S:T,d))),d=y.length):u===0&&(f++,y=[0]),v[s++]=f,u&&y[0]?y[d++]=$[O]||0:(y=[$[O]],d=1);while((O++<m||y[0]!==void 0)&&x--)}return v[0]||v.shift(),p.e=c,se(p,o?a+Oe(p)+1:a)}}();function Sv(e,t){var r,n,i,a,o,u,c=0,s=0,f=e.constructor,l=f.precision;if(Oe(e)>16)throw Error(el+Oe(e));if(!e.s)return new f(Ve);for(ye=!1,u=l,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(n=Math.log(nr(2,s))/Math.LN10*2+5|0,u+=n,r=i=a=new f(Ve),f.precision=u;;){if(i=se(i.times(e),u),r=r.times(++c),o=a.plus($t(i,r,u)),ht(o.d).slice(0,u)===ht(a.d).slice(0,u)){for(;s--;)a=se(a.times(a),u);return f.precision=l,t==null?(ye=!0,se(a,l)):a}a=o}}function Oe(e){for(var t=e.e*de,r=e.d[0];r>=10;r/=10)t++;return t}function xu(e,t,r){if(t>e.LN10.sd())throw ye=!0,r&&(e.precision=r),Error(tt+"LN10 precision limit exceeded");return se(new e(e.LN10),t)}function Rt(e){for(var t="";e--;)t+="0";return t}function ii(e,t){var r,n,i,a,o,u,c,s,f,l=1,h=10,p=e,v=p.d,y=p.constructor,d=y.precision;if(p.s<1)throw Error(tt+(p.s?"NaN":"-Infinity"));if(p.eq(Ve))return new y(0);if(t==null?(ye=!1,s=d):s=t,p.eq(10))return t==null&&(ye=!0),xu(y,s);if(s+=h,y.precision=s,r=ht(v),n=r.charAt(0),a=Oe(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=ht(p.d),n=r.charAt(0),l++;a=Oe(p),n>1?(p=new y("0."+r),a++):p=new y(n+"."+r.slice(1))}else return c=xu(y,s+2,d).times(a+""),p=ii(new y(n+"."+r.slice(1)),s-h).plus(c),y.precision=d,t==null?(ye=!0,se(p,d)):p;for(u=o=p=$t(p.minus(Ve),p.plus(Ve),s),f=se(p.times(p),s),i=3;;){if(o=se(o.times(f),s),c=u.plus($t(o,new y(i),s)),ht(c.d).slice(0,s)===ht(u.d).slice(0,s))return u=u.times(2),a!==0&&(u=u.plus(xu(y,s+2,d).times(a+""))),u=$t(u,new y(l),s),y.precision=d,t==null?(ye=!0,se(u,d)):u;u=c,i+=2}}function Sh(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Pn(r/de),e.d=[],n=(r+1)%de,r<0&&(n+=de),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=de;n<i;)e.d.push(+t.slice(n,n+=de));t=t.slice(n),n=de-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),ye&&(e.e>Ta||e.e<-Ta))throw Error(el+r)}else e.s=0,e.e=0,e.d=[0];return e}function se(e,t,r){var n,i,a,o,u,c,s,f,l=e.d;for(o=1,a=l[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=de,i=t,s=l[f=0];else{if(f=Math.ceil((n+1)/de),a=l.length,f>=a)return e;for(s=a=l[f],o=1;a>=10;a/=10)o++;n%=de,i=n-de+o}if(r!==void 0&&(a=nr(10,o-i-1),u=s/a%10|0,c=t<0||l[f+1]!==void 0||s%a,c=r<4?(u||c)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||c||r==6&&(n>0?i>0?s/nr(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return c?(a=Oe(e),l.length=1,t=t-a-1,l[0]=nr(10,(de-t%de)%de),e.e=Pn(-t/de)||0):(l.length=1,l[0]=e.e=e.s=0),e;if(n==0?(l.length=f,a=1,f--):(l.length=f+1,a=nr(10,de-n),l[f]=i>0?(s/nr(10,o-i)%nr(10,i)|0)*a:0),c)for(;;)if(f==0){(l[0]+=a)==Te&&(l[0]=1,++e.e);break}else{if(l[f]+=a,l[f]!=Te)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(ye&&(e.e>Ta||e.e<-Ta))throw Error(el+Oe(e));return e}function _v(e,t){var r,n,i,a,o,u,c,s,f,l,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),ye?se(t,p):t;if(c=e.d,l=t.d,n=t.e,s=e.e,c=c.slice(),o=s-n,o){for(f=o<0,f?(r=c,o=-o,u=l.length):(r=l,n=s,u=c.length),i=Math.max(Math.ceil(p/de),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=c.length,u=l.length,f=i<u,f&&(u=i),i=0;i<u;i++)if(c[i]!=l[i]){f=c[i]<l[i];break}o=0}for(f&&(r=c,c=l,l=r,t.s=-t.s),u=c.length,i=l.length-u;i>0;--i)c[u++]=0;for(i=l.length;i>o;){if(c[--i]<l[i]){for(a=i;a&&c[--a]===0;)c[a]=Te-1;--c[a],c[i]+=Te}c[i]-=l[i]}for(;c[--u]===0;)c.pop();for(;c[0]===0;c.shift())--n;return c[0]?(t.d=c,t.e=n,ye?se(t,p):t):new h(0)}function vr(e,t,r){var n,i=Oe(e),a=ht(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Rt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Rt(-i-1)+a,r&&(n=r-o)>0&&(a+=Rt(n))):i>=o?(a+=Rt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Rt(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Rt(n))),e.s<0?"-"+a:a}function _h(e,t){if(e.length>t)return e.length=t,!0}function $v(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(fr+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return Sh(o,a.toString())}else if(typeof a!="string")throw Error(fr+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,cC.test(a))Sh(o,a);else throw Error(fr+a)}if(i.prototype=H,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=$v,i.config=i.set=sC,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function sC(e){if(!e||typeof e!="object")throw Error(tt+"Object expected");var t,r,n,i=["precision",1,An,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Pn(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(fr+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(fr+r+": "+n);return this}var tl=$v(uC);Ve=new tl(1);const ce=tl;function lC(e){return dC(e)||pC(e)||hC(e)||fC()}function fC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hC(e,t){if(e){if(typeof e=="string")return lc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lc(e,t)}}function pC(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function dC(e){if(Array.isArray(e))return lc(e)}function lc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var yC=function(t){return t},kv={},Tv=function(t){return t===kv},$h=function(t){return function r(){return arguments.length===0||arguments.length===1&&Tv(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},vC=function e(t,r){return t===1?r:$h(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(u){return u!==kv}).length;return o>=t?r.apply(void 0,i):e(t-o,$h(function(){for(var u=arguments.length,c=new Array(u),s=0;s<u;s++)c[s]=arguments[s];var f=i.map(function(l){return Tv(l)?c.shift():l});return r.apply(void 0,lC(f).concat(c))}))})},zo=function(t){return vC(t.length,t)},fc=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},mC=zo(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),gC=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return yC;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(u,c){return c(u)},a.apply(void 0,arguments))}},hc=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Mv=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(u,c){return u===r[c]})||(r=a,n=t.apply(void 0,a)),n}};function bC(e){var t;return e===0?t=1:t=Math.floor(new ce(e).abs().log(10).toNumber())+1,t}function xC(e,t,r){for(var n=new ce(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var wC=zo(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),OC=zo(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),AC=zo(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Fo={rangeStep:xC,getDigitCount:bC,interpolateNumber:wC,uninterpolateNumber:OC,uninterpolateTruncation:AC};function pc(e){return _C(e)||SC(e)||jv(e)||PC()}function PC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SC(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function _C(e){if(Array.isArray(e))return dc(e)}function ai(e,t){return TC(e)||kC(e,t)||jv(e,t)||$C()}function $C(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jv(e,t){if(e){if(typeof e=="string")return dc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return dc(e,t)}}function dc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function kC(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),u;!(n=(u=o.next()).done)&&(r.push(u.value),!(t&&r.length===t));n=!0);}catch(c){i=!0,a=c}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function TC(e){if(Array.isArray(e))return e}function Ev(e){var t=ai(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function Cv(e,t,r){if(e.lte(0))return new ce(0);var n=Fo.getDigitCount(e.toNumber()),i=new ce(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new ce(Math.ceil(a.div(o).toNumber())).add(r).mul(o),c=u.mul(i);return t?c:new ce(Math.ceil(c))}function MC(e,t,r){var n=1,i=new ce(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new ce(10).pow(Fo.getDigitCount(e)-1),i=new ce(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new ce(Math.floor(e)))}else e===0?i=new ce(Math.floor((t-1)/2)):r||(i=new ce(Math.floor(e)));var o=Math.floor((t-1)/2),u=gC(mC(function(c){return i.add(new ce(c-o).mul(n)).toNumber()}),fc);return u(0,t)}function Iv(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new ce(0),tickMin:new ce(0),tickMax:new ce(0)};var a=Cv(new ce(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new ce(0):(o=new ce(e).add(t).div(2),o=o.sub(new ce(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),c=Math.ceil(new ce(t).sub(o).div(a).toNumber()),s=u+c+1;return s>r?Iv(e,t,r,n,i+1):(s<r&&(c=t>0?c+(r-s):c,u=t>0?u:u+(r-s)),{step:a,tickMin:o.sub(new ce(u).mul(a)),tickMax:o.add(new ce(c).mul(a))})}function jC(e){var t=ai(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),u=Ev([r,n]),c=ai(u,2),s=c[0],f=c[1];if(s===-1/0||f===1/0){var l=f===1/0?[s].concat(pc(fc(0,i-1).map(function(){return 1/0}))):[].concat(pc(fc(0,i-1).map(function(){return-1/0})),[f]);return r>n?hc(l):l}if(s===f)return MC(s,i,a);var h=Iv(s,f,o,a),p=h.step,v=h.tickMin,y=h.tickMax,d=Fo.rangeStep(v,y.add(new ce(.1).mul(p)),p);return r>n?hc(d):d}function EC(e,t){var r=ai(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Ev([n,i]),u=ai(o,2),c=u[0],s=u[1];if(c===-1/0||s===1/0)return[n,i];if(c===s)return[c];var f=Math.max(t,2),l=Cv(new ce(s).sub(c).div(f-1),a,0),h=[].concat(pc(Fo.rangeStep(new ce(c),new ce(s).sub(new ce(.99).mul(l)),l)),[s]);return n>i?hc(h):h}var CC=Mv(jC),IC=Mv(EC),DC="Invariant failed";function mr(e,t){throw new Error(DC)}var NC=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Vr(e){"@babel/helpers - typeof";return Vr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vr(e)}function Ma(){return Ma=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ma.apply(this,arguments)}function LC(e,t){return FC(e)||zC(e,t)||BC(e,t)||RC()}function RC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BC(e,t){if(e){if(typeof e=="string")return kh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return kh(e,t)}}function kh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function zC(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function FC(e){if(Array.isArray(e))return e}function WC(e,t){if(e==null)return{};var r=UC(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function UC(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function HC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Lv(n.key),n)}}function KC(e,t,r){return t&&qC(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function VC(e,t,r){return t=ja(t),GC(e,Dv()?Reflect.construct(t,r||[],ja(e).constructor):t.apply(e,r))}function GC(e,t){if(t&&(Vr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return XC(e)}function XC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Dv=function(){return!!e})()}function ja(e){return ja=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ja(e)}function YC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yc(e,t)}function yc(e,t){return yc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},yc(e,t)}function Nv(e,t,r){return t=Lv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lv(e){var t=ZC(e,"string");return Vr(t)=="symbol"?t:t+""}function ZC(e,t){if(Vr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Di=function(e){function t(){return HC(this,t),VC(this,t,arguments)}return YC(t,e),KC(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,u=n.dataKey,c=n.data,s=n.dataPointFormatter,f=n.xAxis,l=n.yAxis,h=WC(n,NC),p=q(h,!1);this.props.direction==="x"&&f.type!=="number"&&mr();var v=c.map(function(y){var d=s(y,u),g=d.x,x=d.y,w=d.value,O=d.errorVal;if(!O)return null;var m=[],b,A;if(Array.isArray(O)){var S=LC(O,2);b=S[0],A=S[1]}else b=A=O;if(a==="vertical"){var _=f.scale,M=x+i,$=M+o,T=M-o,E=_(w-b),I=_(w+A);m.push({x1:I,y1:$,x2:I,y2:T}),m.push({x1:E,y1:M,x2:I,y2:M}),m.push({x1:E,y1:$,x2:E,y2:T})}else if(a==="horizontal"){var C=l.scale,D=g+i,N=D-o,z=D+o,F=C(w-b),K=C(w+A);m.push({x1:N,y1:K,x2:z,y2:K}),m.push({x1:D,y1:F,x2:D,y2:K}),m.push({x1:N,y1:F,x2:z,y2:F})}return P.createElement(ee,Ma({className:"recharts-errorBar",key:"bar-".concat(m.map(function(X){return"".concat(X.x1,"-").concat(X.x2,"-").concat(X.y1,"-").concat(X.y2)}))},p),m.map(function(X){return P.createElement("line",Ma({},X,{key:"line-".concat(X.x1,"-").concat(X.x2,"-").concat(X.y1,"-").concat(X.y2)}))}))});return P.createElement(ee,{className:"recharts-errorBars"},v)}}])}(P.Component);Nv(Di,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});Nv(Di,"displayName","ErrorBar");function oi(e){"@babel/helpers - typeof";return oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oi(e)}function Th(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Th(Object(r),!0).forEach(function(n){JC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Th(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JC(e,t,r){return t=QC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QC(e){var t=eI(e,"string");return oi(t)=="symbol"?t:t+""}function eI(e,t){if(oi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(oi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rv=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Ke(r,Nr);if(!o)return null;var u=Nr.defaultProps,c=u!==void 0?Jt(Jt({},u),o.props):{},s;return o.props&&o.props.payload?s=o.props&&o.props.payload:a==="children"?s=(n||[]).reduce(function(f,l){var h=l.item,p=l.props,v=p.sectors||p.data||[];return f.concat(v.map(function(y){return{type:o.props.iconType||h.props.legendType,value:y.name,color:y.fill,payload:y}}))},[]):s=(n||[]).map(function(f){var l=f.item,h=l.type.defaultProps,p=h!==void 0?Jt(Jt({},h),l.props):{},v=p.dataKey,y=p.name,d=p.legendType,g=p.hide;return{inactive:g,dataKey:v,type:c.iconType||d||"square",color:rl(l),value:y||v,payload:p}}),Jt(Jt(Jt({},c),Nr.getWithHeight(o,i)),{},{payload:s,item:o})};function ui(e){"@babel/helpers - typeof";return ui=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ui(e)}function Mh(e){return iI(e)||nI(e)||rI(e)||tI()}function tI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rI(e,t){if(e){if(typeof e=="string")return vc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vc(e,t)}}function nI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iI(e){if(Array.isArray(e))return vc(e)}function vc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function jh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function be(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jh(Object(r),!0).forEach(function(n){Rr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Rr(e,t,r){return t=aI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aI(e){var t=oI(e,"string");return ui(t)=="symbol"?t:t+""}function oI(e,t){if(ui(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ui(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function me(e,t,r){return Z(e)||Z(t)?r:$e(t)?Ge(e,t,r):V(t)?t(e):r}function Fn(e,t,r,n){var i=nC(e,function(u){return me(u,t)});if(r==="number"){var a=i.filter(function(u){return B(u)||parseFloat(u)});return a.length?[Bo(a),zt(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!Z(u)}):i;return o.map(function(u){return $e(u)||u instanceof Date?u:""})}var uI=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var c=a.range,s=0;s<u;s++){var f=s>0?i[s-1].coordinate:i[u-1].coordinate,l=i[s].coordinate,h=s>=u-1?i[0].coordinate:i[s+1].coordinate,p=void 0;if(Ne(l-f)!==Ne(h-l)){var v=[];if(Ne(h-l)===Ne(c[1]-c[0])){p=h;var y=l+c[1]-c[0];v[0]=Math.min(y,(y+f)/2),v[1]=Math.max(y,(y+f)/2)}else{p=f;var d=h+c[1]-c[0];v[0]=Math.min(l,(d+l)/2),v[1]=Math.max(l,(d+l)/2)}var g=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(t>g[0]&&t<=g[1]||t>=v[0]&&t<=v[1]){o=i[s].index;break}}else{var x=Math.min(f,h),w=Math.max(f,h);if(t>(x+l)/2&&t<=(w+l)/2){o=i[s].index;break}}}else for(var O=0;O<u;O++)if(O===0&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O>0&&O<u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O===u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2){o=n[O].index;break}return o},rl=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?be(be({},t.type.defaultProps),t.props):t.props,o=a.stroke,u=a.fill,c;switch(i){case"Line":c=o;break;case"Area":case"Radar":c=o&&o!=="none"?o:u;break;default:c=u;break}return c},cI=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},u=Object.keys(a),c=0,s=u.length;c<s;c++)for(var f=a[u[c]].stackGroups,l=Object.keys(f),h=0,p=l.length;h<p;h++){var v=f[l[h]],y=v.items,d=v.cateAxisId,g=y.filter(function(A){return _t(A.type).indexOf("Bar")>=0});if(g&&g.length){var x=g[0].type.defaultProps,w=x!==void 0?be(be({},x),g[0].props):g[0].props,O=w.barSize,m=w[d];o[m]||(o[m]=[]);var b=Z(O)?r:O;o[m].push({item:g[0],stackList:g.slice(1),barSize:Z(b)?void 0:Le(b,n,0)})}}return o},sI=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,u=t.maxBarSize,c=o.length;if(c<1)return null;var s=Le(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var h=!1,p=i/c,v=o.reduce(function(O,m){return O+m.barSize||0},0);v+=(c-1)*s,v>=i&&(v-=(c-1)*s,s=0),v>=i&&p>0&&(h=!0,p*=.9,v=c*p);var y=(i-v)/2>>0,d={offset:y-s,size:0};f=o.reduce(function(O,m){var b={item:m.item,position:{offset:d.offset+d.size+s,size:h?p:m.barSize}},A=[].concat(Mh(O),[b]);return d=A[A.length-1].position,m.stackList&&m.stackList.length&&m.stackList.forEach(function(S){A.push({item:S,position:d})}),A},l)}else{var g=Le(n,i,0,!0);i-2*g-(c-1)*s<=0&&(s=0);var x=(i-2*g-(c-1)*s)/c;x>1&&(x>>=0);var w=u===+u?Math.min(x,u):x;f=o.reduce(function(O,m,b){var A=[].concat(Mh(O),[{item:m.item,position:{offset:g+(x+s)*b+(x-w)/2,size:w}}]);return m.stackList&&m.stackList.length&&m.stackList.forEach(function(S){A.push({item:S,position:A[A.length-1].position})}),A},l)}return f},lI=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,c=o-(u.left||0)-(u.right||0),s=Rv({children:a,legendWidth:c});if(s){var f=i||{},l=f.width,h=f.height,p=s.align,v=s.verticalAlign,y=s.layout;if((y==="vertical"||y==="horizontal"&&v==="middle")&&p!=="center"&&B(t[p]))return be(be({},t),{},Rr({},p,t[p]+(l||0)));if((y==="horizontal"||y==="vertical"&&p==="center")&&v!=="middle"&&B(t[v]))return be(be({},t),{},Rr({},v,t[v]+(h||0)))}return t},fI=function(t,r,n){return Z(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},Bv=function(t,r,n,i,a){var o=r.props.children,u=Xe(o,Di).filter(function(s){return fI(i,a,s.props.direction)});if(u&&u.length){var c=u.map(function(s){return s.props.dataKey});return t.reduce(function(s,f){var l=me(f,n);if(Z(l))return s;var h=Array.isArray(l)?[Bo(l),zt(l)]:[l,l],p=c.reduce(function(v,y){var d=me(f,y,0),g=h[0]-Math.abs(Array.isArray(d)?d[0]:d),x=h[1]+Math.abs(Array.isArray(d)?d[1]:d);return[Math.min(g,v[0]),Math.max(x,v[1])]},[1/0,-1/0]);return[Math.min(p[0],s[0]),Math.max(p[1],s[1])]},[1/0,-1/0])}return null},hI=function(t,r,n,i,a){var o=r.map(function(u){return Bv(t,u,n,a,i)}).filter(function(u){return!Z(u)});return o&&o.length?o.reduce(function(u,c){return[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]):null},zv=function(t,r,n,i,a){var o=r.map(function(c){var s=c.props.dataKey;return n==="number"&&s&&Bv(t,c,s,i)||Fn(t,s,n,a)});if(n==="number")return o.reduce(function(c,s){return[Math.min(c[0],s[0]),Math.max(c[1],s[1])]},[1/0,-1/0]);var u={};return o.reduce(function(c,s){for(var f=0,l=s.length;f<l;f++)u[s[f]]||(u[s[f]]=!0,c.push(s[f]));return c},[])},Fv=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},Wv=function(t,r,n,i){if(i)return t.map(function(c){return c.coordinate});var a,o,u=t.map(function(c){return c.coordinate===r&&(a=!0),c.coordinate===n&&(o=!0),c.coordinate});return a||u.push(r),o||u.push(n),u},St=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,u=t.range,c=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,s=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/c:0;if(s=t.axisType==="angleAxis"&&(u==null?void 0:u.length)>=2?Ne(u[0]-u[1])*2*s:s,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(l){var h=a?a.indexOf(l):l;return{coordinate:i(h)+s,value:l,offset:s}});return f.filter(function(l){return!gn(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,h){return{coordinate:i(l)+s,value:l,index:h,offset:s}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(l){return{coordinate:i(l)+s,value:l,offset:s}}):i.domain().map(function(l,h){return{coordinate:i(l)+s,value:a?a[l]:l,index:h,offset:s}})},wu=new WeakMap,Zi=function(t,r){if(typeof r!="function")return t;wu.has(t)||wu.set(t,new WeakMap);var n=wu.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},Uv=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,u=t.axisType;if(i==="auto")return o==="radial"&&u==="radiusAxis"?{scale:Qn(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:Sa(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:zn(),realScaleType:"point"}:a==="category"?{scale:Qn(),realScaleType:"band"}:{scale:Sa(),realScaleType:"linear"};if(pr(i)){var c="scale".concat(So(i));return{scale:(Ph[c]||zn)(),realScaleType:Ph[c]?c:"point"}}return V(i)?{scale:i}:{scale:zn(),realScaleType:"point"}},Eh=1e-4,Hv=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-Eh,o=Math.max(i[0],i[1])+Eh,u=t(r[0]),c=t(r[n-1]);(u<a||u>o||c<a||c>o)&&t.domain([r[0],r[n-1]])}},pI=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},dI=function(t,r){if(!r||r.length!==2||!B(r[0])||!B(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!B(t[0])||t[0]<n)&&(a[0]=n),(!B(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},yI=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,u=0;u<r;++u){var c=gn(t[u][n][1])?t[u][n][0]:t[u][n][1];c>=0?(t[u][n][0]=a,t[u][n][1]=a+c,a=t[u][n][1]):(t[u][n][0]=o,t[u][n][1]=o+c,o=t[u][n][1])}},vI=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var u=gn(t[o][n][1])?t[o][n][0]:t[o][n][1];u>=0?(t[o][n][0]=a,t[o][n][1]=a+u,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},mI={sign:yI,expand:N2,none:Br,silhouette:L2,wiggle:R2,positive:vI},gI=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=mI[n],o=D2().keys(i).value(function(u,c){return+me(u,c,0)}).order(Fu).offset(a);return o(t)},bI=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,c={},s=u.reduce(function(l,h){var p,v=(p=h.type)!==null&&p!==void 0&&p.defaultProps?be(be({},h.type.defaultProps),h.props):h.props,y=v.stackId,d=v.hide;if(d)return l;var g=v[n],x=l[g]||{hasStack:!1,stackGroups:{}};if($e(y)){var w=x.stackGroups[y]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(h),x.hasStack=!0,x.stackGroups[y]=w}else x.stackGroups[xr("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return be(be({},l),{},Rr({},g,x))},c),f={};return Object.keys(s).reduce(function(l,h){var p=s[h];if(p.hasStack){var v={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(y,d){var g=p.stackGroups[d];return be(be({},y),{},Rr({},d,{numericAxisId:n,cateAxisId:i,items:g.items,stackedData:gI(t,g.items,a)}))},v)}return be(be({},l),{},Rr({},h,p))},f)},qv=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,u=r.allowDecimals,c=n||r.scale;if(c!=="auto"&&c!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var s=t.domain();if(!s.length)return null;var f=CC(s,a,u);return t.domain([Bo(f),zt(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),h=IC(l,a,u);return{niceTicks:h}}return null};function Ea(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Z(i[t.dataKey])){var u=ia(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var c=me(i,Z(o)?t.dataKey:o);return Z(c)?null:t.scale(c)}var Ch=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,u=t.index;if(r.type==="category")return n[u]?n[u].coordinate+i:null;var c=me(o,r.dataKey,r.domain[u]);return Z(c)?null:r.scale(c)-a/2+i},xI=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},wI=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?be(be({},t.type.defaultProps),t.props):t.props,a=i.stackId;if($e(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},OI=function(t){return t.reduce(function(r,n){return[Bo(n.concat([r[0]]).filter(B)),zt(n.concat([r[1]]).filter(B))]},[1/0,-1/0])},Kv=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,c=u.reduce(function(s,f){var l=OI(f.slice(r,n+1));return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]);return[Math.min(c[0],i[0]),Math.max(c[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},Ih=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Dh=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,mc=function(t,r,n){if(V(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(B(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(Ih.test(t[0])){var a=+Ih.exec(t[0])[1];i[0]=r[0]-a}else V(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(B(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(Dh.test(t[1])){var o=+Dh.exec(t[1])[1];i[1]=r[1]+o}else V(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Ca=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=Ts(r,function(l){return l.coordinate}),o=1/0,u=1,c=a.length;u<c;u++){var s=a[u],f=a[u-1];o=Math.min((s.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},Nh=function(t,r,n){return!t||!t.length||Ut(t,Ge(n,"type.defaultProps.domain"))?r:t},Vv=function(t,r){var n=t.type.defaultProps?be(be({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,u=n.formatter,c=n.tooltipType,s=n.chartType,f=n.hide;return be(be({},q(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:rl(t),value:me(r,i),type:c,payload:r,chartType:s,hide:f})};function ci(e){"@babel/helpers - typeof";return ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ci(e)}function Lh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lh(Object(r),!0).forEach(function(n){Gv(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gv(e,t,r){return t=AI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AI(e){var t=PI(e,"string");return ci(t)=="symbol"?t:t+""}function PI(e,t){if(ci(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ci(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SI(e,t){return TI(e)||kI(e,t)||$I(e,t)||_I()}function _I(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $I(e,t){if(e){if(typeof e=="string")return Rh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Rh(e,t)}}function Rh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function kI(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function TI(e){if(Array.isArray(e))return e}var Ia=Math.PI/180,MI=function(t){return t*180/Math.PI},ie=function(t,r,n,i){return{x:t+Math.cos(-Ia*i)*n,y:r+Math.sin(-Ia*i)*n}},Xv=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},Yv=function(t,r,n,i,a){var o=t.width,u=t.height,c=t.startAngle,s=t.endAngle,f=Le(t.cx,o,o/2),l=Le(t.cy,u,u/2),h=Xv(o,u,n),p=Le(t.innerRadius,h,0),v=Le(t.outerRadius,h,h*.8),y=Object.keys(r);return y.reduce(function(d,g){var x=r[g],w=x.domain,O=x.reversed,m;if(Z(x.range))i==="angleAxis"?m=[c,s]:i==="radiusAxis"&&(m=[p,v]),O&&(m=[m[1],m[0]]);else{m=x.range;var b=m,A=SI(b,2);c=A[0],s=A[1]}var S=Uv(x,a),_=S.realScaleType,M=S.scale;M.domain(w).range(m),Hv(M);var $=qv(M,wt(wt({},x),{},{realScaleType:_})),T=wt(wt(wt({},x),$),{},{range:m,radius:v,realScaleType:_,scale:M,cx:f,cy:l,innerRadius:p,outerRadius:v,startAngle:c,endAngle:s});return wt(wt({},d),{},Gv({},g,T))},{})},jI=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},EI=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=jI({x:n,y:i},{x:a,y:o});if(u<=0)return{radius:u};var c=(n-a)/u,s=Math.acos(c);return i>o&&(s=2*Math.PI-s),{radius:u,angle:MI(s),angleInRadian:s}},CI=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},II=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),u=Math.min(a,o);return t+u*360},Bh=function(t,r){var n=t.x,i=t.y,a=EI({x:n,y:i},r),o=a.radius,u=a.angle,c=r.innerRadius,s=r.outerRadius;if(o<c||o>s)return!1;if(o===0)return!0;var f=CI(r),l=f.startAngle,h=f.endAngle,p=u,v;if(l<=h){for(;p>h;)p-=360;for(;p<l;)p+=360;v=p>=l&&p<=h}else{for(;p>l;)p-=360;for(;p<h;)p+=360;v=p>=h&&p<=l}return v?wt(wt({},r),{},{radius:o,angle:II(p,r)}):null},Zv=function(t){return!L.isValidElement(t)&&!V(t)&&typeof t!="boolean"?t.className:""};function si(e){"@babel/helpers - typeof";return si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},si(e)}var DI=["offset"];function NI(e){return zI(e)||BI(e)||RI(e)||LI()}function LI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RI(e,t){if(e){if(typeof e=="string")return gc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gc(e,t)}}function BI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zI(e){if(Array.isArray(e))return gc(e)}function gc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function FI(e,t){if(e==null)return{};var r=WI(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function WI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function zh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zh(Object(r),!0).forEach(function(n){UI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UI(e,t,r){return t=HI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HI(e){var t=qI(e,"string");return si(t)=="symbol"?t:t+""}function qI(e,t){if(si(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(si(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function li(){return li=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},li.apply(this,arguments)}var KI=function(t){var r=t.value,n=t.formatter,i=Z(t.children)?r:t.children;return V(n)?n(i):i},VI=function(t,r){var n=Ne(r-t),i=Math.min(Math.abs(r-t),360);return n*i},GI=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,u=t.className,c=a,s=c.cx,f=c.cy,l=c.innerRadius,h=c.outerRadius,p=c.startAngle,v=c.endAngle,y=c.clockWise,d=(l+h)/2,g=VI(p,v),x=g>=0?1:-1,w,O;i==="insideStart"?(w=p+x*o,O=y):i==="insideEnd"?(w=v-x*o,O=!y):i==="end"&&(w=v+x*o,O=y),O=g<=0?O:!O;var m=ie(s,f,d,w),b=ie(s,f,d,w+(O?1:-1)*359),A="M".concat(m.x,",").concat(m.y,`
    A`).concat(d,",").concat(d,",0,1,").concat(O?0:1,`,
    `).concat(b.x,",").concat(b.y),S=Z(t.id)?xr("recharts-radial-line-"):t.id;return P.createElement("text",li({},n,{dominantBaseline:"central",className:J("recharts-radial-bar-label",u)}),P.createElement("defs",null,P.createElement("path",{id:S,d:A})),P.createElement("textPath",{xlinkHref:"#".concat(S)},r))},XI=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,u=a.cy,c=a.innerRadius,s=a.outerRadius,f=a.startAngle,l=a.endAngle,h=(f+l)/2;if(i==="outside"){var p=ie(o,u,s+n,h),v=p.x,y=p.y;return{x:v,y,textAnchor:v>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"end"};var d=(c+s)/2,g=ie(o,u,d,h),x=g.x,w=g.y;return{x,y:w,textAnchor:"middle",verticalAnchor:"middle"}},YI=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,u=o.x,c=o.y,s=o.width,f=o.height,l=f>=0?1:-1,h=l*i,p=l>0?"end":"start",v=l>0?"start":"end",y=s>=0?1:-1,d=y*i,g=y>0?"end":"start",x=y>0?"start":"end";if(a==="top"){var w={x:u+s/2,y:c-l*i,textAnchor:"middle",verticalAnchor:p};return _e(_e({},w),n?{height:Math.max(c-n.y,0),width:s}:{})}if(a==="bottom"){var O={x:u+s/2,y:c+f+h,textAnchor:"middle",verticalAnchor:v};return _e(_e({},O),n?{height:Math.max(n.y+n.height-(c+f),0),width:s}:{})}if(a==="left"){var m={x:u-d,y:c+f/2,textAnchor:g,verticalAnchor:"middle"};return _e(_e({},m),n?{width:Math.max(m.x-n.x,0),height:f}:{})}if(a==="right"){var b={x:u+s+d,y:c+f/2,textAnchor:x,verticalAnchor:"middle"};return _e(_e({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:f}:{})}var A=n?{width:s,height:f}:{};return a==="insideLeft"?_e({x:u+d,y:c+f/2,textAnchor:x,verticalAnchor:"middle"},A):a==="insideRight"?_e({x:u+s-d,y:c+f/2,textAnchor:g,verticalAnchor:"middle"},A):a==="insideTop"?_e({x:u+s/2,y:c+h,textAnchor:"middle",verticalAnchor:v},A):a==="insideBottom"?_e({x:u+s/2,y:c+f-h,textAnchor:"middle",verticalAnchor:p},A):a==="insideTopLeft"?_e({x:u+d,y:c+h,textAnchor:x,verticalAnchor:v},A):a==="insideTopRight"?_e({x:u+s-d,y:c+h,textAnchor:g,verticalAnchor:v},A):a==="insideBottomLeft"?_e({x:u+d,y:c+f-h,textAnchor:x,verticalAnchor:p},A):a==="insideBottomRight"?_e({x:u+s-d,y:c+f-h,textAnchor:g,verticalAnchor:p},A):dn(a)&&(B(a.x)||ar(a.x))&&(B(a.y)||ar(a.y))?_e({x:u+Le(a.x,s),y:c+Le(a.y,f),textAnchor:"end",verticalAnchor:"end"},A):_e({x:u+s/2,y:c+f/2,textAnchor:"middle",verticalAnchor:"middle"},A)},ZI=function(t){return"cx"in t&&B(t.cx)};function Me(e){var t=e.offset,r=t===void 0?5:t,n=FI(e,DI),i=_e({offset:r},n),a=i.viewBox,o=i.position,u=i.value,c=i.children,s=i.content,f=i.className,l=f===void 0?"":f,h=i.textBreakAll;if(!a||Z(u)&&Z(c)&&!L.isValidElement(s)&&!V(s))return null;if(L.isValidElement(s))return L.cloneElement(s,i);var p;if(V(s)){if(p=L.createElement(s,i),L.isValidElement(p))return p}else p=KI(i);var v=ZI(a),y=q(i,!0);if(v&&(o==="insideStart"||o==="insideEnd"||o==="end"))return GI(i,p,y);var d=v?XI(i):YI(i);return P.createElement(yr,li({className:J("recharts-label",l)},y,d,{breakAll:h}),p)}Me.displayName="Label";var Jv=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,c=t.radius,s=t.innerRadius,f=t.outerRadius,l=t.x,h=t.y,p=t.top,v=t.left,y=t.width,d=t.height,g=t.clockWise,x=t.labelViewBox;if(x)return x;if(B(y)&&B(d)){if(B(l)&&B(h))return{x:l,y:h,width:y,height:d};if(B(p)&&B(v))return{x:p,y:v,width:y,height:d}}return B(l)&&B(h)?{x:l,y:h,width:0,height:0}:B(r)&&B(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:s||0,outerRadius:f||c||u||0,clockWise:g}:t.viewBox?t.viewBox:{}},JI=function(t,r){return t?t===!0?P.createElement(Me,{key:"label-implicit",viewBox:r}):$e(t)?P.createElement(Me,{key:"label-implicit",viewBox:r,value:t}):L.isValidElement(t)?t.type===Me?L.cloneElement(t,{key:"label-implicit",viewBox:r}):P.createElement(Me,{key:"label-implicit",content:t,viewBox:r}):V(t)?P.createElement(Me,{key:"label-implicit",content:t,viewBox:r}):dn(t)?P.createElement(Me,li({viewBox:r},t,{key:"label-implicit"})):null:null},QI=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=Jv(t),o=Xe(i,Me).map(function(c,s){return L.cloneElement(c,{viewBox:r||a,key:"label-".concat(s)})});if(!n)return o;var u=JI(t.label,r||a);return[u].concat(NI(o))};Me.parseViewBox=Jv;Me.renderCallByParent=QI;function e3(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var t3=e3;const Qv=oe(t3);function fi(e){"@babel/helpers - typeof";return fi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fi(e)}var r3=["valueAccessor"],n3=["data","dataKey","clockWise","id","textBreakAll"];function i3(e){return c3(e)||u3(e)||o3(e)||a3()}function a3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o3(e,t){if(e){if(typeof e=="string")return bc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bc(e,t)}}function u3(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function c3(e){if(Array.isArray(e))return bc(e)}function bc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Da(){return Da=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Da.apply(this,arguments)}function Fh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Wh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fh(Object(r),!0).forEach(function(n){s3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function s3(e,t,r){return t=l3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l3(e){var t=f3(e,"string");return fi(t)=="symbol"?t:t+""}function f3(e,t){if(fi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Uh(e,t){if(e==null)return{};var r=h3(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function h3(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var p3=function(t){return Array.isArray(t.value)?Qv(t.value):t.value};function lt(e){var t=e.valueAccessor,r=t===void 0?p3:t,n=Uh(e,r3),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,c=n.textBreakAll,s=Uh(n,n3);return!i||!i.length?null:P.createElement(ee,{className:"recharts-label-list"},i.map(function(f,l){var h=Z(a)?r(f,l):me(f&&f.payload,a),p=Z(u)?{}:{id:"".concat(u,"-").concat(l)};return P.createElement(Me,Da({},q(f,!0),s,p,{parentViewBox:f.parentViewBox,value:h,textBreakAll:c,viewBox:Me.parseViewBox(Z(o)?f:Wh(Wh({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}lt.displayName="LabelList";function d3(e,t){return e?e===!0?P.createElement(lt,{key:"labelList-implicit",data:t}):P.isValidElement(e)||V(e)?P.createElement(lt,{key:"labelList-implicit",data:t,content:e}):dn(e)?P.createElement(lt,Da({data:t},e,{key:"labelList-implicit"})):null:null}function y3(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Xe(n,lt).map(function(o,u){return L.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=d3(e.label,t);return[a].concat(i3(i))}lt.renderCallByParent=y3;function hi(e){"@babel/helpers - typeof";return hi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hi(e)}function xc(){return xc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xc.apply(this,arguments)}function Hh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hh(Object(r),!0).forEach(function(n){v3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function v3(e,t,r){return t=m3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m3(e){var t=g3(e,"string");return hi(t)=="symbol"?t:t+""}function g3(e,t){if(hi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var b3=function(t,r){var n=Ne(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},Ji=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,u=t.isExternal,c=t.cornerRadius,s=t.cornerIsExternal,f=c*(u?1:-1)+i,l=Math.asin(c/f)/Ia,h=s?a:a+o*l,p=ie(r,n,f,h),v=ie(r,n,i,h),y=s?a-o*l:a,d=ie(r,n,f*Math.cos(l*Ia),y);return{center:p,circleTangency:v,lineTangency:d,theta:l}},em=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,c=b3(o,u),s=o+c,f=ie(r,n,a,o),l=ie(r,n,a,s),h="M ".concat(f.x,",").concat(f.y,`
    A `).concat(a,",").concat(a,`,0,
    `).concat(+(Math.abs(c)>180),",").concat(+(o>s),`,
    `).concat(l.x,",").concat(l.y,`
  `);if(i>0){var p=ie(r,n,i,o),v=ie(r,n,i,s);h+="L ".concat(v.x,",").concat(v.y,`
            A `).concat(i,",").concat(i,`,0,
            `).concat(+(Math.abs(c)>180),",").concat(+(o<=s),`,
            `).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},x3=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,u=t.forceCornerRadius,c=t.cornerIsExternal,s=t.startAngle,f=t.endAngle,l=Ne(f-s),h=Ji({cx:r,cy:n,radius:a,angle:s,sign:l,cornerRadius:o,cornerIsExternal:c}),p=h.circleTangency,v=h.lineTangency,y=h.theta,d=Ji({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:c}),g=d.circleTangency,x=d.lineTangency,w=d.theta,O=c?Math.abs(s-f):Math.abs(s-f)-y-w;if(O<0)return u?"M ".concat(v.x,",").concat(v.y,`
        a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
        a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
      `):em({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:s,endAngle:f});var m="M ".concat(v.x,",").concat(v.y,`
    A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.y,`
    A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(l<0),",").concat(g.x,",").concat(g.y,`
    A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(x.x,",").concat(x.y,`
  `);if(i>0){var b=Ji({cx:r,cy:n,radius:i,angle:s,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),A=b.circleTangency,S=b.lineTangency,_=b.theta,M=Ji({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),$=M.circleTangency,T=M.lineTangency,E=M.theta,I=c?Math.abs(s-f):Math.abs(s-f)-_-E;if(I<0&&o===0)return"".concat(m,"L").concat(r,",").concat(n,"Z");m+="L".concat(T.x,",").concat(T.y,`
      A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat($.x,",").concat($.y,`
      A`).concat(i,",").concat(i,",0,").concat(+(I>180),",").concat(+(l>0),",").concat(A.x,",").concat(A.y,`
      A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(S.x,",").concat(S.y,"Z")}else m+="L".concat(r,",").concat(n,"Z");return m},w3={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},tm=function(t){var r=qh(qh({},w3),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,c=r.forceCornerRadius,s=r.cornerIsExternal,f=r.startAngle,l=r.endAngle,h=r.className;if(o<a||f===l)return null;var p=J("recharts-sector",h),v=o-a,y=Le(u,v,0,!0),d;return y>0&&Math.abs(f-l)<360?d=x3({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(y,v/2),forceCornerRadius:c,cornerIsExternal:s,startAngle:f,endAngle:l}):d=em({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),P.createElement("path",xc({},q(r,!0),{className:p,d,role:"img"}))};function pi(e){"@babel/helpers - typeof";return pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pi(e)}function wc(){return wc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wc.apply(this,arguments)}function Kh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Vh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kh(Object(r),!0).forEach(function(n){O3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function O3(e,t,r){return t=A3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A3(e){var t=P3(e,"string");return pi(t)=="symbol"?t:t+""}function P3(e,t){if(pi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gh={curveBasisClosed:P2,curveBasisOpen:S2,curveBasis:A2,curveBumpX:s2,curveBumpY:l2,curveLinearClosed:_2,curveLinear:$o,curveMonotoneX:$2,curveMonotoneY:k2,curveNatural:T2,curveStep:M2,curveStepAfter:E2,curveStepBefore:j2},Qi=function(t){return t.x===+t.x&&t.y===+t.y},In=function(t){return t.x},Dn=function(t){return t.y},S3=function(t,r){if(V(t))return t;var n="curve".concat(So(t));return(n==="curveMonotone"||n==="curveBump")&&r?Gh["".concat(n).concat(r==="vertical"?"Y":"X")]:Gh[n]||$o},_3=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,u=t.layout,c=t.connectNulls,s=c===void 0?!1:c,f=S3(n,u),l=s?a.filter(function(y){return Qi(y)}):a,h;if(Array.isArray(o)){var p=s?o.filter(function(y){return Qi(y)}):o,v=l.map(function(y,d){return Vh(Vh({},y),{},{base:p[d]})});return u==="vertical"?h=Ui().y(Dn).x1(In).x0(function(y){return y.base.x}):h=Ui().x(In).y1(Dn).y0(function(y){return y.base.y}),h.defined(Qi).curve(f),h(v)}return u==="vertical"&&B(o)?h=Ui().y(Dn).x1(In).x0(o):B(o)?h=Ui().x(In).y1(Dn).y0(o):h=Vd().x(In).y(Dn),h.defined(Qi).curve(f),h(l)},hr=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?_3(t):i;return L.createElement("path",wc({},q(t,!1),aa(t),{className:J("recharts-curve",r),d:o,ref:a}))},rm={exports:{}},$3="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",k3=$3,T3=k3;function nm(){}function im(){}im.resetWarningCache=nm;var M3=function(){function e(n,i,a,o,u,c){if(c!==T3){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:im,resetWarningCache:nm};return r.PropTypes=r,r};rm.exports=M3();var j3=rm.exports;const ae=oe(j3),{getOwnPropertyNames:E3,getOwnPropertySymbols:C3}=Object,{hasOwnProperty:I3}=Object.prototype;function Ou(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function ea(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);const{cache:a}=i,o=a.get(r),u=a.get(n);if(o&&u)return o===n&&u===r;a.set(r,n),a.set(n,r);const c=e(r,n,i);return a.delete(r),a.delete(n),c}}function D3(e){return e!=null?e[Symbol.toStringTag]:void 0}function Xh(e){return E3(e).concat(C3(e))}const N3=Object.hasOwn||((e,t)=>I3.call(e,t));function Ar(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const L3="__v",R3="__o",B3="_owner",{getOwnPropertyDescriptor:Yh,keys:Zh}=Object;function z3(e,t){return e.byteLength===t.byteLength&&Na(new Uint8Array(e),new Uint8Array(t))}function F3(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function W3(e,t){return e.byteLength===t.byteLength&&Na(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function U3(e,t){return Ar(e.getTime(),t.getTime())}function H3(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function q3(e,t){return e===t}function Jh(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let o,u,c=0;for(;(o=a.next())&&!o.done;){const s=t.entries();let f=!1,l=0;for(;(u=s.next())&&!u.done;){if(i[l]){l++;continue}const h=o.value,p=u.value;if(r.equals(h[0],p[0],c,l,e,t,r)&&r.equals(h[1],p[1],h[0],p[0],e,t,r)){f=i[l]=!0;break}l++}if(!f)return!1;c++}return!0}const K3=Ar;function V3(e,t,r){const n=Zh(e);let i=n.length;if(Zh(t).length!==i)return!1;for(;i-- >0;)if(!am(e,t,r,n[i]))return!1;return!0}function Nn(e,t,r){const n=Xh(e);let i=n.length;if(Xh(t).length!==i)return!1;let a,o,u;for(;i-- >0;)if(a=n[i],!am(e,t,r,a)||(o=Yh(e,a),u=Yh(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function G3(e,t){return Ar(e.valueOf(),t.valueOf())}function X3(e,t){return e.source===t.source&&e.flags===t.flags}function Qh(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.values();let o,u;for(;(o=a.next())&&!o.done;){const c=t.values();let s=!1,f=0;for(;(u=c.next())&&!u.done;){if(!i[f]&&r.equals(o.value,u.value,o.value,u.value,e,t,r)){s=i[f]=!0;break}f++}if(!s)return!1}return!0}function Na(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function Y3(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function am(e,t,r,n){return(n===B3||n===R3||n===L3)&&(e.$$typeof||t.$$typeof)?!0:N3(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const Z3="[object ArrayBuffer]",J3="[object Arguments]",Q3="[object Boolean]",eD="[object DataView]",tD="[object Date]",rD="[object Error]",nD="[object Map]",iD="[object Number]",aD="[object Object]",oD="[object RegExp]",uD="[object Set]",cD="[object String]",sD={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},lD="[object URL]",fD=Object.prototype.toString;function hD({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:u,areObjectsEqual:c,arePrimitiveWrappersEqual:s,areRegExpsEqual:f,areSetsEqual:l,areTypedArraysEqual:h,areUrlsEqual:p,unknownTagComparators:v}){return function(d,g,x){if(d===g)return!0;if(d==null||g==null)return!1;const w=typeof d;if(w!==typeof g)return!1;if(w!=="object")return w==="number"?u(d,g,x):w==="function"?a(d,g,x):!1;const O=d.constructor;if(O!==g.constructor)return!1;if(O===Object)return c(d,g,x);if(Array.isArray(d))return t(d,g,x);if(O===Date)return n(d,g,x);if(O===RegExp)return f(d,g,x);if(O===Map)return o(d,g,x);if(O===Set)return l(d,g,x);const m=fD.call(d);if(m===tD)return n(d,g,x);if(m===oD)return f(d,g,x);if(m===nD)return o(d,g,x);if(m===uD)return l(d,g,x);if(m===aD)return typeof d.then!="function"&&typeof g.then!="function"&&c(d,g,x);if(m===lD)return p(d,g,x);if(m===rD)return i(d,g,x);if(m===J3)return c(d,g,x);if(sD[m])return h(d,g,x);if(m===Z3)return e(d,g,x);if(m===eD)return r(d,g,x);if(m===Q3||m===iD||m===cD)return s(d,g,x);if(v){let b=v[m];if(!b){const A=D3(d);A&&(b=v[A])}if(b)return b(d,g,x)}return!1}}function pD({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:z3,areArraysEqual:r?Nn:F3,areDataViewsEqual:W3,areDatesEqual:U3,areErrorsEqual:H3,areFunctionsEqual:q3,areMapsEqual:r?Ou(Jh,Nn):Jh,areNumbersEqual:K3,areObjectsEqual:r?Nn:V3,arePrimitiveWrappersEqual:G3,areRegExpsEqual:X3,areSetsEqual:r?Ou(Qh,Nn):Qh,areTypedArraysEqual:r?Ou(Na,Nn):Na,areUrlsEqual:Y3,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=ea(n.areArraysEqual),a=ea(n.areMapsEqual),o=ea(n.areObjectsEqual),u=ea(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:u})}return n}function dD(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function yD({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(u,c){const{cache:s=e?new WeakMap:void 0,meta:f}=r();return t(u,c,{cache:s,equals:n,meta:f,strict:i})};if(e)return function(u,c){return t(u,c,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(u,c){return t(u,c,a)}}const vD=Vt();Vt({strict:!0});Vt({circular:!0});Vt({circular:!0,strict:!0});Vt({createInternalComparator:()=>Ar});Vt({strict:!0,createInternalComparator:()=>Ar});Vt({circular:!0,createInternalComparator:()=>Ar});Vt({circular:!0,createInternalComparator:()=>Ar,strict:!0});function Vt(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=pD(e),o=hD(a),u=r?r(o):dD(o);return yD({circular:t,comparator:o,createState:n,equals:u,strict:i})}function mD(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function ep(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):mD(i)};requestAnimationFrame(n)}function Oc(e){"@babel/helpers - typeof";return Oc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oc(e)}function gD(e){return OD(e)||wD(e)||xD(e)||bD()}function bD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xD(e,t){if(e){if(typeof e=="string")return tp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tp(e,t)}}function tp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function wD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function OD(e){if(Array.isArray(e))return e}function AD(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,u=gD(o),c=u[0],s=u.slice(1);if(typeof c=="number"){ep(i.bind(null,s),c);return}i(c),ep(i.bind(null,s));return}Oc(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function di(e){"@babel/helpers - typeof";return di=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},di(e)}function rp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function np(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rp(Object(r),!0).forEach(function(n){om(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function om(e,t,r){return t=PD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PD(e){var t=SD(e,"string");return di(t)==="symbol"?t:String(t)}function SD(e,t){if(di(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(di(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _D=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},$D=function(t){return t},kD=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Wn=function(t,r){return Object.keys(r).reduce(function(n,i){return np(np({},n),{},om({},i,t(i,r[i])))},{})},ip=function(t,r,n){return t.map(function(i){return"".concat(kD(i)," ").concat(r,"ms ").concat(n)}).join(",")};function TD(e,t){return ED(e)||jD(e,t)||um(e,t)||MD()}function MD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jD(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function ED(e){if(Array.isArray(e))return e}function CD(e){return ND(e)||DD(e)||um(e)||ID()}function ID(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function um(e,t){if(e){if(typeof e=="string")return Ac(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ac(e,t)}}function DD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ND(e){if(Array.isArray(e))return Ac(e)}function Ac(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var La=1e-4,cm=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},sm=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},ap=function(t,r){return function(n){var i=cm(t,r);return sm(i,n)}},LD=function(t,r){return function(n){var i=cm(t,r),a=[].concat(CD(i.map(function(o,u){return o*u}).slice(1)),[0]);return sm(a,n)}},op=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],u=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,u=1;break;case"ease":i=.25,a=.1,o=.25,u=1;break;case"ease-in":i=.42,a=0,o=1,u=1;break;case"ease-out":i=.42,a=0,o=.58,u=1;break;case"ease-in-out":i=0,a=0,o=.58,u=1;break;default:{var c=r[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var s=c[1].split(")")[0].split(",").map(function(d){return parseFloat(d)}),f=TD(s,4);i=f[0],a=f[1],o=f[2],u=f[3]}}}var l=ap(i,o),h=ap(a,u),p=LD(i,o),v=function(g){return g>1?1:g<0?0:g},y=function(g){for(var x=g>1?1:g,w=x,O=0;O<8;++O){var m=l(w)-x,b=p(w);if(Math.abs(m-x)<La||b<La)return h(w);w=v(w-m/b)}return h(w)};return y.isStepper=!1,y},RD=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,u=o===void 0?17:o,c=function(f,l,h){var p=-(f-l)*n,v=h*a,y=h+(p-v)*u/1e3,d=h*u/1e3+f;return Math.abs(d-l)<La&&Math.abs(y)<La?[l,0]:[d,y]};return c.isStepper=!0,c.dt=u,c},BD=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return op(i);case"spring":return RD();default:if(i.split("(")[0]==="cubic-bezier")return op(i)}return typeof i=="function"?i:null};function yi(e){"@babel/helpers - typeof";return yi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yi(e)}function up(e){return WD(e)||FD(e)||lm(e)||zD()}function zD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WD(e){if(Array.isArray(e))return Sc(e)}function cp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ee(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cp(Object(r),!0).forEach(function(n){Pc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Pc(e,t,r){return t=UD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UD(e){var t=HD(e,"string");return yi(t)==="symbol"?t:String(t)}function HD(e,t){if(yi(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yi(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qD(e,t){return GD(e)||VD(e,t)||lm(e,t)||KD()}function KD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lm(e,t){if(e){if(typeof e=="string")return Sc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sc(e,t)}}function Sc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function VD(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function GD(e){if(Array.isArray(e))return e}var Ra=function(t,r,n){return t+(r-t)*n},_c=function(t){var r=t.from,n=t.to;return r!==n},XD=function e(t,r,n){var i=Wn(function(a,o){if(_c(o)){var u=t(o.from,o.to,o.velocity),c=qD(u,2),s=c[0],f=c[1];return Ee(Ee({},o),{},{from:s,velocity:f})}return o},r);return n<1?Wn(function(a,o){return _c(o)?Ee(Ee({},o),{},{velocity:Ra(o.velocity,i[a].velocity,n),from:Ra(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const YD=function(e,t,r,n,i){var a=_D(e,t),o=a.reduce(function(d,g){return Ee(Ee({},d),{},Pc({},g,[e[g],t[g]]))},{}),u=a.reduce(function(d,g){return Ee(Ee({},d),{},Pc({},g,{from:e[g],velocity:0,to:t[g]}))},{}),c=-1,s,f,l=function(){return null},h=function(){return Wn(function(g,x){return x.from},u)},p=function(){return!Object.values(u).filter(_c).length},v=function(g){s||(s=g);var x=g-s,w=x/r.dt;u=XD(r,u,w),i(Ee(Ee(Ee({},e),t),h())),s=g,p()||(c=requestAnimationFrame(l))},y=function(g){f||(f=g);var x=(g-f)/n,w=Wn(function(m,b){return Ra.apply(void 0,up(b).concat([r(x)]))},o);if(i(Ee(Ee(Ee({},e),t),w)),x<1)c=requestAnimationFrame(l);else{var O=Wn(function(m,b){return Ra.apply(void 0,up(b).concat([r(1)]))},o);i(Ee(Ee(Ee({},e),t),O))}};return l=r.isStepper?v:y,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(c)}}};function Gr(e){"@babel/helpers - typeof";return Gr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gr(e)}var ZD=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function JD(e,t){if(e==null)return{};var r=QD(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function QD(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Au(e){return nN(e)||rN(e)||tN(e)||eN()}function eN(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tN(e,t){if(e){if(typeof e=="string")return $c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $c(e,t)}}function rN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nN(e){if(Array.isArray(e))return $c(e)}function $c(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function sp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function at(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sp(Object(r),!0).forEach(function(n){Rn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Rn(e,t,r){return t=fm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fm(n.key),n)}}function oN(e,t,r){return t&&aN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fm(e){var t=uN(e,"string");return Gr(t)==="symbol"?t:String(t)}function uN(e,t){if(Gr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cN(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kc(e,t)}function kc(e,t){return kc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},kc(e,t)}function sN(e){var t=lN();return function(){var n=Ba(e),i;if(t){var a=Ba(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Tc(this,i)}}function Tc(e,t){if(t&&(Gr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mc(e)}function Mc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lN(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ba(e){return Ba=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ba(e)}var rt=function(e){cN(r,e);var t=sN(r);function r(n,i){var a;iN(this,r),a=t.call(this,n,i);var o=a.props,u=o.isActive,c=o.attributeName,s=o.from,f=o.to,l=o.steps,h=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Mc(a)),a.changeStyle=a.changeStyle.bind(Mc(a)),!u||p<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:f}),Tc(a);if(l&&l.length)a.state={style:l[0].style};else if(s){if(typeof h=="function")return a.state={style:s},Tc(a);a.state={style:c?Rn({},c,s):s}}else a.state={style:{}};return a}return oN(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,u=a.canBegin,c=a.attributeName,s=a.shouldReAnimate,f=a.to,l=a.from,h=this.state.style;if(u){if(!o){var p={style:c?Rn({},c,f):f};this.state&&h&&(c&&h[c]!==f||!c&&h!==f)&&this.setState(p);return}if(!(vD(i.to,f)&&i.canBegin&&i.isActive)){var v=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var y=v||s?l:i.to;if(this.state&&h){var d={style:c?Rn({},c,y):y};(c&&h[c]!==y||!c&&h!==y)&&this.setState(d)}this.runAnimation(at(at({},this.props),{},{from:y,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,u=i.to,c=i.duration,s=i.easing,f=i.begin,l=i.onAnimationEnd,h=i.onAnimationStart,p=YD(o,u,BD(s),c,this.changeStyle),v=function(){a.stopJSAnimation=p()};this.manager.start([h,f,v,c,l])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,c=i.onAnimationStart,s=o[0],f=s.style,l=s.duration,h=l===void 0?0:l,p=function(y,d,g){if(g===0)return y;var x=d.duration,w=d.easing,O=w===void 0?"ease":w,m=d.style,b=d.properties,A=d.onAnimationEnd,S=g>0?o[g-1]:d,_=b||Object.keys(m);if(typeof O=="function"||O==="spring")return[].concat(Au(y),[a.runJSAnimation.bind(a,{from:S.style,to:m,duration:x,easing:O}),x]);var M=ip(_,x,O),$=at(at(at({},S.style),m),{},{transition:M});return[].concat(Au(y),[$,x,A]).filter($D)};return this.manager.start([c].concat(Au(o.reduce(p,[f,Math.max(h,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=AD());var a=i.begin,o=i.duration,u=i.attributeName,c=i.to,s=i.easing,f=i.onAnimationStart,l=i.onAnimationEnd,h=i.steps,p=i.children,v=this.manager;if(this.unSubscribe=v.subscribe(this.handleStyleChange),typeof s=="function"||typeof p=="function"||s==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var y=u?Rn({},u,c):c,d=ip(Object.keys(y),o,s);v.start([f,a,at(at({},y),{},{transition:d}),o,l])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var c=JD(i,ZD),s=L.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!u||s===0||o<=0)return a;var l=function(p){var v=p.props,y=v.style,d=y===void 0?{}:y,g=v.className,x=L.cloneElement(p,at(at({},c),{},{style:at(at({},d),f),className:g}));return x};return s===1?l(L.Children.only(a)):P.createElement("div",null,L.Children.map(a,function(h){return l(h)}))}}]),r}(L.PureComponent);rt.displayName="Animate";rt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};rt.propTypes={from:ae.oneOfType([ae.object,ae.string]),to:ae.oneOfType([ae.object,ae.string]),attributeName:ae.string,duration:ae.number,begin:ae.number,easing:ae.oneOfType([ae.string,ae.func]),steps:ae.arrayOf(ae.shape({duration:ae.number.isRequired,style:ae.object.isRequired,easing:ae.oneOfType([ae.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ae.func]),properties:ae.arrayOf("string"),onAnimationEnd:ae.func})),children:ae.oneOfType([ae.node,ae.func]),isActive:ae.bool,canBegin:ae.bool,onAnimationEnd:ae.func,shouldReAnimate:ae.bool,onAnimationStart:ae.func,onAnimationReStart:ae.func};function lp(){return lp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lp.apply(null,arguments)}function jz(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function fp(e,t){return fp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},fp(e,t)}function Ez(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vi(e){"@babel/helpers - typeof";return vi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vi(e)}function za(){return za=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},za.apply(this,arguments)}function fN(e,t){return yN(e)||dN(e,t)||pN(e,t)||hN()}function hN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pN(e,t){if(e){if(typeof e=="string")return hp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hp(e,t)}}function hp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function dN(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function yN(e){if(Array.isArray(e))return e}function pp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pp(Object(r),!0).forEach(function(n){vN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vN(e,t,r){return t=mN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mN(e){var t=gN(e,"string");return vi(t)=="symbol"?t:t+""}function gN(e,t){if(vi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yp=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),u=i>=0?1:-1,c=n>=0?1:-1,s=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var l=[0,0,0,0],h=0,p=4;h<p;h++)l[h]=a[h]>o?o:a[h];f="M".concat(t,",").concat(r+u*l[0]),l[0]>0&&(f+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(s,",").concat(t+c*l[0],",").concat(r)),f+="L ".concat(t+n-c*l[1],",").concat(r),l[1]>0&&(f+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(s,`,
        `).concat(t+n,",").concat(r+u*l[1])),f+="L ".concat(t+n,",").concat(r+i-u*l[2]),l[2]>0&&(f+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(s,`,
        `).concat(t+n-c*l[2],",").concat(r+i)),f+="L ".concat(t+c*l[3],",").concat(r+i),l[3]>0&&(f+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(s,`,
        `).concat(t,",").concat(r+i-u*l[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var v=Math.min(o,a);f="M ".concat(t,",").concat(r+u*v,`
            A `).concat(v,",").concat(v,",0,0,").concat(s,",").concat(t+c*v,",").concat(r,`
            L `).concat(t+n-c*v,",").concat(r,`
            A `).concat(v,",").concat(v,",0,0,").concat(s,",").concat(t+n,",").concat(r+u*v,`
            L `).concat(t+n,",").concat(r+i-u*v,`
            A `).concat(v,",").concat(v,",0,0,").concat(s,",").concat(t+n-c*v,",").concat(r+i,`
            L `).concat(t+c*v,",").concat(r+i,`
            A `).concat(v,",").concat(v,",0,0,").concat(s,",").concat(t,",").concat(r+i-u*v," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},bN=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,u=r.width,c=r.height;if(Math.abs(u)>0&&Math.abs(c)>0){var s=Math.min(a,a+u),f=Math.max(a,a+u),l=Math.min(o,o+c),h=Math.max(o,o+c);return n>=s&&n<=f&&i>=l&&i<=h}return!1},xN={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},nl=function(t){var r=dp(dp({},xN),t),n=L.useRef(),i=L.useState(-1),a=fN(i,2),o=a[0],u=a[1];L.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&u(O)}catch{}},[]);var c=r.x,s=r.y,f=r.width,l=r.height,h=r.radius,p=r.className,v=r.animationEasing,y=r.animationDuration,d=r.animationBegin,g=r.isAnimationActive,x=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||l!==+l||f===0||l===0)return null;var w=J("recharts-rectangle",p);return x?P.createElement(rt,{canBegin:o>0,from:{width:f,height:l,x:c,y:s},to:{width:f,height:l,x:c,y:s},duration:y,animationEasing:v,isActive:x},function(O){var m=O.width,b=O.height,A=O.x,S=O.y;return P.createElement(rt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:y,isActive:g,easing:v},P.createElement("path",za({},q(r,!0),{className:w,d:yp(A,S,m,b,h),ref:n})))}):P.createElement("path",za({},q(r,!0),{className:w,d:yp(c,s,f,l,h)}))},wN=["points","className","baseLinePoints","connectNulls"];function jr(){return jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jr.apply(this,arguments)}function ON(e,t){if(e==null)return{};var r=AN(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function AN(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function vp(e){return $N(e)||_N(e)||SN(e)||PN()}function PN(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SN(e,t){if(e){if(typeof e=="string")return jc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jc(e,t)}}function _N(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $N(e){if(Array.isArray(e))return jc(e)}function jc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var mp=function(t){return t&&t.x===+t.x&&t.y===+t.y},kN=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){mp(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),mp(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Un=function(t,r){var n=kN(t);r&&(n=[n.reduce(function(a,o){return[].concat(vp(a),vp(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,u,c){return"".concat(o).concat(c===0?"M":"L").concat(u.x,",").concat(u.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},TN=function(t,r,n){var i=Un(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Un(r.reverse(),n).slice(1))},hm=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=ON(t,wN);if(!r||!r.length)return null;var u=J("recharts-polygon",n);if(i&&i.length){var c=o.stroke&&o.stroke!=="none",s=TN(r,i,a);return P.createElement("g",{className:u},P.createElement("path",jr({},q(o,!0),{fill:s.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:s})),c?P.createElement("path",jr({},q(o,!0),{fill:"none",d:Un(r,a)})):null,c?P.createElement("path",jr({},q(o,!0),{fill:"none",d:Un(i,a)})):null)}var f=Un(r,a);return P.createElement("path",jr({},q(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:u,d:f}))};function Ec(){return Ec=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ec.apply(this,arguments)}var Sn=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=J("recharts-dot",a);return r===+r&&n===+n&&i===+i?L.createElement("circle",Ec({},q(t,!1),aa(t),{className:o,cx:r,cy:n,r:i})):null};function mi(e){"@babel/helpers - typeof";return mi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mi(e)}var MN=["x","y","top","left","width","height","className"];function Cc(){return Cc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cc.apply(this,arguments)}function gp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jN(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gp(Object(r),!0).forEach(function(n){EN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function EN(e,t,r){return t=CN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CN(e){var t=IN(e,"string");return mi(t)=="symbol"?t:t+""}function IN(e,t){if(mi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function DN(e,t){if(e==null)return{};var r=NN(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function NN(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var LN=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},RN=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,u=o===void 0?0:o,c=t.left,s=c===void 0?0:c,f=t.width,l=f===void 0?0:f,h=t.height,p=h===void 0?0:h,v=t.className,y=DN(t,MN),d=jN({x:n,y:a,top:u,left:s,width:l,height:p},y);return!B(n)||!B(a)||!B(l)||!B(p)||!B(u)||!B(s)?null:P.createElement("path",Cc({},q(d,!0),{className:J("recharts-cross",v),d:LN(n,a,l,p,u,s)}))},BN=["cx","cy","innerRadius","outerRadius","gridType","radialLines"];function gi(e){"@babel/helpers - typeof";return gi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gi(e)}function zN(e,t){if(e==null)return{};var r=FN(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function FN(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function jt(){return jt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jt.apply(this,arguments)}function bp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bp(Object(r),!0).forEach(function(n){WN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WN(e,t,r){return t=UN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UN(e){var t=HN(e,"string");return gi(t)=="symbol"?t:t+""}function HN(e,t){if(gi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qN=function(t,r,n,i){var a="";return i.forEach(function(o,u){var c=ie(r,n,t,o);u?a+="L ".concat(c.x,",").concat(c.y):a+="M ".concat(c.x,",").concat(c.y)}),a+="Z",a},KN=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.polarAngles,u=t.radialLines;if(!o||!o.length||!u)return null;var c=bi({stroke:"#ccc"},q(t,!1));return P.createElement("g",{className:"recharts-polar-grid-angle"},o.map(function(s){var f=ie(r,n,i,s),l=ie(r,n,a,s);return P.createElement("line",jt({},c,{key:"line-".concat(s),x1:f.x,y1:f.y,x2:l.x,y2:l.y}))}))},VN=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.index,o=bi(bi({stroke:"#ccc"},q(t,!1)),{},{fill:"none"});return P.createElement("circle",jt({},o,{className:J("recharts-polar-grid-concentric-circle",t.className),key:"circle-".concat(a),cx:r,cy:n,r:i}))},GN=function(t){var r=t.radius,n=t.index,i=bi(bi({stroke:"#ccc"},q(t,!1)),{},{fill:"none"});return P.createElement("path",jt({},i,{className:J("recharts-polar-grid-concentric-polygon",t.className),key:"path-".concat(n),d:qN(r,t.cx,t.cy,t.polarAngles)}))},XN=function(t){var r=t.polarRadius,n=t.gridType;return!r||!r.length?null:P.createElement("g",{className:"recharts-polar-grid-concentric"},r.map(function(i,a){var o=a;return n==="circle"?P.createElement(VN,jt({key:o},t,{radius:i,index:a})):P.createElement(GN,jt({key:o},t,{radius:i,index:a}))}))},YN=function(t){var r=t.cx,n=r===void 0?0:r,i=t.cy,a=i===void 0?0:i,o=t.innerRadius,u=o===void 0?0:o,c=t.outerRadius,s=c===void 0?0:c,f=t.gridType,l=f===void 0?"polygon":f,h=t.radialLines,p=h===void 0?!0:h,v=zN(t,BN);return s<=0?null:P.createElement("g",{className:"recharts-polar-grid"},P.createElement(KN,jt({cx:n,cy:a,innerRadius:u,outerRadius:s,gridType:l,radialLines:p},v)),P.createElement(XN,jt({cx:n,cy:a,innerRadius:u,outerRadius:s,gridType:l,radialLines:p},v)))};YN.displayName="PolarGrid";var ZN=Ro,JN=wv,QN=gt;function e4(e,t){return e&&e.length?ZN(e,QN(t),JN):void 0}var t4=e4;const r4=oe(t4);var n4=Ro,i4=gt,a4=Ov;function o4(e,t){return e&&e.length?n4(e,i4(t),a4):void 0}var u4=o4;const c4=oe(u4);var s4=["cx","cy","angle","ticks","axisLine"],l4=["ticks","tick","angle","tickFormatter","stroke"];function Xr(e){"@babel/helpers - typeof";return Xr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xr(e)}function Hn(){return Hn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hn.apply(this,arguments)}function xp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xp(Object(r),!0).forEach(function(n){Wo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wp(e,t){if(e==null)return{};var r=f4(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function f4(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function h4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Op(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,dm(n.key),n)}}function p4(e,t,r){return t&&Op(e.prototype,t),r&&Op(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function d4(e,t,r){return t=Fa(t),y4(e,pm()?Reflect.construct(t,r||[],Fa(e).constructor):t.apply(e,r))}function y4(e,t){if(t&&(Xr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v4(e)}function v4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pm=function(){return!!e})()}function Fa(e){return Fa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fa(e)}function m4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ic(e,t)}function Ic(e,t){return Ic=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ic(e,t)}function Wo(e,t,r){return t=dm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dm(e){var t=g4(e,"string");return Xr(t)=="symbol"?t:t+""}function g4(e,t){if(Xr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ni=function(e){function t(){return h4(this,t),d4(this,t,arguments)}return m4(t,e),p4(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,u=a.cx,c=a.cy;return ie(u,c,i,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,u=n.ticks,c=r4(u,function(f){return f.coordinate||0}),s=c4(u,function(f){return f.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:s.coordinate||0,outerRadius:c.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,u=n.ticks,c=n.axisLine,s=wp(n,s4),f=u.reduce(function(v,y){return[Math.min(v[0],y.coordinate),Math.max(v[1],y.coordinate)]},[1/0,-1/0]),l=ie(i,a,f[0],o),h=ie(i,a,f[1],o),p=Qt(Qt(Qt({},q(s,!1)),{},{fill:"none"},q(c,!1)),{},{x1:l.x,y1:l.y,x2:h.x,y2:h.y});return P.createElement("line",Hn({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.angle,c=i.tickFormatter,s=i.stroke,f=wp(i,l4),l=this.getTickTextAnchor(),h=q(f,!1),p=q(o,!1),v=a.map(function(y,d){var g=n.getTickValueCoord(y),x=Qt(Qt(Qt(Qt({textAnchor:l,transform:"rotate(".concat(90-u,", ").concat(g.x,", ").concat(g.y,")")},h),{},{stroke:"none",fill:s},p),{},{index:d},g),{},{payload:y});return P.createElement(ee,Hn({className:J("recharts-polar-radius-axis-tick",Zv(o)),key:"tick-".concat(y.coordinate)},dr(n.props,y,d)),t.renderTickItem(o,x,c?c(y.value,d):y.value))});return P.createElement(ee,{className:"recharts-polar-radius-axis-ticks"},v)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:P.createElement(ee,{className:J("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),Me.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return P.isValidElement(n)?o=P.cloneElement(n,i):V(n)?o=n(i):o=P.createElement(yr,Hn({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])}(L.PureComponent);Wo(Ni,"displayName","PolarRadiusAxis");Wo(Ni,"axisType","radiusAxis");Wo(Ni,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function Yr(e){"@babel/helpers - typeof";return Yr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yr(e)}function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ir.apply(this,arguments)}function Ap(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function er(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ap(Object(r),!0).forEach(function(n){Uo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ap(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function b4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vm(n.key),n)}}function x4(e,t,r){return t&&Pp(e.prototype,t),r&&Pp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function w4(e,t,r){return t=Wa(t),O4(e,ym()?Reflect.construct(t,r||[],Wa(e).constructor):t.apply(e,r))}function O4(e,t){if(t&&(Yr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A4(e)}function A4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ym(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ym=function(){return!!e})()}function Wa(e){return Wa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wa(e)}function P4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dc(e,t)}function Dc(e,t){return Dc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Dc(e,t)}function Uo(e,t,r){return t=vm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vm(e){var t=S4(e,"string");return Yr(t)=="symbol"?t:t+""}function S4(e,t){if(Yr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _4=Math.PI/180,Sp=1e-5,Li=function(e){function t(){return b4(this,t),w4(this,t,arguments)}return P4(t,e),x4(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,u=i.radius,c=i.orientation,s=i.tickSize,f=s||8,l=ie(a,o,u,n.coordinate),h=ie(a,o,u+(c==="inner"?-1:1)*f,n.coordinate);return{x1:l.x,y1:l.y,x2:h.x,y2:h.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*_4),o;return a>Sp?o=i==="outer"?"start":"end":a<-Sp?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,u=n.axisLine,c=n.axisLineType,s=er(er({},q(this.props,!1)),{},{fill:"none"},q(u,!1));if(c==="circle")return P.createElement(Sn,ir({className:"recharts-polar-angle-axis-line"},s,{cx:i,cy:a,r:o}));var f=this.props.ticks,l=f.map(function(h){return ie(i,a,o,h.coordinate)});return P.createElement(hm,ir({className:"recharts-polar-angle-axis-line"},s,{points:l}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.tickLine,c=i.tickFormatter,s=i.stroke,f=q(this.props,!1),l=q(o,!1),h=er(er({},f),{},{fill:"none"},q(u,!1)),p=a.map(function(v,y){var d=n.getTickLineCoord(v),g=n.getTickTextAnchor(v),x=er(er(er({textAnchor:g},f),{},{stroke:"none",fill:s},l),{},{index:y,payload:v,x:d.x2,y:d.y2});return P.createElement(ee,ir({className:J("recharts-polar-angle-axis-tick",Zv(o)),key:"tick-".concat(v.coordinate)},dr(n.props,v,y)),u&&P.createElement("line",ir({className:"recharts-polar-angle-axis-tick-line"},h,d)),o&&t.renderTickItem(o,x,c?c(v.value,y):v.value))});return P.createElement(ee,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:P.createElement(ee,{className:J("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return P.isValidElement(n)?o=P.cloneElement(n,i):V(n)?o=n(i):o=P.createElement(yr,ir({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])}(L.PureComponent);Uo(Li,"displayName","PolarAngleAxis");Uo(Li,"axisType","angleAxis");Uo(Li,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var $4=my,k4=$4(Object.getPrototypeOf,Object),T4=k4,M4=Et,j4=T4,E4=Ct,C4="[object Object]",I4=Function.prototype,D4=Object.prototype,mm=I4.toString,N4=D4.hasOwnProperty,L4=mm.call(Object);function R4(e){if(!E4(e)||M4(e)!=C4)return!1;var t=j4(e);if(t===null)return!0;var r=N4.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&mm.call(r)==L4}var B4=R4;const z4=oe(B4);var F4=Et,W4=Ct,U4="[object Boolean]";function H4(e){return e===!0||e===!1||W4(e)&&F4(e)==U4}var q4=H4;const K4=oe(q4);function xi(e){"@babel/helpers - typeof";return xi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xi(e)}function Ua(){return Ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ua.apply(this,arguments)}function V4(e,t){return Z4(e)||Y4(e,t)||X4(e,t)||G4()}function G4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function X4(e,t){if(e){if(typeof e=="string")return _p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _p(e,t)}}function _p(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Y4(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function Z4(e){if(Array.isArray(e))return e}function $p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$p(Object(r),!0).forEach(function(n){J4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$p(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function J4(e,t,r){return t=Q4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q4(e){var t=e8(e,"string");return xi(t)=="symbol"?t:t+""}function e8(e,t){if(xi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Tp=function(t,r,n,i,a){var o=n-i,u;return u="M ".concat(t,",").concat(r),u+="L ".concat(t+n,",").concat(r),u+="L ".concat(t+n-o/2,",").concat(r+a),u+="L ".concat(t+n-o/2-i,",").concat(r+a),u+="L ".concat(t,",").concat(r," Z"),u},t8={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},r8=function(t){var r=kp(kp({},t8),t),n=L.useRef(),i=L.useState(-1),a=V4(i,2),o=a[0],u=a[1];L.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&u(w)}catch{}},[]);var c=r.x,s=r.y,f=r.upperWidth,l=r.lowerWidth,h=r.height,p=r.className,v=r.animationEasing,y=r.animationDuration,d=r.animationBegin,g=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||l!==+l||h!==+h||f===0&&l===0||h===0)return null;var x=J("recharts-trapezoid",p);return g?P.createElement(rt,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:c,y:s},to:{upperWidth:f,lowerWidth:l,height:h,x:c,y:s},duration:y,animationEasing:v,isActive:g},function(w){var O=w.upperWidth,m=w.lowerWidth,b=w.height,A=w.x,S=w.y;return P.createElement(rt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:y,easing:v},P.createElement("path",Ua({},q(r,!0),{className:x,d:Tp(A,S,O,m,b),ref:n})))}):P.createElement("g",null,P.createElement("path",Ua({},q(r,!0),{className:x,d:Tp(c,s,f,l,h)})))},n8=["option","shapeType","propTransformer","activeClassName","isActive"];function wi(e){"@babel/helpers - typeof";return wi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wi(e)}function i8(e,t){if(e==null)return{};var r=a8(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function a8(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Mp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ha(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mp(Object(r),!0).forEach(function(n){o8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function o8(e,t,r){return t=u8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u8(e){var t=c8(e,"string");return wi(t)=="symbol"?t:t+""}function c8(e,t){if(wi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function s8(e,t){return Ha(Ha({},t),e)}function l8(e,t){return e==="symbols"}function jp(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return P.createElement(nl,r);case"trapezoid":return P.createElement(r8,r);case"sector":return P.createElement(tm,r);case"symbols":if(l8(t))return P.createElement(ws,r);break;default:return null}}function f8(e){return L.isValidElement(e)?e.props:e}function gm(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?s8:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,c=i8(e,n8),s;if(L.isValidElement(t))s=L.cloneElement(t,Ha(Ha({},c),f8(t)));else if(V(t))s=t(c);else if(z4(t)&&!K4(t)){var f=i(t,c);s=P.createElement(jp,{shapeType:r,elementProps:f})}else{var l=c;s=P.createElement(jp,{shapeType:r,elementProps:l})}return u?P.createElement(ee,{className:o},s):s}function Ho(e,t){return t!=null&&"trapezoids"in e.props}function qo(e,t){return t!=null&&"sectors"in e.props}function Oi(e,t){return t!=null&&"points"in e.props}function h8(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function p8(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function d8(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function y8(e,t){var r;return Ho(e,t)?r=h8:qo(e,t)?r=p8:Oi(e,t)&&(r=d8),r}function v8(e,t){var r;return Ho(e,t)?r="trapezoids":qo(e,t)?r="sectors":Oi(e,t)&&(r="points"),r}function m8(e,t){if(Ho(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(qo(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return Oi(e,t)?t.payload:{}}function g8(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=v8(r,t),a=m8(r,t),o=n.filter(function(c,s){var f=Ut(a,c),l=r.props[i].filter(function(v){var y=y8(r,t);return y(v,t)}),h=r.props[i].indexOf(l[l.length-1]),p=s===h;return f&&p}),u=n.indexOf(o[o.length-1]);return u}var na;function Zr(e){"@babel/helpers - typeof";return Zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zr(e)}function Er(){return Er=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Er.apply(this,arguments)}function Ep(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function le(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ep(Object(r),!0).forEach(function(n){Qe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ep(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function b8(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xm(n.key),n)}}function x8(e,t,r){return t&&Cp(e.prototype,t),r&&Cp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function w8(e,t,r){return t=qa(t),O8(e,bm()?Reflect.construct(t,r||[],qa(e).constructor):t.apply(e,r))}function O8(e,t){if(t&&(Zr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A8(e)}function A8(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bm=function(){return!!e})()}function qa(e){return qa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qa(e)}function P8(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nc(e,t)}function Nc(e,t){return Nc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Nc(e,t)}function Qe(e,t,r){return t=xm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xm(e){var t=S8(e,"string");return Zr(t)=="symbol"?t:t+""}function S8(e,t){if(Zr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Gt=function(e){function t(r){var n;return b8(this,t),n=w8(this,t,[r]),Qe(n,"pieRef",null),Qe(n,"sectorRefs",[]),Qe(n,"id",xr("recharts-pie-")),Qe(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),V(i)&&i()}),Qe(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),V(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return P8(t,e),x8(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,u=a.labelLine,c=a.dataKey,s=a.valueKey,f=q(this.props,!1),l=q(o,!1),h=q(u,!1),p=o&&o.offsetRadius||20,v=n.map(function(y,d){var g=(y.startAngle+y.endAngle)/2,x=ie(y.cx,y.cy,y.outerRadius+p,g),w=le(le(le(le({},f),y),{},{stroke:"none"},l),{},{index:d,textAnchor:t.getTextAnchor(x.x,y.cx)},x),O=le(le(le(le({},f),y),{},{fill:"none",stroke:y.fill},h),{},{index:d,points:[ie(y.cx,y.cy,y.outerRadius,g),x]}),m=c;return Z(c)&&Z(s)?m="value":Z(c)&&(m=s),P.createElement(ee,{key:"label-".concat(y.startAngle,"-").concat(y.endAngle,"-").concat(y.midAngle,"-").concat(d)},u&&t.renderLabelLineItem(u,O,"line"),t.renderLabelItem(o,w,me(y,m)))});return P.createElement(ee,{className:"recharts-pie-labels"},v)}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,o=a.activeShape,u=a.blendStroke,c=a.inactiveShape;return n.map(function(s,f){if((s==null?void 0:s.startAngle)===0&&(s==null?void 0:s.endAngle)===0&&n.length!==1)return null;var l=i.isActiveIndex(f),h=c&&i.hasActiveIndex()?c:null,p=l?o:h,v=le(le({},s),{},{stroke:u?s.fill:s.stroke,tabIndex:-1});return P.createElement(ee,Er({ref:function(d){d&&!i.sectorRefs.includes(d)&&i.sectorRefs.push(d)},tabIndex:-1,className:"recharts-pie-sector"},dr(i.props,s,f),{key:"sector-".concat(s==null?void 0:s.startAngle,"-").concat(s==null?void 0:s.endAngle,"-").concat(s.midAngle,"-").concat(f)}),P.createElement(gm,Er({option:p,isActive:l,shapeType:"sector"},v)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.sectors,o=i.isAnimationActive,u=i.animationBegin,c=i.animationDuration,s=i.animationEasing,f=i.animationId,l=this.state,h=l.prevSectors,p=l.prevIsAnimationActive;return P.createElement(rt,{begin:u,duration:c,isActive:o,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(v){var y=v.t,d=[],g=a&&a[0],x=g.startAngle;return a.forEach(function(w,O){var m=h&&h[O],b=O>0?Ge(w,"paddingAngle",0):0;if(m){var A=ve(m.endAngle-m.startAngle,w.endAngle-w.startAngle),S=le(le({},w),{},{startAngle:x+b,endAngle:x+A(y)+b});d.push(S),x=S.endAngle}else{var _=w.endAngle,M=w.startAngle,$=ve(0,_-M),T=$(y),E=le(le({},w),{},{startAngle:x+b,endAngle:x+T+b});d.push(E),x=E.endAngle}}),P.createElement(ee,null,n.renderSectorsStatically(d))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var u=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[u].focus(),i.setState({sectorToFocus:u});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!Ut(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,u=i.className,c=i.label,s=i.cx,f=i.cy,l=i.innerRadius,h=i.outerRadius,p=i.isAnimationActive,v=this.state.isAnimationFinished;if(a||!o||!o.length||!B(s)||!B(f)||!B(l)||!B(h))return null;var y=J("recharts-pie",u);return P.createElement(ee,{tabIndex:this.props.rootTabIndex,className:y,ref:function(g){n.pieRef=g}},this.renderSectors(),c&&this.renderLabels(o),Me.renderCallByParent(this.props,null,!1),(!p||v)&&lt.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,a){if(P.isValidElement(n))return P.cloneElement(n,i);if(V(n))return n(i);var o=J("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return P.createElement(hr,Er({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(P.isValidElement(n))return P.cloneElement(n,i);var o=a;if(V(n)&&(o=n(i),P.isValidElement(o)))return o;var u=J("recharts-pie-label-text",typeof n!="boolean"&&!V(n)?n.className:"");return P.createElement(yr,Er({},i,{alignmentBaseline:"middle",className:u}),o)}}])}(L.PureComponent);na=Gt;Qe(Gt,"displayName","Pie");Qe(Gt,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!It.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Qe(Gt,"parseDeltaAngle",function(e,t){var r=Ne(t-e),n=Math.min(Math.abs(t-e),360);return r*n});Qe(Gt,"getRealPieData",function(e){var t=e.data,r=e.children,n=q(e,!1),i=Xe(r,js);return t&&t.length?t.map(function(a,o){return le(le(le({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return le(le({},n),a.props)}):[]});Qe(Gt,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,o=Xv(i,a),u=n+Le(e.cx,i,i/2),c=r+Le(e.cy,a,a/2),s=Le(e.innerRadius,o,0),f=Le(e.outerRadius,o,o*.8),l=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:u,cy:c,innerRadius:s,outerRadius:f,maxRadius:l}});Qe(Gt,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?le(le({},t.type.defaultProps),t.props):t.props,i=na.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,o=n.startAngle,u=n.endAngle,c=n.paddingAngle,s=n.dataKey,f=n.nameKey,l=n.valueKey,h=n.tooltipType,p=Math.abs(n.minAngle),v=na.parseCoordinateOfPie(n,r),y=na.parseDeltaAngle(o,u),d=Math.abs(y),g=s;Z(s)&&Z(l)?(st(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),g="value"):Z(s)&&(st(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),g=l);var x=i.filter(function(S){return me(S,g,0)!==0}).length,w=(d>=360?x:x-1)*c,O=d-x*p-w,m=i.reduce(function(S,_){var M=me(_,g,0);return S+(B(M)?M:0)},0),b;if(m>0){var A;b=i.map(function(S,_){var M=me(S,g,0),$=me(S,f,_),T=(B(M)?M:0)/m,E;_?E=A.endAngle+Ne(y)*c*(M!==0?1:0):E=o;var I=E+Ne(y)*((M!==0?p:0)+T*O),C=(E+I)/2,D=(v.innerRadius+v.outerRadius)/2,N=[{name:$,value:M,payload:S,dataKey:g,type:h}],z=ie(v.cx,v.cy,D,C);return A=le(le(le({percent:T,cornerRadius:a,name:$,tooltipPayload:N,midAngle:C,middleRadius:D,tooltipPosition:z},S),v),{},{value:me(S,g),startAngle:E,endAngle:I,payload:S,paddingAngle:Ne(y)*c}),A})}return le(le({},v),{},{sectors:b,data:i})});function _8(e){return e&&e.length?e[0]:void 0}var $8=_8,k8=$8;const T8=oe(k8);var M8=["key"];function Jr(e){"@babel/helpers - typeof";return Jr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jr(e)}function j8(e,t){if(e==null)return{};var r=E8(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function E8(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ka(){return Ka=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ka.apply(this,arguments)}function Ip(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function De(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ip(Object(r),!0).forEach(function(n){Ot(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ip(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function C8(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Om(n.key),n)}}function I8(e,t,r){return t&&Dp(e.prototype,t),r&&Dp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function D8(e,t,r){return t=Va(t),N8(e,wm()?Reflect.construct(t,r||[],Va(e).constructor):t.apply(e,r))}function N8(e,t){if(t&&(Jr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return L8(e)}function L8(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wm=function(){return!!e})()}function Va(e){return Va=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Va(e)}function R8(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lc(e,t)}function Lc(e,t){return Lc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Lc(e,t)}function Ot(e,t,r){return t=Om(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Om(e){var t=B8(e,"string");return Jr(t)=="symbol"?t:t+""}function B8(e,t){if(Jr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ko=function(e){function t(){var r;C8(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=D8(this,t,[].concat(i)),Ot(r,"state",{isAnimationFinished:!1}),Ot(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),V(o)&&o()}),Ot(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),V(o)&&o()}),Ot(r,"handleMouseEnter",function(o){var u=r.props.onMouseEnter;u&&u(r.props,o)}),Ot(r,"handleMouseLeave",function(o){var u=r.props.onMouseLeave;u&&u(r.props,o)}),r}return R8(t,e),I8(t,[{key:"renderDots",value:function(n){var i=this.props,a=i.dot,o=i.dataKey,u=q(this.props,!1),c=q(a,!0),s=n.map(function(f,l){var h=De(De(De({key:"dot-".concat(l),r:3},u),c),{},{dataKey:o,cx:f.x,cy:f.y,index:l,payload:f});return t.renderDotItem(a,h)});return P.createElement(ee,{className:"recharts-radar-dots"},s)}},{key:"renderPolygonStatically",value:function(n){var i=this.props,a=i.shape,o=i.dot,u=i.isRange,c=i.baseLinePoints,s=i.connectNulls,f;return P.isValidElement(a)?f=P.cloneElement(a,De(De({},this.props),{},{points:n})):V(a)?f=a(De(De({},this.props),{},{points:n})):f=P.createElement(hm,Ka({},q(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:n,baseLinePoints:u?c:null,connectNulls:s})),P.createElement(ee,{className:"recharts-radar-polygon"},f,o?this.renderDots(n):null)}},{key:"renderPolygonWithAnimation",value:function(){var n=this,i=this.props,a=i.points,o=i.isAnimationActive,u=i.animationBegin,c=i.animationDuration,s=i.animationEasing,f=i.animationId,l=this.state.prevPoints;return P.createElement(rt,{begin:u,duration:c,isActive:o,easing:s,from:{t:0},to:{t:1},key:"radar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var p=h.t,v=l&&l.length/a.length,y=a.map(function(d,g){var x=l&&l[Math.floor(g*v)];if(x){var w=ve(x.x,d.x),O=ve(x.y,d.y);return De(De({},d),{},{x:w(p),y:O(p)})}var m=ve(d.cx,d.x),b=ve(d.cy,d.y);return De(De({},d),{},{x:m(p),y:b(p)})});return n.renderPolygonStatically(y)})}},{key:"renderPolygon",value:function(){var n=this.props,i=n.points,a=n.isAnimationActive,o=n.isRange,u=this.state.prevPoints;return a&&i&&i.length&&!o&&(!u||!Ut(u,i))?this.renderPolygonWithAnimation():this.renderPolygonStatically(i)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.className,o=n.points,u=n.isAnimationActive;if(i||!o||!o.length)return null;var c=this.state.isAnimationFinished,s=J("recharts-radar",a);return P.createElement(ee,{className:s},this.renderPolygon(),(!u||c)&&lt.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"renderDotItem",value:function(n,i){var a;if(P.isValidElement(n))a=P.cloneElement(n,i);else if(V(n))a=n(i);else{var o=i.key,u=j8(i,M8);a=P.createElement(Sn,Ka({},u,{key:o,className:J("recharts-radar-dot",typeof n!="boolean"?n.className:"")}))}return a}}])}(L.PureComponent);Ot(Ko,"displayName","Radar");Ot(Ko,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!It.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Ot(Ko,"getComposedData",function(e){var t=e.radiusAxis,r=e.angleAxis,n=e.displayedData,i=e.dataKey,a=e.bandSize,o=r.cx,u=r.cy,c=!1,s=[],f=r.type!=="number"?a??0:0;n.forEach(function(h,p){var v=me(h,r.dataKey,p),y=me(h,i),d=r.scale(v)+f,g=Array.isArray(y)?Qv(y):y,x=Z(g)?void 0:t.scale(g);Array.isArray(y)&&y.length>=2&&(c=!0),s.push(De(De({},ie(o,u,x,d)),{},{name:v,value:y,cx:o,cy:u,radius:x,angle:d,payload:h}))});var l=[];return c&&s.forEach(function(h){if(Array.isArray(h.value)){var p=T8(h.value),v=Z(p)?void 0:t.scale(p);l.push(De(De({},h),{},{radius:v},ie(o,u,v,h.angle)))}else l.push(h)}),{points:s,isRange:c,baseLinePoints:l}});var z8=Math.ceil,F8=Math.max;function W8(e,t,r,n){for(var i=-1,a=F8(z8((t-e)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=e,e+=r;return o}var U8=W8,H8=Ny,Np=1/0,q8=17976931348623157e292;function K8(e){if(!e)return e===0?e:0;if(e=H8(e),e===Np||e===-Np){var t=e<0?-1:1;return t*q8}return e===e?e:0}var Am=K8,V8=U8,G8=jo,Pu=Am;function X8(e){return function(t,r,n){return n&&typeof n!="number"&&G8(t,r,n)&&(r=n=void 0),t=Pu(t),r===void 0?(r=t,t=0):r=Pu(r),n=n===void 0?t<r?1:-1:Pu(n),V8(t,r,n,e)}}var Y8=X8,Z8=Y8,J8=Z8(),Q8=J8;const Ga=oe(Q8);function Ai(e){"@babel/helpers - typeof";return Ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ai(e)}function Lp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lp(Object(r),!0).forEach(function(n){Pm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Pm(e,t,r){return t=e5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function e5(e){var t=t5(e,"string");return Ai(t)=="symbol"?t:t+""}function t5(e,t){if(Ai(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ai(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var r5=["Webkit","Moz","O","ms"],n5=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=r5.reduce(function(a,o){return Rp(Rp({},a),{},Pm({},o+n,r))},{});return i[t]=r,i};function Qr(e){"@babel/helpers - typeof";return Qr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qr(e)}function Xa(){return Xa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xa.apply(this,arguments)}function Bp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Su(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bp(Object(r),!0).forEach(function(n){qe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function i5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_m(n.key),n)}}function a5(e,t,r){return t&&zp(e.prototype,t),r&&zp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function o5(e,t,r){return t=Ya(t),u5(e,Sm()?Reflect.construct(t,r||[],Ya(e).constructor):t.apply(e,r))}function u5(e,t){if(t&&(Qr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c5(e)}function c5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Sm=function(){return!!e})()}function Ya(e){return Ya=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ya(e)}function s5(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rc(e,t)}function Rc(e,t){return Rc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Rc(e,t)}function qe(e,t,r){return t=_m(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _m(e){var t=l5(e,"string");return Qr(t)=="symbol"?t:t+""}function l5(e,t){if(Qr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var f5=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,u=t.travellerWidth;if(!r||!r.length)return{};var c=r.length,s=zn().domain(Ga(0,c)).range([a,a+o-u]),f=s.domain().map(function(l){return s(l)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:s(n),endX:s(i),scale:s,scaleValues:f}},Fp=function(t){return t.changedTouches&&!!t.changedTouches.length},en=function(e){function t(r){var n;return i5(this,t),n=o5(this,t,[r]),qe(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),qe(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),qe(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o==null||o({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),qe(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),qe(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),qe(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),qe(n,"handleSlideDragStart",function(i){var a=Fp(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return s5(t,e),a5(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,u=this.props,c=u.gap,s=u.data,f=s.length-1,l=Math.min(i,a),h=Math.max(i,a),p=t.getIndexInRange(o,l),v=t.getIndexInRange(o,h);return{startIndex:p-p%c,endIndex:v===f?f:v-v%c}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,c=me(a[n],u,n);return V(o)?o(c,n):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,u=i.endX,c=this.props,s=c.x,f=c.width,l=c.travellerWidth,h=c.startIndex,p=c.endIndex,v=c.onChange,y=n.pageX-a;y>0?y=Math.min(y,s+f-l-u,s+f-l-o):y<0&&(y=Math.max(y,s-o,s-u));var d=this.getIndex({startX:o+y,endX:u+y});(d.startIndex!==h||d.endIndex!==p)&&v&&v(d),this.setState({startX:o+y,endX:u+y,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=Fp(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,u=i.endX,c=i.startX,s=this.state[o],f=this.props,l=f.x,h=f.width,p=f.travellerWidth,v=f.onChange,y=f.gap,d=f.data,g={startX:this.state.startX,endX:this.state.endX},x=n.pageX-a;x>0?x=Math.min(x,l+h-p-s):x<0&&(x=Math.max(x,l-s)),g[o]=s+x;var w=this.getIndex(g),O=w.startIndex,m=w.endIndex,b=function(){var S=d.length-1;return o==="startX"&&(u>c?O%y===0:m%y===0)||u<c&&m===S||o==="endX"&&(u>c?m%y===0:O%y===0)||u>c&&m===S};this.setState(qe(qe({},o,s+x),"brushMoveStartX",n.pageX),function(){v&&b()&&v(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,c=o.startX,s=o.endX,f=this.state[i],l=u.indexOf(f);if(l!==-1){var h=l+n;if(!(h===-1||h>=u.length)){var p=u[h];i==="startX"&&p>=s||i==="endX"&&p<=c||this.setState(qe({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.fill,s=n.stroke;return P.createElement("rect",{stroke:s,fill:c,x:i,y:a,width:o,height:u})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.data,s=n.children,f=n.padding,l=L.Children.only(s);return l?P.cloneElement(l,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,u=this,c=this.props,s=c.y,f=c.travellerWidth,l=c.height,h=c.traveller,p=c.ariaLabel,v=c.data,y=c.startIndex,d=c.endIndex,g=Math.max(n,this.props.x),x=Su(Su({},q(this.props,!1)),{},{x:g,y:s,width:f,height:l}),w=p||"Min value: ".concat((a=v[y])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=v[d])===null||o===void 0?void 0:o.name);return P.createElement(ee,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(m){["ArrowLeft","ArrowRight"].includes(m.key)&&(m.preventDefault(),m.stopPropagation(),u.handleTravellerMoveKeyboard(m.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,x))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,c=a.stroke,s=a.travellerWidth,f=Math.min(n,i)+s,l=Math.max(Math.abs(i-n)-s,0);return P.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:f,y:o,width:l,height:u})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,u=n.height,c=n.travellerWidth,s=n.stroke,f=this.state,l=f.startX,h=f.endX,p=5,v={pointerEvents:"none",fill:s};return P.createElement(ee,{className:"recharts-brush-texts"},P.createElement(yr,Xa({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,h)-p,y:o+u/2},v),this.getTextOfTick(i)),P.createElement(yr,Xa({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,h)+c+p,y:o+u/2},v),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,u=n.x,c=n.y,s=n.width,f=n.height,l=n.alwaysShowText,h=this.state,p=h.startX,v=h.endX,y=h.isTextActive,d=h.isSlideMoving,g=h.isTravellerMoving,x=h.isTravellerFocused;if(!i||!i.length||!B(u)||!B(c)||!B(s)||!B(f)||s<=0||f<=0)return null;var w=J("recharts-brush",a),O=P.Children.count(o)===1,m=n5("userSelect","none");return P.createElement(ee,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(p,v),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(v,"endX"),(y||d||g||x||l)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,c=n.stroke,s=Math.floor(a+u/2)-1;return P.createElement(P.Fragment,null,P.createElement("rect",{x:i,y:a,width:o,height:u,fill:c,stroke:"none"}),P.createElement("line",{x1:i+1,y1:s,x2:i+o-1,y2:s,fill:"none",stroke:"#fff"}),P.createElement("line",{x1:i+1,y1:s+2,x2:i+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return P.isValidElement(n)?a=P.cloneElement(n,i):V(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,u=n.x,c=n.travellerWidth,s=n.updateId,f=n.startIndex,l=n.endIndex;if(a!==i.prevData||s!==i.prevUpdateId)return Su({prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o},a&&a.length?f5({data:a,width:o,x:u,travellerWidth:c,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([u,u+o-c]);var h=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,u=a-1;u-o>1;){var c=Math.floor((o+u)/2);n[c]>i?u=c:o=c}return i>=n[u]?u:o}}])}(L.PureComponent);qe(en,"displayName","Brush");qe(en,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var h5=ks;function p5(e,t){var r;return h5(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var d5=p5,y5=sy,v5=gt,m5=d5,g5=We,b5=jo;function x5(e,t,r){var n=g5(e)?y5:m5;return r&&b5(e,t,r)&&(t=void 0),n(e,v5(t))}var w5=x5;const O5=oe(w5);var yt=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Wp=jy;function A5(e,t,r){t=="__proto__"&&Wp?Wp(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var P5=A5,S5=P5,_5=Ty,$5=gt;function k5(e,t){var r={};return t=$5(t),_5(e,function(n,i,a){S5(r,i,t(n,i,a))}),r}var T5=k5;const M5=oe(T5);function j5(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}var E5=j5,C5=ks;function I5(e,t){var r=!0;return C5(e,function(n,i,a){return r=!!t(n,i,a),r}),r}var D5=I5,N5=E5,L5=D5,R5=gt,B5=We,z5=jo;function F5(e,t,r){var n=B5(e)?N5:L5;return r&&z5(e,t,r)&&(t=void 0),n(e,R5(t))}var W5=F5;const $m=oe(W5);var U5=["x","y"];function Pi(e){"@babel/helpers - typeof";return Pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pi(e)}function Bc(){return Bc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bc.apply(this,arguments)}function Up(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ln(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Up(Object(r),!0).forEach(function(n){H5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Up(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function H5(e,t,r){return t=q5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q5(e){var t=K5(e,"string");return Pi(t)=="symbol"?t:t+""}function K5(e,t){if(Pi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function V5(e,t){if(e==null)return{};var r=G5(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function G5(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function X5(e,t){var r=e.x,n=e.y,i=V5(e,U5),a="".concat(r),o=parseInt(a,10),u="".concat(n),c=parseInt(u,10),s="".concat(t.height||i.height),f=parseInt(s,10),l="".concat(t.width||i.width),h=parseInt(l,10);return Ln(Ln(Ln(Ln(Ln({},t),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function Hp(e){return P.createElement(gm,Bc({shapeType:"rectangle",propTransformer:X5,activeClassName:"recharts-active-bar"},e))}var Y5=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=B(n)||X1(n);return a?t(n,i):(a||mr(),r)}},Z5=["value","background"],km;function tn(e){"@babel/helpers - typeof";return tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tn(e)}function J5(e,t){if(e==null)return{};var r=Q5(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Q5(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Za(){return Za=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Za.apply(this,arguments)}function qp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function we(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qp(Object(r),!0).forEach(function(n){Ft(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Mm(n.key),n)}}function tL(e,t,r){return t&&Kp(e.prototype,t),r&&Kp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function rL(e,t,r){return t=Ja(t),nL(e,Tm()?Reflect.construct(t,r||[],Ja(e).constructor):t.apply(e,r))}function nL(e,t){if(t&&(tn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iL(e)}function iL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Tm=function(){return!!e})()}function Ja(e){return Ja=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ja(e)}function aL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zc(e,t)}function zc(e,t){return zc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},zc(e,t)}function Ft(e,t,r){return t=Mm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mm(e){var t=oL(e,"string");return tn(t)=="symbol"?t:t+""}function oL(e,t){if(tn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(tn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _n=function(e){function t(){var r;eL(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=rL(this,t,[].concat(i)),Ft(r,"state",{isAnimationFinished:!1}),Ft(r,"id",xr("recharts-bar-")),Ft(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Ft(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return aL(t,e),tL(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.dataKey,c=a.activeIndex,s=a.activeBar,f=q(this.props,!1);return n&&n.map(function(l,h){var p=h===c,v=p?s:o,y=we(we(we({},f),l),{},{isActive:p,option:v,index:h,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return P.createElement(ee,Za({className:"recharts-bar-rectangle"},dr(i.props,l,h),{key:"rectangle-".concat(l==null?void 0:l.x,"-").concat(l==null?void 0:l.y,"-").concat(l==null?void 0:l.value,"-").concat(h)}),P.createElement(Hp,y))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,u=i.isAnimationActive,c=i.animationBegin,s=i.animationDuration,f=i.animationEasing,l=i.animationId,h=this.state.prevData;return P.createElement(rt,{begin:c,duration:s,isActive:u,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var v=p.t,y=a.map(function(d,g){var x=h&&h[g];if(x){var w=ve(x.x,d.x),O=ve(x.y,d.y),m=ve(x.width,d.width),b=ve(x.height,d.height);return we(we({},d),{},{x:w(v),y:O(v),width:m(v),height:b(v)})}if(o==="horizontal"){var A=ve(0,d.height),S=A(v);return we(we({},d),{},{y:d.y+d.height-S,height:S})}var _=ve(0,d.width),M=_(v);return we(we({},d),{},{width:M})});return P.createElement(ee,null,n.renderRectanglesStatically(y))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!Ut(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,u=i.activeIndex,c=q(this.props.background,!1);return a.map(function(s,f){s.value;var l=s.background,h=J5(s,Z5);if(!l)return null;var p=we(we(we(we(we({},h),{},{fill:"#eee"},l),c),dr(n.props,s,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return P.createElement(Hp,Za({key:"background-bar-".concat(f),option:n.props.background,isActive:f===u},p))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,u=a.xAxis,c=a.yAxis,s=a.layout,f=a.children,l=Xe(f,Di);if(!l)return null;var h=s==="vertical"?o[0].height/2:o[0].width/2,p=function(d,g){var x=Array.isArray(d.value)?d.value[1]:d.value;return{x:d.x,y:d.y,value:x,errorVal:me(d,g)}},v={clipPath:n?"url(#clipPath-".concat(i,")"):null};return P.createElement(ee,v,l.map(function(y){return P.cloneElement(y,{key:"error-bar-".concat(i,"-").concat(y.props.dataKey),data:o,xAxis:u,yAxis:c,layout:s,offset:h,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.xAxis,c=n.yAxis,s=n.left,f=n.top,l=n.width,h=n.height,p=n.isAnimationActive,v=n.background,y=n.id;if(i||!a||!a.length)return null;var d=this.state.isAnimationFinished,g=J("recharts-bar",o),x=u&&u.allowDataOverflow,w=c&&c.allowDataOverflow,O=x||w,m=Z(y)?this.id:y;return P.createElement(ee,{className:g},x||w?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(m)},P.createElement("rect",{x:x?s:s-l/2,y:w?f:f-h/2,width:x?l:l*2,height:w?h:h*2}))):null,P.createElement(ee,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(m,")"):null},v?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,m),(!p||d)&&lt.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])}(L.PureComponent);km=_n;Ft(_n,"displayName","Bar");Ft(_n,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!It.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Ft(_n,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,u=e.xAxisTicks,c=e.yAxisTicks,s=e.stackedData,f=e.dataStartIndex,l=e.displayedData,h=e.offset,p=pI(n,r);if(!p)return null;var v=t.layout,y=r.type.defaultProps,d=y!==void 0?we(we({},y),r.props):r.props,g=d.dataKey,x=d.children,w=d.minPointSize,O=v==="horizontal"?o:a,m=s?O.scale.domain():null,b=xI({numericAxis:O}),A=Xe(x,js),S=l.map(function(_,M){var $,T,E,I,C,D;s?$=dI(s[f+M],m):($=me(_,g),Array.isArray($)||($=[b,$]));var N=Y5(w,km.defaultProps.minPointSize)($[1],M);if(v==="horizontal"){var z,F=[o.scale($[0]),o.scale($[1])],K=F[0],X=F[1];T=Ch({axis:a,ticks:u,bandSize:i,offset:p.offset,entry:_,index:M}),E=(z=X??K)!==null&&z!==void 0?z:void 0,I=p.size;var U=K-X;if(C=Number.isNaN(U)?0:U,D={x:T,y:o.y,width:I,height:o.height},Math.abs(N)>0&&Math.abs(C)<Math.abs(N)){var Y=Ne(C||N)*(Math.abs(N)-Math.abs(C));E-=Y,C+=Y}}else{var he=[a.scale($[0]),a.scale($[1])],xe=he[0],Ue=he[1];if(T=xe,E=Ch({axis:o,ticks:c,bandSize:i,offset:p.offset,entry:_,index:M}),I=Ue-xe,C=p.size,D={x:a.x,y:E,width:a.width,height:C},Math.abs(N)>0&&Math.abs(I)<Math.abs(N)){var Xt=Ne(I||N)*(Math.abs(N)-Math.abs(I));I+=Xt}}return we(we(we({},_),{},{x:T,y:E,width:I,height:C,value:s?$:$[1],payload:_,background:D},A&&A[M]&&A[M].props),{},{tooltipPayload:[Vv(r,_)],tooltipPosition:{x:T+I/2,y:E+C/2}})});return we({data:S,layout:v},h)});function Si(e){"@babel/helpers - typeof";return Si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Si(e)}function uL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jm(n.key),n)}}function cL(e,t,r){return t&&Vp(e.prototype,t),r&&Vp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ot(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gp(Object(r),!0).forEach(function(n){Vo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Vo(e,t,r){return t=jm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jm(e){var t=sL(e,"string");return Si(t)=="symbol"?t:t+""}function sL(e,t){if(Si(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Si(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var il=function(t,r,n,i,a){var o=t.width,u=t.height,c=t.layout,s=t.children,f=Object.keys(r),l={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:u-n.bottom,bottomMirror:u-n.bottom},h=!!Ke(s,_n);return f.reduce(function(p,v){var y=r[v],d=y.orientation,g=y.domain,x=y.padding,w=x===void 0?{}:x,O=y.mirror,m=y.reversed,b="".concat(d).concat(O?"Mirror":""),A,S,_,M,$;if(y.type==="number"&&(y.padding==="gap"||y.padding==="no-gap")){var T=g[1]-g[0],E=1/0,I=y.categoricalDomain.sort(J1);if(I.forEach(function(he,xe){xe>0&&(E=Math.min((he||0)-(I[xe-1]||0),E))}),Number.isFinite(E)){var C=E/T,D=y.layout==="vertical"?n.height:n.width;if(y.padding==="gap"&&(A=C*D/2),y.padding==="no-gap"){var N=Le(t.barCategoryGap,C*D),z=C*D/2;A=z-N-(z-N)/D*N}}}i==="xAxis"?S=[n.left+(w.left||0)+(A||0),n.left+n.width-(w.right||0)-(A||0)]:i==="yAxis"?S=c==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(A||0),n.top+n.height-(w.bottom||0)-(A||0)]:S=y.range,m&&(S=[S[1],S[0]]);var F=Uv(y,a,h),K=F.scale,X=F.realScaleType;K.domain(g).range(S),Hv(K);var U=qv(K,ot(ot({},y),{},{realScaleType:X}));i==="xAxis"?($=d==="top"&&!O||d==="bottom"&&O,_=n.left,M=l[b]-$*y.height):i==="yAxis"&&($=d==="left"&&!O||d==="right"&&O,_=l[b]-$*y.width,M=n.top);var Y=ot(ot(ot({},y),U),{},{realScaleType:X,x:_,y:M,scale:K,width:i==="xAxis"?n.width:y.width,height:i==="yAxis"?n.height:y.height});return Y.bandSize=Ca(Y,U),!y.hide&&i==="xAxis"?l[b]+=($?-1:1)*Y.height:y.hide||(l[b]+=($?-1:1)*Y.width),ot(ot({},p),{},Vo({},v,Y))},{})},Em=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},lL=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return Em({x:r,y:n},{x:i,y:a})},Cm=function(){function e(t){uL(this,e),this.scale=t}return cL(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(r)+u}default:return this.scale(r)}if(i){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+c}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])}();Vo(Cm,"EPS",1e-4);var al=function(t){var r=Object.keys(t).reduce(function(n,i){return ot(ot({},n),{},Vo({},i,Cm.create(t[i])))},{});return ot(ot({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return M5(i,function(c,s){return r[s].apply(c,{bandAware:o,position:u})})},isInRange:function(i){return $m(i,function(a,o){return r[o].isInRange(a)})}})};function fL(e){return(e%180+180)%180}var hL=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=fL(i),o=a*Math.PI/180,u=Math.atan(n/r),c=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(c)},pL=gt,dL=Mi,yL=To;function vL(e){return function(t,r,n){var i=Object(t);if(!dL(t)){var a=pL(r);t=yL(t),r=function(u){return a(i[u],u,i)}}var o=e(t,r,n);return o>-1?i[a?t[o]:o]:void 0}}var mL=vL,gL=Am;function bL(e){var t=gL(e),r=t%1;return t===t?r?t-r:t:0}var xL=bL,wL=Ay,OL=gt,AL=xL,PL=Math.max;function SL(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:AL(r);return i<0&&(i=PL(n+i,0)),wL(e,OL(t),i)}var _L=SL,$L=mL,kL=_L,TL=$L(kL),ML=TL;const jL=oe(ML);var EL=t1(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),ol=L.createContext(void 0),ul=L.createContext(void 0),Im=L.createContext(void 0),Dm=L.createContext({}),Nm=L.createContext(void 0),Lm=L.createContext(0),Rm=L.createContext(0),Xp=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,u=t.children,c=t.width,s=t.height,f=EL(a);return P.createElement(ol.Provider,{value:n},P.createElement(ul.Provider,{value:i},P.createElement(Dm.Provider,{value:a},P.createElement(Im.Provider,{value:f},P.createElement(Nm.Provider,{value:o},P.createElement(Lm.Provider,{value:s},P.createElement(Rm.Provider,{value:c},u)))))))},CL=function(){return L.useContext(Nm)},Bm=function(t){var r=L.useContext(ol);r==null&&mr();var n=r[t];return n==null&&mr(),n},IL=function(){var t=L.useContext(ol);return Bt(t)},DL=function(){var t=L.useContext(ul),r=jL(t,function(n){return $m(n.domain,Number.isFinite)});return r||Bt(t)},zm=function(t){var r=L.useContext(ul);r==null&&mr();var n=r[t];return n==null&&mr(),n},NL=function(){var t=L.useContext(Im);return t},LL=function(){return L.useContext(Dm)},cl=function(){return L.useContext(Rm)},sl=function(){return L.useContext(Lm)};function rn(e){"@babel/helpers - typeof";return rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rn(e)}function RL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BL(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Wm(n.key),n)}}function zL(e,t,r){return t&&BL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function FL(e,t,r){return t=Qa(t),WL(e,Fm()?Reflect.construct(t,r||[],Qa(e).constructor):t.apply(e,r))}function WL(e,t){if(t&&(rn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return UL(e)}function UL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Fm=function(){return!!e})()}function Qa(e){return Qa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qa(e)}function HL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fc(e,t)}function Fc(e,t){return Fc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Fc(e,t)}function Yp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yp(Object(r),!0).forEach(function(n){ll(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ll(e,t,r){return t=Wm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wm(e){var t=qL(e,"string");return rn(t)=="symbol"?t:t+""}function qL(e,t){if(rn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(rn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function KL(e,t){return YL(e)||XL(e,t)||GL(e,t)||VL()}function VL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GL(e,t){if(e){if(typeof e=="string")return Jp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Jp(e,t)}}function Jp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function XL(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function YL(e){if(Array.isArray(e))return e}function Wc(){return Wc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wc.apply(this,arguments)}var ZL=function(t,r){var n;return P.isValidElement(t)?n=P.cloneElement(t,r):V(t)?n=t(r):n=P.createElement("line",Wc({},r,{className:"recharts-reference-line-line"})),n},JL=function(t,r,n,i,a,o,u,c,s){var f=a.x,l=a.y,h=a.width,p=a.height;if(n){var v=s.y,y=t.y.apply(v,{position:o});if(yt(s,"discard")&&!t.y.isInRange(y))return null;var d=[{x:f+h,y},{x:f,y}];return c==="left"?d.reverse():d}if(r){var g=s.x,x=t.x.apply(g,{position:o});if(yt(s,"discard")&&!t.x.isInRange(x))return null;var w=[{x,y:l+p},{x,y:l}];return u==="top"?w.reverse():w}if(i){var O=s.segment,m=O.map(function(b){return t.apply(b,{position:o})});return yt(s,"discard")&&O5(m,function(b){return!t.isInRange(b)})?null:m}return null};function QL(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,u=e.className,c=e.alwaysShow,s=CL(),f=Bm(i),l=zm(a),h=NL();if(!s||!h)return null;st(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=al({x:f.scale,y:l.scale}),v=$e(t),y=$e(r),d=n&&n.length===2,g=JL(p,v,y,d,h,e.position,f.orientation,l.orientation,e);if(!g)return null;var x=KL(g,2),w=x[0],O=w.x,m=w.y,b=x[1],A=b.x,S=b.y,_=yt(e,"hidden")?"url(#".concat(s,")"):void 0,M=Zp(Zp({clipPath:_},q(e,!0)),{},{x1:O,y1:m,x2:A,y2:S});return P.createElement(ee,{className:J("recharts-reference-line",u)},ZL(o,M),Me.renderCallByParent(e,lL({x1:O,y1:m,x2:A,y2:S})))}var fl=function(e){function t(){return RL(this,t),FL(this,t,arguments)}return HL(t,e),zL(t,[{key:"render",value:function(){return P.createElement(QL,this.props)}}])}(P.Component);ll(fl,"displayName","ReferenceLine");ll(fl,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Uc(){return Uc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Uc.apply(this,arguments)}function nn(e){"@babel/helpers - typeof";return nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nn(e)}function Qp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ed(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qp(Object(r),!0).forEach(function(n){Go(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function e6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t6(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Hm(n.key),n)}}function r6(e,t,r){return t&&t6(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function n6(e,t,r){return t=eo(t),i6(e,Um()?Reflect.construct(t,r||[],eo(e).constructor):t.apply(e,r))}function i6(e,t){if(t&&(nn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return a6(e)}function a6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Um(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Um=function(){return!!e})()}function eo(e){return eo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},eo(e)}function o6(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hc(e,t)}function Hc(e,t){return Hc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Hc(e,t)}function Go(e,t,r){return t=Hm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hm(e){var t=u6(e,"string");return nn(t)=="symbol"?t:t+""}function u6(e,t){if(nn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(nn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var c6=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=al({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return yt(t,"discard")&&!o.isInRange(u)?null:u},Xo=function(e){function t(){return e6(this,t),n6(this,t,arguments)}return o6(t,e),r6(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,u=n.alwaysShow,c=n.clipPathId,s=$e(i),f=$e(a);if(st(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!f)return null;var l=c6(this.props);if(!l)return null;var h=l.x,p=l.y,v=this.props,y=v.shape,d=v.className,g=yt(this.props,"hidden")?"url(#".concat(c,")"):void 0,x=ed(ed({clipPath:g},q(this.props,!0)),{},{cx:h,cy:p});return P.createElement(ee,{className:J("recharts-reference-dot",d)},t.renderDot(y,x),Me.renderCallByParent(this.props,{x:h-o,y:p-o,width:2*o,height:2*o}))}}])}(P.Component);Go(Xo,"displayName","ReferenceDot");Go(Xo,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Go(Xo,"renderDot",function(e,t){var r;return P.isValidElement(e)?r=P.cloneElement(e,t):V(e)?r=e(t):r=P.createElement(Sn,Uc({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function qc(){return qc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qc.apply(this,arguments)}function an(e){"@babel/helpers - typeof";return an=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},an(e)}function td(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?td(Object(r),!0).forEach(function(n){Yo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):td(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function s6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l6(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Km(n.key),n)}}function f6(e,t,r){return t&&l6(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function h6(e,t,r){return t=to(t),p6(e,qm()?Reflect.construct(t,r||[],to(e).constructor):t.apply(e,r))}function p6(e,t){if(t&&(an(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d6(e)}function d6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qm=function(){return!!e})()}function to(e){return to=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},to(e)}function y6(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kc(e,t)}function Kc(e,t){return Kc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Kc(e,t)}function Yo(e,t,r){return t=Km(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Km(e){var t=v6(e,"string");return an(t)=="symbol"?t:t+""}function v6(e,t){if(an(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(an(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var m6=function(t,r,n,i,a){var o=a.x1,u=a.x2,c=a.y1,s=a.y2,f=a.xAxis,l=a.yAxis;if(!f||!l)return null;var h=al({x:f.scale,y:l.scale}),p={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:n?h.y.apply(c,{position:"start"}):h.y.rangeMin},v={x:r?h.x.apply(u,{position:"end"}):h.x.rangeMax,y:i?h.y.apply(s,{position:"end"}):h.y.rangeMax};return yt(a,"discard")&&(!h.isInRange(p)||!h.isInRange(v))?null:Em(p,v)},Zo=function(e){function t(){return s6(this,t),h6(this,t,arguments)}return y6(t,e),f6(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,u=n.y2,c=n.className,s=n.alwaysShow,f=n.clipPathId;st(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=$e(i),h=$e(a),p=$e(o),v=$e(u),y=this.props.shape;if(!l&&!h&&!p&&!v&&!y)return null;var d=m6(l,h,p,v,this.props);if(!d&&!y)return null;var g=yt(this.props,"hidden")?"url(#".concat(f,")"):void 0;return P.createElement(ee,{className:J("recharts-reference-area",c)},t.renderRect(y,rd(rd({clipPath:g},q(this.props,!0)),d)),Me.renderCallByParent(this.props,d))}}])}(P.Component);Yo(Zo,"displayName","ReferenceArea");Yo(Zo,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Yo(Zo,"renderRect",function(e,t){var r;return P.isValidElement(e)?r=P.cloneElement(e,t):V(e)?r=e(t):r=P.createElement(nl,qc({},t,{className:"recharts-reference-area-rect"})),r});function Vm(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function g6(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return hL(n,r)}function b6(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,u=e.height;return t===1?{start:n?i:a,end:n?i+o:a+u}:{start:n?i+o:a+u,end:n?i:a}}function ro(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function x6(e,t){return Vm(e,t+1)}function w6(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,u=t.end,c=0,s=1,f=o,l=function(){var v=n==null?void 0:n[c];if(v===void 0)return{v:Vm(n,s)};var y=c,d,g=function(){return d===void 0&&(d=r(v,y)),d},x=v.coordinate,w=c===0||ro(e,x,g,f,u);w||(c=0,f=o,s+=1),w&&(f=x+e*(g()/2+i),c+=s)},h;s<=a.length;)if(h=l(),h)return h.v;return[]}function _i(e){"@babel/helpers - typeof";return _i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_i(e)}function nd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ce(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nd(Object(r),!0).forEach(function(n){O6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function O6(e,t,r){return t=A6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A6(e){var t=P6(e,"string");return _i(t)=="symbol"?t:t+""}function P6(e,t){if(_i(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_i(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function S6(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=t.start,c=t.end,s=function(h){var p=a[h],v,y=function(){return v===void 0&&(v=r(p,h)),v};if(h===o-1){var d=e*(p.coordinate+e*y()/2-c);a[h]=p=Ce(Ce({},p),{},{tickCoord:d>0?p.coordinate-d*e:p.coordinate})}else a[h]=p=Ce(Ce({},p),{},{tickCoord:p.coordinate});var g=ro(e,p.tickCoord,y,u,c);g&&(c=p.tickCoord-e*(y()/2+i),a[h]=Ce(Ce({},p),{},{isShow:!0}))},f=o-1;f>=0;f--)s(f);return a}function _6(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,c=t.start,s=t.end;if(a){var f=n[u-1],l=r(f,u-1),h=e*(f.coordinate+e*l/2-s);o[u-1]=f=Ce(Ce({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var p=ro(e,f.tickCoord,function(){return l},c,s);p&&(s=f.tickCoord-e*(l/2+i),o[u-1]=Ce(Ce({},f),{},{isShow:!0}))}for(var v=a?u-1:u,y=function(x){var w=o[x],O,m=function(){return O===void 0&&(O=r(w,x)),O};if(x===0){var b=e*(w.coordinate-e*m()/2-c);o[x]=w=Ce(Ce({},w),{},{tickCoord:b<0?w.coordinate-b*e:w.coordinate})}else o[x]=w=Ce(Ce({},w),{},{tickCoord:w.coordinate});var A=ro(e,w.tickCoord,m,c,s);A&&(c=w.tickCoord+e*(m()/2+i),o[x]=Ce(Ce({},w),{},{isShow:!0}))},d=0;d<v;d++)y(d);return o}function hl(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,u=e.orientation,c=e.interval,s=e.tickFormatter,f=e.unit,l=e.angle;if(!i||!i.length||!n)return[];if(B(c)||It.isSsr)return x6(i,typeof c=="number"&&B(c)?c:0);var h=[],p=u==="top"||u==="bottom"?"width":"height",v=f&&p==="width"?Bn(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},y=function(w,O){var m=V(s)?s(w.value,O):w.value;return p==="width"?g6(Bn(m,{fontSize:t,letterSpacing:r}),v,l):Bn(m,{fontSize:t,letterSpacing:r})[p]},d=i.length>=2?Ne(i[1].coordinate-i[0].coordinate):1,g=b6(a,d,p);return c==="equidistantPreserveStart"?w6(d,g,y,i,o):(c==="preserveStart"||c==="preserveStartEnd"?h=_6(d,g,y,i,o,c==="preserveStartEnd"):h=S6(d,g,y,i,o),h.filter(function(x){return x.isShow}))}var $6=["viewBox"],k6=["viewBox"],T6=["ticks"];function on(e){"@babel/helpers - typeof";return on=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},on(e)}function Cr(){return Cr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cr.apply(this,arguments)}function id(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Se(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?id(Object(r),!0).forEach(function(n){pl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):id(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _u(e,t){if(e==null)return{};var r=M6(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function M6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function j6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ad(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Xm(n.key),n)}}function E6(e,t,r){return t&&ad(e.prototype,t),r&&ad(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function C6(e,t,r){return t=no(t),I6(e,Gm()?Reflect.construct(t,r||[],no(e).constructor):t.apply(e,r))}function I6(e,t){if(t&&(on(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return D6(e)}function D6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Gm=function(){return!!e})()}function no(e){return no=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},no(e)}function N6(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vc(e,t)}function Vc(e,t){return Vc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Vc(e,t)}function pl(e,t,r){return t=Xm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xm(e){var t=L6(e,"string");return on(t)=="symbol"?t:t+""}function L6(e,t){if(on(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(on(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $n=function(e){function t(r){var n;return j6(this,t),n=C6(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return N6(t,e),E6(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=_u(n,$6),u=this.props,c=u.viewBox,s=_u(u,k6);return!Dr(a,c)||!Dr(o,s)||!Dr(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,u=i.width,c=i.height,s=i.orientation,f=i.tickSize,l=i.mirror,h=i.tickMargin,p,v,y,d,g,x,w=l?-1:1,O=n.tickSize||f,m=B(n.tickCoord)?n.tickCoord:n.coordinate;switch(s){case"top":p=v=n.coordinate,d=o+ +!l*c,y=d-w*O,x=y-w*h,g=m;break;case"left":y=d=n.coordinate,v=a+ +!l*u,p=v-w*O,g=p-w*h,x=m;break;case"right":y=d=n.coordinate,v=a+ +l*u,p=v+w*O,g=p+w*h,x=m;break;default:p=v=n.coordinate,d=o+ +l*c,y=d+w*O,x=y+w*h,g=m;break}return{line:{x1:p,y1:y,x2:v,y2:d},tick:{x:g,y:x}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.orientation,s=n.mirror,f=n.axisLine,l=Se(Se(Se({},q(this.props,!1)),q(f,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var h=+(c==="top"&&!s||c==="bottom"&&s);l=Se(Se({},l),{},{x1:i,y1:a+h*u,x2:i+o,y2:a+h*u})}else{var p=+(c==="left"&&!s||c==="right"&&s);l=Se(Se({},l),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+u})}return P.createElement("line",Cr({},l,{className:J("recharts-cartesian-axis-line",Ge(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,u=this.props,c=u.tickLine,s=u.stroke,f=u.tick,l=u.tickFormatter,h=u.unit,p=hl(Se(Se({},this.props),{},{ticks:n}),i,a),v=this.getTickTextAnchor(),y=this.getTickVerticalAnchor(),d=q(this.props,!1),g=q(f,!1),x=Se(Se({},d),{},{fill:"none"},q(c,!1)),w=p.map(function(O,m){var b=o.getTickLineCoord(O),A=b.line,S=b.tick,_=Se(Se(Se(Se({textAnchor:v,verticalAnchor:y},d),{},{stroke:"none",fill:s},g),S),{},{index:m,payload:O,visibleTicksCount:p.length,tickFormatter:l});return P.createElement(ee,Cr({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},dr(o.props,O,m)),c&&P.createElement("line",Cr({},x,A,{className:J("recharts-cartesian-axis-tick-line",Ge(c,"className"))})),f&&t.renderTickItem(f,_,"".concat(V(l)?l(O.value,m):O.value).concat(h||"")))});return P.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,u=i.height,c=i.ticksGenerator,s=i.className,f=i.hide;if(f)return null;var l=this.props,h=l.ticks,p=_u(l,T6),v=h;return V(c)&&(v=h&&h.length>0?c(this.props):c(p)),o<=0||u<=0||!v||!v.length?null:P.createElement(ee,{className:J("recharts-cartesian-axis",s),ref:function(d){n.layerReference=d}},a&&this.renderAxisLine(),this.renderTicks(v,this.state.fontSize,this.state.letterSpacing),Me.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,u=J(i.className,"recharts-cartesian-axis-tick-value");return P.isValidElement(n)?o=P.cloneElement(n,Se(Se({},i),{},{className:u})):V(n)?o=n(Se(Se({},i),{},{className:u})):o=P.createElement(yr,Cr({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(L.Component);pl($n,"displayName","CartesianAxis");pl($n,"defaultProps",{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"});var R6=["x1","y1","x2","y2","key"],B6=["offset"];function gr(e){"@babel/helpers - typeof";return gr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gr(e)}function od(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?od(Object(r),!0).forEach(function(n){z6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):od(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function z6(e,t,r){return t=F6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F6(e){var t=W6(e,"string");return gr(t)=="symbol"?t:t+""}function W6(e,t){if(gr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cr(){return cr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cr.apply(this,arguments)}function ud(e,t){if(e==null)return{};var r=U6(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function U6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var H6=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,u=t.height,c=t.ry;return P.createElement("rect",{x:i,y:a,ry:c,width:o,height:u,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function Ym(e,t){var r;if(P.isValidElement(e))r=P.cloneElement(e,t);else if(V(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,u=t.key,c=ud(t,R6),s=q(c,!1);s.offset;var f=ud(s,B6);r=P.createElement("line",cr({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function q6(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,c){var s=Ie(Ie({},e),{},{x1:t,y1:u,x2:t+r,y2:u,key:"line-".concat(c),index:c});return Ym(i,s)});return P.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function K6(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,c){var s=Ie(Ie({},e),{},{x1:u,y1:t,x2:u,y2:t+r,key:"line-".concat(c),index:c});return Ym(i,s)});return P.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function V6(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,u=e.horizontalPoints,c=e.horizontal,s=c===void 0?!0:c;if(!s||!t||!t.length)return null;var f=u.map(function(h){return Math.round(h+i-i)}).sort(function(h,p){return h-p});i!==f[0]&&f.unshift(0);var l=f.map(function(h,p){var v=!f[p+1],y=v?i+o-h:f[p+1]-h;if(y<=0)return null;var d=p%t.length;return P.createElement("rect",{key:"react-".concat(p),y:h,x:n,height:y,width:a,stroke:"none",fill:t[d],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return P.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function G6(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,u=e.width,c=e.height,s=e.verticalPoints;if(!r||!n||!n.length)return null;var f=s.map(function(h){return Math.round(h+a-a)}).sort(function(h,p){return h-p});a!==f[0]&&f.unshift(0);var l=f.map(function(h,p){var v=!f[p+1],y=v?a+u-h:f[p+1]-h;if(y<=0)return null;var d=p%n.length;return P.createElement("rect",{key:"react-".concat(p),x:h,y:o,width:y,height:c,stroke:"none",fill:n[d],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return P.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var X6=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return Wv(hl(Ie(Ie(Ie({},$n.defaultProps),n),{},{ticks:St(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},Y6=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return Wv(hl(Ie(Ie(Ie({},$n.defaultProps),n),{},{ticks:St(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},kr={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Z6(e){var t,r,n,i,a,o,u=cl(),c=sl(),s=LL(),f=Ie(Ie({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:kr.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:kr.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:kr.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:kr.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:kr.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:kr.verticalFill,x:B(e.x)?e.x:s.left,y:B(e.y)?e.y:s.top,width:B(e.width)?e.width:s.width,height:B(e.height)?e.height:s.height}),l=f.x,h=f.y,p=f.width,v=f.height,y=f.syncWithTicks,d=f.horizontalValues,g=f.verticalValues,x=IL(),w=DL();if(!B(p)||p<=0||!B(v)||v<=0||!B(l)||l!==+l||!B(h)||h!==+h)return null;var O=f.verticalCoordinatesGenerator||X6,m=f.horizontalCoordinatesGenerator||Y6,b=f.horizontalPoints,A=f.verticalPoints;if((!b||!b.length)&&V(m)){var S=d&&d.length,_=m({yAxis:w?Ie(Ie({},w),{},{ticks:S?d:w.ticks}):void 0,width:u,height:c,offset:s},S?!0:y);st(Array.isArray(_),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(gr(_),"]")),Array.isArray(_)&&(b=_)}if((!A||!A.length)&&V(O)){var M=g&&g.length,$=O({xAxis:x?Ie(Ie({},x),{},{ticks:M?g:x.ticks}):void 0,width:u,height:c,offset:s},M?!0:y);st(Array.isArray($),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(gr($),"]")),Array.isArray($)&&(A=$)}return P.createElement("g",{className:"recharts-cartesian-grid"},P.createElement(H6,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),P.createElement(q6,cr({},f,{offset:s,horizontalPoints:b,xAxis:x,yAxis:w})),P.createElement(K6,cr({},f,{offset:s,verticalPoints:A,xAxis:x,yAxis:w})),P.createElement(V6,cr({},f,{horizontalPoints:b})),P.createElement(G6,cr({},f,{verticalPoints:A})))}Z6.displayName="CartesianGrid";var J6=["type","layout","connectNulls","ref"],Q6=["key"];function un(e){"@babel/helpers - typeof";return un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},un(e)}function cd(e,t){if(e==null)return{};var r=eR(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function eR(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function qn(){return qn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qn.apply(this,arguments)}function sd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function He(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sd(Object(r),!0).forEach(function(n){ut(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tr(e){return iR(e)||nR(e)||rR(e)||tR()}function tR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rR(e,t){if(e){if(typeof e=="string")return Gc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Gc(e,t)}}function nR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iR(e){if(Array.isArray(e))return Gc(e)}function Gc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function aR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ld(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Jm(n.key),n)}}function oR(e,t,r){return t&&ld(e.prototype,t),r&&ld(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function uR(e,t,r){return t=io(t),cR(e,Zm()?Reflect.construct(t,r||[],io(e).constructor):t.apply(e,r))}function cR(e,t){if(t&&(un(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sR(e)}function sR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Zm=function(){return!!e})()}function io(e){return io=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},io(e)}function lR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xc(e,t)}function Xc(e,t){return Xc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Xc(e,t)}function ut(e,t,r){return t=Jm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jm(e){var t=fR(e,"string");return un(t)=="symbol"?t:t+""}function fR(e,t){if(un(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Jo=function(e){function t(){var r;aR(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=uR(this,t,[].concat(i)),ut(r,"state",{isAnimationFinished:!0,totalLength:0}),ut(r,"generateSimpleStrokeDasharray",function(o,u){return"".concat(u,"px ").concat(o-u,"px")}),ut(r,"getStrokeDasharray",function(o,u,c){var s=c.reduce(function(g,x){return g+x});if(!s)return r.generateSimpleStrokeDasharray(u,o);for(var f=Math.floor(o/s),l=o%s,h=u-o,p=[],v=0,y=0;v<c.length;y+=c[v],++v)if(y+c[v]>l){p=[].concat(Tr(c.slice(0,v)),[l-y]);break}var d=p.length%2===0?[0,h]:[h];return[].concat(Tr(t.repeat(c,f)),Tr(p),d).map(function(g){return"".concat(g,"px")}).join(", ")}),ut(r,"id",xr("recharts-line-")),ut(r,"pathRef",function(o){r.mainCurve=o}),ut(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),ut(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return lR(t,e),oR(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,u=a.xAxis,c=a.yAxis,s=a.layout,f=a.children,l=Xe(f,Di);if(!l)return null;var h=function(y,d){return{x:y.x,y:y.y,value:y.value,errorVal:me(y.payload,d)}},p={clipPath:n?"url(#clipPath-".concat(i,")"):null};return P.createElement(ee,p,l.map(function(v){return P.cloneElement(v,{key:"bar-".concat(v.props.dataKey),data:o,xAxis:u,yAxis:c,layout:s,dataPointFormatter:h})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var u=this.props,c=u.dot,s=u.points,f=u.dataKey,l=q(this.props,!1),h=q(c,!0),p=s.map(function(y,d){var g=He(He(He({key:"dot-".concat(d),r:3},l),h),{},{index:d,cx:y.x,cy:y.y,value:y.value,dataKey:f,payload:y.payload,points:s});return t.renderDotItem(c,g)}),v={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return P.createElement(ee,qn({className:"recharts-line-dots",key:"dots"},v),p)}},{key:"renderCurveStatically",value:function(n,i,a,o){var u=this.props,c=u.type,s=u.layout,f=u.connectNulls;u.ref;var l=cd(u,J6),h=He(He(He({},q(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:c,layout:s,connectNulls:f});return P.createElement(hr,qn({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,c=o.strokeDasharray,s=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,h=o.animationEasing,p=o.animationId,v=o.animateNewValues,y=o.width,d=o.height,g=this.state,x=g.prevPoints,w=g.totalLength;return P.createElement(rt,{begin:f,duration:l,isActive:s,easing:h,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(O){var m=O.t;if(x){var b=x.length/u.length,A=u.map(function(T,E){var I=Math.floor(E*b);if(x[I]){var C=x[I],D=ve(C.x,T.x),N=ve(C.y,T.y);return He(He({},T),{},{x:D(m),y:N(m)})}if(v){var z=ve(y*2,T.x),F=ve(d/2,T.y);return He(He({},T),{},{x:z(m),y:F(m)})}return He(He({},T),{},{x:T.x,y:T.y})});return a.renderCurveStatically(A,n,i)}var S=ve(0,w),_=S(m),M;if(c){var $="".concat(c).split(/[,\s]+/gim).map(function(T){return parseFloat(T)});M=a.getStrokeDasharray(_,w,$)}else M=a.generateSimpleStrokeDasharray(w,_);return a.renderCurveStatically(u,n,i,{strokeDasharray:M})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,u=a.isAnimationActive,c=this.state,s=c.prevPoints,f=c.totalLength;return u&&o&&o.length&&(!s&&f>0||!Ut(s,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,c=i.className,s=i.xAxis,f=i.yAxis,l=i.top,h=i.left,p=i.width,v=i.height,y=i.isAnimationActive,d=i.id;if(a||!u||!u.length)return null;var g=this.state.isAnimationFinished,x=u.length===1,w=J("recharts-line",c),O=s&&s.allowDataOverflow,m=f&&f.allowDataOverflow,b=O||m,A=Z(d)?this.id:d,S=(n=q(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},_=S.r,M=_===void 0?3:_,$=S.strokeWidth,T=$===void 0?2:$,E=Id(o)?o:{},I=E.clipDot,C=I===void 0?!0:I,D=M*2+T;return P.createElement(ee,{className:w},O||m?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(A)},P.createElement("rect",{x:O?h:h-p/2,y:m?l:l-v/2,width:O?p:p*2,height:m?v:v*2})),!C&&P.createElement("clipPath",{id:"clipPath-dots-".concat(A)},P.createElement("rect",{x:h-D/2,y:l-D/2,width:p+D,height:v+D}))):null,!x&&this.renderCurve(b,A),this.renderErrorBar(b,A),(x||o)&&this.renderDots(b,C,A),(!y||g)&&lt.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(Tr(n),[0]):n,o=[],u=0;u<i;++u)o=[].concat(Tr(o),Tr(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(P.isValidElement(n))a=P.cloneElement(n,i);else if(V(n))a=n(i);else{var o=i.key,u=cd(i,Q6),c=J("recharts-line-dot",typeof n!="boolean"?n.className:"");a=P.createElement(Sn,qn({key:o},u,{className:c}))}return a}}])}(L.PureComponent);ut(Jo,"displayName","Line");ut(Jo,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!It.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});ut(Jo,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,u=e.bandSize,c=e.displayedData,s=e.offset,f=t.layout,l=c.map(function(h,p){var v=me(h,o);return f==="horizontal"?{x:Ea({axis:r,ticks:i,bandSize:u,entry:h,index:p}),y:Z(v)?null:n.scale(v),value:v,payload:h}:{x:Z(v)?null:r.scale(v),y:Ea({axis:n,ticks:a,bandSize:u,entry:h,index:p}),value:v,payload:h}});return He({points:l,layout:f},s)});var hR=["layout","type","stroke","connectNulls","isRange","ref"],pR=["key"],Qm;function cn(e){"@babel/helpers - typeof";return cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cn(e)}function eg(e,t){if(e==null)return{};var r=dR(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function dR(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function sr(){return sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sr.apply(this,arguments)}function fd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Lt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fd(Object(r),!0).forEach(function(n){pt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,rg(n.key),n)}}function vR(e,t,r){return t&&hd(e.prototype,t),r&&hd(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function mR(e,t,r){return t=ao(t),gR(e,tg()?Reflect.construct(t,r||[],ao(e).constructor):t.apply(e,r))}function gR(e,t){if(t&&(cn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bR(e)}function bR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tg=function(){return!!e})()}function ao(e){return ao=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ao(e)}function xR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yc(e,t)}function Yc(e,t){return Yc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Yc(e,t)}function pt(e,t,r){return t=rg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rg(e){var t=wR(e,"string");return cn(t)=="symbol"?t:t+""}function wR(e,t){if(cn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Pr=function(e){function t(){var r;yR(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=mR(this,t,[].concat(i)),pt(r,"state",{isAnimationFinished:!0}),pt(r,"id",xr("recharts-area-")),pt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),V(o)&&o()}),pt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),V(o)&&o()}),r}return xR(t,e),vR(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,u=this.state.isAnimationFinished;if(o&&!u)return null;var c=this.props,s=c.dot,f=c.points,l=c.dataKey,h=q(this.props,!1),p=q(s,!0),v=f.map(function(d,g){var x=Lt(Lt(Lt({key:"dot-".concat(g),r:3},h),p),{},{index:g,cx:d.x,cy:d.y,dataKey:l,value:d.value,payload:d.payload,points:f});return t.renderDotItem(s,x)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return P.createElement(ee,sr({className:"recharts-area-dots"},y),v)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,c=o[0].x,s=o[o.length-1].x,f=n*Math.abs(c-s),l=zt(o.map(function(h){return h.y||0}));return B(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(zt(a.map(function(h){return h.y||0})),l)),B(l)?P.createElement("rect",{x:c<s?c:c-f,y:0,width:f,height:Math.floor(l+(u?parseInt("".concat(u),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,c=o[0].y,s=o[o.length-1].y,f=n*Math.abs(c-s),l=zt(o.map(function(h){return h.x||0}));return B(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(zt(a.map(function(h){return h.x||0})),l)),B(l)?P.createElement("rect",{x:0,y:c<s?c:c-f,width:l+(u?parseInt("".concat(u),10):1),height:Math.floor(f)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var u=this.props,c=u.layout,s=u.type,f=u.stroke,l=u.connectNulls,h=u.isRange;u.ref;var p=eg(u,hR);return P.createElement(ee,{clipPath:a?"url(#clipPath-".concat(o,")"):null},P.createElement(hr,sr({},q(p,!0),{points:n,connectNulls:l,type:s,baseLine:i,layout:c,stroke:"none",className:"recharts-area-area"})),f!=="none"&&P.createElement(hr,sr({},q(this.props,!1),{className:"recharts-area-curve",layout:c,type:s,connectNulls:l,fill:"none",points:n})),f!=="none"&&h&&P.createElement(hr,sr({},q(this.props,!1),{className:"recharts-area-curve",layout:c,type:s,connectNulls:l,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,c=o.baseLine,s=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,h=o.animationEasing,p=o.animationId,v=this.state,y=v.prevPoints,d=v.prevBaseLine;return P.createElement(rt,{begin:f,duration:l,isActive:s,easing:h,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(g){var x=g.t;if(y){var w=y.length/u.length,O=u.map(function(S,_){var M=Math.floor(_*w);if(y[M]){var $=y[M],T=ve($.x,S.x),E=ve($.y,S.y);return Lt(Lt({},S),{},{x:T(x),y:E(x)})}return S}),m;if(B(c)&&typeof c=="number"){var b=ve(d,c);m=b(x)}else if(Z(c)||gn(c)){var A=ve(d,0);m=A(x)}else m=c.map(function(S,_){var M=Math.floor(_*w);if(d[M]){var $=d[M],T=ve($.x,S.x),E=ve($.y,S.y);return Lt(Lt({},S),{},{x:T(x),y:E(x)})}return S});return a.renderAreaStatically(O,m,n,i)}return P.createElement(ee,null,P.createElement("defs",null,P.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(x))),P.createElement(ee,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(u,c,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,u=a.baseLine,c=a.isAnimationActive,s=this.state,f=s.prevPoints,l=s.prevBaseLine,h=s.totalLength;return c&&o&&o.length&&(!f&&h>0||!Ut(f,o)||!Ut(l,u))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,u,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,c=i.className,s=i.top,f=i.left,l=i.xAxis,h=i.yAxis,p=i.width,v=i.height,y=i.isAnimationActive,d=i.id;if(a||!u||!u.length)return null;var g=this.state.isAnimationFinished,x=u.length===1,w=J("recharts-area",c),O=l&&l.allowDataOverflow,m=h&&h.allowDataOverflow,b=O||m,A=Z(d)?this.id:d,S=(n=q(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},_=S.r,M=_===void 0?3:_,$=S.strokeWidth,T=$===void 0?2:$,E=Id(o)?o:{},I=E.clipDot,C=I===void 0?!0:I,D=M*2+T;return P.createElement(ee,{className:w},O||m?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(A)},P.createElement("rect",{x:O?f:f-p/2,y:m?s:s-v/2,width:O?p:p*2,height:m?v:v*2})),!C&&P.createElement("clipPath",{id:"clipPath-dots-".concat(A)},P.createElement("rect",{x:f-D/2,y:s-D/2,width:p+D,height:v+D}))):null,x?null:this.renderArea(b,A),(o||x)&&this.renderDots(b,C,A),(!y||g)&&lt.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])}(L.PureComponent);Qm=Pr;pt(Pr,"displayName","Area");pt(Pr,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!It.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});pt(Pr,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,u=o??a;if(B(u)&&typeof u=="number")return u;var c=i==="horizontal"?n:r,s=c.scale.domain();if(c.type==="number"){var f=Math.max(s[0],s[1]),l=Math.min(s[0],s[1]);return u==="dataMin"?l:u==="dataMax"||f<0?f:Math.max(Math.min(s[0],s[1]),0)}return u==="dataMin"?s[0]:u==="dataMax"?s[1]:s[0]});pt(Pr,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,u=e.bandSize,c=e.dataKey,s=e.stackedData,f=e.dataStartIndex,l=e.displayedData,h=e.offset,p=t.layout,v=s&&s.length,y=Qm.getBaseValue(t,r,n,i),d=p==="horizontal",g=!1,x=l.map(function(O,m){var b;v?b=s[f+m]:(b=me(O,c),Array.isArray(b)?g=!0:b=[y,b]);var A=b[1]==null||v&&me(O,c)==null;return d?{x:Ea({axis:n,ticks:a,bandSize:u,entry:O,index:m}),y:A?null:i.scale(b[1]),value:b,payload:O}:{x:A?null:n.scale(b[1]),y:Ea({axis:i,ticks:o,bandSize:u,entry:O,index:m}),value:b,payload:O}}),w;return v||g?w=x.map(function(O){var m=Array.isArray(O.value)?O.value[0]:null;return d?{x:O.x,y:m!=null&&O.y!=null?i.scale(m):null}:{x:m!=null?n.scale(m):null,y:O.y}}):w=d?i.scale(y):n.scale(y),Lt({points:x,baseLine:w,layout:p,isRange:g},h)});pt(Pr,"renderDotItem",function(e,t){var r;if(P.isValidElement(e))r=P.cloneElement(e,t);else if(V(e))r=e(t);else{var n=J("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=eg(t,pR);r=P.createElement(Sn,sr({},a,{key:i,className:n}))}return r});function sn(e){"@babel/helpers - typeof";return sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sn(e)}function OR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ag(n.key),n)}}function PR(e,t,r){return t&&AR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function SR(e,t,r){return t=oo(t),_R(e,ng()?Reflect.construct(t,r||[],oo(e).constructor):t.apply(e,r))}function _R(e,t){if(t&&(sn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $R(e)}function $R(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ng(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ng=function(){return!!e})()}function oo(e){return oo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},oo(e)}function kR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zc(e,t)}function Zc(e,t){return Zc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zc(e,t)}function ig(e,t,r){return t=ag(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ag(e){var t=TR(e,"string");return sn(t)=="symbol"?t:t+""}function TR(e,t){if(sn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(sn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Jc(){return Jc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jc.apply(this,arguments)}function MR(e){var t=e.xAxisId,r=cl(),n=sl(),i=Bm(t);return i==null?null:L.createElement($n,Jc({},i,{className:J("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return St(o,!0)}}))}var Ri=function(e){function t(){return OR(this,t),SR(this,t,arguments)}return kR(t,e),PR(t,[{key:"render",value:function(){return L.createElement(MR,this.props)}}])}(L.Component);ig(Ri,"displayName","XAxis");ig(Ri,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function ln(e){"@babel/helpers - typeof";return ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ln(e)}function jR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ER(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,cg(n.key),n)}}function CR(e,t,r){return t&&ER(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function IR(e,t,r){return t=uo(t),DR(e,og()?Reflect.construct(t,r||[],uo(e).constructor):t.apply(e,r))}function DR(e,t){if(t&&(ln(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return NR(e)}function NR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function og(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(og=function(){return!!e})()}function uo(e){return uo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},uo(e)}function LR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qc(e,t)}function Qc(e,t){return Qc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Qc(e,t)}function ug(e,t,r){return t=cg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cg(e){var t=RR(e,"string");return ln(t)=="symbol"?t:t+""}function RR(e,t){if(ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function es(){return es=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},es.apply(this,arguments)}var BR=function(t){var r=t.yAxisId,n=cl(),i=sl(),a=zm(r);return a==null?null:L.createElement($n,es({},a,{className:J("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return St(u,!0)}}))},Bi=function(e){function t(){return jR(this,t),IR(this,t,arguments)}return LR(t,e),CR(t,[{key:"render",value:function(){return L.createElement(BR,this.props)}}])}(L.Component);ug(Bi,"displayName","YAxis");ug(Bi,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function pd(e){return UR(e)||WR(e)||FR(e)||zR()}function zR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FR(e,t){if(e){if(typeof e=="string")return ts(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ts(e,t)}}function WR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function UR(e){if(Array.isArray(e))return ts(e)}function ts(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var rs=function(t,r,n,i,a){var o=Xe(t,fl),u=Xe(t,Xo),c=[].concat(pd(o),pd(u)),s=Xe(t,Zo),f="".concat(i,"Id"),l=i[0],h=r;if(c.length&&(h=c.reduce(function(y,d){if(d.props[f]===n&&yt(d.props,"extendDomain")&&B(d.props[l])){var g=d.props[l];return[Math.min(y[0],g),Math.max(y[1],g)]}return y},h)),s.length){var p="".concat(l,"1"),v="".concat(l,"2");h=s.reduce(function(y,d){if(d.props[f]===n&&yt(d.props,"extendDomain")&&B(d.props[p])&&B(d.props[v])){var g=d.props[p],x=d.props[v];return[Math.min(y[0],g,x),Math.max(y[1],g,x)]}return y},h)}return a&&a.length&&(h=a.reduce(function(y,d){return B(d)?[Math.min(y[0],d),Math.max(y[1],d)]:y},h)),h},sg={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(c,s,f){this.fn=c,this.context=s,this.once=f||!1}function a(c,s,f,l,h){if(typeof f!="function")throw new TypeError("The listener must be a function");var p=new i(f,l||c,h),v=r?r+s:s;return c._events[v]?c._events[v].fn?c._events[v]=[c._events[v],p]:c._events[v].push(p):(c._events[v]=p,c._eventsCount++),c}function o(c,s){--c._eventsCount===0?c._events=new n:delete c._events[s]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var s=[],f,l;if(this._eventsCount===0)return s;for(l in f=this._events)t.call(f,l)&&s.push(r?l.slice(1):l);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(f)):s},u.prototype.listeners=function(s){var f=r?r+s:s,l=this._events[f];if(!l)return[];if(l.fn)return[l.fn];for(var h=0,p=l.length,v=new Array(p);h<p;h++)v[h]=l[h].fn;return v},u.prototype.listenerCount=function(s){var f=r?r+s:s,l=this._events[f];return l?l.fn?1:l.length:0},u.prototype.emit=function(s,f,l,h,p,v){var y=r?r+s:s;if(!this._events[y])return!1;var d=this._events[y],g=arguments.length,x,w;if(d.fn){switch(d.once&&this.removeListener(s,d.fn,void 0,!0),g){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,f),!0;case 3:return d.fn.call(d.context,f,l),!0;case 4:return d.fn.call(d.context,f,l,h),!0;case 5:return d.fn.call(d.context,f,l,h,p),!0;case 6:return d.fn.call(d.context,f,l,h,p,v),!0}for(w=1,x=new Array(g-1);w<g;w++)x[w-1]=arguments[w];d.fn.apply(d.context,x)}else{var O=d.length,m;for(w=0;w<O;w++)switch(d[w].once&&this.removeListener(s,d[w].fn,void 0,!0),g){case 1:d[w].fn.call(d[w].context);break;case 2:d[w].fn.call(d[w].context,f);break;case 3:d[w].fn.call(d[w].context,f,l);break;case 4:d[w].fn.call(d[w].context,f,l,h);break;default:if(!x)for(m=1,x=new Array(g-1);m<g;m++)x[m-1]=arguments[m];d[w].fn.apply(d[w].context,x)}}return!0},u.prototype.on=function(s,f,l){return a(this,s,f,l,!1)},u.prototype.once=function(s,f,l){return a(this,s,f,l,!0)},u.prototype.removeListener=function(s,f,l,h){var p=r?r+s:s;if(!this._events[p])return this;if(!f)return o(this,p),this;var v=this._events[p];if(v.fn)v.fn===f&&(!h||v.once)&&(!l||v.context===l)&&o(this,p);else{for(var y=0,d=[],g=v.length;y<g;y++)(v[y].fn!==f||h&&!v[y].once||l&&v[y].context!==l)&&d.push(v[y]);d.length?this._events[p]=d.length===1?d[0]:d:o(this,p)}return this},u.prototype.removeAllListeners=function(s){var f;return s?(f=r?r+s:s,this._events[f]&&o(this,f)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(sg);var HR=sg.exports;const qR=oe(HR);var $u=new qR,ku="recharts.syncMouseEvents";function $i(e){"@babel/helpers - typeof";return $i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$i(e)}function KR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,lg(n.key),n)}}function GR(e,t,r){return t&&VR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tu(e,t,r){return t=lg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lg(e){var t=XR(e,"string");return $i(t)=="symbol"?t:t+""}function XR(e,t){if($i(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($i(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var YR=function(){function e(){KR(this,e),Tu(this,"activeIndex",0),Tu(this,"coordinateList",[]),Tu(this,"layout","horizontal")}return GR(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,u=o===void 0?null:o,c=r.layout,s=c===void 0?null:c,f=r.offset,l=f===void 0?null:f,h=r.mouseHandlerCallback,p=h===void 0?null:h;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=u??this.container,this.layout=s??this.layout,this.offset=l??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,u=i.height,c=this.coordinateList[this.activeIndex].coordinate,s=((r=window)===null||r===void 0?void 0:r.scrollX)||0,f=((n=window)===null||n===void 0?void 0:n.scrollY)||0,l=a+c+s,h=o+this.offset.top+u/2+f;this.mouseHandlerCallback({pageX:l,pageY:h})}}}])}();function ZR(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&B(n)&&B(i))return!0}return!1}function JR(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function fg(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=ie(t,r,n,i),u=ie(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function QR(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var u=t.cx,c=t.cy,s=t.innerRadius,f=t.outerRadius,l=t.angle,h=ie(u,c,s,l),p=ie(u,c,f,l);n=h.x,i=h.y,a=p.x,o=p.y}else return fg(t);return[{x:n,y:i},{x:a,y:o}]}function ki(e){"@babel/helpers - typeof";return ki=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ki(e)}function dd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ta(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dd(Object(r),!0).forEach(function(n){e7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function e7(e,t,r){return t=t7(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t7(e){var t=r7(e,"string");return ki(t)=="symbol"?t:t+""}function r7(e,t){if(ki(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ki(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function n7(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,u=e.activePayload,c=e.offset,s=e.activeTooltipIndex,f=e.tooltipAxisBandSize,l=e.layout,h=e.chartName,p=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!p||!a||!o||h!=="ScatterChart"&&i!=="axis")return null;var v,y=hr;if(h==="ScatterChart")v=o,y=RN;else if(h==="BarChart")v=JR(l,o,c,f),y=nl;else if(l==="radial"){var d=fg(o),g=d.cx,x=d.cy,w=d.radius,O=d.startAngle,m=d.endAngle;v={cx:g,cy:x,startAngle:O,endAngle:m,innerRadius:w,outerRadius:w},y=tm}else v={points:QR(l,o,c)},y=hr;var b=ta(ta(ta(ta({stroke:"#ccc",pointerEvents:"none"},c),v),q(p,!1)),{},{payload:u,payloadIndex:s,className:J("recharts-tooltip-cursor",p.className)});return L.isValidElement(p)?L.cloneElement(p,b):L.createElement(y,b)}var i7=["item"],a7=["children","className","width","height","style","compact","title","desc"];function fn(e){"@babel/helpers - typeof";return fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fn(e)}function Ir(){return Ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ir.apply(this,arguments)}function yd(e,t){return c7(e)||u7(e,t)||pg(e,t)||o7()}function o7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u7(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function c7(e){if(Array.isArray(e))return e}function vd(e,t){if(e==null)return{};var r=s7(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function s7(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function l7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f7(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,dg(n.key),n)}}function h7(e,t,r){return t&&f7(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function p7(e,t,r){return t=co(t),d7(e,hg()?Reflect.construct(t,r||[],co(e).constructor):t.apply(e,r))}function d7(e,t){if(t&&(fn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y7(e)}function y7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hg=function(){return!!e})()}function co(e){return co=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},co(e)}function v7(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ns(e,t)}function ns(e,t){return ns=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ns(e,t)}function hn(e){return b7(e)||g7(e)||pg(e)||m7()}function m7(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pg(e,t){if(e){if(typeof e=="string")return is(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return is(e,t)}}function g7(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function b7(e){if(Array.isArray(e))return is(e)}function is(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function md(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?md(Object(r),!0).forEach(function(n){G(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):md(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function G(e,t,r){return t=dg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dg(e){var t=x7(e,"string");return fn(t)=="symbol"?t:t+""}function x7(e,t){if(fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var w7={xAxis:["bottom","top"],yAxis:["left","right"]},O7={width:"100%",height:"100%"},yg={x:0,y:0};function ra(e){return e}var A7=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},P7=function(t,r,n,i){var a=r.find(function(f){return f&&f.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,u=i.radius;return j(j(j({},i),ie(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var c=a.coordinate,s=i.angle;return j(j(j({},i),ie(i.cx,i.cy,c,s)),{},{angle:s,radius:c})}return yg},Qo=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(u,c){var s=c.props.data;return s&&s.length?[].concat(hn(u),hn(s)):u},[]);return o.length>0?o:t&&t.length&&B(i)&&B(a)?t.slice(i,a+1):[]};function vg(e){return e==="number"?[0,"auto"]:void 0}var as=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=Qo(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(c,s){var f,l=(f=s.props.data)!==null&&f!==void 0?f:r;l&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(l=l.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var p=l===void 0?u:l;h=ia(p,o.dataKey,i)}else h=l&&l[n]||u[n];return h?[].concat(hn(c),[Vv(s,h)]):c},[])},gd=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=A7(a,n),u=t.orderedTooltipTicks,c=t.tooltipAxis,s=t.tooltipTicks,f=uI(o,u,s,c);if(f>=0&&s){var l=s[f]&&s[f].value,h=as(t,r,f,l),p=P7(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:h,activeCoordinate:p}}return null},S7=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,l=t.children,h=t.stackOffset,p=Fv(f,a);return n.reduce(function(v,y){var d,g=y.type.defaultProps!==void 0?j(j({},y.type.defaultProps),y.props):y.props,x=g.type,w=g.dataKey,O=g.allowDataOverflow,m=g.allowDuplicatedCategory,b=g.scale,A=g.ticks,S=g.includeHidden,_=g[o];if(v[_])return v;var M=Qo(t.data,{graphicalItems:i.filter(function(U){var Y,he=o in U.props?U.props[o]:(Y=U.type.defaultProps)===null||Y===void 0?void 0:Y[o];return he===_}),dataStartIndex:c,dataEndIndex:s}),$=M.length,T,E,I;ZR(g.domain,O,x)&&(T=mc(g.domain,null,O),p&&(x==="number"||b!=="auto")&&(I=Fn(M,w,"category")));var C=vg(x);if(!T||T.length===0){var D,N=(D=g.domain)!==null&&D!==void 0?D:C;if(w){if(T=Fn(M,w,x),x==="category"&&p){var z=Z1(T);m&&z?(E=T,T=Ga(0,$)):m||(T=Nh(N,T,y).reduce(function(U,Y){return U.indexOf(Y)>=0?U:[].concat(hn(U),[Y])},[]))}else if(x==="category")m?T=T.filter(function(U){return U!==""&&!Z(U)}):T=Nh(N,T,y).reduce(function(U,Y){return U.indexOf(Y)>=0||Y===""||Z(Y)?U:[].concat(hn(U),[Y])},[]);else if(x==="number"){var F=hI(M,i.filter(function(U){var Y,he,xe=o in U.props?U.props[o]:(Y=U.type.defaultProps)===null||Y===void 0?void 0:Y[o],Ue="hide"in U.props?U.props.hide:(he=U.type.defaultProps)===null||he===void 0?void 0:he.hide;return xe===_&&(S||!Ue)}),w,a,f);F&&(T=F)}p&&(x==="number"||b!=="auto")&&(I=Fn(M,w,"category"))}else p?T=Ga(0,$):u&&u[_]&&u[_].hasStack&&x==="number"?T=h==="expand"?[0,1]:Kv(u[_].stackGroups,c,s):T=zv(M,i.filter(function(U){var Y=o in U.props?U.props[o]:U.type.defaultProps[o],he="hide"in U.props?U.props.hide:U.type.defaultProps.hide;return Y===_&&(S||!he)}),x,f,!0);if(x==="number")T=rs(l,T,_,a,A),N&&(T=mc(N,T,O));else if(x==="category"&&N){var K=N,X=T.every(function(U){return K.indexOf(U)>=0});X&&(T=K)}}return j(j({},v),{},G({},_,j(j({},g),{},{axisType:a,domain:T,categoricalDomain:I,duplicateDomain:E,originalDomain:(d=g.domain)!==null&&d!==void 0?d:C,isCategorical:p,layout:f})))},{})},_7=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,l=t.children,h=Qo(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:s}),p=h.length,v=Fv(f,a),y=-1;return n.reduce(function(d,g){var x=g.type.defaultProps!==void 0?j(j({},g.type.defaultProps),g.props):g.props,w=x[o],O=vg("number");if(!d[w]){y++;var m;return v?m=Ga(0,p):u&&u[w]&&u[w].hasStack?(m=Kv(u[w].stackGroups,c,s),m=rs(l,m,w,a)):(m=mc(O,zv(h,n.filter(function(b){var A,S,_=o in b.props?b.props[o]:(A=b.type.defaultProps)===null||A===void 0?void 0:A[o],M="hide"in b.props?b.props.hide:(S=b.type.defaultProps)===null||S===void 0?void 0:S.hide;return _===w&&!M}),"number",f),i.defaultProps.allowDataOverflow),m=rs(l,m,w,a)),j(j({},d),{},G({},w,j(j({axisType:a},i.defaultProps),{},{hide:!0,orientation:Ge(w7,"".concat(a,".").concat(y%2),null),domain:m,originalDomain:O,isCategorical:v,layout:f})))}return d},{})},$7=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.children,l="".concat(i,"Id"),h=Xe(f,a),p={};return h&&h.length?p=S7(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s}):o&&o.length&&(p=_7(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s})),p},k7=function(t){var r=Bt(t),n=St(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Ts(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Ca(r,n)}},bd=function(t){var r=t.children,n=t.defaultShowTooltip,i=Ke(r,en),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},T7=function(t){return!t||!t.length?!1:t.some(function(r){var n=_t(r&&r.type);return n&&n.indexOf("Bar")>=0})},xd=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},M7=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,c=u===void 0?{}:u,s=n.width,f=n.height,l=n.children,h=n.margin||{},p=Ke(l,en),v=Ke(l,Nr),y=Object.keys(c).reduce(function(m,b){var A=c[b],S=A.orientation;return!A.mirror&&!A.hide?j(j({},m),{},G({},S,m[S]+A.width)):m},{left:h.left||0,right:h.right||0}),d=Object.keys(o).reduce(function(m,b){var A=o[b],S=A.orientation;return!A.mirror&&!A.hide?j(j({},m),{},G({},S,Ge(m,"".concat(S))+A.height)):m},{top:h.top||0,bottom:h.bottom||0}),g=j(j({},d),y),x=g.bottom;p&&(g.bottom+=p.props.height||en.defaultProps.height),v&&r&&(g=lI(g,i,n,r));var w=s-g.left-g.right,O=f-g.top-g.bottom;return j(j({brushBottom:x},g),{},{width:Math.max(w,0),height:Math.max(O,0)})},j7=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},zi=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,u=o===void 0?["axis"]:o,c=t.axisComponents,s=t.legendContent,f=t.formatAxisMap,l=t.defaultProps,h=function(g,x){var w=x.graphicalItems,O=x.stackGroups,m=x.offset,b=x.updateId,A=x.dataStartIndex,S=x.dataEndIndex,_=g.barSize,M=g.layout,$=g.barGap,T=g.barCategoryGap,E=g.maxBarSize,I=xd(M),C=I.numericAxisName,D=I.cateAxisName,N=T7(w),z=[];return w.forEach(function(F,K){var X=Qo(g.data,{graphicalItems:[F],dataStartIndex:A,dataEndIndex:S}),U=F.type.defaultProps!==void 0?j(j({},F.type.defaultProps),F.props):F.props,Y=U.dataKey,he=U.maxBarSize,xe=U["".concat(C,"Id")],Ue=U["".concat(D,"Id")],Xt={},Be=c.reduce(function(Yt,Zt){var eu=x["".concat(Zt.axisType,"Map")],dl=U["".concat(Zt.axisType,"Id")];eu&&eu[dl]||Zt.axisType==="zAxis"||mr();var yl=eu[dl];return j(j({},Yt),{},G(G({},Zt.axisType,yl),"".concat(Zt.axisType,"Ticks"),St(yl)))},Xt),W=Be[D],Q=Be["".concat(D,"Ticks")],te=O&&O[xe]&&O[xe].hasStack&&wI(F,O[xe].stackGroups),R=_t(F.type).indexOf("Bar")>=0,ge=Ca(W,Q),re=[],Ae=N&&cI({barSize:_,stackGroups:O,totalSize:j7(Be,D)});if(R){var Pe,ze,Nt=Z(he)?E:he,Sr=(Pe=(ze=Ca(W,Q,!0))!==null&&ze!==void 0?ze:Nt)!==null&&Pe!==void 0?Pe:0;re=sI({barGap:$,barCategoryGap:T,bandSize:Sr!==ge?Sr:ge,sizeList:Ae[Ue],maxBarSize:Nt}),Sr!==ge&&(re=re.map(function(Yt){return j(j({},Yt),{},{position:j(j({},Yt.position),{},{offset:Yt.position.offset-Sr/2})})}))}var Fi=F&&F.type&&F.type.getComposedData;Fi&&z.push({props:j(j({},Fi(j(j({},Be),{},{displayedData:X,props:g,dataKey:Y,item:F,bandSize:ge,barPosition:re,offset:m,stackedData:te,layout:M,dataStartIndex:A,dataEndIndex:S}))),{},G(G(G({key:F.key||"item-".concat(K)},C,Be[C]),D,Be[D]),"animationId",b)),childIndex:sx(F,g.children),item:F})}),z},p=function(g,x){var w=g.props,O=g.dataStartIndex,m=g.dataEndIndex,b=g.updateId;if(!Tl({props:w}))return null;var A=w.children,S=w.layout,_=w.stackOffset,M=w.data,$=w.reverseStackOrder,T=xd(S),E=T.numericAxisName,I=T.cateAxisName,C=Xe(A,n),D=bI(M,C,"".concat(E,"Id"),"".concat(I,"Id"),_,$),N=c.reduce(function(U,Y){var he="".concat(Y.axisType,"Map");return j(j({},U),{},G({},he,$7(w,j(j({},Y),{},{graphicalItems:C,stackGroups:Y.axisType===E&&D,dataStartIndex:O,dataEndIndex:m}))))},{}),z=M7(j(j({},N),{},{props:w,graphicalItems:C}),x==null?void 0:x.legendBBox);Object.keys(N).forEach(function(U){N[U]=f(w,N[U],z,U.replace("Map",""),r)});var F=N["".concat(I,"Map")],K=k7(F),X=h(w,j(j({},N),{},{dataStartIndex:O,dataEndIndex:m,updateId:b,graphicalItems:C,stackGroups:D,offset:z}));return j(j({formattedGraphicalItems:X,graphicalItems:C,offset:z,stackGroups:D},K),N)},v=function(d){function g(x){var w,O,m;return l7(this,g),m=p7(this,g,[x]),G(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),G(m,"accessibilityManager",new YR),G(m,"handleLegendBBoxUpdate",function(b){if(b){var A=m.state,S=A.dataStartIndex,_=A.dataEndIndex,M=A.updateId;m.setState(j({legendBBox:b},p({props:m.props,dataStartIndex:S,dataEndIndex:_,updateId:M},j(j({},m.state),{},{legendBBox:b}))))}}),G(m,"handleReceiveSyncEvent",function(b,A,S){if(m.props.syncId===b){if(S===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(A)}}),G(m,"handleBrushChange",function(b){var A=b.startIndex,S=b.endIndex;if(A!==m.state.dataStartIndex||S!==m.state.dataEndIndex){var _=m.state.updateId;m.setState(function(){return j({dataStartIndex:A,dataEndIndex:S},p({props:m.props,dataStartIndex:A,dataEndIndex:S,updateId:_},m.state))}),m.triggerSyncEvent({dataStartIndex:A,dataEndIndex:S})}}),G(m,"handleMouseEnter",function(b){var A=m.getMouseInfo(b);if(A){var S=j(j({},A),{},{isTooltipActive:!0});m.setState(S),m.triggerSyncEvent(S);var _=m.props.onMouseEnter;V(_)&&_(S,b)}}),G(m,"triggeredAfterMouseMove",function(b){var A=m.getMouseInfo(b),S=A?j(j({},A),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(S),m.triggerSyncEvent(S);var _=m.props.onMouseMove;V(_)&&_(S,b)}),G(m,"handleItemMouseEnter",function(b){m.setState(function(){return{isTooltipActive:!0,activeItem:b,activePayload:b.tooltipPayload,activeCoordinate:b.tooltipPosition||{x:b.cx,y:b.cy}}})}),G(m,"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),G(m,"handleMouseMove",function(b){b.persist(),m.throttleTriggeredAfterMouseMove(b)}),G(m,"handleMouseLeave",function(b){m.throttleTriggeredAfterMouseMove.cancel();var A={isTooltipActive:!1};m.setState(A),m.triggerSyncEvent(A);var S=m.props.onMouseLeave;V(S)&&S(A,b)}),G(m,"handleOuterEvent",function(b){var A=cx(b),S=Ge(m.props,"".concat(A));if(A&&V(S)){var _,M;/.*touch.*/i.test(A)?M=m.getMouseInfo(b.changedTouches[0]):M=m.getMouseInfo(b),S((_=M)!==null&&_!==void 0?_:{},b)}}),G(m,"handleClick",function(b){var A=m.getMouseInfo(b);if(A){var S=j(j({},A),{},{isTooltipActive:!0});m.setState(S),m.triggerSyncEvent(S);var _=m.props.onClick;V(_)&&_(S,b)}}),G(m,"handleMouseDown",function(b){var A=m.props.onMouseDown;if(V(A)){var S=m.getMouseInfo(b);A(S,b)}}),G(m,"handleMouseUp",function(b){var A=m.props.onMouseUp;if(V(A)){var S=m.getMouseInfo(b);A(S,b)}}),G(m,"handleTouchMove",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(b.changedTouches[0])}),G(m,"handleTouchStart",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&m.handleMouseDown(b.changedTouches[0])}),G(m,"handleTouchEnd",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&m.handleMouseUp(b.changedTouches[0])}),G(m,"handleDoubleClick",function(b){var A=m.props.onDoubleClick;if(V(A)){var S=m.getMouseInfo(b);A(S,b)}}),G(m,"handleContextMenu",function(b){var A=m.props.onContextMenu;if(V(A)){var S=m.getMouseInfo(b);A(S,b)}}),G(m,"triggerSyncEvent",function(b){m.props.syncId!==void 0&&$u.emit(ku,m.props.syncId,b,m.eventEmitterSymbol)}),G(m,"applySyncEvent",function(b){var A=m.props,S=A.layout,_=A.syncMethod,M=m.state.updateId,$=b.dataStartIndex,T=b.dataEndIndex;if(b.dataStartIndex!==void 0||b.dataEndIndex!==void 0)m.setState(j({dataStartIndex:$,dataEndIndex:T},p({props:m.props,dataStartIndex:$,dataEndIndex:T,updateId:M},m.state)));else if(b.activeTooltipIndex!==void 0){var E=b.chartX,I=b.chartY,C=b.activeTooltipIndex,D=m.state,N=D.offset,z=D.tooltipTicks;if(!N)return;if(typeof _=="function")C=_(z,b);else if(_==="value"){C=-1;for(var F=0;F<z.length;F++)if(z[F].value===b.activeLabel){C=F;break}}var K=j(j({},N),{},{x:N.left,y:N.top}),X=Math.min(E,K.x+K.width),U=Math.min(I,K.y+K.height),Y=z[C]&&z[C].value,he=as(m.state,m.props.data,C),xe=z[C]?{x:S==="horizontal"?z[C].coordinate:X,y:S==="horizontal"?U:z[C].coordinate}:yg;m.setState(j(j({},b),{},{activeLabel:Y,activeCoordinate:xe,activePayload:he,activeTooltipIndex:C}))}else m.setState(b)}),G(m,"renderCursor",function(b){var A,S=m.state,_=S.isTooltipActive,M=S.activeCoordinate,$=S.activePayload,T=S.offset,E=S.activeTooltipIndex,I=S.tooltipAxisBandSize,C=m.getTooltipEventType(),D=(A=b.props.active)!==null&&A!==void 0?A:_,N=m.props.layout,z=b.key||"_recharts-cursor";return P.createElement(n7,{key:z,activeCoordinate:M,activePayload:$,activeTooltipIndex:E,chartName:r,element:b,isActive:D,layout:N,offset:T,tooltipAxisBandSize:I,tooltipEventType:C})}),G(m,"renderPolarAxis",function(b,A,S){var _=Ge(b,"type.axisType"),M=Ge(m.state,"".concat(_,"Map")),$=b.type.defaultProps,T=$!==void 0?j(j({},$),b.props):b.props,E=M&&M[T["".concat(_,"Id")]];return L.cloneElement(b,j(j({},E),{},{className:J(_,E.className),key:b.key||"".concat(A,"-").concat(S),ticks:St(E,!0)}))}),G(m,"renderPolarGrid",function(b){var A=b.props,S=A.radialLines,_=A.polarAngles,M=A.polarRadius,$=m.state,T=$.radiusAxisMap,E=$.angleAxisMap,I=Bt(T),C=Bt(E),D=C.cx,N=C.cy,z=C.innerRadius,F=C.outerRadius;return L.cloneElement(b,{polarAngles:Array.isArray(_)?_:St(C,!0).map(function(K){return K.coordinate}),polarRadius:Array.isArray(M)?M:St(I,!0).map(function(K){return K.coordinate}),cx:D,cy:N,innerRadius:z,outerRadius:F,key:b.key||"polar-grid",radialLines:S})}),G(m,"renderLegend",function(){var b=m.state.formattedGraphicalItems,A=m.props,S=A.children,_=A.width,M=A.height,$=m.props.margin||{},T=_-($.left||0)-($.right||0),E=Rv({children:S,formattedGraphicalItems:b,legendWidth:T,legendContent:s});if(!E)return null;var I=E.item,C=vd(E,i7);return L.cloneElement(I,j(j({},C),{},{chartWidth:_,chartHeight:M,margin:$,onBBoxUpdate:m.handleLegendBBoxUpdate}))}),G(m,"renderTooltip",function(){var b,A=m.props,S=A.children,_=A.accessibilityLayer,M=Ke(S,xt);if(!M)return null;var $=m.state,T=$.isTooltipActive,E=$.activeCoordinate,I=$.activePayload,C=$.activeLabel,D=$.offset,N=(b=M.props.active)!==null&&b!==void 0?b:T;return L.cloneElement(M,{viewBox:j(j({},D),{},{x:D.left,y:D.top}),active:N,label:C,payload:N?I:[],coordinate:E,accessibilityLayer:_})}),G(m,"renderBrush",function(b){var A=m.props,S=A.margin,_=A.data,M=m.state,$=M.offset,T=M.dataStartIndex,E=M.dataEndIndex,I=M.updateId;return L.cloneElement(b,{key:b.key||"_recharts-brush",onChange:Zi(m.handleBrushChange,b.props.onChange),data:_,x:B(b.props.x)?b.props.x:$.left,y:B(b.props.y)?b.props.y:$.top+$.height+$.brushBottom-(S.bottom||0),width:B(b.props.width)?b.props.width:$.width,startIndex:T,endIndex:E,updateId:"brush-".concat(I)})}),G(m,"renderReferenceElement",function(b,A,S){if(!b)return null;var _=m,M=_.clipPathId,$=m.state,T=$.xAxisMap,E=$.yAxisMap,I=$.offset,C=b.type.defaultProps||{},D=b.props,N=D.xAxisId,z=N===void 0?C.xAxisId:N,F=D.yAxisId,K=F===void 0?C.yAxisId:F;return L.cloneElement(b,{key:b.key||"".concat(A,"-").concat(S),xAxis:T[z],yAxis:E[K],viewBox:{x:I.left,y:I.top,width:I.width,height:I.height},clipPathId:M})}),G(m,"renderActivePoints",function(b){var A=b.item,S=b.activePoint,_=b.basePoint,M=b.childIndex,$=b.isRange,T=[],E=A.props.key,I=A.item.type.defaultProps!==void 0?j(j({},A.item.type.defaultProps),A.item.props):A.item.props,C=I.activeDot,D=I.dataKey,N=j(j({index:M,dataKey:D,cx:S.x,cy:S.y,r:4,fill:rl(A.item),strokeWidth:2,stroke:"#fff",payload:S.payload,value:S.value},q(C,!1)),aa(C));return T.push(g.renderActiveDot(C,N,"".concat(E,"-activePoint-").concat(M))),_?T.push(g.renderActiveDot(C,j(j({},N),{},{cx:_.x,cy:_.y}),"".concat(E,"-basePoint-").concat(M))):$&&T.push(null),T}),G(m,"renderGraphicChild",function(b,A,S){var _=m.filterFormatItem(b,A,S);if(!_)return null;var M=m.getTooltipEventType(),$=m.state,T=$.isTooltipActive,E=$.tooltipAxis,I=$.activeTooltipIndex,C=$.activeLabel,D=m.props.children,N=Ke(D,xt),z=_.props,F=z.points,K=z.isRange,X=z.baseLine,U=_.item.type.defaultProps!==void 0?j(j({},_.item.type.defaultProps),_.item.props):_.item.props,Y=U.activeDot,he=U.hide,xe=U.activeBar,Ue=U.activeShape,Xt=!!(!he&&T&&N&&(Y||xe||Ue)),Be={};M!=="axis"&&N&&N.props.trigger==="click"?Be={onClick:Zi(m.handleItemMouseEnter,b.props.onClick)}:M!=="axis"&&(Be={onMouseLeave:Zi(m.handleItemMouseLeave,b.props.onMouseLeave),onMouseEnter:Zi(m.handleItemMouseEnter,b.props.onMouseEnter)});var W=L.cloneElement(b,j(j({},_.props),Be));function Q(Zt){return typeof E.dataKey=="function"?E.dataKey(Zt.payload):null}if(Xt)if(I>=0){var te,R;if(E.dataKey&&!E.allowDuplicatedCategory){var ge=typeof E.dataKey=="function"?Q:"payload.".concat(E.dataKey.toString());te=ia(F,ge,C),R=K&&X&&ia(X,ge,C)}else te=F==null?void 0:F[I],R=K&&X&&X[I];if(Ue||xe){var re=b.props.activeIndex!==void 0?b.props.activeIndex:I;return[L.cloneElement(b,j(j(j({},_.props),Be),{},{activeIndex:re})),null,null]}if(!Z(te))return[W].concat(hn(m.renderActivePoints({item:_,activePoint:te,basePoint:R,childIndex:I,isRange:K})))}else{var Ae,Pe=(Ae=m.getItemByXY(m.state.activeCoordinate))!==null&&Ae!==void 0?Ae:{graphicalItem:W},ze=Pe.graphicalItem,Nt=ze.item,Sr=Nt===void 0?b:Nt,Fi=ze.childIndex,Yt=j(j(j({},_.props),Be),{},{activeIndex:Fi});return[L.cloneElement(Sr,Yt),null,null]}return K?[W,null,null]:[W,null]}),G(m,"renderCustomized",function(b,A,S){return L.cloneElement(b,j(j({key:"recharts-customized-".concat(S)},m.props),m.state))}),G(m,"renderMap",{CartesianGrid:{handler:ra,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:ra},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:ra},YAxis:{handler:ra},Brush:{handler:m.renderBrush,once:!0},Bar:{handler:m.renderGraphicChild},Line:{handler:m.renderGraphicChild},Area:{handler:m.renderGraphicChild},Radar:{handler:m.renderGraphicChild},RadialBar:{handler:m.renderGraphicChild},Scatter:{handler:m.renderGraphicChild},Pie:{handler:m.renderGraphicChild},Funnel:{handler:m.renderGraphicChild},Tooltip:{handler:m.renderCursor,once:!0},PolarGrid:{handler:m.renderPolarGrid,once:!0},PolarAngleAxis:{handler:m.renderPolarAxis},PolarRadiusAxis:{handler:m.renderPolarAxis},Customized:{handler:m.renderCustomized}}),m.clipPathId="".concat((w=x.id)!==null&&w!==void 0?w:xr("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=Ly(m.triggeredAfterMouseMove,(O=x.throttleDelay)!==null&&O!==void 0?O:1e3/60),m.state={},m}return v7(g,d),h7(g,[{key:"componentDidMount",value:function(){var w,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,O=w.children,m=w.data,b=w.height,A=w.layout,S=Ke(O,xt);if(S){var _=S.props.defaultIndex;if(!(typeof _!="number"||_<0||_>this.state.tooltipTicks.length-1)){var M=this.state.tooltipTicks[_]&&this.state.tooltipTicks[_].value,$=as(this.state,m,_,M),T=this.state.tooltipTicks[_].coordinate,E=(this.state.offset.top+b)/2,I=A==="horizontal",C=I?{x:T,y:E}:{y:T,x:E},D=this.state.formattedGraphicalItems.find(function(z){var F=z.item;return F.type.name==="Scatter"});D&&(C=j(j({},C),D.props.points[_].tooltipPosition),$=D.props.points[_].tooltipPayload);var N={activeTooltipIndex:_,isTooltipActive:!0,activeLabel:M,activePayload:$,activeCoordinate:C};this.setState(N),this.renderCursor(S),this.accessibilityManager.setIndex(_)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var m,b;this.accessibilityManager.setDetails({offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(b=this.props.margin.top)!==null&&b!==void 0?b:0}})}return null}},{key:"componentDidUpdate",value:function(w){Eu([Ke(w.children,xt)],[Ke(this.props.children,xt)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=Ke(this.props.children,xt);if(w&&typeof w.props.shared=="boolean"){var O=w.props.shared?"axis":"item";return u.indexOf(O)>=0?O:a}return a}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var O=this.container,m=O.getBoundingClientRect(),b=DT(m),A={chartX:Math.round(w.pageX-b.left),chartY:Math.round(w.pageY-b.top)},S=m.width/O.offsetWidth||1,_=this.inRange(A.chartX,A.chartY,S);if(!_)return null;var M=this.state,$=M.xAxisMap,T=M.yAxisMap,E=this.getTooltipEventType(),I=gd(this.state,this.props.data,this.props.layout,_);if(E!=="axis"&&$&&T){var C=Bt($).scale,D=Bt(T).scale,N=C&&C.invert?C.invert(A.chartX):null,z=D&&D.invert?D.invert(A.chartY):null;return j(j({},A),{},{xValue:N,yValue:z},I)}return I?j(j({},A),I):null}},{key:"inRange",value:function(w,O){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,b=this.props.layout,A=w/m,S=O/m;if(b==="horizontal"||b==="vertical"){var _=this.state.offset,M=A>=_.left&&A<=_.left+_.width&&S>=_.top&&S<=_.top+_.height;return M?{x:A,y:S}:null}var $=this.state,T=$.angleAxisMap,E=$.radiusAxisMap;if(T&&E){var I=Bt(T);return Bh({x:A,y:S},I)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,O=this.getTooltipEventType(),m=Ke(w,xt),b={};m&&O==="axis"&&(m.props.trigger==="click"?b={onClick:this.handleClick}:b={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var A=aa(this.props,this.handleOuterEvent);return j(j({},A),b)}},{key:"addListener",value:function(){$u.on(ku,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){$u.removeListener(ku,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,O,m){for(var b=this.state.formattedGraphicalItems,A=0,S=b.length;A<S;A++){var _=b[A];if(_.item===w||_.props.key===w.key||O===_t(_.item.type)&&m===_.childIndex)return _}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,O=this.state.offset,m=O.left,b=O.top,A=O.height,S=O.width;return P.createElement("defs",null,P.createElement("clipPath",{id:w},P.createElement("rect",{x:m,y:b,height:A,width:S})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(O,m){var b=yd(m,2),A=b[0],S=b[1];return j(j({},O),{},G({},A,S.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(O,m){var b=yd(m,2),A=b[0],S=b[1];return j(j({},O),{},G({},A,S.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(w){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(w){var O=this.state,m=O.formattedGraphicalItems,b=O.activeItem;if(m&&m.length)for(var A=0,S=m.length;A<S;A++){var _=m[A],M=_.props,$=_.item,T=$.type.defaultProps!==void 0?j(j({},$.type.defaultProps),$.props):$.props,E=_t($.type);if(E==="Bar"){var I=(M.data||[]).find(function(z){return bN(w,z)});if(I)return{graphicalItem:_,payload:I}}else if(E==="RadialBar"){var C=(M.data||[]).find(function(z){return Bh(w,z)});if(C)return{graphicalItem:_,payload:C}}else if(Ho(_,b)||qo(_,b)||Oi(_,b)){var D=g8({graphicalItem:_,activeTooltipItem:b,itemData:T.data}),N=T.activeIndex===void 0?D:T.activeIndex;return{graphicalItem:j(j({},_),{},{childIndex:N}),payload:Oi(_,b)?T.data[D]:_.props.data[D]}}}return null}},{key:"render",value:function(){var w=this;if(!Tl(this))return null;var O=this.props,m=O.children,b=O.className,A=O.width,S=O.height,_=O.style,M=O.compact,$=O.title,T=O.desc,E=vd(O,a7),I=q(E,!1);if(M)return P.createElement(Xp,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},P.createElement(Iu,Ir({},I,{width:A,height:S,title:$,desc:T}),this.renderClipPath(),jl(m,this.renderMap)));if(this.props.accessibilityLayer){var C,D;I.tabIndex=(C=this.props.tabIndex)!==null&&C!==void 0?C:0,I.role=(D=this.props.role)!==null&&D!==void 0?D:"application",I.onKeyDown=function(z){w.accessibilityManager.keyboardEvent(z)},I.onFocus=function(){w.accessibilityManager.focus()}}var N=this.parseEventsOfWrapper();return P.createElement(Xp,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},P.createElement("div",Ir({className:J("recharts-wrapper",b),style:j({position:"relative",cursor:"default",width:A,height:S},_)},N,{ref:function(F){w.container=F}}),P.createElement(Iu,Ir({},I,{width:A,height:S,title:$,desc:T,style:O7}),this.renderClipPath(),jl(m,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(L.Component);G(v,"displayName",r),G(v,"defaultProps",j({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),G(v,"getDerivedStateFromProps",function(d,g){var x=d.dataKey,w=d.data,O=d.children,m=d.width,b=d.height,A=d.layout,S=d.stackOffset,_=d.margin,M=g.dataStartIndex,$=g.dataEndIndex;if(g.updateId===void 0){var T=bd(d);return j(j(j({},T),{},{updateId:0},p(j(j({props:d},T),{},{updateId:0}),g)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:b,prevLayout:A,prevStackOffset:S,prevMargin:_,prevChildren:O})}if(x!==g.prevDataKey||w!==g.prevData||m!==g.prevWidth||b!==g.prevHeight||A!==g.prevLayout||S!==g.prevStackOffset||!Dr(_,g.prevMargin)){var E=bd(d),I={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},C=j(j({},gd(g,w,A)),{},{updateId:g.updateId+1}),D=j(j(j({},E),I),C);return j(j(j({},D),p(j({props:d},D),g)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:b,prevLayout:A,prevStackOffset:S,prevMargin:_,prevChildren:O})}if(!Eu(O,g.prevChildren)){var N,z,F,K,X=Ke(O,en),U=X&&(N=(z=X.props)===null||z===void 0?void 0:z.startIndex)!==null&&N!==void 0?N:M,Y=X&&(F=(K=X.props)===null||K===void 0?void 0:K.endIndex)!==null&&F!==void 0?F:$,he=U!==M||Y!==$,xe=!Z(w),Ue=xe&&!he?g.updateId:g.updateId+1;return j(j({updateId:Ue},p(j(j({props:d},g),{},{updateId:Ue,dataStartIndex:U,dataEndIndex:Y}),g)),{},{prevChildren:O,dataStartIndex:U,dataEndIndex:Y})}return null}),G(v,"renderActiveDot",function(d,g,x){var w;return L.isValidElement(d)?w=L.cloneElement(d,g):V(d)?w=d(g):w=P.createElement(Sn,g),P.createElement(ee,{className:"recharts-active-dot",key:x},w)});var y=L.forwardRef(function(g,x){return P.createElement(v,Ir({},g,{ref:x}))});return y.displayName=v.displayName,y},Cz=zi({chartName:"LineChart",GraphicalChild:Jo,axisComponents:[{axisType:"xAxis",AxisComp:Ri},{axisType:"yAxis",AxisComp:Bi}],formatAxisMap:il}),Iz=zi({chartName:"BarChart",GraphicalChild:_n,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Ri},{axisType:"yAxis",AxisComp:Bi}],formatAxisMap:il}),Dz=zi({chartName:"PieChart",GraphicalChild:Gt,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Li},{axisType:"radiusAxis",AxisComp:Ni}],formatAxisMap:Yv,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),Nz=zi({chartName:"RadarChart",GraphicalChild:Ko,axisComponents:[{axisType:"angleAxis",AxisComp:Li},{axisType:"radiusAxis",AxisComp:Ni}],formatAxisMap:Yv,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),Lz=zi({chartName:"AreaChart",GraphicalChild:Pr,axisComponents:[{axisType:"xAxis",AxisComp:Ri},{axisType:"yAxis",AxisComp:Bi}],formatAxisMap:il});export{mB as $,I7 as A,oB as B,hB as C,jB as D,dz as E,RB as F,DB as G,HB as H,YB as I,FB as J,eB as K,n9 as L,y9 as M,iB as N,T9 as O,A9 as P,Z9 as Q,z9 as R,az as S,oz as T,mz as U,L9 as V,Pz as W,_z as X,S9 as Y,P9 as Z,fp as _,Ez as a,B7 as a$,o9 as a0,f9 as a1,K9 as a2,J7 as a3,i9 as a4,p9 as a5,l9 as a6,c9 as a7,a9 as a8,NB as a9,I9 as aA,B9 as aB,xz as aC,wz as aD,JB as aE,tB as aF,KB as aG,t9 as aH,e9 as aI,r9 as aJ,XB as aK,IB as aL,h9 as aM,$z as aN,nz as aO,tz as aP,ZB as aQ,K7 as aR,Iz as aS,_n as aT,rz as aU,Cz as aV,Jo as aW,Sz as aX,H9 as aY,LB as aZ,H7 as a_,bz as aa,u9 as ab,pz as ac,AB as ad,Mz as ae,Lz as af,Z6 as ag,Ri as ah,Bi as ai,xt as aj,Pr as ak,Dz as al,Gt as am,js as an,MB as ao,x9 as ap,k9 as aq,lz as ar,D7 as as,Q9 as at,Q7 as au,EB as av,rB as aw,M9 as ax,V7 as ay,cz as az,N7 as b,BB as b$,g9 as b0,zB as b1,uz as b2,gz as b3,ez as b4,cB as b5,Nr as b6,j9 as b7,hz as b8,_9 as b9,d9 as bA,F9 as bB,xB as bC,W9 as bD,gB as bE,GB as bF,Tz as bG,kz as bH,j3 as bI,OB as bJ,C9 as bK,Nz as bL,YN as bM,Li as bN,Ko as bO,X7 as bP,jz as bQ,lp as bR,ae as bS,V9 as bT,vz as bU,pB as bV,yz as bW,nB as bX,iz as bY,J9 as bZ,Z7 as b_,q9 as ba,UB as bb,s9 as bc,PB as bd,WB as be,b9 as bf,Az as bg,TB as bh,Y9 as bi,_B as bj,CB as bk,w9 as bl,D9 as bm,SB as bn,Oz as bo,$9 as bp,aB as bq,F7 as br,bB as bs,wB as bt,m9 as bu,fz as bv,vB as bw,G9 as bx,fB as by,R9 as bz,dB as c,L7 as c0,sz as c1,v9 as d,E9 as e,U7 as f,z7 as g,W7 as h,q7 as i,X9 as j,yB as k,lB as l,sB as m,U9 as n,G7 as o,VB as p,O9 as q,N9 as r,uB as s,qB as t,$B as u,Y7 as v,QB as w,C7 as x,kB as y,R7 as z};
